idea-react 2.0.0-rc.6 → 2.0.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,10 +2,10 @@ import { ButtonProps } from 'react-bootstrap';
2
2
  import { Color } from 'react-bootstrap/esm/types';
3
3
  import { Component } from 'react';
4
4
  import createParser from 'editorjs-html';
5
- import { CSSProperties } from 'react';
6
5
  import { Defer } from 'iterable-observer';
7
6
  import { DetailedHTMLProps } from 'react';
8
7
  import { DropdownButtonProps } from 'react-bootstrap';
8
+ import { DropdownItemProps } from 'react-bootstrap';
9
9
  import { FC } from 'react';
10
10
  import { HTMLAttributes } from 'react';
11
11
  import { ImgHTMLAttributes } from 'react';
@@ -61,11 +61,12 @@ export declare interface DateData {
61
61
  link?: string;
62
62
  }
63
63
 
64
- export declare class Dialog<T = any> {
65
- accessor defer: Defer<T> | undefined;
66
- Component: FC;
67
- constructor(Factory: FC<DialogProps<T>>);
68
- open(): Promise<T>;
64
+ export declare class Dialog<I extends object = {}, O = any> {
65
+ accessor input: I;
66
+ accessor defer: Defer<O> | undefined;
67
+ Component: FC<I>;
68
+ constructor(Factory: FC<I & DialogProps<O>>);
69
+ open(input?: I): Promise<O>;
69
70
  }
70
71
 
71
72
  export declare class DialogClose extends Error {
@@ -76,7 +77,7 @@ export declare interface DialogProps<T = any> {
76
77
  defer?: Defer<T>;
77
78
  }
78
79
 
79
- export declare class Editor extends PureComponent<EditorProps> {
80
+ export declare class Editor extends Component<EditorProps> {
80
81
  static displayName: string;
81
82
  private core?;
82
83
  accessor innerValue: OutputData;
@@ -112,7 +113,7 @@ export declare type IconProps = PropsWithRef<HTMLAttributes<HTMLSpanElement> & {
112
113
 
113
114
  export declare const Loading: FC<LoadingProps>;
114
115
 
115
- export declare type LoadingProps = PropsWithChildren<{}>;
116
+ export declare type LoadingProps = HTMLAttributes<HTMLDivElement>;
116
117
 
117
118
  /**
118
119
  * Re-implement from https://github.com/EasyWebApp/BootCell/blob/3d30027a97fe0a8c4ab8fabc8dfef22aede04de7/source/Calendar/MonthCalendar.tsx
@@ -145,11 +146,9 @@ export declare type NameplateProps = PropsWithoutRef<{
145
146
  declare const Option_2: FC<OptionProps>;
146
147
  export { Option_2 as Option }
147
148
 
148
- export declare type OptionProps = PropsWithChildren<{
149
- className?: string;
150
- style?: CSSProperties;
149
+ export declare interface OptionProps extends DropdownItemProps {
151
150
  value?: string;
152
- }>;
151
+ }
153
152
 
154
153
  /**
155
154
  * ToDo: {@link https://react-bootstrap.github.io/docs/components/overlays#disabled-elements}
@@ -161,7 +160,7 @@ export declare interface OverlayBoxProps extends Omit<OverlayTriggerProps, 'over
161
160
  detail?: ReactNode;
162
161
  }
163
162
 
164
- export declare class PageNav extends PureComponent<PageNavProps> {
163
+ export declare class PageNav extends Component<PageNavProps> {
165
164
  static displayName: string;
166
165
  accessor list: HeadingMeta[];
167
166
  accessor scrollY: number;
@@ -183,12 +182,12 @@ export declare const parser: createParser;
183
182
 
184
183
  export declare const Select: FC<SelectProps>;
185
184
 
186
- export declare interface SelectProps extends OptionProps, Pick<DropdownButtonProps, 'variant' | 'menuVariant'> {
185
+ export declare interface SelectProps extends Omit<OptionProps, 'onChange'>, Pick<DropdownButtonProps, 'variant' | 'menuVariant'> {
187
186
  onChange?: (value: string) => any;
188
187
  valueRender?: (value: string) => ReactNode;
189
188
  }
190
189
 
191
- export declare class ShareBox extends PureComponent<ShareBoxProps> {
190
+ export declare class ShareBox extends Component<ShareBoxProps> {
192
191
  static displayName: string;
193
192
  root: RefObject<HTMLDivElement>;
194
193
  accessor loading: boolean;
@@ -200,7 +199,7 @@ export declare class ShareBox extends PureComponent<ShareBoxProps> {
200
199
  render(): JSX_2.Element;
201
200
  }
202
201
 
203
- export declare type ShareBoxProps = PropsWithChildren<ShareData>;
202
+ export declare type ShareBoxProps = HTMLAttributes<HTMLDivElement> & ShareData;
204
203
 
205
204
  export declare const SpinnerButton: FC<SpinnerButtonProps>;
206
205
 
@@ -210,34 +209,32 @@ export declare interface SpinnerButtonProps extends ButtonProps, Pick<SpinnerPro
210
209
 
211
210
  export declare const TableSpinner: FC<TableSpinnerProps>;
212
211
 
213
- export declare type TableSpinnerProps = PropsWithoutRef<{
212
+ export declare interface TableSpinnerProps extends HTMLAttributes<HTMLTableRowElement>, Pick<SpinnerProps, 'animation' | 'variant' | 'size'> {
214
213
  colSpan: number;
215
- }>;
214
+ }
216
215
 
217
216
  export declare function text2color(raw: string, excludeColors?: VariantColor[]): string;
218
217
 
219
218
  export declare const TimeDistance: FC<TimeDistanceProps>;
220
219
 
221
- export declare type TimeDistanceProps = PropsWithoutRef<{
222
- className?: string;
220
+ export declare interface TimeDistanceProps extends HTMLAttributes<HTMLTimeElement> {
223
221
  date: TimeData;
224
222
  unitWords?: Record<string, string>;
225
223
  beforeWord?: string;
226
224
  afterWord?: string;
227
- }>;
225
+ }
228
226
 
229
- export declare class TypeEcho extends PureComponent<TypeEchoProps> {
227
+ export declare class TypeEcho extends Component<TypeEchoProps> {
230
228
  static displayName: string;
231
229
  accessor echoed: string;
232
230
  init: RefCallback<HTMLPreElement>;
233
231
  render(): JSX_2.Element;
234
232
  }
235
233
 
236
- export declare type TypeEchoProps = PropsWithoutRef<{
237
- className?: string;
234
+ export declare interface TypeEchoProps extends HTMLAttributes<HTMLPreElement> {
238
235
  text: string;
239
236
  intervals?: number;
240
- }>;
237
+ }
241
238
 
242
239
  declare type UserAddressProps = Partial<Record<'email' | 'website', string>>;
243
240
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAEA,wBAAwB,IAAI,EAAE,MAAM,GAAG,YAAY,OAAO,CAAC,CAiB1D;AChBD,4BAA6B,SAAQ,kBAAkB,gBAAgB,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,OAAO,MAAM,QAAQ,GAAG,WAAW,CAelC,CAAC;ACdF,iCAAiC,kBAC7B;IACI,YAAY,CAAC,EAAE,CA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","source/source/ClickBoundary.tsx","source/source/CodeBlock.tsx","source/source/color.ts","source/source/Dialog.tsx","source/source/Editor.tsx","source/source/EditorHTML.tsx","source/source/HorizontalMarquee/index.tsx","source/source/Icon.tsx","source/source/Loading.tsx","source/source/OverlayBox.tsx","source/source/MonthCalendar.tsx","source/source/Nameplate.tsx","source/source/PageNav.tsx","source/source/Select.tsx","source/source/ShareBox.tsx","source/source/SpinnerButton.tsx","source/source/TableSpinner.tsx","source/source/TimeDistance.tsx","source/source/TypeEcho.tsx","source/source/UserRank/Address.tsx","source/source/UserRank/index.tsx","source/source/VerticalMarquee/index.tsx","source/source/index.ts","source/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from './animate';\nexport * from './Avatar';\nexport * from './ClickBoundary';\nexport * from './CodeBlock';\nexport * from './color';\nexport * from './Dialog';\nexport * from './Editor';\nexport * from './EditorHTML';\nexport * from './HorizontalMarquee';\nexport * from './Icon';\nexport * from './Loading';\nexport * from './MonthCalendar';\nexport * from './Nameplate';\nexport * from './OverlayBox';\nexport * from './PageNav';\nexport * from './Select';\nexport * from './ShareBox';\nexport * from './SpinnerButton';\nexport * from './TableSpinner';\nexport * from './TimeDistance';\nexport * from './TypeEcho';\nexport * from './UserRank';\nexport * from './VerticalMarquee';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":";;;;;;;;AAEA,wBAAwB,IAAI,EAAE,MAAM,GAAG,YAAY,OAAO,CAAC,CAiB1D;AChBD,4BAA6B,SAAQ,kBAAkB,gBAAgB,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,OAAO,MAAM,QAAQ,GAAG,WAAW,CAelC,CAAC;ACdF,iCAAiC,kBAC7B;IACI,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,GAAG,CAAC;IAC1C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,G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x","source/source/ClickBoundary.tsx","source/source/CodeBlock.tsx","source/source/color.ts","source/source/Dialog.tsx","source/source/Editor.tsx","source/source/EditorHTML.tsx","source/source/HorizontalMarquee/index.tsx","source/source/Icon.tsx","source/source/Loading.tsx","source/source/OverlayBox.tsx","source/source/MonthCalendar.tsx","source/source/Nameplate.tsx","source/source/PageNav.tsx","source/source/Select.tsx","source/source/ShareBox.tsx","source/source/SpinnerButton.tsx","source/source/TableSpinner.tsx","source/source/TimeDistance.tsx","source/source/TypeEcho.tsx","source/source/UserRank/Address.tsx","source/source/UserRank/index.tsx","source/source/VerticalMarquee/index.tsx","source/source/index.ts","source/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from './animate';\nexport * from './Avatar';\nexport * from './ClickBoundary';\nexport * from './CodeBlock';\nexport * from './color';\nexport * from './Dialog';\nexport * from './Editor';\nexport * from './EditorHTML';\nexport * from './HorizontalMarquee';\nexport * from './Icon';\nexport * from './Loading';\nexport * from './MonthCalendar';\nexport * from './Nameplate';\nexport * from './OverlayBox';\nexport * from './PageNav';\nexport * from './Select';\nexport * from './ShareBox';\nexport * from './SpinnerButton';\nexport * from './TableSpinner';\nexport * from './TimeDistance';\nexport * from './TypeEcho';\nexport * from './UserRank';\nexport * from './VerticalMarquee';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var e,t,r,n,a,i,o,c,l,s,u,d,f,p,v,h,m,b,y,g,j,w,x,O,_,k,P,N,S,T,E,I,C,D,M,q,R,W,U,z,Y,L,A,B,G,F,V,H,J,Q,K,X,Z,$,ee,et,er,en,ea,ei,eo,ec,el,es,eu,ed,ef,ep,ev,eh,em,eb,ey,eg,ej,ew,ex,eO,e_,ek,eP,eN,eS,eT,eE,eI,eC,eD,eM,eq,eR,eW,eU,ez,eY,eL,eA=require("@swc/helpers/cjs/_sliced_to_array.cjs"),eB=require("@swc/helpers/cjs/_to_consumable_array.cjs"),eG=require("react/jsx-runtime"),eF=require("classnames"),eV=require("@swc/helpers/cjs/_assert_this_initialized.cjs"),eH=require("@swc/helpers/cjs/_class_call_check.cjs"),eJ=require("@swc/helpers/cjs/_create_class.cjs"),eQ=require("@swc/helpers/cjs/_inherits.cjs"),eK=require("@swc/helpers/cjs/_create_super.cjs"),eX=require("react"),eZ=require("prismjs"),e$=require("react-element-to-jsx-string"),e0=require("@swc/helpers/cjs/_wrap_native_super.cjs"),e1=require("iterable-observer"),e2=require("mobx"),e3=require("mobx-react"),e4=require("@swc/helpers/cjs/_type_of.cjs"),e5=require("@swc/helpers/cjs/_ts_generator.cjs"),e7=require("react-editor-js"),e8=require("editorjs-html"),e6=require("react-bootstrap"),e9=require("mobx-react-helper"),te=require("web-utility"),tt=require("html2canvas");function tr(e,t){return Object.keys(t).forEach(function(r){"default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}),e}function tn(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function ta(e){return e&&e.__esModule?e.default:e}var ti={};function to(e){return function(t){return t&&new IntersectionObserver(function(t,r){var n,a,i=(0,eA._)(t,1)[0],o=i.isIntersecting,c=i.target;if(o){var l=["animate__animated","animate__".concat(e)];(n=c.classList).add.apply(n,(0,eB._)(l)),c.addEventListener("animationend",function(){return(a=c.classList).remove.apply(a,(0,eB._)(l))},{once:!0}),r.disconnect()}}).observe(t)}}tn(ti,"animate",function(){return to});var tc={};tn(tc,"Avatar",function(){return ts});var tl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ts=function(e){var t=e.className,r=e.style,n=e.size,a=void 0===n?3:n,i=tl(e,["className","style","size"]);return(0,eG.jsx)("img",Object.assign({className:ta(eF)("object-fit-cover rounded-circle",t),style:Object.assign({width:"".concat(a,"rem"),height:"".concat(a,"rem")},r)},i))};ts.displayName="Avatar";var tu={};tn(tu,"ClickBoundary",function(){return tf});var td=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tf=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e;return(0,eH._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eV._)(e),"root",{enumerable:!0,configurable:!0,writable:!0,value:/*#__PURE__*/(0,eX.createRef)()}),Object.defineProperty((0,eV._)(e),"switchClick",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var r,n=e.props,a=n.onInnerClick,i=n.onOuterClick;(null===(r=e.root.current)||void 0===r?void 0:r.contains(t.target))?null==a||a(t):null==i||i(t)}}),e}return(0,eJ._)(r,[{key:"componentDidMount",value:function(){window.addEventListener("click",this.switchClick,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.switchClick,!0)}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.onInnerClick,e.onOuterClick,td(e,["children","onInnerClick","onOuterClick"]));return(0,eG.jsx)("div",Object.assign({ref:this.root},r,{children:t}))}}]),r}(eX.PureComponent),tp={};function tv(e){var t=e.language,r=e.children,n=(0,eZ.highlight)(ta(e$)(/*#__PURE__*/(0,eX.isValidElement)(r)?r:(0,eG.jsx)(eG.Fragment,{children:r})),eZ.languages[t],t);return(0,eG.jsx)("pre",{children:(0,eG.jsx)("code",{dangerouslySetInnerHTML:{__html:n},className:"language-".concat(t)})})}tn(tp,"CodeBlock",function(){return tv});var th={};tn(th,"VariantColors",function(){return tm}),tn(th,"text2color",function(){return tb});var tm=["primary","secondary","success","danger","warning","info","dark","light"];function tb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t[0]?tm.filter(function(e){return!t.find(function(t){return t===e})}):tm;return r[(0,eB._)(e).reduce(function(e,t){return e+t.charCodeAt(0)},0)%r.length]}var ty={};tn(ty,"DialogClose",function(){return tx}),tn(ty,"Dialog",function(){return tO});var tg=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},tj=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tw=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},tx=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Dialog closed";return(0,eH._)(this,r),t.call(this,e)}return r}((0,e0._)(Error)),tO=(r=[],n=[],e=/*#__PURE__*/function(){function e(a){var i=this;(0,eH._)(this,e),t.set(this,tg(this,r,void 0)),Object.defineProperty(this,"Component",{enumerable:!0,configurable:!0,writable:!0,value:tg(this,n)}),this.Component=(0,e3.observer)(function(){return(0,eG.jsx)(a,{defer:i.defer})}),this.Component.displayName="DialogComponent"}return(0,eJ._)(e,[{key:"defer",get:function(){return tj(this,t,"f")},set:function(e){tw(this,t,e,"f")}},{key:"open",value:function(){var e=this;return this.defer=new e1.Defer,this.defer.promise.finally(function(){return e.defer=void 0}),this.defer.promise}}]),e}(),t=new WeakMap,a="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=e?n.static?e:e.prototype:null,d=u?Object.getOwnPropertyDescriptor(u,n.name):{},f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0}(e,null,[e2.observable],{kind:"accessor",name:"defer",static:!1,private:!1,access:{has:function(e){return"defer"in e},get:function(e){return e.defer},set:function(e,t){e.defer=t}},metadata:a},r,n),a&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),e),t_={};tn(t_,"Editor",function(){return tI});var tk=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},tP=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},tN=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tS=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},tT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tE=(0,e7.createReactEditorJS)(),tI=(l=[e3.observer],s=[],u=eX.PureComponent,d=[],f=[],c=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e;return(0,eH._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eV._)(e),"core",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),i.set((0,eV._)(e),tP((0,eV._)(e),d,e.props.defaultValue)),Object.defineProperty((0,eV._)(e),"save",{enumerable:!0,configurable:!0,writable:!0,value:(tP((0,eV._)(e),f),function(){var t,r,n,a;return t=(0,eV._)(e),r=void 0,n=void 0,a=function(){var e,t;return(0,e5._)(this,function(r){switch(r.label){case 0:if(!(e=this.core))return[3,2];return t=this,[4,this.core.save()];case 1:e=t.innerValue=r.sent(),r.label=2;case 2:return[2,e]}})},new(n||(n=Promise))(function(e,i){function o(e){try{l(a.next(e))}catch(e){i(e)}}function c(e){try{l(a.throw(e))}catch(e){i(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(o,c)}l((a=a.apply(t,r||[])).next())})})}),e}return(0,eJ._)(r,[{key:"innerValue",get:function(){return tN(this,i,"f")},set:function(e){tS(this,i,e,"f")}},{key:"render",value:function(){var e=this,t=this.props,r=t.name,n=t.required,a=(t.children,tT(t,["name","required","children"])),i=this.innerValue;return(0,eG.jsxs)("div",{className:"form-control",tabIndex:-1,onBlur:this.save,children:[(0,eG.jsx)("input",{hidden:!0,name:r,required:n,value:JSON.stringify(i)}),(0,eG.jsx)(tE,Object.assign({},a,{onInitialize:function(t){var r;e.core=t,null===(r=a.onInitialize)||void 0===r||r.call(a,t)}}))]})}}]),r}(u),i=new WeakMap,p=c,v="Editor","symbol"===(0,e4._)(v)&&(v=v.description?"[".concat(v.description,"]"):""),Object.defineProperty(p,"name",{configurable:!0,value:v}),m="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(h=u[Symbol.metadata])&&void 0!==h?h:null):void 0,tk(c,null,[e2.observable],{kind:"accessor",name:"innerValue",static:!1,private:!1,access:{has:function(e){return"innerValue"in e},get:function(e){return e.innerValue},set:function(e,t){e.innerValue=t}},metadata:m},d,f),tk(null,o={value:c},l,{kind:"class",name:c.name,metadata:m},null,s),c=o.value,m&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(c,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"Editor"}),tP(c,s),c),tC={};tn(tC,"parser",function(){return tD}),tn(tC,"EditorHTML",function(){return tM});var tD=ta(e8)({link:function(e){var t=e.data.link;return'<a href="'.concat(t,'">').concat(t,"</a>")}}),tM=function(e){var t=e.className,r=e.data,n=tD.parse(r).join("");return(0,eG.jsx)("article",{dangerouslySetInnerHTML:{__html:n},className:t})};tM.displayName="EditorHTML";var tq={};tn(tq,"HorizontalMarquee",function(){return tW}),tn(tq,"HorizontalMarqueeBox",function(){return tU}),eN="_4_3lnG_scrollContainer",eS="_4_3lnG_scrollHeightWrap",eT="_4_3lnG_scrollItem",eE="_4_3lnG_scrollWrap",eI="_4_3lnG_unScrollItem";var tR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tW=function(e){var t=e.className,r=e.children,n=e.maxWidth,a=e.duration,i=e.height,o=tR(e,["className","children","maxWidth","duration","height"]);return(0,eG.jsx)("div",Object.assign({className:"overflow-hidden mw-100 ".concat(void 0===t?"":t)},o,{children:(0,eG.jsx)("div",{className:"d-inline-block align-top text-nowrap ".concat(eE),style:{maxWidth:void 0===n?"100%":n,animationDuration:a,height:i,lineHeight:i},children:(0,eG.jsx)("div",{className:"d-inline-block ".concat(eT),style:{animationDuration:a},children:r})})}))},tU=function(e){var t=e.children,r=e.maxWidth,n=e.duration,a=e.height;return a?(0,eG.jsx)("div",{className:"overflow-hidden ".concat(eS),style:{maxWidth:r,"--scroll-height":a},children:(0,eG.jsxs)("div",{className:"d-inline-block overflow-hidden mw-100 ".concat(eN),children:[(0,eG.jsx)("div",{className:"d-block overflow-hidden text-wrap text-break ".concat(eI),children:t}),(0,eG.jsx)(tW,{duration:n,children:t})]})}):(0,eG.jsx)(tW,{maxWidth:r,duration:n,height:a,children:t})},tz={};tn(tz,"Icon",function(){return tL});var tY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tL=function(e){var t=e.className,r=e.style,n=e.name,a=e.size,i=tY(e,["className","style","name","size"]);return(0,eG.jsx)("span",Object.assign({className:ta(eF)("bi-".concat(n),t),style:Object.assign({fontSize:a&&"".concat(a,"rem")},r)},i))};tL.displayName="Icon";var tA={};tn(tA,"Loading",function(){return tB});var tB=function(e){var t=e.children;return(0,eG.jsxs)("div",{className:"fixed-top h-100 w-100 d-flex justify-content-center align-items-center opacity-25 bg-black",children:[(0,eG.jsx)(e6.Spinner,{animation:"border",variant:"success"}),(0,eG.jsx)("span",{className:"ml-3 text-white",children:void 0===t?"Loading...":t})]})};tB.displayName="Loading";var tG={};tn(tG,"MonthCalendar",function(){return t$});var tF={};tn(tF,"OverlayBox",function(){return tH});var tV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tH=function(e){var t=e.title,r=e.detail,n=e.children,a=tV(e,["title","detail","children"]);return(0,eG.jsx)(e6.OverlayTrigger,Object.assign({},a,{overlay:r?(0,eG.jsxs)(e6.Popover,{children:[(0,eG.jsx)(e6.Popover.Header,{children:t}),(0,eG.jsx)(e6.Popover.Body,{children:r})]}):(0,eG.jsx)(e6.Tooltip,{children:t}),children:n}))};tH.displayName="OverlayBox";var tJ=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},tQ=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},tK=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tX=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},tZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},t$=(O=[e3.observer,e9.observePropsState],_=[],k=eX.Component,P=[],N=[],S=[],g=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e;return(0,eH._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),b.set((0,eV._)(e),(tJ((0,eV._)(e),P),tJ((0,eV._)(e),N,new Date))),Object.defineProperty((0,eV._)(e),"renderDate",{enumerable:!0,configurable:!0,writable:!0,value:(tJ((0,eV._)(e),S),function(t){var r=e.observedProps,n=(r.variant,r.value),a=r.onSelect,i=(0,te.formatDate)(t,"YYYY-MM-DD"),o=null==n?void 0:n.filter(function(e){var t=e.date;return(0,te.formatDate)(t,"YYYY-MM-DD")===i});return(0,eG.jsxs)("td",{className:ta(eF)({"opacity-50":t.getMonth()!==e.currentDate.getMonth(),"fw-bold":i===(0,te.formatDate)(new Date,"YYYY-MM-DD")}),children:[(0,eG.jsx)("time",{className:"d-block",dateTime:t.toJSON(),children:t.getDate()}),null==o?void 0:o.map(function(e){return"object"==typeof e.content?e.content:(0,eG.jsx)(tH,{title:e.content,children:(0,eG.jsx)(e6.Badge,{as:"a",className:"d-inline-block text-decoration-none w-100 text-truncate",bg:tb(e.content+"",["light"]),href:e.link,onClick:function(){return null==a?void 0:a(e)},children:e.content})},e.date+"")})]},t+"")})}),e}return(0,eJ._)(r,[{key:"weekFormatter",get:function(){var e,t=this.observedProps.locale,r=void 0===t?null===(e=globalThis.navigator)||void 0===e?void 0:e.language:t;return new Intl.DateTimeFormat(r,{weekday:"long"})}},{key:"currentDate",get:function(){return tK(this,b,"f")},set:function(e){tX(this,b,e,"f")}},{key:"dateGrid",get:function(){var e=new Date(this.currentDate);e.setDate(1),e=new Date(+e-e.getDay()*te.Day);var t=Array.from(Array(42),function(t,r){return new Date(+e+r*te.Day)});return(0,te.splitArray)(t,7)}},{key:"changeMonth",value:function(e){var t,r;this.currentDate=(0,te.changeMonth)(this.currentDate,e),null===(r=(t=this.props).onChange)||void 0===r||r.call(t,this.currentDate)}},{key:"render",value:function(){var e=this,t=this.weekFormatter,r=this.currentDate,n=this.dateGrid,a=this.observedProps,i=a.style,o=a.variant,c=void 0===o?"primary":o,l=(a.onChange,a.onSelect,tZ(a,["style","variant","onChange","onSelect"]));return(0,eG.jsxs)(e6.Table,Object.assign({},l,{style:Object.assign({tableLayout:"fixed"},i),children:[(0,eG.jsx)("caption",{children:(0,eG.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,eG.jsx)(e6.Button,{variant:c,onClick:function(){return e.changeMonth(-1)},children:"<"}),(0,te.formatDate)(r,"YYYY-MM"),(0,eG.jsx)(e6.Button,{variant:c,onClick:function(){return e.changeMonth(1)},children:">"})]})}),(0,eG.jsx)("thead",{children:(0,eG.jsx)("tr",{children:n[0].map(function(e,r,n){var a=n.length;return(0,eG.jsx)("td",{className:"bg-".concat(c," text-white"),style:{width:"calc(100% / ".concat(a,")")},children:t.format(e)},r)})})}),(0,eG.jsx)("tbody",{children:n.map(function(t){return(0,eG.jsx)("tr",{children:t.map(e.renderDate)},t[0]+"")})})]}))}}]),r}(k),b=new WeakMap,T=g,E="MonthCalendar","symbol"===(0,e4._)(E)&&(E=E.description?"[".concat(E.description,"]"):""),Object.defineProperty(T,"name",{configurable:!0,value:E}),C="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(I=k[Symbol.metadata])&&void 0!==I?I:null):void 0,j=[e2.computed],w=[e2.observable],x=[e2.computed],tQ(g,null,j,{kind:"getter",name:"weekFormatter",static:!1,private:!1,access:{has:function(e){return"weekFormatter"in e},get:function(e){return e.weekFormatter}},metadata:C},null,P),tQ(g,null,w,{kind:"accessor",name:"currentDate",static:!1,private:!1,access:{has:function(e){return"currentDate"in e},get:function(e){return e.currentDate},set:function(e,t){e.currentDate=t}},metadata:C},N,S),tQ(g,null,x,{kind:"getter",name:"dateGrid",static:!1,private:!1,access:{has:function(e){return"dateGrid"in e},get:function(e){return e.dateGrid}},metadata:C},null,P),tQ(null,y={value:g},O,{kind:"class",name:g.name,metadata:C},null,_),g=y.value,C&&Object.defineProperty(g,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:C}),Object.defineProperty(g,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"MonthCalendar"}),tJ(g,_),g),t0={};tn(t0,"Nameplate",function(){return t1});var t1=function(e){var t=e.avatar,r=e.name;return(0,eG.jsxs)(eG.Fragment,{children:[(0,eG.jsx)(ts,{size:2,style:{marginRight:"0.5rem"},src:t}),(0,eG.jsx)("span",{className:"align-middle",children:r})]})};t1.displayName="Nameplate";var t2={};tn(t2,"PageNav",function(){return t9});var t3=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},t4=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},t5=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},t7=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},t8=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},t6=Array.from(Array(6),function(e,t){return"h".concat(++t)})+"",t9=(Y=[e3.observer],L=[],A=eX.PureComponent,B=[],G=[],F=[],V=[],H=[],R=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e;return(0,eH._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),D.set((0,eV._)(e),(t3((0,eV._)(e),B),t3((0,eV._)(e),G,[]))),M.set((0,eV._)(e),(t3((0,eV._)(e),F),t3((0,eV._)(e),V,0))),Object.defineProperty((0,eV._)(e),"updateScrollY",{enumerable:!0,configurable:!0,writable:!0,value:(t3((0,eV._)(e),H),function(){return e.scrollY=window.scrollY})}),Object.defineProperty((0,eV._)(e),"scrollTo",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return function(){var r,n;setTimeout(function(){return(0,te.scrollTo)('[id="'.concat(t.id,'"]'))}),null===(n=(r=e.props).onItemClick)||void 0===n||n.call(r,t)}}}),Object.defineProperty((0,eV._)(e),"renderLink",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var r=t.id,n=t.level,a=t.text,i=t.top,o=(0,eV._)(e).currentActiveId,c=e.props.depth;return n<=(void 0===c?1/0:c)&&(0,eG.jsx)(e6.Nav.Item,{style:{textIndent:"".concat(n-1,"rem")},children:(0,eG.jsx)(e6.Nav.Link,{href:"#".concat(r),active:o===r,onClick:e.scrollTo({id:r,level:n,text:a,top:i}),children:a})},r)}}),e}return(0,eJ._)(r,[{key:"list",get:function(){return t5(this,D,"f")},set:function(e){t7(this,D,e,"f")}},{key:"scrollY",get:function(){return t5(this,M,"f")},set:function(e){t7(this,M,e,"f")}},{key:"currentActiveId",get:function(){var e,t=this.list,r=this.scrollY,n=t.findIndex(function(e){return e.top>r});return null===(e=t[n-1])||void 0===e?void 0:e.id}},{key:"componentDidMount",value:function(){globalThis.document&&(window.addEventListener("scroll",this.updateScrollY),this.list=Array.from(document.querySelectorAll(t6),function(e){e.id||(e.id=(0,te.uniqueID)());var t=e.id,r=e.tagName,n=e.textContent,a=e.offsetTop;return{id:t,level:+r[1],text:n.trim(),top:a}}))}},{key:"componentWillUnmount",value:function(){var e;null===(e=globalThis.removeEventListener)||void 0===e||e.call(globalThis,"scroll",this.updateScrollY)}},{key:"render",value:function(){var e=this.list,t=this.props,r=t.style,n=t.variant,a=t8(t,["style","variant"]);return(0,eG.jsx)(e6.Nav,Object.assign({},a,{variant:void 0===n?"underline":n,style:Object.assign({flexDirection:"column"},r),children:e.map(this.renderLink)}))}}]),r}(A),D=new WeakMap,M=new WeakMap,J=R,Q="PageNav","symbol"===(0,e4._)(Q)&&(Q=Q.description?"[".concat(Q.description,"]"):""),Object.defineProperty(J,"name",{configurable:!0,value:Q}),X="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(K=A[Symbol.metadata])&&void 0!==K?K:null):void 0,W=[e2.observable],U=[e2.observable],z=[e2.computed],t4(R,null,W,{kind:"accessor",name:"list",static:!1,private:!1,access:{has:function(e){return"list"in e},get:function(e){return e.list},set:function(e,t){e.list=t}},metadata:X},G,F),t4(R,null,U,{kind:"accessor",name:"scrollY",static:!1,private:!1,access:{has:function(e){return"scrollY"in e},get:function(e){return e.scrollY},set:function(e,t){e.scrollY=t}},metadata:X},V,H),t4(R,null,z,{kind:"getter",name:"currentActiveId",static:!1,private:!1,access:{has:function(e){return"currentActiveId"in e},get:function(e){return e.currentActiveId}},metadata:X},null,B),t4(null,q={value:R},Y,{kind:"class",name:R.name,metadata:X},null,L),R=q.value,X&&Object.defineProperty(R,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:X}),Object.defineProperty(R,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"PageNav"}),t3(R,L),R),re={};tn(re,"Option",function(){return rr}),tn(re,"Select",function(){return rn});var rt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rr=function(e){var t=e.value,r=e.children,n=rt(e,["value","children"]);return(0,eG.jsx)(e6.Dropdown.Item,Object.assign({},n,{"data-value":t,children:r}))};rr.displayName="Option";var rn=function(e){var t=e.className,r=e.style,n=e.variant,a=e.menuVariant,i=e.children,o=e.value,c=e.onChange,l=e.valueRender,s=(0,te.makeArray)(i).flat(1/0).find(function(e){return/*#__PURE__*/(0,eX.isValidElement)(e)&&e.type===rr&&e.props.value===o});return(0,eG.jsxs)(e6.Dropdown,{onClick:function(e){var t=e.target.closest(".dropdown-item");if(t){var r=t.dataset.value;null==c||c(r)}},children:[(0,eG.jsx)(e6.Dropdown.Toggle,{className:ta(eF)("w-100","d-flex","justify-content-between","align-items-center",!n&&"bg-white text-dark",t),style:r,variant:n,children:(null==l?void 0:l(o))||(0,eG.jsx)("div",{className:null==s?void 0:s.props.className,children:null==s?void 0:s.props.children})}),(0,eG.jsx)(e6.Dropdown.Menu,{variant:a,children:i})]})};rn.displayName="Select";var ra={};tn(ra,"elementToImage",function(){return ru}),tn(ra,"ShareBox",function(){return rd});var ri=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},ro=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},rc=function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function c(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,c)}l((n=n.apply(e,t||[])).next())})},rl=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},rs=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r};function ru(e,t,r){return rc(this,void 0,void 0,function(){var n;return(0,e5._)(this,function(a){switch(a.label){case 0:return[4,ta(tt)(e,{useCORS:!0})];case 1:return n=a.sent(),[2,new Promise(function(e,a){return n.toBlob(function(t){return t?e(URL.createObjectURL(t)):a()},t,r)})]}})})}var rd=(ea=[e3.observer],ei=[],eo=eX.PureComponent,ec=[],el=[],es=[],eu=[],et=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e;return(0,eH._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eV._)(e),"root",{enumerable:!0,configurable:!0,writable:!0,value:/*#__PURE__*/(0,eX.createRef)()}),Z.set((0,eV._)(e),ro((0,eV._)(e),ec,!1)),$.set((0,eV._)(e),(ro((0,eV._)(e),el),ro((0,eV._)(e),es,""))),Object.defineProperty((0,eV._)(e),"generateImage",{enumerable:!0,configurable:!0,writable:!0,value:(ro((0,eV._)(e),eu),function(){return rc((0,eV._)(e),void 0,void 0,function(){var e;return(0,e5._)(this,function(t){switch(t.label){case 0:return this.imageURI&&(URL.revokeObjectURL(this.imageURI),this.imageURI=""),this.loading=!0,e=this,[4,ru(this.root.current)];case 1:return e.imageURI=t.sent(),this.loading=!1,[2]}})})})}),Object.defineProperty((0,eV._)(e),"share",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return rc((0,eV._)(e),void 0,void 0,function(){var e,r,n;return(0,e5._)(this,function(a){switch(a.label){case 0:return t.stopPropagation(),[4,(0,te.blobOf)(this.imageURI)];case 1:return n=new File([r=a.sent()],"".concat(this.props.title,".png"),{type:r.type}),[4,null===(e=navigator.share)||void 0===e?void 0:e.call(navigator,Object.assign({files:[n]},this.props))];case 2:return a.sent(),[2]}})})}}),e}return(0,eJ._)(r,[{key:"loading",get:function(){return rl(this,Z,"f")},set:function(e){rs(this,Z,e,"f")}},{key:"imageURI",get:function(){return rl(this,$,"f")},set:function(e){rs(this,$,e,"f")}},{key:"componentDidMount",value:function(){var e;null===(e=globalThis.addEventListener)||void 0===e||e.call(globalThis,"resize",this.generateImage)}},{key:"componentWillUnmount",value:function(){var e;null===(e=globalThis.removeEventListener)||void 0===e||e.call(globalThis,"resize",this.generateImage)}},{key:"render",value:function(){var e=this.props.children,t=this.loading,r=this.imageURI;return(0,eG.jsxs)(eG.Fragment,{children:[t&&(0,eG.jsx)(tB,{}),(0,eG.jsxs)("div",{ref:this.root,className:"position-relative",onMouseEnter:r?void 0:this.generateImage,onTouchStart:r?void 0:this.generateImage,children:[e,r&&(0,eG.jsx)(e6.Image,{className:"position-absolute start-0 top-0 w-100 h-100",src:r,alt:"Share Image",fluid:!0,onClick:this.share})]})]})}}]),r}(eo),Z=new WeakMap,$=new WeakMap,ed=et,ef="ShareBox","symbol"===(0,e4._)(ef)&&(ef=ef.description?"[".concat(ef.description,"]"):""),Object.defineProperty(ed,"name",{configurable:!0,value:ef}),ev="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(ep=eo[Symbol.metadata])&&void 0!==ep?ep:null):void 0,er=[e2.observable],en=[e2.observable],ri(et,null,er,{kind:"accessor",name:"loading",static:!1,private:!1,access:{has:function(e){return"loading"in e},get:function(e){return e.loading},set:function(e,t){e.loading=t}},metadata:ev},ec,el),ri(et,null,en,{kind:"accessor",name:"imageURI",static:!1,private:!1,access:{has:function(e){return"imageURI"in e},get:function(e){return e.imageURI},set:function(e,t){e.imageURI=t}},metadata:ev},es,eu),ri(null,ee={value:et},ea,{kind:"class",name:et.name,metadata:ev},null,ei),et=ee.value,ev&&Object.defineProperty(et,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ev}),Object.defineProperty(et,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"ShareBox"}),ro(et,ei),et),rf={};tn(rf,"SpinnerButton",function(){return rv});var rp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rv=function(e){var t=e.animation,r=e.loading,n=e.disabled,a=e.children,i=rp(e,["animation","loading","disabled","children"]);return(0,eG.jsxs)(e6.Button,Object.assign({},i,{disabled:r||n,children:[r&&(0,eG.jsxs)(eG.Fragment,{children:[(0,eG.jsx)(e6.Spinner,{as:"span",className:a?"me-2":"",size:"sm",animation:t,role:"status","aria-hidden":"true"}),!a&&(0,eG.jsx)("span",{className:"visually-hidden",children:"Loading..."})]}),a]}))};rv.displayName="SpinnerButton";var rh={};tn(rh,"TableSpinner",function(){return rm});var rm=function(e){var t=e.colSpan;return(0,eG.jsx)("tr",{children:(0,eG.jsx)("td",{className:"text-center p-4",colSpan:t,children:(0,eG.jsx)(e6.Spinner,{animation:"border",variant:"primary"})})})};rm.displayName="TableSpinner";var rb={};tn(rb,"TimeDistance",function(){return rg});var ry={ms:"millisecond(s)",s:"second(s)",m:"minute(s)",H:"hour(s)",D:"day(s)",W:"week(s)",M:"month(s)",Y:"year(s)"},rg=function(e){var t=e.className,r=e.date,n=e.unitWords,a=void 0===n?ry:n,i=e.beforeWord,o=e.afterWord;r=new Date(r);var c=(0,te.diffTime)(r),l=c.distance,s=c.unit;return(0,eG.jsxs)("time",{className:t,dateTime:r.toJSON(),title:r.toLocaleString(),children:[Math.abs(l)," ",a[s],l<0?void 0===i?" before":i:void 0===o?" after":o]})};rg.displayName="TimeDistance";var rj={};tn(rj,"TypeEcho",function(){return rk});var rw=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},rx=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},rO=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},r_=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},rk=(ey=[e3.observer],eg=[],ej=eX.PureComponent,ew=[],ex=[],eb=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e;return(0,eH._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),eh.set((0,eV._)(e),rx((0,eV._)(e),ew,"")),Object.defineProperty((0,eV._)(e),"init",{enumerable:!0,configurable:!0,writable:!0,value:(rx((0,eV._)(e),ex),function(t){return t&&new IntersectionObserver(function(t,r){var n,a,i;return n=[t,r],a=void 0,i=function(e,t){var r,n,a,i,o,c,l,s,u,d,f;return(0,e5._)(this,function(p){switch(p.label){case 0:if(!(0,eA._)(e,1)[0].isIntersecting)return[2];t.disconnect(),n=(r=this.props).text,i=void 0===(a=r.intervals)?150:a,o=!0,c=!1,l=void 0,p.label=1;case 1:p.trys.push([1,6,7,8]),s=n[Symbol.iterator](),p.label=2;case 2:if(o=(u=s.next()).done)return[3,5];return d=u.value,[4,(0,te.sleep)(i/1e3)];case 3:p.sent(),this.echoed+=d,p.label=4;case 4:return o=!0,[3,2];case 5:return[3,8];case 6:return f=p.sent(),c=!0,l=f,[3,8];case 7:try{o||null==s.return||s.return()}finally{if(c)throw l}return[7];case 8:return[2]}})},new(a||(a=Promise))(function(t,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function c(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(e){e(r)})).then(o,c)}l((i=i.apply(e,n||[])).next())})}).observe(t)})}),e}return(0,eJ._)(r,[{key:"echoed",get:function(){return rO(this,eh,"f")},set:function(e){r_(this,eh,e,"f")}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.text,n=this.echoed;return(0,eG.jsx)("pre",{ref:this.init,className:ta(eF)("text-wrap",t),children:n+(n===r?"":"_")})}}]),r}(ej),eh=new WeakMap,eO=eb,e_="TypeEcho","symbol"===(0,e4._)(e_)&&(e_=e_.description?"[".concat(e_.description,"]"):""),Object.defineProperty(eO,"name",{configurable:!0,value:e_}),eP="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(ek=ej[Symbol.metadata])&&void 0!==ek?ek:null):void 0,rw(eb,null,[e2.observable],{kind:"accessor",name:"echoed",static:!1,private:!1,access:{has:function(e){return"echoed"in e},get:function(e){return e.echoed},set:function(e,t){e.echoed=t}},metadata:eP},ew,ex),rw(null,em={value:eb},ey,{kind:"class",name:eb.name,metadata:eP},null,eg),eb=em.value,eP&&Object.defineProperty(eb,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:eP}),Object.defineProperty(eb,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"TypeEcho"}),rx(eb,eg),eb),rP={};tn(rP,"UserRankView",function(){return rT});var rN=function(e){var t=e.email,r=e.website;return(0,eG.jsxs)("address",{className:"mb-0 d-flex justify-content-around gap-2",children:[t&&(0,eG.jsx)("a",{rel:"noreferrer",target:"_blank",href:"mailto:"+t,children:(0,eG.jsx)(tL,{name:"envelope"})}),r&&(0,eG.jsx)("a",{rel:"noreferrer",target:"_blank",href:r,children:(0,eG.jsx)(tL,{name:"globe2"})})]})};eC="WavURG_image",eD="WavURG_medal",eM="WavURG_name",eq="WavURG_rankBox",eR="WavURG_restUsers",eW="WavURG_title",eU="WavURG_topUser",ez="WavURG_topUsers";var rS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rT=/*#__PURE__*/function(e){(0,eQ._)(r,e);var t=(0,eK._)(r);function r(){var e;return(0,eH._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eV._)(e),"renderMedal",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var r,n;return(0,eG.jsxs)(e6.Col,{as:"li",children:[(0,eG.jsx)("div",{className:"shadow-lg overflow-hidden rounded-circle m-auto ".concat(eC),children:(0,eG.jsx)(e6.Image,{src:t.avatar,alt:t.name,loading:"lazy",fluid:!0})}),(0,eG.jsxs)("div",{className:"position-relative overflow-hidden ".concat(eU),children:[(0,eG.jsxs)("div",{className:"position-relative",children:[(0,eG.jsx)("i",{className:"d-block overflow-hidden m-auto mb-1 rounded-circle"}),(0,eG.jsx)("a",{className:"d-block mb-0 stretched-link",href:(null===(n=(r=e.props).linkOf)||void 0===n?void 0:n.call(r,t))||"#",children:t.name}),(0,eG.jsx)("strong",{children:t.score})]}),(0,eG.jsx)(rN,Object.assign({},t))]})]},t.id)}}),Object.defineProperty((0,eV._)(e),"renderRow",{enumerable:!0,configurable:!0,writable:!0,value:function(t,r,n){var a,i,o=n.length;return(0,eG.jsxs)("tr",{className:"position-relative",children:[(0,eG.jsx)("td",{className:"align-middle",children:(0,eG.jsx)(e6.Badge,{className:"fw-bold fst-italic",children:(r+4+"").padStart((o+"").length,"0")})}),(0,eG.jsxs)("td",{className:"position-relative mw-50 text-truncate ".concat(eM),children:[(0,eG.jsx)("div",{className:"d-inline-block overflow-hidden align-middle rounded-circle ".concat(eC),children:(0,eG.jsx)(e6.Image,{src:t.avatar,alt:t.name,loading:"lazy",fluid:!0})}),(0,eG.jsx)("a",{className:"ms-2 d-inline-block align-middle stretched-link",style:{color:"rgb(248, ".concat((r+2)*15,", ").concat((r+2)*35,")")},href:(null===(i=(a=e.props).linkOf)||void 0===i?void 0:i.call(a,t))||"#",children:t.name})]}),(0,eG.jsx)("td",{className:"align-middle",children:t.score}),(0,eG.jsx)("td",{className:"align-middle",children:(0,eG.jsx)(rN,Object.assign({},t))})]},t.id)}}),e}return(0,eJ._)(r,[{key:"render",value:function(){var e=this.props,t=e.className,r=e.title,n=e.rank,a=void 0===n?[]:n,i=rS(e,["className","title","rank"]);return(0,eG.jsxs)(e6.Row,Object.assign({className:"".concat(eq," ").concat(void 0===t?"":t)},i,{children:[(0,eG.jsxs)(e6.Col,{sm:12,xs:12,lg:7,children:[(0,eG.jsxs)("div",{className:"shadow rounded-3 ".concat(eW),children:[(0,eG.jsxs)("div",{className:eD,children:[(0,eG.jsx)("i",{className:"d-inline-block ms-1 overflow-hidden rounded-circle"}),(0,eG.jsx)("i",{className:"d-inline-block ms-1 overflow-hidden rounded-circle"}),(0,eG.jsx)("i",{className:"d-inline-block ms-1 overflow-hidden rounded-circle"})]}),(0,eG.jsx)("h3",{"data-text":r,className:"position-relative m-auto mb-0 fw-bold text-center",children:r})]}),(0,eG.jsx)(e6.Row,{as:"ul",className:"mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled ".concat(ez),children:a.slice(0,3).map(this.renderMedal)})]}),(0,eG.jsx)(e6.Col,{xs:12,sm:12,lg:5,children:(0,eG.jsx)(e6.Table,{className:"my-3 pt-2 ".concat(eR),responsive:!0,children:(0,eG.jsx)("tbody",{children:a.slice(3,10).map(this.renderRow)})})})]}))}}]),r}(eX.PureComponent),rE={};tn(rE,"VerticalMarquee",function(){return rC}),eY="QSMqAq_scrollItem",eL="QSMqAq_scrollWrap";var rI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rC=function(e){var t=e.className,r=e.children,n=e.duration,a=rI(e,["className","children","duration"]);return(0,eG.jsx)("div",Object.assign({className:"overflow-hidden ".concat(void 0===t?"":t)},a,{children:(0,eG.jsx)("div",{className:"d-inline-block mw-100 mh-100 ".concat(eL),style:{"--duration":n},children:(0,eG.jsx)("div",{className:"d-inline-block ".concat(eY),children:r})})}))};tr(module.exports,ti),tr(module.exports,tc),tr(module.exports,tu),tr(module.exports,tp),tr(module.exports,th),tr(module.exports,ty),tr(module.exports,t_),tr(module.exports,tC),tr(module.exports,tq),tr(module.exports,tz),tr(module.exports,tA),tr(module.exports,tG),tr(module.exports,t0),tr(module.exports,tF),tr(module.exports,t2),tr(module.exports,re),tr(module.exports,ra),tr(module.exports,rf),tr(module.exports,rh),tr(module.exports,rb),tr(module.exports,rj),tr(module.exports,rP),tr(module.exports,rE);
1
+ var e,t,r,n,a,i,o,c,l,s,u,d,f,p,v,h,m,b,y,g,j,w,O,x,_,P,k,N,S,E,T,I,C,D,M,q,W,R,z,U,Y,L,A,B,G,F,V,H,J,Q,K,X,Z,$,ee,et,er,en,ea,ei,eo,ec,el,es,eu,ed,ef,ep,ev,eh,em,eb,ey,eg,ej,ew,eO,ex,e_,eP,ek,eN,eS,eE,eT,eI,eC,eD,eM,eq,eW,eR,ez,eU,eY,eL,eA,eB,eG,eF,eV,eH=require("@swc/helpers/cjs/_sliced_to_array.cjs"),eJ=require("@swc/helpers/cjs/_to_consumable_array.cjs"),eQ=require("react/jsx-runtime"),eK=require("classnames"),eX=require("@swc/helpers/cjs/_assert_this_initialized.cjs"),eZ=require("@swc/helpers/cjs/_class_call_check.cjs"),e$=require("@swc/helpers/cjs/_create_class.cjs"),e0=require("@swc/helpers/cjs/_inherits.cjs"),e1=require("@swc/helpers/cjs/_create_super.cjs"),e2=require("react"),e3=require("prismjs"),e4=require("react-element-to-jsx-string"),e5=require("@swc/helpers/cjs/_wrap_native_super.cjs"),e7=require("iterable-observer"),e8=require("mobx"),e6=require("mobx-react"),e9=require("@swc/helpers/cjs/_type_of.cjs"),te=require("@swc/helpers/cjs/_ts_generator.cjs"),tt=require("react-editor-js"),tr=require("editorjs-html"),tn=require("react-bootstrap"),ta=require("mobx-react-helper"),ti=require("web-utility"),to=require("html2canvas");function tc(e,t){return Object.keys(t).forEach(function(r){"default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}),e}function tl(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function ts(e){return e&&e.__esModule?e.default:e}var tu={};function td(e){return function(t){return t&&new IntersectionObserver(function(t,r){var n,a,i=(0,eH._)(t,1)[0],o=i.isIntersecting,c=i.target;if(o){var l=["animate__animated","animate__".concat(e)];(n=c.classList).add.apply(n,(0,eJ._)(l)),c.addEventListener("animationend",function(){return(a=c.classList).remove.apply(a,(0,eJ._)(l))},{once:!0}),r.disconnect()}}).observe(t)}}tl(tu,"animate",function(){return td});var tf={};tl(tf,"Avatar",function(){return tv});var tp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tv=function(e){var t=e.className,r=e.style,n=e.size,a=void 0===n?3:n,i=tp(e,["className","style","size"]);return(0,eQ.jsx)("img",Object.assign({className:ts(eK)("object-fit-cover rounded-circle",t),style:Object.assign({width:"".concat(a,"rem"),height:"".concat(a,"rem")},r)},i))};tv.displayName="Avatar";var th={};tl(th,"ClickBoundary",function(){return tb});var tm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tb=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e;return(0,eZ._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eX._)(e),"root",{enumerable:!0,configurable:!0,writable:!0,value:/*#__PURE__*/(0,e2.createRef)()}),Object.defineProperty((0,eX._)(e),"switchClick",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var r,n=e.props,a=n.onInnerClick,i=n.onOuterClick;(null===(r=e.root.current)||void 0===r?void 0:r.contains(t.target))?null==a||a(t):null==i||i(t)}}),e}return(0,e$._)(r,[{key:"componentDidMount",value:function(){window.addEventListener("click",this.switchClick,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.switchClick,!0)}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.onInnerClick,e.onOuterClick,tm(e,["children","onInnerClick","onOuterClick"]));return(0,eQ.jsx)("div",Object.assign({ref:this.root},r,{children:t}))}}]),r}(e2.PureComponent),ty={};function tg(e){var t=e.language,r=e.children,n=(0,e3.highlight)(ts(e4)(/*#__PURE__*/(0,e2.isValidElement)(r)?r:(0,eQ.jsx)(eQ.Fragment,{children:r})),e3.languages[t],t);return(0,eQ.jsx)("pre",{children:(0,eQ.jsx)("code",{dangerouslySetInnerHTML:{__html:n},className:"language-".concat(t)})})}tl(ty,"CodeBlock",function(){return tg});var tj={};tl(tj,"VariantColors",function(){return tw}),tl(tj,"text2color",function(){return tO});var tw=["primary","secondary","success","danger","warning","info","dark","light"];function tO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t[0]?tw.filter(function(e){return!t.find(function(t){return t===e})}):tw;return r[(0,eJ._)(e).reduce(function(e,t){return e+t.charCodeAt(0)},0)%r.length]}var tx={};tl(tx,"DialogClose",function(){return tS}),tl(tx,"Dialog",function(){return tE});var t_=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},tP=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},tk=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tN=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},tS=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Dialog closed";return(0,eZ._)(this,r),t.call(this,e)}return r}((0,e5._)(Error)),tE=(i=[],o=[],c=[],l=[],e=/*#__PURE__*/function(){function e(n){var a=this;(0,eZ._)(this,e),t.set(this,tP(this,i,{})),r.set(this,(tP(this,o),tP(this,c,void 0))),Object.defineProperty(this,"Component",{enumerable:!0,configurable:!0,writable:!0,value:tP(this,l)}),this.Component=(0,e6.observer)(function(e){return(0,eQ.jsx)(n,Object.assign({},e,a.input,{defer:a.defer}))}),this.Component.displayName="DialogComponent"}return(0,e$._)(e,[{key:"input",get:function(){return tk(this,t,"f")},set:function(e){tN(this,t,e,"f")}},{key:"defer",get:function(){return tk(this,r,"f")},set:function(e){tN(this,r,e,"f")}},{key:"open",value:function(e){var t=this;return e&&(this.input=e),this.defer=new e7.Defer,this.defer.promise.finally(function(){return t.defer=void 0}),this.defer.promise}}]),e}(),t=new WeakMap,r=new WeakMap,s="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0,n=[e8.observable],a=[e8.observable],t_(e,null,n,{kind:"accessor",name:"input",static:!1,private:!1,access:{has:function(e){return"input"in e},get:function(e){return e.input},set:function(e,t){e.input=t}},metadata:s},i,o),t_(e,null,a,{kind:"accessor",name:"defer",static:!1,private:!1,access:{has:function(e){return"defer"in e},get:function(e){return e.defer},set:function(e,t){e.defer=t}},metadata:s},c,l),s&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),e),tT={};tl(tT,"Editor",function(){return tR});var tI=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},tC=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},tD=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tM=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},tq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tW=(0,tt.createReactEditorJS)(),tR=(p=[e6.observer],v=[],h=e2.Component,m=[],b=[],f=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e;return(0,eZ._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eX._)(e),"core",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),u.set((0,eX._)(e),tC((0,eX._)(e),m,e.props.defaultValue)),Object.defineProperty((0,eX._)(e),"save",{enumerable:!0,configurable:!0,writable:!0,value:(tC((0,eX._)(e),b),function(){var t,r,n,a;return t=(0,eX._)(e),r=void 0,n=void 0,a=function(){var e,t;return(0,te._)(this,function(r){switch(r.label){case 0:if(!(e=this.core))return[3,2];return t=this,[4,this.core.save()];case 1:e=t.innerValue=r.sent(),r.label=2;case 2:return[2,e]}})},new(n||(n=Promise))(function(e,i){function o(e){try{l(a.next(e))}catch(e){i(e)}}function c(e){try{l(a.throw(e))}catch(e){i(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(o,c)}l((a=a.apply(t,r||[])).next())})})}),e}return(0,e$._)(r,[{key:"innerValue",get:function(){return tD(this,u,"f")},set:function(e){tM(this,u,e,"f")}},{key:"render",value:function(){var e=this,t=this.props,r=t.name,n=t.required,a=(t.children,tq(t,["name","required","children"])),i=this.innerValue;return(0,eQ.jsxs)("div",{className:"form-control",tabIndex:-1,onBlur:this.save,children:[(0,eQ.jsx)("input",{hidden:!0,name:r,required:n,value:JSON.stringify(i)}),(0,eQ.jsx)(tW,Object.assign({},a,{onInitialize:function(t){var r;e.core=t,null===(r=a.onInitialize)||void 0===r||r.call(a,t)}}))]})}}]),r}(h),u=new WeakMap,y=f,g="Editor","symbol"===(0,e9._)(g)&&(g=g.description?"[".concat(g.description,"]"):""),Object.defineProperty(y,"name",{configurable:!0,value:g}),w="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(j=h[Symbol.metadata])&&void 0!==j?j:null):void 0,tI(f,null,[e8.observable],{kind:"accessor",name:"innerValue",static:!1,private:!1,access:{has:function(e){return"innerValue"in e},get:function(e){return e.innerValue},set:function(e,t){e.innerValue=t}},metadata:w},m,b),tI(null,d={value:f},p,{kind:"class",name:f.name,metadata:w},null,v),f=d.value,w&&Object.defineProperty(f,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:w}),Object.defineProperty(f,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"Editor"}),tC(f,v),f),tz={};tl(tz,"parser",function(){return tU}),tl(tz,"EditorHTML",function(){return tY});var tU=ts(tr)({link:function(e){var t=e.data.link;return'<a href="'.concat(t,'">').concat(t,"</a>")}}),tY=function(e){var t=e.className,r=e.data,n=tU.parse(r).join("");return(0,eQ.jsx)("article",{dangerouslySetInnerHTML:{__html:n},className:t})};tY.displayName="EditorHTML";var tL={};tl(tL,"HorizontalMarquee",function(){return tB}),tl(tL,"HorizontalMarqueeBox",function(){return tG}),eC="_4_3lnG_scrollContainer",eD="_4_3lnG_scrollHeightWrap",eM="_4_3lnG_scrollItem",eq="_4_3lnG_scrollWrap",eW="_4_3lnG_unScrollItem";var tA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tB=function(e){var t=e.className,r=e.children,n=e.maxWidth,a=e.duration,i=e.height,o=tA(e,["className","children","maxWidth","duration","height"]);return(0,eQ.jsx)("div",Object.assign({className:"overflow-hidden mw-100 ".concat(void 0===t?"":t)},o,{children:(0,eQ.jsx)("div",{className:"d-inline-block align-top text-nowrap ".concat(eq),style:{maxWidth:void 0===n?"100%":n,animationDuration:a,height:i,lineHeight:i},children:(0,eQ.jsx)("div",{className:"d-inline-block ".concat(eM),style:{animationDuration:a},children:r})})}))},tG=function(e){var t=e.children,r=e.maxWidth,n=e.duration,a=e.height;return a?(0,eQ.jsx)("div",{className:"overflow-hidden ".concat(eD),style:{maxWidth:r,"--scroll-height":a},children:(0,eQ.jsxs)("div",{className:"d-inline-block overflow-hidden mw-100 ".concat(eC),children:[(0,eQ.jsx)("div",{className:"d-block overflow-hidden text-wrap text-break ".concat(eW),children:t}),(0,eQ.jsx)(tB,{duration:n,children:t})]})}):(0,eQ.jsx)(tB,{maxWidth:r,duration:n,height:a,children:t})},tF={};tl(tF,"Icon",function(){return tH});var tV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tH=function(e){var t=e.className,r=e.style,n=e.name,a=e.size,i=tV(e,["className","style","name","size"]);return(0,eQ.jsx)("span",Object.assign({className:ts(eK)("bi-".concat(n),t),style:Object.assign({fontSize:a&&"".concat(a,"rem")},r)},i))};tH.displayName="Icon";var tJ={};tl(tJ,"Loading",function(){return tK});var tQ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tK=function(e){var t=e.className,r=e.children,n=tQ(e,["className","children"]);return(0,eQ.jsxs)("div",Object.assign({className:"fixed-top h-100 w-100 d-flex justify-content-center align-items-center opacity-25 bg-black ".concat(void 0===t?"":t)},n,{children:[(0,eQ.jsx)(tn.Spinner,{animation:"border",variant:"success"}),(0,eQ.jsx)("span",{className:"ml-3 text-white",children:void 0===r?"Loading...":r})]}))};tK.displayName="Loading";var tX={};tl(tX,"MonthCalendar",function(){return t7});var tZ={};tl(tZ,"OverlayBox",function(){return t0});var t$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},t0=function(e){var t=e.title,r=e.detail,n=e.children,a=t$(e,["title","detail","children"]);return(0,eQ.jsx)(tn.OverlayTrigger,Object.assign({},a,{overlay:r?(0,eQ.jsxs)(tn.Popover,{children:[(0,eQ.jsx)(tn.Popover.Header,{children:t}),(0,eQ.jsx)(tn.Popover.Body,{children:r})]}):(0,eQ.jsx)(tn.Tooltip,{children:t}),children:n}))};t0.displayName="OverlayBox";var t1=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},t2=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},t3=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},t4=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},t5=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},t7=(S=[e6.observer,ta.observePropsState],E=[],T=e2.Component,I=[],C=[],D=[],_=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e;return(0,eZ._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),O.set((0,eX._)(e),(t1((0,eX._)(e),I),t1((0,eX._)(e),C,new Date))),Object.defineProperty((0,eX._)(e),"renderDate",{enumerable:!0,configurable:!0,writable:!0,value:(t1((0,eX._)(e),D),function(t){var r=e.observedProps,n=(r.variant,r.value),a=r.onSelect,i=(0,ti.formatDate)(t,"YYYY-MM-DD"),o=null==n?void 0:n.filter(function(e){var t=e.date;return(0,ti.formatDate)(t,"YYYY-MM-DD")===i});return(0,eQ.jsxs)("td",{className:ts(eK)({"opacity-50":t.getMonth()!==e.currentDate.getMonth(),"fw-bold":i===(0,ti.formatDate)(new Date,"YYYY-MM-DD")}),children:[(0,eQ.jsx)("time",{className:"d-block",dateTime:t.toJSON(),children:t.getDate()}),null==o?void 0:o.map(function(e){return"object"==typeof e.content?e.content:(0,eQ.jsx)(t0,{title:e.content,children:(0,eQ.jsx)(tn.Badge,{as:"a",className:"d-inline-block text-decoration-none w-100 text-truncate",bg:tO(e.content+"",["light"]),href:e.link,onClick:function(){return null==a?void 0:a(e)},children:e.content})},e.date+"")})]},t+"")})}),e}return(0,e$._)(r,[{key:"weekFormatter",get:function(){var e,t=this.observedProps.locale,r=void 0===t?null===(e=globalThis.navigator)||void 0===e?void 0:e.language:t;return new Intl.DateTimeFormat(r,{weekday:"long"})}},{key:"currentDate",get:function(){return t3(this,O,"f")},set:function(e){t4(this,O,e,"f")}},{key:"dateGrid",get:function(){var e=new Date(this.currentDate);e.setDate(1),e=new Date(+e-e.getDay()*ti.Day);var t=Array.from(Array(42),function(t,r){return new Date(+e+r*ti.Day)});return(0,ti.splitArray)(t,7)}},{key:"changeMonth",value:function(e){var t,r;this.currentDate=(0,ti.changeMonth)(this.currentDate,e),null===(r=(t=this.props).onChange)||void 0===r||r.call(t,this.currentDate)}},{key:"render",value:function(){var e=this,t=this.weekFormatter,r=this.currentDate,n=this.dateGrid,a=this.observedProps,i=a.style,o=a.variant,c=void 0===o?"primary":o,l=(a.onChange,a.onSelect,t5(a,["style","variant","onChange","onSelect"]));return(0,eQ.jsxs)(tn.Table,Object.assign({},l,{style:Object.assign({tableLayout:"fixed"},i),children:[(0,eQ.jsx)("caption",{children:(0,eQ.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,eQ.jsx)(tn.Button,{variant:c,onClick:function(){return e.changeMonth(-1)},children:"<"}),(0,ti.formatDate)(r,"YYYY-MM"),(0,eQ.jsx)(tn.Button,{variant:c,onClick:function(){return e.changeMonth(1)},children:">"})]})}),(0,eQ.jsx)("thead",{children:(0,eQ.jsx)("tr",{children:n[0].map(function(e,r,n){var a=n.length;return(0,eQ.jsx)("td",{className:"bg-".concat(c," text-white"),style:{width:"calc(100% / ".concat(a,")")},children:t.format(e)},r)})})}),(0,eQ.jsx)("tbody",{children:n.map(function(t){return(0,eQ.jsx)("tr",{children:t.map(e.renderDate)},t[0]+"")})})]}))}}]),r}(T),O=new WeakMap,M=_,q="MonthCalendar","symbol"===(0,e9._)(q)&&(q=q.description?"[".concat(q.description,"]"):""),Object.defineProperty(M,"name",{configurable:!0,value:q}),R="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(W=T[Symbol.metadata])&&void 0!==W?W:null):void 0,P=[e8.computed],k=[e8.observable],N=[e8.computed],t2(_,null,P,{kind:"getter",name:"weekFormatter",static:!1,private:!1,access:{has:function(e){return"weekFormatter"in e},get:function(e){return e.weekFormatter}},metadata:R},null,I),t2(_,null,k,{kind:"accessor",name:"currentDate",static:!1,private:!1,access:{has:function(e){return"currentDate"in e},get:function(e){return e.currentDate},set:function(e,t){e.currentDate=t}},metadata:R},C,D),t2(_,null,N,{kind:"getter",name:"dateGrid",static:!1,private:!1,access:{has:function(e){return"dateGrid"in e},get:function(e){return e.dateGrid}},metadata:R},null,I),t2(null,x={value:_},S,{kind:"class",name:_.name,metadata:R},null,E),_=x.value,R&&Object.defineProperty(_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(_,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"MonthCalendar"}),t1(_,E),_),t8={};tl(t8,"Nameplate",function(){return t6});var t6=function(e){var t=e.avatar,r=e.name;return(0,eQ.jsxs)(eQ.Fragment,{children:[(0,eQ.jsx)(tv,{size:2,style:{marginRight:"0.5rem"},src:t}),(0,eQ.jsx)("span",{className:"align-middle",children:r})]})};t6.displayName="Nameplate";var t9={};tl(t9,"PageNav",function(){return ro});var re=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},rt=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},rr=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},rn=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},ra=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ri=Array.from(Array(6),function(e,t){return"h".concat(++t)})+"",ro=(F=[e6.observer],V=[],H=e2.Component,J=[],Q=[],K=[],X=[],Z=[],L=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e;return(0,eZ._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),z.set((0,eX._)(e),(re((0,eX._)(e),J),re((0,eX._)(e),Q,[]))),U.set((0,eX._)(e),(re((0,eX._)(e),K),re((0,eX._)(e),X,0))),Object.defineProperty((0,eX._)(e),"updateScrollY",{enumerable:!0,configurable:!0,writable:!0,value:(re((0,eX._)(e),Z),function(){return e.scrollY=window.scrollY})}),Object.defineProperty((0,eX._)(e),"scrollTo",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return function(){var r,n;setTimeout(function(){return(0,ti.scrollTo)('[id="'.concat(t.id,'"]'))}),null===(n=(r=e.props).onItemClick)||void 0===n||n.call(r,t)}}}),Object.defineProperty((0,eX._)(e),"renderLink",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var r=t.id,n=t.level,a=t.text,i=t.top,o=(0,eX._)(e).currentActiveId,c=e.props.depth;return n<=(void 0===c?1/0:c)&&(0,eQ.jsx)(tn.Nav.Item,{style:{textIndent:"".concat(n-1,"rem")},children:(0,eQ.jsx)(tn.Nav.Link,{href:"#".concat(r),active:o===r,onClick:e.scrollTo({id:r,level:n,text:a,top:i}),children:a})},r)}}),e}return(0,e$._)(r,[{key:"list",get:function(){return rr(this,z,"f")},set:function(e){rn(this,z,e,"f")}},{key:"scrollY",get:function(){return rr(this,U,"f")},set:function(e){rn(this,U,e,"f")}},{key:"currentActiveId",get:function(){var e,t=this.list,r=this.scrollY,n=t.findIndex(function(e){return e.top>r});return null===(e=t[n-1])||void 0===e?void 0:e.id}},{key:"componentDidMount",value:function(){globalThis.document&&(window.addEventListener("scroll",this.updateScrollY),this.list=Array.from(document.querySelectorAll(ri),function(e){e.id||(e.id=(0,ti.uniqueID)());var t=e.id,r=e.tagName,n=e.textContent,a=e.offsetTop;return{id:t,level:+r[1],text:n.trim(),top:a}}))}},{key:"componentWillUnmount",value:function(){var e;null===(e=globalThis.removeEventListener)||void 0===e||e.call(globalThis,"scroll",this.updateScrollY)}},{key:"render",value:function(){var e=this.list,t=this.props,r=t.style,n=t.variant,a=ra(t,["style","variant"]);return(0,eQ.jsx)(tn.Nav,Object.assign({},a,{variant:void 0===n?"underline":n,style:Object.assign({flexDirection:"column"},r),children:e.map(this.renderLink)}))}}]),r}(H),z=new WeakMap,U=new WeakMap,$=L,ee="PageNav","symbol"===(0,e9._)(ee)&&(ee=ee.description?"[".concat(ee.description,"]"):""),Object.defineProperty($,"name",{configurable:!0,value:ee}),er="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(et=H[Symbol.metadata])&&void 0!==et?et:null):void 0,A=[e8.observable],B=[e8.observable],G=[e8.computed],rt(L,null,A,{kind:"accessor",name:"list",static:!1,private:!1,access:{has:function(e){return"list"in e},get:function(e){return e.list},set:function(e,t){e.list=t}},metadata:er},Q,K),rt(L,null,B,{kind:"accessor",name:"scrollY",static:!1,private:!1,access:{has:function(e){return"scrollY"in e},get:function(e){return e.scrollY},set:function(e,t){e.scrollY=t}},metadata:er},X,Z),rt(L,null,G,{kind:"getter",name:"currentActiveId",static:!1,private:!1,access:{has:function(e){return"currentActiveId"in e},get:function(e){return e.currentActiveId}},metadata:er},null,J),rt(null,Y={value:L},F,{kind:"class",name:L.name,metadata:er},null,V),L=Y.value,er&&Object.defineProperty(L,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:er}),Object.defineProperty(L,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"PageNav"}),re(L,V),L),rc={};tl(rc,"Option",function(){return rs}),tl(rc,"Select",function(){return ru});var rl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rs=function(e){var t=e.value,r=e.children,n=rl(e,["value","children"]);return(0,eQ.jsx)(tn.Dropdown.Item,Object.assign({},n,{"data-value":t,children:r}))};rs.displayName="Option";var ru=function(e){var t=e.className,r=e.style,n=e.variant,a=e.menuVariant,i=e.children,o=e.value,c=e.onChange,l=e.valueRender,s=(0,ti.makeArray)(i).flat(1/0).find(function(e){return/*#__PURE__*/(0,e2.isValidElement)(e)&&e.type===rs&&e.props.value===o});return(0,eQ.jsxs)(tn.Dropdown,{onClick:function(e){var t=e.target.closest(".dropdown-item");if(t){var r=t.dataset.value;null==c||c(r)}},children:[(0,eQ.jsx)(tn.Dropdown.Toggle,{className:ts(eK)("w-100","d-flex","justify-content-between","align-items-center",!n&&"bg-white text-dark",t),style:r,variant:n,children:(null==l?void 0:l(o))||(0,eQ.jsx)("div",{className:null==s?void 0:s.props.className,children:null==s?void 0:s.props.children})}),(0,eQ.jsx)(tn.Dropdown.Menu,{variant:a,children:i})]})};ru.displayName="Select";var rd={};tl(rd,"elementToImage",function(){return ry}),tl(rd,"ShareBox",function(){return rg});var rf=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},rp=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},rv=function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function c(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,c)}l((n=n.apply(e,t||[])).next())})},rh=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},rm=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},rb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function ry(e,t,r){return rv(this,void 0,void 0,function(){var n;return(0,te._)(this,function(a){switch(a.label){case 0:return[4,ts(to)(e,{useCORS:!0})];case 1:return n=a.sent(),[2,new Promise(function(e,a){return n.toBlob(function(t){return t?e(URL.createObjectURL(t)):a()},t,r)})]}})})}var rg=(es=[e6.observer],eu=[],ed=e2.Component,ef=[],ep=[],ev=[],eh=[],eo=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e;return(0,eZ._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eX._)(e),"root",{enumerable:!0,configurable:!0,writable:!0,value:/*#__PURE__*/(0,e2.createRef)()}),en.set((0,eX._)(e),rp((0,eX._)(e),ef,!1)),ea.set((0,eX._)(e),(rp((0,eX._)(e),ep),rp((0,eX._)(e),ev,""))),Object.defineProperty((0,eX._)(e),"generateImage",{enumerable:!0,configurable:!0,writable:!0,value:(rp((0,eX._)(e),eh),function(){return rv((0,eX._)(e),void 0,void 0,function(){var e;return(0,te._)(this,function(t){switch(t.label){case 0:return this.imageURI&&(URL.revokeObjectURL(this.imageURI),this.imageURI=""),this.loading=!0,e=this,[4,ry(this.root.current)];case 1:return e.imageURI=t.sent(),this.loading=!1,[2]}})})})}),Object.defineProperty((0,eX._)(e),"share",{enumerable:!0,configurable:!0,writable:!0,value:function(t){return rv((0,eX._)(e),void 0,void 0,function(){var e,r,n;return(0,te._)(this,function(a){switch(a.label){case 0:return t.stopPropagation(),[4,(0,ti.blobOf)(this.imageURI)];case 1:return n=new File([r=a.sent()],"".concat(this.props.title,".png"),{type:r.type}),[4,null===(e=navigator.share)||void 0===e?void 0:e.call(navigator,Object.assign({files:[n]},this.props))];case 2:return a.sent(),[2]}})})}}),e}return(0,e$._)(r,[{key:"loading",get:function(){return rh(this,en,"f")},set:function(e){rm(this,en,e,"f")}},{key:"imageURI",get:function(){return rh(this,ea,"f")},set:function(e){rm(this,ea,e,"f")}},{key:"componentDidMount",value:function(){var e;null===(e=globalThis.addEventListener)||void 0===e||e.call(globalThis,"resize",this.generateImage)}},{key:"componentWillUnmount",value:function(){var e;null===(e=globalThis.removeEventListener)||void 0===e||e.call(globalThis,"resize",this.generateImage)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.children,n=rb(e,["className","children"]),a=this.loading,i=this.imageURI;return(0,eQ.jsxs)(eQ.Fragment,{children:[a&&(0,eQ.jsx)(tK,{}),(0,eQ.jsxs)("div",Object.assign({},n,{ref:this.root,className:"position-relative ".concat(void 0===t?"":t),onMouseEnter:i?void 0:this.generateImage,onTouchStart:i?void 0:this.generateImage,children:[r,i&&(0,eQ.jsx)(tn.Image,{className:"position-absolute start-0 top-0 w-100 h-100",src:i,alt:"Share Image",fluid:!0,onClick:this.share})]}))]})}}]),r}(ed),en=new WeakMap,ea=new WeakMap,em=eo,eb="ShareBox","symbol"===(0,e9._)(eb)&&(eb=eb.description?"[".concat(eb.description,"]"):""),Object.defineProperty(em,"name",{configurable:!0,value:eb}),eg="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(ey=ed[Symbol.metadata])&&void 0!==ey?ey:null):void 0,ec=[e8.observable],el=[e8.observable],rf(eo,null,ec,{kind:"accessor",name:"loading",static:!1,private:!1,access:{has:function(e){return"loading"in e},get:function(e){return e.loading},set:function(e,t){e.loading=t}},metadata:eg},ef,ep),rf(eo,null,el,{kind:"accessor",name:"imageURI",static:!1,private:!1,access:{has:function(e){return"imageURI"in e},get:function(e){return e.imageURI},set:function(e,t){e.imageURI=t}},metadata:eg},ev,eh),rf(null,ei={value:eo},es,{kind:"class",name:eo.name,metadata:eg},null,eu),eo=ei.value,eg&&Object.defineProperty(eo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:eg}),Object.defineProperty(eo,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"ShareBox"}),rp(eo,eu),eo),rj={};tl(rj,"SpinnerButton",function(){return rO});var rw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rO=function(e){var t=e.animation,r=e.loading,n=e.disabled,a=e.children,i=rw(e,["animation","loading","disabled","children"]);return(0,eQ.jsxs)(tn.Button,Object.assign({},i,{disabled:r||n,children:[r&&(0,eQ.jsxs)(eQ.Fragment,{children:[(0,eQ.jsx)(tn.Spinner,{as:"span",className:a?"me-2":"",size:"sm",animation:t,role:"status","aria-hidden":"true"}),!a&&(0,eQ.jsx)("span",{className:"visually-hidden",children:"Loading..."})]}),a]}))};rO.displayName="SpinnerButton";var rx={};tl(rx,"TableSpinner",function(){return rP});var r_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rP=function(e){var t=e.animation,r=e.variant,n=e.size,a=e.colSpan,i=r_(e,["animation","variant","size","colSpan"]);return(0,eQ.jsx)("tr",Object.assign({},i,{children:(0,eQ.jsx)("td",{className:"text-center p-4",colSpan:a,children:(0,eQ.jsx)(tn.Spinner,{animation:void 0===t?"border":t,variant:void 0===r?"primary":r,size:n})})}))};rP.displayName="TableSpinner";var rk={};tl(rk,"TimeDistance",function(){return rE});var rN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rS={ms:"millisecond(s)",s:"second(s)",m:"minute(s)",H:"hour(s)",D:"day(s)",W:"week(s)",M:"month(s)",Y:"year(s)"},rE=function(e){var t=e.date,r=e.unitWords,n=void 0===r?rS:r,a=e.beforeWord,i=e.afterWord,o=rN(e,["date","unitWords","beforeWord","afterWord"]);t=new Date(t);var c=(0,ti.diffTime)(t),l=c.distance,s=c.unit;return(0,eQ.jsxs)("time",Object.assign({},o,{dateTime:t.toJSON(),title:t.toLocaleString(),children:[Math.abs(l)," ",n[s],l<0?void 0===a?" before":a:void 0===i?" after":i]}))};rE.displayName="TimeDistance";var rT={};tl(rT,"TypeEcho",function(){return rW});var rI=function(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(c=o(m.get))&&(d.get=c),(c=o(m.set))&&(d.set=c),(c=o(m.init))&&a.unshift(c)}else(c=o(m))&&("field"===l?a.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0},rC=function(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},rD=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},rM=function(e,t,r,n,a){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r},rq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rW=(ex=[e6.observer],e_=[],eP=e2.Component,ek=[],eN=[],eO=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e;return(0,eZ._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),ej.set((0,eX._)(e),rC((0,eX._)(e),ek,"")),Object.defineProperty((0,eX._)(e),"init",{enumerable:!0,configurable:!0,writable:!0,value:(rC((0,eX._)(e),eN),function(t){return t&&new IntersectionObserver(function(t,r){var n,a,i;return n=[t,r],a=void 0,i=function(e,t){var r,n,a,i,o,c,l,s,u,d,f;return(0,te._)(this,function(p){switch(p.label){case 0:if(!(0,eH._)(e,1)[0].isIntersecting)return[2];t.disconnect(),n=(r=this.props).text,i=void 0===(a=r.intervals)?150:a,o=!0,c=!1,l=void 0,p.label=1;case 1:p.trys.push([1,6,7,8]),s=n[Symbol.iterator](),p.label=2;case 2:if(o=(u=s.next()).done)return[3,5];return d=u.value,[4,(0,ti.sleep)(i/1e3)];case 3:p.sent(),this.echoed+=d,p.label=4;case 4:return o=!0,[3,2];case 5:return[3,8];case 6:return f=p.sent(),c=!0,l=f,[3,8];case 7:try{o||null==s.return||s.return()}finally{if(c)throw l}return[7];case 8:return[2]}})},new(a||(a=Promise))(function(t,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function c(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var r;e.done?t(e.value):((r=e.value)instanceof a?r:new a(function(e){e(r)})).then(o,c)}l((i=i.apply(e,n||[])).next())})}).observe(t)})}),e}return(0,e$._)(r,[{key:"echoed",get:function(){return rD(this,ej,"f")},set:function(e){rM(this,ej,e,"f")}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.text,n=rq(e,["className","text"]),a=this.echoed;return(0,eQ.jsx)("pre",Object.assign({},n,{ref:this.init,className:ts(eK)("text-wrap",t),children:a+(a===r?"":"_")}))}}]),r}(eP),ej=new WeakMap,eS=eO,eE="TypeEcho","symbol"===(0,e9._)(eE)&&(eE=eE.description?"[".concat(eE.description,"]"):""),Object.defineProperty(eS,"name",{configurable:!0,value:eE}),eI="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(eT=eP[Symbol.metadata])&&void 0!==eT?eT:null):void 0,rI(eO,null,[e8.observable],{kind:"accessor",name:"echoed",static:!1,private:!1,access:{has:function(e){return"echoed"in e},get:function(e){return e.echoed},set:function(e,t){e.echoed=t}},metadata:eI},ek,eN),rI(null,ew={value:eO},ex,{kind:"class",name:eO.name,metadata:eI},null,e_),eO=ew.value,eI&&Object.defineProperty(eO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:eI}),Object.defineProperty(eO,"displayName",{enumerable:!0,configurable:!0,writable:!0,value:"TypeEcho"}),rC(eO,e_),eO),rR={};tl(rR,"UserRankView",function(){return rY});var rz=function(e){var t=e.email,r=e.website;return(0,eQ.jsxs)("address",{className:"mb-0 d-flex justify-content-around gap-2",children:[t&&(0,eQ.jsx)("a",{rel:"noreferrer",target:"_blank",href:"mailto:"+t,children:(0,eQ.jsx)(tH,{name:"envelope"})}),r&&(0,eQ.jsx)("a",{rel:"noreferrer",target:"_blank",href:r,children:(0,eQ.jsx)(tH,{name:"globe2"})})]})};eR="WavURG_image",ez="WavURG_medal",eU="WavURG_name",eY="WavURG_rankBox",eL="WavURG_restUsers",eA="WavURG_title",eB="WavURG_topUser",eG="WavURG_topUsers";var rU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rY=/*#__PURE__*/function(e){(0,e0._)(r,e);var t=(0,e1._)(r);function r(){var e;return(0,eZ._)(this,r),e=t.call.apply(t,[this].concat(Array.prototype.slice.call(arguments))),Object.defineProperty((0,eX._)(e),"renderMedal",{enumerable:!0,configurable:!0,writable:!0,value:function(t){var r,n;return(0,eQ.jsxs)(tn.Col,{as:"li",children:[(0,eQ.jsx)("div",{className:"shadow-lg overflow-hidden rounded-circle m-auto ".concat(eR),children:(0,eQ.jsx)(tn.Image,{src:t.avatar,alt:t.name,loading:"lazy",fluid:!0})}),(0,eQ.jsxs)("div",{className:"position-relative overflow-hidden ".concat(eB),children:[(0,eQ.jsxs)("div",{className:"position-relative",children:[(0,eQ.jsx)("i",{className:"d-block overflow-hidden m-auto mb-1 rounded-circle"}),(0,eQ.jsx)("a",{className:"d-block mb-0 stretched-link",href:(null===(n=(r=e.props).linkOf)||void 0===n?void 0:n.call(r,t))||"#",children:t.name}),(0,eQ.jsx)("strong",{children:t.score})]}),(0,eQ.jsx)(rz,Object.assign({},t))]})]},t.id)}}),Object.defineProperty((0,eX._)(e),"renderRow",{enumerable:!0,configurable:!0,writable:!0,value:function(t,r,n){var a,i,o=n.length;return(0,eQ.jsxs)("tr",{className:"position-relative",children:[(0,eQ.jsx)("td",{className:"align-middle",children:(0,eQ.jsx)(tn.Badge,{className:"fw-bold fst-italic",children:(r+4+"").padStart((o+"").length,"0")})}),(0,eQ.jsxs)("td",{className:"position-relative mw-50 text-truncate ".concat(eU),children:[(0,eQ.jsx)("div",{className:"d-inline-block overflow-hidden align-middle rounded-circle ".concat(eR),children:(0,eQ.jsx)(tn.Image,{src:t.avatar,alt:t.name,loading:"lazy",fluid:!0})}),(0,eQ.jsx)("a",{className:"ms-2 d-inline-block align-middle stretched-link",style:{color:"rgb(248, ".concat((r+2)*15,", ").concat((r+2)*35,")")},href:(null===(i=(a=e.props).linkOf)||void 0===i?void 0:i.call(a,t))||"#",children:t.name})]}),(0,eQ.jsx)("td",{className:"align-middle",children:t.score}),(0,eQ.jsx)("td",{className:"align-middle",children:(0,eQ.jsx)(rz,Object.assign({},t))})]},t.id)}}),e}return(0,e$._)(r,[{key:"render",value:function(){var e=this.props,t=e.className,r=e.title,n=e.rank,a=void 0===n?[]:n,i=rU(e,["className","title","rank"]);return(0,eQ.jsxs)(tn.Row,Object.assign({className:"".concat(eY," ").concat(void 0===t?"":t)},i,{children:[(0,eQ.jsxs)(tn.Col,{sm:12,xs:12,lg:7,children:[(0,eQ.jsxs)("div",{className:"shadow rounded-3 ".concat(eA),children:[(0,eQ.jsxs)("div",{className:ez,children:[(0,eQ.jsx)("i",{className:"d-inline-block ms-1 overflow-hidden rounded-circle"}),(0,eQ.jsx)("i",{className:"d-inline-block ms-1 overflow-hidden rounded-circle"}),(0,eQ.jsx)("i",{className:"d-inline-block ms-1 overflow-hidden rounded-circle"})]}),(0,eQ.jsx)("h3",{"data-text":r,className:"position-relative m-auto mb-0 fw-bold text-center",children:r})]}),(0,eQ.jsx)(tn.Row,{as:"ul",className:"mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled ".concat(eG),children:a.slice(0,3).map(this.renderMedal)})]}),(0,eQ.jsx)(tn.Col,{xs:12,sm:12,lg:5,children:(0,eQ.jsx)(tn.Table,{className:"my-3 pt-2 ".concat(eL),responsive:!0,children:(0,eQ.jsx)("tbody",{children:a.slice(3,10).map(this.renderRow)})})})]}))}}]),r}(e2.PureComponent),rL={};tl(rL,"VerticalMarquee",function(){return rB}),eF="QSMqAq_scrollItem",eV="QSMqAq_scrollWrap";var rA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rB=function(e){var t=e.className,r=e.children,n=e.duration,a=rA(e,["className","children","duration"]);return(0,eQ.jsx)("div",Object.assign({className:"overflow-hidden ".concat(void 0===t?"":t)},a,{children:(0,eQ.jsx)("div",{className:"d-inline-block mw-100 mh-100 ".concat(eV),style:{"--duration":n},children:(0,eQ.jsx)("div",{className:"d-inline-block ".concat(eF),children:r})})}))};tc(module.exports,tu),tc(module.exports,tf),tc(module.exports,th),tc(module.exports,ty),tc(module.exports,tj),tc(module.exports,tx),tc(module.exports,tT),tc(module.exports,tz),tc(module.exports,tL),tc(module.exports,tF),tc(module.exports,tJ),tc(module.exports,tX),tc(module.exports,t8),tc(module.exports,tZ),tc(module.exports,t9),tc(module.exports,rc),tc(module.exports,rd),tc(module.exports,rj),tc(module.exports,rx),tc(module.exports,rk),tc(module.exports,rT),tc(module.exports,rR),tc(module.exports,rL);
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-react",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0-rc.7",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "author": "shiy2008@gmail.com",
6
6
  "description": "A React advanced components library based on TypeScript & Bootstrap, built by idea2app remote developers team.",
@@ -47,8 +47,8 @@
47
47
  "devDependencies": {
48
48
  "@babel/plugin-proposal-decorators": "^7.25.7",
49
49
  "@babel/preset-typescript": "^7.25.7",
50
- "@eslint/compat": "^1.2.0",
51
- "@eslint/js": "^9.12.0",
50
+ "@eslint/compat": "^1.2.1",
51
+ "@eslint/js": "^9.13.0",
52
52
  "@microsoft/api-extractor": "^7.47.11",
53
53
  "@parcel/config-default": "~2.12.0",
54
54
  "@parcel/packager-ts": "~2.12.0",
@@ -65,13 +65,13 @@
65
65
  "@storybook/react": "^7.6.20",
66
66
  "@storybook/react-vite": "^7.6.20",
67
67
  "@storybook/testing-library": "^0.2.2",
68
- "@types/lodash": "^4.17.10",
69
- "@types/node": "^20.16.12",
68
+ "@types/lodash": "^4.17.12",
69
+ "@types/node": "^20.16.13",
70
70
  "@types/prismjs": "^1.26.4",
71
71
  "@types/react": "^18.3.11",
72
72
  "@types/react-dom": "^18.3.1",
73
73
  "@vitejs/plugin-react": "^4.3.2",
74
- "eslint": "^9.12.0",
74
+ "eslint": "^9.13.0",
75
75
  "eslint-config-prettier": "^9.1.0",
76
76
  "eslint-plugin-react": "^7.37.1",
77
77
  "eslint-plugin-simple-import-sort": "^12.1.1",
package/source/Dialog.tsx CHANGED
@@ -13,18 +13,25 @@ export interface DialogProps<T = any> {
13
13
  defer?: Defer<T>;
14
14
  }
15
15
 
16
- export class Dialog<T = any> {
16
+ export class Dialog<I extends object = {}, O = any> {
17
17
  @observable
18
- accessor defer: Defer<T> | undefined;
18
+ accessor input = {} as I;
19
19
 
20
- Component: FC;
20
+ @observable
21
+ accessor defer: Defer<O> | undefined;
22
+
23
+ Component: FC<I>;
21
24
 
22
- constructor(Factory: FC<DialogProps<T>>) {
23
- this.Component = observer(() => <Factory defer={this.defer} />);
25
+ constructor(Factory: FC<I & DialogProps<O>>) {
26
+ this.Component = observer(props => (
27
+ <Factory {...props} {...this.input} defer={this.defer} />
28
+ ));
24
29
  this.Component.displayName = 'DialogComponent';
25
30
  }
26
31
 
27
- open() {
32
+ open(input?: I) {
33
+ if (input) this.input = input;
34
+
28
35
  this.defer = new Defer();
29
36
 
30
37
  this.defer.promise.finally(() => (this.defer = undefined));
package/source/Editor.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import { EditorCore, WrapperProps } from '@react-editor-js/core';
2
2
  import { observable } from 'mobx';
3
3
  import { observer } from 'mobx-react';
4
- import { InputHTMLAttributes, PropsWithoutRef, PureComponent } from 'react';
4
+ import { Component, InputHTMLAttributes, PropsWithoutRef } from 'react';
5
5
  import { createReactEditorJS } from 'react-editor-js';
6
6
 
7
7
  const ReactEditorJS = createReactEditorJS();
@@ -12,7 +12,7 @@ export type EditorProps = PropsWithoutRef<
12
12
  >;
13
13
 
14
14
  @observer
15
- export class Editor extends PureComponent<EditorProps> {
15
+ export class Editor extends Component<EditorProps> {
16
16
  static displayName = 'Editor';
17
17
 
18
18
  private core?: EditorCore;
@@ -1,11 +1,19 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { FC, HTMLAttributes } from 'react';
2
2
  import { Spinner } from 'react-bootstrap';
3
3
 
4
- export type LoadingProps = PropsWithChildren<{}>;
4
+ export type LoadingProps = HTMLAttributes<HTMLDivElement>;
5
5
 
6
- export const Loading: FC<LoadingProps> = ({ children = 'Loading...' }) => (
7
- <div className="fixed-top h-100 w-100 d-flex justify-content-center align-items-center opacity-25 bg-black">
6
+ export const Loading: FC<LoadingProps> = ({
7
+ className = '',
8
+ children = 'Loading...',
9
+ ...props
10
+ }) => (
11
+ <div
12
+ className={`fixed-top h-100 w-100 d-flex justify-content-center align-items-center opacity-25 bg-black ${className}`}
13
+ {...props}
14
+ >
8
15
  <Spinner animation="border" variant="success" />
16
+
9
17
  <span className="ml-3 text-white">{children}</span>
10
18
  </div>
11
19
  );
@@ -1,6 +1,6 @@
1
1
  import { computed, observable } from 'mobx';
2
2
  import { observer } from 'mobx-react';
3
- import { PureComponent } from 'react';
3
+ import { Component } from 'react';
4
4
  import { Nav, NavProps } from 'react-bootstrap';
5
5
  import { scrollTo, uniqueID } from 'web-utility';
6
6
 
@@ -16,7 +16,7 @@ export interface PageNavProps extends NavProps {
16
16
  }
17
17
 
18
18
  @observer
19
- export class PageNav extends PureComponent<PageNavProps> {
19
+ export class PageNav extends Component<PageNavProps> {
20
20
  static displayName = 'PageNav';
21
21
 
22
22
  @observable
package/source/Select.tsx CHANGED
@@ -1,20 +1,15 @@
1
1
  import classNames from 'classnames';
2
+ import { FC, isValidElement, ReactElement, ReactNode } from 'react';
2
3
  import {
3
- CSSProperties,
4
- FC,
5
- isValidElement,
6
- PropsWithChildren,
7
- ReactElement,
8
- ReactNode
9
- } from 'react';
10
- import { Dropdown, DropdownButtonProps } from 'react-bootstrap';
4
+ Dropdown,
5
+ DropdownButtonProps,
6
+ DropdownItemProps
7
+ } from 'react-bootstrap';
11
8
  import { makeArray } from 'web-utility';
12
9
 
13
- export type OptionProps = PropsWithChildren<{
14
- className?: string;
15
- style?: CSSProperties;
10
+ export interface OptionProps extends DropdownItemProps {
16
11
  value?: string;
17
- }>;
12
+ }
18
13
 
19
14
  export const Option: FC<OptionProps> = ({ value, children, ...props }) => (
20
15
  <Dropdown.Item {...props} data-value={value}>
@@ -25,7 +20,7 @@ export const Option: FC<OptionProps> = ({ value, children, ...props }) => (
25
20
  Option.displayName = 'Option';
26
21
 
27
22
  export interface SelectProps
28
- extends OptionProps,
23
+ extends Omit<OptionProps, 'onChange'>,
29
24
  Pick<DropdownButtonProps, 'variant' | 'menuVariant'> {
30
25
  onChange?: (value: string) => any;
31
26
  valueRender?: (value: string) => ReactNode;
@@ -1,7 +1,7 @@
1
1
  import html2canvas from 'html2canvas';
2
2
  import { observable } from 'mobx';
3
3
  import { observer } from 'mobx-react';
4
- import { createRef, MouseEvent, PropsWithChildren, PureComponent } from 'react';
4
+ import { Component, createRef, HTMLAttributes, MouseEvent } from 'react';
5
5
  import { Image } from 'react-bootstrap';
6
6
  import { blobOf } from 'web-utility';
7
7
 
@@ -23,10 +23,10 @@ export async function elementToImage(
23
23
  );
24
24
  }
25
25
 
26
- export type ShareBoxProps = PropsWithChildren<ShareData>;
26
+ export type ShareBoxProps = HTMLAttributes<HTMLDivElement> & ShareData;
27
27
 
28
28
  @observer
29
- export class ShareBox extends PureComponent<ShareBoxProps> {
29
+ export class ShareBox extends Component<ShareBoxProps> {
30
30
  static displayName = 'ShareBox';
31
31
 
32
32
  root = createRef<HTMLDivElement>();
@@ -67,7 +67,7 @@ export class ShareBox extends PureComponent<ShareBoxProps> {
67
67
  };
68
68
 
69
69
  render() {
70
- const { children } = this.props,
70
+ const { className = '', children, ...props } = this.props,
71
71
  { loading, imageURI } = this;
72
72
 
73
73
  return (
@@ -75,8 +75,9 @@ export class ShareBox extends PureComponent<ShareBoxProps> {
75
75
  {loading && <Loading />}
76
76
 
77
77
  <div
78
+ {...props}
78
79
  ref={this.root}
79
- className="position-relative"
80
+ className={`position-relative ${className}`}
80
81
  onMouseEnter={imageURI ? undefined : this.generateImage}
81
82
  onTouchStart={imageURI ? undefined : this.generateImage}
82
83
  >
@@ -1,12 +1,22 @@
1
- import { FC, PropsWithoutRef } from 'react';
2
- import { Spinner } from 'react-bootstrap';
1
+ import { FC, HTMLAttributes } from 'react';
2
+ import { Spinner, SpinnerProps } from 'react-bootstrap';
3
3
 
4
- export type TableSpinnerProps = PropsWithoutRef<{ colSpan: number }>;
4
+ export interface TableSpinnerProps
5
+ extends HTMLAttributes<HTMLTableRowElement>,
6
+ Pick<SpinnerProps, 'animation' | 'variant' | 'size'> {
7
+ colSpan: number;
8
+ }
5
9
 
6
- export const TableSpinner: FC<TableSpinnerProps> = ({ colSpan }) => (
7
- <tr>
10
+ export const TableSpinner: FC<TableSpinnerProps> = ({
11
+ animation = 'border',
12
+ variant = 'primary',
13
+ size,
14
+ colSpan,
15
+ ...props
16
+ }) => (
17
+ <tr {...props}>
8
18
  <td className="text-center p-4" colSpan={colSpan}>
9
- <Spinner animation="border" variant="primary" />
19
+ <Spinner {...{ animation, variant, size }} />
10
20
  </td>
11
21
  </tr>
12
22
  );
@@ -1,13 +1,12 @@
1
- import { FC, PropsWithoutRef } from 'react';
1
+ import { FC, HTMLAttributes } from 'react';
2
2
  import { diffTime, TimeData } from 'web-utility';
3
3
 
4
- export type TimeDistanceProps = PropsWithoutRef<{
5
- className?: string;
4
+ export interface TimeDistanceProps extends HTMLAttributes<HTMLTimeElement> {
6
5
  date: TimeData;
7
6
  unitWords?: Record<string, string>;
8
7
  beforeWord?: string;
9
8
  afterWord?: string;
10
- }>;
9
+ }
11
10
 
12
11
  const UnitWords = {
13
12
  ms: 'millisecond(s)',
@@ -21,22 +20,18 @@ const UnitWords = {
21
20
  };
22
21
 
23
22
  export const TimeDistance: FC<TimeDistanceProps> = ({
24
- className,
25
23
  date,
26
24
  unitWords = UnitWords,
27
25
  beforeWord = ' before',
28
- afterWord = ' after'
26
+ afterWord = ' after',
27
+ ...props
29
28
  }) => {
30
29
  date = new Date(date);
31
30
 
32
31
  const { distance, unit } = diffTime(date);
33
32
 
34
33
  return (
35
- <time
36
- className={className}
37
- dateTime={date.toJSON()}
38
- title={date.toLocaleString()}
39
- >
34
+ <time {...props} dateTime={date.toJSON()} title={date.toLocaleString()}>
40
35
  {Math.abs(distance)} {unitWords[unit]}
41
36
  {distance < 0 ? beforeWord : afterWord}
42
37
  </time>
@@ -1,17 +1,16 @@
1
1
  import classNames from 'classnames';
2
2
  import { observable } from 'mobx';
3
3
  import { observer } from 'mobx-react';
4
- import { PropsWithoutRef, PureComponent, RefCallback } from 'react';
4
+ import { Component, HTMLAttributes, RefCallback } from 'react';
5
5
  import { sleep } from 'web-utility';
6
6
 
7
- export type TypeEchoProps = PropsWithoutRef<{
8
- className?: string;
7
+ export interface TypeEchoProps extends HTMLAttributes<HTMLPreElement> {
9
8
  text: string;
10
9
  intervals?: number;
11
- }>;
10
+ }
12
11
 
13
12
  @observer
14
- export class TypeEcho extends PureComponent<TypeEchoProps> {
13
+ export class TypeEcho extends Component<TypeEchoProps> {
15
14
  static displayName = 'TypeEcho';
16
15
 
17
16
  @observable
@@ -34,11 +33,15 @@ export class TypeEcho extends PureComponent<TypeEchoProps> {
34
33
  }).observe(node);
35
34
 
36
35
  render() {
37
- const { className, text } = this.props,
36
+ const { className, text, ...props } = this.props,
38
37
  { echoed } = this;
39
38
 
40
39
  return (
41
- <pre ref={this.init} className={classNames('text-wrap', className)}>
40
+ <pre
41
+ {...props}
42
+ ref={this.init}
43
+ className={classNames('text-wrap', className)}
44
+ >
42
45
  {echoed + (echoed === text ? '' : '_')}
43
46
  </pre>
44
47
  );