antd-mobile
Version:
<div align="center">
5 lines • 462 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),xr=require("react-dom");function Xu(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const I=Xu(o),p0=Xu(xr),kr=!!(typeof window<"u"&&typeof document<"u"&&window.document&&window.document.createElement);kr&&document.addEventListener("touchstart",()=>{},!0);var va=function(){return va=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},va.apply(this,arguments)};function en(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function _e(t,e,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function l(f){try{u(r.next(f))}catch(d){s(d)}}function c(f){try{u(r.throw(f))}catch(d){s(d)}}function u(f){f.done?a(f.value):i(f.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function g0(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(f){u=[6,f],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function y0(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function _t(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function Bs(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||Array.prototype.slice.call(e))}const ze="${label}不是一个有效的${type}",b0={locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:ze,method:ze,array:ze,object:ze,number:ze,date:ze,boolean:ze,integer:ze,float:ze,regexp:ze,email:ze,url:ze,hex:ze},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}},E0=b0,Qu={current:{locale:E0}};function w0(t){Qu.current=t}function Ci(){return Qu.current}const Ju=o.createContext(null),C0=t=>{const{children:e}=t,n=en(t,["children"]),r=ie();return o.createElement(Ju.Provider,{value:Object.assign(Object.assign({},r),n)},e)};function ie(){var t;return(t=o.useContext(Ju))!==null&&t!==void 0?t:Ci()}function de(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ef={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var s=typeof a;if(s==="string"||s==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(s==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var c in a)e.call(a,c)&&a[c]&&r.push(c)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ef);var x0=ef.exports;const V=gt(x0);function B(t,e){const n=Object.assign({},e.props);t.className&&(n.className=V(e.props.className,t.className)),t.style&&(n.style=Object.assign(Object.assign({},n.style),t.style)),t.tabIndex!==void 0&&(n.tabIndex=t.tabIndex);for(const r in t)t.hasOwnProperty(r)&&(r.startsWith("data-")||r.startsWith("aria-"))&&(n[r]=t[r]);return o.cloneElement(e,n)}function z(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function ln(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}var tf=function(t){return function(e,n){var r=o.useRef(!1);t(function(){return function(){r.current=!1}},[]),t(function(){if(!r.current)r.current=!0;else return e()},n)}},$r=function(t){return typeof t=="function"},k0=function(t){return typeof t=="number"},$0=!1;const xi=$0;function jt(t){xi&&($r(t)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof t)));var e=o.useRef(t);e.current=o.useMemo(function(){return t},[t]);var n=o.useRef();return n.current||(n.current=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.current.apply(this,r)}),n.current}const Ws=tf(o.useEffect);function Jl(t,e){if(t===e)return!0;for(var n=0;n<t.length;n++)if(!Object.is(t[n],e[n]))return!1;return!0}function ja(t){var e=o.useRef(t);return e.current=t,e}var _0=function(t){xi&&($r(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=ja(t);o.useEffect(function(){return function(){e.current()}},[])};const ki=_0;function S0(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Zs=S0,R0=typeof it=="object"&&it&&it.Object===Object&&it,O0=R0,F0=O0,N0=typeof self=="object"&&self&&self.Object===Object&&self,P0=F0||N0||Function("return this")(),nf=P0,M0=nf,A0=function(){return M0.Date.now()},I0=A0,T0=/\s/;function L0(t){for(var e=t.length;e--&&T0.test(t.charAt(e)););return e}var D0=L0,V0=D0,j0=/^\s+/;function B0(t){return t&&t.slice(0,V0(t)+1).replace(j0,"")}var W0=B0,Z0=nf,H0=Z0.Symbol,rf=H0,ec=rf,af=Object.prototype,z0=af.hasOwnProperty,q0=af.toString,Ar=ec?ec.toStringTag:void 0;function U0(t){var e=z0.call(t,Ar),n=t[Ar];try{t[Ar]=void 0;var r=!0}catch{}var i=q0.call(t);return r&&(e?t[Ar]=n:delete t[Ar]),i}var K0=U0,Y0=Object.prototype,G0=Y0.toString;function X0(t){return G0.call(t)}var Q0=X0,tc=rf,J0=K0,em=Q0,tm="[object Null]",nm="[object Undefined]",nc=tc?tc.toStringTag:void 0;function rm(t){return t==null?t===void 0?nm:tm:nc&&nc in Object(t)?J0(t):em(t)}var im=rm;function am(t){return t!=null&&typeof t=="object"}var om=am,sm=im,lm=om,cm="[object Symbol]";function um(t){return typeof t=="symbol"||lm(t)&&sm(t)==cm}var fm=um,dm=W0,rc=Zs,mm=fm,ic=NaN,hm=/^[-+]0x[0-9a-f]+$/i,vm=/^0b[01]+$/i,pm=/^0o[0-7]+$/i,gm=parseInt;function ym(t){if(typeof t=="number")return t;if(mm(t))return ic;if(rc(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=rc(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=dm(t);var n=vm.test(t);return n||pm.test(t)?gm(t.slice(2),n?2:8):hm.test(t)?ic:+t}var bm=ym,Em=Zs,wo=I0,ac=bm,wm="Expected a function",Cm=Math.max,xm=Math.min;function km(t,e,n){var r,i,a,s,l,c,u=0,f=!1,d=!1,m=!0;if(typeof t!="function")throw new TypeError(wm);e=ac(e)||0,Em(n)&&(f=!!n.leading,d="maxWait"in n,a=d?Cm(ac(n.maxWait)||0,e):a,m="trailing"in n?!!n.trailing:m);function p(C){var k=r,R=i;return r=i=void 0,u=C,s=t.apply(R,k),s}function b(C){return u=C,l=setTimeout(h,e),f?p(C):s}function y(C){var k=C-c,R=C-u,P=e-k;return d?xm(P,a-R):P}function g(C){var k=C-c,R=C-u;return c===void 0||k>=e||k<0||d&&R>=a}function h(){var C=wo();if(g(C))return x(C);l=setTimeout(h,y(C))}function x(C){return l=void 0,m&&r?p(C):(r=i=void 0,s)}function v(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function E(){return l===void 0?s:x(wo())}function w(){var C=wo(),k=g(C);if(r=arguments,i=this,c=C,k){if(l===void 0)return b(c);if(d)return clearTimeout(l),l=setTimeout(h,e),p(c)}return l===void 0&&(l=setTimeout(h,e)),s}return w.cancel=v,w.flush=E,w}var of=km;const $m=gt(of);var _m=!!(typeof window<"u"&&window.document&&window.document.createElement);const Hs=_m;var Sm=of,Rm=Zs,Om="Expected a function";function Fm(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Om);return Rm(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Sm(t,e,{leading:r,maxWait:e,trailing:i})}var Nm=Fm;const Pm=gt(Nm);var Mm=function(t){xi&&($r(t)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".'))),o.useEffect(function(){t==null||t()},[])};const Am=Mm;var Im=function(){var t=_t(o.useState({}),2),e=t[1];return o.useCallback(function(){return e({})},[])};const sf=Im;function tn(t,e){if(Hs){if(!t)return e;var n;return $r(t)?n=t():"current"in t?n=t.current:n=t,n}}var Tm=function(t){return t.every(function(e){var n=tn(e);if(!n)return!1;if(n.getRootNode()instanceof ShadowRoot)return!0})},Lm=function(t){return t?t.getRootNode():document},Dm=function(t){if(!t||!document.getRootNode)return document;var e=Array.isArray(t)?t:[t];return Tm(e)?Lm(tn(e[0])):document};const Vm=Dm;var jm=function(t){var e=function(n,r,i){var a=o.useRef(!1),s=o.useRef([]),l=o.useRef([]),c=o.useRef();t(function(){var u,f=Array.isArray(i)?i:[i],d=f.map(function(m){return tn(m)});if(!a.current){a.current=!0,s.current=d,l.current=r,c.current=n();return}(d.length!==s.current.length||!Jl(d,s.current)||!Jl(r,l.current))&&((u=c.current)===null||u===void 0||u.call(c),s.current=d,l.current=r,c.current=n())}),ki(function(){var u;(u=c.current)===null||u===void 0||u.call(c),a.current=!1})};return e};const lf=jm;var Bm=lf(o.useEffect);const zs=Bm;function cf(t,e,n){n===void 0&&(n="click");var r=ja(t);zs(function(){var i=function(l){var c=Array.isArray(e)?e:[e];c.some(function(u){var f=tn(u);return!f||f.contains(l.target)})||r.current(l)},a=Vm(e),s=Array.isArray(n)?n:[n];return s.forEach(function(l){return a.addEventListener(l,i)}),function(){s.forEach(function(l){return a.removeEventListener(l,i)})}},Array.isArray(n)?n:[n],e)}var uf={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(it,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",l="minute",c="hour",u="day",f="week",d="month",m="quarter",p="year",b="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var $=["th","st","nd","rd"],N=S%100;return"["+S+($[(N-20)%10]||$[N]||$[0])+"]"}},v=function(S,$,N){var O=String(S);return!O||O.length>=$?S:""+Array($+1-O.length).join(N)+S},E={s:v,z:function(S){var $=-S.utcOffset(),N=Math.abs($),O=Math.floor(N/60),F=N%60;return($<=0?"+":"-")+v(O,2,"0")+":"+v(F,2,"0")},m:function S($,N){if($.date()<N.date())return-S(N,$);var O=12*(N.year()-$.year())+(N.month()-$.month()),F=$.clone().add(O,d),T=N-F<0,A=$.clone().add(O+(T?-1:1),d);return+(-(O+(N-F)/(T?F-A:A-F))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:p,w:f,d:u,D:b,h:c,m:l,s,ms:a,Q:m}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},w="en",C={};C[w]=x;var k=function(S){return S instanceof L},R=function S($,N,O){var F;if(!$)return w;if(typeof $=="string"){var T=$.toLowerCase();C[T]&&(F=T),N&&(C[T]=N,F=T);var A=$.split("-");if(!F&&A.length>1)return S(A[0])}else{var D=$.name;C[D]=$,F=D}return!O&&F&&(w=F),F||!O&&w},P=function(S,$){if(k(S))return S.clone();var N=typeof $=="object"?$:{};return N.date=S,N.args=arguments,new L(N)},_=E;_.l=R,_.i=k,_.w=function(S,$){return P(S,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var L=function(){function S(N){this.$L=R(N.locale,null,!0),this.parse(N)}var $=S.prototype;return $.parse=function(N){this.$d=function(O){var F=O.date,T=O.utc;if(F===null)return new Date(NaN);if(_.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var A=F.match(g);if(A){var D=A[2]-1||0,j=(A[7]||"0").substring(0,3);return T?new Date(Date.UTC(A[1],D,A[3]||1,A[4]||0,A[5]||0,A[6]||0,j)):new Date(A[1],D,A[3]||1,A[4]||0,A[5]||0,A[6]||0,j)}}return new Date(F)}(N),this.$x=N.x||{},this.init()},$.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},$.$utils=function(){return _},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(N,O){var F=P(N);return this.startOf(O)<=F&&F<=this.endOf(O)},$.isAfter=function(N,O){return P(N)<this.startOf(O)},$.isBefore=function(N,O){return this.endOf(O)<P(N)},$.$g=function(N,O,F){return _.u(N)?this[O]:this.set(F,N)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(N,O){var F=this,T=!!_.u(O)||O,A=_.p(N),D=function(fe,q){var X=_.w(F.$u?Date.UTC(F.$y,q,fe):new Date(F.$y,q,fe),F);return T?X:X.endOf(u)},j=function(fe,q){return _.w(F.toDate()[fe].apply(F.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(q)),F)},Z=this.$W,W=this.$M,U=this.$D,K="set"+(this.$u?"UTC":"");switch(A){case p:return T?D(1,0):D(31,11);case d:return T?D(1,W):D(0,W+1);case f:var ee=this.$locale().weekStart||0,ae=(Z<ee?Z+7:Z)-ee;return D(T?U-ae:U+(6-ae),W);case u:case b:return j(K+"Hours",0);case c:return j(K+"Minutes",1);case l:return j(K+"Seconds",2);case s:return j(K+"Milliseconds",3);default:return this.clone()}},$.endOf=function(N){return this.startOf(N,!1)},$.$set=function(N,O){var F,T=_.p(N),A="set"+(this.$u?"UTC":""),D=(F={},F[u]=A+"Date",F[b]=A+"Date",F[d]=A+"Month",F[p]=A+"FullYear",F[c]=A+"Hours",F[l]=A+"Minutes",F[s]=A+"Seconds",F[a]=A+"Milliseconds",F)[T],j=T===u?this.$D+(O-this.$W):O;if(T===d||T===p){var Z=this.clone().set(b,1);Z.$d[D](j),Z.init(),this.$d=Z.set(b,Math.min(this.$D,Z.daysInMonth())).$d}else D&&this.$d[D](j);return this.init(),this},$.set=function(N,O){return this.clone().$set(N,O)},$.get=function(N){return this[_.p(N)]()},$.add=function(N,O){var F,T=this;N=Number(N);var A=_.p(O),D=function(W){var U=P(T);return _.w(U.date(U.date()+Math.round(W*N)),T)};if(A===d)return this.set(d,this.$M+N);if(A===p)return this.set(p,this.$y+N);if(A===u)return D(1);if(A===f)return D(7);var j=(F={},F[l]=r,F[c]=i,F[s]=n,F)[A]||1,Z=this.$d.getTime()+N*j;return _.w(Z,this)},$.subtract=function(N,O){return this.add(-1*N,O)},$.format=function(N){var O=this,F=this.$locale();if(!this.isValid())return F.invalidDate||y;var T=N||"YYYY-MM-DDTHH:mm:ssZ",A=_.z(this),D=this.$H,j=this.$m,Z=this.$M,W=F.weekdays,U=F.months,K=F.meridiem,ee=function(q,X,G,Q){return q&&(q[X]||q(O,T))||G[X].slice(0,Q)},ae=function(q){return _.s(D%12||12,q,"0")},fe=K||function(q,X,G){var Q=q<12?"AM":"PM";return G?Q.toLowerCase():Q};return T.replace(h,function(q,X){return X||function(G){switch(G){case"YY":return String(O.$y).slice(-2);case"YYYY":return _.s(O.$y,4,"0");case"M":return Z+1;case"MM":return _.s(Z+1,2,"0");case"MMM":return ee(F.monthsShort,Z,U,3);case"MMMM":return ee(U,Z);case"D":return O.$D;case"DD":return _.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ee(F.weekdaysMin,O.$W,W,2);case"ddd":return ee(F.weekdaysShort,O.$W,W,3);case"dddd":return W[O.$W];case"H":return String(D);case"HH":return _.s(D,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return fe(D,j,!0);case"A":return fe(D,j,!1);case"m":return String(j);case"mm":return _.s(j,2,"0");case"s":return String(O.$s);case"ss":return _.s(O.$s,2,"0");case"SSS":return _.s(O.$ms,3,"0");case"Z":return A}return null}(q)||A.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(N,O,F){var T,A=this,D=_.p(O),j=P(N),Z=(j.utcOffset()-this.utcOffset())*r,W=this-j,U=function(){return _.m(A,j)};switch(D){case p:T=U()/12;break;case d:T=U();break;case m:T=U()/3;break;case f:T=(W-Z)/6048e5;break;case u:T=(W-Z)/864e5;break;case c:T=W/i;break;case l:T=W/r;break;case s:T=W/n;break;default:T=W}return F?T:_.a(T)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return C[this.$L]},$.locale=function(N,O){if(!N)return this.$L;var F=this.clone(),T=R(N,O,!0);return T&&(F.$L=T),F},$.clone=function(){return _.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},S}(),M=L.prototype;return P.prototype=M,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",u],["$M",d],["$y",p],["$D",b]].forEach(function(S){M[S[1]]=function($){return this.$g($,S[0],S[1])}}),P.extend=function(S,$){return S.$i||(S($,L,P),S.$i=!0),P},P.locale=R,P.isDayjs=k,P.unix=function(S){return P(1e3*S)},P.en=C[w],P.Ls=C,P.p={},P})})(uf);var Wm=uf.exports;const ne=gt(Wm);function Zm(t,e){var n;xi&&($r(t)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t)));var r=ja(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,a=o.useMemo(function(){return $m(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return r.current.apply(r,Bs([],_t(s),!1))},i,e)},[]);return ki(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}function Hm(t,e,n){var r=_t(o.useState({}),2),i=r[0],a=r[1],s=Zm(function(){a({})},n).run;o.useEffect(function(){return s()},e),Ws(t,[i])}function zm(t){var e=_t(o.useState(t),2),n=e[0],r=e[1],i=o.useRef(n);i.current=n;var a=o.useCallback(function(){return i.current},[]);return[n,r,a]}(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function t(v){try{return v.defaultView&&v.defaultView.frameElement||null}catch{return null}}var e=function(v){for(var E=v,w=t(E);w;)E=w.ownerDocument,w=t(E);return E}(window.document),n=[],r=null,i=null;function a(v){this.time=v.time,this.target=v.target,this.rootBounds=b(v.rootBounds),this.boundingClientRect=b(v.boundingClientRect),this.intersectionRect=b(v.intersectionRect||p()),this.isIntersecting=!!v.intersectionRect;var E=this.boundingClientRect,w=E.width*E.height,C=this.intersectionRect,k=C.width*C.height;w?this.intersectionRatio=Number((k/w).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(v,E){var w=E||{};if(typeof v!="function")throw new Error("callback must be a function");if(w.root&&w.root.nodeType!=1&&w.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=c(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=v,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(w.rootMargin),this.thresholds=this._initThresholds(w.threshold),this.root=w.root||null,this.rootMargin=this._rootMarginValues.map(function(C){return C.value+C.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return r||(r=function(v,E){!v||!E?i=p():i=y(v,E),n.forEach(function(w){w._checkForIntersections()})}),r},s._resetCrossOriginUpdater=function(){r=null,i=null},s.prototype.observe=function(v){var E=this._observationTargets.some(function(w){return w.element==v});if(!E){if(!(v&&v.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:v,entry:null}),this._monitorIntersections(v.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(v){this._observationTargets=this._observationTargets.filter(function(E){return E.element!=v}),this._unmonitorIntersections(v.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var v=this._queuedEntries.slice();return this._queuedEntries=[],v},s.prototype._initThresholds=function(v){var E=v||[0];return Array.isArray(E)||(E=[E]),E.sort().filter(function(w,C,k){if(typeof w!="number"||isNaN(w)||w<0||w>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return w!==k[C-1]})},s.prototype._parseRootMargin=function(v){var E=v||"0px",w=E.split(/\s+/).map(function(C){var k=/^(-?\d*\.?\d+)(px|%)$/.exec(C);if(!k)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(k[1]),unit:k[2]}});return w[1]=w[1]||w[0],w[2]=w[2]||w[0],w[3]=w[3]||w[1],w},s.prototype._monitorIntersections=function(v){var E=v.defaultView;if(E&&this._monitoringDocuments.indexOf(v)==-1){var w=this._checkForIntersections,C=null,k=null;this.POLL_INTERVAL?C=E.setInterval(w,this.POLL_INTERVAL):(u(E,"resize",w,!0),u(v,"scroll",w,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in E&&(k=new E.MutationObserver(w),k.observe(v,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(v),this._monitoringUnsubscribes.push(function(){var _=v.defaultView;_&&(C&&_.clearInterval(C),f(_,"resize",w,!0)),f(v,"scroll",w,!0),k&&k.disconnect()});var R=this.root&&(this.root.ownerDocument||this.root)||e;if(v!=R){var P=t(v);P&&this._monitorIntersections(P.ownerDocument)}}},s.prototype._unmonitorIntersections=function(v){var E=this._monitoringDocuments.indexOf(v);if(E!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||e,C=this._observationTargets.some(function(P){var _=P.element.ownerDocument;if(_==v)return!0;for(;_&&_!=w;){var L=t(_);if(_=L&&L.ownerDocument,_==v)return!0}return!1});if(!C){var k=this._monitoringUnsubscribes[E];if(this._monitoringDocuments.splice(E,1),this._monitoringUnsubscribes.splice(E,1),k(),v!=w){var R=t(v);R&&this._unmonitorIntersections(R.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var v=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var E=0;E<v.length;E++)v[E]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var v=this._rootIsInDom(),E=v?this._getRootRect():p();this._observationTargets.forEach(function(w){var C=w.element,k=m(C),R=this._rootContainsTarget(C),P=w.entry,_=v&&R&&this._computeTargetAndRootIntersection(C,k,E),L=null;this._rootContainsTarget(C)?(!r||this.root)&&(L=E):L=p();var M=w.entry=new a({time:l(),target:C,boundingClientRect:k,rootBounds:L,intersectionRect:_});P?v&&R?this._hasCrossedThreshold(P,M)&&this._queuedEntries.push(M):P&&P.isIntersecting&&this._queuedEntries.push(M):this._queuedEntries.push(M)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(v,E,w){if(window.getComputedStyle(v).display!="none"){for(var C=E,k=h(v),R=!1;!R&&k;){var P=null,_=k.nodeType==1?window.getComputedStyle(k):{};if(_.display=="none")return null;if(k==this.root||k.nodeType==9)if(R=!0,k==this.root||k==e)r&&!this.root?!i||i.width==0&&i.height==0?(k=null,P=null,C=null):P=i:P=w;else{var L=h(k),M=L&&m(L),S=L&&this._computeTargetAndRootIntersection(L,M,w);M&&S?(k=L,P=y(M,S)):(k=null,C=null)}else{var $=k.ownerDocument;k!=$.body&&k!=$.documentElement&&_.overflow!="visible"&&(P=m(k))}if(P&&(C=d(P,C)),!C)break;k=k&&h(k)}return C}},s.prototype._getRootRect=function(){var v;if(this.root&&!x(this.root))v=m(this.root);else{var E=x(this.root)?this.root:e,w=E.documentElement,C=E.body;v={top:0,left:0,right:w.clientWidth||C.clientWidth,width:w.clientWidth||C.clientWidth,bottom:w.clientHeight||C.clientHeight,height:w.clientHeight||C.clientHeight}}return this._expandRectByRootMargin(v)},s.prototype._expandRectByRootMargin=function(v){var E=this._rootMarginValues.map(function(C,k){return C.unit=="px"?C.value:C.value*(k%2?v.width:v.height)/100}),w={top:v.top-E[0],right:v.right+E[1],bottom:v.bottom+E[2],left:v.left-E[3]};return w.width=w.right-w.left,w.height=w.bottom-w.top,w},s.prototype._hasCrossedThreshold=function(v,E){var w=v&&v.isIntersecting?v.intersectionRatio||0:-1,C=E.isIntersecting?E.intersectionRatio||0:-1;if(w!==C)for(var k=0;k<this.thresholds.length;k++){var R=this.thresholds[k];if(R==w||R==C||R<w!=R<C)return!0}},s.prototype._rootIsInDom=function(){return!this.root||g(e,this.root)},s.prototype._rootContainsTarget=function(v){var E=this.root&&(this.root.ownerDocument||this.root)||e;return g(E,v)&&(!this.root||E==v.ownerDocument)},s.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},s.prototype._unregisterInstance=function(){var v=n.indexOf(this);v!=-1&&n.splice(v,1)};function l(){return window.performance&&performance.now&&performance.now()}function c(v,E){var w=null;return function(){w||(w=setTimeout(function(){v(),w=null},E))}}function u(v,E,w,C){typeof v.addEventListener=="function"?v.addEventListener(E,w,C||!1):typeof v.attachEvent=="function"&&v.attachEvent("on"+E,w)}function f(v,E,w,C){typeof v.removeEventListener=="function"?v.removeEventListener(E,w,C||!1):typeof v.detachEvent=="function"&&v.detachEvent("on"+E,w)}function d(v,E){var w=Math.max(v.top,E.top),C=Math.min(v.bottom,E.bottom),k=Math.max(v.left,E.left),R=Math.min(v.right,E.right),P=R-k,_=C-w;return P>=0&&_>=0&&{top:w,bottom:C,left:k,right:R,width:P,height:_}||null}function m(v){var E;try{E=v.getBoundingClientRect()}catch{}return E?(E.width&&E.height||(E={top:E.top,right:E.right,bottom:E.bottom,left:E.left,width:E.right-E.left,height:E.bottom-E.top}),E):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function b(v){return!v||"x"in v?v:{top:v.top,y:v.top,bottom:v.bottom,left:v.left,x:v.left,right:v.right,width:v.width,height:v.height}}function y(v,E){var w=E.top-v.top,C=E.left-v.left;return{top:w,left:C,height:E.height,width:E.width,bottom:w+E.height,right:C+E.width}}function g(v,E){for(var w=E;w;){if(w==v)return!0;w=h(w)}return!1}function h(v){var E=v.parentNode;return v.nodeType==9&&v!=e?t(v):(E&&E.assignedSlot&&(E=E.assignedSlot.parentNode),E&&E.nodeType==11&&E.host?E.host:E)}function x(v){return v&&v.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=a})();function qm(t,e){var n=_t(o.useState(),2),r=n[0],i=n[1],a=_t(o.useState(),2),s=a[0],l=a[1];return zs(function(){var c=tn(t);if(c){var u=new IntersectionObserver(function(f){var d,m;try{for(var p=y0(f),b=p.next();!b.done;b=p.next()){var y=b.value;l(y.intersectionRatio),i(y.isIntersecting)}}catch(g){d={error:g}}finally{try{b&&!b.done&&(m=p.return)&&m.call(p)}finally{if(d)throw d.error}}},va(va({},e),{root:tn(e==null?void 0:e.root)}));return u.observe(c),function(){u.disconnect()}}},[e==null?void 0:e.rootMargin,e==null?void 0:e.threshold],t),[r,s]}var Um=Hs?o.useLayoutEffect:o.useEffect;const Re=Um;function Km(t){var e=this,n=o.useRef(!1);return o.useCallback(function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return _e(e,void 0,void 0,function(){var a,s;return g0(this,function(l){switch(l.label){case 0:if(n.current)return[2];n.current=!0,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t.apply(void 0,Bs([],_t(r),!1))];case 2:return a=l.sent(),n.current=!1,[2,a];case 3:throw s=l.sent(),n.current=!1,s;case 4:return[2]}})})},[t])}function Ym(t){var e=o.useRef(0),n=_t(o.useState(t),2),r=n[0],i=n[1],a=o.useCallback(function(s){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){i(s)})},[]);return ki(function(){cancelAnimationFrame(e.current)}),[r,a]}var Gm=function(){var t=o.useRef(!1);return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t};const qs=Gm;var ff=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var s=a[i];n.call(r,s[1],s[0])}},e}()}(),Uo=typeof window<"u"&&typeof document<"u"&&window.document===document,pa=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Xm=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(pa):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),Qm=2;function Jm(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&l()}function s(){Xm(a)}function l(){var c=Date.now();if(n){if(c-i<Qm)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=c}return l}var eh=20,th=["top","right","bottom","left","width","height","size","weight"],nh=typeof MutationObserver<"u",rh=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Jm(this.refresh.bind(this),eh)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!Uo||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nh?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Uo||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=th.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),df=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},dr=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||pa},mf=Ba(0,0,0,0);function ga(t){return parseFloat(t)||0}function oc(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var a=t["border-"+i+"-width"];return r+ga(a)},0)}function ih(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var a=i[r],s=t["padding-"+a];n[a]=ga(s)}return n}function ah(t){var e=t.getBBox();return Ba(0,0,e.width,e.height)}function oh(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return mf;var r=dr(t).getComputedStyle(t),i=ih(r),a=i.left+i.right,s=i.top+i.bottom,l=ga(r.width),c=ga(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==e&&(l-=oc(r,"left","right")+a),Math.round(c+s)!==n&&(c-=oc(r,"top","bottom")+s)),!lh(t)){var u=Math.round(l+a)-e,f=Math.round(c+s)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Ba(i.left,i.top,l,c)}var sh=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof dr(t).SVGGraphicsElement}:function(t){return t instanceof dr(t).SVGElement&&typeof t.getBBox=="function"}}();function lh(t){return t===dr(t).document.documentElement}function ch(t){return Uo?sh(t)?ah(t):oh(t):mf}function uh(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return df(s,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),s}function Ba(t,e,n,r){return{x:t,y:e,width:n,height:r}}var fh=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ba(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=ch(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),dh=function(){function t(e,n){var r=uh(n);df(this,{target:e,contentRect:r})}return t}(),mh=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new ff,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof dr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new fh(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof dr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new dh(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),hf=typeof WeakMap<"u"?new WeakMap:new ff,vf=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=rh.getInstance(),r=new mh(e,n,this);hf.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){vf.prototype[t]=function(){var e;return(e=hf.get(this))[t].apply(e,arguments)}});var hh=function(){return typeof pa.ResizeObserver<"u"?pa.ResizeObserver:vf}(),vh=lf(o.useLayoutEffect);const ph=vh;var gh=Hs?ph:zs;const yh=gh;function Ko(t){var e=_t(Ym(function(){var i=tn(t);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=e[0],r=e[1];return yh(function(){var i=tn(t);if(i){var a=new hh(function(s){s.forEach(function(l){var c=l.target,u=c.clientWidth,f=c.clientHeight;r({width:u,height:f})})});return a.observe(i),function(){a.disconnect()}}},[],t),n}function Wa(t,e){var n;xi&&($r(t)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t)));var r=ja(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,a=o.useMemo(function(){return Pm(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return r.current.apply(r,Bs([],_t(s),!1))},i,e)},[]);return ki(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}var bh=function(t,e){var n=jt(t),r=o.useRef(null),i=o.useCallback(function(){r.current&&clearTimeout(r.current)},[]);return o.useEffect(function(){if(!(!k0(e)||e<0))return r.current=setTimeout(n,e),i},[e]),i};const Eh=bh,sc=10;function wh(t,e){return t>e&&t>sc?"horizontal":e>t&&e>sc?"vertical":""}function Ch(){const t=o.useRef(0),e=o.useRef(0),n=o.useRef(0),r=o.useRef(0),i=o.useRef(0),a=o.useRef(0),s=o.useRef(""),l=()=>s.current==="vertical",c=()=>s.current==="horizontal",u=()=>{n.current=0,r.current=0,i.current=0,a.current=0,s.current=""};return{move:m=>{const p=m.touches[0];n.current=p.clientX<0?0:p.clientX-t.current,r.current=p.clientY-e.current,i.current=Math.abs(n.current),a.current=Math.abs(r.current),s.current||(s.current=wh(i.current,a.current))},start:m=>{u(),t.current=m.touches[0].clientX,e.current=m.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:r,offsetX:i,offsetY:a,direction:s,isVertical:l,isHorizontal:c}}const xh=kr?window:void 0,kh=["scroll","auto","overlay"];function $h(t){return t.nodeType===1}function ya(t,e=xh){let n=t;for(;n&&n!==e&&$h(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if(kh.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let On=!1;if(kr)try{const t={};Object.defineProperty(t,"passive",{get(){On=!0}}),window.addEventListener("test-passive",null,t)}catch{}let Ir=0;const lc="adm-overflow-hidden";function _h(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Za(t,e){const n=Ch(),r=s=>{n.move(s);const l=n.deltaY.current>0?"10":"01",c=ya(s.target,t.current);if(!c)return;if(e==="strict"){const b=_h(s.target);if(b===document.body||b===document.documentElement){s.preventDefault();return}}const{scrollHeight:u,offsetHeight:f,scrollTop:d}=c,{height:m}=c.getBoundingClientRect();let p="11";d===0?p=f>=u?"00":"01":u<=Math.round(m+d)&&(p="10"),p!=="11"&&n.isVertical()&&!(parseInt(p,2)&parseInt(l,2))&&s.cancelable&&On&&s.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,On?{passive:!1}:!1),Ir||document.body.classList.add(lc),Ir++},a=()=>{Ir&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Ir--,Ir||document.body.classList.remove(lc))};o.useEffect(()=>{if(e)return i(),()=>{a()}},[e])}let Us=_i();const J=t=>$i(t,Us);let Ks=_i();J.write=t=>$i(t,Ks);let Ha=_i();J.onStart=t=>$i(t,Ha);let Ys=_i();J.onFrame=t=>$i(t,Ys);let Gs=_i();J.onFinish=t=>$i(t,Gs);let sr=[];J.setTimeout=(t,e)=>{let n=J.now()+e,r=()=>{let a=sr.findIndex(s=>s.cancel==r);~a&&sr.splice(a,1),Xt-=~a?1:0},i={time:n,handler:t,cancel:r};return sr.splice(pf(n),0,i),Xt+=1,gf(),i};let pf=t=>~(~sr.findIndex(e=>e.time>t)||~sr.length);J.cancel=t=>{Ha.delete(t),Ys.delete(t),Gs.delete(t),Us.delete(t),Ks.delete(t)};J.sync=t=>{Yo=!0,J.batchedUpdates(t),Yo=!1};J.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,J.onStart(n)}return r.handler=t,r.cancel=()=>{Ha.delete(n),e=null},r};let Xs=typeof window<"u"?window.requestAnimationFrame:()=>{};J.use=t=>Xs=t;J.now=typeof performance<"u"?()=>performance.now():Date.now;J.batchedUpdates=t=>t();J.catch=console.error;J.frameLoop="always";J.advance=()=>{J.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):bf()};let Gt=-1,Xt=0,Yo=!1;function $i(t,e){Yo?(e.delete(t),t(0)):(e.add(t),gf())}function gf(){Gt<0&&(Gt=0,J.frameLoop!=="demand"&&Xs(yf))}function Sh(){Gt=-1}function yf(){~Gt&&(Xs(yf),J.batchedUpdates(bf))}function bf(){let t=Gt;Gt=J.now();let e=pf(Gt);if(e&&(Ef(sr.splice(0,e),n=>n.handler()),Xt-=e),!Xt){Sh();return}Ha.flush(),Us.flush(t?Math.min(64,Gt-t):16.667),Ys.flush(),Ks.flush(),Gs.flush()}function _i(){let t=new Set,e=t;return{add(n){Xt+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Xt-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Xt-=e.size,Ef(e,r=>r(n)&&t.add(r)),Xt+=t.size,e=t)}}}function Ef(t,e){t.forEach(n=>{try{e(n)}catch(r){J.catch(r)}})}function Go(){}const Rh=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),H={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function Tt(t,e){if(H.arr(t)){if(!H.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const oe=(t,e)=>t.forEach(e);function St(t,e,n){if(H.arr(t)){for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);return}for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}const Ke=t=>H.und(t)?[]:H.arr(t)?t:[t];function ti(t,e){if(t.size){const n=Array.from(t);t.clear(),oe(n,e)}}const Gr=(t,...e)=>ti(t,n=>n(...e)),Qs=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Js,wf,Jt=null,Cf=!1,el=Go;const Oh=t=>{t.to&&(wf=t.to),t.now&&(J.now=t.now),t.colors!==void 0&&(Jt=t.colors),t.skipAnimation!=null&&(Cf=t.skipAnimation),t.createStringInterpolator&&(Js=t.createStringInterpolator),t.requestAnimationFrame&&J.use(t.requestAnimationFrame),t.batchedUpdates&&(J.batchedUpdates=t.batchedUpdates),t.willAdvance&&(el=t.willAdvance),t.frameLoop&&(J.frameLoop=t.frameLoop)};var ot=Object.freeze({__proto__:null,get createStringInterpolator(){return Js},get to(){return wf},get colors(){return Jt},get skipAnimation(){return Cf},get willAdvance(){return el},assign:Oh});const ni=new Set;let rt=[],Co=[],ba=0;const za={get idle(){return!ni.size&&!rt.length},start(t){ba>t.priority?(ni.add(t),J.onStart(Fh)):(xf(t),J(Xo))},advance:Xo,sort(t){if(ba)J.onFrame(()=>za.sort(t));else{const e=rt.indexOf(t);~e&&(rt.splice(e,1),kf(t))}},clear(){rt=[],ni.clear()}};function Fh(){ni.forEach(xf),ni.clear(),J(Xo)}function xf(t){rt.includes(t)||kf(t)}function kf(t){rt.splice(Nh(rt,e=>e.priority>t.priority),0,t)}function Xo(t){const e=Co;for(let n=0;n<rt.length;n++){const r=rt[n];ba=r.priority,r.idle||(el(r),r.advance(t),r.idle||e.push(r))}return ba=0,Co=rt,Co.length=0,rt=e,rt.length>0}function Nh(t,e){const n=t.findIndex(e);return n<0?t.length:n}const Ph=(t,e,n)=>Math.min(Math.max(n,t),e),Mh={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ht="[-+]?\\d*\\.?\\d+",Ea=ht+"%";function qa(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Ah=new RegExp("rgb"+qa(ht,ht,ht)),Ih=new RegExp("rgba"+qa(ht,ht,ht,ht)),Th=new RegExp("hsl"+qa(ht,Ea,Ea)),Lh=new RegExp("hsla"+qa(ht,Ea,Ea,ht)),Dh=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vh=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,jh=/^#([0-9a-fA-F]{6})$/,Bh=/^#([0-9a-fA-F]{8})$/;function Wh(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=jh.exec(t))?parseInt(e[1]+"ff",16)>>>0:Jt&&Jt[t]!==void 0?Jt[t]:(e=Ah.exec(t))?(Bn(e[1])<<24|Bn(e[2])<<16|Bn(e[3])<<8|255)>>>0:(e=Ih.exec(t))?(Bn(e[1])<<24|Bn(e[2])<<16|Bn(e[3])<<8|fc(e[4]))>>>0:(e=Dh.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Bh.exec(t))?parseInt(e[1],16)>>>0:(e=Vh.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Th.exec(t))?(cc(uc(e[1]),Vi(e[2]),Vi(e[3]))|255)>>>0:(e=Lh.exec(t))?(cc(uc(e[1]),Vi(e[2]),Vi(e[3]))|fc(e[4]))>>>0:null}function xo(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function cc(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,a=xo(i,r,t+1/3),s=xo(i,r,t),l=xo(i,r,t-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function Bn(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function uc(t){return(parseFloat(t)%360+360)%360/360}function fc(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Vi(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function dc(t){let e=Wh(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,r=(e&16711680)>>>16,i=(e&65280)>>>8,a=(e&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}const li=(t,e,n)=>{i