antd-mobile
Version:
<div align="center">
5 lines • 461 kB
JavaScript
(function(z,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],s):(z=typeof globalThis<"u"?globalThis:z||self,s(z.antdMobile={},z.React,z.ReactDOM))})(this,function(z,s,Hn){"use strict";function ec(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 L=ec(s),pm=ec(Hn),zn=!!(typeof window<"u"&&typeof document<"u"&&window.document&&window.document.createElement);zn&&document.addEventListener("touchstart",()=>{},!0);var Wi=function(){return Wi=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wi.apply(this,arguments)};function zt(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 Se(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(f){try{u(r.next(f))}catch(d){a(d)}}function c(f){try{u(r.throw(f))}catch(d){a(d)}}function u(f){f.done?o(f.value):i(f.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}function ym(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=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(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function bm(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 bt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Cs(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;const Ke="${label}不是一个有效的${type}",tc={current:{locale:{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:Ke,method:Ke,array:Ke,object:Ke,number:Ke,date:Ke,boolean:Ke,integer:Ke,float:Ke,regexp:Ke,email:Ke,url:Ke,hex:Ke},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:"选择组"}}}};function Em(t){tc.current=t}function Tr(){return tc.current}const nc=s.createContext(null),wm=t=>{const{children:e}=t,n=zt(t,["children"]),r=ie();return s.createElement(nc.Provider,{value:Object.assign(Object.assign({},r),n)},e)};function ie(){var t;return(t=s.useContext(nc))!==null&&t!==void 0?t:Tr()}function me(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}var $e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rc={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 o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var l=n.apply(null,o);l&&r.push(l)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var c in o)e.call(o,c)&&o[c]&&r.push(c)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(rc);var Cm=rc.exports;const B=ft(Cm);function Z(t,e){const n=Object.assign({},e.props);t.className&&(n.className=B(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 s.cloneElement(e,n)}function K(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function qt(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}var ic=function(t){return function(e,n){var r=s.useRef(!1);t(function(){return function(){r.current=!1}},[]),t(function(){if(!r.current)r.current=!0;else return e()},n)}},qn=function(t){return typeof t=="function"},xm=function(t){return typeof t=="number"},km=!1;const Lr=km;function At(t){Lr&&(qn(t)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof t)));var e=s.useRef(t);e.current=s.useMemo(function(){return t},[t]);var n=s.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 xs=ic(s.useEffect);function oc(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 Zi(t){var e=s.useRef(t);return e.current=t,e}var _m=function(t){Lr&&(qn(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var e=Zi(t);s.useEffect(function(){return function(){e.current()}},[])};const Dr=_m;function Sm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ks=Sm,Om=typeof $e=="object"&&$e&&$e.Object===Object&&$e,Fm=Om,Nm=Fm,Pm=typeof self=="object"&&self&&self.Object===Object&&self,Mm=Nm||Pm||Function("return this")(),sc=Mm,Am=sc,Im=function(){return Am.Date.now()},Tm=Im,Lm=/\s/;function Dm(t){for(var e=t.length;e--&&Lm.test(t.charAt(e)););return e}var Vm=Dm,jm=Vm,Bm=/^\s+/;function Wm(t){return t&&t.slice(0,jm(t)+1).replace(Bm,"")}var Zm=Wm,Hm=sc,zm=Hm.Symbol,ac=zm,lc=ac,cc=Object.prototype,qm=cc.hasOwnProperty,Um=cc.toString,Vr=lc?lc.toStringTag:void 0;function Km(t){var e=qm.call(t,Vr),n=t[Vr];try{t[Vr]=void 0;var r=!0}catch{}var i=Um.call(t);return r&&(e?t[Vr]=n:delete t[Vr]),i}var Ym=Km,Gm=Object.prototype,Xm=Gm.toString;function Qm(t){return Xm.call(t)}var Jm=Qm,uc=ac,$m=Ym,Rm=Jm,e1="[object Null]",t1="[object Undefined]",fc=uc?uc.toStringTag:void 0;function n1(t){return t==null?t===void 0?t1:e1:fc&&fc in Object(t)?$m(t):Rm(t)}var r1=n1;function i1(t){return t!=null&&typeof t=="object"}var o1=i1,s1=r1,a1=o1,l1="[object Symbol]";function c1(t){return typeof t=="symbol"||a1(t)&&s1(t)==l1}var u1=c1,f1=Zm,dc=ks,d1=u1,mc=NaN,m1=/^[-+]0x[0-9a-f]+$/i,h1=/^0b[01]+$/i,v1=/^0o[0-7]+$/i,g1=parseInt;function p1(t){if(typeof t=="number")return t;if(d1(t))return mc;if(dc(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=dc(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=f1(t);var n=h1.test(t);return n||v1.test(t)?g1(t.slice(2),n?2:8):m1.test(t)?mc:+t}var y1=p1,b1=ks,_s=Tm,hc=y1,E1="Expected a function",w1=Math.max,C1=Math.min;function x1(t,e,n){var r,i,o,a,l,c,u=0,f=!1,d=!1,m=!0;if(typeof t!="function")throw new TypeError(E1);e=hc(e)||0,b1(n)&&(f=!!n.leading,d="maxWait"in n,o=d?w1(hc(n.maxWait)||0,e):o,m="trailing"in n?!!n.trailing:m);function g(C){var k=r,F=i;return r=i=void 0,u=C,a=t.apply(F,k),a}function b(C){return u=C,l=setTimeout(h,e),f?g(C):a}function y(C){var k=C-c,F=C-u,A=e-k;return d?C1(A,o-F):A}function p(C){var k=C-c,F=C-u;return c===void 0||k>=e||k<0||d&&F>=o}function h(){var C=_s();if(p(C))return x(C);l=setTimeout(h,y(C))}function x(C){return l=void 0,m&&r?g(C):(r=i=void 0,a)}function v(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function E(){return l===void 0?a:x(_s())}function w(){var C=_s(),k=p(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),g(c)}return l===void 0&&(l=setTimeout(h,e)),a}return w.cancel=v,w.flush=E,w}var vc=x1;const k1=ft(vc);var _1=!!(typeof window<"u"&&window.document&&window.document.createElement);const Ss=_1;var S1=vc,O1=ks,F1="Expected a function";function N1(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(F1);return O1(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),S1(t,e,{leading:r,maxWait:e,trailing:i})}var P1=N1;const M1=ft(P1);var A1=function(t){Lr&&(qn(t)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".'))),s.useEffect(function(){t==null||t()},[])};const I1=A1;var T1=function(){var t=bt(s.useState({}),2),e=t[1];return s.useCallback(function(){return e({})},[])};const gc=T1;function Ut(t,e){if(Ss){if(!t)return e;var n;return qn(t)?n=t():"current"in t?n=t.current:n=t,n}}var L1=function(t){return t.every(function(e){var n=Ut(e);if(!n)return!1;if(n.getRootNode()instanceof ShadowRoot)return!0})},D1=function(t){return t?t.getRootNode():document},V1=function(t){if(!t||!document.getRootNode)return document;var e=Array.isArray(t)?t:[t];return L1(e)?D1(Ut(e[0])):document};const j1=V1;var B1=function(t){var e=function(n,r,i){var o=s.useRef(!1),a=s.useRef([]),l=s.useRef([]),c=s.useRef();t(function(){var u,f=Array.isArray(i)?i:[i],d=f.map(function(m){return Ut(m)});if(!o.current){o.current=!0,a.current=d,l.current=r,c.current=n();return}(d.length!==a.current.length||!oc(d,a.current)||!oc(r,l.current))&&((u=c.current)===null||u===void 0||u.call(c),a.current=d,l.current=r,c.current=n())}),Dr(function(){var u;(u=c.current)===null||u===void 0||u.call(c),o.current=!1})};return e};const pc=B1;var W1=pc(s.useEffect);const Os=W1;function yc(t,e,n){n===void 0&&(n="click");var r=Zi(t);Os(function(){var i=function(l){var c=Array.isArray(e)?e:[e];c.some(function(u){var f=Ut(u);return!f||f.contains(l.target)})||r.current(l)},o=j1(e),a=Array.isArray(n)?n:[n];return a.forEach(function(l){return o.addEventListener(l,i)}),function(){a.forEach(function(l){return o.removeEventListener(l,i)})}},Array.isArray(n)?n:[n],e)}var bc={exports:{}};(function(t,e){(function(n,r){t.exports=r()})($e,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",l="minute",c="hour",u="day",f="week",d="month",m="quarter",g="year",b="date",y="Invalid Date",p=/^(\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(O){var _=["th","st","nd","rd"],M=O%100;return"["+O+(_[(M-20)%10]||_[M]||_[0])+"]"}},v=function(O,_,M){var N=String(O);return!N||N.length>=_?O:""+Array(_+1-N.length).join(M)+O},E={s:v,z:function(O){var _=-O.utcOffset(),M=Math.abs(_),N=Math.floor(M/60),P=M%60;return(_<=0?"+":"-")+v(N,2,"0")+":"+v(P,2,"0")},m:function O(_,M){if(_.date()<M.date())return-O(M,_);var N=12*(M.year()-_.year())+(M.month()-_.month()),P=_.clone().add(N,d),D=M-P<0,T=_.clone().add(N+(D?-1:1),d);return+(-(N+(M-P)/(D?P-T:T-P))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:d,y:g,w:f,d:u,D:b,h:c,m:l,s:a,ms:o,Q:m}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},w="en",C={};C[w]=x;var k=function(O){return O instanceof V},F=function O(_,M,N){var P;if(!_)return w;if(typeof _=="string"){var D=_.toLowerCase();C[D]&&(P=D),M&&(C[D]=M,P=D);var T=_.split("-");if(!P&&T.length>1)return O(T[0])}else{var j=_.name;C[j]=_,P=j}return!N&&P&&(w=P),P||!N&&w},A=function(O,_){if(k(O))return O.clone();var M=typeof _=="object"?_:{};return M.date=O,M.args=arguments,new V(M)},S=E;S.l=F,S.i=k,S.w=function(O,_){return A(O,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var V=function(){function O(M){this.$L=F(M.locale,null,!0),this.parse(M)}var _=O.prototype;return _.parse=function(M){this.$d=function(N){var P=N.date,D=N.utc;if(P===null)return new Date(NaN);if(S.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var T=P.match(p);if(T){var j=T[2]-1||0,W=(T[7]||"0").substring(0,3);return D?new Date(Date.UTC(T[1],j,T[3]||1,T[4]||0,T[5]||0,T[6]||0,W)):new Date(T[1],j,T[3]||1,T[4]||0,T[5]||0,T[6]||0,W)}}return new Date(P)}(M),this.$x=M.x||{},this.init()},_.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==y},_.isSame=function(M,N){var P=A(M);return this.startOf(N)<=P&&P<=this.endOf(N)},_.isAfter=function(M,N){return A(M)<this.startOf(N)},_.isBefore=function(M,N){return this.endOf(N)<A(M)},_.$g=function(M,N,P){return S.u(M)?this[N]:this.set(P,M)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(M,N){var P=this,D=!!S.u(N)||N,T=S.p(M),j=function(de,Y){var $=S.w(P.$u?Date.UTC(P.$y,Y,de):new Date(P.$y,Y,de),P);return D?$:$.endOf(u)},W=function(de,Y){return S.w(P.toDate()[de].apply(P.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(Y)),P)},q=this.$W,H=this.$M,G=this.$D,X="set"+(this.$u?"UTC":"");switch(T){case g:return D?j(1,0):j(31,11);case d:return D?j(1,H):j(0,H+1);case f:var te=this.$locale().weekStart||0,le=(q<te?q+7:q)-te;return j(D?G-le:G+(6-le),H);case u:case b:return W(X+"Hours",0);case c:return W(X+"Minutes",1);case l:return W(X+"Seconds",2);case a:return W(X+"Milliseconds",3);default:return this.clone()}},_.endOf=function(M){return this.startOf(M,!1)},_.$set=function(M,N){var P,D=S.p(M),T="set"+(this.$u?"UTC":""),j=(P={},P[u]=T+"Date",P[b]=T+"Date",P[d]=T+"Month",P[g]=T+"FullYear",P[c]=T+"Hours",P[l]=T+"Minutes",P[a]=T+"Seconds",P[o]=T+"Milliseconds",P)[D],W=D===u?this.$D+(N-this.$W):N;if(D===d||D===g){var q=this.clone().set(b,1);q.$d[j](W),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else j&&this.$d[j](W);return this.init(),this},_.set=function(M,N){return this.clone().$set(M,N)},_.get=function(M){return this[S.p(M)]()},_.add=function(M,N){var P,D=this;M=Number(M);var T=S.p(N),j=function(H){var G=A(D);return S.w(G.date(G.date()+Math.round(H*M)),D)};if(T===d)return this.set(d,this.$M+M);if(T===g)return this.set(g,this.$y+M);if(T===u)return j(1);if(T===f)return j(7);var W=(P={},P[l]=r,P[c]=i,P[a]=n,P)[T]||1,q=this.$d.getTime()+M*W;return S.w(q,this)},_.subtract=function(M,N){return this.add(-1*M,N)},_.format=function(M){var N=this,P=this.$locale();if(!this.isValid())return P.invalidDate||y;var D=M||"YYYY-MM-DDTHH:mm:ssZ",T=S.z(this),j=this.$H,W=this.$m,q=this.$M,H=P.weekdays,G=P.months,X=P.meridiem,te=function(Y,$,J,R){return Y&&(Y[$]||Y(N,D))||J[$].slice(0,R)},le=function(Y){return S.s(j%12||12,Y,"0")},de=X||function(Y,$,J){var R=Y<12?"AM":"PM";return J?R.toLowerCase():R};return D.replace(h,function(Y,$){return $||function(J){switch(J){case"YY":return String(N.$y).slice(-2);case"YYYY":return S.s(N.$y,4,"0");case"M":return q+1;case"MM":return S.s(q+1,2,"0");case"MMM":return te(P.monthsShort,q,G,3);case"MMMM":return te(G,q);case"D":return N.$D;case"DD":return S.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return te(P.weekdaysMin,N.$W,H,2);case"ddd":return te(P.weekdaysShort,N.$W,H,3);case"dddd":return H[N.$W];case"H":return String(j);case"HH":return S.s(j,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return de(j,W,!0);case"A":return de(j,W,!1);case"m":return String(W);case"mm":return S.s(W,2,"0");case"s":return String(N.$s);case"ss":return S.s(N.$s,2,"0");case"SSS":return S.s(N.$ms,3,"0");case"Z":return T}return null}(Y)||T.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(M,N,P){var D,T=this,j=S.p(N),W=A(M),q=(W.utcOffset()-this.utcOffset())*r,H=this-W,G=function(){return S.m(T,W)};switch(j){case g:D=G()/12;break;case d:D=G();break;case m:D=G()/3;break;case f:D=(H-q)/6048e5;break;case u:D=(H-q)/864e5;break;case c:D=H/i;break;case l:D=H/r;break;case a:D=H/n;break;default:D=H}return P?D:S.a(D)},_.daysInMonth=function(){return this.endOf(d).$D},_.$locale=function(){return C[this.$L]},_.locale=function(M,N){if(!M)return this.$L;var P=this.clone(),D=F(M,N,!0);return D&&(P.$L=D),P},_.clone=function(){return S.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()},O}(),I=V.prototype;return A.prototype=I,[["$ms",o],["$s",a],["$m",l],["$H",c],["$W",u],["$M",d],["$y",g],["$D",b]].forEach(function(O){I[O[1]]=function(_){return this.$g(_,O[0],O[1])}}),A.extend=function(O,_){return O.$i||(O(_,V,A),O.$i=!0),A},A.locale=F,A.isDayjs=k,A.unix=function(O){return A(1e3*O)},A.en=C[w],A.Ls=C,A.p={},A})})(bc);var Z1=bc.exports;const re=ft(Z1);function H1(t,e){var n;Lr&&(qn(t)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t)));var r=Zi(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,o=s.useMemo(function(){return k1(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.current.apply(r,Cs([],bt(a),!1))},i,e)},[]);return Dr(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function z1(t,e,n){var r=bt(s.useState({}),2),i=r[0],o=r[1],a=H1(function(){o({})},n).run;s.useEffect(function(){return a()},e),xs(t,[i])}function q1(t){var e=bt(s.useState(t),2),n=e[0],r=e[1],i=s.useRef(n);i.current=n;var o=s.useCallback(function(){return i.current},[]);return[n,r,o]}(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 o(v){this.time=v.time,this.target=v.target,this.rootBounds=b(v.rootBounds),this.boundingClientRect=b(v.boundingClientRect),this.intersectionRect=b(v.intersectionRect||g()),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 a(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=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(v,E){!v||!E?i=g():i=y(v,E),n.forEach(function(w){w._checkForIntersections()})}),r},a._resetCrossOriginUpdater=function(){r=null,i=null},a.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()}},a.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()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var v=this._queuedEntries.slice();return this._queuedEntries=[],v},a.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]})},a.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},a.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 S=v.defaultView;S&&(C&&S.clearInterval(C),f(S,"resize",w,!0)),f(v,"scroll",w,!0),k&&k.disconnect()});var F=this.root&&(this.root.ownerDocument||this.root)||e;if(v!=F){var A=t(v);A&&this._monitorIntersections(A.ownerDocument)}}},a.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(A){var S=A.element.ownerDocument;if(S==v)return!0;for(;S&&S!=w;){var V=t(S);if(S=V&&V.ownerDocument,S==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 F=t(v);F&&this._unmonitorIntersections(F.ownerDocument)}}}},a.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]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var v=this._rootIsInDom(),E=v?this._getRootRect():g();this._observationTargets.forEach(function(w){var C=w.element,k=m(C),F=this._rootContainsTarget(C),A=w.entry,S=v&&F&&this._computeTargetAndRootIntersection(C,k,E),V=null;this._rootContainsTarget(C)?(!r||this.root)&&(V=E):V=g();var I=w.entry=new o({time:l(),target:C,boundingClientRect:k,rootBounds:V,intersectionRect:S});A?v&&F?this._hasCrossedThreshold(A,I)&&this._queuedEntries.push(I):A&&A.isIntersecting&&this._queuedEntries.push(I):this._queuedEntries.push(I)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(v,E,w){if(window.getComputedStyle(v).display!="none"){for(var C=E,k=h(v),F=!1;!F&&k;){var A=null,S=k.nodeType==1?window.getComputedStyle(k):{};if(S.display=="none")return null;if(k==this.root||k.nodeType==9)if(F=!0,k==this.root||k==e)r&&!this.root?!i||i.width==0&&i.height==0?(k=null,A=null,C=null):A=i:A=w;else{var V=h(k),I=V&&m(V),O=V&&this._computeTargetAndRootIntersection(V,I,w);I&&O?(k=V,A=y(I,O)):(k=null,C=null)}else{var _=k.ownerDocument;k!=_.body&&k!=_.documentElement&&S.overflow!="visible"&&(A=m(k))}if(A&&(C=d(A,C)),!C)break;k=k&&h(k)}return C}},a.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)},a.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},a.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 F=this.thresholds[k];if(F==w||F==C||F<w!=F<C)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(v){var E=this.root&&(this.root.ownerDocument||this.root)||e;return p(E,v)&&(!this.root||E==v.ownerDocument)},a.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},a.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),F=Math.min(v.right,E.right),A=F-k,S=C-w;return A>=0&&S>=0&&{top:w,bottom:C,left:k,right:F,width:A,height:S}||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):g()}function g(){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 p(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=a,window.IntersectionObserverEntry=o})();function U1(t,e){var n=bt(s.useState(),2),r=n[0],i=n[1],o=bt(s.useState(),2),a=o[0],l=o[1];return Os(function(){var c=Ut(t);if(c){var u=new IntersectionObserver(function(f){var d,m;try{for(var g=bm(f),b=g.next();!b.done;b=g.next()){var y=b.value;l(y.intersectionRatio),i(y.isIntersecting)}}catch(p){d={error:p}}finally{try{b&&!b.done&&(m=g.return)&&m.call(g)}finally{if(d)throw d.error}}},Wi(Wi({},e),{root:Ut(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,a]}var K1=Ss?s.useLayoutEffect:s.useEffect;const Ne=K1;function Y1(t){var e=this,n=s.useRef(!1);return s.useCallback(function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Se(e,void 0,void 0,function(){var o,a;return ym(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,Cs([],bt(r),!1))];case 2:return o=l.sent(),n.current=!1,[2,o];case 3:throw a=l.sent(),n.current=!1,a;case 4:return[2]}})})},[t])}function G1(t){var e=s.useRef(0),n=bt(s.useState(t),2),r=n[0],i=n[1],o=s.useCallback(function(a){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){i(a)})},[]);return Dr(function(){cancelAnimationFrame(e.current)}),[r,o]}var X1=function(){var t=s.useRef(!1);return s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),t};const Fs=X1;var Ec=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,o){return i[0]===n?(r=o,!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,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},e}()}(),Ns=typeof window<"u"&&typeof document<"u"&&window.document===document,Hi=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")()}(),Q1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hi):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),J1=2;function $1(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&l()}function a(){Q1(o)}function l(){var c=Date.now();if(n){if(c-i<J1)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=c}return l}var R1=20,eh=["top","right","bottom","left","width","height","size","weight"],th=typeof MutationObserver<"u",nh=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=$1(this.refresh.bind(this),R1)}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(){!Ns||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),th?(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(){!Ns||!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=eh.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),wc=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},Un=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Hi},Cc=qi(0,0,0,0);function zi(t){return parseFloat(t)||0}function xc(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var o=t["border-"+i+"-width"];return r+zi(o)},0)}function rh(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=zi(a)}return n}function ih(t){var e=t.getBBox();return qi(0,0,e.width,e.height)}function oh(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Cc;var r=Un(t).getComputedStyle(t),i=rh(r),o=i.left+i.right,a=i.top+i.bottom,l=zi(r.width),c=zi(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==e&&(l-=xc(r,"left","right")+o),Math.round(c+a)!==n&&(c-=xc(r,"top","bottom")+a)),!ah(t)){var u=Math.round(l+o)-e,f=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return qi(i.left,i.top,l,c)}var sh=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Un(t).SVGGraphicsElement}:function(t){return t instanceof Un(t).SVGElement&&typeof t.getBBox=="function"}}();function ah(t){return t===Un(t).document.documentElement}function lh(t){return Ns?sh(t)?ih(t):oh(t):Cc}function ch(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return wc(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function qi(t,e,n,r){return{x:t,y:e,width:n,height:r}}var uh=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=qi(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=lh(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}(),fh=function(){function t(e,n){var r=ch(n);wc(this,{target:e,contentRect:r})}return t}(),dh=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new Ec,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 Un(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new uh(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 Un(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 fh(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}(),kc=typeof WeakMap<"u"?new WeakMap:new Ec,_c=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=nh.getInstance(),r=new dh(e,n,this);kc.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){_c.prototype[t]=function(){var e;return(e=kc.get(this))[t].apply(e,arguments)}});var mh=function(){return typeof Hi.ResizeObserver<"u"?Hi.ResizeObserver:_c}(),hh=pc(s.useLayoutEffect),vh=Ss?hh:Os;const gh=vh;function Ps(t){var e=bt(G1(function(){var i=Ut(t);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=e[0],r=e[1];return gh(function(){var i=Ut(t);if(i){var o=new mh(function(a){a.forEach(function(l){var c=l.target,u=c.clientWidth,f=c.clientHeight;r({width:u,height:f})})});return o.observe(i),function(){o.disconnect()}}},[],t),n}function Ui(t,e){var n;Lr&&(qn(t)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t)));var r=Zi(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,o=s.useMemo(function(){return M1(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.current.apply(r,Cs([],bt(a),!1))},i,e)},[]);return Dr(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var ph=function(t,e){var n=At(t),r=s.useRef(null),i=s.useCallback(function(){r.current&&clearTimeout(r.current)},[]);return s.useEffect(function(){if(!(!xm(e)||e<0))return r.current=setTimeout(n,e),i},[e]),i};const yh=ph,Sc=10;function bh(t,e){return t>e&&t>Sc?"horizontal":e>t&&e>Sc?"vertical":""}function Eh(){const t=s.useRef(0),e=s.useRef(0),n=s.useRef(0),r=s.useRef(0),i=s.useRef(0),o=s.useRef(0),a=s.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,r.current=0,i.current=0,o.current=0,a.current=""};return{move:m=>{const g=m.touches[0];n.current=g.clientX<0?0:g.clientX-t.current,r.current=g.clientY-e.current,i.current=Math.abs(n.current),o.current=Math.abs(r.current),a.current||(a.current=bh(i.current,o.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:o,direction:a,isVertical:l,isHorizontal:c}}const wh=zn?window:void 0,Ch=["scroll","auto","overlay"];function xh(t){return t.nodeType===1}function Ki(t,e=wh){let n=t;for(;n&&n!==e&&xh(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if(Ch.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let fn=!1;if(zn)try{const t={};Object.defineProperty(t,"passive",{get(){fn=!0}}),window.addEventListener("test-passive",null,t)}catch{}let jr=0;const Oc="adm-overflow-hidden";function kh(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Yi(t,e){const n=Eh(),r=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=Ki(a.target,t.current);if(!c)return;if(e==="strict"){const b=kh(a.target);if(b===document.body||b===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:f,scrollTop:d}=c,{height:m}=c.getBoundingClientRect();let g="11";d===0?g=f>=u?"00":"01":u<=Math.round(m+d)&&(g="10"),g!=="11"&&n.isVertical()&&!(parseInt(g,2)&parseInt(l,2))&&a.cancelable&&fn&&a.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,fn?{passive:!1}:!1),jr||document.body.classList.add(Oc),jr++},o=()=>{jr&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),jr--,jr||document.body.classList.remove(Oc))};s.useEffect(()=>{if(e)return i(),()=>{o()}},[e])}let Ms=Wr();const ee=t=>Br(t,Ms);let As=Wr();ee.write=t=>Br(t,As);let Gi=Wr();ee.onStart=t=>Br(t,Gi);let Is=Wr();ee.onFrame=t=>Br(t,Is);let Ts=Wr();ee.onFinish=t=>Br(t,Ts);let Kn=[];ee.setTimeout=(t,e)=>{let n=ee.now()+e,r=()=>{let o=Kn.findIndex(a=>a.cancel==r);~o&&Kn.splice(o,1),Yt-=~o?1:0},i={time:n,handler:t,cancel:r};return Kn.splice(Fc(n),0,i),Yt+=1,Nc(),i};let Fc=t=>~(~Kn.findIndex(e=>e.time>t)||~Kn.length);ee.cancel=t=>{Gi.delete(t),Is.delete(t),Ts.delete(t),Ms.delete(t),As.delete(t)},ee.sync=t=>{Ds=!0,ee.batchedUpdates(t),Ds=!1},ee.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,ee.onStart(n)}return r.handler=t,r.cancel=()=>{Gi.delete(n),e=null},r};let Ls=typeof window<"u"?window.requestAnimationFrame:()=>{};ee.use=t=>Ls=t,ee.now=typeof performance<"u"?()=>performance.now():Date.now,ee.batchedUpdates=t=>t(),ee.catch=console.error,ee.frameLoop="always",ee.advance=()=>{ee.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Mc()};let Kt=-1,Yt=0,Ds=!1;function Br(t,e){Ds?(e.delete(t),t(0)):(e.add(t),Nc())}function Nc(){Kt<0&&(Kt=0,ee.frameLoop!=="demand"&&Ls(Pc))}function _h(){Kt=-1}function Pc(){~Kt&&(Ls(Pc),ee.batchedUpdates(Mc))}function Mc(){let t=Kt;Kt=ee.now();let e=Fc(Kt);if(e&&(Ac(Kn.splice(0,e),n=>n.handler()),Yt-=e),!Yt){_h();return}Gi.flush(),Ms.flush(t?Math.min(64,Kt-t):16.667),Is.flush(),As.flush(),Ts.flush()}function Wr(){let t=new Set,e=t;return{add(n){Yt+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Yt-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Yt-=e.size,Ac(e,r=>r(n)&&t.add(r)),Yt+=t.size,e=t)}}}function Ac(t,e){t.forEach(n=>{try{e(n)}catch(r){ee.catch(r)}})}function Vs(){}const Sh=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),U={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 It(t,e){if(U.arr(t)){if(!U.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 se=(t,e)=>t.forEach(e);function Et(t,e,n){if(U.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=>U.und(t)?[]:U.arr(t)?t:[t];function Zr(t,e){if(t.size){const n=Array.from(t);t.clear(),se(n,e)}}const Hr=(t,...e)=>Zr(t,n=>n(...e)),js=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Bs,Ic,Gt=null,Tc=!1,Ws=Vs;var Re=Object.freeze({__proto__:null,get createStringInterpolator(){return Bs},get to(){return Ic},get colors(){return Gt},get skipAnimation(){return Tc},get willAdvance(){return Ws},assign:t=>{t.to&&(Ic=t.to),t.now&&(ee.now=t.now),t.colors!==void 0&&(Gt=t.colors),t.skipAnimation!=null&&(Tc=t.skipAnimation),t.createStringInterpolator&&(Bs=t.createStringInterpolator),t.requestAnimationFrame&&ee.use(t.requestAnimationFrame),t.batchedUpdates&&(ee.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Ws=t.willAdvance),t.frameLoop&&(ee.frameLoop=t.frameLoop)}});const zr=new Set;let et=[],Zs=[],Xi=0;const Qi={get idle(){return!zr.size&&!et.length},start(t){Xi>t.priority?(zr.add(t),ee.onStart(Oh)):(Lc(t),ee(Hs))},advance:Hs,sort(t){if(Xi)ee.onFrame(()=>Qi.sort(t));else{const e=et.indexOf(t);~e&&(et.splice(e,1),Dc(t))}},clear(){et=[],zr.clear()}};function Oh(){zr.forEach(Lc),zr.clear(),ee(Hs)}function Lc(t){et.includes(t)||Dc(t)}function Dc(t){et.splice(Fh(et,e=>e.priority>t.priority),0,t)}function Hs(t){const e=Zs;for(let n=0;n<et.length;n++){const r=et[n];Xi=r.priority,r.idle||(Ws(r),r.advance(t),r.idle||e.push(r))}return Xi=0,Zs=et,Zs.length=0,et=e,et.length>0}function Fh(t,e){const n=t.findIndex(e);return n<0?t.length:n}const Nh=(t,e,n)=>Math.min(Math.max(n,t),e),Ph={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},dt="[-+]?\\d*\\.?\\d+",Ji=dt+"%";function $i(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Mh=new RegExp("rgb"+$i(dt,dt,dt)),Ah=new RegExp("rgba"+$i(dt,dt,dt,dt)),Ih=new RegExp("hsl"+$i(dt,Ji,Ji)),Th=new RegExp("hsla"+$i(dt,Ji,Ji,dt)),Lh=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dh=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vh=/^#([0-9a-fA-F]{6})$/,jh=/^#([0-9a-fA-F]{8})$/;function Bh(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Vh.exec(t))?parseInt(e[1]+"ff",16)>>>0:Gt&&Gt[t]!==void 0?Gt[t]:(e=Mh.exec(t))?(Yn(e[1])<<24|Yn(e[2])<<16|Yn(e[3])<<8|255)>>>0:(e=Ah.exec(t))?(Yn(e[1])<<24|Yn(e[2])<<16|Yn(e[3])<<8|Bc(e[4]))>>>0:(e=Lh.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=jh.exec(t))?parseInt(e[1],16)>>>0:(e=Dh.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Ih.exec(t))?(Vc(jc(e[1]),Ri(e[2]),Ri(e[3]))|255)>>>0:(e=Th.exec(t))?(Vc(jc(e[1]),Ri(e[2]),Ri(e[3]))|Bc(e[4]))>>>0:null}function zs(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 Vc(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,o=zs(i,r,t+1/3),a=zs(i,r,t),l=zs(i,r,t-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function Yn(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function jc(t){return(parseFloat(t)%360+360)%360/360}function Bc(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function Ri(t){const e=parse