desmy-react
Version:
Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.
53 lines (51 loc) • 428 kB
JavaScript
(function(te,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(te=typeof globalThis<"u"?globalThis:te||self,p(te["desmy-react"]={},te.React,te.ReactDOM))})(this,function(te,p,Ke){"use strict";var by=Object.defineProperty;var xy=(te,p,Ke)=>p in te?by(te,p,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):te[p]=Ke;var w=(te,p,Ke)=>xy(te,typeof p!="symbol"?p+"":p,Ke);var Wt,As;function Jc(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Se=Jc(p);function dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ln={exports:{}},fr={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ms;function Zc(){if(Ms)return fr;Ms=1;var e=p,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var d,f={},h=null,v=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(v=l.ref);for(d in l)n.call(l,d)&&!s.hasOwnProperty(d)&&(f[d]=l[d]);if(a&&a.defaultProps)for(d in l=a.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:r,type:a,key:h,ref:v,props:f,_owner:i.current}}return fr.Fragment=t,fr.jsx=o,fr.jsxs=o,fr}var hr={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ls;function Qc(){return Ls||(Ls=1,process.env.NODE_ENV!=="production"&&function(){var e=p,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";function y(b){if(b===null||typeof b!="object")return null;var P=m&&b[m]||b[g];return typeof P=="function"?P:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(b){{for(var P=arguments.length,F=new Array(P>1?P-1:0),re=1;re<P;re++)F[re-1]=arguments[re];C("error",b,F)}}function C(b,P,F){{var re=x.ReactDebugCurrentFrame,ve=re.getStackAddendum();ve!==""&&(P+="%s",F=F.concat([ve]));var be=F.map(function(de){return String(de)});be.unshift("Warning: "+P),Function.prototype.apply.call(console[b],console,be)}}var j=!1,N=!1,H=!1,B=!1,T=!1,D;D=Symbol.for("react.module.reference");function le(b){return!!(typeof b=="string"||typeof b=="function"||b===n||b===s||T||b===i||b===c||b===d||B||b===v||j||N||H||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===f||b.$$typeof===o||b.$$typeof===a||b.$$typeof===l||b.$$typeof===D||b.getModuleId!==void 0))}function ce(b,P,F){var re=b.displayName;if(re)return re;var ve=P.displayName||P.name||"";return ve!==""?F+"("+ve+")":F}function oe(b){return b.displayName||"Context"}function K(b){if(b==null)return null;if(typeof b.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case n:return"Fragment";case t:return"Portal";case s:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case a:var P=b;return oe(P)+".Consumer";case o:var F=b;return oe(F._context)+".Provider";case l:return ce(b,b.render,"ForwardRef");case f:var re=b.displayName||null;return re!==null?re:K(b.type)||"Memo";case h:{var ve=b,be=ve._payload,de=ve._init;try{return K(de(be))}catch{return null}}}return null}var q=Object.assign,V=0,G,J,L,X,S,k,M;function $(){}$.__reactDisabledLog=!0;function U(){{if(V===0){G=console.log,J=console.info,L=console.warn,X=console.error,S=console.group,k=console.groupCollapsed,M=console.groupEnd;var b={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}V++}}function z(){{if(V--,V===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},b,{value:G}),info:q({},b,{value:J}),warn:q({},b,{value:L}),error:q({},b,{value:X}),group:q({},b,{value:S}),groupCollapsed:q({},b,{value:k}),groupEnd:q({},b,{value:M})})}V<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=x.ReactCurrentDispatcher,Y;function Z(b,P,F){{if(Y===void 0)try{throw Error()}catch(ve){var re=ve.stack.trim().match(/\n( *(at )?)/);Y=re&&re[1]||""}return`
`+Y+b}}var ie=!1,ee;{var ye=typeof WeakMap=="function"?WeakMap:Map;ee=new ye}function R(b,P){if(!b||ie)return"";{var F=ee.get(b);if(F!==void 0)return F}var re;ie=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=W.current,W.current=null,U();try{if(P){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch($e){re=$e}Reflect.construct(b,[],de)}else{try{de.call()}catch($e){re=$e}b.call(de.prototype)}}else{try{throw Error()}catch($e){re=$e}b()}}catch($e){if($e&&re&&typeof $e.stack=="string"){for(var ue=$e.stack.split(`
`),Me=re.stack.split(`
`),Oe=ue.length-1,Ae=Me.length-1;Oe>=1&&Ae>=0&&ue[Oe]!==Me[Ae];)Ae--;for(;Oe>=1&&Ae>=0;Oe--,Ae--)if(ue[Oe]!==Me[Ae]){if(Oe!==1||Ae!==1)do if(Oe--,Ae--,Ae<0||ue[Oe]!==Me[Ae]){var Xe=`
`+ue[Oe].replace(" at new "," at ");return b.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",b.displayName)),typeof b=="function"&&ee.set(b,Xe),Xe}while(Oe>=1&&Ae>=0);break}}}finally{ie=!1,W.current=be,z(),Error.prepareStackTrace=ve}var ur=b?b.displayName||b.name:"",qt=ur?Z(ur):"";return typeof b=="function"&&ee.set(b,qt),qt}function Pe(b,P,F){return R(b,!1)}function vt(b){var P=b.prototype;return!!(P&&P.isReactComponent)}function ct(b,P,F){if(b==null)return"";if(typeof b=="function")return R(b,vt(b));if(typeof b=="string")return Z(b);switch(b){case c:return Z("Suspense");case d:return Z("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return Pe(b.render);case f:return ct(b.type,P,F);case h:{var re=b,ve=re._payload,be=re._init;try{return ct(be(ve),P,F)}catch{}}}return""}var Vt=Object.prototype.hasOwnProperty,In={},Fc=x.ReactDebugCurrentFrame;function Mn(b){if(b){var P=b._owner,F=ct(b.type,b._source,P?P.type:null);Fc.setExtraStackFrame(F)}else Fc.setExtraStackFrame(null)}function J0(b,P,F,re,ve){{var be=Function.call.bind(Vt);for(var de in b)if(be(b,de)){var ue=void 0;try{if(typeof b[de]!="function"){var Me=Error((re||"React class")+": "+F+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Me.name="Invariant Violation",Me}ue=b[de](P,de,re,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Oe){ue=Oe}ue&&!(ue instanceof Error)&&(Mn(ve),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",re||"React class",F,de,typeof ue),Mn(null)),ue instanceof Error&&!(ue.message in In)&&(In[ue.message]=!0,Mn(ve),E("Failed %s type: %s",F,ue.message),Mn(null))}}}var Z0=Array.isArray;function _s(b){return Z0(b)}function Q0(b){{var P=typeof Symbol=="function"&&Symbol.toStringTag,F=P&&b[Symbol.toStringTag]||b.constructor.name||"Object";return F}}function ey(b){try{return Uc(b),!1}catch{return!0}}function Uc(b){return""+b}function Bc(b){if(ey(b))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Q0(b)),Uc(b)}var qr=x.ReactCurrentOwner,ty={key:!0,ref:!0,__self:!0,__source:!0},zc,Hc,js;js={};function ry(b){if(Vt.call(b,"ref")){var P=Object.getOwnPropertyDescriptor(b,"ref").get;if(P&&P.isReactWarning)return!1}return b.ref!==void 0}function ny(b){if(Vt.call(b,"key")){var P=Object.getOwnPropertyDescriptor(b,"key").get;if(P&&P.isReactWarning)return!1}return b.key!==void 0}function iy(b,P){if(typeof b.ref=="string"&&qr.current&&P&&qr.current.stateNode!==P){var F=K(qr.current.type);js[F]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',K(qr.current.type),b.ref),js[F]=!0)}}function sy(b,P){{var F=function(){zc||(zc=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};F.isReactWarning=!0,Object.defineProperty(b,"key",{get:F,configurable:!0})}}function oy(b,P){{var F=function(){Hc||(Hc=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",P))};F.isReactWarning=!0,Object.defineProperty(b,"ref",{get:F,configurable:!0})}}var ay=function(b,P,F,re,ve,be,de){var ue={$$typeof:r,type:b,key:P,ref:F,props:de,_owner:be};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function ly(b,P,F,re,ve){{var be,de={},ue=null,Me=null;F!==void 0&&(Bc(F),ue=""+F),ny(P)&&(Bc(P.key),ue=""+P.key),ry(P)&&(Me=P.ref,iy(P,ve));for(be in P)Vt.call(P,be)&&!ty.hasOwnProperty(be)&&(de[be]=P[be]);if(b&&b.defaultProps){var Oe=b.defaultProps;for(be in Oe)de[be]===void 0&&(de[be]=Oe[be])}if(ue||Me){var Ae=typeof b=="function"?b.displayName||b.name||"Unknown":b;ue&&sy(de,Ae),Me&&oy(de,Ae)}return ay(b,ue,Me,ve,re,qr.current,de)}}var ks=x.ReactCurrentOwner,Wc=x.ReactDebugCurrentFrame;function cr(b){if(b){var P=b._owner,F=ct(b.type,b._source,P?P.type:null);Wc.setExtraStackFrame(F)}else Wc.setExtraStackFrame(null)}var Ps;Ps=!1;function Rs(b){return typeof b=="object"&&b!==null&&b.$$typeof===r}function Vc(){{if(ks.current){var b=K(ks.current.type);if(b)return`
Check the render method of \``+b+"`."}return""}}function cy(b){return""}var qc={};function uy(b){{var P=Vc();if(!P){var F=typeof b=="string"?b:b.displayName||b.name;F&&(P=`
Check the top-level render call using <`+F+">.")}return P}}function Yc(b,P){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var F=uy(P);if(qc[F])return;qc[F]=!0;var re="";b&&b._owner&&b._owner!==ks.current&&(re=" It was passed a child from "+K(b._owner.type)+"."),cr(b),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,re),cr(null)}}function Gc(b,P){{if(typeof b!="object")return;if(_s(b))for(var F=0;F<b.length;F++){var re=b[F];Rs(re)&&Yc(re,P)}else if(Rs(b))b._store&&(b._store.validated=!0);else if(b){var ve=y(b);if(typeof ve=="function"&&ve!==b.entries)for(var be=ve.call(b),de;!(de=be.next()).done;)Rs(de.value)&&Yc(de.value,P)}}}function dy(b){{var P=b.type;if(P==null||typeof P=="string")return;var F;if(typeof P=="function")F=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===l||P.$$typeof===f))F=P.propTypes;else return;if(F){var re=K(P);J0(F,b.props,"prop",re,b)}else if(P.PropTypes!==void 0&&!Ps){Ps=!0;var ve=K(P);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fy(b){{for(var P=Object.keys(b.props),F=0;F<P.length;F++){var re=P[F];if(re!=="children"&&re!=="key"){cr(b),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",re),cr(null);break}}b.ref!==null&&(cr(b),E("Invalid attribute `ref` supplied to `React.Fragment`."),cr(null))}}var Xc={};function Kc(b,P,F,re,ve,be){{var de=le(b);if(!de){var ue="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Me=cy();Me?ue+=Me:ue+=Vc();var Oe;b===null?Oe="null":_s(b)?Oe="array":b!==void 0&&b.$$typeof===r?(Oe="<"+(K(b.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):Oe=typeof b,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Oe,ue)}var Ae=ly(b,P,F,ve,be);if(Ae==null)return Ae;if(de){var Xe=P.children;if(Xe!==void 0)if(re)if(_s(Xe)){for(var ur=0;ur<Xe.length;ur++)Gc(Xe[ur],b);Object.freeze&&Object.freeze(Xe)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Gc(Xe,b)}if(Vt.call(P,"key")){var qt=K(b),$e=Object.keys(P).filter(function(yy){return yy!=="key"}),Is=$e.length>0?"{key: someKey, "+$e.join(": ..., ")+": ...}":"{key: someKey}";if(!Xc[qt+Is]){var gy=$e.length>0?"{"+$e.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,Is,qt,gy,qt),Xc[qt+Is]=!0}}return b===n?fy(Ae):dy(Ae),Ae}}function hy(b,P,F){return Kc(b,P,F,!0)}function py(b,P,F){return Kc(b,P,F,!1)}var my=py,vy=hy;hr.Fragment=n,hr.jsx=my,hr.jsxs=vy}()),hr}process.env.NODE_ENV==="production"?Ln.exports=Zc():Ln.exports=Qc();var u=Ln.exports,I=(e=>(e.LOADING="LOADING",e.ERROR="ERROR",e.SUCCESS="SUCCESS",e.APPROVED="APPROVED",e.SUBMITTED="SUBMITTED",e.CONFIRMED="CONFIRMED",e.STARTED="STARTED",e.ACTIVE="ACTIVE",e.LOADED="LOADED",e.RUNNING="RUNNING",e.ADMITTED="ADMITTED",e.ADMIT="ADMIT",e.UPDATED="UPDATED",e.NO="NO",e.YES="YES",e.COURSE_ALLOCATION="COURSE_ALLOCATION",e.ELECTIVE="ELECTIVE",e.CORE="CORE",e.NOTIFICATION="NOTIFICATION",e.NOTIFICATION_ALERT="NOTIFICATION_ALERT",e.NOTIFICATION_ALERT_CLOSE="NOTIFICATION_ALERT_CLOSE",e.HEALTHY="HEALTHY",e.UNHEALTHY="UNHEALTHY",e.TEACHING="TEACHING",e.NONTEACHING="NONTEACHING",e.STUDENTS="STUDENTS",e.APPLICANTS="APPLICANTS",e.PROGRAMMES="PROGRAMMES",e.APPOINTMENT="APPOINTMENT",e.UNITS="UNITS",e.SUBGROUPS="SUBGROUPS",e.CURRICULUM="CURRICULUM",e.EXAMINATIONS="EXAMINATIONS",e.LEAVE="LEAVE",e.ORGANIZATIONAL_UNITS="ORGANIZATIONAL_UNITS",e.PROGRESS="PROGRESS",e.COMPLETED="COMPLETED",e.QUALIFIED="QUALIFIED",e.WAITING="WAITING",e.PENDING="PENDING",e.IN_PROGRESS="IN_PROGRESS",e.CIRRICULUM="CIRRICULUM",e.NOTICE="NOTICE",e.OPEN="OPEN",e.ACCESS_TOKEN="access_token",e.APPLICATION_ACCESS_TOKEN="a_token",e.APPLICATION="APPLICATION",e.APPLY_AS_AWAITING="APPLY_AS_AWAITING",e.UPLOAD_RESULTS="UPLOAD_RESULTS",e.TEXT="TEXT",e.TEXTAREA="TEXTAREA",e.EMAIL="EMAIL",e.PHONE="PHONE",e.NUMBER="NUMBER",e.PASSWORD="PASSWORD",e.DOCUMENT="DOCUMENT",e.EDIT="EDIT",e.DELETE="DELETE",e.ACADEMIC="ACADEMIC",e.NONACADEMIC="NONACADEMIC",e.INTERNATIONAL="INTERNATIONAL",e.VOUCHER_PARAM="VOUCHER_PARAM",e.VOUCHER="VOUCHER",e.EMAIL_ADDRESS="EMAIL_ADDRESS",e.MOBILE_MONEY="MOBILE_MONEY",e.LOCAL="LOCAL",e.FRONT="FRONT",e.ADMISSION="ADMISSION",e.MEDIA_CAPTURED="MEDIA_CAPTURED",e.FEMALE="FEMALE",e.MALE="MALE",e.DATASETTABLE_REQUEST="DATASETTABLE_REQUEST",e.SMALL="SMALL",e.NORMAL="NORMAL",e.LARGE="LARGE",e.AGGREGATE="AGGREGATE",e.AUTOMATIC="AUTOMATIC",e.MANUAL="MANUAL",e.INTERVIEW="INTERVIEW",e.ENTRANCE_EXAMS="ENTRANCE_EXAMS",e.REJECT="REJECT",e.SYSTEM_GET_STARTED="SYSTEM_GET_STARTED",e.COURSE_POLICY="COURSE_POLICY",e.REJECTED="REJECTED",e.COURSES="COURSES",e.GRADE_CUT_OF_POINT_STATE="GRADE_CUT_OF_POINT_STATE",e.AGGREGATE_CUT_OF_POINT_STATE="AGGREGATE_CUT_OF_POINT_STATE",e.GENDER_CUT_OF_POINT_STATE="GENDER_CUT_OF_POINT_STATE",e.MATURE_INVITATION="MATURE_INVITATION",e.RESULTS="RESULTS",e.FILE_UPLOAD="FILE_UPLOAD",e.COURSE_REMOVED="COURSE_REMOVED",e.COURSE_ADDED="COURSE_ADDED",e.RECOMMENDATION_LETTER="RECOMMENDATION_LETTER",e.ERROR_MESSAGE="Sorry for the inconvenience caused by the error. Please contact us if the issue persists. ",e.POSITIONS="POSITIONS",e.WASSCE_RESULTS="WASSCE_RESULTS",e.NEW_SITTING="NEW_SITTING",e.REFEREE="REFEREE",e.CERTIFICATE="CERTIFICATE",e.TRANSCRIPT="TRANSCRIPT",e.CERTIFICATES_AND_TRANSCRIPTS="CERTIFICATES_AND_TRANSCRIPTS",e.RECOMMENDATION_LETTERS="RECOMMENDATION_LETTERS",e.SECONDARY_SCHOOL_DOCUMENTS="SECONDARY_SCHOOL_DOCUMENTS",e.UPDATE_INFORMATION="UPDATE_INFORMATION",e.SUB_CAMPUSES="SUB_CAMPUSES",e.VOUCHER_FEES="VOUCHER_FEES",e.REPORT="REPORT",e.NEW_DOCUMENT="NEW_DOCUMENT",e.OTHERS="OTHERS",e.REGULAR="REGULAR",e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL",e.COLOR="COLOR",e.SEARCH="SEARCH",e.IMMEDIATELY="IMMEDIATELY",e.CUSTOM="CUSTOM",e.ACTING="ACTING",e.SUBSTANTIAL="SUBSTANTIAL",e.UPLOAD_MANAGER_REQUEST="UPLOAD_MANAGER_REQUEST",e))(I||{});class eu{constructor(){w(this,"generateKey",()=>Math.floor(Math.random()*100)+1)}getFileSize(r){let t=r.size;const n=["Bytes","KB","MB","GB"];let i=0;for(;t>900;)t/=1024,i++;return`${Math.round(t*100)/100} ${n[i]}`}getExtension(r){return r.split(".").pop()}getFileName(r){return r.split("/").pop()}isValidHttpUrl(r){let t;try{t=new URL(r)}catch{return!1}return/https?/.test(t.protocol)}makeUniqueid(r=10){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=n.length;for(let s=0;s<r;s++)t+=n.charAt(Math.floor(Math.random()*i));return t}nameToText(r){return r.split("_").join(" ")}getRandomColor(){const r="0123456789ABCDEF";let t="#";for(let n=0;n<6;n++)t+=r[Math.floor(Math.random()*16)];return t}concat(r,t){return`${r} ${t}`}isObject(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof File)}isEmptyOrNull(r,t=!1){if(r==null)return!0;if(Array.isArray(r))return r.length===0;if(typeof r=="object"&&!Array.isArray(r)&&!(r instanceof File)){const n=Object.keys(r);return n.length===0?!0:t?n.every(i=>{const s=r[i];return typeof s=="string"?s.trim()==="":typeof s=="boolean"?s===!1:typeof s=="number"?s===0:Array.isArray(s)?s.length===0:s instanceof File?s.size===0:typeof s=="object"&&s!==null?Object.keys(s).length===0:s==null}):!n.some(i=>{const s=r[i];return typeof s=="string"?s.trim()!=="":typeof s=="boolean"?s===!0:typeof s=="number"?s!==0:Array.isArray(s)?s.length!==0:s instanceof File?s.size!==0:typeof s=="object"&&s!==null?Object.keys(s).length!==0:s!=null})}return r instanceof File?r.size===0:r===""}toBoolean(r){return String(r).toLowerCase()==="true"}toStringDefault(r,t=""){return this.isEmptyOrNull(r)?`${t}`:`${r}`}toString(r){return`${r}`}isEmpty(r){return r===""||r===void 0||r===null}validatePasswords(r,t){return r!==""&&r===t}validatePassword(r){const t=/[A-Z]/.test(r),n=/[a-z]/.test(r),i=/\d/.test(r),s=/[~`!#@$%^&*+=\-[\]\\';,/{}|\\":<>?]/.test(r),o=r.length>=8;return{hasUppercase:t,hasLowercase:n,hasNumber:i,hasSpecialCharacter:s,has8Characters:o,allValidationsPassed:t&&n&&i&&s&&o}}isNotEmpty(r){return r!==""}columnHead(r){let t=r.split("_");return t.length>1&&t.slice(-1)[0].toLowerCase()?t.slice(0,-1).join(" ").toUpperCase():t.join(" ").toUpperCase()}convertUnderscoreToSpaceString(r){return r.replace(/_/g," ")}isDarkTheme(){return localStorage.getItem("color-theme")==="dark"||!("color-theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches}async sync_theme(r){let t;const n=localStorage.getItem("color-theme");n?n==="light"?(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark"),t=!0):(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light"),t=!1):document.documentElement.classList.contains("dark")?(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light"),t=!1):(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark"),t=!0),r&&r(t)}async imageSize(r){return new Promise((t,n)=>{try{const i=new FileReader;i.onload=()=>{const s=new Image;s.onload=()=>{t({width:s.width,height:s.height})},s.src=i.result},i.onerror=s=>{n(s)},i.readAsDataURL(r)}catch(i){n(i)}})}capitalizeEachWord(r){return r.toLowerCase().split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}formatDateString(r){const t=r.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(!t)throw new Error("Invalid date format. Please provide date in dd/mm/yyyy format.");const[,n,i,s]=t;return`${s}-${i}-${n}`}formatDate(r){const t=new Date(r),n=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");return`${n}-${i}-${s}`}validateEmail(r){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)}convertNumber(r){return Math.abs(r)>=1e6?(r/1e6).toString().substring(0,4)+"M":Math.abs(r)>=1e3?(r/1e3).toString().substring(0,4)+"k":r.toString()}daysLeft(r){const t=new Date(r),n=new Date,i=t.getTime()-n.getTime();return Math.ceil(i/(1e3*3600*24))}formatDateToCustomFormat(r){const n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][r.getDay()],i=r.getDate(),o=["January","February","March","April","May","June","July","August","September","October","November","December"][r.getMonth()],a=r.getFullYear();function l(d){if(d>=11&&d<=13)return"th";switch(d%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}const c=l(i);return`${n}, ${i}${c} ${o}, ${a}`}getTimeAgoAndCustomDate(r){const t=new Date,n=new Date(r),i=t.getTime()-n.getTime();if(t<n)return"Future date";const s=Math.floor(i/1e3);return s<60?`${s} seconds ago`:s<3600?`${Math.floor(s/60)} minutes ago`:s<86400?`${Math.floor(s/3600)} hours ago`:s<2592e3?`${Math.floor(s/86400)} days ago`:n.toLocaleString("en-US",{day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"})}roundTo2dp(r){const t=parseFloat(r);return isNaN(t)?r:(Math.round(t*100)/100).toFixed(2)}}const A=new eu;/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var pr=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",tu=function(){for(var e=["Edge","Trident","Firefox"],r=0;r<e.length;r+=1)if(pr&&navigator.userAgent.indexOf(e[r])>=0)return 1;return 0}();function ru(e){var r=!1;return function(){r||(r=!0,window.Promise.resolve().then(function(){r=!1,e()}))}}function nu(e){var r=!1;return function(){r||(r=!0,setTimeout(function(){r=!1,e()},tu))}}var iu=pr&&window.Promise,su=iu?ru:nu;function Ds(e){var r={};return e&&r.toString.call(e)==="[object Function]"}function jt(e,r){if(e.nodeType!==1)return[];var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e,null);return r?n[r]:n}function Dn(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function mr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var r=jt(e),t=r.overflow,n=r.overflowX,i=r.overflowY;return/(auto|scroll|overlay)/.test(t+i+n)?e:mr(Dn(e))}function $s(e){return e&&e.referenceNode?e.referenceNode:e}var Fs=pr&&!!(window.MSInputMethodContext&&document.documentMode),Us=pr&&/MSIE 10/.test(navigator.userAgent);function Yt(e){return e===11?Fs:e===10?Us:Fs||Us}function Gt(e){if(!e)return document.documentElement;for(var r=Yt(10)?document.body:null,t=e.offsetParent||null;t===r&&e.nextElementSibling;)t=(e=e.nextElementSibling).offsetParent;var n=t&&t.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(t.nodeName)!==-1&&jt(t,"position")==="static"?Gt(t):t}function ou(e){var r=e.nodeName;return r==="BODY"?!1:r==="HTML"||Gt(e.firstElementChild)===e}function $n(e){return e.parentNode!==null?$n(e.parentNode):e}function Yr(e,r){if(!e||!e.nodeType||!r||!r.nodeType)return document.documentElement;var t=e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING,n=t?e:r,i=t?r:e,s=document.createRange();s.setStart(n,0),s.setEnd(i,0);var o=s.commonAncestorContainer;if(e!==o&&r!==o||n.contains(i))return ou(o)?o:Gt(o);var a=$n(e);return a.host?Yr(a.host,r):Yr(e,$n(r).host)}function Xt(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",t=r==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||i;return s[t]}return e[t]}function au(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Xt(r,"top"),i=Xt(r,"left"),s=t?-1:1;return e.top+=n*s,e.bottom+=n*s,e.left+=i*s,e.right+=i*s,e}function Bs(e,r){var t=r==="x"?"Left":"Top",n=t==="Left"?"Right":"Bottom";return parseFloat(e["border"+t+"Width"])+parseFloat(e["border"+n+"Width"])}function zs(e,r,t,n){return Math.max(r["offset"+e],r["scroll"+e],t["client"+e],t["offset"+e],t["scroll"+e],Yt(10)?parseInt(t["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Hs(e){var r=e.body,t=e.documentElement,n=Yt(10)&&getComputedStyle(t);return{height:zs("Height",r,t,n),width:zs("Width",r,t,n)}}var lu=function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")},cu=function(){function e(r,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),Kt=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},qe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function wt(e){return qe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Fn(e){var r={};try{if(Yt(10)){r=e.getBoundingClientRect();var t=Xt(e,"top"),n=Xt(e,"left");r.top+=t,r.left+=n,r.bottom+=t,r.right+=n}else r=e.getBoundingClientRect()}catch{}var i={left:r.left,top:r.top,width:r.right-r.left,height:r.bottom-r.top},s=e.nodeName==="HTML"?Hs(e.ownerDocument):{},o=s.width||e.clientWidth||i.width,a=s.height||e.clientHeight||i.height,l=e.offsetWidth-o,c=e.offsetHeight-a;if(l||c){var d=jt(e);l-=Bs(d,"x"),c-=Bs(d,"y"),i.width-=l,i.height-=c}return wt(i)}function Un(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Yt(10),i=r.nodeName==="HTML",s=Fn(e),o=Fn(r),a=mr(e),l=jt(r),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);t&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var f=wt({top:s.top-o.top-c,left:s.left-o.left-d,width:s.width,height:s.height});if(f.marginTop=0,f.marginLeft=0,!n&&i){var h=parseFloat(l.marginTop),v=parseFloat(l.marginLeft);f.top-=c-h,f.bottom-=c-h,f.left-=d-v,f.right-=d-v,f.marginTop=h,f.marginLeft=v}return(n&&!t?r.contains(a):r===a&&a.nodeName!=="BODY")&&(f=au(f,r)),f}function uu(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.ownerDocument.documentElement,n=Un(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),s=Math.max(t.clientHeight,window.innerHeight||0),o=r?0:Xt(t),a=r?0:Xt(t,"left"),l={top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:i,height:s};return wt(l)}function Ws(e){var r=e.nodeName;if(r==="BODY"||r==="HTML")return!1;if(jt(e,"position")==="fixed")return!0;var t=Dn(e);return t?Ws(t):!1}function Vs(e){if(!e||!e.parentElement||Yt())return document.documentElement;for(var r=e.parentElement;r&&jt(r,"transform")==="none";)r=r.parentElement;return r||document.documentElement}function Bn(e,r,t,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},o=i?Vs(e):Yr(e,$s(r));if(n==="viewport")s=uu(o,i);else{var a=void 0;n==="scrollParent"?(a=mr(Dn(r)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):n==="window"?a=e.ownerDocument.documentElement:a=n;var l=Un(a,o,i);if(a.nodeName==="HTML"&&!Ws(o)){var c=Hs(e.ownerDocument),d=c.height,f=c.width;s.top+=l.top-l.marginTop,s.bottom=d+l.top,s.left+=l.left-l.marginLeft,s.right=f+l.left}else s=l}t=t||0;var h=typeof t=="number";return s.left+=h?t:t.left||0,s.top+=h?t:t.top||0,s.right-=h?t:t.right||0,s.bottom-=h?t:t.bottom||0,s}function du(e){var r=e.width,t=e.height;return r*t}function qs(e,r,t,n,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=Bn(t,n,s,i),a={top:{width:o.width,height:r.top-o.top},right:{width:o.right-r.right,height:o.height},bottom:{width:o.width,height:o.bottom-r.bottom},left:{width:r.left-o.left,height:o.height}},l=Object.keys(a).map(function(h){return qe({key:h},a[h],{area:du(a[h])})}).sort(function(h,v){return v.area-h.area}),c=l.filter(function(h){var v=h.width,m=h.height;return v>=t.clientWidth&&m>=t.clientHeight}),d=c.length>0?c[0].key:l[0].key,f=e.split("-")[1];return d+(f?"-"+f:"")}function Ys(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?Vs(r):Yr(r,$s(t));return Un(t,i,n)}function Gs(e){var r=e.ownerDocument.defaultView,t=r.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0),s={width:e.offsetWidth+i,height:e.offsetHeight+n};return s}function Gr(e){var r={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(t){return r[t]})}function Xs(e,r,t){t=t.split("-")[0];var n=Gs(e),i={width:n.width,height:n.height},s=["right","left"].indexOf(t)!==-1,o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return i[o]=r[o]+r[l]/2-n[l]/2,t===a?i[a]=r[a]-n[c]:i[a]=r[Gr(a)],i}function vr(e,r){return Array.prototype.find?e.find(r):e.filter(r)[0]}function fu(e,r,t){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[r]===t});var n=vr(e,function(i){return i[r]===t});return e.indexOf(n)}function Ks(e,r,t){var n=t===void 0?e:e.slice(0,fu(e,"name",t));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=i.function||i.fn;i.enabled&&Ds(s)&&(r.offsets.popper=wt(r.offsets.popper),r.offsets.reference=wt(r.offsets.reference),r=s(r,i))}),r}function hu(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ys(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=qs(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Xs(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ks(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Js(e,r){return e.some(function(t){var n=t.name,i=t.enabled;return i&&n===r})}function zn(e){for(var r=[!1,"ms","Webkit","Moz","O"],t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<r.length;n++){var i=r[n],s=i?""+i+t:e;if(typeof document.body.style[s]<"u")return s}return null}function pu(){return this.state.isDestroyed=!0,Js(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[zn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Zs(e){var r=e.ownerDocument;return r?r.defaultView:window}function Qs(e,r,t,n){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(r,t,{passive:!0}),i||Qs(mr(s.parentNode),r,t,n),n.push(s)}function mu(e,r,t,n){t.updateBound=n,Zs(e).addEventListener("resize",t.updateBound,{passive:!0});var i=mr(e);return Qs(i,"scroll",t.updateBound,t.scrollParents),t.scrollElement=i,t.eventsEnabled=!0,t}function vu(){this.state.eventsEnabled||(this.state=mu(this.reference,this.options,this.state,this.scheduleUpdate))}function gu(e,r){return Zs(e).removeEventListener("resize",r.updateBound),r.scrollParents.forEach(function(t){t.removeEventListener("scroll",r.updateBound)}),r.updateBound=null,r.scrollParents=[],r.scrollElement=null,r.eventsEnabled=!1,r}function yu(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=gu(this.reference,this.state))}function Hn(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Wn(e,r){Object.keys(r).forEach(function(t){var n="";["width","height","top","right","bottom","left"].indexOf(t)!==-1&&Hn(r[t])&&(n="px"),e.style[t]=r[t]+n})}function bu(e,r){Object.keys(r).forEach(function(t){var n=r[t];n!==!1?e.setAttribute(t,r[t]):e.removeAttribute(t)})}function xu(e){return Wn(e.instance.popper,e.styles),bu(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Wn(e.arrowElement,e.arrowStyles),e}function wu(e,r,t,n,i){var s=Ys(i,r,e,t.positionFixed),o=qs(t.placement,s,r,e,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return r.setAttribute("x-placement",o),Wn(r,{position:t.positionFixed?"fixed":"absolute"}),t}function Eu(e,r){var t=e.offsets,n=t.popper,i=t.reference,s=Math.round,o=Math.floor,a=function(x){return x},l=s(i.width),c=s(n.width),d=["left","right"].indexOf(e.placement)!==-1,f=e.placement.indexOf("-")!==-1,h=l%2===c%2,v=l%2===1&&c%2===1,m=r?d||f||h?s:o:a,g=r?s:a;return{left:m(v&&!f&&r?n.left-1:n.left),top:g(n.top),bottom:g(n.bottom),right:m(n.right)}}var Cu=pr&&/Firefox/i.test(navigator.userAgent);function Su(e,r){var t=r.x,n=r.y,i=e.offsets.popper,s=vr(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=s!==void 0?s:r.gpuAcceleration,a=Gt(e.instance.popper),l=Fn(a),c={position:i.position},d=Eu(e,window.devicePixelRatio<2||!Cu),f=t==="bottom"?"top":"bottom",h=n==="right"?"left":"right",v=zn("transform"),m=void 0,g=void 0;if(f==="bottom"?a.nodeName==="HTML"?g=-a.clientHeight+d.bottom:g=-l.height+d.bottom:g=d.top,h==="right"?a.nodeName==="HTML"?m=-a.clientWidth+d.right:m=-l.width+d.right:m=d.left,o&&v)c[v]="translate3d("+m+"px, "+g+"px, 0)",c[f]=0,c[h]=0,c.willChange="transform";else{var y=f==="bottom"?-1:1,x=h==="right"?-1:1;c[f]=g*y,c[h]=m*x,c.willChange=f+", "+h}var E={"x-placement":e.placement};return e.attributes=qe({},E,e.attributes),e.styles=qe({},c,e.styles),e.arrowStyles=qe({},e.offsets.arrow,e.arrowStyles),e}function eo(e,r,t){var n=vr(e,function(a){var l=a.name;return l===r}),i=!!n&&e.some(function(a){return a.name===t&&a.enabled&&a.order<n.order});if(!i){var s="`"+r+"`",o="`"+t+"`";console.warn(o+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function Nu(e,r){var t;if(!eo(e.instance.modifiers,"arrow","keepTogether"))return e;var n=r.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],s=e.offsets,o=s.popper,a=s.reference,l=["left","right"].indexOf(i)!==-1,c=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),h=l?"left":"top",v=l?"bottom":"right",m=Gs(n)[c];a[v]-m<o[f]&&(e.offsets.popper[f]-=o[f]-(a[v]-m)),a[f]+m>o[v]&&(e.offsets.popper[f]+=a[f]+m-o[v]),e.offsets.popper=wt(e.offsets.popper);var g=a[f]+a[c]/2-m/2,y=jt(e.instance.popper),x=parseFloat(y["margin"+d]),E=parseFloat(y["border"+d+"Width"]),C=g-e.offsets.popper[f]-x-E;return C=Math.max(Math.min(o[c]-m,C),0),e.arrowElement=n,e.offsets.arrow=(t={},Kt(t,f,Math.round(C)),Kt(t,h,""),t),e}function Ou(e){return e==="end"?"start":e==="start"?"end":e}var to=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Vn=to.slice(3);function ro(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=Vn.indexOf(e),n=Vn.slice(t+1).concat(Vn.slice(0,t));return r?n.reverse():n}var qn={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Tu(e,r){if(Js(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var t=Bn(e.instance.popper,e.instance.reference,r.padding,r.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=Gr(n),s=e.placement.split("-")[1]||"",o=[];switch(r.behavior){case qn.FLIP:o=[n,i];break;case qn.CLOCKWISE:o=ro(n);break;case qn.COUNTERCLOCKWISE:o=ro(n,!0);break;default:o=r.behavior}return o.forEach(function(a,l){if(n!==a||o.length===l+1)return e;n=e.placement.split("-")[0],i=Gr(n);var c=e.offsets.popper,d=e.offsets.reference,f=Math.floor,h=n==="left"&&f(c.right)>f(d.left)||n==="right"&&f(c.left)<f(d.right)||n==="top"&&f(c.bottom)>f(d.top)||n==="bottom"&&f(c.top)<f(d.bottom),v=f(c.left)<f(t.left),m=f(c.right)>f(t.right),g=f(c.top)<f(t.top),y=f(c.bottom)>f(t.bottom),x=n==="left"&&v||n==="right"&&m||n==="top"&&g||n==="bottom"&&y,E=["top","bottom"].indexOf(n)!==-1,C=!!r.flipVariations&&(E&&s==="start"&&v||E&&s==="end"&&m||!E&&s==="start"&&g||!E&&s==="end"&&y),j=!!r.flipVariationsByContent&&(E&&s==="start"&&m||E&&s==="end"&&v||!E&&s==="start"&&y||!E&&s==="end"&&g),N=C||j;(h||x||N)&&(e.flipped=!0,(h||x)&&(n=o[l+1]),N&&(s=Ou(s)),e.placement=n+(s?"-"+s:""),e.offsets.popper=qe({},e.offsets.popper,Xs(e.instance.popper,e.offsets.reference,e.placement)),e=Ks(e.instance.modifiers,e,"flip"))}),e}function Au(e){var r=e.offsets,t=r.popper,n=r.reference,i=e.placement.split("-")[0],s=Math.floor,o=["top","bottom"].indexOf(i)!==-1,a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return t[a]<s(n[l])&&(e.offsets.popper[l]=s(n[l])-t[c]),t[l]>s(n[a])&&(e.offsets.popper[l]=s(n[a])),e}function _u(e,r,t,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],o=i[2];if(!s)return e;if(o.indexOf("%")===0){var a=void 0;switch(o){case"%p":a=t;break;case"%":case"%r":default:a=n}var l=wt(a);return l[r]/100*s}else if(o==="vh"||o==="vw"){var c=void 0;return o==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*s}else return s}function ju(e,r,t,n){var i=[0,0],s=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),a=o.indexOf(vr(o,function(d){return d.search(/,|\s/)!==-1}));o[a]&&o[a].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=a!==-1?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map(function(d,f){var h=(f===1?!s:s)?"height":"width",v=!1;return d.reduce(function(m,g){return m[m.length-1]===""&&["+","-"].indexOf(g)!==-1?(m[m.length-1]=g,v=!0,m):v?(m[m.length-1]+=g,v=!1,m):m.concat(g)},[]).map(function(m){return _u(m,h,r,t)})}),c.forEach(function(d,f){d.forEach(function(h,v){Hn(h)&&(i[f]+=h*(d[v-1]==="-"?-1:1))})}),i}function ku(e,r){var t=r.offset,n=e.placement,i=e.offsets,s=i.popper,o=i.reference,a=n.split("-")[0],l=void 0;return Hn(+t)?l=[+t,0]:l=ju(t,s,o,a),a==="left"?(s.top+=l[0],s.left-=l[1]):a==="right"?(s.top+=l[0],s.left+=l[1]):a==="top"?(s.left+=l[0],s.top-=l[1]):a==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function Pu(e,r){var t=r.boundariesElement||Gt(e.instance.popper);e.instance.reference===t&&(t=Gt(t));var n=zn("transform"),i=e.instance.popper.style,s=i.top,o=i.left,a=i[n];i.top="",i.left="",i[n]="";var l=Bn(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed);i.top=s,i.left=o,i[n]=a,r.boundaries=l;var c=r.priority,d=e.offsets.popper,f={primary:function(v){var m=d[v];return d[v]<l[v]&&!r.escapeWithReference&&(m=Math.max(d[v],l[v])),Kt({},v,m)},secondary:function(v){var m=v==="right"?"left":"top",g=d[m];return d[v]>l[v]&&!r.escapeWithReference&&(g=Math.min(d[m],l[v]-(v==="right"?d.width:d.height))),Kt({},m,g)}};return c.forEach(function(h){var v=["left","top"].indexOf(h)!==-1?"primary":"secondary";d=qe({},d,f[v](h))}),e.offsets.popper=d,e}function Ru(e){var r=e.placement,t=r.split("-")[0],n=r.split("-")[1];if(n){var i=e.offsets,s=i.reference,o=i.popper,a=["bottom","top"].indexOf(t)!==-1,l=a?"left":"top",c=a?"width":"height",d={start:Kt({},l,s[l]),end:Kt({},l,s[l]+s[c]-o[c])};e.offsets.popper=qe({},o,d[n])}return e}function Iu(e){if(!eo(e.instance.modifiers,"hide","preventOverflow"))return e;var r=e.offsets.reference,t=vr(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(r.bottom<t.top||r.left>t.right||r.top>t.bottom||r.right<t.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Mu(e){var r=e.placement,t=r.split("-")[0],n=e.offsets,i=n.popper,s=n.reference,o=["left","right"].indexOf(t)!==-1,a=["top","left"].indexOf(t)===-1;return i[o?"left":"top"]=s[t]-(a?i[o?"width":"height"]:0),e.placement=Gr(r),e.offsets.popper=wt(i),e}var Lu={shift:{order:100,enabled:!0,fn:Ru},offset:{order:200,enabled:!0,fn:ku,offset:0},preventOverflow:{order:300,enabled:!0,fn:Pu,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Au},arrow:{order:500,enabled:!0,fn:Nu,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Tu,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Mu},hide:{order:800,enabled:!0,fn:Iu},computeStyle:{order:850,enabled:!0,fn:Su,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:xu,onLoad:wu,gpuAcceleration:void 0}},Du={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Lu},Xr=function(){function e(r,t){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};lu(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=su(this.update.bind(this)),this.options=qe({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=r&&r.jquery?r[0]:r,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(qe({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=qe({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return qe({name:o},n.options.modifiers[o])}).sort(function(o,a){return o.order-a.order}),this.modifiers.forEach(function(o){o.enabled&&Ds(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return cu(e,[{key:"update",value:function(){return hu.call(this)}},{key:"destroy",value:function(){return pu.call(this)}},{key:"enableEventListeners",value:function(){return vu.call(this)}},{key:"disableEventListeners",value:function(){return yu.call(this)}}]),e}();Xr.Utils=(typeof window<"u"?window:global).PopperUtils,Xr.placements=to,Xr.Defaults=Du;function no(e,r){return function(){return e.apply(r,arguments)}}const{toString:$u}=Object.prototype,{getPrototypeOf:Yn}=Object,Kr=(e=>r=>{const t=$u.call(r);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),r=>Kr(r)===e),Jr=e=>r=>typeof r===e,{isArray:Jt}=Array,gr=Jr("undefined");function Fu(e){return e!==null&&!gr(e)&&e.constructor!==null&&!gr(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const io=Je("ArrayBuffer");function Uu(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&io(e.buffer),r}const Bu=Jr("string"),Fe=Jr("function"),so=Jr("number"),Zr=e=>e!==null&&typeof e=="object",zu=e=>e===!0||e===!1,Qr=e=>{if(Kr(e)!=="object")return!1;const r=Yn(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hu=Je("Date"),Wu=Je("File"),Vu=Je("Blob"),qu=Je("FileList"),Yu=e=>Zr(e)&&Fe(e.pipe),Gu=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((r=Kr(e))==="formdata"||r==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},Xu=Je("URLSearchParams"),[Ku,Ju,Zu,Qu]=["ReadableStream","Request","Response","Headers"].map(Je),ed=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yr(e,r,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Jt(e))for(n=0,i=e.length;n<i;n++)r.call(null,e[n],n,e);else{const s=t?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],r.call(null,e[a],a,e)}}function oo(e,r){r=r.toLowerCase();const t=Object.keys(e);let n=t.length,i;for(;n-- >0;)if(i=t[n],r===i.toLowerCase())return i;return null}const kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ao=e=>!gr(e)&&e!==kt;function Gn(){const{caseless:e}=ao(this)&&this||{},r={},t=(n,i)=>{const s=e&&oo(r,i)||i;Qr(r[s])&&Qr(n)?r[s]=Gn(r[s],n):Qr(n)?r[s]=Gn({},n):Jt(n)?r[s]=n.slice():r[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&yr(arguments[n],t);return r}const td=(e,r,t,{allOwnKeys:n}={})=>(yr(r,(i,s)=>{t&&Fe(i)?e[s]=no(i,t):e[s]=i},{allOwnKeys:n}),e),rd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nd=(e,r,t,n)=>{e.prototype=Object.create(r.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),t&&Object.assign(e.prototype,t)},id=(e,r,t,n)=>{let i,s,o;const a={};if(r=r||{},e==null)return r;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,r))&&!a[o]&&(r[o]=e[o],a[o]=!0);e=t!==!1&&Yn(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r},sd=(e,r,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=r.length;const n=e.indexOf(r,t);return n!==-1&&n===t},od=e=>{if(!e)return null;if(Jt(e))return e;let r=e.length;if(!so(r))return null;const t=new Array(r);for(;r-- >0;)t[r]=e[r];return t},ad=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&Yn(Uint8Array)),ld=(e,r)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const s=i.value;r.call(e,s[0],s[1])}},cd=(e,r)=>{let t;const n=[];for(;(t=e.exec(r))!==null;)n.push(t);return n},ud=Je("HTMLFormElement"),dd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),lo=(({hasOwnProperty:e})=>(r,t)=>e.call(r,t))(Object.prototype),fd=Je("RegExp"),co=(e,r)=>{const t=Object.getOwnPropertyDescriptors(e),n={};yr(t,(i,s)=>{let o;(o=r(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},hd=e=>{co(e,(r,t)=>{if(Fe(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Fe(n)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},pd=(e,r)=>{const t={},n=i=>{i.forEach(s=>{t[s]=!0})};return Jt(e)?n(e):n(String(e).split(r)),t},md=()=>{},vd=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,Xn="abcdefghijklmnopqrstuvwxyz",uo="0123456789",fo={DIGIT:uo,ALPHA:Xn,ALPHA_DIGIT:Xn+Xn.toUpperCase()+uo},gd=(e=16,r=fo.ALPHA_DIGIT)=>{let t="";const{length:n}=r;for(;e--;)t+=r[Math.