UNPKG

antd-mobile

Version:
5 lines 479 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),Mn=require("react-dom");function am(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 D=am(o),Rr=!!(typeof window<"u"&&typeof document<"u"&&window.document&&window.document.createElement);Rr&&document.addEventListener("touchstart",()=>{},!0);var Ca=function(){return Ca=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},Ca.apply(this,arguments)};function nn(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 Re(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 om(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 sm(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 Ot(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 al(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 qe="${label}不是一个有效的${type}",lm={locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",startAndEnd:"开始/结束",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:qe,method:qe,array:qe,object:qe,number:qe,date:qe,boolean:qe,integer:qe,float:qe,regexp:qe,email:qe,url:qe,hex:qe},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:"我知道了"},NumberKeyboard:{backspace:"删除"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}},cm=lm,Rf={current:{locale:cm}};function um(t){Rf.current=t}function Si(){return Rf.current}const Of=o.createContext(null),fm=t=>{const{children:e}=t,n=nn(t,["children"]),r=oe();return o.createElement(Of.Provider,{value:Object.assign(Object.assign({},r),n)},e)};function oe(){var t;return(t=o.useContext(Of))!==null&&t!==void 0?t:Si()}function de(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ff={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})()})(Ff);var dm=Ff.exports;const W=bt(dm);function H(t,e){const n=Object.assign({},e.props);t.className&&(n.className=W(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 Y(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function un(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}var Nf=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)}},Or=function(t){return typeof t=="function"},mm=function(t){return typeof t=="number"},hm=!1;const Ri=hm;function Wt(t){Ri&&(Or(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 ol=Nf(o.useEffect);function _c(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 za(t){var e=o.useRef(t);return e.current=t,e}var vm=function(t){Ri&&(Or(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=za(t);o.useEffect(function(){return function(){e.current()}},[])};const Oi=vm;function pm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var sl=pm,gm=typeof at=="object"&&at&&at.Object===Object&&at,ym=gm,bm=ym,Em=typeof self=="object"&&self&&self.Object===Object&&self,wm=bm||Em||Function("return this")(),Pf=wm,Cm=Pf,xm=function(){return Cm.Date.now()},km=xm,_m=/\s/;function $m(t){for(var e=t.length;e--&&_m.test(t.charAt(e)););return e}var Sm=$m,Rm=Sm,Om=/^\s+/;function Fm(t){return t&&t.slice(0,Rm(t)+1).replace(Om,"")}var Nm=Fm,Pm=Pf,Mm=Pm.Symbol,Mf=Mm,$c=Mf,Af=Object.prototype,Am=Af.hasOwnProperty,Im=Af.toString,Dr=$c?$c.toStringTag:void 0;function Tm(t){var e=Am.call(t,Dr),n=t[Dr];try{t[Dr]=void 0;var r=!0}catch{}var i=Im.call(t);return r&&(e?t[Dr]=n:delete t[Dr]),i}var Lm=Tm,Dm=Object.prototype,Vm=Dm.toString;function jm(t){return Vm.call(t)}var Bm=jm,Sc=Mf,Wm=Lm,Zm=Bm,Hm="[object Null]",qm="[object Undefined]",Rc=Sc?Sc.toStringTag:void 0;function Um(t){return t==null?t===void 0?qm:Hm:Rc&&Rc in Object(t)?Wm(t):Zm(t)}var zm=Um;function Km(t){return t!=null&&typeof t=="object"}var Ym=Km,Gm=zm,Xm=Ym,Qm="[object Symbol]";function Jm(t){return typeof t=="symbol"||Xm(t)&&Gm(t)==Qm}var eh=Jm,th=Nm,Oc=sl,nh=eh,Fc=NaN,rh=/^[-+]0x[0-9a-f]+$/i,ih=/^0b[01]+$/i,ah=/^0o[0-7]+$/i,oh=parseInt;function sh(t){if(typeof t=="number")return t;if(nh(t))return Fc;if(Oc(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Oc(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=th(t);var n=ih.test(t);return n||ah.test(t)?oh(t.slice(2),n?2:8):rh.test(t)?Fc:+t}var lh=sh,ch=sl,Po=km,Nc=lh,uh="Expected a function",fh=Math.max,dh=Math.min;function mh(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(uh);e=Nc(e)||0,ch(n)&&(f=!!n.leading,d="maxWait"in n,a=d?fh(Nc(n.maxWait)||0,e):a,m="trailing"in n?!!n.trailing:m);function v(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?v(C):s}function y(C){var k=C-c,R=C-u,F=e-k;return d?dh(F,a-R):F}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=Po();if(g(C))return x(C);l=setTimeout(h,y(C))}function x(C){return l=void 0,m&&r?v(C):(r=i=void 0,s)}function p(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function E(){return l===void 0?s:x(Po())}function w(){var C=Po(),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),v(c)}return l===void 0&&(l=setTimeout(h,e)),s}return w.cancel=p,w.flush=E,w}var If=mh;const hh=bt(If);var vh=!!(typeof window<"u"&&window.document&&window.document.createElement);const ll=vh;var ph=If,gh=sl,yh="Expected a function";function bh(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(yh);return gh(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ph(t,e,{leading:r,maxWait:e,trailing:i})}var Eh=bh;const wh=bt(Eh);var Ch=function(t){Ri&&(Or(t)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".'))),o.useEffect(function(){t==null||t()},[])};const xh=Ch;var kh=function(){var t=Ot(o.useState({}),2),e=t[1];return o.useCallback(function(){return e({})},[])};const Tf=kh;function rn(t,e){if(ll){if(!t)return e;var n;return Or(t)?n=t():"current"in t?n=t.current:n=t,n}}var _h=function(t){return t.every(function(e){var n=rn(e);if(!n)return!1;if(n.getRootNode()instanceof ShadowRoot)return!0})},$h=function(t){return t?t.getRootNode():document},Sh=function(t){if(!t||!document.getRootNode)return document;var e=Array.isArray(t)?t:[t];return _h(e)?$h(rn(e[0])):document};const Rh=Sh;var Oh=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 rn(m)});if(!a.current){a.current=!0,s.current=d,l.current=r,c.current=n();return}(d.length!==s.current.length||!_c(d,s.current)||!_c(r,l.current))&&((u=c.current)===null||u===void 0||u.call(c),s.current=d,l.current=r,c.current=n())}),Oi(function(){var u;(u=c.current)===null||u===void 0||u.call(c),a.current=!1})};return e};const Lf=Oh;var Fh=Lf(o.useEffect);const cl=Fh;function Df(t,e,n){n===void 0&&(n="click");var r=za(t);cl(function(){var i=function(l){var c=Array.isArray(e)?e:[e];c.some(function(u){var f=rn(u);return!f||f.contains(l.target)})||r.current(l)},a=Rh(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 Vf={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(at,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",l="minute",c="hour",u="day",f="week",d="month",m="quarter",v="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(M){var N=["th","st","nd","rd"],I=M%100;return"["+M+(N[(I-20)%10]||N[I]||N[0])+"]"}},p=function(M,N,I){var P=String(M);return!P||P.length>=N?M:""+Array(N+1-P.length).join(I)+M},E={s:p,z:function(M){var N=-M.utcOffset(),I=Math.abs(N),P=Math.floor(I/60),$=I%60;return(N<=0?"+":"-")+p(P,2,"0")+":"+p($,2,"0")},m:function M(N,I){if(N.date()<I.date())return-M(I,N);var P=12*(I.year()-N.year())+(I.month()-N.month()),$=N.clone().add(P,d),T=I-$<0,_=N.clone().add(P+(T?-1:1),d);return+(-(P+(I-$)/(T?$-_:_-$))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:d,y:v,w:f,d:u,D:b,h:c,m:l,s,ms:a,Q:m}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},w="en",C={};C[w]=x;var k=function(M){return M instanceof V},R=function M(N,I,P){var $;if(!N)return w;if(typeof N=="string"){var T=N.toLowerCase();C[T]&&($=T),I&&(C[T]=I,$=T);var _=N.split("-");if(!$&&_.length>1)return M(_[0])}else{var O=N.name;C[O]=N,$=O}return!P&&$&&(w=$),$||!P&&w},F=function(M,N){if(k(M))return M.clone();var I=typeof N=="object"?N:{};return I.date=M,I.args=arguments,new V(I)},S=E;S.l=R,S.i=k,S.w=function(M,N){return F(M,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var V=function(){function M(I){this.$L=R(I.locale,null,!0),this.parse(I)}var N=M.prototype;return N.parse=function(I){this.$d=function(P){var $=P.date,T=P.utc;if($===null)return new Date(NaN);if(S.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var _=$.match(g);if(_){var O=_[2]-1||0,L=(_[7]||"0").substring(0,3);return T?new Date(Date.UTC(_[1],O,_[3]||1,_[4]||0,_[5]||0,_[6]||0,L)):new Date(_[1],O,_[3]||1,_[4]||0,_[5]||0,_[6]||0,L)}}return new Date($)}(I),this.$x=I.x||{},this.init()},N.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},N.$utils=function(){return S},N.isValid=function(){return this.$d.toString()!==y},N.isSame=function(I,P){var $=F(I);return this.startOf(P)<=$&&$<=this.endOf(P)},N.isAfter=function(I,P){return F(I)<this.startOf(P)},N.isBefore=function(I,P){return this.endOf(P)<F(I)},N.$g=function(I,P,$){return S.u(I)?this[P]:this.set($,I)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(I,P){var $=this,T=!!S.u(P)||P,_=S.p(I),O=function(se,ee){var K=S.w($.$u?Date.UTC($.$y,ee,se):new Date($.$y,ee,se),$);return T?K:K.endOf(u)},L=function(se,ee){return S.w($.toDate()[se].apply($.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ee)),$)},B=this.$W,j=this.$M,Z=this.$D,U="set"+(this.$u?"UTC":"");switch(_){case v:return T?O(1,0):O(31,11);case d:return T?O(1,j):O(0,j+1);case f:var q=this.$locale().weekStart||0,J=(B<q?B+7:B)-q;return O(T?Z-J:Z+(6-J),j);case u:case b:return L(U+"Hours",0);case c:return L(U+"Minutes",1);case l:return L(U+"Seconds",2);case s:return L(U+"Milliseconds",3);default:return this.clone()}},N.endOf=function(I){return this.startOf(I,!1)},N.$set=function(I,P){var $,T=S.p(I),_="set"+(this.$u?"UTC":""),O=($={},$[u]=_+"Date",$[b]=_+"Date",$[d]=_+"Month",$[v]=_+"FullYear",$[c]=_+"Hours",$[l]=_+"Minutes",$[s]=_+"Seconds",$[a]=_+"Milliseconds",$)[T],L=T===u?this.$D+(P-this.$W):P;if(T===d||T===v){var B=this.clone().set(b,1);B.$d[O](L),B.init(),this.$d=B.set(b,Math.min(this.$D,B.daysInMonth())).$d}else O&&this.$d[O](L);return this.init(),this},N.set=function(I,P){return this.clone().$set(I,P)},N.get=function(I){return this[S.p(I)]()},N.add=function(I,P){var $,T=this;I=Number(I);var _=S.p(P),O=function(j){var Z=F(T);return S.w(Z.date(Z.date()+Math.round(j*I)),T)};if(_===d)return this.set(d,this.$M+I);if(_===v)return this.set(v,this.$y+I);if(_===u)return O(1);if(_===f)return O(7);var L=($={},$[l]=r,$[c]=i,$[s]=n,$)[_]||1,B=this.$d.getTime()+I*L;return S.w(B,this)},N.subtract=function(I,P){return this.add(-1*I,P)},N.format=function(I){var P=this,$=this.$locale();if(!this.isValid())return $.invalidDate||y;var T=I||"YYYY-MM-DDTHH:mm:ssZ",_=S.z(this),O=this.$H,L=this.$m,B=this.$M,j=$.weekdays,Z=$.months,U=$.meridiem,q=function(ee,K,Q,X){return ee&&(ee[K]||ee(P,T))||Q[K].slice(0,X)},J=function(ee){return S.s(O%12||12,ee,"0")},se=U||function(ee,K,Q){var X=ee<12?"AM":"PM";return Q?X.toLowerCase():X};return T.replace(h,function(ee,K){return K||function(Q){switch(Q){case"YY":return String(P.$y).slice(-2);case"YYYY":return S.s(P.$y,4,"0");case"M":return B+1;case"MM":return S.s(B+1,2,"0");case"MMM":return q($.monthsShort,B,Z,3);case"MMMM":return q(Z,B);case"D":return P.$D;case"DD":return S.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return q($.weekdaysMin,P.$W,j,2);case"ddd":return q($.weekdaysShort,P.$W,j,3);case"dddd":return j[P.$W];case"H":return String(O);case"HH":return S.s(O,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return se(O,L,!0);case"A":return se(O,L,!1);case"m":return String(L);case"mm":return S.s(L,2,"0");case"s":return String(P.$s);case"ss":return S.s(P.$s,2,"0");case"SSS":return S.s(P.$ms,3,"0");case"Z":return _}return null}(ee)||_.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(I,P,$){var T,_=this,O=S.p(P),L=F(I),B=(L.utcOffset()-this.utcOffset())*r,j=this-L,Z=function(){return S.m(_,L)};switch(O){case v:T=Z()/12;break;case d:T=Z();break;case m:T=Z()/3;break;case f:T=(j-B)/6048e5;break;case u:T=(j-B)/864e5;break;case c:T=j/i;break;case l:T=j/r;break;case s:T=j/n;break;default:T=j}return $?T:S.a(T)},N.daysInMonth=function(){return this.endOf(d).$D},N.$locale=function(){return C[this.$L]},N.locale=function(I,P){if(!I)return this.$L;var $=this.clone(),T=R(I,P,!0);return T&&($.$L=T),$},N.clone=function(){return S.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},M}(),A=V.prototype;return F.prototype=A,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",u],["$M",d],["$y",v],["$D",b]].forEach(function(M){A[M[1]]=function(N){return this.$g(N,M[0],M[1])}}),F.extend=function(M,N){return M.$i||(M(N,V,F),M.$i=!0),F},F.locale=R,F.isDayjs=k,F.unix=function(M){return F(1e3*M)},F.en=C[w],F.Ls=C,F.p={},F})})(Vf);var Nh=Vf.exports;const ie=bt(Nh);function Ph(t,e){var n;Ri&&(Or(t)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t)));var r=za(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,a=o.useMemo(function(){return hh(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return r.current.apply(r,al([],Ot(s),!1))},i,e)},[]);return Oi(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}function Mh(t,e,n){var r=Ot(o.useState({}),2),i=r[0],a=r[1],s=Ph(function(){a({})},n).run;o.useEffect(function(){return s()},e),ol(t,[i])}function Ah(t){var e=Ot(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(p){try{return p.defaultView&&p.defaultView.frameElement||null}catch{return null}}var e=function(p){for(var E=p,w=t(E);w;)E=w.ownerDocument,w=t(E);return E}(window.document),n=[],r=null,i=null;function a(p){this.time=p.time,this.target=p.target,this.rootBounds=b(p.rootBounds),this.boundingClientRect=b(p.boundingClientRect),this.intersectionRect=b(p.intersectionRect||v()),this.isIntersecting=!!p.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(p,E){var w=E||{};if(typeof p!="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=p,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(p,E){!p||!E?i=v():i=y(p,E),n.forEach(function(w){w._checkForIntersections()})}),r},s._resetCrossOriginUpdater=function(){r=null,i=null},s.prototype.observe=function(p){var E=this._observationTargets.some(function(w){return w.element==p});if(!E){if(!(p&&p.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:p,entry:null}),this._monitorIntersections(p.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(p){this._observationTargets=this._observationTargets.filter(function(E){return E.element!=p}),this._unmonitorIntersections(p.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var p=this._queuedEntries.slice();return this._queuedEntries=[],p},s.prototype._initThresholds=function(p){var E=p||[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(p){var E=p||"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(p){var E=p.defaultView;if(E&&this._monitoringDocuments.indexOf(p)==-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(p,"scroll",w,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in E&&(k=new E.MutationObserver(w),k.observe(p,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(p),this._monitoringUnsubscribes.push(function(){var S=p.defaultView;S&&(C&&S.clearInterval(C),f(S,"resize",w,!0)),f(p,"scroll",w,!0),k&&k.disconnect()});var R=this.root&&(this.root.ownerDocument||this.root)||e;if(p!=R){var F=t(p);F&&this._monitorIntersections(F.ownerDocument)}}},s.prototype._unmonitorIntersections=function(p){var E=this._monitoringDocuments.indexOf(p);if(E!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||e,C=this._observationTargets.some(function(F){var S=F.element.ownerDocument;if(S==p)return!0;for(;S&&S!=w;){var V=t(S);if(S=V&&V.ownerDocument,S==p)return!0}return!1});if(!C){var k=this._monitoringUnsubscribes[E];if(this._monitoringDocuments.splice(E,1),this._monitoringUnsubscribes.splice(E,1),k(),p!=w){var R=t(p);R&&this._unmonitorIntersections(R.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var p=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var E=0;E<p.length;E++)p[E]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var p=this._rootIsInDom(),E=p?this._getRootRect():v();this._observationTargets.forEach(function(w){var C=w.element,k=m(C),R=this._rootContainsTarget(C),F=w.entry,S=p&&R&&this._computeTargetAndRootIntersection(C,k,E),V=null;this._rootContainsTarget(C)?(!r||this.root)&&(V=E):V=v();var A=w.entry=new a({time:l(),target:C,boundingClientRect:k,rootBounds:V,intersectionRect:S});F?p&&R?this._hasCrossedThreshold(F,A)&&this._queuedEntries.push(A):F&&F.isIntersecting&&this._queuedEntries.push(A):this._queuedEntries.push(A)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(p,E,w){if(window.getComputedStyle(p).display!="none"){for(var C=E,k=h(p),R=!1;!R&&k;){var F=null,S=k.nodeType==1?window.getComputedStyle(k):{};if(S.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,F=null,C=null):F=i:F=w;else{var V=h(k),A=V&&m(V),M=V&&this._computeTargetAndRootIntersection(V,A,w);A&&M?(k=V,F=y(A,M)):(k=null,C=null)}else{var N=k.ownerDocument;k!=N.body&&k!=N.documentElement&&S.overflow!="visible"&&(F=m(k))}if(F&&(C=d(F,C)),!C)break;k=k&&h(k)}return C}},s.prototype._getRootRect=function(){var p;if(this.root&&!x(this.root))p=m(this.root);else{var E=x(this.root)?this.root:e,w=E.documentElement,C=E.body;p={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(p)},s.prototype._expandRectByRootMargin=function(p){var E=this._rootMarginValues.map(function(C,k){return C.unit=="px"?C.value:C.value*(k%2?p.width:p.height)/100}),w={top:p.top-E[0],right:p.right+E[1],bottom:p.bottom+E[2],left:p.left-E[3]};return w.width=w.right-w.left,w.height=w.bottom-w.top,w},s.prototype._hasCrossedThreshold=function(p,E){var w=p&&p.isIntersecting?p.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(p){var E=this.root&&(this.root.ownerDocument||this.root)||e;return g(E,p)&&(!this.root||E==p.ownerDocument)},s.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},s.prototype._unregisterInstance=function(){var p=n.indexOf(this);p!=-1&&n.splice(p,1)};function l(){return window.performance&&performance.now&&performance.now()}function c(p,E){var w=null;return function(){w||(w=setTimeout(function(){p(),w=null},E))}}function u(p,E,w,C){typeof p.addEventListener=="function"?p.addEventListener(E,w,C||!1):typeof p.attachEvent=="function"&&p.attachEvent("on"+E,w)}function f(p,E,w,C){typeof p.removeEventListener=="function"?p.removeEventListener(E,w,C||!1):typeof p.detachEvent=="function"&&p.detachEvent("on"+E,w)}function d(p,E){var w=Math.max(p.top,E.top),C=Math.min(p.bottom,E.bottom),k=Math.max(p.left,E.left),R=Math.min(p.right,E.right),F=R-k,S=C-w;return F>=0&&S>=0&&{top:w,bottom:C,left:k,right:R,width:F,height:S}||null}function m(p){var E;try{E=p.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):v()}function v(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function b(p){return!p||"x"in p?p:{top:p.top,y:p.top,bottom:p.bottom,left:p.left,x:p.left,right:p.right,width:p.width,height:p.height}}function y(p,E){var w=E.top-p.top,C=E.left-p.left;return{top:w,left:C,height:E.height,width:E.width,bottom:w+E.height,right:C+E.width}}function g(p,E){for(var w=E;w;){if(w==p)return!0;w=h(w)}return!1}function h(p){var E=p.parentNode;return p.nodeType==9&&p!=e?t(p):(E&&E.assignedSlot&&(E=E.assignedSlot.parentNode),E&&E.nodeType==11&&E.host?E.host:E)}function x(p){return p&&p.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=a})();function Ih(t,e){var n=Ot(o.useState(),2),r=n[0],i=n[1],a=Ot(o.useState(),2),s=a[0],l=a[1];return cl(function(){var c=rn(t);if(c){var u=new IntersectionObserver(function(f){var d,m;try{for(var v=sm(f),b=v.next();!b.done;b=v.next()){var y=b.value;l(y.intersectionRatio),i(y.isIntersecting)}}catch(g){d={error:g}}finally{try{b&&!b.done&&(m=v.return)&&m.call(v)}finally{if(d)throw d.error}}},Ca(Ca({},e),{root:rn(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 Th=ll?o.useLayoutEffect:o.useEffect;const Pe=Th;function Lh(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 Re(e,void 0,void 0,function(){var a,s;return om(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,al([],Ot(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 Dh(t){var e=o.useRef(0),n=Ot(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 Oi(function(){cancelAnimationFrame(e.current)}),[r,a]}var Vh=function(){var t=o.useRef(!1);return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t};const ul=Vh;var jf=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}()}(),os=typeof window<"u"&&typeof document<"u"&&window.document===document,xa=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")()}(),jh=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xa):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),Bh=2;function Wh(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&l()}function s(){jh(a)}function l(){var c=Date.now();if(n){if(c-i<Bh)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=c}return l}var Zh=20,Hh=["top","right","bottom","left","width","height","size","weight"],qh=typeof MutationObserver<"u",Uh=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Wh(this.refresh.bind(this),Zh)}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(){!os||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qh?(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(){!os||!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=Hh.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}(),Bf=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},yr=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||xa},Wf=Ka(0,0,0,0);function ka(t){return parseFloat(t)||0}function Pc(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+ka(a)},0)}function zh(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]=ka(s)}return n}function Kh(t){var e=t.getBBox();return Ka(0,0,e.width,e.height)}function Yh(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Wf;var r=yr(t).getComputedStyle(t),i=zh(r),a=i.left+i.right,s=i.top+i.bottom,l=ka(r.width),c=ka(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==e&&(l-=Pc(r,"left","right")+a),Math.round(c+s)!==n&&(c-=Pc(r,"top","bottom")+s)),!Xh(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 Ka(i.left,i.top,l,c)}var Gh=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof yr(t).SVGGraphicsElement}:function(t){return t instanceof yr(t).SVGElement&&typeof t.getBBox=="function"}}();function Xh(t){return t===yr(t).document.documentElement}function Qh(t){return os?Gh(t)?Kh(t):Yh(t):Wf}function Jh(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 Bf(s,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),s}function Ka(t,e,n,r){return{x:t,y:e,width:n,height:r}}var ev=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ka(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=Qh(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}(),tv=function(){function t(e,n){var r=Jh(n);Bf(this,{target:e,contentRect:r})}return t}(),nv=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new jf,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 yr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new ev(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 yr(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 tv(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}(),Zf=typeof WeakMap<"u"?new WeakMap:new jf,Hf=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=Uh.getInstance(),r=new nv(e,n,this);Zf.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Hf.prototype[t]=function(){var e;return(e=Zf.get(this))[t].apply(e,arguments)}});var rv=function(){return typeof xa.ResizeObserver<"u"?xa.ResizeObserver:Hf}(),iv=Lf(o.useLayoutEffect);const av=iv;var ov=ll?av:cl;const sv=ov;function ss(t){var e=Ot(Dh(function(){var i=rn(t);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=e[0],r=e[1];return sv(function(){var i=rn(t);if(i){var a=new rv(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 Ya(t,e){var n;Ri&&(Or(t)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t)));var r=za(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,a=o.useMemo(function(){return wh(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return r.current.apply(r,al([],Ot(s),!1))},i,e)},[]);return Oi(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}var lv=function(t,e){var n=Wt(t),r=o.useRef(null),i=o.useCallback(function(){r.current&&clearTimeout(r.current)},[]);return o.useEffect(function(){if(!(!mm(e)||e<0))return r.current=setTimeout(n,e),i},[e]),i};const cv=lv,Mc=10;function uv(t,e){return t>e&&t>Mc?"horizontal":e>t&&e>Mc?"vertical":""}function fv(){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 v=m.touches[0];n.current=v.clientX<0?0:v.clientX-t.current,r.current=v.clientY-e.current,i.current=Math.abs(n.current),a.current=Math.abs(r.current),s.current||(s.current=uv(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 dv=Rr?window:void 0,mv=["scroll","auto","overlay"];function hv(t){return t.nodeType===1}function _a(t,e=dv){let n=t;for(;n&&n!==e&&hv(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if(mv.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let An=!1;if(Rr)try{const t={};Object.defineProperty(t,"passive",{get(){An=!0}}),window.addEventListener("test-passive",null,t)}catch{}let Vr=0;const Ac="adm-overflow-hidden";function vv(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Ga(t,e){const n=fv(),r=s=>{n.move(s);const l=n.deltaY.current>0?"10":"01",c=_a(s.target,t.current);if(!c)return;if(e==="strict"){const b=vv(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 v="11";d===0?v=f>=u?"00":"01":u<=Math.round(m+d)&&(v="10"),v!=="11"&&n.isVertical()&&!(parseInt(v,2)&parseInt(l,2))&&s.cancelable&&An&&s.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,An?{passive:!1}:!1),Vr||document.body.classList.add(Ac),Vr++},a=()=>{Vr&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Vr--,Vr||document.body.classList.remove(Ac))};o.useEffect(()=>{if(e)return i(),()=>{a()}},[e])}let fl=Ni();const te=t=>Fi(t,fl);let dl=Ni();te.write=t=>Fi(t,dl);let Xa=Ni();te.onStart=t=>Fi(t,Xa);let ml=Ni();te.onFrame=t=>Fi(t,ml);let hl=Ni();te.onFinish=t=>Fi(t,hl);let mr=[];te.setTimeout=(t,e)=>{let n=te.now()+e,r=()=>{let a=mr.findIndex(s=>s.cancel==r);~a&&mr.splice(a,1),Jt-=~a?1:0},i={time:n,handler:t,cancel:r};return mr.splice(qf(n),0,i),Jt+=1,Uf(),i};let qf=t=>~(~mr.findIndex(e=>e.time>t)||~mr.length);te.cancel=t=>{Xa.delete(t),ml.delete(t),hl.delete(t),fl.delete(t),dl.delete(t)};te.sync=t=>{ls=!0,te.batchedUpdates(t),ls=!1};te.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,te.onStart(n)}return r.handler=t,r.cancel=()=>{Xa.delete(n),e=null},r};let vl=typeof window<"u"?window.requestAnimationFrame:()=>{};te.use=t=>vl=t;te.now=typeof performance<"u"?()=>performance.now():Date.now;te.batchedUpdates=t=>t();te.catch=console.error;te.frameLoop="always";te.advance=()=>{te.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Kf()};let Qt=-1,Jt=0,ls=!1;function Fi(t,e){ls?(e.delete(t),t(0)):(e.add(t),Uf())}function Uf(){Qt<0&&(Qt=0,te.frameLoop!=="demand"&&vl(zf))}function pv(){Qt=-1}function zf(){~Qt&&(vl(zf),te.batchedUpdates(Kf))}function Kf(){let t=Qt;Qt=te.now();let e=qf(Qt);if(e&&(Yf(mr.splice(0,e),n=>n.handler()),Jt-=e),!Jt){pv();return}Xa.flush(),fl.flush(t?Math.min(64,Qt-t):16.667),ml.flush(),dl.flush(),hl.flush()}function Ni(){let t=new Set,e=t;return{add(n){Jt+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Jt-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Jt-=e.size,Yf(e,r=>r(n)&&t.add(r)),Jt+=t.size,e=t)}}}function Yf(t,e){t.forEach(n=>{try{e(n)}catch(r){te.catch(r)}})}function cs(){}const gv=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),z={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 Dt(t,e){if(z.arr(t)){if(!z.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 le=(t,e)=>t.forEach(e);function Ft(t,e,n){if(z.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 Ye=t=>z.und(t)?[]:z.arr(t)?t:[t];function ai(t,e){if(t.size){const n=Array.from(t);t.clear(),le(n,e)}}const ei=(t,...e)=>ai(t,n=>n(...e)),pl=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let gl,Gf,tn=null,Xf=!1,yl=cs;const yv=t=>{t.to&&(Gf=t.to),t.now&&(te.now=t.now),t.colors!==void 0&&(tn=t.colors),t.skipAnimation!=null&&(Xf=t.skipAnimation),t.createStringInterpolator&&(gl=t.createStringInterpolator),t.requestAnimationFrame&&te.use(t.requestAnimationFrame),t.batchedUpdates&&(te.batchedUpdates=t.batchedUpdates),t.willAdvance&&(yl=t.willAdvance),t.frameLoop&&(te.frameLoop=t.frameLoop)};var st=Object.freeze({__proto__:null,get createStringInterpolator(){return gl},get to(){return Gf},get colors(){return tn},get skipAnimation(){return Xf},get willAdvance(){return yl},assign:yv});const oi=new Set;let it=[],Mo=[],$a=0;const Qa={get idle(){return!oi.size&&!it.length},start(t){$a>t.priority?(oi.add(t),te.onStart(bv)):(Qf(t),te(us))},advance:us,sort(t){if($a)te.onFrame(()=>Qa.sort(t));else{const e=it.indexOf(t);~e&&(it.splice(e,1),Jf(t))}},clear(){it=[],oi.clear()}};function bv(){oi.forEach(Qf),oi.clear(),te(us)}function Qf(t){it.includes(t)||Jf(t)}function Jf(t){it.splice(Ev(it,e=>e.priority>t.priority),0,t)}function us(t){const e=Mo;for(let n=0;n<it.length;n++){const r=it[n];$a=r.priority,r.idle||(yl(r),r.advance(t),r.idle||e.push(r))}return $a=0,Mo=it,Mo.length=0,it=e,it.length>0}function Ev(t,e){const n=t.findIndex(e);return n<0?t.length:n}const wv=(t,e,n)=>Math.min(Math.max(n,t),e),Cv={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},pt="[-+]?\\d*\\.?\\d+",Sa=pt+"%";function Ja(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const xv=new RegExp("rgb"+Ja(pt,pt,pt)),kv=new RegExp("rgba"+Ja(pt,pt,pt,pt)),_v=new RegExp("hsl"+Ja(pt,Sa,Sa)),$v=new RegExp("hsla"+Ja(pt,Sa,Sa,pt)),Sv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Rv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ov=/^#([0-9a-fA-F]{6})$/,Fv=/^#([0-9a-fA-F]{8})$/;function Nv(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Ov.exec(t))?parseInt(e[1]+"ff",16)>>>0:tn&&tn[t]!==void 0?tn[t]:(e=xv.exec(t))?(zn(e[1])<<24|zn(e[2])<<16|zn(e[3])<<8|255)>>>0:(e=kv.exec(t))?(zn(e[1])<<24|zn(e[2])<<16|zn(e[3])<<8|Lc(e[4]))>>>0:(e=Sv.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Fv.exec(t))?parseInt(e[1],16)>>>0:(e=Rv.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=_v.exec(t))?(Ic(Tc(e[1]),Ui(e[2]),Ui(e[3]))|255)>>>0:(e=$v.exec(t))?(Ic(Tc(e[1]),Ui(e[2]),Ui(e[3]))|Lc(e[4]))>>>0:null}function Ao(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 Ic(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,a=Ao(i,r,t+1/3),s=Ao(i,r,t),l=Ao(i,r,t-1/3);return Math.round(a*255)<<24|Math.round(s*255)<<16|Math.round(l*255)<<8}function zn(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Tc(t){return(parseFloat(t)%360+360)%360/360}function Lc(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ui(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Dc(t){let e=Nv(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,r=(e&16711680)>>>16,i=(e&65280)>>