@ceed/ads 1.1.2 → 1.1.3
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/components/Select/Select.d.ts +18 -12
- package/dist/index.js +2 -2
- package/framer/index.js +5 -5
- package/package.json +2 -2
package/framer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var EB=Object.create;var Kp=Object.defineProperty,IB=Object.defineProperties,OB=Object.getOwnPropertyDescriptor,DB=Object.getOwnPropertyDescriptors,_B=Object.getOwnPropertyNames,Vd=Object.getOwnPropertySymbols,wB=Object.getPrototypeOf,ev=Object.prototype.hasOwnProperty,IP=Object.prototype.propertyIsEnumerable;var EP=(e,t,r)=>t in e?Kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))ev.call(t,r)&&EP(e,r,t[r]);if(Vd)for(var r of Vd(t))IP.call(t,r)&&EP(e,r,t[r]);return e},Q=(e,t)=>IB(e,DB(t));var he=(e,t)=>{var r={};for(var o in e)ev.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Vd)for(var o of Vd(e))t.indexOf(o)<0&&IP.call(e,o)&&(r[o]=e[o]);return r};var Le=(e,t)=>()=>(e&&(t=e(e=0)),t);var Kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_n=(e,t)=>{for(var r in t)Kp(e,r,{get:t[r],enumerable:!0})},OP=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of _B(t))!ev.call(e,n)&&n!==r&&Kp(e,n,{get:()=>t[n],enumerable:!(o=OB(t,n))||o.enumerable});return e};var wo=(e,t,r)=>(r=e!=null?EB(wB(e)):{},OP(t||!e||!e.__esModule?Kp(r,"default",{value:e,enumerable:!0}):r,e)),Va=e=>OP(Kp({},"__esModule",{value:!0}),e);function mr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var DP=Le(()=>{});var _P={};_n(_P,{default:()=>mr});var $a=Le(()=>{DP()});function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},m.apply(this,arguments)}var re=Le(()=>{});function $d(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jd=Le(()=>{});var BB,wP,tv=Le(()=>{jd();BB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wP=$d(function(e){return BB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});function MB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function NB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AP,BP=Le(()=>{AP=function(){function e(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(NB(this));var n=this.tags[this.tags.length-1];if(0)var a;if(this.isSpeedy){var i=MB(n);try{i.insertRule(o,i.cssRules.length)}catch(s){}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0},e}()});var hr,Xp,lt,Hd,sl,ll,MP,Ud,NP,Wd=Le(()=>{hr="-ms-",Xp="-moz-",lt="-webkit-",Hd="comm",sl="rule",ll="decl",MP="@import",Ud="@keyframes",NP="@layer"});function FP(e,t){return Lt(e,0)^45?(((t<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}function Gd(e){return e.trim()}function rv(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,r){return e.replace(t,r)}function Zp(e,t){return e.indexOf(t)}function Lt(e,t){return e.charCodeAt(t)|0}function ja(e,t,r){return e.slice(t,r)}function Ur(e){return e.length}function pl(e){return e.length}function cl(e,t){return t.push(e),e}function ov(e,t){return e.map(t).join("")}var LP,Zi,zP,ul=Le(()=>{LP=Math.abs,Zi=String.fromCharCode,zP=Object.assign});function Qp(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:Yd,column:dl,length:i,return:""}}function hl(e,t){return zP(Qp("",null,null,"",null,null,0),e,{length:-e.length},t)}function $P(){return Ut}function jP(){return Ut=Wr>0?Lt(ml,--Wr):0,dl--,Ut===10&&(dl=1,Yd--),Ut}function Gr(){return Ut=Wr<VP?Lt(ml,Wr++):0,dl++,Ut===10&&(dl=1,Yd++),Ut}function Bo(){return Lt(ml,Wr)}function ec(){return Wr}function yl(e,t){return ja(ml,e,t)}function fl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jd(e){return Yd=dl=1,VP=Ur(ml=e),Wr=0,[]}function qd(e){return ml="",e}function gl(e){return Gd(yl(Wr-1,nv(e===91?e+2:e===40?e+1:e)))}function HP(e){for(;(Ut=Bo())&&Ut<33;)Gr();return fl(e)>2||fl(Ut)>3?"":" "}function UP(e,t){for(;--t&&Gr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return yl(e,ec()+(t<6&&Bo()==32&&Gr()==32))}function nv(e){for(;Gr();)switch(Ut){case e:return Wr;case 34:case 39:e!==34&&e!==39&&nv(Ut);break;case 40:e===41&&nv(e);break;case 92:Gr();break}return Wr}function WP(e,t){for(;Gr()&&e+Ut!==57;)if(e+Ut===84&&Bo()===47)break;return"/*"+yl(t,Wr-1)+"*"+Zi(e===47?e:Gr())}function GP(e){for(;!fl(Bo());)Gr();return yl(e,Wr)}var Yd,dl,VP,Wr,Ut,ml,av=Le(()=>{ul();Yd=1,dl=1,VP=0,Wr=0,Ut=0,ml=""});function qP(e){return qd(Kd("",null,null,null,[""],e=Jd(e),0,[0],e))}function Kd(e,t,r,o,n,a,i,s,l){for(var p=0,c=0,u=i,d=0,f=0,y=0,h=1,v=1,b=1,x=0,g="",S=n,P=a,T=o,C=g;v;)switch(y=x,x=Gr()){case 40:if(y!=108&&Lt(C,u-1)==58){Zp(C+=nt(gl(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=gl(x);break;case 9:case 10:case 13:case 32:C+=HP(y);break;case 92:C+=UP(ec()-1,7);continue;case 47:switch(Bo()){case 42:case 47:cl(LB(WP(Gr(),ec()),t,r),l);break;default:C+="/"}break;case 123*h:s[p++]=Ur(C)*b;case 125*h:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+c:b==-1&&(C=nt(C,/\f/g,"")),f>0&&Ur(C)-u&&cl(f>32?JP(C+";",o,r,u-1):JP(nt(C," ","")+";",o,r,u-2),l);break;case 59:C+=";";default:if(cl(T=YP(C,t,r,p,c,n,s,g,S=[],P=[],u),a),x===123)if(c===0)Kd(C,t,T,T,S,a,u,s,P);else switch(d===99&&Lt(C,3)===110?100:d){case 100:case 108:case 109:case 115:Kd(e,T,T,o&&cl(YP(e,T,T,0,0,n,s,g,n,S=[],u),P),n,P,u,s,o?S:P);break;default:Kd(C,T,T,T,[""],P,0,s,P)}}p=c=f=0,h=b=1,g=C="",u=i;break;case 58:u=1+Ur(C),f=y;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&jP()==125)continue}switch(C+=Zi(x),x*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[p++]=(Ur(C)-1)*b,b=1;break;case 64:Bo()===45&&(C+=gl(Gr())),d=Bo(),c=u=Ur(g=C+=GP(ec())),x++;break;case 45:y===45&&Ur(C)==2&&(h=0)}}return a}function YP(e,t,r,o,n,a,i,s,l,p,c){for(var u=n-1,d=n===0?a:[""],f=pl(d),y=0,h=0,v=0;y<o;++y)for(var b=0,x=ja(e,u+1,u=LP(h=i[y])),g=e;b<f;++b)(g=Gd(h>0?d[b]+" "+x:nt(x,/&\f/g,d[b])))&&(l[v++]=g);return Qp(e,t,r,n===0?sl:s,l,p,c)}function LB(e,t,r){return Qp(e,t,r,Hd,Zi($P()),ja(e,2,-2),0)}function JP(e,t,r,o){return Qp(e,t,r,ll,ja(e,0,o),ja(e,o+1,-1),o)}var KP=Le(()=>{Wd();ul();av()});var XP=Le(()=>{});function Qi(e,t){for(var r="",o=pl(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function ZP(e,t,r,o){switch(e.type){case NP:if(e.children.length)break;case MP:case ll:return e.return=e.return||e.value;case Hd:return"";case Ud:return e.return=e.value+"{"+Qi(e.children,o)+"}";case sl:e.value=e.props.join(",")}return Ur(r=Qi(e.children,o))?e.return=e.value+"{"+r+"}":""}var QP=Le(()=>{Wd();ul()});function eC(e){var t=pl(e);return function(r,o,n,a){for(var i="",s=0;s<t;s++)i+=e[s](r,o,n,a)||"";return i}}function tC(e){return function(t){t.root||(t=t.return)&&e(t)}}var rC=Le(()=>{ul()});var oC=Le(()=>{Wd();ul();KP();XP();av();QP();rC()});var tc=Le(()=>{});function aC(e,t){switch(FP(e,t)){case 5103:return lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+Xp+e+hr+e+e;case 6828:case 4268:return lt+e+hr+e+e;case 6165:return lt+e+hr+"flex-"+e+e;case 5187:return lt+e+nt(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+hr+"flex-$1$2")+e;case 5443:return lt+e+hr+"flex-item-"+nt(e,/flex-|-self/,"")+e;case 4675:return lt+e+hr+"flex-line-pack"+nt(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+hr+nt(e,"shrink","negative")+e;case 5292:return lt+e+hr+nt(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+nt(e,"-grow","")+lt+e+hr+nt(e,"grow","positive")+e;case 4554:return lt+nt(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ur(e)-1-t>6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+Xp+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zp(e,"stretch")?aC(nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,Ur(e)-3-(~Zp(e,"!important")&&10))){case 107:return nt(e,":",":"+lt)+e;case 101:return nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(Lt(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+hr+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return lt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+hr+e+e}return e}var zB,FB,VB,nC,$B,jB,HB,UB,rc,oc=Le(()=>{BP();oC();tc();jd();zB=function(t,r,o){for(var n=0,a=0;n=a,a=Bo(),n===38&&a===12&&(r[o]=1),!fl(a);)Gr();return yl(t,Wr)},FB=function(t,r){var o=-1,n=44;do switch(fl(n)){case 0:n===38&&Bo()===12&&(r[o]=1),t[o]+=zB(Wr-1,r,o);break;case 2:t[o]+=gl(n);break;case 4:if(n===44){t[++o]=Bo()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Zi(n)}while(n=Gr());return t},VB=function(t,r){return qd(FB(Jd(t),r))},nC=new WeakMap,$B=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!nC.get(o))&&!n){nC.set(t,!0);for(var a=[],i=VB(r,a),s=o.props,l=0,p=0;l<i.length;l++)for(var c=0;c<s.length;c++,p++)t.props[p]=a[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},jB=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};HB=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case ll:t.return=aC(t.value,t.length);break;case Ud:return Qi([hl(t,{value:nt(t.value,"@","@"+lt)})],n);case sl:if(t.length)return ov(t.props,function(a){switch(rv(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qi([hl(t,{props:[nt(a,/:(read-\w+)/,":"+Xp+"$1")]})],n);case"::placeholder":return Qi([hl(t,{props:[nt(a,/:(plac\w+)/,":"+lt+"input-$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,":"+Xp+"$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,hr+"input-$1")]})],n)}return""})}},UB=[HB],rc=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||UB,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)a[v[b]]=!0;s.push(h)});var l,p=[$B,jB];{var c,u=[ZP,tC(function(h){c.insert(h)})],d=eC(p.concat(n,u)),f=function(v){return Qi(qP(v),d)};l=function(v,b,x,g){c=x,f(v?v+"{"+b.styles+"}":b.styles),g&&(y.inserted[b.name]=!0)}}var y={key:r,sheet:new AP({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return y.sheet.hydrate(s),y}});var sC=Kt(ct=>{"use strict";var ar=typeof Symbol=="function"&&Symbol.for,iv=ar?Symbol.for("react.element"):60103,sv=ar?Symbol.for("react.portal"):60106,Xd=ar?Symbol.for("react.fragment"):60107,Zd=ar?Symbol.for("react.strict_mode"):60108,Qd=ar?Symbol.for("react.profiler"):60114,ef=ar?Symbol.for("react.provider"):60109,tf=ar?Symbol.for("react.context"):60110,lv=ar?Symbol.for("react.async_mode"):60111,rf=ar?Symbol.for("react.concurrent_mode"):60111,of=ar?Symbol.for("react.forward_ref"):60112,nf=ar?Symbol.for("react.suspense"):60113,WB=ar?Symbol.for("react.suspense_list"):60120,af=ar?Symbol.for("react.memo"):60115,sf=ar?Symbol.for("react.lazy"):60116,GB=ar?Symbol.for("react.block"):60121,YB=ar?Symbol.for("react.fundamental"):60117,JB=ar?Symbol.for("react.responder"):60118,qB=ar?Symbol.for("react.scope"):60119;function ho(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iv:switch(e=e.type,e){case lv:case rf:case Xd:case Qd:case Zd:case nf:return e;default:switch(e=e&&e.$$typeof,e){case tf:case of:case sf:case af:case ef:return e;default:return t}}case sv:return t}}}function iC(e){return ho(e)===rf}ct.AsyncMode=lv;ct.ConcurrentMode=rf;ct.ContextConsumer=tf;ct.ContextProvider=ef;ct.Element=iv;ct.ForwardRef=of;ct.Fragment=Xd;ct.Lazy=sf;ct.Memo=af;ct.Portal=sv;ct.Profiler=Qd;ct.StrictMode=Zd;ct.Suspense=nf;ct.isAsyncMode=function(e){return iC(e)||ho(e)===lv};ct.isConcurrentMode=iC;ct.isContextConsumer=function(e){return ho(e)===tf};ct.isContextProvider=function(e){return ho(e)===ef};ct.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iv};ct.isForwardRef=function(e){return ho(e)===of};ct.isFragment=function(e){return ho(e)===Xd};ct.isLazy=function(e){return ho(e)===sf};ct.isMemo=function(e){return ho(e)===af};ct.isPortal=function(e){return ho(e)===sv};ct.isProfiler=function(e){return ho(e)===Qd};ct.isStrictMode=function(e){return ho(e)===Zd};ct.isSuspense=function(e){return ho(e)===nf};ct.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xd||e===rf||e===Qd||e===Zd||e===nf||e===WB||typeof e=="object"&&e!==null&&(e.$$typeof===sf||e.$$typeof===af||e.$$typeof===ef||e.$$typeof===tf||e.$$typeof===of||e.$$typeof===YB||e.$$typeof===JB||e.$$typeof===qB||e.$$typeof===GB)};ct.typeOf=ho});var pC=Kt((ZZ,lC)=>{"use strict";lC.exports=sC()});var uv=Kt((QZ,hC)=>{"use strict";var pv=pC(),KB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},XB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ZB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cv={};cv[pv.ForwardRef]=ZB;cv[pv.Memo]=fC;function cC(e){return pv.isMemo(e)?fC:cv[e.$$typeof]||KB}var QB=Object.defineProperty,eM=Object.getOwnPropertyNames,uC=Object.getOwnPropertySymbols,tM=Object.getOwnPropertyDescriptor,rM=Object.getPrototypeOf,dC=Object.prototype;function mC(e,t,r){if(typeof t!="string"){if(dC){var o=rM(t);o&&o!==dC&&mC(e,o,r)}var n=eM(t);uC&&(n=n.concat(uC(t)));for(var a=cC(e),i=cC(t),s=0;s<n.length;++s){var l=n[s];if(!XB[l]&&!(r&&r[l])&&!(i&&i[l])&&!(a&&a[l])){var p=tM(t,l);try{QB(e,l,p)}catch(c){}}}}return e}hC.exports=mC});function nc(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):o+=n+" "}),o}var oM,vl,bl,xl=Le(()=>{oM=!0;vl=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||oM===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},bl=function(t,r,o){vl(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+n:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}}});function yC(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gC=Le(()=>{});var vC,bC=Le(()=>{vC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}});function ac(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return wn={name:r.name,styles:r.styles,next:wn},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)wn={name:o.name,styles:o.styles,next:wn},o=o.next;var n=r.styles+";";return n}return iM(e,t,r)}case"function":{if(e!==void 0){var a=wn,i=r(e);return wn=a,ac(e,t,i)}break}case"string":if(0)var s,l;break}if(t==null)return r;var p=t[r];return p!==void 0?p:r}function iM(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=ac(e,t,r[n])+";";else for(var a in r){var i=r[a];if(typeof i!="object")t!=null&&t[i]!==void 0?o+=a+"{"+t[i]+"}":xC(i)&&(o+=dv(a)+":"+TC(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)xC(i[s])&&(o+=dv(a)+":"+TC(a,i[s])+";");else{var l=ac(e,t,i);switch(a){case"animation":case"animationName":{o+=dv(a)+":"+l+";";break}default:o+=a+"{"+l+"}"}}}return o}var nM,aM,CC,xC,dv,TC,PC,wn,es,Tl=Le(()=>{gC();bC();jd();nM=/[A-Z]|^ms/g,aM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,CC=function(t){return t.charCodeAt(1)===45},xC=function(t){return t!=null&&typeof t!="boolean"},dv=$d(function(e){return CC(e)?e:e.replace(nM,"-$&").toLowerCase()}),TC=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aM,function(o,n,a){return wn={name:n,styles:a,next:wn},n})}return vC[t]!==1&&!CC(t)&&typeof r=="number"&&r!==0?r+"px":r};PC=/label:\s*([^\s;\n{]+)\s*(;|$)/g,es=function(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,a="";wn=void 0;var i=t[0];i==null||i.raw===void 0?(n=!1,a+=ac(o,r,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=ac(o,r,t[s]),n&&(a+=i[s]);var l;PC.lastIndex=0;for(var p="",c;(c=PC.exec(a))!==null;)p+="-"+c[1];var u=yC(a)+p;return{name:u,styles:a,next:wn}}});import*as ic from"react";var sM,SC,sc,fv,Pl=Le(()=>{sM=function(t){return t()},SC=ic.useInsertionEffect?ic.useInsertionEffect:!1,sc=SC||sM,fv=SC||ic.useLayoutEffect});import*as yo from"react";import{useContext as kC,forwardRef as lM}from"react";var hv,ts,lf,yv,rs,Mo,mv,lc,pM,cM,pc,pf=Le(()=>{oc();re();tc();xl();Tl();Pl();hv=!0,ts={}.hasOwnProperty,lf=yo.createContext(typeof HTMLElement<"u"?rc({key:"css"}):null),yv=lf.Provider,rs=function(t){return lM(function(r,o){var n=kC(lf);return t(r,n,o)})};hv||(rs=function(t){return function(r){var o=kC(lf);return o===null?(o=rc({key:"css"}),yo.createElement(lf.Provider,{value:o},t(r,o))):t(r,o)}});Mo=yo.createContext({}),mv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lc=function(t,r){var o={};for(var n in r)ts.call(r,n)&&(o[n]=r[n]);if(o[mv]=t,0)var a;return o},pM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),sc(function(){return bl(r,o,n)}),null},cM=rs(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[mv],a=[o],i="";typeof e.className=="string"?i=nc(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=es(a,void 0,yo.useContext(Mo));if(0)var l;i+=t.key+"-"+s.name;var p={};for(var c in e)ts.call(e,c)&&c!=="css"&&c!==mv&&(p[c]=e[c]);return p.ref=r,p.className=i,yo.createElement(yo.Fragment,null,yo.createElement(pM,{cache:t,serialized:s,isStringTag:typeof n=="string"}),yo.createElement(n,p))}),pc=cM});import*as ea from"react";function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es(t)}var IQ,RC,EC,An,os=Le(()=>{pf();pf();xl();Pl();Tl();oc();re();tc();IQ=wo(uv()),RC=function(t,r){var o=arguments;if(r==null||!ts.call(r,"css"))return ea.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=pc,a[1]=lc(t,r);for(var i=2;i<n;i++)a[i]=o[i];return ea.createElement.apply(null,a)},EC=rs(function(e,t){var r=e.styles,o=es([r],void 0,ea.useContext(Mo));if(!hv){for(var n,a=o.name,i=o.styles,s=o.next;s!==void 0;)a+=" "+s.name,i+=s.styles,s=s.next;var l=t.compat===!0,p=t.insert("",{name:a,styles:i},t.sheet,l);return l?null:ea.createElement("style",(n={},n["data-emotion"]=t.key+"-global "+a,n.dangerouslySetInnerHTML={__html:p},n.nonce=t.sheet.nonce,n))}var c=ea.useRef();return fv(function(){var u=t.key+"-global",d=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,y=document.querySelector('style[data-emotion="'+u+" "+o.name+'"]');return t.sheet.tags.length&&(d.before=t.sheet.tags[0]),y!==null&&(f=!0,y.setAttribute("data-emotion",u),d.hydrate([y])),c.current=[d,f],function(){d.flush()}},[t]),fv(function(){var u=c.current,d=u[0],f=u[1];if(f){u[1]=!1;return}if(o.next!==void 0&&bl(t,o.next,!0),d.tags.length){var y=d.tags[d.tags.length-1].nextElementSibling;d.before=y,d.flush()}t.insert("",o,d,!1)},[t,o.name]),null});An=function(){var t=No.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}});import*as Ha from"react";var uM,dM,IC,OC,fM,DC,_C=Le(()=>{re();tv();os();xl();Tl();Pl();uM=wP,dM=function(t){return t!=="theme"},IC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uM:dM},OC=function(t,r,o){var n;if(r){var a=r.shouldForwardProp;n=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n},fM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),sc(function(){return bl(r,o,n)}),null},DC=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=OC(t,r,o),l=s||IC(n),p=!l("as");return function(){var c=arguments,u=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)u.push.apply(u,c);else{u.push(c[0][0]);for(var d=c.length,f=1;f<d;f++)u.push(c[f],c[0][f])}var y=rs(function(h,v,b){var x=p&&h.as||n,g="",S=[],P=h;if(h.theme==null){P={};for(var T in h)P[T]=h[T];P.theme=Ha.useContext(Mo)}typeof h.className=="string"?g=nc(v.registered,S,h.className):h.className!=null&&(g=h.className+" ");var C=es(u.concat(S),v.registered,P);g+=v.key+"-"+C.name,i!==void 0&&(g+=" "+i);var k=p&&s===void 0?IC(x):l,I={};for(var D in h)p&&D==="as"||k(D)&&(I[D]=h[D]);return I.className=g,I.ref=b,Ha.createElement(Ha.Fragment,null,Ha.createElement(fM,{cache:v,serialized:C,isStringTag:typeof x=="string"}),Ha.createElement(x,I))});return y.displayName=a!==void 0?a:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=u,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(h,v){return e(h,m({},r,v,{shouldForwardProp:OC(y,v,!0)})).apply(void 0,u)},y}}});import"react";var mM,cf,wC=Le(()=>{_C();re();tv();xl();Tl();Pl();mM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],cf=DC.bind();mM.forEach(function(e){cf[e]=cf(e)})});var BC=Kt((GQ,AC)=>{"use strict";var hM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";AC.exports=hM});var zC=Kt((YQ,LC)=>{"use strict";var yM=BC();function MC(){}function NC(){}NC.resetWarningCache=MC;LC.exports=function(){function e(o,n,a,i,s,l){if(l!==yM){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:NC,resetWarningCache:MC};return r.PropTypes=r,r}});var VC=Kt((KQ,FC)=>{FC.exports=zC()();var JQ,qQ});import"react";import{jsx as gM}from"react/jsx-runtime";function cc(e){let{injectFirst:t,children:r}=e;return t&&gv?gM(yv,{value:gv,children:r}):r}var gv,$C=Le(()=>{"use client";os();oc();typeof document=="object"&&(gv=rc({key:"css",prepend:!0}))});var jC=Le(()=>{"use client";$C()});import"react";import{jsx as vM}from"react/jsx-runtime";function bM(e){return e==null||Object.keys(e).length===0}function Bn(e){let{styles:t,defaultTheme:r={}}=e;return vM(EC,{styles:typeof t=="function"?n=>t(bM(n)?r:n):t})}var HC=Le(()=>{"use client";os()});var UC=Le(()=>{"use client";HC()});var WC={};_n(WC,{GlobalStyles:()=>Bn,StyledEngineProvider:()=>cc,ThemeContext:()=>Mo,css:()=>No,default:()=>Cl,internal_processStyles:()=>vv,keyframes:()=>An});function Cl(e,t){return cf(e,t)}var vv,ta=Le(()=>{"use client";wC();os();jC();UC();vv=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}});function H(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var be=Le(()=>{});function pn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function GC(e){if(!pn(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=GC(e[r])}),t}function pt(e,t,r={clone:!0}){let o=r.clone?m({},e):e;return pn(e)&&pn(t)&&Object.keys(t).forEach(n=>{n!=="__proto__"&&(pn(t[n])&&n in e&&pn(e[n])?o[n]=pt(e[n],t[n],r):r.clone?o[n]=pn(t[n])?GC(t[n]):t[n]:o[n]=t[n])}),o}var bv=Le(()=>{re()});var YC={};_n(YC,{default:()=>pt,isPlainObject:()=>pn});var ro=Le(()=>{bv();bv()});function Ua(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,n=H(e,xM),a=TM(t),i=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-o/100}${r})`}function p(d,f){let y=i.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:f)-o/100}${r})`}function c(d){return i.indexOf(d)+1<i.length?p(d,i[i.indexOf(d)+1]):s(d)}function u(d){let f=i.indexOf(d);return f===0?s(i[1]):f===i.length-1?l(i[f]):p(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return m({keys:i,values:a,up:s,down:l,between:p,only:c,not:u,unit:r},n)}var xM,TM,uf=Le(()=>{be();re();xM=["values","unit","step"],TM=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>m({},r,{[o.key]:o.val}),{})}});var PM,JC,qC=Le(()=>{PM={borderRadius:4},JC=PM});function CM(e,t){return t?pt(e,t,{clone:!1}):e}var Wa,df=Le(()=>{ro();Wa=CM});function ir(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let a=o.breakpoints||KC;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){let a=o.breakpoints||KC;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||ff).indexOf(s)!==-1){let l=a.up(s);i[l]=r(t[s],s)}else{let l=s;i[l]=t[l]}return i},{})}return r(t)}function xv(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((o,n)=>{let a=e.up(n);return o[a]={},o},{}))||{}}function Tv(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function XC(e,...t){let r=xv(e),o=[r,...t].reduce((n,a)=>pt(n,a),{});return Tv(Object.keys(r),o)}function SM(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,a)=>{a<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function mf({values:e,breakpoints:t,base:r}){let o=r||SM(e,t),n=Object.keys(o);if(n.length===0)return e;let a;return n.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}var ff,KC,Ga=Le(()=>{re();ro();ff={xs:0,sm:600,md:900,lg:1200,xl:1536},KC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ff[e]}px)`}});function j(e){if(typeof e!="string")throw new Error(mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=Le(()=>{$a()});var QC={};_n(QC,{default:()=>j});var Sl=Le(()=>{ZC()});function go(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function kl(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=go(e,r)||o,t&&(n=t(n,o,e)),n}function kM(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,a=i=>{if(i[t]==null)return null;let s=i[t],l=i.theme,p=go(l,o)||{};return ir(i,s,u=>{let d=kl(p,n,u);return u===d&&typeof u=="string"&&(d=kl(p,n,`${t}${u==="default"?"":j(u)}`,u)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}var gt,Ya=Le(()=>{Sl();Ga();gt=kM});function Pv(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var eS=Le(()=>{});function ns(e,t,r,o){var n;let a=(n=go(e,t,!1))!=null?n:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function uc(e){return ns(e,"spacing",8,"spacing")}function Mn(e,t){if(typeof t=="string"||t==null)return t;let r=Math.abs(t),o=e(r);return t>=0?o:typeof o=="number"?-o:`-${o}`}function OM(e,t){return r=>e.reduce((o,n)=>(o[n]=Mn(t,r),o),{})}function DM(e,t,r,o){if(t.indexOf(r)===-1)return null;let n=IM(r),a=OM(n,o),i=e[r];return ir(e,i,a)}function kv(e,t){let r=uc(e.theme);return Object.keys(e).map(o=>DM(e,t,o,r)).reduce(Wa,{})}function Rt(e){return kv(e,Cv)}function Et(e){return kv(e,Sv)}function oS(e){return kv(e,rS)}var RM,EM,tS,IM,Cv,Sv,rS,as=Le(()=>{Ga();Ya();df();eS();RM={m:"margin",p:"padding"},EM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IM=Pv(e=>{if(e.length>2)if(tS[e])e=tS[e];else return[e];let[t,r]=e.split(""),o=RM[t],n=EM[r]||"";return Array.isArray(n)?n.map(a=>o+a):[o+n]}),Cv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rS=[...Cv,...Sv];Rt.propTypes={};Rt.filterProps=Cv;Et.propTypes={};Et.filterProps=Sv;oS.propTypes={};oS.filterProps=rS});function Rl(e=8){if(e.mui)return e;let t=uc({spacing:e}),r=(...o)=>(o.length===0?[1]:o).map(a=>{let i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}var Rv=Le(()=>{as()});function _M(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(a=>{o[a]=n}),o),{}),r=o=>Object.keys(o).reduce((n,a)=>t[a]?Wa(n,t[a](o)):n,{});return r.propTypes={},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var Ja,dc=Le(()=>{df();Ja=_M});function vo(e){return typeof e!="number"?e:`${e}px solid`}function Lo(e,t){return gt({prop:e,themeKey:"borders",transform:t})}var wM,AM,BM,MM,NM,LM,zM,FM,VM,$M,jM,HM,fc,Jee,Ev=Le(()=>{Ya();dc();as();Ga();wM=Lo("border",vo),AM=Lo("borderTop",vo),BM=Lo("borderRight",vo),MM=Lo("borderBottom",vo),NM=Lo("borderLeft",vo),LM=Lo("borderColor"),zM=Lo("borderTopColor"),FM=Lo("borderRightColor"),VM=Lo("borderBottomColor"),$M=Lo("borderLeftColor"),jM=Lo("outline",vo),HM=Lo("outlineColor"),fc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ns(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Mn(t,o)});return ir(e,e.borderRadius,r)}return null};fc.propTypes={};fc.filterProps=["borderRadius"];Jee=Ja(wM,AM,BM,MM,NM,LM,zM,FM,VM,$M,fc,jM,HM)});var mc,hc,yc,UM,WM,GM,YM,JM,qM,KM,XM,ZM,ete,Iv=Le(()=>{Ya();dc();as();Ga();mc=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ns(e.theme,"spacing",8,"gap"),r=o=>({gap:Mn(t,o)});return ir(e,e.gap,r)}return null};mc.propTypes={};mc.filterProps=["gap"];hc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ns(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Mn(t,o)});return ir(e,e.columnGap,r)}return null};hc.propTypes={};hc.filterProps=["columnGap"];yc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ns(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Mn(t,o)});return ir(e,e.rowGap,r)}return null};yc.propTypes={};yc.filterProps=["rowGap"];UM=gt({prop:"gridColumn"}),WM=gt({prop:"gridRow"}),GM=gt({prop:"gridAutoFlow"}),YM=gt({prop:"gridAutoColumns"}),JM=gt({prop:"gridAutoRows"}),qM=gt({prop:"gridTemplateColumns"}),KM=gt({prop:"gridTemplateRows"}),XM=gt({prop:"gridTemplateAreas"}),ZM=gt({prop:"gridArea"}),ete=Ja(mc,hc,yc,UM,WM,GM,YM,JM,qM,KM,XM,ZM)});function is(e,t){return t==="grey"?t:e}var QM,eN,tN,nte,Ov=Le(()=>{Ya();dc();QM=gt({prop:"color",themeKey:"palette",transform:is}),eN=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:is}),tN=gt({prop:"backgroundColor",themeKey:"palette",transform:is}),nte=Ja(QM,eN,tN)});function oo(e){return e<=1&&e!==0?`${e*100}%`:e}var rN,hf,oN,nN,aN,iN,pte,cte,sN,ute,Dv=Le(()=>{Ya();dc();Ga();rN=gt({prop:"width",transform:oo}),hf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var o,n;let a=((o=e.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[r])||ff[r];return a?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:oo(r)}};return ir(e,e.maxWidth,t)}return null};hf.filterProps=["maxWidth"];oN=gt({prop:"minWidth",transform:oo}),nN=gt({prop:"height",transform:oo}),aN=gt({prop:"maxHeight",transform:oo}),iN=gt({prop:"minHeight",transform:oo}),pte=gt({prop:"size",cssProperty:"width",transform:oo}),cte=gt({prop:"size",cssProperty:"height",transform:oo}),sN=gt({prop:"boxSizing"}),ute=Ja(rN,hf,oN,nN,aN,iN,sN)});var lN,bo,gc=Le(()=>{as();Ev();Iv();Ov();Dv();lN={border:{themeKey:"borders",transform:vo},borderTop:{themeKey:"borders",transform:vo},borderRight:{themeKey:"borders",transform:vo},borderBottom:{themeKey:"borders",transform:vo},borderLeft:{themeKey:"borders",transform:vo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fc},color:{themeKey:"palette",transform:is},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:is},backgroundColor:{themeKey:"palette",transform:is},p:{style:Et},pt:{style:Et},pr:{style:Et},pb:{style:Et},pl:{style:Et},px:{style:Et},py:{style:Et},padding:{style:Et},paddingTop:{style:Et},paddingRight:{style:Et},paddingBottom:{style:Et},paddingLeft:{style:Et},paddingX:{style:Et},paddingY:{style:Et},paddingInline:{style:Et},paddingInlineStart:{style:Et},paddingInlineEnd:{style:Et},paddingBlock:{style:Et},paddingBlockStart:{style:Et},paddingBlockEnd:{style:Et},m:{style:Rt},mt:{style:Rt},mr:{style:Rt},mb:{style:Rt},ml:{style:Rt},mx:{style:Rt},my:{style:Rt},margin:{style:Rt},marginTop:{style:Rt},marginRight:{style:Rt},marginBottom:{style:Rt},marginLeft:{style:Rt},marginX:{style:Rt},marginY:{style:Rt},marginInline:{style:Rt},marginInlineStart:{style:Rt},marginInlineEnd:{style:Rt},marginBlock:{style:Rt},marginBlockStart:{style:Rt},marginBlockEnd:{style:Rt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:mc},rowGap:{style:yc},columnGap:{style:hc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oo},maxWidth:{style:hf},minWidth:{transform:oo},height:{transform:oo},maxHeight:{transform:oo},minHeight:{transform:oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},bo=lN});function pN(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function cN(e,t){return typeof e=="function"?e(t):e}function yf(){function e(r,o,n,a){let i={[r]:o,theme:n},s=a[r];if(!s)return{[r]:o};let{cssProperty:l=r,themeKey:p,transform:c,style:u}=s;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[r]:o};let d=go(n,p)||{};return u?u(i):ir(i,o,y=>{let h=kl(d,c,y);return y===h&&typeof y=="string"&&(h=kl(d,c,`${r}${y==="default"?"":j(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){var o;let{sx:n,theme:a={}}=r||{};if(!n)return null;let i=(o=a.unstable_sxConfig)!=null?o:bo;function s(l){let p=l;if(typeof l=="function")p=l(a);else if(typeof l!="object")return l;if(!p)return null;let c=xv(a.breakpoints),u=Object.keys(c),d=c;return Object.keys(p).forEach(f=>{let y=cN(p[f],a);if(y!=null)if(typeof y=="object")if(i[f])d=Wa(d,e(f,y,a,i));else{let h=ir({theme:a},y,v=>({[f]:v}));pN(h,y)?d[f]=t({sx:y,theme:a}):d=Wa(d,h)}else d=Wa(d,e(f,y,a,i))}),Tv(u,d)}return Array.isArray(n)?n.map(s):s(n)}return t}var nS,xo,gf=Le(()=>{Sl();df();Ya();Ga();gc();nS=yf();nS.filterProps=["sx"];xo=nS});function ss(e,t){let r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}var _v=Le(()=>{});function dN(e={},...t){let{breakpoints:r={},palette:o={},spacing:n,shape:a={}}=e,i=H(e,uN),s=Ua(r),l=Rl(n),p=pt({breakpoints:s,direction:"ltr",components:{},palette:m({mode:"light"},o),spacing:l,shape:m({},JC,a)},i);return p.applyStyles=ss,p=t.reduce((c,u)=>pt(c,u),p),p.unstable_sxConfig=m({},bo,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(u){return xo({sx:u,theme:this})},p}var uN,zo,aS=Le(()=>{re();be();ro();uf();qC();Rv();gf();gc();_v();uN=["breakpoints","palette","spacing","shape"];zo=dN});var iS={};_n(iS,{default:()=>zo,private_createBreakpoints:()=>Ua,unstable_applyStyles:()=>ss});var qa=Le(()=>{aS();uf();_v()});function no(e){let{sx:t}=e,r=H(e,bN),{systemProps:o,otherProps:n}=xN(r),a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...i)=>{let s=t(...i);return pn(s)?m({},o,s):o}:a=m({},o,t),m({},n,{sx:a})}var bN,xN,lS=Le(()=>{re();be();ro();gc();bN=["sx"],xN=e=>{var t,r;let o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:bo;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o}});var pS={};_n(pS,{default:()=>xo,extendSxProp:()=>no,unstable_createStyleFunctionSx:()=>yf,unstable_defaultSxConfig:()=>bo});var Ka=Le(()=>{gf();gf();lS();gc()});var mS=Kt(ut=>{"use strict";var Av=Symbol.for("react.element"),Bv=Symbol.for("react.portal"),Tf=Symbol.for("react.fragment"),Pf=Symbol.for("react.strict_mode"),Cf=Symbol.for("react.profiler"),Sf=Symbol.for("react.provider"),kf=Symbol.for("react.context"),RN=Symbol.for("react.server_context"),Rf=Symbol.for("react.forward_ref"),Ef=Symbol.for("react.suspense"),If=Symbol.for("react.suspense_list"),Of=Symbol.for("react.memo"),Df=Symbol.for("react.lazy"),EN=Symbol.for("react.offscreen"),fS;fS=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Av:switch(e=e.type,e){case Tf:case Cf:case Pf:case Ef:case If:return e;default:switch(e=e&&e.$$typeof,e){case RN:case kf:case Rf:case Df:case Of:case Sf:return e;default:return t}}case Bv:return t}}}ut.ContextConsumer=kf;ut.ContextProvider=Sf;ut.Element=Av;ut.ForwardRef=Rf;ut.Fragment=Tf;ut.Lazy=Df;ut.Memo=Of;ut.Portal=Bv;ut.Profiler=Cf;ut.StrictMode=Pf;ut.Suspense=Ef;ut.SuspenseList=If;ut.isAsyncMode=function(){return!1};ut.isConcurrentMode=function(){return!1};ut.isContextConsumer=function(e){return Fo(e)===kf};ut.isContextProvider=function(e){return Fo(e)===Sf};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Av};ut.isForwardRef=function(e){return Fo(e)===Rf};ut.isFragment=function(e){return Fo(e)===Tf};ut.isLazy=function(e){return Fo(e)===Df};ut.isMemo=function(e){return Fo(e)===Of};ut.isPortal=function(e){return Fo(e)===Bv};ut.isProfiler=function(e){return Fo(e)===Cf};ut.isStrictMode=function(e){return Fo(e)===Pf};ut.isSuspense=function(e){return Fo(e)===Ef};ut.isSuspenseList=function(e){return Fo(e)===If};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tf||e===Cf||e===Pf||e===Ef||e===If||e===EN||typeof e=="object"&&e!==null&&(e.$$typeof===Df||e.$$typeof===Of||e.$$typeof===Sf||e.$$typeof===kf||e.$$typeof===Rf||e.$$typeof===fS||e.getModuleId!==void 0)};ut.typeOf=Fo});var yS=Kt((Ore,hS)=>{"use strict";hS.exports=mS()});function vS(e){let t=`${e}`.match(IN);return t&&t[1]||""}function bS(e,t=""){return e.displayName||e.name||vS(e)||t}function gS(e,t,r){let o=bS(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function Mv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _f.ForwardRef:return gS(e,e.render,"ForwardRef");case _f.Memo:return gS(e,e.type,"memo");default:return}}}var _f,IN,Nv=Le(()=>{_f=wo(yS()),IN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/});var xS={};_n(xS,{default:()=>Mv,getFunctionName:()=>vS});var TS=Le(()=>{Nv();Nv()});function FN(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ra,PS=Le(()=>{ra=FN});var CS={};_n(CS,{default:()=>ra});var zv=Le(()=>{PS()});var Dx=Kt((RWe,gu)=>{function FW(e){return e&&e.__esModule?e:{default:e}}gu.exports=FW,gu.exports.__esModule=!0,gu.exports.default=gu.exports});var xO=Kt(wt=>{"use strict";var mO=Dx();Object.defineProperty(wt,"__esModule",{value:!0});wt.alpha=vO;wt.blend=qW;wt.colorChannel=void 0;wt.darken=wx;wt.decomposeColor=Qo;wt.emphasize=JW;wt.getContrastRatio=UW;wt.getLuminance=jh;wt.hexToRgb=hO;wt.hslToRgb=gO;wt.lighten=Ax;wt.private_safeAlpha=WW;wt.private_safeColorChannel=void 0;wt.private_safeDarken=GW;wt.private_safeEmphasize=bO;wt.private_safeLighten=YW;wt.recomposeColor=vp;wt.rgbToHex=HW;var fO=mO(($a(),Va(_P))),VW=mO((zv(),Va(CS)));function _x(e,t=0,r=1){return(0,VW.default)(e,t,r)}function hO(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function $W(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function Qo(e){if(e.type)return e;if(e.charAt(0)==="#")return Qo(hO(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,fO.default)(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error((0,fO.default)(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var yO=e=>{let t=Qo(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};wt.colorChannel=yO;var jW=(e,t)=>{try{return yO(e)}catch(r){return e}};wt.private_safeColorChannel=jW;function vp(e){let{type:t,colorSpace:r}=e,{values:o}=e;return t.indexOf("rgb")!==-1?o=o.map((n,a)=>a<3?parseInt(n,10):n):t.indexOf("hsl")!==-1&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.indexOf("color")!==-1?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function HW(e){if(e.indexOf("#")===0)return e;let{values:t}=Qo(e);return`#${t.map((r,o)=>$W(o===3?Math.round(255*r):r)).join("")}`}function gO(e){e=Qo(e);let{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,a=o*Math.min(n,1-n),i=(p,c=(p+r/30)%12)=>n-a*Math.max(Math.min(c-3,9-c,1),-1),s="rgb",l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),vp({type:s,values:l})}function jh(e){e=Qo(e);let t=e.type==="hsl"||e.type==="hsla"?Qo(gO(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function UW(e,t){let r=jh(e),o=jh(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function vO(e,t){return e=Qo(e),t=_x(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vp(e)}function WW(e,t,r){try{return vO(e,t)}catch(o){return e}}function wx(e,t){if(e=Qo(e),t=_x(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return vp(e)}function GW(e,t,r){try{return wx(e,t)}catch(o){return e}}function Ax(e,t){if(e=Qo(e),t=_x(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vp(e)}function YW(e,t,r){try{return Ax(e,t)}catch(o){return e}}function JW(e,t=.15){return jh(e)>.5?wx(e,t):Ax(e,t)}function bO(e,t,r){try{return bO(e,t)}catch(o){return e}}function qW(e,t,r,o=1){let n=(l,p)=>Math.round((l**(1/o)*(1-r)+p**(1/o)*r)**o),a=Qo(e),i=Qo(t),s=[n(a.values[0],i.values[0]),n(a.values[1],i.values[1]),n(a.values[2],i.values[2])];return vp({type:"rgb",values:s})}});var DO=Kt((S9e,Sa)=>{function Fx(){return Sa.exports=Fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports,Fx.apply(this,arguments)}Sa.exports=Fx,Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports});var _O=Kt((k9e,vu)=>{function P9(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}vu.exports=P9,vu.exports.__esModule=!0,vu.exports.default=vu.exports});var BO=Kt(Cp=>{"use strict";var Pp=Dx();Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=M9;Cp.shouldForwardProp=Gh;Cp.systemDefaultTheme=void 0;var en=Pp(DO()),Vx=Pp(_O()),wO=O9((ta(),Va(WC))),C9=(ro(),Va(YC)),R9e=Pp((Sl(),Va(QC))),E9e=Pp((TS(),Va(xS))),S9=Pp((qa(),Va(iS))),k9=Pp((Ka(),Va(pS))),R9=["ownerState"],E9=["variants"],I9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AO(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(AO=function(o){return o?r:t})(e)}function O9(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=AO(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function D9(e){return Object.keys(e).length===0}function _9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var w9=Cp.systemDefaultTheme=(0,S9.default)(),A9=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wh({defaultTheme:e,theme:t,themeId:r}){return D9(t)?e:t[r]||t}function B9(e){return e?(t,r)=>r[e]:null}function Yh(e,t){let{ownerState:r}=t,o=(0,Vx.default)(t,R9),n=typeof e=="function"?e((0,en.default)({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Yh(a,(0,en.default)({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=(0,Vx.default)(n,E9);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props((0,en.default)({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,en.default)({ownerState:r},o,r)):l.style))}),s}return n}function M9(e={}){let{themeId:t,defaultTheme:r=w9,rootShouldForwardProp:o=Gh,slotShouldForwardProp:n=Gh}=e,a=i=>(0,k9.default)((0,en.default)({},i,{theme:Wh((0,en.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,wO.internal_processStyles)(i,P=>P.filter(T=>!(T!=null&&T.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=B9(A9(p))}=s,f=(0,Vx.default)(s,I9),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Gh;p==="Root"||p==="root"?b=o:p?b=n:_9(i)&&(b=void 0);let x=(0,wO.default)(i,(0,en.default)({shouldForwardProp:b,label:v},f)),g=P=>typeof P=="function"&&P.__emotion_real!==P||(0,C9.isPlainObject)(P)?T=>Yh(P,(0,en.default)({},T,{theme:Wh({theme:T.theme,defaultTheme:r,themeId:t})})):P,S=(P,...T)=>{let C=g(P),k=T?T.map(g):[];l&&d&&k.push(M=>{let B=Wh((0,en.default)({},M,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[l]||!B.components[l].styleOverrides)return null;let A=B.components[l].styleOverrides,$={};return Object.entries(A).forEach(([N,_])=>{$[N]=Yh(_,(0,en.default)({},M,{theme:B}))}),d(M,$)}),l&&!y&&k.push(M=>{var B;let A=Wh((0,en.default)({},M,{defaultTheme:r,themeId:t})),$=A==null||(B=A.components)==null||(B=B[l])==null?void 0:B.variants;return Yh({variants:$},(0,en.default)({},M,{theme:A}))}),h||k.push(a);let I=k.length-T.length;if(Array.isArray(P)&&I>0){let M=new Array(I).fill("");C=[...P,...M],C.raw=[...P.raw,...M]}let D=x(C,...k);return i.muiName&&(D.muiName=i.muiName),D};return x.withConfig&&(S.withConfig=x.withConfig),S}}});var MT=Kt(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.bind=void 0;function z8(e,t){var r=t.type,o=t.listener,n=t.options;return e.addEventListener(r,o,n),function(){e.removeEventListener(r,o,n)}}Yy.bind=z8});var D_=Kt(Np=>{"use strict";var Mp=Np&&Np.__assign||function(){return Mp=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Mp.apply(this,arguments)};Object.defineProperty(Np,"__esModule",{value:!0});Np.bindAll=void 0;var F8=MT();function O_(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function V8(e,t){if(t==null)return e;var r=Mp(Mp({},e),{options:Mp(Mp({},O_(t)),O_(e.options))});return r}function $8(e,t,r){var o=t.map(function(n){var a=V8(n,r);return(0,F8.bind)(e,a)});return function(){o.forEach(function(a){return a()})}}Np.bindAll=$8});var sd=Kt(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.bindAll=Lp.bind=void 0;var j8=MT();Object.defineProperty(Lp,"bind",{enumerable:!0,get:function(){return j8.bind}});var H8=D_();Object.defineProperty(Lp,"bindAll",{enumerable:!0,get:function(){return H8.bindAll}})});var vw=Kt((xat,gw)=>{var fw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EY=/\n/g,IY=/^\s*/,OY=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,DY=/^:\s*/,_Y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wY=/^[;\s]*/,AY=/^\s+|\s+$/g,BY=`
|
|
2
|
-
`,mw="/",hw="*",Ys="",MY="comment",NY="declaration";gw.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function n(h){var v=h.match(EY);v&&(r+=v.length);var b=h.lastIndexOf(BY);o=~b?h.length-b:o+h.length}function a(){var h={line:r,column:o};return function(v){return v.position=new i(h),c(),v}}function i(h){this.start=h,this.end={line:r,column:o},this.source=t.source}i.prototype.content=e;var s=[];function l(h){var v=new Error(t.source+":"+r+":"+o+": "+h);if(v.reason=h,v.filename=t.source,v.line=r,v.column=o,v.source=e,t.silent)s.push(v);else throw v}function p(h){var v=h.exec(e);if(v){var b=v[0];return n(b),e=e.slice(b.length),v}}function c(){p(IY)}function u(h){var v;for(h=h||[];v=d();)v!==!1&&h.push(v);return h}function d(){var h=a();if(!(mw!=e.charAt(0)||hw!=e.charAt(1))){for(var v=2;Ys!=e.charAt(v)&&(hw!=e.charAt(v)||mw!=e.charAt(v+1));)++v;if(v+=2,Ys===e.charAt(v-1))return l("End of comment missing");var b=e.slice(2,v-2);return o+=2,n(b),e=e.slice(v),o+=2,h({type:MY,comment:b})}}function f(){var h=a(),v=p(OY);if(v){if(d(),!p(DY))return l("property missing ':'");var b=p(_Y),x=h({type:NY,property:yw(v[0].replace(fw,Ys)),value:b?yw(b[0].replace(fw,Ys)):Ys});return p(wY),x}}function y(){var h=[];u(h);for(var v;v=f();)v!==!1&&(h.push(v),u(h));return h}return c(),y()};function yw(e){return e?e.replace(AY,Ys):Ys}});var bw=Kt(hd=>{"use strict";var LY=hd&&hd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hd,"__esModule",{value:!0});var zY=LY(vw());function FY(e,t){var r=null;if(!e||typeof e!="string")return r;var o=(0,zY.default)(e),n=typeof t=="function";return o.forEach(function(a){if(a.type==="declaration"){var i=a.property,s=a.value;n?t(i,s,a):s&&(r=r||{},r[i]=s)}}),r}hd.default=FY});var jA=Kt((nut,$A)=>{"use strict";var wg=Object.prototype.hasOwnProperty,VA=Object.prototype.toString,BA=Object.defineProperty,MA=Object.getOwnPropertyDescriptor,NA=function(t){return typeof Array.isArray=="function"?Array.isArray(t):VA.call(t)==="[object Array]"},LA=function(t){if(!t||VA.call(t)!=="[object Object]")return!1;var r=wg.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&wg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;var n;for(n in t);return typeof n>"u"||wg.call(t,n)},zA=function(t,r){BA&&r.name==="__proto__"?BA(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},FA=function(t,r){if(r==="__proto__")if(wg.call(t,r)){if(MA)return MA(t,r).value}else return;return t[r]};$A.exports=function e(){var t,r,o,n,a,i,s=arguments[0],l=1,p=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)o=FA(s,r),n=FA(t,r),s!==n&&(c&&n&&(LA(n)||(a=NA(n)))?(a?(a=!1,i=o&&NA(o)?o:[]):i=o&&LA(o)?o:{},zA(s,{name:r,newValue:e(c,i,n)})):typeof n<"u"&&zA(s,{name:r,newValue:n}));return s}});import{ControlType as fo}from"framer";import tZ,{createElement as Wg,useEffect as xB,useState as TB,useMemo as rZ,useRef as oZ}from"react";var AB={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},Xi=AB;var Ao="$$joy";ta();import"react";ta();qa();ta();import*as sS from"react";function fN(e){return Object.keys(e).length===0}function mN(e=null){let t=sS.useContext(Mo);return!t||fN(t)?e:t}var vf=mN;var hN=zo();function yN(e=hN){return vf(e)}var cn=yN;import{jsx as gN}from"react/jsx-runtime";function vN({styles:e,themeId:t,defaultTheme:r={}}){let o=cn(r),n=typeof e=="function"?e(t&&o[t]||o):e;return gN(Bn,{styles:n})}var bf=vN;Ev();Iv();Ov();Dv();as();Ya();Ka();var cS=e=>e,TN=()=>{let e=cS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cS}}},PN=TN(),ls=PN;re();be();import*as dS from"react";function uS(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=uS(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function CN(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=uS(e))&&(o&&(o+=" "),o+=t);return o}var Pe=CN;ta();Ka();import{jsx as kN}from"react/jsx-runtime";var SN=["className","component"];function xf(e={}){let{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:n}=e,a=Cl("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(xo);return dS.forwardRef(function(l,p){let c=cn(r),u=no(l),{className:d,component:f="div"}=u,y=H(u,SN);return kN(a,m({as:f,ref:p,className:Pe(d,n?n(o):o),theme:t&&c[t]||c},y))})}var wv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dr(e,t,r="Mui"){let o=wv[t];return o?`${r}-${o}`:`${ls.generate(e)}-${t}`}function To(e,t,r="Mui"){let o={};return t.forEach(n=>{o[n]=Dr(e,n,r)}),o}re();be();ta();ro();qa();Ka();var ON=["ownerState"],DN=["variants"],_N=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wN(e){return Object.keys(e).length===0}function AN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var BN=zo(),MN=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function wf({defaultTheme:e,theme:t,themeId:r}){return wN(t)?e:t[r]||t}function NN(e){return e?(t,r)=>r[e]:null}function Af(e,t){let{ownerState:r}=t,o=H(t,ON),n=typeof e=="function"?e(m({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Af(a,m({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=H(n,DN);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props(m({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(m({ownerState:r},o,r)):l.style))}),s}return n}function El(e={}){let{themeId:t,defaultTheme:r=BN,rootShouldForwardProp:o=Lv,slotShouldForwardProp:n=Lv}=e,a=i=>xo(m({},i,{theme:wf(m({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{vv(i,P=>P.filter(T=>!(T!=null&&T.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=NN(MN(p))}=s,f=H(s,_N),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Lv;p==="Root"||p==="root"?b=o:p?b=n:AN(i)&&(b=void 0);let x=Cl(i,m({shouldForwardProp:b,label:v},f)),g=P=>typeof P=="function"&&P.__emotion_real!==P||pn(P)?T=>Af(P,m({},T,{theme:wf({theme:T.theme,defaultTheme:r,themeId:t})})):P,S=(P,...T)=>{let C=g(P),k=T?T.map(g):[];l&&d&&k.push(M=>{let B=wf(m({},M,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[l]||!B.components[l].styleOverrides)return null;let A=B.components[l].styleOverrides,$={};return Object.entries(A).forEach(([N,_])=>{$[N]=Af(_,m({},M,{theme:B}))}),d(M,$)}),l&&!y&&k.push(M=>{var B;let A=wf(m({},M,{defaultTheme:r,themeId:t})),$=A==null||(B=A.components)==null||(B=B[l])==null?void 0:B.variants;return Af({variants:$},m({},M,{theme:A}))}),h||k.push(a);let I=k.length-T.length;if(Array.isArray(P)&&I>0){let M=new Array(I).fill("");C=[...P,...M],C.raw=[...P.raw,...M]}let D=x(C,...k);return i.muiName&&(D.muiName=i.muiName),D};return x.withConfig&&(S.withConfig=x.withConfig),S}}var LN=El(),Bf=LN;uf();Rv();re();function vc(e,t){let r=m({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))r[o]=m({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let n=e[o]||{},a=t[o];r[o]={},!a||!Object.keys(a)?r[o]=n:!n||!Object.keys(n)?r[o]=a:(r[o]=m({},a),Object.keys(n).forEach(i=>{r[o][i]=vc(n[i],a[i])}))}else r[o]===void 0&&(r[o]=e[o])}),r}function Mf(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:vc(t.components[r].defaultProps,o)}function un({props:e,name:t,defaultTheme:r,themeId:o}){let n=cn(r);return o&&(n=n[o]||n),Mf({theme:n,name:t,props:e})}import*as Nf from"react";var zN=typeof window<"u"?Nf.useLayoutEffect:Nf.useEffect,Ot=zN;$a();function VN(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function SS(e){if(e.type)return e;if(e.charAt(0)==="#")return SS(VN(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(mr(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error(mr(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var Xa=e=>{let t=SS(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};re();import*as zS from"react";re();import*as BS from"react";ro();Sl();function Il(...e){return e.reduce((t,r)=>r==null?t:function(...n){t.apply(this,n),r.apply(this,n)},()=>{})}function bc(e,t=166){let r;function o(...n){let a=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(a,t)}return o.clear=()=>{clearTimeout(r)},o}import*as kS from"react";function Xt(e,t){var r,o;return kS.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function mt(e){return e&&e.ownerDocument||document}function Nn(e){return mt(e).defaultView||window}function Ln(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as Ol from"react";var RS=0;function $N(e){let[t,r]=Ol.useState(e),o=e||t;return Ol.useEffect(()=>{t==null&&(RS+=1,r(`mui-${RS}`))},[t]),o}var ES=Ol.useId;function Ze(e){if(ES!==void 0){let t=ES();return e!=null?e:t}return $N(e)}import*as ps from"react";function Zt({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=ps.useRef(e!==void 0),[a,i]=ps.useState(t),s=n?e:a,l=ps.useCallback(p=>{n||i(p)},[]);return[s,l]}import*as Fv from"react";function jN(e){let t=Fv.useRef(e);return Ot(()=>{t.current=e}),Fv.useRef((...r)=>(0,t.current)(...r)).current}var Qt=jN;import*as IS from"react";function _e(...e){return IS.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ln(r,t)})},e)}import*as DS from"react";var OS={};function Vv(e,t){let r=DS.useRef(OS);return r.current===OS&&(r.current=e(t)),r}import*as _S from"react";var HN=[];function $v(e){_S.useEffect(e,HN)}var oa=class e{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function Za(){let e=Vv(oa.create).current;return $v(e.disposeEffect),e}import*as Lf from"react";var zf=!0,Hv=!1,UN=new oa,WN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function GN(e){let{type:t,tagName:r}=e;return!!(r==="INPUT"&&WN[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function YN(e){e.metaKey||e.altKey||e.ctrlKey||(zf=!0)}function jv(){zf=!1}function JN(){this.visibilityState==="hidden"&&Hv&&(zf=!0)}function qN(e){e.addEventListener("keydown",YN,!0),e.addEventListener("mousedown",jv,!0),e.addEventListener("pointerdown",jv,!0),e.addEventListener("touchstart",jv,!0),e.addEventListener("visibilitychange",JN,!0)}function KN(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return zf||GN(t)}function Po(){let e=Lf.useCallback(n=>{n!=null&&qN(n.ownerDocument)},[]),t=Lf.useRef(!1);function r(){return t.current?(Hv=!0,UN.start(100,()=>{Hv=!1}),t.current=!1,!0):!1}function o(n){return KN(n)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:r,ref:e}}function xc(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}import*as Ff from"react";var XN=e=>{let t=Ff.useRef({});return Ff.useEffect(()=>{t.current=e}),t.current},Dl=XN;var ZN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},_l=ZN;function X(e,t,r=void 0){let o={};return Object.keys(e).forEach(n=>{o[n]=e[n].reduce((a,i)=>{if(i){let s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),o}zv();import*as wS from"react";var QN=wS.createContext(null),Vf=QN;import*as Uv from"react";function na(){return Uv.useContext(Vf)}var eL=typeof Symbol=="function"&&Symbol.for,AS=eL?Symbol.for("mui.nested"):"__THEME_NESTED__";import{jsx as tL}from"react/jsx-runtime";function rL(e,t){return typeof t=="function"?t(e):m({},e,t)}function oL(e){let{children:t,theme:r}=e,o=na(),n=BS.useMemo(()=>{let a=o===null?r:rL(o,r);return a!=null&&(a[AS]=o!==null),a},[r,o]);return tL(Vf.Provider,{value:n,children:t})}var $f=oL;ta();re();be();import*as Wv from"react";import{jsx as aL}from"react/jsx-runtime";var nL=["value"],iL=Wv.createContext();function sL(e){let{value:t}=e,r=H(e,nL);return aL(iL.Provider,m({value:t!=null?t:!0},r))}var MS=sL;import{jsx as Gv}from"react/jsx-runtime";var NS={};function LS(e,t,r,o=!1){return zS.useMemo(()=>{let n=e&&t[e]||t;if(typeof r=="function"){let a=r(n),i=e?m({},t,{[e]:a}):a;return o?()=>i:i}return e?m({},t,{[e]:r}):m({},t,r)},[e,t,r,o])}function lL(e){let{children:t,theme:r,themeId:o}=e,n=vf(NS),a=na()||NS,i=LS(o,n,r),s=LS(o,a,r,!0),l=i.direction==="rtl";return Gv($f,{theme:s,children:Gv(Mo.Provider,{value:i,children:Gv(MS,{value:l,children:t})})})}var jf=lL;re();be();$a();import*as _r from"react";ro();ta();import"react";import{jsx as pL}from"react/jsx-runtime";var Tc="mode",Pc="color-scheme",Yv="data-color-scheme";function Jv(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:n=Tc,colorSchemeStorageKey:a=Pc,attribute:i=Yv,colorSchemeNode:s="document.documentElement"}=e||{};return pL("script",{dangerouslySetInnerHTML:{__html:`(function() {
|
|
1
|
+
var EB=Object.create;var Kp=Object.defineProperty,IB=Object.defineProperties,OB=Object.getOwnPropertyDescriptor,DB=Object.getOwnPropertyDescriptors,_B=Object.getOwnPropertyNames,Vd=Object.getOwnPropertySymbols,wB=Object.getPrototypeOf,ev=Object.prototype.hasOwnProperty,IP=Object.prototype.propertyIsEnumerable;var EP=(e,t,r)=>t in e?Kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))ev.call(t,r)&&EP(e,r,t[r]);if(Vd)for(var r of Vd(t))IP.call(t,r)&&EP(e,r,t[r]);return e},Q=(e,t)=>IB(e,DB(t));var he=(e,t)=>{var r={};for(var o in e)ev.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Vd)for(var o of Vd(e))t.indexOf(o)<0&&IP.call(e,o)&&(r[o]=e[o]);return r};var Le=(e,t)=>()=>(e&&(t=e(e=0)),t);var Kt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_n=(e,t)=>{for(var r in t)Kp(e,r,{get:t[r],enumerable:!0})},OP=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of _B(t))!ev.call(e,n)&&n!==r&&Kp(e,n,{get:()=>t[n],enumerable:!(o=OB(t,n))||o.enumerable});return e};var wo=(e,t,r)=>(r=e!=null?EB(wB(e)):{},OP(t||!e||!e.__esModule?Kp(r,"default",{value:e,enumerable:!0}):r,e)),Va=e=>OP(Kp({},"__esModule",{value:!0}),e);function mr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var DP=Le(()=>{});var _P={};_n(_P,{default:()=>mr});var $a=Le(()=>{DP()});function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},m.apply(this,arguments)}var re=Le(()=>{});function $d(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jd=Le(()=>{});var BB,wP,tv=Le(()=>{jd();BB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wP=$d(function(e){return BB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});function MB(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function NB(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AP,BP=Le(()=>{AP=function(){function e(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(NB(this));var n=this.tags[this.tags.length-1];if(0)var a;if(this.isSpeedy){var i=MB(n);try{i.insertRule(o,i.cssRules.length)}catch(s){}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){return o.parentNode&&o.parentNode.removeChild(o)}),this.tags=[],this.ctr=0},e}()});var hr,Xp,lt,Hd,sl,ll,MP,Ud,NP,Wd=Le(()=>{hr="-ms-",Xp="-moz-",lt="-webkit-",Hd="comm",sl="rule",ll="decl",MP="@import",Ud="@keyframes",NP="@layer"});function FP(e,t){return Lt(e,0)^45?(((t<<2^Lt(e,0))<<2^Lt(e,1))<<2^Lt(e,2))<<2^Lt(e,3):0}function Gd(e){return e.trim()}function rv(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,r){return e.replace(t,r)}function Zp(e,t){return e.indexOf(t)}function Lt(e,t){return e.charCodeAt(t)|0}function ja(e,t,r){return e.slice(t,r)}function Ur(e){return e.length}function pl(e){return e.length}function cl(e,t){return t.push(e),e}function ov(e,t){return e.map(t).join("")}var LP,Zi,zP,ul=Le(()=>{LP=Math.abs,Zi=String.fromCharCode,zP=Object.assign});function Qp(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:Yd,column:dl,length:i,return:""}}function hl(e,t){return zP(Qp("",null,null,"",null,null,0),e,{length:-e.length},t)}function $P(){return Ut}function jP(){return Ut=Wr>0?Lt(ml,--Wr):0,dl--,Ut===10&&(dl=1,Yd--),Ut}function Gr(){return Ut=Wr<VP?Lt(ml,Wr++):0,dl++,Ut===10&&(dl=1,Yd++),Ut}function Bo(){return Lt(ml,Wr)}function ec(){return Wr}function yl(e,t){return ja(ml,e,t)}function fl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jd(e){return Yd=dl=1,VP=Ur(ml=e),Wr=0,[]}function qd(e){return ml="",e}function gl(e){return Gd(yl(Wr-1,nv(e===91?e+2:e===40?e+1:e)))}function HP(e){for(;(Ut=Bo())&&Ut<33;)Gr();return fl(e)>2||fl(Ut)>3?"":" "}function UP(e,t){for(;--t&&Gr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return yl(e,ec()+(t<6&&Bo()==32&&Gr()==32))}function nv(e){for(;Gr();)switch(Ut){case e:return Wr;case 34:case 39:e!==34&&e!==39&&nv(Ut);break;case 40:e===41&&nv(e);break;case 92:Gr();break}return Wr}function WP(e,t){for(;Gr()&&e+Ut!==57;)if(e+Ut===84&&Bo()===47)break;return"/*"+yl(t,Wr-1)+"*"+Zi(e===47?e:Gr())}function GP(e){for(;!fl(Bo());)Gr();return yl(e,Wr)}var Yd,dl,VP,Wr,Ut,ml,av=Le(()=>{ul();Yd=1,dl=1,VP=0,Wr=0,Ut=0,ml=""});function qP(e){return qd(Kd("",null,null,null,[""],e=Jd(e),0,[0],e))}function Kd(e,t,r,o,n,a,i,s,l){for(var p=0,c=0,u=i,d=0,f=0,y=0,h=1,v=1,b=1,x=0,g="",S=n,P=a,T=o,C=g;v;)switch(y=x,x=Gr()){case 40:if(y!=108&&Lt(C,u-1)==58){Zp(C+=nt(gl(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=gl(x);break;case 9:case 10:case 13:case 32:C+=HP(y);break;case 92:C+=UP(ec()-1,7);continue;case 47:switch(Bo()){case 42:case 47:cl(LB(WP(Gr(),ec()),t,r),l);break;default:C+="/"}break;case 123*h:s[p++]=Ur(C)*b;case 125*h:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+c:b==-1&&(C=nt(C,/\f/g,"")),f>0&&Ur(C)-u&&cl(f>32?JP(C+";",o,r,u-1):JP(nt(C," ","")+";",o,r,u-2),l);break;case 59:C+=";";default:if(cl(T=YP(C,t,r,p,c,n,s,g,S=[],P=[],u),a),x===123)if(c===0)Kd(C,t,T,T,S,a,u,s,P);else switch(d===99&&Lt(C,3)===110?100:d){case 100:case 108:case 109:case 115:Kd(e,T,T,o&&cl(YP(e,T,T,0,0,n,s,g,n,S=[],u),P),n,P,u,s,o?S:P);break;default:Kd(C,T,T,T,[""],P,0,s,P)}}p=c=f=0,h=b=1,g=C="",u=i;break;case 58:u=1+Ur(C),f=y;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&jP()==125)continue}switch(C+=Zi(x),x*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[p++]=(Ur(C)-1)*b,b=1;break;case 64:Bo()===45&&(C+=gl(Gr())),d=Bo(),c=u=Ur(g=C+=GP(ec())),x++;break;case 45:y===45&&Ur(C)==2&&(h=0)}}return a}function YP(e,t,r,o,n,a,i,s,l,p,c){for(var u=n-1,d=n===0?a:[""],f=pl(d),y=0,h=0,v=0;y<o;++y)for(var b=0,x=ja(e,u+1,u=LP(h=i[y])),g=e;b<f;++b)(g=Gd(h>0?d[b]+" "+x:nt(x,/&\f/g,d[b])))&&(l[v++]=g);return Qp(e,t,r,n===0?sl:s,l,p,c)}function LB(e,t,r){return Qp(e,t,r,Hd,Zi($P()),ja(e,2,-2),0)}function JP(e,t,r,o){return Qp(e,t,r,ll,ja(e,0,o),ja(e,o+1,-1),o)}var KP=Le(()=>{Wd();ul();av()});var XP=Le(()=>{});function Qi(e,t){for(var r="",o=pl(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function ZP(e,t,r,o){switch(e.type){case NP:if(e.children.length)break;case MP:case ll:return e.return=e.return||e.value;case Hd:return"";case Ud:return e.return=e.value+"{"+Qi(e.children,o)+"}";case sl:e.value=e.props.join(",")}return Ur(r=Qi(e.children,o))?e.return=e.value+"{"+r+"}":""}var QP=Le(()=>{Wd();ul()});function eC(e){var t=pl(e);return function(r,o,n,a){for(var i="",s=0;s<t;s++)i+=e[s](r,o,n,a)||"";return i}}function tC(e){return function(t){t.root||(t=t.return)&&e(t)}}var rC=Le(()=>{ul()});var oC=Le(()=>{Wd();ul();KP();XP();av();QP();rC()});var tc=Le(()=>{});function aC(e,t){switch(FP(e,t)){case 5103:return lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+Xp+e+hr+e+e;case 6828:case 4268:return lt+e+hr+e+e;case 6165:return lt+e+hr+"flex-"+e+e;case 5187:return lt+e+nt(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+hr+"flex-$1$2")+e;case 5443:return lt+e+hr+"flex-item-"+nt(e,/flex-|-self/,"")+e;case 4675:return lt+e+hr+"flex-line-pack"+nt(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+hr+nt(e,"shrink","negative")+e;case 5292:return lt+e+hr+nt(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+nt(e,"-grow","")+lt+e+hr+nt(e,"grow","positive")+e;case 4554:return lt+nt(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ur(e)-1-t>6)switch(Lt(e,t+1)){case 109:if(Lt(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+Xp+(Lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zp(e,"stretch")?aC(nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lt(e,t+1)!==115)break;case 6444:switch(Lt(e,Ur(e)-3-(~Zp(e,"!important")&&10))){case 107:return nt(e,":",":"+lt)+e;case 101:return nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(Lt(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+hr+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return lt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+hr+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+hr+e+e}return e}var zB,FB,VB,nC,$B,jB,HB,UB,rc,oc=Le(()=>{BP();oC();tc();jd();zB=function(t,r,o){for(var n=0,a=0;n=a,a=Bo(),n===38&&a===12&&(r[o]=1),!fl(a);)Gr();return yl(t,Wr)},FB=function(t,r){var o=-1,n=44;do switch(fl(n)){case 0:n===38&&Bo()===12&&(r[o]=1),t[o]+=zB(Wr-1,r,o);break;case 2:t[o]+=gl(n);break;case 4:if(n===44){t[++o]=Bo()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Zi(n)}while(n=Gr());return t},VB=function(t,r){return qd(FB(Jd(t),r))},nC=new WeakMap,$B=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!nC.get(o))&&!n){nC.set(t,!0);for(var a=[],i=VB(r,a),s=o.props,l=0,p=0;l<i.length;l++)for(var c=0;c<s.length;c++,p++)t.props[p]=a[l]?i[l].replace(/&\f/g,s[c]):s[c]+" "+i[l]}}},jB=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};HB=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case ll:t.return=aC(t.value,t.length);break;case Ud:return Qi([hl(t,{value:nt(t.value,"@","@"+lt)})],n);case sl:if(t.length)return ov(t.props,function(a){switch(rv(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qi([hl(t,{props:[nt(a,/:(read-\w+)/,":"+Xp+"$1")]})],n);case"::placeholder":return Qi([hl(t,{props:[nt(a,/:(plac\w+)/,":"+lt+"input-$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,":"+Xp+"$1")]}),hl(t,{props:[nt(a,/:(plac\w+)/,hr+"input-$1")]})],n)}return""})}},UB=[HB],rc=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||UB,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)a[v[b]]=!0;s.push(h)});var l,p=[$B,jB];{var c,u=[ZP,tC(function(h){c.insert(h)})],d=eC(p.concat(n,u)),f=function(v){return Qi(qP(v),d)};l=function(v,b,x,g){c=x,f(v?v+"{"+b.styles+"}":b.styles),g&&(y.inserted[b.name]=!0)}}var y={key:r,sheet:new AP({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return y.sheet.hydrate(s),y}});var sC=Kt(ct=>{"use strict";var ar=typeof Symbol=="function"&&Symbol.for,iv=ar?Symbol.for("react.element"):60103,sv=ar?Symbol.for("react.portal"):60106,Xd=ar?Symbol.for("react.fragment"):60107,Zd=ar?Symbol.for("react.strict_mode"):60108,Qd=ar?Symbol.for("react.profiler"):60114,ef=ar?Symbol.for("react.provider"):60109,tf=ar?Symbol.for("react.context"):60110,lv=ar?Symbol.for("react.async_mode"):60111,rf=ar?Symbol.for("react.concurrent_mode"):60111,of=ar?Symbol.for("react.forward_ref"):60112,nf=ar?Symbol.for("react.suspense"):60113,WB=ar?Symbol.for("react.suspense_list"):60120,af=ar?Symbol.for("react.memo"):60115,sf=ar?Symbol.for("react.lazy"):60116,GB=ar?Symbol.for("react.block"):60121,YB=ar?Symbol.for("react.fundamental"):60117,JB=ar?Symbol.for("react.responder"):60118,qB=ar?Symbol.for("react.scope"):60119;function ho(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iv:switch(e=e.type,e){case lv:case rf:case Xd:case Qd:case Zd:case nf:return e;default:switch(e=e&&e.$$typeof,e){case tf:case of:case sf:case af:case ef:return e;default:return t}}case sv:return t}}}function iC(e){return ho(e)===rf}ct.AsyncMode=lv;ct.ConcurrentMode=rf;ct.ContextConsumer=tf;ct.ContextProvider=ef;ct.Element=iv;ct.ForwardRef=of;ct.Fragment=Xd;ct.Lazy=sf;ct.Memo=af;ct.Portal=sv;ct.Profiler=Qd;ct.StrictMode=Zd;ct.Suspense=nf;ct.isAsyncMode=function(e){return iC(e)||ho(e)===lv};ct.isConcurrentMode=iC;ct.isContextConsumer=function(e){return ho(e)===tf};ct.isContextProvider=function(e){return ho(e)===ef};ct.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iv};ct.isForwardRef=function(e){return ho(e)===of};ct.isFragment=function(e){return ho(e)===Xd};ct.isLazy=function(e){return ho(e)===sf};ct.isMemo=function(e){return ho(e)===af};ct.isPortal=function(e){return ho(e)===sv};ct.isProfiler=function(e){return ho(e)===Qd};ct.isStrictMode=function(e){return ho(e)===Zd};ct.isSuspense=function(e){return ho(e)===nf};ct.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xd||e===rf||e===Qd||e===Zd||e===nf||e===WB||typeof e=="object"&&e!==null&&(e.$$typeof===sf||e.$$typeof===af||e.$$typeof===ef||e.$$typeof===tf||e.$$typeof===of||e.$$typeof===YB||e.$$typeof===JB||e.$$typeof===qB||e.$$typeof===GB)};ct.typeOf=ho});var pC=Kt((ZZ,lC)=>{"use strict";lC.exports=sC()});var uv=Kt((QZ,hC)=>{"use strict";var pv=pC(),KB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},XB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ZB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cv={};cv[pv.ForwardRef]=ZB;cv[pv.Memo]=fC;function cC(e){return pv.isMemo(e)?fC:cv[e.$$typeof]||KB}var QB=Object.defineProperty,eM=Object.getOwnPropertyNames,uC=Object.getOwnPropertySymbols,tM=Object.getOwnPropertyDescriptor,rM=Object.getPrototypeOf,dC=Object.prototype;function mC(e,t,r){if(typeof t!="string"){if(dC){var o=rM(t);o&&o!==dC&&mC(e,o,r)}var n=eM(t);uC&&(n=n.concat(uC(t)));for(var a=cC(e),i=cC(t),s=0;s<n.length;++s){var l=n[s];if(!XB[l]&&!(r&&r[l])&&!(i&&i[l])&&!(a&&a[l])){var p=tM(t,l);try{QB(e,l,p)}catch(c){}}}}return e}hC.exports=mC});function nc(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):o+=n+" "}),o}var oM,vl,bl,xl=Le(()=>{oM=!0;vl=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||oM===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},bl=function(t,r,o){vl(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+n:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}}});function yC(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gC=Le(()=>{});var vC,bC=Le(()=>{vC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}});function ac(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return wn={name:r.name,styles:r.styles,next:wn},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)wn={name:o.name,styles:o.styles,next:wn},o=o.next;var n=r.styles+";";return n}return iM(e,t,r)}case"function":{if(e!==void 0){var a=wn,i=r(e);return wn=a,ac(e,t,i)}break}case"string":if(0)var s,l;break}if(t==null)return r;var p=t[r];return p!==void 0?p:r}function iM(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=ac(e,t,r[n])+";";else for(var a in r){var i=r[a];if(typeof i!="object")t!=null&&t[i]!==void 0?o+=a+"{"+t[i]+"}":xC(i)&&(o+=dv(a)+":"+TC(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)xC(i[s])&&(o+=dv(a)+":"+TC(a,i[s])+";");else{var l=ac(e,t,i);switch(a){case"animation":case"animationName":{o+=dv(a)+":"+l+";";break}default:o+=a+"{"+l+"}"}}}return o}var nM,aM,CC,xC,dv,TC,PC,wn,es,Tl=Le(()=>{gC();bC();jd();nM=/[A-Z]|^ms/g,aM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,CC=function(t){return t.charCodeAt(1)===45},xC=function(t){return t!=null&&typeof t!="boolean"},dv=$d(function(e){return CC(e)?e:e.replace(nM,"-$&").toLowerCase()}),TC=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aM,function(o,n,a){return wn={name:n,styles:a,next:wn},n})}return vC[t]!==1&&!CC(t)&&typeof r=="number"&&r!==0?r+"px":r};PC=/label:\s*([^\s;\n{]+)\s*(;|$)/g,es=function(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,a="";wn=void 0;var i=t[0];i==null||i.raw===void 0?(n=!1,a+=ac(o,r,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=ac(o,r,t[s]),n&&(a+=i[s]);var l;PC.lastIndex=0;for(var p="",c;(c=PC.exec(a))!==null;)p+="-"+c[1];var u=yC(a)+p;return{name:u,styles:a,next:wn}}});import*as ic from"react";var sM,SC,sc,fv,Pl=Le(()=>{sM=function(t){return t()},SC=ic.useInsertionEffect?ic.useInsertionEffect:!1,sc=SC||sM,fv=SC||ic.useLayoutEffect});import*as yo from"react";import{useContext as kC,forwardRef as lM}from"react";var hv,ts,lf,yv,rs,Mo,mv,lc,pM,cM,pc,pf=Le(()=>{oc();re();tc();xl();Tl();Pl();hv=!0,ts={}.hasOwnProperty,lf=yo.createContext(typeof HTMLElement<"u"?rc({key:"css"}):null),yv=lf.Provider,rs=function(t){return lM(function(r,o){var n=kC(lf);return t(r,n,o)})};hv||(rs=function(t){return function(r){var o=kC(lf);return o===null?(o=rc({key:"css"}),yo.createElement(lf.Provider,{value:o},t(r,o))):t(r,o)}});Mo=yo.createContext({}),mv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lc=function(t,r){var o={};for(var n in r)ts.call(r,n)&&(o[n]=r[n]);if(o[mv]=t,0)var a;return o},pM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),sc(function(){return bl(r,o,n)}),null},cM=rs(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[mv],a=[o],i="";typeof e.className=="string"?i=nc(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=es(a,void 0,yo.useContext(Mo));if(0)var l;i+=t.key+"-"+s.name;var p={};for(var c in e)ts.call(e,c)&&c!=="css"&&c!==mv&&(p[c]=e[c]);return p.ref=r,p.className=i,yo.createElement(yo.Fragment,null,yo.createElement(pM,{cache:t,serialized:s,isStringTag:typeof n=="string"}),yo.createElement(n,p))}),pc=cM});import*as ea from"react";function No(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es(t)}var IQ,RC,EC,An,os=Le(()=>{pf();pf();xl();Pl();Tl();oc();re();tc();IQ=wo(uv()),RC=function(t,r){var o=arguments;if(r==null||!ts.call(r,"css"))return ea.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=pc,a[1]=lc(t,r);for(var i=2;i<n;i++)a[i]=o[i];return ea.createElement.apply(null,a)},EC=rs(function(e,t){var r=e.styles,o=es([r],void 0,ea.useContext(Mo));if(!hv){for(var n,a=o.name,i=o.styles,s=o.next;s!==void 0;)a+=" "+s.name,i+=s.styles,s=s.next;var l=t.compat===!0,p=t.insert("",{name:a,styles:i},t.sheet,l);return l?null:ea.createElement("style",(n={},n["data-emotion"]=t.key+"-global "+a,n.dangerouslySetInnerHTML={__html:p},n.nonce=t.sheet.nonce,n))}var c=ea.useRef();return fv(function(){var u=t.key+"-global",d=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,y=document.querySelector('style[data-emotion="'+u+" "+o.name+'"]');return t.sheet.tags.length&&(d.before=t.sheet.tags[0]),y!==null&&(f=!0,y.setAttribute("data-emotion",u),d.hydrate([y])),c.current=[d,f],function(){d.flush()}},[t]),fv(function(){var u=c.current,d=u[0],f=u[1];if(f){u[1]=!1;return}if(o.next!==void 0&&bl(t,o.next,!0),d.tags.length){var y=d.tags[d.tags.length-1].nextElementSibling;d.before=y,d.flush()}t.insert("",o,d,!1)},[t,o.name]),null});An=function(){var t=No.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}});import*as Ha from"react";var uM,dM,IC,OC,fM,DC,_C=Le(()=>{re();tv();os();xl();Tl();Pl();uM=wP,dM=function(t){return t!=="theme"},IC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uM:dM},OC=function(t,r,o){var n;if(r){var a=r.shouldForwardProp;n=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n},fM=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return vl(r,o,n),sc(function(){return bl(r,o,n)}),null},DC=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=OC(t,r,o),l=s||IC(n),p=!l("as");return function(){var c=arguments,u=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)u.push.apply(u,c);else{u.push(c[0][0]);for(var d=c.length,f=1;f<d;f++)u.push(c[f],c[0][f])}var y=rs(function(h,v,b){var x=p&&h.as||n,g="",S=[],P=h;if(h.theme==null){P={};for(var T in h)P[T]=h[T];P.theme=Ha.useContext(Mo)}typeof h.className=="string"?g=nc(v.registered,S,h.className):h.className!=null&&(g=h.className+" ");var C=es(u.concat(S),v.registered,P);g+=v.key+"-"+C.name,i!==void 0&&(g+=" "+i);var k=p&&s===void 0?IC(x):l,I={};for(var D in h)p&&D==="as"||k(D)&&(I[D]=h[D]);return I.className=g,I.ref=b,Ha.createElement(Ha.Fragment,null,Ha.createElement(fM,{cache:v,serialized:C,isStringTag:typeof x=="string"}),Ha.createElement(x,I))});return y.displayName=a!==void 0?a:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=u,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(h,v){return e(h,m({},r,v,{shouldForwardProp:OC(y,v,!0)})).apply(void 0,u)},y}}});import"react";var mM,cf,wC=Le(()=>{_C();re();tv();xl();Tl();Pl();mM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],cf=DC.bind();mM.forEach(function(e){cf[e]=cf(e)})});var BC=Kt((GQ,AC)=>{"use strict";var hM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";AC.exports=hM});var zC=Kt((YQ,LC)=>{"use strict";var yM=BC();function MC(){}function NC(){}NC.resetWarningCache=MC;LC.exports=function(){function e(o,n,a,i,s,l){if(l!==yM){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:NC,resetWarningCache:MC};return r.PropTypes=r,r}});var VC=Kt((KQ,FC)=>{FC.exports=zC()();var JQ,qQ});import"react";import{jsx as gM}from"react/jsx-runtime";function cc(e){let{injectFirst:t,children:r}=e;return t&&gv?gM(yv,{value:gv,children:r}):r}var gv,$C=Le(()=>{"use client";os();oc();typeof document=="object"&&(gv=rc({key:"css",prepend:!0}))});var jC=Le(()=>{"use client";$C()});import"react";import{jsx as vM}from"react/jsx-runtime";function bM(e){return e==null||Object.keys(e).length===0}function Bn(e){let{styles:t,defaultTheme:r={}}=e;return vM(EC,{styles:typeof t=="function"?n=>t(bM(n)?r:n):t})}var HC=Le(()=>{"use client";os()});var UC=Le(()=>{"use client";HC()});var WC={};_n(WC,{GlobalStyles:()=>Bn,StyledEngineProvider:()=>cc,ThemeContext:()=>Mo,css:()=>No,default:()=>Cl,internal_processStyles:()=>vv,keyframes:()=>An});function Cl(e,t){return cf(e,t)}var vv,ta=Le(()=>{"use client";wC();os();jC();UC();vv=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}});function H(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var be=Le(()=>{});function pn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function GC(e){if(!pn(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=GC(e[r])}),t}function pt(e,t,r={clone:!0}){let o=r.clone?m({},e):e;return pn(e)&&pn(t)&&Object.keys(t).forEach(n=>{n!=="__proto__"&&(pn(t[n])&&n in e&&pn(e[n])?o[n]=pt(e[n],t[n],r):r.clone?o[n]=pn(t[n])?GC(t[n]):t[n]:o[n]=t[n])}),o}var bv=Le(()=>{re()});var YC={};_n(YC,{default:()=>pt,isPlainObject:()=>pn});var ro=Le(()=>{bv();bv()});function Ua(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,n=H(e,xM),a=TM(t),i=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-o/100}${r})`}function p(d,f){let y=i.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:f)-o/100}${r})`}function c(d){return i.indexOf(d)+1<i.length?p(d,i[i.indexOf(d)+1]):s(d)}function u(d){let f=i.indexOf(d);return f===0?s(i[1]):f===i.length-1?l(i[f]):p(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return m({keys:i,values:a,up:s,down:l,between:p,only:c,not:u,unit:r},n)}var xM,TM,uf=Le(()=>{be();re();xM=["values","unit","step"],TM=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>m({},r,{[o.key]:o.val}),{})}});var PM,JC,qC=Le(()=>{PM={borderRadius:4},JC=PM});function CM(e,t){return t?pt(e,t,{clone:!1}):e}var Wa,df=Le(()=>{ro();Wa=CM});function ir(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let a=o.breakpoints||KC;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=r(t[l]),i),{})}if(typeof t=="object"){let a=o.breakpoints||KC;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||ff).indexOf(s)!==-1){let l=a.up(s);i[l]=r(t[s],s)}else{let l=s;i[l]=t[l]}return i},{})}return r(t)}function xv(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((o,n)=>{let a=e.up(n);return o[a]={},o},{}))||{}}function Tv(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function XC(e,...t){let r=xv(e),o=[r,...t].reduce((n,a)=>pt(n,a),{});return Tv(Object.keys(r),o)}function SM(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((n,a)=>{a<e.length&&(r[n]=!0)}):o.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function mf({values:e,breakpoints:t,base:r}){let o=r||SM(e,t),n=Object.keys(o);if(n.length===0)return e;let a;return n.reduce((i,s,l)=>(Array.isArray(e)?(i[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}var ff,KC,Ga=Le(()=>{re();ro();ff={xs:0,sm:600,md:900,lg:1200,xl:1536},KC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ff[e]}px)`}});function j(e){if(typeof e!="string")throw new Error(mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ZC=Le(()=>{$a()});var QC={};_n(QC,{default:()=>j});var Sl=Le(()=>{ZC()});function go(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function kl(e,t,r,o=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||o:n=go(e,r)||o,t&&(n=t(n,o,e)),n}function kM(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,a=i=>{if(i[t]==null)return null;let s=i[t],l=i.theme,p=go(l,o)||{};return ir(i,s,u=>{let d=kl(p,n,u);return u===d&&typeof u=="string"&&(d=kl(p,n,`${t}${u==="default"?"":j(u)}`,u)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}var gt,Ya=Le(()=>{Sl();Ga();gt=kM});function Pv(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var eS=Le(()=>{});function ns(e,t,r,o){var n;let a=(n=go(e,t,!1))!=null?n:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function uc(e){return ns(e,"spacing",8,"spacing")}function Mn(e,t){if(typeof t=="string"||t==null)return t;let r=Math.abs(t),o=e(r);return t>=0?o:typeof o=="number"?-o:`-${o}`}function OM(e,t){return r=>e.reduce((o,n)=>(o[n]=Mn(t,r),o),{})}function DM(e,t,r,o){if(t.indexOf(r)===-1)return null;let n=IM(r),a=OM(n,o),i=e[r];return ir(e,i,a)}function kv(e,t){let r=uc(e.theme);return Object.keys(e).map(o=>DM(e,t,o,r)).reduce(Wa,{})}function Rt(e){return kv(e,Cv)}function Et(e){return kv(e,Sv)}function oS(e){return kv(e,rS)}var RM,EM,tS,IM,Cv,Sv,rS,as=Le(()=>{Ga();Ya();df();eS();RM={m:"margin",p:"padding"},EM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IM=Pv(e=>{if(e.length>2)if(tS[e])e=tS[e];else return[e];let[t,r]=e.split(""),o=RM[t],n=EM[r]||"";return Array.isArray(n)?n.map(a=>o+a):[o+n]}),Cv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rS=[...Cv,...Sv];Rt.propTypes={};Rt.filterProps=Cv;Et.propTypes={};Et.filterProps=Sv;oS.propTypes={};oS.filterProps=rS});function Rl(e=8){if(e.mui)return e;let t=uc({spacing:e}),r=(...o)=>(o.length===0?[1]:o).map(a=>{let i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}var Rv=Le(()=>{as()});function _M(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(a=>{o[a]=n}),o),{}),r=o=>Object.keys(o).reduce((n,a)=>t[a]?Wa(n,t[a](o)):n,{});return r.propTypes={},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var Ja,dc=Le(()=>{df();Ja=_M});function vo(e){return typeof e!="number"?e:`${e}px solid`}function Lo(e,t){return gt({prop:e,themeKey:"borders",transform:t})}var wM,AM,BM,MM,NM,LM,zM,FM,VM,$M,jM,HM,fc,Jee,Ev=Le(()=>{Ya();dc();as();Ga();wM=Lo("border",vo),AM=Lo("borderTop",vo),BM=Lo("borderRight",vo),MM=Lo("borderBottom",vo),NM=Lo("borderLeft",vo),LM=Lo("borderColor"),zM=Lo("borderTopColor"),FM=Lo("borderRightColor"),VM=Lo("borderBottomColor"),$M=Lo("borderLeftColor"),jM=Lo("outline",vo),HM=Lo("outlineColor"),fc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ns(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Mn(t,o)});return ir(e,e.borderRadius,r)}return null};fc.propTypes={};fc.filterProps=["borderRadius"];Jee=Ja(wM,AM,BM,MM,NM,LM,zM,FM,VM,$M,fc,jM,HM)});var mc,hc,yc,UM,WM,GM,YM,JM,qM,KM,XM,ZM,ete,Iv=Le(()=>{Ya();dc();as();Ga();mc=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ns(e.theme,"spacing",8,"gap"),r=o=>({gap:Mn(t,o)});return ir(e,e.gap,r)}return null};mc.propTypes={};mc.filterProps=["gap"];hc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ns(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Mn(t,o)});return ir(e,e.columnGap,r)}return null};hc.propTypes={};hc.filterProps=["columnGap"];yc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ns(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Mn(t,o)});return ir(e,e.rowGap,r)}return null};yc.propTypes={};yc.filterProps=["rowGap"];UM=gt({prop:"gridColumn"}),WM=gt({prop:"gridRow"}),GM=gt({prop:"gridAutoFlow"}),YM=gt({prop:"gridAutoColumns"}),JM=gt({prop:"gridAutoRows"}),qM=gt({prop:"gridTemplateColumns"}),KM=gt({prop:"gridTemplateRows"}),XM=gt({prop:"gridTemplateAreas"}),ZM=gt({prop:"gridArea"}),ete=Ja(mc,hc,yc,UM,WM,GM,YM,JM,qM,KM,XM,ZM)});function is(e,t){return t==="grey"?t:e}var QM,eN,tN,nte,Ov=Le(()=>{Ya();dc();QM=gt({prop:"color",themeKey:"palette",transform:is}),eN=gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:is}),tN=gt({prop:"backgroundColor",themeKey:"palette",transform:is}),nte=Ja(QM,eN,tN)});function oo(e){return e<=1&&e!==0?`${e*100}%`:e}var rN,hf,oN,nN,aN,iN,pte,cte,sN,ute,Dv=Le(()=>{Ya();dc();Ga();rN=gt({prop:"width",transform:oo}),hf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var o,n;let a=((o=e.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[r])||ff[r];return a?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:oo(r)}};return ir(e,e.maxWidth,t)}return null};hf.filterProps=["maxWidth"];oN=gt({prop:"minWidth",transform:oo}),nN=gt({prop:"height",transform:oo}),aN=gt({prop:"maxHeight",transform:oo}),iN=gt({prop:"minHeight",transform:oo}),pte=gt({prop:"size",cssProperty:"width",transform:oo}),cte=gt({prop:"size",cssProperty:"height",transform:oo}),sN=gt({prop:"boxSizing"}),ute=Ja(rN,hf,oN,nN,aN,iN,sN)});var lN,bo,gc=Le(()=>{as();Ev();Iv();Ov();Dv();lN={border:{themeKey:"borders",transform:vo},borderTop:{themeKey:"borders",transform:vo},borderRight:{themeKey:"borders",transform:vo},borderBottom:{themeKey:"borders",transform:vo},borderLeft:{themeKey:"borders",transform:vo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fc},color:{themeKey:"palette",transform:is},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:is},backgroundColor:{themeKey:"palette",transform:is},p:{style:Et},pt:{style:Et},pr:{style:Et},pb:{style:Et},pl:{style:Et},px:{style:Et},py:{style:Et},padding:{style:Et},paddingTop:{style:Et},paddingRight:{style:Et},paddingBottom:{style:Et},paddingLeft:{style:Et},paddingX:{style:Et},paddingY:{style:Et},paddingInline:{style:Et},paddingInlineStart:{style:Et},paddingInlineEnd:{style:Et},paddingBlock:{style:Et},paddingBlockStart:{style:Et},paddingBlockEnd:{style:Et},m:{style:Rt},mt:{style:Rt},mr:{style:Rt},mb:{style:Rt},ml:{style:Rt},mx:{style:Rt},my:{style:Rt},margin:{style:Rt},marginTop:{style:Rt},marginRight:{style:Rt},marginBottom:{style:Rt},marginLeft:{style:Rt},marginX:{style:Rt},marginY:{style:Rt},marginInline:{style:Rt},marginInlineStart:{style:Rt},marginInlineEnd:{style:Rt},marginBlock:{style:Rt},marginBlockStart:{style:Rt},marginBlockEnd:{style:Rt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:mc},rowGap:{style:yc},columnGap:{style:hc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oo},maxWidth:{style:hf},minWidth:{transform:oo},height:{transform:oo},maxHeight:{transform:oo},minHeight:{transform:oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},bo=lN});function pN(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function cN(e,t){return typeof e=="function"?e(t):e}function yf(){function e(r,o,n,a){let i={[r]:o,theme:n},s=a[r];if(!s)return{[r]:o};let{cssProperty:l=r,themeKey:p,transform:c,style:u}=s;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[r]:o};let d=go(n,p)||{};return u?u(i):ir(i,o,y=>{let h=kl(d,c,y);return y===h&&typeof y=="string"&&(h=kl(d,c,`${r}${y==="default"?"":j(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){var o;let{sx:n,theme:a={}}=r||{};if(!n)return null;let i=(o=a.unstable_sxConfig)!=null?o:bo;function s(l){let p=l;if(typeof l=="function")p=l(a);else if(typeof l!="object")return l;if(!p)return null;let c=xv(a.breakpoints),u=Object.keys(c),d=c;return Object.keys(p).forEach(f=>{let y=cN(p[f],a);if(y!=null)if(typeof y=="object")if(i[f])d=Wa(d,e(f,y,a,i));else{let h=ir({theme:a},y,v=>({[f]:v}));pN(h,y)?d[f]=t({sx:y,theme:a}):d=Wa(d,h)}else d=Wa(d,e(f,y,a,i))}),Tv(u,d)}return Array.isArray(n)?n.map(s):s(n)}return t}var nS,xo,gf=Le(()=>{Sl();df();Ya();Ga();gc();nS=yf();nS.filterProps=["sx"];xo=nS});function ss(e,t){let r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}var _v=Le(()=>{});function dN(e={},...t){let{breakpoints:r={},palette:o={},spacing:n,shape:a={}}=e,i=H(e,uN),s=Ua(r),l=Rl(n),p=pt({breakpoints:s,direction:"ltr",components:{},palette:m({mode:"light"},o),spacing:l,shape:m({},JC,a)},i);return p.applyStyles=ss,p=t.reduce((c,u)=>pt(c,u),p),p.unstable_sxConfig=m({},bo,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(u){return xo({sx:u,theme:this})},p}var uN,zo,aS=Le(()=>{re();be();ro();uf();qC();Rv();gf();gc();_v();uN=["breakpoints","palette","spacing","shape"];zo=dN});var iS={};_n(iS,{default:()=>zo,private_createBreakpoints:()=>Ua,unstable_applyStyles:()=>ss});var qa=Le(()=>{aS();uf();_v()});function no(e){let{sx:t}=e,r=H(e,bN),{systemProps:o,otherProps:n}=xN(r),a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...i)=>{let s=t(...i);return pn(s)?m({},o,s):o}:a=m({},o,t),m({},n,{sx:a})}var bN,xN,lS=Le(()=>{re();be();ro();gc();bN=["sx"],xN=e=>{var t,r;let o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:bo;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o}});var pS={};_n(pS,{default:()=>xo,extendSxProp:()=>no,unstable_createStyleFunctionSx:()=>yf,unstable_defaultSxConfig:()=>bo});var Ka=Le(()=>{gf();gf();lS();gc()});var mS=Kt(ut=>{"use strict";var Av=Symbol.for("react.element"),Bv=Symbol.for("react.portal"),Tf=Symbol.for("react.fragment"),Pf=Symbol.for("react.strict_mode"),Cf=Symbol.for("react.profiler"),Sf=Symbol.for("react.provider"),kf=Symbol.for("react.context"),RN=Symbol.for("react.server_context"),Rf=Symbol.for("react.forward_ref"),Ef=Symbol.for("react.suspense"),If=Symbol.for("react.suspense_list"),Of=Symbol.for("react.memo"),Df=Symbol.for("react.lazy"),EN=Symbol.for("react.offscreen"),fS;fS=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Av:switch(e=e.type,e){case Tf:case Cf:case Pf:case Ef:case If:return e;default:switch(e=e&&e.$$typeof,e){case RN:case kf:case Rf:case Df:case Of:case Sf:return e;default:return t}}case Bv:return t}}}ut.ContextConsumer=kf;ut.ContextProvider=Sf;ut.Element=Av;ut.ForwardRef=Rf;ut.Fragment=Tf;ut.Lazy=Df;ut.Memo=Of;ut.Portal=Bv;ut.Profiler=Cf;ut.StrictMode=Pf;ut.Suspense=Ef;ut.SuspenseList=If;ut.isAsyncMode=function(){return!1};ut.isConcurrentMode=function(){return!1};ut.isContextConsumer=function(e){return Fo(e)===kf};ut.isContextProvider=function(e){return Fo(e)===Sf};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Av};ut.isForwardRef=function(e){return Fo(e)===Rf};ut.isFragment=function(e){return Fo(e)===Tf};ut.isLazy=function(e){return Fo(e)===Df};ut.isMemo=function(e){return Fo(e)===Of};ut.isPortal=function(e){return Fo(e)===Bv};ut.isProfiler=function(e){return Fo(e)===Cf};ut.isStrictMode=function(e){return Fo(e)===Pf};ut.isSuspense=function(e){return Fo(e)===Ef};ut.isSuspenseList=function(e){return Fo(e)===If};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tf||e===Cf||e===Pf||e===Ef||e===If||e===EN||typeof e=="object"&&e!==null&&(e.$$typeof===Df||e.$$typeof===Of||e.$$typeof===Sf||e.$$typeof===kf||e.$$typeof===Rf||e.$$typeof===fS||e.getModuleId!==void 0)};ut.typeOf=Fo});var yS=Kt((Ore,hS)=>{"use strict";hS.exports=mS()});function vS(e){let t=`${e}`.match(IN);return t&&t[1]||""}function bS(e,t=""){return e.displayName||e.name||vS(e)||t}function gS(e,t,r){let o=bS(t);return e.displayName||(o!==""?`${r}(${o})`:r)}function Mv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _f.ForwardRef:return gS(e,e.render,"ForwardRef");case _f.Memo:return gS(e,e.type,"memo");default:return}}}var _f,IN,Nv=Le(()=>{_f=wo(yS()),IN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/});var xS={};_n(xS,{default:()=>Mv,getFunctionName:()=>vS});var TS=Le(()=>{Nv();Nv()});function FN(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ra,PS=Le(()=>{ra=FN});var CS={};_n(CS,{default:()=>ra});var zv=Le(()=>{PS()});var Dx=Kt((RWe,gu)=>{function FW(e){return e&&e.__esModule?e:{default:e}}gu.exports=FW,gu.exports.__esModule=!0,gu.exports.default=gu.exports});var xO=Kt(wt=>{"use strict";var mO=Dx();Object.defineProperty(wt,"__esModule",{value:!0});wt.alpha=vO;wt.blend=qW;wt.colorChannel=void 0;wt.darken=wx;wt.decomposeColor=Qo;wt.emphasize=JW;wt.getContrastRatio=UW;wt.getLuminance=jh;wt.hexToRgb=hO;wt.hslToRgb=gO;wt.lighten=Ax;wt.private_safeAlpha=WW;wt.private_safeColorChannel=void 0;wt.private_safeDarken=GW;wt.private_safeEmphasize=bO;wt.private_safeLighten=YW;wt.recomposeColor=vp;wt.rgbToHex=HW;var fO=mO(($a(),Va(_P))),VW=mO((zv(),Va(CS)));function _x(e,t=0,r=1){return(0,VW.default)(e,t,r)}function hO(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function $W(e){let t=e.toString(16);return t.length===1?`0${t}`:t}function Qo(e){if(e.type)return e;if(e.charAt(0)==="#")return Qo(hO(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,fO.default)(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error((0,fO.default)(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var yO=e=>{let t=Qo(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};wt.colorChannel=yO;var jW=(e,t)=>{try{return yO(e)}catch(r){return e}};wt.private_safeColorChannel=jW;function vp(e){let{type:t,colorSpace:r}=e,{values:o}=e;return t.indexOf("rgb")!==-1?o=o.map((n,a)=>a<3?parseInt(n,10):n):t.indexOf("hsl")!==-1&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.indexOf("color")!==-1?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function HW(e){if(e.indexOf("#")===0)return e;let{values:t}=Qo(e);return`#${t.map((r,o)=>$W(o===3?Math.round(255*r):r)).join("")}`}function gO(e){e=Qo(e);let{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,a=o*Math.min(n,1-n),i=(p,c=(p+r/30)%12)=>n-a*Math.max(Math.min(c-3,9-c,1),-1),s="rgb",l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),vp({type:s,values:l})}function jh(e){e=Qo(e);let t=e.type==="hsl"||e.type==="hsla"?Qo(gO(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function UW(e,t){let r=jh(e),o=jh(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function vO(e,t){return e=Qo(e),t=_x(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vp(e)}function WW(e,t,r){try{return vO(e,t)}catch(o){return e}}function wx(e,t){if(e=Qo(e),t=_x(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return vp(e)}function GW(e,t,r){try{return wx(e,t)}catch(o){return e}}function Ax(e,t){if(e=Qo(e),t=_x(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vp(e)}function YW(e,t,r){try{return Ax(e,t)}catch(o){return e}}function JW(e,t=.15){return jh(e)>.5?wx(e,t):Ax(e,t)}function bO(e,t,r){try{return bO(e,t)}catch(o){return e}}function qW(e,t,r,o=1){let n=(l,p)=>Math.round((l**(1/o)*(1-r)+p**(1/o)*r)**o),a=Qo(e),i=Qo(t),s=[n(a.values[0],i.values[0]),n(a.values[1],i.values[1]),n(a.values[2],i.values[2])];return vp({type:"rgb",values:s})}});var DO=Kt((S9e,Sa)=>{function Fx(){return Sa.exports=Fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports,Fx.apply(this,arguments)}Sa.exports=Fx,Sa.exports.__esModule=!0,Sa.exports.default=Sa.exports});var _O=Kt((k9e,vu)=>{function P9(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}vu.exports=P9,vu.exports.__esModule=!0,vu.exports.default=vu.exports});var BO=Kt(Cp=>{"use strict";var Pp=Dx();Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=M9;Cp.shouldForwardProp=Gh;Cp.systemDefaultTheme=void 0;var en=Pp(DO()),Vx=Pp(_O()),wO=O9((ta(),Va(WC))),C9=(ro(),Va(YC)),R9e=Pp((Sl(),Va(QC))),E9e=Pp((TS(),Va(xS))),S9=Pp((qa(),Va(iS))),k9=Pp((Ka(),Va(pS))),R9=["ownerState"],E9=["variants"],I9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AO(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(AO=function(o){return o?r:t})(e)}function O9(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=AO(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}function D9(e){return Object.keys(e).length===0}function _9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var w9=Cp.systemDefaultTheme=(0,S9.default)(),A9=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wh({defaultTheme:e,theme:t,themeId:r}){return D9(t)?e:t[r]||t}function B9(e){return e?(t,r)=>r[e]:null}function Yh(e,t){let{ownerState:r}=t,o=(0,Vx.default)(t,R9),n=typeof e=="function"?e((0,en.default)({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Yh(a,(0,en.default)({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=(0,Vx.default)(n,E9);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props((0,en.default)({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,en.default)({ownerState:r},o,r)):l.style))}),s}return n}function M9(e={}){let{themeId:t,defaultTheme:r=w9,rootShouldForwardProp:o=Gh,slotShouldForwardProp:n=Gh}=e,a=i=>(0,k9.default)((0,en.default)({},i,{theme:Wh((0,en.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,wO.internal_processStyles)(i,P=>P.filter(T=>!(T!=null&&T.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=B9(A9(p))}=s,f=(0,Vx.default)(s,I9),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Gh;p==="Root"||p==="root"?b=o:p?b=n:_9(i)&&(b=void 0);let x=(0,wO.default)(i,(0,en.default)({shouldForwardProp:b,label:v},f)),g=P=>typeof P=="function"&&P.__emotion_real!==P||(0,C9.isPlainObject)(P)?T=>Yh(P,(0,en.default)({},T,{theme:Wh({theme:T.theme,defaultTheme:r,themeId:t})})):P,S=(P,...T)=>{let C=g(P),k=T?T.map(g):[];l&&d&&k.push(M=>{let B=Wh((0,en.default)({},M,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[l]||!B.components[l].styleOverrides)return null;let A=B.components[l].styleOverrides,$={};return Object.entries(A).forEach(([N,_])=>{$[N]=Yh(_,(0,en.default)({},M,{theme:B}))}),d(M,$)}),l&&!y&&k.push(M=>{var B;let A=Wh((0,en.default)({},M,{defaultTheme:r,themeId:t})),$=A==null||(B=A.components)==null||(B=B[l])==null?void 0:B.variants;return Yh({variants:$},(0,en.default)({},M,{theme:A}))}),h||k.push(a);let I=k.length-T.length;if(Array.isArray(P)&&I>0){let M=new Array(I).fill("");C=[...P,...M],C.raw=[...P.raw,...M]}let D=x(C,...k);return i.muiName&&(D.muiName=i.muiName),D};return x.withConfig&&(S.withConfig=x.withConfig),S}}});var MT=Kt(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.bind=void 0;function z8(e,t){var r=t.type,o=t.listener,n=t.options;return e.addEventListener(r,o,n),function(){e.removeEventListener(r,o,n)}}Yy.bind=z8});var D_=Kt(Np=>{"use strict";var Mp=Np&&Np.__assign||function(){return Mp=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Mp.apply(this,arguments)};Object.defineProperty(Np,"__esModule",{value:!0});Np.bindAll=void 0;var F8=MT();function O_(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function V8(e,t){if(t==null)return e;var r=Mp(Mp({},e),{options:Mp(Mp({},O_(t)),O_(e.options))});return r}function $8(e,t,r){var o=t.map(function(n){var a=V8(n,r);return(0,F8.bind)(e,a)});return function(){o.forEach(function(a){return a()})}}Np.bindAll=$8});var sd=Kt(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.bindAll=Lp.bind=void 0;var j8=MT();Object.defineProperty(Lp,"bind",{enumerable:!0,get:function(){return j8.bind}});var H8=D_();Object.defineProperty(Lp,"bindAll",{enumerable:!0,get:function(){return H8.bindAll}})});var vw=Kt((Tat,gw)=>{var fw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,EY=/\n/g,IY=/^\s*/,OY=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,DY=/^:\s*/,_Y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wY=/^[;\s]*/,AY=/^\s+|\s+$/g,BY=`
|
|
2
|
+
`,mw="/",hw="*",Ys="",MY="comment",NY="declaration";gw.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function n(h){var v=h.match(EY);v&&(r+=v.length);var b=h.lastIndexOf(BY);o=~b?h.length-b:o+h.length}function a(){var h={line:r,column:o};return function(v){return v.position=new i(h),c(),v}}function i(h){this.start=h,this.end={line:r,column:o},this.source=t.source}i.prototype.content=e;var s=[];function l(h){var v=new Error(t.source+":"+r+":"+o+": "+h);if(v.reason=h,v.filename=t.source,v.line=r,v.column=o,v.source=e,t.silent)s.push(v);else throw v}function p(h){var v=h.exec(e);if(v){var b=v[0];return n(b),e=e.slice(b.length),v}}function c(){p(IY)}function u(h){var v;for(h=h||[];v=d();)v!==!1&&h.push(v);return h}function d(){var h=a();if(!(mw!=e.charAt(0)||hw!=e.charAt(1))){for(var v=2;Ys!=e.charAt(v)&&(hw!=e.charAt(v)||mw!=e.charAt(v+1));)++v;if(v+=2,Ys===e.charAt(v-1))return l("End of comment missing");var b=e.slice(2,v-2);return o+=2,n(b),e=e.slice(v),o+=2,h({type:MY,comment:b})}}function f(){var h=a(),v=p(OY);if(v){if(d(),!p(DY))return l("property missing ':'");var b=p(_Y),x=h({type:NY,property:yw(v[0].replace(fw,Ys)),value:b?yw(b[0].replace(fw,Ys)):Ys});return p(wY),x}}function y(){var h=[];u(h);for(var v;v=f();)v!==!1&&(h.push(v),u(h));return h}return c(),y()};function yw(e){return e?e.replace(AY,Ys):Ys}});var bw=Kt(hd=>{"use strict";var LY=hd&&hd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hd,"__esModule",{value:!0});var zY=LY(vw());function FY(e,t){var r=null;if(!e||typeof e!="string")return r;var o=(0,zY.default)(e),n=typeof t=="function";return o.forEach(function(a){if(a.type==="declaration"){var i=a.property,s=a.value;n?t(i,s,a):s&&(r=r||{},r[i]=s)}}),r}hd.default=FY});var jA=Kt((aut,$A)=>{"use strict";var wg=Object.prototype.hasOwnProperty,VA=Object.prototype.toString,BA=Object.defineProperty,MA=Object.getOwnPropertyDescriptor,NA=function(t){return typeof Array.isArray=="function"?Array.isArray(t):VA.call(t)==="[object Array]"},LA=function(t){if(!t||VA.call(t)!=="[object Object]")return!1;var r=wg.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&wg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;var n;for(n in t);return typeof n>"u"||wg.call(t,n)},zA=function(t,r){BA&&r.name==="__proto__"?BA(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},FA=function(t,r){if(r==="__proto__")if(wg.call(t,r)){if(MA)return MA(t,r).value}else return;return t[r]};$A.exports=function e(){var t,r,o,n,a,i,s=arguments[0],l=1,p=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)o=FA(s,r),n=FA(t,r),s!==n&&(c&&n&&(LA(n)||(a=NA(n)))?(a?(a=!1,i=o&&NA(o)?o:[]):i=o&&LA(o)?o:{},zA(s,{name:r,newValue:e(c,i,n)})):typeof n<"u"&&zA(s,{name:r,newValue:n}));return s}});import{ControlType as fo}from"framer";import tZ,{createElement as Wg,useEffect as xB,useState as TB,useMemo as rZ,useRef as oZ}from"react";var AB={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},Xi=AB;var Ao="$$joy";ta();import"react";ta();qa();ta();import*as sS from"react";function fN(e){return Object.keys(e).length===0}function mN(e=null){let t=sS.useContext(Mo);return!t||fN(t)?e:t}var vf=mN;var hN=zo();function yN(e=hN){return vf(e)}var cn=yN;import{jsx as gN}from"react/jsx-runtime";function vN({styles:e,themeId:t,defaultTheme:r={}}){let o=cn(r),n=typeof e=="function"?e(t&&o[t]||o):e;return gN(Bn,{styles:n})}var bf=vN;Ev();Iv();Ov();Dv();as();Ya();Ka();var cS=e=>e,TN=()=>{let e=cS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cS}}},PN=TN(),ls=PN;re();be();import*as dS from"react";function uS(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=uS(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function CN(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=uS(e))&&(o&&(o+=" "),o+=t);return o}var Pe=CN;ta();Ka();import{jsx as kN}from"react/jsx-runtime";var SN=["className","component"];function xf(e={}){let{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:n}=e,a=Cl("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(xo);return dS.forwardRef(function(l,p){let c=cn(r),u=no(l),{className:d,component:f="div"}=u,y=H(u,SN);return kN(a,m({as:f,ref:p,className:Pe(d,n?n(o):o),theme:t&&c[t]||c},y))})}var wv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dr(e,t,r="Mui"){let o=wv[t];return o?`${r}-${o}`:`${ls.generate(e)}-${t}`}function To(e,t,r="Mui"){let o={};return t.forEach(n=>{o[n]=Dr(e,n,r)}),o}re();be();ta();ro();qa();Ka();var ON=["ownerState"],DN=["variants"],_N=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wN(e){return Object.keys(e).length===0}function AN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var BN=zo(),MN=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function wf({defaultTheme:e,theme:t,themeId:r}){return wN(t)?e:t[r]||t}function NN(e){return e?(t,r)=>r[e]:null}function Af(e,t){let{ownerState:r}=t,o=H(t,ON),n=typeof e=="function"?e(m({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Af(a,m({ownerState:r},o)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:a=[]}=n,s=H(n,DN);return a.forEach(l=>{let p=!0;typeof l.props=="function"?p=l.props(m({ownerState:r},o,r)):Object.keys(l.props).forEach(c=>{(r==null?void 0:r[c])!==l.props[c]&&o[c]!==l.props[c]&&(p=!1)}),p&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(m({ownerState:r},o,r)):l.style))}),s}return n}function El(e={}){let{themeId:t,defaultTheme:r=BN,rootShouldForwardProp:o=Lv,slotShouldForwardProp:n=Lv}=e,a=i=>xo(m({},i,{theme:wf(m({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{vv(i,P=>P.filter(T=>!(T!=null&&T.__mui_systemSx)));let{name:l,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:d=NN(MN(p))}=s,f=H(s,_N),y=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,h=u||!1,v,b=Lv;p==="Root"||p==="root"?b=o:p?b=n:AN(i)&&(b=void 0);let x=Cl(i,m({shouldForwardProp:b,label:v},f)),g=P=>typeof P=="function"&&P.__emotion_real!==P||pn(P)?T=>Af(P,m({},T,{theme:wf({theme:T.theme,defaultTheme:r,themeId:t})})):P,S=(P,...T)=>{let C=g(P),k=T?T.map(g):[];l&&d&&k.push(M=>{let B=wf(m({},M,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[l]||!B.components[l].styleOverrides)return null;let A=B.components[l].styleOverrides,$={};return Object.entries(A).forEach(([N,_])=>{$[N]=Af(_,m({},M,{theme:B}))}),d(M,$)}),l&&!y&&k.push(M=>{var B;let A=wf(m({},M,{defaultTheme:r,themeId:t})),$=A==null||(B=A.components)==null||(B=B[l])==null?void 0:B.variants;return Af({variants:$},m({},M,{theme:A}))}),h||k.push(a);let I=k.length-T.length;if(Array.isArray(P)&&I>0){let M=new Array(I).fill("");C=[...P,...M],C.raw=[...P.raw,...M]}let D=x(C,...k);return i.muiName&&(D.muiName=i.muiName),D};return x.withConfig&&(S.withConfig=x.withConfig),S}}var LN=El(),Bf=LN;uf();Rv();re();function vc(e,t){let r=m({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))r[o]=m({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let n=e[o]||{},a=t[o];r[o]={},!a||!Object.keys(a)?r[o]=n:!n||!Object.keys(n)?r[o]=a:(r[o]=m({},a),Object.keys(n).forEach(i=>{r[o][i]=vc(n[i],a[i])}))}else r[o]===void 0&&(r[o]=e[o])}),r}function Mf(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:vc(t.components[r].defaultProps,o)}function un({props:e,name:t,defaultTheme:r,themeId:o}){let n=cn(r);return o&&(n=n[o]||n),Mf({theme:n,name:t,props:e})}import*as Nf from"react";var zN=typeof window<"u"?Nf.useLayoutEffect:Nf.useEffect,Ot=zN;$a();function VN(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function SS(e){if(e.type)return e;if(e.charAt(0)==="#")return SS(VN(e));let t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(mr(9,e));let o=e.substring(t+1,e.length-1),n;if(r==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error(mr(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}var Xa=e=>{let t=SS(e);return t.values.slice(0,3).map((r,o)=>t.type.indexOf("hsl")!==-1&&o!==0?`${r}%`:r).join(" ")};re();import*as zS from"react";re();import*as BS from"react";ro();Sl();function Il(...e){return e.reduce((t,r)=>r==null?t:function(...n){t.apply(this,n),r.apply(this,n)},()=>{})}function bc(e,t=166){let r;function o(...n){let a=()=>{e.apply(this,n)};clearTimeout(r),r=setTimeout(a,t)}return o.clear=()=>{clearTimeout(r)},o}import*as kS from"react";function Xt(e,t){var r,o;return kS.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function mt(e){return e&&e.ownerDocument||document}function Nn(e){return mt(e).defaultView||window}function Ln(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as Ol from"react";var RS=0;function $N(e){let[t,r]=Ol.useState(e),o=e||t;return Ol.useEffect(()=>{t==null&&(RS+=1,r(`mui-${RS}`))},[t]),o}var ES=Ol.useId;function Ze(e){if(ES!==void 0){let t=ES();return e!=null?e:t}return $N(e)}import*as ps from"react";function Zt({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=ps.useRef(e!==void 0),[a,i]=ps.useState(t),s=n?e:a,l=ps.useCallback(p=>{n||i(p)},[]);return[s,l]}import*as Fv from"react";function jN(e){let t=Fv.useRef(e);return Ot(()=>{t.current=e}),Fv.useRef((...r)=>(0,t.current)(...r)).current}var Qt=jN;import*as IS from"react";function _e(...e){return IS.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ln(r,t)})},e)}import*as DS from"react";var OS={};function Vv(e,t){let r=DS.useRef(OS);return r.current===OS&&(r.current=e(t)),r}import*as _S from"react";var HN=[];function $v(e){_S.useEffect(e,HN)}var oa=class e{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function Za(){let e=Vv(oa.create).current;return $v(e.disposeEffect),e}import*as Lf from"react";var zf=!0,Hv=!1,UN=new oa,WN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function GN(e){let{type:t,tagName:r}=e;return!!(r==="INPUT"&&WN[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function YN(e){e.metaKey||e.altKey||e.ctrlKey||(zf=!0)}function jv(){zf=!1}function JN(){this.visibilityState==="hidden"&&Hv&&(zf=!0)}function qN(e){e.addEventListener("keydown",YN,!0),e.addEventListener("mousedown",jv,!0),e.addEventListener("pointerdown",jv,!0),e.addEventListener("touchstart",jv,!0),e.addEventListener("visibilitychange",JN,!0)}function KN(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return zf||GN(t)}function Po(){let e=Lf.useCallback(n=>{n!=null&&qN(n.ownerDocument)},[]),t=Lf.useRef(!1);function r(){return t.current?(Hv=!0,UN.start(100,()=>{Hv=!1}),t.current=!1,!0):!1}function o(n){return KN(n)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:r,ref:e}}function xc(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}import*as Ff from"react";var XN=e=>{let t=Ff.useRef({});return Ff.useEffect(()=>{t.current=e}),t.current},Dl=XN;var ZN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},_l=ZN;function X(e,t,r=void 0){let o={};return Object.keys(e).forEach(n=>{o[n]=e[n].reduce((a,i)=>{if(i){let s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),o}zv();import*as wS from"react";var QN=wS.createContext(null),Vf=QN;import*as Uv from"react";function na(){return Uv.useContext(Vf)}var eL=typeof Symbol=="function"&&Symbol.for,AS=eL?Symbol.for("mui.nested"):"__THEME_NESTED__";import{jsx as tL}from"react/jsx-runtime";function rL(e,t){return typeof t=="function"?t(e):m({},e,t)}function oL(e){let{children:t,theme:r}=e,o=na(),n=BS.useMemo(()=>{let a=o===null?r:rL(o,r);return a!=null&&(a[AS]=o!==null),a},[r,o]);return tL(Vf.Provider,{value:n,children:t})}var $f=oL;ta();re();be();import*as Wv from"react";import{jsx as aL}from"react/jsx-runtime";var nL=["value"],iL=Wv.createContext();function sL(e){let{value:t}=e,r=H(e,nL);return aL(iL.Provider,m({value:t!=null?t:!0},r))}var MS=sL;import{jsx as Gv}from"react/jsx-runtime";var NS={};function LS(e,t,r,o=!1){return zS.useMemo(()=>{let n=e&&t[e]||t;if(typeof r=="function"){let a=r(n),i=e?m({},t,{[e]:a}):a;return o?()=>i:i}return e?m({},t,{[e]:r}):m({},t,r)},[e,t,r,o])}function lL(e){let{children:t,theme:r,themeId:o}=e,n=vf(NS),a=na()||NS,i=LS(o,n,r),s=LS(o,a,r,!0),l=i.direction==="rtl";return Gv($f,{theme:s,children:Gv(Mo.Provider,{value:i,children:Gv(MS,{value:l,children:t})})})}var jf=lL;re();be();$a();import*as _r from"react";ro();ta();import"react";import{jsx as pL}from"react/jsx-runtime";var Tc="mode",Pc="color-scheme",Yv="data-color-scheme";function Jv(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:n=Tc,colorSchemeStorageKey:a=Pc,attribute:i=Yv,colorSchemeNode:s="document.documentElement"}=e||{};return pL("script",{dangerouslySetInnerHTML:{__html:`(function() {
|
|
3
3
|
try {
|
|
4
4
|
var mode = localStorage.getItem('${n}') || '${t}';
|
|
5
5
|
var colorScheme = '';
|
|
@@ -124,12 +124,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
124
124
|
Prefix can't start with '-' when allowNegative is true.
|
|
125
125
|
prefix: `+n+`
|
|
126
126
|
allowNegative: `+a+`
|
|
127
|
-
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function n7(e){e=o7(e);var t=e.decimalSeparator,r=e.allowedDecimalSeparators,o=e.thousandsGroupStyle,n=e.suffix,a=e.allowNegative,i=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=Mi);var l=e.onBlur;l===void 0&&(l=Mi);var p=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,y=e.value,h=e.valueIsNumericString,v=e.onValueChange,b=UD(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),x=Cy(e),g=x.decimalSeparator,S=x.allowedDecimalSeparators,P=function(F){return jD(F,e)},T=function(F,R){return t7(F,R,e)},C=Ip(y)?f:y,k=h!=null?h:e7(C,d,n);Ip(y)?Ip(f)||(k=k||typeof f=="number"):k=k||typeof y=="number";var I=function(F){return WD(F)?F:(typeof F=="number"&&(F=JD(F)),k&&typeof c=="number"?VD(F,c,!!u):F)},D=KD(I(y),I(f),!!k,P,T,v),M=D[0],B=M.numAsString,A=M.formattedValue,$=D[1],N=function(F){var R=F.target,q=F.key,J=R.selectionStart,w=R.selectionEnd,se=R.value;if(se===void 0&&(se=""),J!==w){s(F);return}q==="Backspace"&&se[0]==="-"&&J===d.length+1&&a&&Hs(R,1),c&&u&&(q==="Backspace"&&se[J-1]===g?(Hs(R,J-1),F.preventDefault()):q==="Delete"&&se[J]===g&&F.preventDefault()),S!=null&&S.includes(q)&&se[J]===g&&Hs(R,J+1);var ye=p===!0?",":p;q==="Backspace"&&se[J-1]===ye&&Hs(R,J-1),q==="Delete"&&se[J]===ye&&Hs(R,J+1),s(F)},_=function(F){var R=B;if(R.match(/\d/g)||(R=""),i||(R=jG(R)),u&&c&&(R=VD(R,c,u)),R!==B){var q=jD(R,e);$({formattedValue:q,value:R,floatValue:parseFloat(R)},{event:F,source:Fu.event})}l(F)},L=function(F){return F===g?!0:Vu(F)},U=function(F){var R=F.currentValue,q=F.lastValue,J=F.formattedValue,w=F.currentValueIndex,se=F.formattedValueIndex,ye=R[w],we=J[se],ne=qD(q,R),W=ne.to;return w>=W.start&&w<W.end&&S&&S.includes(ye)&&we===g?!0:ye===we};return Object.assign(Object.assign({},b),{value:A,valueIsNumericString:!1,isValidInputCharacter:L,isCharacterSame:U,onValueChange:$,format:P,removeFormatting:T,getCaretBoundary:function(F){return r7(F,e)},onKeyDown:N,onBlur:_})}function Sy(e){var t=n7(e);return Ep.createElement(XG,Object.assign({},t))}import a7,{useCallback as i7}from"react";import{motion as s7}from"framer-motion";var l7=s7(np),$u=a7.forwardRef((e,t)=>{var T;let P=e,{label:r,helperText:o,error:n,style:a,size:i,color:s,disabled:l,required:p,onChange:c,name:u,sx:d,className:f,enableClearable:y}=P,h=he(P,["label","helperText","error","style","size","color","disabled","required","onChange","name","sx","className","enableClearable"]),[v,b]=At(e.value,e.defaultValue,i7(C=>{c==null||c({target:{value:(C==null?void 0:C.toString())||"",name:u||""}})},[c,u])),x=C=>{b(C.target.value)},g=()=>{b(e.defaultValue||"")},S=O(l7,Q(z({value:v,name:u,onChange:x,required:p,color:n?"danger":s,disabled:l,slotProps:z({input:z({ref:t},(T=h.slotProps)==null?void 0:T.input)},h.slotProps)},h),{endDecorator:y?xe(Ct,{gap:1,direction:"row",children:[h.endDecorator,v&&O(or,{onMouseDown:C=>C.preventDefault(),onClick:g,"aria-label":"Clear",children:O(Xh,{})})]}):h.endDecorator}));return xe(Gn,{required:p,color:s,size:i,error:n,disabled:l,sx:d,className:f,children:[r&&O(Yn,{children:r}),S,o&&O(Jn,{children:o})]})});$u.displayName="Input";var Kr=$u;var p7={AED:2,ALL:2,AMD:2,ANG:2,AOA:2,ARS:2,AUD:2,AWG:2,AZN:2,BAM:2,BBD:2,BDT:2,BGN:2,BHD:3,BMD:2,BND:2,BOB:2,BRL:2,BSD:2,BWP:2,BYN:2,BZD:2,CAD:2,CHF:2,CLP:2,CNH:2,CNY:2,COP:2,CRC:2,CUP:2,CVE:0,CZK:2,DJF:0,DKK:2,DOP:2,DZD:2,EGP:2,ETB:2,EUR:2,FJD:2,FKP:2,GBP:2,GEL:2,GHS:2,GIP:2,GMD:2,GNF:0,GTQ:2,GYD:2,HKD:2,HNL:2,HTG:2,HUF:2,IDR:0,ILS:2,INR:2,IQD:3,ISK:2,JMD:2,JOD:3,JPY:0,KES:2,KGS:2,KHR:2,KMF:0,KRW:0,KWD:3,KYD:2,KZT:2,LAK:2,LBP:2,LKR:2,LYD:3,MAD:2,MDL:2,MKD:2,MMK:2,MNT:2,MOP:2,MRU:2,MUR:2,MVR:2,MWK:2,MXN:2,MYR:2,MZN:2,NAD:2,NGN:2,NIO:2,NOK:2,NPR:2,NZD:2,OMR:3,PAB:2,PEN:2,PGK:2,PHP:2,PKR:2,PLN:2,PYG:0,QAR:2,RON:2,RSD:2,RUB:2,RWF:0,SAR:2,SBD:2,SCR:2,SEK:2,SGD:2,SHP:2,SLE:2,SOS:2,SRD:2,STN:2,SVC:2,SZL:2,THB:2,TND:3,TOP:2,TRY:2,TTD:2,TWD:2,TZS:2,UAH:2,UGX:0,USD:2,UYU:2,UZS:2,VEF:2,VND:0,VUV:0,WST:2,XAF:0,XCD:2,XOF:0,XPF:0,YER:2,ZAR:2,ZMW:2},XD=(e="USD")=>{let[t,r,o,...n]=new zD(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=p7[e];return{symbol:`${t} `,thousandSeparator:r,decimalSeparator:o,placeholder:o?`${t} 0${o}${Array.from(Array(a)).map(()=>0).join("")}`:`${t} 0`,fixedDecimalScale:!!o,decimalScale:a}};var u7=e_.forwardRef(function(t,r){let a=t,{onChange:o}=a,n=he(a,["onChange"]);return O(Sy,Q(z({},n),{onValueChange:({value:i})=>{o==null||o({target:{name:t.name,value:i}})},valueIsNumericString:!0,getInputRef:r,allowNegative:!1}))}),d7=E(Kr,{name:"CurrencyInput",slot:"root",overridesResolver:(e,t)=>t.root})({}),ky=e_.forwardRef(function(t,r){let o=G({props:t,name:"CurrencyInput"}),A=o,{currency:n="USD",name:a,onChange:i,label:s,error:l,helperText:p,required:c,disabled:u,useMinorUnit:d,sx:f,className:y}=A,h=he(A,["currency","name","onChange","label","error","helperText","required","disabled","useMinorUnit","sx","className"]),{symbol:v,thousandSeparator:b,decimalSeparator:x,placeholder:g,fixedDecimalScale:S,decimalScale:P}=XD(n),[T,C]=At(o.value,o.defaultValue,ZD($=>i==null?void 0:i({target:{name:a,value:$}}),[i,a])),k=QD(()=>T&&d?T/Math.pow(10,P):T,[T,d,P]),I=QD(()=>o.max&&d?o.max/Math.pow(10,P):o.max,[o.max,d,P]),[D,M]=c7(!!I&&!!k&&k>I),B=ZD($=>{var _;if($.target.value===""){C(void 0);return}let N=Number(d?(_=$.target.value)==null?void 0:_.replace(x,""):$.target.value);I&&Number($.target.value)>I?M(!0):M(!1),C(N)},[x,I,d,C]);return O(d7,Q(z({},h),{ref:r,value:k,placeholder:g,onChange:B,error:l||D,disabled:u,required:c,color:l||D?"danger":o.color,label:s,helperText:D?new Py(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:I}):p,slotProps:{input:{component:u7,decimalSeparator:x,thousandSeparator:b,prefix:v,fixedDecimalScale:S,decimalScale:P,"aria-label":h["aria-label"]}},sx:z({},f),className:y}))});var t_=ky;import Y7,{useCallback as Kn,useEffect as jy,useMemo as ur,useRef as Hy,useState as CT,useId as J7,forwardRef as q7,useImperativeHandle as K7}from"react";import{jsx as f7}from"react/jsx-runtime";var r_=ht(f7("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0s.39-1.02 0-1.41l-6.59-6.59a.996.996 0 0 0-1.41 0l-6.6 6.58c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1"}),"ArrowUpwardRounded");import{motion as m7}from"framer-motion";var h7=m7(xh),ju=h7;ju.displayName="Sheet";var tn=ju;var Hu=e=>{let o=e,{children:t}=o,r=he(o,["children"]);return O(Ih,Q(z({},r),{children:t}))};Hu.displayName="Table";function mT(e){let{headCells:t,showCheckbox:r,onCheckboxChange:o,slots:{checkbox:n=wu}={},slotProps:{checkbox:a={}}={}}=e;return O("thead",{children:xe("tr",{children:[r&&O("th",{style:{width:"40px",textAlign:"center"},children:O(n,z({onChange:o},a))}),t.map(i=>O("th",{style:{width:i.width,minWidth:i.minWidth,maxWidth:i.maxWidth,textAlign:i.numeric?"right":"left"},children:i.label},i.label))]})})}mT.displayName="TableHead";function hT(e){let{rows:t,cellOrder:r,rowOptions:o,showCheckbox:n,onCheckboxChange:a,slots:{checkbox:i=wu}={},slotProps:{checkbox:s={}}={}}=e;return O("tbody",{children:t.map((l,p)=>xe("tr",{children:[n&&O("td",{style:{textAlign:"center"},children:O(i,z({onChange:c=>a==null?void 0:a(c,p)},s))}),r.map(c=>{var u;return O("td",{style:{textAlign:(u=o==null?void 0:o[c])!=null&&u.numeric?"right":"left"},children:l[c]},c)})]},p))})}hT.displayName="TableBody";import k7,{forwardRef as R7,useCallback as My,useEffect as l_,useImperativeHandle as E7,useRef as p_,useState as c_}from"react";function ko(e){return typeof e=="string"||e instanceof String}function yT(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function gT(e,t){return Array.isArray(t)?gT(e,(r,o)=>t.includes(o)):Object.entries(e).reduce((r,o)=>{let[n,a]=o;return t(a,n)&&(r[n]=a),r},{})}var Be={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function vT(e){switch(e){case Be.LEFT:return Be.FORCE_LEFT;case Be.RIGHT:return Be.FORCE_RIGHT;default:return e}}function Ry(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Op(e,t){if(t===e)return!0;let r=Array.isArray(t),o=Array.isArray(e),n;if(r&&o){if(t.length!=e.length)return!1;for(n=0;n<t.length;n++)if(!Op(t[n],e[n]))return!1;return!0}if(r!=o)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){let a=t instanceof Date,i=e instanceof Date;if(a&&i)return t.getTime()==e.getTime();if(a!=i)return!1;let s=t instanceof RegExp,l=e instanceof RegExp;if(s&&l)return t.toString()==e.toString();if(s!=l)return!1;let p=Object.keys(t);for(n=0;n<p.length;n++)if(!Object.prototype.hasOwnProperty.call(e,p[n]))return!1;for(n=0;n<p.length;n++)if(!Op(e[p[n]],t[p[n]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}var Ey=class{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?Be.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?Be.RIGHT:Be.LEFT}};function Se(e,t){return new Se.InputMask(e,t)}function bT(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?Se.MaskedRegExp:ko(e)?Se.MaskedPattern:e===Date?Se.MaskedDate:e===Number?Se.MaskedNumber:Array.isArray(e)||e===Array?Se.MaskedDynamic:Se.Masked&&e.prototype instanceof Se.Masked?e:Se.Masked&&e instanceof Se.Masked?e.constructor:e instanceof Function?Se.MaskedFunction:(console.warn("Mask not found for mask",e),Se.Masked)}function Oa(e){if(!e)throw new Error("Options in not defined");if(Se.Masked){if(e.prototype instanceof Se.Masked)return{mask:e};let t=e instanceof Se.Masked?{mask:e}:yT(e)&&e.mask instanceof Se.Masked?e:{},{mask:r=void 0}=t,o=he(t,["mask"]);if(r){let n=r.mask;return z(Q(z({},gT(r,(a,i)=>!i.startsWith("_"))),{mask:r.constructor,_mask:n}),o)}}return yT(e)?z({},e):{mask:e}}function Fr(e){if(Se.Masked&&e instanceof Se.Masked)return e;let t=Oa(e),r=bT(t.mask);if(!r)throw new Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}Se.createMask=Fr;var Ni=class{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch(r){}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch(r){}return t!=null?t:this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch(o){}}get isActive(){return!1}};Se.MaskElement=Ni;var o_=90,y7=89,Da=class extends Ni{constructor(t){super(),this.input=t,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,r,o;return(t=(r=(o=this.input).getRootNode)==null?void 0:r.call(o))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",t.drop),this.input.addEventListener("click",t.click),this.input.addEventListener("focus",t.focus),this.input.addEventListener("blur",t.commit),this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===o_&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===y7&&t.ctrlKey))return t.preventDefault(),this._handlers.redo(t);if(this._handlers.undo&&t.keyCode===o_&&(t.metaKey||t.ctrlKey))return t.preventDefault(),this._handlers.undo(t);t.isComposing||this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo)return t.preventDefault(),this._handlers.undo(t);if(t.inputType==="historyRedo"&&this._handlers.redo)return t.preventDefault(),this._handlers.redo(t)}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){t.isComposing||this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};Se.HTMLMaskElement=Da;var Uu=class extends Da{constructor(t){super(t),this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}};Se.HTMLMaskElement=Da;var Dp=class extends Da{get _unsafeSelectionStart(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o<n?o:n}get _unsafeSelectionEnd(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o>n?o:n}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;let o=this.rootElement.createRange();o.setStart(this.input.firstChild||this.input,t),o.setEnd(this.input.lastChild||this.input,r);let n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(o))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}};Se.HTMLContenteditableMaskElement=Dp;var Wu=class e{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>e.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(t){return this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};Wu.MAX_LENGTH=100;var Iy=class{constructor(t,r){this.el=t instanceof Ni?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Dp(t):new Uu(t),this.masked=Fr(r),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Wu,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof Se.Masked)&&this.masked.constructor===bT(t)){this.masked.updateOptions({mask:t});return}let r=t instanceof Se.Masked?t:Fr({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){this.rawInputValue!==t&&(this.masked.rawInputValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){let o=this._listeners[t];o&&o.forEach(n=>n(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(t){let r=this.masked.unmaskedValue,o=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==r||this.value!==o||this._rawInputValue!==n;this._unmaskedValue=r,this._value=o,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),t==="auto"?this.alignCursor():t!=null&&(this.cursorPos=t),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:r,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){let i=t,{mask:r}=i,o=he(i,["mask"]),n=!this.maskEquals(r),a=this.masked.optionsIsChanged(o);n&&(this.mask=r),a&&this.masked.updateOptions(o),(n||a)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Be.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;let o=this._listeners[t].indexOf(r);return o>=0&&this._listeners[t].splice(o,1),this}_onInput(t){this._inputEvent=t,this._abortUpdateCursor();let r=new Ey({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),o=this.masked.rawInputValue,n=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,a=o===this.masked.rawInputValue?r.removeDirection:Be.NONE,i=this.masked.nearestInputPos(r.startChangePos+n,a);a!==Be.NONE&&(i=this.masked.nearestInputPos(i,Be.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){t&&(this._historyChanging=!0,this.unmaskedValue=t.unmaskedValue,this.el.select(t.selection.start,t.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};Se.InputMask=Iy;var je=class e{static normalize(t){return Array.isArray(t)?t:[t,new e]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},t)}aggregate(t){return this.inserted+=t.inserted,this.rawInserted+=t.rawInserted,this.tailShift+=t.tailShift,this.skip=this.skip||t.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}};Se.ChangeDetails=je;var Vr=class{constructor(t,r,o){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=o}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";let r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";let t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}};var Jt=class e{constructor(t){this._value="",this._update(z(z({},e.DEFAULTS),t)),this._initialized=!0}updateOptions(t){this.optionsIsChanged(t)&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr(this.extractInput(t,r),t)}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new je({inserted:t,rawInserted:t})):new je}_appendChar(t,r,o){r===void 0&&(r={});let n=this.state,a;if([t,a]=this.doPrepareChar(t,r),t&&(a=a.aggregate(this._appendCharRaw(t,r)),!a.rawInserted&&this.autofix==="pad")){let i=this.state;this.state=n;let s=this.pad(r),l=this._appendCharRaw(t,r);s=s.aggregate(l),l.rawInserted||s.equals(a)?a=s:this.state=i}if(a.inserted){let i,s=this.doValidate(r)!==!1;if(s&&o!=null){let l=this.state;if(this.overwrite===!0){i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.unshift(this.displayValue.length-a.tailShift)}let p=this.appendTail(o);if(s=p.rawInserted.length===o.toString().length,!(s&&p.inserted)&&this.overwrite==="shift"){this.state=l,i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.shift();p=this.appendTail(o),s=p.rawInserted.length===o.toString().length}s&&p.inserted&&(this.state=l)}s||(a=new je,this.state=n,o&&i&&(o.state=i))}return a}_appendPlaceholder(){return new je}_appendEager(){return new je}append(t,r,o){if(!ko(t))throw new Error("value should be string");let n=ko(o)?new Vr(String(o)):o;r!=null&&r.tail&&(r._beforeTailState=this.state);let a;[t,a]=this.doPrepare(t,r);for(let i=0;i<t.length;++i){let s=this._appendChar(t[i],r,n);if(!s.rawInserted&&!this.doSkipInvalid(t[i],r,n))break;a.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new je}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;let r=this.rawInputValue,o=this.value,n=t();return this.rawInputValue=r,this.value&&this.value!==o&&o.indexOf(this.value)===0&&(this.append(o.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;let r=this.state,o=t(this);return this.state=r,delete this._isolated,o}doSkipInvalid(t,r,o){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),je.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),je.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,o,n,a){o===void 0&&(o=""),n===void 0&&(n=Be.NONE),a===void 0&&(a={input:!0});let i=t+r,s=this.extractTail(i),l=this.eager===!0||this.eager==="remove",p;l&&(n=vT(n),p=this.extractInput(0,i,{raw:!0}));let c=t,u=new je;if(n!==Be.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!l?Be.NONE:n),u.tailShift=c-t),u.aggregate(this.remove(c)),l&&n!==Be.NONE&&p===this.rawInputValue)if(n===Be.FORCE_LEFT){let d;for(;p===this.rawInputValue&&(d=this.displayValue.length);)u.aggregate(new je({tailShift:-1})).aggregate(this.remove(d-1))}else n===Be.FORCE_RIGHT&&s.unshift();return u.aggregate(this.append(o,a,s))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!Op(this,t)}typedValueEquals(t){let r=this.typedValue;return t===r||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}pad(t){return new je}};Jt.DEFAULTS={skipInvalid:!0};Jt.EMPTY_VALUES=[void 0,null,""];Se.Masked=Jt;var _p=class e{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=ko(t)?new Vr(String(t)):t;let r=this.chunks[this.chunks.length-1],o=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof Vr)o?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof e){if(t.stop==null){let n;for(;t.chunks.length&&t.chunks[0].stop==null;)n=t.chunks.shift(),n.from+=t.from,this.extend(n)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof Se.MaskedPattern))return new Vr(this.toString()).appendTo(t);let r=new je;for(let o=0;o<this.chunks.length;++o){let n=this.chunks[o],a=t._mapPosToBlock(t.displayValue.length),i=n.stop,s;if(i!=null&&(!a||a.index<=i)&&((n instanceof e||t._stops.indexOf(i)>=0)&&r.aggregate(t._appendPlaceholder(i)),s=n instanceof e&&t._blocks[i]),s){let l=s.appendTail(n);r.aggregate(l);let p=n.toString().slice(l.rawInserted.length);p&&r.aggregate(t.append(p,{tail:!0}))}else r.aggregate(t.append(n.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let n=t,{chunks:r}=n,o=he(n,["chunks"]);Object.assign(this,o),this.chunks=r.map(a=>{let i="chunks"in a?new e:new Vr;return i.state=a,i})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";let r=t!=null?t-this.from:t,o=0;for(;o<this.chunks.length;){let n=this.chunks[o],a=n.unshift(r);if(n.toString()){if(!a)break;++o}else this.chunks.splice(o,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){let r=this.chunks[t],o=r.shift();if(r.toString()){if(!o)break;--t}else this.chunks.splice(t,1);if(o)return o}return""}};var Oy=class{constructor(t,r){this.masked=t,this._log=[];let{offset:o,index:n}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=o,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){let t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}};var wp=class{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new je}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this._value.length;switch(r){case Be.LEFT:case Be.FORCE_LEFT:return o;case Be.NONE:case Be.RIGHT:case Be.FORCE_RIGHT:default:return n}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),o===void 0&&(o={}),o.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new je;let o=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!o)&&!r.tail,i=new je({inserted:this.char,rawInserted:a?this.char:""});return this._value=this.char,this._isRawInput=a&&(r.raw||r.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let t=new je;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new Vr("")}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}append(t,r,o){let n=this._appendChar(t[0],r);return o!=null&&(n.tailShift+=this.appendTail(o).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}pad(t){return this._appendPlaceholder()}};var Li=class{constructor(t){let p=t,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s}=p,l=he(p,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=Fr(l),Object.assign(this,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new je}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new je;let o=this.masked.state,n=this.masked._appendChar(t,this.currentMaskFlags(r));return n.inserted&&this.doValidate(r)===!1&&(n=new je,this.masked.state=o),!n.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(t,r,o){return this.masked.append(t,this.currentMaskFlags(r),o)}_appendPlaceholder(){return this.isFilled||this.isOptional?new je:(this.isFilled=!0,new je({inserted:this.placeholderChar}))}_appendEager(){return new je}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,o)}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this.value.length,a=Math.min(Math.max(t,o),n);switch(r){case Be.LEFT:case Be.FORCE_LEFT:return this.isComplete?a:o;case Be.RIGHT:case Be.FORCE_RIGHT:return this.isComplete?a:n;case Be.NONE:default:return a}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return Q(z({},t),{_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)})}pad(t){return new je}};Li.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var Dy=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){let r=t.mask;r&&(t.validate=o=>o.search(r)>=0),super._update(t)}};Se.MaskedRegExp=Dy;var nr=class e extends Jt{constructor(t){super(Q(z(z({},e.DEFAULTS),t),{definitions:Object.assign({},Li.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)}))}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let r=this.mask;if(!r||!t)return;let o=!1,n=!1;for(let i=0;i<r.length;++i){if(this.blocks){let c=r.slice(i),u=Object.keys(this.blocks).filter(f=>c.indexOf(f)===0);u.sort((f,y)=>y.length-f.length);let d=u[0];if(d){let a=Oa(this.blocks[d]),{expose:f,repeat:y}=a,h=he(a,["expose","repeat"]),v=Q(z({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix},h),{repeat:y,parent:this}),b=y!=null?new Se.RepeatBlock(v):Fr(v);b&&(this._blocks.push(b),f&&(this.exposeBlock=b),this._maskedBlocks[d]||(this._maskedBlocks[d]=[]),this._maskedBlocks[d].push(this._blocks.length-1)),i+=d.length-1;continue}}let s=r[i],l=s in t;if(s===e.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(s==="{"||s==="}"){o=!o;continue}if(s==="["||s==="]"){n=!n;continue}if(s===e.ESCAPE_CHAR){if(++i,s=r[i],!s)break;l=!1}let p=l?new Li(Q(z({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},Oa(t[s])),{parent:this})):new wp({char:s,eager:this.eager,isUnmasking:o});this._blocks.push(p)}}get state(){return Q(z({},super.state),{_blocks:this._blocks.map(t=>t.state)})}set state(t){if(!t){this.reset();return}let n=t,{_blocks:r}=n,o=he(n,["_blocks"]);this._blocks.forEach((a,i)=>a.state=r[i]),super.state=o}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;let r=new je,o=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(o==null)return r;this._blocks[o].isFilled&&++o;for(let n=o;n<this._blocks.length;++n){let a=this._blocks[n]._appendEager();if(!a.inserted)break;r.aggregate(a)}return r}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._mapPosToBlock(this.displayValue.length),n=new je;if(!o)return n;for(let i=o.index,s;s=this._blocks[i];++i){var a;let l=s._appendChar(t,Q(z({},r),{_beforeTailState:(a=r._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]}));if(n.aggregate(l),l.consumed)break}return n}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=new _p;return t===r||this._forEachBlocksInRange(t,r,(n,a,i,s)=>{let l=n.extractTail(i,s);l.stop=this._findStopBefore(a),l.from=this._blockStartPos(a),l instanceof _p&&(l.blockIndex=a),o.extend(l)}),o}extractInput(t,r,o){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),o===void 0&&(o={}),t===r)return"";let n="";return this._forEachBlocksInRange(t,r,(a,i,s,l)=>{n+=a.extractInput(s,l,o)}),n}_findStopBefore(t){let r;for(let o=0;o<this._stops.length;++o){let n=this._stops[o];if(n<=t)r=n;else break}return r}_appendPlaceholder(t){let r=new je;if(this.lazy&&t==null)return r;let o=this._mapPosToBlock(this.displayValue.length);if(!o)return r;let n=o.index,a=t!=null?t:this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||t!=null){var s;r.aggregate(i._appendPlaceholder((s=i._blocks)==null?void 0:s.length))}}),r}_mapPosToBlock(t){let r="";for(let o=0;o<this._blocks.length;++o){let n=this._blocks[o],a=r.length;if(r+=n.displayValue,t<=r.length)return{index:o,offset:t-a}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,o)=>r+=o.displayValue.length,0)}_forEachBlocksInRange(t,r,o){r===void 0&&(r=this.displayValue.length);let n=this._mapPosToBlock(t);if(n){let a=this._mapPosToBlock(r),i=a&&n.index===a.index,s=n.offset,l=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(o(this._blocks[n.index],n.index,s,l),a&&!i){for(let p=n.index+1;p<a.index;++p)o(this._blocks[p],p,0,this._blocks[p].displayValue.length);o(this._blocks[a.index],a.index,0,a.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o.aggregate(n.remove(i,s))}),o}nearestInputPos(t,r){if(r===void 0&&(r=Be.NONE),!this._blocks.length)return 0;let o=new Oy(this,t);if(r===Be.NONE)return o.pushRightBeforeInput()||(o.popState(),o.pushLeftBeforeInput())?o.pos:this.displayValue.length;if(r===Be.LEFT||r===Be.FORCE_LEFT){if(r===Be.LEFT){if(o.pushRightBeforeFilled(),o.ok&&o.pos===t)return t;o.popState()}if(o.pushLeftBeforeInput(),o.pushLeftBeforeRequired(),o.pushLeftBeforeFilled(),r===Be.LEFT){if(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.ok&&o.pos<=t||(o.popState(),o.ok&&o.pos<=t))return o.pos;o.popState()}return o.ok?o.pos:r===Be.FORCE_LEFT?0:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:0)}return r===Be.RIGHT||r===Be.FORCE_RIGHT?(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.pushRightBeforeFilled()?o.pos:r===Be.FORCE_RIGHT?this.displayValue.length:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:this.nearestInputPos(t,Be.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=0;return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o+=n.totalInputPositions(i,s)}),o}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){let r=this._maskedBlocks[t];return r?r.map(o=>this._blocks[o]):[]}pad(t){let r=new je;return this._forEachBlocksInRange(0,this.displayValue.length,o=>r.aggregate(o.pad(t))),r}};nr.DEFAULTS=Q(z({},Jt.DEFAULTS),{lazy:!0,placeholderChar:"_"});nr.STOP_CHAR="`";nr.ESCAPE_CHAR="\\";nr.InputDefinition=Li;nr.FixedDefinition=wp;Se.MaskedPattern=nr;var zi=class extends nr{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){let c=t,{to:r=this.to||0,from:o=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix}=c,i=he(c,["to","from","maxLength","autofix"]);this.to=r,this.from=o,this.maxLength=Math.max(String(r).length,n),this.autofix=a;let s=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0"),p=0;for(;p<l.length&&l[p]===s[p];)++p;i.mask=l.slice(0,p).replace(/0/g,"\\0")+"0".repeat(this.maxLength-p),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",o="",[,n,a]=t.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(r="0".repeat(n.length)+a,o="9".repeat(n.length)+a),r=r.padEnd(this.maxLength,"0"),o=o.padEnd(this.maxLength,"9"),[r,o]}doPrepareChar(t,r){r===void 0&&(r={});let o;return[t,o]=super.doPrepareChar(t.replace(/\D/g,""),r),t||(o.skip=!this.isComplete),[t,o]}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,r);let o=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,i]=this.boundaries(this.value+t);return Number(i)<this.from?super._appendCharRaw(o[this.value.length],r):Number(a)>this.to?!r.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(o[this.value.length],r).aggregate(this._appendCharRaw(t,r)):super._appendCharRaw(n[this.value.length],r):super._appendCharRaw(t,r)}doValidate(t){let r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;let[n,a]=this.boundaries(r);return this.from<=Number(a)&&Number(n)<=this.to&&super.doValidate(t)}pad(t){let r=new je;if(this.value.length===this.maxLength)return r;let o=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)r.aggregate(super._appendCharRaw("0",t));o.split("").forEach(a=>this._appendCharRaw(a))}return r}};Se.MaskedRange=zi;var Ap=class e extends nr{static extractPatternOptions(t){let a=t,{mask:r,pattern:o}=a,n=he(a,["mask","pattern"]);return Q(z({},n),{mask:ko(r)?r:o})}constructor(t){super(e.extractPatternOptions(z(z({},e.DEFAULTS),t)))}updateOptions(t){super.updateOptions(t)}_update(t){let s=z(z({},e.DEFAULTS),t),{mask:r,pattern:o,blocks:n}=s,a=he(s,["mask","pattern","blocks"]),i=Object.assign({},e.GET_DEFAULT_BLOCKS());t.min&&(i.Y.from=t.min.getFullYear()),t.max&&(i.Y.to=t.max.getFullYear()),t.min&&t.max&&i.Y.from===i.Y.to&&(i.m.from=t.min.getMonth()+1,i.m.to=t.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=t.min.getDate(),i.d.to=t.max.getDate())),Object.assign(i,this.blocks,n),super._update(Q(z({},a),{mask:ko(r)?r:o,blocks:i}))}doValidate(t){let r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(e.extractPatternOptions(t))}};Ap.GET_DEFAULT_BLOCKS=()=>({d:{mask:zi,from:1,to:31,maxLength:2},m:{mask:zi,from:1,to:12,maxLength:2},Y:{mask:zi,from:1900,to:9999}});Ap.DEFAULTS=Q(z({},nr.DEFAULTS),{mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return[r,o,n].join(".")},parse:(e,t)=>{let[r,o,n]=e.split(".").map(Number);return new Date(n,o-1,r)}});Se.MaskedDate=Ap;var Gu=class e extends Jt{constructor(t){super(z(z({},e.DEFAULTS),t)),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{let i=Oa(r),{expose:o}=i,n=he(i,["expose"]),a=Fr(z({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid},n));return o&&(this.exposeMask=a),a}):[])}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._applyDispatch(t,r);return this.currentMask&&o.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),o}_applyDispatch(t,r,o){t===void 0&&(t=""),r===void 0&&(r={}),o===void 0&&(o="");let n=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,a=this.rawInputValue,i=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:a,s=a.slice(i.length),l=this.currentMask,p=new je,c=l==null?void 0:l.state;return this.currentMask=this.doDispatch(t,z({},r),o),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),p.tailShift=this.currentMask.value.length-n.length),s&&(p.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)):c&&(this.currentMask.state=c)),p}_appendPlaceholder(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){let r=new je;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,o;return Q(z({},t),{_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((o=t._beforeTailState)==null?void 0:o.currentMask)||t._beforeTailState})}doDispatch(t,r,o){return r===void 0&&(r={}),o===void 0&&(o=""),this.dispatch(t,this,r,o)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[o,n]=super.doPrepare(t,r);if(this.currentMask){let a;[o,a]=super.doPrepare(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(t,r);if(this.currentMask){let a;[o,a]=super.doPrepareChar(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){let o=new je;return this.currentMask&&o.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),o}get state(){var t;return Q(z({},super.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state})}set state(t){let i=t,{compiledMasks:r,currentMaskRef:o,currentMask:n}=i,a=he(i,["compiledMasks","currentMaskRef","currentMask"]);r&&this.compiledMasks.forEach((s,l)=>s.state=r[l]),o!=null&&(this.currentMask=o,this.currentMask.state=n),super.state=a}extractInput(t,r,o){return this.currentMask?this.currentMask.extractInput(t,r,o):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,o)=>{if(!t[o])return;let i=t[o],{mask:n}=i,a=he(i,["mask"]);return Op(r,a)&&r.maskEquals(n)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}};Gu.DEFAULTS=Q(z({},Jt.DEFAULTS),{dispatch:(e,t,r,o)=>{if(!t.compiledMasks.length)return;let n=t.rawInputValue,a=t.compiledMasks.map((i,s)=>{let l=t.currentMask===i,p=l?i.displayValue.length:i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):l||i.remove(p),i.append(e,t.currentMaskFlags(r)),i.appendTail(o),{index:s,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(p,i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT)))}});return a.sort((i,s)=>s.weight-i.weight||s.totalInputPositions-i.totalInputPositions),t.compiledMasks[a[0].index]}});Se.MaskedDynamic=Gu;var Yu=class e extends nr{constructor(t){super(z(z({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){let n=t,{enum:r}=n,o=he(n,["enum"]);if(r){let a=r.map(l=>l.length),i=Math.min(...a),s=Math.max(...a)-i;o.mask="*".repeat(i),s&&(o.mask+="["+"*".repeat(s)+"]"),this.enum=r}super._update(o)}_appendCharRaw(t,r){r===void 0&&(r={});let o=Math.min(this.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+t,o));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,s)=>{let l=n[0][s];s>=this.value.length||l===i.value||(i.reset(),i._appendChar(l,r))});let a=super._appendCharRaw(n[0][this.value.length],r);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(i=>a.aggregate(super._appendCharRaw(i))),a}return new je}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr("",t)}remove(t,r){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),t===r)return new je;let o=Math.min(super.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n;for(n=t;n>=0&&!(this.enum.filter(s=>this.matchValue(s,this.value.slice(o,n),o)).length>1);--n);let a=super.remove(n,r);return a.tailShift+=n-t,a}};Yu.DEFAULTS=Q(z({},nr.DEFAULTS),{matchValue:(e,t,r)=>e.indexOf(t,r)===r});Se.MaskedEnum=Yu;var _y=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){super._update(Q(z({},t),{validate:t.mask}))}};Se.MaskedFunction=_y;var n_,Fi=class e extends Jt{constructor(t){super(z(z({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",o=(this.scale?"("+Ry(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+o),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Ry).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Ry(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){let r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!o&&(n.skip=!0),o&&!this.allowPositive&&!this.value&&o!=="-"&&n.aggregate(this._appendChar("-")),[o,n]}_separatorsCount(t,r){r===void 0&&(r=!1);let o=0;for(let n=0;n<t;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++o,r&&(t+=this.thousandsSeparator.length));return o}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,o))}_appendCharRaw(t,r){r===void 0&&(r={});let o=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(o);this._value=this._removeThousandsSeparators(this.value);let a=this._value;this._value+=t;let i=this.number,s=!isNaN(i),l=!1;if(s){let d;this.min!=null&&this.min<0&&this.number<this.min&&(d=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(d=this.max),d!=null&&(this.autofix?(this._value=this.format(d,this).replace(e.UNMASKED_RADIX,this.radix),l||(l=a===this._value&&!r.tail)):s=!1),s&&(s=!!this._value.match(this._numberRegExp))}let p;s?p=new je({inserted:this._value.slice(a.length),rawInserted:l?"":t,skip:l}):(this._value=a,p=new je),this._value=this._insertThousandsSeparators(this._value);let c=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,u=this._separatorsCountFromSlice(c);return p.tailShift+=(u-n)*this.thousandsSeparator.length,p}_findSeparatorAround(t){if(this.thousandsSeparator){let r=t-this.thousandsSeparator.length+1,o=this.value.indexOf(this.thousandsSeparator,r);if(o<=t)return o}return-1}_adjustRangeWithSeparators(t,r){let o=this._findSeparatorAround(t);o>=0&&(t=o);let n=this._findSeparatorAround(r);return n>=0&&(r=n+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);let o=this.value.slice(0,t),n=this.value.slice(r),a=this._separatorsCount(o.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(o+n));let i=this._separatorsCountFromSlice(o);return new je({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case Be.NONE:case Be.LEFT:case Be.FORCE_LEFT:{let o=this._findSeparatorAround(t-1);if(o>=0){let n=o+this.thousandsSeparator.length;if(t<n||this.value.length<=n||r===Be.FORCE_LEFT)return o}break}case Be.RIGHT:case Be.FORCE_RIGHT:{let o=this._findSeparatorAround(t);if(o>=0)return o+this.thousandsSeparator.length}}return t}doCommit(){if(this.value){let t=this.number,r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let o=this.value;this.normalizeZeros&&(o=this._normalizeZeros(o)),this.padFractionalZeros&&this.scale>0&&(o=this._padFractionalZeros(o)),this._value=o}super.doCommit()}_normalizeZeros(t){let r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(o,n,a,i)=>n+i),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;let r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,o){r===void 0&&(r={});let n=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===e.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,o)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}};n_=Fi;Fi.UNMASKED_RADIX=".";Fi.EMPTY_VALUES=[...Jt.EMPTY_VALUES,0];Fi.DEFAULTS=Q(z({},Jt.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[n_.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})});Se.MaskedNumber=Fi;var wy={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function xT(e,t,r){t===void 0&&(t=wy.MASKED),r===void 0&&(r=wy.MASKED);let o=Fr(e);return n=>o.runIsolated(a=>(a[t]=n,a[r]))}function a_(e,t,r,o){return xT(t,r,o)(e)}Se.PIPE_TYPE=wy;Se.createPipe=xT;Se.pipe=a_;var Ay=class extends nr{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:1/0}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var r,o,n;let l=Oa(t),{repeat:a}=l,i=he(l,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,i);let s=Fr(this._blockOpts);this.repeat=(r=(o=a!=null?a:s.repeat)!=null?o:this.repeat)!=null?r:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:s},eager:s.eager,overwrite:s.overwrite,skipInvalid:s.skipInvalid,lazy:s.lazy,placeholderChar:s.placeholderChar,displayChar:s.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Fr(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(t,r){r===void 0&&(r={});let o=new je;for(let l=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),p,c;p=(i=this._blocks[l])!=null?i:c=!c&&this._allocateBlock(l);++l){var n,a,i,s;let u=p._appendChar(t,Q(z({},r),{_beforeTailState:(s=r._beforeTailState)==null||(s=s._blocks)==null?void 0:s[l]}));if(u.skip&&c){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(o.aggregate(u),u.consumed)break}return o}_trimEmptyTail(t,r){var o,n;t===void 0&&(t=0);let a=Math.max(((o=this._mapPosToBlock(t))==null?void 0:o.index)||0,this.repeatFrom,0),i;r!=null&&(i=(n=this._mapPosToBlock(r))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let s=0;for(let l=i;a<=l&&!this._blocks[l].unmaskedValue;--l,++s);s&&(this._blocks.splice(i-s+1,s),this.mask=this.mask.slice(s))}reset(){super.reset(),this._trimEmptyTail()}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._trimEmptyTail(t,r),o}totalInputPositions(t,r){return t===void 0&&(t=0),r==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(t,r)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=t}};Se.RepeatBlock=Ay;try{globalThis.IMask=Se}catch(e){}import PT from"react";var ze=wo(VC(),1);import By from"react";var i_={mask:ze.default.oneOfType([ze.default.array,ze.default.func,ze.default.string,ze.default.instanceOf(RegExp),ze.default.oneOf([Date,Number,Se.Masked]),ze.default.instanceOf(Se.Masked)]),value:ze.default.any,unmask:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["typed"])]),prepare:ze.default.func,prepareChar:ze.default.func,validate:ze.default.func,commit:ze.default.func,overwrite:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["shift"])]),eager:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["append","remove"])]),skipInvalid:ze.default.bool,onAccept:ze.default.func,onComplete:ze.default.func,placeholderChar:ze.default.string,displayChar:ze.default.string,lazy:ze.default.bool,definitions:ze.default.object,blocks:ze.default.object,enum:ze.default.arrayOf(ze.default.string),maxLength:ze.default.number,from:ze.default.number,to:ze.default.number,pattern:ze.default.string,format:ze.default.func,parse:ze.default.func,autofix:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["pad"])]),radix:ze.default.string,thousandsSeparator:ze.default.string,mapToRadix:ze.default.arrayOf(ze.default.string),scale:ze.default.number,normalizeZeros:ze.default.bool,padFractionalZeros:ze.default.bool,min:ze.default.oneOfType([ze.default.number,ze.default.instanceOf(Date)]),max:ze.default.oneOfType([ze.default.number,ze.default.instanceOf(Date)]),dispatch:ze.default.func,inputRef:ze.default.oneOfType([ze.default.func,ze.default.shape({current:ze.default.object})])},s_=Object.keys(i_).filter(e=>e!=="value"),g7=["value","unmask","onAccept","onComplete","inputRef"],v7=s_.filter(e=>g7.indexOf(e)<0);function TT(e){var t;let r=(t=class extends By.Component{constructor(a){super(a),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let a=this.props,i=this._extractMaskOptionsFromProps(a);if(i.mask)this.maskRef?(this.maskRef.updateOptions(i),"value"in a&&a.value!==void 0&&(this.maskValue=a.value)):this.initMask(i);else if(this.destroyMask(),"value"in a&&a.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=a.value:this.element.value=a.value}}componentWillUnmount(){this.destroyMask()}_inputRef(a){this.element=a,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=a:this.props.inputRef(a))}initMask(a){a===void 0&&(a=this._extractMaskOptionsFromProps(this.props)),this.maskRef=Se(this.element,a).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(a){let i=he(a,[]);return Object.keys(i).filter(s=>v7.indexOf(s)<0).forEach(s=>{delete i[s]}),i}_extractNonMaskProps(a){let i=he(a,[]);return s_.forEach(s=>{s!=="maxLength"&&delete i[s]}),"defaultValue"in i||(i.defaultValue=a.mask?"":i.value),delete i.value,i}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(a){this.maskRef&&(a=a==null&&this.props.unmask!=="typed"?"":a,this.props.unmask==="typed"?this.maskRef.typedValue=a:this.props.unmask?this.maskRef.unmaskedValue=a:this.maskRef.value=a)}_onAccept(a){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,a)}_onComplete(a){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,a)}render(){return By.createElement(e,Q(z({},this._extractNonMaskProps(this.props)),{inputRef:this._inputRef}))}},t.displayName=void 0,t.propTypes=void 0,t),o=e.displayName||e.name||"Component";return r.displayName="IMask("+o+")",r.propTypes=i_,By.forwardRef((n,a)=>By.createElement(r,Q(z({},n),{ref:a})))}var b7=TT(e=>{let o=e,{inputRef:t}=o,r=he(o,["inputRef"]);return PT.createElement("input",Q(z({},r),{ref:t}))}),x7=(e,t)=>PT.createElement(b7,Q(z({},e),{ref:t})),_a=PT.forwardRef(x7);import{useRef as lZe,useState as pZe,useCallback as cZe,useEffect as uZe}from"react";import"react";import{jsx as T7}from"react/jsx-runtime";var Vi=ht(T7("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");import{motion as P7}from"framer-motion";var C7=P7(Wm),S7=E(C7)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),Ju=S7;Ju.displayName="DialogActions";var qn=Ju;var I7=E(or,{name:"DatePicker",slot:"calendarButton"})(({theme:e})=>({"&:focus":{"--Icon-color":"currentColor",outlineOffset:`${e.getCssVar("focus-thickness")}`,outline:`${e.getCssVar("focus-thickness")} solid ${e.getCssVar("palette-focusVisible")}`}})),O7=E(Yt,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),D7=E(tn,{name:"DatePicker",slot:"sheet",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),_7=E("div",{name:"DatePicker",slot:"root",overridesResolver:(e,t)=>t.root})({width:"100%"}),u_=(e,t)=>{try{let r=Ny(e,t);return r.toString()==="Invalid Date"||e!==qu(r,t)?!1:new RegExp(`^${t.replace(/Y/g,"\\d").replace(/M/g,"\\d").replace(/D/g,"\\d")}$`).test(e)}catch(r){return!1}},qu=(e,t)=>{let r=`${e.getDate()}`,o=`${e.getMonth()+1}`,n=e.getFullYear();return Number(r)<10&&(r="0"+r),Number(o)<10&&(o="0"+o),t.replace(/YYYY/g,n.toString()).replace(/MM/g,o).replace(/DD/g,r)};function Ny(e,t){let r=t.split(/[-./\s]/),o=e.split(/[-./\s]/);if(r.length!==o.length)throw new Error("Invalid date string or format");let n,a,i;for(let l=0;l<r.length;l++){let p=parseInt(o[l],10);switch(r[l]){case"DD":n=p;break;case"MM":a=p-1;break;case"YYYY":i=p;break}}return new Date(i,a,n)}var w7=e=>e.replace(/YYYY/g,"Y").replace(/MM/g,"M").replace(/DD/g,"D").replace(/[^YMD\s]/g,t=>`${t}\``),A7=k7.forwardRef(function(t,r){let i=t,{onChange:o,format:n}=i,a=he(i,["onChange","format"]);return O(_a,Q(z({},a),{inputRef:r,onAccept:s=>o({target:{name:t.name,value:s}}),mask:Date,pattern:w7(n),blocks:{D:{mask:Se.MaskedRange,from:1,to:31,maxLength:2},M:{mask:Se.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Se.MaskedRange,from:1900,to:9999,maxLength:4}},format:s=>qu(s,n),parse:s=>Ny(s,n),autofix:"pad",overwrite:!0}))}),Ly=R7((e,t)=>{let r=G({props:e,name:"DatePicker"}),U=r,{onChange:o,disabled:n,label:a,error:i,helperText:s,minDate:l,maxDate:p,disableFuture:c,disablePast:u,required:d,sx:f,className:y,format:h="YYYY/MM/DD",displayFormat:v="YYYY/MM/DD",size:b,inputReadOnly:x,hideClearButton:g,readOnly:S}=U,P=he(U,["onChange","disabled","label","error","helperText","minDate","maxDate","disableFuture","disablePast","required","sx","className","format","displayFormat","size","inputReadOnly","hideClearButton","readOnly"]),T=p_(null),C=p_(null),[k,I]=At(r.value,r.defaultValue||"",My(F=>o==null?void 0:o({target:{name:r.name,value:F}}),[r.name,o]),{disableStrict:!0}),[D,M]=c_(k),[B,A]=c_(null),$=!!B;l_(()=>{var F;B||(F=T.current)==null||F.blur()},[B,T]),l_(()=>{if(!u_(D,v))return;if(k===""){M("");return}let R=qu(Ny(k,h),v);M(R)},[v,D,h,k]),E7(t,()=>T.current,[T]);let N=My(F=>{if(M(F.target.value),F.target.value===""){I("");return}if(u_(F.target.value,v)){let q=Ny(F.target.value,v),J=qu(q,h);I(J)}},[v,h,I]),_=My(F=>{A(B?null:F.currentTarget),setTimeout(()=>{var R;(R=T.current)==null||R.focus()},0)},[B,A,T]),L=My(F=>{var R;x&&(F.preventDefault(),(R=C.current)==null||R.focus())},[x,C]);return O(_7,{children:O(io,{open:!0,children:xe(Pr,{children:[O(Kr,Q(z({},P),{color:i?"danger":P.color,ref:T,size:b,value:D,onChange:N,placeholder:v,disabled:n,required:d,error:i,slotProps:{input:{component:A7,ref:T,format:v,sx:{"&:hover":{cursor:x||S?"default":"text"}},onMouseDown:L}},className:y,sx:f,endDecorator:O(I7,{ref:C,variant:"plain",onClick:S?void 0:_,"aria-label":"Toggle Calendar","aria-controls":"date-picker-popper","aria-haspopup":"dialog","aria-expanded":$,disabled:n,children:O(Vi,{})}),label:a,helperText:s,readOnly:S||x})),$&&O(fn,{onClickAway:()=>A(null),children:O(O7,{id:"date-picker-popper",open:!0,anchorEl:B,placement:"bottom-end",onMouseDown:F=>F.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}],"aria-label":"Calendar Tooltip","aria-expanded":$,children:xe(D7,{tabIndex:-1,role:"presentation",children:[O(Bi,{value:Number.isNaN(new Date(k).getTime())?void 0:[new Date(k),void 0],onChange:([F])=>{N({target:{name:r.name,value:qu(F,h)}}),A(null)},minDate:l?new Date(l):void 0,maxDate:p?new Date(p):void 0,disableFuture:c,disablePast:u}),!g&&O(qn,{sx:{p:1},children:O(kr,{size:b,variant:"plain",color:"neutral",onClick:()=>{N({target:{name:r.name,value:""}}),A(null)},children:"Clear"})})]})})})]})})})});var d_=Ly;import{motion as B7}from"framer-motion";var M7=B7(Bh),Ku=e=>{let y=e,{label:t,error:r,helperText:o,color:n,size:a,disabled:i,required:s,minRows:l=2,maxRows:p=4,sx:c,className:u}=y,d=he(y,["label","error","helperText","color","size","disabled","required","minRows","maxRows","sx","className"]),f=O(M7,z({required:s,disabled:i,color:r?"danger":n,size:a,minRows:l,maxRows:p},d));return xe(Gn,{required:s,disabled:i,color:n,size:a,error:r,sx:c,className:u,children:[t&&O(Yn,{children:t}),f,o&&O(Jn,{children:o})]})};Ku.displayName="Textarea";var f_=Ku;import{useMemo as N7}from"react";import{motion as L7}from"framer-motion";var z7=L7(yh),zy=z7;zy.displayName="Option";function Xu(e){let h=e,{label:t,helperText:r,error:o,size:n,color:a,disabled:i,required:s,onChange:l,sx:p,className:c}=h,u=he(h,["label","helperText","error","size","color","disabled","required","onChange","sx","className"]),d=N7(()=>e.options.map(v=>"value"in v?v:{value:v,label:v}),[e.options]),f=(v,b)=>{var S;let x=v||{target:{}},g=Q(z({},x),{target:{name:((S=x.target)==null?void 0:S.name)||e.name,value:b||void 0}});l==null||l(g)},y=O(bh,Q(z({},u),{required:s,disabled:i,size:n,color:o?"danger":a,onChange:f,children:d.map(v=>O(zy,{value:v.value,children:v.label},v.value))}));return xe(Gn,{required:s,disabled:i,size:n,color:a,error:o,sx:p,className:c,children:[t&&O(Yn,{children:t}),y,r&&O(Jn,{children:r})]})}Xu.displayName="Select";var m_=Xu;import{motion as F7}from"framer-motion";var V7=F7(Lh),Zu=e=>O(V7,z({},e));Zu.displayName="Tooltip";var Fy=Zu;import{motion as b_}from"framer-motion";import{useCallback as $7,useEffect as j7}from"react";var Us=E(kr,{name:"Pagination",slot:"button"})(({theme:e,active:t,size:r})=>({"--Button-size":{sm:"32px",md:"40px",lg:"48px"}[r],width:"var(--Button-size)",height:"var(--Button-size)",backgroundColor:t?e.vars.palette.primary.softHoverBg:"transparent",color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.plainColor,"&:hover":{color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.softColor,backgroundColor:t?e.vars.palette.primary.softActiveBg:e.vars.palette.neutral.softHoverBg}})),h_=E(or,{name:"Pagination",slot:"button"})(({theme:e,size:t})=>({"--IconButton-size":{sm:"32px",md:"40px",lg:"48px"}[t],"--Icon-fontSize":"20px",width:"var(--IconButton-size)",height:"var(--IconButton-size)",color:e.vars.palette.neutral.plainColor,"&:hover":{color:e.vars.palette.neutral.softColor,backgroundColor:e.vars.palette.neutral.softHoverBg}})),H7=E(Ct,{name:"Pagination",slot:"root"})({}),U7=E(Ct,{name:"Pagination",slot:"container"})(({theme:e,size:t})=>({gap:{sm:e.spacing(1),md:e.spacing(1.5),lg:e.spacing(2)}[t]}));function Qu(e){let v=e,{paginationModel:t,defaultPaginationModel:r={page:1,pageSize:25},onPageChange:o,rowCount:n,size:a="md"}=v,i=he(v,["paginationModel","defaultPaginationModel","onPageChange","rowCount","size"]),[s,l]=At(t,r,$7(b=>{o(b.page)},[o])),p=b=>{l(Q(z({},s),{page:b}))},c=1,u=Math.max(c,Math.ceil(n/s.pageSize)),d=[s.page-2,s.page-1].filter(b=>b>1),f=[s.page+1,s.page+2].filter(b=>b<=u-1),y=u>1&&s.page<u-3,h=u>1&&s.page>4;return j7(()=>{s.page>u&&l(Q(z({},s),{page:u}))},[n,s,u,l]),O(H7,Q(z({},i),{children:xe(U7,{direction:"row",size:a,alignItems:"center",children:[O(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-1),disabled:s.page===c,"aria-label":"Previous page",children:O(iy,{})}),s.page!==c&&O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(c),children:c}),h&&O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-3),"aria-label":"More previous pages",children:"..."}),d.map(b=>O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),O(Us,{active:!0,size:a,"aria-current":"page",children:s.page}),f.map(b=>O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),y&&O(Us,{size:a,variant:"plain",color:"neutral","aria-label":"More next pages",onClick:()=>p(s.page+3),children:"..."}),s.page!==u&&O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(u),children:u}),O(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page+1),disabled:s.page===u,"aria-label":"Next page",children:O(sy,{})})]})}))}Qu.displayName="Pagination";var y_=Qu;import{jsx as W7}from"react/jsx-runtime";var g_=ht(W7("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var G7=E(g_,{name:"InfoSign",slot:"InfoSign"})(({theme:e})=>({color:e.palette.text.icon,width:"14px",height:"14px"}));function Vy(e){let{message:t,placement:r}=e;return O(Fy,{arrow:!0,placement:r,sx:{[`&.${Mh.root}`]:{maxWidth:"320px"}},title:t==null?void 0:t.split(`
|
|
127
|
+
`),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function n7(e){e=o7(e);var t=e.decimalSeparator,r=e.allowedDecimalSeparators,o=e.thousandsGroupStyle,n=e.suffix,a=e.allowNegative,i=e.allowLeadingZeros,s=e.onKeyDown;s===void 0&&(s=Mi);var l=e.onBlur;l===void 0&&(l=Mi);var p=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,y=e.value,h=e.valueIsNumericString,v=e.onValueChange,b=UD(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),x=Cy(e),g=x.decimalSeparator,S=x.allowedDecimalSeparators,P=function(F){return jD(F,e)},T=function(F,R){return t7(F,R,e)},C=Ip(y)?f:y,k=h!=null?h:e7(C,d,n);Ip(y)?Ip(f)||(k=k||typeof f=="number"):k=k||typeof y=="number";var I=function(F){return WD(F)?F:(typeof F=="number"&&(F=JD(F)),k&&typeof c=="number"?VD(F,c,!!u):F)},D=KD(I(y),I(f),!!k,P,T,v),M=D[0],B=M.numAsString,A=M.formattedValue,$=D[1],N=function(F){var R=F.target,q=F.key,J=R.selectionStart,w=R.selectionEnd,se=R.value;if(se===void 0&&(se=""),J!==w){s(F);return}q==="Backspace"&&se[0]==="-"&&J===d.length+1&&a&&Hs(R,1),c&&u&&(q==="Backspace"&&se[J-1]===g?(Hs(R,J-1),F.preventDefault()):q==="Delete"&&se[J]===g&&F.preventDefault()),S!=null&&S.includes(q)&&se[J]===g&&Hs(R,J+1);var ye=p===!0?",":p;q==="Backspace"&&se[J-1]===ye&&Hs(R,J-1),q==="Delete"&&se[J]===ye&&Hs(R,J+1),s(F)},_=function(F){var R=B;if(R.match(/\d/g)||(R=""),i||(R=jG(R)),u&&c&&(R=VD(R,c,u)),R!==B){var q=jD(R,e);$({formattedValue:q,value:R,floatValue:parseFloat(R)},{event:F,source:Fu.event})}l(F)},L=function(F){return F===g?!0:Vu(F)},U=function(F){var R=F.currentValue,q=F.lastValue,J=F.formattedValue,w=F.currentValueIndex,se=F.formattedValueIndex,ye=R[w],we=J[se],ne=qD(q,R),W=ne.to;return w>=W.start&&w<W.end&&S&&S.includes(ye)&&we===g?!0:ye===we};return Object.assign(Object.assign({},b),{value:A,valueIsNumericString:!1,isValidInputCharacter:L,isCharacterSame:U,onValueChange:$,format:P,removeFormatting:T,getCaretBoundary:function(F){return r7(F,e)},onKeyDown:N,onBlur:_})}function Sy(e){var t=n7(e);return Ep.createElement(XG,Object.assign({},t))}import a7,{useCallback as i7}from"react";import{motion as s7}from"framer-motion";var l7=s7(np),$u=a7.forwardRef((e,t)=>{var T;let P=e,{label:r,helperText:o,error:n,style:a,size:i,color:s,disabled:l,required:p,onChange:c,name:u,sx:d,className:f,enableClearable:y}=P,h=he(P,["label","helperText","error","style","size","color","disabled","required","onChange","name","sx","className","enableClearable"]),[v,b]=At(e.value,e.defaultValue,i7(C=>{c==null||c({target:{value:(C==null?void 0:C.toString())||"",name:u||""}})},[c,u])),x=C=>{b(C.target.value)},g=()=>{b(e.defaultValue||"")},S=O(l7,Q(z({value:v,name:u,onChange:x,required:p,color:n?"danger":s,disabled:l,slotProps:z({input:z({ref:t},(T=h.slotProps)==null?void 0:T.input)},h.slotProps)},h),{endDecorator:y?xe(Ct,{gap:1,direction:"row",children:[h.endDecorator,v&&O(or,{onMouseDown:C=>C.preventDefault(),onClick:g,"aria-label":"Clear",children:O(Xh,{})})]}):h.endDecorator}));return xe(Gn,{required:p,color:s,size:i,error:n,disabled:l,sx:d,className:f,children:[r&&O(Yn,{children:r}),S,o&&O(Jn,{children:o})]})});$u.displayName="Input";var Kr=$u;var p7={AED:2,ALL:2,AMD:2,ANG:2,AOA:2,ARS:2,AUD:2,AWG:2,AZN:2,BAM:2,BBD:2,BDT:2,BGN:2,BHD:3,BMD:2,BND:2,BOB:2,BRL:2,BSD:2,BWP:2,BYN:2,BZD:2,CAD:2,CHF:2,CLP:2,CNH:2,CNY:2,COP:2,CRC:2,CUP:2,CVE:0,CZK:2,DJF:0,DKK:2,DOP:2,DZD:2,EGP:2,ETB:2,EUR:2,FJD:2,FKP:2,GBP:2,GEL:2,GHS:2,GIP:2,GMD:2,GNF:0,GTQ:2,GYD:2,HKD:2,HNL:2,HTG:2,HUF:2,IDR:0,ILS:2,INR:2,IQD:3,ISK:2,JMD:2,JOD:3,JPY:0,KES:2,KGS:2,KHR:2,KMF:0,KRW:0,KWD:3,KYD:2,KZT:2,LAK:2,LBP:2,LKR:2,LYD:3,MAD:2,MDL:2,MKD:2,MMK:2,MNT:2,MOP:2,MRU:2,MUR:2,MVR:2,MWK:2,MXN:2,MYR:2,MZN:2,NAD:2,NGN:2,NIO:2,NOK:2,NPR:2,NZD:2,OMR:3,PAB:2,PEN:2,PGK:2,PHP:2,PKR:2,PLN:2,PYG:0,QAR:2,RON:2,RSD:2,RUB:2,RWF:0,SAR:2,SBD:2,SCR:2,SEK:2,SGD:2,SHP:2,SLE:2,SOS:2,SRD:2,STN:2,SVC:2,SZL:2,THB:2,TND:3,TOP:2,TRY:2,TTD:2,TWD:2,TZS:2,UAH:2,UGX:0,USD:2,UYU:2,UZS:2,VEF:2,VND:0,VUV:0,WST:2,XAF:0,XCD:2,XOF:0,XPF:0,YER:2,ZAR:2,ZMW:2},XD=(e="USD")=>{let[t,r,o,...n]=new zD(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=p7[e];return{symbol:`${t} `,thousandSeparator:r,decimalSeparator:o,placeholder:o?`${t} 0${o}${Array.from(Array(a)).map(()=>0).join("")}`:`${t} 0`,fixedDecimalScale:!!o,decimalScale:a}};var u7=e_.forwardRef(function(t,r){let a=t,{onChange:o}=a,n=he(a,["onChange"]);return O(Sy,Q(z({},n),{onValueChange:({value:i})=>{o==null||o({target:{name:t.name,value:i}})},valueIsNumericString:!0,getInputRef:r,allowNegative:!1}))}),d7=E(Kr,{name:"CurrencyInput",slot:"root",overridesResolver:(e,t)=>t.root})({}),ky=e_.forwardRef(function(t,r){let o=G({props:t,name:"CurrencyInput"}),A=o,{currency:n="USD",name:a,onChange:i,label:s,error:l,helperText:p,required:c,disabled:u,useMinorUnit:d,sx:f,className:y}=A,h=he(A,["currency","name","onChange","label","error","helperText","required","disabled","useMinorUnit","sx","className"]),{symbol:v,thousandSeparator:b,decimalSeparator:x,placeholder:g,fixedDecimalScale:S,decimalScale:P}=XD(n),[T,C]=At(o.value,o.defaultValue,ZD($=>i==null?void 0:i({target:{name:a,value:$}}),[i,a])),k=QD(()=>T&&d?T/Math.pow(10,P):T,[T,d,P]),I=QD(()=>o.max&&d?o.max/Math.pow(10,P):o.max,[o.max,d,P]),[D,M]=c7(!!I&&!!k&&k>I),B=ZD($=>{var _;if($.target.value===""){C(void 0);return}let N=Number(d?(_=$.target.value)==null?void 0:_.replace(x,""):$.target.value);I&&Number($.target.value)>I?M(!0):M(!1),C(N)},[x,I,d,C]);return O(d7,Q(z({},h),{ref:r,value:k,placeholder:g,onChange:B,error:l||D,disabled:u,required:c,color:l||D?"danger":o.color,label:s,helperText:D?new Py(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:I}):p,slotProps:{input:{component:u7,decimalSeparator:x,thousandSeparator:b,prefix:v,fixedDecimalScale:S,decimalScale:P,"aria-label":h["aria-label"]}},sx:z({},f),className:y}))});var t_=ky;import Y7,{useCallback as Kn,useEffect as jy,useMemo as ur,useRef as Hy,useState as CT,useId as J7,forwardRef as q7,useImperativeHandle as K7}from"react";import{jsx as f7}from"react/jsx-runtime";var r_=ht(f7("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0s.39-1.02 0-1.41l-6.59-6.59a.996.996 0 0 0-1.41 0l-6.6 6.58c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1"}),"ArrowUpwardRounded");import{motion as m7}from"framer-motion";var h7=m7(xh),ju=h7;ju.displayName="Sheet";var tn=ju;var Hu=e=>{let o=e,{children:t}=o,r=he(o,["children"]);return O(Ih,Q(z({},r),{children:t}))};Hu.displayName="Table";function mT(e){let{headCells:t,showCheckbox:r,onCheckboxChange:o,slots:{checkbox:n=wu}={},slotProps:{checkbox:a={}}={}}=e;return O("thead",{children:xe("tr",{children:[r&&O("th",{style:{width:"40px",textAlign:"center"},children:O(n,z({onChange:o},a))}),t.map(i=>O("th",{style:{width:i.width,minWidth:i.minWidth,maxWidth:i.maxWidth,textAlign:i.numeric?"right":"left"},children:i.label},i.label))]})})}mT.displayName="TableHead";function hT(e){let{rows:t,cellOrder:r,rowOptions:o,showCheckbox:n,onCheckboxChange:a,slots:{checkbox:i=wu}={},slotProps:{checkbox:s={}}={}}=e;return O("tbody",{children:t.map((l,p)=>xe("tr",{children:[n&&O("td",{style:{textAlign:"center"},children:O(i,z({onChange:c=>a==null?void 0:a(c,p)},s))}),r.map(c=>{var u;return O("td",{style:{textAlign:(u=o==null?void 0:o[c])!=null&&u.numeric?"right":"left"},children:l[c]},c)})]},p))})}hT.displayName="TableBody";import k7,{forwardRef as R7,useCallback as My,useEffect as l_,useImperativeHandle as E7,useRef as p_,useState as c_}from"react";function ko(e){return typeof e=="string"||e instanceof String}function yT(e){var t;return typeof e=="object"&&e!=null&&(e==null||(t=e.constructor)==null?void 0:t.name)==="Object"}function gT(e,t){return Array.isArray(t)?gT(e,(r,o)=>t.includes(o)):Object.entries(e).reduce((r,o)=>{let[n,a]=o;return t(a,n)&&(r[n]=a),r},{})}var Be={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function vT(e){switch(e){case Be.LEFT:return Be.FORCE_LEFT;case Be.RIGHT:return Be.FORCE_RIGHT;default:return e}}function Ry(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Op(e,t){if(t===e)return!0;let r=Array.isArray(t),o=Array.isArray(e),n;if(r&&o){if(t.length!=e.length)return!1;for(n=0;n<t.length;n++)if(!Op(t[n],e[n]))return!1;return!0}if(r!=o)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){let a=t instanceof Date,i=e instanceof Date;if(a&&i)return t.getTime()==e.getTime();if(a!=i)return!1;let s=t instanceof RegExp,l=e instanceof RegExp;if(s&&l)return t.toString()==e.toString();if(s!=l)return!1;let p=Object.keys(t);for(n=0;n<p.length;n++)if(!Object.prototype.hasOwnProperty.call(e,p[n]))return!1;for(n=0;n<p.length;n++)if(!Op(e[p[n]],t[p[n]]))return!1;return!0}else if(t&&e&&typeof t=="function"&&typeof e=="function")return t.toString()===e.toString();return!1}var Ey=class{constructor(t){for(Object.assign(this,t);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?Be.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?Be.RIGHT:Be.LEFT}};function Se(e,t){return new Se.InputMask(e,t)}function bT(e){if(e==null)throw new Error("mask property should be defined");return e instanceof RegExp?Se.MaskedRegExp:ko(e)?Se.MaskedPattern:e===Date?Se.MaskedDate:e===Number?Se.MaskedNumber:Array.isArray(e)||e===Array?Se.MaskedDynamic:Se.Masked&&e.prototype instanceof Se.Masked?e:Se.Masked&&e instanceof Se.Masked?e.constructor:e instanceof Function?Se.MaskedFunction:(console.warn("Mask not found for mask",e),Se.Masked)}function Oa(e){if(!e)throw new Error("Options in not defined");if(Se.Masked){if(e.prototype instanceof Se.Masked)return{mask:e};let t=e instanceof Se.Masked?{mask:e}:yT(e)&&e.mask instanceof Se.Masked?e:{},{mask:r=void 0}=t,o=he(t,["mask"]);if(r){let n=r.mask;return z(Q(z({},gT(r,(a,i)=>!i.startsWith("_"))),{mask:r.constructor,_mask:n}),o)}}return yT(e)?z({},e):{mask:e}}function Fr(e){if(Se.Masked&&e instanceof Se.Masked)return e;let t=Oa(e),r=bT(t.mask);if(!r)throw new Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===r&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new r(t)}Se.createMask=Fr;var Ni=class{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch(r){}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch(r){}return t!=null?t:this.value.length}select(t,r){if(!(t==null||r==null||t===this.selectionStart&&r===this.selectionEnd))try{this._unsafeSelect(t,r)}catch(o){}}get isActive(){return!1}};Se.MaskElement=Ni;var o_=90,y7=89,Da=class extends Ni{constructor(t){super(),this.input=t,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,r,o;return(t=(r=(o=this.input).getRootNode)==null?void 0:r.call(o))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",t.drop),this.input.addEventListener("click",t.click),this.input.addEventListener("focus",t.focus),this.input.addEventListener("blur",t.commit),this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===o_&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===y7&&t.ctrlKey))return t.preventDefault(),this._handlers.redo(t);if(this._handlers.undo&&t.keyCode===o_&&(t.metaKey||t.ctrlKey))return t.preventDefault(),this._handlers.undo(t);t.isComposing||this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo)return t.preventDefault(),this._handlers.undo(t);if(t.inputType==="historyRedo"&&this._handlers.redo)return t.preventDefault(),this._handlers.redo(t)}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){t.isComposing||this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};Se.HTMLMaskElement=Da;var Uu=class extends Da{constructor(t){super(t),this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,r){this.input.setSelectionRange(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}};Se.HTMLMaskElement=Da;var Dp=class extends Da{get _unsafeSelectionStart(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o<n?o:n}get _unsafeSelectionEnd(){let t=this.rootElement,r=t.getSelection&&t.getSelection(),o=r&&r.anchorOffset,n=r&&r.focusOffset;return n==null||o==null||o>n?o:n}_unsafeSelect(t,r){if(!this.rootElement.createRange)return;let o=this.rootElement.createRange();o.setStart(this.input.firstChild||this.input,t),o.setEnd(this.input.lastChild||this.input,r);let n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(o))}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}};Se.HTMLContenteditableMaskElement=Dp;var Wu=class e{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>e.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(t){return this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};Wu.MAX_LENGTH=100;var Iy=class{constructor(t,r){this.el=t instanceof Ni?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Dp(t):new Uu(t),this.masked=Fr(r),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Wu,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(t){var r;return t==null||((r=this.masked)==null?void 0:r.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof Se.Masked)&&this.masked.constructor===bT(t)){this.masked.updateOptions({mask:t});return}let r=t instanceof Se.Masked?t:Fr({mask:t});r.unmaskedValue=this.masked.unmaskedValue,this.masked=r}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){this.rawInputValue!==t&&(this.masked.rawInputValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t,r){let o=this._listeners[t];o&&o.forEach(n=>n(r))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(t){let r=this.masked.unmaskedValue,o=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==r||this.value!==o||this._rawInputValue!==n;this._unmaskedValue=r,this._value=o,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),t==="auto"?this.alignCursor():t!=null&&(this.cursorPos=t),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:r,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){let i=t,{mask:r}=i,o=he(i,["mask"]),n=!this.maskEquals(r),a=this.masked.optionsIsChanged(o);n&&(this.mask=r),a&&this.masked.updateOptions(o),(n||a)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,Be.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,r){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(r),this}off(t,r){if(!this._listeners[t])return this;if(!r)return delete this._listeners[t],this;let o=this._listeners[t].indexOf(r);return o>=0&&this._listeners[t].splice(o,1),this}_onInput(t){this._inputEvent=t,this._abortUpdateCursor();let r=new Ey({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),o=this.masked.rawInputValue,n=this.masked.splice(r.startChangePos,r.removed.length,r.inserted,r.removeDirection,{input:!0,raw:!0}).offset,a=o===this.masked.rawInputValue?r.removeDirection:Be.NONE,i=this.masked.nearestInputPos(r.startChangePos+n,a);a!==Be.NONE&&(i=this.masked.nearestInputPos(i,Be.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){t&&(this._historyChanging=!0,this.unmaskedValue=t.unmaskedValue,this.el.select(t.selection.start,t.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};Se.InputMask=Iy;var je=class e{static normalize(t){return Array.isArray(t)?t:[t,new e]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},t)}aggregate(t){return this.inserted+=t.inserted,this.rawInserted+=t.rawInserted,this.tailShift+=t.tailShift,this.skip=this.skip||t.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}};Se.ChangeDetails=je;var Vr=class{constructor(t,r,o){t===void 0&&(t=""),r===void 0&&(r=0),this.value=t,this.from=r,this.stop=o}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";let r=this.value[0];return this.value=this.value.slice(1),r}shift(){if(!this.value.length)return"";let t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}};var Jt=class e{constructor(t){this._value="",this._update(z(z({},e.DEFAULTS),t)),this._initialized=!0}updateOptions(t){this.optionsIsChanged(t)&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:!0})}resolve(t,r){r===void 0&&(r={input:!0}),this.reset(),this.append(t,r,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){this.format?this.value=this.format(t,this):this.unmaskedValue=String(t)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(t){this.resolve(t,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,r){return t}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),Math.min(this.displayValue.length,r-t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this.displayValue.slice(t,r)}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr(this.extractInput(t,r),t)}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}_appendCharRaw(t,r){return t?(this._value+=t,new je({inserted:t,rawInserted:t})):new je}_appendChar(t,r,o){r===void 0&&(r={});let n=this.state,a;if([t,a]=this.doPrepareChar(t,r),t&&(a=a.aggregate(this._appendCharRaw(t,r)),!a.rawInserted&&this.autofix==="pad")){let i=this.state;this.state=n;let s=this.pad(r),l=this._appendCharRaw(t,r);s=s.aggregate(l),l.rawInserted||s.equals(a)?a=s:this.state=i}if(a.inserted){let i,s=this.doValidate(r)!==!1;if(s&&o!=null){let l=this.state;if(this.overwrite===!0){i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.unshift(this.displayValue.length-a.tailShift)}let p=this.appendTail(o);if(s=p.rawInserted.length===o.toString().length,!(s&&p.inserted)&&this.overwrite==="shift"){this.state=l,i=o.state;for(let c=0;c<a.rawInserted.length;++c)o.shift();p=this.appendTail(o),s=p.rawInserted.length===o.toString().length}s&&p.inserted&&(this.state=l)}s||(a=new je,this.state=n,o&&i&&(o.state=i))}return a}_appendPlaceholder(){return new je}_appendEager(){return new je}append(t,r,o){if(!ko(t))throw new Error("value should be string");let n=ko(o)?new Vr(String(o)):o;r!=null&&r.tail&&(r._beforeTailState=this.state);let a;[t,a]=this.doPrepare(t,r);for(let i=0;i<t.length;++i){let s=this._appendChar(t[i],r,n);if(!s.rawInserted&&!this.doSkipInvalid(t[i],r,n))break;a.aggregate(s)}return(this.eager===!0||this.eager==="append")&&r!=null&&r.input&&t&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),this._value=this.displayValue.slice(0,t)+this.displayValue.slice(r),new je}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=!0;let r=this.rawInputValue,o=this.value,n=t();return this.rawInputValue=r,this.value&&this.value!==o&&o.indexOf(this.value)===0&&(this.append(o.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=!0;let r=this.state,o=t(this);return this.state=r,delete this._isolated,o}doSkipInvalid(t,r,o){return!!this.skipInvalid}doPrepare(t,r){return r===void 0&&(r={}),je.normalize(this.prepare?this.prepare(t,this,r):t)}doPrepareChar(t,r){return r===void 0&&(r={}),je.normalize(this.prepareChar?this.prepareChar(t,this,r):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}splice(t,r,o,n,a){o===void 0&&(o=""),n===void 0&&(n=Be.NONE),a===void 0&&(a={input:!0});let i=t+r,s=this.extractTail(i),l=this.eager===!0||this.eager==="remove",p;l&&(n=vT(n),p=this.extractInput(0,i,{raw:!0}));let c=t,u=new je;if(n!==Be.NONE&&(c=this.nearestInputPos(t,r>1&&t!==0&&!l?Be.NONE:n),u.tailShift=c-t),u.aggregate(this.remove(c)),l&&n!==Be.NONE&&p===this.rawInputValue)if(n===Be.FORCE_LEFT){let d;for(;p===this.rawInputValue&&(d=this.displayValue.length);)u.aggregate(new je({tailShift:-1})).aggregate(this.remove(d-1))}else n===Be.FORCE_RIGHT&&s.unshift();return u.aggregate(this.append(o,a,s))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!Op(this,t)}typedValueEquals(t){let r=this.typedValue;return t===r||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(r)||(this.format?this.format(t,this)===this.format(this.typedValue,this):!1)}pad(t){return new je}};Jt.DEFAULTS={skipInvalid:!0};Jt.EMPTY_VALUES=[void 0,null,""];Se.Masked=Jt;var _p=class e{constructor(t,r){t===void 0&&(t=[]),r===void 0&&(r=0),this.chunks=t,this.from=r}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=ko(t)?new Vr(String(t)):t;let r=this.chunks[this.chunks.length-1],o=r&&(r.stop===t.stop||t.stop==null)&&t.from===r.from+r.toString().length;if(t instanceof Vr)o?r.extend(t.toString()):this.chunks.push(t);else if(t instanceof e){if(t.stop==null){let n;for(;t.chunks.length&&t.chunks[0].stop==null;)n=t.chunks.shift(),n.from+=t.from,this.extend(n)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof Se.MaskedPattern))return new Vr(this.toString()).appendTo(t);let r=new je;for(let o=0;o<this.chunks.length;++o){let n=this.chunks[o],a=t._mapPosToBlock(t.displayValue.length),i=n.stop,s;if(i!=null&&(!a||a.index<=i)&&((n instanceof e||t._stops.indexOf(i)>=0)&&r.aggregate(t._appendPlaceholder(i)),s=n instanceof e&&t._blocks[i]),s){let l=s.appendTail(n);r.aggregate(l);let p=n.toString().slice(l.rawInserted.length);p&&r.aggregate(t.append(p,{tail:!0}))}else r.aggregate(t.append(n.toString(),{tail:!0}))}return r}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let n=t,{chunks:r}=n,o=he(n,["chunks"]);Object.assign(this,o),this.chunks=r.map(a=>{let i="chunks"in a?new e:new Vr;return i.state=a,i})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";let r=t!=null?t-this.from:t,o=0;for(;o<this.chunks.length;){let n=this.chunks[o],a=n.unshift(r);if(n.toString()){if(!a)break;++o}else this.chunks.splice(o,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){let r=this.chunks[t],o=r.shift();if(r.toString()){if(!o)break;--t}else this.chunks.splice(t,1);if(o)return o}return""}};var Oy=class{constructor(t,r){this.masked=t,this._log=[];let{offset:o,index:n}=t._mapPosToBlock(r)||(r<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=o,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){let t=this._log.pop();return t&&(this.state=t),t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((r=this.block)==null?void 0:r.displayValue.length)||0){var r;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,Be.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,Be.NONE),!0})}};var wp=class{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._value=this._value.slice(0,t)+this._value.slice(r),this._value||(this._isRawInput=!1),new je}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this._value.length;switch(r){case Be.LEFT:case Be.FORCE_LEFT:return o;case Be.NONE:case Be.RIGHT:case Be.FORCE_RIGHT:default:return n}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),this._isRawInput?r-t:0}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this._value.length),o===void 0&&(o={}),o.raw&&this._isRawInput&&this._value.slice(t,r)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new je;let o=this.eager===!0||this.eager==="append",a=this.char===t&&(this.isUnmasking||r.input||r.raw)&&(!r.raw||!o)&&!r.tail,i=new je({inserted:this.char,rawInserted:a?this.char:""});return this._value=this.char,this._isRawInput=a&&(r.raw||r.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let t=new je;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return new Vr("")}appendTail(t){return ko(t)&&(t=new Vr(String(t))),t.appendTo(this)}append(t,r,o){let n=this._appendChar(t[0],r);return o!=null&&(n.tailShift+=this.appendTail(o).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value,this._isRawInput=!!t._rawInputValue}pad(t){return this._appendPlaceholder()}};var Li=class{constructor(t){let p=t,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s}=p,l=he(p,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=Fr(l),Object.assign(this,{parent:r,isOptional:o,placeholderChar:n,displayChar:a,lazy:i,eager:s})}reset(){this.isFilled=!1,this.masked.reset()}remove(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),t===0&&r>=1?(this.isFilled=!1,this.masked.remove(t,r)):new je}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t,r){if(r===void 0&&(r={}),this.isFilled)return new je;let o=this.masked.state,n=this.masked._appendChar(t,this.currentMaskFlags(r));return n.inserted&&this.doValidate(r)===!1&&(n=new je,this.masked.state=o),!n.inserted&&!this.isOptional&&!this.lazy&&!r.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(t,r,o){return this.masked.append(t,this.currentMaskFlags(r),o)}_appendPlaceholder(){return this.isFilled||this.isOptional?new je:(this.isFilled=!0,new je({inserted:this.placeholderChar}))}_appendEager(){return new je}extractTail(t,r){return this.masked.extractTail(t,r)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.masked.extractInput(t,r,o)}nearestInputPos(t,r){r===void 0&&(r=Be.NONE);let o=0,n=this.value.length,a=Math.min(Math.max(t,o),n);switch(r){case Be.LEFT:case Be.FORCE_LEFT:return this.isComplete?a:o;case Be.RIGHT:case Be.FORCE_RIGHT:return this.isComplete?a:n;case Be.NONE:default:return a}}totalInputPositions(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.value.length),this.value.slice(t,r).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}currentMaskFlags(t){var r;return Q(z({},t),{_beforeTailState:(t==null||(r=t._beforeTailState)==null?void 0:r.masked)||(t==null?void 0:t._beforeTailState)})}pad(t){return new je}};Li.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var Dy=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){let r=t.mask;r&&(t.validate=o=>o.search(r)>=0),super._update(t)}};Se.MaskedRegExp=Dy;var nr=class e extends Jt{constructor(t){super(Q(z(z({},e.DEFAULTS),t),{definitions:Object.assign({},Li.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)}))}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let r=this.mask;if(!r||!t)return;let o=!1,n=!1;for(let i=0;i<r.length;++i){if(this.blocks){let c=r.slice(i),u=Object.keys(this.blocks).filter(f=>c.indexOf(f)===0);u.sort((f,y)=>y.length-f.length);let d=u[0];if(d){let a=Oa(this.blocks[d]),{expose:f,repeat:y}=a,h=he(a,["expose","repeat"]),v=Q(z({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix},h),{repeat:y,parent:this}),b=y!=null?new Se.RepeatBlock(v):Fr(v);b&&(this._blocks.push(b),f&&(this.exposeBlock=b),this._maskedBlocks[d]||(this._maskedBlocks[d]=[]),this._maskedBlocks[d].push(this._blocks.length-1)),i+=d.length-1;continue}}let s=r[i],l=s in t;if(s===e.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(s==="{"||s==="}"){o=!o;continue}if(s==="["||s==="]"){n=!n;continue}if(s===e.ESCAPE_CHAR){if(++i,s=r[i],!s)break;l=!1}let p=l?new Li(Q(z({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},Oa(t[s])),{parent:this})):new wp({char:s,eager:this.eager,isUnmasking:o});this._blocks.push(p)}}get state(){return Q(z({},super.state),{_blocks:this._blocks.map(t=>t.state)})}set state(t){if(!t){this.reset();return}let n=t,{_blocks:r}=n,o=he(n,["_blocks"]);this._blocks.forEach((a,i)=>a.state=r[i]),super.state=o}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((t,r)=>t+=r.unmaskedValue,"")}set unmaskedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t,this.appendTail(r),this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((t,r)=>t+=r.value,"")}set value(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t,this.appendTail(r),this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){let r=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t,this.appendTail(r),this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce((t,r)=>t+=r.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;let r=new je,o=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(o==null)return r;this._blocks[o].isFilled&&++o;for(let n=o;n<this._blocks.length;++n){let a=this._blocks[n]._appendEager();if(!a.inserted)break;r.aggregate(a)}return r}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._mapPosToBlock(this.displayValue.length),n=new je;if(!o)return n;for(let i=o.index,s;s=this._blocks[i];++i){var a;let l=s._appendChar(t,Q(z({},r),{_beforeTailState:(a=r._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]}));if(n.aggregate(l),l.consumed)break}return n}extractTail(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=new _p;return t===r||this._forEachBlocksInRange(t,r,(n,a,i,s)=>{let l=n.extractTail(i,s);l.stop=this._findStopBefore(a),l.from=this._blockStartPos(a),l instanceof _p&&(l.blockIndex=a),o.extend(l)}),o}extractInput(t,r,o){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),o===void 0&&(o={}),t===r)return"";let n="";return this._forEachBlocksInRange(t,r,(a,i,s,l)=>{n+=a.extractInput(s,l,o)}),n}_findStopBefore(t){let r;for(let o=0;o<this._stops.length;++o){let n=this._stops[o];if(n<=t)r=n;else break}return r}_appendPlaceholder(t){let r=new je;if(this.lazy&&t==null)return r;let o=this._mapPosToBlock(this.displayValue.length);if(!o)return r;let n=o.index,a=t!=null?t:this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||t!=null){var s;r.aggregate(i._appendPlaceholder((s=i._blocks)==null?void 0:s.length))}}),r}_mapPosToBlock(t){let r="";for(let o=0;o<this._blocks.length;++o){let n=this._blocks[o],a=r.length;if(r+=n.displayValue,t<=r.length)return{index:o,offset:t-a}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((r,o)=>r+=o.displayValue.length,0)}_forEachBlocksInRange(t,r,o){r===void 0&&(r=this.displayValue.length);let n=this._mapPosToBlock(t);if(n){let a=this._mapPosToBlock(r),i=a&&n.index===a.index,s=n.offset,l=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(o(this._blocks[n.index],n.index,s,l),a&&!i){for(let p=n.index+1;p<a.index;++p)o(this._blocks[p],p,0,this._blocks[p].displayValue.length);o(this._blocks[a.index],a.index,0,a.offset)}}}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o.aggregate(n.remove(i,s))}),o}nearestInputPos(t,r){if(r===void 0&&(r=Be.NONE),!this._blocks.length)return 0;let o=new Oy(this,t);if(r===Be.NONE)return o.pushRightBeforeInput()||(o.popState(),o.pushLeftBeforeInput())?o.pos:this.displayValue.length;if(r===Be.LEFT||r===Be.FORCE_LEFT){if(r===Be.LEFT){if(o.pushRightBeforeFilled(),o.ok&&o.pos===t)return t;o.popState()}if(o.pushLeftBeforeInput(),o.pushLeftBeforeRequired(),o.pushLeftBeforeFilled(),r===Be.LEFT){if(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.ok&&o.pos<=t||(o.popState(),o.ok&&o.pos<=t))return o.pos;o.popState()}return o.ok?o.pos:r===Be.FORCE_LEFT?0:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:0)}return r===Be.RIGHT||r===Be.FORCE_RIGHT?(o.pushRightBeforeInput(),o.pushRightBeforeRequired(),o.pushRightBeforeFilled()?o.pos:r===Be.FORCE_RIGHT?this.displayValue.length:(o.popState(),o.ok||(o.popState(),o.ok)?o.pos:this.nearestInputPos(t,Be.LEFT))):t}totalInputPositions(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=0;return this._forEachBlocksInRange(t,r,(n,a,i,s)=>{o+=n.totalInputPositions(i,s)}),o}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){let r=this._maskedBlocks[t];return r?r.map(o=>this._blocks[o]):[]}pad(t){let r=new je;return this._forEachBlocksInRange(0,this.displayValue.length,o=>r.aggregate(o.pad(t))),r}};nr.DEFAULTS=Q(z({},Jt.DEFAULTS),{lazy:!0,placeholderChar:"_"});nr.STOP_CHAR="`";nr.ESCAPE_CHAR="\\";nr.InputDefinition=Li;nr.FixedDefinition=wp;Se.MaskedPattern=nr;var zi=class extends nr{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){let c=t,{to:r=this.to||0,from:o=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix}=c,i=he(c,["to","from","maxLength","autofix"]);this.to=r,this.from=o,this.maxLength=Math.max(String(r).length,n),this.autofix=a;let s=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0"),p=0;for(;p<l.length&&l[p]===s[p];)++p;i.mask=l.slice(0,p).replace(/0/g,"\\0")+"0".repeat(this.maxLength-p),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let r="",o="",[,n,a]=t.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(r="0".repeat(n.length)+a,o="9".repeat(n.length)+a),r=r.padEnd(this.maxLength,"0"),o=o.padEnd(this.maxLength,"9"),[r,o]}doPrepareChar(t,r){r===void 0&&(r={});let o;return[t,o]=super.doPrepareChar(t.replace(/\D/g,""),r),t||(o.skip=!this.isComplete),[t,o]}_appendCharRaw(t,r){if(r===void 0&&(r={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,r);let o=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,i]=this.boundaries(this.value+t);return Number(i)<this.from?super._appendCharRaw(o[this.value.length],r):Number(a)>this.to?!r.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(o[this.value.length],r).aggregate(this._appendCharRaw(t,r)):super._appendCharRaw(n[this.value.length],r):super._appendCharRaw(t,r)}doValidate(t){let r=this.value;if(r.search(/[^0]/)===-1&&r.length<=this._matchFrom)return!0;let[n,a]=this.boundaries(r);return this.from<=Number(a)&&Number(n)<=this.to&&super.doValidate(t)}pad(t){let r=new je;if(this.value.length===this.maxLength)return r;let o=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)r.aggregate(super._appendCharRaw("0",t));o.split("").forEach(a=>this._appendCharRaw(a))}return r}};Se.MaskedRange=zi;var Ap=class e extends nr{static extractPatternOptions(t){let a=t,{mask:r,pattern:o}=a,n=he(a,["mask","pattern"]);return Q(z({},n),{mask:ko(r)?r:o})}constructor(t){super(e.extractPatternOptions(z(z({},e.DEFAULTS),t)))}updateOptions(t){super.updateOptions(t)}_update(t){let s=z(z({},e.DEFAULTS),t),{mask:r,pattern:o,blocks:n}=s,a=he(s,["mask","pattern","blocks"]),i=Object.assign({},e.GET_DEFAULT_BLOCKS());t.min&&(i.Y.from=t.min.getFullYear()),t.max&&(i.Y.to=t.max.getFullYear()),t.min&&t.max&&i.Y.from===i.Y.to&&(i.m.from=t.min.getMonth()+1,i.m.to=t.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=t.min.getDate(),i.d.to=t.max.getDate())),Object.assign(i,this.blocks,n),super._update(Q(z({},a),{mask:ko(r)?r:o,blocks:i}))}doValidate(t){let r=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&r!=null&&(this.min==null||this.min<=r)&&(this.max==null||r<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(e.extractPatternOptions(t))}};Ap.GET_DEFAULT_BLOCKS=()=>({d:{mask:zi,from:1,to:31,maxLength:2},m:{mask:zi,from:1,to:12,maxLength:2},Y:{mask:zi,from:1900,to:9999}});Ap.DEFAULTS=Q(z({},nr.DEFAULTS),{mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>{if(!e)return"";let r=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return[r,o,n].join(".")},parse:(e,t)=>{let[r,o,n]=e.split(".").map(Number);return new Date(n,o-1,r)}});Se.MaskedDate=Ap;var Gu=class e extends Jt{constructor(t){super(z(z({},e.DEFAULTS),t)),this.currentMask=void 0}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),"mask"in t&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(t.mask)?t.mask.map(r=>{let i=Oa(r),{expose:o}=i,n=he(i,["expose"]),a=Fr(z({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid},n));return o&&(this.exposeMask=a),a}):[])}_appendCharRaw(t,r){r===void 0&&(r={});let o=this._applyDispatch(t,r);return this.currentMask&&o.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(r))),o}_applyDispatch(t,r,o){t===void 0&&(t=""),r===void 0&&(r={}),o===void 0&&(o="");let n=r.tail&&r._beforeTailState!=null?r._beforeTailState._value:this.value,a=this.rawInputValue,i=r.tail&&r._beforeTailState!=null?r._beforeTailState._rawInputValue:a,s=a.slice(i.length),l=this.currentMask,p=new je,c=l==null?void 0:l.state;return this.currentMask=this.doDispatch(t,z({},r),o),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),p.tailShift=this.currentMask.value.length-n.length),s&&(p.tailShift+=this.currentMask.append(s,{raw:!0,tail:!0}).tailShift)):c&&(this.currentMask.state=c)),p}_appendPlaceholder(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){let t=this._applyDispatch();return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){let r=new je;return t&&r.aggregate(this._applyDispatch("",{},t)),r.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var r,o;return Q(z({},t),{_beforeTailState:((r=t._beforeTailState)==null?void 0:r.currentMaskRef)===this.currentMask&&((o=t._beforeTailState)==null?void 0:o.currentMask)||t._beforeTailState})}doDispatch(t,r,o){return r===void 0&&(r={}),o===void 0&&(o=""),this.dispatch(t,this,r,o)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,r){r===void 0&&(r={});let[o,n]=super.doPrepare(t,r);if(this.currentMask){let a;[o,a]=super.doPrepare(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(t,r);if(this.currentMask){let a;[o,a]=super.doPrepareChar(o,this.currentMaskFlags(r)),n=n.aggregate(a)}return[o,n]}reset(){var t;(t=this.currentMask)==null||t.reset(),this.compiledMasks.forEach(r=>r.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){this.exposeMask?(this.exposeMask.value=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){this.exposeMask?(this.exposeMask.unmaskedValue=t,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t,this.currentMask=this.exposeMask,this._applyDispatch();return}let r=String(t);this.currentMask&&(this.currentMask.typedValue=t,r=this.currentMask.unmaskedValue),this.unmaskedValue=r}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!((t=this.currentMask)!=null&&t.isComplete)}get isFilled(){var t;return!!((t=this.currentMask)!=null&&t.isFilled)}remove(t,r){let o=new je;return this.currentMask&&o.aggregate(this.currentMask.remove(t,r)).aggregate(this._applyDispatch()),o}get state(){var t;return Q(z({},super.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(r=>r.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state})}set state(t){let i=t,{compiledMasks:r,currentMaskRef:o,currentMask:n}=i,a=he(i,["compiledMasks","currentMaskRef","currentMask"]);r&&this.compiledMasks.forEach((s,l)=>s.state=r[l]),o!=null&&(this.currentMask=o,this.currentMask.state=n),super.state=a}extractInput(t,r,o){return this.currentMask?this.currentMask.extractInput(t,r,o):""}extractTail(t,r){return this.currentMask?this.currentMask.extractTail(t,r):super.extractTail(t,r)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(t,r){return this.currentMask?this.currentMask.nearestInputPos(t,r):super.nearestInputPos(t,r)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every((r,o)=>{if(!t[o])return;let i=t[o],{mask:n}=i,a=he(i,["mask"]);return Op(r,a)&&r.maskEquals(n)}):super.maskEquals(t)}typedValueEquals(t){var r;return!!((r=this.currentMask)!=null&&r.typedValueEquals(t))}};Gu.DEFAULTS=Q(z({},Jt.DEFAULTS),{dispatch:(e,t,r,o)=>{if(!t.compiledMasks.length)return;let n=t.rawInputValue,a=t.compiledMasks.map((i,s)=>{let l=t.currentMask===i,p=l?i.displayValue.length:i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):l||i.remove(p),i.append(e,t.currentMaskFlags(r)),i.appendTail(o),{index:s,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(p,i.nearestInputPos(i.displayValue.length,Be.FORCE_LEFT)))}});return a.sort((i,s)=>s.weight-i.weight||s.totalInputPositions-i.totalInputPositions),t.compiledMasks[a[0].index]}});Se.MaskedDynamic=Gu;var Yu=class e extends nr{constructor(t){super(z(z({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){let n=t,{enum:r}=n,o=he(n,["enum"]);if(r){let a=r.map(l=>l.length),i=Math.min(...a),s=Math.max(...a)-i;o.mask="*".repeat(i),s&&(o.mask+="["+"*".repeat(s)+"]"),this.enum=r}super._update(o)}_appendCharRaw(t,r){r===void 0&&(r={});let o=Math.min(this.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+t,o));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,s)=>{let l=n[0][s];s>=this.value.length||l===i.value||(i.reset(),i._appendChar(l,r))});let a=super._appendCharRaw(n[0][this.value.length],r);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(i=>a.aggregate(super._appendCharRaw(i))),a}return new je}extractTail(t,r){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),new Vr("",t)}remove(t,r){if(t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),t===r)return new je;let o=Math.min(super.nearestInputPos(0,Be.FORCE_RIGHT),this.value.length),n;for(n=t;n>=0&&!(this.enum.filter(s=>this.matchValue(s,this.value.slice(o,n),o)).length>1);--n);let a=super.remove(n,r);return a.tailShift+=n-t,a}};Yu.DEFAULTS=Q(z({},nr.DEFAULTS),{matchValue:(e,t,r)=>e.indexOf(t,r)===r});Se.MaskedEnum=Yu;var _y=class extends Jt{updateOptions(t){super.updateOptions(t)}_update(t){super._update(Q(z({},t),{validate:t.mask}))}};Se.MaskedFunction=_y;var n_,Fi=class e extends Jt{constructor(t){super(z(z({},e.DEFAULTS),t))}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),r="\\d*",o=(this.scale?"("+Ry(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+r+o),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Ry).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Ry(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){let r=t.split(this.radix);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),r.join(this.radix)}doPrepareChar(t,r){r===void 0&&(r={});let[o,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(r.input&&r.raw||!r.input&&!r.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),r);return t&&!o&&(n.skip=!0),o&&!this.allowPositive&&!this.value&&o!=="-"&&n.aggregate(this._appendChar("-")),[o,n]}_separatorsCount(t,r){r===void 0&&(r=!1);let o=0;for(let n=0;n<t;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++o,r&&(t+=this.thousandsSeparator.length));return o}_separatorsCountFromSlice(t){return t===void 0&&(t=this._value),this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(t,r,o){return t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r),this._removeThousandsSeparators(super.extractInput(t,r,o))}_appendCharRaw(t,r){r===void 0&&(r={});let o=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(o);this._value=this._removeThousandsSeparators(this.value);let a=this._value;this._value+=t;let i=this.number,s=!isNaN(i),l=!1;if(s){let d;this.min!=null&&this.min<0&&this.number<this.min&&(d=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(d=this.max),d!=null&&(this.autofix?(this._value=this.format(d,this).replace(e.UNMASKED_RADIX,this.radix),l||(l=a===this._value&&!r.tail)):s=!1),s&&(s=!!this._value.match(this._numberRegExp))}let p;s?p=new je({inserted:this._value.slice(a.length),rawInserted:l?"":t,skip:l}):(this._value=a,p=new je),this._value=this._insertThousandsSeparators(this._value);let c=r.tail&&r._beforeTailState?r._beforeTailState._value:this._value,u=this._separatorsCountFromSlice(c);return p.tailShift+=(u-n)*this.thousandsSeparator.length,p}_findSeparatorAround(t){if(this.thousandsSeparator){let r=t-this.thousandsSeparator.length+1,o=this.value.indexOf(this.thousandsSeparator,r);if(o<=t)return o}return-1}_adjustRangeWithSeparators(t,r){let o=this._findSeparatorAround(t);o>=0&&(t=o);let n=this._findSeparatorAround(r);return n>=0&&(r=n+this.thousandsSeparator.length),[t,r]}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length),[t,r]=this._adjustRangeWithSeparators(t,r);let o=this.value.slice(0,t),n=this.value.slice(r),a=this._separatorsCount(o.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(o+n));let i=this._separatorsCountFromSlice(o);return new je({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(t,r){if(!this.thousandsSeparator)return t;switch(r){case Be.NONE:case Be.LEFT:case Be.FORCE_LEFT:{let o=this._findSeparatorAround(t-1);if(o>=0){let n=o+this.thousandsSeparator.length;if(t<n||this.value.length<=n||r===Be.FORCE_LEFT)return o}break}case Be.RIGHT:case Be.FORCE_RIGHT:{let o=this._findSeparatorAround(t);if(o>=0)return o+this.thousandsSeparator.length}}return t}doCommit(){if(this.value){let t=this.number,r=t;this.min!=null&&(r=Math.max(r,this.min)),this.max!=null&&(r=Math.min(r,this.max)),r!==t&&(this.unmaskedValue=this.format(r,this));let o=this.value;this.normalizeZeros&&(o=this._normalizeZeros(o)),this.padFractionalZeros&&this.scale>0&&(o=this._padFractionalZeros(o)),this._value=o}super.doCommit()}_normalizeZeros(t){let r=this._removeThousandsSeparators(t).split(this.radix);return r[0]=r[0].replace(/^(\D*)(0*)(\d*)/,(o,n,a,i)=>n+i),t.length&&!/\d$/.test(r[0])&&(r[0]=r[0]+"0"),r.length>1&&(r[1]=r[1].replace(/0*$/,""),r[1].length||(r.length=1)),this._insertThousandsSeparators(r.join(this.radix))}_padFractionalZeros(t){if(!t)return t;let r=t.split(this.radix);return r.length<2&&r.push(""),r[1]=r[1].padEnd(this.scale,"0"),r.join(this.radix)}doSkipInvalid(t,r,o){r===void 0&&(r={});let n=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===e.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,r,o)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}};n_=Fi;Fi.UNMASKED_RADIX=".";Fi.EMPTY_VALUES=[...Jt.EMPTY_VALUES,0];Fi.DEFAULTS=Q(z({},Jt.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[n_.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})});Se.MaskedNumber=Fi;var wy={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function xT(e,t,r){t===void 0&&(t=wy.MASKED),r===void 0&&(r=wy.MASKED);let o=Fr(e);return n=>o.runIsolated(a=>(a[t]=n,a[r]))}function a_(e,t,r,o){return xT(t,r,o)(e)}Se.PIPE_TYPE=wy;Se.createPipe=xT;Se.pipe=a_;var Ay=class extends nr{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:1/0}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var r,o,n;let l=Oa(t),{repeat:a}=l,i=he(l,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,i);let s=Fr(this._blockOpts);this.repeat=(r=(o=a!=null?a:s.repeat)!=null?o:this.repeat)!=null?r:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:s},eager:s.eager,overwrite:s.overwrite,skipInvalid:s.skipInvalid,lazy:s.lazy,placeholderChar:s.placeholderChar,displayChar:s.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Fr(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(t,r){r===void 0&&(r={});let o=new je;for(let l=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),p,c;p=(i=this._blocks[l])!=null?i:c=!c&&this._allocateBlock(l);++l){var n,a,i,s;let u=p._appendChar(t,Q(z({},r),{_beforeTailState:(s=r._beforeTailState)==null||(s=s._blocks)==null?void 0:s[l]}));if(u.skip&&c){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(o.aggregate(u),u.consumed)break}return o}_trimEmptyTail(t,r){var o,n;t===void 0&&(t=0);let a=Math.max(((o=this._mapPosToBlock(t))==null?void 0:o.index)||0,this.repeatFrom,0),i;r!=null&&(i=(n=this._mapPosToBlock(r))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let s=0;for(let l=i;a<=l&&!this._blocks[l].unmaskedValue;--l,++s);s&&(this._blocks.splice(i-s+1,s),this.mask=this.mask.slice(s))}reset(){super.reset(),this._trimEmptyTail()}remove(t,r){t===void 0&&(t=0),r===void 0&&(r=this.displayValue.length);let o=super.remove(t,r);return this._trimEmptyTail(t,r),o}totalInputPositions(t,r){return t===void 0&&(t=0),r==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(t,r)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=t}};Se.RepeatBlock=Ay;try{globalThis.IMask=Se}catch(e){}import PT from"react";var ze=wo(VC(),1);import By from"react";var i_={mask:ze.default.oneOfType([ze.default.array,ze.default.func,ze.default.string,ze.default.instanceOf(RegExp),ze.default.oneOf([Date,Number,Se.Masked]),ze.default.instanceOf(Se.Masked)]),value:ze.default.any,unmask:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["typed"])]),prepare:ze.default.func,prepareChar:ze.default.func,validate:ze.default.func,commit:ze.default.func,overwrite:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["shift"])]),eager:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["append","remove"])]),skipInvalid:ze.default.bool,onAccept:ze.default.func,onComplete:ze.default.func,placeholderChar:ze.default.string,displayChar:ze.default.string,lazy:ze.default.bool,definitions:ze.default.object,blocks:ze.default.object,enum:ze.default.arrayOf(ze.default.string),maxLength:ze.default.number,from:ze.default.number,to:ze.default.number,pattern:ze.default.string,format:ze.default.func,parse:ze.default.func,autofix:ze.default.oneOfType([ze.default.bool,ze.default.oneOf(["pad"])]),radix:ze.default.string,thousandsSeparator:ze.default.string,mapToRadix:ze.default.arrayOf(ze.default.string),scale:ze.default.number,normalizeZeros:ze.default.bool,padFractionalZeros:ze.default.bool,min:ze.default.oneOfType([ze.default.number,ze.default.instanceOf(Date)]),max:ze.default.oneOfType([ze.default.number,ze.default.instanceOf(Date)]),dispatch:ze.default.func,inputRef:ze.default.oneOfType([ze.default.func,ze.default.shape({current:ze.default.object})])},s_=Object.keys(i_).filter(e=>e!=="value"),g7=["value","unmask","onAccept","onComplete","inputRef"],v7=s_.filter(e=>g7.indexOf(e)<0);function TT(e){var t;let r=(t=class extends By.Component{constructor(a){super(a),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let a=this.props,i=this._extractMaskOptionsFromProps(a);if(i.mask)this.maskRef?(this.maskRef.updateOptions(i),"value"in a&&a.value!==void 0&&(this.maskValue=a.value)):this.initMask(i);else if(this.destroyMask(),"value"in a&&a.value!==void 0){var s;(s=this.element)!=null&&s.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=a.value:this.element.value=a.value}}componentWillUnmount(){this.destroyMask()}_inputRef(a){this.element=a,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=a:this.props.inputRef(a))}initMask(a){a===void 0&&(a=this._extractMaskOptionsFromProps(this.props)),this.maskRef=Se(this.element,a).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(a){let i=he(a,[]);return Object.keys(i).filter(s=>v7.indexOf(s)<0).forEach(s=>{delete i[s]}),i}_extractNonMaskProps(a){let i=he(a,[]);return s_.forEach(s=>{s!=="maxLength"&&delete i[s]}),"defaultValue"in i||(i.defaultValue=a.mask?"":i.value),delete i.value,i}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(a){this.maskRef&&(a=a==null&&this.props.unmask!=="typed"?"":a,this.props.unmask==="typed"?this.maskRef.typedValue=a:this.props.unmask?this.maskRef.unmaskedValue=a:this.maskRef.value=a)}_onAccept(a){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,a)}_onComplete(a){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,a)}render(){return By.createElement(e,Q(z({},this._extractNonMaskProps(this.props)),{inputRef:this._inputRef}))}},t.displayName=void 0,t.propTypes=void 0,t),o=e.displayName||e.name||"Component";return r.displayName="IMask("+o+")",r.propTypes=i_,By.forwardRef((n,a)=>By.createElement(r,Q(z({},n),{ref:a})))}var b7=TT(e=>{let o=e,{inputRef:t}=o,r=he(o,["inputRef"]);return PT.createElement("input",Q(z({},r),{ref:t}))}),x7=(e,t)=>PT.createElement(b7,Q(z({},e),{ref:t})),_a=PT.forwardRef(x7);import{useRef as lZe,useState as pZe,useCallback as cZe,useEffect as uZe}from"react";import"react";import{jsx as T7}from"react/jsx-runtime";var Vi=ht(T7("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");import{motion as P7}from"framer-motion";var C7=P7(Wm),S7=E(C7)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),Ju=S7;Ju.displayName="DialogActions";var qn=Ju;var I7=E(or,{name:"DatePicker",slot:"calendarButton"})(({theme:e})=>({"&:focus":{"--Icon-color":"currentColor",outlineOffset:`${e.getCssVar("focus-thickness")}`,outline:`${e.getCssVar("focus-thickness")} solid ${e.getCssVar("palette-focusVisible")}`}})),O7=E(Yt,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),D7=E(tn,{name:"DatePicker",slot:"sheet",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),_7=E("div",{name:"DatePicker",slot:"root",overridesResolver:(e,t)=>t.root})({width:"100%"}),u_=(e,t)=>{try{let r=Ny(e,t);return r.toString()==="Invalid Date"||e!==qu(r,t)?!1:new RegExp(`^${t.replace(/Y/g,"\\d").replace(/M/g,"\\d").replace(/D/g,"\\d")}$`).test(e)}catch(r){return!1}},qu=(e,t)=>{let r=`${e.getDate()}`,o=`${e.getMonth()+1}`,n=e.getFullYear();return Number(r)<10&&(r="0"+r),Number(o)<10&&(o="0"+o),t.replace(/YYYY/g,n.toString()).replace(/MM/g,o).replace(/DD/g,r)};function Ny(e,t){let r=t.split(/[-./\s]/),o=e.split(/[-./\s]/);if(r.length!==o.length)throw new Error("Invalid date string or format");let n,a,i;for(let l=0;l<r.length;l++){let p=parseInt(o[l],10);switch(r[l]){case"DD":n=p;break;case"MM":a=p-1;break;case"YYYY":i=p;break}}return new Date(i,a,n)}var w7=e=>e.replace(/YYYY/g,"Y").replace(/MM/g,"M").replace(/DD/g,"D").replace(/[^YMD\s]/g,t=>`${t}\``),A7=k7.forwardRef(function(t,r){let i=t,{onChange:o,format:n}=i,a=he(i,["onChange","format"]);return O(_a,Q(z({},a),{inputRef:r,onAccept:s=>o({target:{name:t.name,value:s}}),mask:Date,pattern:w7(n),blocks:{D:{mask:Se.MaskedRange,from:1,to:31,maxLength:2},M:{mask:Se.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Se.MaskedRange,from:1900,to:9999,maxLength:4}},format:s=>qu(s,n),parse:s=>Ny(s,n),autofix:"pad",overwrite:!0}))}),Ly=R7((e,t)=>{let r=G({props:e,name:"DatePicker"}),U=r,{onChange:o,disabled:n,label:a,error:i,helperText:s,minDate:l,maxDate:p,disableFuture:c,disablePast:u,required:d,sx:f,className:y,format:h="YYYY/MM/DD",displayFormat:v="YYYY/MM/DD",size:b,inputReadOnly:x,hideClearButton:g,readOnly:S}=U,P=he(U,["onChange","disabled","label","error","helperText","minDate","maxDate","disableFuture","disablePast","required","sx","className","format","displayFormat","size","inputReadOnly","hideClearButton","readOnly"]),T=p_(null),C=p_(null),[k,I]=At(r.value,r.defaultValue||"",My(F=>o==null?void 0:o({target:{name:r.name,value:F}}),[r.name,o]),{disableStrict:!0}),[D,M]=c_(k),[B,A]=c_(null),$=!!B;l_(()=>{var F;B||(F=T.current)==null||F.blur()},[B,T]),l_(()=>{if(!u_(D,v))return;if(k===""){M("");return}let R=qu(Ny(k,h),v);M(R)},[v,D,h,k]),E7(t,()=>T.current,[T]);let N=My(F=>{if(M(F.target.value),F.target.value===""){I("");return}if(u_(F.target.value,v)){let q=Ny(F.target.value,v),J=qu(q,h);I(J)}},[v,h,I]),_=My(F=>{A(B?null:F.currentTarget),setTimeout(()=>{var R;(R=T.current)==null||R.focus()},0)},[B,A,T]),L=My(F=>{var R;x&&(F.preventDefault(),(R=C.current)==null||R.focus())},[x,C]);return O(_7,{children:O(io,{open:!0,children:xe(Pr,{children:[O(Kr,Q(z({},P),{color:i?"danger":P.color,ref:T,size:b,value:D,onChange:N,placeholder:v,disabled:n,required:d,error:i,slotProps:{input:{component:A7,ref:T,format:v,sx:{"&:hover":{cursor:x||S?"default":"text"}},onMouseDown:L}},className:y,sx:f,endDecorator:O(I7,{ref:C,variant:"plain",onClick:S?void 0:_,"aria-label":"Toggle Calendar","aria-controls":"date-picker-popper","aria-haspopup":"dialog","aria-expanded":$,disabled:n,children:O(Vi,{})}),label:a,helperText:s,readOnly:S||x})),$&&O(fn,{onClickAway:()=>A(null),children:O(O7,{id:"date-picker-popper",open:!0,anchorEl:B,placement:"bottom-end",onMouseDown:F=>F.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}],"aria-label":"Calendar Tooltip","aria-expanded":$,children:xe(D7,{tabIndex:-1,role:"presentation",children:[O(Bi,{value:Number.isNaN(new Date(k).getTime())?void 0:[new Date(k),void 0],onChange:([F])=>{N({target:{name:r.name,value:qu(F,h)}}),A(null)},minDate:l?new Date(l):void 0,maxDate:p?new Date(p):void 0,disableFuture:c,disablePast:u}),!g&&O(qn,{sx:{p:1},children:O(kr,{size:b,variant:"plain",color:"neutral",onClick:()=>{N({target:{name:r.name,value:""}}),A(null)},children:"Clear"})})]})})})]})})})});var d_=Ly;import{motion as B7}from"framer-motion";var M7=B7(Bh),Ku=e=>{let y=e,{label:t,error:r,helperText:o,color:n,size:a,disabled:i,required:s,minRows:l=2,maxRows:p=4,sx:c,className:u}=y,d=he(y,["label","error","helperText","color","size","disabled","required","minRows","maxRows","sx","className"]),f=O(M7,z({required:s,disabled:i,color:r?"danger":n,size:a,minRows:l,maxRows:p},d));return xe(Gn,{required:s,disabled:i,color:n,size:a,error:r,sx:c,className:u,children:[t&&O(Yn,{children:t}),f,o&&O(Jn,{children:o})]})};Ku.displayName="Textarea";var f_=Ku;import{useMemo as N7}from"react";import{motion as L7}from"framer-motion";var z7=L7(yh),zy=z7;zy.displayName="Option";function Xu(e){let h=e,{label:t,helperText:r,error:o,size:n,color:a,disabled:i,required:s,onChange:l,sx:p,className:c}=h,u=he(h,["label","helperText","error","size","color","disabled","required","onChange","sx","className"]),d=N7(()=>e.options.map(v=>v.hasOwnProperty("value")&&v.hasOwnProperty("label")?v:{value:v,label:v}),[e.options]),f=(v,b)=>{var S;let x=v||{target:{}},g=Q(z({},x),{target:Q(z({},x.target),{name:((S=x.target)==null?void 0:S.name)||e.name,value:b})});l==null||l(g,b)},y=O(bh,Q(z({},u),{required:s,disabled:i,size:n,color:o?"danger":a,onChange:f,children:d.map(v=>O(zy,{value:v.value,children:v.label},v.value))}));return xe(Gn,{required:s,disabled:i,size:n,color:a,error:o,sx:p,className:c,children:[t&&O(Yn,{children:t}),y,r&&O(Jn,{children:r})]})}Xu.displayName="Select";var m_=Xu;import{motion as F7}from"framer-motion";var V7=F7(Lh),Zu=e=>O(V7,z({},e));Zu.displayName="Tooltip";var Fy=Zu;import{motion as b_}from"framer-motion";import{useCallback as $7,useEffect as j7}from"react";var Us=E(kr,{name:"Pagination",slot:"button"})(({theme:e,active:t,size:r})=>({"--Button-size":{sm:"32px",md:"40px",lg:"48px"}[r],width:"var(--Button-size)",height:"var(--Button-size)",backgroundColor:t?e.vars.palette.primary.softHoverBg:"transparent",color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.plainColor,"&:hover":{color:t?e.vars.palette.primary.softColor:e.vars.palette.neutral.softColor,backgroundColor:t?e.vars.palette.primary.softActiveBg:e.vars.palette.neutral.softHoverBg}})),h_=E(or,{name:"Pagination",slot:"button"})(({theme:e,size:t})=>({"--IconButton-size":{sm:"32px",md:"40px",lg:"48px"}[t],"--Icon-fontSize":"20px",width:"var(--IconButton-size)",height:"var(--IconButton-size)",color:e.vars.palette.neutral.plainColor,"&:hover":{color:e.vars.palette.neutral.softColor,backgroundColor:e.vars.palette.neutral.softHoverBg}})),H7=E(Ct,{name:"Pagination",slot:"root"})({}),U7=E(Ct,{name:"Pagination",slot:"container"})(({theme:e,size:t})=>({gap:{sm:e.spacing(1),md:e.spacing(1.5),lg:e.spacing(2)}[t]}));function Qu(e){let v=e,{paginationModel:t,defaultPaginationModel:r={page:1,pageSize:25},onPageChange:o,rowCount:n,size:a="md"}=v,i=he(v,["paginationModel","defaultPaginationModel","onPageChange","rowCount","size"]),[s,l]=At(t,r,$7(b=>{o(b.page)},[o])),p=b=>{l(Q(z({},s),{page:b}))},c=1,u=Math.max(c,Math.ceil(n/s.pageSize)),d=[s.page-2,s.page-1].filter(b=>b>1),f=[s.page+1,s.page+2].filter(b=>b<=u-1),y=u>1&&s.page<u-3,h=u>1&&s.page>4;return j7(()=>{s.page>u&&l(Q(z({},s),{page:u}))},[n,s,u,l]),O(H7,Q(z({},i),{children:xe(U7,{direction:"row",size:a,alignItems:"center",children:[O(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-1),disabled:s.page===c,"aria-label":"Previous page",children:O(iy,{})}),s.page!==c&&O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(c),children:c}),h&&O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page-3),"aria-label":"More previous pages",children:"..."}),d.map(b=>O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),O(Us,{active:!0,size:a,"aria-current":"page",children:s.page}),f.map(b=>O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(b),children:b},b)),y&&O(Us,{size:a,variant:"plain",color:"neutral","aria-label":"More next pages",onClick:()=>p(s.page+3),children:"..."}),s.page!==u&&O(Us,{size:a,variant:"plain",color:"neutral",onClick:()=>p(u),children:u}),O(h_,{size:a,variant:"plain",color:"neutral",onClick:()=>p(s.page+1),disabled:s.page===u,"aria-label":"Next page",children:O(sy,{})})]})}))}Qu.displayName="Pagination";var y_=Qu;import{jsx as W7}from"react/jsx-runtime";var g_=ht(W7("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var G7=E(g_,{name:"InfoSign",slot:"InfoSign"})(({theme:e})=>({color:e.palette.text.icon,width:"14px",height:"14px"}));function Vy(e){let{message:t,placement:r}=e;return O(Fy,{arrow:!0,placement:r,sx:{[`&.${Mh.root}`]:{maxWidth:"320px"}},title:t==null?void 0:t.split(`
|
|
128
128
|
`).map((o,n)=>O("div",{children:o},n)),children:O(G7,{})})}var v_=Vy;os();function x_(e){return!e.editMode&&["number","date","currency"].includes(e.type||"")?"end":"start"}var X7=E("tr",{name:"DataTable",slot:"overlayWrapper"})({position:"sticky",top:"calc(var(--unstable_TableCell-height, 32px))",left:0,right:0,zIndex:1,"& > td":{height:0,padding:0,border:"none !important"}}),$y=e=>"Intl"in window?new Intl.NumberFormat().format(e):e,Z7=e=>O(ny,{sx:{position:"absolute",top:0,right:0,bottom:0,width:"4px",cursor:"col-resize"},onClick:t=>t.stopPropagation(),onMouseDown:t=>{var i;let r=t.clientX,o=(i=e.current)==null?void 0:i.getBoundingClientRect().width,n=s=>{o&&r&&(e.current.style.width=`${o+(s.clientX-r)}px`)},a=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",a)}}),Q7=E("tbody",{name:"DataTable",slot:"tableBody"})({"&::after":{content:"''",display:"block",height:"0.01em"}}),e8=E("tr",{name:"DataTable",slot:"tableRow",shouldForwardProp:e=>e!=="striped"})(({striped:e})=>Q(z({},e&&{background:"var(--TableRow-stripeBackground, var(--ceed-palette-background-level2))",color:"var(--ceed-palette-text-primary)"}),{"&:hover":{background:"var(--TableRow-hoverBackground, var(--ceed-palette-background-level3))"}})),t8=E("span",{name:"DataTable",slot:"headCellAsterisk"})(({theme:e})=>({color:"var(--ceed-palette-danger-500)",marginLeft:e.spacing(.5)})),r8=b_(r_),o8=e=>{let{width:t,maxWidth:r,minWidth:o,stickyHeader:n,resizable:a,field:i,tableId:s,headerName:l,required:p,editMode:c,sort:u,onSortChange:d,sortable:f=!0,sortOrder:y,description:h}=e,v=Hy(null),b=ur(()=>`${s}_header_${l!=null?l:i}`.trim(),[s,l,i]),x=a==null||a?Z7(v):null,g={width:t,minWidth:o!=null?o:"50px",maxWidth:r,position:n?void 0:"relative",cursor:f?"pointer":"default",userSelect:"none"},S=x_(e),P=y[0],T=f&&O(r8,{style:{width:"16px",height:"16px"},role:"img","aria-labelledby":b,"aria-description":(u!=null?u:P)==="desc"?"descending":"ascending","data-testid":void 0,variants:{hover:{opacity:1},initial:{opacity:0}},animate:{color:u?"var(--ceed-palette-text-secondary)":"var(--ceed-palette-primary-solidDisabledColor)",rotate:(u!=null?u:P)==="desc"?180:0,opacity:u?1:0},transition:{duration:0,rotate:{duration:.2,ease:"easeOut"},color:{duration:.2,ease:"easeInOut"},opacity:{duration:.2,ease:"easeInOut"}}}),C=h?O(v_,{message:h,placement:"bottom"}):null;return xe(b_.th,{id:b,"aria-label":l!=null?l:i,"aria-sort":u?{asc:"ascending",desc:"descending"}[u]:"none",ref:v,style:g,onClick:k=>f&&(d==null?void 0:d({field:i,currentSort:u,multiple:k.shiftKey})),whileHover:"hover",initial:"initial",children:[xe(Ct,{gap:1,direction:"row",justifyContent:S,alignItems:"center",children:[S==="end"&&T,S==="end"&&C,xe("div",{children:[l!=null?l:i,c&&p&&O(t8,{children:"*"})]}),S==="start"&&C,S==="start"&&T]}),x]},i)},n8=e=>{var P;let{tableId:t,field:r,type:o,renderCell:n,renderEditCell:a,isCellEditable:i,noWrap:s,row:l,rowId:p}=e,[c,u]=CT(l[r]),d=Hy(null),f=ur(()=>({row:l,value:c,id:p}),[l,p,c]),y=ur(()=>!!(e.editMode&&(typeof i=="function"?i(f):i==null||i)),[e.editMode,i,f]),h=ur(()=>Q(z({},typeof e.componentProps=="function"?e.componentProps(f):e.componentProps||{}),{size:"sm"}),[e,f]),v=ur(()=>z(Q(z({},h),{onChange:T=>{var C,k;(C=h.onChange)==null||C.call(h,T),u(T.target.value),o==="select"&&((k=e.onCellEditStop)==null||k.call(e,Q(z({},f),{originalRow:l,row:Q(z({},f.row),{[r]:T.target.value}),value:T.target.value})))},onFocus:T=>{var C,k;(C=h.onFocus)==null||C.call(h,T),(k=e.onCellEditStart)==null||k.call(e,Q(z({},f),{originalRow:l,row:Q(z({},f.row),{value:c}),value:c}))},onBlur:T=>{var C,k;(C=h.onBlur)==null||C.call(h,T),o&&["number","text","longText","currency","date"].includes(o)&&((k=e.onCellEditStop)==null||k.call(e,Q(z({},f),{originalRow:l,row:Q(z({},f.row),{[r]:c}),value:c})))}}),o==="autocomplete"&&{onChangeComplete:T=>{var C,k;(C=h.onChangeComplete)==null||C.call(h,T),u(T.target.value),(k=e.onCellEditStop)==null||k.call(e,Q(z({},f),{originalRow:l,row:Q(z({},f.row),{[r]:T.target.value}),value:T.target.value}))}}),[f,l,r,c,h,o,e]),b=ur(()=>a?a(f):{date:O(d_,z({value:c},v)),currency:O(t_,z({value:c},v)),number:O(Kr,z({value:c,type:"number"},v)),text:O(Kr,z({value:c,type:"text"},v)),longText:O(f_,z({value:c},v)),autocomplete:O(qO,z({value:c,options:v.options||[c]},v)),select:O(m_,z({value:c,options:v.options||[c]},v))}[o||"text"],[c,v,o]),x=ur(()=>{if(n)return n(f);let T=c;return{link:Y7.createElement(e.component||xa,z({children:T},h))}[o||"text"]||T},[c,n,f,o,h,e]),g=ur(()=>y&&b?b:x,[y,b,x]),S=ur(()=>s&&e.type==="longText",[s,e.type]);return jy(()=>{u(l[r])},[l,r]),O("td",{ref:d,headers:`${t}_header_${(P=e.headerName)!=null?P:r}`,style:{textAlign:x_({type:o}),verticalAlign:y?"top":"middle"},children:S?O(Fy,{title:c,placement:"bottom",style:{maxWidth:"100%"},enterDelay:1500,enterNextDelay:1500,children:O("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:g})}):g},r)},a8=e=>{let{tableId:t,columns:r,rowId:o,editMode:n,noWrap:a,row:i}=e;return O(Pr,{children:r.map((s,l)=>RC(n8,Q(z({},s),{tableId:t,key:`${o}_${s.field.toString()}_${l}`,row:i,rowId:o,editMode:n,noWrap:a})))})};function i8({rows:e,columns:t,rowCount:r,initialState:o,pagination:n,paginationMode:a,paginationModel:i,onPaginationModelChange:s,sortModel:l,sortOrder:p=["asc","desc",null],selectionModel:c=[],onSortModelChange:u,onSelectionModelChange:d,editMode:f,getId:y,isTotalSelected:h}){var R,q;let[v,b]=CT(null),[x,g]=At(l,(q=(R=o==null?void 0:o.sorting)==null?void 0:R.sortModel)!=null?q:[],Kn(J=>u==null?void 0:u(J),[u])),S=ur(()=>t.reduce((J,w)=>Q(z({},J),{[w.field]:w}),{}),[t]),P=Kn((J,w)=>{for(let se of x){let{field:ye,sort:we}=se,ne=J[ye],W=w[ye],me=S[ye],fe=0;if(me.sortComparator?fe=me.sortComparator({rowA:J,rowB:w}):typeof ne=="string"&&typeof W=="string"?fe=ne.localeCompare(W):typeof ne=="number"&&typeof W=="number"?fe=ne-W:ne instanceof Date&&W instanceof Date&&(fe=ne.getTime()-W.getTime()),fe!==0)return we==="asc"?fe:-fe}return 0},[x,S]),T=ur(()=>x.length?[...e].sort(P):e,[e,x,P]),C=ur(()=>Array.from(new Set(p)),[p]),[k,I]=CT((i==null?void 0:i.page)||1),D=(i==null?void 0:i.pageSize)||20,M=Kn((J,w)=>{var se,ye;return(ye=(se=y==null?void 0:y(J))!=null?se:J.id)!=null?ye:`${(w||0)+(k-1)*D}`},[y,k,D]),B=ur(()=>new Set(c),[c]),A=ur(()=>!n||a==="server"?T:T.slice((k-1)*D,(k-1)*D+D),[T,k,D,a,n]),$=ur(()=>A.length>0&&A.every((J,w)=>B.has(M(J,w))),[A,B,M]),N=r||T.length,_=ur(()=>h!=null?h:N>0&&c.length===N,[h,c,N]),L=ur(()=>(t||Object.keys(T[0]||{}).map(w=>({field:w}))).map(w=>{var se,ye,we;return Q(z({},w),{isCellEditable:f&&(typeof w.isCellEditable=="function"?w.isCellEditable:(se=w.isCellEditable)!=null?se:!0),sort:(ye=x.find(ne=>ne.field===w.field))==null?void 0:ye.sort,sortOrder:((we=S[w.field])==null?void 0:we.sortOrder)||C})}),[T,t,f,x,S,C]),U=Kn(J=>{I(J),s==null||s({page:J,pageSize:D})},[s,D]),F=Kn(J=>{let{field:w,currentSort:se,multiple:ye}=J,ne=S[w].sortOrder||C;if(se!==void 0){let me=(ne.indexOf(se)+1)%ne.length,fe=ne[me];if(!fe){let Te=ye?x.filter(Fe=>Fe.field!==w):[];g(Te);return}let Re=ye?x.map(Te=>Te.field===w?{field:w,sort:fe}:Te):[{field:w,sort:fe}];g(Re)}else{let W=ye?[...x,{field:w,sort:ne[0]}]:[{field:w,sort:ne[0]}];g(W)}},[C,S,x,g]);return jy(()=>{i||U(1)},[N,U,i]),jy(()=>{let J=Math.max(1,Math.ceil(N/D));k>J&&U(J)},[k,N,D,U]),jy(()=>{d==null||d([])},[k]),{rowCount:N,page:k,pageSize:D,onPaginationModelChange:U,getId:M,HeadCell:o8,BodyRow:a8,dataInPage:A,handleSortChange:F,isAllSelected:$,isTotalSelected:_,isSelectedRow:Kn(J=>B.has(J),[B]),focusedRowId:v,onRowFocus:Kn(J=>{b(J)},[]),onAllCheckboxChange:Kn(()=>{d==null||d($?[]:A.map(M))},[$,A,d,M]),onCheckboxChange:Kn((J,w)=>{if(B.has(w)){let se=c.filter(ye=>ye!==w);d==null||d(se)}else{let se=[...c,w];d==null||d(se)}},[c,d,B]),columns:L,onTotalSelect:Kn(()=>{d==null||d(_?[]:T.map(M),!_)},[_,T,d,M])}}function s8(e,t){var $e;let ge=e,{rows:r,checkboxSelection:o,editMode:n,selectionModel:a,onSelectionModelChange:i,disableSelectionOnClick:s,onRowClick:l,rowCount:p,columns:c,onPaginationModelChange:u,pagination:d,paginationMode:f,paginationModel:y,sortModel:h,sortOrder:v,onSortModelChange:b,initialState:x,loading:g,slots:{checkbox:S=wu,toolbar:P,footer:T,loadingOverlay:C=()=>O(nu,{value:8,variant:"plain"})}={},slotProps:{checkbox:k={},toolbar:I,background:D={}}={},stripe:M}=ge,B=he(ge,["rows","checkboxSelection","editMode","selectionModel","onSelectionModelChange","disableSelectionOnClick","onRowClick","rowCount","columns","onPaginationModelChange","pagination","paginationMode","paginationModel","sortModel","sortOrder","onSortModelChange","initialState","loading","slots","slotProps","stripe"]),A=J7(),$=Hy(null),N=Hy(null),{columns:_,isAllSelected:L,isSelectedRow:U,onAllCheckboxChange:F,onCheckboxChange:R,getId:q,rowCount:J,page:w,pageSize:se,onPaginationModelChange:ye,handleSortChange:we,dataInPage:ne,isTotalSelected:W,focusedRowId:me,onRowFocus:fe,onTotalSelect:Re,HeadCell:Te,BodyRow:Fe}=i8(e),Je=ey({count:ne.length,getScrollElement:()=>$.current,estimateSize:()=>32,measureElement:ke=>ke.clientHeight,overscan:20}),ae=ur(()=>({page:w,pageSize:se}),[w,se]),oe=Je.getTotalSize(),Ce=Je.getVirtualItems();return K7(t,()=>({getRowIndexRelativeToVisibleRows(ke){return ne.findIndex(Ae=>String(q(Ae))===ke)},setCellFocus(ke){var Ve;let Ae=this.getRowIndexRelativeToVisibleRows(ke),He=e.stickyHeader&&((Ve=Je.getOffsetForIndex(Ae))==null?void 0:Ve[1])==="start"?0:1;Je.scrollToIndex(Ae+He),requestAnimationFrame(()=>{var We,Z;(Z=(We=N.current)==null?void 0:We.querySelector(`[data-row-id='${ke}']`))==null||Z.focus()})}})),xe(ny,{sx:{maxHeight:"100%",overflow:"auto",display:"flex",flexDirection:"column"},children:[(!!o||!!P)&&xe(Ct,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center",children:[!!o&&xe(Ct,{direction:"row",spacing:1,children:[!L&&xe(Sr,{level:"body-xs",children:[$y((a==null?void 0:a.length)||0)," items selected"]}),L&&!W&&xe(Ct,{direction:"row",spacing:1,alignItems:"center",children:[xe(Sr,{level:"body-xs",children:["All ",$y((a==null?void 0:a.length)||0)," items on this page are selected."]}),xe(kr,{size:"sm",variant:"plain",onClick:Re,children:["Select all ",$y(J!=null?J:r.length)," items"]})]}),W&&xe(Ct,{direction:"row",spacing:1,alignItems:"center",children:[xe(Sr,{level:"body-xs",children:["All ",$y(J!=null?J:r.length)," items are selected."]}),O(kr,{size:"sm",variant:"plain",color:"danger",onClick:Re,children:"Cancel"})]})]}),P&&O(P,z({},I||{}))]}),O(tn,Q(z({variant:"outlined",sx:{height:"100%",overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm","--DataTableSheet-width":(($e=$.current)==null?void 0:$e.clientWidth)+"px"},ref:$},D),{children:xe(Hu,Q(z({},B),{children:[O("thead",{children:xe("tr",{children:[o&&O("th",{style:{width:"40px",textAlign:"center"},children:O(S,z({onChange:F,checked:L,indeterminate:(a||[]).length>0&&!L},k))}),_.map((ke,Ae)=>O(Te,z({tableId:A,stickyHeader:e.stickyHeader,editMode:!!ke.isCellEditable,onSortChange:we},ke),`${ke.field.toString()}_${Ae}`))]})}),xe(Q7,{ref:N,style:{height:`${oe}px`},children:[!!g&&O(X7,{children:O("td",{style:{position:"fixed",width:"var(--DataTableSheet-width)",overflow:"visible"},children:O(ny,{sx:{position:"absolute",top:0,left:0,right:0},children:O(C,{})})})}),Ce.map((ke,Ae)=>{let He=ke.index,Ve=ne[He],We=q(Ve,He),Z=M&&(M==="even"&&(He+1)%2===0||M==="odd"&&(He+1)%2===1);return xe(e8,{"data-row-id":We,"data-index":He,role:o&&!s?"checkbox":void 0,tabIndex:me===We?0:-1,onClick:de=>{l==null||l({row:Ve,rowId:We},de),o&&!s&&R(de,We)},onFocus:()=>fe(We),"aria-checked":o&&!s?U(We):void 0,striped:Z,style:{height:`${ke.size}px`,transform:`translateY(${ke.start-Ae*ke.size}px)`},children:[o&&O("th",{scope:"row",style:{textAlign:"center"},children:O(S,z({onClick:de=>de.stopPropagation(),onChange:de=>R(de,We),checked:U(We)},k))}),O(Fe,{tableId:A,columns:_,row:Ve,rowId:We,editMode:n,noWrap:e.noWrap})]},ke.key)})]}),T&&O(T,{})]}))})),d&&O(y_,{py:2,size:"sm",alignItems:"flex-end",paginationModel:ae,rowCount:J,onPageChange:ye})]})}var ST=q7(s8);ST.displayName="DataTable";import l8,{forwardRef as p8,useCallback as ed,useEffect as c8,useImperativeHandle as u8,useMemo as d8,useRef as T_,useState as f8}from"react";var m8=E(or,{name:"DateRangePicker",slot:"calendarButton"})(({theme:e})=>({"&:focus":{"--Icon-color":"currentColor",outlineOffset:`${e.getCssVar("focus-thickness")}`,outline:`${e.getCssVar("focus-thickness")} solid ${e.getCssVar("palette-focusVisible")}`}})),h8=E(Yt,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),y8=E(tn,{name:"DateRangePicker",slot:"sheet",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.tooltip,width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),g8=E("div",{name:"DateRangePicker",slot:"root",overridesResolver:(e,t)=>t.root})({width:"100%"}),C_=([e,t],r)=>{let o=n=>{let a=`${n.getDate()}`,i=`${n.getMonth()+1}`,s=n.getFullYear();return Number(a)<10&&(a="0"+a),Number(i)<10&&(i="0"+i),r.replace(/YYYY/g,s.toString()).replace(/MM/g,i).replace(/DD/g,a)};return[o(e),t?o(t):""].join(" - ")};function P_(e,t){let r=t.split(/[-./\s]/),o=e.split(/[-./\s]/),n,a,i;for(let l=0;l<r.length;l++){let p=parseInt(o[l],10);switch(r[l]){case"DD":n=p;break;case"MM":a=p-1;break;case"YYYY":i=p;break}}return new Date(i,a,n)}var S_=(e,t)=>{let r=e.split(" - ")[0]||"",o=e.split(" - ")[1]||"";return[P_(r,t),P_(o,t)]},v8=e=>`${e} - ${e}`.replace(/YYYY/g,"Y").replace(/MM/g,"M").replace(/DD/g,"D").replace(/[^YMD\s]/g,t=>`${t}\``),b8=l8.forwardRef(function(t,r){let i=t,{onChange:o,format:n}=i,a=he(i,["onChange","format"]);return O(_a,Q(z({},a),{inputRef:r,onAccept:s=>o({target:{name:t.name,value:s}}),mask:Date,pattern:v8(n),blocks:{D:{mask:Se.MaskedRange,from:1,to:31,maxLength:2},M:{mask:Se.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Se.MaskedRange,from:1900,to:9999}},format:s=>C_(s,n),parse:s=>S_(s,n),autofix:"pad",overwrite:!0}))}),kT=p8((e,t)=>{let r=G({props:e,name:"DateRangePicker"}),L=r,{onChange:o,disabled:n,label:a,error:i,helperText:s,minDate:l,maxDate:p,disableFuture:c,disablePast:u,required:d,sx:f,className:y,format:h="YYYY/MM/DD",size:v,inputReadOnly:b,hideClearButton:x,readOnly:g}=L,S=he(L,["onChange","disabled","label","error","helperText","minDate","maxDate","disableFuture","disablePast","required","sx","className","format","size","inputReadOnly","hideClearButton","readOnly"]),P=T_(null),T=T_(null),[C,k]=At(r.value,r.defaultValue||"",ed(U=>o==null?void 0:o({target:{name:r.name,value:U}}),[r.name,o]),{disableStrict:!0}),[I,D]=f8(null),M=!!I,B=d8(()=>C?S_(C,h):void 0,[C,h]);c8(()=>{var U;I||(U=P.current)==null||U.blur()},[I,P]),u8(t,()=>P.current,[P]);let A=ed(U=>{k(U.target.value)},[k]),$=ed(U=>{var F;D(I?null:U.currentTarget),(F=P.current)==null||F.focus()},[I,D,P]),N=ed(([U,F])=>{!U||!F||(k(C_([U,F],h)),D(null))},[k,D,h]),_=ed(U=>{var F;b&&(U.preventDefault(),(F=T.current)==null||F.focus())},[b,T]);return O(g8,{children:O(io,{open:!0,children:xe(Pr,{children:[O(Kr,Q(z({},S),{color:i?"danger":S.color,ref:t,size:v,value:C,onChange:A,disabled:n,required:d,placeholder:`${h} - ${h}`,slotProps:{input:{component:b8,ref:P,format:h,sx:{"&:hover":{cursor:b||g?"default":"text"}},onMouseDown:_}},error:i,className:y,sx:f,endDecorator:O(m8,{ref:T,variant:"plain",onClick:g?void 0:$,"aria-label":"Toggle Calendar","aria-controls":"date-range-picker-popper","aria-haspopup":"dialog","aria-expanded":M,disabled:n,children:O(Vi,{})}),label:a,helperText:s,readOnly:g||b})),M&&O(fn,{onClickAway:()=>D(null),children:O(h8,{id:"date-range-picker-popper",open:!0,anchorEl:I,placement:"bottom-end",onMouseDown:U=>U.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}],"aria-label":"Calendar Tooltip","aria-expanded":M,children:xe(y8,{tabIndex:-1,role:"presentation",children:[O(Bi,{rangeSelection:!0,defaultValue:B,onChange:N,minDate:l?new Date(l):void 0,maxDate:p?new Date(p):void 0,disableFuture:c,disablePast:u}),!x&&O(qn,{sx:{p:1},children:O(kr,{size:v,variant:"plain",color:"neutral",onClick:()=>{k(""),D(null)},children:"Clear"})})]})})})]})})})});kT.displayName="DateRangePicker";import{motion as x8}from"framer-motion";var T8=x8(Ym),P8=E(T8)(({theme:e})=>({padding:e.spacing(0,6,5)})),td=P8;td.displayName="DialogContent";var Uy=td;import{motion as C8}from"framer-motion";var S8=C8(Jm),k8=E(S8)(({theme:e})=>({padding:e.spacing(4,6)})),rd=k8;rd.displayName="DialogTitle";var Wy=rd;import O8 from"react";import{motion as RT}from"framer-motion";var R8=RT(Xm),ET=R8;ET.displayName="Modal";var k_=E(dh)({padding:0}),od=k_;od.displayName="ModalDialog";var E8=E(RT(uh))(({theme:e})=>({top:e.spacing(3),right:e.spacing(6)})),Gy=E8;Gy.displayName="ModalClose";var I8=RT(mh),IT=I8;IT.displayName="ModalOverflow";function OT(e){let a=e,{title:t,children:r,titleStartDecorator:o}=a,n=he(a,["title","children","titleStartDecorator"]);return xe(k_,Q(z({},n),{children:[O(Gy,{}),xe(Wy,{children:[o,t]}),O(Uy,{children:r})]}))}OT.displayName="ModalFrame";var D8=E(od,{name:"Dialog",slot:"Root"})({padding:0}),DT=O8.forwardRef((e,t)=>{let s=e,{title:r,children:o,actions:n,fullscreen:a}=s,i=he(s,["title","children","actions","fullscreen"]);return xe(D8,Q(z({layout:a?"fullscreen":"center",ref:t},i),{children:[O(Wy,{children:r}),O(Uy,{children:o}),O(qn,{children:n})]}))});DT.displayName="DialogFrame";import{motion as _8}from"framer-motion";var w8=_8(qm),nd=e=>O(w8,z({},e));nd.displayName="Divider";import{motion as A8}from"framer-motion";var B8=A8(tu),_T=e=>{var n;let o=e,{children:t}=o,r=he(o,["children"]);return O(B8,Q(z({},r),{slotProps:Q(z({},r.slotProps),{content:Q(z({},(n=r.slotProps)==null?void 0:n.content),{sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}})}),children:t}))};_T.displayName="InsetDrawer";import aY,{useCallback as tg,useEffect as rw,useMemo as dd,useRef as ow,useState as rg}from"react";import{jsx as M8}from"react/jsx-runtime";var R_=ht(M8("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l4.65-4.65c.2-.2.51-.2.71 0L17 13z"}),"CloudUploadRounded");import{jsx as N8}from"react/jsx-runtime";var E_=ht(N8("path",{d:"m19.41 7.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.42M14.8 15H13v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H9.21c-.45 0-.67-.54-.35-.85l2.8-2.79c.2-.19.51-.19.71 0l2.79 2.79c.3.31.08.85-.36.85M14 9c-.55 0-1-.45-1-1V3.5L18.5 9z"}),"UploadFileRounded");import{jsx as L8}from"react/jsx-runtime";var I_=ht(L8("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded");function ad(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){t.forEach(function(n){return n()})}}function Bp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function wT(e){if(Array.isArray(e))return Bp(e)}function AT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function id(e,t){if(e){if(typeof e=="string")return Bp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bp(e,t)}}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
129
129
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wa(e){return wT(e)||AT(e)||id(e)||BT()}var cd=wo(sd());var F_=wo(sd());function NT(e){if(Array.isArray(e))return e}function LT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,a,i,s=[],l=!0,p=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(c){p=!0,n=c}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(p)throw n}}return s}}function zT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
130
130
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FT(e,t){return NT(e)||LT(e,t)||id(e,t)||zT()}var __="data-pdnd-honey-pot";function Jy(e){return e instanceof Element&&e.hasAttribute(__)}function w_(e){var t=document.elementsFromPoint(e.x,e.y),r=FT(t,2),o=r[0],n=r[1];return o?Jy(o)?n!=null?n:null:o:null}function zp(e){var t=null;return function(){if(!t){for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];var i=e.apply(this,n);t={result:i}}return t.result}}var qy=zp(function(){return navigator.userAgent.includes("Firefox")});var $i=zp(function(){var t=navigator,r=t.userAgent;return r.includes("AppleWebKit")&&!r.includes("Chrome")});var A_=wo(sd());var Ky={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function B_(e){var t=e.dragEnter;return $i()?t.hasOwnProperty(Ky.isEnteringWindow):!1}function M_(e){var t=e.dragLeave;return $i()?t.hasOwnProperty(Ky.isLeavingWindow):!1}(function(){if(typeof window>"u"||!$i())return;function t(){return{enterCount:0,isOverWindow:!1}}var r=t();function o(){r=t()}(0,A_.bindAll)(window,[{type:"dragstart",listener:function(){r.enterCount=0,r.isOverWindow=!0}},{type:"drop",listener:o},{type:"dragend",listener:o},{type:"dragenter",listener:function(a){!r.isOverWindow&&r.enterCount===0&&(a[Ky.isEnteringWindow]=!0),r.isOverWindow=!0,r.enterCount++}},{type:"dragleave",listener:function(a){r.enterCount--,r.isOverWindow&&r.enterCount===0&&(a[Ky.isLeavingWindow]=!0,r.isOverWindow=!1)}}],{capture:!0})})();function U8(e){return"nodeName"in e}function Xy(e){return U8(e)&&e.ownerDocument!==document}function N_(e){var t=e.dragLeave,r=t.type,o=t.relatedTarget;return r!=="dragleave"?!1:$i()?M_({dragLeave:t}):o==null?!0:qy()?Xy(o):o instanceof HTMLIFrameElement}function Fp(e){var t=e.onDragEnd;return[{type:"pointermove",listener:function(){var r=0;return function(){if(r<20){r++;return}t()}}()},{type:"pointerdown",listener:t}]}function ld(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var W8=function(t){var r=[],o=null,n=function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];r=s,!o&&(o=requestAnimationFrame(function(){o=null,t.apply(void 0,r)}))};return n.cancel=function(){o&&(cancelAnimationFrame(o),o=null)},n},L_=W8;var VT=L_(function(e){return e()}),Zy=function(){var e=null;function t(o){var n=requestAnimationFrame(function(){e=null,o()});e={frameId:n,fn:o}}function r(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:r}}();function z_(e){var t=e.source,r=e.initial,o=e.dispatchEvent,n={dropTargets:[]};function a(s){o(s),n={dropTargets:s.payload.location.current.dropTargets}}var i={start:function(l){var p=l.nativeSetDragImage,c={current:r,previous:n,initial:r};a({eventName:"onGenerateDragPreview",payload:{source:t,location:c,nativeSetDragImage:p}}),Zy.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:c}})})},dragUpdate:function(l){var p=l.current;Zy.flush(),VT.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:r,previous:n,current:p}}})},drag:function(l){var p=l.current;VT(function(){Zy.flush();var c={initial:r,previous:n,current:p};a({eventName:"onDrag",payload:{source:t,location:c}})})},drop:function(l){var p=l.current,c=l.updatedSourcePayload;Zy.flush(),VT.cancel(),a({eventName:"onDrop",payload:{source:c!=null?c:t,location:{current:p,previous:n,initial:r}}})}};return i}var jT={isActive:!1};function V_(){return!jT.isActive}function G8(e){return e.dataTransfer?e.dataTransfer.setDragImage.bind(e.dataTransfer):null}function Y8(e){var t=e.current,r=e.next;if(t.length!==r.length)return!0;for(var o=0;o<t.length;o++)if(t[o].element!==r[o].element)return!0;return!1}function J8(e){var t=e.event,r=e.dragType,o=e.getDropTargetsOver,n=e.dispatchEvent;if(!V_())return;var a=q8({event:t,dragType:r,getDropTargetsOver:o});jT.isActive=!0;var i={current:a};$T({event:t,current:a.dropTargets});var s=z_({source:r.payload,dispatchEvent:n,initial:a});function l(f){var y=Y8({current:i.current.dropTargets,next:f.dropTargets});i.current=f,y&&s.dragUpdate({current:i.current})}function p(f){var y=ld(f),h=Jy(f.target)?w_({x:y.clientX,y:y.clientY}):f.target,v=o({target:h,input:y,source:r.payload,current:i.current.dropTargets});v.length&&(f.preventDefault(),$T({event:f,current:v})),l({dropTargets:v,input:y})}function c(){i.current.dropTargets.length&&l({dropTargets:[],input:i.current.input}),s.drop({current:i.current,updatedSourcePayload:null}),u()}function u(){jT.isActive=!1,d()}var d=(0,F_.bindAll)(window,[{type:"dragover",listener:function(y){p(y),s.drag({current:i.current})}},{type:"dragenter",listener:p},{type:"dragleave",listener:function(y){N_({dragLeave:y})&&(l({input:i.current.input,dropTargets:[]}),r.startedFrom==="external"&&c())}},{type:"drop",listener:function(y){if(i.current={dropTargets:i.current.dropTargets,input:ld(y)},!i.current.dropTargets.length){c();return}y.preventDefault(),$T({event:y,current:i.current.dropTargets}),s.drop({current:i.current,updatedSourcePayload:r.type==="external"?r.getDropPayload(y):null}),u()}},{type:"dragend",listener:function(y){i.current={dropTargets:i.current.dropTargets,input:ld(y)},c()}}].concat(wa(Fp({onDragEnd:c}))),{capture:!0});s.start({nativeSetDragImage:G8(t)})}function $T(e){var t,r=e.event,o=e.current,n=(t=o[0])===null||t===void 0?void 0:t.dropEffect;n!=null&&r.dataTransfer&&(r.dataTransfer.dropEffect=n)}function q8(e){var t=e.event,r=e.dragType,o=e.getDropTargetsOver,n=ld(t);if(r.startedFrom==="external")return{input:n,dropTargets:[]};var a=o({input:n,source:r.payload,target:t.target,current:[]});return{input:n,dropTargets:a}}var HT={canStart:V_,start:J8};var UT=new Map;function K8(e){var t=e.typeKey,r=e.mount,o=UT.get(t);if(o)return o.usageCount++,o;var n={typeKey:t,unmount:r(),usageCount:1};return UT.set(t,n),n}function $_(e){var t=K8(e);return function(){t.usageCount--,!(t.usageCount>0)&&(t.unmount(),UT.delete(e.typeKey))}}function ji(e){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}function WT(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(ji(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GT(e){var t=WT(e,"string");return ji(t)=="symbol"?t:t+""}function pd(e,t,r){return t=GT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j_(e,t){var r=t.attribute,o=t.value;return e.setAttribute(r,o),function(){return e.removeAttribute(r)}}function H_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H_(Object(r),!0).forEach(function(o){pd(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H_(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function YT(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=X8(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
131
131
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return a=p.done,p},e:function(p){i=!0,s=p},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function X8(e,t){if(e){if(typeof e=="string")return U_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U_(e,t)}}function U_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function JT(e){return e.slice(0).reverse()}function W_(e){var t=e.typeKey,r=e.defaultDropEffect,o=new WeakMap,n="data-drop-target-for-".concat(t),a="[".concat(n,"]");function i(f){return o.set(f.element,f),function(){return o.delete(f.element)}}function s(f){if(0)var y;return ad(j_(f.element,{attribute:n,value:"true"}),i(f))}function l(f){var y,h,v,b,x=f.source,g=f.target,S=f.input,P=f.result,T=P===void 0?[]:P;if(g==null)return T;if(!(g instanceof Element))return g instanceof Node?l({source:x,target:g.parentElement,input:S,result:T}):T;var C=g.closest(a);if(C==null)return T;var k=o.get(C);if(k==null)return T;var I={input:S,source:x,element:k.element};if(k.canDrop&&!k.canDrop(I))return l({source:x,target:k.element.parentElement,input:S,result:T});var D=(y=(h=k.getData)===null||h===void 0?void 0:h.call(k,I))!==null&&y!==void 0?y:{},M=(v=(b=k.getDropEffect)===null||b===void 0?void 0:b.call(k,I))!==null&&v!==void 0?v:r,B={data:D,element:k.element,dropEffect:M,isActiveDueToStickiness:!1};return l({source:x,target:k.element.parentElement,input:S,result:[].concat(wa(T),[B])})}function p(f){var y=f.eventName,h=f.payload,v=YT(h.location.current.dropTargets),b;try{for(v.s();!(b=v.n()).done;){var x,g=b.value,S=o.get(g.element),P=Hi(Hi({},h),{},{self:g});S==null||(x=S[y])===null||x===void 0||x.call(S,P)}}catch(T){v.e(T)}finally{v.f()}}var c={onGenerateDragPreview:p,onDrag:p,onDragStart:p,onDrop:p,onDropTargetChange:function(y){var h=y.payload,v=new Set(h.location.current.dropTargets.map(function(L){return L.element})),b=new Set,x=YT(h.location.previous.dropTargets),g;try{for(x.s();!(g=x.n()).done;){var S,P=g.value;b.add(P.element);var T=o.get(P.element),C=v.has(P.element),k=Hi(Hi({},h),{},{self:P});if(T==null||(S=T.onDropTargetChange)===null||S===void 0||S.call(T,k),!C){var I;T==null||(I=T.onDragLeave)===null||I===void 0||I.call(T,k)}}}catch(L){x.e(L)}finally{x.f()}var D=YT(h.location.current.dropTargets),M;try{for(D.s();!(M=D.n()).done;){var B,A,$=M.value;if(!b.has($.element)){var N=Hi(Hi({},h),{},{self:$}),_=o.get($.element);_==null||(B=_.onDropTargetChange)===null||B===void 0||B.call(_,N),_==null||(A=_.onDragEnter)===null||A===void 0||A.call(_,N)}}}catch(L){D.e(L)}finally{D.f()}}};function u(f){c[f.eventName](f)}function d(f){var y=f.source,h=f.target,v=f.input,b=f.current,x=l({source:y,target:h,input:v});if(x.length>=b.length)return x;for(var g=JT(b),S=JT(x),P=[],T=0;T<g.length;T++){var C,k=g[T],I=S[T];if(I!=null){P.push(I);continue}var D=P[T-1],M=g[T-1];if((D==null?void 0:D.element)!==(M==null?void 0:M.element))break;var B=o.get(k.element);if(!B)break;var A={input:v,source:y,element:B.element};if(B.canDrop&&!B.canDrop(A)||!((C=B.getIsSticky)!==null&&C!==void 0&&C.call(B,A)))break;P.push(Hi(Hi({},k),{},{isActiveDueToStickiness:!0}))}return JT(P)}return{dropTargetForConsumers:s,getIsOver:d,dispatchEvent:u}}function Z8(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Q8(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
132
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return a=p.done,p},e:function(p){i=!0,s=p},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Q8(e,t){if(e){if(typeof e=="string")return G_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G_(e,t)}}function G_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Y_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y_(Object(r),!0).forEach(function(o){pd(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y_(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function J_(){var e=new Set,t=null;function r(a){t&&(!a.canMonitor||a.canMonitor(t.canMonitorArgs))&&t.active.add(a)}function o(a){var i=eY({},a);return e.add(i),r(i),function(){e.delete(i),t&&t.active.delete(i)}}function n(a){var i=a.eventName,s=a.payload;if(i==="onGenerateDragPreview"){t={canMonitorArgs:{initial:s.location.initial,source:s.source},active:new Set};var l=Z8(e),p;try{for(l.s();!(p=l.n()).done;){var c=p.value;r(c)}}catch(v){l.e(v)}finally{l.f()}}if(t){for(var u=Array.from(t.active),d=0,f=u;d<f.length;d++){var y=f[d];if(t.active.has(y)){var h;(h=y[i])===null||h===void 0||h.call(y,s)}}i==="onDrop"&&(t.active.clear(),t=null)}}return{dispatchEvent:n,monitorForConsumers:o}}function q_(e){var t=e.typeKey,r=e.mount,o=e.dispatchEventToSource,n=e.onPostDispatch,a=e.defaultDropEffect,i=J_(),s=W_({typeKey:t,defaultDropEffect:a});function l(u){o==null||o(u),s.dispatchEvent(u),i.dispatchEvent(u),n==null||n(u)}function p(u){var d=u.event,f=u.dragType;HT.start({event:d,dragType:f,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}function c(){function u(){var d={canStart:HT.canStart,start:p};return r(d)}return $_({typeKey:t,mount:u})}return{registerUsage:c,dropTarget:s.dropTargetForConsumers,monitor:i.monitorForConsumers}}var Tot=zp(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),K_="pdnd:android-fallback";function X_(e){var t=e.dragEnter,r=t.type,o=t.relatedTarget;return r!=="dragenter"?!1:$i()?B_({dragEnter:t}):o==null?!0:qy()?Xy(o):o instanceof HTMLIFrameElement}var Z_="text/plain";var Q_="application/vnd.pdnd";function KT(e){var t=e.type,r=e.value;return!(t===Q_||t===Z_&&r===K_)}function tY(e){return Array.from(e.types).filter(function(t){return KT({type:t,value:e.getData(t)})})}function rY(e){return Array.from(e.items).filter(function(t){return t.kind==="file"||KT({type:t.type,value:e.getData(t.type)})})}var qT=!1,XT=q_({typeKey:"external",defaultDropEffect:"copy",mount:function(t){return(0,cd.bind)(window,{type:"dragenter",listener:function(o){if(!qT&&o.dataTransfer&&t.canStart(o)&&X_({dragEnter:o})){var n=tY(o.dataTransfer);if(n.length){var a={types:n,items:[],getStringData:function(){return null}};t.start({event:o,dragType:{type:"external",startedFrom:"external",payload:a,getDropPayload:function(s){if(!s.dataTransfer)return a;var l=rY(s.dataTransfer),p=s.dataTransfer.getData.bind(s.dataTransfer);return{types:n,items:l,getStringData:function(u){if(!n.includes(u))return null;var d=p(u);return KT({type:u,value:d})?d:null}}}}})}}}})}});function ZT(e){return XT.dropTarget(e)}function QT(e){return XT.monitor(e)}(function(){if(typeof window>"u")return;XT.registerUsage();var t={type:"idle"},r=t;function o(){r.type==="dragging"&&(qT=!1,r.cleanup(),r=t)}function n(){return(0,cd.bindAll)(window,[{type:"dragend",listener:o}].concat(wa(Fp({onDragEnd:o}))),{capture:!0})}(0,cd.bind)(window,{type:"dragstart",listener:function(){r.type==="idle"&&(qT=!0,r={type:"dragging",cleanup:n()})},options:{capture:!0}})})();function Qy(e){var t=e.source;return t.types.includes("Files")}function e0(e){var t=e.source;return t.items.filter(function(r){return r.kind==="file"}).map(function(r){return r.getAsFile()}).filter(function(r){return r!=null})}var tw=wo(sd());function ew(e){e.defaultPrevented||(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault())}var t0=null;function oY(){ud(),t0=(0,tw.bindAll)(window,[{type:"dragover",listener:ew},{type:"dragenter",listener:ew},{type:"drop",listener:function(t){t.preventDefault(),ud()}},{type:"dragend",listener:ud}].concat(wa(Fp({onDragEnd:ud}))),{capture:!1})}function ud(){var e;(e=t0)===null||e===void 0||e(),t0=null}function nY(){var e;if(((e=window.event)===null||e===void 0?void 0:e.type)==="drop"){var t;(t=window.event)===null||t===void 0||t.preventDefault()}ud()}var eg={start:oY,stop:nY};var iY=E(np)({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),sY=E(Ct,{name:"Uploader",slot:"PreviewRoot"})({}),lY=E(Du,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),pY=E(E_,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),cY=E(I_,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),uY=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],dY={"image/*":[".jpeg",".jpg",".png",".gif",".bmp",".tiff",".svg",".webp",".heic",".ico"],"audio/*":[".mp3",".wav",".flac",".aac",".ogg",".m4a",".wma",".aiff",".alac",".midi",".mp4"],"video/*":[".mp4",".avi",".mkv",".mov",".wmv",".flv",".webm",".mpeg",".3gp",".m4v"]},r0=e=>{let t=e==0?0:Math.floor(Math.log(e)/Math.log(1024)),r=e/Math.pow(1024,t),o=uY[t];return Intl.NumberFormat("en-us",{style:"unit",unit:o,unitDisplay:"narrow"}).format(r)},fY=e=>{let{files:t,uploaded:r,onDelete:o}=e;return O(sY,{gap:1,children:[...r,...t].map(n=>O(lY,{size:"sm",color:"neutral",children:xe(Ct,{direction:"row",alignItems:"center",gap:2,children:[O(pY,{}),xe(Ct,{flex:"1",children:[O(Sr,{level:"body-sm",textColor:"common.black",children:n.name}),!!n.size&&O(Sr,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary",children:r0(n.size)})]}),O(or,{onClick:()=>o==null?void 0:o(n),children:O(cY,{})})]})},n.name))})},mY=E(Ct,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),hY=E(tn,{name:"Uploader",slot:"dropZone",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:e.spacing(5),gap:e.spacing(4),cursor:"pointer",backgroundColor:e.palette.background.surface,border:r?`1px solid ${e.palette.danger.outlinedBorder}`:t==="idle"?`1px solid ${e.palette.neutral.outlinedBorder}`:`1px solid ${e.palette.primary.outlinedBorder}`})),yY=E(R_,{name:"Uploader",slot:"iconContainer",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({color:r?`rgba(${e.vars.palette.danger.mainChannel} / 0.6)`:t==="over"?`rgba(${e.palette.primary.mainChannel} / 0.6)`:e.palette.neutral.softActiveBg,width:"32px",height:"32px"})),nw=aY.memo(e=>{let{accept:t,minCount:r,maxCount:o,name:n,size:a,maxFileSize:i,maxFileTotalSize:s,onChange:l,label:p,disabled:c,onDelete:u}=e,d=ow(null),f=ow(null),[y,h]=rg(),[v,b]=rg([]),[x,g]=rg(e.uploaded||[]),[S,P]=rg("idle"),T=dd(()=>t.split(",").map(_=>_.trim()),[t]),C=dd(()=>T.flatMap(_=>["image/*","video/*","audio/*"].includes(_)?dY[_]:_),[T]),k=dd(()=>{let[_,L]=[T.filter(F=>["image/*","video/*","audio/*"].includes(F)).map(F=>{let[R]=F.split("/");return R.toLowerCase()}),T.filter(F=>!["image/*","video/*","audio/*"].includes(F)).map(F=>{let[R,q]=F.split("/");return q?q.toUpperCase():R.toUpperCase().replace(".","")})],U=[];return _.length>0&&U.push(`Any ${_.join(", ")} file`),L.length>0&&U.push(L.join(", ")),U.push(`Maximum ${r0(s)}`),o&&U.push(`Up to ${o} ${o===1?"file":"files"}`),U.join(", ")},[T,s,o]),I=dd(()=>!!y||e.error,[e.error,y]),D=dd(()=>!o||o&&[...x,...v].length!==o,[v,o,x]),M=tg(_=>{try{let L=C.map(q=>q.replace(".",""))||[],U=new RegExp(`${L.join("|")}`);if(_.forEach(q=>{let J=q.name.split(".").pop()||"";if(!U.test(J))throw new Error("Please upload acceptable file type.")}),i&&_.forEach(q=>{if(q.size>i)throw new Error(`One or more File size exceeded the maximum limit. Each file size must be ${r0(i)} or less.`)}),[...v,..._].reduce((q,J)=>q+J.size,0)>s)throw new Error("Total File size exceeded the maximum limit.");let R=[...v,..._];if(o&&[...x,...R].length>o)throw new Error("Exceeded the maximum number of files.");l==null||l({target:{name:n,value:R}}),b(R),h(void 0)}catch(L){h(L.message)}},[v,x,o,C,i,s,n,l]);rw(()=>{let _=d.current;if(!(!_||c))return ad(ZT({element:_,canDrop:Qy,onDragEnter:()=>P("over"),onDragLeave:()=>P("potential"),onDrop:async({source:L})=>{let U=await e0({source:L});M(U)}}),QT({canMonitor:Qy,onDragStart:()=>{P("potential"),eg.start()},onDrop:()=>{P("idle"),eg.stop()}}))}),rw(()=>{f.current&&r&&(v.length<r?f.current.setCustomValidity(`At least ${r} files are required.`):f.current.setCustomValidity(""))},[f,v,r]);let B=tg(_=>{let L=Array.from(_.target.files||[]);M(L)},[M]),A=tg(_=>{_ instanceof File?b(L=>(l==null||l({target:{name:n,value:L.filter(U=>U!==_)}}),L.filter(U=>U!==_))):(g(L=>L.filter(U=>U.id!==_.id)),u==null||u(_)),h(void 0)},[n,l,u]),$=tg(()=>{var _;(_=f.current)==null||_.click()},[]),N=xe(hY,{state:S,error:!!(I||y),ref:d,onClick:$,children:[O(Ct,{alignItems:"center",gap:1,children:O(yY,{state:S,error:!!(I||y)})}),O(iY,{disabled:c,required:!!r,onInvalid:_=>{r&&v.length<r&&h(`Please choose ${r} ${r===1?"file":"files"} to upload.`)},slotProps:{input:{multiple:!0,accept:C.join(","),type:"file",ref:f,role:"button",onChange:B}}})]});return xe(mY,{children:[D&&xe(Gn,{size:a,error:!!(I||y),disabled:c,required:!!r,children:[p&&O(Yn,{children:p}),N,O(Jn,{children:xe(Ct,{children:[y&&O("div",{children:y}),O("div",{children:k})]})})]}),[...x,...v].length>0&&O(fY,{files:v,uploaded:x,onDelete:A})]})});function aw(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var gY=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vY=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bY={};function og(e,t){return((t||bY).jsx?vY:gY).test(e)}var xY=/[ \t\n\f\r]/g;function o0(e){return typeof e=="object"?e.type==="text"?iw(e.value):!1:iw(e)}function iw(e){return e.replace(xY,"")===""}var Aa=class{constructor(t,r,o){this.property=t,this.normal=r,o&&(this.space=o)}};Aa.prototype.property={};Aa.prototype.normal={};Aa.prototype.space=null;function n0(e,t){let r={},o={},n=-1;for(;++n<e.length;)Object.assign(r,e[n].property),Object.assign(o,e[n].normal);return new Aa(r,o,t)}function fd(e){return e.toLowerCase()}var $r=class{constructor(t,r){this.property=t,this.attribute=r}};$r.prototype.space=null;$r.prototype.boolean=!1;$r.prototype.booleanish=!1;$r.prototype.overloadedBoolean=!1;$r.prototype.number=!1;$r.prototype.commaSeparated=!1;$r.prototype.spaceSeparated=!1;$r.prototype.commaOrSpaceSeparated=!1;$r.prototype.mustUseProperty=!1;$r.prototype.defined=!1;var md={};_n(md,{boolean:()=>Ge,booleanish:()=>Bt,commaOrSpaceSeparated:()=>co,commaSeparated:()=>Ui,number:()=>ve,overloadedBoolean:()=>a0,spaceSeparated:()=>dt});var TY=0,Ge=Ws(),Bt=Ws(),a0=Ws(),ve=Ws(),dt=Ws(),Ui=Ws(),co=Ws();function Ws(){return 2**++TY}var i0=Object.keys(md),Gs=class extends $r{constructor(t,r,o,n){let a=-1;if(super(t,r),sw(this,"space",n),typeof o=="number")for(;++a<i0.length;){let i=i0[a];sw(this,i0[a],(o&md[i])===md[i])}}};Gs.prototype.defined=!0;function sw(e,t,r){r&&(e[t]=r)}var PY={}.hasOwnProperty;function rn(e){let t={},r={},o;for(o in e.properties)if(PY.call(e.properties,o)){let n=e.properties[o],a=new Gs(o,e.transform(e.attributes||{},o),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[fd(o)]=o,r[fd(a.attribute)]=o}return new Aa(t,r,e.space)}var s0=rn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var l0=rn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ng(e,t){return t in e?e[t]:t}function ag(e,t){return ng(e,t.toLowerCase())}var p0=rn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ag,properties:{xmlns:null,xmlnsXLink:null}});var c0=rn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:dt,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:ve,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:dt,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:Bt,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null}});var lw=rn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ag,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:dt,autoFocus:Ge,autoPlay:Ge,blocking:dt,capture:null,charSet:null,checked:Ge,cite:null,className:dt,cols:ve,colSpan:null,content:null,contentEditable:Bt,controls:Ge,controlsList:dt,coords:ve|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:a0,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:dt,height:ve,hidden:Ge,high:ve,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:dt,itemRef:dt,itemScope:Ge,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ge,optimum:ve,pattern:null,ping:dt,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:dt,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:dt,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:Bt,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ge,disableRemotePlayback:Ge,prefix:null,property:null,results:ve,security:null,unselectable:null}});var pw=rn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ng,properties:{about:co,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:co,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:co,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:co,rev:co,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:co,requiredFeatures:co,requiredFonts:co,requiredFormats:co,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:co,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:co,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:co,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var CY=/^data[-\w.:]+$/i,cw=/-[a-z]/g,SY=/[A-Z]/g;function u0(e,t){let r=fd(t),o=t,n=$r;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&CY.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(cw,RY);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=t.slice(4);if(!cw.test(a)){let i=a.replace(SY,kY);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=Gs}return new n(o,t)}function kY(e){return"-"+e.toLowerCase()}function RY(e){return e.charAt(1).toUpperCase()}var d0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var uw=n0([l0,s0,p0,c0,lw],"html"),ig=n0([l0,s0,p0,c0,pw],"svg");function dw(e){return e.join(" ").trim()}var f0=wo(bw(),1),xw=f0.default.default||f0.default;var sg=Tw("end"),Vp=Tw("start");function Tw(e){return t;function t(r){let o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function m0(e){let t=Vp(e),r=sg(e);if(t&&r)return{start:t,end:r}}function Wi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pw(e.position):"start"in e||"end"in e?Pw(e):"line"in e||"column"in e?h0(e):""}function h0(e){return Cw(e&&e.line)+":"+Cw(e&&e.column)}function Pw(e){return h0(e&&e.start)+"-"+h0(e&&e.end)}function Cw(e){return e&&typeof e=="number"?e:1}var $t=class extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let n="",a={},i=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a=z({},r)),typeof t=="string"?n=t:!a.cause&&t&&(i=!0,n=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){let l=o.indexOf(":");l===-1?a.ruleId=o:(a.source=o.slice(0,l),a.ruleId=o.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){let l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=s?s.line:void 0,this.name=Wi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}};$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;var y0={}.hasOwnProperty,VY=new Map,$Y=/[A-Z]/g,jY=/-([a-z])/g,HY=new Set(["table","tbody","thead","tfoot","tr"]),UY=new Set(["td","th"]),Sw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function g0(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let r=t.filePath||void 0,o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=ZY(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=XY(r,t.jsx,t.jsxs)}let n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ig:uw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kw(n,e,void 0);return a&&typeof a!="string"?a:n.create(e,n.Fragment,{children:a||void 0},void 0)}function kw(e,t,r){if(t.type==="element")return WY(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return GY(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return JY(e,t,r);if(t.type==="mdxjsEsm")return YY(e,t);if(t.type==="root")return qY(e,t,r);if(t.type==="text")return KY(e,t)}function WY(e,t,r){let o=e.schema,n=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=Ew(e,t.tagName,!1),i=QY(e,t),s=b0(e,t);return HY.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!o0(l):!0})),Rw(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function GY(e,t){if(t.data&&t.data.estree&&e.evaluater){let o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}yd(e,t.position)}function YY(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);yd(e,t.position)}function JY(e,t,r){let o=e.schema,n=o;t.name==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=t.name===null?e.Fragment:Ew(e,t.name,!0),i=eJ(e,t),s=b0(e,t);return Rw(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function qY(e,t,r){let o={};return v0(o,b0(e,t)),e.create(t,e.Fragment,o,r)}function KY(e,t){return t.value}function Rw(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function v0(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function XY(e,t,r){return o;function o(n,a,i,s){let p=Array.isArray(i.children)?r:t;return s?p(a,i,s):p(a,i)}}function ZY(e,t){return r;function r(o,n,a,i){let s=Array.isArray(a.children),l=Vp(o);return t(n,a,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function QY(e,t){let r={},o,n;for(n in t.properties)if(n!=="children"&&y0.call(t.properties,n)){let a=tJ(e,n,t.properties[n]);if(a){let[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&UY.has(t.tagName)?o=s:r[i]=s}}if(o){let a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function eJ(e,t){let r={};for(let o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){let a=o.data.estree.body[0];a.type;let i=a.expression;i.type;let s=i.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else yd(e,t.position);else{let n=o.name,a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){let s=o.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else yd(e,t.position);else a=o.value===null?!0:o.value;r[n]=a}return r}function b0(e,t){let r=[],o=-1,n=e.passKeys?new Map:VY;for(;++o<t.children.length;){let a=t.children[o],i;if(e.passKeys){let l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){let p=n.get(l)||0;i=l+"-"+p,n.set(l,p+1)}}let s=kw(e,a,i);s!==void 0&&r.push(s)}return r}function tJ(e,t,r){let o=u0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?aw(r):dw(r)),o.property==="style"){let n=typeof r=="object"?r:rJ(e,String(r));return e.stylePropertyNameCase==="css"&&(n=oJ(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&o.space?d0[o.property]||o.property:o.attribute,r]}}function rJ(e,t){let r={};try{xw(t,o)}catch(n){if(!e.ignoreInvalidStyle){let a=n,i=new $t("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Sw+"#cannot-parse-style-attribute",i}}return r;function o(n,a){let i=n;i.slice(0,2)!=="--"&&(i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),i=i.replace(jY,aJ)),r[i]=a}}function Ew(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){let n=t.split("."),a=-1,i;for(;++a<n.length;){let s=og(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}o=i}else o=og(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){let n=o.value;return y0.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(o);yd(e)}function yd(e,t){let r=new $t("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Sw+"#cannot-handle-mdx-estrees-without-createevaluater",r}function oJ(e){let t={},r;for(r in e)y0.call(e,r)&&(t[nJ(r)]=e[r]);return t}function nJ(e){let t=e.replace($Y,iJ);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function aJ(e,t){return t.toUpperCase()}function iJ(e){return"-"+e.toLowerCase()}var gd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};import{Fragment as uK,jsx as dK,jsxs as fK}from"react/jsx-runtime";var sJ={};function x0(e,t){let r=t||sJ,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ow(e,o,n)}function Ow(e,t,r){if(lJ(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Iw(e.children,t,r)}return Array.isArray(e)?Iw(e,t,r):""}function Iw(e,t,r){let o=[],n=-1;for(;++n<e.length;)o[n]=Ow(e[n],t,r);return o.join("")}function lJ(e){return!!(e&&typeof e=="object")}var Dw=document.createElement("i");function $p(e){let t="&"+e+";";Dw.innerHTML=t;let r=Dw.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function jr(e,t,r,o){let n=e.length,a=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,o.length<1e4)i=Array.from(o),i.unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a<o.length;)i=o.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Xr(e,t){return e.length>0?(jr(e,e.length,0,t),e):t}var _w={}.hasOwnProperty;function ww(e){let t={},r=-1;for(;++r<e.length;)pJ(t,e[r]);return t}function pJ(e,t){let r;for(r in t){let n=(_w.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r],i;if(a)for(i in a){_w.call(n,i)||(n[i]=[]);let s=a[i];cJ(n[i],Array.isArray(s)?s:s?[s]:[])}}}function cJ(e,t){let r=-1,o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);jr(e,0,0,o)}function lg(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function Ba(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ro=Gi(/[A-Za-z]/),dr=Gi(/[\dA-Za-z]/),Aw=Gi(/[#-'*+\--9=?A-Z^-~]/);function vd(e){return e!==null&&(e<32||e===127)}var bd=Gi(/\d/),Bw=Gi(/[\dA-Fa-f]/),Mw=Gi(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function jt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}var Nw=Gi(new RegExp("\\p{P}|\\p{S}","u")),Lw=Gi(/\s/);function Gi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function on(e){let t=[],r=-1,o=0,n=0;for(;++r<e.length;){let a=e.charCodeAt(r),i="";if(a===37&&dr(e.charCodeAt(r+1))&&dr(e.charCodeAt(r+2)))n=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){let s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),n=1):i="\uFFFD"}else i=String.fromCharCode(a);i&&(t.push(e.slice(o,r),encodeURIComponent(i)),o=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(o)}function Xe(e,t,r,o){let n=o?o-1:Number.POSITIVE_INFINITY,a=0;return i;function i(l){return Ye(l)?(e.enter(r),s(l)):t(l)}function s(l){return Ye(l)&&a++<n?(e.consume(l),s):(e.exit(r),t(l))}}var zw={tokenize:uJ};function uJ(e){let t=e.attempt(this.parser.constructs.contentInitial,o,n),r;return t;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Xe(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),a(s)}function a(s){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Me(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}var Vw={tokenize:dJ},Fw={tokenize:fJ};function dJ(e){let t=this,r=[],o=0,n,a,i;return s;function s(g){if(o<r.length){let S=r[o];return t.containerState=S[1],e.attempt(S[0].continuation,l,p)(g)}return p(g)}function l(g){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&x();let S=t.events.length,P=S,T;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){T=t.events[P][1].end;break}b(o);let C=S;for(;C<t.events.length;)t.events[C][1].end=Object.assign({},T),C++;return jr(t.events,P+1,0,t.events.slice(S)),t.events.length=C,p(g)}return s(g)}function p(g){if(o===r.length){if(!n)return d(g);if(n.currentConstruct&&n.currentConstruct.concrete)return y(g);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fw,c,u)(g)}function c(g){return n&&x(),b(o),d(g)}function u(g){return t.parser.lazy[t.now().line]=o!==r.length,i=t.now().offset,y(g)}function d(g){return t.containerState={},e.attempt(Fw,f,y)(g)}function f(g){return o++,r.push([t.currentConstruct,t.containerState]),d(g)}function y(g){if(g===null){n&&x(),b(0),e.consume(g);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:n}),h(g)}function h(g){if(g===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(g);return}return Me(g)?(e.consume(g),v(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(g),h)}function v(g,S){let P=t.sliceStream(g);if(S&&P.push(null),g.previous=a,a&&(a.next=g),a=g,n.defineSkip(g.start),n.write(P),t.parser.lazy[g.start.line]){let T=n.events.length;for(;T--;)if(n.events[T][1].start.offset<i&&(!n.events[T][1].end||n.events[T][1].end.offset>i))return;let C=t.events.length,k=C,I,D;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){D=t.events[k][1].end;break}I=!0}for(b(o),T=C;T<t.events.length;)t.events[T][1].end=Object.assign({},D),T++;jr(t.events,k+1,0,t.events.slice(C)),t.events.length=T}}function b(g){let S=r.length;for(;S-- >g;){let P=r[S];t.containerState=P[1],P[0].exit.call(t,e)}r.length=g}function x(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}function fJ(e,t,r){return Xe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function T0(e){if(e===null||jt(e)||Lw(e))return 1;if(Nw(e))return 2}function jp(e,t,r){let o=[],n=-1;for(;++n<e.length;){let a=e[n].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}var xd={name:"attention",tokenize:hJ,resolveAll:mJ};function mJ(e,t){let r=-1,o,n,a,i,s,l,p,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let u=Object.assign({},e[o][1].end),d=Object.assign({},e[r][1].start);$w(u,-l),$w(d,l),i={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[o][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[r][1].start)},n={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},s.end)},e[o][1].end=Object.assign({},i.start),e[r][1].start=Object.assign({},s.end),p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Xr(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=Xr(p,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",a,t]]),p=Xr(p,jp(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=Xr(p,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=Xr(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,jr(e,o-1,r-o+3,p),r=o+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function hJ(e,t){let r=this.parser.constructs.attentionMarkers.null,o=this.previous,n=T0(o),a;return i;function i(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;let p=e.exit("attentionSequence"),c=T0(l),u=!c||c===2&&n||r.includes(l),d=!n||n===2&&c||r.includes(o);return p._open=!!(a===42?u:u&&(n||!d)),p._close=!!(a===42?d:d&&(c||!u)),t(l)}}function $w(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var P0={name:"autolink",tokenize:yJ};function yJ(e,t,r){let o=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Ro(f)?(e.consume(f),i):p(f)}function i(f){return f===43||f===45||f===46||dr(f)?(o=1,s(f)):p(f)}function s(f){return f===58?(e.consume(f),o=0,l):(f===43||f===45||f===46||dr(f))&&o++<32?(e.consume(f),s):(o=0,p(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||vd(f)?r(f):(e.consume(f),l)}function p(f){return f===64?(e.consume(f),c):Aw(f)?(e.consume(f),p):r(f)}function c(f){return dr(f)?u(f):r(f)}function u(f){return f===46?(e.consume(f),o=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||dr(f))&&o++<63){let y=f===45?d:u;return e.consume(f),y}return r(f)}}var Yi={tokenize:gJ,partial:!0};function gJ(e,t,r){return o;function o(a){return Ye(a)?Xe(e,n,"linePrefix")(a):n(a)}function n(a){return a===null||Me(a)?t(a):r(a)}}var pg={name:"blockQuote",tokenize:vJ,continuation:{tokenize:bJ},exit:xJ};function vJ(e,t,r){let o=this;return n;function n(i){if(i===62){let s=o.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return r(i)}function a(i){return Ye(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function bJ(e,t,r){let o=this;return n;function n(i){return Ye(i)?Xe(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(pg,t,r)(i)}}function xJ(e){e.exit("blockQuote")}var cg={name:"characterEscape",tokenize:TJ};function TJ(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),n}function n(a){return Mw(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}var ug={name:"characterReference",tokenize:PJ};function PJ(e,t,r){let o=this,n=0,a,i;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,i=dr,c(u))}function p(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=Bw,c):(e.enter("characterReferenceValue"),a=7,i=bd,c(u))}function c(u){if(u===59&&n){let d=e.exit("characterReferenceValue");return i===dr&&!$p(o.sliceSerialize(d))?r(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(u)&&n++<a?(e.consume(u),c):r(u)}}var jw={tokenize:SJ,partial:!0},dg={name:"codeFenced",tokenize:CJ,concrete:!0};function CJ(e,t,r){let o=this,n={tokenize:P,partial:!0},a=0,i=0,s;return l;function l(T){return p(T)}function p(T){let C=o.events[o.events.length-1];return a=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(T)}function c(T){return T===s?(i++,e.consume(T),c):i<3?r(T):(e.exit("codeFencedFenceSequence"),Ye(T)?Xe(e,u,"whitespace")(T):u(T))}function u(T){return T===null||Me(T)?(e.exit("codeFencedFence"),o.interrupt?t(T):e.check(jw,h,S)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(T))}function d(T){return T===null||Me(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(T)):Ye(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xe(e,f,"whitespace")(T)):T===96&&T===s?r(T):(e.consume(T),d)}function f(T){return T===null||Me(T)?u(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===null||Me(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(T)):T===96&&T===s?r(T):(e.consume(T),y)}function h(T){return e.attempt(n,S,v)(T)}function v(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),b}function b(T){return a>0&&Ye(T)?Xe(e,x,"linePrefix",a+1)(T):x(T)}function x(T){return T===null||Me(T)?e.check(jw,h,S)(T):(e.enter("codeFlowValue"),g(T))}function g(T){return T===null||Me(T)?(e.exit("codeFlowValue"),x(T)):(e.consume(T),g)}function S(T){return e.exit("codeFenced"),t(T)}function P(T,C,k){let I=0;return D;function D(N){return T.enter("lineEnding"),T.consume(N),T.exit("lineEnding"),M}function M(N){return T.enter("codeFencedFence"),Ye(N)?Xe(T,B,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):B(N)}function B(N){return N===s?(T.enter("codeFencedFenceSequence"),A(N)):k(N)}function A(N){return N===s?(I++,T.consume(N),A):I>=i?(T.exit("codeFencedFenceSequence"),Ye(N)?Xe(T,$,"whitespace")(N):$(N)):k(N)}function $(N){return N===null||Me(N)?(T.exit("codeFencedFence"),C(N)):k(N)}}}function SJ(e,t,r){let o=this;return n;function n(i){return i===null?r(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}var Td={name:"codeIndented",tokenize:RJ},kJ={tokenize:EJ,partial:!0};function RJ(e,t,r){let o=this;return n;function n(p){return e.enter("codeIndented"),Xe(e,a,"linePrefix",5)(p)}function a(p){let c=o.events[o.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(p):r(p)}function i(p){return p===null?l(p):Me(p)?e.attempt(kJ,i,l)(p):(e.enter("codeFlowValue"),s(p))}function s(p){return p===null||Me(p)?(e.exit("codeFlowValue"),i(p)):(e.consume(p),s)}function l(p){return e.exit("codeIndented"),t(p)}}function EJ(e,t,r){let o=this;return n;function n(i){return o.parser.lazy[o.now().line]?r(i):Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):Xe(e,a,"linePrefix",5)(i)}function a(i){let s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):Me(i)?n(i):r(i)}}var C0={name:"codeText",tokenize:DJ,resolve:IJ,previous:OJ};function IJ(e){let t=e.length-4,r=3,o,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)n===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(n=o):(o===t||e[o][1].type==="lineEnding")&&(e[n][1].type="codeTextData",o!==n+2&&(e[n][1].end=e[o-1][1].end,e.splice(n+2,o-n-2),t-=o-n-2,o=n+2),n=void 0);return e}function OJ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DJ(e,t,r){let o=this,n=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),n++,l):(e.exit("codeTextSequence"),p(d))}function p(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),p):d===96?(i=e.enter("codeTextSequence"),a=0,u(d)):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Me(d)?(e.exit("codeTextData"),p(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),a++,u):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}var fg=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let o=r==null?Number.POSITIVE_INFINITY:r;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){let n=r||0;this.setCursor(Math.trunc(t));let a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return o&&Pd(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Pd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Pd(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Pd(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Pd(this.left,r.reverse())}}};function Pd(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function mg(e){let t={},r=-1,o,n,a,i,s,l,p,c=new fg(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(o=c.get(r),r&&o[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=o[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,_J(c,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,n=void 0;a--&&(i=c.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank");)i[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=a);n&&(o[1].end=Object.assign({},c.get(n)[1].start),s=c.slice(n,r),s.unshift(o),c.splice(n,r-n+1,s))}}return jr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!p}function _J(e,t){let r=e.get(t)[1],o=e.get(t)[2],n=t-1,a=[],i=r._tokenizer||o.parser[r.contentType](r.start),s=i.events,l=[],p={},c,u,d=-1,f=r,y=0,h=0,v=[h];for(;f;){for(;e.get(++n)[1]!==f;);a.push(n),f._tokenizer||(c=o.sliceStream(f),f.next||c.push(null),u&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),u=f,f=f.next}for(f=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(h=d+1,v.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),d=v.length;d--;){let b=s.slice(v[d],v[d+1]),x=a.pop();l.push([x,x+b.length-1]),e.splice(x,2,b)}for(l.reverse(),d=-1;++d<l.length;)p[y+l[d][0]]=y+l[d][1],y+=l[d][1]-l[d][0]-1;return p}var S0={tokenize:BJ,resolve:AJ},wJ={tokenize:MJ,partial:!0};function AJ(e){return mg(e),e}function BJ(e,t){let r;return o;function o(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?a(s):Me(s)?e.check(wJ,i,a)(s):(e.consume(s),n)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function MJ(e,t,r){let o=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Xe(e,a,"linePrefix")}function a(i){if(i===null||Me(i))return r(i);let s=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(o.parser.constructs.flow,r,t)(i)}}function hg(e,t,r,o,n,a,i,s,l){let p=l||Number.POSITIVE_INFINITY,c=0;return u;function u(b){return b===60?(e.enter(o),e.enter(n),e.enter(a),e.consume(b),e.exit(a),d):b===null||b===32||b===41||vd(b)?r(b):(e.enter(o),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function d(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(n),e.exit(o),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===62?(e.exit("chunkString"),e.exit(s),d(b)):b===null||b===60||Me(b)?r(b):(e.consume(b),b===92?y:f)}function y(b){return b===60||b===62||b===92?(e.consume(b),f):f(b)}function h(b){return!c&&(b===null||b===41||jt(b))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(o),t(b)):c<p&&b===40?(e.consume(b),c++,h):b===41?(e.consume(b),c--,h):b===null||b===32||b===40||vd(b)?r(b):(e.consume(b),b===92?v:h)}function v(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function yg(e,t,r,o,n,a){let i=this,s=0,l;return p;function p(f){return e.enter(o),e.enter(n),e.consume(f),e.exit(n),e.enter(a),c}function c(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):f===93?(e.exit(a),e.enter(n),e.consume(f),e.exit(n),e.exit(o),t):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===null||f===91||f===93||Me(f)||s++>999?(e.exit("chunkString"),c(f)):(e.consume(f),l||(l=!Ye(f)),f===92?d:u)}function d(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function gg(e,t,r,o,n,a){let i;return s;function s(d){return d===34||d===39||d===40?(e.enter(o),e.enter(n),e.consume(d),e.exit(n),i=d===40?41:d,l):r(d)}function l(d){return d===i?(e.enter(n),e.consume(d),e.exit(n),e.exit(o),t):(e.enter(a),p(d))}function p(d){return d===i?(e.exit(a),l(i)):d===null?r(d):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Xe(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===i||d===null||Me(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?u:c)}function u(d){return d===i||d===92?(e.consume(d),c):c(d)}}function Js(e,t){let r;return o;function o(n){return Me(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,o):Ye(n)?Xe(e,o,r?"linePrefix":"lineSuffix")(n):t(n)}}var k0={name:"definition",tokenize:LJ},NJ={tokenize:zJ,partial:!0};function LJ(e,t,r){let o=this,n;return a;function a(f){return e.enter("definition"),i(f)}function i(f){return yg.call(o,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return n=Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return jt(f)?Js(e,p)(f):p(f)}function p(f){return hg(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(NJ,u,u)(f)}function u(f){return Ye(f)?Xe(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Me(f)?(e.exit("definition"),o.parser.defined.push(n),t(f)):r(f)}}function zJ(e,t,r){return o;function o(s){return jt(s)?Js(e,n)(s):r(s)}function n(s){return gg(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Ye(s)?Xe(e,i,"whitespace")(s):i(s)}function i(s){return s===null||Me(s)?t(s):r(s)}}var R0={name:"hardBreakEscape",tokenize:FJ};function FJ(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),n}function n(a){return Me(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}var E0={name:"headingAtx",tokenize:$J,resolve:VJ};function VJ(e,t){let r=e.length-2,o=3,n,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},jr(e,o,r-o+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}function $J(e,t,r){let o=0;return n;function n(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&o++<6?(e.consume(c),i):c===null||jt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Me(c)?(e.exit("atxHeading"),t(c)):Ye(c)?Xe(e,s,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function p(c){return c===null||c===35||jt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),p)}}var Hw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],I0=["pre","script","style","textarea"];var O0={name:"htmlFlow",tokenize:WJ,resolveTo:UJ,concrete:!0},jJ={tokenize:YJ,partial:!0},HJ={tokenize:GJ,partial:!0};function UJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function WJ(e,t,r){let o=this,n,a,i,s,l;return p;function p(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),d):w===47?(e.consume(w),a=!0,h):w===63?(e.consume(w),n=3,o.interrupt?t:R):Ro(w)?(e.consume(w),i=String.fromCharCode(w),v):r(w)}function d(w){return w===45?(e.consume(w),n=2,f):w===91?(e.consume(w),n=5,s=0,y):Ro(w)?(e.consume(w),n=4,o.interrupt?t:R):r(w)}function f(w){return w===45?(e.consume(w),o.interrupt?t:R):r(w)}function y(w){let se="CDATA[";return w===se.charCodeAt(s++)?(e.consume(w),s===se.length?o.interrupt?t:B:y):r(w)}function h(w){return Ro(w)?(e.consume(w),i=String.fromCharCode(w),v):r(w)}function v(w){if(w===null||w===47||w===62||jt(w)){let se=w===47,ye=i.toLowerCase();return!se&&!a&&I0.includes(ye)?(n=1,o.interrupt?t(w):B(w)):Hw.includes(i.toLowerCase())?(n=6,se?(e.consume(w),b):o.interrupt?t(w):B(w)):(n=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(w):a?x(w):g(w))}return w===45||dr(w)?(e.consume(w),i+=String.fromCharCode(w),v):r(w)}function b(w){return w===62?(e.consume(w),o.interrupt?t:B):r(w)}function x(w){return Ye(w)?(e.consume(w),x):D(w)}function g(w){return w===47?(e.consume(w),D):w===58||w===95||Ro(w)?(e.consume(w),S):Ye(w)?(e.consume(w),g):D(w)}function S(w){return w===45||w===46||w===58||w===95||dr(w)?(e.consume(w),S):P(w)}function P(w){return w===61?(e.consume(w),T):Ye(w)?(e.consume(w),P):g(w)}function T(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),l=w,C):Ye(w)?(e.consume(w),T):k(w)}function C(w){return w===l?(e.consume(w),l=null,I):w===null||Me(w)?r(w):(e.consume(w),C)}function k(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||jt(w)?P(w):(e.consume(w),k)}function I(w){return w===47||w===62||Ye(w)?g(w):r(w)}function D(w){return w===62?(e.consume(w),M):r(w)}function M(w){return w===null||Me(w)?B(w):Ye(w)?(e.consume(w),M):r(w)}function B(w){return w===45&&n===2?(e.consume(w),_):w===60&&n===1?(e.consume(w),L):w===62&&n===4?(e.consume(w),q):w===63&&n===3?(e.consume(w),R):w===93&&n===5?(e.consume(w),F):Me(w)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(jJ,J,A)(w)):w===null||Me(w)?(e.exit("htmlFlowData"),A(w)):(e.consume(w),B)}function A(w){return e.check(HJ,$,J)(w)}function $(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),N}function N(w){return w===null||Me(w)?A(w):(e.enter("htmlFlowData"),B(w))}function _(w){return w===45?(e.consume(w),R):B(w)}function L(w){return w===47?(e.consume(w),i="",U):B(w)}function U(w){if(w===62){let se=i.toLowerCase();return I0.includes(se)?(e.consume(w),q):B(w)}return Ro(w)&&i.length<8?(e.consume(w),i+=String.fromCharCode(w),U):B(w)}function F(w){return w===93?(e.consume(w),R):B(w)}function R(w){return w===62?(e.consume(w),q):w===45&&n===2?(e.consume(w),R):B(w)}function q(w){return w===null||Me(w)?(e.exit("htmlFlowData"),J(w)):(e.consume(w),q)}function J(w){return e.exit("htmlFlow"),t(w)}}function GJ(e,t,r){let o=this;return n;function n(i){return Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):r(i)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}function YJ(e,t,r){return o;function o(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Yi,t,r)}}var D0={name:"htmlText",tokenize:JJ};function JJ(e,t,r){let o=this,n,a,i;return s;function s(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),l}function l(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),P):R===63?(e.consume(R),g):Ro(R)?(e.consume(R),k):r(R)}function p(R){return R===45?(e.consume(R),c):R===91?(e.consume(R),a=0,y):Ro(R)?(e.consume(R),x):r(R)}function c(R){return R===45?(e.consume(R),f):r(R)}function u(R){return R===null?r(R):R===45?(e.consume(R),d):Me(R)?(i=u,L(R)):(e.consume(R),u)}function d(R){return R===45?(e.consume(R),f):u(R)}function f(R){return R===62?_(R):R===45?d(R):u(R)}function y(R){let q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?h:y):r(R)}function h(R){return R===null?r(R):R===93?(e.consume(R),v):Me(R)?(i=h,L(R)):(e.consume(R),h)}function v(R){return R===93?(e.consume(R),b):h(R)}function b(R){return R===62?_(R):R===93?(e.consume(R),b):h(R)}function x(R){return R===null||R===62?_(R):Me(R)?(i=x,L(R)):(e.consume(R),x)}function g(R){return R===null?r(R):R===63?(e.consume(R),S):Me(R)?(i=g,L(R)):(e.consume(R),g)}function S(R){return R===62?_(R):g(R)}function P(R){return Ro(R)?(e.consume(R),T):r(R)}function T(R){return R===45||dr(R)?(e.consume(R),T):C(R)}function C(R){return Me(R)?(i=C,L(R)):Ye(R)?(e.consume(R),C):_(R)}function k(R){return R===45||dr(R)?(e.consume(R),k):R===47||R===62||jt(R)?I(R):r(R)}function I(R){return R===47?(e.consume(R),_):R===58||R===95||Ro(R)?(e.consume(R),D):Me(R)?(i=I,L(R)):Ye(R)?(e.consume(R),I):_(R)}function D(R){return R===45||R===46||R===58||R===95||dr(R)?(e.consume(R),D):M(R)}function M(R){return R===61?(e.consume(R),B):Me(R)?(i=M,L(R)):Ye(R)?(e.consume(R),M):I(R)}function B(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),n=R,A):Me(R)?(i=B,L(R)):Ye(R)?(e.consume(R),B):(e.consume(R),$)}function A(R){return R===n?(e.consume(R),n=void 0,N):R===null?r(R):Me(R)?(i=A,L(R)):(e.consume(R),A)}function $(R){return R===null||R===34||R===39||R===60||R===61||R===96?r(R):R===47||R===62||jt(R)?I(R):(e.consume(R),$)}function N(R){return R===47||R===62||jt(R)?I(R):r(R)}function _(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):r(R)}function L(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),U}function U(R){return Ye(R)?Xe(e,F,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):F(R)}function F(R){return e.enter("htmlTextData"),i(R)}}var qs={name:"labelEnd",tokenize:eq,resolveTo:QJ,resolveAll:ZJ},qJ={tokenize:tq},KJ={tokenize:rq},XJ={tokenize:oq};function ZJ(e){let t=-1;for(;++t<e.length;){let r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function QJ(e,t){let r=e.length,o=0,n,a,i,s;for(;r--;)if(n=e[r][1],a){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(a=r,n.type!=="labelLink")){o=2;break}}else n.type==="labelEnd"&&(i=r);let l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},p={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[i][1].end)},c={type:"labelText",start:Object.assign({},e[a+o+2][1].end),end:Object.assign({},e[i-2][1].start)};return s=[["enter",l,t],["enter",p,t]],s=Xr(s,e.slice(a+1,a+o+3)),s=Xr(s,[["enter",c,t]]),s=Xr(s,jp(t.parser.constructs.insideSpan.null,e.slice(a+o+4,i-3),t)),s=Xr(s,[["exit",c,t],e[i-2],e[i-1],["exit",p,t]]),s=Xr(s,e.slice(i+1)),s=Xr(s,[["exit",l,t]]),jr(e,a,e.length,s),e}function eq(e,t,r){let o=this,n=o.events.length,a,i;for(;n--;)if((o.events[n][1].type==="labelImage"||o.events[n][1].type==="labelLink")&&!o.events[n][1]._balanced){a=o.events[n][1];break}return s;function s(d){return a?a._inactive?u(d):(i=o.parser.defined.includes(Ba(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(qJ,c,i?c:u)(d):d===91?e.attempt(KJ,c,i?p:u)(d):i?c(d):u(d)}function p(d){return e.attempt(XJ,c,u)(d)}function c(d){return t(d)}function u(d){return a._balanced=!0,r(d)}}function tq(e,t,r){return o;function o(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),n}function n(u){return jt(u)?Js(e,a)(u):a(u)}function a(u){return u===41?c(u):hg(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return jt(u)?Js(e,l)(u):c(u)}function s(u){return r(u)}function l(u){return u===34||u===39||u===40?gg(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function p(u){return jt(u)?Js(e,c)(u):c(u)}function c(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):r(u)}}function rq(e,t,r){let o=this;return n;function n(s){return yg.call(o,e,a,i,"reference","referenceMarker","referenceString")(s)}function a(s){return o.parser.defined.includes(Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function i(s){return r(s)}}function oq(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),n}function n(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}var _0={name:"labelStartImage",tokenize:nq,resolveAll:qs.resolveAll};function nq(e,t,r){let o=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):r(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(s):t(s)}}var w0={name:"labelStartLink",tokenize:aq,resolveAll:qs.resolveAll};function aq(e,t,r){let o=this;return n;function n(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(i):t(i)}}var Cd={name:"lineEnding",tokenize:iq};function iq(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Xe(e,t,"linePrefix")}}var Ks={name:"thematicBreak",tokenize:sq};function sq(e,t,r){let o=0,n;return a;function a(p){return e.enter("thematicBreak"),i(p)}function i(p){return n=p,s(p)}function s(p){return p===n?(e.enter("thematicBreakSequence"),l(p)):o>=3&&(p===null||Me(p))?(e.exit("thematicBreak"),t(p)):r(p)}function l(p){return p===n?(e.consume(p),o++,l):(e.exit("thematicBreakSequence"),Ye(p)?Xe(e,s,"whitespace")(p):s(p))}}var Hr={name:"list",tokenize:cq,continuation:{tokenize:uq},exit:fq},lq={tokenize:mq,partial:!0},pq={tokenize:dq,partial:!0};function cq(e,t,r){let o=this,n=o.events[o.events.length-1],a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(f){let y=o.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!o.containerState.marker||f===o.containerState.marker:bd(f)){if(o.containerState.type||(o.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ks,r,p)(f):p(f);if(!o.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return bd(f)&&++i<10?(e.consume(f),l):(!o.interrupt||i<2)&&(o.containerState.marker?f===o.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):r(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||f,e.check(Yi,o.interrupt?r:c,e.attempt(lq,d,u))}function c(f){return o.containerState.initialBlankLine=!0,a++,d(f)}function u(f){return Ye(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):r(f)}function d(f){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function uq(e,t,r){let o=this;return o.containerState._closeFlow=void 0,e.check(Yi,n,a);function n(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Xe(e,t,"listItemIndent",o.containerState.size+1)(s)}function a(s){return o.containerState.furtherBlankLines||!Ye(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,i(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(pq,t,i)(s))}function i(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Xe(e,e.attempt(Hr,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function dq(e,t,r){let o=this;return Xe(e,n,"listItemIndent",o.containerState.size+1);function n(a){let i=o.events[o.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===o.containerState.size?t(a):r(a)}}function fq(e){e.exit(this.containerState.type)}function mq(e,t,r){let o=this;return Xe(e,n,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(a){let i=o.events[o.events.length-1];return!Ye(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}var vg={name:"setextUnderline",tokenize:yq,resolveTo:hq};function hq(e,t){let r=e.length,o,n,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);let i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",i,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end=Object.assign({},e[a][1].end)):e[o][1]=i,e.push(["exit",i,t]),e}function yq(e,t,r){let o=this,n;return a;function a(p){let c=o.events.length,u;for(;c--;)if(o.events[c][1].type!=="lineEnding"&&o.events[c][1].type!=="linePrefix"&&o.events[c][1].type!=="content"){u=o.events[c][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||u)?(e.enter("setextHeadingLine"),n=p,i(p)):r(p)}function i(p){return e.enter("setextHeadingLineSequence"),s(p)}function s(p){return p===n?(e.consume(p),s):(e.exit("setextHeadingLineSequence"),Ye(p)?Xe(e,l,"lineSuffix")(p):l(p))}function l(p){return p===null||Me(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}var Uw={tokenize:gq};function gq(e){let t=this,r=e.attempt(Yi,o,e.attempt(this.parser.constructs.flowInitial,n,Xe(e,e.attempt(this.parser.constructs.flow,n,e.attempt(S0,n)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var Ww={resolveAll:qw()},Gw=Jw("string"),Yw=Jw("text");function Jw(e){return{tokenize:t,resolveAll:qw(e==="text"?vq:void 0)};function t(r){let o=this,n=this.parser.constructs[e],a=r.attempt(n,i,s);return i;function i(c){return p(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){if(c===null)return!0;let u=n[c],d=-1;if(u)for(;++d<u.length;){let f=u[d];if(!f.previous||f.previous.call(o,o.previous))return!0}return!1}}}function qw(e){return t;function t(r,o){let n=-1,a;for(;++n<=r.length;)a===void 0?r[n]&&r[n][1].type==="data"&&(a=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==a+2&&(r[a][1].end=r[n-1][1].end,r.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(r,o):r}}function vq(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let o=e[r-1][1],n=t.sliceStream(o),a=n.length,i=-1,s=0,l;for(;a--;){let p=n[a];if(typeof p=="string"){for(i=p.length;p.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(p===-2)l=!0,s++;else if(p!==-1){a++;break}}if(s){let p={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-s,offset:o.end.offset-s,_index:o.start._index+a,_bufferIndex:a?i:o.start._bufferIndex+i},end:Object.assign({},o.end)};o.end=Object.assign({},p.start),o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}function Kw(e,t,r){let o=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),n={},a=[],i=[],s=[],l=!0,p={consume:S,enter:P,exit:T,attempt:I(C),check:I(k),interrupt:I(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:y,now:v,defineSkip:b,write:f},u=t.tokenize.call(c,p),d;return t.resolveAll&&a.push(t),c;function f(A){return i=Xr(i,A),x(),i[i.length-1]!==null?[]:(D(t,0),c.events=jp(a,c.events,c),c.events)}function y(A,$){return xq(h(A),$)}function h(A){return bq(i,A)}function v(){let{line:A,column:$,offset:N,_index:_,_bufferIndex:L}=o;return{line:A,column:$,offset:N,_index:_,_bufferIndex:L}}function b(A){n[A.line]=A.column,B()}function x(){let A;for(;o._index<i.length;){let $=i[o._index];if(typeof $=="string")for(A=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===A&&o._bufferIndex<$.length;)g($.charCodeAt(o._bufferIndex));else g($)}}function g(A){l=void 0,d=A,u=u(A)}function S(A){Me(A)?(o.line++,o.column=1,o.offset+=A===-3?2:1,B()):A!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===i[o._index].length&&(o._bufferIndex=-1,o._index++)),c.previous=A,l=!0}function P(A,$){let N=$||{};return N.type=A,N.start=v(),c.events.push(["enter",N,c]),s.push(N),N}function T(A){let $=s.pop();return $.end=v(),c.events.push(["exit",$,c]),$}function C(A,$){D(A,$.from)}function k(A,$){$.restore()}function I(A,$){return N;function N(_,L,U){let F,R,q,J;return Array.isArray(_)?se(_):"tokenize"in _?se([_]):w(_);function w(W){return me;function me(fe){let Re=fe!==null&&W[fe],Te=fe!==null&&W.null,Fe=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return se(Fe)(fe)}}function se(W){return F=W,R=0,W.length===0?U:ye(W[R])}function ye(W){return me;function me(fe){return J=M(),q=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?ne(fe):W.tokenize.call($?Object.assign(Object.create(c),$):c,p,we,ne)(fe)}}function we(W){return l=!0,A(q,J),L}function ne(W){return l=!0,J.restore(),++R<F.length?ye(F[R]):U}}}function D(A,$){A.resolveAll&&!a.includes(A)&&a.push(A),A.resolve&&jr(c.events,$,c.events.length-$,A.resolve(c.events.slice($),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function M(){let A=v(),$=c.previous,N=c.currentConstruct,_=c.events.length,L=Array.from(s);return{restore:U,from:_};function U(){o=A,c.previous=$,c.currentConstruct=N,c.events.length=_,s=L,B()}}function B(){o.line in n&&o.column<2&&(o.column=n[o.line],o.offset+=n[o.line]-1)}}function bq(e,t){let r=t.start._index,o=t.start._bufferIndex,n=t.end._index,a=t.end._bufferIndex,i;if(r===n)i=[e[r].slice(o,a)];else{if(i=e.slice(r,n),o>-1){let s=i[0];typeof s=="string"?i[0]=s.slice(o):i.shift()}a>0&&i.push(e[n].slice(0,a))}return i}function xq(e,t){let r=-1,o=[],n;for(;++r<e.length;){let a=e[r],i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
|
|
132
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return a=p.done,p},e:function(p){i=!0,s=p},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}}}function Q8(e,t){if(e){if(typeof e=="string")return G_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G_(e,t)}}function G_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Y_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function eY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y_(Object(r),!0).forEach(function(o){pd(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y_(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function J_(){var e=new Set,t=null;function r(a){t&&(!a.canMonitor||a.canMonitor(t.canMonitorArgs))&&t.active.add(a)}function o(a){var i=eY({},a);return e.add(i),r(i),function(){e.delete(i),t&&t.active.delete(i)}}function n(a){var i=a.eventName,s=a.payload;if(i==="onGenerateDragPreview"){t={canMonitorArgs:{initial:s.location.initial,source:s.source},active:new Set};var l=Z8(e),p;try{for(l.s();!(p=l.n()).done;){var c=p.value;r(c)}}catch(v){l.e(v)}finally{l.f()}}if(t){for(var u=Array.from(t.active),d=0,f=u;d<f.length;d++){var y=f[d];if(t.active.has(y)){var h;(h=y[i])===null||h===void 0||h.call(y,s)}}i==="onDrop"&&(t.active.clear(),t=null)}}return{dispatchEvent:n,monitorForConsumers:o}}function q_(e){var t=e.typeKey,r=e.mount,o=e.dispatchEventToSource,n=e.onPostDispatch,a=e.defaultDropEffect,i=J_(),s=W_({typeKey:t,defaultDropEffect:a});function l(u){o==null||o(u),s.dispatchEvent(u),i.dispatchEvent(u),n==null||n(u)}function p(u){var d=u.event,f=u.dragType;HT.start({event:d,dragType:f,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}function c(){function u(){var d={canStart:HT.canStart,start:p};return r(d)}return $_({typeKey:t,mount:u})}return{registerUsage:c,dropTarget:s.dropTargetForConsumers,monitor:i.monitorForConsumers}}var Pot=zp(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),K_="pdnd:android-fallback";function X_(e){var t=e.dragEnter,r=t.type,o=t.relatedTarget;return r!=="dragenter"?!1:$i()?B_({dragEnter:t}):o==null?!0:qy()?Xy(o):o instanceof HTMLIFrameElement}var Z_="text/plain";var Q_="application/vnd.pdnd";function KT(e){var t=e.type,r=e.value;return!(t===Q_||t===Z_&&r===K_)}function tY(e){return Array.from(e.types).filter(function(t){return KT({type:t,value:e.getData(t)})})}function rY(e){return Array.from(e.items).filter(function(t){return t.kind==="file"||KT({type:t.type,value:e.getData(t.type)})})}var qT=!1,XT=q_({typeKey:"external",defaultDropEffect:"copy",mount:function(t){return(0,cd.bind)(window,{type:"dragenter",listener:function(o){if(!qT&&o.dataTransfer&&t.canStart(o)&&X_({dragEnter:o})){var n=tY(o.dataTransfer);if(n.length){var a={types:n,items:[],getStringData:function(){return null}};t.start({event:o,dragType:{type:"external",startedFrom:"external",payload:a,getDropPayload:function(s){if(!s.dataTransfer)return a;var l=rY(s.dataTransfer),p=s.dataTransfer.getData.bind(s.dataTransfer);return{types:n,items:l,getStringData:function(u){if(!n.includes(u))return null;var d=p(u);return KT({type:u,value:d})?d:null}}}}})}}}})}});function ZT(e){return XT.dropTarget(e)}function QT(e){return XT.monitor(e)}(function(){if(typeof window>"u")return;XT.registerUsage();var t={type:"idle"},r=t;function o(){r.type==="dragging"&&(qT=!1,r.cleanup(),r=t)}function n(){return(0,cd.bindAll)(window,[{type:"dragend",listener:o}].concat(wa(Fp({onDragEnd:o}))),{capture:!0})}(0,cd.bind)(window,{type:"dragstart",listener:function(){r.type==="idle"&&(qT=!0,r={type:"dragging",cleanup:n()})},options:{capture:!0}})})();function Qy(e){var t=e.source;return t.types.includes("Files")}function e0(e){var t=e.source;return t.items.filter(function(r){return r.kind==="file"}).map(function(r){return r.getAsFile()}).filter(function(r){return r!=null})}var tw=wo(sd());function ew(e){e.defaultPrevented||(e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault())}var t0=null;function oY(){ud(),t0=(0,tw.bindAll)(window,[{type:"dragover",listener:ew},{type:"dragenter",listener:ew},{type:"drop",listener:function(t){t.preventDefault(),ud()}},{type:"dragend",listener:ud}].concat(wa(Fp({onDragEnd:ud}))),{capture:!1})}function ud(){var e;(e=t0)===null||e===void 0||e(),t0=null}function nY(){var e;if(((e=window.event)===null||e===void 0?void 0:e.type)==="drop"){var t;(t=window.event)===null||t===void 0||t.preventDefault()}ud()}var eg={start:oY,stop:nY};var iY=E(np)({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),sY=E(Ct,{name:"Uploader",slot:"PreviewRoot"})({}),lY=E(Du,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),pY=E(E_,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),cY=E(I_,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),uY=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],dY={"image/*":[".jpeg",".jpg",".png",".gif",".bmp",".tiff",".svg",".webp",".heic",".ico"],"audio/*":[".mp3",".wav",".flac",".aac",".ogg",".m4a",".wma",".aiff",".alac",".midi",".mp4"],"video/*":[".mp4",".avi",".mkv",".mov",".wmv",".flv",".webm",".mpeg",".3gp",".m4v"]},r0=e=>{let t=e==0?0:Math.floor(Math.log(e)/Math.log(1024)),r=e/Math.pow(1024,t),o=uY[t];return Intl.NumberFormat("en-us",{style:"unit",unit:o,unitDisplay:"narrow"}).format(r)},fY=e=>{let{files:t,uploaded:r,onDelete:o}=e;return O(sY,{gap:1,children:[...r,...t].map(n=>O(lY,{size:"sm",color:"neutral",children:xe(Ct,{direction:"row",alignItems:"center",gap:2,children:[O(pY,{}),xe(Ct,{flex:"1",children:[O(Sr,{level:"body-sm",textColor:"common.black",children:n.name}),!!n.size&&O(Sr,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary",children:r0(n.size)})]}),O(or,{onClick:()=>o==null?void 0:o(n),children:O(cY,{})})]})},n.name))})},mY=E(Ct,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),hY=E(tn,{name:"Uploader",slot:"dropZone",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:e.spacing(5),gap:e.spacing(4),cursor:"pointer",backgroundColor:e.palette.background.surface,border:r?`1px solid ${e.palette.danger.outlinedBorder}`:t==="idle"?`1px solid ${e.palette.neutral.outlinedBorder}`:`1px solid ${e.palette.primary.outlinedBorder}`})),yY=E(R_,{name:"Uploader",slot:"iconContainer",shouldForwardProp:e=>e!=="error"})(({theme:e,state:t,error:r})=>({color:r?`rgba(${e.vars.palette.danger.mainChannel} / 0.6)`:t==="over"?`rgba(${e.palette.primary.mainChannel} / 0.6)`:e.palette.neutral.softActiveBg,width:"32px",height:"32px"})),nw=aY.memo(e=>{let{accept:t,minCount:r,maxCount:o,name:n,size:a,maxFileSize:i,maxFileTotalSize:s,onChange:l,label:p,disabled:c,onDelete:u}=e,d=ow(null),f=ow(null),[y,h]=rg(),[v,b]=rg([]),[x,g]=rg(e.uploaded||[]),[S,P]=rg("idle"),T=dd(()=>t.split(",").map(_=>_.trim()),[t]),C=dd(()=>T.flatMap(_=>["image/*","video/*","audio/*"].includes(_)?dY[_]:_),[T]),k=dd(()=>{let[_,L]=[T.filter(F=>["image/*","video/*","audio/*"].includes(F)).map(F=>{let[R]=F.split("/");return R.toLowerCase()}),T.filter(F=>!["image/*","video/*","audio/*"].includes(F)).map(F=>{let[R,q]=F.split("/");return q?q.toUpperCase():R.toUpperCase().replace(".","")})],U=[];return _.length>0&&U.push(`Any ${_.join(", ")} file`),L.length>0&&U.push(L.join(", ")),U.push(`Maximum ${r0(s)}`),o&&U.push(`Up to ${o} ${o===1?"file":"files"}`),U.join(", ")},[T,s,o]),I=dd(()=>!!y||e.error,[e.error,y]),D=dd(()=>!o||o&&[...x,...v].length!==o,[v,o,x]),M=tg(_=>{try{let L=C.map(q=>q.replace(".",""))||[],U=new RegExp(`${L.join("|")}`);if(_.forEach(q=>{let J=q.name.split(".").pop()||"";if(!U.test(J))throw new Error("Please upload acceptable file type.")}),i&&_.forEach(q=>{if(q.size>i)throw new Error(`One or more File size exceeded the maximum limit. Each file size must be ${r0(i)} or less.`)}),[...v,..._].reduce((q,J)=>q+J.size,0)>s)throw new Error("Total File size exceeded the maximum limit.");let R=[...v,..._];if(o&&[...x,...R].length>o)throw new Error("Exceeded the maximum number of files.");l==null||l({target:{name:n,value:R}}),b(R),h(void 0)}catch(L){h(L.message)}},[v,x,o,C,i,s,n,l]);rw(()=>{let _=d.current;if(!(!_||c))return ad(ZT({element:_,canDrop:Qy,onDragEnter:()=>P("over"),onDragLeave:()=>P("potential"),onDrop:async({source:L})=>{let U=await e0({source:L});M(U)}}),QT({canMonitor:Qy,onDragStart:()=>{P("potential"),eg.start()},onDrop:()=>{P("idle"),eg.stop()}}))}),rw(()=>{f.current&&r&&(v.length<r?f.current.setCustomValidity(`At least ${r} files are required.`):f.current.setCustomValidity(""))},[f,v,r]);let B=tg(_=>{let L=Array.from(_.target.files||[]);M(L)},[M]),A=tg(_=>{_ instanceof File?b(L=>(l==null||l({target:{name:n,value:L.filter(U=>U!==_)}}),L.filter(U=>U!==_))):(g(L=>L.filter(U=>U.id!==_.id)),u==null||u(_)),h(void 0)},[n,l,u]),$=tg(()=>{var _;(_=f.current)==null||_.click()},[]),N=xe(hY,{state:S,error:!!(I||y),ref:d,onClick:$,children:[O(Ct,{alignItems:"center",gap:1,children:O(yY,{state:S,error:!!(I||y)})}),O(iY,{disabled:c,required:!!r,onInvalid:_=>{r&&v.length<r&&h(`Please choose ${r} ${r===1?"file":"files"} to upload.`)},slotProps:{input:{multiple:!0,accept:C.join(","),type:"file",ref:f,role:"button",onChange:B}}})]});return xe(mY,{children:[D&&xe(Gn,{size:a,error:!!(I||y),disabled:c,required:!!r,children:[p&&O(Yn,{children:p}),N,O(Jn,{children:xe(Ct,{children:[y&&O("div",{children:y}),O("div",{children:k})]})})]}),[...x,...v].length>0&&O(fY,{files:v,uploaded:x,onDelete:A})]})});function aw(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}var gY=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vY=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bY={};function og(e,t){return((t||bY).jsx?vY:gY).test(e)}var xY=/[ \t\n\f\r]/g;function o0(e){return typeof e=="object"?e.type==="text"?iw(e.value):!1:iw(e)}function iw(e){return e.replace(xY,"")===""}var Aa=class{constructor(t,r,o){this.property=t,this.normal=r,o&&(this.space=o)}};Aa.prototype.property={};Aa.prototype.normal={};Aa.prototype.space=null;function n0(e,t){let r={},o={},n=-1;for(;++n<e.length;)Object.assign(r,e[n].property),Object.assign(o,e[n].normal);return new Aa(r,o,t)}function fd(e){return e.toLowerCase()}var $r=class{constructor(t,r){this.property=t,this.attribute=r}};$r.prototype.space=null;$r.prototype.boolean=!1;$r.prototype.booleanish=!1;$r.prototype.overloadedBoolean=!1;$r.prototype.number=!1;$r.prototype.commaSeparated=!1;$r.prototype.spaceSeparated=!1;$r.prototype.commaOrSpaceSeparated=!1;$r.prototype.mustUseProperty=!1;$r.prototype.defined=!1;var md={};_n(md,{boolean:()=>Ge,booleanish:()=>Bt,commaOrSpaceSeparated:()=>co,commaSeparated:()=>Ui,number:()=>ve,overloadedBoolean:()=>a0,spaceSeparated:()=>dt});var TY=0,Ge=Ws(),Bt=Ws(),a0=Ws(),ve=Ws(),dt=Ws(),Ui=Ws(),co=Ws();function Ws(){return 2**++TY}var i0=Object.keys(md),Gs=class extends $r{constructor(t,r,o,n){let a=-1;if(super(t,r),sw(this,"space",n),typeof o=="number")for(;++a<i0.length;){let i=i0[a];sw(this,i0[a],(o&md[i])===md[i])}}};Gs.prototype.defined=!0;function sw(e,t,r){r&&(e[t]=r)}var PY={}.hasOwnProperty;function rn(e){let t={},r={},o;for(o in e.properties)if(PY.call(e.properties,o)){let n=e.properties[o],a=new Gs(o,e.transform(e.attributes||{},o),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[fd(o)]=o,r[fd(a.attribute)]=o}return new Aa(t,r,e.space)}var s0=rn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var l0=rn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ng(e,t){return t in e?e[t]:t}function ag(e,t){return ng(e,t.toLowerCase())}var p0=rn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ag,properties:{xmlns:null,xmlnsXLink:null}});var c0=rn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:dt,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:ve,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:dt,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:Bt,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null}});var lw=rn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ag,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:dt,autoFocus:Ge,autoPlay:Ge,blocking:dt,capture:null,charSet:null,checked:Ge,cite:null,className:dt,cols:ve,colSpan:null,content:null,contentEditable:Bt,controls:Ge,controlsList:dt,coords:ve|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:a0,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:dt,height:ve,hidden:Ge,high:ve,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:dt,itemRef:dt,itemScope:Ge,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ge,optimum:ve,pattern:null,ping:dt,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:dt,required:Ge,reversed:Ge,rows:ve,rowSpan:ve,sandbox:dt,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:Bt,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ge,disableRemotePlayback:Ge,prefix:null,property:null,results:ve,security:null,unselectable:null}});var pw=rn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ng,properties:{about:co,accentHeight:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:co,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:co,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:co,rev:co,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:co,requiredFeatures:co,requiredFonts:co,requiredFormats:co,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:co,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:co,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:co,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var CY=/^data[-\w.:]+$/i,cw=/-[a-z]/g,SY=/[A-Z]/g;function u0(e,t){let r=fd(t),o=t,n=$r;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&CY.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(cw,RY);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=t.slice(4);if(!cw.test(a)){let i=a.replace(SY,kY);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}n=Gs}return new n(o,t)}function kY(e){return"-"+e.toLowerCase()}function RY(e){return e.charAt(1).toUpperCase()}var d0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var uw=n0([l0,s0,p0,c0,lw],"html"),ig=n0([l0,s0,p0,c0,pw],"svg");function dw(e){return e.join(" ").trim()}var f0=wo(bw(),1),xw=f0.default.default||f0.default;var sg=Tw("end"),Vp=Tw("start");function Tw(e){return t;function t(r){let o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function m0(e){let t=Vp(e),r=sg(e);if(t&&r)return{start:t,end:r}}function Wi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pw(e.position):"start"in e||"end"in e?Pw(e):"line"in e||"column"in e?h0(e):""}function h0(e){return Cw(e&&e.line)+":"+Cw(e&&e.column)}function Pw(e){return h0(e&&e.start)+"-"+h0(e&&e.end)}function Cw(e){return e&&typeof e=="number"?e:1}var $t=class extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let n="",a={},i=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a=z({},r)),typeof t=="string"?n=t:!a.cause&&t&&(i=!0,n=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){let l=o.indexOf(":");l===-1?a.ruleId=o:(a.source=o.slice(0,l),a.ruleId=o.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){let l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=s?s.line:void 0,this.name=Wi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}};$t.prototype.file="";$t.prototype.name="";$t.prototype.reason="";$t.prototype.message="";$t.prototype.stack="";$t.prototype.column=void 0;$t.prototype.line=void 0;$t.prototype.ancestors=void 0;$t.prototype.cause=void 0;$t.prototype.fatal=void 0;$t.prototype.place=void 0;$t.prototype.ruleId=void 0;$t.prototype.source=void 0;var y0={}.hasOwnProperty,VY=new Map,$Y=/[A-Z]/g,jY=/-([a-z])/g,HY=new Set(["table","tbody","thead","tfoot","tr"]),UY=new Set(["td","th"]),Sw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function g0(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let r=t.filePath||void 0,o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=ZY(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=XY(r,t.jsx,t.jsxs)}let n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ig:uw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kw(n,e,void 0);return a&&typeof a!="string"?a:n.create(e,n.Fragment,{children:a||void 0},void 0)}function kw(e,t,r){if(t.type==="element")return WY(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return GY(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return JY(e,t,r);if(t.type==="mdxjsEsm")return YY(e,t);if(t.type==="root")return qY(e,t,r);if(t.type==="text")return KY(e,t)}function WY(e,t,r){let o=e.schema,n=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=Ew(e,t.tagName,!1),i=QY(e,t),s=b0(e,t);return HY.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!o0(l):!0})),Rw(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function GY(e,t){if(t.data&&t.data.estree&&e.evaluater){let o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}yd(e,t.position)}function YY(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);yd(e,t.position)}function JY(e,t,r){let o=e.schema,n=o;t.name==="svg"&&o.space==="html"&&(n=ig,e.schema=n),e.ancestors.push(t);let a=t.name===null?e.Fragment:Ew(e,t.name,!0),i=eJ(e,t),s=b0(e,t);return Rw(e,i,a,t),v0(i,s),e.ancestors.pop(),e.schema=o,e.create(t,a,i,r)}function qY(e,t,r){let o={};return v0(o,b0(e,t)),e.create(t,e.Fragment,o,r)}function KY(e,t){return t.value}function Rw(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function v0(e,t){if(t.length>0){let r=t.length>1?t:t[0];r&&(e.children=r)}}function XY(e,t,r){return o;function o(n,a,i,s){let p=Array.isArray(i.children)?r:t;return s?p(a,i,s):p(a,i)}}function ZY(e,t){return r;function r(o,n,a,i){let s=Array.isArray(a.children),l=Vp(o);return t(n,a,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function QY(e,t){let r={},o,n;for(n in t.properties)if(n!=="children"&&y0.call(t.properties,n)){let a=tJ(e,n,t.properties[n]);if(a){let[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&UY.has(t.tagName)?o=s:r[i]=s}}if(o){let a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function eJ(e,t){let r={};for(let o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){let a=o.data.estree.body[0];a.type;let i=a.expression;i.type;let s=i.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else yd(e,t.position);else{let n=o.name,a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){let s=o.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else yd(e,t.position);else a=o.value===null?!0:o.value;r[n]=a}return r}function b0(e,t){let r=[],o=-1,n=e.passKeys?new Map:VY;for(;++o<t.children.length;){let a=t.children[o],i;if(e.passKeys){let l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){let p=n.get(l)||0;i=l+"-"+p,n.set(l,p+1)}}let s=kw(e,a,i);s!==void 0&&r.push(s)}return r}function tJ(e,t,r){let o=u0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?aw(r):dw(r)),o.property==="style"){let n=typeof r=="object"?r:rJ(e,String(r));return e.stylePropertyNameCase==="css"&&(n=oJ(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&o.space?d0[o.property]||o.property:o.attribute,r]}}function rJ(e,t){let r={};try{xw(t,o)}catch(n){if(!e.ignoreInvalidStyle){let a=n,i=new $t("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Sw+"#cannot-parse-style-attribute",i}}return r;function o(n,a){let i=n;i.slice(0,2)!=="--"&&(i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),i=i.replace(jY,aJ)),r[i]=a}}function Ew(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){let n=t.split("."),a=-1,i;for(;++a<n.length;){let s=og(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}o=i}else o=og(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){let n=o.value;return y0.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(o);yd(e)}function yd(e,t){let r=new $t("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Sw+"#cannot-handle-mdx-estrees-without-createevaluater",r}function oJ(e){let t={},r;for(r in e)y0.call(e,r)&&(t[nJ(r)]=e[r]);return t}function nJ(e){let t=e.replace($Y,iJ);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function aJ(e,t){return t.toUpperCase()}function iJ(e){return"-"+e.toLowerCase()}var gd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};import{Fragment as uK,jsx as dK,jsxs as fK}from"react/jsx-runtime";var sJ={};function x0(e,t){let r=t||sJ,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ow(e,o,n)}function Ow(e,t,r){if(lJ(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Iw(e.children,t,r)}return Array.isArray(e)?Iw(e,t,r):""}function Iw(e,t,r){let o=[],n=-1;for(;++n<e.length;)o[n]=Ow(e[n],t,r);return o.join("")}function lJ(e){return!!(e&&typeof e=="object")}var Dw=document.createElement("i");function $p(e){let t="&"+e+";";Dw.innerHTML=t;let r=Dw.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function jr(e,t,r,o){let n=e.length,a=0,i;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,o.length<1e4)i=Array.from(o),i.unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a<o.length;)i=o.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Xr(e,t){return e.length>0?(jr(e,e.length,0,t),e):t}var _w={}.hasOwnProperty;function ww(e){let t={},r=-1;for(;++r<e.length;)pJ(t,e[r]);return t}function pJ(e,t){let r;for(r in t){let n=(_w.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r],i;if(a)for(i in a){_w.call(n,i)||(n[i]=[]);let s=a[i];cJ(n[i],Array.isArray(s)?s:s?[s]:[])}}}function cJ(e,t){let r=-1,o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);jr(e,0,0,o)}function lg(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}function Ba(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ro=Gi(/[A-Za-z]/),dr=Gi(/[\dA-Za-z]/),Aw=Gi(/[#-'*+\--9=?A-Z^-~]/);function vd(e){return e!==null&&(e<32||e===127)}var bd=Gi(/\d/),Bw=Gi(/[\dA-Fa-f]/),Mw=Gi(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function jt(e){return e!==null&&(e<0||e===32)}function Ye(e){return e===-2||e===-1||e===32}var Nw=Gi(new RegExp("\\p{P}|\\p{S}","u")),Lw=Gi(/\s/);function Gi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function on(e){let t=[],r=-1,o=0,n=0;for(;++r<e.length;){let a=e.charCodeAt(r),i="";if(a===37&&dr(e.charCodeAt(r+1))&&dr(e.charCodeAt(r+2)))n=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){let s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),n=1):i="\uFFFD"}else i=String.fromCharCode(a);i&&(t.push(e.slice(o,r),encodeURIComponent(i)),o=r+n+1,i=""),n&&(r+=n,n=0)}return t.join("")+e.slice(o)}function Xe(e,t,r,o){let n=o?o-1:Number.POSITIVE_INFINITY,a=0;return i;function i(l){return Ye(l)?(e.enter(r),s(l)):t(l)}function s(l){return Ye(l)&&a++<n?(e.consume(l),s):(e.exit(r),t(l))}}var zw={tokenize:uJ};function uJ(e){let t=e.attempt(this.parser.constructs.contentInitial,o,n),r;return t;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Xe(e,t,"linePrefix")}function n(s){return e.enter("paragraph"),a(s)}function a(s){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,i(s)}function i(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Me(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),i)}}var Vw={tokenize:dJ},Fw={tokenize:fJ};function dJ(e){let t=this,r=[],o=0,n,a,i;return s;function s(g){if(o<r.length){let S=r[o];return t.containerState=S[1],e.attempt(S[0].continuation,l,p)(g)}return p(g)}function l(g){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&x();let S=t.events.length,P=S,T;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){T=t.events[P][1].end;break}b(o);let C=S;for(;C<t.events.length;)t.events[C][1].end=Object.assign({},T),C++;return jr(t.events,P+1,0,t.events.slice(S)),t.events.length=C,p(g)}return s(g)}function p(g){if(o===r.length){if(!n)return d(g);if(n.currentConstruct&&n.currentConstruct.concrete)return y(g);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fw,c,u)(g)}function c(g){return n&&x(),b(o),d(g)}function u(g){return t.parser.lazy[t.now().line]=o!==r.length,i=t.now().offset,y(g)}function d(g){return t.containerState={},e.attempt(Fw,f,y)(g)}function f(g){return o++,r.push([t.currentConstruct,t.containerState]),d(g)}function y(g){if(g===null){n&&x(),b(0),e.consume(g);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:n}),h(g)}function h(g){if(g===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(g);return}return Me(g)?(e.consume(g),v(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(g),h)}function v(g,S){let P=t.sliceStream(g);if(S&&P.push(null),g.previous=a,a&&(a.next=g),a=g,n.defineSkip(g.start),n.write(P),t.parser.lazy[g.start.line]){let T=n.events.length;for(;T--;)if(n.events[T][1].start.offset<i&&(!n.events[T][1].end||n.events[T][1].end.offset>i))return;let C=t.events.length,k=C,I,D;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){D=t.events[k][1].end;break}I=!0}for(b(o),T=C;T<t.events.length;)t.events[T][1].end=Object.assign({},D),T++;jr(t.events,k+1,0,t.events.slice(C)),t.events.length=T}}function b(g){let S=r.length;for(;S-- >g;){let P=r[S];t.containerState=P[1],P[0].exit.call(t,e)}r.length=g}function x(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}function fJ(e,t,r){return Xe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function T0(e){if(e===null||jt(e)||Lw(e))return 1;if(Nw(e))return 2}function jp(e,t,r){let o=[],n=-1;for(;++n<e.length;){let a=e[n].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}var xd={name:"attention",tokenize:hJ,resolveAll:mJ};function mJ(e,t){let r=-1,o,n,a,i,s,l,p,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let u=Object.assign({},e[o][1].end),d=Object.assign({},e[r][1].start);$w(u,-l),$w(d,l),i={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[o][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[o][1].end),end:Object.assign({},e[r][1].start)},n={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},s.end)},e[o][1].end=Object.assign({},i.start),e[r][1].start=Object.assign({},s.end),p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Xr(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=Xr(p,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",a,t]]),p=Xr(p,jp(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=Xr(p,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=Xr(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,jr(e,o-1,r-o+3,p),r=o+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function hJ(e,t){let r=this.parser.constructs.attentionMarkers.null,o=this.previous,n=T0(o),a;return i;function i(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;let p=e.exit("attentionSequence"),c=T0(l),u=!c||c===2&&n||r.includes(l),d=!n||n===2&&c||r.includes(o);return p._open=!!(a===42?u:u&&(n||!d)),p._close=!!(a===42?d:d&&(c||!u)),t(l)}}function $w(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var P0={name:"autolink",tokenize:yJ};function yJ(e,t,r){let o=0;return n;function n(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return Ro(f)?(e.consume(f),i):p(f)}function i(f){return f===43||f===45||f===46||dr(f)?(o=1,s(f)):p(f)}function s(f){return f===58?(e.consume(f),o=0,l):(f===43||f===45||f===46||dr(f))&&o++<32?(e.consume(f),s):(o=0,p(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||vd(f)?r(f):(e.consume(f),l)}function p(f){return f===64?(e.consume(f),c):Aw(f)?(e.consume(f),p):r(f)}function c(f){return dr(f)?u(f):r(f)}function u(f){return f===46?(e.consume(f),o=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||dr(f))&&o++<63){let y=f===45?d:u;return e.consume(f),y}return r(f)}}var Yi={tokenize:gJ,partial:!0};function gJ(e,t,r){return o;function o(a){return Ye(a)?Xe(e,n,"linePrefix")(a):n(a)}function n(a){return a===null||Me(a)?t(a):r(a)}}var pg={name:"blockQuote",tokenize:vJ,continuation:{tokenize:bJ},exit:xJ};function vJ(e,t,r){let o=this;return n;function n(i){if(i===62){let s=o.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return r(i)}function a(i){return Ye(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function bJ(e,t,r){let o=this;return n;function n(i){return Ye(i)?Xe(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(pg,t,r)(i)}}function xJ(e){e.exit("blockQuote")}var cg={name:"characterEscape",tokenize:TJ};function TJ(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),n}function n(a){return Mw(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}var ug={name:"characterReference",tokenize:PJ};function PJ(e,t,r){let o=this,n=0,a,i;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,i=dr,c(u))}function p(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=Bw,c):(e.enter("characterReferenceValue"),a=7,i=bd,c(u))}function c(u){if(u===59&&n){let d=e.exit("characterReferenceValue");return i===dr&&!$p(o.sliceSerialize(d))?r(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(u)&&n++<a?(e.consume(u),c):r(u)}}var jw={tokenize:SJ,partial:!0},dg={name:"codeFenced",tokenize:CJ,concrete:!0};function CJ(e,t,r){let o=this,n={tokenize:P,partial:!0},a=0,i=0,s;return l;function l(T){return p(T)}function p(T){let C=o.events[o.events.length-1];return a=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(T)}function c(T){return T===s?(i++,e.consume(T),c):i<3?r(T):(e.exit("codeFencedFenceSequence"),Ye(T)?Xe(e,u,"whitespace")(T):u(T))}function u(T){return T===null||Me(T)?(e.exit("codeFencedFence"),o.interrupt?t(T):e.check(jw,h,S)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(T))}function d(T){return T===null||Me(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(T)):Ye(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Xe(e,f,"whitespace")(T)):T===96&&T===s?r(T):(e.consume(T),d)}function f(T){return T===null||Me(T)?u(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===null||Me(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(T)):T===96&&T===s?r(T):(e.consume(T),y)}function h(T){return e.attempt(n,S,v)(T)}function v(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),b}function b(T){return a>0&&Ye(T)?Xe(e,x,"linePrefix",a+1)(T):x(T)}function x(T){return T===null||Me(T)?e.check(jw,h,S)(T):(e.enter("codeFlowValue"),g(T))}function g(T){return T===null||Me(T)?(e.exit("codeFlowValue"),x(T)):(e.consume(T),g)}function S(T){return e.exit("codeFenced"),t(T)}function P(T,C,k){let I=0;return D;function D(N){return T.enter("lineEnding"),T.consume(N),T.exit("lineEnding"),M}function M(N){return T.enter("codeFencedFence"),Ye(N)?Xe(T,B,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):B(N)}function B(N){return N===s?(T.enter("codeFencedFenceSequence"),A(N)):k(N)}function A(N){return N===s?(I++,T.consume(N),A):I>=i?(T.exit("codeFencedFenceSequence"),Ye(N)?Xe(T,$,"whitespace")(N):$(N)):k(N)}function $(N){return N===null||Me(N)?(T.exit("codeFencedFence"),C(N)):k(N)}}}function SJ(e,t,r){let o=this;return n;function n(i){return i===null?r(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}var Td={name:"codeIndented",tokenize:RJ},kJ={tokenize:EJ,partial:!0};function RJ(e,t,r){let o=this;return n;function n(p){return e.enter("codeIndented"),Xe(e,a,"linePrefix",5)(p)}function a(p){let c=o.events[o.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(p):r(p)}function i(p){return p===null?l(p):Me(p)?e.attempt(kJ,i,l)(p):(e.enter("codeFlowValue"),s(p))}function s(p){return p===null||Me(p)?(e.exit("codeFlowValue"),i(p)):(e.consume(p),s)}function l(p){return e.exit("codeIndented"),t(p)}}function EJ(e,t,r){let o=this;return n;function n(i){return o.parser.lazy[o.now().line]?r(i):Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):Xe(e,a,"linePrefix",5)(i)}function a(i){let s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):Me(i)?n(i):r(i)}}var C0={name:"codeText",tokenize:DJ,resolve:IJ,previous:OJ};function IJ(e){let t=e.length-4,r=3,o,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)n===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(n=o):(o===t||e[o][1].type==="lineEnding")&&(e[n][1].type="codeTextData",o!==n+2&&(e[n][1].end=e[o-1][1].end,e.splice(n+2,o-n-2),t-=o-n-2,o=n+2),n=void 0);return e}function OJ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DJ(e,t,r){let o=this,n=0,a,i;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),n++,l):(e.exit("codeTextSequence"),p(d))}function p(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),p):d===96?(i=e.enter("codeTextSequence"),a=0,u(d)):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Me(d)?(e.exit("codeTextData"),p(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),a++,u):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}var fg=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let o=r==null?Number.POSITIVE_INFINITY:r;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){let n=r||0;this.setCursor(Math.trunc(t));let a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return o&&Pd(this.left,o),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Pd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Pd(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Pd(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Pd(this.left,r.reverse())}}};function Pd(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function mg(e){let t={},r=-1,o,n,a,i,s,l,p,c=new fg(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(o=c.get(r),r&&o[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=o[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,_J(c,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,n=void 0;a--&&(i=c.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank");)i[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=a);n&&(o[1].end=Object.assign({},c.get(n)[1].start),s=c.slice(n,r),s.unshift(o),c.splice(n,r-n+1,s))}}return jr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!p}function _J(e,t){let r=e.get(t)[1],o=e.get(t)[2],n=t-1,a=[],i=r._tokenizer||o.parser[r.contentType](r.start),s=i.events,l=[],p={},c,u,d=-1,f=r,y=0,h=0,v=[h];for(;f;){for(;e.get(++n)[1]!==f;);a.push(n),f._tokenizer||(c=o.sliceStream(f),f.next||c.push(null),u&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),u=f,f=f.next}for(f=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(h=d+1,v.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),d=v.length;d--;){let b=s.slice(v[d],v[d+1]),x=a.pop();l.push([x,x+b.length-1]),e.splice(x,2,b)}for(l.reverse(),d=-1;++d<l.length;)p[y+l[d][0]]=y+l[d][1],y+=l[d][1]-l[d][0]-1;return p}var S0={tokenize:BJ,resolve:AJ},wJ={tokenize:MJ,partial:!0};function AJ(e){return mg(e),e}function BJ(e,t){let r;return o;function o(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(s)}function n(s){return s===null?a(s):Me(s)?e.check(wJ,i,a)(s):(e.consume(s),n)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function MJ(e,t,r){let o=this;return n;function n(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Xe(e,a,"linePrefix")}function a(i){if(i===null||Me(i))return r(i);let s=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(o.parser.constructs.flow,r,t)(i)}}function hg(e,t,r,o,n,a,i,s,l){let p=l||Number.POSITIVE_INFINITY,c=0;return u;function u(b){return b===60?(e.enter(o),e.enter(n),e.enter(a),e.consume(b),e.exit(a),d):b===null||b===32||b===41||vd(b)?r(b):(e.enter(o),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function d(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(n),e.exit(o),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===62?(e.exit("chunkString"),e.exit(s),d(b)):b===null||b===60||Me(b)?r(b):(e.consume(b),b===92?y:f)}function y(b){return b===60||b===62||b===92?(e.consume(b),f):f(b)}function h(b){return!c&&(b===null||b===41||jt(b))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(o),t(b)):c<p&&b===40?(e.consume(b),c++,h):b===41?(e.consume(b),c--,h):b===null||b===32||b===40||vd(b)?r(b):(e.consume(b),b===92?v:h)}function v(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function yg(e,t,r,o,n,a){let i=this,s=0,l;return p;function p(f){return e.enter(o),e.enter(n),e.consume(f),e.exit(n),e.enter(a),c}function c(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):f===93?(e.exit(a),e.enter(n),e.consume(f),e.exit(n),e.exit(o),t):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===null||f===91||f===93||Me(f)||s++>999?(e.exit("chunkString"),c(f)):(e.consume(f),l||(l=!Ye(f)),f===92?d:u)}function d(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function gg(e,t,r,o,n,a){let i;return s;function s(d){return d===34||d===39||d===40?(e.enter(o),e.enter(n),e.consume(d),e.exit(n),i=d===40?41:d,l):r(d)}function l(d){return d===i?(e.enter(n),e.consume(d),e.exit(n),e.exit(o),t):(e.enter(a),p(d))}function p(d){return d===i?(e.exit(a),l(i)):d===null?r(d):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Xe(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===i||d===null||Me(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?u:c)}function u(d){return d===i||d===92?(e.consume(d),c):c(d)}}function Js(e,t){let r;return o;function o(n){return Me(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,o):Ye(n)?Xe(e,o,r?"linePrefix":"lineSuffix")(n):t(n)}}var k0={name:"definition",tokenize:LJ},NJ={tokenize:zJ,partial:!0};function LJ(e,t,r){let o=this,n;return a;function a(f){return e.enter("definition"),i(f)}function i(f){return yg.call(o,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return n=Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):r(f)}function l(f){return jt(f)?Js(e,p)(f):p(f)}function p(f){return hg(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(NJ,u,u)(f)}function u(f){return Ye(f)?Xe(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Me(f)?(e.exit("definition"),o.parser.defined.push(n),t(f)):r(f)}}function zJ(e,t,r){return o;function o(s){return jt(s)?Js(e,n)(s):r(s)}function n(s){return gg(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Ye(s)?Xe(e,i,"whitespace")(s):i(s)}function i(s){return s===null||Me(s)?t(s):r(s)}}var R0={name:"hardBreakEscape",tokenize:FJ};function FJ(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),n}function n(a){return Me(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}var E0={name:"headingAtx",tokenize:$J,resolve:VJ};function VJ(e,t){let r=e.length-2,o=3,n,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},jr(e,o,r-o+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}function $J(e,t,r){let o=0;return n;function n(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&o++<6?(e.consume(c),i):c===null||jt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Me(c)?(e.exit("atxHeading"),t(c)):Ye(c)?Xe(e,s,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function p(c){return c===null||c===35||jt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),p)}}var Hw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],I0=["pre","script","style","textarea"];var O0={name:"htmlFlow",tokenize:WJ,resolveTo:UJ,concrete:!0},jJ={tokenize:YJ,partial:!0},HJ={tokenize:GJ,partial:!0};function UJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function WJ(e,t,r){let o=this,n,a,i,s,l;return p;function p(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),d):w===47?(e.consume(w),a=!0,h):w===63?(e.consume(w),n=3,o.interrupt?t:R):Ro(w)?(e.consume(w),i=String.fromCharCode(w),v):r(w)}function d(w){return w===45?(e.consume(w),n=2,f):w===91?(e.consume(w),n=5,s=0,y):Ro(w)?(e.consume(w),n=4,o.interrupt?t:R):r(w)}function f(w){return w===45?(e.consume(w),o.interrupt?t:R):r(w)}function y(w){let se="CDATA[";return w===se.charCodeAt(s++)?(e.consume(w),s===se.length?o.interrupt?t:B:y):r(w)}function h(w){return Ro(w)?(e.consume(w),i=String.fromCharCode(w),v):r(w)}function v(w){if(w===null||w===47||w===62||jt(w)){let se=w===47,ye=i.toLowerCase();return!se&&!a&&I0.includes(ye)?(n=1,o.interrupt?t(w):B(w)):Hw.includes(i.toLowerCase())?(n=6,se?(e.consume(w),b):o.interrupt?t(w):B(w)):(n=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(w):a?x(w):g(w))}return w===45||dr(w)?(e.consume(w),i+=String.fromCharCode(w),v):r(w)}function b(w){return w===62?(e.consume(w),o.interrupt?t:B):r(w)}function x(w){return Ye(w)?(e.consume(w),x):D(w)}function g(w){return w===47?(e.consume(w),D):w===58||w===95||Ro(w)?(e.consume(w),S):Ye(w)?(e.consume(w),g):D(w)}function S(w){return w===45||w===46||w===58||w===95||dr(w)?(e.consume(w),S):P(w)}function P(w){return w===61?(e.consume(w),T):Ye(w)?(e.consume(w),P):g(w)}function T(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),l=w,C):Ye(w)?(e.consume(w),T):k(w)}function C(w){return w===l?(e.consume(w),l=null,I):w===null||Me(w)?r(w):(e.consume(w),C)}function k(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||jt(w)?P(w):(e.consume(w),k)}function I(w){return w===47||w===62||Ye(w)?g(w):r(w)}function D(w){return w===62?(e.consume(w),M):r(w)}function M(w){return w===null||Me(w)?B(w):Ye(w)?(e.consume(w),M):r(w)}function B(w){return w===45&&n===2?(e.consume(w),_):w===60&&n===1?(e.consume(w),L):w===62&&n===4?(e.consume(w),q):w===63&&n===3?(e.consume(w),R):w===93&&n===5?(e.consume(w),F):Me(w)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(jJ,J,A)(w)):w===null||Me(w)?(e.exit("htmlFlowData"),A(w)):(e.consume(w),B)}function A(w){return e.check(HJ,$,J)(w)}function $(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),N}function N(w){return w===null||Me(w)?A(w):(e.enter("htmlFlowData"),B(w))}function _(w){return w===45?(e.consume(w),R):B(w)}function L(w){return w===47?(e.consume(w),i="",U):B(w)}function U(w){if(w===62){let se=i.toLowerCase();return I0.includes(se)?(e.consume(w),q):B(w)}return Ro(w)&&i.length<8?(e.consume(w),i+=String.fromCharCode(w),U):B(w)}function F(w){return w===93?(e.consume(w),R):B(w)}function R(w){return w===62?(e.consume(w),q):w===45&&n===2?(e.consume(w),R):B(w)}function q(w){return w===null||Me(w)?(e.exit("htmlFlowData"),J(w)):(e.consume(w),q)}function J(w){return e.exit("htmlFlow"),t(w)}}function GJ(e,t,r){let o=this;return n;function n(i){return Me(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):r(i)}function a(i){return o.parser.lazy[o.now().line]?r(i):t(i)}}function YJ(e,t,r){return o;function o(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Yi,t,r)}}var D0={name:"htmlText",tokenize:JJ};function JJ(e,t,r){let o=this,n,a,i;return s;function s(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),l}function l(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),P):R===63?(e.consume(R),g):Ro(R)?(e.consume(R),k):r(R)}function p(R){return R===45?(e.consume(R),c):R===91?(e.consume(R),a=0,y):Ro(R)?(e.consume(R),x):r(R)}function c(R){return R===45?(e.consume(R),f):r(R)}function u(R){return R===null?r(R):R===45?(e.consume(R),d):Me(R)?(i=u,L(R)):(e.consume(R),u)}function d(R){return R===45?(e.consume(R),f):u(R)}function f(R){return R===62?_(R):R===45?d(R):u(R)}function y(R){let q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?h:y):r(R)}function h(R){return R===null?r(R):R===93?(e.consume(R),v):Me(R)?(i=h,L(R)):(e.consume(R),h)}function v(R){return R===93?(e.consume(R),b):h(R)}function b(R){return R===62?_(R):R===93?(e.consume(R),b):h(R)}function x(R){return R===null||R===62?_(R):Me(R)?(i=x,L(R)):(e.consume(R),x)}function g(R){return R===null?r(R):R===63?(e.consume(R),S):Me(R)?(i=g,L(R)):(e.consume(R),g)}function S(R){return R===62?_(R):g(R)}function P(R){return Ro(R)?(e.consume(R),T):r(R)}function T(R){return R===45||dr(R)?(e.consume(R),T):C(R)}function C(R){return Me(R)?(i=C,L(R)):Ye(R)?(e.consume(R),C):_(R)}function k(R){return R===45||dr(R)?(e.consume(R),k):R===47||R===62||jt(R)?I(R):r(R)}function I(R){return R===47?(e.consume(R),_):R===58||R===95||Ro(R)?(e.consume(R),D):Me(R)?(i=I,L(R)):Ye(R)?(e.consume(R),I):_(R)}function D(R){return R===45||R===46||R===58||R===95||dr(R)?(e.consume(R),D):M(R)}function M(R){return R===61?(e.consume(R),B):Me(R)?(i=M,L(R)):Ye(R)?(e.consume(R),M):I(R)}function B(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),n=R,A):Me(R)?(i=B,L(R)):Ye(R)?(e.consume(R),B):(e.consume(R),$)}function A(R){return R===n?(e.consume(R),n=void 0,N):R===null?r(R):Me(R)?(i=A,L(R)):(e.consume(R),A)}function $(R){return R===null||R===34||R===39||R===60||R===61||R===96?r(R):R===47||R===62||jt(R)?I(R):(e.consume(R),$)}function N(R){return R===47||R===62||jt(R)?I(R):r(R)}function _(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):r(R)}function L(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),U}function U(R){return Ye(R)?Xe(e,F,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):F(R)}function F(R){return e.enter("htmlTextData"),i(R)}}var qs={name:"labelEnd",tokenize:eq,resolveTo:QJ,resolveAll:ZJ},qJ={tokenize:tq},KJ={tokenize:rq},XJ={tokenize:oq};function ZJ(e){let t=-1;for(;++t<e.length;){let r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function QJ(e,t){let r=e.length,o=0,n,a,i,s;for(;r--;)if(n=e[r][1],a){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(a=r,n.type!=="labelLink")){o=2;break}}else n.type==="labelEnd"&&(i=r);let l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},p={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[i][1].end)},c={type:"labelText",start:Object.assign({},e[a+o+2][1].end),end:Object.assign({},e[i-2][1].start)};return s=[["enter",l,t],["enter",p,t]],s=Xr(s,e.slice(a+1,a+o+3)),s=Xr(s,[["enter",c,t]]),s=Xr(s,jp(t.parser.constructs.insideSpan.null,e.slice(a+o+4,i-3),t)),s=Xr(s,[["exit",c,t],e[i-2],e[i-1],["exit",p,t]]),s=Xr(s,e.slice(i+1)),s=Xr(s,[["exit",l,t]]),jr(e,a,e.length,s),e}function eq(e,t,r){let o=this,n=o.events.length,a,i;for(;n--;)if((o.events[n][1].type==="labelImage"||o.events[n][1].type==="labelLink")&&!o.events[n][1]._balanced){a=o.events[n][1];break}return s;function s(d){return a?a._inactive?u(d):(i=o.parser.defined.includes(Ba(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(qJ,c,i?c:u)(d):d===91?e.attempt(KJ,c,i?p:u)(d):i?c(d):u(d)}function p(d){return e.attempt(XJ,c,u)(d)}function c(d){return t(d)}function u(d){return a._balanced=!0,r(d)}}function tq(e,t,r){return o;function o(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),n}function n(u){return jt(u)?Js(e,a)(u):a(u)}function a(u){return u===41?c(u):hg(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return jt(u)?Js(e,l)(u):c(u)}function s(u){return r(u)}function l(u){return u===34||u===39||u===40?gg(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function p(u){return jt(u)?Js(e,c)(u):c(u)}function c(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):r(u)}}function rq(e,t,r){let o=this;return n;function n(s){return yg.call(o,e,a,i,"reference","referenceMarker","referenceString")(s)}function a(s){return o.parser.defined.includes(Ba(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function i(s){return r(s)}}function oq(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),n}function n(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}var _0={name:"labelStartImage",tokenize:nq,resolveAll:qs.resolveAll};function nq(e,t,r){let o=this;return n;function n(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):r(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(s):t(s)}}var w0={name:"labelStartLink",tokenize:aq,resolveAll:qs.resolveAll};function aq(e,t,r){let o=this;return n;function n(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(i):t(i)}}var Cd={name:"lineEnding",tokenize:iq};function iq(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Xe(e,t,"linePrefix")}}var Ks={name:"thematicBreak",tokenize:sq};function sq(e,t,r){let o=0,n;return a;function a(p){return e.enter("thematicBreak"),i(p)}function i(p){return n=p,s(p)}function s(p){return p===n?(e.enter("thematicBreakSequence"),l(p)):o>=3&&(p===null||Me(p))?(e.exit("thematicBreak"),t(p)):r(p)}function l(p){return p===n?(e.consume(p),o++,l):(e.exit("thematicBreakSequence"),Ye(p)?Xe(e,s,"whitespace")(p):s(p))}}var Hr={name:"list",tokenize:cq,continuation:{tokenize:uq},exit:fq},lq={tokenize:mq,partial:!0},pq={tokenize:dq,partial:!0};function cq(e,t,r){let o=this,n=o.events[o.events.length-1],a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(f){let y=o.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!o.containerState.marker||f===o.containerState.marker:bd(f)){if(o.containerState.type||(o.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ks,r,p)(f):p(f);if(!o.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return r(f)}function l(f){return bd(f)&&++i<10?(e.consume(f),l):(!o.interrupt||i<2)&&(o.containerState.marker?f===o.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):r(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||f,e.check(Yi,o.interrupt?r:c,e.attempt(lq,d,u))}function c(f){return o.containerState.initialBlankLine=!0,a++,d(f)}function u(f){return Ye(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):r(f)}function d(f){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function uq(e,t,r){let o=this;return o.containerState._closeFlow=void 0,e.check(Yi,n,a);function n(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Xe(e,t,"listItemIndent",o.containerState.size+1)(s)}function a(s){return o.containerState.furtherBlankLines||!Ye(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,i(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(pq,t,i)(s))}function i(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Xe(e,e.attempt(Hr,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function dq(e,t,r){let o=this;return Xe(e,n,"listItemIndent",o.containerState.size+1);function n(a){let i=o.events[o.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===o.containerState.size?t(a):r(a)}}function fq(e){e.exit(this.containerState.type)}function mq(e,t,r){let o=this;return Xe(e,n,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(a){let i=o.events[o.events.length-1];return!Ye(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}var vg={name:"setextUnderline",tokenize:yq,resolveTo:hq};function hq(e,t){let r=e.length,o,n,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);let i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",i,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end=Object.assign({},e[a][1].end)):e[o][1]=i,e.push(["exit",i,t]),e}function yq(e,t,r){let o=this,n;return a;function a(p){let c=o.events.length,u;for(;c--;)if(o.events[c][1].type!=="lineEnding"&&o.events[c][1].type!=="linePrefix"&&o.events[c][1].type!=="content"){u=o.events[c][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||u)?(e.enter("setextHeadingLine"),n=p,i(p)):r(p)}function i(p){return e.enter("setextHeadingLineSequence"),s(p)}function s(p){return p===n?(e.consume(p),s):(e.exit("setextHeadingLineSequence"),Ye(p)?Xe(e,l,"lineSuffix")(p):l(p))}function l(p){return p===null||Me(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}var Uw={tokenize:gq};function gq(e){let t=this,r=e.attempt(Yi,o,e.attempt(this.parser.constructs.flowInitial,n,Xe(e,e.attempt(this.parser.constructs.flow,n,e.attempt(S0,n)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var Ww={resolveAll:qw()},Gw=Jw("string"),Yw=Jw("text");function Jw(e){return{tokenize:t,resolveAll:qw(e==="text"?vq:void 0)};function t(r){let o=this,n=this.parser.constructs[e],a=r.attempt(n,i,s);return i;function i(c){return p(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){if(c===null)return!0;let u=n[c],d=-1;if(u)for(;++d<u.length;){let f=u[d];if(!f.previous||f.previous.call(o,o.previous))return!0}return!1}}}function qw(e){return t;function t(r,o){let n=-1,a;for(;++n<=r.length;)a===void 0?r[n]&&r[n][1].type==="data"&&(a=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==a+2&&(r[a][1].end=r[n-1][1].end,r.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(r,o):r}}function vq(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let o=e[r-1][1],n=t.sliceStream(o),a=n.length,i=-1,s=0,l;for(;a--;){let p=n[a];if(typeof p=="string"){for(i=p.length;p.charCodeAt(i-1)===32;)s++,i--;if(i)break;i=-1}else if(p===-2)l=!0,s++;else if(p!==-1){a++;break}}if(s){let p={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-s,offset:o.end.offset-s,_index:o.start._index+a,_bufferIndex:a?i:o.start._bufferIndex+i},end:Object.assign({},o.end)};o.end=Object.assign({},p.start),o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}function Kw(e,t,r){let o=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),n={},a=[],i=[],s=[],l=!0,p={consume:S,enter:P,exit:T,attempt:I(C),check:I(k),interrupt:I(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:y,now:v,defineSkip:b,write:f},u=t.tokenize.call(c,p),d;return t.resolveAll&&a.push(t),c;function f(A){return i=Xr(i,A),x(),i[i.length-1]!==null?[]:(D(t,0),c.events=jp(a,c.events,c),c.events)}function y(A,$){return xq(h(A),$)}function h(A){return bq(i,A)}function v(){let{line:A,column:$,offset:N,_index:_,_bufferIndex:L}=o;return{line:A,column:$,offset:N,_index:_,_bufferIndex:L}}function b(A){n[A.line]=A.column,B()}function x(){let A;for(;o._index<i.length;){let $=i[o._index];if(typeof $=="string")for(A=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===A&&o._bufferIndex<$.length;)g($.charCodeAt(o._bufferIndex));else g($)}}function g(A){l=void 0,d=A,u=u(A)}function S(A){Me(A)?(o.line++,o.column=1,o.offset+=A===-3?2:1,B()):A!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===i[o._index].length&&(o._bufferIndex=-1,o._index++)),c.previous=A,l=!0}function P(A,$){let N=$||{};return N.type=A,N.start=v(),c.events.push(["enter",N,c]),s.push(N),N}function T(A){let $=s.pop();return $.end=v(),c.events.push(["exit",$,c]),$}function C(A,$){D(A,$.from)}function k(A,$){$.restore()}function I(A,$){return N;function N(_,L,U){let F,R,q,J;return Array.isArray(_)?se(_):"tokenize"in _?se([_]):w(_);function w(W){return me;function me(fe){let Re=fe!==null&&W[fe],Te=fe!==null&&W.null,Fe=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return se(Fe)(fe)}}function se(W){return F=W,R=0,W.length===0?U:ye(W[R])}function ye(W){return me;function me(fe){return J=M(),q=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?ne(fe):W.tokenize.call($?Object.assign(Object.create(c),$):c,p,we,ne)(fe)}}function we(W){return l=!0,A(q,J),L}function ne(W){return l=!0,J.restore(),++R<F.length?ye(F[R]):U}}}function D(A,$){A.resolveAll&&!a.includes(A)&&a.push(A),A.resolve&&jr(c.events,$,c.events.length-$,A.resolve(c.events.slice($),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function M(){let A=v(),$=c.previous,N=c.currentConstruct,_=c.events.length,L=Array.from(s);return{restore:U,from:_};function U(){o=A,c.previous=$,c.currentConstruct=N,c.events.length=_,s=L,B()}}function B(){o.line in n&&o.column<2&&(o.column=n[o.line],o.offset+=n[o.line]-1)}}function bq(e,t){let r=t.start._index,o=t.start._bufferIndex,n=t.end._index,a=t.end._bufferIndex,i;if(r===n)i=[e[r].slice(o,a)];else{if(i=e.slice(r,n),o>-1){let s=i[0];typeof s=="string"?i[0]=s.slice(o):i.shift()}a>0&&i.push(e[n].slice(0,a))}return i}function xq(e,t){let r=-1,o=[],n;for(;++r<e.length;){let a=e[r],i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
|
|
133
133
|
`;break}case-3:{i=`\r
|
|
134
134
|
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&n)continue;i=" ";break}default:i=String.fromCharCode(a)}n=a===-2,o.push(i)}return o.join("")}var A0={};_n(A0,{attentionMarkers:()=>Iq,contentInitial:()=>Pq,disable:()=>Oq,document:()=>Tq,flow:()=>Sq,flowInitial:()=>Cq,insideSpan:()=>Eq,string:()=>kq,text:()=>Rq});var Tq={42:Hr,43:Hr,45:Hr,48:Hr,49:Hr,50:Hr,51:Hr,52:Hr,53:Hr,54:Hr,55:Hr,56:Hr,57:Hr,62:pg},Pq={91:k0},Cq={[-2]:Td,[-1]:Td,32:Td},Sq={35:E0,42:Ks,45:[vg,Ks],60:O0,61:vg,95:Ks,96:dg,126:dg},kq={38:ug,92:cg},Rq={[-5]:Cd,[-4]:Cd,[-3]:Cd,33:_0,38:ug,42:xd,60:[P0,D0],91:w0,92:[R0,cg],93:qs,95:xd,96:C0},Eq={null:[xd,Ww]},Iq={null:[42,95]},Oq={null:[]};function B0(e){let r=ww([A0,...(e||{}).extensions||[]]),o={defined:[],lazy:{},constructs:r,content:n(zw),document:n(Vw),flow:n(Uw),string:n(Gw),text:n(Yw)};return o;function n(a){return i;function i(s){return Kw(o,a,s)}}}function M0(e){for(;!mg(e););return e}var Xw=/[\0\t\n\r]/g;function N0(){let e=1,t="",r=!0,o;return n;function n(a,i,s){let l=[],p,c,u,d,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(i||void 0).decode(a)),u=0,t="",r&&(a.charCodeAt(0)===65279&&u++,r=void 0);u<a.length;){if(Xw.lastIndex=u,p=Xw.exec(a),d=p&&p.index!==void 0?p.index:a.length,f=a.charCodeAt(d),!p){t=a.slice(u);break}if(f===10&&u===d&&o)l.push(-3),o=void 0;else switch(o&&(l.push(-5),o=void 0),u<d&&(l.push(a.slice(u,d)),e+=d-u),f){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:o=!0,e=1}u=d+1}return s&&(o&&l.push(-5),t&&l.push(t),l.push(null)),l}}var Dq=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zw(e){return e.replace(Dq,_q)}function _q(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let n=r.charCodeAt(1),a=n===120||n===88;return lg(r.slice(a?2:1),a?16:10)}return $p(r)||e}var eA={}.hasOwnProperty;function L0(e,t,r){return typeof t!="string"&&(r=t,t=void 0),wq(r)(M0(B0(r).document().write(N0()(e,t,!0))))}function wq(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ge),autolinkProtocol:I,autolinkEmail:I,atxHeading:a(Je),blockQuote:a(me),characterEscape:I,characterReference:I,codeFenced:a(fe),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(fe,i),codeText:a(Re,i),codeTextData:I,data:I,codeFlowValue:I,definition:a(Te),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(Fe),hardBreakEscape:a(ae),hardBreakTrailing:a(ae),htmlFlow:a(oe,i),htmlFlowData:I,htmlText:a(oe,i),htmlTextData:I,image:a(Ce),label:i,link:a(ge),listItem:a(ke),listItemValue:d,listOrdered:a($e,u),listUnordered:a($e),paragraph:a(Ae),reference:w,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(Je),strong:a(He),thematicBreak:a(We)},exit:{atxHeading:l(),atxHeadingSequence:P,autolink:l(),autolinkEmail:W,autolinkProtocol:ne,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:we,codeFenced:l(v),codeFencedFence:h,codeFencedFenceInfo:f,codeFencedFenceMeta:y,codeFlowValue:D,codeIndented:l(b),codeText:l(N),codeTextData:D,data:D,definition:l(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:g,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(A),htmlFlowData:D,htmlText:l($),htmlTextData:D,image:l(L),label:F,labelText:U,lineEnding:M,link:l(_),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:R,resourceTitleString:q,resource:J,setextHeading:l(k),setextHeadingLineSequence:C,setextHeadingText:T,strong:l(),thematicBreak:l()}};tA(t,(e||{}).mdastExtensions||[]);let r={};return o;function o(Z){let de={type:"root",children:[]},Ie={stack:[de],tokenStack:[],config:t,enter:s,exit:p,buffer:i,resume:c,data:r},Y=[],K=-1;for(;++K<Z.length;)if(Z[K][1].type==="listOrdered"||Z[K][1].type==="listUnordered")if(Z[K][0]==="enter")Y.push(K);else{let le=Y.pop();K=n(Z,le,K)}for(K=-1;++K<Z.length;){let le=t[Z[K][0]];eA.call(le,Z[K][1].type)&&le[Z[K][1].type].call(Object.assign({sliceSerialize:Z[K][2].sliceSerialize},Ie),Z[K][1])}if(Ie.tokenStack.length>0){let le=Ie.tokenStack[Ie.tokenStack.length-1];(le[1]||Qw).call(Ie,void 0,le[0])}for(de.position={start:Ji(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ji(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},K=-1;++K<t.transforms.length;)de=t.transforms[K](de)||de;return de}function n(Z,de,Ie){let Y=de-1,K=-1,le=!1,De,pe,ce,Ee;for(;++Y<=Ie;){let Ne=Z[Y];switch(Ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ne[0]==="enter"?K++:K--,Ee=void 0;break}case"lineEndingBlank":{Ne[0]==="enter"&&(De&&!Ee&&!K&&!ce&&(ce=Y),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!K&&Ne[0]==="enter"&&Ne[1].type==="listItemPrefix"||K===-1&&Ne[0]==="exit"&&(Ne[1].type==="listUnordered"||Ne[1].type==="listOrdered")){if(De){let st=Y;for(pe=void 0;st--;){let qe=Z[st];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;pe&&(Z[pe][1].type="lineEndingBlank",le=!0),qe[1].type="lineEnding",pe=st}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}ce&&(!pe||ce<pe)&&(De._spread=!0),De.end=Object.assign({},pe?Z[pe][1].start:Ne[1].end),Z.splice(pe||Y,0,["exit",De,Ne[2]]),Y++,Ie++}if(Ne[1].type==="listItemPrefix"){let st={type:"listItem",_spread:!1,start:Object.assign({},Ne[1].start),end:void 0};De=st,Z.splice(Y,0,["enter",st,Ne[2]]),Y++,Ie++,ce=void 0,Ee=!0}}}return Z[de][1]._spread=le,Ie}function a(Z,de){return Ie;function Ie(Y){s.call(this,Z(Y),Y),de&&de.call(this,Y)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(Z,de,Ie){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([de,Ie]),Z.position={start:Ji(de.start),end:void 0}}function l(Z){return de;function de(Ie){Z&&Z.call(this,Ie),p.call(this,Ie)}}function p(Z,de){let Ie=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==Z.type&&(de?de.call(this,Z,Y[0]):(Y[1]||Qw).call(this,Z,Y[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Wi({start:Z.start,end:Z.end})+"): it\u2019s not open");Ie.position.end=Ji(Z.end)}function c(){return x0(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function d(Z){if(this.data.expectingFirstListItemValue){let de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function f(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.lang=Z}function y(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.meta=Z}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.value=Z.replace(/(\r?\n|\r)$/g,"")}function x(Z){let de=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=de,Ie.identifier=Ba(this.sliceSerialize(Z)).toLowerCase()}function g(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.title=Z}function S(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.url=Z}function P(Z){let de=this.stack[this.stack.length-1];if(!de.depth){let Ie=this.sliceSerialize(Z).length;de.depth=Ie}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function C(Z){let de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function I(Z){let Ie=this.stack[this.stack.length-1].children,Y=Ie[Ie.length-1];(!Y||Y.type!=="text")&&(Y=Ve(),Y.position={start:Ji(Z.start),end:void 0},Ie.push(Y)),this.stack.push(Y)}function D(Z){let de=this.stack.pop();de.value+=this.sliceSerialize(Z),de.position.end=Ji(Z.end)}function M(Z){let de=this.stack[this.stack.length-1];if(this.data.atHardBreak){let Ie=de.children[de.children.length-1];Ie.position.end=Ji(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(I.call(this,Z),D.call(this,Z))}function B(){this.data.atHardBreak=!0}function A(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.value=Z}function $(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.value=Z}function N(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.value=Z}function _(){let Z=this.stack[this.stack.length-1];if(this.data.inReference){let de=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=de,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function L(){let Z=this.stack[this.stack.length-1];if(this.data.inReference){let de=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=de,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function U(Z){let de=this.sliceSerialize(Z),Ie=this.stack[this.stack.length-2];Ie.label=Zw(de),Ie.identifier=Ba(de).toLowerCase()}function F(){let Z=this.stack[this.stack.length-1],de=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){let Y=Z.children;Ie.children=Y}else Ie.alt=de}function R(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.url=Z}function q(){let Z=this.resume(),de=this.stack[this.stack.length-1];de.title=Z}function J(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function se(Z){let de=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=de,Ie.identifier=Ba(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function ye(Z){this.data.characterReferenceType=Z.type}function we(Z){let de=this.sliceSerialize(Z),Ie=this.data.characterReferenceType,Y;Ie?(Y=lg(de,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=$p(de);let K=this.stack.pop();K.value+=Y,K.position.end=Ji(Z.end)}function ne(Z){D.call(this,Z);let de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(Z)}function W(Z){D.call(this,Z);let de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(Z)}function me(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function Re(){return{type:"inlineCode",value:""}}function Te(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fe(){return{type:"emphasis",children:[]}}function Je(){return{type:"heading",depth:0,children:[]}}function ae(){return{type:"break"}}function oe(){return{type:"html",value:""}}function Ce(){return{type:"image",title:null,url:"",alt:null}}function ge(){return{type:"link",title:null,url:"",children:[]}}function $e(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function ke(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Ae(){return{type:"paragraph",children:[]}}function He(){return{type:"strong",children:[]}}function Ve(){return{type:"text",value:""}}function We(){return{type:"thematicBreak"}}}function Ji(e){return{line:e.line,column:e.column,offset:e.offset}}function tA(e,t){let r=-1;for(;++r<t.length;){let o=t[r];Array.isArray(o)?tA(e,o):Aq(e,o)}}function Aq(e,t){let r;for(r in t)if(eA.call(t,r))switch(r){case"canContainEols":{let o=t[r];o&&e[r].push(...o);break}case"transforms":{let o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{let o=t[r];o&&Object.assign(e[r],o);break}}}function Qw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Wi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Wi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Wi({start:t.start,end:t.end})+") is still open")}function bg(e){let t=this;t.parser=r;function r(o){return L0(o,Q(z(z({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}function rA(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function oA(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
135
135
|
`}]}function nA(e,t){let r=t.value?t.value+`
|
|
@@ -146,7 +146,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
146
146
|
|
|
147
147
|
Navigator\uC5D0 \uC874\uC7AC\uD558\uB294 NavigationGroup\uC5D0 \uC21C\uCC28\uC801\uC73C\uB85C \uC8FC\uC785\uB429\uB2C8\uB2E4.(\uBD88\uD3B8\uD558\uC9C0\uB9CC framer\uC758 \uC81C\uC57D\uC73C\uB85C \uC778\uD574 \uC774\uB807\uAC8C \uAD6C\uC131\uD588\uC2B5\uB2C8\uB2E4.)`},onSelect:{type:sn.EventHandler}};import{ControlType as Md}from"framer";var HX={page:{type:Md.Number,title:"Page",defaultValue:1,description:"\uD604\uC7AC \uD398\uC774\uC9C0"},rowCount:{type:Md.Number,title:"Row count",defaultValue:20,description:"\uCD1D \uD589 \uC218"},pageSize:{type:Md.Number,title:"Page size",defaultValue:25,description:"\uD55C \uD398\uC774\uC9C0\uC5D0 \uD45C\uC2DC\uD560 \uD589 \uC218"},size:{type:Md.Enum,title:"Size",options:["sm","md","lg"],defaultValue:"md"},onPageChange:{type:Md.EventHandler}};import{ControlType as ln}from"framer";var UX={label:{title:"Label",type:ln.String},placeholder:{title:"Placeholder",type:ln.String,defaultValue:"Enter a percentage"},helperText:{title:"Helper Text",type:ln.String},error:{title:"Error",type:ln.Boolean,defaultValue:!1},size:{title:"Size",type:ln.Enum,options:["sm","md","lg"],optionTitles:["Small","Medium","Large"]},value:{title:"Value",type:ln.Number,defaultValue:void 0},onChange:{type:ln.EventHandler},disabled:{title:"Disabled",type:ln.Boolean,defaultValue:!1},required:{title:"Required",type:ln.Boolean,defaultValue:!1},min:{title:"Minimum",type:ln.Number,defaultValue:void 0,description:"\uCD5C\uC18C \uD37C\uC13C\uD2B8 \uAC12\uC744 \uC124\uC815\uD569\uB2C8\uB2E4."},max:{title:"Maximum",type:ln.Number,defaultValue:void 0,description:"\uCD5C\uB300 \uD37C\uC13C\uD2B8 \uAC12\uC744 \uC124\uC815\uD569\uB2C8\uB2E4."},maxDecimalScale:{title:"Maximum Decimal Scale",type:ln.Number,defaultValue:0,description:"\uC18C\uC218\uC810 \uC774\uD558 \uCD5C\uB300 \uC790\uB9AC\uC218\uB97C \uC124\uC815\uD569\uB2C8\uB2E4."}};import{ControlType as La}from"framer";var WX={name:{title:"Name",type:La.String,defaultValue:"John Gordon",description:"\uC774\uB984 \uC785\uB825\uB780\uC785\uB2C8\uB2E4.ProfileCard\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4."},src:{title:"Image source",type:La.String,defaultValue:"",description:`\uC774\uBBF8\uC9C0 URL \uC785\uB825\uB780\uC785\uB2C8\uB2E4.
|
|
148
148
|
Avatar \uC0DD\uC131 \uC2DC 1\uC21C\uC704\uB85C \uACE0\uB824\uB429\uB2C8\uB2E4.`},alt:{title:"Image alt text",type:La.String,defaultValue:"",description:`\uB300\uCCB4 \uD14D\uC2A4\uD2B8 \uC785\uB825\uB780\uC785\uB2C8\uB2E4.
|
|
149
|
-
Avatar \uC0DD\uC131 \uC2DC 3\uC21C\uC704\uB85C \uACE0\uB824\uB429\uB2C8\uB2E4.`},caption:{title:"Caption",type:La.String,defaultValue:"j.gordon@haulla.com",description:"ProfileCard \uD558\uB2E8\uC5D0 \uD45C\uC2DC\uB418\uB294 caption\uC785\uB2C8\uB2E4."},chip:{title:"Chip",type:La.String,defaultValue:"PDT",description:"ProfileCard\uC5D0 \uD45C\uC2DC\uB418\uB294 chip\uC785\uB2C8\uB2E4."},size:{type:La.Enum,options:["sm","md"],defaultValue:"md"},items:{title:"Items",type:La.Array,control:{type:La.Object,controls:{text:{type:La.String}}},defaultValue:[]}};import{ControlType as ol}from"framer";var GX={orientation:{title:"Orientation",type:ol.Enum,options:["vertical","horizontal"],defaultValue:"vertical"},defaultValue:{title:"Checked Value",type:ol.String,defaultValue:"value1"},items:{title:"Items",type:ol.Array,control:{type:ol.Object,controls:{displayName:{title:"Display Name",type:ol.String},value:{title:"Value",type:ol.String},color:{title:"Color",type:ol.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]}}},defaultValue:[{displayName:"Value 1",value:"value1",color:"primary"},{displayName:"Value 2",value:"value2",color:"primary"},{displayName:"Value 3",value:"value3",color:"primary"},{displayName:"Value 4",value:"value4",color:"primary"},{displayName:"Value 5",value:"value5",color:"primary"},{displayName:"Value 6",value:"value6",color:"primary"}]}};import{ControlType as bB}from"framer";var YX={color:{title:"Color",type:bB.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:bB.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"}};import{ControlType as Ug}from"framer";var JX={animation:{title:"Animation type",type:Ug.Enum,options:["wave","pulse"]},variant:{title:"Variant",type:Ug.Enum,options:["circular","rectangular"],defaultValue:"rectangular"},target:{title:"Target",type:Ug.ComponentInstance},loading:{title:"Loading",type:Ug.Boolean,defaultValue:!1}};import{ControlType as uo}from"framer";var qX={size:{type:uo.Enum,options:["sm","md","lg"],defaultValue:"sm"},disabled:{title:"Disabled",type:uo.Boolean,defaultValue:!1},color:{title:"Color",type:uo.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:uo.Enum,options:["solid","outlined","soft","plain"]},orientation:{title:"Orientation",type:uo.Enum,options:["horizontal","vertical"],defaultValue:"horizontal"},valueLabelDisplay:{title:"Value Label Display",type:uo.Enum,options:["on","off","auto"],defaultValue:"auto"},min:{title:"Min",type:uo.Number,defaultValue:0},max:{title:"Max",type:uo.Number,defaultValue:100},step:{title:"Step",type:uo.Number,defaultValue:1},defaultValue:{title:"Value",type:uo.Number,defaultValue:0},marks:{title:"Marks",type:uo.Array,description:"\uC2AC\uB77C\uC774\uB4DC \uBC14\uC5D0 \uD45C\uC2DC\uD560 \uB9C8\uD06C\uB4E4\uC744 \uC124\uC815\uD569\uB2C8\uB2E4. \uD45C\uC2DC\uD560 \uB9C8\uD06C\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uBAA8\uB4E0 \uD56D\uBAA9\uC744 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",control:{type:uo.Object,controls:{value:{title:"Value",type:uo.Number},label:{title:"Label",type:uo.String}}},defaultValue:[{value:0,label:"0"},{value:50,label:"50"},{value:100,label:"100"}]}};import{ControlType as Zn}from"framer";var KX={steps:{type:Zn.Array,control:{type:Zn.Object,controls:{label:{type:Zn.String,title:"Label"},extraContent:{type:Zn.String,title:"Extra Content"},indicatorContent:{type:Zn.String,title:"Indicator Content"}}},defaultValue:[{label:"Step 1",extraContent:"Step 1 extra content",indicatorContent:"1"},{label:"Step 2",extraContent:"Step 2 extra content",indicatorContent:"2"},{label:"Step 3",extraContent:"Step 3 extra content",indicatorContent:"3"}]},activeStep:{type:Zn.Number,title:"Active Step",defaultValue:0},activeColor:{title:"Active Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},activeLineColor:{title:"Active Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},inactiveColor:{title:"Inactive Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.400"},inactiveLineColor:{title:"Inactive Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.300"}};import{ControlType as Nd}from"framer";var XX={onChange:{title:"onChange",type:Nd.EventHandler},disabled:{title:"Disabled",type:Nd.Boolean,defaultValue:!1},color:{title:"Color",type:Nd.Enum,options:[void 0,"primary","neutral","danger","success","warning"],optionTitles:["Auto","Primary","Neutral","Danger","Success","Warning"],description:"\uC0C9\uC0C1\uC744 \uC9C0\uC815\uD558\uBA74 Checked \uC0C1\uD0DC\uC5D0 \uAD00\uACC4 \uC5C6\uC774 \uC0C9\uC0C1\uC774 \uACE0\uC815\uB429\uB2C8\uB2E4."},variant:{title:"Variant",type:Nd.Enum,options:["solid","outlined","soft","plain"],defaultValue:void 0},size:{title:"Size",type:Nd.Enum,options:["sm","md","lg"],defaultValue:"md"}};import{ControlType as Do}from"framer";var ZX={color:{title:"Color",type:Do.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},size:{title:"Size",type:Do.Enum,options:["sm","md","lg"],defaultValue:"md"},variant:{title:"Variant",type:Do.Enum,options:["outlined","plain","solid","soft"],defaultValue:"plain"},orientation:{type:Do.Enum,options:["horizontal","vertical"]},disableUnderline:{type:Do.Boolean,defaultValue:!1},disableIndicator:{type:Do.Boolean,defaultValue:!1},indicatorInset:{type:Do.Boolean,defaultValue:!1},tabs:{type:Do.Array,control:{type:Do.Object,controls:{title:{type:Do.String},disabled:{type:Do.Boolean,defaultValue:!1}}}},contents:{title:"Contents",type:Do.Array,control:{type:Do.ComponentInstance}}};import{ControlType as to}from"framer";var QX={label:{title:"Label",type:to.String},error:{title:"Error",type:to.Boolean,defaultValue:!1},helperText:{title:"Helper Text",type:to.String},onChange:{type:to.EventHandler},disabled:{title:"Disabled",type:to.Boolean,defaultValue:!1},required:{title:"Required",type:to.Boolean,defaultValue:!1},color:{title:"Color",type:to.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"],defaultValue:"neutral"},variant:{title:"Variant",type:to.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"},defaultValue:{title:"Value",type:to.String,defaultValue:""},placeholder:{title:"Placeholder",type:to.String,defaultValue:"Type in here..."},endDecorator:{title:"End Decorator",type:to.ComponentInstance},startDecorator:{title:"Start Decorator",type:to.ComponentInstance},size:{title:"Size",type:to.Enum,options:["sm","md","lg"],defaultValue:"md"},minRows:{title:"Min Rows",type:to.Number,defaultValue:void 0},maxRows:{title:"Max Rows",type:to.Number,defaultValue:void 0}};import{ControlType as nl}from"framer";var eZ={textAlign:{title:"Text Align",type:nl.Enum,options:[void 0,"start","center","end"],optionTitles:["None","Start","Center","End"],defaultValue:void 0},level:{title:"Level",type:nl.Enum,options:["h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","inherit"],defaultValue:"body-md"},textColor:{title:"Text Color",type:nl.Enum,options:["background.backdrop","background.body","background.level1","background.level2","background.level3","background.popup","background.surface","background.tooltip","common.black","common.white","danger.50","danger.100","danger.200","danger.300","danger.400","danger.500","danger.600","danger.700","danger.800","danger.900","danger.darkChannel","danger.lightChannel","danger.mainChannel","danger.outlinedActiveBg","danger.outlinedBorder","danger.outlinedColor","danger.outlinedDisabledBorder","danger.outlinedDisabledColor","danger.outlinedHoverBg","danger.plainActiveBg","danger.plainColor","danger.plainDisabledColor","danger.plainHoverBg","danger.softActiveBg","danger.softActiveColor","danger.softBg","danger.softColor","danger.softDisabledBg","danger.softDisabledColor","danger.softHoverBg","danger.solidActiveBg","danger.solidBg","danger.solidColor","danger.solidDisabledBg","danger.solidDisabledColor","danger.solidHoverBg","divider","focusVisible","mode","neutral.50","neutral.100","neutral.200","neutral.300","neutral.400","neutral.500","neutral.600","neutral.700","neutral.800","neutral.900","neutral.darkChannel","neutral.lightChannel","neutral.mainChannel","neutral.outlinedActiveBg","neutral.outlinedBorder","neutral.outlinedColor","neutral.outlinedDisabledBorder","neutral.outlinedDisabledColor","neutral.outlinedHoverBg","neutral.plainActiveBg","neutral.plainColor","neutral.plainDisabledColor","neutral.plainHoverBg","neutral.plainHoverColor","neutral.softActiveBg","neutral.softActiveColor","neutral.softBg","neutral.softColor","neutral.softDisabledBg","neutral.softDisabledColor","neutral.softHoverBg","neutral.solidActiveBg","neutral.solidBg","neutral.solidColor","neutral.solidDisabledBg","neutral.solidDisabledColor","neutral.solidHoverBg","primary.50","primary.100","primary.200","primary.300","primary.400","primary.500","primary.600","primary.700","primary.800","primary.900","primary.darkChannel","primary.lightChannel","primary.mainChannel","primary.outlinedActiveBg","primary.outlinedBorder","primary.outlinedColor","primary.outlinedDisabledBorder","primary.outlinedDisabledColor","primary.outlinedHoverBg","primary.plainActiveBg","primary.plainColor","primary.plainDisabledColor","primary.plainHoverBg","primary.softActiveBg","primary.softActiveColor","primary.softBg","primary.softColor","primary.softDisabledBg","primary.softDisabledColor","primary.softHoverBg","primary.solidActiveBg","primary.solidBg","primary.solidColor","primary.solidDisabledBg","primary.solidDisabledColor","primary.solidHoverBg","success.50","success.100","success.200","success.300","success.400","success.500","success.600","success.700","success.800","success.900","success.darkChannel","success.lightChannel","success.mainChannel","success.outlinedActiveBg","success.outlinedBorder","success.outlinedColor","success.outlinedDisabledBorder","success.outlinedDisabledColor","success.outlinedHoverBg","success.plainActiveBg","success.plainColor","success.plainDisabledColor","success.plainHoverBg","success.softActiveBg","success.softActiveColor","success.softBg","success.softColor","success.softDisabledBg","success.softDisabledColor","success.softHoverBg","success.solidActiveBg","success.solidBg","success.solidColor","success.solidDisabledBg","success.solidDisabledColor","success.solidHoverBg","text.icon","text.primary","text.secondary","text.tertiary","warning.50","warning.100","warning.200","warning.300","warning.400","warning.500","warning.600","warning.700","warning.800","warning.900","warning.darkChannel","warning.lightChannel","warning.mainChannel","warning.outlinedActiveBg","warning.outlinedBorder","warning.outlinedColor","warning.outlinedDisabledBorder","warning.outlinedDisabledColor","warning.outlinedHoverBg","warning.plainActiveBg","warning.plainColor","warning.plainDisabledColor","warning.plainHoverBg","warning.softActiveBg","warning.softActiveColor","warning.softBg","warning.softColor","warning.softDisabledBg","warning.softDisabledColor","warning.softHoverBg","warning.solidActiveBg","warning.solidBg","warning.solidColor","warning.solidDisabledBg","warning.solidDisabledColor","warning.solidHoverBg"],defaultValue:"inherit"},fontWeight:{title:"Font Weight",type:nl.Enum,options:[void 0,"700","600","500","400"],optionTitles:["Recommend","Bold","Semibold","Medium","Regular"],defaultValue:void 0},text:{title:"Text",type:nl.String,defaultValue:"Typography",displayTextArea:!0},endDecorator:{title:"End Decorator",type:nl.ComponentInstance},startDecorator:{title:"Start Decorator",type:nl.ComponentInstance}};var rgt={useNumbering:{title:"\u{1F4AB} Numbering",type:fo.Boolean,defaultValue:!1},numbering:{title:" ",type:fo.Number,defaultValue:1,hidden:({useNumbering:e})=>!e},useResponsiveMargin:{title:"\u{1F4AB} Responsive Margin",type:fo.Boolean,defaultValue:!1},responsiveMargin:{title:" ",type:fo.Object,buttonTitle:"Set Margin",hidden:({useResponsiveMargin:e})=>!e,controls:{xs:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xsMixed",toggleTitles:["All","Individual"],valueKeys:["xsMarginTop","xsMarginRight","xsMarginBottom","xsMarginLeft"],valueLabels:["T","R","B","L"]},sm:{type:fo.FusedNumber,defaultValue:0,toggleKey:"smMixed",toggleTitles:["All","Individual"],valueKeys:["smMarginTop","smMarginRight","smMarginBottom","smMarginLeft"],valueLabels:["T","R","B","L"]},md:{type:fo.FusedNumber,defaultValue:0,toggleKey:"mdMixed",toggleTitles:["All","Individual"],valueKeys:["mdMarginTop","mdMarginRight","mdMarginBottom","mdMarginLeft"],valueLabels:["T","R","B","L"]},lg:{type:fo.FusedNumber,defaultValue:0,toggleKey:"lgMixed",toggleTitles:["All","Individual"],valueKeys:["lgMarginTop","lgMarginRight","lgMarginBottom","lgMarginLeft"],valueLabels:["T","R","B","L"]},xl:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xlMixed",toggleTitles:["All","Individual"],valueKeys:["xlMarginTop","xlMarginRight","xlMarginBottom","xlMarginLeft"],valueLabels:["T","R","B","L"]}}}},nZ=e=>n=>{var a=n,{useResponsiveMargin:t,responsiveMargin:r}=a,o=he(a,["useResponsiveMargin","responsiveMargin"]);let[i,s]=TB({}),l=()=>{r!=null&&r.xsMixed?s({marginLeft:r==null?void 0:r.xsMarginLeft,marginRight:r==null?void 0:r.xsMarginRight,marginTop:r==null?void 0:r.xsMarginTop,marginBottom:r==null?void 0:r.xsMarginBottom}):s({margin:r==null?void 0:r.xs})},p=()=>{r!=null&&r.smMixed?s({marginLeft:r==null?void 0:r.smMarginLeft,marginRight:r==null?void 0:r.smMarginRight,marginTop:r==null?void 0:r.smMarginTop,marginBottom:r==null?void 0:r.smMarginBottom}):s({margin:r==null?void 0:r.sm})},c=()=>{r!=null&&r.mdMixed?s({marginLeft:r==null?void 0:r.mdMarginLeft,marginRight:r==null?void 0:r.mdMarginRight,marginTop:r==null?void 0:r.mdMarginTop,marginBottom:r==null?void 0:r.mdMarginBottom}):s({margin:r==null?void 0:r.md})},u=()=>{r!=null&&r.lgMixed?s({marginLeft:r==null?void 0:r.lgMarginLeft,marginRight:r==null?void 0:r.lgMarginRight,marginTop:r==null?void 0:r.lgMarginTop,marginBottom:r==null?void 0:r.lgMarginBottom}):s({margin:r==null?void 0:r.lg})},d=()=>{r!=null&&r.xlMixed?s({marginLeft:r==null?void 0:r.xlMarginLeft,marginRight:r==null?void 0:r.xlMarginRight,marginTop:r==null?void 0:r.xlMarginTop,marginBottom:r==null?void 0:r.xlMarginBottom}):s({margin:r==null?void 0:r.xl})};return t?Wg(lZ,{onXsChange:l,onSmChange:p,onMdChange:c,onLgChange:u,onXlChange:d,children:Wg(e,Q(z({},o),{sx:i}))}):Wg(e,o)},ogt=e=>{let t=nZ(e);return a=>{var i=a,{useNumbering:r,numbering:o}=i,n=he(i,["useNumbering","numbering"]);let s=[{Component:t,props:n}];return r&&s.push({Component:Kc,props:{color:"neutral",badgeContent:o,style:{display:"inherit"},anchorOrigin:{vertical:"top",horizontal:"left"}}}),s.reduce((l,{Component:p,props:c})=>[tZ.createElement(p,c,...l)],[])}},aZ=(e,t)=>{xB(()=>{let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[e])},iZ=e=>{let t=nb(),[r,o]=TB("xs");return aZ(e,()=>{o(t.breakpoints.keys.reduce((n,a)=>{let i=t.breakpoints.values[a];return e.offsetWidth>=i?a:n},"xs"))}),r},sZ=e=>{let t=rZ(()=>{var r;return((r=PB(e==null?void 0:e.current,".groundNodeWrapper"))==null?void 0:r.querySelector("div[id]"))||document.querySelector("#canvas-container .groundNodeWrapper > div[id]")||document.body},[document,e==null?void 0:e.current]);return iZ(t)},lZ=e=>{let{children:t,onXsChange:r,onSmChange:o,onMdChange:n,onLgChange:a,onXlChange:i}=e,s=oZ(null),l=sZ(s);return xB(()=>{if(l==="xl"&&i){i();return}else if(l==="lg"&&a){a();return}else if(l==="md"&&n){n();return}else if(l==="sm"&&o){o();return}else if(l==="xs"&&r){r();return}},[l,r,o,n,a,i]),Wg("div",{ref:s,style:{width:0,height:0,position:"sticky",display:"none"}})};function PB(e,t){return e?e.matches(t)?e:PB(e.parentElement,t):null}var ngt={onXsChange:{title:"onXsChange",type:fo.EventHandler},onSmChange:{title:"onSmChange",type:fo.EventHandler},onMdChange:{title:"onMdChange",type:fo.EventHandler},onLgChange:{title:"onLgChange",type:fo.EventHandler},onXlChange:{title:"onXlChange",type:fo.EventHandler}};export{$h as Accordion,Vh as AccordionDetails,Fh as AccordionSummary,Ex as Accordions,Ix as Alert,Gb as AspectRatio,Su as Autocomplete,Gc as AutocompleteListbox,Yc as AutocompleteOption,oy as Avatar,qc as AvatarGroup,Kc as Badge,ku as Box,jx as Breadcrumbs,Eu as Button,sx as ButtonGroup,Iu as Calendar,Du as Card,Jx as CardActions,Gx as CardContent,Yx as CardCover,qx as CardOverflow,_u as Checkbox,Vs as Chip,Sn as CircularProgress,Kx as Container,pp as CssBaseline,ky as CurrencyInput,ST as DataTable,Ly as DatePicker,kT as DateRangePicker,Ju as DialogActions,td as DialogContent,DT as DialogFrame,rd as DialogTitle,nd as Divider,tu as Drawer,Ru as Dropdown,bu as FormControl,Tu as FormHelperText,xu as FormLabel,ru as Grid,Pu as IconButton,Vy as InfoSign,$u as Input,_T as InsetDrawer,nu as LinearProgress,xa as Link,Hc as List,su as ListDivider,ua as ListItem,Uc as ListItemButton,hx as ListItemContent,Oi as ListItemDecorator,Is as ListSubheader,nP as Markdown,Ra as Menu,iP as MenuButton,Ea as MenuItem,ET as Modal,Gy as ModalClose,od as ModalDialog,OT as ModalFrame,IT as ModalOverflow,tB as MonthPicker,lP as MonthRangePicker,Ng as NavigationGroup,Lg as NavigationItem,pP as Navigator,zy as Option,Qu as Pagination,cP as PercentageInput,zg as ProfileMenu,Dd as Radio,_d as RadioGroup,uP as RadioList,lZ as ResponsiveEmitter,Xu as Select,ju as Sheet,bx as Skeleton,Tx as Slider,Zo as Stack,Fg as Step,Px as StepButton,Vg as StepIndicator,dP as Stepper,fP as Switch,hP as Tab,yP as TabList,gP as TabPanel,Hu as Table,hT as TableBody,mT as TableHead,mP as Tabs,Ku as Textarea,bP as ThemeProvider,Zu as Tooltip,Cr as Typography,nw as Uploader,hm as accordionClasses,Vn as accordionDetailsClasses,da as accordionSummaryClasses,BR as accordionsClasses,hX as accordionsPropertyControls,KR as alertClasses,yX as alertPropertyControls,eE as aspectRatioClasses,kn as autocompleteClasses,EE as autocompleteListboxClasses,_E as autocompleteOptionClasses,xP as autocompletePropertyControls,LE as avatarClasses,FE as avatarGroupClasses,gX as avatarPropertyControls,Am as badgeClasses,vX as badgePropertyControls,Bm as boxClasses,UE as breadcrumbsClasses,bX as breadcrumbsPropertyControls,lo as buttonClasses,TX as buttonGroupPropertyControls,xX as buttonPropertyControls,SX as calendarPropertyControls,tI as cardActionsClasses,Rn as cardClasses,iI as cardContentClasses,pI as cardCoverClasses,Si as cardOverflowClasses,En as checkboxClasses,CX as checkboxPropertyControls,Ql as chipClasses,kX as chipPropertyControls,lE as circularProgressClasses,rgt as commonPropertyControls,PX as containerPropertyControls,RX as currencyInputPropertyControls,EX as dataTablePropertyControls,IX as datePickerPropertyControls,OX as dateRangePickerPropertyControls,bI as dialogActionsClasses,PI as dialogContentClasses,DX as dialogFramePropertyControls,cp as dialogTitleClasses,Fm as dividerClasses,_X as dividerPropertyControls,wI as drawerClasses,ei as extendTheme,_s as formControlClasses,wX as formControlPropertyControls,LI as formHelperTextClasses,eh as formLabelClasses,VI as gridClasses,Es as iconButtonClasses,BX as iconButtonPropertyControls,MX as infoSignPropertyControls,qo as inputClasses,NX as inputPropertyControls,jI as linearProgressClasses,au as linkClasses,PP as linkPropertyControls,bm as listClasses,qI as listDividerClasses,fa as listItemButtonClasses,ca as listItemClasses,XI as listItemContentClasses,e1 as listItemDecoratorClasses,SE as listSubheaderClasses,LX as markdownPropertyControls,a1 as menuButtonClasses,zX as menuButtonPropertyControls,r1 as menuClasses,lh as menuItemClasses,OI as modalClasses,l1 as modalCloseClasses,va as modalDialogClasses,FX as modalFramePropertyControls,f1 as modalOverflowClasses,VX as monthPickerPropertyControls,$X as monthRangePickerPropertyControls,jX as navigatorPropertyControls,hh as optionClasses,HX as paginationPropertyControls,UX as percentageInputPropertyControls,WX as profileMenuPropertyControls,_i as radioClasses,v1 as radioGroupClasses,GX as radioListPropertyControls,ngt as responsiveEmitterPropertyControls,Pa as selectClasses,TP as selectPropertyControls,S1 as sheetClasses,YX as sheetPropertyControls,E1 as skeletonClasses,JX as skeletonPropertyControls,hp as sliderClasses,qX as sliderPropertyControls,U1 as stackClasses,Sh as stepButtonClasses,Lr as stepClasses,On as stepperClasses,KX as stepperPropertyControls,Un as switchClasses,XX as switchPropertyControls,eO as tabListClasses,rO as tabPanelClasses,q1 as tableClasses,aO as tabsClasses,ZX as tabsPropertyControls,mu as textareaClasses,QX as textareaPropertyControls,vP as theme,Mh as tooltipClasses,GE as typographyClasses,eZ as typographyPropertyControls,AX as uploaderPropertyControls,sZ as useCanvasResponsive,ak as useColorScheme,iZ as useResponsive,nb as useTheme,G as useThemeProps,ogt as withCommonControls};
|
|
149
|
+
Avatar \uC0DD\uC131 \uC2DC 3\uC21C\uC704\uB85C \uACE0\uB824\uB429\uB2C8\uB2E4.`},caption:{title:"Caption",type:La.String,defaultValue:"j.gordon@haulla.com",description:"ProfileCard \uD558\uB2E8\uC5D0 \uD45C\uC2DC\uB418\uB294 caption\uC785\uB2C8\uB2E4."},chip:{title:"Chip",type:La.String,defaultValue:"PDT",description:"ProfileCard\uC5D0 \uD45C\uC2DC\uB418\uB294 chip\uC785\uB2C8\uB2E4."},size:{type:La.Enum,options:["sm","md"],defaultValue:"md"},items:{title:"Items",type:La.Array,control:{type:La.Object,controls:{text:{type:La.String}}},defaultValue:[]}};import{ControlType as ol}from"framer";var GX={orientation:{title:"Orientation",type:ol.Enum,options:["vertical","horizontal"],defaultValue:"vertical"},defaultValue:{title:"Checked Value",type:ol.String,defaultValue:"value1"},items:{title:"Items",type:ol.Array,control:{type:ol.Object,controls:{displayName:{title:"Display Name",type:ol.String},value:{title:"Value",type:ol.String},color:{title:"Color",type:ol.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]}}},defaultValue:[{displayName:"Value 1",value:"value1",color:"primary"},{displayName:"Value 2",value:"value2",color:"primary"},{displayName:"Value 3",value:"value3",color:"primary"},{displayName:"Value 4",value:"value4",color:"primary"},{displayName:"Value 5",value:"value5",color:"primary"},{displayName:"Value 6",value:"value6",color:"primary"}]}};import{ControlType as bB}from"framer";var YX={color:{title:"Color",type:bB.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:bB.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"}};import{ControlType as Ug}from"framer";var JX={animation:{title:"Animation type",type:Ug.Enum,options:["wave","pulse"]},variant:{title:"Variant",type:Ug.Enum,options:["circular","rectangular"],defaultValue:"rectangular"},target:{title:"Target",type:Ug.ComponentInstance},loading:{title:"Loading",type:Ug.Boolean,defaultValue:!1}};import{ControlType as uo}from"framer";var qX={size:{type:uo.Enum,options:["sm","md","lg"],defaultValue:"sm"},disabled:{title:"Disabled",type:uo.Boolean,defaultValue:!1},color:{title:"Color",type:uo.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},variant:{title:"Variant",type:uo.Enum,options:["solid","outlined","soft","plain"]},orientation:{title:"Orientation",type:uo.Enum,options:["horizontal","vertical"],defaultValue:"horizontal"},valueLabelDisplay:{title:"Value Label Display",type:uo.Enum,options:["on","off","auto"],defaultValue:"auto"},min:{title:"Min",type:uo.Number,defaultValue:0},max:{title:"Max",type:uo.Number,defaultValue:100},step:{title:"Step",type:uo.Number,defaultValue:1},defaultValue:{title:"Value",type:uo.Number,defaultValue:0},marks:{title:"Marks",type:uo.Array,description:"\uC2AC\uB77C\uC774\uB4DC \uBC14\uC5D0 \uD45C\uC2DC\uD560 \uB9C8\uD06C\uB4E4\uC744 \uC124\uC815\uD569\uB2C8\uB2E4. \uD45C\uC2DC\uD560 \uB9C8\uD06C\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uBAA8\uB4E0 \uD56D\uBAA9\uC744 \uC81C\uAC70 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",control:{type:uo.Object,controls:{value:{title:"Value",type:uo.Number},label:{title:"Label",type:uo.String}}},defaultValue:[{value:0,label:"0"},{value:50,label:"50"},{value:100,label:"100"}]}};import{ControlType as Zn}from"framer";var KX={steps:{type:Zn.Array,control:{type:Zn.Object,controls:{label:{type:Zn.String,title:"Label"},extraContent:{type:Zn.String,title:"Extra Content"},indicatorContent:{type:Zn.String,title:"Indicator Content"}}},defaultValue:[{label:"Step 1",extraContent:"Step 1 extra content",indicatorContent:"1"},{label:"Step 2",extraContent:"Step 2 extra content",indicatorContent:"2"},{label:"Step 3",extraContent:"Step 3 extra content",indicatorContent:"3"}]},activeStep:{type:Zn.Number,title:"Active Step",defaultValue:0},activeColor:{title:"Active Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},activeLineColor:{title:"Active Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"primary.500"},inactiveColor:{title:"Inactive Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.400"},inactiveLineColor:{title:"Inactive Line Color",type:Zn.Enum,options:["inherit","common.white","common.black","primary.600","primary.500","primary.400","primary.300","primary.200","primary.100","success.600","success.500","success.400","success.300","success.200","success.100","warning.600","warning.500","warning.400","warning.300","warning.200","warning.100","neutral.600","neutral.500","neutral.400","neutral.300","neutral.200","neutral.100"],defaultValue:"neutral.300"}};import{ControlType as Nd}from"framer";var XX={onChange:{title:"onChange",type:Nd.EventHandler},disabled:{title:"Disabled",type:Nd.Boolean,defaultValue:!1},color:{title:"Color",type:Nd.Enum,options:[void 0,"primary","neutral","danger","success","warning"],optionTitles:["Auto","Primary","Neutral","Danger","Success","Warning"],description:"\uC0C9\uC0C1\uC744 \uC9C0\uC815\uD558\uBA74 Checked \uC0C1\uD0DC\uC5D0 \uAD00\uACC4 \uC5C6\uC774 \uC0C9\uC0C1\uC774 \uACE0\uC815\uB429\uB2C8\uB2E4."},variant:{title:"Variant",type:Nd.Enum,options:["solid","outlined","soft","plain"],defaultValue:void 0},size:{title:"Size",type:Nd.Enum,options:["sm","md","lg"],defaultValue:"md"}};import{ControlType as Do}from"framer";var ZX={color:{title:"Color",type:Do.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"]},size:{title:"Size",type:Do.Enum,options:["sm","md","lg"],defaultValue:"md"},variant:{title:"Variant",type:Do.Enum,options:["outlined","plain","solid","soft"],defaultValue:"plain"},orientation:{type:Do.Enum,options:["horizontal","vertical"]},disableUnderline:{type:Do.Boolean,defaultValue:!1},disableIndicator:{type:Do.Boolean,defaultValue:!1},indicatorInset:{type:Do.Boolean,defaultValue:!1},tabs:{type:Do.Array,control:{type:Do.Object,controls:{title:{type:Do.String},disabled:{type:Do.Boolean,defaultValue:!1}}}},contents:{title:"Contents",type:Do.Array,control:{type:Do.ComponentInstance}}};import{ControlType as to}from"framer";var QX={label:{title:"Label",type:to.String},error:{title:"Error",type:to.Boolean,defaultValue:!1},helperText:{title:"Helper Text",type:to.String},onChange:{type:to.EventHandler},disabled:{title:"Disabled",type:to.Boolean,defaultValue:!1},required:{title:"Required",type:to.Boolean,defaultValue:!1},color:{title:"Color",type:to.Enum,options:["primary","neutral","danger","success","warning"],optionTitles:["Primary","Neutral","Danger","Success","Warning"],defaultValue:"neutral"},variant:{title:"Variant",type:to.Enum,options:["solid","outlined","soft","plain"],defaultValue:"outlined"},defaultValue:{title:"Value",type:to.String,defaultValue:""},placeholder:{title:"Placeholder",type:to.String,defaultValue:"Type in here..."},endDecorator:{title:"End Decorator",type:to.ComponentInstance},startDecorator:{title:"Start Decorator",type:to.ComponentInstance},size:{title:"Size",type:to.Enum,options:["sm","md","lg"],defaultValue:"md"},minRows:{title:"Min Rows",type:to.Number,defaultValue:void 0},maxRows:{title:"Max Rows",type:to.Number,defaultValue:void 0}};import{ControlType as nl}from"framer";var eZ={textAlign:{title:"Text Align",type:nl.Enum,options:[void 0,"start","center","end"],optionTitles:["None","Start","Center","End"],defaultValue:void 0},level:{title:"Level",type:nl.Enum,options:["h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","inherit"],defaultValue:"body-md"},textColor:{title:"Text Color",type:nl.Enum,options:["background.backdrop","background.body","background.level1","background.level2","background.level3","background.popup","background.surface","background.tooltip","common.black","common.white","danger.50","danger.100","danger.200","danger.300","danger.400","danger.500","danger.600","danger.700","danger.800","danger.900","danger.darkChannel","danger.lightChannel","danger.mainChannel","danger.outlinedActiveBg","danger.outlinedBorder","danger.outlinedColor","danger.outlinedDisabledBorder","danger.outlinedDisabledColor","danger.outlinedHoverBg","danger.plainActiveBg","danger.plainColor","danger.plainDisabledColor","danger.plainHoverBg","danger.softActiveBg","danger.softActiveColor","danger.softBg","danger.softColor","danger.softDisabledBg","danger.softDisabledColor","danger.softHoverBg","danger.solidActiveBg","danger.solidBg","danger.solidColor","danger.solidDisabledBg","danger.solidDisabledColor","danger.solidHoverBg","divider","focusVisible","mode","neutral.50","neutral.100","neutral.200","neutral.300","neutral.400","neutral.500","neutral.600","neutral.700","neutral.800","neutral.900","neutral.darkChannel","neutral.lightChannel","neutral.mainChannel","neutral.outlinedActiveBg","neutral.outlinedBorder","neutral.outlinedColor","neutral.outlinedDisabledBorder","neutral.outlinedDisabledColor","neutral.outlinedHoverBg","neutral.plainActiveBg","neutral.plainColor","neutral.plainDisabledColor","neutral.plainHoverBg","neutral.plainHoverColor","neutral.softActiveBg","neutral.softActiveColor","neutral.softBg","neutral.softColor","neutral.softDisabledBg","neutral.softDisabledColor","neutral.softHoverBg","neutral.solidActiveBg","neutral.solidBg","neutral.solidColor","neutral.solidDisabledBg","neutral.solidDisabledColor","neutral.solidHoverBg","primary.50","primary.100","primary.200","primary.300","primary.400","primary.500","primary.600","primary.700","primary.800","primary.900","primary.darkChannel","primary.lightChannel","primary.mainChannel","primary.outlinedActiveBg","primary.outlinedBorder","primary.outlinedColor","primary.outlinedDisabledBorder","primary.outlinedDisabledColor","primary.outlinedHoverBg","primary.plainActiveBg","primary.plainColor","primary.plainDisabledColor","primary.plainHoverBg","primary.softActiveBg","primary.softActiveColor","primary.softBg","primary.softColor","primary.softDisabledBg","primary.softDisabledColor","primary.softHoverBg","primary.solidActiveBg","primary.solidBg","primary.solidColor","primary.solidDisabledBg","primary.solidDisabledColor","primary.solidHoverBg","success.50","success.100","success.200","success.300","success.400","success.500","success.600","success.700","success.800","success.900","success.darkChannel","success.lightChannel","success.mainChannel","success.outlinedActiveBg","success.outlinedBorder","success.outlinedColor","success.outlinedDisabledBorder","success.outlinedDisabledColor","success.outlinedHoverBg","success.plainActiveBg","success.plainColor","success.plainDisabledColor","success.plainHoverBg","success.softActiveBg","success.softActiveColor","success.softBg","success.softColor","success.softDisabledBg","success.softDisabledColor","success.softHoverBg","success.solidActiveBg","success.solidBg","success.solidColor","success.solidDisabledBg","success.solidDisabledColor","success.solidHoverBg","text.icon","text.primary","text.secondary","text.tertiary","warning.50","warning.100","warning.200","warning.300","warning.400","warning.500","warning.600","warning.700","warning.800","warning.900","warning.darkChannel","warning.lightChannel","warning.mainChannel","warning.outlinedActiveBg","warning.outlinedBorder","warning.outlinedColor","warning.outlinedDisabledBorder","warning.outlinedDisabledColor","warning.outlinedHoverBg","warning.plainActiveBg","warning.plainColor","warning.plainDisabledColor","warning.plainHoverBg","warning.softActiveBg","warning.softActiveColor","warning.softBg","warning.softColor","warning.softDisabledBg","warning.softDisabledColor","warning.softHoverBg","warning.solidActiveBg","warning.solidBg","warning.solidColor","warning.solidDisabledBg","warning.solidDisabledColor","warning.solidHoverBg"],defaultValue:"inherit"},fontWeight:{title:"Font Weight",type:nl.Enum,options:[void 0,"700","600","500","400"],optionTitles:["Recommend","Bold","Semibold","Medium","Regular"],defaultValue:void 0},text:{title:"Text",type:nl.String,defaultValue:"Typography",displayTextArea:!0},endDecorator:{title:"End Decorator",type:nl.ComponentInstance},startDecorator:{title:"Start Decorator",type:nl.ComponentInstance}};var ogt={useNumbering:{title:"\u{1F4AB} Numbering",type:fo.Boolean,defaultValue:!1},numbering:{title:" ",type:fo.Number,defaultValue:1,hidden:({useNumbering:e})=>!e},useResponsiveMargin:{title:"\u{1F4AB} Responsive Margin",type:fo.Boolean,defaultValue:!1},responsiveMargin:{title:" ",type:fo.Object,buttonTitle:"Set Margin",hidden:({useResponsiveMargin:e})=>!e,controls:{xs:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xsMixed",toggleTitles:["All","Individual"],valueKeys:["xsMarginTop","xsMarginRight","xsMarginBottom","xsMarginLeft"],valueLabels:["T","R","B","L"]},sm:{type:fo.FusedNumber,defaultValue:0,toggleKey:"smMixed",toggleTitles:["All","Individual"],valueKeys:["smMarginTop","smMarginRight","smMarginBottom","smMarginLeft"],valueLabels:["T","R","B","L"]},md:{type:fo.FusedNumber,defaultValue:0,toggleKey:"mdMixed",toggleTitles:["All","Individual"],valueKeys:["mdMarginTop","mdMarginRight","mdMarginBottom","mdMarginLeft"],valueLabels:["T","R","B","L"]},lg:{type:fo.FusedNumber,defaultValue:0,toggleKey:"lgMixed",toggleTitles:["All","Individual"],valueKeys:["lgMarginTop","lgMarginRight","lgMarginBottom","lgMarginLeft"],valueLabels:["T","R","B","L"]},xl:{type:fo.FusedNumber,defaultValue:0,toggleKey:"xlMixed",toggleTitles:["All","Individual"],valueKeys:["xlMarginTop","xlMarginRight","xlMarginBottom","xlMarginLeft"],valueLabels:["T","R","B","L"]}}}},nZ=e=>n=>{var a=n,{useResponsiveMargin:t,responsiveMargin:r}=a,o=he(a,["useResponsiveMargin","responsiveMargin"]);let[i,s]=TB({}),l=()=>{r!=null&&r.xsMixed?s({marginLeft:r==null?void 0:r.xsMarginLeft,marginRight:r==null?void 0:r.xsMarginRight,marginTop:r==null?void 0:r.xsMarginTop,marginBottom:r==null?void 0:r.xsMarginBottom}):s({margin:r==null?void 0:r.xs})},p=()=>{r!=null&&r.smMixed?s({marginLeft:r==null?void 0:r.smMarginLeft,marginRight:r==null?void 0:r.smMarginRight,marginTop:r==null?void 0:r.smMarginTop,marginBottom:r==null?void 0:r.smMarginBottom}):s({margin:r==null?void 0:r.sm})},c=()=>{r!=null&&r.mdMixed?s({marginLeft:r==null?void 0:r.mdMarginLeft,marginRight:r==null?void 0:r.mdMarginRight,marginTop:r==null?void 0:r.mdMarginTop,marginBottom:r==null?void 0:r.mdMarginBottom}):s({margin:r==null?void 0:r.md})},u=()=>{r!=null&&r.lgMixed?s({marginLeft:r==null?void 0:r.lgMarginLeft,marginRight:r==null?void 0:r.lgMarginRight,marginTop:r==null?void 0:r.lgMarginTop,marginBottom:r==null?void 0:r.lgMarginBottom}):s({margin:r==null?void 0:r.lg})},d=()=>{r!=null&&r.xlMixed?s({marginLeft:r==null?void 0:r.xlMarginLeft,marginRight:r==null?void 0:r.xlMarginRight,marginTop:r==null?void 0:r.xlMarginTop,marginBottom:r==null?void 0:r.xlMarginBottom}):s({margin:r==null?void 0:r.xl})};return t?Wg(lZ,{onXsChange:l,onSmChange:p,onMdChange:c,onLgChange:u,onXlChange:d,children:Wg(e,Q(z({},o),{sx:i}))}):Wg(e,o)},ngt=e=>{let t=nZ(e);return a=>{var i=a,{useNumbering:r,numbering:o}=i,n=he(i,["useNumbering","numbering"]);let s=[{Component:t,props:n}];return r&&s.push({Component:Kc,props:{color:"neutral",badgeContent:o,style:{display:"inherit"},anchorOrigin:{vertical:"top",horizontal:"left"}}}),s.reduce((l,{Component:p,props:c})=>[tZ.createElement(p,c,...l)],[])}},aZ=(e,t)=>{xB(()=>{let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[e])},iZ=e=>{let t=nb(),[r,o]=TB("xs");return aZ(e,()=>{o(t.breakpoints.keys.reduce((n,a)=>{let i=t.breakpoints.values[a];return e.offsetWidth>=i?a:n},"xs"))}),r},sZ=e=>{let t=rZ(()=>{var r;return((r=PB(e==null?void 0:e.current,".groundNodeWrapper"))==null?void 0:r.querySelector("div[id]"))||document.querySelector("#canvas-container .groundNodeWrapper > div[id]")||document.body},[document,e==null?void 0:e.current]);return iZ(t)},lZ=e=>{let{children:t,onXsChange:r,onSmChange:o,onMdChange:n,onLgChange:a,onXlChange:i}=e,s=oZ(null),l=sZ(s);return xB(()=>{if(l==="xl"&&i){i();return}else if(l==="lg"&&a){a();return}else if(l==="md"&&n){n();return}else if(l==="sm"&&o){o();return}else if(l==="xs"&&r){r();return}},[l,r,o,n,a,i]),Wg("div",{ref:s,style:{width:0,height:0,position:"sticky",display:"none"}})};function PB(e,t){return e?e.matches(t)?e:PB(e.parentElement,t):null}var agt={onXsChange:{title:"onXsChange",type:fo.EventHandler},onSmChange:{title:"onSmChange",type:fo.EventHandler},onMdChange:{title:"onMdChange",type:fo.EventHandler},onLgChange:{title:"onLgChange",type:fo.EventHandler},onXlChange:{title:"onXlChange",type:fo.EventHandler}};export{$h as Accordion,Vh as AccordionDetails,Fh as AccordionSummary,Ex as Accordions,Ix as Alert,Gb as AspectRatio,Su as Autocomplete,Gc as AutocompleteListbox,Yc as AutocompleteOption,oy as Avatar,qc as AvatarGroup,Kc as Badge,ku as Box,jx as Breadcrumbs,Eu as Button,sx as ButtonGroup,Iu as Calendar,Du as Card,Jx as CardActions,Gx as CardContent,Yx as CardCover,qx as CardOverflow,_u as Checkbox,Vs as Chip,Sn as CircularProgress,Kx as Container,pp as CssBaseline,ky as CurrencyInput,ST as DataTable,Ly as DatePicker,kT as DateRangePicker,Ju as DialogActions,td as DialogContent,DT as DialogFrame,rd as DialogTitle,nd as Divider,tu as Drawer,Ru as Dropdown,bu as FormControl,Tu as FormHelperText,xu as FormLabel,ru as Grid,Pu as IconButton,Vy as InfoSign,$u as Input,_T as InsetDrawer,nu as LinearProgress,xa as Link,Hc as List,su as ListDivider,ua as ListItem,Uc as ListItemButton,hx as ListItemContent,Oi as ListItemDecorator,Is as ListSubheader,nP as Markdown,Ra as Menu,iP as MenuButton,Ea as MenuItem,ET as Modal,Gy as ModalClose,od as ModalDialog,OT as ModalFrame,IT as ModalOverflow,tB as MonthPicker,lP as MonthRangePicker,Ng as NavigationGroup,Lg as NavigationItem,pP as Navigator,zy as Option,Qu as Pagination,cP as PercentageInput,zg as ProfileMenu,Dd as Radio,_d as RadioGroup,uP as RadioList,lZ as ResponsiveEmitter,Xu as Select,ju as Sheet,bx as Skeleton,Tx as Slider,Zo as Stack,Fg as Step,Px as StepButton,Vg as StepIndicator,dP as Stepper,fP as Switch,hP as Tab,yP as TabList,gP as TabPanel,Hu as Table,hT as TableBody,mT as TableHead,mP as Tabs,Ku as Textarea,bP as ThemeProvider,Zu as Tooltip,Cr as Typography,nw as Uploader,hm as accordionClasses,Vn as accordionDetailsClasses,da as accordionSummaryClasses,BR as accordionsClasses,hX as accordionsPropertyControls,KR as alertClasses,yX as alertPropertyControls,eE as aspectRatioClasses,kn as autocompleteClasses,EE as autocompleteListboxClasses,_E as autocompleteOptionClasses,xP as autocompletePropertyControls,LE as avatarClasses,FE as avatarGroupClasses,gX as avatarPropertyControls,Am as badgeClasses,vX as badgePropertyControls,Bm as boxClasses,UE as breadcrumbsClasses,bX as breadcrumbsPropertyControls,lo as buttonClasses,TX as buttonGroupPropertyControls,xX as buttonPropertyControls,SX as calendarPropertyControls,tI as cardActionsClasses,Rn as cardClasses,iI as cardContentClasses,pI as cardCoverClasses,Si as cardOverflowClasses,En as checkboxClasses,CX as checkboxPropertyControls,Ql as chipClasses,kX as chipPropertyControls,lE as circularProgressClasses,ogt as commonPropertyControls,PX as containerPropertyControls,RX as currencyInputPropertyControls,EX as dataTablePropertyControls,IX as datePickerPropertyControls,OX as dateRangePickerPropertyControls,bI as dialogActionsClasses,PI as dialogContentClasses,DX as dialogFramePropertyControls,cp as dialogTitleClasses,Fm as dividerClasses,_X as dividerPropertyControls,wI as drawerClasses,ei as extendTheme,_s as formControlClasses,wX as formControlPropertyControls,LI as formHelperTextClasses,eh as formLabelClasses,VI as gridClasses,Es as iconButtonClasses,BX as iconButtonPropertyControls,MX as infoSignPropertyControls,qo as inputClasses,NX as inputPropertyControls,jI as linearProgressClasses,au as linkClasses,PP as linkPropertyControls,bm as listClasses,qI as listDividerClasses,fa as listItemButtonClasses,ca as listItemClasses,XI as listItemContentClasses,e1 as listItemDecoratorClasses,SE as listSubheaderClasses,LX as markdownPropertyControls,a1 as menuButtonClasses,zX as menuButtonPropertyControls,r1 as menuClasses,lh as menuItemClasses,OI as modalClasses,l1 as modalCloseClasses,va as modalDialogClasses,FX as modalFramePropertyControls,f1 as modalOverflowClasses,VX as monthPickerPropertyControls,$X as monthRangePickerPropertyControls,jX as navigatorPropertyControls,hh as optionClasses,HX as paginationPropertyControls,UX as percentageInputPropertyControls,WX as profileMenuPropertyControls,_i as radioClasses,v1 as radioGroupClasses,GX as radioListPropertyControls,agt as responsiveEmitterPropertyControls,Pa as selectClasses,TP as selectPropertyControls,S1 as sheetClasses,YX as sheetPropertyControls,E1 as skeletonClasses,JX as skeletonPropertyControls,hp as sliderClasses,qX as sliderPropertyControls,U1 as stackClasses,Sh as stepButtonClasses,Lr as stepClasses,On as stepperClasses,KX as stepperPropertyControls,Un as switchClasses,XX as switchPropertyControls,eO as tabListClasses,rO as tabPanelClasses,q1 as tableClasses,aO as tabsClasses,ZX as tabsPropertyControls,mu as textareaClasses,QX as textareaPropertyControls,vP as theme,Mh as tooltipClasses,GE as typographyClasses,eZ as typographyPropertyControls,AX as uploaderPropertyControls,sZ as useCanvasResponsive,ak as useColorScheme,iZ as useResponsive,nb as useTheme,G as useThemeProps,ngt as withCommonControls};
|
|
150
150
|
/*! Bundled license information:
|
|
151
151
|
|
|
152
152
|
react-is/cjs/react-is.production.min.js:
|