ados-rcm 1.1.454 → 1.1.456

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -15,7 +15,7 @@
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 Zv;function v4(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=Symbol.iterator,I="@@iterator";function w(re){if(re===null||typeof re!="object")return null;var Ue=_&&re[_]||re[I];return typeof Ue=="function"?Ue:null}var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(re){{for(var Ue=arguments.length,Re=new Array(Ue>1?Ue-1:0),nt=1;nt<Ue;nt++)Re[nt-1]=arguments[nt];O("error",re,Re)}}function O(re,Ue,Re){{var nt=C.ReactDebugCurrentFrame,at=nt.getStackAddendum();at!==""&&(Ue+="%s",Re=Re.concat([at]));var Et=Re.map(function(lt){return String(lt)});Et.unshift("Warning: "+Ue),Function.prototype.apply.call(console[re],console,Et)}}var F=!1,j=!1,$=!1,Z=!1,ie=!1,Y;Y=Symbol.for("react.module.reference");function se(re){return!!(typeof re=="string"||typeof re=="function"||re===n||re===l||ie||re===i||re===m||re===T||Z||re===x||F||j||$||typeof re=="object"&&re!==null&&(re.$$typeof===b||re.$$typeof===k||re.$$typeof===u||re.$$typeof===f||re.$$typeof===p||re.$$typeof===Y||re.getModuleId!==void 0))}function q(re,Ue,Re){var nt=re.displayName;if(nt)return nt;var at=Ue.displayName||Ue.name||"";return at!==""?Re+"("+at+")":Re}function J(re){return re.displayName||"Context"}function X(re){if(re==null)return null;if(typeof re.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof re=="function")return re.displayName||re.name||null;if(typeof re=="string")return re;switch(re){case n:return"Fragment";case t:return"Portal";case l:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case T:return"SuspenseList"}if(typeof re=="object")switch(re.$$typeof){case f:var Ue=re;return J(Ue)+".Consumer";case u:var Re=re;return J(Re._context)+".Provider";case p:return q(re,re.render,"ForwardRef");case k:var nt=re.displayName||null;return nt!==null?nt:X(re.type)||"Memo";case b:{var at=re,Et=at._payload,lt=at._init;try{return X(lt(Et))}catch{return null}}}return null}var ne=Object.assign,ge=0,me,ve,de,De,ue,le,fe;function Me(){}Me.__reactDisabledLog=!0;function Ve(){{if(ge===0){me=console.log,ve=console.info,de=console.warn,De=console.error,ue=console.group,le=console.groupCollapsed,fe=console.groupEnd;var re={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:re,log:re,warn:re,error:re,group:re,groupCollapsed:re,groupEnd:re})}ge++}}function pe(){{if(ge--,ge===0){var re={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},re,{value:me}),info:ne({},re,{value:ve}),warn:ne({},re,{value:de}),error:ne({},re,{value:De}),group:ne({},re,{value:ue}),groupCollapsed:ne({},re,{value:le}),groupEnd:ne({},re,{value:fe})})}ge<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=C.ReactCurrentDispatcher,ze;function Ze(re,Ue,Re){{if(ze===void 0)try{throw Error()}catch(at){var nt=at.stack.trim().match(/\n( *(at )?)/);ze=nt&&nt[1]||""}return`
18
+ */var Zv;function v4(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=Symbol.iterator,I="@@iterator";function w(re){if(re===null||typeof re!="object")return null;var Ue=_&&re[_]||re[I];return typeof Ue=="function"?Ue:null}var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(re){{for(var Ue=arguments.length,Re=new Array(Ue>1?Ue-1:0),nt=1;nt<Ue;nt++)Re[nt-1]=arguments[nt];O("error",re,Re)}}function O(re,Ue,Re){{var nt=C.ReactDebugCurrentFrame,at=nt.getStackAddendum();at!==""&&(Ue+="%s",Re=Re.concat([at]));var Et=Re.map(function(lt){return String(lt)});Et.unshift("Warning: "+Ue),Function.prototype.apply.call(console[re],console,Et)}}var N=!1,j=!1,$=!1,Z=!1,ie=!1,Y;Y=Symbol.for("react.module.reference");function se(re){return!!(typeof re=="string"||typeof re=="function"||re===n||re===l||ie||re===i||re===m||re===T||Z||re===x||N||j||$||typeof re=="object"&&re!==null&&(re.$$typeof===b||re.$$typeof===k||re.$$typeof===u||re.$$typeof===f||re.$$typeof===p||re.$$typeof===Y||re.getModuleId!==void 0))}function q(re,Ue,Re){var nt=re.displayName;if(nt)return nt;var at=Ue.displayName||Ue.name||"";return at!==""?Re+"("+at+")":Re}function J(re){return re.displayName||"Context"}function X(re){if(re==null)return null;if(typeof re.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof re=="function")return re.displayName||re.name||null;if(typeof re=="string")return re;switch(re){case n:return"Fragment";case t:return"Portal";case l:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case T:return"SuspenseList"}if(typeof re=="object")switch(re.$$typeof){case f:var Ue=re;return J(Ue)+".Consumer";case u:var Re=re;return J(Re._context)+".Provider";case p:return q(re,re.render,"ForwardRef");case k:var nt=re.displayName||null;return nt!==null?nt:X(re.type)||"Memo";case b:{var at=re,Et=at._payload,lt=at._init;try{return X(lt(Et))}catch{return null}}}return null}var ne=Object.assign,ge=0,me,ve,de,De,ue,le,fe;function Me(){}Me.__reactDisabledLog=!0;function Ve(){{if(ge===0){me=console.log,ve=console.info,de=console.warn,De=console.error,ue=console.group,le=console.groupCollapsed,fe=console.groupEnd;var re={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:re,log:re,warn:re,error:re,group:re,groupCollapsed:re,groupEnd:re})}ge++}}function pe(){{if(ge--,ge===0){var re={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},re,{value:me}),info:ne({},re,{value:ve}),warn:ne({},re,{value:de}),error:ne({},re,{value:De}),group:ne({},re,{value:ue}),groupCollapsed:ne({},re,{value:le}),groupEnd:ne({},re,{value:fe})})}ge<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=C.ReactCurrentDispatcher,ze;function Ze(re,Ue,Re){{if(ze===void 0)try{throw Error()}catch(at){var nt=at.stack.trim().match(/\n( *(at )?)/);ze=nt&&nt[1]||""}return`
19
19
  `+ze+re}}var et=!1,xe;{var Se=typeof WeakMap=="function"?WeakMap:Map;xe=new Se}function be(re,Ue){if(!re||et)return"";{var Re=xe.get(re);if(Re!==void 0)return Re}var nt;et=!0;var at=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Et;Et=ke.current,ke.current=null,Ve();try{if(Ue){var lt=function(){throw Error()};if(Object.defineProperty(lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(lt,[])}catch(Gr){nt=Gr}Reflect.construct(re,[],lt)}else{try{lt.call()}catch(Gr){nt=Gr}re.call(lt.prototype)}}else{try{throw Error()}catch(Gr){nt=Gr}re()}}catch(Gr){if(Gr&&nt&&typeof Gr.stack=="string"){for(var zt=Gr.stack.split(`
20
20
  `),ar=nt.stack.split(`
21
21
  `),Zt=zt.length-1,ir=ar.length-1;Zt>=1&&ir>=0&&zt[Zt]!==ar[ir];)ir--;for(;Zt>=1&&ir>=0;Zt--,ir--)if(zt[Zt]!==ar[ir]){if(Zt!==1||ir!==1)do if(Zt--,ir--,ir<0||zt[Zt]!==ar[ir]){var Sr=`
@@ -30,9 +30,9 @@ Check the top-level render call using <`+Re+">.")}return Ue}}function Ht(re,Ue){
30
30
  * Released under MIT license <https://lodash.com/license>
31
31
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
32
32
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
33
- */var b4=Bf.exports,Yv;function _4(){return Yv||(Yv=1,function(r,e){(function(){var t,n="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,T="__lodash_placeholder__",k=1,b=2,x=4,_=1,I=2,w=1,C=2,D=4,O=8,F=16,j=32,$=64,Z=128,ie=256,Y=512,se=30,q="...",J=800,X=16,ne=1,ge=2,me=3,ve=1/0,de=9007199254740991,De=17976931348623157e292,ue=NaN,le=4294967295,fe=le-1,Me=le>>>1,Ve=[["ary",Z],["bind",w],["bindKey",C],["curry",O],["curryRight",F],["flip",Y],["partial",j],["partialRight",$],["rearg",ie]],pe="[object Arguments]",ke="[object Array]",ze="[object AsyncFunction]",Ze="[object Boolean]",et="[object Date]",xe="[object DOMException]",Se="[object Error]",be="[object Function]",Le="[object GeneratorFunction]",$e="[object Map]",bt="[object Number]",Ge="[object Null]",ht="[object Object]",mt="[object Promise]",Oe="[object Proxy]",He="[object RegExp]",wt="[object Set]",_t="[object String]",vt="[object Symbol]",Tt="[object Undefined]",Pe="[object WeakMap]",Ke="[object WeakSet]",xt="[object ArrayBuffer]",jt="[object DataView]",At="[object Float32Array]",Be="[object Float64Array]",Lt="[object Int8Array]",Dt="[object Int16Array]",dr="[object Int32Array]",Er="[object Uint8Array]",Mr="[object Uint8ClampedArray]",_e="[object Uint16Array]",te="[object Uint32Array]",tt=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,qt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,Mt=/[&<>"']/g,tr=RegExp(kt.source),Xe=RegExp(Mt.source),rt=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,Ht=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xt=/^\w*$/,Or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/[\\^$.*+?()[\]{}|]/g,St=RegExp(st.source),pt=/^\s+/,Bt=/\s/,gr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,re=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,Re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,at=/\\(\\)?/g,Et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,zt=/^[-+]0x[0-9a-f]+$/i,ar=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,ir=/^0o[0-7]+$/i,Sr=/^(?:0|[1-9]\d*)$/,nr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wr=/($^)/,Gr=/['\n\r\u2028\u2029\\]/g,mn="\\ud800-\\udfff",Jr="\\u0300-\\u036f",Yn="\\ufe20-\\ufe2f",Rn="\\u20d0-\\u20ff",Xn=Jr+Yn+Rn,Jn="\\u2700-\\u27bf",an="a-z\\xdf-\\xf6\\xf8-\\xff",Nn="\\xac\\xb1\\xd7\\xf7",Tn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gi="\\u2000-\\u206f",Ci=" \\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",wi="A-Z\\xc0-\\xd6\\xd8-\\xde",In="\\ufe0e\\ufe0f",En=Nn+Tn+gi+Ci,hn="['’]",Qn="["+mn+"]",ln="["+En+"]",vn="["+Xn+"]",A="\\d+",N="["+Jn+"]",V="["+an+"]",Q="[^"+mn+En+A+Jn+an+wi+"]",Ee="\\ud83c[\\udffb-\\udfff]",we="(?:"+vn+"|"+Ee+")",je="[^"+mn+"]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+wi+"]",$t="\\u200d",_r="(?:"+V+"|"+Q+")",Yr="(?:"+Ut+"|"+Q+")",_n="(?:"+hn+"(?:d|ll|m|re|s|t|ve))?",xn="(?:"+hn+"(?:D|LL|M|RE|S|T|VE))?",ci=we+"?",Hn="["+In+"]?",Ai="(?:"+$t+"(?:"+[je,ft,Pt].join("|")+")"+Hn+ci+")*",Qr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zn=Hn+ci+Ai,ei="(?:"+[N,ft,Pt].join("|")+")"+zn,xo="(?:"+[je+vn+"?",vn,ft,Pt,Qn].join("|")+")",io=RegExp(hn,"g"),oo=RegExp(vn,"g"),Ln=RegExp(Ee+"(?="+Ee+")|"+xo+zn,"g"),So=RegExp([Ut+"?"+V+"+"+_n+"(?="+[ln,Ut,"$"].join("|")+")",Yr+"+"+xn+"(?="+[ln,Ut+_r,"$"].join("|")+")",Ut+"?"+_r+"+"+_n,Ut+"+"+xn,mi,Qr,A,ei].join("|"),"g"),ti=RegExp("["+$t+mn+Xn+In+"]"),ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wi=["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"],Pr=-1,Cr={};Cr[At]=Cr[Be]=Cr[Lt]=Cr[Dt]=Cr[dr]=Cr[Er]=Cr[Mr]=Cr[_e]=Cr[te]=!0,Cr[pe]=Cr[ke]=Cr[xt]=Cr[Ze]=Cr[jt]=Cr[et]=Cr[Se]=Cr[be]=Cr[$e]=Cr[bt]=Cr[ht]=Cr[He]=Cr[wt]=Cr[_t]=Cr[Pe]=!1;var Lr={};Lr[pe]=Lr[ke]=Lr[xt]=Lr[jt]=Lr[Ze]=Lr[et]=Lr[At]=Lr[Be]=Lr[Lt]=Lr[Dt]=Lr[dr]=Lr[$e]=Lr[bt]=Lr[ht]=Lr[He]=Lr[wt]=Lr[_t]=Lr[vt]=Lr[Er]=Lr[Mr]=Lr[_e]=Lr[te]=!0,Lr[Se]=Lr[be]=Lr[Pe]=!1;var L={À:"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"},G={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jt=parseFloat,Vt=parseInt,mr=typeof xi=="object"&&xi&&xi.Object===Object&&xi,xr=typeof self=="object"&&self&&self.Object===Object&&self,hr=mr||xr||Function("return this")(),wr=e&&!e.nodeType&&e,en=wr&&!0&&r&&!r.nodeType&&r,Dn=en&&en.exports===wr,Zr=Dn&&mr.process,qr=function(){try{var ye=en&&en.require&&en.require("util").types;return ye||Zr&&Zr.binding&&Zr.binding("util")}catch{}}(),tn=qr&&qr.isArrayBuffer,ui=qr&&qr.isDate,vi=qr&&qr.isMap,$n=qr&&qr.isRegExp,Co=qr&&qr.isSet,Vi=qr&&qr.isTypedArray;function cn(ye,We,Fe){switch(Fe.length){case 0:return ye.call(We);case 1:return ye.call(We,Fe[0]);case 2:return ye.call(We,Fe[0],Fe[1]);case 3:return ye.call(We,Fe[0],Fe[1],Fe[2])}return ye.apply(We,Fe)}function ps(ye,We,Fe,Nt){for(var sr=-1,Nr=ye==null?0:ye.length;++sr<Nr;){var Sn=ye[sr];We(Nt,Sn,Fe(Sn),ye)}return Nt}function Un(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length;++Fe<Nt&&We(ye[Fe],Fe,ye)!==!1;);return ye}function hl(ye,We){for(var Fe=ye==null?0:ye.length;Fe--&&We(ye[Fe],Fe,ye)!==!1;);return ye}function ka(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length;++Fe<Nt;)if(!We(ye[Fe],Fe,ye))return!1;return!0}function Gi(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length,sr=0,Nr=[];++Fe<Nt;){var Sn=ye[Fe];We(Sn,Fe,ye)&&(Nr[sr++]=Sn)}return Nr}function wo(ye,We){var Fe=ye==null?0:ye.length;return!!Fe&&Ao(ye,We,0)>-1}function Wn(ye,We,Fe){for(var Nt=-1,sr=ye==null?0:ye.length;++Nt<sr;)if(Fe(We,ye[Nt]))return!0;return!1}function Xr(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length,sr=Array(Nt);++Fe<Nt;)sr[Fe]=We(ye[Fe],Fe,ye);return sr}function Ti(ye,We){for(var Fe=-1,Nt=We.length,sr=ye.length;++Fe<Nt;)ye[sr+Fe]=We[Fe];return ye}function Ra(ye,We,Fe,Nt){var sr=-1,Nr=ye==null?0:ye.length;for(Nt&&Nr&&(Fe=ye[++sr]);++sr<Nr;)Fe=We(Fe,ye[sr],sr,ye);return Fe}function pl(ye,We,Fe,Nt){var sr=ye==null?0:ye.length;for(Nt&&sr&&(Fe=ye[--sr]);sr--;)Fe=We(Fe,ye[sr],sr,ye);return Fe}function Uo(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length;++Fe<Nt;)if(We(ye[Fe],Fe,ye))return!0;return!1}var gl=E("length");function ml(ye){return ye.split("")}function Ks(ye){return ye.match(Re)||[]}function gs(ye,We,Fe){var Nt;return Fe(ye,function(sr,Nr,Sn){if(We(sr,Nr,Sn))return Nt=Nr,!1}),Nt}function ms(ye,We,Fe,Nt){for(var sr=ye.length,Nr=Fe+(Nt?1:-1);Nt?Nr--:++Nr<sr;)if(We(ye[Nr],Nr,ye))return Nr;return-1}function Ao(ye,We,Fe){return We===We?df(ye,We,Fe):ms(ye,Ys,Fe)}function vl(ye,We,Fe,Nt){for(var sr=Fe-1,Nr=ye.length;++sr<Nr;)if(Nt(ye[sr],We))return sr;return-1}function Ys(ye){return ye!==ye}function Ia(ye,We){var Fe=ye==null?0:ye.length;return Fe?Ie(ye,We)/Fe:ue}function E(ye){return function(We){return We==null?t:We[ye]}}function P(ye){return function(We){return ye==null?t:ye[We]}}function z(ye,We,Fe,Nt,sr){return sr(ye,function(Nr,Sn,Vr){Fe=Nt?(Nt=!1,Nr):We(Fe,Nr,Sn,Vr)}),Fe}function ee(ye,We){var Fe=ye.length;for(ye.sort(We);Fe--;)ye[Fe]=ye[Fe].value;return ye}function Ie(ye,We){for(var Fe,Nt=-1,sr=ye.length;++Nt<sr;){var Nr=We(ye[Nt]);Nr!==t&&(Fe=Fe===t?Nr:Fe+Nr)}return Fe}function Te(ye,We){for(var Fe=-1,Nt=Array(ye);++Fe<ye;)Nt[Fe]=We(Fe);return Nt}function Je(ye,We){return Xr(We,function(Fe){return[Fe,ye[Fe]]})}function Ct(ye){return ye&&ye.slice(0,fu(ye)+1).replace(pt,"")}function Wt(ye){return function(We){return ye(We)}}function pr(ye,We){return Xr(We,function(Fe){return ye[Fe]})}function lr(ye,We){return ye.has(We)}function Kr(ye,We){for(var Fe=-1,Nt=ye.length;++Fe<Nt&&Ao(We,ye[Fe],0)>-1;);return Fe}function ni(ye,We){for(var Fe=ye.length;Fe--&&Ao(We,ye[Fe],0)>-1;);return Fe}function Ei(ye,We){for(var Fe=ye.length,Nt=0;Fe--;)ye[Fe]===We&&++Nt;return Nt}var ki=P(L),Xs=P(G);function yl(ye){return"\\"+qe[ye]}function vs(ye,We){return ye==null?t:ye[We]}function Js(ye){return ti.test(ye)}function uf(ye){return ri.test(ye)}function uc(ye){for(var We,Fe=[];!(We=ye.next()).done;)Fe.push(We.value);return Fe}function fc(ye){var We=-1,Fe=Array(ye.size);return ye.forEach(function(Nt,sr){Fe[++We]=[sr,Nt]}),Fe}function uu(ye,We){return function(Fe){return ye(We(Fe))}}function To(ye,We){for(var Fe=-1,Nt=ye.length,sr=0,Nr=[];++Fe<Nt;){var Sn=ye[Fe];(Sn===We||Sn===T)&&(ye[Fe]=T,Nr[sr++]=Fe)}return Nr}function La(ye){var We=-1,Fe=Array(ye.size);return ye.forEach(function(Nt){Fe[++We]=Nt}),Fe}function ff(ye){var We=-1,Fe=Array(ye.size);return ye.forEach(function(Nt){Fe[++We]=[Nt,Nt]}),Fe}function df(ye,We,Fe){for(var Nt=Fe-1,sr=ye.length;++Nt<sr;)if(ye[Nt]===We)return Nt;return-1}function hf(ye,We,Fe){for(var Nt=Fe+1;Nt--;)if(ye[Nt]===We)return Nt;return Nt}function Qs(ye){return Js(ye)?bl(ye):gl(ye)}function pn(ye){return Js(ye)?Ri(ye):ml(ye)}function fu(ye){for(var We=ye.length;We--&&Bt.test(ye.charAt(We)););return We}var du=P(ce);function bl(ye){for(var We=Ln.lastIndex=0;Ln.test(ye);)++We;return We}function Ri(ye){return ye.match(Ln)||[]}function hu(ye){return ye.match(So)||[]}var _l=function ye(We){We=We==null?hr:Eo.defaults(hr.Object(),We,Eo.pick(hr,Wi));var Fe=We.Array,Nt=We.Date,sr=We.Error,Nr=We.Function,Sn=We.Math,Vr=We.Object,ea=We.RegExp,pu=We.String,qi=We.TypeError,xl=Fe.prototype,pf=Nr.prototype,Wo=Vr.prototype,rn=We["__core-js_shared__"],Vo=pf.toString,$r=Wo.hasOwnProperty,dc=0,un=function(){var o=/[^.]+$/.exec(rn&&rn.keys&&rn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),ko=Wo.toString,hc=Vo.call(Vr),pc=hr._,gc=ea("^"+Vo.call($r).replace(st,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ta=Dn?We.Buffer:t,Ro=We.Symbol,Da=We.Uint8Array,Ma=ta?ta.allocUnsafe:t,ys=uu(Vr.getPrototypeOf,Vr),ra=Vr.create,Sl=Wo.propertyIsEnumerable,Io=xl.splice,Cl=Ro?Ro.isConcatSpreadable:t,Zi=Ro?Ro.iterator:t,Lo=Ro?Ro.toStringTag:t,Go=function(){try{var o=Uc(Vr,"defineProperty");return o({},"",{}),o}catch{}}(),gf=We.clearTimeout!==hr.clearTimeout&&We.clearTimeout,Oa=Nt&&Nt.now!==hr.Date.now&&Nt.now,gu=We.setTimeout!==hr.setTimeout&&We.setTimeout,na=Sn.ceil,bs=Sn.floor,ia=Vr.getOwnPropertySymbols,wl=ta?ta.isBuffer:t,oa=We.isFinite,Pa=xl.join,mu=uu(Vr.keys,Vr),fn=Sn.max,Mn=Sn.min,Zo=Nt.now,mc=We.parseInt,Ko=Sn.random,Al=xl.reverse,so=Uc(We,"DataView"),Yo=Uc(We,"Map"),sa=Uc(We,"Promise"),ao=Uc(We,"Set"),Do=Uc(We,"WeakMap"),aa=Uc(Vr,"create"),Na=Do&&new Do,_s={},Xo=Wc(so),vc=Wc(Yo),mf=Wc(sa),vu=Wc(ao),la=Wc(Do),Jo=Ro?Ro.prototype:t,xs=Jo?Jo.valueOf:t,Fa=Jo?Jo.toString:t;function U(o){if(jn(o)&&!br(o)&&!(o instanceof yr)){if(o instanceof ii)return o;if($r.call(o,"__wrapped__"))return dv(o)}return new ii(o)}var Mo=function(){function o(){}return function(a){if(!On(a))return{};if(ra)return ra(a);o.prototype=a;var g=new o;return o.prototype=t,g}}();function Oo(){}function ii(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}U.templateSettings={escape:rt,evaluate:Rt,interpolate:Ht,variable:"",imports:{_:U}},U.prototype=Oo.prototype,U.prototype.constructor=U,ii.prototype=Mo(Oo.prototype),ii.prototype.constructor=ii;function yr(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=le,this.__views__=[]}function Tl(){var o=new yr(this.__wrapped__);return o.__actions__=si(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=si(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=si(this.__views__),o}function ja(){if(this.__filtered__){var o=new yr(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function El(){var o=this.__wrapped__.value(),a=this.__dir__,g=br(o),R=a<0,H=g?o.length:0,K=qS(0,H,this.__views__),ae=K.start,he=K.end,Ce=he-ae,it=R?he:ae-1,ot=this.__iteratees__,yt=ot.length,Ft=0,Qt=Mn(Ce,this.__takeCount__);if(!g||!R&&H==Ce&&Qt==Ce)return oi(o,this.__actions__);var ur=[];e:for(;Ce--&&Ft<Qt;){it+=a;for(var Rr=-1,fr=o[it];++Rr<yt;){var jr=ot[Rr],zr=jr.iteratee,qo=jr.type,to=zr(fr);if(qo==ge)fr=to;else if(!to){if(qo==ne)continue e;break e}}ur[Ft++]=fr}return ur}yr.prototype=Mo(Oo.prototype),yr.prototype.constructor=yr;function lo(o){var a=-1,g=o==null?0:o.length;for(this.clear();++a<g;){var R=o[a];this.set(R[0],R[1])}}function yc(){this.__data__=aa?aa(null):{},this.size=0}function yu(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function bu(o){var a=this.__data__;if(aa){var g=a[o];return g===p?t:g}return $r.call(a,o)?a[o]:t}function _u(o){var a=this.__data__;return aa?a[o]!==t:$r.call(a,o)}function vf(o,a){var g=this.__data__;return this.size+=this.has(o)?0:1,g[o]=aa&&a===t?p:a,this}lo.prototype.clear=yc,lo.prototype.delete=yu,lo.prototype.get=bu,lo.prototype.has=_u,lo.prototype.set=vf;function co(o){var a=-1,g=o==null?0:o.length;for(this.clear();++a<g;){var R=o[a];this.set(R[0],R[1])}}function yf(){this.__data__=[],this.size=0}function bf(o){var a=this.__data__,g=Ki(a,o);if(g<0)return!1;var R=a.length-1;return g==R?a.pop():Io.call(a,g,1),--this.size,!0}function bc(o){var a=this.__data__,g=Ki(a,o);return g<0?t:a[g][1]}function Ba(o){return Ki(this.__data__,o)>-1}function _f(o,a){var g=this.__data__,R=Ki(g,o);return R<0?(++this.size,g.push([o,a])):g[R][1]=a,this}co.prototype.clear=yf,co.prototype.delete=bf,co.prototype.get=bc,co.prototype.has=Ba,co.prototype.set=_f;function Po(o){var a=-1,g=o==null?0:o.length;for(this.clear();++a<g;){var R=o[a];this.set(R[0],R[1])}}function _c(){this.size=0,this.__data__={hash:new lo,map:new(Yo||co),string:new lo}}function kl(o){var a=yd(this,o).delete(o);return this.size-=a?1:0,a}function xf(o){return yd(this,o).get(o)}function Sf(o){return yd(this,o).has(o)}function Cf(o,a){var g=yd(this,o),R=g.size;return g.set(o,a),this.size+=g.size==R?0:1,this}Po.prototype.clear=_c,Po.prototype.delete=kl,Po.prototype.get=xf,Po.prototype.has=Sf,Po.prototype.set=Cf;function fi(o){var a=-1,g=o==null?0:o.length;for(this.__data__=new Po;++a<g;)this.add(o[a])}function xc(o){return this.__data__.set(o,p),this}function Rl(o){return this.__data__.has(o)}fi.prototype.add=fi.prototype.push=xc,fi.prototype.has=Rl;function kr(o){var a=this.__data__=new co(o);this.size=a.size}function Ii(){this.__data__=new co,this.size=0}function ca(o){var a=this.__data__,g=a.delete(o);return this.size=a.size,g}function Ss(o){return this.__data__.get(o)}function Fr(o){return this.__data__.has(o)}function Qo(o,a){var g=this.__data__;if(g instanceof co){var R=g.__data__;if(!Yo||R.length<i-1)return R.push([o,a]),this.size=++g.size,this;g=this.__data__=new Po(R)}return g.set(o,a),this.size=g.size,this}kr.prototype.clear=Ii,kr.prototype.delete=ca,kr.prototype.get=Ss,kr.prototype.has=Fr,kr.prototype.set=Qo;function qa(o,a){var g=br(o),R=!g&&Vc(o),H=!g&&!R&&Gl(o),K=!g&&!R&&!H&&Ou(o),ae=g||R||H||K,he=ae?Te(o.length,pu):[],Ce=he.length;for(var it in o)(a||$r.call(o,it))&&!(ae&&(it=="length"||H&&(it=="offset"||it=="parent")||K&&(it=="buffer"||it=="byteLength"||it=="byteOffset")||Ja(it,Ce)))&&he.push(it);return he}function yi(o){var a=o.length;return a?o[Rs(0,a-1)]:t}function Li(o,a){return bd(si(o),ws(a,0,o.length))}function uo(o){return bd(si(o))}function Sc(o,a,g){(g!==t&&!Ls(o[a],g)||g===t&&!(a in o))&&Di(o,a,g)}function di(o,a,g){var R=o[a];(!($r.call(o,a)&&Ls(R,g))||g===t&&!(a in o))&&Di(o,a,g)}function Ki(o,a){for(var g=o.length;g--;)if(Ls(o[g][0],a))return g;return-1}function Cs(o,a,g,R){return es(o,function(H,K,ae){a(R,H,g(H),ae)}),R}function xu(o,a){return o&&Qi(a,bi(a),o)}function Cc(o,a){return o&&Qi(a,yo(a),o)}function Di(o,a,g){a=="__proto__"&&Go?Go(o,a,{configurable:!0,enumerable:!0,value:g,writable:!0}):o[a]=g}function wc(o,a){for(var g=-1,R=a.length,H=Fe(R),K=o==null;++g<R;)H[g]=K?t:Vh(o,a[g]);return H}function ws(o,a,g){return o===o&&(g!==t&&(o=o<=g?o:g),a!==t&&(o=o>=a?o:a)),o}function hi(o,a,g,R,H,K){var ae,he=a&k,Ce=a&b,it=a&x;if(g&&(ae=H?g(o,R,H,K):g(o)),ae!==t)return ae;if(!On(o))return o;var ot=br(o);if(ot){if(ae=zS(o),!he)return si(o,ae)}else{var yt=Hi(o),Ft=yt==be||yt==Le;if(Gl(o))return va(o,he);if(yt==ht||yt==pe||Ft&&!H){if(ae=Ce||Ft?{}:nv(o),!he)return Ce?Du(o,Cc(ae,o)):Ef(o,xu(ae,o))}else{if(!Lr[yt])return H?o:{};ae=$S(o,yt,he)}}K||(K=new kr);var Qt=K.get(o);if(Qt)return Qt;K.set(o,ae),Dv(o)?o.forEach(function(fr){ae.add(hi(fr,a,g,fr,o,K))}):Iv(o)&&o.forEach(function(fr,jr){ae.set(jr,hi(fr,a,g,jr,o,K))});var ur=it?Ce?Dh:Lh:Ce?yo:bi,Rr=ot?t:ur(o);return Un(Rr||o,function(fr,jr){Rr&&(jr=fr,fr=o[jr]),di(ae,jr,hi(fr,a,g,jr,o,K))}),ae}function Ac(o){var a=bi(o);return function(g){return Tc(g,o,a)}}function Tc(o,a,g){var R=g.length;if(o==null)return!R;for(o=Vr(o);R--;){var H=g[R],K=a[H],ae=o[H];if(ae===t&&!(H in o)||!K(ae))return!1}return!0}function Ec(o,a,g){if(typeof o!="function")throw new qi(u);return If(function(){o.apply(t,g)},a)}function As(o,a,g,R){var H=-1,K=wo,ae=!0,he=o.length,Ce=[],it=a.length;if(!he)return Ce;g&&(a=Xr(a,Wt(g))),R?(K=Wn,ae=!1):a.length>=i&&(K=lr,ae=!1,a=new fi(a));e:for(;++H<he;){var ot=o[H],yt=g==null?ot:g(ot);if(ot=R||ot!==0?ot:0,ae&&yt===yt){for(var Ft=it;Ft--;)if(a[Ft]===yt)continue e;Ce.push(ot)}else K(a,yt,R)||Ce.push(ot)}return Ce}var es=s(Mi),kc=s(Ll,!0);function Su(o,a){var g=!0;return es(o,function(R,H,K){return g=!!a(R,H,K),g}),g}function Il(o,a,g){for(var R=-1,H=o.length;++R<H;){var K=o[R],ae=a(K);if(ae!=null&&(he===t?ae===ae&&!Bo(ae):g(ae,he)))var he=ae,Ce=K}return Ce}function wf(o,a,g,R){var H=o.length;for(g=Ar(g),g<0&&(g=-g>H?0:H+g),R=R===t||R>H?H:Ar(R),R<0&&(R+=H),R=g>R?0:Ov(R);g<R;)o[g++]=a;return o}function Cu(o,a){var g=[];return es(o,function(R,H,K){a(R,H,K)&&g.push(R)}),g}function Vn(o,a,g,R,H){var K=-1,ae=o.length;for(g||(g=WS),H||(H=[]);++K<ae;){var he=o[K];a>0&&g(he)?a>1?Vn(he,a-1,g,R,H):Ti(H,he):R||(H[H.length]=he)}return H}var Rc=c(),wu=c(!0);function Mi(o,a){return o&&Rc(o,a,bi)}function Ll(o,a){return o&&wu(o,a,bi)}function ua(o,a){return Gi(a,function(g){return Qa(o[g])})}function ts(o,a){a=jo(a,o);for(var g=0,R=a.length;o!=null&&g<R;)o=o[ya(a[g++])];return g&&g==R?o:t}function Ha(o,a,g){var R=a(o);return br(o)?R:Ti(R,g(o))}function Fn(o){return o==null?o===t?Tt:Ge:Lo&&Lo in Vr(o)?BS(o):JS(o)}function Ts(o,a){return o>a}function Dl(o,a){return o!=null&&$r.call(o,a)}function fa(o,a){return o!=null&&a in Vr(o)}function Ml(o,a,g){return o>=Mn(a,g)&&o<fn(a,g)}function da(o,a,g){for(var R=g?Wn:wo,H=o[0].length,K=o.length,ae=K,he=Fe(K),Ce=1/0,it=[];ae--;){var ot=o[ae];ae&&a&&(ot=Xr(ot,Wt(a))),Ce=Mn(ot.length,Ce),he[ae]=!g&&(a||H>=120&&ot.length>=120)?new fi(ae&&ot):t}ot=o[0];var yt=-1,Ft=he[0];e:for(;++yt<H&&it.length<Ce;){var Qt=ot[yt],ur=a?a(Qt):Qt;if(Qt=g||Qt!==0?Qt:0,!(Ft?lr(Ft,ur):R(it,ur,g))){for(ae=K;--ae;){var Rr=he[ae];if(!(Rr?lr(Rr,ur):R(o[ae],ur,g)))continue e}Ft&&Ft.push(ur),it.push(Qt)}}return it}function Ol(o,a,g,R){return Mi(o,function(H,K,ae){a(R,g(H),K,ae)}),R}function fo(o,a,g){a=jo(a,o),o=av(o,a);var R=o==null?o:o[ya(as(a))];return R==null?t:cn(R,o,g)}function Pl(o){return jn(o)&&Fn(o)==pe}function Es(o){return jn(o)&&Fn(o)==xt}function Au(o){return jn(o)&&Fn(o)==et}function za(o,a,g,R,H){return o===a?!0:o==null||a==null||!jn(o)&&!jn(a)?o!==o&&a!==a:ha(o,a,g,R,za,H)}function ha(o,a,g,R,H,K){var ae=br(o),he=br(a),Ce=ae?ke:Hi(o),it=he?ke:Hi(a);Ce=Ce==pe?ht:Ce,it=it==pe?ht:it;var ot=Ce==ht,yt=it==ht,Ft=Ce==it;if(Ft&&Gl(o)){if(!Gl(a))return!1;ae=!0,ot=!1}if(Ft&&!ot)return K||(K=new kr),ae||Ou(o)?ev(o,a,g,R,H,K):FS(o,a,Ce,g,R,H,K);if(!(g&_)){var Qt=ot&&$r.call(o,"__wrapped__"),ur=yt&&$r.call(a,"__wrapped__");if(Qt||ur){var Rr=Qt?o.value():o,fr=ur?a.value():a;return K||(K=new kr),H(Rr,fr,g,R,K)}}return Ft?(K||(K=new kr),jS(o,a,g,R,H,K)):!1}function pa(o){return jn(o)&&Hi(o)==$e}function Ic(o,a,g,R){var H=g.length,K=H,ae=!R;if(o==null)return!K;for(o=Vr(o);H--;){var he=g[H];if(ae&&he[2]?he[1]!==o[he[0]]:!(he[0]in o))return!1}for(;++H<K;){he=g[H];var Ce=he[0],it=o[Ce],ot=he[1];if(ae&&he[2]){if(it===t&&!(Ce in o))return!1}else{var yt=new kr;if(R)var Ft=R(it,ot,Ce,o,a,yt);if(!(Ft===t?za(ot,it,_|I,R,yt):Ft))return!1}}return!0}function Tu(o){if(!On(o)||GS(o))return!1;var a=Qa(o)?gc:Zt;return a.test(Wc(o))}function ks(o){return jn(o)&&Fn(o)==He}function Nl(o){return jn(o)&&Hi(o)==wt}function No(o){return jn(o)&&Ad(o.length)&&!!Cr[Fn(o)]}function Fl(o){return typeof o=="function"?o:o==null?bo:typeof o=="object"?br(o)?Ua(o[0],o[1]):ho(o):Wv(o)}function Fo(o){if(!Rf(o))return mu(o);var a=[];for(var g in Vr(o))$r.call(o,g)&&g!="constructor"&&a.push(g);return a}function $a(o){if(!On(o))return XS(o);var a=Rf(o),g=[];for(var R in o)R=="constructor"&&(a||!$r.call(o,R))||g.push(R);return g}function Yi(o,a){return o<a}function Xi(o,a){var g=-1,R=vo(o)?Fe(o.length):[];return es(o,function(H,K,ae){R[++g]=a(H,K,ae)}),R}function ho(o){var a=Oh(o);return a.length==1&&a[0][2]?ov(a[0][0],a[0][1]):function(g){return g===o||Ic(g,o,a)}}function Ua(o,a){return Nh(o)&&iv(a)?ov(ya(o),a):function(g){var R=Vh(g,o);return R===t&&R===a?Gh(g,o):za(a,R,_|I)}}function rs(o,a,g,R,H){o!==a&&Rc(a,function(K,ae){if(H||(H=new kr),On(K))Ji(o,a,ae,g,rs,R,H);else{var he=R?R(jh(o,ae),K,ae+"",o,a,H):t;he===t&&(he=K),Sc(o,ae,he)}},yo)}function Ji(o,a,g,R,H,K,ae){var he=jh(o,g),Ce=jh(a,g),it=ae.get(Ce);if(it){Sc(o,g,it);return}var ot=K?K(he,Ce,g+"",o,a,ae):t,yt=ot===t;if(yt){var Ft=br(Ce),Qt=!Ft&&Gl(Ce),ur=!Ft&&!Qt&&Ou(Ce);ot=Ce,Ft||Qt||ur?br(he)?ot=he:Zn(he)?ot=si(he):Qt?(yt=!1,ot=va(Ce,!0)):ur?(yt=!1,ot=zc(Ce,!0)):ot=[]:Lf(Ce)||Vc(Ce)?(ot=he,Vc(he)?ot=Pv(he):(!On(he)||Qa(he))&&(ot=nv(Ce))):yt=!1}yt&&(ae.set(Ce,ot),H(ot,Ce,R,K,ae),ae.delete(Ce)),Sc(o,g,ot)}function ga(o,a){var g=o.length;if(g)return a+=a<0?g:0,Ja(a,g)?o[a]:t}function jl(o,a,g){a.length?a=Xr(a,function(K){return br(K)?function(ae){return ts(ae,K.length===1?K[0]:K)}:K}):a=[bo];var R=-1;a=Xr(a,Wt(cr()));var H=Xi(o,function(K,ae,he){var Ce=Xr(a,function(it){return it(K)});return{criteria:Ce,index:++R,value:K}});return ee(H,function(K,ae){return Iu(K,ae,g)})}function Wa(o,a){return ma(o,a,function(g,R){return Gh(o,R)})}function ma(o,a,g){for(var R=-1,H=a.length,K={};++R<H;){var ae=a[R],he=ts(o,ae);g(he,ae)&&Is(K,jo(ae,o),he)}return K}function Eu(o){return function(a){return ts(a,o)}}function Lc(o,a,g,R){var H=R?vl:Ao,K=-1,ae=a.length,he=o;for(o===a&&(a=si(a)),g&&(he=Xr(o,Wt(g)));++K<ae;)for(var Ce=0,it=a[K],ot=g?g(it):it;(Ce=H(he,ot,Ce,R))>-1;)he!==o&&Io.call(he,Ce,1),Io.call(o,Ce,1);return o}function Dc(o,a){for(var g=o?a.length:0,R=g-1;g--;){var H=a[g];if(g==R||H!==K){var K=H;Ja(H)?Io.call(o,H,1):Fc(o,H)}}return o}function Rs(o,a){return o+bs(Ko()*(a-o+1))}function Mc(o,a,g,R){for(var H=-1,K=fn(na((a-o)/(g||1)),0),ae=Fe(K);K--;)ae[R?K:++H]=o,o+=g;return ae}function Bl(o,a){var g="";if(!o||a<1||a>de)return g;do a%2&&(g+=o),a=bs(a/2),a&&(o+=o);while(a);return g}function vr(o,a){return Bh(sv(o,a,bo),o+"")}function Va(o){return yi(Pu(o))}function Oc(o,a){var g=Pu(o);return bd(g,ws(a,0,g.length))}function Is(o,a,g,R){if(!On(o))return o;a=jo(a,o);for(var H=-1,K=a.length,ae=K-1,he=o;he!=null&&++H<K;){var Ce=ya(a[H]),it=g;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return o;if(H!=ae){var ot=he[Ce];it=R?R(ot,Ce,he):t,it===t&&(it=On(ot)?ot:Ja(a[H+1])?[]:{})}di(he,Ce,it),he=he[Ce]}return o}var Pc=Na?function(o,a){return Na.set(o,a),o}:bo,ku=Go?function(o,a){return Go(o,"toString",{configurable:!0,enumerable:!1,value:Kh(a),writable:!0})}:bo;function Nc(o){return bd(Pu(o))}function Oi(o,a,g){var R=-1,H=o.length;a<0&&(a=-a>H?0:H+a),g=g>H?H:g,g<0&&(g+=H),H=a>g?0:g-a>>>0,a>>>=0;for(var K=Fe(H);++R<H;)K[R]=o[R+a];return K}function Af(o,a){var g;return es(o,function(R,H,K){return g=a(R,H,K),!g}),!!g}function ql(o,a,g){var R=0,H=o==null?R:o.length;if(typeof a=="number"&&a===a&&H<=Me){for(;R<H;){var K=R+H>>>1,ae=o[K];ae!==null&&!Bo(ae)&&(g?ae<=a:ae<a)?R=K+1:H=K}return H}return Hl(o,a,bo,g)}function Hl(o,a,g,R){var H=0,K=o==null?0:o.length;if(K===0)return 0;a=g(a);for(var ae=a!==a,he=a===null,Ce=Bo(a),it=a===t;H<K;){var ot=bs((H+K)/2),yt=g(o[ot]),Ft=yt!==t,Qt=yt===null,ur=yt===yt,Rr=Bo(yt);if(ae)var fr=R||ur;else it?fr=ur&&(R||Ft):he?fr=ur&&Ft&&(R||!Qt):Ce?fr=ur&&Ft&&!Qt&&(R||!Rr):Qt||Rr?fr=!1:fr=R?yt<=a:yt<a;fr?H=ot+1:K=ot}return Mn(K,fe)}function Ru(o,a){for(var g=-1,R=o.length,H=0,K=[];++g<R;){var ae=o[g],he=a?a(ae):ae;if(!g||!Ls(he,Ce)){var Ce=he;K[H++]=ae===0?0:ae}}return K}function zl(o){return typeof o=="number"?o:Bo(o)?ue:+o}function Pi(o){if(typeof o=="string")return o;if(br(o))return Xr(o,Pi)+"";if(Bo(o))return Fa?Fa.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function kn(o,a,g){var R=-1,H=wo,K=o.length,ae=!0,he=[],Ce=he;if(g)ae=!1,H=Wn;else if(K>=i){var it=a?null:kf(o);if(it)return La(it);ae=!1,H=lr,Ce=new fi}else Ce=a?[]:he;e:for(;++R<K;){var ot=o[R],yt=a?a(ot):ot;if(ot=g||ot!==0?ot:0,ae&&yt===yt){for(var Ft=Ce.length;Ft--;)if(Ce[Ft]===yt)continue e;a&&Ce.push(yt),he.push(ot)}else H(Ce,yt,g)||(Ce!==he&&Ce.push(yt),he.push(ot))}return he}function Fc(o,a){return a=jo(a,o),o=av(o,a),o==null||delete o[ya(as(a))]}function Ga(o,a,g,R){return Is(o,a,g(ts(o,a)),R)}function $l(o,a,g,R){for(var H=o.length,K=R?H:-1;(R?K--:++K<H)&&a(o[K],K,o););return g?Oi(o,R?0:K,R?K+1:H):Oi(o,R?K+1:0,R?H:K)}function oi(o,a){var g=o;return g instanceof yr&&(g=g.value()),Ra(a,function(R,H){return H.func.apply(H.thisArg,Ti([R],H.args))},g)}function jc(o,a,g){var R=o.length;if(R<2)return R?kn(o[0]):[];for(var H=-1,K=Fe(R);++H<R;)for(var ae=o[H],he=-1;++he<R;)he!=H&&(K[H]=As(K[H]||ae,o[he],a,g));return kn(Vn(K,1),a,g)}function Bc(o,a,g){for(var R=-1,H=o.length,K=a.length,ae={};++R<H;){var he=R<K?a[R]:t;g(ae,o[R],he)}return ae}function Ul(o){return Zn(o)?o:[]}function ns(o){return typeof o=="function"?o:bo}function jo(o,a){return br(o)?o:Nh(o,a)?[o]:fv(nn(o))}var Tf=vr;function po(o,a,g){var R=o.length;return g=g===t?R:g,!a&&g>=R?o:Oi(o,a,g)}var is=gf||function(o){return hr.clearTimeout(o)};function va(o,a){if(a)return o.slice();var g=o.length,R=Ma?Ma(g):new o.constructor(g);return o.copy(R),R}function qc(o){var a=new o.constructor(o.byteLength);return new Da(a).set(new Da(o)),a}function Hc(o,a){var g=a?qc(o.buffer):o.buffer;return new o.constructor(g,o.byteOffset,o.byteLength)}function Za(o){var a=new o.constructor(o.source,lt.exec(o));return a.lastIndex=o.lastIndex,a}function Wl(o){return xs?Vr(xs.call(o)):{}}function zc(o,a){var g=a?qc(o.buffer):o.buffer;return new o.constructor(g,o.byteOffset,o.length)}function Ka(o,a){if(o!==a){var g=o!==t,R=o===null,H=o===o,K=Bo(o),ae=a!==t,he=a===null,Ce=a===a,it=Bo(a);if(!he&&!it&&!K&&o>a||K&&ae&&Ce&&!he&&!it||R&&ae&&Ce||!g&&Ce||!H)return 1;if(!R&&!K&&!it&&o<a||it&&g&&H&&!R&&!K||he&&g&&H||!ae&&H||!Ce)return-1}return 0}function Iu(o,a,g){for(var R=-1,H=o.criteria,K=a.criteria,ae=H.length,he=g.length;++R<ae;){var Ce=Ka(H[R],K[R]);if(Ce){if(R>=he)return Ce;var it=g[R];return Ce*(it=="desc"?-1:1)}}return o.index-a.index}function Lu(o,a,g,R){for(var H=-1,K=o.length,ae=g.length,he=-1,Ce=a.length,it=fn(K-ae,0),ot=Fe(Ce+it),yt=!R;++he<Ce;)ot[he]=a[he];for(;++H<ae;)(yt||H<K)&&(ot[g[H]]=o[H]);for(;it--;)ot[he++]=o[H++];return ot}function $c(o,a,g,R){for(var H=-1,K=o.length,ae=-1,he=g.length,Ce=-1,it=a.length,ot=fn(K-he,0),yt=Fe(ot+it),Ft=!R;++H<ot;)yt[H]=o[H];for(var Qt=H;++Ce<it;)yt[Qt+Ce]=a[Ce];for(;++ae<he;)(Ft||H<K)&&(yt[Qt+g[ae]]=o[H++]);return yt}function si(o,a){var g=-1,R=o.length;for(a||(a=Fe(R));++g<R;)a[g]=o[g];return a}function Qi(o,a,g,R){var H=!g;g||(g={});for(var K=-1,ae=a.length;++K<ae;){var he=a[K],Ce=R?R(g[he],o[he],he,g,o):t;Ce===t&&(Ce=o[he]),H?Di(g,he,Ce):di(g,he,Ce)}return g}function Ef(o,a){return Qi(o,Ph(o),a)}function Du(o,a){return Qi(o,tv(o),a)}function Vl(o,a){return function(g,R){var H=br(g)?ps:Cs,K=a?a():{};return H(g,o,cr(R,2),K)}}function d(o){return vr(function(a,g){var R=-1,H=g.length,K=H>1?g[H-1]:t,ae=H>2?g[2]:t;for(K=o.length>3&&typeof K=="function"?(H--,K):t,ae&&eo(g[0],g[1],ae)&&(K=H<3?t:K,H=1),a=Vr(a);++R<H;){var he=g[R];he&&o(a,he,R,K)}return a})}function s(o,a){return function(g,R){if(g==null)return g;if(!vo(g))return o(g,R);for(var H=g.length,K=a?H:-1,ae=Vr(g);(a?K--:++K<H)&&R(ae[K],K,ae)!==!1;);return g}}function c(o){return function(a,g,R){for(var H=-1,K=Vr(a),ae=R(a),he=ae.length;he--;){var Ce=ae[o?he:++H];if(g(K[Ce],Ce,K)===!1)break}return a}}function h(o,a,g){var R=a&w,H=B(o);function K(){var ae=this&&this!==hr&&this instanceof K?H:o;return ae.apply(R?g:this,arguments)}return K}function y(o){return function(a){a=nn(a);var g=Js(a)?pn(a):t,R=g?g[0]:a.charAt(0),H=g?po(g,1).join(""):a.slice(1);return R[o]()+H}}function M(o){return function(a){return Ra($v(zv(a).replace(io,"")),o,"")}}function B(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var g=Mo(o.prototype),R=o.apply(g,a);return On(R)?R:g}}function W(o,a,g){var R=B(o);function H(){for(var K=arguments.length,ae=Fe(K),he=K,Ce=Mu(H);he--;)ae[he]=arguments[he];var it=K<3&&ae[0]!==Ce&&ae[K-1]!==Ce?[]:To(ae,Ce);if(K-=it.length,K<g)return mo(o,a,Qe,H.placeholder,t,ae,it,t,t,g-K);var ot=this&&this!==hr&&this instanceof H?R:o;return cn(ot,this,ae)}return H}function oe(o){return function(a,g,R){var H=Vr(a);if(!vo(a)){var K=cr(g,3);a=bi(a),g=function(he){return K(H[he],he,H)}}var ae=o(a,g,R);return ae>-1?H[K?a[ae]:ae]:t}}function Ae(o){return Xa(function(a){var g=a.length,R=g,H=ii.prototype.thru;for(o&&a.reverse();R--;){var K=a[R];if(typeof K!="function")throw new qi(u);if(H&&!ae&&vd(K)=="wrapper")var ae=new ii([],!0)}for(R=ae?R:g;++R<g;){K=a[R];var he=vd(K),Ce=he=="wrapper"?Mh(K):t;Ce&&Fh(Ce[0])&&Ce[1]==(Z|O|j|ie)&&!Ce[4].length&&Ce[9]==1?ae=ae[vd(Ce[0])].apply(ae,Ce[3]):ae=K.length==1&&Fh(K)?ae[he]():ae.thru(K)}return function(){var it=arguments,ot=it[0];if(ae&&it.length==1&&br(ot))return ae.plant(ot).value();for(var yt=0,Ft=g?a[yt].apply(this,it):ot;++yt<g;)Ft=a[yt].call(this,Ft);return Ft}})}function Qe(o,a,g,R,H,K,ae,he,Ce,it){var ot=a&Z,yt=a&w,Ft=a&C,Qt=a&(O|F),ur=a&Y,Rr=Ft?t:B(o);function fr(){for(var jr=arguments.length,zr=Fe(jr),qo=jr;qo--;)zr[qo]=arguments[qo];if(Qt)var to=Mu(fr),Ho=Ei(zr,to);if(R&&(zr=Lu(zr,R,H,Qt)),K&&(zr=$c(zr,K,ae,Qt)),jr-=Ho,Qt&&jr<it){var Kn=To(zr,to);return mo(o,a,Qe,fr.placeholder,g,zr,Kn,he,Ce,it-jr)}var Ds=yt?g:this,tl=Ft?Ds[o]:o;return jr=zr.length,he?zr=QS(zr,he):ur&&jr>1&&zr.reverse(),ot&&Ce<jr&&(zr.length=Ce),this&&this!==hr&&this instanceof fr&&(tl=Rr||B(tl)),tl.apply(Ds,zr)}return fr}function dt(o,a){return function(g,R){return Ol(g,o,a(R),{})}}function It(o,a){return function(g,R){var H;if(g===t&&R===t)return a;if(g!==t&&(H=g),R!==t){if(H===t)return R;typeof g=="string"||typeof R=="string"?(g=Pi(g),R=Pi(R)):(g=zl(g),R=zl(R)),H=o(g,R)}return H}}function or(o){return Xa(function(a){return a=Xr(a,Wt(cr())),vr(function(g){var R=this;return o(a,function(H){return cn(H,R,g)})})})}function Dr(o,a){a=a===t?" ":Pi(a);var g=a.length;if(g<2)return g?Bl(a,o):a;var R=Bl(a,na(o/Qs(a)));return Js(a)?po(pn(R),0,o).join(""):R.slice(0,o)}function Gn(o,a,g,R){var H=a&w,K=B(o);function ae(){for(var he=-1,Ce=arguments.length,it=-1,ot=R.length,yt=Fe(ot+Ce),Ft=this&&this!==hr&&this instanceof ae?K:o;++it<ot;)yt[it]=R[it];for(;Ce--;)yt[it++]=arguments[++he];return cn(Ft,H?g:this,yt)}return ae}function os(o){return function(a,g,R){return R&&typeof R!="number"&&eo(a,g,R)&&(g=R=t),a=el(a),g===t?(g=a,a=0):g=el(g),R=R===t?a<g?1:-1:el(R),Mc(a,g,R,o)}}function go(o){return function(a,g){return typeof a=="string"&&typeof g=="string"||(a=ls(a),g=ls(g)),o(a,g)}}function mo(o,a,g,R,H,K,ae,he,Ce,it){var ot=a&O,yt=ot?ae:t,Ft=ot?t:ae,Qt=ot?K:t,ur=ot?t:K;a|=ot?j:$,a&=~(ot?$:j),a&D||(a&=-4);var Rr=[o,a,H,Qt,yt,ur,Ft,he,Ce,it],fr=g.apply(t,Rr);return Fh(o)&&lv(fr,Rr),fr.placeholder=R,cv(fr,o,a)}function ss(o){var a=Sn[o];return function(g,R){if(g=ls(g),R=R==null?0:Mn(Ar(R),292),R&&oa(g)){var H=(nn(g)+"e").split("e"),K=a(H[0]+"e"+(+H[1]+R));return H=(nn(K)+"e").split("e"),+(H[0]+"e"+(+H[1]-R))}return a(g)}}var kf=ao&&1/La(new ao([,-0]))[1]==ve?function(o){return new ao(o)}:Jh;function md(o){return function(a){var g=Hi(a);return g==$e?fc(a):g==wt?ff(a):Je(a,o(a))}}function Ya(o,a,g,R,H,K,ae,he){var Ce=a&C;if(!Ce&&typeof o!="function")throw new qi(u);var it=R?R.length:0;if(it||(a&=-97,R=H=t),ae=ae===t?ae:fn(Ar(ae),0),he=he===t?he:Ar(he),it-=H?H.length:0,a&$){var ot=R,yt=H;R=H=t}var Ft=Ce?t:Mh(o),Qt=[o,a,g,R,H,ot,yt,K,ae,he];if(Ft&&YS(Qt,Ft),o=Qt[0],a=Qt[1],g=Qt[2],R=Qt[3],H=Qt[4],he=Qt[9]=Qt[9]===t?Ce?0:o.length:fn(Qt[9]-it,0),!he&&a&(O|F)&&(a&=-25),!a||a==w)var ur=h(o,a,g);else a==O||a==F?ur=W(o,a,he):(a==j||a==(w|j))&&!H.length?ur=Gn(o,a,g,R):ur=Qe.apply(t,Qt);var Rr=Ft?Pc:lv;return cv(Rr(ur,Qt),o,a)}function Jm(o,a,g,R){return o===t||Ls(o,Wo[g])&&!$r.call(R,g)?a:o}function Qm(o,a,g,R,H,K){return On(o)&&On(a)&&(K.set(a,o),rs(o,a,t,Qm,K),K.delete(a)),o}function NS(o){return Lf(o)?t:o}function ev(o,a,g,R,H,K){var ae=g&_,he=o.length,Ce=a.length;if(he!=Ce&&!(ae&&Ce>he))return!1;var it=K.get(o),ot=K.get(a);if(it&&ot)return it==a&&ot==o;var yt=-1,Ft=!0,Qt=g&I?new fi:t;for(K.set(o,a),K.set(a,o);++yt<he;){var ur=o[yt],Rr=a[yt];if(R)var fr=ae?R(Rr,ur,yt,a,o,K):R(ur,Rr,yt,o,a,K);if(fr!==t){if(fr)continue;Ft=!1;break}if(Qt){if(!Uo(a,function(jr,zr){if(!lr(Qt,zr)&&(ur===jr||H(ur,jr,g,R,K)))return Qt.push(zr)})){Ft=!1;break}}else if(!(ur===Rr||H(ur,Rr,g,R,K))){Ft=!1;break}}return K.delete(o),K.delete(a),Ft}function FS(o,a,g,R,H,K,ae){switch(g){case jt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case xt:return!(o.byteLength!=a.byteLength||!K(new Da(o),new Da(a)));case Ze:case et:case bt:return Ls(+o,+a);case Se:return o.name==a.name&&o.message==a.message;case He:case _t:return o==a+"";case $e:var he=fc;case wt:var Ce=R&_;if(he||(he=La),o.size!=a.size&&!Ce)return!1;var it=ae.get(o);if(it)return it==a;R|=I,ae.set(o,a);var ot=ev(he(o),he(a),R,H,K,ae);return ae.delete(o),ot;case vt:if(xs)return xs.call(o)==xs.call(a)}return!1}function jS(o,a,g,R,H,K){var ae=g&_,he=Lh(o),Ce=he.length,it=Lh(a),ot=it.length;if(Ce!=ot&&!ae)return!1;for(var yt=Ce;yt--;){var Ft=he[yt];if(!(ae?Ft in a:$r.call(a,Ft)))return!1}var Qt=K.get(o),ur=K.get(a);if(Qt&&ur)return Qt==a&&ur==o;var Rr=!0;K.set(o,a),K.set(a,o);for(var fr=ae;++yt<Ce;){Ft=he[yt];var jr=o[Ft],zr=a[Ft];if(R)var qo=ae?R(zr,jr,Ft,a,o,K):R(jr,zr,Ft,o,a,K);if(!(qo===t?jr===zr||H(jr,zr,g,R,K):qo)){Rr=!1;break}fr||(fr=Ft=="constructor")}if(Rr&&!fr){var to=o.constructor,Ho=a.constructor;to!=Ho&&"constructor"in o&&"constructor"in a&&!(typeof to=="function"&&to instanceof to&&typeof Ho=="function"&&Ho instanceof Ho)&&(Rr=!1)}return K.delete(o),K.delete(a),Rr}function Xa(o){return Bh(sv(o,t,gv),o+"")}function Lh(o){return Ha(o,bi,Ph)}function Dh(o){return Ha(o,yo,tv)}var Mh=Na?function(o){return Na.get(o)}:Jh;function vd(o){for(var a=o.name+"",g=_s[a],R=$r.call(_s,a)?g.length:0;R--;){var H=g[R],K=H.func;if(K==null||K==o)return H.name}return a}function Mu(o){var a=$r.call(U,"placeholder")?U:o;return a.placeholder}function cr(){var o=U.iteratee||Yh;return o=o===Yh?Fl:o,arguments.length?o(arguments[0],arguments[1]):o}function yd(o,a){var g=o.__data__;return VS(a)?g[typeof a=="string"?"string":"hash"]:g.map}function Oh(o){for(var a=bi(o),g=a.length;g--;){var R=a[g],H=o[R];a[g]=[R,H,iv(H)]}return a}function Uc(o,a){var g=vs(o,a);return Tu(g)?g:t}function BS(o){var a=$r.call(o,Lo),g=o[Lo];try{o[Lo]=t;var R=!0}catch{}var H=ko.call(o);return R&&(a?o[Lo]=g:delete o[Lo]),H}var Ph=ia?function(o){return o==null?[]:(o=Vr(o),Gi(ia(o),function(a){return Sl.call(o,a)}))}:Qh,tv=ia?function(o){for(var a=[];o;)Ti(a,Ph(o)),o=ys(o);return a}:Qh,Hi=Fn;(so&&Hi(new so(new ArrayBuffer(1)))!=jt||Yo&&Hi(new Yo)!=$e||sa&&Hi(sa.resolve())!=mt||ao&&Hi(new ao)!=wt||Do&&Hi(new Do)!=Pe)&&(Hi=function(o){var a=Fn(o),g=a==ht?o.constructor:t,R=g?Wc(g):"";if(R)switch(R){case Xo:return jt;case vc:return $e;case mf:return mt;case vu:return wt;case la:return Pe}return a});function qS(o,a,g){for(var R=-1,H=g.length;++R<H;){var K=g[R],ae=K.size;switch(K.type){case"drop":o+=ae;break;case"dropRight":a-=ae;break;case"take":a=Mn(a,o+ae);break;case"takeRight":o=fn(o,a-ae);break}}return{start:o,end:a}}function HS(o){var a=o.match(re);return a?a[1].split(Ue):[]}function rv(o,a,g){a=jo(a,o);for(var R=-1,H=a.length,K=!1;++R<H;){var ae=ya(a[R]);if(!(K=o!=null&&g(o,ae)))break;o=o[ae]}return K||++R!=H?K:(H=o==null?0:o.length,!!H&&Ad(H)&&Ja(ae,H)&&(br(o)||Vc(o)))}function zS(o){var a=o.length,g=new o.constructor(a);return a&&typeof o[0]=="string"&&$r.call(o,"index")&&(g.index=o.index,g.input=o.input),g}function nv(o){return typeof o.constructor=="function"&&!Rf(o)?Mo(ys(o)):{}}function $S(o,a,g){var R=o.constructor;switch(a){case xt:return qc(o);case Ze:case et:return new R(+o);case jt:return Hc(o,g);case At:case Be:case Lt:case Dt:case dr:case Er:case Mr:case _e:case te:return zc(o,g);case $e:return new R;case bt:case _t:return new R(o);case He:return Za(o);case wt:return new R;case vt:return Wl(o)}}function US(o,a){var g=a.length;if(!g)return o;var R=g-1;return a[R]=(g>1?"& ":"")+a[R],a=a.join(g>2?", ":" "),o.replace(gr,`{
33
+ */var b4=Bf.exports,Yv;function _4(){return Yv||(Yv=1,function(r,e){(function(){var t,n="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,T="__lodash_placeholder__",k=1,b=2,x=4,_=1,I=2,w=1,C=2,D=4,O=8,N=16,j=32,$=64,Z=128,ie=256,Y=512,se=30,q="...",J=800,X=16,ne=1,ge=2,me=3,ve=1/0,de=9007199254740991,De=17976931348623157e292,ue=NaN,le=4294967295,fe=le-1,Me=le>>>1,Ve=[["ary",Z],["bind",w],["bindKey",C],["curry",O],["curryRight",N],["flip",Y],["partial",j],["partialRight",$],["rearg",ie]],pe="[object Arguments]",ke="[object Array]",ze="[object AsyncFunction]",Ze="[object Boolean]",et="[object Date]",xe="[object DOMException]",Se="[object Error]",be="[object Function]",Le="[object GeneratorFunction]",$e="[object Map]",bt="[object Number]",Ge="[object Null]",ht="[object Object]",mt="[object Promise]",Oe="[object Proxy]",He="[object RegExp]",wt="[object Set]",_t="[object String]",vt="[object Symbol]",Tt="[object Undefined]",Pe="[object WeakMap]",Ke="[object WeakSet]",xt="[object ArrayBuffer]",jt="[object DataView]",At="[object Float32Array]",Be="[object Float64Array]",Lt="[object Int8Array]",Dt="[object Int16Array]",dr="[object Int32Array]",Er="[object Uint8Array]",Mr="[object Uint8ClampedArray]",_e="[object Uint16Array]",te="[object Uint32Array]",tt=/\b__p \+= '';/g,ut=/\b(__p \+=) '' \+/g,qt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,Mt=/[&<>"']/g,tr=RegExp(kt.source),Xe=RegExp(Mt.source),rt=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,Ht=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xt=/^\w*$/,Or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/[\\^$.*+?()[\]{}|]/g,St=RegExp(st.source),pt=/^\s+/,Bt=/\s/,gr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,re=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,Re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,at=/\\(\\)?/g,Et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,zt=/^[-+]0x[0-9a-f]+$/i,ar=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,ir=/^0o[0-7]+$/i,Sr=/^(?:0|[1-9]\d*)$/,nr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wr=/($^)/,Gr=/['\n\r\u2028\u2029\\]/g,mn="\\ud800-\\udfff",Jr="\\u0300-\\u036f",Yn="\\ufe20-\\ufe2f",Rn="\\u20d0-\\u20ff",Xn=Jr+Yn+Rn,Jn="\\u2700-\\u27bf",an="a-z\\xdf-\\xf6\\xf8-\\xff",Nn="\\xac\\xb1\\xd7\\xf7",Tn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gi="\\u2000-\\u206f",Ci=" \\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",wi="A-Z\\xc0-\\xd6\\xd8-\\xde",In="\\ufe0e\\ufe0f",En=Nn+Tn+gi+Ci,hn="['’]",Qn="["+mn+"]",ln="["+En+"]",vn="["+Xn+"]",A="\\d+",F="["+Jn+"]",V="["+an+"]",Q="[^"+mn+En+A+Jn+an+wi+"]",Ee="\\ud83c[\\udffb-\\udfff]",we="(?:"+vn+"|"+Ee+")",je="[^"+mn+"]",ft="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+wi+"]",$t="\\u200d",_r="(?:"+V+"|"+Q+")",Yr="(?:"+Ut+"|"+Q+")",_n="(?:"+hn+"(?:d|ll|m|re|s|t|ve))?",xn="(?:"+hn+"(?:D|LL|M|RE|S|T|VE))?",ci=we+"?",Hn="["+In+"]?",Ai="(?:"+$t+"(?:"+[je,ft,Pt].join("|")+")"+Hn+ci+")*",Qr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zn=Hn+ci+Ai,ei="(?:"+[F,ft,Pt].join("|")+")"+zn,xo="(?:"+[je+vn+"?",vn,ft,Pt,Qn].join("|")+")",io=RegExp(hn,"g"),oo=RegExp(vn,"g"),Ln=RegExp(Ee+"(?="+Ee+")|"+xo+zn,"g"),So=RegExp([Ut+"?"+V+"+"+_n+"(?="+[ln,Ut,"$"].join("|")+")",Yr+"+"+xn+"(?="+[ln,Ut+_r,"$"].join("|")+")",Ut+"?"+_r+"+"+_n,Ut+"+"+xn,mi,Qr,A,ei].join("|"),"g"),ti=RegExp("["+$t+mn+Xn+In+"]"),ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wi=["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"],Pr=-1,Cr={};Cr[At]=Cr[Be]=Cr[Lt]=Cr[Dt]=Cr[dr]=Cr[Er]=Cr[Mr]=Cr[_e]=Cr[te]=!0,Cr[pe]=Cr[ke]=Cr[xt]=Cr[Ze]=Cr[jt]=Cr[et]=Cr[Se]=Cr[be]=Cr[$e]=Cr[bt]=Cr[ht]=Cr[He]=Cr[wt]=Cr[_t]=Cr[Pe]=!1;var Lr={};Lr[pe]=Lr[ke]=Lr[xt]=Lr[jt]=Lr[Ze]=Lr[et]=Lr[At]=Lr[Be]=Lr[Lt]=Lr[Dt]=Lr[dr]=Lr[$e]=Lr[bt]=Lr[ht]=Lr[He]=Lr[wt]=Lr[_t]=Lr[vt]=Lr[Er]=Lr[Mr]=Lr[_e]=Lr[te]=!0,Lr[Se]=Lr[be]=Lr[Pe]=!1;var L={À:"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"},G={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jt=parseFloat,Vt=parseInt,mr=typeof xi=="object"&&xi&&xi.Object===Object&&xi,xr=typeof self=="object"&&self&&self.Object===Object&&self,hr=mr||xr||Function("return this")(),wr=e&&!e.nodeType&&e,en=wr&&!0&&r&&!r.nodeType&&r,Dn=en&&en.exports===wr,Zr=Dn&&mr.process,qr=function(){try{var ye=en&&en.require&&en.require("util").types;return ye||Zr&&Zr.binding&&Zr.binding("util")}catch{}}(),tn=qr&&qr.isArrayBuffer,ui=qr&&qr.isDate,vi=qr&&qr.isMap,$n=qr&&qr.isRegExp,Co=qr&&qr.isSet,Vi=qr&&qr.isTypedArray;function cn(ye,We,Fe){switch(Fe.length){case 0:return ye.call(We);case 1:return ye.call(We,Fe[0]);case 2:return ye.call(We,Fe[0],Fe[1]);case 3:return ye.call(We,Fe[0],Fe[1],Fe[2])}return ye.apply(We,Fe)}function ps(ye,We,Fe,Nt){for(var sr=-1,Nr=ye==null?0:ye.length;++sr<Nr;){var Sn=ye[sr];We(Nt,Sn,Fe(Sn),ye)}return Nt}function Un(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length;++Fe<Nt&&We(ye[Fe],Fe,ye)!==!1;);return ye}function hl(ye,We){for(var Fe=ye==null?0:ye.length;Fe--&&We(ye[Fe],Fe,ye)!==!1;);return ye}function ka(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length;++Fe<Nt;)if(!We(ye[Fe],Fe,ye))return!1;return!0}function Gi(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length,sr=0,Nr=[];++Fe<Nt;){var Sn=ye[Fe];We(Sn,Fe,ye)&&(Nr[sr++]=Sn)}return Nr}function wo(ye,We){var Fe=ye==null?0:ye.length;return!!Fe&&Ao(ye,We,0)>-1}function Wn(ye,We,Fe){for(var Nt=-1,sr=ye==null?0:ye.length;++Nt<sr;)if(Fe(We,ye[Nt]))return!0;return!1}function Xr(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length,sr=Array(Nt);++Fe<Nt;)sr[Fe]=We(ye[Fe],Fe,ye);return sr}function Ti(ye,We){for(var Fe=-1,Nt=We.length,sr=ye.length;++Fe<Nt;)ye[sr+Fe]=We[Fe];return ye}function Ra(ye,We,Fe,Nt){var sr=-1,Nr=ye==null?0:ye.length;for(Nt&&Nr&&(Fe=ye[++sr]);++sr<Nr;)Fe=We(Fe,ye[sr],sr,ye);return Fe}function pl(ye,We,Fe,Nt){var sr=ye==null?0:ye.length;for(Nt&&sr&&(Fe=ye[--sr]);sr--;)Fe=We(Fe,ye[sr],sr,ye);return Fe}function Uo(ye,We){for(var Fe=-1,Nt=ye==null?0:ye.length;++Fe<Nt;)if(We(ye[Fe],Fe,ye))return!0;return!1}var gl=E("length");function ml(ye){return ye.split("")}function Ks(ye){return ye.match(Re)||[]}function gs(ye,We,Fe){var Nt;return Fe(ye,function(sr,Nr,Sn){if(We(sr,Nr,Sn))return Nt=Nr,!1}),Nt}function ms(ye,We,Fe,Nt){for(var sr=ye.length,Nr=Fe+(Nt?1:-1);Nt?Nr--:++Nr<sr;)if(We(ye[Nr],Nr,ye))return Nr;return-1}function Ao(ye,We,Fe){return We===We?df(ye,We,Fe):ms(ye,Ys,Fe)}function vl(ye,We,Fe,Nt){for(var sr=Fe-1,Nr=ye.length;++sr<Nr;)if(Nt(ye[sr],We))return sr;return-1}function Ys(ye){return ye!==ye}function Ia(ye,We){var Fe=ye==null?0:ye.length;return Fe?Ie(ye,We)/Fe:ue}function E(ye){return function(We){return We==null?t:We[ye]}}function P(ye){return function(We){return ye==null?t:ye[We]}}function z(ye,We,Fe,Nt,sr){return sr(ye,function(Nr,Sn,Vr){Fe=Nt?(Nt=!1,Nr):We(Fe,Nr,Sn,Vr)}),Fe}function ee(ye,We){var Fe=ye.length;for(ye.sort(We);Fe--;)ye[Fe]=ye[Fe].value;return ye}function Ie(ye,We){for(var Fe,Nt=-1,sr=ye.length;++Nt<sr;){var Nr=We(ye[Nt]);Nr!==t&&(Fe=Fe===t?Nr:Fe+Nr)}return Fe}function Te(ye,We){for(var Fe=-1,Nt=Array(ye);++Fe<ye;)Nt[Fe]=We(Fe);return Nt}function Je(ye,We){return Xr(We,function(Fe){return[Fe,ye[Fe]]})}function Ct(ye){return ye&&ye.slice(0,fu(ye)+1).replace(pt,"")}function Wt(ye){return function(We){return ye(We)}}function pr(ye,We){return Xr(We,function(Fe){return ye[Fe]})}function lr(ye,We){return ye.has(We)}function Kr(ye,We){for(var Fe=-1,Nt=ye.length;++Fe<Nt&&Ao(We,ye[Fe],0)>-1;);return Fe}function ni(ye,We){for(var Fe=ye.length;Fe--&&Ao(We,ye[Fe],0)>-1;);return Fe}function Ei(ye,We){for(var Fe=ye.length,Nt=0;Fe--;)ye[Fe]===We&&++Nt;return Nt}var ki=P(L),Xs=P(G);function yl(ye){return"\\"+qe[ye]}function vs(ye,We){return ye==null?t:ye[We]}function Js(ye){return ti.test(ye)}function uf(ye){return ri.test(ye)}function uc(ye){for(var We,Fe=[];!(We=ye.next()).done;)Fe.push(We.value);return Fe}function fc(ye){var We=-1,Fe=Array(ye.size);return ye.forEach(function(Nt,sr){Fe[++We]=[sr,Nt]}),Fe}function uu(ye,We){return function(Fe){return ye(We(Fe))}}function To(ye,We){for(var Fe=-1,Nt=ye.length,sr=0,Nr=[];++Fe<Nt;){var Sn=ye[Fe];(Sn===We||Sn===T)&&(ye[Fe]=T,Nr[sr++]=Fe)}return Nr}function La(ye){var We=-1,Fe=Array(ye.size);return ye.forEach(function(Nt){Fe[++We]=Nt}),Fe}function ff(ye){var We=-1,Fe=Array(ye.size);return ye.forEach(function(Nt){Fe[++We]=[Nt,Nt]}),Fe}function df(ye,We,Fe){for(var Nt=Fe-1,sr=ye.length;++Nt<sr;)if(ye[Nt]===We)return Nt;return-1}function hf(ye,We,Fe){for(var Nt=Fe+1;Nt--;)if(ye[Nt]===We)return Nt;return Nt}function Qs(ye){return Js(ye)?bl(ye):gl(ye)}function pn(ye){return Js(ye)?Ri(ye):ml(ye)}function fu(ye){for(var We=ye.length;We--&&Bt.test(ye.charAt(We)););return We}var du=P(ce);function bl(ye){for(var We=Ln.lastIndex=0;Ln.test(ye);)++We;return We}function Ri(ye){return ye.match(Ln)||[]}function hu(ye){return ye.match(So)||[]}var _l=function ye(We){We=We==null?hr:Eo.defaults(hr.Object(),We,Eo.pick(hr,Wi));var Fe=We.Array,Nt=We.Date,sr=We.Error,Nr=We.Function,Sn=We.Math,Vr=We.Object,ea=We.RegExp,pu=We.String,qi=We.TypeError,xl=Fe.prototype,pf=Nr.prototype,Wo=Vr.prototype,rn=We["__core-js_shared__"],Vo=pf.toString,$r=Wo.hasOwnProperty,dc=0,un=function(){var o=/[^.]+$/.exec(rn&&rn.keys&&rn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),ko=Wo.toString,hc=Vo.call(Vr),pc=hr._,gc=ea("^"+Vo.call($r).replace(st,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ta=Dn?We.Buffer:t,Ro=We.Symbol,Da=We.Uint8Array,Ma=ta?ta.allocUnsafe:t,ys=uu(Vr.getPrototypeOf,Vr),ra=Vr.create,Sl=Wo.propertyIsEnumerable,Io=xl.splice,Cl=Ro?Ro.isConcatSpreadable:t,Zi=Ro?Ro.iterator:t,Lo=Ro?Ro.toStringTag:t,Go=function(){try{var o=Uc(Vr,"defineProperty");return o({},"",{}),o}catch{}}(),gf=We.clearTimeout!==hr.clearTimeout&&We.clearTimeout,Oa=Nt&&Nt.now!==hr.Date.now&&Nt.now,gu=We.setTimeout!==hr.setTimeout&&We.setTimeout,na=Sn.ceil,bs=Sn.floor,ia=Vr.getOwnPropertySymbols,wl=ta?ta.isBuffer:t,oa=We.isFinite,Pa=xl.join,mu=uu(Vr.keys,Vr),fn=Sn.max,Mn=Sn.min,Zo=Nt.now,mc=We.parseInt,Ko=Sn.random,Al=xl.reverse,so=Uc(We,"DataView"),Yo=Uc(We,"Map"),sa=Uc(We,"Promise"),ao=Uc(We,"Set"),Do=Uc(We,"WeakMap"),aa=Uc(Vr,"create"),Na=Do&&new Do,_s={},Xo=Wc(so),vc=Wc(Yo),mf=Wc(sa),vu=Wc(ao),la=Wc(Do),Jo=Ro?Ro.prototype:t,xs=Jo?Jo.valueOf:t,Fa=Jo?Jo.toString:t;function U(o){if(jn(o)&&!br(o)&&!(o instanceof yr)){if(o instanceof ii)return o;if($r.call(o,"__wrapped__"))return dv(o)}return new ii(o)}var Mo=function(){function o(){}return function(a){if(!On(a))return{};if(ra)return ra(a);o.prototype=a;var g=new o;return o.prototype=t,g}}();function Oo(){}function ii(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}U.templateSettings={escape:rt,evaluate:Rt,interpolate:Ht,variable:"",imports:{_:U}},U.prototype=Oo.prototype,U.prototype.constructor=U,ii.prototype=Mo(Oo.prototype),ii.prototype.constructor=ii;function yr(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=le,this.__views__=[]}function Tl(){var o=new yr(this.__wrapped__);return o.__actions__=si(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=si(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=si(this.__views__),o}function ja(){if(this.__filtered__){var o=new yr(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function El(){var o=this.__wrapped__.value(),a=this.__dir__,g=br(o),R=a<0,H=g?o.length:0,K=qS(0,H,this.__views__),ae=K.start,he=K.end,Ce=he-ae,it=R?he:ae-1,ot=this.__iteratees__,yt=ot.length,Ft=0,Qt=Mn(Ce,this.__takeCount__);if(!g||!R&&H==Ce&&Qt==Ce)return oi(o,this.__actions__);var ur=[];e:for(;Ce--&&Ft<Qt;){it+=a;for(var Rr=-1,fr=o[it];++Rr<yt;){var jr=ot[Rr],zr=jr.iteratee,qo=jr.type,to=zr(fr);if(qo==ge)fr=to;else if(!to){if(qo==ne)continue e;break e}}ur[Ft++]=fr}return ur}yr.prototype=Mo(Oo.prototype),yr.prototype.constructor=yr;function lo(o){var a=-1,g=o==null?0:o.length;for(this.clear();++a<g;){var R=o[a];this.set(R[0],R[1])}}function yc(){this.__data__=aa?aa(null):{},this.size=0}function yu(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function bu(o){var a=this.__data__;if(aa){var g=a[o];return g===p?t:g}return $r.call(a,o)?a[o]:t}function _u(o){var a=this.__data__;return aa?a[o]!==t:$r.call(a,o)}function vf(o,a){var g=this.__data__;return this.size+=this.has(o)?0:1,g[o]=aa&&a===t?p:a,this}lo.prototype.clear=yc,lo.prototype.delete=yu,lo.prototype.get=bu,lo.prototype.has=_u,lo.prototype.set=vf;function co(o){var a=-1,g=o==null?0:o.length;for(this.clear();++a<g;){var R=o[a];this.set(R[0],R[1])}}function yf(){this.__data__=[],this.size=0}function bf(o){var a=this.__data__,g=Ki(a,o);if(g<0)return!1;var R=a.length-1;return g==R?a.pop():Io.call(a,g,1),--this.size,!0}function bc(o){var a=this.__data__,g=Ki(a,o);return g<0?t:a[g][1]}function Ba(o){return Ki(this.__data__,o)>-1}function _f(o,a){var g=this.__data__,R=Ki(g,o);return R<0?(++this.size,g.push([o,a])):g[R][1]=a,this}co.prototype.clear=yf,co.prototype.delete=bf,co.prototype.get=bc,co.prototype.has=Ba,co.prototype.set=_f;function Po(o){var a=-1,g=o==null?0:o.length;for(this.clear();++a<g;){var R=o[a];this.set(R[0],R[1])}}function _c(){this.size=0,this.__data__={hash:new lo,map:new(Yo||co),string:new lo}}function kl(o){var a=yd(this,o).delete(o);return this.size-=a?1:0,a}function xf(o){return yd(this,o).get(o)}function Sf(o){return yd(this,o).has(o)}function Cf(o,a){var g=yd(this,o),R=g.size;return g.set(o,a),this.size+=g.size==R?0:1,this}Po.prototype.clear=_c,Po.prototype.delete=kl,Po.prototype.get=xf,Po.prototype.has=Sf,Po.prototype.set=Cf;function fi(o){var a=-1,g=o==null?0:o.length;for(this.__data__=new Po;++a<g;)this.add(o[a])}function xc(o){return this.__data__.set(o,p),this}function Rl(o){return this.__data__.has(o)}fi.prototype.add=fi.prototype.push=xc,fi.prototype.has=Rl;function kr(o){var a=this.__data__=new co(o);this.size=a.size}function Ii(){this.__data__=new co,this.size=0}function ca(o){var a=this.__data__,g=a.delete(o);return this.size=a.size,g}function Ss(o){return this.__data__.get(o)}function Fr(o){return this.__data__.has(o)}function Qo(o,a){var g=this.__data__;if(g instanceof co){var R=g.__data__;if(!Yo||R.length<i-1)return R.push([o,a]),this.size=++g.size,this;g=this.__data__=new Po(R)}return g.set(o,a),this.size=g.size,this}kr.prototype.clear=Ii,kr.prototype.delete=ca,kr.prototype.get=Ss,kr.prototype.has=Fr,kr.prototype.set=Qo;function qa(o,a){var g=br(o),R=!g&&Vc(o),H=!g&&!R&&Gl(o),K=!g&&!R&&!H&&Ou(o),ae=g||R||H||K,he=ae?Te(o.length,pu):[],Ce=he.length;for(var it in o)(a||$r.call(o,it))&&!(ae&&(it=="length"||H&&(it=="offset"||it=="parent")||K&&(it=="buffer"||it=="byteLength"||it=="byteOffset")||Ja(it,Ce)))&&he.push(it);return he}function yi(o){var a=o.length;return a?o[Rs(0,a-1)]:t}function Li(o,a){return bd(si(o),ws(a,0,o.length))}function uo(o){return bd(si(o))}function Sc(o,a,g){(g!==t&&!Ls(o[a],g)||g===t&&!(a in o))&&Di(o,a,g)}function di(o,a,g){var R=o[a];(!($r.call(o,a)&&Ls(R,g))||g===t&&!(a in o))&&Di(o,a,g)}function Ki(o,a){for(var g=o.length;g--;)if(Ls(o[g][0],a))return g;return-1}function Cs(o,a,g,R){return es(o,function(H,K,ae){a(R,H,g(H),ae)}),R}function xu(o,a){return o&&Qi(a,bi(a),o)}function Cc(o,a){return o&&Qi(a,yo(a),o)}function Di(o,a,g){a=="__proto__"&&Go?Go(o,a,{configurable:!0,enumerable:!0,value:g,writable:!0}):o[a]=g}function wc(o,a){for(var g=-1,R=a.length,H=Fe(R),K=o==null;++g<R;)H[g]=K?t:Vh(o,a[g]);return H}function ws(o,a,g){return o===o&&(g!==t&&(o=o<=g?o:g),a!==t&&(o=o>=a?o:a)),o}function hi(o,a,g,R,H,K){var ae,he=a&k,Ce=a&b,it=a&x;if(g&&(ae=H?g(o,R,H,K):g(o)),ae!==t)return ae;if(!On(o))return o;var ot=br(o);if(ot){if(ae=zS(o),!he)return si(o,ae)}else{var yt=Hi(o),Ft=yt==be||yt==Le;if(Gl(o))return va(o,he);if(yt==ht||yt==pe||Ft&&!H){if(ae=Ce||Ft?{}:nv(o),!he)return Ce?Du(o,Cc(ae,o)):Ef(o,xu(ae,o))}else{if(!Lr[yt])return H?o:{};ae=$S(o,yt,he)}}K||(K=new kr);var Qt=K.get(o);if(Qt)return Qt;K.set(o,ae),Dv(o)?o.forEach(function(fr){ae.add(hi(fr,a,g,fr,o,K))}):Iv(o)&&o.forEach(function(fr,jr){ae.set(jr,hi(fr,a,g,jr,o,K))});var ur=it?Ce?Dh:Lh:Ce?yo:bi,Rr=ot?t:ur(o);return Un(Rr||o,function(fr,jr){Rr&&(jr=fr,fr=o[jr]),di(ae,jr,hi(fr,a,g,jr,o,K))}),ae}function Ac(o){var a=bi(o);return function(g){return Tc(g,o,a)}}function Tc(o,a,g){var R=g.length;if(o==null)return!R;for(o=Vr(o);R--;){var H=g[R],K=a[H],ae=o[H];if(ae===t&&!(H in o)||!K(ae))return!1}return!0}function Ec(o,a,g){if(typeof o!="function")throw new qi(u);return If(function(){o.apply(t,g)},a)}function As(o,a,g,R){var H=-1,K=wo,ae=!0,he=o.length,Ce=[],it=a.length;if(!he)return Ce;g&&(a=Xr(a,Wt(g))),R?(K=Wn,ae=!1):a.length>=i&&(K=lr,ae=!1,a=new fi(a));e:for(;++H<he;){var ot=o[H],yt=g==null?ot:g(ot);if(ot=R||ot!==0?ot:0,ae&&yt===yt){for(var Ft=it;Ft--;)if(a[Ft]===yt)continue e;Ce.push(ot)}else K(a,yt,R)||Ce.push(ot)}return Ce}var es=s(Mi),kc=s(Ll,!0);function Su(o,a){var g=!0;return es(o,function(R,H,K){return g=!!a(R,H,K),g}),g}function Il(o,a,g){for(var R=-1,H=o.length;++R<H;){var K=o[R],ae=a(K);if(ae!=null&&(he===t?ae===ae&&!Bo(ae):g(ae,he)))var he=ae,Ce=K}return Ce}function wf(o,a,g,R){var H=o.length;for(g=Ar(g),g<0&&(g=-g>H?0:H+g),R=R===t||R>H?H:Ar(R),R<0&&(R+=H),R=g>R?0:Ov(R);g<R;)o[g++]=a;return o}function Cu(o,a){var g=[];return es(o,function(R,H,K){a(R,H,K)&&g.push(R)}),g}function Vn(o,a,g,R,H){var K=-1,ae=o.length;for(g||(g=WS),H||(H=[]);++K<ae;){var he=o[K];a>0&&g(he)?a>1?Vn(he,a-1,g,R,H):Ti(H,he):R||(H[H.length]=he)}return H}var Rc=c(),wu=c(!0);function Mi(o,a){return o&&Rc(o,a,bi)}function Ll(o,a){return o&&wu(o,a,bi)}function ua(o,a){return Gi(a,function(g){return Qa(o[g])})}function ts(o,a){a=jo(a,o);for(var g=0,R=a.length;o!=null&&g<R;)o=o[ya(a[g++])];return g&&g==R?o:t}function Ha(o,a,g){var R=a(o);return br(o)?R:Ti(R,g(o))}function Fn(o){return o==null?o===t?Tt:Ge:Lo&&Lo in Vr(o)?BS(o):JS(o)}function Ts(o,a){return o>a}function Dl(o,a){return o!=null&&$r.call(o,a)}function fa(o,a){return o!=null&&a in Vr(o)}function Ml(o,a,g){return o>=Mn(a,g)&&o<fn(a,g)}function da(o,a,g){for(var R=g?Wn:wo,H=o[0].length,K=o.length,ae=K,he=Fe(K),Ce=1/0,it=[];ae--;){var ot=o[ae];ae&&a&&(ot=Xr(ot,Wt(a))),Ce=Mn(ot.length,Ce),he[ae]=!g&&(a||H>=120&&ot.length>=120)?new fi(ae&&ot):t}ot=o[0];var yt=-1,Ft=he[0];e:for(;++yt<H&&it.length<Ce;){var Qt=ot[yt],ur=a?a(Qt):Qt;if(Qt=g||Qt!==0?Qt:0,!(Ft?lr(Ft,ur):R(it,ur,g))){for(ae=K;--ae;){var Rr=he[ae];if(!(Rr?lr(Rr,ur):R(o[ae],ur,g)))continue e}Ft&&Ft.push(ur),it.push(Qt)}}return it}function Ol(o,a,g,R){return Mi(o,function(H,K,ae){a(R,g(H),K,ae)}),R}function fo(o,a,g){a=jo(a,o),o=av(o,a);var R=o==null?o:o[ya(as(a))];return R==null?t:cn(R,o,g)}function Pl(o){return jn(o)&&Fn(o)==pe}function Es(o){return jn(o)&&Fn(o)==xt}function Au(o){return jn(o)&&Fn(o)==et}function za(o,a,g,R,H){return o===a?!0:o==null||a==null||!jn(o)&&!jn(a)?o!==o&&a!==a:ha(o,a,g,R,za,H)}function ha(o,a,g,R,H,K){var ae=br(o),he=br(a),Ce=ae?ke:Hi(o),it=he?ke:Hi(a);Ce=Ce==pe?ht:Ce,it=it==pe?ht:it;var ot=Ce==ht,yt=it==ht,Ft=Ce==it;if(Ft&&Gl(o)){if(!Gl(a))return!1;ae=!0,ot=!1}if(Ft&&!ot)return K||(K=new kr),ae||Ou(o)?ev(o,a,g,R,H,K):FS(o,a,Ce,g,R,H,K);if(!(g&_)){var Qt=ot&&$r.call(o,"__wrapped__"),ur=yt&&$r.call(a,"__wrapped__");if(Qt||ur){var Rr=Qt?o.value():o,fr=ur?a.value():a;return K||(K=new kr),H(Rr,fr,g,R,K)}}return Ft?(K||(K=new kr),jS(o,a,g,R,H,K)):!1}function pa(o){return jn(o)&&Hi(o)==$e}function Ic(o,a,g,R){var H=g.length,K=H,ae=!R;if(o==null)return!K;for(o=Vr(o);H--;){var he=g[H];if(ae&&he[2]?he[1]!==o[he[0]]:!(he[0]in o))return!1}for(;++H<K;){he=g[H];var Ce=he[0],it=o[Ce],ot=he[1];if(ae&&he[2]){if(it===t&&!(Ce in o))return!1}else{var yt=new kr;if(R)var Ft=R(it,ot,Ce,o,a,yt);if(!(Ft===t?za(ot,it,_|I,R,yt):Ft))return!1}}return!0}function Tu(o){if(!On(o)||GS(o))return!1;var a=Qa(o)?gc:Zt;return a.test(Wc(o))}function ks(o){return jn(o)&&Fn(o)==He}function Nl(o){return jn(o)&&Hi(o)==wt}function No(o){return jn(o)&&Ad(o.length)&&!!Cr[Fn(o)]}function Fl(o){return typeof o=="function"?o:o==null?bo:typeof o=="object"?br(o)?Ua(o[0],o[1]):ho(o):Wv(o)}function Fo(o){if(!Rf(o))return mu(o);var a=[];for(var g in Vr(o))$r.call(o,g)&&g!="constructor"&&a.push(g);return a}function $a(o){if(!On(o))return XS(o);var a=Rf(o),g=[];for(var R in o)R=="constructor"&&(a||!$r.call(o,R))||g.push(R);return g}function Yi(o,a){return o<a}function Xi(o,a){var g=-1,R=vo(o)?Fe(o.length):[];return es(o,function(H,K,ae){R[++g]=a(H,K,ae)}),R}function ho(o){var a=Oh(o);return a.length==1&&a[0][2]?ov(a[0][0],a[0][1]):function(g){return g===o||Ic(g,o,a)}}function Ua(o,a){return Nh(o)&&iv(a)?ov(ya(o),a):function(g){var R=Vh(g,o);return R===t&&R===a?Gh(g,o):za(a,R,_|I)}}function rs(o,a,g,R,H){o!==a&&Rc(a,function(K,ae){if(H||(H=new kr),On(K))Ji(o,a,ae,g,rs,R,H);else{var he=R?R(jh(o,ae),K,ae+"",o,a,H):t;he===t&&(he=K),Sc(o,ae,he)}},yo)}function Ji(o,a,g,R,H,K,ae){var he=jh(o,g),Ce=jh(a,g),it=ae.get(Ce);if(it){Sc(o,g,it);return}var ot=K?K(he,Ce,g+"",o,a,ae):t,yt=ot===t;if(yt){var Ft=br(Ce),Qt=!Ft&&Gl(Ce),ur=!Ft&&!Qt&&Ou(Ce);ot=Ce,Ft||Qt||ur?br(he)?ot=he:Zn(he)?ot=si(he):Qt?(yt=!1,ot=va(Ce,!0)):ur?(yt=!1,ot=zc(Ce,!0)):ot=[]:Lf(Ce)||Vc(Ce)?(ot=he,Vc(he)?ot=Pv(he):(!On(he)||Qa(he))&&(ot=nv(Ce))):yt=!1}yt&&(ae.set(Ce,ot),H(ot,Ce,R,K,ae),ae.delete(Ce)),Sc(o,g,ot)}function ga(o,a){var g=o.length;if(g)return a+=a<0?g:0,Ja(a,g)?o[a]:t}function jl(o,a,g){a.length?a=Xr(a,function(K){return br(K)?function(ae){return ts(ae,K.length===1?K[0]:K)}:K}):a=[bo];var R=-1;a=Xr(a,Wt(cr()));var H=Xi(o,function(K,ae,he){var Ce=Xr(a,function(it){return it(K)});return{criteria:Ce,index:++R,value:K}});return ee(H,function(K,ae){return Iu(K,ae,g)})}function Wa(o,a){return ma(o,a,function(g,R){return Gh(o,R)})}function ma(o,a,g){for(var R=-1,H=a.length,K={};++R<H;){var ae=a[R],he=ts(o,ae);g(he,ae)&&Is(K,jo(ae,o),he)}return K}function Eu(o){return function(a){return ts(a,o)}}function Lc(o,a,g,R){var H=R?vl:Ao,K=-1,ae=a.length,he=o;for(o===a&&(a=si(a)),g&&(he=Xr(o,Wt(g)));++K<ae;)for(var Ce=0,it=a[K],ot=g?g(it):it;(Ce=H(he,ot,Ce,R))>-1;)he!==o&&Io.call(he,Ce,1),Io.call(o,Ce,1);return o}function Dc(o,a){for(var g=o?a.length:0,R=g-1;g--;){var H=a[g];if(g==R||H!==K){var K=H;Ja(H)?Io.call(o,H,1):Fc(o,H)}}return o}function Rs(o,a){return o+bs(Ko()*(a-o+1))}function Mc(o,a,g,R){for(var H=-1,K=fn(na((a-o)/(g||1)),0),ae=Fe(K);K--;)ae[R?K:++H]=o,o+=g;return ae}function Bl(o,a){var g="";if(!o||a<1||a>de)return g;do a%2&&(g+=o),a=bs(a/2),a&&(o+=o);while(a);return g}function vr(o,a){return Bh(sv(o,a,bo),o+"")}function Va(o){return yi(Pu(o))}function Oc(o,a){var g=Pu(o);return bd(g,ws(a,0,g.length))}function Is(o,a,g,R){if(!On(o))return o;a=jo(a,o);for(var H=-1,K=a.length,ae=K-1,he=o;he!=null&&++H<K;){var Ce=ya(a[H]),it=g;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return o;if(H!=ae){var ot=he[Ce];it=R?R(ot,Ce,he):t,it===t&&(it=On(ot)?ot:Ja(a[H+1])?[]:{})}di(he,Ce,it),he=he[Ce]}return o}var Pc=Na?function(o,a){return Na.set(o,a),o}:bo,ku=Go?function(o,a){return Go(o,"toString",{configurable:!0,enumerable:!1,value:Kh(a),writable:!0})}:bo;function Nc(o){return bd(Pu(o))}function Oi(o,a,g){var R=-1,H=o.length;a<0&&(a=-a>H?0:H+a),g=g>H?H:g,g<0&&(g+=H),H=a>g?0:g-a>>>0,a>>>=0;for(var K=Fe(H);++R<H;)K[R]=o[R+a];return K}function Af(o,a){var g;return es(o,function(R,H,K){return g=a(R,H,K),!g}),!!g}function ql(o,a,g){var R=0,H=o==null?R:o.length;if(typeof a=="number"&&a===a&&H<=Me){for(;R<H;){var K=R+H>>>1,ae=o[K];ae!==null&&!Bo(ae)&&(g?ae<=a:ae<a)?R=K+1:H=K}return H}return Hl(o,a,bo,g)}function Hl(o,a,g,R){var H=0,K=o==null?0:o.length;if(K===0)return 0;a=g(a);for(var ae=a!==a,he=a===null,Ce=Bo(a),it=a===t;H<K;){var ot=bs((H+K)/2),yt=g(o[ot]),Ft=yt!==t,Qt=yt===null,ur=yt===yt,Rr=Bo(yt);if(ae)var fr=R||ur;else it?fr=ur&&(R||Ft):he?fr=ur&&Ft&&(R||!Qt):Ce?fr=ur&&Ft&&!Qt&&(R||!Rr):Qt||Rr?fr=!1:fr=R?yt<=a:yt<a;fr?H=ot+1:K=ot}return Mn(K,fe)}function Ru(o,a){for(var g=-1,R=o.length,H=0,K=[];++g<R;){var ae=o[g],he=a?a(ae):ae;if(!g||!Ls(he,Ce)){var Ce=he;K[H++]=ae===0?0:ae}}return K}function zl(o){return typeof o=="number"?o:Bo(o)?ue:+o}function Pi(o){if(typeof o=="string")return o;if(br(o))return Xr(o,Pi)+"";if(Bo(o))return Fa?Fa.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function kn(o,a,g){var R=-1,H=wo,K=o.length,ae=!0,he=[],Ce=he;if(g)ae=!1,H=Wn;else if(K>=i){var it=a?null:kf(o);if(it)return La(it);ae=!1,H=lr,Ce=new fi}else Ce=a?[]:he;e:for(;++R<K;){var ot=o[R],yt=a?a(ot):ot;if(ot=g||ot!==0?ot:0,ae&&yt===yt){for(var Ft=Ce.length;Ft--;)if(Ce[Ft]===yt)continue e;a&&Ce.push(yt),he.push(ot)}else H(Ce,yt,g)||(Ce!==he&&Ce.push(yt),he.push(ot))}return he}function Fc(o,a){return a=jo(a,o),o=av(o,a),o==null||delete o[ya(as(a))]}function Ga(o,a,g,R){return Is(o,a,g(ts(o,a)),R)}function $l(o,a,g,R){for(var H=o.length,K=R?H:-1;(R?K--:++K<H)&&a(o[K],K,o););return g?Oi(o,R?0:K,R?K+1:H):Oi(o,R?K+1:0,R?H:K)}function oi(o,a){var g=o;return g instanceof yr&&(g=g.value()),Ra(a,function(R,H){return H.func.apply(H.thisArg,Ti([R],H.args))},g)}function jc(o,a,g){var R=o.length;if(R<2)return R?kn(o[0]):[];for(var H=-1,K=Fe(R);++H<R;)for(var ae=o[H],he=-1;++he<R;)he!=H&&(K[H]=As(K[H]||ae,o[he],a,g));return kn(Vn(K,1),a,g)}function Bc(o,a,g){for(var R=-1,H=o.length,K=a.length,ae={};++R<H;){var he=R<K?a[R]:t;g(ae,o[R],he)}return ae}function Ul(o){return Zn(o)?o:[]}function ns(o){return typeof o=="function"?o:bo}function jo(o,a){return br(o)?o:Nh(o,a)?[o]:fv(nn(o))}var Tf=vr;function po(o,a,g){var R=o.length;return g=g===t?R:g,!a&&g>=R?o:Oi(o,a,g)}var is=gf||function(o){return hr.clearTimeout(o)};function va(o,a){if(a)return o.slice();var g=o.length,R=Ma?Ma(g):new o.constructor(g);return o.copy(R),R}function qc(o){var a=new o.constructor(o.byteLength);return new Da(a).set(new Da(o)),a}function Hc(o,a){var g=a?qc(o.buffer):o.buffer;return new o.constructor(g,o.byteOffset,o.byteLength)}function Za(o){var a=new o.constructor(o.source,lt.exec(o));return a.lastIndex=o.lastIndex,a}function Wl(o){return xs?Vr(xs.call(o)):{}}function zc(o,a){var g=a?qc(o.buffer):o.buffer;return new o.constructor(g,o.byteOffset,o.length)}function Ka(o,a){if(o!==a){var g=o!==t,R=o===null,H=o===o,K=Bo(o),ae=a!==t,he=a===null,Ce=a===a,it=Bo(a);if(!he&&!it&&!K&&o>a||K&&ae&&Ce&&!he&&!it||R&&ae&&Ce||!g&&Ce||!H)return 1;if(!R&&!K&&!it&&o<a||it&&g&&H&&!R&&!K||he&&g&&H||!ae&&H||!Ce)return-1}return 0}function Iu(o,a,g){for(var R=-1,H=o.criteria,K=a.criteria,ae=H.length,he=g.length;++R<ae;){var Ce=Ka(H[R],K[R]);if(Ce){if(R>=he)return Ce;var it=g[R];return Ce*(it=="desc"?-1:1)}}return o.index-a.index}function Lu(o,a,g,R){for(var H=-1,K=o.length,ae=g.length,he=-1,Ce=a.length,it=fn(K-ae,0),ot=Fe(Ce+it),yt=!R;++he<Ce;)ot[he]=a[he];for(;++H<ae;)(yt||H<K)&&(ot[g[H]]=o[H]);for(;it--;)ot[he++]=o[H++];return ot}function $c(o,a,g,R){for(var H=-1,K=o.length,ae=-1,he=g.length,Ce=-1,it=a.length,ot=fn(K-he,0),yt=Fe(ot+it),Ft=!R;++H<ot;)yt[H]=o[H];for(var Qt=H;++Ce<it;)yt[Qt+Ce]=a[Ce];for(;++ae<he;)(Ft||H<K)&&(yt[Qt+g[ae]]=o[H++]);return yt}function si(o,a){var g=-1,R=o.length;for(a||(a=Fe(R));++g<R;)a[g]=o[g];return a}function Qi(o,a,g,R){var H=!g;g||(g={});for(var K=-1,ae=a.length;++K<ae;){var he=a[K],Ce=R?R(g[he],o[he],he,g,o):t;Ce===t&&(Ce=o[he]),H?Di(g,he,Ce):di(g,he,Ce)}return g}function Ef(o,a){return Qi(o,Ph(o),a)}function Du(o,a){return Qi(o,tv(o),a)}function Vl(o,a){return function(g,R){var H=br(g)?ps:Cs,K=a?a():{};return H(g,o,cr(R,2),K)}}function d(o){return vr(function(a,g){var R=-1,H=g.length,K=H>1?g[H-1]:t,ae=H>2?g[2]:t;for(K=o.length>3&&typeof K=="function"?(H--,K):t,ae&&eo(g[0],g[1],ae)&&(K=H<3?t:K,H=1),a=Vr(a);++R<H;){var he=g[R];he&&o(a,he,R,K)}return a})}function s(o,a){return function(g,R){if(g==null)return g;if(!vo(g))return o(g,R);for(var H=g.length,K=a?H:-1,ae=Vr(g);(a?K--:++K<H)&&R(ae[K],K,ae)!==!1;);return g}}function c(o){return function(a,g,R){for(var H=-1,K=Vr(a),ae=R(a),he=ae.length;he--;){var Ce=ae[o?he:++H];if(g(K[Ce],Ce,K)===!1)break}return a}}function h(o,a,g){var R=a&w,H=B(o);function K(){var ae=this&&this!==hr&&this instanceof K?H:o;return ae.apply(R?g:this,arguments)}return K}function y(o){return function(a){a=nn(a);var g=Js(a)?pn(a):t,R=g?g[0]:a.charAt(0),H=g?po(g,1).join(""):a.slice(1);return R[o]()+H}}function M(o){return function(a){return Ra($v(zv(a).replace(io,"")),o,"")}}function B(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var g=Mo(o.prototype),R=o.apply(g,a);return On(R)?R:g}}function W(o,a,g){var R=B(o);function H(){for(var K=arguments.length,ae=Fe(K),he=K,Ce=Mu(H);he--;)ae[he]=arguments[he];var it=K<3&&ae[0]!==Ce&&ae[K-1]!==Ce?[]:To(ae,Ce);if(K-=it.length,K<g)return mo(o,a,Qe,H.placeholder,t,ae,it,t,t,g-K);var ot=this&&this!==hr&&this instanceof H?R:o;return cn(ot,this,ae)}return H}function oe(o){return function(a,g,R){var H=Vr(a);if(!vo(a)){var K=cr(g,3);a=bi(a),g=function(he){return K(H[he],he,H)}}var ae=o(a,g,R);return ae>-1?H[K?a[ae]:ae]:t}}function Ae(o){return Xa(function(a){var g=a.length,R=g,H=ii.prototype.thru;for(o&&a.reverse();R--;){var K=a[R];if(typeof K!="function")throw new qi(u);if(H&&!ae&&vd(K)=="wrapper")var ae=new ii([],!0)}for(R=ae?R:g;++R<g;){K=a[R];var he=vd(K),Ce=he=="wrapper"?Mh(K):t;Ce&&Fh(Ce[0])&&Ce[1]==(Z|O|j|ie)&&!Ce[4].length&&Ce[9]==1?ae=ae[vd(Ce[0])].apply(ae,Ce[3]):ae=K.length==1&&Fh(K)?ae[he]():ae.thru(K)}return function(){var it=arguments,ot=it[0];if(ae&&it.length==1&&br(ot))return ae.plant(ot).value();for(var yt=0,Ft=g?a[yt].apply(this,it):ot;++yt<g;)Ft=a[yt].call(this,Ft);return Ft}})}function Qe(o,a,g,R,H,K,ae,he,Ce,it){var ot=a&Z,yt=a&w,Ft=a&C,Qt=a&(O|N),ur=a&Y,Rr=Ft?t:B(o);function fr(){for(var jr=arguments.length,zr=Fe(jr),qo=jr;qo--;)zr[qo]=arguments[qo];if(Qt)var to=Mu(fr),Ho=Ei(zr,to);if(R&&(zr=Lu(zr,R,H,Qt)),K&&(zr=$c(zr,K,ae,Qt)),jr-=Ho,Qt&&jr<it){var Kn=To(zr,to);return mo(o,a,Qe,fr.placeholder,g,zr,Kn,he,Ce,it-jr)}var Ds=yt?g:this,tl=Ft?Ds[o]:o;return jr=zr.length,he?zr=QS(zr,he):ur&&jr>1&&zr.reverse(),ot&&Ce<jr&&(zr.length=Ce),this&&this!==hr&&this instanceof fr&&(tl=Rr||B(tl)),tl.apply(Ds,zr)}return fr}function dt(o,a){return function(g,R){return Ol(g,o,a(R),{})}}function It(o,a){return function(g,R){var H;if(g===t&&R===t)return a;if(g!==t&&(H=g),R!==t){if(H===t)return R;typeof g=="string"||typeof R=="string"?(g=Pi(g),R=Pi(R)):(g=zl(g),R=zl(R)),H=o(g,R)}return H}}function or(o){return Xa(function(a){return a=Xr(a,Wt(cr())),vr(function(g){var R=this;return o(a,function(H){return cn(H,R,g)})})})}function Dr(o,a){a=a===t?" ":Pi(a);var g=a.length;if(g<2)return g?Bl(a,o):a;var R=Bl(a,na(o/Qs(a)));return Js(a)?po(pn(R),0,o).join(""):R.slice(0,o)}function Gn(o,a,g,R){var H=a&w,K=B(o);function ae(){for(var he=-1,Ce=arguments.length,it=-1,ot=R.length,yt=Fe(ot+Ce),Ft=this&&this!==hr&&this instanceof ae?K:o;++it<ot;)yt[it]=R[it];for(;Ce--;)yt[it++]=arguments[++he];return cn(Ft,H?g:this,yt)}return ae}function os(o){return function(a,g,R){return R&&typeof R!="number"&&eo(a,g,R)&&(g=R=t),a=el(a),g===t?(g=a,a=0):g=el(g),R=R===t?a<g?1:-1:el(R),Mc(a,g,R,o)}}function go(o){return function(a,g){return typeof a=="string"&&typeof g=="string"||(a=ls(a),g=ls(g)),o(a,g)}}function mo(o,a,g,R,H,K,ae,he,Ce,it){var ot=a&O,yt=ot?ae:t,Ft=ot?t:ae,Qt=ot?K:t,ur=ot?t:K;a|=ot?j:$,a&=~(ot?$:j),a&D||(a&=-4);var Rr=[o,a,H,Qt,yt,ur,Ft,he,Ce,it],fr=g.apply(t,Rr);return Fh(o)&&lv(fr,Rr),fr.placeholder=R,cv(fr,o,a)}function ss(o){var a=Sn[o];return function(g,R){if(g=ls(g),R=R==null?0:Mn(Ar(R),292),R&&oa(g)){var H=(nn(g)+"e").split("e"),K=a(H[0]+"e"+(+H[1]+R));return H=(nn(K)+"e").split("e"),+(H[0]+"e"+(+H[1]-R))}return a(g)}}var kf=ao&&1/La(new ao([,-0]))[1]==ve?function(o){return new ao(o)}:Jh;function md(o){return function(a){var g=Hi(a);return g==$e?fc(a):g==wt?ff(a):Je(a,o(a))}}function Ya(o,a,g,R,H,K,ae,he){var Ce=a&C;if(!Ce&&typeof o!="function")throw new qi(u);var it=R?R.length:0;if(it||(a&=-97,R=H=t),ae=ae===t?ae:fn(Ar(ae),0),he=he===t?he:Ar(he),it-=H?H.length:0,a&$){var ot=R,yt=H;R=H=t}var Ft=Ce?t:Mh(o),Qt=[o,a,g,R,H,ot,yt,K,ae,he];if(Ft&&YS(Qt,Ft),o=Qt[0],a=Qt[1],g=Qt[2],R=Qt[3],H=Qt[4],he=Qt[9]=Qt[9]===t?Ce?0:o.length:fn(Qt[9]-it,0),!he&&a&(O|N)&&(a&=-25),!a||a==w)var ur=h(o,a,g);else a==O||a==N?ur=W(o,a,he):(a==j||a==(w|j))&&!H.length?ur=Gn(o,a,g,R):ur=Qe.apply(t,Qt);var Rr=Ft?Pc:lv;return cv(Rr(ur,Qt),o,a)}function Jm(o,a,g,R){return o===t||Ls(o,Wo[g])&&!$r.call(R,g)?a:o}function Qm(o,a,g,R,H,K){return On(o)&&On(a)&&(K.set(a,o),rs(o,a,t,Qm,K),K.delete(a)),o}function NS(o){return Lf(o)?t:o}function ev(o,a,g,R,H,K){var ae=g&_,he=o.length,Ce=a.length;if(he!=Ce&&!(ae&&Ce>he))return!1;var it=K.get(o),ot=K.get(a);if(it&&ot)return it==a&&ot==o;var yt=-1,Ft=!0,Qt=g&I?new fi:t;for(K.set(o,a),K.set(a,o);++yt<he;){var ur=o[yt],Rr=a[yt];if(R)var fr=ae?R(Rr,ur,yt,a,o,K):R(ur,Rr,yt,o,a,K);if(fr!==t){if(fr)continue;Ft=!1;break}if(Qt){if(!Uo(a,function(jr,zr){if(!lr(Qt,zr)&&(ur===jr||H(ur,jr,g,R,K)))return Qt.push(zr)})){Ft=!1;break}}else if(!(ur===Rr||H(ur,Rr,g,R,K))){Ft=!1;break}}return K.delete(o),K.delete(a),Ft}function FS(o,a,g,R,H,K,ae){switch(g){case jt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case xt:return!(o.byteLength!=a.byteLength||!K(new Da(o),new Da(a)));case Ze:case et:case bt:return Ls(+o,+a);case Se:return o.name==a.name&&o.message==a.message;case He:case _t:return o==a+"";case $e:var he=fc;case wt:var Ce=R&_;if(he||(he=La),o.size!=a.size&&!Ce)return!1;var it=ae.get(o);if(it)return it==a;R|=I,ae.set(o,a);var ot=ev(he(o),he(a),R,H,K,ae);return ae.delete(o),ot;case vt:if(xs)return xs.call(o)==xs.call(a)}return!1}function jS(o,a,g,R,H,K){var ae=g&_,he=Lh(o),Ce=he.length,it=Lh(a),ot=it.length;if(Ce!=ot&&!ae)return!1;for(var yt=Ce;yt--;){var Ft=he[yt];if(!(ae?Ft in a:$r.call(a,Ft)))return!1}var Qt=K.get(o),ur=K.get(a);if(Qt&&ur)return Qt==a&&ur==o;var Rr=!0;K.set(o,a),K.set(a,o);for(var fr=ae;++yt<Ce;){Ft=he[yt];var jr=o[Ft],zr=a[Ft];if(R)var qo=ae?R(zr,jr,Ft,a,o,K):R(jr,zr,Ft,o,a,K);if(!(qo===t?jr===zr||H(jr,zr,g,R,K):qo)){Rr=!1;break}fr||(fr=Ft=="constructor")}if(Rr&&!fr){var to=o.constructor,Ho=a.constructor;to!=Ho&&"constructor"in o&&"constructor"in a&&!(typeof to=="function"&&to instanceof to&&typeof Ho=="function"&&Ho instanceof Ho)&&(Rr=!1)}return K.delete(o),K.delete(a),Rr}function Xa(o){return Bh(sv(o,t,gv),o+"")}function Lh(o){return Ha(o,bi,Ph)}function Dh(o){return Ha(o,yo,tv)}var Mh=Na?function(o){return Na.get(o)}:Jh;function vd(o){for(var a=o.name+"",g=_s[a],R=$r.call(_s,a)?g.length:0;R--;){var H=g[R],K=H.func;if(K==null||K==o)return H.name}return a}function Mu(o){var a=$r.call(U,"placeholder")?U:o;return a.placeholder}function cr(){var o=U.iteratee||Yh;return o=o===Yh?Fl:o,arguments.length?o(arguments[0],arguments[1]):o}function yd(o,a){var g=o.__data__;return VS(a)?g[typeof a=="string"?"string":"hash"]:g.map}function Oh(o){for(var a=bi(o),g=a.length;g--;){var R=a[g],H=o[R];a[g]=[R,H,iv(H)]}return a}function Uc(o,a){var g=vs(o,a);return Tu(g)?g:t}function BS(o){var a=$r.call(o,Lo),g=o[Lo];try{o[Lo]=t;var R=!0}catch{}var H=ko.call(o);return R&&(a?o[Lo]=g:delete o[Lo]),H}var Ph=ia?function(o){return o==null?[]:(o=Vr(o),Gi(ia(o),function(a){return Sl.call(o,a)}))}:Qh,tv=ia?function(o){for(var a=[];o;)Ti(a,Ph(o)),o=ys(o);return a}:Qh,Hi=Fn;(so&&Hi(new so(new ArrayBuffer(1)))!=jt||Yo&&Hi(new Yo)!=$e||sa&&Hi(sa.resolve())!=mt||ao&&Hi(new ao)!=wt||Do&&Hi(new Do)!=Pe)&&(Hi=function(o){var a=Fn(o),g=a==ht?o.constructor:t,R=g?Wc(g):"";if(R)switch(R){case Xo:return jt;case vc:return $e;case mf:return mt;case vu:return wt;case la:return Pe}return a});function qS(o,a,g){for(var R=-1,H=g.length;++R<H;){var K=g[R],ae=K.size;switch(K.type){case"drop":o+=ae;break;case"dropRight":a-=ae;break;case"take":a=Mn(a,o+ae);break;case"takeRight":o=fn(o,a-ae);break}}return{start:o,end:a}}function HS(o){var a=o.match(re);return a?a[1].split(Ue):[]}function rv(o,a,g){a=jo(a,o);for(var R=-1,H=a.length,K=!1;++R<H;){var ae=ya(a[R]);if(!(K=o!=null&&g(o,ae)))break;o=o[ae]}return K||++R!=H?K:(H=o==null?0:o.length,!!H&&Ad(H)&&Ja(ae,H)&&(br(o)||Vc(o)))}function zS(o){var a=o.length,g=new o.constructor(a);return a&&typeof o[0]=="string"&&$r.call(o,"index")&&(g.index=o.index,g.input=o.input),g}function nv(o){return typeof o.constructor=="function"&&!Rf(o)?Mo(ys(o)):{}}function $S(o,a,g){var R=o.constructor;switch(a){case xt:return qc(o);case Ze:case et:return new R(+o);case jt:return Hc(o,g);case At:case Be:case Lt:case Dt:case dr:case Er:case Mr:case _e:case te:return zc(o,g);case $e:return new R;case bt:case _t:return new R(o);case He:return Za(o);case wt:return new R;case vt:return Wl(o)}}function US(o,a){var g=a.length;if(!g)return o;var R=g-1;return a[R]=(g>1?"& ":"")+a[R],a=a.join(g>2?", ":" "),o.replace(gr,`{
34
34
  /* [wrapped with `+a+`] */
35
- `)}function WS(o){return br(o)||Vc(o)||!!(Cl&&o&&o[Cl])}function Ja(o,a){var g=typeof o;return a=a??de,!!a&&(g=="number"||g!="symbol"&&Sr.test(o))&&o>-1&&o%1==0&&o<a}function eo(o,a,g){if(!On(g))return!1;var R=typeof a;return(R=="number"?vo(g)&&Ja(a,g.length):R=="string"&&a in g)?Ls(g[a],o):!1}function Nh(o,a){if(br(o))return!1;var g=typeof o;return g=="number"||g=="symbol"||g=="boolean"||o==null||Bo(o)?!0:Xt.test(o)||!Ot.test(o)||a!=null&&o in Vr(a)}function VS(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Fh(o){var a=vd(o),g=U[a];if(typeof g!="function"||!(a in yr.prototype))return!1;if(o===g)return!0;var R=Mh(g);return!!R&&o===R[0]}function GS(o){return!!un&&un in o}var ZS=rn?Qa:ep;function Rf(o){var a=o&&o.constructor,g=typeof a=="function"&&a.prototype||Wo;return o===g}function iv(o){return o===o&&!On(o)}function ov(o,a){return function(g){return g==null?!1:g[o]===a&&(a!==t||o in Vr(g))}}function KS(o){var a=Cd(o,function(R){return g.size===m&&g.clear(),R}),g=a.cache;return a}function YS(o,a){var g=o[1],R=a[1],H=g|R,K=H<(w|C|Z),ae=R==Z&&g==O||R==Z&&g==ie&&o[7].length<=a[8]||R==(Z|ie)&&a[7].length<=a[8]&&g==O;if(!(K||ae))return o;R&w&&(o[2]=a[2],H|=g&w?0:D);var he=a[3];if(he){var Ce=o[3];o[3]=Ce?Lu(Ce,he,a[4]):he,o[4]=Ce?To(o[3],T):a[4]}return he=a[5],he&&(Ce=o[5],o[5]=Ce?$c(Ce,he,a[6]):he,o[6]=Ce?To(o[5],T):a[6]),he=a[7],he&&(o[7]=he),R&Z&&(o[8]=o[8]==null?a[8]:Mn(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=H,o}function XS(o){var a=[];if(o!=null)for(var g in Vr(o))a.push(g);return a}function JS(o){return ko.call(o)}function sv(o,a,g){return a=fn(a===t?o.length-1:a,0),function(){for(var R=arguments,H=-1,K=fn(R.length-a,0),ae=Fe(K);++H<K;)ae[H]=R[a+H];H=-1;for(var he=Fe(a+1);++H<a;)he[H]=R[H];return he[a]=g(ae),cn(o,this,he)}}function av(o,a){return a.length<2?o:ts(o,Oi(a,0,-1))}function QS(o,a){for(var g=o.length,R=Mn(a.length,g),H=si(o);R--;){var K=a[R];o[R]=Ja(K,g)?H[K]:t}return o}function jh(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var lv=uv(Pc),If=gu||function(o,a){return hr.setTimeout(o,a)},Bh=uv(ku);function cv(o,a,g){var R=a+"";return Bh(o,US(R,eC(HS(R),g)))}function uv(o){var a=0,g=0;return function(){var R=Zo(),H=X-(R-g);if(g=R,H>0){if(++a>=J)return arguments[0]}else a=0;return o.apply(t,arguments)}}function bd(o,a){var g=-1,R=o.length,H=R-1;for(a=a===t?R:a;++g<a;){var K=Rs(g,H),ae=o[K];o[K]=o[g],o[g]=ae}return o.length=a,o}var fv=KS(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(Or,function(g,R,H,K){a.push(H?K.replace(at,"$1"):R||g)}),a});function ya(o){if(typeof o=="string"||Bo(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function Wc(o){if(o!=null){try{return Vo.call(o)}catch{}try{return o+""}catch{}}return""}function eC(o,a){return Un(Ve,function(g){var R="_."+g[0];a&g[1]&&!wo(o,R)&&o.push(R)}),o.sort()}function dv(o){if(o instanceof yr)return o.clone();var a=new ii(o.__wrapped__,o.__chain__);return a.__actions__=si(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function tC(o,a,g){(g?eo(o,a,g):a===t)?a=1:a=fn(Ar(a),0);var R=o==null?0:o.length;if(!R||a<1)return[];for(var H=0,K=0,ae=Fe(na(R/a));H<R;)ae[K++]=Oi(o,H,H+=a);return ae}function rC(o){for(var a=-1,g=o==null?0:o.length,R=0,H=[];++a<g;){var K=o[a];K&&(H[R++]=K)}return H}function nC(){var o=arguments.length;if(!o)return[];for(var a=Fe(o-1),g=arguments[0],R=o;R--;)a[R-1]=arguments[R];return Ti(br(g)?si(g):[g],Vn(a,1))}var iC=vr(function(o,a){return Zn(o)?As(o,Vn(a,1,Zn,!0)):[]}),oC=vr(function(o,a){var g=as(a);return Zn(g)&&(g=t),Zn(o)?As(o,Vn(a,1,Zn,!0),cr(g,2)):[]}),sC=vr(function(o,a){var g=as(a);return Zn(g)&&(g=t),Zn(o)?As(o,Vn(a,1,Zn,!0),t,g):[]});function aC(o,a,g){var R=o==null?0:o.length;return R?(a=g||a===t?1:Ar(a),Oi(o,a<0?0:a,R)):[]}function lC(o,a,g){var R=o==null?0:o.length;return R?(a=g||a===t?1:Ar(a),a=R-a,Oi(o,0,a<0?0:a)):[]}function cC(o,a){return o&&o.length?$l(o,cr(a,3),!0,!0):[]}function uC(o,a){return o&&o.length?$l(o,cr(a,3),!0):[]}function fC(o,a,g,R){var H=o==null?0:o.length;return H?(g&&typeof g!="number"&&eo(o,a,g)&&(g=0,R=H),wf(o,a,g,R)):[]}function hv(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=g==null?0:Ar(g);return H<0&&(H=fn(R+H,0)),ms(o,cr(a,3),H)}function pv(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=R-1;return g!==t&&(H=Ar(g),H=g<0?fn(R+H,0):Mn(H,R-1)),ms(o,cr(a,3),H,!0)}function gv(o){var a=o==null?0:o.length;return a?Vn(o,1):[]}function dC(o){var a=o==null?0:o.length;return a?Vn(o,ve):[]}function hC(o,a){var g=o==null?0:o.length;return g?(a=a===t?1:Ar(a),Vn(o,a)):[]}function pC(o){for(var a=-1,g=o==null?0:o.length,R={};++a<g;){var H=o[a];R[H[0]]=H[1]}return R}function mv(o){return o&&o.length?o[0]:t}function gC(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=g==null?0:Ar(g);return H<0&&(H=fn(R+H,0)),Ao(o,a,H)}function mC(o){var a=o==null?0:o.length;return a?Oi(o,0,-1):[]}var vC=vr(function(o){var a=Xr(o,Ul);return a.length&&a[0]===o[0]?da(a):[]}),yC=vr(function(o){var a=as(o),g=Xr(o,Ul);return a===as(g)?a=t:g.pop(),g.length&&g[0]===o[0]?da(g,cr(a,2)):[]}),bC=vr(function(o){var a=as(o),g=Xr(o,Ul);return a=typeof a=="function"?a:t,a&&g.pop(),g.length&&g[0]===o[0]?da(g,t,a):[]});function _C(o,a){return o==null?"":Pa.call(o,a)}function as(o){var a=o==null?0:o.length;return a?o[a-1]:t}function xC(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=R;return g!==t&&(H=Ar(g),H=H<0?fn(R+H,0):Mn(H,R-1)),a===a?hf(o,a,H):ms(o,Ys,H,!0)}function SC(o,a){return o&&o.length?ga(o,Ar(a)):t}var CC=vr(vv);function vv(o,a){return o&&o.length&&a&&a.length?Lc(o,a):o}function wC(o,a,g){return o&&o.length&&a&&a.length?Lc(o,a,cr(g,2)):o}function AC(o,a,g){return o&&o.length&&a&&a.length?Lc(o,a,t,g):o}var TC=Xa(function(o,a){var g=o==null?0:o.length,R=wc(o,a);return Dc(o,Xr(a,function(H){return Ja(H,g)?+H:H}).sort(Ka)),R});function EC(o,a){var g=[];if(!(o&&o.length))return g;var R=-1,H=[],K=o.length;for(a=cr(a,3);++R<K;){var ae=o[R];a(ae,R,o)&&(g.push(ae),H.push(R))}return Dc(o,H),g}function qh(o){return o==null?o:Al.call(o)}function kC(o,a,g){var R=o==null?0:o.length;return R?(g&&typeof g!="number"&&eo(o,a,g)?(a=0,g=R):(a=a==null?0:Ar(a),g=g===t?R:Ar(g)),Oi(o,a,g)):[]}function RC(o,a){return ql(o,a)}function IC(o,a,g){return Hl(o,a,cr(g,2))}function LC(o,a){var g=o==null?0:o.length;if(g){var R=ql(o,a);if(R<g&&Ls(o[R],a))return R}return-1}function DC(o,a){return ql(o,a,!0)}function MC(o,a,g){return Hl(o,a,cr(g,2),!0)}function OC(o,a){var g=o==null?0:o.length;if(g){var R=ql(o,a,!0)-1;if(Ls(o[R],a))return R}return-1}function PC(o){return o&&o.length?Ru(o):[]}function NC(o,a){return o&&o.length?Ru(o,cr(a,2)):[]}function FC(o){var a=o==null?0:o.length;return a?Oi(o,1,a):[]}function jC(o,a,g){return o&&o.length?(a=g||a===t?1:Ar(a),Oi(o,0,a<0?0:a)):[]}function BC(o,a,g){var R=o==null?0:o.length;return R?(a=g||a===t?1:Ar(a),a=R-a,Oi(o,a<0?0:a,R)):[]}function qC(o,a){return o&&o.length?$l(o,cr(a,3),!1,!0):[]}function HC(o,a){return o&&o.length?$l(o,cr(a,3)):[]}var zC=vr(function(o){return kn(Vn(o,1,Zn,!0))}),$C=vr(function(o){var a=as(o);return Zn(a)&&(a=t),kn(Vn(o,1,Zn,!0),cr(a,2))}),UC=vr(function(o){var a=as(o);return a=typeof a=="function"?a:t,kn(Vn(o,1,Zn,!0),t,a)});function WC(o){return o&&o.length?kn(o):[]}function VC(o,a){return o&&o.length?kn(o,cr(a,2)):[]}function GC(o,a){return a=typeof a=="function"?a:t,o&&o.length?kn(o,t,a):[]}function Hh(o){if(!(o&&o.length))return[];var a=0;return o=Gi(o,function(g){if(Zn(g))return a=fn(g.length,a),!0}),Te(a,function(g){return Xr(o,E(g))})}function yv(o,a){if(!(o&&o.length))return[];var g=Hh(o);return a==null?g:Xr(g,function(R){return cn(a,t,R)})}var ZC=vr(function(o,a){return Zn(o)?As(o,a):[]}),KC=vr(function(o){return jc(Gi(o,Zn))}),YC=vr(function(o){var a=as(o);return Zn(a)&&(a=t),jc(Gi(o,Zn),cr(a,2))}),XC=vr(function(o){var a=as(o);return a=typeof a=="function"?a:t,jc(Gi(o,Zn),t,a)}),JC=vr(Hh);function QC(o,a){return Bc(o||[],a||[],di)}function ew(o,a){return Bc(o||[],a||[],Is)}var tw=vr(function(o){var a=o.length,g=a>1?o[a-1]:t;return g=typeof g=="function"?(o.pop(),g):t,yv(o,g)});function bv(o){var a=U(o);return a.__chain__=!0,a}function rw(o,a){return a(o),o}function _d(o,a){return a(o)}var nw=Xa(function(o){var a=o.length,g=a?o[0]:0,R=this.__wrapped__,H=function(K){return wc(K,o)};return a>1||this.__actions__.length||!(R instanceof yr)||!Ja(g)?this.thru(H):(R=R.slice(g,+g+(a?1:0)),R.__actions__.push({func:_d,args:[H],thisArg:t}),new ii(R,this.__chain__).thru(function(K){return a&&!K.length&&K.push(t),K}))});function iw(){return bv(this)}function ow(){return new ii(this.value(),this.__chain__)}function sw(){this.__values__===t&&(this.__values__=Mv(this.value()));var o=this.__index__>=this.__values__.length,a=o?t:this.__values__[this.__index__++];return{done:o,value:a}}function aw(){return this}function lw(o){for(var a,g=this;g instanceof Oo;){var R=dv(g);R.__index__=0,R.__values__=t,a?H.__wrapped__=R:a=R;var H=R;g=g.__wrapped__}return H.__wrapped__=o,a}function cw(){var o=this.__wrapped__;if(o instanceof yr){var a=o;return this.__actions__.length&&(a=new yr(this)),a=a.reverse(),a.__actions__.push({func:_d,args:[qh],thisArg:t}),new ii(a,this.__chain__)}return this.thru(qh)}function uw(){return oi(this.__wrapped__,this.__actions__)}var fw=Vl(function(o,a,g){$r.call(o,g)?++o[g]:Di(o,g,1)});function dw(o,a,g){var R=br(o)?ka:Su;return g&&eo(o,a,g)&&(a=t),R(o,cr(a,3))}function hw(o,a){var g=br(o)?Gi:Cu;return g(o,cr(a,3))}var pw=oe(hv),gw=oe(pv);function mw(o,a){return Vn(xd(o,a),1)}function vw(o,a){return Vn(xd(o,a),ve)}function yw(o,a,g){return g=g===t?1:Ar(g),Vn(xd(o,a),g)}function _v(o,a){var g=br(o)?Un:es;return g(o,cr(a,3))}function xv(o,a){var g=br(o)?hl:kc;return g(o,cr(a,3))}var bw=Vl(function(o,a,g){$r.call(o,g)?o[g].push(a):Di(o,g,[a])});function _w(o,a,g,R){o=vo(o)?o:Pu(o),g=g&&!R?Ar(g):0;var H=o.length;return g<0&&(g=fn(H+g,0)),Td(o)?g<=H&&o.indexOf(a,g)>-1:!!H&&Ao(o,a,g)>-1}var xw=vr(function(o,a,g){var R=-1,H=typeof a=="function",K=vo(o)?Fe(o.length):[];return es(o,function(ae){K[++R]=H?cn(a,ae,g):fo(ae,a,g)}),K}),Sw=Vl(function(o,a,g){Di(o,g,a)});function xd(o,a){var g=br(o)?Xr:Xi;return g(o,cr(a,3))}function Cw(o,a,g,R){return o==null?[]:(br(a)||(a=a==null?[]:[a]),g=R?t:g,br(g)||(g=g==null?[]:[g]),jl(o,a,g))}var ww=Vl(function(o,a,g){o[g?0:1].push(a)},function(){return[[],[]]});function Aw(o,a,g){var R=br(o)?Ra:z,H=arguments.length<3;return R(o,cr(a,4),g,H,es)}function Tw(o,a,g){var R=br(o)?pl:z,H=arguments.length<3;return R(o,cr(a,4),g,H,kc)}function Ew(o,a){var g=br(o)?Gi:Cu;return g(o,wd(cr(a,3)))}function kw(o){var a=br(o)?yi:Va;return a(o)}function Rw(o,a,g){(g?eo(o,a,g):a===t)?a=1:a=Ar(a);var R=br(o)?Li:Oc;return R(o,a)}function Iw(o){var a=br(o)?uo:Nc;return a(o)}function Lw(o){if(o==null)return 0;if(vo(o))return Td(o)?Qs(o):o.length;var a=Hi(o);return a==$e||a==wt?o.size:Fo(o).length}function Dw(o,a,g){var R=br(o)?Uo:Af;return g&&eo(o,a,g)&&(a=t),R(o,cr(a,3))}var Mw=vr(function(o,a){if(o==null)return[];var g=a.length;return g>1&&eo(o,a[0],a[1])?a=[]:g>2&&eo(a[0],a[1],a[2])&&(a=[a[0]]),jl(o,Vn(a,1),[])}),Sd=Oa||function(){return hr.Date.now()};function Ow(o,a){if(typeof a!="function")throw new qi(u);return o=Ar(o),function(){if(--o<1)return a.apply(this,arguments)}}function Sv(o,a,g){return a=g?t:a,a=o&&a==null?o.length:a,Ya(o,Z,t,t,t,t,a)}function Cv(o,a){var g;if(typeof a!="function")throw new qi(u);return o=Ar(o),function(){return--o>0&&(g=a.apply(this,arguments)),o<=1&&(a=t),g}}var zh=vr(function(o,a,g){var R=w;if(g.length){var H=To(g,Mu(zh));R|=j}return Ya(o,R,a,g,H)}),wv=vr(function(o,a,g){var R=w|C;if(g.length){var H=To(g,Mu(wv));R|=j}return Ya(a,R,o,g,H)});function Av(o,a,g){a=g?t:a;var R=Ya(o,O,t,t,t,t,t,a);return R.placeholder=Av.placeholder,R}function Tv(o,a,g){a=g?t:a;var R=Ya(o,F,t,t,t,t,t,a);return R.placeholder=Tv.placeholder,R}function Ev(o,a,g){var R,H,K,ae,he,Ce,it=0,ot=!1,yt=!1,Ft=!0;if(typeof o!="function")throw new qi(u);a=ls(a)||0,On(g)&&(ot=!!g.leading,yt="maxWait"in g,K=yt?fn(ls(g.maxWait)||0,a):K,Ft="trailing"in g?!!g.trailing:Ft);function Qt(Kn){var Ds=R,tl=H;return R=H=t,it=Kn,ae=o.apply(tl,Ds),ae}function ur(Kn){return it=Kn,he=If(jr,a),ot?Qt(Kn):ae}function Rr(Kn){var Ds=Kn-Ce,tl=Kn-it,Vv=a-Ds;return yt?Mn(Vv,K-tl):Vv}function fr(Kn){var Ds=Kn-Ce,tl=Kn-it;return Ce===t||Ds>=a||Ds<0||yt&&tl>=K}function jr(){var Kn=Sd();if(fr(Kn))return zr(Kn);he=If(jr,Rr(Kn))}function zr(Kn){return he=t,Ft&&R?Qt(Kn):(R=H=t,ae)}function qo(){he!==t&&is(he),it=0,R=Ce=H=he=t}function to(){return he===t?ae:zr(Sd())}function Ho(){var Kn=Sd(),Ds=fr(Kn);if(R=arguments,H=this,Ce=Kn,Ds){if(he===t)return ur(Ce);if(yt)return is(he),he=If(jr,a),Qt(Ce)}return he===t&&(he=If(jr,a)),ae}return Ho.cancel=qo,Ho.flush=to,Ho}var Pw=vr(function(o,a){return Ec(o,1,a)}),Nw=vr(function(o,a,g){return Ec(o,ls(a)||0,g)});function Fw(o){return Ya(o,Y)}function Cd(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new qi(u);var g=function(){var R=arguments,H=a?a.apply(this,R):R[0],K=g.cache;if(K.has(H))return K.get(H);var ae=o.apply(this,R);return g.cache=K.set(H,ae)||K,ae};return g.cache=new(Cd.Cache||Po),g}Cd.Cache=Po;function wd(o){if(typeof o!="function")throw new qi(u);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function jw(o){return Cv(2,o)}var Bw=Tf(function(o,a){a=a.length==1&&br(a[0])?Xr(a[0],Wt(cr())):Xr(Vn(a,1),Wt(cr()));var g=a.length;return vr(function(R){for(var H=-1,K=Mn(R.length,g);++H<K;)R[H]=a[H].call(this,R[H]);return cn(o,this,R)})}),$h=vr(function(o,a){var g=To(a,Mu($h));return Ya(o,j,t,a,g)}),kv=vr(function(o,a){var g=To(a,Mu(kv));return Ya(o,$,t,a,g)}),qw=Xa(function(o,a){return Ya(o,ie,t,t,t,a)});function Hw(o,a){if(typeof o!="function")throw new qi(u);return a=a===t?a:Ar(a),vr(o,a)}function zw(o,a){if(typeof o!="function")throw new qi(u);return a=a==null?0:fn(Ar(a),0),vr(function(g){var R=g[a],H=po(g,0,a);return R&&Ti(H,R),cn(o,this,H)})}function $w(o,a,g){var R=!0,H=!0;if(typeof o!="function")throw new qi(u);return On(g)&&(R="leading"in g?!!g.leading:R,H="trailing"in g?!!g.trailing:H),Ev(o,a,{leading:R,maxWait:a,trailing:H})}function Uw(o){return Sv(o,1)}function Ww(o,a){return $h(ns(a),o)}function Vw(){if(!arguments.length)return[];var o=arguments[0];return br(o)?o:[o]}function Gw(o){return hi(o,x)}function Zw(o,a){return a=typeof a=="function"?a:t,hi(o,x,a)}function Kw(o){return hi(o,k|x)}function Yw(o,a){return a=typeof a=="function"?a:t,hi(o,k|x,a)}function Xw(o,a){return a==null||Tc(o,a,bi(a))}function Ls(o,a){return o===a||o!==o&&a!==a}var Jw=go(Ts),Qw=go(function(o,a){return o>=a}),Vc=Pl(function(){return arguments}())?Pl:function(o){return jn(o)&&$r.call(o,"callee")&&!Sl.call(o,"callee")},br=Fe.isArray,e3=tn?Wt(tn):Es;function vo(o){return o!=null&&Ad(o.length)&&!Qa(o)}function Zn(o){return jn(o)&&vo(o)}function t3(o){return o===!0||o===!1||jn(o)&&Fn(o)==Ze}var Gl=wl||ep,r3=ui?Wt(ui):Au;function n3(o){return jn(o)&&o.nodeType===1&&!Lf(o)}function i3(o){if(o==null)return!0;if(vo(o)&&(br(o)||typeof o=="string"||typeof o.splice=="function"||Gl(o)||Ou(o)||Vc(o)))return!o.length;var a=Hi(o);if(a==$e||a==wt)return!o.size;if(Rf(o))return!Fo(o).length;for(var g in o)if($r.call(o,g))return!1;return!0}function o3(o,a){return za(o,a)}function s3(o,a,g){g=typeof g=="function"?g:t;var R=g?g(o,a):t;return R===t?za(o,a,t,g):!!R}function Uh(o){if(!jn(o))return!1;var a=Fn(o);return a==Se||a==xe||typeof o.message=="string"&&typeof o.name=="string"&&!Lf(o)}function a3(o){return typeof o=="number"&&oa(o)}function Qa(o){if(!On(o))return!1;var a=Fn(o);return a==be||a==Le||a==ze||a==Oe}function Rv(o){return typeof o=="number"&&o==Ar(o)}function Ad(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=de}function On(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function jn(o){return o!=null&&typeof o=="object"}var Iv=vi?Wt(vi):pa;function l3(o,a){return o===a||Ic(o,a,Oh(a))}function c3(o,a,g){return g=typeof g=="function"?g:t,Ic(o,a,Oh(a),g)}function u3(o){return Lv(o)&&o!=+o}function f3(o){if(ZS(o))throw new sr(l);return Tu(o)}function d3(o){return o===null}function h3(o){return o==null}function Lv(o){return typeof o=="number"||jn(o)&&Fn(o)==bt}function Lf(o){if(!jn(o)||Fn(o)!=ht)return!1;var a=ys(o);if(a===null)return!0;var g=$r.call(a,"constructor")&&a.constructor;return typeof g=="function"&&g instanceof g&&Vo.call(g)==hc}var Wh=$n?Wt($n):ks;function p3(o){return Rv(o)&&o>=-9007199254740991&&o<=de}var Dv=Co?Wt(Co):Nl;function Td(o){return typeof o=="string"||!br(o)&&jn(o)&&Fn(o)==_t}function Bo(o){return typeof o=="symbol"||jn(o)&&Fn(o)==vt}var Ou=Vi?Wt(Vi):No;function g3(o){return o===t}function m3(o){return jn(o)&&Hi(o)==Pe}function v3(o){return jn(o)&&Fn(o)==Ke}var y3=go(Yi),b3=go(function(o,a){return o<=a});function Mv(o){if(!o)return[];if(vo(o))return Td(o)?pn(o):si(o);if(Zi&&o[Zi])return uc(o[Zi]());var a=Hi(o),g=a==$e?fc:a==wt?La:Pu;return g(o)}function el(o){if(!o)return o===0?o:0;if(o=ls(o),o===ve||o===-1/0){var a=o<0?-1:1;return a*De}return o===o?o:0}function Ar(o){var a=el(o),g=a%1;return a===a?g?a-g:a:0}function Ov(o){return o?ws(Ar(o),0,le):0}function ls(o){if(typeof o=="number")return o;if(Bo(o))return ue;if(On(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=On(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=Ct(o);var g=ar.test(o);return g||ir.test(o)?Vt(o.slice(2),g?2:8):zt.test(o)?ue:+o}function Pv(o){return Qi(o,yo(o))}function _3(o){return o?ws(Ar(o),-9007199254740991,de):o===0?o:0}function nn(o){return o==null?"":Pi(o)}var x3=d(function(o,a){if(Rf(a)||vo(a)){Qi(a,bi(a),o);return}for(var g in a)$r.call(a,g)&&di(o,g,a[g])}),Nv=d(function(o,a){Qi(a,yo(a),o)}),Ed=d(function(o,a,g,R){Qi(a,yo(a),o,R)}),S3=d(function(o,a,g,R){Qi(a,bi(a),o,R)}),C3=Xa(wc);function w3(o,a){var g=Mo(o);return a==null?g:xu(g,a)}var A3=vr(function(o,a){o=Vr(o);var g=-1,R=a.length,H=R>2?a[2]:t;for(H&&eo(a[0],a[1],H)&&(R=1);++g<R;)for(var K=a[g],ae=yo(K),he=-1,Ce=ae.length;++he<Ce;){var it=ae[he],ot=o[it];(ot===t||Ls(ot,Wo[it])&&!$r.call(o,it))&&(o[it]=K[it])}return o}),T3=vr(function(o){return o.push(t,Qm),cn(Fv,t,o)});function E3(o,a){return gs(o,cr(a,3),Mi)}function k3(o,a){return gs(o,cr(a,3),Ll)}function R3(o,a){return o==null?o:Rc(o,cr(a,3),yo)}function I3(o,a){return o==null?o:wu(o,cr(a,3),yo)}function L3(o,a){return o&&Mi(o,cr(a,3))}function D3(o,a){return o&&Ll(o,cr(a,3))}function M3(o){return o==null?[]:ua(o,bi(o))}function O3(o){return o==null?[]:ua(o,yo(o))}function Vh(o,a,g){var R=o==null?t:ts(o,a);return R===t?g:R}function P3(o,a){return o!=null&&rv(o,a,Dl)}function Gh(o,a){return o!=null&&rv(o,a,fa)}var N3=dt(function(o,a,g){a!=null&&typeof a.toString!="function"&&(a=ko.call(a)),o[a]=g},Kh(bo)),F3=dt(function(o,a,g){a!=null&&typeof a.toString!="function"&&(a=ko.call(a)),$r.call(o,a)?o[a].push(g):o[a]=[g]},cr),j3=vr(fo);function bi(o){return vo(o)?qa(o):Fo(o)}function yo(o){return vo(o)?qa(o,!0):$a(o)}function B3(o,a){var g={};return a=cr(a,3),Mi(o,function(R,H,K){Di(g,a(R,H,K),R)}),g}function q3(o,a){var g={};return a=cr(a,3),Mi(o,function(R,H,K){Di(g,H,a(R,H,K))}),g}var H3=d(function(o,a,g){rs(o,a,g)}),Fv=d(function(o,a,g,R){rs(o,a,g,R)}),z3=Xa(function(o,a){var g={};if(o==null)return g;var R=!1;a=Xr(a,function(K){return K=jo(K,o),R||(R=K.length>1),K}),Qi(o,Dh(o),g),R&&(g=hi(g,k|b|x,NS));for(var H=a.length;H--;)Fc(g,a[H]);return g});function $3(o,a){return jv(o,wd(cr(a)))}var U3=Xa(function(o,a){return o==null?{}:Wa(o,a)});function jv(o,a){if(o==null)return{};var g=Xr(Dh(o),function(R){return[R]});return a=cr(a),ma(o,g,function(R,H){return a(R,H[0])})}function W3(o,a,g){a=jo(a,o);var R=-1,H=a.length;for(H||(H=1,o=t);++R<H;){var K=o==null?t:o[ya(a[R])];K===t&&(R=H,K=g),o=Qa(K)?K.call(o):K}return o}function V3(o,a,g){return o==null?o:Is(o,a,g)}function G3(o,a,g,R){return R=typeof R=="function"?R:t,o==null?o:Is(o,a,g,R)}var Bv=md(bi),qv=md(yo);function Z3(o,a,g){var R=br(o),H=R||Gl(o)||Ou(o);if(a=cr(a,4),g==null){var K=o&&o.constructor;H?g=R?new K:[]:On(o)?g=Qa(K)?Mo(ys(o)):{}:g={}}return(H?Un:Mi)(o,function(ae,he,Ce){return a(g,ae,he,Ce)}),g}function K3(o,a){return o==null?!0:Fc(o,a)}function Y3(o,a,g){return o==null?o:Ga(o,a,ns(g))}function X3(o,a,g,R){return R=typeof R=="function"?R:t,o==null?o:Ga(o,a,ns(g),R)}function Pu(o){return o==null?[]:pr(o,bi(o))}function J3(o){return o==null?[]:pr(o,yo(o))}function Q3(o,a,g){return g===t&&(g=a,a=t),g!==t&&(g=ls(g),g=g===g?g:0),a!==t&&(a=ls(a),a=a===a?a:0),ws(ls(o),a,g)}function eA(o,a,g){return a=el(a),g===t?(g=a,a=0):g=el(g),o=ls(o),Ml(o,a,g)}function tA(o,a,g){if(g&&typeof g!="boolean"&&eo(o,a,g)&&(a=g=t),g===t&&(typeof a=="boolean"?(g=a,a=t):typeof o=="boolean"&&(g=o,o=t)),o===t&&a===t?(o=0,a=1):(o=el(o),a===t?(a=o,o=0):a=el(a)),o>a){var R=o;o=a,a=R}if(g||o%1||a%1){var H=Ko();return Mn(o+H*(a-o+Jt("1e-"+((H+"").length-1))),a)}return Rs(o,a)}var rA=M(function(o,a,g){return a=a.toLowerCase(),o+(g?Hv(a):a)});function Hv(o){return Zh(nn(o).toLowerCase())}function zv(o){return o=nn(o),o&&o.replace(nr,ki).replace(oo,"")}function nA(o,a,g){o=nn(o),a=Pi(a);var R=o.length;g=g===t?R:ws(Ar(g),0,R);var H=g;return g-=a.length,g>=0&&o.slice(g,H)==a}function iA(o){return o=nn(o),o&&Xe.test(o)?o.replace(Mt,Xs):o}function oA(o){return o=nn(o),o&&St.test(o)?o.replace(st,"\\$&"):o}var sA=M(function(o,a,g){return o+(g?"-":"")+a.toLowerCase()}),aA=M(function(o,a,g){return o+(g?" ":"")+a.toLowerCase()}),lA=y("toLowerCase");function cA(o,a,g){o=nn(o),a=Ar(a);var R=a?Qs(o):0;if(!a||R>=a)return o;var H=(a-R)/2;return Dr(bs(H),g)+o+Dr(na(H),g)}function uA(o,a,g){o=nn(o),a=Ar(a);var R=a?Qs(o):0;return a&&R<a?o+Dr(a-R,g):o}function fA(o,a,g){o=nn(o),a=Ar(a);var R=a?Qs(o):0;return a&&R<a?Dr(a-R,g)+o:o}function dA(o,a,g){return g||a==null?a=0:a&&(a=+a),mc(nn(o).replace(pt,""),a||0)}function hA(o,a,g){return(g?eo(o,a,g):a===t)?a=1:a=Ar(a),Bl(nn(o),a)}function pA(){var o=arguments,a=nn(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var gA=M(function(o,a,g){return o+(g?"_":"")+a.toLowerCase()});function mA(o,a,g){return g&&typeof g!="number"&&eo(o,a,g)&&(a=g=t),g=g===t?le:g>>>0,g?(o=nn(o),o&&(typeof a=="string"||a!=null&&!Wh(a))&&(a=Pi(a),!a&&Js(o))?po(pn(o),0,g):o.split(a,g)):[]}var vA=M(function(o,a,g){return o+(g?" ":"")+Zh(a)});function yA(o,a,g){return o=nn(o),g=g==null?0:ws(Ar(g),0,o.length),a=Pi(a),o.slice(g,g+a.length)==a}function bA(o,a,g){var R=U.templateSettings;g&&eo(o,a,g)&&(a=t),o=nn(o),a=Ed({},a,R,Jm);var H=Ed({},a.imports,R.imports,Jm),K=bi(H),ae=pr(H,K),he,Ce,it=0,ot=a.interpolate||Wr,yt="__p += '",Ft=ea((a.escape||Wr).source+"|"+ot.source+"|"+(ot===Ht?Et:Wr).source+"|"+(a.evaluate||Wr).source+"|$","g"),Qt="//# sourceURL="+($r.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pr+"]")+`
35
+ `)}function WS(o){return br(o)||Vc(o)||!!(Cl&&o&&o[Cl])}function Ja(o,a){var g=typeof o;return a=a??de,!!a&&(g=="number"||g!="symbol"&&Sr.test(o))&&o>-1&&o%1==0&&o<a}function eo(o,a,g){if(!On(g))return!1;var R=typeof a;return(R=="number"?vo(g)&&Ja(a,g.length):R=="string"&&a in g)?Ls(g[a],o):!1}function Nh(o,a){if(br(o))return!1;var g=typeof o;return g=="number"||g=="symbol"||g=="boolean"||o==null||Bo(o)?!0:Xt.test(o)||!Ot.test(o)||a!=null&&o in Vr(a)}function VS(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Fh(o){var a=vd(o),g=U[a];if(typeof g!="function"||!(a in yr.prototype))return!1;if(o===g)return!0;var R=Mh(g);return!!R&&o===R[0]}function GS(o){return!!un&&un in o}var ZS=rn?Qa:ep;function Rf(o){var a=o&&o.constructor,g=typeof a=="function"&&a.prototype||Wo;return o===g}function iv(o){return o===o&&!On(o)}function ov(o,a){return function(g){return g==null?!1:g[o]===a&&(a!==t||o in Vr(g))}}function KS(o){var a=Cd(o,function(R){return g.size===m&&g.clear(),R}),g=a.cache;return a}function YS(o,a){var g=o[1],R=a[1],H=g|R,K=H<(w|C|Z),ae=R==Z&&g==O||R==Z&&g==ie&&o[7].length<=a[8]||R==(Z|ie)&&a[7].length<=a[8]&&g==O;if(!(K||ae))return o;R&w&&(o[2]=a[2],H|=g&w?0:D);var he=a[3];if(he){var Ce=o[3];o[3]=Ce?Lu(Ce,he,a[4]):he,o[4]=Ce?To(o[3],T):a[4]}return he=a[5],he&&(Ce=o[5],o[5]=Ce?$c(Ce,he,a[6]):he,o[6]=Ce?To(o[5],T):a[6]),he=a[7],he&&(o[7]=he),R&Z&&(o[8]=o[8]==null?a[8]:Mn(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=H,o}function XS(o){var a=[];if(o!=null)for(var g in Vr(o))a.push(g);return a}function JS(o){return ko.call(o)}function sv(o,a,g){return a=fn(a===t?o.length-1:a,0),function(){for(var R=arguments,H=-1,K=fn(R.length-a,0),ae=Fe(K);++H<K;)ae[H]=R[a+H];H=-1;for(var he=Fe(a+1);++H<a;)he[H]=R[H];return he[a]=g(ae),cn(o,this,he)}}function av(o,a){return a.length<2?o:ts(o,Oi(a,0,-1))}function QS(o,a){for(var g=o.length,R=Mn(a.length,g),H=si(o);R--;){var K=a[R];o[R]=Ja(K,g)?H[K]:t}return o}function jh(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var lv=uv(Pc),If=gu||function(o,a){return hr.setTimeout(o,a)},Bh=uv(ku);function cv(o,a,g){var R=a+"";return Bh(o,US(R,eC(HS(R),g)))}function uv(o){var a=0,g=0;return function(){var R=Zo(),H=X-(R-g);if(g=R,H>0){if(++a>=J)return arguments[0]}else a=0;return o.apply(t,arguments)}}function bd(o,a){var g=-1,R=o.length,H=R-1;for(a=a===t?R:a;++g<a;){var K=Rs(g,H),ae=o[K];o[K]=o[g],o[g]=ae}return o.length=a,o}var fv=KS(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(Or,function(g,R,H,K){a.push(H?K.replace(at,"$1"):R||g)}),a});function ya(o){if(typeof o=="string"||Bo(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function Wc(o){if(o!=null){try{return Vo.call(o)}catch{}try{return o+""}catch{}}return""}function eC(o,a){return Un(Ve,function(g){var R="_."+g[0];a&g[1]&&!wo(o,R)&&o.push(R)}),o.sort()}function dv(o){if(o instanceof yr)return o.clone();var a=new ii(o.__wrapped__,o.__chain__);return a.__actions__=si(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function tC(o,a,g){(g?eo(o,a,g):a===t)?a=1:a=fn(Ar(a),0);var R=o==null?0:o.length;if(!R||a<1)return[];for(var H=0,K=0,ae=Fe(na(R/a));H<R;)ae[K++]=Oi(o,H,H+=a);return ae}function rC(o){for(var a=-1,g=o==null?0:o.length,R=0,H=[];++a<g;){var K=o[a];K&&(H[R++]=K)}return H}function nC(){var o=arguments.length;if(!o)return[];for(var a=Fe(o-1),g=arguments[0],R=o;R--;)a[R-1]=arguments[R];return Ti(br(g)?si(g):[g],Vn(a,1))}var iC=vr(function(o,a){return Zn(o)?As(o,Vn(a,1,Zn,!0)):[]}),oC=vr(function(o,a){var g=as(a);return Zn(g)&&(g=t),Zn(o)?As(o,Vn(a,1,Zn,!0),cr(g,2)):[]}),sC=vr(function(o,a){var g=as(a);return Zn(g)&&(g=t),Zn(o)?As(o,Vn(a,1,Zn,!0),t,g):[]});function aC(o,a,g){var R=o==null?0:o.length;return R?(a=g||a===t?1:Ar(a),Oi(o,a<0?0:a,R)):[]}function lC(o,a,g){var R=o==null?0:o.length;return R?(a=g||a===t?1:Ar(a),a=R-a,Oi(o,0,a<0?0:a)):[]}function cC(o,a){return o&&o.length?$l(o,cr(a,3),!0,!0):[]}function uC(o,a){return o&&o.length?$l(o,cr(a,3),!0):[]}function fC(o,a,g,R){var H=o==null?0:o.length;return H?(g&&typeof g!="number"&&eo(o,a,g)&&(g=0,R=H),wf(o,a,g,R)):[]}function hv(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=g==null?0:Ar(g);return H<0&&(H=fn(R+H,0)),ms(o,cr(a,3),H)}function pv(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=R-1;return g!==t&&(H=Ar(g),H=g<0?fn(R+H,0):Mn(H,R-1)),ms(o,cr(a,3),H,!0)}function gv(o){var a=o==null?0:o.length;return a?Vn(o,1):[]}function dC(o){var a=o==null?0:o.length;return a?Vn(o,ve):[]}function hC(o,a){var g=o==null?0:o.length;return g?(a=a===t?1:Ar(a),Vn(o,a)):[]}function pC(o){for(var a=-1,g=o==null?0:o.length,R={};++a<g;){var H=o[a];R[H[0]]=H[1]}return R}function mv(o){return o&&o.length?o[0]:t}function gC(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=g==null?0:Ar(g);return H<0&&(H=fn(R+H,0)),Ao(o,a,H)}function mC(o){var a=o==null?0:o.length;return a?Oi(o,0,-1):[]}var vC=vr(function(o){var a=Xr(o,Ul);return a.length&&a[0]===o[0]?da(a):[]}),yC=vr(function(o){var a=as(o),g=Xr(o,Ul);return a===as(g)?a=t:g.pop(),g.length&&g[0]===o[0]?da(g,cr(a,2)):[]}),bC=vr(function(o){var a=as(o),g=Xr(o,Ul);return a=typeof a=="function"?a:t,a&&g.pop(),g.length&&g[0]===o[0]?da(g,t,a):[]});function _C(o,a){return o==null?"":Pa.call(o,a)}function as(o){var a=o==null?0:o.length;return a?o[a-1]:t}function xC(o,a,g){var R=o==null?0:o.length;if(!R)return-1;var H=R;return g!==t&&(H=Ar(g),H=H<0?fn(R+H,0):Mn(H,R-1)),a===a?hf(o,a,H):ms(o,Ys,H,!0)}function SC(o,a){return o&&o.length?ga(o,Ar(a)):t}var CC=vr(vv);function vv(o,a){return o&&o.length&&a&&a.length?Lc(o,a):o}function wC(o,a,g){return o&&o.length&&a&&a.length?Lc(o,a,cr(g,2)):o}function AC(o,a,g){return o&&o.length&&a&&a.length?Lc(o,a,t,g):o}var TC=Xa(function(o,a){var g=o==null?0:o.length,R=wc(o,a);return Dc(o,Xr(a,function(H){return Ja(H,g)?+H:H}).sort(Ka)),R});function EC(o,a){var g=[];if(!(o&&o.length))return g;var R=-1,H=[],K=o.length;for(a=cr(a,3);++R<K;){var ae=o[R];a(ae,R,o)&&(g.push(ae),H.push(R))}return Dc(o,H),g}function qh(o){return o==null?o:Al.call(o)}function kC(o,a,g){var R=o==null?0:o.length;return R?(g&&typeof g!="number"&&eo(o,a,g)?(a=0,g=R):(a=a==null?0:Ar(a),g=g===t?R:Ar(g)),Oi(o,a,g)):[]}function RC(o,a){return ql(o,a)}function IC(o,a,g){return Hl(o,a,cr(g,2))}function LC(o,a){var g=o==null?0:o.length;if(g){var R=ql(o,a);if(R<g&&Ls(o[R],a))return R}return-1}function DC(o,a){return ql(o,a,!0)}function MC(o,a,g){return Hl(o,a,cr(g,2),!0)}function OC(o,a){var g=o==null?0:o.length;if(g){var R=ql(o,a,!0)-1;if(Ls(o[R],a))return R}return-1}function PC(o){return o&&o.length?Ru(o):[]}function NC(o,a){return o&&o.length?Ru(o,cr(a,2)):[]}function FC(o){var a=o==null?0:o.length;return a?Oi(o,1,a):[]}function jC(o,a,g){return o&&o.length?(a=g||a===t?1:Ar(a),Oi(o,0,a<0?0:a)):[]}function BC(o,a,g){var R=o==null?0:o.length;return R?(a=g||a===t?1:Ar(a),a=R-a,Oi(o,a<0?0:a,R)):[]}function qC(o,a){return o&&o.length?$l(o,cr(a,3),!1,!0):[]}function HC(o,a){return o&&o.length?$l(o,cr(a,3)):[]}var zC=vr(function(o){return kn(Vn(o,1,Zn,!0))}),$C=vr(function(o){var a=as(o);return Zn(a)&&(a=t),kn(Vn(o,1,Zn,!0),cr(a,2))}),UC=vr(function(o){var a=as(o);return a=typeof a=="function"?a:t,kn(Vn(o,1,Zn,!0),t,a)});function WC(o){return o&&o.length?kn(o):[]}function VC(o,a){return o&&o.length?kn(o,cr(a,2)):[]}function GC(o,a){return a=typeof a=="function"?a:t,o&&o.length?kn(o,t,a):[]}function Hh(o){if(!(o&&o.length))return[];var a=0;return o=Gi(o,function(g){if(Zn(g))return a=fn(g.length,a),!0}),Te(a,function(g){return Xr(o,E(g))})}function yv(o,a){if(!(o&&o.length))return[];var g=Hh(o);return a==null?g:Xr(g,function(R){return cn(a,t,R)})}var ZC=vr(function(o,a){return Zn(o)?As(o,a):[]}),KC=vr(function(o){return jc(Gi(o,Zn))}),YC=vr(function(o){var a=as(o);return Zn(a)&&(a=t),jc(Gi(o,Zn),cr(a,2))}),XC=vr(function(o){var a=as(o);return a=typeof a=="function"?a:t,jc(Gi(o,Zn),t,a)}),JC=vr(Hh);function QC(o,a){return Bc(o||[],a||[],di)}function ew(o,a){return Bc(o||[],a||[],Is)}var tw=vr(function(o){var a=o.length,g=a>1?o[a-1]:t;return g=typeof g=="function"?(o.pop(),g):t,yv(o,g)});function bv(o){var a=U(o);return a.__chain__=!0,a}function rw(o,a){return a(o),o}function _d(o,a){return a(o)}var nw=Xa(function(o){var a=o.length,g=a?o[0]:0,R=this.__wrapped__,H=function(K){return wc(K,o)};return a>1||this.__actions__.length||!(R instanceof yr)||!Ja(g)?this.thru(H):(R=R.slice(g,+g+(a?1:0)),R.__actions__.push({func:_d,args:[H],thisArg:t}),new ii(R,this.__chain__).thru(function(K){return a&&!K.length&&K.push(t),K}))});function iw(){return bv(this)}function ow(){return new ii(this.value(),this.__chain__)}function sw(){this.__values__===t&&(this.__values__=Mv(this.value()));var o=this.__index__>=this.__values__.length,a=o?t:this.__values__[this.__index__++];return{done:o,value:a}}function aw(){return this}function lw(o){for(var a,g=this;g instanceof Oo;){var R=dv(g);R.__index__=0,R.__values__=t,a?H.__wrapped__=R:a=R;var H=R;g=g.__wrapped__}return H.__wrapped__=o,a}function cw(){var o=this.__wrapped__;if(o instanceof yr){var a=o;return this.__actions__.length&&(a=new yr(this)),a=a.reverse(),a.__actions__.push({func:_d,args:[qh],thisArg:t}),new ii(a,this.__chain__)}return this.thru(qh)}function uw(){return oi(this.__wrapped__,this.__actions__)}var fw=Vl(function(o,a,g){$r.call(o,g)?++o[g]:Di(o,g,1)});function dw(o,a,g){var R=br(o)?ka:Su;return g&&eo(o,a,g)&&(a=t),R(o,cr(a,3))}function hw(o,a){var g=br(o)?Gi:Cu;return g(o,cr(a,3))}var pw=oe(hv),gw=oe(pv);function mw(o,a){return Vn(xd(o,a),1)}function vw(o,a){return Vn(xd(o,a),ve)}function yw(o,a,g){return g=g===t?1:Ar(g),Vn(xd(o,a),g)}function _v(o,a){var g=br(o)?Un:es;return g(o,cr(a,3))}function xv(o,a){var g=br(o)?hl:kc;return g(o,cr(a,3))}var bw=Vl(function(o,a,g){$r.call(o,g)?o[g].push(a):Di(o,g,[a])});function _w(o,a,g,R){o=vo(o)?o:Pu(o),g=g&&!R?Ar(g):0;var H=o.length;return g<0&&(g=fn(H+g,0)),Td(o)?g<=H&&o.indexOf(a,g)>-1:!!H&&Ao(o,a,g)>-1}var xw=vr(function(o,a,g){var R=-1,H=typeof a=="function",K=vo(o)?Fe(o.length):[];return es(o,function(ae){K[++R]=H?cn(a,ae,g):fo(ae,a,g)}),K}),Sw=Vl(function(o,a,g){Di(o,g,a)});function xd(o,a){var g=br(o)?Xr:Xi;return g(o,cr(a,3))}function Cw(o,a,g,R){return o==null?[]:(br(a)||(a=a==null?[]:[a]),g=R?t:g,br(g)||(g=g==null?[]:[g]),jl(o,a,g))}var ww=Vl(function(o,a,g){o[g?0:1].push(a)},function(){return[[],[]]});function Aw(o,a,g){var R=br(o)?Ra:z,H=arguments.length<3;return R(o,cr(a,4),g,H,es)}function Tw(o,a,g){var R=br(o)?pl:z,H=arguments.length<3;return R(o,cr(a,4),g,H,kc)}function Ew(o,a){var g=br(o)?Gi:Cu;return g(o,wd(cr(a,3)))}function kw(o){var a=br(o)?yi:Va;return a(o)}function Rw(o,a,g){(g?eo(o,a,g):a===t)?a=1:a=Ar(a);var R=br(o)?Li:Oc;return R(o,a)}function Iw(o){var a=br(o)?uo:Nc;return a(o)}function Lw(o){if(o==null)return 0;if(vo(o))return Td(o)?Qs(o):o.length;var a=Hi(o);return a==$e||a==wt?o.size:Fo(o).length}function Dw(o,a,g){var R=br(o)?Uo:Af;return g&&eo(o,a,g)&&(a=t),R(o,cr(a,3))}var Mw=vr(function(o,a){if(o==null)return[];var g=a.length;return g>1&&eo(o,a[0],a[1])?a=[]:g>2&&eo(a[0],a[1],a[2])&&(a=[a[0]]),jl(o,Vn(a,1),[])}),Sd=Oa||function(){return hr.Date.now()};function Ow(o,a){if(typeof a!="function")throw new qi(u);return o=Ar(o),function(){if(--o<1)return a.apply(this,arguments)}}function Sv(o,a,g){return a=g?t:a,a=o&&a==null?o.length:a,Ya(o,Z,t,t,t,t,a)}function Cv(o,a){var g;if(typeof a!="function")throw new qi(u);return o=Ar(o),function(){return--o>0&&(g=a.apply(this,arguments)),o<=1&&(a=t),g}}var zh=vr(function(o,a,g){var R=w;if(g.length){var H=To(g,Mu(zh));R|=j}return Ya(o,R,a,g,H)}),wv=vr(function(o,a,g){var R=w|C;if(g.length){var H=To(g,Mu(wv));R|=j}return Ya(a,R,o,g,H)});function Av(o,a,g){a=g?t:a;var R=Ya(o,O,t,t,t,t,t,a);return R.placeholder=Av.placeholder,R}function Tv(o,a,g){a=g?t:a;var R=Ya(o,N,t,t,t,t,t,a);return R.placeholder=Tv.placeholder,R}function Ev(o,a,g){var R,H,K,ae,he,Ce,it=0,ot=!1,yt=!1,Ft=!0;if(typeof o!="function")throw new qi(u);a=ls(a)||0,On(g)&&(ot=!!g.leading,yt="maxWait"in g,K=yt?fn(ls(g.maxWait)||0,a):K,Ft="trailing"in g?!!g.trailing:Ft);function Qt(Kn){var Ds=R,tl=H;return R=H=t,it=Kn,ae=o.apply(tl,Ds),ae}function ur(Kn){return it=Kn,he=If(jr,a),ot?Qt(Kn):ae}function Rr(Kn){var Ds=Kn-Ce,tl=Kn-it,Vv=a-Ds;return yt?Mn(Vv,K-tl):Vv}function fr(Kn){var Ds=Kn-Ce,tl=Kn-it;return Ce===t||Ds>=a||Ds<0||yt&&tl>=K}function jr(){var Kn=Sd();if(fr(Kn))return zr(Kn);he=If(jr,Rr(Kn))}function zr(Kn){return he=t,Ft&&R?Qt(Kn):(R=H=t,ae)}function qo(){he!==t&&is(he),it=0,R=Ce=H=he=t}function to(){return he===t?ae:zr(Sd())}function Ho(){var Kn=Sd(),Ds=fr(Kn);if(R=arguments,H=this,Ce=Kn,Ds){if(he===t)return ur(Ce);if(yt)return is(he),he=If(jr,a),Qt(Ce)}return he===t&&(he=If(jr,a)),ae}return Ho.cancel=qo,Ho.flush=to,Ho}var Pw=vr(function(o,a){return Ec(o,1,a)}),Nw=vr(function(o,a,g){return Ec(o,ls(a)||0,g)});function Fw(o){return Ya(o,Y)}function Cd(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new qi(u);var g=function(){var R=arguments,H=a?a.apply(this,R):R[0],K=g.cache;if(K.has(H))return K.get(H);var ae=o.apply(this,R);return g.cache=K.set(H,ae)||K,ae};return g.cache=new(Cd.Cache||Po),g}Cd.Cache=Po;function wd(o){if(typeof o!="function")throw new qi(u);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function jw(o){return Cv(2,o)}var Bw=Tf(function(o,a){a=a.length==1&&br(a[0])?Xr(a[0],Wt(cr())):Xr(Vn(a,1),Wt(cr()));var g=a.length;return vr(function(R){for(var H=-1,K=Mn(R.length,g);++H<K;)R[H]=a[H].call(this,R[H]);return cn(o,this,R)})}),$h=vr(function(o,a){var g=To(a,Mu($h));return Ya(o,j,t,a,g)}),kv=vr(function(o,a){var g=To(a,Mu(kv));return Ya(o,$,t,a,g)}),qw=Xa(function(o,a){return Ya(o,ie,t,t,t,a)});function Hw(o,a){if(typeof o!="function")throw new qi(u);return a=a===t?a:Ar(a),vr(o,a)}function zw(o,a){if(typeof o!="function")throw new qi(u);return a=a==null?0:fn(Ar(a),0),vr(function(g){var R=g[a],H=po(g,0,a);return R&&Ti(H,R),cn(o,this,H)})}function $w(o,a,g){var R=!0,H=!0;if(typeof o!="function")throw new qi(u);return On(g)&&(R="leading"in g?!!g.leading:R,H="trailing"in g?!!g.trailing:H),Ev(o,a,{leading:R,maxWait:a,trailing:H})}function Uw(o){return Sv(o,1)}function Ww(o,a){return $h(ns(a),o)}function Vw(){if(!arguments.length)return[];var o=arguments[0];return br(o)?o:[o]}function Gw(o){return hi(o,x)}function Zw(o,a){return a=typeof a=="function"?a:t,hi(o,x,a)}function Kw(o){return hi(o,k|x)}function Yw(o,a){return a=typeof a=="function"?a:t,hi(o,k|x,a)}function Xw(o,a){return a==null||Tc(o,a,bi(a))}function Ls(o,a){return o===a||o!==o&&a!==a}var Jw=go(Ts),Qw=go(function(o,a){return o>=a}),Vc=Pl(function(){return arguments}())?Pl:function(o){return jn(o)&&$r.call(o,"callee")&&!Sl.call(o,"callee")},br=Fe.isArray,e3=tn?Wt(tn):Es;function vo(o){return o!=null&&Ad(o.length)&&!Qa(o)}function Zn(o){return jn(o)&&vo(o)}function t3(o){return o===!0||o===!1||jn(o)&&Fn(o)==Ze}var Gl=wl||ep,r3=ui?Wt(ui):Au;function n3(o){return jn(o)&&o.nodeType===1&&!Lf(o)}function i3(o){if(o==null)return!0;if(vo(o)&&(br(o)||typeof o=="string"||typeof o.splice=="function"||Gl(o)||Ou(o)||Vc(o)))return!o.length;var a=Hi(o);if(a==$e||a==wt)return!o.size;if(Rf(o))return!Fo(o).length;for(var g in o)if($r.call(o,g))return!1;return!0}function o3(o,a){return za(o,a)}function s3(o,a,g){g=typeof g=="function"?g:t;var R=g?g(o,a):t;return R===t?za(o,a,t,g):!!R}function Uh(o){if(!jn(o))return!1;var a=Fn(o);return a==Se||a==xe||typeof o.message=="string"&&typeof o.name=="string"&&!Lf(o)}function a3(o){return typeof o=="number"&&oa(o)}function Qa(o){if(!On(o))return!1;var a=Fn(o);return a==be||a==Le||a==ze||a==Oe}function Rv(o){return typeof o=="number"&&o==Ar(o)}function Ad(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=de}function On(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function jn(o){return o!=null&&typeof o=="object"}var Iv=vi?Wt(vi):pa;function l3(o,a){return o===a||Ic(o,a,Oh(a))}function c3(o,a,g){return g=typeof g=="function"?g:t,Ic(o,a,Oh(a),g)}function u3(o){return Lv(o)&&o!=+o}function f3(o){if(ZS(o))throw new sr(l);return Tu(o)}function d3(o){return o===null}function h3(o){return o==null}function Lv(o){return typeof o=="number"||jn(o)&&Fn(o)==bt}function Lf(o){if(!jn(o)||Fn(o)!=ht)return!1;var a=ys(o);if(a===null)return!0;var g=$r.call(a,"constructor")&&a.constructor;return typeof g=="function"&&g instanceof g&&Vo.call(g)==hc}var Wh=$n?Wt($n):ks;function p3(o){return Rv(o)&&o>=-9007199254740991&&o<=de}var Dv=Co?Wt(Co):Nl;function Td(o){return typeof o=="string"||!br(o)&&jn(o)&&Fn(o)==_t}function Bo(o){return typeof o=="symbol"||jn(o)&&Fn(o)==vt}var Ou=Vi?Wt(Vi):No;function g3(o){return o===t}function m3(o){return jn(o)&&Hi(o)==Pe}function v3(o){return jn(o)&&Fn(o)==Ke}var y3=go(Yi),b3=go(function(o,a){return o<=a});function Mv(o){if(!o)return[];if(vo(o))return Td(o)?pn(o):si(o);if(Zi&&o[Zi])return uc(o[Zi]());var a=Hi(o),g=a==$e?fc:a==wt?La:Pu;return g(o)}function el(o){if(!o)return o===0?o:0;if(o=ls(o),o===ve||o===-1/0){var a=o<0?-1:1;return a*De}return o===o?o:0}function Ar(o){var a=el(o),g=a%1;return a===a?g?a-g:a:0}function Ov(o){return o?ws(Ar(o),0,le):0}function ls(o){if(typeof o=="number")return o;if(Bo(o))return ue;if(On(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=On(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=Ct(o);var g=ar.test(o);return g||ir.test(o)?Vt(o.slice(2),g?2:8):zt.test(o)?ue:+o}function Pv(o){return Qi(o,yo(o))}function _3(o){return o?ws(Ar(o),-9007199254740991,de):o===0?o:0}function nn(o){return o==null?"":Pi(o)}var x3=d(function(o,a){if(Rf(a)||vo(a)){Qi(a,bi(a),o);return}for(var g in a)$r.call(a,g)&&di(o,g,a[g])}),Nv=d(function(o,a){Qi(a,yo(a),o)}),Ed=d(function(o,a,g,R){Qi(a,yo(a),o,R)}),S3=d(function(o,a,g,R){Qi(a,bi(a),o,R)}),C3=Xa(wc);function w3(o,a){var g=Mo(o);return a==null?g:xu(g,a)}var A3=vr(function(o,a){o=Vr(o);var g=-1,R=a.length,H=R>2?a[2]:t;for(H&&eo(a[0],a[1],H)&&(R=1);++g<R;)for(var K=a[g],ae=yo(K),he=-1,Ce=ae.length;++he<Ce;){var it=ae[he],ot=o[it];(ot===t||Ls(ot,Wo[it])&&!$r.call(o,it))&&(o[it]=K[it])}return o}),T3=vr(function(o){return o.push(t,Qm),cn(Fv,t,o)});function E3(o,a){return gs(o,cr(a,3),Mi)}function k3(o,a){return gs(o,cr(a,3),Ll)}function R3(o,a){return o==null?o:Rc(o,cr(a,3),yo)}function I3(o,a){return o==null?o:wu(o,cr(a,3),yo)}function L3(o,a){return o&&Mi(o,cr(a,3))}function D3(o,a){return o&&Ll(o,cr(a,3))}function M3(o){return o==null?[]:ua(o,bi(o))}function O3(o){return o==null?[]:ua(o,yo(o))}function Vh(o,a,g){var R=o==null?t:ts(o,a);return R===t?g:R}function P3(o,a){return o!=null&&rv(o,a,Dl)}function Gh(o,a){return o!=null&&rv(o,a,fa)}var N3=dt(function(o,a,g){a!=null&&typeof a.toString!="function"&&(a=ko.call(a)),o[a]=g},Kh(bo)),F3=dt(function(o,a,g){a!=null&&typeof a.toString!="function"&&(a=ko.call(a)),$r.call(o,a)?o[a].push(g):o[a]=[g]},cr),j3=vr(fo);function bi(o){return vo(o)?qa(o):Fo(o)}function yo(o){return vo(o)?qa(o,!0):$a(o)}function B3(o,a){var g={};return a=cr(a,3),Mi(o,function(R,H,K){Di(g,a(R,H,K),R)}),g}function q3(o,a){var g={};return a=cr(a,3),Mi(o,function(R,H,K){Di(g,H,a(R,H,K))}),g}var H3=d(function(o,a,g){rs(o,a,g)}),Fv=d(function(o,a,g,R){rs(o,a,g,R)}),z3=Xa(function(o,a){var g={};if(o==null)return g;var R=!1;a=Xr(a,function(K){return K=jo(K,o),R||(R=K.length>1),K}),Qi(o,Dh(o),g),R&&(g=hi(g,k|b|x,NS));for(var H=a.length;H--;)Fc(g,a[H]);return g});function $3(o,a){return jv(o,wd(cr(a)))}var U3=Xa(function(o,a){return o==null?{}:Wa(o,a)});function jv(o,a){if(o==null)return{};var g=Xr(Dh(o),function(R){return[R]});return a=cr(a),ma(o,g,function(R,H){return a(R,H[0])})}function W3(o,a,g){a=jo(a,o);var R=-1,H=a.length;for(H||(H=1,o=t);++R<H;){var K=o==null?t:o[ya(a[R])];K===t&&(R=H,K=g),o=Qa(K)?K.call(o):K}return o}function V3(o,a,g){return o==null?o:Is(o,a,g)}function G3(o,a,g,R){return R=typeof R=="function"?R:t,o==null?o:Is(o,a,g,R)}var Bv=md(bi),qv=md(yo);function Z3(o,a,g){var R=br(o),H=R||Gl(o)||Ou(o);if(a=cr(a,4),g==null){var K=o&&o.constructor;H?g=R?new K:[]:On(o)?g=Qa(K)?Mo(ys(o)):{}:g={}}return(H?Un:Mi)(o,function(ae,he,Ce){return a(g,ae,he,Ce)}),g}function K3(o,a){return o==null?!0:Fc(o,a)}function Y3(o,a,g){return o==null?o:Ga(o,a,ns(g))}function X3(o,a,g,R){return R=typeof R=="function"?R:t,o==null?o:Ga(o,a,ns(g),R)}function Pu(o){return o==null?[]:pr(o,bi(o))}function J3(o){return o==null?[]:pr(o,yo(o))}function Q3(o,a,g){return g===t&&(g=a,a=t),g!==t&&(g=ls(g),g=g===g?g:0),a!==t&&(a=ls(a),a=a===a?a:0),ws(ls(o),a,g)}function eA(o,a,g){return a=el(a),g===t?(g=a,a=0):g=el(g),o=ls(o),Ml(o,a,g)}function tA(o,a,g){if(g&&typeof g!="boolean"&&eo(o,a,g)&&(a=g=t),g===t&&(typeof a=="boolean"?(g=a,a=t):typeof o=="boolean"&&(g=o,o=t)),o===t&&a===t?(o=0,a=1):(o=el(o),a===t?(a=o,o=0):a=el(a)),o>a){var R=o;o=a,a=R}if(g||o%1||a%1){var H=Ko();return Mn(o+H*(a-o+Jt("1e-"+((H+"").length-1))),a)}return Rs(o,a)}var rA=M(function(o,a,g){return a=a.toLowerCase(),o+(g?Hv(a):a)});function Hv(o){return Zh(nn(o).toLowerCase())}function zv(o){return o=nn(o),o&&o.replace(nr,ki).replace(oo,"")}function nA(o,a,g){o=nn(o),a=Pi(a);var R=o.length;g=g===t?R:ws(Ar(g),0,R);var H=g;return g-=a.length,g>=0&&o.slice(g,H)==a}function iA(o){return o=nn(o),o&&Xe.test(o)?o.replace(Mt,Xs):o}function oA(o){return o=nn(o),o&&St.test(o)?o.replace(st,"\\$&"):o}var sA=M(function(o,a,g){return o+(g?"-":"")+a.toLowerCase()}),aA=M(function(o,a,g){return o+(g?" ":"")+a.toLowerCase()}),lA=y("toLowerCase");function cA(o,a,g){o=nn(o),a=Ar(a);var R=a?Qs(o):0;if(!a||R>=a)return o;var H=(a-R)/2;return Dr(bs(H),g)+o+Dr(na(H),g)}function uA(o,a,g){o=nn(o),a=Ar(a);var R=a?Qs(o):0;return a&&R<a?o+Dr(a-R,g):o}function fA(o,a,g){o=nn(o),a=Ar(a);var R=a?Qs(o):0;return a&&R<a?Dr(a-R,g)+o:o}function dA(o,a,g){return g||a==null?a=0:a&&(a=+a),mc(nn(o).replace(pt,""),a||0)}function hA(o,a,g){return(g?eo(o,a,g):a===t)?a=1:a=Ar(a),Bl(nn(o),a)}function pA(){var o=arguments,a=nn(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var gA=M(function(o,a,g){return o+(g?"_":"")+a.toLowerCase()});function mA(o,a,g){return g&&typeof g!="number"&&eo(o,a,g)&&(a=g=t),g=g===t?le:g>>>0,g?(o=nn(o),o&&(typeof a=="string"||a!=null&&!Wh(a))&&(a=Pi(a),!a&&Js(o))?po(pn(o),0,g):o.split(a,g)):[]}var vA=M(function(o,a,g){return o+(g?" ":"")+Zh(a)});function yA(o,a,g){return o=nn(o),g=g==null?0:ws(Ar(g),0,o.length),a=Pi(a),o.slice(g,g+a.length)==a}function bA(o,a,g){var R=U.templateSettings;g&&eo(o,a,g)&&(a=t),o=nn(o),a=Ed({},a,R,Jm);var H=Ed({},a.imports,R.imports,Jm),K=bi(H),ae=pr(H,K),he,Ce,it=0,ot=a.interpolate||Wr,yt="__p += '",Ft=ea((a.escape||Wr).source+"|"+ot.source+"|"+(ot===Ht?Et:Wr).source+"|"+(a.evaluate||Wr).source+"|$","g"),Qt="//# sourceURL="+($r.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pr+"]")+`
36
36
  `;o.replace(Ft,function(fr,jr,zr,qo,to,Ho){return zr||(zr=qo),yt+=o.slice(it,Ho).replace(Gr,yl),jr&&(he=!0,yt+=`' +
37
37
  __e(`+jr+`) +
38
38
  '`),to&&(Ce=!0,yt+=`';
@@ -57,13 +57,13 @@ function print() { __p += __j.call(arguments, '') }
57
57
  *
58
58
  * This source code is licensed under the MIT license found in the
59
59
  * LICENSE file in the root directory of this source tree.
60
- */var Jv;function S5(){if(Jv)return Gc;Jv=1;var r=S;function e(A){for(var N="https://reactjs.org/docs/error-decoder.html?invariant="+A,V=1;V<arguments.length;V++)N+="&args[]="+encodeURIComponent(arguments[V]);return"Minified React error #"+A+"; visit "+N+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=Object.prototype.hasOwnProperty,n=/^[: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]*$/,i={},l={};function u(A){return t.call(l,A)?!0:t.call(i,A)?!1:n.test(A)?l[A]=!0:(i[A]=!0,!1)}function f(A,N,V,Q,Ee,we,je){this.acceptsBooleans=N===2||N===3||N===4,this.attributeName=Q,this.attributeNamespace=Ee,this.mustUseProperty=V,this.propertyName=A,this.type=N,this.sanitizeURL=we,this.removeEmptyString=je}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(A){p[A]=new f(A,0,!1,A,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(A){var N=A[0];p[N]=new f(N,1,!1,A[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(A){p[A]=new f(A,2,!1,A.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(A){p[A]=new f(A,2,!1,A,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(A){p[A]=new f(A,3,!1,A.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(A){p[A]=new f(A,3,!0,A,null,!1,!1)}),["capture","download"].forEach(function(A){p[A]=new f(A,4,!1,A,null,!1,!1)}),["cols","rows","size","span"].forEach(function(A){p[A]=new f(A,6,!1,A,null,!1,!1)}),["rowSpan","start"].forEach(function(A){p[A]=new f(A,5,!1,A.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function T(A){return A[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(A){var N=A.replace(m,T);p[N]=new f(N,1,!1,A,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(A){var N=A.replace(m,T);p[N]=new f(N,1,!1,A,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(A){var N=A.replace(m,T);p[N]=new f(N,1,!1,A,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(A){p[A]=new f(A,1,!1,A.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(A){p[A]=new f(A,1,!1,A.toLowerCase(),null,!0,!0)});var k={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b=["Webkit","ms","Moz","O"];Object.keys(k).forEach(function(A){b.forEach(function(N){N=N+A.charAt(0).toUpperCase()+A.substring(1),k[N]=k[A]})});var x=/["'&<>]/;function _(A){if(typeof A=="boolean"||typeof A=="number")return""+A;A=""+A;var N=x.exec(A);if(N){var V="",Q,Ee=0;for(Q=N.index;Q<A.length;Q++){switch(A.charCodeAt(Q)){case 34:N="&quot;";break;case 38:N="&amp;";break;case 39:N="&#x27;";break;case 60:N="&lt;";break;case 62:N="&gt;";break;default:continue}Ee!==Q&&(V+=A.substring(Ee,Q)),Ee=Q+1,V+=N}A=Ee!==Q?V+A.substring(Ee,Q):V}return A}var I=/([A-Z])/g,w=/^ms-/,C=Array.isArray;function D(A,N){return{insertionMode:A,selectedValue:N}}function O(A,N,V){switch(N){case"select":return D(1,V.value!=null?V.value:V.defaultValue);case"svg":return D(2,null);case"math":return D(3,null);case"foreignObject":return D(1,null);case"table":return D(4,null);case"thead":case"tbody":case"tfoot":return D(5,null);case"colgroup":return D(7,null);case"tr":return D(6,null)}return 4<=A.insertionMode||A.insertionMode===0?D(1,null):A}var F=new Map;function j(A,N,V){if(typeof V!="object")throw Error(e(62));N=!0;for(var Q in V)if(t.call(V,Q)){var Ee=V[Q];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(Q.indexOf("--")===0){var we=_(Q);Ee=_((""+Ee).trim())}else{we=Q;var je=F.get(we);je!==void 0||(je=_(we.replace(I,"-$1").toLowerCase().replace(w,"-ms-")),F.set(we,je)),we=je,Ee=typeof Ee=="number"?Ee===0||t.call(k,Q)?""+Ee:Ee+"px":_((""+Ee).trim())}N?(N=!1,A.push(' style="',we,":",Ee)):A.push(";",we,":",Ee)}}N||A.push('"')}function $(A,N,V,Q){switch(V){case"style":j(A,N,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){if(N=p.hasOwnProperty(V)?p[V]:null,N!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}switch(V=N.attributeName,N.type){case 3:Q&&A.push(" ",V,'=""');break;case 4:Q===!0?A.push(" ",V,'=""'):Q!==!1&&A.push(" ",V,'="',_(Q),'"');break;case 5:isNaN(Q)||A.push(" ",V,'="',_(Q),'"');break;case 6:!isNaN(Q)&&1<=Q&&A.push(" ",V,'="',_(Q),'"');break;default:N.sanitizeURL&&(Q=""+Q),A.push(" ",V,'="',_(Q),'"')}}else if(u(V)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(N=V.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")return}A.push(" ",V,'="',_(Q),'"')}}}function Z(A,N,V){if(N!=null){if(V!=null)throw Error(e(60));if(typeof N!="object"||!("__html"in N))throw Error(e(61));N=N.__html,N!=null&&A.push(""+N)}}function ie(A){var N="";return r.Children.forEach(A,function(V){V!=null&&(N+=V)}),N}function Y(A,N,V,Q){A.push(J(V));var Ee=V=null,we;for(we in N)if(t.call(N,we)){var je=N[we];if(je!=null)switch(we){case"children":V=je;break;case"dangerouslySetInnerHTML":Ee=je;break;default:$(A,Q,we,je)}}return A.push(">"),Z(A,Ee,V),typeof V=="string"?(A.push(_(V)),null):V}var se=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,q=new Map;function J(A){var N=q.get(A);if(N===void 0){if(!se.test(A))throw Error(e(65,A));N="<"+A,q.set(A,N)}return N}function X(A,N,V,Q,Ee){switch(N){case"select":A.push(J("select"));var we=null,je=null;for($t in V)if(t.call(V,$t)){var ft=V[$t];if(ft!=null)switch($t){case"children":we=ft;break;case"dangerouslySetInnerHTML":je=ft;break;case"defaultValue":case"value":break;default:$(A,Q,$t,ft)}}return A.push(">"),Z(A,je,we),we;case"option":je=Ee.selectedValue,A.push(J("option"));var Pt=ft=null,Ut=null,$t=null;for(we in V)if(t.call(V,we)){var _r=V[we];if(_r!=null)switch(we){case"children":ft=_r;break;case"selected":Ut=_r;break;case"dangerouslySetInnerHTML":$t=_r;break;case"value":Pt=_r;default:$(A,Q,we,_r)}}if(je!=null)if(V=Pt!==null?""+Pt:ie(ft),C(je)){for(Q=0;Q<je.length;Q++)if(""+je[Q]===V){A.push(' selected=""');break}}else""+je===V&&A.push(' selected=""');else Ut&&A.push(' selected=""');return A.push(">"),Z(A,$t,ft),ft;case"textarea":A.push(J("textarea")),$t=je=we=null;for(ft in V)if(t.call(V,ft)&&(Pt=V[ft],Pt!=null))switch(ft){case"children":$t=Pt;break;case"value":we=Pt;break;case"defaultValue":je=Pt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:$(A,Q,ft,Pt)}if(we===null&&je!==null&&(we=je),A.push(">"),$t!=null){if(we!=null)throw Error(e(92));if(C($t)&&1<$t.length)throw Error(e(93));we=""+$t}return typeof we=="string"&&we[0]===`
60
+ */var Jv;function S5(){if(Jv)return Gc;Jv=1;var r=S;function e(A){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+A,V=1;V<arguments.length;V++)F+="&args[]="+encodeURIComponent(arguments[V]);return"Minified React error #"+A+"; visit "+F+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=Object.prototype.hasOwnProperty,n=/^[: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]*$/,i={},l={};function u(A){return t.call(l,A)?!0:t.call(i,A)?!1:n.test(A)?l[A]=!0:(i[A]=!0,!1)}function f(A,F,V,Q,Ee,we,je){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=Q,this.attributeNamespace=Ee,this.mustUseProperty=V,this.propertyName=A,this.type=F,this.sanitizeURL=we,this.removeEmptyString=je}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(A){p[A]=new f(A,0,!1,A,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(A){var F=A[0];p[F]=new f(F,1,!1,A[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(A){p[A]=new f(A,2,!1,A.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(A){p[A]=new f(A,2,!1,A,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(A){p[A]=new f(A,3,!1,A.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(A){p[A]=new f(A,3,!0,A,null,!1,!1)}),["capture","download"].forEach(function(A){p[A]=new f(A,4,!1,A,null,!1,!1)}),["cols","rows","size","span"].forEach(function(A){p[A]=new f(A,6,!1,A,null,!1,!1)}),["rowSpan","start"].forEach(function(A){p[A]=new f(A,5,!1,A.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function T(A){return A[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(A){var F=A.replace(m,T);p[F]=new f(F,1,!1,A,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(A){var F=A.replace(m,T);p[F]=new f(F,1,!1,A,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(A){var F=A.replace(m,T);p[F]=new f(F,1,!1,A,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(A){p[A]=new f(A,1,!1,A.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(A){p[A]=new f(A,1,!1,A.toLowerCase(),null,!0,!0)});var k={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b=["Webkit","ms","Moz","O"];Object.keys(k).forEach(function(A){b.forEach(function(F){F=F+A.charAt(0).toUpperCase()+A.substring(1),k[F]=k[A]})});var x=/["'&<>]/;function _(A){if(typeof A=="boolean"||typeof A=="number")return""+A;A=""+A;var F=x.exec(A);if(F){var V="",Q,Ee=0;for(Q=F.index;Q<A.length;Q++){switch(A.charCodeAt(Q)){case 34:F="&quot;";break;case 38:F="&amp;";break;case 39:F="&#x27;";break;case 60:F="&lt;";break;case 62:F="&gt;";break;default:continue}Ee!==Q&&(V+=A.substring(Ee,Q)),Ee=Q+1,V+=F}A=Ee!==Q?V+A.substring(Ee,Q):V}return A}var I=/([A-Z])/g,w=/^ms-/,C=Array.isArray;function D(A,F){return{insertionMode:A,selectedValue:F}}function O(A,F,V){switch(F){case"select":return D(1,V.value!=null?V.value:V.defaultValue);case"svg":return D(2,null);case"math":return D(3,null);case"foreignObject":return D(1,null);case"table":return D(4,null);case"thead":case"tbody":case"tfoot":return D(5,null);case"colgroup":return D(7,null);case"tr":return D(6,null)}return 4<=A.insertionMode||A.insertionMode===0?D(1,null):A}var N=new Map;function j(A,F,V){if(typeof V!="object")throw Error(e(62));F=!0;for(var Q in V)if(t.call(V,Q)){var Ee=V[Q];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(Q.indexOf("--")===0){var we=_(Q);Ee=_((""+Ee).trim())}else{we=Q;var je=N.get(we);je!==void 0||(je=_(we.replace(I,"-$1").toLowerCase().replace(w,"-ms-")),N.set(we,je)),we=je,Ee=typeof Ee=="number"?Ee===0||t.call(k,Q)?""+Ee:Ee+"px":_((""+Ee).trim())}F?(F=!1,A.push(' style="',we,":",Ee)):A.push(";",we,":",Ee)}}F||A.push('"')}function $(A,F,V,Q){switch(V){case"style":j(A,F,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){if(F=p.hasOwnProperty(V)?p[V]:null,F!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(V=F.attributeName,F.type){case 3:Q&&A.push(" ",V,'=""');break;case 4:Q===!0?A.push(" ",V,'=""'):Q!==!1&&A.push(" ",V,'="',_(Q),'"');break;case 5:isNaN(Q)||A.push(" ",V,'="',_(Q),'"');break;case 6:!isNaN(Q)&&1<=Q&&A.push(" ",V,'="',_(Q),'"');break;default:F.sanitizeURL&&(Q=""+Q),A.push(" ",V,'="',_(Q),'"')}}else if(u(V)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(F=V.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}A.push(" ",V,'="',_(Q),'"')}}}function Z(A,F,V){if(F!=null){if(V!=null)throw Error(e(60));if(typeof F!="object"||!("__html"in F))throw Error(e(61));F=F.__html,F!=null&&A.push(""+F)}}function ie(A){var F="";return r.Children.forEach(A,function(V){V!=null&&(F+=V)}),F}function Y(A,F,V,Q){A.push(J(V));var Ee=V=null,we;for(we in F)if(t.call(F,we)){var je=F[we];if(je!=null)switch(we){case"children":V=je;break;case"dangerouslySetInnerHTML":Ee=je;break;default:$(A,Q,we,je)}}return A.push(">"),Z(A,Ee,V),typeof V=="string"?(A.push(_(V)),null):V}var se=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,q=new Map;function J(A){var F=q.get(A);if(F===void 0){if(!se.test(A))throw Error(e(65,A));F="<"+A,q.set(A,F)}return F}function X(A,F,V,Q,Ee){switch(F){case"select":A.push(J("select"));var we=null,je=null;for($t in V)if(t.call(V,$t)){var ft=V[$t];if(ft!=null)switch($t){case"children":we=ft;break;case"dangerouslySetInnerHTML":je=ft;break;case"defaultValue":case"value":break;default:$(A,Q,$t,ft)}}return A.push(">"),Z(A,je,we),we;case"option":je=Ee.selectedValue,A.push(J("option"));var Pt=ft=null,Ut=null,$t=null;for(we in V)if(t.call(V,we)){var _r=V[we];if(_r!=null)switch(we){case"children":ft=_r;break;case"selected":Ut=_r;break;case"dangerouslySetInnerHTML":$t=_r;break;case"value":Pt=_r;default:$(A,Q,we,_r)}}if(je!=null)if(V=Pt!==null?""+Pt:ie(ft),C(je)){for(Q=0;Q<je.length;Q++)if(""+je[Q]===V){A.push(' selected=""');break}}else""+je===V&&A.push(' selected=""');else Ut&&A.push(' selected=""');return A.push(">"),Z(A,$t,ft),ft;case"textarea":A.push(J("textarea")),$t=je=we=null;for(ft in V)if(t.call(V,ft)&&(Pt=V[ft],Pt!=null))switch(ft){case"children":$t=Pt;break;case"value":we=Pt;break;case"defaultValue":je=Pt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:$(A,Q,ft,Pt)}if(we===null&&je!==null&&(we=je),A.push(">"),$t!=null){if(we!=null)throw Error(e(92));if(C($t)&&1<$t.length)throw Error(e(93));we=""+$t}return typeof we=="string"&&we[0]===`
61
61
  `&&A.push(`
62
- `),we!==null&&A.push(_(""+we)),null;case"input":A.push(J("input")),Pt=$t=ft=we=null;for(je in V)if(t.call(V,je)&&(Ut=V[je],Ut!=null))switch(je){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Pt=Ut;break;case"defaultValue":ft=Ut;break;case"checked":$t=Ut;break;case"value":we=Ut;break;default:$(A,Q,je,Ut)}return $t!==null?$(A,Q,"checked",$t):Pt!==null&&$(A,Q,"checked",Pt),we!==null?$(A,Q,"value",we):ft!==null&&$(A,Q,"value",ft),A.push("/>"),null;case"menuitem":A.push(J("menuitem"));for(var Yr in V)if(t.call(V,Yr)&&(we=V[Yr],we!=null))switch(Yr){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:$(A,Q,Yr,we)}return A.push(">"),null;case"title":A.push(J("title")),we=null;for(_r in V)if(t.call(V,_r)&&(je=V[_r],je!=null))switch(_r){case"children":we=je;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:$(A,Q,_r,je)}return A.push(">"),we;case"listing":case"pre":A.push(J(N)),je=we=null;for(Pt in V)if(t.call(V,Pt)&&(ft=V[Pt],ft!=null))switch(Pt){case"children":we=ft;break;case"dangerouslySetInnerHTML":je=ft;break;default:$(A,Q,Pt,ft)}if(A.push(">"),je!=null){if(we!=null)throw Error(e(60));if(typeof je!="object"||!("__html"in je))throw Error(e(61));V=je.__html,V!=null&&(typeof V=="string"&&0<V.length&&V[0]===`
62
+ `),we!==null&&A.push(_(""+we)),null;case"input":A.push(J("input")),Pt=$t=ft=we=null;for(je in V)if(t.call(V,je)&&(Ut=V[je],Ut!=null))switch(je){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Pt=Ut;break;case"defaultValue":ft=Ut;break;case"checked":$t=Ut;break;case"value":we=Ut;break;default:$(A,Q,je,Ut)}return $t!==null?$(A,Q,"checked",$t):Pt!==null&&$(A,Q,"checked",Pt),we!==null?$(A,Q,"value",we):ft!==null&&$(A,Q,"value",ft),A.push("/>"),null;case"menuitem":A.push(J("menuitem"));for(var Yr in V)if(t.call(V,Yr)&&(we=V[Yr],we!=null))switch(Yr){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:$(A,Q,Yr,we)}return A.push(">"),null;case"title":A.push(J("title")),we=null;for(_r in V)if(t.call(V,_r)&&(je=V[_r],je!=null))switch(_r){case"children":we=je;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:$(A,Q,_r,je)}return A.push(">"),we;case"listing":case"pre":A.push(J(F)),je=we=null;for(Pt in V)if(t.call(V,Pt)&&(ft=V[Pt],ft!=null))switch(Pt){case"children":we=ft;break;case"dangerouslySetInnerHTML":je=ft;break;default:$(A,Q,Pt,ft)}if(A.push(">"),je!=null){if(we!=null)throw Error(e(60));if(typeof je!="object"||!("__html"in je))throw Error(e(61));V=je.__html,V!=null&&(typeof V=="string"&&0<V.length&&V[0]===`
63
63
  `?A.push(`
64
64
  `,V):A.push(""+V))}return typeof we=="string"&&we[0]===`
65
65
  `&&A.push(`
66
- `),we;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":A.push(J(N));for(var _n in V)if(t.call(V,_n)&&(we=V[_n],we!=null))switch(_n){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:$(A,Q,_n,we)}return A.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 Y(A,V,N,Q);case"html":return Ee.insertionMode===0&&A.push("<!DOCTYPE html>"),Y(A,V,N,Q);default:if(N.indexOf("-")===-1&&typeof V.is!="string")return Y(A,V,N,Q);A.push(J(N)),je=we=null;for(Ut in V)if(t.call(V,Ut)&&(ft=V[Ut],ft!=null))switch(Ut){case"children":we=ft;break;case"dangerouslySetInnerHTML":je=ft;break;case"style":j(A,Q,ft);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(Ut)&&typeof ft!="function"&&typeof ft!="symbol"&&A.push(" ",Ut,'="',_(ft),'"')}return A.push(">"),Z(A,je,we),we}}function ne(A,N,V){if(A.push('<!--$?--><template id="'),V===null)throw Error(e(395));return A.push(V),A.push('"></template>')}function ge(A,N,V,Q){switch(V.insertionMode){case 0:case 1:return A.push('<div hidden id="'),A.push(N.segmentPrefix),N=Q.toString(16),A.push(N),A.push('">');case 2:return A.push('<svg aria-hidden="true" style="display:none" id="'),A.push(N.segmentPrefix),N=Q.toString(16),A.push(N),A.push('">');case 3:return A.push('<math aria-hidden="true" style="display:none" id="'),A.push(N.segmentPrefix),N=Q.toString(16),A.push(N),A.push('">');case 4:return A.push('<table hidden id="'),A.push(N.segmentPrefix),N=Q.toString(16),A.push(N),A.push('">');case 5:return A.push('<table hidden><tbody id="'),A.push(N.segmentPrefix),N=Q.toString(16),A.push(N),A.push('">');case 6:return A.push('<table hidden><tr id="'),A.push(N.segmentPrefix),N=Q.toString(16),A.push(N),A.push('">');case 7:return A.push('<table hidden><colgroup id="'),A.push(N.segmentPrefix),N=Q.toString(16),A.push(N),A.push('">');default:throw Error(e(397))}}function me(A,N){switch(N.insertionMode){case 0:case 1:return A.push("</div>");case 2:return A.push("</svg>");case 3:return A.push("</math>");case 4:return A.push("</table>");case 5:return A.push("</tbody></table>");case 6:return A.push("</tr></table>");case 7:return A.push("</colgroup></table>");default:throw Error(e(397))}}var ve=/[<\u2028\u2029]/g;function de(A){return JSON.stringify(A).replace(ve,function(N){switch(N){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 De(A,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:A}}function ue(A,N,V,Q){return V.generateStaticMarkup?(A.push(_(N)),!1):(N===""?A=Q:(Q&&A.push("<!-- -->"),A.push(_(N)),A=!0),A)}var le=Object.assign,fe=Symbol.for("react.element"),Me=Symbol.for("react.portal"),Ve=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),ke=Symbol.for("react.profiler"),ze=Symbol.for("react.provider"),Ze=Symbol.for("react.context"),et=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),$e=Symbol.for("react.scope"),bt=Symbol.for("react.debug_trace_mode"),Ge=Symbol.for("react.legacy_hidden"),ht=Symbol.for("react.default_value"),mt=Symbol.iterator;function Oe(A){if(A==null)return null;if(typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case Ve:return"Fragment";case Me:return"Portal";case ke:return"Profiler";case pe:return"StrictMode";case xe:return"Suspense";case Se:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case Ze:return(A.displayName||"Context")+".Consumer";case ze:return(A._context.displayName||"Context")+".Provider";case et:var N=A.render;return A=A.displayName,A||(A=N.displayName||N.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case be:return N=A.displayName||null,N!==null?N:Oe(A.type)||"Memo";case Le:N=A._payload,A=A._init;try{return Oe(A(N))}catch{}}return null}var He={};function wt(A,N){if(A=A.contextTypes,!A)return He;var V={},Q;for(Q in A)V[Q]=N[Q];return V}var _t=null;function vt(A,N){if(A!==N){A.context._currentValue2=A.parentValue,A=A.parent;var V=N.parent;if(A===null){if(V!==null)throw Error(e(401))}else{if(V===null)throw Error(e(401));vt(A,V)}N.context._currentValue2=N.value}}function Tt(A){A.context._currentValue2=A.parentValue,A=A.parent,A!==null&&Tt(A)}function Pe(A){var N=A.parent;N!==null&&Pe(N),A.context._currentValue2=A.value}function Ke(A,N){if(A.context._currentValue2=A.parentValue,A=A.parent,A===null)throw Error(e(402));A.depth===N.depth?vt(A,N):Ke(A,N)}function xt(A,N){var V=N.parent;if(V===null)throw Error(e(402));A.depth===V.depth?vt(A,V):xt(A,V),N.context._currentValue2=N.value}function jt(A){var N=_t;N!==A&&(N===null?Pe(A):A===null?Tt(N):N.depth===A.depth?vt(N,A):N.depth>A.depth?Ke(N,A):xt(N,A),_t=A)}var At={isMounted:function(){return!1},enqueueSetState:function(A,N){A=A._reactInternals,A.queue!==null&&A.queue.push(N)},enqueueReplaceState:function(A,N){A=A._reactInternals,A.replace=!0,A.queue=[N]},enqueueForceUpdate:function(){}};function Be(A,N,V,Q){var Ee=A.state!==void 0?A.state:null;A.updater=At,A.props=V,A.state=Ee;var we={queue:[],replace:!1};A._reactInternals=we;var je=N.contextType;if(A.context=typeof je=="object"&&je!==null?je._currentValue2:Q,je=N.getDerivedStateFromProps,typeof je=="function"&&(je=je(V,Ee),Ee=je==null?Ee:le({},Ee,je),A.state=Ee),typeof N.getDerivedStateFromProps!="function"&&typeof A.getSnapshotBeforeUpdate!="function"&&(typeof A.UNSAFE_componentWillMount=="function"||typeof A.componentWillMount=="function"))if(N=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),N!==A.state&&At.enqueueReplaceState(A,A.state,null),we.queue!==null&&0<we.queue.length)if(N=we.queue,je=we.replace,we.queue=null,we.replace=!1,je&&N.length===1)A.state=N[0];else{for(we=je?N[0]:A.state,Ee=!0,je=je?1:0;je<N.length;je++){var ft=N[je];ft=typeof ft=="function"?ft.call(A,we,V,Q):ft,ft!=null&&(Ee?(Ee=!1,we=le({},we,ft)):le(we,ft))}A.state=we}else we.queue=null}var Lt={id:1,overflow:""};function Dt(A,N,V){var Q=A.id;A=A.overflow;var Ee=32-dr(Q)-1;Q&=~(1<<Ee),V+=1;var we=32-dr(N)+Ee;if(30<we){var je=Ee-Ee%5;return we=(Q&(1<<je)-1).toString(32),Q>>=je,Ee-=je,{id:1<<32-dr(N)+Ee|V<<Ee|Q,overflow:we+A}}return{id:1<<we|V<<Ee|Q,overflow:A}}var dr=Math.clz32?Math.clz32:_e,Er=Math.log,Mr=Math.LN2;function _e(A){return A>>>=0,A===0?32:31-(Er(A)/Mr|0)|0}function te(A,N){return A===N&&(A!==0||1/A===1/N)||A!==A&&N!==N}var tt=typeof Object.is=="function"?Object.is:te,ut=null,qt=null,kt=null,Mt=null,tr=!1,Xe=!1,rt=0,Rt=null,Ht=0;function Ot(){if(ut===null)throw Error(e(321));return ut}function Xt(){if(0<Ht)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Or(){return Mt===null?kt===null?(tr=!1,kt=Mt=Xt()):(tr=!0,Mt=kt):Mt.next===null?(tr=!1,Mt=Mt.next=Xt()):(tr=!0,Mt=Mt.next),Mt}function st(){qt=ut=null,Xe=!1,kt=null,Ht=0,Mt=Rt=null}function St(A,N){return typeof N=="function"?N(A):N}function pt(A,N,V){if(ut=Ot(),Mt=Or(),tr){var Q=Mt.queue;if(N=Q.dispatch,Rt!==null&&(V=Rt.get(Q),V!==void 0)){Rt.delete(Q),Q=Mt.memoizedState;do Q=A(Q,V.action),V=V.next;while(V!==null);return Mt.memoizedState=Q,[Q,N]}return[Mt.memoizedState,N]}return A=A===St?typeof N=="function"?N():N:V!==void 0?V(N):N,Mt.memoizedState=A,A=Mt.queue={last:null,dispatch:null},A=A.dispatch=gr.bind(null,ut,A),[Mt.memoizedState,A]}function Bt(A,N){if(ut=Ot(),Mt=Or(),N=N===void 0?null:N,Mt!==null){var V=Mt.memoizedState;if(V!==null&&N!==null){var Q=V[1];e:if(Q===null)Q=!1;else{for(var Ee=0;Ee<Q.length&&Ee<N.length;Ee++)if(!tt(N[Ee],Q[Ee])){Q=!1;break e}Q=!0}if(Q)return V[0]}}return A=A(),Mt.memoizedState=[A,N],A}function gr(A,N,V){if(25<=Ht)throw Error(e(301));if(A===ut)if(Xe=!0,A={action:V,next:null},Rt===null&&(Rt=new Map),V=Rt.get(N),V===void 0)Rt.set(N,A);else{for(N=V;N.next!==null;)N=N.next;N.next=A}}function re(){throw Error(e(394))}function Ue(){}var Re={readContext:function(A){return A._currentValue2},useContext:function(A){return Ot(),A._currentValue2},useMemo:Bt,useReducer:pt,useRef:function(A){ut=Ot(),Mt=Or();var N=Mt.memoizedState;return N===null?(A={current:A},Mt.memoizedState=A):N},useState:function(A){return pt(St,A)},useInsertionEffect:Ue,useLayoutEffect:function(){},useCallback:function(A,N){return Bt(function(){return A},N)},useImperativeHandle:Ue,useEffect:Ue,useDebugValue:Ue,useDeferredValue:function(A){return Ot(),A},useTransition:function(){return Ot(),[!1,re]},useId:function(){var A=qt.treeContext,N=A.overflow;A=A.id,A=(A&~(1<<32-dr(A)-1)).toString(32)+N;var V=nt;if(V===null)throw Error(e(404));return N=rt++,A=":"+V.idPrefix+"R"+A,0<N&&(A+="H"+N.toString(32)),A+":"},useMutableSource:function(A,N){return Ot(),N(A._source)},useSyncExternalStore:function(A,N,V){if(V===void 0)throw Error(e(407));return V()}},nt=null,at=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Et(A){return console.error(A),null}function lt(){}function zt(A,N,V,Q,Ee,we,je,ft,Pt){var Ut=[],$t=new Set;return N={destination:null,responseState:N,progressiveChunkSize:Q===void 0?12800:Q,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:$t,pingedTasks:Ut,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ee===void 0?Et:Ee,onAllReady:lt,onShellReady:je===void 0?lt:je,onShellError:lt,onFatalError:lt},V=Zt(N,0,null,V,!1,!1),V.parentFlushed=!0,A=ar(N,A,null,V,$t,He,null,Lt),Ut.push(A),N}function ar(A,N,V,Q,Ee,we,je,ft){A.allPendingTasks++,V===null?A.pendingRootTasks++:V.pendingTasks++;var Pt={node:N,ping:function(){var Ut=A.pingedTasks;Ut.push(Pt),Ut.length===1&&Tn(A)},blockedBoundary:V,blockedSegment:Q,abortSet:Ee,legacyContext:we,context:je,treeContext:ft};return Ee.add(Pt),Pt}function Zt(A,N,V,Q,Ee,we){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:Q,boundary:V,lastPushedText:Ee,textEmbedded:we}}function ir(A,N){if(A=A.onError(N),A!=null&&typeof A!="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 A+'" instead');return A}function Sr(A,N){var V=A.onShellError;V(N),V=A.onFatalError,V(N),A.destination!==null?(A.status=2,A.destination.destroy(N)):(A.status=1,A.fatalError=N)}function nr(A,N,V,Q,Ee){for(ut={},qt=N,rt=0,A=V(Q,Ee);Xe;)Xe=!1,rt=0,Ht+=1,Mt=null,A=V(Q,Ee);return st(),A}function Wr(A,N,V,Q){var Ee=V.render(),we=Q.childContextTypes;if(we!=null){var je=N.legacyContext;if(typeof V.getChildContext!="function")Q=je;else{V=V.getChildContext();for(var ft in V)if(!(ft in we))throw Error(e(108,Oe(Q)||"Unknown",ft));Q=le({},je,V)}N.legacyContext=Q,Jr(A,N,Ee),N.legacyContext=je}else Jr(A,N,Ee)}function Gr(A,N){if(A&&A.defaultProps){N=le({},N),A=A.defaultProps;for(var V in A)N[V]===void 0&&(N[V]=A[V]);return N}return N}function mn(A,N,V,Q,Ee){if(typeof V=="function")if(V.prototype&&V.prototype.isReactComponent){Ee=wt(V,N.legacyContext);var we=V.contextType;we=new V(Q,typeof we=="object"&&we!==null?we._currentValue2:Ee),Be(we,V,Q,Ee),Wr(A,N,we,V)}else{we=wt(V,N.legacyContext),Ee=nr(A,N,V,Q,we);var je=rt!==0;if(typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0)Be(Ee,V,Q,we),Wr(A,N,Ee,V);else if(je){Q=N.treeContext,N.treeContext=Dt(Q,1,0);try{Jr(A,N,Ee)}finally{N.treeContext=Q}}else Jr(A,N,Ee)}else if(typeof V=="string"){switch(Ee=N.blockedSegment,we=X(Ee.chunks,V,Q,A.responseState,Ee.formatContext),Ee.lastPushedText=!1,je=Ee.formatContext,Ee.formatContext=O(je,V,Q),Rn(A,N,we),Ee.formatContext=je,V){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:Ee.chunks.push("</",V,">")}Ee.lastPushedText=!1}else{switch(V){case Ge:case bt:case pe:case ke:case Ve:Jr(A,N,Q.children);return;case Se:Jr(A,N,Q.children);return;case $e:throw Error(e(343));case xe:e:{V=N.blockedBoundary,Ee=N.blockedSegment,we=Q.fallback,Q=Q.children,je=new Set;var ft={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:je,errorDigest:null},Pt=Zt(A,Ee.chunks.length,ft,Ee.formatContext,!1,!1);Ee.children.push(Pt),Ee.lastPushedText=!1;var Ut=Zt(A,0,null,Ee.formatContext,!1,!1);Ut.parentFlushed=!0,N.blockedBoundary=ft,N.blockedSegment=Ut;try{if(Rn(A,N,Q),A.responseState.generateStaticMarkup||Ut.lastPushedText&&Ut.textEmbedded&&Ut.chunks.push("<!-- -->"),Ut.status=1,an(ft,Ut),ft.pendingTasks===0)break e}catch($t){Ut.status=4,ft.forceClientRender=!0,ft.errorDigest=ir(A,$t)}finally{N.blockedBoundary=V,N.blockedSegment=Ee}N=ar(A,we,V,Pt,je,N.legacyContext,N.context,N.treeContext),A.pingedTasks.push(N)}return}if(typeof V=="object"&&V!==null)switch(V.$$typeof){case et:if(Q=nr(A,N,V.render,Q,Ee),rt!==0){V=N.treeContext,N.treeContext=Dt(V,1,0);try{Jr(A,N,Q)}finally{N.treeContext=V}}else Jr(A,N,Q);return;case be:V=V.type,Q=Gr(V,Q),mn(A,N,V,Q,Ee);return;case ze:if(Ee=Q.children,V=V._context,Q=Q.value,we=V._currentValue2,V._currentValue2=Q,je=_t,_t=Q={parent:je,depth:je===null?0:je.depth+1,context:V,parentValue:we,value:Q},N.context=Q,Jr(A,N,Ee),A=_t,A===null)throw Error(e(403));Q=A.parentValue,A.context._currentValue2=Q===ht?A.context._defaultValue:Q,A=_t=A.parent,N.context=A;return;case Ze:Q=Q.children,Q=Q(V._currentValue2),Jr(A,N,Q);return;case Le:Ee=V._init,V=Ee(V._payload),Q=Gr(V,Q),mn(A,N,V,Q,void 0);return}throw Error(e(130,V==null?V:typeof V,""))}}function Jr(A,N,V){if(N.node=V,typeof V=="object"&&V!==null){switch(V.$$typeof){case fe:mn(A,N,V.type,V.props,V.ref);return;case Me:throw Error(e(257));case Le:var Q=V._init;V=Q(V._payload),Jr(A,N,V);return}if(C(V)){Yn(A,N,V);return}if(V===null||typeof V!="object"?Q=null:(Q=mt&&V[mt]||V["@@iterator"],Q=typeof Q=="function"?Q:null),Q&&(Q=Q.call(V))){if(V=Q.next(),!V.done){var Ee=[];do Ee.push(V.value),V=Q.next();while(!V.done);Yn(A,N,Ee)}return}throw A=Object.prototype.toString.call(V),Error(e(31,A==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":A))}typeof V=="string"?(Q=N.blockedSegment,Q.lastPushedText=ue(N.blockedSegment.chunks,V,A.responseState,Q.lastPushedText)):typeof V=="number"&&(Q=N.blockedSegment,Q.lastPushedText=ue(N.blockedSegment.chunks,""+V,A.responseState,Q.lastPushedText))}function Yn(A,N,V){for(var Q=V.length,Ee=0;Ee<Q;Ee++){var we=N.treeContext;N.treeContext=Dt(we,Q,Ee);try{Rn(A,N,V[Ee])}finally{N.treeContext=we}}}function Rn(A,N,V){var Q=N.blockedSegment.formatContext,Ee=N.legacyContext,we=N.context;try{return Jr(A,N,V)}catch(Pt){if(st(),typeof Pt=="object"&&Pt!==null&&typeof Pt.then=="function"){V=Pt;var je=N.blockedSegment,ft=Zt(A,je.chunks.length,null,je.formatContext,je.lastPushedText,!0);je.children.push(ft),je.lastPushedText=!1,A=ar(A,N.node,N.blockedBoundary,ft,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,V.then(A,A),N.blockedSegment.formatContext=Q,N.legacyContext=Ee,N.context=we,jt(we)}else throw N.blockedSegment.formatContext=Q,N.legacyContext=Ee,N.context=we,jt(we),Pt}}function Xn(A){var N=A.blockedBoundary;A=A.blockedSegment,A.status=3,Nn(this,N,A)}function Jn(A,N,V){var Q=A.blockedBoundary;A.blockedSegment.status=3,Q===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(Q.pendingTasks--,Q.forceClientRender||(Q.forceClientRender=!0,A=V===void 0?Error(e(432)):V,Q.errorDigest=N.onError(A),Q.parentFlushed&&N.clientRenderedBoundaries.push(Q)),Q.fallbackAbortableTasks.forEach(function(Ee){return Jn(Ee,N,V)}),Q.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(Q=N.onAllReady,Q()))}function an(A,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var V=N.children[0];V.id=N.id,V.parentFlushed=!0,V.status===1&&an(A,V)}else A.completedSegments.push(N)}function Nn(A,N,V){if(N===null){if(V.parentFlushed){if(A.completedRootSegment!==null)throw Error(e(389));A.completedRootSegment=V}A.pendingRootTasks--,A.pendingRootTasks===0&&(A.onShellError=lt,N=A.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(V.parentFlushed&&V.status===1&&an(N,V),N.parentFlushed&&A.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(Xn,A),N.fallbackAbortableTasks.clear()):V.parentFlushed&&V.status===1&&(an(N,V),N.completedSegments.length===1&&N.parentFlushed&&A.partialBoundaries.push(N)));A.allPendingTasks--,A.allPendingTasks===0&&(A=A.onAllReady,A())}function Tn(A){if(A.status!==2){var N=_t,V=at.current;at.current=Re;var Q=nt;nt=A.responseState;try{var Ee=A.pingedTasks,we;for(we=0;we<Ee.length;we++){var je=Ee[we],ft=A,Pt=je.blockedSegment;if(Pt.status===0){jt(je.context);try{Jr(ft,je,je.node),ft.responseState.generateStaticMarkup||Pt.lastPushedText&&Pt.textEmbedded&&Pt.chunks.push("<!-- -->"),je.abortSet.delete(je),Pt.status=1,Nn(ft,je.blockedBoundary,Pt)}catch(xn){if(st(),typeof xn=="object"&&xn!==null&&typeof xn.then=="function"){var Ut=je.ping;xn.then(Ut,Ut)}else{je.abortSet.delete(je),Pt.status=4;var $t=je.blockedBoundary,_r=xn,Yr=ir(ft,_r);if($t===null?Sr(ft,_r):($t.pendingTasks--,$t.forceClientRender||($t.forceClientRender=!0,$t.errorDigest=Yr,$t.parentFlushed&&ft.clientRenderedBoundaries.push($t))),ft.allPendingTasks--,ft.allPendingTasks===0){var _n=ft.onAllReady;_n()}}}finally{}}}Ee.splice(0,we),A.destination!==null&&hn(A,A.destination)}catch(xn){ir(A,xn),Sr(A,xn)}finally{nt=Q,at.current=V,V===Re&&jt(N)}}}function gi(A,N,V){switch(V.parentFlushed=!0,V.status){case 0:var Q=V.id=A.nextSegmentId++;return V.lastPushedText=!1,V.textEmbedded=!1,A=A.responseState,N.push('<template id="'),N.push(A.placeholderPrefix),A=Q.toString(16),N.push(A),N.push('"></template>');case 1:V.status=2;var Ee=!0;Q=V.chunks;var we=0;V=V.children;for(var je=0;je<V.length;je++){for(Ee=V[je];we<Ee.index;we++)N.push(Q[we]);Ee=Ci(A,N,Ee)}for(;we<Q.length-1;we++)N.push(Q[we]);return we<Q.length&&(Ee=N.push(Q[we])),Ee;default:throw Error(e(390))}}function Ci(A,N,V){var Q=V.boundary;if(Q===null)return gi(A,N,V);if(Q.parentFlushed=!0,Q.forceClientRender)return A.responseState.generateStaticMarkup||(Q=Q.errorDigest,N.push("<!--$!-->"),N.push("<template"),Q&&(N.push(' data-dgst="'),Q=_(Q),N.push(Q),N.push('"')),N.push("></template>")),gi(A,N,V),A=A.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),A;if(0<Q.pendingTasks){Q.rootSegmentID=A.nextSegmentId++,0<Q.completedSegments.length&&A.partialBoundaries.push(Q);var Ee=A.responseState,we=Ee.nextSuspenseID++;return Ee=Ee.boundaryPrefix+we.toString(16),Q=Q.id=Ee,ne(N,A.responseState,Q),gi(A,N,V),N.push("<!--/$-->")}if(Q.byteSize>A.progressiveChunkSize)return Q.rootSegmentID=A.nextSegmentId++,A.completedBoundaries.push(Q),ne(N,A.responseState,Q.id),gi(A,N,V),N.push("<!--/$-->");if(A.responseState.generateStaticMarkup||N.push("<!--$-->"),V=Q.completedSegments,V.length!==1)throw Error(e(391));return Ci(A,N,V[0]),A=A.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),A}function wi(A,N,V){return ge(N,A.responseState,V.formatContext,V.id),Ci(A,N,V),me(N,V.formatContext)}function In(A,N,V){for(var Q=V.completedSegments,Ee=0;Ee<Q.length;Ee++)En(A,N,V,Q[Ee]);if(Q.length=0,A=A.responseState,Q=V.id,V=V.rootSegmentID,N.push(A.startInlineScript),A.sentCompleteBoundaryFunction?N.push('$RC("'):(A.sentCompleteBoundaryFunction=!0,N.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("')),Q===null)throw Error(e(395));return V=V.toString(16),N.push(Q),N.push('","'),N.push(A.segmentPrefix),N.push(V),N.push('")<\/script>')}function En(A,N,V,Q){if(Q.status===2)return!0;var Ee=Q.id;if(Ee===-1){if((Q.id=V.rootSegmentID)===-1)throw Error(e(392));return wi(A,N,Q)}return wi(A,N,Q),A=A.responseState,N.push(A.startInlineScript),A.sentCompleteSegmentFunction?N.push('$RS("'):(A.sentCompleteSegmentFunction=!0,N.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("')),N.push(A.segmentPrefix),Ee=Ee.toString(16),N.push(Ee),N.push('","'),N.push(A.placeholderPrefix),N.push(Ee),N.push('")<\/script>')}function hn(A,N){try{var V=A.completedRootSegment;if(V!==null&&A.pendingRootTasks===0){Ci(A,N,V),A.completedRootSegment=null;var Q=A.responseState.bootstrapChunks;for(V=0;V<Q.length-1;V++)N.push(Q[V]);V<Q.length&&N.push(Q[V])}var Ee=A.clientRenderedBoundaries,we;for(we=0;we<Ee.length;we++){var je=Ee[we];Q=N;var ft=A.responseState,Pt=je.id,Ut=je.errorDigest,$t=je.errorMessage,_r=je.errorComponentStack;if(Q.push(ft.startInlineScript),ft.sentClientRenderFunction?Q.push('$RX("'):(ft.sentClientRenderFunction=!0,Q.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("')),Pt===null)throw Error(e(395));if(Q.push(Pt),Q.push('"'),Ut||$t||_r){Q.push(",");var Yr=de(Ut||"");Q.push(Yr)}if($t||_r){Q.push(",");var _n=de($t||"");Q.push(_n)}if(_r){Q.push(",");var xn=de(_r);Q.push(xn)}if(!Q.push(")<\/script>")){A.destination=null,we++,Ee.splice(0,we);return}}Ee.splice(0,we);var ci=A.completedBoundaries;for(we=0;we<ci.length;we++)if(!In(A,N,ci[we])){A.destination=null,we++,ci.splice(0,we);return}ci.splice(0,we);var Hn=A.partialBoundaries;for(we=0;we<Hn.length;we++){var Ai=Hn[we];e:{Ee=A,je=N;var Qr=Ai.completedSegments;for(ft=0;ft<Qr.length;ft++)if(!En(Ee,je,Ai,Qr[ft])){ft++,Qr.splice(0,ft);var mi=!1;break e}Qr.splice(0,ft),mi=!0}if(!mi){A.destination=null,we++,Hn.splice(0,we);return}}Hn.splice(0,we);var zn=A.completedBoundaries;for(we=0;we<zn.length;we++)if(!In(A,N,zn[we])){A.destination=null,we++,zn.splice(0,we);return}zn.splice(0,we)}finally{A.allPendingTasks===0&&A.pingedTasks.length===0&&A.clientRenderedBoundaries.length===0&&A.completedBoundaries.length===0&&N.push(null)}}function Qn(A,N){try{var V=A.abortableTasks;V.forEach(function(Q){return Jn(Q,A,N)}),V.clear(),A.destination!==null&&hn(A,A.destination)}catch(Q){ir(A,Q),Sr(A,Q)}}function ln(){}function vn(A,N,V,Q){var Ee=!1,we=null,je="",ft={push:function(Ut){return Ut!==null&&(je+=Ut),!0},destroy:function(Ut){Ee=!0,we=Ut}},Pt=!1;if(A=zt(A,De(V,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ln,void 0,function(){Pt=!0}),Tn(A),Qn(A,Q),A.status===1)A.status=2,ft.destroy(A.fatalError);else if(A.status!==2&&A.destination===null){A.destination=ft;try{hn(A,ft)}catch(Ut){ir(A,Ut),Sr(A,Ut)}}if(Ee)throw we;if(!Pt)throw Error(e(426));return je}return Gc.renderToNodeStream=function(){throw Error(e(207))},Gc.renderToStaticMarkup=function(A,N){return vn(A,N,!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')},Gc.renderToStaticNodeStream=function(){throw Error(e(208))},Gc.renderToString=function(A,N){return vn(A,N,!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')},Gc.version="18.2.0",Gc}var Rd={};/**
66
+ `),we;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":A.push(J(F));for(var _n in V)if(t.call(V,_n)&&(we=V[_n],we!=null))switch(_n){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,F));default:$(A,Q,_n,we)}return A.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 Y(A,V,F,Q);case"html":return Ee.insertionMode===0&&A.push("<!DOCTYPE html>"),Y(A,V,F,Q);default:if(F.indexOf("-")===-1&&typeof V.is!="string")return Y(A,V,F,Q);A.push(J(F)),je=we=null;for(Ut in V)if(t.call(V,Ut)&&(ft=V[Ut],ft!=null))switch(Ut){case"children":we=ft;break;case"dangerouslySetInnerHTML":je=ft;break;case"style":j(A,Q,ft);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(Ut)&&typeof ft!="function"&&typeof ft!="symbol"&&A.push(" ",Ut,'="',_(ft),'"')}return A.push(">"),Z(A,je,we),we}}function ne(A,F,V){if(A.push('<!--$?--><template id="'),V===null)throw Error(e(395));return A.push(V),A.push('"></template>')}function ge(A,F,V,Q){switch(V.insertionMode){case 0:case 1:return A.push('<div hidden id="'),A.push(F.segmentPrefix),F=Q.toString(16),A.push(F),A.push('">');case 2:return A.push('<svg aria-hidden="true" style="display:none" id="'),A.push(F.segmentPrefix),F=Q.toString(16),A.push(F),A.push('">');case 3:return A.push('<math aria-hidden="true" style="display:none" id="'),A.push(F.segmentPrefix),F=Q.toString(16),A.push(F),A.push('">');case 4:return A.push('<table hidden id="'),A.push(F.segmentPrefix),F=Q.toString(16),A.push(F),A.push('">');case 5:return A.push('<table hidden><tbody id="'),A.push(F.segmentPrefix),F=Q.toString(16),A.push(F),A.push('">');case 6:return A.push('<table hidden><tr id="'),A.push(F.segmentPrefix),F=Q.toString(16),A.push(F),A.push('">');case 7:return A.push('<table hidden><colgroup id="'),A.push(F.segmentPrefix),F=Q.toString(16),A.push(F),A.push('">');default:throw Error(e(397))}}function me(A,F){switch(F.insertionMode){case 0:case 1:return A.push("</div>");case 2:return A.push("</svg>");case 3:return A.push("</math>");case 4:return A.push("</table>");case 5:return A.push("</tbody></table>");case 6:return A.push("</tr></table>");case 7:return A.push("</colgroup></table>");default:throw Error(e(397))}}var ve=/[<\u2028\u2029]/g;function de(A){return JSON.stringify(A).replace(ve,function(F){switch(F){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 De(A,F){return F=F===void 0?"":F,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:A}}function ue(A,F,V,Q){return V.generateStaticMarkup?(A.push(_(F)),!1):(F===""?A=Q:(Q&&A.push("<!-- -->"),A.push(_(F)),A=!0),A)}var le=Object.assign,fe=Symbol.for("react.element"),Me=Symbol.for("react.portal"),Ve=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),ke=Symbol.for("react.profiler"),ze=Symbol.for("react.provider"),Ze=Symbol.for("react.context"),et=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),$e=Symbol.for("react.scope"),bt=Symbol.for("react.debug_trace_mode"),Ge=Symbol.for("react.legacy_hidden"),ht=Symbol.for("react.default_value"),mt=Symbol.iterator;function Oe(A){if(A==null)return null;if(typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case Ve:return"Fragment";case Me:return"Portal";case ke:return"Profiler";case pe:return"StrictMode";case xe:return"Suspense";case Se:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case Ze:return(A.displayName||"Context")+".Consumer";case ze:return(A._context.displayName||"Context")+".Provider";case et:var F=A.render;return A=A.displayName,A||(A=F.displayName||F.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case be:return F=A.displayName||null,F!==null?F:Oe(A.type)||"Memo";case Le:F=A._payload,A=A._init;try{return Oe(A(F))}catch{}}return null}var He={};function wt(A,F){if(A=A.contextTypes,!A)return He;var V={},Q;for(Q in A)V[Q]=F[Q];return V}var _t=null;function vt(A,F){if(A!==F){A.context._currentValue2=A.parentValue,A=A.parent;var V=F.parent;if(A===null){if(V!==null)throw Error(e(401))}else{if(V===null)throw Error(e(401));vt(A,V)}F.context._currentValue2=F.value}}function Tt(A){A.context._currentValue2=A.parentValue,A=A.parent,A!==null&&Tt(A)}function Pe(A){var F=A.parent;F!==null&&Pe(F),A.context._currentValue2=A.value}function Ke(A,F){if(A.context._currentValue2=A.parentValue,A=A.parent,A===null)throw Error(e(402));A.depth===F.depth?vt(A,F):Ke(A,F)}function xt(A,F){var V=F.parent;if(V===null)throw Error(e(402));A.depth===V.depth?vt(A,V):xt(A,V),F.context._currentValue2=F.value}function jt(A){var F=_t;F!==A&&(F===null?Pe(A):A===null?Tt(F):F.depth===A.depth?vt(F,A):F.depth>A.depth?Ke(F,A):xt(F,A),_t=A)}var At={isMounted:function(){return!1},enqueueSetState:function(A,F){A=A._reactInternals,A.queue!==null&&A.queue.push(F)},enqueueReplaceState:function(A,F){A=A._reactInternals,A.replace=!0,A.queue=[F]},enqueueForceUpdate:function(){}};function Be(A,F,V,Q){var Ee=A.state!==void 0?A.state:null;A.updater=At,A.props=V,A.state=Ee;var we={queue:[],replace:!1};A._reactInternals=we;var je=F.contextType;if(A.context=typeof je=="object"&&je!==null?je._currentValue2:Q,je=F.getDerivedStateFromProps,typeof je=="function"&&(je=je(V,Ee),Ee=je==null?Ee:le({},Ee,je),A.state=Ee),typeof F.getDerivedStateFromProps!="function"&&typeof A.getSnapshotBeforeUpdate!="function"&&(typeof A.UNSAFE_componentWillMount=="function"||typeof A.componentWillMount=="function"))if(F=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),F!==A.state&&At.enqueueReplaceState(A,A.state,null),we.queue!==null&&0<we.queue.length)if(F=we.queue,je=we.replace,we.queue=null,we.replace=!1,je&&F.length===1)A.state=F[0];else{for(we=je?F[0]:A.state,Ee=!0,je=je?1:0;je<F.length;je++){var ft=F[je];ft=typeof ft=="function"?ft.call(A,we,V,Q):ft,ft!=null&&(Ee?(Ee=!1,we=le({},we,ft)):le(we,ft))}A.state=we}else we.queue=null}var Lt={id:1,overflow:""};function Dt(A,F,V){var Q=A.id;A=A.overflow;var Ee=32-dr(Q)-1;Q&=~(1<<Ee),V+=1;var we=32-dr(F)+Ee;if(30<we){var je=Ee-Ee%5;return we=(Q&(1<<je)-1).toString(32),Q>>=je,Ee-=je,{id:1<<32-dr(F)+Ee|V<<Ee|Q,overflow:we+A}}return{id:1<<we|V<<Ee|Q,overflow:A}}var dr=Math.clz32?Math.clz32:_e,Er=Math.log,Mr=Math.LN2;function _e(A){return A>>>=0,A===0?32:31-(Er(A)/Mr|0)|0}function te(A,F){return A===F&&(A!==0||1/A===1/F)||A!==A&&F!==F}var tt=typeof Object.is=="function"?Object.is:te,ut=null,qt=null,kt=null,Mt=null,tr=!1,Xe=!1,rt=0,Rt=null,Ht=0;function Ot(){if(ut===null)throw Error(e(321));return ut}function Xt(){if(0<Ht)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Or(){return Mt===null?kt===null?(tr=!1,kt=Mt=Xt()):(tr=!0,Mt=kt):Mt.next===null?(tr=!1,Mt=Mt.next=Xt()):(tr=!0,Mt=Mt.next),Mt}function st(){qt=ut=null,Xe=!1,kt=null,Ht=0,Mt=Rt=null}function St(A,F){return typeof F=="function"?F(A):F}function pt(A,F,V){if(ut=Ot(),Mt=Or(),tr){var Q=Mt.queue;if(F=Q.dispatch,Rt!==null&&(V=Rt.get(Q),V!==void 0)){Rt.delete(Q),Q=Mt.memoizedState;do Q=A(Q,V.action),V=V.next;while(V!==null);return Mt.memoizedState=Q,[Q,F]}return[Mt.memoizedState,F]}return A=A===St?typeof F=="function"?F():F:V!==void 0?V(F):F,Mt.memoizedState=A,A=Mt.queue={last:null,dispatch:null},A=A.dispatch=gr.bind(null,ut,A),[Mt.memoizedState,A]}function Bt(A,F){if(ut=Ot(),Mt=Or(),F=F===void 0?null:F,Mt!==null){var V=Mt.memoizedState;if(V!==null&&F!==null){var Q=V[1];e:if(Q===null)Q=!1;else{for(var Ee=0;Ee<Q.length&&Ee<F.length;Ee++)if(!tt(F[Ee],Q[Ee])){Q=!1;break e}Q=!0}if(Q)return V[0]}}return A=A(),Mt.memoizedState=[A,F],A}function gr(A,F,V){if(25<=Ht)throw Error(e(301));if(A===ut)if(Xe=!0,A={action:V,next:null},Rt===null&&(Rt=new Map),V=Rt.get(F),V===void 0)Rt.set(F,A);else{for(F=V;F.next!==null;)F=F.next;F.next=A}}function re(){throw Error(e(394))}function Ue(){}var Re={readContext:function(A){return A._currentValue2},useContext:function(A){return Ot(),A._currentValue2},useMemo:Bt,useReducer:pt,useRef:function(A){ut=Ot(),Mt=Or();var F=Mt.memoizedState;return F===null?(A={current:A},Mt.memoizedState=A):F},useState:function(A){return pt(St,A)},useInsertionEffect:Ue,useLayoutEffect:function(){},useCallback:function(A,F){return Bt(function(){return A},F)},useImperativeHandle:Ue,useEffect:Ue,useDebugValue:Ue,useDeferredValue:function(A){return Ot(),A},useTransition:function(){return Ot(),[!1,re]},useId:function(){var A=qt.treeContext,F=A.overflow;A=A.id,A=(A&~(1<<32-dr(A)-1)).toString(32)+F;var V=nt;if(V===null)throw Error(e(404));return F=rt++,A=":"+V.idPrefix+"R"+A,0<F&&(A+="H"+F.toString(32)),A+":"},useMutableSource:function(A,F){return Ot(),F(A._source)},useSyncExternalStore:function(A,F,V){if(V===void 0)throw Error(e(407));return V()}},nt=null,at=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Et(A){return console.error(A),null}function lt(){}function zt(A,F,V,Q,Ee,we,je,ft,Pt){var Ut=[],$t=new Set;return F={destination:null,responseState:F,progressiveChunkSize:Q===void 0?12800:Q,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:$t,pingedTasks:Ut,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ee===void 0?Et:Ee,onAllReady:lt,onShellReady:je===void 0?lt:je,onShellError:lt,onFatalError:lt},V=Zt(F,0,null,V,!1,!1),V.parentFlushed=!0,A=ar(F,A,null,V,$t,He,null,Lt),Ut.push(A),F}function ar(A,F,V,Q,Ee,we,je,ft){A.allPendingTasks++,V===null?A.pendingRootTasks++:V.pendingTasks++;var Pt={node:F,ping:function(){var Ut=A.pingedTasks;Ut.push(Pt),Ut.length===1&&Tn(A)},blockedBoundary:V,blockedSegment:Q,abortSet:Ee,legacyContext:we,context:je,treeContext:ft};return Ee.add(Pt),Pt}function Zt(A,F,V,Q,Ee,we){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:Q,boundary:V,lastPushedText:Ee,textEmbedded:we}}function ir(A,F){if(A=A.onError(F),A!=null&&typeof A!="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 A+'" instead');return A}function Sr(A,F){var V=A.onShellError;V(F),V=A.onFatalError,V(F),A.destination!==null?(A.status=2,A.destination.destroy(F)):(A.status=1,A.fatalError=F)}function nr(A,F,V,Q,Ee){for(ut={},qt=F,rt=0,A=V(Q,Ee);Xe;)Xe=!1,rt=0,Ht+=1,Mt=null,A=V(Q,Ee);return st(),A}function Wr(A,F,V,Q){var Ee=V.render(),we=Q.childContextTypes;if(we!=null){var je=F.legacyContext;if(typeof V.getChildContext!="function")Q=je;else{V=V.getChildContext();for(var ft in V)if(!(ft in we))throw Error(e(108,Oe(Q)||"Unknown",ft));Q=le({},je,V)}F.legacyContext=Q,Jr(A,F,Ee),F.legacyContext=je}else Jr(A,F,Ee)}function Gr(A,F){if(A&&A.defaultProps){F=le({},F),A=A.defaultProps;for(var V in A)F[V]===void 0&&(F[V]=A[V]);return F}return F}function mn(A,F,V,Q,Ee){if(typeof V=="function")if(V.prototype&&V.prototype.isReactComponent){Ee=wt(V,F.legacyContext);var we=V.contextType;we=new V(Q,typeof we=="object"&&we!==null?we._currentValue2:Ee),Be(we,V,Q,Ee),Wr(A,F,we,V)}else{we=wt(V,F.legacyContext),Ee=nr(A,F,V,Q,we);var je=rt!==0;if(typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0)Be(Ee,V,Q,we),Wr(A,F,Ee,V);else if(je){Q=F.treeContext,F.treeContext=Dt(Q,1,0);try{Jr(A,F,Ee)}finally{F.treeContext=Q}}else Jr(A,F,Ee)}else if(typeof V=="string"){switch(Ee=F.blockedSegment,we=X(Ee.chunks,V,Q,A.responseState,Ee.formatContext),Ee.lastPushedText=!1,je=Ee.formatContext,Ee.formatContext=O(je,V,Q),Rn(A,F,we),Ee.formatContext=je,V){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:Ee.chunks.push("</",V,">")}Ee.lastPushedText=!1}else{switch(V){case Ge:case bt:case pe:case ke:case Ve:Jr(A,F,Q.children);return;case Se:Jr(A,F,Q.children);return;case $e:throw Error(e(343));case xe:e:{V=F.blockedBoundary,Ee=F.blockedSegment,we=Q.fallback,Q=Q.children,je=new Set;var ft={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:je,errorDigest:null},Pt=Zt(A,Ee.chunks.length,ft,Ee.formatContext,!1,!1);Ee.children.push(Pt),Ee.lastPushedText=!1;var Ut=Zt(A,0,null,Ee.formatContext,!1,!1);Ut.parentFlushed=!0,F.blockedBoundary=ft,F.blockedSegment=Ut;try{if(Rn(A,F,Q),A.responseState.generateStaticMarkup||Ut.lastPushedText&&Ut.textEmbedded&&Ut.chunks.push("<!-- -->"),Ut.status=1,an(ft,Ut),ft.pendingTasks===0)break e}catch($t){Ut.status=4,ft.forceClientRender=!0,ft.errorDigest=ir(A,$t)}finally{F.blockedBoundary=V,F.blockedSegment=Ee}F=ar(A,we,V,Pt,je,F.legacyContext,F.context,F.treeContext),A.pingedTasks.push(F)}return}if(typeof V=="object"&&V!==null)switch(V.$$typeof){case et:if(Q=nr(A,F,V.render,Q,Ee),rt!==0){V=F.treeContext,F.treeContext=Dt(V,1,0);try{Jr(A,F,Q)}finally{F.treeContext=V}}else Jr(A,F,Q);return;case be:V=V.type,Q=Gr(V,Q),mn(A,F,V,Q,Ee);return;case ze:if(Ee=Q.children,V=V._context,Q=Q.value,we=V._currentValue2,V._currentValue2=Q,je=_t,_t=Q={parent:je,depth:je===null?0:je.depth+1,context:V,parentValue:we,value:Q},F.context=Q,Jr(A,F,Ee),A=_t,A===null)throw Error(e(403));Q=A.parentValue,A.context._currentValue2=Q===ht?A.context._defaultValue:Q,A=_t=A.parent,F.context=A;return;case Ze:Q=Q.children,Q=Q(V._currentValue2),Jr(A,F,Q);return;case Le:Ee=V._init,V=Ee(V._payload),Q=Gr(V,Q),mn(A,F,V,Q,void 0);return}throw Error(e(130,V==null?V:typeof V,""))}}function Jr(A,F,V){if(F.node=V,typeof V=="object"&&V!==null){switch(V.$$typeof){case fe:mn(A,F,V.type,V.props,V.ref);return;case Me:throw Error(e(257));case Le:var Q=V._init;V=Q(V._payload),Jr(A,F,V);return}if(C(V)){Yn(A,F,V);return}if(V===null||typeof V!="object"?Q=null:(Q=mt&&V[mt]||V["@@iterator"],Q=typeof Q=="function"?Q:null),Q&&(Q=Q.call(V))){if(V=Q.next(),!V.done){var Ee=[];do Ee.push(V.value),V=Q.next();while(!V.done);Yn(A,F,Ee)}return}throw A=Object.prototype.toString.call(V),Error(e(31,A==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":A))}typeof V=="string"?(Q=F.blockedSegment,Q.lastPushedText=ue(F.blockedSegment.chunks,V,A.responseState,Q.lastPushedText)):typeof V=="number"&&(Q=F.blockedSegment,Q.lastPushedText=ue(F.blockedSegment.chunks,""+V,A.responseState,Q.lastPushedText))}function Yn(A,F,V){for(var Q=V.length,Ee=0;Ee<Q;Ee++){var we=F.treeContext;F.treeContext=Dt(we,Q,Ee);try{Rn(A,F,V[Ee])}finally{F.treeContext=we}}}function Rn(A,F,V){var Q=F.blockedSegment.formatContext,Ee=F.legacyContext,we=F.context;try{return Jr(A,F,V)}catch(Pt){if(st(),typeof Pt=="object"&&Pt!==null&&typeof Pt.then=="function"){V=Pt;var je=F.blockedSegment,ft=Zt(A,je.chunks.length,null,je.formatContext,je.lastPushedText,!0);je.children.push(ft),je.lastPushedText=!1,A=ar(A,F.node,F.blockedBoundary,ft,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,V.then(A,A),F.blockedSegment.formatContext=Q,F.legacyContext=Ee,F.context=we,jt(we)}else throw F.blockedSegment.formatContext=Q,F.legacyContext=Ee,F.context=we,jt(we),Pt}}function Xn(A){var F=A.blockedBoundary;A=A.blockedSegment,A.status=3,Nn(this,F,A)}function Jn(A,F,V){var Q=A.blockedBoundary;A.blockedSegment.status=3,Q===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.push(null))):(Q.pendingTasks--,Q.forceClientRender||(Q.forceClientRender=!0,A=V===void 0?Error(e(432)):V,Q.errorDigest=F.onError(A),Q.parentFlushed&&F.clientRenderedBoundaries.push(Q)),Q.fallbackAbortableTasks.forEach(function(Ee){return Jn(Ee,F,V)}),Q.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(Q=F.onAllReady,Q()))}function an(A,F){if(F.chunks.length===0&&F.children.length===1&&F.children[0].boundary===null){var V=F.children[0];V.id=F.id,V.parentFlushed=!0,V.status===1&&an(A,V)}else A.completedSegments.push(F)}function Nn(A,F,V){if(F===null){if(V.parentFlushed){if(A.completedRootSegment!==null)throw Error(e(389));A.completedRootSegment=V}A.pendingRootTasks--,A.pendingRootTasks===0&&(A.onShellError=lt,F=A.onShellReady,F())}else F.pendingTasks--,F.forceClientRender||(F.pendingTasks===0?(V.parentFlushed&&V.status===1&&an(F,V),F.parentFlushed&&A.completedBoundaries.push(F),F.fallbackAbortableTasks.forEach(Xn,A),F.fallbackAbortableTasks.clear()):V.parentFlushed&&V.status===1&&(an(F,V),F.completedSegments.length===1&&F.parentFlushed&&A.partialBoundaries.push(F)));A.allPendingTasks--,A.allPendingTasks===0&&(A=A.onAllReady,A())}function Tn(A){if(A.status!==2){var F=_t,V=at.current;at.current=Re;var Q=nt;nt=A.responseState;try{var Ee=A.pingedTasks,we;for(we=0;we<Ee.length;we++){var je=Ee[we],ft=A,Pt=je.blockedSegment;if(Pt.status===0){jt(je.context);try{Jr(ft,je,je.node),ft.responseState.generateStaticMarkup||Pt.lastPushedText&&Pt.textEmbedded&&Pt.chunks.push("<!-- -->"),je.abortSet.delete(je),Pt.status=1,Nn(ft,je.blockedBoundary,Pt)}catch(xn){if(st(),typeof xn=="object"&&xn!==null&&typeof xn.then=="function"){var Ut=je.ping;xn.then(Ut,Ut)}else{je.abortSet.delete(je),Pt.status=4;var $t=je.blockedBoundary,_r=xn,Yr=ir(ft,_r);if($t===null?Sr(ft,_r):($t.pendingTasks--,$t.forceClientRender||($t.forceClientRender=!0,$t.errorDigest=Yr,$t.parentFlushed&&ft.clientRenderedBoundaries.push($t))),ft.allPendingTasks--,ft.allPendingTasks===0){var _n=ft.onAllReady;_n()}}}finally{}}}Ee.splice(0,we),A.destination!==null&&hn(A,A.destination)}catch(xn){ir(A,xn),Sr(A,xn)}finally{nt=Q,at.current=V,V===Re&&jt(F)}}}function gi(A,F,V){switch(V.parentFlushed=!0,V.status){case 0:var Q=V.id=A.nextSegmentId++;return V.lastPushedText=!1,V.textEmbedded=!1,A=A.responseState,F.push('<template id="'),F.push(A.placeholderPrefix),A=Q.toString(16),F.push(A),F.push('"></template>');case 1:V.status=2;var Ee=!0;Q=V.chunks;var we=0;V=V.children;for(var je=0;je<V.length;je++){for(Ee=V[je];we<Ee.index;we++)F.push(Q[we]);Ee=Ci(A,F,Ee)}for(;we<Q.length-1;we++)F.push(Q[we]);return we<Q.length&&(Ee=F.push(Q[we])),Ee;default:throw Error(e(390))}}function Ci(A,F,V){var Q=V.boundary;if(Q===null)return gi(A,F,V);if(Q.parentFlushed=!0,Q.forceClientRender)return A.responseState.generateStaticMarkup||(Q=Q.errorDigest,F.push("<!--$!-->"),F.push("<template"),Q&&(F.push(' data-dgst="'),Q=_(Q),F.push(Q),F.push('"')),F.push("></template>")),gi(A,F,V),A=A.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),A;if(0<Q.pendingTasks){Q.rootSegmentID=A.nextSegmentId++,0<Q.completedSegments.length&&A.partialBoundaries.push(Q);var Ee=A.responseState,we=Ee.nextSuspenseID++;return Ee=Ee.boundaryPrefix+we.toString(16),Q=Q.id=Ee,ne(F,A.responseState,Q),gi(A,F,V),F.push("<!--/$-->")}if(Q.byteSize>A.progressiveChunkSize)return Q.rootSegmentID=A.nextSegmentId++,A.completedBoundaries.push(Q),ne(F,A.responseState,Q.id),gi(A,F,V),F.push("<!--/$-->");if(A.responseState.generateStaticMarkup||F.push("<!--$-->"),V=Q.completedSegments,V.length!==1)throw Error(e(391));return Ci(A,F,V[0]),A=A.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),A}function wi(A,F,V){return ge(F,A.responseState,V.formatContext,V.id),Ci(A,F,V),me(F,V.formatContext)}function In(A,F,V){for(var Q=V.completedSegments,Ee=0;Ee<Q.length;Ee++)En(A,F,V,Q[Ee]);if(Q.length=0,A=A.responseState,Q=V.id,V=V.rootSegmentID,F.push(A.startInlineScript),A.sentCompleteBoundaryFunction?F.push('$RC("'):(A.sentCompleteBoundaryFunction=!0,F.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("')),Q===null)throw Error(e(395));return V=V.toString(16),F.push(Q),F.push('","'),F.push(A.segmentPrefix),F.push(V),F.push('")<\/script>')}function En(A,F,V,Q){if(Q.status===2)return!0;var Ee=Q.id;if(Ee===-1){if((Q.id=V.rootSegmentID)===-1)throw Error(e(392));return wi(A,F,Q)}return wi(A,F,Q),A=A.responseState,F.push(A.startInlineScript),A.sentCompleteSegmentFunction?F.push('$RS("'):(A.sentCompleteSegmentFunction=!0,F.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("')),F.push(A.segmentPrefix),Ee=Ee.toString(16),F.push(Ee),F.push('","'),F.push(A.placeholderPrefix),F.push(Ee),F.push('")<\/script>')}function hn(A,F){try{var V=A.completedRootSegment;if(V!==null&&A.pendingRootTasks===0){Ci(A,F,V),A.completedRootSegment=null;var Q=A.responseState.bootstrapChunks;for(V=0;V<Q.length-1;V++)F.push(Q[V]);V<Q.length&&F.push(Q[V])}var Ee=A.clientRenderedBoundaries,we;for(we=0;we<Ee.length;we++){var je=Ee[we];Q=F;var ft=A.responseState,Pt=je.id,Ut=je.errorDigest,$t=je.errorMessage,_r=je.errorComponentStack;if(Q.push(ft.startInlineScript),ft.sentClientRenderFunction?Q.push('$RX("'):(ft.sentClientRenderFunction=!0,Q.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("')),Pt===null)throw Error(e(395));if(Q.push(Pt),Q.push('"'),Ut||$t||_r){Q.push(",");var Yr=de(Ut||"");Q.push(Yr)}if($t||_r){Q.push(",");var _n=de($t||"");Q.push(_n)}if(_r){Q.push(",");var xn=de(_r);Q.push(xn)}if(!Q.push(")<\/script>")){A.destination=null,we++,Ee.splice(0,we);return}}Ee.splice(0,we);var ci=A.completedBoundaries;for(we=0;we<ci.length;we++)if(!In(A,F,ci[we])){A.destination=null,we++,ci.splice(0,we);return}ci.splice(0,we);var Hn=A.partialBoundaries;for(we=0;we<Hn.length;we++){var Ai=Hn[we];e:{Ee=A,je=F;var Qr=Ai.completedSegments;for(ft=0;ft<Qr.length;ft++)if(!En(Ee,je,Ai,Qr[ft])){ft++,Qr.splice(0,ft);var mi=!1;break e}Qr.splice(0,ft),mi=!0}if(!mi){A.destination=null,we++,Hn.splice(0,we);return}}Hn.splice(0,we);var zn=A.completedBoundaries;for(we=0;we<zn.length;we++)if(!In(A,F,zn[we])){A.destination=null,we++,zn.splice(0,we);return}zn.splice(0,we)}finally{A.allPendingTasks===0&&A.pingedTasks.length===0&&A.clientRenderedBoundaries.length===0&&A.completedBoundaries.length===0&&F.push(null)}}function Qn(A,F){try{var V=A.abortableTasks;V.forEach(function(Q){return Jn(Q,A,F)}),V.clear(),A.destination!==null&&hn(A,A.destination)}catch(Q){ir(A,Q),Sr(A,Q)}}function ln(){}function vn(A,F,V,Q){var Ee=!1,we=null,je="",ft={push:function(Ut){return Ut!==null&&(je+=Ut),!0},destroy:function(Ut){Ee=!0,we=Ut}},Pt=!1;if(A=zt(A,De(V,F?F.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ln,void 0,function(){Pt=!0}),Tn(A),Qn(A,Q),A.status===1)A.status=2,ft.destroy(A.fatalError);else if(A.status!==2&&A.destination===null){A.destination=ft;try{hn(A,ft)}catch(Ut){ir(A,Ut),Sr(A,Ut)}}if(Ee)throw we;if(!Pt)throw Error(e(426));return je}return Gc.renderToNodeStream=function(){throw Error(e(207))},Gc.renderToStaticMarkup=function(A,F){return vn(A,F,!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')},Gc.renderToStaticNodeStream=function(){throw Error(e(208))},Gc.renderToString=function(A,F){return vn(A,F,!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')},Gc.version="18.2.0",Gc}var Rd={};/**
67
67
  * @license React
68
68
  * react-dom-server.browser.production.min.js
69
69
  *
@@ -71,11 +71,11 @@ function print() { __p += __j.call(arguments, '') }
71
71
  *
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
- */var Qv;function C5(){if(Qv)return Rd;Qv=1;var r=S;function e(E){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+E,z=1;z<arguments.length;z++)P+="&args[]="+encodeURIComponent(arguments[z]);return"Minified React error #"+E+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function i(E,P){if(P.length!==0)if(512<P.length)0<n&&(E.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),E.enqueue(P);else{var z=t.length-n;z<P.length&&(z===0?E.enqueue(t):(t.set(P.subarray(0,z),n),E.enqueue(t),P=P.subarray(z)),t=new Uint8Array(512),n=0),t.set(P,n),n+=P.length}}function l(E,P){return i(E,P),!0}function u(E){t&&0<n&&(E.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var f=new TextEncoder;function p(E){return f.encode(E)}function m(E){return f.encode(E)}function T(E,P){typeof E.error=="function"?E.error(P):E.close()}var k=Object.prototype.hasOwnProperty,b=/^[: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]*$/,x={},_={};function I(E){return k.call(_,E)?!0:k.call(x,E)?!1:b.test(E)?_[E]=!0:(x[E]=!0,!1)}function w(E,P,z,ee,Ie,Te,Je){this.acceptsBooleans=P===2||P===3||P===4,this.attributeName=ee,this.attributeNamespace=Ie,this.mustUseProperty=z,this.propertyName=E,this.type=P,this.sanitizeURL=Te,this.removeEmptyString=Je}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){C[E]=new w(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var P=E[0];C[P]=new w(P,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){C[E]=new w(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){C[E]=new w(E,2,!1,E,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(E){C[E]=new w(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){C[E]=new w(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){C[E]=new w(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){C[E]=new w(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){C[E]=new w(E,5,!1,E.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function O(E){return E[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(E){var P=E.replace(D,O);C[P]=new w(P,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var P=E.replace(D,O);C[P]=new w(P,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var P=E.replace(D,O);C[P]=new w(P,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){C[E]=new w(E,1,!1,E.toLowerCase(),null,!1,!1)}),C.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){C[E]=new w(E,1,!1,E.toLowerCase(),null,!0,!0)});var F={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},j=["Webkit","ms","Moz","O"];Object.keys(F).forEach(function(E){j.forEach(function(P){P=P+E.charAt(0).toUpperCase()+E.substring(1),F[P]=F[E]})});var $=/["'&<>]/;function Z(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var P=$.exec(E);if(P){var z="",ee,Ie=0;for(ee=P.index;ee<E.length;ee++){switch(E.charCodeAt(ee)){case 34:P="&quot;";break;case 38:P="&amp;";break;case 39:P="&#x27;";break;case 60:P="&lt;";break;case 62:P="&gt;";break;default:continue}Ie!==ee&&(z+=E.substring(Ie,ee)),Ie=ee+1,z+=P}E=Ie!==ee?z+E.substring(Ie,ee):z}return E}var ie=/([A-Z])/g,Y=/^ms-/,se=Array.isArray,q=m("<script>"),J=m("<\/script>"),X=m('<script src="'),ne=m('<script type="module" src="'),ge=m('" async=""><\/script>'),me=/(<\/|<)(s)(cript)/gi;function ve(E,P,z,ee){return""+P+(z==="s"?"\\u0073":"\\u0053")+ee}function de(E,P,z,ee,Ie){E=E===void 0?"":E,P=P===void 0?q:m('<script nonce="'+Z(P)+'">');var Te=[];if(z!==void 0&&Te.push(P,p((""+z).replace(me,ve)),J),ee!==void 0)for(z=0;z<ee.length;z++)Te.push(X,p(Z(ee[z])),ge);if(Ie!==void 0)for(ee=0;ee<Ie.length;ee++)Te.push(ne,p(Z(Ie[ee])),ge);return{bootstrapChunks:Te,startInlineScript:P,placeholderPrefix:m(E+"P:"),segmentPrefix:m(E+"S:"),boundaryPrefix:E+"B:",idPrefix:E,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function De(E,P){return{insertionMode:E,selectedValue:P}}function ue(E){return De(E==="http://www.w3.org/2000/svg"?2:E==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function le(E,P,z){switch(P){case"select":return De(1,z.value!=null?z.value:z.defaultValue);case"svg":return De(2,null);case"math":return De(3,null);case"foreignObject":return De(1,null);case"table":return De(4,null);case"thead":case"tbody":case"tfoot":return De(5,null);case"colgroup":return De(7,null);case"tr":return De(6,null)}return 4<=E.insertionMode||E.insertionMode===0?De(1,null):E}var fe=m("<!-- -->");function Me(E,P,z,ee){return P===""?ee:(ee&&E.push(fe),E.push(p(Z(P))),!0)}var Ve=new Map,pe=m(' style="'),ke=m(":"),ze=m(";");function Ze(E,P,z){if(typeof z!="object")throw Error(e(62));P=!0;for(var ee in z)if(k.call(z,ee)){var Ie=z[ee];if(Ie!=null&&typeof Ie!="boolean"&&Ie!==""){if(ee.indexOf("--")===0){var Te=p(Z(ee));Ie=p(Z((""+Ie).trim()))}else{Te=ee;var Je=Ve.get(Te);Je!==void 0||(Je=m(Z(Te.replace(ie,"-$1").toLowerCase().replace(Y,"-ms-"))),Ve.set(Te,Je)),Te=Je,Ie=typeof Ie=="number"?Ie===0||k.call(F,ee)?p(""+Ie):p(Ie+"px"):p(Z((""+Ie).trim()))}P?(P=!1,E.push(pe,Te,ke,Ie)):E.push(ze,Te,ke,Ie)}}P||E.push(Se)}var et=m(" "),xe=m('="'),Se=m('"'),be=m('=""');function Le(E,P,z,ee){switch(z){case"style":Ze(E,P,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"){if(P=C.hasOwnProperty(z)?C[z]:null,P!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!P.acceptsBooleans)return}switch(z=p(P.attributeName),P.type){case 3:ee&&E.push(et,z,be);break;case 4:ee===!0?E.push(et,z,be):ee!==!1&&E.push(et,z,xe,p(Z(ee)),Se);break;case 5:isNaN(ee)||E.push(et,z,xe,p(Z(ee)),Se);break;case 6:!isNaN(ee)&&1<=ee&&E.push(et,z,xe,p(Z(ee)),Se);break;default:P.sanitizeURL&&(ee=""+ee),E.push(et,z,xe,p(Z(ee)),Se)}}else if(I(z)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(P=z.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")return}E.push(et,p(z),xe,p(Z(ee)),Se)}}}var $e=m(">"),bt=m("/>");function Ge(E,P,z){if(P!=null){if(z!=null)throw Error(e(60));if(typeof P!="object"||!("__html"in P))throw Error(e(61));P=P.__html,P!=null&&E.push(p(""+P))}}function ht(E){var P="";return r.Children.forEach(E,function(z){z!=null&&(P+=z)}),P}var mt=m(' selected=""');function Oe(E,P,z,ee){E.push(vt(z));var Ie=z=null,Te;for(Te in P)if(k.call(P,Te)){var Je=P[Te];if(Je!=null)switch(Te){case"children":z=Je;break;case"dangerouslySetInnerHTML":Ie=Je;break;default:Le(E,ee,Te,Je)}}return E.push($e),Ge(E,Ie,z),typeof z=="string"?(E.push(p(Z(z))),null):z}var He=m(`
74
+ */var Qv;function C5(){if(Qv)return Rd;Qv=1;var r=S;function e(E){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+E,z=1;z<arguments.length;z++)P+="&args[]="+encodeURIComponent(arguments[z]);return"Minified React error #"+E+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function i(E,P){if(P.length!==0)if(512<P.length)0<n&&(E.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),E.enqueue(P);else{var z=t.length-n;z<P.length&&(z===0?E.enqueue(t):(t.set(P.subarray(0,z),n),E.enqueue(t),P=P.subarray(z)),t=new Uint8Array(512),n=0),t.set(P,n),n+=P.length}}function l(E,P){return i(E,P),!0}function u(E){t&&0<n&&(E.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var f=new TextEncoder;function p(E){return f.encode(E)}function m(E){return f.encode(E)}function T(E,P){typeof E.error=="function"?E.error(P):E.close()}var k=Object.prototype.hasOwnProperty,b=/^[: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]*$/,x={},_={};function I(E){return k.call(_,E)?!0:k.call(x,E)?!1:b.test(E)?_[E]=!0:(x[E]=!0,!1)}function w(E,P,z,ee,Ie,Te,Je){this.acceptsBooleans=P===2||P===3||P===4,this.attributeName=ee,this.attributeNamespace=Ie,this.mustUseProperty=z,this.propertyName=E,this.type=P,this.sanitizeURL=Te,this.removeEmptyString=Je}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){C[E]=new w(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var P=E[0];C[P]=new w(P,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){C[E]=new w(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){C[E]=new w(E,2,!1,E,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(E){C[E]=new w(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){C[E]=new w(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){C[E]=new w(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){C[E]=new w(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){C[E]=new w(E,5,!1,E.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function O(E){return E[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(E){var P=E.replace(D,O);C[P]=new w(P,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var P=E.replace(D,O);C[P]=new w(P,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var P=E.replace(D,O);C[P]=new w(P,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){C[E]=new w(E,1,!1,E.toLowerCase(),null,!1,!1)}),C.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){C[E]=new w(E,1,!1,E.toLowerCase(),null,!0,!0)});var N={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},j=["Webkit","ms","Moz","O"];Object.keys(N).forEach(function(E){j.forEach(function(P){P=P+E.charAt(0).toUpperCase()+E.substring(1),N[P]=N[E]})});var $=/["'&<>]/;function Z(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var P=$.exec(E);if(P){var z="",ee,Ie=0;for(ee=P.index;ee<E.length;ee++){switch(E.charCodeAt(ee)){case 34:P="&quot;";break;case 38:P="&amp;";break;case 39:P="&#x27;";break;case 60:P="&lt;";break;case 62:P="&gt;";break;default:continue}Ie!==ee&&(z+=E.substring(Ie,ee)),Ie=ee+1,z+=P}E=Ie!==ee?z+E.substring(Ie,ee):z}return E}var ie=/([A-Z])/g,Y=/^ms-/,se=Array.isArray,q=m("<script>"),J=m("<\/script>"),X=m('<script src="'),ne=m('<script type="module" src="'),ge=m('" async=""><\/script>'),me=/(<\/|<)(s)(cript)/gi;function ve(E,P,z,ee){return""+P+(z==="s"?"\\u0073":"\\u0053")+ee}function de(E,P,z,ee,Ie){E=E===void 0?"":E,P=P===void 0?q:m('<script nonce="'+Z(P)+'">');var Te=[];if(z!==void 0&&Te.push(P,p((""+z).replace(me,ve)),J),ee!==void 0)for(z=0;z<ee.length;z++)Te.push(X,p(Z(ee[z])),ge);if(Ie!==void 0)for(ee=0;ee<Ie.length;ee++)Te.push(ne,p(Z(Ie[ee])),ge);return{bootstrapChunks:Te,startInlineScript:P,placeholderPrefix:m(E+"P:"),segmentPrefix:m(E+"S:"),boundaryPrefix:E+"B:",idPrefix:E,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function De(E,P){return{insertionMode:E,selectedValue:P}}function ue(E){return De(E==="http://www.w3.org/2000/svg"?2:E==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function le(E,P,z){switch(P){case"select":return De(1,z.value!=null?z.value:z.defaultValue);case"svg":return De(2,null);case"math":return De(3,null);case"foreignObject":return De(1,null);case"table":return De(4,null);case"thead":case"tbody":case"tfoot":return De(5,null);case"colgroup":return De(7,null);case"tr":return De(6,null)}return 4<=E.insertionMode||E.insertionMode===0?De(1,null):E}var fe=m("<!-- -->");function Me(E,P,z,ee){return P===""?ee:(ee&&E.push(fe),E.push(p(Z(P))),!0)}var Ve=new Map,pe=m(' style="'),ke=m(":"),ze=m(";");function Ze(E,P,z){if(typeof z!="object")throw Error(e(62));P=!0;for(var ee in z)if(k.call(z,ee)){var Ie=z[ee];if(Ie!=null&&typeof Ie!="boolean"&&Ie!==""){if(ee.indexOf("--")===0){var Te=p(Z(ee));Ie=p(Z((""+Ie).trim()))}else{Te=ee;var Je=Ve.get(Te);Je!==void 0||(Je=m(Z(Te.replace(ie,"-$1").toLowerCase().replace(Y,"-ms-"))),Ve.set(Te,Je)),Te=Je,Ie=typeof Ie=="number"?Ie===0||k.call(N,ee)?p(""+Ie):p(Ie+"px"):p(Z((""+Ie).trim()))}P?(P=!1,E.push(pe,Te,ke,Ie)):E.push(ze,Te,ke,Ie)}}P||E.push(Se)}var et=m(" "),xe=m('="'),Se=m('"'),be=m('=""');function Le(E,P,z,ee){switch(z){case"style":Ze(E,P,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"){if(P=C.hasOwnProperty(z)?C[z]:null,P!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!P.acceptsBooleans)return}switch(z=p(P.attributeName),P.type){case 3:ee&&E.push(et,z,be);break;case 4:ee===!0?E.push(et,z,be):ee!==!1&&E.push(et,z,xe,p(Z(ee)),Se);break;case 5:isNaN(ee)||E.push(et,z,xe,p(Z(ee)),Se);break;case 6:!isNaN(ee)&&1<=ee&&E.push(et,z,xe,p(Z(ee)),Se);break;default:P.sanitizeURL&&(ee=""+ee),E.push(et,z,xe,p(Z(ee)),Se)}}else if(I(z)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(P=z.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")return}E.push(et,p(z),xe,p(Z(ee)),Se)}}}var $e=m(">"),bt=m("/>");function Ge(E,P,z){if(P!=null){if(z!=null)throw Error(e(60));if(typeof P!="object"||!("__html"in P))throw Error(e(61));P=P.__html,P!=null&&E.push(p(""+P))}}function ht(E){var P="";return r.Children.forEach(E,function(z){z!=null&&(P+=z)}),P}var mt=m(' selected=""');function Oe(E,P,z,ee){E.push(vt(z));var Ie=z=null,Te;for(Te in P)if(k.call(P,Te)){var Je=P[Te];if(Je!=null)switch(Te){case"children":z=Je;break;case"dangerouslySetInnerHTML":Ie=Je;break;default:Le(E,ee,Te,Je)}}return E.push($e),Ge(E,Ie,z),typeof z=="string"?(E.push(p(Z(z))),null):z}var He=m(`
75
75
  `),wt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_t=new Map;function vt(E){var P=_t.get(E);if(P===void 0){if(!wt.test(E))throw Error(e(65,E));P=m("<"+E),_t.set(E,P)}return P}var Tt=m("<!DOCTYPE html>");function Pe(E,P,z,ee,Ie){switch(P){case"select":E.push(vt("select"));var Te=null,Je=null;for(lr in z)if(k.call(z,lr)){var Ct=z[lr];if(Ct!=null)switch(lr){case"children":Te=Ct;break;case"dangerouslySetInnerHTML":Je=Ct;break;case"defaultValue":case"value":break;default:Le(E,ee,lr,Ct)}}return E.push($e),Ge(E,Je,Te),Te;case"option":Je=Ie.selectedValue,E.push(vt("option"));var Wt=Ct=null,pr=null,lr=null;for(Te in z)if(k.call(z,Te)){var Kr=z[Te];if(Kr!=null)switch(Te){case"children":Ct=Kr;break;case"selected":pr=Kr;break;case"dangerouslySetInnerHTML":lr=Kr;break;case"value":Wt=Kr;default:Le(E,ee,Te,Kr)}}if(Je!=null)if(z=Wt!==null?""+Wt:ht(Ct),se(Je)){for(ee=0;ee<Je.length;ee++)if(""+Je[ee]===z){E.push(mt);break}}else""+Je===z&&E.push(mt);else pr&&E.push(mt);return E.push($e),Ge(E,lr,Ct),Ct;case"textarea":E.push(vt("textarea")),lr=Je=Te=null;for(Ct in z)if(k.call(z,Ct)&&(Wt=z[Ct],Wt!=null))switch(Ct){case"children":lr=Wt;break;case"value":Te=Wt;break;case"defaultValue":Je=Wt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Le(E,ee,Ct,Wt)}if(Te===null&&Je!==null&&(Te=Je),E.push($e),lr!=null){if(Te!=null)throw Error(e(92));if(se(lr)&&1<lr.length)throw Error(e(93));Te=""+lr}return typeof Te=="string"&&Te[0]===`
76
76
  `&&E.push(He),Te!==null&&E.push(p(Z(""+Te))),null;case"input":E.push(vt("input")),Wt=lr=Ct=Te=null;for(Je in z)if(k.call(z,Je)&&(pr=z[Je],pr!=null))switch(Je){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Wt=pr;break;case"defaultValue":Ct=pr;break;case"checked":lr=pr;break;case"value":Te=pr;break;default:Le(E,ee,Je,pr)}return lr!==null?Le(E,ee,"checked",lr):Wt!==null&&Le(E,ee,"checked",Wt),Te!==null?Le(E,ee,"value",Te):Ct!==null&&Le(E,ee,"value",Ct),E.push(bt),null;case"menuitem":E.push(vt("menuitem"));for(var ni in z)if(k.call(z,ni)&&(Te=z[ni],Te!=null))switch(ni){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Le(E,ee,ni,Te)}return E.push($e),null;case"title":E.push(vt("title")),Te=null;for(Kr in z)if(k.call(z,Kr)&&(Je=z[Kr],Je!=null))switch(Kr){case"children":Te=Je;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Le(E,ee,Kr,Je)}return E.push($e),Te;case"listing":case"pre":E.push(vt(P)),Je=Te=null;for(Wt in z)if(k.call(z,Wt)&&(Ct=z[Wt],Ct!=null))switch(Wt){case"children":Te=Ct;break;case"dangerouslySetInnerHTML":Je=Ct;break;default:Le(E,ee,Wt,Ct)}if(E.push($e),Je!=null){if(Te!=null)throw Error(e(60));if(typeof Je!="object"||!("__html"in Je))throw Error(e(61));z=Je.__html,z!=null&&(typeof z=="string"&&0<z.length&&z[0]===`
77
77
  `?E.push(He,p(z)):E.push(p(""+z)))}return typeof Te=="string"&&Te[0]===`
78
- `&&E.push(He),Te;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":E.push(vt(P));for(var Ei in z)if(k.call(z,Ei)&&(Te=z[Ei],Te!=null))switch(Ei){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,P));default:Le(E,ee,Ei,Te)}return E.push(bt),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 Oe(E,z,P,ee);case"html":return Ie.insertionMode===0&&E.push(Tt),Oe(E,z,P,ee);default:if(P.indexOf("-")===-1&&typeof z.is!="string")return Oe(E,z,P,ee);E.push(vt(P)),Je=Te=null;for(pr in z)if(k.call(z,pr)&&(Ct=z[pr],Ct!=null))switch(pr){case"children":Te=Ct;break;case"dangerouslySetInnerHTML":Je=Ct;break;case"style":Ze(E,ee,Ct);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(pr)&&typeof Ct!="function"&&typeof Ct!="symbol"&&E.push(et,p(pr),xe,p(Z(Ct)),Se)}return E.push($e),Ge(E,Je,Te),Te}}var Ke=m("</"),xt=m(">"),jt=m('<template id="'),At=m('"></template>'),Be=m("<!--$-->"),Lt=m('<!--$?--><template id="'),Dt=m('"></template>'),dr=m("<!--$!-->"),Er=m("<!--/$-->"),Mr=m("<template"),_e=m('"'),te=m(' data-dgst="');m(' data-msg="'),m(' data-stck="');var tt=m("></template>");function ut(E,P,z){if(i(E,Lt),z===null)throw Error(e(395));return i(E,z),l(E,Dt)}var qt=m('<div hidden id="'),kt=m('">'),Mt=m("</div>"),tr=m('<svg aria-hidden="true" style="display:none" id="'),Xe=m('">'),rt=m("</svg>"),Rt=m('<math aria-hidden="true" style="display:none" id="'),Ht=m('">'),Ot=m("</math>"),Xt=m('<table hidden id="'),Or=m('">'),st=m("</table>"),St=m('<table hidden><tbody id="'),pt=m('">'),Bt=m("</tbody></table>"),gr=m('<table hidden><tr id="'),re=m('">'),Ue=m("</tr></table>"),Re=m('<table hidden><colgroup id="'),nt=m('">'),at=m("</colgroup></table>");function Et(E,P,z,ee){switch(z.insertionMode){case 0:case 1:return i(E,qt),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,kt);case 2:return i(E,tr),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,Xe);case 3:return i(E,Rt),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,Ht);case 4:return i(E,Xt),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,Or);case 5:return i(E,St),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,pt);case 6:return i(E,gr),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,re);case 7:return i(E,Re),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,nt);default:throw Error(e(397))}}function lt(E,P){switch(P.insertionMode){case 0:case 1:return l(E,Mt);case 2:return l(E,rt);case 3:return l(E,Ot);case 4:return l(E,st);case 5:return l(E,Bt);case 6:return l(E,Ue);case 7:return l(E,at);default:throw Error(e(397))}}var zt=m('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("'),ar=m('$RS("'),Zt=m('","'),ir=m('")<\/script>'),Sr=m('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("'),nr=m('$RC("'),Wr=m('","'),Gr=m('")<\/script>'),mn=m('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("'),Jr=m('$RX("'),Yn=m('"'),Rn=m(")<\/script>"),Xn=m(","),Jn=/[<\u2028\u2029]/g;function an(E){return JSON.stringify(E).replace(Jn,function(P){switch(P){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 Nn=Object.assign,Tn=Symbol.for("react.element"),gi=Symbol.for("react.portal"),Ci=Symbol.for("react.fragment"),wi=Symbol.for("react.strict_mode"),In=Symbol.for("react.profiler"),En=Symbol.for("react.provider"),hn=Symbol.for("react.context"),Qn=Symbol.for("react.forward_ref"),ln=Symbol.for("react.suspense"),vn=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),V=Symbol.for("react.scope"),Q=Symbol.for("react.debug_trace_mode"),Ee=Symbol.for("react.legacy_hidden"),we=Symbol.for("react.default_value"),je=Symbol.iterator;function ft(E){if(E==null)return null;if(typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case Ci:return"Fragment";case gi:return"Portal";case In:return"Profiler";case wi:return"StrictMode";case ln:return"Suspense";case vn:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case hn:return(E.displayName||"Context")+".Consumer";case En:return(E._context.displayName||"Context")+".Provider";case Qn:var P=E.render;return E=E.displayName,E||(E=P.displayName||P.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case A:return P=E.displayName||null,P!==null?P:ft(E.type)||"Memo";case N:P=E._payload,E=E._init;try{return ft(E(P))}catch{}}return null}var Pt={};function Ut(E,P){if(E=E.contextTypes,!E)return Pt;var z={},ee;for(ee in E)z[ee]=P[ee];return z}var $t=null;function _r(E,P){if(E!==P){E.context._currentValue=E.parentValue,E=E.parent;var z=P.parent;if(E===null){if(z!==null)throw Error(e(401))}else{if(z===null)throw Error(e(401));_r(E,z)}P.context._currentValue=P.value}}function Yr(E){E.context._currentValue=E.parentValue,E=E.parent,E!==null&&Yr(E)}function _n(E){var P=E.parent;P!==null&&_n(P),E.context._currentValue=E.value}function xn(E,P){if(E.context._currentValue=E.parentValue,E=E.parent,E===null)throw Error(e(402));E.depth===P.depth?_r(E,P):xn(E,P)}function ci(E,P){var z=P.parent;if(z===null)throw Error(e(402));E.depth===z.depth?_r(E,z):ci(E,z),P.context._currentValue=P.value}function Hn(E){var P=$t;P!==E&&(P===null?_n(E):E===null?Yr(P):P.depth===E.depth?_r(P,E):P.depth>E.depth?xn(P,E):ci(P,E),$t=E)}var Ai={isMounted:function(){return!1},enqueueSetState:function(E,P){E=E._reactInternals,E.queue!==null&&E.queue.push(P)},enqueueReplaceState:function(E,P){E=E._reactInternals,E.replace=!0,E.queue=[P]},enqueueForceUpdate:function(){}};function Qr(E,P,z,ee){var Ie=E.state!==void 0?E.state:null;E.updater=Ai,E.props=z,E.state=Ie;var Te={queue:[],replace:!1};E._reactInternals=Te;var Je=P.contextType;if(E.context=typeof Je=="object"&&Je!==null?Je._currentValue:ee,Je=P.getDerivedStateFromProps,typeof Je=="function"&&(Je=Je(z,Ie),Ie=Je==null?Ie:Nn({},Ie,Je),E.state=Ie),typeof P.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function"))if(P=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),P!==E.state&&Ai.enqueueReplaceState(E,E.state,null),Te.queue!==null&&0<Te.queue.length)if(P=Te.queue,Je=Te.replace,Te.queue=null,Te.replace=!1,Je&&P.length===1)E.state=P[0];else{for(Te=Je?P[0]:E.state,Ie=!0,Je=Je?1:0;Je<P.length;Je++){var Ct=P[Je];Ct=typeof Ct=="function"?Ct.call(E,Te,z,ee):Ct,Ct!=null&&(Ie?(Ie=!1,Te=Nn({},Te,Ct)):Nn(Te,Ct))}E.state=Te}else Te.queue=null}var mi={id:1,overflow:""};function zn(E,P,z){var ee=E.id;E=E.overflow;var Ie=32-ei(ee)-1;ee&=~(1<<Ie),z+=1;var Te=32-ei(P)+Ie;if(30<Te){var Je=Ie-Ie%5;return Te=(ee&(1<<Je)-1).toString(32),ee>>=Je,Ie-=Je,{id:1<<32-ei(P)+Ie|z<<Ie|ee,overflow:Te+E}}return{id:1<<Te|z<<Ie|ee,overflow:E}}var ei=Math.clz32?Math.clz32:oo,xo=Math.log,io=Math.LN2;function oo(E){return E>>>=0,E===0?32:31-(xo(E)/io|0)|0}function Ln(E,P){return E===P&&(E!==0||1/E===1/P)||E!==E&&P!==P}var So=typeof Object.is=="function"?Object.is:Ln,ti=null,ri=null,Wi=null,Pr=null,Cr=!1,Lr=!1,L=0,G=null,ce=0;function qe(){if(ti===null)throw Error(e(321));return ti}function Jt(){if(0<ce)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Vt(){return Pr===null?Wi===null?(Cr=!1,Wi=Pr=Jt()):(Cr=!0,Pr=Wi):Pr.next===null?(Cr=!1,Pr=Pr.next=Jt()):(Cr=!0,Pr=Pr.next),Pr}function mr(){ri=ti=null,Lr=!1,Wi=null,ce=0,Pr=G=null}function xr(E,P){return typeof P=="function"?P(E):P}function hr(E,P,z){if(ti=qe(),Pr=Vt(),Cr){var ee=Pr.queue;if(P=ee.dispatch,G!==null&&(z=G.get(ee),z!==void 0)){G.delete(ee),ee=Pr.memoizedState;do ee=E(ee,z.action),z=z.next;while(z!==null);return Pr.memoizedState=ee,[ee,P]}return[Pr.memoizedState,P]}return E=E===xr?typeof P=="function"?P():P:z!==void 0?z(P):P,Pr.memoizedState=E,E=Pr.queue={last:null,dispatch:null},E=E.dispatch=en.bind(null,ti,E),[Pr.memoizedState,E]}function wr(E,P){if(ti=qe(),Pr=Vt(),P=P===void 0?null:P,Pr!==null){var z=Pr.memoizedState;if(z!==null&&P!==null){var ee=z[1];e:if(ee===null)ee=!1;else{for(var Ie=0;Ie<ee.length&&Ie<P.length;Ie++)if(!So(P[Ie],ee[Ie])){ee=!1;break e}ee=!0}if(ee)return z[0]}}return E=E(),Pr.memoizedState=[E,P],E}function en(E,P,z){if(25<=ce)throw Error(e(301));if(E===ti)if(Lr=!0,E={action:z,next:null},G===null&&(G=new Map),z=G.get(P),z===void 0)G.set(P,E);else{for(P=z;P.next!==null;)P=P.next;P.next=E}}function Dn(){throw Error(e(394))}function Zr(){}var qr={readContext:function(E){return E._currentValue},useContext:function(E){return qe(),E._currentValue},useMemo:wr,useReducer:hr,useRef:function(E){ti=qe(),Pr=Vt();var P=Pr.memoizedState;return P===null?(E={current:E},Pr.memoizedState=E):P},useState:function(E){return hr(xr,E)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(E,P){return wr(function(){return E},P)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(E){return qe(),E},useTransition:function(){return qe(),[!1,Dn]},useId:function(){var E=ri.treeContext,P=E.overflow;E=E.id,E=(E&~(1<<32-ei(E)-1)).toString(32)+P;var z=tn;if(z===null)throw Error(e(404));return P=L++,E=":"+z.idPrefix+"R"+E,0<P&&(E+="H"+P.toString(32)),E+":"},useMutableSource:function(E,P){return qe(),P(E._source)},useSyncExternalStore:function(E,P,z){if(z===void 0)throw Error(e(407));return z()}},tn=null,ui=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function vi(E){return console.error(E),null}function $n(){}function Co(E,P,z,ee,Ie,Te,Je,Ct,Wt){var pr=[],lr=new Set;return P={destination:null,responseState:P,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:lr,pingedTasks:pr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ie===void 0?vi:Ie,onAllReady:Te===void 0?$n:Te,onShellReady:Je===void 0?$n:Je,onShellError:Ct===void 0?$n:Ct,onFatalError:Wt===void 0?$n:Wt},z=cn(P,0,null,z,!1,!1),z.parentFlushed=!0,E=Vi(P,E,null,z,lr,Pt,null,mi),pr.push(E),P}function Vi(E,P,z,ee,Ie,Te,Je,Ct){E.allPendingTasks++,z===null?E.pendingRootTasks++:z.pendingTasks++;var Wt={node:P,ping:function(){var pr=E.pingedTasks;pr.push(Wt),pr.length===1&&ml(E)},blockedBoundary:z,blockedSegment:ee,abortSet:Ie,legacyContext:Te,context:Je,treeContext:Ct};return Ie.add(Wt),Wt}function cn(E,P,z,ee,Ie,Te){return{status:0,id:-1,index:P,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:z,lastPushedText:Ie,textEmbedded:Te}}function ps(E,P){if(E=E.onError(P),E!=null&&typeof E!="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 E+'" instead');return E}function Un(E,P){var z=E.onShellError;z(P),z=E.onFatalError,z(P),E.destination!==null?(E.status=2,T(E.destination,P)):(E.status=1,E.fatalError=P)}function hl(E,P,z,ee,Ie){for(ti={},ri=P,L=0,E=z(ee,Ie);Lr;)Lr=!1,L=0,ce+=1,Pr=null,E=z(ee,Ie);return mr(),E}function ka(E,P,z,ee){var Ie=z.render(),Te=ee.childContextTypes;if(Te!=null){var Je=P.legacyContext;if(typeof z.getChildContext!="function")ee=Je;else{z=z.getChildContext();for(var Ct in z)if(!(Ct in Te))throw Error(e(108,ft(ee)||"Unknown",Ct));ee=Nn({},Je,z)}P.legacyContext=ee,Wn(E,P,Ie),P.legacyContext=Je}else Wn(E,P,Ie)}function Gi(E,P){if(E&&E.defaultProps){P=Nn({},P),E=E.defaultProps;for(var z in E)P[z]===void 0&&(P[z]=E[z]);return P}return P}function wo(E,P,z,ee,Ie){if(typeof z=="function")if(z.prototype&&z.prototype.isReactComponent){Ie=Ut(z,P.legacyContext);var Te=z.contextType;Te=new z(ee,typeof Te=="object"&&Te!==null?Te._currentValue:Ie),Qr(Te,z,ee,Ie),ka(E,P,Te,z)}else{Te=Ut(z,P.legacyContext),Ie=hl(E,P,z,ee,Te);var Je=L!==0;if(typeof Ie=="object"&&Ie!==null&&typeof Ie.render=="function"&&Ie.$$typeof===void 0)Qr(Ie,z,ee,Te),ka(E,P,Ie,z);else if(Je){ee=P.treeContext,P.treeContext=zn(ee,1,0);try{Wn(E,P,Ie)}finally{P.treeContext=ee}}else Wn(E,P,Ie)}else if(typeof z=="string"){switch(Ie=P.blockedSegment,Te=Pe(Ie.chunks,z,ee,E.responseState,Ie.formatContext),Ie.lastPushedText=!1,Je=Ie.formatContext,Ie.formatContext=le(Je,z,ee),Ti(E,P,Te),Ie.formatContext=Je,z){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:Ie.chunks.push(Ke,p(z),xt)}Ie.lastPushedText=!1}else{switch(z){case Ee:case Q:case wi:case In:case Ci:Wn(E,P,ee.children);return;case vn:Wn(E,P,ee.children);return;case V:throw Error(e(343));case ln:e:{z=P.blockedBoundary,Ie=P.blockedSegment,Te=ee.fallback,ee=ee.children,Je=new Set;var Ct={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Je,errorDigest:null},Wt=cn(E,Ie.chunks.length,Ct,Ie.formatContext,!1,!1);Ie.children.push(Wt),Ie.lastPushedText=!1;var pr=cn(E,0,null,Ie.formatContext,!1,!1);pr.parentFlushed=!0,P.blockedBoundary=Ct,P.blockedSegment=pr;try{if(Ti(E,P,ee),pr.lastPushedText&&pr.textEmbedded&&pr.chunks.push(fe),pr.status=1,Uo(Ct,pr),Ct.pendingTasks===0)break e}catch(lr){pr.status=4,Ct.forceClientRender=!0,Ct.errorDigest=ps(E,lr)}finally{P.blockedBoundary=z,P.blockedSegment=Ie}P=Vi(E,Te,z,Wt,Je,P.legacyContext,P.context,P.treeContext),E.pingedTasks.push(P)}return}if(typeof z=="object"&&z!==null)switch(z.$$typeof){case Qn:if(ee=hl(E,P,z.render,ee,Ie),L!==0){z=P.treeContext,P.treeContext=zn(z,1,0);try{Wn(E,P,ee)}finally{P.treeContext=z}}else Wn(E,P,ee);return;case A:z=z.type,ee=Gi(z,ee),wo(E,P,z,ee,Ie);return;case En:if(Ie=ee.children,z=z._context,ee=ee.value,Te=z._currentValue,z._currentValue=ee,Je=$t,$t=ee={parent:Je,depth:Je===null?0:Je.depth+1,context:z,parentValue:Te,value:ee},P.context=ee,Wn(E,P,Ie),E=$t,E===null)throw Error(e(403));ee=E.parentValue,E.context._currentValue=ee===we?E.context._defaultValue:ee,E=$t=E.parent,P.context=E;return;case hn:ee=ee.children,ee=ee(z._currentValue),Wn(E,P,ee);return;case N:Ie=z._init,z=Ie(z._payload),ee=Gi(z,ee),wo(E,P,z,ee,void 0);return}throw Error(e(130,z==null?z:typeof z,""))}}function Wn(E,P,z){if(P.node=z,typeof z=="object"&&z!==null){switch(z.$$typeof){case Tn:wo(E,P,z.type,z.props,z.ref);return;case gi:throw Error(e(257));case N:var ee=z._init;z=ee(z._payload),Wn(E,P,z);return}if(se(z)){Xr(E,P,z);return}if(z===null||typeof z!="object"?ee=null:(ee=je&&z[je]||z["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(z))){if(z=ee.next(),!z.done){var Ie=[];do Ie.push(z.value),z=ee.next();while(!z.done);Xr(E,P,Ie)}return}throw E=Object.prototype.toString.call(z),Error(e(31,E==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":E))}typeof z=="string"?(ee=P.blockedSegment,ee.lastPushedText=Me(P.blockedSegment.chunks,z,E.responseState,ee.lastPushedText)):typeof z=="number"&&(ee=P.blockedSegment,ee.lastPushedText=Me(P.blockedSegment.chunks,""+z,E.responseState,ee.lastPushedText))}function Xr(E,P,z){for(var ee=z.length,Ie=0;Ie<ee;Ie++){var Te=P.treeContext;P.treeContext=zn(Te,ee,Ie);try{Ti(E,P,z[Ie])}finally{P.treeContext=Te}}}function Ti(E,P,z){var ee=P.blockedSegment.formatContext,Ie=P.legacyContext,Te=P.context;try{return Wn(E,P,z)}catch(Wt){if(mr(),typeof Wt=="object"&&Wt!==null&&typeof Wt.then=="function"){z=Wt;var Je=P.blockedSegment,Ct=cn(E,Je.chunks.length,null,Je.formatContext,Je.lastPushedText,!0);Je.children.push(Ct),Je.lastPushedText=!1,E=Vi(E,P.node,P.blockedBoundary,Ct,P.abortSet,P.legacyContext,P.context,P.treeContext).ping,z.then(E,E),P.blockedSegment.formatContext=ee,P.legacyContext=Ie,P.context=Te,Hn(Te)}else throw P.blockedSegment.formatContext=ee,P.legacyContext=Ie,P.context=Te,Hn(Te),Wt}}function Ra(E){var P=E.blockedBoundary;E=E.blockedSegment,E.status=3,gl(this,P,E)}function pl(E,P,z){var ee=E.blockedBoundary;E.blockedSegment.status=3,ee===null?(P.allPendingTasks--,P.status!==2&&(P.status=2,P.destination!==null&&P.destination.close())):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,E=z===void 0?Error(e(432)):z,ee.errorDigest=P.onError(E),ee.parentFlushed&&P.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Ie){return pl(Ie,P,z)}),ee.fallbackAbortableTasks.clear(),P.allPendingTasks--,P.allPendingTasks===0&&(ee=P.onAllReady,ee()))}function Uo(E,P){if(P.chunks.length===0&&P.children.length===1&&P.children[0].boundary===null){var z=P.children[0];z.id=P.id,z.parentFlushed=!0,z.status===1&&Uo(E,z)}else E.completedSegments.push(P)}function gl(E,P,z){if(P===null){if(z.parentFlushed){if(E.completedRootSegment!==null)throw Error(e(389));E.completedRootSegment=z}E.pendingRootTasks--,E.pendingRootTasks===0&&(E.onShellError=$n,P=E.onShellReady,P())}else P.pendingTasks--,P.forceClientRender||(P.pendingTasks===0?(z.parentFlushed&&z.status===1&&Uo(P,z),P.parentFlushed&&E.completedBoundaries.push(P),P.fallbackAbortableTasks.forEach(Ra,E),P.fallbackAbortableTasks.clear()):z.parentFlushed&&z.status===1&&(Uo(P,z),P.completedSegments.length===1&&P.parentFlushed&&E.partialBoundaries.push(P)));E.allPendingTasks--,E.allPendingTasks===0&&(E=E.onAllReady,E())}function ml(E){if(E.status!==2){var P=$t,z=ui.current;ui.current=qr;var ee=tn;tn=E.responseState;try{var Ie=E.pingedTasks,Te;for(Te=0;Te<Ie.length;Te++){var Je=Ie[Te],Ct=E,Wt=Je.blockedSegment;if(Wt.status===0){Hn(Je.context);try{Wn(Ct,Je,Je.node),Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push(fe),Je.abortSet.delete(Je),Wt.status=1,gl(Ct,Je.blockedBoundary,Wt)}catch(ki){if(mr(),typeof ki=="object"&&ki!==null&&typeof ki.then=="function"){var pr=Je.ping;ki.then(pr,pr)}else{Je.abortSet.delete(Je),Wt.status=4;var lr=Je.blockedBoundary,Kr=ki,ni=ps(Ct,Kr);if(lr===null?Un(Ct,Kr):(lr.pendingTasks--,lr.forceClientRender||(lr.forceClientRender=!0,lr.errorDigest=ni,lr.parentFlushed&&Ct.clientRenderedBoundaries.push(lr))),Ct.allPendingTasks--,Ct.allPendingTasks===0){var Ei=Ct.onAllReady;Ei()}}}finally{}}}Ie.splice(0,Te),E.destination!==null&&Ys(E,E.destination)}catch(ki){ps(E,ki),Un(E,ki)}finally{tn=ee,ui.current=z,z===qr&&Hn(P)}}}function Ks(E,P,z){switch(z.parentFlushed=!0,z.status){case 0:var ee=z.id=E.nextSegmentId++;return z.lastPushedText=!1,z.textEmbedded=!1,E=E.responseState,i(P,jt),i(P,E.placeholderPrefix),E=p(ee.toString(16)),i(P,E),l(P,At);case 1:z.status=2;var Ie=!0;ee=z.chunks;var Te=0;z=z.children;for(var Je=0;Je<z.length;Je++){for(Ie=z[Je];Te<Ie.index;Te++)i(P,ee[Te]);Ie=gs(E,P,Ie)}for(;Te<ee.length-1;Te++)i(P,ee[Te]);return Te<ee.length&&(Ie=l(P,ee[Te])),Ie;default:throw Error(e(390))}}function gs(E,P,z){var ee=z.boundary;if(ee===null)return Ks(E,P,z);if(ee.parentFlushed=!0,ee.forceClientRender)ee=ee.errorDigest,l(P,dr),i(P,Mr),ee&&(i(P,te),i(P,p(Z(ee))),i(P,_e)),l(P,tt),Ks(E,P,z);else if(0<ee.pendingTasks){ee.rootSegmentID=E.nextSegmentId++,0<ee.completedSegments.length&&E.partialBoundaries.push(ee);var Ie=E.responseState,Te=Ie.nextSuspenseID++;Ie=m(Ie.boundaryPrefix+Te.toString(16)),ee=ee.id=Ie,ut(P,E.responseState,ee),Ks(E,P,z)}else if(ee.byteSize>E.progressiveChunkSize)ee.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(ee),ut(P,E.responseState,ee.id),Ks(E,P,z);else{if(l(P,Be),z=ee.completedSegments,z.length!==1)throw Error(e(391));gs(E,P,z[0])}return l(P,Er)}function ms(E,P,z){return Et(P,E.responseState,z.formatContext,z.id),gs(E,P,z),lt(P,z.formatContext)}function Ao(E,P,z){for(var ee=z.completedSegments,Ie=0;Ie<ee.length;Ie++)vl(E,P,z,ee[Ie]);if(ee.length=0,E=E.responseState,ee=z.id,z=z.rootSegmentID,i(P,E.startInlineScript),E.sentCompleteBoundaryFunction?i(P,nr):(E.sentCompleteBoundaryFunction=!0,i(P,Sr)),ee===null)throw Error(e(395));return z=p(z.toString(16)),i(P,ee),i(P,Wr),i(P,E.segmentPrefix),i(P,z),l(P,Gr)}function vl(E,P,z,ee){if(ee.status===2)return!0;var Ie=ee.id;if(Ie===-1){if((ee.id=z.rootSegmentID)===-1)throw Error(e(392));return ms(E,P,ee)}return ms(E,P,ee),E=E.responseState,i(P,E.startInlineScript),E.sentCompleteSegmentFunction?i(P,ar):(E.sentCompleteSegmentFunction=!0,i(P,zt)),i(P,E.segmentPrefix),Ie=p(Ie.toString(16)),i(P,Ie),i(P,Zt),i(P,E.placeholderPrefix),i(P,Ie),l(P,ir)}function Ys(E,P){t=new Uint8Array(512),n=0;try{var z=E.completedRootSegment;if(z!==null&&E.pendingRootTasks===0){gs(E,P,z),E.completedRootSegment=null;var ee=E.responseState.bootstrapChunks;for(z=0;z<ee.length-1;z++)i(P,ee[z]);z<ee.length&&l(P,ee[z])}var Ie=E.clientRenderedBoundaries,Te;for(Te=0;Te<Ie.length;Te++){var Je=Ie[Te];ee=P;var Ct=E.responseState,Wt=Je.id,pr=Je.errorDigest,lr=Je.errorMessage,Kr=Je.errorComponentStack;if(i(ee,Ct.startInlineScript),Ct.sentClientRenderFunction?i(ee,Jr):(Ct.sentClientRenderFunction=!0,i(ee,mn)),Wt===null)throw Error(e(395));i(ee,Wt),i(ee,Yn),(pr||lr||Kr)&&(i(ee,Xn),i(ee,p(an(pr||"")))),(lr||Kr)&&(i(ee,Xn),i(ee,p(an(lr||"")))),Kr&&(i(ee,Xn),i(ee,p(an(Kr)))),l(ee,Rn)}Ie.splice(0,Te);var ni=E.completedBoundaries;for(Te=0;Te<ni.length;Te++)Ao(E,P,ni[Te]);ni.splice(0,Te),u(P),t=new Uint8Array(512),n=0;var Ei=E.partialBoundaries;for(Te=0;Te<Ei.length;Te++){var ki=Ei[Te];e:{Ie=E,Je=P;var Xs=ki.completedSegments;for(Ct=0;Ct<Xs.length;Ct++)if(!vl(Ie,Je,ki,Xs[Ct])){Ct++,Xs.splice(0,Ct);var yl=!1;break e}Xs.splice(0,Ct),yl=!0}if(!yl){E.destination=null,Te++,Ei.splice(0,Te);return}}Ei.splice(0,Te);var vs=E.completedBoundaries;for(Te=0;Te<vs.length;Te++)Ao(E,P,vs[Te]);vs.splice(0,Te)}finally{u(P),E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&P.close()}}function Ia(E,P){try{var z=E.abortableTasks;z.forEach(function(ee){return pl(ee,E,P)}),z.clear(),E.destination!==null&&Ys(E,E.destination)}catch(ee){ps(E,ee),Un(E,ee)}}return Rd.renderToReadableStream=function(E,P){return new Promise(function(z,ee){var Ie,Te,Je=new Promise(function(lr,Kr){Te=lr,Ie=Kr}),Ct=Co(E,de(P?P.identifierPrefix:void 0,P?P.nonce:void 0,P?P.bootstrapScriptContent:void 0,P?P.bootstrapScripts:void 0,P?P.bootstrapModules:void 0),ue(P?P.namespaceURI:void 0),P?P.progressiveChunkSize:void 0,P?P.onError:void 0,Te,function(){var lr=new ReadableStream({type:"bytes",pull:function(Kr){if(Ct.status===1)Ct.status=2,T(Kr,Ct.fatalError);else if(Ct.status!==2&&Ct.destination===null){Ct.destination=Kr;try{Ys(Ct,Kr)}catch(ni){ps(Ct,ni),Un(Ct,ni)}}},cancel:function(){Ia(Ct)}},{highWaterMark:0});lr.allReady=Je,z(lr)},function(lr){Je.catch(function(){}),ee(lr)},Ie);if(P&&P.signal){var Wt=P.signal,pr=function(){Ia(Ct,Wt.reason),Wt.removeEventListener("abort",pr)};Wt.addEventListener("abort",pr)}ml(Ct)})},Rd.version="18.2.0",Rd}var Zc={};/**
78
+ `&&E.push(He),Te;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":E.push(vt(P));for(var Ei in z)if(k.call(z,Ei)&&(Te=z[Ei],Te!=null))switch(Ei){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,P));default:Le(E,ee,Ei,Te)}return E.push(bt),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 Oe(E,z,P,ee);case"html":return Ie.insertionMode===0&&E.push(Tt),Oe(E,z,P,ee);default:if(P.indexOf("-")===-1&&typeof z.is!="string")return Oe(E,z,P,ee);E.push(vt(P)),Je=Te=null;for(pr in z)if(k.call(z,pr)&&(Ct=z[pr],Ct!=null))switch(pr){case"children":Te=Ct;break;case"dangerouslySetInnerHTML":Je=Ct;break;case"style":Ze(E,ee,Ct);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(pr)&&typeof Ct!="function"&&typeof Ct!="symbol"&&E.push(et,p(pr),xe,p(Z(Ct)),Se)}return E.push($e),Ge(E,Je,Te),Te}}var Ke=m("</"),xt=m(">"),jt=m('<template id="'),At=m('"></template>'),Be=m("<!--$-->"),Lt=m('<!--$?--><template id="'),Dt=m('"></template>'),dr=m("<!--$!-->"),Er=m("<!--/$-->"),Mr=m("<template"),_e=m('"'),te=m(' data-dgst="');m(' data-msg="'),m(' data-stck="');var tt=m("></template>");function ut(E,P,z){if(i(E,Lt),z===null)throw Error(e(395));return i(E,z),l(E,Dt)}var qt=m('<div hidden id="'),kt=m('">'),Mt=m("</div>"),tr=m('<svg aria-hidden="true" style="display:none" id="'),Xe=m('">'),rt=m("</svg>"),Rt=m('<math aria-hidden="true" style="display:none" id="'),Ht=m('">'),Ot=m("</math>"),Xt=m('<table hidden id="'),Or=m('">'),st=m("</table>"),St=m('<table hidden><tbody id="'),pt=m('">'),Bt=m("</tbody></table>"),gr=m('<table hidden><tr id="'),re=m('">'),Ue=m("</tr></table>"),Re=m('<table hidden><colgroup id="'),nt=m('">'),at=m("</colgroup></table>");function Et(E,P,z,ee){switch(z.insertionMode){case 0:case 1:return i(E,qt),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,kt);case 2:return i(E,tr),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,Xe);case 3:return i(E,Rt),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,Ht);case 4:return i(E,Xt),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,Or);case 5:return i(E,St),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,pt);case 6:return i(E,gr),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,re);case 7:return i(E,Re),i(E,P.segmentPrefix),i(E,p(ee.toString(16))),l(E,nt);default:throw Error(e(397))}}function lt(E,P){switch(P.insertionMode){case 0:case 1:return l(E,Mt);case 2:return l(E,rt);case 3:return l(E,Ot);case 4:return l(E,st);case 5:return l(E,Bt);case 6:return l(E,Ue);case 7:return l(E,at);default:throw Error(e(397))}}var zt=m('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("'),ar=m('$RS("'),Zt=m('","'),ir=m('")<\/script>'),Sr=m('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("'),nr=m('$RC("'),Wr=m('","'),Gr=m('")<\/script>'),mn=m('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("'),Jr=m('$RX("'),Yn=m('"'),Rn=m(")<\/script>"),Xn=m(","),Jn=/[<\u2028\u2029]/g;function an(E){return JSON.stringify(E).replace(Jn,function(P){switch(P){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 Nn=Object.assign,Tn=Symbol.for("react.element"),gi=Symbol.for("react.portal"),Ci=Symbol.for("react.fragment"),wi=Symbol.for("react.strict_mode"),In=Symbol.for("react.profiler"),En=Symbol.for("react.provider"),hn=Symbol.for("react.context"),Qn=Symbol.for("react.forward_ref"),ln=Symbol.for("react.suspense"),vn=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),V=Symbol.for("react.scope"),Q=Symbol.for("react.debug_trace_mode"),Ee=Symbol.for("react.legacy_hidden"),we=Symbol.for("react.default_value"),je=Symbol.iterator;function ft(E){if(E==null)return null;if(typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case Ci:return"Fragment";case gi:return"Portal";case In:return"Profiler";case wi:return"StrictMode";case ln:return"Suspense";case vn:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case hn:return(E.displayName||"Context")+".Consumer";case En:return(E._context.displayName||"Context")+".Provider";case Qn:var P=E.render;return E=E.displayName,E||(E=P.displayName||P.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case A:return P=E.displayName||null,P!==null?P:ft(E.type)||"Memo";case F:P=E._payload,E=E._init;try{return ft(E(P))}catch{}}return null}var Pt={};function Ut(E,P){if(E=E.contextTypes,!E)return Pt;var z={},ee;for(ee in E)z[ee]=P[ee];return z}var $t=null;function _r(E,P){if(E!==P){E.context._currentValue=E.parentValue,E=E.parent;var z=P.parent;if(E===null){if(z!==null)throw Error(e(401))}else{if(z===null)throw Error(e(401));_r(E,z)}P.context._currentValue=P.value}}function Yr(E){E.context._currentValue=E.parentValue,E=E.parent,E!==null&&Yr(E)}function _n(E){var P=E.parent;P!==null&&_n(P),E.context._currentValue=E.value}function xn(E,P){if(E.context._currentValue=E.parentValue,E=E.parent,E===null)throw Error(e(402));E.depth===P.depth?_r(E,P):xn(E,P)}function ci(E,P){var z=P.parent;if(z===null)throw Error(e(402));E.depth===z.depth?_r(E,z):ci(E,z),P.context._currentValue=P.value}function Hn(E){var P=$t;P!==E&&(P===null?_n(E):E===null?Yr(P):P.depth===E.depth?_r(P,E):P.depth>E.depth?xn(P,E):ci(P,E),$t=E)}var Ai={isMounted:function(){return!1},enqueueSetState:function(E,P){E=E._reactInternals,E.queue!==null&&E.queue.push(P)},enqueueReplaceState:function(E,P){E=E._reactInternals,E.replace=!0,E.queue=[P]},enqueueForceUpdate:function(){}};function Qr(E,P,z,ee){var Ie=E.state!==void 0?E.state:null;E.updater=Ai,E.props=z,E.state=Ie;var Te={queue:[],replace:!1};E._reactInternals=Te;var Je=P.contextType;if(E.context=typeof Je=="object"&&Je!==null?Je._currentValue:ee,Je=P.getDerivedStateFromProps,typeof Je=="function"&&(Je=Je(z,Ie),Ie=Je==null?Ie:Nn({},Ie,Je),E.state=Ie),typeof P.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function"))if(P=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),P!==E.state&&Ai.enqueueReplaceState(E,E.state,null),Te.queue!==null&&0<Te.queue.length)if(P=Te.queue,Je=Te.replace,Te.queue=null,Te.replace=!1,Je&&P.length===1)E.state=P[0];else{for(Te=Je?P[0]:E.state,Ie=!0,Je=Je?1:0;Je<P.length;Je++){var Ct=P[Je];Ct=typeof Ct=="function"?Ct.call(E,Te,z,ee):Ct,Ct!=null&&(Ie?(Ie=!1,Te=Nn({},Te,Ct)):Nn(Te,Ct))}E.state=Te}else Te.queue=null}var mi={id:1,overflow:""};function zn(E,P,z){var ee=E.id;E=E.overflow;var Ie=32-ei(ee)-1;ee&=~(1<<Ie),z+=1;var Te=32-ei(P)+Ie;if(30<Te){var Je=Ie-Ie%5;return Te=(ee&(1<<Je)-1).toString(32),ee>>=Je,Ie-=Je,{id:1<<32-ei(P)+Ie|z<<Ie|ee,overflow:Te+E}}return{id:1<<Te|z<<Ie|ee,overflow:E}}var ei=Math.clz32?Math.clz32:oo,xo=Math.log,io=Math.LN2;function oo(E){return E>>>=0,E===0?32:31-(xo(E)/io|0)|0}function Ln(E,P){return E===P&&(E!==0||1/E===1/P)||E!==E&&P!==P}var So=typeof Object.is=="function"?Object.is:Ln,ti=null,ri=null,Wi=null,Pr=null,Cr=!1,Lr=!1,L=0,G=null,ce=0;function qe(){if(ti===null)throw Error(e(321));return ti}function Jt(){if(0<ce)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Vt(){return Pr===null?Wi===null?(Cr=!1,Wi=Pr=Jt()):(Cr=!0,Pr=Wi):Pr.next===null?(Cr=!1,Pr=Pr.next=Jt()):(Cr=!0,Pr=Pr.next),Pr}function mr(){ri=ti=null,Lr=!1,Wi=null,ce=0,Pr=G=null}function xr(E,P){return typeof P=="function"?P(E):P}function hr(E,P,z){if(ti=qe(),Pr=Vt(),Cr){var ee=Pr.queue;if(P=ee.dispatch,G!==null&&(z=G.get(ee),z!==void 0)){G.delete(ee),ee=Pr.memoizedState;do ee=E(ee,z.action),z=z.next;while(z!==null);return Pr.memoizedState=ee,[ee,P]}return[Pr.memoizedState,P]}return E=E===xr?typeof P=="function"?P():P:z!==void 0?z(P):P,Pr.memoizedState=E,E=Pr.queue={last:null,dispatch:null},E=E.dispatch=en.bind(null,ti,E),[Pr.memoizedState,E]}function wr(E,P){if(ti=qe(),Pr=Vt(),P=P===void 0?null:P,Pr!==null){var z=Pr.memoizedState;if(z!==null&&P!==null){var ee=z[1];e:if(ee===null)ee=!1;else{for(var Ie=0;Ie<ee.length&&Ie<P.length;Ie++)if(!So(P[Ie],ee[Ie])){ee=!1;break e}ee=!0}if(ee)return z[0]}}return E=E(),Pr.memoizedState=[E,P],E}function en(E,P,z){if(25<=ce)throw Error(e(301));if(E===ti)if(Lr=!0,E={action:z,next:null},G===null&&(G=new Map),z=G.get(P),z===void 0)G.set(P,E);else{for(P=z;P.next!==null;)P=P.next;P.next=E}}function Dn(){throw Error(e(394))}function Zr(){}var qr={readContext:function(E){return E._currentValue},useContext:function(E){return qe(),E._currentValue},useMemo:wr,useReducer:hr,useRef:function(E){ti=qe(),Pr=Vt();var P=Pr.memoizedState;return P===null?(E={current:E},Pr.memoizedState=E):P},useState:function(E){return hr(xr,E)},useInsertionEffect:Zr,useLayoutEffect:function(){},useCallback:function(E,P){return wr(function(){return E},P)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(E){return qe(),E},useTransition:function(){return qe(),[!1,Dn]},useId:function(){var E=ri.treeContext,P=E.overflow;E=E.id,E=(E&~(1<<32-ei(E)-1)).toString(32)+P;var z=tn;if(z===null)throw Error(e(404));return P=L++,E=":"+z.idPrefix+"R"+E,0<P&&(E+="H"+P.toString(32)),E+":"},useMutableSource:function(E,P){return qe(),P(E._source)},useSyncExternalStore:function(E,P,z){if(z===void 0)throw Error(e(407));return z()}},tn=null,ui=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function vi(E){return console.error(E),null}function $n(){}function Co(E,P,z,ee,Ie,Te,Je,Ct,Wt){var pr=[],lr=new Set;return P={destination:null,responseState:P,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:lr,pingedTasks:pr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ie===void 0?vi:Ie,onAllReady:Te===void 0?$n:Te,onShellReady:Je===void 0?$n:Je,onShellError:Ct===void 0?$n:Ct,onFatalError:Wt===void 0?$n:Wt},z=cn(P,0,null,z,!1,!1),z.parentFlushed=!0,E=Vi(P,E,null,z,lr,Pt,null,mi),pr.push(E),P}function Vi(E,P,z,ee,Ie,Te,Je,Ct){E.allPendingTasks++,z===null?E.pendingRootTasks++:z.pendingTasks++;var Wt={node:P,ping:function(){var pr=E.pingedTasks;pr.push(Wt),pr.length===1&&ml(E)},blockedBoundary:z,blockedSegment:ee,abortSet:Ie,legacyContext:Te,context:Je,treeContext:Ct};return Ie.add(Wt),Wt}function cn(E,P,z,ee,Ie,Te){return{status:0,id:-1,index:P,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:z,lastPushedText:Ie,textEmbedded:Te}}function ps(E,P){if(E=E.onError(P),E!=null&&typeof E!="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 E+'" instead');return E}function Un(E,P){var z=E.onShellError;z(P),z=E.onFatalError,z(P),E.destination!==null?(E.status=2,T(E.destination,P)):(E.status=1,E.fatalError=P)}function hl(E,P,z,ee,Ie){for(ti={},ri=P,L=0,E=z(ee,Ie);Lr;)Lr=!1,L=0,ce+=1,Pr=null,E=z(ee,Ie);return mr(),E}function ka(E,P,z,ee){var Ie=z.render(),Te=ee.childContextTypes;if(Te!=null){var Je=P.legacyContext;if(typeof z.getChildContext!="function")ee=Je;else{z=z.getChildContext();for(var Ct in z)if(!(Ct in Te))throw Error(e(108,ft(ee)||"Unknown",Ct));ee=Nn({},Je,z)}P.legacyContext=ee,Wn(E,P,Ie),P.legacyContext=Je}else Wn(E,P,Ie)}function Gi(E,P){if(E&&E.defaultProps){P=Nn({},P),E=E.defaultProps;for(var z in E)P[z]===void 0&&(P[z]=E[z]);return P}return P}function wo(E,P,z,ee,Ie){if(typeof z=="function")if(z.prototype&&z.prototype.isReactComponent){Ie=Ut(z,P.legacyContext);var Te=z.contextType;Te=new z(ee,typeof Te=="object"&&Te!==null?Te._currentValue:Ie),Qr(Te,z,ee,Ie),ka(E,P,Te,z)}else{Te=Ut(z,P.legacyContext),Ie=hl(E,P,z,ee,Te);var Je=L!==0;if(typeof Ie=="object"&&Ie!==null&&typeof Ie.render=="function"&&Ie.$$typeof===void 0)Qr(Ie,z,ee,Te),ka(E,P,Ie,z);else if(Je){ee=P.treeContext,P.treeContext=zn(ee,1,0);try{Wn(E,P,Ie)}finally{P.treeContext=ee}}else Wn(E,P,Ie)}else if(typeof z=="string"){switch(Ie=P.blockedSegment,Te=Pe(Ie.chunks,z,ee,E.responseState,Ie.formatContext),Ie.lastPushedText=!1,Je=Ie.formatContext,Ie.formatContext=le(Je,z,ee),Ti(E,P,Te),Ie.formatContext=Je,z){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:Ie.chunks.push(Ke,p(z),xt)}Ie.lastPushedText=!1}else{switch(z){case Ee:case Q:case wi:case In:case Ci:Wn(E,P,ee.children);return;case vn:Wn(E,P,ee.children);return;case V:throw Error(e(343));case ln:e:{z=P.blockedBoundary,Ie=P.blockedSegment,Te=ee.fallback,ee=ee.children,Je=new Set;var Ct={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Je,errorDigest:null},Wt=cn(E,Ie.chunks.length,Ct,Ie.formatContext,!1,!1);Ie.children.push(Wt),Ie.lastPushedText=!1;var pr=cn(E,0,null,Ie.formatContext,!1,!1);pr.parentFlushed=!0,P.blockedBoundary=Ct,P.blockedSegment=pr;try{if(Ti(E,P,ee),pr.lastPushedText&&pr.textEmbedded&&pr.chunks.push(fe),pr.status=1,Uo(Ct,pr),Ct.pendingTasks===0)break e}catch(lr){pr.status=4,Ct.forceClientRender=!0,Ct.errorDigest=ps(E,lr)}finally{P.blockedBoundary=z,P.blockedSegment=Ie}P=Vi(E,Te,z,Wt,Je,P.legacyContext,P.context,P.treeContext),E.pingedTasks.push(P)}return}if(typeof z=="object"&&z!==null)switch(z.$$typeof){case Qn:if(ee=hl(E,P,z.render,ee,Ie),L!==0){z=P.treeContext,P.treeContext=zn(z,1,0);try{Wn(E,P,ee)}finally{P.treeContext=z}}else Wn(E,P,ee);return;case A:z=z.type,ee=Gi(z,ee),wo(E,P,z,ee,Ie);return;case En:if(Ie=ee.children,z=z._context,ee=ee.value,Te=z._currentValue,z._currentValue=ee,Je=$t,$t=ee={parent:Je,depth:Je===null?0:Je.depth+1,context:z,parentValue:Te,value:ee},P.context=ee,Wn(E,P,Ie),E=$t,E===null)throw Error(e(403));ee=E.parentValue,E.context._currentValue=ee===we?E.context._defaultValue:ee,E=$t=E.parent,P.context=E;return;case hn:ee=ee.children,ee=ee(z._currentValue),Wn(E,P,ee);return;case F:Ie=z._init,z=Ie(z._payload),ee=Gi(z,ee),wo(E,P,z,ee,void 0);return}throw Error(e(130,z==null?z:typeof z,""))}}function Wn(E,P,z){if(P.node=z,typeof z=="object"&&z!==null){switch(z.$$typeof){case Tn:wo(E,P,z.type,z.props,z.ref);return;case gi:throw Error(e(257));case F:var ee=z._init;z=ee(z._payload),Wn(E,P,z);return}if(se(z)){Xr(E,P,z);return}if(z===null||typeof z!="object"?ee=null:(ee=je&&z[je]||z["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(z))){if(z=ee.next(),!z.done){var Ie=[];do Ie.push(z.value),z=ee.next();while(!z.done);Xr(E,P,Ie)}return}throw E=Object.prototype.toString.call(z),Error(e(31,E==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":E))}typeof z=="string"?(ee=P.blockedSegment,ee.lastPushedText=Me(P.blockedSegment.chunks,z,E.responseState,ee.lastPushedText)):typeof z=="number"&&(ee=P.blockedSegment,ee.lastPushedText=Me(P.blockedSegment.chunks,""+z,E.responseState,ee.lastPushedText))}function Xr(E,P,z){for(var ee=z.length,Ie=0;Ie<ee;Ie++){var Te=P.treeContext;P.treeContext=zn(Te,ee,Ie);try{Ti(E,P,z[Ie])}finally{P.treeContext=Te}}}function Ti(E,P,z){var ee=P.blockedSegment.formatContext,Ie=P.legacyContext,Te=P.context;try{return Wn(E,P,z)}catch(Wt){if(mr(),typeof Wt=="object"&&Wt!==null&&typeof Wt.then=="function"){z=Wt;var Je=P.blockedSegment,Ct=cn(E,Je.chunks.length,null,Je.formatContext,Je.lastPushedText,!0);Je.children.push(Ct),Je.lastPushedText=!1,E=Vi(E,P.node,P.blockedBoundary,Ct,P.abortSet,P.legacyContext,P.context,P.treeContext).ping,z.then(E,E),P.blockedSegment.formatContext=ee,P.legacyContext=Ie,P.context=Te,Hn(Te)}else throw P.blockedSegment.formatContext=ee,P.legacyContext=Ie,P.context=Te,Hn(Te),Wt}}function Ra(E){var P=E.blockedBoundary;E=E.blockedSegment,E.status=3,gl(this,P,E)}function pl(E,P,z){var ee=E.blockedBoundary;E.blockedSegment.status=3,ee===null?(P.allPendingTasks--,P.status!==2&&(P.status=2,P.destination!==null&&P.destination.close())):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,E=z===void 0?Error(e(432)):z,ee.errorDigest=P.onError(E),ee.parentFlushed&&P.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Ie){return pl(Ie,P,z)}),ee.fallbackAbortableTasks.clear(),P.allPendingTasks--,P.allPendingTasks===0&&(ee=P.onAllReady,ee()))}function Uo(E,P){if(P.chunks.length===0&&P.children.length===1&&P.children[0].boundary===null){var z=P.children[0];z.id=P.id,z.parentFlushed=!0,z.status===1&&Uo(E,z)}else E.completedSegments.push(P)}function gl(E,P,z){if(P===null){if(z.parentFlushed){if(E.completedRootSegment!==null)throw Error(e(389));E.completedRootSegment=z}E.pendingRootTasks--,E.pendingRootTasks===0&&(E.onShellError=$n,P=E.onShellReady,P())}else P.pendingTasks--,P.forceClientRender||(P.pendingTasks===0?(z.parentFlushed&&z.status===1&&Uo(P,z),P.parentFlushed&&E.completedBoundaries.push(P),P.fallbackAbortableTasks.forEach(Ra,E),P.fallbackAbortableTasks.clear()):z.parentFlushed&&z.status===1&&(Uo(P,z),P.completedSegments.length===1&&P.parentFlushed&&E.partialBoundaries.push(P)));E.allPendingTasks--,E.allPendingTasks===0&&(E=E.onAllReady,E())}function ml(E){if(E.status!==2){var P=$t,z=ui.current;ui.current=qr;var ee=tn;tn=E.responseState;try{var Ie=E.pingedTasks,Te;for(Te=0;Te<Ie.length;Te++){var Je=Ie[Te],Ct=E,Wt=Je.blockedSegment;if(Wt.status===0){Hn(Je.context);try{Wn(Ct,Je,Je.node),Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push(fe),Je.abortSet.delete(Je),Wt.status=1,gl(Ct,Je.blockedBoundary,Wt)}catch(ki){if(mr(),typeof ki=="object"&&ki!==null&&typeof ki.then=="function"){var pr=Je.ping;ki.then(pr,pr)}else{Je.abortSet.delete(Je),Wt.status=4;var lr=Je.blockedBoundary,Kr=ki,ni=ps(Ct,Kr);if(lr===null?Un(Ct,Kr):(lr.pendingTasks--,lr.forceClientRender||(lr.forceClientRender=!0,lr.errorDigest=ni,lr.parentFlushed&&Ct.clientRenderedBoundaries.push(lr))),Ct.allPendingTasks--,Ct.allPendingTasks===0){var Ei=Ct.onAllReady;Ei()}}}finally{}}}Ie.splice(0,Te),E.destination!==null&&Ys(E,E.destination)}catch(ki){ps(E,ki),Un(E,ki)}finally{tn=ee,ui.current=z,z===qr&&Hn(P)}}}function Ks(E,P,z){switch(z.parentFlushed=!0,z.status){case 0:var ee=z.id=E.nextSegmentId++;return z.lastPushedText=!1,z.textEmbedded=!1,E=E.responseState,i(P,jt),i(P,E.placeholderPrefix),E=p(ee.toString(16)),i(P,E),l(P,At);case 1:z.status=2;var Ie=!0;ee=z.chunks;var Te=0;z=z.children;for(var Je=0;Je<z.length;Je++){for(Ie=z[Je];Te<Ie.index;Te++)i(P,ee[Te]);Ie=gs(E,P,Ie)}for(;Te<ee.length-1;Te++)i(P,ee[Te]);return Te<ee.length&&(Ie=l(P,ee[Te])),Ie;default:throw Error(e(390))}}function gs(E,P,z){var ee=z.boundary;if(ee===null)return Ks(E,P,z);if(ee.parentFlushed=!0,ee.forceClientRender)ee=ee.errorDigest,l(P,dr),i(P,Mr),ee&&(i(P,te),i(P,p(Z(ee))),i(P,_e)),l(P,tt),Ks(E,P,z);else if(0<ee.pendingTasks){ee.rootSegmentID=E.nextSegmentId++,0<ee.completedSegments.length&&E.partialBoundaries.push(ee);var Ie=E.responseState,Te=Ie.nextSuspenseID++;Ie=m(Ie.boundaryPrefix+Te.toString(16)),ee=ee.id=Ie,ut(P,E.responseState,ee),Ks(E,P,z)}else if(ee.byteSize>E.progressiveChunkSize)ee.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(ee),ut(P,E.responseState,ee.id),Ks(E,P,z);else{if(l(P,Be),z=ee.completedSegments,z.length!==1)throw Error(e(391));gs(E,P,z[0])}return l(P,Er)}function ms(E,P,z){return Et(P,E.responseState,z.formatContext,z.id),gs(E,P,z),lt(P,z.formatContext)}function Ao(E,P,z){for(var ee=z.completedSegments,Ie=0;Ie<ee.length;Ie++)vl(E,P,z,ee[Ie]);if(ee.length=0,E=E.responseState,ee=z.id,z=z.rootSegmentID,i(P,E.startInlineScript),E.sentCompleteBoundaryFunction?i(P,nr):(E.sentCompleteBoundaryFunction=!0,i(P,Sr)),ee===null)throw Error(e(395));return z=p(z.toString(16)),i(P,ee),i(P,Wr),i(P,E.segmentPrefix),i(P,z),l(P,Gr)}function vl(E,P,z,ee){if(ee.status===2)return!0;var Ie=ee.id;if(Ie===-1){if((ee.id=z.rootSegmentID)===-1)throw Error(e(392));return ms(E,P,ee)}return ms(E,P,ee),E=E.responseState,i(P,E.startInlineScript),E.sentCompleteSegmentFunction?i(P,ar):(E.sentCompleteSegmentFunction=!0,i(P,zt)),i(P,E.segmentPrefix),Ie=p(Ie.toString(16)),i(P,Ie),i(P,Zt),i(P,E.placeholderPrefix),i(P,Ie),l(P,ir)}function Ys(E,P){t=new Uint8Array(512),n=0;try{var z=E.completedRootSegment;if(z!==null&&E.pendingRootTasks===0){gs(E,P,z),E.completedRootSegment=null;var ee=E.responseState.bootstrapChunks;for(z=0;z<ee.length-1;z++)i(P,ee[z]);z<ee.length&&l(P,ee[z])}var Ie=E.clientRenderedBoundaries,Te;for(Te=0;Te<Ie.length;Te++){var Je=Ie[Te];ee=P;var Ct=E.responseState,Wt=Je.id,pr=Je.errorDigest,lr=Je.errorMessage,Kr=Je.errorComponentStack;if(i(ee,Ct.startInlineScript),Ct.sentClientRenderFunction?i(ee,Jr):(Ct.sentClientRenderFunction=!0,i(ee,mn)),Wt===null)throw Error(e(395));i(ee,Wt),i(ee,Yn),(pr||lr||Kr)&&(i(ee,Xn),i(ee,p(an(pr||"")))),(lr||Kr)&&(i(ee,Xn),i(ee,p(an(lr||"")))),Kr&&(i(ee,Xn),i(ee,p(an(Kr)))),l(ee,Rn)}Ie.splice(0,Te);var ni=E.completedBoundaries;for(Te=0;Te<ni.length;Te++)Ao(E,P,ni[Te]);ni.splice(0,Te),u(P),t=new Uint8Array(512),n=0;var Ei=E.partialBoundaries;for(Te=0;Te<Ei.length;Te++){var ki=Ei[Te];e:{Ie=E,Je=P;var Xs=ki.completedSegments;for(Ct=0;Ct<Xs.length;Ct++)if(!vl(Ie,Je,ki,Xs[Ct])){Ct++,Xs.splice(0,Ct);var yl=!1;break e}Xs.splice(0,Ct),yl=!0}if(!yl){E.destination=null,Te++,Ei.splice(0,Te);return}}Ei.splice(0,Te);var vs=E.completedBoundaries;for(Te=0;Te<vs.length;Te++)Ao(E,P,vs[Te]);vs.splice(0,Te)}finally{u(P),E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&P.close()}}function Ia(E,P){try{var z=E.abortableTasks;z.forEach(function(ee){return pl(ee,E,P)}),z.clear(),E.destination!==null&&Ys(E,E.destination)}catch(ee){ps(E,ee),Un(E,ee)}}return Rd.renderToReadableStream=function(E,P){return new Promise(function(z,ee){var Ie,Te,Je=new Promise(function(lr,Kr){Te=lr,Ie=Kr}),Ct=Co(E,de(P?P.identifierPrefix:void 0,P?P.nonce:void 0,P?P.bootstrapScriptContent:void 0,P?P.bootstrapScripts:void 0,P?P.bootstrapModules:void 0),ue(P?P.namespaceURI:void 0),P?P.progressiveChunkSize:void 0,P?P.onError:void 0,Te,function(){var lr=new ReadableStream({type:"bytes",pull:function(Kr){if(Ct.status===1)Ct.status=2,T(Kr,Ct.fatalError);else if(Ct.status!==2&&Ct.destination===null){Ct.destination=Kr;try{Ys(Ct,Kr)}catch(ni){ps(Ct,ni),Un(Ct,ni)}}},cancel:function(){Ia(Ct)}},{highWaterMark:0});lr.allReady=Je,z(lr)},function(lr){Je.catch(function(){}),ee(lr)},Ie);if(P&&P.signal){var Wt=P.signal,pr=function(){Ia(Ct,Wt.reason),Wt.removeEventListener("abort",pr)};Wt.addEventListener("abort",pr)}ml(Ct)})},Rd.version="18.2.0",Rd}var Zc={};/**
79
79
  * @license React
80
80
  * react-dom-server-legacy.browser.development.js
81
81
  *
@@ -83,10 +83,10 @@ function print() { __p += __j.call(arguments, '') }
83
83
  *
84
84
  * This source code is licensed under the MIT license found in the
85
85
  * LICENSE file in the root directory of this source tree.
86
- */var e0;function w5(){return e0||(e0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("warn",s,h)}}function i(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("error",s,h)}}function l(s,c,h){{var y=t.ReactDebugCurrentFrame,M=y.getStackAddendum();M!==""&&(c+="%s",h=h.concat([M]));var B=h.map(function(W){return String(W)});B.unshift("Warning: "+c),Function.prototype.apply.call(console[s],console,B)}}function u(s){s()}function f(s){}function p(s,c){m(s,c)}function m(s,c){return s.push(c)}function T(s){}function k(s){s.push(null)}function b(s){return s}function x(s){return s}function _(s,c){s.destroy(c)}function I(s){{var c=typeof Symbol=="function"&&Symbol.toStringTag,h=c&&s[Symbol.toStringTag]||s.constructor.name||"Object";return h}}function w(s){try{return C(s),!1}catch{return!0}}function C(s){return""+s}function D(s,c){if(w(s))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",c,I(s)),C(s)}function O(s,c){if(w(s))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",c,I(s)),C(s)}function F(s){if(w(s))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",I(s)),C(s)}var j=Object.prototype.hasOwnProperty,$=0,Z=1,ie=2,Y=3,se=4,q=5,J=6,X=":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=X+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("^["+X+"]["+ne+"]*$"),me={},ve={};function de(s){return j.call(ve,s)?!0:j.call(me,s)?!1:ge.test(s)?(ve[s]=!0,!0):(me[s]=!0,i("Invalid attribute name: `%s`",s),!1)}function De(s,c,h,y){if(h!==null&&h.type===$)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var M=s.toLowerCase().slice(0,5);return M!=="data-"&&M!=="aria-"}default:return!1}}function ue(s){return fe.hasOwnProperty(s)?fe[s]:null}function le(s,c,h,y,M,B,W){this.acceptsBooleans=c===ie||c===Y||c===se,this.attributeName=y,this.attributeNamespace=M,this.mustUseProperty=h,this.propertyName=s,this.type=c,this.sanitizeURL=B,this.removeEmptyString=W}var fe={},Me=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Me.forEach(function(s){fe[s]=new le(s,$,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0],h=s[1];fe[c]=new le(c,Z,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){fe[s]=new le(s,ie,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){fe[s]=new le(s,ie,!1,s,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(s){fe[s]=new le(s,Y,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){fe[s]=new le(s,Y,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){fe[s]=new le(s,se,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){fe[s]=new le(s,J,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){fe[s]=new le(s,q,!1,s.toLowerCase(),null,!1,!1)});var Ve=/[\-\:]([a-z])/g,pe=function(s){return s[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(s){var c=s.replace(Ve,pe);fe[c]=new le(c,Z,!1,s,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(s){var c=s.replace(Ve,pe);fe[c]=new le(c,Z,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(Ve,pe);fe[c]=new le(c,Z,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){fe[s]=new le(s,Z,!1,s.toLowerCase(),null,!1,!1)});var ke="xlinkHref";fe[ke]=new le("xlinkHref",Z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){fe[s]=new le(s,Z,!1,s.toLowerCase(),null,!0,!0)});var ze={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 Ze(s,c){return s+c.charAt(0).toUpperCase()+c.substring(1)}var et=["Webkit","ms","Moz","O"];Object.keys(ze).forEach(function(s){et.forEach(function(c){ze[Ze(c,s)]=ze[s]})});var xe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Se(s,c){xe[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||i("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`."),c.onChange||c.readOnly||c.disabled||c.checked==null||i("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 be(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Le={"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},$e={},bt=new RegExp("^(aria)-["+ne+"]*$"),Ge=new RegExp("^(aria)[A-Z]["+ne+"]*$");function ht(s,c){{if(j.call($e,c)&&$e[c])return!0;if(Ge.test(c)){var h="aria-"+c.slice(4).toLowerCase(),y=Le.hasOwnProperty(h)?h:null;if(y==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),$e[c]=!0,!0;if(c!==y)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,y),$e[c]=!0,!0}if(bt.test(c)){var M=c.toLowerCase(),B=Le.hasOwnProperty(M)?M:null;if(B==null)return $e[c]=!0,!1;if(c!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,B),$e[c]=!0,!0}}return!0}function mt(s,c){{var h=[];for(var y in c){var M=ht(s,y);M||h.push(y)}var B=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,s):h.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,s)}}function Oe(s,c){be(s,c)||mt(s,c)}var He=!1;function wt(s,c){{if(s!=="input"&&s!=="textarea"&&s!=="select")return;c!=null&&c.value===null&&!He&&(He=!0,s==="select"&&c.multiple?i("`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.",s):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s))}}var _t={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vt=function(){};{var Tt={},Pe=/^on./,Ke=/^on[^A-Z]/,xt=new RegExp("^(aria)-["+ne+"]*$"),jt=new RegExp("^(aria)[A-Z]["+ne+"]*$");vt=function(s,c,h,y){if(j.call(Tt,c)&&Tt[c])return!0;var M=c.toLowerCase();if(M==="onfocusin"||M==="onfocusout")return i("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."),Tt[c]=!0,!0;if(y!=null){var B=y.registrationNameDependencies,W=y.possibleRegistrationNames;if(B.hasOwnProperty(c))return!0;var oe=W.hasOwnProperty(M)?W[M]:null;if(oe!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",c,oe),Tt[c]=!0,!0;if(Pe.test(c))return i("Unknown event handler property `%s`. It will be ignored.",c),Tt[c]=!0,!0}else if(Pe.test(c))return Ke.test(c)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),Tt[c]=!0,!0;if(xt.test(c)||jt.test(c))return!0;if(M==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Tt[c]=!0,!0;if(M==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Tt[c]=!0,!0;if(M==="is"&&h!==null&&h!==void 0&&typeof h!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),Tt[c]=!0,!0;if(typeof h=="number"&&isNaN(h))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),Tt[c]=!0,!0;var Ae=ue(c),Qe=Ae!==null&&Ae.type===$;if(_t.hasOwnProperty(M)){var dt=_t[M];if(dt!==c)return i("Invalid DOM property `%s`. Did you mean `%s`?",c,dt),Tt[c]=!0,!0}else if(!Qe&&c!==M)return i("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.",c,M),Tt[c]=!0,!0;return typeof h=="boolean"&&De(c,h,Ae)?(h?i('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,c,c,h,c):i('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,c,c,h,c,c,c),Tt[c]=!0,!0):Qe?!0:De(c,h,Ae)?(Tt[c]=!0,!1):((h==="false"||h==="true")&&Ae!==null&&Ae.type===Y&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,c,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".',c,h),Tt[c]=!0),!0)}}var At=function(s,c,h){{var y=[];for(var M in c){var B=vt(s,M,c[M],h);B||y.push(M)}var W=y.map(function(oe){return"`"+oe+"`"}).join(", ");y.length===1?i("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 ",W,s):y.length>1&&i("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 ",W,s)}};function Be(s,c,h){be(s,c)||At(s,c,h)}var Lt=function(){};{var Dt=/^(?:webkit|moz|o)[A-Z]/,dr=/^-ms-/,Er=/-(.)/g,Mr=/;\s*$/,_e={},te={},tt=!1,ut=!1,qt=function(s){return s.replace(Er,function(c,h){return h.toUpperCase()})},kt=function(s){_e.hasOwnProperty(s)&&_e[s]||(_e[s]=!0,i("Unsupported style property %s. Did you mean %s?",s,qt(s.replace(dr,"ms-"))))},Mt=function(s){_e.hasOwnProperty(s)&&_e[s]||(_e[s]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1)))},tr=function(s,c){te.hasOwnProperty(c)&&te[c]||(te[c]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(Mr,"")))},Xe=function(s,c){tt||(tt=!0,i("`NaN` is an invalid value for the `%s` css style property.",s))},rt=function(s,c){ut||(ut=!0,i("`Infinity` is an invalid value for the `%s` css style property.",s))};Lt=function(s,c){s.indexOf("-")>-1?kt(s):Dt.test(s)?Mt(s):Mr.test(c)&&tr(s,c),typeof c=="number"&&(isNaN(c)?Xe(s,c):isFinite(c)||rt(s,c))}}var Rt=Lt,Ht=/["'&<>]/;function Ot(s){F(s);var c=""+s,h=Ht.exec(c);if(!h)return c;var y,M="",B,W=0;for(B=h.index;B<c.length;B++){switch(c.charCodeAt(B)){case 34:y="&quot;";break;case 38:y="&amp;";break;case 39:y="&#x27;";break;case 60:y="&lt;";break;case 62:y="&gt;";break;default:continue}W!==B&&(M+=c.substring(W,B)),W=B+1,M+=y}return W!==B?M+c.substring(W,B):M}function Xt(s){return typeof s=="boolean"||typeof s=="number"?""+s:Ot(s)}var Or=/([A-Z])/g,st=/^ms-/;function St(s){return s.replace(Or,"-$1").toLowerCase().replace(st,"-ms-")}var pt=/^[\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,Bt=!1;function gr(s){!Bt&&pt.test(s)&&(Bt=!0,i("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(s)))}var re=Array.isArray;function Ue(s){return re(s)}var Re="<script>";function nt(s,c,h,y,M){var B=s===void 0?"":s,W=Re,oe=[];return{bootstrapChunks:oe,startInlineScript:W,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var at=0,Et=1,lt=2,zt=3,ar=4,Zt=5,ir=6,Sr=7;function nr(s,c){return{insertionMode:s,selectedValue:c}}function Wr(s,c,h){switch(c){case"select":return nr(Et,h.value!=null?h.value:h.defaultValue);case"svg":return nr(lt,null);case"math":return nr(zt,null);case"foreignObject":return nr(Et,null);case"table":return nr(ar,null);case"thead":case"tbody":case"tfoot":return nr(Zt,null);case"colgroup":return nr(Sr,null);case"tr":return nr(ir,null)}return s.insertionMode>=ar||s.insertionMode===at?nr(Et,null):s}var Gr=null;function mn(s){var c=s.nextSuspenseID++;return s.boundaryPrefix+c.toString(16)}function Jr(s,c,h){var y=s.idPrefix,M=":"+y+"R"+c;return h>0&&(M+="H"+h.toString(32)),M+":"}function Yn(s){return Xt(s)}var Rn="<!-- -->";function Xn(s,c,h,y){return c===""?y:(y&&s.push(Rn),s.push(Yn(c)),!0)}function Jn(s,c,h,y){h&&y&&s.push(Rn)}var an=new Map;function Nn(s){var c=an.get(s);if(c!==void 0)return c;var h=Xt(St(s));return an.set(s,h),h}var Tn=' style="',gi=":",Ci=";";function wi(s,c,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 y=!0;for(var M in h)if(j.call(h,M)){var B=h[M];if(!(B==null||typeof B=="boolean"||B==="")){var W=void 0,oe=void 0,Ae=M.indexOf("--")===0;Ae?(W=Xt(M),O(B,M),oe=Xt((""+B).trim())):(Rt(M,B),W=Nn(M),typeof B=="number"?B!==0&&!j.call(ze,M)?oe=B+"px":oe=""+B:(O(B,M),oe=Xt((""+B).trim()))),y?(y=!1,s.push(Tn,W,gi,oe)):s.push(Ci,W,gi,oe)}}y||s.push(hn)}var In=" ",En='="',hn='"',Qn='=""';function ln(s,c,h,y){switch(h){case"style":{wi(s,c,y);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 M=ue(h);if(M!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}var B=M.attributeName,W=B;switch(M.type){case Y:y&&s.push(In,W,Qn);return;case se:y===!0?s.push(In,W,Qn):y===!1||s.push(In,W,En,Xt(y),hn);return;case q:isNaN(y)||s.push(In,W,En,Xt(y),hn);break;case J:!isNaN(y)&&y>=1&&s.push(In,W,En,Xt(y),hn);break;default:M.sanitizeURL&&(D(y,B),y=""+y,gr(y)),s.push(In,W,En,Xt(y),hn)}}else if(de(h)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var oe=h.toLowerCase().slice(0,5);if(oe!=="data-"&&oe!=="aria-")return}}s.push(In,h,En,Xt(y),hn)}}}var vn=">",A="/>";function N(s,c,h){if(c!=null){if(h!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof c!="object"||!("__html"in c))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=c.__html;y!=null&&(F(y),s.push(""+y))}}var V=!1,Q=!1,Ee=!1,we=!1,je=!1,ft=!1,Pt=!1;function Ut(s,c){{var h=s[c];if(h!=null){var y=Ue(h);s.multiple&&!y?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",c):!s.multiple&&y&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",c)}}}function $t(s,c,h){Se("select",c),Ut(c,"value"),Ut(c,"defaultValue"),c.value!==void 0&&c.defaultValue!==void 0&&!Ee&&(i("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"),Ee=!0),s.push(Ln("select"));var y=null,M=null;for(var B in c)if(j.call(c,B)){var W=c[B];if(W==null)continue;switch(B){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;case"defaultValue":case"value":break;default:ln(s,h,B,W);break}}return s.push(vn),N(s,M,y),y}function _r(s){var c="";return r.Children.forEach(s,function(h){h!=null&&(c+=h,!je&&typeof h!="string"&&typeof h!="number"&&(je=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),c}var Yr=' selected=""';function _n(s,c,h,y){var M=y.selectedValue;s.push(Ln("option"));var B=null,W=null,oe=null,Ae=null;for(var Qe in c)if(j.call(c,Qe)){var dt=c[Qe];if(dt==null)continue;switch(Qe){case"children":B=dt;break;case"selected":oe=dt,Pt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0);break;case"dangerouslySetInnerHTML":Ae=dt;break;case"value":W=dt;default:ln(s,h,Qe,dt);break}}if(M!=null){var It;if(W!==null?(D(W,"value"),It=""+W):(Ae!==null&&(ft||(ft=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),It=_r(B)),Ue(M))for(var or=0;or<M.length;or++){D(M[or],"value");var Dr=""+M[or];if(Dr===It){s.push(Yr);break}}else D(M,"select.value"),""+M===It&&s.push(Yr)}else oe&&s.push(Yr);return s.push(vn),N(s,Ae,B),B}function xn(s,c,h){Se("input",c),c.checked!==void 0&&c.defaultChecked!==void 0&&!Q&&(i("%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",c.type),Q=!0),c.value!==void 0&&c.defaultValue!==void 0&&!V&&(i("%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",c.type),V=!0),s.push(Ln("input"));var y=null,M=null,B=null,W=null;for(var oe in c)if(j.call(c,oe)){var Ae=c[oe];if(Ae==null)continue;switch(oe){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":W=Ae;break;case"defaultValue":M=Ae;break;case"checked":B=Ae;break;case"value":y=Ae;break;default:ln(s,h,oe,Ae);break}}return B!==null?ln(s,h,"checked",B):W!==null&&ln(s,h,"checked",W),y!==null?ln(s,h,"value",y):M!==null&&ln(s,h,"value",M),s.push(A),null}function ci(s,c,h){Se("textarea",c),c.value!==void 0&&c.defaultValue!==void 0&&!we&&(i("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"),we=!0),s.push(Ln("textarea"));var y=null,M=null,B=null;for(var W in c)if(j.call(c,W)){var oe=c[W];if(oe==null)continue;switch(W){case"children":B=oe;break;case"value":y=oe;break;case"defaultValue":M=oe;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ln(s,h,W,oe);break}}if(y===null&&M!==null&&(y=M),s.push(vn),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ue(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");F(B[0]),y=""+B[0]}F(B),y=""+B}return typeof y=="string"&&y[0]===`
87
- `&&s.push(ei),y!==null&&(D(y,"value"),s.push(Yn(""+y))),null}function Hn(s,c,h,y){s.push(Ln(h));for(var M in c)if(j.call(c,M)){var B=c[M];if(B==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ln(s,y,M,B);break}}return s.push(A),null}function Ai(s,c,h){s.push(Ln("menuitem"));for(var y in c)if(j.call(c,y)){var M=c[y];if(M==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ln(s,h,y,M);break}}return s.push(vn),null}function Qr(s,c,h){s.push(Ln("title"));var y=null;for(var M in c)if(j.call(c,M)){var B=c[M];if(B==null)continue;switch(M){case"children":y=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ln(s,h,M,B);break}}s.push(vn);{var W=Array.isArray(y)&&y.length<2?y[0]||null:y;Array.isArray(y)&&y.length>1?i("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"):W!=null&&W.$$typeof!=null?i("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"):W!=null&&typeof W!="string"&&typeof W!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return y}function mi(s,c,h,y){s.push(Ln(h));var M=null,B=null;for(var W in c)if(j.call(c,W)){var oe=c[W];if(oe==null)continue;switch(W){case"children":M=oe;break;case"dangerouslySetInnerHTML":B=oe;break;default:ln(s,y,W,oe);break}}return s.push(vn),N(s,B,M),typeof M=="string"?(s.push(Yn(M)),null):M}function zn(s,c,h,y){s.push(Ln(h));var M=null,B=null;for(var W in c)if(j.call(c,W)){var oe=c[W];if(oe==null)continue;switch(W){case"children":M=oe;break;case"dangerouslySetInnerHTML":B=oe;break;case"style":wi(s,y,oe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:de(W)&&typeof oe!="function"&&typeof oe!="symbol"&&s.push(In,W,En,Xt(oe),hn);break}}return s.push(vn),N(s,B,M),M}var ei=`
86
+ */var e0;function w5(){return e0||(e0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("warn",s,h)}}function i(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("error",s,h)}}function l(s,c,h){{var y=t.ReactDebugCurrentFrame,M=y.getStackAddendum();M!==""&&(c+="%s",h=h.concat([M]));var B=h.map(function(W){return String(W)});B.unshift("Warning: "+c),Function.prototype.apply.call(console[s],console,B)}}function u(s){s()}function f(s){}function p(s,c){m(s,c)}function m(s,c){return s.push(c)}function T(s){}function k(s){s.push(null)}function b(s){return s}function x(s){return s}function _(s,c){s.destroy(c)}function I(s){{var c=typeof Symbol=="function"&&Symbol.toStringTag,h=c&&s[Symbol.toStringTag]||s.constructor.name||"Object";return h}}function w(s){try{return C(s),!1}catch{return!0}}function C(s){return""+s}function D(s,c){if(w(s))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",c,I(s)),C(s)}function O(s,c){if(w(s))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",c,I(s)),C(s)}function N(s){if(w(s))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",I(s)),C(s)}var j=Object.prototype.hasOwnProperty,$=0,Z=1,ie=2,Y=3,se=4,q=5,J=6,X=":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=X+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("^["+X+"]["+ne+"]*$"),me={},ve={};function de(s){return j.call(ve,s)?!0:j.call(me,s)?!1:ge.test(s)?(ve[s]=!0,!0):(me[s]=!0,i("Invalid attribute name: `%s`",s),!1)}function De(s,c,h,y){if(h!==null&&h.type===$)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var M=s.toLowerCase().slice(0,5);return M!=="data-"&&M!=="aria-"}default:return!1}}function ue(s){return fe.hasOwnProperty(s)?fe[s]:null}function le(s,c,h,y,M,B,W){this.acceptsBooleans=c===ie||c===Y||c===se,this.attributeName=y,this.attributeNamespace=M,this.mustUseProperty=h,this.propertyName=s,this.type=c,this.sanitizeURL=B,this.removeEmptyString=W}var fe={},Me=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Me.forEach(function(s){fe[s]=new le(s,$,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0],h=s[1];fe[c]=new le(c,Z,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){fe[s]=new le(s,ie,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){fe[s]=new le(s,ie,!1,s,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(s){fe[s]=new le(s,Y,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){fe[s]=new le(s,Y,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){fe[s]=new le(s,se,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){fe[s]=new le(s,J,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){fe[s]=new le(s,q,!1,s.toLowerCase(),null,!1,!1)});var Ve=/[\-\:]([a-z])/g,pe=function(s){return s[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(s){var c=s.replace(Ve,pe);fe[c]=new le(c,Z,!1,s,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(s){var c=s.replace(Ve,pe);fe[c]=new le(c,Z,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(Ve,pe);fe[c]=new le(c,Z,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){fe[s]=new le(s,Z,!1,s.toLowerCase(),null,!1,!1)});var ke="xlinkHref";fe[ke]=new le("xlinkHref",Z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){fe[s]=new le(s,Z,!1,s.toLowerCase(),null,!0,!0)});var ze={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 Ze(s,c){return s+c.charAt(0).toUpperCase()+c.substring(1)}var et=["Webkit","ms","Moz","O"];Object.keys(ze).forEach(function(s){et.forEach(function(c){ze[Ze(c,s)]=ze[s]})});var xe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Se(s,c){xe[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||i("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`."),c.onChange||c.readOnly||c.disabled||c.checked==null||i("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 be(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 Le={"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},$e={},bt=new RegExp("^(aria)-["+ne+"]*$"),Ge=new RegExp("^(aria)[A-Z]["+ne+"]*$");function ht(s,c){{if(j.call($e,c)&&$e[c])return!0;if(Ge.test(c)){var h="aria-"+c.slice(4).toLowerCase(),y=Le.hasOwnProperty(h)?h:null;if(y==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),$e[c]=!0,!0;if(c!==y)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,y),$e[c]=!0,!0}if(bt.test(c)){var M=c.toLowerCase(),B=Le.hasOwnProperty(M)?M:null;if(B==null)return $e[c]=!0,!1;if(c!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,B),$e[c]=!0,!0}}return!0}function mt(s,c){{var h=[];for(var y in c){var M=ht(s,y);M||h.push(y)}var B=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,s):h.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,s)}}function Oe(s,c){be(s,c)||mt(s,c)}var He=!1;function wt(s,c){{if(s!=="input"&&s!=="textarea"&&s!=="select")return;c!=null&&c.value===null&&!He&&(He=!0,s==="select"&&c.multiple?i("`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.",s):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s))}}var _t={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vt=function(){};{var Tt={},Pe=/^on./,Ke=/^on[^A-Z]/,xt=new RegExp("^(aria)-["+ne+"]*$"),jt=new RegExp("^(aria)[A-Z]["+ne+"]*$");vt=function(s,c,h,y){if(j.call(Tt,c)&&Tt[c])return!0;var M=c.toLowerCase();if(M==="onfocusin"||M==="onfocusout")return i("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."),Tt[c]=!0,!0;if(y!=null){var B=y.registrationNameDependencies,W=y.possibleRegistrationNames;if(B.hasOwnProperty(c))return!0;var oe=W.hasOwnProperty(M)?W[M]:null;if(oe!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",c,oe),Tt[c]=!0,!0;if(Pe.test(c))return i("Unknown event handler property `%s`. It will be ignored.",c),Tt[c]=!0,!0}else if(Pe.test(c))return Ke.test(c)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),Tt[c]=!0,!0;if(xt.test(c)||jt.test(c))return!0;if(M==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Tt[c]=!0,!0;if(M==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Tt[c]=!0,!0;if(M==="is"&&h!==null&&h!==void 0&&typeof h!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),Tt[c]=!0,!0;if(typeof h=="number"&&isNaN(h))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),Tt[c]=!0,!0;var Ae=ue(c),Qe=Ae!==null&&Ae.type===$;if(_t.hasOwnProperty(M)){var dt=_t[M];if(dt!==c)return i("Invalid DOM property `%s`. Did you mean `%s`?",c,dt),Tt[c]=!0,!0}else if(!Qe&&c!==M)return i("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.",c,M),Tt[c]=!0,!0;return typeof h=="boolean"&&De(c,h,Ae)?(h?i('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,c,c,h,c):i('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,c,c,h,c,c,c),Tt[c]=!0,!0):Qe?!0:De(c,h,Ae)?(Tt[c]=!0,!1):((h==="false"||h==="true")&&Ae!==null&&Ae.type===Y&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,c,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".',c,h),Tt[c]=!0),!0)}}var At=function(s,c,h){{var y=[];for(var M in c){var B=vt(s,M,c[M],h);B||y.push(M)}var W=y.map(function(oe){return"`"+oe+"`"}).join(", ");y.length===1?i("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 ",W,s):y.length>1&&i("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 ",W,s)}};function Be(s,c,h){be(s,c)||At(s,c,h)}var Lt=function(){};{var Dt=/^(?:webkit|moz|o)[A-Z]/,dr=/^-ms-/,Er=/-(.)/g,Mr=/;\s*$/,_e={},te={},tt=!1,ut=!1,qt=function(s){return s.replace(Er,function(c,h){return h.toUpperCase()})},kt=function(s){_e.hasOwnProperty(s)&&_e[s]||(_e[s]=!0,i("Unsupported style property %s. Did you mean %s?",s,qt(s.replace(dr,"ms-"))))},Mt=function(s){_e.hasOwnProperty(s)&&_e[s]||(_e[s]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1)))},tr=function(s,c){te.hasOwnProperty(c)&&te[c]||(te[c]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(Mr,"")))},Xe=function(s,c){tt||(tt=!0,i("`NaN` is an invalid value for the `%s` css style property.",s))},rt=function(s,c){ut||(ut=!0,i("`Infinity` is an invalid value for the `%s` css style property.",s))};Lt=function(s,c){s.indexOf("-")>-1?kt(s):Dt.test(s)?Mt(s):Mr.test(c)&&tr(s,c),typeof c=="number"&&(isNaN(c)?Xe(s,c):isFinite(c)||rt(s,c))}}var Rt=Lt,Ht=/["'&<>]/;function Ot(s){N(s);var c=""+s,h=Ht.exec(c);if(!h)return c;var y,M="",B,W=0;for(B=h.index;B<c.length;B++){switch(c.charCodeAt(B)){case 34:y="&quot;";break;case 38:y="&amp;";break;case 39:y="&#x27;";break;case 60:y="&lt;";break;case 62:y="&gt;";break;default:continue}W!==B&&(M+=c.substring(W,B)),W=B+1,M+=y}return W!==B?M+c.substring(W,B):M}function Xt(s){return typeof s=="boolean"||typeof s=="number"?""+s:Ot(s)}var Or=/([A-Z])/g,st=/^ms-/;function St(s){return s.replace(Or,"-$1").toLowerCase().replace(st,"-ms-")}var pt=/^[\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,Bt=!1;function gr(s){!Bt&&pt.test(s)&&(Bt=!0,i("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(s)))}var re=Array.isArray;function Ue(s){return re(s)}var Re="<script>";function nt(s,c,h,y,M){var B=s===void 0?"":s,W=Re,oe=[];return{bootstrapChunks:oe,startInlineScript:W,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var at=0,Et=1,lt=2,zt=3,ar=4,Zt=5,ir=6,Sr=7;function nr(s,c){return{insertionMode:s,selectedValue:c}}function Wr(s,c,h){switch(c){case"select":return nr(Et,h.value!=null?h.value:h.defaultValue);case"svg":return nr(lt,null);case"math":return nr(zt,null);case"foreignObject":return nr(Et,null);case"table":return nr(ar,null);case"thead":case"tbody":case"tfoot":return nr(Zt,null);case"colgroup":return nr(Sr,null);case"tr":return nr(ir,null)}return s.insertionMode>=ar||s.insertionMode===at?nr(Et,null):s}var Gr=null;function mn(s){var c=s.nextSuspenseID++;return s.boundaryPrefix+c.toString(16)}function Jr(s,c,h){var y=s.idPrefix,M=":"+y+"R"+c;return h>0&&(M+="H"+h.toString(32)),M+":"}function Yn(s){return Xt(s)}var Rn="<!-- -->";function Xn(s,c,h,y){return c===""?y:(y&&s.push(Rn),s.push(Yn(c)),!0)}function Jn(s,c,h,y){h&&y&&s.push(Rn)}var an=new Map;function Nn(s){var c=an.get(s);if(c!==void 0)return c;var h=Xt(St(s));return an.set(s,h),h}var Tn=' style="',gi=":",Ci=";";function wi(s,c,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 y=!0;for(var M in h)if(j.call(h,M)){var B=h[M];if(!(B==null||typeof B=="boolean"||B==="")){var W=void 0,oe=void 0,Ae=M.indexOf("--")===0;Ae?(W=Xt(M),O(B,M),oe=Xt((""+B).trim())):(Rt(M,B),W=Nn(M),typeof B=="number"?B!==0&&!j.call(ze,M)?oe=B+"px":oe=""+B:(O(B,M),oe=Xt((""+B).trim()))),y?(y=!1,s.push(Tn,W,gi,oe)):s.push(Ci,W,gi,oe)}}y||s.push(hn)}var In=" ",En='="',hn='"',Qn='=""';function ln(s,c,h,y){switch(h){case"style":{wi(s,c,y);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 M=ue(h);if(M!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}var B=M.attributeName,W=B;switch(M.type){case Y:y&&s.push(In,W,Qn);return;case se:y===!0?s.push(In,W,Qn):y===!1||s.push(In,W,En,Xt(y),hn);return;case q:isNaN(y)||s.push(In,W,En,Xt(y),hn);break;case J:!isNaN(y)&&y>=1&&s.push(In,W,En,Xt(y),hn);break;default:M.sanitizeURL&&(D(y,B),y=""+y,gr(y)),s.push(In,W,En,Xt(y),hn)}}else if(de(h)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var oe=h.toLowerCase().slice(0,5);if(oe!=="data-"&&oe!=="aria-")return}}s.push(In,h,En,Xt(y),hn)}}}var vn=">",A="/>";function F(s,c,h){if(c!=null){if(h!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof c!="object"||!("__html"in c))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=c.__html;y!=null&&(N(y),s.push(""+y))}}var V=!1,Q=!1,Ee=!1,we=!1,je=!1,ft=!1,Pt=!1;function Ut(s,c){{var h=s[c];if(h!=null){var y=Ue(h);s.multiple&&!y?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",c):!s.multiple&&y&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",c)}}}function $t(s,c,h){Se("select",c),Ut(c,"value"),Ut(c,"defaultValue"),c.value!==void 0&&c.defaultValue!==void 0&&!Ee&&(i("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"),Ee=!0),s.push(Ln("select"));var y=null,M=null;for(var B in c)if(j.call(c,B)){var W=c[B];if(W==null)continue;switch(B){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;case"defaultValue":case"value":break;default:ln(s,h,B,W);break}}return s.push(vn),F(s,M,y),y}function _r(s){var c="";return r.Children.forEach(s,function(h){h!=null&&(c+=h,!je&&typeof h!="string"&&typeof h!="number"&&(je=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),c}var Yr=' selected=""';function _n(s,c,h,y){var M=y.selectedValue;s.push(Ln("option"));var B=null,W=null,oe=null,Ae=null;for(var Qe in c)if(j.call(c,Qe)){var dt=c[Qe];if(dt==null)continue;switch(Qe){case"children":B=dt;break;case"selected":oe=dt,Pt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Pt=!0);break;case"dangerouslySetInnerHTML":Ae=dt;break;case"value":W=dt;default:ln(s,h,Qe,dt);break}}if(M!=null){var It;if(W!==null?(D(W,"value"),It=""+W):(Ae!==null&&(ft||(ft=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),It=_r(B)),Ue(M))for(var or=0;or<M.length;or++){D(M[or],"value");var Dr=""+M[or];if(Dr===It){s.push(Yr);break}}else D(M,"select.value"),""+M===It&&s.push(Yr)}else oe&&s.push(Yr);return s.push(vn),F(s,Ae,B),B}function xn(s,c,h){Se("input",c),c.checked!==void 0&&c.defaultChecked!==void 0&&!Q&&(i("%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",c.type),Q=!0),c.value!==void 0&&c.defaultValue!==void 0&&!V&&(i("%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",c.type),V=!0),s.push(Ln("input"));var y=null,M=null,B=null,W=null;for(var oe in c)if(j.call(c,oe)){var Ae=c[oe];if(Ae==null)continue;switch(oe){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":W=Ae;break;case"defaultValue":M=Ae;break;case"checked":B=Ae;break;case"value":y=Ae;break;default:ln(s,h,oe,Ae);break}}return B!==null?ln(s,h,"checked",B):W!==null&&ln(s,h,"checked",W),y!==null?ln(s,h,"value",y):M!==null&&ln(s,h,"value",M),s.push(A),null}function ci(s,c,h){Se("textarea",c),c.value!==void 0&&c.defaultValue!==void 0&&!we&&(i("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"),we=!0),s.push(Ln("textarea"));var y=null,M=null,B=null;for(var W in c)if(j.call(c,W)){var oe=c[W];if(oe==null)continue;switch(W){case"children":B=oe;break;case"value":y=oe;break;case"defaultValue":M=oe;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ln(s,h,W,oe);break}}if(y===null&&M!==null&&(y=M),s.push(vn),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ue(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");N(B[0]),y=""+B[0]}N(B),y=""+B}return typeof y=="string"&&y[0]===`
87
+ `&&s.push(ei),y!==null&&(D(y,"value"),s.push(Yn(""+y))),null}function Hn(s,c,h,y){s.push(Ln(h));for(var M in c)if(j.call(c,M)){var B=c[M];if(B==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ln(s,y,M,B);break}}return s.push(A),null}function Ai(s,c,h){s.push(Ln("menuitem"));for(var y in c)if(j.call(c,y)){var M=c[y];if(M==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ln(s,h,y,M);break}}return s.push(vn),null}function Qr(s,c,h){s.push(Ln("title"));var y=null;for(var M in c)if(j.call(c,M)){var B=c[M];if(B==null)continue;switch(M){case"children":y=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ln(s,h,M,B);break}}s.push(vn);{var W=Array.isArray(y)&&y.length<2?y[0]||null:y;Array.isArray(y)&&y.length>1?i("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"):W!=null&&W.$$typeof!=null?i("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"):W!=null&&typeof W!="string"&&typeof W!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return y}function mi(s,c,h,y){s.push(Ln(h));var M=null,B=null;for(var W in c)if(j.call(c,W)){var oe=c[W];if(oe==null)continue;switch(W){case"children":M=oe;break;case"dangerouslySetInnerHTML":B=oe;break;default:ln(s,y,W,oe);break}}return s.push(vn),F(s,B,M),typeof M=="string"?(s.push(Yn(M)),null):M}function zn(s,c,h,y){s.push(Ln(h));var M=null,B=null;for(var W in c)if(j.call(c,W)){var oe=c[W];if(oe==null)continue;switch(W){case"children":M=oe;break;case"dangerouslySetInnerHTML":B=oe;break;case"style":wi(s,y,oe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:de(W)&&typeof oe!="function"&&typeof oe!="symbol"&&s.push(In,W,En,Xt(oe),hn);break}}return s.push(vn),F(s,B,M),M}var ei=`
88
88
  `;function xo(s,c,h,y){s.push(Ln(h));var M=null,B=null;for(var W in c)if(j.call(c,W)){var oe=c[W];if(oe==null)continue;switch(W){case"children":M=oe;break;case"dangerouslySetInnerHTML":B=oe;break;default:ln(s,y,W,oe);break}}if(s.push(vn),B!=null){if(M!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof B!="object"||!("__html"in B))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 Ae=B.__html;Ae!=null&&(typeof Ae=="string"&&Ae.length>0&&Ae[0]===`
89
- `?s.push(ei,Ae):(F(Ae),s.push(""+Ae)))}return typeof M=="string"&&M[0]===`
89
+ `?s.push(ei,Ae):(N(Ae),s.push(""+Ae)))}return typeof M=="string"&&M[0]===`
90
90
  `&&s.push(ei),M}var io=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oo=new Map;function Ln(s){var c=oo.get(s);if(c===void 0){if(!io.test(s))throw new Error("Invalid tag: "+s);c="<"+s,oo.set(s,c)}return c}var So="<!DOCTYPE html>";function ti(s,c,h,y,M){switch(Oe(c,h),wt(c,h),Be(c,h,null),!h.suppressContentEditableWarning&&h.contentEditable&&h.children!=null&&i("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."),M.insertionMode!==lt&&M.insertionMode!==zt&&c.indexOf("-")===-1&&typeof h.is!="string"&&c.toLowerCase()!==c&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),c){case"select":return $t(s,h,y);case"option":return _n(s,h,y,M);case"textarea":return ci(s,h,y);case"input":return xn(s,h,y);case"menuitem":return Ai(s,h,y);case"title":return Qr(s,h,y);case"listing":case"pre":return xo(s,h,c,y);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Hn(s,h,c,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 mi(s,h,c,y);case"html":return M.insertionMode===at&&s.push(So),mi(s,h,c,y);default:return c.indexOf("-")===-1&&typeof h.is!="string"?mi(s,h,c,y):zn(s,h,c,y)}}var ri="</",Wi=">";function Pr(s,c,h){switch(c){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:s.push(ri,c,Wi)}}function Cr(s,c){for(var h=c.bootstrapChunks,y=0;y<h.length-1;y++)p(s,h[y]);return y<h.length?m(s,h[y]):!0}var Lr='<template id="',L='"></template>';function G(s,c,h){p(s,Lr),p(s,c.placeholderPrefix);var y=h.toString(16);return p(s,y),m(s,L)}var ce="<!--$-->",qe='<!--$?--><template id="',Jt='"></template>',Vt="<!--$!-->",mr="<!--/$-->",xr="<template",hr='"',wr=' data-dgst="',en=' data-msg="',Dn=' data-stck="',Zr="></template>";function qr(s,c){return m(s,ce)}function tn(s,c,h){if(p(s,qe),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(s,h),m(s,Jt)}function ui(s,c,h,y,M){var B;return B=m(s,Vt),p(s,xr),h&&(p(s,wr),p(s,Xt(h)),p(s,hr)),y&&(p(s,en),p(s,Xt(y)),p(s,hr)),M&&(p(s,Dn),p(s,Xt(M)),p(s,hr)),B=m(s,Zr),B}function vi(s,c){return m(s,mr)}function $n(s,c){return m(s,mr)}function Co(s,c){return m(s,mr)}var Vi='<div hidden id="',cn='">',ps="</div>",Un='<svg aria-hidden="true" style="display:none" id="',hl='">',ka="</svg>",Gi='<math aria-hidden="true" style="display:none" id="',wo='">',Wn="</math>",Xr='<table hidden id="',Ti='">',Ra="</table>",pl='<table hidden><tbody id="',Uo='">',gl="</tbody></table>",ml='<table hidden><tr id="',Ks='">',gs="</tr></table>",ms='<table hidden><colgroup id="',Ao='">',vl="</colgroup></table>";function Ys(s,c,h,y){switch(h.insertionMode){case at:case Et:return p(s,Vi),p(s,c.segmentPrefix),p(s,y.toString(16)),m(s,cn);case lt:return p(s,Un),p(s,c.segmentPrefix),p(s,y.toString(16)),m(s,hl);case zt:return p(s,Gi),p(s,c.segmentPrefix),p(s,y.toString(16)),m(s,wo);case ar:return p(s,Xr),p(s,c.segmentPrefix),p(s,y.toString(16)),m(s,Ti);case Zt:return p(s,pl),p(s,c.segmentPrefix),p(s,y.toString(16)),m(s,Uo);case ir:return p(s,ml),p(s,c.segmentPrefix),p(s,y.toString(16)),m(s,Ks);case Sr:return p(s,ms),p(s,c.segmentPrefix),p(s,y.toString(16)),m(s,Ao);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Ia(s,c){switch(c.insertionMode){case at:case Et:return m(s,ps);case lt:return m(s,ka);case zt:return m(s,Wn);case ar:return m(s,Ra);case Zt:return m(s,gl);case ir:return m(s,gs);case Sr:return m(s,vl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var E="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)}",P='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()}}',z='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())}',ee=E+';$RS("',Ie='$RS("',Te='","',Je='")<\/script>';function Ct(s,c,h){p(s,c.startInlineScript),c.sentCompleteSegmentFunction?p(s,Ie):(c.sentCompleteSegmentFunction=!0,p(s,ee)),p(s,c.segmentPrefix);var y=h.toString(16);return p(s,y),p(s,Te),p(s,c.placeholderPrefix),p(s,y),m(s,Je)}var Wt=P+';$RC("',pr='$RC("',lr='","',Kr='")<\/script>';function ni(s,c,h,y){if(p(s,c.startInlineScript),c.sentCompleteBoundaryFunction?p(s,pr):(c.sentCompleteBoundaryFunction=!0,p(s,Wt)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var M=y.toString(16);return p(s,h),p(s,lr),p(s,c.segmentPrefix),p(s,M),m(s,Kr)}var Ei=z+';$RX("',ki='$RX("',Xs='"',yl=")<\/script>",vs=",";function Js(s,c,h,y,M,B){if(p(s,c.startInlineScript),c.sentClientRenderFunction?p(s,ki):(c.sentClientRenderFunction=!0,p(s,Ei)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(s,h),p(s,Xs),(y||M||B)&&(p(s,vs),p(s,uc(y||""))),(M||B)&&(p(s,vs),p(s,uc(M||""))),B&&(p(s,vs),p(s,uc(B))),m(s,yl)}var uf=/[<\u2028\u2029]/g;function uc(s){var c=JSON.stringify(s);return c.replace(uf,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")}})}function fc(s,c){var h=nt(c);return{bootstrapChunks:h.bootstrapChunks,startInlineScript:h.startInlineScript,placeholderPrefix:h.placeholderPrefix,segmentPrefix:h.segmentPrefix,boundaryPrefix:h.boundaryPrefix,idPrefix:h.idPrefix,nextSuspenseID:h.nextSuspenseID,sentCompleteSegmentFunction:h.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:h.sentCompleteBoundaryFunction,sentClientRenderFunction:h.sentClientRenderFunction,generateStaticMarkup:s}}function uu(){return{insertionMode:Et,selectedValue:null}}function To(s,c,h,y){return h.generateStaticMarkup?(s.push(Xt(c)),!1):Xn(s,c,h,y)}function La(s,c,h,y){if(!c.generateStaticMarkup)return Jn(s,c,h,y)}function ff(s,c){return c.generateStaticMarkup?!0:qr(s)}function df(s,c,h,y,M){return c.generateStaticMarkup?!0:ui(s,c,h,y,M)}function hf(s,c){return c.generateStaticMarkup?!0:vi(s)}function Qs(s,c){return c.generateStaticMarkup?!0:Co(s)}var pn=Object.assign,fu=Symbol.for("react.element"),du=Symbol.for("react.portal"),bl=Symbol.for("react.fragment"),Ri=Symbol.for("react.strict_mode"),hu=Symbol.for("react.profiler"),_l=Symbol.for("react.provider"),Eo=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),We=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),Nt=Symbol.for("react.memo"),sr=Symbol.for("react.lazy"),Nr=Symbol.for("react.scope"),Sn=Symbol.for("react.debug_trace_mode"),Vr=Symbol.for("react.legacy_hidden"),ea=Symbol.for("react.default_value"),pu=Symbol.iterator,qi="@@iterator";function xl(s){if(s===null||typeof s!="object")return null;var c=pu&&s[pu]||s[qi];return typeof c=="function"?c:null}function pf(s,c,h){var y=s.displayName;if(y)return y;var M=c.displayName||c.name||"";return M!==""?h+"("+M+")":h}function Wo(s){return s.displayName||"Context"}function rn(s){if(s==null)return null;if(typeof s.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case bl:return"Fragment";case du:return"Portal";case hu:return"Profiler";case Ri:return"StrictMode";case We:return"Suspense";case Fe:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Eo:var c=s;return Wo(c)+".Consumer";case _l:var h=s;return Wo(h._context)+".Provider";case ye:return pf(s,s.render,"ForwardRef");case Nt:var y=s.displayName||null;return y!==null?y:rn(s.type)||"Memo";case sr:{var M=s,B=M._payload,W=M._init;try{return rn(W(B))}catch{return null}}}return null}var Vo=0,$r,dc,un,ko,hc,pc,gc;function ta(){}ta.__reactDisabledLog=!0;function Ro(){{if(Vo===0){$r=console.log,dc=console.info,un=console.warn,ko=console.error,hc=console.group,pc=console.groupCollapsed,gc=console.groupEnd;var s={configurable:!0,enumerable:!0,value:ta,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Vo++}}function Da(){{if(Vo--,Vo===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pn({},s,{value:$r}),info:pn({},s,{value:dc}),warn:pn({},s,{value:un}),error:pn({},s,{value:ko}),group:pn({},s,{value:hc}),groupCollapsed:pn({},s,{value:pc}),groupEnd:pn({},s,{value:gc})})}Vo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ma=t.ReactCurrentDispatcher,ys;function ra(s,c,h){{if(ys===void 0)try{throw Error()}catch(M){var y=M.stack.trim().match(/\n( *(at )?)/);ys=y&&y[1]||""}return`
91
91
  `+ys+s}}var Sl=!1,Io;{var Cl=typeof WeakMap=="function"?WeakMap:Map;Io=new Cl}function Zi(s,c){if(!s||Sl)return"";{var h=Io.get(s);if(h!==void 0)return h}var y;Sl=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Ma.current,Ma.current=null,Ro();try{if(c){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(Gn){y=Gn}Reflect.construct(s,[],W)}else{try{W.call()}catch(Gn){y=Gn}s.call(W.prototype)}}else{try{throw Error()}catch(Gn){y=Gn}s()}}catch(Gn){if(Gn&&y&&typeof Gn.stack=="string"){for(var oe=Gn.stack.split(`
92
92
  `),Ae=y.stack.split(`
@@ -122,7 +122,7 @@ Error generating stack: `+y.message+`
122
122
  *
123
123
  * This source code is licensed under the MIT license found in the
124
124
  * LICENSE file in the root directory of this source tree.
125
- */var t0;function A5(){return t0||(t0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("warn",d,c)}}function i(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("error",d,c)}}function l(d,s,c){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(s+="%s",c=c.concat([y]));var M=c.map(function(B){return String(B)});M.unshift("Warning: "+s),Function.prototype.apply.call(console[d],console,M)}}function u(d){d()}var f=512,p=null,m=0;function T(d){p=new Uint8Array(f),m=0}function k(d,s){if(s.length!==0){if(s.length>f){m>0&&(d.enqueue(new Uint8Array(p.buffer,0,m)),p=new Uint8Array(f),m=0),d.enqueue(s);return}var c=s,h=p.length-m;h<c.length&&(h===0?d.enqueue(p):(p.set(c.subarray(0,h),m),d.enqueue(p),c=c.subarray(h)),p=new Uint8Array(f),m=0),p.set(c,m),m+=c.length}}function b(d,s){return k(d,s),!0}function x(d){p&&m>0&&(d.enqueue(new Uint8Array(p.buffer,0,m)),p=null,m=0)}function _(d){d.close()}var I=new TextEncoder;function w(d){return I.encode(d)}function C(d){return I.encode(d)}function D(d,s){typeof d.error=="function"?d.error(s):d.close()}function O(d){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&d[Symbol.toStringTag]||d.constructor.name||"Object";return c}}function F(d){try{return j(d),!1}catch{return!0}}function j(d){return""+d}function $(d,s){if(F(d))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),j(d)}function Z(d,s){if(F(d))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),j(d)}function ie(d){if(F(d))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(d)),j(d)}var Y=Object.prototype.hasOwnProperty,se=0,q=1,J=2,X=3,ne=4,ge=5,me=6,ve=":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",de=ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",De=new RegExp("^["+ve+"]["+de+"]*$"),ue={},le={};function fe(d){return Y.call(le,d)?!0:Y.call(ue,d)?!1:De.test(d)?(le[d]=!0,!0):(ue[d]=!0,i("Invalid attribute name: `%s`",d),!1)}function Me(d,s,c,h){if(c!==null&&c.type===se)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(c!==null)return!c.acceptsBooleans;var y=d.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function Ve(d){return ke.hasOwnProperty(d)?ke[d]:null}function pe(d,s,c,h,y,M,B){this.acceptsBooleans=s===J||s===X||s===ne,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=d,this.type=s,this.sanitizeURL=M,this.removeEmptyString=B}var ke={},ze=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ze.forEach(function(d){ke[d]=new pe(d,se,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var s=d[0],c=d[1];ke[s]=new pe(s,q,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){ke[d]=new pe(d,J,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){ke[d]=new pe(d,J,!1,d,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(d){ke[d]=new pe(d,X,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){ke[d]=new pe(d,X,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){ke[d]=new pe(d,ne,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){ke[d]=new pe(d,me,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){ke[d]=new pe(d,ge,!1,d.toLowerCase(),null,!1,!1)});var Ze=/[\-\:]([a-z])/g,et=function(d){return d[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(d){var s=d.replace(Ze,et);ke[s]=new pe(s,q,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var s=d.replace(Ze,et);ke[s]=new pe(s,q,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var s=d.replace(Ze,et);ke[s]=new pe(s,q,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){ke[d]=new pe(d,q,!1,d.toLowerCase(),null,!1,!1)});var xe="xlinkHref";ke[xe]=new pe("xlinkHref",q,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){ke[d]=new pe(d,q,!1,d.toLowerCase(),null,!0,!0)});var Se={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 be(d,s){return d+s.charAt(0).toUpperCase()+s.substring(1)}var Le=["Webkit","ms","Moz","O"];Object.keys(Se).forEach(function(d){Le.forEach(function(s){Se[be(s,d)]=Se[d]})});var $e={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function bt(d,s){$e[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||i("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`."),s.onChange||s.readOnly||s.disabled||s.checked==null||i("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 Ge(d,s){if(d.indexOf("-")===-1)return typeof s.is=="string";switch(d){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},mt={},Oe=new RegExp("^(aria)-["+de+"]*$"),He=new RegExp("^(aria)[A-Z]["+de+"]*$");function wt(d,s){{if(Y.call(mt,s)&&mt[s])return!0;if(He.test(s)){var c="aria-"+s.slice(4).toLowerCase(),h=ht.hasOwnProperty(c)?c:null;if(h==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),mt[s]=!0,!0;if(s!==h)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,h),mt[s]=!0,!0}if(Oe.test(s)){var y=s.toLowerCase(),M=ht.hasOwnProperty(y)?y:null;if(M==null)return mt[s]=!0,!1;if(s!==M)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,M),mt[s]=!0,!0}}return!0}function _t(d,s){{var c=[];for(var h in s){var y=wt(d,h);y||c.push(h)}var M=c.map(function(B){return"`"+B+"`"}).join(", ");c.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d):c.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d)}}function vt(d,s){Ge(d,s)||_t(d,s)}var Tt=!1;function Pe(d,s){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;s!=null&&s.value===null&&!Tt&&(Tt=!0,d==="select"&&s.multiple?i("`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.",d):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var Ke={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},xt=function(){};{var jt={},At=/^on./,Be=/^on[^A-Z]/,Lt=new RegExp("^(aria)-["+de+"]*$"),Dt=new RegExp("^(aria)[A-Z]["+de+"]*$");xt=function(d,s,c,h){if(Y.call(jt,s)&&jt[s])return!0;var y=s.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return i("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."),jt[s]=!0,!0;if(h!=null){var M=h.registrationNameDependencies,B=h.possibleRegistrationNames;if(M.hasOwnProperty(s))return!0;var W=B.hasOwnProperty(y)?B[y]:null;if(W!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,W),jt[s]=!0,!0;if(At.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),jt[s]=!0,!0}else if(At.test(s))return Be.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),jt[s]=!0,!0;if(Lt.test(s)||Dt.test(s))return!0;if(y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),jt[s]=!0,!0;if(y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),jt[s]=!0,!0;if(y==="is"&&c!==null&&c!==void 0&&typeof c!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),jt[s]=!0,!0;if(typeof c=="number"&&isNaN(c))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),jt[s]=!0,!0;var oe=Ve(s),Ae=oe!==null&&oe.type===se;if(Ke.hasOwnProperty(y)){var Qe=Ke[y];if(Qe!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,Qe),jt[s]=!0,!0}else if(!Ae&&s!==y)return i("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.",s,y),jt[s]=!0,!0;return typeof c=="boolean"&&Me(s,c,oe)?(c?i('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()}.',c,s,s,c,s):i('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.',c,s,s,c,s,s,s),jt[s]=!0,!0):Ae?!0:Me(s,c,oe)?(jt[s]=!0,!1):((c==="false"||c==="true")&&oe!==null&&oe.type===X&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="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".',s,c),jt[s]=!0),!0)}}var dr=function(d,s,c){{var h=[];for(var y in s){var M=xt(d,y,s[y],c);M||h.push(y)}var B=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("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 ",B,d):h.length>1&&i("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 ",B,d)}};function Er(d,s,c){Ge(d,s)||dr(d,s,c)}var Mr=function(){};{var _e=/^(?:webkit|moz|o)[A-Z]/,te=/^-ms-/,tt=/-(.)/g,ut=/;\s*$/,qt={},kt={},Mt=!1,tr=!1,Xe=function(d){return d.replace(tt,function(s,c){return c.toUpperCase()})},rt=function(d){qt.hasOwnProperty(d)&&qt[d]||(qt[d]=!0,i("Unsupported style property %s. Did you mean %s?",d,Xe(d.replace(te,"ms-"))))},Rt=function(d){qt.hasOwnProperty(d)&&qt[d]||(qt[d]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},Ht=function(d,s){kt.hasOwnProperty(s)&&kt[s]||(kt[s]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,s.replace(ut,"")))},Ot=function(d,s){Mt||(Mt=!0,i("`NaN` is an invalid value for the `%s` css style property.",d))},Xt=function(d,s){tr||(tr=!0,i("`Infinity` is an invalid value for the `%s` css style property.",d))};Mr=function(d,s){d.indexOf("-")>-1?rt(d):_e.test(d)?Rt(d):ut.test(s)&&Ht(d,s),typeof s=="number"&&(isNaN(s)?Ot(d,s):isFinite(s)||Xt(d,s))}}var Or=Mr,st=/["'&<>]/;function St(d){ie(d);var s=""+d,c=st.exec(s);if(!c)return s;var h,y="",M,B=0;for(M=c.index;M<s.length;M++){switch(s.charCodeAt(M)){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&#x27;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;default:continue}B!==M&&(y+=s.substring(B,M)),B=M+1,y+=h}return B!==M?y+s.substring(B,M):y}function pt(d){return typeof d=="boolean"||typeof d=="number"?""+d:St(d)}var Bt=/([A-Z])/g,gr=/^ms-/;function re(d){return d.replace(Bt,"-$1").toLowerCase().replace(gr,"-ms-")}var Ue=/^[\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,Re=!1;function nt(d){!Re&&Ue.test(d)&&(Re=!0,i("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(d)))}var at=Array.isArray;function Et(d){return at(d)}var lt=C("<script>"),zt=C("<\/script>"),ar=C('<script src="'),Zt=C('<script type="module" src="'),ir=C('" async=""><\/script>');function Sr(d){return ie(d),(""+d).replace(nr,Wr)}var nr=/(<\/|<)(s)(cript)/gi,Wr=function(d,s,c,h){return""+s+(c==="s"?"\\u0073":"\\u0053")+h};function Gr(d,s,c,h,y){var M=d===void 0?"":d,B=s===void 0?lt:C('<script nonce="'+pt(s)+'">'),W=[];if(c!==void 0&&W.push(B,w(Sr(c)),zt),h!==void 0)for(var oe=0;oe<h.length;oe++)W.push(ar,w(pt(h[oe])),ir);if(y!==void 0)for(var Ae=0;Ae<y.length;Ae++)W.push(Zt,w(pt(y[Ae])),ir);return{bootstrapChunks:W,startInlineScript:B,placeholderPrefix:C(M+"P:"),segmentPrefix:C(M+"S:"),boundaryPrefix:M+"B:",idPrefix:M,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var mn=0,Jr=1,Yn=2,Rn=3,Xn=4,Jn=5,an=6,Nn=7;function Tn(d,s){return{insertionMode:d,selectedValue:s}}function gi(d){var s=d==="http://www.w3.org/2000/svg"?Yn:d==="http://www.w3.org/1998/Math/MathML"?Rn:mn;return Tn(s,null)}function Ci(d,s,c){switch(s){case"select":return Tn(Jr,c.value!=null?c.value:c.defaultValue);case"svg":return Tn(Yn,null);case"math":return Tn(Rn,null);case"foreignObject":return Tn(Jr,null);case"table":return Tn(Xn,null);case"thead":case"tbody":case"tfoot":return Tn(Jn,null);case"colgroup":return Tn(Nn,null);case"tr":return Tn(an,null)}return d.insertionMode>=Xn||d.insertionMode===mn?Tn(Jr,null):d}var wi=null;function In(d){var s=d.nextSuspenseID++;return C(d.boundaryPrefix+s.toString(16))}function En(d,s,c){var h=d.idPrefix,y=":"+h+"R"+s;return c>0&&(y+="H"+c.toString(32)),y+":"}function hn(d){return pt(d)}var Qn=C("<!-- -->");function ln(d,s,c,h){return s===""?h:(h&&d.push(Qn),d.push(w(hn(s))),!0)}function vn(d,s,c,h){c&&h&&d.push(Qn)}var A=new Map;function N(d){var s=A.get(d);if(s!==void 0)return s;var c=C(pt(re(d)));return A.set(d,c),c}var V=C(' style="'),Q=C(":"),Ee=C(";");function we(d,s,c){if(typeof c!="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 h=!0;for(var y in c)if(Y.call(c,y)){var M=c[y];if(!(M==null||typeof M=="boolean"||M==="")){var B=void 0,W=void 0,oe=y.indexOf("--")===0;oe?(B=w(pt(y)),Z(M,y),W=w(pt((""+M).trim()))):(Or(y,M),B=N(y),typeof M=="number"?M!==0&&!Y.call(Se,y)?W=w(M+"px"):W=w(""+M):(Z(M,y),W=w(pt((""+M).trim())))),h?(h=!1,d.push(V,B,Q,W)):d.push(Ee,B,Q,W)}}h||d.push(Pt)}var je=C(" "),ft=C('="'),Pt=C('"'),Ut=C('=""');function $t(d,s,c,h){switch(c){case"style":{we(d,s,h);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(c.length>2&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N"))){var y=Ve(c);if(y!==null){switch(typeof h){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}var M=y.attributeName,B=w(M);switch(y.type){case X:h&&d.push(je,B,Ut);return;case ne:h===!0?d.push(je,B,Ut):h===!1||d.push(je,B,ft,w(pt(h)),Pt);return;case ge:isNaN(h)||d.push(je,B,ft,w(pt(h)),Pt);break;case me:!isNaN(h)&&h>=1&&d.push(je,B,ft,w(pt(h)),Pt);break;default:y.sanitizeURL&&($(h,M),h=""+h,nt(h)),d.push(je,B,ft,w(pt(h)),Pt)}}else if(fe(c)){switch(typeof h){case"function":case"symbol":return;case"boolean":{var W=c.toLowerCase().slice(0,5);if(W!=="data-"&&W!=="aria-")return}}d.push(je,w(c),ft,w(pt(h)),Pt)}}}var _r=C(">"),Yr=C("/>");function _n(d,s,c){if(s!=null){if(c!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))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 h=s.__html;h!=null&&(ie(h),d.push(w(""+h)))}}var xn=!1,ci=!1,Hn=!1,Ai=!1,Qr=!1,mi=!1,zn=!1;function ei(d,s){{var c=d[s];if(c!=null){var h=Et(c);d.multiple&&!h?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!d.multiple&&h&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function xo(d,s,c){bt("select",s),ei(s,"value"),ei(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!Hn&&(i("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"),Hn=!0),d.push(Jt("select"));var h=null,y=null;for(var M in s)if(Y.call(s,M)){var B=s[M];if(B==null)continue;switch(M){case"children":h=B;break;case"dangerouslySetInnerHTML":y=B;break;case"defaultValue":case"value":break;default:$t(d,c,M,B);break}}return d.push(_r),_n(d,y,h),h}function io(d){var s="";return r.Children.forEach(d,function(c){c!=null&&(s+=c,!Qr&&typeof c!="string"&&typeof c!="number"&&(Qr=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}var oo=C(' selected=""');function Ln(d,s,c,h){var y=h.selectedValue;d.push(Jt("option"));var M=null,B=null,W=null,oe=null;for(var Ae in s)if(Y.call(s,Ae)){var Qe=s[Ae];if(Qe==null)continue;switch(Ae){case"children":M=Qe;break;case"selected":W=Qe,zn||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),zn=!0);break;case"dangerouslySetInnerHTML":oe=Qe;break;case"value":B=Qe;default:$t(d,c,Ae,Qe);break}}if(y!=null){var dt;if(B!==null?($(B,"value"),dt=""+B):(oe!==null&&(mi||(mi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),dt=io(M)),Et(y))for(var It=0;It<y.length;It++){$(y[It],"value");var or=""+y[It];if(or===dt){d.push(oo);break}}else $(y,"select.value"),""+y===dt&&d.push(oo)}else W&&d.push(oo);return d.push(_r),_n(d,oe,M),M}function So(d,s,c){bt("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!ci&&(i("%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",s.type),ci=!0),s.value!==void 0&&s.defaultValue!==void 0&&!xn&&(i("%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",s.type),xn=!0),d.push(Jt("input"));var h=null,y=null,M=null,B=null;for(var W in s)if(Y.call(s,W)){var oe=s[W];if(oe==null)continue;switch(W){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=oe;break;case"defaultValue":y=oe;break;case"checked":M=oe;break;case"value":h=oe;break;default:$t(d,c,W,oe);break}}return M!==null?$t(d,c,"checked",M):B!==null&&$t(d,c,"checked",B),h!==null?$t(d,c,"value",h):y!==null&&$t(d,c,"value",y),d.push(Yr),null}function ti(d,s,c){bt("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!Ai&&(i("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"),Ai=!0),d.push(Jt("textarea"));var h=null,y=null,M=null;for(var B in s)if(Y.call(s,B)){var W=s[B];if(W==null)continue;switch(B){case"children":M=W;break;case"value":h=W;break;case"defaultValue":y=W;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:$t(d,c,B,W);break}}if(h===null&&y!==null&&(h=y),d.push(_r),M!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),h!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Et(M)){if(M.length>1)throw new Error("<textarea> can only have at most one child.");ie(M[0]),h=""+M[0]}ie(M),h=""+M}return typeof h=="string"&&h[0]===`
125
+ */var t0;function A5(){return t0||(t0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("warn",d,c)}}function i(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("error",d,c)}}function l(d,s,c){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(s+="%s",c=c.concat([y]));var M=c.map(function(B){return String(B)});M.unshift("Warning: "+s),Function.prototype.apply.call(console[d],console,M)}}function u(d){d()}var f=512,p=null,m=0;function T(d){p=new Uint8Array(f),m=0}function k(d,s){if(s.length!==0){if(s.length>f){m>0&&(d.enqueue(new Uint8Array(p.buffer,0,m)),p=new Uint8Array(f),m=0),d.enqueue(s);return}var c=s,h=p.length-m;h<c.length&&(h===0?d.enqueue(p):(p.set(c.subarray(0,h),m),d.enqueue(p),c=c.subarray(h)),p=new Uint8Array(f),m=0),p.set(c,m),m+=c.length}}function b(d,s){return k(d,s),!0}function x(d){p&&m>0&&(d.enqueue(new Uint8Array(p.buffer,0,m)),p=null,m=0)}function _(d){d.close()}var I=new TextEncoder;function w(d){return I.encode(d)}function C(d){return I.encode(d)}function D(d,s){typeof d.error=="function"?d.error(s):d.close()}function O(d){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&d[Symbol.toStringTag]||d.constructor.name||"Object";return c}}function N(d){try{return j(d),!1}catch{return!0}}function j(d){return""+d}function $(d,s){if(N(d))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),j(d)}function Z(d,s){if(N(d))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),j(d)}function ie(d){if(N(d))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(d)),j(d)}var Y=Object.prototype.hasOwnProperty,se=0,q=1,J=2,X=3,ne=4,ge=5,me=6,ve=":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",de=ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",De=new RegExp("^["+ve+"]["+de+"]*$"),ue={},le={};function fe(d){return Y.call(le,d)?!0:Y.call(ue,d)?!1:De.test(d)?(le[d]=!0,!0):(ue[d]=!0,i("Invalid attribute name: `%s`",d),!1)}function Me(d,s,c,h){if(c!==null&&c.type===se)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(c!==null)return!c.acceptsBooleans;var y=d.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function Ve(d){return ke.hasOwnProperty(d)?ke[d]:null}function pe(d,s,c,h,y,M,B){this.acceptsBooleans=s===J||s===X||s===ne,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=d,this.type=s,this.sanitizeURL=M,this.removeEmptyString=B}var ke={},ze=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ze.forEach(function(d){ke[d]=new pe(d,se,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var s=d[0],c=d[1];ke[s]=new pe(s,q,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){ke[d]=new pe(d,J,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){ke[d]=new pe(d,J,!1,d,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(d){ke[d]=new pe(d,X,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){ke[d]=new pe(d,X,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){ke[d]=new pe(d,ne,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){ke[d]=new pe(d,me,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){ke[d]=new pe(d,ge,!1,d.toLowerCase(),null,!1,!1)});var Ze=/[\-\:]([a-z])/g,et=function(d){return d[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(d){var s=d.replace(Ze,et);ke[s]=new pe(s,q,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var s=d.replace(Ze,et);ke[s]=new pe(s,q,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var s=d.replace(Ze,et);ke[s]=new pe(s,q,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){ke[d]=new pe(d,q,!1,d.toLowerCase(),null,!1,!1)});var xe="xlinkHref";ke[xe]=new pe("xlinkHref",q,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){ke[d]=new pe(d,q,!1,d.toLowerCase(),null,!0,!0)});var Se={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 be(d,s){return d+s.charAt(0).toUpperCase()+s.substring(1)}var Le=["Webkit","ms","Moz","O"];Object.keys(Se).forEach(function(d){Le.forEach(function(s){Se[be(s,d)]=Se[d]})});var $e={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function bt(d,s){$e[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||i("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`."),s.onChange||s.readOnly||s.disabled||s.checked==null||i("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 Ge(d,s){if(d.indexOf("-")===-1)return typeof s.is=="string";switch(d){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},mt={},Oe=new RegExp("^(aria)-["+de+"]*$"),He=new RegExp("^(aria)[A-Z]["+de+"]*$");function wt(d,s){{if(Y.call(mt,s)&&mt[s])return!0;if(He.test(s)){var c="aria-"+s.slice(4).toLowerCase(),h=ht.hasOwnProperty(c)?c:null;if(h==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),mt[s]=!0,!0;if(s!==h)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,h),mt[s]=!0,!0}if(Oe.test(s)){var y=s.toLowerCase(),M=ht.hasOwnProperty(y)?y:null;if(M==null)return mt[s]=!0,!1;if(s!==M)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,M),mt[s]=!0,!0}}return!0}function _t(d,s){{var c=[];for(var h in s){var y=wt(d,h);y||c.push(h)}var M=c.map(function(B){return"`"+B+"`"}).join(", ");c.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d):c.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,d)}}function vt(d,s){Ge(d,s)||_t(d,s)}var Tt=!1;function Pe(d,s){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;s!=null&&s.value===null&&!Tt&&(Tt=!0,d==="select"&&s.multiple?i("`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.",d):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var Ke={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},xt=function(){};{var jt={},At=/^on./,Be=/^on[^A-Z]/,Lt=new RegExp("^(aria)-["+de+"]*$"),Dt=new RegExp("^(aria)[A-Z]["+de+"]*$");xt=function(d,s,c,h){if(Y.call(jt,s)&&jt[s])return!0;var y=s.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return i("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."),jt[s]=!0,!0;if(h!=null){var M=h.registrationNameDependencies,B=h.possibleRegistrationNames;if(M.hasOwnProperty(s))return!0;var W=B.hasOwnProperty(y)?B[y]:null;if(W!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,W),jt[s]=!0,!0;if(At.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),jt[s]=!0,!0}else if(At.test(s))return Be.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),jt[s]=!0,!0;if(Lt.test(s)||Dt.test(s))return!0;if(y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),jt[s]=!0,!0;if(y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),jt[s]=!0,!0;if(y==="is"&&c!==null&&c!==void 0&&typeof c!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),jt[s]=!0,!0;if(typeof c=="number"&&isNaN(c))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),jt[s]=!0,!0;var oe=Ve(s),Ae=oe!==null&&oe.type===se;if(Ke.hasOwnProperty(y)){var Qe=Ke[y];if(Qe!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,Qe),jt[s]=!0,!0}else if(!Ae&&s!==y)return i("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.",s,y),jt[s]=!0,!0;return typeof c=="boolean"&&Me(s,c,oe)?(c?i('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()}.',c,s,s,c,s):i('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.',c,s,s,c,s,s,s),jt[s]=!0,!0):Ae?!0:Me(s,c,oe)?(jt[s]=!0,!1):((c==="false"||c==="true")&&oe!==null&&oe.type===X&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="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".',s,c),jt[s]=!0),!0)}}var dr=function(d,s,c){{var h=[];for(var y in s){var M=xt(d,y,s[y],c);M||h.push(y)}var B=h.map(function(W){return"`"+W+"`"}).join(", ");h.length===1?i("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 ",B,d):h.length>1&&i("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 ",B,d)}};function Er(d,s,c){Ge(d,s)||dr(d,s,c)}var Mr=function(){};{var _e=/^(?:webkit|moz|o)[A-Z]/,te=/^-ms-/,tt=/-(.)/g,ut=/;\s*$/,qt={},kt={},Mt=!1,tr=!1,Xe=function(d){return d.replace(tt,function(s,c){return c.toUpperCase()})},rt=function(d){qt.hasOwnProperty(d)&&qt[d]||(qt[d]=!0,i("Unsupported style property %s. Did you mean %s?",d,Xe(d.replace(te,"ms-"))))},Rt=function(d){qt.hasOwnProperty(d)&&qt[d]||(qt[d]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},Ht=function(d,s){kt.hasOwnProperty(s)&&kt[s]||(kt[s]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,s.replace(ut,"")))},Ot=function(d,s){Mt||(Mt=!0,i("`NaN` is an invalid value for the `%s` css style property.",d))},Xt=function(d,s){tr||(tr=!0,i("`Infinity` is an invalid value for the `%s` css style property.",d))};Mr=function(d,s){d.indexOf("-")>-1?rt(d):_e.test(d)?Rt(d):ut.test(s)&&Ht(d,s),typeof s=="number"&&(isNaN(s)?Ot(d,s):isFinite(s)||Xt(d,s))}}var Or=Mr,st=/["'&<>]/;function St(d){ie(d);var s=""+d,c=st.exec(s);if(!c)return s;var h,y="",M,B=0;for(M=c.index;M<s.length;M++){switch(s.charCodeAt(M)){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&#x27;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;default:continue}B!==M&&(y+=s.substring(B,M)),B=M+1,y+=h}return B!==M?y+s.substring(B,M):y}function pt(d){return typeof d=="boolean"||typeof d=="number"?""+d:St(d)}var Bt=/([A-Z])/g,gr=/^ms-/;function re(d){return d.replace(Bt,"-$1").toLowerCase().replace(gr,"-ms-")}var Ue=/^[\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,Re=!1;function nt(d){!Re&&Ue.test(d)&&(Re=!0,i("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(d)))}var at=Array.isArray;function Et(d){return at(d)}var lt=C("<script>"),zt=C("<\/script>"),ar=C('<script src="'),Zt=C('<script type="module" src="'),ir=C('" async=""><\/script>');function Sr(d){return ie(d),(""+d).replace(nr,Wr)}var nr=/(<\/|<)(s)(cript)/gi,Wr=function(d,s,c,h){return""+s+(c==="s"?"\\u0073":"\\u0053")+h};function Gr(d,s,c,h,y){var M=d===void 0?"":d,B=s===void 0?lt:C('<script nonce="'+pt(s)+'">'),W=[];if(c!==void 0&&W.push(B,w(Sr(c)),zt),h!==void 0)for(var oe=0;oe<h.length;oe++)W.push(ar,w(pt(h[oe])),ir);if(y!==void 0)for(var Ae=0;Ae<y.length;Ae++)W.push(Zt,w(pt(y[Ae])),ir);return{bootstrapChunks:W,startInlineScript:B,placeholderPrefix:C(M+"P:"),segmentPrefix:C(M+"S:"),boundaryPrefix:M+"B:",idPrefix:M,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var mn=0,Jr=1,Yn=2,Rn=3,Xn=4,Jn=5,an=6,Nn=7;function Tn(d,s){return{insertionMode:d,selectedValue:s}}function gi(d){var s=d==="http://www.w3.org/2000/svg"?Yn:d==="http://www.w3.org/1998/Math/MathML"?Rn:mn;return Tn(s,null)}function Ci(d,s,c){switch(s){case"select":return Tn(Jr,c.value!=null?c.value:c.defaultValue);case"svg":return Tn(Yn,null);case"math":return Tn(Rn,null);case"foreignObject":return Tn(Jr,null);case"table":return Tn(Xn,null);case"thead":case"tbody":case"tfoot":return Tn(Jn,null);case"colgroup":return Tn(Nn,null);case"tr":return Tn(an,null)}return d.insertionMode>=Xn||d.insertionMode===mn?Tn(Jr,null):d}var wi=null;function In(d){var s=d.nextSuspenseID++;return C(d.boundaryPrefix+s.toString(16))}function En(d,s,c){var h=d.idPrefix,y=":"+h+"R"+s;return c>0&&(y+="H"+c.toString(32)),y+":"}function hn(d){return pt(d)}var Qn=C("<!-- -->");function ln(d,s,c,h){return s===""?h:(h&&d.push(Qn),d.push(w(hn(s))),!0)}function vn(d,s,c,h){c&&h&&d.push(Qn)}var A=new Map;function F(d){var s=A.get(d);if(s!==void 0)return s;var c=C(pt(re(d)));return A.set(d,c),c}var V=C(' style="'),Q=C(":"),Ee=C(";");function we(d,s,c){if(typeof c!="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 h=!0;for(var y in c)if(Y.call(c,y)){var M=c[y];if(!(M==null||typeof M=="boolean"||M==="")){var B=void 0,W=void 0,oe=y.indexOf("--")===0;oe?(B=w(pt(y)),Z(M,y),W=w(pt((""+M).trim()))):(Or(y,M),B=F(y),typeof M=="number"?M!==0&&!Y.call(Se,y)?W=w(M+"px"):W=w(""+M):(Z(M,y),W=w(pt((""+M).trim())))),h?(h=!1,d.push(V,B,Q,W)):d.push(Ee,B,Q,W)}}h||d.push(Pt)}var je=C(" "),ft=C('="'),Pt=C('"'),Ut=C('=""');function $t(d,s,c,h){switch(c){case"style":{we(d,s,h);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(c.length>2&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N"))){var y=Ve(c);if(y!==null){switch(typeof h){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}var M=y.attributeName,B=w(M);switch(y.type){case X:h&&d.push(je,B,Ut);return;case ne:h===!0?d.push(je,B,Ut):h===!1||d.push(je,B,ft,w(pt(h)),Pt);return;case ge:isNaN(h)||d.push(je,B,ft,w(pt(h)),Pt);break;case me:!isNaN(h)&&h>=1&&d.push(je,B,ft,w(pt(h)),Pt);break;default:y.sanitizeURL&&($(h,M),h=""+h,nt(h)),d.push(je,B,ft,w(pt(h)),Pt)}}else if(fe(c)){switch(typeof h){case"function":case"symbol":return;case"boolean":{var W=c.toLowerCase().slice(0,5);if(W!=="data-"&&W!=="aria-")return}}d.push(je,w(c),ft,w(pt(h)),Pt)}}}var _r=C(">"),Yr=C("/>");function _n(d,s,c){if(s!=null){if(c!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))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 h=s.__html;h!=null&&(ie(h),d.push(w(""+h)))}}var xn=!1,ci=!1,Hn=!1,Ai=!1,Qr=!1,mi=!1,zn=!1;function ei(d,s){{var c=d[s];if(c!=null){var h=Et(c);d.multiple&&!h?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!d.multiple&&h&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function xo(d,s,c){bt("select",s),ei(s,"value"),ei(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!Hn&&(i("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"),Hn=!0),d.push(Jt("select"));var h=null,y=null;for(var M in s)if(Y.call(s,M)){var B=s[M];if(B==null)continue;switch(M){case"children":h=B;break;case"dangerouslySetInnerHTML":y=B;break;case"defaultValue":case"value":break;default:$t(d,c,M,B);break}}return d.push(_r),_n(d,y,h),h}function io(d){var s="";return r.Children.forEach(d,function(c){c!=null&&(s+=c,!Qr&&typeof c!="string"&&typeof c!="number"&&(Qr=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}var oo=C(' selected=""');function Ln(d,s,c,h){var y=h.selectedValue;d.push(Jt("option"));var M=null,B=null,W=null,oe=null;for(var Ae in s)if(Y.call(s,Ae)){var Qe=s[Ae];if(Qe==null)continue;switch(Ae){case"children":M=Qe;break;case"selected":W=Qe,zn||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),zn=!0);break;case"dangerouslySetInnerHTML":oe=Qe;break;case"value":B=Qe;default:$t(d,c,Ae,Qe);break}}if(y!=null){var dt;if(B!==null?($(B,"value"),dt=""+B):(oe!==null&&(mi||(mi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),dt=io(M)),Et(y))for(var It=0;It<y.length;It++){$(y[It],"value");var or=""+y[It];if(or===dt){d.push(oo);break}}else $(y,"select.value"),""+y===dt&&d.push(oo)}else W&&d.push(oo);return d.push(_r),_n(d,oe,M),M}function So(d,s,c){bt("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!ci&&(i("%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",s.type),ci=!0),s.value!==void 0&&s.defaultValue!==void 0&&!xn&&(i("%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",s.type),xn=!0),d.push(Jt("input"));var h=null,y=null,M=null,B=null;for(var W in s)if(Y.call(s,W)){var oe=s[W];if(oe==null)continue;switch(W){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=oe;break;case"defaultValue":y=oe;break;case"checked":M=oe;break;case"value":h=oe;break;default:$t(d,c,W,oe);break}}return M!==null?$t(d,c,"checked",M):B!==null&&$t(d,c,"checked",B),h!==null?$t(d,c,"value",h):y!==null&&$t(d,c,"value",y),d.push(Yr),null}function ti(d,s,c){bt("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!Ai&&(i("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"),Ai=!0),d.push(Jt("textarea"));var h=null,y=null,M=null;for(var B in s)if(Y.call(s,B)){var W=s[B];if(W==null)continue;switch(B){case"children":M=W;break;case"value":h=W;break;case"defaultValue":y=W;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:$t(d,c,B,W);break}}if(h===null&&y!==null&&(h=y),d.push(_r),M!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),h!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Et(M)){if(M.length>1)throw new Error("<textarea> can only have at most one child.");ie(M[0]),h=""+M[0]}ie(M),h=""+M}return typeof h=="string"&&h[0]===`
126
126
  `&&d.push(L),h!==null&&($(h,"value"),d.push(w(hn(""+h)))),null}function ri(d,s,c,h){d.push(Jt(c));for(var y in s)if(Y.call(s,y)){var M=s[y];if(M==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error(c+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:$t(d,h,y,M);break}}return d.push(Yr),null}function Wi(d,s,c){d.push(Jt("menuitem"));for(var h in s)if(Y.call(s,h)){var y=s[h];if(y==null)continue;switch(h){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:$t(d,c,h,y);break}}return d.push(_r),null}function Pr(d,s,c){d.push(Jt("title"));var h=null;for(var y in s)if(Y.call(s,y)){var M=s[y];if(M==null)continue;switch(y){case"children":h=M;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:$t(d,c,y,M);break}}d.push(_r);{var B=Array.isArray(h)&&h.length<2?h[0]||null:h;Array.isArray(h)&&h.length>1?i("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"):B!=null&&B.$$typeof!=null?i("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"):B!=null&&typeof B!="string"&&typeof B!="number"&&i("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 h}function Cr(d,s,c,h){d.push(Jt(c));var y=null,M=null;for(var B in s)if(Y.call(s,B)){var W=s[B];if(W==null)continue;switch(B){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;default:$t(d,h,B,W);break}}return d.push(_r),_n(d,M,y),typeof y=="string"?(d.push(w(hn(y))),null):y}function Lr(d,s,c,h){d.push(Jt(c));var y=null,M=null;for(var B in s)if(Y.call(s,B)){var W=s[B];if(W==null)continue;switch(B){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;case"style":we(d,h,W);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:fe(B)&&typeof W!="function"&&typeof W!="symbol"&&d.push(je,w(B),ft,w(pt(W)),Pt);break}}return d.push(_r),_n(d,M,y),y}var L=C(`
127
127
  `);function G(d,s,c,h){d.push(Jt(c));var y=null,M=null;for(var B in s)if(Y.call(s,B)){var W=s[B];if(W==null)continue;switch(B){case"children":y=W;break;case"dangerouslySetInnerHTML":M=W;break;default:$t(d,h,B,W);break}}if(d.push(_r),M!=null){if(y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof M!="object"||!("__html"in M))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 oe=M.__html;oe!=null&&(typeof oe=="string"&&oe.length>0&&oe[0]===`
128
128
  `?d.push(L,w(oe)):(ie(oe),d.push(w(""+oe))))}return typeof y=="string"&&y[0]===`
@@ -153,17 +153,17 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
153
153
  Previous: %s
154
154
  Incoming: %s`,Ki,"["+d.join(", ")+"]","["+s.join(", ")+"]");for(var c=0;c<s.length&&c<d.length;c++)if(!kr(d[c],s[c]))return!1;return!0}function Cc(){if(uo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Di(){return Fr===null?Ss===null?(Qo=!1,Ss=Fr=Cc()):(Qo=!0,Fr=Ss):Fr.next===null?(Qo=!1,Fr=Fr.next=Cc()):(Qo=!0,Fr=Fr.next),Fr}function wc(d,s){Ii=s,ca=d,di=!1,yi=0}function ws(d,s,c,h){for(;qa;)qa=!1,yi=0,uo+=1,Fr=null,c=d(s,h);return Ac(),c}function hi(){var d=yi!==0;return d}function Ac(){di=!1,Ii=null,ca=null,qa=!1,Ss=null,uo=0,Li=null,Fr=null}function Tc(d){return di&&i("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()."),la(d)}function Ec(d){return Ki="useContext",Cs(),la(d)}function As(d,s){return typeof s=="function"?s(d):s}function es(d){return Ki="useState",kc(As,d)}function kc(d,s,c){if(d!==As&&(Ki="useReducer"),Ii=Cs(),Fr=Di(),Qo){var h=Fr.queue,y=h.dispatch;if(Li!==null){var M=Li.get(h);if(M!==void 0){Li.delete(h);var B=Fr.memoizedState,W=M;do{var oe=W.action;di=!0,B=d(B,oe),di=!1,W=W.next}while(W!==null);return Fr.memoizedState=B,[B,y]}}return[Fr.memoizedState,y]}else{di=!0;var Ae;d===As?Ae=typeof s=="function"?s():s:Ae=c!==void 0?c(s):s,di=!1,Fr.memoizedState=Ae;var Qe=Fr.queue={last:null,dispatch:null},dt=Qe.dispatch=Cu.bind(null,Ii,Qe);return[Fr.memoizedState,dt]}}function Su(d,s){Ii=Cs(),Fr=Di();var c=s===void 0?null:s;if(Fr!==null){var h=Fr.memoizedState;if(h!==null&&c!==null){var y=h[1];if(xu(c,y))return h[0]}}di=!0;var M=d();return di=!1,Fr.memoizedState=[M,c],M}function Il(d){Ii=Cs(),Fr=Di();var s=Fr.memoizedState;if(s===null){var c={current:d};return Object.seal(c),Fr.memoizedState=c,c}else return s}function wf(d,s){Ki="useLayoutEffect",i("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 Cu(d,s,c){if(uo>=Sc)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(d===Ii){qa=!0;var h={action:c,next:null};Li===null&&(Li=new Map);var y=Li.get(s);if(y===void 0)Li.set(s,h);else{for(var M=y;M.next!==null;)M=M.next;M.next=h}}}function Vn(d,s){return Su(function(){return d},s)}function Rc(d,s,c){return Cs(),s(d._source)}function wu(d,s,c){if(c===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return c()}function Mi(d){return Cs(),d}function Ll(){throw new Error("startTransition cannot be called during server rendering.")}function ua(){return Cs(),[!1,Ll]}function ts(){var d=ca,s=Po(d.treeContext),c=Ts;if(c===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var h=yi++;return En(c,s,h)}function Ha(){}var Fn={readContext:Tc,useContext:Ec,useMemo:Su,useReducer:kc,useRef:Il,useState:es,useInsertionEffect:Ha,useLayoutEffect:wf,useCallback:Vn,useImperativeHandle:Ha,useEffect:Ha,useDebugValue:Ha,useDeferredValue:Mi,useTransition:ua,useId:ts,useMutableSource:Rc,useSyncExternalStore:wu},Ts=null;function Dl(d){Ts=d}function fa(d){try{var s="",c=d;do{switch(c.tag){case 0:s+=Zi(c.type,null,null);break;case 1:s+=na(c.type,null,null);break;case 2:s+=gu(c.type,null,null);break}c=c.parent}while(c);return s}catch(h){return`
155
155
  Error generating stack: `+h.message+`
156
- `+h.stack}}var Ml=t.ReactCurrentDispatcher,da=t.ReactDebugCurrentFrame,Ol=0,fo=1,Pl=2,Es=3,Au=4,za=0,ha=1,pa=2,Ic=12800;function Tu(d){return console.error(d),null}function ks(){}function Nl(d,s,c,h,y,M,B,W,oe){var Ae=[],Qe=new Set,dt={destination:null,responseState:s,progressiveChunkSize:h===void 0?Ic:h,status:za,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Qe,pingedTasks:Ae,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:y===void 0?Tu:y,onAllReady:M===void 0?ks:M,onShellReady:B===void 0?ks:B,onShellError:W===void 0?ks:W,onFatalError:oe===void 0?ks:oe},It=$a(dt,0,null,c,!1,!1);It.parentFlushed=!0;var or=Fo(dt,d,null,It,Qe,Mn,Al,_f);return Ae.push(or),dt}function No(d,s){var c=d.pingedTasks;c.push(s),c.length===1&&u(function(){return Hc(d)})}function Fl(d,s){return{id:wi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function Fo(d,s,c,h,y,M,B,W){d.allPendingTasks++,c===null?d.pendingRootTasks++:c.pendingTasks++;var oe={node:s,ping:function(){return No(d,oe)},blockedBoundary:c,blockedSegment:h,abortSet:y,legacyContext:M,context:B,treeContext:W};return oe.componentStack=null,y.add(oe),oe}function $a(d,s,c,h,y,M){return{status:Ol,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:h,boundary:c,lastPushedText:y,textEmbedded:M}}var Yi=null;function Xi(){return Yi===null||Yi.componentStack===null?"":fa(Yi.componentStack)}function ho(d,s){d.componentStack={tag:0,parent:d.componentStack,type:s}}function Ua(d,s){d.componentStack={tag:1,parent:d.componentStack,type:s}}function rs(d,s){d.componentStack={tag:2,parent:d.componentStack,type:s}}function Ji(d){d.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var ga=null;function jl(d,s){{var c;typeof s=="string"?c=s:s&&typeof s.message=="string"?c=s.message:c=String(s);var h=ga||Xi();ga=null,d.errorMessage=c,d.errorComponentStack=h}}function Wa(d,s){var c=d.onError(s);if(c!=null&&typeof c!="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 c+'" instead');return c}function ma(d,s){var c=d.onShellError;c(s);var h=d.onFatalError;h(s),d.destination!==null?(d.status=pa,D(d.destination,s)):(d.status=ha,d.fatalError=s)}function Eu(d,s,c){ho(s,"Suspense");var h=s.blockedBoundary,y=s.blockedSegment,M=c.fallback,B=c.children,W=new Set,oe=Fl(d,W),Ae=y.chunks.length,Qe=$a(d,Ae,oe,y.formatContext,!1,!1);y.children.push(Qe),y.lastPushedText=!1;var dt=$a(d,0,null,y.formatContext,!1,!1);dt.parentFlushed=!0,s.blockedBoundary=oe,s.blockedSegment=dt;try{if(ns(d,s,B),vn(dt.chunks,d.responseState,dt.lastPushedText,dt.textEmbedded),dt.status=fo,is(oe,dt),oe.pendingTasks===0){Ji(s);return}}catch(or){dt.status=Au,oe.forceClientRender=!0,oe.errorDigest=Wa(d,or),jl(oe,or)}finally{s.blockedBoundary=h,s.blockedSegment=y}var It=Fo(d,M,h,Qe,W,s.legacyContext,s.context,s.treeContext);It.componentStack=s.componentStack,d.pingedTasks.push(It),Ji(s)}function Lc(d,s,c,h){ho(s,c);var y=s.blockedSegment,M=mr(y.chunks,c,h,d.responseState,y.formatContext);y.lastPushedText=!1;var B=y.formatContext;y.formatContext=Ci(B,c,h),ns(d,s,M),y.formatContext=B,wr(y.chunks,c),y.lastPushedText=!1,Ji(s)}function Dc(d){return d.prototype&&d.prototype.isReactComponent}function Rs(d,s,c,h,y){var M={};wc(s,M);var B=c(h,y);return ws(c,h,B,y)}function Mc(d,s,c,h,y){var M=c.render();c.props!==y&&(Pc||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",un(h)||"a component"),Pc=!0);{var B=h.childContextTypes;if(B!=null){var W=s.legacyContext,oe=mc(c,h,W,B);s.legacyContext=oe,oi(d,s,M),s.legacyContext=W;return}}oi(d,s,M)}function Bl(d,s,c,h){rs(s,c);var y=Zo(c,s.legacyContext),M=co(c,h,y);Ba(M,c,h,y),Mc(d,s,M,c,h),Ji(s)}var vr={},Va={},Oc={},Is={},Pc=!1,ku=!1,Nc=!1,Oi=!1;function Af(d,s,c,h){var y;if(y=Zo(c,s.legacyContext),Ua(s,c),c.prototype&&typeof c.prototype.render=="function"){var M=un(c)||"Unknown";vr[M]||(i("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.",M,M),vr[M]=!0)}var B=Rs(d,s,c,h,y),W=hi();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var oe=un(c)||"Unknown";Va[oe]||(i("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.",oe,oe,oe),Va[oe]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var Ae=un(c)||"Unknown";Va[Ae]||(i("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.",Ae,Ae,Ae),Va[Ae]=!0)}Ba(B,c,h,y),Mc(d,s,B,c,h)}else if(ql(c),W){var Qe=s.treeContext,dt=1,It=0;s.treeContext=_c(Qe,dt,It);try{oi(d,s,B)}finally{s.treeContext=Qe}}else oi(d,s,B);Ji(s)}function ql(d){{if(d&&d.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),typeof d.getDerivedStateFromProps=="function"){var s=un(d)||"Unknown";Is[s]||(i("%s: Function components do not support getDerivedStateFromProps.",s),Is[s]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var c=un(d)||"Unknown";Oc[c]||(i("%s: Function components do not support contextType.",c),Oc[c]=!0)}}}function Hl(d,s){if(d&&d.defaultProps){var c=Ri({},s),h=d.defaultProps;for(var y in h)c[y]===void 0&&(c[y]=h[y]);return c}return s}function Ru(d,s,c,h,y){Ua(s,c.render);var M=Rs(d,s,c.render,h,y),B=hi();if(B){var W=s.treeContext,oe=1,Ae=0;s.treeContext=_c(W,oe,Ae);try{oi(d,s,M)}finally{s.treeContext=W}}else oi(d,s,M);Ji(s)}function zl(d,s,c,h,y){var M=c.type,B=Hl(M,h);Ga(d,s,M,B,y)}function Pi(d,s,c,h){c._context===void 0?c!==c.Consumer&&(Oi||(Oi=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var y=h.children;typeof y!="function"&&i("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 M=la(c),B=y(M);oi(d,s,B)}function kn(d,s,c,h){var y=c._context,M=h.value,B=h.children,W;W=s.context,s.context=vc(y,M),oi(d,s,B),s.context=mf(y),W!==s.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Fc(d,s,c,h,y){ho(s,"Lazy");var M=c._payload,B=c._init,W=B(M),oe=Hl(W,h);Ga(d,s,W,oe,y),Ji(s)}function Ga(d,s,c,h,y){if(typeof c=="function")if(Dc(c)){Bl(d,s,c,h);return}else{Af(d,s,c,h);return}if(typeof c=="string"){Lc(d,s,c,h);return}switch(c){case xl:case qi:case ye:case We:case Eo:{oi(d,s,h.children);return}case Sn:{ho(s,"SuspenseList"),oi(d,s,h.children),Ji(s);return}case pu:throw new Error("ReactDOMServer does not yet support scope components.");case Nr:{Eu(d,s,h);return}}if(typeof c=="object"&&c!==null)switch(c.$$typeof){case sr:{Ru(d,s,c,h,y);return}case Vr:{zl(d,s,c,h,y);return}case Fe:{kn(d,s,c,h);return}case Nt:{Pi(d,s,c,h);return}case ea:{Fc(d,s,c,h);return}}var M="";throw(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(M+=" 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: "+(c==null?c:typeof c)+"."+M))}function $l(d,s){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(ku||i("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."),ku=!0),d.entries===s&&(Nc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nc=!0)}function oi(d,s,c){try{return jc(d,s,c)}catch(h){throw typeof h=="object"&&h!==null&&typeof h.then=="function"||(ga=ga!==null?ga:Xi()),h}}function jc(d,s,c){if(s.node=c,typeof c=="object"&&c!==null){switch(c.$$typeof){case hu:{var h=c,y=h.type,M=h.props,B=h.ref;Ga(d,s,y,M,B);return}case _l: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 W=c,oe=W._payload,Ae=W._init,Qe;try{Qe=Ae(oe)}catch(mo){throw typeof mo=="object"&&mo!==null&&typeof mo.then=="function"&&ho(s,"Lazy"),mo}oi(d,s,Qe);return}}if(Et(c)){Bc(d,s,c);return}var dt=Vo(c);if(dt){$l(c,dt);var It=dt.call(c);if(It){var or=It.next();if(!or.done){var Dr=[];do Dr.push(or.value),or=It.next();while(!or.done);Bc(d,s,Dr);return}return}}var Gn=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+(Gn==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":Gn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof c=="string"){var os=s.blockedSegment;os.lastPushedText=ln(s.blockedSegment.chunks,c,d.responseState,os.lastPushedText);return}if(typeof c=="number"){var go=s.blockedSegment;go.lastPushedText=ln(s.blockedSegment.chunks,""+c,d.responseState,go.lastPushedText);return}typeof c=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Bc(d,s,c){for(var h=c.length,y=0;y<h;y++){var M=s.treeContext;s.treeContext=_c(M,h,y);try{ns(d,s,c[y])}finally{s.treeContext=M}}}function Ul(d,s,c){var h=s.blockedSegment,y=h.chunks.length,M=$a(d,y,null,h.formatContext,h.lastPushedText,!0);h.children.push(M),h.lastPushedText=!1;var B=Fo(d,s.node,s.blockedBoundary,M,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(B.componentStack=s.componentStack.parent);var W=B.ping;c.then(W,W)}function ns(d,s,c){var h=s.blockedSegment.formatContext,y=s.legacyContext,M=s.context,B=null;B=s.componentStack;try{return oi(d,s,c)}catch(W){if(Ac(),typeof W=="object"&&W!==null&&typeof W.then=="function"){Ul(d,s,W),s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Xo(M),s.componentStack=B;return}else throw s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Xo(M),s.componentStack=B,W}}function jo(d,s,c,h){var y=Wa(d,h);if(s===null?ma(d,h):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=y,jl(s,h),s.parentFlushed&&d.clientRenderedBoundaries.push(s))),d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function Tf(d){var s=this,c=d.blockedBoundary,h=d.blockedSegment;h.status=Es,va(s,c,h)}function po(d,s,c){var h=d.blockedBoundary,y=d.blockedSegment;if(y.status=Es,h===null)s.allPendingTasks--,s.status!==pa&&(s.status=pa,s.destination!==null&&_(s.destination));else{if(h.pendingTasks--,!h.forceClientRender){h.forceClientRender=!0;var M=c===void 0?new Error("The render was aborted by the server without a reason."):c;h.errorDigest=s.onError(M);{var B="The server did not finish this Suspense boundary: ";M&&typeof M.message=="string"?M=B+M.message:M=B+String(M);var W=Yi;Yi=d;try{jl(h,M)}finally{Yi=W}}h.parentFlushed&&s.clientRenderedBoundaries.push(h)}if(h.fallbackAbortableTasks.forEach(function(Ae){return po(Ae,s,c)}),h.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var oe=s.onAllReady;oe()}}}function is(d,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null){var c=s.children[0];c.id=s.id,c.parentFlushed=!0,c.status===fo&&is(d,c)}else{var h=d.completedSegments;h.push(s)}}function va(d,s,c){if(s===null){if(c.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=c}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=ks;var h=d.onShellReady;h()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)c.parentFlushed&&c.status===fo&&is(s,c),s.parentFlushed&&d.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(Tf,d),s.fallbackAbortableTasks.clear();else if(c.parentFlushed&&c.status===fo){is(s,c);var y=s.completedSegments;y.length===1&&s.parentFlushed&&d.partialBoundaries.push(s)}}if(d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function qc(d,s){var c=s.blockedSegment;if(c.status===Ol){Xo(s.context);var h=null;h=Yi,Yi=s;try{oi(d,s,s.node),vn(c.chunks,d.responseState,c.lastPushedText,c.textEmbedded),s.abortSet.delete(s),c.status=fo,va(d,s.blockedBoundary,c)}catch(M){if(Ac(),typeof M=="object"&&M!==null&&typeof M.then=="function"){var y=s.ping;M.then(y,y)}else s.abortSet.delete(s),c.status=Au,jo(d,s.blockedBoundary,c,M)}finally{Yi=h}}}function Hc(d){if(d.status!==pa){var s=vu(),c=Ml.current;Ml.current=Fn;var h;h=da.getCurrentStack,da.getCurrentStack=Xi;var y=Ts;Dl(d.responseState);try{var M=d.pingedTasks,B;for(B=0;B<M.length;B++){var W=M[B];qc(d,W)}M.splice(0,B),d.destination!==null&&si(d,d.destination)}catch(oe){Wa(d,oe),ma(d,oe)}finally{Dl(y),Ml.current=c,da.getCurrentStack=h,c===Fn&&Xo(s)}}}function Za(d,s,c){switch(c.parentFlushed=!0,c.status){case Ol:{var h=c.id=d.nextSegmentId++;return c.lastPushedText=!1,c.textEmbedded=!1,qr(s,d.responseState,h)}case fo:{c.status=Pl;for(var y=!0,M=c.chunks,B=0,W=c.children,oe=0;oe<W.length;oe++){for(var Ae=W[oe];B<Ae.index;B++)k(s,M[B]);y=Wl(d,s,Ae)}for(;B<M.length-1;B++)k(s,M[B]);return B<M.length&&(y=b(s,M[B])),y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Wl(d,s,c){var h=c.boundary;if(h===null)return Za(d,s,c);if(h.parentFlushed=!0,h.forceClientRender)return Wn(s,d.responseState,h.errorDigest,h.errorMessage,h.errorComponentStack),Za(d,s,c),Ra(s,d.responseState);if(h.pendingTasks>0){h.rootSegmentID=d.nextSegmentId++,h.completedSegments.length>0&&d.partialBoundaries.push(h);var y=h.id=In(d.responseState);return wo(s,d.responseState,y),Za(d,s,c),Ti(s,d.responseState)}else{if(h.byteSize>d.progressiveChunkSize)return h.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(h),wo(s,d.responseState,h.id),Za(d,s,c),Ti(s,d.responseState);Gi(s,d.responseState);var M=h.completedSegments;if(M.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=M[0];return Wl(d,s,B),Xr(s,d.responseState)}}function zc(d,s,c){return fu(s,d.responseState,c.id,c.errorDigest,c.errorMessage,c.errorComponentStack)}function Ka(d,s,c){return lr(s,d.responseState,c.formatContext,c.id),Wl(d,s,c),Kr(s,c.formatContext)}function Iu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];$c(d,s,c,M)}return h.length=0,La(s,d.responseState,c.id,c.rootSegmentID)}function Lu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];if(!$c(d,s,c,M))return y++,h.splice(0,y),!1}return h.splice(0,y),!0}function $c(d,s,c,h){if(h.status===Pl)return!0;var y=h.id;if(y===-1){var M=h.id=c.rootSegmentID;if(M===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ka(d,s,h)}else return Ka(d,s,h),uf(s,d.responseState,y)}function si(d,s){T();try{var c=d.completedRootSegment;c!==null&&d.pendingRootTasks===0&&(Wl(d,s,c),d.completedRootSegment=null,en(s,d.responseState));var h=d.clientRenderedBoundaries,y;for(y=0;y<h.length;y++){var M=h[y];zc(d,s,M)}h.splice(0,y);var B=d.completedBoundaries;for(y=0;y<B.length;y++){var W=B[y];Iu(d,s,W)}B.splice(0,y),x(s),T(s);var oe=d.partialBoundaries;for(y=0;y<oe.length;y++){var Ae=oe[y];if(!Lu(d,s,Ae)){d.destination=null,y++,oe.splice(0,y);return}}oe.splice(0,y);var Qe=d.completedBoundaries;for(y=0;y<Qe.length;y++){var dt=Qe[y];Iu(d,s,dt)}Qe.splice(0,y)}finally{x(s),d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(s))}}function Qi(d){u(function(){return Hc(d)})}function Ef(d,s){if(d.status===ha){d.status=pa,D(s,d.fatalError);return}if(d.status!==pa&&d.destination===null){d.destination=s;try{si(d,s)}catch(c){Wa(d,c),ma(d,c)}}}function Du(d,s){try{var c=d.abortableTasks;c.forEach(function(h){return po(h,d,s)}),c.clear(),d.destination!==null&&si(d,d.destination)}catch(h){Wa(d,h),ma(d,h)}}function Vl(d,s){return new Promise(function(c,h){var y,M,B=new Promise(function(It,or){M=It,y=or});function W(){var It=new ReadableStream({type:"bytes",pull:function(or){Ef(Ae,or)},cancel:function(or){Du(Ae)}},{highWaterMark:0});It.allReady=B,c(It)}function oe(It){B.catch(function(){}),h(It)}var Ae=Nl(d,Gr(s?s.identifierPrefix:void 0,s?s.nonce:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),gi(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,M,W,oe,y);if(s&&s.signal){var Qe=s.signal,dt=function(){Du(Ae,Qe.reason),Qe.removeEventListener("abort",dt)};Qe.addEventListener("abort",dt)}Qi(Ae)})}Id.renderToReadableStream=Vl,Id.version=e}()),Id}var r0;function T5(){if(r0)return Yl;r0=1;var r,e;return process.env.NODE_ENV==="production"?(r=S5(),e=C5()):(r=w5(),e=A5()),Yl.version=r.version,Yl.renderToString=r.renderToString,Yl.renderToStaticMarkup=r.renderToStaticMarkup,Yl.renderToNodeStream=r.renderToNodeStream,Yl.renderToStaticNodeStream=r.renderToStaticNodeStream,Yl.renderToReadableStream=e.renderToReadableStream,Yl}var o2=T5();const js=cl(o2);function qf(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Jc={_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 i,l,u,f,p,m;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const T=this._canvas.getContext("2d");if(T){T.font=e;const k=T.measureText(r).width;return this._charWidthMap.set(t,k),k}}catch{}let n;return r===" "?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((p=e.match(/(\d+)px/))==null?void 0:p[1])||"14")*.25:n=parseInt(((m=e.match(/(\d+)px/))==null?void 0:m[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(S.isValidElement(r))try{const t=o2.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 l;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,i=this._cache.get(n);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const u=this._canvas.getContext("2d");if(u){u.font=t;const f=u.measureText(r),p=Math.ceil(f.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(T=>this._cache.delete(T)),this._cache.set(n,p),p}}catch{}try{const u=document.createElement("span");u.style.font=t,u.style.position="absolute",u.style.visibility="hidden",u.style.whiteSpace="nowrap",u.textContent=r,document.body.appendChild(u);const f=Math.ceil(u.getBoundingClientRect().width);return document.body.removeChild(u),this._cache.set(n,f),f}catch{}try{let u=0;for(let p=0;p<r.length;p++)u+=this.measureCharWidth(r[p],t);u*=.95;const f=Math.ceil(u);return this._cache.set(n,f),f}catch{}try{const u=parseInt(((l=t.match(/(\d+)px/))==null?void 0:l[1])||"14");let f=0;for(let m=0;m<r.length;m++){const T=r[m];T===" "?f+=.33:/^[A-Z]$/.test(T)?f+=.67:/^[a-z]$/.test(T)?f+=.5:/^\d$/.test(T)?f+=.6:/^[.,;:!?]$/.test(T)?f+=.25:f+=.67}const p=Math.ceil(f*u);return this._cache.set(n,p),p}catch{const f=r.length*10;return this._cache.set(n,f),f}},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:i="",optionRenderer:l,type:u="Primary",isMulti:f=!1}){if(!r.current)return 200;try{let p=0;if(e&&e.length>0){const x=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(I,w)=>e[Math.floor(w*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],_=Array.from(new Set(x.filter(Boolean)));for(const I of _){if(!I)continue;const w=this.measureRenderedOptionWidth(I,l);p=Math.max(p,w)}}let m=0;if(!f&&t)m=this.measureRenderedOptionWidth(t,l);else if(f&&n&&n.length){if(n.length===1)m=this.measureRenderedOptionWidth(n[0],l);else if(m=this.measureTextWidth(`${n.length} selected`),n.length>0){let x=0;for(const _ of n){const I=this.measureRenderedOptionWidth(_,l);x=Math.max(x,I)}m=Math.max(m,x)}}let T=0;i&&(T=this.measureReactNodeWidth(i));const b=Math.max(p,m,T,50);if(r.current){const x=window.getComputedStyle(r.current),_=parseFloat(x.paddingLeft||"0")+parseFloat(x.paddingRight||"0"),I=parseFloat(x.borderLeftWidth||"0")+parseFloat(x.borderRightWidth||"0"),w=u==="Primary"?30:20,C=f?24:0,D=Math.ceil(b*.05)+10;return Math.ceil(b+_+I+w+C+D)}return b+60}catch{return 200}}};var _i=(r=>(r.N="North",r.S="South",r.E="East",r.W="West",r))(_i||{}),sf=(r=>(r.N="North",r.NW="NorthWest",r.NE="NorthEast",r.S="South",r.SW="SouthWest",r.SE="SouthEast",r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(sf||{});function vm(r,e,t,n){if(!r.current||!e.current)return;const i=r.current.getBoundingClientRect(),l=e.current.getBoundingClientRect();let u={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":u=l?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-l.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":u={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":u={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":u=l?{top:i.bottom,left:i.left+i.width/2-l.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":u={top:i.bottom,left:i.left};break;case"SouthEast":u={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":u=l?{top:i.top+i.height/2-l.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":u={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":u={top:i.top,left:i.right};break;case"West":u=l?{top:i.top+i.height/2-l.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":u={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":u={top:i.top,right:window.innerWidth-i.left};break;default:u={top:i.top,left:i.left}}n&&(n.x&&u.left&&(u.left+=n.x),n.y&&u.top&&(u.top+=n.y)),u=a2(u,l),e.current.style.top=u.top+"px",e.current.style.left=u.left+"px",e.current.style.bottom=u.bottom+"px",e.current.style.right=u.right+"px"}function s2(r,e,t,n){if(!r)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const l=r.getBoundingClientRect(),u=i.getBoundingClientRect();let f={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":f=u?{bottom:window.innerHeight-l.top,left:l.left+l.width/2-u.width/2}:{bottom:window.innerHeight-l.top,left:l.left};break;case"NorthWest":f={bottom:window.innerHeight-l.top,left:l.left};break;case"NorthEast":f={bottom:window.innerHeight-l.top,right:window.innerWidth-l.left-l.width};break;case"South":f=u?{top:l.bottom,left:l.left+l.width/2-u.width/2}:{top:l.bottom,left:l.left};break;case"SouthWest":f={top:l.bottom,left:l.left};break;case"SouthEast":f={top:l.bottom,right:window.innerWidth-l.left-l.width};break;case"East":f=u?{top:l.top+l.height/2-u.height/2,left:l.right}:{top:l.top,left:l.right};break;case"EastNorth":f={bottom:window.innerHeight-l.top-l.height,left:l.right};break;case"EastSouth":f={top:l.top,left:l.right};break;case"West":f=u?{top:l.top+l.height/2-u.height/2,right:window.innerWidth-l.left}:{top:l.top,right:window.innerWidth-l.left};break;case"WestNorth":f={bottom:window.innerHeight-l.top-l.height,right:window.innerWidth-l.left};break;case"WestSouth":f={top:l.top,right:window.innerWidth-l.left};break;default:f={top:l.top,left:l.left}}return n&&(n.x&&f.left&&(f.left+=n.x),n.y&&f.top&&(f.top+=n.y)),f=a2(f,u),i.style.top=f.top+"px",i.style.left=f.left+"px",i.style.bottom=f.bottom+"px",i.style.right=f.right+"px",f}function a2(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 Yc(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const E5="_Tooltip_3l8se_1",k5="_Arrow_3l8se_17",n0={Tooltip:E5,Arrow:k5},l2=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:i=10,direction:l=_i.S}=r,[u,f]=S.useState(!1),p=S.useRef(null),m=S.useRef(null),T=S.useRef(),k=S.useCallback(()=>{f(!0),T.current&&(clearTimeout(T.current),T.current=void 0);const I=setTimeout(()=>i0(t,p,m,i,l),n);T.current=I},[t,n,i,l]),b=S.useCallback(()=>f(!1),[]);S.useEffect(()=>{const I=t.current;if(I)return I.addEventListener("mouseenter",k),I.addEventListener("mouseleave",b),()=>{I.removeEventListener("mouseenter",k),I.removeEventListener("mouseleave",b)}},[t,b,k]);const x=S.useCallback(()=>{i0(t,p,m,i,l)},[t,i,l]);S.useEffect(()=>{if(!t.current||!p.current||!u)return;const I=t.current.parentElement;let w=I;for(;w;)w.addEventListener("scroll",x),w=w.parentElement;return()=>{let C=I;for(;C;)C.removeEventListener("scroll",x),C=C.parentElement}},[t,x,u]),S.useEffect(()=>{x()},[e,x]);const _=S.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!u||_?null:zs.createPortal(v.jsxs("div",{className:Ne.clsx(n0.Tooltip,"NoSelect"),ref:p,children:[e,v.jsx("div",{ref:m,className:n0.Arrow})]}),document.body)},Ld="5px solid var(--ATooltip_background-color)";function i0(r,e,t,n,i=_i.S){if(!r.current||!e.current||!t.current)return;const l=R5(r.current,e.current,n,i);if(!l)return;const{left:u,top:f,arrowDir:p,arrow:m}=l;e.current.style.left=`${u}px`,e.current.style.top=`${f}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",p===_i.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderBottom=Ld):p===_i.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderTop=Ld):p===_i.W?(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=Ld):p===_i.E&&(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=Ld)}const Xl=5;function R5(r,e,t,n){const i=r.getBoundingClientRect(),l=e.getBoundingClientRect();function u(){if(window.innerHeight-i.bottom>l.height+t){const T=i.bottom+t,k=i.left+(i.width-l.width)/2,b=qf(k,Xl,window.innerWidth-Xl-l.width),x=_i.N;return{left:b,top:T,arrowDir:x,arrow:{left:k-b}}}}function f(){if(i.top>l.height+t){const T=i.top-l.height-t,k=i.left+(i.width-l.width)/2,b=qf(k,Xl,window.innerWidth-Xl-l.width),x=_i.S;return{left:b,top:T,arrowDir:x,arrow:{left:k-b}}}}function p(){if(window.innerWidth-i.right>l.width+t){const T=i.right+t,k=i.top+(i.height-l.height)/2,b=qf(k,Xl,window.innerHeight-Xl-l.height),x=_i.W;return{left:T,top:b,arrowDir:x,arrow:{top:k-b}}}}function m(){if(i.left>l.width+t){const T=i.left-l.width-t,k=i.top+(i.height-l.height)/2,b=qf(k,Xl,window.innerHeight-Xl-l.height),x=_i.E;return{left:T,top:b,arrowDir:x,arrow:{top:k-b}}}}if(n===_i.E)return p()||m()||u()||f();if(n===_i.S)return u()||f()||p()||m();if(n===_i.W)return m()||p()||u()||f();if(n===_i.N)return f()||u()||p()||m()}const I5="_ABase_c7a1t_1",L5="_UseDimming_c7a1t_6",D5="_Dimmer_c7a1t_6",M5="_Spinner_c7a1t_9",O5="_Dimmed_c7a1t_12",P5="_HasProgress_c7a1t_18",N5="_IsDimmed_c7a1t_36",F5="_IsLoading_c7a1t_41",j5="_IsDisabled_c7a1t_46",Fu={ABase:I5,UseDimming:L5,Dimmer:D5,Spinner:M5,Dimmed:O5,HasProgress:P5,IsDimmed:N5,IsLoading:F5,IsDisabled:j5},Ur=r=>{const{children:e,abaseRef:t,isDisabled:n,isLoading:i,isDimmed:l,tooltip:u,tooltipDistance:f=10,tooltipDelay:p=0,tooltipDirection:m=_i.S,progress:T,progressProps:k,...b}=r,x=S.useRef(null),_=S.useMemo(()=>t??x,[t]),I=S.useMemo(()=>typeof n=="string"&&n!==""?n:u!==void 0?u:"",[n,u]),w=S.useMemo(()=>n||i||l,[n,i,l]),C=S.useMemo(()=>n!==void 0||i!==void 0||l!==void 0,[n,i,l]),D=typeof T=="number"&&i;return v.jsxs("div",{...b,className:Ne.clsx(b.className,Fu.ABase,C&&Fu.UseDimming,w&&Fu.Dimmed,D&&Fu.HasProgress),ref:_,children:[e,C&&v.jsx("div",{className:Ne.sclsx(Fu,"Dimmer",n&&"IsDisabled",i&&"IsLoading",l&&"IsDimmed",D&&"HasProgress")}),i&&v.jsxs("div",{className:Ne.sclsx(Fu,"Spinner",n&&"IsDisabled",i&&"IsLoading",D&&"HasProgress"),children:[v.jsx(Br,{icon:"Spinner"}),D&&v.jsx(i2,{progress:T,...k})]}),v.jsx(l2,{tooltip:I,delay:p,distance:f,direction:m,targetRef:_})]})},B5="_AButton_vulhu_1",q5="_Primary_vulhu_14",H5="_Secondary_vulhu_19",z5="_Alter_vulhu_24",$5="_AIconButton_vulhu_30",U5="_AThemeButton_vulhu_71",Qf={AButton:B5,Primary:q5,Secondary:H5,Alter:z5,AIconButton:$5,AThemeButton:U5},W5=["Primary","Secondary","Alter","Raw"],ji=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...i}=r,l=S.useMemo(()=>i.isDisabled||i.isLoading,[i.isDisabled,i.isLoading]),u=S.useCallback(f=>{l||t==null||t(f)},[l,t]);return v.jsx(Ur,{...i,className:Ne.clsx(i.className,Qf.AButton,e!=="Raw"&&Qf[e],"IsClickable",!l&&!n&&"IsInteractive"),onClick:u})},V5=["Primary","Secondary","Raw"],pi=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:i,isDisabled:l,isLoading:u,tooltip:f,className:p,...m}=r,T=S.useMemo(()=>l||u,[l,u]),k=S.useCallback(x=>{T||i==null||i(x)},[T,i]),b=S.useMemo(()=>mm.includes(e)?v.jsx(Br,{icon:e,size:t}):e,[e,t]);return v.jsx(Ur,{className:Ne.clsx(Qf.AIconButton,!l&&!u&&"IsClickable",n!=="Raw"&&Qf[n],p),onClick:k,isDisabled:l,isLoading:u,tooltip:f,...m,children:b})};function dn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=S.useState(e);return S.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const G5="_AWrap_16uyn_1",Z5="_Label_16uyn_8",K5="_Asterisk_16uyn_19",Y5="_HelperTextConatiner_16uyn_23",X5="_HelperText_16uyn_23",ju={AWrap:G5,Label:Z5,Asterisk:K5,HelperTextConatiner:Y5,HelperText:X5,Error:"_Error_16uyn_38"},J5=["Default","Error"],ic=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:i="Default",label:l,labelProps:u,children:f}=r,p=S.useRef(null),[m,T]=S.useState({height:0}),k=S.useRef(null),[b,x]=S.useMemo(()=>{let I=n,w=i;if(Array.isArray(t)){const C=t.filter(Boolean);C.length>0&&([I,w]=[C,"Error"])}else t&&([I,w]=[t,"Error"]);return Array.isArray(I)&&(w!=="Error"&&(I=I.filter(Boolean)),I=I.map((C,D)=>v.jsxs(S.Fragment,{children:[C,v.jsx("br",{})]},D))),[I,w]},[n,t,i]);S.useEffect(()=>{if(!b||!p.current)T({height:0});else{const I=p.current.getBoundingClientRect();T({height:I.height,marginTop:I.height===0?0:6})}},[b]);const _=S.useMemo(()=>{switch(typeof(u==null?void 0:u.prefix)){case"string":return v.jsx(Br,{width:"1rem",height:"1rem",icon:u.prefix});case"boolean":return v.jsx(Br,{width:10,height:10,icon:"Target"});default:return u==null?void 0:u.prefix}},[u==null?void 0:u.prefix]);return v.jsxs("div",{...e,className:Ne.clsx(e==null?void 0:e.className,ju.AWrap),ref:k,children:[l&&v.jsxs("div",{className:Ne.clsx(ju.Label,"NoSelect",u==null?void 0:u.className),style:u==null?void 0:u.style,children:[_,l,(u==null?void 0:u.asterisk)&&v.jsx(Ur,{tooltip:sn.AWrap.Asterisk,className:ju.Asterisk,children:"*"})]}),f,b!==void 0&&v.jsx("div",{className:Ne.clsx(ju.HelperTextConatiner,"NoSelect"),style:m,children:v.jsx("div",{className:Ne.clsx(ju.HelperText,ju[x]),ref:p,children:b})})]})},Q5="_ASwitch_1uv2e_1",eT="_Track_1uv2e_6",tT="_Truthy_1uv2e_13",rT="_Thumb_1uv2e_17",Of={ASwitch:Q5,Track:eT,Truthy:tT,Thumb:rT},c2=r=>{const{wrapProps:e,helperText:t,label:n,useCheck:i,...l}=r,[u,f]=dn(i,!1),p=S.useCallback(m=>{var T;l.isDisabled||l.isLoading||(f==null||f(!u),(T=l.onClick)==null||T.call(l,m))},[l,u,f]);return v.jsx(ic,{helperText:t,label:n,wrapProps:{...e},children:v.jsx(Ur,{...l,className:Of.ASwitch,onClick:p,children:v.jsx("div",{className:Ne.clsx(Of.Track,u&&Of.Truthy),children:v.jsx("div",{className:Ne.clsx(Of.Thumb,u&&Of.Truthy)})})})})},nT={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","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","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"}}},Si=K_.cloneDeep(nT);rr.keys(Si.semantic).forEach(r=>{const e=Si.semantic[r];rr.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const uh=rr.keys(Si.palette),u2=rr.keys(Si.palette[uh[0]]);function iT(){return li.paletteMode}function oT(r,e=li.paletteMode){return Si.palette[e][r]}function sT(r){return dh(r)}const Qd=[];function f2(r){li.paletteMode=r,u2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Si.palette[r][e])),Qd.forEach(e=>e(r))}function d2(r,e="all"){rr.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?uh.forEach(l=>{Si.palette[l][n]=i}):Si.palette[e][n]=i)})}const Ju=rr.keys(Si.semantic),h2=rr.keys(Si.semantic[Ju[0]]);function aT(){return li.semanticMode}function lT(r,e=li.semanticMode){return Si.semantic[e][r]}function cT(r){return dh(r)}const eh=[];function ym(r){li.semanticMode=r,document.documentElement.setAttribute("data-theme",r),h2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Si.semantic[r][e])),eh.forEach(e=>e(r)),li.save==="localStorage"?localStorage.setItem("semanticMode",r):li.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function p2(r,e=li.semanticMode){rr.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?Ju.forEach(l=>{Si.semantic[l][n]=i}):Si.semantic[e][n]=i)})}const g2=["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"],m2=["ABase_Dimming_background-color"],v2=["ATooltip_background-color","ATooltip_color"],y2=["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"],b2=["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"],_2=["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"],x2=["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_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"],S2=["ACheckBox_color"],C2=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],w2=["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"],A2=["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"],T2=["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"],E2=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],k2=["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"],R2=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],I2=["AListView_border-thin","AListView_border-thick"],L2=["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"],D2=["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"],M2=["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"],O2=["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"],P2=["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"],N2=["ADivideFrame_DividerInner_background-color"],F2=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],j2=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],B2=["AWrap_Error_color"],q2=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],H2=["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"],uT=[...g2,...m2,...v2,...y2,...b2,..._2,...x2,...S2,...C2,...w2,...A2,...T2,...E2,...k2,...R2,...I2,...L2,...D2,...M2,...O2,...P2,...N2,...F2,...j2,...B2,...q2,...H2],fh={"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_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)","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 fT(r){return fh[r]}function dT(r){return dh(r)}function z2(r){rr.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),fh[t]=n)})}function hT(r){rr.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const i=Si.semantic[li.semanticMode][n];i!==void 0&&(document.documentElement.style.setProperty(t,i),fh[t]=i)})}const li={paletteMode:uh[0],semanticMode:Ju[0],save:"",followDeviceSetting:!1};function pT({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(li.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),i=u=>{li.semanticMode=u.matches?"dark":"light"};i(n);const l=u=>i(u);n.addEventListener("change",l)}if(e!==void 0){if(li.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");Ju.includes(n)&&(li.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");Ju.includes(n)&&(li.semanticMode=n)}}r!==void 0&&(li.semanticMode=r),f2(li.paletteMode),ym(li.semanticMode),d2(Si.palette[li.paletteMode]),p2(Si.semantic[li.semanticMode]),z2(fh)}function gT(r){r.type==="semanticModeChange"?eh.push(r.listener):r.type==="paletteModeChange"?Qd.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function mT(r){if(r.type==="semanticModeChange"){const e=eh.indexOf(r.listener);e!==-1&&eh.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Qd.indexOf(r.listener);e!==-1&&Qd.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function dh(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function vT(r){Object.assign(Ne.additionalClasses,r),Ne.updateKeys(),Ne.additionalClasses=Ne.additionalClasses}const Hf={getCurrentPaletteMode:iT,getPaletteValue:oT,getPaletteDeepValue:sT,changePaletteMode:f2,editPalette:d2,getCurrentSemanticMode:aT,getSemanticValue:lT,getSemanticDeepValue:cT,changeSemanticMode:ym,editSemantic:p2,getComponentStyleValue:fT,getComponentStyleDeepValue:dT,editComponentStyle:z2,editComponentStyleWithSemantic:hT,init:pT,addEventListener:gT,removeEventListener:mT,getDeepValue:dh,addClasses:vT},yT=r=>{const{onChange:e,onClick:t,type:n="Icon",...i}=r,[l,u]=S.useState(Hf.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),f=S.useCallback(p=>{const m=Hf.getCurrentSemanticMode();let T="light";m==="light"?T="dark":m==="dark"&&(T="light"),Hf.changeSemanticMode(T),u(bT[T]),e==null||e(T),t==null||t(p)},[e,t]);if(n==="Icon")return v.jsx(pi,{...i,className:Ne.clsx(Qf.AThemeButton,i.className,"IsInteractive"),type:"Raw",icon:l,onClick:f});if(n==="Switch")return v.jsx(c2,{...i,useCheck:[Hf.getCurrentSemanticMode()==="dark",f]})},bT={light:"Sun",dark:"Moon"},_T="_ACheckBoxWrap_1ozuz_1",xT="_ACheckBox_1ozuz_1",o0={ACheckBoxWrap:_T,ACheckBox:xT},Qu=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:i,onClick:l,...u}=r,[f,p]=dn(e,!1),m=S.useCallback(T=>{n||i||(p==null||p(!f),l==null||l(T))},[n,i,l,f,p]);return v.jsx(Ur,{...u,className:Ne.clsx(u.className,o0.ACheckBoxWrap),isDisabled:n,isLoading:i,onClick:m,children:v.jsx(Br,{className:o0.ACheckBox,icon:t?"Check.Indeterminate":f?"Check.Checked":"Check.UnChecked"})})};function ST(r){return typeof r=="function"}function CT(r,e){return ST(r)?r(e):r}const Ir={getContent:CT};class s0{constructor(e){ct(this,"capacity");ct(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 Xc=class Xc{constructor(){ct(this,"databases",{});ct(this,"caches",{});ct(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return Xc.instance||(Xc.instance=new Xc),Xc.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new s0(this.DEFAULT_CACHE_SIZE)),this.caches[n]}async getDB(e,t,n=1){return this.databases[e]?this.databases[e]:new Promise((i,l)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),l(new Error("IndexedDB not supported"));return}const u=window.indexedDB.open(e,n);u.onerror=f=>{console.error("IndexedDB 연결 오류:",f.target.error),l(f.target.error)},u.onsuccess=f=>{const p=f.target.result;this.databases[e]=p,i(p)},u.onupgradeneeded=f=>{const p=f.target.result;p.objectStoreNames.contains(t)||p.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,n){this.getCache(e,t).put(n.id,{...n});const f=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((p,m)=>{const T=f.put(n);T.onsuccess=()=>p(),T.onerror=k=>{console.error("데이터 저장 오류:",k.target.error),m(k.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const i=this.getCache(e,t);n.forEach(p=>i.put(p.id,{...p}));const u=(await this.getDB(e,t)).transaction([t],"readwrite"),f=u.objectStore(t);return new Promise((p,m)=>{u.oncomplete=()=>p(),u.onerror=T=>{console.error("배치 저장 오류:",T.target.error),m(T.target.error)},n.forEach(T=>f.put(T))})}async get(e,t,n){const i=this.getCache(e,t),l=i.get(n);if(l)return l;const p=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((m,T)=>{const k=p.get(n);k.onsuccess=()=>{const b=k.result;b&&i.put(n,b),m(b||null)},k.onerror=b=>{console.error("데이터 조회 오류:",b.target.error),T(b.target.error)}})}async getByIndex(e,t,n,i){const p=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((m,T)=>{const k=p.getAll(i);k.onsuccess=()=>{const b=k.result,x=this.getCache(e,t);b.forEach(_=>{_&&_.id&&x.put(_.id,_)}),m(b)},k.onerror=b=>{console.error("인덱스 조회 오류:",b.target.error),T(b.target.error)}})}async delete(e,t,n){this.getCache(e,t).delete(n);const f=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((p,m)=>{const T=f.delete(n);T.onsuccess=()=>p(),T.onerror=k=>{console.error("데이터 삭제 오류:",k.target.error),m(k.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const i=this.getCache(e,t);n.forEach(p=>i.delete(p));const u=(await this.getDB(e,t)).transaction([t],"readwrite"),f=u.objectStore(t);return new Promise((p,m)=>{u.oncomplete=()=>p(),u.onerror=T=>{console.error("배치 삭제 오류:",T.target.error),m(T.target.error)},n.forEach(T=>f.delete(T))})}async getAll(e,t){const l=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((u,f)=>{const p=l.getAll();p.onsuccess=()=>{const m=p.result,T={},k=this.getCache(e,t);m.forEach(b=>{b.id&&(T[b.id]=b,k.put(b.id,b))}),u(T)},p.onerror=m=>{console.error("데이터 전체 조회 오류:",m.target.error),f(m.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const u=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((f,p)=>{const m=u.clear();m.onsuccess=()=>f(),m.onerror=T=>{console.error("데이터 초기화 오류:",T.target.error),p(T.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 i=`${e}_${t}`,u=this.getCache(e,t).entries();this.caches[i]=new s0(n);for(const[f,p]of u)this.caches[i].get(f)===void 0&&f!==void 0&&this.caches[i].put(f,p)}};ct(Xc,"instance");let U1=Xc;const Ms=U1.getInstance(),Ns={save:(r,e,t)=>Ms.save(r,e,t),get:(r,e,t)=>Ms.get(r,e,t),delete:(r,e,t)=>Ms.delete(r,e,t),getAll:(r,e)=>Ms.getAll(r,e),clear:(r,e)=>Ms.clear(r,e),batchSave:(r,e,t)=>Ms.batchSave(r,e,t),batchDelete:(r,e,t)=>Ms.batchDelete(r,e,t),getByIndex:(r,e,t,n)=>Ms.getByIndex(r,e,t,n),getCached:(r,e,t)=>Ms.getCached(r,e,t),clearCached:(r,e)=>Ms.clearCached(r,e),setCacheSize:(r,e,t)=>Ms.setCacheSize(r,e,t)};function $2(r,e,t={}){const{dataFieldName:n="data"}=t,[i,l]=S.useState(!1),[u,f]=S.useState(null),p=S.useRef(new Map);S.useEffect(()=>{const ie=p.current;return()=>{ie.forEach(Y=>Y.abort()),ie.clear()}},[]);const m=S.useCallback(ie=>{const Y=p.current,se=Y.get(ie);se&&se.abort();const q=new AbortController;return Y.set(ie,q),q},[]),T=S.useCallback(ie=>{p.current.delete(ie)},[]),k=S.useCallback(async(ie,Y)=>{try{l(!0),f(null),m(ie);const se=await Y();return T(ie),se}catch(se){return se instanceof Error&&se.name==="AbortError"||f(se instanceof Error?se:new Error(String(se))),null}finally{l(!1)}},[m,T]),b=S.useCallback(async(ie,Y)=>ie?await k(`save_${ie}`,async()=>(await Ns.save(r,e,{id:ie,[n]:Y,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,k]),x=S.useCallback(async ie=>ie.length?await k(`batch_save_${Date.now()}`,async()=>{const Y=ie.map(se=>({id:se.id,[n]:se.data,updatedAt:new Date().toISOString()}));return await Ns.batchSave(r,e,Y),!0})===!0:!1,[r,e,n,k]),_=S.useCallback(async ie=>ie?await k(`get_${ie}`,async()=>{const Y=await Ns.get(r,e,ie);return(Y==null?void 0:Y[n])||null}):null,[r,e,n,k]),I=S.useCallback(ie=>{if(!ie)return null;const Y=Ns.getCached(r,e,ie);return(Y==null?void 0:Y[n])||null},[r,e,n]),w=S.useCallback(async ie=>ie?await k(`delete_${ie}`,async()=>(await Ns.delete(r,e,ie),!0))===!0:!1,[r,e,k]),C=S.useCallback(async ie=>ie.length?await k(`batch_delete_${Date.now()}`,async()=>(await Ns.batchDelete(r,e,ie),!0))===!0:!1,[r,e,k]),D=S.useCallback(async()=>await k(`get_all_${Date.now()}`,async()=>{const ie=await Ns.getAll(r,e);return Object.entries(ie).reduce((Y,[se,q])=>(Y[se]=q[n],Y),{})})||{},[r,e,n,k]),O=S.useCallback(async()=>await k(`clear_all_${Date.now()}`,async()=>(await Ns.clear(r,e),!0))===!0,[r,e,k]),F=S.useCallback(ie=>{const Y=p.current.get(ie);Y&&(Y.abort(),p.current.delete(ie))},[]),j=S.useCallback(()=>{new Map(p.current).forEach(Y=>Y.abort()),p.current.clear()},[]),$=S.useCallback(ie=>{Ns.setCacheSize(r,e,ie)},[r,e]),Z=S.useCallback(()=>{Ns.clearCached(r,e)},[r,e]);return{save:b,get:_,delete:w,getAll:D,clearAll:O,batchSave:x,batchDelete:C,getCached:I,setCacheSize:$,clearCache:Z,cancelOperation:F,cancelAllOperations:j,isLoading:i,error:u}}const wT="LayoutDB",AT="layouts";function U2(){const r=$2(wT,AT,{dataFieldName:"lengths"}),[e,t]=S.useState({}),n=S.useRef({}),i=async(T,k)=>await r.save(T,k),l=async T=>await r.get(T),u=T=>r.getCached(T),f=T=>{const k=u(T);return k?{data:k,isLoaded:!0}:n.current[T]!==void 0?{data:n.current[T],isLoaded:!!e[T]}:(e[T]||(n.current[T]=null,l(T).then(b=>{n.current[T]=b,t(x=>({...x,[T]:!0}))})),{data:null,isLoaded:!1})},p=async T=>(t(k=>{const b={...k};return delete b[T],b}),n.current[T]!==void 0&&delete n.current[T],await r.delete(T)),m=S.useCallback(()=>{t({}),n.current={}},[]);return{save:i,get:l,getCached:u,getSync:f,deleteItem:p,resetSyncState:m,isLoading:r.isLoading,error:r.error}}const TT="_ARowFrame_b1se5_1",ET="_AColFrame_b1se5_7",kT="_AOverflowFrame_b1se5_13",RT="_ADivideFrame_b1se5_22",IT="_Row_b1se5_30",LT="_Col_b1se5_33",DT="_FadeIn_b1se5_36",MT="_NoTransition_b1se5_39",OT="_ChildFrame_b1se5_43",PT="_Divider_b1se5_61",NT="_IsMoving_b1se5_69",FT="_NoDraggable_b1se5_69",jT="_DividerInner_b1se5_72",BT="_IsClicked_b1se5_97",qT="_RemoteButton_b1se5_132",HT="_isExpanded_b1se5_137",ai={ARowFrame:TT,AColFrame:ET,AOverflowFrame:kT,ADivideFrame:RT,Row:IT,Col:LT,FadeIn:DT,NoTransition:MT,ChildFrame:OT,Divider:PT,IsMoving:NT,NoDraggable:FT,DividerInner:jT,IsClicked:BT,RemoteButton:qT,isExpanded:HT},An=r=>v.jsx(Ur,{...r,className:Ne.clsx(ai.ARowFrame,r.className),children:r.children}),W2=r=>v.jsx("div",{...r,className:Ne.clsx(ai.AColFrame,r.className),children:r.children}),wa=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:i,className:l,noOverflowTooltip:u,...f}=r,p=S.useRef(null),m=S.useMemo(()=>n??p,[n]),[T,k]=S.useState(!1),b=S.useCallback(()=>k(!0),[]),x=S.useCallback(()=>k(!1),[]);S.useEffect(()=>{const I=m.current;if(I)return I.addEventListener("mouseenter",b),I.addEventListener("mouseleave",x),()=>{I.removeEventListener("mouseenter",b),I.removeEventListener("mouseleave",x)}},[m,b,x]);const _=S.useMemo(()=>i?"":u||!T||!m.current?e:m.current.scrollWidth>m.current.clientWidth?t:e,[m,i,t,e,u,T]);return v.jsx(Ur,{...f,isDisabled:i,children:t,abaseRef:m,tooltip:_,className:Ne.clsx(ai.AOverflowFrame,l)})},V2=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:v.jsx(S.Suspense,{children:t[e]})},G2=S.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:i=40,children:l,childStyle:u,childClassName:f,dividerStyle:p,dividerClassName:m,dividerPadding:T,dividerInnerClassName:k,dividerInnerStyle:b,showRemote:x,noDividerDraggable:_,resources:I,remoteButtonClassName:w,...C}=r,D=S.useMemo(()=>({...sn.ADivideFrame,...I}),[I]),O=S.useRef(null),F=S.useRef(!1),j=S.useRef(!0),$=S.useRef(n),[Z,ie]=S.useState(),[Y,se]=S.useState(n),[q,J]=S.useState("FadeOut"),[X,ne]=S.useState(!1),{save:ge,getSync:me,deleteItem:ve}=U2(),de=S.useCallback(()=>{j.current&&requestAnimationFrame(()=>{j.current=!1,J("FadeIn")})},[]),De=S.useMemo(()=>{let xe;return Array.isArray(l)?xe=l:xe=[l],xe.filter(Boolean)},[l]),ue=S.useMemo(()=>e&&!x,[e,x]),le=S.useCallback(()=>{if(!ue){de();return}try{const xe=String(e),{data:Se,isLoaded:be}=me(xe);Se?(se(Se),be&&de()):be?(se(n),ge(String(e),n),de()):se(n)}catch{se(n),de()}},[ue,de,e,me,n,ge]);S.useEffect(()=>{if(ue){le();const xe=String(e),Se=()=>{const{isLoaded:be}=me(xe);be?de():requestAnimationFrame(Se)};Se()}else de()},[ue,le,de,e,me]),S.useEffect(()=>{$.current!==n&&($.current=n,F.current||(se(n),ue&&ge(String(e),n)),F.current=!1)},[ue,n,e,ge]);const fe=S.useMemo(()=>{const xe=T??0;return typeof i=="number"?Array(De.length).fill(i+xe):i.map(Se=>Se+xe)},[i,De.length,T]),Me=S.useMemo(()=>(Z==null?void 0:Z.lefts)||Y,[Z,Y]),Ve=S.useRef({x:0,y:0}),pe=S.useCallback((xe,Se,be)=>{const Le=Me[xe],$e=xe===0?0:Me[xe-1],bt=Le-$e,Ge={...u,...zT(t,bt,Se)};return T!==void 0&&(t==="Row"?(be||(Ge.paddingLeft=T),Se||(Ge.paddingRight=T)):(be||(Ge.paddingTop=T),Se||(Ge.paddingBottom=T))),Ge},[Me,u,t,T]),ke=S.useCallback(()=>{if(!(!x||t!=="Row")){if(X)se(n),F.current=!1;else{const xe=De.length;if(xe<=1)return;const Se=[],be=[];for(let $e=0;$e<xe;$e++)typeof i=="number"?be.push(i):be.push(i[$e]||i[0]);let Le=0;for(let $e=0;$e<xe-1;$e++)Le+=be[$e],Se.push(Le);se(Se),F.current=!0}ne(xe=>!xe),j.current=!1}},[x,t,X,De.length,n,i]),ze=S.useCallback((xe,Se)=>{if(Se)return be=>{if(!O.current)return;j.current=!1;const Le=O.current;Ve.current={x:be.clientX,y:be.clientY},ie({idx:xe,lefts:[...Y]});let $e=[...Y];const bt=ht=>{const mt=Le.getBoundingClientRect(),Oe=t==="Row"?mt.left:mt.top,He=t==="Row"?mt.width:mt.height;$e=UT(Y,t,xe,ht,Oe,He,fe),ie({idx:xe,lefts:$e})},Ge=()=>{ie(void 0),se($e),F.current=!0,ue&&ge(String(e),$e),window.removeEventListener("mousemove",bt),window.removeEventListener("mouseup",Ge)};window.addEventListener("mousemove",bt),window.addEventListener("mouseup",Ge)}},[Y,t,fe,ue,e,ge]),Ze=S.useCallback(xe=>{if(xe)return()=>{se(n),F.current=!1,ie(void 0),ue&&ve(String(e))}},[n,ue,e,ve]),et=S.useMemo(()=>De.map((xe,Se)=>{const be=x&&(X||!X&&Se===De.length-2);return!(_||be)}),[De,x,X,_]);return v.jsx("div",{...C,className:Ne.clsx(ai.ADivideFrame,r.className,ai[t],ai[q],j.current&&ai.NoTransition),ref:O,children:De.map((xe,Se)=>{const be=Se===0,Le=Se===De.length-1,$e=pe(Se,Le,be),bt=Me[Se],Ge=et[Se],ht=ze(Se,Ge),mt=Ze(Ge);return v.jsxs(S.Fragment,{children:[v.jsxs("div",{className:Ne.clsx(ai.ChildFrame,f,Z&&ai.IsMoving,j.current&&ai.NoTransition,ai[t]),style:$e,children:[Le&&x&&t==="Row"&&v.jsx(pi,{className:Ne.clsx(ai.RemoteButton,X&&ai.isExpanded,w),icon:"DividerExpand",iconSize:"md",type:"Raw",onClick:ke,tabIndex:0,tooltip:X?D.Collapse:D.Expand}),xe]}),!Le&&v.jsx("div",{className:Ne.clsx(ai.Divider,ai[t],"NoSelect",Z&&ai.IsMoving,(Z==null?void 0:Z.idx)===Se&&ai.IsClicked,j.current&&ai.NoTransition,!Ge&&ai.NoDraggable,m),style:{...p,...$T(t,bt)},"data-nodraggable":Ge?void 0:"true",onMouseDown:ht,onDoubleClick:mt,children:v.jsx("div",{className:Ne.clsx(ai.DividerInner,k),style:{...b}})})]},Se)})})});G2.displayName="ADivideFrame";function zT(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function $T(r,e){return r==="Col"?{top:e}:{left:e}}function UT(r,e,t,n,i,l,u){const f=[...r];let p=e==="Row"?n.clientX-i-r[t]:n.clientY-i-r[t];const m=[],T=[];let k=0;for(let x=0;x<=u.length;x++)m[x]=k,x<u.length&&(k+=u[x]);let b=0;for(let x=u.length-2;x>=0;x--)b+=u[x],T[x]=b;if(T[u.length-1]=0,p<0){let x=f[t]+p;if(x<=m[t+1])for(let _=0;_<=t;_++)f[_]=m[_+1];else if(f[t]=x,t>0)for(let _=t-1;_>=0&&x-f[_]<u[_];_--)f[_]=x-u[t],x=f[_]}else if(p>0){let x=f[t]+p;const _=t===u.length-2?u[u.length-1]:0;if(x>=l-T[t]-_)for(let I=t;I<r.length;I++)f[I]=l-T[I]-(I===r.length-1?0:_);else if(f[t]=x,t<r.length-1)for(let I=t+1;I<r.length&&f[I]-x<u[I];I++)f[I]=x+u[I],x=f[I]}return f}const nu=()=>v.jsx("div",{style:{display:"flex",flexGrow:1}}),WT="_ASpace_1okqf_1",VT={ASpace:WT},bn=r=>{const{h:e,w:t,...n}=r;return v.jsx("div",{...n,className:Ne.clsx(VT.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},GT="_AChipsContainer_1ag9v_1",ZT="_AChip_1ag9v_1",KT="_Clickable_1ag9v_21",YT="_AChipDelete_1ag9v_26",XT="_IsHover_1ag9v_40",JT="_AChipDeleteIcon_1ag9v_45",Gu={AChipsContainer:GT,AChip:ZT,Clickable:KT,AChipDelete:YT,IsHover:XT,AChipDeleteIcon:JT},QT=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:i,ChipOnDelete:l,ChipOnClick:u,ChipIcon:f,className:p,style:m,ButtonRenderer:T=Z2,gap:k=8,...b}=r,[x,_]=dn(e,[]),I=S.useCallback(C=>{!_||!l||(l({label:C}),_(x.filter(D=>D!==C)))},[_,l,x]),w=S.useCallback(C=>{const D={label:C};return{label:C,useLabel:[C,()=>{}],style:Ir.getContent(n,D),className:Ir.getContent(i,D),icon:Ir.getContent(f,D),onDelete:()=>I(C),onClick:u?()=>u({label:C}):void 0}},[i,f,u,n,I]);return v.jsx(Ur,{...b,style:{...m,alignItems:t,gap:k},className:Ne.clsx(Gu.AChipsContainer,p),children:x.map((C,D)=>v.jsx(bm,{...w(C),ButtonRenderer:T},D))})},bm=r=>{const{label:e,useLabel:t,icon:n,className:i,onDelete:l,onClick:u,ButtonRenderer:f=Z2,width:p="fit-content",style:m,...T}=r;return e===void 0?v.jsx(v.Fragment,{}):v.jsxs(Ur,{...T,style:{...m,width:p},onClick:u,className:Ne.clsx("NoSelect",Gu.AChip,u&&Gu.Clickable,u&&"IsClickable",i),children:[v.jsx(wa,{children:e}),f({...r})]})},Z2=r=>{const{label:e,icon:t,onDelete:n,useLabel:i}=r,[,l]=dn(i,e),[u,f]=S.useState(!1),p=S.useCallback(k=>{n&&(k.stopPropagation(),l==null||l(void 0),n(r))},[n,r,l]),m=()=>{f(!0)},T=()=>{f(!1)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(nu,{}),v.jsx(bn,{w:24}),v.jsx(Ur,{className:Ne.clsx(Gu.AChipDelete,"IsClickable",u&&Gu.IsHover)}),v.jsx(pi,{type:"Raw",onClick:p,onMouseEnter:m,onMouseLeave:T,icon:t||v.jsx(Br,{icon:"Close",stroke:"currentColor",width:14,height:14}),className:Gu.AChipDeleteIcon})]})})},Qc=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]}`},eE=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},tE=/[a-zA-Z0-9]/,rE=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,nE=/^[a-zA-Z0-9._-]+$/,iE=/^[0-9a-fA-F-]+$/i,oE=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,sE=/^\S*$/,aE=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,lE=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,cE=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,uE=/^[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}$/,fE={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)},K2={secondToTime:eE,validate:fE,FileSizeTrans:Qc},dE=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:i,actionRef:l,wrapProps:u,helperText:f,label:p,...m}=r,[T,k]=S.useState(0),[b,x]=S.useState(!i);S.useEffect(()=>{if(!b||m.isDisabled||m.isLoading)return;const O=setInterval(()=>k(F=>F+1),t);return()=>clearInterval(O)},[t,b,m.isDisabled,m.isLoading]);const _=S.useCallback(()=>{n==null||n(),x(!1)},[n]);S.useEffect(()=>{T>=e&&!m.isDisabled&&!m.isLoading&&_()},[T,e,_,m.isDisabled,m.isLoading]);const I=S.useCallback(()=>{m.isDisabled||x(!0)},[m.isDisabled]),w=S.useCallback(()=>{m.isDisabled||x(!1)},[m.isDisabled]),C=S.useCallback(()=>{m.isDisabled||(x(!1),k(0))},[m.isDisabled]);S.useEffect(()=>{l&&(l.current={start:I,stop:w,reset:C,setTicks:k})},[l,I,w,C]);const D=e-T;return v.jsx(ic,{wrapProps:u,helperText:f,label:p,children:v.jsx(Ur,{...m,children:K2.secondToTime(D>0?D:0)})})};function Us(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 hE(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function pE(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function gE(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function a0(r,e){return Us(r)===Us(e)}function Zu(r,e){return Us(r)>Us(e)}function th(r,e){return Us(r)>=Us(e)}function rh(r,e){return Us(r)<Us(e)}function nh(r,e){return Us(r)<=Us(e)}function l0(r,e,t){return Zu(r,t)?Zu(e,t)&&rh(e,r):Zu(e,r)&&rh(e,t)}function c0(r,e,t){return Zu(r,t)?th(e,t)&&nh(e,r):th(e,r)&&nh(e,t)}const Yt={toString:Us,toDate:hE,makeSDate:pE,makeEDate:gE,"===":a0,">":Zu,">=":th,"<":rh,"<=":nh,"s<d<e|e<d<s":l0,"s<=d<=e|e<=d<=s":c0,eq:a0,g:Zu,ge:th,l:rh,le:nh,b:l0,be:c0},mE="_InputContainer_gsbiq_7",vE="_AInput_gsbiq_21",yE="_LeftAddon_gsbiq_40",bE="_RightAddon_gsbiq_46",_E="_ErrorHelperText_gsbiq_52",xE="_Primary_gsbiq_56",SE="_UnAvailable_gsbiq_61",CE="_Secondary_gsbiq_72",wE="_ReadOnly_gsbiq_87",no={InputContainer:mE,AInput:vE,LeftAddon:yE,RightAddon:bE,ErrorHelperText:_E,Primary:xE,UnAvailable:SE,Secondary:CE,ReadOnly:wE,Error:"_Error_gsbiq_52"},AE=["Primary","Secondary","ReadOnly","Error"],oc=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",inputRef:i,useValue:l,isReadonly:u,placeholder:f,minLength:p,maxLength:m,tabIndex:T,autoFocus:k,isPassword:b,autoComplete:x="off",inputProps:_,LeftAddon:I,RightAddon:w,wrapProps:C,helperText:D,label:O,wrapType:F,labelProps:j,...$}=r,Z=S.useMemo(()=>TE(t)?"Error":n,[t,n]),ie=S.useMemo(()=>Z==="ReadOnly"?!0:u,[Z,u]),Y=S.useMemo(()=>$.isDisabled||$.isLoading,[$.isDisabled,$.isLoading]),[se,q]=dn(l,""),J=S.useCallback(ne=>{var ge;Y||((ge=_==null?void 0:_.onKeyDown)==null||ge.call(_,ne),["Escape","Enter","ArrowUp","ArrowDown"].includes(ne.key)||ne.stopPropagation(),ne.key==="Enter"&&e&&e(ne.currentTarget.value))},[Y,_,e]),X=S.useCallback(ne=>{var ge;Y||p&&ne.target.value.length<p||(q==null||q(ne.target.value),(ge=_==null?void 0:_.onChange)==null||ge.call(_,ne))},[Y,p,q,_]);return b?v.jsx(ic,{wrapProps:C,label:O,helperText:D,errorMessage:t,wrapType:F,labelProps:j,children:v.jsx("form",{onSubmit:ne=>ne.preventDefault(),children:v.jsxs(Ur,{...$,className:Ne.clsx(no.InputContainer,no[Z],Y&&no.UnAvailable,$.className),children:[I&&v.jsx("div",{className:no.LeftAddon,children:I}),v.jsx("input",{..._,className:Ne.clsx(no.AInput,Z==="Error"&&no.InputError,_==null?void 0:_.className),value:se,type:"password",readOnly:ie,onChange:X,onKeyDown:J,placeholder:f,maxLength:m,tabIndex:$.isDisabled||$.isLoading?-1:T,autoFocus:k,autoComplete:x,ref:i}),w&&v.jsx("div",{className:Ne.clsx(no.RightAddon,"NoSelect"),children:w})]})})}):v.jsx(ic,{wrapProps:C,label:O,helperText:D,errorMessage:t,wrapType:F,labelProps:j,children:v.jsxs(Ur,{...$,className:Ne.clsx(no.InputContainer,no[Z],Y&&no.UnAvailable,$.className),children:[I&&v.jsx("div",{className:no.LeftAddon,children:I}),v.jsx("input",{..._,className:Ne.clsx(no.AInput,Z==="Error"&&no.InputError,_==null?void 0:_.className),value:se,readOnly:ie,onChange:X,onKeyDown:J,placeholder:f,maxLength:m,tabIndex:$.isDisabled||$.isLoading?-1:T,autoFocus:k,autoComplete:x,ref:i}),w&&v.jsx("div",{className:no.RightAddon,children:w})]})})};function TE(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const EE="_ASelect_1djbv_1",kE="_Arrow_1djbv_14",RE="_Primary_1djbv_23",IE="_UnAvailable_1djbv_34",LE="_IsOpen_1djbv_34",DE="_Secondary_1djbv_41",ME="_Placeholder_1djbv_57",OE="_ValuesContainer_1djbv_61",PE="_Values_1djbv_61",NE="_Options_1djbv_80",FE="_Option_1djbv_80",jE="_Selected_1djbv_122",BE="_CheckBox_1djbv_129",zo={ASelect:EE,Arrow:kE,Primary:RE,UnAvailable:IE,IsOpen:LE,Secondary:DE,Placeholder:ME,ValuesContainer:OE,Values:PE,Options:NE,Option:FE,Selected:jE,CheckBox:BE},qE=["Primary","Secondary"],sc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=sn.ASelect["Select(Placeholder)"],onClose:l,OptionRenderer:u=zE,SelectedRenderer:f=$E,minShowRows:p=2,maxShowRows:m=6,arrowProps:T,isAutoWidth:k=!1,...b}=r,x=S.useRef(null),_=S.useMemo(()=>b.abaseRef??x,[b.abaseRef]),I=S.useRef(null),[w,C]=dn(t,e[0]),[D,O]=S.useState(void 0),[F,j]=S.useState(!1),[$,Z]=S.useState(!1),ie=S.useRef(e),Y=S.useRef(null),se=S.useCallback(()=>Z(!1),[]),q=S.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(Z(!0),setTimeout(()=>j(!0),0),setTimeout(()=>tp(I,_,e,p,m),0))},[_,b.isDisabled,b.isLoading,e,p,m]),J=S.useCallback(()=>{j(!1),Z(!0),l==null||l()},[l]),X=S.useCallback(ue=>{var le;F?J():q(),setTimeout(()=>tp(I,_,e,p,m),0),(le=b.onClick)==null||le.call(b,ue)},[_,b,e,F,J,q,p,m]),ne=S.useCallback(()=>{tp(I,_,e,p,m)},[_,e,p,m]);S.useEffect(()=>{if(!F||!_.current)return;const ue=_.current;let le=ue.parentElement;for(;le;)le.addEventListener("scroll",ne),le=le.parentElement;return()=>{let fe=ue.parentElement;for(;fe;)fe.removeEventListener("scroll",ne),fe=fe.parentElement}},[_,F,ne]),S.useEffect(()=>{if(F)return window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)},[F,ne]);const ge=S.useCallback(ue=>{ue[0].intersectionRatio===0&&J()},[J]);S.useEffect(()=>{if(!F)return;const ue=new IntersectionObserver(ge,{threshold:0});return _.current&&ue.observe(_.current),()=>ue.disconnect()},[_,F,ge]);const me=S.useCallback(ue=>{const le=ue.target,fe=_.current,Me=I.current;!fe||!le||!Me||!fe.contains(le)&&!Me.contains(le)&&J()},[_,J]),ve=S.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);S.useEffect(()=>{if(F)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[F,me]);const de=S.useCallback((ue,le)=>{ue.stopPropagation(),ue.preventDefault(),C==null||C(le),J()},[C,J]),De=S.useCallback(()=>{if(!k||!_.current)return;const ue=Jc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOption:w,placeholder:i,optionRenderer:le=>le===null?null:u({option:le}),type:n,isMulti:!1});O(ue)},[k,_,e,w,i,u,n]);return S.useEffect(()=>k?((e!==ie.current||D===void 0)&&(Y.current!==null&&cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{De(),Y.current=null,ie.current=[...e]})),()=>{Y.current!==null&&(cancelAnimationFrame(Y.current),Y.current=null)}):void 0,[k,e,De,D]),S.useEffect(()=>()=>{typeof Jc.clearCache=="function"&&Jc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...b,isDisabled:b.isDisabled||e.length<1,className:Ne.clsx(b.className,zo.ASelect,"NoSelect",F&&zo.IsOpen,ve&&zo.UnAvailable,zo[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:D?`${D}px`:k?"100px":void 0,...b.style},abaseRef:_,onClick:X,children:[v.jsx("div",{className:zo.ValuesContainer,children:v.jsx("div",{className:Ne.clsx(zo.Values,(w==null||w==="")&&zo.Placeholder),children:v.jsx(f,{selectedOption:w,OptionRenderer:u,placeholder:i})})}),v.jsx("div",{...T,className:Ne.clsx(zo.Arrow,T==null?void 0:T.className),children:v.jsx(Br,{style:{transform:F?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(F||$)&&zs.createPortal(v.jsx("div",{className:Ne.clsx(zo.Options,zo[n]),onTransitionEnd:se,style:{opacity:+F,visibility:F?"visible":"hidden",pointerEvents:F?void 0:"none",borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0,width:D?`${D}px`:k?"100px":void 0},ref:I,children:e.map((ue,le)=>{const fe=w===ue,Me=_.current?window.getComputedStyle(_.current):void 0;return ue===null?null:v.jsx("div",{className:Ne.clsx(zo.Option,fe&&zo.Selected,"NoSelect",zo[n]),style:{height:Me==null?void 0:Me.height},onClick:Ve=>de(Ve,ue),children:v.jsx(u,{option:ue})},le)})}),document.body)]})};function tp(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=HE(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function HE(r,e,t,n){const i={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<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const zE=r=>{const{option:e}=r;return rr.isReactNode(e)?e:null},$E=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:v.jsx(t,{option:e})},UE="_Anchor_27s50_1",WE="_Primary_27s50_18",VE="_Secondary_27s50_21",GE="_Placeholder_27s50_25",ZE="_Icon_27s50_30",KE="_ADatePicker_27s50_37",YE="_StringInputWrap_27s50_48",XE="_StringInputContainer_27s50_53",JE="_StringInput_27s50_48",QE="_IsIdx_27s50_68",e6="_CalendarContainer_27s50_72",t6="_Header_27s50_78",r6="_Prev_27s50_82",n6="_Next_27s50_83",i6="_MonthYear_27s50_116",o6="_Select_27s50_121",s6="_Calendar_27s50_72",a6="_Cell_27s50_131",l6="_IsNotCurrentMonth_27s50_143",c6="_IsSelected_27s50_147",u6="_IsDisabled_27s50_151",f6="_IsHovered_27s50_154",d6="_Week_27s50_158",h6="_WeekDay_27s50_163",on={Anchor:UE,Primary:WE,Secondary:VE,Placeholder:GE,Icon:ZE,ADatePicker:KE,StringInputWrap:YE,StringInputContainer:XE,StringInput:JE,String:"_String_27s50_48",IsIdx:QE,CalendarContainer:e6,Header:t6,Prev:r6,Next:n6,MonthYear:i6,Select:o6,Calendar:s6,Cell:a6,IsNotCurrentMonth:l6,IsSelected:c6,IsDisabled:u6,IsHovered:f6,Week:d6,WeekDay:h6},p6="_Anchor_1x8q1_1",g6="_Primary_1x8q1_18",m6="_Secondary_1x8q1_22",v6="_Placeholder_1x8q1_26",y6="_Icon_1x8q1_31",b6="_ADateRangePicker_1x8q1_38",_6="_StringInputWrap_1x8q1_49",x6="_StringInputContainer_1x8q1_53",S6="_StringInput_1x8q1_49",C6="_IsIdx_1x8q1_69",w6="_CalendarContainer_1x8q1_73",A6="_Header_1x8q1_79",T6="_Prev_1x8q1_83",E6="_Next_1x8q1_84",k6="_MonthYear_1x8q1_117",R6="_Select_1x8q1_122",I6="_Calendar_1x8q1_73",L6="_Cell_1x8q1_132",D6="_IsNotCurrentMonth_1x8q1_144",M6="_IsSelected_1x8q1_148",O6="_IsDisabled_1x8q1_152",P6="_IsHovered_1x8q1_155",N6="_Week_1x8q1_159",F6="_WeekDay_1x8q1_164",j6="_ChoiceButton_1x8q1_168",Hr={Anchor:p6,Primary:g6,Secondary:m6,Placeholder:v6,Icon:y6,ADateRangePicker:b6,StringInputWrap:_6,StringInputContainer:x6,StringInput:S6,String:"_String_1x8q1_49",IsIdx:C6,CalendarContainer:w6,Header:A6,Prev:T6,Next:E6,MonthYear:k6,Select:R6,Calendar:I6,Cell:L6,IsNotCurrentMonth:D6,IsSelected:M6,IsDisabled:O6,IsHovered:P6,Week:N6,WeekDay:F6,ChoiceButton:j6},_m=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:i,position:l=sf.SE,minDate:u,maxDate:f,isDisabled:p,isLoading:m,yearsOptionSize:T,noDefaultChoices:k,LeftAddon:b,RightAddon:x,placeholder:_,noClearButton:I,resources:w,onClick:C,...D}=r,O=S.useMemo(()=>({...sn.ADateRangePicker,...w}),[w]),F=S.useMemo(()=>_??O["Select DateRange"],[_,O]),[j,$]=S.useMemo(()=>{let te,tt;if(u&&(te=Yt.makeSDate(u)),f&&(tt=Yt.makeEDate(f)),te&&tt&&Yt["<"](tt,te)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const ut=te;te=tt,tt=ut}return[te,tt]},[u,f]),[Z,ie]=S.useState("sD"),[Y,se]=dn(n,void 0),q=S.useCallback(te=>{se&&(te===void 0?(se(void 0),be(""),bt("")):(se({sDate:Yt.makeSDate(te.sDate),eDate:Yt.makeEDate(te.eDate)}),be(Yt.toString(te.sDate)),bt(Yt.toString(te.eDate))))},[se]);S.useEffect(()=>{Y&&(be(Yt.toString(Y.sDate)),bt(Yt.toString(Y.eDate)))},[Y]);const J=S.useCallback(te=>{if(!se)return;let tt=Y?Y.sDate:Yt.makeSDate(te);te=Yt.makeEDate(te),se({sDate:tt,eDate:te}),be(Yt.toString(tt)),bt(Yt.toString(te))},[se,Y]),[X,ne]=S.useState(),[ge,me]=S.useState(),ve=S.useCallback(te=>{Z==="sD"&&q({sDate:te,eDate:te}),ne(te),me(te)},[Z,q,ne]),de=S.useCallback(te=>{Z==="sD"?X&&(Yt.eq(X,te)?ie("eD"):Yt[">"](te,X)?(J(te),ne(void 0)):(q({sDate:te,eDate:X}),ne(void 0))):(Y?Yt["<"](te,Y.sDate)?q({sDate:te,eDate:Y.eDate}):J(te):q({sDate:te,eDate:te}),ne(void 0),ie("sD"))},[J,X,ie,Z,q,Y,ne]),De=S.useCallback(te=>{X&&me(te)},[X]),ue=S.useCallback(()=>{me(void 0),ne(void 0),ie("sD")},[ie,ne]),[le,fe]=S.useState(u0(Y,j,$)),Me=S.useMemo(()=>xm(le.year,j,$,T),[le.year,j,$,T]),Ve=S.useMemo(()=>ed(le.year,j,$),[j,$,le.year]),pe=S.useCallback(te=>{if(!Me.includes(te))return;const tt={month:le.month,year:te},ut=ed(tt.year,j,$);ut.length<1||(ut.includes(tt.month)||(tt.month<ut[0]?tt.month=ut[0]:tt.month>ut[ut.length-1]&&(tt.month=ut[ut.length-1])),fe(tt))},[j,$,Me,le.month]),ke=S.useCallback(te=>{Ve.includes(te)&&fe({month:te,year:le.year})},[Ve,le.year]),ze=S.useMemo(()=>$?new Date(le.year,le.month+1,1)>$:!1,[le,$]),Ze=S.useCallback(()=>{if(ze||Ve.length<1)return;const te=le.month+1;te>11?fe({month:Ve[0],year:le.year+1}):fe({month:te,year:le.year})},[ze,Ve,le]),et=S.useMemo(()=>j?new Date(le.year,le.month,0)<j:!1,[le,j]),xe=S.useCallback(()=>{if(et||Ve.length<1)return;const te=le.month-1;te<Ve[0]?fe({month:Ve[Ve.length-1],year:le.year-1}):fe({month:te,year:le.year})},[et,Ve,le]),[Se,be]=S.useState(Y!=null&&Y.sDate?Yt.toString(Y.sDate):""),Le=S.useCallback(te=>{if(te.length>10||(be(te),te.length<10)||!se)return;let tt=Yt.toDate(te);if(!tt)return;j&&tt<j&&(tt=j),$&&tt>$&&(tt=$);let ut=Y?Y.eDate:tt;Y&&Yt[">"](tt,ut)&&([tt,ut]=f0(tt,ut)),q({sDate:tt,eDate:ut}),fe({month:tt.getMonth(),year:tt.getFullYear()})},[se,q,Y,j,$]),[$e,bt]=S.useState(Y!=null&&Y.eDate?Yt.toString(Y.eDate):""),Ge=S.useCallback(te=>{if(te.length>10||(bt(te),te.length<10)||!se)return;let tt=Yt.toDate(te);if(!tt)return;j&&tt<j&&(tt=j),$&&tt>$&&(tt=$);let ut=Y?Y.sDate:tt;Y&&Yt[">"](ut,tt)&&([ut,tt]=f0(ut,tt)),q({sDate:ut,eDate:tt}),fe({month:tt.getMonth(),year:tt.getFullYear()})},[se,q,Y,j,$]),ht=S.useCallback(()=>{Y&&(be(Yt.toString(Y.sDate)),bt(Yt.toString(Y.eDate)))},[Y]),mt=S.useMemo(()=>{const{month:te,year:tt}=le,ut=new Date(tt,te,1),qt=new Date(tt,te+1,0),kt=[];for(let tr=0;tr<ut.getDay();tr++){const rt=new Date(tt,te,0).getDate()-ut.getDay()+tr+1,Rt=new Date(tt,te-1,rt),Ht=j&&j>Rt||$&&$<Rt,Ot=Y?Yt.be(Y.sDate,Rt,Y.eDate):!1,Xt=ge&&Y&&Yt.be(Y.sDate,Rt,ge);kt.push({day:rt,isSelected:Ot,isHovered:Xt,date:Rt,isDisabled:Ht,isCurrentMonth:!1})}for(let tr=1;tr<=qt.getDate();tr++){const Xe=new Date(tt,te,tr),rt=j&&j>Xe||$&&$<Xe,Rt=Y?Yt.be(Y.sDate,Xe,Y.eDate):!1,Ht=ge&&Y&&Yt.be(Y.sDate,Xe,ge);kt.push({day:tr,isSelected:Rt,isHovered:Ht,date:Xe,isDisabled:rt,isCurrentMonth:!0})}for(let tr=0;tr<7-qt.getDay()-1;tr++){const Xe=new Date(tt,te+1,tr+1),rt=j&&j>Xe||$&&$<Xe,Rt=Y?Yt.be(Y.sDate,Xe,Y.eDate):!1,Ht=ge&&Y&&Yt.be(Y.sDate,Xe,ge);kt.push({day:tr+1,isSelected:Rt,isHovered:Ht,date:Xe,isDisabled:rt,isCurrentMonth:!1})}const Mt=[];for(let tr=0;tr<kt.length/7;tr++)Mt.push(v.jsx("div",{className:Hr.Week,children:kt.slice(tr*7,tr*7+7).map((Xe,rt)=>v.jsx(ji,{type:"Raw",className:Ne.clsx(Hr.Day,Hr.Cell,Xe.isDisabled?Hr.IsDisabled:Xe.isCurrentMonth?Xe.isSelected?Hr.IsSelected:Xe.isHovered&&Hr.IsHovered:Hr.IsNotCurrentMonth),isDisabled:Xe.isDisabled,onMouseDown:()=>Xe.isCurrentMonth&&ve(Xe.date),onMouseUp:()=>Xe.isCurrentMonth&&de(Xe.date),onMouseEnter:()=>Xe.isCurrentMonth&&De(Xe.date),children:Xe.day},rt))},tr));return Mt},[le,ge,Y,j,$,ve,de,De]),Oe=S.useRef(null),He=S.useCallback(()=>{Oe&&vm(Oe,Pe,l)},[Oe,l]),[wt,_t]=S.useState(!1),[vt,Tt]=S.useState(!1),Pe=S.useRef(null),Ke=S.useCallback(()=>{p||m||(_t(!0),setTimeout(()=>Tt(!0),0),setTimeout(()=>He(),0),fe(u0(Y,j,$)))},[p,m,Y,He,j,$]),xt=S.useCallback(()=>{p||m||(_t(!0),Tt(!1))},[p,m]),jt=S.useMemo(()=>vt?xt:Ke,[vt,Ke,xt]),At=S.useCallback(()=>_t(!1),[]),Be=S.useCallback(te=>{const tt=document.getElementById("root"),ut=te.target,qt=Pe.current,kt=Oe.current;!tt||!qt||!ut||!kt||!qt.contains(ut)&&tt.contains(ut)&&!kt.contains(ut)&&xt()},[xt]);S.useEffect(()=>{if(vt)return setTimeout(()=>document.addEventListener("mousedown",Be),0),()=>document.removeEventListener("mousedown",Be)},[vt,Be]);const Lt=S.useCallback(()=>{He()},[He]);S.useEffect(()=>{if(!vt||!(Oe!=null&&Oe.current))return;const te=Oe.current;let tt=te.parentElement;for(;tt;)tt.addEventListener("scroll",Lt),tt=tt.parentElement;return()=>{let ut=te.parentElement;for(;ut;)ut.removeEventListener("scroll",Lt),ut=ut.parentElement}},[Oe,vt,Lt]),S.useEffect(()=>{if(vt)return window.addEventListener("resize",Lt),()=>window.removeEventListener("resize",Lt)},[vt,Lt]);const Dt=S.useCallback(te=>{te[0].intersectionRatio===0&&xt()},[xt]);S.useEffect(()=>{if(!vt)return;const te=new IntersectionObserver(Dt,{threshold:0});return Pe.current&&te.observe(Pe.current),()=>te.disconnect()},[Pe,vt,Dt]),S.useEffect(()=>{i&&(i.current={open:Ke,close:xt,toggle:jt})},[i,Ke,xt,jt]),S.useEffect(()=>{if(!Y)return;let te={sDate:Y.sDate,eDate:Y.eDate};j&&(Yt["<"](Y.sDate,j)&&(te.sDate=j),Yt["<"](Y.eDate,j)&&(te.eDate=j)),$&&(Yt[">"](Y.sDate,$)&&(te.sDate=$),Yt[">"](Y.eDate,$)&&(te.eDate=$)),(te.sDate!==Y.sDate||te.eDate!==Y.eDate)&&q(te)},[j,$,Y,q]);const dr=S.useCallback(te=>{C==null||C(te),jt()},[C,jt]),Er=S.useCallback(te=>{q(void 0),xt(),te.stopPropagation()},[q,xt]),Mr=S.useCallback(()=>Y?v.jsx(pi,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:Er}):null,[Y,Er]),_e=S.useMemo(()=>Y?`${Yt.toString(Y.sDate)} ~ ${Yt.toString(Y.eDate)}`:v.jsx("span",{className:Hr.Placeholder,children:F}),[Y,F]);return v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...D,isLoading:m,isDisabled:p,className:Ne.clsx(Hr.Anchor,"IsClickable",Hr[e],t),onClick:dr,abaseRef:Oe,children:[b,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(Hr.Icon,Hr[e])}),v.jsx(bn,{w:4})]}),_e,v.jsx(nu,{}),!I&&v.jsx(Mr,{}),e==="Secondary"&&v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(Hr.Icon,Hr[e])}),x&&x]}),(vt||wt)&&zs.createPortal(v.jsxs("div",{className:Hr.ADateRangePicker,onTransitionEnd:At,onMouseLeave:ue,style:{opacity:+vt,visibility:vt?"visible":"hidden"},ref:Pe,children:[v.jsxs("div",{className:Hr.StringInputContainer,children:[v.jsxs(An,{children:[v.jsx(oc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Ne.clsx(Hr.String,Z==="sD"&&ge&&Hr.IsIdx),useValue:[Se,Le],placeholder:"YYYY-MM-DD",onBlur:ht}),v.jsx(bn,{w:8}),v.jsx(oc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Ne.clsx(Hr.String,Z==="eD"&&ge&&Hr.IsIdx),useValue:[$e,Ge],placeholder:"YYYY-MM-DD",onBlur:ht})]}),!k&&v.jsxs(An,{style:{marginTop:4},children:[v.jsx(Dd,{children:O["1일"],onClick:()=>q({sDate:new Date,eDate:new Date})}),v.jsx(Dd,{children:O["1주일"],onClick:()=>q({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),v.jsx(Dd,{children:O["1개월"],onClick:()=>q({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),v.jsx(Dd,{children:O["3개월"],onClick:()=>q({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),v.jsxs("div",{className:Hr.CalendarContainer,children:[v.jsxs(An,{className:Hr.Header,children:[v.jsx(ji,{type:"Raw",className:Hr.Prev,onClick:xe,isDisabled:et}),v.jsxs("div",{className:Hr.MonthYear,children:[v.jsx(sc,{type:"Secondary",useSelect:[le.month,ke],className:Hr.Select,options:Ve,OptionRenderer:te=>O.months(te.option),SelectedRenderer:te=>O.months(te.selectedOption),isAutoWidth:!0}),v.jsx(bn,{w:8}),v.jsx(sc,{type:"Secondary",useSelect:[le.year,pe],className:Hr.Select,options:Me,isAutoWidth:!0})]}),v.jsx(ji,{type:"Raw",className:Hr.Next,onClick:Ze,isDisabled:ze})]}),v.jsx(bn,{h:10}),v.jsxs("div",{className:Hr.Calendar,children:[v.jsx("div",{className:Hr.Week,children:[0,1,2,3,4,5,6].map(te=>v.jsx("div",{className:Ne.clsx(Hr.WeekDay,Hr.Cell),children:O.weekDays(te)},te))}),mt]})]})]}),document.body)]})};function ed(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let i=11;t&&t.getFullYear()===r&&(i=t.getMonth());const l=[];for(let u=n;u<=i;u++)l.push(u);return l}function xm(r,e,t,n=5){const i=[];let l=r-n/2+n%2/2;e&&l<e.getFullYear()&&(l=e.getFullYear());let u=l+n-1;t&&u>t.getFullYear()&&(u=t.getFullYear());for(let f=l;f<=u;f++)i.push(f);return i}function u0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&Yt["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Yt[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function f0(r,e){return[e,r]}const Dd=r=>v.jsx(ji,{className:Ne.clsx(Hr.ChoiceButton,"Headline2"),type:"Secondary",...r}),B6=["Primary","Secondary","Raw"],Sm=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:i,position:l=sf.SE,minDate:u,maxDate:f,isDisabled:p,isLoading:m,placeholder:T,LeftAddon:k,RightAddon:b,resources:x,noClearButton:_,onClick:I,...w}=r,C=S.useMemo(()=>({...sn.ADatePicker,...x}),[x]),D=S.useMemo(()=>T??C["Select Date"],[T,C]),[O,F]=S.useMemo(()=>{let Pe,Ke;return u&&(Pe=Yt.makeSDate(u)),f&&(Ke=Yt.makeEDate(f)),Pe&&Ke&&Yt["<"](Ke,Pe)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[Yt.makeSDate(Ke),Yt.makeEDate(Pe)]):[Pe,Ke]},[u,f]),[j,$]=dn(n,null),[Z,ie]=S.useState(j?Yt.toString(j):""),[Y,se]=S.useState(()=>{const Pe=j??new Date;return O&&Pe<O?O.getMonth():F&&Pe>F?F.getMonth():(Pe??new Date).getMonth()}),[q,J]=S.useState(()=>{const Pe=j??new Date;return O&&Pe<O?O.getFullYear():F&&Pe>F?F.getFullYear():(Pe??new Date).getFullYear()}),X=S.useCallback(Pe=>{J(Pe);const Ke=ed(Pe,O,F);Ke.includes(Y)||(Y<Ke[0]?se(Ke[0]):Y>Ke[Ke.length-1]&&se(Ke[Ke.length-1]))},[O,F,Y]),ne=S.useCallback(Pe=>{if(Pe.length>10||(ie(Pe),Pe.length<10)||!$)return;let Ke=Yt.toDate(Pe);Ke&&(O&&Ke<O&&(Ke=O),F&&Ke>F&&(Ke=F),$(Ke),J(Ke.getFullYear()),se(Ke.getMonth()))},[$,O,F]),ge=S.useCallback(Pe=>{const Ke=q+Pe;Ke<0||J(Ke)},[q]),me=S.useCallback(Pe=>{const Ke=Y+Pe;Ke<0?(se(11),ge(-1)):Ke>11?(se(0),ge(1)):se(Ke)},[Y,ge]),ve=S.useCallback(Pe=>{$&&(Pe===void 0?($(void 0),ie("")):($(Pe),ie(Yt.toString(Pe))))},[$]),de=S.useMemo(()=>{const Pe=new Date(q,Y,0);return O&&Pe<O},[q,Y,O]),De=S.useMemo(()=>{const Pe=new Date(q,Y+1,1);return F&&Pe>F},[q,Y,F]),ue=S.useCallback(()=>{de||me(-1)},[me,de]),le=S.useCallback(()=>{De||me(1)},[me,De]),[fe,Me]=S.useState(null),Ve=S.useCallback(()=>{$&&Me(null)},[$]),pe=S.useCallback(Pe=>{$&&Me(Pe)},[$]),ke=S.useMemo(()=>{const Pe=new Date(q,Y,1),Ke=new Date(q,Y+1,0),xt=[];for(let At=0;At<Pe.getDay();At++){const Lt=new Date(q,Y,0).getDate()-Pe.getDay()+At+1,Dt=new Date(q,Y-1,Lt),dr=O&&O>Dt||F&&F<Dt,Er=j&&Yt.eq(Dt,j),Mr=fe&&Yt.eq(Dt,fe);xt.push({day:Lt,isSelected:Er,date:Dt,isDisabled:dr,isHovered:Mr,isCurrentMonth:!1})}for(let At=1;At<=Ke.getDate();At++){const Be=new Date(q,Y,At),Lt=O&&O>Be||F&&F<Be,Dt=j&&Yt.eq(Be,j),dr=fe&&Yt.eq(Be,fe);xt.push({day:At,isSelected:Dt,date:Be,isDisabled:Lt,isHovered:dr,isCurrentMonth:!0})}for(let At=0;At<7-Ke.getDay()-1;At++){const Be=new Date(q,Y+1,At+1),Lt=O&&O>Be||F&&F<Be,Dt=j&&Yt.eq(Be,j),dr=fe&&Yt.eq(Be,fe);xt.push({day:At+1,isSelected:Dt,date:Be,isDisabled:Lt,isHovered:dr,isCurrentMonth:!1})}const jt=[];for(let At=0;At<xt.length/7;At++)jt.push(v.jsx("div",{className:on.Week,children:xt.slice(At*7,At*7+7).map((Be,Lt)=>v.jsx(ji,{type:"Raw",className:Ne.clsx(on.Day,on.Cell,Be.isDisabled?on.IsDisabled:Be.isCurrentMonth?Be.isSelected?on.IsSelected:Be.isHovered&&on.IsHovered:on.IsNotCurrentMonth),isDisabled:Be.isDisabled,onClick:()=>Be.isCurrentMonth&&ve(Be.date),onMouseLeave:()=>Be.isCurrentMonth&&Ve(),onMouseEnter:()=>Be.isCurrentMonth&&pe(Be.date),children:Be.day},Lt))},At));return jt},[Y,ve,j,q,O,F,fe,Ve,pe]),ze=S.useRef(null),Ze=S.useCallback(()=>{ze&&vm(ze,Le,l)},[ze,l]),[et,xe]=S.useState(!1),[Se,be]=S.useState(!1),Le=S.useRef(null),$e=S.useCallback(()=>{p||m||(xe(!0),setTimeout(()=>be(!0),0),setTimeout(()=>Ze(),0),ie(j?Yt.toString(j):""),se(()=>{const Pe=j??new Date;return O&&Pe<O?O.getMonth():F&&Pe>F?F.getMonth():Pe.getMonth()}),J(()=>{const Pe=j??new Date;return O&&Pe<O?O.getFullYear():F&&Pe>F?F.getFullYear():Pe.getFullYear()}))},[p,m,j,Ze,O,F]),bt=S.useCallback(()=>{p||m||(xe(!0),be(!1))},[p,m]),Ge=S.useMemo(()=>Se?bt:$e,[Se,$e,bt]),ht=S.useCallback(()=>xe(!1),[]),mt=S.useCallback(Pe=>{const Ke=document.getElementById("root"),xt=Pe.target,jt=Le.current,At=ze.current;!Ke||!jt||!xt||!At||!jt.contains(xt)&&Ke.contains(xt)&&!At.contains(xt)&&bt()},[bt]);S.useEffect(()=>{if(Se)return setTimeout(()=>document.addEventListener("mousedown",mt),0),()=>document.removeEventListener("mousedown",mt)},[Se,mt]);const Oe=S.useCallback(()=>{Ze()},[Ze]);S.useEffect(()=>{if(!Se||!(ze!=null&&ze.current))return;const Pe=ze.current;let Ke=Pe.parentElement;for(;Ke;)Ke.addEventListener("scroll",Oe),Ke=Ke.parentElement;return()=>{let xt=Pe.parentElement;for(;xt;)xt.removeEventListener("scroll",Oe),xt=xt.parentElement}},[ze,Se,Oe]),S.useEffect(()=>{if(Se)return window.addEventListener("resize",Oe),()=>window.removeEventListener("resize",Oe)},[Se,Oe]);const He=S.useCallback(Pe=>{Pe[0].intersectionRatio===0&&bt()},[bt]);S.useEffect(()=>{if(!Se)return;const Pe=new IntersectionObserver(He,{threshold:0});return Le.current&&Pe.observe(Le.current),()=>Pe.disconnect()},[Le,Se,He]),S.useEffect(()=>{i&&(i.current={open:$e,close:bt,toggle:Ge})},[i,$e,bt,Ge]);const wt=S.useCallback(Pe=>{I==null||I(Pe),Ge()},[I,Ge]),_t=S.useCallback(Pe=>{ve(void 0),bt(),Pe.stopPropagation()},[ve,bt]),vt=S.useCallback(()=>j?v.jsx(pi,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:_t}):null,[j,_t]),Tt=S.useMemo(()=>j?Yt.toString(j):v.jsx("span",{className:on.Placeholder,children:D}),[j,D]);return v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...w,isLoading:m,isDisabled:p,className:Ne.clsx(on.Anchor,"IsClickable",on[e],t),onClick:wt,abaseRef:ze,children:[k,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(on.Icon,on[e])}),v.jsx(bn,{w:4})]}),Tt,v.jsx(nu,{}),!_&&v.jsx(vt,{}),e==="Secondary"&&v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(on.Icon,on[e])}),b&&b]}),(Se||et)&&zs.createPortal(v.jsxs("div",{className:on.ADatePicker,onTransitionEnd:ht,style:{opacity:+Se,visibility:Se?"visible":"hidden"},ref:Le,children:[v.jsx("div",{className:on.StringInputContainer,children:v.jsx(oc,{maxLength:j?30:11,wrapProps:{className:on.StringInputWrap},inputProps:{className:on.StringInput},className:on.String,useValue:[Z,ne],placeholder:"YYYY-MM-DD"})}),v.jsxs("div",{className:on.CalendarContainer,children:[v.jsxs(An,{className:on.Header,children:[v.jsx(ji,{type:"Raw",className:on.Prev,onClick:ue,isDisabled:de}),v.jsxs("div",{className:on.MonthYear,children:[v.jsx(sc,{type:"Secondary",useSelect:[Y,se],className:on.Select,options:ed(q,O,F),OptionRenderer:Pe=>C.months(Pe.option),SelectedRenderer:Pe=>C.months(Pe.selectedOption),isAutoWidth:!0}),v.jsx(bn,{w:8}),v.jsx(sc,{type:"Secondary",useSelect:[q,X],className:on.Select,options:xm(q,O,F),isAutoWidth:!0})]}),v.jsx(ji,{type:"Raw",className:on.Next,onClick:le,isDisabled:De})]}),v.jsx(bn,{h:10}),v.jsxs("div",{className:on.Calendar,children:[v.jsx("div",{className:on.Week,children:[0,1,2,3,4,5,6].map(Pe=>v.jsx("div",{className:Ne.clsx(on.WeekDay,on.Cell),children:C.weekDays(Pe)},Pe))}),ke]})]})]}),document.body)]})},q6="_Paper_e69j5_1",H6="_Card_e69j5_15",z6="_Body_e69j5_26",$6="_Title_e69j5_35",U6="_Content_e69j5_42",W6="_Action_e69j5_45",V6="_Button_e69j5_58",xa={Paper:q6,Card:H6,Body:z6,Title:$6,Content:U6,Action:W6,Button:V6},G6=["okCancel","cancelOk","ok","cancel","none"],Z6=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:i,style:l,titleStyle:u,bodyStyle:f,contentStyle:p,okButtonStyle:m,cancelButtonStyle:T,actionStyle:k,onOk:b,onCancel:x,onClose:_,onEnterPress:I,onEscPress:w,onSpacePress:C,onPaperClick:D,noDim:O=!1,isLoading:F,isOkDisabled:j,isOkLoading:$,isCancelDisabled:Z,isCancelLoading:ie,buttonNoInteractive:Y,okButtonClassName:se,cancelButtonClassName:q,progress:J,progressProps:X,resources:ne}=r,ge=S.useMemo(()=>({...sn.ADialog,...ne}),[ne]),[me,ve]=S.useState(0);S.useEffect(()=>ve(1),[]);const de=S.useCallback(()=>{ve(0)},[]),De=S.useCallback(()=>{if(!me){const[,Le]=e.state.useIsOpen;Le==null||Le(!1),_==null||_()}},[me,_,e]),ue=S.useCallback(async()=>{if(!me||t==="cancel"||t==="none"||F||j||$)return;const{event:Le,e:$e}=Yc();await(b==null?void 0:b($e)),!Le.preventDefault&&de()},[me,t,de,b,j,F,$]),le=S.useCallback(async()=>{if(!me||t==="ok"||t==="none"||F||Z||ie)return;const{event:Le,e:$e}=Yc();await(x==null?void 0:x($e)),!Le.preventDefault&&de()},[me,t,de,x,Z,F,ie]);S.useEffect(()=>{e&&e.state.setAction({close:de,ok:ue,cancel:le})},[e,de,ue,le]);const fe=S.useCallback(async()=>{if(F)return;const{event:Le,e:$e}=Yc();await(I==null?void 0:I($e)),!Le.preventDefault&&ue()},[I,F,ue]),Me=S.useCallback(async()=>{if(F)return;const{event:Le,e:$e}=Yc();await(C==null?void 0:C($e)),!Le.preventDefault&&ue()},[C,F,ue]),Ve=S.useCallback(async()=>{if(F)return;const{event:Le,e:$e}=Yc();await(w==null?void 0:w($e)),!Le.preventDefault&&le()},[w,F,le]),pe=S.useRef(null),ke=S.useCallback(Le=>{const $e=document.body.getElementsByClassName(xa.Paper);$e.length===0||$e[$e.length-1]!==pe.current||(Le.key==="Enter"&&me?fe():Le.key===" "&&me?Me():Le.key==="Escape"&&me&&Ve())},[me,fe,Me,Ve]);S.useEffect(()=>{if(me)return window.addEventListener("keydown",ke),()=>window.removeEventListener("keydown",ke)},[me,ke]);const ze=S.useRef(!1),Ze=S.useRef(!1),et=S.useCallback(()=>{ze.current=!0},[]),xe=S.useCallback(()=>{ze.current=!1,Ze.current=!1},[]),Se=S.useCallback(()=>{Ze.current=!0},[]),be=S.useCallback(async()=>{if(F)return;const Le=!Ze.current||ze.current;if(ze.current=!1,Ze.current=!1,Le)return;const{event:$e,e:bt}=Yc();await(D==null?void 0:D(bt)),!$e.preventDefault&&le()},[D,F,le]);return zs.createPortal(v.jsx("div",{className:xa.Paper,style:{backgroundColor:O?"transparent":void 0,pointerEvents:me?void 0:"none",opacity:me},onMouseUp:be,onMouseDown:Se,onTransitionEnd:De,ref:pe,children:v.jsxs(Ur,{className:xa.Card,onMouseDown:et,onMouseUp:xe,style:l,isLoading:F,progress:J,progressProps:X,children:[v.jsxs("div",{className:xa.Body,style:f,children:[n&&v.jsx(K6,{title:n,titleStyle:u}),i&&v.jsx("div",{className:xa.Content,style:p,children:i})]}),t!=="none"&&v.jsx(Y6,{type:t,ok:ue,cancel:le,resources:ge,isOkDisabled:j,isOkLoading:$,isCancelDisabled:Z,isCancelLoading:ie,okButtonStyle:m,cancelButtonStyle:T,actionStyle:k,buttonNoInteractive:Y,okButtonClassName:se,cancelButtonClassName:q})]})}),document.body)},K6=r=>{const{title:e,titleStyle:t}=r;return v.jsx("div",{className:Ne.clsx(xa.Title,"NoSelect","Title3"),style:t,children:e})},Y6=r=>{const{type:e,ok:t,cancel:n,resources:i,isOkDisabled:l,isOkLoading:u,isCancelDisabled:f,isCancelLoading:p,okButtonStyle:m,cancelButtonStyle:T,actionStyle:k,buttonNoInteractive:b,okButtonClassName:x,cancelButtonClassName:_}=r,I=S.useMemo(()=>({onClick:t,isDisabled:l,isLoading:u,children:i.Ok,style:m,noInteractive:b,className:Ne.clsx(xa.Button,x)}),[t,l,u,i.Ok,m,b,x]),w=S.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:f,isLoading:p,children:i.Cancel,style:T,noInteractive:b,className:Ne.clsx(xa.Button,_)}),[n,f,p,i.Cancel,T,b,_]);if(e==="okCancel"||e==="ok")return v.jsxs("div",{className:xa.Action,style:{...k},children:[v.jsx(ji,{...I}),e==="okCancel"&&v.jsxs(v.Fragment,{children:[v.jsx(bn,{w:8}),v.jsx(ji,{...w})]})]},e);if(e==="cancelOk"||e==="cancel")return v.jsxs("div",{className:xa.Action,children:[v.jsx(ji,{...w}),e==="cancelOk"&&v.jsxs(v.Fragment,{children:[v.jsx(bn,{w:8}),v.jsx(ji,{...I})]})]},e)},X6=r=>{const e=S.useMemo(()=>Math.random().toFixed(32),[]),t=S.useMemo(()=>{const x={};return r.forEach(_=>{x[_]=_+e}),x},[r,e]),n=S.useMemo(()=>[],[]),i=S.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[l,u]=S.useState([]),f=S.useRef((()=>{const x={};return i.forEach(_=>{x[_]={open:()=>u(I=>[...I,_]),close:()=>{},ok:()=>{},cancel:()=>{}}}),x})()),p=S.useMemo(()=>{const x={};return i.forEach(_=>{x[_]=I=>{u(w=>!I&&w.includes(_)?w.filter(C=>C!==_):I&&!w.includes(_)?[...w,_]:w)}}),x},[i]),m=S.useMemo(()=>{const x={};return i.forEach(_=>{const w=[l.includes(_),p[_]],C=D=>{f.current[_]={...f.current[_],...D}};x[_]={useIsOpen:w,setAction:C}}),x},[l,p,i]),T=S.useMemo(()=>{const x={};return i.forEach(_=>{const I=()=>f.current[_].open(),w=()=>f.current[_].close(),C=()=>f.current[_].ok(),D=()=>f.current[_].cancel();x[_]={open:I,close:w,ok:C,cancel:D}}),x},[i]),k=S.useMemo(()=>({}),[]),b=S.useMemo(()=>(i.forEach(x=>{k[x]={state:m[x],action:T[x]}}),k),[k,i,m,T]);return S.useEffect(()=>(Object.keys(b).forEach(_=>{const I=b[_],w=t[_],C=qs.find(D=>{D.id});C?C.core=I:qs.push({id:w,core:I})}),()=>{const _=Object.keys(b),I=qs.filter(w=>_.includes(w.id));qs.length=0,qs.push(...I)}),[b,t]),b},J6=()=>{const r=S.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=S.useState(!1),n=S.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=S.useMemo(()=>({useIsOpen:[e,t],setAction:p=>{n.current={...n.current,...p}}}),[e]),l=S.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),u=S.useMemo(()=>({}),[]),f=S.useMemo(()=>(u.state=i,u.action=l,u),[u,i,l]);return S.useEffect(()=>{const p=qs.find(m=>m.id===r);return p?p.core=f:qs.push({id:r,core:f}),()=>{const m=qs.filter(T=>T.id!==r);qs.length=0,qs.push(...m)}},[r,f]),f},Q6=r=>{const{dlgCore:e,children:t}=r,[n,i]=S.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return S.useEffect(()=>()=>i==null?void 0:i(!1),[i]),v.jsx(S.Suspense,{children:n&&t})},e8=r=>e=>{const{dlgCore:t}=e;return v.jsx(Q6,{dlgCore:t,children:S.cloneElement(v.jsx(r,{...e}),{dlgCore:t})})},qs=[],t8={closeAllDlgs:()=>{qs.forEach(r=>{r.core.action.close()})}},r8="_AFileBox_1hlo1_1",n8="_SelectedFile_1hlo1_16",i8="_Dropping_1hlo1_26",hh={AFileBox:r8,SelectedFile:n8,Dropping:i8},o8=r=>{const{useFile:e,FileRenderer:t=s8,SelectRenderer:n=a8,DropRenderer:i=l8,resources:l,accept:u="",onInvalidFileFormat:f,fileSelectButtonClassName:p,isDisabled:m,isLoading:T,className:k,...b}=r,x=S.useMemo(()=>({...sn.AFileBox,...l}),[l]),_=S.useRef(null),I=S.useRef(null),[w,C]=dn(e,null),[D,O]=S.useState(!1),F=S.useMemo(()=>u.split(",").map(ne=>ne.trim()).filter(ne=>ne.length>0&&ne.startsWith(".")),[u]),j=S.useCallback(ne=>{if(F.length===0)return!1;const ge=ne.name.split(".").pop();return ge?!F.includes(`.${ge}`):!0},[F]),$=S.useCallback(ne=>{if(C)if(j(ne)){f==null||f();return}else C(ne);else return},[C,j,f]),Z=S.useCallback(ne=>{ne.target.files&&ne.target.files.length>0&&$(ne.target.files[0])},[$]),ie=S.useCallback(ne=>{ne.preventDefault(),O(!1),!(m||T)&&ne.dataTransfer.files&&ne.dataTransfer.files.length>0&&$(ne.dataTransfer.files[0])},[$,m,T]),Y=S.useCallback(ne=>{ne.preventDefault(),!(m||T)&&O(!0)},[m,T]),se=S.useCallback(ne=>{ne.target===_.current&&ne.relatedTarget.contains(_.current.parentElement)&&(ne.preventDefault(),O(!1))},[]),q=S.useCallback(ne=>ne.preventDefault(),[]),J=S.useCallback(()=>{var ne;(ne=I.current)==null||ne.click()},[]),X=S.useMemo(()=>D?v.jsx(i,{resources:x}):w?v.jsx(t,{file:w,useFile:e}):v.jsx(n,{onClick:J,resources:x,fileSelectButtonClassName:p}),[t,n,i,x,D,w,e,p,J]);return v.jsxs(Ur,{...b,isDisabled:m,isLoading:T,className:Ne.clsx(hh.AFileBox,k),onDrop:ie,onDragEnter:Y,onDragLeave:se,onDragOver:q,abaseRef:_,children:[v.jsx("input",{style:{display:"none"},ref:I,type:"file",onChange:Z,value:"",accept:u}),X]})},s8=r=>{const{file:e,useFile:t}=r,[,n]=dn(t,null);return v.jsxs(An,{className:hh.SelectedFile,style:{backgroundColor:""},children:[v.jsx(Br,{icon:"File"}),v.jsx(wa,{children:e.name}),v.jsx(pi,{type:"Raw",icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},onClick:()=>n==null?void 0:n(null)})]})},a8=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return v.jsxs(An,{className:Ne.clsx(hh.SelectFile,"NoSelect"),children:[v.jsx(ji,{className:n,onClick:e,children:t["Select File"]}),v.jsx(bn,{w:4}),t["or Drag & Drop"]]})},l8=r=>{const{resources:e}=r;return v.jsxs(W2,{className:Ne.clsx(hh.Dropping,"NoSelect","Headline2"),children:[v.jsx(Br,{icon:"FileDownload"}),e["drop file to select"]]})},c8="_AFileUploader_4niz4_1",u8="_LabelContainer_4niz4_15",f8="_LabelButton_4niz4_24",d8="_Disabled_4niz4_30",h8="_Delete_4niz4_33",p8="_FileSize_4niz4_37",g8="_TotalFileSize_4niz4_44",m8="_FileBox_4niz4_48",v8="_SelectRenderer_4niz4_67",y8="_ChipsContainer_4niz4_78",b8="_FileChip_4niz4_89",_8="_FileChipContent_4niz4_101",x8="_FileNameContainer_4niz4_112",S8="_ButtonRenderer_4niz4_118",C8="_ErrorBorder_4niz4_129",w8="_ErrorColor_4niz4_133",A8="_ErrorCursor_4niz4_137",Pn={AFileUploader:c8,LabelContainer:u8,LabelButton:f8,Disabled:d8,Delete:h8,FileSize:p8,TotalFileSize:g8,FileBox:m8,SelectRenderer:v8,ChipsContainer:y8,FileChip:b8,FileChipContent:_8,FileNameContainer:x8,ButtonRenderer:S8,ErrorBorder:C8,ErrorColor:w8,ErrorCursor:A8},T8=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:i,onDownload:l})=>{const[u,f]=S.useState(!1);return v.jsx(pi,{icon:u?"FileDownload":"CircleAlertOutline",iconSize:"sm",tooltip:i["Fail Download"],type:"Raw",className:Ne.clsx(e,t,n),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onClick:()=>l(r)})},E8=r=>{const{helperText:e,label:t,labelProps:n,wrapProps:i,wrapType:l,errorMessage:u,useFiles:f,accept:p,onInvalidFileFormat:m,onDownload:T,onDelete:k,type:b,limit:x=1024*1024*1024,maxFileCount:_,useError:I,isLoading:w,resources:C,className:D,...O}=r,F=S.useMemo(()=>({...sn.AFileUploader,...C}),[C]),[j,$]=dn(f,void 0),[Z,ie]=dn(I,!1),[Y,se]=S.useState({}),[q,J]=S.useState(!1),X=S.useRef(0),ne=S.useRef({}),ge=S.useRef(null),me=S.useRef(null),ve=S.useCallback(Oe=>Oe.uniqueId||`${Oe.name}-${Oe.size}-${Oe.lastModified||""}-${Oe.idx||""}`,[]),de=S.useMemo(()=>(j==null?void 0:j.reduce((Oe,He)=>Oe+He.size,0))||0,[j]);S.useEffect(()=>{ie&&ie(de>x)},[de,x,ie]);const De=S.useCallback(Oe=>{var _t;if(!p||p==="*"||p==="")return!0;const He=p.split(",").map(vt=>vt.trim()),wt=`.${(_t=Oe.name.split(".").pop())==null?void 0:_t.toLowerCase()}`;return He.includes(wt)?!0:He.some(vt=>{var Tt;if(vt.startsWith("."))return!1;if(vt.endsWith("/*")){const Pe=vt.split("/")[0];return(Tt=Oe.type)==null?void 0:Tt.startsWith(`${Pe}/`)}return Oe.type===vt})},[p]),ue=S.useCallback((Oe,He)=>{const wt={...ne.current};wt[Oe]=He,ne.current=wt,se(wt)},[se]),le=S.useCallback(Oe=>{const He=ve(Oe);return Y[He]||"Normal"},[Y,ve]),fe=S.useCallback(Oe=>w||le(Oe)==="Loading",[w,le]),Me=S.useCallback(Oe=>le(Oe)==="Error"||b==="Upload"&&Oe.size>x,[le,x,b]),Ve=S.useMemo(()=>j!=null&&j.length?b==="Download"?j.every(Me):!1:!0,[j,b,Me]),pe=S.useCallback(()=>{ge.current&&(ge.current.value="")},[]),ke=S.useMemo(()=>!_||!(j!=null&&j.length)?!1:j.length>=_,[j,_]),ze=S.useCallback(Oe=>{if(!$)return;const He=[];let wt=!1,_t=[],vt=_?_-((j==null?void 0:j.length)||0):1/0;if(!(vt<=0)){if(Array.from(Oe).forEach((Tt,Pe)=>{if(Pe>=vt)return;if(!De(Tt)){wt=!0,_t.push(Tt.name);return}const Ke=Tt;Ke.uniqueId=`file-${Date.now()}-${X.current++}`,He.push(Ke)}),wt)if(m)m();else{const Tt=p?p.replace(/,/g,", "):"",Pe=Tt?`${F["Supported file format(s)"]}: ${Tt}`:"",Ke=_t.length>3?`${_t.slice(0,3).join(", ")} ${F.and} ${_t.length-3} ${F["more file(s)"]}`:_t.join(", ");alert(`${F["Unsupported file format detected."]}
156
+ `+h.stack}}var Ml=t.ReactCurrentDispatcher,da=t.ReactDebugCurrentFrame,Ol=0,fo=1,Pl=2,Es=3,Au=4,za=0,ha=1,pa=2,Ic=12800;function Tu(d){return console.error(d),null}function ks(){}function Nl(d,s,c,h,y,M,B,W,oe){var Ae=[],Qe=new Set,dt={destination:null,responseState:s,progressiveChunkSize:h===void 0?Ic:h,status:za,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Qe,pingedTasks:Ae,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:y===void 0?Tu:y,onAllReady:M===void 0?ks:M,onShellReady:B===void 0?ks:B,onShellError:W===void 0?ks:W,onFatalError:oe===void 0?ks:oe},It=$a(dt,0,null,c,!1,!1);It.parentFlushed=!0;var or=Fo(dt,d,null,It,Qe,Mn,Al,_f);return Ae.push(or),dt}function No(d,s){var c=d.pingedTasks;c.push(s),c.length===1&&u(function(){return Hc(d)})}function Fl(d,s){return{id:wi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function Fo(d,s,c,h,y,M,B,W){d.allPendingTasks++,c===null?d.pendingRootTasks++:c.pendingTasks++;var oe={node:s,ping:function(){return No(d,oe)},blockedBoundary:c,blockedSegment:h,abortSet:y,legacyContext:M,context:B,treeContext:W};return oe.componentStack=null,y.add(oe),oe}function $a(d,s,c,h,y,M){return{status:Ol,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:h,boundary:c,lastPushedText:y,textEmbedded:M}}var Yi=null;function Xi(){return Yi===null||Yi.componentStack===null?"":fa(Yi.componentStack)}function ho(d,s){d.componentStack={tag:0,parent:d.componentStack,type:s}}function Ua(d,s){d.componentStack={tag:1,parent:d.componentStack,type:s}}function rs(d,s){d.componentStack={tag:2,parent:d.componentStack,type:s}}function Ji(d){d.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var ga=null;function jl(d,s){{var c;typeof s=="string"?c=s:s&&typeof s.message=="string"?c=s.message:c=String(s);var h=ga||Xi();ga=null,d.errorMessage=c,d.errorComponentStack=h}}function Wa(d,s){var c=d.onError(s);if(c!=null&&typeof c!="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 c+'" instead');return c}function ma(d,s){var c=d.onShellError;c(s);var h=d.onFatalError;h(s),d.destination!==null?(d.status=pa,D(d.destination,s)):(d.status=ha,d.fatalError=s)}function Eu(d,s,c){ho(s,"Suspense");var h=s.blockedBoundary,y=s.blockedSegment,M=c.fallback,B=c.children,W=new Set,oe=Fl(d,W),Ae=y.chunks.length,Qe=$a(d,Ae,oe,y.formatContext,!1,!1);y.children.push(Qe),y.lastPushedText=!1;var dt=$a(d,0,null,y.formatContext,!1,!1);dt.parentFlushed=!0,s.blockedBoundary=oe,s.blockedSegment=dt;try{if(ns(d,s,B),vn(dt.chunks,d.responseState,dt.lastPushedText,dt.textEmbedded),dt.status=fo,is(oe,dt),oe.pendingTasks===0){Ji(s);return}}catch(or){dt.status=Au,oe.forceClientRender=!0,oe.errorDigest=Wa(d,or),jl(oe,or)}finally{s.blockedBoundary=h,s.blockedSegment=y}var It=Fo(d,M,h,Qe,W,s.legacyContext,s.context,s.treeContext);It.componentStack=s.componentStack,d.pingedTasks.push(It),Ji(s)}function Lc(d,s,c,h){ho(s,c);var y=s.blockedSegment,M=mr(y.chunks,c,h,d.responseState,y.formatContext);y.lastPushedText=!1;var B=y.formatContext;y.formatContext=Ci(B,c,h),ns(d,s,M),y.formatContext=B,wr(y.chunks,c),y.lastPushedText=!1,Ji(s)}function Dc(d){return d.prototype&&d.prototype.isReactComponent}function Rs(d,s,c,h,y){var M={};wc(s,M);var B=c(h,y);return ws(c,h,B,y)}function Mc(d,s,c,h,y){var M=c.render();c.props!==y&&(Pc||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",un(h)||"a component"),Pc=!0);{var B=h.childContextTypes;if(B!=null){var W=s.legacyContext,oe=mc(c,h,W,B);s.legacyContext=oe,oi(d,s,M),s.legacyContext=W;return}}oi(d,s,M)}function Bl(d,s,c,h){rs(s,c);var y=Zo(c,s.legacyContext),M=co(c,h,y);Ba(M,c,h,y),Mc(d,s,M,c,h),Ji(s)}var vr={},Va={},Oc={},Is={},Pc=!1,ku=!1,Nc=!1,Oi=!1;function Af(d,s,c,h){var y;if(y=Zo(c,s.legacyContext),Ua(s,c),c.prototype&&typeof c.prototype.render=="function"){var M=un(c)||"Unknown";vr[M]||(i("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.",M,M),vr[M]=!0)}var B=Rs(d,s,c,h,y),W=hi();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var oe=un(c)||"Unknown";Va[oe]||(i("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.",oe,oe,oe),Va[oe]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var Ae=un(c)||"Unknown";Va[Ae]||(i("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.",Ae,Ae,Ae),Va[Ae]=!0)}Ba(B,c,h,y),Mc(d,s,B,c,h)}else if(ql(c),W){var Qe=s.treeContext,dt=1,It=0;s.treeContext=_c(Qe,dt,It);try{oi(d,s,B)}finally{s.treeContext=Qe}}else oi(d,s,B);Ji(s)}function ql(d){{if(d&&d.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),typeof d.getDerivedStateFromProps=="function"){var s=un(d)||"Unknown";Is[s]||(i("%s: Function components do not support getDerivedStateFromProps.",s),Is[s]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var c=un(d)||"Unknown";Oc[c]||(i("%s: Function components do not support contextType.",c),Oc[c]=!0)}}}function Hl(d,s){if(d&&d.defaultProps){var c=Ri({},s),h=d.defaultProps;for(var y in h)c[y]===void 0&&(c[y]=h[y]);return c}return s}function Ru(d,s,c,h,y){Ua(s,c.render);var M=Rs(d,s,c.render,h,y),B=hi();if(B){var W=s.treeContext,oe=1,Ae=0;s.treeContext=_c(W,oe,Ae);try{oi(d,s,M)}finally{s.treeContext=W}}else oi(d,s,M);Ji(s)}function zl(d,s,c,h,y){var M=c.type,B=Hl(M,h);Ga(d,s,M,B,y)}function Pi(d,s,c,h){c._context===void 0?c!==c.Consumer&&(Oi||(Oi=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var y=h.children;typeof y!="function"&&i("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 M=la(c),B=y(M);oi(d,s,B)}function kn(d,s,c,h){var y=c._context,M=h.value,B=h.children,W;W=s.context,s.context=vc(y,M),oi(d,s,B),s.context=mf(y),W!==s.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Fc(d,s,c,h,y){ho(s,"Lazy");var M=c._payload,B=c._init,W=B(M),oe=Hl(W,h);Ga(d,s,W,oe,y),Ji(s)}function Ga(d,s,c,h,y){if(typeof c=="function")if(Dc(c)){Bl(d,s,c,h);return}else{Af(d,s,c,h);return}if(typeof c=="string"){Lc(d,s,c,h);return}switch(c){case xl:case qi:case ye:case We:case Eo:{oi(d,s,h.children);return}case Sn:{ho(s,"SuspenseList"),oi(d,s,h.children),Ji(s);return}case pu:throw new Error("ReactDOMServer does not yet support scope components.");case Nr:{Eu(d,s,h);return}}if(typeof c=="object"&&c!==null)switch(c.$$typeof){case sr:{Ru(d,s,c,h,y);return}case Vr:{zl(d,s,c,h,y);return}case Fe:{kn(d,s,c,h);return}case Nt:{Pi(d,s,c,h);return}case ea:{Fc(d,s,c,h);return}}var M="";throw(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(M+=" 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: "+(c==null?c:typeof c)+"."+M))}function $l(d,s){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(ku||i("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."),ku=!0),d.entries===s&&(Nc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nc=!0)}function oi(d,s,c){try{return jc(d,s,c)}catch(h){throw typeof h=="object"&&h!==null&&typeof h.then=="function"||(ga=ga!==null?ga:Xi()),h}}function jc(d,s,c){if(s.node=c,typeof c=="object"&&c!==null){switch(c.$$typeof){case hu:{var h=c,y=h.type,M=h.props,B=h.ref;Ga(d,s,y,M,B);return}case _l: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 W=c,oe=W._payload,Ae=W._init,Qe;try{Qe=Ae(oe)}catch(mo){throw typeof mo=="object"&&mo!==null&&typeof mo.then=="function"&&ho(s,"Lazy"),mo}oi(d,s,Qe);return}}if(Et(c)){Bc(d,s,c);return}var dt=Vo(c);if(dt){$l(c,dt);var It=dt.call(c);if(It){var or=It.next();if(!or.done){var Dr=[];do Dr.push(or.value),or=It.next();while(!or.done);Bc(d,s,Dr);return}return}}var Gn=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+(Gn==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":Gn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof c=="string"){var os=s.blockedSegment;os.lastPushedText=ln(s.blockedSegment.chunks,c,d.responseState,os.lastPushedText);return}if(typeof c=="number"){var go=s.blockedSegment;go.lastPushedText=ln(s.blockedSegment.chunks,""+c,d.responseState,go.lastPushedText);return}typeof c=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Bc(d,s,c){for(var h=c.length,y=0;y<h;y++){var M=s.treeContext;s.treeContext=_c(M,h,y);try{ns(d,s,c[y])}finally{s.treeContext=M}}}function Ul(d,s,c){var h=s.blockedSegment,y=h.chunks.length,M=$a(d,y,null,h.formatContext,h.lastPushedText,!0);h.children.push(M),h.lastPushedText=!1;var B=Fo(d,s.node,s.blockedBoundary,M,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(B.componentStack=s.componentStack.parent);var W=B.ping;c.then(W,W)}function ns(d,s,c){var h=s.blockedSegment.formatContext,y=s.legacyContext,M=s.context,B=null;B=s.componentStack;try{return oi(d,s,c)}catch(W){if(Ac(),typeof W=="object"&&W!==null&&typeof W.then=="function"){Ul(d,s,W),s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Xo(M),s.componentStack=B;return}else throw s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=M,Xo(M),s.componentStack=B,W}}function jo(d,s,c,h){var y=Wa(d,h);if(s===null?ma(d,h):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=y,jl(s,h),s.parentFlushed&&d.clientRenderedBoundaries.push(s))),d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function Tf(d){var s=this,c=d.blockedBoundary,h=d.blockedSegment;h.status=Es,va(s,c,h)}function po(d,s,c){var h=d.blockedBoundary,y=d.blockedSegment;if(y.status=Es,h===null)s.allPendingTasks--,s.status!==pa&&(s.status=pa,s.destination!==null&&_(s.destination));else{if(h.pendingTasks--,!h.forceClientRender){h.forceClientRender=!0;var M=c===void 0?new Error("The render was aborted by the server without a reason."):c;h.errorDigest=s.onError(M);{var B="The server did not finish this Suspense boundary: ";M&&typeof M.message=="string"?M=B+M.message:M=B+String(M);var W=Yi;Yi=d;try{jl(h,M)}finally{Yi=W}}h.parentFlushed&&s.clientRenderedBoundaries.push(h)}if(h.fallbackAbortableTasks.forEach(function(Ae){return po(Ae,s,c)}),h.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var oe=s.onAllReady;oe()}}}function is(d,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null){var c=s.children[0];c.id=s.id,c.parentFlushed=!0,c.status===fo&&is(d,c)}else{var h=d.completedSegments;h.push(s)}}function va(d,s,c){if(s===null){if(c.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=c}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=ks;var h=d.onShellReady;h()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)c.parentFlushed&&c.status===fo&&is(s,c),s.parentFlushed&&d.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(Tf,d),s.fallbackAbortableTasks.clear();else if(c.parentFlushed&&c.status===fo){is(s,c);var y=s.completedSegments;y.length===1&&s.parentFlushed&&d.partialBoundaries.push(s)}}if(d.allPendingTasks--,d.allPendingTasks===0){var M=d.onAllReady;M()}}function qc(d,s){var c=s.blockedSegment;if(c.status===Ol){Xo(s.context);var h=null;h=Yi,Yi=s;try{oi(d,s,s.node),vn(c.chunks,d.responseState,c.lastPushedText,c.textEmbedded),s.abortSet.delete(s),c.status=fo,va(d,s.blockedBoundary,c)}catch(M){if(Ac(),typeof M=="object"&&M!==null&&typeof M.then=="function"){var y=s.ping;M.then(y,y)}else s.abortSet.delete(s),c.status=Au,jo(d,s.blockedBoundary,c,M)}finally{Yi=h}}}function Hc(d){if(d.status!==pa){var s=vu(),c=Ml.current;Ml.current=Fn;var h;h=da.getCurrentStack,da.getCurrentStack=Xi;var y=Ts;Dl(d.responseState);try{var M=d.pingedTasks,B;for(B=0;B<M.length;B++){var W=M[B];qc(d,W)}M.splice(0,B),d.destination!==null&&si(d,d.destination)}catch(oe){Wa(d,oe),ma(d,oe)}finally{Dl(y),Ml.current=c,da.getCurrentStack=h,c===Fn&&Xo(s)}}}function Za(d,s,c){switch(c.parentFlushed=!0,c.status){case Ol:{var h=c.id=d.nextSegmentId++;return c.lastPushedText=!1,c.textEmbedded=!1,qr(s,d.responseState,h)}case fo:{c.status=Pl;for(var y=!0,M=c.chunks,B=0,W=c.children,oe=0;oe<W.length;oe++){for(var Ae=W[oe];B<Ae.index;B++)k(s,M[B]);y=Wl(d,s,Ae)}for(;B<M.length-1;B++)k(s,M[B]);return B<M.length&&(y=b(s,M[B])),y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Wl(d,s,c){var h=c.boundary;if(h===null)return Za(d,s,c);if(h.parentFlushed=!0,h.forceClientRender)return Wn(s,d.responseState,h.errorDigest,h.errorMessage,h.errorComponentStack),Za(d,s,c),Ra(s,d.responseState);if(h.pendingTasks>0){h.rootSegmentID=d.nextSegmentId++,h.completedSegments.length>0&&d.partialBoundaries.push(h);var y=h.id=In(d.responseState);return wo(s,d.responseState,y),Za(d,s,c),Ti(s,d.responseState)}else{if(h.byteSize>d.progressiveChunkSize)return h.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(h),wo(s,d.responseState,h.id),Za(d,s,c),Ti(s,d.responseState);Gi(s,d.responseState);var M=h.completedSegments;if(M.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=M[0];return Wl(d,s,B),Xr(s,d.responseState)}}function zc(d,s,c){return fu(s,d.responseState,c.id,c.errorDigest,c.errorMessage,c.errorComponentStack)}function Ka(d,s,c){return lr(s,d.responseState,c.formatContext,c.id),Wl(d,s,c),Kr(s,c.formatContext)}function Iu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];$c(d,s,c,M)}return h.length=0,La(s,d.responseState,c.id,c.rootSegmentID)}function Lu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var M=h[y];if(!$c(d,s,c,M))return y++,h.splice(0,y),!1}return h.splice(0,y),!0}function $c(d,s,c,h){if(h.status===Pl)return!0;var y=h.id;if(y===-1){var M=h.id=c.rootSegmentID;if(M===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ka(d,s,h)}else return Ka(d,s,h),uf(s,d.responseState,y)}function si(d,s){T();try{var c=d.completedRootSegment;c!==null&&d.pendingRootTasks===0&&(Wl(d,s,c),d.completedRootSegment=null,en(s,d.responseState));var h=d.clientRenderedBoundaries,y;for(y=0;y<h.length;y++){var M=h[y];zc(d,s,M)}h.splice(0,y);var B=d.completedBoundaries;for(y=0;y<B.length;y++){var W=B[y];Iu(d,s,W)}B.splice(0,y),x(s),T(s);var oe=d.partialBoundaries;for(y=0;y<oe.length;y++){var Ae=oe[y];if(!Lu(d,s,Ae)){d.destination=null,y++,oe.splice(0,y);return}}oe.splice(0,y);var Qe=d.completedBoundaries;for(y=0;y<Qe.length;y++){var dt=Qe[y];Iu(d,s,dt)}Qe.splice(0,y)}finally{x(s),d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(s))}}function Qi(d){u(function(){return Hc(d)})}function Ef(d,s){if(d.status===ha){d.status=pa,D(s,d.fatalError);return}if(d.status!==pa&&d.destination===null){d.destination=s;try{si(d,s)}catch(c){Wa(d,c),ma(d,c)}}}function Du(d,s){try{var c=d.abortableTasks;c.forEach(function(h){return po(h,d,s)}),c.clear(),d.destination!==null&&si(d,d.destination)}catch(h){Wa(d,h),ma(d,h)}}function Vl(d,s){return new Promise(function(c,h){var y,M,B=new Promise(function(It,or){M=It,y=or});function W(){var It=new ReadableStream({type:"bytes",pull:function(or){Ef(Ae,or)},cancel:function(or){Du(Ae)}},{highWaterMark:0});It.allReady=B,c(It)}function oe(It){B.catch(function(){}),h(It)}var Ae=Nl(d,Gr(s?s.identifierPrefix:void 0,s?s.nonce:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),gi(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,M,W,oe,y);if(s&&s.signal){var Qe=s.signal,dt=function(){Du(Ae,Qe.reason),Qe.removeEventListener("abort",dt)};Qe.addEventListener("abort",dt)}Qi(Ae)})}Id.renderToReadableStream=Vl,Id.version=e}()),Id}var r0;function T5(){if(r0)return Yl;r0=1;var r,e;return process.env.NODE_ENV==="production"?(r=S5(),e=C5()):(r=w5(),e=A5()),Yl.version=r.version,Yl.renderToString=r.renderToString,Yl.renderToStaticMarkup=r.renderToStaticMarkup,Yl.renderToNodeStream=r.renderToNodeStream,Yl.renderToStaticNodeStream=r.renderToStaticNodeStream,Yl.renderToReadableStream=e.renderToReadableStream,Yl}var o2=T5();const js=cl(o2);function qf(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Jc={_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 i,l,u,f,p,m;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const T=this._canvas.getContext("2d");if(T){T.font=e;const k=T.measureText(r).width;return this._charWidthMap.set(t,k),k}}catch{}let n;return r===" "?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((p=e.match(/(\d+)px/))==null?void 0:p[1])||"14")*.25:n=parseInt(((m=e.match(/(\d+)px/))==null?void 0:m[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(S.isValidElement(r))try{const t=o2.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 l;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,i=this._cache.get(n);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const u=this._canvas.getContext("2d");if(u){u.font=t;const f=u.measureText(r),p=Math.ceil(f.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(T=>this._cache.delete(T)),this._cache.set(n,p),p}}catch{}try{const u=document.createElement("span");u.style.font=t,u.style.position="absolute",u.style.visibility="hidden",u.style.whiteSpace="nowrap",u.textContent=r,document.body.appendChild(u);const f=Math.ceil(u.getBoundingClientRect().width);return document.body.removeChild(u),this._cache.set(n,f),f}catch{}try{let u=0;for(let p=0;p<r.length;p++)u+=this.measureCharWidth(r[p],t);u*=.95;const f=Math.ceil(u);return this._cache.set(n,f),f}catch{}try{const u=parseInt(((l=t.match(/(\d+)px/))==null?void 0:l[1])||"14");let f=0;for(let m=0;m<r.length;m++){const T=r[m];T===" "?f+=.33:/^[A-Z]$/.test(T)?f+=.67:/^[a-z]$/.test(T)?f+=.5:/^\d$/.test(T)?f+=.6:/^[.,;:!?]$/.test(T)?f+=.25:f+=.67}const p=Math.ceil(f*u);return this._cache.set(n,p),p}catch{const f=r.length*10;return this._cache.set(n,f),f}},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:i="",optionRenderer:l,type:u="Primary",isMulti:f=!1}){if(!r.current)return 200;try{let p=0;if(e&&e.length>0){const x=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(I,w)=>e[Math.floor(w*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],_=Array.from(new Set(x.filter(Boolean)));for(const I of _){if(!I)continue;const w=this.measureRenderedOptionWidth(I,l);p=Math.max(p,w)}}let m=0;if(!f&&t)m=this.measureRenderedOptionWidth(t,l);else if(f&&n&&n.length){if(n.length===1)m=this.measureRenderedOptionWidth(n[0],l);else if(m=this.measureTextWidth(`${n.length} selected`),n.length>0){let x=0;for(const _ of n){const I=this.measureRenderedOptionWidth(_,l);x=Math.max(x,I)}m=Math.max(m,x)}}let T=0;i&&(T=this.measureReactNodeWidth(i));const b=Math.max(p,m,T,50);if(r.current){const x=window.getComputedStyle(r.current),_=parseFloat(x.paddingLeft||"0")+parseFloat(x.paddingRight||"0"),I=parseFloat(x.borderLeftWidth||"0")+parseFloat(x.borderRightWidth||"0"),w=u==="Primary"?30:20,C=f?24:0,D=Math.ceil(b*.05)+10;return Math.ceil(b+_+I+w+C+D)}return b+60}catch{return 200}}};var _i=(r=>(r.N="North",r.S="South",r.E="East",r.W="West",r))(_i||{}),sf=(r=>(r.N="North",r.NW="NorthWest",r.NE="NorthEast",r.S="South",r.SW="SouthWest",r.SE="SouthEast",r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(sf||{});function vm(r,e,t,n){if(!r.current||!e.current)return;const i=r.current.getBoundingClientRect(),l=e.current.getBoundingClientRect();let u={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":u=l?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-l.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":u={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":u={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":u=l?{top:i.bottom,left:i.left+i.width/2-l.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":u={top:i.bottom,left:i.left};break;case"SouthEast":u={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":u=l?{top:i.top+i.height/2-l.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":u={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":u={top:i.top,left:i.right};break;case"West":u=l?{top:i.top+i.height/2-l.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":u={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":u={top:i.top,right:window.innerWidth-i.left};break;default:u={top:i.top,left:i.left}}n&&(n.x&&u.left&&(u.left+=n.x),n.y&&u.top&&(u.top+=n.y)),u=a2(u,l),e.current.style.top=u.top+"px",e.current.style.left=u.left+"px",e.current.style.bottom=u.bottom+"px",e.current.style.right=u.right+"px"}function s2(r,e,t,n){if(!r)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const l=r.getBoundingClientRect(),u=i.getBoundingClientRect();let f={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":f=u?{bottom:window.innerHeight-l.top,left:l.left+l.width/2-u.width/2}:{bottom:window.innerHeight-l.top,left:l.left};break;case"NorthWest":f={bottom:window.innerHeight-l.top,left:l.left};break;case"NorthEast":f={bottom:window.innerHeight-l.top,right:window.innerWidth-l.left-l.width};break;case"South":f=u?{top:l.bottom,left:l.left+l.width/2-u.width/2}:{top:l.bottom,left:l.left};break;case"SouthWest":f={top:l.bottom,left:l.left};break;case"SouthEast":f={top:l.bottom,right:window.innerWidth-l.left-l.width};break;case"East":f=u?{top:l.top+l.height/2-u.height/2,left:l.right}:{top:l.top,left:l.right};break;case"EastNorth":f={bottom:window.innerHeight-l.top-l.height,left:l.right};break;case"EastSouth":f={top:l.top,left:l.right};break;case"West":f=u?{top:l.top+l.height/2-u.height/2,right:window.innerWidth-l.left}:{top:l.top,right:window.innerWidth-l.left};break;case"WestNorth":f={bottom:window.innerHeight-l.top-l.height,right:window.innerWidth-l.left};break;case"WestSouth":f={top:l.top,right:window.innerWidth-l.left};break;default:f={top:l.top,left:l.left}}return n&&(n.x&&f.left&&(f.left+=n.x),n.y&&f.top&&(f.top+=n.y)),f=a2(f,u),i.style.top=f.top+"px",i.style.left=f.left+"px",i.style.bottom=f.bottom+"px",i.style.right=f.right+"px",f}function a2(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 Yc(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const E5="_Tooltip_3l8se_1",k5="_Arrow_3l8se_17",n0={Tooltip:E5,Arrow:k5},l2=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:i=10,direction:l=_i.S}=r,[u,f]=S.useState(!1),p=S.useRef(null),m=S.useRef(null),T=S.useRef(),k=S.useCallback(()=>{f(!0),T.current&&(clearTimeout(T.current),T.current=void 0);const I=setTimeout(()=>i0(t,p,m,i,l),n);T.current=I},[t,n,i,l]),b=S.useCallback(()=>f(!1),[]);S.useEffect(()=>{const I=t.current;if(I)return I.addEventListener("mouseenter",k),I.addEventListener("mouseleave",b),()=>{I.removeEventListener("mouseenter",k),I.removeEventListener("mouseleave",b)}},[t,b,k]);const x=S.useCallback(()=>{i0(t,p,m,i,l)},[t,i,l]);S.useEffect(()=>{if(!t.current||!p.current||!u)return;const I=t.current.parentElement;let w=I;for(;w;)w.addEventListener("scroll",x),w=w.parentElement;return()=>{let C=I;for(;C;)C.removeEventListener("scroll",x),C=C.parentElement}},[t,x,u]),S.useEffect(()=>{x()},[e,x]);const _=S.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!u||_?null:zs.createPortal(v.jsxs("div",{className:Ne.clsx(n0.Tooltip,"NoSelect"),ref:p,children:[e,v.jsx("div",{ref:m,className:n0.Arrow})]}),document.body)},Ld="5px solid var(--ATooltip_background-color)";function i0(r,e,t,n,i=_i.S){if(!r.current||!e.current||!t.current)return;const l=R5(r.current,e.current,n,i);if(!l)return;const{left:u,top:f,arrowDir:p,arrow:m}=l;e.current.style.left=`${u}px`,e.current.style.top=`${f}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",p===_i.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderBottom=Ld):p===_i.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderTop=Ld):p===_i.W?(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=Ld):p===_i.E&&(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=Ld)}const Xl=5;function R5(r,e,t,n){const i=r.getBoundingClientRect(),l=e.getBoundingClientRect();function u(){if(window.innerHeight-i.bottom>l.height+t){const T=i.bottom+t,k=i.left+(i.width-l.width)/2,b=qf(k,Xl,window.innerWidth-Xl-l.width),x=_i.N;return{left:b,top:T,arrowDir:x,arrow:{left:k-b}}}}function f(){if(i.top>l.height+t){const T=i.top-l.height-t,k=i.left+(i.width-l.width)/2,b=qf(k,Xl,window.innerWidth-Xl-l.width),x=_i.S;return{left:b,top:T,arrowDir:x,arrow:{left:k-b}}}}function p(){if(window.innerWidth-i.right>l.width+t){const T=i.right+t,k=i.top+(i.height-l.height)/2,b=qf(k,Xl,window.innerHeight-Xl-l.height),x=_i.W;return{left:T,top:b,arrowDir:x,arrow:{top:k-b}}}}function m(){if(i.left>l.width+t){const T=i.left-l.width-t,k=i.top+(i.height-l.height)/2,b=qf(k,Xl,window.innerHeight-Xl-l.height),x=_i.E;return{left:T,top:b,arrowDir:x,arrow:{top:k-b}}}}if(n===_i.E)return p()||m()||u()||f();if(n===_i.S)return u()||f()||p()||m();if(n===_i.W)return m()||p()||u()||f();if(n===_i.N)return f()||u()||p()||m()}const I5="_ABase_c7a1t_1",L5="_UseDimming_c7a1t_6",D5="_Dimmer_c7a1t_6",M5="_Spinner_c7a1t_9",O5="_Dimmed_c7a1t_12",P5="_HasProgress_c7a1t_18",N5="_IsDimmed_c7a1t_36",F5="_IsLoading_c7a1t_41",j5="_IsDisabled_c7a1t_46",Fu={ABase:I5,UseDimming:L5,Dimmer:D5,Spinner:M5,Dimmed:O5,HasProgress:P5,IsDimmed:N5,IsLoading:F5,IsDisabled:j5},Ur=r=>{const{children:e,abaseRef:t,isDisabled:n,isLoading:i,isDimmed:l,tooltip:u,tooltipDistance:f=10,tooltipDelay:p=0,tooltipDirection:m=_i.S,progress:T,progressProps:k,...b}=r,x=S.useRef(null),_=S.useCallback(O=>{x.current=O,t&&(t.current=O);const N=b.ref;N&&(typeof N=="function"?N(O):N&&typeof N=="object"&&"current"in N&&(N.current=O))},[t,b]),I=S.useMemo(()=>typeof n=="string"&&n!==""?n:u!==void 0?u:"",[n,u]),w=S.useMemo(()=>n||i||l,[n,i,l]),C=S.useMemo(()=>n!==void 0||i!==void 0||l!==void 0,[n,i,l]),D=typeof T=="number"&&i;return v.jsxs("div",{...b,className:Ne.clsx(b.className,Fu.ABase,C&&Fu.UseDimming,w&&Fu.Dimmed,D&&Fu.HasProgress),ref:_,children:[e,C&&v.jsx("div",{className:Ne.sclsx(Fu,"Dimmer",n&&"IsDisabled",i&&"IsLoading",l&&"IsDimmed",D&&"HasProgress")}),i&&v.jsxs("div",{className:Ne.sclsx(Fu,"Spinner",n&&"IsDisabled",i&&"IsLoading",D&&"HasProgress"),children:[v.jsx(Br,{icon:"Spinner"}),D&&v.jsx(i2,{progress:T,...k})]}),v.jsx(l2,{tooltip:I,delay:p,distance:f,direction:m,targetRef:x})]})},B5="_AButton_vulhu_1",q5="_Primary_vulhu_14",H5="_Secondary_vulhu_19",z5="_Alter_vulhu_24",$5="_AIconButton_vulhu_30",U5="_AThemeButton_vulhu_71",Qf={AButton:B5,Primary:q5,Secondary:H5,Alter:z5,AIconButton:$5,AThemeButton:U5},W5=["Primary","Secondary","Alter","Raw"],ji=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...i}=r,l=S.useMemo(()=>i.isDisabled||i.isLoading,[i.isDisabled,i.isLoading]),u=S.useCallback(f=>{l||t==null||t(f)},[l,t]);return v.jsx(Ur,{...i,className:Ne.clsx(i.className,Qf.AButton,e!=="Raw"&&Qf[e],"IsClickable",!l&&!n&&"IsInteractive"),onClick:u})},V5=["Primary","Secondary","Raw"],pi=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:i,isDisabled:l,isLoading:u,tooltip:f,className:p,...m}=r,T=S.useMemo(()=>l||u,[l,u]),k=S.useCallback(x=>{T||i==null||i(x)},[T,i]),b=S.useMemo(()=>mm.includes(e)?v.jsx(Br,{icon:e,size:t}):e,[e,t]);return v.jsx(Ur,{className:Ne.clsx(Qf.AIconButton,!l&&!u&&"IsClickable",n!=="Raw"&&Qf[n],p),onClick:k,isDisabled:l,isLoading:u,tooltip:f,...m,children:b})};function dn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=S.useState(e);return S.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const G5="_AWrap_16uyn_1",Z5="_Label_16uyn_8",K5="_Asterisk_16uyn_19",Y5="_HelperTextConatiner_16uyn_23",X5="_HelperText_16uyn_23",ju={AWrap:G5,Label:Z5,Asterisk:K5,HelperTextConatiner:Y5,HelperText:X5,Error:"_Error_16uyn_38"},J5=["Default","Error"],ic=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:i="Default",label:l,labelProps:u,children:f}=r,p=S.useRef(null),[m,T]=S.useState({height:0}),k=S.useRef(null),[b,x]=S.useMemo(()=>{let I=n,w=i;if(Array.isArray(t)){const C=t.filter(Boolean);C.length>0&&([I,w]=[C,"Error"])}else t&&([I,w]=[t,"Error"]);return Array.isArray(I)&&(w!=="Error"&&(I=I.filter(Boolean)),I=I.map((C,D)=>v.jsxs(S.Fragment,{children:[C,v.jsx("br",{})]},D))),[I,w]},[n,t,i]);S.useEffect(()=>{if(!b||!p.current)T({height:0});else{const I=p.current.getBoundingClientRect();T({height:I.height,marginTop:I.height===0?0:6})}},[b]);const _=S.useMemo(()=>{switch(typeof(u==null?void 0:u.prefix)){case"string":return v.jsx(Br,{width:"1rem",height:"1rem",icon:u.prefix});case"boolean":return v.jsx(Br,{width:10,height:10,icon:"Target"});default:return u==null?void 0:u.prefix}},[u==null?void 0:u.prefix]);return v.jsxs("div",{...e,className:Ne.clsx(e==null?void 0:e.className,ju.AWrap),ref:k,children:[l&&v.jsxs("div",{className:Ne.clsx(ju.Label,"NoSelect",u==null?void 0:u.className),style:u==null?void 0:u.style,children:[_,l,(u==null?void 0:u.asterisk)&&v.jsx(Ur,{tooltip:sn.AWrap.Asterisk,className:ju.Asterisk,children:"*"})]}),f,b!==void 0&&v.jsx("div",{className:Ne.clsx(ju.HelperTextConatiner,"NoSelect"),style:m,children:v.jsx("div",{className:Ne.clsx(ju.HelperText,ju[x]),ref:p,children:b})})]})},Q5="_ASwitch_1uv2e_1",eT="_Track_1uv2e_6",tT="_Truthy_1uv2e_13",rT="_Thumb_1uv2e_17",Of={ASwitch:Q5,Track:eT,Truthy:tT,Thumb:rT},c2=r=>{const{wrapProps:e,helperText:t,label:n,useCheck:i,...l}=r,[u,f]=dn(i,!1),p=S.useCallback(m=>{var T;l.isDisabled||l.isLoading||(f==null||f(!u),(T=l.onClick)==null||T.call(l,m))},[l,u,f]);return v.jsx(ic,{helperText:t,label:n,wrapProps:{...e},children:v.jsx(Ur,{...l,className:Of.ASwitch,onClick:p,children:v.jsx("div",{className:Ne.clsx(Of.Track,u&&Of.Truthy),children:v.jsx("div",{className:Ne.clsx(Of.Thumb,u&&Of.Truthy)})})})})},nT={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","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","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"}}},Si=K_.cloneDeep(nT);rr.keys(Si.semantic).forEach(r=>{const e=Si.semantic[r];rr.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const uh=rr.keys(Si.palette),u2=rr.keys(Si.palette[uh[0]]);function iT(){return li.paletteMode}function oT(r,e=li.paletteMode){return Si.palette[e][r]}function sT(r){return dh(r)}const Qd=[];function f2(r){li.paletteMode=r,u2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Si.palette[r][e])),Qd.forEach(e=>e(r))}function d2(r,e="all"){rr.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?uh.forEach(l=>{Si.palette[l][n]=i}):Si.palette[e][n]=i)})}const Ju=rr.keys(Si.semantic),h2=rr.keys(Si.semantic[Ju[0]]);function aT(){return li.semanticMode}function lT(r,e=li.semanticMode){return Si.semantic[e][r]}function cT(r){return dh(r)}const eh=[];function ym(r){li.semanticMode=r,document.documentElement.setAttribute("data-theme",r),h2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Si.semantic[r][e])),eh.forEach(e=>e(r)),li.save==="localStorage"?localStorage.setItem("semanticMode",r):li.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function p2(r,e=li.semanticMode){rr.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?Ju.forEach(l=>{Si.semantic[l][n]=i}):Si.semantic[e][n]=i)})}const g2=["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"],m2=["ABase_Dimming_background-color"],v2=["ATooltip_background-color","ATooltip_color"],y2=["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"],b2=["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"],_2=["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"],x2=["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_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"],S2=["ACheckBox_color"],C2=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],w2=["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"],A2=["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"],T2=["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"],E2=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],k2=["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"],R2=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],I2=["AListView_border-thin","AListView_border-thick"],L2=["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"],D2=["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"],M2=["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"],O2=["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"],P2=["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"],N2=["ADivideFrame_DividerInner_background-color"],F2=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],j2=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],B2=["AWrap_Error_color"],q2=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],H2=["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"],uT=[...g2,...m2,...v2,...y2,...b2,..._2,...x2,...S2,...C2,...w2,...A2,...T2,...E2,...k2,...R2,...I2,...L2,...D2,...M2,...O2,...P2,...N2,...F2,...j2,...B2,...q2,...H2],fh={"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_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)","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 fT(r){return fh[r]}function dT(r){return dh(r)}function z2(r){rr.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),fh[t]=n)})}function hT(r){rr.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const i=Si.semantic[li.semanticMode][n];i!==void 0&&(document.documentElement.style.setProperty(t,i),fh[t]=i)})}const li={paletteMode:uh[0],semanticMode:Ju[0],save:"",followDeviceSetting:!1};function pT({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(li.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),i=u=>{li.semanticMode=u.matches?"dark":"light"};i(n);const l=u=>i(u);n.addEventListener("change",l)}if(e!==void 0){if(li.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");Ju.includes(n)&&(li.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");Ju.includes(n)&&(li.semanticMode=n)}}r!==void 0&&(li.semanticMode=r),f2(li.paletteMode),ym(li.semanticMode),d2(Si.palette[li.paletteMode]),p2(Si.semantic[li.semanticMode]),z2(fh)}function gT(r){r.type==="semanticModeChange"?eh.push(r.listener):r.type==="paletteModeChange"?Qd.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function mT(r){if(r.type==="semanticModeChange"){const e=eh.indexOf(r.listener);e!==-1&&eh.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Qd.indexOf(r.listener);e!==-1&&Qd.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function dh(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function vT(r){Object.assign(Ne.additionalClasses,r),Ne.updateKeys(),Ne.additionalClasses=Ne.additionalClasses}const Hf={getCurrentPaletteMode:iT,getPaletteValue:oT,getPaletteDeepValue:sT,changePaletteMode:f2,editPalette:d2,getCurrentSemanticMode:aT,getSemanticValue:lT,getSemanticDeepValue:cT,changeSemanticMode:ym,editSemantic:p2,getComponentStyleValue:fT,getComponentStyleDeepValue:dT,editComponentStyle:z2,editComponentStyleWithSemantic:hT,init:pT,addEventListener:gT,removeEventListener:mT,getDeepValue:dh,addClasses:vT},yT=r=>{const{onChange:e,onClick:t,type:n="Icon",...i}=r,[l,u]=S.useState(Hf.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),f=S.useCallback(p=>{const m=Hf.getCurrentSemanticMode();let T="light";m==="light"?T="dark":m==="dark"&&(T="light"),Hf.changeSemanticMode(T),u(bT[T]),e==null||e(T),t==null||t(p)},[e,t]);if(n==="Icon")return v.jsx(pi,{...i,className:Ne.clsx(Qf.AThemeButton,i.className,"IsInteractive"),type:"Raw",icon:l,onClick:f});if(n==="Switch")return v.jsx(c2,{...i,useCheck:[Hf.getCurrentSemanticMode()==="dark",f]})},bT={light:"Sun",dark:"Moon"},_T="_ACheckBoxWrap_1ozuz_1",xT="_ACheckBox_1ozuz_1",o0={ACheckBoxWrap:_T,ACheckBox:xT},Qu=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:i,onClick:l,...u}=r,[f,p]=dn(e,!1),m=S.useCallback(T=>{n||i||(p==null||p(!f),l==null||l(T))},[n,i,l,f,p]);return v.jsx(Ur,{...u,className:Ne.clsx(u.className,o0.ACheckBoxWrap),isDisabled:n,isLoading:i,onClick:m,children:v.jsx(Br,{className:o0.ACheckBox,icon:t?"Check.Indeterminate":f?"Check.Checked":"Check.UnChecked"})})};function ST(r){return typeof r=="function"}function CT(r,e){return ST(r)?r(e):r}const Ir={getContent:CT};class s0{constructor(e){ct(this,"capacity");ct(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 Xc=class Xc{constructor(){ct(this,"databases",{});ct(this,"caches",{});ct(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return Xc.instance||(Xc.instance=new Xc),Xc.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new s0(this.DEFAULT_CACHE_SIZE)),this.caches[n]}async getDB(e,t,n=1){return this.databases[e]?this.databases[e]:new Promise((i,l)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),l(new Error("IndexedDB not supported"));return}const u=window.indexedDB.open(e,n);u.onerror=f=>{console.error("IndexedDB 연결 오류:",f.target.error),l(f.target.error)},u.onsuccess=f=>{const p=f.target.result;this.databases[e]=p,i(p)},u.onupgradeneeded=f=>{const p=f.target.result;p.objectStoreNames.contains(t)||p.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,n){this.getCache(e,t).put(n.id,{...n});const f=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((p,m)=>{const T=f.put(n);T.onsuccess=()=>p(),T.onerror=k=>{console.error("데이터 저장 오류:",k.target.error),m(k.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const i=this.getCache(e,t);n.forEach(p=>i.put(p.id,{...p}));const u=(await this.getDB(e,t)).transaction([t],"readwrite"),f=u.objectStore(t);return new Promise((p,m)=>{u.oncomplete=()=>p(),u.onerror=T=>{console.error("배치 저장 오류:",T.target.error),m(T.target.error)},n.forEach(T=>f.put(T))})}async get(e,t,n){const i=this.getCache(e,t),l=i.get(n);if(l)return l;const p=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((m,T)=>{const k=p.get(n);k.onsuccess=()=>{const b=k.result;b&&i.put(n,b),m(b||null)},k.onerror=b=>{console.error("데이터 조회 오류:",b.target.error),T(b.target.error)}})}async getByIndex(e,t,n,i){const p=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((m,T)=>{const k=p.getAll(i);k.onsuccess=()=>{const b=k.result,x=this.getCache(e,t);b.forEach(_=>{_&&_.id&&x.put(_.id,_)}),m(b)},k.onerror=b=>{console.error("인덱스 조회 오류:",b.target.error),T(b.target.error)}})}async delete(e,t,n){this.getCache(e,t).delete(n);const f=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((p,m)=>{const T=f.delete(n);T.onsuccess=()=>p(),T.onerror=k=>{console.error("데이터 삭제 오류:",k.target.error),m(k.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const i=this.getCache(e,t);n.forEach(p=>i.delete(p));const u=(await this.getDB(e,t)).transaction([t],"readwrite"),f=u.objectStore(t);return new Promise((p,m)=>{u.oncomplete=()=>p(),u.onerror=T=>{console.error("배치 삭제 오류:",T.target.error),m(T.target.error)},n.forEach(T=>f.delete(T))})}async getAll(e,t){const l=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((u,f)=>{const p=l.getAll();p.onsuccess=()=>{const m=p.result,T={},k=this.getCache(e,t);m.forEach(b=>{b.id&&(T[b.id]=b,k.put(b.id,b))}),u(T)},p.onerror=m=>{console.error("데이터 전체 조회 오류:",m.target.error),f(m.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const u=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((f,p)=>{const m=u.clear();m.onsuccess=()=>f(),m.onerror=T=>{console.error("데이터 초기화 오류:",T.target.error),p(T.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 i=`${e}_${t}`,u=this.getCache(e,t).entries();this.caches[i]=new s0(n);for(const[f,p]of u)this.caches[i].get(f)===void 0&&f!==void 0&&this.caches[i].put(f,p)}};ct(Xc,"instance");let U1=Xc;const Ms=U1.getInstance(),Ns={save:(r,e,t)=>Ms.save(r,e,t),get:(r,e,t)=>Ms.get(r,e,t),delete:(r,e,t)=>Ms.delete(r,e,t),getAll:(r,e)=>Ms.getAll(r,e),clear:(r,e)=>Ms.clear(r,e),batchSave:(r,e,t)=>Ms.batchSave(r,e,t),batchDelete:(r,e,t)=>Ms.batchDelete(r,e,t),getByIndex:(r,e,t,n)=>Ms.getByIndex(r,e,t,n),getCached:(r,e,t)=>Ms.getCached(r,e,t),clearCached:(r,e)=>Ms.clearCached(r,e),setCacheSize:(r,e,t)=>Ms.setCacheSize(r,e,t)};function $2(r,e,t={}){const{dataFieldName:n="data"}=t,[i,l]=S.useState(!1),[u,f]=S.useState(null),p=S.useRef(new Map);S.useEffect(()=>{const ie=p.current;return()=>{ie.forEach(Y=>Y.abort()),ie.clear()}},[]);const m=S.useCallback(ie=>{const Y=p.current,se=Y.get(ie);se&&se.abort();const q=new AbortController;return Y.set(ie,q),q},[]),T=S.useCallback(ie=>{p.current.delete(ie)},[]),k=S.useCallback(async(ie,Y)=>{try{l(!0),f(null),m(ie);const se=await Y();return T(ie),se}catch(se){return se instanceof Error&&se.name==="AbortError"||f(se instanceof Error?se:new Error(String(se))),null}finally{l(!1)}},[m,T]),b=S.useCallback(async(ie,Y)=>ie?await k(`save_${ie}`,async()=>(await Ns.save(r,e,{id:ie,[n]:Y,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,k]),x=S.useCallback(async ie=>ie.length?await k(`batch_save_${Date.now()}`,async()=>{const Y=ie.map(se=>({id:se.id,[n]:se.data,updatedAt:new Date().toISOString()}));return await Ns.batchSave(r,e,Y),!0})===!0:!1,[r,e,n,k]),_=S.useCallback(async ie=>ie?await k(`get_${ie}`,async()=>{const Y=await Ns.get(r,e,ie);return(Y==null?void 0:Y[n])||null}):null,[r,e,n,k]),I=S.useCallback(ie=>{if(!ie)return null;const Y=Ns.getCached(r,e,ie);return(Y==null?void 0:Y[n])||null},[r,e,n]),w=S.useCallback(async ie=>ie?await k(`delete_${ie}`,async()=>(await Ns.delete(r,e,ie),!0))===!0:!1,[r,e,k]),C=S.useCallback(async ie=>ie.length?await k(`batch_delete_${Date.now()}`,async()=>(await Ns.batchDelete(r,e,ie),!0))===!0:!1,[r,e,k]),D=S.useCallback(async()=>await k(`get_all_${Date.now()}`,async()=>{const ie=await Ns.getAll(r,e);return Object.entries(ie).reduce((Y,[se,q])=>(Y[se]=q[n],Y),{})})||{},[r,e,n,k]),O=S.useCallback(async()=>await k(`clear_all_${Date.now()}`,async()=>(await Ns.clear(r,e),!0))===!0,[r,e,k]),N=S.useCallback(ie=>{const Y=p.current.get(ie);Y&&(Y.abort(),p.current.delete(ie))},[]),j=S.useCallback(()=>{new Map(p.current).forEach(Y=>Y.abort()),p.current.clear()},[]),$=S.useCallback(ie=>{Ns.setCacheSize(r,e,ie)},[r,e]),Z=S.useCallback(()=>{Ns.clearCached(r,e)},[r,e]);return{save:b,get:_,delete:w,getAll:D,clearAll:O,batchSave:x,batchDelete:C,getCached:I,setCacheSize:$,clearCache:Z,cancelOperation:N,cancelAllOperations:j,isLoading:i,error:u}}const wT="LayoutDB",AT="layouts";function U2(){const r=$2(wT,AT,{dataFieldName:"lengths"}),[e,t]=S.useState({}),n=S.useRef({}),i=async(T,k)=>await r.save(T,k),l=async T=>await r.get(T),u=T=>r.getCached(T),f=T=>{const k=u(T);return k?{data:k,isLoaded:!0}:n.current[T]!==void 0?{data:n.current[T],isLoaded:!!e[T]}:(e[T]||(n.current[T]=null,l(T).then(b=>{n.current[T]=b,t(x=>({...x,[T]:!0}))})),{data:null,isLoaded:!1})},p=async T=>(t(k=>{const b={...k};return delete b[T],b}),n.current[T]!==void 0&&delete n.current[T],await r.delete(T)),m=S.useCallback(()=>{t({}),n.current={}},[]);return{save:i,get:l,getCached:u,getSync:f,deleteItem:p,resetSyncState:m,isLoading:r.isLoading,error:r.error}}const TT="_ARowFrame_b1se5_1",ET="_AColFrame_b1se5_7",kT="_AOverflowFrame_b1se5_13",RT="_ADivideFrame_b1se5_22",IT="_Row_b1se5_30",LT="_Col_b1se5_33",DT="_FadeIn_b1se5_36",MT="_NoTransition_b1se5_39",OT="_ChildFrame_b1se5_43",PT="_Divider_b1se5_61",NT="_IsMoving_b1se5_69",FT="_NoDraggable_b1se5_69",jT="_DividerInner_b1se5_72",BT="_IsClicked_b1se5_97",qT="_RemoteButton_b1se5_132",HT="_isExpanded_b1se5_137",ai={ARowFrame:TT,AColFrame:ET,AOverflowFrame:kT,ADivideFrame:RT,Row:IT,Col:LT,FadeIn:DT,NoTransition:MT,ChildFrame:OT,Divider:PT,IsMoving:NT,NoDraggable:FT,DividerInner:jT,IsClicked:BT,RemoteButton:qT,isExpanded:HT},An=r=>v.jsx(Ur,{...r,className:Ne.clsx(ai.ARowFrame,r.className),children:r.children}),W2=r=>v.jsx("div",{...r,className:Ne.clsx(ai.AColFrame,r.className),children:r.children}),wa=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:i,className:l,noOverflowTooltip:u,...f}=r,p=S.useRef(null),m=S.useMemo(()=>n??p,[n]),[T,k]=S.useState(!1),b=S.useCallback(()=>k(!0),[]),x=S.useCallback(()=>k(!1),[]);S.useEffect(()=>{const I=m.current;if(I)return I.addEventListener("mouseenter",b),I.addEventListener("mouseleave",x),()=>{I.removeEventListener("mouseenter",b),I.removeEventListener("mouseleave",x)}},[m,b,x]);const _=S.useMemo(()=>i?"":u||!T||!m.current?e:m.current.scrollWidth>m.current.clientWidth?t:e,[m,i,t,e,u,T]);return v.jsx(Ur,{...f,isDisabled:i,children:t,abaseRef:m,tooltip:_,className:Ne.clsx(ai.AOverflowFrame,l)})},V2=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:v.jsx(S.Suspense,{children:t[e]})},G2=S.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:i=40,children:l,childStyle:u,childClassName:f,dividerStyle:p,dividerClassName:m,dividerPadding:T,dividerInnerClassName:k,dividerInnerStyle:b,showRemote:x,noDividerDraggable:_,resources:I,remoteButtonClassName:w,...C}=r,D=S.useMemo(()=>({...sn.ADivideFrame,...I}),[I]),O=S.useRef(null),N=S.useRef(!1),j=S.useRef(!0),$=S.useRef(n),[Z,ie]=S.useState(),[Y,se]=S.useState(n),[q,J]=S.useState("FadeOut"),[X,ne]=S.useState(!1),{save:ge,getSync:me,deleteItem:ve}=U2(),de=S.useCallback(()=>{j.current&&requestAnimationFrame(()=>{j.current=!1,J("FadeIn")})},[]),De=S.useMemo(()=>{let xe;return Array.isArray(l)?xe=l:xe=[l],xe.filter(Boolean)},[l]),ue=S.useMemo(()=>e&&!x,[e,x]),le=S.useCallback(()=>{if(!ue){de();return}try{const xe=String(e),{data:Se,isLoaded:be}=me(xe);Se?(se(Se),be&&de()):be?(se(n),ge(String(e),n),de()):se(n)}catch{se(n),de()}},[ue,de,e,me,n,ge]);S.useEffect(()=>{if(ue){le();const xe=String(e),Se=()=>{const{isLoaded:be}=me(xe);be?de():requestAnimationFrame(Se)};Se()}else de()},[ue,le,de,e,me]),S.useEffect(()=>{$.current!==n&&($.current=n,N.current||(se(n),ue&&ge(String(e),n)),N.current=!1)},[ue,n,e,ge]);const fe=S.useMemo(()=>{const xe=T??0;return typeof i=="number"?Array(De.length).fill(i+xe):i.map(Se=>Se+xe)},[i,De.length,T]),Me=S.useMemo(()=>(Z==null?void 0:Z.lefts)||Y,[Z,Y]),Ve=S.useRef({x:0,y:0}),pe=S.useCallback((xe,Se,be)=>{const Le=Me[xe],$e=xe===0?0:Me[xe-1],bt=Le-$e,Ge={...u,...zT(t,bt,Se)};return T!==void 0&&(t==="Row"?(be||(Ge.paddingLeft=T),Se||(Ge.paddingRight=T)):(be||(Ge.paddingTop=T),Se||(Ge.paddingBottom=T))),Ge},[Me,u,t,T]),ke=S.useCallback(()=>{if(!(!x||t!=="Row")){if(X)se(n),N.current=!1;else{const xe=De.length;if(xe<=1)return;const Se=[],be=[];for(let $e=0;$e<xe;$e++)typeof i=="number"?be.push(i):be.push(i[$e]||i[0]);let Le=0;for(let $e=0;$e<xe-1;$e++)Le+=be[$e],Se.push(Le);se(Se),N.current=!0}ne(xe=>!xe),j.current=!1}},[x,t,X,De.length,n,i]),ze=S.useCallback((xe,Se)=>{if(Se)return be=>{if(!O.current)return;j.current=!1;const Le=O.current;Ve.current={x:be.clientX,y:be.clientY},ie({idx:xe,lefts:[...Y]});let $e=[...Y];const bt=ht=>{const mt=Le.getBoundingClientRect(),Oe=t==="Row"?mt.left:mt.top,He=t==="Row"?mt.width:mt.height;$e=UT(Y,t,xe,ht,Oe,He,fe),ie({idx:xe,lefts:$e})},Ge=()=>{ie(void 0),se($e),N.current=!0,ue&&ge(String(e),$e),window.removeEventListener("mousemove",bt),window.removeEventListener("mouseup",Ge)};window.addEventListener("mousemove",bt),window.addEventListener("mouseup",Ge)}},[Y,t,fe,ue,e,ge]),Ze=S.useCallback(xe=>{if(xe)return()=>{se(n),N.current=!1,ie(void 0),ue&&ve(String(e))}},[n,ue,e,ve]),et=S.useMemo(()=>De.map((xe,Se)=>{const be=x&&(X||!X&&Se===De.length-2);return!(_||be)}),[De,x,X,_]);return v.jsx("div",{...C,className:Ne.clsx(ai.ADivideFrame,r.className,ai[t],ai[q],j.current&&ai.NoTransition),ref:O,children:De.map((xe,Se)=>{const be=Se===0,Le=Se===De.length-1,$e=pe(Se,Le,be),bt=Me[Se],Ge=et[Se],ht=ze(Se,Ge),mt=Ze(Ge);return v.jsxs(S.Fragment,{children:[v.jsxs("div",{className:Ne.clsx(ai.ChildFrame,f,Z&&ai.IsMoving,j.current&&ai.NoTransition,ai[t]),style:$e,children:[Le&&x&&t==="Row"&&v.jsx(pi,{className:Ne.clsx(ai.RemoteButton,X&&ai.isExpanded,w),icon:"DividerExpand",iconSize:"md",type:"Raw",onClick:ke,tabIndex:0,tooltip:X?D.Collapse:D.Expand}),xe]}),!Le&&v.jsx("div",{className:Ne.clsx(ai.Divider,ai[t],"NoSelect",Z&&ai.IsMoving,(Z==null?void 0:Z.idx)===Se&&ai.IsClicked,j.current&&ai.NoTransition,!Ge&&ai.NoDraggable,m),style:{...p,...$T(t,bt)},"data-nodraggable":Ge?void 0:"true",onMouseDown:ht,onDoubleClick:mt,children:v.jsx("div",{className:Ne.clsx(ai.DividerInner,k),style:{...b}})})]},Se)})})});G2.displayName="ADivideFrame";function zT(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function $T(r,e){return r==="Col"?{top:e}:{left:e}}function UT(r,e,t,n,i,l,u){const f=[...r];let p=e==="Row"?n.clientX-i-r[t]:n.clientY-i-r[t];const m=[],T=[];let k=0;for(let x=0;x<=u.length;x++)m[x]=k,x<u.length&&(k+=u[x]);let b=0;for(let x=u.length-2;x>=0;x--)b+=u[x],T[x]=b;if(T[u.length-1]=0,p<0){let x=f[t]+p;if(x<=m[t+1])for(let _=0;_<=t;_++)f[_]=m[_+1];else if(f[t]=x,t>0)for(let _=t-1;_>=0&&x-f[_]<u[_];_--)f[_]=x-u[t],x=f[_]}else if(p>0){let x=f[t]+p;const _=t===u.length-2?u[u.length-1]:0;if(x>=l-T[t]-_)for(let I=t;I<r.length;I++)f[I]=l-T[I]-(I===r.length-1?0:_);else if(f[t]=x,t<r.length-1)for(let I=t+1;I<r.length&&f[I]-x<u[I];I++)f[I]=x+u[I],x=f[I]}return f}const nu=()=>v.jsx("div",{style:{display:"flex",flexGrow:1}}),WT="_ASpace_1okqf_1",VT={ASpace:WT},bn=r=>{const{h:e,w:t,...n}=r;return v.jsx("div",{...n,className:Ne.clsx(VT.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},GT="_AChipsContainer_1ag9v_1",ZT="_AChip_1ag9v_1",KT="_Clickable_1ag9v_21",YT="_AChipDelete_1ag9v_26",XT="_IsHover_1ag9v_40",JT="_AChipDeleteIcon_1ag9v_45",Gu={AChipsContainer:GT,AChip:ZT,Clickable:KT,AChipDelete:YT,IsHover:XT,AChipDeleteIcon:JT},QT=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:i,ChipOnDelete:l,ChipOnClick:u,ChipIcon:f,className:p,style:m,ButtonRenderer:T=Z2,gap:k=8,...b}=r,[x,_]=dn(e,[]),I=S.useCallback(C=>{!_||!l||(l({label:C}),_(x.filter(D=>D!==C)))},[_,l,x]),w=S.useCallback(C=>{const D={label:C};return{label:C,useLabel:[C,()=>{}],style:Ir.getContent(n,D),className:Ir.getContent(i,D),icon:Ir.getContent(f,D),onDelete:()=>I(C),onClick:u?()=>u({label:C}):void 0}},[i,f,u,n,I]);return v.jsx(Ur,{...b,style:{...m,alignItems:t,gap:k},className:Ne.clsx(Gu.AChipsContainer,p),children:x.map((C,D)=>v.jsx(bm,{...w(C),ButtonRenderer:T},D))})},bm=r=>{const{label:e,useLabel:t,icon:n,className:i,onDelete:l,onClick:u,ButtonRenderer:f=Z2,width:p="fit-content",style:m,...T}=r;return e===void 0?v.jsx(v.Fragment,{}):v.jsxs(Ur,{...T,style:{...m,width:p},onClick:u,className:Ne.clsx("NoSelect",Gu.AChip,u&&Gu.Clickable,u&&"IsClickable",i),children:[v.jsx(wa,{children:e}),f({...r})]})},Z2=r=>{const{label:e,icon:t,onDelete:n,useLabel:i}=r,[,l]=dn(i,e),[u,f]=S.useState(!1),p=S.useCallback(k=>{n&&(k.stopPropagation(),l==null||l(void 0),n(r))},[n,r,l]),m=()=>{f(!0)},T=()=>{f(!1)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(nu,{}),v.jsx(bn,{w:24}),v.jsx(Ur,{className:Ne.clsx(Gu.AChipDelete,"IsClickable",u&&Gu.IsHover)}),v.jsx(pi,{type:"Raw",onClick:p,onMouseEnter:m,onMouseLeave:T,icon:t||v.jsx(Br,{icon:"Close",stroke:"currentColor",width:14,height:14}),className:Gu.AChipDeleteIcon})]})})},Qc=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]}`},eE=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},tE=/[a-zA-Z0-9]/,rE=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,nE=/^[a-zA-Z0-9._-]+$/,iE=/^[0-9a-fA-F-]+$/i,oE=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,sE=/^\S*$/,aE=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,lE=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,cE=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,uE=/^[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}$/,fE={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)},K2={secondToTime:eE,validate:fE,FileSizeTrans:Qc},dE=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:i,actionRef:l,wrapProps:u,helperText:f,label:p,...m}=r,[T,k]=S.useState(0),[b,x]=S.useState(!i);S.useEffect(()=>{if(!b||m.isDisabled||m.isLoading)return;const O=setInterval(()=>k(N=>N+1),t);return()=>clearInterval(O)},[t,b,m.isDisabled,m.isLoading]);const _=S.useCallback(()=>{n==null||n(),x(!1)},[n]);S.useEffect(()=>{T>=e&&!m.isDisabled&&!m.isLoading&&_()},[T,e,_,m.isDisabled,m.isLoading]);const I=S.useCallback(()=>{m.isDisabled||x(!0)},[m.isDisabled]),w=S.useCallback(()=>{m.isDisabled||x(!1)},[m.isDisabled]),C=S.useCallback(()=>{m.isDisabled||(x(!1),k(0))},[m.isDisabled]);S.useEffect(()=>{l&&(l.current={start:I,stop:w,reset:C,setTicks:k})},[l,I,w,C]);const D=e-T;return v.jsx(ic,{wrapProps:u,helperText:f,label:p,children:v.jsx(Ur,{...m,children:K2.secondToTime(D>0?D:0)})})};function Us(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 hE(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function pE(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function gE(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function a0(r,e){return Us(r)===Us(e)}function Zu(r,e){return Us(r)>Us(e)}function th(r,e){return Us(r)>=Us(e)}function rh(r,e){return Us(r)<Us(e)}function nh(r,e){return Us(r)<=Us(e)}function l0(r,e,t){return Zu(r,t)?Zu(e,t)&&rh(e,r):Zu(e,r)&&rh(e,t)}function c0(r,e,t){return Zu(r,t)?th(e,t)&&nh(e,r):th(e,r)&&nh(e,t)}const Yt={toString:Us,toDate:hE,makeSDate:pE,makeEDate:gE,"===":a0,">":Zu,">=":th,"<":rh,"<=":nh,"s<d<e|e<d<s":l0,"s<=d<=e|e<=d<=s":c0,eq:a0,g:Zu,ge:th,l:rh,le:nh,b:l0,be:c0},mE="_InputContainer_gsbiq_7",vE="_AInput_gsbiq_21",yE="_LeftAddon_gsbiq_40",bE="_RightAddon_gsbiq_46",_E="_ErrorHelperText_gsbiq_52",xE="_Primary_gsbiq_56",SE="_UnAvailable_gsbiq_61",CE="_Secondary_gsbiq_72",wE="_ReadOnly_gsbiq_87",no={InputContainer:mE,AInput:vE,LeftAddon:yE,RightAddon:bE,ErrorHelperText:_E,Primary:xE,UnAvailable:SE,Secondary:CE,ReadOnly:wE,Error:"_Error_gsbiq_52"},AE=["Primary","Secondary","ReadOnly","Error"],oc=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",inputRef:i,useValue:l,isReadonly:u,placeholder:f,minLength:p,maxLength:m,tabIndex:T,autoFocus:k,isPassword:b,autoComplete:x="off",inputProps:_,LeftAddon:I,RightAddon:w,wrapProps:C,helperText:D,label:O,wrapType:N,labelProps:j,...$}=r,Z=S.useMemo(()=>TE(t)?"Error":n,[t,n]),ie=S.useMemo(()=>Z==="ReadOnly"?!0:u,[Z,u]),Y=S.useMemo(()=>$.isDisabled||$.isLoading,[$.isDisabled,$.isLoading]),[se,q]=dn(l,""),J=S.useCallback(ne=>{var ge;Y||((ge=_==null?void 0:_.onKeyDown)==null||ge.call(_,ne),["Escape","Enter","ArrowUp","ArrowDown"].includes(ne.key)||ne.stopPropagation(),ne.key==="Enter"&&e&&e(ne.currentTarget.value))},[Y,_,e]),X=S.useCallback(ne=>{var ge;Y||p&&ne.target.value.length<p||(q==null||q(ne.target.value),(ge=_==null?void 0:_.onChange)==null||ge.call(_,ne))},[Y,p,q,_]);return b?v.jsx(ic,{wrapProps:C,label:O,helperText:D,errorMessage:t,wrapType:N,labelProps:j,children:v.jsx("form",{onSubmit:ne=>ne.preventDefault(),children:v.jsxs(Ur,{...$,className:Ne.clsx(no.InputContainer,no[Z],Y&&no.UnAvailable,$.className),children:[I&&v.jsx("div",{className:no.LeftAddon,children:I}),v.jsx("input",{..._,className:Ne.clsx(no.AInput,Z==="Error"&&no.InputError,_==null?void 0:_.className),value:se,type:"password",readOnly:ie,onChange:X,onKeyDown:J,placeholder:f,maxLength:m,tabIndex:$.isDisabled||$.isLoading?-1:T,autoFocus:k,autoComplete:x,ref:i}),w&&v.jsx("div",{className:Ne.clsx(no.RightAddon,"NoSelect"),children:w})]})})}):v.jsx(ic,{wrapProps:C,label:O,helperText:D,errorMessage:t,wrapType:N,labelProps:j,children:v.jsxs(Ur,{...$,className:Ne.clsx(no.InputContainer,no[Z],Y&&no.UnAvailable,$.className),children:[I&&v.jsx("div",{className:no.LeftAddon,children:I}),v.jsx("input",{..._,className:Ne.clsx(no.AInput,Z==="Error"&&no.InputError,_==null?void 0:_.className),value:se,readOnly:ie,onChange:X,onKeyDown:J,placeholder:f,maxLength:m,tabIndex:$.isDisabled||$.isLoading?-1:T,autoFocus:k,autoComplete:x,ref:i}),w&&v.jsx("div",{className:no.RightAddon,children:w})]})})};function TE(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const EE="_ASelect_1djbv_1",kE="_Arrow_1djbv_14",RE="_Primary_1djbv_23",IE="_UnAvailable_1djbv_34",LE="_IsOpen_1djbv_34",DE="_Secondary_1djbv_41",ME="_Placeholder_1djbv_57",OE="_ValuesContainer_1djbv_61",PE="_Values_1djbv_61",NE="_Options_1djbv_80",FE="_Option_1djbv_80",jE="_Selected_1djbv_122",BE="_CheckBox_1djbv_129",zo={ASelect:EE,Arrow:kE,Primary:RE,UnAvailable:IE,IsOpen:LE,Secondary:DE,Placeholder:ME,ValuesContainer:OE,Values:PE,Options:NE,Option:FE,Selected:jE,CheckBox:BE},qE=["Primary","Secondary"],sc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=sn.ASelect["Select(Placeholder)"],onClose:l,OptionRenderer:u=zE,SelectedRenderer:f=$E,minShowRows:p=2,maxShowRows:m=6,arrowProps:T,isAutoWidth:k=!1,...b}=r,x=S.useRef(null),_=S.useMemo(()=>b.abaseRef??x,[b.abaseRef]),I=S.useRef(null),[w,C]=dn(t,e[0]),[D,O]=S.useState(void 0),[N,j]=S.useState(!1),[$,Z]=S.useState(!1),ie=S.useRef(e),Y=S.useRef(null),se=S.useCallback(()=>Z(!1),[]),q=S.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(Z(!0),setTimeout(()=>j(!0),0),setTimeout(()=>tp(I,_,e,p,m),0))},[_,b.isDisabled,b.isLoading,e,p,m]),J=S.useCallback(()=>{j(!1),Z(!0),l==null||l()},[l]),X=S.useCallback(ue=>{var le;N?J():q(),setTimeout(()=>tp(I,_,e,p,m),0),(le=b.onClick)==null||le.call(b,ue)},[_,b,e,N,J,q,p,m]),ne=S.useCallback(()=>{tp(I,_,e,p,m)},[_,e,p,m]);S.useEffect(()=>{if(!N||!_.current)return;const ue=_.current;let le=ue.parentElement;for(;le;)le.addEventListener("scroll",ne),le=le.parentElement;return()=>{let fe=ue.parentElement;for(;fe;)fe.removeEventListener("scroll",ne),fe=fe.parentElement}},[_,N,ne]),S.useEffect(()=>{if(N)return window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)},[N,ne]);const ge=S.useCallback(ue=>{ue[0].intersectionRatio===0&&J()},[J]);S.useEffect(()=>{if(!N)return;const ue=new IntersectionObserver(ge,{threshold:0});return _.current&&ue.observe(_.current),()=>ue.disconnect()},[_,N,ge]);const me=S.useCallback(ue=>{const le=ue.target,fe=_.current,Me=I.current;!fe||!le||!Me||!fe.contains(le)&&!Me.contains(le)&&J()},[_,J]),ve=S.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);S.useEffect(()=>{if(N)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[N,me]);const de=S.useCallback((ue,le)=>{ue.stopPropagation(),ue.preventDefault(),C==null||C(le),J()},[C,J]),De=S.useCallback(()=>{if(!k||!_.current)return;const ue=Jc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOption:w,placeholder:i,optionRenderer:le=>le===null?null:u({option:le}),type:n,isMulti:!1});O(ue)},[k,_,e,w,i,u,n]);return S.useEffect(()=>k?((e!==ie.current||D===void 0)&&(Y.current!==null&&cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{De(),Y.current=null,ie.current=[...e]})),()=>{Y.current!==null&&(cancelAnimationFrame(Y.current),Y.current=null)}):void 0,[k,e,De,D]),S.useEffect(()=>()=>{typeof Jc.clearCache=="function"&&Jc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...b,isDisabled:b.isDisabled||e.length<1,className:Ne.clsx(b.className,zo.ASelect,"NoSelect",N&&zo.IsOpen,ve&&zo.UnAvailable,zo[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:D?`${D}px`:k?"100px":void 0,...b.style},abaseRef:_,onClick:X,children:[v.jsx("div",{className:zo.ValuesContainer,children:v.jsx("div",{className:Ne.clsx(zo.Values,(w==null||w==="")&&zo.Placeholder),children:v.jsx(f,{selectedOption:w,OptionRenderer:u,placeholder:i})})}),v.jsx("div",{...T,className:Ne.clsx(zo.Arrow,T==null?void 0:T.className),children:v.jsx(Br,{style:{transform:N?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(N||$)&&zs.createPortal(v.jsx("div",{className:Ne.clsx(zo.Options,zo[n]),onTransitionEnd:se,style:{opacity:+N,visibility:N?"visible":"hidden",pointerEvents:N?void 0:"none",borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0,width:D?`${D}px`:k?"100px":void 0},ref:I,children:e.map((ue,le)=>{const fe=w===ue,Me=_.current?window.getComputedStyle(_.current):void 0;return ue===null?null:v.jsx("div",{className:Ne.clsx(zo.Option,fe&&zo.Selected,"NoSelect",zo[n]),style:{height:Me==null?void 0:Me.height},onClick:Ve=>de(Ve,ue),children:v.jsx(u,{option:ue})},le)})}),document.body)]})};function tp(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=HE(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function HE(r,e,t,n){const i={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<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const zE=r=>{const{option:e}=r;return rr.isReactNode(e)?e:null},$E=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:v.jsx(t,{option:e})},UE="_Anchor_27s50_1",WE="_Primary_27s50_18",VE="_Secondary_27s50_21",GE="_Placeholder_27s50_25",ZE="_Icon_27s50_30",KE="_ADatePicker_27s50_37",YE="_StringInputWrap_27s50_48",XE="_StringInputContainer_27s50_53",JE="_StringInput_27s50_48",QE="_IsIdx_27s50_68",e6="_CalendarContainer_27s50_72",t6="_Header_27s50_78",r6="_Prev_27s50_82",n6="_Next_27s50_83",i6="_MonthYear_27s50_116",o6="_Select_27s50_121",s6="_Calendar_27s50_72",a6="_Cell_27s50_131",l6="_IsNotCurrentMonth_27s50_143",c6="_IsSelected_27s50_147",u6="_IsDisabled_27s50_151",f6="_IsHovered_27s50_154",d6="_Week_27s50_158",h6="_WeekDay_27s50_163",on={Anchor:UE,Primary:WE,Secondary:VE,Placeholder:GE,Icon:ZE,ADatePicker:KE,StringInputWrap:YE,StringInputContainer:XE,StringInput:JE,String:"_String_27s50_48",IsIdx:QE,CalendarContainer:e6,Header:t6,Prev:r6,Next:n6,MonthYear:i6,Select:o6,Calendar:s6,Cell:a6,IsNotCurrentMonth:l6,IsSelected:c6,IsDisabled:u6,IsHovered:f6,Week:d6,WeekDay:h6},p6="_Anchor_1x8q1_1",g6="_Primary_1x8q1_18",m6="_Secondary_1x8q1_22",v6="_Placeholder_1x8q1_26",y6="_Icon_1x8q1_31",b6="_ADateRangePicker_1x8q1_38",_6="_StringInputWrap_1x8q1_49",x6="_StringInputContainer_1x8q1_53",S6="_StringInput_1x8q1_49",C6="_IsIdx_1x8q1_69",w6="_CalendarContainer_1x8q1_73",A6="_Header_1x8q1_79",T6="_Prev_1x8q1_83",E6="_Next_1x8q1_84",k6="_MonthYear_1x8q1_117",R6="_Select_1x8q1_122",I6="_Calendar_1x8q1_73",L6="_Cell_1x8q1_132",D6="_IsNotCurrentMonth_1x8q1_144",M6="_IsSelected_1x8q1_148",O6="_IsDisabled_1x8q1_152",P6="_IsHovered_1x8q1_155",N6="_Week_1x8q1_159",F6="_WeekDay_1x8q1_164",j6="_ChoiceButton_1x8q1_168",Hr={Anchor:p6,Primary:g6,Secondary:m6,Placeholder:v6,Icon:y6,ADateRangePicker:b6,StringInputWrap:_6,StringInputContainer:x6,StringInput:S6,String:"_String_1x8q1_49",IsIdx:C6,CalendarContainer:w6,Header:A6,Prev:T6,Next:E6,MonthYear:k6,Select:R6,Calendar:I6,Cell:L6,IsNotCurrentMonth:D6,IsSelected:M6,IsDisabled:O6,IsHovered:P6,Week:N6,WeekDay:F6,ChoiceButton:j6},_m=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:i,position:l=sf.SE,minDate:u,maxDate:f,isDisabled:p,isLoading:m,yearsOptionSize:T,noDefaultChoices:k,LeftAddon:b,RightAddon:x,placeholder:_,noClearButton:I,resources:w,onClick:C,...D}=r,O=S.useMemo(()=>({...sn.ADateRangePicker,...w}),[w]),N=S.useMemo(()=>_??O["Select DateRange"],[_,O]),[j,$]=S.useMemo(()=>{let te,tt;if(u&&(te=Yt.makeSDate(u)),f&&(tt=Yt.makeEDate(f)),te&&tt&&Yt["<"](tt,te)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const ut=te;te=tt,tt=ut}return[te,tt]},[u,f]),[Z,ie]=S.useState("sD"),[Y,se]=dn(n,void 0),q=S.useCallback(te=>{se&&(te===void 0?(se(void 0),be(""),bt("")):(se({sDate:Yt.makeSDate(te.sDate),eDate:Yt.makeEDate(te.eDate)}),be(Yt.toString(te.sDate)),bt(Yt.toString(te.eDate))))},[se]);S.useEffect(()=>{Y&&(be(Yt.toString(Y.sDate)),bt(Yt.toString(Y.eDate)))},[Y]);const J=S.useCallback(te=>{if(!se)return;let tt=Y?Y.sDate:Yt.makeSDate(te);te=Yt.makeEDate(te),se({sDate:tt,eDate:te}),be(Yt.toString(tt)),bt(Yt.toString(te))},[se,Y]),[X,ne]=S.useState(),[ge,me]=S.useState(),ve=S.useCallback(te=>{Z==="sD"&&q({sDate:te,eDate:te}),ne(te),me(te)},[Z,q,ne]),de=S.useCallback(te=>{Z==="sD"?X&&(Yt.eq(X,te)?ie("eD"):Yt[">"](te,X)?(J(te),ne(void 0)):(q({sDate:te,eDate:X}),ne(void 0))):(Y?Yt["<"](te,Y.sDate)?q({sDate:te,eDate:Y.eDate}):J(te):q({sDate:te,eDate:te}),ne(void 0),ie("sD"))},[J,X,ie,Z,q,Y,ne]),De=S.useCallback(te=>{X&&me(te)},[X]),ue=S.useCallback(()=>{me(void 0),ne(void 0),ie("sD")},[ie,ne]),[le,fe]=S.useState(u0(Y,j,$)),Me=S.useMemo(()=>xm(le.year,j,$,T),[le.year,j,$,T]),Ve=S.useMemo(()=>ed(le.year,j,$),[j,$,le.year]),pe=S.useCallback(te=>{if(!Me.includes(te))return;const tt={month:le.month,year:te},ut=ed(tt.year,j,$);ut.length<1||(ut.includes(tt.month)||(tt.month<ut[0]?tt.month=ut[0]:tt.month>ut[ut.length-1]&&(tt.month=ut[ut.length-1])),fe(tt))},[j,$,Me,le.month]),ke=S.useCallback(te=>{Ve.includes(te)&&fe({month:te,year:le.year})},[Ve,le.year]),ze=S.useMemo(()=>$?new Date(le.year,le.month+1,1)>$:!1,[le,$]),Ze=S.useCallback(()=>{if(ze||Ve.length<1)return;const te=le.month+1;te>11?fe({month:Ve[0],year:le.year+1}):fe({month:te,year:le.year})},[ze,Ve,le]),et=S.useMemo(()=>j?new Date(le.year,le.month,0)<j:!1,[le,j]),xe=S.useCallback(()=>{if(et||Ve.length<1)return;const te=le.month-1;te<Ve[0]?fe({month:Ve[Ve.length-1],year:le.year-1}):fe({month:te,year:le.year})},[et,Ve,le]),[Se,be]=S.useState(Y!=null&&Y.sDate?Yt.toString(Y.sDate):""),Le=S.useCallback(te=>{if(te.length>10||(be(te),te.length<10)||!se)return;let tt=Yt.toDate(te);if(!tt)return;j&&tt<j&&(tt=j),$&&tt>$&&(tt=$);let ut=Y?Y.eDate:tt;Y&&Yt[">"](tt,ut)&&([tt,ut]=f0(tt,ut)),q({sDate:tt,eDate:ut}),fe({month:tt.getMonth(),year:tt.getFullYear()})},[se,q,Y,j,$]),[$e,bt]=S.useState(Y!=null&&Y.eDate?Yt.toString(Y.eDate):""),Ge=S.useCallback(te=>{if(te.length>10||(bt(te),te.length<10)||!se)return;let tt=Yt.toDate(te);if(!tt)return;j&&tt<j&&(tt=j),$&&tt>$&&(tt=$);let ut=Y?Y.sDate:tt;Y&&Yt[">"](ut,tt)&&([ut,tt]=f0(ut,tt)),q({sDate:ut,eDate:tt}),fe({month:tt.getMonth(),year:tt.getFullYear()})},[se,q,Y,j,$]),ht=S.useCallback(()=>{Y&&(be(Yt.toString(Y.sDate)),bt(Yt.toString(Y.eDate)))},[Y]),mt=S.useMemo(()=>{const{month:te,year:tt}=le,ut=new Date(tt,te,1),qt=new Date(tt,te+1,0),kt=[];for(let tr=0;tr<ut.getDay();tr++){const rt=new Date(tt,te,0).getDate()-ut.getDay()+tr+1,Rt=new Date(tt,te-1,rt),Ht=j&&j>Rt||$&&$<Rt,Ot=Y?Yt.be(Y.sDate,Rt,Y.eDate):!1,Xt=ge&&Y&&Yt.be(Y.sDate,Rt,ge);kt.push({day:rt,isSelected:Ot,isHovered:Xt,date:Rt,isDisabled:Ht,isCurrentMonth:!1})}for(let tr=1;tr<=qt.getDate();tr++){const Xe=new Date(tt,te,tr),rt=j&&j>Xe||$&&$<Xe,Rt=Y?Yt.be(Y.sDate,Xe,Y.eDate):!1,Ht=ge&&Y&&Yt.be(Y.sDate,Xe,ge);kt.push({day:tr,isSelected:Rt,isHovered:Ht,date:Xe,isDisabled:rt,isCurrentMonth:!0})}for(let tr=0;tr<7-qt.getDay()-1;tr++){const Xe=new Date(tt,te+1,tr+1),rt=j&&j>Xe||$&&$<Xe,Rt=Y?Yt.be(Y.sDate,Xe,Y.eDate):!1,Ht=ge&&Y&&Yt.be(Y.sDate,Xe,ge);kt.push({day:tr+1,isSelected:Rt,isHovered:Ht,date:Xe,isDisabled:rt,isCurrentMonth:!1})}const Mt=[];for(let tr=0;tr<kt.length/7;tr++)Mt.push(v.jsx("div",{className:Hr.Week,children:kt.slice(tr*7,tr*7+7).map((Xe,rt)=>v.jsx(ji,{type:"Raw",className:Ne.clsx(Hr.Day,Hr.Cell,Xe.isDisabled?Hr.IsDisabled:Xe.isCurrentMonth?Xe.isSelected?Hr.IsSelected:Xe.isHovered&&Hr.IsHovered:Hr.IsNotCurrentMonth),isDisabled:Xe.isDisabled,onMouseDown:()=>Xe.isCurrentMonth&&ve(Xe.date),onMouseUp:()=>Xe.isCurrentMonth&&de(Xe.date),onMouseEnter:()=>Xe.isCurrentMonth&&De(Xe.date),children:Xe.day},rt))},tr));return Mt},[le,ge,Y,j,$,ve,de,De]),Oe=S.useRef(null),He=S.useCallback(()=>{Oe&&vm(Oe,Pe,l)},[Oe,l]),[wt,_t]=S.useState(!1),[vt,Tt]=S.useState(!1),Pe=S.useRef(null),Ke=S.useCallback(()=>{p||m||(_t(!0),setTimeout(()=>Tt(!0),0),setTimeout(()=>He(),0),fe(u0(Y,j,$)))},[p,m,Y,He,j,$]),xt=S.useCallback(()=>{p||m||(_t(!0),Tt(!1))},[p,m]),jt=S.useMemo(()=>vt?xt:Ke,[vt,Ke,xt]),At=S.useCallback(()=>_t(!1),[]),Be=S.useCallback(te=>{const tt=document.getElementById("root"),ut=te.target,qt=Pe.current,kt=Oe.current;!tt||!qt||!ut||!kt||!qt.contains(ut)&&tt.contains(ut)&&!kt.contains(ut)&&xt()},[xt]);S.useEffect(()=>{if(vt)return setTimeout(()=>document.addEventListener("mousedown",Be),0),()=>document.removeEventListener("mousedown",Be)},[vt,Be]);const Lt=S.useCallback(()=>{He()},[He]);S.useEffect(()=>{if(!vt||!(Oe!=null&&Oe.current))return;const te=Oe.current;let tt=te.parentElement;for(;tt;)tt.addEventListener("scroll",Lt),tt=tt.parentElement;return()=>{let ut=te.parentElement;for(;ut;)ut.removeEventListener("scroll",Lt),ut=ut.parentElement}},[Oe,vt,Lt]),S.useEffect(()=>{if(vt)return window.addEventListener("resize",Lt),()=>window.removeEventListener("resize",Lt)},[vt,Lt]);const Dt=S.useCallback(te=>{te[0].intersectionRatio===0&&xt()},[xt]);S.useEffect(()=>{if(!vt)return;const te=new IntersectionObserver(Dt,{threshold:0});return Pe.current&&te.observe(Pe.current),()=>te.disconnect()},[Pe,vt,Dt]),S.useEffect(()=>{i&&(i.current={open:Ke,close:xt,toggle:jt})},[i,Ke,xt,jt]),S.useEffect(()=>{if(!Y)return;let te={sDate:Y.sDate,eDate:Y.eDate};j&&(Yt["<"](Y.sDate,j)&&(te.sDate=j),Yt["<"](Y.eDate,j)&&(te.eDate=j)),$&&(Yt[">"](Y.sDate,$)&&(te.sDate=$),Yt[">"](Y.eDate,$)&&(te.eDate=$)),(te.sDate!==Y.sDate||te.eDate!==Y.eDate)&&q(te)},[j,$,Y,q]);const dr=S.useCallback(te=>{C==null||C(te),jt()},[C,jt]),Er=S.useCallback(te=>{q(void 0),xt(),te.stopPropagation()},[q,xt]),Mr=S.useCallback(()=>Y?v.jsx(pi,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:Er}):null,[Y,Er]),_e=S.useMemo(()=>Y?`${Yt.toString(Y.sDate)} ~ ${Yt.toString(Y.eDate)}`:v.jsx("span",{className:Hr.Placeholder,children:N}),[Y,N]);return v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...D,isLoading:m,isDisabled:p,className:Ne.clsx(Hr.Anchor,"IsClickable",Hr[e],t),onClick:dr,abaseRef:Oe,children:[b,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(Hr.Icon,Hr[e])}),v.jsx(bn,{w:4})]}),_e,v.jsx(nu,{}),!I&&v.jsx(Mr,{}),e==="Secondary"&&v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(Hr.Icon,Hr[e])}),x&&x]}),(vt||wt)&&zs.createPortal(v.jsxs("div",{className:Hr.ADateRangePicker,onTransitionEnd:At,onMouseLeave:ue,style:{opacity:+vt,visibility:vt?"visible":"hidden"},ref:Pe,children:[v.jsxs("div",{className:Hr.StringInputContainer,children:[v.jsxs(An,{children:[v.jsx(oc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Ne.clsx(Hr.String,Z==="sD"&&ge&&Hr.IsIdx),useValue:[Se,Le],placeholder:"YYYY-MM-DD",onBlur:ht}),v.jsx(bn,{w:8}),v.jsx(oc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Ne.clsx(Hr.String,Z==="eD"&&ge&&Hr.IsIdx),useValue:[$e,Ge],placeholder:"YYYY-MM-DD",onBlur:ht})]}),!k&&v.jsxs(An,{style:{marginTop:4},children:[v.jsx(Dd,{children:O["1일"],onClick:()=>q({sDate:new Date,eDate:new Date})}),v.jsx(Dd,{children:O["1주일"],onClick:()=>q({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),v.jsx(Dd,{children:O["1개월"],onClick:()=>q({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),v.jsx(Dd,{children:O["3개월"],onClick:()=>q({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),v.jsxs("div",{className:Hr.CalendarContainer,children:[v.jsxs(An,{className:Hr.Header,children:[v.jsx(ji,{type:"Raw",className:Hr.Prev,onClick:xe,isDisabled:et}),v.jsxs("div",{className:Hr.MonthYear,children:[v.jsx(sc,{type:"Secondary",useSelect:[le.month,ke],className:Hr.Select,options:Ve,OptionRenderer:te=>O.months(te.option),SelectedRenderer:te=>O.months(te.selectedOption),isAutoWidth:!0}),v.jsx(bn,{w:8}),v.jsx(sc,{type:"Secondary",useSelect:[le.year,pe],className:Hr.Select,options:Me,isAutoWidth:!0})]}),v.jsx(ji,{type:"Raw",className:Hr.Next,onClick:Ze,isDisabled:ze})]}),v.jsx(bn,{h:10}),v.jsxs("div",{className:Hr.Calendar,children:[v.jsx("div",{className:Hr.Week,children:[0,1,2,3,4,5,6].map(te=>v.jsx("div",{className:Ne.clsx(Hr.WeekDay,Hr.Cell),children:O.weekDays(te)},te))}),mt]})]})]}),document.body)]})};function ed(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let i=11;t&&t.getFullYear()===r&&(i=t.getMonth());const l=[];for(let u=n;u<=i;u++)l.push(u);return l}function xm(r,e,t,n=5){const i=[];let l=r-n/2+n%2/2;e&&l<e.getFullYear()&&(l=e.getFullYear());let u=l+n-1;t&&u>t.getFullYear()&&(u=t.getFullYear());for(let f=l;f<=u;f++)i.push(f);return i}function u0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&Yt["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Yt[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function f0(r,e){return[e,r]}const Dd=r=>v.jsx(ji,{className:Ne.clsx(Hr.ChoiceButton,"Headline2"),type:"Secondary",...r}),B6=["Primary","Secondary","Raw"],Sm=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:i,position:l=sf.SE,minDate:u,maxDate:f,isDisabled:p,isLoading:m,placeholder:T,LeftAddon:k,RightAddon:b,resources:x,noClearButton:_,onClick:I,...w}=r,C=S.useMemo(()=>({...sn.ADatePicker,...x}),[x]),D=S.useMemo(()=>T??C["Select Date"],[T,C]),[O,N]=S.useMemo(()=>{let Pe,Ke;return u&&(Pe=Yt.makeSDate(u)),f&&(Ke=Yt.makeEDate(f)),Pe&&Ke&&Yt["<"](Ke,Pe)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[Yt.makeSDate(Ke),Yt.makeEDate(Pe)]):[Pe,Ke]},[u,f]),[j,$]=dn(n,null),[Z,ie]=S.useState(j?Yt.toString(j):""),[Y,se]=S.useState(()=>{const Pe=j??new Date;return O&&Pe<O?O.getMonth():N&&Pe>N?N.getMonth():(Pe??new Date).getMonth()}),[q,J]=S.useState(()=>{const Pe=j??new Date;return O&&Pe<O?O.getFullYear():N&&Pe>N?N.getFullYear():(Pe??new Date).getFullYear()}),X=S.useCallback(Pe=>{J(Pe);const Ke=ed(Pe,O,N);Ke.includes(Y)||(Y<Ke[0]?se(Ke[0]):Y>Ke[Ke.length-1]&&se(Ke[Ke.length-1]))},[O,N,Y]),ne=S.useCallback(Pe=>{if(Pe.length>10||(ie(Pe),Pe.length<10)||!$)return;let Ke=Yt.toDate(Pe);Ke&&(O&&Ke<O&&(Ke=O),N&&Ke>N&&(Ke=N),$(Ke),J(Ke.getFullYear()),se(Ke.getMonth()))},[$,O,N]),ge=S.useCallback(Pe=>{const Ke=q+Pe;Ke<0||J(Ke)},[q]),me=S.useCallback(Pe=>{const Ke=Y+Pe;Ke<0?(se(11),ge(-1)):Ke>11?(se(0),ge(1)):se(Ke)},[Y,ge]),ve=S.useCallback(Pe=>{$&&(Pe===void 0?($(void 0),ie("")):($(Pe),ie(Yt.toString(Pe))))},[$]),de=S.useMemo(()=>{const Pe=new Date(q,Y,0);return O&&Pe<O},[q,Y,O]),De=S.useMemo(()=>{const Pe=new Date(q,Y+1,1);return N&&Pe>N},[q,Y,N]),ue=S.useCallback(()=>{de||me(-1)},[me,de]),le=S.useCallback(()=>{De||me(1)},[me,De]),[fe,Me]=S.useState(null),Ve=S.useCallback(()=>{$&&Me(null)},[$]),pe=S.useCallback(Pe=>{$&&Me(Pe)},[$]),ke=S.useMemo(()=>{const Pe=new Date(q,Y,1),Ke=new Date(q,Y+1,0),xt=[];for(let At=0;At<Pe.getDay();At++){const Lt=new Date(q,Y,0).getDate()-Pe.getDay()+At+1,Dt=new Date(q,Y-1,Lt),dr=O&&O>Dt||N&&N<Dt,Er=j&&Yt.eq(Dt,j),Mr=fe&&Yt.eq(Dt,fe);xt.push({day:Lt,isSelected:Er,date:Dt,isDisabled:dr,isHovered:Mr,isCurrentMonth:!1})}for(let At=1;At<=Ke.getDate();At++){const Be=new Date(q,Y,At),Lt=O&&O>Be||N&&N<Be,Dt=j&&Yt.eq(Be,j),dr=fe&&Yt.eq(Be,fe);xt.push({day:At,isSelected:Dt,date:Be,isDisabled:Lt,isHovered:dr,isCurrentMonth:!0})}for(let At=0;At<7-Ke.getDay()-1;At++){const Be=new Date(q,Y+1,At+1),Lt=O&&O>Be||N&&N<Be,Dt=j&&Yt.eq(Be,j),dr=fe&&Yt.eq(Be,fe);xt.push({day:At+1,isSelected:Dt,date:Be,isDisabled:Lt,isHovered:dr,isCurrentMonth:!1})}const jt=[];for(let At=0;At<xt.length/7;At++)jt.push(v.jsx("div",{className:on.Week,children:xt.slice(At*7,At*7+7).map((Be,Lt)=>v.jsx(ji,{type:"Raw",className:Ne.clsx(on.Day,on.Cell,Be.isDisabled?on.IsDisabled:Be.isCurrentMonth?Be.isSelected?on.IsSelected:Be.isHovered&&on.IsHovered:on.IsNotCurrentMonth),isDisabled:Be.isDisabled,onClick:()=>Be.isCurrentMonth&&ve(Be.date),onMouseLeave:()=>Be.isCurrentMonth&&Ve(),onMouseEnter:()=>Be.isCurrentMonth&&pe(Be.date),children:Be.day},Lt))},At));return jt},[Y,ve,j,q,O,N,fe,Ve,pe]),ze=S.useRef(null),Ze=S.useCallback(()=>{ze&&vm(ze,Le,l)},[ze,l]),[et,xe]=S.useState(!1),[Se,be]=S.useState(!1),Le=S.useRef(null),$e=S.useCallback(()=>{p||m||(xe(!0),setTimeout(()=>be(!0),0),setTimeout(()=>Ze(),0),ie(j?Yt.toString(j):""),se(()=>{const Pe=j??new Date;return O&&Pe<O?O.getMonth():N&&Pe>N?N.getMonth():Pe.getMonth()}),J(()=>{const Pe=j??new Date;return O&&Pe<O?O.getFullYear():N&&Pe>N?N.getFullYear():Pe.getFullYear()}))},[p,m,j,Ze,O,N]),bt=S.useCallback(()=>{p||m||(xe(!0),be(!1))},[p,m]),Ge=S.useMemo(()=>Se?bt:$e,[Se,$e,bt]),ht=S.useCallback(()=>xe(!1),[]),mt=S.useCallback(Pe=>{const Ke=document.getElementById("root"),xt=Pe.target,jt=Le.current,At=ze.current;!Ke||!jt||!xt||!At||!jt.contains(xt)&&Ke.contains(xt)&&!At.contains(xt)&&bt()},[bt]);S.useEffect(()=>{if(Se)return setTimeout(()=>document.addEventListener("mousedown",mt),0),()=>document.removeEventListener("mousedown",mt)},[Se,mt]);const Oe=S.useCallback(()=>{Ze()},[Ze]);S.useEffect(()=>{if(!Se||!(ze!=null&&ze.current))return;const Pe=ze.current;let Ke=Pe.parentElement;for(;Ke;)Ke.addEventListener("scroll",Oe),Ke=Ke.parentElement;return()=>{let xt=Pe.parentElement;for(;xt;)xt.removeEventListener("scroll",Oe),xt=xt.parentElement}},[ze,Se,Oe]),S.useEffect(()=>{if(Se)return window.addEventListener("resize",Oe),()=>window.removeEventListener("resize",Oe)},[Se,Oe]);const He=S.useCallback(Pe=>{Pe[0].intersectionRatio===0&&bt()},[bt]);S.useEffect(()=>{if(!Se)return;const Pe=new IntersectionObserver(He,{threshold:0});return Le.current&&Pe.observe(Le.current),()=>Pe.disconnect()},[Le,Se,He]),S.useEffect(()=>{i&&(i.current={open:$e,close:bt,toggle:Ge})},[i,$e,bt,Ge]);const wt=S.useCallback(Pe=>{I==null||I(Pe),Ge()},[I,Ge]),_t=S.useCallback(Pe=>{ve(void 0),bt(),Pe.stopPropagation()},[ve,bt]),vt=S.useCallback(()=>j?v.jsx(pi,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:_t}):null,[j,_t]),Tt=S.useMemo(()=>j?Yt.toString(j):v.jsx("span",{className:on.Placeholder,children:D}),[j,D]);return v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...w,isLoading:m,isDisabled:p,className:Ne.clsx(on.Anchor,"IsClickable",on[e],t),onClick:wt,abaseRef:ze,children:[k,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(on.Icon,on[e])}),v.jsx(bn,{w:4})]}),Tt,v.jsx(nu,{}),!_&&v.jsx(vt,{}),e==="Secondary"&&v.jsx(Br,{icon:"CalendarDay",className:Ne.clsx(on.Icon,on[e])}),b&&b]}),(Se||et)&&zs.createPortal(v.jsxs("div",{className:on.ADatePicker,onTransitionEnd:ht,style:{opacity:+Se,visibility:Se?"visible":"hidden"},ref:Le,children:[v.jsx("div",{className:on.StringInputContainer,children:v.jsx(oc,{maxLength:j?30:11,wrapProps:{className:on.StringInputWrap},inputProps:{className:on.StringInput},className:on.String,useValue:[Z,ne],placeholder:"YYYY-MM-DD"})}),v.jsxs("div",{className:on.CalendarContainer,children:[v.jsxs(An,{className:on.Header,children:[v.jsx(ji,{type:"Raw",className:on.Prev,onClick:ue,isDisabled:de}),v.jsxs("div",{className:on.MonthYear,children:[v.jsx(sc,{type:"Secondary",useSelect:[Y,se],className:on.Select,options:ed(q,O,N),OptionRenderer:Pe=>C.months(Pe.option),SelectedRenderer:Pe=>C.months(Pe.selectedOption),isAutoWidth:!0}),v.jsx(bn,{w:8}),v.jsx(sc,{type:"Secondary",useSelect:[q,X],className:on.Select,options:xm(q,O,N),isAutoWidth:!0})]}),v.jsx(ji,{type:"Raw",className:on.Next,onClick:le,isDisabled:De})]}),v.jsx(bn,{h:10}),v.jsxs("div",{className:on.Calendar,children:[v.jsx("div",{className:on.Week,children:[0,1,2,3,4,5,6].map(Pe=>v.jsx("div",{className:Ne.clsx(on.WeekDay,on.Cell),children:C.weekDays(Pe)},Pe))}),ke]})]})]}),document.body)]})},q6="_Paper_e69j5_1",H6="_Card_e69j5_15",z6="_Body_e69j5_26",$6="_Title_e69j5_35",U6="_Content_e69j5_42",W6="_Action_e69j5_45",V6="_Button_e69j5_58",xa={Paper:q6,Card:H6,Body:z6,Title:$6,Content:U6,Action:W6,Button:V6},G6=["okCancel","cancelOk","ok","cancel","none"],Z6=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:i,style:l,titleStyle:u,bodyStyle:f,contentStyle:p,okButtonStyle:m,cancelButtonStyle:T,actionStyle:k,onOk:b,onCancel:x,onClose:_,onEnterPress:I,onEscPress:w,onSpacePress:C,onPaperClick:D,noDim:O=!1,isLoading:N,isOkDisabled:j,isOkLoading:$,isCancelDisabled:Z,isCancelLoading:ie,buttonNoInteractive:Y,okButtonClassName:se,cancelButtonClassName:q,progress:J,progressProps:X,resources:ne}=r,ge=S.useMemo(()=>({...sn.ADialog,...ne}),[ne]),[me,ve]=S.useState(0);S.useEffect(()=>ve(1),[]);const de=S.useCallback(()=>{ve(0)},[]),De=S.useCallback(()=>{if(!me){const[,Le]=e.state.useIsOpen;Le==null||Le(!1),_==null||_()}},[me,_,e]),ue=S.useCallback(async()=>{if(!me||t==="cancel"||t==="none"||N||j||$)return;const{event:Le,e:$e}=Yc();await(b==null?void 0:b($e)),!Le.preventDefault&&de()},[me,t,de,b,j,N,$]),le=S.useCallback(async()=>{if(!me||t==="ok"||t==="none"||N||Z||ie)return;const{event:Le,e:$e}=Yc();await(x==null?void 0:x($e)),!Le.preventDefault&&de()},[me,t,de,x,Z,N,ie]);S.useEffect(()=>{e&&e.state.setAction({close:de,ok:ue,cancel:le})},[e,de,ue,le]);const fe=S.useCallback(async()=>{if(N)return;const{event:Le,e:$e}=Yc();await(I==null?void 0:I($e)),!Le.preventDefault&&ue()},[I,N,ue]),Me=S.useCallback(async()=>{if(N)return;const{event:Le,e:$e}=Yc();await(C==null?void 0:C($e)),!Le.preventDefault&&ue()},[C,N,ue]),Ve=S.useCallback(async()=>{if(N)return;const{event:Le,e:$e}=Yc();await(w==null?void 0:w($e)),!Le.preventDefault&&le()},[w,N,le]),pe=S.useRef(null),ke=S.useCallback(Le=>{const $e=document.body.getElementsByClassName(xa.Paper);$e.length===0||$e[$e.length-1]!==pe.current||(Le.key==="Enter"&&me?fe():Le.key===" "&&me?Me():Le.key==="Escape"&&me&&Ve())},[me,fe,Me,Ve]);S.useEffect(()=>{if(me)return window.addEventListener("keydown",ke),()=>window.removeEventListener("keydown",ke)},[me,ke]);const ze=S.useRef(!1),Ze=S.useRef(!1),et=S.useCallback(()=>{ze.current=!0},[]),xe=S.useCallback(()=>{ze.current=!1,Ze.current=!1},[]),Se=S.useCallback(()=>{Ze.current=!0},[]),be=S.useCallback(async()=>{if(N)return;const Le=!Ze.current||ze.current;if(ze.current=!1,Ze.current=!1,Le)return;const{event:$e,e:bt}=Yc();await(D==null?void 0:D(bt)),!$e.preventDefault&&le()},[D,N,le]);return zs.createPortal(v.jsx("div",{className:xa.Paper,style:{backgroundColor:O?"transparent":void 0,pointerEvents:me?void 0:"none",opacity:me},onMouseUp:be,onMouseDown:Se,onTransitionEnd:De,ref:pe,children:v.jsxs(Ur,{className:xa.Card,onMouseDown:et,onMouseUp:xe,style:l,isLoading:N,progress:J,progressProps:X,children:[v.jsxs("div",{className:xa.Body,style:f,children:[n&&v.jsx(K6,{title:n,titleStyle:u}),i&&v.jsx("div",{className:xa.Content,style:p,children:i})]}),t!=="none"&&v.jsx(Y6,{type:t,ok:ue,cancel:le,resources:ge,isOkDisabled:j,isOkLoading:$,isCancelDisabled:Z,isCancelLoading:ie,okButtonStyle:m,cancelButtonStyle:T,actionStyle:k,buttonNoInteractive:Y,okButtonClassName:se,cancelButtonClassName:q})]})}),document.body)},K6=r=>{const{title:e,titleStyle:t}=r;return v.jsx("div",{className:Ne.clsx(xa.Title,"NoSelect","Title3"),style:t,children:e})},Y6=r=>{const{type:e,ok:t,cancel:n,resources:i,isOkDisabled:l,isOkLoading:u,isCancelDisabled:f,isCancelLoading:p,okButtonStyle:m,cancelButtonStyle:T,actionStyle:k,buttonNoInteractive:b,okButtonClassName:x,cancelButtonClassName:_}=r,I=S.useMemo(()=>({onClick:t,isDisabled:l,isLoading:u,children:i.Ok,style:m,noInteractive:b,className:Ne.clsx(xa.Button,x)}),[t,l,u,i.Ok,m,b,x]),w=S.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:f,isLoading:p,children:i.Cancel,style:T,noInteractive:b,className:Ne.clsx(xa.Button,_)}),[n,f,p,i.Cancel,T,b,_]);if(e==="okCancel"||e==="ok")return v.jsxs("div",{className:xa.Action,style:{...k},children:[v.jsx(ji,{...I}),e==="okCancel"&&v.jsxs(v.Fragment,{children:[v.jsx(bn,{w:8}),v.jsx(ji,{...w})]})]},e);if(e==="cancelOk"||e==="cancel")return v.jsxs("div",{className:xa.Action,children:[v.jsx(ji,{...w}),e==="cancelOk"&&v.jsxs(v.Fragment,{children:[v.jsx(bn,{w:8}),v.jsx(ji,{...I})]})]},e)},X6=r=>{const e=S.useMemo(()=>Math.random().toFixed(32),[]),t=S.useMemo(()=>{const x={};return r.forEach(_=>{x[_]=_+e}),x},[r,e]),n=S.useMemo(()=>[],[]),i=S.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[l,u]=S.useState([]),f=S.useRef((()=>{const x={};return i.forEach(_=>{x[_]={open:()=>u(I=>[...I,_]),close:()=>{},ok:()=>{},cancel:()=>{}}}),x})()),p=S.useMemo(()=>{const x={};return i.forEach(_=>{x[_]=I=>{u(w=>!I&&w.includes(_)?w.filter(C=>C!==_):I&&!w.includes(_)?[...w,_]:w)}}),x},[i]),m=S.useMemo(()=>{const x={};return i.forEach(_=>{const w=[l.includes(_),p[_]],C=D=>{f.current[_]={...f.current[_],...D}};x[_]={useIsOpen:w,setAction:C}}),x},[l,p,i]),T=S.useMemo(()=>{const x={};return i.forEach(_=>{const I=()=>f.current[_].open(),w=()=>f.current[_].close(),C=()=>f.current[_].ok(),D=()=>f.current[_].cancel();x[_]={open:I,close:w,ok:C,cancel:D}}),x},[i]),k=S.useMemo(()=>({}),[]),b=S.useMemo(()=>(i.forEach(x=>{k[x]={state:m[x],action:T[x]}}),k),[k,i,m,T]);return S.useEffect(()=>(Object.keys(b).forEach(_=>{const I=b[_],w=t[_],C=qs.find(D=>{D.id});C?C.core=I:qs.push({id:w,core:I})}),()=>{const _=Object.keys(b),I=qs.filter(w=>_.includes(w.id));qs.length=0,qs.push(...I)}),[b,t]),b},J6=()=>{const r=S.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=S.useState(!1),n=S.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=S.useMemo(()=>({useIsOpen:[e,t],setAction:p=>{n.current={...n.current,...p}}}),[e]),l=S.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),u=S.useMemo(()=>({}),[]),f=S.useMemo(()=>(u.state=i,u.action=l,u),[u,i,l]);return S.useEffect(()=>{const p=qs.find(m=>m.id===r);return p?p.core=f:qs.push({id:r,core:f}),()=>{const m=qs.filter(T=>T.id!==r);qs.length=0,qs.push(...m)}},[r,f]),f},Q6=r=>{const{dlgCore:e,children:t}=r,[n,i]=S.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return S.useEffect(()=>()=>i==null?void 0:i(!1),[i]),v.jsx(S.Suspense,{children:n&&t})},e8=r=>e=>{const{dlgCore:t}=e;return v.jsx(Q6,{dlgCore:t,children:S.cloneElement(v.jsx(r,{...e}),{dlgCore:t})})},qs=[],t8={closeAllDlgs:()=>{qs.forEach(r=>{r.core.action.close()})}},r8="_AFileBox_1hlo1_1",n8="_SelectedFile_1hlo1_16",i8="_Dropping_1hlo1_26",hh={AFileBox:r8,SelectedFile:n8,Dropping:i8},o8=r=>{const{useFile:e,FileRenderer:t=s8,SelectRenderer:n=a8,DropRenderer:i=l8,resources:l,accept:u="",onInvalidFileFormat:f,fileSelectButtonClassName:p,isDisabled:m,isLoading:T,className:k,...b}=r,x=S.useMemo(()=>({...sn.AFileBox,...l}),[l]),_=S.useRef(null),I=S.useRef(null),[w,C]=dn(e,null),[D,O]=S.useState(!1),N=S.useMemo(()=>u.split(",").map(ne=>ne.trim()).filter(ne=>ne.length>0&&ne.startsWith(".")),[u]),j=S.useCallback(ne=>{if(N.length===0)return!1;const ge=ne.name.split(".").pop();return ge?!N.includes(`.${ge}`):!0},[N]),$=S.useCallback(ne=>{if(C)if(j(ne)){f==null||f();return}else C(ne);else return},[C,j,f]),Z=S.useCallback(ne=>{ne.target.files&&ne.target.files.length>0&&$(ne.target.files[0])},[$]),ie=S.useCallback(ne=>{ne.preventDefault(),O(!1),!(m||T)&&ne.dataTransfer.files&&ne.dataTransfer.files.length>0&&$(ne.dataTransfer.files[0])},[$,m,T]),Y=S.useCallback(ne=>{ne.preventDefault(),!(m||T)&&O(!0)},[m,T]),se=S.useCallback(ne=>{ne.target===_.current&&ne.relatedTarget.contains(_.current.parentElement)&&(ne.preventDefault(),O(!1))},[]),q=S.useCallback(ne=>ne.preventDefault(),[]),J=S.useCallback(()=>{var ne;(ne=I.current)==null||ne.click()},[]),X=S.useMemo(()=>D?v.jsx(i,{resources:x}):w?v.jsx(t,{file:w,useFile:e}):v.jsx(n,{onClick:J,resources:x,fileSelectButtonClassName:p}),[t,n,i,x,D,w,e,p,J]);return v.jsxs(Ur,{...b,isDisabled:m,isLoading:T,className:Ne.clsx(hh.AFileBox,k),onDrop:ie,onDragEnter:Y,onDragLeave:se,onDragOver:q,abaseRef:_,children:[v.jsx("input",{style:{display:"none"},ref:I,type:"file",onChange:Z,value:"",accept:u}),X]})},s8=r=>{const{file:e,useFile:t}=r,[,n]=dn(t,null);return v.jsxs(An,{className:hh.SelectedFile,style:{backgroundColor:""},children:[v.jsx(Br,{icon:"File"}),v.jsx(wa,{children:e.name}),v.jsx(pi,{type:"Raw",icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},onClick:()=>n==null?void 0:n(null)})]})},a8=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return v.jsxs(An,{className:Ne.clsx(hh.SelectFile,"NoSelect"),children:[v.jsx(ji,{className:n,onClick:e,children:t["Select File"]}),v.jsx(bn,{w:4}),t["or Drag & Drop"]]})},l8=r=>{const{resources:e}=r;return v.jsxs(W2,{className:Ne.clsx(hh.Dropping,"NoSelect","Headline2"),children:[v.jsx(Br,{icon:"FileDownload"}),e["drop file to select"]]})},c8="_AFileUploader_4niz4_1",u8="_LabelContainer_4niz4_15",f8="_LabelButton_4niz4_24",d8="_Disabled_4niz4_30",h8="_Delete_4niz4_33",p8="_FileSize_4niz4_37",g8="_TotalFileSize_4niz4_44",m8="_FileBox_4niz4_48",v8="_SelectRenderer_4niz4_67",y8="_ChipsContainer_4niz4_78",b8="_FileChip_4niz4_89",_8="_FileChipContent_4niz4_101",x8="_FileNameContainer_4niz4_112",S8="_ButtonRenderer_4niz4_118",C8="_ErrorBorder_4niz4_129",w8="_ErrorColor_4niz4_133",A8="_ErrorCursor_4niz4_137",Pn={AFileUploader:c8,LabelContainer:u8,LabelButton:f8,Disabled:d8,Delete:h8,FileSize:p8,TotalFileSize:g8,FileBox:m8,SelectRenderer:v8,ChipsContainer:y8,FileChip:b8,FileChipContent:_8,FileNameContainer:x8,ButtonRenderer:S8,ErrorBorder:C8,ErrorColor:w8,ErrorCursor:A8},T8=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:i,onDownload:l})=>{const[u,f]=S.useState(!1);return v.jsx(pi,{icon:u?"FileDownload":"CircleAlertOutline",iconSize:"sm",tooltip:i["Fail Download"],type:"Raw",className:Ne.clsx(e,t,n),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onClick:()=>l(r)})},E8=r=>{const{helperText:e,label:t,labelProps:n,wrapProps:i,wrapType:l,errorMessage:u,useFiles:f,accept:p,onInvalidFileFormat:m,onDownload:T,onDelete:k,type:b,limit:x=1024*1024*1024,maxFileCount:_,useError:I,isLoading:w,resources:C,className:D,...O}=r,N=S.useMemo(()=>({...sn.AFileUploader,...C}),[C]),[j,$]=dn(f,void 0),[Z,ie]=dn(I,!1),[Y,se]=S.useState({}),[q,J]=S.useState(!1),X=S.useRef(0),ne=S.useRef({}),ge=S.useRef(null),me=S.useRef(null),ve=S.useCallback(Oe=>Oe.uniqueId||`${Oe.name}-${Oe.size}-${Oe.lastModified||""}-${Oe.idx||""}`,[]),de=S.useMemo(()=>(j==null?void 0:j.reduce((Oe,He)=>Oe+He.size,0))||0,[j]);S.useEffect(()=>{ie&&ie(de>x)},[de,x,ie]);const De=S.useCallback(Oe=>{var _t;if(!p||p==="*"||p==="")return!0;const He=p.split(",").map(vt=>vt.trim()),wt=`.${(_t=Oe.name.split(".").pop())==null?void 0:_t.toLowerCase()}`;return He.includes(wt)?!0:He.some(vt=>{var Tt;if(vt.startsWith("."))return!1;if(vt.endsWith("/*")){const Pe=vt.split("/")[0];return(Tt=Oe.type)==null?void 0:Tt.startsWith(`${Pe}/`)}return Oe.type===vt})},[p]),ue=S.useCallback((Oe,He)=>{const wt={...ne.current};wt[Oe]=He,ne.current=wt,se(wt)},[se]),le=S.useCallback(Oe=>{const He=ve(Oe);return Y[He]||"Normal"},[Y,ve]),fe=S.useCallback(Oe=>w||le(Oe)==="Loading",[w,le]),Me=S.useCallback(Oe=>le(Oe)==="Error"||b==="Upload"&&Oe.size>x,[le,x,b]),Ve=S.useMemo(()=>j!=null&&j.length?b==="Download"?j.every(Me):!1:!0,[j,b,Me]),pe=S.useCallback(()=>{ge.current&&(ge.current.value="")},[]),ke=S.useMemo(()=>!_||!(j!=null&&j.length)?!1:j.length>=_,[j,_]),ze=S.useCallback(Oe=>{if(!$)return;const He=[];let wt=!1,_t=[],vt=_?_-((j==null?void 0:j.length)||0):1/0;if(!(vt<=0)){if(Array.from(Oe).forEach((Tt,Pe)=>{if(Pe>=vt)return;if(!De(Tt)){wt=!0,_t.push(Tt.name);return}const Ke=Tt;Ke.uniqueId=`file-${Date.now()}-${X.current++}`,He.push(Ke)}),wt)if(m)m();else{const Tt=p?p.replace(/,/g,", "):"",Pe=Tt?`${N["Supported file format(s)"]}: ${Tt}`:"",Ke=_t.length>3?`${_t.slice(0,3).join(", ")} ${N.and} ${_t.length-3} ${N["more file(s)"]}`:_t.join(", ");alert(`${N["Unsupported file format detected."]}
157
157
 
158
- ${F["Invalid file(s)"]}: ${Ke}${Pe?`
158
+ ${N["Invalid file(s)"]}: ${Ke}${Pe?`
159
159
 
160
- `+Pe:""}`)}He.length>0&&$([...j||[],...He])}},[$,De,m,p,F,j,_]),Ze=S.useCallback(()=>{var Oe;return(Oe=ge.current)==null?void 0:Oe.click()},[]),et=S.useCallback(Oe=>{const He=Oe.target.files;He!=null&&He.length&&(ze(He),pe())},[ze,pe]),xe=S.useCallback(Oe=>{if(k==null||k(Oe),!$||!j)return;const He=ve(Oe),wt=j.filter(_t=>ve(_t)!==He);$(wt),pe()},[k,$,j,pe,ve]),Se=S.useCallback(()=>{$&&($([]),pe())},[$,pe]),be=S.useCallback(Oe=>{if(!T)return Promise.resolve();const He=ve(Oe);return ne.current[He]==="Loading"?Promise.resolve():(ue(He,"Loading"),new Promise(wt=>{T(Oe,_t=>{ue(He,_t),wt()})}))},[T,ve,ue]),Le=S.useCallback(async()=>{if(j!=null&&j.length){if(se){const Oe={...ne.current};j.forEach(He=>{Oe[ve(He)]="Loading"}),ne.current=Oe,se(Oe)}for(const Oe of j){if(!T)continue;const He=ve(Oe);await new Promise(wt=>{T(Oe,_t=>{if(se){const vt={...ne.current};vt[He]=_t,ne.current=vt,se(vt)}wt()})})}}},[j,ve,T,se]),$e=S.useMemo(()=>{const Oe=He=>(He.preventDefault(),He.stopPropagation(),He);return{onDragEnter:He=>{Oe(He),!Z&&!w&&J(!0)},onDragOver:He=>{Oe(He),!Z&&!w&&He.dataTransfer&&(He.dataTransfer.dropEffect="copy")},onDragLeave:He=>{var _t;Oe(He);const wt=(_t=me.current)==null?void 0:_t.contains(He.relatedTarget);(!He.relatedTarget||!wt)&&J(!1)},onDrop:He=>{var wt;Oe(He),J(!1),!Z&&!w&&((wt=He.dataTransfer.files)!=null&&wt.length)&&ze(He.dataTransfer.files)}}},[Z,w,ze]),bt=S.useMemo(()=>{const Oe=Ne.clsx(Pn.ButtonRenderer,"NoSelect");return{upload:He=>v.jsx(pi,{icon:"X",iconSize:"sm",tooltip:F.Delete,type:"Raw",className:Oe,style:{color:"var(--label-neutral)"},onClick:()=>xe(He)}),loading:()=>v.jsx(pi,{icon:"Spinner",iconSize:"sm",type:"Raw",className:Oe}),error:He=>v.jsx(T8,{file:He,baseClass:Oe,errorClass:Pn.ErrorColor,errorCursorClass:Pn.ErrorCursor,resources:F,onDownload:be}),download:He=>v.jsx(pi,{icon:"FileDownload",iconSize:"sm",tooltip:F.Download,type:"Raw",className:Oe,style:{color:"var(--acent-brand)"},onClick:()=>be(He)})}},[F,xe,be]),Ge=S.useCallback((Oe,He)=>{const wt=fe(Oe),_t=Me(Oe),vt=()=>b==="Upload"?bt.upload(Oe):wt?bt.loading():_t?bt.error(Oe):bt.download(Oe);return v.jsx(bm,{label:v.jsx("div",{className:Pn.FileChipContent,children:v.jsxs(An,{className:Pn.FileNameContainer,children:[v.jsx(wa,{className:Ne.clsx(_t&&Pn.ErrorColor),children:Oe.name}),v.jsx("span",{className:Pn.FileSize,children:Qc(Oe.size)})]})}),ButtonRenderer:vt,className:Ne.clsx(Pn.FileChip,_t&&Pn.ErrorBorder)},He)},[fe,Me,b,bt]),ht=S.useCallback(()=>v.jsx("div",{className:Ne.clsx(Pn.FileBox,Z&&Pn.ErrorBorder,Z&&Pn.ErrorColor,Z&&Pn.ErrorCursor,ke&&Pn.Disabled),...$e,ref:me,children:q?v.jsxs(An,{className:Ne.clsx("NoSelect"),style:{gap:4},children:[v.jsx(Br,{icon:"FileDownload"}),v.jsx("span",{children:F["Drop file to select"]})]}):v.jsxs(ji,{type:"Raw",className:Ne.clsx(Pn.SelectRenderer,"NoSelect"),onClick:Ze,isDisabled:Z||w||ke,children:[F["Insert File"],_&&` ${(j==null?void 0:j.length)||0} / ${_}`]})}),[Z,q,F,Ze,w,$e,j,_,ke]),mt=S.useMemo(()=>{const Oe=b==="Upload",He=Oe?F["Delete All"]:F["Download All"],wt=Oe?Se:Le;return v.jsxs(An,{className:Pn.LabelContainer,children:[t,b==="Upload"&&v.jsxs(wa,{className:Ne.clsx(Pn.TotalFileSize,"NoSelect"),children:["(",v.jsx("span",{className:Ne.clsx(Z&&Pn.ErrorColor),children:Qc(de)})," / ",Qc(x),")"]}),v.jsx("span",{className:Ne.clsx(Pn.LabelButton,"Label1",Ve&&Pn.Disabled,Oe&&Pn.Delete),onClick:Ve?void 0:wt,children:He})]})},[b,F,Se,Le,t,Z,de,x,Ve]);return b==="Download"&&!(j!=null&&j.length)?null:v.jsxs(ic,{helperText:e,wrapProps:i,wrapType:l,labelProps:n,errorMessage:u,label:mt,children:[v.jsx("input",{style:{display:"none"},ref:ge,type:"file",multiple:!0,onChange:et,accept:p||""}),v.jsx(Ur,{...O,className:Ne.clsx(Pn.AFileUploader,D),children:v.jsxs(An,{className:Pn.ChipsContainer,children:[b==="Upload"&&ht(),j==null?void 0:j.map(Ge)]})})]})},k8="_AFloatMenu_xco8u_1",R8="_Content_xco8u_10",d0={AFloatMenu:k8,Content:R8},Y2=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:i,onClose:l,onClick:u,onPaperClick:f,position:p=sf.ES,width:m=137}=r,T=S.useMemo(()=>({content:I8,...t}),[t]),k=S.useMemo(()=>{const q={};return rr.keys(e).forEach(J=>{const X=e[J],ne={...T,...X};ne.noDisplay||(q[J]=ne)}),q},[T,e]),[b,x]=S.useState(null),_=S.useCallback(q=>{s2(q,O,p,i),x(q)},[p,i]),[I,w]=S.useState(!1),[C,D]=S.useState(!1),O=S.useRef(null),F=S.useCallback(q=>{D(!0),setTimeout(()=>w(!0),0),setTimeout(()=>_(q),0)},[_]),j=S.useCallback(()=>{w(!1),D(!0),l==null||l()},[l]),$=S.useCallback(()=>D(!1),[]),Z=S.useCallback(async q=>{const J=document.getElementById("root"),X=q.target,ne=O.current;!J||!ne||!X||!ne.contains(X)&&J.contains(X)&&(await(f==null?void 0:f(q)),j())},[j,f]);S.useEffect(()=>{if(I)return setTimeout(()=>document.addEventListener("mousedown",Z),0),()=>document.removeEventListener("mousedown",Z)},[I,Z]);const ie=S.useCallback(()=>{b&&_(b)},[_,b]);S.useEffect(()=>{if(!I||!b)return;let q=b.parentElement;for(;q;)q.addEventListener("scroll",ie),q=q.parentElement;return()=>{let J=b.parentElement;for(;J;)J.removeEventListener("scroll",ie),J=J.parentElement}},[b,I,ie]),S.useEffect(()=>{if(I)return window.addEventListener("resize",ie),()=>window.removeEventListener("resize",ie)},[I,ie]);const Y=S.useCallback(q=>{q[0].intersectionRatio===0&&j()},[j]);S.useEffect(()=>{if(!I)return;const q=new IntersectionObserver(Y,{threshold:0});return O.current&&q.observe(O.current),()=>q.disconnect()},[O,I,Y]),S.useEffect(()=>{n&&(n.current={open:F,close:j})},[n,F,j]);const se=S.useCallback(q=>{var J;if(I){if((J=k[q])!=null&&J.isDisabled)return}else return;u==null||u(q),j()},[I,u,j,k]);return!I&&!C?null:zs.createPortal(v.jsx("div",{className:d0.AFloatMenu,style:{opacity:+I,visibility:I&&Object.keys(k).length>0?"visible":"hidden",minWidth:m},onTransitionEnd:$,ref:O,children:rr.map(k,([q],J)=>{const X={...T,...k[q]};let{content:ne,noDisplay:ge,tooltipDirection:me=_i.E,...ve}=X;return ge?null:(ne=Ir.getContent(X.content,{defKey:q,def:X}),S.createElement(Ur,{...ve,key:J,className:Ne.clsx(d0.Content,"Label2","IsClickable",ve.className),onClick:de=>{var De;se==null||se(q),(De=ve.onClick)==null||De.call(ve,de)},tooltipDirection:me},ne))})}),document.body)},I8=r=>r.defKey;function L8(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const X2={parseInt:L8},D8=`${Number.MAX_SAFE_INTEGER}`.length-1,M8=r=>{const{unit:e,type:t="Secondary",min:n,max:i,useValue:l,onEnterPress:u,canAsterisk:f=!1,onFocus:p,...m}=r,T=S.useMemo(()=>i!==void 0&&n!==void 0?Math.max(`${i}`.length+1,`${n}`.length+1):D8,[n,i]),[k,b]=dn(l,""),x=S.useCallback(C=>{if(b)if(f&&C.startsWith("*"))b("*");else if(C==="")b("");else if(C==="-")b("-");else{C=C.replace(/[^0-9-]/g,"");try{const D=X2.parseInt(C);D!==void 0&&(n!==void 0&&D<n?b(`${n}`):i!==void 0&&D>i?b(`${i}`):b(`${D}`))}catch(D){console.error("ANumInput : ",D)}}},[b,f,n,i]),_=S.useRef(null),I=S.useCallback(C=>{var D;(D=_.current)==null||D.blur(),u==null||u(C)},[u]),w=S.useMemo(()=>n===void 0&&i===void 0?e??"number":`${n??""}~${i??""}`,[n,i,e]);return v.jsx(oc,{...m,type:t,className:Ne.clsx(no.ANumInput,r.className),autoComplete:"off",onEnterPress:I,useValue:[k,x],maxLength:T,placeholder:w,RightAddon:r.unit&&v.jsx("span",{style:{marginRight:4},children:r.unit}),inputRef:_})},O8="_AListView_k7t2d_1",P8="_Row_k7t2d_10",N8="_Label_k7t2d_20",F8="_Content_k7t2d_30",Md={AListView:O8,Row:P8,Label:N8,Content:F8},j8=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:i,labelWidth:l,noBorder:u,style:f,...p}=r,m=u?"":"var(--AListView_border-thin)",T=u?"":"var(--AListView_border-thick)",k=S.useMemo(()=>({content:q8,label:B8,...t}),[t]),b=S.useMemo(()=>{const x={};return rr.keys(e).forEach(_=>{const I=e[_],w={...k,...I};x[_]=w}),x},[k,e]);return v.jsx(Ur,{...p,className:Ne.clsx(Md.AListView,p.className),style:{...f,borderTop:m},children:rr.map(b,([x])=>{const _={...k,...b[x]},I=Ir.getContent(_.label,{defKey:x,item:n,def:_}),w=Ir.getContent(_.content,{defKey:x,item:n||{[x]:""},def:_}),C=Ir.getContent(_.bold||"label",{defKey:x,item:n,def:_});return v.jsxs("div",{className:Md.Row,style:{height:i,borderBottom:m},children:[v.jsx("div",{className:Ne.clsx(Md.Label,"NoSelect",C!=="content"&&"Bold"),style:{width:l,minWidth:l,maxWidth:l,borderLeft:T,paddingLeft:u?0:10},children:v.jsx(wa,{children:I})}),v.jsx("div",{className:Ne.clsx(Md.Content,C!=="label"&&"Bold"),style:{borderLeft:T,borderRight:T},children:v.jsx(wa,{style:{width:"100%",padding:u?0:10},children:w})})]},x)})})},B8=r=>r.defKey,q8=r=>{const{defKey:e,item:t}=r;if(t)if(rr.hasKey(t,e)){const n=t[e];return rr.isReactNode(n)?n:null}else return null;else return null},H8="_ALoadingBorder_kwc1g_1",z8="_ProgressBar_kwc1g_9",$8="_IsLoading_kwc1g_15",U8="_load_kwc1g_1",W8="_Cover_kwc1g_19",Pf={ALoadingBorder:H8,ProgressBar:z8,IsLoading:$8,load:U8,Cover:W8},Cm=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),i=S.useRef(null);return S.useEffect(()=>{e?(n(!0),i.current&&clearTimeout(i.current)):i.current=setTimeout(()=>n(!1),300)},[e]),v.jsxs("div",{className:Pf.ALoadingBorder,children:[v.jsx("div",{className:Ne.clsx(Pf.ProgressBar,t&&Pf.IsLoading)}),v.jsx("div",{className:Ne.clsx(Pf.Cover,e&&Pf.IsLoading),style:{transition:"all 300ms"}})]})},V8="_Container_ez8dc_1",G8="_Option_ez8dc_7",Z8="_RadioButton_ez8dc_14",K8="_InnerCircle_ez8dc_24",Y8="_isChecked_ez8dc_29",Vu={Container:V8,Option:G8,RadioButton:Z8,InnerCircle:K8,isChecked:Y8},X8=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:i=23,innerRadius:l=i*.6,OptionRenderer:u=J2}=r,[f,p]=dn(t,e[0]);return v.jsx("div",{className:Vu.Container,children:e.map((m,T)=>{const k=n==null?void 0:n(m),b=()=>k?null:p==null?void 0:p(m);return v.jsxs(An,{className:Ne.clsx(Vu.Option,"IsClickable"),isDisabled:k,onClick:b,children:[v.jsx(J8,{isChecked:f===m,radius:i,innerRadius:l},T),v.jsx(u,{option:m})]},T)})})},J2=({option:r})=>r,J8=({isChecked:r,radius:e,innerRadius:t})=>v.jsx(Ur,{className:Ne.clsx(Vu.RadioButton,r&&Vu.isChecked),style:{width:e,height:e},children:v.jsx(Ur,{className:Ne.clsx(Vu.InnerCircle,r&&Vu.isChecked),style:{width:t,height:t}})}),Q8="_AMultiSelect_12res_1",ek="_Arrow_12res_15",tk="_Primary_12res_24",rk="_UnAvailable_12res_35",nk="_IsOpen_12res_35",ik="_Secondary_12res_42",ok="_Placeholder_12res_58",sk="_ValuesContainer_12res_63",ak="_Values_12res_63",lk="_Options_12res_82",ck="_Option_12res_82",uk="_Selected_12res_124",fk="_CheckBox_12res_131",_o={AMultiSelect:Q8,Arrow:ek,Primary:tk,UnAvailable:rk,IsOpen:nk,Secondary:ik,Placeholder:ok,ValuesContainer:sk,Values:ak,Options:lk,Option:ck,Selected:uk,CheckBox:fk},dk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=sn.AMultiSelect["Select(Placeholder)"],onClose:l,SelectedRenderer:u=pk,OptionRenderer:f=gk,minShowRows:p=2,maxShowRows:m=6,arrowProps:T,isAutoWidth:k=!1,...b}=r,x=S.useRef(null),_=S.useMemo(()=>b.abaseRef??x,[b.abaseRef]),I=S.useRef(null),[w,C]=dn(t,[]),[D,O]=S.useState(void 0),F=S.useRef(e),j=S.useRef(null),[$,Z]=S.useState(!1),[ie,Y]=S.useState(!1),se=S.useCallback(()=>Y(!1),[]),q=S.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(Y(!0),setTimeout(()=>Z(!0),0),setTimeout(()=>rp(I,_,e,p,m),0))},[_,b.isDisabled,b.isLoading,e,p,m]),J=S.useCallback(()=>{Z(!1),Y(!0),l==null||l()},[l]),X=S.useCallback(ue=>{var le;$?J():q(),setTimeout(()=>rp(I,_,e,p,m),0),(le=b.onClick)==null||le.call(b,ue)},[_,b,e,$,J,q,p,m]),ne=S.useCallback(()=>{rp(I,_,e,p,m)},[_,e,p,m]);S.useEffect(()=>{if(!$||!_.current)return;const ue=_.current;let le=ue.parentElement;for(;le;)le.addEventListener("scroll",ne),le=le.parentElement;return()=>{let fe=ue.parentElement;for(;fe;)fe.removeEventListener("scroll",ne),fe=fe.parentElement}},[_,$,ne]),S.useEffect(()=>{if($)return window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)},[$,ne]);const ge=S.useCallback(ue=>{ue[0].intersectionRatio===0&&J()},[J]);S.useEffect(()=>{if(!$)return;const ue=new IntersectionObserver(ge,{threshold:0});return _.current&&ue.observe(_.current),()=>ue.disconnect()},[_,$,ge]);const me=S.useCallback(ue=>{const le=ue.target,fe=_.current,Me=I.current;!fe||!le||!Me||!fe.contains(le)&&!Me.contains(le)&&J()},[_,J]),ve=S.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);S.useEffect(()=>{if($)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[$,me]);const de=S.useCallback((ue,le)=>{ue.stopPropagation(),ue.preventDefault();let fe=[...w];fe.includes(le)?fe=fe.filter(Me=>Me!==le):fe.push(le),C==null||C(fe)},[w,C]),De=S.useCallback(()=>{if(!k||!_.current)return;const ue=Jc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOptions:w,placeholder:i,optionRenderer:le=>f({option:le}),type:n,isMulti:!0});O(ue)},[k,_,e,w,i,f,n]);return S.useEffect(()=>k?((e!==F.current||D===void 0)&&(j.current!==null&&cancelAnimationFrame(j.current),j.current=requestAnimationFrame(()=>{De(),j.current=null,F.current=[...e]})),()=>{j.current!==null&&(cancelAnimationFrame(j.current),j.current=null)}):void 0,[k,e,De,D]),S.useEffect(()=>()=>{typeof Jc.clearCache=="function"&&Jc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...b,isDisabled:b.isDisabled||e.length<1,className:Ne.clsx(b.className,_o.AMultiSelect,"NoSelect",$&&_o.IsOpen,ve&&_o.UnAvailable,_o[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:D?`${D}px`:k?"100px":void 0,...b.style},abaseRef:_,onClick:X,children:[v.jsx("div",{className:_o.ValuesContainer,children:v.jsx("div",{className:Ne.clsx(_o.Values,w.length<1&&_o.Placeholder),children:v.jsx(u,{OptionRenderer:f,selectedOptions:w,placeholder:i})})}),v.jsx("div",{...T,className:Ne.clsx(_o.Arrow,T==null?void 0:T.className),children:v.jsx(Br,{style:{transform:$?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&($||ie)&&zs.createPortal(v.jsx("div",{className:Ne.clsx(_o.Options,_o[n]),onTransitionEnd:se,style:{opacity:+$,visibility:$?"visible":"hidden",pointerEvents:$?void 0:"none",width:D?`${D}px`:k?"100px":void 0,borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0},ref:I,children:e.map((ue,le)=>{var Me;const fe=w.includes(ue);return v.jsxs("div",{className:Ne.clsx(_o.Option,fe&&_o.Selected,"NoSelect",_o[n]),style:{height:(Me=_.current)==null?void 0:Me.getBoundingClientRect().height},onClick:Ve=>de(Ve,ue),children:[v.jsx(Qu,{className:_o.CheckBox,useCheck:[+fe,void 0]}),v.jsx(f,{option:ue})]},le)})}),document.body)]})};function rp(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=hk(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function hk(r,e,t,n){const i={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<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const pk=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?v.jsx(e,{option:t[0]}):`${t.length} selected`},gk=r=>{const{option:e}=r;return rr.isReactNode(e)?e:null},mk="_Container_10ion_1",vk="_Steps_10ion_9",yk="_Step_10ion_9",bk="_OutCircle_10ion_26",_k="_IsOver_10ion_37",xk="_InCircle_10ion_41",Sk="_Line_10ion_54",Ck="_Left_10ion_66",wk="_Right_10ion_69",Ak="_ContentContainer_10ion_73",Tk="_Content_10ion_73",ro={Container:mk,Steps:vk,Step:yk,OutCircle:bk,IsOver:_k,InCircle:xk,Line:Sk,Left:Ck,Right:wk,ContentContainer:Ak,Content:Tk},Ek=r=>{const{useSelect:e,steps:t,StepRenderer:n=h0,ContentRenderer:i=h0}=r;if(t.length===0)throw new Error("steps should have at least one element");const l=S.useRef(null),[u,f]=dn(e,t[0]),p=S.useCallback(T=>f==null?void 0:f(T),[f]),m=S.useMemo(()=>t.indexOf(u),[u,t]);return S.useEffect(()=>{m<0&&p(t[0])},[m,t,p]),v.jsxs("div",{className:ro.Container,children:[v.jsx("div",{className:ro.Steps,children:t.map((T,k)=>{const b=t.indexOf(T),x=m>=k,_=m>k;return v.jsxs("div",{className:ro.Step,children:[k!==0&&v.jsx("div",{className:Ne.clsx(ro.Line,ro.Left,x&&ro.IsOver)}),k!==t.length-1&&v.jsx("div",{className:Ne.clsx(ro.Line,ro.Right,_&&ro.IsOver)}),v.jsx(ji,{type:"Raw",className:Ne.clsx(ro.OutCircle,x&&ro.IsOver),onClick:()=>p(T),children:v.jsx("div",{className:Ne.clsx(ro.InCircle,x&&ro.IsOver)})}),v.jsx(n,{step:T,stepIdx:b})]},k)})}),v.jsx("div",{className:ro.ContentContainer,ref:l,children:t.map((T,k)=>{const b=t.indexOf(T);return v.jsx("div",{className:ro.Content,style:k===0?{marginLeft:`${m*-100}%`}:{},children:v.jsx(i,{step:T,stepIdx:b})},k)})})]})},h0=r=>{const{step:e}=r;return typeof e=="object"?rr.stringify(e):e},kk="_ATab_11k4q_1",Rk="_Option_11k4q_9",Ik="_Underline_11k4q_23",Lk="_IsSelected_11k4q_23",Dk="_IndicatorTrack_11k4q_34",Mk="_Indicator_11k4q_34",Ok="_Primary_11k4q_50",Pk="_Secondary_11k4q_57",Nk="_IsDisabled_11k4q_67",Fk="_Tertiary_11k4q_81",jk="_Quaternary_11k4q_111",Jl={ATab:kk,Option:Rk,Underline:Ik,IsSelected:Lk,IndicatorTrack:Dk,Indicator:Mk,Primary:Ok,Secondary:Pk,IsDisabled:Nk,Tertiary:Fk,Quaternary:jk},Bk=["Primary","Secondary","Tertiary","Quaternary"],Q2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:i="Primary",tabProps:l,optionProps:u,optionWidth:f,OptionRenderer:p=qk,RightAddon:m,color:T,selectedColor:k,underline:b,indicatorProps:x,indicatorTrackProps:_}=r;if(e.length===0)throw new Error("options should have at least one element");const I=S.useMemo(()=>e.findIndex(le=>!(n!=null&&n(le))),[e,n]),w=i==="Tertiary"?2:0,C=i==="Secondary"?8:0,D=S.useMemo(()=>w+C,[w,C]),O=i==="Tertiary"?2:0,F=S.useMemo(()=>(C-w-O-O)/e.length,[e.length,w,C,O]),[j,$]=dn(t,e[I]),Z=S.useRef([]),ie=S.useCallback(le=>$==null?void 0:$(le),[$]),Y=S.useMemo(()=>typeof f=="number"?f+"px":f,[f]),se=S.useMemo(()=>e.indexOf(j),[e,j]),q=S.useMemo(()=>`calc(${100/e.length}% + ${F}px)`,[e.length,F]),J=S.useMemo(()=>Y||`calc(${q} - ${D}px)`,[q,D,Y]),[X,ne]=S.useState(0),[ge,me]=S.useState(0),[ve,de]=S.useState(J),De=S.useMemo(()=>{let le;switch(Y){case void 0:le=`calc(${q} * ${se})`;break;case"fit-content":le=`calc(${X}px)`;break;default:le=`calc((${Y} + ${D}px) * ${se})`;break}return`calc(${le} + ${O}px)`},[Y,O,q,se,X,D]),ue=S.useMemo(()=>{switch(Y){case void 0:return;case"fit-content":return`calc(${ge}px)`;default:return`calc((${Y} + ${D}px - ${F}px) * ${e.length})`}},[Y,F,D,e,ge]);return S.useEffect(()=>{var fe,Me;if(e.includes(j)||$==null||$(e[I]),Y!=="fit-content"){de(J);return}let le=0;Z.current.forEach((Ve,pe)=>{pe<se&&Ve.current&&(le+=Ve.current.offsetWidth+D)}),ne(le),de(`calc(${((Me=(fe=Z.current[se])==null?void 0:fe.current)==null?void 0:Me.offsetWidth)||0}px)`),me(Z.current.reduce((Ve,pe)=>{var ke;return Ve+((((ke=pe.current)==null?void 0:ke.offsetWidth)||0)+D-F)},0))},[Y,Z,e,j,$,I,F,D,se,J]),v.jsxs("div",{...l,className:Ne.clsx(Jl.ATab,"Headline2",Jl[i],l==null?void 0:l.className),children:[v.jsx("div",{...x,className:Ne.clsx(Jl.Indicator,x==null?void 0:x.className),style:{minWidth:ve,left:De,marginLeft:w,...x==null?void 0:x.style}}),v.jsx("div",{..._,className:Ne.clsx(Jl.IndicatorTrack,_==null?void 0:_.className),style:{width:ue,..._==null?void 0:_.style}}),v.jsx(bn,{w:O}),e.map((le,fe)=>{const Me=n==null?void 0:n(le);return Z.current[fe]||(Z.current[fe]=S.createRef()),v.jsx(Ur,{abaseRef:Z.current[fe],...u,style:{minWidth:J,maxWidth:J,marginLeft:w,marginRight:C,"--color":le===j&&k||T,...u==null?void 0:u.style},className:Ne.clsx(Jl.Option,Me&&Jl.IsDiabled,le===j&&Jl.IsSelected,"IsClickable",b&&Jl.Underline,u==null?void 0:u.className),onClick:Ve=>{!Me&&ie(le),u&&u.onClick&&u.onClick(Ve)},isDisabled:Me,children:v.jsx(p,{option:le})},fe)}),v.jsx(bn,{w:O+w}),m&&v.jsxs(v.Fragment,{children:[v.jsx(nu,{}),m]})]})},qk=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=rr.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 ex(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const tx={String:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;if(t==="")return rr.keys(e).some(T=>{const k=e[T],b=Ir.getContent(k.asText,{defKey:T,def:k,item:r});if(b!==void 0)return b.toString().toLowerCase().includes(i.toLowerCase());const x=Ir.getContent(k.content,{defKey:T,def:k,item:r});return["string","number"].includes(typeof x)&&x!==void 0&&x!==null?x.toString().toLowerCase().includes(i.toLowerCase()):!1});const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0)return p.toString().toLowerCase().includes(i.toLowerCase());const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?m.toString().toLowerCase().includes(i.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:i}=n;if(i==null)return!1;const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0)return i.toString().toLowerCase()===p.toString().toLowerCase();const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?i.toString().toLowerCase()===m.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0){const T=Yt.toDate(p.toString());return T&&Yt.eq(T,i)}const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const T=Yt.toDate(m.toString());return T&&Yt.eq(T,i)}return!1},DateRange:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0){const T=Yt.toDate(p.toString());return T&&Yt.be(i.sDate,T,i.eDate)}const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const T=Yt.toDate(m.toString());return T&&Yt.be(i.sDate,T,i.eDate)}return!1}},Hk=(r,e,t)=>{let n=r;return rr.keys(t).forEach(l=>{const u=t[l];u.value===void 0||u.value===null||u.value===""||(n=n.filter(f=>{var p;return(p=u.predicate??tx[u.type])==null?void 0:p(f,e,l,u)}))}),n},zk=(r,e,t)=>{if(!t)return r;const n=t.defKey,i=e[n];if(n===void 0)return r;const l=t.sortF??((u,f)=>{const p=Ir.getContent(i.content,{defKey:n,def:i,item:u}),m=Ir.getContent(i.content,{defKey:n,def:i,item:f});return typeof p=="string"&&typeof m=="string"?p<m?-1:p>m?1:0:typeof p=="number"&&typeof m=="number"?p-m:typeof p=="string"&&typeof m=="number"?-1:typeof p=="number"&&typeof m=="string"||p===void 0&&m!==void 0?1:p!==void 0&&m===void 0?-1:0});return typeof l=="function"&&l.length>=3?r.slice().sort((u,f)=>l(u,f,t.isAsc)):r.slice().sort((u,f)=>{const p=l(u,f);return t.isAsc?p:-p})},$k=(r,e,t)=>r.slice((e-1)*t,e*t),rx=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,i)=>i+1)},Uk=(r,e,t,n)=>{const i=rx(e,t),l=Math.floor((r-1)/n),u=l*n+1,f=(l+1)*n,p=i.slice(u-1,f);return{pages:i,rangedPages:p}},Wk=(r,e,t)=>{const n=[],i=Object.keys(t),l=[];i.forEach(b=>{const x=t[b],_=Ir.getContent(x.hContent,{defKey:b,def:x});if(_!==void 0){if(typeof _=="string"){l.push(_);return}else if(typeof _=="number"){l.push(_.toString());return}}const I=Ir.getContent(x.name,{defKey:b,def:x});if(I!==void 0&&typeof I=="string"){l.push(I);return}l.push(b)});const u=l.map(b=>`"${b.replaceAll('"','""')}"`);n.push(u.join(",")),e.forEach(b=>{const x=[];i.forEach(I=>{const w=t[I],C=Ir.getContent(w.content,{defKey:I,def:w,item:b});if(C!==void 0){if(typeof C=="string"){x.push(C);return}else if(typeof C=="number"){x.push(C.toString());return}}const D=b[I];typeof D=="string"?x.push(D):typeof D=="number"?x.push(D.toString()):x.push("")});const _=x.map(I=>`"${I.replaceAll('"','""')}"`);n.push(_.join(","))});const f=`${r}.csv`,p="\uFEFF"+n.join(`
161
- `),m=new Blob([p],{type:"text/csv;charset=UTF-8"}),T=URL.createObjectURL(m),k=document.createElement("a");k.href=T,k.download=f,k.click(),URL.revokeObjectURL(T)},Vk=r=>{const e=rr.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},Gk=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,i])=>{!i||i.value===void 0||i.value===null||i.value===""||(i.type==="DateRange"?(t[i.sFilterKey]=i.value.sDate,t[i.eFilterKey]=i.value.eDate):t[i.filterKey??n]=i.value)}),t},Zk=r=>{const e=rr.keys(r).filter(i=>i!=="");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}},nl={applyFilteration:Hk,applySortation:zk,applyPagination:$k,getPages:rx,getRangedPages:Uk,downloadCsv:Wk,getSingleFilterValue:Vk,getMultiFilterValues:Gk,getSelectFilterValue:Zk},Kk="_ATable_12zow_1",Yk={ATable:Kk};function nx(r,e,t,n){S.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const Xk="_BodyHeader_ys4y0_1",Jk="_TRow_ys4y0_7",Qk="_OverflowSpace_ys4y0_11",eR="_BodyBody_ys4y0_16",tR="_IsSelected_ys4y0_35",rR="_IsSelectable_ys4y0_39",nR="_IsRowMarked_ys4y0_47",iR="_TH_ys4y0_52",oR="_TD_ys4y0_57",sR="_IsMarked_ys4y0_57",aR="_Resizer_ys4y0_76",lR="_IsMoving_ys4y0_88",cR="_IsResizable_ys4y0_91",uR="_ResizerCenter_ys4y0_94",fR="_ResizerOut_ys4y0_100",dR="_ResizerIn_ys4y0_104",hR="_IsClicked_ys4y0_139",pR="_NoItems_ys4y0_146",gR="_Content_ys4y0_152",Cn={BodyHeader:Xk,TRow:Jk,OverflowSpace:Qk,BodyBody:eR,IsSelected:tR,IsSelectable:rR,IsRowMarked:nR,TH:iR,TD:oR,IsMarked:sR,Resizer:aR,IsMoving:lR,IsResizable:cR,ResizerCenter:uR,ResizerOut:fR,ResizerIn:dR,IsClicked:hR,NoItems:pR,Content:gR},ec=25,np=50,mR=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:i,isTableDisabled:l,isSelectMulti:u,selectDisabled:f,appliedFilteration:p,useSortation:m,pagination:T,pagedItems:k,noMarking:b,noDefHeader:x,isLoading:_,showRows:I,RowRenderer:w=bR,isRowRendered:C,rowHeight:D,resources:O}=r,[F,j]=S.useMemo(()=>i??[],[i]),$=S.useCallback(Ge=>{l||!j||!F||f!=null&&f(Ge)||(u?F.some(ht=>t(ht,Ge))?j(F.filter(ht=>!t(ht,Ge))):j([...F,Ge]):j([Ge]))},[F,f,j,t,l,u]);S.useEffect(()=>{u||!F||!j||F.length>1&&j([F[F.length-1]])},[F,j,u]),S.useEffect(()=>{if(!F||!j)return;F.filter(ht=>f==null?void 0:f(ht)).length>0&&j(F.filter(ht=>!(f!=null&&f(ht))))},[F,j,f]);const[Z,ie]=m,Y=S.useCallback((Ge,ht)=>{ie&&((Z==null?void 0:Z.defKey)===Ge?Z.isAsc===!0?ie({defKey:Ge,isAsc:!1,sortF:ht}):Z.isAsc===!1?ie(void 0):ie({defKey:Ge,isAsc:!0,sortF:ht}):ie({defKey:Ge,isAsc:!0,sortF:ht}))},[Z,ie]),[se,q]=S.useState({elem:null,row:null}),J=S.useRef(null),X=S.useRef(null),ne=S.useCallback(()=>q({elem:J.current,row:X.current}),[]);S.useEffect(()=>ne(),[k.length,ne]),nx(window,"resize",ne);const[ge,me]=S.useState(D);S.useEffect(()=>{const{row:Ge}=se;Ge!=null&&me(Ge.clientHeight)},[se,ge]);const ve=S.useMemo(()=>{const{elem:Ge}=se;return Ge?Math.floor(Ge.clientHeight/ge):0},[se,ge]),de=S.useMemo(()=>I||(k.length<=ve?ve:k.length),[ve,I,k]),De=S.useMemo(()=>{if(I!==void 0)return I*ge},[I,ge]),ue=S.useMemo(()=>De,[De]),le=S.useMemo(()=>{const{elem:Ge}=se;return Ge?Ge.getBoundingClientRect().height/ge<k.length:!1},[se,ge,k.length]),[fe,Me]=S.useState(),Ve=S.useMemo(()=>{const{elem:Ge}=se;return!fe||!Ge?"100%":Ge.clientHeight+(C?0:50)},[fe,C,se]),pe=S.useRef(null),[ke,ze]=S.useState({}),Ze=S.useRef({x:0,y:0}),et=S.useRef({}),xe=S.useMemo(()=>rr.keys(ke),[ke]),Se=S.useCallback((Ge,ht)=>{const mt=pe.current;if(!mt)return;const Oe=[];mt.childNodes.forEach(vt=>{vt.classList.contains(Cn.TH)&&Oe.push(vt)});const He={};rr.keys(e).forEach((vt,Tt)=>{const Pe=Oe[Tt];if(!Pe)return;const Ke=Pe.getBoundingClientRect().width;He[vt]=Ke}),et.current=He,Me(ht),Ze.current={x:Ge.clientX,y:Ge.clientY};const wt=vt=>{if(!pe.current)return;const Pe=vt.clientX-Ze.current.x,Ke=yR(e,ht,et.current,Pe);ze(Ke)};document.addEventListener("mousemove",wt);const _t=()=>{Me(void 0),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},[e]),be=S.useCallback(()=>{Me(void 0),ze({})},[]),Le=S.useMemo(()=>{if(xe.length===0){const mt={},Oe=rr.keys(e);for(let He=0;He<Oe.length;He++){const wt=Oe[He],_t=e[wt],vt=Ir.getContent(_t.colSpan,{defKey:wt,def:_t}),Tt=_t.width??80,Pe=_t.minWidth??ec,Ke=_t.maxWidth,xt={width:Tt,minWidth:Pe,maxWidth:Ke,flexGrow:vt??1};if(mt[wt]=xt,vt!==void 0){for(let jt=1;jt<Math.min(vt,Oe.length-He);jt++){const At=e[Oe[He+jt]],Be=At.width??80,Lt=At.minWidth??ec,Dt=At.maxWidth;xt.width+=Be,xt.minWidth+=Lt,xt.maxWidth!==void 0&&(Dt!==void 0?xt.maxWidth+=Dt:xt.maxWidth=void 0)}He+=vt-1}}return mt}const Ge={},ht=rr.keys(e);for(let mt=0;mt<ht.length;mt++){let Oe=ht[mt];const He=e[Oe];let wt=ke[Oe];const _t=Ir.getContent(He.colSpan,{defKey:Oe,def:He}),vt=He.minWidth??ec,Tt=He.maxWidth,Pe={width:wt,minWidth:vt,maxWidth:Tt,flexGrow:_t??1};if(Ge[Oe]=Pe,_t!==void 0){for(let Ke=1;Ke<Math.min(_t,ht.length-mt);Ke++){const xt=e[ht[mt+Ke]],jt=ke[ht[mt+Ke]],At=xt.minWidth??ec,Be=xt.maxWidth;Pe.width+=jt,Pe.minWidth+=At,Pe.maxWidth!==void 0&&(Be!==void 0?Pe.maxWidth+=Be:Pe.maxWidth=void 0)}mt+=_t-1}}return Ge},[e,xe,ke]),$e=S.useRef(null),bt=S.useMemo(()=>nl.getSingleFilterValue(p),[p]);return S.useEffect(()=>{J.current&&J.current.scrollTo({top:0})},[T.page]),S.useEffect(()=>{C&&X.current&&X.current.scrollIntoView({behavior:"smooth",block:"center"})},[F,k,C]),v.jsxs(v.Fragment,{children:[v.jsx(Cm,{isLoading:_}),v.jsx("div",{className:Ne.clsx(Cn.BodyHeader,fe!==void 0&&Cn.IsClicked),onResizeCapture:ne,ref:$e,style:{display:x||C?"none":"flex"},children:v.jsx("div",{className:Cn.TRow,ref:pe,style:{minHeight:np,maxHeight:np},children:rr.map(e,([Ge],ht)=>{const mt=e[Ge],Oe=Ir.getContent(mt.hContent,{defKey:Ge,def:mt}),He=mt.name,wt=ht===rr.keys(e).length-1,_t=mt.width??80,vt=mt.minWidth??ec,Tt=mt.maxWidth,Pe={width:_t,minWidth:vt,maxWidth:Tt,justifyContent:Ir.getContent(mt.hAlign,{defKey:Ge,def:mt})??"flex-start",...Ir.getContent(mt.hStyle,{defKey:Ge,def:mt})};xe.includes(Ge)&&(Pe.width=ke[Ge]);const Ke=mt.isSortable,xt=(Z==null?void 0:Z.defKey)===Ge,jt=Z==null?void 0:Z.isAsc;return v.jsxs(S.Fragment,{children:[v.jsxs("div",{style:Pe,onClick:()=>Ke&&Y(Ge,mt.sortF),className:Ne.clsx(Cn.TH,"Label1",Ke?"IsClickable":"NoSelect"),children:[v.jsx(wa,{className:Cn.Content,children:Oe??He}),Ke&&v.jsx(Br,{icon:xt?jt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!wt&&v.jsxs("div",{className:Ne.sclsx(Cn,"Resizer","IsResizable","NoSelect",fe!==void 0&&"IsMoving"),onMouseDown:At=>Se(At,Ge),onDoubleClick:be,children:[v.jsx("div",{className:Cn.ResizerOut}),v.jsx("div",{className:Cn.ResizerIn}),v.jsx("div",{className:Cn.ResizerCenter,style:{height:Ve}}),v.jsx("div",{className:Cn.ResizerIn}),v.jsx("div",{className:Cn.ResizerOut})]}),wt&&v.jsx(bn,{className:Cn.OverflowSpace,w:"var(--Scrollbar-width)",h:np,style:{color:Pe.color,backgroundColor:Pe.backgroundColor,transition:Pe.transition}})]},Ge)})})}),v.jsxs("div",{className:Ne.clsx(Cn.BodyBody,fe!==void 0&&Cn.IsClicked),ref:J,style:{overflowY:le?"scroll":"hidden",minHeight:De,maxHeight:ue},children:[k.map((Ge,ht)=>{const mt=Ir.getContent(n,{item:Ge}),Oe=j&&!l,He=F==null?void 0:F.some(Tt=>t(Tt,Ge)),wt=F&&(f==null?void 0:f(Ge)),_t=typeof wt=="string"?wt:void 0,vt={...Ge};return C&&rr.keys(e).forEach(Tt=>{const Pe=e[Tt],Ke=Ir.getContent(Pe.content,{defKey:Tt,def:Pe,item:Ge});let xt=!1;if(bt&&!b){const jt=Ir.getContent(Pe.asText,{defKey:Tt,def:Pe,item:Ge});jt!==void 0?xt=jt.toString().toLowerCase().includes(bt.toLowerCase()):["string","number"].includes(typeof Ke)&&Ke!==void 0&&Ke!==null&&(xt=Ke.toString().toLowerCase().includes(bt.toLowerCase()))}vt[Tt]=v.jsx("span",{className:Ne.clsx(xt&&Cn.IsRowMarked),children:vt[Tt]})}),v.jsx(Ur,{isDisabled:wt,tooltip:_t,...mt,onClick:Tt=>{var Pe;$(Ge),(Pe=mt==null?void 0:mt.onClick)==null||Pe.call(mt,Tt)},className:Ne.clsx(mt==null?void 0:mt.className,Oe&&Cn.IsSelectable,He&&Cn.IsSelected),abaseRef:He?X:void 0,children:v.jsx(w,{defs:e,item:Ge,markedItem:vt,noMarking:b,spanWidths:Le,singleFilterValue:bt,isBodyBodyOverflowed:le,rowHeight:D})},ht)}),v.jsx(vR,{showRows:de,itemsLength:k.length,isRowRendered:C,rowHeight:ge,resources:O})]})]})},vR=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:i,rowHeight:l}=r,u=S.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:u},(f,p)=>v.jsx("div",{className:Ne.clsx(Cn.TRow,"NoSelect"),style:{minHeight:l,maxHeight:l,...i&&{border:"none"}},children:t===0&&p===Math.floor(e/2)&&v.jsx(An,{className:Cn.NoItems,children:n["No Items"]})},p))};function yR(r,e,t,n){const i={...t},l=rr.keys(r).findIndex(m=>m===e)+1,u=Object.entries(r);let f=l-1,p=l;if(n<0){for(;n<0&&!(f<0||p>=u.length);){const[m,T]=[u[f][0],u[f][1]],[k,b]=[u[p][0],u[p][1]],x=T.minWidth??ec,_=b.maxWidth,I=i[m],w=i[k];let C=I-x;_!==void 0&&(C=Math.min(C,_-w));let D=-n;D=Math.min(D,C),I-D<=x&&f--,_!==void 0&&w+D>=_&&p++,i[m]=I-D,i[k]=w+D,n+=D}return i}else if(n>0){for(;n>0&&!(f<0||p>=u.length);){const[m,T]=[u[f][0],u[f][1]],[k,b]=[u[p][0],u[p][1]],x=b.minWidth??ec,_=T.maxWidth,I=i[k],w=i[m];let C=I-x;_!==void 0&&(C=Math.min(C,_-w));let D=n;D=Math.min(D,C),I-D<=x&&p++,_!==void 0&&w+D>=_&&f--,i[k]=I-D,i[m]=w+D,n-=D}return i}return i}const bR=r=>{const{defs:e,item:t,noMarking:n,spanWidths:i,singleFilterValue:l,isBodyBodyOverflowed:u,rowHeight:f}=r;return v.jsx("div",{className:Ne.clsx(Cn.TRow),style:{minHeight:f,maxHeight:f},children:rr.map(e,([p],m)=>{const T=i[p];if(T===void 0)return null;const k=m===rr.keys(e).length-1,b=e[p],x=Ir.getContent(b.content,{defKey:p,def:b,item:t}),_={width:T.width,minWidth:T.minWidth,maxWidth:T.maxWidth,flexGrow:T.flexGrow,justifyContent:Ir.getContent(b.align,{defKey:p,def:b,item:t})??"flex-start",...Ir.getContent(b.style,{defKey:p,def:b,item:t})};let I=!1;if(l&&!n){const w=Ir.getContent(b.asText,{defKey:p,def:b,item:t});w!==void 0?I=w.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof x)&&x!==void 0&&x!==null&&(I=x.toString().toLowerCase().includes(l.toLowerCase()))}return v.jsxs(S.Fragment,{children:[v.jsx("div",{style:_,className:Ne.clsx(Cn.TD,"Label1",I&&Cn.IsMarked),children:v.jsx(wa,{className:Cn.Content,children:x})}),!u&&k&&v.jsx(bn,{className:Cn.OverflowSpace,w:"var(--Scrollbar-width)",h:f,style:{color:_.color,backgroundColor:_.backgroundColor}})]},p)})})},_R="_ATableFooter_w090q_1",xR="_Button_w090q_10",SR="_IsSelected_w090q_26",CR="_IsDisabled_w090q_31",Os={ATableFooter:_R,Button:xR,IsSelected:SR,IsDisabled:CR},wR=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:i}=r,l=S.useMemo(()=>e[e.length-1],[e]);return v.jsxs(An,{className:Os.ATableFooter,children:[v.jsx(Br,{icon:"FirstPage",className:Ne.clsx(Os.Button,i.page===1&&Os.IsDisabled),onClick:n.moveFirst}),v.jsx(Br,{icon:"NavigateBefore",className:Ne.clsx(Os.Button,i.page===1&&Os.IsDisabled),onClick:n.movePrev}),t.map(u=>v.jsx("div",{className:Ne.clsx(Os.Button,"NoSelect",i.page===u&&Os.IsSelected),onClick:()=>n.move(u),children:u},u)),v.jsx(Br,{icon:"NavigateNext",className:Ne.clsx(Os.Button,i.page===l&&Os.IsDisabled),onClick:n.moveNext}),v.jsx(Br,{icon:"LastPage",className:Ne.clsx(Os.Button,i.page===l&&Os.IsDisabled),onClick:n.moveLast})]})},AR="_Filter_1b9j0_1",TR="_SelectFilter_1b9j0_11",ER="_MainFilter_1b9j0_15",kR="_IsOpen_1b9j0_26",RR="_SubFilters_1b9j0_30",IR="_Input_1b9j0_44",LR="_Main_1b9j0_15",DR="_Sub_1b9j0_30",MR="_Actions_1b9j0_62",OR="_Icon_1b9j0_67",PR="_LeftIcon_1b9j0_74",NR="_CircleAlertOutline_1b9j0_79",FR="_Rotate_1b9j0_87",jR="_rotate_1b9j0_1",Tr={Filter:AR,SelectFilter:TR,MainFilter:ER,IsOpen:kR,SubFilters:RR,Input:IR,Main:LR,Sub:DR,Actions:MR,Icon:OR,LeftIcon:PR,CircleAlertOutline:NR,Rotate:FR,rotate:jR},BR=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:i,isRowRendered:l,isFilterSort:u,filterType:f,resources:p,placeholder:m}=r,[T,k]=S.useState([]),[b,x]=S.useMemo(()=>t,[t]),_=S.useMemo(()=>f==="Select",[f]),I=S.useMemo(()=>rr.keys(b).map(pe=>String(pe)),[b]),[w,C]=S.useState(_&&I.length>0?I[0]:null),D=S.useCallback((pe,ke,ze)=>{if(!x)return;const Ze={...b};pe.value=ke,x(Ze),k(et=>et.map((xe,Se)=>Se===(ze?ze+1:0)?"":xe))},[b,x]),O=S.useMemo(()=>{let pe=[],ke=rr.keys(b);_&&w&&(ke=ke.filter(ze=>ze===w));for(const ze of ke)pe.push({key:ze,def:e[ze],filter:b[ze]});return pe},[b,e,_,w]),F=S.useMemo(()=>O.length>0?O[0]:null,[O]),j=S.useMemo(()=>T.length>0?T[0]:"",[T]),$=S.useMemo(()=>O.length>1?O.slice(1):[],[O]),Z=S.useMemo(()=>T.length>1?T.slice(1):[],[T]),ie=S.useMemo(()=>$.length>0,[$]),[Y,se]=S.useState(!1),[q,J]=S.useState(!1),X=S.useRef(null),ne=S.useCallback(()=>se(!1),[]),ge=S.useRef(null),me=S.useCallback(()=>{J(!1),se(!0),ge.current&&(document.removeEventListener("mousedown",ge.current),ge.current=null)},[]),ve=S.useCallback(()=>{const pe=ke=>{const ze=document.getElementById("root"),Ze=ke.target,et=X.current;!ze||!et||!Ze||!et.contains(Ze)&&ze.contains(Ze)&&me()};return ge.current=pe,pe},[me]),de=S.useCallback(()=>{se(!0),J(!0),setTimeout(()=>{const pe=ve();document.addEventListener("mousedown",pe)},0)},[ve]),De=S.useMemo(()=>q?me:de,[q,de,me]),ue=S.useCallback(()=>{const pe=O.map((ke,ze)=>ke.filter.type==="String"&&ke.filter.validation?ke.filter.validation(ke.filter.value||""):ke.filter.type==="Date"&&ke.filter.validation||ke.filter.type==="DateRange"&&ke.filter.validation?ke.filter.validation(ke.filter.value):T[ze]);return k(pe),pe.every(ke=>!ke)},[T,O]),le=S.useCallback(pe=>{pe.key==="Enter"?(ue()&&i.apply(),pe.stopPropagation()):pe.key==="Escape"&&(J(!1),pe.currentTarget.focus(),pe.currentTarget.blur(),pe.stopPropagation())},[ue,J,i]),fe=S.useMemo(()=>({open:de,close:me,toggle:De,validate:ue}),[de,me,De,ue]),Me=S.useCallback(()=>{i.clear()},[i]),Ve=S.useCallback(pe=>{if(!x||!pe)return;C(pe);const ke={...b};rr.keys(ke).forEach(ze=>{if(ze!==pe&&ke[ze])switch(ke[ze].type){case"String":ke[ze].value="";break;case"Select":ke[ze].value=null;break;case"Date":ke[ze].value=void 0;break;case"DateRange":ke[ze].value=void 0;break}}),k([]),x(ke),i.clear(),setTimeout(()=>{var Ze;const ze=(Ze=X.current)==null?void 0:Ze.querySelector("input");ze&&ze.focus()},0)},[b,x,k,i]);return F?v.jsxs(v.Fragment,{children:[_&&v.jsx(sc,{className:Ne.clsx(Tr.SelectFilter),options:I,isAutoWidth:!0,useSelect:[w,Ve],type:"Secondary",OptionRenderer:({option:pe})=>{const ke=e[pe];let ze;if(ke!=null&&ke.hContent){const Ze={defKey:pe,def:ke};ze=typeof ke.hContent=="function"?ke.hContent(Ze):ke.hContent}else{const Ze=b[pe],et=(ke==null?void 0:ke.name)||(Ze==null?void 0:Ze.placeholder)||String(pe);ze=v.jsx("span",{children:et})}return ze}}),v.jsxs("div",{className:Ne.clsx(Tr.Filter),ref:X,onKeyDown:le,onClick:pe=>{pe.preventDefault(),pe.stopPropagation()},style:{minWidth:l?u?180:void 0:180,maxWidth:l?u?300:void 0:300},tabIndex:-1,children:[v.jsx(qR,{filterSet:F,hasToggleFilteration:n,onChange:D,filterF:i,hasSubFilters:ie,popupF:fe,isOpen:q,resources:p,errorMessage:j,hasSelectFilterType:_,placeholder:m}),!_&&v.jsx(HR,{subFilterSets:$,onChange:D,onClearClick:Me,isOpen:q,isTransitioning:Y,onTransitionEnd:ne,resources:p,errorMessages:Z,placeholder:m,filterF:i,validate:ue})]})]}):null},qR=r=>{var b,x,_,I;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:i,filterF:l,hasSubFilters:u,popupF:f,isOpen:p,resources:m,errorMessage:T,placeholder:k}=r;if(e.filter.type==="String"){const w=[e.filter.value??"",F=>i(e.filter,F)],C=k??e.filter.placeholder??((b=e.def)==null?void 0:b.name),D=e.filter.icon,O=e.filter.iconTooltip??C;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:D??"Type",tooltip:O,isOpen:p}),v.jsx(oc,{className:Ne.clsx(Tr.Input,Tr.Main),useValue:w,placeholder:C??m["Search(Placeholder)"],wrapProps:{style:{width:"100%",boxSizing:"border-box"}},LeftAddon:t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),RightAddon:v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,errorMessage:T,hasSelectFilterType:n,filterF:l}),autoFocus:e.filter.autoFocus,maxLength:e.filter.maxLength,type:T?"Error":"Primary"})]})}else if(e.filter.type==="Select"){const w=[e.filter.value??null,F=>{i(e.filter,F),n&&setTimeout(()=>{f.validate()&&l.apply()},0)}],C=k??e.filter.placeholder??((x=e.def)==null?void 0:x.name),D=e.filter.icon,O=e.filter.iconTooltip??C;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:D??"Menu",tooltip:O,isOpen:p}),v.jsx(sc,{className:Ne.clsx(Tr.Input,Tr.Main),options:e.filter.options,useSelect:w,placeholder:C,OptionRenderer:e.filter.OptionRenderer,SelectedRenderer:({OptionRenderer:F,selectedOption:j})=>j===null?C||e.filter.placeholder:v.jsxs(v.Fragment,{children:[t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),v.jsx(F,{option:j}),v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,hideSearchButton:!0,hasSelectFilterType:n,filterF:l})]})})]})}else if(e.filter.type==="Date"){const w=[e.filter.value,F=>i(e.filter,F)],C=k??e.filter.placeholder??((_=e.def)==null?void 0:_.name),D=e.filter.icon,O=e.filter.iconTooltip??C;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:D??"CalendarDay",tooltip:O,isOpen:p}),v.jsx(Sm,{type:"Raw",className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Main),useDate:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:C,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),!t&&v.jsx(bn,{w:p?0:6}),v.jsx(_a,{icon:D??"CalendarDay",tooltip:O,isOpen:!p}),v.jsx(bn,{w:p?8:0})]}),RightAddon:v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,hasSelectFilterType:n,filterF:l})})]})}else if(e.filter.type==="DateRange"){const w=[e.filter.value,j=>i(e.filter,j)],{noDefaultChoices:C}=e.filter,D=k??e.filter.placeholder??((I=e.def)==null?void 0:I.name),O=e.filter.icon,F=e.filter.iconTooltip??D;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:O??"CalendarDay",tooltip:F,isOpen:p}),v.jsx(_m,{type:"Raw",className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Main),useDateRange:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:D,noDefaultChoices:C,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),!t&&v.jsx(bn,{w:p?0:6}),v.jsx(_a,{icon:O??"CalendarDay",tooltip:F,isOpen:!p}),v.jsx(bn,{w:p?8:0})]}),RightAddon:v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,hasSelectFilterType:n,filterF:l})})]})}return null},Od=r=>{const{filterF:e,popupF:t,resources:n,isOpen:i}=r;return v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"Convert",tooltip:n["Toggle Filter"],onMouseDown:l=>l.currentTarget.classList.remove(Tr.Rotate),style:{width:i?0:24,marginLeft:i?0:8},onClick:l=>{l.currentTarget.classList.add(Tr.Rotate),e.toggle(),t.close(),l.stopPropagation()}})},Pd=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:i,errorMessage:l,hideSearchButton:u,hasSelectFilterType:f,filterF:p}=r,m=S.useCallback(b=>{b.stopPropagation(),t.open()},[t]),T=S.useCallback(b=>{b.stopPropagation(),t.close()},[t]),k=S.useCallback(b=>{b.stopPropagation(),t.validate()&&p.apply()},[t,p]);return v.jsxs(S.Fragment,{children:[l&&v.jsx(pi,{type:"Raw",className:Tr.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:l}),e&&!f&&v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"ListAdd",onClick:m,style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0}}),e&&!f&&v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"ListRemove",onClick:T,style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"}}),!u&&v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"Search",tooltip:i["Search(Button)"],onClick:k,style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4}})]})},HR=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:i,isTransitioning:l,onTransitionEnd:u,resources:f,errorMessages:p,placeholder:m,filterF:T,validate:k}=r;return!i&&!l?null:v.jsxs("div",{className:Tr.SubFilters,onTransitionEnd:u,style:{opacity:+i,visibility:+i?"visible":"hidden"},children:[e.map((b,x)=>{var _,I,w,C;if(b.filter.type==="String"){const D=[b.filter.value??"",Z=>t(b.filter,Z,x)],O=p[x],F=m??b.filter.placeholder??((_=b.def)==null?void 0:_.name),j=b.filter.icon,$=b.filter.iconTooltip??F;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:$,icon:j??"Type"}),v.jsx(oc,{className:Ne.clsx(Tr.Input,Tr.Sub),wrapProps:{style:{width:"100%"}},useValue:D,placeholder:F??f["Search(Placeholder)"],type:O?"Error":"Secondary",RightAddon:O&&v.jsx(pi,{type:"Raw",className:Tr.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:O}),autoFocus:b.filter.autoFocus,maxLength:b.filter.maxLength}),v.jsx(bn,{h:8})]},x)}else if(b.filter.type==="Select"){const D=[b.filter.value??null,$=>t(b.filter,$)],O=m??b.filter.placeholder??((I=b.def)==null?void 0:I.name),F=b.filter.icon,j=b.filter.iconTooltip??O;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:j,icon:F??"Menu"}),v.jsx(sc,{className:Ne.clsx(Tr.Input,Tr.Sub),options:b.filter.options,placeholder:O,OptionRenderer:b.filter.OptionRenderer,useSelect:D,arrowProps:{style:{marginRight:4}},type:"Secondary"}),v.jsx(bn,{h:8})]},x)}else if(b.filter.type==="Date"){const D=[b.filter.value,$=>t(b.filter,$)],O=m??b.filter.placeholder??((w=b.def)==null?void 0:w.name),F=b.filter.icon,j=b.filter.iconTooltip??O;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:j,icon:F??"CalendarDay"}),v.jsx(Sm,{type:"Raw",LeftAddon:v.jsx(bn,{w:12}),placeholder:O,className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Sub),useDate:D,minDate:b.filter.minDate,maxDate:b.filter.maxDate}),v.jsx(bn,{h:8})]},x)}else if(b.filter.type==="DateRange"){const D=[b.filter.value,Z=>t(b.filter,Z)],{noDefaultChoices:O}=b.filter,F=m??b.filter.placeholder??((C=b.def)==null?void 0:C.name),j=b.filter.icon,$=b.filter.iconTooltip??F;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:$,icon:j??"CalendarDay"}),v.jsx(_m,{type:"Raw",LeftAddon:v.jsx(bn,{w:12}),className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Sub),useDateRange:D,placeholder:F,minDate:b.filter.minDate,maxDate:b.filter.maxDate,noDefaultChoices:O})]},x)}else return null}),v.jsxs(An,{className:Tr.Actions,children:[v.jsx(ji,{type:"Secondary",onClick:n,children:f["Clear(Button)"]}),v.jsx(ji,{onClick:()=>{k()&&T.apply()},children:f["Search(Button)"]})]})]})},_a=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return v.jsx(pi,{type:"Raw",className:Tr.LeftIcon,tooltip:t,icon:e,style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},zR="_ATableHeader_1hzfz_1",$R="_LeftHeaderContent_1hzfz_11",UR="_RightHeaderContent_1hzfz_19",WR="_TopRightAddon_1hzfz_27",VR="_HItem_1hzfz_32",Kc={ATableHeader:zR,LeftHeaderContent:$R,RightHeaderContent:UR,TopRightAddon:WR,HItem:VR},GR=r=>{const{defs:e,title:t,totalCount:n,useCheck:i,useFilteration:l,hasToggleFilteration:u,filterF:f,noFilter:p,noCount:m,isFiltered:T,TopLeftAddon:k,TopRightAddon:b,useSortation:x,resources:_=sn.ATable,filterType:I,placeholder:w}=r,[C]=S.useMemo(()=>i||[],[i]),D=S.useMemo(()=>T?_["Searched n items"](n):_["Total n items"](n),[_,T,n]),[O]=l,[F,j]=x,[$,Z]=S.useState(!1),ie=S.useMemo(()=>{const ve=rr.values(O).filter(ue=>ue.type==="DateRange"),de=rr.keys(O).filter(ue=>ve.includes(O[ue])),De=rr.keys(e).filter(ue=>e[ue].isSortable);return de.length>0?(de.length>1&&Z(!0),De.map(le=>de.includes(le)?[le+"_Asc",le+"_Desc"]:le).flat()):De},[e,O]),Y=S.useMemo(()=>r.isRowRendered&&ie.length>0,[ie.length,r.isRowRendered]),se=S.useCallback((ve,de)=>{j&&(F==null?void 0:F.defKey)===ve&&(F.isAsc===!0?j({defKey:ve,isAsc:!1,sortF:de}):j({defKey:ve,isAsc:!0,sortF:de}))},[F,j]),q=S.useRef(),[J,X]=S.useState(),[ne,ge]=S.useState(F?F.defKey:ie[0]),me=S.useMemo(()=>{if(!J)return{};const ve=e[J];return{SortUp:{onClick:()=>{j==null||j({defKey:J,isAsc:!0,sortF:ve.sortF}),ge(J)},content:()=>_["Sort up"]},SortDown:{onClick:()=>{j==null||j({defKey:J,isAsc:!1,sortF:ve.sortF}),ge(J)},content:()=>_["Sort down"]}}},[j,J,e,_]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Ne.clsx(Kc.ATableHeader),children:[v.jsxs("div",{className:Ne.clsx(Kc.LeftHeaderContent,"NoSelect"),children:[v.jsxs(An,{style:{marginBottom:Y?8:0},children:[k&&v.jsx("div",{className:Ne.clsx(Kc.HItem),children:k}),t&&v.jsx("div",{className:Ne.clsx(Kc.HItem),style:{whiteSpace:"nowrap"},children:t}),!m&&v.jsxs("div",{className:Ne.clsx(Kc.HItem),style:{maxHeight:14,...Y&&{minHeight:14,color:"var(--label-neutral)"}},children:[D,C&&C.length>0&&v.jsxs(v.Fragment,{children:[" / ",_["Checked n items"](C.length)]})]})]}),Y&&v.jsx(Q2,{type:"Tertiary",options:ie,useSelect:[ne,()=>{}],optionWidth:"fit-content",tabProps:{style:{marginRight:8}},optionProps:{style:{cursor:"default"},onClick:ve=>{var ue;const de=ve.currentTarget.textContent;if(de===_[de])return;ve.currentTarget.querySelector("svg")===null&&((ue=q.current)==null||ue.open(ve.currentTarget))}},OptionRenderer:ve=>{const de=/_Asc|_Desc/.test(ve.option),De=(F==null?void 0:F.defKey)===ve.option,ue=ne===ve.option,le=F==null?void 0:F.isAsc,fe=()=>{if(de){X(void 0),ge(ve.option);const[pe,ke]=ve.option.split("_"),ze=ke==="Asc";j==null||j({defKey:pe,isAsc:ze,sortF:e[pe].sortF})}else ue?se(ve.option,e[ve.option].sortF):X(ve.option)},Ve=de?(pe=>{const[ke,ze]=pe.split("_");return($?ke+" ":"")+_[ze]})(ve.option):_["Sort by x"](ve.option);return v.jsxs(An,{style:{height:"100%"},className:Ne.clsx(!(de&&ue)&&"IsClickable"),onClick:fe,children:[Ve,ue&&!de&&v.jsx(Br,{style:{marginRight:-5,marginLeft:4},icon:De?le?"RowSortUp":"RowSortDown":"RowSortBoth"})]},ve.option)}})]}),v.jsx(nu,{}),v.jsxs("div",{className:Ne.clsx(Kc.RightHeaderContent,"NoSelect"),children:[!p&&v.jsx(BR,{defs:e,useFilteration:l,hasToggleFilteration:u,filterF:f,isRowRendered:r.isRowRendered,isFilterSort:ie.length>0,resources:_,filterType:I,placeholder:w}),b&&v.jsx(An,{className:Ne.clsx(Kc.TopRightAddon),children:b})]})]}),v.jsx(Y2,{defs:me,actionRef:q,onClose:()=>X(void 0),width:100,position:sf.S})]})},ZR=r=>{const{defs:e,pk:t,defaultDef:n,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,useCheck:p,checkDisabled:m,isLoading:T,isDisabled:k,title:b,entireItems:x,onStateChange:_,pagedItems:I,totalCount:w,useFilteration:C,useToggleFilteration:D,filterType:O="Default",placeholder:F,rowHeight:j=40,usePagination:$,useSortation:Z,showRows:ie,noHeader:Y,noDefHeader:se,noFooter:q,noFilter:J,noCount:X,noMarking:ne,noStateChangeOnMount:ge,TopLeftAddon:me,TopRightAddon:ve,actionRef:de,RowRenderer:De,resources:ue}=r,le=S.useMemo(()=>({...sn.ATable,...ue}),[ue]),fe=S.useCallback((Re,nt)=>t!==void 0?Array.isArray(t)?t.every(at=>ol.isEqual(Re[at],nt[at])):ol.isEqual(Re[t],nt[t]):ol.isEqual(Re,nt),[t]),Me=S.useMemo(()=>({content:KR,...n}),[n]),Ve=S.useMemo(()=>{const Re={};return rr.keys(e).forEach(nt=>{const at=e[nt],Et={...Me,...at};Re[nt]=Et}),Re},[Me,e]),[pe,ke]=dn(ol.cloneDeep(C),{"":{type:"String",placeholder:le["Search(Placeholder)"],value:""}}),[ze,Ze]=dn(ol.cloneDeep(D),void 0),[et,xe]=S.useState(!1),[Se,be]=S.useMemo(()=>et&&ze?[ze,Ze]:[pe,ke],[pe,et,ke,Ze,ze]),[Le,$e]=S.useState(Se),bt=S.useMemo(()=>x?nl.applyFilteration(x,Ve,Le):[],[x,Ve,Le]),Ge=S.useMemo(()=>{for(const Re in Le){const nt=Le[Re];if(nt.value!==void 0&&nt.value!==null&&nt.value!=="")return!0}return!1},[Le]),[ht,mt]=dn(Z,void 0),Oe=S.useMemo(()=>nl.applySortation(bt,Ve,ht),[bt,Ve,ht]),He=S.useMemo(()=>{if(I!==void 0)return nl.applySortation(I,Ve,ht)},[I,Ve,ht]),[wt,_t]=dn($,{page:1,pageSize:50,pageRange:10}),vt=S.useMemo(()=>({pageSize:50,page:1,pageRange:10,...wt}),[wt]),{pagedItems:Tt,totalCount:Pe,pagination:Ke}=S.useMemo(()=>{const Re={...vt};if(He!==void 0){let nt=w??He.length;const at=nl.getPages(nt,Re.pageSize);return Re.page>at.length?Re.page=at.length:Re.page<1&&(Re.page=1),{pagedItems:He,totalCount:nt,pagination:Re}}else if(x!==void 0){const nt=w??Oe.length,at=nl.getPages(nt,Re.pageSize);return Re.page>at.length?Re.page=at.length:Re.page<1&&(Re.page=1),{pagedItems:nl.applyPagination(Oe,Re.page,Re.pageSize),totalCount:nt,pagination:Re}}else return{pagedItems:[],totalCount:w??0,pagination:vt}},[x,He,w,vt,Oe]),{pages:xt,rangedPages:jt}=S.useMemo(()=>nl.getRangedPages(Ke.page,Pe,Ke.pageSize,Ke.pageRange),[Pe,Ke.pageSize,Ke.page,Ke.pageRange]),[At,Be]=S.useMemo(()=>p??[],[p]),Lt=S.useMemo(()=>Tt.filter(Re=>At==null?void 0:At.some(nt=>fe(nt,Re))),[Tt,At,fe]),Dt=S.useMemo(()=>Tt.filter(Re=>!(m!=null&&m(Re))),[Tt,m]),dr=S.useMemo(()=>Dt.length>0&&Dt.every(Re=>Lt.some(nt=>fe(nt,Re))),[Lt,Dt,fe]),Er=S.useMemo(()=>dr?!1:Dt.some(Re=>Lt.some(nt=>fe(nt,Re))),[Lt,Dt,dr,fe]),Mr=S.useCallback(()=>{!At||!Be||k||Be(dr||Er?At.filter(Re=>!Dt.some(nt=>fe(nt,Re))):[...At,...Dt])},[At,Be,dr,Er,Dt,k,fe]),_e=S.useCallback(Re=>{!At||!Be||k||(At.some(nt=>fe(nt,Re))?Be(At.filter(nt=>!fe(nt,Re))):Be([...At,Re]))},[At,Be,k,fe]);S.useEffect(()=>{if(!Be||!At||!m)return;At.filter(nt=>m(nt)).length>0&&Be(At.filter(nt=>!m(nt)))},[m,At,Be]);const te=S.useMemo(()=>({hContent:At&&v.jsx(Qu,{useCheck:[dr,Mr],isIndeterminate:Er}),content:Re=>{const{item:nt}=Re,at=m==null?void 0:m(nt),Et=typeof at=="string"?at:void 0,lt=At==null?void 0:At.some(zt=>fe(zt,nt));return v.jsx(Qu,{style:{zIndex:1},isDisabled:at,tooltip:Et,onClick:zt=>zt.stopPropagation(),useCheck:[lt,()=>_e(nt)]})},minWidth:32,maxWidth:32}),[At,dr,Er,fe,Mr,m,_e]),tt=S.useMemo(()=>p?{checkDef:te,...Ve}:Ve,[Ve,te,p]),[ut,qt]=S.useState(!1),kt=S.useMemo(()=>T??ut,[T,ut]),Mt=S.useCallback(async Re=>{_&&(qt(!0),await _(Re),qt(!1)),_t==null||_t(Re.pagination),mt==null||mt(Re.sortation),$e(Re.filteration)},[_,_t,mt]);S.useEffect(()=>{if(!de)return;const Re=at=>{const Et={entireItems:x,filteration:Se,pagination:Ke,sortation:ht},lt=at?at(Et):Et;Mt(lt)},nt=at=>{const Et={...Ke,page:1},lt=at?at(Se):Se;Mt({entireItems:x,filteration:lt,pagination:Et,sortation:ht}),be==null||be(lt)};de.current={fireOnStateChange:Re,applyFilteration:nt}},[de,Mt,x,be,Se,Ke,ht]);const tr=S.useCallback(Re=>{Re.page===Ke.page&&Re.pageSize===Ke.pageSize||(Re.page<1?Re.page=1:Re.page>xt[xt.length-1]&&(Re.page=xt[xt.length-1]),Mt({entireItems:x,filteration:Le,pagination:Re,sortation:ht}))},[Ke,xt,Mt,x,Le,ht]),Xe=S.useCallback(Re=>{be&&be(Re)},[be]),rt=S.useCallback(Re=>{Mt({entireItems:x,filteration:Le,pagination:Ke,sortation:Re})},[Mt,x,Le,Ke]),Rt=S.useCallback(Re=>{tr({...Ke,page:Re})},[tr,Ke]),Ht=S.useCallback(()=>{Rt(Ke.page-1)},[Rt,Ke.page]),Ot=S.useCallback(()=>{Rt(Ke.page+1)},[Rt,Ke.page]),Xt=S.useCallback(()=>{Rt(1)},[Rt]),Or=S.useCallback(()=>{Rt(xt[xt.length-1])},[Rt,xt]),st=S.useMemo(()=>({move:Rt,movePrev:Ht,moveNext:Ot,moveFirst:Xt,moveLast:Or}),[Rt,Ht,Ot,Xt,Or]),St=S.useCallback(()=>{const Re={...Ke,page:1};Mt({entireItems:x,filteration:Se,pagination:Re,sortation:ht})},[Se,Ke,Mt,x,ht]),pt=S.useCallback(()=>{xe(!et)},[et]),Bt=S.useCallback(()=>{et&&ze?Ze==null||Ze(p0(ze)):be==null||be(p0(pe))},[et,ze,Ze,pe,be]),gr=S.useMemo(()=>({apply:St,toggle:pt,clear:Bt}),[St,pt,Bt]);ex(()=>{ge||Mt({entireItems:x,filteration:Se,pagination:Ke,sortation:ht})});const re=S.useMemo(()=>rr.map(Ve,([nt])=>Ve[nt].minWidth??ec).reduce((nt,at)=>nt+at,0),[Ve]),Ue=S.useMemo(()=>De!==void 0,[De]);return v.jsxs(Ur,{className:Yk.ATable,isDisabled:k,style:{minWidth:re},children:[!Y&&v.jsx(GR,{defs:Ve,title:b,totalCount:Pe,useCheck:p&&At?[At,Be]:void 0,useFilteration:[Se,Xe],useSortation:[ht,rt],isRowRendered:Ue,hasToggleFilteration:ze!==void 0,filterF:gr,noFilter:J,noCount:X,isFiltered:Ge,TopLeftAddon:me,TopRightAddon:ve,resources:le,filterType:O,placeholder:F}),v.jsx(mR,{defs:tt,isEqual:fe,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,isTableDisabled:k,appliedFilteration:Le,useSortation:[ht,rt],pagination:Ke,pagedItems:Tt,showRows:ie,isLoading:kt,noMarking:ne,noDefHeader:se,resources:le,RowRenderer:De,isRowRendered:Ue,rowHeight:j}),!q&&v.jsx(wR,{pages:xt,rangedPages:jt,pageF:st,pagination:Ke})]})},KR=r=>{const{defKey:e,item:t}=r;if(rr.hasKey(t,e)){const n=t[e];return rr.isReactNode(n)?n:null}else return null};function p0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const YR="_AText_1asz6_1",XR={AText:YR},ix=r=>{const{text:e,styled:t,style:n}=r,i=S.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?v.jsx("b",{children:e}):v.jsx("span",{style:n,children:e});if(typeof t=="string"){const l=e.split(t);return n==="bold"?l.map((u,f)=>v.jsxs(S.Fragment,{children:[Nd(u),f<l.length-1?v.jsx("b",{children:Nd(t)}):""]},f)):l.map((u,f)=>v.jsxs(S.Fragment,{children:[Nd(u),f<l.length-1&&v.jsx("span",{style:n,children:Nd(t)})]},f))}}else return e;else return e;else return""},[e,n,t]);return v.jsx("div",{className:Ne.clsx("Body1Reading",XR.AText,"NoSelect"),children:i})};function Nd(r){const e=r.split(`
162
- `);return e.map((t,n)=>v.jsxs(S.Fragment,{children:[t,n!==e.length-1&&v.jsx("br",{})]},n))}const JR="_Base_sw5fu_7",QR="_ATextArea_sw5fu_11",e9="_Primary_sw5fu_34",t9="_UnAvailable_sw5fu_39",r9="_Secondary_sw5fu_47",n9="_ReadOnly_sw5fu_59",Fd={Base:JR,ATextArea:QR,Primary:e9,UnAvailable:t9,Secondary:r9,ReadOnly:n9,Error:"_Error_sw5fu_66"},i9=["Primary","Secondary","ReadOnly","Error"],o9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:i,useValue:l,rows:u,isReadonly:f,placeholder:p,maxLength:m,tabIndex:T,autoFocus:k,textAreaProps:b,wrapProps:x,helperText:_,label:I,wrapType:w,labelProps:C,...D}=r,O=S.useMemo(()=>s9(t)?"Error":n,[t,n]),F=S.useMemo(()=>O==="ReadOnly"?!0:f,[O,f]),j=S.useMemo(()=>D.isDisabled||D.isLoading,[D.isDisabled,D.isLoading]),[$,Z]=dn(l,""),ie=S.useCallback(q=>{Z&&Z(q)},[Z]),Y=S.useCallback(q=>{var J;j||(ie(q.target.value),(J=b==null?void 0:b.onChange)==null||J.call(b,q))},[j,ie,b]),se=S.useCallback(q=>{var J;if(!j){if((J=b==null?void 0:b.onKeyDown)==null||J.call(b,q),q.key==="Tab"){const X=q.currentTarget.selectionStart,ne=q.currentTarget.selectionEnd;q.currentTarget.value=q.currentTarget.value.substring(0,X)+" "+q.currentTarget.value.substring(ne),q.currentTarget.selectionStart=q.currentTarget.selectionEnd=X+1,q.preventDefault()}else q.key==="Enter"&&(e==null||e(q.currentTarget.value),q.stopPropagation());q.key!=="Escape"&&q.stopPropagation()}},[j,e,b]);return v.jsx(ic,{wrapProps:x,label:I,helperText:_,errorMessage:t,labelProps:C,wrapType:w??O==="Error"?"Error":"Default",children:v.jsx(Ur,{...D,className:Ne.clsx(Fd.Base,D.className),children:v.jsx("textarea",{...b,className:Ne.clsx(Fd.ATextArea,Fd[O],j&&Fd.UnAvailable,b==null?void 0:b.className),value:$,rows:u,readOnly:F,onChange:Y,onKeyDown:se,placeholder:p,maxLength:m,tabIndex:D.isDisabled||D.isLoading?-1:T,autoFocus:k,ref:i})})})};function s9(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}var ox=typeof global=="object"&&global&&global.Object===Object&&global,a9=typeof self=="object"&&self&&self.Object===Object&&self,Ea=ox||a9||Function("return this")(),ac=Ea.Symbol,sx=Object.prototype,l9=sx.hasOwnProperty,c9=sx.toString,Nf=ac?ac.toStringTag:void 0;function u9(r){var e=l9.call(r,Nf),t=r[Nf];try{r[Nf]=void 0;var n=!0}catch{}var i=c9.call(r);return n&&(e?r[Nf]=t:delete r[Nf]),i}var f9=Object.prototype,d9=f9.toString;function h9(r){return d9.call(r)}var p9="[object Null]",g9="[object Undefined]",g0=ac?ac.toStringTag:void 0;function af(r){return r==null?r===void 0?g9:p9:g0&&g0 in Object(r)?u9(r):h9(r)}function sl(r){return r!=null&&typeof r=="object"}var eu=Array.isArray;function lc(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function ax(r){return r}var m9="[object AsyncFunction]",v9="[object Function]",y9="[object GeneratorFunction]",b9="[object Proxy]";function wm(r){if(!lc(r))return!1;var e=af(r);return e==v9||e==y9||e==m9||e==b9}var ip=Ea["__core-js_shared__"],m0=function(){var r=/[^.]+$/.exec(ip&&ip.keys&&ip.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function _9(r){return!!m0&&m0 in r}var x9=Function.prototype,S9=x9.toString;function iu(r){if(r!=null){try{return S9.call(r)}catch{}try{return r+""}catch{}}return""}var C9=/[\\^$.*+?()[\]{}|]/g,w9=/^\[object .+?Constructor\]$/,A9=Function.prototype,T9=Object.prototype,E9=A9.toString,k9=T9.hasOwnProperty,R9=RegExp("^"+E9.call(k9).replace(C9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function I9(r){if(!lc(r)||_9(r))return!1;var e=wm(r)?R9:w9;return e.test(iu(r))}function L9(r,e){return r==null?void 0:r[e]}function ou(r,e){var t=L9(r,e);return I9(t)?t:void 0}var W1=ou(Ea,"WeakMap"),v0=Object.create,D9=function(){function r(){}return function(e){if(!lc(e))return{};if(v0)return v0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function M9(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 lx(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var O9=800,P9=16,N9=Date.now;function F9(r){var e=0,t=0;return function(){var n=N9(),i=P9-(n-t);if(t=n,i>0){if(++e>=O9)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function j9(r){return function(){return r}}var ih=function(){try{var r=ou(Object,"defineProperty");return r({},"",{}),r}catch{}}(),B9=ih?function(r,e){return ih(r,"toString",{configurable:!0,enumerable:!1,value:j9(e),writable:!0})}:ax,q9=F9(B9);function H9(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var z9=9007199254740991,$9=/^(?:0|[1-9]\d*)$/;function cx(r,e){var t=typeof r;return e=e??z9,!!e&&(t=="number"||t!="symbol"&&$9.test(r))&&r>-1&&r%1==0&&r<e}function Am(r,e,t){e=="__proto__"&&ih?ih(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function ld(r,e){return r===e||r!==r&&e!==e}var U9=Object.prototype,W9=U9.hasOwnProperty;function ux(r,e,t){var n=r[e];(!(W9.call(r,e)&&ld(n,t))||t===void 0&&!(e in r))&&Am(r,e,t)}function cd(r,e,t,n){var i=!t;t||(t={});for(var l=-1,u=e.length;++l<u;){var f=e[l],p=void 0;p===void 0&&(p=r[f]),i?Am(t,f,p):ux(t,f,p)}return t}var y0=Math.max;function V9(r,e,t){return e=y0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,l=y0(n.length-e,0),u=Array(l);++i<l;)u[i]=n[e+i];i=-1;for(var f=Array(e+1);++i<e;)f[i]=n[i];return f[e]=t(u),M9(r,this,f)}}function G9(r,e){return q9(V9(r,e,ax),r+"")}var Z9=9007199254740991;function fx(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Z9}function ph(r){return r!=null&&fx(r.length)&&!wm(r)}function K9(r,e,t){if(!lc(t))return!1;var n=typeof e;return(n=="number"?ph(t)&&cx(e,t.length):n=="string"&&e in t)?ld(t[e],r):!1}function Y9(r){return G9(function(e,t){var n=-1,i=t.length,l=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(l=r.length>3&&typeof l=="function"?(i--,l):void 0,u&&K9(t[0],t[1],u)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var f=t[n];f&&r(e,f,n,l)}return e})}var X9=Object.prototype;function Tm(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||X9;return r===t}function J9(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var Q9="[object Arguments]";function b0(r){return sl(r)&&af(r)==Q9}var dx=Object.prototype,e7=dx.hasOwnProperty,t7=dx.propertyIsEnumerable,V1=b0(function(){return arguments}())?b0:function(r){return sl(r)&&e7.call(r,"callee")&&!t7.call(r,"callee")};function r7(){return!1}var hx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_0=hx&&typeof module=="object"&&module&&!module.nodeType&&module,n7=_0&&_0.exports===hx,x0=n7?Ea.Buffer:void 0,i7=x0?x0.isBuffer:void 0,td=i7||r7,o7="[object Arguments]",s7="[object Array]",a7="[object Boolean]",l7="[object Date]",c7="[object Error]",u7="[object Function]",f7="[object Map]",d7="[object Number]",h7="[object Object]",p7="[object RegExp]",g7="[object Set]",m7="[object String]",v7="[object WeakMap]",y7="[object ArrayBuffer]",b7="[object DataView]",_7="[object Float32Array]",x7="[object Float64Array]",S7="[object Int8Array]",C7="[object Int16Array]",w7="[object Int32Array]",A7="[object Uint8Array]",T7="[object Uint8ClampedArray]",E7="[object Uint16Array]",k7="[object Uint32Array]",wn={};wn[_7]=wn[x7]=wn[S7]=wn[C7]=wn[w7]=wn[A7]=wn[T7]=wn[E7]=wn[k7]=!0;wn[o7]=wn[s7]=wn[y7]=wn[a7]=wn[b7]=wn[l7]=wn[c7]=wn[u7]=wn[f7]=wn[d7]=wn[h7]=wn[p7]=wn[g7]=wn[m7]=wn[v7]=!1;function R7(r){return sl(r)&&fx(r.length)&&!!wn[af(r)]}function Em(r){return function(e){return r(e)}}var px=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gf=px&&typeof module=="object"&&module&&!module.nodeType&&module,I7=Gf&&Gf.exports===px,op=I7&&ox.process,ef=function(){try{var r=Gf&&Gf.require&&Gf.require("util").types;return r||op&&op.binding&&op.binding("util")}catch{}}(),S0=ef&&ef.isTypedArray,km=S0?Em(S0):R7,L7=Object.prototype,D7=L7.hasOwnProperty;function gx(r,e){var t=eu(r),n=!t&&V1(r),i=!t&&!n&&td(r),l=!t&&!n&&!i&&km(r),u=t||n||i||l,f=u?J9(r.length,String):[],p=f.length;for(var m in r)(e||D7.call(r,m))&&!(u&&(m=="length"||i&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||cx(m,p)))&&f.push(m);return f}function mx(r,e){return function(t){return r(e(t))}}var M7=mx(Object.keys,Object),O7=Object.prototype,P7=O7.hasOwnProperty;function N7(r){if(!Tm(r))return M7(r);var e=[];for(var t in Object(r))P7.call(r,t)&&t!="constructor"&&e.push(t);return e}function Rm(r){return ph(r)?gx(r):N7(r)}function F7(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var j7=Object.prototype,B7=j7.hasOwnProperty;function q7(r){if(!lc(r))return F7(r);var e=Tm(r),t=[];for(var n in r)n=="constructor"&&(e||!B7.call(r,n))||t.push(n);return t}function ud(r){return ph(r)?gx(r,!0):q7(r)}var rd=ou(Object,"create");function H7(){this.__data__=rd?rd(null):{},this.size=0}function z7(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var $7="__lodash_hash_undefined__",U7=Object.prototype,W7=U7.hasOwnProperty;function V7(r){var e=this.__data__;if(rd){var t=e[r];return t===$7?void 0:t}return W7.call(e,r)?e[r]:void 0}var G7=Object.prototype,Z7=G7.hasOwnProperty;function K7(r){var e=this.__data__;return rd?e[r]!==void 0:Z7.call(e,r)}var Y7="__lodash_hash_undefined__";function X7(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=rd&&e===void 0?Y7:e,this}function tu(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])}}tu.prototype.clear=H7;tu.prototype.delete=z7;tu.prototype.get=V7;tu.prototype.has=K7;tu.prototype.set=X7;function J7(){this.__data__=[],this.size=0}function gh(r,e){for(var t=r.length;t--;)if(ld(r[t][0],e))return t;return-1}var Q7=Array.prototype,eI=Q7.splice;function tI(r){var e=this.__data__,t=gh(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():eI.call(e,t,1),--this.size,!0}function rI(r){var e=this.__data__,t=gh(e,r);return t<0?void 0:e[t][1]}function nI(r){return gh(this.__data__,r)>-1}function iI(r,e){var t=this.__data__,n=gh(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=J7;ul.prototype.delete=tI;ul.prototype.get=rI;ul.prototype.has=nI;ul.prototype.set=iI;var nd=ou(Ea,"Map");function oI(){this.size=0,this.__data__={hash:new tu,map:new(nd||ul),string:new tu}}function sI(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function mh(r,e){var t=r.__data__;return sI(e)?t[typeof e=="string"?"string":"hash"]:t.map}function aI(r){var e=mh(this,r).delete(r);return this.size-=e?1:0,e}function lI(r){return mh(this,r).get(r)}function cI(r){return mh(this,r).has(r)}function uI(r,e){var t=mh(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function su(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])}}su.prototype.clear=oI;su.prototype.delete=aI;su.prototype.get=lI;su.prototype.has=cI;su.prototype.set=uI;function vx(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var Im=mx(Object.getPrototypeOf,Object),fI="[object Object]",dI=Function.prototype,hI=Object.prototype,yx=dI.toString,pI=hI.hasOwnProperty,gI=yx.call(Object);function mI(r){if(!sl(r)||af(r)!=fI)return!1;var e=Im(r);if(e===null)return!0;var t=pI.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&yx.call(t)==gI}function vI(){this.__data__=new ul,this.size=0}function yI(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function bI(r){return this.__data__.get(r)}function _I(r){return this.__data__.has(r)}var xI=200;function SI(r,e){var t=this.__data__;if(t instanceof ul){var n=t.__data__;if(!nd||n.length<xI-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new su(n)}return t.set(r,e),this.size=t.size,this}function Sa(r){var e=this.__data__=new ul(r);this.size=e.size}Sa.prototype.clear=vI;Sa.prototype.delete=yI;Sa.prototype.get=bI;Sa.prototype.has=_I;Sa.prototype.set=SI;function CI(r,e){return r&&cd(e,Rm(e),r)}function wI(r,e){return r&&cd(e,ud(e),r)}var bx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C0=bx&&typeof module=="object"&&module&&!module.nodeType&&module,AI=C0&&C0.exports===bx,w0=AI?Ea.Buffer:void 0,A0=w0?w0.allocUnsafe:void 0;function _x(r,e){if(e)return r.slice();var t=r.length,n=A0?A0(t):new r.constructor(t);return r.copy(n),n}function TI(r,e){for(var t=-1,n=r==null?0:r.length,i=0,l=[];++t<n;){var u=r[t];e(u,t,r)&&(l[i++]=u)}return l}function xx(){return[]}var EI=Object.prototype,kI=EI.propertyIsEnumerable,T0=Object.getOwnPropertySymbols,Lm=T0?function(r){return r==null?[]:(r=Object(r),TI(T0(r),function(e){return kI.call(r,e)}))}:xx;function RI(r,e){return cd(r,Lm(r),e)}var II=Object.getOwnPropertySymbols,Sx=II?function(r){for(var e=[];r;)vx(e,Lm(r)),r=Im(r);return e}:xx;function LI(r,e){return cd(r,Sx(r),e)}function Cx(r,e,t){var n=e(r);return eu(r)?n:vx(n,t(r))}function G1(r){return Cx(r,Rm,Lm)}function DI(r){return Cx(r,ud,Sx)}var Z1=ou(Ea,"DataView"),K1=ou(Ea,"Promise"),Y1=ou(Ea,"Set"),E0="[object Map]",MI="[object Object]",k0="[object Promise]",R0="[object Set]",I0="[object WeakMap]",L0="[object DataView]",OI=iu(Z1),PI=iu(nd),NI=iu(K1),FI=iu(Y1),jI=iu(W1),Bs=af;(Z1&&Bs(new Z1(new ArrayBuffer(1)))!=L0||nd&&Bs(new nd)!=E0||K1&&Bs(K1.resolve())!=k0||Y1&&Bs(new Y1)!=R0||W1&&Bs(new W1)!=I0)&&(Bs=function(r){var e=af(r),t=e==MI?r.constructor:void 0,n=t?iu(t):"";if(n)switch(n){case OI:return L0;case PI:return E0;case NI:return k0;case FI:return R0;case jI:return I0}return e});var BI=Object.prototype,qI=BI.hasOwnProperty;function HI(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&qI.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var oh=Ea.Uint8Array;function Dm(r){var e=new r.constructor(r.byteLength);return new oh(e).set(new oh(r)),e}function zI(r,e){var t=e?Dm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var $I=/\w*$/;function UI(r){var e=new r.constructor(r.source,$I.exec(r));return e.lastIndex=r.lastIndex,e}var D0=ac?ac.prototype:void 0,M0=D0?D0.valueOf:void 0;function WI(r){return M0?Object(M0.call(r)):{}}function wx(r,e){var t=e?Dm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var VI="[object Boolean]",GI="[object Date]",ZI="[object Map]",KI="[object Number]",YI="[object RegExp]",XI="[object Set]",JI="[object String]",QI="[object Symbol]",eL="[object ArrayBuffer]",tL="[object DataView]",rL="[object Float32Array]",nL="[object Float64Array]",iL="[object Int8Array]",oL="[object Int16Array]",sL="[object Int32Array]",aL="[object Uint8Array]",lL="[object Uint8ClampedArray]",cL="[object Uint16Array]",uL="[object Uint32Array]";function fL(r,e,t){var n=r.constructor;switch(e){case eL:return Dm(r);case VI:case GI:return new n(+r);case tL:return zI(r,t);case rL:case nL:case iL:case oL:case sL:case aL:case lL:case cL:case uL:return wx(r,t);case ZI:return new n;case KI:case JI:return new n(r);case YI:return UI(r);case XI:return new n;case QI:return WI(r)}}function Ax(r){return typeof r.constructor=="function"&&!Tm(r)?D9(Im(r)):{}}var dL="[object Map]";function hL(r){return sl(r)&&Bs(r)==dL}var O0=ef&&ef.isMap,pL=O0?Em(O0):hL,gL="[object Set]";function mL(r){return sl(r)&&Bs(r)==gL}var P0=ef&&ef.isSet,vL=P0?Em(P0):mL,yL=1,bL=2,_L=4,Tx="[object Arguments]",xL="[object Array]",SL="[object Boolean]",CL="[object Date]",wL="[object Error]",Ex="[object Function]",AL="[object GeneratorFunction]",TL="[object Map]",EL="[object Number]",kx="[object Object]",kL="[object RegExp]",RL="[object Set]",IL="[object String]",LL="[object Symbol]",DL="[object WeakMap]",ML="[object ArrayBuffer]",OL="[object DataView]",PL="[object Float32Array]",NL="[object Float64Array]",FL="[object Int8Array]",jL="[object Int16Array]",BL="[object Int32Array]",qL="[object Uint8Array]",HL="[object Uint8ClampedArray]",zL="[object Uint16Array]",$L="[object Uint32Array]",yn={};yn[Tx]=yn[xL]=yn[ML]=yn[OL]=yn[SL]=yn[CL]=yn[PL]=yn[NL]=yn[FL]=yn[jL]=yn[BL]=yn[TL]=yn[EL]=yn[kx]=yn[kL]=yn[RL]=yn[IL]=yn[LL]=yn[qL]=yn[HL]=yn[zL]=yn[$L]=!0;yn[wL]=yn[Ex]=yn[DL]=!1;function Kd(r,e,t,n,i,l){var u,f=e&yL,p=e&bL,m=e&_L;if(u!==void 0)return u;if(!lc(r))return r;var T=eu(r);if(T){if(u=HI(r),!f)return lx(r,u)}else{var k=Bs(r),b=k==Ex||k==AL;if(td(r))return _x(r,f);if(k==kx||k==Tx||b&&!i){if(u=p||b?{}:Ax(r),!f)return p?LI(r,wI(u,r)):RI(r,CI(u,r))}else{if(!yn[k])return i?r:{};u=fL(r,k,f)}}l||(l=new Sa);var x=l.get(r);if(x)return x;l.set(r,u),vL(r)?r.forEach(function(w){u.add(Kd(w,e,t,w,r,l))}):pL(r)&&r.forEach(function(w,C){u.set(C,Kd(w,e,t,C,r,l))});var _=m?p?DI:G1:p?ud:Rm,I=T?void 0:_(r);return H9(I||r,function(w,C){I&&(C=w,w=r[C]),ux(u,C,Kd(w,e,t,C,r,l))}),u}var UL=1,WL=4;function Ku(r){return Kd(r,UL|WL)}var VL="__lodash_hash_undefined__";function GL(r){return this.__data__.set(r,VL),this}function ZL(r){return this.__data__.has(r)}function sh(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new su;++e<t;)this.add(r[e])}sh.prototype.add=sh.prototype.push=GL;sh.prototype.has=ZL;function KL(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 YL(r,e){return r.has(e)}var XL=1,JL=2;function Rx(r,e,t,n,i,l){var u=t&XL,f=r.length,p=e.length;if(f!=p&&!(u&&p>f))return!1;var m=l.get(r),T=l.get(e);if(m&&T)return m==e&&T==r;var k=-1,b=!0,x=t&JL?new sh:void 0;for(l.set(r,e),l.set(e,r);++k<f;){var _=r[k],I=e[k];if(n)var w=u?n(I,_,k,e,r,l):n(_,I,k,r,e,l);if(w!==void 0){if(w)continue;b=!1;break}if(x){if(!KL(e,function(C,D){if(!YL(x,D)&&(_===C||i(_,C,t,n,l)))return x.push(D)})){b=!1;break}}else if(!(_===I||i(_,I,t,n,l))){b=!1;break}}return l.delete(r),l.delete(e),b}function QL(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function eD(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var tD=1,rD=2,nD="[object Boolean]",iD="[object Date]",oD="[object Error]",sD="[object Map]",aD="[object Number]",lD="[object RegExp]",cD="[object Set]",uD="[object String]",fD="[object Symbol]",dD="[object ArrayBuffer]",hD="[object DataView]",N0=ac?ac.prototype:void 0,sp=N0?N0.valueOf:void 0;function pD(r,e,t,n,i,l,u){switch(t){case hD:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case dD:return!(r.byteLength!=e.byteLength||!l(new oh(r),new oh(e)));case nD:case iD:case aD:return ld(+r,+e);case oD:return r.name==e.name&&r.message==e.message;case lD:case uD:return r==e+"";case sD:var f=QL;case cD:var p=n&tD;if(f||(f=eD),r.size!=e.size&&!p)return!1;var m=u.get(r);if(m)return m==e;n|=rD,u.set(r,e);var T=Rx(f(r),f(e),n,i,l,u);return u.delete(r),T;case fD:if(sp)return sp.call(r)==sp.call(e)}return!1}var gD=1,mD=Object.prototype,vD=mD.hasOwnProperty;function yD(r,e,t,n,i,l){var u=t&gD,f=G1(r),p=f.length,m=G1(e),T=m.length;if(p!=T&&!u)return!1;for(var k=p;k--;){var b=f[k];if(!(u?b in e:vD.call(e,b)))return!1}var x=l.get(r),_=l.get(e);if(x&&_)return x==e&&_==r;var I=!0;l.set(r,e),l.set(e,r);for(var w=u;++k<p;){b=f[k];var C=r[b],D=e[b];if(n)var O=u?n(D,C,b,e,r,l):n(C,D,b,r,e,l);if(!(O===void 0?C===D||i(C,D,t,n,l):O)){I=!1;break}w||(w=b=="constructor")}if(I&&!w){var F=r.constructor,j=e.constructor;F!=j&&"constructor"in r&&"constructor"in e&&!(typeof F=="function"&&F instanceof F&&typeof j=="function"&&j instanceof j)&&(I=!1)}return l.delete(r),l.delete(e),I}var bD=1,F0="[object Arguments]",j0="[object Array]",jd="[object Object]",_D=Object.prototype,B0=_D.hasOwnProperty;function xD(r,e,t,n,i,l){var u=eu(r),f=eu(e),p=u?j0:Bs(r),m=f?j0:Bs(e);p=p==F0?jd:p,m=m==F0?jd:m;var T=p==jd,k=m==jd,b=p==m;if(b&&td(r)){if(!td(e))return!1;u=!0,T=!1}if(b&&!T)return l||(l=new Sa),u||km(r)?Rx(r,e,t,n,i,l):pD(r,e,p,t,n,i,l);if(!(t&bD)){var x=T&&B0.call(r,"__wrapped__"),_=k&&B0.call(e,"__wrapped__");if(x||_){var I=x?r.value():r,w=_?e.value():e;return l||(l=new Sa),i(I,w,t,n,l)}}return b?(l||(l=new Sa),yD(r,e,t,n,i,l)):!1}function Ix(r,e,t,n,i){return r===e?!0:r==null||e==null||!sl(r)&&!sl(e)?r!==r&&e!==e:xD(r,e,t,n,Ix,i)}function SD(r){return function(e,t,n){for(var i=-1,l=Object(e),u=n(e),f=u.length;f--;){var p=u[++i];if(t(l[p],p,l)===!1)break}return e}}var CD=SD();function X1(r,e,t){(t!==void 0&&!ld(r[e],t)||t===void 0&&!(e in r))&&Am(r,e,t)}function wD(r){return sl(r)&&ph(r)}function J1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function AD(r){return cd(r,ud(r))}function TD(r,e,t,n,i,l,u){var f=J1(r,t),p=J1(e,t),m=u.get(p);if(m){X1(r,t,m);return}var T=l?l(f,p,t+"",r,e,u):void 0,k=T===void 0;if(k){var b=eu(p),x=!b&&td(p),_=!b&&!x&&km(p);T=p,b||x||_?eu(f)?T=f:wD(f)?T=lx(f):x?(k=!1,T=_x(p,!0)):_?(k=!1,T=wx(p,!0)):T=[]:mI(p)||V1(p)?(T=f,V1(f)?T=AD(f):(!lc(f)||wm(f))&&(T=Ax(p))):k=!1}k&&(u.set(p,T),i(T,p,n,l,u),u.delete(p)),X1(r,t,T)}function Lx(r,e,t,n,i){r!==e&&CD(e,function(l,u){if(i||(i=new Sa),lc(l))TD(r,e,u,t,Lx,n,i);else{var f=n?n(J1(r,u),l,u+"",r,e,i):void 0;f===void 0&&(f=l),X1(r,u,f)}},ud)}function Mm(r,e){return Ix(r,e)}var nc=Y9(function(r,e,t){Lx(r,e,t)}),er=(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))(er||{});class Aa{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const i=er.TYPE&er.ATTRIBUTE;this.scope=n.scope!=null?n.scope&er.LEVEL|i:er.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 Yu extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const Dx=class Q1{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 i=this.query(t);if(i==null)throw new Yu(`Unable to create ${t} blot`);const l=i,u=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(n),f=new l(e,u,n);return Q1.blots.set(f.domNode,f),f}find(e,t=!1){return Q1.find(e,t)}query(e,t=er.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&er.LEVEL&er.BLOCK?n=this.types.block:e&er.LEVEL&er.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&er.LEVEL&n.scope&&t&er.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,i="attrName"in t;if(!n&&!i)throw new Yu("Invalid definition");if(n&&t.blotName==="abstract")throw new Yu("Cannot register abstract class");const l=n?t.blotName:i?t.attrName:void 0;return this.types[l]=t,i?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(u=>u.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(u=>{(this.tags[u]==null||t.className==null)&&(this.tags[u]=t)}))),t})}};Dx.blots=new WeakMap;let tf=Dx;function q0(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class ED extends Aa{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){q0(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(q0(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const Vs=ED;function ap(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class kD extends Aa{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[ap(this.keyName)]=t,!0):!1}remove(e){e.style[ap(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[ap(this.keyName)];return this.canAdd(e,t)?t:""}}const cc=kD;class RD{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=tf.find(this.domNode);if(e==null)return;const t=Aa.keys(this.domNode),n=Vs.keys(this.domNode),i=cc.keys(this.domNode);t.concat(n).concat(i).forEach(l=>{const u=e.scroll.query(l,er.ATTRIBUTE);u instanceof Aa&&(this.attributes[u.attrName]=u)})}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 vh=RD,Mx=class{constructor(e,t){this.scroll=e,this.domNode=t,tf.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Yu("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),tf.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,i){const l=this.isolate(e,t);if(this.scroll.query(n,er.BLOT)!=null&&i)l.wrap(n,i);else if(this.scroll.query(n,er.ATTRIBUTE)!=null){const u=this.scroll.create(this.statics.scope);l.wrap(u),u.format(n,i)}}insertAt(e,t,n){const i=n==null?this.scroll.create("text",t):this.scroll.create(t,n),l=this.split(e);this.parent.insertBefore(i,l||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 Yu(`Cannot wrap ${e}`);return n.appendChild(this),n}};Mx.blotName="abstract";let Ox=Mx;const Px=class extends Ox{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}}};Px.scope=er.INLINE_BLOT;let ID=Px;const $i=ID;class LD{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(),i=0;for(;n;){if(n===e)return i;i+=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 i=n();for(;i;){const l=i.length();if(e<l||t&&e===l&&(i.next==null||i.next.length()!==0))return[i,e];e-=l,i=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[i,l]=this.find(e);let u=e-l;const f=this.iterator(i);let p=f();for(;p&&u<e+t;){const m=p.length();e>u?n(p,e-u,Math.min(t,u+m-e)):n(p,0,Math.min(m,e+t-u)),u+=m,p=f()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let i=n();for(;i;)t=e(t,i),i=n();return t}}function H0(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(er.INLINE);return Array.from(r.childNodes).forEach(i=>{n.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const Nx=class Ql extends Ox{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,Ql.uiClass&&this.uiNode.classList.add(Ql.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new LD,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=H0(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Yu)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,i,l)=>{n.deleteAt(i,l)})}descendant(e,t=0){const[n,i]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Ql?n.descendant(e,i):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let i=[],l=n;return this.children.forEachAt(t,n,(u,f,p)=>{(e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e)&&i.push(u),u instanceof Ql&&(i=i.concat(u.descendants(e,f,l))),l-=p}),i}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===er.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Ql?t.unwrap():t.remove())})}formatAt(e,t,n,i){this.children.forEachAt(e,t,(l,u,f)=>{l.formatAt(u,f,n,i)})}insertAt(e,t,n){const[i,l]=this.children.find(e);if(i)i.insertAt(l,t,n);else{const u=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(u)}}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,i]=this.children.find(e,t),l=[[this,e]];return n instanceof Ql?l.concat(n.path(i,t)):(n!=null&&l.push([n,i]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Ql&&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(),(i,l,u)=>{const f=i.split(l,t);f!=null&&n.appendChild(f)}),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=[],i=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(n.push(...l.addedNodes),i.push(...l.removedNodes))}),i.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const u=this.scroll.find(l);u!=null&&(u.domNode.parentNode==null||u.domNode.parentNode===this.domNode)&&u.detach()}),n.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,u)=>l===u?0:l.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let u=null;l.nextSibling!=null&&(u=this.scroll.find(l.nextSibling));const f=H0(l,this.scroll);(f.next!==u||f.next==null)&&(f.parent!=null&&f.parent.removeChild(this),this.insertBefore(f,u||void 0))}),this.enforceAllowedChildren()}};Nx.uiClass="";let DD=Nx;const $s=DD;function MD(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 qu=class Hu extends $s{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Hu.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 vh(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Hu||(n=n.wrap(Hu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,er.INLINE);if(n==null)return;n instanceof Aa?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,i){this.formats()[n]!=null||this.scroll.query(n,er.ATTRIBUTE)?this.isolate(e,t).format(n,i):super.formatAt(e,t,n,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Hu&&n.prev===this&&MD(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 Hu&&this.attributes.move(n),n}};qu.allowedChildren=[qu,$i],qu.blotName="inline",qu.scope=er.INLINE_BLOT,qu.tagName="SPAN";let OD=qu;const Om=OD,zu=class em extends $s{static create(e){return super.create(e)}static formats(e,t){const n=t.query(em.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 vh(this.domNode)}format(e,t){const n=this.scroll.query(e,er.BLOCK);n!=null&&(n instanceof Aa?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(em.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,i){this.scroll.query(n,er.BLOCK)!=null?this.format(n,i):super.formatAt(e,t,n,i)}insertAt(e,t,n){if(n==null||this.scroll.query(t,er.INLINE)!=null)super.insertAt(e,t,n);else{const i=this.split(e);if(i!=null){const l=this.scroll.create(t,n);i.parent.insertBefore(l,i)}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()}};zu.blotName="block",zu.scope=er.BLOCK_BLOT,zu.tagName="P",zu.allowedChildren=[Om,zu,$i];let PD=zu;const id=PD,tm=class extends $s{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,i){super.formatAt(e,t,n,i),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())}};tm.blotName="container",tm.scope=er.BLOCK_BLOT;let ND=tm;const yh=ND;class FD extends $i{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,i){e===0&&t===this.length()?this.format(n,i):super.formatAt(e,t,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const $o=FD,jD={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},BD=100,$u=class extends $s{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,jD),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=er.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,i){this.update(),super.formatAt(e,t,n,i)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const l=(p,m=!0)=>{p==null||p===this||p.domNode.parentNode!=null&&(n.has(p.domNode)||n.set(p.domNode,[]),m&&l(p.parent))},u=p=>{n.has(p.domNode)&&(p instanceof $s&&p.children.forEach(u),n.delete(p.domNode),p.optimize(t))};let f=e;for(let p=0;f.length>0;p+=1){if(p>=BD)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(m=>{const T=this.find(m.target,!0);T!=null&&(T.domNode===m.target&&(m.type==="childList"?(l(this.find(m.previousSibling,!1)),Array.from(m.addedNodes).forEach(k=>{const b=this.find(k,!1);l(b,!1),b instanceof $s&&b.children.forEach(x=>{l(x,!1)})})):m.type==="attributes"&&l(T.prev)),l(T))}),this.children.forEach(u),f=Array.from(this.observer.takeRecords()),i=f.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(i=>{const l=this.find(i.target,!0);return l==null?null:n.has(l.domNode)?(n.get(l.domNode).push(i),null):(n.set(l.domNode,[i]),l)}).forEach(i=>{i!=null&&i!==this&&n.has(i.domNode)&&i.update(n.get(i.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};$u.blotName="scroll",$u.defaultChild=id,$u.allowedChildren=[id,yh],$u.scope=er.BLOCK_BLOT,$u.tagName="DIV";let qD=$u;const Pm=qD,rm=class Fx extends $i{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 Fx&&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}};rm.blotName="text",rm.scope=er.INLINE_BLOT;let HD=rm;const ah=HD,zD=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Aa,AttributorStore:vh,BlockBlot:id,ClassAttributor:Vs,ContainerBlot:yh,EmbedBlot:$o,InlineBlot:Om,LeafBlot:$i,ParentBlot:$s,Registry:tf,Scope:er,ScrollBlot:Pm,StyleAttributor:cc,TextBlot:ah},Symbol.toStringTag,{value:"Module"}));var Bd={exports:{}},lp,z0;function $D(){if(z0)return lp;z0=1;var r=-1,e=1,t=0;function n(q,J,X,ne,ge){if(q===J)return q?[[t,q]]:[];if(X!=null){var me=Y(q,J,X);if(me)return me}var ve=f(q,J),de=q.substring(0,ve);q=q.substring(ve),J=J.substring(ve),ve=m(q,J);var De=q.substring(q.length-ve);q=q.substring(0,q.length-ve),J=J.substring(0,J.length-ve);var ue=i(q,J);return de&&ue.unshift([t,de]),De&&ue.push([t,De]),D(ue,ge),ne&&k(ue),ue}function i(q,J){var X;if(!q)return[[e,J]];if(!J)return[[r,q]];var ne=q.length>J.length?q:J,ge=q.length>J.length?J:q,me=ne.indexOf(ge);if(me!==-1)return X=[[e,ne.substring(0,me)],[t,ge],[e,ne.substring(me+ge.length)]],q.length>J.length&&(X[0][0]=X[2][0]=r),X;if(ge.length===1)return[[r,q],[e,J]];var ve=T(q,J);if(ve){var de=ve[0],De=ve[1],ue=ve[2],le=ve[3],fe=ve[4],Me=n(de,ue),Ve=n(De,le);return Me.concat([[t,fe]],Ve)}return l(q,J)}function l(q,J){for(var X=q.length,ne=J.length,ge=Math.ceil((X+ne)/2),me=ge,ve=2*ge,de=new Array(ve),De=new Array(ve),ue=0;ue<ve;ue++)de[ue]=-1,De[ue]=-1;de[me+1]=0,De[me+1]=0;for(var le=X-ne,fe=le%2!==0,Me=0,Ve=0,pe=0,ke=0,ze=0;ze<ge;ze++){for(var Ze=-ze+Me;Ze<=ze-Ve;Ze+=2){var et=me+Ze,xe;Ze===-ze||Ze!==ze&&de[et-1]<de[et+1]?xe=de[et+1]:xe=de[et-1]+1;for(var Se=xe-Ze;xe<X&&Se<ne&&q.charAt(xe)===J.charAt(Se);)xe++,Se++;if(de[et]=xe,xe>X)Ve+=2;else if(Se>ne)Me+=2;else if(fe){var be=me+le-Ze;if(be>=0&&be<ve&&De[be]!==-1){var Le=X-De[be];if(xe>=Le)return u(q,J,xe,Se)}}}for(var $e=-ze+pe;$e<=ze-ke;$e+=2){var be=me+$e,Le;$e===-ze||$e!==ze&&De[be-1]<De[be+1]?Le=De[be+1]:Le=De[be-1]+1;for(var bt=Le-$e;Le<X&&bt<ne&&q.charAt(X-Le-1)===J.charAt(ne-bt-1);)Le++,bt++;if(De[be]=Le,Le>X)ke+=2;else if(bt>ne)pe+=2;else if(!fe){var et=me+le-$e;if(et>=0&&et<ve&&de[et]!==-1){var xe=de[et],Se=me+xe-et;if(Le=X-Le,xe>=Le)return u(q,J,xe,Se)}}}}return[[r,q],[e,J]]}function u(q,J,X,ne){var ge=q.substring(0,X),me=J.substring(0,ne),ve=q.substring(X),de=J.substring(ne),De=n(ge,me),ue=n(ve,de);return De.concat(ue)}function f(q,J){if(!q||!J||q.charAt(0)!==J.charAt(0))return 0;for(var X=0,ne=Math.min(q.length,J.length),ge=ne,me=0;X<ge;)q.substring(me,ge)==J.substring(me,ge)?(X=ge,me=X):ne=ge,ge=Math.floor((ne-X)/2+X);return O(q.charCodeAt(ge-1))&&ge--,ge}function p(q,J){var X=q.length,ne=J.length;if(X==0||ne==0)return 0;X>ne?q=q.substring(X-ne):X<ne&&(J=J.substring(0,X));var ge=Math.min(X,ne);if(q==J)return ge;for(var me=0,ve=1;;){var de=q.substring(ge-ve),De=J.indexOf(de);if(De==-1)return me;ve+=De,(De==0||q.substring(ge-ve)==J.substring(0,ve))&&(me=ve,ve++)}}function m(q,J){if(!q||!J||q.slice(-1)!==J.slice(-1))return 0;for(var X=0,ne=Math.min(q.length,J.length),ge=ne,me=0;X<ge;)q.substring(q.length-ge,q.length-me)==J.substring(J.length-ge,J.length-me)?(X=ge,me=X):ne=ge,ge=Math.floor((ne-X)/2+X);return F(q.charCodeAt(q.length-ge))&&ge--,ge}function T(q,J){var X=q.length>J.length?q:J,ne=q.length>J.length?J:q;if(X.length<4||ne.length*2<X.length)return null;function ge(Ve,pe,ke){for(var ze=Ve.substring(ke,ke+Math.floor(Ve.length/4)),Ze=-1,et="",xe,Se,be,Le;(Ze=pe.indexOf(ze,Ze+1))!==-1;){var $e=f(Ve.substring(ke),pe.substring(Ze)),bt=m(Ve.substring(0,ke),pe.substring(0,Ze));et.length<bt+$e&&(et=pe.substring(Ze-bt,Ze)+pe.substring(Ze,Ze+$e),xe=Ve.substring(0,ke-bt),Se=Ve.substring(ke+$e),be=pe.substring(0,Ze-bt),Le=pe.substring(Ze+$e))}return et.length*2>=Ve.length?[xe,Se,be,Le,et]:null}var me=ge(X,ne,Math.ceil(X.length/4)),ve=ge(X,ne,Math.ceil(X.length/2)),de;if(!me&&!ve)return null;ve?me?de=me[4].length>ve[4].length?me:ve:de=ve:de=me;var De,ue,le,fe;q.length>J.length?(De=de[0],ue=de[1],le=de[2],fe=de[3]):(le=de[0],fe=de[1],De=de[2],ue=de[3]);var Me=de[4];return[De,ue,le,fe,Me]}function k(q){for(var J=!1,X=[],ne=0,ge=null,me=0,ve=0,de=0,De=0,ue=0;me<q.length;)q[me][0]==t?(X[ne++]=me,ve=De,de=ue,De=0,ue=0,ge=q[me][1]):(q[me][0]==e?De+=q[me][1].length:ue+=q[me][1].length,ge&&ge.length<=Math.max(ve,de)&&ge.length<=Math.max(De,ue)&&(q.splice(X[ne-1],0,[r,ge]),q[X[ne-1]+1][0]=e,ne--,ne--,me=ne>0?X[ne-1]:-1,ve=0,de=0,De=0,ue=0,ge=null,J=!0)),me++;for(J&&D(q),C(q),me=1;me<q.length;){if(q[me-1][0]==r&&q[me][0]==e){var le=q[me-1][1],fe=q[me][1],Me=p(le,fe),Ve=p(fe,le);Me>=Ve?(Me>=le.length/2||Me>=fe.length/2)&&(q.splice(me,0,[t,fe.substring(0,Me)]),q[me-1][1]=le.substring(0,le.length-Me),q[me+1][1]=fe.substring(Me),me++):(Ve>=le.length/2||Ve>=fe.length/2)&&(q.splice(me,0,[t,le.substring(0,Ve)]),q[me-1][0]=e,q[me-1][1]=fe.substring(0,fe.length-Ve),q[me+1][0]=r,q[me+1][1]=le.substring(Ve),me++),me++}me++}}var b=/[^a-zA-Z0-9]/,x=/\s/,_=/[\r\n]/,I=/\n\r?\n$/,w=/^\r?\n\r?\n/;function C(q){function J(Ve,pe){if(!Ve||!pe)return 6;var ke=Ve.charAt(Ve.length-1),ze=pe.charAt(0),Ze=ke.match(b),et=ze.match(b),xe=Ze&&ke.match(x),Se=et&&ze.match(x),be=xe&&ke.match(_),Le=Se&&ze.match(_),$e=be&&Ve.match(I),bt=Le&&pe.match(w);return $e||bt?5:be||Le?4:Ze&&!xe&&Se?3:xe||Se?2:Ze||et?1:0}for(var X=1;X<q.length-1;){if(q[X-1][0]==t&&q[X+1][0]==t){var ne=q[X-1][1],ge=q[X][1],me=q[X+1][1],ve=m(ne,ge);if(ve){var de=ge.substring(ge.length-ve);ne=ne.substring(0,ne.length-ve),ge=de+ge.substring(0,ge.length-ve),me=de+me}for(var De=ne,ue=ge,le=me,fe=J(ne,ge)+J(ge,me);ge.charAt(0)===me.charAt(0);){ne+=ge.charAt(0),ge=ge.substring(1)+me.charAt(0),me=me.substring(1);var Me=J(ne,ge)+J(ge,me);Me>=fe&&(fe=Me,De=ne,ue=ge,le=me)}q[X-1][1]!=De&&(De?q[X-1][1]=De:(q.splice(X-1,1),X--),q[X][1]=ue,le?q[X+1][1]=le:(q.splice(X+1,1),X--))}X++}}function D(q,J){q.push([t,""]);for(var X=0,ne=0,ge=0,me="",ve="",de;X<q.length;){if(X<q.length-1&&!q[X][1]){q.splice(X,1);continue}switch(q[X][0]){case e:ge++,ve+=q[X][1],X++;break;case r:ne++,me+=q[X][1],X++;break;case t:var De=X-ge-ne-1;if(J){if(De>=0&&$(q[De][1])){var ue=q[De][1].slice(-1);if(q[De][1]=q[De][1].slice(0,-1),me=ue+me,ve=ue+ve,!q[De][1]){q.splice(De,1),X--;var le=De-1;q[le]&&q[le][0]===e&&(ge++,ve=q[le][1]+ve,le--),q[le]&&q[le][0]===r&&(ne++,me=q[le][1]+me,le--),De=le}}if(j(q[X][1])){var ue=q[X][1].charAt(0);q[X][1]=q[X][1].slice(1),me+=ue,ve+=ue}}if(X<q.length-1&&!q[X][1]){q.splice(X,1);break}if(me.length>0||ve.length>0){me.length>0&&ve.length>0&&(de=f(ve,me),de!==0&&(De>=0?q[De][1]+=ve.substring(0,de):(q.splice(0,0,[t,ve.substring(0,de)]),X++),ve=ve.substring(de),me=me.substring(de)),de=m(ve,me),de!==0&&(q[X][1]=ve.substring(ve.length-de)+q[X][1],ve=ve.substring(0,ve.length-de),me=me.substring(0,me.length-de)));var fe=ge+ne;me.length===0&&ve.length===0?(q.splice(X-fe,fe),X=X-fe):me.length===0?(q.splice(X-fe,fe,[e,ve]),X=X-fe+1):ve.length===0?(q.splice(X-fe,fe,[r,me]),X=X-fe+1):(q.splice(X-fe,fe,[r,me],[e,ve]),X=X-fe+2)}X!==0&&q[X-1][0]===t?(q[X-1][1]+=q[X][1],q.splice(X,1)):X++,ge=0,ne=0,me="",ve="";break}}q[q.length-1][1]===""&&q.pop();var Me=!1;for(X=1;X<q.length-1;)q[X-1][0]===t&&q[X+1][0]===t&&(q[X][1].substring(q[X][1].length-q[X-1][1].length)===q[X-1][1]?(q[X][1]=q[X-1][1]+q[X][1].substring(0,q[X][1].length-q[X-1][1].length),q[X+1][1]=q[X-1][1]+q[X+1][1],q.splice(X-1,1),Me=!0):q[X][1].substring(0,q[X+1][1].length)==q[X+1][1]&&(q[X-1][1]+=q[X+1][1],q[X][1]=q[X][1].substring(q[X+1][1].length)+q[X+1][1],q.splice(X+1,1),Me=!0)),X++;Me&&D(q,J)}function O(q){return q>=55296&&q<=56319}function F(q){return q>=56320&&q<=57343}function j(q){return F(q.charCodeAt(0))}function $(q){return O(q.charCodeAt(q.length-1))}function Z(q){for(var J=[],X=0;X<q.length;X++)q[X][1].length>0&&J.push(q[X]);return J}function ie(q,J,X,ne){return $(q)||j(ne)?null:Z([[t,q],[r,J],[e,X],[t,ne]])}function Y(q,J,X){var ne=typeof X=="number"?{index:X,length:0}:X.oldRange,ge=typeof X=="number"?null:X.newRange,me=q.length,ve=J.length;if(ne.length===0&&(ge===null||ge.length===0)){var de=ne.index,De=q.slice(0,de),ue=q.slice(de),le=ge?ge.index:null;e:{var fe=de+ve-me;if(le!==null&&le!==fe||fe<0||fe>ve)break e;var Me=J.slice(0,fe),Ve=J.slice(fe);if(Ve!==ue)break e;var pe=Math.min(de,fe),ke=De.slice(0,pe),ze=Me.slice(0,pe);if(ke!==ze)break e;var Ze=De.slice(pe),et=Me.slice(pe);return ie(ke,Ze,et,ue)}e:{if(le!==null&&le!==de)break e;var xe=de,Me=J.slice(0,xe),Ve=J.slice(xe);if(Me!==De)break e;var Se=Math.min(me-xe,ve-xe),be=ue.slice(ue.length-Se),Le=Ve.slice(Ve.length-Se);if(be!==Le)break e;var Ze=ue.slice(0,ue.length-Se),et=Ve.slice(0,Ve.length-Se);return ie(De,Ze,et,be)}}if(ne.length>0&&ge&&ge.length===0)e:{var ke=q.slice(0,ne.index),be=q.slice(ne.index+ne.length),pe=ke.length,Se=be.length;if(ve<pe+Se)break e;var ze=J.slice(0,pe),Le=J.slice(ve-Se);if(ke!==ze||be!==Le)break e;var Ze=q.slice(pe,me-Se),et=J.slice(pe,ve-Se);return ie(ke,Ze,et,be)}return null}function se(q,J,X,ne){return n(q,J,X,ne,!0)}return se.INSERT=e,se.DELETE=r,se.EQUAL=t,lp=se,lp}var zf={exports:{}};zf.exports;var $0;function jx(){return $0||($0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object Boolean]",p="[object Date]",m="[object Error]",T="[object Function]",k="[object GeneratorFunction]",b="[object Map]",x="[object Number]",_="[object Object]",I="[object Promise]",w="[object RegExp]",C="[object Set]",D="[object String]",O="[object Symbol]",F="[object WeakMap]",j="[object ArrayBuffer]",$="[object DataView]",Z="[object Float32Array]",ie="[object Float64Array]",Y="[object Int8Array]",se="[object Int16Array]",q="[object Int32Array]",J="[object Uint8Array]",X="[object Uint8ClampedArray]",ne="[object Uint16Array]",ge="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,ve=/\w*$/,de=/^\[object .+?Constructor\]$/,De=/^(?:0|[1-9]\d*)$/,ue={};ue[l]=ue[u]=ue[j]=ue[$]=ue[f]=ue[p]=ue[Z]=ue[ie]=ue[Y]=ue[se]=ue[q]=ue[b]=ue[x]=ue[_]=ue[w]=ue[C]=ue[D]=ue[O]=ue[J]=ue[X]=ue[ne]=ue[ge]=!0,ue[m]=ue[T]=ue[F]=!1;var le=typeof xi=="object"&&xi&&xi.Object===Object&&xi,fe=typeof self=="object"&&self&&self.Object===Object&&self,Me=le||fe||Function("return this")(),Ve=e&&!e.nodeType&&e,pe=Ve&&!0&&r&&!r.nodeType&&r,ke=pe&&pe.exports===Ve;function ze(L,G){return L.set(G[0],G[1]),L}function Ze(L,G){return L.add(G),L}function et(L,G){for(var ce=-1,qe=L?L.length:0;++ce<qe&&G(L[ce],ce,L)!==!1;);return L}function xe(L,G){for(var ce=-1,qe=G.length,Jt=L.length;++ce<qe;)L[Jt+ce]=G[ce];return L}function Se(L,G,ce,qe){for(var Jt=-1,Vt=L?L.length:0;++Jt<Vt;)ce=G(ce,L[Jt],Jt,L);return ce}function be(L,G){for(var ce=-1,qe=Array(L);++ce<L;)qe[ce]=G(ce);return qe}function Le(L,G){return L==null?void 0:L[G]}function $e(L){var G=!1;if(L!=null&&typeof L.toString!="function")try{G=!!(L+"")}catch{}return G}function bt(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe,Jt){ce[++G]=[Jt,qe]}),ce}function Ge(L,G){return function(ce){return L(G(ce))}}function ht(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe){ce[++G]=qe}),ce}var mt=Array.prototype,Oe=Function.prototype,He=Object.prototype,wt=Me["__core-js_shared__"],_t=function(){var L=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),vt=Oe.toString,Tt=He.hasOwnProperty,Pe=He.toString,Ke=RegExp("^"+vt.call(Tt).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ke?Me.Buffer:void 0,jt=Me.Symbol,At=Me.Uint8Array,Be=Ge(Object.getPrototypeOf,Object),Lt=Object.create,Dt=He.propertyIsEnumerable,dr=mt.splice,Er=Object.getOwnPropertySymbols,Mr=xt?xt.isBuffer:void 0,_e=Ge(Object.keys,Object),te=Pt(Me,"DataView"),tt=Pt(Me,"Map"),ut=Pt(Me,"Promise"),qt=Pt(Me,"Set"),kt=Pt(Me,"WeakMap"),Mt=Pt(Object,"create"),tr=Qr(te),Xe=Qr(tt),rt=Qr(ut),Rt=Qr(qt),Ht=Qr(kt),Ot=jt?jt.prototype:void 0,Xt=Ot?Ot.valueOf:void 0;function Or(L){var G=-1,ce=L?L.length:0;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function st(){this.__data__=Mt?Mt(null):{}}function St(L){return this.has(L)&&delete this.__data__[L]}function pt(L){var G=this.__data__;if(Mt){var ce=G[L];return ce===n?void 0:ce}return Tt.call(G,L)?G[L]:void 0}function Bt(L){var G=this.__data__;return Mt?G[L]!==void 0:Tt.call(G,L)}function gr(L,G){var ce=this.__data__;return ce[L]=Mt&&G===void 0?n:G,this}Or.prototype.clear=st,Or.prototype.delete=St,Or.prototype.get=pt,Or.prototype.has=Bt,Or.prototype.set=gr;function re(L){var G=-1,ce=L?L.length:0;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function Ue(){this.__data__=[]}function Re(L){var G=this.__data__,ce=Jn(G,L);if(ce<0)return!1;var qe=G.length-1;return ce==qe?G.pop():dr.call(G,ce,1),!0}function nt(L){var G=this.__data__,ce=Jn(G,L);return ce<0?void 0:G[ce][1]}function at(L){return Jn(this.__data__,L)>-1}function Et(L,G){var ce=this.__data__,qe=Jn(ce,L);return qe<0?ce.push([L,G]):ce[qe][1]=G,this}re.prototype.clear=Ue,re.prototype.delete=Re,re.prototype.get=nt,re.prototype.has=at,re.prototype.set=Et;function lt(L){var G=-1,ce=L?L.length:0;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function zt(){this.__data__={hash:new Or,map:new(tt||re),string:new Or}}function ar(L){return ft(this,L).delete(L)}function Zt(L){return ft(this,L).get(L)}function ir(L){return ft(this,L).has(L)}function Sr(L,G){return ft(this,L).set(L,G),this}lt.prototype.clear=zt,lt.prototype.delete=ar,lt.prototype.get=Zt,lt.prototype.has=ir,lt.prototype.set=Sr;function nr(L){this.__data__=new re(L)}function Wr(){this.__data__=new re}function Gr(L){return this.__data__.delete(L)}function mn(L){return this.__data__.get(L)}function Jr(L){return this.__data__.has(L)}function Yn(L,G){var ce=this.__data__;if(ce instanceof re){var qe=ce.__data__;if(!tt||qe.length<t-1)return qe.push([L,G]),this;ce=this.__data__=new lt(qe)}return ce.set(L,G),this}nr.prototype.clear=Wr,nr.prototype.delete=Gr,nr.prototype.get=mn,nr.prototype.has=Jr,nr.prototype.set=Yn;function Rn(L,G){var ce=xo(L)||ei(L)?be(L.length,String):[],qe=ce.length,Jt=!!qe;for(var Vt in L)Tt.call(L,Vt)&&!(Jt&&(Vt=="length"||xn(Vt,qe)))&&ce.push(Vt);return ce}function Xn(L,G,ce){var qe=L[G];(!(Tt.call(L,G)&&zn(qe,ce))||ce===void 0&&!(G in L))&&(L[G]=ce)}function Jn(L,G){for(var ce=L.length;ce--;)if(zn(L[ce][0],G))return ce;return-1}function an(L,G){return L&&Ee(G,Pr(G),L)}function Nn(L,G,ce,qe,Jt,Vt,mr){var xr;if(qe&&(xr=Vt?qe(L,Jt,Vt,mr):qe(L)),xr!==void 0)return xr;if(!ri(L))return L;var hr=xo(L);if(hr){if(xr=_r(L),!G)return Q(L,xr)}else{var wr=$t(L),en=wr==T||wr==k;if(Ln(L))return En(L,G);if(wr==_||wr==l||en&&!Vt){if($e(L))return Vt?L:{};if(xr=Yr(en?{}:L),!G)return we(L,an(xr,L))}else{if(!ue[wr])return Vt?L:{};xr=_n(L,wr,Nn,G)}}mr||(mr=new nr);var Dn=mr.get(L);if(Dn)return Dn;if(mr.set(L,xr),!hr)var Zr=ce?je(L):Pr(L);return et(Zr||L,function(qr,tn){Zr&&(tn=qr,qr=L[tn]),Xn(xr,tn,Nn(qr,G,ce,qe,tn,L,mr))}),xr}function Tn(L){return ri(L)?Lt(L):{}}function gi(L,G,ce){var qe=G(L);return xo(L)?qe:xe(qe,ce(L))}function Ci(L){return Pe.call(L)}function wi(L){if(!ri(L)||Hn(L))return!1;var G=So(L)||$e(L)?Ke:de;return G.test(Qr(L))}function In(L){if(!Ai(L))return _e(L);var G=[];for(var ce in Object(L))Tt.call(L,ce)&&ce!="constructor"&&G.push(ce);return G}function En(L,G){if(G)return L.slice();var ce=new L.constructor(L.length);return L.copy(ce),ce}function hn(L){var G=new L.constructor(L.byteLength);return new At(G).set(new At(L)),G}function Qn(L,G){var ce=G?hn(L.buffer):L.buffer;return new L.constructor(ce,L.byteOffset,L.byteLength)}function ln(L,G,ce){var qe=G?ce(bt(L),!0):bt(L);return Se(qe,ze,new L.constructor)}function vn(L){var G=new L.constructor(L.source,ve.exec(L));return G.lastIndex=L.lastIndex,G}function A(L,G,ce){var qe=G?ce(ht(L),!0):ht(L);return Se(qe,Ze,new L.constructor)}function N(L){return Xt?Object(Xt.call(L)):{}}function V(L,G){var ce=G?hn(L.buffer):L.buffer;return new L.constructor(ce,L.byteOffset,L.length)}function Q(L,G){var ce=-1,qe=L.length;for(G||(G=Array(qe));++ce<qe;)G[ce]=L[ce];return G}function Ee(L,G,ce,qe){ce||(ce={});for(var Jt=-1,Vt=G.length;++Jt<Vt;){var mr=G[Jt],xr=void 0;Xn(ce,mr,xr===void 0?L[mr]:xr)}return ce}function we(L,G){return Ee(L,Ut(L),G)}function je(L){return gi(L,Pr,Ut)}function ft(L,G){var ce=L.__data__;return ci(G)?ce[typeof G=="string"?"string":"hash"]:ce.map}function Pt(L,G){var ce=Le(L,G);return wi(ce)?ce:void 0}var Ut=Er?Ge(Er,Object):Cr,$t=Ci;(te&&$t(new te(new ArrayBuffer(1)))!=$||tt&&$t(new tt)!=b||ut&&$t(ut.resolve())!=I||qt&&$t(new qt)!=C||kt&&$t(new kt)!=F)&&($t=function(L){var G=Pe.call(L),ce=G==_?L.constructor:void 0,qe=ce?Qr(ce):void 0;if(qe)switch(qe){case tr:return $;case Xe:return b;case rt:return I;case Rt:return C;case Ht:return F}return G});function _r(L){var G=L.length,ce=L.constructor(G);return G&&typeof L[0]=="string"&&Tt.call(L,"index")&&(ce.index=L.index,ce.input=L.input),ce}function Yr(L){return typeof L.constructor=="function"&&!Ai(L)?Tn(Be(L)):{}}function _n(L,G,ce,qe){var Jt=L.constructor;switch(G){case j:return hn(L);case f:case p:return new Jt(+L);case $:return Qn(L,qe);case Z:case ie:case Y:case se:case q:case J:case X:case ne:case ge:return V(L,qe);case b:return ln(L,qe,ce);case x:case D:return new Jt(L);case w:return vn(L);case C:return A(L,qe,ce);case O:return N(L)}}function xn(L,G){return G=G??i,!!G&&(typeof L=="number"||De.test(L))&&L>-1&&L%1==0&&L<G}function ci(L){var G=typeof L;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?L!=="__proto__":L===null}function Hn(L){return!!_t&&_t in L}function Ai(L){var G=L&&L.constructor,ce=typeof G=="function"&&G.prototype||He;return L===ce}function Qr(L){if(L!=null){try{return vt.call(L)}catch{}try{return L+""}catch{}}return""}function mi(L){return Nn(L,!0,!0)}function zn(L,G){return L===G||L!==L&&G!==G}function ei(L){return oo(L)&&Tt.call(L,"callee")&&(!Dt.call(L,"callee")||Pe.call(L)==l)}var xo=Array.isArray;function io(L){return L!=null&&ti(L.length)&&!So(L)}function oo(L){return Wi(L)&&io(L)}var Ln=Mr||Lr;function So(L){var G=ri(L)?Pe.call(L):"";return G==T||G==k}function ti(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=i}function ri(L){var G=typeof L;return!!L&&(G=="object"||G=="function")}function Wi(L){return!!L&&typeof L=="object"}function Pr(L){return io(L)?Rn(L):In(L)}function Cr(){return[]}function Lr(){return!1}r.exports=mi}(zf,zf.exports)),zf.exports}var $f={exports:{}};$f.exports;var U0;function Bx(){return U0||(U0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=1,l=2,u=9007199254740991,f="[object Arguments]",p="[object Array]",m="[object AsyncFunction]",T="[object Boolean]",k="[object Date]",b="[object Error]",x="[object Function]",_="[object GeneratorFunction]",I="[object Map]",w="[object Number]",C="[object Null]",D="[object Object]",O="[object Promise]",F="[object Proxy]",j="[object RegExp]",$="[object Set]",Z="[object String]",ie="[object Symbol]",Y="[object Undefined]",se="[object WeakMap]",q="[object ArrayBuffer]",J="[object DataView]",X="[object Float32Array]",ne="[object Float64Array]",ge="[object Int8Array]",me="[object Int16Array]",ve="[object Int32Array]",de="[object Uint8Array]",De="[object Uint8ClampedArray]",ue="[object Uint16Array]",le="[object Uint32Array]",fe=/[\\^$.*+?()[\]{}|]/g,Me=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,pe={};pe[X]=pe[ne]=pe[ge]=pe[me]=pe[ve]=pe[de]=pe[De]=pe[ue]=pe[le]=!0,pe[f]=pe[p]=pe[q]=pe[T]=pe[J]=pe[k]=pe[b]=pe[x]=pe[I]=pe[w]=pe[D]=pe[j]=pe[$]=pe[Z]=pe[se]=!1;var ke=typeof xi=="object"&&xi&&xi.Object===Object&&xi,ze=typeof self=="object"&&self&&self.Object===Object&&self,Ze=ke||ze||Function("return this")(),et=e&&!e.nodeType&&e,xe=et&&!0&&r&&!r.nodeType&&r,Se=xe&&xe.exports===et,be=Se&&ke.process,Le=function(){try{return be&&be.binding&&be.binding("util")}catch{}}(),$e=Le&&Le.isTypedArray;function bt(L,G){for(var ce=-1,qe=L==null?0:L.length,Jt=0,Vt=[];++ce<qe;){var mr=L[ce];G(mr,ce,L)&&(Vt[Jt++]=mr)}return Vt}function Ge(L,G){for(var ce=-1,qe=G.length,Jt=L.length;++ce<qe;)L[Jt+ce]=G[ce];return L}function ht(L,G){for(var ce=-1,qe=L==null?0:L.length;++ce<qe;)if(G(L[ce],ce,L))return!0;return!1}function mt(L,G){for(var ce=-1,qe=Array(L);++ce<L;)qe[ce]=G(ce);return qe}function Oe(L){return function(G){return L(G)}}function He(L,G){return L.has(G)}function wt(L,G){return L==null?void 0:L[G]}function _t(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe,Jt){ce[++G]=[Jt,qe]}),ce}function vt(L,G){return function(ce){return L(G(ce))}}function Tt(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe){ce[++G]=qe}),ce}var Pe=Array.prototype,Ke=Function.prototype,xt=Object.prototype,jt=Ze["__core-js_shared__"],At=Ke.toString,Be=xt.hasOwnProperty,Lt=function(){var L=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),Dt=xt.toString,dr=RegExp("^"+At.call(Be).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Er=Se?Ze.Buffer:void 0,Mr=Ze.Symbol,_e=Ze.Uint8Array,te=xt.propertyIsEnumerable,tt=Pe.splice,ut=Mr?Mr.toStringTag:void 0,qt=Object.getOwnPropertySymbols,kt=Er?Er.isBuffer:void 0,Mt=vt(Object.keys,Object),tr=Ut(Ze,"DataView"),Xe=Ut(Ze,"Map"),rt=Ut(Ze,"Promise"),Rt=Ut(Ze,"Set"),Ht=Ut(Ze,"WeakMap"),Ot=Ut(Object,"create"),Xt=Qr(tr),Or=Qr(Xe),st=Qr(rt),St=Qr(Rt),pt=Qr(Ht),Bt=Mr?Mr.prototype:void 0,gr=Bt?Bt.valueOf:void 0;function re(L){var G=-1,ce=L==null?0:L.length;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function Ue(){this.__data__=Ot?Ot(null):{},this.size=0}function Re(L){var G=this.has(L)&&delete this.__data__[L];return this.size-=G?1:0,G}function nt(L){var G=this.__data__;if(Ot){var ce=G[L];return ce===n?void 0:ce}return Be.call(G,L)?G[L]:void 0}function at(L){var G=this.__data__;return Ot?G[L]!==void 0:Be.call(G,L)}function Et(L,G){var ce=this.__data__;return this.size+=this.has(L)?0:1,ce[L]=Ot&&G===void 0?n:G,this}re.prototype.clear=Ue,re.prototype.delete=Re,re.prototype.get=nt,re.prototype.has=at,re.prototype.set=Et;function lt(L){var G=-1,ce=L==null?0:L.length;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function zt(){this.__data__=[],this.size=0}function ar(L){var G=this.__data__,ce=En(G,L);if(ce<0)return!1;var qe=G.length-1;return ce==qe?G.pop():tt.call(G,ce,1),--this.size,!0}function Zt(L){var G=this.__data__,ce=En(G,L);return ce<0?void 0:G[ce][1]}function ir(L){return En(this.__data__,L)>-1}function Sr(L,G){var ce=this.__data__,qe=En(ce,L);return qe<0?(++this.size,ce.push([L,G])):ce[qe][1]=G,this}lt.prototype.clear=zt,lt.prototype.delete=ar,lt.prototype.get=Zt,lt.prototype.has=ir,lt.prototype.set=Sr;function nr(L){var G=-1,ce=L==null?0:L.length;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function Wr(){this.size=0,this.__data__={hash:new re,map:new(Xe||lt),string:new re}}function Gr(L){var G=Pt(this,L).delete(L);return this.size-=G?1:0,G}function mn(L){return Pt(this,L).get(L)}function Jr(L){return Pt(this,L).has(L)}function Yn(L,G){var ce=Pt(this,L),qe=ce.size;return ce.set(L,G),this.size+=ce.size==qe?0:1,this}nr.prototype.clear=Wr,nr.prototype.delete=Gr,nr.prototype.get=mn,nr.prototype.has=Jr,nr.prototype.set=Yn;function Rn(L){var G=-1,ce=L==null?0:L.length;for(this.__data__=new nr;++G<ce;)this.add(L[G])}function Xn(L){return this.__data__.set(L,n),this}function Jn(L){return this.__data__.has(L)}Rn.prototype.add=Rn.prototype.push=Xn,Rn.prototype.has=Jn;function an(L){var G=this.__data__=new lt(L);this.size=G.size}function Nn(){this.__data__=new lt,this.size=0}function Tn(L){var G=this.__data__,ce=G.delete(L);return this.size=G.size,ce}function gi(L){return this.__data__.get(L)}function Ci(L){return this.__data__.has(L)}function wi(L,G){var ce=this.__data__;if(ce instanceof lt){var qe=ce.__data__;if(!Xe||qe.length<t-1)return qe.push([L,G]),this.size=++ce.size,this;ce=this.__data__=new nr(qe)}return ce.set(L,G),this.size=ce.size,this}an.prototype.clear=Nn,an.prototype.delete=Tn,an.prototype.get=gi,an.prototype.has=Ci,an.prototype.set=wi;function In(L,G){var ce=ei(L),qe=!ce&&zn(L),Jt=!ce&&!qe&&io(L),Vt=!ce&&!qe&&!Jt&&Wi(L),mr=ce||qe||Jt||Vt,xr=mr?mt(L.length,String):[],hr=xr.length;for(var wr in L)Be.call(L,wr)&&!(mr&&(wr=="length"||Jt&&(wr=="offset"||wr=="parent")||Vt&&(wr=="buffer"||wr=="byteLength"||wr=="byteOffset")||_n(wr,hr)))&&xr.push(wr);return xr}function En(L,G){for(var ce=L.length;ce--;)if(mi(L[ce][0],G))return ce;return-1}function hn(L,G,ce){var qe=G(L);return ei(L)?qe:Ge(qe,ce(L))}function Qn(L){return L==null?L===void 0?Y:C:ut&&ut in Object(L)?$t(L):Ai(L)}function ln(L){return ri(L)&&Qn(L)==f}function vn(L,G,ce,qe,Jt){return L===G?!0:L==null||G==null||!ri(L)&&!ri(G)?L!==L&&G!==G:A(L,G,ce,qe,vn,Jt)}function A(L,G,ce,qe,Jt,Vt){var mr=ei(L),xr=ei(G),hr=mr?p:Yr(L),wr=xr?p:Yr(G);hr=hr==f?D:hr,wr=wr==f?D:wr;var en=hr==D,Dn=wr==D,Zr=hr==wr;if(Zr&&io(L)){if(!io(G))return!1;mr=!0,en=!1}if(Zr&&!en)return Vt||(Vt=new an),mr||Wi(L)?Ee(L,G,ce,qe,Jt,Vt):we(L,G,hr,ce,qe,Jt,Vt);if(!(ce&i)){var qr=en&&Be.call(L,"__wrapped__"),tn=Dn&&Be.call(G,"__wrapped__");if(qr||tn){var ui=qr?L.value():L,vi=tn?G.value():G;return Vt||(Vt=new an),Jt(ui,vi,ce,qe,Vt)}}return Zr?(Vt||(Vt=new an),je(L,G,ce,qe,Jt,Vt)):!1}function N(L){if(!ti(L)||ci(L))return!1;var G=Ln(L)?dr:Me;return G.test(Qr(L))}function V(L){return ri(L)&&So(L.length)&&!!pe[Qn(L)]}function Q(L){if(!Hn(L))return Mt(L);var G=[];for(var ce in Object(L))Be.call(L,ce)&&ce!="constructor"&&G.push(ce);return G}function Ee(L,G,ce,qe,Jt,Vt){var mr=ce&i,xr=L.length,hr=G.length;if(xr!=hr&&!(mr&&hr>xr))return!1;var wr=Vt.get(L);if(wr&&Vt.get(G))return wr==G;var en=-1,Dn=!0,Zr=ce&l?new Rn:void 0;for(Vt.set(L,G),Vt.set(G,L);++en<xr;){var qr=L[en],tn=G[en];if(qe)var ui=mr?qe(tn,qr,en,G,L,Vt):qe(qr,tn,en,L,G,Vt);if(ui!==void 0){if(ui)continue;Dn=!1;break}if(Zr){if(!ht(G,function(vi,$n){if(!He(Zr,$n)&&(qr===vi||Jt(qr,vi,ce,qe,Vt)))return Zr.push($n)})){Dn=!1;break}}else if(!(qr===tn||Jt(qr,tn,ce,qe,Vt))){Dn=!1;break}}return Vt.delete(L),Vt.delete(G),Dn}function we(L,G,ce,qe,Jt,Vt,mr){switch(ce){case J:if(L.byteLength!=G.byteLength||L.byteOffset!=G.byteOffset)return!1;L=L.buffer,G=G.buffer;case q:return!(L.byteLength!=G.byteLength||!Vt(new _e(L),new _e(G)));case T:case k:case w:return mi(+L,+G);case b:return L.name==G.name&&L.message==G.message;case j:case Z:return L==G+"";case I:var xr=_t;case $:var hr=qe&i;if(xr||(xr=Tt),L.size!=G.size&&!hr)return!1;var wr=mr.get(L);if(wr)return wr==G;qe|=l,mr.set(L,G);var en=Ee(xr(L),xr(G),qe,Jt,Vt,mr);return mr.delete(L),en;case ie:if(gr)return gr.call(L)==gr.call(G)}return!1}function je(L,G,ce,qe,Jt,Vt){var mr=ce&i,xr=ft(L),hr=xr.length,wr=ft(G),en=wr.length;if(hr!=en&&!mr)return!1;for(var Dn=hr;Dn--;){var Zr=xr[Dn];if(!(mr?Zr in G:Be.call(G,Zr)))return!1}var qr=Vt.get(L);if(qr&&Vt.get(G))return qr==G;var tn=!0;Vt.set(L,G),Vt.set(G,L);for(var ui=mr;++Dn<hr;){Zr=xr[Dn];var vi=L[Zr],$n=G[Zr];if(qe)var Co=mr?qe($n,vi,Zr,G,L,Vt):qe(vi,$n,Zr,L,G,Vt);if(!(Co===void 0?vi===$n||Jt(vi,$n,ce,qe,Vt):Co)){tn=!1;break}ui||(ui=Zr=="constructor")}if(tn&&!ui){var Vi=L.constructor,cn=G.constructor;Vi!=cn&&"constructor"in L&&"constructor"in G&&!(typeof Vi=="function"&&Vi instanceof Vi&&typeof cn=="function"&&cn instanceof cn)&&(tn=!1)}return Vt.delete(L),Vt.delete(G),tn}function ft(L){return hn(L,Pr,_r)}function Pt(L,G){var ce=L.__data__;return xn(G)?ce[typeof G=="string"?"string":"hash"]:ce.map}function Ut(L,G){var ce=wt(L,G);return N(ce)?ce:void 0}function $t(L){var G=Be.call(L,ut),ce=L[ut];try{L[ut]=void 0;var qe=!0}catch{}var Jt=Dt.call(L);return qe&&(G?L[ut]=ce:delete L[ut]),Jt}var _r=qt?function(L){return L==null?[]:(L=Object(L),bt(qt(L),function(G){return te.call(L,G)}))}:Cr,Yr=Qn;(tr&&Yr(new tr(new ArrayBuffer(1)))!=J||Xe&&Yr(new Xe)!=I||rt&&Yr(rt.resolve())!=O||Rt&&Yr(new Rt)!=$||Ht&&Yr(new Ht)!=se)&&(Yr=function(L){var G=Qn(L),ce=G==D?L.constructor:void 0,qe=ce?Qr(ce):"";if(qe)switch(qe){case Xt:return J;case Or:return I;case st:return O;case St:return $;case pt:return se}return G});function _n(L,G){return G=G??u,!!G&&(typeof L=="number"||Ve.test(L))&&L>-1&&L%1==0&&L<G}function xn(L){var G=typeof L;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?L!=="__proto__":L===null}function ci(L){return!!Lt&&Lt in L}function Hn(L){var G=L&&L.constructor,ce=typeof G=="function"&&G.prototype||xt;return L===ce}function Ai(L){return Dt.call(L)}function Qr(L){if(L!=null){try{return At.call(L)}catch{}try{return L+""}catch{}}return""}function mi(L,G){return L===G||L!==L&&G!==G}var zn=ln(function(){return arguments}())?ln:function(L){return ri(L)&&Be.call(L,"callee")&&!te.call(L,"callee")},ei=Array.isArray;function xo(L){return L!=null&&So(L.length)&&!Ln(L)}var io=kt||Lr;function oo(L,G){return vn(L,G)}function Ln(L){if(!ti(L))return!1;var G=Qn(L);return G==x||G==_||G==m||G==F}function So(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=u}function ti(L){var G=typeof L;return L!=null&&(G=="object"||G=="function")}function ri(L){return L!=null&&typeof L=="object"}var Wi=$e?Oe($e):V;function Pr(L){return xo(L)?In(L):Q(L)}function Cr(){return[]}function Lr(){return!1}r.exports=oo}($f,$f.exports)),$f.exports}var qd={},W0;function UD(){if(W0)return qd;W0=1,Object.defineProperty(qd,"__esModule",{value:!0});const r=jx(),e=Bx();var t;return function(n){function i(p={},m={},T=!1){typeof p!="object"&&(p={}),typeof m!="object"&&(m={});let k=r(m);T||(k=Object.keys(k).reduce((b,x)=>(k[x]!=null&&(b[x]=k[x]),b),{}));for(const b in p)p[b]!==void 0&&m[b]===void 0&&(k[b]=p[b]);return Object.keys(k).length>0?k:void 0}n.compose=i;function l(p={},m={}){typeof p!="object"&&(p={}),typeof m!="object"&&(m={});const T=Object.keys(p).concat(Object.keys(m)).reduce((k,b)=>(e(p[b],m[b])||(k[b]=m[b]===void 0?null:m[b]),k),{});return Object.keys(T).length>0?T:void 0}n.diff=l;function u(p={},m={}){p=p||{};const T=Object.keys(m).reduce((k,b)=>(m[b]!==p[b]&&p[b]!==void 0&&(k[b]=m[b]),k),{});return Object.keys(p).reduce((k,b)=>(p[b]!==m[b]&&m[b]===void 0&&(k[b]=null),k),T)}n.invert=u;function f(p,m,T=!1){if(typeof p!="object")return m;if(typeof m!="object")return;if(!T)return m;const k=Object.keys(m).reduce((b,x)=>(p[x]===void 0&&(b[x]=m[x]),b),{});return Object.keys(k).length>0?k:void 0}n.transform=f}(t||(t={})),qd.default=t,qd}var Hd={},V0;function qx(){if(V0)return Hd;V0=1,Object.defineProperty(Hd,"__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={})),Hd.default=r,Hd}var zd={},G0;function WD(){if(G0)return zd;G0=1,Object.defineProperty(zd,"__esModule",{value:!0});const r=qx();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 i=this.ops[this.index];if(i){const l=this.offset,u=r.default.length(i);if(n>=u-l?(n=u-l,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const f={};return i.attributes&&(f.attributes=i.attributes),typeof i.retain=="number"?f.retain=n:typeof i.retain=="object"&&i.retain!==null?f.retain=i.retain:typeof i.insert=="string"?f.insert=i.insert.substr(l,n):f.insert=i.insert,f}}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,i=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=n,this.index=i,[l].concat(u)}}else return[]}}return zd.default=e,zd}var Z0;function VD(){return Z0||(Z0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=$D(),n=jx(),i=Bx(),l=UD();e.AttributeMap=l.default;const u=qx();e.Op=u.default;const f=WD();e.OpIterator=f.default;const p="\0",m=(k,b)=>{if(typeof k!="object"||k===null)throw new Error(`cannot retain a ${typeof k}`);if(typeof b!="object"||b===null)throw new Error(`cannot retain a ${typeof b}`);const x=Object.keys(k)[0];if(!x||x!==Object.keys(b)[0])throw new Error(`embed types not matched: ${x} != ${Object.keys(b)[0]}`);return[x,k[x],b[x]]};class T{constructor(b){Array.isArray(b)?this.ops=b:b!=null&&Array.isArray(b.ops)?this.ops=b.ops:this.ops=[]}static registerEmbed(b,x){this.handlers[b]=x}static unregisterEmbed(b){delete this.handlers[b]}static getHandler(b){const x=this.handlers[b];if(!x)throw new Error(`no handlers for embed type "${b}"`);return x}insert(b,x){const _={};return typeof b=="string"&&b.length===0?this:(_.insert=b,x!=null&&typeof x=="object"&&Object.keys(x).length>0&&(_.attributes=x),this.push(_))}delete(b){return b<=0?this:this.push({delete:b})}retain(b,x){if(typeof b=="number"&&b<=0)return this;const _={retain:b};return x!=null&&typeof x=="object"&&Object.keys(x).length>0&&(_.attributes=x),this.push(_)}push(b){let x=this.ops.length,_=this.ops[x-1];if(b=n(b),typeof _=="object"){if(typeof b.delete=="number"&&typeof _.delete=="number")return this.ops[x-1]={delete:_.delete+b.delete},this;if(typeof _.delete=="number"&&b.insert!=null&&(x-=1,_=this.ops[x-1],typeof _!="object"))return this.ops.unshift(b),this;if(i(b.attributes,_.attributes)){if(typeof b.insert=="string"&&typeof _.insert=="string")return this.ops[x-1]={insert:_.insert+b.insert},typeof b.attributes=="object"&&(this.ops[x-1].attributes=b.attributes),this;if(typeof b.retain=="number"&&typeof _.retain=="number")return this.ops[x-1]={retain:_.retain+b.retain},typeof b.attributes=="object"&&(this.ops[x-1].attributes=b.attributes),this}}return x===this.ops.length?this.ops.push(b):this.ops.splice(x,0,b),this}chop(){const b=this.ops[this.ops.length-1];return b&&typeof b.retain=="number"&&!b.attributes&&this.ops.pop(),this}filter(b){return this.ops.filter(b)}forEach(b){this.ops.forEach(b)}map(b){return this.ops.map(b)}partition(b){const x=[],_=[];return this.forEach(I=>{(b(I)?x:_).push(I)}),[x,_]}reduce(b,x){return this.ops.reduce(b,x)}changeLength(){return this.reduce((b,x)=>x.insert?b+u.default.length(x):x.delete?b-x.delete:b,0)}length(){return this.reduce((b,x)=>b+u.default.length(x),0)}slice(b=0,x=1/0){const _=[],I=new f.default(this.ops);let w=0;for(;w<x&&I.hasNext();){let C;w<b?C=I.next(b-w):(C=I.next(x-w),_.push(C)),w+=u.default.length(C)}return new T(_)}compose(b){const x=new f.default(this.ops),_=new f.default(b.ops),I=[],w=_.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let D=w.retain;for(;x.peekType()==="insert"&&x.peekLength()<=D;)D-=x.peekLength(),I.push(x.next());w.retain-D>0&&_.next(w.retain-D)}const C=new T(I);for(;x.hasNext()||_.hasNext();)if(_.peekType()==="insert")C.push(_.next());else if(x.peekType()==="delete")C.push(x.next());else{const D=Math.min(x.peekLength(),_.peekLength()),O=x.next(D),F=_.next(D);if(F.retain){const j={};if(typeof O.retain=="number")j.retain=typeof F.retain=="number"?D:F.retain;else if(typeof F.retain=="number")O.retain==null?j.insert=O.insert:j.retain=O.retain;else{const Z=O.retain==null?"insert":"retain",[ie,Y,se]=m(O[Z],F.retain),q=T.getHandler(ie);j[Z]={[ie]:q.compose(Y,se,Z==="retain")}}const $=l.default.compose(O.attributes,F.attributes,typeof O.retain=="number");if($&&(j.attributes=$),C.push(j),!_.hasNext()&&i(C.ops[C.ops.length-1],j)){const Z=new T(x.rest());return C.concat(Z).chop()}}else typeof F.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&C.push(F)}return C.chop()}concat(b){const x=new T(this.ops.slice());return b.ops.length>0&&(x.push(b.ops[0]),x.ops=x.ops.concat(b.ops.slice(1))),x}diff(b,x){if(this.ops===b.ops)return new T;const _=[this,b].map(O=>O.map(F=>{if(F.insert!=null)return typeof F.insert=="string"?F.insert:p;const j=O===b?"on":"with";throw new Error("diff() called "+j+" non-document")}).join("")),I=new T,w=t(_[0],_[1],x,!0),C=new f.default(this.ops),D=new f.default(b.ops);return w.forEach(O=>{let F=O[1].length;for(;F>0;){let j=0;switch(O[0]){case t.INSERT:j=Math.min(D.peekLength(),F),I.push(D.next(j));break;case t.DELETE:j=Math.min(F,C.peekLength()),C.next(j),I.delete(j);break;case t.EQUAL:j=Math.min(C.peekLength(),D.peekLength(),F);const $=C.next(j),Z=D.next(j);i($.insert,Z.insert)?I.retain(j,l.default.diff($.attributes,Z.attributes)):I.push(Z).delete(j);break}F-=j}}),I.chop()}eachLine(b,x=`
163
- `){const _=new f.default(this.ops);let I=new T,w=0;for(;_.hasNext();){if(_.peekType()!=="insert")return;const C=_.peek(),D=u.default.length(C)-_.peekLength(),O=typeof C.insert=="string"?C.insert.indexOf(x,D)-D:-1;if(O<0)I.push(_.next());else if(O>0)I.push(_.next(O));else{if(b(I,_.next(1).attributes||{},w)===!1)return;w+=1,I=new T}}I.length()>0&&b(I,{},w)}invert(b){const x=new T;return this.reduce((_,I)=>{if(I.insert)x.delete(u.default.length(I));else{if(typeof I.retain=="number"&&I.attributes==null)return x.retain(I.retain),_+I.retain;if(I.delete||typeof I.retain=="number"){const w=I.delete||I.retain;return b.slice(_,_+w).forEach(D=>{I.delete?x.push(D):I.retain&&I.attributes&&x.retain(u.default.length(D),l.default.invert(I.attributes,D.attributes))}),_+w}else if(typeof I.retain=="object"&&I.retain!==null){const w=b.slice(_,_+1),C=new f.default(w.ops).next(),[D,O,F]=m(I.retain,C.insert),j=T.getHandler(D);return x.retain({[D]:j.invert(O,F)},l.default.invert(I.attributes,C.attributes)),_+1}}return _},0),x.chop()}transform(b,x=!1){if(x=!!x,typeof b=="number")return this.transformPosition(b,x);const _=b,I=new f.default(this.ops),w=new f.default(_.ops),C=new T;for(;I.hasNext()||w.hasNext();)if(I.peekType()==="insert"&&(x||w.peekType()!=="insert"))C.retain(u.default.length(I.next()));else if(w.peekType()==="insert")C.push(w.next());else{const D=Math.min(I.peekLength(),w.peekLength()),O=I.next(D),F=w.next(D);if(O.delete)continue;if(F.delete)C.push(F);else{const j=O.retain,$=F.retain;let Z=typeof $=="object"&&$!==null?$:D;if(typeof j=="object"&&j!==null&&typeof $=="object"&&$!==null){const ie=Object.keys(j)[0];if(ie===Object.keys($)[0]){const Y=T.getHandler(ie);Y&&(Z={[ie]:Y.transform(j[ie],$[ie],x)})}}C.retain(Z,l.default.transform(O.attributes,F.attributes,x))}}return C.chop()}transformPosition(b,x=!1){x=!!x;const _=new f.default(this.ops);let I=0;for(;_.hasNext()&&I<=b;){const w=_.peekLength(),C=_.peekType();if(_.next(),C==="delete"){b-=Math.min(w,b-I);continue}else C==="insert"&&(I<b||!x)&&(b+=w);I+=w}return b}}T.Op=u.default,T.OpIterator=f.default,T.AttributeMap=l.default,T.handlers={},e.default=T,r.exports=T,r.exports.default=T}(Bd,Bd.exports)),Bd.exports}var hs=VD();const Gt=cl(hs);class Gs extends $o{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Gs.blotName="break";Gs.tagName="BR";let Ws=class extends ah{};const GD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function bh(r){return r.replace(/[&<>"']/g,e=>GD[e])}const ba=class ba extends Om{static compare(e,t){const n=ba.order.indexOf(e),i=ba.order.indexOf(t);return n>=0||i>=0?n-i:e===t?0:e<t?-1:1}formatAt(e,t,n,i){if(ba.compare(this.statics.blotName,n)<0&&this.scroll.query(n,er.BLOT)){const l=this.isolate(e,t);i&&l.wrap(n,i)}else super.formatAt(e,t,n,i)}optimize(e){if(super.optimize(e),this.parent instanceof ba&&ba.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};ct(ba,"allowedChildren",[ba,Gs,$o,Ws]),ct(ba,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Ta=ba;const K0=1;class Bi extends id{constructor(){super(...arguments);ct(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Hx(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,i,l){n<=0||(this.scroll.query(i,er.BLOCK)?t+n===this.length()&&this.format(i,l):super.formatAt(t,Math.min(n,this.length()-t-1),i,l),this.cache={})}insertAt(t,n,i){if(i!=null){super.insertAt(t,n,i),this.cache={};return}if(n.length===0)return;const l=n.split(`
160
+ `+Pe:""}`)}He.length>0&&$([...j||[],...He])}},[$,De,m,p,N,j,_]),Ze=S.useCallback(()=>{var Oe;return(Oe=ge.current)==null?void 0:Oe.click()},[]),et=S.useCallback(Oe=>{const He=Oe.target.files;He!=null&&He.length&&(ze(He),pe())},[ze,pe]),xe=S.useCallback(Oe=>{if(k==null||k(Oe),!$||!j)return;const He=ve(Oe),wt=j.filter(_t=>ve(_t)!==He);$(wt),pe()},[k,$,j,pe,ve]),Se=S.useCallback(()=>{$&&($([]),pe())},[$,pe]),be=S.useCallback(Oe=>{if(!T)return Promise.resolve();const He=ve(Oe);return ne.current[He]==="Loading"?Promise.resolve():(ue(He,"Loading"),new Promise(wt=>{T(Oe,_t=>{ue(He,_t),wt()})}))},[T,ve,ue]),Le=S.useCallback(async()=>{if(j!=null&&j.length){if(se){const Oe={...ne.current};j.forEach(He=>{Oe[ve(He)]="Loading"}),ne.current=Oe,se(Oe)}for(const Oe of j){if(!T)continue;const He=ve(Oe);await new Promise(wt=>{T(Oe,_t=>{if(se){const vt={...ne.current};vt[He]=_t,ne.current=vt,se(vt)}wt()})})}}},[j,ve,T,se]),$e=S.useMemo(()=>{const Oe=He=>(He.preventDefault(),He.stopPropagation(),He);return{onDragEnter:He=>{Oe(He),!Z&&!w&&J(!0)},onDragOver:He=>{Oe(He),!Z&&!w&&He.dataTransfer&&(He.dataTransfer.dropEffect="copy")},onDragLeave:He=>{var _t;Oe(He);const wt=(_t=me.current)==null?void 0:_t.contains(He.relatedTarget);(!He.relatedTarget||!wt)&&J(!1)},onDrop:He=>{var wt;Oe(He),J(!1),!Z&&!w&&((wt=He.dataTransfer.files)!=null&&wt.length)&&ze(He.dataTransfer.files)}}},[Z,w,ze]),bt=S.useMemo(()=>{const Oe=Ne.clsx(Pn.ButtonRenderer,"NoSelect");return{upload:He=>v.jsx(pi,{icon:"X",iconSize:"sm",tooltip:N.Delete,type:"Raw",className:Oe,style:{color:"var(--label-neutral)"},onClick:()=>xe(He)}),loading:()=>v.jsx(pi,{icon:"Spinner",iconSize:"sm",type:"Raw",className:Oe}),error:He=>v.jsx(T8,{file:He,baseClass:Oe,errorClass:Pn.ErrorColor,errorCursorClass:Pn.ErrorCursor,resources:N,onDownload:be}),download:He=>v.jsx(pi,{icon:"FileDownload",iconSize:"sm",tooltip:N.Download,type:"Raw",className:Oe,style:{color:"var(--acent-brand)"},onClick:()=>be(He)})}},[N,xe,be]),Ge=S.useCallback((Oe,He)=>{const wt=fe(Oe),_t=Me(Oe),vt=()=>b==="Upload"?bt.upload(Oe):wt?bt.loading():_t?bt.error(Oe):bt.download(Oe);return v.jsx(bm,{label:v.jsx("div",{className:Pn.FileChipContent,children:v.jsxs(An,{className:Pn.FileNameContainer,children:[v.jsx(wa,{className:Ne.clsx(_t&&Pn.ErrorColor),children:Oe.name}),v.jsx("span",{className:Pn.FileSize,children:Qc(Oe.size)})]})}),ButtonRenderer:vt,className:Ne.clsx(Pn.FileChip,_t&&Pn.ErrorBorder)},He)},[fe,Me,b,bt]),ht=S.useCallback(()=>v.jsx("div",{className:Ne.clsx(Pn.FileBox,Z&&Pn.ErrorBorder,Z&&Pn.ErrorColor,Z&&Pn.ErrorCursor,ke&&Pn.Disabled),...$e,ref:me,children:q?v.jsxs(An,{className:Ne.clsx("NoSelect"),style:{gap:4},children:[v.jsx(Br,{icon:"FileDownload"}),v.jsx("span",{children:N["Drop file to select"]})]}):v.jsxs(ji,{type:"Raw",className:Ne.clsx(Pn.SelectRenderer,"NoSelect"),onClick:Ze,isDisabled:Z||w||ke,children:[N["Insert File"],_&&` ${(j==null?void 0:j.length)||0} / ${_}`]})}),[Z,q,N,Ze,w,$e,j,_,ke]),mt=S.useMemo(()=>{const Oe=b==="Upload",He=Oe?N["Delete All"]:N["Download All"],wt=Oe?Se:Le;return v.jsxs(An,{className:Pn.LabelContainer,children:[t,b==="Upload"&&v.jsxs(wa,{className:Ne.clsx(Pn.TotalFileSize,"NoSelect"),children:["(",v.jsx("span",{className:Ne.clsx(Z&&Pn.ErrorColor),children:Qc(de)})," / ",Qc(x),")"]}),v.jsx("span",{className:Ne.clsx(Pn.LabelButton,"Label1",Ve&&Pn.Disabled,Oe&&Pn.Delete),onClick:Ve?void 0:wt,children:He})]})},[b,N,Se,Le,t,Z,de,x,Ve]);return b==="Download"&&!(j!=null&&j.length)?null:v.jsxs(ic,{helperText:e,wrapProps:i,wrapType:l,labelProps:n,errorMessage:u,label:mt,children:[v.jsx("input",{style:{display:"none"},ref:ge,type:"file",multiple:!0,onChange:et,accept:p||""}),v.jsx(Ur,{...O,className:Ne.clsx(Pn.AFileUploader,D),children:v.jsxs(An,{className:Pn.ChipsContainer,children:[b==="Upload"&&ht(),j==null?void 0:j.map(Ge)]})})]})},k8="_AFloatMenu_xco8u_1",R8="_Content_xco8u_10",d0={AFloatMenu:k8,Content:R8},Y2=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:i,onClose:l,onClick:u,onPaperClick:f,position:p=sf.ES,width:m=137}=r,T=S.useMemo(()=>({content:I8,...t}),[t]),k=S.useMemo(()=>{const q={};return rr.keys(e).forEach(J=>{const X=e[J],ne={...T,...X};ne.noDisplay||(q[J]=ne)}),q},[T,e]),[b,x]=S.useState(null),_=S.useCallback(q=>{s2(q,O,p,i),x(q)},[p,i]),[I,w]=S.useState(!1),[C,D]=S.useState(!1),O=S.useRef(null),N=S.useCallback(q=>{D(!0),setTimeout(()=>w(!0),0),setTimeout(()=>_(q),0)},[_]),j=S.useCallback(()=>{w(!1),D(!0),l==null||l()},[l]),$=S.useCallback(()=>D(!1),[]),Z=S.useCallback(async q=>{const J=document.getElementById("root"),X=q.target,ne=O.current;!J||!ne||!X||!ne.contains(X)&&J.contains(X)&&(await(f==null?void 0:f(q)),j())},[j,f]);S.useEffect(()=>{if(I)return setTimeout(()=>document.addEventListener("mousedown",Z),0),()=>document.removeEventListener("mousedown",Z)},[I,Z]);const ie=S.useCallback(()=>{b&&_(b)},[_,b]);S.useEffect(()=>{if(!I||!b)return;let q=b.parentElement;for(;q;)q.addEventListener("scroll",ie),q=q.parentElement;return()=>{let J=b.parentElement;for(;J;)J.removeEventListener("scroll",ie),J=J.parentElement}},[b,I,ie]),S.useEffect(()=>{if(I)return window.addEventListener("resize",ie),()=>window.removeEventListener("resize",ie)},[I,ie]);const Y=S.useCallback(q=>{q[0].intersectionRatio===0&&j()},[j]);S.useEffect(()=>{if(!I)return;const q=new IntersectionObserver(Y,{threshold:0});return O.current&&q.observe(O.current),()=>q.disconnect()},[O,I,Y]),S.useEffect(()=>{n&&(n.current={open:N,close:j})},[n,N,j]);const se=S.useCallback(q=>{var J;if(I){if((J=k[q])!=null&&J.isDisabled)return}else return;u==null||u(q),j()},[I,u,j,k]);return!I&&!C?null:zs.createPortal(v.jsx("div",{className:d0.AFloatMenu,style:{opacity:+I,visibility:I&&Object.keys(k).length>0?"visible":"hidden",minWidth:m},onTransitionEnd:$,ref:O,children:rr.map(k,([q],J)=>{const X={...T,...k[q]};let{content:ne,noDisplay:ge,tooltipDirection:me=_i.E,...ve}=X;return ge?null:(ne=Ir.getContent(X.content,{defKey:q,def:X}),S.createElement(Ur,{...ve,key:J,className:Ne.clsx(d0.Content,"Label2","IsClickable",ve.className),onClick:de=>{var De;se==null||se(q),(De=ve.onClick)==null||De.call(ve,de)},tooltipDirection:me},ne))})}),document.body)},I8=r=>r.defKey;function L8(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const X2={parseInt:L8},D8=`${Number.MAX_SAFE_INTEGER}`.length-1,M8=r=>{const{unit:e,type:t="Secondary",min:n,max:i,useValue:l,onEnterPress:u,canAsterisk:f=!1,onFocus:p,...m}=r,T=S.useMemo(()=>i!==void 0&&n!==void 0?Math.max(`${i}`.length+1,`${n}`.length+1):D8,[n,i]),[k,b]=dn(l,""),x=S.useCallback(C=>{if(b)if(f&&C.startsWith("*"))b("*");else if(C==="")b("");else if(C==="-")b("-");else{C=C.replace(/[^0-9-]/g,"");try{const D=X2.parseInt(C);D!==void 0&&(n!==void 0&&D<n?b(`${n}`):i!==void 0&&D>i?b(`${i}`):b(`${D}`))}catch(D){console.error("ANumInput : ",D)}}},[b,f,n,i]),_=S.useRef(null),I=S.useCallback(C=>{var D;(D=_.current)==null||D.blur(),u==null||u(C)},[u]),w=S.useMemo(()=>n===void 0&&i===void 0?e??"number":`${n??""}~${i??""}`,[n,i,e]);return v.jsx(oc,{...m,type:t,className:Ne.clsx(no.ANumInput,r.className),autoComplete:"off",onEnterPress:I,useValue:[k,x],maxLength:T,placeholder:w,RightAddon:r.unit&&v.jsx("span",{style:{marginRight:4},children:r.unit}),inputRef:_})},O8="_AListView_k7t2d_1",P8="_Row_k7t2d_10",N8="_Label_k7t2d_20",F8="_Content_k7t2d_30",Md={AListView:O8,Row:P8,Label:N8,Content:F8},j8=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:i,labelWidth:l,noBorder:u,style:f,...p}=r,m=u?"":"var(--AListView_border-thin)",T=u?"":"var(--AListView_border-thick)",k=S.useMemo(()=>({content:q8,label:B8,...t}),[t]),b=S.useMemo(()=>{const x={};return rr.keys(e).forEach(_=>{const I=e[_],w={...k,...I};x[_]=w}),x},[k,e]);return v.jsx(Ur,{...p,className:Ne.clsx(Md.AListView,p.className),style:{...f,borderTop:m},children:rr.map(b,([x])=>{const _={...k,...b[x]},I=Ir.getContent(_.label,{defKey:x,item:n,def:_}),w=Ir.getContent(_.content,{defKey:x,item:n||{[x]:""},def:_}),C=Ir.getContent(_.bold||"label",{defKey:x,item:n,def:_});return v.jsxs("div",{className:Md.Row,style:{height:i,borderBottom:m},children:[v.jsx("div",{className:Ne.clsx(Md.Label,"NoSelect",C!=="content"&&"Bold"),style:{width:l,minWidth:l,maxWidth:l,borderLeft:T,paddingLeft:u?0:10},children:v.jsx(wa,{children:I})}),v.jsx("div",{className:Ne.clsx(Md.Content,C!=="label"&&"Bold"),style:{borderLeft:T,borderRight:T},children:v.jsx(wa,{style:{width:"100%",padding:u?0:10},children:w})})]},x)})})},B8=r=>r.defKey,q8=r=>{const{defKey:e,item:t}=r;if(t)if(rr.hasKey(t,e)){const n=t[e];return rr.isReactNode(n)?n:null}else return null;else return null},H8="_ALoadingBorder_kwc1g_1",z8="_ProgressBar_kwc1g_9",$8="_IsLoading_kwc1g_15",U8="_load_kwc1g_1",W8="_Cover_kwc1g_19",Pf={ALoadingBorder:H8,ProgressBar:z8,IsLoading:$8,load:U8,Cover:W8},Cm=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),i=S.useRef(null);return S.useEffect(()=>{e?(n(!0),i.current&&clearTimeout(i.current)):i.current=setTimeout(()=>n(!1),300)},[e]),v.jsxs("div",{className:Pf.ALoadingBorder,children:[v.jsx("div",{className:Ne.clsx(Pf.ProgressBar,t&&Pf.IsLoading)}),v.jsx("div",{className:Ne.clsx(Pf.Cover,e&&Pf.IsLoading),style:{transition:"all 300ms"}})]})},V8="_Container_ez8dc_1",G8="_Option_ez8dc_7",Z8="_RadioButton_ez8dc_14",K8="_InnerCircle_ez8dc_24",Y8="_isChecked_ez8dc_29",Vu={Container:V8,Option:G8,RadioButton:Z8,InnerCircle:K8,isChecked:Y8},X8=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:i=23,innerRadius:l=i*.6,OptionRenderer:u=J2}=r,[f,p]=dn(t,e[0]);return v.jsx("div",{className:Vu.Container,children:e.map((m,T)=>{const k=n==null?void 0:n(m),b=()=>k?null:p==null?void 0:p(m);return v.jsxs(An,{className:Ne.clsx(Vu.Option,"IsClickable"),isDisabled:k,onClick:b,children:[v.jsx(J8,{isChecked:f===m,radius:i,innerRadius:l},T),v.jsx(u,{option:m})]},T)})})},J2=({option:r})=>r,J8=({isChecked:r,radius:e,innerRadius:t})=>v.jsx(Ur,{className:Ne.clsx(Vu.RadioButton,r&&Vu.isChecked),style:{width:e,height:e},children:v.jsx(Ur,{className:Ne.clsx(Vu.InnerCircle,r&&Vu.isChecked),style:{width:t,height:t}})}),Q8="_AMultiSelect_12res_1",ek="_Arrow_12res_15",tk="_Primary_12res_24",rk="_UnAvailable_12res_35",nk="_IsOpen_12res_35",ik="_Secondary_12res_42",ok="_Placeholder_12res_58",sk="_ValuesContainer_12res_63",ak="_Values_12res_63",lk="_Options_12res_82",ck="_Option_12res_82",uk="_Selected_12res_124",fk="_CheckBox_12res_131",_o={AMultiSelect:Q8,Arrow:ek,Primary:tk,UnAvailable:rk,IsOpen:nk,Secondary:ik,Placeholder:ok,ValuesContainer:sk,Values:ak,Options:lk,Option:ck,Selected:uk,CheckBox:fk},dk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=sn.AMultiSelect["Select(Placeholder)"],onClose:l,SelectedRenderer:u=pk,OptionRenderer:f=gk,minShowRows:p=2,maxShowRows:m=6,arrowProps:T,isAutoWidth:k=!1,...b}=r,x=S.useRef(null),_=S.useMemo(()=>b.abaseRef??x,[b.abaseRef]),I=S.useRef(null),[w,C]=dn(t,[]),[D,O]=S.useState(void 0),N=S.useRef(e),j=S.useRef(null),[$,Z]=S.useState(!1),[ie,Y]=S.useState(!1),se=S.useCallback(()=>Y(!1),[]),q=S.useCallback(()=>{b.isDisabled||b.isLoading||e.length<1||(Y(!0),setTimeout(()=>Z(!0),0),setTimeout(()=>rp(I,_,e,p,m),0))},[_,b.isDisabled,b.isLoading,e,p,m]),J=S.useCallback(()=>{Z(!1),Y(!0),l==null||l()},[l]),X=S.useCallback(ue=>{var le;$?J():q(),setTimeout(()=>rp(I,_,e,p,m),0),(le=b.onClick)==null||le.call(b,ue)},[_,b,e,$,J,q,p,m]),ne=S.useCallback(()=>{rp(I,_,e,p,m)},[_,e,p,m]);S.useEffect(()=>{if(!$||!_.current)return;const ue=_.current;let le=ue.parentElement;for(;le;)le.addEventListener("scroll",ne),le=le.parentElement;return()=>{let fe=ue.parentElement;for(;fe;)fe.removeEventListener("scroll",ne),fe=fe.parentElement}},[_,$,ne]),S.useEffect(()=>{if($)return window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)},[$,ne]);const ge=S.useCallback(ue=>{ue[0].intersectionRatio===0&&J()},[J]);S.useEffect(()=>{if(!$)return;const ue=new IntersectionObserver(ge,{threshold:0});return _.current&&ue.observe(_.current),()=>ue.disconnect()},[_,$,ge]);const me=S.useCallback(ue=>{const le=ue.target,fe=_.current,Me=I.current;!fe||!le||!Me||!fe.contains(le)&&!Me.contains(le)&&J()},[_,J]),ve=S.useMemo(()=>b.isDisabled||b.isLoading||e.length<1,[b.isDisabled,b.isLoading,e]);S.useEffect(()=>{if($)return setTimeout(()=>document.addEventListener("mousedown",me),0),()=>document.removeEventListener("mousedown",me)},[$,me]);const de=S.useCallback((ue,le)=>{ue.stopPropagation(),ue.preventDefault();let fe=[...w];fe.includes(le)?fe=fe.filter(Me=>Me!==le):fe.push(le),C==null||C(fe)},[w,C]),De=S.useCallback(()=>{if(!k||!_.current)return;const ue=Jc.calculateOptimalSelectWidth({elementRef:_,options:e,selectedOptions:w,placeholder:i,optionRenderer:le=>f({option:le}),type:n,isMulti:!0});O(ue)},[k,_,e,w,i,f,n]);return S.useEffect(()=>k?((e!==N.current||D===void 0)&&(j.current!==null&&cancelAnimationFrame(j.current),j.current=requestAnimationFrame(()=>{De(),j.current=null,N.current=[...e]})),()=>{j.current!==null&&(cancelAnimationFrame(j.current),j.current=null)}):void 0,[k,e,De,D]),S.useEffect(()=>()=>{typeof Jc.clearCache=="function"&&Jc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs(Ur,{...b,isDisabled:b.isDisabled||e.length<1,className:Ne.clsx(b.className,_o.AMultiSelect,"NoSelect",$&&_o.IsOpen,ve&&_o.UnAvailable,_o[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:D?`${D}px`:k?"100px":void 0,...b.style},abaseRef:_,onClick:X,children:[v.jsx("div",{className:_o.ValuesContainer,children:v.jsx("div",{className:Ne.clsx(_o.Values,w.length<1&&_o.Placeholder),children:v.jsx(u,{OptionRenderer:f,selectedOptions:w,placeholder:i})})}),v.jsx("div",{...T,className:Ne.clsx(_o.Arrow,T==null?void 0:T.className),children:v.jsx(Br,{style:{transform:$?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&($||ie)&&zs.createPortal(v.jsx("div",{className:Ne.clsx(_o.Options,_o[n]),onTransitionEnd:se,style:{opacity:+$,visibility:$?"visible":"hidden",pointerEvents:$?void 0:"none",width:D?`${D}px`:k?"100px":void 0,borderRadius:_.current?window.getComputedStyle(_.current).borderRadius:void 0},ref:I,children:e.map((ue,le)=>{var Me;const fe=w.includes(ue);return v.jsxs("div",{className:Ne.clsx(_o.Option,fe&&_o.Selected,"NoSelect",_o[n]),style:{height:(Me=_.current)==null?void 0:Me.getBoundingClientRect().height},onClick:Ve=>de(Ve,ue),children:[v.jsx(Qu,{className:_o.CheckBox,useCheck:[+fe,void 0]}),v.jsx(f,{option:ue})]},le)})}),document.body)]})};function rp(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=hk(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function hk(r,e,t,n){const i={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<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const pk=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?v.jsx(e,{option:t[0]}):`${t.length} selected`},gk=r=>{const{option:e}=r;return rr.isReactNode(e)?e:null},mk="_Container_10ion_1",vk="_Steps_10ion_9",yk="_Step_10ion_9",bk="_OutCircle_10ion_26",_k="_IsOver_10ion_37",xk="_InCircle_10ion_41",Sk="_Line_10ion_54",Ck="_Left_10ion_66",wk="_Right_10ion_69",Ak="_ContentContainer_10ion_73",Tk="_Content_10ion_73",ro={Container:mk,Steps:vk,Step:yk,OutCircle:bk,IsOver:_k,InCircle:xk,Line:Sk,Left:Ck,Right:wk,ContentContainer:Ak,Content:Tk},Ek=r=>{const{useSelect:e,steps:t,StepRenderer:n=h0,ContentRenderer:i=h0}=r;if(t.length===0)throw new Error("steps should have at least one element");const l=S.useRef(null),[u,f]=dn(e,t[0]),p=S.useCallback(T=>f==null?void 0:f(T),[f]),m=S.useMemo(()=>t.indexOf(u),[u,t]);return S.useEffect(()=>{m<0&&p(t[0])},[m,t,p]),v.jsxs("div",{className:ro.Container,children:[v.jsx("div",{className:ro.Steps,children:t.map((T,k)=>{const b=t.indexOf(T),x=m>=k,_=m>k;return v.jsxs("div",{className:ro.Step,children:[k!==0&&v.jsx("div",{className:Ne.clsx(ro.Line,ro.Left,x&&ro.IsOver)}),k!==t.length-1&&v.jsx("div",{className:Ne.clsx(ro.Line,ro.Right,_&&ro.IsOver)}),v.jsx(ji,{type:"Raw",className:Ne.clsx(ro.OutCircle,x&&ro.IsOver),onClick:()=>p(T),children:v.jsx("div",{className:Ne.clsx(ro.InCircle,x&&ro.IsOver)})}),v.jsx(n,{step:T,stepIdx:b})]},k)})}),v.jsx("div",{className:ro.ContentContainer,ref:l,children:t.map((T,k)=>{const b=t.indexOf(T);return v.jsx("div",{className:ro.Content,style:k===0?{marginLeft:`${m*-100}%`}:{},children:v.jsx(i,{step:T,stepIdx:b})},k)})})]})},h0=r=>{const{step:e}=r;return typeof e=="object"?rr.stringify(e):e},kk="_ATab_11k4q_1",Rk="_Option_11k4q_9",Ik="_Underline_11k4q_23",Lk="_IsSelected_11k4q_23",Dk="_IndicatorTrack_11k4q_34",Mk="_Indicator_11k4q_34",Ok="_Primary_11k4q_50",Pk="_Secondary_11k4q_57",Nk="_IsDisabled_11k4q_67",Fk="_Tertiary_11k4q_81",jk="_Quaternary_11k4q_111",Jl={ATab:kk,Option:Rk,Underline:Ik,IsSelected:Lk,IndicatorTrack:Dk,Indicator:Mk,Primary:Ok,Secondary:Pk,IsDisabled:Nk,Tertiary:Fk,Quaternary:jk},Bk=["Primary","Secondary","Tertiary","Quaternary"],Q2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:i="Primary",tabProps:l,optionProps:u,optionWidth:f,OptionRenderer:p=qk,RightAddon:m,color:T,selectedColor:k,underline:b,indicatorProps:x,indicatorTrackProps:_}=r;if(e.length===0)throw new Error("options should have at least one element");const I=S.useMemo(()=>e.findIndex(le=>!(n!=null&&n(le))),[e,n]),w=i==="Tertiary"?2:0,C=i==="Secondary"?8:0,D=S.useMemo(()=>w+C,[w,C]),O=i==="Tertiary"?2:0,N=S.useMemo(()=>(C-w-O-O)/e.length,[e.length,w,C,O]),[j,$]=dn(t,e[I]),Z=S.useRef([]),ie=S.useCallback(le=>$==null?void 0:$(le),[$]),Y=S.useMemo(()=>typeof f=="number"?f+"px":f,[f]),se=S.useMemo(()=>e.indexOf(j),[e,j]),q=S.useMemo(()=>`calc(${100/e.length}% + ${N}px)`,[e.length,N]),J=S.useMemo(()=>Y||`calc(${q} - ${D}px)`,[q,D,Y]),[X,ne]=S.useState(0),[ge,me]=S.useState(0),[ve,de]=S.useState(J),De=S.useMemo(()=>{let le;switch(Y){case void 0:le=`calc(${q} * ${se})`;break;case"fit-content":le=`calc(${X}px)`;break;default:le=`calc((${Y} + ${D}px) * ${se})`;break}return`calc(${le} + ${O}px)`},[Y,O,q,se,X,D]),ue=S.useMemo(()=>{switch(Y){case void 0:return;case"fit-content":return`calc(${ge}px)`;default:return`calc((${Y} + ${D}px - ${N}px) * ${e.length})`}},[Y,N,D,e,ge]);return S.useEffect(()=>{var fe,Me;if(e.includes(j)||$==null||$(e[I]),Y!=="fit-content"){de(J);return}let le=0;Z.current.forEach((Ve,pe)=>{pe<se&&Ve.current&&(le+=Ve.current.offsetWidth+D)}),ne(le),de(`calc(${((Me=(fe=Z.current[se])==null?void 0:fe.current)==null?void 0:Me.offsetWidth)||0}px)`),me(Z.current.reduce((Ve,pe)=>{var ke;return Ve+((((ke=pe.current)==null?void 0:ke.offsetWidth)||0)+D-N)},0))},[Y,Z,e,j,$,I,N,D,se,J]),v.jsxs("div",{...l,className:Ne.clsx(Jl.ATab,"Headline2",Jl[i],l==null?void 0:l.className),children:[v.jsx("div",{...x,className:Ne.clsx(Jl.Indicator,x==null?void 0:x.className),style:{minWidth:ve,left:De,marginLeft:w,...x==null?void 0:x.style}}),v.jsx("div",{..._,className:Ne.clsx(Jl.IndicatorTrack,_==null?void 0:_.className),style:{width:ue,..._==null?void 0:_.style}}),v.jsx(bn,{w:O}),e.map((le,fe)=>{const Me=n==null?void 0:n(le);return Z.current[fe]||(Z.current[fe]=S.createRef()),v.jsx(Ur,{abaseRef:Z.current[fe],...u,style:{minWidth:J,maxWidth:J,marginLeft:w,marginRight:C,"--color":le===j&&k||T,...u==null?void 0:u.style},className:Ne.clsx(Jl.Option,Me&&Jl.IsDiabled,le===j&&Jl.IsSelected,"IsClickable",b&&Jl.Underline,u==null?void 0:u.className),onClick:Ve=>{!Me&&ie(le),u&&u.onClick&&u.onClick(Ve)},isDisabled:Me,children:v.jsx(p,{option:le})},fe)}),v.jsx(bn,{w:O+w}),m&&v.jsxs(v.Fragment,{children:[v.jsx(nu,{}),m]})]})},qk=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=rr.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 ex(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const tx={String:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;if(t==="")return rr.keys(e).some(T=>{const k=e[T],b=Ir.getContent(k.asText,{defKey:T,def:k,item:r});if(b!==void 0)return b.toString().toLowerCase().includes(i.toLowerCase());const x=Ir.getContent(k.content,{defKey:T,def:k,item:r});return["string","number"].includes(typeof x)&&x!==void 0&&x!==null?x.toString().toLowerCase().includes(i.toLowerCase()):!1});const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0)return p.toString().toLowerCase().includes(i.toLowerCase());const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?m.toString().toLowerCase().includes(i.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:i}=n;if(i==null)return!1;const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0)return i.toString().toLowerCase()===p.toString().toLowerCase();const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?i.toString().toLowerCase()===m.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0){const T=Yt.toDate(p.toString());return T&&Yt.eq(T,i)}const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const T=Yt.toDate(m.toString());return T&&Yt.eq(T,i)}return!1},DateRange:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=rr.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],p=Ir.getContent(f.asText,{defKey:u,def:f,item:r});if(p!==void 0){const T=Yt.toDate(p.toString());return T&&Yt.be(i.sDate,T,i.eDate)}const m=Ir.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const T=Yt.toDate(m.toString());return T&&Yt.be(i.sDate,T,i.eDate)}return!1}},Hk=(r,e,t)=>{let n=r;return rr.keys(t).forEach(l=>{const u=t[l];u.value===void 0||u.value===null||u.value===""||(n=n.filter(f=>{var p;return(p=u.predicate??tx[u.type])==null?void 0:p(f,e,l,u)}))}),n},zk=(r,e,t)=>{if(!t)return r;const n=t.defKey,i=e[n];if(n===void 0)return r;const l=t.sortF??((u,f)=>{const p=Ir.getContent(i.content,{defKey:n,def:i,item:u}),m=Ir.getContent(i.content,{defKey:n,def:i,item:f});return typeof p=="string"&&typeof m=="string"?p<m?-1:p>m?1:0:typeof p=="number"&&typeof m=="number"?p-m:typeof p=="string"&&typeof m=="number"?-1:typeof p=="number"&&typeof m=="string"||p===void 0&&m!==void 0?1:p!==void 0&&m===void 0?-1:0});return typeof l=="function"&&l.length>=3?r.slice().sort((u,f)=>l(u,f,t.isAsc)):r.slice().sort((u,f)=>{const p=l(u,f);return t.isAsc?p:-p})},$k=(r,e,t)=>r.slice((e-1)*t,e*t),rx=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,i)=>i+1)},Uk=(r,e,t,n)=>{const i=rx(e,t),l=Math.floor((r-1)/n),u=l*n+1,f=(l+1)*n,p=i.slice(u-1,f);return{pages:i,rangedPages:p}},Wk=(r,e,t)=>{const n=[],i=Object.keys(t),l=[];i.forEach(b=>{const x=t[b],_=Ir.getContent(x.hContent,{defKey:b,def:x});if(_!==void 0){if(typeof _=="string"){l.push(_);return}else if(typeof _=="number"){l.push(_.toString());return}}const I=Ir.getContent(x.name,{defKey:b,def:x});if(I!==void 0&&typeof I=="string"){l.push(I);return}l.push(b)});const u=l.map(b=>`"${b.replaceAll('"','""')}"`);n.push(u.join(",")),e.forEach(b=>{const x=[];i.forEach(I=>{const w=t[I],C=Ir.getContent(w.content,{defKey:I,def:w,item:b});if(C!==void 0){if(typeof C=="string"){x.push(C);return}else if(typeof C=="number"){x.push(C.toString());return}}const D=b[I];typeof D=="string"?x.push(D):typeof D=="number"?x.push(D.toString()):x.push("")});const _=x.map(I=>`"${I.replaceAll('"','""')}"`);n.push(_.join(","))});const f=`${r}.csv`,p="\uFEFF"+n.join(`
161
+ `),m=new Blob([p],{type:"text/csv;charset=UTF-8"}),T=URL.createObjectURL(m),k=document.createElement("a");k.href=T,k.download=f,k.click(),URL.revokeObjectURL(T)},Vk=r=>{const e=rr.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},Gk=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,i])=>{!i||i.value===void 0||i.value===null||i.value===""||(i.type==="DateRange"?(t[i.sFilterKey]=i.value.sDate,t[i.eFilterKey]=i.value.eDate):t[i.filterKey??n]=i.value)}),t},Zk=r=>{const e=rr.keys(r).filter(i=>i!=="");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}},nl={applyFilteration:Hk,applySortation:zk,applyPagination:$k,getPages:rx,getRangedPages:Uk,downloadCsv:Wk,getSingleFilterValue:Vk,getMultiFilterValues:Gk,getSelectFilterValue:Zk},Kk="_ATable_12zow_1",Yk={ATable:Kk};function nx(r,e,t,n){S.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const Xk="_BodyHeader_ys4y0_1",Jk="_TRow_ys4y0_7",Qk="_OverflowSpace_ys4y0_11",eR="_BodyBody_ys4y0_16",tR="_IsSelected_ys4y0_35",rR="_IsSelectable_ys4y0_39",nR="_IsRowMarked_ys4y0_47",iR="_TH_ys4y0_52",oR="_TD_ys4y0_57",sR="_IsMarked_ys4y0_57",aR="_Resizer_ys4y0_76",lR="_IsMoving_ys4y0_88",cR="_IsResizable_ys4y0_91",uR="_ResizerCenter_ys4y0_94",fR="_ResizerOut_ys4y0_100",dR="_ResizerIn_ys4y0_104",hR="_IsClicked_ys4y0_139",pR="_NoItems_ys4y0_146",gR="_Content_ys4y0_152",Cn={BodyHeader:Xk,TRow:Jk,OverflowSpace:Qk,BodyBody:eR,IsSelected:tR,IsSelectable:rR,IsRowMarked:nR,TH:iR,TD:oR,IsMarked:sR,Resizer:aR,IsMoving:lR,IsResizable:cR,ResizerCenter:uR,ResizerOut:fR,ResizerIn:dR,IsClicked:hR,NoItems:pR,Content:gR},ec=25,np=50,mR=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:i,isTableDisabled:l,isSelectMulti:u,selectDisabled:f,appliedFilteration:p,useSortation:m,pagination:T,pagedItems:k,noMarking:b,noDefHeader:x,isLoading:_,showRows:I,RowRenderer:w=bR,isRowRendered:C,rowHeight:D,resources:O}=r,[N,j]=S.useMemo(()=>i??[],[i]),$=S.useCallback(Ge=>{l||!j||!N||f!=null&&f(Ge)||(u?N.some(ht=>t(ht,Ge))?j(N.filter(ht=>!t(ht,Ge))):j([...N,Ge]):j([Ge]))},[N,f,j,t,l,u]);S.useEffect(()=>{u||!N||!j||N.length>1&&j([N[N.length-1]])},[N,j,u]),S.useEffect(()=>{if(!N||!j)return;N.filter(ht=>f==null?void 0:f(ht)).length>0&&j(N.filter(ht=>!(f!=null&&f(ht))))},[N,j,f]);const[Z,ie]=m,Y=S.useCallback((Ge,ht)=>{ie&&((Z==null?void 0:Z.defKey)===Ge?Z.isAsc===!0?ie({defKey:Ge,isAsc:!1,sortF:ht}):Z.isAsc===!1?ie(void 0):ie({defKey:Ge,isAsc:!0,sortF:ht}):ie({defKey:Ge,isAsc:!0,sortF:ht}))},[Z,ie]),[se,q]=S.useState({elem:null,row:null}),J=S.useRef(null),X=S.useRef(null),ne=S.useCallback(()=>q({elem:J.current,row:X.current}),[]);S.useEffect(()=>ne(),[k.length,ne]),nx(window,"resize",ne);const[ge,me]=S.useState(D);S.useEffect(()=>{const{row:Ge}=se;Ge!=null&&me(Ge.clientHeight)},[se,ge]);const ve=S.useMemo(()=>{const{elem:Ge}=se;return Ge?Math.floor(Ge.clientHeight/ge):0},[se,ge]),de=S.useMemo(()=>I||(k.length<=ve?ve:k.length),[ve,I,k]),De=S.useMemo(()=>{if(I!==void 0)return I*ge},[I,ge]),ue=S.useMemo(()=>De,[De]),le=S.useMemo(()=>{const{elem:Ge}=se;return Ge?Ge.getBoundingClientRect().height/ge<k.length:!1},[se,ge,k.length]),[fe,Me]=S.useState(),Ve=S.useMemo(()=>{const{elem:Ge}=se;return!fe||!Ge?"100%":Ge.clientHeight+(C?0:50)},[fe,C,se]),pe=S.useRef(null),[ke,ze]=S.useState({}),Ze=S.useRef({x:0,y:0}),et=S.useRef({}),xe=S.useMemo(()=>rr.keys(ke),[ke]),Se=S.useCallback((Ge,ht)=>{const mt=pe.current;if(!mt)return;const Oe=[];mt.childNodes.forEach(vt=>{vt.classList.contains(Cn.TH)&&Oe.push(vt)});const He={};rr.keys(e).forEach((vt,Tt)=>{const Pe=Oe[Tt];if(!Pe)return;const Ke=Pe.getBoundingClientRect().width;He[vt]=Ke}),et.current=He,Me(ht),Ze.current={x:Ge.clientX,y:Ge.clientY};const wt=vt=>{if(!pe.current)return;const Pe=vt.clientX-Ze.current.x,Ke=yR(e,ht,et.current,Pe);ze(Ke)};document.addEventListener("mousemove",wt);const _t=()=>{Me(void 0),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},[e]),be=S.useCallback(()=>{Me(void 0),ze({})},[]),Le=S.useMemo(()=>{if(xe.length===0){const mt={},Oe=rr.keys(e);for(let He=0;He<Oe.length;He++){const wt=Oe[He],_t=e[wt],vt=Ir.getContent(_t.colSpan,{defKey:wt,def:_t}),Tt=_t.width??80,Pe=_t.minWidth??ec,Ke=_t.maxWidth,xt={width:Tt,minWidth:Pe,maxWidth:Ke,flexGrow:vt??1};if(mt[wt]=xt,vt!==void 0){for(let jt=1;jt<Math.min(vt,Oe.length-He);jt++){const At=e[Oe[He+jt]],Be=At.width??80,Lt=At.minWidth??ec,Dt=At.maxWidth;xt.width+=Be,xt.minWidth+=Lt,xt.maxWidth!==void 0&&(Dt!==void 0?xt.maxWidth+=Dt:xt.maxWidth=void 0)}He+=vt-1}}return mt}const Ge={},ht=rr.keys(e);for(let mt=0;mt<ht.length;mt++){let Oe=ht[mt];const He=e[Oe];let wt=ke[Oe];const _t=Ir.getContent(He.colSpan,{defKey:Oe,def:He}),vt=He.minWidth??ec,Tt=He.maxWidth,Pe={width:wt,minWidth:vt,maxWidth:Tt,flexGrow:_t??1};if(Ge[Oe]=Pe,_t!==void 0){for(let Ke=1;Ke<Math.min(_t,ht.length-mt);Ke++){const xt=e[ht[mt+Ke]],jt=ke[ht[mt+Ke]],At=xt.minWidth??ec,Be=xt.maxWidth;Pe.width+=jt,Pe.minWidth+=At,Pe.maxWidth!==void 0&&(Be!==void 0?Pe.maxWidth+=Be:Pe.maxWidth=void 0)}mt+=_t-1}}return Ge},[e,xe,ke]),$e=S.useRef(null),bt=S.useMemo(()=>nl.getSingleFilterValue(p),[p]);return S.useEffect(()=>{J.current&&J.current.scrollTo({top:0})},[T.page]),S.useEffect(()=>{C&&X.current&&X.current.scrollIntoView({behavior:"smooth",block:"center"})},[N,k,C]),v.jsxs(v.Fragment,{children:[v.jsx(Cm,{isLoading:_}),v.jsx("div",{className:Ne.clsx(Cn.BodyHeader,fe!==void 0&&Cn.IsClicked),onResizeCapture:ne,ref:$e,style:{display:x||C?"none":"flex"},children:v.jsx("div",{className:Cn.TRow,ref:pe,style:{minHeight:np,maxHeight:np},children:rr.map(e,([Ge],ht)=>{const mt=e[Ge],Oe=Ir.getContent(mt.hContent,{defKey:Ge,def:mt}),He=mt.name,wt=ht===rr.keys(e).length-1,_t=mt.width??80,vt=mt.minWidth??ec,Tt=mt.maxWidth,Pe={width:_t,minWidth:vt,maxWidth:Tt,justifyContent:Ir.getContent(mt.hAlign,{defKey:Ge,def:mt})??"flex-start",...Ir.getContent(mt.hStyle,{defKey:Ge,def:mt})};xe.includes(Ge)&&(Pe.width=ke[Ge]);const Ke=mt.isSortable,xt=(Z==null?void 0:Z.defKey)===Ge,jt=Z==null?void 0:Z.isAsc;return v.jsxs(S.Fragment,{children:[v.jsxs("div",{style:Pe,onClick:()=>Ke&&Y(Ge,mt.sortF),className:Ne.clsx(Cn.TH,"Label1",Ke?"IsClickable":"NoSelect"),children:[v.jsx(wa,{className:Cn.Content,children:Oe??He}),Ke&&v.jsx(Br,{icon:xt?jt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!wt&&v.jsxs("div",{className:Ne.sclsx(Cn,"Resizer","IsResizable","NoSelect",fe!==void 0&&"IsMoving"),onMouseDown:At=>Se(At,Ge),onDoubleClick:be,children:[v.jsx("div",{className:Cn.ResizerOut}),v.jsx("div",{className:Cn.ResizerIn}),v.jsx("div",{className:Cn.ResizerCenter,style:{height:Ve}}),v.jsx("div",{className:Cn.ResizerIn}),v.jsx("div",{className:Cn.ResizerOut})]}),wt&&v.jsx(bn,{className:Cn.OverflowSpace,w:"var(--Scrollbar-width)",h:np,style:{color:Pe.color,backgroundColor:Pe.backgroundColor,transition:Pe.transition}})]},Ge)})})}),v.jsxs("div",{className:Ne.clsx(Cn.BodyBody,fe!==void 0&&Cn.IsClicked),ref:J,style:{overflowY:le?"scroll":"hidden",minHeight:De,maxHeight:ue},children:[k.map((Ge,ht)=>{const mt=Ir.getContent(n,{item:Ge}),Oe=j&&!l,He=N==null?void 0:N.some(Tt=>t(Tt,Ge)),wt=N&&(f==null?void 0:f(Ge)),_t=typeof wt=="string"?wt:void 0,vt={...Ge};return C&&rr.keys(e).forEach(Tt=>{const Pe=e[Tt],Ke=Ir.getContent(Pe.content,{defKey:Tt,def:Pe,item:Ge});let xt=!1;if(bt&&!b){const jt=Ir.getContent(Pe.asText,{defKey:Tt,def:Pe,item:Ge});jt!==void 0?xt=jt.toString().toLowerCase().includes(bt.toLowerCase()):["string","number"].includes(typeof Ke)&&Ke!==void 0&&Ke!==null&&(xt=Ke.toString().toLowerCase().includes(bt.toLowerCase()))}vt[Tt]=v.jsx("span",{className:Ne.clsx(xt&&Cn.IsRowMarked),children:vt[Tt]})}),v.jsx(Ur,{isDisabled:wt,tooltip:_t,...mt,onClick:Tt=>{var Pe;$(Ge),(Pe=mt==null?void 0:mt.onClick)==null||Pe.call(mt,Tt)},className:Ne.clsx(mt==null?void 0:mt.className,Oe&&Cn.IsSelectable,He&&Cn.IsSelected),abaseRef:He?X:void 0,children:v.jsx(w,{defs:e,item:Ge,markedItem:vt,noMarking:b,spanWidths:Le,singleFilterValue:bt,isBodyBodyOverflowed:le,rowHeight:D})},ht)}),v.jsx(vR,{showRows:de,itemsLength:k.length,isRowRendered:C,rowHeight:ge,resources:O})]})]})},vR=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:i,rowHeight:l}=r,u=S.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:u},(f,p)=>v.jsx("div",{className:Ne.clsx(Cn.TRow,"NoSelect"),style:{minHeight:l,maxHeight:l,...i&&{border:"none"}},children:t===0&&p===Math.floor(e/2)&&v.jsx(An,{className:Cn.NoItems,children:n["No Items"]})},p))};function yR(r,e,t,n){const i={...t},l=rr.keys(r).findIndex(m=>m===e)+1,u=Object.entries(r);let f=l-1,p=l;if(n<0){for(;n<0&&!(f<0||p>=u.length);){const[m,T]=[u[f][0],u[f][1]],[k,b]=[u[p][0],u[p][1]],x=T.minWidth??ec,_=b.maxWidth,I=i[m],w=i[k];let C=I-x;_!==void 0&&(C=Math.min(C,_-w));let D=-n;D=Math.min(D,C),I-D<=x&&f--,_!==void 0&&w+D>=_&&p++,i[m]=I-D,i[k]=w+D,n+=D}return i}else if(n>0){for(;n>0&&!(f<0||p>=u.length);){const[m,T]=[u[f][0],u[f][1]],[k,b]=[u[p][0],u[p][1]],x=b.minWidth??ec,_=T.maxWidth,I=i[k],w=i[m];let C=I-x;_!==void 0&&(C=Math.min(C,_-w));let D=n;D=Math.min(D,C),I-D<=x&&p++,_!==void 0&&w+D>=_&&f--,i[k]=I-D,i[m]=w+D,n-=D}return i}return i}const bR=r=>{const{defs:e,item:t,noMarking:n,spanWidths:i,singleFilterValue:l,isBodyBodyOverflowed:u,rowHeight:f}=r;return v.jsx("div",{className:Ne.clsx(Cn.TRow),style:{minHeight:f,maxHeight:f},children:rr.map(e,([p],m)=>{const T=i[p];if(T===void 0)return null;const k=m===rr.keys(e).length-1,b=e[p],x=Ir.getContent(b.content,{defKey:p,def:b,item:t}),_={width:T.width,minWidth:T.minWidth,maxWidth:T.maxWidth,flexGrow:T.flexGrow,justifyContent:Ir.getContent(b.align,{defKey:p,def:b,item:t})??"flex-start",...Ir.getContent(b.style,{defKey:p,def:b,item:t})};let I=!1;if(l&&!n){const w=Ir.getContent(b.asText,{defKey:p,def:b,item:t});w!==void 0?I=w.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof x)&&x!==void 0&&x!==null&&(I=x.toString().toLowerCase().includes(l.toLowerCase()))}return v.jsxs(S.Fragment,{children:[v.jsx("div",{style:_,className:Ne.clsx(Cn.TD,"Label1",I&&Cn.IsMarked),children:v.jsx(wa,{className:Cn.Content,children:x})}),!u&&k&&v.jsx(bn,{className:Cn.OverflowSpace,w:"var(--Scrollbar-width)",h:f,style:{color:_.color,backgroundColor:_.backgroundColor}})]},p)})})},_R="_ATableFooter_w090q_1",xR="_Button_w090q_10",SR="_IsSelected_w090q_26",CR="_IsDisabled_w090q_31",Os={ATableFooter:_R,Button:xR,IsSelected:SR,IsDisabled:CR},wR=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:i}=r,l=S.useMemo(()=>e[e.length-1],[e]);return v.jsxs(An,{className:Os.ATableFooter,children:[v.jsx(Br,{icon:"FirstPage",className:Ne.clsx(Os.Button,i.page===1&&Os.IsDisabled),onClick:n.moveFirst}),v.jsx(Br,{icon:"NavigateBefore",className:Ne.clsx(Os.Button,i.page===1&&Os.IsDisabled),onClick:n.movePrev}),t.map(u=>v.jsx("div",{className:Ne.clsx(Os.Button,"NoSelect",i.page===u&&Os.IsSelected),onClick:()=>n.move(u),children:u},u)),v.jsx(Br,{icon:"NavigateNext",className:Ne.clsx(Os.Button,i.page===l&&Os.IsDisabled),onClick:n.moveNext}),v.jsx(Br,{icon:"LastPage",className:Ne.clsx(Os.Button,i.page===l&&Os.IsDisabled),onClick:n.moveLast})]})},AR="_Filter_1b9j0_1",TR="_SelectFilter_1b9j0_11",ER="_MainFilter_1b9j0_15",kR="_IsOpen_1b9j0_26",RR="_SubFilters_1b9j0_30",IR="_Input_1b9j0_44",LR="_Main_1b9j0_15",DR="_Sub_1b9j0_30",MR="_Actions_1b9j0_62",OR="_Icon_1b9j0_67",PR="_LeftIcon_1b9j0_74",NR="_CircleAlertOutline_1b9j0_79",FR="_Rotate_1b9j0_87",jR="_rotate_1b9j0_1",Tr={Filter:AR,SelectFilter:TR,MainFilter:ER,IsOpen:kR,SubFilters:RR,Input:IR,Main:LR,Sub:DR,Actions:MR,Icon:OR,LeftIcon:PR,CircleAlertOutline:NR,Rotate:FR,rotate:jR},BR=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:i,isRowRendered:l,isFilterSort:u,filterType:f,resources:p,placeholder:m}=r,[T,k]=S.useState([]),[b,x]=S.useMemo(()=>t,[t]),_=S.useMemo(()=>f==="Select",[f]),I=S.useMemo(()=>rr.keys(b).map(pe=>String(pe)),[b]),[w,C]=S.useState(_&&I.length>0?I[0]:null),D=S.useCallback((pe,ke,ze)=>{if(!x)return;const Ze={...b};pe.value=ke,x(Ze),k(et=>et.map((xe,Se)=>Se===(ze?ze+1:0)?"":xe))},[b,x]),O=S.useMemo(()=>{let pe=[],ke=rr.keys(b);_&&w&&(ke=ke.filter(ze=>ze===w));for(const ze of ke)pe.push({key:ze,def:e[ze],filter:b[ze]});return pe},[b,e,_,w]),N=S.useMemo(()=>O.length>0?O[0]:null,[O]),j=S.useMemo(()=>T.length>0?T[0]:"",[T]),$=S.useMemo(()=>O.length>1?O.slice(1):[],[O]),Z=S.useMemo(()=>T.length>1?T.slice(1):[],[T]),ie=S.useMemo(()=>$.length>0,[$]),[Y,se]=S.useState(!1),[q,J]=S.useState(!1),X=S.useRef(null),ne=S.useCallback(()=>se(!1),[]),ge=S.useRef(null),me=S.useCallback(()=>{J(!1),se(!0),ge.current&&(document.removeEventListener("mousedown",ge.current),ge.current=null)},[]),ve=S.useCallback(()=>{const pe=ke=>{const ze=document.getElementById("root"),Ze=ke.target,et=X.current;!ze||!et||!Ze||!et.contains(Ze)&&ze.contains(Ze)&&me()};return ge.current=pe,pe},[me]),de=S.useCallback(()=>{se(!0),J(!0),setTimeout(()=>{const pe=ve();document.addEventListener("mousedown",pe)},0)},[ve]),De=S.useMemo(()=>q?me:de,[q,de,me]),ue=S.useCallback(()=>{const pe=O.map((ke,ze)=>ke.filter.type==="String"&&ke.filter.validation?ke.filter.validation(ke.filter.value||""):ke.filter.type==="Date"&&ke.filter.validation||ke.filter.type==="DateRange"&&ke.filter.validation?ke.filter.validation(ke.filter.value):T[ze]);return k(pe),pe.every(ke=>!ke)},[T,O]),le=S.useCallback(pe=>{pe.key==="Enter"?(ue()&&i.apply(),pe.stopPropagation()):pe.key==="Escape"&&(J(!1),pe.currentTarget.focus(),pe.currentTarget.blur(),pe.stopPropagation())},[ue,J,i]),fe=S.useMemo(()=>({open:de,close:me,toggle:De,validate:ue}),[de,me,De,ue]),Me=S.useCallback(()=>{i.clear()},[i]),Ve=S.useCallback(pe=>{if(!x||!pe)return;C(pe);const ke={...b};rr.keys(ke).forEach(ze=>{if(ze!==pe&&ke[ze])switch(ke[ze].type){case"String":ke[ze].value="";break;case"Select":ke[ze].value=null;break;case"Date":ke[ze].value=void 0;break;case"DateRange":ke[ze].value=void 0;break}}),k([]),x(ke),i.clear(),setTimeout(()=>{var Ze;const ze=(Ze=X.current)==null?void 0:Ze.querySelector("input");ze&&ze.focus()},0)},[b,x,k,i]);return N?v.jsxs(v.Fragment,{children:[_&&v.jsx(sc,{className:Ne.clsx(Tr.SelectFilter),options:I,isAutoWidth:!0,useSelect:[w,Ve],type:"Secondary",OptionRenderer:({option:pe})=>{const ke=e[pe];let ze;if(ke!=null&&ke.hContent){const Ze={defKey:pe,def:ke};ze=typeof ke.hContent=="function"?ke.hContent(Ze):ke.hContent}else{const Ze=b[pe],et=(ke==null?void 0:ke.name)||(Ze==null?void 0:Ze.placeholder)||String(pe);ze=v.jsx("span",{children:et})}return ze}}),v.jsxs("div",{className:Ne.clsx(Tr.Filter),ref:X,onKeyDown:le,onClick:pe=>{pe.preventDefault(),pe.stopPropagation()},style:{minWidth:l?u?180:void 0:180,maxWidth:l?u?300:void 0:300},tabIndex:-1,children:[v.jsx(qR,{filterSet:N,hasToggleFilteration:n,onChange:D,filterF:i,hasSubFilters:ie,popupF:fe,isOpen:q,resources:p,errorMessage:j,hasSelectFilterType:_,placeholder:m}),!_&&v.jsx(HR,{subFilterSets:$,onChange:D,onClearClick:Me,isOpen:q,isTransitioning:Y,onTransitionEnd:ne,resources:p,errorMessages:Z,placeholder:m,filterF:i,validate:ue})]})]}):null},qR=r=>{var b,x,_,I;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:i,filterF:l,hasSubFilters:u,popupF:f,isOpen:p,resources:m,errorMessage:T,placeholder:k}=r;if(e.filter.type==="String"){const w=[e.filter.value??"",N=>i(e.filter,N)],C=k??e.filter.placeholder??((b=e.def)==null?void 0:b.name),D=e.filter.icon,O=e.filter.iconTooltip??C;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:D??"Type",tooltip:O,isOpen:p}),v.jsx(oc,{className:Ne.clsx(Tr.Input,Tr.Main),useValue:w,placeholder:C??m["Search(Placeholder)"],wrapProps:{style:{width:"100%",boxSizing:"border-box"}},LeftAddon:t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),RightAddon:v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,errorMessage:T,hasSelectFilterType:n,filterF:l}),autoFocus:e.filter.autoFocus,maxLength:e.filter.maxLength,type:T?"Error":"Primary"})]})}else if(e.filter.type==="Select"){const w=[e.filter.value??null,N=>{i(e.filter,N),n&&setTimeout(()=>{f.validate()&&l.apply()},0)}],C=k??e.filter.placeholder??((x=e.def)==null?void 0:x.name),D=e.filter.icon,O=e.filter.iconTooltip??C;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:D??"Menu",tooltip:O,isOpen:p}),v.jsx(sc,{className:Ne.clsx(Tr.Input,Tr.Main),options:e.filter.options,useSelect:w,placeholder:C,OptionRenderer:e.filter.OptionRenderer,SelectedRenderer:({OptionRenderer:N,selectedOption:j})=>j===null?C||e.filter.placeholder:v.jsxs(v.Fragment,{children:[t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),v.jsx(N,{option:j}),v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,hideSearchButton:!0,hasSelectFilterType:n,filterF:l})]})})]})}else if(e.filter.type==="Date"){const w=[e.filter.value,N=>i(e.filter,N)],C=k??e.filter.placeholder??((_=e.def)==null?void 0:_.name),D=e.filter.icon,O=e.filter.iconTooltip??C;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:D??"CalendarDay",tooltip:O,isOpen:p}),v.jsx(Sm,{type:"Raw",className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Main),useDate:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:C,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),!t&&v.jsx(bn,{w:p?0:6}),v.jsx(_a,{icon:D??"CalendarDay",tooltip:O,isOpen:!p}),v.jsx(bn,{w:p?8:0})]}),RightAddon:v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,hasSelectFilterType:n,filterF:l})})]})}else if(e.filter.type==="DateRange"){const w=[e.filter.value,j=>i(e.filter,j)],{noDefaultChoices:C}=e.filter,D=k??e.filter.placeholder??((I=e.def)==null?void 0:I.name),O=e.filter.icon,N=e.filter.iconTooltip??D;return v.jsxs("div",{className:Ne.clsx(Tr.MainFilter,p&&Tr.IsOpen),children:[v.jsx(_a,{icon:O??"CalendarDay",tooltip:N,isOpen:p}),v.jsx(_m,{type:"Raw",className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Main),useDateRange:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:D,noDefaultChoices:C,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Od,{isOpen:p,filterF:l,popupF:f,resources:m}),!t&&v.jsx(bn,{w:p?0:6}),v.jsx(_a,{icon:O??"CalendarDay",tooltip:N,isOpen:!p}),v.jsx(bn,{w:p?8:0})]}),RightAddon:v.jsx(Pd,{hasSubFilters:u,popupF:f,isOpen:p,resources:m,hasSelectFilterType:n,filterF:l})})]})}return null},Od=r=>{const{filterF:e,popupF:t,resources:n,isOpen:i}=r;return v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"Convert",tooltip:n["Toggle Filter"],onMouseDown:l=>l.currentTarget.classList.remove(Tr.Rotate),style:{width:i?0:24,marginLeft:i?0:8},onClick:l=>{l.currentTarget.classList.add(Tr.Rotate),e.toggle(),t.close(),l.stopPropagation()}})},Pd=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:i,errorMessage:l,hideSearchButton:u,hasSelectFilterType:f,filterF:p}=r,m=S.useCallback(b=>{b.stopPropagation(),t.open()},[t]),T=S.useCallback(b=>{b.stopPropagation(),t.close()},[t]),k=S.useCallback(b=>{b.stopPropagation(),t.validate()&&p.apply()},[t,p]);return v.jsxs(S.Fragment,{children:[l&&v.jsx(pi,{type:"Raw",className:Tr.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:l}),e&&!f&&v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"ListAdd",onClick:m,style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0}}),e&&!f&&v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"ListRemove",onClick:T,style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"}}),!u&&v.jsx(pi,{type:"Raw",className:Tr.Icon,icon:"Search",tooltip:i["Search(Button)"],onClick:k,style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4}})]})},HR=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:i,isTransitioning:l,onTransitionEnd:u,resources:f,errorMessages:p,placeholder:m,filterF:T,validate:k}=r;return!i&&!l?null:v.jsxs("div",{className:Tr.SubFilters,onTransitionEnd:u,style:{opacity:+i,visibility:+i?"visible":"hidden"},children:[e.map((b,x)=>{var _,I,w,C;if(b.filter.type==="String"){const D=[b.filter.value??"",Z=>t(b.filter,Z,x)],O=p[x],N=m??b.filter.placeholder??((_=b.def)==null?void 0:_.name),j=b.filter.icon,$=b.filter.iconTooltip??N;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:$,icon:j??"Type"}),v.jsx(oc,{className:Ne.clsx(Tr.Input,Tr.Sub),wrapProps:{style:{width:"100%"}},useValue:D,placeholder:N??f["Search(Placeholder)"],type:O?"Error":"Secondary",RightAddon:O&&v.jsx(pi,{type:"Raw",className:Tr.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:O}),autoFocus:b.filter.autoFocus,maxLength:b.filter.maxLength}),v.jsx(bn,{h:8})]},x)}else if(b.filter.type==="Select"){const D=[b.filter.value??null,$=>t(b.filter,$)],O=m??b.filter.placeholder??((I=b.def)==null?void 0:I.name),N=b.filter.icon,j=b.filter.iconTooltip??O;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:j,icon:N??"Menu"}),v.jsx(sc,{className:Ne.clsx(Tr.Input,Tr.Sub),options:b.filter.options,placeholder:O,OptionRenderer:b.filter.OptionRenderer,useSelect:D,arrowProps:{style:{marginRight:4}},type:"Secondary"}),v.jsx(bn,{h:8})]},x)}else if(b.filter.type==="Date"){const D=[b.filter.value,$=>t(b.filter,$)],O=m??b.filter.placeholder??((w=b.def)==null?void 0:w.name),N=b.filter.icon,j=b.filter.iconTooltip??O;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:j,icon:N??"CalendarDay"}),v.jsx(Sm,{type:"Raw",LeftAddon:v.jsx(bn,{w:12}),placeholder:O,className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Sub),useDate:D,minDate:b.filter.minDate,maxDate:b.filter.maxDate}),v.jsx(bn,{h:8})]},x)}else if(b.filter.type==="DateRange"){const D=[b.filter.value,Z=>t(b.filter,Z)],{noDefaultChoices:O}=b.filter,N=m??b.filter.placeholder??((C=b.def)==null?void 0:C.name),j=b.filter.icon,$=b.filter.iconTooltip??N;return v.jsxs(An,{style:{marginBottom:6},children:[v.jsx(_a,{tooltip:$,icon:j??"CalendarDay"}),v.jsx(_m,{type:"Raw",LeftAddon:v.jsx(bn,{w:12}),className:Ne.clsx(Tr.DatePicker,Tr.Input,Tr.Sub),useDateRange:D,placeholder:N,minDate:b.filter.minDate,maxDate:b.filter.maxDate,noDefaultChoices:O})]},x)}else return null}),v.jsxs(An,{className:Tr.Actions,children:[v.jsx(ji,{type:"Secondary",onClick:n,children:f["Clear(Button)"]}),v.jsx(ji,{onClick:()=>{k()&&T.apply()},children:f["Search(Button)"]})]})]})},_a=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return v.jsx(pi,{type:"Raw",className:Tr.LeftIcon,tooltip:t,icon:e,style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},zR="_ATableHeader_1hzfz_1",$R="_LeftHeaderContent_1hzfz_11",UR="_RightHeaderContent_1hzfz_19",WR="_TopRightAddon_1hzfz_27",VR="_HItem_1hzfz_32",Kc={ATableHeader:zR,LeftHeaderContent:$R,RightHeaderContent:UR,TopRightAddon:WR,HItem:VR},GR=r=>{const{defs:e,title:t,totalCount:n,useCheck:i,useFilteration:l,hasToggleFilteration:u,filterF:f,noFilter:p,noCount:m,isFiltered:T,TopLeftAddon:k,TopRightAddon:b,useSortation:x,resources:_=sn.ATable,filterType:I,placeholder:w}=r,[C]=S.useMemo(()=>i||[],[i]),D=S.useMemo(()=>T?_["Searched n items"](n):_["Total n items"](n),[_,T,n]),[O]=l,[N,j]=x,[$,Z]=S.useState(!1),ie=S.useMemo(()=>{const ve=rr.values(O).filter(ue=>ue.type==="DateRange"),de=rr.keys(O).filter(ue=>ve.includes(O[ue])),De=rr.keys(e).filter(ue=>e[ue].isSortable);return de.length>0?(de.length>1&&Z(!0),De.map(le=>de.includes(le)?[le+"_Asc",le+"_Desc"]:le).flat()):De},[e,O]),Y=S.useMemo(()=>r.isRowRendered&&ie.length>0,[ie.length,r.isRowRendered]),se=S.useCallback((ve,de)=>{j&&(N==null?void 0:N.defKey)===ve&&(N.isAsc===!0?j({defKey:ve,isAsc:!1,sortF:de}):j({defKey:ve,isAsc:!0,sortF:de}))},[N,j]),q=S.useRef(),[J,X]=S.useState(),[ne,ge]=S.useState(N?N.defKey:ie[0]),me=S.useMemo(()=>{if(!J)return{};const ve=e[J];return{SortUp:{onClick:()=>{j==null||j({defKey:J,isAsc:!0,sortF:ve.sortF}),ge(J)},content:()=>_["Sort up"]},SortDown:{onClick:()=>{j==null||j({defKey:J,isAsc:!1,sortF:ve.sortF}),ge(J)},content:()=>_["Sort down"]}}},[j,J,e,_]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Ne.clsx(Kc.ATableHeader),children:[v.jsxs("div",{className:Ne.clsx(Kc.LeftHeaderContent,"NoSelect"),children:[v.jsxs(An,{style:{marginBottom:Y?8:0},children:[k&&v.jsx("div",{className:Ne.clsx(Kc.HItem),children:k}),t&&v.jsx("div",{className:Ne.clsx(Kc.HItem),style:{whiteSpace:"nowrap"},children:t}),!m&&v.jsxs("div",{className:Ne.clsx(Kc.HItem),style:{maxHeight:14,...Y&&{minHeight:14,color:"var(--label-neutral)"}},children:[D,C&&C.length>0&&v.jsxs(v.Fragment,{children:[" / ",_["Checked n items"](C.length)]})]})]}),Y&&v.jsx(Q2,{type:"Tertiary",options:ie,useSelect:[ne,()=>{}],optionWidth:"fit-content",tabProps:{style:{marginRight:8}},optionProps:{style:{cursor:"default"},onClick:ve=>{var ue;const de=ve.currentTarget.textContent;if(de===_[de])return;ve.currentTarget.querySelector("svg")===null&&((ue=q.current)==null||ue.open(ve.currentTarget))}},OptionRenderer:ve=>{const de=/_Asc|_Desc/.test(ve.option),De=(N==null?void 0:N.defKey)===ve.option,ue=ne===ve.option,le=N==null?void 0:N.isAsc,fe=()=>{if(de){X(void 0),ge(ve.option);const[pe,ke]=ve.option.split("_"),ze=ke==="Asc";j==null||j({defKey:pe,isAsc:ze,sortF:e[pe].sortF})}else ue?se(ve.option,e[ve.option].sortF):X(ve.option)},Ve=de?(pe=>{const[ke,ze]=pe.split("_");return($?ke+" ":"")+_[ze]})(ve.option):_["Sort by x"](ve.option);return v.jsxs(An,{style:{height:"100%"},className:Ne.clsx(!(de&&ue)&&"IsClickable"),onClick:fe,children:[Ve,ue&&!de&&v.jsx(Br,{style:{marginRight:-5,marginLeft:4},icon:De?le?"RowSortUp":"RowSortDown":"RowSortBoth"})]},ve.option)}})]}),v.jsx(nu,{}),v.jsxs("div",{className:Ne.clsx(Kc.RightHeaderContent,"NoSelect"),children:[!p&&v.jsx(BR,{defs:e,useFilteration:l,hasToggleFilteration:u,filterF:f,isRowRendered:r.isRowRendered,isFilterSort:ie.length>0,resources:_,filterType:I,placeholder:w}),b&&v.jsx(An,{className:Ne.clsx(Kc.TopRightAddon),children:b})]})]}),v.jsx(Y2,{defs:me,actionRef:q,onClose:()=>X(void 0),width:100,position:sf.S})]})},ZR=r=>{const{defs:e,pk:t,defaultDef:n,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,useCheck:p,checkDisabled:m,isLoading:T,isDisabled:k,title:b,entireItems:x,onStateChange:_,pagedItems:I,totalCount:w,useFilteration:C,useToggleFilteration:D,filterType:O="Default",placeholder:N,rowHeight:j=40,usePagination:$,useSortation:Z,showRows:ie,noHeader:Y,noDefHeader:se,noFooter:q,noFilter:J,noCount:X,noMarking:ne,noStateChangeOnMount:ge,TopLeftAddon:me,TopRightAddon:ve,actionRef:de,RowRenderer:De,resources:ue}=r,le=S.useMemo(()=>({...sn.ATable,...ue}),[ue]),fe=S.useCallback((Re,nt)=>t!==void 0?Array.isArray(t)?t.every(at=>ol.isEqual(Re[at],nt[at])):ol.isEqual(Re[t],nt[t]):ol.isEqual(Re,nt),[t]),Me=S.useMemo(()=>({content:KR,...n}),[n]),Ve=S.useMemo(()=>{const Re={};return rr.keys(e).forEach(nt=>{const at=e[nt],Et={...Me,...at};Re[nt]=Et}),Re},[Me,e]),[pe,ke]=dn(ol.cloneDeep(C),{"":{type:"String",placeholder:le["Search(Placeholder)"],value:""}}),[ze,Ze]=dn(ol.cloneDeep(D),void 0),[et,xe]=S.useState(!1),[Se,be]=S.useMemo(()=>et&&ze?[ze,Ze]:[pe,ke],[pe,et,ke,Ze,ze]),[Le,$e]=S.useState(Se),bt=S.useMemo(()=>x?nl.applyFilteration(x,Ve,Le):[],[x,Ve,Le]),Ge=S.useMemo(()=>{for(const Re in Le){const nt=Le[Re];if(nt.value!==void 0&&nt.value!==null&&nt.value!=="")return!0}return!1},[Le]),[ht,mt]=dn(Z,void 0),Oe=S.useMemo(()=>nl.applySortation(bt,Ve,ht),[bt,Ve,ht]),He=S.useMemo(()=>{if(I!==void 0)return nl.applySortation(I,Ve,ht)},[I,Ve,ht]),[wt,_t]=dn($,{page:1,pageSize:50,pageRange:10}),vt=S.useMemo(()=>({pageSize:50,page:1,pageRange:10,...wt}),[wt]),{pagedItems:Tt,totalCount:Pe,pagination:Ke}=S.useMemo(()=>{const Re={...vt};if(He!==void 0){let nt=w??He.length;const at=nl.getPages(nt,Re.pageSize);return Re.page>at.length?Re.page=at.length:Re.page<1&&(Re.page=1),{pagedItems:He,totalCount:nt,pagination:Re}}else if(x!==void 0){const nt=w??Oe.length,at=nl.getPages(nt,Re.pageSize);return Re.page>at.length?Re.page=at.length:Re.page<1&&(Re.page=1),{pagedItems:nl.applyPagination(Oe,Re.page,Re.pageSize),totalCount:nt,pagination:Re}}else return{pagedItems:[],totalCount:w??0,pagination:vt}},[x,He,w,vt,Oe]),{pages:xt,rangedPages:jt}=S.useMemo(()=>nl.getRangedPages(Ke.page,Pe,Ke.pageSize,Ke.pageRange),[Pe,Ke.pageSize,Ke.page,Ke.pageRange]),[At,Be]=S.useMemo(()=>p??[],[p]),Lt=S.useMemo(()=>Tt.filter(Re=>At==null?void 0:At.some(nt=>fe(nt,Re))),[Tt,At,fe]),Dt=S.useMemo(()=>Tt.filter(Re=>!(m!=null&&m(Re))),[Tt,m]),dr=S.useMemo(()=>Dt.length>0&&Dt.every(Re=>Lt.some(nt=>fe(nt,Re))),[Lt,Dt,fe]),Er=S.useMemo(()=>dr?!1:Dt.some(Re=>Lt.some(nt=>fe(nt,Re))),[Lt,Dt,dr,fe]),Mr=S.useCallback(()=>{!At||!Be||k||Be(dr||Er?At.filter(Re=>!Dt.some(nt=>fe(nt,Re))):[...At,...Dt])},[At,Be,dr,Er,Dt,k,fe]),_e=S.useCallback(Re=>{!At||!Be||k||(At.some(nt=>fe(nt,Re))?Be(At.filter(nt=>!fe(nt,Re))):Be([...At,Re]))},[At,Be,k,fe]);S.useEffect(()=>{if(!Be||!At||!m)return;At.filter(nt=>m(nt)).length>0&&Be(At.filter(nt=>!m(nt)))},[m,At,Be]);const te=S.useMemo(()=>({hContent:At&&v.jsx(Qu,{useCheck:[dr,Mr],isIndeterminate:Er}),content:Re=>{const{item:nt}=Re,at=m==null?void 0:m(nt),Et=typeof at=="string"?at:void 0,lt=At==null?void 0:At.some(zt=>fe(zt,nt));return v.jsx(Qu,{style:{zIndex:1},isDisabled:at,tooltip:Et,onClick:zt=>zt.stopPropagation(),useCheck:[lt,()=>_e(nt)]})},minWidth:32,maxWidth:32}),[At,dr,Er,fe,Mr,m,_e]),tt=S.useMemo(()=>p?{checkDef:te,...Ve}:Ve,[Ve,te,p]),[ut,qt]=S.useState(!1),kt=S.useMemo(()=>T??ut,[T,ut]),Mt=S.useCallback(async Re=>{_&&(qt(!0),await _(Re),qt(!1)),_t==null||_t(Re.pagination),mt==null||mt(Re.sortation),$e(Re.filteration)},[_,_t,mt]);S.useEffect(()=>{if(!de)return;const Re=at=>{const Et={entireItems:x,filteration:Se,pagination:Ke,sortation:ht},lt=at?at(Et):Et;Mt(lt)},nt=at=>{const Et={...Ke,page:1},lt=at?at(Se):Se;Mt({entireItems:x,filteration:lt,pagination:Et,sortation:ht}),be==null||be(lt)};de.current={fireOnStateChange:Re,applyFilteration:nt}},[de,Mt,x,be,Se,Ke,ht]);const tr=S.useCallback(Re=>{Re.page===Ke.page&&Re.pageSize===Ke.pageSize||(Re.page<1?Re.page=1:Re.page>xt[xt.length-1]&&(Re.page=xt[xt.length-1]),Mt({entireItems:x,filteration:Le,pagination:Re,sortation:ht}))},[Ke,xt,Mt,x,Le,ht]),Xe=S.useCallback(Re=>{be&&be(Re)},[be]),rt=S.useCallback(Re=>{Mt({entireItems:x,filteration:Le,pagination:Ke,sortation:Re})},[Mt,x,Le,Ke]),Rt=S.useCallback(Re=>{tr({...Ke,page:Re})},[tr,Ke]),Ht=S.useCallback(()=>{Rt(Ke.page-1)},[Rt,Ke.page]),Ot=S.useCallback(()=>{Rt(Ke.page+1)},[Rt,Ke.page]),Xt=S.useCallback(()=>{Rt(1)},[Rt]),Or=S.useCallback(()=>{Rt(xt[xt.length-1])},[Rt,xt]),st=S.useMemo(()=>({move:Rt,movePrev:Ht,moveNext:Ot,moveFirst:Xt,moveLast:Or}),[Rt,Ht,Ot,Xt,Or]),St=S.useCallback(()=>{const Re={...Ke,page:1};Mt({entireItems:x,filteration:Se,pagination:Re,sortation:ht})},[Se,Ke,Mt,x,ht]),pt=S.useCallback(()=>{xe(!et)},[et]),Bt=S.useCallback(()=>{et&&ze?Ze==null||Ze(p0(ze)):be==null||be(p0(pe))},[et,ze,Ze,pe,be]),gr=S.useMemo(()=>({apply:St,toggle:pt,clear:Bt}),[St,pt,Bt]);ex(()=>{ge||Mt({entireItems:x,filteration:Se,pagination:Ke,sortation:ht})});const re=S.useMemo(()=>rr.map(Ve,([nt])=>Ve[nt].minWidth??ec).reduce((nt,at)=>nt+at,0),[Ve]),Ue=S.useMemo(()=>De!==void 0,[De]);return v.jsxs(Ur,{className:Yk.ATable,isDisabled:k,style:{minWidth:re},children:[!Y&&v.jsx(GR,{defs:Ve,title:b,totalCount:Pe,useCheck:p&&At?[At,Be]:void 0,useFilteration:[Se,Xe],useSortation:[ht,rt],isRowRendered:Ue,hasToggleFilteration:ze!==void 0,filterF:gr,noFilter:J,noCount:X,isFiltered:Ge,TopLeftAddon:me,TopRightAddon:ve,resources:le,filterType:O,placeholder:N}),v.jsx(mR,{defs:tt,isEqual:fe,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,isTableDisabled:k,appliedFilteration:Le,useSortation:[ht,rt],pagination:Ke,pagedItems:Tt,showRows:ie,isLoading:kt,noMarking:ne,noDefHeader:se,resources:le,RowRenderer:De,isRowRendered:Ue,rowHeight:j}),!q&&v.jsx(wR,{pages:xt,rangedPages:jt,pageF:st,pagination:Ke})]})},KR=r=>{const{defKey:e,item:t}=r;if(rr.hasKey(t,e)){const n=t[e];return rr.isReactNode(n)?n:null}else return null};function p0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const YR="_AText_1asz6_1",XR={AText:YR},ix=r=>{const{text:e,styled:t,style:n}=r,i=S.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?v.jsx("b",{children:e}):v.jsx("span",{style:n,children:e});if(typeof t=="string"){const l=e.split(t);return n==="bold"?l.map((u,f)=>v.jsxs(S.Fragment,{children:[Nd(u),f<l.length-1?v.jsx("b",{children:Nd(t)}):""]},f)):l.map((u,f)=>v.jsxs(S.Fragment,{children:[Nd(u),f<l.length-1&&v.jsx("span",{style:n,children:Nd(t)})]},f))}}else return e;else return e;else return""},[e,n,t]);return v.jsx("div",{className:Ne.clsx("Body1Reading",XR.AText,"NoSelect"),children:i})};function Nd(r){const e=r.split(`
162
+ `);return e.map((t,n)=>v.jsxs(S.Fragment,{children:[t,n!==e.length-1&&v.jsx("br",{})]},n))}const JR="_Base_sw5fu_7",QR="_ATextArea_sw5fu_11",e9="_Primary_sw5fu_34",t9="_UnAvailable_sw5fu_39",r9="_Secondary_sw5fu_47",n9="_ReadOnly_sw5fu_59",Fd={Base:JR,ATextArea:QR,Primary:e9,UnAvailable:t9,Secondary:r9,ReadOnly:n9,Error:"_Error_sw5fu_66"},i9=["Primary","Secondary","ReadOnly","Error"],o9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:i,useValue:l,rows:u,isReadonly:f,placeholder:p,maxLength:m,tabIndex:T,autoFocus:k,textAreaProps:b,wrapProps:x,helperText:_,label:I,wrapType:w,labelProps:C,...D}=r,O=S.useMemo(()=>s9(t)?"Error":n,[t,n]),N=S.useMemo(()=>O==="ReadOnly"?!0:f,[O,f]),j=S.useMemo(()=>D.isDisabled||D.isLoading,[D.isDisabled,D.isLoading]),[$,Z]=dn(l,""),ie=S.useCallback(q=>{Z&&Z(q)},[Z]),Y=S.useCallback(q=>{var J;j||(ie(q.target.value),(J=b==null?void 0:b.onChange)==null||J.call(b,q))},[j,ie,b]),se=S.useCallback(q=>{var J;if(!j){if((J=b==null?void 0:b.onKeyDown)==null||J.call(b,q),q.key==="Tab"){const X=q.currentTarget.selectionStart,ne=q.currentTarget.selectionEnd;q.currentTarget.value=q.currentTarget.value.substring(0,X)+" "+q.currentTarget.value.substring(ne),q.currentTarget.selectionStart=q.currentTarget.selectionEnd=X+1,q.preventDefault()}else q.key==="Enter"&&(e==null||e(q.currentTarget.value),q.stopPropagation());q.key!=="Escape"&&q.stopPropagation()}},[j,e,b]);return v.jsx(ic,{wrapProps:x,label:I,helperText:_,errorMessage:t,labelProps:C,wrapType:w??O==="Error"?"Error":"Default",children:v.jsx(Ur,{...D,className:Ne.clsx(Fd.Base,D.className),children:v.jsx("textarea",{...b,className:Ne.clsx(Fd.ATextArea,Fd[O],j&&Fd.UnAvailable,b==null?void 0:b.className),value:$,rows:u,readOnly:N,onChange:Y,onKeyDown:se,placeholder:p,maxLength:m,tabIndex:D.isDisabled||D.isLoading?-1:T,autoFocus:k,ref:i})})})};function s9(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}var ox=typeof global=="object"&&global&&global.Object===Object&&global,a9=typeof self=="object"&&self&&self.Object===Object&&self,Ea=ox||a9||Function("return this")(),ac=Ea.Symbol,sx=Object.prototype,l9=sx.hasOwnProperty,c9=sx.toString,Nf=ac?ac.toStringTag:void 0;function u9(r){var e=l9.call(r,Nf),t=r[Nf];try{r[Nf]=void 0;var n=!0}catch{}var i=c9.call(r);return n&&(e?r[Nf]=t:delete r[Nf]),i}var f9=Object.prototype,d9=f9.toString;function h9(r){return d9.call(r)}var p9="[object Null]",g9="[object Undefined]",g0=ac?ac.toStringTag:void 0;function af(r){return r==null?r===void 0?g9:p9:g0&&g0 in Object(r)?u9(r):h9(r)}function sl(r){return r!=null&&typeof r=="object"}var eu=Array.isArray;function lc(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function ax(r){return r}var m9="[object AsyncFunction]",v9="[object Function]",y9="[object GeneratorFunction]",b9="[object Proxy]";function wm(r){if(!lc(r))return!1;var e=af(r);return e==v9||e==y9||e==m9||e==b9}var ip=Ea["__core-js_shared__"],m0=function(){var r=/[^.]+$/.exec(ip&&ip.keys&&ip.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function _9(r){return!!m0&&m0 in r}var x9=Function.prototype,S9=x9.toString;function iu(r){if(r!=null){try{return S9.call(r)}catch{}try{return r+""}catch{}}return""}var C9=/[\\^$.*+?()[\]{}|]/g,w9=/^\[object .+?Constructor\]$/,A9=Function.prototype,T9=Object.prototype,E9=A9.toString,k9=T9.hasOwnProperty,R9=RegExp("^"+E9.call(k9).replace(C9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function I9(r){if(!lc(r)||_9(r))return!1;var e=wm(r)?R9:w9;return e.test(iu(r))}function L9(r,e){return r==null?void 0:r[e]}function ou(r,e){var t=L9(r,e);return I9(t)?t:void 0}var W1=ou(Ea,"WeakMap"),v0=Object.create,D9=function(){function r(){}return function(e){if(!lc(e))return{};if(v0)return v0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function M9(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 lx(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var O9=800,P9=16,N9=Date.now;function F9(r){var e=0,t=0;return function(){var n=N9(),i=P9-(n-t);if(t=n,i>0){if(++e>=O9)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function j9(r){return function(){return r}}var ih=function(){try{var r=ou(Object,"defineProperty");return r({},"",{}),r}catch{}}(),B9=ih?function(r,e){return ih(r,"toString",{configurable:!0,enumerable:!1,value:j9(e),writable:!0})}:ax,q9=F9(B9);function H9(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var z9=9007199254740991,$9=/^(?:0|[1-9]\d*)$/;function cx(r,e){var t=typeof r;return e=e??z9,!!e&&(t=="number"||t!="symbol"&&$9.test(r))&&r>-1&&r%1==0&&r<e}function Am(r,e,t){e=="__proto__"&&ih?ih(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function ld(r,e){return r===e||r!==r&&e!==e}var U9=Object.prototype,W9=U9.hasOwnProperty;function ux(r,e,t){var n=r[e];(!(W9.call(r,e)&&ld(n,t))||t===void 0&&!(e in r))&&Am(r,e,t)}function cd(r,e,t,n){var i=!t;t||(t={});for(var l=-1,u=e.length;++l<u;){var f=e[l],p=void 0;p===void 0&&(p=r[f]),i?Am(t,f,p):ux(t,f,p)}return t}var y0=Math.max;function V9(r,e,t){return e=y0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,l=y0(n.length-e,0),u=Array(l);++i<l;)u[i]=n[e+i];i=-1;for(var f=Array(e+1);++i<e;)f[i]=n[i];return f[e]=t(u),M9(r,this,f)}}function G9(r,e){return q9(V9(r,e,ax),r+"")}var Z9=9007199254740991;function fx(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Z9}function ph(r){return r!=null&&fx(r.length)&&!wm(r)}function K9(r,e,t){if(!lc(t))return!1;var n=typeof e;return(n=="number"?ph(t)&&cx(e,t.length):n=="string"&&e in t)?ld(t[e],r):!1}function Y9(r){return G9(function(e,t){var n=-1,i=t.length,l=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(l=r.length>3&&typeof l=="function"?(i--,l):void 0,u&&K9(t[0],t[1],u)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var f=t[n];f&&r(e,f,n,l)}return e})}var X9=Object.prototype;function Tm(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||X9;return r===t}function J9(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var Q9="[object Arguments]";function b0(r){return sl(r)&&af(r)==Q9}var dx=Object.prototype,e7=dx.hasOwnProperty,t7=dx.propertyIsEnumerable,V1=b0(function(){return arguments}())?b0:function(r){return sl(r)&&e7.call(r,"callee")&&!t7.call(r,"callee")};function r7(){return!1}var hx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_0=hx&&typeof module=="object"&&module&&!module.nodeType&&module,n7=_0&&_0.exports===hx,x0=n7?Ea.Buffer:void 0,i7=x0?x0.isBuffer:void 0,td=i7||r7,o7="[object Arguments]",s7="[object Array]",a7="[object Boolean]",l7="[object Date]",c7="[object Error]",u7="[object Function]",f7="[object Map]",d7="[object Number]",h7="[object Object]",p7="[object RegExp]",g7="[object Set]",m7="[object String]",v7="[object WeakMap]",y7="[object ArrayBuffer]",b7="[object DataView]",_7="[object Float32Array]",x7="[object Float64Array]",S7="[object Int8Array]",C7="[object Int16Array]",w7="[object Int32Array]",A7="[object Uint8Array]",T7="[object Uint8ClampedArray]",E7="[object Uint16Array]",k7="[object Uint32Array]",wn={};wn[_7]=wn[x7]=wn[S7]=wn[C7]=wn[w7]=wn[A7]=wn[T7]=wn[E7]=wn[k7]=!0;wn[o7]=wn[s7]=wn[y7]=wn[a7]=wn[b7]=wn[l7]=wn[c7]=wn[u7]=wn[f7]=wn[d7]=wn[h7]=wn[p7]=wn[g7]=wn[m7]=wn[v7]=!1;function R7(r){return sl(r)&&fx(r.length)&&!!wn[af(r)]}function Em(r){return function(e){return r(e)}}var px=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gf=px&&typeof module=="object"&&module&&!module.nodeType&&module,I7=Gf&&Gf.exports===px,op=I7&&ox.process,ef=function(){try{var r=Gf&&Gf.require&&Gf.require("util").types;return r||op&&op.binding&&op.binding("util")}catch{}}(),S0=ef&&ef.isTypedArray,km=S0?Em(S0):R7,L7=Object.prototype,D7=L7.hasOwnProperty;function gx(r,e){var t=eu(r),n=!t&&V1(r),i=!t&&!n&&td(r),l=!t&&!n&&!i&&km(r),u=t||n||i||l,f=u?J9(r.length,String):[],p=f.length;for(var m in r)(e||D7.call(r,m))&&!(u&&(m=="length"||i&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||cx(m,p)))&&f.push(m);return f}function mx(r,e){return function(t){return r(e(t))}}var M7=mx(Object.keys,Object),O7=Object.prototype,P7=O7.hasOwnProperty;function N7(r){if(!Tm(r))return M7(r);var e=[];for(var t in Object(r))P7.call(r,t)&&t!="constructor"&&e.push(t);return e}function Rm(r){return ph(r)?gx(r):N7(r)}function F7(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var j7=Object.prototype,B7=j7.hasOwnProperty;function q7(r){if(!lc(r))return F7(r);var e=Tm(r),t=[];for(var n in r)n=="constructor"&&(e||!B7.call(r,n))||t.push(n);return t}function ud(r){return ph(r)?gx(r,!0):q7(r)}var rd=ou(Object,"create");function H7(){this.__data__=rd?rd(null):{},this.size=0}function z7(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var $7="__lodash_hash_undefined__",U7=Object.prototype,W7=U7.hasOwnProperty;function V7(r){var e=this.__data__;if(rd){var t=e[r];return t===$7?void 0:t}return W7.call(e,r)?e[r]:void 0}var G7=Object.prototype,Z7=G7.hasOwnProperty;function K7(r){var e=this.__data__;return rd?e[r]!==void 0:Z7.call(e,r)}var Y7="__lodash_hash_undefined__";function X7(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=rd&&e===void 0?Y7:e,this}function tu(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])}}tu.prototype.clear=H7;tu.prototype.delete=z7;tu.prototype.get=V7;tu.prototype.has=K7;tu.prototype.set=X7;function J7(){this.__data__=[],this.size=0}function gh(r,e){for(var t=r.length;t--;)if(ld(r[t][0],e))return t;return-1}var Q7=Array.prototype,eI=Q7.splice;function tI(r){var e=this.__data__,t=gh(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():eI.call(e,t,1),--this.size,!0}function rI(r){var e=this.__data__,t=gh(e,r);return t<0?void 0:e[t][1]}function nI(r){return gh(this.__data__,r)>-1}function iI(r,e){var t=this.__data__,n=gh(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=J7;ul.prototype.delete=tI;ul.prototype.get=rI;ul.prototype.has=nI;ul.prototype.set=iI;var nd=ou(Ea,"Map");function oI(){this.size=0,this.__data__={hash:new tu,map:new(nd||ul),string:new tu}}function sI(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function mh(r,e){var t=r.__data__;return sI(e)?t[typeof e=="string"?"string":"hash"]:t.map}function aI(r){var e=mh(this,r).delete(r);return this.size-=e?1:0,e}function lI(r){return mh(this,r).get(r)}function cI(r){return mh(this,r).has(r)}function uI(r,e){var t=mh(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function su(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])}}su.prototype.clear=oI;su.prototype.delete=aI;su.prototype.get=lI;su.prototype.has=cI;su.prototype.set=uI;function vx(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var Im=mx(Object.getPrototypeOf,Object),fI="[object Object]",dI=Function.prototype,hI=Object.prototype,yx=dI.toString,pI=hI.hasOwnProperty,gI=yx.call(Object);function mI(r){if(!sl(r)||af(r)!=fI)return!1;var e=Im(r);if(e===null)return!0;var t=pI.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&yx.call(t)==gI}function vI(){this.__data__=new ul,this.size=0}function yI(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function bI(r){return this.__data__.get(r)}function _I(r){return this.__data__.has(r)}var xI=200;function SI(r,e){var t=this.__data__;if(t instanceof ul){var n=t.__data__;if(!nd||n.length<xI-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new su(n)}return t.set(r,e),this.size=t.size,this}function Sa(r){var e=this.__data__=new ul(r);this.size=e.size}Sa.prototype.clear=vI;Sa.prototype.delete=yI;Sa.prototype.get=bI;Sa.prototype.has=_I;Sa.prototype.set=SI;function CI(r,e){return r&&cd(e,Rm(e),r)}function wI(r,e){return r&&cd(e,ud(e),r)}var bx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C0=bx&&typeof module=="object"&&module&&!module.nodeType&&module,AI=C0&&C0.exports===bx,w0=AI?Ea.Buffer:void 0,A0=w0?w0.allocUnsafe:void 0;function _x(r,e){if(e)return r.slice();var t=r.length,n=A0?A0(t):new r.constructor(t);return r.copy(n),n}function TI(r,e){for(var t=-1,n=r==null?0:r.length,i=0,l=[];++t<n;){var u=r[t];e(u,t,r)&&(l[i++]=u)}return l}function xx(){return[]}var EI=Object.prototype,kI=EI.propertyIsEnumerable,T0=Object.getOwnPropertySymbols,Lm=T0?function(r){return r==null?[]:(r=Object(r),TI(T0(r),function(e){return kI.call(r,e)}))}:xx;function RI(r,e){return cd(r,Lm(r),e)}var II=Object.getOwnPropertySymbols,Sx=II?function(r){for(var e=[];r;)vx(e,Lm(r)),r=Im(r);return e}:xx;function LI(r,e){return cd(r,Sx(r),e)}function Cx(r,e,t){var n=e(r);return eu(r)?n:vx(n,t(r))}function G1(r){return Cx(r,Rm,Lm)}function DI(r){return Cx(r,ud,Sx)}var Z1=ou(Ea,"DataView"),K1=ou(Ea,"Promise"),Y1=ou(Ea,"Set"),E0="[object Map]",MI="[object Object]",k0="[object Promise]",R0="[object Set]",I0="[object WeakMap]",L0="[object DataView]",OI=iu(Z1),PI=iu(nd),NI=iu(K1),FI=iu(Y1),jI=iu(W1),Bs=af;(Z1&&Bs(new Z1(new ArrayBuffer(1)))!=L0||nd&&Bs(new nd)!=E0||K1&&Bs(K1.resolve())!=k0||Y1&&Bs(new Y1)!=R0||W1&&Bs(new W1)!=I0)&&(Bs=function(r){var e=af(r),t=e==MI?r.constructor:void 0,n=t?iu(t):"";if(n)switch(n){case OI:return L0;case PI:return E0;case NI:return k0;case FI:return R0;case jI:return I0}return e});var BI=Object.prototype,qI=BI.hasOwnProperty;function HI(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&qI.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var oh=Ea.Uint8Array;function Dm(r){var e=new r.constructor(r.byteLength);return new oh(e).set(new oh(r)),e}function zI(r,e){var t=e?Dm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var $I=/\w*$/;function UI(r){var e=new r.constructor(r.source,$I.exec(r));return e.lastIndex=r.lastIndex,e}var D0=ac?ac.prototype:void 0,M0=D0?D0.valueOf:void 0;function WI(r){return M0?Object(M0.call(r)):{}}function wx(r,e){var t=e?Dm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var VI="[object Boolean]",GI="[object Date]",ZI="[object Map]",KI="[object Number]",YI="[object RegExp]",XI="[object Set]",JI="[object String]",QI="[object Symbol]",eL="[object ArrayBuffer]",tL="[object DataView]",rL="[object Float32Array]",nL="[object Float64Array]",iL="[object Int8Array]",oL="[object Int16Array]",sL="[object Int32Array]",aL="[object Uint8Array]",lL="[object Uint8ClampedArray]",cL="[object Uint16Array]",uL="[object Uint32Array]";function fL(r,e,t){var n=r.constructor;switch(e){case eL:return Dm(r);case VI:case GI:return new n(+r);case tL:return zI(r,t);case rL:case nL:case iL:case oL:case sL:case aL:case lL:case cL:case uL:return wx(r,t);case ZI:return new n;case KI:case JI:return new n(r);case YI:return UI(r);case XI:return new n;case QI:return WI(r)}}function Ax(r){return typeof r.constructor=="function"&&!Tm(r)?D9(Im(r)):{}}var dL="[object Map]";function hL(r){return sl(r)&&Bs(r)==dL}var O0=ef&&ef.isMap,pL=O0?Em(O0):hL,gL="[object Set]";function mL(r){return sl(r)&&Bs(r)==gL}var P0=ef&&ef.isSet,vL=P0?Em(P0):mL,yL=1,bL=2,_L=4,Tx="[object Arguments]",xL="[object Array]",SL="[object Boolean]",CL="[object Date]",wL="[object Error]",Ex="[object Function]",AL="[object GeneratorFunction]",TL="[object Map]",EL="[object Number]",kx="[object Object]",kL="[object RegExp]",RL="[object Set]",IL="[object String]",LL="[object Symbol]",DL="[object WeakMap]",ML="[object ArrayBuffer]",OL="[object DataView]",PL="[object Float32Array]",NL="[object Float64Array]",FL="[object Int8Array]",jL="[object Int16Array]",BL="[object Int32Array]",qL="[object Uint8Array]",HL="[object Uint8ClampedArray]",zL="[object Uint16Array]",$L="[object Uint32Array]",yn={};yn[Tx]=yn[xL]=yn[ML]=yn[OL]=yn[SL]=yn[CL]=yn[PL]=yn[NL]=yn[FL]=yn[jL]=yn[BL]=yn[TL]=yn[EL]=yn[kx]=yn[kL]=yn[RL]=yn[IL]=yn[LL]=yn[qL]=yn[HL]=yn[zL]=yn[$L]=!0;yn[wL]=yn[Ex]=yn[DL]=!1;function Kd(r,e,t,n,i,l){var u,f=e&yL,p=e&bL,m=e&_L;if(u!==void 0)return u;if(!lc(r))return r;var T=eu(r);if(T){if(u=HI(r),!f)return lx(r,u)}else{var k=Bs(r),b=k==Ex||k==AL;if(td(r))return _x(r,f);if(k==kx||k==Tx||b&&!i){if(u=p||b?{}:Ax(r),!f)return p?LI(r,wI(u,r)):RI(r,CI(u,r))}else{if(!yn[k])return i?r:{};u=fL(r,k,f)}}l||(l=new Sa);var x=l.get(r);if(x)return x;l.set(r,u),vL(r)?r.forEach(function(w){u.add(Kd(w,e,t,w,r,l))}):pL(r)&&r.forEach(function(w,C){u.set(C,Kd(w,e,t,C,r,l))});var _=m?p?DI:G1:p?ud:Rm,I=T?void 0:_(r);return H9(I||r,function(w,C){I&&(C=w,w=r[C]),ux(u,C,Kd(w,e,t,C,r,l))}),u}var UL=1,WL=4;function Ku(r){return Kd(r,UL|WL)}var VL="__lodash_hash_undefined__";function GL(r){return this.__data__.set(r,VL),this}function ZL(r){return this.__data__.has(r)}function sh(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new su;++e<t;)this.add(r[e])}sh.prototype.add=sh.prototype.push=GL;sh.prototype.has=ZL;function KL(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 YL(r,e){return r.has(e)}var XL=1,JL=2;function Rx(r,e,t,n,i,l){var u=t&XL,f=r.length,p=e.length;if(f!=p&&!(u&&p>f))return!1;var m=l.get(r),T=l.get(e);if(m&&T)return m==e&&T==r;var k=-1,b=!0,x=t&JL?new sh:void 0;for(l.set(r,e),l.set(e,r);++k<f;){var _=r[k],I=e[k];if(n)var w=u?n(I,_,k,e,r,l):n(_,I,k,r,e,l);if(w!==void 0){if(w)continue;b=!1;break}if(x){if(!KL(e,function(C,D){if(!YL(x,D)&&(_===C||i(_,C,t,n,l)))return x.push(D)})){b=!1;break}}else if(!(_===I||i(_,I,t,n,l))){b=!1;break}}return l.delete(r),l.delete(e),b}function QL(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function eD(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var tD=1,rD=2,nD="[object Boolean]",iD="[object Date]",oD="[object Error]",sD="[object Map]",aD="[object Number]",lD="[object RegExp]",cD="[object Set]",uD="[object String]",fD="[object Symbol]",dD="[object ArrayBuffer]",hD="[object DataView]",N0=ac?ac.prototype:void 0,sp=N0?N0.valueOf:void 0;function pD(r,e,t,n,i,l,u){switch(t){case hD:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case dD:return!(r.byteLength!=e.byteLength||!l(new oh(r),new oh(e)));case nD:case iD:case aD:return ld(+r,+e);case oD:return r.name==e.name&&r.message==e.message;case lD:case uD:return r==e+"";case sD:var f=QL;case cD:var p=n&tD;if(f||(f=eD),r.size!=e.size&&!p)return!1;var m=u.get(r);if(m)return m==e;n|=rD,u.set(r,e);var T=Rx(f(r),f(e),n,i,l,u);return u.delete(r),T;case fD:if(sp)return sp.call(r)==sp.call(e)}return!1}var gD=1,mD=Object.prototype,vD=mD.hasOwnProperty;function yD(r,e,t,n,i,l){var u=t&gD,f=G1(r),p=f.length,m=G1(e),T=m.length;if(p!=T&&!u)return!1;for(var k=p;k--;){var b=f[k];if(!(u?b in e:vD.call(e,b)))return!1}var x=l.get(r),_=l.get(e);if(x&&_)return x==e&&_==r;var I=!0;l.set(r,e),l.set(e,r);for(var w=u;++k<p;){b=f[k];var C=r[b],D=e[b];if(n)var O=u?n(D,C,b,e,r,l):n(C,D,b,r,e,l);if(!(O===void 0?C===D||i(C,D,t,n,l):O)){I=!1;break}w||(w=b=="constructor")}if(I&&!w){var N=r.constructor,j=e.constructor;N!=j&&"constructor"in r&&"constructor"in e&&!(typeof N=="function"&&N instanceof N&&typeof j=="function"&&j instanceof j)&&(I=!1)}return l.delete(r),l.delete(e),I}var bD=1,F0="[object Arguments]",j0="[object Array]",jd="[object Object]",_D=Object.prototype,B0=_D.hasOwnProperty;function xD(r,e,t,n,i,l){var u=eu(r),f=eu(e),p=u?j0:Bs(r),m=f?j0:Bs(e);p=p==F0?jd:p,m=m==F0?jd:m;var T=p==jd,k=m==jd,b=p==m;if(b&&td(r)){if(!td(e))return!1;u=!0,T=!1}if(b&&!T)return l||(l=new Sa),u||km(r)?Rx(r,e,t,n,i,l):pD(r,e,p,t,n,i,l);if(!(t&bD)){var x=T&&B0.call(r,"__wrapped__"),_=k&&B0.call(e,"__wrapped__");if(x||_){var I=x?r.value():r,w=_?e.value():e;return l||(l=new Sa),i(I,w,t,n,l)}}return b?(l||(l=new Sa),yD(r,e,t,n,i,l)):!1}function Ix(r,e,t,n,i){return r===e?!0:r==null||e==null||!sl(r)&&!sl(e)?r!==r&&e!==e:xD(r,e,t,n,Ix,i)}function SD(r){return function(e,t,n){for(var i=-1,l=Object(e),u=n(e),f=u.length;f--;){var p=u[++i];if(t(l[p],p,l)===!1)break}return e}}var CD=SD();function X1(r,e,t){(t!==void 0&&!ld(r[e],t)||t===void 0&&!(e in r))&&Am(r,e,t)}function wD(r){return sl(r)&&ph(r)}function J1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function AD(r){return cd(r,ud(r))}function TD(r,e,t,n,i,l,u){var f=J1(r,t),p=J1(e,t),m=u.get(p);if(m){X1(r,t,m);return}var T=l?l(f,p,t+"",r,e,u):void 0,k=T===void 0;if(k){var b=eu(p),x=!b&&td(p),_=!b&&!x&&km(p);T=p,b||x||_?eu(f)?T=f:wD(f)?T=lx(f):x?(k=!1,T=_x(p,!0)):_?(k=!1,T=wx(p,!0)):T=[]:mI(p)||V1(p)?(T=f,V1(f)?T=AD(f):(!lc(f)||wm(f))&&(T=Ax(p))):k=!1}k&&(u.set(p,T),i(T,p,n,l,u),u.delete(p)),X1(r,t,T)}function Lx(r,e,t,n,i){r!==e&&CD(e,function(l,u){if(i||(i=new Sa),lc(l))TD(r,e,u,t,Lx,n,i);else{var f=n?n(J1(r,u),l,u+"",r,e,i):void 0;f===void 0&&(f=l),X1(r,u,f)}},ud)}function Mm(r,e){return Ix(r,e)}var nc=Y9(function(r,e,t){Lx(r,e,t)}),er=(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))(er||{});class Aa{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const i=er.TYPE&er.ATTRIBUTE;this.scope=n.scope!=null?n.scope&er.LEVEL|i:er.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 Yu extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const Dx=class Q1{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 i=this.query(t);if(i==null)throw new Yu(`Unable to create ${t} blot`);const l=i,u=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(n),f=new l(e,u,n);return Q1.blots.set(f.domNode,f),f}find(e,t=!1){return Q1.find(e,t)}query(e,t=er.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&er.LEVEL&er.BLOCK?n=this.types.block:e&er.LEVEL&er.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&er.LEVEL&n.scope&&t&er.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,i="attrName"in t;if(!n&&!i)throw new Yu("Invalid definition");if(n&&t.blotName==="abstract")throw new Yu("Cannot register abstract class");const l=n?t.blotName:i?t.attrName:void 0;return this.types[l]=t,i?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(u=>u.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(u=>{(this.tags[u]==null||t.className==null)&&(this.tags[u]=t)}))),t})}};Dx.blots=new WeakMap;let tf=Dx;function q0(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class ED extends Aa{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){q0(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(q0(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const Vs=ED;function ap(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class kD extends Aa{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[ap(this.keyName)]=t,!0):!1}remove(e){e.style[ap(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[ap(this.keyName)];return this.canAdd(e,t)?t:""}}const cc=kD;class RD{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=tf.find(this.domNode);if(e==null)return;const t=Aa.keys(this.domNode),n=Vs.keys(this.domNode),i=cc.keys(this.domNode);t.concat(n).concat(i).forEach(l=>{const u=e.scroll.query(l,er.ATTRIBUTE);u instanceof Aa&&(this.attributes[u.attrName]=u)})}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 vh=RD,Mx=class{constructor(e,t){this.scroll=e,this.domNode=t,tf.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Yu("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),tf.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,i){const l=this.isolate(e,t);if(this.scroll.query(n,er.BLOT)!=null&&i)l.wrap(n,i);else if(this.scroll.query(n,er.ATTRIBUTE)!=null){const u=this.scroll.create(this.statics.scope);l.wrap(u),u.format(n,i)}}insertAt(e,t,n){const i=n==null?this.scroll.create("text",t):this.scroll.create(t,n),l=this.split(e);this.parent.insertBefore(i,l||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 Yu(`Cannot wrap ${e}`);return n.appendChild(this),n}};Mx.blotName="abstract";let Ox=Mx;const Px=class extends Ox{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}}};Px.scope=er.INLINE_BLOT;let ID=Px;const $i=ID;class LD{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(),i=0;for(;n;){if(n===e)return i;i+=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 i=n();for(;i;){const l=i.length();if(e<l||t&&e===l&&(i.next==null||i.next.length()!==0))return[i,e];e-=l,i=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[i,l]=this.find(e);let u=e-l;const f=this.iterator(i);let p=f();for(;p&&u<e+t;){const m=p.length();e>u?n(p,e-u,Math.min(t,u+m-e)):n(p,0,Math.min(m,e+t-u)),u+=m,p=f()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let i=n();for(;i;)t=e(t,i),i=n();return t}}function H0(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(er.INLINE);return Array.from(r.childNodes).forEach(i=>{n.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const Nx=class Ql extends Ox{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,Ql.uiClass&&this.uiNode.classList.add(Ql.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new LD,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=H0(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Yu)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,i,l)=>{n.deleteAt(i,l)})}descendant(e,t=0){const[n,i]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Ql?n.descendant(e,i):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let i=[],l=n;return this.children.forEachAt(t,n,(u,f,p)=>{(e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e)&&i.push(u),u instanceof Ql&&(i=i.concat(u.descendants(e,f,l))),l-=p}),i}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===er.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Ql?t.unwrap():t.remove())})}formatAt(e,t,n,i){this.children.forEachAt(e,t,(l,u,f)=>{l.formatAt(u,f,n,i)})}insertAt(e,t,n){const[i,l]=this.children.find(e);if(i)i.insertAt(l,t,n);else{const u=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(u)}}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,i]=this.children.find(e,t),l=[[this,e]];return n instanceof Ql?l.concat(n.path(i,t)):(n!=null&&l.push([n,i]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Ql&&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(),(i,l,u)=>{const f=i.split(l,t);f!=null&&n.appendChild(f)}),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=[],i=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(n.push(...l.addedNodes),i.push(...l.removedNodes))}),i.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const u=this.scroll.find(l);u!=null&&(u.domNode.parentNode==null||u.domNode.parentNode===this.domNode)&&u.detach()}),n.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,u)=>l===u?0:l.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let u=null;l.nextSibling!=null&&(u=this.scroll.find(l.nextSibling));const f=H0(l,this.scroll);(f.next!==u||f.next==null)&&(f.parent!=null&&f.parent.removeChild(this),this.insertBefore(f,u||void 0))}),this.enforceAllowedChildren()}};Nx.uiClass="";let DD=Nx;const $s=DD;function MD(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 qu=class Hu extends $s{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Hu.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 vh(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Hu||(n=n.wrap(Hu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,er.INLINE);if(n==null)return;n instanceof Aa?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,i){this.formats()[n]!=null||this.scroll.query(n,er.ATTRIBUTE)?this.isolate(e,t).format(n,i):super.formatAt(e,t,n,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Hu&&n.prev===this&&MD(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 Hu&&this.attributes.move(n),n}};qu.allowedChildren=[qu,$i],qu.blotName="inline",qu.scope=er.INLINE_BLOT,qu.tagName="SPAN";let OD=qu;const Om=OD,zu=class em extends $s{static create(e){return super.create(e)}static formats(e,t){const n=t.query(em.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 vh(this.domNode)}format(e,t){const n=this.scroll.query(e,er.BLOCK);n!=null&&(n instanceof Aa?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(em.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,i){this.scroll.query(n,er.BLOCK)!=null?this.format(n,i):super.formatAt(e,t,n,i)}insertAt(e,t,n){if(n==null||this.scroll.query(t,er.INLINE)!=null)super.insertAt(e,t,n);else{const i=this.split(e);if(i!=null){const l=this.scroll.create(t,n);i.parent.insertBefore(l,i)}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()}};zu.blotName="block",zu.scope=er.BLOCK_BLOT,zu.tagName="P",zu.allowedChildren=[Om,zu,$i];let PD=zu;const id=PD,tm=class extends $s{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,i){super.formatAt(e,t,n,i),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())}};tm.blotName="container",tm.scope=er.BLOCK_BLOT;let ND=tm;const yh=ND;class FD extends $i{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,i){e===0&&t===this.length()?this.format(n,i):super.formatAt(e,t,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const $o=FD,jD={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},BD=100,$u=class extends $s{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,jD),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=er.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,i){this.update(),super.formatAt(e,t,n,i)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const l=(p,m=!0)=>{p==null||p===this||p.domNode.parentNode!=null&&(n.has(p.domNode)||n.set(p.domNode,[]),m&&l(p.parent))},u=p=>{n.has(p.domNode)&&(p instanceof $s&&p.children.forEach(u),n.delete(p.domNode),p.optimize(t))};let f=e;for(let p=0;f.length>0;p+=1){if(p>=BD)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(m=>{const T=this.find(m.target,!0);T!=null&&(T.domNode===m.target&&(m.type==="childList"?(l(this.find(m.previousSibling,!1)),Array.from(m.addedNodes).forEach(k=>{const b=this.find(k,!1);l(b,!1),b instanceof $s&&b.children.forEach(x=>{l(x,!1)})})):m.type==="attributes"&&l(T.prev)),l(T))}),this.children.forEach(u),f=Array.from(this.observer.takeRecords()),i=f.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(i=>{const l=this.find(i.target,!0);return l==null?null:n.has(l.domNode)?(n.get(l.domNode).push(i),null):(n.set(l.domNode,[i]),l)}).forEach(i=>{i!=null&&i!==this&&n.has(i.domNode)&&i.update(n.get(i.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};$u.blotName="scroll",$u.defaultChild=id,$u.allowedChildren=[id,yh],$u.scope=er.BLOCK_BLOT,$u.tagName="DIV";let qD=$u;const Pm=qD,rm=class Fx extends $i{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 Fx&&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}};rm.blotName="text",rm.scope=er.INLINE_BLOT;let HD=rm;const ah=HD,zD=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Aa,AttributorStore:vh,BlockBlot:id,ClassAttributor:Vs,ContainerBlot:yh,EmbedBlot:$o,InlineBlot:Om,LeafBlot:$i,ParentBlot:$s,Registry:tf,Scope:er,ScrollBlot:Pm,StyleAttributor:cc,TextBlot:ah},Symbol.toStringTag,{value:"Module"}));var Bd={exports:{}},lp,z0;function $D(){if(z0)return lp;z0=1;var r=-1,e=1,t=0;function n(q,J,X,ne,ge){if(q===J)return q?[[t,q]]:[];if(X!=null){var me=Y(q,J,X);if(me)return me}var ve=f(q,J),de=q.substring(0,ve);q=q.substring(ve),J=J.substring(ve),ve=m(q,J);var De=q.substring(q.length-ve);q=q.substring(0,q.length-ve),J=J.substring(0,J.length-ve);var ue=i(q,J);return de&&ue.unshift([t,de]),De&&ue.push([t,De]),D(ue,ge),ne&&k(ue),ue}function i(q,J){var X;if(!q)return[[e,J]];if(!J)return[[r,q]];var ne=q.length>J.length?q:J,ge=q.length>J.length?J:q,me=ne.indexOf(ge);if(me!==-1)return X=[[e,ne.substring(0,me)],[t,ge],[e,ne.substring(me+ge.length)]],q.length>J.length&&(X[0][0]=X[2][0]=r),X;if(ge.length===1)return[[r,q],[e,J]];var ve=T(q,J);if(ve){var de=ve[0],De=ve[1],ue=ve[2],le=ve[3],fe=ve[4],Me=n(de,ue),Ve=n(De,le);return Me.concat([[t,fe]],Ve)}return l(q,J)}function l(q,J){for(var X=q.length,ne=J.length,ge=Math.ceil((X+ne)/2),me=ge,ve=2*ge,de=new Array(ve),De=new Array(ve),ue=0;ue<ve;ue++)de[ue]=-1,De[ue]=-1;de[me+1]=0,De[me+1]=0;for(var le=X-ne,fe=le%2!==0,Me=0,Ve=0,pe=0,ke=0,ze=0;ze<ge;ze++){for(var Ze=-ze+Me;Ze<=ze-Ve;Ze+=2){var et=me+Ze,xe;Ze===-ze||Ze!==ze&&de[et-1]<de[et+1]?xe=de[et+1]:xe=de[et-1]+1;for(var Se=xe-Ze;xe<X&&Se<ne&&q.charAt(xe)===J.charAt(Se);)xe++,Se++;if(de[et]=xe,xe>X)Ve+=2;else if(Se>ne)Me+=2;else if(fe){var be=me+le-Ze;if(be>=0&&be<ve&&De[be]!==-1){var Le=X-De[be];if(xe>=Le)return u(q,J,xe,Se)}}}for(var $e=-ze+pe;$e<=ze-ke;$e+=2){var be=me+$e,Le;$e===-ze||$e!==ze&&De[be-1]<De[be+1]?Le=De[be+1]:Le=De[be-1]+1;for(var bt=Le-$e;Le<X&&bt<ne&&q.charAt(X-Le-1)===J.charAt(ne-bt-1);)Le++,bt++;if(De[be]=Le,Le>X)ke+=2;else if(bt>ne)pe+=2;else if(!fe){var et=me+le-$e;if(et>=0&&et<ve&&de[et]!==-1){var xe=de[et],Se=me+xe-et;if(Le=X-Le,xe>=Le)return u(q,J,xe,Se)}}}}return[[r,q],[e,J]]}function u(q,J,X,ne){var ge=q.substring(0,X),me=J.substring(0,ne),ve=q.substring(X),de=J.substring(ne),De=n(ge,me),ue=n(ve,de);return De.concat(ue)}function f(q,J){if(!q||!J||q.charAt(0)!==J.charAt(0))return 0;for(var X=0,ne=Math.min(q.length,J.length),ge=ne,me=0;X<ge;)q.substring(me,ge)==J.substring(me,ge)?(X=ge,me=X):ne=ge,ge=Math.floor((ne-X)/2+X);return O(q.charCodeAt(ge-1))&&ge--,ge}function p(q,J){var X=q.length,ne=J.length;if(X==0||ne==0)return 0;X>ne?q=q.substring(X-ne):X<ne&&(J=J.substring(0,X));var ge=Math.min(X,ne);if(q==J)return ge;for(var me=0,ve=1;;){var de=q.substring(ge-ve),De=J.indexOf(de);if(De==-1)return me;ve+=De,(De==0||q.substring(ge-ve)==J.substring(0,ve))&&(me=ve,ve++)}}function m(q,J){if(!q||!J||q.slice(-1)!==J.slice(-1))return 0;for(var X=0,ne=Math.min(q.length,J.length),ge=ne,me=0;X<ge;)q.substring(q.length-ge,q.length-me)==J.substring(J.length-ge,J.length-me)?(X=ge,me=X):ne=ge,ge=Math.floor((ne-X)/2+X);return N(q.charCodeAt(q.length-ge))&&ge--,ge}function T(q,J){var X=q.length>J.length?q:J,ne=q.length>J.length?J:q;if(X.length<4||ne.length*2<X.length)return null;function ge(Ve,pe,ke){for(var ze=Ve.substring(ke,ke+Math.floor(Ve.length/4)),Ze=-1,et="",xe,Se,be,Le;(Ze=pe.indexOf(ze,Ze+1))!==-1;){var $e=f(Ve.substring(ke),pe.substring(Ze)),bt=m(Ve.substring(0,ke),pe.substring(0,Ze));et.length<bt+$e&&(et=pe.substring(Ze-bt,Ze)+pe.substring(Ze,Ze+$e),xe=Ve.substring(0,ke-bt),Se=Ve.substring(ke+$e),be=pe.substring(0,Ze-bt),Le=pe.substring(Ze+$e))}return et.length*2>=Ve.length?[xe,Se,be,Le,et]:null}var me=ge(X,ne,Math.ceil(X.length/4)),ve=ge(X,ne,Math.ceil(X.length/2)),de;if(!me&&!ve)return null;ve?me?de=me[4].length>ve[4].length?me:ve:de=ve:de=me;var De,ue,le,fe;q.length>J.length?(De=de[0],ue=de[1],le=de[2],fe=de[3]):(le=de[0],fe=de[1],De=de[2],ue=de[3]);var Me=de[4];return[De,ue,le,fe,Me]}function k(q){for(var J=!1,X=[],ne=0,ge=null,me=0,ve=0,de=0,De=0,ue=0;me<q.length;)q[me][0]==t?(X[ne++]=me,ve=De,de=ue,De=0,ue=0,ge=q[me][1]):(q[me][0]==e?De+=q[me][1].length:ue+=q[me][1].length,ge&&ge.length<=Math.max(ve,de)&&ge.length<=Math.max(De,ue)&&(q.splice(X[ne-1],0,[r,ge]),q[X[ne-1]+1][0]=e,ne--,ne--,me=ne>0?X[ne-1]:-1,ve=0,de=0,De=0,ue=0,ge=null,J=!0)),me++;for(J&&D(q),C(q),me=1;me<q.length;){if(q[me-1][0]==r&&q[me][0]==e){var le=q[me-1][1],fe=q[me][1],Me=p(le,fe),Ve=p(fe,le);Me>=Ve?(Me>=le.length/2||Me>=fe.length/2)&&(q.splice(me,0,[t,fe.substring(0,Me)]),q[me-1][1]=le.substring(0,le.length-Me),q[me+1][1]=fe.substring(Me),me++):(Ve>=le.length/2||Ve>=fe.length/2)&&(q.splice(me,0,[t,le.substring(0,Ve)]),q[me-1][0]=e,q[me-1][1]=fe.substring(0,fe.length-Ve),q[me+1][0]=r,q[me+1][1]=le.substring(Ve),me++),me++}me++}}var b=/[^a-zA-Z0-9]/,x=/\s/,_=/[\r\n]/,I=/\n\r?\n$/,w=/^\r?\n\r?\n/;function C(q){function J(Ve,pe){if(!Ve||!pe)return 6;var ke=Ve.charAt(Ve.length-1),ze=pe.charAt(0),Ze=ke.match(b),et=ze.match(b),xe=Ze&&ke.match(x),Se=et&&ze.match(x),be=xe&&ke.match(_),Le=Se&&ze.match(_),$e=be&&Ve.match(I),bt=Le&&pe.match(w);return $e||bt?5:be||Le?4:Ze&&!xe&&Se?3:xe||Se?2:Ze||et?1:0}for(var X=1;X<q.length-1;){if(q[X-1][0]==t&&q[X+1][0]==t){var ne=q[X-1][1],ge=q[X][1],me=q[X+1][1],ve=m(ne,ge);if(ve){var de=ge.substring(ge.length-ve);ne=ne.substring(0,ne.length-ve),ge=de+ge.substring(0,ge.length-ve),me=de+me}for(var De=ne,ue=ge,le=me,fe=J(ne,ge)+J(ge,me);ge.charAt(0)===me.charAt(0);){ne+=ge.charAt(0),ge=ge.substring(1)+me.charAt(0),me=me.substring(1);var Me=J(ne,ge)+J(ge,me);Me>=fe&&(fe=Me,De=ne,ue=ge,le=me)}q[X-1][1]!=De&&(De?q[X-1][1]=De:(q.splice(X-1,1),X--),q[X][1]=ue,le?q[X+1][1]=le:(q.splice(X+1,1),X--))}X++}}function D(q,J){q.push([t,""]);for(var X=0,ne=0,ge=0,me="",ve="",de;X<q.length;){if(X<q.length-1&&!q[X][1]){q.splice(X,1);continue}switch(q[X][0]){case e:ge++,ve+=q[X][1],X++;break;case r:ne++,me+=q[X][1],X++;break;case t:var De=X-ge-ne-1;if(J){if(De>=0&&$(q[De][1])){var ue=q[De][1].slice(-1);if(q[De][1]=q[De][1].slice(0,-1),me=ue+me,ve=ue+ve,!q[De][1]){q.splice(De,1),X--;var le=De-1;q[le]&&q[le][0]===e&&(ge++,ve=q[le][1]+ve,le--),q[le]&&q[le][0]===r&&(ne++,me=q[le][1]+me,le--),De=le}}if(j(q[X][1])){var ue=q[X][1].charAt(0);q[X][1]=q[X][1].slice(1),me+=ue,ve+=ue}}if(X<q.length-1&&!q[X][1]){q.splice(X,1);break}if(me.length>0||ve.length>0){me.length>0&&ve.length>0&&(de=f(ve,me),de!==0&&(De>=0?q[De][1]+=ve.substring(0,de):(q.splice(0,0,[t,ve.substring(0,de)]),X++),ve=ve.substring(de),me=me.substring(de)),de=m(ve,me),de!==0&&(q[X][1]=ve.substring(ve.length-de)+q[X][1],ve=ve.substring(0,ve.length-de),me=me.substring(0,me.length-de)));var fe=ge+ne;me.length===0&&ve.length===0?(q.splice(X-fe,fe),X=X-fe):me.length===0?(q.splice(X-fe,fe,[e,ve]),X=X-fe+1):ve.length===0?(q.splice(X-fe,fe,[r,me]),X=X-fe+1):(q.splice(X-fe,fe,[r,me],[e,ve]),X=X-fe+2)}X!==0&&q[X-1][0]===t?(q[X-1][1]+=q[X][1],q.splice(X,1)):X++,ge=0,ne=0,me="",ve="";break}}q[q.length-1][1]===""&&q.pop();var Me=!1;for(X=1;X<q.length-1;)q[X-1][0]===t&&q[X+1][0]===t&&(q[X][1].substring(q[X][1].length-q[X-1][1].length)===q[X-1][1]?(q[X][1]=q[X-1][1]+q[X][1].substring(0,q[X][1].length-q[X-1][1].length),q[X+1][1]=q[X-1][1]+q[X+1][1],q.splice(X-1,1),Me=!0):q[X][1].substring(0,q[X+1][1].length)==q[X+1][1]&&(q[X-1][1]+=q[X+1][1],q[X][1]=q[X][1].substring(q[X+1][1].length)+q[X+1][1],q.splice(X+1,1),Me=!0)),X++;Me&&D(q,J)}function O(q){return q>=55296&&q<=56319}function N(q){return q>=56320&&q<=57343}function j(q){return N(q.charCodeAt(0))}function $(q){return O(q.charCodeAt(q.length-1))}function Z(q){for(var J=[],X=0;X<q.length;X++)q[X][1].length>0&&J.push(q[X]);return J}function ie(q,J,X,ne){return $(q)||j(ne)?null:Z([[t,q],[r,J],[e,X],[t,ne]])}function Y(q,J,X){var ne=typeof X=="number"?{index:X,length:0}:X.oldRange,ge=typeof X=="number"?null:X.newRange,me=q.length,ve=J.length;if(ne.length===0&&(ge===null||ge.length===0)){var de=ne.index,De=q.slice(0,de),ue=q.slice(de),le=ge?ge.index:null;e:{var fe=de+ve-me;if(le!==null&&le!==fe||fe<0||fe>ve)break e;var Me=J.slice(0,fe),Ve=J.slice(fe);if(Ve!==ue)break e;var pe=Math.min(de,fe),ke=De.slice(0,pe),ze=Me.slice(0,pe);if(ke!==ze)break e;var Ze=De.slice(pe),et=Me.slice(pe);return ie(ke,Ze,et,ue)}e:{if(le!==null&&le!==de)break e;var xe=de,Me=J.slice(0,xe),Ve=J.slice(xe);if(Me!==De)break e;var Se=Math.min(me-xe,ve-xe),be=ue.slice(ue.length-Se),Le=Ve.slice(Ve.length-Se);if(be!==Le)break e;var Ze=ue.slice(0,ue.length-Se),et=Ve.slice(0,Ve.length-Se);return ie(De,Ze,et,be)}}if(ne.length>0&&ge&&ge.length===0)e:{var ke=q.slice(0,ne.index),be=q.slice(ne.index+ne.length),pe=ke.length,Se=be.length;if(ve<pe+Se)break e;var ze=J.slice(0,pe),Le=J.slice(ve-Se);if(ke!==ze||be!==Le)break e;var Ze=q.slice(pe,me-Se),et=J.slice(pe,ve-Se);return ie(ke,Ze,et,be)}return null}function se(q,J,X,ne){return n(q,J,X,ne,!0)}return se.INSERT=e,se.DELETE=r,se.EQUAL=t,lp=se,lp}var zf={exports:{}};zf.exports;var $0;function jx(){return $0||($0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object Boolean]",p="[object Date]",m="[object Error]",T="[object Function]",k="[object GeneratorFunction]",b="[object Map]",x="[object Number]",_="[object Object]",I="[object Promise]",w="[object RegExp]",C="[object Set]",D="[object String]",O="[object Symbol]",N="[object WeakMap]",j="[object ArrayBuffer]",$="[object DataView]",Z="[object Float32Array]",ie="[object Float64Array]",Y="[object Int8Array]",se="[object Int16Array]",q="[object Int32Array]",J="[object Uint8Array]",X="[object Uint8ClampedArray]",ne="[object Uint16Array]",ge="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,ve=/\w*$/,de=/^\[object .+?Constructor\]$/,De=/^(?:0|[1-9]\d*)$/,ue={};ue[l]=ue[u]=ue[j]=ue[$]=ue[f]=ue[p]=ue[Z]=ue[ie]=ue[Y]=ue[se]=ue[q]=ue[b]=ue[x]=ue[_]=ue[w]=ue[C]=ue[D]=ue[O]=ue[J]=ue[X]=ue[ne]=ue[ge]=!0,ue[m]=ue[T]=ue[N]=!1;var le=typeof xi=="object"&&xi&&xi.Object===Object&&xi,fe=typeof self=="object"&&self&&self.Object===Object&&self,Me=le||fe||Function("return this")(),Ve=e&&!e.nodeType&&e,pe=Ve&&!0&&r&&!r.nodeType&&r,ke=pe&&pe.exports===Ve;function ze(L,G){return L.set(G[0],G[1]),L}function Ze(L,G){return L.add(G),L}function et(L,G){for(var ce=-1,qe=L?L.length:0;++ce<qe&&G(L[ce],ce,L)!==!1;);return L}function xe(L,G){for(var ce=-1,qe=G.length,Jt=L.length;++ce<qe;)L[Jt+ce]=G[ce];return L}function Se(L,G,ce,qe){for(var Jt=-1,Vt=L?L.length:0;++Jt<Vt;)ce=G(ce,L[Jt],Jt,L);return ce}function be(L,G){for(var ce=-1,qe=Array(L);++ce<L;)qe[ce]=G(ce);return qe}function Le(L,G){return L==null?void 0:L[G]}function $e(L){var G=!1;if(L!=null&&typeof L.toString!="function")try{G=!!(L+"")}catch{}return G}function bt(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe,Jt){ce[++G]=[Jt,qe]}),ce}function Ge(L,G){return function(ce){return L(G(ce))}}function ht(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe){ce[++G]=qe}),ce}var mt=Array.prototype,Oe=Function.prototype,He=Object.prototype,wt=Me["__core-js_shared__"],_t=function(){var L=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),vt=Oe.toString,Tt=He.hasOwnProperty,Pe=He.toString,Ke=RegExp("^"+vt.call(Tt).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ke?Me.Buffer:void 0,jt=Me.Symbol,At=Me.Uint8Array,Be=Ge(Object.getPrototypeOf,Object),Lt=Object.create,Dt=He.propertyIsEnumerable,dr=mt.splice,Er=Object.getOwnPropertySymbols,Mr=xt?xt.isBuffer:void 0,_e=Ge(Object.keys,Object),te=Pt(Me,"DataView"),tt=Pt(Me,"Map"),ut=Pt(Me,"Promise"),qt=Pt(Me,"Set"),kt=Pt(Me,"WeakMap"),Mt=Pt(Object,"create"),tr=Qr(te),Xe=Qr(tt),rt=Qr(ut),Rt=Qr(qt),Ht=Qr(kt),Ot=jt?jt.prototype:void 0,Xt=Ot?Ot.valueOf:void 0;function Or(L){var G=-1,ce=L?L.length:0;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function st(){this.__data__=Mt?Mt(null):{}}function St(L){return this.has(L)&&delete this.__data__[L]}function pt(L){var G=this.__data__;if(Mt){var ce=G[L];return ce===n?void 0:ce}return Tt.call(G,L)?G[L]:void 0}function Bt(L){var G=this.__data__;return Mt?G[L]!==void 0:Tt.call(G,L)}function gr(L,G){var ce=this.__data__;return ce[L]=Mt&&G===void 0?n:G,this}Or.prototype.clear=st,Or.prototype.delete=St,Or.prototype.get=pt,Or.prototype.has=Bt,Or.prototype.set=gr;function re(L){var G=-1,ce=L?L.length:0;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function Ue(){this.__data__=[]}function Re(L){var G=this.__data__,ce=Jn(G,L);if(ce<0)return!1;var qe=G.length-1;return ce==qe?G.pop():dr.call(G,ce,1),!0}function nt(L){var G=this.__data__,ce=Jn(G,L);return ce<0?void 0:G[ce][1]}function at(L){return Jn(this.__data__,L)>-1}function Et(L,G){var ce=this.__data__,qe=Jn(ce,L);return qe<0?ce.push([L,G]):ce[qe][1]=G,this}re.prototype.clear=Ue,re.prototype.delete=Re,re.prototype.get=nt,re.prototype.has=at,re.prototype.set=Et;function lt(L){var G=-1,ce=L?L.length:0;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function zt(){this.__data__={hash:new Or,map:new(tt||re),string:new Or}}function ar(L){return ft(this,L).delete(L)}function Zt(L){return ft(this,L).get(L)}function ir(L){return ft(this,L).has(L)}function Sr(L,G){return ft(this,L).set(L,G),this}lt.prototype.clear=zt,lt.prototype.delete=ar,lt.prototype.get=Zt,lt.prototype.has=ir,lt.prototype.set=Sr;function nr(L){this.__data__=new re(L)}function Wr(){this.__data__=new re}function Gr(L){return this.__data__.delete(L)}function mn(L){return this.__data__.get(L)}function Jr(L){return this.__data__.has(L)}function Yn(L,G){var ce=this.__data__;if(ce instanceof re){var qe=ce.__data__;if(!tt||qe.length<t-1)return qe.push([L,G]),this;ce=this.__data__=new lt(qe)}return ce.set(L,G),this}nr.prototype.clear=Wr,nr.prototype.delete=Gr,nr.prototype.get=mn,nr.prototype.has=Jr,nr.prototype.set=Yn;function Rn(L,G){var ce=xo(L)||ei(L)?be(L.length,String):[],qe=ce.length,Jt=!!qe;for(var Vt in L)Tt.call(L,Vt)&&!(Jt&&(Vt=="length"||xn(Vt,qe)))&&ce.push(Vt);return ce}function Xn(L,G,ce){var qe=L[G];(!(Tt.call(L,G)&&zn(qe,ce))||ce===void 0&&!(G in L))&&(L[G]=ce)}function Jn(L,G){for(var ce=L.length;ce--;)if(zn(L[ce][0],G))return ce;return-1}function an(L,G){return L&&Ee(G,Pr(G),L)}function Nn(L,G,ce,qe,Jt,Vt,mr){var xr;if(qe&&(xr=Vt?qe(L,Jt,Vt,mr):qe(L)),xr!==void 0)return xr;if(!ri(L))return L;var hr=xo(L);if(hr){if(xr=_r(L),!G)return Q(L,xr)}else{var wr=$t(L),en=wr==T||wr==k;if(Ln(L))return En(L,G);if(wr==_||wr==l||en&&!Vt){if($e(L))return Vt?L:{};if(xr=Yr(en?{}:L),!G)return we(L,an(xr,L))}else{if(!ue[wr])return Vt?L:{};xr=_n(L,wr,Nn,G)}}mr||(mr=new nr);var Dn=mr.get(L);if(Dn)return Dn;if(mr.set(L,xr),!hr)var Zr=ce?je(L):Pr(L);return et(Zr||L,function(qr,tn){Zr&&(tn=qr,qr=L[tn]),Xn(xr,tn,Nn(qr,G,ce,qe,tn,L,mr))}),xr}function Tn(L){return ri(L)?Lt(L):{}}function gi(L,G,ce){var qe=G(L);return xo(L)?qe:xe(qe,ce(L))}function Ci(L){return Pe.call(L)}function wi(L){if(!ri(L)||Hn(L))return!1;var G=So(L)||$e(L)?Ke:de;return G.test(Qr(L))}function In(L){if(!Ai(L))return _e(L);var G=[];for(var ce in Object(L))Tt.call(L,ce)&&ce!="constructor"&&G.push(ce);return G}function En(L,G){if(G)return L.slice();var ce=new L.constructor(L.length);return L.copy(ce),ce}function hn(L){var G=new L.constructor(L.byteLength);return new At(G).set(new At(L)),G}function Qn(L,G){var ce=G?hn(L.buffer):L.buffer;return new L.constructor(ce,L.byteOffset,L.byteLength)}function ln(L,G,ce){var qe=G?ce(bt(L),!0):bt(L);return Se(qe,ze,new L.constructor)}function vn(L){var G=new L.constructor(L.source,ve.exec(L));return G.lastIndex=L.lastIndex,G}function A(L,G,ce){var qe=G?ce(ht(L),!0):ht(L);return Se(qe,Ze,new L.constructor)}function F(L){return Xt?Object(Xt.call(L)):{}}function V(L,G){var ce=G?hn(L.buffer):L.buffer;return new L.constructor(ce,L.byteOffset,L.length)}function Q(L,G){var ce=-1,qe=L.length;for(G||(G=Array(qe));++ce<qe;)G[ce]=L[ce];return G}function Ee(L,G,ce,qe){ce||(ce={});for(var Jt=-1,Vt=G.length;++Jt<Vt;){var mr=G[Jt],xr=void 0;Xn(ce,mr,xr===void 0?L[mr]:xr)}return ce}function we(L,G){return Ee(L,Ut(L),G)}function je(L){return gi(L,Pr,Ut)}function ft(L,G){var ce=L.__data__;return ci(G)?ce[typeof G=="string"?"string":"hash"]:ce.map}function Pt(L,G){var ce=Le(L,G);return wi(ce)?ce:void 0}var Ut=Er?Ge(Er,Object):Cr,$t=Ci;(te&&$t(new te(new ArrayBuffer(1)))!=$||tt&&$t(new tt)!=b||ut&&$t(ut.resolve())!=I||qt&&$t(new qt)!=C||kt&&$t(new kt)!=N)&&($t=function(L){var G=Pe.call(L),ce=G==_?L.constructor:void 0,qe=ce?Qr(ce):void 0;if(qe)switch(qe){case tr:return $;case Xe:return b;case rt:return I;case Rt:return C;case Ht:return N}return G});function _r(L){var G=L.length,ce=L.constructor(G);return G&&typeof L[0]=="string"&&Tt.call(L,"index")&&(ce.index=L.index,ce.input=L.input),ce}function Yr(L){return typeof L.constructor=="function"&&!Ai(L)?Tn(Be(L)):{}}function _n(L,G,ce,qe){var Jt=L.constructor;switch(G){case j:return hn(L);case f:case p:return new Jt(+L);case $:return Qn(L,qe);case Z:case ie:case Y:case se:case q:case J:case X:case ne:case ge:return V(L,qe);case b:return ln(L,qe,ce);case x:case D:return new Jt(L);case w:return vn(L);case C:return A(L,qe,ce);case O:return F(L)}}function xn(L,G){return G=G??i,!!G&&(typeof L=="number"||De.test(L))&&L>-1&&L%1==0&&L<G}function ci(L){var G=typeof L;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?L!=="__proto__":L===null}function Hn(L){return!!_t&&_t in L}function Ai(L){var G=L&&L.constructor,ce=typeof G=="function"&&G.prototype||He;return L===ce}function Qr(L){if(L!=null){try{return vt.call(L)}catch{}try{return L+""}catch{}}return""}function mi(L){return Nn(L,!0,!0)}function zn(L,G){return L===G||L!==L&&G!==G}function ei(L){return oo(L)&&Tt.call(L,"callee")&&(!Dt.call(L,"callee")||Pe.call(L)==l)}var xo=Array.isArray;function io(L){return L!=null&&ti(L.length)&&!So(L)}function oo(L){return Wi(L)&&io(L)}var Ln=Mr||Lr;function So(L){var G=ri(L)?Pe.call(L):"";return G==T||G==k}function ti(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=i}function ri(L){var G=typeof L;return!!L&&(G=="object"||G=="function")}function Wi(L){return!!L&&typeof L=="object"}function Pr(L){return io(L)?Rn(L):In(L)}function Cr(){return[]}function Lr(){return!1}r.exports=mi}(zf,zf.exports)),zf.exports}var $f={exports:{}};$f.exports;var U0;function Bx(){return U0||(U0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=1,l=2,u=9007199254740991,f="[object Arguments]",p="[object Array]",m="[object AsyncFunction]",T="[object Boolean]",k="[object Date]",b="[object Error]",x="[object Function]",_="[object GeneratorFunction]",I="[object Map]",w="[object Number]",C="[object Null]",D="[object Object]",O="[object Promise]",N="[object Proxy]",j="[object RegExp]",$="[object Set]",Z="[object String]",ie="[object Symbol]",Y="[object Undefined]",se="[object WeakMap]",q="[object ArrayBuffer]",J="[object DataView]",X="[object Float32Array]",ne="[object Float64Array]",ge="[object Int8Array]",me="[object Int16Array]",ve="[object Int32Array]",de="[object Uint8Array]",De="[object Uint8ClampedArray]",ue="[object Uint16Array]",le="[object Uint32Array]",fe=/[\\^$.*+?()[\]{}|]/g,Me=/^\[object .+?Constructor\]$/,Ve=/^(?:0|[1-9]\d*)$/,pe={};pe[X]=pe[ne]=pe[ge]=pe[me]=pe[ve]=pe[de]=pe[De]=pe[ue]=pe[le]=!0,pe[f]=pe[p]=pe[q]=pe[T]=pe[J]=pe[k]=pe[b]=pe[x]=pe[I]=pe[w]=pe[D]=pe[j]=pe[$]=pe[Z]=pe[se]=!1;var ke=typeof xi=="object"&&xi&&xi.Object===Object&&xi,ze=typeof self=="object"&&self&&self.Object===Object&&self,Ze=ke||ze||Function("return this")(),et=e&&!e.nodeType&&e,xe=et&&!0&&r&&!r.nodeType&&r,Se=xe&&xe.exports===et,be=Se&&ke.process,Le=function(){try{return be&&be.binding&&be.binding("util")}catch{}}(),$e=Le&&Le.isTypedArray;function bt(L,G){for(var ce=-1,qe=L==null?0:L.length,Jt=0,Vt=[];++ce<qe;){var mr=L[ce];G(mr,ce,L)&&(Vt[Jt++]=mr)}return Vt}function Ge(L,G){for(var ce=-1,qe=G.length,Jt=L.length;++ce<qe;)L[Jt+ce]=G[ce];return L}function ht(L,G){for(var ce=-1,qe=L==null?0:L.length;++ce<qe;)if(G(L[ce],ce,L))return!0;return!1}function mt(L,G){for(var ce=-1,qe=Array(L);++ce<L;)qe[ce]=G(ce);return qe}function Oe(L){return function(G){return L(G)}}function He(L,G){return L.has(G)}function wt(L,G){return L==null?void 0:L[G]}function _t(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe,Jt){ce[++G]=[Jt,qe]}),ce}function vt(L,G){return function(ce){return L(G(ce))}}function Tt(L){var G=-1,ce=Array(L.size);return L.forEach(function(qe){ce[++G]=qe}),ce}var Pe=Array.prototype,Ke=Function.prototype,xt=Object.prototype,jt=Ze["__core-js_shared__"],At=Ke.toString,Be=xt.hasOwnProperty,Lt=function(){var L=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),Dt=xt.toString,dr=RegExp("^"+At.call(Be).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Er=Se?Ze.Buffer:void 0,Mr=Ze.Symbol,_e=Ze.Uint8Array,te=xt.propertyIsEnumerable,tt=Pe.splice,ut=Mr?Mr.toStringTag:void 0,qt=Object.getOwnPropertySymbols,kt=Er?Er.isBuffer:void 0,Mt=vt(Object.keys,Object),tr=Ut(Ze,"DataView"),Xe=Ut(Ze,"Map"),rt=Ut(Ze,"Promise"),Rt=Ut(Ze,"Set"),Ht=Ut(Ze,"WeakMap"),Ot=Ut(Object,"create"),Xt=Qr(tr),Or=Qr(Xe),st=Qr(rt),St=Qr(Rt),pt=Qr(Ht),Bt=Mr?Mr.prototype:void 0,gr=Bt?Bt.valueOf:void 0;function re(L){var G=-1,ce=L==null?0:L.length;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function Ue(){this.__data__=Ot?Ot(null):{},this.size=0}function Re(L){var G=this.has(L)&&delete this.__data__[L];return this.size-=G?1:0,G}function nt(L){var G=this.__data__;if(Ot){var ce=G[L];return ce===n?void 0:ce}return Be.call(G,L)?G[L]:void 0}function at(L){var G=this.__data__;return Ot?G[L]!==void 0:Be.call(G,L)}function Et(L,G){var ce=this.__data__;return this.size+=this.has(L)?0:1,ce[L]=Ot&&G===void 0?n:G,this}re.prototype.clear=Ue,re.prototype.delete=Re,re.prototype.get=nt,re.prototype.has=at,re.prototype.set=Et;function lt(L){var G=-1,ce=L==null?0:L.length;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function zt(){this.__data__=[],this.size=0}function ar(L){var G=this.__data__,ce=En(G,L);if(ce<0)return!1;var qe=G.length-1;return ce==qe?G.pop():tt.call(G,ce,1),--this.size,!0}function Zt(L){var G=this.__data__,ce=En(G,L);return ce<0?void 0:G[ce][1]}function ir(L){return En(this.__data__,L)>-1}function Sr(L,G){var ce=this.__data__,qe=En(ce,L);return qe<0?(++this.size,ce.push([L,G])):ce[qe][1]=G,this}lt.prototype.clear=zt,lt.prototype.delete=ar,lt.prototype.get=Zt,lt.prototype.has=ir,lt.prototype.set=Sr;function nr(L){var G=-1,ce=L==null?0:L.length;for(this.clear();++G<ce;){var qe=L[G];this.set(qe[0],qe[1])}}function Wr(){this.size=0,this.__data__={hash:new re,map:new(Xe||lt),string:new re}}function Gr(L){var G=Pt(this,L).delete(L);return this.size-=G?1:0,G}function mn(L){return Pt(this,L).get(L)}function Jr(L){return Pt(this,L).has(L)}function Yn(L,G){var ce=Pt(this,L),qe=ce.size;return ce.set(L,G),this.size+=ce.size==qe?0:1,this}nr.prototype.clear=Wr,nr.prototype.delete=Gr,nr.prototype.get=mn,nr.prototype.has=Jr,nr.prototype.set=Yn;function Rn(L){var G=-1,ce=L==null?0:L.length;for(this.__data__=new nr;++G<ce;)this.add(L[G])}function Xn(L){return this.__data__.set(L,n),this}function Jn(L){return this.__data__.has(L)}Rn.prototype.add=Rn.prototype.push=Xn,Rn.prototype.has=Jn;function an(L){var G=this.__data__=new lt(L);this.size=G.size}function Nn(){this.__data__=new lt,this.size=0}function Tn(L){var G=this.__data__,ce=G.delete(L);return this.size=G.size,ce}function gi(L){return this.__data__.get(L)}function Ci(L){return this.__data__.has(L)}function wi(L,G){var ce=this.__data__;if(ce instanceof lt){var qe=ce.__data__;if(!Xe||qe.length<t-1)return qe.push([L,G]),this.size=++ce.size,this;ce=this.__data__=new nr(qe)}return ce.set(L,G),this.size=ce.size,this}an.prototype.clear=Nn,an.prototype.delete=Tn,an.prototype.get=gi,an.prototype.has=Ci,an.prototype.set=wi;function In(L,G){var ce=ei(L),qe=!ce&&zn(L),Jt=!ce&&!qe&&io(L),Vt=!ce&&!qe&&!Jt&&Wi(L),mr=ce||qe||Jt||Vt,xr=mr?mt(L.length,String):[],hr=xr.length;for(var wr in L)Be.call(L,wr)&&!(mr&&(wr=="length"||Jt&&(wr=="offset"||wr=="parent")||Vt&&(wr=="buffer"||wr=="byteLength"||wr=="byteOffset")||_n(wr,hr)))&&xr.push(wr);return xr}function En(L,G){for(var ce=L.length;ce--;)if(mi(L[ce][0],G))return ce;return-1}function hn(L,G,ce){var qe=G(L);return ei(L)?qe:Ge(qe,ce(L))}function Qn(L){return L==null?L===void 0?Y:C:ut&&ut in Object(L)?$t(L):Ai(L)}function ln(L){return ri(L)&&Qn(L)==f}function vn(L,G,ce,qe,Jt){return L===G?!0:L==null||G==null||!ri(L)&&!ri(G)?L!==L&&G!==G:A(L,G,ce,qe,vn,Jt)}function A(L,G,ce,qe,Jt,Vt){var mr=ei(L),xr=ei(G),hr=mr?p:Yr(L),wr=xr?p:Yr(G);hr=hr==f?D:hr,wr=wr==f?D:wr;var en=hr==D,Dn=wr==D,Zr=hr==wr;if(Zr&&io(L)){if(!io(G))return!1;mr=!0,en=!1}if(Zr&&!en)return Vt||(Vt=new an),mr||Wi(L)?Ee(L,G,ce,qe,Jt,Vt):we(L,G,hr,ce,qe,Jt,Vt);if(!(ce&i)){var qr=en&&Be.call(L,"__wrapped__"),tn=Dn&&Be.call(G,"__wrapped__");if(qr||tn){var ui=qr?L.value():L,vi=tn?G.value():G;return Vt||(Vt=new an),Jt(ui,vi,ce,qe,Vt)}}return Zr?(Vt||(Vt=new an),je(L,G,ce,qe,Jt,Vt)):!1}function F(L){if(!ti(L)||ci(L))return!1;var G=Ln(L)?dr:Me;return G.test(Qr(L))}function V(L){return ri(L)&&So(L.length)&&!!pe[Qn(L)]}function Q(L){if(!Hn(L))return Mt(L);var G=[];for(var ce in Object(L))Be.call(L,ce)&&ce!="constructor"&&G.push(ce);return G}function Ee(L,G,ce,qe,Jt,Vt){var mr=ce&i,xr=L.length,hr=G.length;if(xr!=hr&&!(mr&&hr>xr))return!1;var wr=Vt.get(L);if(wr&&Vt.get(G))return wr==G;var en=-1,Dn=!0,Zr=ce&l?new Rn:void 0;for(Vt.set(L,G),Vt.set(G,L);++en<xr;){var qr=L[en],tn=G[en];if(qe)var ui=mr?qe(tn,qr,en,G,L,Vt):qe(qr,tn,en,L,G,Vt);if(ui!==void 0){if(ui)continue;Dn=!1;break}if(Zr){if(!ht(G,function(vi,$n){if(!He(Zr,$n)&&(qr===vi||Jt(qr,vi,ce,qe,Vt)))return Zr.push($n)})){Dn=!1;break}}else if(!(qr===tn||Jt(qr,tn,ce,qe,Vt))){Dn=!1;break}}return Vt.delete(L),Vt.delete(G),Dn}function we(L,G,ce,qe,Jt,Vt,mr){switch(ce){case J:if(L.byteLength!=G.byteLength||L.byteOffset!=G.byteOffset)return!1;L=L.buffer,G=G.buffer;case q:return!(L.byteLength!=G.byteLength||!Vt(new _e(L),new _e(G)));case T:case k:case w:return mi(+L,+G);case b:return L.name==G.name&&L.message==G.message;case j:case Z:return L==G+"";case I:var xr=_t;case $:var hr=qe&i;if(xr||(xr=Tt),L.size!=G.size&&!hr)return!1;var wr=mr.get(L);if(wr)return wr==G;qe|=l,mr.set(L,G);var en=Ee(xr(L),xr(G),qe,Jt,Vt,mr);return mr.delete(L),en;case ie:if(gr)return gr.call(L)==gr.call(G)}return!1}function je(L,G,ce,qe,Jt,Vt){var mr=ce&i,xr=ft(L),hr=xr.length,wr=ft(G),en=wr.length;if(hr!=en&&!mr)return!1;for(var Dn=hr;Dn--;){var Zr=xr[Dn];if(!(mr?Zr in G:Be.call(G,Zr)))return!1}var qr=Vt.get(L);if(qr&&Vt.get(G))return qr==G;var tn=!0;Vt.set(L,G),Vt.set(G,L);for(var ui=mr;++Dn<hr;){Zr=xr[Dn];var vi=L[Zr],$n=G[Zr];if(qe)var Co=mr?qe($n,vi,Zr,G,L,Vt):qe(vi,$n,Zr,L,G,Vt);if(!(Co===void 0?vi===$n||Jt(vi,$n,ce,qe,Vt):Co)){tn=!1;break}ui||(ui=Zr=="constructor")}if(tn&&!ui){var Vi=L.constructor,cn=G.constructor;Vi!=cn&&"constructor"in L&&"constructor"in G&&!(typeof Vi=="function"&&Vi instanceof Vi&&typeof cn=="function"&&cn instanceof cn)&&(tn=!1)}return Vt.delete(L),Vt.delete(G),tn}function ft(L){return hn(L,Pr,_r)}function Pt(L,G){var ce=L.__data__;return xn(G)?ce[typeof G=="string"?"string":"hash"]:ce.map}function Ut(L,G){var ce=wt(L,G);return F(ce)?ce:void 0}function $t(L){var G=Be.call(L,ut),ce=L[ut];try{L[ut]=void 0;var qe=!0}catch{}var Jt=Dt.call(L);return qe&&(G?L[ut]=ce:delete L[ut]),Jt}var _r=qt?function(L){return L==null?[]:(L=Object(L),bt(qt(L),function(G){return te.call(L,G)}))}:Cr,Yr=Qn;(tr&&Yr(new tr(new ArrayBuffer(1)))!=J||Xe&&Yr(new Xe)!=I||rt&&Yr(rt.resolve())!=O||Rt&&Yr(new Rt)!=$||Ht&&Yr(new Ht)!=se)&&(Yr=function(L){var G=Qn(L),ce=G==D?L.constructor:void 0,qe=ce?Qr(ce):"";if(qe)switch(qe){case Xt:return J;case Or:return I;case st:return O;case St:return $;case pt:return se}return G});function _n(L,G){return G=G??u,!!G&&(typeof L=="number"||Ve.test(L))&&L>-1&&L%1==0&&L<G}function xn(L){var G=typeof L;return G=="string"||G=="number"||G=="symbol"||G=="boolean"?L!=="__proto__":L===null}function ci(L){return!!Lt&&Lt in L}function Hn(L){var G=L&&L.constructor,ce=typeof G=="function"&&G.prototype||xt;return L===ce}function Ai(L){return Dt.call(L)}function Qr(L){if(L!=null){try{return At.call(L)}catch{}try{return L+""}catch{}}return""}function mi(L,G){return L===G||L!==L&&G!==G}var zn=ln(function(){return arguments}())?ln:function(L){return ri(L)&&Be.call(L,"callee")&&!te.call(L,"callee")},ei=Array.isArray;function xo(L){return L!=null&&So(L.length)&&!Ln(L)}var io=kt||Lr;function oo(L,G){return vn(L,G)}function Ln(L){if(!ti(L))return!1;var G=Qn(L);return G==x||G==_||G==m||G==N}function So(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=u}function ti(L){var G=typeof L;return L!=null&&(G=="object"||G=="function")}function ri(L){return L!=null&&typeof L=="object"}var Wi=$e?Oe($e):V;function Pr(L){return xo(L)?In(L):Q(L)}function Cr(){return[]}function Lr(){return!1}r.exports=oo}($f,$f.exports)),$f.exports}var qd={},W0;function UD(){if(W0)return qd;W0=1,Object.defineProperty(qd,"__esModule",{value:!0});const r=jx(),e=Bx();var t;return function(n){function i(p={},m={},T=!1){typeof p!="object"&&(p={}),typeof m!="object"&&(m={});let k=r(m);T||(k=Object.keys(k).reduce((b,x)=>(k[x]!=null&&(b[x]=k[x]),b),{}));for(const b in p)p[b]!==void 0&&m[b]===void 0&&(k[b]=p[b]);return Object.keys(k).length>0?k:void 0}n.compose=i;function l(p={},m={}){typeof p!="object"&&(p={}),typeof m!="object"&&(m={});const T=Object.keys(p).concat(Object.keys(m)).reduce((k,b)=>(e(p[b],m[b])||(k[b]=m[b]===void 0?null:m[b]),k),{});return Object.keys(T).length>0?T:void 0}n.diff=l;function u(p={},m={}){p=p||{};const T=Object.keys(m).reduce((k,b)=>(m[b]!==p[b]&&p[b]!==void 0&&(k[b]=m[b]),k),{});return Object.keys(p).reduce((k,b)=>(p[b]!==m[b]&&m[b]===void 0&&(k[b]=null),k),T)}n.invert=u;function f(p,m,T=!1){if(typeof p!="object")return m;if(typeof m!="object")return;if(!T)return m;const k=Object.keys(m).reduce((b,x)=>(p[x]===void 0&&(b[x]=m[x]),b),{});return Object.keys(k).length>0?k:void 0}n.transform=f}(t||(t={})),qd.default=t,qd}var Hd={},V0;function qx(){if(V0)return Hd;V0=1,Object.defineProperty(Hd,"__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={})),Hd.default=r,Hd}var zd={},G0;function WD(){if(G0)return zd;G0=1,Object.defineProperty(zd,"__esModule",{value:!0});const r=qx();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 i=this.ops[this.index];if(i){const l=this.offset,u=r.default.length(i);if(n>=u-l?(n=u-l,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const f={};return i.attributes&&(f.attributes=i.attributes),typeof i.retain=="number"?f.retain=n:typeof i.retain=="object"&&i.retain!==null?f.retain=i.retain:typeof i.insert=="string"?f.insert=i.insert.substr(l,n):f.insert=i.insert,f}}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,i=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=n,this.index=i,[l].concat(u)}}else return[]}}return zd.default=e,zd}var Z0;function VD(){return Z0||(Z0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=$D(),n=jx(),i=Bx(),l=UD();e.AttributeMap=l.default;const u=qx();e.Op=u.default;const f=WD();e.OpIterator=f.default;const p="\0",m=(k,b)=>{if(typeof k!="object"||k===null)throw new Error(`cannot retain a ${typeof k}`);if(typeof b!="object"||b===null)throw new Error(`cannot retain a ${typeof b}`);const x=Object.keys(k)[0];if(!x||x!==Object.keys(b)[0])throw new Error(`embed types not matched: ${x} != ${Object.keys(b)[0]}`);return[x,k[x],b[x]]};class T{constructor(b){Array.isArray(b)?this.ops=b:b!=null&&Array.isArray(b.ops)?this.ops=b.ops:this.ops=[]}static registerEmbed(b,x){this.handlers[b]=x}static unregisterEmbed(b){delete this.handlers[b]}static getHandler(b){const x=this.handlers[b];if(!x)throw new Error(`no handlers for embed type "${b}"`);return x}insert(b,x){const _={};return typeof b=="string"&&b.length===0?this:(_.insert=b,x!=null&&typeof x=="object"&&Object.keys(x).length>0&&(_.attributes=x),this.push(_))}delete(b){return b<=0?this:this.push({delete:b})}retain(b,x){if(typeof b=="number"&&b<=0)return this;const _={retain:b};return x!=null&&typeof x=="object"&&Object.keys(x).length>0&&(_.attributes=x),this.push(_)}push(b){let x=this.ops.length,_=this.ops[x-1];if(b=n(b),typeof _=="object"){if(typeof b.delete=="number"&&typeof _.delete=="number")return this.ops[x-1]={delete:_.delete+b.delete},this;if(typeof _.delete=="number"&&b.insert!=null&&(x-=1,_=this.ops[x-1],typeof _!="object"))return this.ops.unshift(b),this;if(i(b.attributes,_.attributes)){if(typeof b.insert=="string"&&typeof _.insert=="string")return this.ops[x-1]={insert:_.insert+b.insert},typeof b.attributes=="object"&&(this.ops[x-1].attributes=b.attributes),this;if(typeof b.retain=="number"&&typeof _.retain=="number")return this.ops[x-1]={retain:_.retain+b.retain},typeof b.attributes=="object"&&(this.ops[x-1].attributes=b.attributes),this}}return x===this.ops.length?this.ops.push(b):this.ops.splice(x,0,b),this}chop(){const b=this.ops[this.ops.length-1];return b&&typeof b.retain=="number"&&!b.attributes&&this.ops.pop(),this}filter(b){return this.ops.filter(b)}forEach(b){this.ops.forEach(b)}map(b){return this.ops.map(b)}partition(b){const x=[],_=[];return this.forEach(I=>{(b(I)?x:_).push(I)}),[x,_]}reduce(b,x){return this.ops.reduce(b,x)}changeLength(){return this.reduce((b,x)=>x.insert?b+u.default.length(x):x.delete?b-x.delete:b,0)}length(){return this.reduce((b,x)=>b+u.default.length(x),0)}slice(b=0,x=1/0){const _=[],I=new f.default(this.ops);let w=0;for(;w<x&&I.hasNext();){let C;w<b?C=I.next(b-w):(C=I.next(x-w),_.push(C)),w+=u.default.length(C)}return new T(_)}compose(b){const x=new f.default(this.ops),_=new f.default(b.ops),I=[],w=_.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let D=w.retain;for(;x.peekType()==="insert"&&x.peekLength()<=D;)D-=x.peekLength(),I.push(x.next());w.retain-D>0&&_.next(w.retain-D)}const C=new T(I);for(;x.hasNext()||_.hasNext();)if(_.peekType()==="insert")C.push(_.next());else if(x.peekType()==="delete")C.push(x.next());else{const D=Math.min(x.peekLength(),_.peekLength()),O=x.next(D),N=_.next(D);if(N.retain){const j={};if(typeof O.retain=="number")j.retain=typeof N.retain=="number"?D:N.retain;else if(typeof N.retain=="number")O.retain==null?j.insert=O.insert:j.retain=O.retain;else{const Z=O.retain==null?"insert":"retain",[ie,Y,se]=m(O[Z],N.retain),q=T.getHandler(ie);j[Z]={[ie]:q.compose(Y,se,Z==="retain")}}const $=l.default.compose(O.attributes,N.attributes,typeof O.retain=="number");if($&&(j.attributes=$),C.push(j),!_.hasNext()&&i(C.ops[C.ops.length-1],j)){const Z=new T(x.rest());return C.concat(Z).chop()}}else typeof N.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&C.push(N)}return C.chop()}concat(b){const x=new T(this.ops.slice());return b.ops.length>0&&(x.push(b.ops[0]),x.ops=x.ops.concat(b.ops.slice(1))),x}diff(b,x){if(this.ops===b.ops)return new T;const _=[this,b].map(O=>O.map(N=>{if(N.insert!=null)return typeof N.insert=="string"?N.insert:p;const j=O===b?"on":"with";throw new Error("diff() called "+j+" non-document")}).join("")),I=new T,w=t(_[0],_[1],x,!0),C=new f.default(this.ops),D=new f.default(b.ops);return w.forEach(O=>{let N=O[1].length;for(;N>0;){let j=0;switch(O[0]){case t.INSERT:j=Math.min(D.peekLength(),N),I.push(D.next(j));break;case t.DELETE:j=Math.min(N,C.peekLength()),C.next(j),I.delete(j);break;case t.EQUAL:j=Math.min(C.peekLength(),D.peekLength(),N);const $=C.next(j),Z=D.next(j);i($.insert,Z.insert)?I.retain(j,l.default.diff($.attributes,Z.attributes)):I.push(Z).delete(j);break}N-=j}}),I.chop()}eachLine(b,x=`
163
+ `){const _=new f.default(this.ops);let I=new T,w=0;for(;_.hasNext();){if(_.peekType()!=="insert")return;const C=_.peek(),D=u.default.length(C)-_.peekLength(),O=typeof C.insert=="string"?C.insert.indexOf(x,D)-D:-1;if(O<0)I.push(_.next());else if(O>0)I.push(_.next(O));else{if(b(I,_.next(1).attributes||{},w)===!1)return;w+=1,I=new T}}I.length()>0&&b(I,{},w)}invert(b){const x=new T;return this.reduce((_,I)=>{if(I.insert)x.delete(u.default.length(I));else{if(typeof I.retain=="number"&&I.attributes==null)return x.retain(I.retain),_+I.retain;if(I.delete||typeof I.retain=="number"){const w=I.delete||I.retain;return b.slice(_,_+w).forEach(D=>{I.delete?x.push(D):I.retain&&I.attributes&&x.retain(u.default.length(D),l.default.invert(I.attributes,D.attributes))}),_+w}else if(typeof I.retain=="object"&&I.retain!==null){const w=b.slice(_,_+1),C=new f.default(w.ops).next(),[D,O,N]=m(I.retain,C.insert),j=T.getHandler(D);return x.retain({[D]:j.invert(O,N)},l.default.invert(I.attributes,C.attributes)),_+1}}return _},0),x.chop()}transform(b,x=!1){if(x=!!x,typeof b=="number")return this.transformPosition(b,x);const _=b,I=new f.default(this.ops),w=new f.default(_.ops),C=new T;for(;I.hasNext()||w.hasNext();)if(I.peekType()==="insert"&&(x||w.peekType()!=="insert"))C.retain(u.default.length(I.next()));else if(w.peekType()==="insert")C.push(w.next());else{const D=Math.min(I.peekLength(),w.peekLength()),O=I.next(D),N=w.next(D);if(O.delete)continue;if(N.delete)C.push(N);else{const j=O.retain,$=N.retain;let Z=typeof $=="object"&&$!==null?$:D;if(typeof j=="object"&&j!==null&&typeof $=="object"&&$!==null){const ie=Object.keys(j)[0];if(ie===Object.keys($)[0]){const Y=T.getHandler(ie);Y&&(Z={[ie]:Y.transform(j[ie],$[ie],x)})}}C.retain(Z,l.default.transform(O.attributes,N.attributes,x))}}return C.chop()}transformPosition(b,x=!1){x=!!x;const _=new f.default(this.ops);let I=0;for(;_.hasNext()&&I<=b;){const w=_.peekLength(),C=_.peekType();if(_.next(),C==="delete"){b-=Math.min(w,b-I);continue}else C==="insert"&&(I<b||!x)&&(b+=w);I+=w}return b}}T.Op=u.default,T.OpIterator=f.default,T.AttributeMap=l.default,T.handlers={},e.default=T,r.exports=T,r.exports.default=T}(Bd,Bd.exports)),Bd.exports}var hs=VD();const Gt=cl(hs);class Gs extends $o{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Gs.blotName="break";Gs.tagName="BR";let Ws=class extends ah{};const GD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function bh(r){return r.replace(/[&<>"']/g,e=>GD[e])}const ba=class ba extends Om{static compare(e,t){const n=ba.order.indexOf(e),i=ba.order.indexOf(t);return n>=0||i>=0?n-i:e===t?0:e<t?-1:1}formatAt(e,t,n,i){if(ba.compare(this.statics.blotName,n)<0&&this.scroll.query(n,er.BLOT)){const l=this.isolate(e,t);i&&l.wrap(n,i)}else super.formatAt(e,t,n,i)}optimize(e){if(super.optimize(e),this.parent instanceof ba&&ba.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};ct(ba,"allowedChildren",[ba,Gs,$o,Ws]),ct(ba,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Ta=ba;const K0=1;class Bi extends id{constructor(){super(...arguments);ct(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Hx(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,i,l){n<=0||(this.scroll.query(i,er.BLOCK)?t+n===this.length()&&this.format(i,l):super.formatAt(t,Math.min(n,this.length()-t-1),i,l),this.cache={})}insertAt(t,n,i){if(i!=null){super.insertAt(t,n,i),this.cache={};return}if(n.length===0)return;const l=n.split(`
164
164
  `),u=l.shift();u.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),u):this.children.tail.insertAt(this.children.tail.length(),u),this.cache={});let f=this;l.reduce((p,m)=>(f=f.split(p,!0),f.insertAt(0,m),m.length),t+u.length)}insertBefore(t,n){const{head:i}=this.children;super.insertBefore(t,n),i instanceof Gs&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+K0),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()-K0)){const l=this.clone();return t===0?(this.parent.insertBefore(l,this),this):(this.parent.insertBefore(l,this.next),l)}const i=super.split(t,n);return this.cache={},i}}Bi.blotName="block";Bi.tagName="P";Bi.defaultChild=Gs;Bi.allowedChildren=[Gs,Ta,$o,Ws];class ds extends $o{attach(){super.attach(),this.attributes=new vh(this.domNode)}delta(){return new Gt().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,er.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,t)}formatAt(e,t,n,i){this.format(n,i)}insertAt(e,t,n){if(n!=null){super.insertAt(e,t,n);return}const i=t.split(`
165
165
  `),l=i.pop(),u=i.map(p=>{const m=this.scroll.create(Bi.blotName);return m.insertAt(0,p),m}),f=this.split(e);u.forEach(p=>{this.parent.insertBefore(p,f)}),l&&this.parent.insertBefore(this.scroll.create("text",l),f)}}ds.scope=er.BLOCK_BLOT;function Hx(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants($i).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),us(n,{},e)),new Gt).insert(`
166
- `,us(r))}function us(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!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:us(r.parent,e,t)}const cs=class cs extends $o{static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(cs.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let n=this,i=0;for(;n!=null&&n.statics.scope!==er.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=cs.CONTENTS.length,n.optimize(),n.formatAt(i,cs.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof Ws?this.prev:null,n=t?t.length():0,i=this.next instanceof Ws?this.next:null,l=i?i.text:"",{textNode:u}=this,f=u.data.split(cs.CONTENTS).join("");u.data=cs.CONTENTS;let p;if(t)p=t,(f||i)&&(t.insertAt(t.length(),f+l),i&&i.remove());else if(i)p=i,i.insertAt(0,f);else{const m=document.createTextNode(f);p=this.scroll.create(m),this.parent.insertBefore(p,this)}if(this.remove(),e){const m=(b,x)=>t&&b===t.domNode?x:b===u?n+x-1:i&&b===i.domNode?n+f.length+x:null,T=m(e.start.node,e.start.offset),k=m(e.end.node,e.end.offset);if(T!==null&&k!==null)return{startNode:p.domNode,startOffset:T,endNode:p.domNode,endOffset:k}}return null}update(e,t){if(e.some(n=>n.type==="characterData"&&n.target===this.textNode)){const n=this.restore();n&&(t.range=n)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=cs.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};ct(cs,"blotName","cursor"),ct(cs,"className","ql-cursor"),ct(cs,"tagName","span"),ct(cs,"CONTENTS","\uFEFF");let rf=cs;var cp={exports:{}},Y0;function ZD(){return Y0||(Y0=1,function(r){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function i(p,m,T){this.fn=p,this.context=m,this.once=T||!1}function l(p,m,T,k,b){if(typeof T!="function")throw new TypeError("The listener must be a function");var x=new i(T,k||p,b),_=t?t+m:m;return p._events[_]?p._events[_].fn?p._events[_]=[p._events[_],x]:p._events[_].push(x):(p._events[_]=x,p._eventsCount++),p}function u(p,m){--p._eventsCount===0?p._events=new n:delete p._events[m]}function f(){this._events=new n,this._eventsCount=0}f.prototype.eventNames=function(){var m=[],T,k;if(this._eventsCount===0)return m;for(k in T=this._events)e.call(T,k)&&m.push(t?k.slice(1):k);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(T)):m},f.prototype.listeners=function(m){var T=t?t+m:m,k=this._events[T];if(!k)return[];if(k.fn)return[k.fn];for(var b=0,x=k.length,_=new Array(x);b<x;b++)_[b]=k[b].fn;return _},f.prototype.listenerCount=function(m){var T=t?t+m:m,k=this._events[T];return k?k.fn?1:k.length:0},f.prototype.emit=function(m,T,k,b,x,_){var I=t?t+m:m;if(!this._events[I])return!1;var w=this._events[I],C=arguments.length,D,O;if(w.fn){switch(w.once&&this.removeListener(m,w.fn,void 0,!0),C){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,T),!0;case 3:return w.fn.call(w.context,T,k),!0;case 4:return w.fn.call(w.context,T,k,b),!0;case 5:return w.fn.call(w.context,T,k,b,x),!0;case 6:return w.fn.call(w.context,T,k,b,x,_),!0}for(O=1,D=new Array(C-1);O<C;O++)D[O-1]=arguments[O];w.fn.apply(w.context,D)}else{var F=w.length,j;for(O=0;O<F;O++)switch(w[O].once&&this.removeListener(m,w[O].fn,void 0,!0),C){case 1:w[O].fn.call(w[O].context);break;case 2:w[O].fn.call(w[O].context,T);break;case 3:w[O].fn.call(w[O].context,T,k);break;case 4:w[O].fn.call(w[O].context,T,k,b);break;default:if(!D)for(j=1,D=new Array(C-1);j<C;j++)D[j-1]=arguments[j];w[O].fn.apply(w[O].context,D)}}return!0},f.prototype.on=function(m,T,k){return l(this,m,T,k,!1)},f.prototype.once=function(m,T,k){return l(this,m,T,k,!0)},f.prototype.removeListener=function(m,T,k,b){var x=t?t+m:m;if(!this._events[x])return this;if(!T)return u(this,x),this;var _=this._events[x];if(_.fn)_.fn===T&&(!b||_.once)&&(!k||_.context===k)&&u(this,x);else{for(var I=0,w=[],C=_.length;I<C;I++)(_[I].fn!==T||b&&!_[I].once||k&&_[I].context!==k)&&w.push(_[I]);w.length?this._events[x]=w.length===1?w[0]:w:u(this,x)}return this},f.prototype.removeAllListeners=function(m){var T;return m?(T=t?t+m:m,this._events[T]&&u(this,T)):(this._events=new n,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=t,f.EventEmitter=f,r.exports=f}(cp)),cp.exports}var KD=ZD();const YD=cl(KD),nm=new WeakMap,im=["error","warn","log","info"];let om="warn";function zx(r){if(om&&im.indexOf(r)<=im.indexOf(om)){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];console[r](...t)}}function fl(r){return im.reduce((e,t)=>(e[t]=zx.bind(console,t,r),e),{})}fl.level=r=>{om=r};zx.level=fl.level;const up=fl("quill:events"),XD=["selectionchange","mousedown","mouseup","click"];XD.forEach(r=>{document.addEventListener(r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const l=nm.get(i);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Kt extends YD{constructor(){super(),this.domListeners={},this.on("error",up.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return up.log.call(up,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(l=>{let{node:u,handler:f}=l;(e.target===u||u.contains(e.target))&&f(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}ct(Kt,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),ct(Kt,"sources",{API:"api",SILENT:"silent",USER:"user"});const fp=fl("quill:selection");class ru{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class JD{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new ru(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Kt.sources.USER),1)}),this.emitter.on(Kt.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once(Kt.events.SCROLL_UPDATE,(i,l)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const u=l.some(f=>f.type==="characterData"||f.type==="childList"||f.type==="attributes"&&f.target===this.root);this.update(u?Kt.sources.SILENT:i)}catch{}})}),this.emitter.on(Kt.events.SCROLL_OPTIMIZE,(n,i)=>{if(i.range){const{startNode:l,startOffset:u,endNode:f,endOffset:p}=i.range;this.setNativeRange(l,u,f,p),this.update(Kt.sources.SILENT)}}),this.update(Kt.sources.SILENT)}handleComposition(){this.emitter.on(Kt.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Kt.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Kt.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(e,er.BLOCK))){if(n.start.node!==this.cursor.textNode){const i=this.scroll.find(n.start.node,!1);if(i==null)return;if(i instanceof $i){const l=i.split(n.start.offset);i.parent.insertBefore(this.cursor,l)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let i,[l,u]=this.scroll.leaf(e);if(l==null)return null;if(t>0&&u===l.length()){const[T]=this.scroll.leaf(e+1);if(T){const[k]=this.scroll.line(e),[b]=this.scroll.line(e+1);k===b&&(l=T,u=0)}}[i,u]=l.position(u,!0);const f=document.createRange();if(t>0)return f.setStart(i,u),[l,u]=this.scroll.leaf(e+t),l==null?null:([i,u]=l.position(u,!0),f.setEnd(i,u),f.getBoundingClientRect());let p="left",m;if(i instanceof Text){if(!i.data.length)return null;u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),p="right"),m=f.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;m=l.domNode.getBoundingClientRect(),u>0&&(p="right")}return{bottom:m.top+m.height,height:m.height,left:m[p],right:m[p],top:m.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const n=this.normalizeNative(t);return fp.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&dp(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(u=>{const[f,p]=u,m=this.scroll.find(f,!0),T=m.offset(this.scroll);return p===0?T:m instanceof $i?T+m.index(f,p):T+m.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),l=Math.min(i,...n);return new ru(l,i-l)}normalizeNative(e){if(!dp(this.root,e.startContainer)||!e.collapsed&&!dp(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(n=>{let{node:i,offset:l}=n;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>l)i=i.childNodes[l],l=0;else if(i.childNodes.length===l)i=i.lastChild,i instanceof Text?l=i.data.length:i.childNodes.length>0?l=i.childNodes.length:l=i.childNodes.length+1;else break;n.node=i,n.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),n=(i,l)=>{i=Math.min(t-1,i);const[u,f]=this.scroll.leaf(i);return u?u.position(f,l):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(fp.info("setNativeRange",e,t,n,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||n.parentNode==null))return;const u=document.getSelection();if(u!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:f}=this.getNativeRange()||{};if(f==null||l||e!==f.startContainer||t!==f.startOffset||n!==f.endContainer||i!==f.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&n.tagName==="BR"&&(i=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const p=document.createRange();p.setStart(e,t),p.setEnd(n,i),u.removeAllRanges(),u.addRange(p)}}else u.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Kt.sources.API;if(typeof t=="string"&&(n=t,t=!1),fp.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kt.sources.USER;const t=this.lastRange,[n,i]=this.getRange();if(this.lastRange=n,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!Mm(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const u=this.cursor.restore();u&&this.setNativeRange(u.startNode,u.startOffset,u.endNode,u.endOffset)}const l=[Kt.events.SELECTION_CHANGE,Ku(this.lastRange),Ku(t),e];this.emitter.emit(Kt.events.EDITOR_CHANGE,...l),e!==Kt.sources.SILENT&&this.emitter.emit(...l)}}}function dp(r,e){try{e.parentNode}catch{return!1}return r.contains(e)}const QD=/^[ -~]*$/;class eM{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=X0(e),i=new Gt;return rM(n.ops.slice()).reduce((u,f)=>{const p=hs.Op.length(f);let m=f.attributes||{},T=!1,k=!1;if(f.insert!=null){if(i.retain(p),typeof f.insert=="string"){const _=f.insert;k=!_.endsWith(`
166
+ `,us(r))}function us(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!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:us(r.parent,e,t)}const cs=class cs extends $o{static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(cs.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let n=this,i=0;for(;n!=null&&n.statics.scope!==er.BLOCK_BLOT;)i+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=cs.CONTENTS.length,n.optimize(),n.formatAt(i,cs.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof Ws?this.prev:null,n=t?t.length():0,i=this.next instanceof Ws?this.next:null,l=i?i.text:"",{textNode:u}=this,f=u.data.split(cs.CONTENTS).join("");u.data=cs.CONTENTS;let p;if(t)p=t,(f||i)&&(t.insertAt(t.length(),f+l),i&&i.remove());else if(i)p=i,i.insertAt(0,f);else{const m=document.createTextNode(f);p=this.scroll.create(m),this.parent.insertBefore(p,this)}if(this.remove(),e){const m=(b,x)=>t&&b===t.domNode?x:b===u?n+x-1:i&&b===i.domNode?n+f.length+x:null,T=m(e.start.node,e.start.offset),k=m(e.end.node,e.end.offset);if(T!==null&&k!==null)return{startNode:p.domNode,startOffset:T,endNode:p.domNode,endOffset:k}}return null}update(e,t){if(e.some(n=>n.type==="characterData"&&n.target===this.textNode)){const n=this.restore();n&&(t.range=n)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=cs.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};ct(cs,"blotName","cursor"),ct(cs,"className","ql-cursor"),ct(cs,"tagName","span"),ct(cs,"CONTENTS","\uFEFF");let rf=cs;var cp={exports:{}},Y0;function ZD(){return Y0||(Y0=1,function(r){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function i(p,m,T){this.fn=p,this.context=m,this.once=T||!1}function l(p,m,T,k,b){if(typeof T!="function")throw new TypeError("The listener must be a function");var x=new i(T,k||p,b),_=t?t+m:m;return p._events[_]?p._events[_].fn?p._events[_]=[p._events[_],x]:p._events[_].push(x):(p._events[_]=x,p._eventsCount++),p}function u(p,m){--p._eventsCount===0?p._events=new n:delete p._events[m]}function f(){this._events=new n,this._eventsCount=0}f.prototype.eventNames=function(){var m=[],T,k;if(this._eventsCount===0)return m;for(k in T=this._events)e.call(T,k)&&m.push(t?k.slice(1):k);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(T)):m},f.prototype.listeners=function(m){var T=t?t+m:m,k=this._events[T];if(!k)return[];if(k.fn)return[k.fn];for(var b=0,x=k.length,_=new Array(x);b<x;b++)_[b]=k[b].fn;return _},f.prototype.listenerCount=function(m){var T=t?t+m:m,k=this._events[T];return k?k.fn?1:k.length:0},f.prototype.emit=function(m,T,k,b,x,_){var I=t?t+m:m;if(!this._events[I])return!1;var w=this._events[I],C=arguments.length,D,O;if(w.fn){switch(w.once&&this.removeListener(m,w.fn,void 0,!0),C){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,T),!0;case 3:return w.fn.call(w.context,T,k),!0;case 4:return w.fn.call(w.context,T,k,b),!0;case 5:return w.fn.call(w.context,T,k,b,x),!0;case 6:return w.fn.call(w.context,T,k,b,x,_),!0}for(O=1,D=new Array(C-1);O<C;O++)D[O-1]=arguments[O];w.fn.apply(w.context,D)}else{var N=w.length,j;for(O=0;O<N;O++)switch(w[O].once&&this.removeListener(m,w[O].fn,void 0,!0),C){case 1:w[O].fn.call(w[O].context);break;case 2:w[O].fn.call(w[O].context,T);break;case 3:w[O].fn.call(w[O].context,T,k);break;case 4:w[O].fn.call(w[O].context,T,k,b);break;default:if(!D)for(j=1,D=new Array(C-1);j<C;j++)D[j-1]=arguments[j];w[O].fn.apply(w[O].context,D)}}return!0},f.prototype.on=function(m,T,k){return l(this,m,T,k,!1)},f.prototype.once=function(m,T,k){return l(this,m,T,k,!0)},f.prototype.removeListener=function(m,T,k,b){var x=t?t+m:m;if(!this._events[x])return this;if(!T)return u(this,x),this;var _=this._events[x];if(_.fn)_.fn===T&&(!b||_.once)&&(!k||_.context===k)&&u(this,x);else{for(var I=0,w=[],C=_.length;I<C;I++)(_[I].fn!==T||b&&!_[I].once||k&&_[I].context!==k)&&w.push(_[I]);w.length?this._events[x]=w.length===1?w[0]:w:u(this,x)}return this},f.prototype.removeAllListeners=function(m){var T;return m?(T=t?t+m:m,this._events[T]&&u(this,T)):(this._events=new n,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=t,f.EventEmitter=f,r.exports=f}(cp)),cp.exports}var KD=ZD();const YD=cl(KD),nm=new WeakMap,im=["error","warn","log","info"];let om="warn";function zx(r){if(om&&im.indexOf(r)<=im.indexOf(om)){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];console[r](...t)}}function fl(r){return im.reduce((e,t)=>(e[t]=zx.bind(console,t,r),e),{})}fl.level=r=>{om=r};zx.level=fl.level;const up=fl("quill:events"),XD=["selectionchange","mousedown","mouseup","click"];XD.forEach(r=>{document.addEventListener(r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const l=nm.get(i);l&&l.emitter&&l.emitter.handleDOM(...t)})})});class Kt extends YD{constructor(){super(),this.domListeners={},this.on("error",up.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return up.log.call(up,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(l=>{let{node:u,handler:f}=l;(e.target===u||u.contains(e.target))&&f(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}ct(Kt,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),ct(Kt,"sources",{API:"api",SILENT:"silent",USER:"user"});const fp=fl("quill:selection");class ru{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class JD{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new ru(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Kt.sources.USER),1)}),this.emitter.on(Kt.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once(Kt.events.SCROLL_UPDATE,(i,l)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const u=l.some(f=>f.type==="characterData"||f.type==="childList"||f.type==="attributes"&&f.target===this.root);this.update(u?Kt.sources.SILENT:i)}catch{}})}),this.emitter.on(Kt.events.SCROLL_OPTIMIZE,(n,i)=>{if(i.range){const{startNode:l,startOffset:u,endNode:f,endOffset:p}=i.range;this.setNativeRange(l,u,f,p),this.update(Kt.sources.SILENT)}}),this.update(Kt.sources.SILENT)}handleComposition(){this.emitter.on(Kt.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Kt.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Kt.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(e,er.BLOCK))){if(n.start.node!==this.cursor.textNode){const i=this.scroll.find(n.start.node,!1);if(i==null)return;if(i instanceof $i){const l=i.split(n.start.offset);i.parent.insertBefore(this.cursor,l)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let i,[l,u]=this.scroll.leaf(e);if(l==null)return null;if(t>0&&u===l.length()){const[T]=this.scroll.leaf(e+1);if(T){const[k]=this.scroll.line(e),[b]=this.scroll.line(e+1);k===b&&(l=T,u=0)}}[i,u]=l.position(u,!0);const f=document.createRange();if(t>0)return f.setStart(i,u),[l,u]=this.scroll.leaf(e+t),l==null?null:([i,u]=l.position(u,!0),f.setEnd(i,u),f.getBoundingClientRect());let p="left",m;if(i instanceof Text){if(!i.data.length)return null;u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),p="right"),m=f.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;m=l.domNode.getBoundingClientRect(),u>0&&(p="right")}return{bottom:m.top+m.height,height:m.height,left:m[p],right:m[p],top:m.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const n=this.normalizeNative(t);return fp.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&dp(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(u=>{const[f,p]=u,m=this.scroll.find(f,!0),T=m.offset(this.scroll);return p===0?T:m instanceof $i?T+m.index(f,p):T+m.length()}),i=Math.min(Math.max(...n),this.scroll.length()-1),l=Math.min(i,...n);return new ru(l,i-l)}normalizeNative(e){if(!dp(this.root,e.startContainer)||!e.collapsed&&!dp(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(n=>{let{node:i,offset:l}=n;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>l)i=i.childNodes[l],l=0;else if(i.childNodes.length===l)i=i.lastChild,i instanceof Text?l=i.data.length:i.childNodes.length>0?l=i.childNodes.length:l=i.childNodes.length+1;else break;n.node=i,n.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),n=(i,l)=>{i=Math.min(t-1,i);const[u,f]=this.scroll.leaf(i);return u?u.position(f,l):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(fp.info("setNativeRange",e,t,n,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||n.parentNode==null))return;const u=document.getSelection();if(u!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:f}=this.getNativeRange()||{};if(f==null||l||e!==f.startContainer||t!==f.startOffset||n!==f.endContainer||i!==f.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&n.tagName==="BR"&&(i=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const p=document.createRange();p.setStart(e,t),p.setEnd(n,i),u.removeAllRanges(),u.addRange(p)}}else u.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Kt.sources.API;if(typeof t=="string"&&(n=t,t=!1),fp.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kt.sources.USER;const t=this.lastRange,[n,i]=this.getRange();if(this.lastRange=n,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!Mm(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const u=this.cursor.restore();u&&this.setNativeRange(u.startNode,u.startOffset,u.endNode,u.endOffset)}const l=[Kt.events.SELECTION_CHANGE,Ku(this.lastRange),Ku(t),e];this.emitter.emit(Kt.events.EDITOR_CHANGE,...l),e!==Kt.sources.SILENT&&this.emitter.emit(...l)}}}function dp(r,e){try{e.parentNode}catch{return!1}return r.contains(e)}const QD=/^[ -~]*$/;class eM{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=X0(e),i=new Gt;return rM(n.ops.slice()).reduce((u,f)=>{const p=hs.Op.length(f);let m=f.attributes||{},T=!1,k=!1;if(f.insert!=null){if(i.retain(p),typeof f.insert=="string"){const _=f.insert;k=!_.endsWith(`
167
167
  `)&&(t<=u||!!this.scroll.descendant(ds,u)[0]),this.scroll.insertAt(u,_);const[I,w]=this.scroll.line(u);let C=nc({},us(I));if(I instanceof Bi){const[D]=I.descendant($i,w);D&&(C=nc(C,us(D)))}m=hs.AttributeMap.diff(C,m)||{}}else if(typeof f.insert=="object"){const _=Object.keys(f.insert)[0];if(_==null)return u;const I=this.scroll.query(_,er.INLINE)!=null;if(I)(t<=u||this.scroll.descendant(ds,u)[0])&&(k=!0);else if(u>0){const[w,C]=this.scroll.descendant($i,u-1);w instanceof Ws?w.value()[C]!==`
168
168
  `&&(T=!0):w instanceof $o&&w.statics.scope===er.INLINE_BLOT&&(T=!0)}if(this.scroll.insertAt(u,_,f.insert[_]),I){const[w]=this.scroll.descendant($i,u);if(w){const C=nc({},us(w));m=hs.AttributeMap.diff(C,m)||{}}}}t+=p}else if(i.push(f),f.retain!==null&&typeof f.retain=="object"){const _=Object.keys(f.retain)[0];if(_==null)return u;this.scroll.updateEmbedAt(u,_,f.retain[_])}Object.keys(m).forEach(_=>{this.scroll.formatAt(u,p,_,m[_])});const b=T?1:0,x=k?1:0;return t+=b+x,i.retain(b),i.delete(x),u+p+b+x},0),i.reduce((u,f)=>typeof f.delete=="number"?(this.scroll.deleteAt(u,f.delete),u):u+hs.Op.length(f),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Gt().retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(l=>{this.scroll.lines(e,Math.max(t,1)).forEach(u=>{u.format(l,n[l])})}),this.scroll.optimize();const i=new Gt().retain(e).retain(t,Ku(n));return this.update(i)}formatText(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(n).forEach(l=>{this.scroll.formatAt(e,t,l,n[l])});const i=new Gt().retain(e).retain(t,Ku(n));return this.update(i)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Gt)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[],i=[];t===0?this.scroll.path(e).forEach(f=>{const[p]=f;p instanceof Bi?n.push(p):p instanceof $i&&i.push(p)}):(n=this.scroll.lines(e,t),i=this.scroll.descendants($i,e,t));const[l,u]=[n,i].map(f=>{const p=f.shift();if(p==null)return{};let m=us(p);for(;Object.keys(m).length>0;){const T=f.shift();if(T==null)return m;m=tM(us(T),m)}return m});return{...l,...u}}getHTML(e,t){const[n,i]=this.scroll.line(e);if(n){const l=n.length();return n.length()>=i+t&&!(i===0&&t===l)?od(n,i,t,!0):od(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(n=>typeof n.insert=="string").map(n=>n.insert).join("")}insertContents(e,t){const n=X0(t),i=new Gt().retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(i)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update(new Gt().retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
169
169
  `).replace(/\r/g,`
@@ -207,7 +207,7 @@ ${bh(this.code(e,t))}
207
207
  `,{[Ui.blotName]:t}),i.insert(l)),new Gt);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(Ui.className),n.innerHTML=oO(this.options.hljs,t,e),$m(this.quill.scroll,n,[(i,l)=>{const u=Uf.value(i);return u?l.compose(new Gt().retain(l.length(),{[al.blotName]:u})):l}],[(i,l)=>i.data.split(`
208
208
  `).reduce((u,f,p)=>(p!==0&&u.insert(`
209
209
  `,{[Ui.blotName]:t}),u.insert(f)),l)],new WeakMap)}}oS.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 Xf=class Xf extends Bi{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Um()),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===Xf.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()}};ct(Xf,"blotName","table"),ct(Xf,"tagName","TD");let Hs=Xf;class ll extends au{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(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const n=t.formats(),i=t.next.formats();if(n.table!==i.table){const l=this.splitAfter(t);l&&l.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}ct(ll,"blotName","table-row"),ct(ll,"tagName","TR");class Ca extends au{}ct(Ca,"blotName","table-body"),ct(Ca,"tagName","TBODY");class of extends au{balanceCells(){const e=this.descendants(ll),t=e.reduce((n,i)=>Math.max(i.children.length,n),0);e.forEach(n=>{new Array(t-n.children.length).fill(0).forEach(()=>{let i;n.children.head!=null&&(i=Hs.formats(n.children.head.domNode));const l=this.scroll.create(Hs.blotName,i);n.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(Ca);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e);i!=null&&i.remove()})}insertColumn(e){const[t]=this.descendant(Ca);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e),l=Hs.formats(n.children.head.domNode),u=this.scroll.create(Hs.blotName,l);n.insertBefore(u,i)})}insertRow(e){const[t]=this.descendant(Ca);if(t==null||t.children.head==null)return;const n=Um(),i=this.scroll.create(ll.blotName);t.children.head.children.forEach(()=>{const u=this.scroll.create(Hs.blotName,n);i.appendChild(u)});const l=t.children.at(e);t.insertBefore(i,l)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}ct(of,"blotName","table-container"),ct(of,"tagName","TABLE");of.allowedChildren=[Ca];Ca.requiredContainer=of;Ca.allowedChildren=[ll];ll.requiredContainer=Ca;ll.allowedChildren=[Hs];Hs.requiredContainer=ll;function Um(){return`row-${Math.random().toString(36).slice(2,6)}`}class sO extends Zs{static register(){Ye.register(Hs),Ye.register(ll),Ye.register(Ca),Ye.register(of)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(of).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(Ye.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(Ye.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(Ye.sources.USER),this.quill.setSelection(t,Ye.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!==Hs.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=l.cellOffset();n.insertColumn(u+e),this.quill.update(Ye.sources.USER);let f=i.rowOffset();e===0&&(f+=1),this.quill.setSelection(t.index+f,t.length,Ye.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=i.rowOffset();n.insertRow(u+e),this.quill.update(Ye.sources.USER),e>0?this.quill.setSelection(t,Ye.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,Ye.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(n==null)return;const i=new Array(e).fill(0).reduce(l=>{const u=new Array(t).fill(`
210
- `).join("");return l.insert(u,{table:Um()})},new Gt().retain(n.index));this.quill.updateContents(i,Ye.sources.USER),this.quill.setSelection(n.index,Ye.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ye.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Ye.events.TEXT_CHANGE,(n,i,l)=>{l===Ye.sources.USER&&this.balanceTables()}),!0):!1)})}}const hy=fl("quill:toolbar");class Wm extends Zs{constructor(e,t){var n,i;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),aO(l,this.options.container),(i=(n=e.container)==null?void 0:n.parentNode)==null||i.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){hy.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(l=>{var f;const u=(f=this.options.handlers)==null?void 0:f[l];u&&this.addHandler(l,u)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(Ye.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.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){hy.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,i=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const f=e.options[e.selectedIndex];f.hasAttribute("selected")?l=!1:l=f.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[u]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof $o){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Gt().retain(u.index).delete(u.length).insert({[t]:l}),Ye.sources.USER)}else this.quill.format(t,l,Ye.sources.USER);this.update(u)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[i,l]=n;if(l.tagName==="SELECT"){let u=null;if(e==null)u=null;else if(t[i]==null)u=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){let f=t[i];typeof f=="string"&&(f=f.replace(/"/g,'\\"')),u=l.querySelector(`option[value="${f}"]`)}u==null?(l.value="",l.selectedIndex=-1):u.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const u=t[i],f=u===l.getAttribute("value")||u!=null&&u.toString()===l.getAttribute("value")||u==null&&!l.getAttribute("value");l.classList.toggle("ql-active",f),l.setAttribute("aria-pressed",f.toString())}else{const u=t[i]!=null;l.classList.toggle("ql-active",u),l.setAttribute("aria-pressed",u.toString())}})}}Wm.DEFAULTS={};function py(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 aO(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")py(n,i);else{const l=Object.keys(i)[0],u=i[l];Array.isArray(u)?lO(n,l,u):py(n,l,u)}}),r.appendChild(n)})}function lO(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(i=>{const l=document.createElement("option");i!==!1?l.setAttribute("value",String(i)):l.setAttribute("selected","selected"),n.appendChild(l)}),r.appendChild(n)}Wm.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,er.INLINE)!=null&&this.quill.format(t,!1,Ye.sources.USER)})}else this.quill.removeFormat(r.index,r.length,Ye.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",Ye.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,Ye.sources.USER),this.quill.format("direction",r,Ye.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 i=r==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,Ye.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,Ye.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,Ye.sources.USER):this.quill.format("list","unchecked",Ye.sources.USER):this.quill.format("list",r,Ye.sources.USER)}}};const cO='<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>',uO='<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>',fO='<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>',dO='<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>',hO='<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>',pO='<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>',gO='<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>',mO='<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>',gy='<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>',vO='<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>',yO='<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>',bO='<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>',_O='<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>',xO='<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>',SO='<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>',CO='<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>',wO='<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>',AO='<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>',TO='<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>',EO='<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>',kO='<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>',RO='<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>',IO='<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>',LO='<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>',DO='<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>',MO='<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>',OO='<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>',PO='<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>',NO='<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>',FO='<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>',jO='<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>',BO='<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>',qO='<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>',ad={align:{"":cO,center:uO,right:fO,justify:dO},background:hO,blockquote:pO,bold:gO,clean:mO,code:gy,"code-block":gy,color:vO,direction:{"":yO,rtl:bO},formula:_O,header:{1:xO,2:SO,3:CO,4:wO,5:AO,6:TO},italic:EO,image:kO,indent:{"+1":RO,"-1":IO},link:LO,list:{bullet:DO,check:MO,ordered:OO},script:{sub:PO,super:NO},strike:FO,table:jO,underline:BO,video:qO},HO='<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 my=0;function vy(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class xh{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"),vy(this.label,"aria-expanded"),vy(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",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=HO,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-${my}`,my+=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 sS extends xh{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"),i=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class aS extends xh{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 zO=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class lS{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,zO(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 i=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let u=0;if(l.right>i.right&&(u=i.right-l.right,this.root.style.left=`${t+u}px`),l.left<i.left&&(u=i.left-l.left,this.root.style.left=`${t+u}px`),l.bottom>i.bottom){const f=l.bottom-l.top,p=e.bottom-e.top+f;this.root.style.top=`${n-p}px`,this.root.classList.add("ql-flip")}return u}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const $O=[!1,"center","right","justify"],UO=["#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"],WO=[!1,"serif","monospace"],VO=["1","2","3",!1],GO=["small",!1,"large","huge"];class pd extends nf{constructor(e,t){super(e,t);const n=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(i.target)||l.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(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")n.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")n.innerHTML=t[l];else{const u=n.value||"";u!=null&&t[l][u]&&(n.innerHTML=t[l][u])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Ff(i,$O),typeof t.align=="object"))return new aS(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const l=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Ff(i,UO,l==="background"?"#ffffff":"#000000"),new sS(i,t[l])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Ff(i,WO):i.classList.contains("ql-header")?Ff(i,VO):i.classList.contains("ql-size")&&Ff(i,GO)),new xh(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Kt.events.EDITOR_CHANGE,n)}}pd.DEFAULTS=nc({},nf.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 cS extends lS{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,Kt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Kt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=ZO(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,Kt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Kt.sources.USER),this.quill.setSelection(n+2,Kt.sources.USER)}break}}this.textbox.value="",this.hide()}}function ZO(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 Ff(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const i=document.createElement("option");n===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),r.appendChild(i)})}const KO=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class uS extends cS{constructor(e,t){super(e,t),this.quill.on(Kt.events.EDITOR_CHANGE,(n,i,l,u)=>{if(n===Kt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&u===Kt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const f=this.quill.getLines(i.index,i.length);if(f.length===1){const p=this.quill.getBounds(i);p!=null&&this.position(p)}else{const p=f[f.length-1],m=this.quill.getIndex(p),T=Math.min(p.length()-1,i.index+i.length-m),k=this.quill.getBounds(new ru(m,T));k!=null&&this.position(k)}}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(Kt.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}}ct(uS,"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 fS extends pd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=KO),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new uS(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),ad),this.buildPickers(e.container.querySelectorAll("select"),ad))}}fS.DEFAULTS=nc({},pd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Ye.sources.USER)}}}}});const YO=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class dS extends cS{constructor(){super(...arguments);ct(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,Kt.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Kt.events.SELECTION_CHANGE,(t,n,i)=>{if(t!=null){if(t.length===0&&i===Kt.sources.USER){const[l,u]=this.quill.scroll.descendant(rc,t.index);if(l!=null){this.linkRange=new ru(t.index-u,l.length());const f=rc.formats(l.domNode);this.preview.textContent=f,this.preview.setAttribute("href",f),this.show();const p=this.quill.getBounds(this.linkRange);p!=null&&this.position(p);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}ct(dS,"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 hS extends pd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=YO),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"),ad),this.buildPickers(e.container.querySelectorAll("select"),ad),this.tooltip=new dS(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)}))}}hS.DEFAULTS=nc({},pd.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,Ye.sources.USER)}}}}});Ye.register({"attributors/attribute/direction":Vx,"attributors/class/align":$x,"attributors/class/background":hM,"attributors/class/color":dM,"attributors/class/direction":Gx,"attributors/class/font":Yx,"attributors/class/size":Jx,"attributors/style/align":Ux,"attributors/style/background":Bm,"attributors/style/color":jm,"attributors/style/direction":Zx,"attributors/style/font":Xx,"attributors/style/size":Qx},!0);Ye.register({"formats/align":$x,"formats/direction":Gx,"formats/indent":nO,"formats/background":Bm,"formats/color":jm,"formats/font":Yx,"formats/size":Jx,"formats/blockquote":am,"formats/code-block":Ui,"formats/header":lm,"formats/list":hd,"formats/bold":sd,"formats/code":qm,"formats/italic":cm,"formats/link":rc,"formats/script":um,"formats/strike":fm,"formats/underline":dm,"formats/formula":Yd,"formats/image":iO,"formats/video":Xd,"modules/syntax":oS,"modules/table":sO,"modules/toolbar":Wm,"themes/bubble":fS,"themes/snow":hS,"ui/icons":ad,"ui/picker":xh,"ui/icon-picker":aS,"ui/color-picker":sS,"ui/tooltip":lS},!0);var yp={exports:{}},yy;function XO(){return yy||(yy=1,function(r,e){(function(t,n){r.exports=n()})(self,()=>(()=>{var t={321:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ConsoleLogger=void 0;var f=function(){function p(m,T){this.debug=m,this.suppressErrorLogging=T}return p.prototype.prefixString=function(){return"</> quill-image-compress: "},Object.defineProperty(p.prototype,"log",{get:function(){return this.debug?console.log.bind(console,this.prefixString()):function(){}},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"error",{get:function(){return this.suppressErrorLogging?function(){}:console.error.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"warn",{get:function(){return this.suppressErrorLogging?function(){}:console.warn.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),p}();u.ConsoleLogger=f},337:function(l,u){var f=this&&this.__awaiter||function(m,T,k,b){return new(k||(k=Promise))(function(x,_){function I(D){try{C(b.next(D))}catch(O){_(O)}}function w(D){try{C(b.throw(D))}catch(O){_(O)}}function C(D){var O;D.done?x(D.value):(O=D.value,O instanceof k?O:new k(function(F){F(O)})).then(I,w)}C((b=b.apply(m,T||[])).next())})},p=this&&this.__generator||function(m,T){var k,b,x,_={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]},I=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return I.next=w(0),I.throw=w(1),I.return=w(2),typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function w(C){return function(D){return function(O){if(k)throw new TypeError("Generator is already executing.");for(;I&&(I=0,O[0]&&(_=0)),_;)try{if(k=1,b&&(x=2&O[0]?b.return:O[0]?b.throw||((x=b.return)&&x.call(b),0):b.next)&&!(x=x.call(b,O[1])).done)return x;switch(b=0,x&&(O=[2&O[0],x.value]),O[0]){case 0:case 1:x=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(x=_.trys,!((x=x.length>0&&x[x.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!x||O[1]>x[0]&&O[1]<x[3])){_.label=O[1];break}if(O[0]===6&&_.label<x[1]){_.label=x[1],x=O;break}if(x&&_.label<x[2]){_.label=x[2],_.ops.push(O);break}x[2]&&_.ops.pop(),_.trys.pop();continue}O=T.call(m,_)}catch(F){O=[6,F],b=0}finally{k=x=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([C,D])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.downscaleImage=function(m,T,k,b,x,_,I,w){return f(this,void 0,void 0,function(){var C,D,O,F,j,$,Z,ie;return p(this,function(Y){switch(Y.label){case 0:return C=T.split(";")[0].split(":")[1],x=x||"image/jpeg",w=w||.7,(D=new Image).src=T,[4,new Promise(function(se){D.onload=function(){se()}})];case 1:return Y.sent(),O=function(se,q,J,X){if(J&&X&&se<=J&&q<=X)return[se,q];if(J&&se>J){var ne=J,ge=Math.floor(q/se*ne);if(X&&ge>X){var me=X;return[Math.floor(se/q*me),me]}return[ne,ge]}return X&&q>X?(ge=X,[ne=Math.floor(se/q*ge),ge]):[q,se]}(D.width,D.height,k,b),F=O[0],j=O[1],($=document.createElement("canvas")).width=F,$.height=j,Z=$.getContext("2d"),x==="image/jpeg"&&(Z.fillStyle="#FFFFFF",Z.fillRect(0,0,D.width,D.height)),I!=null&&I.includes(C)?[2,T]:(_!=null&&_.includes(C)&&(x=C),Z.drawImage(D,0,0,F,j),ie=$.toDataURL(x,w),m.log("downscaling image...",{args:{dataUrl:T,maxWidth:k,maxHeight:b,imageType:x,ignoreImageTypes:I,keepImageTypes:_,imageQuality:w},newHeight:j,newWidth:F}),[2,ie])}})})}},922:function(l,u){var f=this&&this.__awaiter||function(m,T,k,b){return new(k||(k=Promise))(function(x,_){function I(D){try{C(b.next(D))}catch(O){_(O)}}function w(D){try{C(b.throw(D))}catch(O){_(O)}}function C(D){var O;D.done?x(D.value):(O=D.value,O instanceof k?O:new k(function(F){F(O)})).then(I,w)}C((b=b.apply(m,T||[])).next())})},p=this&&this.__generator||function(m,T){var k,b,x,_={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]},I=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return I.next=w(0),I.throw=w(1),I.return=w(2),typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function w(C){return function(D){return function(O){if(k)throw new TypeError("Generator is already executing.");for(;I&&(I=0,O[0]&&(_=0)),_;)try{if(k=1,b&&(x=2&O[0]?b.return:O[0]?b.throw||((x=b.return)&&x.call(b),0):b.next)&&!(x=x.call(b,O[1])).done)return x;switch(b=0,x&&(O=[2&O[0],x.value]),O[0]){case 0:case 1:x=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(x=_.trys,!((x=x.length>0&&x[x.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!x||O[1]>x[0]&&O[1]<x[3])){_.label=O[1];break}if(O[0]===6&&_.label<x[1]){_.label=x[1],x=O;break}if(x&&_.label<x[2]){_.label=x[2],_.ops.push(O);break}x[2]&&_.ops.pop(),_.trys.pop();continue}O=T.call(m,_)}catch(F){O=[6,F],b=0}finally{k=x=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([C,D])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.file2b64=function(m){return f(this,void 0,void 0,function(){var T,k;return p(this,function(b){return T=new FileReader,k=new Promise(function(x,_){T.addEventListener("load",function(){var I,w=(I=T.result)===null||I===void 0?void 0:I.toString();w?x(w):_("could not convert file to base64")},!1)}),T.readAsDataURL(m),[2,k]})})}},457:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.warnAboutOptions=function(f,p){f.maxWidth=f.maxWidth||1e3,f.maxHeight=f.maxHeight||1e3,f.maxWidth&&typeof f.maxWidth!="number"&&(p.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
210
+ `).join("");return l.insert(u,{table:Um()})},new Gt().retain(n.index));this.quill.updateContents(i,Ye.sources.USER),this.quill.setSelection(n.index,Ye.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ye.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Ye.events.TEXT_CHANGE,(n,i,l)=>{l===Ye.sources.USER&&this.balanceTables()}),!0):!1)})}}const hy=fl("quill:toolbar");class Wm extends Zs{constructor(e,t){var n,i;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),aO(l,this.options.container),(i=(n=e.container)==null?void 0:n.parentNode)==null||i.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){hy.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(l=>{var f;const u=(f=this.options.handlers)==null?void 0:f[l];u&&this.addHandler(l,u)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(Ye.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.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){hy.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,i=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const f=e.options[e.selectedIndex];f.hasAttribute("selected")?l=!1:l=f.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[u]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof $o){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Gt().retain(u.index).delete(u.length).insert({[t]:l}),Ye.sources.USER)}else this.quill.format(t,l,Ye.sources.USER);this.update(u)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[i,l]=n;if(l.tagName==="SELECT"){let u=null;if(e==null)u=null;else if(t[i]==null)u=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){let f=t[i];typeof f=="string"&&(f=f.replace(/"/g,'\\"')),u=l.querySelector(`option[value="${f}"]`)}u==null?(l.value="",l.selectedIndex=-1):u.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const u=t[i],f=u===l.getAttribute("value")||u!=null&&u.toString()===l.getAttribute("value")||u==null&&!l.getAttribute("value");l.classList.toggle("ql-active",f),l.setAttribute("aria-pressed",f.toString())}else{const u=t[i]!=null;l.classList.toggle("ql-active",u),l.setAttribute("aria-pressed",u.toString())}})}}Wm.DEFAULTS={};function py(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 aO(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")py(n,i);else{const l=Object.keys(i)[0],u=i[l];Array.isArray(u)?lO(n,l,u):py(n,l,u)}}),r.appendChild(n)})}function lO(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(i=>{const l=document.createElement("option");i!==!1?l.setAttribute("value",String(i)):l.setAttribute("selected","selected"),n.appendChild(l)}),r.appendChild(n)}Wm.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,er.INLINE)!=null&&this.quill.format(t,!1,Ye.sources.USER)})}else this.quill.removeFormat(r.index,r.length,Ye.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",Ye.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,Ye.sources.USER),this.quill.format("direction",r,Ye.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 i=r==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,Ye.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,Ye.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,Ye.sources.USER):this.quill.format("list","unchecked",Ye.sources.USER):this.quill.format("list",r,Ye.sources.USER)}}};const cO='<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>',uO='<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>',fO='<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>',dO='<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>',hO='<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>',pO='<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>',gO='<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>',mO='<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>',gy='<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>',vO='<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>',yO='<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>',bO='<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>',_O='<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>',xO='<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>',SO='<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>',CO='<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>',wO='<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>',AO='<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>',TO='<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>',EO='<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>',kO='<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>',RO='<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>',IO='<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>',LO='<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>',DO='<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>',MO='<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>',OO='<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>',PO='<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>',NO='<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>',FO='<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>',jO='<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>',BO='<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>',qO='<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>',ad={align:{"":cO,center:uO,right:fO,justify:dO},background:hO,blockquote:pO,bold:gO,clean:mO,code:gy,"code-block":gy,color:vO,direction:{"":yO,rtl:bO},formula:_O,header:{1:xO,2:SO,3:CO,4:wO,5:AO,6:TO},italic:EO,image:kO,indent:{"+1":RO,"-1":IO},link:LO,list:{bullet:DO,check:MO,ordered:OO},script:{sub:PO,super:NO},strike:FO,table:jO,underline:BO,video:qO},HO='<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 my=0;function vy(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class xh{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"),vy(this.label,"aria-expanded"),vy(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",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=HO,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-${my}`,my+=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 sS extends xh{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"),i=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class aS extends xh{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 zO=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class lS{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,zO(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 i=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let u=0;if(l.right>i.right&&(u=i.right-l.right,this.root.style.left=`${t+u}px`),l.left<i.left&&(u=i.left-l.left,this.root.style.left=`${t+u}px`),l.bottom>i.bottom){const f=l.bottom-l.top,p=e.bottom-e.top+f;this.root.style.top=`${n-p}px`,this.root.classList.add("ql-flip")}return u}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const $O=[!1,"center","right","justify"],UO=["#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"],WO=[!1,"serif","monospace"],VO=["1","2","3",!1],GO=["small",!1,"large","huge"];class pd extends nf{constructor(e,t){super(e,t);const n=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(i.target)||l.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(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")n.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")n.innerHTML=t[l];else{const u=n.value||"";u!=null&&t[l][u]&&(n.innerHTML=t[l][u])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Ff(i,$O),typeof t.align=="object"))return new aS(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const l=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Ff(i,UO,l==="background"?"#ffffff":"#000000"),new sS(i,t[l])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Ff(i,WO):i.classList.contains("ql-header")?Ff(i,VO):i.classList.contains("ql-size")&&Ff(i,GO)),new xh(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Kt.events.EDITOR_CHANGE,n)}}pd.DEFAULTS=nc({},nf.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 cS extends lS{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,Kt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Kt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=ZO(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,Kt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Kt.sources.USER),this.quill.setSelection(n+2,Kt.sources.USER)}break}}this.textbox.value="",this.hide()}}function ZO(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 Ff(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const i=document.createElement("option");n===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),r.appendChild(i)})}const KO=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class uS extends cS{constructor(e,t){super(e,t),this.quill.on(Kt.events.EDITOR_CHANGE,(n,i,l,u)=>{if(n===Kt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&u===Kt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const f=this.quill.getLines(i.index,i.length);if(f.length===1){const p=this.quill.getBounds(i);p!=null&&this.position(p)}else{const p=f[f.length-1],m=this.quill.getIndex(p),T=Math.min(p.length()-1,i.index+i.length-m),k=this.quill.getBounds(new ru(m,T));k!=null&&this.position(k)}}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(Kt.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}}ct(uS,"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 fS extends pd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=KO),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new uS(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),ad),this.buildPickers(e.container.querySelectorAll("select"),ad))}}fS.DEFAULTS=nc({},pd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Ye.sources.USER)}}}}});const YO=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class dS extends cS{constructor(){super(...arguments);ct(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,Kt.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Kt.events.SELECTION_CHANGE,(t,n,i)=>{if(t!=null){if(t.length===0&&i===Kt.sources.USER){const[l,u]=this.quill.scroll.descendant(rc,t.index);if(l!=null){this.linkRange=new ru(t.index-u,l.length());const f=rc.formats(l.domNode);this.preview.textContent=f,this.preview.setAttribute("href",f),this.show();const p=this.quill.getBounds(this.linkRange);p!=null&&this.position(p);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}ct(dS,"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 hS extends pd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=YO),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"),ad),this.buildPickers(e.container.querySelectorAll("select"),ad),this.tooltip=new dS(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)}))}}hS.DEFAULTS=nc({},pd.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,Ye.sources.USER)}}}}});Ye.register({"attributors/attribute/direction":Vx,"attributors/class/align":$x,"attributors/class/background":hM,"attributors/class/color":dM,"attributors/class/direction":Gx,"attributors/class/font":Yx,"attributors/class/size":Jx,"attributors/style/align":Ux,"attributors/style/background":Bm,"attributors/style/color":jm,"attributors/style/direction":Zx,"attributors/style/font":Xx,"attributors/style/size":Qx},!0);Ye.register({"formats/align":$x,"formats/direction":Gx,"formats/indent":nO,"formats/background":Bm,"formats/color":jm,"formats/font":Yx,"formats/size":Jx,"formats/blockquote":am,"formats/code-block":Ui,"formats/header":lm,"formats/list":hd,"formats/bold":sd,"formats/code":qm,"formats/italic":cm,"formats/link":rc,"formats/script":um,"formats/strike":fm,"formats/underline":dm,"formats/formula":Yd,"formats/image":iO,"formats/video":Xd,"modules/syntax":oS,"modules/table":sO,"modules/toolbar":Wm,"themes/bubble":fS,"themes/snow":hS,"ui/icons":ad,"ui/picker":xh,"ui/icon-picker":aS,"ui/color-picker":sS,"ui/tooltip":lS},!0);var yp={exports:{}},yy;function XO(){return yy||(yy=1,function(r,e){(function(t,n){r.exports=n()})(self,()=>(()=>{var t={321:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ConsoleLogger=void 0;var f=function(){function p(m,T){this.debug=m,this.suppressErrorLogging=T}return p.prototype.prefixString=function(){return"</> quill-image-compress: "},Object.defineProperty(p.prototype,"log",{get:function(){return this.debug?console.log.bind(console,this.prefixString()):function(){}},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"error",{get:function(){return this.suppressErrorLogging?function(){}:console.error.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"warn",{get:function(){return this.suppressErrorLogging?function(){}:console.warn.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),p}();u.ConsoleLogger=f},337:function(l,u){var f=this&&this.__awaiter||function(m,T,k,b){return new(k||(k=Promise))(function(x,_){function I(D){try{C(b.next(D))}catch(O){_(O)}}function w(D){try{C(b.throw(D))}catch(O){_(O)}}function C(D){var O;D.done?x(D.value):(O=D.value,O instanceof k?O:new k(function(N){N(O)})).then(I,w)}C((b=b.apply(m,T||[])).next())})},p=this&&this.__generator||function(m,T){var k,b,x,_={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]},I=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return I.next=w(0),I.throw=w(1),I.return=w(2),typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function w(C){return function(D){return function(O){if(k)throw new TypeError("Generator is already executing.");for(;I&&(I=0,O[0]&&(_=0)),_;)try{if(k=1,b&&(x=2&O[0]?b.return:O[0]?b.throw||((x=b.return)&&x.call(b),0):b.next)&&!(x=x.call(b,O[1])).done)return x;switch(b=0,x&&(O=[2&O[0],x.value]),O[0]){case 0:case 1:x=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(x=_.trys,!((x=x.length>0&&x[x.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!x||O[1]>x[0]&&O[1]<x[3])){_.label=O[1];break}if(O[0]===6&&_.label<x[1]){_.label=x[1],x=O;break}if(x&&_.label<x[2]){_.label=x[2],_.ops.push(O);break}x[2]&&_.ops.pop(),_.trys.pop();continue}O=T.call(m,_)}catch(N){O=[6,N],b=0}finally{k=x=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([C,D])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.downscaleImage=function(m,T,k,b,x,_,I,w){return f(this,void 0,void 0,function(){var C,D,O,N,j,$,Z,ie;return p(this,function(Y){switch(Y.label){case 0:return C=T.split(";")[0].split(":")[1],x=x||"image/jpeg",w=w||.7,(D=new Image).src=T,[4,new Promise(function(se){D.onload=function(){se()}})];case 1:return Y.sent(),O=function(se,q,J,X){if(J&&X&&se<=J&&q<=X)return[se,q];if(J&&se>J){var ne=J,ge=Math.floor(q/se*ne);if(X&&ge>X){var me=X;return[Math.floor(se/q*me),me]}return[ne,ge]}return X&&q>X?(ge=X,[ne=Math.floor(se/q*ge),ge]):[q,se]}(D.width,D.height,k,b),N=O[0],j=O[1],($=document.createElement("canvas")).width=N,$.height=j,Z=$.getContext("2d"),x==="image/jpeg"&&(Z.fillStyle="#FFFFFF",Z.fillRect(0,0,D.width,D.height)),I!=null&&I.includes(C)?[2,T]:(_!=null&&_.includes(C)&&(x=C),Z.drawImage(D,0,0,N,j),ie=$.toDataURL(x,w),m.log("downscaling image...",{args:{dataUrl:T,maxWidth:k,maxHeight:b,imageType:x,ignoreImageTypes:I,keepImageTypes:_,imageQuality:w},newHeight:j,newWidth:N}),[2,ie])}})})}},922:function(l,u){var f=this&&this.__awaiter||function(m,T,k,b){return new(k||(k=Promise))(function(x,_){function I(D){try{C(b.next(D))}catch(O){_(O)}}function w(D){try{C(b.throw(D))}catch(O){_(O)}}function C(D){var O;D.done?x(D.value):(O=D.value,O instanceof k?O:new k(function(N){N(O)})).then(I,w)}C((b=b.apply(m,T||[])).next())})},p=this&&this.__generator||function(m,T){var k,b,x,_={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]},I=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return I.next=w(0),I.throw=w(1),I.return=w(2),typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function w(C){return function(D){return function(O){if(k)throw new TypeError("Generator is already executing.");for(;I&&(I=0,O[0]&&(_=0)),_;)try{if(k=1,b&&(x=2&O[0]?b.return:O[0]?b.throw||((x=b.return)&&x.call(b),0):b.next)&&!(x=x.call(b,O[1])).done)return x;switch(b=0,x&&(O=[2&O[0],x.value]),O[0]){case 0:case 1:x=O;break;case 4:return _.label++,{value:O[1],done:!1};case 5:_.label++,b=O[1],O=[0];continue;case 7:O=_.ops.pop(),_.trys.pop();continue;default:if(x=_.trys,!((x=x.length>0&&x[x.length-1])||O[0]!==6&&O[0]!==2)){_=0;continue}if(O[0]===3&&(!x||O[1]>x[0]&&O[1]<x[3])){_.label=O[1];break}if(O[0]===6&&_.label<x[1]){_.label=x[1],x=O;break}if(x&&_.label<x[2]){_.label=x[2],_.ops.push(O);break}x[2]&&_.ops.pop(),_.trys.pop();continue}O=T.call(m,_)}catch(N){O=[6,N],b=0}finally{k=x=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([C,D])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.file2b64=function(m){return f(this,void 0,void 0,function(){var T,k;return p(this,function(b){return T=new FileReader,k=new Promise(function(x,_){T.addEventListener("load",function(){var I,w=(I=T.result)===null||I===void 0?void 0:I.toString();w?x(w):_("could not convert file to base64")},!1)}),T.readAsDataURL(m),[2,k]})})}},457:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.warnAboutOptions=function(f,p){f.maxWidth=f.maxWidth||1e3,f.maxHeight=f.maxHeight||1e3,f.maxWidth&&typeof f.maxWidth!="number"&&(p.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
211
211
  received: `.concat(f.maxWidth,`
212
212
  -> using default 1000`)),f.maxWidth=1e3),f.maxHeight&&typeof f.maxHeight!="number"&&(p.warn(`[config error] 'maxHeight' is required to be a "number" (in pixels),
213
213
  received: `.concat(f.maxHeight,`
@@ -215,7 +215,7 @@ received: `.concat(f.maxHeight,`
215
215
  received: `.concat(f.quality,`
216
216
  -> using default 0.7`)),f.quality=.7),!f.imageType||typeof f.imageType=="string"&&f.imageType.startsWith("image/")||(p.warn(`quill.imageCompressor: [config error] 'imageType' is required be in the form of "image/png" or "image/jpeg" etc ...,
217
217
  received: `.concat(f.imageType,`
218
- -> using default image/jpeg`)),f.imageType="image/jpeg"),f.keepImageTypes||(f.keepImageTypes=[]),f.keepImageTypes&&!Array.isArray(f.keepImageTypes)&&(p.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: `.concat(f.keepImageTypes," -> using default []")),f.keepImageTypes=[]),f.ignoreImageTypes||(f.ignoreImageTypes=[]),f.ignoreImageTypes&&!Array.isArray(f.ignoreImageTypes)&&(p.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: `.concat(f.ignoreImageTypes," -> using default []")),f.ignoreImageTypes=[]),f.handleOnPaste&&typeof f.handleOnPaste!="boolean"&&(p.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean", received: `.concat(f.ignoreImageTypes," -> using default true")),f.handleOnPaste=!0),f.insertIntoEditor&&typeof f.insertIntoEditor!="function"&&(p.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: `.concat(f.insertIntoEditor," -> using default undefined")),f.insertIntoEditor=void 0)}},423:function(l,u,f){var p=this&&this.__awaiter||function(w,C,D,O){return new(D||(D=Promise))(function(F,j){function $(Y){try{ie(O.next(Y))}catch(se){j(se)}}function Z(Y){try{ie(O.throw(Y))}catch(se){j(se)}}function ie(Y){var se;Y.done?F(Y.value):(se=Y.value,se instanceof D?se:new D(function(q){q(se)})).then($,Z)}ie((O=O.apply(w,C||[])).next())})},m=this&&this.__generator||function(w,C){var D,O,F,j={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]},$=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return $.next=Z(0),$.throw=Z(1),$.return=Z(2),typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Z(ie){return function(Y){return function(se){if(D)throw new TypeError("Generator is already executing.");for(;$&&($=0,se[0]&&(j=0)),j;)try{if(D=1,O&&(F=2&se[0]?O.return:se[0]?O.throw||((F=O.return)&&F.call(O),0):O.next)&&!(F=F.call(O,se[1])).done)return F;switch(O=0,F&&(se=[2&se[0],F.value]),se[0]){case 0:case 1:F=se;break;case 4:return j.label++,{value:se[1],done:!1};case 5:j.label++,O=se[1],se=[0];continue;case 7:se=j.ops.pop(),j.trys.pop();continue;default:if(F=j.trys,!((F=F.length>0&&F[F.length-1])||se[0]!==6&&se[0]!==2)){j=0;continue}if(se[0]===3&&(!F||se[1]>F[0]&&se[1]<F[3])){j.label=se[1];break}if(se[0]===6&&j.label<F[1]){j.label=F[1],F=se;break}if(F&&j.label<F[2]){j.label=F[2],j.ops.push(se);break}F[2]&&j.ops.pop(),j.trys.pop();continue}se=C.call(w,j)}catch(q){se=[6,q],O=0}finally{D=F=0}if(5&se[0])throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}([ie,Y])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.imageCompressor=void 0;var T=f(379),k=f(457),b=f(922),x=f(337),_=f(321),I=function(){function w(C,D){var O=this;this.quill=C,this.options=D||{};var F=!!D.debug,j=!!D.suppressErrorLogging;this.Logger=new _.ConsoleLogger(F,j),(0,k.warnAboutOptions)(D,this.Logger),this.imageDrop=new T.ImageDrop(C,function(Z){return p(O,void 0,void 0,function(){var ie;return m(this,function(Y){switch(Y.label){case 0:return this.Logger.log("onImageDrop",{dataUrl:Z}),[4,this.downscaleImageFromUrl(Z)];case 1:return ie=Y.sent(),this.insertToEditor(ie,w.b64toBlob(ie)),[2]}})})},this.Logger,this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:D,quill:C,debug:F});var $=this.quill.getModule("toolbar");$?$.addHandler("image",function(){return O.selectLocalImage()}):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}return w.b64toBlob=function(C){for(var D=atob(C.split(",")[1]),O=C.slice(5).split(";")[0],F=new ArrayBuffer(D.length),j=new Uint8Array(F),$=0;$<D.length;$++)j[$]=D.charCodeAt($);return new Blob([F],{type:O})},w.prototype.selectLocalImage=function(C){var D=this;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=function(){return D.fileChanged().then(function(){return C&&C()})},document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(function(){D.fileHolder&&document.body.removeChild(D.fileHolder)})},w.prototype.fileChanged=function(C){return p(this,void 0,void 0,function(){var D,O,F,j,$;return m(this,function(Z){switch(Z.label){case 0:return(D=C||(($=this.fileHolder)===null||$===void 0?void 0:$.files))&&D.length?(O=D[0],this.Logger.log("fileChanged",{file:O}),O?[4,(0,b.file2b64)(O)]:[2]):[2];case 1:return F=Z.sent(),[4,this.downscaleImageFromUrl(F)];case 2:return j=Z.sent(),this.insertToEditor(j,w.b64toBlob(j)),[2]}})})},w.prototype.downscaleImageFromUrl=function(C){return p(this,void 0,void 0,function(){var D;return m(this,function(O){switch(O.label){case 0:return[4,(0,x.downscaleImage)(this.Logger,C,this.options.maxWidth,this.options.maxHeight,this.options.imageType,this.options.keepImageTypes,this.options.ignoreImageTypes,this.options.quality)];case 1:return D=O.sent(),this.Logger.log("downscaleImageFromUrl",{dataUrl:C,dataUrlCompressed:D}),[2,D]}})})},w.prototype.insertToEditor=function(C,D){if(this.options.insertIntoEditor)this.options.insertIntoEditor(C,D,this.quill);else{this.Logger.log("insertToEditor",{url:C}),this.range=this.quill.getSelection();var O=this.range;if(!O)return;this.logFileSize(C),this.quill.insertEmbed(O.index,"image","".concat(C),"user"),O.index++,this.quill.setSelection(O,"api")}},w.prototype.logFileSize=function(C){var D=(Math.round(3*(C.length-22)/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+D+" kb")},w}();u.imageCompressor=I,window.imageCompressor=I,u.default=I},379:function(l,u,f){var p=this&&this.__awaiter||function(x,_,I,w){return new(I||(I=Promise))(function(C,D){function O($){try{j(w.next($))}catch(Z){D(Z)}}function F($){try{j(w.throw($))}catch(Z){D(Z)}}function j($){var Z;$.done?C($.value):(Z=$.value,Z instanceof I?Z:new I(function(ie){ie(Z)})).then(O,F)}j((w=w.apply(x,_||[])).next())})},m=this&&this.__generator||function(x,_){var I,w,C,D={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]},O=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return O.next=F(0),O.throw=F(1),O.return=F(2),typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function F(j){return function($){return function(Z){if(I)throw new TypeError("Generator is already executing.");for(;O&&(O=0,Z[0]&&(D=0)),D;)try{if(I=1,w&&(C=2&Z[0]?w.return:Z[0]?w.throw||((C=w.return)&&C.call(w),0):w.next)&&!(C=C.call(w,Z[1])).done)return C;switch(w=0,C&&(Z=[2&Z[0],C.value]),Z[0]){case 0:case 1:C=Z;break;case 4:return D.label++,{value:Z[1],done:!1};case 5:D.label++,w=Z[1],Z=[0];continue;case 7:Z=D.ops.pop(),D.trys.pop();continue;default:if(C=D.trys,!((C=C.length>0&&C[C.length-1])||Z[0]!==6&&Z[0]!==2)){D=0;continue}if(Z[0]===3&&(!C||Z[1]>C[0]&&Z[1]<C[3])){D.label=Z[1];break}if(Z[0]===6&&D.label<C[1]){D.label=C[1],C=Z;break}if(C&&D.label<C[2]){D.label=C[2],D.ops.push(Z);break}C[2]&&D.ops.pop(),D.trys.pop();continue}Z=_.call(x,D)}catch(ie){Z=[6,ie],w=0}finally{I=C=0}if(5&Z[0])throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}([j,$])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.ImageDrop=void 0;var T=f(922),k=function(){function x(_,I,w,C){var D=this;this.quill=_,this.onNewDataUrl=I,this.logger=w,this.handleOnPaste=C,this.localDrag=!1,this.quill.root.addEventListener("dragstart",function(O){return D.handleDragStart(O)},!1),this.quill.root.addEventListener("dragend",function(O){return D.handleDragEnd(O)},!1),this.quill.root.addEventListener("drop",function(O){return D.handleDrop(O)},!0),this.handleOnPaste&&this.quill.root.addEventListener("paste",function(O){return D.handlePaste(O)},!0)}return x.prototype.handleDragStart=function(_){this.localDrag=!0},x.prototype.handleDragEnd=function(_){this.localDrag=!1},x.prototype.handleDrop=function(_){return p(this,void 0,void 0,function(){var I,w,C,D,O,F,j,$,Z,ie;return m(this,function(Y){switch(Y.label){case 0:return this.localDrag?[2]:(_.preventDefault(),document.caretRangeFromPoint&&(I=document.getSelection(),w=document.caretRangeFromPoint(_.clientX,_.clientY),I&&w&&I.setBaseAndExtent(w.startContainer,w.startOffset,w.startContainer,w.startOffset)),this.logger.log("handleDrop",{evt:_}),C=(j=_.dataTransfer)===null||j===void 0?void 0:j.files,(D=Array.from(C||[]).filter(function(se){return b(se.type)})).length>0?(_.stopPropagation(),this.logger.log("handleDrop","found files",{evt:_,files:C,imageFiles:D}),[4,this.pasteFilesIntoQuill(D)]):[3,2]);case 1:return Y.sent(),[2];case 2:return!(($=_.dataTransfer)===null||$===void 0)&&$.items?(_.stopPropagation(),this.logger.log("handleDrop","found items",{evt:_,files:C,imageFiles:D}),[4,this.handleDataTransferList((Z=_.dataTransfer)===null||Z===void 0?void 0:Z.items,_)]):[3,4];case 3:return Y.sent(),[2];case 4:return O=(ie=_.dataTransfer)===null||ie===void 0?void 0:ie.getData("URL"),this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:O}),O?[4,fetch(O)]:[3,8];case 5:return[4,Y.sent().blob()];case 6:return F=Y.sent(),this.logger.log("handleDrop","blob from drag event",{evt:_,files:C,imageFiles:D}),[4,this.pasteFilesIntoQuill([F])];case 7:Y.sent(),Y.label=8;case 8:return[2]}})})},x.prototype.handlePaste=function(_){return p(this,void 0,void 0,function(){var I;return m(this,function(w){switch(w.label){case 0:return[4,this.handleDataTransferList((I=_.clipboardData)===null||I===void 0?void 0:I.items,_)];case 1:return w.sent(),[2]}})})},x.prototype.handleDataTransferList=function(_,I){return p(this,void 0,void 0,function(){var w,C,D,O;return m(this,function(F){switch(F.label){case 0:return w=Array.from(_||[]),C=w.filter(function(j){return j.kind==="file"&&b(j.type)}),D=w.map(function(j){return{type:j.type,kind:j.kind}}),this.logger.log("handleDataTransferList",{fileTypes:D,imageCount:C.length}),C.length?(I.preventDefault(),I.stopPropagation(),O=C.map(function(j){return j.getAsFile()}),[4,this.pasteFilesIntoQuill(O)]):[2];case 1:return F.sent(),[2]}})})},x.prototype.pasteFilesIntoQuill=function(_){return p(this,void 0,void 0,function(){var I=this;return m(this,function(w){switch(w.label){case 0:return this.logger.log(" pasteFilesIntoQuill","pasting ".concat(_.length," images...")),[4,Promise.all(_.map(function(C,D){return p(I,void 0,void 0,function(){var O;return m(this,function(F){switch(F.label){case 0:return C?[4,(0,T.file2b64)(C)]:[2];case 1:return O=F.sent(),this.logger.log(" pasteFilesIntoQuill","pasting image (".concat(D,")")),this.onNewDataUrl(O),[2]}})})}))];case 1:return w.sent(),this.logger.log(" pasteFilesIntoQuill","done"),[2]}})})},x}();function b(x){return!!x.match(/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i)}u.ImageDrop=k}},n={},i=function l(u){var f=n[u];if(f!==void 0)return f.exports;var p=n[u]={exports:{}};return t[u].call(p.exports,p,p.exports,l),p.exports}(423);return i})())}(yp)),yp.exports}var JO=XO();const QO=cl(JO);var Jd={exports:{}},eP=Jd.exports,by;function tP(){return by||(by=1,function(r,e){(function(t,n){r.exports=n()})(eP,function(){function t(_){if(!(typeof window>"u")){var I=document.createElement("style");return I.setAttribute("media","screen"),I.innerHTML=_,document.head.appendChild(I),_}}/*! *****************************************************************************
218
+ -> using default image/jpeg`)),f.imageType="image/jpeg"),f.keepImageTypes||(f.keepImageTypes=[]),f.keepImageTypes&&!Array.isArray(f.keepImageTypes)&&(p.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: `.concat(f.keepImageTypes," -> using default []")),f.keepImageTypes=[]),f.ignoreImageTypes||(f.ignoreImageTypes=[]),f.ignoreImageTypes&&!Array.isArray(f.ignoreImageTypes)&&(p.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: `.concat(f.ignoreImageTypes," -> using default []")),f.ignoreImageTypes=[]),f.handleOnPaste&&typeof f.handleOnPaste!="boolean"&&(p.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean", received: `.concat(f.ignoreImageTypes," -> using default true")),f.handleOnPaste=!0),f.insertIntoEditor&&typeof f.insertIntoEditor!="function"&&(p.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: `.concat(f.insertIntoEditor," -> using default undefined")),f.insertIntoEditor=void 0)}},423:function(l,u,f){var p=this&&this.__awaiter||function(w,C,D,O){return new(D||(D=Promise))(function(N,j){function $(Y){try{ie(O.next(Y))}catch(se){j(se)}}function Z(Y){try{ie(O.throw(Y))}catch(se){j(se)}}function ie(Y){var se;Y.done?N(Y.value):(se=Y.value,se instanceof D?se:new D(function(q){q(se)})).then($,Z)}ie((O=O.apply(w,C||[])).next())})},m=this&&this.__generator||function(w,C){var D,O,N,j={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]},$=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return $.next=Z(0),$.throw=Z(1),$.return=Z(2),typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Z(ie){return function(Y){return function(se){if(D)throw new TypeError("Generator is already executing.");for(;$&&($=0,se[0]&&(j=0)),j;)try{if(D=1,O&&(N=2&se[0]?O.return:se[0]?O.throw||((N=O.return)&&N.call(O),0):O.next)&&!(N=N.call(O,se[1])).done)return N;switch(O=0,N&&(se=[2&se[0],N.value]),se[0]){case 0:case 1:N=se;break;case 4:return j.label++,{value:se[1],done:!1};case 5:j.label++,O=se[1],se=[0];continue;case 7:se=j.ops.pop(),j.trys.pop();continue;default:if(N=j.trys,!((N=N.length>0&&N[N.length-1])||se[0]!==6&&se[0]!==2)){j=0;continue}if(se[0]===3&&(!N||se[1]>N[0]&&se[1]<N[3])){j.label=se[1];break}if(se[0]===6&&j.label<N[1]){j.label=N[1],N=se;break}if(N&&j.label<N[2]){j.label=N[2],j.ops.push(se);break}N[2]&&j.ops.pop(),j.trys.pop();continue}se=C.call(w,j)}catch(q){se=[6,q],O=0}finally{D=N=0}if(5&se[0])throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}([ie,Y])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.imageCompressor=void 0;var T=f(379),k=f(457),b=f(922),x=f(337),_=f(321),I=function(){function w(C,D){var O=this;this.quill=C,this.options=D||{};var N=!!D.debug,j=!!D.suppressErrorLogging;this.Logger=new _.ConsoleLogger(N,j),(0,k.warnAboutOptions)(D,this.Logger),this.imageDrop=new T.ImageDrop(C,function(Z){return p(O,void 0,void 0,function(){var ie;return m(this,function(Y){switch(Y.label){case 0:return this.Logger.log("onImageDrop",{dataUrl:Z}),[4,this.downscaleImageFromUrl(Z)];case 1:return ie=Y.sent(),this.insertToEditor(ie,w.b64toBlob(ie)),[2]}})})},this.Logger,this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:D,quill:C,debug:N});var $=this.quill.getModule("toolbar");$?$.addHandler("image",function(){return O.selectLocalImage()}):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}return w.b64toBlob=function(C){for(var D=atob(C.split(",")[1]),O=C.slice(5).split(";")[0],N=new ArrayBuffer(D.length),j=new Uint8Array(N),$=0;$<D.length;$++)j[$]=D.charCodeAt($);return new Blob([N],{type:O})},w.prototype.selectLocalImage=function(C){var D=this;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=function(){return D.fileChanged().then(function(){return C&&C()})},document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(function(){D.fileHolder&&document.body.removeChild(D.fileHolder)})},w.prototype.fileChanged=function(C){return p(this,void 0,void 0,function(){var D,O,N,j,$;return m(this,function(Z){switch(Z.label){case 0:return(D=C||(($=this.fileHolder)===null||$===void 0?void 0:$.files))&&D.length?(O=D[0],this.Logger.log("fileChanged",{file:O}),O?[4,(0,b.file2b64)(O)]:[2]):[2];case 1:return N=Z.sent(),[4,this.downscaleImageFromUrl(N)];case 2:return j=Z.sent(),this.insertToEditor(j,w.b64toBlob(j)),[2]}})})},w.prototype.downscaleImageFromUrl=function(C){return p(this,void 0,void 0,function(){var D;return m(this,function(O){switch(O.label){case 0:return[4,(0,x.downscaleImage)(this.Logger,C,this.options.maxWidth,this.options.maxHeight,this.options.imageType,this.options.keepImageTypes,this.options.ignoreImageTypes,this.options.quality)];case 1:return D=O.sent(),this.Logger.log("downscaleImageFromUrl",{dataUrl:C,dataUrlCompressed:D}),[2,D]}})})},w.prototype.insertToEditor=function(C,D){if(this.options.insertIntoEditor)this.options.insertIntoEditor(C,D,this.quill);else{this.Logger.log("insertToEditor",{url:C}),this.range=this.quill.getSelection();var O=this.range;if(!O)return;this.logFileSize(C),this.quill.insertEmbed(O.index,"image","".concat(C),"user"),O.index++,this.quill.setSelection(O,"api")}},w.prototype.logFileSize=function(C){var D=(Math.round(3*(C.length-22)/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+D+" kb")},w}();u.imageCompressor=I,window.imageCompressor=I,u.default=I},379:function(l,u,f){var p=this&&this.__awaiter||function(x,_,I,w){return new(I||(I=Promise))(function(C,D){function O($){try{j(w.next($))}catch(Z){D(Z)}}function N($){try{j(w.throw($))}catch(Z){D(Z)}}function j($){var Z;$.done?C($.value):(Z=$.value,Z instanceof I?Z:new I(function(ie){ie(Z)})).then(O,N)}j((w=w.apply(x,_||[])).next())})},m=this&&this.__generator||function(x,_){var I,w,C,D={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]},O=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return O.next=N(0),O.throw=N(1),O.return=N(2),typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function N(j){return function($){return function(Z){if(I)throw new TypeError("Generator is already executing.");for(;O&&(O=0,Z[0]&&(D=0)),D;)try{if(I=1,w&&(C=2&Z[0]?w.return:Z[0]?w.throw||((C=w.return)&&C.call(w),0):w.next)&&!(C=C.call(w,Z[1])).done)return C;switch(w=0,C&&(Z=[2&Z[0],C.value]),Z[0]){case 0:case 1:C=Z;break;case 4:return D.label++,{value:Z[1],done:!1};case 5:D.label++,w=Z[1],Z=[0];continue;case 7:Z=D.ops.pop(),D.trys.pop();continue;default:if(C=D.trys,!((C=C.length>0&&C[C.length-1])||Z[0]!==6&&Z[0]!==2)){D=0;continue}if(Z[0]===3&&(!C||Z[1]>C[0]&&Z[1]<C[3])){D.label=Z[1];break}if(Z[0]===6&&D.label<C[1]){D.label=C[1],C=Z;break}if(C&&D.label<C[2]){D.label=C[2],D.ops.push(Z);break}C[2]&&D.ops.pop(),D.trys.pop();continue}Z=_.call(x,D)}catch(ie){Z=[6,ie],w=0}finally{I=C=0}if(5&Z[0])throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}([j,$])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.ImageDrop=void 0;var T=f(922),k=function(){function x(_,I,w,C){var D=this;this.quill=_,this.onNewDataUrl=I,this.logger=w,this.handleOnPaste=C,this.localDrag=!1,this.quill.root.addEventListener("dragstart",function(O){return D.handleDragStart(O)},!1),this.quill.root.addEventListener("dragend",function(O){return D.handleDragEnd(O)},!1),this.quill.root.addEventListener("drop",function(O){return D.handleDrop(O)},!0),this.handleOnPaste&&this.quill.root.addEventListener("paste",function(O){return D.handlePaste(O)},!0)}return x.prototype.handleDragStart=function(_){this.localDrag=!0},x.prototype.handleDragEnd=function(_){this.localDrag=!1},x.prototype.handleDrop=function(_){return p(this,void 0,void 0,function(){var I,w,C,D,O,N,j,$,Z,ie;return m(this,function(Y){switch(Y.label){case 0:return this.localDrag?[2]:(_.preventDefault(),document.caretRangeFromPoint&&(I=document.getSelection(),w=document.caretRangeFromPoint(_.clientX,_.clientY),I&&w&&I.setBaseAndExtent(w.startContainer,w.startOffset,w.startContainer,w.startOffset)),this.logger.log("handleDrop",{evt:_}),C=(j=_.dataTransfer)===null||j===void 0?void 0:j.files,(D=Array.from(C||[]).filter(function(se){return b(se.type)})).length>0?(_.stopPropagation(),this.logger.log("handleDrop","found files",{evt:_,files:C,imageFiles:D}),[4,this.pasteFilesIntoQuill(D)]):[3,2]);case 1:return Y.sent(),[2];case 2:return!(($=_.dataTransfer)===null||$===void 0)&&$.items?(_.stopPropagation(),this.logger.log("handleDrop","found items",{evt:_,files:C,imageFiles:D}),[4,this.handleDataTransferList((Z=_.dataTransfer)===null||Z===void 0?void 0:Z.items,_)]):[3,4];case 3:return Y.sent(),[2];case 4:return O=(ie=_.dataTransfer)===null||ie===void 0?void 0:ie.getData("URL"),this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:O}),O?[4,fetch(O)]:[3,8];case 5:return[4,Y.sent().blob()];case 6:return N=Y.sent(),this.logger.log("handleDrop","blob from drag event",{evt:_,files:C,imageFiles:D}),[4,this.pasteFilesIntoQuill([N])];case 7:Y.sent(),Y.label=8;case 8:return[2]}})})},x.prototype.handlePaste=function(_){return p(this,void 0,void 0,function(){var I;return m(this,function(w){switch(w.label){case 0:return[4,this.handleDataTransferList((I=_.clipboardData)===null||I===void 0?void 0:I.items,_)];case 1:return w.sent(),[2]}})})},x.prototype.handleDataTransferList=function(_,I){return p(this,void 0,void 0,function(){var w,C,D,O;return m(this,function(N){switch(N.label){case 0:return w=Array.from(_||[]),C=w.filter(function(j){return j.kind==="file"&&b(j.type)}),D=w.map(function(j){return{type:j.type,kind:j.kind}}),this.logger.log("handleDataTransferList",{fileTypes:D,imageCount:C.length}),C.length?(I.preventDefault(),I.stopPropagation(),O=C.map(function(j){return j.getAsFile()}),[4,this.pasteFilesIntoQuill(O)]):[2];case 1:return N.sent(),[2]}})})},x.prototype.pasteFilesIntoQuill=function(_){return p(this,void 0,void 0,function(){var I=this;return m(this,function(w){switch(w.label){case 0:return this.logger.log(" pasteFilesIntoQuill","pasting ".concat(_.length," images...")),[4,Promise.all(_.map(function(C,D){return p(I,void 0,void 0,function(){var O;return m(this,function(N){switch(N.label){case 0:return C?[4,(0,T.file2b64)(C)]:[2];case 1:return O=N.sent(),this.logger.log(" pasteFilesIntoQuill","pasting image (".concat(D,")")),this.onNewDataUrl(O),[2]}})})}))];case 1:return w.sent(),this.logger.log(" pasteFilesIntoQuill","done"),[2]}})})},x}();function b(x){return!!x.match(/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i)}u.ImageDrop=k}},n={},i=function l(u){var f=n[u];if(f!==void 0)return f.exports;var p=n[u]={exports:{}};return t[u].call(p.exports,p,p.exports,l),p.exports}(423);return i})())}(yp)),yp.exports}var JO=XO();const QO=cl(JO);var Jd={exports:{}},eP=Jd.exports,by;function tP(){return by||(by=1,function(r,e){(function(t,n){r.exports=n()})(eP,function(){function t(_){if(!(typeof window>"u")){var I=document.createElement("style");return I.setAttribute("media","screen"),I.innerHTML=_,document.head.appendChild(I),_}}/*! *****************************************************************************
219
219
  Copyright (c) Microsoft Corporation.
220
220
 
221
221
  Permission to use, copy, modify, and/or distribute this software for any
@@ -344,15 +344,15 @@ received: `.concat(f.imageType,`
344
344
  <a class="btn" data-type="align" data-styles="">{4}</a>
345
345
  </div>
346
346
  </div>
347
- `,T=function(){function _(I,w,C,D){this.resizer=null,this.startResizePosition=null,this.i18n=new u((D==null?void 0:D.locale)||f),this.options=D,this.resizeTarget=I,I.originSize||(I.originSize={width:I.clientWidth,height:I.clientHeight}),this.editor=C,this.container=w,this.initResizer(),this.positionResizerToTarget(I),this.resizing=this.resizing.bind(this),this.endResize=this.endResize.bind(this),this.startResize=this.startResize.bind(this),this.toolbarClick=this.toolbarClick.bind(this),this.toolbarInputChange=this.toolbarInputChange.bind(this),this.onScroll=this.onScroll.bind(this),this.bindEvents()}return _.prototype.initResizer=function(){var I=this.container.querySelector("#editor-resizer");I||(I=document.createElement("div"),I.setAttribute("id","editor-resizer"),I.innerHTML=p(m,this.i18n.findLabel("altTip"),this.i18n.findLabel("floatLeft"),this.i18n.findLabel("center"),this.i18n.findLabel("floatRight"),this.i18n.findLabel("restore"),this.i18n.findLabel("inputTip")),this.container.appendChild(I)),this.resizer=I},_.prototype.positionResizerToTarget=function(I){this.resizer!==null&&(this.resizer.style.setProperty("left",I.offsetLeft+"px"),this.resizer.style.setProperty("top",I.offsetTop-this.editor.scrollTop+"px"),this.resizer.style.setProperty("width",I.clientWidth+"px"),this.resizer.style.setProperty("height",I.clientHeight+"px"))},_.prototype.bindEvents=function(){this.resizer!==null&&(this.resizer.addEventListener("mousedown",this.startResize),this.resizer.addEventListener("click",this.toolbarClick),this.resizer.addEventListener("change",this.toolbarInputChange)),window.addEventListener("mouseup",this.endResize),window.addEventListener("mousemove",this.resizing),this.editor.addEventListener("scroll",this.onScroll)},_.prototype.onScroll=function(){this.positionResizerToTarget(this.resizeTarget)},_.prototype._setStylesForToolbar=function(I,w){var C,D="_styles_"+I,O=this.resizeTarget.style,F=this.resizeTarget[D];O.cssText=O.cssText.replaceAll(" ","").replace(F,"")+(";"+w),this.resizeTarget[D]=w,this.positionResizerToTarget(this.resizeTarget),(C=this.options)===null||C===void 0||C.onChange(this.resizeTarget)},_.prototype.toolbarInputChange=function(I){var w,C=I.target,D=(w=C==null?void 0:C.dataset)===null||w===void 0?void 0:w.type,O=C.value;D&&Number(O)&&this._setStylesForToolbar(D,"width: "+Number(O)+"%;")},_.prototype.toolbarClick=function(I){var w,C,D=I.target,O=(w=D==null?void 0:D.dataset)===null||w===void 0?void 0:w.type;O&&D.classList.contains("btn")&&this._setStylesForToolbar(O,(C=D==null?void 0:D.dataset)===null||C===void 0?void 0:C.styles)},_.prototype.startResize=function(I){var w=I.target;w.classList.contains("handler")&&I.which===1&&(this.startResizePosition={left:I.clientX,top:I.clientY,width:this.resizeTarget.clientWidth,height:this.resizeTarget.clientHeight})},_.prototype.endResize=function(){var I;this.startResizePosition=null,(I=this.options)===null||I===void 0||I.onChange(this.resizeTarget)},_.prototype.resizing=function(I){if(this.startResizePosition){var w=I.clientX-this.startResizePosition.left,C=I.clientY-this.startResizePosition.top,D=this.startResizePosition.width,O=this.startResizePosition.height;if(D+=w,O+=C,I.altKey){var F=this.resizeTarget.originSize,j=F.height/F.width;O=j*D}this.resizeTarget.style.setProperty("width",Math.max(D,30)+"px"),this.resizeTarget.style.setProperty("height",Math.max(O,30)+"px"),this.positionResizerToTarget(this.resizeTarget)}},_.prototype.destory=function(){this.container.removeChild(this.resizer),window.removeEventListener("mouseup",this.endResize),window.removeEventListener("mousemove",this.resizing),this.editor.removeEventListener("scroll",this.onScroll),this.resizer=null},_}(),k=function(){function _(I,w){this.element=I,this.cb=w,this.hasTracked=!1}return _}(),b=function(){function _(){}return _.track=function(I,w){this.iframes.push(new k(I,w)),this.interval||(this.interval=setInterval(function(){_.checkClick()},this.resolution))},_.checkClick=function(){if(document.activeElement){var I=document.activeElement;for(var w in this.iframes)I===this.iframes[w].element?this.iframes[w].hasTracked==!1&&(this.iframes[w].cb.apply(window,[]),this.iframes[w].hasTracked=!0):this.iframes[w].hasTracked=!1}},_.resolution=200,_.iframes=[],_.interval=null,_}();function x(_,I){var w=_.root,C,D;function O(){var F=_.getContents().constructor,j=new F().retain(1);_.updateContents(j)}w.addEventListener("click",function(F){var j=F.target;F.target&&["img","video"].includes(j.tagName.toLowerCase())&&(C=j,D=new T(j,w.parentElement,w,l(l({},I),{onChange:O})))}),_.on("text-change",function(F,j){w.querySelectorAll("iframe").forEach(function($){b.track($,function(){C=$,D=new T($,w.parentElement,w,l(l({},I),{onChange:O}))})})}),document.addEventListener("mousedown",function(F){var j,$,Z,ie=F.target;ie!==C&&!(!(($=(j=D==null?void 0:D.resizer)===null||j===void 0?void 0:j.contains)===null||$===void 0)&&$.call(j,ie))&&((Z=D==null?void 0:D.destory)===null||Z===void 0||Z.call(D),D=null,C=null)},{capture:!0})}return x})}(Jd)),Jd.exports}var rP=tP();const nP=cl(rP);var bp,_y;function iP(){if(_y)return bp;_y=1;function r(){this.__data__=[],this.size=0}return bp=r,bp}var _p,xy;function pS(){if(xy)return _p;xy=1;function r(e,t){return e===t||e!==e&&t!==t}return _p=r,_p}var xp,Sy;function Sh(){if(Sy)return xp;Sy=1;var r=pS();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return xp=e,xp}var Sp,Cy;function oP(){if(Cy)return Sp;Cy=1;var r=Sh(),e=Array.prototype,t=e.splice;function n(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():t.call(l,u,1),--this.size,!0}return Sp=n,Sp}var Cp,wy;function sP(){if(wy)return Cp;wy=1;var r=Sh();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return Cp=e,Cp}var wp,Ay;function aP(){if(Ay)return wp;Ay=1;var r=Sh();function e(t){return r(this.__data__,t)>-1}return wp=e,wp}var Ap,Ty;function lP(){if(Ty)return Ap;Ty=1;var r=Sh();function e(t,n){var i=this.__data__,l=r(i,t);return l<0?(++this.size,i.push([t,n])):i[l][1]=n,this}return Ap=e,Ap}var Tp,Ey;function Ch(){if(Ey)return Tp;Ey=1;var r=iP(),e=oP(),t=sP(),n=aP(),i=lP();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Tp=l,Tp}var Ep,ky;function cP(){if(ky)return Ep;ky=1;var r=Ch();function e(){this.__data__=new r,this.size=0}return Ep=e,Ep}var kp,Ry;function uP(){if(Ry)return kp;Ry=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return kp=r,kp}var Rp,Iy;function fP(){if(Iy)return Rp;Iy=1;function r(e){return this.__data__.get(e)}return Rp=r,Rp}var Ip,Ly;function dP(){if(Ly)return Ip;Ly=1;function r(e){return this.__data__.has(e)}return Ip=r,Ip}var Lp,Dy;function gS(){if(Dy)return Lp;Dy=1;var r=typeof xi=="object"&&xi&&xi.Object===Object&&xi;return Lp=r,Lp}var Dp,My;function dl(){if(My)return Dp;My=1;var r=gS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Dp=t,Dp}var Mp,Oy;function Vm(){if(Oy)return Mp;Oy=1;var r=dl(),e=r.Symbol;return Mp=e,Mp}var Op,Py;function hP(){if(Py)return Op;Py=1;var r=Vm(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,i=r?r.toStringTag:void 0;function l(u){var f=t.call(u,i),p=u[i];try{u[i]=void 0;var m=!0}catch{}var T=n.call(u);return m&&(f?u[i]=p:delete u[i]),T}return Op=l,Op}var Pp,Ny;function pP(){if(Ny)return Pp;Ny=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Pp=t,Pp}var Np,Fy;function wh(){if(Fy)return Np;Fy=1;var r=Vm(),e=hP(),t=pP(),n="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(f){return f==null?f===void 0?i:n:l&&l in Object(f)?e(f):t(f)}return Np=u,Np}var Fp,jy;function mS(){if(jy)return Fp;jy=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Fp=r,Fp}var jp,By;function vS(){if(By)return jp;By=1;var r=wh(),e=mS(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!e(f))return!1;var p=r(f);return p==n||p==i||p==t||p==l}return jp=u,jp}var Bp,qy;function gP(){if(qy)return Bp;qy=1;var r=dl(),e=r["__core-js_shared__"];return Bp=e,Bp}var qp,Hy;function mP(){if(Hy)return qp;Hy=1;var r=gP(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return qp=t,qp}var Hp,zy;function yS(){if(zy)return Hp;zy=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Hp=t,Hp}var zp,$y;function vP(){if($y)return zp;$y=1;var r=vS(),e=mP(),t=mS(),n=yS(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,p=u.toString,m=f.hasOwnProperty,T=RegExp("^"+p.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(b){if(!t(b)||e(b))return!1;var x=r(b)?T:l;return x.test(n(b))}return zp=k,zp}var $p,Uy;function yP(){if(Uy)return $p;Uy=1;function r(e,t){return e==null?void 0:e[t]}return $p=r,$p}var Up,Wy;function lf(){if(Wy)return Up;Wy=1;var r=vP(),e=yP();function t(n,i){var l=e(n,i);return r(l)?l:void 0}return Up=t,Up}var Wp,Vy;function Gm(){if(Vy)return Wp;Vy=1;var r=lf(),e=dl(),t=r(e,"Map");return Wp=t,Wp}var Vp,Gy;function Ah(){if(Gy)return Vp;Gy=1;var r=lf(),e=r(Object,"create");return Vp=e,Vp}var Gp,Zy;function bP(){if(Zy)return Gp;Zy=1;var r=Ah();function e(){this.__data__=r?r(null):{},this.size=0}return Gp=e,Gp}var Zp,Ky;function _P(){if(Ky)return Zp;Ky=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Zp=r,Zp}var Kp,Yy;function xP(){if(Yy)return Kp;Yy=1;var r=Ah(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(l){var u=this.__data__;if(r){var f=u[l];return f===e?void 0:f}return n.call(u,l)?u[l]:void 0}return Kp=i,Kp}var Yp,Xy;function SP(){if(Xy)return Yp;Xy=1;var r=Ah(),e=Object.prototype,t=e.hasOwnProperty;function n(i){var l=this.__data__;return r?l[i]!==void 0:t.call(l,i)}return Yp=n,Yp}var Xp,Jy;function CP(){if(Jy)return Xp;Jy=1;var r=Ah(),e="__lodash_hash_undefined__";function t(n,i){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=r&&i===void 0?e:i,this}return Xp=t,Xp}var Jp,Qy;function wP(){if(Qy)return Jp;Qy=1;var r=bP(),e=_P(),t=xP(),n=SP(),i=CP();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Jp=l,Jp}var Qp,eb;function AP(){if(eb)return Qp;eb=1;var r=wP(),e=Ch(),t=Gm();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Qp=n,Qp}var eg,tb;function TP(){if(tb)return eg;tb=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return eg=r,eg}var tg,rb;function Th(){if(rb)return tg;rb=1;var r=TP();function e(t,n){var i=t.__data__;return r(n)?i[typeof n=="string"?"string":"hash"]:i.map}return tg=e,tg}var rg,nb;function EP(){if(nb)return rg;nb=1;var r=Th();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return rg=e,rg}var ng,ib;function kP(){if(ib)return ng;ib=1;var r=Th();function e(t){return r(this,t).get(t)}return ng=e,ng}var ig,ob;function RP(){if(ob)return ig;ob=1;var r=Th();function e(t){return r(this,t).has(t)}return ig=e,ig}var og,sb;function IP(){if(sb)return og;sb=1;var r=Th();function e(t,n){var i=r(this,t),l=i.size;return i.set(t,n),this.size+=i.size==l?0:1,this}return og=e,og}var sg,ab;function bS(){if(ab)return sg;ab=1;var r=AP(),e=EP(),t=kP(),n=RP(),i=IP();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,sg=l,sg}var ag,lb;function LP(){if(lb)return ag;lb=1;var r=Ch(),e=Gm(),t=bS(),n=200;function i(l,u){var f=this.__data__;if(f instanceof r){var p=f.__data__;if(!e||p.length<n-1)return p.push([l,u]),this.size=++f.size,this;f=this.__data__=new t(p)}return f.set(l,u),this.size=f.size,this}return ag=i,ag}var lg,cb;function DP(){if(cb)return lg;cb=1;var r=Ch(),e=cP(),t=uP(),n=fP(),i=dP(),l=LP();function u(f){var p=this.__data__=new r(f);this.size=p.size}return u.prototype.clear=e,u.prototype.delete=t,u.prototype.get=n,u.prototype.has=i,u.prototype.set=l,lg=u,lg}var cg,ub;function MP(){if(ub)return cg;ub=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return cg=e,cg}var ug,fb;function OP(){if(fb)return ug;fb=1;function r(e){return this.__data__.has(e)}return ug=r,ug}var fg,db;function PP(){if(db)return fg;db=1;var r=bS(),e=MP(),t=OP();function n(i){var l=-1,u=i==null?0:i.length;for(this.__data__=new r;++l<u;)this.add(i[l])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,fg=n,fg}var dg,hb;function NP(){if(hb)return dg;hb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}return dg=r,dg}var hg,pb;function FP(){if(pb)return hg;pb=1;function r(e,t){return e.has(t)}return hg=r,hg}var pg,gb;function _S(){if(gb)return pg;gb=1;var r=PP(),e=NP(),t=FP(),n=1,i=2;function l(u,f,p,m,T,k){var b=p&n,x=u.length,_=f.length;if(x!=_&&!(b&&_>x))return!1;var I=k.get(u),w=k.get(f);if(I&&w)return I==f&&w==u;var C=-1,D=!0,O=p&i?new r:void 0;for(k.set(u,f),k.set(f,u);++C<x;){var F=u[C],j=f[C];if(m)var $=b?m(j,F,C,f,u,k):m(F,j,C,u,f,k);if($!==void 0){if($)continue;D=!1;break}if(O){if(!e(f,function(Z,ie){if(!t(O,ie)&&(F===Z||T(F,Z,p,m,k)))return O.push(ie)})){D=!1;break}}else if(!(F===j||T(F,j,p,m,k))){D=!1;break}}return k.delete(u),k.delete(f),D}return pg=l,pg}var gg,mb;function jP(){if(mb)return gg;mb=1;var r=dl(),e=r.Uint8Array;return gg=e,gg}var mg,vb;function BP(){if(vb)return mg;vb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i,l){n[++t]=[l,i]}),n}return mg=r,mg}var vg,yb;function qP(){if(yb)return vg;yb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}return vg=r,vg}var yg,bb;function HP(){if(bb)return yg;bb=1;var r=Vm(),e=jP(),t=pS(),n=_S(),i=BP(),l=qP(),u=1,f=2,p="[object Boolean]",m="[object Date]",T="[object Error]",k="[object Map]",b="[object Number]",x="[object RegExp]",_="[object Set]",I="[object String]",w="[object Symbol]",C="[object ArrayBuffer]",D="[object DataView]",O=r?r.prototype:void 0,F=O?O.valueOf:void 0;function j($,Z,ie,Y,se,q,J){switch(ie){case D:if($.byteLength!=Z.byteLength||$.byteOffset!=Z.byteOffset)return!1;$=$.buffer,Z=Z.buffer;case C:return!($.byteLength!=Z.byteLength||!q(new e($),new e(Z)));case p:case m:case b:return t(+$,+Z);case T:return $.name==Z.name&&$.message==Z.message;case x:case I:return $==Z+"";case k:var X=i;case _:var ne=Y&u;if(X||(X=l),$.size!=Z.size&&!ne)return!1;var ge=J.get($);if(ge)return ge==Z;Y|=f,J.set($,Z);var me=n(X($),X(Z),Y,se,q,J);return J.delete($),me;case w:if(F)return F.call($)==F.call(Z)}return!1}return yg=j,yg}var bg,_b;function zP(){if(_b)return bg;_b=1;function r(e,t){for(var n=-1,i=t.length,l=e.length;++n<i;)e[l+n]=t[n];return e}return bg=r,bg}var _g,xb;function Zm(){if(xb)return _g;xb=1;var r=Array.isArray;return _g=r,_g}var xg,Sb;function $P(){if(Sb)return xg;Sb=1;var r=zP(),e=Zm();function t(n,i,l){var u=i(n);return e(n)?u:r(u,l(n))}return xg=t,xg}var Sg,Cb;function UP(){if(Cb)return Sg;Cb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length,l=0,u=[];++n<i;){var f=e[n];t(f,n,e)&&(u[l++]=f)}return u}return Sg=r,Sg}var Cg,wb;function WP(){if(wb)return Cg;wb=1;function r(){return[]}return Cg=r,Cg}var wg,Ab;function VP(){if(Ab)return wg;Ab=1;var r=UP(),e=WP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(f){return n.call(u,f)}))}:e;return wg=l,wg}var Ag,Tb;function GP(){if(Tb)return Ag;Tb=1;function r(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}return Ag=r,Ag}var Tg,Eb;function Eh(){if(Eb)return Tg;Eb=1;function r(e){return e!=null&&typeof e=="object"}return Tg=r,Tg}var Eg,kb;function ZP(){if(kb)return Eg;kb=1;var r=wh(),e=Eh(),t="[object Arguments]";function n(i){return e(i)&&r(i)==t}return Eg=n,Eg}var kg,Rb;function KP(){if(Rb)return kg;Rb=1;var r=ZP(),e=Eh(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(u){return e(u)&&n.call(u,"callee")&&!i.call(u,"callee")};return kg=l,kg}var Wf={exports:{}},Rg,Ib;function YP(){if(Ib)return Rg;Ib=1;function r(){return!1}return Rg=r,Rg}Wf.exports;var Lb;function xS(){return Lb||(Lb=1,function(r,e){var t=dl(),n=YP(),i=e&&!e.nodeType&&e,l=i&&!0&&r&&!r.nodeType&&r,u=l&&l.exports===i,f=u?t.Buffer:void 0,p=f?f.isBuffer:void 0,m=p||n;r.exports=m}(Wf,Wf.exports)),Wf.exports}var Ig,Db;function XP(){if(Db)return Ig;Db=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,i){var l=typeof n;return i=i??r,!!i&&(l=="number"||l!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Ig=t,Ig}var Lg,Mb;function SS(){if(Mb)return Lg;Mb=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Lg=e,Lg}var Dg,Ob;function JP(){if(Ob)return Dg;Ob=1;var r=wh(),e=SS(),t=Eh(),n="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",p="[object Function]",m="[object Map]",T="[object Number]",k="[object Object]",b="[object RegExp]",x="[object Set]",_="[object String]",I="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",D="[object Float32Array]",O="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",$="[object Int32Array]",Z="[object Uint8Array]",ie="[object Uint8ClampedArray]",Y="[object Uint16Array]",se="[object Uint32Array]",q={};q[D]=q[O]=q[F]=q[j]=q[$]=q[Z]=q[ie]=q[Y]=q[se]=!0,q[n]=q[i]=q[w]=q[l]=q[C]=q[u]=q[f]=q[p]=q[m]=q[T]=q[k]=q[b]=q[x]=q[_]=q[I]=!1;function J(X){return t(X)&&e(X.length)&&!!q[r(X)]}return Dg=J,Dg}var Mg,Pb;function QP(){if(Pb)return Mg;Pb=1;function r(e){return function(t){return e(t)}}return Mg=r,Mg}var Vf={exports:{}};Vf.exports;var Nb;function eN(){return Nb||(Nb=1,function(r,e){var t=gS(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,l=i&&i.exports===n,u=l&&t.process,f=function(){try{var p=i&&i.require&&i.require("util").types;return p||u&&u.binding&&u.binding("util")}catch{}}();r.exports=f}(Vf,Vf.exports)),Vf.exports}var Og,Fb;function CS(){if(Fb)return Og;Fb=1;var r=JP(),e=QP(),t=eN(),n=t&&t.isTypedArray,i=n?e(n):r;return Og=i,Og}var Pg,jb;function tN(){if(jb)return Pg;jb=1;var r=GP(),e=KP(),t=Zm(),n=xS(),i=XP(),l=CS(),u=Object.prototype,f=u.hasOwnProperty;function p(m,T){var k=t(m),b=!k&&e(m),x=!k&&!b&&n(m),_=!k&&!b&&!x&&l(m),I=k||b||x||_,w=I?r(m.length,String):[],C=w.length;for(var D in m)(T||f.call(m,D))&&!(I&&(D=="length"||x&&(D=="offset"||D=="parent")||_&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||i(D,C)))&&w.push(D);return w}return Pg=p,Pg}var Ng,Bb;function rN(){if(Bb)return Ng;Bb=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return Ng=e,Ng}var Fg,qb;function nN(){if(qb)return Fg;qb=1;function r(e,t){return function(n){return e(t(n))}}return Fg=r,Fg}var jg,Hb;function iN(){if(Hb)return jg;Hb=1;var r=nN(),e=r(Object.keys,Object);return jg=e,jg}var Bg,zb;function oN(){if(zb)return Bg;zb=1;var r=rN(),e=iN(),t=Object.prototype,n=t.hasOwnProperty;function i(l){if(!r(l))return e(l);var u=[];for(var f in Object(l))n.call(l,f)&&f!="constructor"&&u.push(f);return u}return Bg=i,Bg}var qg,$b;function sN(){if($b)return qg;$b=1;var r=vS(),e=SS();function t(n){return n!=null&&e(n.length)&&!r(n)}return qg=t,qg}var Hg,Ub;function aN(){if(Ub)return Hg;Ub=1;var r=tN(),e=oN(),t=sN();function n(i){return t(i)?r(i):e(i)}return Hg=n,Hg}var zg,Wb;function lN(){if(Wb)return zg;Wb=1;var r=$P(),e=VP(),t=aN();function n(i){return r(i,t,e)}return zg=n,zg}var $g,Vb;function cN(){if(Vb)return $g;Vb=1;var r=lN(),e=1,t=Object.prototype,n=t.hasOwnProperty;function i(l,u,f,p,m,T){var k=f&e,b=r(l),x=b.length,_=r(u),I=_.length;if(x!=I&&!k)return!1;for(var w=x;w--;){var C=b[w];if(!(k?C in u:n.call(u,C)))return!1}var D=T.get(l),O=T.get(u);if(D&&O)return D==u&&O==l;var F=!0;T.set(l,u),T.set(u,l);for(var j=k;++w<x;){C=b[w];var $=l[C],Z=u[C];if(p)var ie=k?p(Z,$,C,u,l,T):p($,Z,C,l,u,T);if(!(ie===void 0?$===Z||m($,Z,f,p,T):ie)){F=!1;break}j||(j=C=="constructor")}if(F&&!j){var Y=l.constructor,se=u.constructor;Y!=se&&"constructor"in l&&"constructor"in u&&!(typeof Y=="function"&&Y instanceof Y&&typeof se=="function"&&se instanceof se)&&(F=!1)}return T.delete(l),T.delete(u),F}return $g=i,$g}var Ug,Gb;function uN(){if(Gb)return Ug;Gb=1;var r=lf(),e=dl(),t=r(e,"DataView");return Ug=t,Ug}var Wg,Zb;function fN(){if(Zb)return Wg;Zb=1;var r=lf(),e=dl(),t=r(e,"Promise");return Wg=t,Wg}var Vg,Kb;function dN(){if(Kb)return Vg;Kb=1;var r=lf(),e=dl(),t=r(e,"Set");return Vg=t,Vg}var Gg,Yb;function hN(){if(Yb)return Gg;Yb=1;var r=lf(),e=dl(),t=r(e,"WeakMap");return Gg=t,Gg}var Zg,Xb;function pN(){if(Xb)return Zg;Xb=1;var r=uN(),e=Gm(),t=fN(),n=dN(),i=hN(),l=wh(),u=yS(),f="[object Map]",p="[object Object]",m="[object Promise]",T="[object Set]",k="[object WeakMap]",b="[object DataView]",x=u(r),_=u(e),I=u(t),w=u(n),C=u(i),D=l;return(r&&D(new r(new ArrayBuffer(1)))!=b||e&&D(new e)!=f||t&&D(t.resolve())!=m||n&&D(new n)!=T||i&&D(new i)!=k)&&(D=function(O){var F=l(O),j=F==p?O.constructor:void 0,$=j?u(j):"";if($)switch($){case x:return b;case _:return f;case I:return m;case w:return T;case C:return k}return F}),Zg=D,Zg}var Kg,Jb;function gN(){if(Jb)return Kg;Jb=1;var r=DP(),e=_S(),t=HP(),n=cN(),i=pN(),l=Zm(),u=xS(),f=CS(),p=1,m="[object Arguments]",T="[object Array]",k="[object Object]",b=Object.prototype,x=b.hasOwnProperty;function _(I,w,C,D,O,F){var j=l(I),$=l(w),Z=j?T:i(I),ie=$?T:i(w);Z=Z==m?k:Z,ie=ie==m?k:ie;var Y=Z==k,se=ie==k,q=Z==ie;if(q&&u(I)){if(!u(w))return!1;j=!0,Y=!1}if(q&&!Y)return F||(F=new r),j||f(I)?e(I,w,C,D,O,F):t(I,w,Z,C,D,O,F);if(!(C&p)){var J=Y&&x.call(I,"__wrapped__"),X=se&&x.call(w,"__wrapped__");if(J||X){var ne=J?I.value():I,ge=X?w.value():w;return F||(F=new r),O(ne,ge,C,D,F)}}return q?(F||(F=new r),n(I,w,C,D,O,F)):!1}return Kg=_,Kg}var Yg,Qb;function mN(){if(Qb)return Yg;Qb=1;var r=gN(),e=Eh();function t(n,i,l,u,f){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:r(n,i,l,u,t,f)}return Yg=t,Yg}var Xg,e_;function vN(){if(e_)return Xg;e_=1;var r=mN();function e(t,n){return r(t,n)}return Xg=e,Xg}var yN=vN();const jf=cl(yN);class kh extends S.Component{constructor(e){super(e),this.editingAreaRef=S.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,i,l,u)=>{var f,p;n==="text-change"?(f=this.onEditorChangeText)==null||f.call(this,this.editor.root.innerHTML,i,u,this.unprivilegedEditor):n==="selection-change"&&((p=this.onEditorChangeSelection)==null||p.call(this,i,u,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(S.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(S.Children.count(e.children)){const t=S.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,n)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!jf(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!jf(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(),i=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:n,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const l=this.editor;l.setContents(n),t_(()=>this.setEditorSelection(l,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){this.editor&&this.unhookEditor(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 Ye(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)?jf(e.ops,t.ops):jf(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),t_(()=>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,i={key:n,ref:this.editingAreaRef};return S.Children.count(e)?S.cloneElement(S.Children.only(e),i):t?S.createElement("pre",{...i}):S.createElement("div",{...i})}render(){return S.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,n,i){var u,f;if(!this.editor)return;const l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,(f=(u=this.props).onChange)==null||f.call(u,e,t,n,i))}onEditorChangeSelection(e,t,n){var f,p,m,T,k,b;if(!this.editor)return;const i=this.getEditorSelection(),l=!i&&e,u=i&&!e;jf(e,i)||(this.selection=e,(p=(f=this.props).onChangeSelection)==null||p.call(f,e,t,n),l?(T=(m=this.props).onFocus)==null||T.call(m,e,t,n):u&&((b=(k=this.props).onBlur)==null||b.call(k,i,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}kh.displayName="React Quill";kh.Quill=Ye;kh.defaultProps={theme:"snow",modules:{},readOnly:!1};function t_(r){Promise.resolve().then(r)}const bN="_AEditorWrapper_ehf9z_1",_N="_AEditorContainer_ehf9z_7",xN="_AEditor_ehf9z_1",SN="_Primary_ehf9z_466",CN="_ReadOnly_ehf9z_536",wN="_Raw_ehf9z_687",AN="_LimitContainer_ehf9z_701",TN="_Limit_ehf9z_701",EN="_Indicator_ehf9z_724",kN="_Resizer_ehf9z_733",qn={AEditorWrapper:bN,AEditorContainer:_N,AEditor:xN,Primary:SN,ReadOnly:CN,Error:"_Error_ehf9z_613",Raw:wN,LimitContainer:AN,Limit:TN,Indicator:EN,Resizer:kN,"ql-tablepicker-row":"_ql-tablepicker-row_ehf9z_767","ql-tablepicker-cell":"_ql-tablepicker-cell_ehf9z_770","ql-tablepicker-grid":"_ql-tablepicker-grid_ehf9z_778","ql-tablepicker-inner-cell":"_ql-tablepicker-inner-cell_ehf9z_782","ql-tablepicker-options":"_ql-tablepicker-options_ehf9z_791","ql-tablepicker-tooltip":"_ql-tablepicker-tooltip_ehf9z_802","ql-tableui-options":"_ql-tableui-options_ehf9z_821","ql-tableui-options__item":"_ql-tableui-options__item_ehf9z_833","ql-tableui-options__item-icon":"_ql-tableui-options__item-icon_ehf9z_852","ql-tableui-options__item-text":"_ql-tableui-options__item-text_ehf9z_857","ql-tableui-helper":"_ql-tableui-helper_ehf9z_861","ql-tableui-helper__icon":"_ql-tableui-helper__icon_ehf9z_873","ql-tableui-helper__text":"_ql-tableui-helper__text_ehf9z_883"};class RN{constructor(e){ct(this,"quill");ct(this,"picker",null);ct(this,"tooltip",null);ct(this,"toolbar",null);ct(this,"tableButton",null);ct(this,"CONSTANTS",{MAX_ROWS:10,MAX_COLS:10,CELL_SIZE:18,SPACING:5,PICKER_PADDING:20});ct(this,"CLASSNAMES",{tooltip:qn["ql-tablepicker-tooltip"],grid:qn["ql-tablepicker-grid"],row:qn["ql-tablepicker-row"],cell:qn["ql-tablepicker-cell"],innerCell:qn["ql-tablepicker-inner-cell"],options:qn["ql-tablepicker-options"]});ct(this,"COLORS",{highlight:"var(--AEditor_Addon_hover_color)",normal:"var(--AEditor_Addon_Primary_background-color)",border:"1px solid var(--AEditor_Addon_Primary_color)"});ct(this,"boundHandlers",{globalClick:this.handleGlobalClick.bind(this),tableButtonClick:this.handleTableButtonClick.bind(this),gridMouseOver:this.handleGridMouseOver.bind(this),gridMouseOut:this.handleGridMouseOut.bind(this),gridClick:this.handleGridClick.bind(this),highlightReset:()=>this.highlightCells(0,0)});this.quill=e,this.initializeTablePicker(),document.addEventListener("click",this.boundHandlers.globalClick)}destroy(){document.removeEventListener("click",this.boundHandlers.globalClick),this.tableButton&&this.tableButton.removeEventListener("click",this.boundHandlers.tableButtonClick),this.hidePicker()}handleGlobalClick(e){if(!this.picker)return;const t=e.target;this.isTableButtonOrPicker(t)||this.hidePicker()}isTableButtonOrPicker(e){return!!e.closest("button.ql-table")||!!e.closest(`.${this.CLASSNAMES.options}`)}initializeTablePicker(){if(this.toolbar=this.quill.getModule("toolbar"),this.tableButton=this.toolbar.container.querySelector("button.ql-table"),!this.tableButton){console.warn("Table button not found");return}this.toolbar.handlers.table=()=>{},this.tableButton.addEventListener("click",this.boundHandlers.tableButtonClick)}handleTableButtonClick(e){if(e.preventDefault(),e.stopPropagation(),this.picker&&document.body.contains(this.picker)){this.hidePicker();return}this.showTablePicker(e.target)}createElement(e,t){const n=document.createElement("div");return n.className=e,t&&(n.textContent=t),n}showTablePicker(e){this.hidePicker(),this.closeOtherOptions();const t=e.closest("button.ql-table");t&&t.classList.add("ql-expanded"),this.createPicker(e)}closeOtherOptions(){document.querySelectorAll(".ql-picker.ql-expanded").forEach(e=>{e.classList.remove("ql-expanded")})}createPicker(e){const t=document.createDocumentFragment();this.picker=this.createElement(this.CLASSNAMES.options);const n=this.createGrid();t.appendChild(n),this.picker.appendChild(t),this.positionPicker(e),document.body.appendChild(this.picker),this.picker.addEventListener("mouseover",this.boundHandlers.gridMouseOver),this.picker.addEventListener("mouseout",this.boundHandlers.gridMouseOut),this.picker.addEventListener("click",this.boundHandlers.gridClick),this.picker.addEventListener("mouseleave",this.boundHandlers.highlightReset)}handleGridMouseOver(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.highlightCells(n+1,i+1),this.showTooltip(t,n+1,i+1)}handleGridMouseOut(e){var t;(t=this.picker)!=null&&t.contains(e.relatedTarget)||this.removeTooltip()}handleGridClick(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.insertTable(n+1,i+1),this.removeTooltip(),this.hidePicker()}findTargetCell(e){return e.target.closest(`.${this.CLASSNAMES.cell}`)}getCellCoordinates(e){const t=parseInt(e.getAttribute("data-row")||"0",10),n=parseInt(e.getAttribute("data-col")||"0",10);return[t,n]}createGrid(){const e=this.createElement(this.CLASSNAMES.grid),t=document.createDocumentFragment(),{MAX_ROWS:n,MAX_COLS:i}=this.CONSTANTS;for(let l=0;l<n;l++){const u=this.createElement(this.CLASSNAMES.row);for(let f=0;f<i;f++){const p=this.createElement(this.CLASSNAMES.cell),m=this.createElement(this.CLASSNAMES.innerCell);p.setAttribute("data-row",l.toString()),p.setAttribute("data-col",f.toString()),p.appendChild(m),u.appendChild(p)}t.appendChild(u)}return e.appendChild(t),e}showTooltip(e,t,n){this.removeTooltip(),this.tooltip=this.createElement(this.CLASSNAMES.tooltip,`${t}×${n}`),document.body.appendChild(this.tooltip);const{top:i,left:l}=this.calculateTooltipPosition(e,this.tooltip);this.tooltip.style.top=`${i}px`,this.tooltip.style.left=`${l}px`}calculateTooltipPosition(e,t){const{SPACING:n}=this.CONSTANTS,i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),u=this.getViewportMetrics();let f=i.top-l.height-n,p=i.left;return f<0&&(f=i.bottom+n),p+l.width>u.width&&(p=u.width-l.width-n),{top:f,left:p}}getViewportMetrics(){return{width:window.innerWidth,height:window.innerHeight,scrollTop:window.scrollY||document.documentElement.scrollTop,scrollLeft:window.scrollX||document.documentElement.scrollLeft}}removeTooltip(){this.tooltip&&(this.tooltip.remove(),this.tooltip=null)}positionPicker(e){if(!this.picker)return;const{CELL_SIZE:t,MAX_ROWS:n,MAX_COLS:i,PICKER_PADDING:l}=this.CONSTANTS,u=e.getBoundingClientRect(),f=this.getViewportMetrics(),p=t*n+l,m=t*i+l,T=this.isElementInViewport(u),{top:k,left:b}=this.calculatePickerPosition(u,T,{pickerWidth:m,pickerHeight:p,viewport:f});this.picker.style.top=`${k}px`,this.picker.style.left=`${b}px`}isElementInViewport(e){const t=this.getViewportMetrics();return e.top>=0&&e.left>=0&&e.bottom<=t.height&&e.right<=t.width}calculatePickerPosition(e,t,n){const{pickerWidth:i,pickerHeight:l,viewport:u}=n,{width:f,height:p,scrollTop:m,scrollLeft:T}=u;let k,b;if(t)k=e.bottom+m,b=e.left+T;else{const x=this.quill.getSelection();if(x){const _=this.quill.getBounds(x.index),I=this.quill.container.getBoundingClientRect();k=I.top+_.bottom+m,b=I.left+_.left+T}else k=(p-l)/2+m,b=(f-i)/2+T}return k+l>p+m&&(k=Math.max(m,k-l-(t?e.height:0))),b+i>f+T&&(b=Math.max(T,f+T-i)),{top:k,left:b}}highlightCells(e,t){if(!this.picker)return;const n=this.picker.querySelectorAll(`.${this.CLASSNAMES.innerCell}`),{NORMAL:i,HIGHLIGHT:l}={NORMAL:this.COLORS.normal,HIGHLIGHT:this.COLORS.highlight};for(let u=0;u<n.length;u++){const f=n[u],p=f.parentElement;if(!p)continue;const[m,T]=this.getCellCoordinates(p);f.style.backgroundColor=m<e&&T<t?l:i}}insertTable(e,t){const n=this.quill.getSelection(!0);if(!n)return;const[i]=this.quill.getLeaf(n.index);if(!i)return;this.prepareInsertionPoint(i,n);const l=this.quill.getModule("table");this.quill.setSelection(n.index,0),l.insertTable(e,t);const u=this.quill.root.querySelector("table:last-of-type");if(u){const f=u.querySelectorAll("td, th");for(let m=0;m<f.length;m++)f[m].style.border=this.COLORS.border;const p=this.quill.getSelection();p&&this.quill.setSelection(p.index,0)}}prepareInsertionPoint(e,t){const n=this.findTableParent(e.parent);if(n){const i=this.quill.getIndex(n)+n.length();this.quill.insertText(i,`
347
+ `,T=function(){function _(I,w,C,D){this.resizer=null,this.startResizePosition=null,this.i18n=new u((D==null?void 0:D.locale)||f),this.options=D,this.resizeTarget=I,I.originSize||(I.originSize={width:I.clientWidth,height:I.clientHeight}),this.editor=C,this.container=w,this.initResizer(),this.positionResizerToTarget(I),this.resizing=this.resizing.bind(this),this.endResize=this.endResize.bind(this),this.startResize=this.startResize.bind(this),this.toolbarClick=this.toolbarClick.bind(this),this.toolbarInputChange=this.toolbarInputChange.bind(this),this.onScroll=this.onScroll.bind(this),this.bindEvents()}return _.prototype.initResizer=function(){var I=this.container.querySelector("#editor-resizer");I||(I=document.createElement("div"),I.setAttribute("id","editor-resizer"),I.innerHTML=p(m,this.i18n.findLabel("altTip"),this.i18n.findLabel("floatLeft"),this.i18n.findLabel("center"),this.i18n.findLabel("floatRight"),this.i18n.findLabel("restore"),this.i18n.findLabel("inputTip")),this.container.appendChild(I)),this.resizer=I},_.prototype.positionResizerToTarget=function(I){this.resizer!==null&&(this.resizer.style.setProperty("left",I.offsetLeft+"px"),this.resizer.style.setProperty("top",I.offsetTop-this.editor.scrollTop+"px"),this.resizer.style.setProperty("width",I.clientWidth+"px"),this.resizer.style.setProperty("height",I.clientHeight+"px"))},_.prototype.bindEvents=function(){this.resizer!==null&&(this.resizer.addEventListener("mousedown",this.startResize),this.resizer.addEventListener("click",this.toolbarClick),this.resizer.addEventListener("change",this.toolbarInputChange)),window.addEventListener("mouseup",this.endResize),window.addEventListener("mousemove",this.resizing),this.editor.addEventListener("scroll",this.onScroll)},_.prototype.onScroll=function(){this.positionResizerToTarget(this.resizeTarget)},_.prototype._setStylesForToolbar=function(I,w){var C,D="_styles_"+I,O=this.resizeTarget.style,N=this.resizeTarget[D];O.cssText=O.cssText.replaceAll(" ","").replace(N,"")+(";"+w),this.resizeTarget[D]=w,this.positionResizerToTarget(this.resizeTarget),(C=this.options)===null||C===void 0||C.onChange(this.resizeTarget)},_.prototype.toolbarInputChange=function(I){var w,C=I.target,D=(w=C==null?void 0:C.dataset)===null||w===void 0?void 0:w.type,O=C.value;D&&Number(O)&&this._setStylesForToolbar(D,"width: "+Number(O)+"%;")},_.prototype.toolbarClick=function(I){var w,C,D=I.target,O=(w=D==null?void 0:D.dataset)===null||w===void 0?void 0:w.type;O&&D.classList.contains("btn")&&this._setStylesForToolbar(O,(C=D==null?void 0:D.dataset)===null||C===void 0?void 0:C.styles)},_.prototype.startResize=function(I){var w=I.target;w.classList.contains("handler")&&I.which===1&&(this.startResizePosition={left:I.clientX,top:I.clientY,width:this.resizeTarget.clientWidth,height:this.resizeTarget.clientHeight})},_.prototype.endResize=function(){var I;this.startResizePosition=null,(I=this.options)===null||I===void 0||I.onChange(this.resizeTarget)},_.prototype.resizing=function(I){if(this.startResizePosition){var w=I.clientX-this.startResizePosition.left,C=I.clientY-this.startResizePosition.top,D=this.startResizePosition.width,O=this.startResizePosition.height;if(D+=w,O+=C,I.altKey){var N=this.resizeTarget.originSize,j=N.height/N.width;O=j*D}this.resizeTarget.style.setProperty("width",Math.max(D,30)+"px"),this.resizeTarget.style.setProperty("height",Math.max(O,30)+"px"),this.positionResizerToTarget(this.resizeTarget)}},_.prototype.destory=function(){this.container.removeChild(this.resizer),window.removeEventListener("mouseup",this.endResize),window.removeEventListener("mousemove",this.resizing),this.editor.removeEventListener("scroll",this.onScroll),this.resizer=null},_}(),k=function(){function _(I,w){this.element=I,this.cb=w,this.hasTracked=!1}return _}(),b=function(){function _(){}return _.track=function(I,w){this.iframes.push(new k(I,w)),this.interval||(this.interval=setInterval(function(){_.checkClick()},this.resolution))},_.checkClick=function(){if(document.activeElement){var I=document.activeElement;for(var w in this.iframes)I===this.iframes[w].element?this.iframes[w].hasTracked==!1&&(this.iframes[w].cb.apply(window,[]),this.iframes[w].hasTracked=!0):this.iframes[w].hasTracked=!1}},_.resolution=200,_.iframes=[],_.interval=null,_}();function x(_,I){var w=_.root,C,D;function O(){var N=_.getContents().constructor,j=new N().retain(1);_.updateContents(j)}w.addEventListener("click",function(N){var j=N.target;N.target&&["img","video"].includes(j.tagName.toLowerCase())&&(C=j,D=new T(j,w.parentElement,w,l(l({},I),{onChange:O})))}),_.on("text-change",function(N,j){w.querySelectorAll("iframe").forEach(function($){b.track($,function(){C=$,D=new T($,w.parentElement,w,l(l({},I),{onChange:O}))})})}),document.addEventListener("mousedown",function(N){var j,$,Z,ie=N.target;ie!==C&&!(!(($=(j=D==null?void 0:D.resizer)===null||j===void 0?void 0:j.contains)===null||$===void 0)&&$.call(j,ie))&&((Z=D==null?void 0:D.destory)===null||Z===void 0||Z.call(D),D=null,C=null)},{capture:!0})}return x})}(Jd)),Jd.exports}var rP=tP();const nP=cl(rP);var bp,_y;function iP(){if(_y)return bp;_y=1;function r(){this.__data__=[],this.size=0}return bp=r,bp}var _p,xy;function pS(){if(xy)return _p;xy=1;function r(e,t){return e===t||e!==e&&t!==t}return _p=r,_p}var xp,Sy;function Sh(){if(Sy)return xp;Sy=1;var r=pS();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return xp=e,xp}var Sp,Cy;function oP(){if(Cy)return Sp;Cy=1;var r=Sh(),e=Array.prototype,t=e.splice;function n(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():t.call(l,u,1),--this.size,!0}return Sp=n,Sp}var Cp,wy;function sP(){if(wy)return Cp;wy=1;var r=Sh();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return Cp=e,Cp}var wp,Ay;function aP(){if(Ay)return wp;Ay=1;var r=Sh();function e(t){return r(this.__data__,t)>-1}return wp=e,wp}var Ap,Ty;function lP(){if(Ty)return Ap;Ty=1;var r=Sh();function e(t,n){var i=this.__data__,l=r(i,t);return l<0?(++this.size,i.push([t,n])):i[l][1]=n,this}return Ap=e,Ap}var Tp,Ey;function Ch(){if(Ey)return Tp;Ey=1;var r=iP(),e=oP(),t=sP(),n=aP(),i=lP();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Tp=l,Tp}var Ep,ky;function cP(){if(ky)return Ep;ky=1;var r=Ch();function e(){this.__data__=new r,this.size=0}return Ep=e,Ep}var kp,Ry;function uP(){if(Ry)return kp;Ry=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return kp=r,kp}var Rp,Iy;function fP(){if(Iy)return Rp;Iy=1;function r(e){return this.__data__.get(e)}return Rp=r,Rp}var Ip,Ly;function dP(){if(Ly)return Ip;Ly=1;function r(e){return this.__data__.has(e)}return Ip=r,Ip}var Lp,Dy;function gS(){if(Dy)return Lp;Dy=1;var r=typeof xi=="object"&&xi&&xi.Object===Object&&xi;return Lp=r,Lp}var Dp,My;function dl(){if(My)return Dp;My=1;var r=gS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Dp=t,Dp}var Mp,Oy;function Vm(){if(Oy)return Mp;Oy=1;var r=dl(),e=r.Symbol;return Mp=e,Mp}var Op,Py;function hP(){if(Py)return Op;Py=1;var r=Vm(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,i=r?r.toStringTag:void 0;function l(u){var f=t.call(u,i),p=u[i];try{u[i]=void 0;var m=!0}catch{}var T=n.call(u);return m&&(f?u[i]=p:delete u[i]),T}return Op=l,Op}var Pp,Ny;function pP(){if(Ny)return Pp;Ny=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Pp=t,Pp}var Np,Fy;function wh(){if(Fy)return Np;Fy=1;var r=Vm(),e=hP(),t=pP(),n="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(f){return f==null?f===void 0?i:n:l&&l in Object(f)?e(f):t(f)}return Np=u,Np}var Fp,jy;function mS(){if(jy)return Fp;jy=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Fp=r,Fp}var jp,By;function vS(){if(By)return jp;By=1;var r=wh(),e=mS(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!e(f))return!1;var p=r(f);return p==n||p==i||p==t||p==l}return jp=u,jp}var Bp,qy;function gP(){if(qy)return Bp;qy=1;var r=dl(),e=r["__core-js_shared__"];return Bp=e,Bp}var qp,Hy;function mP(){if(Hy)return qp;Hy=1;var r=gP(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return qp=t,qp}var Hp,zy;function yS(){if(zy)return Hp;zy=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Hp=t,Hp}var zp,$y;function vP(){if($y)return zp;$y=1;var r=vS(),e=mP(),t=mS(),n=yS(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,p=u.toString,m=f.hasOwnProperty,T=RegExp("^"+p.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(b){if(!t(b)||e(b))return!1;var x=r(b)?T:l;return x.test(n(b))}return zp=k,zp}var $p,Uy;function yP(){if(Uy)return $p;Uy=1;function r(e,t){return e==null?void 0:e[t]}return $p=r,$p}var Up,Wy;function lf(){if(Wy)return Up;Wy=1;var r=vP(),e=yP();function t(n,i){var l=e(n,i);return r(l)?l:void 0}return Up=t,Up}var Wp,Vy;function Gm(){if(Vy)return Wp;Vy=1;var r=lf(),e=dl(),t=r(e,"Map");return Wp=t,Wp}var Vp,Gy;function Ah(){if(Gy)return Vp;Gy=1;var r=lf(),e=r(Object,"create");return Vp=e,Vp}var Gp,Zy;function bP(){if(Zy)return Gp;Zy=1;var r=Ah();function e(){this.__data__=r?r(null):{},this.size=0}return Gp=e,Gp}var Zp,Ky;function _P(){if(Ky)return Zp;Ky=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Zp=r,Zp}var Kp,Yy;function xP(){if(Yy)return Kp;Yy=1;var r=Ah(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(l){var u=this.__data__;if(r){var f=u[l];return f===e?void 0:f}return n.call(u,l)?u[l]:void 0}return Kp=i,Kp}var Yp,Xy;function SP(){if(Xy)return Yp;Xy=1;var r=Ah(),e=Object.prototype,t=e.hasOwnProperty;function n(i){var l=this.__data__;return r?l[i]!==void 0:t.call(l,i)}return Yp=n,Yp}var Xp,Jy;function CP(){if(Jy)return Xp;Jy=1;var r=Ah(),e="__lodash_hash_undefined__";function t(n,i){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=r&&i===void 0?e:i,this}return Xp=t,Xp}var Jp,Qy;function wP(){if(Qy)return Jp;Qy=1;var r=bP(),e=_P(),t=xP(),n=SP(),i=CP();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Jp=l,Jp}var Qp,eb;function AP(){if(eb)return Qp;eb=1;var r=wP(),e=Ch(),t=Gm();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Qp=n,Qp}var eg,tb;function TP(){if(tb)return eg;tb=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return eg=r,eg}var tg,rb;function Th(){if(rb)return tg;rb=1;var r=TP();function e(t,n){var i=t.__data__;return r(n)?i[typeof n=="string"?"string":"hash"]:i.map}return tg=e,tg}var rg,nb;function EP(){if(nb)return rg;nb=1;var r=Th();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return rg=e,rg}var ng,ib;function kP(){if(ib)return ng;ib=1;var r=Th();function e(t){return r(this,t).get(t)}return ng=e,ng}var ig,ob;function RP(){if(ob)return ig;ob=1;var r=Th();function e(t){return r(this,t).has(t)}return ig=e,ig}var og,sb;function IP(){if(sb)return og;sb=1;var r=Th();function e(t,n){var i=r(this,t),l=i.size;return i.set(t,n),this.size+=i.size==l?0:1,this}return og=e,og}var sg,ab;function bS(){if(ab)return sg;ab=1;var r=AP(),e=EP(),t=kP(),n=RP(),i=IP();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,sg=l,sg}var ag,lb;function LP(){if(lb)return ag;lb=1;var r=Ch(),e=Gm(),t=bS(),n=200;function i(l,u){var f=this.__data__;if(f instanceof r){var p=f.__data__;if(!e||p.length<n-1)return p.push([l,u]),this.size=++f.size,this;f=this.__data__=new t(p)}return f.set(l,u),this.size=f.size,this}return ag=i,ag}var lg,cb;function DP(){if(cb)return lg;cb=1;var r=Ch(),e=cP(),t=uP(),n=fP(),i=dP(),l=LP();function u(f){var p=this.__data__=new r(f);this.size=p.size}return u.prototype.clear=e,u.prototype.delete=t,u.prototype.get=n,u.prototype.has=i,u.prototype.set=l,lg=u,lg}var cg,ub;function MP(){if(ub)return cg;ub=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return cg=e,cg}var ug,fb;function OP(){if(fb)return ug;fb=1;function r(e){return this.__data__.has(e)}return ug=r,ug}var fg,db;function PP(){if(db)return fg;db=1;var r=bS(),e=MP(),t=OP();function n(i){var l=-1,u=i==null?0:i.length;for(this.__data__=new r;++l<u;)this.add(i[l])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,fg=n,fg}var dg,hb;function NP(){if(hb)return dg;hb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}return dg=r,dg}var hg,pb;function FP(){if(pb)return hg;pb=1;function r(e,t){return e.has(t)}return hg=r,hg}var pg,gb;function _S(){if(gb)return pg;gb=1;var r=PP(),e=NP(),t=FP(),n=1,i=2;function l(u,f,p,m,T,k){var b=p&n,x=u.length,_=f.length;if(x!=_&&!(b&&_>x))return!1;var I=k.get(u),w=k.get(f);if(I&&w)return I==f&&w==u;var C=-1,D=!0,O=p&i?new r:void 0;for(k.set(u,f),k.set(f,u);++C<x;){var N=u[C],j=f[C];if(m)var $=b?m(j,N,C,f,u,k):m(N,j,C,u,f,k);if($!==void 0){if($)continue;D=!1;break}if(O){if(!e(f,function(Z,ie){if(!t(O,ie)&&(N===Z||T(N,Z,p,m,k)))return O.push(ie)})){D=!1;break}}else if(!(N===j||T(N,j,p,m,k))){D=!1;break}}return k.delete(u),k.delete(f),D}return pg=l,pg}var gg,mb;function jP(){if(mb)return gg;mb=1;var r=dl(),e=r.Uint8Array;return gg=e,gg}var mg,vb;function BP(){if(vb)return mg;vb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i,l){n[++t]=[l,i]}),n}return mg=r,mg}var vg,yb;function qP(){if(yb)return vg;yb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}return vg=r,vg}var yg,bb;function HP(){if(bb)return yg;bb=1;var r=Vm(),e=jP(),t=pS(),n=_S(),i=BP(),l=qP(),u=1,f=2,p="[object Boolean]",m="[object Date]",T="[object Error]",k="[object Map]",b="[object Number]",x="[object RegExp]",_="[object Set]",I="[object String]",w="[object Symbol]",C="[object ArrayBuffer]",D="[object DataView]",O=r?r.prototype:void 0,N=O?O.valueOf:void 0;function j($,Z,ie,Y,se,q,J){switch(ie){case D:if($.byteLength!=Z.byteLength||$.byteOffset!=Z.byteOffset)return!1;$=$.buffer,Z=Z.buffer;case C:return!($.byteLength!=Z.byteLength||!q(new e($),new e(Z)));case p:case m:case b:return t(+$,+Z);case T:return $.name==Z.name&&$.message==Z.message;case x:case I:return $==Z+"";case k:var X=i;case _:var ne=Y&u;if(X||(X=l),$.size!=Z.size&&!ne)return!1;var ge=J.get($);if(ge)return ge==Z;Y|=f,J.set($,Z);var me=n(X($),X(Z),Y,se,q,J);return J.delete($),me;case w:if(N)return N.call($)==N.call(Z)}return!1}return yg=j,yg}var bg,_b;function zP(){if(_b)return bg;_b=1;function r(e,t){for(var n=-1,i=t.length,l=e.length;++n<i;)e[l+n]=t[n];return e}return bg=r,bg}var _g,xb;function Zm(){if(xb)return _g;xb=1;var r=Array.isArray;return _g=r,_g}var xg,Sb;function $P(){if(Sb)return xg;Sb=1;var r=zP(),e=Zm();function t(n,i,l){var u=i(n);return e(n)?u:r(u,l(n))}return xg=t,xg}var Sg,Cb;function UP(){if(Cb)return Sg;Cb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length,l=0,u=[];++n<i;){var f=e[n];t(f,n,e)&&(u[l++]=f)}return u}return Sg=r,Sg}var Cg,wb;function WP(){if(wb)return Cg;wb=1;function r(){return[]}return Cg=r,Cg}var wg,Ab;function VP(){if(Ab)return wg;Ab=1;var r=UP(),e=WP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(f){return n.call(u,f)}))}:e;return wg=l,wg}var Ag,Tb;function GP(){if(Tb)return Ag;Tb=1;function r(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}return Ag=r,Ag}var Tg,Eb;function Eh(){if(Eb)return Tg;Eb=1;function r(e){return e!=null&&typeof e=="object"}return Tg=r,Tg}var Eg,kb;function ZP(){if(kb)return Eg;kb=1;var r=wh(),e=Eh(),t="[object Arguments]";function n(i){return e(i)&&r(i)==t}return Eg=n,Eg}var kg,Rb;function KP(){if(Rb)return kg;Rb=1;var r=ZP(),e=Eh(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(u){return e(u)&&n.call(u,"callee")&&!i.call(u,"callee")};return kg=l,kg}var Wf={exports:{}},Rg,Ib;function YP(){if(Ib)return Rg;Ib=1;function r(){return!1}return Rg=r,Rg}Wf.exports;var Lb;function xS(){return Lb||(Lb=1,function(r,e){var t=dl(),n=YP(),i=e&&!e.nodeType&&e,l=i&&!0&&r&&!r.nodeType&&r,u=l&&l.exports===i,f=u?t.Buffer:void 0,p=f?f.isBuffer:void 0,m=p||n;r.exports=m}(Wf,Wf.exports)),Wf.exports}var Ig,Db;function XP(){if(Db)return Ig;Db=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,i){var l=typeof n;return i=i??r,!!i&&(l=="number"||l!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Ig=t,Ig}var Lg,Mb;function SS(){if(Mb)return Lg;Mb=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Lg=e,Lg}var Dg,Ob;function JP(){if(Ob)return Dg;Ob=1;var r=wh(),e=SS(),t=Eh(),n="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",p="[object Function]",m="[object Map]",T="[object Number]",k="[object Object]",b="[object RegExp]",x="[object Set]",_="[object String]",I="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",D="[object Float32Array]",O="[object Float64Array]",N="[object Int8Array]",j="[object Int16Array]",$="[object Int32Array]",Z="[object Uint8Array]",ie="[object Uint8ClampedArray]",Y="[object Uint16Array]",se="[object Uint32Array]",q={};q[D]=q[O]=q[N]=q[j]=q[$]=q[Z]=q[ie]=q[Y]=q[se]=!0,q[n]=q[i]=q[w]=q[l]=q[C]=q[u]=q[f]=q[p]=q[m]=q[T]=q[k]=q[b]=q[x]=q[_]=q[I]=!1;function J(X){return t(X)&&e(X.length)&&!!q[r(X)]}return Dg=J,Dg}var Mg,Pb;function QP(){if(Pb)return Mg;Pb=1;function r(e){return function(t){return e(t)}}return Mg=r,Mg}var Vf={exports:{}};Vf.exports;var Nb;function eN(){return Nb||(Nb=1,function(r,e){var t=gS(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,l=i&&i.exports===n,u=l&&t.process,f=function(){try{var p=i&&i.require&&i.require("util").types;return p||u&&u.binding&&u.binding("util")}catch{}}();r.exports=f}(Vf,Vf.exports)),Vf.exports}var Og,Fb;function CS(){if(Fb)return Og;Fb=1;var r=JP(),e=QP(),t=eN(),n=t&&t.isTypedArray,i=n?e(n):r;return Og=i,Og}var Pg,jb;function tN(){if(jb)return Pg;jb=1;var r=GP(),e=KP(),t=Zm(),n=xS(),i=XP(),l=CS(),u=Object.prototype,f=u.hasOwnProperty;function p(m,T){var k=t(m),b=!k&&e(m),x=!k&&!b&&n(m),_=!k&&!b&&!x&&l(m),I=k||b||x||_,w=I?r(m.length,String):[],C=w.length;for(var D in m)(T||f.call(m,D))&&!(I&&(D=="length"||x&&(D=="offset"||D=="parent")||_&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||i(D,C)))&&w.push(D);return w}return Pg=p,Pg}var Ng,Bb;function rN(){if(Bb)return Ng;Bb=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return Ng=e,Ng}var Fg,qb;function nN(){if(qb)return Fg;qb=1;function r(e,t){return function(n){return e(t(n))}}return Fg=r,Fg}var jg,Hb;function iN(){if(Hb)return jg;Hb=1;var r=nN(),e=r(Object.keys,Object);return jg=e,jg}var Bg,zb;function oN(){if(zb)return Bg;zb=1;var r=rN(),e=iN(),t=Object.prototype,n=t.hasOwnProperty;function i(l){if(!r(l))return e(l);var u=[];for(var f in Object(l))n.call(l,f)&&f!="constructor"&&u.push(f);return u}return Bg=i,Bg}var qg,$b;function sN(){if($b)return qg;$b=1;var r=vS(),e=SS();function t(n){return n!=null&&e(n.length)&&!r(n)}return qg=t,qg}var Hg,Ub;function aN(){if(Ub)return Hg;Ub=1;var r=tN(),e=oN(),t=sN();function n(i){return t(i)?r(i):e(i)}return Hg=n,Hg}var zg,Wb;function lN(){if(Wb)return zg;Wb=1;var r=$P(),e=VP(),t=aN();function n(i){return r(i,t,e)}return zg=n,zg}var $g,Vb;function cN(){if(Vb)return $g;Vb=1;var r=lN(),e=1,t=Object.prototype,n=t.hasOwnProperty;function i(l,u,f,p,m,T){var k=f&e,b=r(l),x=b.length,_=r(u),I=_.length;if(x!=I&&!k)return!1;for(var w=x;w--;){var C=b[w];if(!(k?C in u:n.call(u,C)))return!1}var D=T.get(l),O=T.get(u);if(D&&O)return D==u&&O==l;var N=!0;T.set(l,u),T.set(u,l);for(var j=k;++w<x;){C=b[w];var $=l[C],Z=u[C];if(p)var ie=k?p(Z,$,C,u,l,T):p($,Z,C,l,u,T);if(!(ie===void 0?$===Z||m($,Z,f,p,T):ie)){N=!1;break}j||(j=C=="constructor")}if(N&&!j){var Y=l.constructor,se=u.constructor;Y!=se&&"constructor"in l&&"constructor"in u&&!(typeof Y=="function"&&Y instanceof Y&&typeof se=="function"&&se instanceof se)&&(N=!1)}return T.delete(l),T.delete(u),N}return $g=i,$g}var Ug,Gb;function uN(){if(Gb)return Ug;Gb=1;var r=lf(),e=dl(),t=r(e,"DataView");return Ug=t,Ug}var Wg,Zb;function fN(){if(Zb)return Wg;Zb=1;var r=lf(),e=dl(),t=r(e,"Promise");return Wg=t,Wg}var Vg,Kb;function dN(){if(Kb)return Vg;Kb=1;var r=lf(),e=dl(),t=r(e,"Set");return Vg=t,Vg}var Gg,Yb;function hN(){if(Yb)return Gg;Yb=1;var r=lf(),e=dl(),t=r(e,"WeakMap");return Gg=t,Gg}var Zg,Xb;function pN(){if(Xb)return Zg;Xb=1;var r=uN(),e=Gm(),t=fN(),n=dN(),i=hN(),l=wh(),u=yS(),f="[object Map]",p="[object Object]",m="[object Promise]",T="[object Set]",k="[object WeakMap]",b="[object DataView]",x=u(r),_=u(e),I=u(t),w=u(n),C=u(i),D=l;return(r&&D(new r(new ArrayBuffer(1)))!=b||e&&D(new e)!=f||t&&D(t.resolve())!=m||n&&D(new n)!=T||i&&D(new i)!=k)&&(D=function(O){var N=l(O),j=N==p?O.constructor:void 0,$=j?u(j):"";if($)switch($){case x:return b;case _:return f;case I:return m;case w:return T;case C:return k}return N}),Zg=D,Zg}var Kg,Jb;function gN(){if(Jb)return Kg;Jb=1;var r=DP(),e=_S(),t=HP(),n=cN(),i=pN(),l=Zm(),u=xS(),f=CS(),p=1,m="[object Arguments]",T="[object Array]",k="[object Object]",b=Object.prototype,x=b.hasOwnProperty;function _(I,w,C,D,O,N){var j=l(I),$=l(w),Z=j?T:i(I),ie=$?T:i(w);Z=Z==m?k:Z,ie=ie==m?k:ie;var Y=Z==k,se=ie==k,q=Z==ie;if(q&&u(I)){if(!u(w))return!1;j=!0,Y=!1}if(q&&!Y)return N||(N=new r),j||f(I)?e(I,w,C,D,O,N):t(I,w,Z,C,D,O,N);if(!(C&p)){var J=Y&&x.call(I,"__wrapped__"),X=se&&x.call(w,"__wrapped__");if(J||X){var ne=J?I.value():I,ge=X?w.value():w;return N||(N=new r),O(ne,ge,C,D,N)}}return q?(N||(N=new r),n(I,w,C,D,O,N)):!1}return Kg=_,Kg}var Yg,Qb;function mN(){if(Qb)return Yg;Qb=1;var r=gN(),e=Eh();function t(n,i,l,u,f){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:r(n,i,l,u,t,f)}return Yg=t,Yg}var Xg,e_;function vN(){if(e_)return Xg;e_=1;var r=mN();function e(t,n){return r(t,n)}return Xg=e,Xg}var yN=vN();const jf=cl(yN);class kh extends S.Component{constructor(e){super(e),this.editingAreaRef=S.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,i,l,u)=>{var f,p;n==="text-change"?(f=this.onEditorChangeText)==null||f.call(this,this.editor.root.innerHTML,i,u,this.unprivilegedEditor):n==="selection-change"&&((p=this.onEditorChangeSelection)==null||p.call(this,i,u,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(S.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(S.Children.count(e.children)){const t=S.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,n)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!jf(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!jf(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(),i=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:n,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const l=this.editor;l.setContents(n),t_(()=>this.setEditorSelection(l,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){this.editor&&this.unhookEditor(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 Ye(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)?jf(e.ops,t.ops):jf(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),t_(()=>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,i={key:n,ref:this.editingAreaRef};return S.Children.count(e)?S.cloneElement(S.Children.only(e),i):t?S.createElement("pre",{...i}):S.createElement("div",{...i})}render(){return S.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,n,i){var u,f;if(!this.editor)return;const l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,(f=(u=this.props).onChange)==null||f.call(u,e,t,n,i))}onEditorChangeSelection(e,t,n){var f,p,m,T,k,b;if(!this.editor)return;const i=this.getEditorSelection(),l=!i&&e,u=i&&!e;jf(e,i)||(this.selection=e,(p=(f=this.props).onChangeSelection)==null||p.call(f,e,t,n),l?(T=(m=this.props).onFocus)==null||T.call(m,e,t,n):u&&((b=(k=this.props).onBlur)==null||b.call(k,i,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}kh.displayName="React Quill";kh.Quill=Ye;kh.defaultProps={theme:"snow",modules:{},readOnly:!1};function t_(r){Promise.resolve().then(r)}const bN="_AEditorWrapper_ehf9z_1",_N="_AEditorContainer_ehf9z_7",xN="_AEditor_ehf9z_1",SN="_Primary_ehf9z_466",CN="_ReadOnly_ehf9z_536",wN="_Raw_ehf9z_687",AN="_LimitContainer_ehf9z_701",TN="_Limit_ehf9z_701",EN="_Indicator_ehf9z_724",kN="_Resizer_ehf9z_733",qn={AEditorWrapper:bN,AEditorContainer:_N,AEditor:xN,Primary:SN,ReadOnly:CN,Error:"_Error_ehf9z_613",Raw:wN,LimitContainer:AN,Limit:TN,Indicator:EN,Resizer:kN,"ql-tablepicker-row":"_ql-tablepicker-row_ehf9z_767","ql-tablepicker-cell":"_ql-tablepicker-cell_ehf9z_770","ql-tablepicker-grid":"_ql-tablepicker-grid_ehf9z_778","ql-tablepicker-inner-cell":"_ql-tablepicker-inner-cell_ehf9z_782","ql-tablepicker-options":"_ql-tablepicker-options_ehf9z_791","ql-tablepicker-tooltip":"_ql-tablepicker-tooltip_ehf9z_802","ql-tableui-options":"_ql-tableui-options_ehf9z_821","ql-tableui-options__item":"_ql-tableui-options__item_ehf9z_833","ql-tableui-options__item-icon":"_ql-tableui-options__item-icon_ehf9z_852","ql-tableui-options__item-text":"_ql-tableui-options__item-text_ehf9z_857","ql-tableui-helper":"_ql-tableui-helper_ehf9z_861","ql-tableui-helper__icon":"_ql-tableui-helper__icon_ehf9z_873","ql-tableui-helper__text":"_ql-tableui-helper__text_ehf9z_883"};class RN{constructor(e){ct(this,"quill");ct(this,"picker",null);ct(this,"tooltip",null);ct(this,"toolbar",null);ct(this,"tableButton",null);ct(this,"CONSTANTS",{MAX_ROWS:10,MAX_COLS:10,CELL_SIZE:18,SPACING:5,PICKER_PADDING:20});ct(this,"CLASSNAMES",{tooltip:qn["ql-tablepicker-tooltip"],grid:qn["ql-tablepicker-grid"],row:qn["ql-tablepicker-row"],cell:qn["ql-tablepicker-cell"],innerCell:qn["ql-tablepicker-inner-cell"],options:qn["ql-tablepicker-options"]});ct(this,"COLORS",{highlight:"var(--AEditor_Addon_hover_color)",normal:"var(--AEditor_Addon_Primary_background-color)",border:"1px solid var(--AEditor_Addon_Primary_color)"});ct(this,"boundHandlers",{globalClick:this.handleGlobalClick.bind(this),tableButtonClick:this.handleTableButtonClick.bind(this),gridMouseOver:this.handleGridMouseOver.bind(this),gridMouseOut:this.handleGridMouseOut.bind(this),gridClick:this.handleGridClick.bind(this),highlightReset:()=>this.highlightCells(0,0)});this.quill=e,this.initializeTablePicker(),document.addEventListener("click",this.boundHandlers.globalClick)}destroy(){document.removeEventListener("click",this.boundHandlers.globalClick),this.tableButton&&this.tableButton.removeEventListener("click",this.boundHandlers.tableButtonClick),this.hidePicker()}handleGlobalClick(e){if(!this.picker)return;const t=e.target;this.isTableButtonOrPicker(t)||this.hidePicker()}isTableButtonOrPicker(e){return!!e.closest("button.ql-table")||!!e.closest(`.${this.CLASSNAMES.options}`)}initializeTablePicker(){if(this.toolbar=this.quill.getModule("toolbar"),this.tableButton=this.toolbar.container.querySelector("button.ql-table"),!this.tableButton){console.warn("Table button not found");return}this.toolbar.handlers.table=()=>{},this.tableButton.addEventListener("click",this.boundHandlers.tableButtonClick)}handleTableButtonClick(e){if(e.preventDefault(),e.stopPropagation(),this.picker&&document.body.contains(this.picker)){this.hidePicker();return}this.showTablePicker(e.target)}createElement(e,t){const n=document.createElement("div");return n.className=e,t&&(n.textContent=t),n}showTablePicker(e){this.hidePicker(),this.closeOtherOptions();const t=e.closest("button.ql-table");t&&t.classList.add("ql-expanded"),this.createPicker(e)}closeOtherOptions(){document.querySelectorAll(".ql-picker.ql-expanded").forEach(e=>{e.classList.remove("ql-expanded")})}createPicker(e){const t=document.createDocumentFragment();this.picker=this.createElement(this.CLASSNAMES.options);const n=this.createGrid();t.appendChild(n),this.picker.appendChild(t),this.positionPicker(e),document.body.appendChild(this.picker),this.picker.addEventListener("mouseover",this.boundHandlers.gridMouseOver),this.picker.addEventListener("mouseout",this.boundHandlers.gridMouseOut),this.picker.addEventListener("click",this.boundHandlers.gridClick),this.picker.addEventListener("mouseleave",this.boundHandlers.highlightReset)}handleGridMouseOver(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.highlightCells(n+1,i+1),this.showTooltip(t,n+1,i+1)}handleGridMouseOut(e){var t;(t=this.picker)!=null&&t.contains(e.relatedTarget)||this.removeTooltip()}handleGridClick(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.insertTable(n+1,i+1),this.removeTooltip(),this.hidePicker()}findTargetCell(e){return e.target.closest(`.${this.CLASSNAMES.cell}`)}getCellCoordinates(e){const t=parseInt(e.getAttribute("data-row")||"0",10),n=parseInt(e.getAttribute("data-col")||"0",10);return[t,n]}createGrid(){const e=this.createElement(this.CLASSNAMES.grid),t=document.createDocumentFragment(),{MAX_ROWS:n,MAX_COLS:i}=this.CONSTANTS;for(let l=0;l<n;l++){const u=this.createElement(this.CLASSNAMES.row);for(let f=0;f<i;f++){const p=this.createElement(this.CLASSNAMES.cell),m=this.createElement(this.CLASSNAMES.innerCell);p.setAttribute("data-row",l.toString()),p.setAttribute("data-col",f.toString()),p.appendChild(m),u.appendChild(p)}t.appendChild(u)}return e.appendChild(t),e}showTooltip(e,t,n){this.removeTooltip(),this.tooltip=this.createElement(this.CLASSNAMES.tooltip,`${t}×${n}`),document.body.appendChild(this.tooltip);const{top:i,left:l}=this.calculateTooltipPosition(e,this.tooltip);this.tooltip.style.top=`${i}px`,this.tooltip.style.left=`${l}px`}calculateTooltipPosition(e,t){const{SPACING:n}=this.CONSTANTS,i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),u=this.getViewportMetrics();let f=i.top-l.height-n,p=i.left;return f<0&&(f=i.bottom+n),p+l.width>u.width&&(p=u.width-l.width-n),{top:f,left:p}}getViewportMetrics(){return{width:window.innerWidth,height:window.innerHeight,scrollTop:window.scrollY||document.documentElement.scrollTop,scrollLeft:window.scrollX||document.documentElement.scrollLeft}}removeTooltip(){this.tooltip&&(this.tooltip.remove(),this.tooltip=null)}positionPicker(e){if(!this.picker)return;const{CELL_SIZE:t,MAX_ROWS:n,MAX_COLS:i,PICKER_PADDING:l}=this.CONSTANTS,u=e.getBoundingClientRect(),f=this.getViewportMetrics(),p=t*n+l,m=t*i+l,T=this.isElementInViewport(u),{top:k,left:b}=this.calculatePickerPosition(u,T,{pickerWidth:m,pickerHeight:p,viewport:f});this.picker.style.top=`${k}px`,this.picker.style.left=`${b}px`}isElementInViewport(e){const t=this.getViewportMetrics();return e.top>=0&&e.left>=0&&e.bottom<=t.height&&e.right<=t.width}calculatePickerPosition(e,t,n){const{pickerWidth:i,pickerHeight:l,viewport:u}=n,{width:f,height:p,scrollTop:m,scrollLeft:T}=u;let k,b;if(t)k=e.bottom+m,b=e.left+T;else{const x=this.quill.getSelection();if(x){const _=this.quill.getBounds(x.index),I=this.quill.container.getBoundingClientRect();k=I.top+_.bottom+m,b=I.left+_.left+T}else k=(p-l)/2+m,b=(f-i)/2+T}return k+l>p+m&&(k=Math.max(m,k-l-(t?e.height:0))),b+i>f+T&&(b=Math.max(T,f+T-i)),{top:k,left:b}}highlightCells(e,t){if(!this.picker)return;const n=this.picker.querySelectorAll(`.${this.CLASSNAMES.innerCell}`),{NORMAL:i,HIGHLIGHT:l}={NORMAL:this.COLORS.normal,HIGHLIGHT:this.COLORS.highlight};for(let u=0;u<n.length;u++){const f=n[u],p=f.parentElement;if(!p)continue;const[m,T]=this.getCellCoordinates(p);f.style.backgroundColor=m<e&&T<t?l:i}}insertTable(e,t){const n=this.quill.getSelection(!0);if(!n)return;const[i]=this.quill.getLeaf(n.index);if(!i)return;this.prepareInsertionPoint(i,n);const l=this.quill.getModule("table");this.quill.setSelection(n.index,0),l.insertTable(e,t);const u=this.quill.root.querySelector("table:last-of-type");if(u){const f=u.querySelectorAll("td, th");for(let m=0;m<f.length;m++)f[m].style.border=this.COLORS.border;const p=this.quill.getSelection();p&&this.quill.setSelection(p.index,0)}}prepareInsertionPoint(e,t){const n=this.findTableParent(e.parent);if(n){const i=this.quill.getIndex(n)+n.length();this.quill.insertText(i,`
348
348
  `,"user"),this.quill.setSelection(i+1,0),t.index=i+1}else{const l=this.quill.getLine(t.index)[0];l&&l.length()>1?(this.quill.insertText(t.index,`
349
349
 
350
350
  `,"user"),t.index+=2):(this.quill.insertText(t.index,`
351
- `,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Bu={},r_;function IN(){if(r_)return Bu;r_=1;var r=zs;if(process.env.NODE_ENV==="production")Bu.createRoot=r.createRoot,Bu.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Bu.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Bu.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Bu}var LN=IN();const n_=cl(LN);class DN{constructor(e,t){ct(this,"DEFAULTS",{maxRowCount:-1});ct(this,"quill");ct(this,"options");ct(this,"position",null);ct(this,"table");ct(this,"selectedCell",null);ct(this,"menuRoot",null);ct(this,"helperTextElement",null);ct(this,"scrollTimeout",null);ct(this,"SCROLL_DEBOUNCE_TIME",80);ct(this,"lastSelectedCellRef",null);ct(this,"boundDocClickHandler",this.hideMenu.bind(this));ct(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));ct(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));ct(this,"boundCopyHandler",this.copyHandler.bind(this));ct(this,"boundScrollHandler",this.handleScroll.bind(this));ct(this,"boundPasteHandler",this.pasteHandler.bind(this));ct(this,"menuItems",[]);ct(this,"positionCache",new Map);ct(this,"POSITION_CACHE_LIFETIME",1e3);ct(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:js.renderToString(v.jsx(Br,{icon:"AddColRight"})),title:sn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:js.renderToString(v.jsx(Br,{icon:"AddColLeft"})),title:sn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:js.renderToString(v.jsx(Br,{icon:"AddRowAbove"})),title:sn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:js.renderToString(v.jsx(Br,{icon:"AddRowBelow"})),title:sn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:js.renderToString(v.jsx(Br,{icon:"RemoveCol"})),title:sn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:js.renderToString(v.jsx(Br,{icon:"RemoveRow"})),title:sn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:js.renderToString(v.jsx(Br,{icon:"Trash"})),title:sn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=qn["ql-tableui-helper"];const e=document.createElement("span");e.className=Ne.clsx("Caption1",qn["ql-tableui-helper__text"],"NoSelect"),e.textContent=sn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=qn["ql-tableui-helper__icon"],t.innerHTML=js.renderToString(v.jsx(Br,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=S.memo(({item:u,index:f})=>v.jsxs("div",{className:qn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:qn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:qn["ql-tableui-options__item-text"],children:u.title})]},f)),l=()=>v.jsx("div",{className:qn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,f)=>v.jsx(i,{item:u,index:f},f))});try{n_.createRoot?(this.reactRoot=n_.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):zs.render(v.jsx(l,{}),this.menuRoot)}catch{zs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const f=u.getBoundingClientRect();let p=e.bottom+window.scrollY,m=e.left+window.scrollX;m+f.width>t&&(m=e.right-f.width+window.scrollX),p+f.height>n+window.scrollY&&(p=e.top-f.height+window.scrollY),u.style.top=`${p}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):zs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const f=this.quill.container.getBoundingClientRect(),p=i.getBoundingClientRect(),m={bottom:p.bottom-f.top,height:p.height,left:p.left-f.left,right:p.right-f.left,top:p.top-f.top,width:p.width,x:p.x,y:p.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let f=i.top-l.top-20;i.top<l.top&&(f=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${f}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const MN=()=>{const r=[1,2,3,!1,4],e=Ye.import("ui/icons");e.table=js.renderToString(v.jsx(Br,{icon:"Table",strokeWidth:2.5})),e.divider=js.renderToString(v.jsx(Br,{icon:"Minus",strokeWidth:2.5}));const t=Ye.import("blots/block/embed");class n extends t{static create(l){const u=super.create(l);return u.style.border="var(--AEditor_Addon_Primary_border)",u.style.borderBottom="none",u.style.transition="border var(--Transition)",u}}return ct(n,"blotName","divider"),ct(n,"tagName","hr"),Ye.register({"modules/imageCompress":QO,"modules/resize":nP,"modules/tablePicker":RN,"modules/tableUI":DN,"formats/header":NN(r),"formats/divider":n},!0),{header:r,FORMAT_DEFAULT:["bold","italic","underline","strike","blockquote","table","size","header","color","background","indent","list","align","image","link","video","divider"],FORMAT_TITLE:["bold","italic","underline","strike","color","background"],TOOLBAR_DEFAULT:[[{header:r}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],TOOLBAR_TITLE:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}};let Jg=null;const ON=()=>(Jg||(Jg=MN()),Jg),Kf={LINE_BREAK:/[\r\n\u2028\u2029]/,LINE_BREAKS:/[\r\n\u2028\u2029]+/g,WHITESPACES:/\s+/g},zi={getCharLength:r=>Array.from(r).length,calculateTextSize:r=>r.ops?r.ops.reduce((e,t)=>typeof t.insert=="string"?e+t.insert.replace(/\n/g,"").split("").reduce((n,i)=>n+(i.charCodeAt(0)<=127?1:3),0):typeof t.insert=="object"&&t.insert.image?e+t.insert.image.length:e,0):0,cleanTextContent:r=>r.replace(Kf.LINE_BREAKS," ").replace(Kf.WHITESPACES," ")};function PN(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function NN(r){const e=Ye.import("formats/header");return e.whitelist=r,e}const FN=S.memo(r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:f,tabIndex:p,autoFocus:m,editorProps:T,wrapProps:k,helperText:b,label:x,labelProps:_,wrapType:I,style:w,minHeight:C,maxHeight:D,contentHeight:O,contentMaxHeight:F=1e3,toolbarSize:j="Med",toolbarType:$="Default",readOnly:Z,limitPosition:ie="Bottom",maxLength:Y,editorClassName:se,editorStyle:q,...J}=r,X=S.useMemo(()=>ON(),[]),ne=S.useMemo(()=>n==="ReadOnly"||Z,[n,Z]),ge=S.useMemo(()=>O?20:0,[O]),[me,ve]=S.useState(j==="Med"?40:50),de=S.useMemo(()=>ne?0:me,[ne,me]),[De,ue]=S.useMemo(()=>Y||!u||ne||ie==="Top"?[0,0]:[20,6],[Y,u,ne,ie]),le=S.useMemo(()=>De+ue,[De,ue]),[fe,Me]=S.useState(O),[Ve,pe]=S.useState(!1),[ke,ze]=S.useState(!1),Ze=S.useRef(null),et=S.useRef(0),xe=S.useRef(0),Se=S.useMemo(()=>x?24:0,[x]),be=S.useMemo(()=>$==="Title"?!0:void 0,[$]),Le=S.useMemo(()=>O||C||be,[O,C,be]),$e=S.useMemo(()=>Le?"fit-content":D?D+Se:`calc(100% - ${Se}px)`,[Le,D,Se]),bt=S.useMemo(()=>{if(O){if(fe)switch(n){case"ReadOnly":return fe;case"Raw":return fe+le;default:return fe+de+le}}else return},[O,fe,n,de,le]),Ge=S.useMemo(()=>{if(!(!D||D<=de+le))switch(n){case"ReadOnly":return D;case"Raw":return D-le;default:return D-de-le}},[n,de,le,D]),ht=S.useMemo(()=>{if(C&&O){const Xe=Math.min(C-de-le,O);return ne?Xe:Xe+de+le}else return C||(O?void 0:`calc(100% - ${Se}px)`)},[C,O,Se,de,le,ne]),mt=S.useMemo(()=>PN(t)?"Error":n,[t,n]),[Oe,He]=dn(l,""),[wt,_t]=dn(u,!1),[vt,Tt]=S.useState(()=>{if(!Oe)return new Gt;const Xe=document.createElement("div");return Xe.innerHTML=Oe,new Ye(Xe,{readOnly:!0}).getContents()}),Pe=S.useCallback(Xe=>zi.calculateTextSize(Xe),[]),Ke=S.useMemo(()=>Math.floor(5e4*.68234)*3,[]),xt=S.useMemo(()=>v.jsx(jN,{calculateSize:Pe,error:wt,htmlDelta:vt,limit:Ke,useError:u,isReadonly:ne}),[Pe,wt,vt,ne,Ke,u]),jt=S.useMemo(()=>({clipboard:{matchVisual:!1,...be&&{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>({})],["blockquote",()=>({})]]}},keyboard:be?{bindings:{Enter:{key:"Enter",handler:Xe=>{if(e&&He){const rt=Xe.root.innerHTML;e(rt)}return!1}}}}:{bindings:{}},imageCompress:{quality:.5},...!ne&&{resize:{locale:{altTip:sn.AEditor["Image size adjust"],center:sn.AEditor.Center,floatLeft:sn.AEditor.floatLeft,floatRight:sn.AEditor.floatRight,inputTip:sn.AEditor["Input on mouse down"],restore:sn.AEditor.Restore}},...!be&&{table:!0,tablePicker:!0,tableUI:!0},toolbar:{container:be?X.TOOLBAR_TITLE:X.TOOLBAR_DEFAULT,handlers:{divider:function(){const Xe=this.quill,rt=Xe.getSelection(!0);if(!rt||be)return;const Rt=Xe.getModule("table"),Ht=Rt&&!!Rt.getTable(rt)[0];Ht||Xe.insertText(rt.index,`
352
- `,Ye.sources.USER);const Ot=Ht?0:1,Xt=Math.min(rt.index+Ot,Xe.getLength()-1);Xe.insertEmbed(Xt,"divider",!0,Ye.sources.USER),setTimeout(()=>Xe.setSelection(Math.min(Xt+1,Xe.getLength()-1),0,Ye.sources.SILENT),0)}}}}}),[ne,be,e,He,X]),At=S.useRef([]),[Be,Lt]=S.useState(!0);S.useEffect(()=>{const Xe=setTimeout(()=>Lt(!1),0);return()=>{clearTimeout(Xe),At.current.forEach(rt=>rt()),At.current=[]}},[]);const Dt=S.useCallback((Xe,rt)=>{if(!O)return rt;const Rt=C?C-de-le:O,Ht=Math.max(Rt,0),Ot=D?D-de-le:F;return Math.min(Ot,Math.max(Ht,rt+Xe))},[O,C,D,de,le,F]),dr=S.useCallback(Xe=>{if(!Ve||!O)return;const rt=Xe.clientY-xe.current,Rt=Dt(rt,et.current);fe!==Rt&&Me(Rt),Xe.preventDefault(),Xe.stopPropagation()},[Ve,O,Dt,fe]),Er=S.useCallback(Xe=>{pe(!1),ze(!1),document.removeEventListener("mousemove",dr),document.removeEventListener("mouseup",Er),Xe.preventDefault(),Xe.stopPropagation()},[dr]),Mr=S.useCallback(Xe=>{if(!O)return;if(Xe.detail===2){Me(O);return}fe===void 0?(Me(O),et.current=O):et.current=fe,pe(!0),ze(!0),xe.current=Xe.clientY;const rt=Ht=>{if(!O)return;const Ot=Ht.clientY-xe.current,Xt=Dt(Ot,et.current);Me(Xt),Ht.preventDefault(),Ht.stopPropagation()},Rt=Ht=>{pe(!1),ze(!1),document.removeEventListener("mousemove",rt),document.removeEventListener("mouseup",Rt),Ht.preventDefault(),Ht.stopPropagation()};document.addEventListener("mousemove",rt),document.addEventListener("mouseup",Rt),Xe.preventDefault(),Xe.stopPropagation()},[O,fe,Dt]),_e=S.useCallback((Xe,rt,Rt,Ht)=>{var st;if(!He)return;const Ot=Ht.getContents(),Xt=Ht.getHTML(),Or=((st=Ot.ops)==null?void 0:st.length)===1&&Ot.ops[0].insert===`
351
+ `,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Bu={},r_;function IN(){if(r_)return Bu;r_=1;var r=zs;if(process.env.NODE_ENV==="production")Bu.createRoot=r.createRoot,Bu.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Bu.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Bu.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Bu}var LN=IN();const n_=cl(LN);class DN{constructor(e,t){ct(this,"DEFAULTS",{maxRowCount:-1});ct(this,"quill");ct(this,"options");ct(this,"position",null);ct(this,"table");ct(this,"selectedCell",null);ct(this,"menuRoot",null);ct(this,"helperTextElement",null);ct(this,"scrollTimeout",null);ct(this,"SCROLL_DEBOUNCE_TIME",80);ct(this,"lastSelectedCellRef",null);ct(this,"boundDocClickHandler",this.hideMenu.bind(this));ct(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));ct(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));ct(this,"boundCopyHandler",this.copyHandler.bind(this));ct(this,"boundScrollHandler",this.handleScroll.bind(this));ct(this,"boundPasteHandler",this.pasteHandler.bind(this));ct(this,"menuItems",[]);ct(this,"positionCache",new Map);ct(this,"POSITION_CACHE_LIFETIME",1e3);ct(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:js.renderToString(v.jsx(Br,{icon:"AddColRight"})),title:sn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:js.renderToString(v.jsx(Br,{icon:"AddColLeft"})),title:sn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:js.renderToString(v.jsx(Br,{icon:"AddRowAbove"})),title:sn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:js.renderToString(v.jsx(Br,{icon:"AddRowBelow"})),title:sn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:js.renderToString(v.jsx(Br,{icon:"RemoveCol"})),title:sn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:js.renderToString(v.jsx(Br,{icon:"RemoveRow"})),title:sn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:js.renderToString(v.jsx(Br,{icon:"Trash"})),title:sn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=qn["ql-tableui-helper"];const e=document.createElement("span");e.className=Ne.clsx("Caption1",qn["ql-tableui-helper__text"],"NoSelect"),e.textContent=sn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=qn["ql-tableui-helper__icon"],t.innerHTML=js.renderToString(v.jsx(Br,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=S.memo(({item:u,index:f})=>v.jsxs("div",{className:qn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:qn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:qn["ql-tableui-options__item-text"],children:u.title})]},f)),l=()=>v.jsx("div",{className:qn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,f)=>v.jsx(i,{item:u,index:f},f))});try{n_.createRoot?(this.reactRoot=n_.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):zs.render(v.jsx(l,{}),this.menuRoot)}catch{zs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const f=u.getBoundingClientRect();let p=e.bottom+window.scrollY,m=e.left+window.scrollX;m+f.width>t&&(m=e.right-f.width+window.scrollX),p+f.height>n+window.scrollY&&(p=e.top-f.height+window.scrollY),u.style.top=`${p}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):zs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const f=this.quill.container.getBoundingClientRect(),p=i.getBoundingClientRect(),m={bottom:p.bottom-f.top,height:p.height,left:p.left-f.left,right:p.right-f.left,top:p.top-f.top,width:p.width,x:p.x,y:p.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let f=i.top-l.top-20;i.top<l.top&&(f=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${f}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const MN=()=>{const r=[1,2,3,!1,4],e=Ye.import("ui/icons");e.table=js.renderToString(v.jsx(Br,{icon:"Table",strokeWidth:2.5})),e.divider=js.renderToString(v.jsx(Br,{icon:"Minus",strokeWidth:2.5}));const t=Ye.import("blots/block/embed");class n extends t{static create(l){const u=super.create(l);return u.style.border="var(--AEditor_Addon_Primary_border)",u.style.borderBottom="none",u.style.transition="border var(--Transition)",u}}return ct(n,"blotName","divider"),ct(n,"tagName","hr"),Ye.register({"modules/imageCompress":QO,"modules/resize":nP,"modules/tablePicker":RN,"modules/tableUI":DN,"formats/header":NN(r),"formats/divider":n},!0),{header:r,FORMAT_DEFAULT:["bold","italic","underline","strike","blockquote","table","size","header","color","background","indent","list","align","image","link","video","divider"],FORMAT_TITLE:["bold","italic","underline","strike","color","background"],TOOLBAR_DEFAULT:[[{header:r}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],TOOLBAR_TITLE:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}};let Jg=null;const ON=()=>(Jg||(Jg=MN()),Jg),Kf={LINE_BREAK:/[\r\n\u2028\u2029]/,LINE_BREAKS:/[\r\n\u2028\u2029]+/g,WHITESPACES:/\s+/g},zi={getCharLength:r=>Array.from(r).length,calculateTextSize:r=>r.ops?r.ops.reduce((e,t)=>typeof t.insert=="string"?e+t.insert.replace(/\n/g,"").split("").reduce((n,i)=>n+(i.charCodeAt(0)<=127?1:3),0):typeof t.insert=="object"&&t.insert.image?e+t.insert.image.length:e,0):0,cleanTextContent:r=>r.replace(Kf.LINE_BREAKS," ").replace(Kf.WHITESPACES," ")};function PN(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function NN(r){const e=Ye.import("formats/header");return e.whitelist=r,e}const FN=S.memo(r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:f,tabIndex:p,autoFocus:m,editorProps:T,wrapProps:k,helperText:b,label:x,labelProps:_,wrapType:I,style:w,minHeight:C,maxHeight:D,contentHeight:O,contentMaxHeight:N=1e3,toolbarSize:j="Med",toolbarType:$="Default",readOnly:Z,limitPosition:ie="Bottom",maxLength:Y,editorClassName:se,editorStyle:q,...J}=r,X=S.useMemo(()=>ON(),[]),ne=S.useMemo(()=>n==="ReadOnly"||Z,[n,Z]),ge=S.useMemo(()=>O?20:0,[O]),[me,ve]=S.useState(j==="Med"?40:50),de=S.useMemo(()=>ne?0:me,[ne,me]),[De,ue]=S.useMemo(()=>Y||!u||ne||ie==="Top"?[0,0]:[20,6],[Y,u,ne,ie]),le=S.useMemo(()=>De+ue,[De,ue]),[fe,Me]=S.useState(O),[Ve,pe]=S.useState(!1),[ke,ze]=S.useState(!1),Ze=S.useRef(null),et=S.useRef(0),xe=S.useRef(0),Se=S.useMemo(()=>x?24:0,[x]),be=S.useMemo(()=>$==="Title"?!0:void 0,[$]),Le=S.useMemo(()=>O||C||be,[O,C,be]),$e=S.useMemo(()=>Le?"fit-content":D?D+Se:`calc(100% - ${Se}px)`,[Le,D,Se]),bt=S.useMemo(()=>{if(O){if(fe)switch(n){case"ReadOnly":return fe;case"Raw":return fe+le;default:return fe+de+le}}else return},[O,fe,n,de,le]),Ge=S.useMemo(()=>{if(!(!D||D<=de+le))switch(n){case"ReadOnly":return D;case"Raw":return D-le;default:return D-de-le}},[n,de,le,D]),ht=S.useMemo(()=>{if(C&&O){const Xe=Math.min(C-de-le,O);return ne?Xe:Xe+de+le}else return C||(O?void 0:`calc(100% - ${Se}px)`)},[C,O,Se,de,le,ne]),mt=S.useMemo(()=>PN(t)?"Error":n,[t,n]),[Oe,He]=dn(l,""),[wt,_t]=dn(u,!1),[vt,Tt]=S.useState(()=>{if(!Oe)return new Gt;const Xe=document.createElement("div");return Xe.innerHTML=Oe,new Ye(Xe,{readOnly:!0}).getContents()}),Pe=S.useCallback(Xe=>zi.calculateTextSize(Xe),[]),Ke=S.useMemo(()=>Math.floor(5e4*.68234)*3,[]),xt=S.useMemo(()=>v.jsx(jN,{calculateSize:Pe,error:wt,htmlDelta:vt,limit:Ke,useError:u,isReadonly:ne}),[Pe,wt,vt,ne,Ke,u]),jt=S.useMemo(()=>({clipboard:{matchVisual:!1,...be&&{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>({})],["blockquote",()=>({})]]}},keyboard:be?{bindings:{Enter:{key:"Enter",handler:Xe=>{if(e&&He){const rt=Xe.root.innerHTML;e(rt)}return!1}}}}:{bindings:{}},imageCompress:{quality:.5},...!ne&&{resize:{locale:{altTip:sn.AEditor["Image size adjust"],center:sn.AEditor.Center,floatLeft:sn.AEditor.floatLeft,floatRight:sn.AEditor.floatRight,inputTip:sn.AEditor["Input on mouse down"],restore:sn.AEditor.Restore}},...!be&&{table:!0,tablePicker:!0,tableUI:!0},toolbar:{container:be?X.TOOLBAR_TITLE:X.TOOLBAR_DEFAULT,handlers:{divider:function(){const Xe=this.quill,rt=Xe.getSelection(!0);if(!rt||be)return;const Rt=Xe.getModule("table"),Ht=Rt&&!!Rt.getTable(rt)[0];Ht||Xe.insertText(rt.index,`
352
+ `,Ye.sources.USER);const Ot=Ht?0:1,Xt=Math.min(rt.index+Ot,Xe.getLength()-1);Xe.insertEmbed(Xt,"divider",!0,Ye.sources.USER),setTimeout(()=>Xe.setSelection(Math.min(Xt+1,Xe.getLength()-1),0,Ye.sources.SILENT),0)}}}}}),[ne,be,e,He,X]),At=S.useRef([]),[Be,Lt]=S.useState(!0);S.useEffect(()=>{const Xe=setTimeout(()=>Lt(!1),0);return()=>{clearTimeout(Xe),At.current.forEach(rt=>rt()),At.current=[]}},[]);const Dt=S.useCallback((Xe,rt)=>{if(!O)return rt;const Rt=C?C-de-le:O,Ht=Math.max(Rt,0),Ot=D?D-de-le:N;return Math.min(Ot,Math.max(Ht,rt+Xe))},[O,C,D,de,le,N]),dr=S.useCallback(Xe=>{if(!Ve||!O)return;const rt=Xe.clientY-xe.current,Rt=Dt(rt,et.current);fe!==Rt&&Me(Rt),Xe.preventDefault(),Xe.stopPropagation()},[Ve,O,Dt,fe]),Er=S.useCallback(Xe=>{pe(!1),ze(!1),document.removeEventListener("mousemove",dr),document.removeEventListener("mouseup",Er),Xe.preventDefault(),Xe.stopPropagation()},[dr]),Mr=S.useCallback(Xe=>{if(!O)return;if(Xe.detail===2){Me(O);return}fe===void 0?(Me(O),et.current=O):et.current=fe,pe(!0),ze(!0),xe.current=Xe.clientY;const rt=Ht=>{if(!O)return;const Ot=Ht.clientY-xe.current,Xt=Dt(Ot,et.current);Me(Xt),Ht.preventDefault(),Ht.stopPropagation()},Rt=Ht=>{pe(!1),ze(!1),document.removeEventListener("mousemove",rt),document.removeEventListener("mouseup",Rt),Ht.preventDefault(),Ht.stopPropagation()};document.addEventListener("mousemove",rt),document.addEventListener("mouseup",Rt),Xe.preventDefault(),Xe.stopPropagation()},[O,fe,Dt]),_e=S.useCallback((Xe,rt,Rt,Ht)=>{var st;if(!He)return;const Ot=Ht.getContents(),Xt=Ht.getHTML(),Or=((st=Ot.ops)==null?void 0:st.length)===1&&Ot.ops[0].insert===`
353
353
  `;_t&&_t(Pe(Ot)>Ke),He(Or?"":Xt),Tt(Ot)},[Pe,Ke,_t,He]),te=S.useMemo(()=>j==="Med"?7.5:12.5,[j]),tt=S.useCallback(Xe=>{var Ot,Xt;const rt=Xe.getEditor().container;if(!rt)return null;const Rt=(Ot=rt.closest(".AEditorContainer"))==null?void 0:Ot.querySelector(".ql-toolbar");return Rt||((Xt=rt.parentElement)==null?void 0:Xt.querySelector(".ql-toolbar"))||null},[]),ut=S.useCallback((Xe,rt,Rt,Ht)=>{if(!Xe)return;const Ot=Rt;Xe.addEventListener(rt,Ot,Ht),At.current.push(()=>Xe.removeEventListener(rt,Ot,Ht))},[]),qt=S.useCallback((Xe,rt)=>Xe?(rt.forEach(({type:Rt,handler:Ht,options:Ot})=>ut(Xe,Rt,Ht,Ot)),()=>{}):()=>{},[ut]),kt=S.useCallback(Xe=>{if(!Xe)return;const rt=Xe.getEditor();if(!rt)return;const Rt=rt.root;Rt&&se&&Rt.classList.add(...se.split(" ")),Rt&&q&&Object.entries(q).forEach(([St,pt])=>{const Bt=St.replace(/([A-Z])/g,gr=>`-${gr[0].toLowerCase()}`);Rt.style[Bt]=pt});const Ht={input:St=>{const pt=St.target;if(!pt)return;const Bt=parseInt(pt.value,10);isNaN(Bt)},keyDown:St=>{if(St.key!=="Delete"&&St.key!=="Backspace"&&St.key!=="Enter")return;const pt=document.querySelector("#editor-resizer");pt&&(pt.style.display="none")},formatExpand:St=>{const pt=rt.getFormat(),Bt=tt(Xe);Bt&&St.forEach(gr=>{if(pt[gr]){const re=pt[gr],Ue=`.ql-${gr}`,Re=Bt.querySelector(`${Ue} .ql-picker-label`),nt=Bt.querySelectorAll(`${Ue} .ql-picker-item`),at=Array.from(nt).find(Et=>Et.getAttribute("data-value")===re);at&&(at.classList.add("ql-selected"),Re==null||Re.classList.add("ql-active"))}})},resizeToolbar:St=>{if(!St.length)return;const gr=St[0].target.getBoundingClientRect(),re=Math.ceil(gr.height);ve(Ue=>Math.abs(Ue-re)<.1?Ue:re)}},Ot=St=>{const pt=St.target;if(pt.tagName==="IMG")try{const Bt=Ye.find(pt);if(Bt){const gr=rt.getIndex(Bt);queueMicrotask(()=>rt.setSelection(gr,1,Ye.sources.USER)),St.preventDefault(),St.stopPropagation()}}catch(Bt){console.error("이미지 선택 중 오류:",Bt)}},Xt=tt(Xe),Or=new ResizeObserver(Ht.resizeToolbar);Xt&&(Or.observe(Xt),At.current.push(()=>Or.disconnect()));const st=["header","color","background"];return st.forEach(St=>{const pt=Xt==null?void 0:Xt.querySelector(`.ql-${St} .ql-picker-label`);pt&&ut(pt,"click",()=>Ht.formatExpand(st))}),Rt&&(ut(Rt,"keydown",Ht.keyDown),ut(Rt,"click",Ot)),()=>{}},[tt,ut,se,q]),Mt=S.useCallback(Xe=>{if(!Xe||!Y)return;const rt=Xe.getEditor();if(!rt)return;let Rt=!1,Ht="",Ot=null,Xt=0;const st=Bt=>{Rt||(Ot&&window.cancelAnimationFrame(Ot),Ot=window.requestAnimationFrame(()=>{Rt=!0;try{Bt()}finally{Rt=!1,Ot=null}}))},St=[],pt=Bt=>Bt?zi.cleanTextContent(Bt.getData("text/plain")):null;if(be){const Bt=at=>{if(at.key==="Enter")return at.preventDefault(),e&&e(rt.root.innerHTML),!1},gr=()=>{const at=rt.getText().slice(0,-1);if(at===Ht)return;const Et=Kf.LINE_BREAK.test(at),lt=zi.getCharLength(at)>Y;if(Et||lt){const zt=rt.getSelection(),ar=rt.getFormat();Xt=zt?zt.index:0;let Zt=at;if(Et&&(Zt=zi.cleanTextContent(Zt)),lt&&(Zt=Array.from(Zt).slice(0,Y).join("")),Zt!==at){const ir=new Gt().insert(Zt+`
354
354
  `);rt.setContents(ir),Object.keys(ar).length>0&&rt.formatText(0,Zt.length,ar);const Sr=Math.min(Xt,Zt.length);rt.setSelection(Sr,0)}Ht=Zt}else Ht=at},re=at=>{at.preventDefault();const Et=pt(at.clipboardData);if(!Et)return;const lt=rt.getSelection();if(!lt)return;const zt=rt.getText().slice(0,-1),ar=lt.index>0?zt.substring(0,lt.index):"",Zt=lt.index+lt.length<zt.length?zt.substring(lt.index+lt.length):"",ir=ar+Et+Zt;if(zi.getCharLength(ir)<=Y)lt.length>0&&rt.deleteText(lt.index,lt.length),rt.insertText(lt.index,Et),rt.setSelection(lt.index+zi.getCharLength(Et),0);else{const nr=Y-(zi.getCharLength(ar)+zi.getCharLength(Zt));if(nr<=0)return;const Wr=Array.from(Et).slice(0,nr).join("");rt.updateContents(new Gt().retain(lt.index).delete(lt.length).insert(Wr)),rt.setSelection(lt.index+zi.getCharLength(Wr),0)}st(()=>{const nr=rt.getText().slice(0,-1);if(Kf.LINE_BREAK.test(nr)){const Wr=zi.cleanTextContent(nr),Gr=rt.getFormat();rt.setContents(new Gt().insert(Wr+`
355
- `)),Object.keys(Gr).length>0&&rt.formatText(0,Wr.length,Gr);const mn=Math.min(lt.index+zi.getCharLength(Et),Wr.length);rt.setSelection(mn,0),Ht=Wr}else Ht=nr})},Ue=at=>{(at.inputType==="insertLineBreak"||at.inputType==="insertText"&&at.data&&Kf.LINE_BREAK.test(at.data))&&at.preventDefault()},Re=()=>st(gr),nt=qt(rt.root,[{type:"keydown",handler:Bt},{type:"paste",handler:re},{type:"beforeinput",handler:Ue}]);rt.on("text-change",Re),St.push(()=>{rt.off("text-change",Re),Ot&&window.cancelAnimationFrame(Ot),nt()}),st(gr)}else{const Bt=()=>{const at=rt.getText();if(zi.getCharLength(at)-1<=Y)return;const lt=rt.getSelection(),zt=rt.getContents();Xt=lt?lt.index:0;let ar=0,Zt=0;for(const Sr of zt.ops||[])if(typeof Sr.insert=="string"){const nr=Array.from(Sr.insert);for(const Wr of nr){if(ar>=Y)break;ar++,Zt+=Wr.length}if(ar>=Y)break}else Sr.insert&&(ar+=1);const ir=at.substring(0,Zt);rt.setText(ir),rt.setSelection(Math.min(Xt,ir.length),0)},gr=(at,Et)=>{const lt=rt.getSelection();if(!lt)return!0;const zt=rt.getText(),ar=zi.getCharLength(zt)-1,Zt=lt.length>0?zi.getCharLength(zt.substring(lt.index,lt.index+lt.length)):0,ir=Y-(ar-Zt);if(zi.getCharLength(Et)<=ir)return!0;if(at.preventDefault(),at.type==="paste"){const nr=lt.index,Wr=Array.from(Et).slice(0,ir).join(""),Gr=new Gt;lt.length?Gr.retain(nr).delete(lt.length):Gr.retain(nr),Gr.insert(Wr),rt.updateContents(Gr,Ye.sources.USER),requestAnimationFrame(()=>{const mn=nr+zi.getCharLength(Wr);mn<=rt.getLength()&&rt.setSelection(mn,0)})}return!1},re=()=>st(Bt),Ue=at=>{at.inputType.startsWith("insert")&&gr(at,at.data||"")},Re=at=>{const Et=pt(at.clipboardData);Et&&gr(at,Et)},nt=qt(rt.root,[{type:"beforeinput",handler:Ue,options:{capture:!0}},{type:"paste",handler:Re,options:{capture:!0}}]);rt.on("text-change",re),St.push(()=>{rt.off("text-change",re),Ot&&window.cancelAnimationFrame(Ot),nt()})}return()=>St.forEach(Bt=>Bt())},[Y,be,e,qt]),tr=S.useCallback(Xe=>{typeof i=="function"?i(Xe):i&&(i.current=Xe),Xe&&(kt(Xe),Mt(Xe))},[i,kt,Mt]);return v.jsx(ic,{helperText:b,wrapType:I,labelProps:{..._,style:{minHeight:x?20:void 0,marginBottom:x?4:0,..._==null?void 0:_.style}},errorMessage:t,label:v.jsxs(An,{style:{gap:4},children:[x,!Y&&ie==="Top"&&xt]}),wrapProps:{...k,className:Ne.clsx(k==null?void 0:k.className,!Le&&qn.AEditorWrapper),style:{...k==null?void 0:k.style,height:$e}},children:v.jsxs(Ur,{...J,className:Ne.clsx(J.className,qn.AEditorContainer,Be&&"NoTransition"),style:{...w,height:bt,minHeight:ht},children:[v.jsx(kh,{...T,ref:tr,className:Ne.clsx(T==null?void 0:T.className,qn.AEditor,qn[mt],be&&"Title",Be&&"NoTransition"),formats:be?X.FORMAT_TITLE:X.FORMAT_DEFAULT,modules:jt,placeholder:f,readOnly:ne,theme:"snow",value:vt,style:{...T==null?void 0:T.style,maxHeight:Ge?Ge+de:void 0,"--icon-size":`${j==="Med"?18:24}px`,"--editor-padding":be?"8px 12px":"12px","--toolbar-padding":`${te}px`,"--content-height":be?"34px":fe?`${fe}px`:"100%","--content-max-height":Ge?`${Ge}px`:"100%","--default-text":`'${sn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(js.renderToString(v.jsx(Br,{icon:"EditorArrow"})))}`,"--title-color-picker-width":be?"780px":"142px"},onChange:_e}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:Ze,className:Ne.clsx(qn.Resizer,Be&&"NoTransition"),style:{height:ge,bottom:u&&!ne?le:0},onMouseDown:Mr}),ke&&v.jsx("div",{className:Ne.clsx(qn.Indicator,"NoSelect","Label1",Be&&"NoTransition"),style:{height:ge,bottom:u&&!ne?le:0},children:`${Math.round(fe)}px`})]}),v.jsx("div",{className:Ne.clsx(qn.LimitContainer,"NoSelect",Be&&"NoTransition"),style:{marginTop:ue,minHeight:De,display:!Y&&ie==="Bottom"?"flex":"none"},children:xt})]})})},(r,e)=>r.errorMessage===e.errorMessage&&r.type===e.type&&r.useValue===e.useValue&&r.useError===e.useError&&r.placeholder===e.placeholder&&r.readOnly===e.readOnly&&r.maxLength===e.maxLength&&r.contentHeight===e.contentHeight&&r.minHeight===e.minHeight&&r.maxHeight===e.maxHeight&&r.toolbarSize===e.toolbarSize&&r.toolbarType===e.toolbarType&&r.limitPosition===e.limitPosition&&r.editorClassName===e.editorClassName&&r.editorStyle===e.editorStyle),jN=S.memo(({calculateSize:r,error:e,htmlDelta:t,limit:n,useError:i,isReadonly:l})=>{if(!i||l)return null;const u=r(t),f=e||u>n;return v.jsxs(wa,{className:qn.Limit,children:["(",v.jsx("span",{className:f?qn.Error:void 0,children:Qc(u)})," / ",Qc(n),")"]})});function lh(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=lh(t.children,e);if(n)return n}}function gd(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&gd(t.children,e)}function wS(r,e){Array.isArray(r)||(r=[r]);const t=[];return gd(r,(n,i)=>t.push(e(n,i))),t}function AS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!AS(t.children,e))return!1}return!0}function BN(r,e){Array.isArray(r)||(r=[r]);const t=[];return gd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function qN(r){Array.isArray(r)||(r=[r]);let e=0;return gd(r,()=>e++),e}function HN(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=lh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(p=>n(p,e))}),l=lh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(p=>n(p,t))});if(i===void 0&&l===void 0){const u=r.findIndex(p=>n(p,e)),f=r.findIndex(p=>n(p,t));return r.splice(u,1),r.splice(f,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(p=>n(p,e)),f=i.children.findIndex(p=>n(p,t));return u===void 0||f===void 0?null:(i.children.splice(u,1),i.children.splice(f,0,e),i.children=[...i.children],[...r])}return null}function zN(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function $N(r,e,t){Array.isArray(r)||(r=[r]);const n=wS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(p=>t(p,u)))continue;i.push(u);const f=n.find(p=>{var m;return(m=p.children)==null?void 0:m.some(T=>t(T,u))});f&&l.push(f)}return i}const il={find:lh,forEach:gd,map:wS,every:AS,filter:BN,length:qN,replace:HN,descendants:zN,ancestors:$N},UN="_AWrap_1qho8_1",WN="_AContainer_1qho8_10",VN="_ATree_1qho8_18",GN="_ATreeBody_1qho8_30",ZN="_CoverBorder_1qho8_36",KN="_InsertBorder_1qho8_45",YN="_ATreeHeader_1qho8_76",XN="_ATreeBodyHeader_1qho8_82",JN="_ATreeBodyHeaderResources_1qho8_92",QN="_ATreeItem_1qho8_98",eF="_IsSelectUsed_1qho8_114",tF="_IsSelected_1qho8_117",rF="_IsSearchSelected_1qho8_122",nF="_IsHovered_1qho8_133",iF="_CheckBox_1qho8_137",oF="_Indents_1qho8_149",sF="_ExpandIcon_1qho8_156",aF="_Content_1qho8_168",lF="_RightSticky_1qho8_177",cF="_SearchInputWrap_1qho8_187",uF="_SearchInput_1qho8_187",fF="_RightAddon_1qho8_199",dF="_RightAddonIcon_1qho8_210",hF="_Loader_1qho8_217",gn={AWrap:UN,AContainer:WN,ATree:VN,ATreeBody:GN,CoverBorder:ZN,InsertBorder:KN,ATreeHeader:YN,ATreeBodyHeader:XN,ATreeBodyHeaderResources:JN,ATreeItem:QN,IsSelectUsed:eF,IsSelected:tF,IsSearchSelected:rF,IsHovered:nF,CheckBox:iF,Indents:oF,ExpandIcon:sF,Content:aF,RightSticky:lF,SearchInputWrap:cF,SearchInput:uF,RightAddon:fF,RightAddonIcon:dF,Loader:hF},pF=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:f,useExpand:p,useSelect:m,useSearch:T,onDragStart:k,onDragOver:b,onDragEnd:x,showCheckbox:_,icons:I,iconWidth:w,isSelectMulti:C,isDraggable:D,isParentCheckHovered:O,hoverdItem:F,onMouseOver:j,onMouseLeave:$,ContentRenderer:Z,TreeItemRenderer:ie,RightStickyAddon:Y,resources:se,containerRef:q,TreeItemStyle:J,TreeItemClassName:X,searchItemStyle:ne,searchItemClassName:ge,height:me}=r,{children:ve}=S.useMemo(()=>t,[t]),[de,De]=S.useMemo(()=>p,[p]),[ue,le]=S.useMemo(()=>m,[m]),[fe,Me]=S.useMemo(()=>T,[T]),Ve=S.useMemo(()=>i?i(t):!1,[i,t]),pe=S.useMemo(()=>!n||l?l:n(t),[n,l,t]),ke=S.useMemo(()=>de.some(Be=>e(Be,t)),[de,e,t]),ze=S.useMemo(()=>!ve||ve.length<1?"noChild":ke?"expanded":"collapsed",[ve,ke]),Ze=S.useMemo(()=>{const Be=I[ze];return mm.includes(Be)?v.jsx(Br,{style:{width:w,height:w},icon:Be}):Be},[I,w,ze]),et=S.useCallback(Be=>{!De||ze==="noChild"||(De(ke?de.filter(Lt=>!e(Lt,t)):[...de,t]),Be.stopPropagation())},[De,de,ke,t,e,ze]),xe=S.useMemo(()=>ue.some(Be=>e(Be,t)),[ue,e,t]),Se=S.useCallback(()=>{!le||pe||(le(C?xe?ue.filter(Be=>!e(Be,t)):[...ue,t]:[t]),fe&&Me&&fe.items.some(Be=>e(Be,t))&&Me({...fe,item:t}))},[C,pe,xe,fe,Me,le,e,ue,t]),be=S.useMemo(()=>fe==null?void 0:fe.items.some(Be=>e(Be,t)),[fe,e,t]),Le=S.useMemo(()=>be&&(fe==null?void 0:fe.item)&&e(fe.item,t),[be,fe,e,t]),$e=S.useRef(null);S.useEffect(()=>{setTimeout(()=>{if(Le&&$e.current&&q.current){const{top:Be,bottom:Lt}=$e.current.getBoundingClientRect(),{top:Dt,bottom:dr}=q.current.getBoundingClientRect();(Be<Dt||Lt>dr)&&$e.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[q,Le]);const[bt,Ge]=S.useState(!1),ht=S.useCallback(()=>!pe&&Ge(!0),[pe]),mt=S.useCallback(()=>!pe&&Ge(!1),[pe]),Oe=S.useMemo(()=>il.map(t,Be=>Be).filter(Be=>!(n!=null&&n(Be))&&!(i!=null&&i(Be))),[n,i,t]),He=S.useMemo(()=>!_||!C?!1:xe&&Oe.some(Be=>ue.some(Lt=>e(Be,Lt)))&&Oe.some(Be=>!ue.some(Lt=>e(Be,Lt))),[_,C,xe,Oe,e,ue]),wt=S.useMemo(()=>_?C?Oe.every(Be=>ue.some(Lt=>e(Be,Lt))):ue.some(Be=>e(Be,t)):!1,[_,C,Oe,t,e,ue]),_t=S.useCallback(()=>{if(!(!le||pe))if(C)if(xe){const Be=ue.filter(Lt=>!(i!=null&&i(Lt))&&!(n!=null&&n(Lt))&&Oe.some(Dt=>e(Dt,Lt)));Be.length>0&&le(ue.filter(Lt=>!Be.some(Dt=>e(Lt,Dt))))}else{const Be=Oe.filter(Lt=>!(i!=null&&i(Lt))&&!(n!=null&&n(Lt))&&!ue.some(Dt=>e(Dt,Lt)));Be.length>0&&le([...ue,...Be])}else le([t])},[pe,n,i,C,le,e,xe,ue,Oe,t]),vt=S.useCallback(Be=>{pe||_t(),Be.stopPropagation()},[pe,_t]),Tt=S.useMemo(()=>{if(!_||!C||pe)return"";if(xe){const Lt=ue.filter(Dt=>!(i!=null&&i(Dt))&&!(n!=null&&n(Dt))&&Oe.some(dr=>e(dr,Dt)));if(Lt.length>0)return se["deselect n"](Lt.length)}const Be=Oe.filter(Lt=>!(i!=null&&i(Lt))&&!(n!=null&&n(Lt))&&!ue.some(Dt=>e(Dt,Lt)));return se["select n"](Be.length)},[n,i,se,pe,_,C,xe,Oe,e,ue]),Pe=S.useMemo(()=>Ir.getContent(Y,r),[Y,r]),Ke=S.useMemo(()=>Ir.getContent(J,r),[r,J]),xt=S.useMemo(()=>Ir.getContent(X,r),[r,X]),jt=S.useMemo(()=>Ir.getContent(ge,r),[r,ge]),At=S.useMemo(()=>Ir.getContent(ne,r),[r,ne]);return v.jsxs(S.Fragment,{children:[v.jsxs(Ur,{className:Ne.clsx(gn.ATreeItem,xe&&gn.IsSelected,!pe&&(bt||O)&&gn.IsHovered,be&&gn.IsSearched,Le&&(jt||gn.IsSearchSelected),!Ve&&gn.IsSelectUsed,"NoSelect",xt),style:{...Ke,...Le&&At,"--ATreeItem_height":`${me}px`},draggable:D,onDragStart:()=>k==null?void 0:k(t),onDragEnter:Be=>b==null?void 0:b(Be,t),onDragEnd:Be=>x==null?void 0:x(Be,t),onClick:Se,abaseRef:$e,isDisabled:pe,onMouseOver:Be=>j==null?void 0:j(Be,t),onMouseLeave:Be=>$==null?void 0:$(Be,t),children:[_&&v.jsx(Qu,{style:{visibility:pe||Ve?"hidden":"visible",zIndex:pe||Ve?0:2},className:gn.CheckBox,useCheck:[+wt,_t],onClick:vt,isIndeterminate:He,onMouseOver:ht,onMouseOut:mt,tooltip:Tt,isDisabled:pe}),v.jsx("div",{className:gn.Indents,style:{paddingLeft:_?0:r.icons.noChild?12:0},children:u.map((Be,Lt)=>{const Dt=Lt===u.length-1;return v.jsx(V2,{value:Be,map:{Collapsed:f?f({iconWidth:w}).collapsed:v.jsx(mF,{iconWidth:w}),Expanded:f?f({iconWidth:w,isLast:Dt}).expanded:v.jsx(gF,{iconWidth:w,isLast:Dt}),IsLast:f?f({iconWidth:w}).isLast:v.jsx(vF,{iconWidth:w})}},Lt)})}),Ze&&v.jsx("div",{className:gn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:et,children:Ze}),v.jsx("div",{className:Ne.clsx(gn.Content,"NoSelect"),children:v.jsx(Z,{isEqual:e,item:t,indents:u,extIndents:f,useExpand:p,useSelect:m,useSearch:T,onDragStart:k,onDragOver:b,onDragEnd:x,showCheckbox:_,icons:I,iconWidth:w,isSelectMulti:C,isDraggable:D,isParentCheckHovered:C&&(bt||O),hoverdItem:F,onMouseOver:j,onMouseLeave:$,ContentRenderer:Z,TreeItemRenderer:ie,RightStickyAddon:Y,resources:se,containerRef:q,TreeItemStyle:J,TreeItemClassName:X,searchItemClassName:jt,searchItemStyle:ne,height:me})}),Pe&&v.jsx("div",{className:gn.RightSticky,children:Pe})]}),ke&&(ve==null?void 0:ve.map((Be,Lt)=>v.jsx(ie,{isEqual:e,item:Be,selectDisabled:n,selectUnused:i,indents:[...u.map(Dt=>Dt==="IsLast"?"Collapsed":Dt),Lt===ve.length-1?"IsLast":"Expanded"],extIndents:f,ContentRenderer:Z,useExpand:p,useSelect:m,useSearch:T,onDragStart:k,onDragOver:b,onDragEnd:x,showCheckbox:_,icons:I,iconWidth:w,isSelectMulti:C,isDraggable:D,isParentCheckHovered:C&&(bt||O),hoverdItem:F,onMouseOver:j,onMouseLeave:$,TreeItemRenderer:ie,RightStickyAddon:Y,resources:se,containerRef:q,TreeItemStyle:J,TreeItemClassName:X,searchItemClassName:jt,searchItemStyle:ne,height:me},Lt)))]})},gF=({iconWidth:r,isLast:e})=>v.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&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),mF=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),vF=({iconWidth:r})=>v.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)"}}),yF=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:f,isLoading:p,resources:m,maxLength:T,autoFocus:k}=r,b=S.useCallback(I=>{I.key==="Enter"?u():I.key==="ArrowDown"?l():I.key==="ArrowUp"&&i(),I.preventDefault(),I.stopPropagation()},[l,u,i]),x=S.useCallback(I=>{n(I)},[n]),_=S.useMemo(()=>f||p?-1:void 0,[f,p]);return v.jsx(oc,{className:gn.SearchInput,wrapProps:{className:gn.SearchInputWrap},isDisabled:f,tabIndex:_,useValue:[(t==null?void 0:t.keyword)??"",x],onKeyDown:b,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(bF,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:T,autoFocus:k})},bF=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,f=S.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(_=>t.item&&e(_,t.item))+1,[t,e]),p=S.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=S.useMemo(()=>f<2,[f]),T=S.useMemo(()=>f>=p,[f,p]),k=S.useCallback(_=>{_.stopPropagation(),!m&&n()},[n,m]),b=S.useCallback(_=>{_.stopPropagation(),!T&&i()},[i,T]),x=S.useCallback(_=>{_.stopPropagation(),l()},[l]);return v.jsx("div",{className:Ne.clsx(gn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[f,"/",p,v.jsx(Ur,{onClick:k,isDisabled:m,children:v.jsx(Br,{className:gn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:b,isDisabled:T,children:v.jsx(Br,{className:gn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(pi,{type:"Raw",className:gn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:x,tooltip:u["Search(Button)"]})})},_F=r=>{var Or;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:f,showCheckbox:p,iconWidth:m=24,icons:T={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:k,isSelectMulti:b=!1,noSearch:x=!1,isDraggable:_,noSyncSearchSelect:I=!1,actionRef:w,placeholder:C,searchPredicate:D=SF,isDisabled:O,isLoading:F,ContentRenderer:j=xF,TreeItemRenderer:$=pF,RightStickyAddon:Z,TopRightAddon:ie,TreeTopAddon:Y,resources:se,maxLength:q,autoFocus:J,TreeItemStyle:X,TreeItemClassName:ne,OverflowPadding:ge,insertBorder:me,width:ve,searchItemClassName:de,searchItemStyle:De,height:ue=40,...le}=r,fe=S.useMemo(()=>({...sn.ATree,...se}),[se]),Me=S.useCallback((st,St)=>e!==void 0?Array.isArray(e)?e.every(pt=>ol.isEqual(st[pt],St[pt])):ol.isEqual(st[e],St[e]):ol.isEqual(st,St),[e]),Ve=S.useRef(null),[pe,ke]=dn(i,[]),ze=S.useMemo(()=>il.map(pe,st=>st),[pe]),[Ze,et]=dn(l,[]),[xe,Se]=dn(u,[]),[be,Le]=dn(f,void 0),$e=S.useCallback(st=>{if(O||!et||Ze.some(Bt=>Me(Bt,st)))return;const St=[];let pt=st;for(;pt;){const Bt=pt;Ze.find(gr=>Me(gr,Bt))||St.push(Bt),pt=ze.find(gr=>{var re;return(re=gr.children)==null?void 0:re.some(Ue=>Me(Ue,Bt))})}et([...Ze,...St])},[Ze,O,Me,et,ze]),bt=S.useCallback(()=>{!et||O||et([...ze])},[ze,O,et]),Ge=S.useCallback(()=>{!et||O||et([])},[et,O]),ht=S.useCallback(st=>{!Se||O||n!=null&&n(st)||(Se([st]),$e(st))},[Se,O,n,$e]),mt=S.useCallback(st=>{if(!Le||O)return;if(!st||x){Le(void 0),I||Se==null||Se([]);return}const St=il.filter(pe,Bt=>D(st,Bt));let pt;if(St.find(Bt=>(be==null?void 0:be.item)&&Me(Bt,be.item))?pt=be==null?void 0:be.item:St.length>0&&(pt=St[0]),Le({keyword:st,items:St,item:pt}),pt&&$e(pt),Se&&!I)if(b)Se(St);else{const Bt=St.find(gr=>pt&&Me(gr,pt));Se(Bt?[Bt]:[])}},[pe,O,Me,D,Le,Se,$e,I,x,b,be]),Oe=S.useRef(!1);S.useEffect(()=>{Oe.current=!0},[pe]),S.useEffect(()=>{be&&Oe.current&&(mt(be.keyword),Oe.current=!1)},[mt,be]);const He=S.useCallback(()=>{if(!be||!Le||O)return;let st=be.items.findIndex(St=>be.item&&Me(St,be.item))-1;st<0||(Le({...be,item:be.items[st]}),$e(be.items[st]),I||ht(be.items[st]))},[be,$e,Le,O,ht,Me,I]),wt=S.useCallback(()=>{if(!be||!Le||O)return;let st=be.items.findIndex(St=>be.item&&Me(St,be.item))+1;st>=be.items.length||(Le({...be,item:be.items[st]}),$e(be.items[st]),I||ht(be.items[st]))},[be,$e,O,Le,ht,Me,I]),_t=S.useCallback(()=>{if(!be||!Le||O)return;let st=be.items.findIndex(pt=>be.item&&Me(pt,be.item));if(!I||n!=null&&n(be.items[st])){wt();return}if(xe.some(pt=>be.item&&Me(pt,be.item))){let pt=st+1;const Bt=be.items[pt];if(pt>=be.items.length)return;Le({...be,item:Bt}),ht(Bt)}else ht(be.items[st])},[be,Le,O,xe,I,wt,Me,ht,n]),[vt,Tt]=S.useState(!1),Pe=S.useCallback(()=>Tt(!0),[]),Ke=S.useCallback(()=>Tt(!1),[]),xt=S.useMemo(()=>n?il.map(pe,st=>st).filter(st=>!n(st)):t?il.map(pe,st=>st).filter(st=>!t(st)):il.map(pe,st=>st),[n,t,pe]),jt=S.useMemo(()=>!p||!b?!1:xe.length>0&&xt.length>xe.length,[p,b,xe,xt]),At=S.useMemo(()=>!p||!b?!1:xe.length>0&&xt.length===xe.length,[p,b,xe,xt]),Be=S.useCallback(()=>{if(!Se||!b||O)return;const st=xe.filter(St=>!(n!=null&&n(St))&&!(t!=null&&t(St))&&xt.some(pt=>Me(pt,St)));if(st.length>0)Se(xe.filter(St=>!st.some(pt=>Me(St,pt))));else{const St=xt.filter(pt=>!(n!=null&&n(pt))&&!(t!=null&&t(pt))&&!xe.some(Bt=>Me(Bt,pt)));St.length>0&&Se([...xe,...St])}},[b,O,n,t,Se,xe,xt,Me]),Lt=S.useMemo(()=>{if(!p||!b||O)return"";const st=xe.filter(St=>!(n!=null&&n(St))&&!(t!=null&&t(St))&&xt.some(pt=>Me(pt,St)));if(st.length>0)return fe["deselect n"](st.length);{const St=xt.filter(pt=>!(n!=null&&n(pt))&&!(t!=null&&t(pt))&&!xe.some(Bt=>Me(Bt,pt)));return fe["select n"](St.length)}},[n,t,O,fe,p,b,xt,xe,Me]),[Dt,dr]=S.useState(null),[Er,Mr]=S.useState(null),_e=S.useCallback(st=>{!_||O||dr(st)},[O,_]),te=S.useCallback((st,St)=>{if(!_||O||!Dt||(st.preventDefault(),st.stopPropagation(),Mr(St),!ke))return;const pt=il.replace(pe,Dt,St,Me);pt&&ke(pt)},[_,pe,Dt,O,ke,Me]),tt=S.useCallback(()=>{if(!_||O||!Dt||!Er||!ke||Me(Dt,Er))return;const st=il.replace(pe,Dt,Er,Me);st&&(ke(st),dr(null))},[_,ke,pe,Dt,Er,Me,O]);S.useEffect(()=>{var st;p||(st=Ve.current)==null||st.scrollTo(0,0)},[p,Ve]),S.useEffect(()=>{!b&&xe.length>1&&(Se==null||Se([xe[xe.length-1]]))},[b,Se,xe]),S.useEffect(()=>{w&&(w.current={expandAll:bt,collapseAll:Ge})},[w,bt,Ge]),S.useEffect(()=>{if(!t||!Se)return;const st=xe.filter(St=>!t(St));xe.length!==st.length&&Se(st)},[t,xe,Se]),S.useEffect(()=>{if(!n||!Se)return;const st=xe.filter(St=>!n(St));xe.length!==st.length&&Se(st)},[n,xe,Se]),S.useEffect(()=>{Le&&Le(void 0)},[Le]);const[ut,qt]=S.useState(!1);S.useEffect(()=>{qt(st=>!st)},[pe]);const[kt,Mt]=S.useState(null),tr=S.useCallback((st,St)=>{O||(st.stopPropagation(),st.preventDefault(),Mt(St))},[O]),Xe=S.useCallback((st,St)=>{kt===null||O||Me(St,kt)&&(st.stopPropagation(),st.preventDefault(),Mt(null))},[kt,O,Me]),rt=S.useRef(null),[Rt,Ht]=S.useState(!1),[Ot,Xt]=S.useState((Or=rt.current)==null?void 0:Or.scrollHeight);return S.useEffect(()=>{if(Ze.length<0)return;const st=Ve.current,St=rt.current,pt=st.clientHeight<St.clientHeight;Xt(pt?St.scrollHeight:st.clientHeight),Ht(pt)},[Ze]),v.jsxs(Ur,{...le,isDisabled:O,className:Ne.clsx(le.className,gn.AWrap),children:[(!x||ie)&&v.jsxs(An,{className:gn.ATreeHeader,children:[!x&&v.jsx(yF,{isEqual:Me,searchResult:be,initSearch:mt,searchUp:He,searchDown:wt,searchEnter:_t,isLoading:F,isDisabled:O,resources:fe,maxLength:q,autoFocus:J}),!x&&ie&&v.jsx(bn,{w:8}),ie]}),(!x||ie||p&&b||_)&&v.jsx(Cm,{isLoading:F&&pe.length!==0}),(p&&b||_)&&v.jsxs("div",{className:Ne.clsx(gn.ATreeBodyHeader,"NoSelect"),children:[p&&v.jsx(Qu,{className:gn.CheckBox,useCheck:[+At,()=>Be()],isIndeterminate:jt,onMouseOver:Pe,onMouseOut:Ke,isDisabled:O,tooltip:Lt}),fe.Items,v.jsx(nu,{}),v.jsxs("div",{className:Ne.clsx(gn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Rt?8:0},children:[v.jsx("span",{children:p&&fe["*Click row for single select"]}),v.jsx("span",{children:_&&fe["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Ve,className:Ne.clsx(le.className,gn.AContainer),children:v.jsxs("div",{className:gn.ATree,style:{minWidth:ve||"fit-content",marginRight:ge&&Rt?8:0},children:[v.jsxs("div",{ref:rt,className:gn.ATreeBody,children:[pe.length===0?F?v.jsx(CF,{text:fe["Loading Contents..."]}):C:Y,pe.map((st,St)=>v.jsx($,{isEqual:Me,indents:[],extIndents:k,item:st,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Ze,et],useSelect:[xe,Se],useSearch:[be,Le],onDragStart:_e,onDragOver:te,onDragEnd:tt,showCheckbox:p,icons:T,iconWidth:m,isSelectMulti:b,isDraggable:_,isParentCheckHovered:b&&vt,ContentRenderer:j,TreeItemRenderer:$,RightStickyAddon:Z,resources:fe,containerRef:Ve,TreeItemStyle:X,TreeItemClassName:ne,hoverdItem:kt,onMouseOver:tr,onMouseLeave:Xe,searchItemClassName:de,searchItemStyle:De,height:ue},`${St}${ut}`))]}),me&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:gn.CoverBorder}),v.jsx("div",{className:gn.InsertBorder,style:{"--InsertBorder_height":`${ue}px`,height:Rt?Ot:"100%"}})]})]})})]})},xF=r=>{const{item:e}=r,t={};return rr.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function SF(r,e){return rr.some(e,(t,n)=>{var i;return(i=rr.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const CF=r=>{const{text:e}=r;return v.jsxs(An,{className:Ne.clsx(gn.Loader,"NoSelect"),children:[v.jsx(Br,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(ix,{text:e})]})};var Qg,i_;function cf(){return i_||(i_=1,Qg=TypeError),Qg}const wF={},AF=Object.freeze(Object.defineProperty({__proto__:null,default:wF},Symbol.toStringTag,{value:"Module"})),TF=g4(AF);var e1,o_;function Rh(){if(o_)return e1;o_=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,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,f=i&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype,m=p?WeakMap.prototype.has:null,T=typeof WeakSet=="function"&&WeakSet.prototype,k=T?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,x=b?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,I=Object.prototype.toString,w=Function.prototype.toString,C=String.prototype.match,D=String.prototype.slice,O=String.prototype.replace,F=String.prototype.toUpperCase,j=String.prototype.toLowerCase,$=RegExp.prototype.test,Z=Array.prototype.concat,ie=Array.prototype.join,Y=Array.prototype.slice,se=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,J=Object.getOwnPropertySymbols,X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ge=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ne||!0)?Symbol.toStringTag:null,me=Object.prototype.propertyIsEnumerable,ve=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(_e){return _e.__proto__}:null);function de(_e,te){if(_e===1/0||_e===-1/0||_e!==_e||_e&&_e>-1e3&&_e<1e3||$.call(/e/,te))return te;var tt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof _e=="number"){var ut=_e<0?-se(-_e):se(_e);if(ut!==_e){var qt=String(ut),kt=D.call(te,qt.length+1);return O.call(qt,tt,"$&_")+"."+O.call(O.call(kt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(te,tt,"$&_")}var De=TF,ue=De.custom,le=$e(ue)?ue:null,fe={__proto__:null,double:'"',single:"'"},Me={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};e1=function _e(te,tt,ut,qt){var kt=tt||{};if(ht(kt,"quoteStyle")&&!ht(fe,kt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ht(kt,"maxStringLength")&&(typeof kt.maxStringLength=="number"?kt.maxStringLength<0&&kt.maxStringLength!==1/0:kt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Mt=ht(kt,"customInspect")?kt.customInspect:!0;if(typeof Mt!="boolean"&&Mt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ht(kt,"indent")&&kt.indent!==null&&kt.indent!==" "&&!(parseInt(kt.indent,10)===kt.indent&&kt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ht(kt,"numericSeparator")&&typeof kt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tr=kt.numericSeparator;if(typeof te>"u")return"undefined";if(te===null)return"null";if(typeof te=="boolean")return te?"true":"false";if(typeof te=="string")return xt(te,kt);if(typeof te=="number"){if(te===0)return 1/0/te>0?"0":"-0";var Xe=String(te);return tr?de(te,Xe):Xe}if(typeof te=="bigint"){var rt=String(te)+"n";return tr?de(te,rt):rt}var Rt=typeof kt.depth>"u"?5:kt.depth;if(typeof ut>"u"&&(ut=0),ut>=Rt&&Rt>0&&typeof te=="object")return ze(te)?"[Array]":"[Object]";var Ht=dr(kt,ut);if(typeof qt>"u")qt=[];else if(He(qt,te)>=0)return"[Circular]";function Ot(Zt,ir,Sr){if(ir&&(qt=Y.call(qt),qt.push(ir)),Sr){var nr={depth:kt.depth};return ht(kt,"quoteStyle")&&(nr.quoteStyle=kt.quoteStyle),_e(Zt,nr,ut+1,qt)}return _e(Zt,kt,ut+1,qt)}if(typeof te=="function"&&!et(te)){var Xt=Oe(te),Or=Mr(te,Ot);return"[Function"+(Xt?": "+Xt:" (anonymous)")+"]"+(Or.length>0?" { "+ie.call(Or,", ")+" }":"")}if($e(te)){var st=ne?O.call(String(te),/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(te);return typeof te=="object"&&!ne?At(st):st}if(Ke(te)){for(var St="<"+j.call(String(te.nodeName)),pt=te.attributes||[],Bt=0;Bt<pt.length;Bt++)St+=" "+pt[Bt].name+"="+Ve(pe(pt[Bt].value),"double",kt);return St+=">",te.childNodes&&te.childNodes.length&&(St+="..."),St+="</"+j.call(String(te.nodeName))+">",St}if(ze(te)){if(te.length===0)return"[]";var gr=Mr(te,Ot);return Ht&&!Dt(gr)?"["+Er(gr,Ht)+"]":"[ "+ie.call(gr,", ")+" ]"}if(xe(te)){var re=Mr(te,Ot);return!("cause"in Error.prototype)&&"cause"in te&&!me.call(te,"cause")?"{ ["+String(te)+"] "+ie.call(Z.call("[cause]: "+Ot(te.cause),re),", ")+" }":re.length===0?"["+String(te)+"]":"{ ["+String(te)+"] "+ie.call(re,", ")+" }"}if(typeof te=="object"&&Mt){if(le&&typeof te[le]=="function"&&De)return De(te,{depth:Rt-ut});if(Mt!=="symbol"&&typeof te.inspect=="function")return te.inspect()}if(wt(te)){var Ue=[];return n&&n.call(te,function(Zt,ir){Ue.push(Ot(ir,te,!0)+" => "+Ot(Zt,te))}),Lt("Map",t.call(te),Ue,Ht)}if(Tt(te)){var Re=[];return f&&f.call(te,function(Zt){Re.push(Ot(Zt,te))}),Lt("Set",u.call(te),Re,Ht)}if(_t(te))return Be("WeakMap");if(Pe(te))return Be("WeakSet");if(vt(te))return Be("WeakRef");if(be(te))return At(Ot(Number(te)));if(bt(te))return At(Ot(q.call(te)));if(Le(te))return At(_.call(te));if(Se(te))return At(Ot(String(te)));if(typeof window<"u"&&te===window)return"{ [object Window] }";if(typeof globalThis<"u"&&te===globalThis||typeof xi<"u"&&te===xi)return"{ [object globalThis] }";if(!Ze(te)&&!et(te)){var nt=Mr(te,Ot),at=ve?ve(te)===Object.prototype:te instanceof Object||te.constructor===Object,Et=te instanceof Object?"":"null prototype",lt=!at&&ge&&Object(te)===te&&ge in te?D.call(mt(te),8,-1):Et?"Object":"",zt=at||typeof te.constructor!="function"?"":te.constructor.name?te.constructor.name+" ":"",ar=zt+(lt||Et?"["+ie.call(Z.call([],lt||[],Et||[]),": ")+"] ":"");return nt.length===0?ar+"{}":Ht?ar+"{"+Er(nt,Ht)+"}":ar+"{ "+ie.call(nt,", ")+" }"}return String(te)};function Ve(_e,te,tt){var ut=tt.quoteStyle||te,qt=fe[ut];return qt+_e+qt}function pe(_e){return O.call(String(_e),/"/g,"&quot;")}function ke(_e){return!ge||!(typeof _e=="object"&&(ge in _e||typeof _e[ge]<"u"))}function ze(_e){return mt(_e)==="[object Array]"&&ke(_e)}function Ze(_e){return mt(_e)==="[object Date]"&&ke(_e)}function et(_e){return mt(_e)==="[object RegExp]"&&ke(_e)}function xe(_e){return mt(_e)==="[object Error]"&&ke(_e)}function Se(_e){return mt(_e)==="[object String]"&&ke(_e)}function be(_e){return mt(_e)==="[object Number]"&&ke(_e)}function Le(_e){return mt(_e)==="[object Boolean]"&&ke(_e)}function $e(_e){if(ne)return _e&&typeof _e=="object"&&_e instanceof Symbol;if(typeof _e=="symbol")return!0;if(!_e||typeof _e!="object"||!X)return!1;try{return X.call(_e),!0}catch{}return!1}function bt(_e){if(!_e||typeof _e!="object"||!q)return!1;try{return q.call(_e),!0}catch{}return!1}var Ge=Object.prototype.hasOwnProperty||function(_e){return _e in this};function ht(_e,te){return Ge.call(_e,te)}function mt(_e){return I.call(_e)}function Oe(_e){if(_e.name)return _e.name;var te=C.call(w.call(_e),/^function\s*([\w$]+)/);return te?te[1]:null}function He(_e,te){if(_e.indexOf)return _e.indexOf(te);for(var tt=0,ut=_e.length;tt<ut;tt++)if(_e[tt]===te)return tt;return-1}function wt(_e){if(!t||!_e||typeof _e!="object")return!1;try{t.call(_e);try{u.call(_e)}catch{return!0}return _e instanceof Map}catch{}return!1}function _t(_e){if(!m||!_e||typeof _e!="object")return!1;try{m.call(_e,m);try{k.call(_e,k)}catch{return!0}return _e instanceof WeakMap}catch{}return!1}function vt(_e){if(!x||!_e||typeof _e!="object")return!1;try{return x.call(_e),!0}catch{}return!1}function Tt(_e){if(!u||!_e||typeof _e!="object")return!1;try{u.call(_e);try{t.call(_e)}catch{return!0}return _e instanceof Set}catch{}return!1}function Pe(_e){if(!k||!_e||typeof _e!="object")return!1;try{k.call(_e,k);try{m.call(_e,m)}catch{return!0}return _e instanceof WeakSet}catch{}return!1}function Ke(_e){return!_e||typeof _e!="object"?!1:typeof HTMLElement<"u"&&_e instanceof HTMLElement?!0:typeof _e.nodeName=="string"&&typeof _e.getAttribute=="function"}function xt(_e,te){if(_e.length>te.maxStringLength){var tt=_e.length-te.maxStringLength,ut="... "+tt+" more character"+(tt>1?"s":"");return xt(D.call(_e,0,te.maxStringLength),te)+ut}var qt=Me[te.quoteStyle||"single"];qt.lastIndex=0;var kt=O.call(O.call(_e,qt,"\\$1"),/[\x00-\x1f]/g,jt);return Ve(kt,"single",te)}function jt(_e){var te=_e.charCodeAt(0),tt={8:"b",9:"t",10:"n",12:"f",13:"r"}[te];return tt?"\\"+tt:"\\x"+(te<16?"0":"")+F.call(te.toString(16))}function At(_e){return"Object("+_e+")"}function Be(_e){return _e+" { ? }"}function Lt(_e,te,tt,ut){var qt=ut?Er(tt,ut):ie.call(tt,", ");return _e+" ("+te+") {"+qt+"}"}function Dt(_e){for(var te=0;te<_e.length;te++)if(He(_e[te],`
355
+ `)),Object.keys(Gr).length>0&&rt.formatText(0,Wr.length,Gr);const mn=Math.min(lt.index+zi.getCharLength(Et),Wr.length);rt.setSelection(mn,0),Ht=Wr}else Ht=nr})},Ue=at=>{(at.inputType==="insertLineBreak"||at.inputType==="insertText"&&at.data&&Kf.LINE_BREAK.test(at.data))&&at.preventDefault()},Re=()=>st(gr),nt=qt(rt.root,[{type:"keydown",handler:Bt},{type:"paste",handler:re},{type:"beforeinput",handler:Ue}]);rt.on("text-change",Re),St.push(()=>{rt.off("text-change",Re),Ot&&window.cancelAnimationFrame(Ot),nt()}),st(gr)}else{const Bt=()=>{const at=rt.getText();if(zi.getCharLength(at)-1<=Y)return;const lt=rt.getSelection(),zt=rt.getContents();Xt=lt?lt.index:0;let ar=0,Zt=0;for(const Sr of zt.ops||[])if(typeof Sr.insert=="string"){const nr=Array.from(Sr.insert);for(const Wr of nr){if(ar>=Y)break;ar++,Zt+=Wr.length}if(ar>=Y)break}else Sr.insert&&(ar+=1);const ir=at.substring(0,Zt);rt.setText(ir),rt.setSelection(Math.min(Xt,ir.length),0)},gr=(at,Et)=>{const lt=rt.getSelection();if(!lt)return!0;const zt=rt.getText(),ar=zi.getCharLength(zt)-1,Zt=lt.length>0?zi.getCharLength(zt.substring(lt.index,lt.index+lt.length)):0,ir=Y-(ar-Zt);if(zi.getCharLength(Et)<=ir)return!0;if(at.preventDefault(),at.type==="paste"){const nr=lt.index,Wr=Array.from(Et).slice(0,ir).join(""),Gr=new Gt;lt.length?Gr.retain(nr).delete(lt.length):Gr.retain(nr),Gr.insert(Wr),rt.updateContents(Gr,Ye.sources.USER),requestAnimationFrame(()=>{const mn=nr+zi.getCharLength(Wr);mn<=rt.getLength()&&rt.setSelection(mn,0)})}return!1},re=()=>st(Bt),Ue=at=>{at.inputType.startsWith("insert")&&gr(at,at.data||"")},Re=at=>{const Et=pt(at.clipboardData);Et&&gr(at,Et)},nt=qt(rt.root,[{type:"beforeinput",handler:Ue,options:{capture:!0}},{type:"paste",handler:Re,options:{capture:!0}}]);rt.on("text-change",re),St.push(()=>{rt.off("text-change",re),Ot&&window.cancelAnimationFrame(Ot),nt()})}return()=>St.forEach(Bt=>Bt())},[Y,be,e,qt]),tr=S.useCallback(Xe=>{typeof i=="function"?i(Xe):i&&(i.current=Xe),Xe&&(kt(Xe),Mt(Xe))},[i,kt,Mt]);return v.jsx(ic,{helperText:b,wrapType:I,labelProps:{..._,style:{minHeight:x?20:void 0,marginBottom:x?4:0,..._==null?void 0:_.style}},errorMessage:t,label:v.jsxs(An,{style:{gap:4},children:[x,!Y&&ie==="Top"&&xt]}),wrapProps:{...k,className:Ne.clsx(k==null?void 0:k.className,!Le&&qn.AEditorWrapper),style:{...k==null?void 0:k.style,height:$e}},children:v.jsxs(Ur,{...J,className:Ne.clsx(J.className,qn.AEditorContainer,Be&&"NoTransition"),style:{...w,height:bt,minHeight:ht},children:[v.jsx(kh,{...T,ref:tr,className:Ne.clsx(T==null?void 0:T.className,qn.AEditor,qn[mt],be&&"Title",Be&&"NoTransition"),formats:be?X.FORMAT_TITLE:X.FORMAT_DEFAULT,modules:jt,placeholder:f,readOnly:ne,theme:"snow",value:vt,style:{...T==null?void 0:T.style,maxHeight:Ge?Ge+de:void 0,"--icon-size":`${j==="Med"?18:24}px`,"--editor-padding":be?"8px 12px":"12px","--toolbar-padding":`${te}px`,"--content-height":be?"34px":fe?`${fe}px`:"100%","--content-max-height":Ge?`${Ge}px`:"100%","--default-text":`'${sn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(js.renderToString(v.jsx(Br,{icon:"EditorArrow"})))}`,"--title-color-picker-width":be?"780px":"142px"},onChange:_e}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:Ze,className:Ne.clsx(qn.Resizer,Be&&"NoTransition"),style:{height:ge,bottom:u&&!ne?le:0},onMouseDown:Mr}),ke&&v.jsx("div",{className:Ne.clsx(qn.Indicator,"NoSelect","Label1",Be&&"NoTransition"),style:{height:ge,bottom:u&&!ne?le:0},children:`${Math.round(fe)}px`})]}),v.jsx("div",{className:Ne.clsx(qn.LimitContainer,"NoSelect",Be&&"NoTransition"),style:{marginTop:ue,minHeight:De,display:!Y&&ie==="Bottom"?"flex":"none"},children:xt})]})})},(r,e)=>r.errorMessage===e.errorMessage&&r.type===e.type&&r.useValue===e.useValue&&r.useError===e.useError&&r.placeholder===e.placeholder&&r.readOnly===e.readOnly&&r.maxLength===e.maxLength&&r.contentHeight===e.contentHeight&&r.minHeight===e.minHeight&&r.maxHeight===e.maxHeight&&r.toolbarSize===e.toolbarSize&&r.toolbarType===e.toolbarType&&r.limitPosition===e.limitPosition&&r.editorClassName===e.editorClassName&&r.editorStyle===e.editorStyle),jN=S.memo(({calculateSize:r,error:e,htmlDelta:t,limit:n,useError:i,isReadonly:l})=>{if(!i||l)return null;const u=r(t),f=e||u>n;return v.jsxs(wa,{className:qn.Limit,children:["(",v.jsx("span",{className:f?qn.Error:void 0,children:Qc(u)})," / ",Qc(n),")"]})});function lh(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=lh(t.children,e);if(n)return n}}function gd(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&gd(t.children,e)}function wS(r,e){Array.isArray(r)||(r=[r]);const t=[];return gd(r,(n,i)=>t.push(e(n,i))),t}function AS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!AS(t.children,e))return!1}return!0}function BN(r,e){Array.isArray(r)||(r=[r]);const t=[];return gd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function qN(r){Array.isArray(r)||(r=[r]);let e=0;return gd(r,()=>e++),e}function HN(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=lh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(p=>n(p,e))}),l=lh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(p=>n(p,t))});if(i===void 0&&l===void 0){const u=r.findIndex(p=>n(p,e)),f=r.findIndex(p=>n(p,t));return r.splice(u,1),r.splice(f,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(p=>n(p,e)),f=i.children.findIndex(p=>n(p,t));return u===void 0||f===void 0?null:(i.children.splice(u,1),i.children.splice(f,0,e),i.children=[...i.children],[...r])}return null}function zN(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function $N(r,e,t){Array.isArray(r)||(r=[r]);const n=wS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(p=>t(p,u)))continue;i.push(u);const f=n.find(p=>{var m;return(m=p.children)==null?void 0:m.some(T=>t(T,u))});f&&l.push(f)}return i}const il={find:lh,forEach:gd,map:wS,every:AS,filter:BN,length:qN,replace:HN,descendants:zN,ancestors:$N},UN="_AWrap_1qho8_1",WN="_AContainer_1qho8_10",VN="_ATree_1qho8_18",GN="_ATreeBody_1qho8_30",ZN="_CoverBorder_1qho8_36",KN="_InsertBorder_1qho8_45",YN="_ATreeHeader_1qho8_76",XN="_ATreeBodyHeader_1qho8_82",JN="_ATreeBodyHeaderResources_1qho8_92",QN="_ATreeItem_1qho8_98",eF="_IsSelectUsed_1qho8_114",tF="_IsSelected_1qho8_117",rF="_IsSearchSelected_1qho8_122",nF="_IsHovered_1qho8_133",iF="_CheckBox_1qho8_137",oF="_Indents_1qho8_149",sF="_ExpandIcon_1qho8_156",aF="_Content_1qho8_168",lF="_RightSticky_1qho8_177",cF="_SearchInputWrap_1qho8_187",uF="_SearchInput_1qho8_187",fF="_RightAddon_1qho8_199",dF="_RightAddonIcon_1qho8_210",hF="_Loader_1qho8_217",gn={AWrap:UN,AContainer:WN,ATree:VN,ATreeBody:GN,CoverBorder:ZN,InsertBorder:KN,ATreeHeader:YN,ATreeBodyHeader:XN,ATreeBodyHeaderResources:JN,ATreeItem:QN,IsSelectUsed:eF,IsSelected:tF,IsSearchSelected:rF,IsHovered:nF,CheckBox:iF,Indents:oF,ExpandIcon:sF,Content:aF,RightSticky:lF,SearchInputWrap:cF,SearchInput:uF,RightAddon:fF,RightAddonIcon:dF,Loader:hF},pF=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:f,useExpand:p,useSelect:m,useSearch:T,onDragStart:k,onDragOver:b,onDragEnd:x,showCheckbox:_,icons:I,iconWidth:w,isSelectMulti:C,isDraggable:D,isParentCheckHovered:O,hoverdItem:N,onMouseOver:j,onMouseLeave:$,ContentRenderer:Z,TreeItemRenderer:ie,RightStickyAddon:Y,resources:se,containerRef:q,TreeItemStyle:J,TreeItemClassName:X,searchItemStyle:ne,searchItemClassName:ge,height:me}=r,{children:ve}=S.useMemo(()=>t,[t]),[de,De]=S.useMemo(()=>p,[p]),[ue,le]=S.useMemo(()=>m,[m]),[fe,Me]=S.useMemo(()=>T,[T]),Ve=S.useMemo(()=>i?i(t):!1,[i,t]),pe=S.useMemo(()=>!n||l?l:n(t),[n,l,t]),ke=S.useMemo(()=>de.some(Be=>e(Be,t)),[de,e,t]),ze=S.useMemo(()=>!ve||ve.length<1?"noChild":ke?"expanded":"collapsed",[ve,ke]),Ze=S.useMemo(()=>{const Be=I[ze];return mm.includes(Be)?v.jsx(Br,{style:{width:w,height:w},icon:Be}):Be},[I,w,ze]),et=S.useCallback(Be=>{!De||ze==="noChild"||(De(ke?de.filter(Lt=>!e(Lt,t)):[...de,t]),Be.stopPropagation())},[De,de,ke,t,e,ze]),xe=S.useMemo(()=>ue.some(Be=>e(Be,t)),[ue,e,t]),Se=S.useCallback(()=>{!le||pe||(le(C?xe?ue.filter(Be=>!e(Be,t)):[...ue,t]:[t]),fe&&Me&&fe.items.some(Be=>e(Be,t))&&Me({...fe,item:t}))},[C,pe,xe,fe,Me,le,e,ue,t]),be=S.useMemo(()=>fe==null?void 0:fe.items.some(Be=>e(Be,t)),[fe,e,t]),Le=S.useMemo(()=>be&&(fe==null?void 0:fe.item)&&e(fe.item,t),[be,fe,e,t]),$e=S.useRef(null);S.useEffect(()=>{setTimeout(()=>{if(Le&&$e.current&&q.current){const{top:Be,bottom:Lt}=$e.current.getBoundingClientRect(),{top:Dt,bottom:dr}=q.current.getBoundingClientRect();(Be<Dt||Lt>dr)&&$e.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[q,Le]);const[bt,Ge]=S.useState(!1),ht=S.useCallback(()=>!pe&&Ge(!0),[pe]),mt=S.useCallback(()=>!pe&&Ge(!1),[pe]),Oe=S.useMemo(()=>il.map(t,Be=>Be).filter(Be=>!(n!=null&&n(Be))&&!(i!=null&&i(Be))),[n,i,t]),He=S.useMemo(()=>!_||!C?!1:xe&&Oe.some(Be=>ue.some(Lt=>e(Be,Lt)))&&Oe.some(Be=>!ue.some(Lt=>e(Be,Lt))),[_,C,xe,Oe,e,ue]),wt=S.useMemo(()=>_?C?Oe.every(Be=>ue.some(Lt=>e(Be,Lt))):ue.some(Be=>e(Be,t)):!1,[_,C,Oe,t,e,ue]),_t=S.useCallback(()=>{if(!(!le||pe))if(C)if(xe){const Be=ue.filter(Lt=>!(i!=null&&i(Lt))&&!(n!=null&&n(Lt))&&Oe.some(Dt=>e(Dt,Lt)));Be.length>0&&le(ue.filter(Lt=>!Be.some(Dt=>e(Lt,Dt))))}else{const Be=Oe.filter(Lt=>!(i!=null&&i(Lt))&&!(n!=null&&n(Lt))&&!ue.some(Dt=>e(Dt,Lt)));Be.length>0&&le([...ue,...Be])}else le([t])},[pe,n,i,C,le,e,xe,ue,Oe,t]),vt=S.useCallback(Be=>{pe||_t(),Be.stopPropagation()},[pe,_t]),Tt=S.useMemo(()=>{if(!_||!C||pe)return"";if(xe){const Lt=ue.filter(Dt=>!(i!=null&&i(Dt))&&!(n!=null&&n(Dt))&&Oe.some(dr=>e(dr,Dt)));if(Lt.length>0)return se["deselect n"](Lt.length)}const Be=Oe.filter(Lt=>!(i!=null&&i(Lt))&&!(n!=null&&n(Lt))&&!ue.some(Dt=>e(Dt,Lt)));return se["select n"](Be.length)},[n,i,se,pe,_,C,xe,Oe,e,ue]),Pe=S.useMemo(()=>Ir.getContent(Y,r),[Y,r]),Ke=S.useMemo(()=>Ir.getContent(J,r),[r,J]),xt=S.useMemo(()=>Ir.getContent(X,r),[r,X]),jt=S.useMemo(()=>Ir.getContent(ge,r),[r,ge]),At=S.useMemo(()=>Ir.getContent(ne,r),[r,ne]);return v.jsxs(S.Fragment,{children:[v.jsxs(Ur,{className:Ne.clsx(gn.ATreeItem,xe&&gn.IsSelected,!pe&&(bt||O)&&gn.IsHovered,be&&gn.IsSearched,Le&&(jt||gn.IsSearchSelected),!Ve&&gn.IsSelectUsed,"NoSelect",xt),style:{...Ke,...Le&&At,"--ATreeItem_height":`${me}px`},draggable:D,onDragStart:()=>k==null?void 0:k(t),onDragEnter:Be=>b==null?void 0:b(Be,t),onDragEnd:Be=>x==null?void 0:x(Be,t),onClick:Se,abaseRef:$e,isDisabled:pe,onMouseOver:Be=>j==null?void 0:j(Be,t),onMouseLeave:Be=>$==null?void 0:$(Be,t),children:[_&&v.jsx(Qu,{style:{visibility:pe||Ve?"hidden":"visible",zIndex:pe||Ve?0:2},className:gn.CheckBox,useCheck:[+wt,_t],onClick:vt,isIndeterminate:He,onMouseOver:ht,onMouseOut:mt,tooltip:Tt,isDisabled:pe}),v.jsx("div",{className:gn.Indents,style:{paddingLeft:_?0:r.icons.noChild?12:0},children:u.map((Be,Lt)=>{const Dt=Lt===u.length-1;return v.jsx(V2,{value:Be,map:{Collapsed:f?f({iconWidth:w}).collapsed:v.jsx(mF,{iconWidth:w}),Expanded:f?f({iconWidth:w,isLast:Dt}).expanded:v.jsx(gF,{iconWidth:w,isLast:Dt}),IsLast:f?f({iconWidth:w}).isLast:v.jsx(vF,{iconWidth:w})}},Lt)})}),Ze&&v.jsx("div",{className:gn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:et,children:Ze}),v.jsx("div",{className:Ne.clsx(gn.Content,"NoSelect"),children:v.jsx(Z,{isEqual:e,item:t,indents:u,extIndents:f,useExpand:p,useSelect:m,useSearch:T,onDragStart:k,onDragOver:b,onDragEnd:x,showCheckbox:_,icons:I,iconWidth:w,isSelectMulti:C,isDraggable:D,isParentCheckHovered:C&&(bt||O),hoverdItem:N,onMouseOver:j,onMouseLeave:$,ContentRenderer:Z,TreeItemRenderer:ie,RightStickyAddon:Y,resources:se,containerRef:q,TreeItemStyle:J,TreeItemClassName:X,searchItemClassName:jt,searchItemStyle:ne,height:me})}),Pe&&v.jsx("div",{className:gn.RightSticky,children:Pe})]}),ke&&(ve==null?void 0:ve.map((Be,Lt)=>v.jsx(ie,{isEqual:e,item:Be,selectDisabled:n,selectUnused:i,indents:[...u.map(Dt=>Dt==="IsLast"?"Collapsed":Dt),Lt===ve.length-1?"IsLast":"Expanded"],extIndents:f,ContentRenderer:Z,useExpand:p,useSelect:m,useSearch:T,onDragStart:k,onDragOver:b,onDragEnd:x,showCheckbox:_,icons:I,iconWidth:w,isSelectMulti:C,isDraggable:D,isParentCheckHovered:C&&(bt||O),hoverdItem:N,onMouseOver:j,onMouseLeave:$,TreeItemRenderer:ie,RightStickyAddon:Y,resources:se,containerRef:q,TreeItemStyle:J,TreeItemClassName:X,searchItemClassName:jt,searchItemStyle:ne,height:me},Lt)))]})},gF=({iconWidth:r,isLast:e})=>v.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&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),mF=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),vF=({iconWidth:r})=>v.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)"}}),yF=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:f,isLoading:p,resources:m,maxLength:T,autoFocus:k}=r,b=S.useCallback(I=>{I.key==="Enter"?u():I.key==="ArrowDown"?l():I.key==="ArrowUp"&&i(),I.preventDefault(),I.stopPropagation()},[l,u,i]),x=S.useCallback(I=>{n(I)},[n]),_=S.useMemo(()=>f||p?-1:void 0,[f,p]);return v.jsx(oc,{className:gn.SearchInput,wrapProps:{className:gn.SearchInputWrap},isDisabled:f,tabIndex:_,useValue:[(t==null?void 0:t.keyword)??"",x],onKeyDown:b,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(bF,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:T,autoFocus:k})},bF=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,f=S.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(_=>t.item&&e(_,t.item))+1,[t,e]),p=S.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=S.useMemo(()=>f<2,[f]),T=S.useMemo(()=>f>=p,[f,p]),k=S.useCallback(_=>{_.stopPropagation(),!m&&n()},[n,m]),b=S.useCallback(_=>{_.stopPropagation(),!T&&i()},[i,T]),x=S.useCallback(_=>{_.stopPropagation(),l()},[l]);return v.jsx("div",{className:Ne.clsx(gn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[f,"/",p,v.jsx(Ur,{onClick:k,isDisabled:m,children:v.jsx(Br,{className:gn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:b,isDisabled:T,children:v.jsx(Br,{className:gn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(pi,{type:"Raw",className:gn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:x,tooltip:u["Search(Button)"]})})},_F=r=>{var Or;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:f,showCheckbox:p,iconWidth:m=24,icons:T={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:k,isSelectMulti:b=!1,noSearch:x=!1,isDraggable:_,noSyncSearchSelect:I=!1,actionRef:w,placeholder:C,searchPredicate:D=SF,isDisabled:O,isLoading:N,ContentRenderer:j=xF,TreeItemRenderer:$=pF,RightStickyAddon:Z,TopRightAddon:ie,TreeTopAddon:Y,resources:se,maxLength:q,autoFocus:J,TreeItemStyle:X,TreeItemClassName:ne,OverflowPadding:ge,insertBorder:me,width:ve,searchItemClassName:de,searchItemStyle:De,height:ue=40,...le}=r,fe=S.useMemo(()=>({...sn.ATree,...se}),[se]),Me=S.useCallback((st,St)=>e!==void 0?Array.isArray(e)?e.every(pt=>ol.isEqual(st[pt],St[pt])):ol.isEqual(st[e],St[e]):ol.isEqual(st,St),[e]),Ve=S.useRef(null),[pe,ke]=dn(i,[]),ze=S.useMemo(()=>il.map(pe,st=>st),[pe]),[Ze,et]=dn(l,[]),[xe,Se]=dn(u,[]),[be,Le]=dn(f,void 0),$e=S.useCallback(st=>{if(O||!et||Ze.some(Bt=>Me(Bt,st)))return;const St=[];let pt=st;for(;pt;){const Bt=pt;Ze.find(gr=>Me(gr,Bt))||St.push(Bt),pt=ze.find(gr=>{var re;return(re=gr.children)==null?void 0:re.some(Ue=>Me(Ue,Bt))})}et([...Ze,...St])},[Ze,O,Me,et,ze]),bt=S.useCallback(()=>{!et||O||et([...ze])},[ze,O,et]),Ge=S.useCallback(()=>{!et||O||et([])},[et,O]),ht=S.useCallback(st=>{!Se||O||n!=null&&n(st)||(Se([st]),$e(st))},[Se,O,n,$e]),mt=S.useCallback(st=>{if(!Le||O)return;if(!st||x){Le(void 0),I||Se==null||Se([]);return}const St=il.filter(pe,Bt=>D(st,Bt));let pt;if(St.find(Bt=>(be==null?void 0:be.item)&&Me(Bt,be.item))?pt=be==null?void 0:be.item:St.length>0&&(pt=St[0]),Le({keyword:st,items:St,item:pt}),pt&&$e(pt),Se&&!I)if(b)Se(St);else{const Bt=St.find(gr=>pt&&Me(gr,pt));Se(Bt?[Bt]:[])}},[pe,O,Me,D,Le,Se,$e,I,x,b,be]),Oe=S.useRef(!1);S.useEffect(()=>{Oe.current=!0},[pe]),S.useEffect(()=>{be&&Oe.current&&(mt(be.keyword),Oe.current=!1)},[mt,be]);const He=S.useCallback(()=>{if(!be||!Le||O)return;let st=be.items.findIndex(St=>be.item&&Me(St,be.item))-1;st<0||(Le({...be,item:be.items[st]}),$e(be.items[st]),I||ht(be.items[st]))},[be,$e,Le,O,ht,Me,I]),wt=S.useCallback(()=>{if(!be||!Le||O)return;let st=be.items.findIndex(St=>be.item&&Me(St,be.item))+1;st>=be.items.length||(Le({...be,item:be.items[st]}),$e(be.items[st]),I||ht(be.items[st]))},[be,$e,O,Le,ht,Me,I]),_t=S.useCallback(()=>{if(!be||!Le||O)return;let st=be.items.findIndex(pt=>be.item&&Me(pt,be.item));if(!I||n!=null&&n(be.items[st])){wt();return}if(xe.some(pt=>be.item&&Me(pt,be.item))){let pt=st+1;const Bt=be.items[pt];if(pt>=be.items.length)return;Le({...be,item:Bt}),ht(Bt)}else ht(be.items[st])},[be,Le,O,xe,I,wt,Me,ht,n]),[vt,Tt]=S.useState(!1),Pe=S.useCallback(()=>Tt(!0),[]),Ke=S.useCallback(()=>Tt(!1),[]),xt=S.useMemo(()=>n?il.map(pe,st=>st).filter(st=>!n(st)):t?il.map(pe,st=>st).filter(st=>!t(st)):il.map(pe,st=>st),[n,t,pe]),jt=S.useMemo(()=>!p||!b?!1:xe.length>0&&xt.length>xe.length,[p,b,xe,xt]),At=S.useMemo(()=>!p||!b?!1:xe.length>0&&xt.length===xe.length,[p,b,xe,xt]),Be=S.useCallback(()=>{if(!Se||!b||O)return;const st=xe.filter(St=>!(n!=null&&n(St))&&!(t!=null&&t(St))&&xt.some(pt=>Me(pt,St)));if(st.length>0)Se(xe.filter(St=>!st.some(pt=>Me(St,pt))));else{const St=xt.filter(pt=>!(n!=null&&n(pt))&&!(t!=null&&t(pt))&&!xe.some(Bt=>Me(Bt,pt)));St.length>0&&Se([...xe,...St])}},[b,O,n,t,Se,xe,xt,Me]),Lt=S.useMemo(()=>{if(!p||!b||O)return"";const st=xe.filter(St=>!(n!=null&&n(St))&&!(t!=null&&t(St))&&xt.some(pt=>Me(pt,St)));if(st.length>0)return fe["deselect n"](st.length);{const St=xt.filter(pt=>!(n!=null&&n(pt))&&!(t!=null&&t(pt))&&!xe.some(Bt=>Me(Bt,pt)));return fe["select n"](St.length)}},[n,t,O,fe,p,b,xt,xe,Me]),[Dt,dr]=S.useState(null),[Er,Mr]=S.useState(null),_e=S.useCallback(st=>{!_||O||dr(st)},[O,_]),te=S.useCallback((st,St)=>{if(!_||O||!Dt||(st.preventDefault(),st.stopPropagation(),Mr(St),!ke))return;const pt=il.replace(pe,Dt,St,Me);pt&&ke(pt)},[_,pe,Dt,O,ke,Me]),tt=S.useCallback(()=>{if(!_||O||!Dt||!Er||!ke||Me(Dt,Er))return;const st=il.replace(pe,Dt,Er,Me);st&&(ke(st),dr(null))},[_,ke,pe,Dt,Er,Me,O]);S.useEffect(()=>{var st;p||(st=Ve.current)==null||st.scrollTo(0,0)},[p,Ve]),S.useEffect(()=>{!b&&xe.length>1&&(Se==null||Se([xe[xe.length-1]]))},[b,Se,xe]),S.useEffect(()=>{w&&(w.current={expandAll:bt,collapseAll:Ge})},[w,bt,Ge]),S.useEffect(()=>{if(!t||!Se)return;const st=xe.filter(St=>!t(St));xe.length!==st.length&&Se(st)},[t,xe,Se]),S.useEffect(()=>{if(!n||!Se)return;const st=xe.filter(St=>!n(St));xe.length!==st.length&&Se(st)},[n,xe,Se]),S.useEffect(()=>{Le&&Le(void 0)},[Le]);const[ut,qt]=S.useState(!1);S.useEffect(()=>{qt(st=>!st)},[pe]);const[kt,Mt]=S.useState(null),tr=S.useCallback((st,St)=>{O||(st.stopPropagation(),st.preventDefault(),Mt(St))},[O]),Xe=S.useCallback((st,St)=>{kt===null||O||Me(St,kt)&&(st.stopPropagation(),st.preventDefault(),Mt(null))},[kt,O,Me]),rt=S.useRef(null),[Rt,Ht]=S.useState(!1),[Ot,Xt]=S.useState((Or=rt.current)==null?void 0:Or.scrollHeight);return S.useEffect(()=>{if(Ze.length<0)return;const st=Ve.current,St=rt.current,pt=st.clientHeight<St.clientHeight;Xt(pt?St.scrollHeight:st.clientHeight),Ht(pt)},[Ze]),v.jsxs(Ur,{...le,isDisabled:O,className:Ne.clsx(le.className,gn.AWrap),children:[(!x||ie)&&v.jsxs(An,{className:gn.ATreeHeader,children:[!x&&v.jsx(yF,{isEqual:Me,searchResult:be,initSearch:mt,searchUp:He,searchDown:wt,searchEnter:_t,isLoading:N,isDisabled:O,resources:fe,maxLength:q,autoFocus:J}),!x&&ie&&v.jsx(bn,{w:8}),ie]}),(!x||ie||p&&b||_)&&v.jsx(Cm,{isLoading:N&&pe.length!==0}),(p&&b||_)&&v.jsxs("div",{className:Ne.clsx(gn.ATreeBodyHeader,"NoSelect"),children:[p&&v.jsx(Qu,{className:gn.CheckBox,useCheck:[+At,()=>Be()],isIndeterminate:jt,onMouseOver:Pe,onMouseOut:Ke,isDisabled:O,tooltip:Lt}),fe.Items,v.jsx(nu,{}),v.jsxs("div",{className:Ne.clsx(gn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Rt?8:0},children:[v.jsx("span",{children:p&&fe["*Click row for single select"]}),v.jsx("span",{children:_&&fe["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Ve,className:Ne.clsx(le.className,gn.AContainer),children:v.jsxs("div",{className:gn.ATree,style:{minWidth:ve||"fit-content",marginRight:ge&&Rt?8:0},children:[v.jsxs("div",{ref:rt,className:gn.ATreeBody,children:[pe.length===0?N?v.jsx(CF,{text:fe["Loading Contents..."]}):C:Y,pe.map((st,St)=>v.jsx($,{isEqual:Me,indents:[],extIndents:k,item:st,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Ze,et],useSelect:[xe,Se],useSearch:[be,Le],onDragStart:_e,onDragOver:te,onDragEnd:tt,showCheckbox:p,icons:T,iconWidth:m,isSelectMulti:b,isDraggable:_,isParentCheckHovered:b&&vt,ContentRenderer:j,TreeItemRenderer:$,RightStickyAddon:Z,resources:fe,containerRef:Ve,TreeItemStyle:X,TreeItemClassName:ne,hoverdItem:kt,onMouseOver:tr,onMouseLeave:Xe,searchItemClassName:de,searchItemStyle:De,height:ue},`${St}${ut}`))]}),me&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:gn.CoverBorder}),v.jsx("div",{className:gn.InsertBorder,style:{"--InsertBorder_height":`${ue}px`,height:Rt?Ot:"100%"}})]})]})})]})},xF=r=>{const{item:e}=r,t={};return rr.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function SF(r,e){return rr.some(e,(t,n)=>{var i;return(i=rr.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const CF=r=>{const{text:e}=r;return v.jsxs(An,{className:Ne.clsx(gn.Loader,"NoSelect"),children:[v.jsx(Br,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(ix,{text:e})]})};var Qg,i_;function cf(){return i_||(i_=1,Qg=TypeError),Qg}const wF={},AF=Object.freeze(Object.defineProperty({__proto__:null,default:wF},Symbol.toStringTag,{value:"Module"})),TF=g4(AF);var e1,o_;function Rh(){if(o_)return e1;o_=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,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,f=i&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype,m=p?WeakMap.prototype.has:null,T=typeof WeakSet=="function"&&WeakSet.prototype,k=T?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,x=b?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,I=Object.prototype.toString,w=Function.prototype.toString,C=String.prototype.match,D=String.prototype.slice,O=String.prototype.replace,N=String.prototype.toUpperCase,j=String.prototype.toLowerCase,$=RegExp.prototype.test,Z=Array.prototype.concat,ie=Array.prototype.join,Y=Array.prototype.slice,se=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,J=Object.getOwnPropertySymbols,X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ge=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ne||!0)?Symbol.toStringTag:null,me=Object.prototype.propertyIsEnumerable,ve=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(_e){return _e.__proto__}:null);function de(_e,te){if(_e===1/0||_e===-1/0||_e!==_e||_e&&_e>-1e3&&_e<1e3||$.call(/e/,te))return te;var tt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof _e=="number"){var ut=_e<0?-se(-_e):se(_e);if(ut!==_e){var qt=String(ut),kt=D.call(te,qt.length+1);return O.call(qt,tt,"$&_")+"."+O.call(O.call(kt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(te,tt,"$&_")}var De=TF,ue=De.custom,le=$e(ue)?ue:null,fe={__proto__:null,double:'"',single:"'"},Me={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};e1=function _e(te,tt,ut,qt){var kt=tt||{};if(ht(kt,"quoteStyle")&&!ht(fe,kt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ht(kt,"maxStringLength")&&(typeof kt.maxStringLength=="number"?kt.maxStringLength<0&&kt.maxStringLength!==1/0:kt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Mt=ht(kt,"customInspect")?kt.customInspect:!0;if(typeof Mt!="boolean"&&Mt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ht(kt,"indent")&&kt.indent!==null&&kt.indent!==" "&&!(parseInt(kt.indent,10)===kt.indent&&kt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ht(kt,"numericSeparator")&&typeof kt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tr=kt.numericSeparator;if(typeof te>"u")return"undefined";if(te===null)return"null";if(typeof te=="boolean")return te?"true":"false";if(typeof te=="string")return xt(te,kt);if(typeof te=="number"){if(te===0)return 1/0/te>0?"0":"-0";var Xe=String(te);return tr?de(te,Xe):Xe}if(typeof te=="bigint"){var rt=String(te)+"n";return tr?de(te,rt):rt}var Rt=typeof kt.depth>"u"?5:kt.depth;if(typeof ut>"u"&&(ut=0),ut>=Rt&&Rt>0&&typeof te=="object")return ze(te)?"[Array]":"[Object]";var Ht=dr(kt,ut);if(typeof qt>"u")qt=[];else if(He(qt,te)>=0)return"[Circular]";function Ot(Zt,ir,Sr){if(ir&&(qt=Y.call(qt),qt.push(ir)),Sr){var nr={depth:kt.depth};return ht(kt,"quoteStyle")&&(nr.quoteStyle=kt.quoteStyle),_e(Zt,nr,ut+1,qt)}return _e(Zt,kt,ut+1,qt)}if(typeof te=="function"&&!et(te)){var Xt=Oe(te),Or=Mr(te,Ot);return"[Function"+(Xt?": "+Xt:" (anonymous)")+"]"+(Or.length>0?" { "+ie.call(Or,", ")+" }":"")}if($e(te)){var st=ne?O.call(String(te),/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(te);return typeof te=="object"&&!ne?At(st):st}if(Ke(te)){for(var St="<"+j.call(String(te.nodeName)),pt=te.attributes||[],Bt=0;Bt<pt.length;Bt++)St+=" "+pt[Bt].name+"="+Ve(pe(pt[Bt].value),"double",kt);return St+=">",te.childNodes&&te.childNodes.length&&(St+="..."),St+="</"+j.call(String(te.nodeName))+">",St}if(ze(te)){if(te.length===0)return"[]";var gr=Mr(te,Ot);return Ht&&!Dt(gr)?"["+Er(gr,Ht)+"]":"[ "+ie.call(gr,", ")+" ]"}if(xe(te)){var re=Mr(te,Ot);return!("cause"in Error.prototype)&&"cause"in te&&!me.call(te,"cause")?"{ ["+String(te)+"] "+ie.call(Z.call("[cause]: "+Ot(te.cause),re),", ")+" }":re.length===0?"["+String(te)+"]":"{ ["+String(te)+"] "+ie.call(re,", ")+" }"}if(typeof te=="object"&&Mt){if(le&&typeof te[le]=="function"&&De)return De(te,{depth:Rt-ut});if(Mt!=="symbol"&&typeof te.inspect=="function")return te.inspect()}if(wt(te)){var Ue=[];return n&&n.call(te,function(Zt,ir){Ue.push(Ot(ir,te,!0)+" => "+Ot(Zt,te))}),Lt("Map",t.call(te),Ue,Ht)}if(Tt(te)){var Re=[];return f&&f.call(te,function(Zt){Re.push(Ot(Zt,te))}),Lt("Set",u.call(te),Re,Ht)}if(_t(te))return Be("WeakMap");if(Pe(te))return Be("WeakSet");if(vt(te))return Be("WeakRef");if(be(te))return At(Ot(Number(te)));if(bt(te))return At(Ot(q.call(te)));if(Le(te))return At(_.call(te));if(Se(te))return At(Ot(String(te)));if(typeof window<"u"&&te===window)return"{ [object Window] }";if(typeof globalThis<"u"&&te===globalThis||typeof xi<"u"&&te===xi)return"{ [object globalThis] }";if(!Ze(te)&&!et(te)){var nt=Mr(te,Ot),at=ve?ve(te)===Object.prototype:te instanceof Object||te.constructor===Object,Et=te instanceof Object?"":"null prototype",lt=!at&&ge&&Object(te)===te&&ge in te?D.call(mt(te),8,-1):Et?"Object":"",zt=at||typeof te.constructor!="function"?"":te.constructor.name?te.constructor.name+" ":"",ar=zt+(lt||Et?"["+ie.call(Z.call([],lt||[],Et||[]),": ")+"] ":"");return nt.length===0?ar+"{}":Ht?ar+"{"+Er(nt,Ht)+"}":ar+"{ "+ie.call(nt,", ")+" }"}return String(te)};function Ve(_e,te,tt){var ut=tt.quoteStyle||te,qt=fe[ut];return qt+_e+qt}function pe(_e){return O.call(String(_e),/"/g,"&quot;")}function ke(_e){return!ge||!(typeof _e=="object"&&(ge in _e||typeof _e[ge]<"u"))}function ze(_e){return mt(_e)==="[object Array]"&&ke(_e)}function Ze(_e){return mt(_e)==="[object Date]"&&ke(_e)}function et(_e){return mt(_e)==="[object RegExp]"&&ke(_e)}function xe(_e){return mt(_e)==="[object Error]"&&ke(_e)}function Se(_e){return mt(_e)==="[object String]"&&ke(_e)}function be(_e){return mt(_e)==="[object Number]"&&ke(_e)}function Le(_e){return mt(_e)==="[object Boolean]"&&ke(_e)}function $e(_e){if(ne)return _e&&typeof _e=="object"&&_e instanceof Symbol;if(typeof _e=="symbol")return!0;if(!_e||typeof _e!="object"||!X)return!1;try{return X.call(_e),!0}catch{}return!1}function bt(_e){if(!_e||typeof _e!="object"||!q)return!1;try{return q.call(_e),!0}catch{}return!1}var Ge=Object.prototype.hasOwnProperty||function(_e){return _e in this};function ht(_e,te){return Ge.call(_e,te)}function mt(_e){return I.call(_e)}function Oe(_e){if(_e.name)return _e.name;var te=C.call(w.call(_e),/^function\s*([\w$]+)/);return te?te[1]:null}function He(_e,te){if(_e.indexOf)return _e.indexOf(te);for(var tt=0,ut=_e.length;tt<ut;tt++)if(_e[tt]===te)return tt;return-1}function wt(_e){if(!t||!_e||typeof _e!="object")return!1;try{t.call(_e);try{u.call(_e)}catch{return!0}return _e instanceof Map}catch{}return!1}function _t(_e){if(!m||!_e||typeof _e!="object")return!1;try{m.call(_e,m);try{k.call(_e,k)}catch{return!0}return _e instanceof WeakMap}catch{}return!1}function vt(_e){if(!x||!_e||typeof _e!="object")return!1;try{return x.call(_e),!0}catch{}return!1}function Tt(_e){if(!u||!_e||typeof _e!="object")return!1;try{u.call(_e);try{t.call(_e)}catch{return!0}return _e instanceof Set}catch{}return!1}function Pe(_e){if(!k||!_e||typeof _e!="object")return!1;try{k.call(_e,k);try{m.call(_e,m)}catch{return!0}return _e instanceof WeakSet}catch{}return!1}function Ke(_e){return!_e||typeof _e!="object"?!1:typeof HTMLElement<"u"&&_e instanceof HTMLElement?!0:typeof _e.nodeName=="string"&&typeof _e.getAttribute=="function"}function xt(_e,te){if(_e.length>te.maxStringLength){var tt=_e.length-te.maxStringLength,ut="... "+tt+" more character"+(tt>1?"s":"");return xt(D.call(_e,0,te.maxStringLength),te)+ut}var qt=Me[te.quoteStyle||"single"];qt.lastIndex=0;var kt=O.call(O.call(_e,qt,"\\$1"),/[\x00-\x1f]/g,jt);return Ve(kt,"single",te)}function jt(_e){var te=_e.charCodeAt(0),tt={8:"b",9:"t",10:"n",12:"f",13:"r"}[te];return tt?"\\"+tt:"\\x"+(te<16?"0":"")+N.call(te.toString(16))}function At(_e){return"Object("+_e+")"}function Be(_e){return _e+" { ? }"}function Lt(_e,te,tt,ut){var qt=ut?Er(tt,ut):ie.call(tt,", ");return _e+" ("+te+") {"+qt+"}"}function Dt(_e){for(var te=0;te<_e.length;te++)if(He(_e[te],`
356
356
  `)>=0)return!1;return!0}function dr(_e,te){var tt;if(_e.indent===" ")tt=" ";else if(typeof _e.indent=="number"&&_e.indent>0)tt=ie.call(Array(_e.indent+1)," ");else return null;return{base:tt,prev:ie.call(Array(te+1),tt)}}function Er(_e,te){if(_e.length===0)return"";var tt=`
357
357
  `+te.prev+te.base;return tt+ie.call(_e,","+tt)+`
358
- `+te.prev}function Mr(_e,te){var tt=ze(_e),ut=[];if(tt){ut.length=_e.length;for(var qt=0;qt<_e.length;qt++)ut[qt]=ht(_e,qt)?te(_e[qt],_e):""}var kt=typeof J=="function"?J(_e):[],Mt;if(ne){Mt={};for(var tr=0;tr<kt.length;tr++)Mt["$"+kt[tr]]=kt[tr]}for(var Xe in _e)ht(_e,Xe)&&(tt&&String(Number(Xe))===Xe&&Xe<_e.length||ne&&Mt["$"+Xe]instanceof Symbol||($.call(/[^\w$]/,Xe)?ut.push(te(Xe,_e)+": "+te(_e[Xe],_e)):ut.push(Xe+": "+te(_e[Xe],_e))));if(typeof J=="function")for(var rt=0;rt<kt.length;rt++)me.call(_e,kt[rt])&&ut.push("["+te(kt[rt])+"]: "+te(_e[kt[rt]],_e));return ut}return e1}var t1,s_;function EF(){if(s_)return t1;s_=1;var r=Rh(),e=cf(),t=function(f,p,m){for(var T=f,k;(k=T.next)!=null;T=k)if(k.key===p)return T.next=k.next,m||(k.next=f.next,f.next=k),k},n=function(f,p){if(f){var m=t(f,p);return m&&m.value}},i=function(f,p,m){var T=t(f,p);T?T.value=m:f.next={key:p,next:f.next,value:m}},l=function(f,p){return f?!!t(f,p):!1},u=function(f,p){if(f)return t(f,p,!0)};return t1=function(){var p,m={assert:function(T){if(!m.has(T))throw new e("Side channel does not contain "+r(T))},delete:function(T){var k=p&&p.next,b=u(p,T);return b&&k&&k===b&&(p=void 0),!!b},get:function(T){return n(p,T)},has:function(T){return l(p,T)},set:function(T,k){p||(p={next:void 0}),i(p,T,k)}};return m},t1}var r1,a_;function TS(){return a_||(a_=1,r1=Object),r1}var n1,l_;function kF(){return l_||(l_=1,n1=Error),n1}var i1,c_;function RF(){return c_||(c_=1,i1=EvalError),i1}var o1,u_;function IF(){return u_||(u_=1,o1=RangeError),o1}var s1,f_;function LF(){return f_||(f_=1,s1=ReferenceError),s1}var a1,d_;function DF(){return d_||(d_=1,a1=SyntaxError),a1}var l1,h_;function MF(){return h_||(h_=1,l1=URIError),l1}var c1,p_;function OF(){return p_||(p_=1,c1=Math.abs),c1}var u1,g_;function PF(){return g_||(g_=1,u1=Math.floor),u1}var f1,m_;function NF(){return m_||(m_=1,f1=Math.max),f1}var d1,v_;function FF(){return v_||(v_=1,d1=Math.min),d1}var h1,y_;function jF(){return y_||(y_=1,h1=Math.pow),h1}var p1,b_;function BF(){return b_||(b_=1,p1=Math.round),p1}var g1,__;function qF(){return __||(__=1,g1=Number.isNaN||function(e){return e!==e}),g1}var m1,x_;function HF(){if(x_)return m1;x_=1;var r=qF();return m1=function(t){return r(t)||t===0?t:t<0?-1:1},m1}var v1,S_;function zF(){return S_||(S_=1,v1=Object.getOwnPropertyDescriptor),v1}var y1,C_;function ES(){if(C_)return y1;C_=1;var r=zF();if(r)try{r([],"length")}catch{r=null}return y1=r,y1}var b1,w_;function $F(){if(w_)return b1;w_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return b1=r,b1}var _1,A_;function UF(){return A_||(A_=1,_1=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 i=42;e[t]=i;for(var l 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 u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}),_1}var x1,T_;function WF(){if(T_)return x1;T_=1;var r=typeof Symbol<"u"&&Symbol,e=UF();return x1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},x1}var S1,E_;function kS(){return E_||(E_=1,S1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),S1}var C1,k_;function RS(){if(k_)return C1;k_=1;var r=TS();return C1=r.getPrototypeOf||null,C1}var w1,R_;function VF(){if(R_)return w1;R_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(p,m){for(var T=[],k=0;k<p.length;k+=1)T[k]=p[k];for(var b=0;b<m.length;b+=1)T[b+p.length]=m[b];return T},l=function(p,m){for(var T=[],k=m,b=0;k<p.length;k+=1,b+=1)T[b]=p[k];return T},u=function(f,p){for(var m="",T=0;T<f.length;T+=1)m+=f[T],T+1<f.length&&(m+=p);return m};return w1=function(p){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var T=l(arguments,1),k,b=function(){if(this instanceof k){var C=m.apply(this,i(T,arguments));return Object(C)===C?C:this}return m.apply(p,i(T,arguments))},x=t(0,m.length-T.length),_=[],I=0;I<x;I++)_[I]="$"+I;if(k=Function("binder","return function ("+u(_,",")+"){ return binder.apply(this,arguments); }")(b),m.prototype){var w=function(){};w.prototype=m.prototype,k.prototype=new w,w.prototype=null}return k},w1}var A1,I_;function Ih(){if(I_)return A1;I_=1;var r=VF();return A1=Function.prototype.bind||r,A1}var T1,L_;function Km(){return L_||(L_=1,T1=Function.prototype.call),T1}var E1,D_;function IS(){return D_||(D_=1,E1=Function.prototype.apply),E1}var k1,M_;function GF(){return M_||(M_=1,k1=typeof Reflect<"u"&&Reflect&&Reflect.apply),k1}var R1,O_;function ZF(){if(O_)return R1;O_=1;var r=Ih(),e=IS(),t=Km(),n=GF();return R1=n||r.call(t,e),R1}var I1,P_;function LS(){if(P_)return I1;P_=1;var r=Ih(),e=cf(),t=Km(),n=ZF();return I1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},I1}var L1,N_;function KF(){if(N_)return L1;N_=1;var r=LS(),e=ES(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return L1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(f){return l(f==null?f:i(f))}:!1,L1}var D1,F_;function YF(){if(F_)return D1;F_=1;var r=kS(),e=RS(),t=KF();return D1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,D1}var M1,j_;function XF(){if(j_)return M1;j_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ih();return M1=t.call(r,e),M1}var O1,B_;function Ym(){if(B_)return O1;B_=1;var r,e=TS(),t=kF(),n=RF(),i=IF(),l=LF(),u=DF(),f=cf(),p=MF(),m=OF(),T=PF(),k=NF(),b=FF(),x=jF(),_=BF(),I=HF(),w=Function,C=function(et){try{return w('"use strict"; return ('+et+").constructor;")()}catch{}},D=ES(),O=$F(),F=function(){throw new f},j=D?function(){try{return arguments.callee,F}catch{try{return D(arguments,"callee").get}catch{return F}}}():F,$=WF()(),Z=YF(),ie=RS(),Y=kS(),se=IS(),q=Km(),J={},X=typeof Uint8Array>"u"||!Z?r:Z(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":$&&Z?Z([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%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%":w,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&Z?Z(Z([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$||!Z?r:Z(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":D,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$||!Z?r:Z(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&Z?Z(""[Symbol.iterator]()):r,"%Symbol%":$?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":j,"%TypedArray%":X,"%TypeError%":f,"%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%":p,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":q,"%Function.prototype.apply%":se,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":ie,"%Math.abs%":m,"%Math.floor%":T,"%Math.max%":k,"%Math.min%":b,"%Math.pow%":x,"%Math.round%":_,"%Math.sign%":I,"%Reflect.getPrototypeOf%":Y};if(Z)try{null.error}catch(et){var ge=Z(Z(et));ne["%Error.prototype%"]=ge}var me=function et(xe){var Se;if(xe==="%AsyncFunction%")Se=C("async function () {}");else if(xe==="%GeneratorFunction%")Se=C("function* () {}");else if(xe==="%AsyncGeneratorFunction%")Se=C("async function* () {}");else if(xe==="%AsyncGenerator%"){var be=et("%AsyncGeneratorFunction%");be&&(Se=be.prototype)}else if(xe==="%AsyncIteratorPrototype%"){var Le=et("%AsyncGenerator%");Le&&Z&&(Se=Z(Le.prototype))}return ne[xe]=Se,Se},ve={__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"]},de=Ih(),De=XF(),ue=de.call(q,Array.prototype.concat),le=de.call(se,Array.prototype.splice),fe=de.call(q,String.prototype.replace),Me=de.call(q,String.prototype.slice),Ve=de.call(q,RegExp.prototype.exec),pe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,ze=function(xe){var Se=Me(xe,0,1),be=Me(xe,-1);if(Se==="%"&&be!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(be==="%"&&Se!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Le=[];return fe(xe,pe,function($e,bt,Ge,ht){Le[Le.length]=Ge?fe(ht,ke,"$1"):bt||$e}),Le},Ze=function(xe,Se){var be=xe,Le;if(De(ve,be)&&(Le=ve[be],be="%"+Le[0]+"%"),De(ne,be)){var $e=ne[be];if($e===J&&($e=me(be)),typeof $e>"u"&&!Se)throw new f("intrinsic "+xe+" exists, but is not available. Please file an issue!");return{alias:Le,name:be,value:$e}}throw new u("intrinsic "+xe+" does not exist!")};return O1=function(xe,Se){if(typeof xe!="string"||xe.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Se!="boolean")throw new f('"allowMissing" argument must be a boolean');if(Ve(/^%?[^%]*%?$/,xe)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var be=ze(xe),Le=be.length>0?be[0]:"",$e=Ze("%"+Le+"%",Se),bt=$e.name,Ge=$e.value,ht=!1,mt=$e.alias;mt&&(Le=mt[0],le(be,ue([0,1],mt)));for(var Oe=1,He=!0;Oe<be.length;Oe+=1){var wt=be[Oe],_t=Me(wt,0,1),vt=Me(wt,-1);if((_t==='"'||_t==="'"||_t==="`"||vt==='"'||vt==="'"||vt==="`")&&_t!==vt)throw new u("property names with quotes must have matching quotes");if((wt==="constructor"||!He)&&(ht=!0),Le+="."+wt,bt="%"+Le+"%",De(ne,bt))Ge=ne[bt];else if(Ge!=null){if(!(wt in Ge)){if(!Se)throw new f("base intrinsic for "+xe+" exists, but the property is not available.");return}if(D&&Oe+1>=be.length){var Tt=D(Ge,wt);He=!!Tt,He&&"get"in Tt&&!("originalValue"in Tt.get)?Ge=Tt.get:Ge=Ge[wt]}else He=De(Ge,wt),Ge=Ge[wt];He&&!ht&&(ne[bt]=Ge)}}return Ge},O1}var P1,q_;function DS(){if(q_)return P1;q_=1;var r=Ym(),e=LS(),t=e([r("%String.prototype.indexOf%")]);return P1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},P1}var N1,H_;function MS(){if(H_)return N1;H_=1;var r=Ym(),e=DS(),t=Rh(),n=cf(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),f=e("Map.prototype.has",!0),p=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return N1=!!i&&function(){var k,b={assert:function(x){if(!b.has(x))throw new n("Side channel does not contain "+t(x))},delete:function(x){if(k){var _=p(k,x);return m(k)===0&&(k=void 0),_}return!1},get:function(x){if(k)return l(k,x)},has:function(x){return k?f(k,x):!1},set:function(x,_){k||(k=new i),u(k,x,_)}};return b},N1}var F1,z_;function JF(){if(z_)return F1;z_=1;var r=Ym(),e=DS(),t=Rh(),n=MS(),i=cf(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),f=e("WeakMap.prototype.set",!0),p=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return F1=l?function(){var k,b,x={assert:function(_){if(!x.has(_))throw new i("Side channel does not contain "+t(_))},delete:function(_){if(l&&_&&(typeof _=="object"||typeof _=="function")){if(k)return m(k,_)}else if(n&&b)return b.delete(_);return!1},get:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&k?u(k,_):b&&b.get(_)},has:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&k?p(k,_):!!b&&b.has(_)},set:function(_,I){l&&_&&(typeof _=="object"||typeof _=="function")?(k||(k=new l),f(k,_,I)):n&&(b||(b=n()),b.set(_,I))}};return x}:n,F1}var j1,$_;function QF(){if($_)return j1;$_=1;var r=cf(),e=Rh(),t=EF(),n=MS(),i=JF(),l=i||n||t;return j1=function(){var f,p={assert:function(m){if(!p.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!f&&f.delete(m)},get:function(m){return f&&f.get(m)},has:function(m){return!!f&&f.has(m)},set:function(m,T){f||(f=l()),f.set(m,T)}};return p},j1}var B1,U_;function Xm(){if(U_)return B1;U_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return B1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},B1}var q1,W_;function OS(){if(W_)return q1;W_=1;var r=Xm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var w=[],C=0;C<256;++C)w.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return w}(),i=function(C){for(;C.length>1;){var D=C.pop(),O=D.obj[D.prop];if(t(O)){for(var F=[],j=0;j<O.length;++j)typeof O[j]<"u"&&F.push(O[j]);D.obj[D.prop]=F}}},l=function(C,D){for(var O=D&&D.plainObjects?{__proto__:null}:{},F=0;F<C.length;++F)typeof C[F]<"u"&&(O[F]=C[F]);return O},u=function w(C,D,O){if(!D)return C;if(typeof D!="object"&&typeof D!="function"){if(t(C))C.push(D);else if(C&&typeof C=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,D))&&(C[D]=!0);else return[C,D];return C}if(!C||typeof C!="object")return[C].concat(D);var F=C;return t(C)&&!t(D)&&(F=l(C,O)),t(C)&&t(D)?(D.forEach(function(j,$){if(e.call(C,$)){var Z=C[$];Z&&typeof Z=="object"&&j&&typeof j=="object"?C[$]=w(Z,j,O):C.push(j)}else C[$]=j}),C):Object.keys(D).reduce(function(j,$){var Z=D[$];return e.call(j,$)?j[$]=w(j[$],Z,O):j[$]=Z,j},F)},f=function(C,D){return Object.keys(D).reduce(function(O,F){return O[F]=D[F],O},C)},p=function(w,C,D){var O=w.replace(/\+/g," ");if(D==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,T=function(C,D,O,F,j){if(C.length===0)return C;var $=C;if(typeof C=="symbol"?$=Symbol.prototype.toString.call(C):typeof C!="string"&&($=String(C)),O==="iso-8859-1")return escape($).replace(/%u[0-9a-f]{4}/gi,function(X){return"%26%23"+parseInt(X.slice(2),16)+"%3B"});for(var Z="",ie=0;ie<$.length;ie+=m){for(var Y=$.length>=m?$.slice(ie,ie+m):$,se=[],q=0;q<Y.length;++q){var J=Y.charCodeAt(q);if(J===45||J===46||J===95||J===126||J>=48&&J<=57||J>=65&&J<=90||J>=97&&J<=122||j===r.RFC1738&&(J===40||J===41)){se[se.length]=Y.charAt(q);continue}if(J<128){se[se.length]=n[J];continue}if(J<2048){se[se.length]=n[192|J>>6]+n[128|J&63];continue}if(J<55296||J>=57344){se[se.length]=n[224|J>>12]+n[128|J>>6&63]+n[128|J&63];continue}q+=1,J=65536+((J&1023)<<10|Y.charCodeAt(q)&1023),se[se.length]=n[240|J>>18]+n[128|J>>12&63]+n[128|J>>6&63]+n[128|J&63]}Z+=se.join("")}return Z},k=function(C){for(var D=[{obj:{o:C},prop:"o"}],O=[],F=0;F<D.length;++F)for(var j=D[F],$=j.obj[j.prop],Z=Object.keys($),ie=0;ie<Z.length;++ie){var Y=Z[ie],se=$[Y];typeof se=="object"&&se!==null&&O.indexOf(se)===-1&&(D.push({obj:$,prop:Y}),O.push(se))}return i(D),C},b=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},x=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},_=function(C,D){return[].concat(C,D)},I=function(C,D){if(t(C)){for(var O=[],F=0;F<C.length;F+=1)O.push(D(C[F]));return O}return D(C)};return q1={arrayToObject:l,assign:f,combine:_,compact:k,decode:p,encode:T,isBuffer:x,isRegExp:b,maybeMap:I,merge:u},q1}var H1,V_;function ej(){if(V_)return H1;V_=1;var r=QF(),e=OS(),t=Xm(),n=Object.prototype.hasOwnProperty,i={brackets:function(w){return w+"[]"},comma:"comma",indices:function(w,C){return w+"["+C+"]"},repeat:function(w){return w}},l=Array.isArray,u=Array.prototype.push,f=function(I,w){u.apply(I,l(w)?w:[w])},p=Date.prototype.toISOString,m=t.default,T={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:m,formatter:t.formatters[m],indices:!1,serializeDate:function(w){return p.call(w)},skipNulls:!1,strictNullHandling:!1},k=function(w){return typeof w=="string"||typeof w=="number"||typeof w=="boolean"||typeof w=="symbol"||typeof w=="bigint"},b={},x=function I(w,C,D,O,F,j,$,Z,ie,Y,se,q,J,X,ne,ge,me,ve){for(var de=w,De=ve,ue=0,le=!1;(De=De.get(b))!==void 0&&!le;){var fe=De.get(w);if(ue+=1,typeof fe<"u"){if(fe===ue)throw new RangeError("Cyclic object value");le=!0}typeof De.get(b)>"u"&&(ue=0)}if(typeof Y=="function"?de=Y(C,de):de instanceof Date?de=J(de):D==="comma"&&l(de)&&(de=e.maybeMap(de,function(bt){return bt instanceof Date?J(bt):bt})),de===null){if(j)return ie&&!ge?ie(C,T.encoder,me,"key",X):C;de=""}if(k(de)||e.isBuffer(de)){if(ie){var Me=ge?C:ie(C,T.encoder,me,"key",X);return[ne(Me)+"="+ne(ie(de,T.encoder,me,"value",X))]}return[ne(C)+"="+ne(String(de))]}var Ve=[];if(typeof de>"u")return Ve;var pe;if(D==="comma"&&l(de))ge&&ie&&(de=e.maybeMap(de,ie)),pe=[{value:de.length>0?de.join(",")||null:void 0}];else if(l(Y))pe=Y;else{var ke=Object.keys(de);pe=se?ke.sort(se):ke}var ze=Z?String(C).replace(/\./g,"%2E"):String(C),Ze=O&&l(de)&&de.length===1?ze+"[]":ze;if(F&&l(de)&&de.length===0)return Ze+"[]";for(var et=0;et<pe.length;++et){var xe=pe[et],Se=typeof xe=="object"&&xe&&typeof xe.value<"u"?xe.value:de[xe];if(!($&&Se===null)){var be=q&&Z?String(xe).replace(/\./g,"%2E"):String(xe),Le=l(de)?typeof D=="function"?D(Ze,be):Ze:Ze+(q?"."+be:"["+be+"]");ve.set(w,ue);var $e=r();$e.set(b,ve),f(Ve,I(Se,Le,D,O,F,j,$,Z,D==="comma"&&ge&&l(de)?null:ie,Y,se,q,J,X,ne,ge,me,$e))}}return Ve},_=function(w){if(!w)return T;if(typeof w.allowEmptyArrays<"u"&&typeof w.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof w.encodeDotInKeys<"u"&&typeof w.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(w.encoder!==null&&typeof w.encoder<"u"&&typeof w.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=w.charset||T.charset;if(typeof w.charset<"u"&&w.charset!=="utf-8"&&w.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var D=t.default;if(typeof w.format<"u"){if(!n.call(t.formatters,w.format))throw new TypeError("Unknown format option provided.");D=w.format}var O=t.formatters[D],F=T.filter;(typeof w.filter=="function"||l(w.filter))&&(F=w.filter);var j;if(w.arrayFormat in i?j=w.arrayFormat:"indices"in w?j=w.indices?"indices":"repeat":j=T.arrayFormat,"commaRoundTrip"in w&&typeof w.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var $=typeof w.allowDots>"u"?w.encodeDotInKeys===!0?!0:T.allowDots:!!w.allowDots;return{addQueryPrefix:typeof w.addQueryPrefix=="boolean"?w.addQueryPrefix:T.addQueryPrefix,allowDots:$,allowEmptyArrays:typeof w.allowEmptyArrays=="boolean"?!!w.allowEmptyArrays:T.allowEmptyArrays,arrayFormat:j,charset:C,charsetSentinel:typeof w.charsetSentinel=="boolean"?w.charsetSentinel:T.charsetSentinel,commaRoundTrip:!!w.commaRoundTrip,delimiter:typeof w.delimiter>"u"?T.delimiter:w.delimiter,encode:typeof w.encode=="boolean"?w.encode:T.encode,encodeDotInKeys:typeof w.encodeDotInKeys=="boolean"?w.encodeDotInKeys:T.encodeDotInKeys,encoder:typeof w.encoder=="function"?w.encoder:T.encoder,encodeValuesOnly:typeof w.encodeValuesOnly=="boolean"?w.encodeValuesOnly:T.encodeValuesOnly,filter:F,format:D,formatter:O,serializeDate:typeof w.serializeDate=="function"?w.serializeDate:T.serializeDate,skipNulls:typeof w.skipNulls=="boolean"?w.skipNulls:T.skipNulls,sort:typeof w.sort=="function"?w.sort:null,strictNullHandling:typeof w.strictNullHandling=="boolean"?w.strictNullHandling:T.strictNullHandling}};return H1=function(I,w){var C=I,D=_(w),O,F;typeof D.filter=="function"?(F=D.filter,C=F("",C)):l(D.filter)&&(F=D.filter,O=F);var j=[];if(typeof C!="object"||C===null)return"";var $=i[D.arrayFormat],Z=$==="comma"&&D.commaRoundTrip;O||(O=Object.keys(C)),D.sort&&O.sort(D.sort);for(var ie=r(),Y=0;Y<O.length;++Y){var se=O[Y],q=C[se];D.skipNulls&&q===null||f(j,x(q,se,$,Z,D.allowEmptyArrays,D.strictNullHandling,D.skipNulls,D.encodeDotInKeys,D.encode?D.encoder:null,D.filter,D.sort,D.allowDots,D.serializeDate,D.format,D.formatter,D.encodeValuesOnly,D.charset,ie))}var J=j.join(D.delimiter),X=D.addQueryPrefix===!0?"?":"";return D.charsetSentinel&&(D.charset==="iso-8859-1"?X+="utf8=%26%2310003%3B&":X+="utf8=%E2%9C%93&"),J.length>0?X+J:""},H1}var z1,G_;function tj(){if(G_)return z1;G_=1;var r=OS(),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},i=function(b){return b.replace(/&#(\d+);/g,function(x,_){return String.fromCharCode(parseInt(_,10))})},l=function(b,x,_){if(b&&typeof b=="string"&&x.comma&&b.indexOf(",")>-1)return b.split(",");if(x.throwOnLimitExceeded&&_>=x.arrayLimit)throw new RangeError("Array limit exceeded. Only "+x.arrayLimit+" element"+(x.arrayLimit===1?"":"s")+" allowed in an array.");return b},u="utf8=%26%2310003%3B",f="utf8=%E2%9C%93",p=function(x,_){var I={__proto__:null},w=_.ignoreQueryPrefix?x.replace(/^\?/,""):x;w=w.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=_.parameterLimit===1/0?void 0:_.parameterLimit,D=w.split(_.delimiter,_.throwOnLimitExceeded?C+1:C);if(_.throwOnLimitExceeded&&D.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var O=-1,F,j=_.charset;if(_.charsetSentinel)for(F=0;F<D.length;++F)D[F].indexOf("utf8=")===0&&(D[F]===f?j="utf-8":D[F]===u&&(j="iso-8859-1"),O=F,F=D.length);for(F=0;F<D.length;++F)if(F!==O){var $=D[F],Z=$.indexOf("]="),ie=Z===-1?$.indexOf("="):Z+1,Y,se;ie===-1?(Y=_.decoder($,n.decoder,j,"key"),se=_.strictNullHandling?null:""):(Y=_.decoder($.slice(0,ie),n.decoder,j,"key"),se=r.maybeMap(l($.slice(ie+1),_,t(I[Y])?I[Y].length:0),function(J){return _.decoder(J,n.decoder,j,"value")})),se&&_.interpretNumericEntities&&j==="iso-8859-1"&&(se=i(String(se))),$.indexOf("[]=")>-1&&(se=t(se)?[se]:se);var q=e.call(I,Y);q&&_.duplicates==="combine"?I[Y]=r.combine(I[Y],se):(!q||_.duplicates==="last")&&(I[Y]=se)}return I},m=function(b,x,_,I){var w=0;if(b.length>0&&b[b.length-1]==="[]"){var C=b.slice(0,-1).join("");w=Array.isArray(x)&&x[C]?x[C].length:0}for(var D=I?x:l(x,_,w),O=b.length-1;O>=0;--O){var F,j=b[O];if(j==="[]"&&_.parseArrays)F=_.allowEmptyArrays&&(D===""||_.strictNullHandling&&D===null)?[]:r.combine([],D);else{F=_.plainObjects?{__proto__:null}:{};var $=j.charAt(0)==="["&&j.charAt(j.length-1)==="]"?j.slice(1,-1):j,Z=_.decodeDotInKeys?$.replace(/%2E/g,"."):$,ie=parseInt(Z,10);!_.parseArrays&&Z===""?F={0:D}:!isNaN(ie)&&j!==Z&&String(ie)===Z&&ie>=0&&_.parseArrays&&ie<=_.arrayLimit?(F=[],F[ie]=D):Z!=="__proto__"&&(F[Z]=D)}D=F}return D},T=function(x,_,I,w){if(x){var C=I.allowDots?x.replace(/\.([^.[]+)/g,"[$1]"):x,D=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,F=I.depth>0&&D.exec(C),j=F?C.slice(0,F.index):C,$=[];if(j){if(!I.plainObjects&&e.call(Object.prototype,j)&&!I.allowPrototypes)return;$.push(j)}for(var Z=0;I.depth>0&&(F=O.exec(C))!==null&&Z<I.depth;){if(Z+=1,!I.plainObjects&&e.call(Object.prototype,F[1].slice(1,-1))&&!I.allowPrototypes)return;$.push(F[1])}if(F){if(I.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+I.depth+" and strictDepth is true");$.push("["+C.slice(F.index)+"]")}return m($,_,I,w)}},k=function(x){if(!x)return n;if(typeof x.allowEmptyArrays<"u"&&typeof x.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof x.decodeDotInKeys<"u"&&typeof x.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(x.decoder!==null&&typeof x.decoder<"u"&&typeof x.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof x.charset<"u"&&x.charset!=="utf-8"&&x.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof x.throwOnLimitExceeded<"u"&&typeof x.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof x.charset>"u"?n.charset:x.charset,I=typeof x.duplicates>"u"?n.duplicates:x.duplicates;if(I!=="combine"&&I!=="first"&&I!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var w=typeof x.allowDots>"u"?x.decodeDotInKeys===!0?!0:n.allowDots:!!x.allowDots;return{allowDots:w,allowEmptyArrays:typeof x.allowEmptyArrays=="boolean"?!!x.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof x.allowPrototypes=="boolean"?x.allowPrototypes:n.allowPrototypes,allowSparse:typeof x.allowSparse=="boolean"?x.allowSparse:n.allowSparse,arrayLimit:typeof x.arrayLimit=="number"?x.arrayLimit:n.arrayLimit,charset:_,charsetSentinel:typeof x.charsetSentinel=="boolean"?x.charsetSentinel:n.charsetSentinel,comma:typeof x.comma=="boolean"?x.comma:n.comma,decodeDotInKeys:typeof x.decodeDotInKeys=="boolean"?x.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof x.decoder=="function"?x.decoder:n.decoder,delimiter:typeof x.delimiter=="string"||r.isRegExp(x.delimiter)?x.delimiter:n.delimiter,depth:typeof x.depth=="number"||x.depth===!1?+x.depth:n.depth,duplicates:I,ignoreQueryPrefix:x.ignoreQueryPrefix===!0,interpretNumericEntities:typeof x.interpretNumericEntities=="boolean"?x.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof x.parameterLimit=="number"?x.parameterLimit:n.parameterLimit,parseArrays:x.parseArrays!==!1,plainObjects:typeof x.plainObjects=="boolean"?x.plainObjects:n.plainObjects,strictDepth:typeof x.strictDepth=="boolean"?!!x.strictDepth:n.strictDepth,strictNullHandling:typeof x.strictNullHandling=="boolean"?x.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof x.throwOnLimitExceeded=="boolean"?x.throwOnLimitExceeded:!1}};return z1=function(b,x){var _=k(x);if(b===""||b===null||typeof b>"u")return _.plainObjects?{__proto__:null}:{};for(var I=typeof b=="string"?p(b,_):b,w=_.plainObjects?{__proto__:null}:{},C=Object.keys(I),D=0;D<C.length;++D){var O=C[D],F=T(O,I[O],_,typeof b=="string");w=r.merge(w,F,_)}return _.allowSparse===!0?w:r.compact(w)},z1}var $1,Z_;function rj(){if(Z_)return $1;Z_=1;var r=ej(),e=tj(),t=Xm();return $1={formats:t,parse:e,stringify:r},$1}var nj=rj();const ij=cl(nj),hm={StoredContexts:{},defaultHandler:()=>{}},PS={Init:()=>{},Create:r=>{const e=r.method+r.url;return hm.StoredContexts[e]=r,oj(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{hm.defaultHandler=r}};function oj(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:f}=r;const{po:p,onStream:m,onStreamEnd:T,noDefaultHandle:k=[]}=n??{};(f==="query"||l==="GET")&&p!==void 0&&(i+="?"+ij.stringify(p,{arrayFormat:"comma"}));const b={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(f==="form"){const I=new FormData;if(p!==void 0)for(const w in p){const C=p[w];I.append(w,C)}b.body=I}else(f==="body"||f===void 0&&r.method!=="GET")&&(b.body=JSON.stringify(p),b.headers["Content-Type"]="application/json;charset=UTF-8");let x={errorCode:0,message:""};const _=Date.now();i=PS.FetchBaseUrl()+i;try{let I=await fetch(i,b);if(I.ok===!1)return x.errorCode=I.status,x.message=I.statusText,x;{const w=new TextDecoder("utf-8");if(u){if(I.body){let C=I.body.getReader(),D="";for(;;){const O=await C.read();if(O.done)break;const F=w.decode(O.value).trim();D+=F;let j=null;try{const $=F.split("\0");let Z=$[$.length-1];for(let ie=$.length-2;ie>=0;ie--)if($[ie].trim().length!==0){Z=$[ie];break}j=await JSON.parse(Z)}catch{try{const Z=D.split("\0");let ie=Z[Z.length-1];for(let Y=Z.length-2;Y>=0;Y--)if(Z[Y].trim().length!==0){ie=Z[Y];break}j=await JSON.parse(ie)}catch{}}if(j!=null&&(Object.keys(j).includes("err_code")?x.errorCode=j.err_code:(x.errorCode=0,x.data=j,D="",O.done?T==null||T(x.data):m==null||m(x.data))),O.done)break}}}else if(I.body){const D=await I.body.getReader().read(),O=w.decode(D.value);if(O==="null")return x;{let F=await JSON.parse(O.replaceAll("\0",""));Object.keys(F).includes("err_code")?(x.errorCode=F.err_code,x.message=F.err_msg):x.data=F}}}}catch(I){console.warn(I),x.errorCode=-1,x.message=I.message}return console.debug(`${e} ${Date.now()-_}ms`),k!==!0&&await hm.defaultHandler(x,k),x}}}async function sj(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function aj(r,e){var f,p;const t=r.split(","),n=(p=(f=t[0])==null?void 0:f.match(/:(.*?);/))==null?void 0:p[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const lj={toBase64:sj,toFile:aj};exports.ABase=Ur;exports.ABaseStyleKeys=m2;exports.AButton=ji;exports.AButtonStyleKeys=y2;exports.AButtonTypes=W5;exports.ACheckBox=Qu;exports.ACheckBoxStyleKeys=S2;exports.AChip=bm;exports.AChipKeys=H2;exports.AChips=QT;exports.AClock=dE;exports.AColFrame=W2;exports.ADatePicker=Sm;exports.ADatePickerStyleKeys=D2;exports.ADatePickerTypes=B6;exports.ADateRangePicker=_m;exports.ADateRangePickerStyleKeys=M2;exports.ADialog=Z6;exports.ADialogStyleKeys=C2;exports.ADialogTypes=G6;exports.ADivideFrame=G2;exports.AEditor=FN;exports.AEditorStyleKeys=x2;exports.AFileBox=o8;exports.AFileBoxStyleKeys=R2;exports.AFileUploader=E8;exports.AFloatMenu=Y2;exports.AFloatMenuKeys=F2;exports.AFrameStyleKeys=N2;exports.AGrow=nu;exports.AIcon=Br;exports.AIconButton=pi;exports.AIconButtonStyleKeys=O2;exports.AIconButtonTypes=V5;exports.AIconHOC=J4;exports.AIcons=mm;exports.AInput=oc;exports.AInputStyleKeys=b2;exports.AInputTypes=AE;exports.AListView=j8;exports.AListViewStyleKeys=I2;exports.ALoadingBorder=Cm;exports.ALoadingBorderKeys=j2;exports.AMultiSelect=dk;exports.AMultiSelectStyleKeys=A2;exports.ANumInput=M8;exports.AOverflowFrame=wa;exports.AProgressBar=i2;exports.ARadioSelect=X8;exports.ARadioSelectKeys=q2;exports.ARowFrame=An;exports.ASelect=sc;exports.ASelectStyleKeys=w2;exports.ASelectTypes=qE;exports.ASpace=bn;exports.AStepper=Ek;exports.AStepperStyleKeys=L2;exports.ASwitch=c2;exports.ASwitchFrame=V2;exports.ASwitchStyleKeys=E2;exports.ATab=Q2;exports.ATabStyleKeys=k2;exports.ATabTypes=Bk;exports.ATable=ZR;exports.ATableStyleKeys=P2;exports.AText=ix;exports.ATextArea=o9;exports.ATextAreaStyleKeys=_2;exports.ATextAreaTypes=i9;exports.AThemeButton=yT;exports.AThemes=Hf;exports.ATooltip=l2;exports.ATooltipStyleKeys=v2;exports.ATree=_F;exports.ATreeStyleKeys=T2;exports.AWrap=ic;exports.AWrapKeys=B2;exports.AWrapTypes=J5;exports.ApiContext=PS;exports.BodyStyleKeys=g2;exports.CreateADC=e8;exports.DefaultOptionRenderer=J2;exports.EDir12=sf;exports.EDir4=_i;exports.FileSizeTrans=Qc;exports.Icons=ch;exports.IsCursorPointer=e2;exports.IsFixedShape=Q_;exports.IsInteractive=t2;exports.NoSelect=X_;exports.NoTransition=J_;exports.Resources=sn;exports.SetResources=h5;exports.alphanumericRegex=tE;exports.bound=qf;exports.cbF=Ir;exports.changeSemanticMode=ym;exports.componentStyleKeys=uT;exports.createEvent=Yc;exports.dateF=Yt;exports.dbF=Ns;exports.defaultPredicate=tx;exports.dlgF=t8;exports.emailIdRegex=nE;exports.emailRegex=rE;exports.fileF=lj;exports.getMonthsOptions=ed;exports.getYearsOptions=xm;exports.hangulRegex=oE;exports.hexRegex=iE;exports.noHanguljamoRegex=aE;exports.noSpaceRegex=sE;exports.numF=X2;exports.objF=rr;exports.paletteKeys=u2;exports.paletteModes=uh;exports.passwordRegex=cE;exports.refinedDesignTokens=Si;exports.sF=Ne;exports.semanticKeys=h2;exports.semanticModes=Ju;exports.setDir12Style=vm;exports.setDir12StyleElem=s2;exports.specialCharRegex=lE;exports.strF=K2;exports.tableF=nl;exports.textMeasurement=Jc;exports.treeF=il;exports.useADialogCore=J6;exports.useADialogCores=X6;exports.useDB=$2;exports.useEvent=nx;exports.useInit=ex;exports.useLayoutDB=U2;exports.useValues=dn;exports.uuidRegex=uE;
358
+ `+te.prev}function Mr(_e,te){var tt=ze(_e),ut=[];if(tt){ut.length=_e.length;for(var qt=0;qt<_e.length;qt++)ut[qt]=ht(_e,qt)?te(_e[qt],_e):""}var kt=typeof J=="function"?J(_e):[],Mt;if(ne){Mt={};for(var tr=0;tr<kt.length;tr++)Mt["$"+kt[tr]]=kt[tr]}for(var Xe in _e)ht(_e,Xe)&&(tt&&String(Number(Xe))===Xe&&Xe<_e.length||ne&&Mt["$"+Xe]instanceof Symbol||($.call(/[^\w$]/,Xe)?ut.push(te(Xe,_e)+": "+te(_e[Xe],_e)):ut.push(Xe+": "+te(_e[Xe],_e))));if(typeof J=="function")for(var rt=0;rt<kt.length;rt++)me.call(_e,kt[rt])&&ut.push("["+te(kt[rt])+"]: "+te(_e[kt[rt]],_e));return ut}return e1}var t1,s_;function EF(){if(s_)return t1;s_=1;var r=Rh(),e=cf(),t=function(f,p,m){for(var T=f,k;(k=T.next)!=null;T=k)if(k.key===p)return T.next=k.next,m||(k.next=f.next,f.next=k),k},n=function(f,p){if(f){var m=t(f,p);return m&&m.value}},i=function(f,p,m){var T=t(f,p);T?T.value=m:f.next={key:p,next:f.next,value:m}},l=function(f,p){return f?!!t(f,p):!1},u=function(f,p){if(f)return t(f,p,!0)};return t1=function(){var p,m={assert:function(T){if(!m.has(T))throw new e("Side channel does not contain "+r(T))},delete:function(T){var k=p&&p.next,b=u(p,T);return b&&k&&k===b&&(p=void 0),!!b},get:function(T){return n(p,T)},has:function(T){return l(p,T)},set:function(T,k){p||(p={next:void 0}),i(p,T,k)}};return m},t1}var r1,a_;function TS(){return a_||(a_=1,r1=Object),r1}var n1,l_;function kF(){return l_||(l_=1,n1=Error),n1}var i1,c_;function RF(){return c_||(c_=1,i1=EvalError),i1}var o1,u_;function IF(){return u_||(u_=1,o1=RangeError),o1}var s1,f_;function LF(){return f_||(f_=1,s1=ReferenceError),s1}var a1,d_;function DF(){return d_||(d_=1,a1=SyntaxError),a1}var l1,h_;function MF(){return h_||(h_=1,l1=URIError),l1}var c1,p_;function OF(){return p_||(p_=1,c1=Math.abs),c1}var u1,g_;function PF(){return g_||(g_=1,u1=Math.floor),u1}var f1,m_;function NF(){return m_||(m_=1,f1=Math.max),f1}var d1,v_;function FF(){return v_||(v_=1,d1=Math.min),d1}var h1,y_;function jF(){return y_||(y_=1,h1=Math.pow),h1}var p1,b_;function BF(){return b_||(b_=1,p1=Math.round),p1}var g1,__;function qF(){return __||(__=1,g1=Number.isNaN||function(e){return e!==e}),g1}var m1,x_;function HF(){if(x_)return m1;x_=1;var r=qF();return m1=function(t){return r(t)||t===0?t:t<0?-1:1},m1}var v1,S_;function zF(){return S_||(S_=1,v1=Object.getOwnPropertyDescriptor),v1}var y1,C_;function ES(){if(C_)return y1;C_=1;var r=zF();if(r)try{r([],"length")}catch{r=null}return y1=r,y1}var b1,w_;function $F(){if(w_)return b1;w_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return b1=r,b1}var _1,A_;function UF(){return A_||(A_=1,_1=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 i=42;e[t]=i;for(var l 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 u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}),_1}var x1,T_;function WF(){if(T_)return x1;T_=1;var r=typeof Symbol<"u"&&Symbol,e=UF();return x1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},x1}var S1,E_;function kS(){return E_||(E_=1,S1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),S1}var C1,k_;function RS(){if(k_)return C1;k_=1;var r=TS();return C1=r.getPrototypeOf||null,C1}var w1,R_;function VF(){if(R_)return w1;R_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(p,m){for(var T=[],k=0;k<p.length;k+=1)T[k]=p[k];for(var b=0;b<m.length;b+=1)T[b+p.length]=m[b];return T},l=function(p,m){for(var T=[],k=m,b=0;k<p.length;k+=1,b+=1)T[b]=p[k];return T},u=function(f,p){for(var m="",T=0;T<f.length;T+=1)m+=f[T],T+1<f.length&&(m+=p);return m};return w1=function(p){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var T=l(arguments,1),k,b=function(){if(this instanceof k){var C=m.apply(this,i(T,arguments));return Object(C)===C?C:this}return m.apply(p,i(T,arguments))},x=t(0,m.length-T.length),_=[],I=0;I<x;I++)_[I]="$"+I;if(k=Function("binder","return function ("+u(_,",")+"){ return binder.apply(this,arguments); }")(b),m.prototype){var w=function(){};w.prototype=m.prototype,k.prototype=new w,w.prototype=null}return k},w1}var A1,I_;function Ih(){if(I_)return A1;I_=1;var r=VF();return A1=Function.prototype.bind||r,A1}var T1,L_;function Km(){return L_||(L_=1,T1=Function.prototype.call),T1}var E1,D_;function IS(){return D_||(D_=1,E1=Function.prototype.apply),E1}var k1,M_;function GF(){return M_||(M_=1,k1=typeof Reflect<"u"&&Reflect&&Reflect.apply),k1}var R1,O_;function ZF(){if(O_)return R1;O_=1;var r=Ih(),e=IS(),t=Km(),n=GF();return R1=n||r.call(t,e),R1}var I1,P_;function LS(){if(P_)return I1;P_=1;var r=Ih(),e=cf(),t=Km(),n=ZF();return I1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},I1}var L1,N_;function KF(){if(N_)return L1;N_=1;var r=LS(),e=ES(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return L1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(f){return l(f==null?f:i(f))}:!1,L1}var D1,F_;function YF(){if(F_)return D1;F_=1;var r=kS(),e=RS(),t=KF();return D1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,D1}var M1,j_;function XF(){if(j_)return M1;j_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ih();return M1=t.call(r,e),M1}var O1,B_;function Ym(){if(B_)return O1;B_=1;var r,e=TS(),t=kF(),n=RF(),i=IF(),l=LF(),u=DF(),f=cf(),p=MF(),m=OF(),T=PF(),k=NF(),b=FF(),x=jF(),_=BF(),I=HF(),w=Function,C=function(et){try{return w('"use strict"; return ('+et+").constructor;")()}catch{}},D=ES(),O=$F(),N=function(){throw new f},j=D?function(){try{return arguments.callee,N}catch{try{return D(arguments,"callee").get}catch{return N}}}():N,$=WF()(),Z=YF(),ie=RS(),Y=kS(),se=IS(),q=Km(),J={},X=typeof Uint8Array>"u"||!Z?r:Z(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":$&&Z?Z([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%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%":w,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&Z?Z(Z([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$||!Z?r:Z(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":D,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$||!Z?r:Z(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&Z?Z(""[Symbol.iterator]()):r,"%Symbol%":$?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":j,"%TypedArray%":X,"%TypeError%":f,"%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%":p,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":q,"%Function.prototype.apply%":se,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":ie,"%Math.abs%":m,"%Math.floor%":T,"%Math.max%":k,"%Math.min%":b,"%Math.pow%":x,"%Math.round%":_,"%Math.sign%":I,"%Reflect.getPrototypeOf%":Y};if(Z)try{null.error}catch(et){var ge=Z(Z(et));ne["%Error.prototype%"]=ge}var me=function et(xe){var Se;if(xe==="%AsyncFunction%")Se=C("async function () {}");else if(xe==="%GeneratorFunction%")Se=C("function* () {}");else if(xe==="%AsyncGeneratorFunction%")Se=C("async function* () {}");else if(xe==="%AsyncGenerator%"){var be=et("%AsyncGeneratorFunction%");be&&(Se=be.prototype)}else if(xe==="%AsyncIteratorPrototype%"){var Le=et("%AsyncGenerator%");Le&&Z&&(Se=Z(Le.prototype))}return ne[xe]=Se,Se},ve={__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"]},de=Ih(),De=XF(),ue=de.call(q,Array.prototype.concat),le=de.call(se,Array.prototype.splice),fe=de.call(q,String.prototype.replace),Me=de.call(q,String.prototype.slice),Ve=de.call(q,RegExp.prototype.exec),pe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,ze=function(xe){var Se=Me(xe,0,1),be=Me(xe,-1);if(Se==="%"&&be!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(be==="%"&&Se!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Le=[];return fe(xe,pe,function($e,bt,Ge,ht){Le[Le.length]=Ge?fe(ht,ke,"$1"):bt||$e}),Le},Ze=function(xe,Se){var be=xe,Le;if(De(ve,be)&&(Le=ve[be],be="%"+Le[0]+"%"),De(ne,be)){var $e=ne[be];if($e===J&&($e=me(be)),typeof $e>"u"&&!Se)throw new f("intrinsic "+xe+" exists, but is not available. Please file an issue!");return{alias:Le,name:be,value:$e}}throw new u("intrinsic "+xe+" does not exist!")};return O1=function(xe,Se){if(typeof xe!="string"||xe.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Se!="boolean")throw new f('"allowMissing" argument must be a boolean');if(Ve(/^%?[^%]*%?$/,xe)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var be=ze(xe),Le=be.length>0?be[0]:"",$e=Ze("%"+Le+"%",Se),bt=$e.name,Ge=$e.value,ht=!1,mt=$e.alias;mt&&(Le=mt[0],le(be,ue([0,1],mt)));for(var Oe=1,He=!0;Oe<be.length;Oe+=1){var wt=be[Oe],_t=Me(wt,0,1),vt=Me(wt,-1);if((_t==='"'||_t==="'"||_t==="`"||vt==='"'||vt==="'"||vt==="`")&&_t!==vt)throw new u("property names with quotes must have matching quotes");if((wt==="constructor"||!He)&&(ht=!0),Le+="."+wt,bt="%"+Le+"%",De(ne,bt))Ge=ne[bt];else if(Ge!=null){if(!(wt in Ge)){if(!Se)throw new f("base intrinsic for "+xe+" exists, but the property is not available.");return}if(D&&Oe+1>=be.length){var Tt=D(Ge,wt);He=!!Tt,He&&"get"in Tt&&!("originalValue"in Tt.get)?Ge=Tt.get:Ge=Ge[wt]}else He=De(Ge,wt),Ge=Ge[wt];He&&!ht&&(ne[bt]=Ge)}}return Ge},O1}var P1,q_;function DS(){if(q_)return P1;q_=1;var r=Ym(),e=LS(),t=e([r("%String.prototype.indexOf%")]);return P1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},P1}var N1,H_;function MS(){if(H_)return N1;H_=1;var r=Ym(),e=DS(),t=Rh(),n=cf(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),f=e("Map.prototype.has",!0),p=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return N1=!!i&&function(){var k,b={assert:function(x){if(!b.has(x))throw new n("Side channel does not contain "+t(x))},delete:function(x){if(k){var _=p(k,x);return m(k)===0&&(k=void 0),_}return!1},get:function(x){if(k)return l(k,x)},has:function(x){return k?f(k,x):!1},set:function(x,_){k||(k=new i),u(k,x,_)}};return b},N1}var F1,z_;function JF(){if(z_)return F1;z_=1;var r=Ym(),e=DS(),t=Rh(),n=MS(),i=cf(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),f=e("WeakMap.prototype.set",!0),p=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return F1=l?function(){var k,b,x={assert:function(_){if(!x.has(_))throw new i("Side channel does not contain "+t(_))},delete:function(_){if(l&&_&&(typeof _=="object"||typeof _=="function")){if(k)return m(k,_)}else if(n&&b)return b.delete(_);return!1},get:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&k?u(k,_):b&&b.get(_)},has:function(_){return l&&_&&(typeof _=="object"||typeof _=="function")&&k?p(k,_):!!b&&b.has(_)},set:function(_,I){l&&_&&(typeof _=="object"||typeof _=="function")?(k||(k=new l),f(k,_,I)):n&&(b||(b=n()),b.set(_,I))}};return x}:n,F1}var j1,$_;function QF(){if($_)return j1;$_=1;var r=cf(),e=Rh(),t=EF(),n=MS(),i=JF(),l=i||n||t;return j1=function(){var f,p={assert:function(m){if(!p.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!f&&f.delete(m)},get:function(m){return f&&f.get(m)},has:function(m){return!!f&&f.has(m)},set:function(m,T){f||(f=l()),f.set(m,T)}};return p},j1}var B1,U_;function Xm(){if(U_)return B1;U_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return B1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},B1}var q1,W_;function OS(){if(W_)return q1;W_=1;var r=Xm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var w=[],C=0;C<256;++C)w.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return w}(),i=function(C){for(;C.length>1;){var D=C.pop(),O=D.obj[D.prop];if(t(O)){for(var N=[],j=0;j<O.length;++j)typeof O[j]<"u"&&N.push(O[j]);D.obj[D.prop]=N}}},l=function(C,D){for(var O=D&&D.plainObjects?{__proto__:null}:{},N=0;N<C.length;++N)typeof C[N]<"u"&&(O[N]=C[N]);return O},u=function w(C,D,O){if(!D)return C;if(typeof D!="object"&&typeof D!="function"){if(t(C))C.push(D);else if(C&&typeof C=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,D))&&(C[D]=!0);else return[C,D];return C}if(!C||typeof C!="object")return[C].concat(D);var N=C;return t(C)&&!t(D)&&(N=l(C,O)),t(C)&&t(D)?(D.forEach(function(j,$){if(e.call(C,$)){var Z=C[$];Z&&typeof Z=="object"&&j&&typeof j=="object"?C[$]=w(Z,j,O):C.push(j)}else C[$]=j}),C):Object.keys(D).reduce(function(j,$){var Z=D[$];return e.call(j,$)?j[$]=w(j[$],Z,O):j[$]=Z,j},N)},f=function(C,D){return Object.keys(D).reduce(function(O,N){return O[N]=D[N],O},C)},p=function(w,C,D){var O=w.replace(/\+/g," ");if(D==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,T=function(C,D,O,N,j){if(C.length===0)return C;var $=C;if(typeof C=="symbol"?$=Symbol.prototype.toString.call(C):typeof C!="string"&&($=String(C)),O==="iso-8859-1")return escape($).replace(/%u[0-9a-f]{4}/gi,function(X){return"%26%23"+parseInt(X.slice(2),16)+"%3B"});for(var Z="",ie=0;ie<$.length;ie+=m){for(var Y=$.length>=m?$.slice(ie,ie+m):$,se=[],q=0;q<Y.length;++q){var J=Y.charCodeAt(q);if(J===45||J===46||J===95||J===126||J>=48&&J<=57||J>=65&&J<=90||J>=97&&J<=122||j===r.RFC1738&&(J===40||J===41)){se[se.length]=Y.charAt(q);continue}if(J<128){se[se.length]=n[J];continue}if(J<2048){se[se.length]=n[192|J>>6]+n[128|J&63];continue}if(J<55296||J>=57344){se[se.length]=n[224|J>>12]+n[128|J>>6&63]+n[128|J&63];continue}q+=1,J=65536+((J&1023)<<10|Y.charCodeAt(q)&1023),se[se.length]=n[240|J>>18]+n[128|J>>12&63]+n[128|J>>6&63]+n[128|J&63]}Z+=se.join("")}return Z},k=function(C){for(var D=[{obj:{o:C},prop:"o"}],O=[],N=0;N<D.length;++N)for(var j=D[N],$=j.obj[j.prop],Z=Object.keys($),ie=0;ie<Z.length;++ie){var Y=Z[ie],se=$[Y];typeof se=="object"&&se!==null&&O.indexOf(se)===-1&&(D.push({obj:$,prop:Y}),O.push(se))}return i(D),C},b=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},x=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},_=function(C,D){return[].concat(C,D)},I=function(C,D){if(t(C)){for(var O=[],N=0;N<C.length;N+=1)O.push(D(C[N]));return O}return D(C)};return q1={arrayToObject:l,assign:f,combine:_,compact:k,decode:p,encode:T,isBuffer:x,isRegExp:b,maybeMap:I,merge:u},q1}var H1,V_;function ej(){if(V_)return H1;V_=1;var r=QF(),e=OS(),t=Xm(),n=Object.prototype.hasOwnProperty,i={brackets:function(w){return w+"[]"},comma:"comma",indices:function(w,C){return w+"["+C+"]"},repeat:function(w){return w}},l=Array.isArray,u=Array.prototype.push,f=function(I,w){u.apply(I,l(w)?w:[w])},p=Date.prototype.toISOString,m=t.default,T={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:m,formatter:t.formatters[m],indices:!1,serializeDate:function(w){return p.call(w)},skipNulls:!1,strictNullHandling:!1},k=function(w){return typeof w=="string"||typeof w=="number"||typeof w=="boolean"||typeof w=="symbol"||typeof w=="bigint"},b={},x=function I(w,C,D,O,N,j,$,Z,ie,Y,se,q,J,X,ne,ge,me,ve){for(var de=w,De=ve,ue=0,le=!1;(De=De.get(b))!==void 0&&!le;){var fe=De.get(w);if(ue+=1,typeof fe<"u"){if(fe===ue)throw new RangeError("Cyclic object value");le=!0}typeof De.get(b)>"u"&&(ue=0)}if(typeof Y=="function"?de=Y(C,de):de instanceof Date?de=J(de):D==="comma"&&l(de)&&(de=e.maybeMap(de,function(bt){return bt instanceof Date?J(bt):bt})),de===null){if(j)return ie&&!ge?ie(C,T.encoder,me,"key",X):C;de=""}if(k(de)||e.isBuffer(de)){if(ie){var Me=ge?C:ie(C,T.encoder,me,"key",X);return[ne(Me)+"="+ne(ie(de,T.encoder,me,"value",X))]}return[ne(C)+"="+ne(String(de))]}var Ve=[];if(typeof de>"u")return Ve;var pe;if(D==="comma"&&l(de))ge&&ie&&(de=e.maybeMap(de,ie)),pe=[{value:de.length>0?de.join(",")||null:void 0}];else if(l(Y))pe=Y;else{var ke=Object.keys(de);pe=se?ke.sort(se):ke}var ze=Z?String(C).replace(/\./g,"%2E"):String(C),Ze=O&&l(de)&&de.length===1?ze+"[]":ze;if(N&&l(de)&&de.length===0)return Ze+"[]";for(var et=0;et<pe.length;++et){var xe=pe[et],Se=typeof xe=="object"&&xe&&typeof xe.value<"u"?xe.value:de[xe];if(!($&&Se===null)){var be=q&&Z?String(xe).replace(/\./g,"%2E"):String(xe),Le=l(de)?typeof D=="function"?D(Ze,be):Ze:Ze+(q?"."+be:"["+be+"]");ve.set(w,ue);var $e=r();$e.set(b,ve),f(Ve,I(Se,Le,D,O,N,j,$,Z,D==="comma"&&ge&&l(de)?null:ie,Y,se,q,J,X,ne,ge,me,$e))}}return Ve},_=function(w){if(!w)return T;if(typeof w.allowEmptyArrays<"u"&&typeof w.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof w.encodeDotInKeys<"u"&&typeof w.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(w.encoder!==null&&typeof w.encoder<"u"&&typeof w.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=w.charset||T.charset;if(typeof w.charset<"u"&&w.charset!=="utf-8"&&w.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var D=t.default;if(typeof w.format<"u"){if(!n.call(t.formatters,w.format))throw new TypeError("Unknown format option provided.");D=w.format}var O=t.formatters[D],N=T.filter;(typeof w.filter=="function"||l(w.filter))&&(N=w.filter);var j;if(w.arrayFormat in i?j=w.arrayFormat:"indices"in w?j=w.indices?"indices":"repeat":j=T.arrayFormat,"commaRoundTrip"in w&&typeof w.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var $=typeof w.allowDots>"u"?w.encodeDotInKeys===!0?!0:T.allowDots:!!w.allowDots;return{addQueryPrefix:typeof w.addQueryPrefix=="boolean"?w.addQueryPrefix:T.addQueryPrefix,allowDots:$,allowEmptyArrays:typeof w.allowEmptyArrays=="boolean"?!!w.allowEmptyArrays:T.allowEmptyArrays,arrayFormat:j,charset:C,charsetSentinel:typeof w.charsetSentinel=="boolean"?w.charsetSentinel:T.charsetSentinel,commaRoundTrip:!!w.commaRoundTrip,delimiter:typeof w.delimiter>"u"?T.delimiter:w.delimiter,encode:typeof w.encode=="boolean"?w.encode:T.encode,encodeDotInKeys:typeof w.encodeDotInKeys=="boolean"?w.encodeDotInKeys:T.encodeDotInKeys,encoder:typeof w.encoder=="function"?w.encoder:T.encoder,encodeValuesOnly:typeof w.encodeValuesOnly=="boolean"?w.encodeValuesOnly:T.encodeValuesOnly,filter:N,format:D,formatter:O,serializeDate:typeof w.serializeDate=="function"?w.serializeDate:T.serializeDate,skipNulls:typeof w.skipNulls=="boolean"?w.skipNulls:T.skipNulls,sort:typeof w.sort=="function"?w.sort:null,strictNullHandling:typeof w.strictNullHandling=="boolean"?w.strictNullHandling:T.strictNullHandling}};return H1=function(I,w){var C=I,D=_(w),O,N;typeof D.filter=="function"?(N=D.filter,C=N("",C)):l(D.filter)&&(N=D.filter,O=N);var j=[];if(typeof C!="object"||C===null)return"";var $=i[D.arrayFormat],Z=$==="comma"&&D.commaRoundTrip;O||(O=Object.keys(C)),D.sort&&O.sort(D.sort);for(var ie=r(),Y=0;Y<O.length;++Y){var se=O[Y],q=C[se];D.skipNulls&&q===null||f(j,x(q,se,$,Z,D.allowEmptyArrays,D.strictNullHandling,D.skipNulls,D.encodeDotInKeys,D.encode?D.encoder:null,D.filter,D.sort,D.allowDots,D.serializeDate,D.format,D.formatter,D.encodeValuesOnly,D.charset,ie))}var J=j.join(D.delimiter),X=D.addQueryPrefix===!0?"?":"";return D.charsetSentinel&&(D.charset==="iso-8859-1"?X+="utf8=%26%2310003%3B&":X+="utf8=%E2%9C%93&"),J.length>0?X+J:""},H1}var z1,G_;function tj(){if(G_)return z1;G_=1;var r=OS(),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},i=function(b){return b.replace(/&#(\d+);/g,function(x,_){return String.fromCharCode(parseInt(_,10))})},l=function(b,x,_){if(b&&typeof b=="string"&&x.comma&&b.indexOf(",")>-1)return b.split(",");if(x.throwOnLimitExceeded&&_>=x.arrayLimit)throw new RangeError("Array limit exceeded. Only "+x.arrayLimit+" element"+(x.arrayLimit===1?"":"s")+" allowed in an array.");return b},u="utf8=%26%2310003%3B",f="utf8=%E2%9C%93",p=function(x,_){var I={__proto__:null},w=_.ignoreQueryPrefix?x.replace(/^\?/,""):x;w=w.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=_.parameterLimit===1/0?void 0:_.parameterLimit,D=w.split(_.delimiter,_.throwOnLimitExceeded?C+1:C);if(_.throwOnLimitExceeded&&D.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var O=-1,N,j=_.charset;if(_.charsetSentinel)for(N=0;N<D.length;++N)D[N].indexOf("utf8=")===0&&(D[N]===f?j="utf-8":D[N]===u&&(j="iso-8859-1"),O=N,N=D.length);for(N=0;N<D.length;++N)if(N!==O){var $=D[N],Z=$.indexOf("]="),ie=Z===-1?$.indexOf("="):Z+1,Y,se;ie===-1?(Y=_.decoder($,n.decoder,j,"key"),se=_.strictNullHandling?null:""):(Y=_.decoder($.slice(0,ie),n.decoder,j,"key"),se=r.maybeMap(l($.slice(ie+1),_,t(I[Y])?I[Y].length:0),function(J){return _.decoder(J,n.decoder,j,"value")})),se&&_.interpretNumericEntities&&j==="iso-8859-1"&&(se=i(String(se))),$.indexOf("[]=")>-1&&(se=t(se)?[se]:se);var q=e.call(I,Y);q&&_.duplicates==="combine"?I[Y]=r.combine(I[Y],se):(!q||_.duplicates==="last")&&(I[Y]=se)}return I},m=function(b,x,_,I){var w=0;if(b.length>0&&b[b.length-1]==="[]"){var C=b.slice(0,-1).join("");w=Array.isArray(x)&&x[C]?x[C].length:0}for(var D=I?x:l(x,_,w),O=b.length-1;O>=0;--O){var N,j=b[O];if(j==="[]"&&_.parseArrays)N=_.allowEmptyArrays&&(D===""||_.strictNullHandling&&D===null)?[]:r.combine([],D);else{N=_.plainObjects?{__proto__:null}:{};var $=j.charAt(0)==="["&&j.charAt(j.length-1)==="]"?j.slice(1,-1):j,Z=_.decodeDotInKeys?$.replace(/%2E/g,"."):$,ie=parseInt(Z,10);!_.parseArrays&&Z===""?N={0:D}:!isNaN(ie)&&j!==Z&&String(ie)===Z&&ie>=0&&_.parseArrays&&ie<=_.arrayLimit?(N=[],N[ie]=D):Z!=="__proto__"&&(N[Z]=D)}D=N}return D},T=function(x,_,I,w){if(x){var C=I.allowDots?x.replace(/\.([^.[]+)/g,"[$1]"):x,D=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,N=I.depth>0&&D.exec(C),j=N?C.slice(0,N.index):C,$=[];if(j){if(!I.plainObjects&&e.call(Object.prototype,j)&&!I.allowPrototypes)return;$.push(j)}for(var Z=0;I.depth>0&&(N=O.exec(C))!==null&&Z<I.depth;){if(Z+=1,!I.plainObjects&&e.call(Object.prototype,N[1].slice(1,-1))&&!I.allowPrototypes)return;$.push(N[1])}if(N){if(I.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+I.depth+" and strictDepth is true");$.push("["+C.slice(N.index)+"]")}return m($,_,I,w)}},k=function(x){if(!x)return n;if(typeof x.allowEmptyArrays<"u"&&typeof x.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof x.decodeDotInKeys<"u"&&typeof x.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(x.decoder!==null&&typeof x.decoder<"u"&&typeof x.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof x.charset<"u"&&x.charset!=="utf-8"&&x.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof x.throwOnLimitExceeded<"u"&&typeof x.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var _=typeof x.charset>"u"?n.charset:x.charset,I=typeof x.duplicates>"u"?n.duplicates:x.duplicates;if(I!=="combine"&&I!=="first"&&I!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var w=typeof x.allowDots>"u"?x.decodeDotInKeys===!0?!0:n.allowDots:!!x.allowDots;return{allowDots:w,allowEmptyArrays:typeof x.allowEmptyArrays=="boolean"?!!x.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof x.allowPrototypes=="boolean"?x.allowPrototypes:n.allowPrototypes,allowSparse:typeof x.allowSparse=="boolean"?x.allowSparse:n.allowSparse,arrayLimit:typeof x.arrayLimit=="number"?x.arrayLimit:n.arrayLimit,charset:_,charsetSentinel:typeof x.charsetSentinel=="boolean"?x.charsetSentinel:n.charsetSentinel,comma:typeof x.comma=="boolean"?x.comma:n.comma,decodeDotInKeys:typeof x.decodeDotInKeys=="boolean"?x.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof x.decoder=="function"?x.decoder:n.decoder,delimiter:typeof x.delimiter=="string"||r.isRegExp(x.delimiter)?x.delimiter:n.delimiter,depth:typeof x.depth=="number"||x.depth===!1?+x.depth:n.depth,duplicates:I,ignoreQueryPrefix:x.ignoreQueryPrefix===!0,interpretNumericEntities:typeof x.interpretNumericEntities=="boolean"?x.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof x.parameterLimit=="number"?x.parameterLimit:n.parameterLimit,parseArrays:x.parseArrays!==!1,plainObjects:typeof x.plainObjects=="boolean"?x.plainObjects:n.plainObjects,strictDepth:typeof x.strictDepth=="boolean"?!!x.strictDepth:n.strictDepth,strictNullHandling:typeof x.strictNullHandling=="boolean"?x.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof x.throwOnLimitExceeded=="boolean"?x.throwOnLimitExceeded:!1}};return z1=function(b,x){var _=k(x);if(b===""||b===null||typeof b>"u")return _.plainObjects?{__proto__:null}:{};for(var I=typeof b=="string"?p(b,_):b,w=_.plainObjects?{__proto__:null}:{},C=Object.keys(I),D=0;D<C.length;++D){var O=C[D],N=T(O,I[O],_,typeof b=="string");w=r.merge(w,N,_)}return _.allowSparse===!0?w:r.compact(w)},z1}var $1,Z_;function rj(){if(Z_)return $1;Z_=1;var r=ej(),e=tj(),t=Xm();return $1={formats:t,parse:e,stringify:r},$1}var nj=rj();const ij=cl(nj),hm={StoredContexts:{},defaultHandler:()=>{}},PS={Init:()=>{},Create:r=>{const e=r.method+r.url;return hm.StoredContexts[e]=r,oj(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{hm.defaultHandler=r}};function oj(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:f}=r;const{po:p,onStream:m,onStreamEnd:T,noDefaultHandle:k=[]}=n??{};(f==="query"||l==="GET")&&p!==void 0&&(i+="?"+ij.stringify(p,{arrayFormat:"comma"}));const b={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(f==="form"){const I=new FormData;if(p!==void 0)for(const w in p){const C=p[w];I.append(w,C)}b.body=I}else(f==="body"||f===void 0&&r.method!=="GET")&&(b.body=JSON.stringify(p),b.headers["Content-Type"]="application/json;charset=UTF-8");let x={errorCode:0,message:""};const _=Date.now();i=PS.FetchBaseUrl()+i;try{let I=await fetch(i,b);if(I.ok===!1)return x.errorCode=I.status,x.message=I.statusText,x;{const w=new TextDecoder("utf-8");if(u){if(I.body){let C=I.body.getReader(),D="";for(;;){const O=await C.read();if(O.done)break;const N=w.decode(O.value).trim();D+=N;let j=null;try{const $=N.split("\0");let Z=$[$.length-1];for(let ie=$.length-2;ie>=0;ie--)if($[ie].trim().length!==0){Z=$[ie];break}j=await JSON.parse(Z)}catch{try{const Z=D.split("\0");let ie=Z[Z.length-1];for(let Y=Z.length-2;Y>=0;Y--)if(Z[Y].trim().length!==0){ie=Z[Y];break}j=await JSON.parse(ie)}catch{}}if(j!=null&&(Object.keys(j).includes("err_code")?x.errorCode=j.err_code:(x.errorCode=0,x.data=j,D="",O.done?T==null||T(x.data):m==null||m(x.data))),O.done)break}}}else if(I.body){const D=await I.body.getReader().read(),O=w.decode(D.value);if(O==="null")return x;{let N=await JSON.parse(O.replaceAll("\0",""));Object.keys(N).includes("err_code")?(x.errorCode=N.err_code,x.message=N.err_msg):x.data=N}}}}catch(I){console.warn(I),x.errorCode=-1,x.message=I.message}return console.debug(`${e} ${Date.now()-_}ms`),k!==!0&&await hm.defaultHandler(x,k),x}}}async function sj(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function aj(r,e){var f,p;const t=r.split(","),n=(p=(f=t[0])==null?void 0:f.match(/:(.*?);/))==null?void 0:p[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const lj={toBase64:sj,toFile:aj};exports.ABase=Ur;exports.ABaseStyleKeys=m2;exports.AButton=ji;exports.AButtonStyleKeys=y2;exports.AButtonTypes=W5;exports.ACheckBox=Qu;exports.ACheckBoxStyleKeys=S2;exports.AChip=bm;exports.AChipKeys=H2;exports.AChips=QT;exports.AClock=dE;exports.AColFrame=W2;exports.ADatePicker=Sm;exports.ADatePickerStyleKeys=D2;exports.ADatePickerTypes=B6;exports.ADateRangePicker=_m;exports.ADateRangePickerStyleKeys=M2;exports.ADialog=Z6;exports.ADialogStyleKeys=C2;exports.ADialogTypes=G6;exports.ADivideFrame=G2;exports.AEditor=FN;exports.AEditorStyleKeys=x2;exports.AFileBox=o8;exports.AFileBoxStyleKeys=R2;exports.AFileUploader=E8;exports.AFloatMenu=Y2;exports.AFloatMenuKeys=F2;exports.AFrameStyleKeys=N2;exports.AGrow=nu;exports.AIcon=Br;exports.AIconButton=pi;exports.AIconButtonStyleKeys=O2;exports.AIconButtonTypes=V5;exports.AIconHOC=J4;exports.AIcons=mm;exports.AInput=oc;exports.AInputStyleKeys=b2;exports.AInputTypes=AE;exports.AListView=j8;exports.AListViewStyleKeys=I2;exports.ALoadingBorder=Cm;exports.ALoadingBorderKeys=j2;exports.AMultiSelect=dk;exports.AMultiSelectStyleKeys=A2;exports.ANumInput=M8;exports.AOverflowFrame=wa;exports.AProgressBar=i2;exports.ARadioSelect=X8;exports.ARadioSelectKeys=q2;exports.ARowFrame=An;exports.ASelect=sc;exports.ASelectStyleKeys=w2;exports.ASelectTypes=qE;exports.ASpace=bn;exports.AStepper=Ek;exports.AStepperStyleKeys=L2;exports.ASwitch=c2;exports.ASwitchFrame=V2;exports.ASwitchStyleKeys=E2;exports.ATab=Q2;exports.ATabStyleKeys=k2;exports.ATabTypes=Bk;exports.ATable=ZR;exports.ATableStyleKeys=P2;exports.AText=ix;exports.ATextArea=o9;exports.ATextAreaStyleKeys=_2;exports.ATextAreaTypes=i9;exports.AThemeButton=yT;exports.AThemes=Hf;exports.ATooltip=l2;exports.ATooltipStyleKeys=v2;exports.ATree=_F;exports.ATreeStyleKeys=T2;exports.AWrap=ic;exports.AWrapKeys=B2;exports.AWrapTypes=J5;exports.ApiContext=PS;exports.BodyStyleKeys=g2;exports.CreateADC=e8;exports.DefaultOptionRenderer=J2;exports.EDir12=sf;exports.EDir4=_i;exports.FileSizeTrans=Qc;exports.Icons=ch;exports.IsCursorPointer=e2;exports.IsFixedShape=Q_;exports.IsInteractive=t2;exports.NoSelect=X_;exports.NoTransition=J_;exports.Resources=sn;exports.SetResources=h5;exports.alphanumericRegex=tE;exports.bound=qf;exports.cbF=Ir;exports.changeSemanticMode=ym;exports.componentStyleKeys=uT;exports.createEvent=Yc;exports.dateF=Yt;exports.dbF=Ns;exports.defaultPredicate=tx;exports.dlgF=t8;exports.emailIdRegex=nE;exports.emailRegex=rE;exports.fileF=lj;exports.getMonthsOptions=ed;exports.getYearsOptions=xm;exports.hangulRegex=oE;exports.hexRegex=iE;exports.noHanguljamoRegex=aE;exports.noSpaceRegex=sE;exports.numF=X2;exports.objF=rr;exports.paletteKeys=u2;exports.paletteModes=uh;exports.passwordRegex=cE;exports.refinedDesignTokens=Si;exports.sF=Ne;exports.semanticKeys=h2;exports.semanticModes=Ju;exports.setDir12Style=vm;exports.setDir12StyleElem=s2;exports.specialCharRegex=lE;exports.strF=K2;exports.tableF=nl;exports.textMeasurement=Jc;exports.treeF=il;exports.useADialogCore=J6;exports.useADialogCores=X6;exports.useDB=$2;exports.useEvent=nx;exports.useInit=ex;exports.useLayoutDB=U2;exports.useValues=dn;exports.uuidRegex=uE;