@fewbox/den-web 0.2.0-preview.33 → 0.2.0-preview.34
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/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-packages.js +1 -1
- package/templates/FEWBOX.md +0 -1
- package/tsconfig.app.tsbuildinfo +1 -1
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import{Children as o,Fragment as a,cloneElement as i,memo as l,createElement as c,useId as s,useRef as u,useLayoutEffect as d,useEffect as f,useState as h,useCallback as p,Suspense as g,use as m,Component as v}from"react";import{createPortal as y}from"react-dom";import{jwtDecode as b}from"jwt-decode";var w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},w(e,t)};function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S.apply(this,arguments)};function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function _(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var x={Font:"font",Body:"body",White:"white",Black:"black",Light:"light",Light75:"light75",Light50:"light50",Light25:"light25",Dark:"dark",Dark75:"dark75",Dark50:"dark50",Dark25:"dark25",Primary:"primary",Primary75:"primary75",Primary50:"primary50",Primary25:"primary25",Secondary:"secondary",Secondary75:"secondary75",Secondary50:"secondary50",Secondary25:"secondary25",Tertiary:"tertiary",Tertiary75:"tertiary75",Tertiary50:"tertiary50",Tertiary25:"tertiary25",Info:"info",Info75:"info75",Info50:"info50",Info25:"info25",Success:"success",Success75:"success75",Success50:"success50",Success25:"success25",Warning:"warning",Warning75:"warning75",Warning50:"warning50",Warning25:"warning25",Error:"error",Error75:"error75",Error50:"error50",Error25:"error25",Border:"border",Border75:"border75",Border50:"border50",Border25:"border25",Placeholder:"placeholder",Placeholder75:"placeholder75",Placeholder50:"placeholder50",Placeholder25:"placeholder25",Transparent:"transparent"},O={Thin:"font-weight-thin",ExtraLight:"font-weight-extra-light",Light:"font-weight-light",Regular:"font-weight-regular",Medium:"font-weight-medium",SemiBold:"font-weight-semi-bold",Bold:"font-weight-bold",ExtraBold:"font-weight-extra-bold",Black:"font-weight-black"},N={Default:"font-family"},I={Default:"line-height"},E={Default:"padding",Normal:"padding-normal",ExtraSmall:"padding-extra-small",Small:"padding-small",Large:"padding-large",ExtraLarge:"padding-extra-large"},B={Default:"margin",Normal:"margin-normal",ExtraSmall:"margin-extra-small",Small:"margin-small",Large:"margin-large",ExtraLarge:"margin-extra-large"},D={Default:"gap",Normal:"gap-normal",ExtraSmall:"gap-extra-small",Small:"gap-small",Large:"gap-large",ExtraLarge:"gap-extra-large"},L={Default:"letter-spacing",Normal:"letter-spacing-normal",ExtraSmall:"letter-spacing-extra-small",Small:"letter-spacing-small",Large:"letter-spacing-large",ExtraLarge:"letter-spacing-extra-large"},z={Default:"border-radius",Normal:"border-radius-normal",ExtraSmall:"border-radius-extra-small",Small:"border-radius-small",Large:"border-radius-large",ExtraLarge:"border-radius-extra-large",Max:"border-radius-max"},R={None:"border-style-none",Solid:"border-style-solid",Dashed:"border-style-dashed",Dotted:"border-style-dotted",Double:"border-style-double",Groove:"border-style-groove",Ridge:"border-style-ridge",Inset:"border-style-inset",Outset:"border-style-outset",Hidden:"border-style-hidden"},T={Default:"border-width",Normal:"border-width-normal",ExtraSmall:"border-width-extra-small",Small:"border-width-small",Large:"border-width-large",ExtraLarge:"border-width-extra-large"},P={Visible:"visibility-visible",Hidden:"visibility-hidden",Collapse:"visibility-collapse"},F={None:"display-none",Block:"display-block",Inline:"display-inline",InlineBlock:"display-inline-block",Flex:"display-flex",InlineFlex:"display-inline-flex",Grid:"display-grid",InlineGrid:"display-inline-grid",Table:"display-table",TableRow:"display-table-row",TableCell:"display-table-cell",Contents:"display-contents",FlowRoot:"display-flow-root"},j={Auto:"cursor-auto",Default:"cursor-default",None:"cursor-none",ContextMenu:"cursor-context-menu",Help:"cursor-help",Pointer:"cursor-pointer",Progress:"cursor-progress",Wait:"cursor-wait",Cell:"cursor-cell",Crosshair:"cursor-crosshair",Text:"cursor-text",VerticalText:"cursor-vertical-text",Alias:"cursor-alias",Copy:"cursor-copy",Move:"cursor-move",NoDrop:"cursor-no-drop",NotAllowed:"cursor-not-allowed",Grab:"cursor-grab",Grabbing:"cursor-grabbing",AllScroll:"cursor-all-scroll",ColResize:"cursor-col-resize",RowResize:"cursor-row-resize",NResize:"cursor-n-resize",EResize:"cursor-e-resize",SResize:"cursor-s-resize",WResize:"cursor-w-resize",NeResize:"cursor-ne-resize",NwResize:"cursor-nw-resize",SeResize:"cursor-se-resize",SwResize:"cursor-sw-resize",EwResize:"cursor-ew-resize",NsResize:"cursor-ns-resize",NeswResize:"cursor-nesw-resize",NwseResize:"cursor-nwse-resize",ZoomIn:"cursor-zoom-in",ZoomOut:"cursor-zoom-out"},V={Visible:"overflow-visible",Hidden:"overflow-hidden",Scroll:"overflow-scroll",Auto:"overflow-auto",Clip:"overflow-clip"},W={Visible:"overflow-x-visible",Hidden:"overflow-x-hidden",Scroll:"overflow-x-scroll",Auto:"overflow-x-auto",Clip:"overflow-x-clip"},A={Visible:"overflow-y-visible",Hidden:"overflow-y-hidden",Scroll:"overflow-y-scroll",Auto:"overflow-y-auto",Clip:"overflow-y-clip"},U={_0:"opacity-0",_10:"opacity-10",_20:"opacity-20",_25:"opacity-25",_30:"opacity-30",_40:"opacity-40",_50:"opacity-50",_60:"opacity-60",_70:"opacity-70",_75:"opacity-75",_80:"opacity-80",_90:"opacity-90",_100:"opacity-100"},H={Ellipse:"v-ellipse-size",Rectangle:"v-rectangle-size",Image:"v-image-size",Svg:"v-svg-size",Window:"v-window-size"},M=function(e){var t;switch(e){case O.Thin:t=100;break;case O.ExtraLight:t=200;break;case O.Light:t=300;break;case O.Regular:t=400;break;case O.Medium:t=500;break;case O.SemiBold:t=600;break;case O.Bold:t=700;break;case O.ExtraBold:t=800;break;case O.Black:t=900;break;default:t=400}return t},q={Default:"font-size",Normal:"font-size-normal",Small:"font-size-small",ExtraSmall:"font-size-extra-small",Large:"font-size-large",ExtraLarge:"font-size-extra-large",AutoNormal:"auto-font-size-normal",AutoSmall:"auto-font-size-small",AutoExtraSmall:"auto-font-size-extra-small",AutoLarge:"auto-font-size-large",AutoExtraLarge:"auto-font-size-extra-large"},G={All:"all",Before:"before",After:"after"},X={All:"all",Top:"top",Right:"right",Bottom:"bottom",Left:"left",ExceptTop:"except-top",ExceptRight:"except-right",ExceptBottom:"except-bottom",ExceptLeft:"except-left",RightTop:"right-top",RightBottom:"right-bottom",LeftTop:"left-top",LeftBottom:"left-bottom",TopBottom:"top-bottom",LeftRight:"left-right"},Y=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),Z=function(e){this.component=e},J=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.sizeType=n,o.isAuto=r,o}return C(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(q).includes(this.sizeType)?this.sizeType:"font-size-".concat(this.sizeType),"".concat(this.component.getClassName()," ").concat(this.isAuto?"auto-".concat(e):e)}return this.component.getClassName()},t}(Z),K=function(e){function t(t,n){var r=e.call(this,t)||this;return r.weightType=n,r}return C(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(Z),Q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.visibility=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.visibility){var e=void 0;return e=Object.values(P).includes(this.visibility)?this.visibility:"visibility-".concat(this.visibility),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),$=function(e){function t(t,n){var r=e.call(this,t)||this;return r.cursor=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.cursor){var e=void 0;return e=Object.values(j).includes(this.cursor)?this.cursor:"cursor-".concat(this.cursor),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflow=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.overflow){var e=void 0;return e=Object.values(V).includes(this.overflow)?this.overflow:"overflow-".concat(this.overflow),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowX=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.overflowX){var e=void 0;return e=Object.values(W).includes(this.overflowX)?this.overflowX:Object.values(V).includes(this.overflowX)?this.overflowX.replace("overflow-","overflow-x-"):"overflow-x-".concat(this.overflowX),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),ne=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowY=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.overflowY){var e=void 0;return e=Object.values(A).includes(this.overflowY)?this.overflowY:Object.values(V).includes(this.overflowY)?this.overflowY.replace("overflow-","overflow-y-"):"overflow-y-".concat(this.overflowY),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.display=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.display){var e=void 0;return e=Object.values(F).includes(this.display)?this.display:"display-".concat(this.display),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.opacityType=n,r}return C(t,e),t.prototype.getClassName=function(){return this.opacityType&&Object.values(U).includes(this.opacityType)?"".concat(this.component.getClassName()," ").concat(this.opacityType):this.component.getClassName()},t}(Z),ae=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderRadius=n,r}return C(t,e),t.prototype.getClassName=function(){return this.borderRadius&&Object.values(z).includes(this.borderRadius)?"".concat(this.component.getClassName()," ").concat(this.borderRadius):this.component.getClassName()},t}(Z),ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderStyle=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.borderStyle){var e=void 0;return e=Object.values(R).includes(this.borderStyle)?this.borderStyle:"border-style-".concat(this.borderStyle),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),le=function(e){function t(t,n){var r=e.call(this,t)||this;return r.padding=n,r}return C(t,e),t.prototype.getClassName=function(){return this.padding&&Object.values(E).includes(this.padding)?"".concat(this.component.getClassName()," ").concat(this.padding):this.component.getClassName()},t}(Z),ce=function(e){function t(t,n){var r=e.call(this,t)||this;return r.letterSpacing=n,r}return C(t,e),t.prototype.getClassName=function(){return this.letterSpacing&&Object.values(L).includes(this.letterSpacing)?"".concat(this.component.getClassName()," ").concat(this.letterSpacing):this.component.getClassName()},t}(Z),se=function(e){function t(t,n){var r=e.call(this,t)||this;return r.margin=n,r}return C(t,e),t.prototype.getClassName=function(){return this.margin&&Object.values(B).includes(this.margin)?"".concat(this.component.getClassName()," ").concat(this.margin):this.component.getClassName()},t}(Z),ue=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderWidth=n,r}return C(t,e),t.prototype.getClassName=function(){if(this.borderWidth){var e=void 0;return e=Object.values(T).includes(this.borderWidth)?this.borderWidth:"border-width-".concat(this.borderWidth),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(Z),de=function(e){function t(t,n,r,o,a,i,l,c,s,u,d){var f=e.call(this,t)||this;return f.isDefaultValue=n,f.frontColorType=r,f.backgroundColorType=o,f.borderColorType=a,f.borderDirectionType=i,f.pseudoType=l,f.pseudoFrontColorType=c,f.pseudoBackgroundColorType=s,f.pseudoBorderColorType=u,f.pseudoBorderDirectionType=d,f}return C(t,e),t.prototype.getBorderPrefix=function(e){return e?"-".concat(e):""},t.prototype.getBorderColorClassName=function(e,t,n){var r,o=this.getBorderPrefix(n);switch(t){case X.Bottom:r=" ".concat(e).concat(o,"-border-bottom");break;case X.ExceptBottom:r=" ".concat(e).concat(o,"-border-except-bottom");break;case X.ExceptLeft:r=" ".concat(e).concat(o,"-border-except-left");break;case X.ExceptRight:r=" ".concat(e).concat(o,"-border-except-right");break;case X.ExceptTop:r=" ".concat(e).concat(o,"-border-except-top");break;case X.Left:r=" ".concat(e).concat(o,"-border-left");break;case X.LeftBottom:r=" ".concat(e).concat(o,"-border-left-bottom");break;case X.LeftRight:r=" ".concat(e).concat(o,"-border-left-right");break;case X.LeftTop:r=" ".concat(e).concat(o,"-border-left-top");break;case X.Right:r=" ".concat(e).concat(o,"-border-right");break;case X.RightBottom:r=" ".concat(e).concat(o,"-border-right-bottom");break;case X.RightTop:r=" ".concat(e).concat(o,"-border-right-top");break;case X.Top:r=" ".concat(e).concat(o,"-border-top");break;case X.TopBottom:r=" ".concat(e).concat(o,"-border-bottom");break;default:r=" ".concat(e).concat(o,"-border")}return r},t.prototype.getClassName=function(){var e,t,n=this.backgroundColorType?" ".concat(this.backgroundColorType,"-background"):this.isDefaultValue?" ".concat(x.Transparent,"-background"):"",r=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(x.Transparent,"-before-background"):"",o=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(x.Transparent,"-after-background"):"",a="".concat(r).concat(o),i=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(x.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(x.Black,"-before-front"):"",c=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(x.Black,"-after-front"):"",s="".concat(l).concat(c);return e=this.borderColorType?this.borderDirectionType?this.getBorderColorClassName(this.borderColorType,this.borderDirectionType):" ".concat(this.borderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(x.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"",t=this.pseudoType?this.pseudoBorderColorType?this.pseudoBorderDirectionType?this.getBorderColorClassName(this.pseudoBorderColorType,this.pseudoBorderDirectionType,this.pseudoType):" ".concat(this.pseudoBorderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(x.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(a).concat(i).concat(s).concat(e).concat(t)},t}(Z),fe=function(e,t,n,r,o,a,i,l,c,s,u,d,f,h,p,g,m,v,y,b,w,C,S,k,_,x,O){return new de(new ne(new te(new ee(new $(new Q(new re(new oe(new se(new ce(new le(new ue(new ie(new ae(new J(new K(new Y(e),o),n,r),p),g),m),v),O),y),b),w),C),S),k),_),x),t,a,i,l,c,s,u,d,f,h).getClassName()},he=["onClick","onDoubleClick","onContextMenu","onDrag","onDragStart","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDrop","onCopy","onCut","onPaste","onBlur","onFocus","onMouseDown","onMouseUp","onMouseEnter","onMouseLeave","onMouseMove","onMouseEndter","onMouseOut","onKeyDown","onKeyUp","onKeyPress","onTouchStart","onTouchEnd","onTouchMove","onTouchCancel","onWheel","onScroll","onSelect","onBeforeInput","onInput"],pe=["id","title","dir","lang","translate","tabIndex","accessKey","contentEditable","spellCheck","draggable","enterKeyHint","inputMode","autoCapitalize","role","slot","htmlFor","hidden","is"],ge=["onError","onLoad"],me=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],ve={div:_(_([],he,!0),pe,!0),input:_(_(_(_([],he,!0),pe,!0),["onChange","onInput","onInvalid","onSelect"],!0),["name","value","defaultValue","checked","defaultChecked","type","accept","autoComplete","autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","height","width","list","max","min","maxLength","maxLength","minLength","multiple","pattern","placeholder","readOnly","required","size","step","src"],!0),textarea:_(_(_([],he,!0),pe,!0),["rows","cols","wrap","name","autoFocus","autoComplete","placeholder","maxLength","minLength","required","readOnly","disabled","wrap","spellcheck","dirname"],!0),template:_(_([],he,!0),pe,!0),abbr:_(_([],he,!0),pe,!0),span:_(_([],he,!0),pe,!0),h1:_(_([],he,!0),pe,!0),h2:_(_([],he,!0),pe,!0),h3:_(_([],he,!0),pe,!0),h4:_(_([],he,!0),pe,!0),h5:_(_([],he,!0),pe,!0),h6:_(_([],he,!0),pe,!0),i:_(_([],he,!0),pe,!0),b:_(_([],he,!0),pe,!0),u:_(_([],he,!0),pe,!0),em:_(_([],he,!0),pe,!0),strong:_(_([],he,!0),pe,!0),blockquote:_(_([],he,!0),pe,!0),cite:_(_([],he,!0),pe,!0),code:_(_([],he,!0),pe,!0),del:_(_([],he,!0),pe,!0),dfn:_(_([],he,!0),pe,!0),ins:_(_([],he,!0),pe,!0),kbd:_(_([],he,!0),pe,!0),mark:_(_([],he,!0),pe,!0),pre:_(_([],he,!0),pe,!0),q:_(_([],he,!0),pe,!0),s:_(_([],he,!0),pe,!0),samp:_(_([],he,!0),pe,!0),small:_(_([],he,!0),pe,!0),summary:_(_([],he,!0),pe,!0),sup:_(_([],he,!0),pe,!0),sub:_(_([],he,!0),pe,!0),time:_(_([],he,!0),pe,!0),var:_(_([],he,!0),pe,!0),wbr:_(_([],he,!0),pe,!0),p:_(_([],he,!0),pe,!0),address:_(_([],he,!0),pe,!0),article:_(_([],he,!0),pe,!0),aside:_(_([],he,!0),pe,!0),details:_(_(_([],he,!0),pe,!0),["onToggle"],!0),nav:_(_([],he,!0),pe,!0),section:_(_([],he,!0),pe,!0),form:_(_(_([],he,!0),pe,!0),["onReset","onSubmit"],!0),dialog:_(_(_([],he,!0),pe,!0),["onCancel","onClose"],!0),img:_(_(_(_([],he,!0),pe,!0),ge,!0),["src","alt","width","height","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","title","role"],!0),iframe:_(_(_(_([],he,!0),pe,!0),ge,!0),["src","srcDoc","width","height","name","sandbox","allow","allowFullScreen","loading","referrerPolicy","title","role"],!0),object:_(_(_([],he,!0),pe,!0),ge,!0),embed:_(_(_([],he,!0),pe,!0),ge,!0),link:_(_(_([],he,!0),pe,!0),ge,!0),svg:_(_(_([],he,!0),pe,!0),ge,!0),audio:_(_(_([],he,!0),pe,!0),me,!0),video:_(_(_([],he,!0),pe,!0),me,!0)},ye=["className","style","fontSize","isAutoSize","fontWeight","frontColor","backgroundColor","borderColor","borderDirection","pseudoType","pseudoFrontColor","pseudoBackgroundColor","pseudoBorderColor","pseudoBorderDirection","display","visibility","zIndex","fontFamily","borderWidth","borderRadius","borderStyle","padding","margin","height","width","minHeight","minWidth","maxHeight","maxWidth","opacity","letterSpacing","lineHeight","cursor","overflow","overflowX","overflowY","isDefaultValue","customAttributes"],be=function(t){return{getClassName:function(e){var n=fe(e,t.isDefaultValue,t.fontSize,t.isAutoSize,t.fontWeight,t.frontColor,t.backgroundColor,t.borderColor,t.borderDirection,t.pseudoType,t.pseudoFrontColor,t.pseudoBackgroundColor,t.pseudoBorderColor,t.pseudoBorderDirection,t.borderRadius,t.borderStyle,t.borderWidth,t.padding,t.margin,t.opacity,t.display,t.visibility,t.cursor,t.overflow,t.overflowX,t.overflowY,t.letterSpacing);return t.className?"".concat(t.className," ").concat(n):n},getStyle:function(e){var n={height:t.height,width:t.width,minHeight:t.minHeight,minWidth:t.minWidth,maxHeight:t.maxHeight,maxWidth:t.maxWidth,zIndex:t.zIndex,fontFamily:t.fontFamily,lineHeight:t.lineHeight};return t.letterSpacing&&!Object.values(L).includes(t.letterSpacing)&&(n.letterSpacing=t.letterSpacing),t.opacity&&!Object.values(U).includes(t.opacity)&&(n.opacity=t.opacity),t.padding&&!Object.values(E).includes(t.padding)&&(n.padding=t.padding),t.margin&&!Object.values(B).includes(t.margin)&&(n.margin=t.margin),t.borderRadius&&!Object.values(z).includes(t.borderRadius)&&(n.borderRadius=t.borderRadius),null!=t.selfShrink&&(n.flexShrink=t.selfShrink),null!=t.selfGrow&&(n.flexGrow=t.selfGrow),null!=t.selfBasis&&(n.flexBasis=t.selfBasis),S(S(S({},t.style),e),n)},getChildren:function(){var n=e("span",{className:"fb-bg-error",style:{display:"inline-block"},children:"[Base] No Children!"});if(t.children){if(Array.isArray(t.children)){var r=t.children.filter(Boolean);return r&&r.length>0?r:n}return t.children?t.children:n}return n},getProps:function(e){var n={},r={},o=Object.keys(t);return o.length>0&&o.forEach((function(o){ye.includes(o)?n[o]=t[o]:ve[e]&&ve[e].includes(o)&&(r[o]=t[o])})),{view:n,html:r}}}},we={Display:"display",Rich:"rich"},Ce=function(t){var n=(t.category==we.Display?{}:t._base.getProps("div")).html;return e("div",S({ref:t.ref,className:t._base.getClassName(t.className),style:t._base.getStyle(t.style)},n,{children:t.children}))},Se={Fluid:"fluid",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},ke=function(t){var n=t.category,r=k(t,["category"]),o=be(r);return e(Ce,{_base:o,className:"v-zone-".concat(n),children:t.children})},_e={Edge:"edge",Window:"window",Area:"area",Self:"self"},xe={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",Center:"center"},Oe=function(t){var n;if(t.category&&(n=t.type?"position-".concat(t.category,"-").concat(t.type):"position-".concat(t.category,"-custom")),t.isFullWidth&&(n="".concat(n," position-full-width")),t.type){var r=void 0;return r=S(S({},t.style),{zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})}r=void 0;return r=t.category!=_e.Self?S(S({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):S(S({},t.style),{top:"-".concat(t.top),right:"-".concat(t.right),bottom:"-".concat(t.bottom),left:"-".concat(t.left),zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})},Ne={Default:"default",FullSize:"full-size"},Ie=function(n){return e(t,{children:o.map(n.children,(function(e){return function(e){var t={className:"position-area-".concat(n.category?n.category:Ne.Default," ").concat(e.props.className)};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,t)}(e)}))})},Ee=function(t){var n=be(t);return e(Ce,{ref:t.ref,_base:n,className:"v-boundary",children:t.children})},Be={Div:"div",Abbr:"abbr",Span:"span",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",I:"i",B:"b",U:"u",Em:"em",Strong:"strong",Blockquote:"blockquote",Cite:"cite",Code:"code",Del:"del",Dfn:"dfn",Ins:"ins",Kbd:"kbd",Mark:"mark",Pre:"pre",Q:"q",S:"s",Samp:"samp",Small:"small",Summary:"summary",Sup:"sup",Sub:"sub",Time:"time",Var:"var",Wbr:"wbr"},De={Default:"default",Circle:"circle"},Le={Justify:0,Left:1,Right:2,Center:3},ze=function(t){var n,r,o=t.category,a=t.type,i=t.alignType,l=t.isTextOverflow,s=t.caption,u=k(t,["category","type","alignType","isTextOverflow","caption"]),d=be(S({display:null==t.category||t.category==Be.Span?"inline-block":"block"},u)),f=d.getProps("div"),h=f.view,p=f.html;switch(i){case Le.Center:r="v-label-center";break;case Le.Justify:r="v-label-justify";break;case Le.Left:r="v-label";break;case Le.Right:r="v-label-right";break;default:r="v-label"}if(a==De.Circle&&(r="".concat(r,"-circle")),l&&(r+=" v-label-text-overflow"),u.fontWeight&&(r+=" v-label-inherit-font-weight"),u.fontSize&&(r+=" v-label-inherit-font-size"),o){var g=o,m=d.getProps(g).html;n=c(g,m,s)}else{var v=d.getProps("span").html;n=c("span",v,s)}return a==De.Circle?e(Ie,{children:e(Ee,S({width:"1.6em",height:"1.6em",borderRadius:z.Max},h,{className:r},p,{children:e(Oe,{category:_e.Area,type:xe.Center,children:n})}))}):e(Ee,S({},h,{className:t.className?"".concat(t.className," ").concat(r):r},p,{children:n}))};ze.displayName="VLabel";var Re=l(ze),Te={ExtraSmall:"extra-small",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},Pe={Visible:"visiable",Hidden:"hidden"},Fe={Only:"only",Up:"up",Down:"down"},je=function(t){return t.children?e(Ee,{className:function(){if(t.breakpoint){if("string"!=typeof t.breakpoint)return t.breakpoint.map((function(e){return"".concat(e,"-").concat(t.category)})).join(" ");if(!t.type||t.type==Fe.Only)return"".concat(t.breakpoint,"-").concat(t.category);if(t.type==Fe.Up)return"".concat(t.breakpoint,"-up-").concat(t.category);if(t.type==Fe.Down)return"".concat(t.breakpoint,"-down-").concat(t.category)}return t.category}(),style:{display:"contents"},children:t.children}):e(Re,{backgroundColor:x.Error,caption:"[BreakpointDisplay] No Children!"})},Ve=function(r){return n(t,{children:[e(je,{category:Pe.Hidden,type:Fe.Down,breakpoint:r.breakpointType?r.breakpointType:Te.Small,children:r.desktop}),e(je,{category:Pe.Hidden,type:Fe.Up,breakpoint:r.breakpointType?r.breakpointType:Te.Small,children:r.mobile})]})},We=2147483647,Ae={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",InnerTop:"inner-top",InnerRight:"inner-right",InnerBottom:"inner-bottom",InnerLeft:"inner-left",InnerLeftTop:"inner-left-top",InnerRightTop:"inner-right-top",InnerLeftBottom:"inner-left-bottom",InnerRightBottom:"inner-right-bottom"},Ue={Horizontal:"horizontal",Vertical:"vertical"},He={Manual:"manual",Auto:"auto"},Me=function(e,t){return t?"".concat(e,"-").concat(t):e},qe=function(t){var n=t.category,r=t.offset,o=t.zIndex,a=t.alignment,i=t.popoverMode,l=void 0===i?He.Manual:i,c=t.onOverlayClose,h=t.renderOverlay,p=s(),g=u(null),m="--dock-".concat(p.replace(/:/g,""));return d((function(){var e=g.current,t=null==e?void 0:e.parentElement;if(t&&t.style.setProperty("anchor-name",m),e)try{e.showPopover()}catch(e){}return function(){t&&t.style.removeProperty("anchor-name");try{null==e||e.hidePopover()}catch(e){}}}),[m]),f((function(){if(l===He.Auto&&c){var e=g.current;if(e){var t=function(e){"closed"===e.newState&&c()};return e.addEventListener("toggle",t),function(){e.removeEventListener("toggle",t)}}}}),[l,c]),e("div",{ref:g,popover:l,className:"dock-popover-overlay ".concat(Me(n,a)),style:{"--dock-offset":"".concat(r,"px"),"--dock-z-index":o,positionAnchor:m},children:h()})},Ge=function(r){var o=r.category,a=r.offset,i=r.zIndex,l=r.alignment,c=r.renderOverlay,s=u(null),d=u(null),g=h({}),m=g[0],v=g[1],b=h(!0),w=b[0],C=b[1],k=h(!1),_=k[0],x=k[1];f((function(){x(!0)}),[]);var O=p((function(){var e,t=null===(e=s.current)||void 0===e?void 0:e.parentElement,n=d.current;if(t&&n){var r=t.getBoundingClientRect(),i=n.getBoundingClientRect();v(function(e,t,n,r,o){var a=0,i=0;switch(n){case Ae.Top:a=e.top-t.height-r,i=e.left+(e.width-t.width)/2;break;case Ae.Right:a=e.top+(e.height-t.height)/2,i=e.right+r;break;case Ae.Bottom:a=e.bottom+r,i=e.left+(e.width-t.width)/2;break;case Ae.Left:a=e.top+(e.height-t.height)/2,i=e.left-t.width-r;break;case Ae.LeftTop:o===Ue.Horizontal?(a=e.top,i=e.left-t.width-r):o===Ue.Vertical?(a=e.top-t.height-r,i=e.left):(a=e.top-t.height-r,i=e.left-t.width-r);break;case Ae.RightTop:o===Ue.Horizontal?(a=e.top,i=e.right+r):o===Ue.Vertical?(a=e.top-t.height-r,i=e.right-t.width):(a=e.top-t.height-r,i=e.right+r);break;case Ae.LeftBottom:o===Ue.Horizontal?(a=e.bottom-t.height,i=e.left-t.width-r):o===Ue.Vertical?(a=e.bottom+r,i=e.left):(a=e.bottom+r,i=e.left-t.width-r);break;case Ae.RightBottom:o===Ue.Horizontal?(a=e.bottom-t.height,i=e.right+r):o===Ue.Vertical?(a=e.bottom+r,i=e.right-t.width):(a=e.bottom+r,i=e.right+r);break;case Ae.InnerTop:a=e.top+r,i=e.left+(e.width-t.width)/2;break;case Ae.InnerRight:a=e.top+(e.height-t.height)/2,i=e.right-t.width-r;break;case Ae.InnerBottom:a=e.bottom-t.height-r,i=e.left+(e.width-t.width)/2;break;case Ae.InnerLeft:a=e.top+(e.height-t.height)/2,i=e.left+r;break;case Ae.InnerLeftTop:a=e.top+r,i=e.left+r;break;case Ae.InnerRightTop:a=e.top+r,i=e.right-t.width-r;break;case Ae.InnerLeftBottom:a=e.bottom-t.height-r,i=e.left+r;break;case Ae.InnerRightBottom:a=e.bottom-t.height-r,i=e.right-t.width-r}return{top:a,left:i}}(r,i,o,a,l))}}),[o,a,l]);return f((function(){var e;O();var t=null===(e=s.current)||void 0===e?void 0:e.parentElement;if(t){var n=new ResizeObserver(O);n.observe(t);for(var r=[],o=t;o;)(o.scrollHeight>o.clientHeight||o.scrollWidth>o.clientWidth)&&(r.push(o),o.addEventListener("scroll",O,{passive:!0})),o=o.parentElement;return window.addEventListener("scroll",O,{passive:!0}),window.addEventListener("resize",O),function(){n.disconnect(),r.forEach((function(e){return e.removeEventListener("scroll",O)})),window.removeEventListener("scroll",O),window.removeEventListener("resize",O)}}}),[O]),f((function(){var e,t=null===(e=s.current)||void 0===e?void 0:e.parentElement;if(t){var n=new IntersectionObserver((function(e){var t=e[0];return C(t.isIntersecting)}),{threshold:.1});return n.observe(t),function(){return n.disconnect()}}}),[]),n(t,{children:[e("span",{ref:s,style:{display:"none"}}),_&&w&&y(e("div",{ref:d,className:"dock-overlay",style:S({position:"fixed",width:"max-content",pointerEvents:"auto",zIndex:i},m),children:c()}),document.body)]})},Xe=function(t){var r=t.category,o=t.offset,a=void 0===o?0:o,i=t.overlayZIndex,l=void 0===i?We:i,c=t.isPortal,s=void 0!==c&&c,u=t.isOverlayVisible,d=void 0===u||u,p=t.popoverMode,g=void 0===p?He.Manual:p,m=t.onOverlayClose,v=t.renderOverlay,y=k(t,["category","offset","overlayZIndex","isPortal","isOverlayVisible","popoverMode","onOverlayClose","renderOverlay"]),b="alignment"in t?t.alignment:void 0,w=be(y),C=w.getProps("div").html,_=h(!0),x=_[0],O=_[1];f((function(){"undefined"!=typeof CSS&&CSS.supports("anchor-name","--a")||O(!1)}),[]);var N=s||!x;return n("div",S({className:w.getClassName("dock"),style:w.getStyle()},C,{children:[t.children,d&&(N?e(Ge,{category:r,offset:a,zIndex:l,alignment:b,renderOverlay:v}):e(qe,{category:r,offset:a,zIndex:l,alignment:b,popoverMode:g,onOverlayClose:m,renderOverlay:v}))]}))},Ye={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},Ze={NoWrap:"nowrap",Wrap:"wrap"},Je={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Ke={Start:"flex-start",Center:"center",End:"flex-end",Stretch:"stretch",Baseline:"baseline"},Qe={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},$e=function(t){t.vClassName;var n=t.direction,r=t.wrap,o=t.justifyContent,a=t.alignItems,i=t.alignContent,l=t.gap,c=t.overflow,s=k(t,["vClassName","direction","wrap","justifyContent","alignItems","alignContent","gap","overflow"]);!s.cursor&&t.onClick&&(s.cursor=j.Pointer);var u=be(s),d=u.getProps("div").html,f=l&&Object.values(D).includes(l),h=!l||f?u.getStyle():S(S({},u.getStyle()),{gap:l}),p=c?"flex-".concat(c):s.overflowX||s.overflowY?"flex":"flex-hidden",g=n?" flex-direction-".concat(n):"",m=r?" flex-wrap-".concat(r):"",v=o?" flex-justify-content-".concat(o):"",y=a?" flex-align-items-".concat(a):"",b=i?" flex-align-content-".concat(i):"",w=f?" ".concat(l):"",C="".concat(p).concat(g).concat(m).concat(v).concat(y).concat(b).concat(w),_=u.getClassName(C);return e("div",S({className:_,style:h},d,{children:t.children}))},et={Start:"start",Center:"center",End:"end",Stretch:"stretch",Baseline:"baseline"},tt=function(t){var n={};null!=t.order&&(n.order=t.order),null!=t.basis&&(n.flexBasis=t.basis),null!=t.grow&&(n.flexGrow=t.grow),null!=t.shrink&&(n.flexShrink=t.shrink);var r=t.alignSelf?" flex-align-self-".concat(t.alignSelf):"",o="flex-item".concat(r);return e("div",{className:o,style:S(S({},n),{display:"flex",flexDirection:"column"}),children:t.children})},nt=function(n){return e(t,{children:n.children})},rt=function(n){return e(t,{children:n.children})},ot=function(n){return e(t,{children:n.children})},at=function(n){return e(t,{children:n.children})},it=function(n){return e(t,{children:n.children})},lt=function(n){return e(t,{children:n.children})},ct=function(n){return e(t,{children:n.children})},st=function(n){return e(t,{children:n.children})},ut={Top:"top",Middle:"middle",Bottom:"bottom",Stretch:"stretch",Baseline:"baseline"},dt=function(n,r,a,i,l){n.cross;var c=n.itemsShrink,s=k(n,["cross","itemsShrink"]),u=be(s),d=function(t,n,o){return r?r(t,n,o,c):e(tt,{alignSelf:o,shrink:c,children:t},"child".concat(n))};return e($e,S({vClassName:"v-xbase",alignItems:function(){var e;if(n.cross)switch(n.cross){case ut.Stretch:e=Ke.Stretch;break;case ut.Baseline:e=Ke.Baseline;break;case ut.Bottom:e=Ke.End;break;case ut.Middle:e=Ke.Center;break;case ut.Top:e=Ke.Start;break;default:e=Ke.Center}else e=Ke.Center;return e}(),wrap:a?a():Ze.NoWrap,justifyContent:i?i():Je.Start,alignContent:l?l():Qe.Start},s,{children:o.map(u.getChildren(),(function(n,r){var o=n;return o.type?o.type===st?d(o.props.children,r,et.Start):o.type===at?d(o.props.children,r,et.Center):o.type===rt?d(o.props.children,r,et.End):o.type===ct?d(o.props.children,r,et.Stretch):o.type===nt?d(o.props.children,r,et.Baseline):d(o,r):(console.debug(o),e(t,{children:"Please check X layout children."}))}))}))},ft=function(t){return dt(t,(function(t,n,r,o){return e(tt,{grow:1,alignSelf:r,shrink:o,children:t})}))},ht=function(e){return dt(e,void 0,void 0,(function(){return Je.SpaceAround}))},pt=function(t){var n=be(t);return dt(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(tt,{grow:0,alignSelf:a,shrink:i,children:t}):e(tt,{grow:1,alignSelf:a,shrink:i,children:t})}))},gt=function(t){var n=be(t);return dt(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(tt,{grow:1,alignSelf:a,shrink:i,children:t}):e(tt,{grow:0,alignSelf:a,shrink:i,children:t})}))},mt=function(t){return dt(t,(function(t,n,r,o){return e(tt,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},vt=function(t){var n=be(t);return dt(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(tt,{grow:0,alignSelf:a,shrink:i,children:t}):e(tt,{grow:1,alignSelf:a,shrink:i,children:t})}))},yt=function(t){var n=be(t);return dt(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(tt,{grow:1,shrink:i,children:t}):e(tt,{grow:0,shrink:i,children:t})}))},bt=function(t){return dt(t,(function(t,n,r,o){return e(tt,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},wt=function(e){return dt(e,void 0,void 0,(function(){return Je.SpaceBetween}))},Ct=function(e){return dt(e,void 0,void 0,(function(){return Je.Center}))},St=function(t){return dt(t,(function(n,r,o,a){var i=e(tt,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(tt,{basis:t.basises[r],shrink:a,children:n})),i}))},kt=function(t){var n=be(t);return dt(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(tt,{basis:t.basis,shrink:l,children:r}):e(tt,{grow:1,shrink:l,children:r})}))},_t=function(e){return dt(e,void 0,void 0,(function(){return Je.SpaceEvenly}))},xt=function(e){return dt(e)},Ot=function(e){return dt(e,void 0,void 0,(function(){return Je.End}))},Nt=function(e){return dt(e,void 0,(function(){return Ze.Wrap}),void 0,(function(){return Qe.SpaceAround}))},It=function(e){return dt(e,void 0,(function(){return Ze.Wrap}),void 0,(function(){return Qe.SpaceBetween}))},Et=function(e){return dt(e,void 0,(function(){return Ze.Wrap}),void 0,(function(){return Qe.End}))},Bt=function(e){return dt(e,void 0,(function(){return Ze.Wrap}),void 0,(function(){return Qe.SpaceEvenly}))},Dt=function(e){return dt(e,void 0,(function(){return Ze.Wrap}),void 0,(function(){return Qe.Center}))},Lt=function(e){return dt(e,void 0,(function(){return Ze.Wrap}),void 0,(function(){return Qe.Start}))},zt={Left:"left",Center:"center",Right:"right",Baseline:"baseline",Stretch:"stretch"},Rt=function(n,r,a,i,l){var c=n.cross,s=n.itemsShrink,u=k(n,["cross","itemsShrink"]),d=be(u),f=function(t,n,o){return r?r(t,n,o,s):e(tt,{alignSelf:o,shrink:s,children:t},"child".concat(n))};return e($e,S({vClassName:"v-ybase",wrap:a?a():Ze.NoWrap,alignContent:i?i():Qe.Start,alignItems:function(){var e;if(c)switch(c){case zt.Left:e=Ke.Start;break;case zt.Center:e=Ke.Center;break;case zt.Right:e=Ke.End;break;case zt.Baseline:e=Ke.Baseline;break;default:e=Ke.Stretch}else e=Ke.Stretch;return e}(),direction:Ye.Column,justifyContent:l?l():Je.Start},u,{children:o.map(d.getChildren(),(function(n,r){var o=n;return o.type?o.type===ot?f(o.props.children,r,et.Start):o.type===at||o.type===lt?f(o.props.children,r,et.Center):o.type===it?f(o.props.children,r,et.End):o.type===ct?f(o.props.children,r,et.Stretch):o.type===nt?f(o.props.children,r,et.Baseline):f(n,r):(console.debug(o),e(t,{children:"Please check Y layout children."}))}))}))},Tt=function(t){return Rt(t,(function(t,n,r,o){return e(tt,{grow:1,alignSelf:r,shrink:o,children:t})}))},Pt=function(e){return Rt(e,void 0,void 0,void 0,(function(){return Je.SpaceBetween}))},Ft=function(e){return Rt(e,void 0,void 0,void 0,(function(){return Je.Center}))},jt=function(e){return Rt(e,void 0,void 0,void 0,(function(){return Je.Start}))},Vt=function(e){return Rt(e,void 0,void 0,void 0,(function(){return Je.End}))},Wt=function(e){return Rt(e,void 0,void 0,void 0,(function(){return Je.SpaceAround}))},At=function(e){return Rt(e,void 0,void 0,void 0,(function(){return Je.SpaceEvenly}))},Ut=function(t){return Rt(t,(function(t,n,r,o){return e(tt,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},Ht=function(t){var n=be(t);return Rt(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(tt,{grow:1,alignSelf:a,shrink:i,children:t}):e(tt,{grow:0,alignSelf:a,shrink:i,children:t})}))},Mt=function(t){var n=be(t);return Rt(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(tt,{grow:1,shrink:i,children:t}):e(tt,{grow:0,shrink:i,children:t})}))},qt=function(t){var n=be(t);return Rt(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e(tt,{grow:0,alignSelf:a,shrink:i,children:t}):e(tt,{grow:1,alignSelf:a,shrink:i,children:t})}))},Gt=function(t){return Rt(t,(function(t,n,r,o){return e(tt,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},Xt=function(t){var n=be(t);return Rt(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e(tt,{grow:0,alignSelf:a,shrink:i,children:t}):e(tt,{grow:1,alignSelf:a,shrink:i,children:t})}))},Yt=function(t){return Rt(t,(function(n,r,o,a){var i=e(tt,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e(tt,{basis:t.basises[r],shrink:a,children:n})),i}))},Zt=function(t){var n=be(t);return Rt(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e(tt,{basis:t.basis,shrink:l,children:r}):e(tt,{grow:1,shrink:l,children:r})}))},Jt=function(e){return Rt(e,void 0,(function(){return Ze.Wrap}),(function(){return Qe.Start}))},Kt=function(e){return Rt(e,void 0,(function(){return Ze.Wrap}),(function(){return Qe.Center}))},Qt=function(e){return Rt(e,void 0,(function(){return Ze.Wrap}),(function(){return Qe.End}))},$t=function(e){return Rt(e,void 0,(function(){return Ze.Wrap}),(function(){return Qe.SpaceAround}),void 0)},en=function(e){return Rt(e,void 0,(function(){return Ze.Wrap}),(function(){return Qe.SpaceBetween}))},tn=function(e){return Rt(e,void 0,(function(){return Ze.Wrap}),(function(){return Qe.SpaceEvenly}))},nn={Top:"top",Right:"right",Bottom:"bottom",Left:"left",Center:"center"},rn=function(t){t.image,t.imageWidth,t.imageHeight,t.position;var n,r=k(t,["image","imageWidth","imageHeight","position"]);n=t.imageWidth&&t.imageHeight?{backgroundImage:'url("'.concat(t.image,'")'),backgroundSize:"".concat(t.imageWidth," ").concat(t.imageHeight)}:{backgroundImage:'url("'.concat(t.image,'")')};var o=be(S(S({},r),{style:n}));return e(Ce,{_base:o,className:t.position?"v-background-".concat(t.position):"v-background",children:t.children})},on=function(e){var t={};return e.forEach((function(e,n){var r,o=!1;n.startsWith("#")?(o=!0,r=n.substring(1).split(".")):r=n.split(".");var a=t;r.forEach((function(t,n){if(n==r.length-1)if(t.endsWith("[]")){var i=t.replace("[]","");Object.keys(a).filter((function(e){return e==i})).length>0?a[i]=_(_([],a[i],!0),[o?JSON.parse(e.toString()):e],!1):a[i]=[o?JSON.parse(e.toString()):e]}else a[t]=o?JSON.parse(e.toString()):e;else t in a||(a[t]={}),a=a[t]}))})),t},an={Json:"json",FormData:"formdata"},ln=function(t){var n=t.ref,r=t.handleSubmitCategory,o=t.handleSubmit,a=t.handleValidateError,i=k(t,["ref","handleSubmitCategory","handleSubmit","handleValidateError"]),l=be(i),c=u(null);f((function(){return"object"==typeof n&&n?n.current=c.current:"function"==typeof n&&n(c.current),function(){"object"==typeof n&&n?n.current=null:"function"==typeof n&&n(null)}}),[n]);var s=l.getProps("form").html;return e("form",S({ref:c,noValidate:!!a,className:l.getClassName("v-form"),style:l.getStyle(),onSubmit:function(e){e.preventDefault();var t=e.currentTarget,n=e.nativeEvent.submitter;if((null==n?void 0:n.formNoValidate)||!a||t.checkValidity()){for(var i=0;i<t.elements.length;i++){(u=(s=t.elements.item(i)).closest(".v-validity"))&&u.classList.remove("invalid")}var l=new FormData(t);o(r===an.FormData?l:on(l))}else{var c=[];for(i=0;i<t.elements.length;i++){var s,u;(u=(s=t.elements.item(i)).closest(".v-validity"))&&(s.checkValidity()?u.classList.remove("invalid"):(u.classList.add("invalid"),c.push(s)))}a(c)}}},s,{children:t.children}))},cn=function(t){return e("form",S({className:"v-action-form"},t,{children:t.children}))},sn=function(t){var r=t.ref,o=t.type,a=t.label,i=t.icon,l=t.value,c=t.valueHook,s=t.setStateHook,d=t.isValueShow,p=t.gap,g=t.valueSize,m=t.frontColor;t.valueCategory;var v,y=t.valuePadding,b=t.inputStyle,w=t.inputClassName,C=t.placeholderColor,_=t.overWrite,O=t.renderOptions,N=t.onChange,I=t.inheritClassName,E=t.customAttributes,B=k(t,["ref","type","label","icon","value","valueHook","setStateHook","isValueShow","gap","valueSize","frontColor","valueCategory","valuePadding","inputStyle","inputClassName","placeholderColor","overWrite","renderOptions","onChange","inheritClassName","customAttributes"]),D=be(B),L=D.getProps("input").html,z=h({value:void 0!==t.value?t.value:""}),R=z[0],T=z[1],P=u(null);return f((function(){"object"==typeof r&&r?r.current=P.current:"function"==typeof r&&r(P.current),t.autoFocus&&P.current&&P.current.focus()}),[r,t.autoFocus]),_&&(v=_(P)),n(Ce,{_base:D,className:"v-validity v-input ".concat((C||x.Placeholder)+"-placeholder").concat(I?" ".concat(I):""),children:[n(Tt,{display:v?F.None:void 0,children:[n(gt,{gap:p,children:[e(Ee,{children:i}),n(Ee,{children:[e("input",S({ref:P},E,{className:(w?"".concat(w," "):"")+"".concat(D.getClassName("v-input-native")),style:b,type:o},void 0!==c?{value:c}:{defaultValue:void 0!==l?l:""},{onChange:function(e){var t;d&&T({value:null===(t=P.current)||void 0===t?void 0:t.value}),N&&N(e),s&&s(e.target.value)}},L)),!!a&&e("label",{htmlFor:t.id?t.id:t.name,children:a})]}),O?O(P):e(Ee,{})]}),!!d&&e(Ct,{children:e(Re,{padding:y,isAutoSize:t.isAutoSize,fontSize:g||q.Normal,frontColor:m||x.Black,caption:void 0!==R.value?R.value.toString():l?l.toString():""})})]}),!!v&&v]})},un={Default:"default",Circle:"circle",Squared:"squared",Custom:"custom"},dn=function(n){var r=S({},n);!r.cursor&&n.onClick&&(r.cursor=j.Pointer);var l=be(r);return e(t,{children:o.map(n.children,(function(e){return function(e){var t=n.category?n.category:un.Default,r=l.getClassName("v-svg-".concat(t)),o=n.onClick,c=n.onMouseEnter,s=n.onMouseLeave,u={className:r,style:S({},l.getStyle()),onClick:o,onMouseEnter:c,onMouseLeave:s};return e.type===a?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,u)}(e)}))})};dn.displayName="VSvg";var fn,hn,pn=l(dn);function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gn.apply(null,arguments)}var mn,vn=function(e){return r.createElement("svg",gn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),fn||(fn=r.createElement("path",{fill:"currentColor",d:"M198.132 64.763a6 6 0 0 0-6-6H65.753a6 6 0 0 0-6 6v126.473a6 6 0 0 0 6 6h126.399a6 6 0 0 0 6-6.001z"})),hn||(hn=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yn.apply(null,arguments)}var bn,wn=function(e){return r.createElement("svg",yn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),mn||(mn=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))},Cn=function(t){var r=t.isChecked,o=k(t,["isChecked"]);return e(sn,S({isAutoSize:t.isAutoSize,customAttributes:{checked:!!r},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(o){return n(xt,{gap:"0.2em",role:"checkbox","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(pn,{frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?vn:wn,{})}),!!t.label&&e(Re,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}},o))},Sn=function(t){return e(sn,S({type:"color",isDefaultValue:!0},t))},kn=function(t){return e(sn,S({type:"date",isDefaultValue:!0},t))},_n=function(t){return e(sn,S({type:"datetime-local",isDefaultValue:!0},t))},xn=function(t){return e(sn,S({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},On={Bounce:"animate__bounce",Flash:"animate__flash",Pulse:"animate__pulse",RubberBand:"animate__rubberBand",ShakeX:"animate__shakeX",ShakeY:"animate__shakeY",HeadShake:"animate__headShake",Swing:"animate__swing",Tada:"animate__tada",Wobble:"animate__wobble",Jello:"animate__jello",HeartBeat:"animate__heartBeat",BackInDown:"animate__backInDown",BackInLeft:"animate__backInLeft",BackInRight:"animate__backInRight",BackInUp:"animate__backInUp",BackOutDown:"animate__backOutDown",BackOutLeft:"animate__backOutLeft",BackOutRight:"animate__backOutRight",BackOutUp:"animate__backOutUp",BounceIn:"animate__bounceIn",BounceInDown:"animate__bounceInDown",BounceInLeft:"animate__bounceInLeft",BounceInRight:"animate__bounceInRight",BounceInUp:"animate__bounceInUp",BounceOut:"animate__bounceOut",BounceOutDown:"animate__bounceOutDown",BounceOutLeft:"animate__bounceOutLeft",BounceOutRight:"animate__bounceOutRight",BounceOutUp:"animate__bounceOutUp",FadeIn:"animate__fadeIn",FadeInDown:"animate__fadeInDown",FadeInDownBig:"animate__fadeInDownBig",FadeInLeft:"animate__fadeInLeft",FadeInLeftBig:"animate__fadeInLeftBig",FadeInRight:"animate__fadeInRight",FadeInRightBig:"animate__fadeInRightBig",FadeInUp:"animate__fadeInUp",FadeInUpBig:"animate__fadeInUpBig",FadeInTopLeft:"animate__fadeInTopLeft",FadeInTopRight:"animate__fadeInTopRight",FadeInBottomLeft:"animate__fadeInBottomLeft",FadeInBottomRight:"animate__fadeInBottomRight",FadeOut:"animate__fadeOut",FadeOutDown:"animate__fadeOutDown",FadeOutDownBig:"animate__fadeOutDownBig",FadeOutLeft:"animate__fadeOutLeft",FadeOutLeftBig:"animate__fadeOutLeftBig",FadeOutRight:"animate__fadeOutRight",FadeOutRightBig:"animate__fadeOutRightBig",FadeOutUp:"animate__fadeOutUp",FadeOutUpBig:"animate__fadeOutUpBig",FadeOutTopLeft:"animate__fadeOutTopLeft",FadeOutTopRight:"animate__fadeOutTopRight",FadeOutBottomLeft:"animate__fadeOutBottomLeft",FadeOutBottomRight:"animate__fadeOutBottomRight",Flip:"animate__flip",FlipInX:"animate__flipInX",FlipInY:"animate__flipInY",FlipOutX:"animate__flipOutX",FlipOutY:"animate__flipOutY",LightSpeedInRight:"animate__lightSpeedInRight",LightSpeedInLeft:"animate__lightSpeedInLeft",LightSpeedOutRight:"animate__lightSpeedOutRight",LightSpeedOutLeft:"animate__lightSpeedOutLeft",RotateIn:"animate__rotateIn",RotateInDownLeft:"animate__rotateInDownLeft",RotateInDownRight:"animate__rotateInDownRight",RotateInUpLeft:"animate__rotateInUpLeft",RotateInUpRight:"animate__rotateInUpRight",RotateOut:"animate__rotateOut",RotateOutDownLeft:"animate__rotateOutDownLeft",RotateOutDownRight:"animate__rotateOutDownRight",RotateOutUpLeft:"animate__rotateOutUpLeft",RotateOutUpRight:"animate__rotateOutUpRight",Hinge:"animate__hinge",JackInTheBox:"animate__jackInTheBox",RollIn:"animate__rollIn",RollOut:"animate__rollOut",ZoomIn:"animate__zoomIn",ZoomInDown:"animate__zoomInDown",ZoomInLeft:"animate__zoomInLeft",ZoomInRight:"animate__zoomInRight",ZoomInUp:"animate__zoomInUp",ZoomOut:"animate__zoomOut",ZoomOutDown:"animate__zoomOutDown",ZoomOutLeft:"animate__zoomOutLeft",ZoomOutRight:"animate__zoomOutRight",ZoomOutUp:"animate__zoomOutUp",SlideInDown:"animate__slideInDown",SlideInLeft:"animate__slideInLeft",SlideInRight:"animate__slideInRight",SlideInUp:"animate__slideInUp",SlideOutDown:"animate__slideOutDown",SlideOutLeft:"animate__slideOutLeft",SlideOutRight:"animate__slideOutRight",SlideOutUp:"animate__slideOutUp"},Nn={Once:"animate__repeat-1",Twice:"animate__repeat-2",Thrice:"animate__repeat-3",Infinite:"animate__infinite"},In={Slow:"animate__slow",Slower:"animate__slower",Fast:"animate__fast",Faster:"animate__faster"},En={Delay1Second:"animate__delay-1s",Delay2Second:"animate__delay-2s",Delay3Second:"animate__delay-3s",Delay4Second:"animate__delay-4s",Delay5Second:"animate__delay-5s"},Bn=function(t){var n;return e("div",{className:(n=[],n.push(t.category),t.repeat&&n.push(t.repeat),t.speed&&n.push(t.speed),t.delay&&n.push(t.delay),"animate__animated ".concat(n.join(" "))),children:t.children})},Dn=function(t){t.animationCategory,t.animationSpeed;var n=k(t,["animationCategory","animationSpeed"]),r=be(n);return e(Ce,{_base:r,className:"v-loading",children:e(Bn,{category:t.animationCategory?t.animationCategory:On.Flip,speed:t.animationSpeed?t.animationSpeed:In.Slower,repeat:Nn.Infinite,children:t.children})})};function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(null,arguments)}var zn=function(e){return r.createElement("svg",Ln({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),bn||(bn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M142.37 28c14.247 0 25.795 11.548 25.795 25.795s-11.548 25.799-25.795 25.799-25.796-11.551-25.796-25.799S128.122 28 142.37 28m65.108 50.223c7.122 7.125 7.122 18.673 0 25.796-7.122 7.125-18.673 7.125-25.795 0-7.126-7.123-7.126-18.67 0-25.796 7.122-7.122 18.673-7.122 25.795 0m13.977 76.209c0 9.032-7.318 16.35-16.35 16.35-9.03 0-16.348-7.318-16.348-16.35 0-9.03 7.318-16.348 16.348-16.348 9.032 0 16.35 7.318 16.35 16.348m-45.928 59.961c-4.277 4.278-11.215 4.278-15.493 0-4.28-4.28-4.28-11.218 0-15.496 4.278-4.28 11.216-4.28 15.493 0 4.281 4.278 4.281 11.216 0 15.496M104.469 228c-5.98 0-10.83-4.847-10.83-10.83s4.85-10.83 10.83-10.83c5.983 0 10.83 4.847 10.83 10.83S110.452 228 104.469 228m-58.417-41.95c-3.426-3.426-3.426-8.982 0-12.411 3.43-3.426 8.985-3.426 12.412 0a8.77 8.77 0 0 1 0 12.411 8.773 8.773 0 0 1-12.412 0M34 116.534a7.733 7.733 0 1 1 15.466-.002 7.733 7.733 0 0 1-15.466.002m41.858-55.412a4.53 4.53 0 0 1 6.398 0 4.52 4.52 0 0 1 0 6.399 4.52 4.52 0 0 1-6.398 0 4.53 4.53 0 0 1 0-6.399",clipRule:"evenodd"})))},Rn={Vertical:"Vertical",Horizontal:"Horizontal"},Tn=function(e){return e.name.endsWith(".jpg")||e.name.endsWith(".jpeg")||e.name.endsWith(".png")},Pn=function(e){var t=e.promise;return m(t)},Fn=function(t){var n=t.result,r=t.fallback;return n instanceof Promise?e(g,{fallback:null!=r?r:null,children:e(Pn,{promise:n})}):n},jn=function(t){var r=t.category,o=t.appearance;t.loader;var a=t.loaderSize,i=t.loaderColor,l=t.isPreview,c=t.previewImageWidth,s=t.textLength,d=t.autoUpload,p=t.renderLoader,g=t.renderPreview,m=k(t,["category","appearance","loader","loaderSize","loaderColor","isPreview","previewImageWidth","textLength","autoUpload","renderLoader","renderPreview"]),v=u(null),y=h({inputFiles:[],isLoading:!1,previewVersion:0}),b=y[0],w=y[1],C=function(){w((function(e){return S(S({},e),{isLoading:!1})}))},_=function(){w((function(e){return S(S({},e),{previewVersion:e.previewVersion+1})}))};f((function(){return function(){return b.inputFiles.forEach((function(e){e.objectUrl&&URL.revokeObjectURL(e.objectUrl)}))}}),[b.inputFiles]);var x=function(e){e.preventDefault(),e.currentTarget.className="v-file"},O=be(S({onDrop:function(e){e.preventDefault();var t=Array.from(e.dataTransfer.files),n=t.map((function(e){return{name:e.name,objectUrl:Tn(e)?URL.createObjectURL(e):void 0}}));n.length>0&&(d?(w(S(S({},b),{inputFiles:n,isLoading:!0})),d(t,C),e.currentTarget.className="v-file"):(w(S(S({},b),{inputFiles:n})),e.currentTarget.className="v-file"))},onDragOver:function(e){e.preventDefault(),e.currentTarget.className="v-file on-drag"},onDragEnd:x,onDragLeave:x,onDragExit:x},m));return e(Ce,{_base:O,className:"v-file",children:e(sn,S({type:"file",isDefaultValue:!0,ref:v},m,{onChange:function(e){var t,n=Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),r=n.map((function(e){return{name:e.name,objectUrl:Tn(e)?URL.createObjectURL(e):void 0}}));w(S(S({},b),{inputFiles:r})),d&&(w(S(S({},b),{inputFiles:r,isLoading:!0})),d(n,C))},overWrite:function(t){return l?g?e(Ee,{cursor:j.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:e(Fn,{result:g(b.inputFiles,b.isLoading,_),fallback:p?p():e(Dn,{animationCategory:On.Flash,children:e(Ct,{children:e(pn,{fontSize:a,frontColor:i,children:e(zn,{})})})})})}):r==Rn.Vertical?n(Tt,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},cross:zt.Center,children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Tt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Tt,{cross:zt.Center,children:[!!t.objectUrl&&e(Ee,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Re,{fontSize:q.Small,caption:t.name.length>(s||12)?t.name.slice(0,s||12)+"…":t.name})]},"file-".concat(t.name))}))}),!!b.isLoading&&(p?p():e(Dn,{animationCategory:On.Flash,children:e(Ct,{children:e(pn,{fontSize:a,frontColor:i,children:e(zn,{})})})}))]}):n(ft,{gap:"1em",children:[n(ft,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Tt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Tt,{cross:zt.Center,children:[!!t.objectUrl&&e(Ee,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Re,{fontSize:q.Small,caption:t.name.length>(s||12)?t.name.slice(0,s||12)+"…":t.name})]},"file-".concat(t.name))}))})]}),!!b.isLoading&&(p?p():e(Dn,{animationCategory:On.Flash,children:e(pn,{fontSize:a,frontColor:i,children:e(zn,{})})}))]}):e(Ee,{cursor:j.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:o})}}))})},Vn={Default:"default",Circle:"circle",Squared:"squared",FullSize:"full-size",Scale:"scale"},Wn=function(t){var n=t.category,r=k(t,["category"]),o=be(r),a=o.getProps("img").html,i=n||Vn.Default;return e("img",S({className:o.getClassName("v-image-".concat(i)),style:o.getStyle()},a))};Wn.displayName="VImage";var An,Un,Hn=l(Wn),Mn=function(t){return e(sn,S({display:F.None,type:"hidden"},t))},qn=function(t){var r=t.fileIcon,o=t.base64Image,a=k(t,["fileIcon","base64Image"]),i=be(a),l=h({base64Image:o}),c=l[0],s=l[1];return n(Ce,{_base:i,className:"v-base64file",children:[e(Mn,{name:t.name,value:c.base64Image}),e(sn,S({type:"file",isDefaultValue:!0,onChange:function(e){if(e.target.files&&1==e.target.files.length){var t=e.target.files[0],n=new FileReader;n.onloadend=function(){var e;e=n.result&&"string"==typeof n.result?n.result.replace("data:","").replace(/^.+,/,""):"Todo",s({base64Image:e})},n.readAsDataURL(t)}},overWrite:function(o){return n(Tt,{gap:"0.2em",onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},children:[r,e(Hn,{fontSize:t.fontSize,category:Vn.Scale,src:"data:image/png;base64,".concat(c.base64Image),alt:"file"})]})}},a))]})},Gn=function(t){return e(sn,S({type:"month",isDefaultValue:!0},t))},Xn=function(t){return e(sn,S({type:"number",isDefaultValue:!0},t))},Yn=function(t){return e(sn,S({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))};function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(null,arguments)}var Jn,Kn=function(e){return r.createElement("svg",Zn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),An||(An=r.createElement("path",{fill:"currentColor",d:"M128 188c33.138 0 60-26.862 60-60s-26.862-60-60-60-60 26.862-60 60 26.862 60 60 60"})),Un||(Un=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qn.apply(null,arguments)}var $n,er,tr=function(e){return r.createElement("svg",Qn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Jn||(Jn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))},nr=function(t){var r=t.isChecked,o=k(t,["isChecked"]);return e(sn,S({type:"radio",customAttributes:{checked:!!r},isDefaultValue:!0},o,{overWrite:function(o){return n(xt,{role:"radio","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(pn,{padding:"0.4em",frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?Kn:tr,{})}),!!t.label&&e(Re,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}}))},rr=function(t){var n=t.thumbColor,r=t.thumbBorderColor,o=t.trackColor,a=t.trackHeight,i=t.inputStyle,l=k(t,["thumbColor","thumbBorderColor","trackColor","trackHeight","inputStyle"]),c="".concat(n,"-thumb-background ").concat(r,"-thumb-border ").concat(o,"-track-background"),s=a?S(S({},i),{"--den-range-track-height":a}):i;return e(sn,S({type:"range",inputClassName:c},l,{inputStyle:s}))},or=function(t){return e(sn,S({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},ar=function(t){var r=t.ref;t.caption,t.isFormNoValidate;var o=k(t,["ref","caption","isFormNoValidate"]),a=u(null);f((function(){"object"==typeof r&&r?r.current=a.current:"function"==typeof r&&r(a.current),t.autoFocus&&a.current&&a.current.focus()}),[r,t.autoFocus]);var i=be(S({onClick:function(){a.current.click()}},o)),l=i.getProps("input").html;return n(Ce,{_base:i,className:"v-submit",children:[n(Ct,{cross:ut.Middle,children:[!!t.icon&&e("span",{children:t.icon}),!!t.caption&&e("span",{children:t.caption})]}),e("input",S({formNoValidate:t.isFormNoValidate,ref:a,type:"submit"},l))]})},ir=function(t){var r=be(t),o=u(null);return n("div",{className:r.getClassName("v-submit-wrapper"),style:r.getStyle(),children:[t.body,e("input",{ref:o,type:"submit"})]})},lr=function(t){return e(sn,S({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))};function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(null,arguments)}var sr,ur=function(e){return r.createElement("svg",cr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),$n||($n=r.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),er||(er=r.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},dr=function(t){var r=t.enableClear,o=k(t,["enableClear"]);return e(sn,r?S({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o,{renderOptions:function(r){return n(ft,{gap:"0.2em",children:[t.renderOptions&&t.renderOptions(r),e(pn,{fontSize:q.ExtraSmall,frontColor:x.Placeholder,role:"button","aria-label":"Clear",tabIndex:0,onClick:function(){r.current&&(r.current.value="")},onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||!r.current||(e.preventDefault(),r.current.value="")},children:e(ur,{})})]})}}):S({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o))},fr=function(t){return e(sn,S({type:"time",isDefaultValue:!0},t))},hr=function(t){return e(sn,S({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},pr=function(t){return e(sn,S({type:"week",isDefaultValue:!0},t))},gr=function(n){var r=h({selectedValue:n.selectedValue}),o=r[0],a=r[1];return e(t,{children:n.renderGroup(o.selectedValue,(function(e){a({selectedValue:e.currentTarget.value})}))})};function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(null,arguments)}var vr,yr,br,wr,Cr,Sr,kr,_r,xr=function(e){return r.createElement("svg",mr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),sr||(sr=r.createElement("circle",{cx:128,cy:128,r:100,fill:"currentColor"})))},Or=function(t){var r=t.isOn,o=t.icon,a=t.gap,i=t.isDisabled,l=t.onSwitch,c=k(t,["isOn","icon","gap","isDisabled","onSwitch"]),s=h({isOn:r}),u=s[0],d=s[1];f((function(){d({isOn:r})}),[r]);var p=o?e(pn,{style:{margin:u.isOn?"0 0.6em 0 0":"0 0 0 0.6em"},frontColor:x.White,fontSize:q.Normal,children:o}):e(Ee,{width:"1em",height:"1em"}),g=t.isDisabled?void 0:function(){t.isDisabled||(l&&l(!u.isOn),d({isOn:!u.isOn}))},m=be(S({onClick:g},c));return e(Ce,{_base:m,className:i?"v-switch-disabled":"v-switch",children:n(wt,{role:"switch","aria-checked":u.isOn,"aria-disabled":i,tabIndex:i?-1:0,onKeyDown:g?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),g())}:void 0,borderRadius:z.ExtraLarge,backgroundColor:u.isOn?t.frontColor?t.frontColor:x.Success:t.backgroundColor?t.backgroundColor:x.Placeholder,gap:a||"0.6em",children:[u.isOn?e(pn,{category:un.Circle,frontColor:x.White,children:e(xr,{})}):p,u.isOn?p:e(pn,{category:un.Circle,frontColor:x.White,children:e(xr,{})})]})})},Nr=function(t){var n=t.name;t.items;var r=t.value,o=t.isMultiple;t.fontFamily;var a=k(t,["name","items","value","isMultiple","fontFamily"]),i=be(a),l=i.getProps("select").html;return e(Ce,{_base:i,className:"v-select",children:e("select",S({multiple:o,name:n,defaultValue:r,"aria-label":n},l,{children:t.items.map((function(t){return e("option",{value:t.value,children:t.caption},t.value)}))}))})},Ir=function(t){var r,o,a,i,l=t.ref,c=t.value,d=t.name,p=t.icon,g=t.emptyIcon,m=t.downIcon,v=t.upIcon,y=t.enableClear,b=t.items,w=t.dockCategory,C=t.dockAlignment,_=t.menuBackgroundColor,O=t.menuZIndex,N=t.menuGap;t.onClick;var I=t.isSelectOnly,B=t.overWriteDropdownMenu,L=t.overWriteDropdownItem,z=t.handleChange,T=t.readOnly,F=k(t,["ref","value","name","icon","emptyIcon","downIcon","upIcon","enableClear","items","dockCategory","dockAlignment","menuBackgroundColor","menuZIndex","menuGap","onClick","isSelectOnly","overWriteDropdownMenu","overWriteDropdownItem","handleChange","readOnly"]),j=be(F),V=h({isSelectionShow:!1,selectValue:c||"",selectCaption:c?b.filter((function(e){return e.value==c}))[0].caption:"",items:b}),W=V[0],A=V[1],U=u(null),H=s(),M=u(null),G=u(null);f((function(){if(W.isSelectionShow){var e=function(e){var t=e.target;M.current&&!M.current.contains(t)&&G.current&&!G.current.contains(t)&&A((function(e){return S(S({},e),{isSelectionShow:!1,items:b})}))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[W.isSelectionShow,b]);f((function(){"object"==typeof l&&l?l.current=U.current:"function"==typeof l&&l(U.current),t.autoFocus&&U.current&&U.current.focus()}),[l,t.autoFocus]);var X=O||We;if(T)return n(mt,{className:j.getClassName("v-dropdown"),style:j.getStyle(t.style),children:[e(Re,{caption:(null===(r=W.selectCaption)||void 0===r?void 0:r.toString())||"",fontSize:t.fontSize,frontColor:t.frontColor}),e(Mn,{name:d,valueHook:null===(o=W.selectValue)||void 0===o?void 0:o.toString()}),e(pn,{fontSize:t.iconSize?t.iconSize:q.Small,children:m})]});var Y=M.current?"".concat(M.current.offsetWidth,"px"):void 0;return e(Xe,{width:"fit-content",overlayZIndex:W.isSelectionShow?X:-2147483648,category:w||Ae.RightBottom,alignment:C||Ue.Vertical,renderOverlay:function(){return e(Ee,{ref:G,minWidth:Y,className:"v-dropdown-overlay",children:e(Ee,{visibility:W.isSelectionShow?P.Visible:P.Hidden,borderRadius:t.borderRadius,role:"listbox",id:H,children:B?B(W.items):e(Tt,{gap:N,padding:t.padding,backgroundColor:_||x.White,borderRadius:t.borderRadius,borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:R.Solid,children:0==W.items.length?e(Ct,{children:e(pn,{fontSize:t.iconSize?t.iconSize:q.Small,children:g})}):W.items.map((function(r){return L?e(Ee,{borderRadius:t.borderRadius,role:"option","aria-selected":r.value===W.selectValue,children:L(r)},r.value):n(xt,{padding:E.ExtraSmall,gap:D.Small,borderRadius:t.borderRadius,className:"item",role:"option","aria-selected":r.value===W.selectValue,onClick:function(){A(S(S({},W),{isSelectionShow:!1,selectIcon:r.icon,selectCaption:r.caption,selectValue:r.value,items:b})),z&&z(r.value)},children:[r.icon?e(pn,{fontSize:q.ExtraSmall,children:r.icon}):void 0,e(Re,{caption:r.caption})]},r.value)}))})})})},children:e(Ee,{ref:M,children:n(mt,S({className:j.getClassName("v-dropdown"),style:j.getStyle(t.style)},F,{role:"combobox","aria-expanded":W.isSelectionShow,"aria-haspopup":"listbox","aria-controls":H,onClick:function(){A(S(S({},W),{isSelectionShow:!W.isSelectionShow}))},children:[n(Ee,{children:[e(dr,{ref:U,id:t.id,style:{padding:0},fontSize:t.fontSize,frontColor:t.frontColor,icon:e(pn,{fontSize:t.iconSize?t.iconSize:q.Small,children:W.selectIcon?W.selectIcon:p}),valueHook:null===(a=W.selectCaption)||void 0===a?void 0:a.toString(),enableClear:y,renderOptions:t.renderOptions,readOnly:I,onChange:I?void 0:function(e){var t;t=e.target.value,A(S(S({},W),{isSelectionShow:!0,selectCaption:t,items:b.filter((function(e){return e.caption.toLowerCase().indexOf(t.toLowerCase())>-1}))}))}}),e(Mn,{name:d,valueHook:null===(i=W.selectValue)||void 0===i?void 0:i.toString()})]}),e(pn,{fontSize:t.iconSize?t.iconSize:q.Small,children:W.isSelectionShow?v:m})]}))})})},Er={NewWindow:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},Br=function(t){var n=t.category,r=t.to,o=k(t,["category","to"]),a=be(o),i=a.getProps("a").html;return e(Ce,{_base:a,className:"v-hyperlink",children:e("a",S({href:r,target:n},i,{children:t.children}))})},Dr={P:"p",Address:"address",Article:"article",Aside:"aside",Details:"details",Section:"section"},Lr={Justify:0,Left:1,Right:2,Center:3},zr=function(t){var n=t.category;t.alignType;var r,o,a=t.renderContent,i=k(t,["category","alignType","renderContent"]),l=be(i);switch(t.alignType){case Lr.Center:o="v-text-center";break;case Lr.Justify:o="v-text-justify";break;case Lr.Left:o="v-text";break;case Lr.Right:o="v-text-right";break;default:o="v-text"}if(n){var s=n,u=l.getProps(s).html;r=c(s,u,a())}else{u=l.getProps("span").html;r=c("span",u,a())}return e(Ce,{_base:l,className:o,children:r})},Rr=function(t){var r=t.ref;t.icon;var o=t.valueHook,a=t.setStateHook,i=t.placeholderColor,l=k(t,["ref","icon","valueHook","setStateHook","placeholderColor"]),c=be(l),s=c.getProps("textarea").html,d=u(null);return f((function(){return"object"==typeof r&&r?r.current=d.current:"function"==typeof r&&r(d.current),t.autoFocus&&d.current&&d.current.focus(),function(){"object"==typeof r&&r?r.current=null:"function"==typeof r&&r(null)}}),[r,t.autoFocus]),e(Ce,{category:we.Display,_base:c,className:"v-validity v-textarea ".concat((i||x.Placeholder)+"-placeholder"),children:n(yt,{cross:ut.Top,gap:"0.6em",children:[t.icon,e(Ee,{children:e("textarea",S({ref:d},s,{id:t.id?t.id:t.name},void 0!==o?{value:o}:{defaultValue:t.value},{onChange:function(e){t.onChange&&t.onChange(e),a&&a(e.target.value)}}))})]})})},Tr={Default:"default",Fixed:"fixed"},Pr=function(t){t.category;var n=k(t,["category"]),r=be(n);return e(Ce,{_base:r,className:"v-ellipse-".concat(t.category?t.category:Tr.Default),children:t.children})},Fr={Vertical:"vertical",Horizontal:"horizontal"},jr=function(t){t.category;var n=k(t,["category"]),r=be(n);return e(Ce,{_base:r,className:"v-line-".concat(t.category)})},Vr="default",Wr=function(t){t.category;var n=k(t,["category"]),r=be(n);return e(Ce,{_base:r,className:"v-rectangle-".concat(t.category?t.category:Vr)})},Ar={Default:"default",Max:"max"},Ur=function(n){var r=be(n);return 0===o.toArray(n.children).length?e(Re,{backgroundColor:x.Error,caption:"[VShadow] No Children!"}):e(t,{children:o.map(n.children,(function(e){return function(e){if(null==e||"boolean"==typeof e)return null;var t={};n.x&&n.y&&n.blur&&n.spread&&n.color&&(t.boxShadow="".concat(n.x,"px ").concat(n.y,"px ").concat(n.blur,"px ").concat(n.spread,"px ").concat(n.color));var o={className:r.getClassName("v-shadow-".concat(n.category?n.category:Ar.Default)),style:S(S({},t),r.getStyle())};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,o)}(e)}))})},Hr=function(t){t.sources;var n=k(t,["sources"]),r=be(n),o=r.getProps("audio").html;return e("audio",S({className:r.getClassName("v-audio"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},Mr=function(t){t.sources;var n=k(t,["sources"]),r=be(n),o=r.getProps("video").html;return e("video",S({className:r.getClassName("v-video"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},qr=function(t){var n=be(t),r=n.getProps("header").html;return e("header",S({className:n.getClassName("v-header"),style:n.getStyle()},r,{children:t.children}))},Gr=function(t){var n=be(t),r=n.getProps("main").html;return e("main",S({className:n.getClassName("v-main"),style:n.getStyle()},r,{children:t.children}))},Xr=function(t){var n=be(t),r=n.getProps("footer").html;return e("footer",S({className:n.getClassName("v-footer"),style:n.getStyle()},r,{children:t.children}))},Yr=function(t){var n=be(t),r=n.getProps("aside").html;return e("aside",S({className:n.getClassName("v-aside"),style:n.getStyle()},r,{children:t.children}))},Zr=function(t){var n=be(t),r=n.getProps("nav").html;return e("nav",S({className:n.getClassName("v-nav"),style:n.getStyle()},r,{children:t.children}))},Jr=function(t){var n=be(t),r=n.getProps("hr").html;return e("hr",S({className:n.getClassName("v-hr"),style:n.getStyle()},r))},Kr=function(t){var n=be(t),r=n.getProps("section").html;return e("section",S({className:n.getClassName("v-section"),style:n.getStyle()},r,{children:t.children}))},Qr=function(t){var n=be(S({width:"100vw",height:"100vh",backgroundColor:x.Dark75},t));return e(Oe,{zIndex:t.zIndex?t.zIndex:We,category:_e.Window,type:xe.Center,children:e(Ie,{children:e(Ce,{_base:n,className:"v-mask",children:e(Oe,{category:_e.Area,type:xe.Center,children:t.children})})})})},$r=function(t){var n,r=t.image,o=t.backingBoard,a=t.style,i=k(t,["image","backingBoard","style"]),l=be(i);return o&&(n=S(S({},a),{background:"linear-gradient(".concat(o.degree,", ").concat(o.startColor,", ").concat(o.endColor,")")})),e(Ce,S({_base:l,className:"v-frame",style:n},t.customAttributes,{children:e("div",{style:{backgroundImage:"url(".concat(r,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:t.children})}))},eo="--den-",to={Global:"global",Area:"area"},no=function(t){var n=t.category,r=t.area,o=t.variables,a=k(t,["category","area","variables"]),i=be(S({id:r},a));return f((function(){var e;n==to.Area?r&&(e=document.getElementById(r)):e=document.documentElement,e&&(Object.keys(o.colors).forEach((function(t){e.style.setProperty("".concat(eo,"color-").concat(t),o.colors[t])})),Object.keys(o.fontSizes).forEach((function(t){e.style.setProperty("".concat(eo).concat(t),o.fontSizes[t])})),Object.keys(o.fontWeights).forEach((function(t){e.style.setProperty("".concat(eo).concat(t),o.fontWeights[t])})))}),[]),n==to.Area?e(Ce,{_base:i,className:"v-theme",children:t.children}):e(Re,{backgroundColor:x.Error,caption:"[VTheme] No Area!"})},ro={Hover:"hover",Click:"click"},oo=function(t){var n=t.category,r=void 0===n?ro.Hover:n,o=t.dockCategory,a=t.dockAlignment,i=t.renderOverlay,l=k(t,["category","dockCategory","dockAlignment","renderOverlay"]),c=be(l),u=h(!1),d=u[0],f=u[1],p=s();return e(Ce,{_base:c,className:"v-tooltip",children:e(Xe,{category:o,alignment:a,isOverlayVisible:d,popoverMode:r===ro.Click?He.Auto:He.Manual,onOverlayClose:function(){return f(!1)},renderOverlay:function(){return e(Ee,{role:"tooltip",id:p,children:i()})},children:e(Ee,{"aria-describedby":d?p:void 0,onClick:function(){r===ro.Click&&f(!d)},onMouseEnter:function(){r===ro.Hover&&f(!0)},onMouseLeave:function(){r===ro.Hover&&f(!1)},onFocus:function(){r===ro.Hover&&f(!0)},onBlur:function(){r===ro.Hover&&f(!1)},children:t.children})})})},ao=function(t){function n(e){var n=t.call(this,e)||this;return n.state={hasError:!1,error:null,errorInfo:null},n}return C(n,t),n.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},n.prototype.componentDidCatch=function(e,t){this.setState({errorInfo:t}),this.props.onError&&this.props.onError(e,t)},n.prototype.render=function(){var t;return this.state.hasError?this.props.fallback?"function"==typeof this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):this.props.fallback:e("div",{className:"v-error-boundary",role:"alert",children:e(Re,{backgroundColor:x.Error,frontColor:x.White,padding:"1em",caption:"Component Error: ".concat((null===(t=this.state.error)||void 0===t?void 0:t.message)||"Unknown error")})}):this.props.children},n}(v),io=function(t){return e(Ie,{children:!!t.badge&&e(Oe,{category:_e.Area,bottom:"0",right:"0",children:"string"==typeof t.badge||t.badge instanceof String?e(Hn,{category:Vn.Circle,fontSize:q.Small,src:t.badge,alt:"null",borderStyle:"solid",borderWidth:"1px",borderColor:x.Light}):e(pn,{category:un.Circle,frontColor:x.Secondary,backgroundColor:x.White,fontSize:q.Small,children:t.badge})})})},lo=function(t){var n=be(t),r=n.getProps("template").html;return e("template",S({className:n.getClassName("v-template"),style:n.getStyle()},r,{children:t.children}))},co=function(t){return e("div",{id:t.id})},so=function(t){return t.isDebug?e("div",{className:"debug",children:t.children}):e("div",{className:"no-debug",children:t.children})},uo={Uninstalled:"uninstalled",Outdated:"outdated",Ready:"ready"},fo=function(t){var n=h({}),r=n[0],o=n[1];if(f((function(){var e;r.status||(e="chrome-extension://".concat(t.extensionId,"/meta.json"),fetch(e).then((function(e){return e.ok?e.json():Promise.reject()})).then((function(e){var n=!t.version||e.version>=t.version;o({status:n?uo.Ready:uo.Outdated,meta:e})})).catch((function(){return o({status:uo.Uninstalled})})))}),[]),r.status){if(t.overWrite)return t.overWrite(r.status,r.meta);var a=void 0;return r.status===uo.Ready?e(Ee,{className:"v-chrome-extension-validator-fragment"}):(r.status===uo.Uninstalled?a=t.uninstalledMessage:r.status===uo.Outdated&&(a=t.outdatedMessage),e(Br,{category:Er.NewWindow,to:t.downloadUrl?t.downloadUrl:"mailto:support@fewbox.com",children:a}))}return e(Ee,{className:"v-chrome-extension-validator-fragment"})},ho={Normal:"normal",Italic:"italic"},po=function(t){return f((function(){var e=document.createElement("link");e.rel="preconnect",e.href="https://fonts.googleapis.com";var n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin="crossorigin",document.head.appendChild(e),document.head.appendChild(n),t.typefaces.forEach((function(e,t){var n,r,o=e.family,a=null===(n=e.fonts)||void 0===n?void 0:n.filter((function(e){return e.type==ho.Italic})),i=a&&a.length>0?"ital,wght":"wght",l=document.createElement("link");l.rel="stylesheet";var c=[];e.fonts&&e.fonts.length>1?(null===(r=e.fonts)||void 0===r||r.forEach((function(e,t){"ital,wght"==i?e.type==ho.Normal?c.push("0,".concat(M(e.weight))):e.type==ho.Italic&&c.push("1,".concat(M(e.weight))):c.push(M(e.weight).toString())})),l.href="https://fonts.googleapis.com/css2?family=".concat(o,":").concat(i,"@").concat(c.join(";"),"&display=swap")):l.href="https://fonts.googleapis.com/css2?family=".concat(o,"&display=swap"),document.head.appendChild(l)}))}),[]),e(Ee,{className:"google-font-fragment"})},go={Popup:"popup",Redirect:"redirect"},mo={Implicit:"implicit",AuthorizationCode:"authorization-code"},vo="fewbox-google-grant",yo=function(t){return f((function(){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",t.category==mo.Implicit?e.onload=function(){var e=google.accounts.oauth2.initTokenClient({client_id:t.clientId,scope:t.scope,callback:function(e){var n={accessToken:e.access_token,expiresIn:e.expires_in,hd:e.hd,prompt:e.prompt,tokenType:e.token_type,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestAccessToken();else{var n=document.getElementById(vo);null==n||n.addEventListener("click",(function(){e.requestAccessToken()}))}t.enableGoogle()}:e.onload=function(){var e=google.accounts.oauth2.initCodeClient({client_id:t.clientId,scope:t.scope,ux_mode:t.uxMode,callback:function(e){var n={code:e.code,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestCode();else{var n=document.getElementById(vo);null==n||n.addEventListener("click",(function(){e.requestCode()}))}t.enableGoogle()},e.onerror=function(e){console.error(e),t.disableGoogle()},document.body.appendChild(e)}),[t.clientId,t.scope,t.uxMode,t.category,t.isAutoRequest]),t.isAutoRequest?e(Ee,{className:"google-grant-fragment"}):e(co,{id:vo,children:t.children})},bo=function(t){return e("div",{className:"figma-signin",onClick:function(){window.location.href="https://www.figma.com/oauth?client_id=".concat(t.clientId,"&redirect_uri=").concat(t.redirectUrl,"&scope=").concat(t.scope,"&state=").concat("fewbox","&response_type=").concat(t.responseType)},children:t.children})};function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(null,arguments)}var Co=function(e){return r.createElement("svg",wo({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),r.createElement("mask",{id:"google-disable_svg__a",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},vr||(vr=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),yr||(yr=r.createElement("g",{mask:"url(#google-disable_svg__a)"},r.createElement("path",{fill:"#BDBDBD",d:"M18.698 187.09V68.908L97.768 128l-79.07 59.091z"}))),r.createElement("mask",{id:"google-disable_svg__b",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},br||(br=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),wr||(wr=r.createElement("g",{mask:"url(#google-disable_svg__b)"},r.createElement("path",{fill:"#9E9E9E",d:"M18.698 68.908 97.768 128l32.558-27.727 111.628-17.727V18.908H18.698z"}))),r.createElement("mask",{id:"google-disable_svg__c",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},Cr||(Cr=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),Sr||(Sr=r.createElement("g",{mask:"url(#google-disable_svg__c)"},r.createElement("path",{fill:"#ADADAD",d:"M18.698 187.09 158.233 82.545l36.744 4.545 46.977-68.182V237.09H18.698z"}))),r.createElement("mask",{id:"google-disable_svg__d",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},kr||(kr=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),_r||(_r=r.createElement("g",{mask:"url(#google-disable_svg__d)"},r.createElement("path",{fill:"#757575",d:"M241.954 237.09 97.767 127.999l-18.604-13.636 162.791-45.455z"}))))},So={Prompt:"prompt",Popup:"popup",Redirect:"redirect"},ko="https://accounts.google.com/gsi/client",_o=!1,xo=function(n){var r=n.clientId,o=n.uxMode,a=n.redirectUrl,i=n.gsiButtonConfiguration,l=n.callback,c=n.switchAnotherIdentityProvider,s=n.enableGoogle,d=n.disableGoogle,p=n.googleAuthButtonId,g=p||"fewbox-google-auth",m=u(l),v=u(c),y=u(s),b=u(d),w=h(!1),C=w[0],S=w[1];m.current=l,v.current=c,y.current=s,b.current=d;var k=function(e){console.error(e),S(!0),b.current()};return f((function(){var e;if("undefined"!=typeof document)if(S(!1),r.endsWith(".apps.googleusercontent.com")){if(!_o){var t=!1,n=null,l=function(){try{if(google.accounts.id.initialize({client_id:r,ux_mode:o!=So.Prompt?o:void 0,use_fedcm_for_prompt:o==So.Prompt,callback:function(e){m.current(e.credential)},login_uri:a,error_callback:function(){t=!0,n&&(clearTimeout(n),n=null),k("Google Sign-In error callback fired!")}}),o==So.Prompt)google.accounts.id.prompt((function(e){if((e.isNotDisplayed()||e.isSkippedMoment())&&v.current){var t=e.isNotDisplayed()?e.getNotDisplayedReason():e.getSkippedReason();v.current(t)}})),y.current();else{var e=document.getElementById(g);e?(google.accounts.id.renderButton(e,i||{type:"icon",size:"large",theme:"outline",shape:"circle",logo_alignment:"center"}),n=setTimeout((function(){if(!t){var n=e.querySelector("iframe");n&&n.clientHeight>0?y.current():k("Google Sign-In button render failed!")}}),2e3)):k("The element '".concat(g,"' not found!"))}}catch(e){console.error(e),k("Initialize GSI failed!")}},c=function(){_o=!0,k("Script error!")};if("undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id))return l(),function(){n&&(clearTimeout(n),n=null),google.accounts.id.cancel()};var s=document.querySelector('script[src="'.concat(ko,'"]'));if(s)return"true"===s.dataset.gsiError?void c():"true"===s.dataset.gsiReady?(l(),function(){var e;n&&(clearTimeout(n),n=null),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()}):(s.addEventListener("load",l,{once:!0}),s.addEventListener("error",c,{once:!0}),function(){var e;n&&(clearTimeout(n),n=null),s.removeEventListener("load",l),s.removeEventListener("error",c),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()});var u=document.createElement("script");return u.src=ko,u.onload=function(){u.dataset.gsiReady="true",l()},u.onerror=function(){u.dataset.gsiError="true",c()},document.body.appendChild(u),function(){var e;n&&(clearTimeout(n),n=null),u.remove(),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()}}k("GSI script failed!")}else k("Invalid Google client ID: '".concat(r,"'!"))}),[r,o,a,i,g]),o==So.Prompt?e(t,{}):C?e(pn,{fontSize:q.Small,children:e(Co,{})}):e(Ct,{children:e(co,{id:g})})},Oo=function(t){return e("div",{className:"wecom-signin",onClick:function(){window.location.href="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=".concat(t.appId,"&agentid=").concat(t.agentId,"&redirect_uri=").concat(t.redirectUrl,"&state=").concat("fewbox")},children:t.children})},No=function(e){var t={},n=b(e,{header:!0});return t.role=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],t.mobile=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone"],t.name=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],t.email=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],t.exp=n.exp,t.iss=n.iss,t.aud=n.aud,t.expire=t.exp?new Date(1e3*t.exp):new Date(-864e13),t.tenant=n["http://schemas.fewbox.com/jwt/identity/claims/tenant"],t.id=n["http://schemas.fewbox.com/jwt/identity/claims/id"],t.api=n["http://schemas.fewbox.com/jwt/identity/claims/api"],t.issuer=n["http://schemas.fewbox.com/jwt/identity/claims/issuer"],t.audience=n["http://schemas.fewbox.com/jwt/identity/claims/audience"],t.avatar=n["http://schemas.fewbox.com/jwt/identity/claims/avatar"],t};export{On as AnimationCategory,En as AnimationDelay,Nn as AnimationRepeat,In as AnimationSpeed,nn as BackgroundPositionType,be as Base,z as BorderRadiusType,R as BorderStyleType,T as BorderWidthType,Pe as BreakpointCategory,je as BreakpointDisplay,Fe as BreakpointType,x as ColorType,j as CursorType,so as Debug,X as DirectionType,F as DisplayType,Xe as Dock,Ue as DockAlignment,Ae as DockCategory,He as DockPopoverMode,Tr as EllipseCategory,uo as ExtensionStatus,bo as FigmaSignin,Rn as FileCategory,$e as Flex,Qe as FlexAlignContentType,Ke as FlexAlignItemsType,Ye as FlexDirectionType,tt as FlexItem,et as FlexItemAlignSelfType,Je as FlexJustifyContentType,Ze as FlexWrapType,N as FontFamilyType,q as FontSizeType,O as FontWeightType,D as GapType,ho as GoogleFontType,yo as GoogleGrant,mo as GoogleGrantCategory,go as GoogleGrantUXMode,xo as GoogleSignin,So as GoogleSigninUXMode,an as HandleSubmitCategory,Er as HyperlinkCategory,Vn as ImageCategory,Le as LabelAlignType,Be as LabelCategory,De as LabelType,L as LetterSpacingType,Fr as LineCategory,I as LineHeightType,B as MarginType,U as OpacityType,V as OverflowType,W as OverflowXType,A as OverflowYType,E as PaddingType,Oe as Position,Ie as PositionArea,Ne as PositionAreaCategory,_e as PositionCategory,xe as PositionType,G as PseudoType,Ve as Responsive,we as RootCategory,nt as SBaseline,rt as SBottom,lt as SCenter,ot as SLeft,at as SMiddle,it as SRight,ct as SStretch,st as STop,Te as ScreenSizeType,Ar as ShadowCategory,un as SvgCategory,Lr as TextAlignType,Dr as TextCategory,to as ThemeCategory,ro as TooltipCategory,cn as VActionForm,Bn as VAnimation,Yr as VAside,Hr as VAudio,rn as VBackground,io as VBadge,qn as VBase64File,Ee as VBoundary,Cn as VCheckBox,fo as VChromeExtensionValidator,Sn as VColor,kn as VDate,_n as VDatetimeLocal,Ir as VDropdown,Pr as VEllipse,xn as VEmail,ao as VErrorBoundary,jn as VFile,Xr as VFooter,ln as VForm,$r as VFrame,po as VGoogleFont,gr as VGroup,Jr as VHR,qr as VHeader,Mn as VHidden,Br as VHyperlink,Hn as VImage,Re as VLabel,jr as VLine,Dn as VLoading,Gr as VMain,Qr as VMask,Gn as VMonth,co as VMount,Zr as VNav,Xn as VNumber,Yn as VPassword,nr as VRadio,rr as VRange,Wr as VRectangle,or as VSearch,Kr as VSection,Nr as VSelect,Ur as VShadow,ar as VSubmit,ir as VSubmitWrapper,pn as VSvg,Or as VSwitch,lr as VTel,lo as VTemplate,zr as VText,Rr as VTextArea,dr as VTextBox,no as VTheme,fr as VTime,oo as VTooltip,hr as VUrl,Mr as VVideo,pr as VWeek,ke as VZone,H as ViewSizeType,P as VisibilityType,Oo as WeComSignin,ft as X,ht as XAround,pt as XAutoBoth,gt as XAutoCenter,mt as XAutoLeft,vt as XAutoLefts,yt as XAutoRight,bt as XAutoRights,wt as XBetween,Ct as XCenter,ut as XCrossType,St as XCustom,kt as XCustomBoth,_t as XEvenly,xt as XLeft,Ot as XRight,Nt as XWrapAround,It as XWrapBetween,Et as XWrapBottom,Bt as XWrapEvenly,Dt as XWrapMiddle,Lt as XWrapTop,Tt as Y,Wt as YAround,Xt as YAutoBoth,Mt as YAutoBottom,Gt as YAutoBottoms,Ht as YAutoCenter,Ut as YAutoTop,qt as YAutoTops,Pt as YBetween,Vt as YBottom,zt as YCrossType,Yt as YCustom,Zt as YCustomBoth,At as YEvenly,Ft as YMiddle,jt as YTop,$t as YWrapAround,en as YWrapBetween,Kt as YWrapCenter,tn as YWrapEvenly,Jt as YWrapLeft,Qt as YWrapRight,Se as ZoneCategory,on as convertFormDataToJson,fe as getGeneratedClassName,M as getWeightValue,No as parseJWT};
|
|
2
|
+
import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import{Children as o,Fragment as a,cloneElement as i,memo as l,createElement as c,useId as s,useRef as u,useLayoutEffect as d,useEffect as f,useState as h,useCallback as p,Component as g}from"react";import{createPortal as m}from"react-dom";import{jwtDecode as v}from"jwt-decode";var y=function(e,t){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},y(e,t)};function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w.apply(this,arguments)};function C(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function S(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var k={Font:"font",Body:"body",White:"white",Black:"black",Light:"light",Light75:"light75",Light50:"light50",Light25:"light25",Dark:"dark",Dark75:"dark75",Dark50:"dark50",Dark25:"dark25",Primary:"primary",Primary75:"primary75",Primary50:"primary50",Primary25:"primary25",Secondary:"secondary",Secondary75:"secondary75",Secondary50:"secondary50",Secondary25:"secondary25",Tertiary:"tertiary",Tertiary75:"tertiary75",Tertiary50:"tertiary50",Tertiary25:"tertiary25",Info:"info",Info75:"info75",Info50:"info50",Info25:"info25",Success:"success",Success75:"success75",Success50:"success50",Success25:"success25",Warning:"warning",Warning75:"warning75",Warning50:"warning50",Warning25:"warning25",Error:"error",Error75:"error75",Error50:"error50",Error25:"error25",Border:"border",Border75:"border75",Border50:"border50",Border25:"border25",Placeholder:"placeholder",Placeholder75:"placeholder75",Placeholder50:"placeholder50",Placeholder25:"placeholder25",Transparent:"transparent"},_={Thin:"font-weight-thin",ExtraLight:"font-weight-extra-light",Light:"font-weight-light",Regular:"font-weight-regular",Medium:"font-weight-medium",SemiBold:"font-weight-semi-bold",Bold:"font-weight-bold",ExtraBold:"font-weight-extra-bold",Black:"font-weight-black"},x={Default:"font-family"},O={Default:"line-height"},N={Default:"padding",Normal:"padding-normal",ExtraSmall:"padding-extra-small",Small:"padding-small",Large:"padding-large",ExtraLarge:"padding-extra-large"},I={Default:"margin",Normal:"margin-normal",ExtraSmall:"margin-extra-small",Small:"margin-small",Large:"margin-large",ExtraLarge:"margin-extra-large"},E={Default:"gap",Normal:"gap-normal",ExtraSmall:"gap-extra-small",Small:"gap-small",Large:"gap-large",ExtraLarge:"gap-extra-large"},B={Default:"letter-spacing",Normal:"letter-spacing-normal",ExtraSmall:"letter-spacing-extra-small",Small:"letter-spacing-small",Large:"letter-spacing-large",ExtraLarge:"letter-spacing-extra-large"},D={Default:"border-radius",Normal:"border-radius-normal",ExtraSmall:"border-radius-extra-small",Small:"border-radius-small",Large:"border-radius-large",ExtraLarge:"border-radius-extra-large",Max:"border-radius-max"},L={None:"border-style-none",Solid:"border-style-solid",Dashed:"border-style-dashed",Dotted:"border-style-dotted",Double:"border-style-double",Groove:"border-style-groove",Ridge:"border-style-ridge",Inset:"border-style-inset",Outset:"border-style-outset",Hidden:"border-style-hidden"},R={Default:"border-width",Normal:"border-width-normal",ExtraSmall:"border-width-extra-small",Small:"border-width-small",Large:"border-width-large",ExtraLarge:"border-width-extra-large"},z={Visible:"visibility-visible",Hidden:"visibility-hidden",Collapse:"visibility-collapse"},T={None:"display-none",Block:"display-block",Inline:"display-inline",InlineBlock:"display-inline-block",Flex:"display-flex",InlineFlex:"display-inline-flex",Grid:"display-grid",InlineGrid:"display-inline-grid",Table:"display-table",TableRow:"display-table-row",TableCell:"display-table-cell",Contents:"display-contents",FlowRoot:"display-flow-root"},P={Auto:"cursor-auto",Default:"cursor-default",None:"cursor-none",ContextMenu:"cursor-context-menu",Help:"cursor-help",Pointer:"cursor-pointer",Progress:"cursor-progress",Wait:"cursor-wait",Cell:"cursor-cell",Crosshair:"cursor-crosshair",Text:"cursor-text",VerticalText:"cursor-vertical-text",Alias:"cursor-alias",Copy:"cursor-copy",Move:"cursor-move",NoDrop:"cursor-no-drop",NotAllowed:"cursor-not-allowed",Grab:"cursor-grab",Grabbing:"cursor-grabbing",AllScroll:"cursor-all-scroll",ColResize:"cursor-col-resize",RowResize:"cursor-row-resize",NResize:"cursor-n-resize",EResize:"cursor-e-resize",SResize:"cursor-s-resize",WResize:"cursor-w-resize",NeResize:"cursor-ne-resize",NwResize:"cursor-nw-resize",SeResize:"cursor-se-resize",SwResize:"cursor-sw-resize",EwResize:"cursor-ew-resize",NsResize:"cursor-ns-resize",NeswResize:"cursor-nesw-resize",NwseResize:"cursor-nwse-resize",ZoomIn:"cursor-zoom-in",ZoomOut:"cursor-zoom-out"},F={Visible:"overflow-visible",Hidden:"overflow-hidden",Scroll:"overflow-scroll",Auto:"overflow-auto",Clip:"overflow-clip"},j={Visible:"overflow-x-visible",Hidden:"overflow-x-hidden",Scroll:"overflow-x-scroll",Auto:"overflow-x-auto",Clip:"overflow-x-clip"},V={Visible:"overflow-y-visible",Hidden:"overflow-y-hidden",Scroll:"overflow-y-scroll",Auto:"overflow-y-auto",Clip:"overflow-y-clip"},W={_0:"opacity-0",_10:"opacity-10",_20:"opacity-20",_25:"opacity-25",_30:"opacity-30",_40:"opacity-40",_50:"opacity-50",_60:"opacity-60",_70:"opacity-70",_75:"opacity-75",_80:"opacity-80",_90:"opacity-90",_100:"opacity-100"},A={Ellipse:"v-ellipse-size",Rectangle:"v-rectangle-size",Image:"v-image-size",Svg:"v-svg-size",Window:"v-window-size"},U=function(e){var t;switch(e){case _.Thin:t=100;break;case _.ExtraLight:t=200;break;case _.Light:t=300;break;case _.Regular:t=400;break;case _.Medium:t=500;break;case _.SemiBold:t=600;break;case _.Bold:t=700;break;case _.ExtraBold:t=800;break;case _.Black:t=900;break;default:t=400}return t},H={Default:"font-size",Normal:"font-size-normal",Small:"font-size-small",ExtraSmall:"font-size-extra-small",Large:"font-size-large",ExtraLarge:"font-size-extra-large",AutoNormal:"auto-font-size-normal",AutoSmall:"auto-font-size-small",AutoExtraSmall:"auto-font-size-extra-small",AutoLarge:"auto-font-size-large",AutoExtraLarge:"auto-font-size-extra-large"},M={All:"all",Before:"before",After:"after"},q={All:"all",Top:"top",Right:"right",Bottom:"bottom",Left:"left",ExceptTop:"except-top",ExceptRight:"except-right",ExceptBottom:"except-bottom",ExceptLeft:"except-left",RightTop:"right-top",RightBottom:"right-bottom",LeftTop:"left-top",LeftBottom:"left-bottom",TopBottom:"top-bottom",LeftRight:"left-right"},G=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),X=function(e){this.component=e},Y=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.sizeType=n,o.isAuto=r,o}return b(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(H).includes(this.sizeType)?this.sizeType:"font-size-".concat(this.sizeType),"".concat(this.component.getClassName()," ").concat(this.isAuto?"auto-".concat(e):e)}return this.component.getClassName()},t}(X),Z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.weightType=n,r}return b(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(X),J=function(e){function t(t,n){var r=e.call(this,t)||this;return r.visibility=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.visibility){var e=void 0;return e=Object.values(z).includes(this.visibility)?this.visibility:"visibility-".concat(this.visibility),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),K=function(e){function t(t,n){var r=e.call(this,t)||this;return r.cursor=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.cursor){var e=void 0;return e=Object.values(P).includes(this.cursor)?this.cursor:"cursor-".concat(this.cursor),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),Q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflow=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflow){var e=void 0;return e=Object.values(F).includes(this.overflow)?this.overflow:"overflow-".concat(this.overflow),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),$=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowX=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflowX){var e=void 0;return e=Object.values(j).includes(this.overflowX)?this.overflowX:Object.values(F).includes(this.overflowX)?this.overflowX.replace("overflow-","overflow-x-"):"overflow-x-".concat(this.overflowX),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.overflowY=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.overflowY){var e=void 0;return e=Object.values(V).includes(this.overflowY)?this.overflowY:Object.values(F).includes(this.overflowY)?this.overflowY.replace("overflow-","overflow-y-"):"overflow-y-".concat(this.overflowY),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),te=function(e){function t(t,n){var r=e.call(this,t)||this;return r.display=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.display){var e=void 0;return e=Object.values(T).includes(this.display)?this.display:"display-".concat(this.display),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),ne=function(e){function t(t,n){var r=e.call(this,t)||this;return r.opacityType=n,r}return b(t,e),t.prototype.getClassName=function(){return this.opacityType&&Object.values(W).includes(this.opacityType)?"".concat(this.component.getClassName()," ").concat(this.opacityType):this.component.getClassName()},t}(X),re=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderRadius=n,r}return b(t,e),t.prototype.getClassName=function(){return this.borderRadius&&Object.values(D).includes(this.borderRadius)?"".concat(this.component.getClassName()," ").concat(this.borderRadius):this.component.getClassName()},t}(X),oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderStyle=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.borderStyle){var e=void 0;return e=Object.values(L).includes(this.borderStyle)?this.borderStyle:"border-style-".concat(this.borderStyle),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),ae=function(e){function t(t,n){var r=e.call(this,t)||this;return r.padding=n,r}return b(t,e),t.prototype.getClassName=function(){return this.padding&&Object.values(N).includes(this.padding)?"".concat(this.component.getClassName()," ").concat(this.padding):this.component.getClassName()},t}(X),ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r.letterSpacing=n,r}return b(t,e),t.prototype.getClassName=function(){return this.letterSpacing&&Object.values(B).includes(this.letterSpacing)?"".concat(this.component.getClassName()," ").concat(this.letterSpacing):this.component.getClassName()},t}(X),le=function(e){function t(t,n){var r=e.call(this,t)||this;return r.margin=n,r}return b(t,e),t.prototype.getClassName=function(){return this.margin&&Object.values(I).includes(this.margin)?"".concat(this.component.getClassName()," ").concat(this.margin):this.component.getClassName()},t}(X),ce=function(e){function t(t,n){var r=e.call(this,t)||this;return r.borderWidth=n,r}return b(t,e),t.prototype.getClassName=function(){if(this.borderWidth){var e=void 0;return e=Object.values(R).includes(this.borderWidth)?this.borderWidth:"border-width-".concat(this.borderWidth),"".concat(this.component.getClassName()," ").concat(e)}return this.component.getClassName()},t}(X),se=function(e){function t(t,n,r,o,a,i,l,c,s,u,d){var f=e.call(this,t)||this;return f.isDefaultValue=n,f.frontColorType=r,f.backgroundColorType=o,f.borderColorType=a,f.borderDirectionType=i,f.pseudoType=l,f.pseudoFrontColorType=c,f.pseudoBackgroundColorType=s,f.pseudoBorderColorType=u,f.pseudoBorderDirectionType=d,f}return b(t,e),t.prototype.getBorderPrefix=function(e){return e?"-".concat(e):""},t.prototype.getBorderColorClassName=function(e,t,n){var r,o=this.getBorderPrefix(n);switch(t){case q.Bottom:r=" ".concat(e).concat(o,"-border-bottom");break;case q.ExceptBottom:r=" ".concat(e).concat(o,"-border-except-bottom");break;case q.ExceptLeft:r=" ".concat(e).concat(o,"-border-except-left");break;case q.ExceptRight:r=" ".concat(e).concat(o,"-border-except-right");break;case q.ExceptTop:r=" ".concat(e).concat(o,"-border-except-top");break;case q.Left:r=" ".concat(e).concat(o,"-border-left");break;case q.LeftBottom:r=" ".concat(e).concat(o,"-border-left-bottom");break;case q.LeftRight:r=" ".concat(e).concat(o,"-border-left-right");break;case q.LeftTop:r=" ".concat(e).concat(o,"-border-left-top");break;case q.Right:r=" ".concat(e).concat(o,"-border-right");break;case q.RightBottom:r=" ".concat(e).concat(o,"-border-right-bottom");break;case q.RightTop:r=" ".concat(e).concat(o,"-border-right-top");break;case q.Top:r=" ".concat(e).concat(o,"-border-top");break;case q.TopBottom:r=" ".concat(e).concat(o,"-border-bottom");break;default:r=" ".concat(e).concat(o,"-border")}return r},t.prototype.getClassName=function(){var e,t,n=this.backgroundColorType?" ".concat(this.backgroundColorType,"-background"):this.isDefaultValue?" ".concat(k.Transparent,"-background"):"",r=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(k.Transparent,"-before-background"):"",o=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(k.Transparent,"-after-background"):"",a="".concat(r).concat(o),i=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(k.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(k.Black,"-before-front"):"",c=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(k.Black,"-after-front"):"",s="".concat(l).concat(c);return e=this.borderColorType?this.borderDirectionType?this.getBorderColorClassName(this.borderColorType,this.borderDirectionType):" ".concat(this.borderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(k.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"",t=this.pseudoType?this.pseudoBorderColorType?this.pseudoBorderDirectionType?this.getBorderColorClassName(this.pseudoBorderColorType,this.pseudoBorderDirectionType,this.pseudoType):" ".concat(this.pseudoBorderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(k.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(a).concat(i).concat(s).concat(e).concat(t)},t}(X),ue=function(e,t,n,r,o,a,i,l,c,s,u,d,f,h,p,g,m,v,y,b,w,C,S,k,_,x,O){return new se(new ee(new $(new Q(new K(new J(new te(new ne(new le(new ie(new ae(new ce(new oe(new re(new Y(new Z(new G(e),o),n,r),p),g),m),v),O),y),b),w),C),S),k),_),x),t,a,i,l,c,s,u,d,f,h).getClassName()},de=["onClick","onDoubleClick","onContextMenu","onDrag","onDragStart","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDrop","onCopy","onCut","onPaste","onBlur","onFocus","onMouseDown","onMouseUp","onMouseEnter","onMouseLeave","onMouseMove","onMouseEndter","onMouseOut","onKeyDown","onKeyUp","onKeyPress","onTouchStart","onTouchEnd","onTouchMove","onTouchCancel","onWheel","onScroll","onSelect","onBeforeInput","onInput"],fe=["id","title","dir","lang","translate","tabIndex","accessKey","contentEditable","spellCheck","draggable","enterKeyHint","inputMode","autoCapitalize","role","slot","htmlFor","hidden","is"],he=["onError","onLoad"],pe=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],ge={div:S(S([],de,!0),fe,!0),input:S(S(S(S([],de,!0),fe,!0),["onChange","onInput","onInvalid","onSelect"],!0),["name","value","defaultValue","checked","defaultChecked","type","accept","autoComplete","autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","height","width","list","max","min","maxLength","maxLength","minLength","multiple","pattern","placeholder","readOnly","required","size","step","src"],!0),textarea:S(S(S([],de,!0),fe,!0),["rows","cols","wrap","name","autoFocus","autoComplete","placeholder","maxLength","minLength","required","readOnly","disabled","wrap","spellcheck","dirname"],!0),template:S(S([],de,!0),fe,!0),abbr:S(S([],de,!0),fe,!0),span:S(S([],de,!0),fe,!0),h1:S(S([],de,!0),fe,!0),h2:S(S([],de,!0),fe,!0),h3:S(S([],de,!0),fe,!0),h4:S(S([],de,!0),fe,!0),h5:S(S([],de,!0),fe,!0),h6:S(S([],de,!0),fe,!0),i:S(S([],de,!0),fe,!0),b:S(S([],de,!0),fe,!0),u:S(S([],de,!0),fe,!0),em:S(S([],de,!0),fe,!0),strong:S(S([],de,!0),fe,!0),blockquote:S(S([],de,!0),fe,!0),cite:S(S([],de,!0),fe,!0),code:S(S([],de,!0),fe,!0),del:S(S([],de,!0),fe,!0),dfn:S(S([],de,!0),fe,!0),ins:S(S([],de,!0),fe,!0),kbd:S(S([],de,!0),fe,!0),mark:S(S([],de,!0),fe,!0),pre:S(S([],de,!0),fe,!0),q:S(S([],de,!0),fe,!0),s:S(S([],de,!0),fe,!0),samp:S(S([],de,!0),fe,!0),small:S(S([],de,!0),fe,!0),summary:S(S([],de,!0),fe,!0),sup:S(S([],de,!0),fe,!0),sub:S(S([],de,!0),fe,!0),time:S(S([],de,!0),fe,!0),var:S(S([],de,!0),fe,!0),wbr:S(S([],de,!0),fe,!0),p:S(S([],de,!0),fe,!0),address:S(S([],de,!0),fe,!0),article:S(S([],de,!0),fe,!0),aside:S(S([],de,!0),fe,!0),details:S(S(S([],de,!0),fe,!0),["onToggle"],!0),nav:S(S([],de,!0),fe,!0),section:S(S([],de,!0),fe,!0),form:S(S(S([],de,!0),fe,!0),["onReset","onSubmit"],!0),dialog:S(S(S([],de,!0),fe,!0),["onCancel","onClose"],!0),img:S(S(S(S([],de,!0),fe,!0),he,!0),["src","alt","width","height","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","title","role"],!0),iframe:S(S(S(S([],de,!0),fe,!0),he,!0),["src","srcDoc","width","height","name","sandbox","allow","allowFullScreen","loading","referrerPolicy","title","role"],!0),object:S(S(S([],de,!0),fe,!0),he,!0),embed:S(S(S([],de,!0),fe,!0),he,!0),link:S(S(S([],de,!0),fe,!0),he,!0),svg:S(S(S([],de,!0),fe,!0),he,!0),audio:S(S(S([],de,!0),fe,!0),pe,!0),video:S(S(S([],de,!0),fe,!0),pe,!0)},me=["className","style","fontSize","isAutoSize","fontWeight","frontColor","backgroundColor","borderColor","borderDirection","pseudoType","pseudoFrontColor","pseudoBackgroundColor","pseudoBorderColor","pseudoBorderDirection","display","visibility","zIndex","fontFamily","borderWidth","borderRadius","borderStyle","padding","margin","height","width","minHeight","minWidth","maxHeight","maxWidth","opacity","letterSpacing","lineHeight","cursor","overflow","overflowX","overflowY","isDefaultValue","customAttributes"],ve=function(t){return{getClassName:function(e){var n=ue(e,t.isDefaultValue,t.fontSize,t.isAutoSize,t.fontWeight,t.frontColor,t.backgroundColor,t.borderColor,t.borderDirection,t.pseudoType,t.pseudoFrontColor,t.pseudoBackgroundColor,t.pseudoBorderColor,t.pseudoBorderDirection,t.borderRadius,t.borderStyle,t.borderWidth,t.padding,t.margin,t.opacity,t.display,t.visibility,t.cursor,t.overflow,t.overflowX,t.overflowY,t.letterSpacing);return t.className?"".concat(t.className," ").concat(n):n},getStyle:function(e){var n={height:t.height,width:t.width,minHeight:t.minHeight,minWidth:t.minWidth,maxHeight:t.maxHeight,maxWidth:t.maxWidth,zIndex:t.zIndex,fontFamily:t.fontFamily,lineHeight:t.lineHeight};return t.letterSpacing&&!Object.values(B).includes(t.letterSpacing)&&(n.letterSpacing=t.letterSpacing),t.opacity&&!Object.values(W).includes(t.opacity)&&(n.opacity=t.opacity),t.padding&&!Object.values(N).includes(t.padding)&&(n.padding=t.padding),t.margin&&!Object.values(I).includes(t.margin)&&(n.margin=t.margin),t.borderRadius&&!Object.values(D).includes(t.borderRadius)&&(n.borderRadius=t.borderRadius),null!=t.selfShrink&&(n.flexShrink=t.selfShrink),null!=t.selfGrow&&(n.flexGrow=t.selfGrow),null!=t.selfBasis&&(n.flexBasis=t.selfBasis),w(w(w({},t.style),e),n)},getChildren:function(){var n=e("span",{className:"fb-bg-error",style:{display:"inline-block"},children:"[Base] No Children!"});if(t.children){if(Array.isArray(t.children)){var r=t.children.filter(Boolean);return r&&r.length>0?r:n}return t.children?t.children:n}return n},getProps:function(e){var n={},r={},o=Object.keys(t);return o.length>0&&o.forEach((function(o){me.includes(o)?n[o]=t[o]:ge[e]&&ge[e].includes(o)&&(r[o]=t[o])})),{view:n,html:r}}}},ye={Display:"display",Rich:"rich"},be=function(t){var n=(t.category==ye.Display?{}:t._base.getProps("div")).html;return e("div",w({ref:t.ref,className:t._base.getClassName(t.className),style:t._base.getStyle(t.style)},n,{children:t.children}))},we={Fluid:"fluid",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},Ce=function(t){var n=t.category,r=C(t,["category"]),o=ve(r);return e(be,{_base:o,className:"v-zone-".concat(n),children:t.children})},Se={Edge:"edge",Window:"window",Area:"area",Self:"self"},ke={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",Center:"center"},_e=function(t){var n;if(t.category&&(n=t.type?"position-".concat(t.category,"-").concat(t.type):"position-".concat(t.category,"-custom")),t.isFullWidth&&(n="".concat(n," position-full-width")),t.type){var r=void 0;return r=w(w({},t.style),{zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})}r=void 0;return r=t.category!=Se.Self?w(w({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):w(w({},t.style),{top:"-".concat(t.top),right:"-".concat(t.right),bottom:"-".concat(t.bottom),left:"-".concat(t.left),zIndex:t.zIndex}),e("div",{className:n,style:r,children:t.children})},xe={Default:"default",FullSize:"full-size"},Oe=function(n){return e(t,{children:o.map(n.children,(function(e){return function(e){var t={className:"position-area-".concat(n.category?n.category:xe.Default," ").concat(e.props.className)};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,t)}(e)}))})},Ne=function(t){var n=ve(t);return e(be,{ref:t.ref,_base:n,className:"v-boundary",children:t.children})},Ie={Div:"div",Abbr:"abbr",Span:"span",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",I:"i",B:"b",U:"u",Em:"em",Strong:"strong",Blockquote:"blockquote",Cite:"cite",Code:"code",Del:"del",Dfn:"dfn",Ins:"ins",Kbd:"kbd",Mark:"mark",Pre:"pre",Q:"q",S:"s",Samp:"samp",Small:"small",Summary:"summary",Sup:"sup",Sub:"sub",Time:"time",Var:"var",Wbr:"wbr"},Ee={Default:"default",Circle:"circle"},Be={Justify:0,Left:1,Right:2,Center:3},De=function(t){var n,r,o=t.category,a=t.type,i=t.alignType,l=t.isTextOverflow,s=t.caption,u=C(t,["category","type","alignType","isTextOverflow","caption"]),d=ve(w({display:null==t.category||t.category==Ie.Span?"inline-block":"block"},u)),f=d.getProps("div"),h=f.view,p=f.html;switch(i){case Be.Center:r="v-label-center";break;case Be.Justify:r="v-label-justify";break;case Be.Left:r="v-label";break;case Be.Right:r="v-label-right";break;default:r="v-label"}if(a==Ee.Circle&&(r="".concat(r,"-circle")),l&&(r+=" v-label-text-overflow"),u.fontWeight&&(r+=" v-label-inherit-font-weight"),u.fontSize&&(r+=" v-label-inherit-font-size"),o){var g=o,m=d.getProps(g).html;n=c(g,m,s)}else{var v=d.getProps("span").html;n=c("span",v,s)}return a==Ee.Circle?e(Oe,{children:e(Ne,w({width:"1.6em",height:"1.6em",borderRadius:D.Max},h,{className:r},p,{children:e(_e,{category:Se.Area,type:ke.Center,children:n})}))}):e(Ne,w({},h,{className:t.className?"".concat(t.className," ").concat(r):r},p,{children:n}))};De.displayName="VLabel";var Le=l(De),Re={ExtraSmall:"extra-small",Small:"small",Medium:"medium",Large:"large",ExtraLarge:"extra-large",ExtraExtraLarge:"extra-extra-large"},ze={Visible:"visiable",Hidden:"hidden"},Te={Only:"only",Up:"up",Down:"down"},Pe=function(t){return t.children?e(Ne,{className:function(){if(t.breakpoint){if("string"!=typeof t.breakpoint)return t.breakpoint.map((function(e){return"".concat(e,"-").concat(t.category)})).join(" ");if(!t.type||t.type==Te.Only)return"".concat(t.breakpoint,"-").concat(t.category);if(t.type==Te.Up)return"".concat(t.breakpoint,"-up-").concat(t.category);if(t.type==Te.Down)return"".concat(t.breakpoint,"-down-").concat(t.category)}return t.category}(),style:{display:"contents"},children:t.children}):e(Le,{backgroundColor:k.Error,caption:"[BreakpointDisplay] No Children!"})},Fe=function(r){return n(t,{children:[e(Pe,{category:ze.Hidden,type:Te.Down,breakpoint:r.breakpointType?r.breakpointType:Re.Small,children:r.desktop}),e(Pe,{category:ze.Hidden,type:Te.Up,breakpoint:r.breakpointType?r.breakpointType:Re.Small,children:r.mobile})]})},je=2147483647,Ve={Top:"top",Right:"right",Bottom:"bottom",Left:"left",LeftTop:"left-top",RightTop:"right-top",LeftBottom:"left-bottom",RightBottom:"right-bottom",InnerTop:"inner-top",InnerRight:"inner-right",InnerBottom:"inner-bottom",InnerLeft:"inner-left",InnerLeftTop:"inner-left-top",InnerRightTop:"inner-right-top",InnerLeftBottom:"inner-left-bottom",InnerRightBottom:"inner-right-bottom"},We={Horizontal:"horizontal",Vertical:"vertical"},Ae={Manual:"manual",Auto:"auto"},Ue=function(e,t){return t?"".concat(e,"-").concat(t):e},He=function(t){var n=t.category,r=t.offset,o=t.zIndex,a=t.alignment,i=t.popoverMode,l=void 0===i?Ae.Manual:i,c=t.onOverlayClose,h=t.renderOverlay,p=s(),g=u(null),m="--dock-".concat(p.replace(/:/g,""));return d((function(){var e=g.current,t=null==e?void 0:e.parentElement;if(t&&t.style.setProperty("anchor-name",m),e)try{e.showPopover()}catch(e){}return function(){t&&t.style.removeProperty("anchor-name");try{null==e||e.hidePopover()}catch(e){}}}),[m]),f((function(){if(l===Ae.Auto&&c){var e=g.current;if(e){var t=function(e){"closed"===e.newState&&c()};return e.addEventListener("toggle",t),function(){e.removeEventListener("toggle",t)}}}}),[l,c]),e("div",{ref:g,popover:l,className:"dock-popover-overlay ".concat(Ue(n,a)),style:{"--dock-offset":"".concat(r,"px"),"--dock-z-index":o,positionAnchor:m},children:h()})},Me=function(r){var o=r.category,a=r.offset,i=r.zIndex,l=r.alignment,c=r.renderOverlay,s=u(null),d=u(null),g=h({}),v=g[0],y=g[1],b=h(!0),C=b[0],S=b[1],k=h(!1),_=k[0],x=k[1];f((function(){x(!0)}),[]);var O=p((function(){var e,t=null===(e=s.current)||void 0===e?void 0:e.parentElement,n=d.current;if(t&&n){var r=t.getBoundingClientRect(),i=n.getBoundingClientRect();y(function(e,t,n,r,o){var a=0,i=0;switch(n){case Ve.Top:a=e.top-t.height-r,i=e.left+(e.width-t.width)/2;break;case Ve.Right:a=e.top+(e.height-t.height)/2,i=e.right+r;break;case Ve.Bottom:a=e.bottom+r,i=e.left+(e.width-t.width)/2;break;case Ve.Left:a=e.top+(e.height-t.height)/2,i=e.left-t.width-r;break;case Ve.LeftTop:o===We.Horizontal?(a=e.top,i=e.left-t.width-r):o===We.Vertical?(a=e.top-t.height-r,i=e.left):(a=e.top-t.height-r,i=e.left-t.width-r);break;case Ve.RightTop:o===We.Horizontal?(a=e.top,i=e.right+r):o===We.Vertical?(a=e.top-t.height-r,i=e.right-t.width):(a=e.top-t.height-r,i=e.right+r);break;case Ve.LeftBottom:o===We.Horizontal?(a=e.bottom-t.height,i=e.left-t.width-r):o===We.Vertical?(a=e.bottom+r,i=e.left):(a=e.bottom+r,i=e.left-t.width-r);break;case Ve.RightBottom:o===We.Horizontal?(a=e.bottom-t.height,i=e.right+r):o===We.Vertical?(a=e.bottom+r,i=e.right-t.width):(a=e.bottom+r,i=e.right+r);break;case Ve.InnerTop:a=e.top+r,i=e.left+(e.width-t.width)/2;break;case Ve.InnerRight:a=e.top+(e.height-t.height)/2,i=e.right-t.width-r;break;case Ve.InnerBottom:a=e.bottom-t.height-r,i=e.left+(e.width-t.width)/2;break;case Ve.InnerLeft:a=e.top+(e.height-t.height)/2,i=e.left+r;break;case Ve.InnerLeftTop:a=e.top+r,i=e.left+r;break;case Ve.InnerRightTop:a=e.top+r,i=e.right-t.width-r;break;case Ve.InnerLeftBottom:a=e.bottom-t.height-r,i=e.left+r;break;case Ve.InnerRightBottom:a=e.bottom-t.height-r,i=e.right-t.width-r}return{top:a,left:i}}(r,i,o,a,l))}}),[o,a,l]);return f((function(){var e;O();var t=null===(e=s.current)||void 0===e?void 0:e.parentElement;if(t){var n=new ResizeObserver(O);n.observe(t);for(var r=[],o=t;o;)(o.scrollHeight>o.clientHeight||o.scrollWidth>o.clientWidth)&&(r.push(o),o.addEventListener("scroll",O,{passive:!0})),o=o.parentElement;return window.addEventListener("scroll",O,{passive:!0}),window.addEventListener("resize",O),function(){n.disconnect(),r.forEach((function(e){return e.removeEventListener("scroll",O)})),window.removeEventListener("scroll",O),window.removeEventListener("resize",O)}}}),[O]),f((function(){var e,t=null===(e=s.current)||void 0===e?void 0:e.parentElement;if(t){var n=new IntersectionObserver((function(e){var t=e[0];return S(t.isIntersecting)}),{threshold:.1});return n.observe(t),function(){return n.disconnect()}}}),[]),n(t,{children:[e("span",{ref:s,style:{display:"none"}}),_&&C&&m(e("div",{ref:d,className:"dock-overlay",style:w({position:"fixed",width:"max-content",pointerEvents:"auto",zIndex:i},v),children:c()}),document.body)]})},qe=function(t){var r=t.category,o=t.offset,a=void 0===o?0:o,i=t.overlayZIndex,l=void 0===i?je:i,c=t.isPortal,s=void 0!==c&&c,u=t.isOverlayVisible,d=void 0===u||u,p=t.popoverMode,g=void 0===p?Ae.Manual:p,m=t.onOverlayClose,v=t.renderOverlay,y=C(t,["category","offset","overlayZIndex","isPortal","isOverlayVisible","popoverMode","onOverlayClose","renderOverlay"]),b="alignment"in t?t.alignment:void 0,S=ve(y),k=S.getProps("div").html,_=h(!0),x=_[0],O=_[1];f((function(){"undefined"!=typeof CSS&&CSS.supports("anchor-name","--a")||O(!1)}),[]);var N=s||!x;return n("div",w({className:S.getClassName("dock"),style:S.getStyle()},k,{children:[t.children,d&&(N?e(Me,{category:r,offset:a,zIndex:l,alignment:b,renderOverlay:v}):e(He,{category:r,offset:a,zIndex:l,alignment:b,popoverMode:g,onOverlayClose:m,renderOverlay:v}))]}))},Ge={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},Xe={NoWrap:"nowrap",Wrap:"wrap"},Ye={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Ze={Start:"flex-start",Center:"center",End:"flex-end",Stretch:"stretch",Baseline:"baseline"},Je={Start:"flex-start",Center:"center",End:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},Ke=function(t){t.vClassName;var n=t.direction,r=t.wrap,o=t.justifyContent,a=t.alignItems,i=t.alignContent,l=t.gap,c=t.overflow,s=C(t,["vClassName","direction","wrap","justifyContent","alignItems","alignContent","gap","overflow"]);!s.cursor&&t.onClick&&(s.cursor=P.Pointer);var u=ve(s),d=u.getProps("div").html,f=l&&Object.values(E).includes(l),h=!l||f?u.getStyle():w(w({},u.getStyle()),{gap:l}),p=c?"flex-".concat(c):s.overflowX||s.overflowY?"flex":"flex-hidden",g=n?" flex-direction-".concat(n):"",m=r?" flex-wrap-".concat(r):"",v=o?" flex-justify-content-".concat(o):"",y=a?" flex-align-items-".concat(a):"",b=i?" flex-align-content-".concat(i):"",S=f?" ".concat(l):"",k="".concat(p).concat(g).concat(m).concat(v).concat(y).concat(b).concat(S),_=u.getClassName(k);return e("div",w({className:_,style:h},d,{children:t.children}))},Qe={Start:"start",Center:"center",End:"end",Stretch:"stretch",Baseline:"baseline"},$e=function(t){var n={};null!=t.order&&(n.order=t.order),null!=t.basis&&(n.flexBasis=t.basis),null!=t.grow&&(n.flexGrow=t.grow),null!=t.shrink&&(n.flexShrink=t.shrink);var r=t.alignSelf?" flex-align-self-".concat(t.alignSelf):"",o="flex-item".concat(r);return e("div",{className:o,style:w(w({},n),{display:"flex",flexDirection:"column"}),children:t.children})},et=function(n){return e(t,{children:n.children})},tt=function(n){return e(t,{children:n.children})},nt=function(n){return e(t,{children:n.children})},rt=function(n){return e(t,{children:n.children})},ot=function(n){return e(t,{children:n.children})},at=function(n){return e(t,{children:n.children})},it=function(n){return e(t,{children:n.children})},lt=function(n){return e(t,{children:n.children})},ct={Top:"top",Middle:"middle",Bottom:"bottom",Stretch:"stretch",Baseline:"baseline"},st=function(n,r,a,i,l){n.cross;var c=n.itemsShrink,s=C(n,["cross","itemsShrink"]),u=ve(s),d=function(t,n,o){return r?r(t,n,o,c):e($e,{alignSelf:o,shrink:c,children:t},"child".concat(n))};return e(Ke,w({vClassName:"v-xbase",alignItems:function(){var e;if(n.cross)switch(n.cross){case ct.Stretch:e=Ze.Stretch;break;case ct.Baseline:e=Ze.Baseline;break;case ct.Bottom:e=Ze.End;break;case ct.Middle:e=Ze.Center;break;case ct.Top:e=Ze.Start;break;default:e=Ze.Center}else e=Ze.Center;return e}(),wrap:a?a():Xe.NoWrap,justifyContent:i?i():Ye.Start,alignContent:l?l():Je.Start},s,{children:o.map(u.getChildren(),(function(n,r){var o=n;return o.type?o.type===lt?d(o.props.children,r,Qe.Start):o.type===rt?d(o.props.children,r,Qe.Center):o.type===tt?d(o.props.children,r,Qe.End):o.type===it?d(o.props.children,r,Qe.Stretch):o.type===et?d(o.props.children,r,Qe.Baseline):d(o,r):(console.debug(o),e(t,{children:"Please check X layout children."}))}))}))},ut=function(t){return st(t,(function(t,n,r,o){return e($e,{grow:1,alignSelf:r,shrink:o,children:t})}))},dt=function(e){return st(e,void 0,void 0,(function(){return Ye.SpaceAround}))},ft=function(t){var n=ve(t);return st(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e($e,{grow:0,alignSelf:a,shrink:i,children:t}):e($e,{grow:1,alignSelf:a,shrink:i,children:t})}))},ht=function(t){var n=ve(t);return st(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e($e,{grow:1,alignSelf:a,shrink:i,children:t}):e($e,{grow:0,alignSelf:a,shrink:i,children:t})}))},pt=function(t){return st(t,(function(t,n,r,o){return e($e,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},gt=function(t){var n=ve(t);return st(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e($e,{grow:0,alignSelf:a,shrink:i,children:t}):e($e,{grow:1,alignSelf:a,shrink:i,children:t})}))},mt=function(t){var n=ve(t);return st(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e($e,{grow:1,shrink:i,children:t}):e($e,{grow:0,shrink:i,children:t})}))},vt=function(t){return st(t,(function(t,n,r,o){return e($e,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},yt=function(e){return st(e,void 0,void 0,(function(){return Ye.SpaceBetween}))},bt=function(e){return st(e,void 0,void 0,(function(){return Ye.Center}))},wt=function(t){return st(t,(function(n,r,o,a){var i=e($e,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e($e,{basis:t.basises[r],shrink:a,children:n})),i}))},Ct=function(t){var n=ve(t);return st(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e($e,{basis:t.basis,shrink:l,children:r}):e($e,{grow:1,shrink:l,children:r})}))},St=function(e){return st(e,void 0,void 0,(function(){return Ye.SpaceEvenly}))},kt=function(e){return st(e)},_t=function(e){return st(e,void 0,void 0,(function(){return Ye.End}))},xt=function(e){return st(e,void 0,(function(){return Xe.Wrap}),void 0,(function(){return Je.SpaceAround}))},Ot=function(e){return st(e,void 0,(function(){return Xe.Wrap}),void 0,(function(){return Je.SpaceBetween}))},Nt=function(e){return st(e,void 0,(function(){return Xe.Wrap}),void 0,(function(){return Je.End}))},It=function(e){return st(e,void 0,(function(){return Xe.Wrap}),void 0,(function(){return Je.SpaceEvenly}))},Et=function(e){return st(e,void 0,(function(){return Xe.Wrap}),void 0,(function(){return Je.Center}))},Bt=function(e){return st(e,void 0,(function(){return Xe.Wrap}),void 0,(function(){return Je.Start}))},Dt={Left:"left",Center:"center",Right:"right",Baseline:"baseline",Stretch:"stretch"},Lt=function(n,r,a,i,l){var c=n.cross,s=n.itemsShrink,u=C(n,["cross","itemsShrink"]),d=ve(u),f=function(t,n,o){return r?r(t,n,o,s):e($e,{alignSelf:o,shrink:s,children:t},"child".concat(n))};return e(Ke,w({vClassName:"v-ybase",wrap:a?a():Xe.NoWrap,alignContent:i?i():Je.Start,alignItems:function(){var e;if(c)switch(c){case Dt.Left:e=Ze.Start;break;case Dt.Center:e=Ze.Center;break;case Dt.Right:e=Ze.End;break;case Dt.Baseline:e=Ze.Baseline;break;default:e=Ze.Stretch}else e=Ze.Stretch;return e}(),direction:Ge.Column,justifyContent:l?l():Ye.Start},u,{children:o.map(d.getChildren(),(function(n,r){var o=n;return o.type?o.type===nt?f(o.props.children,r,Qe.Start):o.type===rt||o.type===at?f(o.props.children,r,Qe.Center):o.type===ot?f(o.props.children,r,Qe.End):o.type===it?f(o.props.children,r,Qe.Stretch):o.type===et?f(o.props.children,r,Qe.Baseline):f(n,r):(console.debug(o),e(t,{children:"Please check Y layout children."}))}))}))},Rt=function(t){return Lt(t,(function(t,n,r,o){return e($e,{grow:1,alignSelf:r,shrink:o,children:t})}))},zt=function(e){return Lt(e,void 0,void 0,void 0,(function(){return Ye.SpaceBetween}))},Tt=function(e){return Lt(e,void 0,void 0,void 0,(function(){return Ye.Center}))},Pt=function(e){return Lt(e,void 0,void 0,void 0,(function(){return Ye.Start}))},Ft=function(e){return Lt(e,void 0,void 0,void 0,(function(){return Ye.End}))},jt=function(e){return Lt(e,void 0,void 0,void 0,(function(){return Ye.SpaceAround}))},Vt=function(e){return Lt(e,void 0,void 0,void 0,(function(){return Ye.SpaceEvenly}))},Wt=function(t){return Lt(t,(function(t,n,r,o){return e($e,0==n?{grow:1,alignSelf:r,shrink:o,children:t}:{grow:0,alignSelf:r,shrink:o,children:t})}))},At=function(t){var n=ve(t);return Lt(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e($e,{grow:1,alignSelf:a,shrink:i,children:t}):e($e,{grow:0,alignSelf:a,shrink:i,children:t})}))},Ut=function(t){var n=ve(t);return Lt(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e($e,{grow:1,shrink:i,children:t}):e($e,{grow:0,shrink:i,children:t})}))},Ht=function(t){var n=ve(t);return Lt(t,(function(t,r,a,i){return r==o.count(n.getChildren())-1?e($e,{grow:0,alignSelf:a,shrink:i,children:t}):e($e,{grow:1,alignSelf:a,shrink:i,children:t})}))},Mt=function(t){return Lt(t,(function(t,n,r,o){return e($e,0==n?{grow:0,alignSelf:r,shrink:o,children:t}:{grow:1,alignSelf:r,shrink:o,children:t})}))},qt=function(t){var n=ve(t);return Lt(t,(function(t,r,a,i){return 0!=r&&r!=o.count(n.getChildren())-1?e($e,{grow:0,alignSelf:a,shrink:i,children:t}):e($e,{grow:1,alignSelf:a,shrink:i,children:t})}))},Gt=function(t){return Lt(t,(function(n,r,o,a){var i=e($e,{shrink:a,children:n});return t.basises&&r<t.basises.length&&(i=e($e,{basis:t.basises[r],shrink:a,children:n})),i}))},Xt=function(t){var n=ve(t);return Lt(t,(function(r,a,i,l){return 0==a||a==o.count(n.getChildren())-1?e($e,{basis:t.basis,shrink:l,children:r}):e($e,{grow:1,shrink:l,children:r})}))},Yt=function(e){return Lt(e,void 0,(function(){return Xe.Wrap}),(function(){return Je.Start}))},Zt=function(e){return Lt(e,void 0,(function(){return Xe.Wrap}),(function(){return Je.Center}))},Jt=function(e){return Lt(e,void 0,(function(){return Xe.Wrap}),(function(){return Je.End}))},Kt=function(e){return Lt(e,void 0,(function(){return Xe.Wrap}),(function(){return Je.SpaceAround}),void 0)},Qt=function(e){return Lt(e,void 0,(function(){return Xe.Wrap}),(function(){return Je.SpaceBetween}))},$t=function(e){return Lt(e,void 0,(function(){return Xe.Wrap}),(function(){return Je.SpaceEvenly}))},en={Top:"top",Right:"right",Bottom:"bottom",Left:"left",Center:"center"},tn=function(t){t.image,t.imageWidth,t.imageHeight,t.position;var n,r=C(t,["image","imageWidth","imageHeight","position"]);n=t.imageWidth&&t.imageHeight?{backgroundImage:'url("'.concat(t.image,'")'),backgroundSize:"".concat(t.imageWidth," ").concat(t.imageHeight)}:{backgroundImage:'url("'.concat(t.image,'")')};var o=ve(w(w({},r),{style:n}));return e(be,{_base:o,className:t.position?"v-background-".concat(t.position):"v-background",children:t.children})},nn=function(e){var t={};return e.forEach((function(e,n){var r,o=!1;n.startsWith("#")?(o=!0,r=n.substring(1).split(".")):r=n.split(".");var a=t;r.forEach((function(t,n){if(n==r.length-1)if(t.endsWith("[]")){var i=t.replace("[]","");Object.keys(a).filter((function(e){return e==i})).length>0?a[i]=S(S([],a[i],!0),[o?JSON.parse(e.toString()):e],!1):a[i]=[o?JSON.parse(e.toString()):e]}else a[t]=o?JSON.parse(e.toString()):e;else t in a||(a[t]={}),a=a[t]}))})),t},rn={Json:"json",FormData:"formdata"},on=function(t){var n=t.ref,r=t.handleSubmitCategory,o=t.handleSubmit,a=t.handleValidateError,i=C(t,["ref","handleSubmitCategory","handleSubmit","handleValidateError"]),l=ve(i),c=u(null);f((function(){return"object"==typeof n&&n?n.current=c.current:"function"==typeof n&&n(c.current),function(){"object"==typeof n&&n?n.current=null:"function"==typeof n&&n(null)}}),[n]);var s=l.getProps("form").html;return e("form",w({ref:c,noValidate:!!a,className:l.getClassName("v-form"),style:l.getStyle(),onSubmit:function(e){e.preventDefault();var t=e.currentTarget,n=e.nativeEvent.submitter;if((null==n?void 0:n.formNoValidate)||!a||t.checkValidity()){for(var i=0;i<t.elements.length;i++){(u=(s=t.elements.item(i)).closest(".v-validity"))&&u.classList.remove("invalid")}var l=new FormData(t);o(r===rn.FormData?l:nn(l))}else{var c=[];for(i=0;i<t.elements.length;i++){var s,u;(u=(s=t.elements.item(i)).closest(".v-validity"))&&(s.checkValidity()?u.classList.remove("invalid"):(u.classList.add("invalid"),c.push(s)))}a(c)}}},s,{children:t.children}))},an=function(t){return e("form",w({className:"v-action-form"},t,{children:t.children}))},ln=function(t){var r=t.ref,o=t.type,a=t.label,i=t.icon,l=t.value,c=t.valueHook,s=t.setStateHook,d=t.isValueShow,p=t.gap,g=t.valueSize,m=t.frontColor;t.valueCategory;var v,y=t.valuePadding,b=t.inputStyle,S=t.inputClassName,_=t.placeholderColor,x=t.overWrite,O=t.renderOptions,N=t.onChange,I=t.inheritClassName,E=t.customAttributes,B=C(t,["ref","type","label","icon","value","valueHook","setStateHook","isValueShow","gap","valueSize","frontColor","valueCategory","valuePadding","inputStyle","inputClassName","placeholderColor","overWrite","renderOptions","onChange","inheritClassName","customAttributes"]),D=ve(B),L=D.getProps("input").html,R=h({value:void 0!==t.value?t.value:""}),z=R[0],P=R[1],F=u(null);return f((function(){"object"==typeof r&&r?r.current=F.current:"function"==typeof r&&r(F.current),t.autoFocus&&F.current&&F.current.focus()}),[r,t.autoFocus]),x&&(v=x(F)),n(be,{_base:D,className:"v-validity v-input ".concat((_||k.Placeholder)+"-placeholder").concat(I?" ".concat(I):""),children:[n(Rt,{display:v?T.None:void 0,children:[n(ht,{gap:p,children:[e(Ne,{children:i}),n(Ne,{children:[e("input",w({ref:F},E,{className:(S?"".concat(S," "):"")+"".concat(D.getClassName("v-input-native")),style:b,type:o},void 0!==c?{value:c}:{defaultValue:void 0!==l?l:""},{onChange:function(e){var t;d&&P({value:null===(t=F.current)||void 0===t?void 0:t.value}),N&&N(e),s&&s(e.target.value)}},L)),!!a&&e("label",{htmlFor:t.id?t.id:t.name,children:a})]}),O?O(F):e(Ne,{})]}),!!d&&e(bt,{children:e(Le,{padding:y,isAutoSize:t.isAutoSize,fontSize:g||H.Normal,frontColor:m||k.Black,caption:void 0!==z.value?z.value.toString():l?l.toString():""})})]}),!!v&&v]})},cn={Default:"default",Circle:"circle",Squared:"squared",Custom:"custom"},sn=function(n){var r=w({},n);!r.cursor&&n.onClick&&(r.cursor=P.Pointer);var l=ve(r);return e(t,{children:o.map(n.children,(function(e){return function(e){var t=n.category?n.category:cn.Default,r=l.getClassName("v-svg-".concat(t)),o=n.onClick,c=n.onMouseEnter,s=n.onMouseLeave,u={className:r,style:w({},l.getStyle()),onClick:o,onMouseEnter:c,onMouseLeave:s};return e.type===a?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,u)}(e)}))})};sn.displayName="VSvg";var un,dn,fn=l(sn);function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hn.apply(null,arguments)}var pn,gn=function(e){return r.createElement("svg",hn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),un||(un=r.createElement("path",{fill:"currentColor",d:"M198.132 64.763a6 6 0 0 0-6-6H65.753a6 6 0 0 0-6 6v126.473a6 6 0 0 0 6 6h126.399a6 6 0 0 0 6-6.001z"})),dn||(dn=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(null,arguments)}var vn,yn=function(e){return r.createElement("svg",mn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),pn||(pn=r.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))},bn=function(t){var r=t.isChecked,o=C(t,["isChecked"]);return e(ln,w({isAutoSize:t.isAutoSize,customAttributes:{checked:!!r},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(o){return n(kt,{gap:"0.2em",role:"checkbox","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(fn,{frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?gn:yn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}},o))},wn=function(t){return e(ln,w({type:"color",isDefaultValue:!0},t))},Cn=function(t){return e(ln,w({type:"date",isDefaultValue:!0},t))},Sn=function(t){return e(ln,w({type:"datetime-local",isDefaultValue:!0},t))},kn=function(t){return e(ln,w({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},_n={Bounce:"animate__bounce",Flash:"animate__flash",Pulse:"animate__pulse",RubberBand:"animate__rubberBand",ShakeX:"animate__shakeX",ShakeY:"animate__shakeY",HeadShake:"animate__headShake",Swing:"animate__swing",Tada:"animate__tada",Wobble:"animate__wobble",Jello:"animate__jello",HeartBeat:"animate__heartBeat",BackInDown:"animate__backInDown",BackInLeft:"animate__backInLeft",BackInRight:"animate__backInRight",BackInUp:"animate__backInUp",BackOutDown:"animate__backOutDown",BackOutLeft:"animate__backOutLeft",BackOutRight:"animate__backOutRight",BackOutUp:"animate__backOutUp",BounceIn:"animate__bounceIn",BounceInDown:"animate__bounceInDown",BounceInLeft:"animate__bounceInLeft",BounceInRight:"animate__bounceInRight",BounceInUp:"animate__bounceInUp",BounceOut:"animate__bounceOut",BounceOutDown:"animate__bounceOutDown",BounceOutLeft:"animate__bounceOutLeft",BounceOutRight:"animate__bounceOutRight",BounceOutUp:"animate__bounceOutUp",FadeIn:"animate__fadeIn",FadeInDown:"animate__fadeInDown",FadeInDownBig:"animate__fadeInDownBig",FadeInLeft:"animate__fadeInLeft",FadeInLeftBig:"animate__fadeInLeftBig",FadeInRight:"animate__fadeInRight",FadeInRightBig:"animate__fadeInRightBig",FadeInUp:"animate__fadeInUp",FadeInUpBig:"animate__fadeInUpBig",FadeInTopLeft:"animate__fadeInTopLeft",FadeInTopRight:"animate__fadeInTopRight",FadeInBottomLeft:"animate__fadeInBottomLeft",FadeInBottomRight:"animate__fadeInBottomRight",FadeOut:"animate__fadeOut",FadeOutDown:"animate__fadeOutDown",FadeOutDownBig:"animate__fadeOutDownBig",FadeOutLeft:"animate__fadeOutLeft",FadeOutLeftBig:"animate__fadeOutLeftBig",FadeOutRight:"animate__fadeOutRight",FadeOutRightBig:"animate__fadeOutRightBig",FadeOutUp:"animate__fadeOutUp",FadeOutUpBig:"animate__fadeOutUpBig",FadeOutTopLeft:"animate__fadeOutTopLeft",FadeOutTopRight:"animate__fadeOutTopRight",FadeOutBottomLeft:"animate__fadeOutBottomLeft",FadeOutBottomRight:"animate__fadeOutBottomRight",Flip:"animate__flip",FlipInX:"animate__flipInX",FlipInY:"animate__flipInY",FlipOutX:"animate__flipOutX",FlipOutY:"animate__flipOutY",LightSpeedInRight:"animate__lightSpeedInRight",LightSpeedInLeft:"animate__lightSpeedInLeft",LightSpeedOutRight:"animate__lightSpeedOutRight",LightSpeedOutLeft:"animate__lightSpeedOutLeft",RotateIn:"animate__rotateIn",RotateInDownLeft:"animate__rotateInDownLeft",RotateInDownRight:"animate__rotateInDownRight",RotateInUpLeft:"animate__rotateInUpLeft",RotateInUpRight:"animate__rotateInUpRight",RotateOut:"animate__rotateOut",RotateOutDownLeft:"animate__rotateOutDownLeft",RotateOutDownRight:"animate__rotateOutDownRight",RotateOutUpLeft:"animate__rotateOutUpLeft",RotateOutUpRight:"animate__rotateOutUpRight",Hinge:"animate__hinge",JackInTheBox:"animate__jackInTheBox",RollIn:"animate__rollIn",RollOut:"animate__rollOut",ZoomIn:"animate__zoomIn",ZoomInDown:"animate__zoomInDown",ZoomInLeft:"animate__zoomInLeft",ZoomInRight:"animate__zoomInRight",ZoomInUp:"animate__zoomInUp",ZoomOut:"animate__zoomOut",ZoomOutDown:"animate__zoomOutDown",ZoomOutLeft:"animate__zoomOutLeft",ZoomOutRight:"animate__zoomOutRight",ZoomOutUp:"animate__zoomOutUp",SlideInDown:"animate__slideInDown",SlideInLeft:"animate__slideInLeft",SlideInRight:"animate__slideInRight",SlideInUp:"animate__slideInUp",SlideOutDown:"animate__slideOutDown",SlideOutLeft:"animate__slideOutLeft",SlideOutRight:"animate__slideOutRight",SlideOutUp:"animate__slideOutUp"},xn={Once:"animate__repeat-1",Twice:"animate__repeat-2",Thrice:"animate__repeat-3",Infinite:"animate__infinite"},On={Slow:"animate__slow",Slower:"animate__slower",Fast:"animate__fast",Faster:"animate__faster"},Nn={Delay1Second:"animate__delay-1s",Delay2Second:"animate__delay-2s",Delay3Second:"animate__delay-3s",Delay4Second:"animate__delay-4s",Delay5Second:"animate__delay-5s"},In=function(t){var n;return e("div",{className:(n=[],n.push(t.category),t.repeat&&n.push(t.repeat),t.speed&&n.push(t.speed),t.delay&&n.push(t.delay),"animate__animated ".concat(n.join(" "))),children:t.children})},En=function(t){t.animationCategory,t.animationSpeed;var n=C(t,["animationCategory","animationSpeed"]),r=ve(n);return e(be,{_base:r,className:"v-loading",children:e(In,{category:t.animationCategory?t.animationCategory:_n.Flip,speed:t.animationSpeed?t.animationSpeed:On.Slower,repeat:xn.Infinite,children:t.children})})};function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bn.apply(null,arguments)}var Dn=function(e){return r.createElement("svg",Bn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),vn||(vn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M142.37 28c14.247 0 25.795 11.548 25.795 25.795s-11.548 25.799-25.795 25.799-25.796-11.551-25.796-25.799S128.122 28 142.37 28m65.108 50.223c7.122 7.125 7.122 18.673 0 25.796-7.122 7.125-18.673 7.125-25.795 0-7.126-7.123-7.126-18.67 0-25.796 7.122-7.122 18.673-7.122 25.795 0m13.977 76.209c0 9.032-7.318 16.35-16.35 16.35-9.03 0-16.348-7.318-16.348-16.35 0-9.03 7.318-16.348 16.348-16.348 9.032 0 16.35 7.318 16.35 16.348m-45.928 59.961c-4.277 4.278-11.215 4.278-15.493 0-4.28-4.28-4.28-11.218 0-15.496 4.278-4.28 11.216-4.28 15.493 0 4.281 4.278 4.281 11.216 0 15.496M104.469 228c-5.98 0-10.83-4.847-10.83-10.83s4.85-10.83 10.83-10.83c5.983 0 10.83 4.847 10.83 10.83S110.452 228 104.469 228m-58.417-41.95c-3.426-3.426-3.426-8.982 0-12.411 3.43-3.426 8.985-3.426 12.412 0a8.77 8.77 0 0 1 0 12.411 8.773 8.773 0 0 1-12.412 0M34 116.534a7.733 7.733 0 1 1 15.466-.002 7.733 7.733 0 0 1-15.466.002m41.858-55.412a4.53 4.53 0 0 1 6.398 0 4.52 4.52 0 0 1 0 6.399 4.52 4.52 0 0 1-6.398 0 4.53 4.53 0 0 1 0-6.399",clipRule:"evenodd"})))},Ln={Vertical:"Vertical",Horizontal:"Horizontal"},Rn=function(e){return e.name.endsWith(".jpg")||e.name.endsWith(".jpeg")||e.name.endsWith(".png")},zn=function(e){var t,n=e.renderPreview,r=e.inputFiles,o=e.isLoading,a=e.previewVersion,i=e.reload,l=e.fallback,c=h(null),s=c[0],u=c[1],d=h(null),p=d[0],g=d[1];return f((function(){var e=n(r,o,i);if(e instanceof Promise){g(!0),u(null);var t=!1;return e.then((function(e){t||u(e)}),(function(){t||u(null)})),function(){t=!0}}return g(!1),void u(e)}),[r,o,a,n,i]),null===p?null!=l?l:null:p?null!==(t=null!=s?s:l)&&void 0!==t?t:null:s},Tn=function(t){var r=t.category,o=t.appearance;t.loader;var a=t.loaderSize,i=t.loaderColor,l=t.isPreview,c=t.previewImageWidth,s=t.textLength,d=t.autoUpload,p=t.renderLoader,g=t.renderPreview,m=C(t,["category","appearance","loader","loaderSize","loaderColor","isPreview","previewImageWidth","textLength","autoUpload","renderLoader","renderPreview"]),v=u(null),y=h({inputFiles:[],isLoading:!1,previewVersion:0}),b=y[0],S=y[1],k=function(){S((function(e){return w(w({},e),{isLoading:!1})}))},_=function(){S((function(e){return w(w({},e),{previewVersion:e.previewVersion+1})}))};f((function(){return function(){return b.inputFiles.forEach((function(e){e.objectUrl&&URL.revokeObjectURL(e.objectUrl)}))}}),[b.inputFiles]);var x=function(e){e.preventDefault(),e.currentTarget.className="v-file"},O=ve(w({onDrop:function(e){e.preventDefault();var t=Array.from(e.dataTransfer.files),n=t.map((function(e){return{name:e.name,objectUrl:Rn(e)?URL.createObjectURL(e):void 0}}));n.length>0&&(d?(S(w(w({},b),{inputFiles:n,isLoading:!0})),d(t,k),e.currentTarget.className="v-file"):(S(w(w({},b),{inputFiles:n})),e.currentTarget.className="v-file"))},onDragOver:function(e){e.preventDefault(),e.currentTarget.className="v-file on-drag"},onDragEnd:x,onDragLeave:x,onDragExit:x},m));return e(be,{_base:O,className:"v-file",children:e(ln,w({type:"file",isDefaultValue:!0,ref:v},m,{onChange:function(e){var t,n=Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),r=n.map((function(e){return{name:e.name,objectUrl:Rn(e)?URL.createObjectURL(e):void 0}}));S(w(w({},b),{inputFiles:r})),d&&(S(w(w({},b),{inputFiles:r,isLoading:!0})),d(n,k))},overWrite:function(t){return l?g?e(Ne,{cursor:P.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:e(zn,{renderPreview:g,inputFiles:b.inputFiles,isLoading:b.isLoading,previewVersion:b.previewVersion,reload:_,fallback:o})}):r==Ln.Vertical?n(Rt,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},cross:Dt.Center,children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Rt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Rt,{cross:Dt.Center,children:[!!t.objectUrl&&e(Ne,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:H.Small,caption:t.name.length>(s||12)?t.name.slice(0,s||12)+"…":t.name})]},"file-".concat(t.name))}))}),!!b.isLoading&&(p?p():e(En,{animationCategory:_n.Flash,children:e(bt,{children:e(fn,{fontSize:a,frontColor:i,children:e(Dn,{})})})}))]}):n(ut,{gap:"1em",children:[n(ut,{gap:"1em",onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:[!(0!=b.inputFiles.length)&&o,!(0==b.inputFiles.length)&&e(Rt,{gap:"0.6em",children:b.inputFiles.map((function(t){return n(Rt,{cross:Dt.Center,children:[!!t.objectUrl&&e(Ne,{children:e("img",{src:t.objectUrl,alt:t.name,width:c||120})}),e(Le,{fontSize:H.Small,caption:t.name.length>(s||12)?t.name.slice(0,s||12)+"…":t.name})]},"file-".concat(t.name))}))})]}),!!b.isLoading&&(p?p():e(En,{animationCategory:_n.Flash,children:e(fn,{fontSize:a,frontColor:i,children:e(Dn,{})})}))]}):e(Ne,{cursor:P.Pointer,onClick:function(){var e;null===(e=t.current)||void 0===e||e.click()},children:o})}}))})},Pn={Default:"default",Circle:"circle",Squared:"squared",FullSize:"full-size",Scale:"scale"},Fn=function(t){var n=t.category,r=C(t,["category"]),o=ve(r),a=o.getProps("img").html,i=n||Pn.Default;return e("img",w({className:o.getClassName("v-image-".concat(i)),style:o.getStyle()},a))};Fn.displayName="VImage";var jn,Vn,Wn=l(Fn),An=function(t){return e(ln,w({display:T.None,type:"hidden"},t))},Un=function(t){var r=t.fileIcon,o=t.base64Image,a=C(t,["fileIcon","base64Image"]),i=ve(a),l=h({base64Image:o}),c=l[0],s=l[1];return n(be,{_base:i,className:"v-base64file",children:[e(An,{name:t.name,value:c.base64Image}),e(ln,w({type:"file",isDefaultValue:!0,onChange:function(e){if(e.target.files&&1==e.target.files.length){var t=e.target.files[0],n=new FileReader;n.onloadend=function(){var e;e=n.result&&"string"==typeof n.result?n.result.replace("data:","").replace(/^.+,/,""):"Todo",s({base64Image:e})},n.readAsDataURL(t)}},overWrite:function(o){return n(Rt,{gap:"0.2em",onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},children:[r,e(Wn,{fontSize:t.fontSize,category:Pn.Scale,src:"data:image/png;base64,".concat(c.base64Image),alt:"file"})]})}},a))]})},Hn=function(t){return e(ln,w({type:"month",isDefaultValue:!0},t))},Mn=function(t){return e(ln,w({type:"number",isDefaultValue:!0},t))},qn=function(t){return e(ln,w({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))};function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(null,arguments)}var Xn,Yn=function(e){return r.createElement("svg",Gn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),jn||(jn=r.createElement("path",{fill:"currentColor",d:"M128 188c33.138 0 60-26.862 60-60s-26.862-60-60-60-60 26.862-60 60 26.862 60 60 60"})),Vn||(Vn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(null,arguments)}var Jn,Kn,Qn=function(e){return r.createElement("svg",Zn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Xn||(Xn=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))},$n=function(t){var r=t.isChecked,o=C(t,["isChecked"]);return e(ln,w({type:"radio",customAttributes:{checked:!!r},isDefaultValue:!0},o,{overWrite:function(o){return n(kt,{role:"radio","aria-checked":!!r,"aria-label":t.label||t.name,tabIndex:0,onClick:function(){var e;null===(e=o.current)||void 0===e||e.click()},onKeyDown:function(e){var t;" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),null===(t=o.current)||void 0===t||t.click())},children:[e(fn,{padding:"0.4em",frontColor:t.frontColor,fontSize:t.fontSize,children:e(r?Yn:Qn,{})}),!!t.label&&e(Le,{frontColor:t.frontColor,fontSize:t.fontSize,caption:t.label?t.label:""})]})}}))},er=function(t){var n=t.thumbColor,r=t.thumbBorderColor,o=t.trackColor,a=t.trackHeight,i=t.inputStyle,l=C(t,["thumbColor","thumbBorderColor","trackColor","trackHeight","inputStyle"]),c="".concat(n,"-thumb-background ").concat(r,"-thumb-border ").concat(o,"-track-background"),s=a?w(w({},i),{"--den-range-track-height":a}):i;return e(ln,w({type:"range",inputClassName:c},l,{inputStyle:s}))},tr=function(t){return e(ln,w({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},nr=function(t){var r=t.ref;t.caption,t.isFormNoValidate;var o=C(t,["ref","caption","isFormNoValidate"]),a=u(null);f((function(){"object"==typeof r&&r?r.current=a.current:"function"==typeof r&&r(a.current),t.autoFocus&&a.current&&a.current.focus()}),[r,t.autoFocus]);var i=ve(w({onClick:function(){a.current.click()}},o)),l=i.getProps("input").html;return n(be,{_base:i,className:"v-submit",children:[n(bt,{cross:ct.Middle,children:[!!t.icon&&e("span",{children:t.icon}),!!t.caption&&e("span",{children:t.caption})]}),e("input",w({formNoValidate:t.isFormNoValidate,ref:a,type:"submit"},l))]})},rr=function(t){var r=ve(t),o=u(null);return n("div",{className:r.getClassName("v-submit-wrapper"),style:r.getStyle(),children:[t.body,e("input",{ref:o,type:"submit"})]})},or=function(t){return e(ln,w({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))};function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(null,arguments)}var ir,lr=function(e){return r.createElement("svg",ar({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),Jn||(Jn=r.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),Kn||(Kn=r.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},cr=function(t){var r=t.enableClear,o=C(t,["enableClear"]);return e(ln,r?w({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o,{renderOptions:function(r){return n(ut,{gap:"0.2em",children:[t.renderOptions&&t.renderOptions(r),e(fn,{fontSize:H.ExtraSmall,frontColor:k.Placeholder,role:"button","aria-label":"Clear",tabIndex:0,onClick:function(){r.current&&(r.current.value="")},onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||!r.current||(e.preventDefault(),r.current.value="")},children:e(lr,{})})]})}}):w({inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},o))},sr=function(t){return e(ln,w({type:"time",isDefaultValue:!0},t))},ur=function(t){return e(ln,w({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},dr=function(t){return e(ln,w({type:"week",isDefaultValue:!0},t))},fr=function(n){var r=h({selectedValue:n.selectedValue}),o=r[0],a=r[1];return e(t,{children:n.renderGroup(o.selectedValue,(function(e){a({selectedValue:e.currentTarget.value})}))})};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(null,arguments)}var pr,gr,mr,vr,yr,br,wr,Cr,Sr=function(e){return r.createElement("svg",hr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),ir||(ir=r.createElement("circle",{cx:128,cy:128,r:100,fill:"currentColor"})))},kr=function(t){var r=t.isOn,o=t.icon,a=t.gap,i=t.isDisabled,l=t.onSwitch,c=C(t,["isOn","icon","gap","isDisabled","onSwitch"]),s=h({isOn:r}),u=s[0],d=s[1];f((function(){d({isOn:r})}),[r]);var p=o?e(fn,{style:{margin:u.isOn?"0 0.6em 0 0":"0 0 0 0.6em"},frontColor:k.White,fontSize:H.Normal,children:o}):e(Ne,{width:"1em",height:"1em"}),g=t.isDisabled?void 0:function(){t.isDisabled||(l&&l(!u.isOn),d({isOn:!u.isOn}))},m=ve(w({onClick:g},c));return e(be,{_base:m,className:i?"v-switch-disabled":"v-switch",children:n(yt,{role:"switch","aria-checked":u.isOn,"aria-disabled":i,tabIndex:i?-1:0,onKeyDown:g?function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),g())}:void 0,borderRadius:D.ExtraLarge,backgroundColor:u.isOn?t.frontColor?t.frontColor:k.Success:t.backgroundColor?t.backgroundColor:k.Placeholder,gap:a||"0.6em",children:[u.isOn?e(fn,{category:cn.Circle,frontColor:k.White,children:e(Sr,{})}):p,u.isOn?p:e(fn,{category:cn.Circle,frontColor:k.White,children:e(Sr,{})})]})})},_r=function(t){var n=t.name;t.items;var r=t.value,o=t.isMultiple;t.fontFamily;var a=C(t,["name","items","value","isMultiple","fontFamily"]),i=ve(a),l=i.getProps("select").html;return e(be,{_base:i,className:"v-select",children:e("select",w({multiple:o,name:n,defaultValue:r,"aria-label":n},l,{children:t.items.map((function(t){return e("option",{value:t.value,children:t.caption},t.value)}))}))})},xr=function(t){var r,o,a,i,l=t.ref,c=t.value,d=t.name,p=t.icon,g=t.emptyIcon,m=t.downIcon,v=t.upIcon,y=t.enableClear,b=t.items,S=t.dockCategory,_=t.dockAlignment,x=t.menuBackgroundColor,O=t.menuZIndex,I=t.menuGap;t.onClick;var B=t.isSelectOnly,D=t.overWriteDropdownMenu,R=t.overWriteDropdownItem,T=t.handleChange,P=t.readOnly,F=C(t,["ref","value","name","icon","emptyIcon","downIcon","upIcon","enableClear","items","dockCategory","dockAlignment","menuBackgroundColor","menuZIndex","menuGap","onClick","isSelectOnly","overWriteDropdownMenu","overWriteDropdownItem","handleChange","readOnly"]),j=ve(F),V=h({isSelectionShow:!1,selectValue:c||"",selectCaption:c?b.filter((function(e){return e.value==c}))[0].caption:"",items:b}),W=V[0],A=V[1],U=u(null),M=s(),q=u(null),G=u(null);f((function(){if(W.isSelectionShow){var e=function(e){var t=e.target;q.current&&!q.current.contains(t)&&G.current&&!G.current.contains(t)&&A((function(e){return w(w({},e),{isSelectionShow:!1,items:b})}))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}}),[W.isSelectionShow,b]);f((function(){"object"==typeof l&&l?l.current=U.current:"function"==typeof l&&l(U.current),t.autoFocus&&U.current&&U.current.focus()}),[l,t.autoFocus]);var X=O||je;if(P)return n(pt,{className:j.getClassName("v-dropdown"),style:j.getStyle(t.style),children:[e(Le,{caption:(null===(r=W.selectCaption)||void 0===r?void 0:r.toString())||"",fontSize:t.fontSize,frontColor:t.frontColor}),e(An,{name:d,valueHook:null===(o=W.selectValue)||void 0===o?void 0:o.toString()}),e(fn,{fontSize:t.iconSize?t.iconSize:H.Small,children:m})]});var Y=q.current?"".concat(q.current.offsetWidth,"px"):void 0;return e(qe,{width:"fit-content",overlayZIndex:W.isSelectionShow?X:-2147483648,category:S||Ve.RightBottom,alignment:_||We.Vertical,renderOverlay:function(){return e(Ne,{ref:G,minWidth:Y,className:"v-dropdown-overlay",children:e(Ne,{visibility:W.isSelectionShow?z.Visible:z.Hidden,borderRadius:t.borderRadius,role:"listbox",id:M,children:D?D(W.items):e(Rt,{gap:I,padding:t.padding,backgroundColor:x||k.White,borderRadius:t.borderRadius,borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:L.Solid,children:0==W.items.length?e(bt,{children:e(fn,{fontSize:t.iconSize?t.iconSize:H.Small,children:g})}):W.items.map((function(r){return R?e(Ne,{borderRadius:t.borderRadius,role:"option","aria-selected":r.value===W.selectValue,children:R(r)},r.value):n(kt,{padding:N.ExtraSmall,gap:E.Small,borderRadius:t.borderRadius,className:"item",role:"option","aria-selected":r.value===W.selectValue,onClick:function(){A(w(w({},W),{isSelectionShow:!1,selectIcon:r.icon,selectCaption:r.caption,selectValue:r.value,items:b})),T&&T(r.value)},children:[r.icon?e(fn,{fontSize:H.ExtraSmall,children:r.icon}):void 0,e(Le,{caption:r.caption})]},r.value)}))})})})},children:e(Ne,{ref:q,children:n(pt,w({className:j.getClassName("v-dropdown"),style:j.getStyle(t.style)},F,{role:"combobox","aria-expanded":W.isSelectionShow,"aria-haspopup":"listbox","aria-controls":M,onClick:function(){A(w(w({},W),{isSelectionShow:!W.isSelectionShow}))},children:[n(Ne,{children:[e(cr,{ref:U,id:t.id,style:{padding:0},fontSize:t.fontSize,frontColor:t.frontColor,icon:e(fn,{fontSize:t.iconSize?t.iconSize:H.Small,children:W.selectIcon?W.selectIcon:p}),valueHook:null===(a=W.selectCaption)||void 0===a?void 0:a.toString(),enableClear:y,renderOptions:t.renderOptions,readOnly:B,onChange:B?void 0:function(e){var t;t=e.target.value,A(w(w({},W),{isSelectionShow:!0,selectCaption:t,items:b.filter((function(e){return e.caption.toLowerCase().indexOf(t.toLowerCase())>-1}))}))}}),e(An,{name:d,valueHook:null===(i=W.selectValue)||void 0===i?void 0:i.toString()})]}),e(fn,{fontSize:t.iconSize?t.iconSize:H.Small,children:W.isSelectionShow?v:m})]}))})})},Or={NewWindow:"_blank",Self:"_self",Parent:"_parent",Top:"_top"},Nr=function(t){var n=t.category,r=t.to,o=C(t,["category","to"]),a=ve(o),i=a.getProps("a").html;return e(be,{_base:a,className:"v-hyperlink",children:e("a",w({href:r,target:n},i,{children:t.children}))})},Ir={P:"p",Address:"address",Article:"article",Aside:"aside",Details:"details",Section:"section"},Er={Justify:0,Left:1,Right:2,Center:3},Br=function(t){var n=t.category;t.alignType;var r,o,a=t.renderContent,i=C(t,["category","alignType","renderContent"]),l=ve(i);switch(t.alignType){case Er.Center:o="v-text-center";break;case Er.Justify:o="v-text-justify";break;case Er.Left:o="v-text";break;case Er.Right:o="v-text-right";break;default:o="v-text"}if(n){var s=n,u=l.getProps(s).html;r=c(s,u,a())}else{u=l.getProps("span").html;r=c("span",u,a())}return e(be,{_base:l,className:o,children:r})},Dr=function(t){var r=t.ref;t.icon;var o=t.valueHook,a=t.setStateHook,i=t.placeholderColor,l=C(t,["ref","icon","valueHook","setStateHook","placeholderColor"]),c=ve(l),s=c.getProps("textarea").html,d=u(null);return f((function(){return"object"==typeof r&&r?r.current=d.current:"function"==typeof r&&r(d.current),t.autoFocus&&d.current&&d.current.focus(),function(){"object"==typeof r&&r?r.current=null:"function"==typeof r&&r(null)}}),[r,t.autoFocus]),e(be,{category:ye.Display,_base:c,className:"v-validity v-textarea ".concat((i||k.Placeholder)+"-placeholder"),children:n(mt,{cross:ct.Top,gap:"0.6em",children:[t.icon,e(Ne,{children:e("textarea",w({ref:d},s,{id:t.id?t.id:t.name},void 0!==o?{value:o}:{defaultValue:t.value},{onChange:function(e){t.onChange&&t.onChange(e),a&&a(e.target.value)}}))})]})})},Lr={Default:"default",Fixed:"fixed"},Rr=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-ellipse-".concat(t.category?t.category:Lr.Default),children:t.children})},zr={Vertical:"vertical",Horizontal:"horizontal"},Tr=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-line-".concat(t.category)})},Pr="default",Fr=function(t){t.category;var n=C(t,["category"]),r=ve(n);return e(be,{_base:r,className:"v-rectangle-".concat(t.category?t.category:Pr)})},jr={Default:"default",Max:"max"},Vr=function(n){var r=ve(n);return 0===o.toArray(n.children).length?e(Le,{backgroundColor:k.Error,caption:"[VShadow] No Children!"}):e(t,{children:o.map(n.children,(function(e){return function(e){if(null==e||"boolean"==typeof e)return null;var t={};n.x&&n.y&&n.blur&&n.spread&&n.color&&(t.boxShadow="".concat(n.x,"px ").concat(n.y,"px ").concat(n.blur,"px ").concat(n.spread,"px ").concat(n.color));var o={className:r.getClassName("v-shadow-".concat(n.category?n.category:jr.Default)),style:w(w({},t),r.getStyle())};return e.type===a||"<>"===e.type?(console.warn("Cannot apply props to Fragment. Please wrap content in a div or other element."),e):i(e,o)}(e)}))})},Wr=function(t){t.sources;var n=C(t,["sources"]),r=ve(n),o=r.getProps("audio").html;return e("audio",w({className:r.getClassName("v-audio"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},Ar=function(t){t.sources;var n=C(t,["sources"]),r=ve(n),o=r.getProps("video").html;return e("video",w({className:r.getClassName("v-video"),style:r.getStyle(),controls:!0},o,{children:t.sources.map((function(t,n){return e("source",{src:t.src,type:t.type},"source".concat(n))}))}))},Ur=function(t){var n=ve(t),r=n.getProps("header").html;return e("header",w({className:n.getClassName("v-header"),style:n.getStyle()},r,{children:t.children}))},Hr=function(t){var n=ve(t),r=n.getProps("main").html;return e("main",w({className:n.getClassName("v-main"),style:n.getStyle()},r,{children:t.children}))},Mr=function(t){var n=ve(t),r=n.getProps("footer").html;return e("footer",w({className:n.getClassName("v-footer"),style:n.getStyle()},r,{children:t.children}))},qr=function(t){var n=ve(t),r=n.getProps("aside").html;return e("aside",w({className:n.getClassName("v-aside"),style:n.getStyle()},r,{children:t.children}))},Gr=function(t){var n=ve(t),r=n.getProps("nav").html;return e("nav",w({className:n.getClassName("v-nav"),style:n.getStyle()},r,{children:t.children}))},Xr=function(t){var n=ve(t),r=n.getProps("hr").html;return e("hr",w({className:n.getClassName("v-hr"),style:n.getStyle()},r))},Yr=function(t){var n=ve(t),r=n.getProps("section").html;return e("section",w({className:n.getClassName("v-section"),style:n.getStyle()},r,{children:t.children}))},Zr=function(t){var n=ve(w({width:"100vw",height:"100vh",backgroundColor:k.Dark75},t));return e(_e,{zIndex:t.zIndex?t.zIndex:je,category:Se.Window,type:ke.Center,children:e(Oe,{children:e(be,{_base:n,className:"v-mask",children:e(_e,{category:Se.Area,type:ke.Center,children:t.children})})})})},Jr=function(t){var n,r=t.image,o=t.backingBoard,a=t.style,i=C(t,["image","backingBoard","style"]),l=ve(i);return o&&(n=w(w({},a),{background:"linear-gradient(".concat(o.degree,", ").concat(o.startColor,", ").concat(o.endColor,")")})),e(be,w({_base:l,className:"v-frame",style:n},t.customAttributes,{children:e("div",{style:{backgroundImage:"url(".concat(r,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:t.children})}))},Kr="--den-",Qr={Global:"global",Area:"area"},$r=function(t){var n=t.category,r=t.area,o=t.variables,a=C(t,["category","area","variables"]),i=ve(w({id:r},a));return f((function(){var e;n==Qr.Area?r&&(e=document.getElementById(r)):e=document.documentElement,e&&(Object.keys(o.colors).forEach((function(t){e.style.setProperty("".concat(Kr,"color-").concat(t),o.colors[t])})),Object.keys(o.fontSizes).forEach((function(t){e.style.setProperty("".concat(Kr).concat(t),o.fontSizes[t])})),Object.keys(o.fontWeights).forEach((function(t){e.style.setProperty("".concat(Kr).concat(t),o.fontWeights[t])})))}),[]),n==Qr.Area?e(be,{_base:i,className:"v-theme",children:t.children}):e(Le,{backgroundColor:k.Error,caption:"[VTheme] No Area!"})},eo={Hover:"hover",Click:"click"},to=function(t){var n=t.category,r=void 0===n?eo.Hover:n,o=t.dockCategory,a=t.dockAlignment,i=t.renderOverlay,l=C(t,["category","dockCategory","dockAlignment","renderOverlay"]),c=ve(l),u=h(!1),d=u[0],f=u[1],p=s();return e(be,{_base:c,className:"v-tooltip",children:e(qe,{category:o,alignment:a,isOverlayVisible:d,popoverMode:r===eo.Click?Ae.Auto:Ae.Manual,onOverlayClose:function(){return f(!1)},renderOverlay:function(){return e(Ne,{role:"tooltip",id:p,children:i()})},children:e(Ne,{"aria-describedby":d?p:void 0,onClick:function(){r===eo.Click&&f(!d)},onMouseEnter:function(){r===eo.Hover&&f(!0)},onMouseLeave:function(){r===eo.Hover&&f(!1)},onFocus:function(){r===eo.Hover&&f(!0)},onBlur:function(){r===eo.Hover&&f(!1)},children:t.children})})})},no=function(t){function n(e){var n=t.call(this,e)||this;return n.state={hasError:!1,error:null,errorInfo:null},n}return b(n,t),n.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},n.prototype.componentDidCatch=function(e,t){this.setState({errorInfo:t}),this.props.onError&&this.props.onError(e,t)},n.prototype.render=function(){var t;return this.state.hasError?this.props.fallback?"function"==typeof this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):this.props.fallback:e("div",{className:"v-error-boundary",role:"alert",children:e(Le,{backgroundColor:k.Error,frontColor:k.White,padding:"1em",caption:"Component Error: ".concat((null===(t=this.state.error)||void 0===t?void 0:t.message)||"Unknown error")})}):this.props.children},n}(g),ro=function(t){return e(Oe,{children:!!t.badge&&e(_e,{category:Se.Area,bottom:"0",right:"0",children:"string"==typeof t.badge||t.badge instanceof String?e(Wn,{category:Pn.Circle,fontSize:H.Small,src:t.badge,alt:"null",borderStyle:"solid",borderWidth:"1px",borderColor:k.Light}):e(fn,{category:cn.Circle,frontColor:k.Secondary,backgroundColor:k.White,fontSize:H.Small,children:t.badge})})})},oo=function(t){var n=ve(t),r=n.getProps("template").html;return e("template",w({className:n.getClassName("v-template"),style:n.getStyle()},r,{children:t.children}))},ao=function(t){return e("div",{id:t.id})},io=function(t){return t.isDebug?e("div",{className:"debug",children:t.children}):e("div",{className:"no-debug",children:t.children})},lo={Uninstalled:"uninstalled",Outdated:"outdated",Ready:"ready"},co=function(t){var n=h({}),r=n[0],o=n[1];if(f((function(){var e;r.status||(e="chrome-extension://".concat(t.extensionId,"/meta.json"),fetch(e).then((function(e){return e.ok?e.json():Promise.reject()})).then((function(e){var n=!t.version||e.version>=t.version;o({status:n?lo.Ready:lo.Outdated,meta:e})})).catch((function(){return o({status:lo.Uninstalled})})))}),[]),r.status){if(t.overWrite)return t.overWrite(r.status,r.meta);var a=void 0;return r.status===lo.Ready?e(Ne,{className:"v-chrome-extension-validator-fragment"}):(r.status===lo.Uninstalled?a=t.uninstalledMessage:r.status===lo.Outdated&&(a=t.outdatedMessage),e(Nr,{category:Or.NewWindow,to:t.downloadUrl?t.downloadUrl:"mailto:support@fewbox.com",children:a}))}return e(Ne,{className:"v-chrome-extension-validator-fragment"})},so={Normal:"normal",Italic:"italic"},uo=function(t){return f((function(){var e=document.createElement("link");e.rel="preconnect",e.href="https://fonts.googleapis.com";var n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin="crossorigin",document.head.appendChild(e),document.head.appendChild(n),t.typefaces.forEach((function(e,t){var n,r,o=e.family,a=null===(n=e.fonts)||void 0===n?void 0:n.filter((function(e){return e.type==so.Italic})),i=a&&a.length>0?"ital,wght":"wght",l=document.createElement("link");l.rel="stylesheet";var c=[];e.fonts&&e.fonts.length>1?(null===(r=e.fonts)||void 0===r||r.forEach((function(e,t){"ital,wght"==i?e.type==so.Normal?c.push("0,".concat(U(e.weight))):e.type==so.Italic&&c.push("1,".concat(U(e.weight))):c.push(U(e.weight).toString())})),l.href="https://fonts.googleapis.com/css2?family=".concat(o,":").concat(i,"@").concat(c.join(";"),"&display=swap")):l.href="https://fonts.googleapis.com/css2?family=".concat(o,"&display=swap"),document.head.appendChild(l)}))}),[]),e(Ne,{className:"google-font-fragment"})},fo={Popup:"popup",Redirect:"redirect"},ho={Implicit:"implicit",AuthorizationCode:"authorization-code"},po="fewbox-google-grant",go=function(t){return f((function(){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",t.category==ho.Implicit?e.onload=function(){var e=google.accounts.oauth2.initTokenClient({client_id:t.clientId,scope:t.scope,callback:function(e){var n={accessToken:e.access_token,expiresIn:e.expires_in,hd:e.hd,prompt:e.prompt,tokenType:e.token_type,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestAccessToken();else{var n=document.getElementById(po);null==n||n.addEventListener("click",(function(){e.requestAccessToken()}))}t.enableGoogle()}:e.onload=function(){var e=google.accounts.oauth2.initCodeClient({client_id:t.clientId,scope:t.scope,ux_mode:t.uxMode,callback:function(e){var n={code:e.code,scope:e.scope,state:e.state,error:e.error,errorDescription:e.error_description,errorUri:e.error_uri};t.callback(n)}});if(t.isAutoRequest)e.requestCode();else{var n=document.getElementById(po);null==n||n.addEventListener("click",(function(){e.requestCode()}))}t.enableGoogle()},e.onerror=function(e){console.error(e),t.disableGoogle()},document.body.appendChild(e)}),[t.clientId,t.scope,t.uxMode,t.category,t.isAutoRequest]),t.isAutoRequest?e(Ne,{className:"google-grant-fragment"}):e(ao,{id:po,children:t.children})},mo=function(t){return e("div",{className:"figma-signin",onClick:function(){window.location.href="https://www.figma.com/oauth?client_id=".concat(t.clientId,"&redirect_uri=").concat(t.redirectUrl,"&scope=").concat(t.scope,"&state=").concat("fewbox","&response_type=").concat(t.responseType)},children:t.children})};function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(null,arguments)}var yo=function(e){return r.createElement("svg",vo({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},e),r.createElement("mask",{id:"google-disable_svg__a",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},pr||(pr=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),gr||(gr=r.createElement("g",{mask:"url(#google-disable_svg__a)"},r.createElement("path",{fill:"#BDBDBD",d:"M18.698 187.09V68.908L97.768 128l-79.07 59.091z"}))),r.createElement("mask",{id:"google-disable_svg__b",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},mr||(mr=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),vr||(vr=r.createElement("g",{mask:"url(#google-disable_svg__b)"},r.createElement("path",{fill:"#9E9E9E",d:"M18.698 68.908 97.768 128l32.558-27.727 111.628-17.727V18.908H18.698z"}))),r.createElement("mask",{id:"google-disable_svg__c",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},yr||(yr=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),br||(br=r.createElement("g",{mask:"url(#google-disable_svg__c)"},r.createElement("path",{fill:"#ADADAD",d:"M18.698 187.09 158.233 82.545l36.744 4.545 46.977-68.182V237.09H18.698z"}))),r.createElement("mask",{id:"google-disable_svg__d",width:200,height:200,x:28,y:28,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},wr||(wr=r.createElement("path",{fill:"#fff",d:"M225.674 109.818h-95.348v38.637h54.883c-5.116 24.545-26.511 38.636-54.883 38.636-33.489 0-60.465-26.364-60.465-59.091s26.976-59.09 60.465-59.09c14.418 0 27.441 5 37.674 13.181L197.767 53c-18.139-15.455-41.395-25-67.441-25C73.581 28 28 72.546 28 128s45.581 100 102.326 100C181.488 228 228 191.636 228 128c0-5.909-.93-12.273-2.326-18.182"}))),Cr||(Cr=r.createElement("g",{mask:"url(#google-disable_svg__d)"},r.createElement("path",{fill:"#757575",d:"M241.954 237.09 97.767 127.999l-18.604-13.636 162.791-45.455z"}))))},bo={Prompt:"prompt",Popup:"popup",Redirect:"redirect"},wo="https://accounts.google.com/gsi/client",Co=!1,So=function(n){var r=n.clientId,o=n.uxMode,a=n.redirectUrl,i=n.gsiButtonConfiguration,l=n.callback,c=n.switchAnotherIdentityProvider,s=n.enableGoogle,d=n.disableGoogle,p=n.googleAuthButtonId,g=p||"fewbox-google-auth",m=u(l),v=u(c),y=u(s),b=u(d),w=h(!1),C=w[0],S=w[1];m.current=l,v.current=c,y.current=s,b.current=d;var k=function(e){console.error(e),S(!0),b.current()};return f((function(){var e;if("undefined"!=typeof document)if(S(!1),r.endsWith(".apps.googleusercontent.com")){if(!Co){var t=!1,n=null,l=function(){try{if(google.accounts.id.initialize({client_id:r,ux_mode:o!=bo.Prompt?o:void 0,use_fedcm_for_prompt:o==bo.Prompt,callback:function(e){m.current(e.credential)},login_uri:a,error_callback:function(){t=!0,n&&(clearTimeout(n),n=null),k("Google Sign-In error callback fired!")}}),o==bo.Prompt)google.accounts.id.prompt((function(e){if((e.isNotDisplayed()||e.isSkippedMoment())&&v.current){var t=e.isNotDisplayed()?e.getNotDisplayedReason():e.getSkippedReason();v.current(t)}})),y.current();else{var e=document.getElementById(g);e?(google.accounts.id.renderButton(e,i||{type:"icon",size:"large",theme:"outline",shape:"circle",logo_alignment:"center"}),n=setTimeout((function(){if(!t){var n=e.querySelector("iframe");n&&n.clientHeight>0?y.current():k("Google Sign-In button render failed!")}}),2e3)):k("The element '".concat(g,"' not found!"))}}catch(e){console.error(e),k("Initialize GSI failed!")}},c=function(){Co=!0,k("Script error!")};if("undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id))return l(),function(){n&&(clearTimeout(n),n=null),google.accounts.id.cancel()};var s=document.querySelector('script[src="'.concat(wo,'"]'));if(s)return"true"===s.dataset.gsiError?void c():"true"===s.dataset.gsiReady?(l(),function(){var e;n&&(clearTimeout(n),n=null),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()}):(s.addEventListener("load",l,{once:!0}),s.addEventListener("error",c,{once:!0}),function(){var e;n&&(clearTimeout(n),n=null),s.removeEventListener("load",l),s.removeEventListener("error",c),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()});var u=document.createElement("script");return u.src=wo,u.onload=function(){u.dataset.gsiReady="true",l()},u.onerror=function(){u.dataset.gsiError="true",c()},document.body.appendChild(u),function(){var e;n&&(clearTimeout(n),n=null),u.remove(),"undefined"!=typeof google&&(null===(e=google.accounts)||void 0===e?void 0:e.id)&&google.accounts.id.cancel()}}k("GSI script failed!")}else k("Invalid Google client ID: '".concat(r,"'!"))}),[r,o,a,i,g]),o==bo.Prompt?e(t,{}):C?e(fn,{fontSize:H.Small,children:e(yo,{})}):e(bt,{children:e(ao,{id:g})})},ko=function(t){return e("div",{className:"wecom-signin",onClick:function(){window.location.href="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=".concat(t.appId,"&agentid=").concat(t.agentId,"&redirect_uri=").concat(t.redirectUrl,"&state=").concat("fewbox")},children:t.children})},_o=function(e){var t={},n=v(e,{header:!0});return t.role=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],t.mobile=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone"],t.name=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],t.email=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],t.exp=n.exp,t.iss=n.iss,t.aud=n.aud,t.expire=t.exp?new Date(1e3*t.exp):new Date(-864e13),t.tenant=n["http://schemas.fewbox.com/jwt/identity/claims/tenant"],t.id=n["http://schemas.fewbox.com/jwt/identity/claims/id"],t.api=n["http://schemas.fewbox.com/jwt/identity/claims/api"],t.issuer=n["http://schemas.fewbox.com/jwt/identity/claims/issuer"],t.audience=n["http://schemas.fewbox.com/jwt/identity/claims/audience"],t.avatar=n["http://schemas.fewbox.com/jwt/identity/claims/avatar"],t};export{_n as AnimationCategory,Nn as AnimationDelay,xn as AnimationRepeat,On as AnimationSpeed,en as BackgroundPositionType,ve as Base,D as BorderRadiusType,L as BorderStyleType,R as BorderWidthType,ze as BreakpointCategory,Pe as BreakpointDisplay,Te as BreakpointType,k as ColorType,P as CursorType,io as Debug,q as DirectionType,T as DisplayType,qe as Dock,We as DockAlignment,Ve as DockCategory,Ae as DockPopoverMode,Lr as EllipseCategory,lo as ExtensionStatus,mo as FigmaSignin,Ln as FileCategory,Ke as Flex,Je as FlexAlignContentType,Ze as FlexAlignItemsType,Ge as FlexDirectionType,$e as FlexItem,Qe as FlexItemAlignSelfType,Ye as FlexJustifyContentType,Xe as FlexWrapType,x as FontFamilyType,H as FontSizeType,_ as FontWeightType,E as GapType,so as GoogleFontType,go as GoogleGrant,ho as GoogleGrantCategory,fo as GoogleGrantUXMode,So as GoogleSignin,bo as GoogleSigninUXMode,rn as HandleSubmitCategory,Or as HyperlinkCategory,Pn as ImageCategory,Be as LabelAlignType,Ie as LabelCategory,Ee as LabelType,B as LetterSpacingType,zr as LineCategory,O as LineHeightType,I as MarginType,W as OpacityType,F as OverflowType,j as OverflowXType,V as OverflowYType,N as PaddingType,_e as Position,Oe as PositionArea,xe as PositionAreaCategory,Se as PositionCategory,ke as PositionType,M as PseudoType,Fe as Responsive,ye as RootCategory,et as SBaseline,tt as SBottom,at as SCenter,nt as SLeft,rt as SMiddle,ot as SRight,it as SStretch,lt as STop,Re as ScreenSizeType,jr as ShadowCategory,cn as SvgCategory,Er as TextAlignType,Ir as TextCategory,Qr as ThemeCategory,eo as TooltipCategory,an as VActionForm,In as VAnimation,qr as VAside,Wr as VAudio,tn as VBackground,ro as VBadge,Un as VBase64File,Ne as VBoundary,bn as VCheckBox,co as VChromeExtensionValidator,wn as VColor,Cn as VDate,Sn as VDatetimeLocal,xr as VDropdown,Rr as VEllipse,kn as VEmail,no as VErrorBoundary,Tn as VFile,Mr as VFooter,on as VForm,Jr as VFrame,uo as VGoogleFont,fr as VGroup,Xr as VHR,Ur as VHeader,An as VHidden,Nr as VHyperlink,Wn as VImage,Le as VLabel,Tr as VLine,En as VLoading,Hr as VMain,Zr as VMask,Hn as VMonth,ao as VMount,Gr as VNav,Mn as VNumber,qn as VPassword,$n as VRadio,er as VRange,Fr as VRectangle,tr as VSearch,Yr as VSection,_r as VSelect,Vr as VShadow,nr as VSubmit,rr as VSubmitWrapper,fn as VSvg,kr as VSwitch,or as VTel,oo as VTemplate,Br as VText,Dr as VTextArea,cr as VTextBox,$r as VTheme,sr as VTime,to as VTooltip,ur as VUrl,Ar as VVideo,dr as VWeek,Ce as VZone,A as ViewSizeType,z as VisibilityType,ko as WeComSignin,ut as X,dt as XAround,ft as XAutoBoth,ht as XAutoCenter,pt as XAutoLeft,gt as XAutoLefts,mt as XAutoRight,vt as XAutoRights,yt as XBetween,bt as XCenter,ct as XCrossType,wt as XCustom,Ct as XCustomBoth,St as XEvenly,kt as XLeft,_t as XRight,xt as XWrapAround,Ot as XWrapBetween,Nt as XWrapBottom,It as XWrapEvenly,Et as XWrapMiddle,Bt as XWrapTop,Rt as Y,jt as YAround,qt as YAutoBoth,Ut as YAutoBottom,Mt as YAutoBottoms,At as YAutoCenter,Wt as YAutoTop,Ht as YAutoTops,zt as YBetween,Ft as YBottom,Dt as YCrossType,Gt as YCustom,Xt as YCustomBoth,Vt as YEvenly,Tt as YMiddle,Pt as YTop,Kt as YWrapAround,Qt as YWrapBetween,Zt as YWrapCenter,$t as YWrapEvenly,Yt as YWrapLeft,Jt as YWrapRight,we as ZoneCategory,nn as convertFormDataToJson,ue as getGeneratedClassName,U as getWeightValue,_o as parseJWT};
|
|
3
3
|
//# sourceMappingURL=index.js.map
|