pesona-ui 0.1.38 → 0.1.39

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
@@ -276,7 +276,7 @@ export declare const InputDate: default_2.ForwardRefExoticComponent<InputDatePro
276
276
 
277
277
  declare interface InputDateProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
278
278
  name: string;
279
- label: string;
279
+ label?: string;
280
280
  message?: string;
281
281
  floatingLabel?: boolean;
282
282
  full?: boolean;
@@ -335,7 +335,7 @@ export declare const InputTime: default_2.ForwardRefExoticComponent<InputTimePro
335
335
 
336
336
  declare interface InputTimeProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
337
337
  name: string;
338
- label: string;
338
+ label?: string;
339
339
  message?: string;
340
340
  floatingLabel?: boolean;
341
341
  format24?: boolean;
@@ -20,7 +20,7 @@
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
22
  <%s key={someKey} {...props} />`,Z,Y,ne,Y),K[Y+Z]=!0)}if(Y=null,F!==void 0&&(t(F),Y=""+F),a($)&&(t($.key),Y=""+$.key),"key"in $){F={};for(var re in $)re!=="key"&&(F[re]=$[re])}else F=$;return Y&&l(F,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,Y,H,J,s(),F,le,ue)}function g(C){typeof C=="object"&&C!==null&&C.$$typeof===m&&C._store&&(C._store.validated=1)}var h=_,m=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),b=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,w=Array.isArray,R=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(C){return C()}};var M,I={},P=h.react_stack_bottom_frame.bind(h,i)(),U=R(r(i)),K={};qn.Fragment=y,qn.jsx=function(C,$,F,Z,J){var H=1e4>b.recentlyCreatedOwnerStacks++;return p(C,$,F,!1,Z,J,H?Error("react-stack-top-frame"):P,H?R(r(C)):U)},qn.jsxs=function(C,$,F,Z,J){var H=1e4>b.recentlyCreatedOwnerStacks++;return p(C,$,F,!0,Z,J,H?Error("react-stack-top-frame"):P,H?R(r(C)):U)}}()),qn}var ea;function dc(){return ea||(ea=1,process.env.NODE_ENV==="production"?Cr.exports=uc():Cr.exports=hc()),Cr.exports}var d=dc();const Pe=({type:n="button",className:e,children:t,...r})=>d.jsx("button",{type:n==="submit"?"submit":"button",className:e,...r,children:t}),fc=({children:n,className:e})=>d.jsx("div",{className:`card-header ${e}`,children:n}),pc=({children:n,className:e="",...t})=>d.jsx("div",{className:`card-body ${e}`,...t,children:n}),gc=({children:n,className:e=""})=>d.jsx("div",{className:`card-footer ${e}`,children:n}),mc=({children:n,className:e="",...t})=>d.jsx("div",{className:`card ${e}`,...t,children:n}),bc=()=>d.jsx("div",{className:"spinner",children:d.jsx("svg",{className:"spinner-icon",width:"30px",height:"30px",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"})})}),wt=(n,e)=>{_.useEffect(()=>{if(!Array.isArray(n)||n.length===0)return;const t=r=>{n.every(i=>i.current&&!i.current.contains(r.target))&&e()};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[n,e])},vc=({children:n,items:e,position:t="bottom-left",className:r=""})=>{const[s,i]=_.useState(!1),[a,l]=_.useState({top:0,left:0}),c=_.useRef(null),u=_.useRef(null);wt([c,u],()=>{i(!1)}),_.useEffect(()=>{if(s&&c.current&&u.current){const g=()=>{if(!c.current||!u.current)return;const m=c.current.getBoundingClientRect(),E=u.current.getBoundingClientRect();let y=0,N=0;switch(t){case"bottom-left":y=m.bottom+4,N=m.left;break;case"bottom-right":y=m.bottom+4,N=m.right-E.width;break;case"top-left":y=m.top-E.height-4,N=m.left;break;case"top-right":y=m.top-E.height-4,N=m.right-E.width;break}l({top:Math.round(y),left:Math.round(N)})};g();const h=()=>{g()};return window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}}},[s,t]);const p=()=>{switch(t){case"bottom-right":return"dropdown-menu-end";case"top-left":return"dropup";case"top-right":return"dropup dropdown-menu-end";default:return""}};return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"dropdown",ref:c,onClick:()=>i(!s),children:n}),s&&nr.createPortal(d.jsx("ul",{ref:u,style:{position:"fixed",top:`${a.top}px`,left:`${a.left}px`},className:`dropdown-menu ${p()} show ${r}`,children:e.map((g,h)=>g.divider?d.jsx("li",{children:d.jsx("hr",{className:"dropdown-divider"})},h):d.jsx("li",{children:d.jsxs("a",{className:`dropdown-item ${g.className||""}`,href:"#",onClick:m=>{m.preventDefault(),g.onClick(),i(!1)},children:[g.icon&&d.jsx("span",{className:"me-2",children:g.icon}),g.label]})},h))}),document.body)]})},yc=({children:n,className:e="",position:t="bottom-left"})=>{const[r,s]=_.useState(!1),i=_.useRef(null),a=_.useRef(null),l=_.useRef(`dropdown-${Math.random().toString(36).substr(2,9)}`),c=()=>{s(!r)};return wt([i,a],()=>{s(!1)}),d.jsx("div",{className:`dropdown ${e}`,ref:i,id:l.current,children:_.Children.map(n,u=>_.isValidElement(u)?_.cloneElement(u,{toggleDropdown:c,isOpen:r,position:t,contentRef:a,dropdownId:l.current}):u)})},xc=({children:n,className:e="",toggleDropdown:t,dropdownId:r})=>d.jsx("div",{className:`dropdown-toggle ${e}`,onClick:t,"data-dropdown-id":r,children:n}),Ec=({children:n,className:e="",isOpen:t=!1,position:r="bottom-left",contentRef:s,dropdownId:i})=>{const[a,l]=_.useState({top:0,left:0});return _.useEffect(()=>{if(t&&s?.current){const c=()=>{const p=document.querySelector(`[data-dropdown-id="${i}"]`);if(!p||!s?.current)return;const g=p.getBoundingClientRect(),h=s.current.getBoundingClientRect();let m=0,E=0;switch(r){case"bottom-left":m=g.bottom+4,E=g.left;break;case"bottom-right":m=g.bottom+4,E=g.right-h.width;break;case"top-left":m=g.top-h.height-4,E=g.left;break;case"top-right":m=g.top-h.height-4,E=g.right-h.width;break}l({top:Math.round(m),left:Math.round(E)})};c();const u=()=>{c()};return window.addEventListener("scroll",u,!0),window.addEventListener("resize",u),()=>{window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",u)}}},[t,r,s,i]),t?nr.createPortal(d.jsx("div",{ref:s,style:{position:"fixed",top:`${a.top}px`,left:`${a.left}px`},className:`dropdown-content ${r} ${e}`,children:n}),document.body):null},Nc=({className:n,children:e,style:t})=>d.jsx("span",{className:n,style:t,children:e}),wc=({children:n,className:e="",...t})=>d.jsx("div",{className:`box ${e}`,...t,children:n}),ui=({children:n})=>d.jsx(d.Fragment,{children:n}),Oo=({children:n})=>d.jsx(d.Fragment,{children:n}),Tc=({className:n="",navClassName:e="",contentClassName:t="",children:r,activeTab:s,handleActiveTab:i,customHeader:a})=>{const{tabs:l,groups:c,tabIdMap:u}=_.useMemo(()=>{const h=[],m=[],E=new Map;return _.Children.forEach(r,y=>{if(_.isValidElement(y)){if(y.type===Oo){const N=[],T=y.props;_.Children.forEach(T.children,A=>{if(_.isValidElement(A)&&A.type===ui){const k=A.props.id||`tab-${h.length}`;h.push({title:A.props.title,icon:A.props.icon,children:A.props.children,id:k});const D=h.length-1;E.set(k,D),N.push(D)}}),m.push({title:T.title,tabIndices:N})}else if(y.type===ui){const N=y.props,T=N.id||`tab-${h.length}`;h.push({title:N.title,icon:N.icon,children:N.children,id:T});const A=h.length-1;E.set(T,A)}}}),{tabs:h,groups:m,tabIdMap:E}},[r]),p=_.useMemo(()=>typeof s=="number"?s:u.get(s)??0,[s,u]);_.useEffect(()=>{l.length>0&&(p<0||p>=l.length)&&i(0)},[l.length,p,i]);const g=(h,m)=>{const E=m===p,y=()=>i(h.id);return d.jsxs("div",{className:`tab-item ${E?"active":""}`,onClick:y,role:"button",tabIndex:0,onKeyDown:N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),y())},children:[h.icon&&d.jsx("span",{className:"tab-icon",children:h.icon}),d.jsx("span",{className:"tab-title",children:h.title})]},`tab-nav-${m}`)};return d.jsxs("div",{className:`card tabs ${n}`,children:[d.jsxs("div",{className:`card-header ${e}`,children:[a,d.jsx("div",{className:"nav-tabs",role:"tablist",children:c.length>0?c.map(h=>d.jsxs(_.Fragment,{children:[d.jsx("legend",{className:"tab-item-legend",children:h.title}),h.tabIndices.map(m=>g(l[m],m))]},`group-${h.title}`)):l.map((h,m)=>g(h,m))})]}),d.jsx("div",{className:`card-body ${t}`,children:d.jsx("div",{className:"tab-content",children:d.jsx("div",{className:"tab-panel",children:l[p]?d.jsx("div",{children:l[p].children},`tab-content-${p}`):d.jsx("div",{children:"No content available"})})})})]})};var Ro={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ta=_.createContext&&_.createContext(Ro),Ac=["attr","size","title"];function Sc(n,e){if(n==null)return{};var t=Cc(n,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Cc(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Ur(){return Ur=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Ur.apply(this,arguments)}function na(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,r)}return t}function Hr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?na(Object(t),!0).forEach(function(r){_c(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):na(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function _c(n,e,t){return e=Oc(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Oc(n){var e=Rc(n,"string");return typeof e=="symbol"?e:e+""}function Rc(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Lo(n){return n&&n.map((e,t)=>_.createElement(e.tag,Hr({key:t},e.attr),Lo(e.child)))}function Oe(n){return e=>_.createElement(Lc,Ur({attr:Hr({},n.attr)},e),Lo(n.child))}function Lc(n){var e=t=>{var{attr:r,size:s,title:i}=n,a=Sc(n,Ac),l=s||t.size||"1em",c;return t.className&&(c=t.className),n.className&&(c=(c?c+" ":"")+n.className),_.createElement("svg",Ur({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:c,style:Hr(Hr({color:n.color||t.color},t.style),n.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&_.createElement("title",null,i),n.children)};return ta!==void 0?_.createElement(ta.Consumer,null,t=>e(t)):e(Ro)}function kc(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(n)}function hi(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"},child:[]}]})(n)}function Kn(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"},child:[]}]})(n)}function jc(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"15 18 9 12 15 6"},child:[]}]})(n)}function Ic(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(n)}function qc(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"},child:[]}]})(n)}function Mc(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},child:[]}]})(n)}function Dc(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"19 20 9 12 19 4 19 20"},child:[]},{tag:"line",attr:{x1:"5",y1:"19",x2:"5",y2:"5"},child:[]}]})(n)}function Pc(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(n)}function $c(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]}]})(n)}function ko(n){return Oe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(n)}var Mn={},nn={},_r={},jt={},It={},Vs={},ra;function jo(){return ra||(ra=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Doctype=n.CDATA=n.Tag=n.Style=n.Script=n.Comment=n.Directive=n.Text=n.Root=n.isTag=n.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=n.ElementType||(n.ElementType={}));function t(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}n.isTag=t,n.Root=e.Root,n.Text=e.Text,n.Directive=e.Directive,n.Comment=e.Comment,n.Script=e.Script,n.Style=e.Style,n.Tag=e.Tag,n.CDATA=e.CDATA,n.Doctype=e.Doctype}(Vs)),Vs}var te={},sa;function ia(){if(sa)return te;sa=1;var n=te&&te.__extends||function(){var v=function(S,j){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,z){B.__proto__=z}||function(B,z){for(var ee in z)Object.prototype.hasOwnProperty.call(z,ee)&&(B[ee]=z[ee])},v(S,j)};return function(S,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");v(S,j);function B(){this.constructor=S}S.prototype=j===null?Object.create(j):(B.prototype=j.prototype,new B)}}(),e=te&&te.__assign||function(){return e=Object.assign||function(v){for(var S,j=1,B=arguments.length;j<B;j++){S=arguments[j];for(var z in S)Object.prototype.hasOwnProperty.call(S,z)&&(v[z]=S[z])}return v},e.apply(this,arguments)};Object.defineProperty(te,"__esModule",{value:!0}),te.cloneNode=te.hasChildren=te.isDocument=te.isDirective=te.isComment=te.isText=te.isCDATA=te.isTag=te.Element=te.Document=te.CDATA=te.NodeWithChildren=te.ProcessingInstruction=te.Comment=te.Text=te.DataNode=te.Node=void 0;var t=jo(),r=function(){function v(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(v.prototype,"parentNode",{get:function(){return this.parent},set:function(S){this.parent=S},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"previousSibling",{get:function(){return this.prev},set:function(S){this.prev=S},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"nextSibling",{get:function(){return this.next},set:function(S){this.next=S},enumerable:!1,configurable:!0}),v.prototype.cloneNode=function(S){return S===void 0&&(S=!1),k(this,S)},v}();te.Node=r;var s=function(v){n(S,v);function S(j){var B=v.call(this)||this;return B.data=j,B}return Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.data},set:function(j){this.data=j},enumerable:!1,configurable:!0}),S}(r);te.DataNode=s;var i=function(v){n(S,v);function S(){var j=v!==null&&v.apply(this,arguments)||this;return j.type=t.ElementType.Text,j}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),S}(s);te.Text=i;var a=function(v){n(S,v);function S(){var j=v!==null&&v.apply(this,arguments)||this;return j.type=t.ElementType.Comment,j}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),S}(s);te.Comment=a;var l=function(v){n(S,v);function S(j,B){var z=v.call(this,B)||this;return z.name=j,z.type=t.ElementType.Directive,z}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),S}(s);te.ProcessingInstruction=l;var c=function(v){n(S,v);function S(j){var B=v.call(this)||this;return B.children=j,B}return Object.defineProperty(S.prototype,"firstChild",{get:function(){var j;return(j=this.children[0])!==null&&j!==void 0?j:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return this.children},set:function(j){this.children=j},enumerable:!1,configurable:!0}),S}(r);te.NodeWithChildren=c;var u=function(v){n(S,v);function S(){var j=v!==null&&v.apply(this,arguments)||this;return j.type=t.ElementType.CDATA,j}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),S}(c);te.CDATA=u;var p=function(v){n(S,v);function S(){var j=v!==null&&v.apply(this,arguments)||this;return j.type=t.ElementType.Root,j}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),S}(c);te.Document=p;var g=function(v){n(S,v);function S(j,B,z,ee){z===void 0&&(z=[]),ee===void 0&&(ee=j==="script"?t.ElementType.Script:j==="style"?t.ElementType.Style:t.ElementType.Tag);var b=v.call(this,z)||this;return b.name=j,b.attribs=B,b.type=ee,b}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"tagName",{get:function(){return this.name},set:function(j){this.name=j},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"attributes",{get:function(){var j=this;return Object.keys(this.attribs).map(function(B){var z,ee;return{name:B,value:j.attribs[B],namespace:(z=j["x-attribsNamespace"])===null||z===void 0?void 0:z[B],prefix:(ee=j["x-attribsPrefix"])===null||ee===void 0?void 0:ee[B]}})},enumerable:!1,configurable:!0}),S}(c);te.Element=g;function h(v){return(0,t.isTag)(v)}te.isTag=h;function m(v){return v.type===t.ElementType.CDATA}te.isCDATA=m;function E(v){return v.type===t.ElementType.Text}te.isText=E;function y(v){return v.type===t.ElementType.Comment}te.isComment=y;function N(v){return v.type===t.ElementType.Directive}te.isDirective=N;function T(v){return v.type===t.ElementType.Root}te.isDocument=T;function A(v){return Object.prototype.hasOwnProperty.call(v,"children")}te.hasChildren=A;function k(v,S){S===void 0&&(S=!1);var j;if(E(v))j=new i(v.data);else if(y(v))j=new a(v.data);else if(h(v)){var B=S?D(v.children):[],z=new g(v.name,e({},v.attribs),B);B.forEach(function(w){return w.parent=z}),v.namespace!=null&&(z.namespace=v.namespace),v["x-attribsNamespace"]&&(z["x-attribsNamespace"]=e({},v["x-attribsNamespace"])),v["x-attribsPrefix"]&&(z["x-attribsPrefix"]=e({},v["x-attribsPrefix"])),j=z}else if(m(v)){var B=S?D(v.children):[],ee=new u(B);B.forEach(function(R){return R.parent=ee}),j=ee}else if(T(v)){var B=S?D(v.children):[],b=new p(B);B.forEach(function(R){return R.parent=b}),v["x-mode"]&&(b["x-mode"]=v["x-mode"]),j=b}else if(N(v)){var q=new l(v.name,v.data);v["x-name"]!=null&&(q["x-name"]=v["x-name"],q["x-publicId"]=v["x-publicId"],q["x-systemId"]=v["x-systemId"]),j=q}else throw new Error("Not implemented yet: ".concat(v.type));return j.startIndex=v.startIndex,j.endIndex=v.endIndex,v.sourceCodeLocation!=null&&(j.sourceCodeLocation=v.sourceCodeLocation),j}te.cloneNode=k;function D(v){for(var S=v.map(function(B){return k(B,!0)}),j=1;j<S.length;j++)S[j].prev=S[j-1],S[j-1].next=S[j];return S}return te}var aa;function Io(){return aa||(aa=1,function(n){var e=It&&It.__createBinding||(Object.create?function(l,c,u,p){p===void 0&&(p=u);var g=Object.getOwnPropertyDescriptor(c,u);(!g||("get"in g?!c.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return c[u]}}),Object.defineProperty(l,p,g)}:function(l,c,u,p){p===void 0&&(p=u),l[p]=c[u]}),t=It&&It.__exportStar||function(l,c){for(var u in l)u!=="default"&&!Object.prototype.hasOwnProperty.call(c,u)&&e(c,l,u)};Object.defineProperty(n,"__esModule",{value:!0}),n.DomHandler=void 0;var r=jo(),s=ia();t(ia(),n);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function l(c,u,p){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(p=u,u=i),typeof c=="object"&&(u=c,c=void 0),this.callback=c??null,this.options=u??i,this.elementCB=p??null}return l.prototype.onparserinit=function(c){this.parser=c},l.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(c){this.handleCallback(c)},l.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},l.prototype.onopentag=function(c,u){var p=this.options.xmlMode?r.ElementType.Tag:void 0,g=new s.Element(c,u,void 0,p);this.addNode(g),this.tagStack.push(g)},l.prototype.ontext=function(c){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=c,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var p=new s.Text(c);this.addNode(p),this.lastNode=p}},l.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var u=new s.Comment(c);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var c=new s.Text(""),u=new s.CDATA([c]);this.addNode(u),c.parent=u,this.lastNode=c},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(c,u){var p=new s.ProcessingInstruction(c,u);this.addNode(p)},l.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},l.prototype.addNode=function(c){var u=this.tagStack[this.tagStack.length-1],p=u.children[u.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),u.children.push(c),p&&(c.prev=p,p.next=c),c.parent=u,this.lastNode=null},l}();n.DomHandler=a,n.default=a}(It)),It}var Ws={},oa;function Bc(){return oa||(oa=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.CARRIAGE_RETURN_PLACEHOLDER_REGEX=n.CARRIAGE_RETURN_PLACEHOLDER=n.CARRIAGE_RETURN_REGEX=n.CARRIAGE_RETURN=n.CASE_SENSITIVE_TAG_NAMES_MAP=n.CASE_SENSITIVE_TAG_NAMES=void 0,n.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],n.CASE_SENSITIVE_TAG_NAMES_MAP=n.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),n.CARRIAGE_RETURN="\r",n.CARRIAGE_RETURN_REGEX=new RegExp(n.CARRIAGE_RETURN,"g"),n.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),n.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(n.CARRIAGE_RETURN_PLACEHOLDER,"g")}(Ws)),Ws}var la;function qo(){if(la)return jt;la=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.formatAttributes=r,jt.escapeSpecialCharacters=i,jt.revertEscapedCharacters=a,jt.formatDOM=l;var n=Io(),e=Bc();function t(c){return e.CASE_SENSITIVE_TAG_NAMES_MAP[c]}function r(c){for(var u={},p=0,g=c.length;p<g;p++){var h=c[p];u[h.name]=h.value}return u}function s(c){c=c.toLowerCase();var u=t(c);return u||c}function i(c){return c.replace(e.CARRIAGE_RETURN_REGEX,e.CARRIAGE_RETURN_PLACEHOLDER)}function a(c){return c.replace(e.CARRIAGE_RETURN_PLACEHOLDER_REGEX,e.CARRIAGE_RETURN)}function l(c,u,p){u===void 0&&(u=null);for(var g=[],h,m=0,E=c.length;m<E;m++){var y=c[m];switch(y.nodeType){case 1:{var N=s(y.nodeName);h=new n.Element(N,r(y.attributes)),h.children=l(N==="template"?y.content.childNodes:y.childNodes,h);break}case 3:h=new n.Text(a(y.nodeValue));break;case 8:h=new n.Comment(y.nodeValue);break;default:continue}var T=g[m-1]||null;T&&(T.next=h),h.parent=u,h.prev=T,h.next=null,g.push(h)}return p&&(h=new n.ProcessingInstruction(p.substring(0,p.indexOf(" ")).toLowerCase(),p),h.next=g[0]||null,h.parent=u,g.unshift(h),g[1]&&(g[1].prev=g[0])),g}return jt}var ca;function Fc(){if(ca)return _r;ca=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=y;var n=qo(),e="html",t="head",r="body",s=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,l=function(N,T){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(N,T){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u=typeof window=="object"&&window.DOMParser;if(typeof u=="function"){var p=new u,g="text/html";c=function(N,T){return T&&(N="<".concat(T,">").concat(N,"</").concat(T,">")),p.parseFromString(N,g)},l=c}if(typeof document=="object"&&document.implementation){var h=document.implementation.createHTMLDocument();l=function(N,T){if(T){var A=h.documentElement.querySelector(T);return A&&(A.innerHTML=N),h}return h.documentElement.innerHTML=N,h}}var m=typeof document=="object"&&document.createElement("template"),E;m&&m.content&&(E=function(N){return m.innerHTML=N,m.content.childNodes});function y(N){var T,A;N=(0,n.escapeSpecialCharacters)(N);var k=N.match(s),D=k&&k[1]?k[1].toLowerCase():"";switch(D){case e:{var v=c(N);if(!i.test(N)){var S=v.querySelector(t);(T=S?.parentNode)===null||T===void 0||T.removeChild(S)}if(!a.test(N)){var S=v.querySelector(r);(A=S?.parentNode)===null||A===void 0||A.removeChild(S)}return v.querySelectorAll(e)}case t:case r:{var j=l(N).querySelectorAll(D);return a.test(N)&&i.test(N)?j[0].parentNode.childNodes:j}default:{if(E)return E(N);var S=l(N,r).querySelector(r);return S.childNodes}}}return _r}var ua;function Uc(){if(ua)return nn;ua=1;var n=nn&&nn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nn,"__esModule",{value:!0}),nn.default=s;var e=n(Fc()),t=qo(),r=/<(![a-zA-Z\s]+)>/;function s(i){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];var a=i.match(r),l=a?a[1]:void 0;return(0,t.formatDOM)((0,e.default)(i),null,l)}return nn}var Or={},Ie={},Dn={},ha;function Hc(){if(ha)return Dn;ha=1;var n=0;Dn.SAME=n;var e=1;return Dn.CAMELCASE=e,Dn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Dn}var da;function zc(){if(da)return Ie;da=1;const n=0,e=1,t=2,r=3,s=4,i=5,a=6;function l(v){return u.hasOwnProperty(v)?u[v]:null}function c(v,S,j,B,z,ee,b){this.acceptsBooleans=S===t||S===r||S===s,this.attributeName=B,this.attributeNamespace=z,this.mustUseProperty=j,this.propertyName=v,this.type=S,this.sanitizeURL=ee,this.removeEmptyString=b}const u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(v=>{u[v]=new c(v,n,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([v,S])=>{u[v]=new c(v,e,!1,S,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(v=>{u[v]=new c(v,t,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(v=>{u[v]=new c(v,t,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(v=>{u[v]=new c(v,r,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(v=>{u[v]=new c(v,r,!0,v,null,!1,!1)}),["capture","download"].forEach(v=>{u[v]=new c(v,s,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(v=>{u[v]=new c(v,a,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(v=>{u[v]=new c(v,i,!1,v.toLowerCase(),null,!1,!1)});const g=/[\-\:]([a-z])/g,h=v=>v[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(v=>{const S=v.replace(g,h);u[S]=new c(S,e,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(v=>{const S=v.replace(g,h);u[S]=new c(S,e,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(v=>{const S=v.replace(g,h);u[S]=new c(S,e,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(v=>{u[v]=new c(v,e,!1,v.toLowerCase(),null,!1,!1)});const m="xlinkHref";u[m]=new c("xlinkHref",e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(v=>{u[v]=new c(v,e,!1,v.toLowerCase(),null,!0,!0)});const{CAMELCASE:E,SAME:y,possibleStandardNames:N}=Hc(),A=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",k=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+A+"]*$")),D=Object.keys(N).reduce((v,S)=>{const j=N[S];return j===y?v[S]=S:j===E?v[S.toLowerCase()]=S:v[S]=j,v},{});return Ie.BOOLEAN=r,Ie.BOOLEANISH_STRING=t,Ie.NUMERIC=i,Ie.OVERLOADED_BOOLEAN=s,Ie.POSITIVE_NUMERIC=a,Ie.RESERVED=n,Ie.STRING=e,Ie.getPropertyInfo=l,Ie.isCustomAttribute=k,Ie.possibleStandardNames=D,Ie}var Pn={},rn={},Ks,fa;function Gc(){if(fa)return Ks;fa=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c=`
23
- `,u="/",p="*",g="",h="comment",m="declaration";Ks=function(y,N){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];N=N||{};var T=1,A=1;function k(w){var R=w.match(e);R&&(T+=R.length);var M=w.lastIndexOf(c);A=~M?w.length-M:A+w.length}function D(){var w={line:T,column:A};return function(R){return R.position=new v(w),B(),R}}function v(w){this.start=w,this.end={line:T,column:A},this.source=N.source}v.prototype.content=y;function S(w){var R=new Error(N.source+":"+T+":"+A+": "+w);if(R.reason=w,R.filename=N.source,R.line=T,R.column=A,R.source=y,!N.silent)throw R}function j(w){var R=w.exec(y);if(R){var M=R[0];return k(M),y=y.slice(M.length),R}}function B(){j(t)}function z(w){var R;for(w=w||[];R=ee();)R!==!1&&w.push(R);return w}function ee(){var w=D();if(!(u!=y.charAt(0)||p!=y.charAt(1))){for(var R=2;g!=y.charAt(R)&&(p!=y.charAt(R)||u!=y.charAt(R+1));)++R;if(R+=2,g===y.charAt(R-1))return S("End of comment missing");var M=y.slice(2,R-2);return A+=2,k(M),y=y.slice(R),A+=2,w({type:h,comment:M})}}function b(){var w=D(),R=j(r);if(R){if(ee(),!j(s))return S("property missing ':'");var M=j(i),I=w({type:m,property:E(R[0].replace(n,g)),value:M?E(M[0].replace(n,g)):g});return j(a),I}}function q(){var w=[];z(w);for(var R;R=b();)R!==!1&&(w.push(R),z(w));return w}return B(),q()};function E(y){return y?y.replace(l,g):g}return Ks}var pa;function Vc(){if(pa)return rn;pa=1;var n=rn&&rn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=t;var e=n(Gc());function t(r,s){var i=null;if(!r||typeof r!="string")return i;var a=(0,e.default)(r),l=typeof s=="function";return a.forEach(function(c){if(c.type==="declaration"){var u=c.property,p=c.value;l?s(u,p,c):p&&(i=i||{},i[u]=p)}}),i}return rn}var $n={},ga;function Wc(){if(ga)return $n;ga=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,i=function(u){return!u||t.test(u)||n.test(u)},a=function(u,p){return p.toUpperCase()},l=function(u,p){return"".concat(p,"-")},c=function(u,p){return p===void 0&&(p={}),i(u)?u:(u=u.toLowerCase(),p.reactCompat?u=u.replace(s,l):u=u.replace(r,l),u.replace(e,a))};return $n.camelCase=c,$n}var Bn,ma;function Kc(){if(ma)return Bn;ma=1;var n=Bn&&Bn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},e=n(Vc()),t=Wc();function r(s,i){var a={};return!s||typeof s!="string"||(0,e.default)(s,function(l,c){l&&c&&(a[(0,t.camelCase)(l,i)]=c)}),a}return r.default=r,Bn=r,Bn}var ba;function Mo(){return ba||(ba=1,function(n){var e=Pn&&Pn.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(n,"__esModule",{value:!0}),n.returnFirstArg=n.canTextBeChildOfNode=n.ELEMENTS_WITH_NO_TEXT_CHILDREN=n.PRESERVE_CUSTOM_ATTRIBUTES=void 0,n.isCustomComponent=i,n.setStyleProp=l;var t=_,r=e(Kc()),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function i(p,g){return p.includes("-")?!s.has(p):!!(g&&typeof g.is=="string")}var a={reactCompat:!0};function l(p,g){if(typeof p=="string"){if(!p.trim()){g.style={};return}try{g.style=(0,r.default)(p,a)}catch{g.style={}}}}n.PRESERVE_CUSTOM_ATTRIBUTES=Number(t.version.split(".")[0])>=16,n.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(p){return!n.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(p.name)};n.canTextBeChildOfNode=c;var u=function(p){return p};n.returnFirstArg=u}(Pn)),Pn}var va;function Do(){if(va)return Or;va=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=i;var n=zc(),e=Mo(),t=["checked","value"],r=["input","select","textarea"],s={reset:!0,submit:!0};function i(l,c){l===void 0&&(l={});var u={},p=!!(l.type&&s[l.type]);for(var g in l){var h=l[g];if((0,n.isCustomAttribute)(g)){u[g]=h;continue}var m=g.toLowerCase(),E=a(m);if(E){var y=(0,n.getPropertyInfo)(E);switch(t.includes(E)&&r.includes(c)&&!p&&(E=a("default"+m)),u[E]=h,y&&y.type){case n.BOOLEAN:u[E]=!0;break;case n.OVERLOADED_BOOLEAN:h===""&&(u[E]=!0);break}continue}e.PRESERVE_CUSTOM_ATTRIBUTES&&(u[g]=h)}return(0,e.setStyleProp)(l.style,u),u}function a(l){return n.possibleStandardNames[l]}return Or}var sn={},ya;function Yc(){if(ya)return sn;ya=1;var n=sn&&sn.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=i;var e=_,t=n(Do()),r=Mo(),s={cloneElement:e.cloneElement,createElement:e.createElement,isValidElement:e.isValidElement};function i(l,c){c===void 0&&(c={});for(var u=[],p=typeof c.replace=="function",g=c.transform||r.returnFirstArg,h=c.library||s,m=h.cloneElement,E=h.createElement,y=h.isValidElement,N=l.length,T=0;T<N;T++){var A=l[T];if(p){var k=c.replace(A,T);if(y(k)){N>1&&(k=m(k,{key:k.key||T})),u.push(g(k,A,T));continue}}if(A.type==="text"){var D=!A.data.trim().length;if(D&&A.parent&&!(0,r.canTextBeChildOfNode)(A.parent)||c.trim&&D)continue;u.push(g(A.data,A,T));continue}var v=A,S={};a(v)?((0,r.setStyleProp)(v.attribs.style,v.attribs),S=v.attribs):v.attribs&&(S=(0,t.default)(v.attribs,v.name));var j=void 0;switch(A.type){case"script":case"style":A.children[0]&&(S.dangerouslySetInnerHTML={__html:A.children[0].data});break;case"tag":A.name==="textarea"&&A.children[0]?S.defaultValue=A.children[0].data:A.children&&A.children.length&&(j=i(A.children,c));break;default:continue}N>1&&(S.key=T),u.push(g(E(A.name,S,j),A,T))}return u.length===1?u[0]:u}function a(l){return r.PRESERVE_CUSTOM_ATTRIBUTES&&l.type==="tag"&&(0,r.isCustomComponent)(l.name,l.attribs)}return sn}var xa;function Xc(){return xa||(xa=1,function(n){var e=Mn&&Mn.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0}),n.htmlToDOM=n.domToReact=n.attributesToProps=n.Text=n.ProcessingInstruction=n.Element=n.Comment=void 0,n.default=l;var t=e(Uc());n.htmlToDOM=t.default;var r=e(Do());n.attributesToProps=r.default;var s=e(Yc());n.domToReact=s.default;var i=Io();Object.defineProperty(n,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(n,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(n,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function l(c,u){if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,s.default)((0,t.default)(c,u?.htmlparser2||a),u):[]}}(Mn)),Mn}var Zc=Xc();const Ea=Oi(Zc),Jc=Ea.default||Ea,Qc=({type:n,text:e})=>{const[t,r]=_.useState(!0),s=_.useRef(null),i=_.useRef(null),a=()=>{i.current&&(i.current.style.transition="opacity 0.4s",i.current.style.opacity="0"),s.current=window.setTimeout(()=>{r(!t)},500)};return _.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),t?d.jsxs("div",{ref:i,className:`alert ${n}`,role:"alert",children:[d.jsx("p",{children:Jc(e)}),d.jsx("button",{className:"close",type:"button","data-toggle":"close",onClick:a,children:d.jsx(ko,{})})]}):null},Po=({children:n,className:e="",...t})=>d.jsx("div",{className:`modal-header ${e}`,...t,children:n}),$o=({children:n,className:e="",...t})=>d.jsx("div",{className:`modal-body ${e}`,...t,children:n}),Bo=({children:n,className:e="",...t})=>d.jsx("div",{className:`modal-footer ${e}`,...t,children:n}),Fo=({children:n,className:e="",...t})=>(_.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),nr.createPortal(d.jsx("div",{className:"modal",...t,children:d.jsx("div",{className:`modal-dialog ${e}`,children:n})}),document.body)),eu=({labelIcon:n,label:e="Confirmation",message:t,onCancel:r,onConfirm:s})=>d.jsxs(Fo,{className:"modal-sm",children:[d.jsxs(Po,{className:"bg-danger",children:[d.jsxs("div",{className:"modal-header-title",children:[n||d.jsx(hi,{className:"icon"}),d.jsx("span",{children:e})]}),d.jsx("div",{className:"tools",children:d.jsx(ko,{className:"icon",onClick:r})})]}),d.jsx($o,{children:d.jsx("p",{children:t})}),d.jsxs(Bo,{className:"justify-content-space-between",children:[d.jsxs(Pe,{type:"button",className:"btn btn-default",onClick:r,children:[d.jsx(kc,{})," Batalkan"]}),d.jsxs(Pe,{type:"button",className:"btn btn-primary",onClick:s,children:[d.jsx(hi,{})," Konfirmasi"]})]})]}),tu=({className:n="",type:e,title:t,text:r})=>d.jsxs("div",{className:`callout ${e} ${n}`,children:[t&&d.jsx("h5",{children:t}),typeof r=="string"?d.jsx("p",{children:r}):r]}),nu=({children:n,text:e,position:t="top",className:r="",offset:s=5})=>{const[i,a]=_.useState(!1),[l,c]=_.useState({top:0,left:0}),u=_.useRef(null),p=_.useRef(null);return _.useEffect(()=>{if(i&&u.current&&p.current){const g=u.current.getBoundingClientRect(),h=p.current.getBoundingClientRect(),{scrollX:m,scrollY:E}=window;let y=0,N=0;switch(t){case"top":y=g.top-h.height-s,N=g.left+(g.width-h.width)/2;break;case"bottom":y=g.bottom+s,N=g.left+(g.width-h.width)/2;break;case"left":y=g.top+(g.height-h.height)/2,N=g.left-h.width-s;break;case"right":y=g.top+(g.height-h.height)/2,N=g.right+s;break}c({top:Math.round(y+E),left:Math.round(N+m)})}},[i,t,s]),d.jsxs("div",{ref:u,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[n,i&&nr.createPortal(d.jsx("div",{ref:p,style:{position:"absolute",top:`${l.top}px`,left:`${l.left}px`},className:`tooltip ${t} ${r}`,children:e}),document.body)]})},ru=({className:n,children:e,text:t,title:r,dismissible:s=!0})=>{const[i,a]=_.useState(!1),[l,c]=_.useState({top:0,left:0}),u=_.useRef(null),p=_.useRef(null);wt([u,p],()=>{s&&a(!1)}),_.useEffect(()=>{if(i&&u.current&&p.current){const h=u.current.getBoundingClientRect(),m=p.current.getBoundingClientRect(),{scrollX:E,scrollY:y}=window;let N=0,T=0;n.includes("top")?(N=h.top-m.height-10,T=h.left+(h.width-m.width)/2):n.includes("bottom")?(N=h.bottom+10,T=h.left+(h.width-m.width)/2):n.includes("left")?(N=h.top+(h.height-m.height)/2,T=h.left-m.width-10):n.includes("right")&&(N=h.top+(h.height-m.height)/2,T=h.right+10),c({top:Math.round(N+y),left:Math.round(T+E)})}},[i,n]);function g(){a(!i)}return d.jsxs("div",{ref:u,onClick:g,children:[e,i&&nr.createPortal(d.jsxs("div",{ref:p,className:`popover ${n}`,role:"tooltip",style:{position:"absolute",top:`${l.top}px`,left:`${l.left}px`},children:[d.jsx("div",{className:"arrow"}),r&&d.jsx("h3",{className:"popover-title",children:r}),d.jsx("div",{className:"popover-content",children:t})]}),document.body)]})},su=({defaultIndex:n=null,alwaysOpen:e=!1,flush:t=!1,children:r})=>{const[s,i]=_.useState(n!==null?[n]:[]),a=l=>{i(e?c=>c.includes(l)?c.filter(u=>u!==l):[...c,l]:c=>c.includes(l)?[]:[l])};return d.jsx("div",{className:`accordion ${t?"accordion-flush":""}`,children:_.Children.map(r,(l,c)=>_.cloneElement(l,{isOpen:s.includes(c),onClick:()=>a(c)}))})},iu=({title:n,titleIcon:e,children:t,isOpen:r=!1,onClick:s})=>{const i=_.useRef(null),[a,l]=_.useState(0);_.useEffect(()=>{i.current&&l(i.current.scrollHeight)},[t]);const c=_.Children.toArray(t).find(p=>p.type===Uo),u=_.Children.toArray(t).find(p=>p.type===Ho);return d.jsxs("div",{className:"accordion-item",children:[d.jsxs("div",{className:"accordion-header",role:"button",tabIndex:0,onClick:s,onKeyDown:s,children:[d.jsxs("div",{className:"accordion-title",children:[e,d.jsx("span",{children:n})]}),d.jsx(Kn,{className:`accordion-icon ${r?"active":""}`})]}),d.jsxs("div",{ref:i,className:`accordion-collapse ${r?"show":""}`,style:{maxHeight:r?`${a}px`:"0px"},children:[c,u]})]})},Uo=({className:n="",children:e})=>d.jsx("div",{className:`accordion-body ${n}`,children:e}),Ho=({className:n="",children:e})=>d.jsx("div",{className:`accordion-footer ${n}`,children:e}),au=({size:n=40,className:e="",color:t})=>d.jsx("span",{className:`circular-progress ${e} ${t?`brand-${t}`:""}`,style:{width:`${n}px`,height:`${n}px`}}),ou=({showLabel:n=!1,progress:e=0,className:t="",color:r})=>{const s=t.includes("indeterminate");return d.jsxs("div",{className:`linear-progress ${t}`,children:[d.jsx("div",{className:`progress-bar ${r?`brand-${r}`:""}`,children:d.jsx("span",{className:"progress",style:{width:`${e}%`}})}),n&&!s&&d.jsxs("span",{className:"progress-label",children:[e,"%"]})]})},lu=({progress:n=0,size:e=40,className:t="",color:r,strokeWidth:s=4})=>{const[i,a]=_.useState(0);return _.useEffect(()=>{if(i<n){const l=setTimeout(()=>{a(i+1)},10);return()=>clearTimeout(l)}},[i,n]),d.jsxs("div",{className:`circular-progress-with-label ${t}`,children:[d.jsx("span",{className:`progress ${r?`brand-${r}`:""}`,style:{width:`${e}px`,height:`${e}px`,borderWidth:`${s}px`,background:r?`radial-gradient(closest-side, var(--secondary-bg) 79%, transparent 80% 100%), conic-gradient(var(--brand-${r}) ${i}%, var(--primary-bg) 0)`:`radial-gradient(closest-side, var(--secondary-bg) 79%, transparent 80% 100%), conic-gradient(#888 ${i}%, var(--primary-bg) 0)`}}),d.jsxs("span",{className:"progress-label",children:[i,"%"]})]})},ye=[];for(let n=0;n<256;++n)ye.push((n+256).toString(16).slice(1));function cu(n,e=0){return(ye[n[e+0]]+ye[n[e+1]]+ye[n[e+2]]+ye[n[e+3]]+"-"+ye[n[e+4]]+ye[n[e+5]]+"-"+ye[n[e+6]]+ye[n[e+7]]+"-"+ye[n[e+8]]+ye[n[e+9]]+"-"+ye[n[e+10]]+ye[n[e+11]]+ye[n[e+12]]+ye[n[e+13]]+ye[n[e+14]]+ye[n[e+15]]).toLowerCase()}let Ys;const uu=new Uint8Array(16);function hu(){if(!Ys){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ys=crypto.getRandomValues.bind(crypto)}return Ys(uu)}const du=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Na={randomUUID:du};function zo(n,e,t){if(Na.randomUUID&&!n)return Na.randomUUID();n=n||{};const r=n.random??n.rng?.()??hu();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,cu(r)}const Ri=_.forwardRef(({name:n,label:e,message:t,error:r,checked:s=!1,onChange:i,...a},l)=>{const c=zo(),u=p=>{i(p)};return d.jsxs(d.Fragment,{children:[d.jsxs("label",{className:"custom-checkbox",htmlFor:c,children:[d.jsx("input",{type:"checkbox",id:c,name:n,ref:l,role:"checkbox",checked:s,onChange:u,...a}),d.jsx("span",{className:"checkmark"}),e&&d.jsx("span",{className:a.required?"required":"",children:e})]}),r?d.jsx("small",{className:"form-message text-danger",children:r}):t&&d.jsx("small",{className:"form-message",children:t})]})});Ri.displayName="Checkbox";const fu=({children:n})=>d.jsx("div",{className:"form",children:n}),pu=({className:n="",children:e})=>d.jsx("div",{className:`form-group ${n}`,children:e}),gu=({className:n="",children:e})=>d.jsx("div",{className:`form-checkbox ${n}`,children:e}),mu=({className:n="",children:e})=>d.jsx("div",{className:`form-radio ${n}`,children:e});function bu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"},child:[]}]})(n)}function vu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},child:[]}]})(n)}function yu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(n)}function xu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(n)}const Li=(n,e)=>{_.useEffect(()=>{if(n&&e.current){const t=e.current.getBoundingClientRect(),r=window.innerHeight;t.bottom>r?e.current.classList.add("position-top"):e.current.classList.remove("position-top");const s=e.current.querySelector(".option.selected");s&&s.scrollIntoView({block:"nearest"})}},[n,e])},Qe=_.forwardRef((n,e)=>{const{className:t="",id:r,name:s,label:i,message:a,selectLabel:l="Select an option",size:c="md",floatingLabel:u=!1,error:p,options:g,value:h="",onChange:m,onBlur:E,required:y,disabled:N}=n,T=r||s,[A,k]=_.useState(!1),D=_.useRef(null),v=_.useRef(null),S=_.useRef(null),j=g.find(z=>z.value===h)?.label??l;_.useImperativeHandle(e,()=>S.current),_.useEffect(()=>k(!1),[]),wt([D],()=>{k(!1),S.current?.blur()}),Li(A,v);const B=z=>{const ee=g.find(w=>w.value===z);if(!ee)return;const b=ee.value;if(m?.({target:{name:s,value:b,type:"select-one"},currentTarget:{name:s,value:b}}),S.current){S.current.value=String(b);const w=new CustomEvent("change",{bubbles:!0,detail:{originalValue:b}});S.current.dispatchEvent(w)}k(!1)};return d.jsxs(d.Fragment,{children:[!u&&i&&d.jsxs("label",{htmlFor:T,children:[i," ",y&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("select",{ref:S,name:s,value:h!=null&&!Number.isNaN(h)?h:"",onChange:m,onBlur:E,required:y,disabled:N,style:{position:"absolute",left:"-9999px"},tabIndex:-1,children:[d.jsx("option",{value:"",children:"Select an option"}),g.map(z=>d.jsx("option",{value:String(z.value),children:z.label},z.value))]}),d.jsxs("div",{className:`dropdown-select-container ${t} ${c}`,ref:D,children:[d.jsxs("div",{className:`dropdown-header ${A?"open":""} ${N?"disabled":""}`,onClick:()=>!N&&k(!A),"aria-haspopup":"listbox","aria-expanded":A,children:[d.jsx("span",{className:"label",children:j}),d.jsx(Kn,{className:"arrow"})]}),A&&d.jsx("div",{className:"dropdown-options scrollbar",ref:v,role:"listbox",children:g.map(z=>d.jsx("div",{className:`option ${z.value===h?"selected":""}`,onClick:()=>B(z.value),role:"option","aria-selected":z.value===h,children:z.label},z.value))})]}),u&&i&&d.jsxs("label",{htmlFor:T,children:[i," ",y&&d.jsx("span",{className:"text-danger",children:"*"})]}),p?d.jsx("small",{className:"form-message text-danger",children:p}):a&&d.jsx("small",{className:"form-message",children:a})]})});Qe.displayName="Select";const Go=n=>{const[e,t]=_.useState(!1);return _.useEffect(()=>{const r=()=>{if(!n.current)return;const{top:i,height:a}=n.current.getBoundingClientRect(),l=window.innerHeight;t(i+a>l)};r();const s=()=>{r()};return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[n]),e},Vo=n=>{const e=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return`${e}-${t}-${r}`},Eu=n=>n.toLocaleDateString("id-ID",{timeZone:"Asia/Jakarta",year:"numeric",month:"long",day:"numeric"}),Yn=(n,e)=>Array.from({length:n},(t,r)=>e(r)),Rr=(n,e)=>{const t=new Date(e,n,1).getDay(),r=new Date(e,n+1,0).getDate(),s=Yn(t,()=>({value:"",label:""})),i=Yn(r,a=>({value:(a+1).toString(),label:(a+1).toString()}));return[...s,...i]},Nu=(n,e)=>{const t=new Date(e,n+1,0).getDate();return Yn(t,r=>({value:(r+1).toString(),label:(r+1).toString()}))},Wo=(n="id-ID")=>Yn(12,e=>({value:(e+1).toString(),label:new Date(2024,e,1).toLocaleString(n,{month:"long"})})),Ko=()=>{const n=new Date().getFullYear(),e=n-60,r=n+20-e+1;return Yn(r,s=>{const i=e+s;return{value:i.toString(),label:i.toString()}})},wa=n=>{const e=new Date(n);return e instanceof Date&&!isNaN(e.getTime())},wu=["Min","Sen","Sel","Rab","Kam","Jum","Sab"],Tu=n=>{const[e,t]=_.useState(n);return{selectedDate:e,handlePrevMonth:()=>{const c=new Date(e);c.setMonth(e.getMonth()-1),t(c)},handleNextMonth:()=>{const c=new Date(e);c.setMonth(e.getMonth()+1),t(c)},handleDateClick:(c,u,p,g)=>{const h=new Date(parseInt(p,10),parseInt(u,10),parseInt(c,10));t(h),g(Vo(h))},isSelectedDate:(c,u,p)=>parseInt(p,10)===e.getFullYear()&&parseInt(u,10)===e.getMonth()+1&&parseInt(c,10)===e.getDate(),setDate:c=>{t(c)}}},Yo=({onSelect:n,defaultDate:e,full:t=!1})=>{const r=_.useRef(null),s=Go(r),i=wa(e)?new Date(e):new Date,{selectedDate:a,handlePrevMonth:l,handleNextMonth:c,handleDateClick:u,isSelectedDate:p,setDate:g}=Tu(i),[h,m]=_.useState(Rr(i.getMonth(),i.getFullYear()));_.useEffect(()=>{if(e&&wa(e)){const y=new Date(e);g(y)}},[e,g]),_.useEffect(()=>{m(Rr(a.getMonth(),a.getFullYear()))},[a]);const E=(y,N)=>{const T=parseInt(y,10),A=T+1;return h.map((k,D)=>k.value!==""?d.jsx("div",{className:`calendar-day ${p(k.value,A.toString(),N)?"selected-date":""}`,onClick:()=>{const v=new Date(parseInt(N,10),T,parseInt(k.value,10)),S=t?Eu(v):Vo(v);u(k.value,y,N,()=>n(S))},children:k.label},`day-${D}`):d.jsx("div",{className:"calendar-day empty"},`day-${D}`))};return d.jsxs("div",{className:`date-picker shadow-sm ${s?"position-top":""}`,ref:r,children:[d.jsxs("div",{className:"calendar-nav",children:[d.jsx("button",{type:"button",className:"btn rounded-circle",onClick:l,children:d.jsx(yu,{size:16})}),d.jsxs("div",{className:"calendar-select",children:[d.jsx(Qe,{className:"select-month",name:"month",size:"sm",options:Wo(),value:(a.getMonth()+1).toString(),onChange:y=>{const N=parseInt(y.target.value,10)-1,T=new Date(a.getFullYear(),N,a.getDate());g(T),m(Rr(N,T.getFullYear()))}}),d.jsx(Qe,{className:"select-year",name:"year",size:"sm",options:Ko(),value:a.getFullYear().toString(),onChange:y=>{const N=parseInt(y.target.value,10),T=new Date(N,a.getMonth(),a.getDate());g(T),m(Rr(T.getMonth(),N))}})]}),d.jsx("button",{type:"button",className:"btn rounded-circle",onClick:c,children:d.jsx(xu,{size:16})})]}),d.jsxs("div",{className:"calendar",children:[d.jsx("div",{className:"calendar-header",children:wu.map((y,N)=>d.jsx("div",{className:"calendar-day-name",children:y},`day-${N}`))}),d.jsx("div",{className:"calendar-body",children:E(a.getMonth().toString(),a.getFullYear().toString())})]})]})},Xo=_.forwardRef(({name:n,label:e,message:t,floatingLabel:r,locale:s="id",error:i,value:a,...l},c)=>{const u=A=>{if(!A)return new Date;const k=new Date(A);return isNaN(k.getTime())?new Date:k},p=u(a),[g,h]=_.useState({day:p.getDate(),month:p.getMonth()+1,year:p.getFullYear()});_.useEffect(()=>{if(a){const A=u(a);h({day:A.getDate(),month:A.getMonth()+1,year:A.getFullYear()})}},[a]),_.useEffect(()=>{const A=new Date(g.year,g.month,0).getDate();g.day>A&&h(k=>({...k,day:A}))},[g.month,g.year]);const m=(A,k)=>{const D=parseInt(k,10);if(isNaN(D))return;const v={...g,[A]:D};if(h(v),l.onChange){const S=`${v.year}-${String(v.month).padStart(2,"0")}-${String(v.day).padStart(2,"0")}`;l.onChange({target:{name:n,value:S}})}},E=_.useMemo(()=>Nu(g.month-1,g.year),[g.month,g.year]),y=_.useMemo(()=>Wo(s),[s]),N=_.useMemo(()=>Ko(),[]),T=d.jsxs("label",{htmlFor:n,children:[e," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]});return d.jsxs(d.Fragment,{children:[!r&&T,d.jsxs("div",{className:"row",ref:c,children:[d.jsx("div",{className:"col-md-3",children:d.jsx(Qe,{name:`${n}-day`,disabled:l.disabled,options:E,value:g.day.toString(),onChange:A=>m("day",A.target.value),"aria-label":"Day"})}),d.jsx("div",{className:"col-md-5",children:d.jsx(Qe,{name:`${n}-month`,disabled:l.disabled,options:y,value:g.month.toString(),onChange:A=>m("month",A.target.value),"aria-label":"Month"})}),d.jsx("div",{className:"col-md-4",children:d.jsx(Qe,{name:`${n}-year`,disabled:l.disabled,options:N,value:g.year.toString(),onChange:A=>m("year",A.target.value),"aria-label":"Year"})})]}),r&&T,i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});Xo.displayName="DropdownDatePicker";const Zo=({onSelect:n,defaultTime:e,format24:t=!0})=>{const r=_.useRef(null),s=Go(r),i=T=>{if(T){const[k,D]=T.split(":");return{hours:parseInt(k,10),minutes:parseInt(D,10)}}const A=new Date;return{hours:A.getHours(),minutes:A.getMinutes()}},a=i(e),[l,c]=_.useState(a.hours),[u,p]=_.useState(a.minutes);_.useEffect(()=>{if(e){const T=i(e);c(T.hours),p(T.minutes)}},[e]);const g=()=>{const T=[],A=t?23:12,k=t?0:1;for(let D=k;D<=A;D++){const v=D.toString().padStart(2,"0");T.push({value:v,label:v})}return T},h=()=>{const T=[];for(let A=0;A<60;A++){const k=A.toString().padStart(2,"0");T.push({value:k,label:k})}return T},m=(T,A)=>{const k=T.toString().padStart(2,"0"),D=A.toString().padStart(2,"0");return`${k}:${D}`},E=T=>{const A=parseInt(T.target.value,10);c(A)},y=T=>{const A=parseInt(T.target.value,10);p(A)},N=()=>{const T=m(l,u);n(T)};return d.jsxs("div",{className:`time-picker shadow-sm ${s?"position-top":""}`,ref:r,children:[d.jsx("div",{className:"time-picker-header",children:d.jsx("h6",{className:"mb-0",children:"Pilih Waktu"})}),d.jsx("div",{className:"time-picker-body",children:d.jsxs("div",{className:"time-select-group",children:[d.jsxs("div",{className:"time-select-item",children:[d.jsx("label",{className:"time-label",children:"Jam"}),d.jsx(Qe,{className:"select-hour",name:"hour",size:"sm",options:g(),value:l.toString().padStart(2,"0"),onChange:E})]}),d.jsx("div",{className:"time-separator",children:":"}),d.jsxs("div",{className:"time-select-item",children:[d.jsx("label",{className:"time-label",children:"Menit"}),d.jsx(Qe,{className:"select-minute",name:"minute",size:"sm",options:h(),value:u.toString().padStart(2,"0"),onChange:y})]})]})}),d.jsx("div",{className:"time-picker-footer",children:d.jsx("button",{type:"button",className:"btn btn-primary btn-sm w-100",onClick:N,children:"Pilih"})})]})},Au=({type:n="text",className:e,...t})=>d.jsx("input",{type:n,className:`clear ${e}`,...t}),di=_.forwardRef(({className:n="",name:e,label:t,message:r,floatingLabel:s,error:i,id:a,...l},c)=>{const u=a||e;return d.jsxs(d.Fragment,{children:[!s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("input",{type:"text",className:`form-control ${n}`,id:u,name:e,placeholder:s?"":" ",ref:c,...l}),s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]})}),Su=_.forwardRef(({className:n,name:e,label:t,message:r,floatingLabel:s,error:i,actionIcon:a,actionButtonLabel:l,actionButtonHandler:c,...u},p)=>d.jsxs(d.Fragment,{children:[!s&&t&&d.jsxs("label",{htmlFor:e,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:"input-group-icon",children:[d.jsx("input",{type:"text",className:`form-control pr-35 ${n}`,id:e,name:e,placeholder:s?"":" ",ref:p,...u}),a&&d.jsx(Pe,{role:"button",className:"icon",onClick:c,tabIndex:0,"aria-label":l,disabled:u.disabled,children:a})]}),s&&t&&d.jsxs("label",{htmlFor:e,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]})),Jo=_.forwardRef(({name:n,label:e,message:t,floatingLabel:r,full:s,error:i,onChange:a,value:l,...c},u)=>{const[p,g]=_.useState(!1),h=_.useRef(null),m=_.useRef(null);_.useImperativeHandle(u,()=>h.current),_.useEffect(()=>{l!==void 0&&h.current&&(h.current.value=l)},[l]);const E=y=>{h.current&&(h.current.value=y,a?.({target:h.current,currentTarget:h.current}),g(!1))};return wt([m],()=>g(!1)),d.jsxs(d.Fragment,{children:[!r&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:"input-group-icon",children:[d.jsx("input",{type:"text",className:"form-control",id:n,name:n,placeholder:r?"":" ",ref:h,onChange:a,...c}),d.jsx(Pe,{role:"button",className:"icon",onClick:y=>{y.stopPropagation(),g(N=>!N)},"aria-label":"Open date picker",disabled:c.disabled,children:d.jsx(bu,{})})]}),d.jsx("div",{ref:m,className:`date-picker-container ${p?"show":"hide"}`,style:{display:p?"block":"none"},children:d.jsx(Yo,{full:s,onSelect:E,defaultDate:l||void 0})}),r&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});Jo.displayName="InputDate";const Qo=_.forwardRef(({name:n,label:e,message:t,floatingLabel:r,format24:s=!0,error:i,onChange:a,value:l,...c},u)=>{const[p,g]=_.useState(!1),h=_.useRef(null),m=_.useRef(null);_.useImperativeHandle(u,()=>h.current),_.useEffect(()=>{l!==void 0&&h.current&&(h.current.value=l)},[l]);const E=y=>{h.current&&(h.current.value=y,a?.({target:h.current,currentTarget:h.current}),g(!1))};return wt([m],()=>g(!1)),d.jsxs(d.Fragment,{children:[!r&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:"input-group-icon",children:[d.jsx("input",{type:"text",className:"form-control",id:n,name:n,placeholder:r?"":" ",ref:h,onChange:a,...c}),d.jsx(Pe,{role:"button",className:"icon",onClick:y=>{y.stopPropagation(),g(N=>!N)},"aria-label":"Open time picker",disabled:c.disabled,children:d.jsx(vu,{})})]}),d.jsx("div",{ref:m,className:`time-picker-container ${p?"show":"hide"}`,style:{display:p?"block":"none"},children:d.jsx(Zo,{format24:s,onSelect:E,defaultTime:l||void 0})}),r&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});Qo.displayName="InputTime";const el=_.forwardRef(({className:n,name:e,label:t,message:r,accept:s,floatingLabel:i,error:a,onChange:l,id:c,...u},p)=>{const g=c||e,h=m=>{l&&l(m)};return d.jsxs(d.Fragment,{children:[!i&&t&&d.jsxs("label",{htmlFor:g,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("input",{type:"file",className:`form-control ${n||""}`,id:g,name:e,accept:s,onChange:h,ref:p,...u}),i&&t&&d.jsxs("label",{htmlFor:g,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),a?d.jsx("small",{className:"form-message text-danger",children:a}):r&&d.jsx("small",{className:"form-message",children:r})]})});el.displayName="InputFile";const Cu=()=>d.jsx("div",{children:"InputImageSize"}),tl=_.forwardRef(({className:n,name:e,label:t,message:r,floatingLabel:s,error:i,id:a,...l},c)=>{const u=a||e;return d.jsxs(d.Fragment,{children:[!s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("textarea",{className:`form-control ${n||""}`,id:u,name:e,placeholder:s?"":" ",ref:c,...l}),s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]})});tl.displayName="InputTextArea";const nl=_.forwardRef(({className:n,name:e,label:t,message:r,options:s,error:i,...a},l)=>d.jsxs(d.Fragment,{children:[t&&d.jsxs("label",{htmlFor:e,children:[t," ",a.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("div",{className:`form-control ${n||""}`,children:s.map(c=>{const u=`${zo()}-${c.value}`;return d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("input",{type:"radio",id:u,name:e,value:c.value,ref:l,...a}),d.jsx("label",{htmlFor:u,children:c.label})]},c.value)})}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]}));nl.displayName="Radio";const rl=_.forwardRef(({name:n,label:e,message:t,size:r="md",options:s,selectedValue:i,error:a,required:l,...c},u)=>d.jsxs(d.Fragment,{children:[e&&d.jsxs("label",{htmlFor:n,children:[e," ",l&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("div",{className:"btn-group","data-toggle":"buttons",children:s.map(p=>{const g=p.value.toString()===i?.toString();return d.jsxs("label",{className:`btn auto btn-default btn-${r} ${g?"active":""}`,children:[d.jsx("input",{type:"radio",id:p.value.toString(),name:n,value:p.value.toString(),ref:u,...c}),d.jsx("span",{children:p.label})]},p.value.toString())})}),a?d.jsx("small",{className:"form-message text-danger",children:a}):t&&d.jsx("small",{className:"form-message",children:t})]}));rl.displayName="RadioButtonGroup";const sl=_.forwardRef(({name:n,label:e,message:t,selectLabel:r,floatingLabel:s=!1,error:i,options:a,value:l=[],onChange:c,required:u,disabled:p,className:g},h)=>{const[m,E]=_.useState(!1),[y,N]=_.useState(l),T=_.useRef(null),A=_.useRef(null);_.useEffect(()=>{JSON.stringify(l)!==JSON.stringify(y)&&N(l)},[y,l]);const k=v=>{const S=y.includes(v)?y.filter(j=>j!==v):[...y,v];N(S),c&&c({target:{name:n,value:S}})};wt([T],()=>{E(!1)}),Li(m,A);const D=y.map(v=>a.find(S=>S.value===v)?.label).filter(Boolean).join(", ");return d.jsxs(d.Fragment,{children:[e&&!s&&d.jsxs("label",{htmlFor:n,children:[e," ",u&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:`dropdown-select-container ${g||""}`,ref:T,children:[d.jsxs("div",{className:`dropdown-header ${m?"open":""} ${p?"disabled":""}`,onClick:()=>!p&&E(!m),ref:h,children:[d.jsx("span",{className:"label",children:D||r||"Select an option"}),d.jsx(Kn,{className:`arrow ${m?"open":""}`})]}),m&&!p&&d.jsx("div",{className:"dropdown-options scrollbar",ref:A,role:"listbox",children:a?.map(v=>d.jsx("div",{className:`option ${y.includes(v.value)?"selected":""}`,children:d.jsx(Ri,{name:v.value.toString(),label:v.label,checked:y.includes(v.value),onChange:()=>k(v.value)})},v.value))})]}),e&&s&&d.jsxs("label",{htmlFor:n,children:[e," ",u&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});sl.displayName="SelectMultiple";const il=_.forwardRef((n,e)=>{const{id:t,name:r,label:s,message:i,selectLabel:a="Select an option",size:l="md",floatingLabel:c=!1,error:u,options:p=[],value:g="",onChange:h,onBlur:m,required:E,disabled:y,selectSearch:N="",setSelectSearch:T,isLoading:A=!1}=n,k=t||r,[D,v]=_.useState(!1),S=_.useRef(null),j=_.useRef(null),B=_.useRef(null);_.useImperativeHandle(e,()=>B.current),wt([S],()=>v(!1)),Li(D,j);const z=g?p.find(b=>b.value===g)?.label:a,ee=b=>{h?.({target:{name:r,value:b}}),B.current&&(B.current.value=String(b),B.current.dispatchEvent(new Event("change",{bubbles:!0}))),v(!1)};return c?d.jsxs("div",{className:"form-floating",children:[d.jsxs("select",{ref:B,name:r,value:g,onChange:h,onBlur:m,required:E,disabled:y,style:{position:"absolute",left:"-9999px"},tabIndex:-1,children:[d.jsx("option",{value:"",children:"Select an option"}),p.map(b=>d.jsx("option",{value:b.value,children:b.label},b.value))]}),d.jsxs("div",{className:`dropdown-select-container ${l}`,ref:S,children:[d.jsxs("div",{className:`dropdown-header ${D?"open":""} ${y?"disabled":""}`,onClick:()=>!y&&v(!D),"aria-haspopup":"listbox","aria-expanded":D,children:[d.jsx("span",{className:"label",children:z}),d.jsx(Kn,{className:"arrow"})]}),D&&d.jsxs("div",{className:"dropdown-options scrollbar",ref:j,role:"listbox",children:[d.jsx("div",{className:"search-input",children:d.jsx(di,{name:"search",placeholder:"Ketik untuk mencari..",type:"search",autoFocus:!0,value:N,onChange:b=>T?.(b.currentTarget.value)})}),A?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Loading options..."}):p.length===0?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Tidak ada hasil ditemukan"}):p.map(b=>d.jsx("div",{className:`option ${g===b.value?"selected":""}`,onClick:()=>ee(b.value),role:"option","aria-selected":g===b.value,children:b.label},b.value))]})]}),d.jsxs("label",{htmlFor:k,children:[s," ",E&&d.jsx("span",{className:"text-danger",children:"*"})]}),u?d.jsx("small",{className:"form-message text-danger",children:u}):i&&d.jsx("small",{className:"form-message",children:i})]}):d.jsxs("div",{className:"form-group",children:[s&&d.jsxs("label",{htmlFor:k,children:[s," ",E&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("select",{ref:B,name:r,value:g,onChange:h,onBlur:m,required:E,disabled:y,style:{position:"absolute",left:"-9999px"},tabIndex:-1,children:[d.jsx("option",{value:"",children:"Select an option"}),p.map(b=>d.jsx("option",{value:b.value,children:b.label},b.value))]}),d.jsxs("div",{className:`dropdown-select-container ${l}`,ref:S,children:[d.jsxs("div",{className:`dropdown-header ${D?"open":""} ${y?"disabled":""}`,onClick:()=>!y&&v(!D),"aria-haspopup":"listbox","aria-expanded":D,children:[d.jsx("span",{className:"label",children:z}),d.jsx(Kn,{className:"arrow"})]}),D&&d.jsxs("div",{className:"dropdown-options scrollbar",ref:j,role:"listbox",children:[d.jsx("div",{className:"search-input",children:d.jsx(di,{name:"search",placeholder:"Ketik untuk mencari..",type:"search",autoFocus:!0,value:N,onChange:b=>T?.(b.currentTarget.value)})}),A?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Loading options..."}):p.length===0?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Tidak ada hasil ditemukan"}):p.map(b=>d.jsx("div",{className:`option ${g===b.value?"selected":""}`,onClick:()=>ee(b.value),role:"option","aria-selected":g===b.value,children:b.label},b.value))]})]}),u?d.jsx("small",{className:"form-message text-danger",children:u}):i&&d.jsx("small",{className:"form-message",children:i})]})});il.displayName="SelectWithSearch";const al=_.forwardRef(({name:n,className:e="",error:t,checked:r=!1,onChange:s,...i},a)=>{const l=c=>{s&&s(c)};return d.jsx(d.Fragment,{children:d.jsxs("label",{className:`switch ${e} ${t?"has-error":""}`,children:[d.jsx("input",{type:"checkbox",id:n,name:n,ref:a,checked:r,onChange:l,disabled:i.disabled,...i}),d.jsx("span",{className:"slider round"})]})})});al.displayName="Switch";var ol=typeof global=="object"&&global&&global.Object===Object&&global,_u=typeof self=="object"&&self&&self.Object===Object&&self,nt=ol||_u||Function("return this")(),Nt=nt.Symbol,ll=Object.prototype,Ou=ll.hasOwnProperty,Ru=ll.toString,Fn=Nt?Nt.toStringTag:void 0;function Lu(n){var e=Ou.call(n,Fn),t=n[Fn];try{n[Fn]=void 0;var r=!0}catch{}var s=Ru.call(n);return r&&(e?n[Fn]=t:delete n[Fn]),s}var ku=Object.prototype,ju=ku.toString;function Iu(n){return ju.call(n)}var qu="[object Null]",Mu="[object Undefined]",Ta=Nt?Nt.toStringTag:void 0;function mn(n){return n==null?n===void 0?Mu:qu:Ta&&Ta in Object(n)?Lu(n):Iu(n)}function ut(n){return n!=null&&typeof n=="object"}var qt=Array.isArray;function Tt(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function cl(n){return n}var Du="[object AsyncFunction]",Pu="[object Function]",$u="[object GeneratorFunction]",Bu="[object Proxy]";function ki(n){if(!Tt(n))return!1;var e=mn(n);return e==Pu||e==$u||e==Du||e==Bu}var Xs=nt["__core-js_shared__"],Aa=function(){var n=/[^.]+$/.exec(Xs&&Xs.keys&&Xs.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Fu(n){return!!Aa&&Aa in n}var Uu=Function.prototype,Hu=Uu.toString;function $t(n){if(n!=null){try{return Hu.call(n)}catch{}try{return n+""}catch{}}return""}var zu=/[\\^$.*+?()[\]{}|]/g,Gu=/^\[object .+?Constructor\]$/,Vu=Function.prototype,Wu=Object.prototype,Ku=Vu.toString,Yu=Wu.hasOwnProperty,Xu=RegExp("^"+Ku.call(Yu).replace(zu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zu(n){if(!Tt(n)||Fu(n))return!1;var e=ki(n)?Xu:Gu;return e.test($t(n))}function Ju(n,e){return n?.[e]}function Bt(n,e){var t=Ju(n,e);return Zu(t)?t:void 0}var fi=Bt(nt,"WeakMap"),Sa=Object.create,Qu=function(){function n(){}return function(e){if(!Tt(e))return{};if(Sa)return Sa(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function eh(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function th(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var nh=800,rh=16,sh=Date.now;function ih(n){var e=0,t=0;return function(){var r=sh(),s=rh-(r-t);if(t=r,s>0){if(++e>=nh)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function ah(n){return function(){return n}}var zr=function(){try{var n=Bt(Object,"defineProperty");return n({},"",{}),n}catch{}}(),oh=zr?function(n,e){return zr(n,"toString",{configurable:!0,enumerable:!1,value:ah(e),writable:!0})}:cl,lh=ih(oh);function ch(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var uh=9007199254740991,hh=/^(?:0|[1-9]\d*)$/;function ul(n,e){var t=typeof n;return e=e??uh,!!e&&(t=="number"||t!="symbol"&&hh.test(n))&&n>-1&&n%1==0&&n<e}function ji(n,e,t){e=="__proto__"&&zr?zr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function rr(n,e){return n===e||n!==n&&e!==e}var dh=Object.prototype,fh=dh.hasOwnProperty;function hl(n,e,t){var r=n[e];(!(fh.call(n,e)&&rr(r,t))||t===void 0&&!(e in n))&&ji(n,e,t)}function ph(n,e,t,r){var s=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var l=e[i],c=void 0;c===void 0&&(c=n[l]),s?ji(t,l,c):hl(t,l,c)}return t}var Ca=Math.max;function gh(n,e,t){return e=Ca(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,i=Ca(r.length-e,0),a=Array(i);++s<i;)a[s]=r[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=r[s];return l[e]=t(a),eh(n,this,l)}}function mh(n,e){return lh(gh(n,e,cl),n+"")}var bh=9007199254740991;function dl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=bh}function Xr(n){return n!=null&&dl(n.length)&&!ki(n)}function vh(n,e,t){if(!Tt(t))return!1;var r=typeof e;return(r=="number"?Xr(t)&&ul(e,t.length):r=="string"&&e in t)?rr(t[e],n):!1}function yh(n){return mh(function(e,t){var r=-1,s=t.length,i=s>1?t[s-1]:void 0,a=s>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(s--,i):void 0,a&&vh(t[0],t[1],a)&&(i=s<3?void 0:i,s=1),e=Object(e);++r<s;){var l=t[r];l&&n(e,l,r,i)}return e})}var xh=Object.prototype;function Ii(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||xh;return n===t}function Eh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Nh="[object Arguments]";function _a(n){return ut(n)&&mn(n)==Nh}var fl=Object.prototype,wh=fl.hasOwnProperty,Th=fl.propertyIsEnumerable,pi=_a(function(){return arguments}())?_a:function(n){return ut(n)&&wh.call(n,"callee")&&!Th.call(n,"callee")};function Ah(){return!1}var pl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oa=pl&&typeof module=="object"&&module&&!module.nodeType&&module,Sh=Oa&&Oa.exports===pl,Ra=Sh?nt.Buffer:void 0,Ch=Ra?Ra.isBuffer:void 0,Xn=Ch||Ah,_h="[object Arguments]",Oh="[object Array]",Rh="[object Boolean]",Lh="[object Date]",kh="[object Error]",jh="[object Function]",Ih="[object Map]",qh="[object Number]",Mh="[object Object]",Dh="[object RegExp]",Ph="[object Set]",$h="[object String]",Bh="[object WeakMap]",Fh="[object ArrayBuffer]",Uh="[object DataView]",Hh="[object Float32Array]",zh="[object Float64Array]",Gh="[object Int8Array]",Vh="[object Int16Array]",Wh="[object Int32Array]",Kh="[object Uint8Array]",Yh="[object Uint8ClampedArray]",Xh="[object Uint16Array]",Zh="[object Uint32Array]",fe={};fe[Hh]=fe[zh]=fe[Gh]=fe[Vh]=fe[Wh]=fe[Kh]=fe[Yh]=fe[Xh]=fe[Zh]=!0;fe[_h]=fe[Oh]=fe[Fh]=fe[Rh]=fe[Uh]=fe[Lh]=fe[kh]=fe[jh]=fe[Ih]=fe[qh]=fe[Mh]=fe[Dh]=fe[Ph]=fe[$h]=fe[Bh]=!1;function Jh(n){return ut(n)&&dl(n.length)&&!!fe[mn(n)]}function qi(n){return function(e){return n(e)}}var gl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vn=gl&&typeof module=="object"&&module&&!module.nodeType&&module,Qh=Vn&&Vn.exports===gl,Zs=Qh&&ol.process,pn=function(){try{var n=Vn&&Vn.require&&Vn.require("util").types;return n||Zs&&Zs.binding&&Zs.binding("util")}catch{}}(),La=pn&&pn.isTypedArray,Mi=La?qi(La):Jh,ed=Object.prototype,td=ed.hasOwnProperty;function ml(n,e){var t=qt(n),r=!t&&pi(n),s=!t&&!r&&Xn(n),i=!t&&!r&&!s&&Mi(n),a=t||r||s||i,l=a?Eh(n.length,String):[],c=l.length;for(var u in n)(e||td.call(n,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ul(u,c)))&&l.push(u);return l}function bl(n,e){return function(t){return n(e(t))}}var nd=bl(Object.keys,Object),rd=Object.prototype,sd=rd.hasOwnProperty;function id(n){if(!Ii(n))return nd(n);var e=[];for(var t in Object(n))sd.call(n,t)&&t!="constructor"&&e.push(t);return e}function ad(n){return Xr(n)?ml(n):id(n)}function od(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var ld=Object.prototype,cd=ld.hasOwnProperty;function ud(n){if(!Tt(n))return od(n);var e=Ii(n),t=[];for(var r in n)r=="constructor"&&(e||!cd.call(n,r))||t.push(r);return t}function vl(n){return Xr(n)?ml(n,!0):ud(n)}var Zn=Bt(Object,"create");function hd(){this.__data__=Zn?Zn(null):{},this.size=0}function dd(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var fd="__lodash_hash_undefined__",pd=Object.prototype,gd=pd.hasOwnProperty;function md(n){var e=this.__data__;if(Zn){var t=e[n];return t===fd?void 0:t}return gd.call(e,n)?e[n]:void 0}var bd=Object.prototype,vd=bd.hasOwnProperty;function yd(n){var e=this.__data__;return Zn?e[n]!==void 0:vd.call(e,n)}var xd="__lodash_hash_undefined__";function Ed(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Zn&&e===void 0?xd:e,this}function Mt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Mt.prototype.clear=hd;Mt.prototype.delete=dd;Mt.prototype.get=md;Mt.prototype.has=yd;Mt.prototype.set=Ed;function Nd(){this.__data__=[],this.size=0}function Zr(n,e){for(var t=n.length;t--;)if(rr(n[t][0],e))return t;return-1}var wd=Array.prototype,Td=wd.splice;function Ad(n){var e=this.__data__,t=Zr(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Td.call(e,t,1),--this.size,!0}function Sd(n){var e=this.__data__,t=Zr(e,n);return t<0?void 0:e[t][1]}function Cd(n){return Zr(this.__data__,n)>-1}function _d(n,e){var t=this.__data__,r=Zr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function dt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}dt.prototype.clear=Nd;dt.prototype.delete=Ad;dt.prototype.get=Sd;dt.prototype.has=Cd;dt.prototype.set=_d;var Jn=Bt(nt,"Map");function Od(){this.size=0,this.__data__={hash:new Mt,map:new(Jn||dt),string:new Mt}}function Rd(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Jr(n,e){var t=n.__data__;return Rd(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Ld(n){var e=Jr(this,n).delete(n);return this.size-=e?1:0,e}function kd(n){return Jr(this,n).get(n)}function jd(n){return Jr(this,n).has(n)}function Id(n,e){var t=Jr(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Ft(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ft.prototype.clear=Od;Ft.prototype.delete=Ld;Ft.prototype.get=kd;Ft.prototype.has=jd;Ft.prototype.set=Id;function qd(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var yl=bl(Object.getPrototypeOf,Object),Md="[object Object]",Dd=Function.prototype,Pd=Object.prototype,xl=Dd.toString,$d=Pd.hasOwnProperty,Bd=xl.call(Object);function Fd(n){if(!ut(n)||mn(n)!=Md)return!1;var e=yl(n);if(e===null)return!0;var t=$d.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&xl.call(t)==Bd}function Ud(){this.__data__=new dt,this.size=0}function Hd(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function zd(n){return this.__data__.get(n)}function Gd(n){return this.__data__.has(n)}var Vd=200;function Wd(n,e){var t=this.__data__;if(t instanceof dt){var r=t.__data__;if(!Jn||r.length<Vd-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Ft(r)}return t.set(n,e),this.size=t.size,this}function et(n){var e=this.__data__=new dt(n);this.size=e.size}et.prototype.clear=Ud;et.prototype.delete=Hd;et.prototype.get=zd;et.prototype.has=Gd;et.prototype.set=Wd;var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ka=El&&typeof module=="object"&&module&&!module.nodeType&&module,Kd=ka&&ka.exports===El,ja=Kd?nt.Buffer:void 0,Ia=ja?ja.allocUnsafe:void 0;function Nl(n,e){if(e)return n.slice();var t=n.length,r=Ia?Ia(t):new n.constructor(t);return n.copy(r),r}function Yd(n,e){for(var t=-1,r=n==null?0:n.length,s=0,i=[];++t<r;){var a=n[t];e(a,t,n)&&(i[s++]=a)}return i}function Xd(){return[]}var Zd=Object.prototype,Jd=Zd.propertyIsEnumerable,qa=Object.getOwnPropertySymbols,Qd=qa?function(n){return n==null?[]:(n=Object(n),Yd(qa(n),function(e){return Jd.call(n,e)}))}:Xd;function ef(n,e,t){var r=e(n);return qt(n)?r:qd(r,t(n))}function gi(n){return ef(n,ad,Qd)}var mi=Bt(nt,"DataView"),bi=Bt(nt,"Promise"),vi=Bt(nt,"Set"),Ma="[object Map]",tf="[object Object]",Da="[object Promise]",Pa="[object Set]",$a="[object WeakMap]",Ba="[object DataView]",nf=$t(mi),rf=$t(Jn),sf=$t(bi),af=$t(vi),of=$t(fi),He=mn;(mi&&He(new mi(new ArrayBuffer(1)))!=Ba||Jn&&He(new Jn)!=Ma||bi&&He(bi.resolve())!=Da||vi&&He(new vi)!=Pa||fi&&He(new fi)!=$a)&&(He=function(n){var e=mn(n),t=e==tf?n.constructor:void 0,r=t?$t(t):"";if(r)switch(r){case nf:return Ba;case rf:return Ma;case sf:return Da;case af:return Pa;case of:return $a}return e});var lf=Object.prototype,cf=lf.hasOwnProperty;function uf(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&cf.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Gr=nt.Uint8Array;function Di(n){var e=new n.constructor(n.byteLength);return new Gr(e).set(new Gr(n)),e}function hf(n,e){var t=Di(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var df=/\w*$/;function ff(n){var e=new n.constructor(n.source,df.exec(n));return e.lastIndex=n.lastIndex,e}var Fa=Nt?Nt.prototype:void 0,Ua=Fa?Fa.valueOf:void 0;function pf(n){return Ua?Object(Ua.call(n)):{}}function wl(n,e){var t=e?Di(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var gf="[object Boolean]",mf="[object Date]",bf="[object Map]",vf="[object Number]",yf="[object RegExp]",xf="[object Set]",Ef="[object String]",Nf="[object Symbol]",wf="[object ArrayBuffer]",Tf="[object DataView]",Af="[object Float32Array]",Sf="[object Float64Array]",Cf="[object Int8Array]",_f="[object Int16Array]",Of="[object Int32Array]",Rf="[object Uint8Array]",Lf="[object Uint8ClampedArray]",kf="[object Uint16Array]",jf="[object Uint32Array]";function If(n,e,t){var r=n.constructor;switch(e){case wf:return Di(n);case gf:case mf:return new r(+n);case Tf:return hf(n);case Af:case Sf:case Cf:case _f:case Of:case Rf:case Lf:case kf:case jf:return wl(n,t);case bf:return new r;case vf:case Ef:return new r(n);case yf:return ff(n);case xf:return new r;case Nf:return pf(n)}}function Tl(n){return typeof n.constructor=="function"&&!Ii(n)?Qu(yl(n)):{}}var qf="[object Map]";function Mf(n){return ut(n)&&He(n)==qf}var Ha=pn&&pn.isMap,Df=Ha?qi(Ha):Mf,Pf="[object Set]";function $f(n){return ut(n)&&He(n)==Pf}var za=pn&&pn.isSet,Bf=za?qi(za):$f,Ff=1,Al="[object Arguments]",Uf="[object Array]",Hf="[object Boolean]",zf="[object Date]",Gf="[object Error]",Sl="[object Function]",Vf="[object GeneratorFunction]",Wf="[object Map]",Kf="[object Number]",Cl="[object Object]",Yf="[object RegExp]",Xf="[object Set]",Zf="[object String]",Jf="[object Symbol]",Qf="[object WeakMap]",ep="[object ArrayBuffer]",tp="[object DataView]",np="[object Float32Array]",rp="[object Float64Array]",sp="[object Int8Array]",ip="[object Int16Array]",ap="[object Int32Array]",op="[object Uint8Array]",lp="[object Uint8ClampedArray]",cp="[object Uint16Array]",up="[object Uint32Array]",de={};de[Al]=de[Uf]=de[ep]=de[tp]=de[Hf]=de[zf]=de[np]=de[rp]=de[sp]=de[ip]=de[ap]=de[Wf]=de[Kf]=de[Cl]=de[Yf]=de[Xf]=de[Zf]=de[Jf]=de[op]=de[lp]=de[cp]=de[up]=!0;de[Gf]=de[Sl]=de[Qf]=!1;function Fr(n,e,t,r,s,i){var a,l=e&Ff;if(a!==void 0)return a;if(!Tt(n))return n;var c=qt(n);if(c)a=uf(n);else{var u=He(n),p=u==Sl||u==Vf;if(Xn(n))return Nl(n,l);if(u==Cl||u==Al||p&&!s)a=p?{}:Tl(n);else{if(!de[u])return s?n:{};a=If(n,u,l)}}i||(i=new et);var g=i.get(n);if(g)return g;i.set(n,a),Bf(n)?n.forEach(function(E){a.add(Fr(E,e,t,E,n,i))}):Df(n)&&n.forEach(function(E,y){a.set(y,Fr(E,e,t,y,n,i))});var h=gi,m=c?void 0:h(n);return ch(m||n,function(E,y){m&&(y=E,E=n[y]),hl(a,y,Fr(E,e,t,y,n,i))}),a}var hp=1,dp=4;function hn(n){return Fr(n,hp|dp)}var fp="__lodash_hash_undefined__";function pp(n){return this.__data__.set(n,fp),this}function gp(n){return this.__data__.has(n)}function Vr(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Ft;++e<t;)this.add(n[e])}Vr.prototype.add=Vr.prototype.push=pp;Vr.prototype.has=gp;function mp(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function bp(n,e){return n.has(e)}var vp=1,yp=2;function _l(n,e,t,r,s,i){var a=t&vp,l=n.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var u=i.get(n),p=i.get(e);if(u&&p)return u==e&&p==n;var g=-1,h=!0,m=t&yp?new Vr:void 0;for(i.set(n,e),i.set(e,n);++g<l;){var E=n[g],y=e[g];if(r)var N=a?r(y,E,g,e,n,i):r(E,y,g,n,e,i);if(N!==void 0){if(N)continue;h=!1;break}if(m){if(!mp(e,function(T,A){if(!bp(m,A)&&(E===T||s(E,T,t,r,i)))return m.push(A)})){h=!1;break}}else if(!(E===y||s(E,y,t,r,i))){h=!1;break}}return i.delete(n),i.delete(e),h}function xp(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Ep(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Np=1,wp=2,Tp="[object Boolean]",Ap="[object Date]",Sp="[object Error]",Cp="[object Map]",_p="[object Number]",Op="[object RegExp]",Rp="[object Set]",Lp="[object String]",kp="[object Symbol]",jp="[object ArrayBuffer]",Ip="[object DataView]",Ga=Nt?Nt.prototype:void 0,Js=Ga?Ga.valueOf:void 0;function qp(n,e,t,r,s,i,a){switch(t){case Ip:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case jp:return!(n.byteLength!=e.byteLength||!i(new Gr(n),new Gr(e)));case Tp:case Ap:case _p:return rr(+n,+e);case Sp:return n.name==e.name&&n.message==e.message;case Op:case Lp:return n==e+"";case Cp:var l=xp;case Rp:var c=r&Np;if(l||(l=Ep),n.size!=e.size&&!c)return!1;var u=a.get(n);if(u)return u==e;r|=wp,a.set(n,e);var p=_l(l(n),l(e),r,s,i,a);return a.delete(n),p;case kp:if(Js)return Js.call(n)==Js.call(e)}return!1}var Mp=1,Dp=Object.prototype,Pp=Dp.hasOwnProperty;function $p(n,e,t,r,s,i){var a=t&Mp,l=gi(n),c=l.length,u=gi(e),p=u.length;if(c!=p&&!a)return!1;for(var g=c;g--;){var h=l[g];if(!(a?h in e:Pp.call(e,h)))return!1}var m=i.get(n),E=i.get(e);if(m&&E)return m==e&&E==n;var y=!0;i.set(n,e),i.set(e,n);for(var N=a;++g<c;){h=l[g];var T=n[h],A=e[h];if(r)var k=a?r(A,T,h,e,n,i):r(T,A,h,n,e,i);if(!(k===void 0?T===A||s(T,A,t,r,i):k)){y=!1;break}N||(N=h=="constructor")}if(y&&!N){var D=n.constructor,v=e.constructor;D!=v&&"constructor"in n&&"constructor"in e&&!(typeof D=="function"&&D instanceof D&&typeof v=="function"&&v instanceof v)&&(y=!1)}return i.delete(n),i.delete(e),y}var Bp=1,Va="[object Arguments]",Wa="[object Array]",Lr="[object Object]",Fp=Object.prototype,Ka=Fp.hasOwnProperty;function Up(n,e,t,r,s,i){var a=qt(n),l=qt(e),c=a?Wa:He(n),u=l?Wa:He(e);c=c==Va?Lr:c,u=u==Va?Lr:u;var p=c==Lr,g=u==Lr,h=c==u;if(h&&Xn(n)){if(!Xn(e))return!1;a=!0,p=!1}if(h&&!p)return i||(i=new et),a||Mi(n)?_l(n,e,t,r,s,i):qp(n,e,c,t,r,s,i);if(!(t&Bp)){var m=p&&Ka.call(n,"__wrapped__"),E=g&&Ka.call(e,"__wrapped__");if(m||E){var y=m?n.value():n,N=E?e.value():e;return i||(i=new et),s(y,N,t,r,i)}}return h?(i||(i=new et),$p(n,e,t,r,s,i)):!1}function Ol(n,e,t,r,s){return n===e?!0:n==null||e==null||!ut(n)&&!ut(e)?n!==n&&e!==e:Up(n,e,t,r,Ol,s)}function Hp(n){return function(e,t,r){for(var s=-1,i=Object(e),a=r(e),l=a.length;l--;){var c=a[++s];if(t(i[c],c,i)===!1)break}return e}}var zp=Hp();function yi(n,e,t){(t!==void 0&&!rr(n[e],t)||t===void 0&&!(e in n))&&ji(n,e,t)}function Gp(n){return ut(n)&&Xr(n)}function xi(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Vp(n){return ph(n,vl(n))}function Wp(n,e,t,r,s,i,a){var l=xi(n,t),c=xi(e,t),u=a.get(c);if(u){yi(n,t,u);return}var p=i?i(l,c,t+"",n,e,a):void 0,g=p===void 0;if(g){var h=qt(c),m=!h&&Xn(c),E=!h&&!m&&Mi(c);p=c,h||m||E?qt(l)?p=l:Gp(l)?p=th(l):m?(g=!1,p=Nl(c,!0)):E?(g=!1,p=wl(c,!0)):p=[]:Fd(c)||pi(c)?(p=l,pi(l)?p=Vp(l):(!Tt(l)||ki(l))&&(p=Tl(c))):g=!1}g&&(a.set(c,p),s(p,c,r,i,a),a.delete(c)),yi(n,t,p)}function Rl(n,e,t,r,s){n!==e&&zp(e,function(i,a){if(s||(s=new et),Tt(i))Wp(n,e,a,t,Rl,r,s);else{var l=r?r(xi(n,a),i,a+"",n,e,s):void 0;l===void 0&&(l=i),yi(n,a,l)}},vl)}function bt(n,e){return Ol(n,e)}var xt=yh(function(n,e,t){Rl(n,e,t)}),W=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(W||{});class tt{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const s=W.TYPE&W.ATTRIBUTE;this.scope=r.scope!=null?r.scope&W.LEVEL|s:W.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class dn extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const Ll=class Ei{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const s=this.query(t);if(s==null)throw new dn(`Unable to create ${t} blot`);const i=s,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(r),l=new i(e,a,r);return Ei.blots.set(l.domNode,l),l}find(e,t=!1){return Ei.find(e,t)}query(e,t=W.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&W.LEVEL&W.BLOCK?r=this.types.block:e&W.LEVEL&W.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(r=this.classes[s],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&W.LEVEL&r.scope&&t&W.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,s="attrName"in t;if(!r&&!s)throw new dn("Invalid definition");if(r&&t.blotName==="abstract")throw new dn("Cannot register abstract class");const i=r?t.blotName:s?t.attrName:void 0;return this.types[i]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};Ll.blots=new WeakMap;let gn=Ll;function Ya(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class Kp extends tt{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){Ya(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(Ya(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const We=Kp;function Qs(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class Yp extends tt{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Qs(this.keyName)]=t,!0):!1}remove(e){e.style[Qs(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Qs(this.keyName)];return this.canAdd(e,t)?t:""}}const At=Yp;class Xp{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=gn.find(this.domNode);if(e==null)return;const t=tt.keys(this.domNode),r=We.keys(this.domNode),s=At.keys(this.domNode);t.concat(r).concat(s).forEach(i=>{const a=e.scroll.query(i,W.ATTRIBUTE);a instanceof tt&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const Qr=Xp,kl=class{constructor(e,t){this.scroll=e,this.domNode=t,gn.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new dn("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),gn.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const i=this.isolate(e,t);if(this.scroll.query(r,W.BLOT)!=null&&s)i.wrap(r,s);else if(this.scroll.query(r,W.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);i.wrap(a),a.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),i=this.split(e);this.parent.insertBefore(s,i||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new dn(`Cannot wrap ${e}`);return r.appendChild(this),r}};kl.blotName="abstract";let jl=kl;const Il=class extends jl{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Il.scope=W.INLINE_BLOT;let Zp=Il;const Ae=Zp;class Jp{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),s=0;for(;r;){if(r===e)return s;s+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let s=r();for(;s;){const i=s.length();if(e<i||t&&e===i&&(s.next==null||s.next.length()!==0))return[s,e];e-=i,s=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[s,i]=this.find(e);let a=e-i;const l=this.iterator(s);let c=l();for(;c&&a<e+t;){const u=c.length();e>a?r(c,e-a,Math.min(t,a+u-e)):r(c,0,Math.min(u,e+t-a)),a+=u,c=l()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let s=r();for(;s;)t=e(t,s),s=r();return t}}function Xa(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(W.INLINE);return Array.from(n.childNodes).forEach(s=>{r.domNode.appendChild(s)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const ql=class mt extends jl{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,mt.uiClass&&this.uiNode.classList.add(mt.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Jp,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Xa(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof dn)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,i)=>{r.deleteAt(s,i)})}descendant(e,t=0){const[r,s]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,s]:r instanceof mt?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],i=r;return this.children.forEachAt(t,r,(a,l,c)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&s.push(a),a instanceof mt&&(s=s.concat(a.descendants(e,l,i))),i-=c}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===W.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof mt?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(i,a,l)=>{i.formatAt(a,l,r,s)})}insertAt(e,t,r){const[s,i]=this.children.find(e);if(s)s.insertAt(i,t,r);else{const a=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(a)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,s]=this.children.find(e,t),i=[[this,e]];return r instanceof mt?i.concat(r.path(s,t)):(r!=null&&i.push([r,s]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof mt&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,i,a)=>{const l=s.split(i,t);l!=null&&r.appendChild(l)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],s=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(r.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(i);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,a)=>i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let a=null;i.nextSibling!=null&&(a=this.scroll.find(i.nextSibling));const l=Xa(i,this.scroll);(l.next!==a||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,a||void 0))}),this.enforceAllowedChildren()}};ql.uiClass="";let Qp=ql;const Ge=Qp;function eg(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const an=class on extends Ge{static create(e){return super.create(e)}static formats(e,t){const r=t.query(on.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Qr(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof on||(r=r.wrap(on.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,W.INLINE);if(r==null)return;r instanceof tt?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.formats()[r]!=null||this.scroll.query(r,W.ATTRIBUTE)?this.isolate(e,t).format(r,s):super.formatAt(e,t,r,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof on&&r.prev===this&&eg(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof on&&this.attributes.move(r),r}};an.allowedChildren=[an,Ae],an.blotName="inline",an.scope=W.INLINE_BLOT,an.tagName="SPAN";let tg=an;const Pi=tg,ln=class Ni extends Ge{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Ni.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Qr(this.domNode)}format(e,t){const r=this.scroll.query(e,W.BLOCK);r!=null&&(r instanceof tt?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(Ni.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.scroll.query(r,W.BLOCK)!=null?this.format(r,s):super.formatAt(e,t,r,s)}insertAt(e,t,r){if(r==null||this.scroll.query(t,W.INLINE)!=null)super.insertAt(e,t,r);else{const s=this.split(e);if(s!=null){const i=this.scroll.create(t,r);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};ln.blotName="block",ln.scope=W.BLOCK_BLOT,ln.tagName="P",ln.allowedChildren=[Pi,ln,Ae];let ng=ln;const Qn=ng,wi=class extends Ge{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};wi.blotName="container",wi.scope=W.BLOCK_BLOT;let rg=wi;const es=rg;class sg extends Ae{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,s){e===0&&t===this.length()?this.format(r,s):super.formatAt(e,t,r,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const ke=sg,ig={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ag=100,cn=class extends Ge{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,ig),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=W.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,s){this.update(),super.formatAt(e,t,r,s)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const i=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&i(c.parent))},a=c=>{r.has(c.domNode)&&(c instanceof Ge&&c.children.forEach(a),r.delete(c.domNode),c.optimize(t))};let l=e;for(let c=0;l.length>0;c+=1){if(c>=ag)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const p=this.find(u.target,!0);p!=null&&(p.domNode===u.target&&(u.type==="childList"?(i(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(g=>{const h=this.find(g,!1);i(h,!1),h instanceof Ge&&h.children.forEach(m=>{i(m,!1)})})):u.type==="attributes"&&i(p.prev)),i(p))}),this.children.forEach(a),l=Array.from(this.observer.takeRecords()),s=l.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(s=>{const i=this.find(s.target,!0);return i==null?null:r.has(i.domNode)?(r.get(i.domNode).push(s),null):(r.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&r.has(s.domNode)&&s.update(r.get(s.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};cn.blotName="scroll",cn.defaultChild=Qn,cn.allowedChildren=[Qn,es],cn.scope=W.BLOCK_BLOT,cn.tagName="DIV";let og=cn;const $i=og,Ti=class Ml extends Ae{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Ml&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Ti.blotName="text",Ti.scope=W.INLINE_BLOT;let lg=Ti;const Wr=lg,cg=Object.freeze(Object.defineProperty({__proto__:null,Attributor:tt,AttributorStore:Qr,BlockBlot:Qn,ClassAttributor:We,ContainerBlot:es,EmbedBlot:ke,InlineBlot:Pi,LeafBlot:Ae,ParentBlot:Ge,Registry:gn,Scope:W,ScrollBlot:$i,StyleAttributor:At,TextBlot:Wr},Symbol.toStringTag,{value:"Module"}));var kr={exports:{}},ei,Za;function ug(){if(Za)return ei;Za=1;var n=-1,e=1,t=0;function r(b,q,w,R,M){if(b===q)return b?[[t,b]]:[];if(w!=null){var I=z(b,q,w);if(I)return I}var P=l(b,q),U=b.substring(0,P);b=b.substring(P),q=q.substring(P),P=u(b,q);var K=b.substring(b.length-P);b=b.substring(0,b.length-P),q=q.substring(0,q.length-P);var C=s(b,q);return U&&C.unshift([t,U]),K&&C.push([t,K]),A(C,M),R&&g(C),C}function s(b,q){var w;if(!b)return[[e,q]];if(!q)return[[n,b]];var R=b.length>q.length?b:q,M=b.length>q.length?q:b,I=R.indexOf(M);if(I!==-1)return w=[[e,R.substring(0,I)],[t,M],[e,R.substring(I+M.length)]],b.length>q.length&&(w[0][0]=w[2][0]=n),w;if(M.length===1)return[[n,b],[e,q]];var P=p(b,q);if(P){var U=P[0],K=P[1],C=P[2],$=P[3],F=P[4],Z=r(U,C),J=r(K,$);return Z.concat([[t,F]],J)}return i(b,q)}function i(b,q){for(var w=b.length,R=q.length,M=Math.ceil((w+R)/2),I=M,P=2*M,U=new Array(P),K=new Array(P),C=0;C<P;C++)U[C]=-1,K[C]=-1;U[I+1]=0,K[I+1]=0;for(var $=w-R,F=$%2!==0,Z=0,J=0,H=0,le=0,ue=0;ue<M;ue++){for(var Y=-ue+Z;Y<=ue-J;Y+=2){var ne=I+Y,re;Y===-ue||Y!==ue&&U[ne-1]<U[ne+1]?re=U[ne+1]:re=U[ne-1]+1;for(var ie=re-Y;re<w&&ie<R&&b.charAt(re)===q.charAt(ie);)re++,ie++;if(U[ne]=re,re>w)J+=2;else if(ie>R)Z+=2;else if(F){var ce=I+$-Y;if(ce>=0&&ce<P&&K[ce]!==-1){var he=w-K[ce];if(re>=he)return a(b,q,re,ie)}}}for(var pe=-ue+H;pe<=ue-le;pe+=2){var ce=I+pe,he;pe===-ue||pe!==ue&&K[ce-1]<K[ce+1]?he=K[ce+1]:he=K[ce-1]+1;for(var Ee=he-pe;he<w&&Ee<R&&b.charAt(w-he-1)===q.charAt(R-Ee-1);)he++,Ee++;if(K[ce]=he,he>w)le+=2;else if(Ee>R)H+=2;else if(!F){var ne=I+$-pe;if(ne>=0&&ne<P&&U[ne]!==-1){var re=U[ne],ie=I+re-ne;if(he=w-he,re>=he)return a(b,q,re,ie)}}}}return[[n,b],[e,q]]}function a(b,q,w,R){var M=b.substring(0,w),I=q.substring(0,R),P=b.substring(w),U=q.substring(R),K=r(M,I),C=r(P,U);return K.concat(C)}function l(b,q){if(!b||!q||b.charAt(0)!==q.charAt(0))return 0;for(var w=0,R=Math.min(b.length,q.length),M=R,I=0;w<M;)b.substring(I,M)==q.substring(I,M)?(w=M,I=w):R=M,M=Math.floor((R-w)/2+w);return k(b.charCodeAt(M-1))&&M--,M}function c(b,q){var w=b.length,R=q.length;if(w==0||R==0)return 0;w>R?b=b.substring(w-R):w<R&&(q=q.substring(0,w));var M=Math.min(w,R);if(b==q)return M;for(var I=0,P=1;;){var U=b.substring(M-P),K=q.indexOf(U);if(K==-1)return I;P+=K,(K==0||b.substring(M-P)==q.substring(0,P))&&(I=P,P++)}}function u(b,q){if(!b||!q||b.slice(-1)!==q.slice(-1))return 0;for(var w=0,R=Math.min(b.length,q.length),M=R,I=0;w<M;)b.substring(b.length-M,b.length-I)==q.substring(q.length-M,q.length-I)?(w=M,I=w):R=M,M=Math.floor((R-w)/2+w);return D(b.charCodeAt(b.length-M))&&M--,M}function p(b,q){var w=b.length>q.length?b:q,R=b.length>q.length?q:b;if(w.length<4||R.length*2<w.length)return null;function M(J,H,le){for(var ue=J.substring(le,le+Math.floor(J.length/4)),Y=-1,ne="",re,ie,ce,he;(Y=H.indexOf(ue,Y+1))!==-1;){var pe=l(J.substring(le),H.substring(Y)),Ee=u(J.substring(0,le),H.substring(0,Y));ne.length<Ee+pe&&(ne=H.substring(Y-Ee,Y)+H.substring(Y,Y+pe),re=J.substring(0,le-Ee),ie=J.substring(le+pe),ce=H.substring(0,Y-Ee),he=H.substring(Y+pe))}return ne.length*2>=J.length?[re,ie,ce,he,ne]:null}var I=M(w,R,Math.ceil(w.length/4)),P=M(w,R,Math.ceil(w.length/2)),U;if(!I&&!P)return null;P?I?U=I[4].length>P[4].length?I:P:U=P:U=I;var K,C,$,F;b.length>q.length?(K=U[0],C=U[1],$=U[2],F=U[3]):($=U[0],F=U[1],K=U[2],C=U[3]);var Z=U[4];return[K,C,$,F,Z]}function g(b){for(var q=!1,w=[],R=0,M=null,I=0,P=0,U=0,K=0,C=0;I<b.length;)b[I][0]==t?(w[R++]=I,P=K,U=C,K=0,C=0,M=b[I][1]):(b[I][0]==e?K+=b[I][1].length:C+=b[I][1].length,M&&M.length<=Math.max(P,U)&&M.length<=Math.max(K,C)&&(b.splice(w[R-1],0,[n,M]),b[w[R-1]+1][0]=e,R--,R--,I=R>0?w[R-1]:-1,P=0,U=0,K=0,C=0,M=null,q=!0)),I++;for(q&&A(b),T(b),I=1;I<b.length;){if(b[I-1][0]==n&&b[I][0]==e){var $=b[I-1][1],F=b[I][1],Z=c($,F),J=c(F,$);Z>=J?(Z>=$.length/2||Z>=F.length/2)&&(b.splice(I,0,[t,F.substring(0,Z)]),b[I-1][1]=$.substring(0,$.length-Z),b[I+1][1]=F.substring(Z),I++):(J>=$.length/2||J>=F.length/2)&&(b.splice(I,0,[t,$.substring(0,J)]),b[I-1][0]=e,b[I-1][1]=F.substring(0,F.length-J),b[I+1][0]=n,b[I+1][1]=$.substring(J),I++),I++}I++}}var h=/[^a-zA-Z0-9]/,m=/\s/,E=/[\r\n]/,y=/\n\r?\n$/,N=/^\r?\n\r?\n/;function T(b){function q(J,H){if(!J||!H)return 6;var le=J.charAt(J.length-1),ue=H.charAt(0),Y=le.match(h),ne=ue.match(h),re=Y&&le.match(m),ie=ne&&ue.match(m),ce=re&&le.match(E),he=ie&&ue.match(E),pe=ce&&J.match(y),Ee=he&&H.match(N);return pe||Ee?5:ce||he?4:Y&&!re&&ie?3:re||ie?2:Y||ne?1:0}for(var w=1;w<b.length-1;){if(b[w-1][0]==t&&b[w+1][0]==t){var R=b[w-1][1],M=b[w][1],I=b[w+1][1],P=u(R,M);if(P){var U=M.substring(M.length-P);R=R.substring(0,R.length-P),M=U+M.substring(0,M.length-P),I=U+I}for(var K=R,C=M,$=I,F=q(R,M)+q(M,I);M.charAt(0)===I.charAt(0);){R+=M.charAt(0),M=M.substring(1)+I.charAt(0),I=I.substring(1);var Z=q(R,M)+q(M,I);Z>=F&&(F=Z,K=R,C=M,$=I)}b[w-1][1]!=K&&(K?b[w-1][1]=K:(b.splice(w-1,1),w--),b[w][1]=C,$?b[w+1][1]=$:(b.splice(w+1,1),w--))}w++}}function A(b,q){b.push([t,""]);for(var w=0,R=0,M=0,I="",P="",U;w<b.length;){if(w<b.length-1&&!b[w][1]){b.splice(w,1);continue}switch(b[w][0]){case e:M++,P+=b[w][1],w++;break;case n:R++,I+=b[w][1],w++;break;case t:var K=w-M-R-1;if(q){if(K>=0&&S(b[K][1])){var C=b[K][1].slice(-1);if(b[K][1]=b[K][1].slice(0,-1),I=C+I,P=C+P,!b[K][1]){b.splice(K,1),w--;var $=K-1;b[$]&&b[$][0]===e&&(M++,P=b[$][1]+P,$--),b[$]&&b[$][0]===n&&(R++,I=b[$][1]+I,$--),K=$}}if(v(b[w][1])){var C=b[w][1].charAt(0);b[w][1]=b[w][1].slice(1),I+=C,P+=C}}if(w<b.length-1&&!b[w][1]){b.splice(w,1);break}if(I.length>0||P.length>0){I.length>0&&P.length>0&&(U=l(P,I),U!==0&&(K>=0?b[K][1]+=P.substring(0,U):(b.splice(0,0,[t,P.substring(0,U)]),w++),P=P.substring(U),I=I.substring(U)),U=u(P,I),U!==0&&(b[w][1]=P.substring(P.length-U)+b[w][1],P=P.substring(0,P.length-U),I=I.substring(0,I.length-U)));var F=M+R;I.length===0&&P.length===0?(b.splice(w-F,F),w=w-F):I.length===0?(b.splice(w-F,F,[e,P]),w=w-F+1):P.length===0?(b.splice(w-F,F,[n,I]),w=w-F+1):(b.splice(w-F,F,[n,I],[e,P]),w=w-F+2)}w!==0&&b[w-1][0]===t?(b[w-1][1]+=b[w][1],b.splice(w,1)):w++,M=0,R=0,I="",P="";break}}b[b.length-1][1]===""&&b.pop();var Z=!1;for(w=1;w<b.length-1;)b[w-1][0]===t&&b[w+1][0]===t&&(b[w][1].substring(b[w][1].length-b[w-1][1].length)===b[w-1][1]?(b[w][1]=b[w-1][1]+b[w][1].substring(0,b[w][1].length-b[w-1][1].length),b[w+1][1]=b[w-1][1]+b[w+1][1],b.splice(w-1,1),Z=!0):b[w][1].substring(0,b[w+1][1].length)==b[w+1][1]&&(b[w-1][1]+=b[w+1][1],b[w][1]=b[w][1].substring(b[w+1][1].length)+b[w+1][1],b.splice(w+1,1),Z=!0)),w++;Z&&A(b,q)}function k(b){return b>=55296&&b<=56319}function D(b){return b>=56320&&b<=57343}function v(b){return D(b.charCodeAt(0))}function S(b){return k(b.charCodeAt(b.length-1))}function j(b){for(var q=[],w=0;w<b.length;w++)b[w][1].length>0&&q.push(b[w]);return q}function B(b,q,w,R){return S(b)||v(R)?null:j([[t,b],[n,q],[e,w],[t,R]])}function z(b,q,w){var R=typeof w=="number"?{index:w,length:0}:w.oldRange,M=typeof w=="number"?null:w.newRange,I=b.length,P=q.length;if(R.length===0&&(M===null||M.length===0)){var U=R.index,K=b.slice(0,U),C=b.slice(U),$=M?M.index:null;e:{var F=U+P-I;if($!==null&&$!==F||F<0||F>P)break e;var Z=q.slice(0,F),J=q.slice(F);if(J!==C)break e;var H=Math.min(U,F),le=K.slice(0,H),ue=Z.slice(0,H);if(le!==ue)break e;var Y=K.slice(H),ne=Z.slice(H);return B(le,Y,ne,C)}e:{if($!==null&&$!==U)break e;var re=U,Z=q.slice(0,re),J=q.slice(re);if(Z!==K)break e;var ie=Math.min(I-re,P-re),ce=C.slice(C.length-ie),he=J.slice(J.length-ie);if(ce!==he)break e;var Y=C.slice(0,C.length-ie),ne=J.slice(0,J.length-ie);return B(K,Y,ne,ce)}}if(R.length>0&&M&&M.length===0)e:{var le=b.slice(0,R.index),ce=b.slice(R.index+R.length),H=le.length,ie=ce.length;if(P<H+ie)break e;var ue=q.slice(0,H),he=q.slice(P-ie);if(le!==ue||ce!==he)break e;var Y=b.slice(H,I-ie),ne=q.slice(H,P-ie);return B(le,Y,ne,ce)}return null}function ee(b,q,w,R){return r(b,q,w,R,!0)}return ee.INSERT=e,ee.DELETE=n,ee.EQUAL=t,ei=ee,ei}var Hn={exports:{}};Hn.exports;var Ja;function Dl(){return Ja||(Ja=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",g="[object GeneratorFunction]",h="[object Map]",m="[object Number]",E="[object Object]",y="[object Promise]",N="[object RegExp]",T="[object Set]",A="[object String]",k="[object Symbol]",D="[object WeakMap]",v="[object ArrayBuffer]",S="[object DataView]",j="[object Float32Array]",B="[object Float64Array]",z="[object Int8Array]",ee="[object Int16Array]",b="[object Int32Array]",q="[object Uint8Array]",w="[object Uint8ClampedArray]",R="[object Uint16Array]",M="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,P=/\w*$/,U=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,C={};C[i]=C[a]=C[v]=C[S]=C[l]=C[c]=C[j]=C[B]=C[z]=C[ee]=C[b]=C[h]=C[m]=C[E]=C[N]=C[T]=C[A]=C[k]=C[q]=C[w]=C[R]=C[M]=!0,C[u]=C[p]=C[D]=!1;var $=typeof vt=="object"&&vt&&vt.Object===Object&&vt,F=typeof self=="object"&&self&&self.Object===Object&&self,Z=$||F||Function("return this")(),J=e&&!e.nodeType&&e,H=J&&!0&&n&&!n.nodeType&&n,le=H&&H.exports===J;function ue(o,f){return o.set(f[0],f[1]),o}function Y(o,f){return o.add(f),o}function ne(o,f){for(var x=-1,O=o?o.length:0;++x<O&&f(o[x],x,o)!==!1;);return o}function re(o,f){for(var x=-1,O=f.length,Q=o.length;++x<O;)o[Q+x]=f[x];return o}function ie(o,f,x,O){for(var Q=-1,X=o?o.length:0;++Q<X;)x=f(x,o[Q],Q,o);return x}function ce(o,f){for(var x=-1,O=Array(o);++x<o;)O[x]=f(x);return O}function he(o,f){return o?.[f]}function pe(o){var f=!1;if(o!=null&&typeof o.toString!="function")try{f=!!(o+"")}catch{}return f}function Ee(o){var f=-1,x=Array(o.size);return o.forEach(function(O,Q){x[++f]=[Q,O]}),x}function vn(o,f){return function(x){return o(f(x))}}function lr(o){var f=-1,x=Array(o.size);return o.forEach(function(O){x[++f]=O}),x}var is=Array.prototype,as=Function.prototype,Gt=Object.prototype,yn=Z["__core-js_shared__"],cr=function(){var o=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),ur=as.toString,Ye=Gt.hasOwnProperty,Vt=Gt.toString,os=RegExp("^"+ur.call(Ye).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),St=le?Z.Buffer:void 0,Wt=Z.Symbol,xn=Z.Uint8Array,je=vn(Object.getPrototypeOf,Object),hr=Object.create,dr=Gt.propertyIsEnumerable,ls=is.splice,En=Object.getOwnPropertySymbols,Kt=St?St.isBuffer:void 0,fr=vn(Object.keys,Object),Yt=Fe(Z,"DataView"),Ct=Fe(Z,"Map"),Be=Fe(Z,"Promise"),Xt=Fe(Z,"Set"),Nn=Fe(Z,"WeakMap"),_t=Fe(Object,"create"),wn=Se(Yt),Ot=Se(Ct),Tn=Se(Be),An=Se(Xt),Sn=Se(Nn),pt=Wt?Wt.prototype:void 0,pr=pt?pt.valueOf:void 0;function st(o){var f=-1,x=o?o.length:0;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function cs(){this.__data__=_t?_t(null):{}}function us(o){return this.has(o)&&delete this.__data__[o]}function hs(o){var f=this.__data__;if(_t){var x=f[o];return x===r?void 0:x}return Ye.call(f,o)?f[o]:void 0}function gr(o){var f=this.__data__;return _t?f[o]!==void 0:Ye.call(f,o)}function Cn(o,f){var x=this.__data__;return x[o]=_t&&f===void 0?r:f,this}st.prototype.clear=cs,st.prototype.delete=us,st.prototype.get=hs,st.prototype.has=gr,st.prototype.set=Cn;function be(o){var f=-1,x=o?o.length:0;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function ds(){this.__data__=[]}function fs(o){var f=this.__data__,x=Jt(f,o);if(x<0)return!1;var O=f.length-1;return x==O?f.pop():ls.call(f,x,1),!0}function ps(o){var f=this.__data__,x=Jt(f,o);return x<0?void 0:f[x][1]}function gs(o){return Jt(this.__data__,o)>-1}function ms(o,f){var x=this.__data__,O=Jt(x,o);return O<0?x.push([o,f]):x[O][1]=f,this}be.prototype.clear=ds,be.prototype.delete=fs,be.prototype.get=ps,be.prototype.has=gs,be.prototype.set=ms;function Ne(o){var f=-1,x=o?o.length:0;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function bs(){this.__data__={hash:new st,map:new(Ct||be),string:new st}}function vs(o){return Lt(this,o).delete(o)}function ys(o){return Lt(this,o).get(o)}function xs(o){return Lt(this,o).has(o)}function Es(o,f){return Lt(this,o).set(o,f),this}Ne.prototype.clear=bs,Ne.prototype.delete=vs,Ne.prototype.get=ys,Ne.prototype.has=xs,Ne.prototype.set=Es;function Re(o){this.__data__=new be(o)}function Ns(){this.__data__=new be}function ws(o){return this.__data__.delete(o)}function Ts(o){return this.__data__.get(o)}function As(o){return this.__data__.has(o)}function Ss(o,f){var x=this.__data__;if(x instanceof be){var O=x.__data__;if(!Ct||O.length<t-1)return O.push([o,f]),this;x=this.__data__=new Ne(O)}return x.set(o,f),this}Re.prototype.clear=Ns,Re.prototype.delete=ws,Re.prototype.get=Ts,Re.prototype.has=As,Re.prototype.set=Ss;function Zt(o,f){var x=Ln(o)||en(o)?ce(o.length,String):[],O=x.length,Q=!!O;for(var X in o)Ye.call(o,X)&&!(Q&&(X=="length"||Bs(X,O)))&&x.push(X);return x}function mr(o,f,x){var O=o[f];(!(Ye.call(o,f)&&Er(O,x))||x===void 0&&!(f in o))&&(o[f]=x)}function Jt(o,f){for(var x=o.length;x--;)if(Er(o[x][0],f))return x;return-1}function Xe(o,f){return o&&Rn(f,jn(f),o)}function _n(o,f,x,O,Q,X,ae){var se;if(O&&(se=X?O(o,Q,X,ae):O(o)),se!==void 0)return se;if(!Je(o))return o;var ge=Ln(o);if(ge){if(se=Ps(o),!f)return qs(o,se)}else{var oe=at(o),we=oe==p||oe==g;if(Nr(o))return Qt(o,f);if(oe==E||oe==i||we&&!X){if(pe(o))return X?o:{};if(se=Ze(we?{}:o),!f)return Ms(o,Xe(se,o))}else{if(!C[oe])return X?o:{};se=$s(o,oe,_n,f)}}ae||(ae=new Re);var Le=ae.get(o);if(Le)return Le;if(ae.set(o,se),!ge)var me=x?Ds(o):jn(o);return ne(me||o,function(Te,ve){me&&(ve=Te,Te=o[ve]),mr(se,ve,_n(Te,f,x,O,ve,o,ae))}),se}function Cs(o){return Je(o)?hr(o):{}}function _s(o,f,x){var O=f(o);return Ln(o)?O:re(O,x(o))}function Os(o){return Vt.call(o)}function Rs(o){if(!Je(o)||Us(o))return!1;var f=kn(o)||pe(o)?os:U;return f.test(Se(o))}function Ls(o){if(!yr(o))return fr(o);var f=[];for(var x in Object(o))Ye.call(o,x)&&x!="constructor"&&f.push(x);return f}function Qt(o,f){if(f)return o.slice();var x=new o.constructor(o.length);return o.copy(x),x}function On(o){var f=new o.constructor(o.byteLength);return new xn(f).set(new xn(o)),f}function Rt(o,f){var x=f?On(o.buffer):o.buffer;return new o.constructor(x,o.byteOffset,o.byteLength)}function br(o,f,x){var O=f?x(Ee(o),!0):Ee(o);return ie(O,ue,new o.constructor)}function vr(o){var f=new o.constructor(o.source,P.exec(o));return f.lastIndex=o.lastIndex,f}function ks(o,f,x){var O=f?x(lr(o),!0):lr(o);return ie(O,Y,new o.constructor)}function js(o){return pr?Object(pr.call(o)):{}}function Is(o,f){var x=f?On(o.buffer):o.buffer;return new o.constructor(x,o.byteOffset,o.length)}function qs(o,f){var x=-1,O=o.length;for(f||(f=Array(O));++x<O;)f[x]=o[x];return f}function Rn(o,f,x,O){x||(x={});for(var Q=-1,X=f.length;++Q<X;){var ae=f[Q],se=void 0;mr(x,ae,se===void 0?o[ae]:se)}return x}function Ms(o,f){return Rn(o,it(o),f)}function Ds(o){return _s(o,jn,it)}function Lt(o,f){var x=o.__data__;return Fs(f)?x[typeof f=="string"?"string":"hash"]:x.map}function Fe(o,f){var x=he(o,f);return Rs(x)?x:void 0}var it=En?vn(En,Object):zs,at=Os;(Yt&&at(new Yt(new ArrayBuffer(1)))!=S||Ct&&at(new Ct)!=h||Be&&at(Be.resolve())!=y||Xt&&at(new Xt)!=T||Nn&&at(new Nn)!=D)&&(at=function(o){var f=Vt.call(o),x=f==E?o.constructor:void 0,O=x?Se(x):void 0;if(O)switch(O){case wn:return S;case Ot:return h;case Tn:return y;case An:return T;case Sn:return D}return f});function Ps(o){var f=o.length,x=o.constructor(f);return f&&typeof o[0]=="string"&&Ye.call(o,"index")&&(x.index=o.index,x.input=o.input),x}function Ze(o){return typeof o.constructor=="function"&&!yr(o)?Cs(je(o)):{}}function $s(o,f,x,O){var Q=o.constructor;switch(f){case v:return On(o);case l:case c:return new Q(+o);case S:return Rt(o,O);case j:case B:case z:case ee:case b:case q:case w:case R:case M:return Is(o,O);case h:return br(o,O,x);case m:case A:return new Q(o);case N:return vr(o);case T:return ks(o,O,x);case k:return js(o)}}function Bs(o,f){return f=f??s,!!f&&(typeof o=="number"||K.test(o))&&o>-1&&o%1==0&&o<f}function Fs(o){var f=typeof o;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?o!=="__proto__":o===null}function Us(o){return!!cr&&cr in o}function yr(o){var f=o&&o.constructor,x=typeof f=="function"&&f.prototype||Gt;return o===x}function Se(o){if(o!=null){try{return ur.call(o)}catch{}try{return o+""}catch{}}return""}function xr(o){return _n(o,!0,!0)}function Er(o,f){return o===f||o!==o&&f!==f}function en(o){return Hs(o)&&Ye.call(o,"callee")&&(!dr.call(o,"callee")||Vt.call(o)==i)}var Ln=Array.isArray;function tn(o){return o!=null&&wr(o.length)&&!kn(o)}function Hs(o){return Tr(o)&&tn(o)}var Nr=Kt||Gs;function kn(o){var f=Je(o)?Vt.call(o):"";return f==p||f==g}function wr(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=s}function Je(o){var f=typeof o;return!!o&&(f=="object"||f=="function")}function Tr(o){return!!o&&typeof o=="object"}function jn(o){return tn(o)?Zt(o):Ls(o)}function zs(){return[]}function Gs(){return!1}n.exports=xr}(Hn,Hn.exports)),Hn.exports}var zn={exports:{}};zn.exports;var Qa;function Pl(){return Qa||(Qa=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,i=2,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",h="[object Error]",m="[object Function]",E="[object GeneratorFunction]",y="[object Map]",N="[object Number]",T="[object Null]",A="[object Object]",k="[object Promise]",D="[object Proxy]",v="[object RegExp]",S="[object Set]",j="[object String]",B="[object Symbol]",z="[object Undefined]",ee="[object WeakMap]",b="[object ArrayBuffer]",q="[object DataView]",w="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",I="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",K="[object Uint8ClampedArray]",C="[object Uint16Array]",$="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,H={};H[w]=H[R]=H[M]=H[I]=H[P]=H[U]=H[K]=H[C]=H[$]=!0,H[l]=H[c]=H[b]=H[p]=H[q]=H[g]=H[h]=H[m]=H[y]=H[N]=H[A]=H[v]=H[S]=H[j]=H[ee]=!1;var le=typeof vt=="object"&&vt&&vt.Object===Object&&vt,ue=typeof self=="object"&&self&&self.Object===Object&&self,Y=le||ue||Function("return this")(),ne=e&&!e.nodeType&&e,re=ne&&!0&&n&&!n.nodeType&&n,ie=re&&re.exports===ne,ce=ie&&le.process,he=function(){try{return ce&&ce.binding&&ce.binding("util")}catch{}}(),pe=he&&he.isTypedArray;function Ee(o,f){for(var x=-1,O=o==null?0:o.length,Q=0,X=[];++x<O;){var ae=o[x];f(ae,x,o)&&(X[Q++]=ae)}return X}function vn(o,f){for(var x=-1,O=f.length,Q=o.length;++x<O;)o[Q+x]=f[x];return o}function lr(o,f){for(var x=-1,O=o==null?0:o.length;++x<O;)if(f(o[x],x,o))return!0;return!1}function is(o,f){for(var x=-1,O=Array(o);++x<o;)O[x]=f(x);return O}function as(o){return function(f){return o(f)}}function Gt(o,f){return o.has(f)}function yn(o,f){return o?.[f]}function cr(o){var f=-1,x=Array(o.size);return o.forEach(function(O,Q){x[++f]=[Q,O]}),x}function ur(o,f){return function(x){return o(f(x))}}function Ye(o){var f=-1,x=Array(o.size);return o.forEach(function(O){x[++f]=O}),x}var Vt=Array.prototype,os=Function.prototype,St=Object.prototype,Wt=Y["__core-js_shared__"],xn=os.toString,je=St.hasOwnProperty,hr=function(){var o=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),dr=St.toString,ls=RegExp("^"+xn.call(je).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=ie?Y.Buffer:void 0,Kt=Y.Symbol,fr=Y.Uint8Array,Yt=St.propertyIsEnumerable,Ct=Vt.splice,Be=Kt?Kt.toStringTag:void 0,Xt=Object.getOwnPropertySymbols,Nn=En?En.isBuffer:void 0,_t=ur(Object.keys,Object),wn=it(Y,"DataView"),Ot=it(Y,"Map"),Tn=it(Y,"Promise"),An=it(Y,"Set"),Sn=it(Y,"WeakMap"),pt=it(Object,"create"),pr=Se(wn),st=Se(Ot),cs=Se(Tn),us=Se(An),hs=Se(Sn),gr=Kt?Kt.prototype:void 0,Cn=gr?gr.valueOf:void 0;function be(o){var f=-1,x=o==null?0:o.length;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function ds(){this.__data__=pt?pt(null):{},this.size=0}function fs(o){var f=this.has(o)&&delete this.__data__[o];return this.size-=f?1:0,f}function ps(o){var f=this.__data__;if(pt){var x=f[o];return x===r?void 0:x}return je.call(f,o)?f[o]:void 0}function gs(o){var f=this.__data__;return pt?f[o]!==void 0:je.call(f,o)}function ms(o,f){var x=this.__data__;return this.size+=this.has(o)?0:1,x[o]=pt&&f===void 0?r:f,this}be.prototype.clear=ds,be.prototype.delete=fs,be.prototype.get=ps,be.prototype.has=gs,be.prototype.set=ms;function Ne(o){var f=-1,x=o==null?0:o.length;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function bs(){this.__data__=[],this.size=0}function vs(o){var f=this.__data__,x=Qt(f,o);if(x<0)return!1;var O=f.length-1;return x==O?f.pop():Ct.call(f,x,1),--this.size,!0}function ys(o){var f=this.__data__,x=Qt(f,o);return x<0?void 0:f[x][1]}function xs(o){return Qt(this.__data__,o)>-1}function Es(o,f){var x=this.__data__,O=Qt(x,o);return O<0?(++this.size,x.push([o,f])):x[O][1]=f,this}Ne.prototype.clear=bs,Ne.prototype.delete=vs,Ne.prototype.get=ys,Ne.prototype.has=xs,Ne.prototype.set=Es;function Re(o){var f=-1,x=o==null?0:o.length;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function Ns(){this.size=0,this.__data__={hash:new be,map:new(Ot||Ne),string:new be}}function ws(o){var f=Fe(this,o).delete(o);return this.size-=f?1:0,f}function Ts(o){return Fe(this,o).get(o)}function As(o){return Fe(this,o).has(o)}function Ss(o,f){var x=Fe(this,o),O=x.size;return x.set(o,f),this.size+=x.size==O?0:1,this}Re.prototype.clear=Ns,Re.prototype.delete=ws,Re.prototype.get=Ts,Re.prototype.has=As,Re.prototype.set=Ss;function Zt(o){var f=-1,x=o==null?0:o.length;for(this.__data__=new Re;++f<x;)this.add(o[f])}function mr(o){return this.__data__.set(o,r),this}function Jt(o){return this.__data__.has(o)}Zt.prototype.add=Zt.prototype.push=mr,Zt.prototype.has=Jt;function Xe(o){var f=this.__data__=new Ne(o);this.size=f.size}function _n(){this.__data__=new Ne,this.size=0}function Cs(o){var f=this.__data__,x=f.delete(o);return this.size=f.size,x}function _s(o){return this.__data__.get(o)}function Os(o){return this.__data__.has(o)}function Rs(o,f){var x=this.__data__;if(x instanceof Ne){var O=x.__data__;if(!Ot||O.length<t-1)return O.push([o,f]),this.size=++x.size,this;x=this.__data__=new Re(O)}return x.set(o,f),this.size=x.size,this}Xe.prototype.clear=_n,Xe.prototype.delete=Cs,Xe.prototype.get=_s,Xe.prototype.has=Os,Xe.prototype.set=Rs;function Ls(o,f){var x=en(o),O=!x&&Er(o),Q=!x&&!O&&tn(o),X=!x&&!O&&!Q&&Tr(o),ae=x||O||Q||X,se=ae?is(o.length,String):[],ge=se.length;for(var oe in o)je.call(o,oe)&&!(ae&&(oe=="length"||Q&&(oe=="offset"||oe=="parent")||X&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||$s(oe,ge)))&&se.push(oe);return se}function Qt(o,f){for(var x=o.length;x--;)if(xr(o[x][0],f))return x;return-1}function On(o,f,x){var O=f(o);return en(o)?O:vn(O,x(o))}function Rt(o){return o==null?o===void 0?z:T:Be&&Be in Object(o)?at(o):yr(o)}function br(o){return Je(o)&&Rt(o)==l}function vr(o,f,x,O,Q){return o===f?!0:o==null||f==null||!Je(o)&&!Je(f)?o!==o&&f!==f:ks(o,f,x,O,vr,Q)}function ks(o,f,x,O,Q,X){var ae=en(o),se=en(f),ge=ae?c:Ze(o),oe=se?c:Ze(f);ge=ge==l?A:ge,oe=oe==l?A:oe;var we=ge==A,Le=oe==A,me=ge==oe;if(me&&tn(o)){if(!tn(f))return!1;ae=!0,we=!1}if(me&&!we)return X||(X=new Xe),ae||Tr(o)?Rn(o,f,x,O,Q,X):Ms(o,f,ge,x,O,Q,X);if(!(x&s)){var Te=we&&je.call(o,"__wrapped__"),ve=Le&&je.call(f,"__wrapped__");if(Te||ve){var gt=Te?o.value():o,ot=ve?f.value():f;return X||(X=new Xe),Q(gt,ot,x,O,X)}}return me?(X||(X=new Xe),Ds(o,f,x,O,Q,X)):!1}function js(o){if(!wr(o)||Fs(o))return!1;var f=Nr(o)?ls:Z;return f.test(Se(o))}function Is(o){return Je(o)&&kn(o.length)&&!!H[Rt(o)]}function qs(o){if(!Us(o))return _t(o);var f=[];for(var x in Object(o))je.call(o,x)&&x!="constructor"&&f.push(x);return f}function Rn(o,f,x,O,Q,X){var ae=x&s,se=o.length,ge=f.length;if(se!=ge&&!(ae&&ge>se))return!1;var oe=X.get(o);if(oe&&X.get(f))return oe==f;var we=-1,Le=!0,me=x&i?new Zt:void 0;for(X.set(o,f),X.set(f,o);++we<se;){var Te=o[we],ve=f[we];if(O)var gt=ae?O(ve,Te,we,f,o,X):O(Te,ve,we,o,f,X);if(gt!==void 0){if(gt)continue;Le=!1;break}if(me){if(!lr(f,function(ot,kt){if(!Gt(me,kt)&&(Te===ot||Q(Te,ot,x,O,X)))return me.push(kt)})){Le=!1;break}}else if(!(Te===ve||Q(Te,ve,x,O,X))){Le=!1;break}}return X.delete(o),X.delete(f),Le}function Ms(o,f,x,O,Q,X,ae){switch(x){case q:if(o.byteLength!=f.byteLength||o.byteOffset!=f.byteOffset)return!1;o=o.buffer,f=f.buffer;case b:return!(o.byteLength!=f.byteLength||!X(new fr(o),new fr(f)));case p:case g:case N:return xr(+o,+f);case h:return o.name==f.name&&o.message==f.message;case v:case j:return o==f+"";case y:var se=cr;case S:var ge=O&s;if(se||(se=Ye),o.size!=f.size&&!ge)return!1;var oe=ae.get(o);if(oe)return oe==f;O|=i,ae.set(o,f);var we=Rn(se(o),se(f),O,Q,X,ae);return ae.delete(o),we;case B:if(Cn)return Cn.call(o)==Cn.call(f)}return!1}function Ds(o,f,x,O,Q,X){var ae=x&s,se=Lt(o),ge=se.length,oe=Lt(f),we=oe.length;if(ge!=we&&!ae)return!1;for(var Le=ge;Le--;){var me=se[Le];if(!(ae?me in f:je.call(f,me)))return!1}var Te=X.get(o);if(Te&&X.get(f))return Te==f;var ve=!0;X.set(o,f),X.set(f,o);for(var gt=ae;++Le<ge;){me=se[Le];var ot=o[me],kt=f[me];if(O)var Zi=ae?O(kt,ot,me,f,o,X):O(ot,kt,me,o,f,X);if(!(Zi===void 0?ot===kt||Q(ot,kt,x,O,X):Zi)){ve=!1;break}gt||(gt=me=="constructor")}if(ve&&!gt){var Ar=o.constructor,Sr=f.constructor;Ar!=Sr&&"constructor"in o&&"constructor"in f&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof Sr=="function"&&Sr instanceof Sr)&&(ve=!1)}return X.delete(o),X.delete(f),ve}function Lt(o){return On(o,jn,Ps)}function Fe(o,f){var x=o.__data__;return Bs(f)?x[typeof f=="string"?"string":"hash"]:x.map}function it(o,f){var x=yn(o,f);return js(x)?x:void 0}function at(o){var f=je.call(o,Be),x=o[Be];try{o[Be]=void 0;var O=!0}catch{}var Q=dr.call(o);return O&&(f?o[Be]=x:delete o[Be]),Q}var Ps=Xt?function(o){return o==null?[]:(o=Object(o),Ee(Xt(o),function(f){return Yt.call(o,f)}))}:zs,Ze=Rt;(wn&&Ze(new wn(new ArrayBuffer(1)))!=q||Ot&&Ze(new Ot)!=y||Tn&&Ze(Tn.resolve())!=k||An&&Ze(new An)!=S||Sn&&Ze(new Sn)!=ee)&&(Ze=function(o){var f=Rt(o),x=f==A?o.constructor:void 0,O=x?Se(x):"";if(O)switch(O){case pr:return q;case st:return y;case cs:return k;case us:return S;case hs:return ee}return f});function $s(o,f){return f=f??a,!!f&&(typeof o=="number"||J.test(o))&&o>-1&&o%1==0&&o<f}function Bs(o){var f=typeof o;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?o!=="__proto__":o===null}function Fs(o){return!!hr&&hr in o}function Us(o){var f=o&&o.constructor,x=typeof f=="function"&&f.prototype||St;return o===x}function yr(o){return dr.call(o)}function Se(o){if(o!=null){try{return xn.call(o)}catch{}try{return o+""}catch{}}return""}function xr(o,f){return o===f||o!==o&&f!==f}var Er=br(function(){return arguments}())?br:function(o){return Je(o)&&je.call(o,"callee")&&!Yt.call(o,"callee")},en=Array.isArray;function Ln(o){return o!=null&&kn(o.length)&&!Nr(o)}var tn=Nn||Gs;function Hs(o,f){return vr(o,f)}function Nr(o){if(!wr(o))return!1;var f=Rt(o);return f==m||f==E||f==u||f==D}function kn(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=a}function wr(o){var f=typeof o;return o!=null&&(f=="object"||f=="function")}function Je(o){return o!=null&&typeof o=="object"}var Tr=pe?as(pe):Is;function jn(o){return Ln(o)?Ls(o):qs(o)}function zs(){return[]}function Gs(){return!1}n.exports=Hs}(zn,zn.exports)),zn.exports}var jr={},eo;function hg(){if(eo)return jr;eo=1,Object.defineProperty(jr,"__esModule",{value:!0});const n=Dl(),e=Pl();var t;return function(r){function s(c={},u={},p=!1){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});let g=n(u);p||(g=Object.keys(g).reduce((h,m)=>(g[m]!=null&&(h[m]=g[m]),h),{}));for(const h in c)c[h]!==void 0&&u[h]===void 0&&(g[h]=c[h]);return Object.keys(g).length>0?g:void 0}r.compose=s;function i(c={},u={}){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});const p=Object.keys(c).concat(Object.keys(u)).reduce((g,h)=>(e(c[h],u[h])||(g[h]=u[h]===void 0?null:u[h]),g),{});return Object.keys(p).length>0?p:void 0}r.diff=i;function a(c={},u={}){c=c||{};const p=Object.keys(u).reduce((g,h)=>(u[h]!==c[h]&&c[h]!==void 0&&(g[h]=u[h]),g),{});return Object.keys(c).reduce((g,h)=>(c[h]!==u[h]&&u[h]===void 0&&(g[h]=null),g),p)}r.invert=a;function l(c,u,p=!1){if(typeof c!="object")return u;if(typeof u!="object")return;if(!p)return u;const g=Object.keys(u).reduce((h,m)=>(c[m]===void 0&&(h[m]=u[m]),h),{});return Object.keys(g).length>0?g:void 0}r.transform=l}(t||(t={})),jr.default=t,jr}var Ir={},to;function $l(){if(to)return Ir;to=1,Object.defineProperty(Ir,"__esModule",{value:!0});var n;return function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t}(n||(n={})),Ir.default=n,Ir}var qr={},no;function dg(){if(no)return qr;no=1,Object.defineProperty(qr,"__esModule",{value:!0});const n=$l();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const s=this.ops[this.index];if(s){const i=this.offset,a=n.default.length(s);if(r>=a-i?(r=a-i,this.index+=1,this.offset=0):this.offset+=r,typeof s.delete=="number")return{delete:r};{const l={};return s.attributes&&(l.attributes=s.attributes),typeof s.retain=="number"?l.retain=r:typeof s.retain=="object"&&s.retain!==null?l.retain=s.retain:typeof s.insert=="string"?l.insert=s.insert.substr(i,r):l.insert=s.insert,l}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,s=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=s,[i].concat(a)}}else return[]}}return qr.default=e,qr}var ro;function fg(){return ro||(ro=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=ug(),r=Dl(),s=Pl(),i=hg();e.AttributeMap=i.default;const a=$l();e.Op=a.default;const l=dg();e.OpIterator=l.default;const c="\0",u=(g,h)=>{if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const m=Object.keys(g)[0];if(!m||m!==Object.keys(h)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(h)[0]}`);return[m,g[m],h[m]]};class p{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,m){this.handlers[h]=m}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const m=this.handlers[h];if(!m)throw new Error(`no handlers for embed type "${h}"`);return m}insert(h,m){const E={};return typeof h=="string"&&h.length===0?this:(E.insert=h,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(E.attributes=m),this.push(E))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,m){if(typeof h=="number"&&h<=0)return this;const E={retain:h};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(E.attributes=m),this.push(E)}push(h){let m=this.ops.length,E=this.ops[m-1];if(h=r(h),typeof E=="object"){if(typeof h.delete=="number"&&typeof E.delete=="number")return this.ops[m-1]={delete:E.delete+h.delete},this;if(typeof E.delete=="number"&&h.insert!=null&&(m-=1,E=this.ops[m-1],typeof E!="object"))return this.ops.unshift(h),this;if(s(h.attributes,E.attributes)){if(typeof h.insert=="string"&&typeof E.insert=="string")return this.ops[m-1]={insert:E.insert+h.insert},typeof h.attributes=="object"&&(this.ops[m-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof E.retain=="number")return this.ops[m-1]={retain:E.retain+h.retain},typeof h.attributes=="object"&&(this.ops[m-1].attributes=h.attributes),this}}return m===this.ops.length?this.ops.push(h):this.ops.splice(m,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const m=[],E=[];return this.forEach(y=>{(h(y)?m:E).push(y)}),[m,E]}reduce(h,m){return this.ops.reduce(h,m)}changeLength(){return this.reduce((h,m)=>m.insert?h+a.default.length(m):m.delete?h-m.delete:h,0)}length(){return this.reduce((h,m)=>h+a.default.length(m),0)}slice(h=0,m=1/0){const E=[],y=new l.default(this.ops);let N=0;for(;N<m&&y.hasNext();){let T;N<h?T=y.next(h-N):(T=y.next(m-N),E.push(T)),N+=a.default.length(T)}return new p(E)}compose(h){const m=new l.default(this.ops),E=new l.default(h.ops),y=[],N=E.peek();if(N!=null&&typeof N.retain=="number"&&N.attributes==null){let A=N.retain;for(;m.peekType()==="insert"&&m.peekLength()<=A;)A-=m.peekLength(),y.push(m.next());N.retain-A>0&&E.next(N.retain-A)}const T=new p(y);for(;m.hasNext()||E.hasNext();)if(E.peekType()==="insert")T.push(E.next());else if(m.peekType()==="delete")T.push(m.next());else{const A=Math.min(m.peekLength(),E.peekLength()),k=m.next(A),D=E.next(A);if(D.retain){const v={};if(typeof k.retain=="number")v.retain=typeof D.retain=="number"?A:D.retain;else if(typeof D.retain=="number")k.retain==null?v.insert=k.insert:v.retain=k.retain;else{const j=k.retain==null?"insert":"retain",[B,z,ee]=u(k[j],D.retain),b=p.getHandler(B);v[j]={[B]:b.compose(z,ee,j==="retain")}}const S=i.default.compose(k.attributes,D.attributes,typeof k.retain=="number");if(S&&(v.attributes=S),T.push(v),!E.hasNext()&&s(T.ops[T.ops.length-1],v)){const j=new p(m.rest());return T.concat(j).chop()}}else typeof D.delete=="number"&&(typeof k.retain=="number"||typeof k.retain=="object"&&k.retain!==null)&&T.push(D)}return T.chop()}concat(h){const m=new p(this.ops.slice());return h.ops.length>0&&(m.push(h.ops[0]),m.ops=m.ops.concat(h.ops.slice(1))),m}diff(h,m){if(this.ops===h.ops)return new p;const E=[this,h].map(k=>k.map(D=>{if(D.insert!=null)return typeof D.insert=="string"?D.insert:c;const v=k===h?"on":"with";throw new Error("diff() called "+v+" non-document")}).join("")),y=new p,N=t(E[0],E[1],m,!0),T=new l.default(this.ops),A=new l.default(h.ops);return N.forEach(k=>{let D=k[1].length;for(;D>0;){let v=0;switch(k[0]){case t.INSERT:v=Math.min(A.peekLength(),D),y.push(A.next(v));break;case t.DELETE:v=Math.min(D,T.peekLength()),T.next(v),y.delete(v);break;case t.EQUAL:v=Math.min(T.peekLength(),A.peekLength(),D);const S=T.next(v),j=A.next(v);s(S.insert,j.insert)?y.retain(v,i.default.diff(S.attributes,j.attributes)):y.push(j).delete(v);break}D-=v}}),y.chop()}eachLine(h,m=`
23
+ `,u="/",p="*",g="",h="comment",m="declaration";Ks=function(y,N){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];N=N||{};var T=1,A=1;function k(w){var R=w.match(e);R&&(T+=R.length);var M=w.lastIndexOf(c);A=~M?w.length-M:A+w.length}function D(){var w={line:T,column:A};return function(R){return R.position=new v(w),B(),R}}function v(w){this.start=w,this.end={line:T,column:A},this.source=N.source}v.prototype.content=y;function S(w){var R=new Error(N.source+":"+T+":"+A+": "+w);if(R.reason=w,R.filename=N.source,R.line=T,R.column=A,R.source=y,!N.silent)throw R}function j(w){var R=w.exec(y);if(R){var M=R[0];return k(M),y=y.slice(M.length),R}}function B(){j(t)}function z(w){var R;for(w=w||[];R=ee();)R!==!1&&w.push(R);return w}function ee(){var w=D();if(!(u!=y.charAt(0)||p!=y.charAt(1))){for(var R=2;g!=y.charAt(R)&&(p!=y.charAt(R)||u!=y.charAt(R+1));)++R;if(R+=2,g===y.charAt(R-1))return S("End of comment missing");var M=y.slice(2,R-2);return A+=2,k(M),y=y.slice(R),A+=2,w({type:h,comment:M})}}function b(){var w=D(),R=j(r);if(R){if(ee(),!j(s))return S("property missing ':'");var M=j(i),I=w({type:m,property:E(R[0].replace(n,g)),value:M?E(M[0].replace(n,g)):g});return j(a),I}}function q(){var w=[];z(w);for(var R;R=b();)R!==!1&&(w.push(R),z(w));return w}return B(),q()};function E(y){return y?y.replace(l,g):g}return Ks}var pa;function Vc(){if(pa)return rn;pa=1;var n=rn&&rn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=t;var e=n(Gc());function t(r,s){var i=null;if(!r||typeof r!="string")return i;var a=(0,e.default)(r),l=typeof s=="function";return a.forEach(function(c){if(c.type==="declaration"){var u=c.property,p=c.value;l?s(u,p,c):p&&(i=i||{},i[u]=p)}}),i}return rn}var $n={},ga;function Wc(){if(ga)return $n;ga=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,i=function(u){return!u||t.test(u)||n.test(u)},a=function(u,p){return p.toUpperCase()},l=function(u,p){return"".concat(p,"-")},c=function(u,p){return p===void 0&&(p={}),i(u)?u:(u=u.toLowerCase(),p.reactCompat?u=u.replace(s,l):u=u.replace(r,l),u.replace(e,a))};return $n.camelCase=c,$n}var Bn,ma;function Kc(){if(ma)return Bn;ma=1;var n=Bn&&Bn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},e=n(Vc()),t=Wc();function r(s,i){var a={};return!s||typeof s!="string"||(0,e.default)(s,function(l,c){l&&c&&(a[(0,t.camelCase)(l,i)]=c)}),a}return r.default=r,Bn=r,Bn}var ba;function Mo(){return ba||(ba=1,function(n){var e=Pn&&Pn.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(n,"__esModule",{value:!0}),n.returnFirstArg=n.canTextBeChildOfNode=n.ELEMENTS_WITH_NO_TEXT_CHILDREN=n.PRESERVE_CUSTOM_ATTRIBUTES=void 0,n.isCustomComponent=i,n.setStyleProp=l;var t=_,r=e(Kc()),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function i(p,g){return p.includes("-")?!s.has(p):!!(g&&typeof g.is=="string")}var a={reactCompat:!0};function l(p,g){if(typeof p=="string"){if(!p.trim()){g.style={};return}try{g.style=(0,r.default)(p,a)}catch{g.style={}}}}n.PRESERVE_CUSTOM_ATTRIBUTES=Number(t.version.split(".")[0])>=16,n.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(p){return!n.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(p.name)};n.canTextBeChildOfNode=c;var u=function(p){return p};n.returnFirstArg=u}(Pn)),Pn}var va;function Do(){if(va)return Or;va=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=i;var n=zc(),e=Mo(),t=["checked","value"],r=["input","select","textarea"],s={reset:!0,submit:!0};function i(l,c){l===void 0&&(l={});var u={},p=!!(l.type&&s[l.type]);for(var g in l){var h=l[g];if((0,n.isCustomAttribute)(g)){u[g]=h;continue}var m=g.toLowerCase(),E=a(m);if(E){var y=(0,n.getPropertyInfo)(E);switch(t.includes(E)&&r.includes(c)&&!p&&(E=a("default"+m)),u[E]=h,y&&y.type){case n.BOOLEAN:u[E]=!0;break;case n.OVERLOADED_BOOLEAN:h===""&&(u[E]=!0);break}continue}e.PRESERVE_CUSTOM_ATTRIBUTES&&(u[g]=h)}return(0,e.setStyleProp)(l.style,u),u}function a(l){return n.possibleStandardNames[l]}return Or}var sn={},ya;function Yc(){if(ya)return sn;ya=1;var n=sn&&sn.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(sn,"__esModule",{value:!0}),sn.default=i;var e=_,t=n(Do()),r=Mo(),s={cloneElement:e.cloneElement,createElement:e.createElement,isValidElement:e.isValidElement};function i(l,c){c===void 0&&(c={});for(var u=[],p=typeof c.replace=="function",g=c.transform||r.returnFirstArg,h=c.library||s,m=h.cloneElement,E=h.createElement,y=h.isValidElement,N=l.length,T=0;T<N;T++){var A=l[T];if(p){var k=c.replace(A,T);if(y(k)){N>1&&(k=m(k,{key:k.key||T})),u.push(g(k,A,T));continue}}if(A.type==="text"){var D=!A.data.trim().length;if(D&&A.parent&&!(0,r.canTextBeChildOfNode)(A.parent)||c.trim&&D)continue;u.push(g(A.data,A,T));continue}var v=A,S={};a(v)?((0,r.setStyleProp)(v.attribs.style,v.attribs),S=v.attribs):v.attribs&&(S=(0,t.default)(v.attribs,v.name));var j=void 0;switch(A.type){case"script":case"style":A.children[0]&&(S.dangerouslySetInnerHTML={__html:A.children[0].data});break;case"tag":A.name==="textarea"&&A.children[0]?S.defaultValue=A.children[0].data:A.children&&A.children.length&&(j=i(A.children,c));break;default:continue}N>1&&(S.key=T),u.push(g(E(A.name,S,j),A,T))}return u.length===1?u[0]:u}function a(l){return r.PRESERVE_CUSTOM_ATTRIBUTES&&l.type==="tag"&&(0,r.isCustomComponent)(l.name,l.attribs)}return sn}var xa;function Xc(){return xa||(xa=1,function(n){var e=Mn&&Mn.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0}),n.htmlToDOM=n.domToReact=n.attributesToProps=n.Text=n.ProcessingInstruction=n.Element=n.Comment=void 0,n.default=l;var t=e(Uc());n.htmlToDOM=t.default;var r=e(Do());n.attributesToProps=r.default;var s=e(Yc());n.domToReact=s.default;var i=Io();Object.defineProperty(n,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(n,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(n,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function l(c,u){if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,s.default)((0,t.default)(c,u?.htmlparser2||a),u):[]}}(Mn)),Mn}var Zc=Xc();const Ea=Oi(Zc),Jc=Ea.default||Ea,Qc=({type:n,text:e})=>{const[t,r]=_.useState(!0),s=_.useRef(null),i=_.useRef(null),a=()=>{i.current&&(i.current.style.transition="opacity 0.4s",i.current.style.opacity="0"),s.current=window.setTimeout(()=>{r(!t)},500)};return _.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),t?d.jsxs("div",{ref:i,className:`alert ${n}`,role:"alert",children:[d.jsx("p",{children:Jc(e)}),d.jsx("button",{className:"close",type:"button","data-toggle":"close",onClick:a,children:d.jsx(ko,{})})]}):null},Po=({children:n,className:e="",...t})=>d.jsx("div",{className:`modal-header ${e}`,...t,children:n}),$o=({children:n,className:e="",...t})=>d.jsx("div",{className:`modal-body ${e}`,...t,children:n}),Bo=({children:n,className:e="",...t})=>d.jsx("div",{className:`modal-footer ${e}`,...t,children:n}),Fo=({children:n,className:e="",...t})=>(_.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),nr.createPortal(d.jsx("div",{className:"modal",...t,children:d.jsx("div",{className:`modal-dialog ${e}`,children:n})}),document.body)),eu=({labelIcon:n,label:e="Confirmation",message:t,onCancel:r,onConfirm:s})=>d.jsxs(Fo,{className:"modal-sm",children:[d.jsxs(Po,{className:"bg-danger",children:[d.jsxs("div",{className:"modal-header-title",children:[n||d.jsx(hi,{className:"icon"}),d.jsx("span",{children:e})]}),d.jsx("div",{className:"tools",children:d.jsx(ko,{className:"icon",onClick:r})})]}),d.jsx($o,{children:d.jsx("p",{children:t})}),d.jsxs(Bo,{className:"justify-content-space-between",children:[d.jsxs(Pe,{type:"button",className:"btn btn-default",onClick:r,children:[d.jsx(kc,{})," Batalkan"]}),d.jsxs(Pe,{type:"button",className:"btn btn-primary",onClick:s,children:[d.jsx(hi,{})," Konfirmasi"]})]})]}),tu=({className:n="",type:e,title:t,text:r})=>d.jsxs("div",{className:`callout ${e} ${n}`,children:[t&&d.jsx("h5",{children:t}),typeof r=="string"?d.jsx("p",{children:r}):r]}),nu=({children:n,text:e,position:t="top",className:r="",offset:s=5})=>{const[i,a]=_.useState(!1),[l,c]=_.useState({top:0,left:0}),u=_.useRef(null),p=_.useRef(null);return _.useEffect(()=>{if(i&&u.current&&p.current){const g=u.current.getBoundingClientRect(),h=p.current.getBoundingClientRect(),{scrollX:m,scrollY:E}=window;let y=0,N=0;switch(t){case"top":y=g.top-h.height-s,N=g.left+(g.width-h.width)/2;break;case"bottom":y=g.bottom+s,N=g.left+(g.width-h.width)/2;break;case"left":y=g.top+(g.height-h.height)/2,N=g.left-h.width-s;break;case"right":y=g.top+(g.height-h.height)/2,N=g.right+s;break}c({top:Math.round(y+E),left:Math.round(N+m)})}},[i,t,s]),d.jsxs("div",{ref:u,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[n,i&&nr.createPortal(d.jsx("div",{ref:p,style:{position:"absolute",top:`${l.top}px`,left:`${l.left}px`},className:`tooltip ${t} ${r}`,children:e}),document.body)]})},ru=({className:n,children:e,text:t,title:r,dismissible:s=!0})=>{const[i,a]=_.useState(!1),[l,c]=_.useState({top:0,left:0}),u=_.useRef(null),p=_.useRef(null);wt([u,p],()=>{s&&a(!1)}),_.useEffect(()=>{if(i&&u.current&&p.current){const h=u.current.getBoundingClientRect(),m=p.current.getBoundingClientRect(),{scrollX:E,scrollY:y}=window;let N=0,T=0;n.includes("top")?(N=h.top-m.height-10,T=h.left+(h.width-m.width)/2):n.includes("bottom")?(N=h.bottom+10,T=h.left+(h.width-m.width)/2):n.includes("left")?(N=h.top+(h.height-m.height)/2,T=h.left-m.width-10):n.includes("right")&&(N=h.top+(h.height-m.height)/2,T=h.right+10),c({top:Math.round(N+y),left:Math.round(T+E)})}},[i,n]);function g(){a(!i)}return d.jsxs("div",{ref:u,onClick:g,children:[e,i&&nr.createPortal(d.jsxs("div",{ref:p,className:`popover ${n}`,role:"tooltip",style:{position:"absolute",top:`${l.top}px`,left:`${l.left}px`},children:[d.jsx("div",{className:"arrow"}),r&&d.jsx("h3",{className:"popover-title",children:r}),d.jsx("div",{className:"popover-content",children:t})]}),document.body)]})},su=({defaultIndex:n=null,alwaysOpen:e=!1,flush:t=!1,children:r})=>{const[s,i]=_.useState(n!==null?[n]:[]),a=l=>{i(e?c=>c.includes(l)?c.filter(u=>u!==l):[...c,l]:c=>c.includes(l)?[]:[l])};return d.jsx("div",{className:`accordion ${t?"accordion-flush":""}`,children:_.Children.map(r,(l,c)=>_.cloneElement(l,{isOpen:s.includes(c),onClick:()=>a(c)}))})},iu=({title:n,titleIcon:e,children:t,isOpen:r=!1,onClick:s})=>{const i=_.useRef(null),[a,l]=_.useState(0);_.useEffect(()=>{i.current&&l(i.current.scrollHeight)},[t]);const c=_.Children.toArray(t).find(p=>p.type===Uo),u=_.Children.toArray(t).find(p=>p.type===Ho);return d.jsxs("div",{className:"accordion-item",children:[d.jsxs("div",{className:"accordion-header",role:"button",tabIndex:0,onClick:s,onKeyDown:s,children:[d.jsxs("div",{className:"accordion-title",children:[e,d.jsx("span",{children:n})]}),d.jsx(Kn,{className:`accordion-icon ${r?"active":""}`})]}),d.jsxs("div",{ref:i,className:`accordion-collapse ${r?"show":""}`,style:{maxHeight:r?`${a}px`:"0px"},children:[c,u]})]})},Uo=({className:n="",children:e})=>d.jsx("div",{className:`accordion-body ${n}`,children:e}),Ho=({className:n="",children:e})=>d.jsx("div",{className:`accordion-footer ${n}`,children:e}),au=({size:n=40,className:e="",color:t})=>d.jsx("span",{className:`circular-progress ${e} ${t?`brand-${t}`:""}`,style:{width:`${n}px`,height:`${n}px`}}),ou=({showLabel:n=!1,progress:e=0,className:t="",color:r})=>{const s=t.includes("indeterminate");return d.jsxs("div",{className:`linear-progress ${t}`,children:[d.jsx("div",{className:`progress-bar ${r?`brand-${r}`:""}`,children:d.jsx("span",{className:"progress",style:{width:`${e}%`}})}),n&&!s&&d.jsxs("span",{className:"progress-label",children:[e,"%"]})]})},lu=({progress:n=0,size:e=40,className:t="",color:r,strokeWidth:s=4})=>{const[i,a]=_.useState(0);return _.useEffect(()=>{if(i<n){const l=setTimeout(()=>{a(i+1)},10);return()=>clearTimeout(l)}},[i,n]),d.jsxs("div",{className:`circular-progress-with-label ${t}`,children:[d.jsx("span",{className:`progress ${r?`brand-${r}`:""}`,style:{width:`${e}px`,height:`${e}px`,borderWidth:`${s}px`,background:r?`radial-gradient(closest-side, var(--secondary-bg) 79%, transparent 80% 100%), conic-gradient(var(--brand-${r}) ${i}%, var(--primary-bg) 0)`:`radial-gradient(closest-side, var(--secondary-bg) 79%, transparent 80% 100%), conic-gradient(#888 ${i}%, var(--primary-bg) 0)`}}),d.jsxs("span",{className:"progress-label",children:[i,"%"]})]})},ye=[];for(let n=0;n<256;++n)ye.push((n+256).toString(16).slice(1));function cu(n,e=0){return(ye[n[e+0]]+ye[n[e+1]]+ye[n[e+2]]+ye[n[e+3]]+"-"+ye[n[e+4]]+ye[n[e+5]]+"-"+ye[n[e+6]]+ye[n[e+7]]+"-"+ye[n[e+8]]+ye[n[e+9]]+"-"+ye[n[e+10]]+ye[n[e+11]]+ye[n[e+12]]+ye[n[e+13]]+ye[n[e+14]]+ye[n[e+15]]).toLowerCase()}let Ys;const uu=new Uint8Array(16);function hu(){if(!Ys){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ys=crypto.getRandomValues.bind(crypto)}return Ys(uu)}const du=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Na={randomUUID:du};function zo(n,e,t){if(Na.randomUUID&&!n)return Na.randomUUID();n=n||{};const r=n.random??n.rng?.()??hu();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,cu(r)}const Ri=_.forwardRef(({name:n,label:e,message:t,error:r,checked:s=!1,onChange:i,...a},l)=>{const c=zo(),u=p=>{i(p)};return d.jsxs(d.Fragment,{children:[d.jsxs("label",{className:"custom-checkbox",htmlFor:c,children:[d.jsx("input",{type:"checkbox",id:c,name:n,ref:l,role:"checkbox",checked:s,onChange:u,...a}),d.jsx("span",{className:"checkmark"}),e&&d.jsx("span",{className:a.required?"required":"",children:e})]}),r?d.jsx("small",{className:"form-message text-danger",children:r}):t&&d.jsx("small",{className:"form-message",children:t})]})});Ri.displayName="Checkbox";const fu=({children:n})=>d.jsx("div",{className:"form",children:n}),pu=({className:n="",children:e})=>d.jsx("div",{className:`form-group ${n}`,children:e}),gu=({className:n="",children:e})=>d.jsx("div",{className:`form-checkbox ${n}`,children:e}),mu=({className:n="",children:e})=>d.jsx("div",{className:`form-radio ${n}`,children:e});function bu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"},child:[]}]})(n)}function vu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},child:[]},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},child:[]}]})(n)}function yu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"},child:[]}]})(n)}function xu(n){return Oe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(n)}const Li=(n,e)=>{_.useEffect(()=>{if(n&&e.current){const t=e.current.getBoundingClientRect(),r=window.innerHeight;t.bottom>r?e.current.classList.add("position-top"):e.current.classList.remove("position-top");const s=e.current.querySelector(".option.selected");s&&s.scrollIntoView({block:"nearest"})}},[n,e])},Qe=_.forwardRef((n,e)=>{const{className:t="",id:r,name:s,label:i,message:a,selectLabel:l="Select an option",size:c="md",floatingLabel:u=!1,error:p,options:g,value:h="",onChange:m,onBlur:E,required:y,disabled:N}=n,T=r||s,[A,k]=_.useState(!1),D=_.useRef(null),v=_.useRef(null),S=_.useRef(null),j=g.find(z=>z.value===h)?.label??l;_.useImperativeHandle(e,()=>S.current),_.useEffect(()=>k(!1),[]),wt([D],()=>{k(!1),S.current?.blur()}),Li(A,v);const B=z=>{const ee=g.find(w=>w.value===z);if(!ee)return;const b=ee.value;if(m?.({target:{name:s,value:b,type:"select-one"},currentTarget:{name:s,value:b}}),S.current){S.current.value=String(b);const w=new CustomEvent("change",{bubbles:!0,detail:{originalValue:b}});S.current.dispatchEvent(w)}k(!1)};return d.jsxs(d.Fragment,{children:[!u&&i&&d.jsxs("label",{htmlFor:T,children:[i," ",y&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("select",{ref:S,name:s,value:h!=null&&!Number.isNaN(h)?h:"",onChange:m,onBlur:E,required:y,disabled:N,style:{position:"absolute",left:"-9999px"},tabIndex:-1,children:[d.jsx("option",{value:"",children:"Select an option"}),g.map(z=>d.jsx("option",{value:String(z.value),children:z.label},z.value))]}),d.jsxs("div",{className:`dropdown-select-container ${t} ${c}`,ref:D,children:[d.jsxs("div",{className:`dropdown-header ${A?"open":""} ${N?"disabled":""}`,onClick:()=>!N&&k(!A),"aria-haspopup":"listbox","aria-expanded":A,children:[d.jsx("span",{className:"label",children:j}),d.jsx(Kn,{className:"arrow"})]}),A&&d.jsx("div",{className:"dropdown-options scrollbar",ref:v,role:"listbox",children:g.map(z=>d.jsx("div",{className:`option ${z.value===h?"selected":""}`,onClick:()=>B(z.value),role:"option","aria-selected":z.value===h,children:z.label},z.value))})]}),u&&i&&d.jsxs("label",{htmlFor:T,children:[i," ",y&&d.jsx("span",{className:"text-danger",children:"*"})]}),p?d.jsx("small",{className:"form-message text-danger",children:p}):a&&d.jsx("small",{className:"form-message",children:a})]})});Qe.displayName="Select";const Go=n=>{const[e,t]=_.useState(!1);return _.useEffect(()=>{const r=()=>{if(!n.current)return;const{top:i,height:a}=n.current.getBoundingClientRect(),l=window.innerHeight;t(i+a>l)};r();const s=()=>{r()};return window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[n]),e},Vo=n=>{const e=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return`${e}-${t}-${r}`},Eu=n=>n.toLocaleDateString("id-ID",{timeZone:"Asia/Jakarta",year:"numeric",month:"long",day:"numeric"}),Yn=(n,e)=>Array.from({length:n},(t,r)=>e(r)),Rr=(n,e)=>{const t=new Date(e,n,1).getDay(),r=new Date(e,n+1,0).getDate(),s=Yn(t,()=>({value:"",label:""})),i=Yn(r,a=>({value:(a+1).toString(),label:(a+1).toString()}));return[...s,...i]},Nu=(n,e)=>{const t=new Date(e,n+1,0).getDate();return Yn(t,r=>({value:(r+1).toString(),label:(r+1).toString()}))},Wo=(n="id-ID")=>Yn(12,e=>({value:(e+1).toString(),label:new Date(2024,e,1).toLocaleString(n,{month:"long"})})),Ko=()=>{const n=new Date().getFullYear(),e=n-60,r=n+20-e+1;return Yn(r,s=>{const i=e+s;return{value:i.toString(),label:i.toString()}})},wa=n=>{const e=new Date(n);return e instanceof Date&&!isNaN(e.getTime())},wu=["Min","Sen","Sel","Rab","Kam","Jum","Sab"],Tu=n=>{const[e,t]=_.useState(n);return{selectedDate:e,handlePrevMonth:()=>{const c=new Date(e);c.setMonth(e.getMonth()-1),t(c)},handleNextMonth:()=>{const c=new Date(e);c.setMonth(e.getMonth()+1),t(c)},handleDateClick:(c,u,p,g)=>{const h=new Date(parseInt(p,10),parseInt(u,10),parseInt(c,10));t(h),g(Vo(h))},isSelectedDate:(c,u,p)=>parseInt(p,10)===e.getFullYear()&&parseInt(u,10)===e.getMonth()+1&&parseInt(c,10)===e.getDate(),setDate:c=>{t(c)}}},Yo=({onSelect:n,defaultDate:e,full:t=!1})=>{const r=_.useRef(null),s=Go(r),i=wa(e)?new Date(e):new Date,{selectedDate:a,handlePrevMonth:l,handleNextMonth:c,handleDateClick:u,isSelectedDate:p,setDate:g}=Tu(i),[h,m]=_.useState(Rr(i.getMonth(),i.getFullYear()));_.useEffect(()=>{if(e&&wa(e)){const y=new Date(e);g(y)}},[e,g]),_.useEffect(()=>{m(Rr(a.getMonth(),a.getFullYear()))},[a]);const E=(y,N)=>{const T=parseInt(y,10),A=T+1;return h.map((k,D)=>k.value!==""?d.jsx("div",{className:`calendar-day ${p(k.value,A.toString(),N)?"selected-date":""}`,onClick:()=>{const v=new Date(parseInt(N,10),T,parseInt(k.value,10)),S=t?Eu(v):Vo(v);u(k.value,y,N,()=>n(S))},children:k.label},`day-${D}`):d.jsx("div",{className:"calendar-day empty"},`day-${D}`))};return d.jsxs("div",{className:`date-picker shadow-sm ${s?"position-top":""}`,ref:r,children:[d.jsxs("div",{className:"calendar-nav",children:[d.jsx("button",{type:"button",className:"btn rounded-circle",onClick:l,children:d.jsx(yu,{size:16})}),d.jsxs("div",{className:"calendar-select",children:[d.jsx(Qe,{className:"select-month",name:"month",size:"sm",options:Wo(),value:(a.getMonth()+1).toString(),onChange:y=>{const N=parseInt(y.target.value,10)-1,T=new Date(a.getFullYear(),N,a.getDate());g(T),m(Rr(N,T.getFullYear()))}}),d.jsx(Qe,{className:"select-year",name:"year",size:"sm",options:Ko(),value:a.getFullYear().toString(),onChange:y=>{const N=parseInt(y.target.value,10),T=new Date(N,a.getMonth(),a.getDate());g(T),m(Rr(T.getMonth(),N))}})]}),d.jsx("button",{type:"button",className:"btn rounded-circle",onClick:c,children:d.jsx(xu,{size:16})})]}),d.jsxs("div",{className:"calendar",children:[d.jsx("div",{className:"calendar-header",children:wu.map((y,N)=>d.jsx("div",{className:"calendar-day-name",children:y},`day-${N}`))}),d.jsx("div",{className:"calendar-body",children:E(a.getMonth().toString(),a.getFullYear().toString())})]})]})},Xo=_.forwardRef(({name:n,label:e,message:t,floatingLabel:r,locale:s="id",error:i,value:a,...l},c)=>{const u=A=>{if(!A)return new Date;const k=new Date(A);return isNaN(k.getTime())?new Date:k},p=u(a),[g,h]=_.useState({day:p.getDate(),month:p.getMonth()+1,year:p.getFullYear()});_.useEffect(()=>{if(a){const A=u(a);h({day:A.getDate(),month:A.getMonth()+1,year:A.getFullYear()})}},[a]),_.useEffect(()=>{const A=new Date(g.year,g.month,0).getDate();g.day>A&&h(k=>({...k,day:A}))},[g.month,g.year]);const m=(A,k)=>{const D=parseInt(k,10);if(isNaN(D))return;const v={...g,[A]:D};if(h(v),l.onChange){const S=`${v.year}-${String(v.month).padStart(2,"0")}-${String(v.day).padStart(2,"0")}`;l.onChange({target:{name:n,value:S}})}},E=_.useMemo(()=>Nu(g.month-1,g.year),[g.month,g.year]),y=_.useMemo(()=>Wo(s),[s]),N=_.useMemo(()=>Ko(),[]),T=d.jsxs("label",{htmlFor:n,children:[e," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]});return d.jsxs(d.Fragment,{children:[!r&&T,d.jsxs("div",{className:"row",ref:c,children:[d.jsx("div",{className:"col-md-3",children:d.jsx(Qe,{name:`${n}-day`,disabled:l.disabled,options:E,value:g.day.toString(),onChange:A=>m("day",A.target.value),"aria-label":"Day"})}),d.jsx("div",{className:"col-md-5",children:d.jsx(Qe,{name:`${n}-month`,disabled:l.disabled,options:y,value:g.month.toString(),onChange:A=>m("month",A.target.value),"aria-label":"Month"})}),d.jsx("div",{className:"col-md-4",children:d.jsx(Qe,{name:`${n}-year`,disabled:l.disabled,options:N,value:g.year.toString(),onChange:A=>m("year",A.target.value),"aria-label":"Year"})})]}),r&&T,i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});Xo.displayName="DropdownDatePicker";const Zo=({onSelect:n,defaultTime:e,format24:t=!0})=>{const r=_.useRef(null),s=Go(r),i=T=>{if(T){const[k,D]=T.split(":");return{hours:parseInt(k,10),minutes:parseInt(D,10)}}const A=new Date;return{hours:A.getHours(),minutes:A.getMinutes()}},a=i(e),[l,c]=_.useState(a.hours),[u,p]=_.useState(a.minutes);_.useEffect(()=>{if(e){const T=i(e);c(T.hours),p(T.minutes)}},[e]);const g=()=>{const T=[],A=t?23:12,k=t?0:1;for(let D=k;D<=A;D++){const v=D.toString().padStart(2,"0");T.push({value:v,label:v})}return T},h=()=>{const T=[];for(let A=0;A<60;A++){const k=A.toString().padStart(2,"0");T.push({value:k,label:k})}return T},m=(T,A)=>{const k=T.toString().padStart(2,"0"),D=A.toString().padStart(2,"0");return`${k}:${D}`},E=T=>{const A=parseInt(T.target.value,10);c(A)},y=T=>{const A=parseInt(T.target.value,10);p(A)},N=()=>{const T=m(l,u);n(T)};return d.jsxs("div",{className:`time-picker shadow-sm ${s?"position-top":""}`,ref:r,children:[d.jsx("div",{className:"time-picker-header",children:d.jsx("h6",{className:"mb-0",children:"Pilih Waktu"})}),d.jsx("div",{className:"time-picker-body",children:d.jsxs("div",{className:"time-select-group",children:[d.jsxs("div",{className:"time-select-item",children:[d.jsx("label",{className:"time-label",children:"Jam"}),d.jsx(Qe,{className:"select-hour",name:"hour",size:"sm",options:g(),value:l.toString().padStart(2,"0"),onChange:E})]}),d.jsx("div",{className:"time-separator",children:":"}),d.jsxs("div",{className:"time-select-item",children:[d.jsx("label",{className:"time-label",children:"Menit"}),d.jsx(Qe,{className:"select-minute",name:"minute",size:"sm",options:h(),value:u.toString().padStart(2,"0"),onChange:y})]})]})}),d.jsx("div",{className:"time-picker-footer",children:d.jsx("button",{type:"button",className:"btn btn-primary btn-sm w-100",onClick:N,children:"Pilih"})})]})},Au=({type:n="text",className:e,...t})=>d.jsx("input",{type:n,className:`clear ${e}`,...t}),di=_.forwardRef(({className:n="",name:e,label:t,message:r,floatingLabel:s,error:i,id:a,...l},c)=>{const u=a||e;return d.jsxs(d.Fragment,{children:[!s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("input",{type:"text",className:`form-control ${n}`,id:u,name:e,placeholder:s?"":" ",ref:c,...l}),s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]})}),Su=_.forwardRef(({className:n,name:e,label:t,message:r,floatingLabel:s,error:i,actionIcon:a,actionButtonLabel:l,actionButtonHandler:c,...u},p)=>d.jsxs(d.Fragment,{children:[!s&&t&&d.jsxs("label",{htmlFor:e,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:"input-group-icon",children:[d.jsx("input",{type:"text",className:`form-control pr-35 ${n}`,id:e,name:e,placeholder:s?"":" ",ref:p,...u}),a&&d.jsx(Pe,{role:"button",className:"icon",onClick:c,tabIndex:0,"aria-label":l,disabled:u.disabled,children:a})]}),s&&t&&d.jsxs("label",{htmlFor:e,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]})),Jo=_.forwardRef(({name:n,label:e,message:t,floatingLabel:r,full:s,error:i,onChange:a,value:l,...c},u)=>{const[p,g]=_.useState(!1),h=_.useRef(null),m=_.useRef(null);_.useImperativeHandle(u,()=>h.current),_.useEffect(()=>{l!==void 0&&h.current&&(h.current.value=l)},[l]);const E=y=>{h.current&&(h.current.value=y,a?.({target:h.current,currentTarget:h.current}),g(!1))};return wt([m],()=>g(!1)),d.jsxs(d.Fragment,{children:[!r&&e&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:"input-group-icon",children:[d.jsx("input",{type:"text",className:"form-control",id:n,name:n,placeholder:r?"":" ",ref:h,onChange:a,...c}),d.jsx(Pe,{role:"button",className:"icon",onClick:y=>{y.stopPropagation(),g(N=>!N)},"aria-label":"Open date picker",disabled:c.disabled,children:d.jsx(bu,{})})]}),d.jsx("div",{ref:m,className:`date-picker-container ${p?"show":"hide"}`,style:{display:p?"block":"none"},children:d.jsx(Yo,{full:s,onSelect:E,defaultDate:l||void 0})}),r&&e&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});Jo.displayName="InputDate";const Qo=_.forwardRef(({name:n,label:e,message:t,floatingLabel:r,format24:s=!0,error:i,onChange:a,value:l,...c},u)=>{const[p,g]=_.useState(!1),h=_.useRef(null),m=_.useRef(null);_.useImperativeHandle(u,()=>h.current),_.useEffect(()=>{l!==void 0&&h.current&&(h.current.value=l)},[l]);const E=y=>{h.current&&(h.current.value=y,a?.({target:h.current,currentTarget:h.current}),g(!1))};return wt([m],()=>g(!1)),d.jsxs(d.Fragment,{children:[!r&&e&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:"input-group-icon",children:[d.jsx("input",{type:"text",className:"form-control",id:n,name:n,placeholder:r?"":" ",ref:h,onChange:a,...c}),d.jsx(Pe,{role:"button",className:"icon",onClick:y=>{y.stopPropagation(),g(N=>!N)},"aria-label":"Open time picker",disabled:c.disabled,children:d.jsx(vu,{})})]}),d.jsx("div",{ref:m,className:`time-picker-container ${p?"show":"hide"}`,style:{display:p?"block":"none"},children:d.jsx(Zo,{format24:s,onSelect:E,defaultTime:l||void 0})}),r&&e&&d.jsxs("label",{htmlFor:n,children:[e," ",c.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});Qo.displayName="InputTime";const el=_.forwardRef(({className:n,name:e,label:t,message:r,accept:s,floatingLabel:i,error:a,onChange:l,id:c,...u},p)=>{const g=c||e,h=m=>{l&&l(m)};return d.jsxs(d.Fragment,{children:[!i&&t&&d.jsxs("label",{htmlFor:g,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("input",{type:"file",className:`form-control ${n||""}`,id:g,name:e,accept:s,onChange:h,ref:p,...u}),i&&t&&d.jsxs("label",{htmlFor:g,children:[t," ",u.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),a?d.jsx("small",{className:"form-message text-danger",children:a}):r&&d.jsx("small",{className:"form-message",children:r})]})});el.displayName="InputFile";const Cu=()=>d.jsx("div",{children:"InputImageSize"}),tl=_.forwardRef(({className:n,name:e,label:t,message:r,floatingLabel:s,error:i,id:a,...l},c)=>{const u=a||e;return d.jsxs(d.Fragment,{children:[!s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("textarea",{className:`form-control ${n||""}`,id:u,name:e,placeholder:s?"":" ",ref:c,...l}),s&&t&&d.jsxs("label",{htmlFor:u,children:[t," ",l.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]})});tl.displayName="InputTextArea";const nl=_.forwardRef(({className:n,name:e,label:t,message:r,options:s,error:i,...a},l)=>d.jsxs(d.Fragment,{children:[t&&d.jsxs("label",{htmlFor:e,children:[t," ",a.required&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("div",{className:`form-control ${n||""}`,children:s.map(c=>{const u=`${zo()}-${c.value}`;return d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("input",{type:"radio",id:u,name:e,value:c.value,ref:l,...a}),d.jsx("label",{htmlFor:u,children:c.label})]},c.value)})}),i?d.jsx("small",{className:"form-message text-danger",children:i}):r&&d.jsx("small",{className:"form-message",children:r})]}));nl.displayName="Radio";const rl=_.forwardRef(({name:n,label:e,message:t,size:r="md",options:s,selectedValue:i,error:a,required:l,...c},u)=>d.jsxs(d.Fragment,{children:[e&&d.jsxs("label",{htmlFor:n,children:[e," ",l&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsx("div",{className:"btn-group","data-toggle":"buttons",children:s.map(p=>{const g=p.value.toString()===i?.toString();return d.jsxs("label",{className:`btn auto btn-default btn-${r} ${g?"active":""}`,children:[d.jsx("input",{type:"radio",id:p.value.toString(),name:n,value:p.value.toString(),ref:u,...c}),d.jsx("span",{children:p.label})]},p.value.toString())})}),a?d.jsx("small",{className:"form-message text-danger",children:a}):t&&d.jsx("small",{className:"form-message",children:t})]}));rl.displayName="RadioButtonGroup";const sl=_.forwardRef(({name:n,label:e,message:t,selectLabel:r,floatingLabel:s=!1,error:i,options:a,value:l=[],onChange:c,required:u,disabled:p,className:g},h)=>{const[m,E]=_.useState(!1),[y,N]=_.useState(l),T=_.useRef(null),A=_.useRef(null);_.useEffect(()=>{JSON.stringify(l)!==JSON.stringify(y)&&N(l)},[y,l]);const k=v=>{const S=y.includes(v)?y.filter(j=>j!==v):[...y,v];N(S),c&&c({target:{name:n,value:S}})};wt([T],()=>{E(!1)}),Li(m,A);const D=y.map(v=>a.find(S=>S.value===v)?.label).filter(Boolean).join(", ");return d.jsxs(d.Fragment,{children:[e&&!s&&d.jsxs("label",{htmlFor:n,children:[e," ",u&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("div",{className:`dropdown-select-container ${g||""}`,ref:T,children:[d.jsxs("div",{className:`dropdown-header ${m?"open":""} ${p?"disabled":""}`,onClick:()=>!p&&E(!m),ref:h,children:[d.jsx("span",{className:"label",children:D||r||"Select an option"}),d.jsx(Kn,{className:`arrow ${m?"open":""}`})]}),m&&!p&&d.jsx("div",{className:"dropdown-options scrollbar",ref:A,role:"listbox",children:a?.map(v=>d.jsx("div",{className:`option ${y.includes(v.value)?"selected":""}`,children:d.jsx(Ri,{name:v.value.toString(),label:v.label,checked:y.includes(v.value),onChange:()=>k(v.value)})},v.value))})]}),e&&s&&d.jsxs("label",{htmlFor:n,children:[e," ",u&&d.jsx("span",{className:"text-danger",children:"*"})]}),i?d.jsx("small",{className:"form-message text-danger",children:i}):t&&d.jsx("small",{className:"form-message",children:t})]})});sl.displayName="SelectMultiple";const il=_.forwardRef((n,e)=>{const{id:t,name:r,label:s,message:i,selectLabel:a="Select an option",size:l="md",floatingLabel:c=!1,error:u,options:p=[],value:g="",onChange:h,onBlur:m,required:E,disabled:y,selectSearch:N="",setSelectSearch:T,isLoading:A=!1}=n,k=t||r,[D,v]=_.useState(!1),S=_.useRef(null),j=_.useRef(null),B=_.useRef(null);_.useImperativeHandle(e,()=>B.current),wt([S],()=>v(!1)),Li(D,j);const z=g?p.find(b=>b.value===g)?.label:a,ee=b=>{h?.({target:{name:r,value:b}}),B.current&&(B.current.value=String(b),B.current.dispatchEvent(new Event("change",{bubbles:!0}))),v(!1)};return c?d.jsxs("div",{className:"form-floating",children:[d.jsxs("select",{ref:B,name:r,value:g,onChange:h,onBlur:m,required:E,disabled:y,style:{position:"absolute",left:"-9999px"},tabIndex:-1,children:[d.jsx("option",{value:"",children:"Select an option"}),p.map(b=>d.jsx("option",{value:b.value,children:b.label},b.value))]}),d.jsxs("div",{className:`dropdown-select-container ${l}`,ref:S,children:[d.jsxs("div",{className:`dropdown-header ${D?"open":""} ${y?"disabled":""}`,onClick:()=>!y&&v(!D),"aria-haspopup":"listbox","aria-expanded":D,children:[d.jsx("span",{className:"label",children:z}),d.jsx(Kn,{className:"arrow"})]}),D&&d.jsxs("div",{className:"dropdown-options scrollbar",ref:j,role:"listbox",children:[d.jsx("div",{className:"search-input",children:d.jsx(di,{name:"search",placeholder:"Ketik untuk mencari..",type:"search",autoFocus:!0,value:N,onChange:b=>T?.(b.currentTarget.value)})}),A?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Loading options..."}):p.length===0?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Tidak ada hasil ditemukan"}):p.map(b=>d.jsx("div",{className:`option ${g===b.value?"selected":""}`,onClick:()=>ee(b.value),role:"option","aria-selected":g===b.value,children:b.label},b.value))]})]}),d.jsxs("label",{htmlFor:k,children:[s," ",E&&d.jsx("span",{className:"text-danger",children:"*"})]}),u?d.jsx("small",{className:"form-message text-danger",children:u}):i&&d.jsx("small",{className:"form-message",children:i})]}):d.jsxs("div",{className:"form-group",children:[s&&d.jsxs("label",{htmlFor:k,children:[s," ",E&&d.jsx("span",{className:"text-danger",children:"*"})]}),d.jsxs("select",{ref:B,name:r,value:g,onChange:h,onBlur:m,required:E,disabled:y,style:{position:"absolute",left:"-9999px"},tabIndex:-1,children:[d.jsx("option",{value:"",children:"Select an option"}),p.map(b=>d.jsx("option",{value:b.value,children:b.label},b.value))]}),d.jsxs("div",{className:`dropdown-select-container ${l}`,ref:S,children:[d.jsxs("div",{className:`dropdown-header ${D?"open":""} ${y?"disabled":""}`,onClick:()=>!y&&v(!D),"aria-haspopup":"listbox","aria-expanded":D,children:[d.jsx("span",{className:"label",children:z}),d.jsx(Kn,{className:"arrow"})]}),D&&d.jsxs("div",{className:"dropdown-options scrollbar",ref:j,role:"listbox",children:[d.jsx("div",{className:"search-input",children:d.jsx(di,{name:"search",placeholder:"Ketik untuk mencari..",type:"search",autoFocus:!0,value:N,onChange:b=>T?.(b.currentTarget.value)})}),A?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Loading options..."}):p.length===0?d.jsx("div",{className:"pt-2 pb-3 text-center",children:"Tidak ada hasil ditemukan"}):p.map(b=>d.jsx("div",{className:`option ${g===b.value?"selected":""}`,onClick:()=>ee(b.value),role:"option","aria-selected":g===b.value,children:b.label},b.value))]})]}),u?d.jsx("small",{className:"form-message text-danger",children:u}):i&&d.jsx("small",{className:"form-message",children:i})]})});il.displayName="SelectWithSearch";const al=_.forwardRef(({name:n,className:e="",error:t,checked:r=!1,onChange:s,...i},a)=>{const l=c=>{s&&s(c)};return d.jsx(d.Fragment,{children:d.jsxs("label",{className:`switch ${e} ${t?"has-error":""}`,children:[d.jsx("input",{type:"checkbox",id:n,name:n,ref:a,checked:r,onChange:l,disabled:i.disabled,...i}),d.jsx("span",{className:"slider round"})]})})});al.displayName="Switch";var ol=typeof global=="object"&&global&&global.Object===Object&&global,_u=typeof self=="object"&&self&&self.Object===Object&&self,nt=ol||_u||Function("return this")(),Nt=nt.Symbol,ll=Object.prototype,Ou=ll.hasOwnProperty,Ru=ll.toString,Fn=Nt?Nt.toStringTag:void 0;function Lu(n){var e=Ou.call(n,Fn),t=n[Fn];try{n[Fn]=void 0;var r=!0}catch{}var s=Ru.call(n);return r&&(e?n[Fn]=t:delete n[Fn]),s}var ku=Object.prototype,ju=ku.toString;function Iu(n){return ju.call(n)}var qu="[object Null]",Mu="[object Undefined]",Ta=Nt?Nt.toStringTag:void 0;function mn(n){return n==null?n===void 0?Mu:qu:Ta&&Ta in Object(n)?Lu(n):Iu(n)}function ut(n){return n!=null&&typeof n=="object"}var qt=Array.isArray;function Tt(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function cl(n){return n}var Du="[object AsyncFunction]",Pu="[object Function]",$u="[object GeneratorFunction]",Bu="[object Proxy]";function ki(n){if(!Tt(n))return!1;var e=mn(n);return e==Pu||e==$u||e==Du||e==Bu}var Xs=nt["__core-js_shared__"],Aa=function(){var n=/[^.]+$/.exec(Xs&&Xs.keys&&Xs.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function Fu(n){return!!Aa&&Aa in n}var Uu=Function.prototype,Hu=Uu.toString;function $t(n){if(n!=null){try{return Hu.call(n)}catch{}try{return n+""}catch{}}return""}var zu=/[\\^$.*+?()[\]{}|]/g,Gu=/^\[object .+?Constructor\]$/,Vu=Function.prototype,Wu=Object.prototype,Ku=Vu.toString,Yu=Wu.hasOwnProperty,Xu=RegExp("^"+Ku.call(Yu).replace(zu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zu(n){if(!Tt(n)||Fu(n))return!1;var e=ki(n)?Xu:Gu;return e.test($t(n))}function Ju(n,e){return n?.[e]}function Bt(n,e){var t=Ju(n,e);return Zu(t)?t:void 0}var fi=Bt(nt,"WeakMap"),Sa=Object.create,Qu=function(){function n(){}return function(e){if(!Tt(e))return{};if(Sa)return Sa(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function eh(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function th(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var nh=800,rh=16,sh=Date.now;function ih(n){var e=0,t=0;return function(){var r=sh(),s=rh-(r-t);if(t=r,s>0){if(++e>=nh)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function ah(n){return function(){return n}}var zr=function(){try{var n=Bt(Object,"defineProperty");return n({},"",{}),n}catch{}}(),oh=zr?function(n,e){return zr(n,"toString",{configurable:!0,enumerable:!1,value:ah(e),writable:!0})}:cl,lh=ih(oh);function ch(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var uh=9007199254740991,hh=/^(?:0|[1-9]\d*)$/;function ul(n,e){var t=typeof n;return e=e??uh,!!e&&(t=="number"||t!="symbol"&&hh.test(n))&&n>-1&&n%1==0&&n<e}function ji(n,e,t){e=="__proto__"&&zr?zr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function rr(n,e){return n===e||n!==n&&e!==e}var dh=Object.prototype,fh=dh.hasOwnProperty;function hl(n,e,t){var r=n[e];(!(fh.call(n,e)&&rr(r,t))||t===void 0&&!(e in n))&&ji(n,e,t)}function ph(n,e,t,r){var s=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var l=e[i],c=void 0;c===void 0&&(c=n[l]),s?ji(t,l,c):hl(t,l,c)}return t}var Ca=Math.max;function gh(n,e,t){return e=Ca(e===void 0?n.length-1:e,0),function(){for(var r=arguments,s=-1,i=Ca(r.length-e,0),a=Array(i);++s<i;)a[s]=r[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=r[s];return l[e]=t(a),eh(n,this,l)}}function mh(n,e){return lh(gh(n,e,cl),n+"")}var bh=9007199254740991;function dl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=bh}function Xr(n){return n!=null&&dl(n.length)&&!ki(n)}function vh(n,e,t){if(!Tt(t))return!1;var r=typeof e;return(r=="number"?Xr(t)&&ul(e,t.length):r=="string"&&e in t)?rr(t[e],n):!1}function yh(n){return mh(function(e,t){var r=-1,s=t.length,i=s>1?t[s-1]:void 0,a=s>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(s--,i):void 0,a&&vh(t[0],t[1],a)&&(i=s<3?void 0:i,s=1),e=Object(e);++r<s;){var l=t[r];l&&n(e,l,r,i)}return e})}var xh=Object.prototype;function Ii(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||xh;return n===t}function Eh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Nh="[object Arguments]";function _a(n){return ut(n)&&mn(n)==Nh}var fl=Object.prototype,wh=fl.hasOwnProperty,Th=fl.propertyIsEnumerable,pi=_a(function(){return arguments}())?_a:function(n){return ut(n)&&wh.call(n,"callee")&&!Th.call(n,"callee")};function Ah(){return!1}var pl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Oa=pl&&typeof module=="object"&&module&&!module.nodeType&&module,Sh=Oa&&Oa.exports===pl,Ra=Sh?nt.Buffer:void 0,Ch=Ra?Ra.isBuffer:void 0,Xn=Ch||Ah,_h="[object Arguments]",Oh="[object Array]",Rh="[object Boolean]",Lh="[object Date]",kh="[object Error]",jh="[object Function]",Ih="[object Map]",qh="[object Number]",Mh="[object Object]",Dh="[object RegExp]",Ph="[object Set]",$h="[object String]",Bh="[object WeakMap]",Fh="[object ArrayBuffer]",Uh="[object DataView]",Hh="[object Float32Array]",zh="[object Float64Array]",Gh="[object Int8Array]",Vh="[object Int16Array]",Wh="[object Int32Array]",Kh="[object Uint8Array]",Yh="[object Uint8ClampedArray]",Xh="[object Uint16Array]",Zh="[object Uint32Array]",fe={};fe[Hh]=fe[zh]=fe[Gh]=fe[Vh]=fe[Wh]=fe[Kh]=fe[Yh]=fe[Xh]=fe[Zh]=!0;fe[_h]=fe[Oh]=fe[Fh]=fe[Rh]=fe[Uh]=fe[Lh]=fe[kh]=fe[jh]=fe[Ih]=fe[qh]=fe[Mh]=fe[Dh]=fe[Ph]=fe[$h]=fe[Bh]=!1;function Jh(n){return ut(n)&&dl(n.length)&&!!fe[mn(n)]}function qi(n){return function(e){return n(e)}}var gl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vn=gl&&typeof module=="object"&&module&&!module.nodeType&&module,Qh=Vn&&Vn.exports===gl,Zs=Qh&&ol.process,pn=function(){try{var n=Vn&&Vn.require&&Vn.require("util").types;return n||Zs&&Zs.binding&&Zs.binding("util")}catch{}}(),La=pn&&pn.isTypedArray,Mi=La?qi(La):Jh,ed=Object.prototype,td=ed.hasOwnProperty;function ml(n,e){var t=qt(n),r=!t&&pi(n),s=!t&&!r&&Xn(n),i=!t&&!r&&!s&&Mi(n),a=t||r||s||i,l=a?Eh(n.length,String):[],c=l.length;for(var u in n)(e||td.call(n,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ul(u,c)))&&l.push(u);return l}function bl(n,e){return function(t){return n(e(t))}}var nd=bl(Object.keys,Object),rd=Object.prototype,sd=rd.hasOwnProperty;function id(n){if(!Ii(n))return nd(n);var e=[];for(var t in Object(n))sd.call(n,t)&&t!="constructor"&&e.push(t);return e}function ad(n){return Xr(n)?ml(n):id(n)}function od(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var ld=Object.prototype,cd=ld.hasOwnProperty;function ud(n){if(!Tt(n))return od(n);var e=Ii(n),t=[];for(var r in n)r=="constructor"&&(e||!cd.call(n,r))||t.push(r);return t}function vl(n){return Xr(n)?ml(n,!0):ud(n)}var Zn=Bt(Object,"create");function hd(){this.__data__=Zn?Zn(null):{},this.size=0}function dd(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var fd="__lodash_hash_undefined__",pd=Object.prototype,gd=pd.hasOwnProperty;function md(n){var e=this.__data__;if(Zn){var t=e[n];return t===fd?void 0:t}return gd.call(e,n)?e[n]:void 0}var bd=Object.prototype,vd=bd.hasOwnProperty;function yd(n){var e=this.__data__;return Zn?e[n]!==void 0:vd.call(e,n)}var xd="__lodash_hash_undefined__";function Ed(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Zn&&e===void 0?xd:e,this}function Mt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Mt.prototype.clear=hd;Mt.prototype.delete=dd;Mt.prototype.get=md;Mt.prototype.has=yd;Mt.prototype.set=Ed;function Nd(){this.__data__=[],this.size=0}function Zr(n,e){for(var t=n.length;t--;)if(rr(n[t][0],e))return t;return-1}var wd=Array.prototype,Td=wd.splice;function Ad(n){var e=this.__data__,t=Zr(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Td.call(e,t,1),--this.size,!0}function Sd(n){var e=this.__data__,t=Zr(e,n);return t<0?void 0:e[t][1]}function Cd(n){return Zr(this.__data__,n)>-1}function _d(n,e){var t=this.__data__,r=Zr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function dt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}dt.prototype.clear=Nd;dt.prototype.delete=Ad;dt.prototype.get=Sd;dt.prototype.has=Cd;dt.prototype.set=_d;var Jn=Bt(nt,"Map");function Od(){this.size=0,this.__data__={hash:new Mt,map:new(Jn||dt),string:new Mt}}function Rd(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Jr(n,e){var t=n.__data__;return Rd(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Ld(n){var e=Jr(this,n).delete(n);return this.size-=e?1:0,e}function kd(n){return Jr(this,n).get(n)}function jd(n){return Jr(this,n).has(n)}function Id(n,e){var t=Jr(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Ft(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ft.prototype.clear=Od;Ft.prototype.delete=Ld;Ft.prototype.get=kd;Ft.prototype.has=jd;Ft.prototype.set=Id;function qd(n,e){for(var t=-1,r=e.length,s=n.length;++t<r;)n[s+t]=e[t];return n}var yl=bl(Object.getPrototypeOf,Object),Md="[object Object]",Dd=Function.prototype,Pd=Object.prototype,xl=Dd.toString,$d=Pd.hasOwnProperty,Bd=xl.call(Object);function Fd(n){if(!ut(n)||mn(n)!=Md)return!1;var e=yl(n);if(e===null)return!0;var t=$d.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&xl.call(t)==Bd}function Ud(){this.__data__=new dt,this.size=0}function Hd(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function zd(n){return this.__data__.get(n)}function Gd(n){return this.__data__.has(n)}var Vd=200;function Wd(n,e){var t=this.__data__;if(t instanceof dt){var r=t.__data__;if(!Jn||r.length<Vd-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Ft(r)}return t.set(n,e),this.size=t.size,this}function et(n){var e=this.__data__=new dt(n);this.size=e.size}et.prototype.clear=Ud;et.prototype.delete=Hd;et.prototype.get=zd;et.prototype.has=Gd;et.prototype.set=Wd;var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ka=El&&typeof module=="object"&&module&&!module.nodeType&&module,Kd=ka&&ka.exports===El,ja=Kd?nt.Buffer:void 0,Ia=ja?ja.allocUnsafe:void 0;function Nl(n,e){if(e)return n.slice();var t=n.length,r=Ia?Ia(t):new n.constructor(t);return n.copy(r),r}function Yd(n,e){for(var t=-1,r=n==null?0:n.length,s=0,i=[];++t<r;){var a=n[t];e(a,t,n)&&(i[s++]=a)}return i}function Xd(){return[]}var Zd=Object.prototype,Jd=Zd.propertyIsEnumerable,qa=Object.getOwnPropertySymbols,Qd=qa?function(n){return n==null?[]:(n=Object(n),Yd(qa(n),function(e){return Jd.call(n,e)}))}:Xd;function ef(n,e,t){var r=e(n);return qt(n)?r:qd(r,t(n))}function gi(n){return ef(n,ad,Qd)}var mi=Bt(nt,"DataView"),bi=Bt(nt,"Promise"),vi=Bt(nt,"Set"),Ma="[object Map]",tf="[object Object]",Da="[object Promise]",Pa="[object Set]",$a="[object WeakMap]",Ba="[object DataView]",nf=$t(mi),rf=$t(Jn),sf=$t(bi),af=$t(vi),of=$t(fi),He=mn;(mi&&He(new mi(new ArrayBuffer(1)))!=Ba||Jn&&He(new Jn)!=Ma||bi&&He(bi.resolve())!=Da||vi&&He(new vi)!=Pa||fi&&He(new fi)!=$a)&&(He=function(n){var e=mn(n),t=e==tf?n.constructor:void 0,r=t?$t(t):"";if(r)switch(r){case nf:return Ba;case rf:return Ma;case sf:return Da;case af:return Pa;case of:return $a}return e});var lf=Object.prototype,cf=lf.hasOwnProperty;function uf(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&cf.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Gr=nt.Uint8Array;function Di(n){var e=new n.constructor(n.byteLength);return new Gr(e).set(new Gr(n)),e}function hf(n,e){var t=Di(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var df=/\w*$/;function ff(n){var e=new n.constructor(n.source,df.exec(n));return e.lastIndex=n.lastIndex,e}var Fa=Nt?Nt.prototype:void 0,Ua=Fa?Fa.valueOf:void 0;function pf(n){return Ua?Object(Ua.call(n)):{}}function wl(n,e){var t=e?Di(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var gf="[object Boolean]",mf="[object Date]",bf="[object Map]",vf="[object Number]",yf="[object RegExp]",xf="[object Set]",Ef="[object String]",Nf="[object Symbol]",wf="[object ArrayBuffer]",Tf="[object DataView]",Af="[object Float32Array]",Sf="[object Float64Array]",Cf="[object Int8Array]",_f="[object Int16Array]",Of="[object Int32Array]",Rf="[object Uint8Array]",Lf="[object Uint8ClampedArray]",kf="[object Uint16Array]",jf="[object Uint32Array]";function If(n,e,t){var r=n.constructor;switch(e){case wf:return Di(n);case gf:case mf:return new r(+n);case Tf:return hf(n);case Af:case Sf:case Cf:case _f:case Of:case Rf:case Lf:case kf:case jf:return wl(n,t);case bf:return new r;case vf:case Ef:return new r(n);case yf:return ff(n);case xf:return new r;case Nf:return pf(n)}}function Tl(n){return typeof n.constructor=="function"&&!Ii(n)?Qu(yl(n)):{}}var qf="[object Map]";function Mf(n){return ut(n)&&He(n)==qf}var Ha=pn&&pn.isMap,Df=Ha?qi(Ha):Mf,Pf="[object Set]";function $f(n){return ut(n)&&He(n)==Pf}var za=pn&&pn.isSet,Bf=za?qi(za):$f,Ff=1,Al="[object Arguments]",Uf="[object Array]",Hf="[object Boolean]",zf="[object Date]",Gf="[object Error]",Sl="[object Function]",Vf="[object GeneratorFunction]",Wf="[object Map]",Kf="[object Number]",Cl="[object Object]",Yf="[object RegExp]",Xf="[object Set]",Zf="[object String]",Jf="[object Symbol]",Qf="[object WeakMap]",ep="[object ArrayBuffer]",tp="[object DataView]",np="[object Float32Array]",rp="[object Float64Array]",sp="[object Int8Array]",ip="[object Int16Array]",ap="[object Int32Array]",op="[object Uint8Array]",lp="[object Uint8ClampedArray]",cp="[object Uint16Array]",up="[object Uint32Array]",de={};de[Al]=de[Uf]=de[ep]=de[tp]=de[Hf]=de[zf]=de[np]=de[rp]=de[sp]=de[ip]=de[ap]=de[Wf]=de[Kf]=de[Cl]=de[Yf]=de[Xf]=de[Zf]=de[Jf]=de[op]=de[lp]=de[cp]=de[up]=!0;de[Gf]=de[Sl]=de[Qf]=!1;function Fr(n,e,t,r,s,i){var a,l=e&Ff;if(a!==void 0)return a;if(!Tt(n))return n;var c=qt(n);if(c)a=uf(n);else{var u=He(n),p=u==Sl||u==Vf;if(Xn(n))return Nl(n,l);if(u==Cl||u==Al||p&&!s)a=p?{}:Tl(n);else{if(!de[u])return s?n:{};a=If(n,u,l)}}i||(i=new et);var g=i.get(n);if(g)return g;i.set(n,a),Bf(n)?n.forEach(function(E){a.add(Fr(E,e,t,E,n,i))}):Df(n)&&n.forEach(function(E,y){a.set(y,Fr(E,e,t,y,n,i))});var h=gi,m=c?void 0:h(n);return ch(m||n,function(E,y){m&&(y=E,E=n[y]),hl(a,y,Fr(E,e,t,y,n,i))}),a}var hp=1,dp=4;function hn(n){return Fr(n,hp|dp)}var fp="__lodash_hash_undefined__";function pp(n){return this.__data__.set(n,fp),this}function gp(n){return this.__data__.has(n)}function Vr(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Ft;++e<t;)this.add(n[e])}Vr.prototype.add=Vr.prototype.push=pp;Vr.prototype.has=gp;function mp(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function bp(n,e){return n.has(e)}var vp=1,yp=2;function _l(n,e,t,r,s,i){var a=t&vp,l=n.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var u=i.get(n),p=i.get(e);if(u&&p)return u==e&&p==n;var g=-1,h=!0,m=t&yp?new Vr:void 0;for(i.set(n,e),i.set(e,n);++g<l;){var E=n[g],y=e[g];if(r)var N=a?r(y,E,g,e,n,i):r(E,y,g,n,e,i);if(N!==void 0){if(N)continue;h=!1;break}if(m){if(!mp(e,function(T,A){if(!bp(m,A)&&(E===T||s(E,T,t,r,i)))return m.push(A)})){h=!1;break}}else if(!(E===y||s(E,y,t,r,i))){h=!1;break}}return i.delete(n),i.delete(e),h}function xp(n){var e=-1,t=Array(n.size);return n.forEach(function(r,s){t[++e]=[s,r]}),t}function Ep(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Np=1,wp=2,Tp="[object Boolean]",Ap="[object Date]",Sp="[object Error]",Cp="[object Map]",_p="[object Number]",Op="[object RegExp]",Rp="[object Set]",Lp="[object String]",kp="[object Symbol]",jp="[object ArrayBuffer]",Ip="[object DataView]",Ga=Nt?Nt.prototype:void 0,Js=Ga?Ga.valueOf:void 0;function qp(n,e,t,r,s,i,a){switch(t){case Ip:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case jp:return!(n.byteLength!=e.byteLength||!i(new Gr(n),new Gr(e)));case Tp:case Ap:case _p:return rr(+n,+e);case Sp:return n.name==e.name&&n.message==e.message;case Op:case Lp:return n==e+"";case Cp:var l=xp;case Rp:var c=r&Np;if(l||(l=Ep),n.size!=e.size&&!c)return!1;var u=a.get(n);if(u)return u==e;r|=wp,a.set(n,e);var p=_l(l(n),l(e),r,s,i,a);return a.delete(n),p;case kp:if(Js)return Js.call(n)==Js.call(e)}return!1}var Mp=1,Dp=Object.prototype,Pp=Dp.hasOwnProperty;function $p(n,e,t,r,s,i){var a=t&Mp,l=gi(n),c=l.length,u=gi(e),p=u.length;if(c!=p&&!a)return!1;for(var g=c;g--;){var h=l[g];if(!(a?h in e:Pp.call(e,h)))return!1}var m=i.get(n),E=i.get(e);if(m&&E)return m==e&&E==n;var y=!0;i.set(n,e),i.set(e,n);for(var N=a;++g<c;){h=l[g];var T=n[h],A=e[h];if(r)var k=a?r(A,T,h,e,n,i):r(T,A,h,n,e,i);if(!(k===void 0?T===A||s(T,A,t,r,i):k)){y=!1;break}N||(N=h=="constructor")}if(y&&!N){var D=n.constructor,v=e.constructor;D!=v&&"constructor"in n&&"constructor"in e&&!(typeof D=="function"&&D instanceof D&&typeof v=="function"&&v instanceof v)&&(y=!1)}return i.delete(n),i.delete(e),y}var Bp=1,Va="[object Arguments]",Wa="[object Array]",Lr="[object Object]",Fp=Object.prototype,Ka=Fp.hasOwnProperty;function Up(n,e,t,r,s,i){var a=qt(n),l=qt(e),c=a?Wa:He(n),u=l?Wa:He(e);c=c==Va?Lr:c,u=u==Va?Lr:u;var p=c==Lr,g=u==Lr,h=c==u;if(h&&Xn(n)){if(!Xn(e))return!1;a=!0,p=!1}if(h&&!p)return i||(i=new et),a||Mi(n)?_l(n,e,t,r,s,i):qp(n,e,c,t,r,s,i);if(!(t&Bp)){var m=p&&Ka.call(n,"__wrapped__"),E=g&&Ka.call(e,"__wrapped__");if(m||E){var y=m?n.value():n,N=E?e.value():e;return i||(i=new et),s(y,N,t,r,i)}}return h?(i||(i=new et),$p(n,e,t,r,s,i)):!1}function Ol(n,e,t,r,s){return n===e?!0:n==null||e==null||!ut(n)&&!ut(e)?n!==n&&e!==e:Up(n,e,t,r,Ol,s)}function Hp(n){return function(e,t,r){for(var s=-1,i=Object(e),a=r(e),l=a.length;l--;){var c=a[++s];if(t(i[c],c,i)===!1)break}return e}}var zp=Hp();function yi(n,e,t){(t!==void 0&&!rr(n[e],t)||t===void 0&&!(e in n))&&ji(n,e,t)}function Gp(n){return ut(n)&&Xr(n)}function xi(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Vp(n){return ph(n,vl(n))}function Wp(n,e,t,r,s,i,a){var l=xi(n,t),c=xi(e,t),u=a.get(c);if(u){yi(n,t,u);return}var p=i?i(l,c,t+"",n,e,a):void 0,g=p===void 0;if(g){var h=qt(c),m=!h&&Xn(c),E=!h&&!m&&Mi(c);p=c,h||m||E?qt(l)?p=l:Gp(l)?p=th(l):m?(g=!1,p=Nl(c,!0)):E?(g=!1,p=wl(c,!0)):p=[]:Fd(c)||pi(c)?(p=l,pi(l)?p=Vp(l):(!Tt(l)||ki(l))&&(p=Tl(c))):g=!1}g&&(a.set(c,p),s(p,c,r,i,a),a.delete(c)),yi(n,t,p)}function Rl(n,e,t,r,s){n!==e&&zp(e,function(i,a){if(s||(s=new et),Tt(i))Wp(n,e,a,t,Rl,r,s);else{var l=r?r(xi(n,a),i,a+"",n,e,s):void 0;l===void 0&&(l=i),yi(n,a,l)}},vl)}function bt(n,e){return Ol(n,e)}var xt=yh(function(n,e,t){Rl(n,e,t)}),W=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(W||{});class tt{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const s=W.TYPE&W.ATTRIBUTE;this.scope=r.scope!=null?r.scope&W.LEVEL|s:W.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class dn extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const Ll=class Ei{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const s=this.query(t);if(s==null)throw new dn(`Unable to create ${t} blot`);const i=s,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(r),l=new i(e,a,r);return Ei.blots.set(l.domNode,l),l}find(e,t=!1){return Ei.find(e,t)}query(e,t=W.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&W.LEVEL&W.BLOCK?r=this.types.block:e&W.LEVEL&W.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(r=this.classes[s],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&W.LEVEL&r.scope&&t&W.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,s="attrName"in t;if(!r&&!s)throw new dn("Invalid definition");if(r&&t.blotName==="abstract")throw new dn("Cannot register abstract class");const i=r?t.blotName:s?t.attrName:void 0;return this.types[i]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};Ll.blots=new WeakMap;let gn=Ll;function Ya(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class Kp extends tt{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){Ya(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(Ya(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const We=Kp;function Qs(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class Yp extends tt{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Qs(this.keyName)]=t,!0):!1}remove(e){e.style[Qs(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Qs(this.keyName)];return this.canAdd(e,t)?t:""}}const At=Yp;class Xp{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=gn.find(this.domNode);if(e==null)return;const t=tt.keys(this.domNode),r=We.keys(this.domNode),s=At.keys(this.domNode);t.concat(r).concat(s).forEach(i=>{const a=e.scroll.query(i,W.ATTRIBUTE);a instanceof tt&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const Qr=Xp,kl=class{constructor(e,t){this.scroll=e,this.domNode=t,gn.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new dn("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),gn.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,s){const i=this.isolate(e,t);if(this.scroll.query(r,W.BLOT)!=null&&s)i.wrap(r,s);else if(this.scroll.query(r,W.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);i.wrap(a),a.format(r,s)}}insertAt(e,t,r){const s=r==null?this.scroll.create("text",t):this.scroll.create(t,r),i=this.split(e);this.parent.insertBefore(s,i||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new dn(`Cannot wrap ${e}`);return r.appendChild(this),r}};kl.blotName="abstract";let jl=kl;const Il=class extends jl{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Il.scope=W.INLINE_BLOT;let Zp=Il;const Ae=Zp;class Jp{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),s=0;for(;r;){if(r===e)return s;s+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let s=r();for(;s;){const i=s.length();if(e<i||t&&e===i&&(s.next==null||s.next.length()!==0))return[s,e];e-=i,s=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[s,i]=this.find(e);let a=e-i;const l=this.iterator(s);let c=l();for(;c&&a<e+t;){const u=c.length();e>a?r(c,e-a,Math.min(t,a+u-e)):r(c,0,Math.min(u,e+t-a)),a+=u,c=l()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let s=r();for(;s;)t=e(t,s),s=r();return t}}function Xa(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(W.INLINE);return Array.from(n.childNodes).forEach(s=>{r.domNode.appendChild(s)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const ql=class mt extends jl{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,mt.uiClass&&this.uiNode.classList.add(mt.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Jp,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Xa(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof dn)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,s,i)=>{r.deleteAt(s,i)})}descendant(e,t=0){const[r,s]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,s]:r instanceof mt?r.descendant(e,s):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let s=[],i=r;return this.children.forEachAt(t,r,(a,l,c)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&s.push(a),a instanceof mt&&(s=s.concat(a.descendants(e,l,i))),i-=c}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===W.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof mt?t.unwrap():t.remove())})}formatAt(e,t,r,s){this.children.forEachAt(e,t,(i,a,l)=>{i.formatAt(a,l,r,s)})}insertAt(e,t,r){const[s,i]=this.children.find(e);if(s)s.insertAt(i,t,r);else{const a=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(a)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,s]=this.children.find(e,t),i=[[this,e]];return r instanceof mt?i.concat(r.path(s,t)):(r!=null&&i.push([r,s]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof mt&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(s,i,a)=>{const l=s.split(i,t);l!=null&&r.appendChild(l)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],s=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(r.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(i);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,a)=>i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let a=null;i.nextSibling!=null&&(a=this.scroll.find(i.nextSibling));const l=Xa(i,this.scroll);(l.next!==a||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,a||void 0))}),this.enforceAllowedChildren()}};ql.uiClass="";let Qp=ql;const Ge=Qp;function eg(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const an=class on extends Ge{static create(e){return super.create(e)}static formats(e,t){const r=t.query(on.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Qr(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof on||(r=r.wrap(on.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,W.INLINE);if(r==null)return;r instanceof tt?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.formats()[r]!=null||this.scroll.query(r,W.ATTRIBUTE)?this.isolate(e,t).format(r,s):super.formatAt(e,t,r,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof on&&r.prev===this&&eg(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof on&&this.attributes.move(r),r}};an.allowedChildren=[an,Ae],an.blotName="inline",an.scope=W.INLINE_BLOT,an.tagName="SPAN";let tg=an;const Pi=tg,ln=class Ni extends Ge{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Ni.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Qr(this.domNode)}format(e,t){const r=this.scroll.query(e,W.BLOCK);r!=null&&(r instanceof tt?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(Ni.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,s){this.scroll.query(r,W.BLOCK)!=null?this.format(r,s):super.formatAt(e,t,r,s)}insertAt(e,t,r){if(r==null||this.scroll.query(t,W.INLINE)!=null)super.insertAt(e,t,r);else{const s=this.split(e);if(s!=null){const i=this.scroll.create(t,r);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};ln.blotName="block",ln.scope=W.BLOCK_BLOT,ln.tagName="P",ln.allowedChildren=[Pi,ln,Ae];let ng=ln;const Qn=ng,wi=class extends Ge{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,s){super.formatAt(e,t,r,s),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};wi.blotName="container",wi.scope=W.BLOCK_BLOT;let rg=wi;const es=rg;class sg extends Ae{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,s){e===0&&t===this.length()?this.format(r,s):super.formatAt(e,t,r,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const ke=sg,ig={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ag=100,cn=class extends Ge{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,ig),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=W.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,s){this.update(),super.formatAt(e,t,r,s)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const i=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&i(c.parent))},a=c=>{r.has(c.domNode)&&(c instanceof Ge&&c.children.forEach(a),r.delete(c.domNode),c.optimize(t))};let l=e;for(let c=0;l.length>0;c+=1){if(c>=ag)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const p=this.find(u.target,!0);p!=null&&(p.domNode===u.target&&(u.type==="childList"?(i(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(g=>{const h=this.find(g,!1);i(h,!1),h instanceof Ge&&h.children.forEach(m=>{i(m,!1)})})):u.type==="attributes"&&i(p.prev)),i(p))}),this.children.forEach(a),l=Array.from(this.observer.takeRecords()),s=l.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(s=>{const i=this.find(s.target,!0);return i==null?null:r.has(i.domNode)?(r.get(i.domNode).push(s),null):(r.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&r.has(s.domNode)&&s.update(r.get(s.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};cn.blotName="scroll",cn.defaultChild=Qn,cn.allowedChildren=[Qn,es],cn.scope=W.BLOCK_BLOT,cn.tagName="DIV";let og=cn;const $i=og,Ti=class Ml extends Ae{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Ml&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Ti.blotName="text",Ti.scope=W.INLINE_BLOT;let lg=Ti;const Wr=lg,cg=Object.freeze(Object.defineProperty({__proto__:null,Attributor:tt,AttributorStore:Qr,BlockBlot:Qn,ClassAttributor:We,ContainerBlot:es,EmbedBlot:ke,InlineBlot:Pi,LeafBlot:Ae,ParentBlot:Ge,Registry:gn,Scope:W,ScrollBlot:$i,StyleAttributor:At,TextBlot:Wr},Symbol.toStringTag,{value:"Module"}));var kr={exports:{}},ei,Za;function ug(){if(Za)return ei;Za=1;var n=-1,e=1,t=0;function r(b,q,w,R,M){if(b===q)return b?[[t,b]]:[];if(w!=null){var I=z(b,q,w);if(I)return I}var P=l(b,q),U=b.substring(0,P);b=b.substring(P),q=q.substring(P),P=u(b,q);var K=b.substring(b.length-P);b=b.substring(0,b.length-P),q=q.substring(0,q.length-P);var C=s(b,q);return U&&C.unshift([t,U]),K&&C.push([t,K]),A(C,M),R&&g(C),C}function s(b,q){var w;if(!b)return[[e,q]];if(!q)return[[n,b]];var R=b.length>q.length?b:q,M=b.length>q.length?q:b,I=R.indexOf(M);if(I!==-1)return w=[[e,R.substring(0,I)],[t,M],[e,R.substring(I+M.length)]],b.length>q.length&&(w[0][0]=w[2][0]=n),w;if(M.length===1)return[[n,b],[e,q]];var P=p(b,q);if(P){var U=P[0],K=P[1],C=P[2],$=P[3],F=P[4],Z=r(U,C),J=r(K,$);return Z.concat([[t,F]],J)}return i(b,q)}function i(b,q){for(var w=b.length,R=q.length,M=Math.ceil((w+R)/2),I=M,P=2*M,U=new Array(P),K=new Array(P),C=0;C<P;C++)U[C]=-1,K[C]=-1;U[I+1]=0,K[I+1]=0;for(var $=w-R,F=$%2!==0,Z=0,J=0,H=0,le=0,ue=0;ue<M;ue++){for(var Y=-ue+Z;Y<=ue-J;Y+=2){var ne=I+Y,re;Y===-ue||Y!==ue&&U[ne-1]<U[ne+1]?re=U[ne+1]:re=U[ne-1]+1;for(var ie=re-Y;re<w&&ie<R&&b.charAt(re)===q.charAt(ie);)re++,ie++;if(U[ne]=re,re>w)J+=2;else if(ie>R)Z+=2;else if(F){var ce=I+$-Y;if(ce>=0&&ce<P&&K[ce]!==-1){var he=w-K[ce];if(re>=he)return a(b,q,re,ie)}}}for(var pe=-ue+H;pe<=ue-le;pe+=2){var ce=I+pe,he;pe===-ue||pe!==ue&&K[ce-1]<K[ce+1]?he=K[ce+1]:he=K[ce-1]+1;for(var Ee=he-pe;he<w&&Ee<R&&b.charAt(w-he-1)===q.charAt(R-Ee-1);)he++,Ee++;if(K[ce]=he,he>w)le+=2;else if(Ee>R)H+=2;else if(!F){var ne=I+$-pe;if(ne>=0&&ne<P&&U[ne]!==-1){var re=U[ne],ie=I+re-ne;if(he=w-he,re>=he)return a(b,q,re,ie)}}}}return[[n,b],[e,q]]}function a(b,q,w,R){var M=b.substring(0,w),I=q.substring(0,R),P=b.substring(w),U=q.substring(R),K=r(M,I),C=r(P,U);return K.concat(C)}function l(b,q){if(!b||!q||b.charAt(0)!==q.charAt(0))return 0;for(var w=0,R=Math.min(b.length,q.length),M=R,I=0;w<M;)b.substring(I,M)==q.substring(I,M)?(w=M,I=w):R=M,M=Math.floor((R-w)/2+w);return k(b.charCodeAt(M-1))&&M--,M}function c(b,q){var w=b.length,R=q.length;if(w==0||R==0)return 0;w>R?b=b.substring(w-R):w<R&&(q=q.substring(0,w));var M=Math.min(w,R);if(b==q)return M;for(var I=0,P=1;;){var U=b.substring(M-P),K=q.indexOf(U);if(K==-1)return I;P+=K,(K==0||b.substring(M-P)==q.substring(0,P))&&(I=P,P++)}}function u(b,q){if(!b||!q||b.slice(-1)!==q.slice(-1))return 0;for(var w=0,R=Math.min(b.length,q.length),M=R,I=0;w<M;)b.substring(b.length-M,b.length-I)==q.substring(q.length-M,q.length-I)?(w=M,I=w):R=M,M=Math.floor((R-w)/2+w);return D(b.charCodeAt(b.length-M))&&M--,M}function p(b,q){var w=b.length>q.length?b:q,R=b.length>q.length?q:b;if(w.length<4||R.length*2<w.length)return null;function M(J,H,le){for(var ue=J.substring(le,le+Math.floor(J.length/4)),Y=-1,ne="",re,ie,ce,he;(Y=H.indexOf(ue,Y+1))!==-1;){var pe=l(J.substring(le),H.substring(Y)),Ee=u(J.substring(0,le),H.substring(0,Y));ne.length<Ee+pe&&(ne=H.substring(Y-Ee,Y)+H.substring(Y,Y+pe),re=J.substring(0,le-Ee),ie=J.substring(le+pe),ce=H.substring(0,Y-Ee),he=H.substring(Y+pe))}return ne.length*2>=J.length?[re,ie,ce,he,ne]:null}var I=M(w,R,Math.ceil(w.length/4)),P=M(w,R,Math.ceil(w.length/2)),U;if(!I&&!P)return null;P?I?U=I[4].length>P[4].length?I:P:U=P:U=I;var K,C,$,F;b.length>q.length?(K=U[0],C=U[1],$=U[2],F=U[3]):($=U[0],F=U[1],K=U[2],C=U[3]);var Z=U[4];return[K,C,$,F,Z]}function g(b){for(var q=!1,w=[],R=0,M=null,I=0,P=0,U=0,K=0,C=0;I<b.length;)b[I][0]==t?(w[R++]=I,P=K,U=C,K=0,C=0,M=b[I][1]):(b[I][0]==e?K+=b[I][1].length:C+=b[I][1].length,M&&M.length<=Math.max(P,U)&&M.length<=Math.max(K,C)&&(b.splice(w[R-1],0,[n,M]),b[w[R-1]+1][0]=e,R--,R--,I=R>0?w[R-1]:-1,P=0,U=0,K=0,C=0,M=null,q=!0)),I++;for(q&&A(b),T(b),I=1;I<b.length;){if(b[I-1][0]==n&&b[I][0]==e){var $=b[I-1][1],F=b[I][1],Z=c($,F),J=c(F,$);Z>=J?(Z>=$.length/2||Z>=F.length/2)&&(b.splice(I,0,[t,F.substring(0,Z)]),b[I-1][1]=$.substring(0,$.length-Z),b[I+1][1]=F.substring(Z),I++):(J>=$.length/2||J>=F.length/2)&&(b.splice(I,0,[t,$.substring(0,J)]),b[I-1][0]=e,b[I-1][1]=F.substring(0,F.length-J),b[I+1][0]=n,b[I+1][1]=$.substring(J),I++),I++}I++}}var h=/[^a-zA-Z0-9]/,m=/\s/,E=/[\r\n]/,y=/\n\r?\n$/,N=/^\r?\n\r?\n/;function T(b){function q(J,H){if(!J||!H)return 6;var le=J.charAt(J.length-1),ue=H.charAt(0),Y=le.match(h),ne=ue.match(h),re=Y&&le.match(m),ie=ne&&ue.match(m),ce=re&&le.match(E),he=ie&&ue.match(E),pe=ce&&J.match(y),Ee=he&&H.match(N);return pe||Ee?5:ce||he?4:Y&&!re&&ie?3:re||ie?2:Y||ne?1:0}for(var w=1;w<b.length-1;){if(b[w-1][0]==t&&b[w+1][0]==t){var R=b[w-1][1],M=b[w][1],I=b[w+1][1],P=u(R,M);if(P){var U=M.substring(M.length-P);R=R.substring(0,R.length-P),M=U+M.substring(0,M.length-P),I=U+I}for(var K=R,C=M,$=I,F=q(R,M)+q(M,I);M.charAt(0)===I.charAt(0);){R+=M.charAt(0),M=M.substring(1)+I.charAt(0),I=I.substring(1);var Z=q(R,M)+q(M,I);Z>=F&&(F=Z,K=R,C=M,$=I)}b[w-1][1]!=K&&(K?b[w-1][1]=K:(b.splice(w-1,1),w--),b[w][1]=C,$?b[w+1][1]=$:(b.splice(w+1,1),w--))}w++}}function A(b,q){b.push([t,""]);for(var w=0,R=0,M=0,I="",P="",U;w<b.length;){if(w<b.length-1&&!b[w][1]){b.splice(w,1);continue}switch(b[w][0]){case e:M++,P+=b[w][1],w++;break;case n:R++,I+=b[w][1],w++;break;case t:var K=w-M-R-1;if(q){if(K>=0&&S(b[K][1])){var C=b[K][1].slice(-1);if(b[K][1]=b[K][1].slice(0,-1),I=C+I,P=C+P,!b[K][1]){b.splice(K,1),w--;var $=K-1;b[$]&&b[$][0]===e&&(M++,P=b[$][1]+P,$--),b[$]&&b[$][0]===n&&(R++,I=b[$][1]+I,$--),K=$}}if(v(b[w][1])){var C=b[w][1].charAt(0);b[w][1]=b[w][1].slice(1),I+=C,P+=C}}if(w<b.length-1&&!b[w][1]){b.splice(w,1);break}if(I.length>0||P.length>0){I.length>0&&P.length>0&&(U=l(P,I),U!==0&&(K>=0?b[K][1]+=P.substring(0,U):(b.splice(0,0,[t,P.substring(0,U)]),w++),P=P.substring(U),I=I.substring(U)),U=u(P,I),U!==0&&(b[w][1]=P.substring(P.length-U)+b[w][1],P=P.substring(0,P.length-U),I=I.substring(0,I.length-U)));var F=M+R;I.length===0&&P.length===0?(b.splice(w-F,F),w=w-F):I.length===0?(b.splice(w-F,F,[e,P]),w=w-F+1):P.length===0?(b.splice(w-F,F,[n,I]),w=w-F+1):(b.splice(w-F,F,[n,I],[e,P]),w=w-F+2)}w!==0&&b[w-1][0]===t?(b[w-1][1]+=b[w][1],b.splice(w,1)):w++,M=0,R=0,I="",P="";break}}b[b.length-1][1]===""&&b.pop();var Z=!1;for(w=1;w<b.length-1;)b[w-1][0]===t&&b[w+1][0]===t&&(b[w][1].substring(b[w][1].length-b[w-1][1].length)===b[w-1][1]?(b[w][1]=b[w-1][1]+b[w][1].substring(0,b[w][1].length-b[w-1][1].length),b[w+1][1]=b[w-1][1]+b[w+1][1],b.splice(w-1,1),Z=!0):b[w][1].substring(0,b[w+1][1].length)==b[w+1][1]&&(b[w-1][1]+=b[w+1][1],b[w][1]=b[w][1].substring(b[w+1][1].length)+b[w+1][1],b.splice(w+1,1),Z=!0)),w++;Z&&A(b,q)}function k(b){return b>=55296&&b<=56319}function D(b){return b>=56320&&b<=57343}function v(b){return D(b.charCodeAt(0))}function S(b){return k(b.charCodeAt(b.length-1))}function j(b){for(var q=[],w=0;w<b.length;w++)b[w][1].length>0&&q.push(b[w]);return q}function B(b,q,w,R){return S(b)||v(R)?null:j([[t,b],[n,q],[e,w],[t,R]])}function z(b,q,w){var R=typeof w=="number"?{index:w,length:0}:w.oldRange,M=typeof w=="number"?null:w.newRange,I=b.length,P=q.length;if(R.length===0&&(M===null||M.length===0)){var U=R.index,K=b.slice(0,U),C=b.slice(U),$=M?M.index:null;e:{var F=U+P-I;if($!==null&&$!==F||F<0||F>P)break e;var Z=q.slice(0,F),J=q.slice(F);if(J!==C)break e;var H=Math.min(U,F),le=K.slice(0,H),ue=Z.slice(0,H);if(le!==ue)break e;var Y=K.slice(H),ne=Z.slice(H);return B(le,Y,ne,C)}e:{if($!==null&&$!==U)break e;var re=U,Z=q.slice(0,re),J=q.slice(re);if(Z!==K)break e;var ie=Math.min(I-re,P-re),ce=C.slice(C.length-ie),he=J.slice(J.length-ie);if(ce!==he)break e;var Y=C.slice(0,C.length-ie),ne=J.slice(0,J.length-ie);return B(K,Y,ne,ce)}}if(R.length>0&&M&&M.length===0)e:{var le=b.slice(0,R.index),ce=b.slice(R.index+R.length),H=le.length,ie=ce.length;if(P<H+ie)break e;var ue=q.slice(0,H),he=q.slice(P-ie);if(le!==ue||ce!==he)break e;var Y=b.slice(H,I-ie),ne=q.slice(H,P-ie);return B(le,Y,ne,ce)}return null}function ee(b,q,w,R){return r(b,q,w,R,!0)}return ee.INSERT=e,ee.DELETE=n,ee.EQUAL=t,ei=ee,ei}var Hn={exports:{}};Hn.exports;var Ja;function Dl(){return Ja||(Ja=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",g="[object GeneratorFunction]",h="[object Map]",m="[object Number]",E="[object Object]",y="[object Promise]",N="[object RegExp]",T="[object Set]",A="[object String]",k="[object Symbol]",D="[object WeakMap]",v="[object ArrayBuffer]",S="[object DataView]",j="[object Float32Array]",B="[object Float64Array]",z="[object Int8Array]",ee="[object Int16Array]",b="[object Int32Array]",q="[object Uint8Array]",w="[object Uint8ClampedArray]",R="[object Uint16Array]",M="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,P=/\w*$/,U=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,C={};C[i]=C[a]=C[v]=C[S]=C[l]=C[c]=C[j]=C[B]=C[z]=C[ee]=C[b]=C[h]=C[m]=C[E]=C[N]=C[T]=C[A]=C[k]=C[q]=C[w]=C[R]=C[M]=!0,C[u]=C[p]=C[D]=!1;var $=typeof vt=="object"&&vt&&vt.Object===Object&&vt,F=typeof self=="object"&&self&&self.Object===Object&&self,Z=$||F||Function("return this")(),J=e&&!e.nodeType&&e,H=J&&!0&&n&&!n.nodeType&&n,le=H&&H.exports===J;function ue(o,f){return o.set(f[0],f[1]),o}function Y(o,f){return o.add(f),o}function ne(o,f){for(var x=-1,O=o?o.length:0;++x<O&&f(o[x],x,o)!==!1;);return o}function re(o,f){for(var x=-1,O=f.length,Q=o.length;++x<O;)o[Q+x]=f[x];return o}function ie(o,f,x,O){for(var Q=-1,X=o?o.length:0;++Q<X;)x=f(x,o[Q],Q,o);return x}function ce(o,f){for(var x=-1,O=Array(o);++x<o;)O[x]=f(x);return O}function he(o,f){return o?.[f]}function pe(o){var f=!1;if(o!=null&&typeof o.toString!="function")try{f=!!(o+"")}catch{}return f}function Ee(o){var f=-1,x=Array(o.size);return o.forEach(function(O,Q){x[++f]=[Q,O]}),x}function vn(o,f){return function(x){return o(f(x))}}function lr(o){var f=-1,x=Array(o.size);return o.forEach(function(O){x[++f]=O}),x}var is=Array.prototype,as=Function.prototype,Gt=Object.prototype,yn=Z["__core-js_shared__"],cr=function(){var o=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),ur=as.toString,Ye=Gt.hasOwnProperty,Vt=Gt.toString,os=RegExp("^"+ur.call(Ye).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),St=le?Z.Buffer:void 0,Wt=Z.Symbol,xn=Z.Uint8Array,je=vn(Object.getPrototypeOf,Object),hr=Object.create,dr=Gt.propertyIsEnumerable,ls=is.splice,En=Object.getOwnPropertySymbols,Kt=St?St.isBuffer:void 0,fr=vn(Object.keys,Object),Yt=Fe(Z,"DataView"),Ct=Fe(Z,"Map"),Be=Fe(Z,"Promise"),Xt=Fe(Z,"Set"),Nn=Fe(Z,"WeakMap"),_t=Fe(Object,"create"),wn=Se(Yt),Ot=Se(Ct),Tn=Se(Be),An=Se(Xt),Sn=Se(Nn),pt=Wt?Wt.prototype:void 0,pr=pt?pt.valueOf:void 0;function st(o){var f=-1,x=o?o.length:0;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function cs(){this.__data__=_t?_t(null):{}}function us(o){return this.has(o)&&delete this.__data__[o]}function hs(o){var f=this.__data__;if(_t){var x=f[o];return x===r?void 0:x}return Ye.call(f,o)?f[o]:void 0}function gr(o){var f=this.__data__;return _t?f[o]!==void 0:Ye.call(f,o)}function Cn(o,f){var x=this.__data__;return x[o]=_t&&f===void 0?r:f,this}st.prototype.clear=cs,st.prototype.delete=us,st.prototype.get=hs,st.prototype.has=gr,st.prototype.set=Cn;function be(o){var f=-1,x=o?o.length:0;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function ds(){this.__data__=[]}function fs(o){var f=this.__data__,x=Jt(f,o);if(x<0)return!1;var O=f.length-1;return x==O?f.pop():ls.call(f,x,1),!0}function ps(o){var f=this.__data__,x=Jt(f,o);return x<0?void 0:f[x][1]}function gs(o){return Jt(this.__data__,o)>-1}function ms(o,f){var x=this.__data__,O=Jt(x,o);return O<0?x.push([o,f]):x[O][1]=f,this}be.prototype.clear=ds,be.prototype.delete=fs,be.prototype.get=ps,be.prototype.has=gs,be.prototype.set=ms;function Ne(o){var f=-1,x=o?o.length:0;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function bs(){this.__data__={hash:new st,map:new(Ct||be),string:new st}}function vs(o){return Lt(this,o).delete(o)}function ys(o){return Lt(this,o).get(o)}function xs(o){return Lt(this,o).has(o)}function Es(o,f){return Lt(this,o).set(o,f),this}Ne.prototype.clear=bs,Ne.prototype.delete=vs,Ne.prototype.get=ys,Ne.prototype.has=xs,Ne.prototype.set=Es;function Re(o){this.__data__=new be(o)}function Ns(){this.__data__=new be}function ws(o){return this.__data__.delete(o)}function Ts(o){return this.__data__.get(o)}function As(o){return this.__data__.has(o)}function Ss(o,f){var x=this.__data__;if(x instanceof be){var O=x.__data__;if(!Ct||O.length<t-1)return O.push([o,f]),this;x=this.__data__=new Ne(O)}return x.set(o,f),this}Re.prototype.clear=Ns,Re.prototype.delete=ws,Re.prototype.get=Ts,Re.prototype.has=As,Re.prototype.set=Ss;function Zt(o,f){var x=Ln(o)||en(o)?ce(o.length,String):[],O=x.length,Q=!!O;for(var X in o)Ye.call(o,X)&&!(Q&&(X=="length"||Bs(X,O)))&&x.push(X);return x}function mr(o,f,x){var O=o[f];(!(Ye.call(o,f)&&Er(O,x))||x===void 0&&!(f in o))&&(o[f]=x)}function Jt(o,f){for(var x=o.length;x--;)if(Er(o[x][0],f))return x;return-1}function Xe(o,f){return o&&Rn(f,jn(f),o)}function _n(o,f,x,O,Q,X,ae){var se;if(O&&(se=X?O(o,Q,X,ae):O(o)),se!==void 0)return se;if(!Je(o))return o;var ge=Ln(o);if(ge){if(se=Ps(o),!f)return qs(o,se)}else{var oe=at(o),we=oe==p||oe==g;if(Nr(o))return Qt(o,f);if(oe==E||oe==i||we&&!X){if(pe(o))return X?o:{};if(se=Ze(we?{}:o),!f)return Ms(o,Xe(se,o))}else{if(!C[oe])return X?o:{};se=$s(o,oe,_n,f)}}ae||(ae=new Re);var Le=ae.get(o);if(Le)return Le;if(ae.set(o,se),!ge)var me=x?Ds(o):jn(o);return ne(me||o,function(Te,ve){me&&(ve=Te,Te=o[ve]),mr(se,ve,_n(Te,f,x,O,ve,o,ae))}),se}function Cs(o){return Je(o)?hr(o):{}}function _s(o,f,x){var O=f(o);return Ln(o)?O:re(O,x(o))}function Os(o){return Vt.call(o)}function Rs(o){if(!Je(o)||Us(o))return!1;var f=kn(o)||pe(o)?os:U;return f.test(Se(o))}function Ls(o){if(!yr(o))return fr(o);var f=[];for(var x in Object(o))Ye.call(o,x)&&x!="constructor"&&f.push(x);return f}function Qt(o,f){if(f)return o.slice();var x=new o.constructor(o.length);return o.copy(x),x}function On(o){var f=new o.constructor(o.byteLength);return new xn(f).set(new xn(o)),f}function Rt(o,f){var x=f?On(o.buffer):o.buffer;return new o.constructor(x,o.byteOffset,o.byteLength)}function br(o,f,x){var O=f?x(Ee(o),!0):Ee(o);return ie(O,ue,new o.constructor)}function vr(o){var f=new o.constructor(o.source,P.exec(o));return f.lastIndex=o.lastIndex,f}function ks(o,f,x){var O=f?x(lr(o),!0):lr(o);return ie(O,Y,new o.constructor)}function js(o){return pr?Object(pr.call(o)):{}}function Is(o,f){var x=f?On(o.buffer):o.buffer;return new o.constructor(x,o.byteOffset,o.length)}function qs(o,f){var x=-1,O=o.length;for(f||(f=Array(O));++x<O;)f[x]=o[x];return f}function Rn(o,f,x,O){x||(x={});for(var Q=-1,X=f.length;++Q<X;){var ae=f[Q],se=void 0;mr(x,ae,se===void 0?o[ae]:se)}return x}function Ms(o,f){return Rn(o,it(o),f)}function Ds(o){return _s(o,jn,it)}function Lt(o,f){var x=o.__data__;return Fs(f)?x[typeof f=="string"?"string":"hash"]:x.map}function Fe(o,f){var x=he(o,f);return Rs(x)?x:void 0}var it=En?vn(En,Object):zs,at=Os;(Yt&&at(new Yt(new ArrayBuffer(1)))!=S||Ct&&at(new Ct)!=h||Be&&at(Be.resolve())!=y||Xt&&at(new Xt)!=T||Nn&&at(new Nn)!=D)&&(at=function(o){var f=Vt.call(o),x=f==E?o.constructor:void 0,O=x?Se(x):void 0;if(O)switch(O){case wn:return S;case Ot:return h;case Tn:return y;case An:return T;case Sn:return D}return f});function Ps(o){var f=o.length,x=o.constructor(f);return f&&typeof o[0]=="string"&&Ye.call(o,"index")&&(x.index=o.index,x.input=o.input),x}function Ze(o){return typeof o.constructor=="function"&&!yr(o)?Cs(je(o)):{}}function $s(o,f,x,O){var Q=o.constructor;switch(f){case v:return On(o);case l:case c:return new Q(+o);case S:return Rt(o,O);case j:case B:case z:case ee:case b:case q:case w:case R:case M:return Is(o,O);case h:return br(o,O,x);case m:case A:return new Q(o);case N:return vr(o);case T:return ks(o,O,x);case k:return js(o)}}function Bs(o,f){return f=f??s,!!f&&(typeof o=="number"||K.test(o))&&o>-1&&o%1==0&&o<f}function Fs(o){var f=typeof o;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?o!=="__proto__":o===null}function Us(o){return!!cr&&cr in o}function yr(o){var f=o&&o.constructor,x=typeof f=="function"&&f.prototype||Gt;return o===x}function Se(o){if(o!=null){try{return ur.call(o)}catch{}try{return o+""}catch{}}return""}function xr(o){return _n(o,!0,!0)}function Er(o,f){return o===f||o!==o&&f!==f}function en(o){return Hs(o)&&Ye.call(o,"callee")&&(!dr.call(o,"callee")||Vt.call(o)==i)}var Ln=Array.isArray;function tn(o){return o!=null&&wr(o.length)&&!kn(o)}function Hs(o){return Tr(o)&&tn(o)}var Nr=Kt||Gs;function kn(o){var f=Je(o)?Vt.call(o):"";return f==p||f==g}function wr(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=s}function Je(o){var f=typeof o;return!!o&&(f=="object"||f=="function")}function Tr(o){return!!o&&typeof o=="object"}function jn(o){return tn(o)?Zt(o):Ls(o)}function zs(){return[]}function Gs(){return!1}n.exports=xr}(Hn,Hn.exports)),Hn.exports}var zn={exports:{}};zn.exports;var Qa;function Pl(){return Qa||(Qa=1,function(n,e){var t=200,r="__lodash_hash_undefined__",s=1,i=2,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",h="[object Error]",m="[object Function]",E="[object GeneratorFunction]",y="[object Map]",N="[object Number]",T="[object Null]",A="[object Object]",k="[object Promise]",D="[object Proxy]",v="[object RegExp]",S="[object Set]",j="[object String]",B="[object Symbol]",z="[object Undefined]",ee="[object WeakMap]",b="[object ArrayBuffer]",q="[object DataView]",w="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",I="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",K="[object Uint8ClampedArray]",C="[object Uint16Array]",$="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,H={};H[w]=H[R]=H[M]=H[I]=H[P]=H[U]=H[K]=H[C]=H[$]=!0,H[l]=H[c]=H[b]=H[p]=H[q]=H[g]=H[h]=H[m]=H[y]=H[N]=H[A]=H[v]=H[S]=H[j]=H[ee]=!1;var le=typeof vt=="object"&&vt&&vt.Object===Object&&vt,ue=typeof self=="object"&&self&&self.Object===Object&&self,Y=le||ue||Function("return this")(),ne=e&&!e.nodeType&&e,re=ne&&!0&&n&&!n.nodeType&&n,ie=re&&re.exports===ne,ce=ie&&le.process,he=function(){try{return ce&&ce.binding&&ce.binding("util")}catch{}}(),pe=he&&he.isTypedArray;function Ee(o,f){for(var x=-1,O=o==null?0:o.length,Q=0,X=[];++x<O;){var ae=o[x];f(ae,x,o)&&(X[Q++]=ae)}return X}function vn(o,f){for(var x=-1,O=f.length,Q=o.length;++x<O;)o[Q+x]=f[x];return o}function lr(o,f){for(var x=-1,O=o==null?0:o.length;++x<O;)if(f(o[x],x,o))return!0;return!1}function is(o,f){for(var x=-1,O=Array(o);++x<o;)O[x]=f(x);return O}function as(o){return function(f){return o(f)}}function Gt(o,f){return o.has(f)}function yn(o,f){return o?.[f]}function cr(o){var f=-1,x=Array(o.size);return o.forEach(function(O,Q){x[++f]=[Q,O]}),x}function ur(o,f){return function(x){return o(f(x))}}function Ye(o){var f=-1,x=Array(o.size);return o.forEach(function(O){x[++f]=O}),x}var Vt=Array.prototype,os=Function.prototype,St=Object.prototype,Wt=Y["__core-js_shared__"],xn=os.toString,je=St.hasOwnProperty,hr=function(){var o=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),dr=St.toString,ls=RegExp("^"+xn.call(je).replace(F,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=ie?Y.Buffer:void 0,Kt=Y.Symbol,fr=Y.Uint8Array,Yt=St.propertyIsEnumerable,Ct=Vt.splice,Be=Kt?Kt.toStringTag:void 0,Xt=Object.getOwnPropertySymbols,Nn=En?En.isBuffer:void 0,_t=ur(Object.keys,Object),wn=it(Y,"DataView"),Ot=it(Y,"Map"),Tn=it(Y,"Promise"),An=it(Y,"Set"),Sn=it(Y,"WeakMap"),pt=it(Object,"create"),pr=Se(wn),st=Se(Ot),cs=Se(Tn),us=Se(An),hs=Se(Sn),gr=Kt?Kt.prototype:void 0,Cn=gr?gr.valueOf:void 0;function be(o){var f=-1,x=o==null?0:o.length;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function ds(){this.__data__=pt?pt(null):{},this.size=0}function fs(o){var f=this.has(o)&&delete this.__data__[o];return this.size-=f?1:0,f}function ps(o){var f=this.__data__;if(pt){var x=f[o];return x===r?void 0:x}return je.call(f,o)?f[o]:void 0}function gs(o){var f=this.__data__;return pt?f[o]!==void 0:je.call(f,o)}function ms(o,f){var x=this.__data__;return this.size+=this.has(o)?0:1,x[o]=pt&&f===void 0?r:f,this}be.prototype.clear=ds,be.prototype.delete=fs,be.prototype.get=ps,be.prototype.has=gs,be.prototype.set=ms;function Ne(o){var f=-1,x=o==null?0:o.length;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function bs(){this.__data__=[],this.size=0}function vs(o){var f=this.__data__,x=Qt(f,o);if(x<0)return!1;var O=f.length-1;return x==O?f.pop():Ct.call(f,x,1),--this.size,!0}function ys(o){var f=this.__data__,x=Qt(f,o);return x<0?void 0:f[x][1]}function xs(o){return Qt(this.__data__,o)>-1}function Es(o,f){var x=this.__data__,O=Qt(x,o);return O<0?(++this.size,x.push([o,f])):x[O][1]=f,this}Ne.prototype.clear=bs,Ne.prototype.delete=vs,Ne.prototype.get=ys,Ne.prototype.has=xs,Ne.prototype.set=Es;function Re(o){var f=-1,x=o==null?0:o.length;for(this.clear();++f<x;){var O=o[f];this.set(O[0],O[1])}}function Ns(){this.size=0,this.__data__={hash:new be,map:new(Ot||Ne),string:new be}}function ws(o){var f=Fe(this,o).delete(o);return this.size-=f?1:0,f}function Ts(o){return Fe(this,o).get(o)}function As(o){return Fe(this,o).has(o)}function Ss(o,f){var x=Fe(this,o),O=x.size;return x.set(o,f),this.size+=x.size==O?0:1,this}Re.prototype.clear=Ns,Re.prototype.delete=ws,Re.prototype.get=Ts,Re.prototype.has=As,Re.prototype.set=Ss;function Zt(o){var f=-1,x=o==null?0:o.length;for(this.__data__=new Re;++f<x;)this.add(o[f])}function mr(o){return this.__data__.set(o,r),this}function Jt(o){return this.__data__.has(o)}Zt.prototype.add=Zt.prototype.push=mr,Zt.prototype.has=Jt;function Xe(o){var f=this.__data__=new Ne(o);this.size=f.size}function _n(){this.__data__=new Ne,this.size=0}function Cs(o){var f=this.__data__,x=f.delete(o);return this.size=f.size,x}function _s(o){return this.__data__.get(o)}function Os(o){return this.__data__.has(o)}function Rs(o,f){var x=this.__data__;if(x instanceof Ne){var O=x.__data__;if(!Ot||O.length<t-1)return O.push([o,f]),this.size=++x.size,this;x=this.__data__=new Re(O)}return x.set(o,f),this.size=x.size,this}Xe.prototype.clear=_n,Xe.prototype.delete=Cs,Xe.prototype.get=_s,Xe.prototype.has=Os,Xe.prototype.set=Rs;function Ls(o,f){var x=en(o),O=!x&&Er(o),Q=!x&&!O&&tn(o),X=!x&&!O&&!Q&&Tr(o),ae=x||O||Q||X,se=ae?is(o.length,String):[],ge=se.length;for(var oe in o)je.call(o,oe)&&!(ae&&(oe=="length"||Q&&(oe=="offset"||oe=="parent")||X&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||$s(oe,ge)))&&se.push(oe);return se}function Qt(o,f){for(var x=o.length;x--;)if(xr(o[x][0],f))return x;return-1}function On(o,f,x){var O=f(o);return en(o)?O:vn(O,x(o))}function Rt(o){return o==null?o===void 0?z:T:Be&&Be in Object(o)?at(o):yr(o)}function br(o){return Je(o)&&Rt(o)==l}function vr(o,f,x,O,Q){return o===f?!0:o==null||f==null||!Je(o)&&!Je(f)?o!==o&&f!==f:ks(o,f,x,O,vr,Q)}function ks(o,f,x,O,Q,X){var ae=en(o),se=en(f),ge=ae?c:Ze(o),oe=se?c:Ze(f);ge=ge==l?A:ge,oe=oe==l?A:oe;var we=ge==A,Le=oe==A,me=ge==oe;if(me&&tn(o)){if(!tn(f))return!1;ae=!0,we=!1}if(me&&!we)return X||(X=new Xe),ae||Tr(o)?Rn(o,f,x,O,Q,X):Ms(o,f,ge,x,O,Q,X);if(!(x&s)){var Te=we&&je.call(o,"__wrapped__"),ve=Le&&je.call(f,"__wrapped__");if(Te||ve){var gt=Te?o.value():o,ot=ve?f.value():f;return X||(X=new Xe),Q(gt,ot,x,O,X)}}return me?(X||(X=new Xe),Ds(o,f,x,O,Q,X)):!1}function js(o){if(!wr(o)||Fs(o))return!1;var f=Nr(o)?ls:Z;return f.test(Se(o))}function Is(o){return Je(o)&&kn(o.length)&&!!H[Rt(o)]}function qs(o){if(!Us(o))return _t(o);var f=[];for(var x in Object(o))je.call(o,x)&&x!="constructor"&&f.push(x);return f}function Rn(o,f,x,O,Q,X){var ae=x&s,se=o.length,ge=f.length;if(se!=ge&&!(ae&&ge>se))return!1;var oe=X.get(o);if(oe&&X.get(f))return oe==f;var we=-1,Le=!0,me=x&i?new Zt:void 0;for(X.set(o,f),X.set(f,o);++we<se;){var Te=o[we],ve=f[we];if(O)var gt=ae?O(ve,Te,we,f,o,X):O(Te,ve,we,o,f,X);if(gt!==void 0){if(gt)continue;Le=!1;break}if(me){if(!lr(f,function(ot,kt){if(!Gt(me,kt)&&(Te===ot||Q(Te,ot,x,O,X)))return me.push(kt)})){Le=!1;break}}else if(!(Te===ve||Q(Te,ve,x,O,X))){Le=!1;break}}return X.delete(o),X.delete(f),Le}function Ms(o,f,x,O,Q,X,ae){switch(x){case q:if(o.byteLength!=f.byteLength||o.byteOffset!=f.byteOffset)return!1;o=o.buffer,f=f.buffer;case b:return!(o.byteLength!=f.byteLength||!X(new fr(o),new fr(f)));case p:case g:case N:return xr(+o,+f);case h:return o.name==f.name&&o.message==f.message;case v:case j:return o==f+"";case y:var se=cr;case S:var ge=O&s;if(se||(se=Ye),o.size!=f.size&&!ge)return!1;var oe=ae.get(o);if(oe)return oe==f;O|=i,ae.set(o,f);var we=Rn(se(o),se(f),O,Q,X,ae);return ae.delete(o),we;case B:if(Cn)return Cn.call(o)==Cn.call(f)}return!1}function Ds(o,f,x,O,Q,X){var ae=x&s,se=Lt(o),ge=se.length,oe=Lt(f),we=oe.length;if(ge!=we&&!ae)return!1;for(var Le=ge;Le--;){var me=se[Le];if(!(ae?me in f:je.call(f,me)))return!1}var Te=X.get(o);if(Te&&X.get(f))return Te==f;var ve=!0;X.set(o,f),X.set(f,o);for(var gt=ae;++Le<ge;){me=se[Le];var ot=o[me],kt=f[me];if(O)var Zi=ae?O(kt,ot,me,f,o,X):O(ot,kt,me,o,f,X);if(!(Zi===void 0?ot===kt||Q(ot,kt,x,O,X):Zi)){ve=!1;break}gt||(gt=me=="constructor")}if(ve&&!gt){var Ar=o.constructor,Sr=f.constructor;Ar!=Sr&&"constructor"in o&&"constructor"in f&&!(typeof Ar=="function"&&Ar instanceof Ar&&typeof Sr=="function"&&Sr instanceof Sr)&&(ve=!1)}return X.delete(o),X.delete(f),ve}function Lt(o){return On(o,jn,Ps)}function Fe(o,f){var x=o.__data__;return Bs(f)?x[typeof f=="string"?"string":"hash"]:x.map}function it(o,f){var x=yn(o,f);return js(x)?x:void 0}function at(o){var f=je.call(o,Be),x=o[Be];try{o[Be]=void 0;var O=!0}catch{}var Q=dr.call(o);return O&&(f?o[Be]=x:delete o[Be]),Q}var Ps=Xt?function(o){return o==null?[]:(o=Object(o),Ee(Xt(o),function(f){return Yt.call(o,f)}))}:zs,Ze=Rt;(wn&&Ze(new wn(new ArrayBuffer(1)))!=q||Ot&&Ze(new Ot)!=y||Tn&&Ze(Tn.resolve())!=k||An&&Ze(new An)!=S||Sn&&Ze(new Sn)!=ee)&&(Ze=function(o){var f=Rt(o),x=f==A?o.constructor:void 0,O=x?Se(x):"";if(O)switch(O){case pr:return q;case st:return y;case cs:return k;case us:return S;case hs:return ee}return f});function $s(o,f){return f=f??a,!!f&&(typeof o=="number"||J.test(o))&&o>-1&&o%1==0&&o<f}function Bs(o){var f=typeof o;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?o!=="__proto__":o===null}function Fs(o){return!!hr&&hr in o}function Us(o){var f=o&&o.constructor,x=typeof f=="function"&&f.prototype||St;return o===x}function yr(o){return dr.call(o)}function Se(o){if(o!=null){try{return xn.call(o)}catch{}try{return o+""}catch{}}return""}function xr(o,f){return o===f||o!==o&&f!==f}var Er=br(function(){return arguments}())?br:function(o){return Je(o)&&je.call(o,"callee")&&!Yt.call(o,"callee")},en=Array.isArray;function Ln(o){return o!=null&&kn(o.length)&&!Nr(o)}var tn=Nn||Gs;function Hs(o,f){return vr(o,f)}function Nr(o){if(!wr(o))return!1;var f=Rt(o);return f==m||f==E||f==u||f==D}function kn(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=a}function wr(o){var f=typeof o;return o!=null&&(f=="object"||f=="function")}function Je(o){return o!=null&&typeof o=="object"}var Tr=pe?as(pe):Is;function jn(o){return Ln(o)?Ls(o):qs(o)}function zs(){return[]}function Gs(){return!1}n.exports=Hs}(zn,zn.exports)),zn.exports}var jr={},eo;function hg(){if(eo)return jr;eo=1,Object.defineProperty(jr,"__esModule",{value:!0});const n=Dl(),e=Pl();var t;return function(r){function s(c={},u={},p=!1){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});let g=n(u);p||(g=Object.keys(g).reduce((h,m)=>(g[m]!=null&&(h[m]=g[m]),h),{}));for(const h in c)c[h]!==void 0&&u[h]===void 0&&(g[h]=c[h]);return Object.keys(g).length>0?g:void 0}r.compose=s;function i(c={},u={}){typeof c!="object"&&(c={}),typeof u!="object"&&(u={});const p=Object.keys(c).concat(Object.keys(u)).reduce((g,h)=>(e(c[h],u[h])||(g[h]=u[h]===void 0?null:u[h]),g),{});return Object.keys(p).length>0?p:void 0}r.diff=i;function a(c={},u={}){c=c||{};const p=Object.keys(u).reduce((g,h)=>(u[h]!==c[h]&&c[h]!==void 0&&(g[h]=u[h]),g),{});return Object.keys(c).reduce((g,h)=>(c[h]!==u[h]&&u[h]===void 0&&(g[h]=null),g),p)}r.invert=a;function l(c,u,p=!1){if(typeof c!="object")return u;if(typeof u!="object")return;if(!p)return u;const g=Object.keys(u).reduce((h,m)=>(c[m]===void 0&&(h[m]=u[m]),h),{});return Object.keys(g).length>0?g:void 0}r.transform=l}(t||(t={})),jr.default=t,jr}var Ir={},to;function $l(){if(to)return Ir;to=1,Object.defineProperty(Ir,"__esModule",{value:!0});var n;return function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t}(n||(n={})),Ir.default=n,Ir}var qr={},no;function dg(){if(no)return qr;no=1,Object.defineProperty(qr,"__esModule",{value:!0});const n=$l();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const s=this.ops[this.index];if(s){const i=this.offset,a=n.default.length(s);if(r>=a-i?(r=a-i,this.index+=1,this.offset=0):this.offset+=r,typeof s.delete=="number")return{delete:r};{const l={};return s.attributes&&(l.attributes=s.attributes),typeof s.retain=="number"?l.retain=r:typeof s.retain=="object"&&s.retain!==null?l.retain=s.retain:typeof s.insert=="string"?l.insert=s.insert.substr(i,r):l.insert=s.insert,l}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,s=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=s,[i].concat(a)}}else return[]}}return qr.default=e,qr}var ro;function fg(){return ro||(ro=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=ug(),r=Dl(),s=Pl(),i=hg();e.AttributeMap=i.default;const a=$l();e.Op=a.default;const l=dg();e.OpIterator=l.default;const c="\0",u=(g,h)=>{if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const m=Object.keys(g)[0];if(!m||m!==Object.keys(h)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(h)[0]}`);return[m,g[m],h[m]]};class p{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,m){this.handlers[h]=m}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const m=this.handlers[h];if(!m)throw new Error(`no handlers for embed type "${h}"`);return m}insert(h,m){const E={};return typeof h=="string"&&h.length===0?this:(E.insert=h,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(E.attributes=m),this.push(E))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,m){if(typeof h=="number"&&h<=0)return this;const E={retain:h};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(E.attributes=m),this.push(E)}push(h){let m=this.ops.length,E=this.ops[m-1];if(h=r(h),typeof E=="object"){if(typeof h.delete=="number"&&typeof E.delete=="number")return this.ops[m-1]={delete:E.delete+h.delete},this;if(typeof E.delete=="number"&&h.insert!=null&&(m-=1,E=this.ops[m-1],typeof E!="object"))return this.ops.unshift(h),this;if(s(h.attributes,E.attributes)){if(typeof h.insert=="string"&&typeof E.insert=="string")return this.ops[m-1]={insert:E.insert+h.insert},typeof h.attributes=="object"&&(this.ops[m-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof E.retain=="number")return this.ops[m-1]={retain:E.retain+h.retain},typeof h.attributes=="object"&&(this.ops[m-1].attributes=h.attributes),this}}return m===this.ops.length?this.ops.push(h):this.ops.splice(m,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const m=[],E=[];return this.forEach(y=>{(h(y)?m:E).push(y)}),[m,E]}reduce(h,m){return this.ops.reduce(h,m)}changeLength(){return this.reduce((h,m)=>m.insert?h+a.default.length(m):m.delete?h-m.delete:h,0)}length(){return this.reduce((h,m)=>h+a.default.length(m),0)}slice(h=0,m=1/0){const E=[],y=new l.default(this.ops);let N=0;for(;N<m&&y.hasNext();){let T;N<h?T=y.next(h-N):(T=y.next(m-N),E.push(T)),N+=a.default.length(T)}return new p(E)}compose(h){const m=new l.default(this.ops),E=new l.default(h.ops),y=[],N=E.peek();if(N!=null&&typeof N.retain=="number"&&N.attributes==null){let A=N.retain;for(;m.peekType()==="insert"&&m.peekLength()<=A;)A-=m.peekLength(),y.push(m.next());N.retain-A>0&&E.next(N.retain-A)}const T=new p(y);for(;m.hasNext()||E.hasNext();)if(E.peekType()==="insert")T.push(E.next());else if(m.peekType()==="delete")T.push(m.next());else{const A=Math.min(m.peekLength(),E.peekLength()),k=m.next(A),D=E.next(A);if(D.retain){const v={};if(typeof k.retain=="number")v.retain=typeof D.retain=="number"?A:D.retain;else if(typeof D.retain=="number")k.retain==null?v.insert=k.insert:v.retain=k.retain;else{const j=k.retain==null?"insert":"retain",[B,z,ee]=u(k[j],D.retain),b=p.getHandler(B);v[j]={[B]:b.compose(z,ee,j==="retain")}}const S=i.default.compose(k.attributes,D.attributes,typeof k.retain=="number");if(S&&(v.attributes=S),T.push(v),!E.hasNext()&&s(T.ops[T.ops.length-1],v)){const j=new p(m.rest());return T.concat(j).chop()}}else typeof D.delete=="number"&&(typeof k.retain=="number"||typeof k.retain=="object"&&k.retain!==null)&&T.push(D)}return T.chop()}concat(h){const m=new p(this.ops.slice());return h.ops.length>0&&(m.push(h.ops[0]),m.ops=m.ops.concat(h.ops.slice(1))),m}diff(h,m){if(this.ops===h.ops)return new p;const E=[this,h].map(k=>k.map(D=>{if(D.insert!=null)return typeof D.insert=="string"?D.insert:c;const v=k===h?"on":"with";throw new Error("diff() called "+v+" non-document")}).join("")),y=new p,N=t(E[0],E[1],m,!0),T=new l.default(this.ops),A=new l.default(h.ops);return N.forEach(k=>{let D=k[1].length;for(;D>0;){let v=0;switch(k[0]){case t.INSERT:v=Math.min(A.peekLength(),D),y.push(A.next(v));break;case t.DELETE:v=Math.min(D,T.peekLength()),T.next(v),y.delete(v);break;case t.EQUAL:v=Math.min(T.peekLength(),A.peekLength(),D);const S=T.next(v),j=A.next(v);s(S.insert,j.insert)?y.retain(v,i.default.diff(S.attributes,j.attributes)):y.push(j).delete(v);break}D-=v}}),y.chop()}eachLine(h,m=`
24
24
  `){const E=new l.default(this.ops);let y=new p,N=0;for(;E.hasNext();){if(E.peekType()!=="insert")return;const T=E.peek(),A=a.default.length(T)-E.peekLength(),k=typeof T.insert=="string"?T.insert.indexOf(m,A)-A:-1;if(k<0)y.push(E.next());else if(k>0)y.push(E.next(k));else{if(h(y,E.next(1).attributes||{},N)===!1)return;N+=1,y=new p}}y.length()>0&&h(y,{},N)}invert(h){const m=new p;return this.reduce((E,y)=>{if(y.insert)m.delete(a.default.length(y));else{if(typeof y.retain=="number"&&y.attributes==null)return m.retain(y.retain),E+y.retain;if(y.delete||typeof y.retain=="number"){const N=y.delete||y.retain;return h.slice(E,E+N).forEach(A=>{y.delete?m.push(A):y.retain&&y.attributes&&m.retain(a.default.length(A),i.default.invert(y.attributes,A.attributes))}),E+N}else if(typeof y.retain=="object"&&y.retain!==null){const N=h.slice(E,E+1),T=new l.default(N.ops).next(),[A,k,D]=u(y.retain,T.insert),v=p.getHandler(A);return m.retain({[A]:v.invert(k,D)},i.default.invert(y.attributes,T.attributes)),E+1}}return E},0),m.chop()}transform(h,m=!1){if(m=!!m,typeof h=="number")return this.transformPosition(h,m);const E=h,y=new l.default(this.ops),N=new l.default(E.ops),T=new p;for(;y.hasNext()||N.hasNext();)if(y.peekType()==="insert"&&(m||N.peekType()!=="insert"))T.retain(a.default.length(y.next()));else if(N.peekType()==="insert")T.push(N.next());else{const A=Math.min(y.peekLength(),N.peekLength()),k=y.next(A),D=N.next(A);if(k.delete)continue;if(D.delete)T.push(D);else{const v=k.retain,S=D.retain;let j=typeof S=="object"&&S!==null?S:A;if(typeof v=="object"&&v!==null&&typeof S=="object"&&S!==null){const B=Object.keys(v)[0];if(B===Object.keys(S)[0]){const z=p.getHandler(B);z&&(j={[B]:z.transform(v[B],S[B],m)})}}T.retain(j,i.default.transform(k.attributes,D.attributes,m))}}return T.chop()}transformPosition(h,m=!1){m=!!m;const E=new l.default(this.ops);let y=0;for(;E.hasNext()&&y<=h;){const N=E.peekLength(),T=E.peekType();if(E.next(),T==="delete"){h-=Math.min(N,h-y);continue}else T==="insert"&&(y<h||!m)&&(h+=N);y+=N}return h}}p.Op=a.default,p.OpIterator=l.default,p.AttributeMap=i.default,p.handlers={},e.default=p,n.exports=p,n.exports.default=p}(kr,kr.exports)),kr.exports}var $e=fg();const V=Oi($e);class Ke extends ke{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Ke.blotName="break";Ke.tagName="BR";let Ve=class extends Wr{};const pg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ts(n){return n.replace(/[&<>"']/g,e=>pg[e])}class Ce extends Pi{static allowedChildren=[Ce,Ke,ke,Ve];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,t){const r=Ce.order.indexOf(e),s=Ce.order.indexOf(t);return r>=0||s>=0?r-s:e===t?0:e<t?-1:1}formatAt(e,t,r,s){if(Ce.compare(this.statics.blotName,r)<0&&this.scroll.query(r,W.BLOT)){const i=this.isolate(e,t);s&&i.wrap(r,s)}else super.formatAt(e,t,r,s)}optimize(e){if(super.optimize(e),this.parent instanceof Ce&&Ce.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}const so=1;class xe extends Qn{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=Bl(this)),this.cache.delta}deleteAt(e,t){super.deleteAt(e,t),this.cache={}}formatAt(e,t,r,s){t<=0||(this.scroll.query(r,W.BLOCK)?e+t===this.length()&&this.format(r,s):super.formatAt(e,Math.min(t,this.length()-e-1),r,s),this.cache={})}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r),this.cache={};return}if(t.length===0)return;const s=t.split(`
25
25
  `),i=s.shift();i.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let a=this;s.reduce((l,c)=>(a=a.split(l,!0),a.insertAt(0,c),c.length),e+i.length)}insertBefore(e,t){const{head:r}=this.children;super.insertBefore(e,t),r instanceof Ke&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+so),this.cache.length}moveChildren(e,t){super.moveChildren(e,t),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t&&(e===0||e>=this.length()-so)){const s=this.clone();return e===0?(this.parent.insertBefore(s,this),this):(this.parent.insertBefore(s,this.next),s)}const r=super.split(e,t);return this.cache={},r}}xe.blotName="block";xe.tagName="P";xe.defaultChild=Ke;xe.allowedChildren=[Ke,Ce,ke,Ve];class De extends ke{attach(){super.attach(),this.attributes=new Qr(this.domNode)}delta(){return new V().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const r=this.scroll.query(e,W.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(e,t,r,s){this.format(r,s)}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r);return}const s=t.split(`
26
26
  `),i=s.pop(),a=s.map(c=>{const u=this.scroll.create(xe.blotName);return u.insertAt(0,c),u}),l=this.split(e);a.forEach(c=>{this.parent.insertBefore(c,l)}),i&&this.parent.insertBefore(this.scroll.create("text",i),l)}}De.scope=W.BLOCK_BLOT;function Bl(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(Ae).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),qe(r,{},e)),new V).insert(`
@@ -1,4 +1,4 @@
1
- :root{--logo-color: #262626;--font-color: #222222;--font-color-secondary: #555;--font-color-tertiary: #777;--link-color: #262626;--link-active-color: #0a84ff;--border-color: #dee1e1;--form-border-color: #ccc;--primary-bg: #f4f4f6;--secondary-bg: #fff;--scrollbar-bg: #cfcfcf;--hover-bg: #e6f4ff;--hover-bg-secondary: #f5fbff;--menu-color: #262626;--navbar-bg: #fff;--gray-lighter: #f9f9f9;--black-white: #000;--white-black: #fff;--brand-primary: #0a84ff;--brand-success: #30d158;--brand-info: #5ac8fa;--brand-warning: #ff9f0a;--brand-danger: #ff453a;--login-page-bg: linear-gradient(180deg, #eff7fe 50%, #c2e1ff);--login-page-shadow: 0px 0px 40px 0px rgba(0, 101, 248, .08);--login-page-border: 2px solid #fff}[data-theme=dark]{--logo-color: #c3c4c6;--font-color: #c3c4c6;--font-color-secondary: #88898d;--font-color-tertiary: #aaa;--link-color: #f4f4f6;--link-active-color: #0a84ff;--border-color: #3b403d;--form-border-color: #585858;--primary-bg: #2c302e;--secondary-bg: #313533;--scrollbar-bg: #777;--hover-bg: #2c302e;--hover-bg-secondary: #2e2e2e;--menu-color: #bfbfbf;--navbar-bg: #313533;--gray-lighter: #f9f9f9;--black-white: #fff;--white-black: #000;--brand-primary: #0a84ff;--brand-success: #30d158;--brand-info: #5ac8fa;--brand-warning: #ff9f0a;--brand-danger: #ff453a;--login-page-bg: linear-gradient(180deg, #313533 50%, #1e2220);--login-page-shadow: 0px 0px 40px 0px rgba(0, 0, 0, .25);--login-page-border: 2px solid #313533}body{background:var(--primary-bg)}a{text-decoration:none;color:var(--link-color)}a:hover{color:var(--link-color);text-decoration:underline}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid var(--border-color)}.fi-icon{height:16px;width:16px;color:#545a6d;fill:#545a6d33;margin-right:4px;margin-top:-3px}.main{min-height:calc(100vh - 60px);margin-left:230px;margin-top:60px;transition:margin-left .5s ease;padding:1.5rem}@media (max-width: 767.98px){.main{margin-left:0;padding:1rem}}.scrollbar,.scrollbar-auto{overflow:auto;position:relative;scrollbar-color:var(--scrollbar-bg) var(--secondary-bg);scrollbar-width:thin}.scrollbar::-webkit-scrollbar,.scrollbar-auto::-webkit-scrollbar{width:6px;height:6px}.scrollbar::-webkit-scrollbar-track,.scrollbar-auto::-webkit-scrollbar-track{background:var(--secondary-bg)}.scrollbar::-webkit-scrollbar-thumb,.scrollbar-auto::-webkit-scrollbar-thumb{background-color:var(--scrollbar-bg);border-radius:20px;border:1px solid var(--scrollbar-bg)}.scrollbar::-webkit-scrollbar-corner,.scrollbar-auto::-webkit-scrollbar-corner{background-color:transparent}.scrollbar::-webkit-scrollbar{opacity:1}.scrollbar-auto::-webkit-scrollbar{opacity:0;transition:opacity .3s ease}.scrollbar-auto:hover::-webkit-scrollbar,.scrollbar-auto:focus::-webkit-scrollbar,.scrollbar-auto:active::-webkit-scrollbar{opacity:1}.no-border-radius{border-radius:0!important}.no-border-radius-top-left{border-top-left-radius:0!important}.no-border-radius-top-right{border-top-right-radius:0!important}.no-border-radius-bottom-left{border-bottom-left-radius:0!important}.no-border-radius-bottom-right{border-bottom-right-radius:0!important}.no-border-radius-top{border-top-left-radius:0!important;border-top-right-radius:0!important}.no-border-radius-bottom{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.no-border-radius-left{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.no-border-radius-right{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.no-border{border:none!important}.no-border-top{border-top:none!important}.no-border-right{border-right:none!important}.no-border-bottom{border-bottom:none!important}.no-border-left{border-left:none!important}.bg-primary{background-color:#0a84ff!important;color:#f4f4f6!important}.bg-primary .tools .icon:hover{background:#005ebd!important}.bg-success{background-color:#30d158!important;color:#f4f4f6!important}.bg-success .tools .icon:hover{background:#21943d!important}.bg-info{background-color:#5ac8fa!important;color:#f4f4f6!important}.bg-info .tools .icon:hover{background:#10aff8!important}.bg-warning{background-color:#ff9f0a!important;color:#f4f4f6!important}.bg-warning .tools .icon:hover{background:#bd7300!important}.bg-danger{background-color:#ff453a!important;color:#f4f4f6!important}.bg-danger .tools .icon:hover{background:#ed0d00!important}.bg-gray{background-color:#f1f1f1!important;color:#4f4f4f!important}.bg-gray .tools .icon:hover{background:#cbcbcb!important}.box-primary{background-color:#0a84ff1a;border:1px solid rgba(10,132,255,.3)}.box-success{background-color:#30d1581a;border:1px solid rgba(48,209,88,.3)}.box-info{background-color:#5ac8fa33;border:1px solid rgba(90,200,250,.3)}.box-warning{background-color:#ff9f0a1a;border:1px solid rgba(255,159,10,.3)}.box-danger{background-color:#ff453a1a;border:1px solid rgba(255,69,58,.3)}.box-gray{background-color:#5555551a;border:1px solid rgba(85.425,85.425,85.425,.3)}.Toastify__toast-container--top-right{top:70px;right:5px}.Toastify__toast-container--top-left{top:70px;left:5px}.cursor-pointer{cursor:pointer}.cursor-not-allowed{cursor:not-allowed}.cursor-default{cursor:default}.cursor-wait{cursor:wait}.cursor-move{cursor:move}.cursor-help{cursor:help}.cursor-text{cursor:text}.cursor-auto{cursor:auto}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.user-select-none{-webkit-user-select:none;user-select:none}.user-select-auto{-webkit-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-both{resize:both}.resize-horizontal{resize:horizontal}.resize-vertical{resize:vertical}.h-10px{height:10px!important}.min-h-10px{min-height:10px!important}.max-h-10px{max-height:10px!important}.h-15px{height:15px!important}.min-h-15px{min-height:15px!important}.max-h-15px{max-height:15px!important}.h-20px{height:20px!important}.min-h-20px{min-height:20px!important}.max-h-20px{max-height:20px!important}.h-25px{height:25px!important}.min-h-25px{min-height:25px!important}.max-h-25px{max-height:25px!important}.h-30px{height:30px!important}.min-h-30px{min-height:30px!important}.max-h-30px{max-height:30px!important}.h-40px{height:40px!important}.min-h-40px{min-height:40px!important}.max-h-40px{max-height:40px!important}.h-50px{height:50px!important}.min-h-50px{min-height:50px!important}.max-h-50px{max-height:50px!important}.h-60px{height:60px!important}.min-h-60px{min-height:60px!important}.max-h-60px{max-height:60px!important}.h-70px{height:70px!important}.min-h-70px{min-height:70px!important}.max-h-70px{max-height:70px!important}.h-80px{height:80px!important}.min-h-80px{min-height:80px!important}.max-h-80px{max-height:80px!important}.h-90px{height:90px!important}.min-h-90px{min-height:90px!important}.max-h-90px{max-height:90px!important}.h-100px{height:100px!important}.min-h-100px{min-height:100px!important}.max-h-100px{max-height:100px!important}.h-110px{height:110px!important}.min-h-110px{min-height:110px!important}.max-h-110px{max-height:110px!important}.h-120px{height:120px!important}.min-h-120px{min-height:120px!important}.max-h-120px{max-height:120px!important}.h-130px{height:130px!important}.min-h-130px{min-height:130px!important}.max-h-130px{max-height:130px!important}.h-140px{height:140px!important}.min-h-140px{min-height:140px!important}.max-h-140px{max-height:140px!important}.h-150px{height:150px!important}.min-h-150px{min-height:150px!important}.max-h-150px{max-height:150px!important}.h-200px{height:200px!important}.min-h-200px{min-height:200px!important}.max-h-200px{max-height:200px!important}.h-250px{height:250px!important}.min-h-250px{min-height:250px!important}.max-h-250px{max-height:250px!important}.h-300px{height:300px!important}.min-h-300px{min-height:300px!important}.max-h-300px{max-height:300px!important}.h-350px{height:350px!important}.min-h-350px{min-height:350px!important}.max-h-350px{max-height:350px!important}.h-400px{height:400px!important}.min-h-400px{min-height:400px!important}.max-h-400px{max-height:400px!important}.h-450px{height:450px!important}.min-h-450px{min-height:450px!important}.max-h-450px{max-height:450px!important}.h-500px{height:500px!important}.min-h-500px{min-height:500px!important}.max-h-500px{max-height:500px!important}.w-10px{width:10px!important}.min-w-10px{min-width:10px!important}.max-w-10px{max-width:10px!important}.w-15px{width:15px!important}.min-w-15px{min-width:15px!important}.max-w-15px{max-width:15px!important}.w-20px{width:20px!important}.min-w-20px{min-width:20px!important}.max-w-20px{max-width:20px!important}.w-25px{width:25px!important}.min-w-25px{min-width:25px!important}.max-w-25px{max-width:25px!important}.w-30px{width:30px!important}.min-w-30px{min-width:30px!important}.max-w-30px{max-width:30px!important}.w-40px{width:40px!important}.min-w-40px{min-width:40px!important}.max-w-40px{max-width:40px!important}.w-50px{width:50px!important}.min-w-50px{min-width:50px!important}.max-w-50px{max-width:50px!important}.w-60px{width:60px!important}.min-w-60px{min-width:60px!important}.max-w-60px{max-width:60px!important}.w-70px{width:70px!important}.min-w-70px{min-width:70px!important}.max-w-70px{max-width:70px!important}.w-80px{width:80px!important}.min-w-80px{min-width:80px!important}.max-w-80px{max-width:80px!important}.w-90px{width:90px!important}.min-w-90px{min-width:90px!important}.max-w-90px{max-width:90px!important}.w-100px{width:100px!important}.min-w-100px{min-width:100px!important}.max-w-100px{max-width:100px!important}.w-110px{width:110px!important}.min-w-110px{min-width:110px!important}.max-w-110px{max-width:110px!important}.w-120px{width:120px!important}.min-w-120px{min-width:120px!important}.max-w-120px{max-width:120px!important}.w-130px{width:130px!important}.min-w-130px{min-width:130px!important}.max-w-130px{max-width:130px!important}.w-140px{width:140px!important}.min-w-140px{min-width:140px!important}.max-w-140px{max-width:140px!important}.w-150px{width:150px!important}.min-w-150px{min-width:150px!important}.max-w-150px{max-width:150px!important}.w-200px{width:200px!important}.min-w-200px{min-width:200px!important}.max-w-200px{max-width:200px!important}.w-250px{width:250px!important}.min-w-250px{min-width:250px!important}.max-w-250px{max-width:250px!important}.w-300px{width:300px!important}.min-w-300px{min-width:300px!important}.max-w-300px{max-width:300px!important}.w-350px{width:350px!important}.min-w-350px{min-width:350px!important}.max-w-350px{max-width:350px!important}.w-400px{width:400px!important}.min-w-400px{min-width:400px!important}.max-w-400px{max-width:400px!important}.w-450px{width:450px!important}.min-w-450px{min-width:450px!important}.max-w-450px{max-width:450px!important}.w-500px{width:500px!important}.min-w-500px{min-width:500px!important}.max-w-500px{max-width:500px!important}html{font-size:15px}@media (max-width: 575.98px){html{font-size:13px}}@media (min-width: 576px) and (max-width: 767.98px){html{font-size:14px}}@media (min-width: 768px) and (max-width: 991.98px){html{font-size:14.5px}}@media (min-width: 992px) and (max-width: 1199.98px){html{font-size:15px}}body{font-family:Roboto,sans-serif;font-size:1rem;color:var(--font-color);line-height:1.5}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,p{color:var(--font-color)}code{padding:2px 4px;font-size:.9em;color:#c7254e;background-color:#f9f2f4;border-radius:4px}.blockquote{border-left:4px solid var(--border-color);padding-left:1rem;margin-bottom:1rem}dl.row dt{font-weight:600}dl.row dd{margin-bottom:.5rem}.text-desc{color:var(--font-color-tertiary);font-size:.9rem}.text-bold{font-weight:600}.word-wrap{word-wrap:break-word}.word-break-all{word-break:break-all}.fs-2{font-size:2rem}.fs-1-75{font-size:1.75rem}.fs-1-5{font-size:1.5rem}.fs-1-25{font-size:1.25rem}.fs-0-875{font-size:.875rem}.fs-0-75{font-size:.75rem}article>*{margin-bottom:1em}article>*:last-child{margin-bottom:0}article h1,article h2,article h3,article h4,article h5,article h6{font-weight:600;line-height:1.3;margin-top:1.2em;margin-bottom:.6em}article p{line-height:1.6}article ul,article ol{padding-left:1.5em;margin-top:0;margin-bottom:1em}article ul:last-child,article ol:last-child{margin-bottom:0}article ul{list-style-type:disc}article ol{list-style-type:decimal}article li{margin-bottom:.3em}article li:last-child{margin-bottom:0}article code{font-family:monospace,monospace;background:#f5f5f5;padding:.2em .4em;border-radius:4px}article pre{font-family:monospace,monospace;background:#f5f5f5;padding:1em;border-radius:6px;overflow-x:auto;margin-bottom:1em}article pre:last-child{margin-bottom:0}article blockquote{border-left:4px solid #ddd;padding-left:1em;color:#555;font-style:italic;margin:1em 0}article blockquote:last-child{margin-bottom:0}article table{width:100%;border-collapse:collapse;margin-bottom:1em}article table:last-child{margin-bottom:0}article table th,article table td{border:1px solid #ddd;padding:.5em .8em;text-align:left}article table th{background:#f9f9f9;font-weight:600}article figure{margin:1em 0;text-align:center}article figure:last-child{margin-bottom:0}article figure img{max-width:100%;height:auto;display:inline-block}article figure figcaption{font-size:.9em;color:#666;margin-top:.5em}button:disabled,button[disabled]{color:var(--font-color-secondary)!important;background:transparent!important;cursor:not-allowed;pointer-events:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;line-height:1;height:38px}.btn.btn-lg{height:44px}.btn.btn-sm{height:32px}.btn .icon,.btn svg{pointer-events:none}.btn svg{height:14px;width:14px;margin-top:0}.btn:hover{text-decoration:none}.btn.btn-default{color:var(--font-color);border-color:var(--border-color);background-color:var(--secondary-bg)}.btn.btn-default:hover{background-color:var(--primary-bg)}.btn.btn-primary,.btn.btn-success,.btn.btn-info,.btn.btn-warning,.btn.btn-danger{color:#fff}.btn.btn-primary.btn-primary,.btn.btn-success.btn-primary,.btn.btn-info.btn-primary,.btn.btn-warning.btn-primary,.btn.btn-danger.btn-primary{background-color:#0a84ff;border-color:#005ebd}.btn.btn-primary.btn-primary:hover,.btn.btn-success.btn-primary:hover,.btn.btn-info.btn-primary:hover,.btn.btn-warning.btn-primary:hover,.btn.btn-danger.btn-primary:hover{background-color:#0051a3}.btn.btn-primary.btn-success,.btn.btn-success.btn-success,.btn.btn-info.btn-success,.btn.btn-warning.btn-success,.btn.btn-danger.btn-success{background-color:#30d158;border-color:#21943d}.btn.btn-primary.btn-success:hover,.btn.btn-success.btn-success:hover,.btn.btn-info.btn-success:hover,.btn.btn-warning.btn-success:hover,.btn.btn-danger.btn-success:hover{background-color:#1c7f35}.btn.btn-primary.btn-info,.btn.btn-success.btn-info,.btn.btn-info.btn-info,.btn.btn-warning.btn-info,.btn.btn-danger.btn-info{background-color:#5ac8fa;border-color:#10aff8}.btn.btn-primary.btn-info:hover,.btn.btn-success.btn-info:hover,.btn.btn-info.btn-info:hover,.btn.btn-warning.btn-info:hover,.btn.btn-danger.btn-info:hover{background-color:#07a1e7}.btn.btn-primary.btn-warning,.btn.btn-success.btn-warning,.btn.btn-info.btn-warning,.btn.btn-warning.btn-warning,.btn.btn-danger.btn-warning{background-color:#ff9f0a;border-color:#bd7300}.btn.btn-primary.btn-warning:hover,.btn.btn-success.btn-warning:hover,.btn.btn-info.btn-warning:hover,.btn.btn-warning.btn-warning:hover,.btn.btn-danger.btn-warning:hover{background-color:#a36300}.btn.btn-primary.btn-danger,.btn.btn-success.btn-danger,.btn.btn-info.btn-danger,.btn.btn-warning.btn-danger,.btn.btn-danger.btn-danger{background-color:#ff453a;border-color:#ed0d00}.btn.btn-primary.btn-danger:hover,.btn.btn-success.btn-danger:hover,.btn.btn-info.btn-danger:hover,.btn.btn-warning.btn-danger:hover,.btn.btn-danger.btn-danger:hover{background-color:#d30c00}.btn.btn-link{color:var(--link-color);background-color:transparent;border-color:transparent}.btn.btn-block{display:block;width:100%}.btn.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem;border-top-left-radius:0;border-bottom-left-radius:0}.btn.dropdown-toggle-split:after{margin-left:0}.btn.btn-icon-only{padding:0;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.btn.btn-icon-only.btn-sm{width:32px;height:32px}.btn.btn-icon-only.btn-lg{width:48px;height:48px}.btn.btn-rounded{padding:0;width:35px;height:35px;text-align:center;border-radius:50%!important;font-size:14px}.btn.btn-round{border-radius:30px}.btn.btn-ripple{overflow:hidden}.btn.btn-ripple:before{content:"";position:absolute;top:0;left:0;width:0;height:0;transform:translate(-50%,-50%);border-radius:50%;background:#fff;opacity:.5;transition:width .5s,height .5s}.btn.btn-ripple:hover:before{width:300px;height:300px}.btn.btn-fab{width:56px;height:56px;padding:0;border-radius:50%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:inline-flex;align-items:center;justify-content:center}.btn.btn-fab:hover{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.btn.btn-fab svg{width:24px;height:24px}.btn.btn-fab-sm{width:40px;height:40px;padding:0;border-radius:50%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:inline-flex;align-items:center;justify-content:center}.btn.btn-fab-sm:hover{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.btn.btn-fab-sm svg{width:18px;height:18px}.btn.loading svg{animation:spin 1s linear infinite;transform-origin:center}.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.dropdown-toggle-split{border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid rgba(255,255,255,.2)}.btn-icon{border:none;width:35px;height:35px;font-size:1.3em;border-radius:50%;line-height:1;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--black-white)}.btn-icon .icon{width:100%;height:auto}.btn-icon:hover.btn-default{background-color:#fff}.btn-icon:hover.btn-primary{background-color:#70b7ff}.btn-icon:hover.btn-success{background-color:#83e49b}.btn-icon:hover.btn-info{background-color:#bde9fd}.btn-icon:hover.btn-warning{background-color:#ffc770}.btn-icon:hover.btn-danger{background-color:#ffa5a0}.btn-icon.btn-rounded .icon{border-radius:50%}.btn-toolbar{margin-left:-5px}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.auto{position:relative;flex:1 1 auto}.btn-group>.active{background-color:var(--link-active-color);color:var(--white-black);border-color:var(--link-active-color)}.btn-group>.active:hover{background-color:var(--link-active-color)}.btn-group-vertical>.btn{min-width:150px}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}input[type=checkbox],input[type=radio]{line-height:normal}.spinning{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.card{display:flex;width:100%;border-radius:4px;border:1px solid var(--border-color);background-color:var(--secondary-bg);flex-direction:column;position:relative}.card .card-header{padding:0 20px;min-height:50px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;border-radius:4px 4px 0 0;color:var(--font-color);background-color:var(--secondary-bg)}.card .card-header .card-header-title{display:flex;align-items:center;line-height:1;gap:10px;font-weight:500}.card .card-header .card-header-title .icon{height:16px;width:16px;fill:#545a6d33;margin-right:0;margin-top:-2px}.card .card-header .card-header-title .md-icon{height:16px;width:16px;margin-right:0}.card .card-header .card-header-title span{font-weight:500}.card .card-header .tools{display:flex;align-items:center;position:relative;gap:10px}.card .card-header .tools .icon{padding:5px;width:25px;height:25px;border-radius:50%;cursor:pointer}.card .card-header .tools .icon:hover{background:var(--hover-bg)}.card .card-header .tools .icon:focus{background:var(--hover-bg);outline:none}.card .card-header.sm{min-height:40px}.card .card-header.bg-dark{background-color:#212529;color:#fff;border-bottom-color:#343a40}.card .card-header.bg-dark .card-header-title{color:#fff}.card .card-header.bg-dark .card-header-title .icon{fill:#ffffff80}.card .card-header.bg-dark .tools .icon{color:#fff}.card .card-header.bg-dark .tools .icon:hover{background:#ffffff1a}.card .card-header.bg-secondary{background-color:#6c757d;color:#fff;border-bottom-color:#5a6268}.card .card-header.bg-secondary .card-header-title{color:#fff}.card .card-header.bg-secondary .card-header-title .icon{fill:#ffffff80}.card .card-header.bg-secondary .tools .icon{color:#fff}.card .card-header.bg-secondary .tools .icon:hover{background:#ffffff1a}.card .card-body{padding:20px;height:100%;width:100%;color:var(--font-color)}.card .card-footer{padding:5px 20px;min-height:50px;border-top:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;position:relative;color:var(--font-color)}.card .card-footer button{margin-bottom:0}.card.card-h-left{flex-direction:row}.card.card-h-left>.card-header{align-items:start;padding:0;background:var(--hover-bg)}.card.card-h-right{flex-direction:row-reverse}.card.card-h-right>.card-header{align-items:start;padding:0;background:var(--hover-bg)}.card-draggable{cursor:auto;padding:0 20px;border:1px solid var(--border-color);display:flex;align-items:center;border-radius:4px;box-shadow:#0000001a 0 0 2px;background:var(--secondary-bg);touch-action:none}.card-draggable.sm{min-height:40px}.card-draggable.md{min-height:50px}.card-draggable .drag-indicator{cursor:grab;font-size:1em;margin-right:5px;margin-left:-5px;color:var(--font-color-secondary)}@media (max-width: 768px){.card .card-header,.card .card-footer,.card .card-footer .pagination-toolbar{padding:15px 20px}.card .card-header>div,.card .card-footer>div,.card .card-footer .pagination-toolbar>div{margin:0!important}.card .card-body{overflow-y:auto}}.spinner{display:inline-block;margin-bottom:5px;margin-right:5px}.spinner .spinner-icon{animation:rotator 1.4s linear infinite}@keyframes rotator{0%{transform:rotate(0)}to{transform:rotate(270deg)}}.spinner .path{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:dash 1.4s ease-in-out infinite,colors 5.6s ease-in-out infinite}@keyframes colors{0%{stroke:#4285f4}25%{stroke:#de3e35}50%{stroke:#f7c223}75%{stroke:#1b9a59}to{stroke:#4285f4}}@keyframes dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}.dropdown{display:inline-block;cursor:pointer}.dropdown-menu{z-index:1001;min-width:160px;margin-top:.25rem;background-color:var(--secondary-bg);border-color:var(--border-color);box-shadow:0 6px 12px #0000002e}.dropdown-menu .dropdown-item{color:var(--font-color)}.dropdown-menu .dropdown-item:hover,.dropdown-menu .dropdown-item:focus{background-color:var(--hover-bg);color:var(--font-color)}.dropdown-menu .dropdown-item:active{background-color:var(--link-active-color);color:#fff}.dropdown-menu .dropdown-item svg,.dropdown-menu .dropdown-item .icon{vertical-align:middle;margin-top:-2px}.dropdown-menu .dropdown-divider{border-color:var(--border-color)}.dropdown{display:inline-block}.dropdown .dropdown-toggle{cursor:pointer;-webkit-user-select:none;user-select:none}.dropdown .dropdown-toggle svg.icon{height:16px;width:16px;fill:#545a6d33}.dropdown-content{z-index:1001;min-width:160px;background-clip:padding-box;border:1px solid var(--border-color);border-radius:3px;box-shadow:0 6px 12px #0000002e;background:var(--secondary-bg);margin-top:.25rem}.badge.bg-primary{background-color:#0a84ff!important}.badge.bg-success{background-color:#30d158!important}.badge.bg-danger{background-color:#ff453a!important}.badge.bg-warning{background-color:#ff9f0a!important}.badge.bg-info{background-color:#5ac8fa!important}.badge.badge-outline-primary{color:#0a84ff;background-color:transparent;border:1px solid #0a84ff}.badge.badge-outline-secondary{color:#555;background-color:transparent;border:1px solid rgb(119.085,119.085,119.085)}.badge.badge-outline-success{color:#30d158;background-color:transparent;border:1px solid #30d158}.badge.badge-outline-danger{color:#ff453a;background-color:transparent;border:1px solid #ff453a}.badge.badge-outline-warning{color:#ff9f0a;background-color:transparent;border:1px solid #ff9f0a}.badge.badge-outline-info{color:#5ac8fa;background-color:transparent;border:1px solid #5ac8fa}.badge.badge-outline-dark{color:#333;background-color:transparent;border:1px solid #333333}.badge.badge-soft-primary{color:#0a84ff;background-color:#0a84ff1a}.badge.badge-soft-secondary{color:#555;background-color:#5555551a}.badge.badge-soft-success{color:#30d158;background-color:#30d1581a}.badge.badge-soft-danger{color:#ff453a;background-color:#ff453a1a}.badge.badge-soft-warning{color:#ff9f0a;background-color:#ff9f0a1a}.badge.badge-soft-info{color:#5ac8fa;background-color:#5ac8fa1a}.badge.badge-soft-dark{color:#333;background-color:#3333331a}.badge.badge-sm{font-size:.7rem;padding:.25rem .5rem}.badge.badge-lg{font-size:1rem;padding:.5rem .75rem}.badge.badge-status{position:relative;padding-left:1.5rem}.badge.badge-status:before{content:"";position:absolute;left:.5rem;top:50%;transform:translateY(-50%);width:8px;height:8px;border-radius:50%}.badge.badge-status.badge-status-online:before{background-color:#30d158}.badge.badge-status.badge-status-offline:before{background-color:#777}.badge.badge-status.badge-status-busy:before{background-color:#ff453a}.badge.badge-status.badge-status-away:before{background-color:#ff9f0a}.badge.badge-notif{position:absolute;border-radius:50px;padding:5px;top:-10px;right:-10px;font-size:10px;font-weight:600;pointer-events:none}.box{border-radius:4px;border:1px solid var(--border-color);background-color:var(--secondary-bg);position:relative;padding:20px}.box.hover-bs:hover{transition:all .3s ease;box-shadow:0 0 10px #0000001a}.tabs .tab-custom-header{width:100%}.tabs .nav-tabs{padding:0;margin:0;display:flex;align-items:center}.tabs .nav-tabs legend.tab-item-legend{border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);padding:10px 15px;margin-bottom:0;line-height:1;font-size:.8rem;font-weight:500;text-transform:uppercase}.tabs .nav-tabs .tab-item{padding:0 15px;display:flex;align-items:center;gap:5px;line-height:48px;vertical-align:middle;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .4s ease;opacity:.5}.tabs .nav-tabs .tab-item:hover{border-bottom:2px solid var(--link-active-color)}.tabs .nav-tabs .tab-item.active{border-bottom:2px solid var(--link-active-color);opacity:1}.tabs.card-h-left>.card-header{border-radius:0;border-bottom:0;display:flex;flex-direction:column;justify-content:flex-start;min-width:200px}.tabs.card-h-left .nav-tabs{display:flex;flex-direction:column;border-right:1px solid var(--border-color);border-bottom:none;width:100%}.tabs.card-h-left .nav-tabs .tab-item{border:none;border-right:2px solid transparent;white-space:nowrap;margin-bottom:0;width:100%}.tabs.card-h-left .nav-tabs .tab-item:hover,.tabs.card-h-left .nav-tabs .tab-item.active{border-right:2px solid var(--link-active-color)}.tabs.card-h-right>.card-header{border-radius:0;border-bottom:0}.tabs.card-h-right .nav-tabs{flex-direction:column-reverse;display:flex;border-left:1px solid var(--border-color);border-bottom:none;width:100%}.tabs.card-h-right .nav-tabs .tab-item{border:none;border-left:2px solid transparent;white-space:nowrap;margin-bottom:0;justify-content:flex-end;width:100%}.tabs.card-h-right .nav-tabs .tab-item:hover,.tabs.card-h-right .nav-tabs .tab-item.active{border-left:2px solid var(--link-active-color)}@media (max-width: 991.98px){.card.tabs>.card-header{padding:0}.card.tabs>.card-header .tab-custom-header{display:flex;flex-direction:column;width:100%}.card.tabs>.card-header .tab-custom-header img{width:100%!important;max-width:100%!important;height:auto}.card.tabs>.card-header .nav-tabs{width:100%;display:flex;flex-direction:column}.card.card-h-left,.card.card-h-right{flex-direction:column!important}.card.card-h-left .tab-item,.card.card-h-right .tab-item{border-right:none!important;border-left:none!important;border-bottom:2px solid transparent!important}.card.card-h-left .tab-item:hover,.card.card-h-right .tab-item:hover,.card.card-h-left .tab-item.active,.card.card-h-right .tab-item.active{border-right:none!important;border-left:none!important;border-bottom:2px solid var(--link-active-color)!important}}.alert{padding:10px 15px;margin-bottom:20px;border:1px solid transparent;border-radius:0;position:relative;display:flex;align-items:center;justify-content:space-between}.alert .icon,.alert svg{pointer-events:none}.alert p{margin:0;color:#fff}.alert.alert-success{color:#fff;background-color:#30d158;border-color:#21943d}.alert.alert-info{color:#fff;background-color:#5ac8fa;border-color:#10aff8}.alert.alert-warning{color:#fff;background-color:#ff9f0a;border-color:#bd7300}.alert.alert-danger{color:#fff;background-color:#ff453a;border-color:#ed0d00}.alert button.close{border:none;background:none;color:var(--font-color);margin-right:-5px}.Toastify__close-button{align-self:center!important}.modal{display:flex!important;align-items:center;justify-content:center;position:fixed;z-index:1001;left:0;top:0;width:100%;height:100vh;overflow:auto;background-color:#0006;transition:all .4s ease-in-out;vertical-align:middle;pointer-events:auto}.modal .modal-dialog{display:flex;width:100%;max-width:500px;border-radius:4px;border:1px solid var(--border-color);background-color:var(--secondary-bg);vertical-align:middle;flex-direction:column;position:relative;box-shadow:0 4px 8px #0003;pointer-events:auto;overflow:visible}.modal .modal-dialog.modal-sm{max-width:400px}.modal .modal-dialog.modal-md{max-width:600px}.modal .modal-dialog.modal-lg{max-width:800px}.modal .modal-dialog.modal-xl{max-width:1140px}.modal .modal-dialog .modal-header{padding:0 20px;min-height:50px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;border-radius:4px 4px 0 0}.modal .modal-dialog .modal-header .modal-header-title{display:flex;align-items:center;line-height:1}.modal .modal-dialog .modal-header .modal-header-title .icon{margin-right:10px}.modal .modal-dialog .modal-header .modal-header-title span{font-weight:500}.modal .modal-dialog .modal-header .tools{display:flex;align-items:center;position:relative;gap:10px}.modal .modal-dialog .modal-header .tools .icon{padding:3px;width:25px;height:25px;border-radius:50%;cursor:pointer}.modal .modal-dialog .modal-header .tools .icon:hover{background:var(--hover-bg)}.modal .modal-dialog .modal-header .tools .icon:focus{background:var(--hover-bg);outline:none}.modal .modal-dialog .modal-body{padding:20px;width:100%;max-height:calc(100vh - 200px)}.modal .modal-dialog .modal-footer{padding:5px 20px;min-height:50px;border-top:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1;pointer-events:auto}.modal .modal-dialog .modal-footer button{margin:0;position:relative;z-index:1;pointer-events:auto}@media (max-width: 575.98px){.modal .modal-dialog{max-width:calc(100% - 1rem);margin:.5rem}}.callout{padding:10px 15px;margin-bottom:20px;border:1px solid transparent;border-left:5px solid transparent;border-radius:0;background-color:var(--secondary-bg)}.callout p{margin:0}.callout.callout-success{border-color:#21943d;background-color:#d7f6df}.callout.callout-info{border-color:#10aff8;background-color:#effaff}.callout.callout-warning{border-color:#bd7300;background-color:#ffefd6}.callout.callout-danger{border-color:#ed0d00;background-color:#ffeeed}.tooltip{position:relative;background:#000;border-radius:5px;opacity:1;z-index:1002;word-wrap:break-word;max-width:200px;padding:.5rem .75rem;color:#fff;text-align:center;font-size:.9rem;background-color:#263238}.tooltip:after{content:"";position:absolute;border:5px solid transparent}.tooltip.top:after{top:100%;left:50%;margin-left:-5px;border-top-color:#263238}.tooltip.bottom:after{bottom:100%;left:50%;margin-left:-5px;border-bottom-color:#263238}.tooltip.left:after{top:50%;left:100%;margin-top:-5px;border-left-color:#263238}.tooltip.right:after{top:50%;right:100%;margin-top:-5px;border-right-color:#263238}.popover{z-index:1002;display:block;max-width:276px;font-size:12px;background-color:var(--secondary-bg);-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid var(--scrollbar-bg);border-radius:3px;box-shadow:0 5px 10px #0003}.popover .arrow{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:11px}.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:10px}.popover .popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:600;line-height:18px;background-color:var(--hover-bg);border-bottom:1px solid var(--border-color);border-radius:2px 2px 0 0}.popover .popover-content{padding:9px 14px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:var(--scrollbar-bg);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:var(--secondary-bg);border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:var(--scrollbar-bg);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:var(--secondary-bg);border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:var(--scrollbar-bg)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:var(--secondary-bg)}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:var(--scrollbar-bg)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:var(--secondary-bg)}.accordion .accordion-item{border:1px solid var(--border-color);background-color:var(--secondary-bg)}.accordion .accordion-item:not(:first-child){margin-top:-1px}.accordion .accordion-item:first-child{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.accordion .accordion-item:first-child .accordion-header{border-top-left-radius:calc(.375rem - 1px);border-top-right-radius:calc(.375rem - 1px)}.accordion .accordion-item:last-child{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.accordion .accordion-item:last-child .accordion-collapse:not(.show){border-bottom-left-radius:calc(.375rem - 1px);border-bottom-right-radius:calc(.375rem - 1px)}.accordion .accordion-header{padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between;cursor:pointer;background-color:var(--secondary-bg);border:none;transition:background-color .15s ease-in-out}.accordion .accordion-header:hover{background-color:var(--hover-bg)}.accordion .accordion-header .accordion-title{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--font-color)}.accordion .accordion-header .accordion-icon{font-size:1.25rem;transition:transform .3s ease;color:var(--font-color)}.accordion .accordion-header .accordion-icon.active{transform:rotate(180deg)}.accordion.accordion-flush .accordion-item{border-left:0;border-right:0;border-radius:0}.accordion.accordion-flush .accordion-item:first-child{border-top:0}.accordion.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion .accordion-collapse{overflow:hidden;transition:max-height .35s ease-in-out}.accordion .accordion-body{padding:1rem;border-top:1px solid var(--border-color);color:var(--font-color)}.circular-progress{width:48px;height:48px;border:4px solid var(--primary-bg);border-bottom-color:var(--border-color);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.circular-progress.brand-success{border-bottom-color:#30d158}.circular-progress.brand-info{border-bottom-color:#5ac8fa}.circular-progress.brand-warning{border-bottom-color:#ff9f0a}.circular-progress.brand-danger{border-bottom-color:#ff453a}.circular-progress.sm{width:32px;height:32px}.circular-progress.lg{width:64px;height:64px}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.linear-progress{position:relative;display:flex;align-items:center;overflow:hidden}.linear-progress .progress-bar{width:100%;background-color:var(--primary-bg);border-radius:2px}.linear-progress .progress-bar .progress{height:10px;display:block;background-color:#5ac8fa;border-radius:2px;transition:transform .4s ease,width .4s ease}.linear-progress .progress-bar.brand-success .progress{background-color:#30d158}.linear-progress .progress-bar.brand-info .progress{background-color:#5ac8fa}.linear-progress .progress-bar.brand-warning .progress{background-color:#ff9f0a}.linear-progress .progress-bar.brand-danger .progress{background-color:#ff453a}.linear-progress.indeterminate .progress-bar .progress{display:block;transform-origin:left center;animation:moveProgressBarInfinite 2s linear infinite}.linear-progress.sm .progress-bar .progress{height:5px}.linear-progress.lg .progress-bar .progress{height:15px}.linear-progress .progress-label{margin-left:10px;font-size:12px}@keyframes moveProgressBarInfinite{0%{transform:translate(-100%) scaleX(0)}to{transform:translate(100%) scaleX(1)}}.circular-progress-with-label{display:flex;align-items:center;position:relative;width:fit-content}.circular-progress-with-label .progress{width:48px;height:48px;border-radius:50%;background:radial-gradient(closest-side,white 79%,transparent 80% 100%),conic-gradient(#888 70%,#eee 0)}.circular-progress-with-label .progress-label{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.custom-checkbox{position:relative;padding-left:25px;cursor:pointer;justify-content:space-between;align-items:center;display:inline;margin:0}.custom-checkbox .checkbox-wrapper{position:relative;display:flex;align-items:center}.custom-checkbox input{position:absolute;opacity:0;cursor:pointer}.custom-checkbox .checkmark{position:absolute;top:0;left:0;height:18px;width:18px;background-color:var(--secondary-bg);border:1px solid var(--brand-primary);border-radius:3px;display:flex;align-items:center;justify-content:center}.custom-checkbox .checkmark:after{content:"";position:absolute;display:none}.custom-checkbox input:checked~.checkmark:after{display:block;content:"";left:5px;top:1px;width:6px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.custom-checkbox:hover input~.checkmark{background-color:var(--primary-bg)}.custom-checkbox input:checked~.checkmark{background-color:var(--brand-primary);border-color:var(--brand-primary)}.custom-checkbox .check-icon{color:#fff;font-size:16px;display:block}.custom-checkbox input:disabled~.checkmark{background-color:#e0e0e0;border-color:#e0e0e0;cursor:not-allowed}.custom-checkbox input:disabled~.checkmark .check-icon{color:#9e9e9e}.custom-checkbox.sm .checkmark{height:15px;width:15px}.custom-checkbox.sm .checkmark:after{left:4px;top:1px;width:5px;height:8px}.custom-checkbox.sm .check-icon{font-size:12px}.form{display:flex;flex-direction:column}.form legend{border-bottom:1px solid var(--border-color);font-size:.9rem;padding-bottom:5px;font-weight:500}.form .form-message{margin-top:3px;color:var(--font-color-secondary);text-align:right;margin-bottom:0}.form .has-error .form-control,.form .has-error .dropdown-header{border-color:#ff453a}.form .has-error label,.form .has-error .form-message{color:#ff453a}.form .has-success .form-control,.form .has-success .dropdown-header{border-color:#30d158}.form .has-success label,.form .has-success .form-message{color:#30d158}.form .has-warning .form-control,.form .has-warning .dropdown-header{border-color:#ff9f0a}.form .has-warning label,.form .has-warning .form-message{color:#ff9f0a}.form-group{margin-bottom:10px;position:relative;padding-top:10px;display:flex;flex-direction:column}.form-group label{margin-bottom:5px;font-size:.9rem;color:var(--font-color-secondary)}.form-group label.required:after{content:"*";color:#ff453a;margin-left:3px}.form-radio,.form-checkbox{margin-bottom:10px;position:relative;padding-top:10px;display:flex;flex-direction:column}.form-radio>label,.form-radio label,.form-checkbox>label,.form-checkbox label{font-size:.9rem;color:var(--font-color-secondary);margin-bottom:5px}.form-radio>label.required:after,.form-radio label.required:after,.form-checkbox>label.required:after,.form-checkbox label.required:after{content:"*";color:#ff453a;margin-left:3px}.form-radio .form-control,.form-checkbox .form-control{display:flex;justify-content:flex-start;align-items:center;gap:10px}.form-radio .form-control label,.form-checkbox .form-control label{margin:0 0 0 10px}.form-radio.has-info .checkmark,.form-checkbox.has-info .checkmark{border-color:#5ac8fa}.form-radio.has-info input:checked~.checkmark,.form-checkbox.has-info input:checked~.checkmark{background-color:#5ac8fa;border-color:#5ac8fa}.form-radio.has-info .form-message,.form-checkbox.has-info .form-message{color:#5ac8fa}.form-radio.has-error .checkmark,.form-checkbox.has-error .checkmark{border-color:#ff453a}.form-radio.has-error input:checked~.checkmark,.form-checkbox.has-error input:checked~.checkmark{background-color:#ff453a;border-color:#ff453a}.form-radio.has-error .form-message,.form-checkbox.has-error .form-message{color:#ff453a}.form-radio.has-success .checkmark,.form-checkbox.has-success .checkmark{border-color:#30d158}.form-radio.has-success input:checked~.checkmark,.form-checkbox.has-success input:checked~.checkmark{background-color:#30d158;border-color:#30d158}.form-radio.has-success .form-message,.form-checkbox.has-success .form-message{color:#30d158}.form-radio.has-warning .checkmark,.form-checkbox.has-warning .checkmark{border-color:#ff9f0a}.form-radio.has-warning input:checked~.checkmark,.form-checkbox.has-warning input:checked~.checkmark{background-color:#ff9f0a;border-color:#ff9f0a}.form-radio.has-warning .form-message,.form-checkbox.has-warning .form-message{color:#ff9f0a}.dropdown-select-container{position:relative;max-width:100%;min-width:60px}.dropdown-select-container .dropdown-header{cursor:pointer;padding:0 10px;height:38px;line-height:1;border:1px solid var(--form-border-color);display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;user-select:none;border-radius:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-select-container .dropdown-header.open{box-shadow:0 2px 4px #0000001a}.dropdown-select-container .dropdown-header.open .arrow{transform:rotate(180deg)}.dropdown-select-container .dropdown-header span.label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:90%}.dropdown-select-container .dropdown-header svg.arrow{position:absolute;right:10px;margin-left:8px;transition:transform .3s;font-size:1.3rem;flex-shrink:0;pointer-events:none}.dropdown-select-container .dropdown-header.disabled{cursor:not-allowed}.dropdown-select-container .dropdown-options{position:absolute;width:100%;border:1px solid var(--form-border-color);box-shadow:0 2px 4px #0000001a;display:flex;flex-direction:column;background-color:var(--secondary-bg);border-radius:4px;z-index:1050;max-height:300px}.dropdown-select-container .dropdown-options.position-top{top:auto;bottom:100%}.dropdown-select-container .dropdown-options .search-input{padding:8px 10px}.dropdown-select-container .dropdown-options .option{padding:8px 10px;cursor:pointer;transition:background-color .3s}.dropdown-select-container .dropdown-options .option:hover,.dropdown-select-container .dropdown-options .option.selected{background-color:var(--hover-bg)}.dropdown-select-container.sm .dropdown-header{height:32px}.dropdown-select-container.sm .dropdown-options .option{padding:6px 8px}.dropdown-select-container.md .dropdown-header{height:38px}.dropdown-select-container.md .dropdown-options .option{padding:10px 12px}.dropdown-select-container.lg .dropdown-header{height:44px}.dropdown-select-container.lg .dropdown-options .option{padding:12px 14px}.form-floating>.dropdown-select-container .dropdown-header{height:52px;padding:1.5rem 0 .375rem;border:none;border-bottom:1px solid var(--form-border-color);border-radius:0;background-color:transparent;transition:all .2s ease}.form-floating>.dropdown-select-container .dropdown-header.open{border-bottom-color:#0a84ff;border-bottom-width:2px;box-shadow:none}.form-floating>.dropdown-select-container .dropdown-header svg.arrow{right:0}.form-floating>.dropdown-select-container~label{opacity:1;transform:scale(.75) translateY(-.75rem);color:var(--font-color-secondary);font-weight:500}.form-floating>.dropdown-select-container .dropdown-header.open~label{color:#0a84ff}.date-picker{position:absolute;right:0;padding:.75rem;background-clip:padding-box;border:1px solid var(--border-color);border-radius:4px;box-shadow:0 6px 12px #0000002e;background:var(--secondary-bg);z-index:1050;opacity:0;transform:translateY(-20px);animation:slideIn .3s forwards,fadeIn .3s forwards}.date-picker.position-top{bottom:100%;transform:translateY(-100%)}.date-picker .calendar-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.date-picker .calendar-nav .btn{color:var(--font-color)}.date-picker .calendar-nav .btn.rounded-circle{width:28px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%!important}.date-picker .calendar-nav .calendar-select{display:flex;gap:.375rem}.date-picker .calendar-nav .calendar-select .dropdown-select-container.select-month{min-width:120px!important;width:120px!important;max-width:120px}.date-picker .calendar-nav .calendar-select .dropdown-select-container.select-year{min-width:75px!important;width:75px!important;max-width:75px}.date-picker .calendar .calendar-header{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem;border-bottom:1px solid var(--border-color);margin-bottom:.375rem;padding-bottom:.375rem}.date-picker .calendar .calendar-header .calendar-day-name{display:flex;align-items:center;justify-content:center;height:28px;width:28px;font-size:.75rem;color:var(--font-color-secondary);font-weight:500}.date-picker .calendar .calendar-body{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem}.date-picker .calendar .calendar-body .calendar-day{display:flex;align-items:center;justify-content:center;height:28px;width:28px;border-radius:50%;line-height:1;cursor:pointer;font-size:.875rem;color:var(--font-color);transition:background-color .15s ease-in-out}.date-picker .calendar .calendar-body .calendar-day:hover{background-color:var(--hover-bg)}.date-picker .calendar .calendar-body .calendar-day.selected-date{background-color:#0a84ff;color:#fff;font-weight:600}.date-picker .calendar .calendar-body .calendar-day.today{color:#5ac8fa;font-weight:600}.date-picker .calendar .calendar-body .calendar-day.prev-month{color:var(--font-color-secondary);font-size:.75rem}.date-picker .calendar .calendar-body .calendar-day.empty{pointer-events:none}.time-picker{position:absolute;right:0;padding:.75rem;background-clip:padding-box;border:1px solid var(--border-color);border-radius:4px;box-shadow:0 6px 12px #0000002e;background:var(--secondary-bg);z-index:1050;opacity:0;transform:translateY(-20px);animation:slideIn .3s forwards,fadeIn .3s forwards;min-width:280px}.time-picker.position-top{bottom:100%;transform:translateY(-100%)}.time-picker .time-picker-header{padding-bottom:.5rem;border-bottom:1px solid var(--border-color);margin-bottom:.75rem}.time-picker .time-picker-header h6{color:var(--font-color);font-weight:600;font-size:.875rem}.time-picker .time-picker-body .time-select-group{display:flex;align-items:center;justify-content:center;gap:.75rem}.time-picker .time-picker-body .time-select-group .time-select-item{display:flex;flex-direction:column;align-items:center;gap:.375rem}.time-picker .time-picker-body .time-select-group .time-select-item .time-label{font-size:.75rem;color:var(--font-color-secondary);font-weight:500;margin-bottom:0}.time-picker .time-picker-body .time-select-group .time-select-item .dropdown-select-container{min-width:80px!important;width:80px!important;max-width:80px}.time-picker .time-picker-body .time-select-group .time-select-item .dropdown-select-container .dropdown-select{text-align:center;font-weight:600;font-size:1.125rem}.time-picker .time-picker-body .time-select-group .time-separator{font-size:1.5rem;font-weight:600;color:var(--font-color);margin-top:1.25rem}.time-picker .time-picker-footer{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border-color)}.time-picker .time-picker-footer .btn{font-size:.875rem}@keyframes slideIn{0%{transform:translateY(-20px)}to{transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}input.clear{padding:0;margin:0;border:none;background:none;box-shadow:none;outline:none;width:100%}input.clear:focus{outline:none}input.clear::-ms-clear{display:none}input.clear::-webkit-search-cancel-button{display:none}input.clear::-webkit-search-clear-button{display:none}input.clear::-webkit-inner-spin-button{display:none}input.clear::-webkit-outer-spin-button{display:none}input.clear::-webkit-input-placeholder{color:transparent}input.clear::-moz-placeholder{color:transparent}input.clear:-ms-input-placeholder{color:transparent}input.clear:disabled{color:var(--font-color)}.form-control{letter-spacing:inherit;border:1px solid var(--form-border-color);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;min-width:0;width:100%;outline:none;border-radius:4px;padding:0 10px;color:var(--font-color);font-size:1rem;background-color:var(--secondary-bg);height:38px}.form-control.disabled,.form-control:disabled{opacity:.9;cursor:not-allowed;border-color:var(--border-color);font-size:1rem;background-color:var(--primary-bg)}.form-control:focus,.form-control:active{border-color:var(--link-active-color);box-shadow:none;outline:none;background-color:var(--secondary-bg);color:var(--font-color)}.form-control::placeholder{color:var(--font-color-tertiary)}.form-control:-webkit-autofill,.form-control:-webkit-autofill:focus{background:transparent!important;-webkit-box-shadow:0 0 0px 1000px var(--secondary-bg) inset;-webkit-text-fill-color:var(--font-color)!important;transition:background-color 5000s ease-in-out 0s}.form-control.sm{height:32px}.form-control.lg{height:44px}.form-control[multiple]{height:auto}textarea.form-control{resize:vertical;min-height:75px;padding:5px 10px}.form-control[type=file]{padding:7px 10px 7px 5px}.form-control[type=file]::-webkit-file-upload-button,.form-control[type=file]::file-selector-button{-webkit-appearance:none;margin-right:10px;margin-left:0;padding:0 10px;line-height:30px;color:#fff;background-color:#0a84ff;border:0;border-radius:4px;cursor:pointer}.input-group-icon{position:relative}.input-group-icon .icon{position:absolute;display:flex;align-items:center;justify-content:center;top:1px;bottom:1px;right:1px;width:35px;padding:0;font-size:23px;border-radius:3px;cursor:pointer;color:var(--font-color-secondary);border:none;background-color:transparent}.input-group-icon .icon:hover{background:var(--hover-bg)}.input-group-icon .icon svg{width:20px;height:20px}.form-floating,.form-group.floating-label{position:relative;margin-bottom:10px;display:flex;flex-direction:column}.form-floating>.form-control,.form-group.floating-label>.form-control,.form-floating>.form-select,.form-group.floating-label>.form-select{height:52px;padding:1.5rem 0 .375rem;border:none;border-bottom:1px solid var(--border-color);border-radius:0;background-color:transparent;transition:all .2s ease}.form-floating>.form-control:focus,.form-group.floating-label>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-group.floating-label>.form-control:not(:placeholder-shown),.form-floating>.form-select:focus,.form-group.floating-label>.form-select:focus,.form-floating>.form-select:not(:placeholder-shown),.form-group.floating-label>.form-select:not(:placeholder-shown){padding-top:1.5rem;padding-bottom:.375rem}.form-floating>.form-control:focus,.form-group.floating-label>.form-control:focus,.form-floating>.form-select:focus,.form-group.floating-label>.form-select:focus{border-bottom-color:#0a84ff;border-bottom-width:2px;box-shadow:none;outline:none}.form-floating>.form-control::placeholder,.form-group.floating-label>.form-control::placeholder,.form-floating>.form-select::placeholder,.form-group.floating-label>.form-select::placeholder{color:transparent}.form-floating>label,.form-group.floating-label>label{position:absolute;top:0;left:0;height:100%;padding:1.75rem 0;pointer-events:none;border:none;transform-origin:0 0;transition:all .2s ease;color:var(--font-color-tertiary);font-size:.9375rem;font-weight:400;line-height:1;background-color:transparent}.form-floating>label:after,.form-group.floating-label>label:after{display:none}@media (max-width: 767px){.form-floating>label,.form-group.floating-label>label{padding:2rem 0;font-size:.875rem}}.form-floating>.form-control:focus~label,.form-group.floating-label>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-group.floating-label>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label,.form-group.floating-label>.form-select~label{opacity:1;transform:scale(.75) translateY(-.75rem);color:#0a84ff;font-weight:500}.form-floating>.form-control:not(:focus):not(:placeholder-shown)~label,.form-group.floating-label>.form-control:not(:focus):not(:placeholder-shown)~label{color:var(--font-color-secondary)}.form-floating>textarea.form-control,.form-group.floating-label>textarea.form-control{padding-top:2rem;padding-left:0;padding-right:0;resize:vertical;min-height:100px}.form-floating>.form-control[type=file],.form-group.floating-label>.form-control[type=file]{padding-top:1.5rem;padding-bottom:.375rem;padding-left:0;padding-right:0}.form-floating>.form-control[type=file]::-webkit-file-upload-button,.form-group.floating-label>.form-control[type=file]::-webkit-file-upload-button,.form-floating>.form-control[type=file]::file-selector-button,.form-group.floating-label>.form-control[type=file]::file-selector-button{margin-top:0;margin-left:0;margin-right:10px;line-height:1.5;padding:4px 10px}.form-floating>.form-control[type=file]~label,.form-group.floating-label>.form-control[type=file]~label{opacity:1;transform:scale(.75) translateY(-.75rem);color:var(--font-color-secondary);font-weight:500}.form-floating>.form-control[type=file]:focus~label,.form-group.floating-label>.form-control[type=file]:focus~label{color:#0a84ff}.form-floating .form-message,.form-group.floating-label .form-message{text-align:right;margin-top:3px;margin-bottom:0}.form-radio .form-control{border:none;padding:0;height:auto;background-color:transparent}.form-control input[type=radio]{display:none}.form-control input[type=radio]+label{position:relative;padding-left:30px;cursor:pointer;margin-left:0}.form-control input[type=radio]+label:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);width:18px;height:18px;border:1px solid var(--brand-primary);border-radius:50%}.form-control input[type=radio]+label:after{content:"";position:absolute;top:50%;left:5px;transform:translateY(-50%) scale(0);width:8px;height:8px;border-radius:50%;background-color:var(--brand-primary);transition:transform .2s ease-in-out}.form-control input[type=radio]:checked+label:after{transform:translateY(-50%) scale(1)}.switch{position:relative;display:inline-block;width:36px;height:20px;margin:0}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s;border-radius:24px}.switch .slider:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:#fff;transition:.4s;border-radius:50%}.switch input:checked+.slider{background-color:#2196f3}.switch input:focus+.slider{box-shadow:0 0 1px #2196f3}.switch input:checked+.slider:before{transform:translate(16px)}.switch.sm{width:30px;height:14px}.switch.sm .slider{border-radius:14px}.switch.sm .slider:before{height:10px;width:10px;left:2px;bottom:2px}.switch.lg{width:40px;height:24px}.switch.lg .slider{border-radius:24px}.switch.lg .slider:before{height:20px;width:20px;left:2px;bottom:2px}.switch.has-info input:checked+.slider{background-color:#5ac8fa}.switch.has-success input:checked+.slider{background-color:#30d158}.switch.has-warning input:checked+.slider{background-color:#ff9f0a}.switch.has-error .slider{background-color:#ff453a}.switch.disabled input:checked+.slider{background-color:#ccc}/*!
1
+ :root{--logo-color: #262626;--font-color: #222222;--font-color-secondary: #555;--font-color-tertiary: #777;--link-color: #262626;--link-active-color: #0a84ff;--border-color: #dee1e1;--form-border-color: #ccc;--primary-bg: #f4f4f6;--secondary-bg: #fff;--scrollbar-bg: #cfcfcf;--hover-bg: #e6f4ff;--hover-bg-secondary: #f5fbff;--menu-color: #262626;--navbar-bg: #fff;--gray-lighter: #f9f9f9;--black-white: #000;--white-black: #fff;--brand-primary: #0a84ff;--brand-success: #30d158;--brand-info: #5ac8fa;--brand-warning: #ff9f0a;--brand-danger: #ff453a;--login-page-bg: linear-gradient(180deg, #eff7fe 50%, #c2e1ff);--login-page-shadow: 0px 0px 40px 0px rgba(0, 101, 248, .08);--login-page-border: 2px solid #fff}[data-theme=dark]{--logo-color: #c3c4c6;--font-color: #c3c4c6;--font-color-secondary: #88898d;--font-color-tertiary: #aaa;--link-color: #f4f4f6;--link-active-color: #0a84ff;--border-color: #3b403d;--form-border-color: #585858;--primary-bg: #2c302e;--secondary-bg: #313533;--scrollbar-bg: #777;--hover-bg: #2c302e;--hover-bg-secondary: #2e2e2e;--menu-color: #bfbfbf;--navbar-bg: #313533;--gray-lighter: #f9f9f9;--black-white: #fff;--white-black: #000;--brand-primary: #0a84ff;--brand-success: #30d158;--brand-info: #5ac8fa;--brand-warning: #ff9f0a;--brand-danger: #ff453a;--login-page-bg: linear-gradient(180deg, #313533 50%, #1e2220);--login-page-shadow: 0px 0px 40px 0px rgba(0, 0, 0, .25);--login-page-border: 2px solid #313533}body{background:var(--primary-bg)}a{text-decoration:none;color:var(--link-color)}a:hover{color:var(--link-color);text-decoration:underline}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid var(--border-color)}.fi-icon{height:16px;width:16px;color:#545a6d;fill:#545a6d33;margin-right:4px;margin-top:-3px}.main{min-height:calc(100vh - 60px);margin-left:230px;margin-top:60px;transition:margin-left .5s ease;padding:1.5rem}@media (max-width: 767.98px){.main{margin-left:0;padding:1rem}}.scrollbar,.scrollbar-auto{overflow:auto;position:relative;scrollbar-color:var(--scrollbar-bg) var(--secondary-bg);scrollbar-width:thin}.scrollbar::-webkit-scrollbar,.scrollbar-auto::-webkit-scrollbar{width:6px;height:6px}.scrollbar::-webkit-scrollbar-track,.scrollbar-auto::-webkit-scrollbar-track{background:var(--secondary-bg)}.scrollbar::-webkit-scrollbar-thumb,.scrollbar-auto::-webkit-scrollbar-thumb{background-color:var(--scrollbar-bg);border-radius:20px;border:1px solid var(--scrollbar-bg)}.scrollbar::-webkit-scrollbar-corner,.scrollbar-auto::-webkit-scrollbar-corner{background-color:transparent}.scrollbar::-webkit-scrollbar{opacity:1}.scrollbar-auto::-webkit-scrollbar{opacity:0;transition:opacity .3s ease}.scrollbar-auto:hover::-webkit-scrollbar,.scrollbar-auto:focus::-webkit-scrollbar,.scrollbar-auto:active::-webkit-scrollbar{opacity:1}.no-border-radius{border-radius:0!important}.no-border-radius-top-left{border-top-left-radius:0!important}.no-border-radius-top-right{border-top-right-radius:0!important}.no-border-radius-bottom-left{border-bottom-left-radius:0!important}.no-border-radius-bottom-right{border-bottom-right-radius:0!important}.no-border-radius-top{border-top-left-radius:0!important;border-top-right-radius:0!important}.no-border-radius-bottom{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.no-border-radius-left{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.no-border-radius-right{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.no-border{border:none!important}.no-border-top{border-top:none!important}.no-border-right{border-right:none!important}.no-border-bottom{border-bottom:none!important}.no-border-left{border-left:none!important}.bg-primary{background-color:#0a84ff!important;color:#f4f4f6!important}.bg-primary .tools .icon:hover{background:#005ebd!important}.bg-success{background-color:#30d158!important;color:#f4f4f6!important}.bg-success .tools .icon:hover{background:#21943d!important}.bg-info{background-color:#5ac8fa!important;color:#f4f4f6!important}.bg-info .tools .icon:hover{background:#10aff8!important}.bg-warning{background-color:#ff9f0a!important;color:#f4f4f6!important}.bg-warning .tools .icon:hover{background:#bd7300!important}.bg-danger{background-color:#ff453a!important;color:#f4f4f6!important}.bg-danger .tools .icon:hover{background:#ed0d00!important}.bg-gray{background-color:#f1f1f1!important;color:#4f4f4f!important}.bg-gray .tools .icon:hover{background:#cbcbcb!important}.box-primary{background-color:#0a84ff1a;border:1px solid rgba(10,132,255,.3)}.box-success{background-color:#30d1581a;border:1px solid rgba(48,209,88,.3)}.box-info{background-color:#5ac8fa33;border:1px solid rgba(90,200,250,.3)}.box-warning{background-color:#ff9f0a1a;border:1px solid rgba(255,159,10,.3)}.box-danger{background-color:#ff453a1a;border:1px solid rgba(255,69,58,.3)}.box-gray{background-color:#5555551a;border:1px solid rgba(85.425,85.425,85.425,.3)}.Toastify__toast-container--top-right{top:70px;right:5px}.Toastify__toast-container--top-left{top:70px;left:5px}.cursor-pointer{cursor:pointer}.cursor-not-allowed{cursor:not-allowed}.cursor-default{cursor:default}.cursor-wait{cursor:wait}.cursor-move{cursor:move}.cursor-help{cursor:help}.cursor-text{cursor:text}.cursor-auto{cursor:auto}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.user-select-none{-webkit-user-select:none;user-select:none}.user-select-auto{-webkit-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-both{resize:both}.resize-horizontal{resize:horizontal}.resize-vertical{resize:vertical}.h-10px{height:10px!important}.min-h-10px{min-height:10px!important}.max-h-10px{max-height:10px!important}.h-15px{height:15px!important}.min-h-15px{min-height:15px!important}.max-h-15px{max-height:15px!important}.h-20px{height:20px!important}.min-h-20px{min-height:20px!important}.max-h-20px{max-height:20px!important}.h-25px{height:25px!important}.min-h-25px{min-height:25px!important}.max-h-25px{max-height:25px!important}.h-30px{height:30px!important}.min-h-30px{min-height:30px!important}.max-h-30px{max-height:30px!important}.h-40px{height:40px!important}.min-h-40px{min-height:40px!important}.max-h-40px{max-height:40px!important}.h-50px{height:50px!important}.min-h-50px{min-height:50px!important}.max-h-50px{max-height:50px!important}.h-60px{height:60px!important}.min-h-60px{min-height:60px!important}.max-h-60px{max-height:60px!important}.h-70px{height:70px!important}.min-h-70px{min-height:70px!important}.max-h-70px{max-height:70px!important}.h-80px{height:80px!important}.min-h-80px{min-height:80px!important}.max-h-80px{max-height:80px!important}.h-90px{height:90px!important}.min-h-90px{min-height:90px!important}.max-h-90px{max-height:90px!important}.h-100px{height:100px!important}.min-h-100px{min-height:100px!important}.max-h-100px{max-height:100px!important}.h-110px{height:110px!important}.min-h-110px{min-height:110px!important}.max-h-110px{max-height:110px!important}.h-120px{height:120px!important}.min-h-120px{min-height:120px!important}.max-h-120px{max-height:120px!important}.h-130px{height:130px!important}.min-h-130px{min-height:130px!important}.max-h-130px{max-height:130px!important}.h-140px{height:140px!important}.min-h-140px{min-height:140px!important}.max-h-140px{max-height:140px!important}.h-150px{height:150px!important}.min-h-150px{min-height:150px!important}.max-h-150px{max-height:150px!important}.h-200px{height:200px!important}.min-h-200px{min-height:200px!important}.max-h-200px{max-height:200px!important}.h-250px{height:250px!important}.min-h-250px{min-height:250px!important}.max-h-250px{max-height:250px!important}.h-300px{height:300px!important}.min-h-300px{min-height:300px!important}.max-h-300px{max-height:300px!important}.h-350px{height:350px!important}.min-h-350px{min-height:350px!important}.max-h-350px{max-height:350px!important}.h-400px{height:400px!important}.min-h-400px{min-height:400px!important}.max-h-400px{max-height:400px!important}.h-450px{height:450px!important}.min-h-450px{min-height:450px!important}.max-h-450px{max-height:450px!important}.h-500px{height:500px!important}.min-h-500px{min-height:500px!important}.max-h-500px{max-height:500px!important}.w-10px{width:10px!important}.min-w-10px{min-width:10px!important}.max-w-10px{max-width:10px!important}.w-15px{width:15px!important}.min-w-15px{min-width:15px!important}.max-w-15px{max-width:15px!important}.w-20px{width:20px!important}.min-w-20px{min-width:20px!important}.max-w-20px{max-width:20px!important}.w-25px{width:25px!important}.min-w-25px{min-width:25px!important}.max-w-25px{max-width:25px!important}.w-30px{width:30px!important}.min-w-30px{min-width:30px!important}.max-w-30px{max-width:30px!important}.w-40px{width:40px!important}.min-w-40px{min-width:40px!important}.max-w-40px{max-width:40px!important}.w-50px{width:50px!important}.min-w-50px{min-width:50px!important}.max-w-50px{max-width:50px!important}.w-60px{width:60px!important}.min-w-60px{min-width:60px!important}.max-w-60px{max-width:60px!important}.w-70px{width:70px!important}.min-w-70px{min-width:70px!important}.max-w-70px{max-width:70px!important}.w-80px{width:80px!important}.min-w-80px{min-width:80px!important}.max-w-80px{max-width:80px!important}.w-90px{width:90px!important}.min-w-90px{min-width:90px!important}.max-w-90px{max-width:90px!important}.w-100px{width:100px!important}.min-w-100px{min-width:100px!important}.max-w-100px{max-width:100px!important}.w-110px{width:110px!important}.min-w-110px{min-width:110px!important}.max-w-110px{max-width:110px!important}.w-120px{width:120px!important}.min-w-120px{min-width:120px!important}.max-w-120px{max-width:120px!important}.w-130px{width:130px!important}.min-w-130px{min-width:130px!important}.max-w-130px{max-width:130px!important}.w-140px{width:140px!important}.min-w-140px{min-width:140px!important}.max-w-140px{max-width:140px!important}.w-150px{width:150px!important}.min-w-150px{min-width:150px!important}.max-w-150px{max-width:150px!important}.w-200px{width:200px!important}.min-w-200px{min-width:200px!important}.max-w-200px{max-width:200px!important}.w-250px{width:250px!important}.min-w-250px{min-width:250px!important}.max-w-250px{max-width:250px!important}.w-300px{width:300px!important}.min-w-300px{min-width:300px!important}.max-w-300px{max-width:300px!important}.w-350px{width:350px!important}.min-w-350px{min-width:350px!important}.max-w-350px{max-width:350px!important}.w-400px{width:400px!important}.min-w-400px{min-width:400px!important}.max-w-400px{max-width:400px!important}.w-450px{width:450px!important}.min-w-450px{min-width:450px!important}.max-w-450px{max-width:450px!important}.w-500px{width:500px!important}.min-w-500px{min-width:500px!important}.max-w-500px{max-width:500px!important}html{font-size:15px}@media (max-width: 575.98px){html{font-size:13px}}@media (min-width: 576px) and (max-width: 767.98px){html{font-size:14px}}@media (min-width: 768px) and (max-width: 991.98px){html{font-size:14.5px}}@media (min-width: 992px) and (max-width: 1199.98px){html{font-size:15px}}body{font-family:Roboto,sans-serif;font-size:1rem;color:var(--font-color);line-height:1.5}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6,p{color:var(--font-color)}code{padding:2px 4px;font-size:.9em;color:#c7254e;background-color:#f9f2f4;border-radius:4px}.blockquote{border-left:4px solid var(--border-color);padding-left:1rem;margin-bottom:1rem}dl.row dt{font-weight:600}dl.row dd{margin-bottom:.5rem}.text-desc{color:var(--font-color-tertiary);font-size:.9rem}.text-bold{font-weight:600}.word-wrap{word-wrap:break-word}.word-break-all{word-break:break-all}.fs-2{font-size:2rem}.fs-1-75{font-size:1.75rem}.fs-1-5{font-size:1.5rem}.fs-1-25{font-size:1.25rem}.fs-0-875{font-size:.875rem}.fs-0-75{font-size:.75rem}article>*{margin-bottom:1em}article>*:last-child{margin-bottom:0}article h1,article h2,article h3,article h4,article h5,article h6{font-weight:600;line-height:1.3;margin-top:1.2em;margin-bottom:.6em}article p{line-height:1.6}article ul,article ol{padding-left:1.5em;margin-top:0;margin-bottom:1em}article ul:last-child,article ol:last-child{margin-bottom:0}article ul{list-style-type:disc}article ol{list-style-type:decimal}article li{margin-bottom:.3em}article li:last-child{margin-bottom:0}article code{font-family:monospace,monospace;background:#f5f5f5;padding:.2em .4em;border-radius:4px}article pre{font-family:monospace,monospace;background:#f5f5f5;padding:1em;border-radius:6px;overflow-x:auto;margin-bottom:1em}article pre:last-child{margin-bottom:0}article blockquote{border-left:4px solid #ddd;padding-left:1em;color:#555;font-style:italic;margin:1em 0}article blockquote:last-child{margin-bottom:0}article table{width:100%;border-collapse:collapse;margin-bottom:1em}article table:last-child{margin-bottom:0}article table th,article table td{border:1px solid #ddd;padding:.5em .8em;text-align:left}article table th{background:#f9f9f9;font-weight:600}article figure{margin:1em 0;text-align:center}article figure:last-child{margin-bottom:0}article figure img{max-width:100%;height:auto;display:inline-block}article figure figcaption{font-size:.9em;color:#666;margin-top:.5em}button:disabled,button[disabled]{color:var(--font-color-secondary)!important;background:transparent!important;cursor:not-allowed;pointer-events:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;line-height:1;height:38px}.btn.btn-lg{height:44px}.btn.btn-sm{height:32px}.btn .icon,.btn svg{pointer-events:none}.btn svg{height:14px;width:14px;margin-top:0}.btn:hover{text-decoration:none}.btn.btn-default{color:var(--font-color);border-color:var(--border-color);background-color:var(--secondary-bg)}.btn.btn-default:hover{background-color:var(--primary-bg)}.btn.btn-primary,.btn.btn-success,.btn.btn-info,.btn.btn-warning,.btn.btn-danger{color:#fff}.btn.btn-primary.btn-primary,.btn.btn-success.btn-primary,.btn.btn-info.btn-primary,.btn.btn-warning.btn-primary,.btn.btn-danger.btn-primary{background-color:#0a84ff;border-color:#005ebd}.btn.btn-primary.btn-primary:hover,.btn.btn-success.btn-primary:hover,.btn.btn-info.btn-primary:hover,.btn.btn-warning.btn-primary:hover,.btn.btn-danger.btn-primary:hover{background-color:#0051a3}.btn.btn-primary.btn-success,.btn.btn-success.btn-success,.btn.btn-info.btn-success,.btn.btn-warning.btn-success,.btn.btn-danger.btn-success{background-color:#30d158;border-color:#21943d}.btn.btn-primary.btn-success:hover,.btn.btn-success.btn-success:hover,.btn.btn-info.btn-success:hover,.btn.btn-warning.btn-success:hover,.btn.btn-danger.btn-success:hover{background-color:#1c7f35}.btn.btn-primary.btn-info,.btn.btn-success.btn-info,.btn.btn-info.btn-info,.btn.btn-warning.btn-info,.btn.btn-danger.btn-info{background-color:#5ac8fa;border-color:#10aff8}.btn.btn-primary.btn-info:hover,.btn.btn-success.btn-info:hover,.btn.btn-info.btn-info:hover,.btn.btn-warning.btn-info:hover,.btn.btn-danger.btn-info:hover{background-color:#07a1e7}.btn.btn-primary.btn-warning,.btn.btn-success.btn-warning,.btn.btn-info.btn-warning,.btn.btn-warning.btn-warning,.btn.btn-danger.btn-warning{background-color:#ff9f0a;border-color:#bd7300}.btn.btn-primary.btn-warning:hover,.btn.btn-success.btn-warning:hover,.btn.btn-info.btn-warning:hover,.btn.btn-warning.btn-warning:hover,.btn.btn-danger.btn-warning:hover{background-color:#a36300}.btn.btn-primary.btn-danger,.btn.btn-success.btn-danger,.btn.btn-info.btn-danger,.btn.btn-warning.btn-danger,.btn.btn-danger.btn-danger{background-color:#ff453a;border-color:#ed0d00}.btn.btn-primary.btn-danger:hover,.btn.btn-success.btn-danger:hover,.btn.btn-info.btn-danger:hover,.btn.btn-warning.btn-danger:hover,.btn.btn-danger.btn-danger:hover{background-color:#d30c00}.btn.btn-link{color:var(--link-color);background-color:transparent;border-color:transparent}.btn.btn-block{display:block;width:100%}.btn.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem;border-top-left-radius:0;border-bottom-left-radius:0}.btn.dropdown-toggle-split:after{margin-left:0}.btn.btn-icon-only{padding:0;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.btn.btn-icon-only.btn-sm{width:32px;height:32px}.btn.btn-icon-only.btn-lg{width:48px;height:48px}.btn.btn-rounded{padding:0;width:35px;height:35px;text-align:center;border-radius:50%!important;font-size:14px}.btn.btn-round{border-radius:30px}.btn.btn-ripple{overflow:hidden}.btn.btn-ripple:before{content:"";position:absolute;top:0;left:0;width:0;height:0;transform:translate(-50%,-50%);border-radius:50%;background:#fff;opacity:.5;transition:width .5s,height .5s}.btn.btn-ripple:hover:before{width:300px;height:300px}.btn.btn-fab{width:56px;height:56px;padding:0;border-radius:50%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:inline-flex;align-items:center;justify-content:center}.btn.btn-fab:hover{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.btn.btn-fab svg{width:24px;height:24px}.btn.btn-fab-sm{width:40px;height:40px;padding:0;border-radius:50%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:inline-flex;align-items:center;justify-content:center}.btn.btn-fab-sm:hover{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.btn.btn-fab-sm svg{width:18px;height:18px}.btn.loading svg{animation:spin 1s linear infinite;transform-origin:center}.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.dropdown-toggle-split{border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid rgba(255,255,255,.2)}.btn-icon{border:none;width:35px;height:35px;font-size:1.3em;border-radius:50%;line-height:1;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--black-white)}.btn-icon .icon{width:100%;height:auto}.btn-icon:hover.btn-default{background-color:#fff}.btn-icon:hover.btn-primary{background-color:#70b7ff}.btn-icon:hover.btn-success{background-color:#83e49b}.btn-icon:hover.btn-info{background-color:#bde9fd}.btn-icon:hover.btn-warning{background-color:#ffc770}.btn-icon:hover.btn-danger{background-color:#ffa5a0}.btn-icon.btn-rounded .icon{border-radius:50%}.btn-toolbar{margin-left:-5px}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.auto{position:relative;flex:1 1 auto}.btn-group>.active{background-color:var(--link-active-color);color:var(--white-black);border-color:var(--link-active-color)}.btn-group>.active:hover{background-color:var(--link-active-color)}.btn-group-vertical>.btn{min-width:150px}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}input[type=checkbox],input[type=radio]{line-height:normal}.spinning{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.card{display:flex;width:100%;border-radius:4px;border:1px solid var(--border-color);background-color:var(--secondary-bg);flex-direction:column;position:relative}.card .card-header{padding:0 20px;min-height:50px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;border-radius:4px 4px 0 0;color:var(--font-color);background-color:var(--secondary-bg)}.card .card-header .card-header-title{display:flex;align-items:center;line-height:1;gap:10px;font-weight:500}.card .card-header .card-header-title .icon{height:16px;width:16px;fill:#545a6d33;margin-right:0;margin-top:-2px}.card .card-header .card-header-title .md-icon{height:16px;width:16px;margin-right:0}.card .card-header .card-header-title span{font-weight:500}.card .card-header .tools{display:flex;align-items:center;position:relative;gap:10px}.card .card-header .tools .icon{padding:5px;width:25px;height:25px;border-radius:50%;cursor:pointer}.card .card-header .tools .icon:hover{background:var(--hover-bg)}.card .card-header .tools .icon:focus{background:var(--hover-bg);outline:none}.card .card-header.sm{min-height:40px}.card .card-header.bg-dark{background-color:#212529;color:#fff;border-bottom-color:#343a40}.card .card-header.bg-dark .card-header-title{color:#fff}.card .card-header.bg-dark .card-header-title .icon{fill:#ffffff80}.card .card-header.bg-dark .tools .icon{color:#fff}.card .card-header.bg-dark .tools .icon:hover{background:#ffffff1a}.card .card-header.bg-secondary{background-color:#6c757d;color:#fff;border-bottom-color:#5a6268}.card .card-header.bg-secondary .card-header-title{color:#fff}.card .card-header.bg-secondary .card-header-title .icon{fill:#ffffff80}.card .card-header.bg-secondary .tools .icon{color:#fff}.card .card-header.bg-secondary .tools .icon:hover{background:#ffffff1a}.card .card-body{padding:20px;height:100%;width:100%;color:var(--font-color)}.card .card-footer{padding:5px 20px;min-height:50px;border-top:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;position:relative;color:var(--font-color)}.card .card-footer button{margin-bottom:0}.card.card-h-left{flex-direction:row}.card.card-h-left>.card-header{align-items:start;padding:0;background:var(--hover-bg)}.card.card-h-right{flex-direction:row-reverse}.card.card-h-right>.card-header{align-items:start;padding:0;background:var(--hover-bg)}.card-draggable{cursor:auto;padding:0 20px;border:1px solid var(--border-color);display:flex;align-items:center;border-radius:4px;box-shadow:#0000001a 0 0 2px;background:var(--secondary-bg);touch-action:none}.card-draggable.sm{min-height:40px}.card-draggable.md{min-height:50px}.card-draggable .drag-indicator{cursor:grab;font-size:1em;margin-right:5px;margin-left:-5px;color:var(--font-color-secondary)}@media (max-width: 768px){.card .card-header,.card .card-footer,.card .card-footer .pagination-toolbar{padding:15px 20px}.card .card-header>div,.card .card-footer>div,.card .card-footer .pagination-toolbar>div{margin:0!important}.card .card-body{overflow-y:auto}}.spinner{display:inline-block;margin-bottom:5px;margin-right:5px}.spinner .spinner-icon{animation:rotator 1.4s linear infinite}@keyframes rotator{0%{transform:rotate(0)}to{transform:rotate(270deg)}}.spinner .path{stroke-dasharray:187;stroke-dashoffset:0;transform-origin:center;animation:dash 1.4s ease-in-out infinite,colors 5.6s ease-in-out infinite}@keyframes colors{0%{stroke:#4285f4}25%{stroke:#de3e35}50%{stroke:#f7c223}75%{stroke:#1b9a59}to{stroke:#4285f4}}@keyframes dash{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}to{stroke-dashoffset:187;transform:rotate(450deg)}}.dropdown{display:inline-block;cursor:pointer}.dropdown-menu{z-index:1001;min-width:160px;margin-top:.25rem;background-color:var(--secondary-bg);border-color:var(--border-color);box-shadow:0 6px 12px #0000002e}.dropdown-menu .dropdown-item{color:var(--font-color)}.dropdown-menu .dropdown-item:hover,.dropdown-menu .dropdown-item:focus{background-color:var(--hover-bg);color:var(--font-color)}.dropdown-menu .dropdown-item:active{background-color:var(--link-active-color);color:#fff}.dropdown-menu .dropdown-item svg,.dropdown-menu .dropdown-item .icon{vertical-align:middle;margin-top:-2px}.dropdown-menu .dropdown-divider{border-color:var(--border-color)}.dropdown{display:inline-block}.dropdown .dropdown-toggle{cursor:pointer;-webkit-user-select:none;user-select:none}.dropdown .dropdown-toggle svg.icon{height:16px;width:16px;fill:#545a6d33}.dropdown-content{z-index:1001;min-width:160px;background-clip:padding-box;border:1px solid var(--border-color);border-radius:3px;box-shadow:0 6px 12px #0000002e;background:var(--secondary-bg);margin-top:.25rem}.badge.bg-primary{background-color:#0a84ff!important}.badge.bg-success{background-color:#30d158!important}.badge.bg-danger{background-color:#ff453a!important}.badge.bg-warning{background-color:#ff9f0a!important}.badge.bg-info{background-color:#5ac8fa!important}.badge.badge-outline-primary{color:#0a84ff;background-color:transparent;border:1px solid #0a84ff}.badge.badge-outline-secondary{color:#555;background-color:transparent;border:1px solid rgb(119.085,119.085,119.085)}.badge.badge-outline-success{color:#30d158;background-color:transparent;border:1px solid #30d158}.badge.badge-outline-danger{color:#ff453a;background-color:transparent;border:1px solid #ff453a}.badge.badge-outline-warning{color:#ff9f0a;background-color:transparent;border:1px solid #ff9f0a}.badge.badge-outline-info{color:#5ac8fa;background-color:transparent;border:1px solid #5ac8fa}.badge.badge-outline-dark{color:#333;background-color:transparent;border:1px solid #333333}.badge.badge-soft-primary{color:#0a84ff;background-color:#0a84ff1a}.badge.badge-soft-secondary{color:#555;background-color:#5555551a}.badge.badge-soft-success{color:#30d158;background-color:#30d1581a}.badge.badge-soft-danger{color:#ff453a;background-color:#ff453a1a}.badge.badge-soft-warning{color:#ff9f0a;background-color:#ff9f0a1a}.badge.badge-soft-info{color:#5ac8fa;background-color:#5ac8fa1a}.badge.badge-soft-dark{color:#333;background-color:#3333331a}.badge.badge-sm{font-size:.7rem;padding:.25rem .5rem}.badge.badge-lg{font-size:1rem;padding:.5rem .75rem}.badge.badge-status{position:relative;padding-left:1.5rem}.badge.badge-status:before{content:"";position:absolute;left:.5rem;top:50%;transform:translateY(-50%);width:8px;height:8px;border-radius:50%}.badge.badge-status.badge-status-online:before{background-color:#30d158}.badge.badge-status.badge-status-offline:before{background-color:#777}.badge.badge-status.badge-status-busy:before{background-color:#ff453a}.badge.badge-status.badge-status-away:before{background-color:#ff9f0a}.badge.badge-notif{position:absolute;border-radius:50px;padding:5px;top:-10px;right:-10px;font-size:10px;font-weight:600;pointer-events:none}.box{border-radius:4px;border:1px solid var(--border-color);background-color:var(--secondary-bg);position:relative;padding:20px}.box.hover-bs:hover{transition:all .3s ease;box-shadow:0 0 10px #0000001a}.tabs .tab-custom-header{width:100%}.tabs .nav-tabs{padding:0;margin:0;display:flex;align-items:center}.tabs .nav-tabs legend.tab-item-legend{border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);padding:10px 15px;margin-bottom:0;line-height:1;font-size:.8rem;font-weight:500;text-transform:uppercase}.tabs .nav-tabs .tab-item{padding:0 15px;display:flex;align-items:center;gap:5px;line-height:48px;vertical-align:middle;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .4s ease;opacity:.5}.tabs .nav-tabs .tab-item:hover{border-bottom:2px solid var(--link-active-color)}.tabs .nav-tabs .tab-item.active{border-bottom:2px solid var(--link-active-color);opacity:1}.tabs.card-h-left>.card-header{border-radius:0;border-bottom:0;display:flex;flex-direction:column;justify-content:flex-start;min-width:200px}.tabs.card-h-left .nav-tabs{display:flex;flex-direction:column;border-right:1px solid var(--border-color);border-bottom:none;width:100%}.tabs.card-h-left .nav-tabs .tab-item{border:none;border-right:2px solid transparent;white-space:nowrap;margin-bottom:0;width:100%}.tabs.card-h-left .nav-tabs .tab-item:hover,.tabs.card-h-left .nav-tabs .tab-item.active{border-right:2px solid var(--link-active-color)}.tabs.card-h-right>.card-header{border-radius:0;border-bottom:0}.tabs.card-h-right .nav-tabs{flex-direction:column-reverse;display:flex;border-left:1px solid var(--border-color);border-bottom:none;width:100%}.tabs.card-h-right .nav-tabs .tab-item{border:none;border-left:2px solid transparent;white-space:nowrap;margin-bottom:0;justify-content:flex-end;width:100%}.tabs.card-h-right .nav-tabs .tab-item:hover,.tabs.card-h-right .nav-tabs .tab-item.active{border-left:2px solid var(--link-active-color)}@media (max-width: 991.98px){.card.tabs>.card-header{padding:0}.card.tabs>.card-header .tab-custom-header{display:flex;flex-direction:column;width:100%}.card.tabs>.card-header .tab-custom-header img{width:100%!important;max-width:100%!important;height:auto}.card.tabs>.card-header .nav-tabs{width:100%;display:flex;flex-direction:column}.card.card-h-left,.card.card-h-right{flex-direction:column!important}.card.card-h-left .tab-item,.card.card-h-right .tab-item{border-right:none!important;border-left:none!important;border-bottom:2px solid transparent!important}.card.card-h-left .tab-item:hover,.card.card-h-right .tab-item:hover,.card.card-h-left .tab-item.active,.card.card-h-right .tab-item.active{border-right:none!important;border-left:none!important;border-bottom:2px solid var(--link-active-color)!important}}.alert{padding:10px 15px;margin-bottom:20px;border:1px solid transparent;border-radius:0;position:relative;display:flex;align-items:center;justify-content:space-between}.alert .icon,.alert svg{pointer-events:none}.alert p{margin:0;color:#fff}.alert.alert-success{color:#fff;background-color:#30d158;border-color:#21943d}.alert.alert-info{color:#fff;background-color:#5ac8fa;border-color:#10aff8}.alert.alert-warning{color:#fff;background-color:#ff9f0a;border-color:#bd7300}.alert.alert-danger{color:#fff;background-color:#ff453a;border-color:#ed0d00}.alert button.close{border:none;background:none;color:var(--font-color);margin-right:-5px}.Toastify__close-button{align-self:center!important}.modal{display:flex!important;align-items:center;justify-content:center;position:fixed;z-index:1001;left:0;top:0;width:100%;height:100vh;overflow:auto;background-color:#0006;transition:all .4s ease-in-out;vertical-align:middle;pointer-events:auto}.modal .modal-dialog{display:flex;width:100%;max-width:500px;border-radius:4px;border:1px solid var(--border-color);background-color:var(--secondary-bg);vertical-align:middle;flex-direction:column;position:relative;box-shadow:0 4px 8px #0003;pointer-events:auto;overflow:visible}.modal .modal-dialog.modal-sm{max-width:400px}.modal .modal-dialog.modal-md{max-width:600px}.modal .modal-dialog.modal-lg{max-width:800px}.modal .modal-dialog.modal-xl{max-width:1140px}.modal .modal-dialog .modal-header{padding:0 20px;min-height:50px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;border-radius:4px 4px 0 0}.modal .modal-dialog .modal-header .modal-header-title{display:flex;align-items:center;line-height:1}.modal .modal-dialog .modal-header .modal-header-title .icon{margin-right:10px}.modal .modal-dialog .modal-header .modal-header-title span{font-weight:500}.modal .modal-dialog .modal-header .tools{display:flex;align-items:center;position:relative;gap:10px}.modal .modal-dialog .modal-header .tools .icon{padding:3px;width:25px;height:25px;border-radius:50%;cursor:pointer}.modal .modal-dialog .modal-header .tools .icon:hover{background:var(--hover-bg)}.modal .modal-dialog .modal-header .tools .icon:focus{background:var(--hover-bg);outline:none}.modal .modal-dialog .modal-body{padding:20px;width:100%;max-height:calc(100vh - 200px)}.modal .modal-dialog .modal-footer{padding:5px 20px;min-height:50px;border-top:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1;pointer-events:auto}.modal .modal-dialog .modal-footer button{margin:0;position:relative;z-index:1;pointer-events:auto}@media (max-width: 575.98px){.modal .modal-dialog{max-width:calc(100% - 1rem);margin:.5rem}}.callout{padding:10px 15px;margin-bottom:20px;border:1px solid transparent;border-left:5px solid transparent;border-radius:0;background-color:var(--secondary-bg)}.callout p{margin:0}.callout.callout-success{border-color:#21943d;background-color:#d7f6df}.callout.callout-info{border-color:#10aff8;background-color:#effaff}.callout.callout-warning{border-color:#bd7300;background-color:#ffefd6}.callout.callout-danger{border-color:#ed0d00;background-color:#ffeeed}.tooltip{position:relative;background:#000;border-radius:5px;opacity:1;z-index:1002;word-wrap:break-word;max-width:200px;padding:.5rem .75rem;color:#fff;text-align:center;font-size:.9rem;background-color:#263238}.tooltip:after{content:"";position:absolute;border:5px solid transparent}.tooltip.top:after{top:100%;left:50%;margin-left:-5px;border-top-color:#263238}.tooltip.bottom:after{bottom:100%;left:50%;margin-left:-5px;border-bottom-color:#263238}.tooltip.left:after{top:50%;left:100%;margin-top:-5px;border-left-color:#263238}.tooltip.right:after{top:50%;right:100%;margin-top:-5px;border-right-color:#263238}.popover{z-index:1002;display:block;max-width:276px;font-size:12px;background-color:var(--secondary-bg);-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid var(--scrollbar-bg);border-radius:3px;box-shadow:0 5px 10px #0003}.popover .arrow{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:11px}.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:10px}.popover .popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:600;line-height:18px;background-color:var(--hover-bg);border-bottom:1px solid var(--border-color);border-radius:2px 2px 0 0}.popover .popover-content{padding:9px 14px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:var(--scrollbar-bg);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:var(--secondary-bg);border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:var(--scrollbar-bg);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:var(--secondary-bg);border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:var(--scrollbar-bg)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:var(--secondary-bg)}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:var(--scrollbar-bg)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:var(--secondary-bg)}.accordion .accordion-item{border:1px solid var(--border-color);background-color:var(--secondary-bg)}.accordion .accordion-item:not(:first-child){margin-top:-1px}.accordion .accordion-item:first-child{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.accordion .accordion-item:first-child .accordion-header{border-top-left-radius:calc(.375rem - 1px);border-top-right-radius:calc(.375rem - 1px)}.accordion .accordion-item:last-child{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.accordion .accordion-item:last-child .accordion-collapse:not(.show){border-bottom-left-radius:calc(.375rem - 1px);border-bottom-right-radius:calc(.375rem - 1px)}.accordion .accordion-header{padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between;cursor:pointer;background-color:var(--secondary-bg);border:none;transition:background-color .15s ease-in-out}.accordion .accordion-header:hover{background-color:var(--hover-bg)}.accordion .accordion-header .accordion-title{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--font-color)}.accordion .accordion-header .accordion-icon{font-size:1.25rem;transition:transform .3s ease;color:var(--font-color)}.accordion .accordion-header .accordion-icon.active{transform:rotate(180deg)}.accordion.accordion-flush .accordion-item{border-left:0;border-right:0;border-radius:0}.accordion.accordion-flush .accordion-item:first-child{border-top:0}.accordion.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion .accordion-collapse{overflow:hidden;transition:max-height .35s ease-in-out}.accordion .accordion-body{padding:1rem;border-top:1px solid var(--border-color);color:var(--font-color)}.circular-progress{width:48px;height:48px;border:4px solid var(--primary-bg);border-bottom-color:var(--border-color);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.circular-progress.brand-success{border-bottom-color:#30d158}.circular-progress.brand-info{border-bottom-color:#5ac8fa}.circular-progress.brand-warning{border-bottom-color:#ff9f0a}.circular-progress.brand-danger{border-bottom-color:#ff453a}.circular-progress.sm{width:32px;height:32px}.circular-progress.lg{width:64px;height:64px}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.linear-progress{position:relative;display:flex;align-items:center;overflow:hidden}.linear-progress .progress-bar{width:100%;background-color:var(--primary-bg);border-radius:2px}.linear-progress .progress-bar .progress{height:10px;display:block;background-color:#5ac8fa;border-radius:2px;transition:transform .4s ease,width .4s ease}.linear-progress .progress-bar.brand-success .progress{background-color:#30d158}.linear-progress .progress-bar.brand-info .progress{background-color:#5ac8fa}.linear-progress .progress-bar.brand-warning .progress{background-color:#ff9f0a}.linear-progress .progress-bar.brand-danger .progress{background-color:#ff453a}.linear-progress.indeterminate .progress-bar .progress{display:block;transform-origin:left center;animation:moveProgressBarInfinite 2s linear infinite}.linear-progress.sm .progress-bar .progress{height:5px}.linear-progress.lg .progress-bar .progress{height:15px}.linear-progress .progress-label{margin-left:10px;font-size:12px}@keyframes moveProgressBarInfinite{0%{transform:translate(-100%) scaleX(0)}to{transform:translate(100%) scaleX(1)}}.circular-progress-with-label{display:flex;align-items:center;position:relative;width:fit-content}.circular-progress-with-label .progress{width:48px;height:48px;border-radius:50%;background:radial-gradient(closest-side,white 79%,transparent 80% 100%),conic-gradient(#888 70%,#eee 0)}.circular-progress-with-label .progress-label{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.custom-checkbox{position:relative;padding-left:25px;cursor:pointer;justify-content:space-between;align-items:center;display:inline;margin:0}.custom-checkbox .checkbox-wrapper{position:relative;display:flex;align-items:center}.custom-checkbox input{position:absolute;opacity:0;cursor:pointer}.custom-checkbox .checkmark{position:absolute;top:0;left:0;height:18px;width:18px;background-color:var(--secondary-bg);border:1px solid var(--brand-primary);border-radius:3px;display:flex;align-items:center;justify-content:center}.custom-checkbox .checkmark:after{content:"";position:absolute;display:none}.custom-checkbox input:checked~.checkmark:after{display:block;content:"";left:5px;top:1px;width:6px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.custom-checkbox:hover input~.checkmark{background-color:var(--primary-bg)}.custom-checkbox input:checked~.checkmark{background-color:var(--brand-primary);border-color:var(--brand-primary)}.custom-checkbox .check-icon{color:#fff;font-size:16px;display:block}.custom-checkbox input:disabled~.checkmark{background-color:#e0e0e0;border-color:#e0e0e0;cursor:not-allowed}.custom-checkbox input:disabled~.checkmark .check-icon{color:#9e9e9e}.custom-checkbox.sm .checkmark{height:15px;width:15px}.custom-checkbox.sm .checkmark:after{left:4px;top:1px;width:5px;height:8px}.custom-checkbox.sm .check-icon{font-size:12px}.form{display:flex;flex-direction:column}.form legend{border-bottom:1px solid var(--border-color);font-size:.9rem;padding-bottom:5px;font-weight:500}.form .form-message{margin-top:3px;color:var(--font-color-secondary);text-align:right;margin-bottom:0}.form .has-error .form-control,.form .has-error .dropdown-header{border-color:#ff453a}.form .has-error label,.form .has-error .form-message{color:#ff453a}.form .has-success .form-control,.form .has-success .dropdown-header{border-color:#30d158}.form .has-success label,.form .has-success .form-message{color:#30d158}.form .has-warning .form-control,.form .has-warning .dropdown-header{border-color:#ff9f0a}.form .has-warning label,.form .has-warning .form-message{color:#ff9f0a}.form-group{margin-bottom:10px;position:relative;padding-top:10px;display:flex;flex-direction:column}.form-group label{margin-bottom:5px;font-size:.9rem;color:var(--font-color-secondary)}.form-group label.required:after{content:"*";color:#ff453a;margin-left:3px}.form-radio,.form-checkbox{margin-bottom:10px;position:relative;padding-top:10px;display:flex;flex-direction:column}.form-radio>label,.form-radio label,.form-checkbox>label,.form-checkbox label{font-size:.9rem;color:var(--font-color-secondary);margin-bottom:5px}.form-radio>label.required:after,.form-radio label.required:after,.form-checkbox>label.required:after,.form-checkbox label.required:after{content:"*";color:#ff453a;margin-left:3px}.form-radio .form-control,.form-checkbox .form-control{display:flex;justify-content:flex-start;align-items:center;gap:10px}.form-radio .form-control label,.form-checkbox .form-control label{margin:0 0 0 10px}.form-radio.has-info .checkmark,.form-checkbox.has-info .checkmark{border-color:#5ac8fa}.form-radio.has-info input:checked~.checkmark,.form-checkbox.has-info input:checked~.checkmark{background-color:#5ac8fa;border-color:#5ac8fa}.form-radio.has-info .form-message,.form-checkbox.has-info .form-message{color:#5ac8fa}.form-radio.has-error .checkmark,.form-checkbox.has-error .checkmark{border-color:#ff453a}.form-radio.has-error input:checked~.checkmark,.form-checkbox.has-error input:checked~.checkmark{background-color:#ff453a;border-color:#ff453a}.form-radio.has-error .form-message,.form-checkbox.has-error .form-message{color:#ff453a}.form-radio.has-success .checkmark,.form-checkbox.has-success .checkmark{border-color:#30d158}.form-radio.has-success input:checked~.checkmark,.form-checkbox.has-success input:checked~.checkmark{background-color:#30d158;border-color:#30d158}.form-radio.has-success .form-message,.form-checkbox.has-success .form-message{color:#30d158}.form-radio.has-warning .checkmark,.form-checkbox.has-warning .checkmark{border-color:#ff9f0a}.form-radio.has-warning input:checked~.checkmark,.form-checkbox.has-warning input:checked~.checkmark{background-color:#ff9f0a;border-color:#ff9f0a}.form-radio.has-warning .form-message,.form-checkbox.has-warning .form-message{color:#ff9f0a}.dropdown-select-container{position:relative;max-width:100%;min-width:60px}.dropdown-select-container .dropdown-header{cursor:pointer;padding:0 10px;height:38px;line-height:1;border:1px solid var(--form-border-color);display:flex;justify-content:space-between;align-items:center;-webkit-user-select:none;user-select:none;border-radius:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-select-container .dropdown-header.open{box-shadow:0 2px 4px #0000001a}.dropdown-select-container .dropdown-header.open .arrow{transform:rotate(180deg)}.dropdown-select-container .dropdown-header span.label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:90%}.dropdown-select-container .dropdown-header svg.arrow{position:absolute;right:10px;margin-left:8px;transition:transform .3s;font-size:1.3rem;flex-shrink:0;pointer-events:none}.dropdown-select-container .dropdown-header.disabled{cursor:not-allowed}.dropdown-select-container .dropdown-options{position:absolute;width:100%;border:1px solid var(--form-border-color);box-shadow:0 2px 4px #0000001a;display:flex;flex-direction:column;background-color:var(--secondary-bg);border-radius:4px;z-index:1050;max-height:300px}.dropdown-select-container .dropdown-options.position-top{top:auto;bottom:100%}.dropdown-select-container .dropdown-options .search-input{padding:8px 10px}.dropdown-select-container .dropdown-options .option{padding:8px 10px;cursor:pointer;transition:background-color .3s}.dropdown-select-container .dropdown-options .option:hover,.dropdown-select-container .dropdown-options .option.selected{background-color:var(--hover-bg)}.dropdown-select-container.sm .dropdown-header{height:32px}.dropdown-select-container.sm .dropdown-options .option{padding:6px 8px}.dropdown-select-container.md .dropdown-header{height:38px}.dropdown-select-container.md .dropdown-options .option{padding:10px 12px}.dropdown-select-container.lg .dropdown-header{height:44px}.dropdown-select-container.lg .dropdown-options .option{padding:12px 14px}.form-floating>.dropdown-select-container .dropdown-header{height:52px;padding:1.5rem 0 .375rem;border:none;border-bottom:1px solid var(--form-border-color);border-radius:0;background-color:transparent;transition:all .2s ease}.form-floating>.dropdown-select-container .dropdown-header.open{border-bottom-color:#0a84ff;border-bottom-width:2px;box-shadow:none}.form-floating>.dropdown-select-container .dropdown-header svg.arrow{right:0}.form-floating>.dropdown-select-container~label{opacity:1;transform:scale(.75) translateY(-.75rem);color:var(--font-color-secondary);font-weight:500}.form-floating>.dropdown-select-container .dropdown-header.open~label{color:#0a84ff}.date-picker{position:absolute;right:0;padding:.75rem;background-clip:padding-box;border:1px solid var(--border-color);border-radius:4px;box-shadow:0 6px 12px #0000002e;background:var(--secondary-bg);z-index:1050;opacity:0;transform:translateY(-20px);animation:slideIn .3s forwards,fadeIn .3s forwards}.date-picker.position-top{bottom:100%;transform:translateY(-100%)}.date-picker .calendar-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.date-picker .calendar-nav .btn{color:var(--font-color)}.date-picker .calendar-nav .btn.rounded-circle{width:28px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%!important}.date-picker .calendar-nav .calendar-select{display:flex;gap:.375rem}.date-picker .calendar-nav .calendar-select .dropdown-select-container.select-month{min-width:120px!important;width:120px!important;max-width:120px}.date-picker .calendar-nav .calendar-select .dropdown-select-container.select-year{min-width:75px!important;width:75px!important;max-width:75px}.date-picker .calendar .calendar-header{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem;border-bottom:1px solid var(--border-color);margin-bottom:.375rem;padding-bottom:.375rem}.date-picker .calendar .calendar-header .calendar-day-name{display:flex;align-items:center;justify-content:center;height:28px;width:28px;font-size:.75rem;color:var(--font-color-secondary);font-weight:500}.date-picker .calendar .calendar-body{display:grid;grid-template-columns:repeat(7,1fr);gap:.25rem}.date-picker .calendar .calendar-body .calendar-day{display:flex;align-items:center;justify-content:center;height:28px;width:28px;border-radius:50%;line-height:1;cursor:pointer;font-size:.875rem;color:var(--font-color);transition:background-color .15s ease-in-out}.date-picker .calendar .calendar-body .calendar-day:hover{background-color:var(--hover-bg)}.date-picker .calendar .calendar-body .calendar-day.selected-date{background-color:#0a84ff;color:#fff;font-weight:600}.date-picker .calendar .calendar-body .calendar-day.today{color:#5ac8fa;font-weight:600}.date-picker .calendar .calendar-body .calendar-day.prev-month{color:var(--font-color-secondary);font-size:.75rem}.date-picker .calendar .calendar-body .calendar-day.empty{pointer-events:none}.time-picker{position:absolute;right:0;padding:.75rem;background-clip:padding-box;border:1px solid var(--border-color);border-radius:4px;box-shadow:0 6px 12px #0000002e;background:var(--secondary-bg);z-index:1050;opacity:0;transform:translateY(-20px);animation:slideIn .3s forwards,fadeIn .3s forwards;min-width:280px}.time-picker.position-top{bottom:100%;transform:translateY(-100%)}.time-picker .time-picker-header{padding-bottom:.5rem;border-bottom:1px solid var(--border-color);margin-bottom:.75rem}.time-picker .time-picker-header h6{color:var(--font-color);font-weight:600;font-size:.875rem}.time-picker .time-picker-body .time-select-group{display:flex;align-items:center;justify-content:center;gap:.75rem}.time-picker .time-picker-body .time-select-group .time-select-item{display:flex;flex-direction:column;align-items:center;gap:.375rem}.time-picker .time-picker-body .time-select-group .time-select-item .time-label{font-size:.75rem;color:var(--font-color-secondary);font-weight:500;margin-bottom:0}.time-picker .time-picker-body .time-select-group .time-select-item .dropdown-select-container{min-width:80px!important;width:80px!important;max-width:80px}.time-picker .time-picker-body .time-select-group .time-select-item .dropdown-select-container .dropdown-select{text-align:center;font-weight:600;font-size:1.125rem}.time-picker .time-picker-body .time-select-group .time-separator{font-size:1.5rem;font-weight:600;color:var(--font-color);margin-top:1.25rem}.time-picker .time-picker-footer{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border-color)}.time-picker .time-picker-footer .btn{font-size:.875rem}@keyframes slideIn{0%{transform:translateY(-20px)}to{transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}input.clear{padding:0;margin:0;border:none;background:none;box-shadow:none;outline:none;width:100%}input.clear:focus{outline:none}input.clear::-ms-clear{display:none}input.clear::-webkit-search-cancel-button{display:none}input.clear::-webkit-search-clear-button{display:none}input.clear::-webkit-inner-spin-button{display:none}input.clear::-webkit-outer-spin-button{display:none}input.clear::-webkit-input-placeholder{color:transparent}input.clear::-moz-placeholder{color:transparent}input.clear:-ms-input-placeholder{color:transparent}input.clear:disabled{color:var(--font-color)}.form-control{letter-spacing:inherit;border:1px solid var(--form-border-color);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;min-width:0;width:100%;outline:none;border-radius:4px;padding:0 10px;color:var(--font-color);font-size:1rem;background-color:var(--secondary-bg);height:38px}.form-control.disabled,.form-control:disabled{opacity:.9;cursor:not-allowed;border-color:var(--border-color);font-size:1rem;background-color:var(--primary-bg)}.form-control:focus,.form-control:active{border-color:var(--link-active-color);box-shadow:none;outline:none;background-color:var(--secondary-bg);color:var(--font-color)}.form-control::placeholder{color:var(--font-color-tertiary)}.form-control:-webkit-autofill,.form-control:-webkit-autofill:focus{background:transparent!important;-webkit-box-shadow:0 0 0px 1000px var(--secondary-bg) inset;-webkit-text-fill-color:var(--font-color)!important;transition:background-color 5000s ease-in-out 0s}.form-control.sm{height:32px}.form-control.lg{height:44px}.form-control[multiple]{height:auto}textarea.form-control{resize:vertical;min-height:75px;padding:5px 10px}.form-control[type=file]{padding:7px 10px 7px 5px}.form-control[type=file]::-webkit-file-upload-button,.form-control[type=file]::file-selector-button{-webkit-appearance:none;margin-right:10px;margin-left:0;padding:0 10px;line-height:30px;color:#fff;background-color:#0a84ff;border:0;border-radius:4px;cursor:pointer}.input-group-icon{position:relative}.input-group-icon .icon{position:absolute;display:flex;align-items:center;justify-content:center;top:1px;bottom:1px;right:1px;width:35px;padding:0;font-size:23px;border-radius:3px;cursor:pointer;color:var(--font-color-secondary);border:none;background-color:transparent}.input-group-icon .icon:hover{background:var(--hover-bg)}.input-group-icon .icon svg{width:20px;height:20px}.date-picker-container,.time-picker-container{position:relative}.form-floating,.form-group.floating-label{position:relative;margin-bottom:10px;display:flex;flex-direction:column}.form-floating>.form-control,.form-group.floating-label>.form-control,.form-floating>.form-select,.form-group.floating-label>.form-select{height:52px;padding:1.5rem 0 .375rem;border:none;border-bottom:1px solid var(--border-color);border-radius:0;background-color:transparent;transition:all .2s ease}.form-floating>.form-control:focus,.form-group.floating-label>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-group.floating-label>.form-control:not(:placeholder-shown),.form-floating>.form-select:focus,.form-group.floating-label>.form-select:focus,.form-floating>.form-select:not(:placeholder-shown),.form-group.floating-label>.form-select:not(:placeholder-shown){padding-top:1.5rem;padding-bottom:.375rem}.form-floating>.form-control:focus,.form-group.floating-label>.form-control:focus,.form-floating>.form-select:focus,.form-group.floating-label>.form-select:focus{border-bottom-color:#0a84ff;border-bottom-width:2px;box-shadow:none;outline:none}.form-floating>.form-control::placeholder,.form-group.floating-label>.form-control::placeholder,.form-floating>.form-select::placeholder,.form-group.floating-label>.form-select::placeholder{color:transparent}.form-floating>label,.form-group.floating-label>label{position:absolute;top:0;left:0;height:100%;padding:1.75rem 0;pointer-events:none;border:none;transform-origin:0 0;transition:all .2s ease;color:var(--font-color-tertiary);font-size:.9375rem;font-weight:400;line-height:1;background-color:transparent}.form-floating>label:after,.form-group.floating-label>label:after{display:none}@media (max-width: 767px){.form-floating>label,.form-group.floating-label>label{padding:2rem 0;font-size:.875rem}}.form-floating>.form-control:focus~label,.form-group.floating-label>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-group.floating-label>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label,.form-group.floating-label>.form-select~label{opacity:1;transform:scale(.75) translateY(-.75rem);color:#0a84ff;font-weight:500}.form-floating>.form-control:not(:focus):not(:placeholder-shown)~label,.form-group.floating-label>.form-control:not(:focus):not(:placeholder-shown)~label{color:var(--font-color-secondary)}.form-floating>textarea.form-control,.form-group.floating-label>textarea.form-control{padding-top:2rem;padding-left:0;padding-right:0;resize:vertical;min-height:100px}.form-floating>.form-control[type=file],.form-group.floating-label>.form-control[type=file]{padding-top:1.5rem;padding-bottom:.375rem;padding-left:0;padding-right:0}.form-floating>.form-control[type=file]::-webkit-file-upload-button,.form-group.floating-label>.form-control[type=file]::-webkit-file-upload-button,.form-floating>.form-control[type=file]::file-selector-button,.form-group.floating-label>.form-control[type=file]::file-selector-button{margin-top:0;margin-left:0;margin-right:10px;line-height:1.5;padding:4px 10px}.form-floating>.form-control[type=file]~label,.form-group.floating-label>.form-control[type=file]~label{opacity:1;transform:scale(.75) translateY(-.75rem);color:var(--font-color-secondary);font-weight:500}.form-floating>.form-control[type=file]:focus~label,.form-group.floating-label>.form-control[type=file]:focus~label{color:#0a84ff}.form-floating .form-message,.form-group.floating-label .form-message{text-align:right;margin-top:3px;margin-bottom:0}.form-radio .form-control{border:none;padding:0;height:auto;background-color:transparent}.form-control input[type=radio]{display:none}.form-control input[type=radio]+label{position:relative;padding-left:30px;cursor:pointer;margin-left:0}.form-control input[type=radio]+label:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);width:18px;height:18px;border:1px solid var(--brand-primary);border-radius:50%}.form-control input[type=radio]+label:after{content:"";position:absolute;top:50%;left:5px;transform:translateY(-50%) scale(0);width:8px;height:8px;border-radius:50%;background-color:var(--brand-primary);transition:transform .2s ease-in-out}.form-control input[type=radio]:checked+label:after{transform:translateY(-50%) scale(1)}.switch{position:relative;display:inline-block;width:36px;height:20px;margin:0}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s;border-radius:24px}.switch .slider:before{position:absolute;content:"";height:16px;width:16px;left:2px;bottom:2px;background-color:#fff;transition:.4s;border-radius:50%}.switch input:checked+.slider{background-color:#2196f3}.switch input:focus+.slider{box-shadow:0 0 1px #2196f3}.switch input:checked+.slider:before{transform:translate(16px)}.switch.sm{width:30px;height:14px}.switch.sm .slider{border-radius:14px}.switch.sm .slider:before{height:10px;width:10px;left:2px;bottom:2px}.switch.lg{width:40px;height:24px}.switch.lg .slider{border-radius:24px}.switch.lg .slider:before{height:20px;width:20px;left:2px;bottom:2px}.switch.has-info input:checked+.slider{background-color:#5ac8fa}.switch.has-success input:checked+.slider{background-color:#30d158}.switch.has-warning input:checked+.slider{background-color:#ff9f0a}.switch.has-error .slider{background-color:#ff453a}.switch.disabled input:checked+.slider{background-color:#ccc}/*!
2
2
  * Quill Editor v2.0.2
3
3
  * https://quilljs.com
4
4
  * Copyright (c) 2017-2024, Slab
@@ -3368,7 +3368,7 @@ const Jc = ({ onSelect: n, defaultTime: e, format24: t = !0 }) => {
3368
3368
  }), g(!1));
3369
3369
  };
3370
3370
  return St([m], () => g(!1)), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3371
- !r && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3371
+ !r && e && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3372
3372
  e,
3373
3373
  " ",
3374
3374
  c.required && /* @__PURE__ */ d.jsx("span", { className: "text-danger", children: "*" })
@@ -3407,17 +3407,10 @@ const Jc = ({ onSelect: n, defaultTime: e, format24: t = !0 }) => {
3407
3407
  ref: m,
3408
3408
  className: `date-picker-container ${p ? "show" : "hide"}`,
3409
3409
  style: { display: p ? "block" : "none" },
3410
- children: /* @__PURE__ */ d.jsx(
3411
- Xc,
3412
- {
3413
- full: s,
3414
- onSelect: E,
3415
- defaultDate: l || void 0
3416
- }
3417
- )
3410
+ children: /* @__PURE__ */ d.jsx(Xc, { full: s, onSelect: E, defaultDate: l || void 0 })
3418
3411
  }
3419
3412
  ),
3420
- r && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3413
+ r && e && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3421
3414
  e,
3422
3415
  " ",
3423
3416
  c.required && /* @__PURE__ */ d.jsx("span", { className: "text-danger", children: "*" })
@@ -3440,7 +3433,7 @@ const eu = Z.forwardRef(
3440
3433
  }), g(!1));
3441
3434
  };
3442
3435
  return St([m], () => g(!1)), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3443
- !r && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3436
+ !r && e && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3444
3437
  e,
3445
3438
  " ",
3446
3439
  c.required && /* @__PURE__ */ d.jsx("span", { className: "text-danger", children: "*" })
@@ -3479,17 +3472,10 @@ const eu = Z.forwardRef(
3479
3472
  ref: m,
3480
3473
  className: `time-picker-container ${p ? "show" : "hide"}`,
3481
3474
  style: { display: p ? "block" : "none" },
3482
- children: /* @__PURE__ */ d.jsx(
3483
- Jc,
3484
- {
3485
- format24: s,
3486
- onSelect: E,
3487
- defaultTime: l || void 0
3488
- }
3489
- )
3475
+ children: /* @__PURE__ */ d.jsx(Jc, { format24: s, onSelect: E, defaultTime: l || void 0 })
3490
3476
  }
3491
3477
  ),
3492
- r && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3478
+ r && e && /* @__PURE__ */ d.jsxs("label", { htmlFor: n, children: [
3493
3479
  e,
3494
3480
  " ",
3495
3481
  c.required && /* @__PURE__ */ d.jsx("span", { className: "text-danger", children: "*" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pesona-ui",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/pesona-ui.cjs.js",