/usr/share/grafana/public/build
(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7031],{313:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var l=u(31635);l.__exportStar(u(13329),w)},761:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.switchMapTo=void 0;var l=u(90680),g=u(10281);function y(x,f){return g.isFunction(f)?l.switchMap(function(){return x},f):l.switchMap(function(){return x})}w.switchMapTo=y},1005:(Ge,w,u)=>{"use strict";u.d(w,{u:()=>p});var l=u(31635),g=u(15964),y=u(13752),x=u(75508),f=u(92908);function p(E){E===void 0&&(E={});var v=E.connector,m=v===void 0?function(){return new y.B}:v,S=E.resetOnError,d=S===void 0?!0:S,O=E.resetOnComplete,R=O===void 0?!0:O,C=E.resetOnRefCountZero,L=C===void 0?!0:C;return function(j){var I,U,$,ee=0,re=!1,Se=!1,z=function(){U?.unsubscribe(),U=void 0},Q=function(){z(),I=$=void 0,re=Se=!1},ce=function(){var se=I;Q(),se?.unsubscribe()};return(0,f.N)(function(se,q){ee++,!Se&&!re&&z();var te=$=$??m();q.add(function(){ee--,ee===0&&!Se&&!re&&(U=h(ce,L))}),te.subscribe(q),!I&&ee>0&&(I=new x.Ms({next:function(A){return te.next(A)},error:function(A){Se=!0,z(),U=h(Q,d,A),te.error(A)},complete:function(){re=!0,z(),U=h(Q,R),te.complete()}}),(0,g.Tg)(se).subscribe(I))})(j)}}function h(E,v){for(var m=[],S=2;S<arguments.length;S++)m[S-2]=arguments[S];if(v===!0){E();return}if(v!==!1){var d=new x.Ms({next:function(){d.unsubscribe(),E()}});return(0,g.Tg)(v.apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(m)))).subscribe(d)}}},1052:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>fe});function l(K){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},l(K)}function g(K,he){if(l(K)!="object"||!K)return K;var Fe=K[Symbol.toPrimitive];if(Fe!==void 0){var Nt=Fe.call(K,he||"default");if(l(Nt)!="object")return Nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(he==="string"?String:Number)(K)}function y(K){var he=g(K,"string");return l(he)=="symbol"?he:he+""}function x(K,he,Fe){return(he=y(he))in K?Object.defineProperty(K,he,{value:Fe,enumerable:!0,configurable:!0,writable:!0}):K[he]=Fe,K}function f(K,he){var Fe=Object.keys(K);if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(K);he&&(Nt=Nt.filter(function(ln){return Object.getOwnPropertyDescriptor(K,ln).enumerable})),Fe.push.apply(Fe,Nt)}return Fe}function p(K){for(var he=1;he<arguments.length;he++){var Fe=arguments[he]!=null?arguments[he]:{};he%2?f(Object(Fe),!0).forEach(function(Nt){x(K,Nt,Fe[Nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(Fe)):f(Object(Fe)).forEach(function(Nt){Object.defineProperty(K,Nt,Object.getOwnPropertyDescriptor(Fe,Nt))})}return K}function h(K){if(Array.isArray(K))return K}function E(K,he){var Fe=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(Fe!=null){var Nt,ln,pn,Yn,ht=[],De=!0,we=!1;try{if(pn=(Fe=Fe.call(K)).next,he===0){if(Object(Fe)!==Fe)return;De=!1}else for(;!(De=(Nt=pn.call(Fe)).done)&&(ht.push(Nt.value),ht.length!==he);De=!0);}catch(Ke){we=!0,ln=Ke}finally{try{if(!De&&Fe.return!=null&&(Yn=Fe.return(),Object(Yn)!==Yn))return}finally{if(we)throw ln}}return ht}}function v(K,he){(he==null||he>K.length)&&(he=K.length);for(var Fe=0,Nt=Array(he);Fe<he;Fe++)Nt[Fe]=K[Fe];return Nt}function m(K,he){if(K){if(typeof K=="string")return v(K,he);var Fe={}.toString.call(K).slice(8,-1);return Fe==="Object"&&K.constructor&&(Fe=K.constructor.name),Fe==="Map"||Fe==="Set"?Array.from(K):Fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe)?v(K,he):void 0}}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(K,he){return h(K)||E(K,he)||m(K,he)||S()}var O=u(96540),R=u(44207),C=u(8719),L=u(46942),j=u.n(L),I=u(20998);function U(K,he){var Fe={};return Fe[K.toLowerCase()]=he.toLowerCase(),Fe["Webkit".concat(K)]="webkit".concat(he),Fe["Moz".concat(K)]="moz".concat(he),Fe["ms".concat(K)]="MS".concat(he),Fe["O".concat(K)]="o".concat(he.toLowerCase()),Fe}function $(K,he){var Fe={animationend:U("Animation","AnimationEnd"),transitionend:U("Transition","TransitionEnd")};return K&&("AnimationEvent"in he||delete Fe.animationend.animation,"TransitionEvent"in he||delete Fe.transitionend.transition),Fe}var ee=$((0,I.A)(),typeof window<"u"?window:{}),re={};if((0,I.A)()){var Se=document.createElement("div");re=Se.style}var z={};function Q(K){if(z[K])return z[K];var he=ee[K];if(he)for(var Fe=Object.keys(he),Nt=Fe.length,ln=0;ln<Nt;ln+=1){var pn=Fe[ln];if(Object.prototype.hasOwnProperty.call(he,pn)&&pn in re)return z[K]=he[pn],z[K]}return""}var ce=Q("animationend"),se=Q("transitionend"),q=!!(ce&&se),te=ce||"animationend",A=se||"transitionend";function T(K,he){if(!K)return null;if(l(K)==="object"){var Fe=he.replace(/-\w/g,function(Nt){return Nt[1].toUpperCase()});return K[Fe]}return"".concat(K,"-").concat(he)}var B="none",X="appear",ue="enter",ie="leave",Te="none",je="prepare",yt="start",tt="active",Ze="end",Ne=u(1233),it=u(25371);const Rt=function(){var K=O.useRef(null);function he(){it.A.cancel(K.current)}function Fe(Nt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;he();var pn=(0,it.A)(function(){ln<=1?Nt({isCanceled:function(){return pn!==K.current}}):Fe(Nt,ln-1)});K.current=pn}return O.useEffect(function(){return function(){he()}},[]),[Fe,he]};var Dn=(0,I.A)()?O.useLayoutEffect:O.useEffect;const Mt=Dn;var Wt=[je,yt,tt,Ze],Tn=!1,bn=!0;function $t(K){return K===tt||K===Ze}const Ct=function(K,he){var Fe=(0,Ne.A)(Te),Nt=d(Fe,2),ln=Nt[0],pn=Nt[1],Yn=Rt(),ht=d(Yn,2),De=ht[0],we=ht[1];function Ke(){pn(je,!0)}return Mt(function(){if(ln!==Te&&ln!==Ze){var be=Wt.indexOf(ln),pt=Wt[be+1],We=he(ln);We===Tn?pn(pt,!0):De(function(Je){function ye(){Je.isCanceled()||pn(pt,!0)}We===!0?ye():Promise.resolve(We).then(ye)})}},[K,ln]),O.useEffect(function(){return function(){we()}},[]),[Ke,ln]},Z=function(K){var he=(0,O.useRef)(),Fe=(0,O.useRef)(K);Fe.current=K;var Nt=O.useCallback(function(Yn){Fe.current(Yn)},[]);function ln(Yn){Yn&&(Yn.removeEventListener(A,Nt),Yn.removeEventListener(te,Nt))}function pn(Yn){he.current&&he.current!==Yn&&ln(he.current),Yn&&Yn!==he.current&&(Yn.addEventListener(A,Nt),Yn.addEventListener(te,Nt),he.current=Yn)}return O.useEffect(function(){return function(){ln(he.current)}},[]),[pn,ln]};function me(K,he,Fe,Nt){var ln=Nt.motionEnter,pn=ln===void 0?!0:ln,Yn=Nt.motionAppear,ht=Yn===void 0?!0:Yn,De=Nt.motionLeave,we=De===void 0?!0:De,Ke=Nt.motionDeadline,be=Nt.motionLeaveImmediately,pt=Nt.onAppearPrepare,We=Nt.onEnterPrepare,Je=Nt.onLeavePrepare,ye=Nt.onAppearStart,Qe=Nt.onEnterStart,ze=Nt.onLeaveStart,qe=Nt.onAppearActive,Pt=Nt.onEnterActive,zt=Nt.onLeaveActive,un=Nt.onAppearEnd,hn=Nt.onEnterEnd,xt=Nt.onLeaveEnd,_t=Nt.onVisibleChanged,qt=(0,Ne.A)(),fn=d(qt,2),On=fn[0],Gn=fn[1],Bn=(0,Ne.A)(B),Lr=d(Bn,2),An=Lr[0],Un=Lr[1],cr=(0,Ne.A)(null),mr=d(cr,2),hr=mr[0],ar=mr[1],Cr=(0,O.useRef)(!1),Yr=(0,O.useRef)(null);function Xr(){return Fe()}var ni=(0,O.useRef)(!1);function ki(Ve){var vt=Xr();if(!(Ve&&!Ve.deadline&&Ve.target!==vt)){var Qt=ni.current,nt;An===X&&Qt?nt=un?.(vt,Ve):An===ue&&Qt?nt=hn?.(vt,Ve):An===ie&&Qt&&(nt=xt?.(vt,Ve)),An!==B&&Qt&&nt!==!1&&(Un(B,!0),ar(null,!0))}}var zr=Z(ki),Ur=d(zr,1),jt=Ur[0],sn=O.useMemo(function(){var Ve,vt,Qt;switch(An){case X:return Ve={},x(Ve,je,pt),x(Ve,yt,ye),x(Ve,tt,qe),Ve;case ue:return vt={},x(vt,je,We),x(vt,yt,Qe),x(vt,tt,Pt),vt;case ie:return Qt={},x(Qt,je,Je),x(Qt,yt,ze),x(Qt,tt,zt),Qt;default:return{}}},[An]),Rn=Ct(An,function(Ve){if(Ve===je){var vt=sn[je];return vt?vt(Xr()):Tn}if(wn in sn){var Qt;ar(((Qt=sn[wn])===null||Qt===void 0?void 0:Qt.call(sn,Xr(),null))||null)}return wn===tt&&(jt(Xr()),Ke>0&&(clearTimeout(Yr.current),Yr.current=setTimeout(function(){ki({deadline:!0})},Ke))),bn}),H=d(Rn,2),Be=H[0],wn=H[1],bi=$t(wn);ni.current=bi,Mt(function(){Gn(he);var Ve=Cr.current;if(Cr.current=!0,!!K){var vt;!Ve&&he&&ht&&(vt=X),Ve&&he&&pn&&(vt=ue),(Ve&&!he&&we||!Ve&&be&&!he&&we)&&(vt=ie),vt&&(Un(vt),Be())}},[he]),(0,O.useEffect)(function(){(An===X&&!ht||An===ue&&!pn||An===ie&&!we)&&Un(B)},[ht,pn,we]),(0,O.useEffect)(function(){return function(){Cr.current=!1,clearTimeout(Yr.current)}},[]);var Oi=O.useRef(!1);(0,O.useEffect)(function(){On&&(Oi.current=!0),On!==void 0&&An===B&&((Oi.current||On)&&_t?.(On),Oi.current=!0)},[On,An]);var de=hr;return sn[je]&&wn===yt&&(de=p({transition:"none"},de)),[An,wn,de,On??he]}function ke(K,he){if(!(K instanceof he))throw new TypeError("Cannot call a class as a function")}function Ee(K,he){for(var Fe=0;Fe<he.length;Fe++){var Nt=he[Fe];Nt.enumerable=Nt.enumerable||!1,Nt.configurable=!0,"value"in Nt&&(Nt.writable=!0),Object.defineProperty(K,y(Nt.key),Nt)}}function _e(K,he,Fe){return he&&Ee(K.prototype,he),Fe&&Ee(K,Fe),Object.defineProperty(K,"prototype",{writable:!1}),K}function ge(K,he){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Fe,Nt){return Fe.__proto__=Nt,Fe},ge(K,he)}function Me(K,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(he&&he.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),Object.defineProperty(K,"prototype",{writable:!1}),he&&ge(K,he)}function lt(K){return lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(he){return he.__proto__||Object.getPrototypeOf(he)},lt(K)}function Ft(){try{var K=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ft=function(){return!!K})()}function Et(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function Zt(K,he){if(he&&(l(he)=="object"||typeof he=="function"))return he;if(he!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(K)}function nn(K){var he=Ft();return function(){var Fe,Nt=lt(K);if(he){var ln=lt(this).constructor;Fe=Reflect.construct(Nt,arguments,ln)}else Fe=Nt.apply(this,arguments);return Zt(this,Fe)}}var Pn=function(K){Me(Fe,K);var he=nn(Fe);function Fe(){return ke(this,Fe),he.apply(this,arguments)}return _e(Fe,[{key:"render",value:function(){return this.props.children}}]),Fe}(O.Component);const rn=Pn;function Vt(K){var he=K;l(K)==="object"&&(he=K.transitionSupport);function Fe(ln){return!!(ln.motionName&&he)}var Nt=O.forwardRef(function(ln,pn){var Yn=ln.visible,ht=Yn===void 0?!0:Yn,De=ln.removeOnLeave,we=De===void 0?!0:De,Ke=ln.forceRender,be=ln.children,pt=ln.motionName,We=ln.leavedClassName,Je=ln.eventProps,ye=Fe(ln),Qe=(0,O.useRef)(),ze=(0,O.useRef)();function qe(){try{return Qe.current instanceof HTMLElement?Qe.current:(0,R.Ay)(ze.current)}catch{return null}}var Pt=me(ye,ht,qe,ln),zt=d(Pt,4),un=zt[0],hn=zt[1],xt=zt[2],_t=zt[3],qt=O.useRef(_t);_t&&(qt.current=!0);var fn=O.useCallback(function(cr){Qe.current=cr,(0,C.Xf)(pn,cr)},[pn]),On,Gn=p(p({},Je),{},{visible:ht});if(!be)On=null;else if(un===B||!Fe(ln))_t?On=be(p({},Gn),fn):!we&&qt.current?On=be(p(p({},Gn),{},{className:We}),fn):Ke?On=be(p(p({},Gn),{},{style:{display:"none"}}),fn):On=null;else{var Bn,Lr;hn===je?Lr="prepare":$t(hn)?Lr="active":hn===yt&&(Lr="start"),On=be(p(p({},Gn),{},{className:j()(T(pt,un),(Bn={},x(Bn,T(pt,"".concat(un,"-").concat(Lr)),Lr),x(Bn,pt,typeof pt=="string"),Bn)),style:xt}),fn)}if(O.isValidElement(On)&&(0,C.f3)(On)){var An=On,Un=An.ref;Un||(On=O.cloneElement(On,{ref:fn}))}return O.createElement(rn,{ref:ze},On)});return Nt.displayName="CSSMotion",Nt}const Kn=Vt(q);function ur(){return ur=Object.assign?Object.assign.bind():function(K){for(var he=1;he<arguments.length;he++){var Fe=arguments[he];for(var Nt in Fe)({}).hasOwnProperty.call(Fe,Nt)&&(K[Nt]=Fe[Nt])}return K},ur.apply(null,arguments)}function on(K,he){if(K==null)return{};var Fe={};for(var Nt in K)if({}.hasOwnProperty.call(K,Nt)){if(he.indexOf(Nt)!==-1)continue;Fe[Nt]=K[Nt]}return Fe}function tr(K,he){if(K==null)return{};var Fe,Nt,ln=on(K,he);if(Object.getOwnPropertySymbols){var pn=Object.getOwnPropertySymbols(K);for(Nt=0;Nt<pn.length;Nt++)Fe=pn[Nt],he.indexOf(Fe)===-1&&{}.propertyIsEnumerable.call(K,Fe)&&(ln[Fe]=K[Fe])}return ln}var Cn="add",Wn="keep",er="remove",Fn="removed";function en(K){var he;return K&&l(K)==="object"&&"key"in K?he=K:he={key:K},p(p({},he),{},{key:String(he.key)})}function gn(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return K.map(en)}function kn(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fe=[],Nt=0,ln=he.length,pn=gn(K),Yn=gn(he);pn.forEach(function(we){for(var Ke=!1,be=Nt;be<ln;be+=1){var pt=Yn[be];if(pt.key===we.key){Nt<be&&(Fe=Fe.concat(Yn.slice(Nt,be).map(function(We){return p(p({},We),{},{status:Cn})})),Nt=be),Fe.push(p(p({},pt),{},{status:Wn})),Nt+=1,Ke=!0;break}}Ke||Fe.push(p(p({},we),{},{status:er}))}),Nt<ln&&(Fe=Fe.concat(Yn.slice(Nt).map(function(we){return p(p({},we),{},{status:Cn})})));var ht={};Fe.forEach(function(we){var Ke=we.key;ht[Ke]=(ht[Ke]||0)+1});var De=Object.keys(ht).filter(function(we){return ht[we]>1});return De.forEach(function(we){Fe=Fe.filter(function(Ke){var be=Ke.key,pt=Ke.status;return be!==we||pt!==er}),Fe.forEach(function(Ke){Ke.key===we&&(Ke.status=Wn)})}),Fe}var Jn=["component","children","onVisibleChanged","onAllRemoved"],Nn=["status"],kr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bt(K){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kn,Fe=function(Nt){Me(pn,Nt);var ln=nn(pn);function pn(){var Yn;ke(this,pn);for(var ht=arguments.length,De=new Array(ht),we=0;we<ht;we++)De[we]=arguments[we];return Yn=ln.call.apply(ln,[this].concat(De)),Yn.state={keyEntities:[]},Yn.removeKey=function(Ke){var be=Yn.state.keyEntities,pt=be.map(function(We){return We.key!==Ke?We:p(p({},We),{},{status:Fn})});return Yn.setState({keyEntities:pt}),pt.filter(function(We){var Je=We.status;return Je!==Fn}).length},Yn}return _e(pn,[{key:"render",value:function(){var ht=this,De=this.state.keyEntities,we=this.props,Ke=we.component,be=we.children,pt=we.onVisibleChanged,We=we.onAllRemoved,Je=tr(we,Jn),ye=Ke||O.Fragment,Qe={};return kr.forEach(function(ze){Qe[ze]=Je[ze],delete Je[ze]}),delete Je.keys,O.createElement(ye,Je,De.map(function(ze){var qe=ze.status,Pt=tr(ze,Nn),zt=qe===Cn||qe===Wn;return O.createElement(he,ur({},Qe,{key:Pt.key,visible:zt,eventProps:Pt,onVisibleChanged:function(hn){if(pt?.(hn,{key:Pt.key}),!hn){var xt=ht.removeKey(Pt.key);xt===0&&We&&We()}}}),be)}))}}],[{key:"getDerivedStateFromProps",value:function(ht,De){var we=ht.keys,Ke=De.keyEntities,be=gn(we),pt=kn(Ke,be);return{keyEntities:pt.filter(function(We){var Je=Ke.find(function(ye){var Qe=ye.key;return We.key===Qe});return!(Je&&Je.status===Fn&&We.status===er)})}}}]),pn}(O.Component);return Fe.defaultProps={component:"div"},Fe}const ne=bt(q),fe=Kn},1108:(Ge,w,u)=>{"use strict";u.d(w,{G:()=>g});var l=u(29407);function g(y){const x=(0,l.a)(y),f=new Date(Date.UTC(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds(),x.getMilliseconds()));return f.setUTCFullYear(x.getFullYear()),+y-+f}},1233:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(34297),g=u(96540);function y(x){var f=g.useRef(!1),p=g.useState(x),h=(0,l.A)(p,2),E=h[0],v=h[1];g.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function m(S,d){d&&f.current||v(S)}return[E,m]}},1262:Ge=>{function w(u){"@babel/helpers - typeof";return Ge.exports=w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w(u)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},1343:(Ge,w,u)=>{"use strict";u.d(w,{_:()=>g});var l=u(92908);function g(y,x){return x===void 0&&(x=0),(0,l.N)(function(f,p){p.add(y.schedule(function(){return f.subscribe(p)},x))})}},1503:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(x,f,p,h){h===void 0&&(h=p),Object.defineProperty(x,h,{enumerable:!0,get:function(){return f[p]}})}:function(x,f,p,h){h===void 0&&(h=p),x[h]=f[p]}),g=this&&this.__exportStar||function(x,f){for(var p in x)p!=="default"&&!Object.prototype.hasOwnProperty.call(f,p)&&l(f,x,p)};Object.defineProperty(w,"__esModule",{value:!0}),w.Priority=w.createAction=void 0;var y=u(65178);Object.defineProperty(w,"createAction",{enumerable:!0,get:function(){return y.createAction}}),Object.defineProperty(w,"Priority",{enumerable:!0,get:function(){return y.Priority}}),g(u(46267),w),g(u(81423),w),g(u(7985),w),g(u(34933),w),g(u(22863),w),g(u(4122),w),g(u(74938),w),g(u(43195),w),g(u(62715),w),g(u(60950),w),g(u(52882),w)},1578:(Ge,w,u)=>{"use strict";u.d(w,{Io:()=>h,X7:()=>x,_E:()=>E,hh:()=>g,hu:()=>l,ks:()=>y,mY:()=>p,ng:()=>f});var l=(m=>(m[m.Comparison=0]="Comparison",m[m.Logical=1]="Logical",m))(l||{}),g=(m=>(m[m.Value=0]="Value",m[m.Filter=1]="Filter",m[m.Group=2]="Group",m[m.Column=3]="Column",m[m.Table=4]="Table",m))(g||{}),y=(m=>(m.Parenthesis="delimiter.parenthesis.sql",m.Whitespace="white.sql",m.Keyword="keyword.sql",m.Delimiter="delimiter.sql",m.Operator="operator.sql",m.Identifier="identifier.sql",m.IdentifierQuote="identifier.quote.sql",m.Type="type.sql",m.Function="predefined.sql",m.Number="number.sql",m.String="string.sql",m.Variable="variable.sql",m))(y||{}),x=(m=>(m.Unknown="unknown",m.SelectKeyword="selectKeyword",m.WithKeyword="withKeyword",m.AfterSelectKeyword="afterSelectKeyword",m.AfterSelectArguments="afterSelectArguments",m.AfterSelectFuncFirstArgument="afterSelectFuncFirstArgument",m.SelectAlias="selectAlias",m.AfterFromKeyword="afterFromKeyword",m.AfterTable="afterTable",m.SchemaFuncFirstArgument="schemaFuncFirstArgument",m.SchemaFuncExtraArgument="schemaFuncExtraArgument",m.FromKeyword="fromKeyword",m.AfterFrom="afterFrom",m.WhereKeyword="whereKeyword",m.WhereComparisonOperator="whereComparisonOperator",m.WhereValue="whereValue",m.AfterWhereFunctionArgument="afterWhereFunctionArgument",m.AfterGroupByFunctionArgument="afterGroupByFunctionArgument",m.AfterWhereValue="afterWhereValue",m.AfterGroupByKeywords="afterGroupByKeywords",m.AfterGroupBy="afterGroupBy",m.AfterOrderByKeywords="afterOrderByKeywords",m.AfterOrderByFunction="afterOrderByFunction",m.AfterOrderByDirection="afterOrderByDirection",m.AfterIsOperator="afterIsOperator",m.AfterIsNotOperator="afterIsNotOperator",m.AfterSchema="afterSchema",m))(x||{}),f=(m=>(m.Schemas="schemas",m.Tables="tables",m.Columns="columns",m.SelectKeyword="selectKeyword",m.WithKeyword="withKeyword",m.FunctionsWithArguments="functionsWithArguments",m.FromKeyword="fromKeyword",m.WhereKeyword="whereKeyword",m.GroupByKeywords="groupByKeywords",m.OrderByKeywords="orderByKeywords",m.FunctionsWithoutArguments="functionsWithoutArguments",m.LimitKeyword="limitKeyword",m.SortOrderDirectionKeyword="sortOrderDirectionKeyword",m.ComparisonOperators="comparisonOperators",m.LogicalOperators="logicalOperators",m.SelectMacro="selectMacro",m.TableMacro="tableMacro",m.FilterMacro="filterMacro",m.GroupMacro="groupMacro",m.BoolValues="boolValues",m.NullValue="nullValue",m.NotKeyword="notKeyword",m.TemplateVariables="templateVariables",m.StarWildCard="starWildCard",m))(f||{}),p=(m=>(m.High="a",m.MediumHigh="d",m.Medium="g",m.MediumLow="k",m.Low="q",m))(p||{}),h=(m=>(m[m.Method=0]="Method",m[m.Function=1]="Function",m[m.Constructor=2]="Constructor",m[m.Field=3]="Field",m[m.Variable=4]="Variable",m[m.Class=5]="Class",m[m.Struct=6]="Struct",m[m.Interface=7]="Interface",m[m.Module=8]="Module",m[m.Property=9]="Property",m[m.Event=10]="Event",m[m.Operator=11]="Operator",m[m.Unit=12]="Unit",m[m.Value=13]="Value",m[m.Constant=14]="Constant",m[m.Enum=15]="Enum",m[m.EnumMember=16]="EnumMember",m[m.Keyword=17]="Keyword",m[m.Text=18]="Text",m[m.Color=19]="Color",m[m.File=20]="File",m[m.Reference=21]="Reference",m[m.Customcolor=22]="Customcolor",m[m.Folder=23]="Folder",m[m.TypeParameter=24]="TypeParameter",m[m.User=25]="User",m[m.Issue=26]="Issue",m[m.Snippet=27]="Snippet",m))(h||{}),E=(m=>(m[m.KeepWhitespace=1]="KeepWhitespace",m[m.InsertAsSnippet=4]="InsertAsSnippet",m))(E||{}),v=(m=>(m.Builder="builder",m.Code="code",m))(v||{})},1656:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{ApplyUnsignedRoundingMode:()=>vr,ArrayCreate:()=>Ve,CanonicalizeLocaleList:()=>l,CanonicalizeTimeZoneName:()=>g,CoerceOptionsToObject:()=>Xn,CollapseNumberRange:()=>Fr,ComputeExponent:()=>P,ComputeExponentForMagnitude:()=>qr,CurrencyDigits:()=>oe,DateFromTime:()=>Qr,Day:()=>Gt,DayFromYear:()=>Qn,DayWithinYear:()=>xi,DaysInYear:()=>ai,FormatApproximately:()=>hi,FormatNumeric:()=>Vi,FormatNumericRange:()=>Pi,FormatNumericRangeToParts:()=>mt,FormatNumericToParts:()=>tn,FormatNumericToString:()=>D,GetNumberOption:()=>Nr,GetOption:()=>ti,GetOptionsObject:()=>_i,GetStringOrBooleanOption:()=>Ii,GetUnsignedRoundingMode:()=>Mi,HasOwnProperty:()=>vt,HourFromTime:()=>ft,InLeapYear:()=>mi,InitializeNumberFormat:()=>vn,IsSanctionedSimpleUnitIdentifier:()=>ve,IsValidTimeZoneName:()=>Le,IsWellFormedCurrencyCode:()=>Lt,IsWellFormedUnitIdentifier:()=>nr,MinFromTime:()=>zn,MonthFromTime:()=>ei,OrdinaryHasInstance:()=>Ea,PartitionNumberPattern:()=>Ti,PartitionNumberRangePattern:()=>Di,PartitionPattern:()=>Ln,RangePatternType:()=>Jr,SANCTIONED_UNITS:()=>ta,SIMPLE_UNITS:()=>k,SameValue:()=>de,SecFromTime:()=>Zn,SetNumberFormatDigitOptions:()=>St,SetNumberFormatUnitOptions:()=>_n,SupportedLocales:()=>_r,TimeClip:()=>bi,TimeFromYear:()=>Or,ToIntlMathematicalValue:()=>ii,ToNumber:()=>Be,ToObject:()=>Oi,ToPrimitive:()=>Dt,ToRawFixed:()=>Sa,ToRawPrecision:()=>Y,ToString:()=>H,Type:()=>Qt,WeekDay:()=>En,YearFromTime:()=>Pr,ZERO:()=>ze,_formatToParts:()=>dn,createDataProperty:()=>Xr,createMemoizedDateTimeFormat:()=>Ur,createMemoizedListFormat:()=>Rn,createMemoizedLocale:()=>sn,createMemoizedNumberFormat:()=>zr,createMemoizedPluralRules:()=>jt,defineProperty:()=>Yr,getInternalSlot:()=>hr,getMultiInternalSlots:()=>ar,invariant:()=>ki,isLiteralPart:()=>Cr,isMissingLocaleDataError:()=>Kr,msFromTime:()=>wa,removeUnitNamespace:()=>Ji,setInternalSlot:()=>cr,setMultiInternalSlots:()=>mr});function l(le){return Intl.getCanonicalLocales(le)}function g(le,Ae){var Oe=Ae.zoneNames,et=Ae.uppercaseLinks,Ot=le.toUpperCase(),It=Oe.reduce(function(mn,At){return mn[At.toUpperCase()]=At,mn},{}),Mn=et[Ot]||It[Ot];return Mn==="Etc/UTC"||Mn==="Etc/GMT"?"UTC":Mn}/*! * decimal.js v10.5.0 * An arbitrary-precision Decimal type for JavaScript. * https://github.com/MikeMcl/decimal.js * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com> * MIT Licence */var y=9e15,x=1e9,f="0123456789abcdef",p="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",h="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",E={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-y,maxE:y,crypto:!1},v,m,S=!0,d="[DecimalError] ",O=d+"Invalid argument: ",R=d+"Precision limit exceeded",C=d+"crypto unavailable",L="[object Decimal]",j=Math.floor,I=Math.pow,U=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,$=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,ee=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,re=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Se=1e7,z=7,Q=9007199254740991,ce=p.length-1,se=h.length-1,q={toStringTag:L};q.absoluteValue=q.abs=function(){var le=new this.constructor(this);return le.s<0&&(le.s=1),ie(le)},q.ceil=function(){return ie(new this.constructor(this),this.e+1,2)},q.clampedTo=q.clamp=function(le,Ae){var Oe,et=this,Ot=et.constructor;if(le=new Ot(le),Ae=new Ot(Ae),!le.s||!Ae.s)return new Ot(NaN);if(le.gt(Ae))throw Error(O+Ae);return Oe=et.cmp(le),Oe<0?le:et.cmp(Ae)>0?Ae:new Ot(et)},q.comparedTo=q.cmp=function(le){var Ae,Oe,et,Ot,It=this,Mn=It.d,mn=(le=new It.constructor(le)).d,At=It.s,Ut=le.s;if(!Mn||!mn)return!At||!Ut?NaN:At!==Ut?At:Mn===mn?0:!Mn^At<0?1:-1;if(!Mn[0]||!mn[0])return Mn[0]?At:mn[0]?-Ut:0;if(At!==Ut)return At;if(It.e!==le.e)return It.e>le.e^At<0?1:-1;for(et=Mn.length,Ot=mn.length,Ae=0,Oe=et<Ot?et:Ot;Ae<Oe;++Ae)if(Mn[Ae]!==mn[Ae])return Mn[Ae]>mn[Ae]^At<0?1:-1;return et===Ot?0:et>Ot^At<0?1:-1},q.cosine=q.cos=function(){var le,Ae,Oe=this,et=Oe.constructor;return Oe.d?Oe.d[0]?(le=et.precision,Ae=et.rounding,et.precision=le+Math.max(Oe.e,Oe.sd())+z,et.rounding=1,Oe=X(et,ke(et,Oe)),et.precision=le,et.rounding=Ae,ie(m==2||m==3?Oe.neg():Oe,le,Ae,!0)):new et(1):new et(NaN)},q.cubeRoot=q.cbrt=function(){var le,Ae,Oe,et,Ot,It,Mn,mn,At,Ut,jn=this,Jt=jn.constructor;if(!jn.isFinite()||jn.isZero())return new Jt(jn);for(S=!1,It=jn.s*I(jn.s*jn,1/3),!It||Math.abs(It)==1/0?(Oe=te(jn.d),le=jn.e,(It=(le-Oe.length+1)%3)&&(Oe+=It==1||It==-2?"0":"00"),It=I(Oe,1/3),le=j((le+1)/3)-(le%3==(le<0?-1:2)),It==1/0?Oe="5e"+le:(Oe=It.toExponential(),Oe=Oe.slice(0,Oe.indexOf("e")+1)+le),et=new Jt(Oe),et.s=jn.s):et=new Jt(It.toString()),Mn=(le=Jt.precision)+3;;)if(mn=et,At=mn.times(mn).times(mn),Ut=At.plus(jn),et=ue(Ut.plus(jn).times(mn),Ut.plus(At),Mn+2,1),te(mn.d).slice(0,Mn)===(Oe=te(et.d)).slice(0,Mn))if(Oe=Oe.slice(Mn-3,Mn+1),Oe=="9999"||!Ot&&Oe=="4999"){if(!Ot&&(ie(mn,le+1,0),mn.times(mn).times(mn).eq(jn))){et=mn;break}Mn+=4,Ot=1}else{(!+Oe||!+Oe.slice(1)&&Oe.charAt(0)=="5")&&(ie(et,le+1,1),Ae=!et.times(et).times(et).eq(jn));break}return S=!0,ie(et,le,Jt.rounding,Ae)},q.decimalPlaces=q.dp=function(){var le,Ae=this.d,Oe=NaN;if(Ae){if(le=Ae.length-1,Oe=(le-j(this.e/z))*z,le=Ae[le],le)for(;le%10==0;le/=10)Oe--;Oe<0&&(Oe=0)}return Oe},q.dividedBy=q.div=function(le){return ue(this,new this.constructor(le))},q.dividedToIntegerBy=q.divToInt=function(le){var Ae=this,Oe=Ae.constructor;return ie(ue(Ae,new Oe(le),0,1,1),Oe.precision,Oe.rounding)},q.equals=q.eq=function(le){return this.cmp(le)===0},q.floor=function(){return ie(new this.constructor(this),this.e+1,3)},q.greaterThan=q.gt=function(le){return this.cmp(le)>0},q.greaterThanOrEqualTo=q.gte=function(le){var Ae=this.cmp(le);return Ae==1||Ae===0},q.hyperbolicCosine=q.cosh=function(){var le,Ae,Oe,et,Ot,It=this,Mn=It.constructor,mn=new Mn(1);if(!It.isFinite())return new Mn(It.s?1/0:NaN);if(It.isZero())return mn;Oe=Mn.precision,et=Mn.rounding,Mn.precision=Oe+Math.max(It.e,It.sd())+4,Mn.rounding=1,Ot=It.d.length,Ot<32?(le=Math.ceil(Ot/3),Ae=(1/me(4,le)).toString()):(le=16,Ae="2.3283064365386962890625e-10"),It=Z(Mn,1,It.times(Ae),new Mn(1),!0);for(var At,Ut=le,jn=new Mn(8);Ut--;)At=It.times(It),It=mn.minus(At.times(jn.minus(At.times(jn))));return ie(It,Mn.precision=Oe,Mn.rounding=et,!0)},q.hyperbolicSine=q.sinh=function(){var le,Ae,Oe,et,Ot=this,It=Ot.constructor;if(!Ot.isFinite()||Ot.isZero())return new It(Ot);if(Ae=It.precision,Oe=It.rounding,It.precision=Ae+Math.max(Ot.e,Ot.sd())+4,It.rounding=1,et=Ot.d.length,et<3)Ot=Z(It,2,Ot,Ot,!0);else{le=1.4*Math.sqrt(et),le=le>16?16:le|0,Ot=Ot.times(1/me(5,le)),Ot=Z(It,2,Ot,Ot,!0);for(var Mn,mn=new It(5),At=new It(16),Ut=new It(20);le--;)Mn=Ot.times(Ot),Ot=Ot.times(mn.plus(Mn.times(At.times(Mn).plus(Ut))))}return It.precision=Ae,It.rounding=Oe,ie(Ot,Ae,Oe,!0)},q.hyperbolicTangent=q.tanh=function(){var le,Ae,Oe=this,et=Oe.constructor;return Oe.isFinite()?Oe.isZero()?new et(Oe):(le=et.precision,Ae=et.rounding,et.precision=le+7,et.rounding=1,ue(Oe.sinh(),Oe.cosh(),et.precision=le,et.rounding=Ae)):new et(Oe.s)},q.inverseCosine=q.acos=function(){var le=this,Ae=le.constructor,Oe=le.abs().cmp(1),et=Ae.precision,Ot=Ae.rounding;return Oe!==-1?Oe===0?le.isNeg()?tt(Ae,et,Ot):new Ae(0):new Ae(NaN):le.isZero()?tt(Ae,et+4,Ot).times(.5):(Ae.precision=et+6,Ae.rounding=1,le=new Ae(1).minus(le).div(le.plus(1)).sqrt().atan(),Ae.precision=et,Ae.rounding=Ot,le.times(2))},q.inverseHyperbolicCosine=q.acosh=function(){var le,Ae,Oe=this,et=Oe.constructor;return Oe.lte(1)?new et(Oe.eq(1)?0:NaN):Oe.isFinite()?(le=et.precision,Ae=et.rounding,et.precision=le+Math.max(Math.abs(Oe.e),Oe.sd())+4,et.rounding=1,S=!1,Oe=Oe.times(Oe).minus(1).sqrt().plus(Oe),S=!0,et.precision=le,et.rounding=Ae,Oe.ln()):new et(Oe)},q.inverseHyperbolicSine=q.asinh=function(){var le,Ae,Oe=this,et=Oe.constructor;return!Oe.isFinite()||Oe.isZero()?new et(Oe):(le=et.precision,Ae=et.rounding,et.precision=le+2*Math.max(Math.abs(Oe.e),Oe.sd())+6,et.rounding=1,S=!1,Oe=Oe.times(Oe).plus(1).sqrt().plus(Oe),S=!0,et.precision=le,et.rounding=Ae,Oe.ln())},q.inverseHyperbolicTangent=q.atanh=function(){var le,Ae,Oe,et,Ot=this,It=Ot.constructor;return Ot.isFinite()?Ot.e>=0?new It(Ot.abs().eq(1)?Ot.s/0:Ot.isZero()?Ot:NaN):(le=It.precision,Ae=It.rounding,et=Ot.sd(),Math.max(et,le)<2*-Ot.e-1?ie(new It(Ot),le,Ae,!0):(It.precision=Oe=et-Ot.e,Ot=ue(Ot.plus(1),new It(1).minus(Ot),Oe+le,1),It.precision=le+4,It.rounding=1,Ot=Ot.ln(),It.precision=le,It.rounding=Ae,Ot.times(.5))):new It(NaN)},q.inverseSine=q.asin=function(){var le,Ae,Oe,et,Ot=this,It=Ot.constructor;return Ot.isZero()?new It(Ot):(Ae=Ot.abs().cmp(1),Oe=It.precision,et=It.rounding,Ae!==-1?Ae===0?(le=tt(It,Oe+4,et).times(.5),le.s=Ot.s,le):new It(NaN):(It.precision=Oe+6,It.rounding=1,Ot=Ot.div(new It(1).minus(Ot.times(Ot)).sqrt().plus(1)).atan(),It.precision=Oe,It.rounding=et,Ot.times(2)))},q.inverseTangent=q.atan=function(){var le,Ae,Oe,et,Ot,It,Mn,mn,At,Ut=this,jn=Ut.constructor,Jt=jn.precision,dr=jn.rounding;if(Ut.isFinite()){if(Ut.isZero())return new jn(Ut);if(Ut.abs().eq(1)&&Jt+4<=se)return Mn=tt(jn,Jt+4,dr).times(.25),Mn.s=Ut.s,Mn}else{if(!Ut.s)return new jn(NaN);if(Jt+4<=se)return Mn=tt(jn,Jt+4,dr).times(.5),Mn.s=Ut.s,Mn}for(jn.precision=mn=Jt+10,jn.rounding=1,Oe=Math.min(28,mn/z+2|0),le=Oe;le;--le)Ut=Ut.div(Ut.times(Ut).plus(1).sqrt().plus(1));for(S=!1,Ae=Math.ceil(mn/z),et=1,At=Ut.times(Ut),Mn=new jn(Ut),Ot=Ut;le!==-1;)if(Ot=Ot.times(At),It=Mn.minus(Ot.div(et+=2)),Ot=Ot.times(At),Mn=It.plus(Ot.div(et+=2)),Mn.d[Ae]!==void 0)for(le=Ae;Mn.d[le]===It.d[le]&&le--;);return Oe&&(Mn=Mn.times(2<<Oe-1)),S=!0,ie(Mn,jn.precision=Jt,jn.rounding=dr,!0)},q.isFinite=function(){return!!this.d},q.isInteger=q.isInt=function(){return!!this.d&&j(this.e/z)>this.d.length-2},q.isNaN=function(){return!this.s},q.isNegative=q.isNeg=function(){return this.s<0},q.isPositive=q.isPos=function(){return this.s>0},q.isZero=function(){return!!this.d&&this.d[0]===0},q.lessThan=q.lt=function(le){return this.cmp(le)<0},q.lessThanOrEqualTo=q.lte=function(le){return this.cmp(le)<1},q.logarithm=q.log=function(le){var Ae,Oe,et,Ot,It,Mn,mn,At,Ut=this,jn=Ut.constructor,Jt=jn.precision,dr=jn.rounding,wr=5;if(le==null)le=new jn(10),Ae=!0;else{if(le=new jn(le),Oe=le.d,le.s<0||!Oe||!Oe[0]||le.eq(1))return new jn(NaN);Ae=le.eq(10)}if(Oe=Ut.d,Ut.s<0||!Oe||!Oe[0]||Ut.eq(1))return new jn(Oe&&!Oe[0]?-1/0:Ut.s!=1?NaN:Oe?0:1/0);if(Ae)if(Oe.length>1)It=!0;else{for(Ot=Oe[0];Ot%10===0;)Ot/=10;It=Ot!==1}if(S=!1,mn=Jt+wr,Mn=Wt(Ut,mn),et=Ae?yt(jn,mn+10):Wt(le,mn),At=ue(Mn,et,mn,1),T(At.d,Ot=Jt,dr))do if(mn+=10,Mn=Wt(Ut,mn),et=Ae?yt(jn,mn+10):Wt(le,mn),At=ue(Mn,et,mn,1),!It){+te(At.d).slice(Ot+1,Ot+15)+1==1e14&&(At=ie(At,Jt+1,0));break}while(T(At.d,Ot+=10,dr));return S=!0,ie(At,Jt,dr)},q.minus=q.sub=function(le){var Ae,Oe,et,Ot,It,Mn,mn,At,Ut,jn,Jt,dr,wr=this,Hr=wr.constructor;if(le=new Hr(le),!wr.d||!le.d)return!wr.s||!le.s?le=new Hr(NaN):wr.d?le.s=-le.s:le=new Hr(le.d||wr.s!==le.s?wr:NaN),le;if(wr.s!=le.s)return le.s=-le.s,wr.plus(le);if(Ut=wr.d,dr=le.d,mn=Hr.precision,At=Hr.rounding,!Ut[0]||!dr[0]){if(dr[0])le.s=-le.s;else if(Ut[0])le=new Hr(wr);else return new Hr(At===3?-0:0);return S?ie(le,mn,At):le}if(Oe=j(le.e/z),jn=j(wr.e/z),Ut=Ut.slice(),It=jn-Oe,It){for(Jt=It<0,Jt?(Ae=Ut,It=-It,Mn=dr.length):(Ae=dr,Oe=jn,Mn=Ut.length),et=Math.max(Math.ceil(mn/z),Mn)+2,It>et&&(It=et,Ae.length=1),Ae.reverse(),et=It;et--;)Ae.push(0);Ae.reverse()}else{for(et=Ut.length,Mn=dr.length,Jt=et<Mn,Jt&&(Mn=et),et=0;et<Mn;et++)if(Ut[et]!=dr[et]){Jt=Ut[et]<dr[et];break}It=0}for(Jt&&(Ae=Ut,Ut=dr,dr=Ae,le.s=-le.s),Mn=Ut.length,et=dr.length-Mn;et>0;--et)Ut[Mn++]=0;for(et=dr.length;et>It;){if(Ut[--et]<dr[et]){for(Ot=et;Ot&&Ut[--Ot]===0;)Ut[Ot]=Se-1;--Ut[Ot],Ut[et]+=Se}Ut[et]-=dr[et]}for(;Ut[--Mn]===0;)Ut.pop();for(;Ut[0]===0;Ut.shift())--Oe;return Ut[0]?(le.d=Ut,le.e=je(Ut,Oe),S?ie(le,mn,At):le):new Hr(At===3?-0:0)},q.modulo=q.mod=function(le){var Ae,Oe=this,et=Oe.constructor;return le=new et(le),!Oe.d||!le.s||le.d&&!le.d[0]?new et(NaN):!le.d||Oe.d&&!Oe.d[0]?ie(new et(Oe),et.precision,et.rounding):(S=!1,et.modulo==9?(Ae=ue(Oe,le.abs(),0,3,1),Ae.s*=le.s):Ae=ue(Oe,le,0,et.modulo,1),Ae=Ae.times(le),S=!0,Oe.minus(Ae))},q.naturalExponential=q.exp=function(){return Mt(this)},q.naturalLogarithm=q.ln=function(){return Wt(this)},q.negated=q.neg=function(){var le=new this.constructor(this);return le.s=-le.s,ie(le)},q.plus=q.add=function(le){var Ae,Oe,et,Ot,It,Mn,mn,At,Ut,jn,Jt=this,dr=Jt.constructor;if(le=new dr(le),!Jt.d||!le.d)return!Jt.s||!le.s?le=new dr(NaN):Jt.d||(le=new dr(le.d||Jt.s===le.s?Jt:NaN)),le;if(Jt.s!=le.s)return le.s=-le.s,Jt.minus(le);if(Ut=Jt.d,jn=le.d,mn=dr.precision,At=dr.rounding,!Ut[0]||!jn[0])return jn[0]||(le=new dr(Jt)),S?ie(le,mn,At):le;if(It=j(Jt.e/z),et=j(le.e/z),Ut=Ut.slice(),Ot=It-et,Ot){for(Ot<0?(Oe=Ut,Ot=-Ot,Mn=jn.length):(Oe=jn,et=It,Mn=Ut.length),It=Math.ceil(mn/z),Mn=It>Mn?It+1:Mn+1,Ot>Mn&&(Ot=Mn,Oe.length=1),Oe.reverse();Ot--;)Oe.push(0);Oe.reverse()}for(Mn=Ut.length,Ot=jn.length,Mn-Ot<0&&(Ot=Mn,Oe=jn,jn=Ut,Ut=Oe),Ae=0;Ot;)Ae=(Ut[--Ot]=Ut[Ot]+jn[Ot]+Ae)/Se|0,Ut[Ot]%=Se;for(Ae&&(Ut.unshift(Ae),++et),Mn=Ut.length;Ut[--Mn]==0;)Ut.pop();return le.d=Ut,le.e=je(Ut,et),S?ie(le,mn,At):le},q.precision=q.sd=function(le){var Ae,Oe=this;if(le!==void 0&&le!==!!le&&le!==1&&le!==0)throw Error(O+le);return Oe.d?(Ae=Ze(Oe.d),le&&Oe.e+1>Ae&&(Ae=Oe.e+1)):Ae=NaN,Ae},q.round=function(){var le=this,Ae=le.constructor;return ie(new Ae(le),le.e+1,Ae.rounding)},q.sine=q.sin=function(){var le,Ae,Oe=this,et=Oe.constructor;return Oe.isFinite()?Oe.isZero()?new et(Oe):(le=et.precision,Ae=et.rounding,et.precision=le+Math.max(Oe.e,Oe.sd())+z,et.rounding=1,Oe=Ct(et,ke(et,Oe)),et.precision=le,et.rounding=Ae,ie(m>2?Oe.neg():Oe,le,Ae,!0)):new et(NaN)},q.squareRoot=q.sqrt=function(){var le,Ae,Oe,et,Ot,It,Mn=this,mn=Mn.d,At=Mn.e,Ut=Mn.s,jn=Mn.constructor;if(Ut!==1||!mn||!mn[0])return new jn(!Ut||Ut<0&&(!mn||mn[0])?NaN:mn?Mn:1/0);for(S=!1,Ut=Math.sqrt(+Mn),Ut==0||Ut==1/0?(Ae=te(mn),(Ae.length+At)%2==0&&(Ae+="0"),Ut=Math.sqrt(Ae),At=j((At+1)/2)-(At<0||At%2),Ut==1/0?Ae="5e"+At:(Ae=Ut.toExponential(),Ae=Ae.slice(0,Ae.indexOf("e")+1)+At),et=new jn(Ae)):et=new jn(Ut.toString()),Oe=(At=jn.precision)+3;;)if(It=et,et=It.plus(ue(Mn,It,Oe+2,1)).times(.5),te(It.d).slice(0,Oe)===(Ae=te(et.d)).slice(0,Oe))if(Ae=Ae.slice(Oe-3,Oe+1),Ae=="9999"||!Ot&&Ae=="4999"){if(!Ot&&(ie(It,At+1,0),It.times(It).eq(Mn))){et=It;break}Oe+=4,Ot=1}else{(!+Ae||!+Ae.slice(1)&&Ae.charAt(0)=="5")&&(ie(et,At+1,1),le=!et.times(et).eq(Mn));break}return S=!0,ie(et,At,jn.rounding,le)},q.tangent=q.tan=function(){var le,Ae,Oe=this,et=Oe.constructor;return Oe.isFinite()?Oe.isZero()?new et(Oe):(le=et.precision,Ae=et.rounding,et.precision=le+10,et.rounding=1,Oe=Oe.sin(),Oe.s=1,Oe=ue(Oe,new et(1).minus(Oe.times(Oe)).sqrt(),le+10,0),et.precision=le,et.rounding=Ae,ie(m==2||m==4?Oe.neg():Oe,le,Ae,!0)):new et(NaN)},q.times=q.mul=function(le){var Ae,Oe,et,Ot,It,Mn,mn,At,Ut,jn=this,Jt=jn.constructor,dr=jn.d,wr=(le=new Jt(le)).d;if(le.s*=jn.s,!dr||!dr[0]||!wr||!wr[0])return new Jt(!le.s||dr&&!dr[0]&&!wr||wr&&!wr[0]&&!dr?NaN:!dr||!wr?le.s/0:le.s*0);for(Oe=j(jn.e/z)+j(le.e/z),At=dr.length,Ut=wr.length,At<Ut&&(It=dr,dr=wr,wr=It,Mn=At,At=Ut,Ut=Mn),It=[],Mn=At+Ut,et=Mn;et--;)It.push(0);for(et=Ut;--et>=0;){for(Ae=0,Ot=At+et;Ot>et;)mn=It[Ot]+wr[et]*dr[Ot-et-1]+Ae,It[Ot--]=mn%Se|0,Ae=mn/Se|0;It[Ot]=(It[Ot]+Ae)%Se|0}for(;!It[--Mn];)It.pop();return Ae?++Oe:It.shift(),le.d=It,le.e=je(It,Oe),S?ie(le,Jt.precision,Jt.rounding):le},q.toBinary=function(le,Ae){return Ee(this,2,le,Ae)},q.toDecimalPlaces=q.toDP=function(le,Ae){var Oe=this,et=Oe.constructor;return Oe=new et(Oe),le===void 0?Oe:(A(le,0,x),Ae===void 0?Ae=et.rounding:A(Ae,0,8),ie(Oe,le+Oe.e+1,Ae))},q.toExponential=function(le,Ae){var Oe,et=this,Ot=et.constructor;return le===void 0?Oe=Te(et,!0):(A(le,0,x),Ae===void 0?Ae=Ot.rounding:A(Ae,0,8),et=ie(new Ot(et),le+1,Ae),Oe=Te(et,!0,le+1)),et.isNeg()&&!et.isZero()?"-"+Oe:Oe},q.toFixed=function(le,Ae){var Oe,et,Ot=this,It=Ot.constructor;return le===void 0?Oe=Te(Ot):(A(le,0,x),Ae===void 0?Ae=It.rounding:A(Ae,0,8),et=ie(new It(Ot),le+Ot.e+1,Ae),Oe=Te(et,!1,le+et.e+1)),Ot.isNeg()&&!Ot.isZero()?"-"+Oe:Oe},q.toFraction=function(le){var Ae,Oe,et,Ot,It,Mn,mn,At,Ut,jn,Jt,dr,wr=this,Hr=wr.d,Ar=wr.constructor;if(!Hr)return new Ar(wr);if(Ut=Oe=new Ar(1),et=At=new Ar(0),Ae=new Ar(et),It=Ae.e=Ze(Hr)-wr.e-1,Mn=It%z,Ae.d[0]=I(10,Mn<0?z+Mn:Mn),le==null)le=It>0?Ae:Ut;else{if(mn=new Ar(le),!mn.isInt()||mn.lt(Ut))throw Error(O+mn);le=mn.gt(Ae)?It>0?Ae:Ut:mn}for(S=!1,mn=new Ar(te(Hr)),jn=Ar.precision,Ar.precision=It=Hr.length*z*2;Jt=ue(mn,Ae,0,1,1),Ot=Oe.plus(Jt.times(et)),Ot.cmp(le)!=1;)Oe=et,et=Ot,Ot=Ut,Ut=At.plus(Jt.times(Ot)),At=Ot,Ot=Ae,Ae=mn.minus(Jt.times(Ot)),mn=Ot;return Ot=ue(le.minus(Oe),et,0,1,1),At=At.plus(Ot.times(Ut)),Oe=Oe.plus(Ot.times(et)),At.s=Ut.s=wr.s,dr=ue(Ut,et,It,1).minus(wr).abs().cmp(ue(At,Oe,It,1).minus(wr).abs())<1?[Ut,et]:[At,Oe],Ar.precision=jn,S=!0,dr},q.toHexadecimal=q.toHex=function(le,Ae){return Ee(this,16,le,Ae)},q.toNearest=function(le,Ae){var Oe=this,et=Oe.constructor;if(Oe=new et(Oe),le==null){if(!Oe.d)return Oe;le=new et(1),Ae=et.rounding}else{if(le=new et(le),Ae===void 0?Ae=et.rounding:A(Ae,0,8),!Oe.d)return le.s?Oe:le;if(!le.d)return le.s&&(le.s=Oe.s),le}return le.d[0]?(S=!1,Oe=ue(Oe,le,0,Ae,1).times(le),S=!0,ie(Oe)):(le.s=Oe.s,Oe=le),Oe},q.toNumber=function(){return+this},q.toOctal=function(le,Ae){return Ee(this,8,le,Ae)},q.toPower=q.pow=function(le){var Ae,Oe,et,Ot,It,Mn,mn=this,At=mn.constructor,Ut=+(le=new At(le));if(!mn.d||!le.d||!mn.d[0]||!le.d[0])return new At(I(+mn,Ut));if(mn=new At(mn),mn.eq(1))return mn;if(et=At.precision,It=At.rounding,le.eq(1))return ie(mn,et,It);if(Ae=j(le.e/z),Ae>=le.d.length-1&&(Oe=Ut<0?-Ut:Ut)<=Q)return Ot=it(At,mn,Oe,et),le.s<0?new At(1).div(Ot):ie(Ot,et,It);if(Mn=mn.s,Mn<0){if(Ae<le.d.length-1)return new At(NaN);if((le.d[Ae]&1)==0&&(Mn=1),mn.e==0&&mn.d[0]==1&&mn.d.length==1)return mn.s=Mn,mn}return Oe=I(+mn,Ut),Ae=Oe==0||!isFinite(Oe)?j(Ut*(Math.log("0."+te(mn.d))/Math.LN10+mn.e+1)):new At(Oe+"").e,Ae>At.maxE+1||Ae<At.minE-1?new At(Ae>0?Mn/0:0):(S=!1,At.rounding=mn.s=1,Oe=Math.min(12,(Ae+"").length),Ot=Mt(le.times(Wt(mn,et+Oe)),et),Ot.d&&(Ot=ie(Ot,et+5,1),T(Ot.d,et,It)&&(Ae=et+10,Ot=ie(Mt(le.times(Wt(mn,Ae+Oe)),Ae),Ae+5,1),+te(Ot.d).slice(et+1,et+15)+1==1e14&&(Ot=ie(Ot,et+1,0)))),Ot.s=Mn,S=!0,At.rounding=It,ie(Ot,et,It))},q.toPrecision=function(le,Ae){var Oe,et=this,Ot=et.constructor;return le===void 0?Oe=Te(et,et.e<=Ot.toExpNeg||et.e>=Ot.toExpPos):(A(le,1,x),Ae===void 0?Ae=Ot.rounding:A(Ae,0,8),et=ie(new Ot(et),le,Ae),Oe=Te(et,le<=et.e||et.e<=Ot.toExpNeg,le)),et.isNeg()&&!et.isZero()?"-"+Oe:Oe},q.toSignificantDigits=q.toSD=function(le,Ae){var Oe=this,et=Oe.constructor;return le===void 0?(le=et.precision,Ae=et.rounding):(A(le,1,x),Ae===void 0?Ae=et.rounding:A(Ae,0,8)),ie(new et(Oe),le,Ae)},q.toString=function(){var le=this,Ae=le.constructor,Oe=Te(le,le.e<=Ae.toExpNeg||le.e>=Ae.toExpPos);return le.isNeg()&&!le.isZero()?"-"+Oe:Oe},q.truncated=q.trunc=function(){return ie(new this.constructor(this),this.e+1,1)},q.valueOf=q.toJSON=function(){var le=this,Ae=le.constructor,Oe=Te(le,le.e<=Ae.toExpNeg||le.e>=Ae.toExpPos);return le.isNeg()?"-"+Oe:Oe};function te(le){var Ae,Oe,et,Ot=le.length-1,It="",Mn=le[0];if(Ot>0){for(It+=Mn,Ae=1;Ae<Ot;Ae++)et=le[Ae]+"",Oe=z-et.length,Oe&&(It+=Ne(Oe)),It+=et;Mn=le[Ae],et=Mn+"",Oe=z-et.length,Oe&&(It+=Ne(Oe))}else if(Mn===0)return"0";for(;Mn%10===0;)Mn/=10;return It+Mn}function A(le,Ae,Oe){if(le!==~~le||le<Ae||le>Oe)throw Error(O+le)}function T(le,Ae,Oe,et){var Ot,It,Mn,mn;for(It=le[0];It>=10;It/=10)--Ae;return--Ae<0?(Ae+=z,Ot=0):(Ot=Math.ceil((Ae+1)/z),Ae%=z),It=I(10,z-Ae),mn=le[Ot]%It|0,et==null?Ae<3?(Ae==0?mn=mn/100|0:Ae==1&&(mn=mn/10|0),Mn=Oe<4&&mn==99999||Oe>3&&mn==49999||mn==5e4||mn==0):Mn=(Oe<4&&mn+1==It||Oe>3&&mn+1==It/2)&&(le[Ot+1]/It/100|0)==I(10,Ae-2)-1||(mn==It/2||mn==0)&&(le[Ot+1]/It/100|0)==0:Ae<4?(Ae==0?mn=mn/1e3|0:Ae==1?mn=mn/100|0:Ae==2&&(mn=mn/10|0),Mn=(et||Oe<4)&&mn==9999||!et&&Oe>3&&mn==4999):Mn=((et||Oe<4)&&mn+1==It||!et&&Oe>3&&mn+1==It/2)&&(le[Ot+1]/It/1e3|0)==I(10,Ae-3)-1,Mn}function B(le,Ae,Oe){for(var et,Ot=[0],It,Mn=0,mn=le.length;Mn<mn;){for(It=Ot.length;It--;)Ot[It]*=Ae;for(Ot[0]+=f.indexOf(le.charAt(Mn++)),et=0;et<Ot.length;et++)Ot[et]>Oe-1&&(Ot[et+1]===void 0&&(Ot[et+1]=0),Ot[et+1]+=Ot[et]/Oe|0,Ot[et]%=Oe)}return Ot.reverse()}function X(le,Ae){var Oe,et,Ot;if(Ae.isZero())return Ae;et=Ae.d.length,et<32?(Oe=Math.ceil(et/3),Ot=(1/me(4,Oe)).toString()):(Oe=16,Ot="2.3283064365386962890625e-10"),le.precision+=Oe,Ae=Z(le,1,Ae.times(Ot),new le(1));for(var It=Oe;It--;){var Mn=Ae.times(Ae);Ae=Mn.times(Mn).minus(Mn).times(8).plus(1)}return le.precision-=Oe,Ae}var ue=function(){function le(et,Ot,It){var Mn,mn=0,At=et.length;for(et=et.slice();At--;)Mn=et[At]*Ot+mn,et[At]=Mn%It|0,mn=Mn/It|0;return mn&&et.unshift(mn),et}function Ae(et,Ot,It,Mn){var mn,At;if(It!=Mn)At=It>Mn?1:-1;else for(mn=At=0;mn<It;mn++)if(et[mn]!=Ot[mn]){At=et[mn]>Ot[mn]?1:-1;break}return At}function Oe(et,Ot,It,Mn){for(var mn=0;It--;)et[It]-=mn,mn=et[It]<Ot[It]?1:0,et[It]=mn*Mn+et[It]-Ot[It];for(;!et[0]&&et.length>1;)et.shift()}return function(et,Ot,It,Mn,mn,At){var Ut,jn,Jt,dr,wr,Hr,Ar,yi,Rr,si,Si,$i,Hi,Oa,Ma,Ua,Xa,Na,za,qa,no=et.constructor,wo=et.s==Ot.s?1:-1,go=et.d,Ka=Ot.d;if(!go||!go[0]||!Ka||!Ka[0])return new no(!et.s||!Ot.s||(go?Ka&&go[0]==Ka[0]:!Ka)?NaN:go&&go[0]==0||!Ka?wo*0:wo/0);for(At?(wr=1,jn=et.e-Ot.e):(At=Se,wr=z,jn=j(et.e/wr)-j(Ot.e/wr)),za=Ka.length,Xa=go.length,Rr=new no(wo),si=Rr.d=[],Jt=0;Ka[Jt]==(go[Jt]||0);Jt++);if(Ka[Jt]>(go[Jt]||0)&&jn--,It==null?(Oa=It=no.precision,Mn=no.rounding):mn?Oa=It+(et.e-Ot.e)+1:Oa=It,Oa<0)si.push(1),Hr=!0;else{if(Oa=Oa/wr+2|0,Jt=0,za==1){for(dr=0,Ka=Ka[0],Oa++;(Jt<Xa||dr)&&Oa--;Jt++)Ma=dr*At+(go[Jt]||0),si[Jt]=Ma/Ka|0,dr=Ma%Ka|0;Hr=dr||Jt<Xa}else{for(dr=At/(Ka[0]+1)|0,dr>1&&(Ka=le(Ka,dr,At),go=le(go,dr,At),za=Ka.length,Xa=go.length),Ua=za,Si=go.slice(0,za),$i=Si.length;$i<za;)Si[$i++]=0;qa=Ka.slice(),qa.unshift(0),Na=Ka[0],Ka[1]>=At/2&&++Na;do dr=0,Ut=Ae(Ka,Si,za,$i),Ut<0?(Hi=Si[0],za!=$i&&(Hi=Hi*At+(Si[1]||0)),dr=Hi/Na|0,dr>1?(dr>=At&&(dr=At-1),Ar=le(Ka,dr,At),yi=Ar.length,$i=Si.length,Ut=Ae(Ar,Si,yi,$i),Ut==1&&(dr--,Oe(Ar,za<yi?qa:Ka,yi,At))):(dr==0&&(Ut=dr=1),Ar=Ka.slice()),yi=Ar.length,yi<$i&&Ar.unshift(0),Oe(Si,Ar,$i,At),Ut==-1&&($i=Si.length,Ut=Ae(Ka,Si,za,$i),Ut<1&&(dr++,Oe(Si,za<$i?qa:Ka,$i,At))),$i=Si.length):Ut===0&&(dr++,Si=[0]),si[Jt++]=dr,Ut&&Si[0]?Si[$i++]=go[Ua]||0:(Si=[go[Ua]],$i=1);while((Ua++<Xa||Si[0]!==void 0)&&Oa--);Hr=Si[0]!==void 0}si[0]||si.shift()}if(wr==1)Rr.e=jn,v=Hr;else{for(Jt=1,dr=si[0];dr>=10;dr/=10)Jt++;Rr.e=Jt+jn*wr-1,ie(Rr,mn?It+Rr.e+1:It,Mn,Hr)}return Rr}}();function ie(le,Ae,Oe,et){var Ot,It,Mn,mn,At,Ut,jn,Jt,dr,wr=le.constructor;e:if(Ae!=null){if(Jt=le.d,!Jt)return le;for(Ot=1,mn=Jt[0];mn>=10;mn/=10)Ot++;if(It=Ae-Ot,It<0)It+=z,Mn=Ae,jn=Jt[dr=0],At=jn/I(10,Ot-Mn-1)%10|0;else if(dr=Math.ceil((It+1)/z),mn=Jt.length,dr>=mn)if(et){for(;mn++<=dr;)Jt.push(0);jn=At=0,Ot=1,It%=z,Mn=It-z+1}else break e;else{for(jn=mn=Jt[dr],Ot=1;mn>=10;mn/=10)Ot++;It%=z,Mn=It-z+Ot,At=Mn<0?0:jn/I(10,Ot-Mn-1)%10|0}if(et=et||Ae<0||Jt[dr+1]!==void 0||(Mn<0?jn:jn%I(10,Ot-Mn-1)),Ut=Oe<4?(At||et)&&(Oe==0||Oe==(le.s<0?3:2)):At>5||At==5&&(Oe==4||et||Oe==6&&(It>0?Mn>0?jn/I(10,Ot-Mn):0:Jt[dr-1])%10&1||Oe==(le.s<0?8:7)),Ae<1||!Jt[0])return Jt.length=0,Ut?(Ae-=le.e+1,Jt[0]=I(10,(z-Ae%z)%z),le.e=-Ae||0):Jt[0]=le.e=0,le;if(It==0?(Jt.length=dr,mn=1,dr--):(Jt.length=dr+1,mn=I(10,z-It),Jt[dr]=Mn>0?(jn/I(10,Ot-Mn)%I(10,Mn)|0)*mn:0),Ut)for(;;)if(dr==0){for(It=1,Mn=Jt[0];Mn>=10;Mn/=10)It++;for(Mn=Jt[0]+=mn,mn=1;Mn>=10;Mn/=10)mn++;It!=mn&&(le.e++,Jt[0]==Se&&(Jt[0]=1));break}else{if(Jt[dr]+=mn,Jt[dr]!=Se)break;Jt[dr--]=0,mn=1}for(It=Jt.length;Jt[--It]===0;)Jt.pop()}return S&&(le.e>wr.maxE?(le.d=null,le.e=NaN):le.e<wr.minE&&(le.e=0,le.d=[0])),le}function Te(le,Ae,Oe){if(!le.isFinite())return Tn(le);var et,Ot=le.e,It=te(le.d),Mn=It.length;return Ae?(Oe&&(et=Oe-Mn)>0?It=It.charAt(0)+"."+It.slice(1)+Ne(et):Mn>1&&(It=It.charAt(0)+"."+It.slice(1)),It=It+(le.e<0?"e":"e+")+le.e):Ot<0?(It="0."+Ne(-Ot-1)+It,Oe&&(et=Oe-Mn)>0&&(It+=Ne(et))):Ot>=Mn?(It+=Ne(Ot+1-Mn),Oe&&(et=Oe-Ot-1)>0&&(It=It+"."+Ne(et))):((et=Ot+1)<Mn&&(It=It.slice(0,et)+"."+It.slice(et)),Oe&&(et=Oe-Mn)>0&&(Ot+1===Mn&&(It+="."),It+=Ne(et))),It}function je(le,Ae){var Oe=le[0];for(Ae*=z;Oe>=10;Oe/=10)Ae++;return Ae}function yt(le,Ae,Oe){if(Ae>ce)throw S=!0,Oe&&(le.precision=Oe),Error(R);return ie(new le(p),Ae,1,!0)}function tt(le,Ae,Oe){if(Ae>se)throw Error(R);return ie(new le(h),Ae,Oe,!0)}function Ze(le){var Ae=le.length-1,Oe=Ae*z+1;if(Ae=le[Ae],Ae){for(;Ae%10==0;Ae/=10)Oe--;for(Ae=le[0];Ae>=10;Ae/=10)Oe++}return Oe}function Ne(le){for(var Ae="";le--;)Ae+="0";return Ae}function it(le,Ae,Oe,et){var Ot,It=new le(1),Mn=Math.ceil(et/z+4);for(S=!1;;){if(Oe%2&&(It=It.times(Ae),_e(It.d,Mn)&&(Ot=!0)),Oe=j(Oe/2),Oe===0){Oe=It.d.length-1,Ot&&It.d[Oe]===0&&++It.d[Oe];break}Ae=Ae.times(Ae),_e(Ae.d,Mn)}return S=!0,It}function Rt(le){return le.d[le.d.length-1]&1}function Dn(le,Ae,Oe){for(var et,Ot,It=new le(Ae[0]),Mn=0;++Mn<Ae.length;){if(Ot=new le(Ae[Mn]),!Ot.s){It=Ot;break}et=It.cmp(Ot),(et===Oe||et===0&&It.s===Oe)&&(It=Ot)}return It}function Mt(le,Ae){var Oe,et,Ot,It,Mn,mn,At,Ut=0,jn=0,Jt=0,dr=le.constructor,wr=dr.rounding,Hr=dr.precision;if(!le.d||!le.d[0]||le.e>17)return new dr(le.d?le.d[0]?le.s<0?0:1/0:1:le.s?le.s<0?0:le:NaN);for(Ae==null?(S=!1,At=Hr):At=Ae,mn=new dr(.03125);le.e>-2;)le=le.times(mn),Jt+=5;for(et=Math.log(I(2,Jt))/Math.LN10*2+5|0,At+=et,Oe=It=Mn=new dr(1),dr.precision=At;;){if(It=ie(It.times(le),At,1),Oe=Oe.times(++jn),mn=Mn.plus(ue(It,Oe,At,1)),te(mn.d).slice(0,At)===te(Mn.d).slice(0,At)){for(Ot=Jt;Ot--;)Mn=ie(Mn.times(Mn),At,1);if(Ae==null)if(Ut<3&&T(Mn.d,At-et,wr,Ut))dr.precision=At+=10,Oe=It=mn=new dr(1),jn=0,Ut++;else return ie(Mn,dr.precision=Hr,wr,S=!0);else return dr.precision=Hr,Mn}Mn=mn}}function Wt(le,Ae){var Oe,et,Ot,It,Mn,mn,At,Ut,jn,Jt,dr,wr=1,Hr=10,Ar=le,yi=Ar.d,Rr=Ar.constructor,si=Rr.rounding,Si=Rr.precision;if(Ar.s<0||!yi||!yi[0]||!Ar.e&&yi[0]==1&&yi.length==1)return new Rr(yi&&!yi[0]?-1/0:Ar.s!=1?NaN:yi?0:Ar);if(Ae==null?(S=!1,jn=Si):jn=Ae,Rr.precision=jn+=Hr,Oe=te(yi),et=Oe.charAt(0),Math.abs(It=Ar.e)<15e14){for(;et<7&&et!=1||et==1&&Oe.charAt(1)>3;)Ar=Ar.times(le),Oe=te(Ar.d),et=Oe.charAt(0),wr++;It=Ar.e,et>1?(Ar=new Rr("0."+Oe),It++):Ar=new Rr(et+"."+Oe.slice(1))}else return Ut=yt(Rr,jn+2,Si).times(It+""),Ar=Wt(new Rr(et+"."+Oe.slice(1)),jn-Hr).plus(Ut),Rr.precision=Si,Ae==null?ie(Ar,Si,si,S=!0):Ar;for(Jt=Ar,At=Mn=Ar=ue(Ar.minus(1),Ar.plus(1),jn,1),dr=ie(Ar.times(Ar),jn,1),Ot=3;;){if(Mn=ie(Mn.times(dr),jn,1),Ut=At.plus(ue(Mn,new Rr(Ot),jn,1)),te(Ut.d).slice(0,jn)===te(At.d).slice(0,jn))if(At=At.times(2),It!==0&&(At=At.plus(yt(Rr,jn+2,Si).times(It+""))),At=ue(At,new Rr(wr),jn,1),Ae==null)if(T(At.d,jn-Hr,si,mn))Rr.precision=jn+=Hr,Ut=Mn=Ar=ue(Jt.minus(1),Jt.plus(1),jn,1),dr=ie(Ar.times(Ar),jn,1),Ot=mn=1;else return ie(At,Rr.precision=Si,si,S=!0);else return Rr.precision=Si,At;At=Ut,Ot+=2}}function Tn(le){return String(le.s*le.s/0)}function bn(le,Ae){var Oe,et,Ot;for((Oe=Ae.indexOf("."))>-1&&(Ae=Ae.replace(".","")),(et=Ae.search(/e/i))>0?(Oe<0&&(Oe=et),Oe+=+Ae.slice(et+1),Ae=Ae.substring(0,et)):Oe<0&&(Oe=Ae.length),et=0;Ae.charCodeAt(et)===48;et++);for(Ot=Ae.length;Ae.charCodeAt(Ot-1)===48;--Ot);if(Ae=Ae.slice(et,Ot),Ae){if(Ot-=et,le.e=Oe=Oe-et-1,le.d=[],et=(Oe+1)%z,Oe<0&&(et+=z),et<Ot){for(et&&le.d.push(+Ae.slice(0,et)),Ot-=z;et<Ot;)le.d.push(+Ae.slice(et,et+=z));Ae=Ae.slice(et),et=z-Ae.length}else et-=Ot;for(;et--;)Ae+="0";le.d.push(+Ae),S&&(le.e>le.constructor.maxE?(le.d=null,le.e=NaN):le.e<le.constructor.minE&&(le.e=0,le.d=[0]))}else le.e=0,le.d=[0];return le}function $t(le,Ae){var Oe,et,Ot,It,Mn,mn,At,Ut,jn;if(Ae.indexOf("_")>-1){if(Ae=Ae.replace(/(\d)_(?=\d)/g,"$1"),re.test(Ae))return bn(le,Ae)}else if(Ae==="Infinity"||Ae==="NaN")return+Ae||(le.s=NaN),le.e=NaN,le.d=null,le;if($.test(Ae))Oe=16,Ae=Ae.toLowerCase();else if(U.test(Ae))Oe=2;else if(ee.test(Ae))Oe=8;else throw Error(O+Ae);for(It=Ae.search(/p/i),It>0?(At=+Ae.slice(It+1),Ae=Ae.substring(2,It)):Ae=Ae.slice(2),It=Ae.indexOf("."),Mn=It>=0,et=le.constructor,Mn&&(Ae=Ae.replace(".",""),mn=Ae.length,It=mn-It,Ot=it(et,new et(Oe),It,It*2)),Ut=B(Ae,Oe,Se),jn=Ut.length-1,It=jn;Ut[It]===0;--It)Ut.pop();return It<0?new et(le.s*0):(le.e=je(Ut,jn),le.d=Ut,S=!1,Mn&&(le=ue(le,Ot,mn*4)),At&&(le=le.times(Math.abs(At)<54?I(2,At):Je.pow(2,At))),S=!0,le)}function Ct(le,Ae){var Oe,et=Ae.d.length;if(et<3)return Ae.isZero()?Ae:Z(le,2,Ae,Ae);Oe=1.4*Math.sqrt(et),Oe=Oe>16?16:Oe|0,Ae=Ae.times(1/me(5,Oe)),Ae=Z(le,2,Ae,Ae);for(var Ot,It=new le(5),Mn=new le(16),mn=new le(20);Oe--;)Ot=Ae.times(Ae),Ae=Ae.times(It.plus(Ot.times(Mn.times(Ot).minus(mn))));return Ae}function Z(le,Ae,Oe,et,Ot){var It,Mn,mn,At,Ut=1,jn=le.precision,Jt=Math.ceil(jn/z);for(S=!1,At=Oe.times(Oe),mn=new le(et);;){if(Mn=ue(mn.times(At),new le(Ae++*Ae++),jn,1),mn=Ot?et.plus(Mn):et.minus(Mn),et=ue(Mn.times(At),new le(Ae++*Ae++),jn,1),Mn=mn.plus(et),Mn.d[Jt]!==void 0){for(It=Jt;Mn.d[It]===mn.d[It]&&It--;);if(It==-1)break}It=mn,mn=et,et=Mn,Mn=It,Ut++}return S=!0,Mn.d.length=Jt+1,Mn}function me(le,Ae){for(var Oe=le;--Ae;)Oe*=le;return Oe}function ke(le,Ae){var Oe,et=Ae.s<0,Ot=tt(le,le.precision,1),It=Ot.times(.5);if(Ae=Ae.abs(),Ae.lte(It))return m=et?4:1,Ae;if(Oe=Ae.divToInt(Ot),Oe.isZero())m=et?3:2;else{if(Ae=Ae.minus(Oe.times(Ot)),Ae.lte(It))return m=Rt(Oe)?et?2:3:et?4:1,Ae;m=Rt(Oe)?et?1:4:et?3:2}return Ae.minus(Ot).abs()}function Ee(le,Ae,Oe,et){var Ot,It,Mn,mn,At,Ut,jn,Jt,dr,wr=le.constructor,Hr=Oe!==void 0;if(Hr?(A(Oe,1,x),et===void 0?et=wr.rounding:A(et,0,8)):(Oe=wr.precision,et=wr.rounding),!le.isFinite())jn=Tn(le);else{for(jn=Te(le),Mn=jn.indexOf("."),Hr?(Ot=2,Ae==16?Oe=Oe*4-3:Ae==8&&(Oe=Oe*3-2)):Ot=Ae,Mn>=0&&(jn=jn.replace(".",""),dr=new wr(1),dr.e=jn.length-Mn,dr.d=B(Te(dr),10,Ot),dr.e=dr.d.length),Jt=B(jn,10,Ot),It=At=Jt.length;Jt[--At]==0;)Jt.pop();if(!Jt[0])jn=Hr?"0p+0":"0";else{if(Mn<0?It--:(le=new wr(le),le.d=Jt,le.e=It,le=ue(le,dr,Oe,et,0,Ot),Jt=le.d,It=le.e,Ut=v),Mn=Jt[Oe],mn=Ot/2,Ut=Ut||Jt[Oe+1]!==void 0,Ut=et<4?(Mn!==void 0||Ut)&&(et===0||et===(le.s<0?3:2)):Mn>mn||Mn===mn&&(et===4||Ut||et===6&&Jt[Oe-1]&1||et===(le.s<0?8:7)),Jt.length=Oe,Ut)for(;++Jt[--Oe]>Ot-1;)Jt[Oe]=0,Oe||(++It,Jt.unshift(1));for(At=Jt.length;!Jt[At-1];--At);for(Mn=0,jn="";Mn<At;Mn++)jn+=f.charAt(Jt[Mn]);if(Hr){if(At>1)if(Ae==16||Ae==8){for(Mn=Ae==16?4:3,--At;At%Mn;At++)jn+="0";for(Jt=B(jn,Ot,Ae),At=Jt.length;!Jt[At-1];--At);for(Mn=1,jn="1.";Mn<At;Mn++)jn+=f.charAt(Jt[Mn])}else jn=jn.charAt(0)+"."+jn.slice(1);jn=jn+(It<0?"p":"p+")+It}else if(It<0){for(;++It;)jn="0"+jn;jn="0."+jn}else if(++It>At)for(It-=At;It--;)jn+="0";else It<At&&(jn=jn.slice(0,It)+"."+jn.slice(It))}jn=(Ae==16?"0x":Ae==2?"0b":Ae==8?"0o":"")+jn}return le.s<0?"-"+jn:jn}function _e(le,Ae){if(le.length>Ae)return le.length=Ae,!0}function ge(le){return new this(le).abs()}function Me(le){return new this(le).acos()}function lt(le){return new this(le).acosh()}function Ft(le,Ae){return new this(le).plus(Ae)}function Et(le){return new this(le).asin()}function Zt(le){return new this(le).asinh()}function nn(le){return new this(le).atan()}function Pn(le){return new this(le).atanh()}function rn(le,Ae){le=new this(le),Ae=new this(Ae);var Oe,et=this.precision,Ot=this.rounding,It=et+4;return!le.s||!Ae.s?Oe=new this(NaN):!le.d&&!Ae.d?(Oe=tt(this,It,1).times(Ae.s>0?.25:.75),Oe.s=le.s):!Ae.d||le.isZero()?(Oe=Ae.s<0?tt(this,et,Ot):new this(0),Oe.s=le.s):!le.d||Ae.isZero()?(Oe=tt(this,It,1).times(.5),Oe.s=le.s):Ae.s<0?(this.precision=It,this.rounding=1,Oe=this.atan(ue(le,Ae,It,1)),Ae=tt(this,It,1),this.precision=et,this.rounding=Ot,Oe=le.s<0?Oe.minus(Ae):Oe.plus(Ae)):Oe=this.atan(ue(le,Ae,It,1)),Oe}function Vt(le){return new this(le).cbrt()}function Kn(le){return ie(le=new this(le),le.e+1,2)}function ur(le,Ae,Oe){return new this(le).clamp(Ae,Oe)}function on(le){if(!le||typeof le!="object")throw Error(d+"Object expected");var Ae,Oe,et,Ot=le.defaults===!0,It=["precision",1,x,"rounding",0,8,"toExpNeg",-y,0,"toExpPos",0,y,"maxE",0,y,"minE",-y,0,"modulo",0,9];for(Ae=0;Ae<It.length;Ae+=3)if(Oe=It[Ae],Ot&&(this[Oe]=E[Oe]),(et=le[Oe])!==void 0)if(j(et)===et&&et>=It[Ae+1]&&et<=It[Ae+2])this[Oe]=et;else throw Error(O+Oe+": "+et);if(Oe="crypto",Ot&&(this[Oe]=E[Oe]),(et=le[Oe])!==void 0)if(et===!0||et===!1||et===0||et===1)if(et)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[Oe]=!0;else throw Error(C);else this[Oe]=!1;else throw Error(O+Oe+": "+et);return this}function tr(le){return new this(le).cos()}function Cn(le){return new this(le).cosh()}function Wn(le){var Ae,Oe,et;function Ot(It){var Mn,mn,At,Ut=this;if(!(Ut instanceof Ot))return new Ot(It);if(Ut.constructor=Ot,kn(It)){Ut.s=It.s,S?!It.d||It.e>Ot.maxE?(Ut.e=NaN,Ut.d=null):It.e<Ot.minE?(Ut.e=0,Ut.d=[0]):(Ut.e=It.e,Ut.d=It.d.slice()):(Ut.e=It.e,Ut.d=It.d?It.d.slice():It.d);return}if(At=typeof It,At==="number"){if(It===0){Ut.s=1/It<0?-1:1,Ut.e=0,Ut.d=[0];return}if(It<0?(It=-It,Ut.s=-1):Ut.s=1,It===~~It&&It<1e7){for(Mn=0,mn=It;mn>=10;mn/=10)Mn++;S?Mn>Ot.maxE?(Ut.e=NaN,Ut.d=null):Mn<Ot.minE?(Ut.e=0,Ut.d=[0]):(Ut.e=Mn,Ut.d=[It]):(Ut.e=Mn,Ut.d=[It]);return}if(It*0!==0){It||(Ut.s=NaN),Ut.e=NaN,Ut.d=null;return}return bn(Ut,It.toString())}if(At==="string")return(mn=It.charCodeAt(0))===45?(It=It.slice(1),Ut.s=-1):(mn===43&&(It=It.slice(1)),Ut.s=1),re.test(It)?bn(Ut,It):$t(Ut,It);if(At==="bigint")return It<0?(It=-It,Ut.s=-1):Ut.s=1,bn(Ut,It.toString());throw Error(O+It)}if(Ot.prototype=q,Ot.ROUND_UP=0,Ot.ROUND_DOWN=1,Ot.ROUND_CEIL=2,Ot.ROUND_FLOOR=3,Ot.ROUND_HALF_UP=4,Ot.ROUND_HALF_DOWN=5,Ot.ROUND_HALF_EVEN=6,Ot.ROUND_HALF_CEIL=7,Ot.ROUND_HALF_FLOOR=8,Ot.EUCLID=9,Ot.config=Ot.set=on,Ot.clone=Wn,Ot.isDecimal=kn,Ot.abs=ge,Ot.acos=Me,Ot.acosh=lt,Ot.add=Ft,Ot.asin=Et,Ot.asinh=Zt,Ot.atan=nn,Ot.atanh=Pn,Ot.atan2=rn,Ot.cbrt=Vt,Ot.ceil=Kn,Ot.clamp=ur,Ot.cos=tr,Ot.cosh=Cn,Ot.div=er,Ot.exp=Fn,Ot.floor=en,Ot.hypot=gn,Ot.ln=Jn,Ot.log=Nn,Ot.log10=bt,Ot.log2=kr,Ot.max=ne,Ot.min=fe,Ot.mod=K,Ot.mul=he,Ot.pow=Fe,Ot.random=Nt,Ot.round=ln,Ot.sign=pn,Ot.sin=Yn,Ot.sinh=ht,Ot.sqrt=De,Ot.sub=we,Ot.sum=Ke,Ot.tan=be,Ot.tanh=pt,Ot.trunc=We,le===void 0&&(le={}),le&&le.defaults!==!0)for(et=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],Ae=0;Ae<et.length;)le.hasOwnProperty(Oe=et[Ae++])||(le[Oe]=this[Oe]);return Ot.config(le),Ot}function er(le,Ae){return new this(le).div(Ae)}function Fn(le){return new this(le).exp()}function en(le){return ie(le=new this(le),le.e+1,3)}function gn(){var le,Ae,Oe=new this(0);for(S=!1,le=0;le<arguments.length;)if(Ae=new this(arguments[le++]),Ae.d)Oe.d&&(Oe=Oe.plus(Ae.times(Ae)));else{if(Ae.s)return S=!0,new this(1/0);Oe=Ae}return S=!0,Oe.sqrt()}function kn(le){return le instanceof Je||le&&le.toStringTag===L||!1}function Jn(le){return new this(le).ln()}function Nn(le,Ae){return new this(le).log(Ae)}function kr(le){return new this(le).log(2)}function bt(le){return new this(le).log(10)}function ne(){return Dn(this,arguments,-1)}function fe(){return Dn(this,arguments,1)}function K(le,Ae){return new this(le).mod(Ae)}function he(le,Ae){return new this(le).mul(Ae)}function Fe(le,Ae){return new this(le).pow(Ae)}function Nt(le){var Ae,Oe,et,Ot,It=0,Mn=new this(1),mn=[];if(le===void 0?le=this.precision:A(le,1,x),et=Math.ceil(le/z),this.crypto)if(crypto.getRandomValues)for(Ae=crypto.getRandomValues(new Uint32Array(et));It<et;)Ot=Ae[It],Ot>=429e7?Ae[It]=crypto.getRandomValues(new Uint32Array(1))[0]:mn[It++]=Ot%1e7;else if(crypto.randomBytes){for(Ae=crypto.randomBytes(et*=4);It<et;)Ot=Ae[It]+(Ae[It+1]<<8)+(Ae[It+2]<<16)+((Ae[It+3]&127)<<24),Ot>=214e7?crypto.randomBytes(4).copy(Ae,It):(mn.push(Ot%1e7),It+=4);It=et/4}else throw Error(C);else for(;It<et;)mn[It++]=Math.random()*1e7|0;for(et=mn[--It],le%=z,et&&le&&(Ot=I(10,z-le),mn[It]=(et/Ot|0)*Ot);mn[It]===0;It--)mn.pop();if(It<0)Oe=0,mn=[0];else{for(Oe=-1;mn[0]===0;Oe-=z)mn.shift();for(et=1,Ot=mn[0];Ot>=10;Ot/=10)et++;et<z&&(Oe-=z-et)}return Mn.e=Oe,Mn.d=mn,Mn}function ln(le){return ie(le=new this(le),le.e+1,this.rounding)}function pn(le){return le=new this(le),le.d?le.d[0]?le.s:0*le.s:le.s||NaN}function Yn(le){return new this(le).sin()}function ht(le){return new this(le).sinh()}function De(le){return new this(le).sqrt()}function we(le,Ae){return new this(le).sub(Ae)}function Ke(){var le=0,Ae=arguments,Oe=new this(Ae[le]);for(S=!1;Oe.s&&++le<Ae.length;)Oe=Oe.plus(Ae[le]);return S=!0,ie(Oe,this.precision,this.rounding)}function be(le){return new this(le).tan()}function pt(le){return new this(le).tanh()}function We(le){return ie(le=new this(le),le.e+1,1)}q[Symbol.for("nodejs.util.inspect.custom")]=q.toString,q[Symbol.toStringTag]="Decimal";var Je=q.constructor=Wn(E);p=new Je(p),h=new Je(h);const ye=Je;var Qe=new ye(10),ze=new ye(0),qe=new ye(-0),Pt=u(31635);function zt(le,Ae){var Oe=Ae&&Ae.cache?Ae.cache:Lr,et=Ae&&Ae.serializer?Ae.serializer:Gn,Ot=Ae&&Ae.strategy?Ae.strategy:qt;return Ot(le,{cache:Oe,serializer:et})}function un(le){return le==null||typeof le=="number"||typeof le=="boolean"}function hn(le,Ae,Oe,et){var Ot=un(et)?et:Oe(et),It=Ae.get(Ot);return typeof It>"u"&&(It=le.call(this,et),Ae.set(Ot,It)),It}function xt(le,Ae,Oe){var et=Array.prototype.slice.call(arguments,3),Ot=Oe(et),It=Ae.get(Ot);return typeof It>"u"&&(It=le.apply(this,et),Ae.set(Ot,It)),It}function _t(le,Ae,Oe,et,Ot){return Oe.bind(Ae,le,et,Ot)}function qt(le,Ae){var Oe=le.length===1?hn:xt;return _t(le,this,Oe,Ae.cache.create(),Ae.serializer)}function fn(le,Ae){return _t(le,this,xt,Ae.cache.create(),Ae.serializer)}function On(le,Ae){return _t(le,this,hn,Ae.cache.create(),Ae.serializer)}var Gn=function(){return JSON.stringify(arguments)},Bn=function(){function le(){this.cache=Object.create(null)}return le.prototype.get=function(Ae){return this.cache[Ae]},le.prototype.set=function(Ae,Oe){this.cache[Ae]=Oe},le}(),Lr={create:function(){return new Bn}},An={variadic:fn,monadic:On};function Un(le,Ae){if(typeof le.repeat=="function")return le.repeat(Ae);for(var Oe=new Array(Ae),et=0;et<Oe.length;et++)Oe[et]=le;return Oe.join("")}function cr(le,Ae,Oe,et){le.get(Ae)||le.set(Ae,Object.create(null));var Ot=le.get(Ae);Ot[Oe]=et}function mr(le,Ae,Oe){for(var et=0,Ot=Object.keys(Oe);et<Ot.length;et++){var It=Ot[et];cr(le,Ae,It,Oe[It])}}function hr(le,Ae,Oe){return ar(le,Ae,Oe)[Oe]}function ar(le,Ae){for(var Oe=[],et=2;et<arguments.length;et++)Oe[et-2]=arguments[et];var Ot=le.get(Ae);if(!Ot)throw new TypeError("".concat(Ae," InternalSlot has not been initialized"));return Oe.reduce(function(It,Mn){return It[Mn]=Ot[Mn],It},Object.create(null))}function Cr(le){return le.type==="literal"}function Yr(le,Ae,Oe){var et=Oe.value;Object.defineProperty(le,Ae,{configurable:!0,enumerable:!1,writable:!0,value:et})}function Xr(le,Ae,Oe){Object.defineProperty(le,Ae,{configurable:!0,enumerable:!0,writable:!0,value:Oe})}var ni=/-u(?:-[0-9a-z]{2,8})+/gi;function ki(le,Ae,Oe){if(Oe===void 0&&(Oe=Error),!le)throw new Oe(Ae)}var zr=zt(function(){for(var le,Ae=[],Oe=0;Oe<arguments.length;Oe++)Ae[Oe]=arguments[Oe];return new((le=Intl.NumberFormat).bind.apply(le,(0,Pt.__spreadArray)([void 0],Ae,!1)))},{strategy:An.variadic}),Ur=zt(function(){for(var le,Ae=[],Oe=0;Oe<arguments.length;Oe++)Ae[Oe]=arguments[Oe];return new((le=Intl.DateTimeFormat).bind.apply(le,(0,Pt.__spreadArray)([void 0],Ae,!1)))},{strategy:An.variadic}),jt=zt(function(){for(var le,Ae=[],Oe=0;Oe<arguments.length;Oe++)Ae[Oe]=arguments[Oe];return new((le=Intl.PluralRules).bind.apply(le,(0,Pt.__spreadArray)([void 0],Ae,!1)))},{strategy:An.variadic}),sn=zt(function(){for(var le,Ae=[],Oe=0;Oe<arguments.length;Oe++)Ae[Oe]=arguments[Oe];return new((le=Intl.Locale).bind.apply(le,(0,Pt.__spreadArray)([void 0],Ae,!1)))},{strategy:An.variadic}),Rn=zt(function(){for(var le,Ae=[],Oe=0;Oe<arguments.length;Oe++)Ae[Oe]=arguments[Oe];return new((le=Intl.ListFormat).bind.apply(le,(0,Pt.__spreadArray)([void 0],Ae,!1)))},{strategy:An.variadic});function H(le){if(typeof le=="symbol")throw TypeError("Cannot convert a Symbol value to a string");return String(le)}function Be(le){if(typeof le=="number")return new Je(le);if(ki(typeof le!="bigint"&&typeof le!="symbol","BigInt and Symbol are not supported",TypeError),le===void 0)return new Je(NaN);if(le===null||le===0)return ze;if(le===!0)return new Je(1);if(typeof le=="string")try{return new Je(le)}catch{return new Je(NaN)}ki(typeof le=="object","object expected",TypeError);var Ae=Dt(le,"number");return ki(typeof Ae!="object","object expected",TypeError),Be(Ae)}function wn(le){var Ae=Be(le);if(Ae.isNaN()||Ae.isZero())return ze;if(Ae.isFinite())return Ae;var Oe=Ae.abs().floor();return Ae.isNegative()&&(Oe=Oe.negated()),Oe}function bi(le){return le.isFinite()?le.abs().greaterThan(8.64*1e15)?new Je(NaN):wn(le):new Je(NaN)}function Oi(le){if(le==null)throw new TypeError("undefined/null cannot be converted to object");return Object(le)}function de(le,Ae){return Object.is?Object.is(le,Ae):le===Ae?le!==0||1/le===1/Ae:le!==le&&Ae!==Ae}function Ve(le){return new Array(le)}function vt(le,Ae){return Object.prototype.hasOwnProperty.call(le,Ae)}function Qt(le){if(le===null)return"Null";if(typeof le>"u")return"Undefined";if(typeof le=="function"||typeof le=="object")return"Object";if(typeof le=="number")return"Number";if(typeof le=="boolean")return"Boolean";if(typeof le=="string")return"String";if(typeof le=="symbol")return"Symbol";if(typeof le=="bigint")return"BigInt"}var nt=864e5;function Tt(le,Ae){return le-Math.floor(le/Ae)*Ae}function Gt(le){return Math.floor(le/nt)}function En(le){return Tt(Gt(le)+4,7)}function Qn(le){return Date.UTC(le,0)/nt}function Or(le){return Date.UTC(le,0)}function Pr(le){return new Date(le).getUTCFullYear()}function ai(le){return le%4!==0?365:le%100!==0?366:le%400!==0?365:366}function xi(le){return Gt(le)-Qn(Pr(le))}function mi(le){return ai(Pr(le))===365?0:1}function ei(le){var Ae=xi(le),Oe=mi(le);if(Ae>=0&&Ae<31)return 0;if(Ae<59+Oe)return 1;if(Ae<90+Oe)return 2;if(Ae<120+Oe)return 3;if(Ae<151+Oe)return 4;if(Ae<181+Oe)return 5;if(Ae<212+Oe)return 6;if(Ae<243+Oe)return 7;if(Ae<273+Oe)return 8;if(Ae<304+Oe)return 9;if(Ae<334+Oe)return 10;if(Ae<365+Oe)return 11;throw new Error("Invalid time")}function Qr(le){var Ae=xi(le),Oe=ei(le),et=mi(le);if(Oe===0)return Ae+1;if(Oe===1)return Ae-30;if(Oe===2)return Ae-58-et;if(Oe===3)return Ae-89-et;if(Oe===4)return Ae-119-et;if(Oe===5)return Ae-150-et;if(Oe===6)return Ae-180-et;if(Oe===7)return Ae-211-et;if(Oe===8)return Ae-242-et;if(Oe===9)return Ae-272-et;if(Oe===10)return Ae-303-et;if(Oe===11)return Ae-333-et;throw new Error("Invalid time")}var Ni=24,ea=60,Qi=60,ir=1e3,xr=ir*Qi,di=xr*ea;function ft(le){return Tt(Math.floor(le/di),Ni)}function zn(le){return Tt(Math.floor(le/xr),ea)}function Zn(le){return Tt(Math.floor(le/ir),Qi)}function wi(le){return typeof le=="function"}function Ea(le,Ae,Oe){if(!wi(le))return!1;if(Oe?.boundTargetFunction){var et=Oe?.boundTargetFunction;return Ae instanceof et}if(typeof Ae!="object")return!1;var Ot=le.prototype;if(typeof Ot!="object")throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(Ot,Ae)}function wa(le){return Tt(le,ir)}function ji(le,Ae){var Oe;Ae==="string"?Oe=["toString","valueOf"]:Oe=["valueOf","toString"];for(var et=0,Ot=Oe;et<Ot.length;et++){var It=Ot[et],Mn=le[It];if(wi(Mn)){var mn=Mn.call(le);if(typeof mn!="object")return mn}}throw new TypeError("Cannot convert object to primitive value")}function Dt(le,Ae){if(typeof le=="object"&&le!=null){var Oe=Symbol.toPrimitive in le?le[Symbol.toPrimitive]:void 0,et=void 0;if(Oe!==void 0){Ae===void 0?et="default":Ae==="string"?et="string":(ki(Ae==="number",'preferredType must be "string" or "number"'),et="number");var Ot=Oe.call(le,et);if(typeof Ot!="object")return Ot;throw new TypeError("Cannot convert exotic object to primitive.")}return Ae===void 0&&(Ae="number"),ji(le,Ae)}return le}function Xn(le){return typeof le>"u"?Object.create(null):Oi(le)}function Tr(le,Ae,Oe,et){if(le===void 0)return et;var Ot=Number(le);if(isNaN(Ot)||Ot<Ae||Ot>Oe)throw new RangeError("".concat(Ot," is outside of range [").concat(Ae,", ").concat(Oe,"]"));return Math.floor(Ot)}function Nr(le,Ae,Oe,et,Ot){var It=le[Ae];return Tr(It,Oe,et,Ot)}function ti(le,Ae,Oe,et,Ot){if(typeof le!="object")throw new TypeError("Options must be an object");var It=le[Ae];if(It!==void 0){if(Oe!=="boolean"&&Oe!=="string")throw new TypeError("invalid type");if(Oe==="boolean"&&(It=!!It),Oe==="string"&&(It=H(It)),et!==void 0&&!et.filter(function(Mn){return Mn==It}).length)throw new RangeError("".concat(It," is not within ").concat(et.join(", ")));return It}return Ot}function _i(le){if(typeof le>"u")return Object.create(null);if(typeof le=="object")return le;throw new TypeError("Options must be an object")}function Ii(le,Ae,Oe,et,Ot,It){var Mn=le[Ae];if(Mn===void 0)return It;if(Mn===!0)return et;var mn=!!Mn;if(mn===!1)return Ot;if(Mn=H(Mn),Mn==="true"||Mn==="false")return It;if((Oe||[]).indexOf(Mn)===-1)throw new RangeError("Invalid value ".concat(Mn));return Mn}var ta=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function Ji(le){return le.slice(le.indexOf("-")+1)}var k=ta.map(Ji);function ve(le){return k.indexOf(le)>-1}function Le(le,Ae){var Oe=Ae.zoneNamesFromData,et=Ae.uppercaseLinks,Ot=le.toUpperCase(),It=new Set,Mn=new Set;return Oe.map(function(mn){return mn.toUpperCase()}).forEach(function(mn){return It.add(mn)}),Object.keys(et).forEach(function(mn){Mn.add(mn.toUpperCase()),It.add(et[mn].toUpperCase())}),It.has(Ot)||Mn.has(Ot)}function Ye(le){return le.replace(/([a-z])/g,function(Ae,Oe){return Oe.toUpperCase()})}var ot=/[^A-Z]/;function Lt(le){return le=Ye(le),!(le.length!==3||ot.test(le))}function an(le){return le.replace(/([A-Z])/g,function(Ae,Oe){return Oe.toLowerCase()})}function nr(le){if(le=an(le),ve(le))return!0;var Ae=le.split("-per-");if(Ae.length!==2)return!1;var Oe=Ae[0],et=Ae[1];return!(!ve(Oe)||!ve(et))}function vr(le,Ae,Oe,et){if(le.eq(Ae)||(ki(Ae.lessThan(le)&&le.lessThan(Oe),"x should be between r1 and r2 but x=".concat(le,", r1=").concat(Ae,", r2=").concat(Oe)),et==="zero"))return Ae;if(et==="infinity")return Oe;var Ot=le.minus(Ae),It=Oe.minus(le);if(Ot.lessThan(It))return Ae;if(It.lessThan(Ot))return Oe;if(ki(Ot.eq(It),"d1 should be equal to d2"),et==="half-zero")return Ae;if(et==="half-infinity")return Oe;ki(et==="half-even","unsignedRoundingMode should be half-even");var Mn=Ae.div(Oe.minus(Ae)).mod(2);return Mn.isZero()?Ae:Oe}var $r=new Set(["unit","exponentMinusSign","minusSign","plusSign","percentSign","exponentSeparator","percent","percentSign","currency","literal"]);function Fr(le,Ae,Oe){for(var et=Oe.getInternalSlots,Ot=et(le),It=Ot.dataLocaleData.numbers.symbols[Ot.numberingSystem],Mn=new RegExp("s?[".concat(It.rangeSign,"]s?")),mn=Ae.findIndex(function(dr){return dr.type==="literal"&&Mn.test(dr.value)}),At=[],Ut=mn-1;Ut>=0&&$r.has(Ae[Ut].type);Ut--)At.unshift(Ae[Ut]);if(Array.from(At.map(function(dr){return dr.value}).join("")).length>1){var jn=Array.from(Ae);return jn.splice(mn-At.length,At.length),jn}for(var Jt=[],Ut=mn+1;Ut<Ae.length&&$r.has(Ae[Ut].type);Ut++)Jt.push(Ae[Ut]);if(Array.from(Jt.map(function(dr){return dr.value}).join("")).length>1){var jn=Array.from(Ae);return jn.splice(mn+1,Jt.length),jn}return Ae}ye.set({toExpPos:100});function qr(le,Ae){var Oe=le.notation,et=le.dataLocaleData,Ot=le.numberingSystem;switch(Oe){case"standard":return 0;case"scientific":return Ae.toNumber();case"engineering":var It=Ae.div(3).floor();return It.times(3).toNumber();default:{ki(Oe==="compact","Invalid notation");var Mn=le.compactDisplay,mn=le.style,At=le.currencyDisplay,Ut=void 0;if(mn==="currency"&&At!=="name"){var jn=et.numbers.currency[Ot]||et.numbers.currency[et.numbers.nu[0]];Ut=jn.short}else{var Jt=et.numbers.decimal[Ot]||et.numbers.decimal[et.numbers.nu[0]];Ut=Mn==="long"?Jt.long:Jt.short}if(!Ut)return 0;var dr=ye.pow(10,Ae).toString(),wr=Object.keys(Ut);if(dr<wr[0])return 0;if(dr>wr[wr.length-1])return wr[wr.length-1].length-1;var Hr=wr.indexOf(dr);if(Hr===-1)return 0;var Ar=wr[Hr],yi=Ut[Ar].other;return yi==="0"?0:Ar.length-Ut[Ar].other.match(/0+/)[0].length}}}var jr={ceil:"zero",floor:"infinity",expand:"infinity",trunc:"zero",halfCeil:"half-zero",halfFloor:"half-infinity",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"},vi={ceil:"infinity",floor:"zero",expand:"infinity",trunc:"zero",halfCeil:"half-infinity",halfFloor:"half-zero",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"};function Mi(le,Ae){return Ae?jr[le]:vi[le]}ye.set({toExpPos:100});function ra(le,Ae){return le.times(ye.pow(10,-Ae))}function Yi(le,Ae,Oe){var et=le.times(ye.pow(10,Ae)).floor(),Ot=et.div(Oe).floor().times(Oe),It=ra(Ot,Ae);return{n1:Ot,r1:It}}function ua(le,Ae,Oe){var et=le.times(ye.pow(10,Ae)).ceil(),Ot=et.div(Oe).ceil().times(Oe),It=ra(Ot,Ae);return{n2:Ot,r2:It}}function Sa(le,Ae,Oe,et,Ot){var It=Oe,Mn=Yi(le,It,et),mn=Mn.n1,At=Mn.r1,Ut=ua(le,It,et),jn=Ut.n2,Jt=Ut.r2,dr=vr(le,At,Jt,Ot),wr,Hr,Ar;dr.eq(At)?(wr=mn,Hr=At):(wr=jn,Hr=Jt),wr.isZero()?Ar="0":Ar=wr.toString();var yi;if(It!==0){var Rr=Ar.length;if(Rr<=It){var si=Un("0",It-Rr+1);Ar=si+Ar,Rr=It+1}var Si=Ar.slice(0,Rr-It),$i=Ar.slice(Ar.length-It);Ar=Si+"."+$i,yi=Si.length}else yi=Ar.length;for(var Hi=Oe-Ae;Hi>0&&Ar[Ar.length-1]==="0";)Ar=Ar.slice(0,Ar.length-1),Hi--;return Ar[Ar.length-1]==="."&&(Ar=Ar.slice(0,Ar.length-1)),{formattedString:Ar,roundedNumber:Hr,integerDigitsCount:yi,roundingMagnitude:-It}}function Xt(le,Ae){for(var Oe=ye.pow(10,Ae),et=ye.pow(10,Ae-1),Ot=le.div(et).log(10).plus(Ae).minus(1).ceil(),It=Ot;;){var Mn=le.div(ye.pow(10,It.minus(Ae).plus(1))).floor();if(Mn.lessThan(Oe)&&Mn.greaterThanOrEqualTo(et)){var mn=Mn.times(ye.pow(10,It.minus(Ae).plus(1)));if(mn.lessThanOrEqualTo(le))return{n1:Mn,e1:It,r1:mn}}It=It.minus(1)}}function V(le,Ae){for(var Oe=ye.pow(10,Ae),et=ye.pow(10,Ae-1),Ot=le.div(Oe).log(10).plus(Ae).minus(1).floor(),It=Ot;;){var Mn=le.div(ye.pow(10,It.minus(Ae).plus(1))).ceil();if(Mn.lessThan(Oe)&&Mn.greaterThanOrEqualTo(et)){var mn=Mn.times(ye.pow(10,It.minus(Ae).plus(1)));if(mn.greaterThanOrEqualTo(le))return{n2:Mn,e2:It,r2:mn}}It=It.plus(1)}}function Y(le,Ae,Oe,et){var Ot=Oe,It,Mn,mn;if(le.isZero())It=Un("0",Ot),Mn=0,mn=ze;else{var At=Xt(le,Ot),Ut=At.n1,jn=At.e1,Jt=At.r1,dr=V(le,Ot),wr=dr.n2,Hr=dr.e2,Ar=dr.r2,yi=vr(le,Jt,Ar,et),Rr=void 0;yi.eq(Jt)?(Rr=Ut,Mn=jn.toNumber(),mn=Jt):(Rr=wr,Mn=Hr.toNumber(),mn=Ar),It=Rr.toString()}var si;if(Mn>=Ot-1?(It=It+Un("0",Mn-Ot+1),si=Mn+1):Mn>=0?(It=It.slice(0,Mn+1)+"."+It.slice(It.length-(Ot-(Mn+1))),si=Mn+1):(ki(Mn<0,"e should be less than 0"),It="0."+Un("0",-Mn-1)+It,si=1),It.includes(".")&&Oe>Ae){for(var Si=Oe-Ae;Si>0&&It[It.length-1]==="0";)It=It.slice(0,It.length-1),Si--;It[It.length-1]==="."&&(It=It.slice(0,It.length-1))}return{formattedString:It,roundedNumber:mn,integerDigitsCount:si,roundingMagnitude:Mn}}function D(le,Ae){var Oe=Ae,et;Oe.isZero()&&Oe.isNegative()?(et="negative",Oe=ze):(ki(Oe.isFinite(),"NumberFormatDigitInternalSlots value is not finite"),Oe.lessThan(0)?et="negative":et="positive",et==="negative"&&(Oe=Oe.negated()));var Ot,It=le.roundingType,Mn=Mi(le.roundingMode,et==="negative");switch(It){case"significantDigits":Ot=Y(Oe,le.minimumSignificantDigits,le.maximumSignificantDigits,Mn);break;case"fractionDigits":Ot=Sa(Oe,le.minimumFractionDigits,le.maximumFractionDigits,le.roundingIncrement,Mn);break;default:var mn=Y(Oe,le.minimumSignificantDigits,le.maximumSignificantDigits,Mn),At=Sa(Oe,le.minimumFractionDigits,le.maximumFractionDigits,le.roundingIncrement,Mn);le.roundingType==="morePrecision"?mn.roundingMagnitude<=At.roundingMagnitude?Ot=mn:Ot=At:(ki(le.roundingType==="lessPrecision","Invalid roundingType"),mn.roundingMagnitude<=At.roundingMagnitude?Ot=At:Ot=mn);break}Oe=Ot.roundedNumber;var Ut=Ot.formattedString;if(le.trailingZeroDisplay==="stripIfInteger"&&Oe.isInteger()){var jn=Ut.indexOf(".");jn>-1&&(Ut=Ut.slice(0,jn))}var Jt=Ot.integerDigitsCount,dr=le.minimumIntegerDigits;if(Jt<dr){var wr=Un("0",dr-Jt);Ut=wr+Ut}return et==="negative"&&(Oe.isZero()?Oe=qe:Oe=Oe.negated()),{roundedNumber:Oe,formattedString:Ut}}function P(le,Ae){if(Ae.isZero())return[0,0];Ae.isNegative()&&(Ae=Ae.negated());var Oe=Ae.log(10).floor(),et=qr(le,Oe);Ae=Ae.times(ye.pow(10,-et));var Ot=D(le,Ae);if(Ot.roundedNumber.isZero())return[et,Oe.toNumber()];var It=Ot.roundedNumber.log(10).floor();return It.eq(Oe.minus(et))?[et,Oe.toNumber()]:[qr(le,Oe.plus(1)),Oe.plus(1).toNumber()]}function oe(le,Ae){var Oe=Ae.currencyDigitsData;return vt(Oe,le)?Oe[le]:2}var Ie=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,Ue={adlm:["\u{1E950}","\u{1E951}","\u{1E952}","\u{1E953}","\u{1E954}","\u{1E955}","\u{1E956}","\u{1E957}","\u{1E958}","\u{1E959}"],ahom:["\u{11730}","\u{11731}","\u{11732}","\u{11733}","\u{11734}","\u{11735}","\u{11736}","\u{11737}","\u{11738}","\u{11739}"],arab:["\u0660","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"],arabext:["\u06F0","\u06F1","\u06F2","\u06F3","\u06F4","\u06F5","\u06F6","\u06F7","\u06F8","\u06F9"],bali:["\u1B50","\u1B51","\u1B52","\u1B53","\u1B54","\u1B55","\u1B56","\u1B57","\u1B58","\u1B59"],beng:["\u09E6","\u09E7","\u09E8","\u09E9","\u09EA","\u09EB","\u09EC","\u09ED","\u09EE","\u09EF"],bhks:["\u{11C50}","\u{11C51}","\u{11C52}","\u{11C53}","\u{11C54}","\u{11C55}","\u{11C56}","\u{11C57}","\u{11C58}","\u{11C59}"],brah:["\u{11066}","\u{11067}","\u{11068}","\u{11069}","\u{1106A}","\u{1106B}","\u{1106C}","\u{1106D}","\u{1106E}","\u{1106F}"],cakm:["\u{11136}","\u{11137}","\u{11138}","\u{11139}","\u{1113A}","\u{1113B}","\u{1113C}","\u{1113D}","\u{1113E}","\u{1113F}"],cham:["\uAA50","\uAA51","\uAA52","\uAA53","\uAA54","\uAA55","\uAA56","\uAA57","\uAA58","\uAA59"],deva:["\u0966","\u0967","\u0968","\u0969","\u096A","\u096B","\u096C","\u096D","\u096E","\u096F"],diak:["\u{11950}","\u{11951}","\u{11952}","\u{11953}","\u{11954}","\u{11955}","\u{11956}","\u{11957}","\u{11958}","\u{11959}"],fullwide:["\uFF10","\uFF11","\uFF12","\uFF13","\uFF14","\uFF15","\uFF16","\uFF17","\uFF18","\uFF19"],gong:["\u{11DA0}","\u{11DA1}","\u{11DA2}","\u{11DA3}","\u{11DA4}","\u{11DA5}","\u{11DA6}","\u{11DA7}","\u{11DA8}","\u{11DA9}"],gonm:["\u{11D50}","\u{11D51}","\u{11D52}","\u{11D53}","\u{11D54}","\u{11D55}","\u{11D56}","\u{11D57}","\u{11D58}","\u{11D59}"],gujr:["\u0AE6","\u0AE7","\u0AE8","\u0AE9","\u0AEA","\u0AEB","\u0AEC","\u0AED","\u0AEE","\u0AEF"],guru:["\u0A66","\u0A67","\u0A68","\u0A69","\u0A6A","\u0A6B","\u0A6C","\u0A6D","\u0A6E","\u0A6F"],hanidec:["\u3007","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],hmng:["\u{16B50}","\u{16B51}","\u{16B52}","\u{16B53}","\u{16B54}","\u{16B55}","\u{16B56}","\u{16B57}","\u{16B58}","\u{16B59}"],hmnp:["\u{1E140}","\u{1E141}","\u{1E142}","\u{1E143}","\u{1E144}","\u{1E145}","\u{1E146}","\u{1E147}","\u{1E148}","\u{1E149}"],java:["\uA9D0","\uA9D1","\uA9D2","\uA9D3","\uA9D4","\uA9D5","\uA9D6","\uA9D7","\uA9D8","\uA9D9"],kali:["\uA900","\uA901","\uA902","\uA903","\uA904","\uA905","\uA906","\uA907","\uA908","\uA909"],khmr:["\u17E0","\u17E1","\u17E2","\u17E3","\u17E4","\u17E5","\u17E6","\u17E7","\u17E8","\u17E9"],knda:["\u0CE6","\u0CE7","\u0CE8","\u0CE9","\u0CEA","\u0CEB","\u0CEC","\u0CED","\u0CEE","\u0CEF"],lana:["\u1A80","\u1A81","\u1A82","\u1A83","\u1A84","\u1A85","\u1A86","\u1A87","\u1A88","\u1A89"],lanatham:["\u1A90","\u1A91","\u1A92","\u1A93","\u1A94","\u1A95","\u1A96","\u1A97","\u1A98","\u1A99"],laoo:["\u0ED0","\u0ED1","\u0ED2","\u0ED3","\u0ED4","\u0ED5","\u0ED6","\u0ED7","\u0ED8","\u0ED9"],lepc:["\u1A90","\u1A91","\u1A92","\u1A93","\u1A94","\u1A95","\u1A96","\u1A97","\u1A98","\u1A99"],limb:["\u1946","\u1947","\u1948","\u1949","\u194A","\u194B","\u194C","\u194D","\u194E","\u194F"],mathbold:["\u{1D7CE}","\u{1D7CF}","\u{1D7D0}","\u{1D7D1}","\u{1D7D2}","\u{1D7D3}","\u{1D7D4}","\u{1D7D5}","\u{1D7D6}","\u{1D7D7}"],mathdbl:["\u{1D7D8}","\u{1D7D9}","\u{1D7DA}","\u{1D7DB}","\u{1D7DC}","\u{1D7DD}","\u{1D7DE}","\u{1D7DF}","\u{1D7E0}","\u{1D7E1}"],mathmono:["\u{1D7F6}","\u{1D7F7}","\u{1D7F8}","\u{1D7F9}","\u{1D7FA}","\u{1D7FB}","\u{1D7FC}","\u{1D7FD}","\u{1D7FE}","\u{1D7FF}"],mathsanb:["\u{1D7EC}","\u{1D7ED}","\u{1D7EE}","\u{1D7EF}","\u{1D7F0}","\u{1D7F1}","\u{1D7F2}","\u{1D7F3}","\u{1D7F4}","\u{1D7F5}"],mathsans:["\u{1D7E2}","\u{1D7E3}","\u{1D7E4}","\u{1D7E5}","\u{1D7E6}","\u{1D7E7}","\u{1D7E8}","\u{1D7E9}","\u{1D7EA}","\u{1D7EB}"],mlym:["\u0D66","\u0D67","\u0D68","\u0D69","\u0D6A","\u0D6B","\u0D6C","\u0D6D","\u0D6E","\u0D6F"],modi:["\u{11650}","\u{11651}","\u{11652}","\u{11653}","\u{11654}","\u{11655}","\u{11656}","\u{11657}","\u{11658}","\u{11659}"],mong:["\u1810","\u1811","\u1812","\u1813","\u1814","\u1815","\u1816","\u1817","\u1818","\u1819"],mroo:["\u{16A60}","\u{16A61}","\u{16A62}","\u{16A63}","\u{16A64}","\u{16A65}","\u{16A66}","\u{16A67}","\u{16A68}","\u{16A69}"],mtei:["\uABF0","\uABF1","\uABF2","\uABF3","\uABF4","\uABF5","\uABF6","\uABF7","\uABF8","\uABF9"],mymr:["\u1040","\u1041","\u1042","\u1043","\u1044","\u1045","\u1046","\u1047","\u1048","\u1049"],mymrshan:["\u1090","\u1091","\u1092","\u1093","\u1094","\u1095","\u1096","\u1097","\u1098","\u1099"],mymrtlng:["\uA9F0","\uA9F1","\uA9F2","\uA9F3","\uA9F4","\uA9F5","\uA9F6","\uA9F7","\uA9F8","\uA9F9"],newa:["\u{11450}","\u{11451}","\u{11452}","\u{11453}","\u{11454}","\u{11455}","\u{11456}","\u{11457}","\u{11458}","\u{11459}"],nkoo:["\u07C0","\u07C1","\u07C2","\u07C3","\u07C4","\u07C5","\u07C6","\u07C7","\u07C8","\u07C9"],olck:["\u1C50","\u1C51","\u1C52","\u1C53","\u1C54","\u1C55","\u1C56","\u1C57","\u1C58","\u1C59"],orya:["\u0B66","\u0B67","\u0B68","\u0B69","\u0B6A","\u0B6B","\u0B6C","\u0B6D","\u0B6E","\u0B6F"],osma:["\u{104A0}","\u{104A1}","\u{104A2}","\u{104A3}","\u{104A4}","\u{104A5}","\u{104A6}","\u{104A7}","\u{104A8}","\u{104A9}"],rohg:["\u{10D30}","\u{10D31}","\u{10D32}","\u{10D33}","\u{10D34}","\u{10D35}","\u{10D36}","\u{10D37}","\u{10D38}","\u{10D39}"],saur:["\uA8D0","\uA8D1","\uA8D2","\uA8D3","\uA8D4","\uA8D5","\uA8D6","\uA8D7","\uA8D8","\uA8D9"],segment:["\u{1FBF0}","\u{1FBF1}","\u{1FBF2}","\u{1FBF3}","\u{1FBF4}","\u{1FBF5}","\u{1FBF6}","\u{1FBF7}","\u{1FBF8}","\u{1FBF9}"],shrd:["\u{111D0}","\u{111D1}","\u{111D2}","\u{111D3}","\u{111D4}","\u{111D5}","\u{111D6}","\u{111D7}","\u{111D8}","\u{111D9}"],sind:["\u{112F0}","\u{112F1}","\u{112F2}","\u{112F3}","\u{112F4}","\u{112F5}","\u{112F6}","\u{112F7}","\u{112F8}","\u{112F9}"],sinh:["\u0DE6","\u0DE7","\u0DE8","\u0DE9","\u0DEA","\u0DEB","\u0DEC","\u0DED","\u0DEE","\u0DEF"],sora:["\u{110F0}","\u{110F1}","\u{110F2}","\u{110F3}","\u{110F4}","\u{110F5}","\u{110F6}","\u{110F7}","\u{110F8}","\u{110F9}"],sund:["\u1BB0","\u1BB1","\u1BB2","\u1BB3","\u1BB4","\u1BB5","\u1BB6","\u1BB7","\u1BB8","\u1BB9"],takr:["\u{116C0}","\u{116C1}","\u{116C2}","\u{116C3}","\u{116C4}","\u{116C5}","\u{116C6}","\u{116C7}","\u{116C8}","\u{116C9}"],talu:["\u19D0","\u19D1","\u19D2","\u19D3","\u19D4","\u19D5","\u19D6","\u19D7","\u19D8","\u19D9"],tamldec:["\u0BE6","\u0BE7","\u0BE8","\u0BE9","\u0BEA","\u0BEB","\u0BEC","\u0BED","\u0BEE","\u0BEF"],telu:["\u0C66","\u0C67","\u0C68","\u0C69","\u0C6A","\u0C6B","\u0C6C","\u0C6D","\u0C6E","\u0C6F"],thai:["\u0E50","\u0E51","\u0E52","\u0E53","\u0E54","\u0E55","\u0E56","\u0E57","\u0E58","\u0E59"],tibt:["\u0F20","\u0F21","\u0F22","\u0F23","\u0F24","\u0F25","\u0F26","\u0F27","\u0F28","\u0F29"],tirh:["\u{114D0}","\u{114D1}","\u{114D2}","\u{114D3}","\u{114D4}","\u{114D5}","\u{114D6}","\u{114D7}","\u{114D8}","\u{114D9}"],vaii:["\u1620","\u1621","\u1622","\u1623","\u1624","\u1625","\u1626","\u1627","\u1628","\u1629"],wara:["\u{118E0}","\u{118E1}","\u{118E2}","\u{118E3}","\u{118E4}","\u{118E5}","\u{118E6}","\u{118E7}","\u{118E8}","\u{118E9}"],wcho:["\u{1E2F0}","\u{1E2F1}","\u{1E2F2}","\u{1E2F3}","\u{1E2F4}","\u{1E2F5}","\u{1E2F6}","\u{1E2F7}","\u{1E2F8}","\u{1E2F9}"]},Xe=new RegExp("^".concat(Ie.source)),dt=new RegExp("".concat(Ie.source,"$")),kt=/[#0](?:[\.,][#0]+)*/g;function dn(le,Ae,Oe,et){var Ot,It=le.sign,Mn=le.exponent,mn=le.magnitude,At=et.notation,Ut=et.style,jn=et.numberingSystem,Jt=Ae.numbers.nu[0],dr=null;At==="compact"&&mn&&(dr=yr(le,Oe,Ae,Ut,et.compactDisplay,et.currencyDisplay,jn));var wr;if(Ut==="currency"&&et.currencyDisplay!=="name"){var Hr=Ae.currencies[et.currency];if(Hr)switch(et.currencyDisplay){case"code":wr=et.currency;break;case"symbol":wr=Hr.symbol;break;default:wr=Hr.narrow;break}else wr=et.currency}var Ar;if(dr)Ar=dr;else if(Ut==="decimal"||Ut==="unit"||Ut==="currency"&&et.currencyDisplay==="name"){var yi=Ae.numbers.decimal[jn]||Ae.numbers.decimal[Jt];Ar=qn(yi.standard,It)}else if(Ut==="currency"){var Rr=Ae.numbers.currency[jn]||Ae.numbers.currency[Jt];Ar=qn(Rr[et.currencySign],It)}else{var si=Ae.numbers.percent[jn]||Ae.numbers.percent[Jt];Ar=qn(si,It)}var Si=kt.exec(Ar)[0];if(Ar=Ar.replace(kt,"{0}").replace(/'(.)'/g,"$1"),Ut==="currency"&&et.currencyDisplay!=="name"){var Rr=Ae.numbers.currency[jn]||Ae.numbers.currency[Jt],$i=Rr.currencySpacing.afterInsertBetween;$i&&!dt.test(wr)&&(Ar=Ar.replace("\xA4{0}","\xA4".concat($i,"{0}")));var Hi=Rr.currencySpacing.beforeInsertBetween;Hi&&!Xe.test(wr)&&(Ar=Ar.replace("{0}\xA4","{0}".concat(Hi,"\xA4")))}for(var Oa=Ar.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),Ma=[],Ua=Ae.numbers.symbols[jn]||Ae.numbers.symbols[Jt],Xa=0,Na=Oa;Xa<Na.length;Xa++){var za=Na[Xa];if(za)switch(za){case"{0}":{Ma.push.apply(Ma,Vn(Ua,le,At,Mn,jn,!dr&&((Ot=et.useGrouping)!==null&&Ot!==void 0?Ot:!0),Si,Ut,et.roundingIncrement,Mi(et.roundingMode,It===-1)));break}case"-":Ma.push({type:"minusSign",value:Ua.minusSign});break;case"+":Ma.push({type:"plusSign",value:Ua.plusSign});break;case"%":Ma.push({type:"percentSign",value:Ua.percentSign});break;case"\xA4":Ma.push({type:"currency",value:wr});break;default:/^\{c:/.test(za)?Ma.push({type:"compact",value:za.substring(3,za.length-1)}):Ma.push({type:"literal",value:za});break}}switch(Ut){case"currency":if(et.currencyDisplay==="name"){var qa=(Ae.numbers.currency[jn]||Ae.numbers.currency[Jt]).unitPattern,no=void 0,wo=Ae.currencies[et.currency];wo?no=ci(Oe,le.roundedNumber.times(ye.pow(10,Mn)).toNumber(),wo.displayName):no=et.currency;for(var go=qa.split(/(\{[01]\})/g),Ka=[],Ia=0,Us=go;Ia<Us.length;Ia++){var za=Us[Ia];switch(za){case"{0}":Ka.push.apply(Ka,Ma);break;case"{1}":Ka.push({type:"currency",value:no});break;default:za&&Ka.push({type:"literal",value:za});break}}return Ka}else return Ma;case"unit":{var Vs=et.unit,Is=et.unitDisplay,uo=Ae.units.simple[Vs],qa=void 0;if(uo)qa=ci(Oe,le.roundedNumber.times(ye.pow(10,Mn)).toNumber(),Ae.units.simple[Vs][Is]);else{var Ds=Vs.split("-per-"),Js=Ds[0],eo=Ds[1];uo=Ae.units.simple[Js];var uu=ci(Oe,le.roundedNumber.times(ye.pow(10,Mn)).toNumber(),Ae.units.simple[Js][Is]),pa=Ae.units.simple[eo].perUnit[Is];if(pa)qa=pa.replace("{0}",uu);else{var na=Ae.units.compound.per[Is],Ui=ci(Oe,1,Ae.units.simple[eo][Is]);qa=qa=na.replace("{0}",uu).replace("{1}",Ui.replace("{0}",""))}}for(var Ka=[],xe=0,Ce=qa.split(/(\s*\{0\}\s*)/);xe<Ce.length;xe++){var za=Ce[xe],st=/^(\s*)\{0\}(\s*)$/.exec(za);st?(st[1]&&Ka.push({type:"literal",value:st[1]}),Ka.push.apply(Ka,Ma),st[2]&&Ka.push({type:"literal",value:st[2]})):za&&Ka.push({type:"unit",value:za})}return Ka}default:return Ma}}function Vn(le,Ae,Oe,et,Ot,It,Mn,mn,At,Ut){var jn=[],Jt=Ae.formattedString,dr=Ae.roundedNumber;if(dr.isNaN())return[{type:"nan",value:Jt}];if(!dr.isFinite())return[{type:"infinity",value:Jt}];var wr=Ue[Ot];wr&&(Jt=Jt.replace(/\d/g,function(qa){return wr[+qa]||qa}));var Hr=Jt.indexOf("."),Ar,yi;Hr>0?(Ar=Jt.slice(0,Hr),yi=Jt.slice(Hr+1)):Ar=Jt;var Rr=!1;if(It==="always"?Rr=!0:It==="min2"?Rr=dr.greaterThanOrEqualTo(1e4):(It==="auto"||It)&&(Rr=Oe!=="compact"||dr.greaterThanOrEqualTo(1e4)),Rr){var si=mn==="currency"&&le.currencyGroup!=null?le.currencyGroup:le.group,Si=[],$i=Mn.split(".")[0],Hi=$i.split(","),Oa=3,Ma=3;Hi.length>1&&(Oa=Hi[Hi.length-1].length),Hi.length>2&&(Ma=Hi[Hi.length-2].length);var Ua=Ar.length-Oa;if(Ua>0){for(Si.push(Ar.slice(Ua,Ua+Oa)),Ua-=Ma;Ua>0;Ua-=Ma)Si.push(Ar.slice(Ua,Ua+Ma));Si.push(Ar.slice(0,Ua+Ma))}else Si.push(Ar);for(;Si.length>0;){var Xa=Si.pop();jn.push({type:"integer",value:Xa}),Si.length>0&&jn.push({type:"group",value:si})}}else jn.push({type:"integer",value:Ar});if(yi!==void 0){var Na=mn==="currency"&&le.currencyDecimal!=null?le.currencyDecimal:le.decimal;jn.push({type:"decimal",value:Na},{type:"fraction",value:yi})}if((Oe==="scientific"||Oe==="engineering")&&dr.isFinite()){jn.push({type:"exponentSeparator",value:le.exponential}),et<0&&(jn.push({type:"exponentMinusSign",value:le.minusSign}),et=-et);var za=Sa(new ye(et),0,0,At,Ut);jn.push({type:"exponentInteger",value:za.formattedString})}return jn}function qn(le,Ae){le.indexOf(";")<0&&(le="".concat(le,";-").concat(le));var Oe=le.split(";"),et=Oe[0],Ot=Oe[1];switch(Ae){case 0:return et;case-1:return Ot;default:return Ot.indexOf("-")>=0?Ot.replace(/-/g,"+"):"+".concat(et)}}function yr(le,Ae,Oe,et,Ot,It,Mn){var mn,At=le.roundedNumber,Ut=le.sign,jn=le.magnitude,Jt=String(Math.pow(10,jn)),dr=Oe.numbers.nu[0],wr;if(et==="currency"&&It!=="name"){var Hr=Oe.numbers.currency,Ar=Hr[Mn]||Hr[dr],yi=(mn=Ar.short)===null||mn===void 0?void 0:mn[Jt];if(!yi)return null;wr=ci(Ae,At.toNumber(),yi)}else{var Hr=Oe.numbers.decimal,Rr=Hr[Mn]||Hr[dr],si=Rr[Ot][Jt];if(!si)return null;wr=ci(Ae,At.toNumber(),si)}return wr==="0"?null:(wr=qn(wr,Ut).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0"),wr)}function ci(le,Ae,Oe){return Oe[le.select(Ae)]||Oe.other}function hi(le,Ae){var Oe=le.dataLocaleData.numbers.symbols[le.numberingSystem],et=Oe.approximatelySign;return Ae.push({type:"approximatelySign",value:et}),Ae}function Ti(le,Ae){var Oe,et=Ae,Ot=0,It=le.pl,Mn=le.dataLocaleData,mn=le.numberingSystem,At=Mn.numbers.symbols[mn]||Mn.numbers.symbols[Mn.numbers.nu[0]],Ut=0,jn;if(et.isNaN())jn=At.nan;else if(!et.isFinite())jn=At.infinity;else{et.isZero()||(ki(et.isFinite(),"Input must be a mathematical value"),le.style=="percent"&&(et=et.times(100)),Oe=P(le,et),Ut=Oe[0],Ot=Oe[1],et=et.times(ye.pow(10,-Ut)));var Jt=D(le,et);jn=Jt.formattedString,et=Jt.roundedNumber}var dr,wr=le.signDisplay;switch(wr){case"never":dr=0;break;case"auto":et.isPositive()||et.isNaN()?dr=0:dr=-1;break;case"always":et.isPositive()||et.isNaN()?dr=1:dr=-1;break;case"exceptZero":et.isZero()?dr=0:et.isNegative()?dr=-1:dr=1;break;default:ki(wr==="negative",'signDisplay must be "negative"'),et.isNegative()&&!et.isZero()?dr=-1:dr=0;break}return dn({roundedNumber:et,formattedString:jn,exponent:Ut,magnitude:Ot,sign:dr},le.dataLocaleData,It,le)}function Vi(le,Ae){var Oe=Ti(le,Ae);return Oe.map(function(et){return et.value}).join("")}function Di(le,Ae,Oe,et){var Ot=et.getInternalSlots;ki(!Ae.isNaN()&&!Oe.isNaN(),"Input must be a number",RangeError);var It=Ot(le),Mn=Ti(It,Ae),mn=Ti(It,Oe);if(Vi(It,Ae)===Vi(It,Oe)){var At=hi(It,Mn);return At.forEach(function(Jt){Jt.source="shared"}),At}var Ut=[];Mn.forEach(function(Jt){Jt.source="startRange",Ut.push(Jt)});var jn=It.dataLocaleData.numbers.symbols[It.numberingSystem].rangeSign;return Ut.push({type:"literal",value:jn,source:"shared"}),mn.forEach(function(Jt){Jt.source="endRange",Ut.push(Jt)}),Fr(le,Ut,{getInternalSlots:Ot})}function Pi(le,Ae,Oe,et){var Ot=et.getInternalSlots,It=Di(le,Ae,Oe,{getInternalSlots:Ot});return It.map(function(Mn){return Mn.value}).join("")}function mt(le,Ae,Oe,et){var Ot=et.getInternalSlots,It=Di(le,Ae,Oe,{getInternalSlots:Ot});return It.map(function(Mn,mn){return{type:Mn.type,value:Mn.value,source:Mn.source,result:mn.toString()}})}function tn(le,Ae,Oe){for(var et=Ti(Oe.getInternalSlots(le),Ae),Ot=Ve(0),It=0,Mn=et;It<Mn.length;It++){var mn=Mn[It];Ot.push({type:mn.type,value:mn.value})}return Ot}var or=u(21301),rt=new Set([1,2,5,10,20,25,50,100,200,250,500,1e3,2e3,2500,5e3]);function St(le,Ae,Oe,et,Ot){var It=Nr(Ae,"minimumIntegerDigits",1,21,1),Mn=Ae.minimumFractionDigits,mn=Ae.maximumFractionDigits,At=Ae.minimumSignificantDigits,Ut=Ae.maximumSignificantDigits;le.minimumIntegerDigits=It;var jn=Nr(Ae,"roundingIncrement",1,5e3,1);ki(rt.has(jn),"Invalid rounding increment value: ".concat(jn,`. Valid values are `).concat(Array.from(rt).join(", "),"."));var Jt=ti(Ae,"roundingMode","string",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],"halfExpand"),dr=ti(Ae,"roundingPriority","string",["auto","morePrecision","lessPrecision"],"auto"),wr=ti(Ae,"trailingZeroDisplay","string",["auto","stripIfInteger"],"auto");jn!==1&&(et=Oe),le.roundingIncrement=jn,le.roundingMode=Jt,le.trailingZeroDisplay=wr;var Hr=At!==void 0||Ut!==void 0,Ar=Mn!==void 0||mn!==void 0,yi=!0,Rr=!0;if(dr==="auto"&&(yi=Hr,(Hr||!Ar&&Ot==="compact")&&(Rr=!1)),yi&&(Hr?(le.minimumSignificantDigits=Tr(At,1,21,1),le.maximumSignificantDigits=Tr(Ut,le.minimumSignificantDigits,21,21)):(le.minimumSignificantDigits=1,le.maximumSignificantDigits=21)),Rr)if(Ar){if(Mn=Tr(Mn,0,100,void 0),mn=Tr(mn,0,100,void 0),Mn===void 0)ki(mn!==void 0,"maximumFractionDigits must be defined"),Mn=Math.min(Oe,mn);else if(mn===void 0)mn=Math.max(et,Mn);else if(Mn>mn)throw new RangeError("Invalid range, ".concat(Mn," > ").concat(mn));le.minimumFractionDigits=Mn,le.maximumFractionDigits=mn}else le.minimumFractionDigits=Oe,le.maximumFractionDigits=et;!yi&&!Rr?(le.minimumFractionDigits=0,le.maximumFractionDigits=0,le.minimumSignificantDigits=1,le.maximumSignificantDigits=2,le.roundingType="morePrecision",le.roundingPriority="morePrecision"):dr==="morePrecision"?(le.roundingType="morePrecision",le.roundingPriority="morePrecision"):dr==="lessPrecision"?(le.roundingType="lessPrecision",le.roundingPriority="lessPrecision"):Hr?(le.roundingType="significantDigits",le.roundingPriority="auto"):(le.roundingType="fractionDigits",le.roundingPriority="auto"),jn!==1&&(ki(le.roundingType==="fractionDigits","Invalid roundingType",TypeError),ki(le.maximumFractionDigits===le.minimumFractionDigits,"With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.",RangeError))}function _n(le,Ae){Ae===void 0&&(Ae=Object.create(null));var Oe=ti(Ae,"style","string",["decimal","percent","currency","unit"],"decimal");le.style=Oe;var et=ti(Ae,"currency","string",void 0,void 0);ki(et===void 0||Lt(et),"Malformed currency code",RangeError),ki(Oe!=="currency"||et!==void 0,"currency cannot be undefined",TypeError);var Ot=ti(Ae,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),It=ti(Ae,"currencySign","string",["standard","accounting"],"standard"),Mn=ti(Ae,"unit","string",void 0,void 0);ki(Mn===void 0||nr(Mn),"Invalid unit argument for Intl.NumberFormat()",RangeError),ki(Oe!=="unit"||Mn!==void 0,"unit cannot be undefined",TypeError);var mn=ti(Ae,"unitDisplay","string",["short","narrow","long"],"short");Oe==="currency"&&(le.currency=et.toUpperCase(),le.currencyDisplay=Ot,le.currencySign=It),Oe==="unit"&&(le.unit=Mn,le.unitDisplay=mn)}function vn(le,Ae,Oe,et){var Ot=et.getInternalSlots,It=et.localeData,Mn=et.availableLocales,mn=et.numberingSystemNames,At=et.getDefaultLocale,Ut=et.currencyDigitsData,jn=l(Ae),Jt=Xn(Oe),dr=Object.create(null),wr=ti(Jt,"localeMatcher","string",["lookup","best fit"],"best fit");dr.localeMatcher=wr;var Hr=ti(Jt,"numberingSystem","string",void 0,void 0);if(Hr!==void 0&&mn.indexOf(Hr)<0)throw RangeError("Invalid numberingSystems: ".concat(Hr));dr.nu=Hr;var Ar=(0,or.ResolveLocale)(Array.from(Mn),jn,dr,["nu"],It,At),yi=It[Ar.dataLocale];ki(!!yi,"Missing locale data for ".concat(Ar.dataLocale));var Rr=Ot(le);Rr.locale=Ar.locale,Rr.dataLocale=Ar.dataLocale,Rr.numberingSystem=Ar.nu,Rr.dataLocaleData=yi,_n(Rr,Jt);var si=Rr.style,Si=ti(Jt,"notation","string",["standard","scientific","engineering","compact"],"standard");Rr.notation=Si;var $i,Hi;if(si==="currency"&&Si==="standard"){var Oa=Rr.currency,Ma=oe(Oa,{currencyDigitsData:Ut});$i=Ma,Hi=Ma}else $i=0,Hi=si==="percent"?0:3;St(Rr,Jt,$i,Hi,Si);var Ua=ti(Jt,"compactDisplay","string",["short","long"],"short"),Xa="auto";Si==="compact"&&(Rr.compactDisplay=Ua,Xa="min2");var Na=Ii(Jt,"useGrouping",["min2","auto","always"],"always",!1,Xa);Rr.useGrouping=Na;var za=ti(Jt,"signDisplay","string",["auto","never","always","exceptZero","negative"],"auto");return Rr.signDisplay=za,le}function Ln(le){for(var Ae=[],Oe=le.indexOf("{"),et=0,Ot=0,It=le.length;Oe<le.length&&Oe>-1;)et=le.indexOf("}",Oe),ki(et>Oe,"Invalid pattern ".concat(le)),Oe>Ot&&Ae.push({type:"literal",value:le.substring(Ot,Oe)}),Ae.push({type:le.substring(Oe+1,et),value:void 0}),Ot=et+1,Oe=le.indexOf("{",Ot);return Ot<It&&Ae.push({type:"literal",value:le.substring(Ot,It)}),Ae}function _r(le,Ae,Oe){var et="best fit";return Oe!==void 0&&(Oe=Oi(Oe),et=ti(Oe,"localeMatcher","string",["lookup","best fit"],"best fit")),(0,or.LookupSupportedLocales)(Array.from(le),Ae)}var Br=function(le){(0,Pt.__extends)(Ae,le);function Ae(){var Oe=le!==null&&le.apply(this,arguments)||this;return Oe.type="MISSING_LOCALE_DATA",Oe}return Ae}(Error);function Kr(le){return le.type==="MISSING_LOCALE_DATA"}var Jr;(function(le){le.startRange="startRange",le.shared="shared",le.endRange="endRange"})(Jr||(Jr={}));function ii(le){var Ae=Dt(le,"number");if(typeof Ae=="bigint")return new ye(Ae);if(Ae===void 0)return new ye(NaN);if(Ae===!0)return new ye(1);if(Ae===!1)return new ye(0);if(Ae===null)return new ye(0);try{return new ye(Ae)}catch{return new ye(NaN)}}},1685:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>x});class l{constructor(p){this.propagationStopped,this.defaultPrevented,this.type=p,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}function g(f){f.stopPropagation()}function y(f){f.preventDefault()}const x=l},1779:(Ge,w,u)=>{var l=u(48287).Buffer,g=function(){"use strict";function y(O,R){return R!=null&&O instanceof R}var x;try{x=Map}catch{x=function(){}}var f;try{f=Set}catch{f=function(){}}var p;try{p=Promise}catch{p=function(){}}function h(O,R,C,L,j){typeof R=="object"&&(C=R.depth,L=R.prototype,j=R.includeNonEnumerable,R=R.circular);var I=[],U=[],$=typeof l<"u";typeof R>"u"&&(R=!0),typeof C>"u"&&(C=1/0);function ee(re,Se){if(re===null)return null;if(Se===0)return re;var z,Q;if(typeof re!="object")return re;if(y(re,x))z=new x;else if(y(re,f))z=new f;else if(y(re,p))z=new p(function(ue,ie){re.then(function(Te){ue(ee(Te,Se-1))},function(Te){ie(ee(Te,Se-1))})});else if(h.__isArray(re))z=[];else if(h.__isRegExp(re))z=new RegExp(re.source,d(re)),re.lastIndex&&(z.lastIndex=re.lastIndex);else if(h.__isDate(re))z=new Date(re.getTime());else{if($&&l.isBuffer(re))return l.allocUnsafe?z=l.allocUnsafe(re.length):z=new l(re.length),re.copy(z),z;y(re,Error)?z=Object.create(re):typeof L>"u"?(Q=Object.getPrototypeOf(re),z=Object.create(Q)):(z=Object.create(L),Q=L)}if(R){var ce=I.indexOf(re);if(ce!=-1)return U[ce];I.push(re),U.push(z)}y(re,x)&&re.forEach(function(ue,ie){var Te=ee(ie,Se-1),je=ee(ue,Se-1);z.set(Te,je)}),y(re,f)&&re.forEach(function(ue){var ie=ee(ue,Se-1);z.add(ie)});for(var se in re){var q;Q&&(q=Object.getOwnPropertyDescriptor(Q,se)),!(q&&q.set==null)&&(z[se]=ee(re[se],Se-1))}if(Object.getOwnPropertySymbols)for(var te=Object.getOwnPropertySymbols(re),se=0;se<te.length;se++){var A=te[se],T=Object.getOwnPropertyDescriptor(re,A);T&&!T.enumerable&&!j||(z[A]=ee(re[A],Se-1),T.enumerable||Object.defineProperty(z,A,{enumerable:!1}))}if(j)for(var B=Object.getOwnPropertyNames(re),se=0;se<B.length;se++){var X=B[se],T=Object.getOwnPropertyDescriptor(re,X);T&&T.enumerable||(z[X]=ee(re[X],Se-1),Object.defineProperty(z,X,{enumerable:!1}))}return z}return ee(O,C)}h.clonePrototype=function(R){if(R===null)return null;var C=function(){};return C.prototype=R,new C};function E(O){return Object.prototype.toString.call(O)}h.__objToStr=E;function v(O){return typeof O=="object"&&E(O)==="[object Date]"}h.__isDate=v;function m(O){return typeof O=="object"&&E(O)==="[object Array]"}h.__isArray=m;function S(O){return typeof O=="object"&&E(O)==="[object RegExp]"}h.__isRegExp=S;function d(O){var R="";return O.global&&(R+="g"),O.ignoreCase&&(R+="i"),O.multiline&&(R+="m"),R}return h.__getRegExpFlags=d,h}();Ge.exports&&(Ge.exports=g)},1903:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.onErrorResumeNext=void 0;var l=u(48051),g=u(7652),y=u(17214),x=u(5717),f=u(19724);function p(){for(var h=[],E=0;E<arguments.length;E++)h[E]=arguments[E];var v=g.argsOrArgArray(h);return new l.Observable(function(m){var S=0,d=function(){if(S<v.length){var O=void 0;try{O=f.innerFrom(v[S++])}catch{d();return}var R=new y.OperatorSubscriber(m,void 0,x.noop,x.noop);O.subscribe(R),R.add(d)}else m.complete()};d()})}w.onErrorResumeNext=p},1932:(Ge,w,u)=>{"use strict";u.d(w,{$i:()=>Ft,Qx:()=>h,YT:()=>me,a6:()=>E,c2:()=>S,jM:()=>_e,ss:()=>Ct,vI:()=>ge});var l=Symbol.for("immer-nothing"),g=Symbol.for("immer-draftable"),y=Symbol.for("immer-state"),x=[];function f(rn,...Vt){throw new Error(`[Immer] minified error nr: ${rn}. Full error at: https://bit.ly/3cXEKWf`)}var p=Object.getPrototypeOf;function h(rn){return!!rn&&!!rn[y]}function E(rn){return rn?m(rn)||Array.isArray(rn)||!!rn[g]||!!rn.constructor?.[g]||I(rn)||U(rn):!1}var v=Object.prototype.constructor.toString();function m(rn){if(!rn||typeof rn!="object")return!1;const Vt=p(rn);if(Vt===null)return!0;const Kn=Object.hasOwnProperty.call(Vt,"constructor")&&Vt.constructor;return Kn===Object?!0:typeof Kn=="function"&&Function.toString.call(Kn)===v}function S(rn){return h(rn)||f(15,rn),rn[y].base_}function d(rn,Vt){O(rn)===0?Reflect.ownKeys(rn).forEach(Kn=>{Vt(Kn,rn[Kn],rn)}):rn.forEach((Kn,ur)=>Vt(ur,Kn,rn))}function O(rn){const Vt=rn[y];return Vt?Vt.type_:Array.isArray(rn)?1:I(rn)?2:U(rn)?3:0}function R(rn,Vt){return O(rn)===2?rn.has(Vt):Object.prototype.hasOwnProperty.call(rn,Vt)}function C(rn,Vt){return O(rn)===2?rn.get(Vt):rn[Vt]}function L(rn,Vt,Kn){const ur=O(rn);ur===2?rn.set(Vt,Kn):ur===3?rn.add(Kn):rn[Vt]=Kn}function j(rn,Vt){return rn===Vt?rn!==0||1/rn===1/Vt:rn!==rn&&Vt!==Vt}function I(rn){return rn instanceof Map}function U(rn){return rn instanceof Set}function $(rn){return rn.copy_||rn.base_}function ee(rn,Vt){if(I(rn))return new Map(rn);if(U(rn))return new Set(rn);if(Array.isArray(rn))return Array.prototype.slice.call(rn);const Kn=m(rn);if(Vt===!0||Vt==="class_only"&&!Kn){const ur=Object.getOwnPropertyDescriptors(rn);delete ur[y];let on=Reflect.ownKeys(ur);for(let tr=0;tr<on.length;tr++){const Cn=on[tr],Wn=ur[Cn];Wn.writable===!1&&(Wn.writable=!0,Wn.configurable=!0),(Wn.get||Wn.set)&&(ur[Cn]={configurable:!0,writable:!0,enumerable:Wn.enumerable,value:rn[Cn]})}return Object.create(p(rn),ur)}else{const ur=p(rn);if(ur!==null&&Kn)return{...rn};const on=Object.create(ur);return Object.assign(on,rn)}}function re(rn,Vt=!1){return z(rn)||h(rn)||!E(rn)||(O(rn)>1&&Object.defineProperties(rn,{set:{value:Se},add:{value:Se},clear:{value:Se},delete:{value:Se}}),Object.freeze(rn),Vt&&Object.values(rn).forEach(Kn=>re(Kn,!0))),rn}function Se(){f(2)}function z(rn){return Object.isFrozen(rn)}var Q={};function ce(rn){const Vt=Q[rn];return Vt||f(0,rn),Vt}function se(rn,Vt){Q[rn]||(Q[rn]=Vt)}var q;function te(){return q}function A(rn,Vt){return{drafts_:[],parent_:rn,immer_:Vt,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function T(rn,Vt){Vt&&(ce("Patches"),rn.patches_=[],rn.inversePatches_=[],rn.patchListener_=Vt)}function B(rn){X(rn),rn.drafts_.forEach(ie),rn.drafts_=null}function X(rn){rn===q&&(q=rn.parent_)}function ue(rn){return q=A(q,rn)}function ie(rn){const Vt=rn[y];Vt.type_===0||Vt.type_===1?Vt.revoke_():Vt.revoked_=!0}function Te(rn,Vt){Vt.unfinalizedDrafts_=Vt.drafts_.length;const Kn=Vt.drafts_[0];return rn!==void 0&&rn!==Kn?(Kn[y].modified_&&(B(Vt),f(4)),E(rn)&&(rn=je(Vt,rn),Vt.parent_||tt(Vt,rn)),Vt.patches_&&ce("Patches").generateReplacementPatches_(Kn[y].base_,rn,Vt.patches_,Vt.inversePatches_)):rn=je(Vt,Kn,[]),B(Vt),Vt.patches_&&Vt.patchListener_(Vt.patches_,Vt.inversePatches_),rn!==l?rn:void 0}function je(rn,Vt,Kn){if(z(Vt))return Vt;const ur=Vt[y];if(!ur)return d(Vt,(on,tr)=>yt(rn,ur,Vt,on,tr,Kn)),Vt;if(ur.scope_!==rn)return Vt;if(!ur.modified_)return tt(rn,ur.base_,!0),ur.base_;if(!ur.finalized_){ur.finalized_=!0,ur.scope_.unfinalizedDrafts_--;const on=ur.copy_;let tr=on,Cn=!1;ur.type_===3&&(tr=new Set(on),on.clear(),Cn=!0),d(tr,(Wn,er)=>yt(rn,ur,on,Wn,er,Kn,Cn)),tt(rn,on,!1),Kn&&rn.patches_&&ce("Patches").generatePatches_(ur,Kn,rn.patches_,rn.inversePatches_)}return ur.copy_}function yt(rn,Vt,Kn,ur,on,tr,Cn){if(h(on)){const Wn=tr&&Vt&&Vt.type_!==3&&!R(Vt.assigned_,ur)?tr.concat(ur):void 0,er=je(rn,on,Wn);if(L(Kn,ur,er),h(er))rn.canAutoFreeze_=!1;else return}else Cn&&Kn.add(on);if(E(on)&&!z(on)){if(!rn.immer_.autoFreeze_&&rn.unfinalizedDrafts_<1)return;je(rn,on),(!Vt||!Vt.scope_.parent_)&&typeof ur!="symbol"&&(I(Kn)?Kn.has(ur):Object.prototype.propertyIsEnumerable.call(Kn,ur))&&tt(rn,on)}}function tt(rn,Vt,Kn=!1){!rn.parent_&&rn.immer_.autoFreeze_&&rn.canAutoFreeze_&&re(Vt,Kn)}function Ze(rn,Vt){const Kn=Array.isArray(rn),ur={type_:Kn?1:0,scope_:Vt?Vt.scope_:te(),modified_:!1,finalized_:!1,assigned_:{},parent_:Vt,base_:rn,draft_:null,copy_:null,revoke_:null,isManual_:!1};let on=ur,tr=Ne;Kn&&(on=[ur],tr=it);const{revoke:Cn,proxy:Wn}=Proxy.revocable(on,tr);return ur.draft_=Wn,ur.revoke_=Cn,Wn}var Ne={get(rn,Vt){if(Vt===y)return rn;const Kn=$(rn);if(!R(Kn,Vt))return Dn(rn,Kn,Vt);const ur=Kn[Vt];return rn.finalized_||!E(ur)?ur:ur===Rt(rn.base_,Vt)?(Tn(rn),rn.copy_[Vt]=$t(ur,rn)):ur},has(rn,Vt){return Vt in $(rn)},ownKeys(rn){return Reflect.ownKeys($(rn))},set(rn,Vt,Kn){const ur=Mt($(rn),Vt);if(ur?.set)return ur.set.call(rn.draft_,Kn),!0;if(!rn.modified_){const on=Rt($(rn),Vt),tr=on?.[y];if(tr&&tr.base_===Kn)return rn.copy_[Vt]=Kn,rn.assigned_[Vt]=!1,!0;if(j(Kn,on)&&(Kn!==void 0||R(rn.base_,Vt)))return!0;Tn(rn),Wt(rn)}return rn.copy_[Vt]===Kn&&(Kn!==void 0||Vt in rn.copy_)||Number.isNaN(Kn)&&Number.isNaN(rn.copy_[Vt])||(rn.copy_[Vt]=Kn,rn.assigned_[Vt]=!0),!0},deleteProperty(rn,Vt){return Rt(rn.base_,Vt)!==void 0||Vt in rn.base_?(rn.assigned_[Vt]=!1,Tn(rn),Wt(rn)):delete rn.assigned_[Vt],rn.copy_&&delete rn.copy_[Vt],!0},getOwnPropertyDescriptor(rn,Vt){const Kn=$(rn),ur=Reflect.getOwnPropertyDescriptor(Kn,Vt);return ur&&{writable:!0,configurable:rn.type_!==1||Vt!=="length",enumerable:ur.enumerable,value:Kn[Vt]}},defineProperty(){f(11)},getPrototypeOf(rn){return p(rn.base_)},setPrototypeOf(){f(12)}},it={};d(Ne,(rn,Vt)=>{it[rn]=function(){return arguments[0]=arguments[0][0],Vt.apply(this,arguments)}}),it.deleteProperty=function(rn,Vt){return it.set.call(this,rn,Vt,void 0)},it.set=function(rn,Vt,Kn){return Ne.set.call(this,rn[0],Vt,Kn,rn[0])};function Rt(rn,Vt){const Kn=rn[y];return(Kn?$(Kn):rn)[Vt]}function Dn(rn,Vt,Kn){const ur=Mt(Vt,Kn);return ur?"value"in ur?ur.value:ur.get?.call(rn.draft_):void 0}function Mt(rn,Vt){if(!(Vt in rn))return;let Kn=p(rn);for(;Kn;){const ur=Object.getOwnPropertyDescriptor(Kn,Vt);if(ur)return ur;Kn=p(Kn)}}function Wt(rn){rn.modified_||(rn.modified_=!0,rn.parent_&&Wt(rn.parent_))}function Tn(rn){rn.copy_||(rn.copy_=ee(rn.base_,rn.scope_.immer_.useStrictShallowCopy_))}var bn=class{constructor(rn){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(Vt,Kn,ur)=>{if(typeof Vt=="function"&&typeof Kn!="function"){const tr=Kn;Kn=Vt;const Cn=this;return function(er=tr,...Fn){return Cn.produce(er,en=>Kn.call(this,en,...Fn))}}typeof Kn!="function"&&f(6),ur!==void 0&&typeof ur!="function"&&f(7);let on;if(E(Vt)){const tr=ue(this),Cn=$t(Vt,void 0);let Wn=!0;try{on=Kn(Cn),Wn=!1}finally{Wn?B(tr):X(tr)}return T(tr,ur),Te(on,tr)}else if(!Vt||typeof Vt!="object"){if(on=Kn(Vt),on===void 0&&(on=Vt),on===l&&(on=void 0),this.autoFreeze_&&re(on,!0),ur){const tr=[],Cn=[];ce("Patches").generateReplacementPatches_(Vt,on,tr,Cn),ur(tr,Cn)}return on}else f(1,Vt)},this.produceWithPatches=(Vt,Kn)=>{if(typeof Vt=="function")return(Cn,...Wn)=>this.produceWithPatches(Cn,er=>Vt(er,...Wn));let ur,on;return[this.produce(Vt,Kn,(Cn,Wn)=>{ur=Cn,on=Wn}),ur,on]},typeof rn?.autoFreeze=="boolean"&&this.setAutoFreeze(rn.autoFreeze),typeof rn?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(rn.useStrictShallowCopy)}createDraft(rn){E(rn)||f(8),h(rn)&&(rn=Ct(rn));const Vt=ue(this),Kn=$t(rn,void 0);return Kn[y].isManual_=!0,X(Vt),Kn}finishDraft(rn,Vt){const Kn=rn&&rn[y];(!Kn||!Kn.isManual_)&&f(9);const{scope_:ur}=Kn;return T(ur,Vt),Te(void 0,ur)}setAutoFreeze(rn){this.autoFreeze_=rn}setUseStrictShallowCopy(rn){this.useStrictShallowCopy_=rn}applyPatches(rn,Vt){let Kn;for(Kn=Vt.length-1;Kn>=0;Kn--){const on=Vt[Kn];if(on.path.length===0&&on.op==="replace"){rn=on.value;break}}Kn>-1&&(Vt=Vt.slice(Kn+1));const ur=ce("Patches").applyPatches_;return h(rn)?ur(rn,Vt):this.produce(rn,on=>ur(on,Vt))}};function $t(rn,Vt){const Kn=I(rn)?ce("MapSet").proxyMap_(rn,Vt):U(rn)?ce("MapSet").proxySet_(rn,Vt):Ze(rn,Vt);return(Vt?Vt.scope_:te()).drafts_.push(Kn),Kn}function Ct(rn){return h(rn)||f(10,rn),Z(rn)}function Z(rn){if(!E(rn)||z(rn))return rn;const Vt=rn[y];let Kn;if(Vt){if(!Vt.modified_)return Vt.base_;Vt.finalized_=!0,Kn=ee(rn,Vt.scope_.immer_.useStrictShallowCopy_)}else Kn=ee(rn,!0);return d(Kn,(ur,on)=>{L(Kn,ur,Z(on))}),Vt&&(Vt.finalized_=!1),Kn}function me(){const Vt="replace",Kn="add",ur="remove";function on(kn,Jn,Nn,kr){switch(kn.type_){case 0:case 2:return Cn(kn,Jn,Nn,kr);case 1:return tr(kn,Jn,Nn,kr);case 3:return Wn(kn,Jn,Nn,kr)}}function tr(kn,Jn,Nn,kr){let{base_:bt,assigned_:ne}=kn,fe=kn.copy_;fe.length<bt.length&&([bt,fe]=[fe,bt],[Nn,kr]=[kr,Nn]);for(let K=0;K<bt.length;K++)if(ne[K]&&fe[K]!==bt[K]){const he=Jn.concat([K]);Nn.push({op:Vt,path:he,value:gn(fe[K])}),kr.push({op:Vt,path:he,value:gn(bt[K])})}for(let K=bt.length;K<fe.length;K++){const he=Jn.concat([K]);Nn.push({op:Kn,path:he,value:gn(fe[K])})}for(let K=fe.length-1;bt.length<=K;--K){const he=Jn.concat([K]);kr.push({op:ur,path:he})}}function Cn(kn,Jn,Nn,kr){const{base_:bt,copy_:ne}=kn;d(kn.assigned_,(fe,K)=>{const he=C(bt,fe),Fe=C(ne,fe),Nt=K?R(bt,fe)?Vt:Kn:ur;if(he===Fe&&Nt===Vt)return;const ln=Jn.concat(fe);Nn.push(Nt===ur?{op:Nt,path:ln}:{op:Nt,path:ln,value:Fe}),kr.push(Nt===Kn?{op:ur,path:ln}:Nt===ur?{op:Kn,path:ln,value:gn(he)}:{op:Vt,path:ln,value:gn(he)})})}function Wn(kn,Jn,Nn,kr){let{base_:bt,copy_:ne}=kn,fe=0;bt.forEach(K=>{if(!ne.has(K)){const he=Jn.concat([fe]);Nn.push({op:ur,path:he,value:K}),kr.unshift({op:Kn,path:he,value:K})}fe++}),fe=0,ne.forEach(K=>{if(!bt.has(K)){const he=Jn.concat([fe]);Nn.push({op:Kn,path:he,value:K}),kr.unshift({op:ur,path:he,value:K})}fe++})}function er(kn,Jn,Nn,kr){Nn.push({op:Vt,path:[],value:Jn===l?void 0:Jn}),kr.push({op:Vt,path:[],value:kn})}function Fn(kn,Jn){return Jn.forEach(Nn=>{const{path:kr,op:bt}=Nn;let ne=kn;for(let Fe=0;Fe<kr.length-1;Fe++){const Nt=O(ne);let ln=kr[Fe];typeof ln!="string"&&typeof ln!="number"&&(ln=""+ln),(Nt===0||Nt===1)&&(ln==="__proto__"||ln==="constructor")&&f(19),typeof ne=="function"&&ln==="prototype"&&f(19),ne=C(ne,ln),typeof ne!="object"&&f(18,kr.join("/"))}const fe=O(ne),K=en(Nn.value),he=kr[kr.length-1];switch(bt){case Vt:switch(fe){case 2:return ne.set(he,K);case 3:f(16);default:return ne[he]=K}case Kn:switch(fe){case 1:return he==="-"?ne.push(K):ne.splice(he,0,K);case 2:return ne.set(he,K);case 3:return ne.add(K);default:return ne[he]=K}case ur:switch(fe){case 1:return ne.splice(he,1);case 2:return ne.delete(he);case 3:return ne.delete(Nn.value);default:return delete ne[he]}default:f(17,bt)}}),kn}function en(kn){if(!E(kn))return kn;if(Array.isArray(kn))return kn.map(en);if(I(kn))return new Map(Array.from(kn.entries()).map(([Nn,kr])=>[Nn,en(kr)]));if(U(kn))return new Set(Array.from(kn).map(en));const Jn=Object.create(p(kn));for(const Nn in kn)Jn[Nn]=en(kn[Nn]);return R(kn,g)&&(Jn[g]=kn[g]),Jn}function gn(kn){return h(kn)?en(kn):kn}se("Patches",{applyPatches_:Fn,generatePatches_:on,generateReplacementPatches_:er})}function ke(){class rn extends Map{constructor(er,Fn){super(),this[y]={type_:2,parent_:Fn,scope_:Fn?Fn.scope_:te(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:er,draft_:this,isManual_:!1,revoked_:!1}}get size(){return $(this[y]).size}has(er){return $(this[y]).has(er)}set(er,Fn){const en=this[y];return Cn(en),(!$(en).has(er)||$(en).get(er)!==Fn)&&(Kn(en),Wt(en),en.assigned_.set(er,!0),en.copy_.set(er,Fn),en.assigned_.set(er,!0)),this}delete(er){if(!this.has(er))return!1;const Fn=this[y];return Cn(Fn),Kn(Fn),Wt(Fn),Fn.base_.has(er)?Fn.assigned_.set(er,!1):Fn.assigned_.delete(er),Fn.copy_.delete(er),!0}clear(){const er=this[y];Cn(er),$(er).size&&(Kn(er),Wt(er),er.assigned_=new Map,d(er.base_,Fn=>{er.assigned_.set(Fn,!1)}),er.copy_.clear())}forEach(er,Fn){const en=this[y];$(en).forEach((gn,kn,Jn)=>{er.call(Fn,this.get(kn),kn,this)})}get(er){const Fn=this[y];Cn(Fn);const en=$(Fn).get(er);if(Fn.finalized_||!E(en)||en!==Fn.base_.get(er))return en;const gn=$t(en,Fn);return Kn(Fn),Fn.copy_.set(er,gn),gn}keys(){return $(this[y]).keys()}values(){const er=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const Fn=er.next();return Fn.done?Fn:{done:!1,value:this.get(Fn.value)}}}}entries(){const er=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const Fn=er.next();if(Fn.done)return Fn;const en=this.get(Fn.value);return{done:!1,value:[Fn.value,en]}}}}[Symbol.iterator](){return this.entries()}}function Vt(Wn,er){return new rn(Wn,er)}function Kn(Wn){Wn.copy_||(Wn.assigned_=new Map,Wn.copy_=new Map(Wn.base_))}class ur extends Set{constructor(er,Fn){super(),this[y]={type_:3,parent_:Fn,scope_:Fn?Fn.scope_:te(),modified_:!1,finalized_:!1,copy_:void 0,base_:er,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return $(this[y]).size}has(er){const Fn=this[y];return Cn(Fn),Fn.copy_?!!(Fn.copy_.has(er)||Fn.drafts_.has(er)&&Fn.copy_.has(Fn.drafts_.get(er))):Fn.base_.has(er)}add(er){const Fn=this[y];return Cn(Fn),this.has(er)||(tr(Fn),Wt(Fn),Fn.copy_.add(er)),this}delete(er){if(!this.has(er))return!1;const Fn=this[y];return Cn(Fn),tr(Fn),Wt(Fn),Fn.copy_.delete(er)||(Fn.drafts_.has(er)?Fn.copy_.delete(Fn.drafts_.get(er)):!1)}clear(){const er=this[y];Cn(er),$(er).size&&(tr(er),Wt(er),er.copy_.clear())}values(){const er=this[y];return Cn(er),tr(er),er.copy_.values()}entries(){const er=this[y];return Cn(er),tr(er),er.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(er,Fn){const en=this.values();let gn=en.next();for(;!gn.done;)er.call(Fn,gn.value,gn.value,this),gn=en.next()}}function on(Wn,er){return new ur(Wn,er)}function tr(Wn){Wn.copy_||(Wn.copy_=new Set,Wn.base_.forEach(er=>{if(E(er)){const Fn=$t(er,Wn);Wn.drafts_.set(er,Fn),Wn.copy_.add(Fn)}else Wn.copy_.add(er)}))}function Cn(Wn){Wn.revoked_&&f(3,JSON.stringify($(Wn)))}se("MapSet",{proxyMap_:Vt,proxySet_:on})}var Ee=new bn,_e=Ee.produce,ge=Ee.produceWithPatches.bind(Ee),Me=null,lt=null,Ft=Ee.applyPatches.bind(Ee),Et=null,Zt=null;function nn(rn){return rn}function Pn(rn){return rn}},2209:(Ge,w,u)=>{"use strict";var l=u(49568),g="<<anonymous>>",y,x=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};x.isRequired=x;var f=function(){return x};y={listOf:f,mapOf:f,orderedMapOf:f,setOf:f,orderedSetOf:f,stackOf:f,iterableOf:f,recordOf:f,shape:f,contains:f,mapContains:f,orderedMapContains:f,list:x,map:x,orderedMap:x,set:x,orderedSet:x,stack:x,seq:x,record:x,iterable:x},y.iterable.indexed=v("Indexed",l.Iterable.isIndexed),y.iterable.keyed=v("Keyed",l.Iterable.isKeyed);function p(Q){var ce=typeof Q;return Array.isArray(Q)?"array":Q instanceof RegExp?"object":Q instanceof l.Iterable?"Immutable."+Q.toSource().split(" ")[0]:ce}function h(Q){function ce(q,te,A,T,B,X){for(var ue=arguments.length,ie=Array(ue>6?ue-6:0),Te=6;Te<ue;Te++)ie[Te-6]=arguments[Te];if(X=X||A,T=T||g,te[A]==null){var je=B;if(q)return new Error("Required "+je+" `"+X+"` was not specified in "+("`"+T+"`."))}else return Q.apply(void 0,[te,A,T,B,X].concat(ie))}var se=ce.bind(null,!1);return se.isRequired=ce.bind(null,!0),se}function E(Q,ce){function se(q,te,A,T,B){var X=q[te];if(!ce(X)){var ue=p(X);return new Error("Invalid "+T+" `"+B+"` of type `"+ue+"` "+("supplied to `"+A+"`, expected `"+Q+"`."))}return null}return h(se)}function v(Q,ce){return E("Iterable."+Q,function(se){return l.Iterable.isIterable(se)&&ce(se)})}function m(Q,ce,se){function q(te,A,T,B,X){for(var ue=arguments.length,ie=Array(ue>5?ue-5:0),Te=5;Te<ue;Te++)ie[Te-5]=arguments[Te];var je=te[A];if(!se(je)){var yt=B,tt=p(je);return new Error("Invalid "+yt+" `"+X+"` of type "+("`"+tt+"` supplied to `"+T+"`, expected an Immutable.js "+ce+"."))}if(typeof Q!="function")return new Error("Invalid typeChecker supplied to `"+T+"` "+("for propType `"+X+"`, expected a function."));for(var Ze=je.valueSeq().toArray(),Ne=0,it=Ze.length;Ne<it;Ne++){var Rt=Q.apply(void 0,[Ze,Ne,T,B,""+X+"["+Ne+"]"].concat(ie));if(Rt instanceof Error)return Rt}}return h(q)}function S(Q){function ce(se,q,te,A,T){for(var B=arguments.length,X=Array(B>5?B-5:0),ue=5;ue<B;ue++)X[ue-5]=arguments[ue];var ie=se[q];if(typeof Q!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+te+"` "+("for propType `"+T+"`, expected a function."));for(var Te=ie.keySeq().toArray(),je=0,yt=Te.length;je<yt;je++){var tt=Q.apply(void 0,[Te,je,te,A,""+T+" -> key("+Te[je]+")"].concat(X));if(tt instanceof Error)return tt}}return h(ce)}function d(Q){return m(Q,"List",l.List.isList)}function O(Q,ce,se,q){function te(){for(var A=arguments.length,T=Array(A),B=0;B<A;B++)T[B]=arguments[B];return m(Q,se,q).apply(void 0,T)||ce&&S(ce).apply(void 0,T)}return h(te)}function R(Q,ce){return O(Q,ce,"Map",l.Map.isMap)}function C(Q,ce){return O(Q,ce,"OrderedMap",l.OrderedMap.isOrderedMap)}function L(Q){return m(Q,"Set",l.Set.isSet)}function j(Q){return m(Q,"OrderedSet",l.OrderedSet.isOrderedSet)}function I(Q){return m(Q,"Stack",l.Stack.isStack)}function U(Q){return m(Q,"Iterable",l.Iterable.isIterable)}function $(Q){function ce(se,q,te,A,T){for(var B=arguments.length,X=Array(B>5?B-5:0),ue=5;ue<B;ue++)X[ue-5]=arguments[ue];var ie=se[q];if(!(ie instanceof l.Record)){var Te=p(ie),je=A;return new Error("Invalid "+je+" `"+T+"` of type `"+Te+"` "+("supplied to `"+te+"`, expected an Immutable.js Record."))}for(var yt in Q){var tt=Q[yt];if(tt){var Ze=ie.toObject(),Ne=tt.apply(void 0,[Ze,yt,te,A,""+T+"."+yt].concat(X));if(Ne)return Ne}}}return h(ce)}function ee(Q){var ce=arguments[1]===void 0?"Iterable":arguments[1],se=arguments[2]===void 0?l.Iterable.isIterable:arguments[2];function q(te,A,T,B,X){for(var ue=arguments.length,ie=Array(ue>5?ue-5:0),Te=5;Te<ue;Te++)ie[Te-5]=arguments[Te];var je=te[A];if(!se(je)){var yt=p(je),tt=B;return new Error("Invalid "+tt+" `"+X+"` of type `"+yt+"` "+("supplied to `"+T+"`, expected an Immutable.js "+ce+"."))}var Ze=je.toObject();for(var Ne in Q){var it=Q[Ne];if(it){var Rt=it.apply(void 0,[Ze,Ne,T,B,""+X+"."+Ne].concat(ie));if(Rt)return Rt}}}return h(q)}function re(Q){return ee(Q)}function Se(Q){return ee(Q,"Map",l.Map.isMap)}function z(Q){return ee(Q,"OrderedMap",l.OrderedMap.isOrderedMap)}Ge.exports=y},2574:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.mergeInternals=void 0;var l=u(19724),g=u(28619),y=u(17214);function x(f,p,h,E,v,m,S,d){var O=[],R=0,C=0,L=!1,j=function(){L&&!O.length&&!R&&p.complete()},I=function($){return R<E?U($):O.push($)},U=function($){m&&p.next($),R++;var ee=!1;l.innerFrom(h($,C++)).subscribe(y.createOperatorSubscriber(p,function(re){v?.(re),m?I(re):p.next(re)},function(){ee=!0},void 0,function(){if(ee)try{R--;for(var re=function(){var Se=O.shift();S?g.executeSchedule(p,S,function(){return U(Se)}):U(Se)};O.length&&R<E;)re();j()}catch(Se){p.error(Se)}}))};return f.subscribe(y.createOperatorSubscriber(p,I,function(){L=!0,j()})),function(){d?.()}}w.mergeInternals=x},2708:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var I=function(U,$){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,re){ee.__proto__=re}||function(ee,re){for(var Se in re)Object.prototype.hasOwnProperty.call(re,Se)&&(ee[Se]=re[Se])},I(U,$)};return function(U,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");I(U,$);function ee(){this.constructor=U}U.prototype=$===null?Object.create($):(ee.prototype=$.prototype,new ee)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.EMPTY_OBSERVER=w.SafeSubscriber=w.Subscriber=void 0;var g=u(10281),y=u(69879),x=u(93728),f=u(32980),p=u(5717),h=u(42767),E=u(94808),v=u(12688),m=function(I){l(U,I);function U($){var ee=I.call(this)||this;return ee.isStopped=!1,$?(ee.destination=$,y.isSubscription($)&&$.add(ee)):ee.destination=w.EMPTY_OBSERVER,ee}return U.create=function($,ee,re){return new R($,ee,re)},U.prototype.next=function($){this.isStopped?j(h.nextNotification($),this):this._next($)},U.prototype.error=function($){this.isStopped?j(h.errorNotification($),this):(this.isStopped=!0,this._error($))},U.prototype.complete=function(){this.isStopped?j(h.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},U.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,I.prototype.unsubscribe.call(this),this.destination=null)},U.prototype._next=function($){this.destination.next($)},U.prototype._error=function($){try{this.destination.error($)}finally{this.unsubscribe()}},U.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},U}(y.Subscription);w.Subscriber=m;var S=Function.prototype.bind;function d(I,U){return S.call(I,U)}var O=function(){function I(U){this.partialObserver=U}return I.prototype.next=function(U){var $=this.partialObserver;if($.next)try{$.next(U)}catch(ee){C(ee)}},I.prototype.error=function(U){var $=this.partialObserver;if($.error)try{$.error(U)}catch(ee){C(ee)}else C(U)},I.prototype.complete=function(){var U=this.partialObserver;if(U.complete)try{U.complete()}catch($){C($)}},I}(),R=function(I){l(U,I);function U($,ee,re){var Se=I.call(this)||this,z;if(g.isFunction($)||!$)z={next:$??void 0,error:ee??void 0,complete:re??void 0};else{var Q;Se&&x.config.useDeprecatedNextContext?(Q=Object.create($),Q.unsubscribe=function(){return Se.unsubscribe()},z={next:$.next&&d($.next,Q),error:$.error&&d($.error,Q),complete:$.complete&&d($.complete,Q)}):z=$}return Se.destination=new O(z),Se}return U}(m);w.SafeSubscriber=R;function C(I){x.config.useDeprecatedSynchronousErrorHandling?v.captureError(I):f.reportUnhandledError(I)}function L(I){throw I}function j(I,U){var $=x.config.onStoppedNotification;$&&E.timeoutProvider.setTimeout(function(){return $(I,U)})}w.EMPTY_OBSERVER={closed:!0,next:p.noop,error:L,complete:p.noop}},2871:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>j});var l=u(66514),g=u(70915),y=u(30503),x=u(71064),f=u(62096),p=u(28609),h=u(54049),E=u(63953),v=u(52845),m=u(92497),S=u(56361),d=u(22616),O=u(4350),R=u(83402),C=u(83671);class L extends f.Ay{constructor(U,$,ee){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!ee&&!Array.isArray(U[0])){const re=U,Se=[],z=[];for(let Q=0,ce=re.length;Q<ce;++Q){const se=re[Q],q=Se.length,te=se.getEnds();for(let A=0,T=te.length;A<T;++A)te[A]+=q;(0,l.X$)(Se,se.getFlatCoordinates()),z.push(te)}$=re.length===0?this.getLayout():re[0].getLayout(),U=Se,ee=z}$!==void 0&&ee?(this.setFlatCoordinates($,U),this.endss_=ee):this.setCoordinates(U,$)}appendPolygon(U){let $;if(!this.flatCoordinates)this.flatCoordinates=U.getFlatCoordinates().slice(),$=U.getEnds().slice(),this.endss_.push();else{const ee=this.flatCoordinates.length;(0,l.X$)(this.flatCoordinates,U.getFlatCoordinates()),$=U.getEnds().slice();for(let re=0,Se=$.length;re<Se;++re)$[re]+=ee}this.endss_.push($),this.changed()}clone(){const U=this.endss_.length,$=new Array(U);for(let re=0;re<U;++re)$[re]=this.endss_[re].slice();const ee=new L(this.flatCoordinates.slice(),this.layout,$);return ee.applyProperties(this),ee}closestPointXY(U,$,ee,re){return re<(0,g.Ld)(this.getExtent(),U,$)?re:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,E.c)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,E.te)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,U,$,ee,re))}containsXY(U,$){return(0,v.Gd)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,U,$)}getArea(){return(0,p.Cs)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(U){let $;return U!==void 0?($=this.getOrientedFlatCoordinates().slice(),(0,R.NK)($,0,this.endss_,this.stride,U)):$=this.flatCoordinates,(0,S.Dz)($,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const U=(0,h.C)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,d.p)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,U),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new y.A(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const U=this.flatCoordinates;(0,R.mb)(U,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=U:(this.orientedFlatCoordinates_=U.slice(),this.orientedFlatCoordinates_.length=(0,R.NK)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(U){const $=[],ee=[];return $.length=(0,C.sx)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(U),$,0,ee),new L($,"XY",ee)}getPolygon(U){if(U<0||this.endss_.length<=U)return null;let $;if(U===0)$=0;else{const Se=this.endss_[U-1];$=Se[Se.length-1]}const ee=this.endss_[U].slice(),re=ee[ee.length-1];if($!==0)for(let Se=0,z=ee.length;Se<z;++Se)ee[Se]-=$;return new x.Ay(this.flatCoordinates.slice($,re),this.layout,ee)}getPolygons(){const U=this.layout,$=this.flatCoordinates,ee=this.endss_,re=[];let Se=0;for(let z=0,Q=ee.length;z<Q;++z){const ce=ee[z].slice(),se=ce[ce.length-1];if(Se!==0)for(let te=0,A=ce.length;te<A;++te)ce[te]-=Se;const q=new x.Ay($.slice(Se,se),U,ce);re.push(q),Se=se}return re}getType(){return"MultiPolygon"}intersectsExtent(U){return(0,O.Wp)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,U)}setCoordinates(U,$){this.setLayout($,U,3),this.flatCoordinates||(this.flatCoordinates=[]);const ee=(0,m.d6)(this.flatCoordinates,0,U,this.stride,this.endss_);if(ee.length===0)this.flatCoordinates.length=0;else{const re=ee[ee.length-1];this.flatCoordinates.length=re.length===0?0:re[re.length-1]}this.changed()}}const j=L},2884:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.observable=void 0,w.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()},2959:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ignoreElements=void 0;var l=u(65212),g=u(17214),y=u(5717);function x(){return l.operate(function(f,p){f.subscribe(g.createOperatorSubscriber(p,y.noop))})}w.ignoreElements=x},3108:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.findOrGenerateResponsiveLayout=x,w.getBreakpointFromWidth=g,w.getColsFromBreakpoint=y,w.sortBreakpoints=f;var l=u(38426);function g(p,h){const E=f(p);let v=E[0];for(let m=1,S=E.length;m<S;m++){const d=E[m];h>p[d]&&(v=d)}return v}function y(p,h){if(!h[p])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+p+" is missing!");return h[p]}function x(p,h,E,v,m,S){if(p[E])return(0,l.cloneLayout)(p[E]);let d=p[v];const O=f(h),R=O.slice(O.indexOf(E));for(let C=0,L=R.length;C<L;C++){const j=R[C];if(p[j]){d=p[j];break}}return d=(0,l.cloneLayout)(d||[]),(0,l.compact)((0,l.correctBounds)(d,{cols:m}),S,m)}function f(p){return Object.keys(p).sort(function(E,v){return p[E]-p[v]})}},3116:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});const l=g=>()=>g},3143:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.debounce=void 0;var l=u(65212),g=u(5717),y=u(17214),x=u(19724);function f(p){return l.operate(function(h,E){var v=!1,m=null,S=null,d=function(){if(S?.unsubscribe(),S=null,v){v=!1;var O=m;m=null,E.next(O)}};h.subscribe(y.createOperatorSubscriber(E,function(O){S?.unsubscribe(),v=!0,m=O,S=y.createOperatorSubscriber(E,d,g.noop),x.innerFrom(p(O)).subscribe(S)},function(){d(),E.complete()},void 0,function(){m=S=null}))})}w.debounce=f},3161:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=x(u(3429)),g=x(u(81474)),y=x(u(87825));function x(C){return C&&C.__esModule?C:{default:C}}function f(C,L){if(!(C instanceof L))throw new TypeError("Cannot call a class as a function")}function p(C,L){for(var j=0;j<L.length;j++){var I=L[j];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(C,I.key,I)}}function h(C,L,j){return L&&p(C.prototype,L),j&&p(C,j),C}var E=["A","ACCESSIBLE","AGENT","AGGREGATE","ALL","ALTER","ANY","ARRAY","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BETWEEN","BFILE_BASE","BINARY_INTEGER","BINARY","BLOB_BASE","BLOCK","BODY","BOOLEAN","BOTH","BOUND","BREADTH","BULK","BY","BYTE","C","CALL","CALLING","CASCADE","CASE","CHAR_BASE","CHAR","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLONE","CLOSE","CLUSTER","CLUSTERS","COALESCE","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONTINUE","CONVERT","COUNT","CRASH","CREATE","CREDENTIAL","CURRENT","CURRVAL","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE_BASE","DATE","DAY","DECIMAL","DEFAULT","DEFINE","DELETE","DEPTH","DESC","DETERMINISTIC","DIRECTORY","DISTINCT","DO","DOUBLE","DROP","DURATION","ELEMENT","ELSIF","EMPTY","END","ESCAPE","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTENDS","EXTERNAL","EXTRACT","FALSE","FETCH","FINAL","FIRST","FIXED","FLOAT","FOR","FORALL","FORCE","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSTANTIABLE","INT","INTEGER","INTERFACE","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMITED","LOCAL","LOCK","LONG","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUTE","MLSLABEL","MOD","MODE","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NATURAL","NATURALN","NCHAR","NEW","NEXTVAL","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NULLIF","NUMBER_BASE","NUMBER","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","OLD","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","ORACLE","ORADATA","ORDER","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERLAPS","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARENT","PARTITION","PASCAL","PCTFREE","PIPE","PIPELINED","PLS_INTEGER","PLUGGABLE","POSITIVE","POSITIVEN","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","REAL","RECORD","REF","REFERENCE","RELEASE","RELIES_ON","REM","REMAINDER","RENAME","RESOURCE","RESULT_CACHE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","ROWID","ROWNUM","ROWTYPE","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SEARCH","SECOND","SEGMENT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SHARE","SHORT","SIZE_T","SIZE","SMALLINT","SOME","SPACE","SPARSE","SQL","SQLCODE","SQLDATA","SQLERRM","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUCCESSFUL","SUM","SYNONYM","SYSDATE","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSACTION","TRANSACTIONAL","TRIGGER","TRUE","TRUSTED","TYPE","UB1","UB2","UB4","UID","UNDER","UNIQUE","UNPLUG","UNSIGNED","UNTRUSTED","USE","USER","USING","VALIDATE","VALIST","VALUE","VARCHAR","VARCHAR2","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHENEVER","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],v=["ADD","ALTER COLUMN","ALTER TABLE","BEGIN","CONNECT BY","DECLARE","DELETE FROM","DELETE","END","EXCEPT","EXCEPTION","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","LOOP","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","START WITH","UPDATE","VALUES","WHERE"],m=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],S=["AND","CROSS APPLY","CROSS JOIN","ELSE","END","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],d=function(L,j){if(L.type===y.default.RESERVED_TOP_LEVEL&&L.value==="SET"&&j.value==="BY")return L.type=y.default.RESERVED,L},O,R=function(){function C(L){f(this,C),this.cfg=L}return h(C,[{key:"format",value:function(j){return O||(O=new g.default({reservedWords:E,reservedTopLevelWords:v,reservedNewlineWords:S,reservedTopLevelWordsNoIndent:m,stringTypes:['""',"N''","''","``"],openParens:["(","CASE","BEGIN"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["_","$","#",".","@"]})),new l.default(this.cfg,O,d).format(j)}}]),C}();w.default=R,Ge.exports=w.default},3174:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{ZodISODate:()=>h,ZodISODateTime:()=>f,ZodISODuration:()=>S,ZodISOTime:()=>v,date:()=>E,datetime:()=>p,duration:()=>d,time:()=>m});var l=u(45435),g=u(70666),y=u(20638),x=u(66687);const f=l.xI("ZodISODateTime",(O,R)=>{g.Ko.init(O,R),x.EB.init(O,R)});function p(O){return y.G1(f,O)}const h=l.xI("ZodISODate",(O,R)=>{g.v1.init(O,R),x.EB.init(O,R)});function E(O){return y.db(h,O)}const v=l.xI("ZodISOTime",(O,R)=>{g.Ax.init(O,R),x.EB.init(O,R)});function m(O){return y.Kn(v,O)}const S=l.xI("ZodISODuration",(O,R)=>{g.$N.init(O,R),x.EB.init(O,R)});function d(O){return y.f2(S,O)}},3352:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.retry=void 0;var l=u(65212),g=u(17214),y=u(87699),x=u(5825),f=u(19724);function p(h){h===void 0&&(h=1/0);var E;h&&typeof h=="object"?E=h:E={count:h};var v=E.count,m=v===void 0?1/0:v,S=E.delay,d=E.resetOnSuccess,O=d===void 0?!1:d;return m<=0?y.identity:l.operate(function(R,C){var L=0,j,I=function(){var U=!1;j=R.subscribe(g.createOperatorSubscriber(C,function($){O&&(L=0),C.next($)},void 0,function($){if(L++<m){var ee=function(){j?(j.unsubscribe(),j=null,I()):U=!0};if(S!=null){var re=typeof S=="number"?x.timer(S):f.innerFrom(S($,L)),Se=g.createOperatorSubscriber(C,function(){Se.unsubscribe(),ee()},function(){C.complete()});re.subscribe(Se)}else ee()}else C.error($)})),U&&(j.unsubscribe(),j=null,I())};I()})}w.retry=p},3429:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=p(u(79859)),g=p(u(87825)),y=p(u(6008)),x=p(u(76625)),f=p(u(26021));function p(d){return d&&d.__esModule?d:{default:d}}function h(d,O){if(!(d instanceof O))throw new TypeError("Cannot call a class as a function")}function E(d,O){for(var R=0;R<O.length;R++){var C=O[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(d,C.key,C)}}function v(d,O,R){return O&&E(d.prototype,O),R&&E(d,R),d}var m=function(O){return O.replace(/[\t ]+$/,"")},S=function(){function d(O,R,C){h(this,d),this.cfg=O||{},this.indentation=new y.default(this.cfg.indent),this.inlineBlock=new x.default,this.params=new f.default(this.cfg.params),this.tokenizer=R,this.tokenOverride=C,this.previousReservedWord={},this.tokens=[],this.index=0}return v(d,[{key:"format",value:function(R){this.tokens=this.tokenizer.tokenize(R);var C=this.getFormattedQueryFromTokens();return C.trim()}},{key:"getFormattedQueryFromTokens",value:function(){var R=this,C="";return this.tokens.forEach(function(L,j){R.index=j,R.tokenOverride&&(L=R.tokenOverride(L,R.previousReservedWord)||L),L.type===g.default.WHITESPACE||(L.type===g.default.LINE_COMMENT?C=R.formatLineComment(L,C):L.type===g.default.BLOCK_COMMENT?C=R.formatBlockComment(L,C):L.type===g.default.RESERVED_TOP_LEVEL?(C=R.formatTopLevelReservedWord(L,C),R.previousReservedWord=L):L.type===g.default.RESERVED_TOP_LEVEL_NO_INDENT?(C=R.formatTopLevelReservedWordNoIndent(L,C),R.previousReservedWord=L):L.type===g.default.RESERVED_NEWLINE?(C=R.formatNewlineReservedWord(L,C),R.previousReservedWord=L):L.type===g.default.RESERVED?(C=R.formatWithSpaces(L,C),R.previousReservedWord=L):L.type===g.default.OPEN_PAREN?C=R.formatOpeningParentheses(L,C):L.type===g.default.CLOSE_PAREN?C=R.formatClosingParentheses(L,C):L.type===g.default.PLACEHOLDER?C=R.formatPlaceholder(L,C):L.value===","?C=R.formatComma(L,C):L.value===":"?C=R.formatWithSpaceAfter(L,C):L.value==="."?C=R.formatWithoutSpaces(L,C):L.value===";"?C=R.formatQuerySeparator(L,C):C=R.formatWithSpaces(L,C))}),C}},{key:"formatLineComment",value:function(R,C){return this.addNewline(C+R.value)}},{key:"formatBlockComment",value:function(R,C){return this.addNewline(this.addNewline(C)+this.indentComment(R.value))}},{key:"indentComment",value:function(R){return R.replace(/\n[\t ]*/g,` `+this.indentation.getIndent()+" ")}},{key:"formatTopLevelReservedWordNoIndent",value:function(R,C){return this.indentation.decreaseTopLevel(),C=this.addNewline(C)+this.equalizeWhitespace(this.formatReservedWord(R.value)),this.addNewline(C)}},{key:"formatTopLevelReservedWord",value:function(R,C){return this.indentation.decreaseTopLevel(),C=this.addNewline(C),this.indentation.increaseTopLevel(),C+=this.equalizeWhitespace(this.formatReservedWord(R.value)),this.addNewline(C)}},{key:"formatNewlineReservedWord",value:function(R,C){return this.addNewline(C)+this.equalizeWhitespace(this.formatReservedWord(R.value))+" "}},{key:"equalizeWhitespace",value:function(R){return R.replace(/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+/g," ")}},{key:"formatOpeningParentheses",value:function(R,C){var L=[g.default.WHITESPACE,g.default.OPEN_PAREN,g.default.LINE_COMMENT];return(0,l.default)(L,this.previousToken().type)||(C=m(C)),C+=this.cfg.uppercase?R.value.toUpperCase():R.value,this.inlineBlock.beginIfPossible(this.tokens,this.index),this.inlineBlock.isActive()||(this.indentation.increaseBlockLevel(),C=this.addNewline(C)),C}},{key:"formatClosingParentheses",value:function(R,C){return R.value=this.cfg.uppercase?R.value.toUpperCase():R.value,this.inlineBlock.isActive()?(this.inlineBlock.end(),this.formatWithSpaceAfter(R,C)):(this.indentation.decreaseBlockLevel(),this.formatWithSpaces(R,this.addNewline(C)))}},{key:"formatPlaceholder",value:function(R,C){return C+this.params.get(R)+" "}},{key:"formatComma",value:function(R,C){return C=m(C)+R.value+" ",this.inlineBlock.isActive()||/^LIMIT$/i.test(this.previousReservedWord.value)?C:this.addNewline(C)}},{key:"formatWithSpaceAfter",value:function(R,C){return m(C)+R.value+" "}},{key:"formatWithoutSpaces",value:function(R,C){return m(C)+R.value}},{key:"formatWithSpaces",value:function(R,C){var L=R.type==="reserved"?this.formatReservedWord(R.value):R.value;return C+L+" "}},{key:"formatReservedWord",value:function(R){return this.cfg.uppercase?R.toUpperCase():R}},{key:"formatQuerySeparator",value:function(R,C){return this.indentation.resetIndentation(),m(C)+R.value+` `.repeat(this.cfg.linesBetweenQueries||1)}},{key:"addNewline",value:function(R){return R=m(R),R.endsWith(` `)||(R+=` `),R+this.indentation.getIndent()}},{key:"previousToken",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return this.tokens[this.index-R]||{}}}]),d}();w.default=S,Ge.exports=w.default},3440:(Ge,w,u)=>{"use strict";u.d(w,{y:()=>g});var l=u(61209);function g(y){return(0,l.T)(y?.then)}},3595:Ge=>{Ge.exports=!!document.attachEvent&&window!==document.parentWindow},3738:(Ge,w,u)=>{"use strict";u.d(w,{c:()=>U});var l=u(15964),g=u(19895),y=u(1343);function x($,ee){return(0,l.Tg)($).pipe((0,y._)(ee),(0,g.Q)(ee))}function f($,ee){return(0,l.Tg)($).pipe((0,y._)(ee),(0,g.Q)(ee))}var p=u(88483);function h($,ee){return new p.c(function(re){var Se=0;return ee.schedule(function(){Se===$.length?re.complete():(re.next($[Se++]),re.closed||this.schedule())})})}var E=u(98581),v=u(56315);function m($,ee){if(!$)throw new Error("Iterable cannot be null");return new p.c(function(re){(0,v.N)(re,ee,function(){var Se=$[Symbol.asyncIterator]();(0,v.N)(re,ee,function(){Se.next().then(function(z){z.done?re.complete():re.next(z.value)})},0,!0)})})}var S=u(37541),d=u(3440),O=u(69391),R=u(58667),C=u(62471),L=u(43465),j=u(8438);function I($,ee){return m((0,j.C)($),ee)}function U($,ee){if($!=null){if((0,S.l)($))return x($,ee);if((0,O.X)($))return h($,ee);if((0,d.y)($))return f($,ee);if((0,C.T)($))return m($,ee);if((0,R.x)($))return(0,E.S)($,ee);if((0,j.U)($))return I($,ee)}throw(0,L.L)($)}},4087:(Ge,w,u)=>{"use strict";u.d(w,{b0:()=>l,v6:()=>y});function l(){throw new Error("Unimplemented abstract method.")}let g=0;function y(f){return f.ol_uid||(f.ol_uid=String(++g))}const x="10.6.1"},4122:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(E){for(var v,m=1,S=arguments.length;m<S;m++){v=arguments[m];for(var d in v)Object.prototype.hasOwnProperty.call(v,d)&&(E[d]=v[d])}return E},l.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(E,v,m,S){S===void 0&&(S=m),Object.defineProperty(E,S,{enumerable:!0,get:function(){return v[m]}})}:function(E,v,m,S){S===void 0&&(S=m),E[S]=v[m]}),y=this&&this.__setModuleDefault||(Object.create?function(E,v){Object.defineProperty(E,"default",{enumerable:!0,value:v})}:function(E,v){E.default=v}),x=this&&this.__importStar||function(E){if(E&&E.__esModule)return E;var v={};if(E!=null)for(var m in E)m!=="default"&&Object.prototype.hasOwnProperty.call(E,m)&&g(v,E,m);return y(v,E),v};Object.defineProperty(w,"__esModule",{value:!0}),w.useKBar=void 0;var f=x(u(96540)),p=u(43195);function h(E){var v=f.useContext(p.KBarContext),m=v.query,S=v.getState,d=v.subscribe,O=v.options,R=f.useRef(E?.(S())),C=f.useRef(E),L=f.useCallback(function($){return l(l({},$),{query:m,options:O})},[m,O]),j=f.useState(L(R.current)),I=j[0],U=j[1];return f.useEffect(function(){var $;return C.current&&($=d(function(ee){return C.current(ee)},function(ee){return U(L(ee))})),function(){$&&$()}},[L,d]),I}w.useKBar=h},4213:function(Ge,w,u){var l,g,y;(function(x,f){g=[],l=f,y=typeof l=="function"?l.apply(w,g):l,y!==void 0&&(Ge.exports=y)})(this,function(){"use strict";function x(S,d){return typeof d>"u"?d={autoBom:!1}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function f(S,d,O){var R=new XMLHttpRequest;R.open("GET",S),R.responseType="blob",R.onload=function(){m(R.response,d,O)},R.onerror=function(){console.error("could not download file")},R.send()}function p(S){var d=new XMLHttpRequest;d.open("HEAD",S,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function h(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(d)}}var E=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof u.g=="object"&&u.g.global===u.g?u.g:void 0,v=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),m=E.saveAs||(typeof window!="object"||window!==E?function(){}:"download"in HTMLAnchorElement.prototype&&!v?function(S,d,O){var R=E.URL||E.webkitURL,C=document.createElement("a");d=d||S.name||"download",C.download=d,C.rel="noopener",typeof S=="string"?(C.href=S,C.origin===location.origin?h(C):p(C.href)?f(S,d,O):h(C,C.target="_blank")):(C.href=R.createObjectURL(S),setTimeout(function(){R.revokeObjectURL(C.href)},4e4),setTimeout(function(){h(C)},0))}:"msSaveOrOpenBlob"in navigator?function(S,d,O){if(d=d||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(x(S,O),d);else if(p(S))f(S,d,O);else{var R=document.createElement("a");R.href=S,R.target="_blank",setTimeout(function(){h(R)})}}:function(S,d,O,R){if(R=R||open("","_blank"),R&&(R.document.title=R.document.body.innerText="downloading..."),typeof S=="string")return f(S,d,O);var C=S.type==="application/octet-stream",L=/constructor/i.test(E.HTMLElement)||E.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||C&&L||v)&&typeof FileReader<"u"){var I=new FileReader;I.onloadend=function(){var ee=I.result;ee=j?ee:ee.replace(/^data:[^;]*;/,"data:attachment/file;"),R?R.location.href=ee:location=ee,R=null},I.readAsDataURL(S)}else{var U=E.URL||E.webkitURL,$=U.createObjectURL(S);R?R.location=$:location.href=$,R=null,setTimeout(function(){U.revokeObjectURL($)},4e4)}});E.saveAs=m.saveAs=m,Ge.exports=m})},4350:(Ge,w,u)=>{"use strict";u.d(w,{HT:()=>h,Wp:()=>E,fB:()=>f,gp:()=>x,sj:()=>p});var l=u(70915),g=u(52845),y=u(91374);function x(v,m,S,d,O,R){return R=R??(0,l.R8)((0,l.S5)(),v,m,S,d),(0,l.HY)(O,R)?R[0]>=O[0]&&R[2]<=O[2]||R[1]>=O[1]&&R[3]<=O[3]?!0:(0,y.j)(v,m,S,d,function(C,L){return(0,l.Mx)(O,C,L)}):!1}function f(v,m,S,d,O){for(let R=0,C=S.length;R<C;++R){if(x(v,m,S[R],d,O))return!0;m=S[R]}return!1}function p(v,m,S,d,O){return!!(x(v,m,S,d,O)||(0,g.a_)(v,m,S,d,O[0],O[1])||(0,g.a_)(v,m,S,d,O[0],O[3])||(0,g.a_)(v,m,S,d,O[2],O[1])||(0,g.a_)(v,m,S,d,O[2],O[3]))}function h(v,m,S,d,O){if(!p(v,m,S[0],d,O))return!1;if(S.length===1)return!0;for(let R=1,C=S.length;R<C;++R)if((0,g.t7)(v,S[R-1],S[R],d,O)&&!x(v,S[R-1],S[R],d,O))return!1;return!0}function E(v,m,S,d,O){for(let R=0,C=S.length;R<C;++R){const L=S[R];if(h(v,m,L,d,O))return!0;m=L[L.length-1]}return!1}},4700:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),Object.defineProperty(w,"Diff",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(w,"diffChars",{enumerable:!0,get:function(){return g.diffChars}}),Object.defineProperty(w,"diffWords",{enumerable:!0,get:function(){return y.diffWords}}),Object.defineProperty(w,"diffWordsWithSpace",{enumerable:!0,get:function(){return y.diffWordsWithSpace}}),Object.defineProperty(w,"diffLines",{enumerable:!0,get:function(){return x.diffLines}}),Object.defineProperty(w,"diffTrimmedLines",{enumerable:!0,get:function(){return x.diffTrimmedLines}}),Object.defineProperty(w,"diffSentences",{enumerable:!0,get:function(){return f.diffSentences}}),Object.defineProperty(w,"diffCss",{enumerable:!0,get:function(){return p.diffCss}}),Object.defineProperty(w,"diffJson",{enumerable:!0,get:function(){return h.diffJson}}),Object.defineProperty(w,"canonicalize",{enumerable:!0,get:function(){return h.canonicalize}}),Object.defineProperty(w,"diffArrays",{enumerable:!0,get:function(){return E.diffArrays}}),Object.defineProperty(w,"applyPatch",{enumerable:!0,get:function(){return v.applyPatch}}),Object.defineProperty(w,"applyPatches",{enumerable:!0,get:function(){return v.applyPatches}}),Object.defineProperty(w,"parsePatch",{enumerable:!0,get:function(){return m.parsePatch}}),Object.defineProperty(w,"merge",{enumerable:!0,get:function(){return S.merge}}),Object.defineProperty(w,"reversePatch",{enumerable:!0,get:function(){return d.reversePatch}}),Object.defineProperty(w,"structuredPatch",{enumerable:!0,get:function(){return O.structuredPatch}}),Object.defineProperty(w,"createTwoFilesPatch",{enumerable:!0,get:function(){return O.createTwoFilesPatch}}),Object.defineProperty(w,"createPatch",{enumerable:!0,get:function(){return O.createPatch}}),Object.defineProperty(w,"formatPatch",{enumerable:!0,get:function(){return O.formatPatch}}),Object.defineProperty(w,"convertChangesToDMP",{enumerable:!0,get:function(){return R.convertChangesToDMP}}),Object.defineProperty(w,"convertChangesToXML",{enumerable:!0,get:function(){return C.convertChangesToXML}});var l=L(u(85969)),g=u(75997),y=u(45940),x=u(93578),f=u(89981),p=u(98705),h=u(53258),E=u(40380),v=u(46489),m=u(70290),S=u(60697),d=u(98831),O=u(13165),R=u(85589),C=u(51181);function L(j){return j&&j.__esModule?j:{default:j}}},4756:(Ge,w,u)=>{"use strict";u.d(w,{rI:()=>f,N2:()=>x});var l=u(30736);const g="_faroInternal";function y(){return globalObject[internalGlobalObjectKey]}function x(p){p.config.isolate?p.internalLogger.debug("Skipping registering internal Faro instance on global object"):(p.internalLogger.debug("Registering internal Faro instance on global object"),Object.defineProperty(l.J,g,{configurable:!1,enumerable:!1,writable:!1,value:p}))}function f(){return g in l.J}},5086:(Ge,w,u)=>{"use strict";var l;l={value:!0};var g=u(313),y=u(17712);typeof Intl>"u"&&(typeof window<"u"?Object.defineProperty(window,"Intl",{value:{}}):typeof u.g<"u"&&Object.defineProperty(u.g,"Intl",{value:{}})),(0,y.shouldPolyfill)()&&Object.defineProperty(Intl,"DurationFormat",{value:g.DurationFormat})},5128:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.groupBy=void 0;var l=u(48051),g=u(19724),y=u(54427),x=u(65212),f=u(17214);function p(h,E,v,m){return x.operate(function(S,d){var O;!E||typeof E=="function"?O=E:(v=E.duration,O=E.element,m=E.connector);var R=new Map,C=function(ee){R.forEach(ee),ee(d)},L=function(ee){return C(function(re){return re.error(ee)})},j=0,I=!1,U=new f.OperatorSubscriber(d,function(ee){try{var re=h(ee),Se=R.get(re);if(!Se){R.set(re,Se=m?m():new y.Subject);var z=$(re,Se);if(d.next(z),v){var Q=f.createOperatorSubscriber(Se,function(){Se.complete(),Q?.unsubscribe()},void 0,void 0,function(){return R.delete(re)});U.add(g.innerFrom(v(z)).subscribe(Q))}}Se.next(O?O(ee):ee)}catch(ce){L(ce)}},function(){return C(function(ee){return ee.complete()})},L,function(){return R.clear()},function(){return I=!0,j===0});S.subscribe(U);function $(ee,re){var Se=new l.Observable(function(z){j++;var Q=re.subscribe(z);return function(){Q.unsubscribe(),--j===0&&I&&U.unsubscribe()}});return Se.key=ee,Se}})}w.groupBy=p},5130:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.AsyncSubject=void 0;var g=u(54427),y=function(x){l(f,x);function f(){var p=x!==null&&x.apply(this,arguments)||this;return p._value=null,p._hasValue=!1,p._isComplete=!1,p}return f.prototype._checkFinalizedStatuses=function(p){var h=this,E=h.hasError,v=h._hasValue,m=h._value,S=h.thrownError,d=h.isStopped,O=h._isComplete;E?p.error(S):(d||O)&&(v&&p.next(m),p.complete())},f.prototype.next=function(p){this.isStopped||(this._value=p,this._hasValue=!0)},f.prototype.complete=function(){var p=this,h=p._hasValue,E=p._value,v=p._isComplete;v||(this._isComplete=!0,h&&x.prototype.next.call(this,E),x.prototype.complete.call(this))},f}(g.Subject);w.AsyncSubject=y},5305:(Ge,w,u)=>{"use strict";u.d(w,{x:()=>g});var l=u(43329);function g(y,...x){const f=l.w.bind(null,y||x.find(p=>typeof p=="object"));return x.map(f)}},5362:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.zipAll=void 0;var l=u(11415),g=u(80719);function y(x){return g.joinAllInternals(l.zip,x)}w.zipAll=y},5455:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.subscribeOn=void 0;var l=u(65212);function g(y,x){return x===void 0&&(x=0),l.operate(function(f,p){p.add(y.schedule(function(){return f.subscribe(p)},x))})}w.subscribeOn=g},5480:Ge=>{function w(u){var l=Object(u),g=[];for(var y in l)g.unshift(y);return function x(){for(;g.length;)if((y=g.pop())in l)return x.value=y,x.done=!1,x;return x.done=!0,x}}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},5717:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.noop=void 0;function u(){}w.noop=u},5797:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.delay=void 0;var l=u(62326),g=u(72885),y=u(5825);function x(f,p){p===void 0&&(p=l.asyncScheduler);var h=y.timer(f,p);return g.delayWhen(function(){return h})}w.delay=x},5805:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var l=u(31635),g=u(96540),y=l.__importDefault(u(13876));function x(f,p,h){p===void 0&&(p=[]),h===void 0&&(h={loading:!1});var E=g.useRef(0),v=y.default(),m=g.useState(h),S=m[0],d=m[1],O=g.useCallback(function(){for(var R=[],C=0;C<arguments.length;C++)R[C]=arguments[C];var L=++E.current;return S.loading||d(function(j){return l.__assign(l.__assign({},j),{loading:!0})}),f.apply(void 0,R).then(function(j){return v()&&L===E.current&&d({value:j,loading:!1}),j},function(j){return v()&&L===E.current&&d({error:j,loading:!1}),j})},p);return[S,O]}w.default=x},5825:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.timer=void 0;var l=u(48051),g=u(62326),y=u(68596),x=u(85345);function f(p,h,E){p===void 0&&(p=0),E===void 0&&(E=g.async);var v=-1;return h!=null&&(y.isScheduler(h)?E=h:v=h),new l.Observable(function(m){var S=x.isValidDate(p)?+p-E.now():p;S<0&&(S=0);var d=0;return E.schedule(function(){m.closed||(m.next(d++),0<=v?this.schedule(void 0,v):m.complete())},S)})}w.timer=f},5994:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>z});var l=u(46942),g=u.n(l),y=u(96540);function x(Q){var ce=Q.children,se=Q.prefixCls,q=Q.id,te=Q.overlayInnerStyle,A=Q.bodyClassName,T=Q.className,B=Q.style;return y.createElement("div",{className:g()("".concat(se,"-content"),T),style:B},y.createElement("div",{className:g()("".concat(se,"-inner"),A),id:q,role:"tooltip",style:te},typeof ce=="function"?ce():ce))}function f(){return f=Object.assign?Object.assign.bind():function(Q){for(var ce=1;ce<arguments.length;ce++){var se=arguments[ce];for(var q in se)({}).hasOwnProperty.call(se,q)&&(Q[q]=se[q])}return Q},f.apply(null,arguments)}function p(Q){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},p(Q)}function h(Q,ce){if(p(Q)!="object"||!Q)return Q;var se=Q[Symbol.toPrimitive];if(se!==void 0){var q=se.call(Q,ce||"default");if(p(q)!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ce==="string"?String:Number)(Q)}function E(Q){var ce=h(Q,"string");return p(ce)=="symbol"?ce:ce+""}function v(Q,ce,se){return(ce=E(ce))in Q?Object.defineProperty(Q,ce,{value:se,enumerable:!0,configurable:!0,writable:!0}):Q[ce]=se,Q}function m(Q,ce){var se=Object.keys(Q);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(Q);ce&&(q=q.filter(function(te){return Object.getOwnPropertyDescriptor(Q,te).enumerable})),se.push.apply(se,q)}return se}function S(Q){for(var ce=1;ce<arguments.length;ce++){var se=arguments[ce]!=null?arguments[ce]:{};ce%2?m(Object(se),!0).forEach(function(q){v(Q,q,se[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(se)):m(Object(se)).forEach(function(q){Object.defineProperty(Q,q,Object.getOwnPropertyDescriptor(se,q))})}return Q}function d(Q,ce){if(Q==null)return{};var se={};for(var q in Q)if({}.hasOwnProperty.call(Q,q)){if(ce.indexOf(q)!==-1)continue;se[q]=Q[q]}return se}function O(Q,ce){if(Q==null)return{};var se,q,te=d(Q,ce);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(Q);for(q=0;q<A.length;q++)se=A[q],ce.indexOf(se)===-1&&{}.propertyIsEnumerable.call(Q,se)&&(te[se]=Q[se])}return te}var R=u(48802),C={shiftX:64,adjustY:1},L={adjustX:1,shiftY:!0},j=[0,0],I={left:{points:["cr","cl"],overflow:L,offset:[-4,0],targetOffset:j},right:{points:["cl","cr"],overflow:L,offset:[4,0],targetOffset:j},top:{points:["bc","tc"],overflow:C,offset:[0,-4],targetOffset:j},bottom:{points:["tc","bc"],overflow:C,offset:[0,4],targetOffset:j},topLeft:{points:["bl","tl"],overflow:C,offset:[0,-4],targetOffset:j},leftTop:{points:["tr","tl"],overflow:L,offset:[-4,0],targetOffset:j},topRight:{points:["br","tr"],overflow:C,offset:[0,-4],targetOffset:j},rightTop:{points:["tl","tr"],overflow:L,offset:[4,0],targetOffset:j},bottomRight:{points:["tr","br"],overflow:C,offset:[0,4],targetOffset:j},rightBottom:{points:["bl","br"],overflow:L,offset:[4,0],targetOffset:j},bottomLeft:{points:["tl","bl"],overflow:C,offset:[0,4],targetOffset:j},leftBottom:{points:["br","bl"],overflow:L,offset:[-4,0],targetOffset:j}};const U=null;var $=u(56855),ee=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],re=function(ce,se){var q=ce.overlayClassName,te=ce.trigger,A=te===void 0?["hover"]:te,T=ce.mouseEnterDelay,B=T===void 0?0:T,X=ce.mouseLeaveDelay,ue=X===void 0?.1:X,ie=ce.overlayStyle,Te=ce.prefixCls,je=Te===void 0?"rc-tooltip":Te,yt=ce.children,tt=ce.onVisibleChange,Ze=ce.afterVisibleChange,Ne=ce.transitionName,it=ce.animation,Rt=ce.motion,Dn=ce.placement,Mt=Dn===void 0?"right":Dn,Wt=ce.align,Tn=Wt===void 0?{}:Wt,bn=ce.destroyTooltipOnHide,$t=bn===void 0?!1:bn,Ct=ce.defaultVisible,Z=ce.getTooltipContainer,me=ce.overlayInnerStyle,ke=ce.arrowContent,Ee=ce.overlay,_e=ce.id,ge=ce.showArrow,Me=ge===void 0?!0:ge,lt=ce.classNames,Ft=ce.styles,Et=O(ce,ee),Zt=(0,$.A)(_e),nn=(0,y.useRef)(null);(0,y.useImperativeHandle)(se,function(){return nn.current});var Pn=S({},Et);"visible"in ce&&(Pn.popupVisible=ce.visible);var rn=function(){return y.createElement(x,{key:"content",prefixCls:je,id:Zt,bodyClassName:lt?.body,overlayInnerStyle:S(S({},me),Ft?.body)},Ee)},Vt=function(){var ur=y.Children.only(yt),on=ur?.props||{},tr=S(S({},on),{},{"aria-describedby":Ee?Zt:null});return y.cloneElement(yt,tr)};return y.createElement(R.A,f({popupClassName:g()(q,lt?.root),prefixCls:je,popup:rn,action:A,builtinPlacements:I,popupPlacement:Mt,ref:nn,popupAlign:Tn,getPopupContainer:Z,onPopupVisibleChange:tt,afterPopupVisibleChange:Ze,popupTransitionName:Ne,popupAnimation:it,popupMotion:Rt,defaultPopupVisible:Ct,autoDestroy:$t,mouseLeaveDelay:ue,popupStyle:S(S({},ie),Ft?.root),mouseEnterDelay:B,arrow:Me},Pn),Vt())};const z=(0,y.forwardRef)(re)},6008:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=y(u(12493)),g=y(u(68090));function y(m){return m&&m.__esModule?m:{default:m}}function x(m,S){if(!(m instanceof S))throw new TypeError("Cannot call a class as a function")}function f(m,S){for(var d=0;d<S.length;d++){var O=S[d];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(m,O.key,O)}}function p(m,S,d){return S&&f(m.prototype,S),d&&f(m,d),m}var h="top-level",E="block-level",v=function(){function m(S){x(this,m),this.indent=S||" ",this.indentTypes=[]}return p(m,[{key:"getIndent",value:function(){return(0,l.default)(this.indent,this.indentTypes.length)}},{key:"increaseTopLevel",value:function(){this.indentTypes.push(h)}},{key:"increaseBlockLevel",value:function(){this.indentTypes.push(E)}},{key:"decreaseTopLevel",value:function(){(0,g.default)(this.indentTypes)===h&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0;){var d=this.indentTypes.pop();if(d!==h)break}}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}]),m}();w.default=v,Ge.exports=w.default},6153:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ToIntegerIfIntegral=g;var l=u(1656);function g(y){var x=(0,l.ToNumber)(y);return(0,l.invariant)(x.isInteger(),"".concat(y," is not an integer")),x.toNumber()}},6159:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.TIME_SEPARATORS=void 0,w.TIME_SEPARATORS={default:":",localeData:{aa:{nu:["latn"]},"aa-DJ":{nu:["latn"]},"aa-ER":{nu:["latn"]},ab:{nu:["latn"]},af:{nu:["latn"]},"af-NA":{nu:["latn"]},agq:{nu:["latn"]},ak:{nu:["latn"]},am:{nu:["latn"]},an:{nu:["latn"]},ann:{nu:["latn"]},apc:{nu:["latn"]},ar:{nu:["latn","latn"]},"ar-AE":{nu:["latn","latn"]},"ar-BH":{nu:["arab","latn"]},"ar-DJ":{nu:["arab","latn"]},"ar-DZ":{nu:["latn","latn"]},"ar-EG":{nu:["arab","latn"]},"ar-EH":{nu:["latn","latn"]},"ar-ER":{nu:["arab","latn"]},"ar-IL":{nu:["arab","latn"]},"ar-IQ":{nu:["arab","latn"]},"ar-JO":{nu:["arab","latn"]},"ar-KM":{nu:["arab","latn"]},"ar-KW":{nu:["arab","latn"]},"ar-LB":{nu:["arab","latn"]},"ar-LY":{nu:["latn","latn"]},"ar-MA":{nu:["latn","latn"]},"ar-MR":{nu:["arab","latn"]},"ar-OM":{nu:["arab","latn"]},"ar-PS":{nu:["arab","latn"]},"ar-QA":{nu:["arab","latn"]},"ar-SA":{nu:["arab","latn"]},"ar-SD":{nu:["arab","latn"]},"ar-SO":{nu:["arab","latn"]},"ar-SS":{nu:["arab","latn"]},"ar-SY":{nu:["arab","latn"]},"ar-TD":{nu:["arab","latn"]},"ar-TN":{nu:["latn","latn"]},"ar-YE":{nu:["arab","latn"]},arn:{nu:["latn"]},as:{nu:["beng"]},asa:{nu:["latn"]},ast:{nu:["latn"]},az:{nu:["latn"]},"az-Arab":{nu:["arabext"]},"az-Arab-IQ":{nu:["arabext"]},"az-Arab-TR":{nu:["arabext"]},"az-Cyrl":{nu:["latn"]},"az-Latn":{nu:["latn"]},ba:{nu:["latn"]},bal:{nu:["latn"]},"bal-Arab":{nu:["latn"]},"bal-Latn":{nu:["latn"]},bas:{nu:["latn"]},be:{nu:["latn"]},"be-tarask":{nu:["latn"]},bem:{nu:["latn"]},bew:{nu:["latn"]},bez:{nu:["latn"]},bg:{nu:["latn"]},bgc:{nu:["deva"]},bgn:{nu:["arabext"]},"bgn-AE":{nu:["arabext"]},"bgn-AF":{nu:["arabext"]},"bgn-IR":{nu:["arabext"]},"bgn-OM":{nu:["arabext"]},bho:{nu:["deva"]},blo:{nu:["latn"]},blt:{nu:["latn"]},bm:{nu:["latn"]},"bm-Nkoo":{nu:["latn"]},bn:{nu:["beng"]},"bn-IN":{nu:["beng"]},bo:{nu:["latn"]},"bo-IN":{nu:["latn"]},br:{nu:["latn"]},brx:{nu:["latn"]},bs:{nu:["latn"]},"bs-Cyrl":{nu:["latn"]},"bs-Latn":{nu:["latn"]},bss:{nu:["latn"]},byn:{nu:["latn"]},ca:{nu:["latn"]},"ca-AD":{nu:["latn"]},"ca-ES-valencia":{nu:["latn"]},"ca-FR":{nu:["latn"]},"ca-IT":{nu:["latn"]},cad:{nu:["latn"]},cch:{nu:["latn"]},ccp:{nu:["cakm"]},"ccp-IN":{nu:["cakm"]},ce:{nu:["latn"]},ceb:{nu:["latn"]},cgg:{nu:["latn"]},cho:{nu:["latn"]},chr:{nu:["latn"]},cic:{nu:["latn"]},ckb:{nu:["arab"]},"ckb-IR":{nu:["arab"]},co:{nu:["latn"]},cs:{nu:["latn"]},csw:{nu:["latn"]},cu:{nu:["latn"]},cv:{nu:["latn"]},cy:{nu:["latn"]},da:{nu:["latn"],separator:{latn:"."}},"da-GL":{nu:["latn"],separator:{latn:"."}},dav:{nu:["latn"]},de:{nu:["latn"]},"de-AT":{nu:["latn"]},"de-BE":{nu:["latn"]},"de-CH":{nu:["latn"]},"de-IT":{nu:["latn"]},"de-LI":{nu:["latn"]},"de-LU":{nu:["latn"]},dje:{nu:["latn"]},doi:{nu:["latn"]},dsb:{nu:["latn"]},dua:{nu:["latn"]},dv:{nu:["latn"]},dyo:{nu:["latn"]},dz:{nu:["tibt"]},ebu:{nu:["latn"]},ee:{nu:["latn"]},"ee-TG":{nu:["latn"]},el:{nu:["latn"]},"el-CY":{nu:["latn"]},"el-polyton":{nu:["latn"]},en:{nu:["latn"]},"en-001":{nu:["latn"]},"en-150":{nu:["latn"]},"en-AE":{nu:["latn"]},"en-AG":{nu:["latn"]},"en-AI":{nu:["latn"]},"en-AS":{nu:["latn"]},"en-AT":{nu:["latn"]},"en-AU":{nu:["latn"]},"en-BB":{nu:["latn"]},"en-BE":{nu:["latn"]},"en-BI":{nu:["latn"]},"en-BM":{nu:["latn"]},"en-BS":{nu:["latn"]},"en-BW":{nu:["latn"]},"en-BZ":{nu:["latn"]},"en-CA":{nu:["latn"]},"en-CC":{nu:["latn"]},"en-CH":{nu:["latn"]},"en-CK":{nu:["latn"]},"en-CM":{nu:["latn"]},"en-CX":{nu:["latn"]},"en-CY":{nu:["latn"]},"en-DE":{nu:["latn"]},"en-DG":{nu:["latn"]},"en-DK":{nu:["latn"],separator:{latn:"."}},"en-DM":{nu:["latn"]},"en-Dsrt":{nu:["latn"]},"en-ER":{nu:["latn"]},"en-FI":{nu:["latn"],separator:{latn:"."}},"en-FJ":{nu:["latn"]},"en-FK":{nu:["latn"]},"en-FM":{nu:["latn"]},"en-GB":{nu:["latn"]},"en-GD":{nu:["latn"]},"en-GG":{nu:["latn"]},"en-GH":{nu:["latn"]},"en-GI":{nu:["latn"]},"en-GM":{nu:["latn"]},"en-GU":{nu:["latn"]},"en-GY":{nu:["latn"]},"en-HK":{nu:["latn"]},"en-ID":{nu:["latn"]},"en-IE":{nu:["latn"]},"en-IL":{nu:["latn"]},"en-IM":{nu:["latn"]},"en-IN":{nu:["latn"]},"en-IO":{nu:["latn"]},"en-JE":{nu:["latn"]},"en-JM":{nu:["latn"]},"en-KE":{nu:["latn"]},"en-KI":{nu:["latn"]},"en-KN":{nu:["latn"]},"en-KY":{nu:["latn"]},"en-LC":{nu:["latn"]},"en-LR":{nu:["latn"]},"en-LS":{nu:["latn"]},"en-MG":{nu:["latn"]},"en-MH":{nu:["latn"]},"en-MO":{nu:["latn"]},"en-MP":{nu:["latn"]},"en-MS":{nu:["latn"]},"en-MT":{nu:["latn"]},"en-MU":{nu:["latn"]},"en-MV":{nu:["latn"]},"en-MW":{nu:["latn"]},"en-MY":{nu:["latn"]},"en-NA":{nu:["latn"]},"en-NF":{nu:["latn"]},"en-NG":{nu:["latn"]},"en-NL":{nu:["latn"]},"en-NR":{nu:["latn"]},"en-NU":{nu:["latn"]},"en-NZ":{nu:["latn"]},"en-PG":{nu:["latn"]},"en-PH":{nu:["latn"]},"en-PK":{nu:["latn"]},"en-PN":{nu:["latn"]},"en-PR":{nu:["latn"]},"en-PW":{nu:["latn"]},"en-RW":{nu:["latn"]},"en-SB":{nu:["latn"]},"en-SC":{nu:["latn"]},"en-SD":{nu:["latn"]},"en-SE":{nu:["latn"]},"en-SG":{nu:["latn"]},"en-SH":{nu:["latn"]},"en-SI":{nu:["latn"]},"en-SL":{nu:["latn"]},"en-SS":{nu:["latn"]},"en-SX":{nu:["latn"]},"en-SZ":{nu:["latn"]},"en-Shaw":{nu:["latn"]},"en-TC":{nu:["latn"]},"en-TK":{nu:["latn"]},"en-TO":{nu:["latn"]},"en-TT":{nu:["latn"]},"en-TV":{nu:["latn"]},"en-TZ":{nu:["latn"]},"en-UG":{nu:["latn"]},"en-UM":{nu:["latn"]},"en-VC":{nu:["latn"]},"en-VG":{nu:["latn"]},"en-VI":{nu:["latn"]},"en-VU":{nu:["latn"]},"en-WS":{nu:["latn"]},"en-ZA":{nu:["latn"]},"en-ZM":{nu:["latn"]},"en-ZW":{nu:["latn"]},eo:{nu:["latn"]},es:{nu:["latn"]},"es-419":{nu:["latn"]},"es-AR":{nu:["latn"]},"es-BO":{nu:["latn"]},"es-BR":{nu:["latn"]},"es-BZ":{nu:["latn"]},"es-CL":{nu:["latn"]},"es-CO":{nu:["latn"]},"es-CR":{nu:["latn"]},"es-CU":{nu:["latn"]},"es-DO":{nu:["latn"]},"es-EA":{nu:["latn"]},"es-EC":{nu:["latn"]},"es-GQ":{nu:["latn"]},"es-GT":{nu:["latn"]},"es-HN":{nu:["latn"]},"es-IC":{nu:["latn"]},"es-MX":{nu:["latn"]},"es-NI":{nu:["latn"]},"es-PA":{nu:["latn"]},"es-PE":{nu:["latn"]},"es-PH":{nu:["latn"]},"es-PR":{nu:["latn"]},"es-PY":{nu:["latn"]},"es-SV":{nu:["latn"]},"es-US":{nu:["latn"]},"es-UY":{nu:["latn"]},"es-VE":{nu:["latn"]},et:{nu:["latn"]},eu:{nu:["latn"]},ewo:{nu:["latn"]},fa:{nu:["arabext"]},"fa-AF":{nu:["arabext"]},ff:{nu:["latn"]},"ff-Adlm":{nu:["adlm"]},"ff-Adlm-BF":{nu:["adlm"]},"ff-Adlm-CM":{nu:["adlm"]},"ff-Adlm-GH":{nu:["adlm"]},"ff-Adlm-GM":{nu:["adlm"]},"ff-Adlm-GW":{nu:["adlm"]},"ff-Adlm-LR":{nu:["adlm"]},"ff-Adlm-MR":{nu:["adlm"]},"ff-Adlm-NE":{nu:["adlm"]},"ff-Adlm-NG":{nu:["adlm"]},"ff-Adlm-SL":{nu:["adlm"]},"ff-Adlm-SN":{nu:["adlm"]},"ff-Latn":{nu:["latn"]},"ff-Latn-BF":{nu:["latn"]},"ff-Latn-CM":{nu:["latn"]},"ff-Latn-GH":{nu:["latn"]},"ff-Latn-GM":{nu:["latn"]},"ff-Latn-GN":{nu:["latn"]},"ff-Latn-GW":{nu:["latn"]},"ff-Latn-LR":{nu:["latn"]},"ff-Latn-MR":{nu:["latn"]},"ff-Latn-NE":{nu:["latn"]},"ff-Latn-NG":{nu:["latn"]},"ff-Latn-SL":{nu:["latn"]},fi:{nu:["latn"],separator:{latn:"."}},fil:{nu:["latn"]},fo:{nu:["latn"]},"fo-DK":{nu:["latn"]},fr:{nu:["latn"]},"fr-BE":{nu:["latn"]},"fr-BF":{nu:["latn"]},"fr-BI":{nu:["latn"]},"fr-BJ":{nu:["latn"]},"fr-BL":{nu:["latn"]},"fr-CA":{nu:["latn"]},"fr-CD":{nu:["latn"]},"fr-CF":{nu:["latn"]},"fr-CG":{nu:["latn"]},"fr-CH":{nu:["latn"]},"fr-CI":{nu:["latn"]},"fr-CM":{nu:["latn"]},"fr-DJ":{nu:["latn"]},"fr-DZ":{nu:["latn"]},"fr-GA":{nu:["latn"]},"fr-GF":{nu:["latn"]},"fr-GN":{nu:["latn"]},"fr-GP":{nu:["latn"]},"fr-GQ":{nu:["latn"]},"fr-HT":{nu:["latn"]},"fr-KM":{nu:["latn"]},"fr-LU":{nu:["latn"]},"fr-MA":{nu:["latn"]},"fr-MC":{nu:["latn"]},"fr-MF":{nu:["latn"]},"fr-MG":{nu:["latn"]},"fr-ML":{nu:["latn"]},"fr-MQ":{nu:["latn"]},"fr-MR":{nu:["latn"]},"fr-MU":{nu:["latn"]},"fr-NC":{nu:["latn"]},"fr-NE":{nu:["latn"]},"fr-PF":{nu:["latn"]},"fr-PM":{nu:["latn"]},"fr-RE":{nu:["latn"]},"fr-RW":{nu:["latn"]},"fr-SC":{nu:["latn"]},"fr-SN":{nu:["latn"]},"fr-SY":{nu:["latn"]},"fr-TD":{nu:["latn"]},"fr-TG":{nu:["latn"]},"fr-TN":{nu:["latn"]},"fr-VU":{nu:["latn"]},"fr-WF":{nu:["latn"]},"fr-YT":{nu:["latn"]},frr:{nu:["latn"]},fur:{nu:["latn"]},fy:{nu:["latn"]},ga:{nu:["latn"]},"ga-GB":{nu:["latn"]},gaa:{nu:["latn"]},gd:{nu:["latn"]},gez:{nu:["latn"]},"gez-ER":{nu:["latn"]},gl:{nu:["latn"]},gn:{nu:["latn"]},gsw:{nu:["latn"]},"gsw-FR":{nu:["latn"]},"gsw-LI":{nu:["latn"]},gu:{nu:["latn"]},guz:{nu:["latn"]},gv:{nu:["latn"]},ha:{nu:["latn"]},"ha-Arab":{nu:["latn"]},"ha-Arab-SD":{nu:["latn"]},"ha-GH":{nu:["latn"]},"ha-NE":{nu:["latn"]},haw:{nu:["latn"]},he:{nu:["latn"]},hi:{nu:["latn"]},"hi-Latn":{nu:["latn"]},hnj:{nu:["hmnp","latn"]},"hnj-Hmnp":{nu:["hmnp","latn"]},hr:{nu:["latn"]},"hr-BA":{nu:["latn"]},hsb:{nu:["latn"]},hu:{nu:["latn"]},hy:{nu:["latn"]},ia:{nu:["latn"]},id:{nu:["latn"],separator:{latn:"."}},ie:{nu:["latn"]},ig:{nu:["latn"]},ii:{nu:["latn"]},io:{nu:["latn"]},is:{nu:["latn"]},it:{nu:["latn"]},"it-CH":{nu:["latn"]},"it-SM":{nu:["latn"]},"it-VA":{nu:["latn"]},iu:{nu:["latn"]},"iu-Latn":{nu:["latn"]},ja:{nu:["latn"]},jbo:{nu:["latn"]},jgo:{nu:["latn"]},jmc:{nu:["latn"]},jv:{nu:["latn"]},ka:{nu:["latn"]},kaa:{nu:["latn"]},"kaa-Cyrl":{nu:["latn"]},"kaa-Latn":{nu:["latn"]},kab:{nu:["latn"]},kaj:{nu:["latn"]},kam:{nu:["latn"]},kcg:{nu:["latn"]},kde:{nu:["latn"]},kea:{nu:["latn"]},ken:{nu:["latn"]},kgp:{nu:["latn"]},khq:{nu:["latn"]},ki:{nu:["latn"]},kk:{nu:["latn"]},"kk-Arab":{nu:["latn"]},"kk-Cyrl":{nu:["latn"]},"kk-KZ":{nu:["latn"]},kkj:{nu:["latn"]},kl:{nu:["latn"]},kln:{nu:["latn"]},km:{nu:["latn"]},kn:{nu:["latn"]},ko:{nu:["latn"]},"ko-CN":{nu:["latn"]},"ko-KP":{nu:["latn"]},kok:{nu:["latn"]},"kok-Deva":{nu:["latn"]},"kok-Latn":{nu:["latn"]},kpe:{nu:["latn"]},"kpe-GN":{nu:["latn"]},ks:{nu:["arabext"]},"ks-Arab":{nu:["arabext"]},"ks-Deva":{nu:["latn"]},ksb:{nu:["latn"]},ksf:{nu:["latn"]},ksh:{nu:["latn"]},ku:{nu:["latn"]},kw:{nu:["latn"]},kxv:{nu:["latn"]},"kxv-Deva":{nu:["latn"]},"kxv-Latn":{nu:["latn"]},"kxv-Orya":{nu:["latn"]},"kxv-Telu":{nu:["latn"]},ky:{nu:["latn"]},la:{nu:["latn"]},lag:{nu:["latn"]},lb:{nu:["latn"]},lg:{nu:["latn"]},lij:{nu:["latn"]},lkt:{nu:["latn"]},lld:{nu:["latn"]},lmo:{nu:["latn"]},ln:{nu:["latn"]},"ln-AO":{nu:["latn"]},"ln-CF":{nu:["latn"]},"ln-CG":{nu:["latn"]},lo:{nu:["latn"]},lrc:{nu:["arabext"]},"lrc-IQ":{nu:["arabext"]},lt:{nu:["latn"]},ltg:{nu:["latn"]},lu:{nu:["latn"]},luo:{nu:["latn"]},luy:{nu:["latn"]},lv:{nu:["latn"]},mai:{nu:["latn"]},mas:{nu:["latn"]},"mas-TZ":{nu:["latn"]},mdf:{nu:["latn"]},mer:{nu:["latn"]},mfe:{nu:["latn"]},mg:{nu:["latn"]},mgh:{nu:["latn"]},mgo:{nu:["latn"]},mhn:{nu:["latn"]},mi:{nu:["latn"]},mic:{nu:["latn"]},mk:{nu:["latn"]},ml:{nu:["latn"]},mn:{nu:["latn"]},"mn-Mong":{nu:["latn"]},"mn-Mong-MN":{nu:["latn"]},mni:{nu:["beng"]},"mni-Beng":{nu:["beng"]},"mni-Mtei":{nu:["mtei"]},moh:{nu:["latn"]},mr:{nu:["deva"]},ms:{nu:["latn"]},"ms-Arab":{nu:["latn"]},"ms-Arab-BN":{nu:["latn"]},"ms-BN":{nu:["latn"]},"ms-ID":{nu:["latn"],separator:{latn:"."}},"ms-SG":{nu:["latn"]},mt:{nu:["latn"]},mua:{nu:["latn"]},mus:{nu:["latn"]},my:{nu:["mymr"]},myv:{nu:["latn"]},mzn:{nu:["arabext"]},naq:{nu:["latn"]},nb:{nu:["latn"]},"nb-SJ":{nu:["latn"]},nd:{nu:["latn"]},nds:{nu:["latn"]},"nds-NL":{nu:["latn"]},ne:{nu:["deva"]},"ne-IN":{nu:["deva"]},nl:{nu:["latn"]},"nl-AW":{nu:["latn"]},"nl-BE":{nu:["latn"]},"nl-BQ":{nu:["latn"]},"nl-CW":{nu:["latn"]},"nl-SR":{nu:["latn"]},"nl-SX":{nu:["latn"]},nmg:{nu:["latn"]},nn:{nu:["latn"]},nnh:{nu:["latn"]},no:{nu:["latn"]},nqo:{nu:["nkoo"]},nr:{nu:["latn"]},nso:{nu:["latn"]},nus:{nu:["latn"]},nv:{nu:["latn"]},ny:{nu:["latn"]},nyn:{nu:["latn"]},oc:{nu:["latn"]},"oc-ES":{nu:["latn"]},om:{nu:["latn"]},"om-KE":{nu:["latn"]},or:{nu:["latn"]},os:{nu:["latn"]},"os-RU":{nu:["latn"]},osa:{nu:["latn"]},pa:{nu:["latn"]},"pa-Arab":{nu:["arabext"]},"pa-Guru":{nu:["latn"]},pap:{nu:["latn"]},"pap-AW":{nu:["latn"]},pcm:{nu:["latn"]},pis:{nu:["latn"]},pl:{nu:["latn"]},prg:{nu:["latn"]},ps:{nu:["arabext"]},"ps-PK":{nu:["arabext"]},pt:{nu:["latn"]},"pt-AO":{nu:["latn"]},"pt-CH":{nu:["latn"]},"pt-CV":{nu:["latn"]},"pt-GQ":{nu:["latn"]},"pt-GW":{nu:["latn"]},"pt-LU":{nu:["latn"]},"pt-MO":{nu:["latn"]},"pt-MZ":{nu:["latn"]},"pt-PT":{nu:["latn"]},"pt-ST":{nu:["latn"]},"pt-TL":{nu:["latn"]},qu:{nu:["latn"]},"qu-BO":{nu:["latn"]},"qu-EC":{nu:["latn"]},quc:{nu:["latn"]},raj:{nu:["deva"]},rhg:{nu:["latn"]},"rhg-Rohg":{nu:["latn"]},"rhg-Rohg-BD":{nu:["latn"]},rif:{nu:["latn"]},rm:{nu:["latn"]},rn:{nu:["latn"]},ro:{nu:["latn"]},"ro-MD":{nu:["latn"]},rof:{nu:["latn"]},ru:{nu:["latn"]},"ru-BY":{nu:["latn"]},"ru-KG":{nu:["latn"]},"ru-KZ":{nu:["latn"]},"ru-MD":{nu:["latn"]},"ru-UA":{nu:["latn"]},rw:{nu:["latn"]},rwk:{nu:["latn"]},sa:{nu:["deva"]},sah:{nu:["latn"]},saq:{nu:["latn"]},sat:{nu:["olck"]},"sat-Deva":{nu:["deva"]},"sat-Olck":{nu:["olck"]},sbp:{nu:["latn"]},sc:{nu:["latn"]},scn:{nu:["latn"]},sd:{nu:["arab"]},"sd-Arab":{nu:["arab"]},"sd-Deva":{nu:["latn"]},sdh:{nu:["arab"]},"sdh-IQ":{nu:["arab"]},se:{nu:["latn"]},"se-FI":{nu:["latn"]},"se-SE":{nu:["latn"]},seh:{nu:["latn"]},ses:{nu:["latn"]},sg:{nu:["latn"]},shi:{nu:["latn"]},"shi-Latn":{nu:["latn"]},"shi-Tfng":{nu:["latn"]},shn:{nu:["latn"]},"shn-TH":{nu:["latn"]},si:{nu:["latn"],separator:{latn:"."}},sid:{nu:["latn"]},sk:{nu:["latn"]},skr:{nu:["latn"]},sl:{nu:["latn"]},sma:{nu:["latn"]},"sma-NO":{nu:["latn"]},smj:{nu:["latn"]},"smj-NO":{nu:["latn"]},smn:{nu:["latn"],separator:{latn:"."}},sms:{nu:["latn"]},sn:{nu:["latn"]},so:{nu:["latn"]},"so-DJ":{nu:["latn"]},"so-ET":{nu:["latn"]},"so-KE":{nu:["latn"]},sq:{nu:["latn"]},"sq-MK":{nu:["latn"]},"sq-XK":{nu:["latn"]},sr:{nu:["latn"]},"sr-Cyrl":{nu:["latn"]},"sr-Cyrl-BA":{nu:["latn"]},"sr-Cyrl-ME":{nu:["latn"]},"sr-Cyrl-XK":{nu:["latn"]},"sr-Latn":{nu:["latn"]},"sr-Latn-BA":{nu:["latn"]},"sr-Latn-ME":{nu:["latn"]},"sr-Latn-XK":{nu:["latn"]},ss:{nu:["latn"]},"ss-SZ":{nu:["latn"]},ssy:{nu:["latn"]},st:{nu:["latn"]},"st-LS":{nu:["latn"]},su:{nu:["latn"],separator:{latn:"."}},"su-Latn":{nu:["latn"],separator:{latn:"."}},sv:{nu:["latn"]},"sv-AX":{nu:["latn"]},"sv-FI":{nu:["latn"],separator:{latn:"."}},sw:{nu:["latn"]},"sw-CD":{nu:["latn"]},"sw-KE":{nu:["latn"]},"sw-UG":{nu:["latn"]},syr:{nu:["latn"]},"syr-SY":{nu:["latn"]},szl:{nu:["latn"]},ta:{nu:["latn"]},"ta-LK":{nu:["latn"]},"ta-MY":{nu:["latn"]},"ta-SG":{nu:["latn"]},te:{nu:["latn"]},teo:{nu:["latn"]},"teo-KE":{nu:["latn"]},tg:{nu:["latn"]},th:{nu:["latn"]},ti:{nu:["latn"]},"ti-ER":{nu:["latn"]},tig:{nu:["latn"]},tk:{nu:["latn"]},tn:{nu:["latn"]},"tn-BW":{nu:["latn"]},to:{nu:["latn"]},tok:{nu:["latn"]},tpi:{nu:["latn"]},tr:{nu:["latn"]},"tr-CY":{nu:["latn"]},trv:{nu:["latn"]},trw:{nu:["latn"]},ts:{nu:["latn"]},tt:{nu:["latn"]},twq:{nu:["latn"]},tyv:{nu:["latn"]},tzm:{nu:["latn"]},ug:{nu:["latn"]},uk:{nu:["latn"]},und:{nu:["latn"]},ur:{nu:["latn"]},"ur-IN":{nu:["arabext"],separator:{arabext:"\u066B"}},uz:{nu:["latn"]},"uz-Arab":{nu:["arabext"]},"uz-Cyrl":{nu:["latn"]},"uz-Latn":{nu:["latn"]},vai:{nu:["latn"]},"vai-Latn":{nu:["latn"]},"vai-Vaii":{nu:["latn"]},ve:{nu:["latn"]},vec:{nu:["latn"]},vi:{nu:["latn"]},vmw:{nu:["latn"]},vo:{nu:["latn"]},vun:{nu:["latn"]},wa:{nu:["latn"]},wae:{nu:["latn"]},wal:{nu:["latn"]},wbp:{nu:["latn"]},wo:{nu:["latn"]},xh:{nu:["latn"]},xnr:{nu:["latn"]},xog:{nu:["latn"]},yav:{nu:["latn"]},yi:{nu:["latn"]},yo:{nu:["latn"]},"yo-BJ":{nu:["latn"]},yrl:{nu:["latn"]},"yrl-CO":{nu:["latn"]},"yrl-VE":{nu:["latn"]},yue:{nu:["latn"]},"yue-Hans":{nu:["latn"]},"yue-Hant":{nu:["latn"]},"yue-Hant-CN":{nu:["latn"]},za:{nu:["latn"]},zgh:{nu:["latn"]},zh:{nu:["latn"]},"zh-Hans":{nu:["latn"]},"zh-Hans-HK":{nu:["latn"]},"zh-Hans-MO":{nu:["latn"]},"zh-Hans-MY":{nu:["latn"]},"zh-Hans-SG":{nu:["latn"]},"zh-Hant":{nu:["latn"]},"zh-Hant-HK":{nu:["latn"]},"zh-Hant-MO":{nu:["latn"]},"zh-Hant-MY":{nu:["latn"]},"zh-Latn":{nu:["latn"]},zu:{nu:["latn"]}}}},6276:(Ge,w,u)=>{"use strict";u.d(w,{d:()=>f});var l=u(92908),g=u(64878),y=u(92357),x=u(15964);function f(p,h){return(0,l.N)(function(E,v){var m=new Set;E.subscribe((0,g._)(v,function(S){var d=p?p(S):S;m.has(d)||(m.add(d),v.next(S))})),h&&(0,x.Tg)(h).subscribe((0,g._)(v,function(){return m.clear()},y.l))})}},6585:Ge=>{var w=1e3,u=w*60,l=u*60,g=l*24,y=g*7,x=g*365.25;Ge.exports=function(v,m){m=m||{};var S=typeof v;if(S==="string"&&v.length>0)return f(v);if(S==="number"&&isFinite(v))return m.long?h(v):p(v);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(v))};function f(v){if(v=String(v),!(v.length>100)){var m=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(v);if(m){var S=parseFloat(m[1]),d=(m[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return S*x;case"weeks":case"week":case"w":return S*y;case"days":case"day":case"d":return S*g;case"hours":case"hour":case"hrs":case"hr":case"h":return S*l;case"minutes":case"minute":case"mins":case"min":case"m":return S*u;case"seconds":case"second":case"secs":case"sec":case"s":return S*w;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return S;default:return}}}}function p(v){var m=Math.abs(v);return m>=g?Math.round(v/g)+"d":m>=l?Math.round(v/l)+"h":m>=u?Math.round(v/u)+"m":m>=w?Math.round(v/w)+"s":v+"ms"}function h(v){var m=Math.abs(v);return m>=g?E(v,m,g,"day"):m>=l?E(v,m,l,"hour"):m>=u?E(v,m,u,"minute"):m>=w?E(v,m,w,"second"):v+" ms"}function E(v,m,S,d){var O=m>=S*1.5;return Math.round(v/S)+" "+d+(O?"s":"")}},6677:function(Ge,w,u){"use strict";var l=this&&this.__read||function(h,E){var v=typeof Symbol=="function"&&h[Symbol.iterator];if(!v)return h;var m=v.call(h),S,d=[],O;try{for(;(E===void 0||E-- >0)&&!(S=m.next()).done;)d.push(S.value)}catch(R){O={error:R}}finally{try{S&&!S.done&&(v=m.return)&&v.call(m)}finally{if(O)throw O.error}}return d},g=this&&this.__spreadArray||function(h,E){for(var v=0,m=E.length,S=h.length;v<m;v++,S++)h[S]=E[v];return h};Object.defineProperty(w,"__esModule",{value:!0}),w.raceWith=void 0;var y=u(89795),x=u(65212),f=u(87699);function p(){for(var h=[],E=0;E<arguments.length;E++)h[E]=arguments[E];return h.length?x.operate(function(v,m){y.raceInit(g([v],l(h)))(m)}):f.identity}w.raceWith=p},6757:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var f=function(p,h){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,v){E.__proto__=v}||function(E,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(E[m]=v[m])},f(p,h)};return function(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");f(p,h);function E(){this.constructor=p}p.prototype=h===null?Object.create(h):(E.prototype=h.prototype,new E)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.AnimationFrameAction=void 0;var g=u(64772),y=u(35726),x=function(f){l(p,f);function p(h,E){var v=f.call(this,h,E)||this;return v.scheduler=h,v.work=E,v}return p.prototype.requestAsyncId=function(h,E,v){return v===void 0&&(v=0),v!==null&&v>0?f.prototype.requestAsyncId.call(this,h,E,v):(h.actions.push(this),h._scheduled||(h._scheduled=y.animationFrameProvider.requestAnimationFrame(function(){return h.flush(void 0)})))},p.prototype.recycleAsyncId=function(h,E,v){var m;if(v===void 0&&(v=0),v!=null?v>0:this.delay>0)return f.prototype.recycleAsyncId.call(this,h,E,v);var S=h.actions;E!=null&&E===h._scheduled&&((m=S[S.length-1])===null||m===void 0?void 0:m.id)!==E&&(y.animationFrameProvider.cancelAnimationFrame(E),h._scheduled=void 0)},p}(g.AsyncAction);w.AnimationFrameAction=x},6837:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});const l={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},6888:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=v(u(96540)),g=E(u(83175)),y=E(u(40961)),x=u(71089),f=u(81726),p=u(77056),h=E(u(18696));function E(L){return L&&L.__esModule?L:{default:L}}function v(L,j){if(typeof WeakMap=="function")var I=new WeakMap,U=new WeakMap;return(v=function($,ee){if(!ee&&$&&$.__esModule)return $;var re,Se,z={__proto__:null,default:$};if($===null||typeof $!="object"&&typeof $!="function")return z;if(re=ee?U:I){if(re.has($))return re.get($);re.set($,z)}for(const Q in $)Q!=="default"&&{}.hasOwnProperty.call($,Q)&&((Se=(re=Object.defineProperty)&&Object.getOwnPropertyDescriptor($,Q))&&(Se.get||Se.set)?re(z,Q,Se):z[Q]=$[Q]);return z})(L,j)}function m(L,j,I){return(j=S(j))in L?Object.defineProperty(L,j,{value:I,enumerable:!0,configurable:!0,writable:!0}):L[j]=I,L}function S(L){var j=d(L,"string");return typeof j=="symbol"?j:j+""}function d(L,j){if(typeof L!="object"||!L)return L;var I=L[Symbol.toPrimitive];if(I!==void 0){var U=I.call(L,j||"default");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(L)}const O={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let R=O.mouse;class C extends l.Component{constructor(){super(...arguments),m(this,"dragging",!1),m(this,"lastX",NaN),m(this,"lastY",NaN),m(this,"touchIdentifier",null),m(this,"mounted",!1),m(this,"handleDragStart",j=>{if(this.props.onMouseDown(j),!this.props.allowAnyClick&&typeof j.button=="number"&&j.button!==0)return!1;const I=this.findDOMNode();if(!I||!I.ownerDocument||!I.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:U}=I;if(this.props.disabled||!(j.target instanceof U.defaultView.Node)||this.props.handle&&!(0,x.matchesSelectorAndParentsTo)(j.target,this.props.handle,I)||this.props.cancel&&(0,x.matchesSelectorAndParentsTo)(j.target,this.props.cancel,I))return;j.type==="touchstart"&&!this.props.allowMobileScroll&&j.preventDefault();const $=(0,x.getTouchIdentifier)(j);this.touchIdentifier=$;const ee=(0,f.getControlPosition)(j,$,this);if(ee==null)return;const{x:re,y:Se}=ee,z=(0,f.createCoreData)(this,re,Se);(0,h.default)("DraggableCore: handleDragStart: %j",z),(0,h.default)("calling",this.props.onStart),!(this.props.onStart(j,z)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,x.addUserSelectStyles)(U),this.dragging=!0,this.lastX=re,this.lastY=Se,(0,x.addEvent)(U,R.move,this.handleDrag),(0,x.addEvent)(U,R.stop,this.handleDragStop))}),m(this,"handleDrag",j=>{const I=(0,f.getControlPosition)(j,this.touchIdentifier,this);if(I==null)return;let{x:U,y:$}=I;if(Array.isArray(this.props.grid)){let Se=U-this.lastX,z=$-this.lastY;if([Se,z]=(0,f.snapToGrid)(this.props.grid,Se,z),!Se&&!z)return;U=this.lastX+Se,$=this.lastY+z}const ee=(0,f.createCoreData)(this,U,$);if((0,h.default)("DraggableCore: handleDrag: %j",ee),this.props.onDrag(j,ee)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const z=document.createEvent("MouseEvents");z.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(z)}return}this.lastX=U,this.lastY=$}),m(this,"handleDragStop",j=>{if(!this.dragging)return;const I=(0,f.getControlPosition)(j,this.touchIdentifier,this);if(I==null)return;let{x:U,y:$}=I;if(Array.isArray(this.props.grid)){let z=U-this.lastX||0,Q=$-this.lastY||0;[z,Q]=(0,f.snapToGrid)(this.props.grid,z,Q),U=this.lastX+z,$=this.lastY+Q}const ee=(0,f.createCoreData)(this,U,$);if(this.props.onStop(j,ee)===!1||this.mounted===!1)return!1;const Se=this.findDOMNode();Se&&this.props.enableUserSelectHack&&(0,x.scheduleRemoveUserSelectStyles)(Se.ownerDocument),(0,h.default)("DraggableCore: handleDragStop: %j",ee),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Se&&((0,h.default)("DraggableCore: Removing handlers"),(0,x.removeEvent)(Se.ownerDocument,R.move,this.handleDrag),(0,x.removeEvent)(Se.ownerDocument,R.stop,this.handleDragStop))}),m(this,"onMouseDown",j=>(R=O.mouse,this.handleDragStart(j))),m(this,"onMouseUp",j=>(R=O.mouse,this.handleDragStop(j))),m(this,"onTouchStart",j=>(R=O.touch,this.handleDragStart(j))),m(this,"onTouchEnd",j=>(R=O.touch,this.handleDragStop(j)))}componentDidMount(){this.mounted=!0;const j=this.findDOMNode();j&&(0,x.addEvent)(j,O.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const j=this.findDOMNode();if(j){const{ownerDocument:I}=j;(0,x.removeEvent)(I,O.mouse.move,this.handleDrag),(0,x.removeEvent)(I,O.touch.move,this.handleDrag),(0,x.removeEvent)(I,O.mouse.stop,this.handleDragStop),(0,x.removeEvent)(I,O.touch.stop,this.handleDragStop),(0,x.removeEvent)(j,O.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,x.scheduleRemoveUserSelectStyles)(I)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:y.default.findDOMNode(this)}render(){return l.cloneElement(l.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}w.default=C,m(C,"displayName","DraggableCore"),m(C,"propTypes",{allowAnyClick:g.default.bool,allowMobileScroll:g.default.bool,children:g.default.node.isRequired,disabled:g.default.bool,enableUserSelectHack:g.default.bool,offsetParent:function(L,j){if(L[j]&&L[j].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:g.default.arrayOf(g.default.number),handle:g.default.string,cancel:g.default.string,nodeRef:g.default.object,onStart:g.default.func,onDrag:g.default.func,onStop:g.default.func,onMouseDown:g.default.func,scale:g.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),m(C,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},6924:(Ge,w,u)=>{var l=u(85250),g=u(20999),y=g(function(x,f,p,h){l(x,f,p,h)});Ge.exports=y},6933:(Ge,w,u)=>{"use strict";u.d(w,{$x:()=>O,Io:()=>d,Li:()=>L,WQ:()=>g,aI:()=>E,e$:()=>v,hG:()=>S,hs:()=>m,sG:()=>x});var l=u(70915);function g(I,U){return I[0]+=+U[0],I[1]+=+U[1],I}function y(I,U){const $=U.getRadius(),ee=U.getCenter(),re=ee[0],Se=ee[1],z=I[0],Q=I[1];let ce=z-re;const se=Q-Se;ce===0&&se===0&&(ce=1);const q=Math.sqrt(ce*ce+se*se),te=re+$*ce/q,A=Se+$*se/q;return[te,A]}function x(I,U){const $=I[0],ee=I[1],re=U[0],Se=U[1],z=re[0],Q=re[1],ce=Se[0],se=Se[1],q=ce-z,te=se-Q,A=q===0&&te===0?0:(q*($-z)+te*(ee-Q))/(q*q+te*te||0);let T,B;return A<=0?(T=z,B=Q):A>=1?(T=ce,B=se):(T=z+A*q,B=Q+A*te),[T,B]}function f(I){return function(U){return C(U,I)}}function p(I,U,$){const ee=modulo(U+180,360)-180,re=Math.abs(3600*ee),Se=$||0;let z=Math.floor(re/3600),Q=Math.floor((re-z*3600)/60),ce=toFixed(re-z*3600-Q*60,Se);ce>=60&&(ce=0,Q+=1),Q>=60&&(Q=0,z+=1);let se=z+"\xB0";return(Q!==0||ce!==0)&&(se+=" "+padNumber(Q,2)+"\u2032"),ce!==0&&(se+=" "+padNumber(ce,2,Se)+"\u2033"),ee!==0&&(se+=" "+I.charAt(ee<0?1:0)),se}function h(I,U,$){return I?U.replace("{x}",I[0].toFixed($)).replace("{y}",I[1].toFixed($)):""}function E(I,U){let $=!0;for(let ee=I.length-1;ee>=0;--ee)if(I[ee]!=U[ee]){$=!1;break}return $}function v(I,U){const $=Math.cos(U),ee=Math.sin(U),re=I[0]*$-I[1]*ee,Se=I[1]*$+I[0]*ee;return I[0]=re,I[1]=Se,I}function m(I,U){return I[0]*=U,I[1]*=U,I}function S(I,U){const $=I[0]-U[0],ee=I[1]-U[1];return $*$+ee*ee}function d(I,U){return Math.sqrt(S(I,U))}function O(I,U){return S(I,x(I,U))}function R(I,U){return I?p("NS",I[1],U)+" "+p("EW",I[0],U):""}function C(I,U){return h(I,"{x}, {y}",U)}function L(I,U){if(U.canWrapX()){const $=(0,l.RG)(U.getExtent()),ee=j(I,U,$);ee&&(I[0]-=ee*$)}return I}function j(I,U,$){const ee=U.getExtent();let re=0;return U.canWrapX()&&(I[0]<ee[0]||I[0]>ee[2])&&($=$||(0,l.RG)(ee),re=Math.floor((I[0]-ee[0])/$)),re}},7024:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ArgumentOutOfRangeError=void 0;var l=u(9619);w.ArgumentOutOfRangeError=l.createErrorClass(function(g){return function(){g(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},7040:function(Ge,w,u){"use strict";var l=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(w,"__esModule",{value:!0}),w.ActionImpl=void 0;var g=l(u(17676)),y=u(24335),x=u(65178),f=function(h){var E=h.keywords,v=E===void 0?"":E,m=h.section,S=m===void 0?"":m;return(v+" "+(typeof S=="string"?S:S.name)).trim()},p=function(){function h(E,v){var m=this,S;this.priority=x.Priority.NORMAL,this.ancestors=[],this.children=[],Object.assign(this,E),this.id=E.id,this.name=E.name,this.keywords=f(E);var d=E.perform;if(this.command=d&&new y.Command({perform:function(){return d(m)}},{history:v.history}),this.perform=(S=this.command)===null||S===void 0?void 0:S.perform,E.parent){var O=v.store[E.parent];(0,g.default)(O,"attempted to create an action whos parent: "+E.parent+" does not exist in the store."),O.addChild(this)}}return h.prototype.addChild=function(E){E.ancestors.unshift(this);for(var v=this.parentActionImpl;v;)E.ancestors.unshift(v),v=v.parentActionImpl;this.children.push(E)},h.prototype.removeChild=function(E){var v=this,m=this.children.indexOf(E);m!==-1&&this.children.splice(m,1),E.children&&E.children.forEach(function(S){v.removeChild(S)})},Object.defineProperty(h.prototype,"parentActionImpl",{get:function(){return this.ancestors[this.ancestors.length-1]},enumerable:!1,configurable:!0}),h.create=function(E,v){return new h(E,v)},h}();w.ActionImpl=p},7049:(Ge,w,u)=>{"use strict";u.d(w,{J:()=>f});var l=u(49953),g=u(96540),y;const x=(y=g.useInsertionEffect)!==null&&y!==void 0?y:l.N;function f(p){const h=(0,g.useRef)(null);return x(()=>{h.current=p},[p]),(0,g.useCallback)((...E)=>{const v=h.current;return v?.(...E)},[])}},7077:(Ge,w,u)=>{"use strict";u.d(w,{A$:()=>Ur,B7:()=>Yn,Bq:()=>Wn,DJ:()=>nn,Dj:()=>de,F2:()=>Nn,Gv:()=>I,H1:()=>kr,LS:()=>sn,L_:()=>Zn,M4:()=>U,MI:()=>cr,Ml:()=>se,N4:()=>Ve,Np:()=>mi,Of:()=>l,PO:()=>En,PR:()=>ge,Qd:()=>re,T$:()=>Cn,Td:()=>x,U:()=>ei,UO:()=>rn,VD:()=>Ee,X:()=>zn,YU:()=>Gn,ZU:()=>Yr,_0:()=>j,_E:()=>g,aE:()=>Et,bq:()=>Pn,cO:()=>he,er:()=>fn,gc:()=>ki,go:()=>f,iq:()=>xi,lQ:()=>wi,mX:()=>m,nf:()=>Ea,pE:()=>hr,pL:()=>On,qS:()=>y,rT:()=>Bn,sr:()=>lt,tH:()=>E,wC:()=>L,wG:()=>pn,wo:()=>ke,xo:()=>_e,yT:()=>Me});const{apply:l,defineProperty:g,deleteProperty:y,getPrototypeOf:x,ownKeys:f,setPrototypeOf:p}=Reflect,h=Object,{assign:E,freeze:v,keys:m,prototype:S}=h,{hasOwn:d}=h,{__lookupGetter__:O,__lookupSetter__:R,hasOwnProperty:C}=S,L=typeof d=="function"?d:function(Dt,Xn){return l(C,Dt,[Xn])},{toString:j}=S;function I(ji){return typeof ji=="object"&&ji!==null}function U(ji,Dt){return ji==null||!L(ji,Dt)?void 0:l(O,ji,[Dt])}function $(ji,Dt){return ji==null||!L(ji,Dt)?void 0:l(R,ji,[Dt])}const ee=Symbol,{for:re,iterator:Se,toStringTag:z,unscopables:Q}=ee,{valueOf:ce}=ee.prototype,se=Array,{prototype:q}=se,{at:te,concat:A,copyWithin:T,entries:B,every:X,fill:ue,findIndex:ie,flat:Te,flatMap:je,forEach:yt,join:tt,keys:Ze,lastIndexOf:Ne,pop:it,reduce:Rt,reduceRight:Dn,reverse:Mt,slice:Wt,some:Tn,toLocaleString:bn,toString:$t,values:Ct,[Se]:Z}=q,me=v(E({__proto__:null},q[Q])),{filter:ke,find:Ee,includes:_e,indexOf:ge,map:Me,push:lt,shift:Ft,splice:Et,sort:Zt,unshift:nn}=q,{isArray:Pn}=se;function rn(ji){return p(ji,null),ji.at=te,ji.concat=A,ji.copyWithin=T,ji.entries=B,ji.every=X,ji.fill=ue,ji.filter=ke,ji.find=Ee,ji.findIndex=ie,ji.flat=Te,ji.flatMap=je,ji.forEach=yt,ji.includes=_e,ji.indexOf=ge,ji.join=tt,ji.keys=Ze,ji.lastIndexOf=Ne,ji.map=Me,ji.pop=it,ji.push=lt,ji.reduce=Rt,ji.reduceRight=Dn,ji.reverse=Mt,ji.shift=Ft,ji.slice=Wt,ji.some=Tn,ji.sort=Zt,ji.splice=Et,ji.toLocaleString=bn,ji.toString=$t,ji.unshift=nn,ji.values=Ct,ji[Se]=Z,ji[Q]=me,p(ji,q),ji}const Vt=U(ArrayBuffer.prototype,"byteLength"),Kn=typeof BigInt=="function",ur=Kn?BigInt.prototype.valueOf:void 0,{valueOf:on}=Boolean.prototype,tr="$LWS",Cn=`${function ji(){return ji.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),Wn="\u2026",er="Illegal property access.",Fn=re("@@lockerNearMembraneSerializedValue"),en=re("@@lockerNearMembrane"),gn=re("@@lockerLiveValue"),kn="[object Array]",Jn="[object ArrayBuffer]",Nn="[object BigInt]",kr="[object Boolean]",bt="[object Date]",ne="[object Function]",fe="[object Map]",K="[object Null]",he="[object Number]",Fe="[object Object]",Nt="[object RegExp]",ln="[object Set]",pn="[object String]",Yn="[object Symbol]",ht="[object Undefined]",De="[object WeakMap]",we="[object WeakSet]",{valueOf:Ke}=Date.prototype,be=Map,{prototype:pt}=be,{clear:We,delete:Je,forEach:ye,get:Qe,has:ze,keys:qe,values:Pt,[Se]:zt,[z]:un}=pt,{entries:hn,set:xt}=pt,_t=U(pt,"size");function qt(ji){return p(ji,null),ji.clear=We,ji.delete=Je,ji.entries=hn,ji.forEach=ye,ji.get=Qe,ji.has=ze,ji.keys=qe,ji.set=xt,g(ji,"size",{__proto__:null,configurable:!0,enumerable:!0,get:_t,set:void 0}),ji.values=Pt,ji[Se]=zt,ji[z]=un,p(ji,pt),ji}const fn=Number,{isFinite:On,isInteger:Gn,isNaN:Bn}=fn,{valueOf:Lr}=fn.prototype,An=RegExp,{prototype:Un}=An,{test:cr}=Un,mr=U(Un,"source"),hr=Set,{prototype:ar}=hr,{add:Cr,has:Yr,values:Xr}=ar,ni=U(ar,"size"),ki=String,{prototype:zr}=ki,{slice:Ur,valueOf:jt}=zr,sn=WeakMap,{prototype:Rn}=sn,{has:H}=Rn,{delete:Be,get:wn,set:bi,[z]:Oi}=Rn;function de(ji){return p(ji,null),ji.delete=Be,ji.get=wn,ji.has=H,ji.set=bi,ji[z]=Oi,p(ji,Rn),ji}const Ve=WeakSet,{prototype:vt}=Ve,{has:Qt}=vt,{add:nt,delete:Tt,[z]:Gt}=vt;function En(ji){return p(ji,null),ji.add=nt,ji.delete=Tt,ji.has=Qt,ji[z]=Gt,p(ji,vt),ji}const{toStringTag:Qn}=Symbol;function Or(ji){try{if("byteLength"in ji)return l(Vt,ji,[]),Jn}catch{}try{if("toLocaleDateString"in ji)return l(Ke,ji,[]),bt}catch{}try{if("get"in ji&&"size"in ji)return l(_t,ji,[]),fe}catch{}try{if("add"in ji&&"size"in ji)return l(ni,ji,[]),ln}catch{}try{if("get"in ji&&!("size"in ji))return l(H,ji,[]),De}catch{}try{if("add"in ji&&!("size"in ji))return l(Qt,ji,[]),we}catch{}try{if("toPrecision"in ji)return l(Lr,ji,[]),he}catch{}try{if("description"in ji)return l(ce,ji,[]),Yn}catch{}try{if(L(ji,"lastIndex"))return l(mr,ji,[]),Nt}catch{}try{if(L(ji,"length"))return l(jt,ji,[]),pn}catch{}try{return l(on,ji,[]),kr}catch{}if(Kn)try{return l(ur,ji,[]),Nn}catch{}return Fe}function Pr(ji){if(ji===null)return K;if(ji===void 0)return ht;switch(typeof ji){case"bigint":return Nn;case"boolean":return kr;case"function":return ne;case"number":return he;case"string":return pn;case"symbol":return Yn}return Pn(ji)?kn:Qn in ji?Or(ji):l(j,ji,[])}const{parse:ai}=JSON,{stringify:xi}=JSON;function mi(ji){if(typeof ji=="object"&&ji!==null||typeof ji=="function")return Fn in ji?void 0:ji[Fn]}function ei(ji){return typeof ji=="object"&&ji!==null||typeof ji=="function"?!(en in ji)&&ji[en]===!0:!1}const Qr=qt(new be);function Ni(ji){return h(mi(ji))}function ea(ji,Dt){const Xn=new be,Tr=l(hn,ji,[]);let{length:Nr}=Dt;for(;;){const{done:ti,value:_i}=Tr.next();if(ti)break;const{0:Ii,1:ta}=_i;let Ji;Dt[Nr++]=[k=>{Ji=k},Ii],Dt[Nr++]=[k=>{l(xt,Xn,[Ji,k])},ta]}return Xn}function Qi(ji){const{flags:Dt,source:Xn}=ai(mi(ji));return new An(Xn,Dt)}function ir(ji,Dt){const Xn=new hr,Tr=l(Xr,ji,[]);let{length:Nr}=Dt;for(;;){const{done:ti,value:_i}=Tr.next();if(ti)break;Dt[Nr++]=[Ii=>{l(Cr,Xn,[Ii])},_i]}return Xn}function xr(ji,Dt,Xn){const Tr=m(Dt);let{length:Nr}=ji;for(let ti=0,{length:_i}=Tr;ti<_i;ti+=1){const Ii=Tr[ti],ta=Dt[Ii];ji[Nr++]=[Ji=>{Xn[Ii]=Ji},ta]}}function di(ji){let Dt;const Xn=[[Tr=>{Dt=Tr},ji]];e:for(;Xn.length;){const{0:Tr,1:Nr}=l(Ft,Xn,[]);if(Nr==null||typeof Nr=="boolean"||typeof Nr=="number"||typeof Nr=="string"||typeof Nr=="bigint"){Tr(Nr);continue e}if(typeof Nr=="symbol"){Tr(Nr);break e}let ti=Qr.get(Nr);if(ti){Tr(ti);continue e}const _i=Pr(Nr);switch(_i){case Fe:{const Ii=x(Nr);(Ii===S||Ii===null||x(Ii)===null)&&(ti={},xr(Xn,Nr,ti));break}case kn:ti=se(Nr.length),xr(Xn,Nr,ti);break;case fe:ti=ea(Nr,Xn);break;case ln:ti=ir(Nr,Xn);break}if(ti===void 0){if(!ei(Nr)){Qr.set(Nr,Nr),Tr(Nr);continue e}switch(_i){case Nt:ti=Qi(Nr);break;case kr:case he:case Nn:case pn:ti=Ni(Nr);break}}if(ti===void 0){Tr(Nr);break e}Qr.set(Nr,ti),Tr(ti)}return Dt}function ft(ji){let Dt=ji;try{Dt=di(ji)}catch{}return Qr.clear(),Dt}const zn=Error,Zn=TypeError;function wi(){}const{min:Ea}=Math,wa=null},7245:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.throttleTime=void 0;var l=u(62326),g=u(44880),y=u(5825);function x(f,p,h){p===void 0&&(p=l.asyncScheduler);var E=y.timer(f,p);return g.throttle(function(){return E},h)}w.throttleTime=x},7350:(Ge,w,u)=>{var l=u(60602),g=u(23805),y="Expected a function";function x(f,p,h){var E=!0,v=!0;if(typeof f!="function")throw new TypeError(y);return g(h)&&(E="leading"in h?!!h.leading:E,v="trailing"in h?!!h.trailing:v),l(f,p,{leading:E,maxWait:p,trailing:v})}Ge.exports=x},7452:Ge=>{var w=function(u){"use strict";var l=Object.prototype,g=l.hasOwnProperty,y=Object.defineProperty||function(X,ue,ie){X[ue]=ie.value},x,f=typeof Symbol=="function"?Symbol:{},p=f.iterator||"@@iterator",h=f.asyncIterator||"@@asyncIterator",E=f.toStringTag||"@@toStringTag";function v(X,ue,ie){return Object.defineProperty(X,ue,{value:ie,enumerable:!0,configurable:!0,writable:!0}),X[ue]}try{v({},"")}catch{v=function(ue,ie,Te){return ue[ie]=Te}}function m(X,ue,ie,Te){var je=ue&&ue.prototype instanceof j?ue:j,yt=Object.create(je.prototype),tt=new A(Te||[]);return y(yt,"_invoke",{value:ce(X,ie,tt)}),yt}u.wrap=m;function S(X,ue,ie){try{return{type:"normal",arg:X.call(ue,ie)}}catch(Te){return{type:"throw",arg:Te}}}var d="suspendedStart",O="suspendedYield",R="executing",C="completed",L={};function j(){}function I(){}function U(){}var $={};v($,p,function(){return this});var ee=Object.getPrototypeOf,re=ee&&ee(ee(T([])));re&&re!==l&&g.call(re,p)&&($=re);var Se=U.prototype=j.prototype=Object.create($);I.prototype=U,y(Se,"constructor",{value:U,configurable:!0}),y(U,"constructor",{value:I,configurable:!0}),I.displayName=v(U,E,"GeneratorFunction");function z(X){["next","throw","return"].forEach(function(ue){v(X,ue,function(ie){return this._invoke(ue,ie)})})}u.isGeneratorFunction=function(X){var ue=typeof X=="function"&&X.constructor;return ue?ue===I||(ue.displayName||ue.name)==="GeneratorFunction":!1},u.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,U):(X.__proto__=U,v(X,E,"GeneratorFunction")),X.prototype=Object.create(Se),X},u.awrap=function(X){return{__await:X}};function Q(X,ue){function ie(yt,tt,Ze,Ne){var it=S(X[yt],X,tt);if(it.type==="throw")Ne(it.arg);else{var Rt=it.arg,Dn=Rt.value;return Dn&&typeof Dn=="object"&&g.call(Dn,"__await")?ue.resolve(Dn.__await).then(function(Mt){ie("next",Mt,Ze,Ne)},function(Mt){ie("throw",Mt,Ze,Ne)}):ue.resolve(Dn).then(function(Mt){Rt.value=Mt,Ze(Rt)},function(Mt){return ie("throw",Mt,Ze,Ne)})}}var Te;function je(yt,tt){function Ze(){return new ue(function(Ne,it){ie(yt,tt,Ne,it)})}return Te=Te?Te.then(Ze,Ze):Ze()}y(this,"_invoke",{value:je})}z(Q.prototype),v(Q.prototype,h,function(){return this}),u.AsyncIterator=Q,u.async=function(X,ue,ie,Te,je){je===void 0&&(je=Promise);var yt=new Q(m(X,ue,ie,Te),je);return u.isGeneratorFunction(ue)?yt:yt.next().then(function(tt){return tt.done?tt.value:yt.next()})};function ce(X,ue,ie){var Te=d;return function(yt,tt){if(Te===R)throw new Error("Generator is already running");if(Te===C){if(yt==="throw")throw tt;return B()}for(ie.method=yt,ie.arg=tt;;){var Ze=ie.delegate;if(Ze){var Ne=se(Ze,ie);if(Ne){if(Ne===L)continue;return Ne}}if(ie.method==="next")ie.sent=ie._sent=ie.arg;else if(ie.method==="throw"){if(Te===d)throw Te=C,ie.arg;ie.dispatchException(ie.arg)}else ie.method==="return"&&ie.abrupt("return",ie.arg);Te=R;var it=S(X,ue,ie);if(it.type==="normal"){if(Te=ie.done?C:O,it.arg===L)continue;return{value:it.arg,done:ie.done}}else it.type==="throw"&&(Te=C,ie.method="throw",ie.arg=it.arg)}}}function se(X,ue){var ie=ue.method,Te=X.iterator[ie];if(Te===x)return ue.delegate=null,ie==="throw"&&X.iterator.return&&(ue.method="return",ue.arg=x,se(X,ue),ue.method==="throw")||ie!=="return"&&(ue.method="throw",ue.arg=new TypeError("The iterator does not provide a '"+ie+"' method")),L;var je=S(Te,X.iterator,ue.arg);if(je.type==="throw")return ue.method="throw",ue.arg=je.arg,ue.delegate=null,L;var yt=je.arg;if(!yt)return ue.method="throw",ue.arg=new TypeError("iterator result is not an object"),ue.delegate=null,L;if(yt.done)ue[X.resultName]=yt.value,ue.next=X.nextLoc,ue.method!=="return"&&(ue.method="next",ue.arg=x);else return yt;return ue.delegate=null,L}z(Se),v(Se,E,"Generator"),v(Se,p,function(){return this}),v(Se,"toString",function(){return"[object Generator]"});function q(X){var ue={tryLoc:X[0]};1 in X&&(ue.catchLoc=X[1]),2 in X&&(ue.finallyLoc=X[2],ue.afterLoc=X[3]),this.tryEntries.push(ue)}function te(X){var ue=X.completion||{};ue.type="normal",delete ue.arg,X.completion=ue}function A(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(q,this),this.reset(!0)}u.keys=function(X){var ue=Object(X),ie=[];for(var Te in ue)ie.push(Te);return ie.reverse(),function je(){for(;ie.length;){var yt=ie.pop();if(yt in ue)return je.value=yt,je.done=!1,je}return je.done=!0,je}};function T(X){if(X!=null){var ue=X[p];if(ue)return ue.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var ie=-1,Te=function je(){for(;++ie<X.length;)if(g.call(X,ie))return je.value=X[ie],je.done=!1,je;return je.value=x,je.done=!0,je};return Te.next=Te}}throw new TypeError(typeof X+" is not iterable")}u.values=T;function B(){return{value:x,done:!0}}return A.prototype={constructor:A,reset:function(X){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(te),!X)for(var ue in this)ue.charAt(0)==="t"&&g.call(this,ue)&&!isNaN(+ue.slice(1))&&(this[ue]=x)},stop:function(){this.done=!0;var X=this.tryEntries[0],ue=X.completion;if(ue.type==="throw")throw ue.arg;return this.rval},dispatchException:function(X){if(this.done)throw X;var ue=this;function ie(Ne,it){return yt.type="throw",yt.arg=X,ue.next=Ne,it&&(ue.method="next",ue.arg=x),!!it}for(var Te=this.tryEntries.length-1;Te>=0;--Te){var je=this.tryEntries[Te],yt=je.completion;if(je.tryLoc==="root")return ie("end");if(je.tryLoc<=this.prev){var tt=g.call(je,"catchLoc"),Ze=g.call(je,"finallyLoc");if(tt&&Ze){if(this.prev<je.catchLoc)return ie(je.catchLoc,!0);if(this.prev<je.finallyLoc)return ie(je.finallyLoc)}else if(tt){if(this.prev<je.catchLoc)return ie(je.catchLoc,!0)}else if(Ze){if(this.prev<je.finallyLoc)return ie(je.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(X,ue){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var Te=this.tryEntries[ie];if(Te.tryLoc<=this.prev&&g.call(Te,"finallyLoc")&&this.prev<Te.finallyLoc){var je=Te;break}}je&&(X==="break"||X==="continue")&&je.tryLoc<=ue&&ue<=je.finallyLoc&&(je=null);var yt=je?je.completion:{};return yt.type=X,yt.arg=ue,je?(this.method="next",this.next=je.finallyLoc,L):this.complete(yt)},complete:function(X,ue){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&ue&&(this.next=ue),L},finish:function(X){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var ie=this.tryEntries[ue];if(ie.finallyLoc===X)return this.complete(ie.completion,ie.afterLoc),te(ie),L}},catch:function(X){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var ie=this.tryEntries[ue];if(ie.tryLoc===X){var Te=ie.completion;if(Te.type==="throw"){var je=Te.arg;te(ie)}return je}}throw new Error("illegal catch attempt")},delegateYield:function(X,ue,ie){return this.delegate={iterator:T(X),resultName:ue,nextLoc:ie},this.method==="next"&&(this.arg=x),L}},u}(Ge.exports);try{regeneratorRuntime=w}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=w:Function("r","regeneratorRuntime = r")(w)}},7612:(Ge,w,u)=>{"use strict";u.d(w,{p9:()=>er});var l=u(96540);function g(){return(g=Object.assign||function(ne){for(var fe=1;fe<arguments.length;fe++){var K=arguments[fe];for(var he in K)Object.prototype.hasOwnProperty.call(K,he)&&(ne[he]=K[he])}return ne}).apply(this,arguments)}function y(ne,fe){if(ne==null)return{};var K,he,Fe={},Nt=Object.keys(ne);for(he=0;he<Nt.length;he++)fe.indexOf(K=Nt[he])>=0||(Fe[K]=ne[K]);return Fe}function x(ne){var fe=(0,l.useRef)(ne),K=(0,l.useRef)(function(he){fe.current&&fe.current(he)});return fe.current=ne,K.current}var f=function(ne,fe,K){return fe===void 0&&(fe=0),K===void 0&&(K=1),ne>K?K:ne<fe?fe:ne},p=function(ne){return"touches"in ne},h=function(ne){return ne&&ne.ownerDocument.defaultView||self},E=function(ne,fe,K){var he=ne.getBoundingClientRect(),Fe=p(fe)?function(Nt,ln){for(var pn=0;pn<Nt.length;pn++)if(Nt[pn].identifier===ln)return Nt[pn];return Nt[0]}(fe.touches,K):fe;return{left:f((Fe.pageX-(he.left+h(ne).pageXOffset))/he.width),top:f((Fe.pageY-(he.top+h(ne).pageYOffset))/he.height)}},v=function(ne){!p(ne)&&ne.preventDefault()},m=l.memo(function(ne){var fe=ne.onMove,K=ne.onKey,he=y(ne,["onMove","onKey"]),Fe=(0,l.useRef)(null),Nt=x(fe),ln=x(K),pn=(0,l.useRef)(null),Yn=(0,l.useRef)(!1),ht=(0,l.useMemo)(function(){var be=function(Je){v(Je),(p(Je)?Je.touches.length>0:Je.buttons>0)&&Fe.current?Nt(E(Fe.current,Je,pn.current)):We(!1)},pt=function(){return We(!1)};function We(Je){var ye=Yn.current,Qe=h(Fe.current),ze=Je?Qe.addEventListener:Qe.removeEventListener;ze(ye?"touchmove":"mousemove",be),ze(ye?"touchend":"mouseup",pt)}return[function(Je){var ye=Je.nativeEvent,Qe=Fe.current;if(Qe&&(v(ye),!function(qe,Pt){return Pt&&!p(qe)}(ye,Yn.current)&&Qe)){if(p(ye)){Yn.current=!0;var ze=ye.changedTouches||[];ze.length&&(pn.current=ze[0].identifier)}Qe.focus(),Nt(E(Qe,ye,pn.current)),We(!0)}},function(Je){var ye=Je.which||Je.keyCode;ye<37||ye>40||(Je.preventDefault(),ln({left:ye===39?.05:ye===37?-.05:0,top:ye===40?.05:ye===38?-.05:0}))},We]},[ln,Nt]),De=ht[0],we=ht[1],Ke=ht[2];return(0,l.useEffect)(function(){return Ke},[Ke]),l.createElement("div",g({},he,{onTouchStart:De,onMouseDown:De,className:"react-colorful__interactive",ref:Fe,onKeyDown:we,tabIndex:0,role:"slider"}))}),S=function(ne){return ne.filter(Boolean).join(" ")},d=function(ne){var fe=ne.color,K=ne.left,he=ne.top,Fe=he===void 0?.5:he,Nt=S(["react-colorful__pointer",ne.className]);return l.createElement("div",{className:Nt,style:{top:100*Fe+"%",left:100*K+"%"}},l.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:fe}}))},O=function(ne,fe,K){return fe===void 0&&(fe=0),K===void 0&&(K=Math.pow(10,fe)),Math.round(K*ne)/K},R={grad:.9,turn:360,rad:360/(2*Math.PI)},C=function(ne){return B(L(ne))},L=function(ne){return ne[0]==="#"&&(ne=ne.substring(1)),ne.length<6?{r:parseInt(ne[0]+ne[0],16),g:parseInt(ne[1]+ne[1],16),b:parseInt(ne[2]+ne[2],16),a:ne.length===4?O(parseInt(ne[3]+ne[3],16)/255,2):1}:{r:parseInt(ne.substring(0,2),16),g:parseInt(ne.substring(2,4),16),b:parseInt(ne.substring(4,6),16),a:ne.length===8?O(parseInt(ne.substring(6,8),16)/255,2):1}},j=function(ne,fe){return fe===void 0&&(fe="deg"),Number(ne)*(R[fe]||1)},I=function(ne){var fe=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(ne);return fe?$({h:j(fe[1],fe[2]),s:Number(fe[3]),l:Number(fe[4]),a:fe[5]===void 0?1:Number(fe[5])/(fe[6]?100:1)}):{h:0,s:0,v:0,a:1}},U=I,$=function(ne){var fe=ne.s,K=ne.l;return{h:ne.h,s:(fe*=(K<50?K:100-K)/100)>0?2*fe/(K+fe)*100:0,v:K+fe,a:ne.a}},ee=function(ne){return T(Q(ne))},re=function(ne){var fe=ne.s,K=ne.v,he=ne.a,Fe=(200-fe)*K/100;return{h:O(ne.h),s:O(Fe>0&&Fe<200?fe*K/100/(Fe<=100?Fe:200-Fe)*100:0),l:O(Fe/2),a:O(he,2)}},Se=function(ne){var fe=re(ne);return"hsl("+fe.h+", "+fe.s+"%, "+fe.l+"%)"},z=function(ne){var fe=re(ne);return"hsla("+fe.h+", "+fe.s+"%, "+fe.l+"%, "+fe.a+")"},Q=function(ne){var fe=ne.h,K=ne.s,he=ne.v,Fe=ne.a;fe=fe/360*6,K/=100,he/=100;var Nt=Math.floor(fe),ln=he*(1-K),pn=he*(1-(fe-Nt)*K),Yn=he*(1-(1-fe+Nt)*K),ht=Nt%6;return{r:O(255*[he,pn,ln,ln,Yn,he][ht]),g:O(255*[Yn,he,he,pn,ln,ln][ht]),b:O(255*[ln,ln,Yn,he,he,pn][ht]),a:O(Fe,2)}},ce=function(ne){var fe=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(ne);return fe?X({h:j(fe[1],fe[2]),s:Number(fe[3]),v:Number(fe[4]),a:fe[5]===void 0?1:Number(fe[5])/(fe[6]?100:1)}):{h:0,s:0,v:0,a:1}},se=ce,q=function(ne){var fe=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(ne);return fe?B({r:Number(fe[1])/(fe[2]?100/255:1),g:Number(fe[3])/(fe[4]?100/255:1),b:Number(fe[5])/(fe[6]?100/255:1),a:fe[7]===void 0?1:Number(fe[7])/(fe[8]?100:1)}):{h:0,s:0,v:0,a:1}},te=q,A=function(ne){var fe=ne.toString(16);return fe.length<2?"0"+fe:fe},T=function(ne){var fe=ne.r,K=ne.g,he=ne.b,Fe=ne.a,Nt=Fe<1?A(O(255*Fe)):"";return"#"+A(fe)+A(K)+A(he)+Nt},B=function(ne){var fe=ne.r,K=ne.g,he=ne.b,Fe=ne.a,Nt=Math.max(fe,K,he),ln=Nt-Math.min(fe,K,he),pn=ln?Nt===fe?(K-he)/ln:Nt===K?2+(he-fe)/ln:4+(fe-K)/ln:0;return{h:O(60*(pn<0?pn+6:pn)),s:O(Nt?ln/Nt*100:0),v:O(Nt/255*100),a:Fe}},X=function(ne){return{h:O(ne.h),s:O(ne.s),v:O(ne.v),a:O(ne.a,2)}},ue=l.memo(function(ne){var fe=ne.hue,K=ne.onChange,he=S(["react-colorful__hue",ne.className]);return l.createElement("div",{className:he},l.createElement(m,{onMove:function(Fe){K({h:360*Fe.left})},onKey:function(Fe){K({h:f(fe+360*Fe.left,0,360)})},"aria-label":"Hue","aria-valuenow":O(fe),"aria-valuemax":"360","aria-valuemin":"0"},l.createElement(d,{className:"react-colorful__hue-pointer",left:fe/360,color:Se({h:fe,s:100,v:100,a:1})})))}),ie=l.memo(function(ne){var fe=ne.hsva,K=ne.onChange,he={backgroundColor:Se({h:fe.h,s:100,v:100,a:1})};return l.createElement("div",{className:"react-colorful__saturation",style:he},l.createElement(m,{onMove:function(Fe){K({s:100*Fe.left,v:100-100*Fe.top})},onKey:function(Fe){K({s:f(fe.s+100*Fe.left,0,100),v:f(fe.v-100*Fe.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+O(fe.s)+"%, Brightness "+O(fe.v)+"%"},l.createElement(d,{className:"react-colorful__saturation-pointer",top:1-fe.v/100,left:fe.s/100,color:Se(fe)})))}),Te=function(ne,fe){if(ne===fe)return!0;for(var K in ne)if(ne[K]!==fe[K])return!1;return!0},je=function(ne,fe){return ne.replace(/\s/g,"")===fe.replace(/\s/g,"")},yt=function(ne,fe){return ne.toLowerCase()===fe.toLowerCase()||Te(L(ne),L(fe))};function tt(ne,fe,K){var he=x(K),Fe=(0,l.useState)(function(){return ne.toHsva(fe)}),Nt=Fe[0],ln=Fe[1],pn=(0,l.useRef)({color:fe,hsva:Nt});(0,l.useEffect)(function(){if(!ne.equal(fe,pn.current.color)){var ht=ne.toHsva(fe);pn.current={hsva:ht,color:fe},ln(ht)}},[fe,ne]),(0,l.useEffect)(function(){var ht;Te(Nt,pn.current.hsva)||ne.equal(ht=ne.fromHsva(Nt),pn.current.color)||(pn.current={hsva:Nt,color:ht},he(ht))},[Nt,ne,he]);var Yn=(0,l.useCallback)(function(ht){ln(function(De){return Object.assign({},De,ht)})},[]);return[Nt,Yn]}var Ze,Ne=typeof window<"u"?l.useLayoutEffect:l.useEffect,it=function(){return Ze||u.nc},Rt=function(ne){Ze=ne},Dn=new Map,Mt=function(ne){Ne(function(){var fe=ne.current?ne.current.ownerDocument:document;if(fe!==void 0&&!Dn.has(fe)){var K=fe.createElement("style");K.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Dn.set(fe,K);var he=it();he&&K.setAttribute("nonce",he),fe.head.appendChild(K)}},[])},Wt=function(ne){var fe=ne.className,K=ne.colorModel,he=ne.color,Fe=he===void 0?K.defaultColor:he,Nt=ne.onChange,ln=y(ne,["className","colorModel","color","onChange"]),pn=r(null);Mt(pn);var Yn=tt(K,Fe,Nt),ht=Yn[0],De=Yn[1],we=S(["react-colorful",fe]);return e.createElement("div",g({},ln,{ref:pn,className:we}),e.createElement(ie,{hsva:ht,onChange:De}),e.createElement(ue,{hue:ht.h,onChange:De,className:"react-colorful__last-control"}))},Tn={defaultColor:"000",toHsva:C,fromHsva:function(ne){return ee({h:ne.h,s:ne.s,v:ne.v,a:1})},equal:yt},bn=function(ne){return e.createElement(Wt,g({},ne,{colorModel:Tn}))},$t=function(ne){var fe=ne.className,K=ne.hsva,he=ne.onChange,Fe={backgroundImage:"linear-gradient(90deg, "+z(Object.assign({},K,{a:0}))+", "+z(Object.assign({},K,{a:1}))+")"},Nt=S(["react-colorful__alpha",fe]),ln=O(100*K.a);return l.createElement("div",{className:Nt},l.createElement("div",{className:"react-colorful__alpha-gradient",style:Fe}),l.createElement(m,{onMove:function(pn){he({a:pn.left})},onKey:function(pn){he({a:f(K.a+pn.left)})},"aria-label":"Alpha","aria-valuetext":ln+"%","aria-valuenow":ln,"aria-valuemin":"0","aria-valuemax":"100"},l.createElement(d,{className:"react-colorful__alpha-pointer",left:K.a,color:z(K)})))},Ct=function(ne){var fe=ne.className,K=ne.colorModel,he=ne.color,Fe=he===void 0?K.defaultColor:he,Nt=ne.onChange,ln=y(ne,["className","colorModel","color","onChange"]),pn=(0,l.useRef)(null);Mt(pn);var Yn=tt(K,Fe,Nt),ht=Yn[0],De=Yn[1],we=S(["react-colorful",fe]);return l.createElement("div",g({},ln,{ref:pn,className:we}),l.createElement(ie,{hsva:ht,onChange:De}),l.createElement(ue,{hue:ht.h,onChange:De}),l.createElement($t,{hsva:ht,onChange:De,className:"react-colorful__last-control"}))},Z={defaultColor:"0001",toHsva:C,fromHsva:ee,equal:yt},me=function(ne){return e.createElement(Ct,g({},ne,{colorModel:Z}))},ke={defaultColor:{h:0,s:0,l:0,a:1},toHsva:$,fromHsva:re,equal:Te},Ee=function(ne){return e.createElement(Ct,g({},ne,{colorModel:ke}))},_e={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:I,fromHsva:z,equal:je},ge=function(ne){return e.createElement(Ct,g({},ne,{colorModel:_e}))},Me={defaultColor:{h:0,s:0,l:0},toHsva:function(ne){return $({h:ne.h,s:ne.s,l:ne.l,a:1})},fromHsva:function(ne){return{h:(fe=re(ne)).h,s:fe.s,l:fe.l};var fe},equal:Te},lt=function(ne){return e.createElement(Wt,g({},ne,{colorModel:Me}))},Ft={defaultColor:"hsl(0, 0%, 0%)",toHsva:U,fromHsva:Se,equal:je},Et=function(ne){return e.createElement(Wt,g({},ne,{colorModel:Ft}))},Zt={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(ne){return ne},fromHsva:X,equal:Te},nn=function(ne){return e.createElement(Ct,g({},ne,{colorModel:Zt}))},Pn={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:ce,fromHsva:function(ne){var fe=X(ne);return"hsva("+fe.h+", "+fe.s+"%, "+fe.v+"%, "+fe.a+")"},equal:je},rn=function(ne){return e.createElement(Ct,g({},ne,{colorModel:Pn}))},Vt={defaultColor:{h:0,s:0,v:0},toHsva:function(ne){return{h:ne.h,s:ne.s,v:ne.v,a:1}},fromHsva:function(ne){var fe=X(ne);return{h:fe.h,s:fe.s,v:fe.v}},equal:Te},Kn=function(ne){return e.createElement(Wt,g({},ne,{colorModel:Vt}))},ur={defaultColor:"hsv(0, 0%, 0%)",toHsva:se,fromHsva:function(ne){var fe=X(ne);return"hsv("+fe.h+", "+fe.s+"%, "+fe.v+"%)"},equal:je},on=function(ne){return e.createElement(Wt,g({},ne,{colorModel:ur}))},tr={defaultColor:{r:0,g:0,b:0,a:1},toHsva:B,fromHsva:Q,equal:Te},Cn=function(ne){return e.createElement(Ct,g({},ne,{colorModel:tr}))},Wn={defaultColor:"rgba(0, 0, 0, 1)",toHsva:q,fromHsva:function(ne){var fe=Q(ne);return"rgba("+fe.r+", "+fe.g+", "+fe.b+", "+fe.a+")"},equal:je},er=function(ne){return l.createElement(Ct,g({},ne,{colorModel:Wn}))},Fn={defaultColor:{r:0,g:0,b:0},toHsva:function(ne){return B({r:ne.r,g:ne.g,b:ne.b,a:1})},fromHsva:function(ne){return{r:(fe=Q(ne)).r,g:fe.g,b:fe.b};var fe},equal:Te},en=function(ne){return e.createElement(Wt,g({},ne,{colorModel:Fn}))},gn={defaultColor:"rgb(0, 0, 0)",toHsva:te,fromHsva:function(ne){var fe=Q(ne);return"rgb("+fe.r+", "+fe.g+", "+fe.b+")"},equal:je},kn=function(ne){return e.createElement(Wt,g({},ne,{colorModel:gn}))},Jn=/^#?([0-9A-F]{3,8})$/i,Nn=function(ne){var fe=ne.color,K=fe===void 0?"":fe,he=ne.onChange,Fe=ne.onBlur,Nt=ne.escape,ln=ne.validate,pn=ne.format,Yn=ne.process,ht=y(ne,["color","onChange","onBlur","escape","validate","format","process"]),De=o(function(){return Nt(K)}),we=De[0],Ke=De[1],be=x(he),pt=x(Fe),We=a(function(ye){var Qe=Nt(ye.target.value);Ke(Qe),ln(Qe)&&be(Yn?Yn(Qe):Qe)},[Nt,Yn,ln,be]),Je=a(function(ye){ln(ye.target.value)||Ke(Nt(K)),pt(ye)},[K,Nt,ln,pt]);return n(function(){Ke(Nt(K))},[K,Nt]),e.createElement("input",g({},ht,{value:pn?pn(we):we,spellCheck:"false",onChange:We,onBlur:Je}))},kr=function(ne){return"#"+ne},bt=function(ne){var fe=ne.prefixed,K=ne.alpha,he=y(ne,["prefixed","alpha"]),Fe=a(function(ln){return ln.replace(/([^0-9A-F]+)/gi,"").substring(0,K?8:6)},[K]),Nt=a(function(ln){return function(pn,Yn){var ht=Jn.exec(pn),De=ht?ht[1].length:0;return De===3||De===6||!!Yn&&De===4||!!Yn&&De===8}(ln,K)},[K]);return e.createElement(Nn,g({},he,{escape:Fe,format:fe?kr:void 0,process:kr,validate:Nt}))}},7652:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.argsOrArgArray=void 0;var u=Array.isArray;function l(g){return g.length===1&&u(g[0])?g[0]:g}w.argsOrArgArray=l},7974:(Ge,w,u)=>{"use strict";u.d(w,{$9:()=>L,AZ:()=>O,Hj:()=>$,N5:()=>U,cG:()=>I,i7:()=>d,vH:()=>C});var l=u(97813),g=u(78448),y=u(30313),x=u(78080),f=u(82546),p=u(19853),h=u(68210),E=u(84963),v=["children"];function m(ee,re){return"".concat(ee,"-").concat(re)}function S(ee){return ee&&ee.type&&ee.type.isTreeNode}function d(ee,re){return ee??re}function O(ee){var re=ee||{},Se=re.title,z=re._title,Q=re.key,ce=re.children,se=Se||"title";return{title:se,_title:z||[se],key:Q||"key",children:ce||"children"}}function R(ee,re){var Se=new Map;function z(Q){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Q||[]).forEach(function(se){var q=se[re.key],te=se[re.children];warning(q!=null,"Tree node must have a certain key: [".concat(ce).concat(q,"]"));var A=String(q);warning(!Se.has(A)||q===null||q===void 0,"Same 'key' exist in the Tree: ".concat(A)),Se.set(A,!0),z(te,"".concat(ce).concat(A," > "))})}z(ee)}function C(ee){function re(Se){var z=(0,f.A)(Se);return z.map(function(Q){if(!S(Q))return(0,h.Ay)(!Q,"Tree/TreeNode can only accept TreeNode as children."),null;var ce=Q.key,se=Q.props,q=se.children,te=(0,x.A)(se,v),A=(0,y.A)({key:ce},te),T=re(q);return T.length&&(A.children=T),A}).filter(function(Q){return Q})}return re(ee)}function L(ee,re,Se){var z=O(Se),Q=z._title,ce=z.key,se=z.children,q=new Set(re===!0?[]:re),te=[];function A(T){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(X,ue){for(var ie=m(B?B.pos:"0",ue),Te=d(X[ce],ie),je,yt=0;yt<Q.length;yt+=1){var tt=Q[yt];if(X[tt]!==void 0){je=X[tt];break}}var Ze=Object.assign((0,p.A)(X,[].concat((0,g.A)(Q),[ce,se])),{title:je,key:Te,parent:B,pos:ie,children:null,data:X,isStart:[].concat((0,g.A)(B?B.isStart:[]),[ue===0]),isEnd:[].concat((0,g.A)(B?B.isEnd:[]),[ue===T.length-1])});return te.push(Ze),re===!0||q.has(Te)?Ze.children=A(X[se]||[],Ze):Ze.children=[],Ze})}return A(ee),te}function j(ee,re,Se){var z={};(0,l.A)(Se)==="object"?z=Se:z={externalGetKey:Se},z=z||{};var Q=z,ce=Q.childrenPropName,se=Q.externalGetKey,q=Q.fieldNames,te=O(q),A=te.key,T=te.children,B=ce||T,X;se?typeof se=="string"?X=function(Te){return Te[se]}:typeof se=="function"&&(X=function(Te){return se(Te)}):X=function(Te,je){return d(Te[A],je)};function ue(ie,Te,je,yt){var tt=ie?ie[B]:ee,Ze=ie?m(je.pos,Te):"0",Ne=ie?[].concat((0,g.A)(yt),[ie]):[];if(ie){var it=X(ie,Ze),Rt={node:ie,index:Te,pos:Ze,key:it,parentPos:je.node?je.pos:null,level:je.level+1,nodes:Ne};re(Rt)}tt&&tt.forEach(function(Dn,Mt){ue(Dn,Mt,{node:ie,pos:Ze,level:je?je.level+1:-1},Ne)})}ue(null)}function I(ee){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=re.initWrapper,z=re.processEntity,Q=re.onProcessFinished,ce=re.externalGetKey,se=re.childrenPropName,q=re.fieldNames,te=arguments.length>2?arguments[2]:void 0,A=ce||te,T={},B={},X={posEntities:T,keyEntities:B};return Se&&(X=Se(X)||X),j(ee,function(ue){var ie=ue.node,Te=ue.index,je=ue.pos,yt=ue.key,tt=ue.parentPos,Ze=ue.level,Ne=ue.nodes,it={node:ie,nodes:Ne,index:Te,key:yt,pos:je,level:Ze},Rt=d(yt,je);T[je]=it,B[Rt]=it,it.parent=T[tt],it.parent&&(it.parent.children=it.parent.children||[],it.parent.children.push(it)),z&&z(it,X)},{externalGetKey:A,childrenPropName:se,fieldNames:q}),Q&&Q(X),X}function U(ee,re){var Se=re.expandedKeys,z=re.selectedKeys,Q=re.loadedKeys,ce=re.loadingKeys,se=re.checkedKeys,q=re.halfCheckedKeys,te=re.dragOverNodeKey,A=re.dropPosition,T=re.keyEntities,B=(0,E.A)(T,ee),X={eventKey:ee,expanded:Se.indexOf(ee)!==-1,selected:z.indexOf(ee)!==-1,loaded:Q.indexOf(ee)!==-1,loading:ce.indexOf(ee)!==-1,checked:se.indexOf(ee)!==-1,halfChecked:q.indexOf(ee)!==-1,pos:String(B?B.pos:""),dragOver:te===ee&&A===0,dragOverGapTop:te===ee&&A===-1,dragOverGapBottom:te===ee&&A===1};return X}function $(ee){var re=ee.data,Se=ee.expanded,z=ee.selected,Q=ee.checked,ce=ee.loaded,se=ee.loading,q=ee.halfChecked,te=ee.dragOver,A=ee.dragOverGapTop,T=ee.dragOverGapBottom,B=ee.pos,X=ee.active,ue=ee.eventKey,ie=(0,y.A)((0,y.A)({},re),{},{expanded:Se,selected:z,checked:Q,loaded:ce,loading:se,halfChecked:q,dragOver:te,dragOverGapTop:A,dragOverGapBottom:T,pos:B,active:X,key:ue});return"props"in ie||Object.defineProperty(ie,"props",{get:function(){return(0,h.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),ie}},7985:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(v){for(var m,S=1,d=arguments.length;S<d;S++){m=arguments[S];for(var O in m)Object.prototype.hasOwnProperty.call(m,O)&&(v[O]=m[O])}return v},l.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(v,m,S,d){d===void 0&&(d=S),Object.defineProperty(v,d,{enumerable:!0,get:function(){return m[S]}})}:function(v,m,S,d){d===void 0&&(d=S),v[d]=m[S]}),y=this&&this.__setModuleDefault||(Object.create?function(v,m){Object.defineProperty(v,"default",{enumerable:!0,value:m})}:function(v,m){v.default=m}),x=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var m={};if(v!=null)for(var S in v)S!=="default"&&Object.prototype.hasOwnProperty.call(v,S)&&g(m,v,S);return y(m,v),m},f=this&&this.__rest||function(v,m){var S={};for(var d in v)Object.prototype.hasOwnProperty.call(v,d)&&m.indexOf(d)<0&&(S[d]=v[d]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,d=Object.getOwnPropertySymbols(v);O<d.length;O++)m.indexOf(d[O])<0&&Object.prototype.propertyIsEnumerable.call(v,d[O])&&(S[d[O]]=v[d[O]]);return S};Object.defineProperty(w,"__esModule",{value:!0}),w.KBarPositioner=void 0;var p=x(u(96540)),h={position:"fixed",display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",inset:"0px",padding:"14vh 16px 16px"};function E(v){return v?l(l({},h),v):h}w.KBarPositioner=p.forwardRef(function(v,m){var S=v.style,d=v.children,O=f(v,["style","children"]);return p.createElement("div",l({ref:m,style:E(S)},O),d)})},8100:(Ge,w,u)=>{"use strict";u.d(w,{I:()=>y});const l={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function g(x){return l[x]}const y={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},8284:function(Ge,w){"use strict";var u=this&&this.__read||function(g,y){var x=typeof Symbol=="function"&&g[Symbol.iterator];if(!x)return g;var f=x.call(g),p,h=[],E;try{for(;(y===void 0||y-- >0)&&!(p=f.next()).done;)h.push(p.value)}catch(v){E={error:v}}finally{try{p&&!p.done&&(x=f.return)&&x.call(f)}finally{if(E)throw E.error}}return h},l=this&&this.__spreadArray||function(g,y){for(var x=0,f=y.length,p=g.length;x<f;x++,p++)g[p]=y[x];return g};Object.defineProperty(w,"__esModule",{value:!0}),w.intervalProvider=void 0,w.intervalProvider={setInterval:function(g,y){for(var x=[],f=2;f<arguments.length;f++)x[f-2]=arguments[f];var p=w.intervalProvider.delegate;return p?.setInterval?p.setInterval.apply(p,l([g,y],u(x))):setInterval.apply(void 0,l([g,y],u(x)))},clearInterval:function(g){var y=w.intervalProvider.delegate;return(y?.clearInterval||clearInterval)(g)},delegate:void 0}},8438:(Ge,w,u)=>{"use strict";u.d(w,{C:()=>y,U:()=>x});var l=u(31635),g=u(61209);function y(f){return(0,l.__asyncGenerator)(this,arguments,function(){var h,E,v,m;return(0,l.__generator)(this,function(S){switch(S.label){case 0:h=f.getReader(),S.label=1;case 1:S.trys.push([1,,9,10]),S.label=2;case 2:return[4,(0,l.__await)(h.read())];case 3:return E=S.sent(),v=E.value,m=E.done,m?[4,(0,l.__await)(void 0)]:[3,5];case 4:return[2,S.sent()];case 5:return[4,(0,l.__await)(v)];case 6:return[4,S.sent()];case 7:return S.sent(),[3,2];case 8:return[3,10];case 9:return h.releaseLock(),[7];case 10:return[2]}})})}function x(f){return(0,g.T)(f?.getReader)}},8490:(Ge,w,u)=>{"use strict";u.d(w,{R:()=>p});var l=u(62894),g=u(96540);function y(){let h=(0,g.useRef)(new Map),E=(0,g.useCallback)((S,d,O,R)=>{let C=R?.once?(...L)=>{h.current.delete(O),O(...L)}:O;h.current.set(O,{type:d,eventTarget:S,fn:C,options:R}),S.addEventListener(d,C,R)},[]),v=(0,g.useCallback)((S,d,O,R)=>{var C;let L=((C=h.current.get(O))===null||C===void 0?void 0:C.fn)||O;S.removeEventListener(d,L,R),h.current.delete(O)},[]),m=(0,g.useCallback)(()=>{h.current.forEach((S,d)=>{v(S.eventTarget,S.type,d,S.options)})},[v]);return(0,g.useEffect)(()=>m,[m]),{addGlobalListener:E,removeGlobalListener:v,removeAllGlobalListeners:m}}var x=u(24836),f=u(99672);function p(h){let{isDisabled:E,onBlurWithin:v,onFocusWithin:m,onFocusWithinChange:S}=h,d=(0,g.useRef)({isFocusWithin:!1}),{addGlobalListener:O,removeAllGlobalListeners:R}=y(),C=(0,g.useCallback)(I=>{I.currentTarget.contains(I.target)&&d.current.isFocusWithin&&!I.currentTarget.contains(I.relatedTarget)&&(d.current.isFocusWithin=!1,R(),v&&v(I),S&&S(!1))},[v,S,d,R]),L=(0,l.yB)(C),j=(0,g.useCallback)(I=>{if(!I.currentTarget.contains(I.target))return;const U=(0,x.TW)(I.target),$=(0,f.bq)(U);if(!d.current.isFocusWithin&&$===(0,f.wt)(I.nativeEvent)){m&&m(I),S&&S(!0),d.current.isFocusWithin=!0,L(I);let ee=I.currentTarget;O(U,"focus",re=>{if(d.current.isFocusWithin&&!(0,f.sD)(ee,re.target)){let Se=new U.defaultView.FocusEvent("blur",{relatedTarget:re.target});(0,l.o1)(Se,ee);let z=(0,l.eg)(Se);C(z)}},{capture:!0})}},[m,S,L,O,C]);return E?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:j,onBlur:C}}}},8505:(Ge,w,u)=>{var l=u(9375);Ge.exports=j,Ge.exports.parse=y,Ge.exports.compile=f,Ge.exports.tokensToFunction=E,Ge.exports.tokensToRegExp=L;var g=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function y(I,U){for(var $=[],ee=0,re=0,Se="",z=U&&U.delimiter||"/",Q;(Q=g.exec(I))!=null;){var ce=Q[0],se=Q[1],q=Q.index;if(Se+=I.slice(re,q),re=q+ce.length,se){Se+=se[1];continue}var te=I[re],A=Q[2],T=Q[3],B=Q[4],X=Q[5],ue=Q[6],ie=Q[7];Se&&($.push(Se),Se="");var Te=A!=null&&te!=null&&te!==A,je=ue==="+"||ue==="*",yt=ue==="?"||ue==="*",tt=A||z,Ze=B||X,Ne=A||(typeof $[$.length-1]=="string"?$[$.length-1]:"");$.push({name:T||ee++,prefix:A||"",delimiter:tt,optional:yt,repeat:je,partial:Te,asterisk:!!ie,pattern:Ze?m(Ze):ie?".*":x(tt,Ne)})}return re<I.length&&(Se+=I.substr(re)),Se&&$.push(Se),$}function x(I,U){return!U||U.indexOf(I)>-1?"[^"+v(I)+"]+?":v(U)+"|(?:(?!"+v(U)+")[^"+v(I)+"])+?"}function f(I,U){return E(y(I,U),U)}function p(I){return encodeURI(I).replace(/[\/?#]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})}function h(I){return encodeURI(I).replace(/[?#]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})}function E(I,U){for(var $=new Array(I.length),ee=0;ee<I.length;ee++)typeof I[ee]=="object"&&($[ee]=new RegExp("^(?:"+I[ee].pattern+")$",d(U)));return function(re,Se){for(var z="",Q=re||{},ce=Se||{},se=ce.pretty?p:encodeURIComponent,q=0;q<I.length;q++){var te=I[q];if(typeof te=="string"){z+=te;continue}var A=Q[te.name],T;if(A==null)if(te.optional){te.partial&&(z+=te.prefix);continue}else throw new TypeError('Expected "'+te.name+'" to be defined');if(l(A)){if(!te.repeat)throw new TypeError('Expected "'+te.name+'" to not repeat, but received `'+JSON.stringify(A)+"`");if(A.length===0){if(te.optional)continue;throw new TypeError('Expected "'+te.name+'" to not be empty')}for(var B=0;B<A.length;B++){if(T=se(A[B]),!$[q].test(T))throw new TypeError('Expected all "'+te.name+'" to match "'+te.pattern+'", but received `'+JSON.stringify(T)+"`");z+=(B===0?te.prefix:te.delimiter)+T}continue}if(T=te.asterisk?h(A):se(A),!$[q].test(T))throw new TypeError('Expected "'+te.name+'" to match "'+te.pattern+'", but received "'+T+'"');z+=te.prefix+T}return z}}function v(I){return I.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function m(I){return I.replace(/([=!:$\/()])/g,"\\$1")}function S(I,U){return I.keys=U,I}function d(I){return I&&I.sensitive?"":"i"}function O(I,U){var $=I.source.match(/\((?!\?)/g);if($)for(var ee=0;ee<$.length;ee++)U.push({name:ee,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return S(I,U)}function R(I,U,$){for(var ee=[],re=0;re<I.length;re++)ee.push(j(I[re],U,$).source);var Se=new RegExp("(?:"+ee.join("|")+")",d($));return S(Se,U)}function C(I,U,$){return L(y(I,$),U,$)}function L(I,U,$){l(U)||($=U||$,U=[]),$=$||{};for(var ee=$.strict,re=$.end!==!1,Se="",z=0;z<I.length;z++){var Q=I[z];if(typeof Q=="string")Se+=v(Q);else{var ce=v(Q.prefix),se="(?:"+Q.pattern+")";U.push(Q),Q.repeat&&(se+="(?:"+ce+se+")*"),Q.optional?Q.partial?se=ce+"("+se+")?":se="(?:"+ce+"("+se+"))?":se=ce+"("+se+")",Se+=se}}var q=v($.delimiter||"/"),te=Se.slice(-q.length)===q;return ee||(Se=(te?Se.slice(0,-q.length):Se)+"(?:"+q+"(?=$))?"),re?Se+="$":Se+=ee&&te?"":"(?="+q+"|$)",S(new RegExp("^"+Se,d($)),U)}function j(I,U,$){return l(U)||($=U||$,U=[]),$=$||{},I instanceof RegExp?O(I,U):l(I)?R(I,U,$):C(I,U,$)}},8719:(Ge,w,u)=>{"use strict";u.d(w,{A9:()=>d,K4:()=>h,Xf:()=>p,f3:()=>v,xK:()=>E});var l=u(38314),g=u(96540),y=u(44363),x=u(28104),f=u(76288),p=function(R,C){typeof R=="function"?R(C):(0,l.A)(R)==="object"&&R&&"current"in R&&(R.current=C)},h=function(){for(var R=arguments.length,C=new Array(R),L=0;L<R;L++)C[L]=arguments[L];var j=C.filter(Boolean);return j.length<=1?j[0]:function(I){C.forEach(function(U){p(U,I)})}},E=function(){for(var R=arguments.length,C=new Array(R),L=0;L<R;L++)C[L]=arguments[L];return(0,x.A)(function(){return h.apply(void 0,C)},C,function(j,I){return j.length!==I.length||j.every(function(U,$){return U!==I[$]})})},v=function(R){var C,L;if(!R)return!1;if(m(R)&&R.props.propertyIsEnumerable("ref"))return!0;var j=(0,y.isMemo)(R)?R.type.type:R.type;return!(typeof j=="function"&&!((C=j.prototype)!==null&&C!==void 0&&C.render)&&j.$$typeof!==y.ForwardRef||typeof R=="function"&&!((L=R.prototype)!==null&&L!==void 0&&L.render)&&R.$$typeof!==y.ForwardRef)};function m(O){return(0,g.isValidElement)(O)&&!(0,f.A)(O)}var S=function(R){return m(R)&&v(R)},d=function(R){if(R&&m(R)){var C=R;return C.props.propertyIsEnumerable("ref")?C.props.ref:C.ref}return null}},8772:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>Ze});function l(Ne){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},l(Ne)}function g(Ne,it){if(l(Ne)!="object"||!Ne)return Ne;var Rt=Ne[Symbol.toPrimitive];if(Rt!==void 0){var Dn=Rt.call(Ne,it||"default");if(l(Dn)!="object")return Dn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(it==="string"?String:Number)(Ne)}function y(Ne){var it=g(Ne,"string");return l(it)=="symbol"?it:it+""}function x(Ne,it,Rt){return(it=y(it))in Ne?Object.defineProperty(Ne,it,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):Ne[it]=Rt,Ne}function f(Ne,it){var Rt=Object.keys(Ne);if(Object.getOwnPropertySymbols){var Dn=Object.getOwnPropertySymbols(Ne);it&&(Dn=Dn.filter(function(Mt){return Object.getOwnPropertyDescriptor(Ne,Mt).enumerable})),Rt.push.apply(Rt,Dn)}return Rt}function p(Ne){for(var it=1;it<arguments.length;it++){var Rt=arguments[it]!=null?arguments[it]:{};it%2?f(Object(Rt),!0).forEach(function(Dn){x(Ne,Dn,Rt[Dn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ne,Object.getOwnPropertyDescriptors(Rt)):f(Object(Rt)).forEach(function(Dn){Object.defineProperty(Ne,Dn,Object.getOwnPropertyDescriptor(Rt,Dn))})}return Ne}function h(Ne){if(Array.isArray(Ne))return Ne}function E(Ne,it){var Rt=Ne==null?null:typeof Symbol<"u"&&Ne[Symbol.iterator]||Ne["@@iterator"];if(Rt!=null){var Dn,Mt,Wt,Tn,bn=[],$t=!0,Ct=!1;try{if(Wt=(Rt=Rt.call(Ne)).next,it===0){if(Object(Rt)!==Rt)return;$t=!1}else for(;!($t=(Dn=Wt.call(Rt)).done)&&(bn.push(Dn.value),bn.length!==it);$t=!0);}catch(Z){Ct=!0,Mt=Z}finally{try{if(!$t&&Rt.return!=null&&(Tn=Rt.return(),Object(Tn)!==Tn))return}finally{if(Ct)throw Mt}}return bn}}function v(Ne,it){(it==null||it>Ne.length)&&(it=Ne.length);for(var Rt=0,Dn=Array(it);Rt<it;Rt++)Dn[Rt]=Ne[Rt];return Dn}function m(Ne,it){if(Ne){if(typeof Ne=="string")return v(Ne,it);var Rt={}.toString.call(Ne).slice(8,-1);return Rt==="Object"&&Ne.constructor&&(Rt=Ne.constructor.name),Rt==="Map"||Rt==="Set"?Array.from(Ne):Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt)?v(Ne,it):void 0}}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(Ne,it){return h(Ne)||E(Ne,it)||m(Ne,it)||S()}var O=u(50365),R=u(30981),C=u(96540),L=C.createContext(null),j=C.createContext({});const I=L;function U(){return U=Object.assign?Object.assign.bind():function(Ne){for(var it=1;it<arguments.length;it++){var Rt=arguments[it];for(var Dn in Rt)({}).hasOwnProperty.call(Rt,Dn)&&(Ne[Dn]=Rt[Dn])}return Ne},U.apply(null,arguments)}var $=u(46942),ee=u.n($),re=u(1052),Se=u(16928),z=u(72065);function Q(Ne,it){if(Ne==null)return{};var Rt={};for(var Dn in Ne)if({}.hasOwnProperty.call(Ne,Dn)){if(it.indexOf(Dn)!==-1)continue;Rt[Dn]=Ne[Dn]}return Rt}function ce(Ne,it){if(Ne==null)return{};var Rt,Dn,Mt=Q(Ne,it);if(Object.getOwnPropertySymbols){var Wt=Object.getOwnPropertySymbols(Ne);for(Dn=0;Dn<Wt.length;Dn++)Rt=Wt[Dn],it.indexOf(Rt)===-1&&{}.propertyIsEnumerable.call(Ne,Rt)&&(Mt[Rt]=Ne[Rt])}return Mt}var se=u(8719),q=["prefixCls","className","containerRef"],te=function(it){var Rt=it.prefixCls,Dn=it.className,Mt=it.containerRef,Wt=ce(it,q),Tn=C.useContext(j),bn=Tn.panel,$t=(0,se.xK)(bn,Mt);return C.createElement("div",U({className:ee()("".concat(Rt,"-content"),Dn),role:"dialog",ref:$t},(0,z.A)(it,{aria:!0}),{"aria-modal":"true"},Wt))};const A=te;var T=u(68210);function B(Ne){return typeof Ne=="string"&&String(Number(Ne))===Ne?((0,T.Ay)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ne)):Ne}function X(Ne){warning(!("wrapperClassName"in Ne),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ne.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ue={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ie(Ne,it){var Rt,Dn,Mt,Wt=Ne.prefixCls,Tn=Ne.open,bn=Ne.placement,$t=Ne.inline,Ct=Ne.push,Z=Ne.forceRender,me=Ne.autoFocus,ke=Ne.keyboard,Ee=Ne.classNames,_e=Ne.rootClassName,ge=Ne.rootStyle,Me=Ne.zIndex,lt=Ne.className,Ft=Ne.id,Et=Ne.style,Zt=Ne.motion,nn=Ne.width,Pn=Ne.height,rn=Ne.children,Vt=Ne.mask,Kn=Ne.maskClosable,ur=Ne.maskMotion,on=Ne.maskClassName,tr=Ne.maskStyle,Cn=Ne.afterOpenChange,Wn=Ne.onClose,er=Ne.onMouseEnter,Fn=Ne.onMouseOver,en=Ne.onMouseLeave,gn=Ne.onClick,kn=Ne.onKeyDown,Jn=Ne.onKeyUp,Nn=Ne.styles,kr=Ne.drawerRender,bt=C.useRef(),ne=C.useRef(),fe=C.useRef();C.useImperativeHandle(it,function(){return bt.current});var K=function(Qe){var ze=Qe.keyCode,qe=Qe.shiftKey;switch(ze){case Se.A.TAB:{if(ze===Se.A.TAB){if(!qe&&document.activeElement===fe.current){var Pt;(Pt=ne.current)===null||Pt===void 0||Pt.focus({preventScroll:!0})}else if(qe&&document.activeElement===ne.current){var zt;(zt=fe.current)===null||zt===void 0||zt.focus({preventScroll:!0})}}break}case Se.A.ESC:{Wn&&ke&&(Qe.stopPropagation(),Wn(Qe));break}}};C.useEffect(function(){if(Tn&&me){var ye;(ye=bt.current)===null||ye===void 0||ye.focus({preventScroll:!0})}},[Tn]);var he=C.useState(!1),Fe=d(he,2),Nt=Fe[0],ln=Fe[1],pn=C.useContext(I),Yn;typeof Ct=="boolean"?Yn=Ct?{}:{distance:0}:Yn=Ct||{};var ht=(Rt=(Dn=(Mt=Yn)===null||Mt===void 0?void 0:Mt.distance)!==null&&Dn!==void 0?Dn:pn?.pushDistance)!==null&&Rt!==void 0?Rt:180,De=C.useMemo(function(){return{pushDistance:ht,push:function(){ln(!0)},pull:function(){ln(!1)}}},[ht]);C.useEffect(function(){if(Tn){var ye;pn==null||(ye=pn.push)===null||ye===void 0||ye.call(pn)}else{var Qe;pn==null||(Qe=pn.pull)===null||Qe===void 0||Qe.call(pn)}},[Tn]),C.useEffect(function(){return function(){var ye;pn==null||(ye=pn.pull)===null||ye===void 0||ye.call(pn)}},[]);var we=C.createElement(re.A,U({key:"mask"},ur,{visible:Vt&&Tn}),function(ye,Qe){var ze=ye.className,qe=ye.style;return C.createElement("div",{className:ee()("".concat(Wt,"-mask"),ze,Ee?.mask,on),style:p(p(p({},qe),tr),Nn?.mask),onClick:Kn&&Tn?Wn:void 0,ref:Qe})}),Ke=typeof Zt=="function"?Zt(bn):Zt,be={};if(Nt&&ht)switch(bn){case"top":be.transform="translateY(".concat(ht,"px)");break;case"bottom":be.transform="translateY(".concat(-ht,"px)");break;case"left":be.transform="translateX(".concat(ht,"px)");break;default:be.transform="translateX(".concat(-ht,"px)");break}bn==="left"||bn==="right"?be.width=B(nn):be.height=B(Pn);var pt={onMouseEnter:er,onMouseOver:Fn,onMouseLeave:en,onClick:gn,onKeyDown:kn,onKeyUp:Jn},We=C.createElement(re.A,U({key:"panel"},Ke,{visible:Tn,forceRender:Z,onVisibleChanged:function(Qe){Cn?.(Qe)},removeOnLeave:!1,leavedClassName:"".concat(Wt,"-content-wrapper-hidden")}),function(ye,Qe){var ze=ye.className,qe=ye.style,Pt=C.createElement(A,U({id:Ft,containerRef:Qe,prefixCls:Wt,className:ee()(lt,Ee?.content),style:p(p({},Et),Nn?.content)},(0,z.A)(Ne,{aria:!0}),pt),rn);return C.createElement("div",U({className:ee()("".concat(Wt,"-content-wrapper"),Ee?.wrapper,ze),style:p(p(p({},be),qe),Nn?.wrapper)},(0,z.A)(Ne,{data:!0})),kr?kr(Pt):Pt)}),Je=p({},ge);return Me&&(Je.zIndex=Me),C.createElement(I.Provider,{value:De},C.createElement("div",{className:ee()(Wt,"".concat(Wt,"-").concat(bn),_e,x(x({},"".concat(Wt,"-open"),Tn),"".concat(Wt,"-inline"),$t)),style:Je,tabIndex:-1,ref:bt,onKeyDown:K},we,C.createElement("div",{tabIndex:0,ref:ne,style:ue,"aria-hidden":"true","data-sentinel":"start"}),We,C.createElement("div",{tabIndex:0,ref:fe,style:ue,"aria-hidden":"true","data-sentinel":"end"})))}var Te=C.forwardRef(ie);const je=Te;var yt=function(it){var Rt=it.open,Dn=Rt===void 0?!1:Rt,Mt=it.prefixCls,Wt=Mt===void 0?"rc-drawer":Mt,Tn=it.placement,bn=Tn===void 0?"right":Tn,$t=it.autoFocus,Ct=$t===void 0?!0:$t,Z=it.keyboard,me=Z===void 0?!0:Z,ke=it.width,Ee=ke===void 0?378:ke,_e=it.mask,ge=_e===void 0?!0:_e,Me=it.maskClosable,lt=Me===void 0?!0:Me,Ft=it.getContainer,Et=it.forceRender,Zt=it.afterOpenChange,nn=it.destroyOnClose,Pn=it.onMouseEnter,rn=it.onMouseOver,Vt=it.onMouseLeave,Kn=it.onClick,ur=it.onKeyDown,on=it.onKeyUp,tr=it.panelRef,Cn=C.useState(!1),Wn=d(Cn,2),er=Wn[0],Fn=Wn[1],en=C.useState(!1),gn=d(en,2),kn=gn[0],Jn=gn[1];(0,R.A)(function(){Jn(!0)},[]);var Nn=kn?Dn:!1,kr=C.useRef(),bt=C.useRef();(0,R.A)(function(){Nn&&(bt.current=document.activeElement)},[Nn]);var ne=function(Nt){var ln;if(Fn(Nt),Zt?.(Nt),!Nt&&bt.current&&!((ln=kr.current)!==null&&ln!==void 0&&ln.contains(bt.current))){var pn;(pn=bt.current)===null||pn===void 0||pn.focus({preventScroll:!0})}},fe=C.useMemo(function(){return{panel:tr}},[tr]);if(!Et&&!er&&!Nn&&nn)return null;var K={onMouseEnter:Pn,onMouseOver:rn,onMouseLeave:Vt,onClick:Kn,onKeyDown:ur,onKeyUp:on},he=p(p({},it),{},{open:Nn,prefixCls:Wt,placement:bn,autoFocus:Ct,keyboard:me,width:Ee,mask:ge,maskClosable:lt,inline:Ft===!1,afterOpenChange:ne,ref:kr},K);return C.createElement(j.Provider,{value:fe},C.createElement(O.A,{open:Nn||Et||er,autoDestroy:!1,getContainer:Ft,autoLock:ge&&(Nn||er)},C.createElement(je,he)))};const Ze=yt},9084:(Ge,w,u)=>{"use strict";u.d(w,{$:()=>x});var l=u(71030),g=u(92908),y=function(f,p){return f.push(p),f};function x(){return(0,g.N)(function(f,p){(0,l.T)(y,[])(f).subscribe(p)})}},9175:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});function l(g,y){(y==null||y>g.length)&&(y=g.length);for(var x=0,f=Array(y);x<y;x++)f[x]=g[x];return f}},9330:function(Ge,w,u){"use strict";var l=this&&this.__read||function(E,v){var m=typeof Symbol=="function"&&E[Symbol.iterator];if(!m)return E;var S=m.call(E),d,O=[],R;try{for(;(v===void 0||v-- >0)&&!(d=S.next()).done;)O.push(d.value)}catch(C){R={error:C}}finally{try{d&&!d.done&&(m=S.return)&&m.call(S)}finally{if(R)throw R.error}}return O},g=this&&this.__spreadArray||function(E,v){for(var m=0,S=v.length,d=E.length;m<S;m++,d++)E[d]=v[m];return E};Object.defineProperty(w,"__esModule",{value:!0}),w.merge=void 0;var y=u(65212),x=u(68087),f=u(26404),p=u(47058);function h(){for(var E=[],v=0;v<arguments.length;v++)E[v]=arguments[v];var m=f.popScheduler(E),S=f.popNumber(E,1/0);return y.operate(function(d,O){x.mergeAll(S)(p.from(g([d],l(E)),m)).subscribe(O)})}w.merge=h},9375:Ge=>{Ge.exports=Array.isArray||function(w){return Object.prototype.toString.call(w)=="[object Array]"}},9423:(Ge,w,u)=>{"use strict";function l(f){var p,h=f.Symbol;if(typeof h=="function")if(h.observable)p=h.observable;else{typeof h.for=="function"?p=h.for("https://github.com/benlesh/symbol-observable"):p=h("https://github.com/benlesh/symbol-observable");try{h.observable=p}catch{}}else p="@@observable";return p}Ge=u.hmd(Ge);var g;typeof self<"u"?g=self:typeof window<"u"?g=window:typeof u.g<"u"?g=u.g:g=Ge;var y=l(g);const x=null},9438:(Ge,w,u)=>{"use strict";u.d(w,{JH:()=>x,Jz:()=>y,KT:()=>g});var l=u(43530);function g(f,p,h,E,v){if(v){const S=h;h=function(d){return f.removeEventListener(p,h),S.call(E??this,d)}}else E&&E!==f&&(h=h.bind(E));const m={target:f,type:p,listener:h};return f.addEventListener(p,h),m}function y(f,p,h,E){return g(f,p,h,E,!0)}function x(f){f&&f.target&&(f.target.removeEventListener(f.type,f.listener),(0,l.I)(f))}},9455:(Ge,w)=>{"use strict";w.__esModule=!0,w.default=function(u,l){if(u&&l){var g=Array.isArray(l)?l:l.split(",");if(g.length===0)return!0;var y=u.name||"",x=(u.type||"").toLowerCase(),f=x.replace(/\/.*$/,"");return g.some(function(p){var h=p.trim().toLowerCase();return h.charAt(0)==="."?y.toLowerCase().endsWith(h):h.endsWith("/*")?f===h.replace(/\/.*$/,""):x===h})}return!0}},9594:(Ge,w,u)=>{"use strict";u.d(w,{$J:()=>v,RE:()=>p,cw:()=>ce,hT:()=>Vt,l0:()=>er,m7:()=>Yn});var l=u(14644),g=u(74070),y=u(1932),x=u(25508),f=u(60466),p=(De=>(De.uninitialized="uninitialized",De.pending="pending",De.fulfilled="fulfilled",De.rejected="rejected",De))(p||{});function h(De){return{status:De,isUninitialized:De==="uninitialized",isLoading:De==="pending",isSuccess:De==="fulfilled",isError:De==="rejected"}}var E=l.isPlainObject;function v(De,we){if(De===we||!(E(De)&&E(we)||Array.isArray(De)&&Array.isArray(we)))return we;const Ke=Object.keys(we),be=Object.keys(De);let pt=Ke.length===be.length;const We=Array.isArray(we)?[]:{};for(const Je of Ke)We[Je]=v(De[Je],we[Je]),pt&&(pt=De[Je]===We[Je]);return pt?De:We}var m=De=>[].concat(...De);function S(De){return new RegExp("(^|:)//").test(De)}function d(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function O(De){return De!=null}function R(De){return[...De?.values()??[]].filter(O)}function C(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var L=De=>De.replace(/\/$/,""),j=De=>De.replace(/^\//,"");function I(De,we){if(!De)return we;if(!we)return De;if(S(we))return we;const Ke=De.endsWith("/")||!we.startsWith("?")?"/":"";return De=L(De),we=j(we),`${De}${Ke}${we}`}function U(De,we,Ke){return De.has(we)?De.get(we):De.set(we,Ke(we)).get(we)}var $=()=>new Map,ee=(...De)=>fetch(...De),re=De=>De.status>=200&&De.status<=299,Se=De=>/ion\/(vnd\.api\+)?json/.test(De.get("content-type")||"");function z(De){if(!(0,l.isPlainObject)(De))return De;const we={...De};for(const[Ke,be]of Object.entries(we))be===void 0&&delete we[Ke];return we}var Q=De=>typeof De=="object"&&((0,l.isPlainObject)(De)||Array.isArray(De)||typeof De.toJSON=="function");function ce({baseUrl:De,prepareHeaders:we=Pt=>Pt,fetchFn:Ke=ee,paramsSerializer:be,isJsonContentType:pt=Se,jsonContentType:We="application/json",jsonReplacer:Je,timeout:ye,responseHandler:Qe,validateStatus:ze,...qe}={}){return typeof fetch>"u"&&Ke===ee&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(zt,un,hn)=>{const{getState:xt,extra:_t,endpoint:qt,forced:fn,type:On}=un;let Gn,{url:Bn,headers:Lr=new Headers(qe.headers),params:An=void 0,responseHandler:Un=Qe??"json",validateStatus:cr=ze??re,timeout:mr=ye,...hr}=typeof zt=="string"?{url:zt}:zt,ar,Cr=un.signal;mr&&(ar=new AbortController,un.signal.addEventListener("abort",ar.abort),Cr=ar.signal);let Yr={...qe,signal:Cr,...hr};Lr=new Headers(z(Lr)),Yr.headers=await we(Lr,{getState:xt,arg:zt,extra:_t,endpoint:qt,forced:fn,type:On,extraOptions:hn})||Lr;const Xr=Q(Yr.body);if(Yr.body!=null&&!Xr&&typeof Yr.body!="string"&&Yr.headers.delete("content-type"),!Yr.headers.has("content-type")&&Xr&&Yr.headers.set("content-type",We),Xr&&pt(Yr.headers)&&(Yr.body=JSON.stringify(Yr.body,Je)),Yr.headers.has("accept")||(Un==="json"?Yr.headers.set("accept","application/json"):Un==="text"&&Yr.headers.set("accept","text/plain, text/html, */*")),An){const Be=~Bn.indexOf("?")?"&":"?",wn=be?be(An):new URLSearchParams(z(An));Bn+=Be+wn}Bn=I(De,Bn);const ni=new Request(Bn,Yr);Gn={request:new Request(Bn,Yr)};let zr,Ur=!1,jt=ar&&setTimeout(()=>{Ur=!0,ar.abort()},mr);try{zr=await Ke(ni)}catch(Be){return{error:{status:Ur?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Be)},meta:Gn}}finally{jt&&clearTimeout(jt),ar?.signal.removeEventListener("abort",ar.abort)}const sn=zr.clone();Gn.response=sn;let Rn,H="";try{let Be;if(await Promise.all([Pt(zr,Un).then(wn=>Rn=wn,wn=>Be=wn),sn.text().then(wn=>H=wn,()=>{})]),Be)throw Be}catch(Be){return{error:{status:"PARSING_ERROR",originalStatus:zr.status,data:H,error:String(Be)},meta:Gn}}return cr(zr,Rn)?{data:Rn,meta:Gn}:{error:{status:zr.status,data:Rn},meta:Gn}};async function Pt(zt,un){if(typeof un=="function")return un(zt);if(un==="content-type"&&(un=pt(zt.headers)?"json":"text"),un==="json"){const hn=await zt.text();return hn.length?JSON.parse(hn):null}return zt.text()}}var se=class{constructor(De,we=void 0){this.value=De,this.meta=we}};async function q(De=0,we=5,Ke){const be=Math.min(De,we),pt=~~((Math.random()+.4)*(300<<be));await new Promise((We,Je)=>{const ye=setTimeout(()=>We(),pt);if(Ke){const Qe=()=>{clearTimeout(ye),Je(new Error("Aborted"))};Ke.aborted?(clearTimeout(ye),Je(new Error("Aborted"))):Ke.addEventListener("abort",Qe,{once:!0})}})}function te(De,we){throw Object.assign(new se({error:De,meta:we}),{throwImmediately:!0})}function A(De){De.aborted&&te({status:"CUSTOM_ERROR",error:"Aborted"})}var T={},B=(De,we)=>async(Ke,be,pt)=>{const We=[5,(we||T).maxRetries,(pt||T).maxRetries].filter(qe=>qe!==void 0),[Je]=We.slice(-1),Qe={maxRetries:Je,backoff:q,retryCondition:(qe,Pt,{attempt:zt})=>zt<=Je,...we,...pt};let ze=0;for(;;){A(be.signal);try{const qe=await De(Ke,be,pt);if(qe.error)throw new se(qe);return qe}catch(qe){if(ze++,qe.throwImmediately){if(qe instanceof se)return qe.value;throw qe}if(qe instanceof se){if(!Qe.retryCondition(qe.value.error,Ke,{attempt:ze,baseQueryApi:be,extraOptions:pt}))return qe.value}else if(ze>Qe.maxRetries)return{error:qe};A(be.signal);try{await Qe.backoff(ze,Qe.maxRetries,be.signal)}catch(Pt){throw A(be.signal),Pt}}}},X=Object.assign(B,{fail:te}),ue=(0,g.VP)("__rtkq/focused"),ie=(0,g.VP)("__rtkq/unfocused"),Te=(0,g.VP)("__rtkq/online"),je=(0,g.VP)("__rtkq/offline"),yt=!1;function tt(De,we){function Ke(){const be=()=>De(ue()),pt=()=>De(ie()),We=()=>De(Te()),Je=()=>De(je()),ye=()=>{window.document.visibilityState==="visible"?be():pt()};return yt||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",ye,!1),window.addEventListener("focus",be,!1),window.addEventListener("online",We,!1),window.addEventListener("offline",Je,!1),yt=!0),()=>{window.removeEventListener("focus",be),window.removeEventListener("visibilitychange",ye),window.removeEventListener("online",We),window.removeEventListener("offline",Je),yt=!1}}return we?we(De,{onFocus:ue,onFocusLost:ie,onOffline:je,onOnline:Te}):Ke()}function Ze(De){return De.type==="query"}function Ne(De){return De.type==="mutation"}function it(De){return De.type==="infinitequery"}function Rt(De){return Ze(De)||it(De)}function Dn(De,we,Ke,be,pt,We){return Mt(De)?De(we,Ke,be,pt).filter(O).map(Wt).map(We):Array.isArray(De)?De.map(Wt).map(We):[]}function Mt(De){return typeof De=="function"}function Wt(De){return typeof De=="string"?{type:De}:De}function Tn(De,we){return De.catch(we)}var bn=Symbol("forceQueryFn"),$t=De=>typeof De[bn]=="function";function Ct({serializeQueryArgs:De,queryThunk:we,infiniteQueryThunk:Ke,mutationThunk:be,api:pt,context:We,getInternalState:Je}){const ye=Bn=>Je(Bn)?.runningQueries,Qe=Bn=>Je(Bn)?.runningMutations,{unsubscribeQueryResult:ze,removeMutationResult:qe,updateSubscriptionOptions:Pt}=pt.internalActions;return{buildInitiateQuery:fn,buildInitiateInfiniteQuery:On,buildInitiateMutation:Gn,getRunningQueryThunk:zt,getRunningMutationThunk:un,getRunningQueriesThunk:hn,getRunningMutationsThunk:xt};function zt(Bn,Lr){return An=>{const Un=We.endpointDefinitions[Bn],cr=De({queryArgs:Lr,endpointDefinition:Un,endpointName:Bn});return ye(An)?.get(cr)}}function un(Bn,Lr){return An=>Qe(An)?.get(Lr)}function hn(){return Bn=>R(ye(Bn))}function xt(){return Bn=>R(Qe(Bn))}function _t(Bn){}function qt(Bn,Lr){const An=(Un,{subscribe:cr=!0,forceRefetch:mr,subscriptionOptions:hr,[bn]:ar,...Cr}={})=>(Yr,Xr)=>{const ni=De({queryArgs:Un,endpointDefinition:Lr,endpointName:Bn});let ki;const zr={...Cr,type:"query",subscribe:cr,forceRefetch:mr,subscriptionOptions:hr,endpointName:Bn,originalArgs:Un,queryCacheKey:ni,[bn]:ar};if(Ze(Lr))ki=we(zr);else{const{direction:de,initialPageParam:Ve}=Cr;ki=Ke({...zr,direction:de,initialPageParam:Ve})}const Ur=pt.endpoints[Bn].select(Un),jt=Yr(ki),sn=Ur(Xr());const{requestId:Rn,abort:H}=jt,Be=sn.requestId!==Rn,wn=ye(Yr)?.get(ni),bi=()=>Ur(Xr()),Oi=Object.assign(ar?jt.then(bi):Be&&!wn?Promise.resolve(sn):Promise.all([wn,jt]).then(bi),{arg:Un,requestId:Rn,subscriptionOptions:hr,queryCacheKey:ni,abort:H,async unwrap(){const de=await Oi;if(de.isError)throw de.error;return de.data},refetch:()=>Yr(An(Un,{subscribe:!1,forceRefetch:!0})),unsubscribe(){cr&&Yr(ze({queryCacheKey:ni,requestId:Rn}))},updateSubscriptionOptions(de){Oi.subscriptionOptions=de,Yr(Pt({endpointName:Bn,requestId:Rn,queryCacheKey:ni,options:de}))}});if(!wn&&!Be&&!ar){const de=ye(Yr);de.set(ni,Oi),Oi.then(()=>{de.delete(ni)})}return Oi};return An}function fn(Bn,Lr){return qt(Bn,Lr)}function On(Bn,Lr){return qt(Bn,Lr)}function Gn(Bn){return(Lr,{track:An=!0,fixedCacheKey:Un}={})=>(cr,mr)=>{const hr=be({type:"mutation",endpointName:Bn,originalArgs:Lr,track:An,fixedCacheKey:Un}),ar=cr(hr);const{requestId:Cr,abort:Yr,unwrap:Xr}=ar,ni=Tn(ar.unwrap().then(jt=>({data:jt})),jt=>({error:jt})),ki=()=>{cr(qe({requestId:Cr,fixedCacheKey:Un}))},zr=Object.assign(ni,{arg:ar.arg,requestId:Cr,abort:Yr,unwrap:Xr,reset:ki}),Ur=Qe(cr);return Ur.set(Cr,zr),zr.then(()=>{Ur.delete(Cr)}),Un&&(Ur.set(Un,zr),zr.then(()=>{Ur.get(Un)===zr&&Ur.delete(Un)})),zr}}}var Z=class extends f.A{constructor(De,we,Ke,be){super(De),this.value=we,this.schemaName=Ke,this._bqMeta=be}},me=(De,we)=>Array.isArray(De)?De.includes(we):!!De;async function ke(De,we,Ke,be){const pt=await De["~standard"].validate(we);if(pt.issues)throw new Z(pt.issues,we,Ke,be);return pt.value}function Ee(De){return De}var _e=(De={})=>({...De,[g.cN]:!0});function ge({reducerPath:De,baseQuery:we,context:{endpointDefinitions:Ke},serializeQueryArgs:be,api:pt,assertTagType:We,selectors:Je,onSchemaFailure:ye,catchSchemaFailure:Qe,skipSchemaValidation:ze}){const qe=(hr,ar,Cr,Yr)=>(Xr,ni)=>{const ki=Ke[hr],zr=be({queryArgs:ar,endpointDefinition:ki,endpointName:hr});if(Xr(pt.internalActions.queryResultPatched({queryCacheKey:zr,patches:Cr})),!Yr)return;const Ur=pt.endpoints[hr].select(ar)(ni()),jt=Dn(ki.providesTags,Ur.data,void 0,ar,{},We);Xr(pt.internalActions.updateProvidedBy([{queryCacheKey:zr,providedTags:jt}]))};function Pt(hr,ar,Cr=0){const Yr=[ar,...hr];return Cr&&Yr.length>Cr?Yr.slice(0,-1):Yr}function zt(hr,ar,Cr=0){const Yr=[...hr,ar];return Cr&&Yr.length>Cr?Yr.slice(1):Yr}const un=(hr,ar,Cr,Yr=!0)=>(Xr,ni)=>{const zr=pt.endpoints[hr].select(ar)(ni()),Ur={patches:[],inversePatches:[],undo:()=>Xr(pt.util.patchQueryData(hr,ar,Ur.inversePatches,Yr))};if(zr.status==="uninitialized")return Ur;let jt;if("data"in zr)if((0,y.a6)(zr.data)){const[sn,Rn,H]=(0,y.vI)(zr.data,Cr);Ur.patches.push(...Rn),Ur.inversePatches.push(...H),jt=sn}else jt=Cr(zr.data),Ur.patches.push({op:"replace",path:[],value:jt}),Ur.inversePatches.push({op:"replace",path:[],value:zr.data});return Ur.patches.length===0||Xr(pt.util.patchQueryData(hr,ar,Ur.patches,Yr)),Ur},hn=(hr,ar,Cr)=>Yr=>Yr(pt.endpoints[hr].initiate(ar,{subscribe:!1,forceRefetch:!0,[bn]:()=>({data:Cr})})),xt=(hr,ar)=>hr.query&&hr[ar]?hr[ar]:Ee,_t=async(hr,{signal:ar,abort:Cr,rejectWithValue:Yr,fulfillWithValue:Xr,dispatch:ni,getState:ki,extra:zr})=>{const Ur=Ke[hr.endpointName],{metaSchema:jt,skipSchemaValidation:sn=ze}=Ur;try{let Rn=Ee;const H={signal:ar,abort:Cr,dispatch:ni,getState:ki,extra:zr,endpoint:hr.endpointName,type:hr.type,forced:hr.type==="query"?qt(hr,ki()):void 0,queryCacheKey:hr.type==="query"?hr.queryCacheKey:void 0},Be=hr.type==="query"?hr[bn]:void 0;let wn;const bi=async(de,Ve,vt,Qt)=>{if(Ve==null&&de.pages.length)return Promise.resolve({data:de});const nt={queryArg:hr.originalArgs,pageParam:Ve},Tt=await Oi(nt),Gt=Qt?Pt:zt;return{data:{pages:Gt(de.pages,Tt.data,vt),pageParams:Gt(de.pageParams,Ve,vt)},meta:Tt.meta}};async function Oi(de){let Ve;const{extraOptions:vt,argSchema:Qt,rawResponseSchema:nt,responseSchema:Tt}=Ur;if(Qt&&!me(sn,"arg")&&(de=await ke(Qt,de,"argSchema",{})),Be?Ve=Be():Ur.query?(Rn=xt(Ur,"transformResponse"),Ve=await we(Ur.query(de),H,vt)):Ve=await Ur.queryFn(de,H,vt,Qn=>we(Qn,H,vt)),typeof process<"u",Ve.error)throw new se(Ve.error,Ve.meta);let{data:Gt}=Ve;nt&&!me(sn,"rawResponse")&&(Gt=await ke(nt,Ve.data,"rawResponseSchema",Ve.meta));let En=await Rn(Gt,Ve.meta,de);return Tt&&!me(sn,"response")&&(En=await ke(Tt,En,"responseSchema",Ve.meta)),{...Ve,data:En}}if(hr.type==="query"&&"infiniteQueryOptions"in Ur){const{infiniteQueryOptions:de}=Ur,{maxPages:Ve=1/0}=de;let vt;const Qt={pages:[],pageParams:[]},nt=Je.selectQueryEntry(ki(),hr.queryCacheKey)?.data,Gt=qt(hr,ki())&&!hr.direction||!nt?Qt:nt;if("direction"in hr&&hr.direction&&Gt.pages.length){const En=hr.direction==="backward",Or=(En?lt:Me)(de,Gt,hr.originalArgs);vt=await bi(Gt,Or,Ve,En)}else{const{initialPageParam:En=de.initialPageParam}=hr,Qn=nt?.pageParams??[],Or=Qn[0]??En,Pr=Qn.length;vt=await bi(Gt,Or,Ve),Be&&(vt={data:vt.data.pages[0]});for(let ai=1;ai<Pr;ai++){const xi=Me(de,vt.data,hr.originalArgs);vt=await bi(vt.data,xi,Ve)}}wn=vt}else wn=await Oi(hr.originalArgs);return jt&&!me(sn,"meta")&&wn.meta&&(wn.meta=await ke(jt,wn.meta,"metaSchema",wn.meta)),Xr(wn.data,_e({fulfilledTimeStamp:Date.now(),baseQueryMeta:wn.meta}))}catch(Rn){let H=Rn;if(H instanceof se){let Be=xt(Ur,"transformErrorResponse");const{rawErrorResponseSchema:wn,errorResponseSchema:bi}=Ur;let{value:Oi,meta:de}=H;try{wn&&!me(sn,"rawErrorResponse")&&(Oi=await ke(wn,Oi,"rawErrorResponseSchema",de)),jt&&!me(sn,"meta")&&(de=await ke(jt,de,"metaSchema",de));let Ve=await Be(Oi,de,hr.originalArgs);return bi&&!me(sn,"errorResponse")&&(Ve=await ke(bi,Ve,"errorResponseSchema",de)),Yr(Ve,_e({baseQueryMeta:de}))}catch(Ve){H=Ve}}try{if(H instanceof Z){const Be={endpoint:hr.endpointName,arg:hr.originalArgs,type:hr.type,queryCacheKey:hr.type==="query"?hr.queryCacheKey:void 0};Ur.onSchemaFailure?.(H,Be),ye?.(H,Be);const{catchSchemaFailure:wn=Qe}=Ur;if(wn)return Yr(wn(H,Be),_e({baseQueryMeta:H._bqMeta}))}}catch(Be){H=Be}throw typeof process<"u",console.error(H),H}};function qt(hr,ar){const Cr=Je.selectQueryEntry(ar,hr.queryCacheKey),Yr=Je.selectConfig(ar).refetchOnMountOrArgChange,Xr=Cr?.fulfilledTimeStamp,ni=hr.forceRefetch??(hr.subscribe&&Yr);return ni?ni===!0||(Number(new Date)-Number(Xr))/1e3>=ni:!1}const fn=()=>(0,g.zD)(`${De}/executeQuery`,_t,{getPendingMeta({arg:ar}){const Cr=Ke[ar.endpointName];return _e({startedTimeStamp:Date.now(),...it(Cr)?{direction:ar.direction}:{}})},condition(ar,{getState:Cr}){const Yr=Cr(),Xr=Je.selectQueryEntry(Yr,ar.queryCacheKey),ni=Xr?.fulfilledTimeStamp,ki=ar.originalArgs,zr=Xr?.originalArgs,Ur=Ke[ar.endpointName],jt=ar.direction;return $t(ar)?!0:Xr?.status==="pending"?!1:qt(ar,Yr)||Ze(Ur)&&Ur?.forceRefetch?.({currentArg:ki,previousArg:zr,endpointState:Xr,state:Yr})?!0:!(ni&&!jt)},dispatchConditionRejection:!0}),On=fn(),Gn=fn(),Bn=(0,g.zD)(`${De}/executeMutation`,_t,{getPendingMeta(){return _e({startedTimeStamp:Date.now()})}}),Lr=hr=>"force"in hr,An=hr=>"ifOlderThan"in hr,Un=(hr,ar,Cr={})=>(Yr,Xr)=>{const ni=Lr(Cr)&&Cr.force,ki=An(Cr)&&Cr.ifOlderThan,zr=(jt=!0)=>{const sn={forceRefetch:jt,subscribe:!1};return pt.endpoints[hr].initiate(ar,sn)},Ur=pt.endpoints[hr].select(ar)(Xr());if(ni)Yr(zr());else if(ki){const jt=Ur?.fulfilledTimeStamp;if(!jt){Yr(zr());return}(Number(new Date)-Number(new Date(jt)))/1e3>=ki&&Yr(zr())}else Yr(zr(!1))};function cr(hr){return ar=>ar?.meta?.arg?.endpointName===hr}function mr(hr,ar){return{matchPending:(0,g.f$)((0,g.mm)(hr),cr(ar)),matchFulfilled:(0,g.f$)((0,g.sf)(hr),cr(ar)),matchRejected:(0,g.f$)((0,g.TK)(hr),cr(ar))}}return{queryThunk:On,mutationThunk:Bn,infiniteQueryThunk:Gn,prefetch:Un,updateQueryData:un,upsertQueryData:hn,patchQueryData:qe,buildMatchThunkActions:mr}}function Me(De,{pages:we,pageParams:Ke},be){const pt=we.length-1;return De.getNextPageParam(we[pt],we,Ke[pt],Ke,be)}function lt(De,{pages:we,pageParams:Ke},be){return De.getPreviousPageParam?.(we[0],we,Ke[0],Ke,be)}function Ft(De,we,Ke,be){return Dn(Ke[De.meta.arg.endpointName][we],(0,g.sf)(De)?De.payload:void 0,(0,g.WA)(De)?De.payload:void 0,De.meta.arg.originalArgs,"baseQueryMeta"in De.meta?De.meta.baseQueryMeta:void 0,be)}function Et(De,we,Ke){const be=De[we];be&&Ke(be)}function Zt(De){return("arg"in De?De.arg.fixedCacheKey:De.fixedCacheKey)??De.requestId}function nn(De,we,Ke){const be=De[Zt(we)];be&&Ke(be)}var Pn={};function rn({reducerPath:De,queryThunk:we,mutationThunk:Ke,serializeQueryArgs:be,context:{endpointDefinitions:pt,apiUid:We,extractRehydrationInfo:Je,hasRehydrationInfo:ye},assertTagType:Qe,config:ze}){const qe=(0,g.VP)(`${De}/resetApiState`);function Pt(cr,mr,hr,ar){cr[mr.queryCacheKey]??={status:"uninitialized",endpointName:mr.endpointName},Et(cr,mr.queryCacheKey,Cr=>{Cr.status="pending",Cr.requestId=hr&&Cr.requestId?Cr.requestId:ar.requestId,mr.originalArgs!==void 0&&(Cr.originalArgs=mr.originalArgs),Cr.startedTimeStamp=ar.startedTimeStamp;const Yr=pt[ar.arg.endpointName];it(Yr)&&"direction"in mr&&(Cr.direction=mr.direction)})}function zt(cr,mr,hr,ar){Et(cr,mr.arg.queryCacheKey,Cr=>{if(Cr.requestId!==mr.requestId&&!ar)return;const{merge:Yr}=pt[mr.arg.endpointName];if(Cr.status="fulfilled",Yr)if(Cr.data!==void 0){const{fulfilledTimeStamp:Xr,arg:ni,baseQueryMeta:ki,requestId:zr}=mr;let Ur=(0,y.jM)(Cr.data,jt=>Yr(jt,hr,{arg:ni.originalArgs,baseQueryMeta:ki,fulfilledTimeStamp:Xr,requestId:zr}));Cr.data=Ur}else Cr.data=hr;else Cr.data=pt[mr.arg.endpointName].structuralSharing??!0?v((0,y.Qx)(Cr.data)?(0,y.c2)(Cr.data):Cr.data,hr):hr;delete Cr.error,Cr.fulfilledTimeStamp=mr.fulfilledTimeStamp})}const un=(0,g.Z0)({name:`${De}/queries`,initialState:Pn,reducers:{removeQueryResult:{reducer(cr,{payload:{queryCacheKey:mr}}){delete cr[mr]},prepare:(0,g.aA)()},cacheEntriesUpserted:{reducer(cr,mr){for(const hr of mr.payload){const{queryDescription:ar,value:Cr}=hr;Pt(cr,ar,!0,{arg:ar,requestId:mr.meta.requestId,startedTimeStamp:mr.meta.timestamp}),zt(cr,{arg:ar,requestId:mr.meta.requestId,fulfilledTimeStamp:mr.meta.timestamp,baseQueryMeta:{}},Cr,!0)}},prepare:cr=>({payload:cr.map(ar=>{const{endpointName:Cr,arg:Yr,value:Xr}=ar,ni=pt[Cr];return{queryDescription:{type:"query",endpointName:Cr,originalArgs:ar.arg,queryCacheKey:be({queryArgs:Yr,endpointDefinition:ni,endpointName:Cr})},value:Xr}}),meta:{[g.cN]:!0,requestId:(0,g.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(cr,{payload:{queryCacheKey:mr,patches:hr}}){Et(cr,mr,ar=>{ar.data=(0,y.$i)(ar.data,hr.concat())})},prepare:(0,g.aA)()}},extraReducers(cr){cr.addCase(we.pending,(mr,{meta:hr,meta:{arg:ar}})=>{const Cr=$t(ar);Pt(mr,ar,Cr,hr)}).addCase(we.fulfilled,(mr,{meta:hr,payload:ar})=>{const Cr=$t(hr.arg);zt(mr,hr,ar,Cr)}).addCase(we.rejected,(mr,{meta:{condition:hr,arg:ar,requestId:Cr},error:Yr,payload:Xr})=>{Et(mr,ar.queryCacheKey,ni=>{if(!hr){if(ni.requestId!==Cr)return;ni.status="rejected",ni.error=Xr??Yr}})}).addMatcher(ye,(mr,hr)=>{const{queries:ar}=Je(hr);for(const[Cr,Yr]of Object.entries(ar))(Yr?.status==="fulfilled"||Yr?.status==="rejected")&&(mr[Cr]=Yr)})}}),hn=(0,g.Z0)({name:`${De}/mutations`,initialState:Pn,reducers:{removeMutationResult:{reducer(cr,{payload:mr}){const hr=Zt(mr);hr in cr&&delete cr[hr]},prepare:(0,g.aA)()}},extraReducers(cr){cr.addCase(Ke.pending,(mr,{meta:hr,meta:{requestId:ar,arg:Cr,startedTimeStamp:Yr}})=>{Cr.track&&(mr[Zt(hr)]={requestId:ar,status:"pending",endpointName:Cr.endpointName,startedTimeStamp:Yr})}).addCase(Ke.fulfilled,(mr,{payload:hr,meta:ar})=>{ar.arg.track&&nn(mr,ar,Cr=>{Cr.requestId===ar.requestId&&(Cr.status="fulfilled",Cr.data=hr,Cr.fulfilledTimeStamp=ar.fulfilledTimeStamp)})}).addCase(Ke.rejected,(mr,{payload:hr,error:ar,meta:Cr})=>{Cr.arg.track&&nn(mr,Cr,Yr=>{Yr.requestId===Cr.requestId&&(Yr.status="rejected",Yr.error=hr??ar)})}).addMatcher(ye,(mr,hr)=>{const{mutations:ar}=Je(hr);for(const[Cr,Yr]of Object.entries(ar))(Yr?.status==="fulfilled"||Yr?.status==="rejected")&&Cr!==Yr?.requestId&&(mr[Cr]=Yr)})}}),xt={tags:{},keys:{}},_t=(0,g.Z0)({name:`${De}/invalidation`,initialState:xt,reducers:{updateProvidedBy:{reducer(cr,mr){for(const{queryCacheKey:hr,providedTags:ar}of mr.payload){qt(cr,hr);for(const{type:Cr,id:Yr}of ar){const Xr=(cr.tags[Cr]??={})[Yr||"__internal_without_id"]??=[];Xr.includes(hr)||Xr.push(hr)}cr.keys[hr]=ar}},prepare:(0,g.aA)()}},extraReducers(cr){cr.addCase(un.actions.removeQueryResult,(mr,{payload:{queryCacheKey:hr}})=>{qt(mr,hr)}).addMatcher(ye,(mr,hr)=>{const{provided:ar}=Je(hr);for(const[Cr,Yr]of Object.entries(ar.tags??{}))for(const[Xr,ni]of Object.entries(Yr)){const ki=(mr.tags[Cr]??={})[Xr||"__internal_without_id"]??=[];for(const zr of ni)ki.includes(zr)||ki.push(zr),mr.keys[zr]=ar.keys[zr]}}).addMatcher((0,g.i0)((0,g.sf)(we),(0,g.WA)(we)),(mr,hr)=>{fn(mr,[hr])}).addMatcher(un.actions.cacheEntriesUpserted.match,(mr,hr)=>{const ar=hr.payload.map(({queryDescription:Cr,value:Yr})=>({type:"UNKNOWN",payload:Yr,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:Cr}}));fn(mr,ar)})}});function qt(cr,mr){const hr=cr.keys[mr]??[];for(const ar of hr){const Cr=ar.type,Yr=ar.id??"__internal_without_id",Xr=cr.tags[Cr]?.[Yr];Xr&&(cr.tags[Cr][Yr]=Xr.filter(ni=>ni!==mr))}delete cr.keys[mr]}function fn(cr,mr){const hr=mr.map(ar=>{const Cr=Ft(ar,"providesTags",pt,Qe),{queryCacheKey:Yr}=ar.meta.arg;return{queryCacheKey:Yr,providedTags:Cr}});_t.caseReducers.updateProvidedBy(cr,_t.actions.updateProvidedBy(hr))}const On=(0,g.Z0)({name:`${De}/subscriptions`,initialState:Pn,reducers:{updateSubscriptionOptions(cr,mr){},unsubscribeQueryResult(cr,mr){},internal_getRTKQSubscriptions(){}}}),Gn=(0,g.Z0)({name:`${De}/internalSubscriptions`,initialState:Pn,reducers:{subscriptionsUpdated:{reducer(cr,mr){return(0,y.$i)(cr,mr.payload)},prepare:(0,g.aA)()}}}),Bn=(0,g.Z0)({name:`${De}/config`,initialState:{online:C(),focused:d(),middlewareRegistered:!1,...ze},reducers:{middlewareRegistered(cr,{payload:mr}){cr.middlewareRegistered=cr.middlewareRegistered==="conflict"||We!==mr?"conflict":!0}},extraReducers:cr=>{cr.addCase(Te,mr=>{mr.online=!0}).addCase(je,mr=>{mr.online=!1}).addCase(ue,mr=>{mr.focused=!0}).addCase(ie,mr=>{mr.focused=!1}).addMatcher(ye,mr=>({...mr}))}}),Lr=(0,l.combineReducers)({queries:un.reducer,mutations:hn.reducer,provided:_t.reducer,subscriptions:Gn.reducer,config:Bn.reducer}),An=(cr,mr)=>Lr(qe.match(mr)?void 0:cr,mr),Un={...Bn.actions,...un.actions,...On.actions,...Gn.actions,...hn.actions,..._t.actions,resetApiState:qe};return{reducer:An,actions:Un}}var Vt=Symbol.for("RTKQ/skipToken"),Kn={status:"uninitialized"},ur=(0,y.jM)(Kn,()=>{}),on=(0,y.jM)(Kn,()=>{});function tr({serializeQueryArgs:De,reducerPath:we,createSelector:Ke}){const be=On=>ur,pt=On=>on;return{buildQuerySelector:zt,buildInfiniteQuerySelector:un,buildMutationSelector:hn,selectInvalidatedBy:xt,selectCachedArgsForQuery:_t,selectApiState:Je,selectQueries:ye,selectMutations:ze,selectQueryEntry:Qe,selectConfig:qe};function We(On){return{...On,...h(On.status)}}function Je(On){return On[we]}function ye(On){return Je(On)?.queries}function Qe(On,Gn){return ye(On)?.[Gn]}function ze(On){return Je(On)?.mutations}function qe(On){return Je(On)?.config}function Pt(On,Gn,Bn){return Lr=>{if(Lr===Vt)return Ke(be,Bn);const An=De({queryArgs:Lr,endpointDefinition:Gn,endpointName:On});return Ke(cr=>Qe(cr,An)??ur,Bn)}}function zt(On,Gn){return Pt(On,Gn,We)}function un(On,Gn){const{infiniteQueryOptions:Bn}=Gn;function Lr(An){const Un={...An,...h(An.status)},{isLoading:cr,isError:mr,direction:hr}=Un,ar=hr==="forward",Cr=hr==="backward";return{...Un,hasNextPage:qt(Bn,Un.data,Un.originalArgs),hasPreviousPage:fn(Bn,Un.data,Un.originalArgs),isFetchingNextPage:cr&&ar,isFetchingPreviousPage:cr&&Cr,isFetchNextPageError:mr&&ar,isFetchPreviousPageError:mr&&Cr}}return Pt(On,Gn,Lr)}function hn(){return On=>{let Gn;return typeof On=="object"?Gn=Zt(On)??Vt:Gn=On,Ke(Gn===Vt?pt:An=>Je(An)?.mutations?.[Gn]??on,We)}}function xt(On,Gn){const Bn=On[we],Lr=new Set;for(const An of Gn.filter(O).map(Wt)){const Un=Bn.provided.tags[An.type];if(!Un)continue;let cr=(An.id!==void 0?Un[An.id]:m(Object.values(Un)))??[];for(const mr of cr)Lr.add(mr)}return m(Array.from(Lr.values()).map(An=>{const Un=Bn.queries[An];return Un?[{queryCacheKey:An,endpointName:Un.endpointName,originalArgs:Un.originalArgs}]:[]}))}function _t(On,Gn){return Object.values(ye(On)).filter(Bn=>Bn?.endpointName===Gn&&Bn.status!=="uninitialized").map(Bn=>Bn.originalArgs)}function qt(On,Gn,Bn){return Gn?Me(On,Gn,Bn)!=null:!1}function fn(On,Gn,Bn){return!Gn||!On.getPreviousPageParam?!1:lt(On,Gn,Bn)!=null}}var Cn=WeakMap?new WeakMap:void 0,Wn=({endpointName:De,queryArgs:we})=>{let Ke="";const be=Cn?.get(we);if(typeof be=="string")Ke=be;else{const pt=JSON.stringify(we,(We,Je)=>(Je=typeof Je=="bigint"?{$bigint:Je.toString()}:Je,Je=(0,l.isPlainObject)(Je)?Object.keys(Je).sort().reduce((ye,Qe)=>(ye[Qe]=Je[Qe],ye),{}):Je,Je));(0,l.isPlainObject)(we)&&Cn?.set(we,pt),Ke=pt}return`${De}(${Ke})`};function er(...De){return function(Ke){const be=(0,x.X4)(ze=>Ke.extractRehydrationInfo?.(ze,{reducerPath:Ke.reducerPath??"api"})),pt={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...Ke,extractRehydrationInfo:be,serializeQueryArgs(ze){let qe=Wn;if("serializeQueryArgs"in ze.endpointDefinition){const Pt=ze.endpointDefinition.serializeQueryArgs;qe=zt=>{const un=Pt(zt);return typeof un=="string"?un:Wn({...zt,queryArgs:un})}}else Ke.serializeQueryArgs&&(qe=Ke.serializeQueryArgs);return qe(ze)},tagTypes:[...Ke.tagTypes||[]]},We={endpointDefinitions:{},batch(ze){ze()},apiUid:(0,g.Ak)(),extractRehydrationInfo:be,hasRehydrationInfo:(0,x.X4)(ze=>be(ze)!=null)},Je={injectEndpoints:Qe,enhanceEndpoints({addTagTypes:ze,endpoints:qe}){if(ze)for(const Pt of ze)pt.tagTypes.includes(Pt)||pt.tagTypes.push(Pt);if(qe)for(const[Pt,zt]of Object.entries(qe))typeof zt=="function"?zt(We.endpointDefinitions[Pt]):Object.assign(We.endpointDefinitions[Pt]||{},zt);return Je}},ye=De.map(ze=>ze.init(Je,pt,We));function Qe(ze){const qe=ze.endpoints({query:Pt=>({...Pt,type:"query"}),mutation:Pt=>({...Pt,type:"mutation"}),infiniteQuery:Pt=>({...Pt,type:"infinitequery"})});for(const[Pt,zt]of Object.entries(qe)){if(ze.overrideExisting!==!0&&Pt in We.endpointDefinitions){if(ze.overrideExisting==="throw")throw new Error((0,g.gk)(39));typeof process<"u";continue}typeof process<"u",We.endpointDefinitions[Pt]=zt;for(const un of ye)un.injectEndpoint(Pt,zt)}return Je}return Je.injectEndpoints({endpoints:Ke.endpoints})}}var Fn=null;function en(){return function(){throw new Error(_formatProdErrorMessage4(33))}}function gn(De){}function kn(De,...we){return Object.assign(De,...we)}var Jn=({api:De,queryThunk:we,internalState:Ke,mwApi:be})=>{const pt=`${De.reducerPath}/subscriptions`;let We=null,Je=null;const{updateSubscriptionOptions:ye,unsubscribeQueryResult:Qe}=De.internalActions,ze=(xt,_t)=>{if(ye.match(_t)){const{queryCacheKey:fn,requestId:On,options:Gn}=_t.payload,Bn=xt.get(fn);return Bn?.has(On)&&Bn.set(On,Gn),!0}if(Qe.match(_t)){const{queryCacheKey:fn,requestId:On}=_t.payload,Gn=xt.get(fn);return Gn&&Gn.delete(On),!0}if(De.internalActions.removeQueryResult.match(_t))return xt.delete(_t.payload.queryCacheKey),!0;if(we.pending.match(_t)){const{meta:{arg:fn,requestId:On}}=_t,Gn=U(xt,fn.queryCacheKey,$);return fn.subscribe&&Gn.set(On,fn.subscriptionOptions??Gn.get(On)??{}),!0}let qt=!1;if(we.rejected.match(_t)){const{meta:{condition:fn,arg:On,requestId:Gn}}=_t;if(fn&&On.subscribe){const Bn=U(xt,On.queryCacheKey,$);Bn.set(Gn,On.subscriptionOptions??Bn.get(Gn)??{}),qt=!0}}return qt},qe=()=>Ke.currentSubscriptions,un={getSubscriptions:qe,getSubscriptionCount:xt=>qe().get(xt)?.size??0,isRequestSubscribed:(xt,_t)=>!!qe()?.get(xt)?.get(_t)};function hn(xt){return JSON.parse(JSON.stringify(Object.fromEntries([...xt].map(([_t,qt])=>[_t,Object.fromEntries(qt)]))))}return(xt,_t)=>{if(We||(We=hn(Ke.currentSubscriptions)),De.util.resetApiState.match(xt))return We={},Ke.currentSubscriptions.clear(),Je=null,[!0,!1];if(De.internalActions.internal_getRTKQSubscriptions.match(xt))return[!1,un];const qt=ze(Ke.currentSubscriptions,xt);let fn=!0;if(qt){Je||(Je=setTimeout(()=>{const Bn=hn(Ke.currentSubscriptions),[,Lr]=(0,y.vI)(We,()=>Bn);_t.next(De.internalActions.subscriptionsUpdated(Lr)),We=Bn,Je=null},500));const On=typeof xt.type=="string"&&!!xt.type.startsWith(pt),Gn=we.rejected.match(xt)&&xt.meta.condition&&!!xt.meta.arg.subscribe;fn=!On&&!Gn}return[fn,!1]}},Nn=2147483647/1e3-1,kr=({reducerPath:De,api:we,queryThunk:Ke,context:be,internalState:pt,selectors:{selectQueryEntry:We,selectConfig:Je},getRunningQueryThunk:ye,mwApi:Qe})=>{const{removeQueryResult:ze,unsubscribeQueryResult:qe,cacheEntriesUpserted:Pt}=we.internalActions,zt=(0,g.i0)(qe.match,Ke.fulfilled,Ke.rejected,Pt.match);function un(On){const Gn=pt.currentSubscriptions.get(On);return Gn?Gn.size>0:!1}const hn={};function xt(On){for(const Gn of On.values())Gn?.abort?.()}const _t=(On,Gn)=>{const Bn=Gn.getState(),Lr=Je(Bn);if(zt(On)){let An;if(Pt.match(On))An=On.payload.map(Un=>Un.queryDescription.queryCacheKey);else{const{queryCacheKey:Un}=qe.match(On)?On.payload:On.meta.arg;An=[Un]}qt(An,Gn,Lr)}if(we.util.resetApiState.match(On)){for(const[An,Un]of Object.entries(hn))Un&&clearTimeout(Un),delete hn[An];xt(pt.runningQueries),xt(pt.runningMutations)}if(be.hasRehydrationInfo(On)){const{queries:An}=be.extractRehydrationInfo(On);qt(Object.keys(An),Gn,Lr)}};function qt(On,Gn,Bn){const Lr=Gn.getState();for(const An of On){const Un=We(Lr,An);Un?.endpointName&&fn(An,Un.endpointName,Gn,Bn)}}function fn(On,Gn,Bn,Lr){const Un=be.endpointDefinitions[Gn]?.keepUnusedDataFor??Lr.keepUnusedDataFor;if(Un===1/0)return;const cr=Math.max(0,Math.min(Un,Nn));if(!un(On)){const mr=hn[On];mr&&clearTimeout(mr),hn[On]=setTimeout(()=>{if(!un(On)){const hr=We(Bn.getState(),On);hr?.endpointName&&Bn.dispatch(ye(hr.endpointName,hr.originalArgs))?.abort(),Bn.dispatch(ze({queryCacheKey:On}))}delete hn[On]},cr*1e3)}}return _t},bt=new Error("Promise never resolved before cacheEntryRemoved."),ne=({api:De,reducerPath:we,context:Ke,queryThunk:be,mutationThunk:pt,internalState:We,selectors:{selectQueryEntry:Je,selectApiState:ye}})=>{const Qe=(0,g.$S)(be),ze=(0,g.$S)(pt),qe=(0,g.sf)(be,pt),Pt={};function zt(qt,fn,On){const Gn=Pt[qt];Gn?.valueResolved&&(Gn.valueResolved({data:fn,meta:On}),delete Gn.valueResolved)}function un(qt){const fn=Pt[qt];fn&&(delete Pt[qt],fn.cacheEntryRemoved())}const hn=(qt,fn,On)=>{const Gn=xt(qt);function Bn(Lr,An,Un,cr){const mr=Je(On,An),hr=Je(fn.getState(),An);!mr&&hr&&_t(Lr,cr,An,fn,Un)}if(be.pending.match(qt))Bn(qt.meta.arg.endpointName,Gn,qt.meta.requestId,qt.meta.arg.originalArgs);else if(De.internalActions.cacheEntriesUpserted.match(qt))for(const{queryDescription:Lr,value:An}of qt.payload){const{endpointName:Un,originalArgs:cr,queryCacheKey:mr}=Lr;Bn(Un,mr,qt.meta.requestId,cr),zt(mr,An,{})}else if(pt.pending.match(qt))fn.getState()[we].mutations[Gn]&&_t(qt.meta.arg.endpointName,qt.meta.arg.originalArgs,Gn,fn,qt.meta.requestId);else if(qe(qt))zt(Gn,qt.payload,qt.meta.baseQueryMeta);else if(De.internalActions.removeQueryResult.match(qt)||De.internalActions.removeMutationResult.match(qt))un(Gn);else if(De.util.resetApiState.match(qt))for(const Lr of Object.keys(Pt))un(Lr)};function xt(qt){return Qe(qt)?qt.meta.arg.queryCacheKey:ze(qt)?qt.meta.arg.fixedCacheKey??qt.meta.requestId:De.internalActions.removeQueryResult.match(qt)?qt.payload.queryCacheKey:De.internalActions.removeMutationResult.match(qt)?Zt(qt.payload):""}function _t(qt,fn,On,Gn,Bn){const Lr=Ke.endpointDefinitions[qt],An=Lr?.onCacheEntryAdded;if(!An)return;const Un={},cr=new Promise(Xr=>{Un.cacheEntryRemoved=Xr}),mr=Promise.race([new Promise(Xr=>{Un.valueResolved=Xr}),cr.then(()=>{throw bt})]);mr.catch(()=>{}),Pt[On]=Un;const hr=De.endpoints[qt].select(Rt(Lr)?fn:On),ar=Gn.dispatch((Xr,ni,ki)=>ki),Cr={...Gn,getCacheEntry:()=>hr(Gn.getState()),requestId:Bn,extra:ar,updateCachedData:Rt(Lr)?Xr=>Gn.dispatch(De.util.updateQueryData(qt,fn,Xr)):void 0,cacheDataLoaded:mr,cacheEntryRemoved:cr},Yr=An(fn,Cr);Promise.resolve(Yr).catch(Xr=>{if(Xr!==bt)throw Xr})}return hn},fe=({api:De,context:{apiUid:we},reducerPath:Ke})=>(be,pt)=>{De.util.resetApiState.match(be)&&pt.dispatch(De.internalActions.middlewareRegistered(we)),typeof process<"u"},K=({reducerPath:De,context:we,context:{endpointDefinitions:Ke},mutationThunk:be,queryThunk:pt,api:We,assertTagType:Je,refetchQuery:ye,internalState:Qe})=>{const{removeQueryResult:ze}=We.internalActions,qe=(0,g.i0)((0,g.sf)(be),(0,g.WA)(be)),Pt=(0,g.i0)((0,g.sf)(be,pt),(0,g.TK)(be,pt));let zt=[];const un=(_t,qt)=>{qe(_t)?xt(Ft(_t,"invalidatesTags",Ke,Je),qt):Pt(_t)?xt([],qt):We.util.invalidateTags.match(_t)&&xt(Dn(_t.payload,void 0,void 0,void 0,void 0,Je),qt)};function hn(_t){const{queries:qt,mutations:fn}=_t;for(const On of[qt,fn])for(const Gn in On)if(On[Gn]?.status==="pending")return!0;return!1}function xt(_t,qt){const fn=qt.getState(),On=fn[De];if(zt.push(..._t),On.config.invalidationBehavior==="delayed"&&hn(On))return;const Gn=zt;if(zt=[],Gn.length===0)return;const Bn=We.util.selectInvalidatedBy(fn,Gn);we.batch(()=>{const Lr=Array.from(Bn.values());for(const{queryCacheKey:An}of Lr){const Un=On.queries[An],cr=U(Qe.currentSubscriptions,An,$);Un&&(cr.size===0?qt.dispatch(ze({queryCacheKey:An})):Un.status!=="uninitialized"&&qt.dispatch(ye(Un)))}})}return un},he=({reducerPath:De,queryThunk:we,api:Ke,refetchQuery:be,internalState:pt})=>{const{currentPolls:We,currentSubscriptions:Je}=pt,ye=new Set;let Qe=null;const ze=(qt,fn)=>{(Ke.internalActions.updateSubscriptionOptions.match(qt)||Ke.internalActions.unsubscribeQueryResult.match(qt))&&qe(qt.payload.queryCacheKey,fn),(we.pending.match(qt)||we.rejected.match(qt)&&qt.meta.condition)&&qe(qt.meta.arg.queryCacheKey,fn),(we.fulfilled.match(qt)||we.rejected.match(qt)&&!qt.meta.condition)&&zt(qt.meta.arg,fn),Ke.util.resetApiState.match(qt)&&(xt(),Qe&&(clearTimeout(Qe),Qe=null),ye.clear())};function qe(qt,fn){ye.add(qt),Qe||(Qe=setTimeout(()=>{for(const On of ye)un({queryCacheKey:On},fn);ye.clear(),Qe=null},0))}function Pt(qt,fn){const Gn=fn.getState()[De].queries[qt],Bn=Je.get(qt);if(!(!Gn||Gn.status==="uninitialized"))return Bn}function zt({queryCacheKey:qt},fn){const On=fn.getState()[De],Gn=On.queries[qt],Bn=Je.get(qt);if(!Gn||Gn.status==="uninitialized")return;const{lowestPollingInterval:Lr,skipPollingIfUnfocused:An}=_t(Bn);if(!Number.isFinite(Lr))return;const Un=We.get(qt);Un?.timeout&&(clearTimeout(Un.timeout),Un.timeout=void 0);const cr=Date.now()+Lr;We.set(qt,{nextPollTimestamp:cr,pollingInterval:Lr,timeout:setTimeout(()=>{(On.config.focused||!An)&&fn.dispatch(be(Gn)),zt({queryCacheKey:qt},fn)},Lr)})}function un({queryCacheKey:qt},fn){const Gn=fn.getState()[De].queries[qt],Bn=Je.get(qt);if(!Gn||Gn.status==="uninitialized")return;const{lowestPollingInterval:Lr}=_t(Bn);if(!Number.isFinite(Lr)){hn(qt);return}const An=We.get(qt),Un=Date.now()+Lr;(!An||Un<An.nextPollTimestamp)&&zt({queryCacheKey:qt},fn)}function hn(qt){const fn=We.get(qt);fn?.timeout&&clearTimeout(fn.timeout),We.delete(qt)}function xt(){for(const qt of We.keys())hn(qt)}function _t(qt=new Map){let fn=!1,On=Number.POSITIVE_INFINITY;for(const Gn of qt.values())Gn.pollingInterval&&(On=Math.min(Gn.pollingInterval,On),fn=Gn.skipPollingIfUnfocused||fn);return{lowestPollingInterval:On,skipPollingIfUnfocused:fn}}return ze},Fe=({api:De,context:we,queryThunk:Ke,mutationThunk:be})=>{const pt=(0,g.mm)(Ke,be),We=(0,g.TK)(Ke,be),Je=(0,g.sf)(Ke,be),ye={};return(ze,qe)=>{if(pt(ze)){const{requestId:Pt,arg:{endpointName:zt,originalArgs:un}}=ze.meta,hn=we.endpointDefinitions[zt],xt=hn?.onQueryStarted;if(xt){const _t={},qt=new Promise((Bn,Lr)=>{_t.resolve=Bn,_t.reject=Lr});qt.catch(()=>{}),ye[Pt]=_t;const fn=De.endpoints[zt].select(Rt(hn)?un:Pt),On=qe.dispatch((Bn,Lr,An)=>An),Gn={...qe,getCacheEntry:()=>fn(qe.getState()),requestId:Pt,extra:On,updateCachedData:Rt(hn)?Bn=>qe.dispatch(De.util.updateQueryData(zt,un,Bn)):void 0,queryFulfilled:qt};xt(un,Gn)}}else if(Je(ze)){const{requestId:Pt,baseQueryMeta:zt}=ze.meta;ye[Pt]?.resolve({data:ze.payload,meta:zt}),delete ye[Pt]}else if(We(ze)){const{requestId:Pt,rejectedWithValue:zt,baseQueryMeta:un}=ze.meta;ye[Pt]?.reject({error:ze.payload??ze.error,isUnhandledError:!zt,meta:un}),delete ye[Pt]}}},Nt=({reducerPath:De,context:we,api:Ke,refetchQuery:be,internalState:pt})=>{const{removeQueryResult:We}=Ke.internalActions,Je=(Qe,ze)=>{ue.match(Qe)&&ye(ze,"refetchOnFocus"),Te.match(Qe)&&ye(ze,"refetchOnReconnect")};function ye(Qe,ze){const qe=Qe.getState()[De],Pt=qe.queries,zt=pt.currentSubscriptions;we.batch(()=>{for(const un of zt.keys()){const hn=Pt[un],xt=zt.get(un);if(!xt||!hn)continue;const _t=[...xt.values()];(_t.some(fn=>fn[ze]===!0)||_t.every(fn=>fn[ze]===void 0)&&qe.config[ze])&&(xt.size===0?Qe.dispatch(We({queryCacheKey:un})):hn.status!=="uninitialized"&&Qe.dispatch(be(hn)))}})}return Je};function ln(De){const{reducerPath:we,queryThunk:Ke,api:be,context:pt,getInternalState:We}=De,{apiUid:Je}=pt,ye={invalidateTags:(0,g.VP)(`${we}/invalidateTags`)},Qe=zt=>zt.type.startsWith(`${we}/`),ze=[fe,kr,K,he,ne,Fe];return{middleware:zt=>{let un=!1;const hn=We(zt.dispatch),xt={...De,internalState:hn,refetchQuery:Pt,isThisApiSliceAction:Qe,mwApi:zt},_t=ze.map(On=>On(xt)),qt=Jn(xt),fn=Nt(xt);return On=>Gn=>{if(!(0,l.isAction)(Gn))return On(Gn);un||(un=!0,zt.dispatch(be.internalActions.middlewareRegistered(Je)));const Bn={...zt,next:On},Lr=zt.getState(),[An,Un]=qt(Gn,Bn,Lr);let cr;if(An?cr=On(Gn):cr=Un,zt.getState()[we]&&(fn(Gn,Bn,Lr),Qe(Gn)||pt.hasRehydrationInfo(Gn)))for(const mr of _t)mr(Gn,Bn,Lr);return cr}},actions:ye};function Pt(zt){return De.api.endpoints[zt.endpointName].initiate(zt.originalArgs,{subscribe:!1,forceRefetch:!0})}}var pn=Symbol(),Yn=({createSelector:De=x.Mz}={})=>({name:pn,init(we,{baseQuery:Ke,tagTypes:be,reducerPath:pt,serializeQueryArgs:We,keepUnusedDataFor:Je,refetchOnMountOrArgChange:ye,refetchOnFocus:Qe,refetchOnReconnect:ze,invalidationBehavior:qe,onSchemaFailure:Pt,catchSchemaFailure:zt,skipSchemaValidation:un},hn){(0,y.YT)();const xt=Oi=>(typeof process<"u",Oi);Object.assign(we,{reducerPath:pt,endpoints:{},internalActions:{onOnline:Te,onOffline:je,onFocus:ue,onFocusLost:ie},util:{}});const _t=tr({serializeQueryArgs:We,reducerPath:pt,createSelector:De}),{selectInvalidatedBy:qt,selectCachedArgsForQuery:fn,buildQuerySelector:On,buildInfiniteQuerySelector:Gn,buildMutationSelector:Bn}=_t;kn(we.util,{selectInvalidatedBy:qt,selectCachedArgsForQuery:fn});const{queryThunk:Lr,infiniteQueryThunk:An,mutationThunk:Un,patchQueryData:cr,updateQueryData:mr,upsertQueryData:hr,prefetch:ar,buildMatchThunkActions:Cr}=ge({baseQuery:Ke,reducerPath:pt,context:hn,api:we,serializeQueryArgs:We,assertTagType:xt,selectors:_t,onSchemaFailure:Pt,catchSchemaFailure:zt,skipSchemaValidation:un}),{reducer:Yr,actions:Xr}=rn({context:hn,queryThunk:Lr,infiniteQueryThunk:An,mutationThunk:Un,serializeQueryArgs:We,reducerPath:pt,assertTagType:xt,config:{refetchOnFocus:Qe,refetchOnReconnect:ze,refetchOnMountOrArgChange:ye,keepUnusedDataFor:Je,reducerPath:pt,invalidationBehavior:qe}});kn(we.util,{patchQueryData:cr,updateQueryData:mr,upsertQueryData:hr,prefetch:ar,resetApiState:Xr.resetApiState,upsertQueryEntries:Xr.cacheEntriesUpserted}),kn(we.internalActions,Xr);const ni=new WeakMap,ki=Oi=>U(ni,Oi,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:zr,buildInitiateInfiniteQuery:Ur,buildInitiateMutation:jt,getRunningMutationThunk:sn,getRunningMutationsThunk:Rn,getRunningQueriesThunk:H,getRunningQueryThunk:Be}=Ct({queryThunk:Lr,mutationThunk:Un,infiniteQueryThunk:An,api:we,serializeQueryArgs:We,context:hn,getInternalState:ki});kn(we.util,{getRunningMutationThunk:sn,getRunningMutationsThunk:Rn,getRunningQueryThunk:Be,getRunningQueriesThunk:H});const{middleware:wn,actions:bi}=ln({reducerPath:pt,context:hn,queryThunk:Lr,mutationThunk:Un,infiniteQueryThunk:An,api:we,assertTagType:xt,selectors:_t,getRunningQueryThunk:Be,getInternalState:ki});return kn(we.util,bi),kn(we,{reducer:Yr,middleware:wn}),{name:pn,injectEndpoint(Oi,de){const Ve=we,vt=Ve.endpoints[Oi]??={};Ze(de)&&kn(vt,{name:Oi,select:On(Oi,de),initiate:zr(Oi,de)},Cr(Lr,Oi)),Ne(de)&&kn(vt,{name:Oi,select:Bn(),initiate:jt(Oi)},Cr(Un,Oi)),it(de)&&kn(vt,{name:Oi,select:Gn(Oi,de),initiate:Ur(Oi,de)},Cr(Lr,Oi))}}}}),ht=er(Yn())},9619:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createErrorClass=void 0;function u(l){var g=function(x){Error.call(x),x.stack=new Error().stack},y=l(g);return y.prototype=Object.create(Error.prototype),y.prototype.constructor=y,y}w.createErrorClass=u},9662:function(Ge,w,u){"use strict";var l=this&&this.__generator||function(h,E){var v={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},m,S,d,O;return O={next:R(0),throw:R(1),return:R(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function R(L){return function(j){return C([L,j])}}function C(L){if(m)throw new TypeError("Generator is already executing.");for(;v;)try{if(m=1,S&&(d=L[0]&2?S.return:L[0]?S.throw||((d=S.return)&&d.call(S),0):S.next)&&!(d=d.call(S,L[1])).done)return d;switch(S=0,d&&(L=[L[0]&2,d.value]),L[0]){case 0:case 1:d=L;break;case 4:return v.label++,{value:L[1],done:!1};case 5:v.label++,S=L[1],L=[0];continue;case 7:L=v.ops.pop(),v.trys.pop();continue;default:if(d=v.trys,!(d=d.length>0&&d[d.length-1])&&(L[0]===6||L[0]===2)){v=0;continue}if(L[0]===3&&(!d||L[1]>d[0]&&L[1]<d[3])){v.label=L[1];break}if(L[0]===6&&v.label<d[1]){v.label=d[1],d=L;break}if(d&&v.label<d[2]){v.label=d[2],v.ops.push(L);break}d[2]&&v.ops.pop(),v.trys.pop();continue}L=E.call(h,v)}catch(j){L=[6,j],S=0}finally{m=d=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}};Object.defineProperty(w,"__esModule",{value:!0}),w.generate=void 0;var g=u(87699),y=u(68596),x=u(35884),f=u(36805);function p(h,E,v,m,S){var d,O,R,C;arguments.length===1?(d=h,C=d.initialState,E=d.condition,v=d.iterate,O=d.resultSelector,R=O===void 0?g.identity:O,S=d.scheduler):(C=h,!m||y.isScheduler(m)?(R=g.identity,S=m):R=m);function L(){var j;return l(this,function(I){switch(I.label){case 0:j=C,I.label=1;case 1:return!E||E(j)?[4,R(j)]:[3,4];case 2:I.sent(),I.label=3;case 3:return j=v(j),[3,1];case 4:return[2]}})}return x.defer(S?function(){return f.scheduleIterable(L(),S)}:L)}w.generate=p},9703:(Ge,w,u)=>{"use strict";u.d(w,{Bb:()=>E,T9:()=>L,Tl:()=>d,Zz:()=>O,cL:()=>x,dI:()=>U,e$:()=>v,hs:()=>m,k3:()=>h,lw:()=>f,tI:()=>ee,vt:()=>y});var l=u(90588);const g=new Array(6);function y(){return[1,0,0,1,0,0]}function x(re){return p(re,1,0,0,1,0,0)}function f(re,Se){const z=re[0],Q=re[1],ce=re[2],se=re[3],q=re[4],te=re[5],A=Se[0],T=Se[1],B=Se[2],X=Se[3],ue=Se[4],ie=Se[5];return re[0]=z*A+ce*T,re[1]=Q*A+se*T,re[2]=z*B+ce*X,re[3]=Q*B+se*X,re[4]=z*ue+ce*ie+q,re[5]=Q*ue+se*ie+te,re}function p(re,Se,z,Q,ce,se,q){return re[0]=Se,re[1]=z,re[2]=Q,re[3]=ce,re[4]=se,re[5]=q,re}function h(re,Se){return re[0]=Se[0],re[1]=Se[1],re[2]=Se[2],re[3]=Se[3],re[4]=Se[4],re[5]=Se[5],re}function E(re,Se){const z=Se[0],Q=Se[1];return Se[0]=re[0]*z+re[2]*Q+re[4],Se[1]=re[1]*z+re[3]*Q+re[5],Se}function v(re,Se){const z=Math.cos(Se),Q=Math.sin(Se);return f(re,p(g,z,Q,-Q,z,0,0))}function m(re,Se,z){return f(re,p(g,Se,0,0,z,0,0))}function S(re,Se,z){return p(re,Se,0,0,z,0,0)}function d(re,Se,z){return f(re,p(g,1,0,0,1,Se,z))}function O(re,Se,z,Q,ce,se,q,te){const A=Math.sin(se),T=Math.cos(se);return re[0]=Q*T,re[1]=ce*A,re[2]=-Q*A,re[3]=ce*T,re[4]=q*Q*T-te*Q*A+Se,re[5]=q*ce*A+te*ce*T+z,re}function R(re,Se,z,Q,ce,se,q){return U(O(y(),re,Se,z,Q,ce,se,q))}function C(re){return L(re,re)}function L(re,Se){const z=j(Se);(0,l.v)(z!==0,"Transformation matrix cannot be inverted");const Q=Se[0],ce=Se[1],se=Se[2],q=Se[3],te=Se[4],A=Se[5];return re[0]=q/z,re[1]=-ce/z,re[2]=-se/z,re[3]=Q/z,re[4]=(se*A-q*te)/z,re[5]=-(Q*A-ce*te)/z,re}function j(re){return re[0]*re[3]-re[1]*re[2]}const I=[1e5,1e5,1e5,1e5,2,2];function U(re){return"matrix("+re.join(", ")+")"}function $(re){return re.substring(7,re.length-1).split(",").map(parseFloat)}function ee(re,Se){const z=$(re),Q=$(Se);for(let ce=0;ce<6;++ce)if(Math.round((z[ce]-Q[ce])*I[ce])!==0)return!1;return!0}},10022:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>m});var l=u(96540);function g(S){return typeof S=="number"&&isFinite(S)&&Math.floor(S)===S}function y(S){var d=S.lastRenderedStartIndex,O=S.lastRenderedStopIndex,R=S.startIndex,C=S.stopIndex;return!(R>O||C<d)}function x(S){for(var d=S.isItemLoaded,O=S.itemCount,R=S.minimumBatchSize,C=S.startIndex,L=S.stopIndex,j=[],I=null,U=null,$=C;$<=L;$++){var ee=d($);ee?U!==null&&(j.push(I,U),I=U=null):(U=$,I===null&&(I=$))}if(U!==null){for(var re=Math.min(Math.max(U,I+R-1),O-1),Se=U+1;Se<=re&&!d(Se);Se++)U=Se;j.push(I,U)}if(j.length)for(;j[1]-j[0]+1<R&&j[0]>0;){var z=j[0]-1;if(!d(z))j[0]=z;else break}return j}var f=function(S,d){if(!(S instanceof d))throw new TypeError("Cannot call a class as a function")},p=function(){function S(d,O){for(var R=0;R<O.length;R++){var C=O[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(d,C.key,C)}}return function(d,O,R){return O&&S(d.prototype,O),R&&S(d,R),d}}(),h=function(S,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);S.prototype=Object.create(d&&d.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(S,d):S.__proto__=d)},E=function(S,d){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:S},v=function(S){h(d,S);function d(){var O,R,C,L;f(this,d);for(var j=arguments.length,I=Array(j),U=0;U<j;U++)I[U]=arguments[U];return L=(R=(C=E(this,(O=d.__proto__||Object.getPrototypeOf(d)).call.apply(O,[this].concat(I))),C),C._lastRenderedStartIndex=-1,C._lastRenderedStopIndex=-1,C._memoizedUnloadedRanges=[],C._onItemsRendered=function($){var ee=$.visibleStartIndex,re=$.visibleStopIndex;C._lastRenderedStartIndex=ee,C._lastRenderedStopIndex=re,C._ensureRowsLoaded(ee,re)},C._setRef=function($){C._listRef=$},R),E(C,L)}return p(d,[{key:"resetloadMoreItemsCache",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],R&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var R=this.props.children;return R({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(R,C){var L=this.props,j=L.isItemLoaded,I=L.itemCount,U=L.minimumBatchSize,$=U===void 0?10:U,ee=L.threshold,re=ee===void 0?15:ee,Se=x({isItemLoaded:j,itemCount:I,minimumBatchSize:$,startIndex:Math.max(0,R-re),stopIndex:Math.min(I-1,C+re)});(this._memoizedUnloadedRanges.length!==Se.length||this._memoizedUnloadedRanges.some(function(z,Q){return Se[Q]!==z}))&&(this._memoizedUnloadedRanges=Se,this._loadUnloadedRanges(Se))}},{key:"_loadUnloadedRanges",value:function(R){for(var C=this,L=this.props.loadMoreItems||this.props.loadMoreRows,j=function($){var ee=R[$],re=R[$+1],Se=L(ee,re);Se?.then(function(){if(y({lastRenderedStartIndex:C._lastRenderedStartIndex,lastRenderedStopIndex:C._lastRenderedStopIndex,startIndex:ee,stopIndex:re})){if(C._listRef==null)return;typeof C._listRef.resetAfterIndex=="function"?C._listRef.resetAfterIndex(ee,!0):(typeof C._listRef._getItemStyleCache=="function"&&C._listRef._getItemStyleCache(-1),C._listRef.forceUpdate())}})},I=0;I<R.length;I+=2)j(I)}}]),d}(l.PureComponent);const m=v},10207:(Ge,w,u)=>{var l=u(96540);function g(p,h,E,v){Object.defineProperty(p,h,{get:E,set:v,enumerable:!0,configurable:!0})}g(Ge.exports,"composeRefs",()=>x),g(Ge.exports,"useComposedRefs",()=>f);function y(p,h){typeof p=="function"?p(h):p!=null&&(p.current=h)}function x(...p){return h=>p.forEach(E=>y(E,h))}function f(...p){return l.useCallback(x(...p),p)}},10281:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isFunction=void 0;function u(l){return typeof l=="function"}w.isFunction=u},10378:(Ge,w,u)=>{"use strict";u.d(w,{$J:()=>v,$k:()=>yt,RE:()=>p,hT:()=>rn,l0:()=>Wn,lE:()=>Cn,m7:()=>pn});var l=u(14644),g=u(65307),y=u(1932),x=u(25508),f=u(60466),p=(ht=>(ht.uninitialized="uninitialized",ht.pending="pending",ht.fulfilled="fulfilled",ht.rejected="rejected",ht))(p||{});function h(ht){return{status:ht,isUninitialized:ht==="uninitialized",isLoading:ht==="pending",isSuccess:ht==="fulfilled",isError:ht==="rejected"}}var E=l.isPlainObject;function v(ht,De){if(ht===De||!(E(ht)&&E(De)||Array.isArray(ht)&&Array.isArray(De)))return De;const we=Object.keys(De),Ke=Object.keys(ht);let be=we.length===Ke.length;const pt=Array.isArray(De)?[]:{};for(const We of we)pt[We]=v(ht[We],De[We]),be&&(be=ht[We]===pt[We]);return be?ht:pt}function m(ht){let De=0;for(const we in ht)De++;return De}var S=ht=>[].concat(...ht);function d(ht){return new RegExp("(^|:)//").test(ht)}function O(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function R(ht){return ht!=null}function C(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var L=ht=>ht.replace(/\/$/,""),j=ht=>ht.replace(/^\//,"");function I(ht,De){if(!ht)return De;if(!De)return ht;if(d(De))return De;const we=ht.endsWith("/")||!De.startsWith("?")?"/":"";return ht=L(ht),De=j(De),`${ht}${we}${De}`}function U(ht,De,we){return ht.has(De)?ht.get(De):ht.set(De,we).get(De)}function $(ht,De,we){return ht.has(De)?ht.get(De):ht.set(De,we(De)).get(De)}var ee=()=>new Map,re=(...ht)=>fetch(...ht),Se=ht=>ht.status>=200&&ht.status<=299,z=ht=>/ion\/(vnd\.api\+)?json/.test(ht.get("content-type")||"");function Q(ht){if(!isPlainObject(ht))return ht;const De={...ht};for(const[we,Ke]of Object.entries(De))Ke===void 0&&delete De[we];return De}function ce({baseUrl:ht,prepareHeaders:De=qe=>qe,fetchFn:we=re,paramsSerializer:Ke,isJsonContentType:be=z,jsonContentType:pt="application/json",jsonReplacer:We,timeout:Je,responseHandler:ye,validateStatus:Qe,...ze}={}){return typeof fetch>"u"&&we===re&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(Pt,zt,un)=>{const{getState:hn,extra:xt,endpoint:_t,forced:qt,type:fn}=zt;let On,{url:Gn,headers:Bn=new Headers(ze.headers),params:Lr=void 0,responseHandler:An=ye??"json",validateStatus:Un=Qe??Se,timeout:cr=Je,...mr}=typeof Pt=="string"?{url:Pt}:Pt,hr,ar=zt.signal;cr&&(hr=new AbortController,zt.signal.addEventListener("abort",hr.abort),ar=hr.signal);let Cr={...ze,signal:ar,...mr};Bn=new Headers(Q(Bn)),Cr.headers=await De(Bn,{getState:hn,arg:Pt,extra:xt,endpoint:_t,forced:qt,type:fn,extraOptions:un})||Bn;const Yr=H=>typeof H=="object"&&(isPlainObject(H)||Array.isArray(H)||typeof H.toJSON=="function");if(!Cr.headers.has("content-type")&&Yr(Cr.body)&&Cr.headers.set("content-type",pt),Yr(Cr.body)&&be(Cr.headers)&&(Cr.body=JSON.stringify(Cr.body,We)),Lr){const H=~Gn.indexOf("?")?"&":"?",Be=Ke?Ke(Lr):new URLSearchParams(Q(Lr));Gn+=H+Be}Gn=I(ht,Gn);const Xr=new Request(Gn,Cr);On={request:new Request(Gn,Cr)};let ki,zr=!1,Ur=hr&&setTimeout(()=>{zr=!0,hr.abort()},cr);try{ki=await we(Xr)}catch(H){return{error:{status:zr?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(H)},meta:On}}finally{Ur&&clearTimeout(Ur),hr?.signal.removeEventListener("abort",hr.abort)}const jt=ki.clone();On.response=jt;let sn,Rn="";try{let H;if(await Promise.all([qe(ki,An).then(Be=>sn=Be,Be=>H=Be),jt.text().then(Be=>Rn=Be,()=>{})]),H)throw H}catch(H){return{error:{status:"PARSING_ERROR",originalStatus:ki.status,data:Rn,error:String(H)},meta:On}}return Un(ki,sn)?{data:sn,meta:On}:{error:{status:ki.status,data:sn},meta:On}};async function qe(Pt,zt){if(typeof zt=="function")return zt(Pt);if(zt==="content-type"&&(zt=be(Pt.headers)?"json":"text"),zt==="json"){const un=await Pt.text();return un.length?JSON.parse(un):null}return Pt.text()}}var se=class{constructor(ht,De=void 0){this.value=ht,this.meta=De}};async function q(ht=0,De=5){const we=Math.min(ht,De),Ke=~~((Math.random()+.4)*(300<<we));await new Promise(be=>setTimeout(pt=>be(pt),Ke))}function te(ht,De){throw Object.assign(new se({error:ht,meta:De}),{throwImmediately:!0})}var A={},T=(ht,De)=>async(we,Ke,be)=>{const pt=[5,(De||A).maxRetries,(be||A).maxRetries].filter(ze=>ze!==void 0),[We]=pt.slice(-1),ye={maxRetries:We,backoff:q,retryCondition:(ze,qe,{attempt:Pt})=>Pt<=We,...De,...be};let Qe=0;for(;;)try{const ze=await ht(we,Ke,be);if(ze.error)throw new se(ze);return ze}catch(ze){if(Qe++,ze.throwImmediately){if(ze instanceof se)return ze.value;throw ze}if(ze instanceof se&&!ye.retryCondition(ze.value.error,we,{attempt:Qe,baseQueryApi:Ke,extraOptions:be}))return ze.value;await ye.backoff(Qe,ye.maxRetries)}},B=Object.assign(T,{fail:te}),X=(0,g.VP)("__rtkq/focused"),ue=(0,g.VP)("__rtkq/unfocused"),ie=(0,g.VP)("__rtkq/online"),Te=(0,g.VP)("__rtkq/offline"),je=!1;function yt(ht,De){function we(){const Ke=()=>ht(X()),be=()=>ht(ue()),pt=()=>ht(ie()),We=()=>ht(Te()),Je=()=>{window.document.visibilityState==="visible"?Ke():be()};return je||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",Je,!1),window.addEventListener("focus",Ke,!1),window.addEventListener("online",pt,!1),window.addEventListener("offline",We,!1),je=!0),()=>{window.removeEventListener("focus",Ke),window.removeEventListener("visibilitychange",Je),window.removeEventListener("online",pt),window.removeEventListener("offline",We),je=!1}}return De?De(ht,{onFocus:X,onFocusLost:ue,onOffline:Te,onOnline:ie}):we()}function tt(ht){return ht.type==="query"}function Ze(ht){return ht.type==="mutation"}function Ne(ht){return ht.type==="infinitequery"}function it(ht){return tt(ht)||Ne(ht)}function Rt(ht,De,we,Ke,be,pt){return Dn(ht)?ht(De,we,Ke,be).filter(R).map(Mt).map(pt):Array.isArray(ht)?ht.map(Mt).map(pt):[]}function Dn(ht){return typeof ht=="function"}function Mt(ht){return typeof ht=="string"?{type:ht}:ht}function Wt(ht,De){return ht.catch(De)}var Tn=Symbol("forceQueryFn"),bn=ht=>typeof ht[Tn]=="function";function $t({serializeQueryArgs:ht,queryThunk:De,infiniteQueryThunk:we,mutationThunk:Ke,api:be,context:pt,internalState:We}){const{runningQueries:Je,runningMutations:ye}=We,{unsubscribeQueryResult:Qe,removeMutationResult:ze,updateSubscriptionOptions:qe}=be.internalActions;return{buildInitiateQuery:qt,buildInitiateInfiniteQuery:fn,buildInitiateMutation:On,getRunningQueryThunk:Pt,getRunningMutationThunk:zt,getRunningQueriesThunk:un,getRunningMutationsThunk:hn};function Pt(Gn,Bn){return Lr=>{const An=pt.endpointDefinitions[Gn],Un=ht({queryArgs:Bn,endpointDefinition:An,endpointName:Gn});return Je.get(Lr)?.[Un]}}function zt(Gn,Bn){return Lr=>ye.get(Lr)?.[Bn]}function un(){return Gn=>Object.values(Je.get(Gn)||{}).filter(R)}function hn(){return Gn=>Object.values(ye.get(Gn)||{}).filter(R)}function xt(Gn){}function _t(Gn,Bn){const Lr=(An,{subscribe:Un=!0,forceRefetch:cr,subscriptionOptions:mr,[Tn]:hr,...ar}={})=>(Cr,Yr)=>{const Xr=ht({queryArgs:An,endpointDefinition:Bn,endpointName:Gn});let ni;const ki={...ar,type:"query",subscribe:Un,forceRefetch:cr,subscriptionOptions:mr,endpointName:Gn,originalArgs:An,queryCacheKey:Xr,[Tn]:hr};if(tt(Bn))ni=De(ki);else{const{direction:Oi,initialPageParam:de}=ar;ni=we({...ki,direction:Oi,initialPageParam:de})}const zr=be.endpoints[Gn].select(An),Ur=Cr(ni),jt=zr(Yr());const{requestId:sn,abort:Rn}=Ur,H=jt.requestId!==sn,Be=Je.get(Cr)?.[Xr],wn=()=>zr(Yr()),bi=Object.assign(hr?Ur.then(wn):H&&!Be?Promise.resolve(jt):Promise.all([Be,Ur]).then(wn),{arg:An,requestId:sn,subscriptionOptions:mr,queryCacheKey:Xr,abort:Rn,async unwrap(){const Oi=await bi;if(Oi.isError)throw Oi.error;return Oi.data},refetch:()=>Cr(Lr(An,{subscribe:!1,forceRefetch:!0})),unsubscribe(){Un&&Cr(Qe({queryCacheKey:Xr,requestId:sn}))},updateSubscriptionOptions(Oi){bi.subscriptionOptions=Oi,Cr(qe({endpointName:Gn,requestId:sn,queryCacheKey:Xr,options:Oi}))}});if(!Be&&!H&&!hr){const Oi=U(Je,Cr,{});Oi[Xr]=bi,bi.then(()=>{delete Oi[Xr],m(Oi)||Je.delete(Cr)})}return bi};return Lr}function qt(Gn,Bn){return _t(Gn,Bn)}function fn(Gn,Bn){return _t(Gn,Bn)}function On(Gn){return(Bn,{track:Lr=!0,fixedCacheKey:An}={})=>(Un,cr)=>{const mr=Ke({type:"mutation",endpointName:Gn,originalArgs:Bn,track:Lr,fixedCacheKey:An}),hr=Un(mr);const{requestId:ar,abort:Cr,unwrap:Yr}=hr,Xr=Wt(hr.unwrap().then(Ur=>({data:Ur})),Ur=>({error:Ur})),ni=()=>{Un(ze({requestId:ar,fixedCacheKey:An}))},ki=Object.assign(Xr,{arg:hr.arg,requestId:ar,abort:Cr,unwrap:Yr,reset:ni}),zr=ye.get(Un)||{};return ye.set(Un,zr),zr[ar]=ki,ki.then(()=>{delete zr[ar],m(zr)||ye.delete(Un)}),An&&(zr[An]=ki,ki.then(()=>{zr[An]===ki&&(delete zr[An],m(zr)||ye.delete(Un))})),ki}}}var Ct=class extends f.A{constructor(ht,De,we,Ke){super(ht),this.value=De,this.schemaName=we,this._bqMeta=Ke}},Z=(ht,De)=>Array.isArray(ht)?ht.includes(De):!!ht;async function me(ht,De,we,Ke){const be=await ht["~standard"].validate(De);if(be.issues)throw new Ct(be.issues,De,we,Ke);return be.value}function ke(ht){return ht}var Ee=(ht={})=>({...ht,[g.cN]:!0});function _e({reducerPath:ht,baseQuery:De,context:{endpointDefinitions:we},serializeQueryArgs:Ke,api:be,assertTagType:pt,selectors:We,onSchemaFailure:Je,catchSchemaFailure:ye,skipSchemaValidation:Qe}){const ze=(mr,hr,ar,Cr)=>(Yr,Xr)=>{const ni=we[mr],ki=Ke({queryArgs:hr,endpointDefinition:ni,endpointName:mr});if(Yr(be.internalActions.queryResultPatched({queryCacheKey:ki,patches:ar})),!Cr)return;const zr=be.endpoints[mr].select(hr)(Xr()),Ur=Rt(ni.providesTags,zr.data,void 0,hr,{},pt);Yr(be.internalActions.updateProvidedBy([{queryCacheKey:ki,providedTags:Ur}]))};function qe(mr,hr,ar=0){const Cr=[hr,...mr];return ar&&Cr.length>ar?Cr.slice(0,-1):Cr}function Pt(mr,hr,ar=0){const Cr=[...mr,hr];return ar&&Cr.length>ar?Cr.slice(1):Cr}const zt=(mr,hr,ar,Cr=!0)=>(Yr,Xr)=>{const ki=be.endpoints[mr].select(hr)(Xr()),zr={patches:[],inversePatches:[],undo:()=>Yr(be.util.patchQueryData(mr,hr,zr.inversePatches,Cr))};if(ki.status==="uninitialized")return zr;let Ur;if("data"in ki)if((0,y.a6)(ki.data)){const[jt,sn,Rn]=(0,y.vI)(ki.data,ar);zr.patches.push(...sn),zr.inversePatches.push(...Rn),Ur=jt}else Ur=ar(ki.data),zr.patches.push({op:"replace",path:[],value:Ur}),zr.inversePatches.push({op:"replace",path:[],value:ki.data});return zr.patches.length===0||Yr(be.util.patchQueryData(mr,hr,zr.patches,Cr)),zr},un=(mr,hr,ar)=>Cr=>Cr(be.endpoints[mr].initiate(hr,{subscribe:!1,forceRefetch:!0,[Tn]:()=>({data:ar})})),hn=(mr,hr)=>mr.query&&mr[hr]?mr[hr]:ke,xt=async(mr,{signal:hr,abort:ar,rejectWithValue:Cr,fulfillWithValue:Yr,dispatch:Xr,getState:ni,extra:ki})=>{const zr=we[mr.endpointName],{metaSchema:Ur,skipSchemaValidation:jt=Qe}=zr;try{let sn=ke;const Rn={signal:hr,abort:ar,dispatch:Xr,getState:ni,extra:ki,endpoint:mr.endpointName,type:mr.type,forced:mr.type==="query"?_t(mr,ni()):void 0,queryCacheKey:mr.type==="query"?mr.queryCacheKey:void 0},H=mr.type==="query"?mr[Tn]:void 0;let Be;const wn=async(Oi,de,Ve,vt)=>{if(de==null&&Oi.pages.length)return Promise.resolve({data:Oi});const Qt={queryArg:mr.originalArgs,pageParam:de},nt=await bi(Qt),Tt=vt?qe:Pt;return{data:{pages:Tt(Oi.pages,nt.data,Ve),pageParams:Tt(Oi.pageParams,de,Ve)},meta:nt.meta}};async function bi(Oi){let de;const{extraOptions:Ve,argSchema:vt,rawResponseSchema:Qt,responseSchema:nt}=zr;if(vt&&!Z(jt,"arg")&&(Oi=await me(vt,Oi,"argSchema",{})),H?de=H():zr.query?(sn=hn(zr,"transformResponse"),de=await De(zr.query(Oi),Rn,Ve)):de=await zr.queryFn(Oi,Rn,Ve,En=>De(En,Rn,Ve)),typeof process<"u",de.error)throw new se(de.error,de.meta);let{data:Tt}=de;Qt&&!Z(jt,"rawResponse")&&(Tt=await me(Qt,de.data,"rawResponseSchema",de.meta));let Gt=await sn(Tt,de.meta,Oi);return nt&&!Z(jt,"response")&&(Gt=await me(nt,Gt,"responseSchema",de.meta)),{...de,data:Gt}}if(mr.type==="query"&&"infiniteQueryOptions"in zr){const{infiniteQueryOptions:Oi}=zr,{maxPages:de=1/0}=Oi;let Ve;const vt={pages:[],pageParams:[]},Qt=We.selectQueryEntry(ni(),mr.queryCacheKey)?.data,Tt=_t(mr,ni())&&!mr.direction||!Qt?vt:Qt;if("direction"in mr&&mr.direction&&Tt.pages.length){const Gt=mr.direction==="backward",Qn=(Gt?Me:ge)(Oi,Tt,mr.originalArgs);Ve=await wn(Tt,Qn,de,Gt)}else{const{initialPageParam:Gt=Oi.initialPageParam}=mr,En=Qt?.pageParams??[],Qn=En[0]??Gt,Or=En.length;Ve=await wn(Tt,Qn,de),H&&(Ve={data:Ve.data.pages[0]});for(let Pr=1;Pr<Or;Pr++){const ai=ge(Oi,Ve.data,mr.originalArgs);Ve=await wn(Ve.data,ai,de)}}Be=Ve}else Be=await bi(mr.originalArgs);return Ur&&!Z(jt,"meta")&&Be.meta&&(Be.meta=await me(Ur,Be.meta,"metaSchema",Be.meta)),Yr(Be.data,Ee({fulfilledTimeStamp:Date.now(),baseQueryMeta:Be.meta}))}catch(sn){let Rn=sn;if(Rn instanceof se){let H=hn(zr,"transformErrorResponse");const{rawErrorResponseSchema:Be,errorResponseSchema:wn}=zr;let{value:bi,meta:Oi}=Rn;try{Be&&!Z(jt,"rawErrorResponse")&&(bi=await me(Be,bi,"rawErrorResponseSchema",Oi)),Ur&&!Z(jt,"meta")&&(Oi=await me(Ur,Oi,"metaSchema",Oi));let de=await H(bi,Oi,mr.originalArgs);return wn&&!Z(jt,"errorResponse")&&(de=await me(wn,de,"errorResponseSchema",Oi)),Cr(de,Ee({baseQueryMeta:Oi}))}catch(de){Rn=de}}try{if(Rn instanceof Ct){const H={endpoint:mr.endpointName,arg:mr.originalArgs,type:mr.type,queryCacheKey:mr.type==="query"?mr.queryCacheKey:void 0};zr.onSchemaFailure?.(Rn,H),Je?.(Rn,H);const{catchSchemaFailure:Be=ye}=zr;if(Be)return Cr(Be(Rn,H),Ee({baseQueryMeta:Rn._bqMeta}))}}catch(H){Rn=H}throw typeof process<"u",console.error(Rn),Rn}};function _t(mr,hr){const ar=We.selectQueryEntry(hr,mr.queryCacheKey),Cr=We.selectConfig(hr).refetchOnMountOrArgChange,Yr=ar?.fulfilledTimeStamp,Xr=mr.forceRefetch??(mr.subscribe&&Cr);return Xr?Xr===!0||(Number(new Date)-Number(Yr))/1e3>=Xr:!1}const qt=()=>(0,g.zD)(`${ht}/executeQuery`,xt,{getPendingMeta({arg:hr}){const ar=we[hr.endpointName];return Ee({startedTimeStamp:Date.now(),...Ne(ar)?{direction:hr.direction}:{}})},condition(hr,{getState:ar}){const Cr=ar(),Yr=We.selectQueryEntry(Cr,hr.queryCacheKey),Xr=Yr?.fulfilledTimeStamp,ni=hr.originalArgs,ki=Yr?.originalArgs,zr=we[hr.endpointName],Ur=hr.direction;return bn(hr)?!0:Yr?.status==="pending"?!1:_t(hr,Cr)||tt(zr)&&zr?.forceRefetch?.({currentArg:ni,previousArg:ki,endpointState:Yr,state:Cr})?!0:!(Xr&&!Ur)},dispatchConditionRejection:!0}),fn=qt(),On=qt(),Gn=(0,g.zD)(`${ht}/executeMutation`,xt,{getPendingMeta(){return Ee({startedTimeStamp:Date.now()})}}),Bn=mr=>"force"in mr,Lr=mr=>"ifOlderThan"in mr,An=(mr,hr,ar)=>(Cr,Yr)=>{const Xr=Bn(ar)&&ar.force,ni=Lr(ar)&&ar.ifOlderThan,ki=(Ur=!0)=>{const jt={forceRefetch:Ur,isPrefetch:!0};return be.endpoints[mr].initiate(hr,jt)},zr=be.endpoints[mr].select(hr)(Yr());if(Xr)Cr(ki());else if(ni){const Ur=zr?.fulfilledTimeStamp;if(!Ur){Cr(ki());return}(Number(new Date)-Number(new Date(Ur)))/1e3>=ni&&Cr(ki())}else Cr(ki(!1))};function Un(mr){return hr=>hr?.meta?.arg?.endpointName===mr}function cr(mr,hr){return{matchPending:(0,g.f$)((0,g.mm)(mr),Un(hr)),matchFulfilled:(0,g.f$)((0,g.sf)(mr),Un(hr)),matchRejected:(0,g.f$)((0,g.TK)(mr),Un(hr))}}return{queryThunk:fn,mutationThunk:Gn,infiniteQueryThunk:On,prefetch:An,updateQueryData:zt,upsertQueryData:un,patchQueryData:ze,buildMatchThunkActions:cr}}function ge(ht,{pages:De,pageParams:we},Ke){const be=De.length-1;return ht.getNextPageParam(De[be],De,we[be],we,Ke)}function Me(ht,{pages:De,pageParams:we},Ke){return ht.getPreviousPageParam?.(De[0],De,we[0],we,Ke)}function lt(ht,De,we,Ke){return Rt(we[ht.meta.arg.endpointName][De],(0,g.sf)(ht)?ht.payload:void 0,(0,g.WA)(ht)?ht.payload:void 0,ht.meta.arg.originalArgs,"baseQueryMeta"in ht.meta?ht.meta.baseQueryMeta:void 0,Ke)}function Ft(ht,De,we){const Ke=ht[De];Ke&&we(Ke)}function Et(ht){return("arg"in ht?ht.arg.fixedCacheKey:ht.fixedCacheKey)??ht.requestId}function Zt(ht,De,we){const Ke=ht[Et(De)];Ke&&we(Ke)}var nn={};function Pn({reducerPath:ht,queryThunk:De,mutationThunk:we,serializeQueryArgs:Ke,context:{endpointDefinitions:be,apiUid:pt,extractRehydrationInfo:We,hasRehydrationInfo:Je},assertTagType:ye,config:Qe}){const ze=(0,g.VP)(`${ht}/resetApiState`);function qe(Un,cr,mr,hr){Un[cr.queryCacheKey]??={status:"uninitialized",endpointName:cr.endpointName},Ft(Un,cr.queryCacheKey,ar=>{ar.status="pending",ar.requestId=mr&&ar.requestId?ar.requestId:hr.requestId,cr.originalArgs!==void 0&&(ar.originalArgs=cr.originalArgs),ar.startedTimeStamp=hr.startedTimeStamp;const Cr=be[hr.arg.endpointName];Ne(Cr)&&"direction"in cr&&(ar.direction=cr.direction)})}function Pt(Un,cr,mr,hr){Ft(Un,cr.arg.queryCacheKey,ar=>{if(ar.requestId!==cr.requestId&&!hr)return;const{merge:Cr}=be[cr.arg.endpointName];if(ar.status="fulfilled",Cr)if(ar.data!==void 0){const{fulfilledTimeStamp:Yr,arg:Xr,baseQueryMeta:ni,requestId:ki}=cr;let zr=(0,y.jM)(ar.data,Ur=>Cr(Ur,mr,{arg:Xr.originalArgs,baseQueryMeta:ni,fulfilledTimeStamp:Yr,requestId:ki}));ar.data=zr}else ar.data=mr;else ar.data=be[cr.arg.endpointName].structuralSharing??!0?v((0,y.Qx)(ar.data)?(0,y.c2)(ar.data):ar.data,mr):mr;delete ar.error,ar.fulfilledTimeStamp=cr.fulfilledTimeStamp})}const zt=(0,g.Z0)({name:`${ht}/queries`,initialState:nn,reducers:{removeQueryResult:{reducer(Un,{payload:{queryCacheKey:cr}}){delete Un[cr]},prepare:(0,g.aA)()},cacheEntriesUpserted:{reducer(Un,cr){for(const mr of cr.payload){const{queryDescription:hr,value:ar}=mr;qe(Un,hr,!0,{arg:hr,requestId:cr.meta.requestId,startedTimeStamp:cr.meta.timestamp}),Pt(Un,{arg:hr,requestId:cr.meta.requestId,fulfilledTimeStamp:cr.meta.timestamp,baseQueryMeta:{}},ar,!0)}},prepare:Un=>({payload:Un.map(hr=>{const{endpointName:ar,arg:Cr,value:Yr}=hr,Xr=be[ar];return{queryDescription:{type:"query",endpointName:ar,originalArgs:hr.arg,queryCacheKey:Ke({queryArgs:Cr,endpointDefinition:Xr,endpointName:ar})},value:Yr}}),meta:{[g.cN]:!0,requestId:(0,g.Ak)(),timestamp:Date.now()}})},queryResultPatched:{reducer(Un,{payload:{queryCacheKey:cr,patches:mr}}){Ft(Un,cr,hr=>{hr.data=(0,y.$i)(hr.data,mr.concat())})},prepare:(0,g.aA)()}},extraReducers(Un){Un.addCase(De.pending,(cr,{meta:mr,meta:{arg:hr}})=>{const ar=bn(hr);qe(cr,hr,ar,mr)}).addCase(De.fulfilled,(cr,{meta:mr,payload:hr})=>{const ar=bn(mr.arg);Pt(cr,mr,hr,ar)}).addCase(De.rejected,(cr,{meta:{condition:mr,arg:hr,requestId:ar},error:Cr,payload:Yr})=>{Ft(cr,hr.queryCacheKey,Xr=>{if(!mr){if(Xr.requestId!==ar)return;Xr.status="rejected",Xr.error=Yr??Cr}})}).addMatcher(Je,(cr,mr)=>{const{queries:hr}=We(mr);for(const[ar,Cr]of Object.entries(hr))(Cr?.status==="fulfilled"||Cr?.status==="rejected")&&(cr[ar]=Cr)})}}),un=(0,g.Z0)({name:`${ht}/mutations`,initialState:nn,reducers:{removeMutationResult:{reducer(Un,{payload:cr}){const mr=Et(cr);mr in Un&&delete Un[mr]},prepare:(0,g.aA)()}},extraReducers(Un){Un.addCase(we.pending,(cr,{meta:mr,meta:{requestId:hr,arg:ar,startedTimeStamp:Cr}})=>{ar.track&&(cr[Et(mr)]={requestId:hr,status:"pending",endpointName:ar.endpointName,startedTimeStamp:Cr})}).addCase(we.fulfilled,(cr,{payload:mr,meta:hr})=>{hr.arg.track&&Zt(cr,hr,ar=>{ar.requestId===hr.requestId&&(ar.status="fulfilled",ar.data=mr,ar.fulfilledTimeStamp=hr.fulfilledTimeStamp)})}).addCase(we.rejected,(cr,{payload:mr,error:hr,meta:ar})=>{ar.arg.track&&Zt(cr,ar,Cr=>{Cr.requestId===ar.requestId&&(Cr.status="rejected",Cr.error=mr??hr)})}).addMatcher(Je,(cr,mr)=>{const{mutations:hr}=We(mr);for(const[ar,Cr]of Object.entries(hr))(Cr?.status==="fulfilled"||Cr?.status==="rejected")&&ar!==Cr?.requestId&&(cr[ar]=Cr)})}}),hn={tags:{},keys:{}},xt=(0,g.Z0)({name:`${ht}/invalidation`,initialState:hn,reducers:{updateProvidedBy:{reducer(Un,cr){for(const{queryCacheKey:mr,providedTags:hr}of cr.payload){_t(Un,mr);for(const{type:ar,id:Cr}of hr){const Yr=(Un.tags[ar]??={})[Cr||"__internal_without_id"]??=[];Yr.includes(mr)||Yr.push(mr)}Un.keys[mr]=hr}},prepare:(0,g.aA)()}},extraReducers(Un){Un.addCase(zt.actions.removeQueryResult,(cr,{payload:{queryCacheKey:mr}})=>{_t(cr,mr)}).addMatcher(Je,(cr,mr)=>{const{provided:hr}=We(mr);for(const[ar,Cr]of Object.entries(hr.tags??{}))for(const[Yr,Xr]of Object.entries(Cr)){const ni=(cr.tags[ar]??={})[Yr||"__internal_without_id"]??=[];for(const ki of Xr)ni.includes(ki)||ni.push(ki),cr.keys[ki]=hr.keys[ki]}}).addMatcher((0,g.i0)((0,g.sf)(De),(0,g.WA)(De)),(cr,mr)=>{qt(cr,[mr])}).addMatcher(zt.actions.cacheEntriesUpserted.match,(cr,mr)=>{const hr=mr.payload.map(({queryDescription:ar,value:Cr})=>({type:"UNKNOWN",payload:Cr,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:ar}}));qt(cr,hr)})}});function _t(Un,cr){const mr=Un.keys[cr]??[];for(const hr of mr){const ar=hr.type,Cr=hr.id??"__internal_without_id",Yr=Un.tags[ar]?.[Cr];Yr&&(Un.tags[ar][Cr]=Yr.filter(Xr=>Xr!==cr))}delete Un.keys[cr]}function qt(Un,cr){const mr=cr.map(hr=>{const ar=lt(hr,"providesTags",be,ye),{queryCacheKey:Cr}=hr.meta.arg;return{queryCacheKey:Cr,providedTags:ar}});xt.caseReducers.updateProvidedBy(Un,xt.actions.updateProvidedBy(mr))}const fn=(0,g.Z0)({name:`${ht}/subscriptions`,initialState:nn,reducers:{updateSubscriptionOptions(Un,cr){},unsubscribeQueryResult(Un,cr){},internal_getRTKQSubscriptions(){}}}),On=(0,g.Z0)({name:`${ht}/internalSubscriptions`,initialState:nn,reducers:{subscriptionsUpdated:{reducer(Un,cr){return(0,y.$i)(Un,cr.payload)},prepare:(0,g.aA)()}}}),Gn=(0,g.Z0)({name:`${ht}/config`,initialState:{online:C(),focused:O(),middlewareRegistered:!1,...Qe},reducers:{middlewareRegistered(Un,{payload:cr}){Un.middlewareRegistered=Un.middlewareRegistered==="conflict"||pt!==cr?"conflict":!0}},extraReducers:Un=>{Un.addCase(ie,cr=>{cr.online=!0}).addCase(Te,cr=>{cr.online=!1}).addCase(X,cr=>{cr.focused=!0}).addCase(ue,cr=>{cr.focused=!1}).addMatcher(Je,cr=>({...cr}))}}),Bn=(0,l.combineReducers)({queries:zt.reducer,mutations:un.reducer,provided:xt.reducer,subscriptions:On.reducer,config:Gn.reducer}),Lr=(Un,cr)=>Bn(ze.match(cr)?void 0:Un,cr),An={...Gn.actions,...zt.actions,...fn.actions,...On.actions,...un.actions,...xt.actions,resetApiState:ze};return{reducer:Lr,actions:An}}var rn=Symbol.for("RTKQ/skipToken"),Vt={status:"uninitialized"},Kn=(0,y.jM)(Vt,()=>{}),ur=(0,y.jM)(Vt,()=>{});function on({serializeQueryArgs:ht,reducerPath:De,createSelector:we}){const Ke=fn=>Kn,be=fn=>ur;return{buildQuerySelector:Pt,buildInfiniteQuerySelector:zt,buildMutationSelector:un,selectInvalidatedBy:hn,selectCachedArgsForQuery:xt,selectApiState:We,selectQueries:Je,selectMutations:Qe,selectQueryEntry:ye,selectConfig:ze};function pt(fn){return{...fn,...h(fn.status)}}function We(fn){return fn[De]}function Je(fn){return We(fn)?.queries}function ye(fn,On){return Je(fn)?.[On]}function Qe(fn){return We(fn)?.mutations}function ze(fn){return We(fn)?.config}function qe(fn,On,Gn){return Bn=>{if(Bn===rn)return we(Ke,Gn);const Lr=ht({queryArgs:Bn,endpointDefinition:On,endpointName:fn});return we(Un=>ye(Un,Lr)??Kn,Gn)}}function Pt(fn,On){return qe(fn,On,pt)}function zt(fn,On){const{infiniteQueryOptions:Gn}=On;function Bn(Lr){const An={...Lr,...h(Lr.status)},{isLoading:Un,isError:cr,direction:mr}=An,hr=mr==="forward",ar=mr==="backward";return{...An,hasNextPage:_t(Gn,An.data,An.originalArgs),hasPreviousPage:qt(Gn,An.data,An.originalArgs),isFetchingNextPage:Un&&hr,isFetchingPreviousPage:Un&&ar,isFetchNextPageError:cr&&hr,isFetchPreviousPageError:cr&&ar}}return qe(fn,On,Bn)}function un(){return fn=>{let On;return typeof fn=="object"?On=Et(fn)??rn:On=fn,we(On===rn?be:Lr=>We(Lr)?.mutations?.[On]??ur,pt)}}function hn(fn,On){const Gn=fn[De],Bn=new Set;for(const Lr of On.filter(R).map(Mt)){const An=Gn.provided.tags[Lr.type];if(!An)continue;let Un=(Lr.id!==void 0?An[Lr.id]:S(Object.values(An)))??[];for(const cr of Un)Bn.add(cr)}return S(Array.from(Bn.values()).map(Lr=>{const An=Gn.queries[Lr];return An?[{queryCacheKey:Lr,endpointName:An.endpointName,originalArgs:An.originalArgs}]:[]}))}function xt(fn,On){return Object.values(Je(fn)).filter(Gn=>Gn?.endpointName===On&&Gn.status!=="uninitialized").map(Gn=>Gn.originalArgs)}function _t(fn,On,Gn){return On?ge(fn,On,Gn)!=null:!1}function qt(fn,On,Gn){return!On||!fn.getPreviousPageParam?!1:Me(fn,On,Gn)!=null}}var tr=WeakMap?new WeakMap:void 0,Cn=({endpointName:ht,queryArgs:De})=>{let we="";const Ke=tr?.get(De);if(typeof Ke=="string")we=Ke;else{const be=JSON.stringify(De,(pt,We)=>(We=typeof We=="bigint"?{$bigint:We.toString()}:We,We=(0,l.isPlainObject)(We)?Object.keys(We).sort().reduce((Je,ye)=>(Je[ye]=We[ye],Je),{}):We,We));(0,l.isPlainObject)(De)&&tr?.set(De,be),we=be}return`${ht}(${we})`};function Wn(...ht){return function(we){const Ke=(0,x.X4)(Qe=>we.extractRehydrationInfo?.(Qe,{reducerPath:we.reducerPath??"api"})),be={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...we,extractRehydrationInfo:Ke,serializeQueryArgs(Qe){let ze=Cn;if("serializeQueryArgs"in Qe.endpointDefinition){const qe=Qe.endpointDefinition.serializeQueryArgs;ze=Pt=>{const zt=qe(Pt);return typeof zt=="string"?zt:Cn({...Pt,queryArgs:zt})}}else we.serializeQueryArgs&&(ze=we.serializeQueryArgs);return ze(Qe)},tagTypes:[...we.tagTypes||[]]},pt={endpointDefinitions:{},batch(Qe){Qe()},apiUid:(0,g.Ak)(),extractRehydrationInfo:Ke,hasRehydrationInfo:(0,x.X4)(Qe=>Ke(Qe)!=null)},We={injectEndpoints:ye,enhanceEndpoints({addTagTypes:Qe,endpoints:ze}){if(Qe)for(const qe of Qe)be.tagTypes.includes(qe)||be.tagTypes.push(qe);if(ze)for(const[qe,Pt]of Object.entries(ze))typeof Pt=="function"?Pt(pt.endpointDefinitions[qe]):Object.assign(pt.endpointDefinitions[qe]||{},Pt);return We}},Je=ht.map(Qe=>Qe.init(We,be,pt));function ye(Qe){const ze=Qe.endpoints({query:qe=>({...qe,type:"query"}),mutation:qe=>({...qe,type:"mutation"}),infiniteQuery:qe=>({...qe,type:"infinitequery"})});for(const[qe,Pt]of Object.entries(ze)){if(Qe.overrideExisting!==!0&&qe in pt.endpointDefinitions){if(Qe.overrideExisting==="throw")throw new Error((0,g.gk)(39));typeof process<"u";continue}typeof process<"u",pt.endpointDefinitions[qe]=Pt;for(const zt of Je)zt.injectEndpoint(qe,Pt)}return We}return We.injectEndpoints({endpoints:we.endpoints})}}var er=null;function Fn(){return function(){throw new Error(_formatProdErrorMessage4(33))}}function en(ht){}function gn(ht,...De){return Object.assign(ht,...De)}var kn=({api:ht,queryThunk:De,internalState:we,mwApi:Ke})=>{const be=`${ht.reducerPath}/subscriptions`;let pt=null,We=null;const{updateSubscriptionOptions:Je,unsubscribeQueryResult:ye}=ht.internalActions,Qe=(hn,xt)=>{if(Je.match(xt)){const{queryCacheKey:qt,requestId:fn,options:On}=xt.payload,Gn=hn.get(qt);return Gn?.has(fn)&&Gn.set(fn,On),!0}if(ye.match(xt)){const{queryCacheKey:qt,requestId:fn}=xt.payload,On=hn.get(qt);return On&&On.delete(fn),!0}if(ht.internalActions.removeQueryResult.match(xt))return hn.delete(xt.payload.queryCacheKey),!0;if(De.pending.match(xt)){const{meta:{arg:qt,requestId:fn}}=xt,On=$(hn,qt.queryCacheKey,ee);return qt.subscribe&&On.set(fn,qt.subscriptionOptions??On.get(fn)??{}),!0}let _t=!1;if(De.rejected.match(xt)){const{meta:{condition:qt,arg:fn,requestId:On}}=xt;if(qt&&fn.subscribe){const Gn=$(hn,fn.queryCacheKey,ee);Gn.set(On,fn.subscriptionOptions??Gn.get(On)??{}),_t=!0}}return _t},ze=()=>we.currentSubscriptions,zt={getSubscriptions:ze,getSubscriptionCount:hn=>ze().get(hn)?.size??0,isRequestSubscribed:(hn,xt)=>!!ze()?.get(hn)?.get(xt)};function un(hn){return JSON.parse(JSON.stringify(Object.fromEntries([...hn].map(([xt,_t])=>[xt,Object.fromEntries(_t)]))))}return(hn,xt)=>{if(pt||(pt=un(we.currentSubscriptions)),ht.util.resetApiState.match(hn))return pt={},we.currentSubscriptions.clear(),We=null,[!0,!1];if(ht.internalActions.internal_getRTKQSubscriptions.match(hn))return[!1,zt];const _t=Qe(we.currentSubscriptions,hn);let qt=!0;if(_t){We||(We=setTimeout(()=>{const Gn=un(we.currentSubscriptions),[,Bn]=(0,y.vI)(pt,()=>Gn);xt.next(ht.internalActions.subscriptionsUpdated(Bn)),pt=Gn,We=null},500));const fn=typeof hn.type=="string"&&!!hn.type.startsWith(be),On=De.rejected.match(hn)&&hn.meta.condition&&!!hn.meta.arg.subscribe;qt=!fn&&!On}return[qt,!1]}},Jn=2147483647/1e3-1,Nn=({reducerPath:ht,api:De,queryThunk:we,context:Ke,internalState:be,selectors:{selectQueryEntry:pt,selectConfig:We},getRunningQueryThunk:Je,mwApi:ye})=>{const{removeQueryResult:Qe,unsubscribeQueryResult:ze,cacheEntriesUpserted:qe}=De.internalActions,Pt=be.runningQueries.get(ye.dispatch),zt=(0,g.i0)(ze.match,we.fulfilled,we.rejected,qe.match);function un(fn){const On=be.currentSubscriptions.get(fn);if(!On)return!1;const Gn=On.size>0,Bn=Pt?.[fn]!==void 0;return Gn||Bn}const hn={},xt=(fn,On,Gn)=>{const Bn=On.getState(),Lr=We(Bn);if(zt(fn)){let An;if(qe.match(fn))An=fn.payload.map(Un=>Un.queryDescription.queryCacheKey);else{const{queryCacheKey:Un}=ze.match(fn)?fn.payload:fn.meta.arg;An=[Un]}_t(An,On,Lr)}if(De.util.resetApiState.match(fn))for(const[An,Un]of Object.entries(hn))Un&&clearTimeout(Un),delete hn[An];if(Ke.hasRehydrationInfo(fn)){const{queries:An}=Ke.extractRehydrationInfo(fn);_t(Object.keys(An),On,Lr)}};function _t(fn,On,Gn){const Bn=On.getState();for(const Lr of fn){const An=pt(Bn,Lr);An?.endpointName&&qt(Lr,An.endpointName,On,Gn)}}function qt(fn,On,Gn,Bn){const An=Ke.endpointDefinitions[On]?.keepUnusedDataFor??Bn.keepUnusedDataFor;if(An===1/0)return;const Un=Math.max(0,Math.min(An,Jn));if(!un(fn)){const cr=hn[fn];cr&&clearTimeout(cr),hn[fn]=setTimeout(()=>{if(!un(fn)){const mr=pt(Gn.getState(),fn);mr?.endpointName&&Gn.dispatch(Je(mr.endpointName,mr.originalArgs))?.abort(),Gn.dispatch(Qe({queryCacheKey:fn}))}delete hn[fn]},Un*1e3)}}return xt},kr=new Error("Promise never resolved before cacheEntryRemoved."),bt=({api:ht,reducerPath:De,context:we,queryThunk:Ke,mutationThunk:be,internalState:pt,selectors:{selectQueryEntry:We,selectApiState:Je}})=>{const ye=(0,g.$S)(Ke),Qe=(0,g.$S)(be),ze=(0,g.sf)(Ke,be),qe={};function Pt(_t,qt,fn){const On=qe[_t];On?.valueResolved&&(On.valueResolved({data:qt,meta:fn}),delete On.valueResolved)}function zt(_t){const qt=qe[_t];qt&&(delete qe[_t],qt.cacheEntryRemoved())}const un=(_t,qt,fn)=>{const On=hn(_t);function Gn(Bn,Lr,An,Un){const cr=We(fn,Lr),mr=We(qt.getState(),Lr);!cr&&mr&&xt(Bn,Un,Lr,qt,An)}if(Ke.pending.match(_t))Gn(_t.meta.arg.endpointName,On,_t.meta.requestId,_t.meta.arg.originalArgs);else if(ht.internalActions.cacheEntriesUpserted.match(_t))for(const{queryDescription:Bn,value:Lr}of _t.payload){const{endpointName:An,originalArgs:Un,queryCacheKey:cr}=Bn;Gn(An,cr,_t.meta.requestId,Un),Pt(cr,Lr,{})}else if(be.pending.match(_t))qt.getState()[De].mutations[On]&&xt(_t.meta.arg.endpointName,_t.meta.arg.originalArgs,On,qt,_t.meta.requestId);else if(ze(_t))Pt(On,_t.payload,_t.meta.baseQueryMeta);else if(ht.internalActions.removeQueryResult.match(_t)||ht.internalActions.removeMutationResult.match(_t))zt(On);else if(ht.util.resetApiState.match(_t))for(const Bn of Object.keys(qe))zt(Bn)};function hn(_t){return ye(_t)?_t.meta.arg.queryCacheKey:Qe(_t)?_t.meta.arg.fixedCacheKey??_t.meta.requestId:ht.internalActions.removeQueryResult.match(_t)?_t.payload.queryCacheKey:ht.internalActions.removeMutationResult.match(_t)?Et(_t.payload):""}function xt(_t,qt,fn,On,Gn){const Bn=we.endpointDefinitions[_t],Lr=Bn?.onCacheEntryAdded;if(!Lr)return;const An={},Un=new Promise(Yr=>{An.cacheEntryRemoved=Yr}),cr=Promise.race([new Promise(Yr=>{An.valueResolved=Yr}),Un.then(()=>{throw kr})]);cr.catch(()=>{}),qe[fn]=An;const mr=ht.endpoints[_t].select(it(Bn)?qt:fn),hr=On.dispatch((Yr,Xr,ni)=>ni),ar={...On,getCacheEntry:()=>mr(On.getState()),requestId:Gn,extra:hr,updateCachedData:it(Bn)?Yr=>On.dispatch(ht.util.updateQueryData(_t,qt,Yr)):void 0,cacheDataLoaded:cr,cacheEntryRemoved:Un},Cr=Lr(qt,ar);Promise.resolve(Cr).catch(Yr=>{if(Yr!==kr)throw Yr})}return un},ne=({api:ht,context:{apiUid:De},reducerPath:we})=>(Ke,be)=>{ht.util.resetApiState.match(Ke)&&be.dispatch(ht.internalActions.middlewareRegistered(De)),typeof process<"u"},fe=({reducerPath:ht,context:De,context:{endpointDefinitions:we},mutationThunk:Ke,queryThunk:be,api:pt,assertTagType:We,refetchQuery:Je,internalState:ye})=>{const{removeQueryResult:Qe}=pt.internalActions,ze=(0,g.i0)((0,g.sf)(Ke),(0,g.WA)(Ke)),qe=(0,g.i0)((0,g.sf)(Ke,be),(0,g.TK)(Ke,be));let Pt=[];const zt=(xt,_t)=>{ze(xt)?hn(lt(xt,"invalidatesTags",we,We),_t):qe(xt)?hn([],_t):pt.util.invalidateTags.match(xt)&&hn(Rt(xt.payload,void 0,void 0,void 0,void 0,We),_t)};function un(xt){const{queries:_t,mutations:qt}=xt;for(const fn of[_t,qt])for(const On in fn)if(fn[On]?.status==="pending")return!0;return!1}function hn(xt,_t){const qt=_t.getState(),fn=qt[ht];if(Pt.push(...xt),fn.config.invalidationBehavior==="delayed"&&un(fn))return;const On=Pt;if(Pt=[],On.length===0)return;const Gn=pt.util.selectInvalidatedBy(qt,On);De.batch(()=>{const Bn=Array.from(Gn.values());for(const{queryCacheKey:Lr}of Bn){const An=fn.queries[Lr],Un=$(ye.currentSubscriptions,Lr,ee);An&&(Un.size===0?_t.dispatch(Qe({queryCacheKey:Lr})):An.status!=="uninitialized"&&_t.dispatch(Je(An)))}})}return zt},K=({reducerPath:ht,queryThunk:De,api:we,refetchQuery:Ke,internalState:be})=>{const{currentPolls:pt,currentSubscriptions:We}=be,Je=new Set;let ye=null;const Qe=(_t,qt)=>{(we.internalActions.updateSubscriptionOptions.match(_t)||we.internalActions.unsubscribeQueryResult.match(_t))&&ze(_t.payload.queryCacheKey,qt),(De.pending.match(_t)||De.rejected.match(_t)&&_t.meta.condition)&&ze(_t.meta.arg.queryCacheKey,qt),(De.fulfilled.match(_t)||De.rejected.match(_t)&&!_t.meta.condition)&&Pt(_t.meta.arg,qt),we.util.resetApiState.match(_t)&&(hn(),ye&&(clearTimeout(ye),ye=null),Je.clear())};function ze(_t,qt){Je.add(_t),ye||(ye=setTimeout(()=>{for(const fn of Je)zt({queryCacheKey:fn},qt);Je.clear(),ye=null},0))}function qe(_t,qt){const On=qt.getState()[ht].queries[_t],Gn=We.get(_t);if(!(!On||On.status==="uninitialized"))return Gn}function Pt({queryCacheKey:_t},qt){const fn=qt.getState()[ht],On=fn.queries[_t],Gn=We.get(_t);if(!On||On.status==="uninitialized")return;const{lowestPollingInterval:Bn,skipPollingIfUnfocused:Lr}=xt(Gn);if(!Number.isFinite(Bn))return;const An=pt.get(_t);An?.timeout&&(clearTimeout(An.timeout),An.timeout=void 0);const Un=Date.now()+Bn;pt.set(_t,{nextPollTimestamp:Un,pollingInterval:Bn,timeout:setTimeout(()=>{(fn.config.focused||!Lr)&&qt.dispatch(Ke(On)),Pt({queryCacheKey:_t},qt)},Bn)})}function zt({queryCacheKey:_t},qt){const On=qt.getState()[ht].queries[_t],Gn=We.get(_t);if(!On||On.status==="uninitialized")return;const{lowestPollingInterval:Bn}=xt(Gn);if(!Number.isFinite(Bn)){un(_t);return}const Lr=pt.get(_t),An=Date.now()+Bn;(!Lr||An<Lr.nextPollTimestamp)&&Pt({queryCacheKey:_t},qt)}function un(_t){const qt=pt.get(_t);qt?.timeout&&clearTimeout(qt.timeout),pt.delete(_t)}function hn(){for(const _t of pt.keys())un(_t)}function xt(_t=new Map){let qt=!1,fn=Number.POSITIVE_INFINITY;for(const On of _t.values())On.pollingInterval&&(fn=Math.min(On.pollingInterval,fn),qt=On.skipPollingIfUnfocused||qt);return{lowestPollingInterval:fn,skipPollingIfUnfocused:qt}}return Qe},he=({api:ht,context:De,queryThunk:we,mutationThunk:Ke})=>{const be=(0,g.mm)(we,Ke),pt=(0,g.TK)(we,Ke),We=(0,g.sf)(we,Ke),Je={};return(Qe,ze)=>{if(be(Qe)){const{requestId:qe,arg:{endpointName:Pt,originalArgs:zt}}=Qe.meta,un=De.endpointDefinitions[Pt],hn=un?.onQueryStarted;if(hn){const xt={},_t=new Promise((Gn,Bn)=>{xt.resolve=Gn,xt.reject=Bn});_t.catch(()=>{}),Je[qe]=xt;const qt=ht.endpoints[Pt].select(it(un)?zt:qe),fn=ze.dispatch((Gn,Bn,Lr)=>Lr),On={...ze,getCacheEntry:()=>qt(ze.getState()),requestId:qe,extra:fn,updateCachedData:it(un)?Gn=>ze.dispatch(ht.util.updateQueryData(Pt,zt,Gn)):void 0,queryFulfilled:_t};hn(zt,On)}}else if(We(Qe)){const{requestId:qe,baseQueryMeta:Pt}=Qe.meta;Je[qe]?.resolve({data:Qe.payload,meta:Pt}),delete Je[qe]}else if(pt(Qe)){const{requestId:qe,rejectedWithValue:Pt,baseQueryMeta:zt}=Qe.meta;Je[qe]?.reject({error:Qe.payload??Qe.error,isUnhandledError:!Pt,meta:zt}),delete Je[qe]}}},Fe=({reducerPath:ht,context:De,api:we,refetchQuery:Ke,internalState:be})=>{const{removeQueryResult:pt}=we.internalActions,We=(ye,Qe)=>{X.match(ye)&&Je(Qe,"refetchOnFocus"),ie.match(ye)&&Je(Qe,"refetchOnReconnect")};function Je(ye,Qe){const ze=ye.getState()[ht],qe=ze.queries,Pt=be.currentSubscriptions;De.batch(()=>{for(const zt of Pt.keys()){const un=qe[zt],hn=Pt.get(zt);if(!hn||!un)continue;const xt=[...hn.values()];(xt.some(qt=>qt[Qe]===!0)||xt.every(qt=>qt[Qe]===void 0)&&ze.config[Qe])&&(hn.size===0?ye.dispatch(pt({queryCacheKey:zt})):un.status!=="uninitialized"&&ye.dispatch(Ke(un)))}})}return We};function Nt(ht){const{reducerPath:De,queryThunk:we,api:Ke,context:be,internalState:pt}=ht,{apiUid:We}=be,Je={invalidateTags:(0,g.VP)(`${De}/invalidateTags`)},ye=Pt=>Pt.type.startsWith(`${De}/`),Qe=[ne,Nn,fe,K,bt,he];return{middleware:Pt=>{let zt=!1;const un={...ht,internalState:pt,refetchQuery:qe,isThisApiSliceAction:ye,mwApi:Pt},hn=Qe.map(qt=>qt(un)),xt=kn(un),_t=Fe(un);return qt=>fn=>{if(!(0,l.isAction)(fn))return qt(fn);zt||(zt=!0,Pt.dispatch(Ke.internalActions.middlewareRegistered(We)));const On={...Pt,next:qt},Gn=Pt.getState(),[Bn,Lr]=xt(fn,On,Gn);let An;if(Bn?An=qt(fn):An=Lr,Pt.getState()[De]&&(_t(fn,On,Gn),ye(fn)||be.hasRehydrationInfo(fn)))for(const Un of hn)Un(fn,On,Gn);return An}},actions:Je};function qe(Pt){return ht.api.endpoints[Pt.endpointName].initiate(Pt.originalArgs,{subscribe:!1,forceRefetch:!0})}}var ln=Symbol(),pn=({createSelector:ht=x.Mz}={})=>({name:ln,init(De,{baseQuery:we,tagTypes:Ke,reducerPath:be,serializeQueryArgs:pt,keepUnusedDataFor:We,refetchOnMountOrArgChange:Je,refetchOnFocus:ye,refetchOnReconnect:Qe,invalidationBehavior:ze,onSchemaFailure:qe,catchSchemaFailure:Pt,skipSchemaValidation:zt},un){(0,y.YT)();const hn=wn=>(typeof process<"u",wn);Object.assign(De,{reducerPath:be,endpoints:{},internalActions:{onOnline:ie,onOffline:Te,onFocus:X,onFocusLost:ue},util:{}});const xt=on({serializeQueryArgs:pt,reducerPath:be,createSelector:ht}),{selectInvalidatedBy:_t,selectCachedArgsForQuery:qt,buildQuerySelector:fn,buildInfiniteQuerySelector:On,buildMutationSelector:Gn}=xt;gn(De.util,{selectInvalidatedBy:_t,selectCachedArgsForQuery:qt});const{queryThunk:Bn,infiniteQueryThunk:Lr,mutationThunk:An,patchQueryData:Un,updateQueryData:cr,upsertQueryData:mr,prefetch:hr,buildMatchThunkActions:ar}=_e({baseQuery:we,reducerPath:be,context:un,api:De,serializeQueryArgs:pt,assertTagType:hn,selectors:xt,onSchemaFailure:qe,catchSchemaFailure:Pt,skipSchemaValidation:zt}),{reducer:Cr,actions:Yr}=Pn({context:un,queryThunk:Bn,infiniteQueryThunk:Lr,mutationThunk:An,serializeQueryArgs:pt,reducerPath:be,assertTagType:hn,config:{refetchOnFocus:ye,refetchOnReconnect:Qe,refetchOnMountOrArgChange:Je,keepUnusedDataFor:We,reducerPath:be,invalidationBehavior:ze}});gn(De.util,{patchQueryData:Un,updateQueryData:cr,upsertQueryData:mr,prefetch:hr,resetApiState:Yr.resetApiState,upsertQueryEntries:Yr.cacheEntriesUpserted}),gn(De.internalActions,Yr);const Xr={currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map},{buildInitiateQuery:ni,buildInitiateInfiniteQuery:ki,buildInitiateMutation:zr,getRunningMutationThunk:Ur,getRunningMutationsThunk:jt,getRunningQueriesThunk:sn,getRunningQueryThunk:Rn}=$t({queryThunk:Bn,mutationThunk:An,infiniteQueryThunk:Lr,api:De,serializeQueryArgs:pt,context:un,internalState:Xr});gn(De.util,{getRunningMutationThunk:Ur,getRunningMutationsThunk:jt,getRunningQueryThunk:Rn,getRunningQueriesThunk:sn});const{middleware:H,actions:Be}=Nt({reducerPath:be,context:un,queryThunk:Bn,mutationThunk:An,infiniteQueryThunk:Lr,api:De,assertTagType:hn,selectors:xt,getRunningQueryThunk:Rn,internalState:Xr});return gn(De.util,Be),gn(De,{reducer:Cr,middleware:H}),{name:ln,injectEndpoint(wn,bi){const Oi=De,de=Oi.endpoints[wn]??={};tt(bi)&&gn(de,{name:wn,select:fn(wn,bi),initiate:ni(wn,bi)},ar(Bn,wn)),Ze(bi)&&gn(de,{name:wn,select:Gn(),initiate:zr(wn)},ar(An,wn)),Ne(bi)&&gn(de,{name:wn,select:On(wn,bi),initiate:ki(wn,bi)},ar(Bn,wn))}}}}),Yn=Wn(pn())},10381:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var f=function(p,h){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,v){E.__proto__=v}||function(E,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(E[m]=v[m])},f(p,h)};return function(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");f(p,h);function E(){this.constructor=p}p.prototype=h===null?Object.create(h):(E.prototype=h.prototype,new E)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.ReplaySubject=void 0;var g=u(54427),y=u(93275),x=function(f){l(p,f);function p(h,E,v){h===void 0&&(h=1/0),E===void 0&&(E=1/0),v===void 0&&(v=y.dateTimestampProvider);var m=f.call(this)||this;return m._bufferSize=h,m._windowTime=E,m._timestampProvider=v,m._buffer=[],m._infiniteTimeWindow=!0,m._infiniteTimeWindow=E===1/0,m._bufferSize=Math.max(1,h),m._windowTime=Math.max(1,E),m}return p.prototype.next=function(h){var E=this,v=E.isStopped,m=E._buffer,S=E._infiniteTimeWindow,d=E._timestampProvider,O=E._windowTime;v||(m.push(h),!S&&m.push(d.now()+O)),this._trimBuffer(),f.prototype.next.call(this,h)},p.prototype._subscribe=function(h){this._throwIfClosed(),this._trimBuffer();for(var E=this._innerSubscribe(h),v=this,m=v._infiniteTimeWindow,S=v._buffer,d=S.slice(),O=0;O<d.length&&!h.closed;O+=m?1:2)h.next(d[O]);return this._checkFinalizedStatuses(h),E},p.prototype._trimBuffer=function(){var h=this,E=h._bufferSize,v=h._timestampProvider,m=h._buffer,S=h._infiniteTimeWindow,d=(S?1:2)*E;if(E<1/0&&d<m.length&&m.splice(0,m.length-d),!S){for(var O=v.now(),R=0,C=1;C<m.length&&m[C]<=O;C+=2)R=C;R&&m.splice(0,R+1)}},p}(g.Subject);w.ReplaySubject=x},10492:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=u;function u(){return!1}},10673:(Ge,w,u)=>{"use strict";var l;l={value:!0};var g=u(70788),y=u(93718);const x=" ".repeat(2),f=" ".repeat(4);function p(){return h(this)}function h(bt,ne={}){const{maxRows:fe=15,maxColumns:K=10,maxNumSize:he=8,padMinus:Fe="auto"}=ne;return`${bt.constructor.name} { ${x}[ ${f}${E(bt,fe,K,he,Fe)} ${x}] ${x}rows: ${bt.rows} ${x}columns: ${bt.columns} }`}function E(bt,ne,fe,K,he){const{rows:Fe,columns:Nt}=bt,ln=Math.min(Fe,ne),pn=Math.min(Nt,fe),Yn=[];if(he==="auto"){he=!1;e:for(let ht=0;ht<ln;ht++)for(let De=0;De<pn;De++)if(bt.get(ht,De)<0){he=!0;break e}}for(let ht=0;ht<ln;ht++){let De=[];for(let we=0;we<pn;we++)De.push(v(bt.get(ht,we),K,he));Yn.push(`${De.join(" ")}`)}return pn!==Nt&&(Yn[Yn.length-1]+=` ... ${Nt-fe} more columns`),ln!==Fe&&Yn.push(`... ${Fe-ne} more rows`),Yn.join(` ${f}`)}function v(bt,ne,fe){return(bt>=0&&fe?` ${m(bt,ne-1)}`:m(bt,ne)).padEnd(ne)}function m(bt,ne){let fe=bt.toString();if(fe.length<=ne)return fe;let K=bt.toFixed(ne);if(K.length>ne&&(K=bt.toFixed(Math.max(0,ne-(K.length-ne)))),K.length<=ne&&!K.startsWith("0.000")&&!K.startsWith("-0.000"))return K;let he=bt.toExponential(ne);return he.length>ne&&(he=bt.toExponential(Math.max(0,ne-(he.length-ne)))),he.slice(0)}function S(bt,ne){bt.prototype.add=function(K){return typeof K=="number"?this.addS(K):this.addM(K)},bt.prototype.addS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)+K);return this},bt.prototype.addM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)+K.get(he,Fe));return this},bt.add=function(K,he){return new ne(K).add(he)},bt.prototype.sub=function(K){return typeof K=="number"?this.subS(K):this.subM(K)},bt.prototype.subS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)-K);return this},bt.prototype.subM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)-K.get(he,Fe));return this},bt.sub=function(K,he){return new ne(K).sub(he)},bt.prototype.subtract=bt.prototype.sub,bt.prototype.subtractS=bt.prototype.subS,bt.prototype.subtractM=bt.prototype.subM,bt.subtract=bt.sub,bt.prototype.mul=function(K){return typeof K=="number"?this.mulS(K):this.mulM(K)},bt.prototype.mulS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)*K);return this},bt.prototype.mulM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)*K.get(he,Fe));return this},bt.mul=function(K,he){return new ne(K).mul(he)},bt.prototype.multiply=bt.prototype.mul,bt.prototype.multiplyS=bt.prototype.mulS,bt.prototype.multiplyM=bt.prototype.mulM,bt.multiply=bt.mul,bt.prototype.div=function(K){return typeof K=="number"?this.divS(K):this.divM(K)},bt.prototype.divS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)/K);return this},bt.prototype.divM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)/K.get(he,Fe));return this},bt.div=function(K,he){return new ne(K).div(he)},bt.prototype.divide=bt.prototype.div,bt.prototype.divideS=bt.prototype.divS,bt.prototype.divideM=bt.prototype.divM,bt.divide=bt.div,bt.prototype.mod=function(K){return typeof K=="number"?this.modS(K):this.modM(K)},bt.prototype.modS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)%K);return this},bt.prototype.modM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)%K.get(he,Fe));return this},bt.mod=function(K,he){return new ne(K).mod(he)},bt.prototype.modulus=bt.prototype.mod,bt.prototype.modulusS=bt.prototype.modS,bt.prototype.modulusM=bt.prototype.modM,bt.modulus=bt.mod,bt.prototype.and=function(K){return typeof K=="number"?this.andS(K):this.andM(K)},bt.prototype.andS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)&K);return this},bt.prototype.andM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)&K.get(he,Fe));return this},bt.and=function(K,he){return new ne(K).and(he)},bt.prototype.or=function(K){return typeof K=="number"?this.orS(K):this.orM(K)},bt.prototype.orS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)|K);return this},bt.prototype.orM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)|K.get(he,Fe));return this},bt.or=function(K,he){return new ne(K).or(he)},bt.prototype.xor=function(K){return typeof K=="number"?this.xorS(K):this.xorM(K)},bt.prototype.xorS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)^K);return this},bt.prototype.xorM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)^K.get(he,Fe));return this},bt.xor=function(K,he){return new ne(K).xor(he)},bt.prototype.leftShift=function(K){return typeof K=="number"?this.leftShiftS(K):this.leftShiftM(K)},bt.prototype.leftShiftS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)<<K);return this},bt.prototype.leftShiftM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)<<K.get(he,Fe));return this},bt.leftShift=function(K,he){return new ne(K).leftShift(he)},bt.prototype.signPropagatingRightShift=function(K){return typeof K=="number"?this.signPropagatingRightShiftS(K):this.signPropagatingRightShiftM(K)},bt.prototype.signPropagatingRightShiftS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)>>K);return this},bt.prototype.signPropagatingRightShiftM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)>>K.get(he,Fe));return this},bt.signPropagatingRightShift=function(K,he){return new ne(K).signPropagatingRightShift(he)},bt.prototype.rightShift=function(K){return typeof K=="number"?this.rightShiftS(K):this.rightShiftM(K)},bt.prototype.rightShiftS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)>>>K);return this},bt.prototype.rightShiftM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)>>>K.get(he,Fe));return this},bt.rightShift=function(K,he){return new ne(K).rightShift(he)},bt.prototype.zeroFillRightShift=bt.prototype.rightShift,bt.prototype.zeroFillRightShiftS=bt.prototype.rightShiftS,bt.prototype.zeroFillRightShiftM=bt.prototype.rightShiftM,bt.zeroFillRightShift=bt.rightShift,bt.prototype.not=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,~this.get(K,he));return this},bt.not=function(K){return new ne(K).not()},bt.prototype.abs=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.abs(this.get(K,he)));return this},bt.abs=function(K){return new ne(K).abs()},bt.prototype.acos=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.acos(this.get(K,he)));return this},bt.acos=function(K){return new ne(K).acos()},bt.prototype.acosh=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.acosh(this.get(K,he)));return this},bt.acosh=function(K){return new ne(K).acosh()},bt.prototype.asin=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.asin(this.get(K,he)));return this},bt.asin=function(K){return new ne(K).asin()},bt.prototype.asinh=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.asinh(this.get(K,he)));return this},bt.asinh=function(K){return new ne(K).asinh()},bt.prototype.atan=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.atan(this.get(K,he)));return this},bt.atan=function(K){return new ne(K).atan()},bt.prototype.atanh=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.atanh(this.get(K,he)));return this},bt.atanh=function(K){return new ne(K).atanh()},bt.prototype.cbrt=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.cbrt(this.get(K,he)));return this},bt.cbrt=function(K){return new ne(K).cbrt()},bt.prototype.ceil=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.ceil(this.get(K,he)));return this},bt.ceil=function(K){return new ne(K).ceil()},bt.prototype.clz32=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.clz32(this.get(K,he)));return this},bt.clz32=function(K){return new ne(K).clz32()},bt.prototype.cos=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.cos(this.get(K,he)));return this},bt.cos=function(K){return new ne(K).cos()},bt.prototype.cosh=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.cosh(this.get(K,he)));return this},bt.cosh=function(K){return new ne(K).cosh()},bt.prototype.exp=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.exp(this.get(K,he)));return this},bt.exp=function(K){return new ne(K).exp()},bt.prototype.expm1=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.expm1(this.get(K,he)));return this},bt.expm1=function(K){return new ne(K).expm1()},bt.prototype.floor=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.floor(this.get(K,he)));return this},bt.floor=function(K){return new ne(K).floor()},bt.prototype.fround=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.fround(this.get(K,he)));return this},bt.fround=function(K){return new ne(K).fround()},bt.prototype.log=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.log(this.get(K,he)));return this},bt.log=function(K){return new ne(K).log()},bt.prototype.log1p=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.log1p(this.get(K,he)));return this},bt.log1p=function(K){return new ne(K).log1p()},bt.prototype.log10=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.log10(this.get(K,he)));return this},bt.log10=function(K){return new ne(K).log10()},bt.prototype.log2=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.log2(this.get(K,he)));return this},bt.log2=function(K){return new ne(K).log2()},bt.prototype.round=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.round(this.get(K,he)));return this},bt.round=function(K){return new ne(K).round()},bt.prototype.sign=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.sign(this.get(K,he)));return this},bt.sign=function(K){return new ne(K).sign()},bt.prototype.sin=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.sin(this.get(K,he)));return this},bt.sin=function(K){return new ne(K).sin()},bt.prototype.sinh=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.sinh(this.get(K,he)));return this},bt.sinh=function(K){return new ne(K).sinh()},bt.prototype.sqrt=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.sqrt(this.get(K,he)));return this},bt.sqrt=function(K){return new ne(K).sqrt()},bt.prototype.tan=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.tan(this.get(K,he)));return this},bt.tan=function(K){return new ne(K).tan()},bt.prototype.tanh=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.tanh(this.get(K,he)));return this},bt.tanh=function(K){return new ne(K).tanh()},bt.prototype.trunc=function(){for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.set(K,he,Math.trunc(this.get(K,he)));return this},bt.trunc=function(K){return new ne(K).trunc()},bt.pow=function(K,he){return new ne(K).pow(he)},bt.prototype.pow=function(K){return typeof K=="number"?this.powS(K):this.powM(K)},bt.prototype.powS=function(K){for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)**K);return this},bt.prototype.powM=function(K){if(K=ne.checkMatrix(K),this.rows!==K.rows||this.columns!==K.columns)throw new RangeError("Matrices dimensions must be equal");for(let he=0;he<this.rows;he++)for(let Fe=0;Fe<this.columns;Fe++)this.set(he,Fe,this.get(he,Fe)**K.get(he,Fe));return this}}function d(bt,ne,fe){let K=fe?bt.rows:bt.rows-1;if(ne<0||ne>K)throw new RangeError("Row index out of range")}function O(bt,ne,fe){let K=fe?bt.columns:bt.columns-1;if(ne<0||ne>K)throw new RangeError("Column index out of range")}function R(bt,ne){if(ne.to1DArray&&(ne=ne.to1DArray()),ne.length!==bt.columns)throw new RangeError("vector size must be the same as the number of columns");return ne}function C(bt,ne){if(ne.to1DArray&&(ne=ne.to1DArray()),ne.length!==bt.rows)throw new RangeError("vector size must be the same as the number of rows");return ne}function L(bt,ne){if(!g.isAnyArray(ne))throw new TypeError("row indices must be an array");for(let fe=0;fe<ne.length;fe++)if(ne[fe]<0||ne[fe]>=bt.rows)throw new RangeError("row indices are out of range")}function j(bt,ne){if(!g.isAnyArray(ne))throw new TypeError("column indices must be an array");for(let fe=0;fe<ne.length;fe++)if(ne[fe]<0||ne[fe]>=bt.columns)throw new RangeError("column indices are out of range")}function I(bt,ne,fe,K,he){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if($("startRow",ne),$("endRow",fe),$("startColumn",K),$("endColumn",he),ne>fe||K>he||ne<0||ne>=bt.rows||fe<0||fe>=bt.rows||K<0||K>=bt.columns||he<0||he>=bt.columns)throw new RangeError("Submatrix indices are out of range")}function U(bt,ne=0){let fe=[];for(let K=0;K<bt;K++)fe.push(ne);return fe}function $(bt,ne){if(typeof ne!="number")throw new TypeError(`${bt} must be a number`)}function ee(bt){if(bt.isEmpty())throw new Error("Empty matrix has no elements to index")}function re(bt){let ne=U(bt.rows);for(let fe=0;fe<bt.rows;++fe)for(let K=0;K<bt.columns;++K)ne[fe]+=bt.get(fe,K);return ne}function Se(bt){let ne=U(bt.columns);for(let fe=0;fe<bt.rows;++fe)for(let K=0;K<bt.columns;++K)ne[K]+=bt.get(fe,K);return ne}function z(bt){let ne=0;for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)ne+=bt.get(fe,K);return ne}function Q(bt){let ne=U(bt.rows,1);for(let fe=0;fe<bt.rows;++fe)for(let K=0;K<bt.columns;++K)ne[fe]*=bt.get(fe,K);return ne}function ce(bt){let ne=U(bt.columns,1);for(let fe=0;fe<bt.rows;++fe)for(let K=0;K<bt.columns;++K)ne[K]*=bt.get(fe,K);return ne}function se(bt){let ne=1;for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)ne*=bt.get(fe,K);return ne}function q(bt,ne,fe){const K=bt.rows,he=bt.columns,Fe=[];for(let Nt=0;Nt<K;Nt++){let ln=0,pn=0,Yn=0;for(let ht=0;ht<he;ht++)Yn=bt.get(Nt,ht)-fe[Nt],ln+=Yn,pn+=Yn*Yn;ne?Fe.push((pn-ln*ln/he)/(he-1)):Fe.push((pn-ln*ln/he)/he)}return Fe}function te(bt,ne,fe){const K=bt.rows,he=bt.columns,Fe=[];for(let Nt=0;Nt<he;Nt++){let ln=0,pn=0,Yn=0;for(let ht=0;ht<K;ht++)Yn=bt.get(ht,Nt)-fe[Nt],ln+=Yn,pn+=Yn*Yn;ne?Fe.push((pn-ln*ln/K)/(K-1)):Fe.push((pn-ln*ln/K)/K)}return Fe}function A(bt,ne,fe){const K=bt.rows,he=bt.columns,Fe=K*he;let Nt=0,ln=0,pn=0;for(let Yn=0;Yn<K;Yn++)for(let ht=0;ht<he;ht++)pn=bt.get(Yn,ht)-fe,Nt+=pn,ln+=pn*pn;return ne?(ln-Nt*Nt/Fe)/(Fe-1):(ln-Nt*Nt/Fe)/Fe}function T(bt,ne){for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)bt.set(fe,K,bt.get(fe,K)-ne[fe])}function B(bt,ne){for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)bt.set(fe,K,bt.get(fe,K)-ne[K])}function X(bt,ne){for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)bt.set(fe,K,bt.get(fe,K)-ne)}function ue(bt){const ne=[];for(let fe=0;fe<bt.rows;fe++){let K=0;for(let he=0;he<bt.columns;he++)K+=bt.get(fe,he)**2/(bt.columns-1);ne.push(Math.sqrt(K))}return ne}function ie(bt,ne){for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)bt.set(fe,K,bt.get(fe,K)/ne[fe])}function Te(bt){const ne=[];for(let fe=0;fe<bt.columns;fe++){let K=0;for(let he=0;he<bt.rows;he++)K+=bt.get(he,fe)**2/(bt.rows-1);ne.push(Math.sqrt(K))}return ne}function je(bt,ne){for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)bt.set(fe,K,bt.get(fe,K)/ne[K])}function yt(bt){const ne=bt.size-1;let fe=0;for(let K=0;K<bt.columns;K++)for(let he=0;he<bt.rows;he++)fe+=bt.get(he,K)**2/ne;return Math.sqrt(fe)}function tt(bt,ne){for(let fe=0;fe<bt.rows;fe++)for(let K=0;K<bt.columns;K++)bt.set(fe,K,bt.get(fe,K)/ne)}class Ze{static from1DArray(ne,fe,K){if(ne*fe!==K.length)throw new RangeError("data length does not match given dimensions");let Fe=new Rt(ne,fe);for(let Nt=0;Nt<ne;Nt++)for(let ln=0;ln<fe;ln++)Fe.set(Nt,ln,K[Nt*fe+ln]);return Fe}static rowVector(ne){let fe=new Rt(1,ne.length);for(let K=0;K<ne.length;K++)fe.set(0,K,ne[K]);return fe}static columnVector(ne){let fe=new Rt(ne.length,1);for(let K=0;K<ne.length;K++)fe.set(K,0,ne[K]);return fe}static zeros(ne,fe){return new Rt(ne,fe)}static ones(ne,fe){return new Rt(ne,fe).fill(1)}static rand(ne,fe,K={}){if(typeof K!="object")throw new TypeError("options must be an object");const{random:he=Math.random}=K;let Fe=new Rt(ne,fe);for(let Nt=0;Nt<ne;Nt++)for(let ln=0;ln<fe;ln++)Fe.set(Nt,ln,he());return Fe}static randInt(ne,fe,K={}){if(typeof K!="object")throw new TypeError("options must be an object");const{min:he=0,max:Fe=1e3,random:Nt=Math.random}=K;if(!Number.isInteger(he))throw new TypeError("min must be an integer");if(!Number.isInteger(Fe))throw new TypeError("max must be an integer");if(he>=Fe)throw new RangeError("min must be smaller than max");let ln=Fe-he,pn=new Rt(ne,fe);for(let Yn=0;Yn<ne;Yn++)for(let ht=0;ht<fe;ht++){let De=he+Math.round(Nt()*ln);pn.set(Yn,ht,De)}return pn}static eye(ne,fe,K){fe===void 0&&(fe=ne),K===void 0&&(K=1);let he=Math.min(ne,fe),Fe=this.zeros(ne,fe);for(let Nt=0;Nt<he;Nt++)Fe.set(Nt,Nt,K);return Fe}static diag(ne,fe,K){let he=ne.length;fe===void 0&&(fe=he),K===void 0&&(K=fe);let Fe=Math.min(he,fe,K),Nt=this.zeros(fe,K);for(let ln=0;ln<Fe;ln++)Nt.set(ln,ln,ne[ln]);return Nt}static min(ne,fe){ne=this.checkMatrix(ne),fe=this.checkMatrix(fe);let K=ne.rows,he=ne.columns,Fe=new Rt(K,he);for(let Nt=0;Nt<K;Nt++)for(let ln=0;ln<he;ln++)Fe.set(Nt,ln,Math.min(ne.get(Nt,ln),fe.get(Nt,ln)));return Fe}static max(ne,fe){ne=this.checkMatrix(ne),fe=this.checkMatrix(fe);let K=ne.rows,he=ne.columns,Fe=new this(K,he);for(let Nt=0;Nt<K;Nt++)for(let ln=0;ln<he;ln++)Fe.set(Nt,ln,Math.max(ne.get(Nt,ln),fe.get(Nt,ln)));return Fe}static checkMatrix(ne){return Ze.isMatrix(ne)?ne:new Rt(ne)}static isMatrix(ne){return ne!=null&&ne.klass==="Matrix"}get size(){return this.rows*this.columns}apply(ne){if(typeof ne!="function")throw new TypeError("callback must be a function");for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)ne.call(this,fe,K);return this}to1DArray(){let ne=[];for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)ne.push(this.get(fe,K));return ne}to2DArray(){let ne=[];for(let fe=0;fe<this.rows;fe++){ne.push([]);for(let K=0;K<this.columns;K++)ne[fe].push(this.get(fe,K))}return ne}toJSON(){return this.to2DArray()}isRowVector(){return this.rows===1}isColumnVector(){return this.columns===1}isVector(){return this.rows===1||this.columns===1}isSquare(){return this.rows===this.columns}isEmpty(){return this.rows===0||this.columns===0}isSymmetric(){if(this.isSquare()){for(let ne=0;ne<this.rows;ne++)for(let fe=0;fe<=ne;fe++)if(this.get(ne,fe)!==this.get(fe,ne))return!1;return!0}return!1}isDistance(){if(!this.isSymmetric())return!1;for(let ne=0;ne<this.rows;ne++)if(this.get(ne,ne)!==0)return!1;return!0}isEchelonForm(){let ne=0,fe=0,K=-1,he=!0,Fe=!1;for(;ne<this.rows&&he;){for(fe=0,Fe=!1;fe<this.columns&&Fe===!1;)this.get(ne,fe)===0?fe++:this.get(ne,fe)===1&&fe>K?(Fe=!0,K=fe):(he=!1,Fe=!0);ne++}return he}isReducedEchelonForm(){let ne=0,fe=0,K=-1,he=!0,Fe=!1;for(;ne<this.rows&&he;){for(fe=0,Fe=!1;fe<this.columns&&Fe===!1;)this.get(ne,fe)===0?fe++:this.get(ne,fe)===1&&fe>K?(Fe=!0,K=fe):(he=!1,Fe=!0);for(let Nt=fe+1;Nt<this.rows;Nt++)this.get(ne,Nt)!==0&&(he=!1);ne++}return he}echelonForm(){let ne=this.clone(),fe=0,K=0;for(;fe<ne.rows&&K<ne.columns;){let he=fe;for(let Fe=fe;Fe<ne.rows;Fe++)ne.get(Fe,K)>ne.get(he,K)&&(he=Fe);if(ne.get(he,K)===0)K++;else{ne.swapRows(fe,he);let Fe=ne.get(fe,K);for(let Nt=K;Nt<ne.columns;Nt++)ne.set(fe,Nt,ne.get(fe,Nt)/Fe);for(let Nt=fe+1;Nt<ne.rows;Nt++){let ln=ne.get(Nt,K)/ne.get(fe,K);ne.set(Nt,K,0);for(let pn=K+1;pn<ne.columns;pn++)ne.set(Nt,pn,ne.get(Nt,pn)-ne.get(fe,pn)*ln)}fe++,K++}}return ne}reducedEchelonForm(){let ne=this.echelonForm(),fe=ne.columns,K=ne.rows,he=K-1;for(;he>=0;)if(ne.maxRow(he)===0)he--;else{let Fe=0,Nt=!1;for(;Fe<K&&Nt===!1;)ne.get(he,Fe)===1?Nt=!0:Fe++;for(let ln=0;ln<he;ln++){let pn=ne.get(ln,Fe);for(let Yn=Fe;Yn<fe;Yn++){let ht=ne.get(ln,Yn)-pn*ne.get(he,Yn);ne.set(ln,Yn,ht)}}he--}return ne}set(){throw new Error("set method is unimplemented")}get(){throw new Error("get method is unimplemented")}repeat(ne={}){if(typeof ne!="object")throw new TypeError("options must be an object");const{rows:fe=1,columns:K=1}=ne;if(!Number.isInteger(fe)||fe<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(K)||K<=0)throw new TypeError("columns must be a positive integer");let he=new Rt(this.rows*fe,this.columns*K);for(let Fe=0;Fe<fe;Fe++)for(let Nt=0;Nt<K;Nt++)he.setSubMatrix(this,this.rows*Fe,this.columns*Nt);return he}fill(ne){for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,ne);return this}neg(){return this.mulS(-1)}getRow(ne){d(this,ne);let fe=[];for(let K=0;K<this.columns;K++)fe.push(this.get(ne,K));return fe}getRowVector(ne){return Rt.rowVector(this.getRow(ne))}setRow(ne,fe){d(this,ne),fe=R(this,fe);for(let K=0;K<this.columns;K++)this.set(ne,K,fe[K]);return this}swapRows(ne,fe){d(this,ne),d(this,fe);for(let K=0;K<this.columns;K++){let he=this.get(ne,K);this.set(ne,K,this.get(fe,K)),this.set(fe,K,he)}return this}getColumn(ne){O(this,ne);let fe=[];for(let K=0;K<this.rows;K++)fe.push(this.get(K,ne));return fe}getColumnVector(ne){return Rt.columnVector(this.getColumn(ne))}setColumn(ne,fe){O(this,ne),fe=C(this,fe);for(let K=0;K<this.rows;K++)this.set(K,ne,fe[K]);return this}swapColumns(ne,fe){O(this,ne),O(this,fe);for(let K=0;K<this.rows;K++){let he=this.get(K,ne);this.set(K,ne,this.get(K,fe)),this.set(K,fe,he)}return this}addRowVector(ne){ne=R(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)+ne[K]);return this}subRowVector(ne){ne=R(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)-ne[K]);return this}mulRowVector(ne){ne=R(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)*ne[K]);return this}divRowVector(ne){ne=R(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)/ne[K]);return this}addColumnVector(ne){ne=C(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)+ne[fe]);return this}subColumnVector(ne){ne=C(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)-ne[fe]);return this}mulColumnVector(ne){ne=C(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)*ne[fe]);return this}divColumnVector(ne){ne=C(this,ne);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)this.set(fe,K,this.get(fe,K)/ne[fe]);return this}mulRow(ne,fe){d(this,ne);for(let K=0;K<this.columns;K++)this.set(ne,K,this.get(ne,K)*fe);return this}mulColumn(ne,fe){O(this,ne);for(let K=0;K<this.rows;K++)this.set(K,ne,this.get(K,ne)*fe);return this}max(ne){if(this.isEmpty())return NaN;switch(ne){case"row":{const fe=new Array(this.rows).fill(Number.NEGATIVE_INFINITY);for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)>fe[K]&&(fe[K]=this.get(K,he));return fe}case"column":{const fe=new Array(this.columns).fill(Number.NEGATIVE_INFINITY);for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)>fe[he]&&(fe[he]=this.get(K,he));return fe}case void 0:{let fe=this.get(0,0);for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)>fe&&(fe=this.get(K,he));return fe}default:throw new Error(`invalid option: ${ne}`)}}maxIndex(){ee(this);let ne=this.get(0,0),fe=[0,0];for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)>ne&&(ne=this.get(K,he),fe[0]=K,fe[1]=he);return fe}min(ne){if(this.isEmpty())return NaN;switch(ne){case"row":{const fe=new Array(this.rows).fill(Number.POSITIVE_INFINITY);for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)<fe[K]&&(fe[K]=this.get(K,he));return fe}case"column":{const fe=new Array(this.columns).fill(Number.POSITIVE_INFINITY);for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)<fe[he]&&(fe[he]=this.get(K,he));return fe}case void 0:{let fe=this.get(0,0);for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)<fe&&(fe=this.get(K,he));return fe}default:throw new Error(`invalid option: ${ne}`)}}minIndex(){ee(this);let ne=this.get(0,0),fe=[0,0];for(let K=0;K<this.rows;K++)for(let he=0;he<this.columns;he++)this.get(K,he)<ne&&(ne=this.get(K,he),fe[0]=K,fe[1]=he);return fe}maxRow(ne){if(d(this,ne),this.isEmpty())return NaN;let fe=this.get(ne,0);for(let K=1;K<this.columns;K++)this.get(ne,K)>fe&&(fe=this.get(ne,K));return fe}maxRowIndex(ne){d(this,ne),ee(this);let fe=this.get(ne,0),K=[ne,0];for(let he=1;he<this.columns;he++)this.get(ne,he)>fe&&(fe=this.get(ne,he),K[1]=he);return K}minRow(ne){if(d(this,ne),this.isEmpty())return NaN;let fe=this.get(ne,0);for(let K=1;K<this.columns;K++)this.get(ne,K)<fe&&(fe=this.get(ne,K));return fe}minRowIndex(ne){d(this,ne),ee(this);let fe=this.get(ne,0),K=[ne,0];for(let he=1;he<this.columns;he++)this.get(ne,he)<fe&&(fe=this.get(ne,he),K[1]=he);return K}maxColumn(ne){if(O(this,ne),this.isEmpty())return NaN;let fe=this.get(0,ne);for(let K=1;K<this.rows;K++)this.get(K,ne)>fe&&(fe=this.get(K,ne));return fe}maxColumnIndex(ne){O(this,ne),ee(this);let fe=this.get(0,ne),K=[0,ne];for(let he=1;he<this.rows;he++)this.get(he,ne)>fe&&(fe=this.get(he,ne),K[0]=he);return K}minColumn(ne){if(O(this,ne),this.isEmpty())return NaN;let fe=this.get(0,ne);for(let K=1;K<this.rows;K++)this.get(K,ne)<fe&&(fe=this.get(K,ne));return fe}minColumnIndex(ne){O(this,ne),ee(this);let fe=this.get(0,ne),K=[0,ne];for(let he=1;he<this.rows;he++)this.get(he,ne)<fe&&(fe=this.get(he,ne),K[0]=he);return K}diag(){let ne=Math.min(this.rows,this.columns),fe=[];for(let K=0;K<ne;K++)fe.push(this.get(K,K));return fe}norm(ne="frobenius"){switch(ne){case"max":return this.max();case"frobenius":return Math.sqrt(this.dot(this));default:throw new RangeError(`unknown norm type: ${ne}`)}}cumulativeSum(){let ne=0;for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)ne+=this.get(fe,K),this.set(fe,K,ne);return this}dot(ne){Ze.isMatrix(ne)&&(ne=ne.to1DArray());let fe=this.to1DArray();if(fe.length!==ne.length)throw new RangeError("vectors do not have the same size");let K=0;for(let he=0;he<fe.length;he++)K+=fe[he]*ne[he];return K}mmul(ne){ne=Rt.checkMatrix(ne);let fe=this.rows,K=this.columns,he=ne.columns,Fe=new Rt(fe,he),Nt=new Float64Array(K);for(let ln=0;ln<he;ln++){for(let pn=0;pn<K;pn++)Nt[pn]=ne.get(pn,ln);for(let pn=0;pn<fe;pn++){let Yn=0;for(let ht=0;ht<K;ht++)Yn+=this.get(pn,ht)*Nt[ht];Fe.set(pn,ln,Yn)}}return Fe}mpow(ne){if(!this.isSquare())throw new RangeError("Matrix must be square");if(!Number.isInteger(ne)||ne<0)throw new RangeError("Exponent must be a non-negative integer");let fe=Rt.eye(this.rows),K=this;for(let he=ne;he>=1;he/=2)(he&1)!==0&&(fe=fe.mmul(K)),K=K.mmul(K);return fe}strassen2x2(ne){ne=Rt.checkMatrix(ne);let fe=new Rt(2,2);const K=this.get(0,0),he=ne.get(0,0),Fe=this.get(0,1),Nt=ne.get(0,1),ln=this.get(1,0),pn=ne.get(1,0),Yn=this.get(1,1),ht=ne.get(1,1),De=(K+Yn)*(he+ht),we=(ln+Yn)*he,Ke=K*(Nt-ht),be=Yn*(pn-he),pt=(K+Fe)*ht,We=(ln-K)*(he+Nt),Je=(Fe-Yn)*(pn+ht),ye=De+be-pt+Je,Qe=Ke+pt,ze=we+be,qe=De-we+Ke+We;return fe.set(0,0,ye),fe.set(0,1,Qe),fe.set(1,0,ze),fe.set(1,1,qe),fe}strassen3x3(ne){ne=Rt.checkMatrix(ne);let fe=new Rt(3,3);const K=this.get(0,0),he=this.get(0,1),Fe=this.get(0,2),Nt=this.get(1,0),ln=this.get(1,1),pn=this.get(1,2),Yn=this.get(2,0),ht=this.get(2,1),De=this.get(2,2),we=ne.get(0,0),Ke=ne.get(0,1),be=ne.get(0,2),pt=ne.get(1,0),We=ne.get(1,1),Je=ne.get(1,2),ye=ne.get(2,0),Qe=ne.get(2,1),ze=ne.get(2,2),qe=(K+he+Fe-Nt-ln-ht-De)*We,Pt=(K-Nt)*(-Ke+We),zt=ln*(-we+Ke+pt-We-Je-ye+ze),un=(-K+Nt+ln)*(we-Ke+We),hn=(Nt+ln)*(-we+Ke),xt=K*we,_t=(-K+Yn+ht)*(we-be+Je),qt=(-K+Yn)*(be-Je),fn=(Yn+ht)*(-we+be),On=(K+he+Fe-ln-pn-Yn-ht)*Je,Gn=ht*(-we+be+pt-We-Je-ye+Qe),Bn=(-Fe+ht+De)*(We+ye-Qe),Lr=(Fe-De)*(We-Qe),An=Fe*ye,Un=(ht+De)*(-ye+Qe),cr=(-Fe+ln+pn)*(Je+ye-ze),mr=(Fe-pn)*(Je-ze),hr=(ln+pn)*(-ye+ze),ar=he*pt,Cr=pn*Qe,Yr=Nt*be,Xr=Yn*Ke,ni=De*ze,ki=xt+An+ar,zr=qe+un+hn+xt+Bn+An+Un,Ur=xt+_t+fn+On+An+cr+hr,jt=Pt+zt+un+xt+An+cr+mr,sn=Pt+un+hn+xt+Cr,Rn=An+cr+mr+hr+Yr,H=xt+_t+qt+Gn+Bn+Lr+An,Be=Bn+Lr+An+Un+Xr,wn=xt+_t+qt+fn+ni;return fe.set(0,0,ki),fe.set(0,1,zr),fe.set(0,2,Ur),fe.set(1,0,jt),fe.set(1,1,sn),fe.set(1,2,Rn),fe.set(2,0,H),fe.set(2,1,Be),fe.set(2,2,wn),fe}mmulStrassen(ne){ne=Rt.checkMatrix(ne);let fe=this.clone(),K=fe.rows,he=fe.columns,Fe=ne.rows,Nt=ne.columns;he!==Fe&&console.warn(`Multiplying ${K} x ${he} and ${Fe} x ${Nt} matrix: dimensions do not match.`);function ln(De,we,Ke){let be=De.rows,pt=De.columns;if(be===we&&pt===Ke)return De;{let We=Ze.zeros(we,Ke);return We=We.setSubMatrix(De,0,0),We}}let pn=Math.max(K,Fe),Yn=Math.max(he,Nt);fe=ln(fe,pn,Yn),ne=ln(ne,pn,Yn);function ht(De,we,Ke,be){if(Ke<=512||be<=512)return De.mmul(we);Ke%2===1&&be%2===1?(De=ln(De,Ke+1,be+1),we=ln(we,Ke+1,be+1)):Ke%2===1?(De=ln(De,Ke+1,be),we=ln(we,Ke+1,be)):be%2===1&&(De=ln(De,Ke,be+1),we=ln(we,Ke,be+1));let pt=parseInt(De.rows/2,10),We=parseInt(De.columns/2,10),Je=De.subMatrix(0,pt-1,0,We-1),ye=we.subMatrix(0,pt-1,0,We-1),Qe=De.subMatrix(0,pt-1,We,De.columns-1),ze=we.subMatrix(0,pt-1,We,we.columns-1),qe=De.subMatrix(pt,De.rows-1,0,We-1),Pt=we.subMatrix(pt,we.rows-1,0,We-1),zt=De.subMatrix(pt,De.rows-1,We,De.columns-1),un=we.subMatrix(pt,we.rows-1,We,we.columns-1),hn=ht(Ze.add(Je,zt),Ze.add(ye,un),pt,We),xt=ht(Ze.add(qe,zt),ye,pt,We),_t=ht(Je,Ze.sub(ze,un),pt,We),qt=ht(zt,Ze.sub(Pt,ye),pt,We),fn=ht(Ze.add(Je,Qe),un,pt,We),On=ht(Ze.sub(qe,Je),Ze.add(ye,ze),pt,We),Gn=ht(Ze.sub(Qe,zt),Ze.add(Pt,un),pt,We),Bn=Ze.add(hn,qt);Bn.sub(fn),Bn.add(Gn);let Lr=Ze.add(_t,fn),An=Ze.add(xt,qt),Un=Ze.sub(hn,xt);Un.add(_t),Un.add(On);let cr=Ze.zeros(2*Bn.rows,2*Bn.columns);return cr=cr.setSubMatrix(Bn,0,0),cr=cr.setSubMatrix(Lr,Bn.rows,0),cr=cr.setSubMatrix(An,0,Bn.columns),cr=cr.setSubMatrix(Un,Bn.rows,Bn.columns),cr.subMatrix(0,Ke-1,0,be-1)}return ht(fe,ne,pn,Yn)}scaleRows(ne={}){if(typeof ne!="object")throw new TypeError("options must be an object");const{min:fe=0,max:K=1}=ne;if(!Number.isFinite(fe))throw new TypeError("min must be a number");if(!Number.isFinite(K))throw new TypeError("max must be a number");if(fe>=K)throw new RangeError("min must be smaller than max");let he=new Rt(this.rows,this.columns);for(let Fe=0;Fe<this.rows;Fe++){const Nt=this.getRow(Fe);Nt.length>0&&y(Nt,{min:fe,max:K,output:Nt}),he.setRow(Fe,Nt)}return he}scaleColumns(ne={}){if(typeof ne!="object")throw new TypeError("options must be an object");const{min:fe=0,max:K=1}=ne;if(!Number.isFinite(fe))throw new TypeError("min must be a number");if(!Number.isFinite(K))throw new TypeError("max must be a number");if(fe>=K)throw new RangeError("min must be smaller than max");let he=new Rt(this.rows,this.columns);for(let Fe=0;Fe<this.columns;Fe++){const Nt=this.getColumn(Fe);Nt.length&&y(Nt,{min:fe,max:K,output:Nt}),he.setColumn(Fe,Nt)}return he}flipRows(){const ne=Math.ceil(this.columns/2);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<ne;K++){let he=this.get(fe,K),Fe=this.get(fe,this.columns-1-K);this.set(fe,K,Fe),this.set(fe,this.columns-1-K,he)}return this}flipColumns(){const ne=Math.ceil(this.rows/2);for(let fe=0;fe<this.columns;fe++)for(let K=0;K<ne;K++){let he=this.get(K,fe),Fe=this.get(this.rows-1-K,fe);this.set(K,fe,Fe),this.set(this.rows-1-K,fe,he)}return this}kroneckerProduct(ne){ne=Rt.checkMatrix(ne);let fe=this.rows,K=this.columns,he=ne.rows,Fe=ne.columns,Nt=new Rt(fe*he,K*Fe);for(let ln=0;ln<fe;ln++)for(let pn=0;pn<K;pn++)for(let Yn=0;Yn<he;Yn++)for(let ht=0;ht<Fe;ht++)Nt.set(he*ln+Yn,Fe*pn+ht,this.get(ln,pn)*ne.get(Yn,ht));return Nt}kroneckerSum(ne){if(ne=Rt.checkMatrix(ne),!this.isSquare()||!ne.isSquare())throw new Error("Kronecker Sum needs two Square Matrices");let fe=this.rows,K=ne.rows,he=this.kroneckerProduct(Rt.eye(K,K)),Fe=Rt.eye(fe,fe).kroneckerProduct(ne);return he.add(Fe)}transpose(){let ne=new Rt(this.columns,this.rows);for(let fe=0;fe<this.rows;fe++)for(let K=0;K<this.columns;K++)ne.set(K,fe,this.get(fe,K));return ne}sortRows(ne=Ne){for(let fe=0;fe<this.rows;fe++)this.setRow(fe,this.getRow(fe).sort(ne));return this}sortColumns(ne=Ne){for(let fe=0;fe<this.columns;fe++)this.setColumn(fe,this.getColumn(fe).sort(ne));return this}subMatrix(ne,fe,K,he){I(this,ne,fe,K,he);let Fe=new Rt(fe-ne+1,he-K+1);for(let Nt=ne;Nt<=fe;Nt++)for(let ln=K;ln<=he;ln++)Fe.set(Nt-ne,ln-K,this.get(Nt,ln));return Fe}subMatrixRow(ne,fe,K){if(fe===void 0&&(fe=0),K===void 0&&(K=this.columns-1),fe>K||fe<0||fe>=this.columns||K<0||K>=this.columns)throw new RangeError("Argument out of range");let he=new Rt(ne.length,K-fe+1);for(let Fe=0;Fe<ne.length;Fe++)for(let Nt=fe;Nt<=K;Nt++){if(ne[Fe]<0||ne[Fe]>=this.rows)throw new RangeError(`Row index out of range: ${ne[Fe]}`);he.set(Fe,Nt-fe,this.get(ne[Fe],Nt))}return he}subMatrixColumn(ne,fe,K){if(fe===void 0&&(fe=0),K===void 0&&(K=this.rows-1),fe>K||fe<0||fe>=this.rows||K<0||K>=this.rows)throw new RangeError("Argument out of range");let he=new Rt(K-fe+1,ne.length);for(let Fe=0;Fe<ne.length;Fe++)for(let Nt=fe;Nt<=K;Nt++){if(ne[Fe]<0||ne[Fe]>=this.columns)throw new RangeError(`Column index out of range: ${ne[Fe]}`);he.set(Nt-fe,Fe,this.get(Nt,ne[Fe]))}return he}setSubMatrix(ne,fe,K){if(ne=Rt.checkMatrix(ne),ne.isEmpty())return this;let he=fe+ne.rows-1,Fe=K+ne.columns-1;I(this,fe,he,K,Fe);for(let Nt=0;Nt<ne.rows;Nt++)for(let ln=0;ln<ne.columns;ln++)this.set(fe+Nt,K+ln,ne.get(Nt,ln));return this}selection(ne,fe){L(this,ne),j(this,fe);let K=new Rt(ne.length,fe.length);for(let he=0;he<ne.length;he++){let Fe=ne[he];for(let Nt=0;Nt<fe.length;Nt++){let ln=fe[Nt];K.set(he,Nt,this.get(Fe,ln))}}return K}trace(){let ne=Math.min(this.rows,this.columns),fe=0;for(let K=0;K<ne;K++)fe+=this.get(K,K);return fe}clone(){return this.constructor.copy(this,new Rt(this.rows,this.columns))}static copy(ne,fe){for(const[K,he,Fe]of ne.entries())fe.set(K,he,Fe);return fe}sum(ne){switch(ne){case"row":return re(this);case"column":return Se(this);case void 0:return z(this);default:throw new Error(`invalid option: ${ne}`)}}product(ne){switch(ne){case"row":return Q(this);case"column":return ce(this);case void 0:return se(this);default:throw new Error(`invalid option: ${ne}`)}}mean(ne){const fe=this.sum(ne);switch(ne){case"row":{for(let K=0;K<this.rows;K++)fe[K]/=this.columns;return fe}case"column":{for(let K=0;K<this.columns;K++)fe[K]/=this.rows;return fe}case void 0:return fe/this.size;default:throw new Error(`invalid option: ${ne}`)}}variance(ne,fe={}){if(typeof ne=="object"&&(fe=ne,ne=void 0),typeof fe!="object")throw new TypeError("options must be an object");const{unbiased:K=!0,mean:he=this.mean(ne)}=fe;if(typeof K!="boolean")throw new TypeError("unbiased must be a boolean");switch(ne){case"row":{if(!g.isAnyArray(he))throw new TypeError("mean must be an array");return q(this,K,he)}case"column":{if(!g.isAnyArray(he))throw new TypeError("mean must be an array");return te(this,K,he)}case void 0:{if(typeof he!="number")throw new TypeError("mean must be a number");return A(this,K,he)}default:throw new Error(`invalid option: ${ne}`)}}standardDeviation(ne,fe){typeof ne=="object"&&(fe=ne,ne=void 0);const K=this.variance(ne,fe);if(ne===void 0)return Math.sqrt(K);for(let he=0;he<K.length;he++)K[he]=Math.sqrt(K[he]);return K}center(ne,fe={}){if(typeof ne=="object"&&(fe=ne,ne=void 0),typeof fe!="object")throw new TypeError("options must be an object");const{center:K=this.mean(ne)}=fe;switch(ne){case"row":{if(!g.isAnyArray(K))throw new TypeError("center must be an array");return T(this,K),this}case"column":{if(!g.isAnyArray(K))throw new TypeError("center must be an array");return B(this,K),this}case void 0:{if(typeof K!="number")throw new TypeError("center must be a number");return X(this,K),this}default:throw new Error(`invalid option: ${ne}`)}}scale(ne,fe={}){if(typeof ne=="object"&&(fe=ne,ne=void 0),typeof fe!="object")throw new TypeError("options must be an object");let K=fe.scale;switch(ne){case"row":{if(K===void 0)K=ue(this);else if(!g.isAnyArray(K))throw new TypeError("scale must be an array");return ie(this,K),this}case"column":{if(K===void 0)K=Te(this);else if(!g.isAnyArray(K))throw new TypeError("scale must be an array");return je(this,K),this}case void 0:{if(K===void 0)K=yt(this);else if(typeof K!="number")throw new TypeError("scale must be a number");return tt(this,K),this}default:throw new Error(`invalid option: ${ne}`)}}toString(ne){return h(this,ne)}[Symbol.iterator](){return this.entries()}*entries(){for(let ne=0;ne<this.rows;ne++)for(let fe=0;fe<this.columns;fe++)yield[ne,fe,this.get(ne,fe)]}*values(){for(let ne=0;ne<this.rows;ne++)for(let fe=0;fe<this.columns;fe++)yield this.get(ne,fe)}}Ze.prototype.klass="Matrix",typeof Symbol<"u"&&(Ze.prototype[Symbol.for("nodejs.util.inspect.custom")]=p);function Ne(bt,ne){return bt-ne}function it(bt){return bt.every(ne=>typeof ne=="number")}Ze.random=Ze.rand,Ze.randomInt=Ze.randInt,Ze.diagonal=Ze.diag,Ze.prototype.diagonal=Ze.prototype.diag,Ze.identity=Ze.eye,Ze.prototype.negate=Ze.prototype.neg,Ze.prototype.tensorProduct=Ze.prototype.kroneckerProduct;class Rt extends Ze{data;#e(ne,fe){if(this.data=[],Number.isInteger(fe)&&fe>=0)for(let K=0;K<ne;K++)this.data.push(new Float64Array(fe));else throw new TypeError("nColumns must be a positive integer");this.rows=ne,this.columns=fe}constructor(ne,fe){if(super(),Rt.isMatrix(ne))this.#e(ne.rows,ne.columns),Rt.copy(ne,this);else if(Number.isInteger(ne)&&ne>=0)this.#e(ne,fe);else if(g.isAnyArray(ne)){const K=ne;if(ne=K.length,fe=ne?K[0].length:0,typeof fe!="number")throw new TypeError("Data must be a 2D array with at least one element");this.data=[];for(let he=0;he<ne;he++){if(K[he].length!==fe)throw new RangeError("Inconsistent array dimensions");if(!it(K[he]))throw new TypeError("Input data contains non-numeric values");this.data.push(Float64Array.from(K[he]))}this.rows=ne,this.columns=fe}else throw new TypeError("First argument must be a positive number or an array")}set(ne,fe,K){return this.data[ne][fe]=K,this}get(ne,fe){return this.data[ne][fe]}removeRow(ne){return d(this,ne),this.data.splice(ne,1),this.rows-=1,this}addRow(ne,fe){return fe===void 0&&(fe=ne,ne=this.rows),d(this,ne,!0),fe=Float64Array.from(R(this,fe)),this.data.splice(ne,0,fe),this.rows+=1,this}removeColumn(ne){O(this,ne);for(let fe=0;fe<this.rows;fe++){const K=new Float64Array(this.columns-1);for(let he=0;he<ne;he++)K[he]=this.data[fe][he];for(let he=ne+1;he<this.columns;he++)K[he-1]=this.data[fe][he];this.data[fe]=K}return this.columns-=1,this}addColumn(ne,fe){typeof fe>"u"&&(fe=ne,ne=this.columns),O(this,ne,!0),fe=C(this,fe);for(let K=0;K<this.rows;K++){const he=new Float64Array(this.columns+1);let Fe=0;for(;Fe<ne;Fe++)he[Fe]=this.data[K][Fe];for(he[Fe++]=fe[K];Fe<this.columns+1;Fe++)he[Fe]=this.data[K][Fe-1];this.data[K]=he}return this.columns+=1,this}}S(Ze,Rt);class Dn extends Ze{#e;get size(){return this.#e.size}get rows(){return this.#e.rows}get columns(){return this.#e.columns}get diagonalSize(){return this.rows}static isSymmetricMatrix(ne){return Rt.isMatrix(ne)&&ne.klassType==="SymmetricMatrix"}static zeros(ne){return new this(ne)}static ones(ne){return new this(ne).fill(1)}constructor(ne){if(super(),Rt.isMatrix(ne)){if(!ne.isSymmetric())throw new TypeError("not symmetric data");this.#e=Rt.copy(ne,new Rt(ne.rows,ne.rows))}else if(Number.isInteger(ne)&&ne>=0)this.#e=new Rt(ne,ne);else if(this.#e=new Rt(ne),!this.isSymmetric())throw new TypeError("not symmetric data")}clone(){const ne=new Dn(this.diagonalSize);for(const[fe,K,he]of this.upperRightEntries())ne.set(fe,K,he);return ne}toMatrix(){return new Rt(this)}get(ne,fe){return this.#e.get(ne,fe)}set(ne,fe,K){return this.#e.set(ne,fe,K),this.#e.set(fe,ne,K),this}removeCross(ne){return this.#e.removeRow(ne),this.#e.removeColumn(ne),this}addCross(ne,fe){fe===void 0&&(fe=ne,ne=this.diagonalSize);const K=fe.slice();return K.splice(ne,1),this.#e.addRow(ne,K),this.#e.addColumn(ne,fe),this}applyMask(ne){if(ne.length!==this.diagonalSize)throw new RangeError("Mask size do not match with matrix size");const fe=[];for(const[K,he]of ne.entries())he||fe.push(K);fe.reverse();for(const K of fe)this.removeCross(K);return this}toCompact(){const{diagonalSize:ne}=this,fe=new Array(ne*(ne+1)/2);for(let K=0,he=0,Fe=0;Fe<fe.length;Fe++)fe[Fe]=this.get(he,K),++K>=ne&&(K=++he);return fe}static fromCompact(ne){const fe=ne.length,K=(Math.sqrt(8*fe+1)-1)/2;if(!Number.isInteger(K))throw new TypeError(`This array is not a compact representation of a Symmetric Matrix, ${JSON.stringify(ne)}`);const he=new Dn(K);for(let Fe=0,Nt=0,ln=0;ln<fe;ln++)he.set(Fe,Nt,ne[ln]),++Fe>=K&&(Fe=++Nt);return he}*upperRightEntries(){for(let ne=0,fe=0;ne<this.diagonalSize;void 0){const K=this.get(ne,fe);yield[ne,fe,K],++fe>=this.diagonalSize&&(fe=++ne)}}*upperRightValues(){for(let ne=0,fe=0;ne<this.diagonalSize;void 0)yield this.get(ne,fe),++fe>=this.diagonalSize&&(fe=++ne)}}Dn.prototype.klassType="SymmetricMatrix";class Mt extends Dn{static isDistanceMatrix(ne){return Dn.isSymmetricMatrix(ne)&&ne.klassSubType==="DistanceMatrix"}constructor(ne){if(super(ne),!this.isDistance())throw new TypeError("Provided arguments do no produce a distance matrix")}set(ne,fe,K){return ne===fe&&(K=0),super.set(ne,fe,K)}addCross(ne,fe){return fe===void 0&&(fe=ne,ne=this.diagonalSize),fe=fe.slice(),fe[ne]=0,super.addCross(ne,fe)}toSymmetricMatrix(){return new Dn(this)}clone(){const ne=new Mt(this.diagonalSize);for(const[fe,K,he]of this.upperRightEntries())fe!==K&&ne.set(fe,K,he);return ne}toCompact(){const{diagonalSize:ne}=this,fe=(ne-1)*ne/2,K=new Array(fe);for(let he=1,Fe=0,Nt=0;Nt<K.length;Nt++)K[Nt]=this.get(Fe,he),++he>=ne&&(he=++Fe+1);return K}static fromCompact(ne){const fe=ne.length;if(fe===0)return new this(0);const K=(Math.sqrt(8*fe+1)+1)/2;if(!Number.isInteger(K))throw new TypeError(`This array is not a compact representation of a DistanceMatrix, ${JSON.stringify(ne)}`);const he=new this(K);for(let Fe=1,Nt=0,ln=0;ln<fe;ln++)he.set(Fe,Nt,ne[ln]),++Fe>=K&&(Fe=++Nt+1);return he}}Mt.prototype.klassSubType="DistanceMatrix";class Wt extends Ze{constructor(ne,fe,K){super(),this.matrix=ne,this.rows=fe,this.columns=K}}class Tn extends Wt{constructor(ne,fe){O(ne,fe),super(ne,ne.rows,1),this.column=fe}set(ne,fe,K){return this.matrix.set(ne,this.column,K),this}get(ne){return this.matrix.get(ne,this.column)}}class bn extends Wt{constructor(ne,fe){j(ne,fe),super(ne,ne.rows,fe.length),this.columnIndices=fe}set(ne,fe,K){return this.matrix.set(ne,this.columnIndices[fe],K),this}get(ne,fe){return this.matrix.get(ne,this.columnIndices[fe])}}class $t extends Wt{constructor(ne){super(ne,ne.rows,ne.columns)}set(ne,fe,K){return this.matrix.set(ne,this.columns-fe-1,K),this}get(ne,fe){return this.matrix.get(ne,this.columns-fe-1)}}class Ct extends Wt{constructor(ne){super(ne,ne.rows,ne.columns)}set(ne,fe,K){return this.matrix.set(this.rows-ne-1,fe,K),this}get(ne,fe){return this.matrix.get(this.rows-ne-1,fe)}}class Z extends Wt{constructor(ne,fe){d(ne,fe),super(ne,1,ne.columns),this.row=fe}set(ne,fe,K){return this.matrix.set(this.row,fe,K),this}get(ne,fe){return this.matrix.get(this.row,fe)}}class me extends Wt{constructor(ne,fe){L(ne,fe),super(ne,fe.length,ne.columns),this.rowIndices=fe}set(ne,fe,K){return this.matrix.set(this.rowIndices[ne],fe,K),this}get(ne,fe){return this.matrix.get(this.rowIndices[ne],fe)}}class ke extends Wt{constructor(ne,fe,K){L(ne,fe),j(ne,K),super(ne,fe.length,K.length),this.rowIndices=fe,this.columnIndices=K}set(ne,fe,K){return this.matrix.set(this.rowIndices[ne],this.columnIndices[fe],K),this}get(ne,fe){return this.matrix.get(this.rowIndices[ne],this.columnIndices[fe])}}class Ee extends Wt{constructor(ne,fe,K,he,Fe){I(ne,fe,K,he,Fe),super(ne,K-fe+1,Fe-he+1),this.startRow=fe,this.startColumn=he}set(ne,fe,K){return this.matrix.set(this.startRow+ne,this.startColumn+fe,K),this}get(ne,fe){return this.matrix.get(this.startRow+ne,this.startColumn+fe)}}class _e extends Wt{constructor(ne){super(ne,ne.columns,ne.rows)}set(ne,fe,K){return this.matrix.set(fe,ne,K),this}get(ne,fe){return this.matrix.get(fe,ne)}}class ge extends Ze{constructor(ne,fe={}){const{rows:K=1}=fe;if(ne.length%K!==0)throw new Error("the data length is not divisible by the number of rows");super(),this.rows=K,this.columns=ne.length/K,this.data=ne}set(ne,fe,K){let he=this._calculateIndex(ne,fe);return this.data[he]=K,this}get(ne,fe){let K=this._calculateIndex(ne,fe);return this.data[K]}_calculateIndex(ne,fe){return ne*this.columns+fe}}class Me extends Ze{constructor(ne){super(),this.data=ne,this.rows=ne.length,this.columns=ne[0].length}set(ne,fe,K){return this.data[ne][fe]=K,this}get(ne,fe){return this.data[ne][fe]}}function lt(bt,ne){if(g.isAnyArray(bt))return bt[0]&&g.isAnyArray(bt[0])?new Me(bt):new ge(bt,ne);throw new Error("the argument is not an array")}class Ft{constructor(ne){ne=Me.checkMatrix(ne);let fe=ne.clone(),K=fe.rows,he=fe.columns,Fe=new Float64Array(K),Nt=1,ln,pn,Yn,ht,De,we,Ke,be,pt;for(ln=0;ln<K;ln++)Fe[ln]=ln;for(be=new Float64Array(K),pn=0;pn<he;pn++){for(ln=0;ln<K;ln++)be[ln]=fe.get(ln,pn);for(ln=0;ln<K;ln++){for(pt=Math.min(ln,pn),De=0,Yn=0;Yn<pt;Yn++)De+=fe.get(ln,Yn)*be[Yn];be[ln]-=De,fe.set(ln,pn,be[ln])}for(ht=pn,ln=pn+1;ln<K;ln++)Math.abs(be[ln])>Math.abs(be[ht])&&(ht=ln);if(ht!==pn){for(Yn=0;Yn<he;Yn++)we=fe.get(ht,Yn),fe.set(ht,Yn,fe.get(pn,Yn)),fe.set(pn,Yn,we);Ke=Fe[ht],Fe[ht]=Fe[pn],Fe[pn]=Ke,Nt=-Nt}if(pn<K&&fe.get(pn,pn)!==0)for(ln=pn+1;ln<K;ln++)fe.set(ln,pn,fe.get(ln,pn)/fe.get(pn,pn))}this.LU=fe,this.pivotVector=Fe,this.pivotSign=Nt}isSingular(){let ne=this.LU,fe=ne.columns;for(let K=0;K<fe;K++)if(ne.get(K,K)===0)return!0;return!1}solve(ne){ne=Rt.checkMatrix(ne);let fe=this.LU;if(fe.rows!==ne.rows)throw new Error("Invalid matrix dimensions");if(this.isSingular())throw new Error("LU matrix is singular");let he=ne.columns,Fe=ne.subMatrixRow(this.pivotVector,0,he-1),Nt=fe.columns,ln,pn,Yn;for(Yn=0;Yn<Nt;Yn++)for(ln=Yn+1;ln<Nt;ln++)for(pn=0;pn<he;pn++)Fe.set(ln,pn,Fe.get(ln,pn)-Fe.get(Yn,pn)*fe.get(ln,Yn));for(Yn=Nt-1;Yn>=0;Yn--){for(pn=0;pn<he;pn++)Fe.set(Yn,pn,Fe.get(Yn,pn)/fe.get(Yn,Yn));for(ln=0;ln<Yn;ln++)for(pn=0;pn<he;pn++)Fe.set(ln,pn,Fe.get(ln,pn)-Fe.get(Yn,pn)*fe.get(ln,Yn))}return Fe}get determinant(){let ne=this.LU;if(!ne.isSquare())throw new Error("Matrix must be square");let fe=this.pivotSign,K=ne.columns;for(let he=0;he<K;he++)fe*=ne.get(he,he);return fe}get lowerTriangularMatrix(){let ne=this.LU,fe=ne.rows,K=ne.columns,he=new Rt(fe,K);for(let Fe=0;Fe<fe;Fe++)for(let Nt=0;Nt<K;Nt++)Fe>Nt?he.set(Fe,Nt,ne.get(Fe,Nt)):Fe===Nt?he.set(Fe,Nt,1):he.set(Fe,Nt,0);return he}get upperTriangularMatrix(){let ne=this.LU,fe=ne.rows,K=ne.columns,he=new Rt(fe,K);for(let Fe=0;Fe<fe;Fe++)for(let Nt=0;Nt<K;Nt++)Fe<=Nt?he.set(Fe,Nt,ne.get(Fe,Nt)):he.set(Fe,Nt,0);return he}get pivotPermutationVector(){return Array.from(this.pivotVector)}}function Et(bt,ne){let fe=0;return Math.abs(bt)>Math.abs(ne)?(fe=ne/bt,Math.abs(bt)*Math.sqrt(1+fe*fe)):ne!==0?(fe=bt/ne,Math.abs(ne)*Math.sqrt(1+fe*fe)):0}class Zt{constructor(ne){ne=Me.checkMatrix(ne);let fe=ne.clone(),K=ne.rows,he=ne.columns,Fe=new Float64Array(he),Nt,ln,pn,Yn;for(pn=0;pn<he;pn++){let ht=0;for(Nt=pn;Nt<K;Nt++)ht=Et(ht,fe.get(Nt,pn));if(ht!==0){for(fe.get(pn,pn)<0&&(ht=-ht),Nt=pn;Nt<K;Nt++)fe.set(Nt,pn,fe.get(Nt,pn)/ht);for(fe.set(pn,pn,fe.get(pn,pn)+1),ln=pn+1;ln<he;ln++){for(Yn=0,Nt=pn;Nt<K;Nt++)Yn+=fe.get(Nt,pn)*fe.get(Nt,ln);for(Yn=-Yn/fe.get(pn,pn),Nt=pn;Nt<K;Nt++)fe.set(Nt,ln,fe.get(Nt,ln)+Yn*fe.get(Nt,pn))}}Fe[pn]=-ht}this.QR=fe,this.Rdiag=Fe}solve(ne){ne=Rt.checkMatrix(ne);let fe=this.QR,K=fe.rows;if(ne.rows!==K)throw new Error("Matrix row dimensions must agree");if(!this.isFullRank())throw new Error("Matrix is rank deficient");let he=ne.columns,Fe=ne.clone(),Nt=fe.columns,ln,pn,Yn,ht;for(Yn=0;Yn<Nt;Yn++)for(pn=0;pn<he;pn++){for(ht=0,ln=Yn;ln<K;ln++)ht+=fe.get(ln,Yn)*Fe.get(ln,pn);for(ht=-ht/fe.get(Yn,Yn),ln=Yn;ln<K;ln++)Fe.set(ln,pn,Fe.get(ln,pn)+ht*fe.get(ln,Yn))}for(Yn=Nt-1;Yn>=0;Yn--){for(pn=0;pn<he;pn++)Fe.set(Yn,pn,Fe.get(Yn,pn)/this.Rdiag[Yn]);for(ln=0;ln<Yn;ln++)for(pn=0;pn<he;pn++)Fe.set(ln,pn,Fe.get(ln,pn)-Fe.get(Yn,pn)*fe.get(ln,Yn))}return Fe.subMatrix(0,Nt-1,0,he-1)}isFullRank(){let ne=this.QR.columns;for(let fe=0;fe<ne;fe++)if(this.Rdiag[fe]===0)return!1;return!0}get upperTriangularMatrix(){let ne=this.QR,fe=ne.columns,K=new Rt(fe,fe),he,Fe;for(he=0;he<fe;he++)for(Fe=0;Fe<fe;Fe++)he<Fe?K.set(he,Fe,ne.get(he,Fe)):he===Fe?K.set(he,Fe,this.Rdiag[he]):K.set(he,Fe,0);return K}get orthogonalMatrix(){let ne=this.QR,fe=ne.rows,K=ne.columns,he=new Rt(fe,K),Fe,Nt,ln,pn;for(ln=K-1;ln>=0;ln--){for(Fe=0;Fe<fe;Fe++)he.set(Fe,ln,0);for(he.set(ln,ln,1),Nt=ln;Nt<K;Nt++)if(ne.get(ln,ln)!==0){for(pn=0,Fe=ln;Fe<fe;Fe++)pn+=ne.get(Fe,ln)*he.get(Fe,Nt);for(pn=-pn/ne.get(ln,ln),Fe=ln;Fe<fe;Fe++)he.set(Fe,Nt,he.get(Fe,Nt)+pn*ne.get(Fe,ln))}}return he}}class nn{constructor(ne,fe={}){if(ne=Me.checkMatrix(ne),ne.isEmpty())throw new Error("Matrix must be non-empty");let K=ne.rows,he=ne.columns;const{computeLeftSingularVectors:Fe=!0,computeRightSingularVectors:Nt=!0,autoTranspose:ln=!1}=fe;let pn=!!Fe,Yn=!!Nt,ht=!1,De;if(K<he)if(!ln)De=ne.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else{De=ne.transpose(),K=De.rows,he=De.columns,ht=!0;let xt=pn;pn=Yn,Yn=xt}else De=ne.clone();let we=Math.min(K,he),Ke=Math.min(K+1,he),be=new Float64Array(Ke),pt=new Rt(K,we),We=new Rt(he,he),Je=new Float64Array(he),ye=new Float64Array(K),Qe=new Float64Array(Ke);for(let xt=0;xt<Ke;xt++)Qe[xt]=xt;let ze=Math.min(K-1,he),qe=Math.max(0,Math.min(he-2,K)),Pt=Math.max(ze,qe);for(let xt=0;xt<Pt;xt++){if(xt<ze){be[xt]=0;for(let _t=xt;_t<K;_t++)be[xt]=Et(be[xt],De.get(_t,xt));if(be[xt]!==0){De.get(xt,xt)<0&&(be[xt]=-be[xt]);for(let _t=xt;_t<K;_t++)De.set(_t,xt,De.get(_t,xt)/be[xt]);De.set(xt,xt,De.get(xt,xt)+1)}be[xt]=-be[xt]}for(let _t=xt+1;_t<he;_t++){if(xt<ze&&be[xt]!==0){let qt=0;for(let fn=xt;fn<K;fn++)qt+=De.get(fn,xt)*De.get(fn,_t);qt=-qt/De.get(xt,xt);for(let fn=xt;fn<K;fn++)De.set(fn,_t,De.get(fn,_t)+qt*De.get(fn,xt))}Je[_t]=De.get(xt,_t)}if(pn&&xt<ze)for(let _t=xt;_t<K;_t++)pt.set(_t,xt,De.get(_t,xt));if(xt<qe){Je[xt]=0;for(let _t=xt+1;_t<he;_t++)Je[xt]=Et(Je[xt],Je[_t]);if(Je[xt]!==0){Je[xt+1]<0&&(Je[xt]=0-Je[xt]);for(let _t=xt+1;_t<he;_t++)Je[_t]/=Je[xt];Je[xt+1]+=1}if(Je[xt]=-Je[xt],xt+1<K&&Je[xt]!==0){for(let _t=xt+1;_t<K;_t++)ye[_t]=0;for(let _t=xt+1;_t<K;_t++)for(let qt=xt+1;qt<he;qt++)ye[_t]+=Je[qt]*De.get(_t,qt);for(let _t=xt+1;_t<he;_t++){let qt=-Je[_t]/Je[xt+1];for(let fn=xt+1;fn<K;fn++)De.set(fn,_t,De.get(fn,_t)+qt*ye[fn])}}if(Yn)for(let _t=xt+1;_t<he;_t++)We.set(_t,xt,Je[_t])}}let zt=Math.min(he,K+1);if(ze<he&&(be[ze]=De.get(ze,ze)),K<zt&&(be[zt-1]=0),qe+1<zt&&(Je[qe]=De.get(qe,zt-1)),Je[zt-1]=0,pn){for(let xt=ze;xt<we;xt++){for(let _t=0;_t<K;_t++)pt.set(_t,xt,0);pt.set(xt,xt,1)}for(let xt=ze-1;xt>=0;xt--)if(be[xt]!==0){for(let _t=xt+1;_t<we;_t++){let qt=0;for(let fn=xt;fn<K;fn++)qt+=pt.get(fn,xt)*pt.get(fn,_t);qt=-qt/pt.get(xt,xt);for(let fn=xt;fn<K;fn++)pt.set(fn,_t,pt.get(fn,_t)+qt*pt.get(fn,xt))}for(let _t=xt;_t<K;_t++)pt.set(_t,xt,-pt.get(_t,xt));pt.set(xt,xt,1+pt.get(xt,xt));for(let _t=0;_t<xt-1;_t++)pt.set(_t,xt,0)}else{for(let _t=0;_t<K;_t++)pt.set(_t,xt,0);pt.set(xt,xt,1)}}if(Yn)for(let xt=he-1;xt>=0;xt--){if(xt<qe&&Je[xt]!==0)for(let _t=xt+1;_t<he;_t++){let qt=0;for(let fn=xt+1;fn<he;fn++)qt+=We.get(fn,xt)*We.get(fn,_t);qt=-qt/We.get(xt+1,xt);for(let fn=xt+1;fn<he;fn++)We.set(fn,_t,We.get(fn,_t)+qt*We.get(fn,xt))}for(let _t=0;_t<he;_t++)We.set(_t,xt,0);We.set(xt,xt,1)}let un=zt-1,hn=Number.EPSILON;for(;zt>0;){let xt,_t;for(xt=zt-2;xt>=-1&&xt!==-1;xt--){const qt=Number.MIN_VALUE+hn*Math.abs(be[xt]+Math.abs(be[xt+1]));if(Math.abs(Je[xt])<=qt||Number.isNaN(Je[xt])){Je[xt]=0;break}}if(xt===zt-2)_t=4;else{let qt;for(qt=zt-1;qt>=xt&&qt!==xt;qt--){let fn=(qt!==zt?Math.abs(Je[qt]):0)+(qt!==xt+1?Math.abs(Je[qt-1]):0);if(Math.abs(be[qt])<=hn*fn){be[qt]=0;break}}qt===xt?_t=3:qt===zt-1?_t=1:(_t=2,xt=qt)}switch(xt++,_t){case 1:{let qt=Je[zt-2];Je[zt-2]=0;for(let fn=zt-2;fn>=xt;fn--){let On=Et(be[fn],qt),Gn=be[fn]/On,Bn=qt/On;if(be[fn]=On,fn!==xt&&(qt=-Bn*Je[fn-1],Je[fn-1]=Gn*Je[fn-1]),Yn)for(let Lr=0;Lr<he;Lr++)On=Gn*We.get(Lr,fn)+Bn*We.get(Lr,zt-1),We.set(Lr,zt-1,-Bn*We.get(Lr,fn)+Gn*We.get(Lr,zt-1)),We.set(Lr,fn,On)}break}case 2:{let qt=Je[xt-1];Je[xt-1]=0;for(let fn=xt;fn<zt;fn++){let On=Et(be[fn],qt),Gn=be[fn]/On,Bn=qt/On;if(be[fn]=On,qt=-Bn*Je[fn],Je[fn]=Gn*Je[fn],pn)for(let Lr=0;Lr<K;Lr++)On=Gn*pt.get(Lr,fn)+Bn*pt.get(Lr,xt-1),pt.set(Lr,xt-1,-Bn*pt.get(Lr,fn)+Gn*pt.get(Lr,xt-1)),pt.set(Lr,fn,On)}break}case 3:{const qt=Math.max(Math.abs(be[zt-1]),Math.abs(be[zt-2]),Math.abs(Je[zt-2]),Math.abs(be[xt]),Math.abs(Je[xt])),fn=be[zt-1]/qt,On=be[zt-2]/qt,Gn=Je[zt-2]/qt,Bn=be[xt]/qt,Lr=Je[xt]/qt,An=((On+fn)*(On-fn)+Gn*Gn)/2,Un=fn*Gn*(fn*Gn);let cr=0;(An!==0||Un!==0)&&(An<0?cr=0-Math.sqrt(An*An+Un):cr=Math.sqrt(An*An+Un),cr=Un/(An+cr));let mr=(Bn+fn)*(Bn-fn)+cr,hr=Bn*Lr;for(let ar=xt;ar<zt-1;ar++){let Cr=Et(mr,hr);Cr===0&&(Cr=Number.MIN_VALUE);let Yr=mr/Cr,Xr=hr/Cr;if(ar!==xt&&(Je[ar-1]=Cr),mr=Yr*be[ar]+Xr*Je[ar],Je[ar]=Yr*Je[ar]-Xr*be[ar],hr=Xr*be[ar+1],be[ar+1]=Yr*be[ar+1],Yn)for(let ni=0;ni<he;ni++)Cr=Yr*We.get(ni,ar)+Xr*We.get(ni,ar+1),We.set(ni,ar+1,-Xr*We.get(ni,ar)+Yr*We.get(ni,ar+1)),We.set(ni,ar,Cr);if(Cr=Et(mr,hr),Cr===0&&(Cr=Number.MIN_VALUE),Yr=mr/Cr,Xr=hr/Cr,be[ar]=Cr,mr=Yr*Je[ar]+Xr*be[ar+1],be[ar+1]=-Xr*Je[ar]+Yr*be[ar+1],hr=Xr*Je[ar+1],Je[ar+1]=Yr*Je[ar+1],pn&&ar<K-1)for(let ni=0;ni<K;ni++)Cr=Yr*pt.get(ni,ar)+Xr*pt.get(ni,ar+1),pt.set(ni,ar+1,-Xr*pt.get(ni,ar)+Yr*pt.get(ni,ar+1)),pt.set(ni,ar,Cr)}Je[zt-2]=mr;break}case 4:{if(be[xt]<=0&&(be[xt]=be[xt]<0?-be[xt]:0,Yn))for(let qt=0;qt<=un;qt++)We.set(qt,xt,-We.get(qt,xt));for(;xt<un&&!(be[xt]>=be[xt+1]);){let qt=be[xt];if(be[xt]=be[xt+1],be[xt+1]=qt,Yn&&xt<he-1)for(let fn=0;fn<he;fn++)qt=We.get(fn,xt+1),We.set(fn,xt+1,We.get(fn,xt)),We.set(fn,xt,qt);if(pn&&xt<K-1)for(let fn=0;fn<K;fn++)qt=pt.get(fn,xt+1),pt.set(fn,xt+1,pt.get(fn,xt)),pt.set(fn,xt,qt);xt++}zt--;break}}}if(ht){let xt=We;We=pt,pt=xt}this.m=K,this.n=he,this.s=be,this.U=pt,this.V=We}solve(ne){let fe=ne,K=this.threshold,he=this.s.length,Fe=Rt.zeros(he,he);for(let we=0;we<he;we++)Math.abs(this.s[we])<=K?Fe.set(we,we,0):Fe.set(we,we,1/this.s[we]);let Nt=this.U,ln=this.rightSingularVectors,pn=ln.mmul(Fe),Yn=ln.rows,ht=Nt.rows,De=Rt.zeros(Yn,ht);for(let we=0;we<Yn;we++)for(let Ke=0;Ke<ht;Ke++){let be=0;for(let pt=0;pt<he;pt++)be+=pn.get(we,pt)*Nt.get(Ke,pt);De.set(we,Ke,be)}return De.mmul(fe)}solveForDiagonal(ne){return this.solve(Rt.diag(ne))}inverse(){let ne=this.V,fe=this.threshold,K=ne.rows,he=ne.columns,Fe=new Rt(K,this.s.length);for(let ht=0;ht<K;ht++)for(let De=0;De<he;De++)Math.abs(this.s[De])>fe&&Fe.set(ht,De,ne.get(ht,De)/this.s[De]);let Nt=this.U,ln=Nt.rows,pn=Nt.columns,Yn=new Rt(K,ln);for(let ht=0;ht<K;ht++)for(let De=0;De<ln;De++){let we=0;for(let Ke=0;Ke<pn;Ke++)we+=Fe.get(ht,Ke)*Nt.get(De,Ke);Yn.set(ht,De,we)}return Yn}get condition(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}get norm2(){return this.s[0]}get rank(){let ne=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,fe=0,K=this.s;for(let he=0,Fe=K.length;he<Fe;he++)K[he]>ne&&fe++;return fe}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return Rt.diag(this.s)}}function Pn(bt,ne=!1){return bt=Me.checkMatrix(bt),ne?new nn(bt).inverse():rn(bt,Rt.eye(bt.rows))}function rn(bt,ne,fe=!1){return bt=Me.checkMatrix(bt),ne=Me.checkMatrix(ne),fe?new nn(bt).solve(ne):bt.isSquare()?new Ft(bt).solve(ne):new Zt(bt).solve(ne)}function Vt(bt){if(bt=Rt.checkMatrix(bt),bt.isSquare()){if(bt.columns===0)return 1;let ne,fe,K,he;if(bt.columns===2)return ne=bt.get(0,0),fe=bt.get(0,1),K=bt.get(1,0),he=bt.get(1,1),ne*he-fe*K;if(bt.columns===3){let Fe,Nt,ln;return Fe=new ke(bt,[1,2],[1,2]),Nt=new ke(bt,[1,2],[0,2]),ln=new ke(bt,[1,2],[0,1]),ne=bt.get(0,0),fe=bt.get(0,1),K=bt.get(0,2),ne*Vt(Fe)-fe*Vt(Nt)+K*Vt(ln)}else return new Ft(bt).determinant}else throw Error("determinant can only be calculated for a square matrix")}function Kn(bt,ne){let fe=[];for(let K=0;K<bt;K++)K!==ne&&fe.push(K);return fe}function ur(bt,ne,fe,K=1e-9,he=1e-9){if(bt>he)return new Array(ne.rows+1).fill(0);{let Fe=ne.addRow(fe,[0]);for(let Nt=0;Nt<Fe.rows;Nt++)Math.abs(Fe.get(Nt,0))<K&&Fe.set(Nt,0,0);return Fe.to1DArray()}}function on(bt,ne={}){const{thresholdValue:fe=1e-9,thresholdError:K=1e-9}=ne;bt=Rt.checkMatrix(bt);let he=bt.rows,Fe=new Rt(he,he);for(let Nt=0;Nt<he;Nt++){let ln=Rt.columnVector(bt.getRow(Nt)),pn=bt.subMatrixRow(Kn(he,Nt)).transpose(),ht=new nn(pn).solve(ln),De=Rt.sub(ln,pn.mmul(ht)).abs().max();Fe.setRow(Nt,ur(De,ht,Nt,fe,K))}return Fe}function tr(bt,ne=Number.EPSILON){if(bt=Rt.checkMatrix(bt),bt.isEmpty())return bt.transpose();let fe=new nn(bt,{autoTranspose:!0}),K=fe.leftSingularVectors,he=fe.rightSingularVectors,Fe=fe.diagonal;for(let Nt=0;Nt<Fe.length;Nt++)Math.abs(Fe[Nt])>ne?Fe[Nt]=1/Fe[Nt]:Fe[Nt]=0;return he.mmul(Rt.diag(Fe).mmul(K.transpose()))}function Cn(bt,ne=bt,fe={}){bt=new Rt(bt);let K=!1;if(typeof ne=="object"&&!Rt.isMatrix(ne)&&!g.isAnyArray(ne)?(fe=ne,ne=bt,K=!0):ne=new Rt(ne),bt.rows!==ne.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:he=!0}=fe;he&&(bt=bt.center("column"),K||(ne=ne.center("column")));const Fe=bt.transpose().mmul(ne);for(let Nt=0;Nt<Fe.rows;Nt++)for(let ln=0;ln<Fe.columns;ln++)Fe.set(Nt,ln,Fe.get(Nt,ln)*(1/(bt.rows-1)));return Fe}function Wn(bt,ne=bt,fe={}){bt=new Rt(bt);let K=!1;if(typeof ne=="object"&&!Rt.isMatrix(ne)&&!g.isAnyArray(ne)?(fe=ne,ne=bt,K=!0):ne=new Rt(ne),bt.rows!==ne.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:he=!0,scale:Fe=!0}=fe;he&&(bt.center("column"),K||ne.center("column")),Fe&&(bt.scale("column"),K||ne.scale("column"));const Nt=bt.standardDeviation("column",{unbiased:!0}),ln=K?Nt:ne.standardDeviation("column",{unbiased:!0}),pn=bt.transpose().mmul(ne);for(let Yn=0;Yn<pn.rows;Yn++)for(let ht=0;ht<pn.columns;ht++)pn.set(Yn,ht,pn.get(Yn,ht)*(1/(Nt[Yn]*ln[ht]))*(1/(bt.rows-1)));return pn}class er{constructor(ne,fe={}){const{assumeSymmetric:K=!1}=fe;if(ne=Me.checkMatrix(ne),!ne.isSquare())throw new Error("Matrix is not a square matrix");if(ne.isEmpty())throw new Error("Matrix must be non-empty");let he=ne.columns,Fe=new Rt(he,he),Nt=new Float64Array(he),ln=new Float64Array(he),pn=ne,Yn,ht,De=!1;if(K?De=!0:De=ne.isSymmetric(),De){for(Yn=0;Yn<he;Yn++)for(ht=0;ht<he;ht++)Fe.set(Yn,ht,pn.get(Yn,ht));Fn(he,ln,Nt,Fe),en(he,ln,Nt,Fe)}else{let we=new Rt(he,he),Ke=new Float64Array(he);for(ht=0;ht<he;ht++)for(Yn=0;Yn<he;Yn++)we.set(Yn,ht,pn.get(Yn,ht));gn(he,we,Ke,Fe),kn(he,ln,Nt,Fe,we)}this.n=he,this.e=ln,this.d=Nt,this.V=Fe}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let ne=this.n,fe=this.e,K=this.d,he=new Rt(ne,ne),Fe,Nt;for(Fe=0;Fe<ne;Fe++){for(Nt=0;Nt<ne;Nt++)he.set(Fe,Nt,0);he.set(Fe,Fe,K[Fe]),fe[Fe]>0?he.set(Fe,Fe+1,fe[Fe]):fe[Fe]<0&&he.set(Fe,Fe-1,fe[Fe])}return he}}function Fn(bt,ne,fe,K){let he,Fe,Nt,ln,pn,Yn,ht,De;for(pn=0;pn<bt;pn++)fe[pn]=K.get(bt-1,pn);for(ln=bt-1;ln>0;ln--){for(De=0,Nt=0,Yn=0;Yn<ln;Yn++)De=De+Math.abs(fe[Yn]);if(De===0)for(ne[ln]=fe[ln-1],pn=0;pn<ln;pn++)fe[pn]=K.get(ln-1,pn),K.set(ln,pn,0),K.set(pn,ln,0);else{for(Yn=0;Yn<ln;Yn++)fe[Yn]/=De,Nt+=fe[Yn]*fe[Yn];for(he=fe[ln-1],Fe=Math.sqrt(Nt),he>0&&(Fe=-Fe),ne[ln]=De*Fe,Nt=Nt-he*Fe,fe[ln-1]=he-Fe,pn=0;pn<ln;pn++)ne[pn]=0;for(pn=0;pn<ln;pn++){for(he=fe[pn],K.set(pn,ln,he),Fe=ne[pn]+K.get(pn,pn)*he,Yn=pn+1;Yn<=ln-1;Yn++)Fe+=K.get(Yn,pn)*fe[Yn],ne[Yn]+=K.get(Yn,pn)*he;ne[pn]=Fe}for(he=0,pn=0;pn<ln;pn++)ne[pn]/=Nt,he+=ne[pn]*fe[pn];for(ht=he/(Nt+Nt),pn=0;pn<ln;pn++)ne[pn]-=ht*fe[pn];for(pn=0;pn<ln;pn++){for(he=fe[pn],Fe=ne[pn],Yn=pn;Yn<=ln-1;Yn++)K.set(Yn,pn,K.get(Yn,pn)-(he*ne[Yn]+Fe*fe[Yn]));fe[pn]=K.get(ln-1,pn),K.set(ln,pn,0)}}fe[ln]=Nt}for(ln=0;ln<bt-1;ln++){if(K.set(bt-1,ln,K.get(ln,ln)),K.set(ln,ln,1),Nt=fe[ln+1],Nt!==0){for(Yn=0;Yn<=ln;Yn++)fe[Yn]=K.get(Yn,ln+1)/Nt;for(pn=0;pn<=ln;pn++){for(Fe=0,Yn=0;Yn<=ln;Yn++)Fe+=K.get(Yn,ln+1)*K.get(Yn,pn);for(Yn=0;Yn<=ln;Yn++)K.set(Yn,pn,K.get(Yn,pn)-Fe*fe[Yn])}}for(Yn=0;Yn<=ln;Yn++)K.set(Yn,ln+1,0)}for(pn=0;pn<bt;pn++)fe[pn]=K.get(bt-1,pn),K.set(bt-1,pn,0);K.set(bt-1,bt-1,1),ne[0]=0}function en(bt,ne,fe,K){let he,Fe,Nt,ln,pn,Yn,ht,De,we,Ke,be,pt,We,Je,ye,Qe;for(Nt=1;Nt<bt;Nt++)ne[Nt-1]=ne[Nt];ne[bt-1]=0;let ze=0,qe=0,Pt=Number.EPSILON;for(Yn=0;Yn<bt;Yn++){for(qe=Math.max(qe,Math.abs(fe[Yn])+Math.abs(ne[Yn])),ht=Yn;ht<bt&&!(Math.abs(ne[ht])<=Pt*qe);)ht++;if(ht>Yn)do{for(he=fe[Yn],De=(fe[Yn+1]-he)/(2*ne[Yn]),we=Et(De,1),De<0&&(we=-we),fe[Yn]=ne[Yn]/(De+we),fe[Yn+1]=ne[Yn]*(De+we),Ke=fe[Yn+1],Fe=he-fe[Yn],Nt=Yn+2;Nt<bt;Nt++)fe[Nt]-=Fe;for(ze=ze+Fe,De=fe[ht],be=1,pt=be,We=be,Je=ne[Yn+1],ye=0,Qe=0,Nt=ht-1;Nt>=Yn;Nt--)for(We=pt,pt=be,Qe=ye,he=be*ne[Nt],Fe=be*De,we=Et(De,ne[Nt]),ne[Nt+1]=ye*we,ye=ne[Nt]/we,be=De/we,De=be*fe[Nt]-ye*he,fe[Nt+1]=Fe+ye*(be*he+ye*fe[Nt]),pn=0;pn<bt;pn++)Fe=K.get(pn,Nt+1),K.set(pn,Nt+1,ye*K.get(pn,Nt)+be*Fe),K.set(pn,Nt,be*K.get(pn,Nt)-ye*Fe);De=-ye*Qe*We*Je*ne[Yn]/Ke,ne[Yn]=ye*De,fe[Yn]=be*De}while(Math.abs(ne[Yn])>Pt*qe);fe[Yn]=fe[Yn]+ze,ne[Yn]=0}for(Nt=0;Nt<bt-1;Nt++){for(pn=Nt,De=fe[Nt],ln=Nt+1;ln<bt;ln++)fe[ln]<De&&(pn=ln,De=fe[ln]);if(pn!==Nt)for(fe[pn]=fe[Nt],fe[Nt]=De,ln=0;ln<bt;ln++)De=K.get(ln,Nt),K.set(ln,Nt,K.get(ln,pn)),K.set(ln,pn,De)}}function gn(bt,ne,fe,K){let he=0,Fe=bt-1,Nt,ln,pn,Yn,ht,De,we;for(De=he+1;De<=Fe-1;De++){for(we=0,Yn=De;Yn<=Fe;Yn++)we=we+Math.abs(ne.get(Yn,De-1));if(we!==0){for(pn=0,Yn=Fe;Yn>=De;Yn--)fe[Yn]=ne.get(Yn,De-1)/we,pn+=fe[Yn]*fe[Yn];for(ln=Math.sqrt(pn),fe[De]>0&&(ln=-ln),pn=pn-fe[De]*ln,fe[De]=fe[De]-ln,ht=De;ht<bt;ht++){for(Nt=0,Yn=Fe;Yn>=De;Yn--)Nt+=fe[Yn]*ne.get(Yn,ht);for(Nt=Nt/pn,Yn=De;Yn<=Fe;Yn++)ne.set(Yn,ht,ne.get(Yn,ht)-Nt*fe[Yn])}for(Yn=0;Yn<=Fe;Yn++){for(Nt=0,ht=Fe;ht>=De;ht--)Nt+=fe[ht]*ne.get(Yn,ht);for(Nt=Nt/pn,ht=De;ht<=Fe;ht++)ne.set(Yn,ht,ne.get(Yn,ht)-Nt*fe[ht])}fe[De]=we*fe[De],ne.set(De,De-1,we*ln)}}for(Yn=0;Yn<bt;Yn++)for(ht=0;ht<bt;ht++)K.set(Yn,ht,Yn===ht?1:0);for(De=Fe-1;De>=he+1;De--)if(ne.get(De,De-1)!==0){for(Yn=De+1;Yn<=Fe;Yn++)fe[Yn]=ne.get(Yn,De-1);for(ht=De;ht<=Fe;ht++){for(ln=0,Yn=De;Yn<=Fe;Yn++)ln+=fe[Yn]*K.get(Yn,ht);for(ln=ln/fe[De]/ne.get(De,De-1),Yn=De;Yn<=Fe;Yn++)K.set(Yn,ht,K.get(Yn,ht)+ln*fe[Yn])}}}function kn(bt,ne,fe,K,he){let Fe=bt-1,Nt=0,ln=bt-1,pn=Number.EPSILON,Yn=0,ht=0,De=0,we=0,Ke=0,be=0,pt=0,We=0,Je,ye,Qe,ze,qe,Pt,zt,un,hn,xt,_t,qt,fn,On,Gn;for(Je=0;Je<bt;Je++)for((Je<Nt||Je>ln)&&(fe[Je]=he.get(Je,Je),ne[Je]=0),ye=Math.max(Je-1,0);ye<bt;ye++)ht=ht+Math.abs(he.get(Je,ye));for(;Fe>=Nt;){for(ze=Fe;ze>Nt&&(be=Math.abs(he.get(ze-1,ze-1))+Math.abs(he.get(ze,ze)),be===0&&(be=ht),!(Math.abs(he.get(ze,ze-1))<pn*be));)ze--;if(ze===Fe)he.set(Fe,Fe,he.get(Fe,Fe)+Yn),fe[Fe]=he.get(Fe,Fe),ne[Fe]=0,Fe--,We=0;else if(ze===Fe-1){if(zt=he.get(Fe,Fe-1)*he.get(Fe-1,Fe),De=(he.get(Fe-1,Fe-1)-he.get(Fe,Fe))/2,we=De*De+zt,pt=Math.sqrt(Math.abs(we)),he.set(Fe,Fe,he.get(Fe,Fe)+Yn),he.set(Fe-1,Fe-1,he.get(Fe-1,Fe-1)+Yn),un=he.get(Fe,Fe),we>=0){for(pt=De>=0?De+pt:De-pt,fe[Fe-1]=un+pt,fe[Fe]=fe[Fe-1],pt!==0&&(fe[Fe]=un-zt/pt),ne[Fe-1]=0,ne[Fe]=0,un=he.get(Fe,Fe-1),be=Math.abs(un)+Math.abs(pt),De=un/be,we=pt/be,Ke=Math.sqrt(De*De+we*we),De=De/Ke,we=we/Ke,ye=Fe-1;ye<bt;ye++)pt=he.get(Fe-1,ye),he.set(Fe-1,ye,we*pt+De*he.get(Fe,ye)),he.set(Fe,ye,we*he.get(Fe,ye)-De*pt);for(Je=0;Je<=Fe;Je++)pt=he.get(Je,Fe-1),he.set(Je,Fe-1,we*pt+De*he.get(Je,Fe)),he.set(Je,Fe,we*he.get(Je,Fe)-De*pt);for(Je=Nt;Je<=ln;Je++)pt=K.get(Je,Fe-1),K.set(Je,Fe-1,we*pt+De*K.get(Je,Fe)),K.set(Je,Fe,we*K.get(Je,Fe)-De*pt)}else fe[Fe-1]=un+De,fe[Fe]=un+De,ne[Fe-1]=pt,ne[Fe]=-pt;Fe=Fe-2,We=0}else{if(un=he.get(Fe,Fe),hn=0,zt=0,ze<Fe&&(hn=he.get(Fe-1,Fe-1),zt=he.get(Fe,Fe-1)*he.get(Fe-1,Fe)),We===10){for(Yn+=un,Je=Nt;Je<=Fe;Je++)he.set(Je,Je,he.get(Je,Je)-un);be=Math.abs(he.get(Fe,Fe-1))+Math.abs(he.get(Fe-1,Fe-2)),un=hn=.75*be,zt=-.4375*be*be}if(We===30&&(be=(hn-un)/2,be=be*be+zt,be>0)){for(be=Math.sqrt(be),hn<un&&(be=-be),be=un-zt/((hn-un)/2+be),Je=Nt;Je<=Fe;Je++)he.set(Je,Je,he.get(Je,Je)-be);Yn+=be,un=hn=zt=.964}for(We=We+1,qe=Fe-2;qe>=ze&&(pt=he.get(qe,qe),Ke=un-pt,be=hn-pt,De=(Ke*be-zt)/he.get(qe+1,qe)+he.get(qe,qe+1),we=he.get(qe+1,qe+1)-pt-Ke-be,Ke=he.get(qe+2,qe+1),be=Math.abs(De)+Math.abs(we)+Math.abs(Ke),De=De/be,we=we/be,Ke=Ke/be,!(qe===ze||Math.abs(he.get(qe,qe-1))*(Math.abs(we)+Math.abs(Ke))<pn*(Math.abs(De)*(Math.abs(he.get(qe-1,qe-1))+Math.abs(pt)+Math.abs(he.get(qe+1,qe+1))))));)qe--;for(Je=qe+2;Je<=Fe;Je++)he.set(Je,Je-2,0),Je>qe+2&&he.set(Je,Je-3,0);for(Qe=qe;Qe<=Fe-1&&(On=Qe!==Fe-1,Qe!==qe&&(De=he.get(Qe,Qe-1),we=he.get(Qe+1,Qe-1),Ke=On?he.get(Qe+2,Qe-1):0,un=Math.abs(De)+Math.abs(we)+Math.abs(Ke),un!==0&&(De=De/un,we=we/un,Ke=Ke/un)),un!==0);Qe++)if(be=Math.sqrt(De*De+we*we+Ke*Ke),De<0&&(be=-be),be!==0){for(Qe!==qe?he.set(Qe,Qe-1,-be*un):ze!==qe&&he.set(Qe,Qe-1,-he.get(Qe,Qe-1)),De=De+be,un=De/be,hn=we/be,pt=Ke/be,we=we/De,Ke=Ke/De,ye=Qe;ye<bt;ye++)De=he.get(Qe,ye)+we*he.get(Qe+1,ye),On&&(De=De+Ke*he.get(Qe+2,ye),he.set(Qe+2,ye,he.get(Qe+2,ye)-De*pt)),he.set(Qe,ye,he.get(Qe,ye)-De*un),he.set(Qe+1,ye,he.get(Qe+1,ye)-De*hn);for(Je=0;Je<=Math.min(Fe,Qe+3);Je++)De=un*he.get(Je,Qe)+hn*he.get(Je,Qe+1),On&&(De=De+pt*he.get(Je,Qe+2),he.set(Je,Qe+2,he.get(Je,Qe+2)-De*Ke)),he.set(Je,Qe,he.get(Je,Qe)-De),he.set(Je,Qe+1,he.get(Je,Qe+1)-De*we);for(Je=Nt;Je<=ln;Je++)De=un*K.get(Je,Qe)+hn*K.get(Je,Qe+1),On&&(De=De+pt*K.get(Je,Qe+2),K.set(Je,Qe+2,K.get(Je,Qe+2)-De*Ke)),K.set(Je,Qe,K.get(Je,Qe)-De),K.set(Je,Qe+1,K.get(Je,Qe+1)-De*we)}}}if(ht!==0){for(Fe=bt-1;Fe>=0;Fe--)if(De=fe[Fe],we=ne[Fe],we===0)for(ze=Fe,he.set(Fe,Fe,1),Je=Fe-1;Je>=0;Je--){for(zt=he.get(Je,Je)-De,Ke=0,ye=ze;ye<=Fe;ye++)Ke=Ke+he.get(Je,ye)*he.get(ye,Fe);if(ne[Je]<0)pt=zt,be=Ke;else if(ze=Je,ne[Je]===0?he.set(Je,Fe,zt!==0?-Ke/zt:-Ke/(pn*ht)):(un=he.get(Je,Je+1),hn=he.get(Je+1,Je),we=(fe[Je]-De)*(fe[Je]-De)+ne[Je]*ne[Je],Pt=(un*be-pt*Ke)/we,he.set(Je,Fe,Pt),he.set(Je+1,Fe,Math.abs(un)>Math.abs(pt)?(-Ke-zt*Pt)/un:(-be-hn*Pt)/pt)),Pt=Math.abs(he.get(Je,Fe)),pn*Pt*Pt>1)for(ye=Je;ye<=Fe;ye++)he.set(ye,Fe,he.get(ye,Fe)/Pt)}else if(we<0)for(ze=Fe-1,Math.abs(he.get(Fe,Fe-1))>Math.abs(he.get(Fe-1,Fe))?(he.set(Fe-1,Fe-1,we/he.get(Fe,Fe-1)),he.set(Fe-1,Fe,-(he.get(Fe,Fe)-De)/he.get(Fe,Fe-1))):(Gn=Jn(0,-he.get(Fe-1,Fe),he.get(Fe-1,Fe-1)-De,we),he.set(Fe-1,Fe-1,Gn[0]),he.set(Fe-1,Fe,Gn[1])),he.set(Fe,Fe-1,0),he.set(Fe,Fe,1),Je=Fe-2;Je>=0;Je--){for(xt=0,_t=0,ye=ze;ye<=Fe;ye++)xt=xt+he.get(Je,ye)*he.get(ye,Fe-1),_t=_t+he.get(Je,ye)*he.get(ye,Fe);if(zt=he.get(Je,Je)-De,ne[Je]<0)pt=zt,Ke=xt,be=_t;else if(ze=Je,ne[Je]===0?(Gn=Jn(-xt,-_t,zt,we),he.set(Je,Fe-1,Gn[0]),he.set(Je,Fe,Gn[1])):(un=he.get(Je,Je+1),hn=he.get(Je+1,Je),qt=(fe[Je]-De)*(fe[Je]-De)+ne[Je]*ne[Je]-we*we,fn=(fe[Je]-De)*2*we,qt===0&&fn===0&&(qt=pn*ht*(Math.abs(zt)+Math.abs(we)+Math.abs(un)+Math.abs(hn)+Math.abs(pt))),Gn=Jn(un*Ke-pt*xt+we*_t,un*be-pt*_t-we*xt,qt,fn),he.set(Je,Fe-1,Gn[0]),he.set(Je,Fe,Gn[1]),Math.abs(un)>Math.abs(pt)+Math.abs(we)?(he.set(Je+1,Fe-1,(-xt-zt*he.get(Je,Fe-1)+we*he.get(Je,Fe))/un),he.set(Je+1,Fe,(-_t-zt*he.get(Je,Fe)-we*he.get(Je,Fe-1))/un)):(Gn=Jn(-Ke-hn*he.get(Je,Fe-1),-be-hn*he.get(Je,Fe),pt,we),he.set(Je+1,Fe-1,Gn[0]),he.set(Je+1,Fe,Gn[1]))),Pt=Math.max(Math.abs(he.get(Je,Fe-1)),Math.abs(he.get(Je,Fe))),pn*Pt*Pt>1)for(ye=Je;ye<=Fe;ye++)he.set(ye,Fe-1,he.get(ye,Fe-1)/Pt),he.set(ye,Fe,he.get(ye,Fe)/Pt)}for(Je=0;Je<bt;Je++)if(Je<Nt||Je>ln)for(ye=Je;ye<bt;ye++)K.set(Je,ye,he.get(Je,ye));for(ye=bt-1;ye>=Nt;ye--)for(Je=Nt;Je<=ln;Je++){for(pt=0,Qe=Nt;Qe<=Math.min(ye,ln);Qe++)pt=pt+K.get(Je,Qe)*he.get(Qe,ye);K.set(Je,ye,pt)}}}function Jn(bt,ne,fe,K){let he,Fe;return Math.abs(fe)>Math.abs(K)?(he=K/fe,Fe=fe+he*K,[(bt+he*ne)/Fe,(ne-he*bt)/Fe]):(he=fe/K,Fe=K+he*fe,[(he*bt+ne)/Fe,(he*ne-bt)/Fe])}class Nn{constructor(ne){if(ne=Me.checkMatrix(ne),!ne.isSymmetric())throw new Error("Matrix is not symmetric");let fe=ne,K=fe.rows,he=new Rt(K,K),Fe=!0,Nt,ln,pn;for(ln=0;ln<K;ln++){let Yn=0;for(pn=0;pn<ln;pn++){let ht=0;for(Nt=0;Nt<pn;Nt++)ht+=he.get(pn,Nt)*he.get(ln,Nt);ht=(fe.get(ln,pn)-ht)/he.get(pn,pn),he.set(ln,pn,ht),Yn=Yn+ht*ht}for(Yn=fe.get(ln,ln)-Yn,Fe&&=Yn>0,he.set(ln,ln,Math.sqrt(Math.max(Yn,0))),pn=ln+1;pn<K;pn++)he.set(ln,pn,0)}this.L=he,this.positiveDefinite=Fe}isPositiveDefinite(){return this.positiveDefinite}solve(ne){ne=Me.checkMatrix(ne);let fe=this.L,K=fe.rows;if(ne.rows!==K)throw new Error("Matrix dimensions do not match");if(this.isPositiveDefinite()===!1)throw new Error("Matrix is not positive definite");let he=ne.columns,Fe=ne.clone(),Nt,ln,pn;for(pn=0;pn<K;pn++)for(ln=0;ln<he;ln++){for(Nt=0;Nt<pn;Nt++)Fe.set(pn,ln,Fe.get(pn,ln)-Fe.get(Nt,ln)*fe.get(pn,Nt));Fe.set(pn,ln,Fe.get(pn,ln)/fe.get(pn,pn))}for(pn=K-1;pn>=0;pn--)for(ln=0;ln<he;ln++){for(Nt=pn+1;Nt<K;Nt++)Fe.set(pn,ln,Fe.get(pn,ln)-Fe.get(Nt,ln)*fe.get(Nt,pn));Fe.set(pn,ln,Fe.get(pn,ln)/fe.get(pn,pn))}return Fe}get lowerTriangularMatrix(){return this.L}}class kr{constructor(ne,fe={}){ne=Me.checkMatrix(ne);let{Y:K}=fe;const{scaleScores:he=!1,maxIterations:Fe=1e3,terminationCriteria:Nt=1e-10}=fe;let ln;if(K){if(g.isAnyArray(K)&&typeof K[0]=="number"?K=Rt.columnVector(K):K=Me.checkMatrix(K),K.rows!==ne.rows)throw new Error("Y should have the same number of rows as X");ln=K.getColumnVector(0)}else ln=ne.getColumnVector(0);let pn=1,Yn,ht,De,we;for(let Ke=0;Ke<Fe&&pn>Nt;Ke++)De=ne.transpose().mmul(ln).div(ln.transpose().mmul(ln).get(0,0)),De=De.div(De.norm()),Yn=ne.mmul(De).div(De.transpose().mmul(De).get(0,0)),Ke>0&&(pn=Yn.clone().sub(we).pow(2).sum()),we=Yn.clone(),K?(ht=K.transpose().mmul(Yn).div(Yn.transpose().mmul(Yn).get(0,0)),ht=ht.div(ht.norm()),ln=K.mmul(ht).div(ht.transpose().mmul(ht).get(0,0))):ln=Yn;if(K){let Ke=ne.transpose().mmul(Yn).div(Yn.transpose().mmul(Yn).get(0,0));Ke=Ke.div(Ke.norm());let be=ne.clone().sub(Yn.clone().mmul(Ke.transpose())),pt=ln.transpose().mmul(Yn).div(Yn.transpose().mmul(Yn).get(0,0)),We=K.clone().sub(Yn.clone().mulS(pt.get(0,0)).mmul(ht.transpose()));this.t=Yn,this.p=Ke.transpose(),this.w=De.transpose(),this.q=ht,this.u=ln,this.s=Yn.transpose().mmul(Yn),this.xResidual=be,this.yResidual=We,this.betas=pt}else this.w=De.transpose(),this.s=Yn.transpose().mmul(Yn).sqrt(),he?this.t=Yn.clone().div(this.s.get(0,0)):this.t=Yn,this.xResidual=ne.sub(Yn.mmul(De.transpose()))}}w.y3=Ze,w.jy=Nn,w.oN=Nn,w.Hc=Mt,w.cg=er,w.hj=er,w.LU=Ft,w.Tb=Ft,w.uq=Rt,w.Zm=bn,w.Dq=Tn,w.__=$t,w.q0=Ct,w.lh=me,w.pI=Z,w.zC=ke,w.zg=Ee,w.g6=_e,w.OL=kr,w.ks=kr,w.QR=Zt,w.jp=Zt,w.mk=nn,w.W2=nn,w.l=Dn,w.KY=ge,w.dv=Me,w.BR=Wn,w.Wu=Cn,l=Rt,w.a4=Vt,w.DI=Pn,w.Jo=on,w.Zi=tr,w.kH=rn,w.LV=lt},10706:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.buffer=void 0;var l=u(65212),g=u(5717),y=u(17214),x=u(19724);function f(p){return l.operate(function(h,E){var v=[];return h.subscribe(y.createOperatorSubscriber(E,function(m){return v.push(m)},function(){E.next(v),E.complete()})),x.innerFrom(p).subscribe(y.createOperatorSubscriber(E,function(){var m=v;v=[],E.next(m)},g.noop)),function(){v=null}})}w.buffer=f},10824:(Ge,w,u)=>{"use strict";u.d(w,{O4:()=>Dn,VB:()=>De});var l=u(96540),g=u(83175),y=u(31635);const x=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function f(be,pt,We){const Je=p(be),{webkitRelativePath:ye}=be,Qe=typeof pt=="string"?pt:typeof ye=="string"&&ye.length>0?ye:`./${be.name}`;return typeof Je.path!="string"&&h(Je,"path",Qe),We!==void 0&&Object.defineProperty(Je,"handle",{value:We,writable:!1,configurable:!1,enumerable:!0}),h(Je,"relativePath",Qe),Je}function p(be){const{name:pt}=be;if(pt&&pt.lastIndexOf(".")!==-1&&!be.type){const Je=pt.split(".").pop().toLowerCase(),ye=x.get(Je);ye&&Object.defineProperty(be,"type",{value:ye,writable:!1,configurable:!1,enumerable:!0})}return be}function h(be,pt,We){Object.defineProperty(be,pt,{value:We,writable:!1,configurable:!1,enumerable:!0})}const E=[".DS_Store","Thumbs.db"];function v(be){return(0,y.__awaiter)(this,void 0,void 0,function*(){return d(be)&&m(be.dataTransfer)?C(be.dataTransfer,be.type):S(be)?O(be):Array.isArray(be)&&be.every(pt=>"getFile"in pt&&typeof pt.getFile=="function")?R(be):[]})}function m(be){return d(be)}function S(be){return d(be)&&d(be.target)}function d(be){return typeof be=="object"&&be!==null}function O(be){return j(be.target.files).map(pt=>f(pt))}function R(be){return(0,y.__awaiter)(this,void 0,void 0,function*(){return(yield Promise.all(be.map(We=>We.getFile()))).map(We=>f(We))})}function C(be,pt){return(0,y.__awaiter)(this,void 0,void 0,function*(){if(be.items){const We=j(be.items).filter(ye=>ye.kind==="file");if(pt!=="drop")return We;const Je=yield Promise.all(We.map(I));return L(U(Je))}return L(j(be.files).map(We=>f(We)))})}function L(be){return be.filter(pt=>E.indexOf(pt.name)===-1)}function j(be){if(be===null)return[];const pt=[];for(let We=0;We<be.length;We++){const Je=be[We];pt.push(Je)}return pt}function I(be){if(typeof be.webkitGetAsEntry!="function")return $(be);const pt=be.webkitGetAsEntry();return pt&&pt.isDirectory?re(pt):$(be,pt)}function U(be){return be.reduce((pt,We)=>[...pt,...Array.isArray(We)?U(We):[We]],[])}function $(be,pt){var We;if(typeof be.getAsFileSystemHandle=="function")return be.getAsFileSystemHandle().then(Qe=>(0,y.__awaiter)(this,void 0,void 0,function*(){const ze=yield Qe.getFile();return ze.handle=Qe,f(ze)}));const Je=be.getAsFile();if(!Je)return Promise.reject(`${be} is not a File`);const ye=f(Je,(We=pt?.fullPath)!==null&&We!==void 0?We:void 0);return Promise.resolve(ye)}function ee(be){return(0,y.__awaiter)(this,void 0,void 0,function*(){return be.isDirectory?re(be):Se(be)})}function re(be){const pt=be.createReader();return new Promise((We,Je)=>{const ye=[];function Qe(){pt.readEntries(ze=>(0,y.__awaiter)(this,void 0,void 0,function*(){if(ze.length){const qe=Promise.all(ze.map(ee));ye.push(qe),Qe()}else try{const qe=yield Promise.all(ye);We(qe)}catch(qe){Je(qe)}}),ze=>{Je(ze)})}Qe()})}function Se(be){return(0,y.__awaiter)(this,void 0,void 0,function*(){return new Promise((pt,We)=>{be.file(Je=>{const ye=f(Je,be.fullPath);pt(ye)},Je=>{We(Je)})})})}var z=u(9455);function Q(be){return q(be)||se(be)||ie(be)||ce()}function ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(be){if(typeof Symbol<"u"&&be[Symbol.iterator]!=null||be["@@iterator"]!=null)return Array.from(be)}function q(be){if(Array.isArray(be))return Te(be)}function te(be,pt){var We=Object.keys(be);if(Object.getOwnPropertySymbols){var Je=Object.getOwnPropertySymbols(be);pt&&(Je=Je.filter(function(ye){return Object.getOwnPropertyDescriptor(be,ye).enumerable})),We.push.apply(We,Je)}return We}function A(be){for(var pt=1;pt<arguments.length;pt++){var We=arguments[pt]!=null?arguments[pt]:{};pt%2?te(Object(We),!0).forEach(function(Je){T(be,Je,We[Je])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(We)):te(Object(We)).forEach(function(Je){Object.defineProperty(be,Je,Object.getOwnPropertyDescriptor(We,Je))})}return be}function T(be,pt,We){return pt in be?Object.defineProperty(be,pt,{value:We,enumerable:!0,configurable:!0,writable:!0}):be[pt]=We,be}function B(be){"@babel/helpers - typeof";return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pt){return typeof pt}:function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt},B(be)}function X(be,pt){return yt(be)||je(be,pt)||ie(be,pt)||ue()}function ue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(be,pt){if(be){if(typeof be=="string")return Te(be,pt);var We=Object.prototype.toString.call(be).slice(8,-1);if(We==="Object"&&be.constructor&&(We=be.constructor.name),We==="Map"||We==="Set")return Array.from(be);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return Te(be,pt)}}function Te(be,pt){(pt==null||pt>be.length)&&(pt=be.length);for(var We=0,Je=new Array(pt);We<pt;We++)Je[We]=be[We];return Je}function je(be,pt){var We=be==null?null:typeof Symbol<"u"&&be[Symbol.iterator]||be["@@iterator"];if(We!=null){var Je=[],ye=!0,Qe=!1,ze,qe;try{for(We=We.call(be);!(ye=(ze=We.next()).done)&&(Je.push(ze.value),!(pt&&Je.length===pt));ye=!0);}catch(Pt){Qe=!0,qe=Pt}finally{try{!ye&&We.return!=null&&We.return()}finally{if(Qe)throw qe}}return Je}}function yt(be){if(Array.isArray(be))return be}var tt=typeof z=="function"?z:z.default,Ze="file-invalid-type",Ne="file-too-large",it="file-too-small",Rt="too-many-files",Dn={FileInvalidType:Ze,FileTooLarge:Ne,FileTooSmall:it,TooManyFiles:Rt},Mt=function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",We=pt.split(","),Je=We.length>1?"one of ".concat(We.join(", ")):We[0];return{code:Ze,message:"File type must be ".concat(Je)}},Wt=function(pt){return{code:Ne,message:"File is larger than ".concat(pt," ").concat(pt===1?"byte":"bytes")}},Tn=function(pt){return{code:it,message:"File is smaller than ".concat(pt," ").concat(pt===1?"byte":"bytes")}},bn={code:Rt,message:"Too many files"};function $t(be,pt){var We=be.type==="application/x-moz-file"||tt(be,pt);return[We,We?null:Mt(pt)]}function Ct(be,pt,We){if(Z(be.size))if(Z(pt)&&Z(We)){if(be.size>We)return[!1,Wt(We)];if(be.size<pt)return[!1,Tn(pt)]}else{if(Z(pt)&&be.size<pt)return[!1,Tn(pt)];if(Z(We)&&be.size>We)return[!1,Wt(We)]}return[!0,null]}function Z(be){return be!=null}function me(be){var pt=be.files,We=be.accept,Je=be.minSize,ye=be.maxSize,Qe=be.multiple,ze=be.maxFiles,qe=be.validator;return!Qe&&pt.length>1||Qe&&ze>=1&&pt.length>ze?!1:pt.every(function(Pt){var zt=$t(Pt,We),un=X(zt,1),hn=un[0],xt=Ct(Pt,Je,ye),_t=X(xt,1),qt=_t[0],fn=qe?qe(Pt):null;return hn&&qt&&!fn})}function ke(be){return typeof be.isPropagationStopped=="function"?be.isPropagationStopped():typeof be.cancelBubble<"u"?be.cancelBubble:!1}function Ee(be){return be.dataTransfer?Array.prototype.some.call(be.dataTransfer.types,function(pt){return pt==="Files"||pt==="application/x-moz-file"}):!!be.target&&!!be.target.files}function _e(be){return B(be)==="object"&&be!==null&&be.kind==="file"}function ge(be){be.preventDefault()}function Me(be){return be.indexOf("MSIE")!==-1||be.indexOf("Trident/")!==-1}function lt(be){return be.indexOf("Edge/")!==-1}function Ft(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Me(be)||lt(be)}function Et(){for(var be=arguments.length,pt=new Array(be),We=0;We<be;We++)pt[We]=arguments[We];return function(Je){for(var ye=arguments.length,Qe=new Array(ye>1?ye-1:0),ze=1;ze<ye;ze++)Qe[ze-1]=arguments[ze];return pt.some(function(qe){return!ke(Je)&&qe&&qe.apply(void 0,[Je].concat(Qe)),ke(Je)})}}function Zt(){return"showOpenFilePicker"in window}function nn(be){if(Z(be)){var pt=Object.entries(be).filter(function(We){var Je=X(We,2),ye=Je[0],Qe=Je[1],ze=!0;return Kn(ye)||(console.warn('Skipped "'.concat(ye,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),ze=!1),(!Array.isArray(Qe)||!Qe.every(ur))&&(console.warn('Skipped "'.concat(ye,'" because an invalid file extension was provided.')),ze=!1),ze}).reduce(function(We,Je){var ye=X(Je,2),Qe=ye[0],ze=ye[1];return A(A({},We),{},T({},Qe,ze))},{});return[{description:"Files",accept:pt}]}return be}function Pn(be){if(Z(be))return Object.entries(be).reduce(function(pt,We){var Je=X(We,2),ye=Je[0],Qe=Je[1];return[].concat(Q(pt),[ye],Q(Qe))},[]).filter(function(pt){return Kn(pt)||ur(pt)}).join(",")}function rn(be){return be instanceof DOMException&&(be.name==="AbortError"||be.code===be.ABORT_ERR)}function Vt(be){return be instanceof DOMException&&(be.name==="SecurityError"||be.code===be.SECURITY_ERR)}function Kn(be){return be==="audio/*"||be==="video/*"||be==="image/*"||be==="text/*"||be==="application/*"||/\w+\/[-+.\w]+/g.test(be)}function ur(be){return/^.*\.[\w]+$/.test(be)}var on=["children"],tr=["open"],Cn=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Wn=["refKey","onChange","onClick"];function er(be){return gn(be)||en(be)||Nn(be)||Fn()}function Fn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function en(be){if(typeof Symbol<"u"&&be[Symbol.iterator]!=null||be["@@iterator"]!=null)return Array.from(be)}function gn(be){if(Array.isArray(be))return kr(be)}function kn(be,pt){return ne(be)||bt(be,pt)||Nn(be,pt)||Jn()}function Jn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nn(be,pt){if(be){if(typeof be=="string")return kr(be,pt);var We=Object.prototype.toString.call(be).slice(8,-1);if(We==="Object"&&be.constructor&&(We=be.constructor.name),We==="Map"||We==="Set")return Array.from(be);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return kr(be,pt)}}function kr(be,pt){(pt==null||pt>be.length)&&(pt=be.length);for(var We=0,Je=new Array(pt);We<pt;We++)Je[We]=be[We];return Je}function bt(be,pt){var We=be==null?null:typeof Symbol<"u"&&be[Symbol.iterator]||be["@@iterator"];if(We!=null){var Je=[],ye=!0,Qe=!1,ze,qe;try{for(We=We.call(be);!(ye=(ze=We.next()).done)&&(Je.push(ze.value),!(pt&&Je.length===pt));ye=!0);}catch(Pt){Qe=!0,qe=Pt}finally{try{!ye&&We.return!=null&&We.return()}finally{if(Qe)throw qe}}return Je}}function ne(be){if(Array.isArray(be))return be}function fe(be,pt){var We=Object.keys(be);if(Object.getOwnPropertySymbols){var Je=Object.getOwnPropertySymbols(be);pt&&(Je=Je.filter(function(ye){return Object.getOwnPropertyDescriptor(be,ye).enumerable})),We.push.apply(We,Je)}return We}function K(be){for(var pt=1;pt<arguments.length;pt++){var We=arguments[pt]!=null?arguments[pt]:{};pt%2?fe(Object(We),!0).forEach(function(Je){he(be,Je,We[Je])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(We)):fe(Object(We)).forEach(function(Je){Object.defineProperty(be,Je,Object.getOwnPropertyDescriptor(We,Je))})}return be}function he(be,pt,We){return pt in be?Object.defineProperty(be,pt,{value:We,enumerable:!0,configurable:!0,writable:!0}):be[pt]=We,be}function Fe(be,pt){if(be==null)return{};var We=Nt(be,pt),Je,ye;if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(be);for(ye=0;ye<Qe.length;ye++)Je=Qe[ye],!(pt.indexOf(Je)>=0)&&Object.prototype.propertyIsEnumerable.call(be,Je)&&(We[Je]=be[Je])}return We}function Nt(be,pt){if(be==null)return{};var We={},Je=Object.keys(be),ye,Qe;for(Qe=0;Qe<Je.length;Qe++)ye=Je[Qe],!(pt.indexOf(ye)>=0)&&(We[ye]=be[ye]);return We}var ln=(0,l.forwardRef)(function(be,pt){var We=be.children,Je=Fe(be,on),ye=De(Je),Qe=ye.open,ze=Fe(ye,tr);return(0,l.useImperativeHandle)(pt,function(){return{open:Qe}},[Qe]),l.createElement(l.Fragment,null,We(K(K({},ze),{},{open:Qe})))});ln.displayName="Dropzone";var pn={disabled:!1,getFilesFromEvent:v,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ln.defaultProps=pn,ln.propTypes={children:g.func,accept:g.objectOf(g.arrayOf(g.string)),multiple:g.bool,preventDropOnDocument:g.bool,noClick:g.bool,noKeyboard:g.bool,noDrag:g.bool,noDragEventsBubbling:g.bool,minSize:g.number,maxSize:g.number,maxFiles:g.number,disabled:g.bool,getFilesFromEvent:g.func,onFileDialogCancel:g.func,onFileDialogOpen:g.func,useFsAccessApi:g.bool,autoFocus:g.bool,onDragEnter:g.func,onDragLeave:g.func,onDragOver:g.func,onDrop:g.func,onDropAccepted:g.func,onDropRejected:g.func,onError:g.func,validator:g.func};const Yn=null;var ht={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function De(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pt=K(K({},pn),be),We=pt.accept,Je=pt.disabled,ye=pt.getFilesFromEvent,Qe=pt.maxSize,ze=pt.minSize,qe=pt.multiple,Pt=pt.maxFiles,zt=pt.onDragEnter,un=pt.onDragLeave,hn=pt.onDragOver,xt=pt.onDrop,_t=pt.onDropAccepted,qt=pt.onDropRejected,fn=pt.onFileDialogCancel,On=pt.onFileDialogOpen,Gn=pt.useFsAccessApi,Bn=pt.autoFocus,Lr=pt.preventDropOnDocument,An=pt.noClick,Un=pt.noKeyboard,cr=pt.noDrag,mr=pt.noDragEventsBubbling,hr=pt.onError,ar=pt.validator,Cr=(0,l.useMemo)(function(){return Pn(We)},[We]),Yr=(0,l.useMemo)(function(){return nn(We)},[We]),Xr=(0,l.useMemo)(function(){return typeof On=="function"?On:Ke},[On]),ni=(0,l.useMemo)(function(){return typeof fn=="function"?fn:Ke},[fn]),ki=(0,l.useRef)(null),zr=(0,l.useRef)(null),Ur=(0,l.useReducer)(we,ht),jt=kn(Ur,2),sn=jt[0],Rn=jt[1],H=sn.isFocused,Be=sn.isFileDialogActive,wn=(0,l.useRef)(typeof window<"u"&&window.isSecureContext&&Gn&&Zt()),bi=function(){!wn.current&&Be&&setTimeout(function(){if(zr.current){var xr=zr.current.files;xr.length||(Rn({type:"closeDialog"}),ni())}},300)};(0,l.useEffect)(function(){return window.addEventListener("focus",bi,!1),function(){window.removeEventListener("focus",bi,!1)}},[zr,Be,ni,wn]);var Oi=(0,l.useRef)([]),de=function(xr){ki.current&&ki.current.contains(xr.target)||(xr.preventDefault(),Oi.current=[])};(0,l.useEffect)(function(){return Lr&&(document.addEventListener("dragover",ge,!1),document.addEventListener("drop",de,!1)),function(){Lr&&(document.removeEventListener("dragover",ge),document.removeEventListener("drop",de))}},[ki,Lr]),(0,l.useEffect)(function(){return!Je&&Bn&&ki.current&&ki.current.focus(),function(){}},[ki,Bn,Je]);var Ve=(0,l.useCallback)(function(ir){hr?hr(ir):console.error(ir)},[hr]),vt=(0,l.useCallback)(function(ir){ir.preventDefault(),ir.persist(),Qr(ir),Oi.current=[].concat(er(Oi.current),[ir.target]),Ee(ir)&&Promise.resolve(ye(ir)).then(function(xr){if(!(ke(ir)&&!mr)){var di=xr.length,ft=di>0&&me({files:xr,accept:Cr,minSize:ze,maxSize:Qe,multiple:qe,maxFiles:Pt,validator:ar}),zn=di>0&&!ft;Rn({isDragAccept:ft,isDragReject:zn,isDragActive:!0,type:"setDraggedFiles"}),zt&&zt(ir)}}).catch(function(xr){return Ve(xr)})},[ye,zt,Ve,mr,Cr,ze,Qe,qe,Pt,ar]),Qt=(0,l.useCallback)(function(ir){ir.preventDefault(),ir.persist(),Qr(ir);var xr=Ee(ir);if(xr&&ir.dataTransfer)try{ir.dataTransfer.dropEffect="copy"}catch{}return xr&&hn&&hn(ir),!1},[hn,mr]),nt=(0,l.useCallback)(function(ir){ir.preventDefault(),ir.persist(),Qr(ir);var xr=Oi.current.filter(function(ft){return ki.current&&ki.current.contains(ft)}),di=xr.indexOf(ir.target);di!==-1&&xr.splice(di,1),Oi.current=xr,!(xr.length>0)&&(Rn({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ee(ir)&&un&&un(ir))},[ki,un,mr]),Tt=(0,l.useCallback)(function(ir,xr){var di=[],ft=[];ir.forEach(function(zn){var Zn=$t(zn,Cr),wi=kn(Zn,2),Ea=wi[0],wa=wi[1],ji=Ct(zn,ze,Qe),Dt=kn(ji,2),Xn=Dt[0],Tr=Dt[1],Nr=ar?ar(zn):null;if(Ea&&Xn&&!Nr)di.push(zn);else{var ti=[wa,Tr];Nr&&(ti=ti.concat(Nr)),ft.push({file:zn,errors:ti.filter(function(_i){return _i})})}}),(!qe&&di.length>1||qe&&Pt>=1&&di.length>Pt)&&(di.forEach(function(zn){ft.push({file:zn,errors:[bn]})}),di.splice(0)),Rn({acceptedFiles:di,fileRejections:ft,isDragReject:ft.length>0,type:"setFiles"}),xt&&xt(di,ft,xr),ft.length>0&&qt&&qt(ft,xr),di.length>0&&_t&&_t(di,xr)},[Rn,qe,Cr,ze,Qe,Pt,xt,_t,qt,ar]),Gt=(0,l.useCallback)(function(ir){ir.preventDefault(),ir.persist(),Qr(ir),Oi.current=[],Ee(ir)&&Promise.resolve(ye(ir)).then(function(xr){ke(ir)&&!mr||Tt(xr,ir)}).catch(function(xr){return Ve(xr)}),Rn({type:"reset"})},[ye,Tt,Ve,mr]),En=(0,l.useCallback)(function(){if(wn.current){Rn({type:"openDialog"}),Xr();var ir={multiple:qe,types:Yr};window.showOpenFilePicker(ir).then(function(xr){return ye(xr)}).then(function(xr){Tt(xr,null),Rn({type:"closeDialog"})}).catch(function(xr){rn(xr)?(ni(xr),Rn({type:"closeDialog"})):Vt(xr)?(wn.current=!1,zr.current?(zr.current.value=null,zr.current.click()):Ve(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Ve(xr)});return}zr.current&&(Rn({type:"openDialog"}),Xr(),zr.current.value=null,zr.current.click())},[Rn,Xr,ni,Gn,Tt,Ve,Yr,qe]),Qn=(0,l.useCallback)(function(ir){!ki.current||!ki.current.isEqualNode(ir.target)||(ir.key===" "||ir.key==="Enter"||ir.keyCode===32||ir.keyCode===13)&&(ir.preventDefault(),En())},[ki,En]),Or=(0,l.useCallback)(function(){Rn({type:"focus"})},[]),Pr=(0,l.useCallback)(function(){Rn({type:"blur"})},[]),ai=(0,l.useCallback)(function(){An||(Ft()?setTimeout(En,0):En())},[An,En]),xi=function(xr){return Je?null:xr},mi=function(xr){return Un?null:xi(xr)},ei=function(xr){return cr?null:xi(xr)},Qr=function(xr){mr&&xr.stopPropagation()},Ni=(0,l.useMemo)(function(){return function(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xr=ir.refKey,di=xr===void 0?"ref":xr,ft=ir.role,zn=ir.onKeyDown,Zn=ir.onFocus,wi=ir.onBlur,Ea=ir.onClick,wa=ir.onDragEnter,ji=ir.onDragOver,Dt=ir.onDragLeave,Xn=ir.onDrop,Tr=Fe(ir,Cn);return K(K(he({onKeyDown:mi(Et(zn,Qn)),onFocus:mi(Et(Zn,Or)),onBlur:mi(Et(wi,Pr)),onClick:xi(Et(Ea,ai)),onDragEnter:ei(Et(wa,vt)),onDragOver:ei(Et(ji,Qt)),onDragLeave:ei(Et(Dt,nt)),onDrop:ei(Et(Xn,Gt)),role:typeof ft=="string"&&ft!==""?ft:"presentation"},di,ki),!Je&&!Un?{tabIndex:0}:{}),Tr)}},[ki,Qn,Or,Pr,ai,vt,Qt,nt,Gt,Un,cr,Je]),ea=(0,l.useCallback)(function(ir){ir.stopPropagation()},[]),Qi=(0,l.useMemo)(function(){return function(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xr=ir.refKey,di=xr===void 0?"ref":xr,ft=ir.onChange,zn=ir.onClick,Zn=Fe(ir,Wn),wi=he({accept:Cr,multiple:qe,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xi(Et(ft,Gt)),onClick:xi(Et(zn,ea)),tabIndex:-1},di,zr);return K(K({},wi),Zn)}},[zr,We,qe,Gt,Je]);return K(K({},sn),{},{isFocused:H&&!Je,getRootProps:Ni,getInputProps:Qi,rootRef:ki,inputRef:zr,open:xi(En)})}function we(be,pt){switch(pt.type){case"focus":return K(K({},be),{},{isFocused:!0});case"blur":return K(K({},be),{},{isFocused:!1});case"openDialog":return K(K({},ht),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},be),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},be),{},{isDragActive:pt.isDragActive,isDragAccept:pt.isDragAccept,isDragReject:pt.isDragReject});case"setFiles":return K(K({},be),{},{acceptedFiles:pt.acceptedFiles,fileRejections:pt.fileRejections,isDragReject:pt.isDragReject});case"reset":return K({},ht);default:return be}}function Ke(){}},10970:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.count=void 0;var l=u(92070);function g(y){return l.reduce(function(x,f,p){return!y||y(f,p)?x+1:x},0)}w.count=g},11094:(Ge,w,u)=>{var l=u(50668);w=Ge.exports=g,g.through=g;function g(y,x,f){y=y||function(O){this.queue(O)},x=x||function(){this.queue(null)};var p=!1,h=!1,E=[],v=!1,m=new l;m.readable=m.writable=!0,m.paused=!1,m.autoDestroy=!(f&&f.autoDestroy===!1),m.write=function(O){return y.call(this,O),!m.paused};function S(){for(;E.length&&!m.paused;){var O=E.shift();if(O===null)return m.emit("end");m.emit("data",O)}}m.queue=m.push=function(O){return v||(O===null&&(v=!0),E.push(O),S()),m},m.on("end",function(){m.readable=!1,!m.writable&&m.autoDestroy&&process.nextTick(function(){m.destroy()})});function d(){m.writable=!1,x.call(m),!m.readable&&m.autoDestroy&&m.destroy()}return m.end=function(O){if(!p)return p=!0,arguments.length&&m.write(O),d(),m},m.destroy=function(){if(!h)return h=!0,p=!0,E.length=0,m.writable=m.readable=!1,m.emit("close"),m},m.pause=function(){if(!m.paused)return m.paused=!0,m},m.resume=function(){return m.paused&&(m.paused=!1,m.emit("resume")),S(),m.paused||m.emit("drain"),m},m}},11150:(Ge,w,u)=>{"use strict";u.d(w,{Z:()=>x,t:()=>y});var l=u(88483),g=u(92357),y=new l.c(g.l);function x(){return y}},11217:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>O});var l=u(66514),g=u(70915),y=u(62096),x=u(63953),f=u(92497),p=u(56361),h=u(79969),E=u(4350),v=u(50904),m=u(91374),S=u(83671);class d extends y.Ay{constructor(C,L){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,L!==void 0&&!Array.isArray(C[0])?this.setFlatCoordinates(L,C):this.setCoordinates(C,L)}appendCoordinate(C){(0,l.X$)(this.flatCoordinates,C),this.changed()}clone(){const C=new d(this.flatCoordinates.slice(),this.layout);return C.applyProperties(this),C}closestPointXY(C,L,j,I){return I<(0,g.Ld)(this.getExtent(),C,L)?I:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,x.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,x.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,C,L,j,I))}forEachSegment(C){return(0,m.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,C)}getCoordinateAtM(C,L){return this.layout!="XYM"&&this.layout!="XYZM"?null:(L=L!==void 0?L:!1,(0,h.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,C,L))}getCoordinates(){return(0,p.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(C,L){return(0,h.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,C,L,this.stride)}getLength(){return(0,v.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(C){const L=[];return L.length=(0,S.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,C,L,0),new d(L,"XY")}getType(){return"LineString"}intersectsExtent(C){return(0,E.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,C,this.getExtent())}setCoordinates(C,L){this.setLayout(L,C,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,f.z2)(this.flatCoordinates,0,C,this.stride),this.changed()}}const O=d},11365:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>A});var l=u(86717),g=u(62096),y=u(92497),x=u(43530),f=u(82922),p=u(24778),h=u(98217),E=u(4087);class v extends h.Ay{constructor(){super()}getType(){return"json"}readFeature(B,X){return this.readFeatureFromObject(m(B),this.getReadOptions(B,X))}readFeatures(B,X){return this.readFeaturesFromObject(m(B),this.getReadOptions(B,X))}readFeatureFromObject(B,X){return(0,E.b0)()}readFeaturesFromObject(B,X){return(0,E.b0)()}readGeometry(B,X){return this.readGeometryFromObject(m(B),this.getReadOptions(B,X))}readGeometryFromObject(B,X){return(0,E.b0)()}readProjection(B){return this.readProjectionFromObject(m(B))}readProjectionFromObject(B){return(0,E.b0)()}writeFeature(B,X){return JSON.stringify(this.writeFeatureObject(B,X))}writeFeatureObject(B,X){return(0,E.b0)()}writeFeatures(B,X){return JSON.stringify(this.writeFeaturesObject(B,X))}writeFeaturesObject(B,X){return(0,E.b0)()}writeGeometry(B,X){return JSON.stringify(this.writeGeometryObject(B,X))}writeGeometryObject(B,X){return(0,E.b0)()}}function m(T){if(typeof T=="string"){const B=JSON.parse(T);return B||null}return T!==null?T:null}const S=v;class d extends S{constructor(B){B=B||{},super(),this.dataProjection=(0,f.Jt)(B.dataProjection?B.dataProjection:"EPSG:4326"),B.featureProjection&&(this.defaultFeatureProjection=(0,f.Jt)(B.featureProjection)),B.featureClass&&(this.featureClass=B.featureClass),this.geometryName_=B.geometryName,this.extractGeometryName_=B.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(B,X){let ue=null;B.type==="Feature"?ue=B:ue={type:"Feature",geometry:B,properties:null};const ie=O(ue.geometry,X);if(this.featureClass===p.Ay)return(0,h.Bs)({geometry:ie,id:ue.id,properties:ue.properties},X);const Te=new l.A;return this.geometryName_?Te.setGeometryName(this.geometryName_):this.extractGeometryName_&&ue.geometry_name&&Te.setGeometryName(ue.geometry_name),Te.setGeometry((0,h.te)(ie,X)),"id"in ue&&Te.setId(ue.id),ue.properties&&Te.setProperties(ue.properties,!0),Te}readFeaturesFromObject(B,X){const ue=B;let ie=null;if(ue.type==="FeatureCollection"){const Te=B;ie=[];const je=Te.features;for(let yt=0,tt=je.length;yt<tt;++yt){const Ze=this.readFeatureFromObject(je[yt],X);Ze&&ie.push(Ze)}}else ie=[this.readFeatureFromObject(B,X)];return ie.flat()}readGeometryFromObject(B,X){return R(B,X)}readProjectionFromObject(B){const X=B.crs;let ue;if(X)if(X.type=="name")ue=(0,f.Jt)(X.properties.name);else if(X.type==="EPSG")ue=(0,f.Jt)("EPSG:"+X.properties.code);else throw new Error("Unknown SRS type");else ue=this.dataProjection;return ue}writeFeatureObject(B,X){X=this.adaptOptions(X);const ue={type:"Feature",geometry:null,properties:null},ie=B.getId();if(ie!==void 0&&(ue.id=ie),!B.hasProperties())return ue;const Te=B.getProperties(),je=B.getGeometry();return je&&(ue.geometry=re(je,X),delete Te[B.getGeometryName()]),(0,x.p)(Te)||(ue.properties=Te),ue}writeFeaturesObject(B,X){X=this.adaptOptions(X);const ue=[];for(let ie=0,Te=B.length;ie<Te;++ie)ue.push(this.writeFeatureObject(B[ie],X));return{type:"FeatureCollection",features:ue}}writeGeometryObject(B,X){return re(B,this.adaptOptions(X))}}function O(T,B){if(!T)return null;let X;switch(T.type){case"Point":{X=L(T);break}case"LineString":{X=j(T);break}case"Polygon":{X=ee(T);break}case"MultiPoint":{X=U(T);break}case"MultiLineString":{X=I(T);break}case"MultiPolygon":{X=$(T);break}case"GeometryCollection":{X=C(T);break}default:throw new Error("Unsupported GeoJSON type: "+T.type)}return X}function R(T,B){const X=O(T,B);return(0,h.te)(X,B)}function C(T,B){return T.geometries.map(function(ue){return O(ue,B)})}function L(T){const B=T.coordinates;return{type:"Point",flatCoordinates:B,layout:(0,g.p0)(B.length)}}function j(T){const B=T.coordinates,X=B.flat();return{type:"LineString",flatCoordinates:X,ends:[X.length],layout:(0,g.p0)(B[0]?.length||2)}}function I(T){const B=T.coordinates,X=B[0]?.[0]?.length||2,ue=[],ie=(0,y.KG)(ue,0,B,X);return{type:"MultiLineString",flatCoordinates:ue,ends:ie,layout:(0,g.p0)(X)}}function U(T){const B=T.coordinates;return{type:"MultiPoint",flatCoordinates:B.flat(),layout:(0,g.p0)(B[0]?.length||2)}}function $(T){const B=T.coordinates,X=[],ue=B[0]?.[0]?.[0].length||2,ie=(0,y.d6)(X,0,B,ue);return{type:"MultiPolygon",flatCoordinates:X,ends:ie,layout:(0,g.p0)(ue)}}function ee(T){const B=T.coordinates,X=[],ue=B[0]?.[0]?.length,ie=(0,y.KG)(X,0,B,ue);return{type:"Polygon",flatCoordinates:X,ends:ie,layout:(0,g.p0)(ue)}}function re(T,B){T=(0,h.hX)(T,!0,B);const X=T.getType();let ue;switch(X){case"Point":{ue=q(T,B);break}case"LineString":{ue=z(T,B);break}case"Polygon":{ue=te(T,B);break}case"MultiPoint":{ue=ce(T,B);break}case"MultiLineString":{ue=Q(T,B);break}case"MultiPolygon":{ue=se(T,B);break}case"GeometryCollection":{ue=Se(T,B);break}case"Circle":{ue={type:"GeometryCollection",geometries:[]};break}default:throw new Error("Unsupported geometry type: "+X)}return ue}function Se(T,B){return B=Object.assign({},B),delete B.featureProjection,{type:"GeometryCollection",geometries:T.getGeometriesArray().map(function(ue){return re(ue,B)})}}function z(T,B){return{type:"LineString",coordinates:T.getCoordinates()}}function Q(T,B){return{type:"MultiLineString",coordinates:T.getCoordinates()}}function ce(T,B){return{type:"MultiPoint",coordinates:T.getCoordinates()}}function se(T,B){let X;return B&&(X=B.rightHanded),{type:"MultiPolygon",coordinates:T.getCoordinates(X)}}function q(T,B){return{type:"Point",coordinates:T.getCoordinates()}}function te(T,B){let X;return B&&(X=B.rightHanded),{type:"Polygon",coordinates:T.getCoordinates(X)}}const A=d},11415:function(Ge,w,u){"use strict";var l=this&&this.__read||function(m,S){var d=typeof Symbol=="function"&&m[Symbol.iterator];if(!d)return m;var O=d.call(m),R,C=[],L;try{for(;(S===void 0||S-- >0)&&!(R=O.next()).done;)C.push(R.value)}catch(j){L={error:j}}finally{try{R&&!R.done&&(d=O.return)&&d.call(O)}finally{if(L)throw L.error}}return C},g=this&&this.__spreadArray||function(m,S){for(var d=0,O=S.length,R=m.length;d<O;d++,R++)m[R]=S[d];return m};Object.defineProperty(w,"__esModule",{value:!0}),w.zip=void 0;var y=u(48051),x=u(19724),f=u(7652),p=u(44885),h=u(17214),E=u(26404);function v(){for(var m=[],S=0;S<arguments.length;S++)m[S]=arguments[S];var d=E.popResultSelector(m),O=f.argsOrArgArray(m);return O.length?new y.Observable(function(R){var C=O.map(function(){return[]}),L=O.map(function(){return!1});R.add(function(){C=L=null});for(var j=function(U){x.innerFrom(O[U]).subscribe(h.createOperatorSubscriber(R,function($){if(C[U].push($),C.every(function(re){return re.length})){var ee=C.map(function(re){return re.shift()});R.next(d?d.apply(void 0,g([],l(ee))):ee),C.some(function(re,Se){return!re.length&&L[Se]})&&R.complete()}},function(){L[U]=!0,!C[U].length&&R.complete()}))},I=0;!R.closed&&I<O.length;I++)j(I);return function(){C=L=null}}):p.EMPTY}w.zip=v},11437:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.TABLE_2=w.TABLE_1=void 0,w.TABLE_1=["years","months","weeks","days","hours","minutes","seconds","milliseconds","microseconds","nanoseconds"],w.TABLE_2=[{valueField:"years",styleSlot:"years",displaySlot:"yearsDisplay",unit:"years",numberFormatUnit:"year"},{valueField:"months",styleSlot:"months",displaySlot:"monthsDisplay",unit:"months",numberFormatUnit:"month"},{valueField:"weeks",styleSlot:"weeks",displaySlot:"weeksDisplay",unit:"weeks",numberFormatUnit:"week"},{valueField:"days",styleSlot:"days",displaySlot:"daysDisplay",unit:"days",numberFormatUnit:"day"},{valueField:"hours",styleSlot:"hours",displaySlot:"hoursDisplay",unit:"hours",numberFormatUnit:"hour"},{valueField:"minutes",styleSlot:"minutes",displaySlot:"minutesDisplay",unit:"minutes",numberFormatUnit:"minute"},{valueField:"seconds",styleSlot:"seconds",displaySlot:"secondsDisplay",unit:"seconds",numberFormatUnit:"second"},{valueField:"milliseconds",styleSlot:"milliseconds",displaySlot:"millisecondsDisplay",unit:"milliseconds",numberFormatUnit:"millisecond"},{valueField:"microseconds",styleSlot:"microseconds",displaySlot:"microsecondsDisplay",unit:"microseconds",numberFormatUnit:"microsecond"},{valueField:"nanoseconds",styleSlot:"nanoseconds",displaySlot:"nanosecondsDisplay",unit:"nanoseconds",numberFormatUnit:"nanosecond"}]},11464:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.exhaust=void 0;var l=u(17977);w.exhaust=l.exhaustAll},11561:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=!0,g="Invariant failed";function y(x,f){if(!x){if(l)throw new Error(g);var p=typeof f=="function"?f():f,h=p?"".concat(g,": ").concat(p):g;throw new Error(h)}}},11580:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});const l={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},11854:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p,e:()=>f});var l=u(6837),g=u(79332),y=u(9438);class x extends g.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(l.A.CHANGE)}getRevision(){return this.revision_}onInternal(E,v){if(Array.isArray(E)){const m=E.length,S=new Array(m);for(let d=0;d<m;++d)S[d]=(0,y.KT)(this,E[d],v);return S}return(0,y.KT)(this,E,v)}onceInternal(E,v){let m;if(Array.isArray(E)){const S=E.length;m=new Array(S);for(let d=0;d<S;++d)m[d]=(0,y.Jz)(this,E[d],v)}else m=(0,y.Jz)(this,E,v);return v.ol_key=m,m}unInternal(E,v){const m=v.ol_key;if(m)f(m);else if(Array.isArray(E))for(let S=0,d=E.length;S<d;++S)this.removeEventListener(E[S],v);else this.removeEventListener(E,v)}}x.prototype.on,x.prototype.once,x.prototype.un;function f(h){if(Array.isArray(h))for(let E=0,v=h.length;E<v;++E)(0,y.JH)(h[E]);else(0,y.JH)(h)}const p=x},11934:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.never=w.NEVER=void 0;var l=u(48051),g=u(5717);w.NEVER=new l.Observable(g.noop);function y(){return w.NEVER}w.never=y},11939:(Ge,w,u)=>{"use strict";function l(g){x.debug=x,x.default=x,x.coerce=m,x.disable=E,x.enable=h,x.enabled=v,x.humanize=u(6585),Object.keys(g).forEach(function(S){x[S]=g[S]}),x.instances=[],x.names=[],x.skips=[],x.formatters={};function y(S){for(var d=0,O=0;O<S.length;O++)d=(d<<5)-d+S.charCodeAt(O),d|=0;return x.colors[Math.abs(d)%x.colors.length]}x.selectColor=y;function x(S){var d;function O(){if(O.enabled){for(var R=arguments.length,C=new Array(R),L=0;L<R;L++)C[L]=arguments[L];var j=O,I=Number(new Date),U=I-(d||I);j.diff=U,j.prev=d,j.curr=I,d=I,C[0]=x.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");var $=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,function(re,Se){if(re==="%%")return re;$++;var z=x.formatters[Se];if(typeof z=="function"){var Q=C[$];re=z.call(j,Q),C.splice($,1),$--}return re}),x.formatArgs.call(j,C);var ee=j.log||x.log;ee.apply(j,C)}}return O.namespace=S,O.enabled=x.enabled(S),O.useColors=x.useColors(),O.color=y(S),O.destroy=f,O.extend=p,typeof x.init=="function"&&x.init(O),x.instances.push(O),O}function f(){var S=x.instances.indexOf(this);return S!==-1?(x.instances.splice(S,1),!0):!1}function p(S,d){return x(this.namespace+(typeof d>"u"?":":d)+S)}function h(S){x.save(S),x.names=[],x.skips=[];var d,O=(typeof S=="string"?S:"").split(/[\s,]+/),R=O.length;for(d=0;d<R;d++)O[d]&&(S=O[d].replace(/\*/g,".*?"),S[0]==="-"?x.skips.push(new RegExp("^"+S.substr(1)+"$")):x.names.push(new RegExp("^"+S+"$")));for(d=0;d<x.instances.length;d++){var C=x.instances[d];C.enabled=x.enabled(C.namespace)}}function E(){x.enable("")}function v(S){if(S[S.length-1]==="*")return!0;var d,O;for(d=0,O=x.skips.length;d<O;d++)if(x.skips[d].test(S))return!1;for(d=0,O=x.names.length;d<O;d++)if(x.names[d].test(S))return!0;return!1}function m(S){return S instanceof Error?S.stack||S.message:S}return x.enable(x.load()),x}Ge.exports=l},12059:(Ge,w,u)=>{"use strict";u.d(w,{l:()=>g});function l(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var g=l()},12187:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isIterable=void 0;var l=u(34891),g=u(10281);function y(x){return g.isFunction(x?.[l.iterator])}w.isIterable=y},12354:(Ge,w,u)=>{"use strict";u.d(w,{N$:()=>y,gX:()=>x});var l=u(96540);const g=(0,l.createContext)({});function y(f){let{getContainer:p}=f,{getContainer:h}=x();return l.createElement(g.Provider,{value:{getContainer:p===null?void 0:p??h}},f.children)}function x(){var f;return(f=(0,l.useContext)(g))!==null&&f!==void 0?f:{}}},12493:(Ge,w,u)=>{var l=u(84051),g=u(36800),y=u(61489),x=u(13222);function f(p,h,E){return(E?g(p,h,E):h===void 0)?h=1:h=y(h),l(x(p),h)}Ge.exports=f},12533:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p});var l=u(34297),g=u(26956),y=u(30981),x=u(1233);function f(h){return h!==void 0}function p(h,E){var v=E||{},m=v.defaultValue,S=v.value,d=v.onChange,O=v.postState,R=(0,x.A)(function(){return f(S)?S:f(m)?typeof m=="function"?m():m:typeof h=="function"?h():h}),C=(0,l.A)(R,2),L=C[0],j=C[1],I=S!==void 0?S:L,U=O?O(I):I,$=(0,g.A)(d),ee=(0,x.A)([I]),re=(0,l.A)(ee,2),Se=re[0],z=re[1];(0,y.o)(function(){var ce=Se[0];L!==ce&&$(L,ce)},[Se]),(0,y.o)(function(){f(S)||j(S)},[S]);var Q=(0,g.A)(function(ce,se){j(ce,se),z([I],se)});return[U,Q]}},12688:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.captureError=w.errorContext=void 0;var l=u(93728),g=null;function y(f){if(l.config.useDeprecatedSynchronousErrorHandling){var p=!g;if(p&&(g={errorThrown:!1,error:null}),f(),p){var h=g,E=h.errorThrown,v=h.error;if(g=null,E)throw v}}else f()}w.errorContext=y;function x(f){l.config.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=f)}w.captureError=x},12974:(Ge,w,u)=>{"use strict";u.d(w,{M:()=>E,w:()=>v});var l=u(44838),g=u(86577),y=u(92908),x=u(15964),f=u(82947),p=u(64878),h=u(56315),E=(0,f.L)(function(S){return function(O){O===void 0&&(O=null),S(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=O}});function v(S,d){var O=(0,g.v)(S)?{first:S}:typeof S=="number"?{each:S}:S,R=O.first,C=O.each,L=O.with,j=L===void 0?m:L,I=O.scheduler,U=I===void 0?d??l.E:I,$=O.meta,ee=$===void 0?null:$;if(R==null&&C==null)throw new TypeError("No timeout provided.");return(0,y.N)(function(re,Se){var z,Q,ce=null,se=0,q=function(te){Q=(0,h.N)(Se,U,function(){try{z.unsubscribe(),(0,x.Tg)(j({meta:ee,lastValue:ce,seen:se})).subscribe(Se)}catch(A){Se.error(A)}},te)};z=re.subscribe((0,p._)(Se,function(te){Q?.unsubscribe(),se++,Se.next(ce=te),C>0&&q(C)},void 0,void 0,function(){Q?.closed||Q?.unsubscribe(),ce=null})),!se&&q(R!=null?typeof R=="number"?R:+R-U.now():C)})}function m(S){throw new E(S)}},13165:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.structuredPatch=E,w.formatPatch=v,w.createTwoFilesPatch=m,w.createPatch=S;var l=u(93578);function g(d){return p(d)||f(d)||x(d)||y()}function y(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(d,O){if(d){if(typeof d=="string")return h(d,O);var R=Object.prototype.toString.call(d).slice(8,-1);if(R==="Object"&&d.constructor&&(R=d.constructor.name),R==="Map"||R==="Set")return Array.from(d);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return h(d,O)}}function f(d){if(typeof Symbol<"u"&&Symbol.iterator in Object(d))return Array.from(d)}function p(d){if(Array.isArray(d))return h(d)}function h(d,O){(O==null||O>d.length)&&(O=d.length);for(var R=0,C=new Array(O);R<O;R++)C[R]=d[R];return C}function E(d,O,R,C,L,j,I){I||(I={}),typeof I.context>"u"&&(I.context=4);var U=(0,l.diffLines)(R,C,I);if(!U)return;U.push({value:"",lines:[]});function $(te){return te.map(function(A){return" "+A})}for(var ee=[],re=0,Se=0,z=[],Q=1,ce=1,se=function(A){var T=U[A],B=T.lines||T.value.replace(/\n$/,"").split(` `);if(T.lines=B,T.added||T.removed){var X;if(!re){var ue=U[A-1];re=Q,Se=ce,ue&&(z=I.context>0?$(ue.lines.slice(-I.context)):[],re-=z.length,Se-=z.length)}(X=z).push.apply(X,g(B.map(function(it){return(T.added?"+":"-")+it}))),T.added?ce+=B.length:Q+=B.length}else{if(re)if(B.length<=I.context*2&&A<U.length-2){var ie;(ie=z).push.apply(ie,g($(B)))}else{var Te,je=Math.min(B.length,I.context);(Te=z).push.apply(Te,g($(B.slice(0,je))));var yt={oldStart:re,oldLines:Q-re+je,newStart:Se,newLines:ce-Se+je,lines:z};if(A>=U.length-2&&B.length<=I.context){var tt=/\n$/.test(R),Ze=/\n$/.test(C),Ne=B.length==0&&z.length>yt.oldLines;!tt&&Ne&&R.length>0&&z.splice(yt.oldLines,0,"\\ No newline at end of file"),(!tt&&!Ne||!Ze)&&z.push("\\ No newline at end of file")}ee.push(yt),re=0,Se=0,z=[]}Q+=B.length,ce+=B.length}},q=0;q<U.length;q++)se(q);return{oldFileName:d,newFileName:O,oldHeader:L,newHeader:j,hunks:ee}}function v(d){if(Array.isArray(d))return d.map(v).join(` `);var O=[];d.oldFileName==d.newFileName&&O.push("Index: "+d.oldFileName),O.push("==================================================================="),O.push("--- "+d.oldFileName+(typeof d.oldHeader>"u"?"":" "+d.oldHeader)),O.push("+++ "+d.newFileName+(typeof d.newHeader>"u"?"":" "+d.newHeader));for(var R=0;R<d.hunks.length;R++){var C=d.hunks[R];C.oldLines===0&&(C.oldStart-=1),C.newLines===0&&(C.newStart-=1),O.push("@@ -"+C.oldStart+","+C.oldLines+" +"+C.newStart+","+C.newLines+" @@"),O.push.apply(O,C.lines)}return O.join(` `)+` `}function m(d,O,R,C,L,j,I){return v(E(d,O,R,C,L,j,I))}function S(d,O,R,C,L,j){return m(d,d,O,R,C,L,j)}},13288:(Ge,w,u)=>{"use strict";u.d(w,{$:()=>y});var l=u(88483),g=u(61209);function y(x,f){var p=(0,g.T)(x)?x:function(){return x},h=function(E){return E.error(p())};return new l.c(f?function(E){return f.schedule(h,0,E)}:h)}},13329:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.DurationFormat=void 0;var l=u(1656),g=u(21301),y=u(44335),x=u(21082),f=u(67323),p=u(67404),h=u(18191),E=u(6159),v=["locale","style","years","yearsDisplay","months","monthsDisplay","weeks","weeksDisplay","days","daysDisplay","hours","hoursDisplay","minutes","minutesDisplay","seconds","secondsDisplay","milliseconds","millisecondsDisplay","microseconds","microsecondsDisplay","nanoseconds","nanosecondsDisplay","numberingSystem","fractionalDigits"],m=[{styleSlot:"years",displaySlot:"yearsDisplay",unit:"years",values:["long","short","narrow"],digitalDefault:"short"},{styleSlot:"months",displaySlot:"monthsDisplay",unit:"months",values:["long","short","narrow"],digitalDefault:"short"},{styleSlot:"weeks",displaySlot:"weeksDisplay",unit:"weeks",values:["long","short","narrow"],digitalDefault:"short"},{styleSlot:"days",displaySlot:"daysDisplay",unit:"days",values:["long","short","narrow"],digitalDefault:"short"},{styleSlot:"hours",displaySlot:"hoursDisplay",unit:"hours",values:["long","short","narrow","numeric","2-digit"],digitalDefault:"numeric"},{styleSlot:"minutes",displaySlot:"minutesDisplay",unit:"minutes",values:["long","short","narrow","numeric","2-digit"],digitalDefault:"numeric"},{styleSlot:"seconds",displaySlot:"secondsDisplay",unit:"seconds",values:["long","short","narrow","numeric","2-digit"],digitalDefault:"numeric"},{styleSlot:"milliseconds",displaySlot:"millisecondsDisplay",unit:"milliseconds",values:["long","short","narrow","numeric"],digitalDefault:"numeric"},{styleSlot:"microseconds",displaySlot:"microsecondsDisplay",unit:"microseconds",values:["long","short","narrow","numeric"],digitalDefault:"numeric"},{styleSlot:"nanoseconds",displaySlot:"nanosecondsDisplay",unit:"nanoseconds",values:["long","short","narrow","numeric"],digitalDefault:"numeric"}],S=function(){function d(O,R){var C=this&&this instanceof d?this.constructor:void 0;if(!C)throw new TypeError("Intl.DurationFormat must be called with 'new'");var L=(0,l.CanonicalizeLocaleList)(O),j=Object.create(null),I=R===void 0?Object.create(null):(0,l.ToObject)(R),U=(0,l.GetOption)(I,"localeMatcher","string",["best fit","lookup"],"best fit"),$=(0,l.GetOption)(I,"numberingSystem","string",void 0,void 0);if($!==void 0&&h.numberingSystemNames.indexOf($)<0)throw RangeError("Invalid numberingSystems: ".concat($));j.nu=$,j.localeMatcher=U;var ee=d.localeData,re=d.availableLocales,Se=(0,g.ResolveLocale)(re,L,j,["nu"],ee,d.getDefaultLocale),z=Se.locale,Q=(0,p.getInternalSlots)(this);Q.initializedDurationFormat=!0,Q.locale=z,Q.numberingSystem=Se.nu;var ce=(0,l.GetOption)(I,"style","string",["long","short","narrow","digital"],"short");Q.style=ce,Q.dataLocale=Se.dataLocale;var se="";m.forEach(function(q){var te=q.styleSlot,A=q.displaySlot,T=q.unit,B=q.values,X=q.digitalDefault,ue=(0,y.GetDurationUnitOptions)(T,I,ce,B,X,se);Q[te]=ue.style,Q[A]=ue.display,(T==="hours"||T==="minutes"||T==="seconds"||T==="milliseconds"||T==="microseconds")&&(se=ue.style)}),Q.fractionalDigits=(0,l.GetNumberOption)(I,"fractionalDigits",0,9,void 0)}return d.prototype.resolvedOptions=function(){if(typeof this!="object"||!(0,l.OrdinaryHasInstance)(d,this))throw TypeError("Method Intl.DurationFormat.prototype.resolvedOptions called on incompatible receiver");for(var O=(0,p.getInternalSlots)(this),R={},C=0,L=v;C<L.length;C++){var j=L[C],I=O[j];j==="fractionalDigits"?I!==void 0&&(I=Number(I)):(0,l.invariant)(I!==void 0,"Missing internal slot ".concat(j)),R[j]=I}return R},d.prototype.formatToParts=function(O){var R=this,C=(0,p.getInternalSlots)(this);if(C.initializedDurationFormat===void 0)throw new TypeError("Error uninitialized locale");for(var L=(0,f.ToDurationRecord)(O),j=(0,x.PartitionDurationFormatPattern)(R,L),I=[],U=0,$=j;U<$.length;U++){var ee=$[U],re=ee.type,Se=ee.unit,z=ee.value,Q={type:re,value:z};Se&&(Q.unit=Se),I.push(Q)}return I},d.prototype.format=function(O){var R=this,C=(0,p.getInternalSlots)(this);if(C.initializedDurationFormat===void 0)throw new TypeError("Error uninitialized locale");for(var L=(0,f.ToDurationRecord)(O),j=(0,x.PartitionDurationFormatPattern)(R,L),I="",U=0,$=j;U<$.length;U++){var ee=$[U].value;I+=ee}return I},d.supportedLocalesOf=function(O,R){return(0,l.SupportedLocales)(d.availableLocales,(0,l.CanonicalizeLocaleList)(O),R)},d.__defaultLocale="en",d.availableLocales=new Set,d.localeData=Object.keys(E.TIME_SEPARATORS.localeData).reduce(function(O,R){d.availableLocales.add(R);var C=E.TIME_SEPARATORS.localeData[R].nu;return O[R]={nu:C,digitalFormat:E.TIME_SEPARATORS.localeData[R].separator||C.reduce(function(L,j){return L[j]=E.TIME_SEPARATORS.default,L},{})},O},{}),d.getDefaultLocale=function(){return d.__defaultLocale},d.polyfilled=!0,d}();w.DurationFormat=S},13337:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.mapTo=void 0;var l=u(26872);function g(y){return l.map(function(){return y})}w.mapTo=g},13491:function(Ge){(function(){var w,u,l,g,y,x;typeof performance<"u"&&performance!==null&&performance.now?Ge.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Ge.exports=function(){return(w()-y)/1e6},u=process.hrtime,w=function(){var f;return f=u(),f[0]*1e9+f[1]},g=w(),x=process.uptime()*1e9,y=g-x):Date.now?(Ge.exports=function(){return Date.now()-l},l=Date.now()):(Ge.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(this)},13752:(Ge,w,u)=>{"use strict";u.d(w,{B:()=>h,k:()=>E});var l=u(31635),g=u(88483),y=u(64423),x=u(24455),f=u(6174),p=u(7008),h=function(v){(0,l.__extends)(m,v);function m(){var S=v.call(this)||this;return S.closed=!1,S.currentObservers=null,S.observers=[],S.isStopped=!1,S.hasError=!1,S.thrownError=null,S}return m.prototype.lift=function(S){var d=new E(this,this);return d.operator=S,d},m.prototype._throwIfClosed=function(){if(this.closed)throw new x.P},m.prototype.next=function(S){var d=this;(0,p.Y)(function(){var O,R;if(d._throwIfClosed(),!d.isStopped){d.currentObservers||(d.currentObservers=Array.from(d.observers));try{for(var C=(0,l.__values)(d.currentObservers),L=C.next();!L.done;L=C.next()){var j=L.value;j.next(S)}}catch(I){O={error:I}}finally{try{L&&!L.done&&(R=C.return)&&R.call(C)}finally{if(O)throw O.error}}}})},m.prototype.error=function(S){var d=this;(0,p.Y)(function(){if(d._throwIfClosed(),!d.isStopped){d.hasError=d.isStopped=!0,d.thrownError=S;for(var O=d.observers;O.length;)O.shift().error(S)}})},m.prototype.complete=function(){var S=this;(0,p.Y)(function(){if(S._throwIfClosed(),!S.isStopped){S.isStopped=!0;for(var d=S.observers;d.length;)d.shift().complete()}})},m.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(m.prototype,"observed",{get:function(){var S;return((S=this.observers)===null||S===void 0?void 0:S.length)>0},enumerable:!1,configurable:!0}),m.prototype._trySubscribe=function(S){return this._throwIfClosed(),v.prototype._trySubscribe.call(this,S)},m.prototype._subscribe=function(S){return this._throwIfClosed(),this._checkFinalizedStatuses(S),this._innerSubscribe(S)},m.prototype._innerSubscribe=function(S){var d=this,O=this,R=O.hasError,C=O.isStopped,L=O.observers;return R||C?y.Kn:(this.currentObservers=null,L.push(S),new y.yU(function(){d.currentObservers=null,(0,f.o)(L,S)}))},m.prototype._checkFinalizedStatuses=function(S){var d=this,O=d.hasError,R=d.thrownError,C=d.isStopped;O?S.error(R):C&&S.complete()},m.prototype.asObservable=function(){var S=new g.c;return S.source=this,S},m.create=function(S,d){return new E(S,d)},m}(g.c),E=function(v){(0,l.__extends)(m,v);function m(S,d){var O=v.call(this)||this;return O.destination=S,O.source=d,O}return m.prototype.next=function(S){var d,O;(O=(d=this.destination)===null||d===void 0?void 0:d.next)===null||O===void 0||O.call(d,S)},m.prototype.error=function(S){var d,O;(O=(d=this.destination)===null||d===void 0?void 0:d.error)===null||O===void 0||O.call(d,S)},m.prototype.complete=function(){var S,d;(d=(S=this.destination)===null||S===void 0?void 0:S.complete)===null||d===void 0||d.call(S)},m.prototype._subscribe=function(S){var d,O;return(O=(d=this.source)===null||d===void 0?void 0:d.subscribe(S))!==null&&O!==void 0?O:y.Kn},m}(h)},13798:Ge=>{"use strict";/*! * isobject <https://github.com/jonschlinkert/isobject> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */Ge.exports=function(u){return u!=null&&typeof u=="object"&&Array.isArray(u)===!1}},13876:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var l=u(96540);function g(){var y=l.useRef(!1),x=l.useCallback(function(){return y.current},[]);return l.useEffect(function(){return y.current=!0,function(){y.current=!1}},[]),x}w.default=g},13916:function(Ge,w,u){"use strict";var l=this&&this.__read||function(h,E){var v=typeof Symbol=="function"&&h[Symbol.iterator];if(!v)return h;var m=v.call(h),S,d=[],O;try{for(;(E===void 0||E-- >0)&&!(S=m.next()).done;)d.push(S.value)}catch(R){O={error:R}}finally{try{S&&!S.done&&(v=m.return)&&v.call(m)}finally{if(O)throw O.error}}return d},g=this&&this.__spreadArray||function(h,E){for(var v=0,m=E.length,S=h.length;v<m;v++,S++)h[S]=E[v];return h};Object.defineProperty(w,"__esModule",{value:!0}),w.mapOneOrManyArgs=void 0;var y=u(26872),x=Array.isArray;function f(h,E){return x(E)?h.apply(void 0,g([],l(E))):h(E)}function p(h){return y.map(function(E){return f(h,E)})}w.mapOneOrManyArgs=p},14120:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.not=void 0;function u(l,g){return function(y,x){return!l.call(g,y,x)}}w.not=u},14170:(Ge,w,u)=>{"use strict";u.d(w,{Y:()=>ie});var l=u(50992),g=u(96540),y=u(1578);function x(Ze,Ne){var it;const Rt=Ze?.getPreviousNonWhiteSpaceToken(),Dn=Ze?.getPreviousKeyword(),Mt=(it=Ze?.getPreviousNonWhiteSpaceToken())==null?void 0:it.is(y.ks.Operator,"/"),Wt=Ne.list(),Tn=[];for(const bn of Wt)bn.resolve(Ze,Dn??null,Rt??null,!!Mt)&&Tn.push(bn.id);return Tn.length===0?[y.X7.Unknown]:Tn}const f=(Ze,Ne,it={})=>({label:Ze,insertText:Ze,kind:y.Io.Field,sortText:y.mY.Medium,range:Ne,...it}),p=async(Ze,Ne,it,Rt,Dn)=>{let Mt=[];const Tn=Ne?.isWhiteSpace()||Ne?.isParenthesis()||Ne?.isIdentifier()&&Ne.value.endsWith(".")||!Ne?.range?Ze.Range.fromPositions(Rt.position):Ne?.range;for(const bn of[...new Set(it)]){const $t=Dn.getIfExists(bn);if($t){const Ct=await $t.suggestions({...Rt,range:Tn},Ze);Mt=[...Mt,...Ct.map(Z=>f(Z.label,Tn,{kind:Z.kind,...Z}))]}}return Promise.resolve(Mt)},h=()=>[{id:y.X7.SelectKeyword,name:y.X7.SelectKeyword,kind:[y.ng.SelectKeyword]},{id:y.X7.WithKeyword,name:y.X7.WithKeyword,kind:[y.ng.WithKeyword]},{id:y.X7.AfterSelectKeyword,name:y.X7.AfterSelectKeyword,kind:[y.ng.StarWildCard,y.ng.FunctionsWithArguments,y.ng.Columns,y.ng.SelectMacro]},{id:y.X7.AfterSelectFuncFirstArgument,name:y.X7.AfterSelectFuncFirstArgument,kind:[y.ng.Columns]},{id:y.X7.AfterGroupByFunctionArgument,name:y.X7.AfterGroupByFunctionArgument,kind:[y.ng.Columns]},{id:y.X7.AfterWhereFunctionArgument,name:y.X7.AfterWhereFunctionArgument,kind:[y.ng.Columns]},{id:y.X7.AfterSelectArguments,name:y.X7.AfterSelectArguments,kind:[y.ng.Columns]},{id:y.X7.AfterFromKeyword,name:y.X7.AfterFromKeyword,kind:[y.ng.Schemas,y.ng.Tables,y.ng.TableMacro]},{id:y.X7.AfterSchema,name:y.X7.AfterSchema,kind:[y.ng.Tables,y.ng.TableMacro]},{id:y.X7.SelectAlias,name:y.X7.SelectAlias,kind:[y.ng.Columns,y.ng.FunctionsWithArguments]},{id:y.X7.FromKeyword,name:y.X7.FromKeyword,kind:[y.ng.FromKeyword]},{id:y.X7.AfterFrom,name:y.X7.AfterFrom,kind:[y.ng.WhereKeyword,y.ng.GroupByKeywords,y.ng.OrderByKeywords,y.ng.LimitKeyword]},{id:y.X7.AfterTable,name:y.X7.AfterTable,kind:[y.ng.WhereKeyword,y.ng.GroupByKeywords,y.ng.OrderByKeywords,y.ng.LimitKeyword]},{id:y.X7.WhereKeyword,name:y.X7.WhereKeyword,kind:[y.ng.Columns,y.ng.FilterMacro,y.ng.TemplateVariables]},{id:y.X7.WhereComparisonOperator,name:y.X7.WhereComparisonOperator,kind:[y.ng.ComparisonOperators]},{id:y.X7.WhereValue,name:y.X7.WhereValue,kind:[y.ng.FilterMacro,y.ng.TemplateVariables]},{id:y.X7.AfterWhereValue,name:y.X7.AfterWhereValue,kind:[y.ng.LogicalOperators,y.ng.GroupByKeywords,y.ng.OrderByKeywords,y.ng.LimitKeyword,y.ng.Columns,y.ng.TemplateVariables]},{id:y.X7.AfterGroupByKeywords,name:y.X7.AfterGroupByKeywords,kind:[y.ng.GroupMacro,y.ng.Columns]},{id:y.X7.AfterGroupBy,name:y.X7.AfterGroupBy,kind:[y.ng.OrderByKeywords,y.ng.LimitKeyword]},{id:y.X7.AfterOrderByKeywords,name:y.X7.AfterOrderByKeywords,kind:[y.ng.Columns]},{id:y.X7.AfterOrderByFunction,name:y.X7.AfterOrderByFunction,kind:[y.ng.SortOrderDirectionKeyword,y.ng.LimitKeyword]},{id:y.X7.AfterOrderByDirection,name:y.X7.AfterOrderByDirection,kind:[y.ng.LimitKeyword]},{id:y.X7.AfterIsOperator,name:y.X7.AfterOrderByDirection,kind:[y.ng.NotKeyword,y.ng.NullValue,y.ng.BoolValues]},{id:y.X7.AfterIsNotOperator,name:y.X7.AfterOrderByDirection,kind:[y.ng.NullValue,y.ng.BoolValues]}];function E(Ze,Ne){let it=[];for(let Rt=0;Rt<Ze.length;Rt++){const Dn=Ne.getIfExists(Ze[Rt]);Dn&&(it=it.concat(Dn.kind))}return it}class v{constructor(Ne,it,Rt,Dn,Mt){this.type=Ne,this.value=it,this.range=Rt,this.previous=Dn,this.next=Mt}isKeyword(){return this.type===y.ks.Keyword}isWhiteSpace(){return this.type===y.ks.Whitespace}isParenthesis(){return this.type===y.ks.Parenthesis}isIdentifier(){return this.type===y.ks.Identifier}isString(){return this.type===y.ks.String}isNumber(){return this.type===y.ks.Number}isDoubleQuotedString(){return this.type===y.ks.Type}isVariable(){return this.type===y.ks.Variable}isFunction(){return this.type===y.ks.Function}isOperator(){return this.type===y.ks.Operator}isTemplateVariable(){return this.type===y.ks.Variable}is(Ne,it){const Rt=this.type===Ne;return it!==void 0?Rt&&m(Ne,this,it):Rt}getPreviousNonWhiteSpaceToken(){let Ne=this.previous;for(;Ne!=null;){if(!Ne.isWhiteSpace())return Ne;Ne=Ne.previous}return null}getPreviousOfType(Ne,it){let Rt=this.previous;for(;Rt!=null;){const Dn=Rt.type===Ne;if(it!==void 0?Dn&&m(Ne,Rt,it):Dn)return Rt;Rt=Rt.previous}return null}getPreviousUntil(Ne,it,Rt){let Dn=[],Mt=this.previous;for(;Mt!=null;){if(it.some(Tn=>Tn===Mt?.type)){Mt=Mt.previous;continue}const Wt=Mt.type===Ne;if(Rt!==void 0?Wt&&m(Ne,Mt,Rt):Wt)return Dn;Mt.isWhiteSpace()||Dn.push(Mt),Mt=Mt.previous}return Dn}getNextUntil(Ne,it,Rt){let Dn=[],Mt=this.next;for(;Mt!=null;){if(it.some(Tn=>Tn===Mt?.type)){Mt=Mt.next;continue}const Wt=Mt.type===Ne;if(Rt!==void 0?Wt&&m(Ne,Mt,Rt):Wt)return Dn;Mt.isWhiteSpace()||Dn.push(Mt),Mt=Mt.next}return Dn}getPreviousKeyword(){let Ne=this.previous;for(;Ne!=null;){if(Ne.isKeyword())return Ne;Ne=Ne.previous}return null}getNextNonWhiteSpaceToken(){let Ne=this.next;for(;Ne!=null;){if(!Ne.isWhiteSpace())return Ne;Ne=Ne.next}return null}getNextOfType(Ne,it){let Rt=this.next;for(;Rt!=null;){const Dn=Rt.type===Ne;if(it!==void 0?Dn&&m(Ne,Rt,it):Dn)return Rt;Rt=Rt.next}return null}}function m(Ze,Ne,it){return Ze===y.ks.Keyword||Ze===y.ks.Operator?Ne.value.toLowerCase()===it.toString().toLowerCase():Ne.value===it}function S(Ze,Ne,it,Rt="sql"){var Dn;let Mt=null,Wt=null;const Tn=Ze.editor.tokenize((Dn=Ne.getValue())!=null?Dn:"",Rt);for(let bn=0;bn<Tn.length;bn++){const $t=Tn[bn];if(!$t.length&&Wt){const Ct={offset:0,type:y.ks.Whitespace,language:Rt,_tokenBrand:void 0};$t.push(Ct)}for(let Ct=0;Ct<$t.length;Ct++){const Z=$t[Ct];let me=$t.length>Ct+1?$t[Ct+1].offset+1:Ne.getLineLength(bn+1)+1;const ke={startLineNumber:bn+1,startColumn:Z.offset===0?0:Z.offset+1,endLineNumber:bn+1,endColumn:me},Ee=Ne.getValueInRange(ke),_e=new v(Z.type,Ee,ke,Wt,null);Ze.Range.containsPosition(ke,it)&&(Mt=_e),Wt&&(Wt.next=_e),Wt=_e}}return Mt}var d=u(56005);const O=Ze=>{var Ne;return(Ne=Ze?.getPreviousOfType(y.ks.Keyword,d.SELECT))!=null?Ne:null},R=Ze=>{const Ne=O(Ze);return Ne?.getNextOfType(y.ks.Keyword,d.FROM)},C=Ze=>{var Ne;const it=R(Ze),Rt=it?.getNextNonWhiteSpaceToken();return Rt?.isVariable()||Rt?.isKeyword()&&((Ne=Rt.next)!=null&&Ne.is(y.ks.Parenthesis,"("))?null:Rt},L=Ze=>{const Ne=Ze?.value.split(".");return Ne?.length===1?{table:Ne[0]}:Ne?.length===2?{schema:Ne[0],table:Ne[1]}:null},j={id:"editor.action.triggerSuggest",title:""};var I=u(24726),U=u(42954),$=u(2863);const ee=(Ze,Ne,it)=>()=>[{id:y.ng.SelectKeyword,name:y.ng.SelectKeyword,suggestions:(Rt,Dn)=>Promise.resolve([{label:"SELECT <column>",insertText:"SELECT $0",insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Snippet,command:j,sortText:y.mY.Medium},{label:"SELECT <column> FROM <table>",insertText:"SELECT $2 FROM $1",insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Snippet,command:j,sortText:y.mY.Medium}])},{id:y.ng.TemplateVariables,name:y.ng.TemplateVariables,suggestions:(Rt,Dn)=>{const Mt=(0,$.w)();return Mt?Promise.resolve(Mt.getVariables().map(Wt=>{const Tn=`$${Wt.name}`,bn=Mt.replace(Tn);return{label:Tn,detail:`(Template Variable) ${bn}`,kind:y.Io.Snippet,documentation:`(Template Variable) ${bn}`,insertText:`\\$${Wt.name} `,insertTextRules:y._E.InsertAsSnippet,command:j,sortText:y.mY.Low}})):Promise.resolve([])}},{id:y.ng.SelectMacro,name:y.ng.SelectMacro,suggestions:(Rt,Dn)=>Promise.resolve([...it.list().filter(Mt=>Mt.type===y.hh.Value||Mt.type===y.hh.Column).map(re)])},{id:y.ng.TableMacro,name:y.ng.TableMacro,suggestions:(Rt,Dn)=>Promise.resolve([...it.list().filter(Mt=>Mt.type===y.hh.Table).map(re)])},{id:y.ng.GroupMacro,name:y.ng.GroupMacro,suggestions:(Rt,Dn)=>Promise.resolve([...it.list().filter(Mt=>Mt.type===y.hh.Group).map(re)])},{id:y.ng.FilterMacro,name:y.ng.FilterMacro,suggestions:(Rt,Dn)=>Promise.resolve([...it.list().filter(Mt=>Mt.type===y.hh.Filter).map(re)])},{id:y.ng.WithKeyword,name:y.ng.WithKeyword,suggestions:(Rt,Dn)=>Promise.resolve([{label:"WITH <alias> AS ( ... )",insertText:"WITH $1 AS ( $2 )",insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Snippet,command:j,sortText:y.mY.Medium}])},{id:y.ng.StarWildCard,name:y.ng.StarWildCard,suggestions:(Rt,Dn)=>Promise.resolve([{label:"*",insertText:"* $0",insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Field,command:j,sortText:y.mY.High}])},{id:y.ng.FunctionsWithArguments,name:y.ng.FunctionsWithArguments,suggestions:(Rt,Dn)=>Promise.resolve([...Ze.list().map(Mt=>({label:Mt.name,insertText:`${Mt.name}($0)`,documentation:Mt.description,insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Function,command:j,sortText:y.mY.MediumLow}))])},{id:y.ng.FunctionsWithoutArguments,name:y.ng.FunctionsWithoutArguments,suggestions:(Rt,Dn)=>Promise.resolve([...Ze.list().map(Mt=>({label:Mt.name,insertText:`${Mt.name}()`,documentation:Mt.description,insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Function,command:j,sortText:y.mY.MediumHigh}))])},{id:y.ng.FromKeyword,name:y.ng.FromKeyword,suggestions:(Rt,Dn)=>Promise.resolve([{label:"FROM",insertText:"FROM $0",command:j,insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Keyword}])},{id:y.ng.Schemas,name:y.ng.Schemas,suggestions:(Rt,Dn)=>Promise.resolve([])},{id:y.ng.Tables,name:y.ng.Tables,suggestions:(Rt,Dn)=>Promise.resolve([])},{id:y.ng.Columns,name:y.ng.Columns,suggestions:(Rt,Dn)=>Promise.resolve([])},{id:y.ng.LogicalOperators,name:y.ng.LogicalOperators,suggestions:(Rt,Dn)=>Promise.resolve(Ne.list().filter(Mt=>Mt.type===y.hu.Logical).map(Mt=>({label:Mt.operator,insertText:`${Mt.operator} `,documentation:Mt.description,command:j,sortText:y.mY.MediumHigh,kind:y.Io.Operator})))},{id:y.ng.WhereKeyword,name:y.ng.WhereKeyword,suggestions:(Rt,Dn)=>Promise.resolve([{label:"WHERE",insertText:"WHERE ",command:j,sortText:y.mY.MediumHigh,kind:y.Io.Keyword}])},{id:y.ng.ComparisonOperators,name:y.ng.ComparisonOperators,suggestions:(Rt,Dn)=>Promise.resolve([...Ne.list().filter(Mt=>Mt.type===y.hu.Comparison).map(Mt=>({label:Mt.operator,insertText:`${Mt.operator} `,documentation:Mt.description,command:j,sortText:y.mY.MediumHigh,kind:y.Io.Operator})),{label:"IN (...)",insertText:"IN ( $0 )",command:j,sortText:y.mY.Medium,kind:y.Io.Operator,insertTextRules:y._E.InsertAsSnippet},{label:"NOT IN (...)",insertText:"NOT IN ( $0 )",command:j,sortText:y.mY.Medium,kind:y.Io.Operator,insertTextRules:y._E.InsertAsSnippet},{label:"IS",insertText:"IS",command:j,sortText:y.mY.Medium,kind:y.Io.Operator},{label:"IS NOT",insertText:"IS NOT",command:j,sortText:y.mY.Medium,kind:y.Io.Operator}])},{id:y.ng.GroupByKeywords,name:y.ng.GroupByKeywords,suggestions:(Rt,Dn)=>Promise.resolve([{label:"GROUP BY",insertText:"GROUP BY ",command:j,sortText:y.mY.MediumHigh,kind:y.Io.Keyword}])},{id:y.ng.OrderByKeywords,name:y.ng.OrderByKeywords,suggestions:(Rt,Dn)=>Promise.resolve([{label:"ORDER BY",insertText:"ORDER BY ",command:j,sortText:y.mY.Medium,kind:y.Io.Keyword},{label:"ORDER BY(ascending)",insertText:"ORDER BY $1 ASC ",command:j,sortText:y.mY.MediumLow,kind:y.Io.Snippet,insertTextRules:y._E.InsertAsSnippet},{label:"ORDER BY(descending)",insertText:"ORDER BY $1 DESC",command:j,sortText:y.mY.MediumLow,kind:y.Io.Snippet,insertTextRules:y._E.InsertAsSnippet}])},{id:y.ng.LimitKeyword,name:y.ng.LimitKeyword,suggestions:(Rt,Dn)=>Promise.resolve([{label:"LIMIT",insertText:"LIMIT ",command:j,sortText:y.mY.MediumLow,kind:y.Io.Keyword}])},{id:y.ng.SortOrderDirectionKeyword,name:y.ng.SortOrderDirectionKeyword,suggestions:(Rt,Dn)=>Promise.resolve([d.ASC,d.DESC].map(Mt=>({label:Mt,insertText:`${Mt} `,command:j,kind:y.Io.Keyword})))},{id:y.ng.NotKeyword,name:y.ng.NotKeyword,suggestions:()=>Promise.resolve([{label:"NOT",insertText:"NOT",command:j,kind:y.Io.Keyword,sortText:y.mY.High}])},{id:y.ng.BoolValues,name:y.ng.BoolValues,suggestions:()=>Promise.resolve(["TRUE","FALSE"].map(Rt=>({label:Rt,insertText:`${Rt}`,command:j,kind:y.Io.Keyword,sortText:y.mY.Medium})))},{id:y.ng.NullValue,name:y.ng.NullValue,suggestions:()=>Promise.resolve(["NULL"].map(Rt=>({label:Rt,insertText:`${Rt}`,command:j,kind:y.Io.Keyword,sortText:y.mY.Low})))}];function re(Ze){return{label:Ze.name,insertText:`${"\\"+Ze.text}${Se(Ze.args)} `,insertTextRules:y._E.InsertAsSnippet,kind:y.Io.Snippet,documentation:Ze.description,command:j}}function Se(Ze){return Ze?"(".concat(Ze.map((Ne,it)=>`\${${it}:${Ne}}`).join(", ")).concat(")"):"()"}function z(){return[{id:y.X7.SelectKeyword,name:y.X7.SelectKeyword,resolve:(Ze,Ne,it,Rt)=>!!(Ze===null||Ze.isWhiteSpace()&&Ze.previous===null||Ze.is(y.ks.Keyword,d.SELECT)||Ze.is(y.ks.Keyword,d.SELECT)&&Ze.previous===null||Rt||Ze.isIdentifier()&&(Rt||Ze?.previous===null)||Ze.isIdentifier()&&d.SELECT.startsWith(Ze.value.toLowerCase()))},{id:y.X7.WithKeyword,name:y.X7.WithKeyword,resolve:(Ze,Ne,it,Rt)=>!!(Ze===null||Ze.isWhiteSpace()&&Ze.previous===null||Ze.is(y.ks.Keyword,d.WITH)&&Ze.previous===null||Ze.isIdentifier()&&d.WITH.toLowerCase().startsWith(Ze.value.toLowerCase()))},{id:y.X7.AfterSelectKeyword,name:y.X7.AfterSelectKeyword,resolve:(Ze,Ne,it,Rt)=>it?.value.toLowerCase()===d.SELECT},{id:y.X7.AfterSelectArguments,name:y.X7.AfterSelectArguments,resolve:(Ze,Ne,it,Rt)=>Ne?.value.toLowerCase()===d.SELECT&&it?.value===","},{id:y.X7.AfterSelectFuncFirstArgument,name:y.X7.AfterSelectFuncFirstArgument,resolve:(Ze,Ne,it,Rt)=>!!((Ne?.value.toLowerCase()===d.SELECT||Ne?.value.toLowerCase()===d.AS)&&(it?.is(y.ks.Parenthesis,"(")||Ze?.is(y.ks.Parenthesis,"()")))},{id:y.X7.AfterWhereFunctionArgument,name:y.X7.AfterWhereFunctionArgument,resolve:(Ze,Ne,it,Rt)=>!!(Ne?.is(y.ks.Keyword,d.WHERE)&&(it?.is(y.ks.Parenthesis,"(")||Ze?.is(y.ks.Parenthesis,"()")))},{id:y.X7.AfterGroupBy,name:y.X7.AfterGroupBy,resolve:(Ze,Ne,it,Rt)=>{var Dn;return!!(Ne?.is(y.ks.Keyword,d.BY)&&((Dn=Ne?.getPreviousKeyword())!=null&&Dn.is(y.ks.Keyword,d.GROUP))&&(it?.isIdentifier()||it?.isDoubleQuotedString()||it?.is(y.ks.Parenthesis,")")||it?.is(y.ks.Parenthesis,"()")))}},{id:y.X7.SelectAlias,name:y.X7.SelectAlias,resolve:(Ze,Ne,it,Rt)=>it?.value===","&&Ne?.value.toLowerCase()===d.AS},{id:y.X7.FromKeyword,name:y.X7.FromKeyword,resolve:(Ze,Ne,it,Rt)=>!!(Ne?.value.toLowerCase()===d.SELECT&&it?.value!==","||(Ze?.isKeyword()||Ze?.isIdentifier())&&d.FROM.toLowerCase().startsWith(Ze.value.toLowerCase()))},{id:y.X7.AfterFromKeyword,name:y.X7.AfterFromKeyword,resolve:(Ze,Ne,it,Rt)=>!Ze?.value.includes(".")&&it?.value.toLowerCase()===d.FROM},{id:y.X7.AfterSchema,name:y.X7.AfterSchema,resolve:(Ze,Ne,it,Rt)=>(Ze?.isWhiteSpace()&&Ze?.next&&(Ze=Ze?.previous,it=Ze.getPreviousNonWhiteSpaceToken()),!!(Ze?.isIdentifier()&&Ze?.value.endsWith(".")&&it?.value.toLowerCase()===d.FROM))},{id:y.X7.AfterFrom,name:y.X7.AfterFrom,resolve:(Ze,Ne,it,Rt)=>!!(Ne?.value.toLowerCase()===d.FROM&&it?.isDoubleQuotedString()||Ne?.value.toLowerCase()===d.FROM&&it?.isIdentifier()||Ne?.value.toLowerCase()===d.FROM&&it?.isVariable())},{id:y.X7.AfterTable,name:y.X7.AfterTable,resolve:(Ze,Ne,it,Rt)=>!!(Ne?.value.toLowerCase()===d.FROM&&(it?.isVariable()||it?.value!==""&&it?.value.toLowerCase()!==d.FROM))},{id:y.X7.WhereKeyword,name:y.X7.WhereKeyword,resolve:(Ze,Ne,it,Rt)=>!!(Ne?.value.toLowerCase()===d.WHERE&&(it?.isKeyword()||it?.is(y.ks.Parenthesis,"(")||it?.is(y.ks.Operator,d.AND)))},{id:y.X7.WhereComparisonOperator,name:y.X7.WhereComparisonOperator,resolve:(Ze,Ne,it,Rt)=>{var Dn;return!!(Ne?.value.toLowerCase()===d.WHERE&&!((Dn=it?.getPreviousNonWhiteSpaceToken())!=null&&Dn.isOperator())&&!Ze?.is(y.ks.Delimiter,".")&&!Ze?.isParenthesis()&&(it?.isIdentifier()||it?.isDoubleQuotedString()))}},{id:y.X7.WhereValue,name:y.X7.WhereValue,resolve:(Ze,Ne,it,Rt)=>!!(Ne?.value.toLowerCase()===d.WHERE&&it?.isOperator())},{id:y.X7.AfterWhereValue,name:y.X7.AfterWhereValue,resolve:(Ze,Ne,it,Rt)=>{var Dn,Mt,Wt;return!!(Ne?.value.toLowerCase()===d.WHERE&&(it?.is(y.ks.Operator,"and")||it?.is(y.ks.Operator,"or")||it?.isString()||it?.isNumber()||it?.is(y.ks.Parenthesis,")")||it?.is(y.ks.Parenthesis,"()")||it?.isTemplateVariable()||it?.is(y.ks.IdentifierQuote)&&((Dn=it.getPreviousNonWhiteSpaceToken())!=null&&Dn.is(y.ks.Identifier))&&((Wt=(Mt=it?.getPreviousNonWhiteSpaceToken())==null?void 0:Mt.getPreviousNonWhiteSpaceToken())!=null&&Wt.is(y.ks.IdentifierQuote))))}},{id:y.X7.AfterGroupByKeywords,name:y.X7.AfterGroupByKeywords,resolve:(Ze,Ne,it,Rt)=>{var Dn;return!!(Ne?.is(y.ks.Keyword,d.BY)&&((Dn=Ne?.getPreviousKeyword())!=null&&Dn.is(y.ks.Keyword,d.GROUP))&&(it?.is(y.ks.Keyword,d.BY)||it?.is(y.ks.Delimiter,",")))}},{id:y.X7.AfterGroupByFunctionArgument,name:y.X7.AfterGroupByFunctionArgument,resolve:(Ze,Ne,it,Rt)=>{var Dn;return!!(Ne?.is(y.ks.Keyword,d.BY)&&((Dn=Ne?.getPreviousKeyword())!=null&&Dn.is(y.ks.Keyword,d.GROUP))&&(it?.is(y.ks.Parenthesis,"(")||Ze?.is(y.ks.Parenthesis,"()")))}},{id:y.X7.AfterOrderByKeywords,name:y.X7.AfterOrderByKeywords,resolve:(Ze,Ne,it,Rt)=>{var Dn;return!!(it?.is(y.ks.Keyword,d.BY)&&((Dn=it?.getPreviousKeyword())!=null&&Dn.is(y.ks.Keyword,d.ORDER)))}},{id:y.X7.AfterOrderByFunction,name:y.X7.AfterOrderByFunction,resolve:(Ze,Ne,it,Rt)=>{var Dn,Mt;return!!(Ne?.is(y.ks.Keyword,d.BY)&&((Dn=Ne?.getPreviousKeyword())!=null&&Dn.is(y.ks.Keyword,d.ORDER))&&it?.is(y.ks.Parenthesis)&&((Mt=it?.getPreviousNonWhiteSpaceToken())!=null&&Mt.is(y.ks.Function)))}},{id:y.X7.AfterOrderByDirection,name:y.X7.AfterOrderByDirection,resolve:(Ze,Ne,it,Rt)=>!!(Ne?.is(y.ks.Keyword,d.DESC)||Ne?.is(y.ks.Keyword,d.ASC))},{id:y.X7.AfterIsOperator,name:y.X7.AfterIsOperator,resolve:(Ze,Ne,it,Rt)=>!!it?.is(y.ks.Operator,"IS")},{id:y.X7.AfterIsNotOperator,name:y.X7.AfterIsNotOperator,resolve:(Ze,Ne,it,Rt)=>{var Dn;return!!(it?.is(y.ks.Operator,"NOT")&&((Dn=it.getPreviousNonWhiteSpaceToken())!=null&&Dn.is(y.ks.Operator,"IS")))}}]}var Q=u(20720),ce=u(60379);let se={logger:()=>{}},q=()=>{};Q.h&&ce.h&&(se=(0,ce.h)("SQLEditor"),q=se.logger,(0,Q.h)("sqleditor",void 0,se));var te=u(64237);const A={id:"standardSql",extensions:[".sql"],aliases:["sql"],mimetypes:[],loader:()=>Promise.resolve().then(u.bind(u,56005)),completionProvider:te.N};function T(Ze){const Ne=(0,g.useRef)(Ze);(0,g.useEffect)(()=>{Ne.current=Ze});const it=!!Ze;return(0,g.useMemo)(()=>it?(...Rt)=>Ne.current(...Rt):void 0,[it])}const B="sql",X=new Map,ue=new Map,ie=({children:Ze,onBlur:Ne,onChange:it,query:Rt,language:Dn={id:B},width:Mt,height:Wt})=>{const Tn=(0,g.useRef)(null),bn=(0,g.useRef)(),$t=T(it),Ct=(0,g.useMemo)(()=>{const ke=(0,I.A)(),Ee=`${Dn.id}-${ke}`;return bn.current=Ee,Ee},[Dn.id]);(0,g.useEffect)(()=>()=>{bn.current&&ue.delete(bn.current),q(`Removing instance cache ${bn.current}`,!1,ue)},[]);const Z=(0,g.useCallback)(()=>{Tn.current&&Tn.current.getAction("editor.action.formatDocument").run()},[]),me=ke=>{$t&&$t(ke,!1),Ne&&Ne(ke)};return g.createElement("div",{style:{width:Mt}},g.createElement(l.B,{height:Wt||"240px",width:Mt?`${Mt-2}px`:void 0,language:Ct,value:Rt,onBlur:me,showMiniMap:!1,showLineNumbers:!0,onEditorDidMount:(ke,Ee)=>{Tn.current=ke,ke.onDidChangeModelContent(_e=>{const ge=ke.getValue();$t&&$t(ge,!1)}),ke.addCommand(Ee.KeyMod.CtrlCmd|Ee.KeyCode.Enter,()=>{const _e=ke.getValue();$t&&$t(_e,!0)}),ke.onKeyUp(_e=>{_e.keyCode===84&&ke.trigger(j.id,j.id,{})}),je(Ee,Dn,Ct)}}),Ze&&Ze({formatQuery:Z}))},Te=(Ze,Ne)=>{if(Ne?.id!==B&&!Ne.loader){q(`Loading language '${Ne?.id}' from Monaco registry`,!1);const Rt=Ze.languages.getLanguages().find(({id:Dn})=>Dn===Ne?.id);if(!Rt)throw Error(`Unknown Monaco language ${Ne?.id}`);return{completionProvider:te.N,...Rt,...Ne}}return{...A,...Ne}},je=async(Ze,Ne,it)=>{const Rt=Te(Ze,Ne);if(!Rt.loader)return;const{language:Dn,conf:Mt}=await Rt.loader(Ze);if(Ze.languages.register({id:it}),Ze.languages.setMonarchTokensProvider(it,{...Dn}),Ze.languages.setLanguageConfiguration(it,{...Mt}),Rt.formatter&&Ze.languages.registerDocumentFormattingEditProvider(it,{provideDocumentFormattingEdits:Wt=>{var Tn;const bn=(Tn=Ne.formatter)==null?void 0:Tn.call(Ne,Wt.getValue());return[{range:Wt.getFullModelRange(),text:bn||""}]}}),Rt.completionProvider){const Wt=Rt.completionProvider(Ze,Dn);yt(Ne.id,it,Wt);const Tn=X.get(Ne.id),bn=ue.get(it),$t=async(Ct,Z,me,ke)=>{const Ee=S(Ze,Ct,Z,it),_e=x(Ee,Tn.positionResolvers),ge=E(_e,Tn.suggestionKinds);q("Statement position",!1,_e),q("Suggestion kinds",!1,ge);const Me={position:Z,currentToken:Ee,statementPosition:_e,kind:ge,range:Ze.Range.fromPositions(Z)};return{suggestions:await p(Ze,Ee,ge,Me,bn)}};Ze.languages.registerCompletionItemProvider(it,{...Wt,provideCompletionItems:$t})}};function yt(Ze,Ne,it){var Rt;X.has(Ze)||tt(Ze);const Dn=X.get(Ze);ue.has(Ne)||ue.set(Ne,new U.O(ee(Dn.functions,Dn.operators,Dn.macros)));const Mt=ue.get(Ne);if(it.supportedFunctions)for(const Wt of it.supportedFunctions())Dn.functions.getIfExists(Wt.id)||Dn.functions.register(Wt);if(it.supportedOperators)for(const Wt of it.supportedOperators())Dn.operators.getIfExists(Wt.id)||Dn.operators.register({...Wt,name:Wt.id});if(it.supportedMacros)for(const Wt of it.supportedMacros())Dn.macros.getIfExists(Wt.id)||Dn.macros.register({...Wt,name:Wt.id});if(it.customStatementPlacement)for(const Wt of it.customStatementPlacement()){const Tn=Dn.positionResolvers.getIfExists(Wt.id);if(!Tn)Dn.positionResolvers.register({...Wt,id:Wt.id,name:Wt.id}),Dn.suggestionKinds.register({id:Wt.id,name:Wt.id,kind:[]});else{const bn=Tn.resolve;Tn.resolve=(...$t)=>{const Ct=Wt.resolve(...$t);return Wt.overrideDefault?Ct:bn(...$t)||Ct}}}if(it.customSuggestionKinds)for(const Wt of it.customSuggestionKinds()){if((Rt=Wt.applyTo)==null||Rt.forEach(Tn=>{const bn=Dn.suggestionKinds.getIfExists(Tn);bn&&bn.kind.indexOf(Wt.id)===-1&&bn.kind.push(Wt.id)}),Wt.overrideDefault){const Tn=Mt.get(Wt.id);if(Tn!==void 0){Tn.suggestions=Wt.suggestionsResolver;continue}}Mt.register({id:Wt.id,name:Wt.id,suggestions:Wt.suggestionsResolver})}if(it.schemas){const Wt=Mt.get(y.ng.Schemas),Tn=Wt.suggestions;Wt.suggestions=async(bn,$t)=>{const Ct=await Tn(bn,$t);if(!it.schemas)return[...Ct];const me=(await it.schemas.resolve()).map(ke=>{var Ee;return{label:ke.name,insertText:`${(Ee=ke.completion)!=null?Ee:ke.name}.`,command:j,kind:y.Io.Module,sortText:y.mY.High}});return[...Ct,...me]}}if(it.tables){const Wt=Mt.get(y.ng.Tables),Tn=Wt.suggestions;Wt.suggestions=async(bn,$t)=>{var Ct,Z,me,ke,Ee;const _e=await Tn(bn,$t),ge=C(bn.currentToken),lt=((Z=(Ct=it.tables)==null?void 0:Ct.parseName)!=null?Z:L)(ge),Ft=((Ee=await((ke=(me=it.tables)==null?void 0:me.resolve)==null?void 0:ke.call(me,lt)))!=null?Ee:[]).map(Et=>{var Zt;return{label:Et.name,insertText:`${(Zt=Et.completion)!=null?Zt:Et.name}${Et.completion===Et.name?" $0":""}`,insertTextRules:y._E.InsertAsSnippet,command:j,kind:y.Io.Field,sortText:y.mY.MediumHigh}});return[..._e,...Ft]}}if(it.columns){const Wt=Mt.get(y.ng.Columns),Tn=Wt.suggestions;Wt.suggestions=async(bn,$t)=>{var Ct,Z,me;const ke=await Tn(bn,$t),Ee=C(bn.currentToken);let _e;const ge=(Z=(Ct=it.tables)==null?void 0:Ct.parseName)!=null?Z:L;Ee&&Ee.value&&(_e=ge(Ee));let Me=[];if(_e){const lt=await((me=it.columns)==null?void 0:me.resolve(_e));Me=lt?lt.map(Ft=>{var Et;return{label:Ft.name,insertText:(Et=Ft.completion)!=null?Et:Ft.name,kind:y.Io.Field,sortText:y.mY.High,detail:Ft.type,documentation:Ft.description}}):[]}return[...ke,...Me]}}}function tt(Ze){return X.has(Ze)||X.set(Ze,{functions:new U.O,operators:new U.O,suggestionKinds:new U.O(h),positionResolvers:new U.O(z),macros:new U.O}),X.get(Ze)}},14204:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.IsValidDurationRecord=x;var l=u(1656),g=u(11437),y=u(23023);function x(f){for(var p=(0,y.DurationRecordSign)(f),h=0,E=g.TABLE_1;h<E.length;h++){var v=E[h],m=f[v];if((0,l.invariant)(isFinite(Number(m)),"".concat(v," is not finite")),m<0&&p>0||m>0&&p<0)return!1}return!0}},14359:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var E=function(v,m){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,d){S.__proto__=d}||function(S,d){for(var O in d)Object.prototype.hasOwnProperty.call(d,O)&&(S[O]=d[O])},E(v,m)};return function(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");E(v,m);function S(){this.constructor=v}v.prototype=m===null?Object.create(m):(S.prototype=m.prototype,new S)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.ConnectableObservable=void 0;var g=u(48051),y=u(69879),x=u(79224),f=u(17214),p=u(65212),h=function(E){l(v,E);function v(m,S){var d=E.call(this)||this;return d.source=m,d.subjectFactory=S,d._subject=null,d._refCount=0,d._connection=null,p.hasLift(m)&&(d.lift=m.lift),d}return v.prototype._subscribe=function(m){return this.getSubject().subscribe(m)},v.prototype.getSubject=function(){var m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject},v.prototype._teardown=function(){this._refCount=0;var m=this._connection;this._subject=this._connection=null,m?.unsubscribe()},v.prototype.connect=function(){var m=this,S=this._connection;if(!S){S=this._connection=new y.Subscription;var d=this.getSubject();S.add(this.source.subscribe(f.createOperatorSubscriber(d,void 0,function(){m._teardown(),d.complete()},function(O){m._teardown(),d.error(O)},function(){return m._teardown()}))),S.closed&&(this._connection=null,S=y.Subscription.EMPTY)}return S},v.prototype.refCount=function(){return x.refCount()(this)},v}(g.Observable);w.ConnectableObservable=h},14465:(Ge,w,u)=>{"use strict";u.d(w,{l4:()=>j});function l(I,U,$,ee,re,Se,z,Q){return l.fromTZ(l.tp(I,U,$,ee,re,Se,z),Q)}l.fromTZISO=(I,U,$)=>l.fromTZ(y(I,U),$),l.fromTZ=function(I,U){let $=new Date(Date.UTC(I.y,I.m-1,I.d,I.h,I.i,I.s)),ee=g(I.tz,$),re=new Date($.getTime()-ee),Se=g(I.tz,re);if(Se-ee===0)return re;{let z=new Date($.getTime()-Se),Q=g(I.tz,z);if(Q-Se===0||!U&&Q-Se>0)return z;if(U)throw new Error("Invalid date passed to fromTZ()");return re}},l.toTZ=function(I,U){let $=I.toLocaleString("en-US",{timeZone:U}).replace(/[\u202f]/," "),ee=new Date($);return{y:ee.getFullYear(),m:ee.getMonth()+1,d:ee.getDate(),h:ee.getHours(),i:ee.getMinutes(),s:ee.getSeconds(),tz:U}},l.tp=(I,U,$,ee,re,Se,z)=>({y:I,m:U,d:$,h:ee,i:re,s:Se,tz:z});function g(I,U=new Date){let $=U.toLocaleString("en-US",{timeZone:I,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],ee=U.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${ee} GMT`)-Date.parse(`${ee} ${$}`)}function y(I,U){let $=new Date(Date.parse(I));if(isNaN($))throw new Error("minitz: Invalid ISO8601 passed to parser.");let ee=I.substring(9);return I.includes("Z")||ee.includes("-")||ee.includes("+")?l.tp($.getUTCFullYear(),$.getUTCMonth()+1,$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),"Etc/UTC"):l.tp($.getFullYear(),$.getMonth()+1,$.getDate(),$.getHours(),$.getMinutes(),$.getSeconds(),U)}l.minitz=l;var x=32,f=31|x,p=[1,2,4,8,16],h=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(I,U){this.pattern=I,this.timezone=U,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let I=this.pattern.replace(/\s+/g," ").split(" ");if(I.length<5||I.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(I.length===5&&I.unshift("0"),I[3].indexOf("L")>=0&&(I[3]=I[3].replace("L",""),this.lastDayOfMonth=!0),I[3]=="*"&&(this.starDOM=!0),I[4].length>=3&&(I[4]=this.replaceAlphaMonths(I[4])),I[5].length>=3&&(I[5]=this.replaceAlphaDays(I[5])),I[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let U=new m(new Date,this.timezone).getDate(!0);I[0]=I[0].replace("?",U.getSeconds().toString()),I[1]=I[1].replace("?",U.getMinutes().toString()),I[2]=I[2].replace("?",U.getHours().toString()),this.starDOM||(I[3]=I[3].replace("?",U.getDate().toString())),I[4]=I[4].replace("?",(U.getMonth()+1).toString()),this.starDOW||(I[5]=I[5].replace("?",U.getDay().toString()))}this.throwAtIllegalCharacters(I),this.partToArray("second",I[0],0,1),this.partToArray("minute",I[1],0,1),this.partToArray("hour",I[2],0,1),this.partToArray("day",I[3],-1,1),this.partToArray("month",I[4],-1,1),this.partToArray("dayOfWeek",I[5],0,f),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(I,U,$,ee){let re=this[I],Se=I==="day"&&this.lastDayOfMonth;if(U===""&&!Se)throw new TypeError("CronPattern: configuration entry "+I+" ("+U+") is empty, check for trailing spaces.");if(U==="*")return re.fill(ee);let z=U.split(",");if(z.length>1)for(let Q=0;Q<z.length;Q++)this.partToArray(I,z[Q],$,ee);else U.indexOf("-")!==-1&&U.indexOf("/")!==-1?this.handleRangeWithStepping(U,I,$,ee):U.indexOf("-")!==-1?this.handleRange(U,I,$,ee):U.indexOf("/")!==-1?this.handleStepping(U,I,$,ee):U!==""&&this.handleNumber(U,I,$,ee)}throwAtIllegalCharacters(I){for(let U=0;U<I.length;U++)if((U===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(I[U]))throw new TypeError("CronPattern: configuration entry "+U+" ("+I[U]+") contains illegal characters.")}handleNumber(I,U,$,ee){let re=this.extractNth(I,U),Se=parseInt(re[0],10)+$;if(isNaN(Se))throw new TypeError("CronPattern: "+U+" is not a number: '"+I+"'");this.setPart(U,Se,re[1]||ee)}setPart(I,U,$){if(!Object.prototype.hasOwnProperty.call(this,I))throw new TypeError("CronPattern: Invalid part specified: "+I);if(I==="dayOfWeek"){if(U===7&&(U=0),U<0||U>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+U);this.setNthWeekdayOfMonth(U,$);return}if(I==="second"||I==="minute"){if(U<0||U>=60)throw new RangeError("CronPattern: Invalid value for "+I+": "+U)}else if(I==="hour"){if(U<0||U>=24)throw new RangeError("CronPattern: Invalid value for "+I+": "+U)}else if(I==="day"){if(U<0||U>=31)throw new RangeError("CronPattern: Invalid value for "+I+": "+U)}else if(I==="month"&&(U<0||U>=12))throw new RangeError("CronPattern: Invalid value for "+I+": "+U);this[I][U]=$}handleRangeWithStepping(I,U,$,ee){let re=this.extractNth(I,U),Se=re[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(Se===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+I+"'");let[,z,Q,ce]=Se,se=parseInt(z,10)+$,q=parseInt(Q,10)+$,te=parseInt(ce,10);if(isNaN(se))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(q))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(te))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(te===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(te>this[U].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[U].length+")");if(se>q)throw new TypeError("CronPattern: From value is larger than to value: '"+I+"'");for(let A=se;A<=q;A+=te)this.setPart(U,A,re[1]||ee)}extractNth(I,U){let $=I,ee;if($.includes("#")){if(U!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");ee=$.split("#")[1],$=$.split("#")[0]}return[$,ee]}handleRange(I,U,$,ee){let re=this.extractNth(I,U),Se=re[0].split("-");if(Se.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+I+"'");let z=parseInt(Se[0],10)+$,Q=parseInt(Se[1],10)+$;if(isNaN(z))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(Q))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(z>Q)throw new TypeError("CronPattern: From value is larger than to value: '"+I+"'");for(let ce=z;ce<=Q;ce++)this.setPart(U,ce,re[1]||ee)}handleStepping(I,U,$,ee){let re=this.extractNth(I,U),Se=re[0].split("/");if(Se.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+I+"'");Se[0]===""&&(Se[0]="*");let z=0;Se[0]!=="*"&&(z=parseInt(Se[0],10)+$);let Q=parseInt(Se[1],10);if(isNaN(Q))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(Q===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(Q>this[U].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[U].length+")");for(let ce=z;ce<this[U].length;ce+=Q)this.setPart(U,ce,re[1]||ee)}replaceAlphaDays(I){return I.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(I){return I.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(I){let U=I.trim().toLowerCase();return U==="@yearly"||U==="@annually"?"0 0 1 1 *":U==="@monthly"?"0 0 1 * *":U==="@weekly"?"0 0 * * 0":U==="@daily"?"0 0 * * *":U==="@hourly"?"0 * * * *":I}setNthWeekdayOfMonth(I,U){if(typeof U!="number"&&U==="L")this.dayOfWeek[I]=this.dayOfWeek[I]|x;else if(U===f)this.dayOfWeek[I]=f;else if(U<6&&U>0)this.dayOfWeek[I]=this.dayOfWeek[I]|p[U-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${U}, Type: ${typeof U}`)}},E=[31,28,31,30,31,30,31,31,30,31,30,31],v=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],m=class mE{tz;ms;second;minute;hour;day;month;year;constructor(U,$){if(this.tz=$,U&&U instanceof Date)if(!isNaN(U))this.fromDate(U);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(U===void 0)this.fromDate(new Date);else if(U&&typeof U=="string")this.fromString(U);else if(U instanceof mE)this.fromCronDate(U);else throw new TypeError("CronDate: Invalid type ("+typeof U+") passed to CronDate constructor")}isNthWeekdayOfMonth(U,$,ee,re){let Se=new Date(Date.UTC(U,$,ee)).getUTCDay(),z=0;for(let Q=1;Q<=ee;Q++)new Date(Date.UTC(U,$,Q)).getUTCDay()===Se&&z++;if(re&f&&p[z-1]&re)return!0;if(re&x){let Q=new Date(Date.UTC(U,$+1,0)).getUTCDate();for(let ce=ee+1;ce<=Q;ce++)if(new Date(Date.UTC(U,$,ce)).getUTCDay()===Se)return!1;return!0}return!1}fromDate(U){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=U.getUTCMilliseconds(),this.second=U.getUTCSeconds(),this.minute=U.getUTCMinutes()+this.tz,this.hour=U.getUTCHours(),this.day=U.getUTCDate(),this.month=U.getUTCMonth(),this.year=U.getUTCFullYear(),this.apply();else{let $=l.toTZ(U,this.tz);this.ms=U.getMilliseconds(),this.second=$.s,this.minute=$.i,this.hour=$.h,this.day=$.d,this.month=$.m-1,this.year=$.y}else this.ms=U.getMilliseconds(),this.second=U.getSeconds(),this.minute=U.getMinutes(),this.hour=U.getHours(),this.day=U.getDate(),this.month=U.getMonth(),this.year=U.getFullYear()}fromCronDate(U){this.tz=U.tz,this.year=U.year,this.month=U.month,this.day=U.day,this.hour=U.hour,this.minute=U.minute,this.second=U.second,this.ms=U.ms}apply(){if(this.month>11||this.day>E[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let U=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=U.getUTCMilliseconds(),this.second=U.getUTCSeconds(),this.minute=U.getUTCMinutes(),this.hour=U.getUTCHours(),this.day=U.getUTCDate(),this.month=U.getUTCMonth(),this.year=U.getUTCFullYear(),!0}else return!1}fromString(U){if(typeof this.tz=="number"){let $=l.fromTZISO(U);this.ms=$.getUTCMilliseconds(),this.second=$.getUTCSeconds(),this.minute=$.getUTCMinutes(),this.hour=$.getUTCHours(),this.day=$.getUTCDate(),this.month=$.getUTCMonth(),this.year=$.getUTCFullYear(),this.apply()}else return this.fromDate(l.fromTZISO(U,this.tz))}findNext(U,$,ee,re){let Se=this[$],z;ee.lastDayOfMonth&&(this.month!==1?z=E[this.month]:z=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let Q=!ee.starDOW&&$=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let ce=this[$]+re;ce<ee[$].length;ce++){let se=ee[$][ce];if($==="day"&&ee.lastDayOfMonth&&ce-re==z&&(se=1),$==="day"&&!ee.starDOW){let q=ee.dayOfWeek[(Q+(ce-re-1))%7];if(q&&q&f)q=this.isNthWeekdayOfMonth(this.year,this.month,ce-re,q)?1:0;else if(q)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${q}`);U.legacyMode&&!ee.starDOM?se=se||q:se=se&&q}if(se)return this[$]=ce-re,Se!==this[$]?2:1}return 3}recurse(U,$,ee){let re=this.findNext($,v[ee][0],U,v[ee][2]);if(re>1){let Se=ee+1;for(;Se<v.length;)this[v[Se][0]]=-v[Se][2],Se++;if(re===3)return this[v[ee][1]]++,this[v[ee][0]]=-v[ee][2],this.apply(),this.recurse(U,$,0);if(this.apply())return this.recurse(U,$,ee-1)}return ee+=1,ee>=v.length?this:this.year>=3e3?null:this.recurse(U,$,ee)}increment(U,$,ee){return this.second+=$.interval!==void 0&&$.interval>1&&ee?$.interval:1,this.ms=0,this.apply(),this.recurse(U,$,0)}getDate(U){return U||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):l.fromTZ(l.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function S(I){if(I===void 0&&(I={}),delete I.name,I.legacyMode=I.legacyMode===void 0?!0:I.legacyMode,I.paused=I.paused===void 0?!1:I.paused,I.maxRuns=I.maxRuns===void 0?1/0:I.maxRuns,I.catch=I.catch===void 0?!1:I.catch,I.interval=I.interval===void 0?0:parseInt(I.interval.toString(),10),I.utcOffset=I.utcOffset===void 0?void 0:parseInt(I.utcOffset.toString(),10),I.unref=I.unref===void 0?!1:I.unref,I.startAt&&(I.startAt=new m(I.startAt,I.timezone)),I.stopAt&&(I.stopAt=new m(I.stopAt,I.timezone)),I.interval!==null){if(isNaN(I.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(I.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(I.utcOffset!==void 0){if(isNaN(I.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(I.utcOffset<-870||I.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(I.utcOffset!==void 0&&I.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(I.unref!==!0&&I.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return I}function d(I){return Object.prototype.toString.call(I)==="[object Function]"||typeof I=="function"||I instanceof Function}function O(I){return d(I)}function R(I){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(I):I&&typeof I.unref<"u"&&I.unref()}var C=30*1e3,L=[],j=class{name;options;_states;fn;constructor(I,U,$){let ee,re;if(d(U))re=U;else if(typeof U=="object")ee=U;else if(U!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(d($))re=$;else if(typeof $=="object")ee=$;else if($!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=ee?.name,this.options=S(ee),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:ee?ee.maxRuns:void 0,paused:ee?ee.paused:!1,pattern:new h("* * * * *")},I&&(I instanceof Date||typeof I=="string"&&I.indexOf(":")>0)?this._states.once=new m(I,this.options.timezone||this.options.utcOffset):this._states.pattern=new h(I,this.options.timezone),this.name){if(L.find(Se=>Se.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");L.push(this)}return re!==void 0&&O(re)&&(this.fn=re,this.schedule()),this}nextRun(I){let U=this._next(I);return U?U.getDate(!1):null}nextRuns(I,U){this._states.maxRuns!==void 0&&I>this._states.maxRuns&&(I=this._states.maxRuns);let $=[],ee=U||this._states.currentRun||void 0;for(;I--&&(ee=this.nextRun(ee));)$.push(ee);return $}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let I=this.nextRun(this._states.currentRun),U=!this._states.paused,$=this.fn!==void 0,ee=!this._states.kill;return U&&$&&ee&&I!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(I){let U=this._next(I);return U?I instanceof m||I instanceof Date?U.getTime()-I.getTime():U.getTime()-new m(I).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let I=L.indexOf(this);I>=0&&L.splice(I,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(I){if(I&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");I&&(this.fn=I);let U=this.msToNext(),$=this.nextRun(this._states.currentRun);return U==null||isNaN(U)||$===null?this:(U>C&&(U=C),this._states.currentTimeout=setTimeout(()=>this._checkTrigger($),U),this._states.currentTimeout&&this.options.unref&&R(this._states.currentTimeout),this)}async _trigger(I){if(this._states.blocking=!0,this._states.currentRun=new m(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(U){d(this.options.catch)&&this.options.catch(U,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new m(I,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(I){let U=new Date,$=!this._states.paused&&U.getTime()>=I.getTime(),ee=this._states.blocking&&this.options.protect;$&&!ee?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):$&&ee&&d(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(I){let U=!!(I||this._states.currentRun),$=!1;!I&&this.options.startAt&&this.options.interval&&([I,U]=this._calculatePreviousRun(I,U),$=!I),I=new m(I,this.options.timezone||this.options.utcOffset),this.options.startAt&&I&&I.getTime()<this.options.startAt.getTime()&&(I=this.options.startAt);let ee=this._states.once||new m(I,this.options.timezone||this.options.utcOffset);return!$&&ee!==this._states.once&&(ee=ee.increment(this._states.pattern,this.options,U)),this._states.once&&this._states.once.getTime()<=I.getTime()||ee===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&ee.getTime()>=this.options.stopAt.getTime()?null:ee}_calculatePreviousRun(I,U){let $=new m(void 0,this.options.timezone||this.options.utcOffset),ee=I;if(this.options.startAt.getTime()<=$.getTime()){ee=this.options.startAt;let re=ee.getTime()+this.options.interval*1e3;for(;re<=$.getTime();)ee=new m(ee,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),re=ee.getTime()+this.options.interval*1e3;U=!0}return ee===null&&(ee=void 0),[ee,U]}}},14912:(Ge,w)=>{"use strict";var u;/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l=typeof Symbol=="function"&&Symbol.for,g=l?Symbol.for("react.element"):60103,y=l?Symbol.for("react.portal"):60106,x=l?Symbol.for("react.fragment"):60107,f=l?Symbol.for("react.strict_mode"):60108,p=l?Symbol.for("react.profiler"):60114,h=l?Symbol.for("react.provider"):60109,E=l?Symbol.for("react.context"):60110,v=l?Symbol.for("react.async_mode"):60111,m=l?Symbol.for("react.concurrent_mode"):60111,S=l?Symbol.for("react.forward_ref"):60112,d=l?Symbol.for("react.suspense"):60113,O=l?Symbol.for("react.suspense_list"):60120,R=l?Symbol.for("react.memo"):60115,C=l?Symbol.for("react.lazy"):60116,L=l?Symbol.for("react.block"):60121,j=l?Symbol.for("react.fundamental"):60117,I=l?Symbol.for("react.responder"):60118,U=l?Symbol.for("react.scope"):60119;function $(re){if(typeof re=="object"&&re!==null){var Se=re.$$typeof;switch(Se){case g:switch(re=re.type,re){case v:case m:case x:case p:case f:case d:return re;default:switch(re=re&&re.$$typeof,re){case E:case S:case C:case R:case h:return re;default:return Se}}case y:return Se}}}function ee(re){return $(re)===m}u=v,u=m,u=E,u=h,u=g,u=S,u=x,u=C,u=R,u=y,u=p,u=f,u=d,u=function(re){return ee(re)||$(re)===v},u=ee,u=function(re){return $(re)===E},u=function(re){return $(re)===h},u=function(re){return typeof re=="object"&&re!==null&&re.$$typeof===g},u=function(re){return $(re)===S},u=function(re){return $(re)===x},u=function(re){return $(re)===C},u=function(re){return $(re)===R},u=function(re){return $(re)===y},u=function(re){return $(re)===p},u=function(re){return $(re)===f},u=function(re){return $(re)===d},u=function(re){return typeof re=="string"||typeof re=="function"||re===x||re===m||re===p||re===f||re===d||re===O||typeof re=="object"&&re!==null&&(re.$$typeof===C||re.$$typeof===R||re.$$typeof===h||re.$$typeof===E||re.$$typeof===S||re.$$typeof===j||re.$$typeof===I||re.$$typeof===U||re.$$typeof===L)},u=$},14936:(Ge,w,u)=>{"use strict";u.d(w,{u:()=>l});function l(g){return y=>{const f=(g?Math[g]:Math.trunc)(y);return f===0?0:f}}},15019:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.tap=void 0;var l=u(10281),g=u(65212),y=u(17214),x=u(87699);function f(p,h,E){var v=l.isFunction(p)||h||E?{next:p,error:h,complete:E}:p;return v?g.operate(function(m,S){var d;(d=v.subscribe)===null||d===void 0||d.call(v);var O=!0;m.subscribe(y.createOperatorSubscriber(S,function(R){var C;(C=v.next)===null||C===void 0||C.call(v,R),S.next(R)},function(){var R;O=!1,(R=v.complete)===null||R===void 0||R.call(v),S.complete()},function(R){var C;O=!1,(C=v.error)===null||C===void 0||C.call(v,R),S.error(R)},function(){var R,C;O&&((R=v.unsubscribe)===null||R===void 0||R.call(v)),(C=v.finalize)===null||C===void 0||C.call(v)}))}):x.identity}w.tap=f},15350:(Ge,w,u)=>{w.log=function(l,g){this.stream=this.stream||process.stdout,g==null&&(g=this.stream);var y=Object.assign({},this.defaultData,l);if(this.timers)for(var x in this.timers){var f=new Date().getTime();y[x]=(f-this.timers[x]).toString()+"ms"}g.write(this.stringify(y)+` `)},w.time=function(x){var g=u(60455),y=new Date().getTime(),x=x||"elapsed",f=new g;return f.stream=this.stream,f.defaultData=this.defaultData,f.timers=Object.assign({},this.timers),f.timers[x]=y,f},w.namespace=function(l){var g=u(60455),y=new g,x=Object.assign({},this.defaultData,l);return y.stream=this.stream,y.defaultData=x,y.timers=this.timers,y},w.error=function(l,g){this.maxErrorLines=this.maxErrorLines||10,g===void 0&&(g=Math.random().toString().slice(2,12));var y=this.namespace({error:!0,id:g,now:new Date().toISOString()});if(y.log({message:l.message}),l.stack){var x=l.stack.split(` `);for(var f in x){if(f>=this.maxErrorLines)break;y.log({line:f,trace:x[f]})}}}},15413:(Ge,w,u)=>{var l=u(48422)();Ge.exports=l;try{regeneratorRuntime=l}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=l:Function("r","regeneratorRuntime = r")(l)}},15630:(Ge,w,u)=>{"use strict";w.__esModule=!0,w.default=void 0;var l=h(u(96540)),g=u(55794),y=u(94030),x=u(28329),f=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function p(I){if(typeof WeakMap!="function")return null;var U=new WeakMap,$=new WeakMap;return(p=function(re){return re?$:U})(I)}function h(I,U){if(!U&&I&&I.__esModule)return I;if(I===null||typeof I!="object"&&typeof I!="function")return{default:I};var $=p(U);if($&&$.has(I))return $.get(I);var ee={},re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Se in I)if(Se!=="default"&&Object.prototype.hasOwnProperty.call(I,Se)){var z=re?Object.getOwnPropertyDescriptor(I,Se):null;z&&(z.get||z.set)?Object.defineProperty(ee,Se,z):ee[Se]=I[Se]}return ee.default=I,$&&$.set(I,ee),ee}function E(){return E=Object.assign?Object.assign.bind():function(I){for(var U=1;U<arguments.length;U++){var $=arguments[U];for(var ee in $)Object.prototype.hasOwnProperty.call($,ee)&&(I[ee]=$[ee])}return I},E.apply(this,arguments)}function v(I,U){if(I==null)return{};var $={},ee=Object.keys(I),re,Se;for(Se=0;Se<ee.length;Se++)re=ee[Se],!(U.indexOf(re)>=0)&&($[re]=I[re]);return $}function m(I,U){var $=Object.keys(I);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(I);U&&(ee=ee.filter(function(re){return Object.getOwnPropertyDescriptor(I,re).enumerable})),$.push.apply($,ee)}return $}function S(I){for(var U=1;U<arguments.length;U++){var $=arguments[U]!=null?arguments[U]:{};U%2?m(Object($),!0).forEach(function(ee){d(I,ee,$[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors($)):m(Object($)).forEach(function(ee){Object.defineProperty(I,ee,Object.getOwnPropertyDescriptor($,ee))})}return I}function d(I,U,$){return U=O(U),U in I?Object.defineProperty(I,U,{value:$,enumerable:!0,configurable:!0,writable:!0}):I[U]=$,I}function O(I){var U=R(I,"string");return typeof U=="symbol"?U:String(U)}function R(I,U){if(typeof I!="object"||I===null)return I;var $=I[Symbol.toPrimitive];if($!==void 0){var ee=$.call(I,U||"default");if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(I)}function C(I,U){I.prototype=Object.create(U.prototype),I.prototype.constructor=I,L(I,U)}function L(I,U){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,re){return ee.__proto__=re,ee},L(I,U)}var j=function(I){C(U,I);function U(){for(var ee,re=arguments.length,Se=new Array(re),z=0;z<re;z++)Se[z]=arguments[z];return ee=I.call.apply(I,[this].concat(Se))||this,ee.handleRefs={},ee.lastHandleRect=null,ee.slack=null,ee}var $=U.prototype;return $.componentWillUnmount=function(){this.resetData()},$.resetData=function(){this.lastHandleRect=this.slack=null},$.runConstraints=function(re,Se){var z=this.props,Q=z.minConstraints,ce=z.maxConstraints,se=z.lockAspectRatio;if(!Q&&!ce&&!se)return[re,Se];if(se){var q=this.props.width/this.props.height,te=re-this.props.width,A=Se-this.props.height;Math.abs(te)>Math.abs(A*q)?Se=re/q:re=Se*q}var T=re,B=Se,X=this.slack||[0,0],ue=X[0],ie=X[1];return re+=ue,Se+=ie,Q&&(re=Math.max(Q[0],re),Se=Math.max(Q[1],Se)),ce&&(re=Math.min(ce[0],re),Se=Math.min(ce[1],Se)),this.slack=[ue+(T-re),ie+(B-Se)],[re,Se]},$.resizeHandler=function(re,Se){var z=this;return function(Q,ce){var se=ce.node,q=ce.deltaX,te=ce.deltaY;re==="onResizeStart"&&z.resetData();var A=(z.props.axis==="both"||z.props.axis==="x")&&Se!=="n"&&Se!=="s",T=(z.props.axis==="both"||z.props.axis==="y")&&Se!=="e"&&Se!=="w";if(!(!A&&!T)){var B=Se[0],X=Se[Se.length-1],ue=se.getBoundingClientRect();if(z.lastHandleRect!=null){if(X==="w"){var ie=ue.left-z.lastHandleRect.left;q+=ie}if(B==="n"){var Te=ue.top-z.lastHandleRect.top;te+=Te}}z.lastHandleRect=ue,X==="w"&&(q=-q),B==="n"&&(te=-te);var je=z.props.width+(A?q/z.props.transformScale:0),yt=z.props.height+(T?te/z.props.transformScale:0),tt=z.runConstraints(je,yt);je=tt[0],yt=tt[1];var Ze=je!==z.props.width||yt!==z.props.height,Ne=typeof z.props[re]=="function"?z.props[re]:null,it=re==="onResize"&&!Ze;Ne&&!it&&(Q.persist==null||Q.persist(),Ne(Q,{node:se,size:{width:je,height:yt},handle:Se})),re==="onResizeStop"&&z.resetData()}}},$.renderResizeHandle=function(re,Se){var z=this.props.handle;if(!z)return l.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+re,ref:Se});if(typeof z=="function")return z(re,Se);var Q=typeof z.type=="string",ce=S({ref:Se},Q?{}:{handleAxis:re});return l.cloneElement(z,ce)},$.render=function(){var re=this,Se=this.props,z=Se.children,Q=Se.className,ce=Se.draggableOpts,se=Se.width,q=Se.height,te=Se.handle,A=Se.handleSize,T=Se.lockAspectRatio,B=Se.axis,X=Se.minConstraints,ue=Se.maxConstraints,ie=Se.onResize,Te=Se.onResizeStop,je=Se.onResizeStart,yt=Se.resizeHandles,tt=Se.transformScale,Ze=v(Se,f);return(0,y.cloneElement)(z,S(S({},Ze),{},{className:(Q?Q+" ":"")+"react-resizable",children:[].concat(z.props.children,yt.map(function(Ne){var it,Rt=(it=re.handleRefs[Ne])!=null?it:re.handleRefs[Ne]=l.createRef();return l.createElement(g.DraggableCore,E({},ce,{nodeRef:Rt,key:"resizableHandle-"+Ne,onStop:re.resizeHandler("onResizeStop",Ne),onStart:re.resizeHandler("onResizeStart",Ne),onDrag:re.resizeHandler("onResize",Ne)}),re.renderResizeHandle(Ne,Rt))}))}))},U}(l.Component);w.default=j,j.propTypes=x.resizableProps,j.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},15810:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createObject=void 0;function u(l,g){return l.reduce(function(y,x,f){return y[x]=g[f],y},{})}w.createObject=u},15887:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.animationFrame=w.animationFrameScheduler=void 0;var l=u(6757),g=u(74478);w.animationFrameScheduler=new g.AnimationFrameScheduler(l.AnimationFrameAction),w.animationFrame=w.animationFrameScheduler},15964:(Ge,w,u)=>{"use strict";u.d(w,{Tg:()=>O});var l=u(31635),g=u(69391),y=u(3440),x=u(88483),f=u(37541),p=u(62471),h=u(43465),E=u(58667),v=u(8438),m=u(61209),S=u(22564),d=u(55604);function O(ee){if(ee instanceof x.c)return ee;if(ee!=null){if((0,f.l)(ee))return R(ee);if((0,g.X)(ee))return C(ee);if((0,y.y)(ee))return L(ee);if((0,p.T)(ee))return I(ee);if((0,E.x)(ee))return j(ee);if((0,v.U)(ee))return U(ee)}throw(0,h.L)(ee)}function R(ee){return new x.c(function(re){var Se=ee[d.s]();if((0,m.T)(Se.subscribe))return Se.subscribe(re);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function C(ee){return new x.c(function(re){for(var Se=0;Se<ee.length&&!re.closed;Se++)re.next(ee[Se]);re.complete()})}function L(ee){return new x.c(function(re){ee.then(function(Se){re.closed||(re.next(Se),re.complete())},function(Se){return re.error(Se)}).then(null,S.m)})}function j(ee){return new x.c(function(re){var Se,z;try{for(var Q=(0,l.__values)(ee),ce=Q.next();!ce.done;ce=Q.next()){var se=ce.value;if(re.next(se),re.closed)return}}catch(q){Se={error:q}}finally{try{ce&&!ce.done&&(z=Q.return)&&z.call(Q)}finally{if(Se)throw Se.error}}re.complete()})}function I(ee){return new x.c(function(re){$(ee,re).catch(function(Se){return re.error(Se)})})}function U(ee){return I((0,v.C)(ee))}function $(ee,re){var Se,z,Q,ce;return(0,l.__awaiter)(this,void 0,void 0,function(){var se,q;return(0,l.__generator)(this,function(te){switch(te.label){case 0:te.trys.push([0,5,6,11]),Se=(0,l.__asyncValues)(ee),te.label=1;case 1:return[4,Se.next()];case 2:if(z=te.sent(),!!z.done)return[3,4];if(se=z.value,re.next(se),re.closed)return[2];te.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return q=te.sent(),Q={error:q},[3,11];case 6:return te.trys.push([6,,9,10]),z&&!z.done&&(ce=Se.return)?[4,ce.call(Se)]:[3,8];case 7:te.sent(),te.label=8;case 8:return[3,10];case 9:if(Q)throw Q.error;return[7];case 10:return[7];case 11:return re.complete(),[2]}})})}},16002:function(Ge,w,u){"use strict";var l=this&&this.__read||function(p,h){var E=typeof Symbol=="function"&&p[Symbol.iterator];if(!E)return p;var v=E.call(p),m,S=[],d;try{for(;(h===void 0||h-- >0)&&!(m=v.next()).done;)S.push(m.value)}catch(O){d={error:O}}finally{try{m&&!m.done&&(E=v.return)&&E.call(v)}finally{if(d)throw d.error}}return S},g=this&&this.__spreadArray||function(p,h){for(var E=0,v=h.length,m=p.length;E<v;E++,m++)p[m]=h[E];return p};Object.defineProperty(w,"__esModule",{value:!0}),w.immediateProvider=void 0;var y=u(92052),x=y.Immediate.setImmediate,f=y.Immediate.clearImmediate;w.immediateProvider={setImmediate:function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];var E=w.immediateProvider.delegate;return(E?.setImmediate||x).apply(void 0,g([],l(p)))},clearImmediate:function(p){var h=w.immediateProvider.delegate;return(h?.clearImmediate||f)(p)},delegate:void 0}},16172:(Ge,w,u)=>{"use strict";u.d(w,{f:()=>y});var l=u(43329),g=u(29407);function y(f,p,h){const E=(0,g.a)(f,h?.in);return isNaN(p)?(0,l.w)(h?.in||f,NaN):(p&&E.setDate(E.getDate()+p),E)}var x=null},16201:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.switchAll=void 0;var l=u(90680),g=u(87699);function y(){return l.switchMap(g.identity)}w.switchAll=y},16707:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.mergeScan=void 0;var l=u(65212),g=u(2574);function y(x,f,p){return p===void 0&&(p=1/0),l.operate(function(h,E){var v=f;return g.mergeInternals(h,E,function(m,S){return x(v,m,S)},p,function(m){v=m},!1,void 0,function(){return v=null})})}w.mergeScan=y},16928:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(x){var f=x.keyCode;if(x.altKey&&!x.ctrlKey||x.metaKey||f>=l.F1&&f<=l.F12)return!1;switch(f){case l.ALT:case l.CAPS_LOCK:case l.CONTEXT_MENU:case l.CTRL:case l.DOWN:case l.END:case l.ESC:case l.HOME:case l.INSERT:case l.LEFT:case l.MAC_FF_META:case l.META:case l.NUMLOCK:case l.NUM_CENTER:case l.PAGE_DOWN:case l.PAGE_UP:case l.PAUSE:case l.PRINT_SCREEN:case l.RIGHT:case l.SHIFT:case l.UP:case l.WIN_KEY:case l.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(x){if(x>=l.ZERO&&x<=l.NINE||x>=l.NUM_ZERO&&x<=l.NUM_MULTIPLY||x>=l.A&&x<=l.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&x===0)return!0;switch(x){case l.SPACE:case l.QUESTION_MARK:case l.NUM_PLUS:case l.NUM_MINUS:case l.NUM_PERIOD:case l.NUM_DIVISION:case l.SEMICOLON:case l.DASH:case l.EQUALS:case l.COMMA:case l.PERIOD:case l.SLASH:case l.APOSTROPHE:case l.SINGLE_QUOTE:case l.OPEN_SQUARE_BRACKET:case l.BACKSLASH:case l.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const g=l},17005:(Ge,w)=>{"use strict";var u;u={value:!0};for(var l=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),g={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},y={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:l?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},x={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},f=1;f<20;f++)x["f"+f]=111+f;function p(O,R,C){R&&!("byKey"in R)&&(C=R,R=null),Array.isArray(O)||(O=[O]);var L=O.map(function(U){return v(U,R)}),j=function($){return L.some(function(ee){return m(ee,$)})},I=C==null?j:j(C);return I}function h(O,R){return p(O,R)}function E(O,R){return p(O,{byKey:!0},R)}function v(O,R){var C=R&&R.byKey,L={};O=O.replace("++","+add");var j=O.split("+"),I=j.length;for(var U in g)L[g[U]]=!1;var $=!0,ee=!1,re=void 0;try{for(var Se=j[Symbol.iterator](),z;!($=(z=Se.next()).done);$=!0){var Q=z.value,ce=Q.endsWith("?");ce&&(Q=Q.slice(0,-1));var se=d(Q),q=g[se];(I===1||!q)&&(C?L.key=se:L.which=S(Q)),q&&(L[q]=ce?null:!0)}}catch(te){ee=!0,re=te}finally{try{!$&&Se.return&&Se.return()}finally{if(ee)throw re}}return L}function m(O,R){for(var C in O){var L=O[C],j=void 0;if(L!=null&&(C==="key"?j=R.key.toLowerCase():C==="which"?j=L===91&&R.which===93?91:R.which:j=R[C],!(j==null&&L===!1)&&j!==L))return!1}return!0}function S(O){O=d(O);var R=x[O]||O.toUpperCase().charCodeAt(0);return R}function d(O){return O=O.toLowerCase(),O=y[O]||O,O}u=p,u=p,u=h,w.Sn=E,u=v,u=m,u=S,u=d},17214:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var f=function(p,h){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,v){E.__proto__=v}||function(E,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(E[m]=v[m])},f(p,h)};return function(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");f(p,h);function E(){this.constructor=p}p.prototype=h===null?Object.create(h):(E.prototype=h.prototype,new E)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.OperatorSubscriber=w.createOperatorSubscriber=void 0;var g=u(2708);function y(f,p,h,E,v){return new x(f,p,h,E,v)}w.createOperatorSubscriber=y;var x=function(f){l(p,f);function p(h,E,v,m,S,d){var O=f.call(this,h)||this;return O.onFinalize=S,O.shouldUnsubscribe=d,O._next=E?function(R){try{E(R)}catch(C){h.error(C)}}:f.prototype._next,O._error=m?function(R){try{m(R)}catch(C){h.error(C)}finally{this.unsubscribe()}}:f.prototype._error,O._complete=v?function(){try{v()}catch(R){h.error(R)}finally{this.unsubscribe()}}:f.prototype._complete,O}return p.prototype.unsubscribe=function(){var h;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var E=this.closed;f.prototype.unsubscribe.call(this),!E&&((h=this.onFinalize)===null||h===void 0||h.call(this))}},p}(g.Subscriber);w.OperatorSubscriber=x},17474:function(Ge,w,u){"use strict";var l=this&&this.__read||function(m,S){var d=typeof Symbol=="function"&&m[Symbol.iterator];if(!d)return m;var O=d.call(m),R,C=[],L;try{for(;(S===void 0||S-- >0)&&!(R=O.next()).done;)C.push(R.value)}catch(j){L={error:j}}finally{try{R&&!R.done&&(d=O.return)&&d.call(O)}finally{if(L)throw L.error}}return C},g=this&&this.__spreadArray||function(m,S){for(var d=0,O=S.length,R=m.length;d<O;d++,R++)m[R]=S[d];return m};Object.defineProperty(w,"__esModule",{value:!0}),w.bindCallbackInternals=void 0;var y=u(68596),x=u(48051),f=u(5455),p=u(13916),h=u(32071),E=u(5130);function v(m,S,d,O){if(d)if(y.isScheduler(d))O=d;else return function(){for(var R=[],C=0;C<arguments.length;C++)R[C]=arguments[C];return v(m,S,O).apply(this,R).pipe(p.mapOneOrManyArgs(d))};return O?function(){for(var R=[],C=0;C<arguments.length;C++)R[C]=arguments[C];return v(m,S).apply(this,R).pipe(f.subscribeOn(O),h.observeOn(O))}:function(){for(var R=this,C=[],L=0;L<arguments.length;L++)C[L]=arguments[L];var j=new E.AsyncSubject,I=!0;return new x.Observable(function(U){var $=j.subscribe(U);if(I){I=!1;var ee=!1,re=!1;S.apply(R,g(g([],l(C)),[function(){for(var Se=[],z=0;z<arguments.length;z++)Se[z]=arguments[z];if(m){var Q=Se.shift();if(Q!=null){j.error(Q);return}}j.next(1<Se.length?Se:Se[0]),re=!0,ee&&j.complete()}])),re&&j.complete(),ee=!0}return $})}}w.bindCallbackInternals=v},17579:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(p){for(var h,E=1,v=arguments.length;E<v;E++){h=arguments[E];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(p[m]=h[m])}return p},l.apply(this,arguments)},g=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(w,"__esModule",{value:!0}),w.ActionInterface=void 0;var y=g(u(17676)),x=u(7040),f=function(){function p(h,E){h===void 0&&(h=[]),E===void 0&&(E={}),this.actions={},this.options=E,this.add(h)}return p.prototype.add=function(h){for(var E=0;E<h.length;E++){var v=h[E];v.parent&&(0,y.default)(this.actions[v.parent],'Attempted to create action "'+v.name+'" without registering its parent "'+v.parent+'" first.'),this.actions[v.id]=x.ActionImpl.create(v,{history:this.options.historyManager,store:this.actions})}return l({},this.actions)},p.prototype.remove=function(h){var E=this;return h.forEach(function(v){var m=E.actions[v.id];if(m){for(var S=m.children;S.length;){var d=S.pop();if(!d)return;delete E.actions[d.id],d.parentActionImpl&&d.parentActionImpl.removeChild(d),d.children&&S.push.apply(S,d.children)}m.parentActionImpl&&m.parentActionImpl.removeChild(m),delete E.actions[v.id]}}),l({},this.actions)},p}();w.ActionInterface=f},17617:(Ge,w,u)=>{"use strict";u.d(w,{Y:()=>g});var l=u(70788);function g(y,x){if(!(0,l.isAnyArray)(y)||!(0,l.isAnyArray)(x))throw new TypeError("x and y must be arrays");if(y.length!==x.length)throw new RangeError("x and y arrays must have the same length")}},17676:Ge=>{"use strict";var w=!0,u="Invariant failed";function l(g,y){if(!g){if(w)throw new Error(u);var x=typeof y=="function"?y():y,f=x?"".concat(u,": ").concat(x):u;throw new Error(f)}}Ge.exports=l},17712:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.shouldPolyfill=u;function u(){return typeof Intl>"u"||!("DurationFormat"in Intl)}},17782:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.shareReplay=void 0;var l=u(10381),g=u(93405);function y(x,f,p){var h,E,v,m,S=!1;return x&&typeof x=="object"?(h=x.bufferSize,m=h===void 0?1/0:h,E=x.windowTime,f=E===void 0?1/0:E,v=x.refCount,S=v===void 0?!1:v,p=x.scheduler):m=x??1/0,g.share({connector:function(){return new l.ReplaySubject(m,f,p)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}w.shareReplay=y},17802:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.finalize=void 0;var l=u(65212);function g(y){return l.operate(function(x,f){try{x.subscribe(f)}finally{f.add(y)}})}w.finalize=g},17812:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.connect=void 0;var l=u(54427),g=u(19724),y=u(65212),x=u(51071),f={connector:function(){return new l.Subject}};function p(h,E){E===void 0&&(E=f);var v=E.connector;return y.operate(function(m,S){var d=v();g.innerFrom(h(x.fromSubscribable(d))).subscribe(S),S.add(m.subscribe(d))})}w.connect=p},17873:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scheduleAsyncIterable=void 0;var l=u(48051),g=u(28619);function y(x,f){if(!x)throw new Error("Iterable cannot be null");return new l.Observable(function(p){g.executeSchedule(p,f,function(){var h=x[Symbol.asyncIterator]();g.executeSchedule(p,f,function(){h.next().then(function(E){E.done?p.complete():p.next(E.value)})},0,!0)})})}w.scheduleAsyncIterable=y},17977:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.exhaustAll=void 0;var l=u(86632),g=u(87699);function y(){return l.exhaustMap(g.identity)}w.exhaustAll=y},17999:Ge=>{function w(u,l,g,y){var x=Object.defineProperty;try{x({},"",{})}catch{x=0}Ge.exports=w=function(p,h,E,v){function m(S,d){w(p,S,function(O){return this._invoke(S,d,O)})}h?x?x(p,h,{value:E,enumerable:!v,configurable:!v,writable:!v}):p[h]=E:(m("next",0),m("throw",1),m("return",2))},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w(u,l,g,y)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},18191:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.numberingSystemNames=void 0,w.numberingSystemNames=["adlm","ahom","arab","arabext","armn","armnlow","bali","beng","bhks","brah","cakm","cham","cyrl","deva","diak","ethi","fullwide","gara","geor","gong","gonm","grek","greklow","gujr","gukh","guru","hanidays","hanidec","hans","hansfin","hant","hantfin","hebr","hmng","hmnp","java","jpan","jpanfin","jpanyear","kali","kawi","khmr","knda","krai","lana","lanatham","laoo","latn","lepc","limb","mathbold","mathdbl","mathmono","mathsanb","mathsans","mlym","modi","mong","mroo","mtei","mymr","mymrepka","mymrpao","mymrshan","mymrtlng","nagm","newa","nkoo","olck","onao","orya","osma","outlined","rohg","roman","romanlow","saur","segment","shrd","sind","sinh","sora","sund","sunu","takr","talu","taml","tamldec","telu","thai","tibt","tirh","tnsa","vaii","wara","wcho"]},18464:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.multicast=void 0;var l=u(14359),g=u(10281),y=u(17812);function x(f,p){var h=g.isFunction(f)?f:function(){return f};return g.isFunction(p)?y.connect(p,{connector:h}):function(E){return new l.ConnectableObservable(E,h)}}w.multicast=x},18517:(Ge,w,u)=>{var l=u(41729);function g(x,f){var p=Object.keys(x);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(x);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(x,E).enumerable})),p.push.apply(p,h)}return p}function y(x){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?g(Object(p),!0).forEach(function(h){l(x,h,p[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(p)):g(Object(p)).forEach(function(h){Object.defineProperty(x,h,Object.getOwnPropertyDescriptor(p,h))})}return x}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},18678:function(Ge,w,u){var l,g;(function(y,x){l=x,g=typeof l=="function"?l.call(w,u,w,Ge):l,g!==void 0&&(Ge.exports=g)})(this,function(){"use strict";Array.isArray||(Array.isArray=function(p){return Object.prototype.toString.call(p)==="[object Array]"});function y(p){for(var h=[],E=0,v=p.length;E<v;E++)h.indexOf(p[E])===-1&&h.push(p[E]);return h}var x={},f={"==":function(p,h){return p==h},"===":function(p,h){return p===h},"!=":function(p,h){return p!=h},"!==":function(p,h){return p!==h},">":function(p,h){return p>h},">=":function(p,h){return p>=h},"<":function(p,h,E){return E===void 0?p<h:p<h&&h<E},"<=":function(p,h,E){return E===void 0?p<=h:p<=h&&h<=E},"!!":function(p){return x.truthy(p)},"!":function(p){return!x.truthy(p)},"%":function(p,h){return p%h},log:function(p){return console.log(p),p},in:function(p,h){return!h||typeof h.indexOf>"u"?!1:h.indexOf(p)!==-1},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(p,h,E){if(E<0){var v=String(p).substr(h);return v.substr(0,v.length+E)}return String(p).substr(h,E)},"+":function(){return Array.prototype.reduce.call(arguments,function(p,h){return parseFloat(p,10)+parseFloat(h,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(p,h){return parseFloat(p,10)*parseFloat(h,10)})},"-":function(p,h){return h===void 0?-p:p-h},"/":function(p,h){return p/h},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(p,h){return p.concat(h)},[])},var:function(p,h){var E=h===void 0?null:h,v=this;if(typeof p>"u"||p===""||p===null)return v;for(var m=String(p).split("."),S=0;S<m.length;S++)if(v==null||(v=v[m[S]],v===void 0))return E;return v},missing:function(){for(var p=[],h=Array.isArray(arguments[0])?arguments[0]:arguments,E=0;E<h.length;E++){var v=h[E],m=x.apply({var:v},this);(m===null||m==="")&&p.push(v)}return p},missing_some:function(p,h){var E=x.apply({missing:h},this);return h.length-E.length>=p?[]:E}};return x.is_logic=function(p){return typeof p=="object"&&p!==null&&!Array.isArray(p)&&Object.keys(p).length===1},x.truthy=function(p){return Array.isArray(p)&&p.length===0?!1:!!p},x.get_operator=function(p){return Object.keys(p)[0]},x.get_values=function(p){return p[x.get_operator(p)]},x.apply=function(p,h){if(Array.isArray(p))return p.map(function(j){return x.apply(j,h)});if(!x.is_logic(p))return p;var E=x.get_operator(p),v=p[E],m,S,d,O,R;if(Array.isArray(v)||(v=[v]),E==="if"||E=="?:"){for(m=0;m<v.length-1;m+=2)if(x.truthy(x.apply(v[m],h)))return x.apply(v[m+1],h);return v.length===m+1?x.apply(v[m],h):null}else if(E==="and"){for(m=0;m<v.length;m+=1)if(S=x.apply(v[m],h),!x.truthy(S))return S;return S}else if(E==="or"){for(m=0;m<v.length;m+=1)if(S=x.apply(v[m],h),x.truthy(S))return S;return S}else{if(E==="filter")return O=x.apply(v[0],h),d=v[1],Array.isArray(O)?O.filter(function(j){return x.truthy(x.apply(d,j))}):[];if(E==="map")return O=x.apply(v[0],h),d=v[1],Array.isArray(O)?O.map(function(j){return x.apply(d,j)}):[];if(E==="reduce")return O=x.apply(v[0],h),d=v[1],R=typeof v[2]<"u"?v[2]:null,Array.isArray(O)?O.reduce(function(j,I){return x.apply(d,{current:I,accumulator:j})},R):R;if(E==="all"){if(O=x.apply(v[0],h),d=v[1],!Array.isArray(O)||!O.length)return!1;for(m=0;m<O.length;m+=1)if(!x.truthy(x.apply(d,O[m])))return!1;return!0}else if(E==="none"){if(O=x.apply(v[0],h),d=v[1],!Array.isArray(O)||!O.length)return!0;for(m=0;m<O.length;m+=1)if(x.truthy(x.apply(d,O[m])))return!1;return!0}else if(E==="some"){if(O=x.apply(v[0],h),d=v[1],!Array.isArray(O)||!O.length)return!1;for(m=0;m<O.length;m+=1)if(x.truthy(x.apply(d,O[m])))return!0;return!1}}if(v=v.map(function(j){return x.apply(j,h)}),f.hasOwnProperty(E)&&typeof f[E]=="function")return f[E].apply(h,v);if(E.indexOf(".")>0){var C=String(E).split("."),L=f;for(m=0;m<C.length;m++){if(!L.hasOwnProperty(C[m]))throw new Error("Unrecognized operation "+E+" (failed at "+C.slice(0,m+1).join(".")+")");L=L[C[m]]}return L.apply(h,v)}throw new Error("Unrecognized operation "+E)},x.uses_data=function(p){var h=[];if(x.is_logic(p)){var E=x.get_operator(p),v=p[E];Array.isArray(v)||(v=[v]),E==="var"?h.push(v[0]):v.forEach(function(m){h.push.apply(h,x.uses_data(m))})}return y(h)},x.add_operation=function(p,h){f[p]=h},x.rm_operation=function(p){delete f[p]},x.rule_like=function(p,h){if(h===p||h==="@")return!0;if(h==="number")return typeof p=="number";if(h==="string")return typeof p=="string";if(h==="array")return Array.isArray(p)&&!x.is_logic(p);if(x.is_logic(h)){if(x.is_logic(p)){var E=x.get_operator(h),v=x.get_operator(p);if(E==="@"||E===v)return x.rule_like(x.get_values(p,!1),x.get_values(h,!1))}return!1}if(Array.isArray(h))if(Array.isArray(p)){if(h.length!==p.length)return!1;for(var m=0;m<h.length;m+=1)if(!x.rule_like(p[m],h[m]))return!1;return!0}else return!1;return!1},x})},18696:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=u;function u(){}},18795:(Ge,w,u)=>{"use strict";u.d(w,{ss:()=>v});class l{diff(O,R,C={}){let L;typeof C=="function"?(L=C,C={}):"callback"in C&&(L=C.callback);const j=this.castInput(O,C),I=this.castInput(R,C),U=this.removeEmpty(this.tokenize(j,C)),$=this.removeEmpty(this.tokenize(I,C));return this.diffWithOptionsObj(U,$,C,L)}diffWithOptionsObj(O,R,C,L){var j;const I=A=>{if(A=this.postProcess(A,C),L){setTimeout(function(){L(A)},0);return}else return A},U=R.length,$=O.length;let ee=1,re=U+$;C.maxEditLength!=null&&(re=Math.min(re,C.maxEditLength));const Se=(j=C.timeout)!==null&&j!==void 0?j:1/0,z=Date.now()+Se,Q=[{oldPos:-1,lastComponent:void 0}];let ce=this.extractCommon(Q[0],R,O,0,C);if(Q[0].oldPos+1>=$&&ce+1>=U)return I(this.buildValues(Q[0].lastComponent,R,O));let se=-1/0,q=1/0;const te=()=>{for(let A=Math.max(se,-ee);A<=Math.min(q,ee);A+=2){let T;const B=Q[A-1],X=Q[A+1];B&&(Q[A-1]=void 0);let ue=!1;if(X){const Te=X.oldPos-A;ue=X&&0<=Te&&Te<U}const ie=B&&B.oldPos+1<$;if(!ue&&!ie){Q[A]=void 0;continue}if(!ie||ue&&B.oldPos<X.oldPos?T=this.addToPath(X,!0,!1,0,C):T=this.addToPath(B,!1,!0,1,C),ce=this.extractCommon(T,R,O,A,C),T.oldPos+1>=$&&ce+1>=U)return I(this.buildValues(T.lastComponent,R,O))||!0;Q[A]=T,T.oldPos+1>=$&&(q=Math.min(q,A-1)),ce+1>=U&&(se=Math.max(se,A+1))}ee++};if(L)(function A(){setTimeout(function(){if(ee>re||Date.now()>z)return L(void 0);te()||A()},0)})();else for(;ee<=re&&Date.now()<=z;){const A=te();if(A)return A}}addToPath(O,R,C,L,j){const I=O.lastComponent;return I&&!j.oneChangePerToken&&I.added===R&&I.removed===C?{oldPos:O.oldPos+L,lastComponent:{count:I.count+1,added:R,removed:C,previousComponent:I.previousComponent}}:{oldPos:O.oldPos+L,lastComponent:{count:1,added:R,removed:C,previousComponent:I}}}extractCommon(O,R,C,L,j){const I=R.length,U=C.length;let $=O.oldPos,ee=$-L,re=0;for(;ee+1<I&&$+1<U&&this.equals(C[$+1],R[ee+1],j);)ee++,$++,re++,j.oneChangePerToken&&(O.lastComponent={count:1,previousComponent:O.lastComponent,added:!1,removed:!1});return re&&!j.oneChangePerToken&&(O.lastComponent={count:re,previousComponent:O.lastComponent,added:!1,removed:!1}),O.oldPos=$,ee}equals(O,R,C){return C.comparator?C.comparator(O,R):O===R||!!C.ignoreCase&&O.toLowerCase()===R.toLowerCase()}removeEmpty(O){const R=[];for(let C=0;C<O.length;C++)O[C]&&R.push(O[C]);return R}castInput(O,R){return O}tokenize(O,R){return Array.from(O)}join(O){return O.join("")}postProcess(O,R){return O}get useLongestToken(){return!1}buildValues(O,R,C){const L=[];let j;for(;O;)L.push(O),j=O.previousComponent,delete O.previousComponent,O=j;L.reverse();const I=L.length;let U=0,$=0,ee=0;for(;U<I;U++){const re=L[U];if(re.removed)re.value=this.join(C.slice(ee,ee+re.count)),ee+=re.count;else{if(!re.added&&this.useLongestToken){let Se=R.slice($,$+re.count);Se=Se.map(function(z,Q){const ce=C[ee+Q];return ce.length>z.length?ce:z}),re.value=this.join(Se)}else re.value=this.join(R.slice($,$+re.count));$+=re.count,re.added||(ee+=re.count)}}return L}}class g extends l{constructor(){super(...arguments),this.tokenize=p}equals(O,R,C){return C.ignoreWhitespace?((!C.newlineIsToken||!O.includes(` `))&&(O=O.trim()),(!C.newlineIsToken||!R.includes(` `))&&(R=R.trim())):C.ignoreNewlineAtEof&&!C.newlineIsToken&&(O.endsWith(` `)&&(O=O.slice(0,-1)),R.endsWith(` `)&&(R=R.slice(0,-1))),super.equals(O,R,C)}}const y=new g;function x(d,O,R){return y.diff(d,O,R)}function f(d,O,R){return R=generateOptions(R,{ignoreWhitespace:!0}),y.diff(d,O,R)}function p(d,O){O.stripTrailingCr&&(d=d.replace(/\r\n/g,` `));const R=[],C=d.split(/(\n|\r\n)/);C[C.length-1]||C.pop();for(let L=0;L<C.length;L++){const j=C[L];L%2&&!O.newlineIsToken?R[R.length-1]+=j:R.push(j)}return R}function h(d,O,R,C,L,j,I){let U;I?typeof I=="function"?U={callback:I}:U=I:U={},typeof U.context>"u"&&(U.context=4);const $=U.context;if(U.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(U.callback){const{callback:re}=U;x(R,C,Object.assign(Object.assign({},U),{callback:Se=>{const z=ee(Se);re(z)}}))}else return ee(x(R,C,U));function ee(re){if(!re)return;re.push({value:"",lines:[]});function Se(A){return A.map(function(T){return" "+T})}const z=[];let Q=0,ce=0,se=[],q=1,te=1;for(let A=0;A<re.length;A++){const T=re[A],B=T.lines||S(T.value);if(T.lines=B,T.added||T.removed){if(!Q){const X=re[A-1];Q=q,ce=te,X&&(se=$>0?Se(X.lines.slice(-$)):[],Q-=se.length,ce-=se.length)}for(const X of B)se.push((T.added?"+":"-")+X);T.added?te+=B.length:q+=B.length}else{if(Q)if(B.length<=$*2&&A<re.length-2)for(const X of Se(B))se.push(X);else{const X=Math.min(B.length,$);for(const ie of Se(B.slice(0,X)))se.push(ie);const ue={oldStart:Q,oldLines:q-Q+X,newStart:ce,newLines:te-ce+X,lines:se};z.push(ue),Q=0,ce=0,se=[]}q+=B.length,te+=B.length}}for(const A of z)for(let T=0;T<A.lines.length;T++)A.lines[T].endsWith(` `)?A.lines[T]=A.lines[T].slice(0,-1):(A.lines.splice(T+1,0,"\\ No newline at end of file"),T++);return{oldFileName:d,newFileName:O,oldHeader:L,newHeader:j,hunks:z}}}function E(d){if(Array.isArray(d))return d.map(E).join(` `);const O=[];d.oldFileName==d.newFileName&&O.push("Index: "+d.oldFileName),O.push("==================================================================="),O.push("--- "+d.oldFileName+(typeof d.oldHeader>"u"?"":" "+d.oldHeader)),O.push("+++ "+d.newFileName+(typeof d.newHeader>"u"?"":" "+d.newHeader));for(let R=0;R<d.hunks.length;R++){const C=d.hunks[R];C.oldLines===0&&(C.oldStart-=1),C.newLines===0&&(C.newStart-=1),O.push("@@ -"+C.oldStart+","+C.oldLines+" +"+C.newStart+","+C.newLines+" @@");for(const L of C.lines)O.push(L)}return O.join(` `)+` `}function v(d,O,R,C,L,j,I){if(typeof I=="function"&&(I={callback:I}),I?.callback){const{callback:U}=I;h(d,O,R,C,L,j,Object.assign(Object.assign({},I),{callback:$=>{U($?E($):void 0)}}))}else{const U=h(d,O,R,C,L,j,I);return U?E(U):void 0}}function m(d,O,R,C,L,j){return v(d,d,O,R,C,L,j)}function S(d){const O=d.endsWith(` `),R=d.split(` `).map(C=>C+` `);return O?R.pop():R.push(R.pop().slice(0,-1)),R}},18828:(Ge,w,u)=>{"use strict";u.d(w,{s:()=>L});var l=u(92145);const g=new Set(["id"]),y=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),x=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),f=new Set(["dir","lang","hidden","inert","translate"]),p=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),h=/^(data-.*)$/;function E(j,I={}){let{labelable:U,isLink:$,global:ee,events:re=ee,propNames:Se}=I,z={};for(const Q in j)Object.prototype.hasOwnProperty.call(j,Q)&&(g.has(Q)||U&&y.has(Q)||$&&x.has(Q)||ee&&f.has(Q)||re&&p.has(Q)||Q.endsWith("Capture")&&p.has(Q.slice(0,-7))||Se?.has(Q)||h.test(Q))&&(z[Q]=j[Q]);return z}var v=u(86578),m=u(96540),S=u(40961),d=u(49953);const O=m.createContext(null);function R(j){let I=$1CM7W$useIsSSR(),{portalContainer:U=I?null:document.body,isExiting:$}=j,[ee,re]=$1CM7W$useState(!1),Se=$1CM7W$useMemo(()=>({contain:ee,setContain:re}),[ee,re]),{getContainer:z}=$96b38030c423d352$export$9fc1347d4195ccb3();if(!j.portalContainer&&z&&(U=z()),!U)return null;let Q=j.children;return j.disableFocusManagement||(Q=$1CM7W$react.createElement($1CM7W$FocusScope,{restoreFocus:!0,contain:(j.shouldContainFocus||ee)&&!$},Q)),Q=$1CM7W$react.createElement(O.Provider,{value:Se},$1CM7W$react.createElement($1CM7W$ClearPressResponder,null,Q)),$1CM7W$reactdom.createPortal(Q,U)}function C(){let j=(0,m.useContext)(O),I=j?.setContain;(0,d.N)(()=>{I?.(!0)},[I])}function L(j,I){let{role:U="dialog"}=j,$=(0,l.X1)();$=j["aria-label"]?void 0:$;let ee=(0,m.useRef)(!1);return(0,m.useEffect)(()=>{if(I.current&&!I.current.contains(document.activeElement)){(0,v.l)(I.current);let re=setTimeout(()=>{(document.activeElement===I.current||document.activeElement===document.body)&&(ee.current=!0,I.current&&(I.current.blur(),(0,v.l)(I.current)),ee.current=!1)},500);return()=>{clearTimeout(re)}}},[I]),C(),{dialogProps:{...E(j,{labelable:!0}),role:U,tabIndex:-1,"aria-labelledby":j["aria-labelledby"]||$,onBlur:re=>{ee.current&&re.stopPropagation()}},titleProps:{id:$}}}},19086:Ge=>{"use strict";var w,u,l,g;w="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",u="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",l=new RegExp("^[^"+u+"]*["+w+"]"),g=new RegExp("^[^"+w+"]*["+u+"]");function y(x){return x=x.toString(),g.test(x)?"rtl":l.test(x)?"ltr":"neutral"}Ge.exports=y},19533:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.AsyncScheduler=void 0;var g=u(65881),y=function(x){l(f,x);function f(p,h){h===void 0&&(h=g.Scheduler.now);var E=x.call(this,p,h)||this;return E.actions=[],E._active=!1,E}return f.prototype.flush=function(p){var h=this.actions;if(this._active){h.push(p);return}var E;this._active=!0;do if(E=p.execute(p.state,p.delay))break;while(p=h.shift());if(this._active=!1,E){for(;p=h.shift();)p.unsubscribe();throw E}},f}(g.Scheduler);w.AsyncScheduler=y},19724:function(Ge,w,u){"use strict";var l=this&&this.__awaiter||function(z,Q,ce,se){function q(te){return te instanceof ce?te:new ce(function(A){A(te)})}return new(ce||(ce=Promise))(function(te,A){function T(ue){try{X(se.next(ue))}catch(ie){A(ie)}}function B(ue){try{X(se.throw(ue))}catch(ie){A(ie)}}function X(ue){ue.done?te(ue.value):q(ue.value).then(T,B)}X((se=se.apply(z,Q||[])).next())})},g=this&&this.__generator||function(z,Q){var ce={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},se,q,te,A;return A={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function T(X){return function(ue){return B([X,ue])}}function B(X){if(se)throw new TypeError("Generator is already executing.");for(;ce;)try{if(se=1,q&&(te=X[0]&2?q.return:X[0]?q.throw||((te=q.return)&&te.call(q),0):q.next)&&!(te=te.call(q,X[1])).done)return te;switch(q=0,te&&(X=[X[0]&2,te.value]),X[0]){case 0:case 1:te=X;break;case 4:return ce.label++,{value:X[1],done:!1};case 5:ce.label++,q=X[1],X=[0];continue;case 7:X=ce.ops.pop(),ce.trys.pop();continue;default:if(te=ce.trys,!(te=te.length>0&&te[te.length-1])&&(X[0]===6||X[0]===2)){ce=0;continue}if(X[0]===3&&(!te||X[1]>te[0]&&X[1]<te[3])){ce.label=X[1];break}if(X[0]===6&&ce.label<te[1]){ce.label=te[1],te=X;break}if(te&&ce.label<te[2]){ce.label=te[2],ce.ops.push(X);break}te[2]&&ce.ops.pop(),ce.trys.pop();continue}X=Q.call(z,ce)}catch(ue){X=[6,ue],q=0}finally{se=te=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},y=this&&this.__asyncValues||function(z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Q=z[Symbol.asyncIterator],ce;return Q?Q.call(z):(z=typeof x=="function"?x(z):z[Symbol.iterator](),ce={},se("next"),se("throw"),se("return"),ce[Symbol.asyncIterator]=function(){return this},ce);function se(te){ce[te]=z[te]&&function(A){return new Promise(function(T,B){A=z[te](A),q(T,B,A.done,A.value)})}}function q(te,A,T,B){Promise.resolve(B).then(function(X){te({value:X,done:T})},A)}},x=this&&this.__values||function(z){var Q=typeof Symbol=="function"&&Symbol.iterator,ce=Q&&z[Q],se=0;if(ce)return ce.call(z);if(z&&typeof z.length=="number")return{next:function(){return z&&se>=z.length&&(z=void 0),{value:z&&z[se++],done:!z}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.fromReadableStreamLike=w.fromAsyncIterable=w.fromIterable=w.fromPromise=w.fromArrayLike=w.fromInteropObservable=w.innerFrom=void 0;var f=u(94975),p=u(67552),h=u(48051),E=u(80629),v=u(78263),m=u(86297),S=u(12187),d=u(95462),O=u(10281),R=u(32980),C=u(2884);function L(z){if(z instanceof h.Observable)return z;if(z!=null){if(E.isInteropObservable(z))return j(z);if(f.isArrayLike(z))return I(z);if(p.isPromise(z))return U(z);if(v.isAsyncIterable(z))return ee(z);if(S.isIterable(z))return $(z);if(d.isReadableStreamLike(z))return re(z)}throw m.createInvalidObservableTypeError(z)}w.innerFrom=L;function j(z){return new h.Observable(function(Q){var ce=z[C.observable]();if(O.isFunction(ce.subscribe))return ce.subscribe(Q);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}w.fromInteropObservable=j;function I(z){return new h.Observable(function(Q){for(var ce=0;ce<z.length&&!Q.closed;ce++)Q.next(z[ce]);Q.complete()})}w.fromArrayLike=I;function U(z){return new h.Observable(function(Q){z.then(function(ce){Q.closed||(Q.next(ce),Q.complete())},function(ce){return Q.error(ce)}).then(null,R.reportUnhandledError)})}w.fromPromise=U;function $(z){return new h.Observable(function(Q){var ce,se;try{for(var q=x(z),te=q.next();!te.done;te=q.next()){var A=te.value;if(Q.next(A),Q.closed)return}}catch(T){ce={error:T}}finally{try{te&&!te.done&&(se=q.return)&&se.call(q)}finally{if(ce)throw ce.error}}Q.complete()})}w.fromIterable=$;function ee(z){return new h.Observable(function(Q){Se(z,Q).catch(function(ce){return Q.error(ce)})})}w.fromAsyncIterable=ee;function re(z){return ee(d.readableStreamLikeToAsyncGenerator(z))}w.fromReadableStreamLike=re;function Se(z,Q){var ce,se,q,te;return l(this,void 0,void 0,function(){var A,T;return g(this,function(B){switch(B.label){case 0:B.trys.push([0,5,6,11]),ce=y(z),B.label=1;case 1:return[4,ce.next()];case 2:if(se=B.sent(),!!se.done)return[3,4];if(A=se.value,Q.next(A),Q.closed)return[2];B.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return T=B.sent(),q={error:T},[3,11];case 6:return B.trys.push([6,,9,10]),se&&!se.done&&(te=ce.return)?[4,te.call(ce)]:[3,8];case 7:B.sent(),B.label=8;case 8:return[3,10];case 9:if(q)throw q.error;return[7];case 10:return[7];case 11:return Q.complete(),[2]}})})}},19804:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l=u(86160);function g(y){var x=y.length;return function(f){var p=Math.floor(((f%=1)<0?++f:f)*x),h=y[(p+x-1)%x],E=y[p%x],v=y[(p+1)%x],m=y[(p+2)%x];return(0,l.H)((f-p/x)*x,h,E,v,m)}}},19818:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.dematerialize=void 0;var l=u(31245),g=u(65212),y=u(17214);function x(){return g.operate(function(f,p){f.subscribe(y.createOperatorSubscriber(p,function(h){return l.observeNotification(h,p)}))})}w.dematerialize=x},19853:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});function l(g,y){var x=Object.assign({},g);return Array.isArray(y)&&y.forEach(function(f){delete x[f]}),x}},19888:(Ge,w,u)=>{"use strict";Ge.exports=u(58493)},19895:(Ge,w,u)=>{"use strict";u.d(w,{Q:()=>x});var l=u(56315),g=u(92908),y=u(64878);function x(f,p){return p===void 0&&(p=0),(0,g.N)(function(h,E){h.subscribe((0,y._)(E,function(v){return(0,l.N)(E,f,function(){return E.next(v)},p)},function(){return(0,l.N)(E,f,function(){return E.complete()},p)},function(v){return(0,l.N)(E,f,function(){return E.error(v)},p)}))})}},19913:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.concatMapTo=void 0;var l=u(29512),g=u(10281);function y(x,f){return g.isFunction(f)?l.concatMap(function(){return x},f):l.concatMap(function(){return x})}w.concatMapTo=y},19980:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.first=void 0;var l=u(59328),g=u(85934),y=u(54383),x=u(58799),f=u(30632),p=u(87699);function h(E,v){var m=arguments.length>=2;return function(S){return S.pipe(E?g.filter(function(d,O){return E(d,O,S)}):p.identity,y.take(1),m?x.defaultIfEmpty(v):f.throwIfEmpty(function(){return new l.EmptyError}))}}w.first=h},20039:(Ge,w,u)=>{"use strict";u.d(w,{$:()=>f});var l=u(31635),g=u(64878),y=u(88483),x=u(15964);function f(p,h){h===void 0&&(h={});var E=h.selector,v=(0,l.__rest)(h,["selector"]);return new y.c(function(m){var S=new AbortController,d=S.signal,O=!0,R=v.signal;if(R)if(R.aborted)S.abort();else{var C=function(){d.aborted||S.abort()};R.addEventListener("abort",C),m.add(function(){return R.removeEventListener("abort",C)})}var L=(0,l.__assign)((0,l.__assign)({},v),{signal:d}),j=function(I){O=!1,m.error(I)};return fetch(p,L).then(function(I){E?(0,x.Tg)(E(I)).subscribe((0,g._)(m,void 0,function(){O=!1,m.complete()},j)):(O=!1,m.next(I),m.complete())}).catch(j),function(){O&&S.abort()}})}},20638:(Ge,w,u)=>{"use strict";u.d(w,{$8:()=>we,$O:()=>ee,$S:()=>gn,Af:()=>Lr,Au:()=>ge,B4:()=>Ee,Bb:()=>Yn,Be:()=>E,Bj:()=>L,Bt:()=>hn,CM:()=>un,Ct:()=>j,Dl:()=>R,E4:()=>Tn,ER:()=>kn,Eb:()=>on,F7:()=>X,FG:()=>Nt,FO:()=>qt,Fk:()=>Wn,Fn:()=>d,G1:()=>te,G8:()=>Z,GZ:()=>Nn,HL:()=>Te,Hi:()=>rn,Il:()=>fe,Jf:()=>Jn,Jg:()=>Dn,K2:()=>pt,KA:()=>$t,KB:()=>ce,K_:()=>f,Kn:()=>T,L4:()=>_e,LK:()=>ie,MB:()=>On,MQ:()=>We,Mu:()=>p,NC:()=>Et,Nd:()=>Kn,Ny:()=>$,OC:()=>me,P:()=>tt,P7:()=>qe,Pw:()=>I,QC:()=>De,Q_:()=>Ft,Rl:()=>x,Rv:()=>Qe,ST:()=>Gn,So:()=>q,St:()=>Rt,Tx:()=>lt,UI:()=>Pn,Un:()=>Ke,Uy:()=>re,W7:()=>Wt,WN:()=>ne,YA:()=>Cn,YY:()=>ke,Yv:()=>Me,Z$:()=>_t,Zm:()=>Me,_L:()=>Ze,_z:()=>U,aC:()=>O,bR:()=>Zt,bS:()=>kr,cU:()=>Q,d$:()=>ur,dN:()=>Ne,dR:()=>en,dZ:()=>he,db:()=>A,ej:()=>nn,em:()=>Ct,f2:()=>B,fI:()=>Bn,fU:()=>fn,fs:()=>C,g6:()=>je,gP:()=>Se,gt:()=>pn,h8:()=>Fe,hH:()=>er,ii:()=>Mt,jS:()=>ye,jw:()=>bn,kx:()=>xt,lo:()=>bt,m9:()=>tr,nA:()=>v,nb:()=>Pt,oI:()=>Je,pY:()=>m,qF:()=>Fn,qG:()=>ue,qm:()=>Ft,rF:()=>ht,rk:()=>se,rn:()=>be,rt:()=>z,sw:()=>yt,tB:()=>h,tj:()=>ln,v$:()=>ze,vL:()=>Vt,wA:()=>S,xY:()=>K,yz:()=>zt,z$:()=>it});var l=u(59737),g=u(70666),y=u(57048);function x(An,Un){return new An({type:"string",...y.normalizeParams(Un)})}function f(An,Un){return new An({type:"string",coerce:!0,...y.normalizeParams(Un)})}function p(An,Un){return new An({type:"string",format:"email",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function h(An,Un){return new An({type:"string",format:"guid",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function E(An,Un){return new An({type:"string",format:"uuid",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function v(An,Un){return new An({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...y.normalizeParams(Un)})}function m(An,Un){return new An({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...y.normalizeParams(Un)})}function S(An,Un){return new An({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...y.normalizeParams(Un)})}function d(An,Un){return new An({type:"string",format:"url",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function O(An,Un){return new An({type:"string",format:"emoji",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function R(An,Un){return new An({type:"string",format:"nanoid",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function C(An,Un){return new An({type:"string",format:"cuid",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function L(An,Un){return new An({type:"string",format:"cuid2",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function j(An,Un){return new An({type:"string",format:"ulid",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function I(An,Un){return new An({type:"string",format:"xid",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function U(An,Un){return new An({type:"string",format:"ksuid",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function $(An,Un){return new An({type:"string",format:"ipv4",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function ee(An,Un){return new An({type:"string",format:"ipv6",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function re(An,Un){return new An({type:"string",format:"cidrv4",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function Se(An,Un){return new An({type:"string",format:"cidrv6",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function z(An,Un){return new An({type:"string",format:"base64",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function Q(An,Un){return new An({type:"string",format:"base64url",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function ce(An,Un){return new An({type:"string",format:"e164",check:"string_format",abort:!1,...y.normalizeParams(Un)})}function se(An,Un){return new An({type:"string",format:"jwt",check:"string_format",abort:!1,...y.normalizeParams(Un)})}const q={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function te(An,Un){return new An({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...y.normalizeParams(Un)})}function A(An,Un){return new An({type:"string",format:"date",check:"string_format",...y.normalizeParams(Un)})}function T(An,Un){return new An({type:"string",format:"time",check:"string_format",precision:null,...y.normalizeParams(Un)})}function B(An,Un){return new An({type:"string",format:"duration",check:"string_format",...y.normalizeParams(Un)})}function X(An,Un){return new An({type:"number",checks:[],...y.normalizeParams(Un)})}function ue(An,Un){return new An({type:"number",coerce:!0,checks:[],...y.normalizeParams(Un)})}function ie(An,Un){return new An({type:"number",check:"number_format",abort:!1,format:"safeint",...y.normalizeParams(Un)})}function Te(An,Un){return new An({type:"number",check:"number_format",abort:!1,format:"float32",...y.normalizeParams(Un)})}function je(An,Un){return new An({type:"number",check:"number_format",abort:!1,format:"float64",...y.normalizeParams(Un)})}function yt(An,Un){return new An({type:"number",check:"number_format",abort:!1,format:"int32",...y.normalizeParams(Un)})}function tt(An,Un){return new An({type:"number",check:"number_format",abort:!1,format:"uint32",...y.normalizeParams(Un)})}function Ze(An,Un){return new An({type:"boolean",...y.normalizeParams(Un)})}function Ne(An,Un){return new An({type:"boolean",coerce:!0,...y.normalizeParams(Un)})}function it(An,Un){return new An({type:"bigint",...y.normalizeParams(Un)})}function Rt(An,Un){return new An({type:"bigint",coerce:!0,...y.normalizeParams(Un)})}function Dn(An,Un){return new An({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...y.normalizeParams(Un)})}function Mt(An,Un){return new An({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...y.normalizeParams(Un)})}function Wt(An,Un){return new An({type:"symbol",...y.normalizeParams(Un)})}function Tn(An,Un){return new An({type:"undefined",...y.normalizeParams(Un)})}function bn(An,Un){return new An({type:"null",...y.normalizeParams(Un)})}function $t(An){return new An({type:"any"})}function Ct(An){return new An({type:"unknown"})}function Z(An,Un){return new An({type:"never",...y.normalizeParams(Un)})}function me(An,Un){return new An({type:"void",...y.normalizeParams(Un)})}function ke(An,Un){return new An({type:"date",...y.normalizeParams(Un)})}function Ee(An,Un){return new An({type:"date",coerce:!0,...y.normalizeParams(Un)})}function _e(An,Un){return new An({type:"nan",...y.normalizeParams(Un)})}function ge(An,Un){return new l.sm({check:"less_than",...y.normalizeParams(Un),value:An,inclusive:!1})}function Me(An,Un){return new l.sm({check:"less_than",...y.normalizeParams(Un),value:An,inclusive:!0})}function lt(An,Un){return new l.J_({check:"greater_than",...y.normalizeParams(Un),value:An,inclusive:!1})}function Ft(An,Un){return new l.J_({check:"greater_than",...y.normalizeParams(Un),value:An,inclusive:!0})}function Et(An){return lt(0,An)}function Zt(An){return ge(0,An)}function nn(An){return Me(0,An)}function Pn(An){return Ft(0,An)}function rn(An,Un){return new l.Jk({check:"multiple_of",...y.normalizeParams(Un),value:An})}function Vt(An,Un){return new l.j2({check:"max_size",...y.normalizeParams(Un),maximum:An})}function Kn(An,Un){return new l.PH({check:"min_size",...y.normalizeParams(Un),minimum:An})}function ur(An,Un){return new l.e2({check:"size_equals",...y.normalizeParams(Un),size:An})}function on(An,Un){return new l.Yk({check:"max_length",...y.normalizeParams(Un),maximum:An})}function tr(An,Un){return new l.Kk({check:"min_length",...y.normalizeParams(Un),minimum:An})}function Cn(An,Un){return new l.RM({check:"length_equals",...y.normalizeParams(Un),length:An})}function Wn(An,Un){return new l.DG({check:"string_format",format:"regex",...y.normalizeParams(Un),pattern:An})}function er(An){return new l.NI({check:"string_format",format:"lowercase",...y.normalizeParams(An)})}function Fn(An){return new l.kH({check:"string_format",format:"uppercase",...y.normalizeParams(An)})}function en(An,Un){return new l.Tt({check:"string_format",format:"includes",...y.normalizeParams(Un),includes:An})}function gn(An,Un){return new l.J({check:"string_format",format:"starts_with",...y.normalizeParams(Un),prefix:An})}function kn(An,Un){return new l.E6({check:"string_format",format:"ends_with",...y.normalizeParams(Un),suffix:An})}function Jn(An,Un,cr){return new l.XF({check:"property",property:An,schema:Un,...y.normalizeParams(cr)})}function Nn(An,Un){return new l.sj({check:"mime_type",mime:An,...y.normalizeParams(Un)})}function kr(An){return new l.v$({check:"overwrite",tx:An})}function bt(An){return kr(Un=>Un.normalize(An))}function ne(){return kr(An=>An.trim())}function fe(){return kr(An=>An.toLowerCase())}function K(){return kr(An=>An.toUpperCase())}function he(An,Un,cr){return new An({type:"array",element:Un,...y.normalizeParams(cr)})}function Fe(An,Un,cr){return new An({type:"union",options:Un,...y.normalizeParams(cr)})}function Nt(An,Un,cr,mr){return new An({type:"union",options:cr,discriminator:Un,...y.normalizeParams(mr)})}function ln(An,Un,cr){return new An({type:"intersection",left:Un,right:cr})}function pn(An,Un,cr,mr){const hr=cr instanceof g.W4,ar=hr?mr:cr,Cr=hr?cr:null;return new An({type:"tuple",items:Un,rest:Cr,...y.normalizeParams(ar)})}function Yn(An,Un,cr,mr){return new An({type:"record",keyType:Un,valueType:cr,...y.normalizeParams(mr)})}function ht(An,Un,cr,mr){return new An({type:"map",keyType:Un,valueType:cr,...y.normalizeParams(mr)})}function De(An,Un,cr){return new An({type:"set",valueType:Un,...y.normalizeParams(cr)})}function we(An,Un,cr){const mr=Array.isArray(Un)?Object.fromEntries(Un.map(hr=>[hr,hr])):Un;return new An({type:"enum",entries:mr,...y.normalizeParams(cr)})}function Ke(An,Un,cr){return new An({type:"enum",entries:Un,...y.normalizeParams(cr)})}function be(An,Un,cr){return new An({type:"literal",values:Array.isArray(Un)?Un:[Un],...y.normalizeParams(cr)})}function pt(An,Un){return new An({type:"file",...y.normalizeParams(Un)})}function We(An,Un){return new An({type:"transform",transform:Un})}function Je(An,Un){return new An({type:"optional",innerType:Un})}function ye(An,Un){return new An({type:"nullable",innerType:Un})}function Qe(An,Un,cr){return new An({type:"default",innerType:Un,get defaultValue(){return typeof cr=="function"?cr():cr}})}function ze(An,Un,cr){return new An({type:"nonoptional",innerType:Un,...y.normalizeParams(cr)})}function qe(An,Un){return new An({type:"success",innerType:Un})}function Pt(An,Un,cr){return new An({type:"catch",innerType:Un,catchValue:typeof cr=="function"?cr:()=>cr})}function zt(An,Un,cr){return new An({type:"pipe",in:Un,out:cr})}function un(An,Un){return new An({type:"readonly",innerType:Un})}function hn(An,Un,cr){return new An({type:"template_literal",parts:Un,...y.normalizeParams(cr)})}function xt(An,Un){return new An({type:"lazy",getter:Un})}function _t(An,Un){return new An({type:"promise",innerType:Un})}function qt(An,Un,cr){const mr=y.normalizeParams(cr);return mr.abort??(mr.abort=!0),new An({type:"custom",check:"custom",fn:Un,...mr})}function fn(An,Un,cr){return new An({type:"custom",check:"custom",fn:Un,...y.normalizeParams(cr)})}function On(An){const Un=Gn(cr=>(cr.addIssue=mr=>{if(typeof mr=="string")cr.issues.push(y.issue(mr,cr.value,Un._zod.def));else{const hr=mr;hr.fatal&&(hr.continue=!1),hr.code??(hr.code="custom"),hr.input??(hr.input=cr.value),hr.inst??(hr.inst=Un),hr.continue??(hr.continue=!Un._zod.def.abort),cr.issues.push(y.issue(hr))}},An(cr.value,cr)));return Un}function Gn(An,Un){const cr=new l.QP({check:"custom",...y.normalizeParams(Un)});return cr._zod.check=An,cr}function Bn(An,Un){const cr=y.normalizeParams(Un);let mr=cr.truthy??["true","1","yes","on","y","enabled"],hr=cr.falsy??["false","0","no","off","n","disabled"];cr.case!=="sensitive"&&(mr=mr.map(sn=>typeof sn=="string"?sn.toLowerCase():sn),hr=hr.map(sn=>typeof sn=="string"?sn.toLowerCase():sn));const ar=new Set(mr),Cr=new Set(hr),Yr=An.Pipe??g._m,Xr=An.Boolean??g.sF,ni=An.String??g.$v,ki=An.Transform??g.Wc,zr=new ki({type:"transform",transform:(sn,Rn)=>{let H=sn;return cr.case!=="sensitive"&&(H=H.toLowerCase()),ar.has(H)?!0:Cr.has(H)?!1:(Rn.issues.push({code:"invalid_value",expected:"stringbool",values:[...ar,...Cr],input:Rn.value,inst:zr,continue:!1}),{})},error:cr.error}),Ur=new Yr({type:"pipe",in:new ni({type:"string",error:cr.error}),out:zr,error:cr.error});return new Yr({type:"pipe",in:Ur,out:new Xr({type:"boolean",error:cr.error}),error:cr.error})}function Lr(An,Un,cr,mr={}){const hr=y.normalizeParams(mr),ar={...y.normalizeParams(mr),check:"string_format",type:"string",format:Un,fn:typeof cr=="function"?cr:Yr=>cr.test(Yr),...hr};return cr instanceof RegExp&&(ar.pattern=cr),new An(ar)}},20998:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});function l(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},21082:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.PartitionDurationFormatPattern=f;var l=u(1656),g=u(11437),y=u(13329),x=u(67404);function f(p,h){var E=[],v=!1,m=!1,S=(0,x.getInternalSlots)(p),d=S.dataLocale,O=y.DurationFormat.localeData[d];if(!O)throw new TypeError("Invalid locale");for(var R=S.numberingSystem,C=O.digitalFormat[R],L=function(Ze){var Ne=g.TABLE_2[Ze],it=h[Ne.valueField],Rt=S[Ne.styleSlot],Dn=S[Ne.displaySlot],Mt=Ne.unit,Wt=Ne.numberFormatUnit,Tn=Object.create(null);if(Mt==="seconds"||Mt==="milliseconds"||Mt==="microseconds"){var bn=void 0;Mt==="seconds"?bn=S.milliseconds:Mt==="milliseconds"?bn=S.microseconds:bn=S.nanoseconds,bn==="numeric"&&(Mt==="seconds"?it+=h.milliseconds/1e3+h.microseconds/1e6+h.nanoseconds/1e9:Mt==="milliseconds"?it+=h.microseconds/1e3+h.nanoseconds/1e6:it+=h.nanoseconds/1e3,S.fractionalDigits===void 0?(Tn.maximumFractionDigits=9,Tn.minimumFractionDigits=0):(Tn.maximumFractionDigits=S.fractionalDigits,Tn.minimumFractionDigits=S.fractionalDigits),Tn.roundingMode="trunc",v=!0)}if(it!==0||Dn!=="auto"){Tn.numberingSystem=S.numberingSystem,Rt==="2-digit"&&(Tn.minimumIntegerDigits=2),Rt!=="2-digit"&&Rt!=="numeric"&&(Tn.style="unit",Tn.unit=Wt,Tn.unitDisplay=Rt);var $t=(0,l.createMemoizedNumberFormat)(S.locale,Tn),Ct;m?(Ct=E[E.length-1],Ct.push({type:"literal",value:C})):Ct=[];var Z=$t.formatToParts(it);Z.forEach(function(me){var ke=me.type,Ee=me.value;Ct.push({type:ke,value:Ee,unit:Wt})}),m||((Rt==="2-digit"||Rt==="numeric")&&(m=!0),E.push(Ct))}else m=!1},j=0;j<g.TABLE_2.length&&!v;j++)L(j);var I=Object.create(null);I.type="unit";var U=S.style;U==="digital"&&(U="short"),I.style=U;for(var $=(0,l.createMemoizedListFormat)(S.locale,I),ee=[],re=0,Se=E;re<Se.length;re++){for(var z=Se[re],Q="",ce=0,se=z;ce<se.length;ce++){var q=se[ce].value;Q+=q}ee.push(Q)}for(var te=$.formatToParts(ee),A=0,T=E.length,B=[],X=0,ue=te;X<ue.length;X++){var ie=ue[X],Te=ie.type,q=ie.value;if(Te==="element"){(0,l.invariant)(A<T,"Index out of bounds");for(var z=E[A],je=0,yt=z;je<yt.length;je++){var tt=yt[je];B.push(tt)}A++}else(0,l.invariant)(Te==="literal","Type must be literal"),B.push({type:"literal",value:q})}return B}},21197:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>f,Ik:()=>h,uL:()=>E});var l=u(46957),g=u(86160),y=u(19804),x=u(84709);const f=function v(m){var S=(0,x.uN)(m);function d(O,R){var C=S((O=(0,l.Qh)(O)).r,(R=(0,l.Qh)(R)).r),L=S(O.g,R.g),j=S(O.b,R.b),I=(0,x.Ay)(O.opacity,R.opacity);return function(U){return O.r=C(U),O.g=L(U),O.b=j(U),O.opacity=I(U),O+""}}return d.gamma=v,d}(1);function p(v){return function(m){var S=m.length,d=new Array(S),O=new Array(S),R=new Array(S),C,L;for(C=0;C<S;++C)L=(0,l.Qh)(m[C]),d[C]=L.r||0,O[C]=L.g||0,R[C]=L.b||0;return d=v(d),O=v(O),R=v(R),L.opacity=1,function(j){return L.r=d(j),L.g=O(j),L.b=R(j),L+""}}}var h=p(g.A),E=p(y.A)},21301:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{LookupSupportedLocales:()=>Se,ResolveLocale:()=>re,match:()=>z});function l(Q){return Intl.getCanonicalLocales(Q)}var g=u(31635),y={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},x={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},f=/-u(?:-[0-9a-z]{2,8})+/gi;function p(Q,ce,se){if(se===void 0&&(se=Error),!Q)throw new se(ce)}var h=838,E;function v(){var Q,ce;if(!E){var se=(ce=(Q=y.supplemental.languageMatching["written-new"][0])===null||Q===void 0?void 0:Q.paradigmLocales)===null||ce===void 0?void 0:ce._locales.split(" "),q=y.supplemental.languageMatching["written-new"].slice(1,5),te=y.supplemental.languageMatching["written-new"].slice(5),A=te.map(function(T){var B=Object.keys(T)[0],X=T[B];return{supported:B,desired:X._desired,distance:+X._distance,oneway:X.oneway==="true"}},{});E={matches:A,matchVariables:q.reduce(function(T,B){var X=Object.keys(B)[0],ue=B[X];return T[X.slice(1)]=ue._value.split("+"),T},{}),paradigmLocales:(0,g.__spreadArray)((0,g.__spreadArray)([],se,!0),se.map(function(T){return new Intl.Locale(T.replace(/_/g,"-")).maximize().toString()}),!0)}}return E}function m(Q,ce,se){var q=ce.split("-"),te=q[0],A=q[1],T=q[2],B=!0;if(T&&T[0]==="$"){var X=T[1]!=="!",ue=X?se[T.slice(1)]:se[T.slice(2)],ie=ue.map(function(Te){return x[Te]||[Te]}).reduce(function(Te,je){return(0,g.__spreadArray)((0,g.__spreadArray)([],Te,!0),je,!0)},[]);B&&(B=ie.indexOf(Q.region||"")>-1==X)}else B&&(B=Q.region?T==="*"||T===Q.region:!0);return B&&(B=Q.script?A==="*"||A===Q.script:!0),B&&(B=Q.language?te==="*"||te===Q.language:!0),B}function S(Q){return[Q.language,Q.script,Q.region].filter(Boolean).join("-")}function d(Q,ce,se){for(var q=0,te=se.matches;q<te.length;q++){var A=te[q],T=m(Q,A.desired,se.matchVariables)&&m(ce,A.supported,se.matchVariables);if(!A.oneway&&!T&&(T=m(Q,A.supported,se.matchVariables)&&m(ce,A.desired,se.matchVariables)),T){var B=A.distance*10;return se.paradigmLocales.indexOf(S(Q))>-1!=se.paradigmLocales.indexOf(S(ce))>-1?B-1:B}}throw new Error("No matching distance found")}function O(Q,ce){var se=new Intl.Locale(Q).maximize(),q=new Intl.Locale(ce).maximize(),te={language:se.language,script:se.script||"",region:se.region||""},A={language:q.language,script:q.script||"",region:q.region||""},T=0,B=v();return te.language!==A.language&&(T+=d({language:se.language,script:"",region:""},{language:q.language,script:"",region:""},B)),te.script!==A.script&&(T+=d({language:se.language,script:te.script,region:""},{language:q.language,script:A.script,region:""},B)),te.region!==A.region&&(T+=d(te,A,B)),T}function R(Q,ce,se){se===void 0&&(se=h);var q=1/0,te={matchedDesiredLocale:"",distances:{}};return Q.forEach(function(A,T){te.distances[A]||(te.distances[A]={}),ce.forEach(function(B){var X=O(A,B)+0+T*40;te.distances[A][B]=X,X<q&&(q=X,te.matchedDesiredLocale=A,te.matchedSupportedLocale=B)})}),q>=se&&(te.matchedDesiredLocale=void 0,te.matchedSupportedLocale=void 0),te}function C(Q,ce,se){var q,te,A=[],T=ce.reduce(function(X,ue){var ie=ue.replace(f,"");return A.push(ie),X[ie]=ue,X},{}),B=R(A,Q);return B.matchedSupportedLocale&&B.matchedDesiredLocale&&(q=B.matchedSupportedLocale,te=T[B.matchedDesiredLocale].slice(B.matchedDesiredLocale.length)||void 0),q?{locale:q,extension:te}:{locale:se()}}function L(Q,ce){var se=ce.toLowerCase();p(Q!==void 0,"ukey must be defined");var q=se;return q}function j(Q){return Intl.getCanonicalLocales(Q)[0]}function I(Q,ce,se){p(Q.indexOf("-u-")===-1,"Expected locale to not have a Unicode locale extension");for(var q="-u",te=0,A=ce;te<A.length;te++){var T=A[te];q+="-".concat(T)}for(var B=0,X=se;B<X.length;B++){var ue=X[B],ie=ue.key,Te=ue.value;q+="-".concat(ie),Te!==""&&(q+="-".concat(Te))}if(q==="-u")return j(Q);var je=Q.indexOf("-x-"),yt;if(je===-1)yt=Q+q;else{var tt=Q.slice(0,je),Ze=Q.slice(je);yt=tt+q+Ze}return j(yt)}function U(Q,ce){for(var se=ce;;){if(Q.indexOf(se)>-1)return se;var q=se.lastIndexOf("-");if(!~q)return;q>=2&&se[q-2]==="-"&&(q-=2),se=se.slice(0,q)}}function $(Q,ce,se){for(var q={locale:""},te=0,A=ce;te<A.length;te++){var T=A[te],B=T.replace(f,""),X=U(Q,B);if(X)return q.locale=X,T!==B&&(q.extension=T.slice(B.length,T.length)),q}return q.locale=se(),q}function ee(Q){p(Q===Q.toLowerCase(),"Expected extension to be lowercase"),p(Q.slice(0,3)==="-u-","Expected extension to be a Unicode locale extension");for(var ce=[],se=[],q,te=Q.length,A=3;A<te;){var T=Q.indexOf("-",A),B=void 0;T===-1?B=te-A:B=T-A;var X=Q.slice(A,A+B);p(B>=2,"Expected a subtag to have at least 2 characters"),q===void 0&&B!=2?ce.indexOf(X)===-1&&ce.push(X):B===2?(q={key:X,value:""},se.find(function(ue){return ue.key===q?.key})===void 0&&se.push(q)):q?.value===""?q.value=X:(p(q!==void 0,"Expected keyword to be defined"),q.value+="-"+X),A+=B+1}return{attributes:ce,keywords:se}}function re(Q,ce,se,q,te,A){var T,B=se.localeMatcher,X;B==="lookup"?X=$(Array.from(Q),ce,A):X=C(Array.from(Q),ce,A),X==null&&(X={locale:A(),extension:""});var ue=X.locale,ie=te[ue],Te={locale:"en",dataLocale:ue},je,yt;X.extension?(je=ee(X.extension),yt=je.keywords):yt=[];for(var tt=[],Ze=function(Mt){var Wt=(T=ie?.[Mt])!==null&&T!==void 0?T:[];p(Array.isArray(Wt),"keyLocaleData for ".concat(Mt," must be an array"));var Tn=Wt[0];p(Tn===void 0||typeof Tn=="string","value must be a string or undefined");var bn=void 0,$t=yt.find(function(ke){return ke.key===Mt});if($t){var Ct=$t.value;Ct!==""?Wt.indexOf(Ct)>-1&&(Tn=Ct,bn={key:Mt,value:Tn}):Wt.indexOf("true")>-1&&(Tn="true",bn={key:Mt,value:Tn})}var Z=se[Mt];if(p(Z==null||typeof Z=="string","optionsValue must be a string or undefined"),typeof Z=="string"){var me=Mt.toLowerCase();Z=L(me,Z),Z===""&&(Z="true")}Z!==Tn&&Wt.indexOf(Z)>-1&&(Tn=Z,bn=void 0),bn&&tt.push(bn),Te[Mt]=Tn},Ne=0,it=q;Ne<it.length;Ne++){var Rt=it[Ne];Ze(Rt)}var Dn=[];return tt.length>0&&(Dn=[],ue=I(ue,Dn,tt)),Te.locale=ue,Te}function Se(Q,ce){for(var se=[],q=0,te=ce;q<te.length;q++){var A=te[q],T=A.replace(f,""),B=U(Q,T);B&&se.push(B)}return se}function z(Q,ce,se,q){return re(ce,l(Q),{localeMatcher:q?.algorithm||"best fit"},[],{},function(){return se}).locale}},21361:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.every=void 0;var l=u(65212),g=u(17214);function y(x,f){return l.operate(function(p,h){var E=0;p.subscribe(g.createOperatorSubscriber(h,function(v){x.call(f,v,E++,p)||(h.next(!1),h.complete())},function(){h.next(!0),h.complete()}))})}w.every=y},21450:function(Ge){(function(u,l){Ge.exports=l()})(this,function(){return function(w){var u={};function l(g){if(u[g])return u[g].exports;var y=u[g]={i:g,l:!1,exports:{}};return w[g].call(y.exports,y,y.exports,l),y.l=!0,y.exports}return l.m=w,l.c=u,l.d=function(g,y,x){l.o(g,y)||Object.defineProperty(g,y,{configurable:!1,enumerable:!0,get:x})},l.n=function(g){var y=g&&g.__esModule?function(){return g.default}:function(){return g};return l.d(y,"a",y),y},l.o=function(g,y){return Object.prototype.hasOwnProperty.call(g,y)},l.p="",l(l.s=3)}([function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0});function g(x,f){var p={},h=x||"Abstract",E=[],v=null,m;if(p._type=h,p.getType=function(){return h},p.setType=function(R){h=R},p.getChildren=function(){return E},p.addChild=function(R){if(R){if(!R.setParent)throw{name:"Error",message:"Trying to add a child which is not a node: "+JSON.stringify(R)};R.setParent(p),E.push(R)}},p.getParent=function(){return v},p.setParent=function(R){v=R},p.getContext=function(R){return m||R.activeContext.peek()},p.setContext=function(R){m=R},p.getStartPosition=function(){return f>>16},p.getEndPosition=function(){return f&65535},p.getValue=function(){throw{name:"MethodNotImplementedException",message:"SpelNode#getValue() must be overridden."}},p.toString=function(){var R="Kind: "+p.getType();R+=", Children: [";for(var C=0,L=p.getChildren().length;C<L;C+=1)R+="{"+p.getChildren()[C]+"}, ";return R+="]",R},f===0)throw{name:"Error",message:"Position cannot be 0"};for(var S=arguments.length,d=Array(S>2?S-2:0),O=2;O<S;O++)d[O-2]=arguments[O];return d&&d.forEach(function(R){p.addChild(R)}),p}var y=u.SpelNode={create:g}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Stack=g;function g(y){this.elements=y||[]}g.prototype.push=function(y){return this.elements.push(y),y},g.prototype.pop=function(){return this.elements.pop()},g.prototype.peek=function(){return this.elements[this.elements.length-1]},g.prototype.empty=function(){return this.elements.length>0},g.prototype.search=function(y){return this.elements.length-this.elements.indexOf(y)}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var g={LITERAL_INT:1,LITERAL_LONG:2,LITERAL_HEXINT:3,LITERAL_HEXLONG:4,LITERAL_STRING:5,LITERAL_REAL:6,LITERAL_REAL_FLOAT:7,LPAREN:"(",RPAREN:")",COMMA:",",IDENTIFIER:0,COLON:":",HASH:"#",RSQUARE:"]",LSQUARE:"[",LCURLY:"{",RCURLY:"}",DOT:".",PLUS:"+",STAR:"*",MINUS:"-",SELECT_FIRST:"^[",SELECT_LAST:"$[",QMARK:"?",PROJECT:"![",DIV:"/",GE:">=",GT:">",LE:"<=",LT:"<",EQ:"==",NE:"!=",MOD:"%",NOT:"!",ASSIGN:"=",INSTANCEOF:"instanceof",MATCHES:"matches",BETWEEN:"between",SELECT:"?[",POWER:"^",ELVIS:"?:",SAFE_NAVI:"?.",BEAN_REF:"@",SYMBOLIC_OR:"||",SYMBOLIC_AND:"&&",INC:"++",DEC:"--"};function y(f){this.type=f,this.tokenChars=g[f],this._hasPayload=typeof g[f]!="string",typeof g[f]=="number"&&(this._ordinal=g[f])}for(var x in g)g.hasOwnProperty(x)&&(y[x]=new y(x));y.prototype.toString=function(){return this.type+(this.tokenChars.length!==0?"("+this.tokenChars+")":"")},y.prototype.getLength=function(){return this.tokenChars.length},y.prototype.hasPayload=function(){return this._hasPayload},y.prototype.valueOf=function(f){for(var p in g)if(g.hasOwnProperty(p)&&g[p]===f)return y[p]},y.prototype.ordinal=function(){return this._ordinal},u.TokenKind=y},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.StandardContext=u.SpelExpressionEvaluator=void 0;var g=l(4),y=l(50);u.SpelExpressionEvaluator=g.SpelExpressionEvaluator,u.StandardContext=y.StandardContext},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.SpelExpressionEvaluator=void 0;var g=l(5),y=l(1),x={};function f(p,h,E){var v=new y.Stack,m;return h||(h={}),v.push(h),m={rootContext:h,activeContext:v,locals:E},p.getValue(m)}x.compile=function(p){var h=(0,g.SpelExpressionParser)().parse(p);return{eval:function(v,m){return f(h,v,m)},_compiledExpression:h}},x.eval=function(p,h,E){return x.compile(p).eval(h,E)},u.SpelExpressionEvaluator=x},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.SpelExpressionParser=void 0;var g=l(2),y=l(6),x=l(8),f=l(9),p=l(10),h=l(11),E=l(12),v=l(13),m=l(14),S=l(15),d=l(16),O=l(17),R=l(18),C=l(19),L=l(20),j=l(21),I=l(22),U=l(23),$=l(24),ee=l(25),re=l(26),Se=l(27),z=l(28),Q=l(29),ce=l(30),se=l(31),q=l(32),te=l(33),A=l(34),T=l(35),B=l(36),X=l(37),ue=l(38),ie=l(39),Te=l(40),je=l(41),yt=l(42),tt=l(43),Ze=l(44),Ne=l(45),it=l(46),Rt=l(47),Dn=l(48),Mt=l(49),Wt=u.SpelExpressionParser=function(){var bn=new RegExp("[\\p{L}\\p{N}_$]+"),$t,Ct=[],Z,me,ke,Ee;function _e(_t){$t=_t}function ge(_t,qt){try{Z=_t,me=y.Tokenizer.tokenize(_t),ke=me.length,Ee=0,Ct=[];var fn=Me();return Je()&&ze(Qe().startPos,"MORE_INPUT",ye().toString()),fn}catch(On){throw On.message}}function Me(){var _t=lt();if(Je()){var qt=Qe();if(qt.getKind()===g.TokenKind.ASSIGN){_t===null&&(_t=h.NullLiteral.create(xt(qt.startPos-1,qt.endPos-1))),ye();var fn=lt();return R.Assign.create(hn(qt),_t,fn)}if(qt.getKind()===g.TokenKind.ELVIS){_t===null&&(_t=h.NullLiteral.create(xt(qt.startPos-1,qt.endPos-2))),ye();var On=Me();return On===null&&(On=h.NullLiteral.create(xt(qt.startPos+1,qt.endPos+1))),ue.Elvis.create(hn(qt),_t,On)}if(qt.getKind()===g.TokenKind.QMARK){_t===null&&(_t=h.NullLiteral.create(xt(qt.startPos-1,qt.endPos-1))),ye();var Gn=Me();De(g.TokenKind.COLON);var Bn=Me();return X.Ternary.create(hn(qt),_t,Gn,Bn)}}return _t}function lt(){for(var _t=Ft();pt("or")||we(g.TokenKind.SYMBOLIC_OR);){var qt=ye(),fn=Ft();Pt(qt,_t,fn),_t=T.OpOr.create(hn(qt),_t,fn)}return _t}function Ft(){for(var _t=Et();pt("and")||we(g.TokenKind.SYMBOLIC_AND);){var qt=ye(),fn=Et();Pt(qt,_t,fn),_t=A.OpAnd.create(hn(qt),_t,fn)}return _t}function Et(){var _t=Zt(),qt=ht();if(qt!==null){var fn=ye(),On=Zt();Pt(fn,_t,On);var Gn=qt.kind;if(qt.isNumericRelationalOperator()){var Bn=hn(fn);return Gn===g.TokenKind.GT?I.OpGT.create(Bn,_t,On):Gn===g.TokenKind.LT?$.OpLT.create(Bn,_t,On):Gn===g.TokenKind.LE?U.OpLE.create(Bn,_t,On):Gn===g.TokenKind.GE?j.OpGE.create(Bn,_t,On):Gn===g.TokenKind.EQ?C.OpEQ.create(Bn,_t,On):L.OpNE.create(Bn,_t,On)}return Gn===g.TokenKind.INSTANCEOF?tt.OpInstanceof.create(hn(fn),_t,On):Gn===g.TokenKind.MATCHES?B.OpMatches.create(hn(fn),_t,On):Ze.OpBetween.create(hn(fn),_t,On)}return _t}function Zt(){for(var _t=nn();be(g.TokenKind.PLUS,g.TokenKind.MINUS,g.TokenKind.INC);){var qt=ye(),fn=nn();un(qt,fn),qt.getKind()===g.TokenKind.PLUS?_t=ee.OpPlus.create(hn(qt),_t,fn):qt.getKind()===g.TokenKind.MINUS&&(_t=re.OpMinus.create(hn(qt),_t,fn))}return _t}function nn(){for(var _t=Pn();be(g.TokenKind.STAR,g.TokenKind.DIV,g.TokenKind.MOD);){var qt=ye(),fn=Pn();Pt(qt,_t,fn),qt.getKind()===g.TokenKind.STAR?_t=Se.OpMultiply.create(hn(qt),_t,fn):qt.getKind()===g.TokenKind.DIV?_t=z.OpDivide.create(hn(qt),_t,fn):_t=Q.OpModulus.create(hn(qt),_t,fn)}return _t}function Pn(){var _t=rn(),qt;if(we(g.TokenKind.POWER)){qt=ye();var fn=rn();return un(qt,fn),ce.OpPower.create(hn(qt),_t,fn)}return _t!==null&&be(g.TokenKind.INC,g.TokenKind.DEC)?(qt=ye(),qt.getKind()===g.TokenKind.INC?se.OpInc.create(hn(qt),!0,_t):q.OpDec.create(hn(qt),!0,_t)):_t}function rn(){var _t,qt;return be(g.TokenKind.PLUS,g.TokenKind.MINUS,g.TokenKind.NOT)?(_t=ye(),qt=rn(),_t.getKind()===g.TokenKind.NOT?te.OpNot.create(hn(_t),qt):_t.getKind()===g.TokenKind.PLUS?ee.OpPlus.create(hn(_t),qt):re.OpMinus.create(hn(_t),qt)):be(g.TokenKind.INC,g.TokenKind.DEC)?(_t=ye(),qt=rn(),_t.getKind()===g.TokenKind.INC?se.OpInc.create(hn(_t),!1,qt):q.OpDec.create(hn(_t),!1,qt)):Vt()}function Vt(){var _t=[],qt=en();for(_t.push(qt);Kn();)_t.push(ln());return _t.length===1?_t[0]:d.CompoundExpression.create(xt(qt.getStartPosition(),_t[_t.length-1].getEndPosition()),_t)}function Kn(){var _t=null;return be(g.TokenKind.DOT,g.TokenKind.SAFE_NAVI)?_t=on():_t=ur(),_t===null?!1:(Nt(_t),!0)}function ur(){return we(g.TokenKind.LSQUARE)&&bt()?ln():null}function on(){var _t=ye(),qt=_t.getKind()===g.TokenKind.SAFE_NAVI;return he(qt)||tr()||Nn(qt)||ne(qt)?ln():(Qe()===null?ze(_t.startPos,"OOD"):ze(_t.startPos,"UNEXPECTED_DATA_AFTER_DOT",qe(Qe())),null)}function tr(){if(!we(g.TokenKind.HASH))return!1;var _t=ye(),qt=De(g.TokenKind.IDENTIFIER),fn=Cn();return fn===null?(Nt(S.VariableReference.create(qt.data,xt(_t.startPos,qt.endPos))),!0):(Nt(E.FunctionReference.create(qt.data,xt(_t.startPos,qt.endPos),fn)),!0)}function Cn(){if(!we(g.TokenKind.LPAREN))return null;var _t=[];return er(_t),De(g.TokenKind.RPAREN),_t}function Wn(_t){we(g.TokenKind.LPAREN)||ze(hn(Qe()),"MISSING_CONSTRUCTOR_ARGS"),er(_t),De(g.TokenKind.RPAREN)}function er(_t){var qt=Qe().startPos,fn;do{ye();var On=Qe();On===null&&ze(qt,"RUN_OUT_OF_ARGUMENTS"),On.getKind()!==g.TokenKind.RPAREN&&_t.push(Me()),fn=Qe()}while(fn!==null&&fn.kind===g.TokenKind.COMMA);fn===null&&ze(qt,"RUN_OUT_OF_ARGUMENTS")}function Fn(_t){return _t===null?Z.length:_t.startPos}function en(){return pn()||Yn()||kn()||Jn()||Fe()||he(!1)||tr()||gn()||Nn(!1)||ne(!1)||bt()||kr()?ln():null}function gn(){if(we(g.TokenKind.BEAN_REF)){var _t=ye(),qt=null,fn=null;we(g.TokenKind.IDENTIFIER)?(qt=De(g.TokenKind.IDENTIFIER),fn=qt.data):we(g.TokenKind.LITERAL_STRING)?(qt=De(g.TokenKind.LITERAL_STRING),fn=qt.stringValue(),fn=fn.substring(1,fn.length()-1)):ze(_t.startPos,"INVALID_BEAN_REFERENCE");var On=it.BeanReference.create(hn(qt),fn);return Nt(On),!0}return!1}function kn(){if(we(g.TokenKind.IDENTIFIER)){var _t=Qe();if(_t.stringValue()!=="T")return!1;var qt=ye();if(we(g.TokenKind.RSQUARE))return Nt(m.PropertyReference.create(qt.stringValue(),hn(qt))),!0;De(g.TokenKind.LPAREN);for(var fn=fe(),On=0;Ke(g.TokenKind.LSQUARE,!0);)De(g.TokenKind.RSQUARE),On++;return De(g.TokenKind.RPAREN),Nt(Ne.TypeReference.create(hn(_t),fn,On)),!0}return!1}function Jn(){if(we(g.TokenKind.IDENTIFIER)){var _t=Qe();return _t.stringValue().toLowerCase()!=="null"?!1:(ye(),Nt(h.NullLiteral.create(hn(_t))),!0)}return!1}function Nn(_t){var qt=Qe();if(!Ke(g.TokenKind.PROJECT,!0))return!1;var fn=Me();return De(g.TokenKind.RSQUARE),Nt(yt.Projection.create(_t,hn(qt),fn)),!0}function kr(){var _t=Qe(),qt=[];if(!Ke(g.TokenKind.LCURLY,!0))return!1;var fn=null,On=Qe();if(Ke(g.TokenKind.RCURLY,!0))fn=ie.InlineList.create(xt(_t.startPos,On.endPos));else if(Ke(g.TokenKind.COLON,!0))On=De(g.TokenKind.RCURLY),fn=Te.InlineMap.create(xt(_t.startPos,On.endPos));else{var Gn=Me();if(we(g.TokenKind.RCURLY))qt.push(Gn),On=De(g.TokenKind.RCURLY),fn=ie.InlineList.create(xt(_t.startPos,On.endPos),qt);else if(Ke(g.TokenKind.COMMA,!0)){qt.push(Gn);do qt.push(Me());while(Ke(g.TokenKind.COMMA,!0));On=De(g.TokenKind.RCURLY),fn=ie.InlineList.create(hn(_t.startPos,On.endPos),qt)}else if(Ke(g.TokenKind.COLON,!0)){var Bn=[];for(Bn.push(Gn),Bn.push(Me());Ke(g.TokenKind.COMMA,!0);)Bn.push(Me()),De(g.TokenKind.COLON),Bn.push(Me());On=De(g.TokenKind.RCURLY),fn=Te.InlineMap.create(xt(_t.startPos,On.endPos),Bn)}else ze(_t.startPos,"OOD")}return Nt(fn),!0}function bt(){var _t=Qe();if(!Ke(g.TokenKind.LSQUARE,!0))return!1;var qt=Me();return De(g.TokenKind.RSQUARE),Nt(O.Indexer.create(hn(_t),qt)),!0}function ne(_t){var qt=Qe();if(!We())return!1;ye();var fn=Me();return fn===null&&ze(hn(qt),"MISSING_SELECTION_EXPRESSION"),De(g.TokenKind.RSQUARE),qt.getKind()===g.TokenKind.SELECT_FIRST?Nt(je.Selection.create(_t,je.Selection.FIRST,hn(qt),fn)):qt.getKind()===g.TokenKind.SELECT_LAST?Nt(je.Selection.create(_t,je.Selection.LAST,hn(qt),fn)):Nt(je.Selection.create(_t,je.Selection.ALL,hn(qt),fn)),!0}function fe(){for(var _t=[],qt=Qe();K(qt);)ye(),qt.kind!==g.TokenKind.DOT&&_t.push(Rt.Identifier.create(qt.stringValue(),hn(qt))),qt=Qe();_t.length||(qt===null&&ze(Z.length(),"OOD"),ze(qt.startPos,"NOT_EXPECTED_TOKEN","qualified ID",qt.getKind().toString().toLowerCase()));var fn=xt(_t[0].getStartPosition(),_t[_t.length-1].getEndPosition());return Dn.QualifiedIdentifier.create(fn,_t)}function K(_t){if(_t===null||_t.kind===g.TokenKind.LITERAL_STRING)return!1;if(_t.kind===g.TokenKind.DOT||_t.kind===g.TokenKind.IDENTIFIER)return!0;var qt=_t.stringValue();return qt&&qt.length&&bn.test(qt)}function he(_t){if(we(g.TokenKind.IDENTIFIER)){var qt=ye(),fn=Cn();return fn===null?(Nt(m.PropertyReference.create(_t,qt.stringValue(),hn(qt))),!0):(Nt(v.MethodReference.create(_t,qt.stringValue(),hn(qt),fn)),!0)}return!1}function Fe(){if(pt("new")){var _t=ye();if(we(g.TokenKind.RSQUARE))return Nt(m.PropertyReference.create(_t.stringValue(),hn(_t))),!0;var qt=fe(),fn=[];if(fn.push(qt),we(g.TokenKind.LSQUARE)){for(var On=[];Ke(g.TokenKind.LSQUARE,!0);)we(g.TokenKind.RSQUARE)?On.push(null):On.push(Me()),De(g.TokenKind.RSQUARE);kr()&&fn.push(ln()),Nt(Mt.ConstructorReference.create(hn(_t),On,fn))}else Wn(fn),Nt(Mt.ConstructorReference.create(hn(_t),fn));return!0}return!1}function Nt(_t){Ct.push(_t)}function ln(){return Ct.pop()}function pn(){var _t=Qe();if(_t===null)return!1;if(_t.getKind()===g.TokenKind.LITERAL_INT||_t.getKind()===g.TokenKind.LITERAL_LONG)Nt(f.NumberLiteral.create(parseInt(_t.stringValue(),10),hn(_t)));else if(_t.getKind()===g.TokenKind.LITERAL_REAL||_t.getKind()===g.TokenKind.LITERAL_REAL_FLOAT)Nt(f.NumberLiteral.create(parseFloat(_t.stringValue()),hn(_t)));else if(_t.getKind()===g.TokenKind.LITERAL_HEXINT||_t.getKind()===g.TokenKind.LITERAL_HEXLONG)Nt(f.NumberLiteral.create(parseInt(_t.stringValue(),16),hn(_t)));else if(pt("true"))Nt(x.BooleanLiteral.create(!0,hn(_t)));else if(pt("false"))Nt(x.BooleanLiteral.create(!1,hn(_t)));else if(_t.getKind()===g.TokenKind.LITERAL_STRING)Nt(p.StringLiteral.create(_t.stringValue(),hn(_t)));else return!1;return ye(),!0}function Yn(){if(we(g.TokenKind.LPAREN)){ye();var _t=Me();return De(g.TokenKind.RPAREN),Nt(_t),!0}else return!1}function ht(){var _t=Qe();if(_t===null)return null;if(_t.isNumericRelationalOperator())return _t;if(_t.isIdentifier()){var qt=_t.stringValue();if(qt.toLowerCase()==="instanceof")return _t.asInstanceOfToken();if(qt.toLowerCase()==="matches")return _t.asMatchesToken();if(qt.toLowerCase()==="between")return _t.asBetweenToken()}return null}function De(_t){var qt=ye();return qt===null&&ze(Z.length,"OOD"),qt.getKind()!==_t&&ze(qt.startPos,"NOT_EXPECTED_TOKEN",_t.toString().toLowerCase(),qt.getKind().toString().toLowerCase()),qt}function we(_t){return Ke(_t,!1)}function Ke(_t,qt){if(!Je())return!1;var fn=Qe();return fn.getKind()===_t?(qt&&Ee++,!0):_t===g.TokenKind.IDENTIFIER&&fn.getKind().ordinal()>=g.TokenKind.DIV.ordinal()&&fn.getKind().ordinal()<=g.TokenKind.NOT.ordinal()&&fn.data!==null}function be(){if(!Je())return!1;for(var _t=Qe(),qt=Array.prototype.slice.call(arguments),fn=0,On=qt.length;fn<On;fn+=1)if(_t.getKind()===qt[fn])return!0;return!1}function pt(_t){if(!Je())return!1;var qt=Qe();return qt.getKind()===g.TokenKind.IDENTIFIER&&qt.stringValue().toLowerCase()===_t.toLowerCase()}function We(){if(!Je())return!1;var _t=Qe();return _t.getKind()===g.TokenKind.SELECT||_t.getKind()===g.TokenKind.SELECT_FIRST||_t.getKind()===g.TokenKind.SELECT_LAST}function Je(){return Ee<me.length}function ye(){return Ee>=ke?null:me[Ee++]}function Qe(){return Ee>=ke?null:me[Ee]}function ze(_t,qt,fn,On){throw fn&&(qt+=` Expected: `+fn),On&&(qt+=` Actual: `+On),{name:"InternalParseException",message:"Error occurred while attempting to parse expression '"+Z+"' at position "+_t+". Message: "+qt}}function qe(_t){return _t.getKind().hasPayload()?_t.stringValue():_t.getKind().toString().toLowerCase()}function Pt(_t,qt,fn){zt(_t,qt),un(_t,fn)}function zt(_t,qt){qt===null&&ze(_t.startPos,"LEFT_OPERAND_PROBLEM")}function un(_t,qt){qt===null&&ze(_t.startPos,"RIGHT_OPERAND_PROBLEM")}function hn(_t){return(_t.startPos<<16)+_t.endPos}function xt(_t,qt){return(_t<<16)+qt}return{setConfiguration:_e,parse:ge}}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Tokenizer=void 0;var g=l(7),y=l(2),x=["DIV","EQ","GE","GT","LE","LT","MOD","NE","NOT"],f=[],p=1,h=2,E=4;function v(){var d;for(d=48;d<=57;d+=1)f[d]|=p|h;for(d=65;d<=70;d+=1)f[d]|=h;for(d=97;d<=102;d+=1)f[d]|=h;for(d=65;d<=90;d+=1)f[d]|=E;for(d=97;d<=122;d+=1)f[d]|=E}v();function m(d){var O=d,R=d+"\0",C=R.length,L=0,j=[];function I(){for(var Ze;L<C;)if(Ze=R[L],yt(Ze))re();else switch(Ze){case"+":se(y.TokenKind.INC)?te(y.TokenKind.INC):q(y.TokenKind.PLUS);break;case"_":re();break;case"-":se(y.TokenKind.DEC)?te(y.TokenKind.DEC):q(y.TokenKind.MINUS);break;case":":q(y.TokenKind.COLON);break;case".":q(y.TokenKind.DOT);break;case",":q(y.TokenKind.COMMA);break;case"*":q(y.TokenKind.STAR);break;case"/":q(y.TokenKind.DIV);break;case"%":q(y.TokenKind.MOD);break;case"(":q(y.TokenKind.LPAREN);break;case")":q(y.TokenKind.RPAREN);break;case"[":q(y.TokenKind.LSQUARE);break;case"#":q(y.TokenKind.HASH);break;case"]":q(y.TokenKind.RSQUARE);break;case"{":q(y.TokenKind.LCURLY);break;case"}":q(y.TokenKind.RCURLY);break;case"@":q(y.TokenKind.BEAN_REF);break;case"^":se(y.TokenKind.SELECT_FIRST)?te(y.TokenKind.SELECT_FIRST):q(y.TokenKind.POWER);break;case"!":se(y.TokenKind.NE)?te(y.TokenKind.NE):se(y.TokenKind.PROJECT)?te(y.TokenKind.PROJECT):q(y.TokenKind.NOT);break;case"=":se(y.TokenKind.EQ)?te(y.TokenKind.EQ):q(y.TokenKind.ASSIGN);break;case"&":if(!se(y.TokenKind.SYMBOLIC_AND))throw{name:"SpelParseException",message:"Missing character '&' in expression ("+O+") at position "+L};te(y.TokenKind.SYMBOLIC_AND);break;case"|":if(!se(y.TokenKind.SYMBOLIC_OR))throw{name:"SpelParseException",message:"Missing character '|' in expression ("+O+") at position "+L};te(y.TokenKind.SYMBOLIC_OR);break;case"?":se(y.TokenKind.SELECT)?te(y.TokenKind.SELECT):se(y.TokenKind.ELVIS)?te(y.TokenKind.ELVIS):se(y.TokenKind.SAFE_NAVI)?te(y.TokenKind.SAFE_NAVI):q(y.TokenKind.QMARK);break;case"$":se(y.TokenKind.SELECT_LAST)?te(y.TokenKind.SELECT_LAST):re();break;case">":se(y.TokenKind.GE)?te(y.TokenKind.GE):q(y.TokenKind.GT);break;case"<":se(y.TokenKind.LE)?te(y.TokenKind.LE):q(y.TokenKind.LT);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ee(Ze==="0");break;case" ":case" ":case"\r":case` `:L+=1;break;case"'":U();break;case'"':$();break;case"\0":L+=1;break;case"\\":throw{name:"SpelParseException",message:"Unexpected escape character in expression ("+O+") at position "+L};default:throw{name:"SpelParseException",message:"Cannot handle character '"+Ze+"' in expression ("+O+") at position "+L}}}function U(){for(var Ze=L,Ne=!1,it;!Ne;)if(L+=1,it=R[L],it==="'"&&(R[L+1]==="'"?L+=1:Ne=!0),it.charCodeAt(0)===0)throw{name:"SpelParseException",message:"Non-terminating quoted string in expression ("+O+") at position "+L};L+=1,j.push(new g.Token(y.TokenKind.LITERAL_STRING,ce(Ze,L),Ze,L))}function $(){for(var Ze=L,Ne=!1,it;!Ne;)if(L+=1,it=R[L],it==='"'&&(R[L+1]==='"'?L+=1:Ne=!0),it.charCodeAt(0)===0)throw{name:"SpelParseException",message:"Non-terminating double-quoted string in expression ("+O+") at position "+L};L+=1,j.push(new g.Token(y.TokenKind.LITERAL_STRING,ce(Ze,L),Ze,L))}function ee(Ze){var Ne=!1,it=L,Rt=R[L+1],Dn=Rt==="x"||Rt==="X",Mt,Wt,Tn,bn;if(Ze&&Dn){L=L+1;do L+=1;while(tt(R[L]));B("L","l")?(z(ce(it+2,L),!0,it,L),L+=1):z(ce(it+2,L),!1,it,L);return}do L+=1;while(je(R[L]));if(Rt=R[L],Rt==="."){Ne=!0,Mt=L;do L+=1;while(je(R[L]));if(L===Mt+1){L=Mt,Se(ce(it,L),!1,it,L);return}}if(Wt=L,B("L","l")){if(Ne)throw{name:"SpelParseException",message:"Real cannot be long in expression ("+O+") at position "+L};Se(ce(it,Wt),!0,it,Wt),L+=1}else if(X(R[L])){Ne=!0,L+=1,Tn=R[L],Te(Tn)&&(L+=1);do L+=1;while(je(R[L]));bn=!1,ue(R[L])?(bn=!0,L+=1,Wt=L):ie(R[L])&&(L+=1,Wt=L),Q(ce(it,L),bn,it,L)}else Rt=R[L],bn=!1,ue(Rt)?(Ne=!0,bn=!0,L+=1,Wt=L):ie(Rt)&&(Ne=!0,L+=1,Wt=L),Ne?Q(ce(it,Wt),bn,it,Wt):Se(ce(it,Wt),!1,it,Wt)}function re(){var Ze=L,Ne,it,Rt;do L+=1;while(T(R[L]));if(Ne=ce(Ze,L),(L-Ze===2||L-Ze===3)&&(it=Ne.toUpperCase(),Rt=x.indexOf(it),Rt>=0)){A(y.TokenKind.valueOf(it),Ze,Ne);return}j.push(new g.Token(y.TokenKind.IDENTIFIER,Ne.replace("\0",""),Ze,L))}function Se(Ze,Ne,it,Rt){Ne?j.push(new g.Token(y.TokenKind.LITERAL_LONG,Ze,it,Rt)):j.push(new g.Token(y.TokenKind.LITERAL_INT,Ze,it,Rt))}function z(Ze,Ne,it,Rt){if(Ze.length===0)throw Ne?{name:"SpelParseException",message:"Not a long in expression ("+O+") at position "+L}:{name:"SpelParseException",message:"Not an int in expression ("+O+") at position "+L};Ne?j.push(new g.Token(y.TokenKind.LITERAL_HEXLONG,Ze,it,Rt)):j.push(new g.Token(y.TokenKind.LITERAL_HEXINT,Ze,it,Rt))}function Q(Ze,Ne,it,Rt){Ne?j.push(new g.Token(y.TokenKind.LITERAL_REAL_FLOAT,Ze,it,Rt)):j.push(new g.Token(y.TokenKind.LITERAL_REAL,Ze,it,Rt))}function ce(Ze,Ne){return R.substring(Ze,Ne)}function se(Ze){return Ze.tokenChars.length===2&&R[L]===Ze.tokenChars[0]?R[L+1]===Ze.tokenChars[1]:!1}function q(Ze){j.push(new g.Token(Ze,null,L,L+1)),L+=1}function te(Ze){j.push(new g.Token(Ze,null,L,L+2)),L+=2}function A(Ze,Ne,it){j.push(new g.Token(Ze,it,Ne,Ne+Ze.getLength()))}function T(Ze){return yt(Ze)||je(Ze)||Ze==="_"||Ze==="$"}function B(Ze,Ne){var it=R[L];return it===Ze||it===Ne}function X(Ze){return Ze==="e"||Ze==="E"}function ue(Ze){return Ze==="f"||Ze==="F"}function ie(Ze){return Ze==="d"||Ze==="D"}function Te(Ze){return Ze==="+"||Ze==="-"}function je(Ze){return Ze.charCodeAt(0)>255?!1:(f[Ze.charCodeAt(0)]&p)!==0}function yt(Ze){return Ze.charCodeAt(0)>255?!1:(f[Ze.charCodeAt(0)]&E)!==0}function tt(Ze){return Ze.charCodeAt(0)>255?!1:(f[Ze.charCodeAt(0)]&h)!==0}return I(),j}var S=u.Tokenizer={tokenize:m}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Token=void 0;var g=l(2);function y(x,f,p,h){this.kind=x,this.startPos=p,this.endPos=h,f&&(this.data=f)}y.prototype.getKind=function(){return this.kind},y.prototype.toString=function(){var x="[";return x+=this.kind.toString(),this.kind.hasPayload()&&(x+=":"+this.data),x+="]",x+="("+this.startPos+","+this.endPos+")",x},y.prototype.isIdentifier=function(){return this.kind===g.TokenKind.IDENTIFIER},y.prototype.isNumericRelationalOperator=function(){return this.kind===g.TokenKind.GT||this.kind===g.TokenKind.GE||this.kind===g.TokenKind.LT||this.kind===g.TokenKind.LE||this.kind===g.TokenKind.EQ||this.kind===g.TokenKind.NE},y.prototype.stringValue=function(){return this.data},y.prototype.asInstanceOfToken=function(){return new y(g.TokenKind.INSTANCEOF,this.startPos,this.endPos)},y.prototype.asMatchesToken=function(){return new y(g.TokenKind.MATCHES,this.startPos,this.endPos)},y.prototype.asBetweenToken=function(){return new y(g.TokenKind.BETWEEN,this.startPos,this.endPos)},y.prototype.getStartPosition=function(){return this.startPos},y.prototype.getEndPosition=function(){return this.endPos},u.Token=y},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.BooleanLiteral=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("boolean",p);return h.getValue=function(){return f},h.setValue=function(E){return f=E},h}var x=u.BooleanLiteral={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.NumberLiteral=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("number",p);return h.getValue=function(){return f},h.setValue=function(E){return f=E},h}var x=u.NumberLiteral={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.StringLiteral=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("string",p);function E(v){return(v[0]==="'"&&v[v.length-1]==="'"||v[0]==='"'&&v[v.length-1]==='"')&&(v=v.substring(1,v.length-1)),v.replace(/''/g,"'").replace(/""/g,'"')}return f=E(f),h.getValue=function(){return f},h.setValue=function(v){return f=v},h}var x=u.StringLiteral={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.NullLiteral=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("null",p);return h.getValue=function(){return null},h}var x=u.NullLiteral={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.FunctionReference=void 0;var g=l(0),y=l(1);function x(p,h,E){var v=g.SpelNode.create("function",h);return v.getRaw=function(){return{functionName:p,args:E}},v.getValue=function(m){var S=m.locals||{},d=m.rootContext,O=[];if(E.forEach(function(R){var C=m.activeContext;m.activeContext=new y.Stack,m.activeContext.push(m.rootContext),O.push(R.getValue(m)),m.activeContext=C}),S[p])return S[p].apply(d,O);throw{name:"FunctionDoesNotExistException",message:"Function '"+p+"' does not exist."}},v}var f=u.FunctionReference={create:x}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.MethodReference=void 0;var g=l(0),y=l(1);function x(p,h,E,v){var m=g.SpelNode.create("method",E);return m.getRaw=function(){return{methodName:h,args:v}},m.getValue=function(S){var d=S.activeContext.peek(),O=[],R;if(!d)throw{name:"ContextDoesNotExistException",message:"Attempting to look up property '"+h+"' for an undefined context."};function C(L){if(L==null){if(p)return null;throw{name:"NullPointerException",message:"Method "+h+" does not exist."}}return L}if(v.forEach(function(L){var j=S.activeContext;S.activeContext=new y.Stack,S.activeContext.push(S.rootContext),O.push(L.getValue(S)),S.activeContext=j}),h.substr(0,3)==="get"&&!d[h])return C(d[h.charAt(3).toLowerCase()+h.substring(4)]);if(h.substr(0,3)==="set"&&!d[h])return d[h.charAt(3).toLowerCase()+h.substring(4)]=O[0];if(Array.isArray(d)){if(h==="size")return d.length;if(h==="contains")return d.includes(O[0])}return R=C(d[h]),R?R.apply(d,O):null},m}var f=u.MethodReference={create:x}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PropertyReference=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("property",h);return E.getRaw=function(){return p},E.getValue=function(v){var m=v.activeContext.peek();if(!m){if(f)return null;throw{name:"ContextDoesNotExistException",message:"Attempting to look up property '"+p+"' for an undefined context."}}if(m[p]===void 0||m[p]===null){if(f)return null;if(p==="size"&&Array.isArray(m))return m.length;throw{name:"NullPointerException",message:"Property '"+p+"' does not exist."}}return m[p]},E.setValue=function(v,m){var S=m.activeContext.peek();if(!S)throw{name:"ContextDoesNotExistException",message:"Attempting to assign property '"+p+"' for an undefined context."};return S[p]=v},E.getName=function(){return p},E}var x=u.PropertyReference={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.VariableReference=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("variable",p);return h.getRaw=function(){return f},h.getValue=function(E){var v=E.activeContext.peek(),m=E.locals;if(!v)throw{name:"ContextDoesNotExistException",message:"Attempting to look up variable '"+f+"' for an undefined context."};return f==="this"?v:f==="root"?E.rootContext:m[f]},h.setValue=function(E,v){var m=v.locals;return m[f]=E},h}var x=u.VariableReference={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CompoundExpression=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create.apply(null,["compound",f].concat(p));function E(v){var m=h.getChildren().length,S;for(S=0;S<m;S+=1)h.getChildren()[S].getType()==="indexer"?v.activeContext.push(v.activeContext.peek()[h.getChildren()[S].getValue(v)]):v.activeContext.push(h.getChildren()[S].getValue(v));return function(){for(S=0;S<m;S+=1)v.activeContext.pop()}}return h.getValue=function(v){var m=v.activeContext.peek(),S;if(!m)throw{name:"ContextDoesNotExistException",message:"Attempting to evaluate compound expression with an undefined context."};var d=E(v);return S=v.activeContext.peek(),d(),S},h.setValue=function(v,m){var S=E(m),d=h.getChildren().length;return m.activeContext.pop(),v=h.getChildren()[d-1].setValue(v,m),m.activeContext.push(null),S(),v},h}var x=u.CompoundExpression={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Indexer=void 0;var g=l(0),y=l(1);function x(p,h){var E=g.SpelNode.create.apply(null,["indexer",p].concat(h));return E.getValue=function(v){var m=v.activeContext,S,d=E.getChildren().length,O,R;if(v.activeContext=new y.Stack,v.activeContext.push(v.rootContext),S=v.activeContext.peek(),!S)throw{name:"ContextDoesNotExistException",message:"Attempting to evaluate compound expression with an undefined context."};for(O=0;O<d;O+=1)v.activeContext.push(E.getChildren()[O].getValue(v));for(R=v.activeContext.peek(),O=0;O<d;O+=1)v.activeContext.pop();return v.activeContext=m,R},E}var f=u.Indexer={create:x}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Assign=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("assign",f,p,h);return E.getValue=function(v){var m=v.activeContext.peek();if(!m)throw{name:"ContextDoesNotExistException",message:"Attempting to assign property '"+p.getValue(v)+"' for an undefined context."};return p.setValue(h.getValue(v),v)},E}var x=u.Assign={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpEQ=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-eq",f,p,h);return E.getValue=function(v){return p.getValue(v)===h.getValue(v)},E}var x=u.OpEQ={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpNE=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-ne",f,p,h);return E.getValue=function(v){return p.getValue(v)!==h.getValue(v)},E}var x=u.OpNE={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpGE=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-ge",f,p,h);return E.getValue=function(v){return p.getValue(v)>=h.getValue(v)},E}var x=u.OpGE={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpGT=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-gt",f,p,h);return E.getValue=function(v){return p.getValue(v)>h.getValue(v)},E}var x=u.OpGT={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpLE=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-le",f,p,h);return E.getValue=function(v){return p.getValue(v)<=h.getValue(v)},E}var x=u.OpLE={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpLT=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-lt",f,p,h);return E.getValue=function(v){return p.getValue(v)<h.getValue(v)},E}var x=u.OpLT={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpPlus=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-plus",f,p,h);return E.getValue=function(v){return h?p.getValue(v)+h.getValue(v):+p.getValue(v)},E}var x=u.OpPlus={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpMinus=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-minus",f,p,h);return E.getValue=function(v){return h?p.getValue(v)-h.getValue(v):-p.getValue(v)},E}var x=u.OpMinus={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpMultiply=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-multiply",f,p,h);return E.getValue=function(v){var m=p.getValue(v),S=h.getValue(v);if(typeof m=="number"&&typeof S=="number")return m*S;if(typeof m=="string"&&typeof S=="number"){for(var d="",O=0;O<S;O+=1)d+=m;return d}return null},E}var x=u.OpMultiply={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpDivide=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-divide",f,p,h);return E.getValue=function(v){return p.getValue(v)/h.getValue(v)},E}var x=u.OpDivide={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpModulus=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-modulus",f,p,h);return E.getValue=function(v){return p.getValue(v)%h.getValue(v)},E}var x=u.OpModulus={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpPower=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-power",f,p,h);return E.getValue=function(v){return Math.pow(p.getValue(v),h.getValue(v))},E}var x=u.OpPower={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpInc=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-inc",f,h);return E.getValue=function(v){var m=h.getValue(v);return h.setValue(m+1,v),p?m:m+1},E}var x=u.OpInc={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpDec=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-dec",f,h);return E.getValue=function(v){var m=h.getValue(v);return h.setValue(m-1,v),p?m:m-1},E}var x=u.OpDec={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpNot=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("op-not",f,p);return h.getValue=function(E){return!p.getValue(E)},h}var x=u.OpNot={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpAnd=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-and",f,p,h);return E.getValue=function(v){return!!p.getValue(v)&&!!h.getValue(v)},E}var x=u.OpAnd={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpOr=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("op-or",f,p,h);return E.getValue=function(v){return!!p.getValue(v)||!!h.getValue(v)},E}var x=u.OpOr={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpMatches=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("matches",f,p,h);return E.getValue=function(v){var m=p.getValue(v),S=h.getValue(v);try{var d=new RegExp(S);return!!d.exec(m)}catch(O){throw{name:"EvaluationException",message:O.toString()}}},E}var x=u.OpMatches={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Ternary=void 0;var g=l(0);function y(f,p,h,E){var v=g.SpelNode.create("ternary",f,p,h,E);return v.getValue=function(m){return p.getValue(m)?h.getValue(m):E.getValue(m)},v}var x=u.Ternary={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Elvis=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("elvis",f,p,h);return E.getValue=function(v){return p.getValue(v)!==null?p.getValue(v):h.getValue(v)},E}var x=u.Elvis={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.InlineList=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("list",f),E=[].concat(p||[]);return h.getRaw=function(){return E},h.getValue=function(v){return E.map(function(m){return m.getValue(v)})},h}var x=u.InlineList={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.InlineMap=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("map",f),E=[].concat(p||[]);return h.getValue=function(v){var m=!0,S=null,d={};return E.forEach(function(O){m?O.getType()==="property"?S=O.getName():S=O.getValue(v):d[S]=O.getValue(v),m=!m}),d},h}var x=u.InlineMap={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Selection=void 0;var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},y=l(0);function x(v,m,S){var d=!1;return S.activeContext.push(v),d=m.getValue(S),S.activeContext.pop(),d}function f(v,m,S,d){var O=v.filter(function(R){return x(R,S,d)});switch(m){case"ALL":return O;case"FIRST":return O[0]||null;case"LAST":return O.length?O[O.length-1]:null}}function p(v,m,S,d){var O={},R,C,L=[],j={};for(C in v)v.hasOwnProperty(C)&&(R={key:C,value:v[C]},x(R,S,d)&&L.push(R));switch(m){case"ALL":return L.forEach(function(I){O[I.key]=I.value}),O;case"FIRST":return L.length?(j[L[0].key]=L[0].value,j):null;case"LAST":return L.length?(j[L[L.length-1].key]=L[L.length-1].value,j):null}L.forEach(function(I){O[I.key]=I.value})}function h(v,m,S,d){var O=y.SpelNode.create("selection",S,d);return O.getValue=function(R){var C=R.activeContext.peek();if(C){if(Array.isArray(C))return f(C,m,d,R);if((typeof C>"u"?"undefined":g(C))==="object")return p(C,m,d,R)}return null},O}var E=u.Selection={create:h,FIRST:"FIRST",LAST:"LAST",ALL:"ALL"}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Projection=void 0;var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},y=l(0);function x(h,E,v){return h.map(function(m){var S;return v.activeContext.push(m),S=E.getValue(v),v.activeContext.pop(),S})}function f(h,E,v){var m=y.SpelNode.create("projection",E,v);return m.getValue=function(S){var d=S.activeContext.peek(),O=[],R;if(Array.isArray(d))return x(d,v,S);if((typeof d>"u"?"undefined":g(d))==="object"){for(R in d)d.hasOwnProperty(R)&&O.push(d[R]);return x(O,v,S)}return null},m}var p=u.Projection={create:f}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpInstanceof=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("instanceof",f,p,h);return E.getValue=function(v){throw{name:"MethodNotImplementedException",message:"OpInstanceOf: Not implemented"}},E}var x=u.OpInstanceof={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.OpBetween=void 0;var g=l(0);function y(f,p,h){var E=g.SpelNode.create("between",f,p,h);return E.getValue=function(v){throw{name:"MethodNotImplementedException",message:"OpBetween: Not implemented"}},E}var x=u.OpBetween={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TypeReference=void 0;var g=l(0);function y(f,E,h){var E=g.SpelNode.create("typeref",f,E);return E.getValue=function(v){throw{name:"MethodNotImplementedException",message:"TypeReference: Not implemented"}},E}var x=u.TypeReference={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.BeanReference=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("beanref",f);return h.getValue=function(E){throw{name:"MethodNotImplementedException",message:"BeanReference: Not implemented"}},h}var x=u.BeanReference={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Identifier=void 0;var g=l(0);function y(f,p){var h=g.SpelNode.create("identifier",p);return h.getRaw=function(){return f},h.getValue=function(E){throw{name:"MethodNotImplementedException",message:"Identifier: Not implemented"}},h}var x=u.Identifier={create:y}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.QualifiedIdentifier=void 0;var g=l(0);function y(p){if(Array.isArray(p)){for(var h=0,E=Array(p.length);h<p.length;h++)E[h]=p[h];return E}else return Array.from(p)}function x(p,h){var E=g.SpelNode.create.apply(g.SpelNode,["qualifiedidentifier",p].concat(y(h)));return E.getRaw=function(){return h.map(function(v){return v.getRaw()})},E.getValue=function(v){throw{name:"MethodNotImplementedException",message:"QualifiedIdentifier: Not implemented"}},E}var f=u.QualifiedIdentifier={create:x}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConstructorReference=void 0;var g=l(0),y=l(1);function x(E){if(Array.isArray(E)){for(var v=0,m=Array(E.length);v<E.length;v++)m[v]=E[v];return m}else return Array.from(E)}function f(E){return Array.isArray(E)?E:Array.from(E)}function p(E,v,m){var S=m!==void 0,d;S?d=v.length&&v[0]&&v[0].getType()==="number"?v[0].getValue():null:(m=v,v=void 0);var O=m,R=f(O),C=R[0],L=R.slice(1),j=g.SpelNode.create.apply(g.SpelNode,["constructorref",E].concat(x(m)));return j.getRaw=function(){return d},j.getValue=function(I){if(S&&L.length<=1){var U=[];return L.forEach(function($){var ee=I.activeContext;I.activeContext=new y.Stack,I.activeContext.push(I.rootContext),U.push($.getValue(I)),I.activeContext=ee}),L.length===1?U[0]:d?new Array(d):[]}throw{name:"MethodNotImplementedException",message:"ConstructorReference: Not implemented"}},j}var h=u.ConstructorReference={create:p}},function(w,u,l){"use strict";Object.defineProperty(u,"__esModule",{value:!0});function g(x,f){var p={};return p.authentication=x||{},p.principal=f||{},p.hasRole=function(h){var E=!1;return!h||!p.authentication&&!Array.isArray(p.authentication.authorities)?!1:(p.authentication.authorities.forEach(function(v){v.authority.toLowerCase()===h.toLowerCase()&&(E=!0)}),E)},p.hasPermission=function(){var h=Array.prototype.slice.call(arguments);if(h.length===1)return p.hasRole(h[0])},p}var y=u.StandardContext={create:g}}])})},21762:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.debounceTime=void 0;var l=u(62326),g=u(65212),y=u(17214);function x(f,p){return p===void 0&&(p=l.asyncScheduler),g.operate(function(h,E){var v=null,m=null,S=null,d=function(){if(v){v.unsubscribe(),v=null;var R=m;m=null,E.next(R)}};function O(){var R=S+f,C=p.now();if(C<R){v=this.schedule(void 0,R-C),E.add(v);return}d()}h.subscribe(y.createOperatorSubscriber(E,function(R){m=R,S=p.now(),v||(v=p.schedule(O,f),E.add(v))},function(){d(),E.complete()},void 0,function(){m=v=null}))})}w.debounceTime=x},21873:(Ge,w,u)=>{var l=u(23212),g=u(71673),y=u(31749),x=u(37887),f=u(51479),p=u(30541),h=u(77691);function E(){"use strict";var v=g(),m=v.m(E),S=(Object.getPrototypeOf?Object.getPrototypeOf(m):m.__proto__).constructor;function d(C){var L=typeof C=="function"&&C.constructor;return!!L&&(L===S||(L.displayName||L.name)==="GeneratorFunction")}var O={throw:1,return:2,break:3,continue:3};function R(C){var L,j;return function(I){L||(L={stop:function(){return j(I.a,2)},catch:function(){return I.v},abrupt:function($,ee){return j(I.a,O[$],ee)},delegateYield:function($,ee,re){return L.resultName=ee,j(I.d,h($),re)},finish:function($){return j(I.f,$)}},j=function($,ee,re){I.p=L.prev,I.n=L.next;try{return $(ee,re)}finally{L.next=I.n}}),L.resultName&&(L[L.resultName]=I.v,L.resultName=void 0),L.sent=I.v,L.next=I.n;try{return C.call(this,L)}finally{I.p=L.prev,I.n=L.next}}}return(Ge.exports=E=function(){return{wrap:function(j,I,U,$){return v.w(R(j),I,U,$&&$.reverse())},isGeneratorFunction:d,mark:v.m,awrap:function(j,I){return new l(j,I)},AsyncIterator:f,async:function(j,I,U,$,ee){return(d(I)?x:y)(R(j),I,U,$,ee)},keys:p,values:h}},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports)()}Ge.exports=E,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},21875:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.animationFrames=void 0;var l=u(48051),g=u(22931),y=u(35726);function x(h){return h?f(h):p}w.animationFrames=x;function f(h){return new l.Observable(function(E){var v=h||g.performanceTimestampProvider,m=v.now(),S=0,d=function(){E.closed||(S=y.animationFrameProvider.requestAnimationFrame(function(O){S=0;var R=v.now();E.next({timestamp:h?R:O,elapsed:R-m}),d()}))};return d(),function(){S&&y.animationFrameProvider.cancelAnimationFrame(S)}})}var p=f()},21946:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.bindNodeCallback=void 0;var l=u(17474);function g(y,x,f){return l.bindCallbackInternals(!0,y,x,f)}w.bindNodeCallback=g},22044:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.distinctUntilChanged=void 0;var l=u(87699),g=u(65212),y=u(17214);function x(p,h){return h===void 0&&(h=l.identity),p=p??f,g.operate(function(E,v){var m,S=!0;E.subscribe(y.createOperatorSubscriber(v,function(d){var O=h(d);(S||!p(m,O))&&(S=!1,m=O,v.next(d))}))})}w.distinctUntilChanged=x;function f(p,h){return p===h}},22105:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.asap=w.asapScheduler=void 0;var l=u(78051),g=u(23952);w.asapScheduler=new g.AsapScheduler(l.AsapAction),w.asap=w.asapScheduler},22162:(Ge,w,u)=>{"use strict";/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l=u(96540),g=u(19888);function y(m,S){return m===S&&(m!==0||1/m===1/S)||m!==m&&S!==S}var x=typeof Object.is=="function"?Object.is:y,f=g.useSyncExternalStore,p=l.useRef,h=l.useEffect,E=l.useMemo,v=l.useDebugValue;w.useSyncExternalStoreWithSelector=function(m,S,d,O,R){var C=p(null);if(C.current===null){var L={hasValue:!1,value:null};C.current=L}else L=C.current;C=E(function(){function I(Se){if(!U){if(U=!0,$=Se,Se=O(Se),R!==void 0&&L.hasValue){var z=L.value;if(R(z,Se))return ee=z}return ee=Se}if(z=ee,x($,Se))return z;var Q=O(Se);return R!==void 0&&R(z,Q)?($=Se,z):($=Se,ee=Q)}var U=!1,$,ee,re=d===void 0?null:d;return[function(){return I(S())},re===null?void 0:function(){return I(re())}]},[S,d,O,R]);var j=f(m,C[0],C[1]);return h(function(){L.hasValue=!0,L.value=j},[j]),v(j),j}},22331:(Ge,w,u)=>{var l=u(87133),g=u(77556),y=u(61489),x=u(13222);function f(p,h,E){return p=x(p),E=E==null?0:l(y(E),0,p.length),h=g(h),p.slice(E,E+h.length)==h}Ge.exports=f},22589:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540);function g(){var f=(0,l.useRef)(!0);return f.current?(f.current=!1,!0):f.current}var y=function(f,p){var h=g();(0,l.useEffect)(function(){if(!h)return f()},p)};const x=y},22616:(Ge,w,u)=>{"use strict";u.d(w,{J:()=>y,p:()=>x});var l=u(66514),g=u(52845);function y(f,p,h,E,v,m,S){let d,O,R,C,L,j,I;const U=v[m+1],$=[];for(let Se=0,z=h.length;Se<z;++Se){const Q=h[Se];for(C=f[Q-E],j=f[Q-E+1],d=p;d<Q;d+=E)L=f[d],I=f[d+1],(U<=j&&I<=U||j<=U&&U<=I)&&(R=(U-j)/(I-j)*(L-C)+C,$.push(R)),C=L,j=I}let ee=NaN,re=-1/0;for($.sort(l.V_),C=$[0],d=1,O=$.length;d<O;++d){L=$[d];const Se=Math.abs(L-C);Se>re&&(R=(C+L)/2,(0,g.zb)(f,p,h,E,R,U)&&(ee=R,re=Se)),C=L}return isNaN(ee)&&(ee=v[m]),S?(S.push(ee,U,re),S):[ee,U,re]}function x(f,p,h,E,v){let m=[];for(let S=0,d=h.length;S<d;++S){const O=h[S];m=y(f,p,O,E,v,2*S,m),p=O[O.length-1]}return m}},22799:(Ge,w)=>{"use strict";var u;/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l=Symbol.for("react.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),E=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function L(j){if(typeof j=="object"&&j!==null){var I=j.$$typeof;switch(I){case l:switch(j=j.type,j){case y:case f:case x:case m:case S:return j;default:switch(j=j&&j.$$typeof,j){case E:case h:case v:case O:case d:case p:return j;default:return I}}case g:return I}}}u=h,u=p,u=l,w.ForwardRef=v,u=y,u=O,u=d,u=g,u=f,u=x,u=m,u=S,u=function(){return!1},u=function(){return!1},w.isContextConsumer=function(j){return L(j)===h},u=function(j){return L(j)===p},u=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===l},u=function(j){return L(j)===v},u=function(j){return L(j)===y},u=function(j){return L(j)===O},w.isMemo=function(j){return L(j)===d},u=function(j){return L(j)===g},u=function(j){return L(j)===f},u=function(j){return L(j)===x},u=function(j){return L(j)===m},u=function(j){return L(j)===S},u=function(j){return typeof j=="string"||typeof j=="function"||j===y||j===f||j===x||j===m||j===S||j===R||typeof j=="object"&&j!==null&&(j.$$typeof===O||j.$$typeof===d||j.$$typeof===p||j.$$typeof===h||j.$$typeof===v||j.$$typeof===C||j.getModuleId!==void 0)},u=L},22863:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(d){for(var O,R=1,C=arguments.length;R<C;R++){O=arguments[R];for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(d[L]=O[L])}return d},l.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(d,O,R,C){C===void 0&&(C=R),Object.defineProperty(d,C,{enumerable:!0,get:function(){return O[R]}})}:function(d,O,R,C){C===void 0&&(C=R),d[C]=O[R]}),y=this&&this.__setModuleDefault||(Object.create?function(d,O){Object.defineProperty(d,"default",{enumerable:!0,value:O})}:function(d,O){d.default=O}),x=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var O={};if(d!=null)for(var R in d)R!=="default"&&Object.prototype.hasOwnProperty.call(d,R)&&g(O,d,R);return y(O,d),O};Object.defineProperty(w,"__esModule",{value:!0}),w.KBarResults=void 0;var f=x(u(96540)),p=u(35822),h=u(34933),E=u(4122),v=u(65178),m=0,S=function(d){var O=f.useRef(null),R=f.useRef(null),C=f.useRef(d.items);C.current=d.items;var L=(0,p.useVirtual)({size:C.current.length,parentRef:R}),j=(0,E.useKBar)(function(ce){return{search:ce.searchQuery,currentRootActionId:ce.currentRootActionId,activeIndex:ce.activeIndex}}),I=j.query,U=j.search,$=j.currentRootActionId,ee=j.activeIndex,re=j.options;f.useEffect(function(){var ce=function(se){var q;se.isComposing||(se.key==="ArrowUp"||se.ctrlKey&&se.key==="p"?(se.preventDefault(),se.stopPropagation(),I.setActiveIndex(function(te){var A=te>m?te-1:te;if(typeof C.current[A]=="string"){if(A===0)return te;A-=1}return A})):se.key==="ArrowDown"||se.ctrlKey&&se.key==="n"?(se.preventDefault(),se.stopPropagation(),I.setActiveIndex(function(te){var A=te<C.current.length-1?te+1:te;if(typeof C.current[A]=="string"){if(A===C.current.length-1)return te;A+=1}return A})):se.key==="Enter"&&(se.preventDefault(),se.stopPropagation(),(q=O.current)===null||q===void 0||q.click()))};return window.addEventListener("keydown",ce,{capture:!0}),function(){return window.removeEventListener("keydown",ce,{capture:!0})}},[I]);var Se=L.scrollToIndex;f.useEffect(function(){Se(ee,{align:ee<=1?"end":"auto"})},[ee,Se]),f.useEffect(function(){I.setActiveIndex(typeof C.current[m]=="string"?m+1:m)},[U,$,I]),f.useEffect(function(){var ce=ee,se=C.current.length-1;if(ce>se&&se>=0){var q=se;typeof C.current[q]=="string"&&q>0&&(q-=1),I.setActiveIndex(q)}else if(ce<=se&&typeof C.current[ce]=="string"){var q=ce+1;(q>se||typeof C.current[q]=="string")&&(q=ce-1),q>=0&&q<=se&&typeof C.current[q]!="string"&&I.setActiveIndex(q)}},[d.items,ee,I]);var z=f.useCallback(function(ce){var se,q;typeof ce!="string"&&(ce.command?(ce.command.perform(ce),I.toggle()):(I.setSearch(""),I.setCurrentRootAction(ce.id)),(q=(se=re.callbacks)===null||se===void 0?void 0:se.onSelectAction)===null||q===void 0||q.call(se,ce))},[I,re]),Q=(0,v.usePointerMovedSinceMount)();return f.createElement("div",{ref:R,style:{maxHeight:d.maxHeight||400,position:"relative",overflow:"auto"}},f.createElement("div",{role:"listbox",id:h.KBAR_LISTBOX,style:{height:L.totalSize+"px",width:"100%"}},L.virtualItems.map(function(ce){var se=C.current[ce.index],q=typeof se!="string"&&{onPointerMove:function(){return Q&&ee!==ce.index&&I.setActiveIndex(ce.index)},onPointerDown:function(){return I.setActiveIndex(ce.index)},onClick:function(){return z(se)}},te=ce.index===ee;return f.createElement("div",l({ref:te?O:null,id:(0,h.getListboxItemId)(ce.index),role:"option","aria-selected":te,key:ce.index,style:{position:"absolute",top:0,left:0,width:"100%",transform:"translateY("+ce.start+"px)"}},q),f.cloneElement(d.onRender({item:se,active:te}),{ref:ce.measureRef}))})))};w.KBarResults=S},22931:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.performanceTimestampProvider=void 0,w.performanceTimestampProvider={now:function(){return(w.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},23023:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.DurationRecordSign=g;var l=u(11437);function g(y){for(var x=0,f=l.TABLE_1;x<f.length;x++){var p=f[x];if(y[p]<0)return-1;if(y[p]>0)return 1}return 0}},23079:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.skip=void 0;var l=u(85934);function g(y){return l.filter(function(x,f){return y<=f})}w.skip=g},23181:(Ge,w,u)=>{var l=u(85508),g=l();Ge.exports=g},23212:Ge=>{function w(u,l){this.v=u,this.k=l}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},23257:(Ge,w,u)=>{Ge.exports=function(l){var g={};function y(x){if(g[x])return g[x].exports;var f=g[x]={exports:{},id:x,loaded:!1};return l[x].call(f.exports,f,f.exports,y),f.loaded=!0,f.exports}return y.m=l,y.c=g,y.p="",y(0)}([function(l,g,y){l.exports=y(1)},function(l,g,y){"use strict";Object.defineProperty(g,"__esModule",{value:!0});function x(h){return h&&h.__esModule?h:{default:h}}var f=y(2),p=x(f);g.default=p.default,l.exports=g.default},function(l,g,y){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var x=Object.assign||function(d){for(var O=1;O<arguments.length;O++){var R=arguments[O];for(var C in R)Object.prototype.hasOwnProperty.call(R,C)&&(d[C]=R[C])}return d};g.default=S;function f(d){return d&&d.__esModule?d:{default:d}}function p(d,O){var R={};for(var C in d)O.indexOf(C)>=0||Object.prototype.hasOwnProperty.call(d,C)&&(R[C]=d[C]);return R}var h=y(3),E=y(4),v=y(5),m=f(v);function S(d){var O=d.activeClassName,R=O===void 0?"":O,C=d.activeIndex,L=C===void 0?-1:C,j=d.activeStyle,I=d.autoEscape,U=d.caseSensitive,$=U===void 0?!1:U,ee=d.className,re=d.findChunks,Se=d.highlightClassName,z=Se===void 0?"":Se,Q=d.highlightStyle,ce=Q===void 0?{}:Q,se=d.highlightTag,q=se===void 0?"mark":se,te=d.sanitize,A=d.searchWords,T=d.textToHighlight,B=d.unhighlightTag,X=B===void 0?"span":B,ue=d.unhighlightClassName,ie=ue===void 0?"":ue,Te=d.unhighlightStyle,je=p(d,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),yt=(0,h.findAll)({autoEscape:I,caseSensitive:$,findChunks:re,sanitize:te,searchWords:A,textToHighlight:T}),tt=q,Ze=-1,Ne="",it=void 0,Rt=function(Wt){var Tn={};for(var bn in Wt)Tn[bn.toLowerCase()]=Wt[bn];return Tn},Dn=(0,m.default)(Rt);return(0,E.createElement)("span",x({className:ee},je,{children:yt.map(function(Mt,Wt){var Tn=T.substr(Mt.start,Mt.end-Mt.start);if(Mt.highlight){Ze++;var bn=void 0;typeof z=="object"?$?bn=z[Tn]:(z=Dn(z),bn=z[Tn.toLowerCase()]):bn=z;var $t=Ze===+L;Ne=bn+" "+($t?R:""),it=$t===!0&&j!=null?Object.assign({},ce,j):ce;var Ct={children:Tn,className:Ne,key:Wt,style:it};return typeof tt!="string"&&(Ct.highlightIndex=Ze),(0,E.createElement)(tt,Ct)}else return(0,E.createElement)(X,{children:Tn,className:ie,key:Wt,style:Te})})}))}l.exports=g.default},function(l,g){l.exports=function(y){var x={};function f(p){if(x[p])return x[p].exports;var h=x[p]={exports:{},id:p,loaded:!1};return y[p].call(h.exports,h,h.exports,f),h.loaded=!0,h.exports}return f.m=y,f.c=x,f.p="",f(0)}([function(y,x,f){y.exports=f(1)},function(y,x,f){"use strict";Object.defineProperty(x,"__esModule",{value:!0});var p=f(2);Object.defineProperty(x,"combineChunks",{enumerable:!0,get:function(){return p.combineChunks}}),Object.defineProperty(x,"fillInChunks",{enumerable:!0,get:function(){return p.fillInChunks}}),Object.defineProperty(x,"findAll",{enumerable:!0,get:function(){return p.findAll}}),Object.defineProperty(x,"findChunks",{enumerable:!0,get:function(){return p.findChunks}})},function(y,x){"use strict";Object.defineProperty(x,"__esModule",{value:!0});var f=x.findAll=function(d){var O=d.autoEscape,R=d.caseSensitive,C=R===void 0?!1:R,L=d.findChunks,j=L===void 0?h:L,I=d.sanitize,U=d.searchWords,$=d.textToHighlight;return E({chunksToHighlight:p({chunks:j({autoEscape:O,caseSensitive:C,sanitize:I,searchWords:U,textToHighlight:$})}),totalLength:$?$.length:0})},p=x.combineChunks=function(d){var O=d.chunks;return O=O.sort(function(R,C){return R.start-C.start}).reduce(function(R,C){if(R.length===0)return[C];var L=R.pop();if(C.start<=L.end){var j=Math.max(L.end,C.end);R.push({start:L.start,end:j})}else R.push(L,C);return R},[]),O},h=function(d){var O=d.autoEscape,R=d.caseSensitive,C=d.sanitize,L=C===void 0?v:C,j=d.searchWords,I=d.textToHighlight;return I=L(I),j.filter(function(U){return U}).reduce(function(U,$){$=L($),O&&($=m($));for(var ee=new RegExp($,R?"g":"gi"),re=void 0;re=ee.exec(I);){var Se=re.index,z=ee.lastIndex;z>Se&&U.push({start:Se,end:z}),re.index==ee.lastIndex&&ee.lastIndex++}return U},[])};x.findChunks=h;var E=x.fillInChunks=function(d){var O=d.chunksToHighlight,R=d.totalLength,C=[],L=function(U,$,ee){$-U>0&&C.push({start:U,end:$,highlight:ee})};if(O.length===0)L(0,R,!1);else{var j=0;O.forEach(function(I){L(j,I.start,!1),L(I.start,I.end,!0),j=I.end}),L(j,R,!1)}return C};function v(S){return S}function m(S){return S.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(l,g){l.exports=u(96540)},function(l,g){"use strict";var y=function(p,h){return p===h};function x(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y,h=void 0,E=[],v=void 0,m=!1,S=function(R,C){return p(R,E[C])},d=function(){for(var R=arguments.length,C=Array(R),L=0;L<R;L++)C[L]=arguments[L];return m&&h===this&&C.length===E.length&&C.every(S)||(m=!0,h=this,E=C,v=f.apply(this,C)),v};return d}l.exports=x}])},23506:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.NotFoundError=void 0;var l=u(9619);w.NotFoundError=l.createErrorClass(function(g){return function(x){g(this),this.name="NotFoundError",this.message=x}})},23535:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540),g=u(64305),y=function(f){var p=(0,l.useRef)(0),h=(0,l.useState)(f),E=h[0],v=h[1],m=(0,l.useCallback)(function(S){cancelAnimationFrame(p.current),p.current=requestAnimationFrame(function(){v(S)})},[]);return(0,g.A)(function(){cancelAnimationFrame(p.current)}),[E,m]};const x=y},23952:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.AsapScheduler=void 0;var g=u(19533),y=function(x){l(f,x);function f(){return x!==null&&x.apply(this,arguments)||this}return f.prototype.flush=function(p){this._active=!0;var h=this._scheduled;this._scheduled=void 0;var E=this.actions,v;p=p||E.shift();do if(v=p.execute(p.state,p.delay))break;while((p=E[0])&&p.id===h&&E.shift());if(this._active=!1,v){for(;(p=E[0])&&p.id===h&&E.shift();)p.unsubscribe();throw v}},f}(g.AsyncScheduler);w.AsapScheduler=y},24120:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540),g=u(57007);function y(f,p){var h=(0,l.useState)(p),E=h[0],v=h[1];return(0,g.A)(function(){var m=f.subscribe(v);return function(){return m.unsubscribe()}},[f]),E}const x=y},24151:(Ge,w,u)=>{"use strict";u.d(w,{D:()=>f});var l=Array.isArray,g=Object.getPrototypeOf,y=Object.prototype,x=Object.keys;function f(h){if(h.length===1){var E=h[0];if(l(E))return{args:E,keys:null};if(p(E)){var v=x(E);return{args:v.map(function(m){return E[m]}),keys:v}}}return{args:h,keys:null}}function p(h){return h&&typeof h=="object"&&g(h)===y}},24335:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Command=void 0;var u=function(){function l(g,y){var x=this;y===void 0&&(y={}),this.perform=function(){var f=g.perform();if(typeof f=="function"){var p=y.history;p&&(x.historyItem&&p.remove(x.historyItem),x.historyItem=p.add({perform:g.perform,negate:f}),x.history={undo:function(){return p.undo(x.historyItem)},redo:function(){return p.redo(x.historyItem)}})}}}return l}();w.Command=u},24455:(Ge,w,u)=>{"use strict";u.d(w,{P:()=>g});var l=u(82947),g=(0,l.L)(function(y){return function(){y(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},24705:(Ge,w,u)=>{"use strict";var l;l={value:!0};var g=u(31635),y=u(96540),x=g.__importDefault(u(5805));function f(p,h){h===void 0&&(h=[]);var E=x.default(p,h,{loading:!0}),v=E[0],m=E[1];return y.useEffect(function(){m()},[m]),v}w.A=f},24726:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>E});const g={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let y;const x=new Uint8Array(16);function f(){if(!y){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");y=crypto.getRandomValues.bind(crypto)}return y(x)}var p=u(71060);function h(v,m,S){if(g.randomUUID&&!m&&!v)return g.randomUUID();v=v||{};const d=v.random??v.rng?.()??f();if(d.length<16)throw new Error("Random bytes length must be >= 16");if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,m){if(S=S||0,S<0||S+16>m.length)throw new RangeError(`UUID byte range ${S}:${S+15} is out of buffer bounds`);for(let O=0;O<16;++O)m[S+O]=d[O];return m}return(0,p.k)(d)}const E=h},24778:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>L});var l=u(66514),g=u(70915),y=u(74238),x=u(54049),f=u(22616),p=u(79969),h=u(83402),E=u(83671),v=u(87622),m=u(82922),S=u(9703);const d=(0,S.vt)();class O{constructor(I,U,$,ee,re,Se){this.styleFunction,this.extent_,this.id_=Se,this.type_=I,this.flatCoordinates_=U,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=$||null,this.properties_=re,this.squaredTolerance_,this.stride_=ee,this.simplifiedGeometry_}get(I){return this.properties_[I]}getExtent(){return this.extent_||(this.extent_=this.type_==="Point"?(0,g.dP)(this.flatCoordinates_):(0,g.Vy)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const I=(0,g.q1)(this.getExtent());this.flatInteriorPoints_=(0,f.J)(this.flatCoordinates_,0,this.ends_,2,I,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const I=(0,h.yJ)(this.flatCoordinates_,this.ends_),U=(0,x.C)(this.flatCoordinates_,0,I,2);this.flatInteriorPoints_=(0,f.p)(this.flatCoordinates_,0,I,2,U)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,p.SH)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const I=this.flatCoordinates_;let U=0;const $=this.ends_;for(let ee=0,re=$.length;ee<re;++ee){const Se=$[ee],z=(0,p.SH)(I,U,Se,2,.5);(0,l.X$)(this.flatMidpoints_,z),U=Se}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(I){return this}simplifyTransformed(I,U){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(I){I=(0,m.Jt)(I);const U=I.getExtent(),$=I.getWorldExtent();if(U&&$){const ee=(0,g.Oq)($)/(0,g.Oq)(U);(0,S.Zz)(d,$[0],$[3],ee,-ee,0,0,0),(0,v.Rc)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,d,this.flatCoordinates_)}}applyTransform(I){I(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){return new O(this.type_,this.flatCoordinates_.slice(),this.ends_?.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=(0,y.B4)((I,U)=>{if(I===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),U&&this.simplifiedGeometry_.applyTransform(U);const $=this.simplifiedGeometry_.getFlatCoordinates();let ee;switch(this.type_){case"LineString":$.length=(0,E.P4)($,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,I,$,0),ee=[$.length];break;case"MultiLineString":ee=[],$.length=(0,E.AL)($,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,I,$,0,ee);break;case"Polygon":ee=[],$.length=(0,E.Hg)($,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(I),$,0,ee);break;default:}return ee&&(this.simplifiedGeometry_=new O(this.type_,$,ee,2,this.properties_,this.id_)),this.squaredTolerance_=I,this.simplifiedGeometry_}),this}}O.prototype.getFlatCoordinates=O.prototype.getOrientedFlatCoordinates;function R(j){const I=j.getType();switch(I){case"Point":return new Point(j.getFlatCoordinates());case"MultiPoint":return new MultiPoint(j.getFlatCoordinates(),"XY");case"LineString":return new LineString(j.getFlatCoordinates(),"XY");case"MultiLineString":return new MultiLineString(j.getFlatCoordinates(),"XY",j.getEnds());case"Polygon":const U=j.getFlatCoordinates(),$=j.getEnds(),ee=inflateEnds(U,$);return ee.length>1?new MultiPolygon(U,"XY",ee):new Polygon(U,"XY",$);default:throw new Error("Invalid geometry type:"+I)}}function C(j,I){const U=j.getId(),$=R(j),ee=j.getProperties(),re=new Feature;return I!==void 0&&re.setGeometryName(I),re.setGeometry($),U!==void 0&&re.setId(U),re.setProperties(ee,!0),re}const L=O},24836:(Ge,w,u)=>{"use strict";u.d(w,{Ng:()=>x,TW:()=>l,mD:()=>g});const l=f=>{var p;return(p=f?.ownerDocument)!==null&&p!==void 0?p:document},g=f=>f&&"window"in f&&f.window===f?f:l(f).defaultView||window;function y(f){return f!==null&&typeof f=="object"&&"nodeType"in f&&typeof f.nodeType=="number"}function x(f){return y(f)&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in f}},24938:(Ge,w,u)=>{"use strict";var l,g=u(84262).default;l={value:!0},w.A=void 0;var y=g(u(18517)),x=u(89569),f=(0,y.default)((0,y.default)({},x.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),p=w.A=f},25371:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>h});var l=function(v){return+setTimeout(v,16)},g=function(v){return clearTimeout(v)};typeof window<"u"&&"requestAnimationFrame"in window&&(l=function(v){return window.requestAnimationFrame(v)},g=function(v){return window.cancelAnimationFrame(v)});var y=0,x=new Map;function f(E){x.delete(E)}var p=function(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;y+=1;var S=y;function d(O){if(O===0)f(S),v();else{var R=l(function(){d(O-1)});x.set(S,R)}}return d(m),S};p.cancel=function(E){var v=x.get(E);return f(E),g(v)};const h=p},25504:(Ge,w)=>{"use strict";var u={b:"\b",f:"\f",n:` `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},l=97;w.parse=function(R,C,L){var j={},I=0,U=0,$=0,ee=L&&L.bigint&&typeof BigInt<"u";return{data:re("",!0),pointers:j};function re(tt,Ze){Se();var Ne;X(tt,"value");var it=te();switch(it){case"t":q("rue"),Ne=!0;break;case"f":q("alse"),Ne=!1;break;case"n":q("ull"),Ne=null;break;case'"':Ne=z();break;case"[":Ne=ce(tt);break;case"{":Ne=se(tt);break;default:A(),"-0123456789".indexOf(it)>=0?Ne=Q():Te()}return X(tt,"valueEnd"),Se(),Ze&&$<R.length&&Te(),Ne}function Se(){e:for(;$<R.length;){switch(R[$]){case" ":U++;break;case" ":U+=4;break;case"\r":U=0;break;case` `:U=0,I++;break;default:break e}$++}}function z(){for(var tt="",Ze;Ze=te(),Ze!='"';)Ze=="\\"?(Ze=te(),Ze in u?tt+=u[Ze]:Ze=="u"?tt+=T():je()):tt+=Ze;return tt}function Q(){var tt="",Ze=!0;R[$]=="-"&&(tt+=te()),tt+=R[$]=="0"?te():B(),R[$]=="."&&(tt+=te()+B(),Ze=!1),(R[$]=="e"||R[$]=="E")&&(tt+=te(),(R[$]=="+"||R[$]=="-")&&(tt+=te()),tt+=B(),Ze=!1);var Ne=+tt;return ee&&Ze&&(Ne>Number.MAX_SAFE_INTEGER||Ne<Number.MIN_SAFE_INTEGER)?BigInt(tt):Ne}function ce(tt){Se();var Ze=[],Ne=0;if(te()=="]")return Ze;for(A();;){var it=tt+"/"+Ne;Ze.push(re(it)),Se();var Rt=te();if(Rt=="]")break;Rt!=","&&je(),Se(),Ne++}return Ze}function se(tt){Se();var Ze={};if(te()=="}")return Ze;for(A();;){var Ne=ie();te()!='"'&&je();var it=z(),Rt=tt+"/"+O(it);ue(Rt,"key",Ne),X(Rt,"keyEnd"),Se(),te()!=":"&&je(),Se(),Ze[it]=re(Rt),Se();var Dn=te();if(Dn=="}")break;Dn!=","&&je(),Se()}return Ze}function q(tt){for(var Ze=0;Ze<tt.length;Ze++)te()!==tt[Ze]&&je()}function te(){yt();var tt=R[$];return $++,U++,tt}function A(){$--,U--}function T(){for(var tt=4,Ze=0;tt--;){Ze<<=4;var Ne=te().toLowerCase();Ne>="a"&&Ne<="f"?Ze+=Ne.charCodeAt()-l+10:Ne>="0"&&Ne<="9"?Ze+=+Ne:je()}return String.fromCharCode(Ze)}function B(){for(var tt="";R[$]>="0"&&R[$]<="9";)tt+=te();if(tt.length)return tt;yt(),Te()}function X(tt,Ze){ue(tt,Ze,ie())}function ue(tt,Ze,Ne){j[tt]=j[tt]||{},j[tt][Ze]=Ne}function ie(){return{line:I,column:U,pos:$}}function Te(){throw new SyntaxError("Unexpected token "+R[$]+" in JSON at position "+$)}function je(){A(),Te()}function yt(){if($>=R.length)throw new SyntaxError("Unexpected end of JSON input")}},w.stringify=function(R,C,L){if(!y(R))return;var j=0,I,U,$=typeof L=="object"?L.space:L;switch(typeof $){case"number":var ee=$>10?10:$<0?0:Math.floor($);$=ee&&ue(ee," "),I=ee,U=ee;break;case"string":$=$.slice(0,10),I=0,U=0;for(var re=0;re<$.length;re++){var Se=$[re];switch(Se){case" ":U++;break;case" ":U+=4;break;case"\r":U=0;break;case` `:U=0,j++;break;default:throw new Error("whitespace characters not allowed in JSON")}I++}break;default:$=void 0}var z="",Q={},ce=0,se=0,q=0,te=L&&L.es6&&typeof Map=="function";return A(R,0,""),{json:z,pointers:Q};function A(ie,Te,je){switch(X(je,"value"),typeof ie){case"number":case"bigint":case"boolean":T(""+ie);break;case"string":T(m(ie));break;case"object":ie===null?T("null"):typeof ie.toJSON=="function"?T(m(ie.toJSON())):Array.isArray(ie)?yt():te?ie.constructor.BYTES_PER_ELEMENT?yt():ie instanceof Map?Ze():ie instanceof Set?Ze(!0):tt():tt()}X(je,"valueEnd");function yt(){if(ie.length){T("[");for(var Ne=Te+1,it=0;it<ie.length;it++){it&&T(","),B(Ne);var Rt=y(ie[it])?ie[it]:null,Dn=je+"/"+it;A(Rt,Ne,Dn)}B(Te),T("]")}else T("[]")}function tt(){var Ne=Object.keys(ie);if(Ne.length){T("{");for(var it=Te+1,Rt=0;Rt<Ne.length;Rt++){var Dn=Ne[Rt],Mt=ie[Dn];if(y(Mt)){Rt&&T(",");var Wt=je+"/"+O(Dn);B(it),X(Wt,"key"),T(m(Dn)),X(Wt,"keyEnd"),T(":"),$&&T(" "),A(Mt,it,Wt)}}B(Te),T("}")}else T("{}")}function Ze(Ne){if(ie.size){T("{");for(var it=Te+1,Rt=!0,Dn=ie.entries(),Mt=Dn.next();!Mt.done;){var Wt=Mt.value,Tn=Wt[0],bn=Ne?!0:Wt[1];if(y(bn)){Rt||T(","),Rt=!1;var $t=je+"/"+O(Tn);B(it),X($t,"key"),T(m(Tn)),X($t,"keyEnd"),T(":"),$&&T(" "),A(bn,it,$t)}Mt=Dn.next()}B(Te),T("}")}else T("{}")}}function T(ie){se+=ie.length,q+=ie.length,z+=ie}function B(ie){if($){for(z+=` `+ue(ie,$),ce++,se=0;ie--;)j?(ce+=j,se=U):se+=U,q+=I;q+=1}}function X(ie,Te){Q[ie]=Q[ie]||{},Q[ie][Te]={line:ce,column:se,pos:q}}function ue(ie,Te){return Array(ie+1).join(Te)}};var g=["number","bigint","boolean","string","object"];function y(R){return g.indexOf(typeof R)>=0}var x=/"|\\/g,f=/[\b]/g,p=/\f/g,h=/\n/g,E=/\r/g,v=/\t/g;function m(R){return R=R.replace(x,"\\$&").replace(p,"\\f").replace(f,"\\b").replace(h,"\\n").replace(E,"\\r").replace(v,"\\t"),'"'+R+'"'}var S=/~/g,d=/\//g;function O(R){return R.replace(S,"~0").replace(d,"~1")}},25718:Ge=>{function w(u){var l=u.anchorNode,g=u.anchorOffset,y=u.focusNode,x=u.focusOffset,f=l.compareDocumentPosition(y);return!(f===4||f===0&&g<x)}Ge.exports=w},25948:(Ge,w)=>{"use strict";w.l=self.atob.bind(self),w.E=self.btoa.bind(self)},26021:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;function u(x,f){if(!(x instanceof f))throw new TypeError("Cannot call a class as a function")}function l(x,f){for(var p=0;p<f.length;p++){var h=f[p];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(x,h.key,h)}}function g(x,f,p){return f&&l(x.prototype,f),p&&l(x,p),x}var y=function(){function x(f){u(this,x),this.params=f,this.index=0}return g(x,[{key:"get",value:function(p){var h=p.key,E=p.value;return this.params?h?this.params[h]:this.params[this.index++]:E}}]),x}();w.default=y,Ge.exports=w.default},26392:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=m(u(96540)),g=u(40961),y=m(u(83175)),x=u(55794),f=u(66036),p=u(38426),h=u(82134),E=u(80634),v=m(u(71508));function m(C){return C&&C.__esModule?C:{default:C}}function S(C,L,j){return L=d(L),L in C?Object.defineProperty(C,L,{value:j,enumerable:!0,configurable:!0,writable:!0}):C[L]=j,C}function d(C){var L=O(C,"string");return typeof L=="symbol"?L:String(L)}function O(C,L){if(typeof C!="object"||C===null)return C;var j=C[Symbol.toPrimitive];if(j!==void 0){var I=j.call(C,L||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(C)}class R extends l.default.Component{constructor(){super(...arguments),S(this,"state",{resizing:null,dragging:null,className:""}),S(this,"elementRef",l.default.createRef()),S(this,"onDragStart",(L,j)=>{let{node:I}=j;const{onDragStart:U,transformScale:$}=this.props;if(!U)return;const ee={top:0,left:0},{offsetParent:re}=I;if(!re)return;const Se=re.getBoundingClientRect(),z=I.getBoundingClientRect(),Q=z.left/$,ce=Se.left/$,se=z.top/$,q=Se.top/$;ee.left=Q-ce+re.scrollLeft,ee.top=se-q+re.scrollTop,g.flushSync(()=>{this.setState({dragging:ee})});const{x:te,y:A}=(0,h.calcXY)(this.getPositionParams(),ee.top,ee.left,this.props.w,this.props.h);return U.call(this,this.props.i,te,A,{e:L,node:I,newPosition:ee})}),S(this,"onDrag",(L,j)=>{let{node:I,deltaX:U,deltaY:$}=j;const{onDrag:ee}=this.props;if(!ee)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let re=this.state.dragging.top+$,Se=this.state.dragging.left+U;const{isBounded:z,i:Q,w:ce,h:se,containerWidth:q}=this.props,te=this.getPositionParams();if(z){const{offsetParent:ue}=I;if(ue){const{margin:ie,rowHeight:Te,containerPadding:je}=this.props,yt=ue.clientHeight-(0,h.calcGridItemWHPx)(se,Te,ie[1]);re=(0,h.clamp)(re-je[1],0,yt);const tt=(0,h.calcGridColWidth)(te),Ze=q-(0,h.calcGridItemWHPx)(ce,tt,ie[0]);Se=(0,h.clamp)(Se-je[0],0,Ze)}}const A={top:re,left:Se};g.flushSync(()=>{this.setState({dragging:A})});const{containerPadding:T}=this.props,{x:B,y:X}=(0,h.calcXY)(te,re-T[1],Se-T[0],ce,se);return ee.call(this,Q,B,X,{e:L,node:I,newPosition:A})}),S(this,"onDragStop",(L,j)=>{let{node:I}=j;const{onDragStop:U}=this.props;if(!U)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:$,h:ee,i:re,containerPadding:Se}=this.props,{left:z,top:Q}=this.state.dragging,ce={top:Q,left:z};g.flushSync(()=>{this.setState({dragging:null})});const{x:se,y:q}=(0,h.calcXY)(this.getPositionParams(),Q-Se[1],z-Se[0],$,ee);return U.call(this,re,se,q,{e:L,node:I,newPosition:ce})}),S(this,"onResizeStop",(L,j,I)=>this.onResizeHandler(L,j,I,"onResizeStop")),S(this,"onResizeStart",(L,j,I)=>this.onResizeHandler(L,j,I,"onResizeStart")),S(this,"onResize",(L,j,I)=>this.onResizeHandler(L,j,I,"onResize"))}shouldComponentUpdate(L,j){if(this.props.children!==L.children||this.props.droppingPosition!==L.droppingPosition)return!0;const I=(0,h.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),U=(0,h.calcGridItemPosition)(this.getPositionParams(L),L.x,L.y,L.w,L.h,j);return!(0,p.fastPositionEqual)(I,U)||this.props.useCSSTransforms!==L.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(L){this.moveDroppingItem(L)}moveDroppingItem(L){const{droppingPosition:j}=this.props;if(!j)return;const I=this.elementRef.current;if(!I)return;const U=L.droppingPosition||{left:0,top:0},{dragging:$}=this.state,ee=$&&j.left!==U.left||j.top!==U.top;if(!$)this.onDragStart(j.e,{node:I,deltaX:j.left,deltaY:j.top});else if(ee){const re=j.left-$.left,Se=j.top-$.top;this.onDrag(j.e,{node:I,deltaX:re,deltaY:Se})}}getPositionParams(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:L.cols,containerPadding:L.containerPadding,containerWidth:L.containerWidth,margin:L.margin,maxRows:L.maxRows,rowHeight:L.rowHeight}}createStyle(L){const{usePercentages:j,containerWidth:I,useCSSTransforms:U}=this.props;let $;return U?$=(0,p.setTransform)(L):($=(0,p.setTopLeft)(L),j&&($.left=(0,p.perc)(L.left/I),$.width=(0,p.perc)(L.width/I))),$}mixinDraggable(L,j){return l.default.createElement(x.DraggableCore,{disabled:!j,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},L)}curryResizeHandler(L,j){return(I,U)=>j(I,U,L)}mixinResizable(L,j,I){const{cols:U,minW:$,minH:ee,maxW:re,maxH:Se,transformScale:z,resizeHandles:Q,resizeHandle:ce}=this.props,se=this.getPositionParams(),q=(0,h.calcGridItemPosition)(se,0,0,U,0).width,te=(0,h.calcGridItemPosition)(se,0,0,$,ee),A=(0,h.calcGridItemPosition)(se,0,0,re,Se),T=[te.width,te.height],B=[Math.min(A.width,q),Math.min(A.height,1/0)];return l.default.createElement(f.Resizable,{draggableOpts:{disabled:!I},className:I?void 0:"react-resizable-hide",width:j.width,height:j.height,minConstraints:T,maxConstraints:B,onResizeStop:this.curryResizeHandler(j,this.onResizeStop),onResizeStart:this.curryResizeHandler(j,this.onResizeStart),onResize:this.curryResizeHandler(j,this.onResize),transformScale:z,resizeHandles:Q,handle:ce},L)}onResizeHandler(L,j,I,U){let{node:$,size:ee,handle:re}=j;const Se=this.props[U];if(!Se)return;const{x:z,y:Q,i:ce,maxH:se,minH:q,containerWidth:te}=this.props,{minW:A,maxW:T}=this.props;let B=ee;$&&(B=(0,p.resizeItemInDirection)(re,I,ee,te),g.flushSync(()=>{this.setState({resizing:U==="onResizeStop"?null:B})}));let{w:X,h:ue}=(0,h.calcWH)(this.getPositionParams(),B.width,B.height,z,Q,re);X=(0,h.clamp)(X,Math.max(A,1),T),ue=(0,h.clamp)(ue,q,se),Se.call(this,ce,X,ue,{e:L,node:$,size:B,handle:re})}render(){const{x:L,y:j,w:I,h:U,isDraggable:$,isResizable:ee,droppingPosition:re,useCSSTransforms:Se}=this.props,z=(0,h.calcGridItemPosition)(this.getPositionParams(),L,j,I,U,this.state),Q=l.default.Children.only(this.props.children);let ce=l.default.cloneElement(Q,{ref:this.elementRef,className:(0,v.default)("react-grid-item",Q.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":$,"react-draggable-dragging":!!this.state.dragging,dropping:!!re,cssTransforms:Se}),style:{...this.props.style,...Q.props.style,...this.createStyle(z)}});return ce=this.mixinResizable(ce,z,ee),ce=this.mixinDraggable(ce,$),ce}}w.default=R,S(R,"propTypes",{children:y.default.element,cols:y.default.number.isRequired,containerWidth:y.default.number.isRequired,rowHeight:y.default.number.isRequired,margin:y.default.array.isRequired,maxRows:y.default.number.isRequired,containerPadding:y.default.array.isRequired,x:y.default.number.isRequired,y:y.default.number.isRequired,w:y.default.number.isRequired,h:y.default.number.isRequired,minW:function(C,L){const j=C[L];if(typeof j!="number")return new Error("minWidth not Number");if(j>C.w||j>C.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(C,L){const j=C[L];if(typeof j!="number")return new Error("maxWidth not Number");if(j<C.w||j<C.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(C,L){const j=C[L];if(typeof j!="number")return new Error("minHeight not Number");if(j>C.h||j>C.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(C,L){const j=C[L];if(typeof j!="number")return new Error("maxHeight not Number");if(j<C.h||j<C.minH)return new Error("maxHeight smaller than item height/minHeight")},i:y.default.string.isRequired,resizeHandles:E.resizeHandleAxesType,resizeHandle:E.resizeHandleType,onDragStop:y.default.func,onDragStart:y.default.func,onDrag:y.default.func,onResizeStop:y.default.func,onResizeStart:y.default.func,onResize:y.default.func,isDraggable:y.default.bool.isRequired,isResizable:y.default.bool.isRequired,isBounded:y.default.bool.isRequired,static:y.default.bool,useCSSTransforms:y.default.bool.isRequired,transformScale:y.default.number,className:y.default.string,handle:y.default.string,cancel:y.default.string,droppingPosition:y.default.shape({e:y.default.object.isRequired,left:y.default.number.isRequired,top:y.default.number.isRequired})}),S(R,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},26404:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.popNumber=w.popScheduler=w.popResultSelector=void 0;var l=u(10281),g=u(68596);function y(h){return h[h.length-1]}function x(h){return l.isFunction(y(h))?h.pop():void 0}w.popResultSelector=x;function f(h){return g.isScheduler(y(h))?h.pop():void 0}w.popScheduler=f;function p(h,E){return typeof y(h)=="number"?h.pop():E}w.popNumber=p},26569:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.publishLast=void 0;var l=u(5130),g=u(14359);function y(){return function(x){var f=new l.AsyncSubject;return new g.ConnectableObservable(x,function(){return f})}}w.publishLast=y},26680:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.throwError=void 0;var l=u(48051),g=u(10281);function y(x,f){var p=g.isFunction(x)?x:function(){return x},h=function(E){return E.error(p())};return new l.Observable(f?function(E){return f.schedule(h,0,E)}:h)}w.throwError=y},26744:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.pairwise=void 0;var l=u(65212),g=u(17214);function y(){return l.operate(function(x,f){var p,h=!1;x.subscribe(g.createOperatorSubscriber(f,function(E){var v=p;p=E,h&&f.next([v,E]),h=!0}))})}w.pairwise=y},26749:function(Ge,w,u){"use strict";var l=this&&this.__read||function(p,h){var E=typeof Symbol=="function"&&p[Symbol.iterator];if(!E)return p;var v=E.call(p),m,S=[],d;try{for(;(h===void 0||h-- >0)&&!(m=v.next()).done;)S.push(m.value)}catch(O){d={error:O}}finally{try{m&&!m.done&&(E=v.return)&&E.call(v)}finally{if(d)throw d.error}}return S},g=this&&this.__spreadArray||function(p,h){for(var E=0,v=h.length,m=p.length;E<v;E++,m++)p[m]=h[E];return p};Object.defineProperty(w,"__esModule",{value:!0}),w.zip=void 0;var y=u(11415),x=u(65212);function f(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];return x.operate(function(E,v){y.zip.apply(void 0,g([E],l(p))).subscribe(v)})}w.zip=f},26872:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.map=void 0;var l=u(65212),g=u(17214);function y(x,f){return l.operate(function(p,h){var E=0;p.subscribe(g.createOperatorSubscriber(h,function(v){h.next(x.call(f,v,E++))}))})}w.map=y},26920:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.fromEventPattern=void 0;var l=u(48051),g=u(10281),y=u(13916);function x(f,p,h){return h?x(f,p).pipe(y.mapOneOrManyArgs(h)):new l.Observable(function(E){var v=function(){for(var S=[],d=0;d<arguments.length;d++)S[d]=arguments[d];return E.next(S.length===1?S[0]:S)},m=f(v);return g.isFunction(p)?function(){return p(v,m)}:void 0})}w.fromEventPattern=x},26945:function(Ge,w,u){"use strict";var l=this&&this.__rest||function(x,f){var p={};for(var h in x)Object.prototype.hasOwnProperty.call(x,h)&&f.indexOf(h)<0&&(p[h]=x[h]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,h=Object.getOwnPropertySymbols(x);E<h.length;E++)f.indexOf(h[E])<0&&Object.prototype.propertyIsEnumerable.call(x,h[E])&&(p[h[E]]=x[h[E]]);return p},g=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(w,"__esModule",{value:!0});const y=g(u(90299));w.default=(x,f=!1,p="")=>{const{variables:h={}}=x,E=l(x,["variables"]),v={light:Object.assign({diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},h.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},h.dark||{})},m=f?v.dark:v.light,{css:S,cx:d}=(0,y.default)({key:"react-diff",nonce:p}),O=S({width:"100%",label:"content"}),R=S({[`.${O}`]:{width:"50%"},label:"split-view"}),C=S({width:"100%",background:m.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),L=S({color:m.codeFoldContentColor,label:"code-fold-content"}),j=S({color:m.diffViewerColor,label:"content-text"}),I=S({background:m.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${m.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${m.diffViewerTitleBorderColor}`},[`.${j}`]:{color:m.diffViewerTitleColor}}),U=S({color:m.gutterColor,label:"line-number"}),$=S({background:m.removedBackground,color:m.removedColor,pre:{color:m.removedColor},[`.${U}`]:{color:m.removedGutterColor},label:"diff-removed"}),ee=S({background:m.addedBackground,color:m.addedColor,pre:{color:m.addedColor},[`.${U}`]:{color:m.addedGutterColor},label:"diff-added"}),re=S({background:m.changedBackground,[`.${U}`]:{color:m.gutterColor},label:"diff-changed"}),Se=S({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),z=S({background:m.wordAddedBackground,label:"word-added"}),Q=S({background:m.wordRemovedBackground,label:"word-removed"}),ce=S({backgroundColor:m.codeFoldGutterBackground,label:"code-fold-gutter"}),se=S({backgroundColor:m.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),q=S({backgroundColor:m.emptyLineBackground,label:"empty-line"}),te=S({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${ee}`]:{pre:{color:m.addedColor}},[`&.${$}`]:{pre:{color:m.removedColor}}}),A=S({background:m.highlightBackground,label:"highlighted-line",[`.${z}, .${Q}`]:{backgroundColor:"initial"}}),T=S({label:"highlighted-gutter"}),B=S({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:m.gutterBackground,"&:hover":{cursor:"pointer",background:m.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${ee}`]:{background:m.addedGutterBackground},[`&.${$}`]:{background:m.removedGutterBackground},[`&.${T}`]:{background:m.highlightGutterBackground,"&:hover":{background:m.highlightGutterBackground}}}),X=S({"&:hover":{background:m.gutterBackground,cursor:"initial"},label:"empty-gutter"}),ue=S({verticalAlign:"baseline",label:"line"}),ie={diffContainer:C,diffRemoved:$,diffAdded:ee,diffChanged:re,splitView:R,marker:te,highlightedGutter:T,highlightedLine:A,gutter:B,line:ue,wordDiff:Se,wordAdded:z,wordRemoved:Q,codeFoldGutter:ce,codeFold:se,emptyGutter:X,emptyLine:q,lineNumber:U,contentText:j,content:O,codeFoldContent:L,titleBlock:I},Te=Object.keys(E).reduce((je,yt)=>Object.assign(Object.assign({},je),{[yt]:S(E[yt])}),{});return Object.keys(ie).reduce((je,yt)=>Object.assign(Object.assign({},je),{[yt]:Te[yt]?d(ie[yt],Te[yt]):ie[yt]}),{})}},26956:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l=u(96540);function g(y){var x=l.useRef();x.current=y;var f=l.useCallback(function(){for(var p,h=arguments.length,E=new Array(h),v=0;v<h;v++)E[v]=arguments[v];return(p=x.current)===null||p===void 0?void 0:p.call.apply(p,[x].concat(E))},[]);return f}},27166:(Ge,w,u)=>{var l=u(76239);Ge.exports=x;var g=u(3595);function y(f){return f&&f.window===f}function x(f){if(y(f))return f;var p=l(f);if(g){p.parentWindow.execScript("document._parentWindow = window;","Javascript");var h=p._parentWindow;return p._parentWindow=null,h}else return p.defaultView||p.parentWindow}},27214:(Ge,w,u)=>{var l=u(49879);Ge.exports=g;function g(y){return l(y).replace(/[\W_]+(.|$)/g,function(x,f){return f?" "+f:""}).trim()}},27430:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>S});var l=u(34120),g=u(70915),y=u(74238),x=u(82922),f=u(9703),p=u(4087),h=u(87622);const E=(0,f.vt)(),v=[NaN,NaN];class m extends l.A{constructor(){super(),this.extent_=(0,g.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,y.B4)((O,R,C)=>{if(!C)return this.getSimplifiedGeometry(R);const L=this.clone();return L.applyTransform(C),L.getSimplifiedGeometry(R)})}simplifyTransformed(O,R){return this.simplifyTransformedInternal(this.getRevision(),O,R)}clone(){return(0,p.b0)()}closestPointXY(O,R,C,L){return(0,p.b0)()}containsXY(O,R){return this.closestPointXY(O,R,v,Number.MIN_VALUE)===0}getClosestPoint(O,R){return R=R||[NaN,NaN],this.closestPointXY(O[0],O[1],R,1/0),R}intersectsCoordinate(O){return this.containsXY(O[0],O[1])}computeExtent(O){return(0,p.b0)()}getExtent(O){if(this.extentRevision_!=this.getRevision()){const R=this.computeExtent(this.extent_);(isNaN(R[0])||isNaN(R[1]))&&(0,g.aZ)(R),this.extentRevision_=this.getRevision()}return(0,g.$u)(this.extent_,O)}rotate(O,R){(0,p.b0)()}scale(O,R,C){(0,p.b0)()}simplify(O){return this.getSimplifiedGeometry(O*O)}getSimplifiedGeometry(O){return(0,p.b0)()}getType(){return(0,p.b0)()}applyTransform(O){(0,p.b0)()}intersectsExtent(O){return(0,p.b0)()}translate(O,R){(0,p.b0)()}transform(O,R){const C=(0,x.Jt)(O),L=C.getUnits()=="tile-pixels"?function(j,I,U){const $=C.getExtent(),ee=C.getWorldExtent(),re=(0,g.Oq)(ee)/(0,g.Oq)($);(0,f.Zz)(E,ee[0],ee[3],re,-re,0,0,0);const Se=(0,h.Rc)(j,0,j.length,U,E,I),z=(0,x.RG)(C,R);return z?z(Se,Se,U):Se}:(0,x.RG)(C,R);return this.applyTransform(L),this}}const S=m},27633:(Ge,w,u)=>{"use strict";var l;l={value:!0},w.Ay=l=void 0;var g=p(u(80902)),y=p(u(95349)),x=p(u(3161)),f=p(u(48808));function p(v){return v&&v.__esModule?v:{default:v}}var h=function(m){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};switch(S.language){case"db2":return new g.default(S).format(m);case"n1ql":return new y.default(S).format(m);case"pl/sql":return new x.default(S).format(m);case"sql":case void 0:return new f.default(S).format(m);default:throw Error("Unsupported SQL dialect: ".concat(S.language))}};l=h;var E={format:h};w.Ay=E},28061:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=u;function u(l,g,y){var x=!0,f=!1,p=!1,h=1;return function E(){if(x&&!p){if(f?h++:x=!1,l+h<=y)return h;p=!0}if(!f)return p||(x=!0),g<=l-h?-h++:(f=!0,E())}}},28104:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l=u(96540);function g(y,x,f){var p=l.useRef({});return(!("value"in p.current)||f(p.current.condition,x))&&(p.current.value=y(),p.current.condition=x),p.current.value}},28295:(Ge,w,u)=>{"use strict";u.d(w,{_q:()=>l.A,vz:()=>g.A});var l=u(26956),g=u(12533),y=u(8719);function x(S,d,O,R){if(!d.length)return O;var C=_toArray(d),L=C[0],j=C.slice(1),I;return!S&&typeof L=="number"?I=[]:Array.isArray(S)?I=_toConsumableArray(S):I=_objectSpread({},S),R&&O===void 0&&j.length===1?delete I[L][j[0]]:I[L]=x(I[L],j,O,R),I}function f(S,d,O){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return d.length&&R&&O===void 0&&!get(S,d.slice(0,-1))?S:x(S,d,O,R)}function p(S){return _typeof(S)==="object"&&S!==null&&Object.getPrototypeOf(S)===Object.prototype}function h(S){return Array.isArray(S)?[]:{}}var E=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function v(){for(var S=arguments.length,d=new Array(S),O=0;O<S;O++)d[O]=arguments[O];var R=h(d[0]);return d.forEach(function(C){function L(j,I){var U=new Set(I),$=get(C,j),ee=Array.isArray($);if(ee||p($)){if(!U.has($)){U.add($);var re=get(R,j);ee?R=f(R,j,[]):(!re||_typeof(re)!=="object")&&(R=f(R,j,h($))),E($).forEach(function(Se){L([].concat(_toConsumableArray(j),[Se]),U)})}}else R=f(R,j,$)}L([])}),R}var m=u(68210)},28329:(Ge,w,u)=>{"use strict";w.__esModule=!0,w.resizableProps=void 0;var l=y(u(83175)),g=u(55794);function y(f){return f&&f.__esModule?f:{default:f}}var x={axis:l.default.oneOf(["both","x","y","none"]),className:l.default.string,children:l.default.element.isRequired,draggableOpts:l.default.shape({allowAnyClick:l.default.bool,cancel:l.default.string,children:l.default.node,disabled:l.default.bool,enableUserSelectHack:l.default.bool,offsetParent:l.default.node,grid:l.default.arrayOf(l.default.number),handle:l.default.string,nodeRef:l.default.object,onStart:l.default.func,onDrag:l.default.func,onStop:l.default.func,onMouseDown:l.default.func,scale:l.default.number}),height:function(){for(var p=arguments.length,h=new Array(p),E=0;E<p;E++)h[E]=arguments[E];var v=h[0];if(v.axis==="both"||v.axis==="y"){var m;return(m=l.default.number).isRequired.apply(m,h)}return l.default.number.apply(l.default,h)},handle:l.default.oneOfType([l.default.node,l.default.func]),handleSize:l.default.arrayOf(l.default.number),lockAspectRatio:l.default.bool,maxConstraints:l.default.arrayOf(l.default.number),minConstraints:l.default.arrayOf(l.default.number),onResizeStop:l.default.func,onResizeStart:l.default.func,onResize:l.default.func,resizeHandles:l.default.arrayOf(l.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:l.default.number,width:function(){for(var p=arguments.length,h=new Array(p),E=0;E<p;E++)h[E]=arguments[E];var v=h[0];if(v.axis==="both"||v.axis==="x"){var m;return(m=l.default.number).isRequired.apply(m,h)}return l.default.number.apply(l.default,h)}};w.resizableProps=x},28450:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});const l={PROPERTYCHANGE:"propertychange"}},28609:(Ge,w,u)=>{"use strict";u.d(w,{Cs:()=>y,PK:()=>g,eN:()=>l});function l(x,f,p,h){let E=0;const v=x[p-h],m=x[p-h+1];let S=0,d=0;for(;f<p;f+=h){const O=x[f]-v,R=x[f+1]-m;E+=d*O-S*R,S=O,d=R}return E/2}function g(x,f,p,h){let E=0;for(let v=0,m=p.length;v<m;++v){const S=p[v];E+=l(x,f,S,h),f=S}return E}function y(x,f,p,h){let E=0;for(let v=0,m=p.length;v<m;++v){const S=p[v];E+=g(x,f,S,h),f=S[S.length-1]}return E}},28619:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.executeSchedule=void 0;function u(l,g,y,x,f){x===void 0&&(x=0),f===void 0&&(f=!1);var p=g.schedule(function(){y(),f?l.add(this.schedule(null,x)):this.unsubscribe()},x);if(l.add(p),!f)return p}w.executeSchedule=u},28757:(Ge,w)=>{w.stringify=function(u){var l="";for(var g in u){var y=u[g],x=!1;y==null?(x=!0,y=""):y=y.toString();var f=y.indexOf(" ")>-1||y.indexOf("=")>-1,p=y.indexOf('"')>-1||y.indexOf("\\")>-1;p&&(y=y.replace(/["\\]/g,"\\$&")),(f||p)&&(y='"'+y+'"'),y===""&&!x&&(y='""'),l+=g+"="+y+" "}return l.substring(0,l.length-1)}},28829:function(Ge,w,u){(function(l,g){g(w,u(96540))})(this,function(l,g){"use strict";function y(Dt,Xn,Tr,Nr,ti,_i,Ii){try{var ta=Dt[_i](Ii),Ji=ta.value}catch(k){return void Tr(k)}ta.done?Xn(Ji):Promise.resolve(Ji).then(Nr,ti)}function x(Dt){return function(){var Xn=this,Tr=arguments;return new Promise(function(Nr,ti){var _i=Dt.apply(Xn,Tr);function Ii(Ji){y(_i,Nr,ti,Ii,ta,"next",Ji)}function ta(Ji){y(_i,Nr,ti,Ii,ta,"throw",Ji)}Ii(void 0)})}}function f(){return(f=Object.assign||function(Dt){for(var Xn=1;Xn<arguments.length;Xn++){var Tr=arguments[Xn];for(var Nr in Tr)Object.prototype.hasOwnProperty.call(Tr,Nr)&&(Dt[Nr]=Tr[Nr])}return Dt}).apply(this,arguments)}function p(Dt,Xn){if(Dt==null)return{};var Tr,Nr,ti={},_i=Object.keys(Dt);for(Nr=0;Nr<_i.length;Nr++)Tr=_i[Nr],Xn.indexOf(Tr)>=0||(ti[Tr]=Dt[Tr]);return ti}function h(Dt){var Xn=function(Tr,Nr){if(typeof Tr!="object"||Tr===null)return Tr;var ti=Tr[Symbol.toPrimitive];if(ti!==void 0){var _i=ti.call(Tr,Nr||"default");if(typeof _i!="object")return _i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Nr==="string"?String:Number)(Tr)}(Dt,"string");return typeof Xn=="symbol"?Xn:String(Xn)}g=g&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g;var E={init:"init"},v=function(Dt){var Xn=Dt.value;return Xn===void 0?"":Xn},m=function(){return g.createElement(g.Fragment,null,"\xA0")},S={Cell:v,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var Dt=arguments.length,Xn=new Array(Dt),Tr=0;Tr<Dt;Tr++)Xn[Tr]=arguments[Tr];return Xn.reduce(function(Nr,ti){var _i=ti.style,Ii=ti.className;return Nr=f({},Nr,{},p(ti,["style","className"])),_i&&(Nr.style=Nr.style?f({},Nr.style||{},{},_i||{}):_i),Ii&&(Nr.className=Nr.className?Nr.className+" "+Ii:Ii),Nr.className===""&&delete Nr.className,Nr},{})}var O=function(Dt,Xn){return Xn===void 0&&(Xn={}),function(Tr){return Tr===void 0&&(Tr={}),[].concat(Dt,[Tr]).reduce(function(Nr,ti){return function _i(Ii,ta,Ji){return typeof ta=="function"?_i({},ta(Ii,Ji)):Array.isArray(ta)?d.apply(void 0,[Ii].concat(ta)):d(Ii,ta)}(Nr,ti,f({},Xn,{userProps:Tr}))},{})}},R=function(Dt,Xn,Tr,Nr){return Tr===void 0&&(Tr={}),Dt.reduce(function(ti,_i){return _i(ti,Tr)},Xn)},C=function(Dt,Xn,Tr){return Tr===void 0&&(Tr={}),Dt.forEach(function(Nr){Nr(Xn,Tr)})};function L(Dt,Xn,Tr,Nr){Dt.findIndex(function(ti){return ti.pluginName===Tr}),Xn.forEach(function(ti){Dt.findIndex(function(_i){return _i.pluginName===ti})})}function j(Dt,Xn){return typeof Dt=="function"?Dt(Xn):Dt}function I(Dt){var Xn=g.useRef();return Xn.current=Dt,g.useCallback(function(){return Xn.current},[])}var U=typeof document<"u"?g.useLayoutEffect:g.useEffect;function $(Dt,Xn){var Tr=g.useRef(!1);U(function(){Tr.current&&Dt(),Tr.current=!0},Xn)}function ee(Dt,Xn,Tr){return Tr===void 0&&(Tr={}),function(Nr,ti){ti===void 0&&(ti={});var _i=typeof Nr=="string"?Xn[Nr]:Nr;if(_i===void 0)throw console.info(Xn),new Error("Renderer Error \u261D\uFE0F");return re(_i,f({},Dt,{column:Xn},Tr,{},ti))}}function re(Dt,Xn){return function(Nr){return typeof Nr=="function"&&(ti=Object.getPrototypeOf(Nr)).prototype&&ti.prototype.isReactComponent;var ti}(Tr=Dt)||typeof Tr=="function"||function(Nr){return typeof Nr=="object"&&typeof Nr.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(Nr.$$typeof.description)}(Tr)?g.createElement(Dt,Xn):Dt;var Tr}function Se(Dt,Xn,Tr){return Tr===void 0&&(Tr=0),Dt.map(function(Nr){return Q(Nr=f({},Nr,{parent:Xn,depth:Tr})),Nr.columns&&(Nr.columns=Se(Nr.columns,Nr,Tr+1)),Nr})}function z(Dt){return T(Dt,"columns")}function Q(Dt){var Xn=Dt.id,Tr=Dt.accessor,Nr=Dt.Header;if(typeof Tr=="string"){Xn=Xn||Tr;var ti=Tr.split(".");Tr=function(_i){return function(Ii,ta,Ji){if(!ta)return Ii;var k,ve=typeof ta=="function"?ta:JSON.stringify(ta),Le=q.get(ve)||function(){var Ye=function(ot){return function Lt(an,nr){if(nr===void 0&&(nr=[]),Array.isArray(an))for(var vr=0;vr<an.length;vr+=1)Lt(an[vr],nr);else nr.push(an);return nr}(ot).map(function(Lt){return String(Lt).replace(".","_")}).join(".").replace(je,".").replace(yt,"").split(".")}(ta);return q.set(ve,Ye),Ye}();try{k=Le.reduce(function(Ye,ot){return Ye[ot]},Ii)}catch{}return k!==void 0?k:Ji}(_i,ti)}}if(!Xn&&typeof Nr=="string"&&Nr&&(Xn=Nr),!Xn&&Dt.columns)throw console.error(Dt),new Error('A column ID (or unique "Header" value) is required!');if(!Xn)throw console.error(Dt),new Error("A column ID (or string accessor) is required!");return Object.assign(Dt,{id:Xn,accessor:Tr}),Dt}function ce(Dt,Xn){if(!Xn)throw new Error;return Object.assign(Dt,f({Header:m,Footer:m},S,{},Xn,{},Dt)),Object.assign(Dt,{originalWidth:Dt.width}),Dt}function se(Dt,Xn,Tr){Tr===void 0&&(Tr=function(){return{}});for(var Nr=[],ti=Dt,_i=0,Ii=function(){return _i++},ta=function(){var Ji={headers:[]},k=[],ve=ti.some(function(Le){return Le.parent});ti.forEach(function(Le){var Ye,ot=[].concat(k).reverse()[0];ve&&(Le.parent?Ye=f({},Le.parent,{originalId:Le.parent.id,id:Le.parent.id+"_"+Ii(),headers:[Le]},Tr(Le)):Ye=ce(f({originalId:Le.id+"_placeholder",id:Le.id+"_placeholder_"+Ii(),placeholderOf:Le,headers:[Le]},Tr(Le)),Xn),ot&&ot.originalId===Ye.originalId?ot.headers.push(Le):k.push(Ye)),Ji.headers.push(Le)}),Nr.push(Ji),ti=k};ti.length;)ta();return Nr.reverse()}var q=new Map;function te(){for(var Dt=arguments.length,Xn=new Array(Dt),Tr=0;Tr<Dt;Tr++)Xn[Tr]=arguments[Tr];for(var Nr=0;Nr<Xn.length;Nr+=1)if(Xn[Nr]!==void 0)return Xn[Nr]}function A(Dt){if(typeof Dt=="function")return Dt}function T(Dt,Xn){var Tr=[];return function Nr(ti){ti.forEach(function(_i){_i[Xn]?Nr(_i[Xn]):Tr.push(_i)})}(Dt),Tr}function B(Dt,Xn){var Tr=Xn.manualExpandedKey,Nr=Xn.expanded,ti=Xn.expandSubRows,_i=ti===void 0||ti,Ii=[];return Dt.forEach(function(ta){return function Ji(k,ve){ve===void 0&&(ve=!0),k.isExpanded=k.original&&k.original[Tr]||Nr[k.id],k.canExpand=k.subRows&&!!k.subRows.length,ve&&Ii.push(k),k.subRows&&k.subRows.length&&k.isExpanded&&k.subRows.forEach(function(Le){return Ji(Le,_i)})}(ta)}),Ii}function X(Dt,Xn,Tr){return A(Dt)||Xn[Dt]||Tr[Dt]||Tr.text}function ue(Dt,Xn,Tr){return Dt?Dt(Xn,Tr):Xn===void 0}function ie(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var Te=null,je=/\[/g,yt=/\]/g,tt=function(Dt){return f({role:"table"},Dt)},Ze=function(Dt){return f({role:"rowgroup"},Dt)},Ne=function(Dt,Xn){var Tr=Xn.column;return f({key:"header_"+Tr.id,colSpan:Tr.totalVisibleHeaderCount,role:"columnheader"},Dt)},it=function(Dt,Xn){var Tr=Xn.column;return f({key:"footer_"+Tr.id,colSpan:Tr.totalVisibleHeaderCount},Dt)},Rt=function(Dt,Xn){return f({key:"headerGroup_"+Xn.index,role:"row"},Dt)},Dn=function(Dt,Xn){return f({key:"footerGroup_"+Xn.index},Dt)},Mt=function(Dt,Xn){return f({key:"row_"+Xn.row.id,role:"row"},Dt)},Wt=function(Dt,Xn){var Tr=Xn.cell;return f({key:"cell_"+Tr.row.id+"_"+Tr.column.id,role:"cell"},Dt)};function Tn(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[tt],getTableBodyProps:[Ze],getHeaderGroupProps:[Rt],getFooterGroupProps:[Dn],getHeaderProps:[Ne],getFooterProps:[it],getRowProps:[Mt],getCellProps:[Wt],useFinalInstance:[]}}E.resetHiddenColumns="resetHiddenColumns",E.toggleHideColumn="toggleHideColumn",E.setHiddenColumns="setHiddenColumns",E.toggleHideAllColumns="toggleHideAllColumns";var bn=function(Dt){Dt.getToggleHiddenProps=[$t],Dt.getToggleHideAllColumnsProps=[Ct],Dt.stateReducers.push(Z),Dt.useInstanceBeforeDimensions.push(me),Dt.headerGroupsDeps.push(function(Xn,Tr){var Nr=Tr.instance;return[].concat(Xn,[Nr.state.hiddenColumns])}),Dt.useInstance.push(ke)};bn.pluginName="useColumnVisibility";var $t=function(Dt,Xn){var Tr=Xn.column;return[Dt,{onChange:function(Nr){Tr.toggleHidden(!Nr.target.checked)},style:{cursor:"pointer"},checked:Tr.isVisible,title:"Toggle Column Visible"}]},Ct=function(Dt,Xn){var Tr=Xn.instance;return[Dt,{onChange:function(Nr){Tr.toggleHideAllColumns(!Nr.target.checked)},style:{cursor:"pointer"},checked:!Tr.allColumnsHidden&&!Tr.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!Tr.allColumnsHidden&&Tr.state.hiddenColumns.length}]};function Z(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({hiddenColumns:[]},Dt);if(Xn.type===E.resetHiddenColumns)return f({},Dt,{hiddenColumns:Nr.initialState.hiddenColumns||[]});if(Xn.type===E.toggleHideColumn){var ti=(Xn.value!==void 0?Xn.value:!Dt.hiddenColumns.includes(Xn.columnId))?[].concat(Dt.hiddenColumns,[Xn.columnId]):Dt.hiddenColumns.filter(function(_i){return _i!==Xn.columnId});return f({},Dt,{hiddenColumns:ti})}return Xn.type===E.setHiddenColumns?f({},Dt,{hiddenColumns:j(Xn.value,Dt.hiddenColumns)}):Xn.type===E.toggleHideAllColumns?f({},Dt,{hiddenColumns:(Xn.value!==void 0?Xn.value:!Dt.hiddenColumns.length)?Nr.allColumns.map(function(_i){return _i.id}):[]}):void 0}function me(Dt){var Xn=Dt.headers,Tr=Dt.state.hiddenColumns;g.useRef(!1).current;var Nr=0;Xn.forEach(function(ti){return Nr+=function _i(Ii,ta){Ii.isVisible=ta&&!Tr.includes(Ii.id);var Ji=0;return Ii.headers&&Ii.headers.length?Ii.headers.forEach(function(k){return Ji+=_i(k,Ii.isVisible)}):Ji=Ii.isVisible?1:0,Ii.totalVisibleHeaderCount=Ji,Ji}(ti,!0)})}function ke(Dt){var Xn=Dt.columns,Tr=Dt.flatHeaders,Nr=Dt.dispatch,ti=Dt.allColumns,_i=Dt.getHooks,Ii=Dt.state.hiddenColumns,ta=Dt.autoResetHiddenColumns,Ji=ta===void 0||ta,k=I(Dt),ve=ti.length===Ii.length,Le=g.useCallback(function(nr,vr){return Nr({type:E.toggleHideColumn,columnId:nr,value:vr})},[Nr]),Ye=g.useCallback(function(nr){return Nr({type:E.setHiddenColumns,value:nr})},[Nr]),ot=g.useCallback(function(nr){return Nr({type:E.toggleHideAllColumns,value:nr})},[Nr]),Lt=O(_i().getToggleHideAllColumnsProps,{instance:k()});Tr.forEach(function(nr){nr.toggleHidden=function(vr){Nr({type:E.toggleHideColumn,columnId:nr.id,value:vr})},nr.getToggleHiddenProps=O(_i().getToggleHiddenProps,{instance:k(),column:nr})});var an=I(Ji);$(function(){an()&&Nr({type:E.resetHiddenColumns})},[Nr,Xn]),Object.assign(Dt,{allColumnsHidden:ve,toggleHideColumn:Le,setHiddenColumns:Ye,toggleHideAllColumns:ot,getToggleHideAllColumnsProps:Lt})}var Ee={},_e={},ge=function(Dt,Xn,Tr){return Dt},Me=function(Dt,Xn){return Dt.subRows||[]},lt=function(Dt,Xn,Tr){return""+(Tr?[Tr.id,Xn].join("."):Xn)},Ft=function(Dt){return Dt};function Et(Dt){var Xn=Dt.initialState,Tr=Xn===void 0?Ee:Xn,Nr=Dt.defaultColumn,ti=Nr===void 0?_e:Nr,_i=Dt.getSubRows,Ii=_i===void 0?Me:_i,ta=Dt.getRowId,Ji=ta===void 0?lt:ta,k=Dt.stateReducer,ve=k===void 0?ge:k,Le=Dt.useControlledState,Ye=Le===void 0?Ft:Le;return f({},p(Dt,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:Tr,defaultColumn:ti,getSubRows:Ii,getRowId:Ji,stateReducer:ve,useControlledState:Ye})}function Zt(Dt,Xn){Xn===void 0&&(Xn=0);var Tr=0,Nr=0,ti=0,_i=0;return Dt.forEach(function(Ii){var ta=Ii.headers;if(Ii.totalLeft=Xn,ta&&ta.length){var Ji=Zt(ta,Xn),k=Ji[0],ve=Ji[1],Le=Ji[2],Ye=Ji[3];Ii.totalMinWidth=k,Ii.totalWidth=ve,Ii.totalMaxWidth=Le,Ii.totalFlexWidth=Ye}else Ii.totalMinWidth=Ii.minWidth,Ii.totalWidth=Math.min(Math.max(Ii.minWidth,Ii.width),Ii.maxWidth),Ii.totalMaxWidth=Ii.maxWidth,Ii.totalFlexWidth=Ii.canResize?Ii.totalWidth:0;Ii.isVisible&&(Xn+=Ii.totalWidth,Tr+=Ii.totalMinWidth,Nr+=Ii.totalWidth,ti+=Ii.totalMaxWidth,_i+=Ii.totalFlexWidth)}),[Tr,Nr,ti,_i]}function nn(Dt){var Xn=Dt.data,Tr=Dt.rows,Nr=Dt.flatRows,ti=Dt.rowsById,_i=Dt.column,Ii=Dt.getRowId,ta=Dt.getSubRows,Ji=Dt.accessValueHooks,k=Dt.getInstance;Xn.forEach(function(ve,Le){return function Ye(ot,Lt,an,nr,vr){an===void 0&&(an=0);var $r=ot,Fr=Ii(ot,Lt,nr),qr=ti[Fr];if(qr)qr.subRows&&qr.originalSubRows.forEach(function(vi,Mi){return Ye(vi,Mi,an+1,qr)});else if((qr={id:Fr,original:$r,index:Lt,depth:an,cells:[{}]}).cells.map=ie,qr.cells.filter=ie,qr.cells.forEach=ie,qr.cells[0].getCellProps=ie,qr.values={},vr.push(qr),Nr.push(qr),ti[Fr]=qr,qr.originalSubRows=ta(ot,Lt),qr.originalSubRows){var jr=[];qr.originalSubRows.forEach(function(vi,Mi){return Ye(vi,Mi,an+1,qr,jr)}),qr.subRows=jr}_i.accessor&&(qr.values[_i.id]=_i.accessor(ot,Lt,qr,vr,Xn)),qr.values[_i.id]=R(Ji,qr.values[_i.id],{row:qr,column:_i,instance:k()})}(ve,Le,0,void 0,Tr)})}E.resetExpanded="resetExpanded",E.toggleRowExpanded="toggleRowExpanded",E.toggleAllRowsExpanded="toggleAllRowsExpanded";var Pn=function(Dt){Dt.getToggleAllRowsExpandedProps=[rn],Dt.getToggleRowExpandedProps=[Vt],Dt.stateReducers.push(Kn),Dt.useInstance.push(ur),Dt.prepareRow.push(on)};Pn.pluginName="useExpanded";var rn=function(Dt,Xn){var Tr=Xn.instance;return[Dt,{onClick:function(Nr){Tr.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},Vt=function(Dt,Xn){var Tr=Xn.row;return[Dt,{onClick:function(){Tr.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function Kn(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({expanded:{}},Dt);if(Xn.type===E.resetExpanded)return f({},Dt,{expanded:Nr.initialState.expanded||{}});if(Xn.type===E.toggleAllRowsExpanded){var ti=Xn.value,_i=Nr.rowsById,Ii=Object.keys(_i).length===Object.keys(Dt.expanded).length;if(ti!==void 0?ti:!Ii){var ta={};return Object.keys(_i).forEach(function(Lt){ta[Lt]=!0}),f({},Dt,{expanded:ta})}return f({},Dt,{expanded:{}})}if(Xn.type===E.toggleRowExpanded){var Ji,k=Xn.id,ve=Xn.value,Le=Dt.expanded[k],Ye=ve!==void 0?ve:!Le;if(!Le&&Ye)return f({},Dt,{expanded:f({},Dt.expanded,(Ji={},Ji[k]=!0,Ji))});if(Le&&!Ye){var ot=Dt.expanded;return ot[k],f({},Dt,{expanded:p(ot,[k].map(h))})}return Dt}}function ur(Dt){var Xn=Dt.data,Tr=Dt.rows,Nr=Dt.rowsById,ti=Dt.manualExpandedKey,_i=ti===void 0?"expanded":ti,Ii=Dt.paginateExpandedRows,ta=Ii===void 0||Ii,Ji=Dt.expandSubRows,k=Ji===void 0||Ji,ve=Dt.autoResetExpanded,Le=ve===void 0||ve,Ye=Dt.getHooks,ot=Dt.plugins,Lt=Dt.state.expanded,an=Dt.dispatch;L(ot,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var nr=I(Le),vr=!!(Object.keys(Nr).length&&Object.keys(Lt).length);vr&&Object.keys(Nr).some(function(ra){return!Lt[ra]})&&(vr=!1),$(function(){nr()&&an({type:E.resetExpanded})},[an,Xn]);var $r=g.useCallback(function(ra,Yi){an({type:E.toggleRowExpanded,id:ra,value:Yi})},[an]),Fr=g.useCallback(function(ra){return an({type:E.toggleAllRowsExpanded,value:ra})},[an]),qr=g.useMemo(function(){return ta?B(Tr,{manualExpandedKey:_i,expanded:Lt,expandSubRows:k}):Tr},[ta,Tr,_i,Lt,k]),jr=g.useMemo(function(){return function(ra){var Yi=0;return Object.keys(ra).forEach(function(ua){var Sa=ua.split(".");Yi=Math.max(Yi,Sa.length)}),Yi}(Lt)},[Lt]),vi=I(Dt),Mi=O(Ye().getToggleAllRowsExpandedProps,{instance:vi()});Object.assign(Dt,{preExpandedRows:Tr,expandedRows:qr,rows:qr,expandedDepth:jr,isAllRowsExpanded:vr,toggleRowExpanded:$r,toggleAllRowsExpanded:Fr,getToggleAllRowsExpandedProps:Mi})}function on(Dt,Xn){var Tr=Xn.instance.getHooks,Nr=Xn.instance;Dt.toggleRowExpanded=function(ti){return Nr.toggleRowExpanded(Dt.id,ti)},Dt.getToggleRowExpandedProps=O(Tr().getToggleRowExpandedProps,{instance:Nr,row:Dt})}var tr=function(Dt,Xn,Tr){return Dt=Dt.filter(function(Nr){return Xn.some(function(ti){var _i=Nr.values[ti];return String(_i).toLowerCase().includes(String(Tr).toLowerCase())})})};tr.autoRemove=function(Dt){return!Dt};var Cn=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){var _i=Nr.values[ti];return _i===void 0||String(_i).toLowerCase()===String(Tr).toLowerCase()})})};Cn.autoRemove=function(Dt){return!Dt};var Wn=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){var _i=Nr.values[ti];return _i===void 0||String(_i)===String(Tr)})})};Wn.autoRemove=function(Dt){return!Dt};var er=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){return Nr.values[ti].includes(Tr)})})};er.autoRemove=function(Dt){return!Dt||!Dt.length};var Fn=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){var _i=Nr.values[ti];return _i&&_i.length&&Tr.every(function(Ii){return _i.includes(Ii)})})})};Fn.autoRemove=function(Dt){return!Dt||!Dt.length};var en=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){var _i=Nr.values[ti];return _i&&_i.length&&Tr.some(function(Ii){return _i.includes(Ii)})})})};en.autoRemove=function(Dt){return!Dt||!Dt.length};var gn=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){var _i=Nr.values[ti];return Tr.includes(_i)})})};gn.autoRemove=function(Dt){return!Dt||!Dt.length};var kn=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){return Nr.values[ti]===Tr})})};kn.autoRemove=function(Dt){return Dt===void 0};var Jn=function(Dt,Xn,Tr){return Dt.filter(function(Nr){return Xn.some(function(ti){return Nr.values[ti]==Tr})})};Jn.autoRemove=function(Dt){return Dt==null};var Nn=function(Dt,Xn,Tr){var Nr=Tr||[],ti=Nr[0],_i=Nr[1];if((ti=typeof ti=="number"?ti:-1/0)>(_i=typeof _i=="number"?_i:1/0)){var Ii=ti;ti=_i,_i=Ii}return Dt.filter(function(ta){return Xn.some(function(Ji){var k=ta.values[Ji];return k>=ti&&k<=_i})})};Nn.autoRemove=function(Dt){return!Dt||typeof Dt[0]!="number"&&typeof Dt[1]!="number"};var kr=Object.freeze({__proto__:null,text:tr,exactText:Cn,exactTextCase:Wn,includes:er,includesAll:Fn,includesSome:en,includesValue:gn,exact:kn,equals:Jn,between:Nn});E.resetFilters="resetFilters",E.setFilter="setFilter",E.setAllFilters="setAllFilters";var bt=function(Dt){Dt.stateReducers.push(ne),Dt.useInstance.push(fe)};function ne(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({filters:[]},Dt);if(Xn.type===E.resetFilters)return f({},Dt,{filters:Nr.initialState.filters||[]});if(Xn.type===E.setFilter){var ti=Xn.columnId,_i=Xn.filterValue,Ii=Nr.allColumns,ta=Nr.filterTypes,Ji=Ii.find(function(an){return an.id===ti});if(!Ji)throw new Error("React-Table: Could not find a column with id: "+ti);var k=X(Ji.filter,ta||{},kr),ve=Dt.filters.find(function(an){return an.id===ti}),Le=j(_i,ve&&ve.value);return ue(k.autoRemove,Le,Ji)?f({},Dt,{filters:Dt.filters.filter(function(an){return an.id!==ti})}):f({},Dt,ve?{filters:Dt.filters.map(function(an){return an.id===ti?{id:ti,value:Le}:an})}:{filters:[].concat(Dt.filters,[{id:ti,value:Le}])})}if(Xn.type===E.setAllFilters){var Ye=Xn.filters,ot=Nr.allColumns,Lt=Nr.filterTypes;return f({},Dt,{filters:j(Ye,Dt.filters).filter(function(an){var nr=ot.find(function(vr){return vr.id===an.id});return!ue(X(nr.filter,Lt||{},kr).autoRemove,an.value,nr)})})}}function fe(Dt){var Xn=Dt.data,Tr=Dt.rows,Nr=Dt.flatRows,ti=Dt.rowsById,_i=Dt.allColumns,Ii=Dt.filterTypes,ta=Dt.manualFilters,Ji=Dt.defaultCanFilter,k=Ji!==void 0&&Ji,ve=Dt.disableFilters,Le=Dt.state.filters,Ye=Dt.dispatch,ot=Dt.autoResetFilters,Lt=ot===void 0||ot,an=g.useCallback(function(vi,Mi){Ye({type:E.setFilter,columnId:vi,filterValue:Mi})},[Ye]),nr=g.useCallback(function(vi){Ye({type:E.setAllFilters,filters:vi})},[Ye]);_i.forEach(function(vi){var Mi=vi.id,ra=vi.accessor,Yi=vi.defaultCanFilter,ua=vi.disableFilters;vi.canFilter=ra?te(ua!==!0&&void 0,ve!==!0&&void 0,!0):te(Yi,k,!1),vi.setFilter=function(Xt){return an(vi.id,Xt)};var Sa=Le.find(function(Xt){return Xt.id===Mi});vi.filterValue=Sa&&Sa.value});var vr=g.useMemo(function(){if(ta||!Le.length)return[Tr,Nr,ti];var vi=[],Mi={};return[function ra(Yi,ua){ua===void 0&&(ua=0);var Sa=Yi;return(Sa=Le.reduce(function(Xt,V){var Y=V.id,D=V.value,P=_i.find(function(Ie){return Ie.id===Y});if(!P)return Xt;ua===0&&(P.preFilteredRows=Xt);var oe=X(P.filter,Ii||{},kr);return oe?(P.filteredRows=oe(Xt,[Y],D),P.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+P.id+"."),Xt)},Yi)).forEach(function(Xt){vi.push(Xt),Mi[Xt.id]=Xt,Xt.subRows&&(Xt.subRows=Xt.subRows&&Xt.subRows.length>0?ra(Xt.subRows,ua+1):Xt.subRows)}),Sa}(Tr),vi,Mi]},[ta,Le,Tr,Nr,ti,_i,Ii]),$r=vr[0],Fr=vr[1],qr=vr[2];g.useMemo(function(){_i.filter(function(vi){return!Le.find(function(Mi){return Mi.id===vi.id})}).forEach(function(vi){vi.preFilteredRows=$r,vi.filteredRows=$r})},[$r,Le,_i]);var jr=I(Lt);$(function(){jr()&&Ye({type:E.resetFilters})},[Ye,ta?null:Xn]),Object.assign(Dt,{preFilteredRows:Tr,preFilteredFlatRows:Nr,preFilteredRowsById:ti,filteredRows:$r,filteredFlatRows:Fr,filteredRowsById:qr,rows:$r,flatRows:Fr,rowsById:qr,setFilter:an,setAllFilters:nr})}bt.pluginName="useFilters",E.resetGlobalFilter="resetGlobalFilter",E.setGlobalFilter="setGlobalFilter";var K=function(Dt){Dt.stateReducers.push(he),Dt.useInstance.push(Fe)};function he(Dt,Xn,Tr,Nr){if(Xn.type===E.resetGlobalFilter)return f({},Dt,{globalFilter:Nr.initialState.globalFilter||void 0});if(Xn.type===E.setGlobalFilter){var ti=Xn.filterValue,_i=Nr.userFilterTypes,Ii=X(Nr.globalFilter,_i||{},kr),ta=j(ti,Dt.globalFilter);return ue(Ii.autoRemove,ta)?(Dt.globalFilter,p(Dt,["globalFilter"])):f({},Dt,{globalFilter:ta})}}function Fe(Dt){var Xn=Dt.data,Tr=Dt.rows,Nr=Dt.flatRows,ti=Dt.rowsById,_i=Dt.allColumns,Ii=Dt.filterTypes,ta=Dt.globalFilter,Ji=Dt.manualGlobalFilter,k=Dt.state.globalFilter,ve=Dt.dispatch,Le=Dt.autoResetGlobalFilter,Ye=Le===void 0||Le,ot=Dt.disableGlobalFilter,Lt=g.useCallback(function(qr){ve({type:E.setGlobalFilter,filterValue:qr})},[ve]),an=g.useMemo(function(){if(Ji||k===void 0)return[Tr,Nr,ti];var qr=[],jr={},vi=X(ta,Ii||{},kr);if(!vi)return console.warn("Could not find a valid 'globalFilter' option."),Tr;_i.forEach(function(ra){var Yi=ra.disableGlobalFilter;ra.canFilter=te(Yi!==!0&&void 0,ot!==!0&&void 0,!0)});var Mi=_i.filter(function(ra){return ra.canFilter===!0});return[function ra(Yi){return(Yi=vi(Yi,Mi.map(function(ua){return ua.id}),k)).forEach(function(ua){qr.push(ua),jr[ua.id]=ua,ua.subRows=ua.subRows&&ua.subRows.length?ra(ua.subRows):ua.subRows}),Yi}(Tr),qr,jr]},[Ji,k,ta,Ii,_i,Tr,Nr,ti,ot]),nr=an[0],vr=an[1],$r=an[2],Fr=I(Ye);$(function(){Fr()&&ve({type:E.resetGlobalFilter})},[ve,Ji?null:Xn]),Object.assign(Dt,{preGlobalFilteredRows:Tr,preGlobalFilteredFlatRows:Nr,preGlobalFilteredRowsById:ti,globalFilteredRows:nr,globalFilteredFlatRows:vr,globalFilteredRowsById:$r,rows:nr,flatRows:vr,rowsById:$r,setGlobalFilter:Lt,disableGlobalFilter:ot})}function Nt(Dt,Xn){return Xn.reduce(function(Tr,Nr){return Tr+(typeof Nr=="number"?Nr:0)},0)}K.pluginName="useGlobalFilter";var ln=Object.freeze({__proto__:null,sum:Nt,min:function(Dt){var Xn=Dt[0]||0;return Dt.forEach(function(Tr){typeof Tr=="number"&&(Xn=Math.min(Xn,Tr))}),Xn},max:function(Dt){var Xn=Dt[0]||0;return Dt.forEach(function(Tr){typeof Tr=="number"&&(Xn=Math.max(Xn,Tr))}),Xn},minMax:function(Dt){var Xn=Dt[0]||0,Tr=Dt[0]||0;return Dt.forEach(function(Nr){typeof Nr=="number"&&(Xn=Math.min(Xn,Nr),Tr=Math.max(Tr,Nr))}),Xn+".."+Tr},average:function(Dt){return Nt(0,Dt)/Dt.length},median:function(Dt){if(!Dt.length)return null;var Xn=Math.floor(Dt.length/2),Tr=[].concat(Dt).sort(function(Nr,ti){return Nr-ti});return Dt.length%2!=0?Tr[Xn]:(Tr[Xn-1]+Tr[Xn])/2},unique:function(Dt){return Array.from(new Set(Dt).values())},uniqueCount:function(Dt){return new Set(Dt).size},count:function(Dt){return Dt.length}}),pn=[],Yn={};E.resetGroupBy="resetGroupBy",E.setGroupBy="setGroupBy",E.toggleGroupBy="toggleGroupBy";var ht=function(Dt){Dt.getGroupByToggleProps=[De],Dt.stateReducers.push(we),Dt.visibleColumnsDeps.push(function(Xn,Tr){var Nr=Tr.instance;return[].concat(Xn,[Nr.state.groupBy])}),Dt.visibleColumns.push(Ke),Dt.useInstance.push(pt),Dt.prepareRow.push(We)};ht.pluginName="useGroupBy";var De=function(Dt,Xn){var Tr=Xn.header;return[Dt,{onClick:Tr.canGroupBy?function(Nr){Nr.persist(),Tr.toggleGroupBy()}:void 0,style:{cursor:Tr.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function we(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({groupBy:[]},Dt);if(Xn.type===E.resetGroupBy)return f({},Dt,{groupBy:Nr.initialState.groupBy||[]});if(Xn.type===E.setGroupBy)return f({},Dt,{groupBy:Xn.value});if(Xn.type===E.toggleGroupBy){var ti=Xn.columnId,_i=Xn.value,Ii=_i!==void 0?_i:!Dt.groupBy.includes(ti);return f({},Dt,Ii?{groupBy:[].concat(Dt.groupBy,[ti])}:{groupBy:Dt.groupBy.filter(function(ta){return ta!==ti})})}}function Ke(Dt,Xn){var Tr=Xn.instance.state.groupBy,Nr=Tr.map(function(_i){return Dt.find(function(Ii){return Ii.id===_i})}).filter(Boolean),ti=Dt.filter(function(_i){return!Tr.includes(_i.id)});return(Dt=[].concat(Nr,ti)).forEach(function(_i){_i.isGrouped=Tr.includes(_i.id),_i.groupedIndex=Tr.indexOf(_i.id)}),Dt}var be={};function pt(Dt){var Xn=Dt.data,Tr=Dt.rows,Nr=Dt.flatRows,ti=Dt.rowsById,_i=Dt.allColumns,Ii=Dt.flatHeaders,ta=Dt.groupByFn,Ji=ta===void 0?Je:ta,k=Dt.manualGroupBy,ve=Dt.aggregations,Le=ve===void 0?be:ve,Ye=Dt.plugins,ot=Dt.state.groupBy,Lt=Dt.dispatch,an=Dt.autoResetGroupBy,nr=an===void 0||an,vr=Dt.disableGroupBy,$r=Dt.defaultCanGroupBy,Fr=Dt.getHooks;L(Ye,["useColumnOrder","useFilters"],"useGroupBy");var qr=I(Dt);_i.forEach(function(P){var oe=P.accessor,Ie=P.defaultGroupBy,Ue=P.disableGroupBy;P.canGroupBy=oe?te(P.canGroupBy,Ue!==!0&&void 0,vr!==!0&&void 0,!0):te(P.canGroupBy,Ie,$r,!1),P.canGroupBy&&(P.toggleGroupBy=function(){return Dt.toggleGroupBy(P.id)}),P.Aggregated=P.Aggregated||P.Cell});var jr=g.useCallback(function(P,oe){Lt({type:E.toggleGroupBy,columnId:P,value:oe})},[Lt]),vi=g.useCallback(function(P){Lt({type:E.setGroupBy,value:P})},[Lt]);Ii.forEach(function(P){P.getGroupByToggleProps=O(Fr().getGroupByToggleProps,{instance:qr(),header:P})});var Mi=g.useMemo(function(){if(k||!ot.length)return[Tr,Nr,ti,pn,Yn,Nr,ti];var P=ot.filter(function(Vn){return _i.find(function(qn){return qn.id===Vn})}),oe=[],Ie={},Ue=[],Xe={},dt=[],kt={},dn=function Vn(qn,yr,ci){if(yr===void 0&&(yr=0),yr===P.length)return qn.map(function(Vi){return f({},Vi,{depth:yr})});var hi=P[yr],Ti=Ji(qn,hi);return Object.entries(Ti).map(function(Vi,Di){var Pi=Vi[0],mt=Vi[1],tn=hi+":"+Pi,or=Vn(mt,yr+1,tn=ci?ci+">"+tn:tn),rt=yr?T(mt,"leafRows"):mt,St=function(vn,Ln,_r){var Br={};return _i.forEach(function(Kr){if(P.includes(Kr.id))Br[Kr.id]=Ln[0]?Ln[0].values[Kr.id]:null;else{var Jr=typeof Kr.aggregate=="function"?Kr.aggregate:Le[Kr.aggregate]||ln[Kr.aggregate];if(Jr){var ii=Ln.map(function(Ae){return Ae.values[Kr.id]}),le=vn.map(function(Ae){var Oe=Ae.values[Kr.id];if(!_r&&Kr.aggregateValue){var et=typeof Kr.aggregateValue=="function"?Kr.aggregateValue:Le[Kr.aggregateValue]||ln[Kr.aggregateValue];if(!et)throw console.info({column:Kr}),new Error("React Table: Invalid column.aggregateValue option for column listed above");Oe=et(Oe,Ae,Kr)}return Oe});Br[Kr.id]=Jr(le,ii)}else{if(Kr.aggregate)throw console.info({column:Kr}),new Error("React Table: Invalid column.aggregate option for column listed above");Br[Kr.id]=null}}}),Br}(rt,mt,yr),_n={id:tn,isGrouped:!0,groupByID:hi,groupByVal:Pi,values:St,subRows:or,leafRows:rt,depth:yr,index:Di};return or.forEach(function(vn){oe.push(vn),Ie[vn.id]=vn,vn.isGrouped?(Ue.push(vn),Xe[vn.id]=vn):(dt.push(vn),kt[vn.id]=vn)}),_n})}(Tr);return dn.forEach(function(Vn){oe.push(Vn),Ie[Vn.id]=Vn,Vn.isGrouped?(Ue.push(Vn),Xe[Vn.id]=Vn):(dt.push(Vn),kt[Vn.id]=Vn)}),[dn,oe,Ie,Ue,Xe,dt,kt]},[k,ot,Tr,Nr,ti,_i,Le,Ji]),ra=Mi[0],Yi=Mi[1],ua=Mi[2],Sa=Mi[3],Xt=Mi[4],V=Mi[5],Y=Mi[6],D=I(nr);$(function(){D()&&Lt({type:E.resetGroupBy})},[Lt,k?null:Xn]),Object.assign(Dt,{preGroupedRows:Tr,preGroupedFlatRow:Nr,preGroupedRowsById:ti,groupedRows:ra,groupedFlatRows:Yi,groupedRowsById:ua,onlyGroupedFlatRows:Sa,onlyGroupedRowsById:Xt,nonGroupedFlatRows:V,nonGroupedRowsById:Y,rows:ra,flatRows:Yi,rowsById:ua,toggleGroupBy:jr,setGroupBy:vi})}function We(Dt){Dt.allCells.forEach(function(Xn){var Tr;Xn.isGrouped=Xn.column.isGrouped&&Xn.column.id===Dt.groupByID,Xn.isPlaceholder=!Xn.isGrouped&&Xn.column.isGrouped,Xn.isAggregated=!Xn.isGrouped&&!Xn.isPlaceholder&&((Tr=Dt.subRows)==null?void 0:Tr.length)})}function Je(Dt,Xn){return Dt.reduce(function(Tr,Nr,ti){var _i=""+Nr.values[Xn];return Tr[_i]=Array.isArray(Tr[_i])?Tr[_i]:[],Tr[_i].push(Nr),Tr},{})}var ye=/([0-9]+)/gm;function Qe(Dt,Xn){return Dt===Xn?0:Dt>Xn?1:-1}function ze(Dt,Xn,Tr){return[Dt.values[Tr],Xn.values[Tr]]}function qe(Dt){return typeof Dt=="number"?isNaN(Dt)||Dt===1/0||Dt===-1/0?"":String(Dt):typeof Dt=="string"?Dt:""}var Pt=Object.freeze({__proto__:null,alphanumeric:function(Dt,Xn,Tr){var Nr=ze(Dt,Xn,Tr),ti=Nr[0],_i=Nr[1];for(ti=qe(ti),_i=qe(_i),ti=ti.split(ye).filter(Boolean),_i=_i.split(ye).filter(Boolean);ti.length&&_i.length;){var Ii=ti.shift(),ta=_i.shift(),Ji=parseInt(Ii,10),k=parseInt(ta,10),ve=[Ji,k].sort();if(isNaN(ve[0])){if(Ii>ta)return 1;if(ta>Ii)return-1}else{if(isNaN(ve[1]))return isNaN(Ji)?-1:1;if(Ji>k)return 1;if(k>Ji)return-1}}return ti.length-_i.length},datetime:function(Dt,Xn,Tr){var Nr=ze(Dt,Xn,Tr),ti=Nr[0],_i=Nr[1];return Qe(ti=ti.getTime(),_i=_i.getTime())},basic:function(Dt,Xn,Tr){var Nr=ze(Dt,Xn,Tr);return Qe(Nr[0],Nr[1])},string:function(Dt,Xn,Tr){var Nr=ze(Dt,Xn,Tr),ti=Nr[0],_i=Nr[1];for(ti=ti.split("").filter(Boolean),_i=_i.split("").filter(Boolean);ti.length&&_i.length;){var Ii=ti.shift(),ta=_i.shift(),Ji=Ii.toLowerCase(),k=ta.toLowerCase();if(Ji>k)return 1;if(k>Ji)return-1;if(Ii>ta)return 1;if(ta>Ii)return-1}return ti.length-_i.length},number:function(Dt,Xn,Tr){var Nr=ze(Dt,Xn,Tr),ti=Nr[0],_i=Nr[1],Ii=/[^0-9.]/gi;return Qe(ti=Number(String(ti).replace(Ii,"")),_i=Number(String(_i).replace(Ii,"")))}});E.resetSortBy="resetSortBy",E.setSortBy="setSortBy",E.toggleSortBy="toggleSortBy",E.clearSortBy="clearSortBy",S.sortType="alphanumeric",S.sortDescFirst=!1;var zt=function(Dt){Dt.getSortByToggleProps=[un],Dt.stateReducers.push(hn),Dt.useInstance.push(xt)};zt.pluginName="useSortBy";var un=function(Dt,Xn){var Tr=Xn.instance,Nr=Xn.column,ti=Tr.isMultiSortEvent,_i=ti===void 0?function(Ii){return Ii.shiftKey}:ti;return[Dt,{onClick:Nr.canSort?function(Ii){Ii.persist(),Nr.toggleSortBy(void 0,!Tr.disableMultiSort&&_i(Ii))}:void 0,style:{cursor:Nr.canSort?"pointer":void 0},title:Nr.canSort?"Toggle SortBy":void 0}]};function hn(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({sortBy:[]},Dt);if(Xn.type===E.resetSortBy)return f({},Dt,{sortBy:Nr.initialState.sortBy||[]});if(Xn.type===E.clearSortBy)return f({},Dt,{sortBy:Dt.sortBy.filter(function(qr){return qr.id!==Xn.columnId})});if(Xn.type===E.setSortBy)return f({},Dt,{sortBy:Xn.sortBy});if(Xn.type===E.toggleSortBy){var ti,_i=Xn.columnId,Ii=Xn.desc,ta=Xn.multi,Ji=Nr.allColumns,k=Nr.disableMultiSort,ve=Nr.disableSortRemove,Le=Nr.disableMultiRemove,Ye=Nr.maxMultiSortColCount,ot=Ye===void 0?Number.MAX_SAFE_INTEGER:Ye,Lt=Dt.sortBy,an=Ji.find(function(qr){return qr.id===_i}).sortDescFirst,nr=Lt.find(function(qr){return qr.id===_i}),vr=Lt.findIndex(function(qr){return qr.id===_i}),$r=Ii!=null,Fr=[];return(ti=!k&&ta?nr?"toggle":"add":vr!==Lt.length-1||Lt.length!==1?"replace":nr?"toggle":"replace")!="toggle"||ve||$r||ta&&Le||!(nr&&nr.desc&&!an||!nr.desc&&an)||(ti="remove"),ti==="replace"?Fr=[{id:_i,desc:$r?Ii:an}]:ti==="add"?(Fr=[].concat(Lt,[{id:_i,desc:$r?Ii:an}])).splice(0,Fr.length-ot):ti==="toggle"?Fr=Lt.map(function(qr){return qr.id===_i?f({},qr,{desc:$r?Ii:!nr.desc}):qr}):ti==="remove"&&(Fr=Lt.filter(function(qr){return qr.id!==_i})),f({},Dt,{sortBy:Fr})}}function xt(Dt){var Xn=Dt.data,Tr=Dt.rows,Nr=Dt.flatRows,ti=Dt.allColumns,_i=Dt.orderByFn,Ii=_i===void 0?_t:_i,ta=Dt.sortTypes,Ji=Dt.manualSortBy,k=Dt.defaultCanSort,ve=Dt.disableSortBy,Le=Dt.flatHeaders,Ye=Dt.state.sortBy,ot=Dt.dispatch,Lt=Dt.plugins,an=Dt.getHooks,nr=Dt.autoResetSortBy,vr=nr===void 0||nr;L(Lt,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var $r=g.useCallback(function(Yi){ot({type:E.setSortBy,sortBy:Yi})},[ot]),Fr=g.useCallback(function(Yi,ua,Sa){ot({type:E.toggleSortBy,columnId:Yi,desc:ua,multi:Sa})},[ot]),qr=I(Dt);Le.forEach(function(Yi){var ua=Yi.accessor,Sa=Yi.canSort,Xt=Yi.disableSortBy,V=Yi.id,Y=ua?te(Xt!==!0&&void 0,ve!==!0&&void 0,!0):te(k,Sa,!1);Yi.canSort=Y,Yi.canSort&&(Yi.toggleSortBy=function(P,oe){return Fr(Yi.id,P,oe)},Yi.clearSortBy=function(){ot({type:E.clearSortBy,columnId:Yi.id})}),Yi.getSortByToggleProps=O(an().getSortByToggleProps,{instance:qr(),column:Yi});var D=Ye.find(function(P){return P.id===V});Yi.isSorted=!!D,Yi.sortedIndex=Ye.findIndex(function(P){return P.id===V}),Yi.isSortedDesc=Yi.isSorted?D.desc:void 0});var jr=g.useMemo(function(){if(Ji||!Ye.length)return[Tr,Nr];var Yi=[],ua=Ye.filter(function(Sa){return ti.find(function(Xt){return Xt.id===Sa.id})});return[function Sa(Xt){var V=Ii(Xt,ua.map(function(Y){var D=ti.find(function(Ie){return Ie.id===Y.id});if(!D)throw new Error("React-Table: Could not find a column with id: "+Y.id+" while sorting");var P=D.sortType,oe=A(P)||(ta||{})[P]||Pt[P];if(!oe)throw new Error("React-Table: Could not find a valid sortType of '"+P+"' for column '"+Y.id+"'.");return function(Ie,Ue){return oe(Ie,Ue,Y.id,Y.desc)}}),ua.map(function(Y){var D=ti.find(function(P){return P.id===Y.id});return D&&D.sortInverted?Y.desc:!Y.desc}));return V.forEach(function(Y){Yi.push(Y),Y.subRows&&Y.subRows.length!==0&&(Y.subRows=Sa(Y.subRows))}),V}(Tr),Yi]},[Ji,Ye,Tr,Nr,ti,Ii,ta]),vi=jr[0],Mi=jr[1],ra=I(vr);$(function(){ra()&&ot({type:E.resetSortBy})},[Ji?null:Xn]),Object.assign(Dt,{preSortedRows:Tr,preSortedFlatRows:Nr,sortedRows:vi,sortedFlatRows:Mi,rows:vi,flatRows:Mi,setSortBy:$r,toggleSortBy:Fr})}function _t(Dt,Xn,Tr){return[].concat(Dt).sort(function(Nr,ti){for(var _i=0;_i<Xn.length;_i+=1){var Ii=Xn[_i],ta=Tr[_i]===!1||Tr[_i]==="desc",Ji=Ii(Nr,ti);if(Ji!==0)return ta?-Ji:Ji}return Tr[0]?Nr.index-ti.index:ti.index-Nr.index})}E.resetPage="resetPage",E.gotoPage="gotoPage",E.setPageSize="setPageSize";var qt=function(Dt){Dt.stateReducers.push(fn),Dt.useInstance.push(On)};function fn(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({pageSize:10,pageIndex:0},Dt);if(Xn.type===E.resetPage)return f({},Dt,{pageIndex:Nr.initialState.pageIndex||0});if(Xn.type===E.gotoPage){var ti=Nr.pageCount,_i=Nr.page,Ii=j(Xn.pageIndex,Dt.pageIndex),ta=!1;return Ii>Dt.pageIndex?ta=ti===-1?_i.length>=Dt.pageSize:Ii<ti:Ii<Dt.pageIndex&&(ta=Ii>-1),ta?f({},Dt,{pageIndex:Ii}):Dt}if(Xn.type===E.setPageSize){var Ji=Xn.pageSize,k=Dt.pageSize*Dt.pageIndex;return f({},Dt,{pageIndex:Math.floor(k/Ji),pageSize:Ji})}}function On(Dt){var Xn=Dt.rows,Tr=Dt.autoResetPage,Nr=Tr===void 0||Tr,ti=Dt.manualExpandedKey,_i=ti===void 0?"expanded":ti,Ii=Dt.plugins,ta=Dt.pageCount,Ji=Dt.paginateExpandedRows,k=Ji===void 0||Ji,ve=Dt.expandSubRows,Le=ve===void 0||ve,Ye=Dt.state,ot=Ye.pageSize,Lt=Ye.pageIndex,an=Ye.expanded,nr=Ye.globalFilter,vr=Ye.filters,$r=Ye.groupBy,Fr=Ye.sortBy,qr=Dt.dispatch,jr=Dt.data,vi=Dt.manualPagination;L(Ii,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var Mi=I(Nr);$(function(){Mi()&&qr({type:E.resetPage})},[qr,vi?null:jr,nr,vr,$r,Fr]);var ra=vi?ta:Math.ceil(Xn.length/ot),Yi=g.useMemo(function(){return ra>0?[].concat(new Array(ra)).fill(null).map(function(oe,Ie){return Ie}):[]},[ra]),ua=g.useMemo(function(){var oe;if(vi)oe=Xn;else{var Ie=ot*Lt,Ue=Ie+ot;oe=Xn.slice(Ie,Ue)}return k?oe:B(oe,{manualExpandedKey:_i,expanded:an,expandSubRows:Le})},[Le,an,_i,vi,Lt,ot,k,Xn]),Sa=Lt>0,Xt=ra===-1?ua.length>=ot:Lt<ra-1,V=g.useCallback(function(oe){qr({type:E.gotoPage,pageIndex:oe})},[qr]),Y=g.useCallback(function(){return V(function(oe){return oe-1})},[V]),D=g.useCallback(function(){return V(function(oe){return oe+1})},[V]),P=g.useCallback(function(oe){qr({type:E.setPageSize,pageSize:oe})},[qr]);Object.assign(Dt,{pageOptions:Yi,pageCount:ra,page:ua,canPreviousPage:Sa,canNextPage:Xt,gotoPage:V,previousPage:Y,nextPage:D,setPageSize:P})}qt.pluginName="usePagination",E.resetPivot="resetPivot",E.togglePivot="togglePivot";var Gn=function(Dt){Dt.getPivotToggleProps=[Lr],Dt.stateReducers.push(An),Dt.useInstanceAfterData.push(Un),Dt.allColumns.push(cr),Dt.accessValue.push(mr),Dt.materializedColumns.push(hr),Dt.materializedColumnsDeps.push(ar),Dt.visibleColumns.push(Cr),Dt.visibleColumnsDeps.push(Yr),Dt.useInstance.push(Xr),Dt.prepareRow.push(ni)};Gn.pluginName="usePivotColumns";var Bn=[],Lr=function(Dt,Xn){var Tr=Xn.header;return[Dt,{onClick:Tr.canPivot?function(Nr){Nr.persist(),Tr.togglePivot()}:void 0,style:{cursor:Tr.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function An(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({pivotColumns:Bn},Dt);if(Xn.type===E.resetPivot)return f({},Dt,{pivotColumns:Nr.initialState.pivotColumns||Bn});if(Xn.type===E.togglePivot){var ti=Xn.columnId,_i=Xn.value,Ii=_i!==void 0?_i:!Dt.pivotColumns.includes(ti);return f({},Dt,Ii?{pivotColumns:[].concat(Dt.pivotColumns,[ti])}:{pivotColumns:Dt.pivotColumns.filter(function(ta){return ta!==ti})})}}function Un(Dt){Dt.allColumns.forEach(function(Xn){Xn.isPivotSource=Dt.state.pivotColumns.includes(Xn.id)})}function cr(Dt,Xn){var Tr=Xn.instance;return Dt.forEach(function(Nr){Nr.isPivotSource=Tr.state.pivotColumns.includes(Nr.id),Nr.uniqueValues=new Set}),Dt}function mr(Dt,Xn){var Tr=Xn.column;return Tr.uniqueValues&&Dt!==void 0&&Tr.uniqueValues.add(Dt),Dt}function hr(Dt,Xn){var Tr=Xn.instance,Nr=Tr.allColumns,ti=Tr.state;if(!ti.pivotColumns.length||!ti.groupBy||!ti.groupBy.length)return Dt;var _i=ti.pivotColumns.map(function(Ji){return Nr.find(function(k){return k.id===Ji})}).filter(Boolean),Ii=Nr.filter(function(Ji){return!Ji.isPivotSource&&!ti.groupBy.includes(Ji.id)&&!ti.pivotColumns.includes(Ji.id)}),ta=z(function Ji(k,ve,Le){k===void 0&&(k=0),Le===void 0&&(Le=[]);var Ye=_i[k];return Ye?Array.from(Ye.uniqueValues).sort().map(function(ot){var Lt=f({},Ye,{Header:Ye.PivotHeader||typeof Ye.header=="string"?Ye.Header+": "+ot:ot,isPivotGroup:!0,parent:ve,depth:k,id:ve?ve.id+"."+Ye.id+"."+ot:Ye.id+"."+ot,pivotValue:ot});return Lt.columns=Ji(k+1,Lt,[].concat(Le,[function(an){return an.values[Ye.id]===ot}])),Lt}):Ii.map(function(ot){return f({},ot,{canPivot:!1,isPivoted:!0,parent:ve,depth:k,id:""+(ve?ve.id+"."+ot.id:ot.id),accessor:function(Lt,an,nr){if(Le.every(function(vr){return vr(nr)}))return nr.values[ot.id]}})})}());return[].concat(Dt,ta)}function ar(Dt,Xn){var Tr=Xn.instance.state,Nr=Tr.pivotColumns,ti=Tr.groupBy;return[].concat(Dt,[Nr,ti])}function Cr(Dt,Xn){var Tr=Xn.instance.state;return Dt=Dt.filter(function(Nr){return!Nr.isPivotSource}),Tr.pivotColumns.length&&Tr.groupBy&&Tr.groupBy.length&&(Dt=Dt.filter(function(Nr){return Nr.isGrouped||Nr.isPivoted})),Dt}function Yr(Dt,Xn){var Tr=Xn.instance;return[].concat(Dt,[Tr.state.pivotColumns,Tr.state.groupBy])}function Xr(Dt){var Xn=Dt.columns,Tr=Dt.allColumns,Nr=Dt.flatHeaders,ti=Dt.getHooks,_i=Dt.plugins,Ii=Dt.dispatch,ta=Dt.autoResetPivot,Ji=ta===void 0||ta,k=Dt.manaulPivot,ve=Dt.disablePivot,Le=Dt.defaultCanPivot;L(_i,["useGroupBy"],"usePivotColumns");var Ye=I(Dt);Tr.forEach(function(Lt){var an=Lt.accessor,nr=Lt.defaultPivot,vr=Lt.disablePivot;Lt.canPivot=an?te(Lt.canPivot,vr!==!0&&void 0,ve!==!0&&void 0,!0):te(Lt.canPivot,nr,Le,!1),Lt.canPivot&&(Lt.togglePivot=function(){return Dt.togglePivot(Lt.id)}),Lt.Aggregated=Lt.Aggregated||Lt.Cell}),Nr.forEach(function(Lt){Lt.getPivotToggleProps=O(ti().getPivotToggleProps,{instance:Ye(),header:Lt})});var ot=I(Ji);$(function(){ot()&&Ii({type:E.resetPivot})},[Ii,k?null:Xn]),Object.assign(Dt,{togglePivot:function(Lt,an){Ii({type:E.togglePivot,columnId:Lt,value:an})}})}function ni(Dt){Dt.allCells.forEach(function(Xn){Xn.isPivoted=Xn.column.isPivoted})}E.resetSelectedRows="resetSelectedRows",E.toggleAllRowsSelected="toggleAllRowsSelected",E.toggleRowSelected="toggleRowSelected",E.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var ki=function(Dt){Dt.getToggleRowSelectedProps=[zr],Dt.getToggleAllRowsSelectedProps=[Ur],Dt.getToggleAllPageRowsSelectedProps=[jt],Dt.stateReducers.push(sn),Dt.useInstance.push(Rn),Dt.prepareRow.push(H)};ki.pluginName="useRowSelect";var zr=function(Dt,Xn){var Tr=Xn.instance,Nr=Xn.row,ti=Tr.manualRowSelectedKey,_i=ti===void 0?"isSelected":ti;return[Dt,{onChange:function(Ii){Nr.toggleRowSelected(Ii.target.checked)},style:{cursor:"pointer"},checked:!(!Nr.original||!Nr.original[_i])||Nr.isSelected,title:"Toggle Row Selected",indeterminate:Nr.isSomeSelected}]},Ur=function(Dt,Xn){var Tr=Xn.instance;return[Dt,{onChange:function(Nr){Tr.toggleAllRowsSelected(Nr.target.checked)},style:{cursor:"pointer"},checked:Tr.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:!!(!Tr.isAllRowsSelected&&Object.keys(Tr.state.selectedRowIds).length)}]},jt=function(Dt,Xn){var Tr=Xn.instance;return[Dt,{onChange:function(Nr){Tr.toggleAllPageRowsSelected(Nr.target.checked)},style:{cursor:"pointer"},checked:Tr.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:!!(!Tr.isAllPageRowsSelected&&Tr.page.some(function(Nr){var ti=Nr.id;return Tr.state.selectedRowIds[ti]}))}]};function sn(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({selectedRowIds:{}},Dt);if(Xn.type===E.resetSelectedRows)return f({},Dt,{selectedRowIds:Nr.initialState.selectedRowIds||{}});if(Xn.type===E.toggleAllRowsSelected){var ti=Xn.value,_i=Nr.isAllRowsSelected,Ii=Nr.rowsById,ta=Nr.nonGroupedRowsById,Ji=ta===void 0?Ii:ta,k=ti!==void 0?ti:!_i,ve=Object.assign({},Dt.selectedRowIds);return k?Object.keys(Ji).forEach(function(V){ve[V]=!0}):Object.keys(Ji).forEach(function(V){delete ve[V]}),f({},Dt,{selectedRowIds:ve})}if(Xn.type===E.toggleRowSelected){var Le=Xn.id,Ye=Xn.value,ot=Nr.rowsById,Lt=Nr.selectSubRows,an=Lt===void 0||Lt,nr=Nr.getSubRows,vr=Dt.selectedRowIds[Le],$r=Ye!==void 0?Ye:!vr;if(vr===$r)return Dt;var Fr=f({},Dt.selectedRowIds);return function V(Y){var D=ot[Y];if(D&&(D.isGrouped||($r?Fr[Y]=!0:delete Fr[Y]),an&&nr(D)))return nr(D).forEach(function(P){return V(P.id)})}(Le),f({},Dt,{selectedRowIds:Fr})}if(Xn.type===E.toggleAllPageRowsSelected){var qr=Xn.value,jr=Nr.page,vi=Nr.rowsById,Mi=Nr.selectSubRows,ra=Mi===void 0||Mi,Yi=Nr.isAllPageRowsSelected,ua=Nr.getSubRows,Sa=qr!==void 0?qr:!Yi,Xt=f({},Dt.selectedRowIds);return jr.forEach(function(V){return function Y(D){var P=vi[D];if(P.isGrouped||(Sa?Xt[D]=!0:delete Xt[D]),ra&&ua(P))return ua(P).forEach(function(oe){return Y(oe.id)})}(V.id)}),f({},Dt,{selectedRowIds:Xt})}return Dt}function Rn(Dt){var Xn=Dt.data,Tr=Dt.rows,Nr=Dt.getHooks,ti=Dt.plugins,_i=Dt.rowsById,Ii=Dt.nonGroupedRowsById,ta=Ii===void 0?_i:Ii,Ji=Dt.autoResetSelectedRows,k=Ji===void 0||Ji,ve=Dt.state.selectedRowIds,Le=Dt.selectSubRows,Ye=Le===void 0||Le,ot=Dt.dispatch,Lt=Dt.page,an=Dt.getSubRows;L(ti,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var nr=g.useMemo(function(){var ua=[];return Tr.forEach(function(Sa){var Xt=Ye?function V(Y,D,P){if(D[Y.id])return!0;var oe=P(Y);if(oe&&oe.length){var Ie=!0,Ue=!1;return oe.forEach(function(Xe){Ue&&!Ie||(V(Xe,D,P)?Ue=!0:Ie=!1)}),!!Ie||!!Ue&&null}return!1}(Sa,ve,an):!!ve[Sa.id];Sa.isSelected=!!Xt,Sa.isSomeSelected=Xt===null,Xt&&ua.push(Sa)}),ua},[Tr,Ye,ve,an]),vr=!!(Object.keys(ta).length&&Object.keys(ve).length),$r=vr;vr&&Object.keys(ta).some(function(ua){return!ve[ua]})&&(vr=!1),vr||Lt&&Lt.length&&Lt.some(function(ua){var Sa=ua.id;return!ve[Sa]})&&($r=!1);var Fr=I(k);$(function(){Fr()&&ot({type:E.resetSelectedRows})},[ot,Xn]);var qr=g.useCallback(function(ua){return ot({type:E.toggleAllRowsSelected,value:ua})},[ot]),jr=g.useCallback(function(ua){return ot({type:E.toggleAllPageRowsSelected,value:ua})},[ot]),vi=g.useCallback(function(ua,Sa){return ot({type:E.toggleRowSelected,id:ua,value:Sa})},[ot]),Mi=I(Dt),ra=O(Nr().getToggleAllRowsSelectedProps,{instance:Mi()}),Yi=O(Nr().getToggleAllPageRowsSelectedProps,{instance:Mi()});Object.assign(Dt,{selectedFlatRows:nr,isAllRowsSelected:vr,isAllPageRowsSelected:$r,toggleRowSelected:vi,toggleAllRowsSelected:qr,getToggleAllRowsSelectedProps:ra,getToggleAllPageRowsSelectedProps:Yi,toggleAllPageRowsSelected:jr})}function H(Dt,Xn){var Tr=Xn.instance;Dt.toggleRowSelected=function(Nr){return Tr.toggleRowSelected(Dt.id,Nr)},Dt.getToggleRowSelectedProps=O(Tr.getHooks().getToggleRowSelectedProps,{instance:Tr,row:Dt})}var Be=function(Dt){return{}},wn=function(Dt){return{}};E.setRowState="setRowState",E.setCellState="setCellState",E.resetRowState="resetRowState";var bi=function(Dt){Dt.stateReducers.push(Oi),Dt.useInstance.push(de),Dt.prepareRow.push(Ve)};function Oi(Dt,Xn,Tr,Nr){var ti=Nr.initialRowStateAccessor,_i=ti===void 0?Be:ti,Ii=Nr.initialCellStateAccessor,ta=Ii===void 0?wn:Ii,Ji=Nr.rowsById;if(Xn.type===E.init)return f({rowState:{}},Dt);if(Xn.type===E.resetRowState)return f({},Dt,{rowState:Nr.initialState.rowState||{}});if(Xn.type===E.setRowState){var k,ve=Xn.rowId,Le=Xn.value,Ye=Dt.rowState[ve]!==void 0?Dt.rowState[ve]:_i(Ji[ve]);return f({},Dt,{rowState:f({},Dt.rowState,(k={},k[ve]=j(Le,Ye),k))})}if(Xn.type===E.setCellState){var ot,Lt,an,nr,vr,$r=Xn.rowId,Fr=Xn.columnId,qr=Xn.value,jr=Dt.rowState[$r]!==void 0?Dt.rowState[$r]:_i(Ji[$r]),vi=(jr==null||(ot=jr.cellState)==null?void 0:ot[Fr])!==void 0?jr.cellState[Fr]:ta((Lt=Ji[$r])==null||(an=Lt.cells)==null?void 0:an.find(function(Mi){return Mi.column.id===Fr}));return f({},Dt,{rowState:f({},Dt.rowState,(vr={},vr[$r]=f({},jr,{cellState:f({},jr.cellState||{},(nr={},nr[Fr]=j(qr,vi),nr))}),vr))})}}function de(Dt){var Xn=Dt.autoResetRowState,Tr=Xn===void 0||Xn,Nr=Dt.data,ti=Dt.dispatch,_i=g.useCallback(function(Ji,k){return ti({type:E.setRowState,rowId:Ji,value:k})},[ti]),Ii=g.useCallback(function(Ji,k,ve){return ti({type:E.setCellState,rowId:Ji,columnId:k,value:ve})},[ti]),ta=I(Tr);$(function(){ta()&&ti({type:E.resetRowState})},[Nr]),Object.assign(Dt,{setRowState:_i,setCellState:Ii})}function Ve(Dt,Xn){var Tr=Xn.instance,Nr=Tr.initialRowStateAccessor,ti=Nr===void 0?Be:Nr,_i=Tr.initialCellStateAccessor,Ii=_i===void 0?wn:_i,ta=Tr.state.rowState;Dt&&(Dt.state=ta[Dt.id]!==void 0?ta[Dt.id]:ti(Dt),Dt.setState=function(Ji){return Tr.setRowState(Dt.id,Ji)},Dt.cells.forEach(function(Ji){Dt.state.cellState||(Dt.state.cellState={}),Ji.state=Dt.state.cellState[Ji.column.id]!==void 0?Dt.state.cellState[Ji.column.id]:Ii(Ji),Ji.setState=function(k){return Tr.setCellState(Dt.id,Ji.column.id,k)}}))}bi.pluginName="useRowState",E.resetColumnOrder="resetColumnOrder",E.setColumnOrder="setColumnOrder";var vt=function(Dt){Dt.stateReducers.push(Qt),Dt.visibleColumnsDeps.push(function(Xn,Tr){var Nr=Tr.instance;return[].concat(Xn,[Nr.state.columnOrder])}),Dt.visibleColumns.push(nt),Dt.useInstance.push(Tt)};function Qt(Dt,Xn,Tr,Nr){return Xn.type===E.init?f({columnOrder:[]},Dt):Xn.type===E.resetColumnOrder?f({},Dt,{columnOrder:Nr.initialState.columnOrder||[]}):Xn.type===E.setColumnOrder?f({},Dt,{columnOrder:j(Xn.columnOrder,Dt.columnOrder)}):void 0}function nt(Dt,Xn){var Tr=Xn.instance.state.columnOrder;if(!Tr||!Tr.length)return Dt;for(var Nr=[].concat(Tr),ti=[].concat(Dt),_i=[],Ii=function(){var ta=Nr.shift(),Ji=ti.findIndex(function(k){return k.id===ta});Ji>-1&&_i.push(ti.splice(Ji,1)[0])};ti.length&&Nr.length;)Ii();return[].concat(_i,ti)}function Tt(Dt){var Xn=Dt.dispatch;Dt.setColumnOrder=g.useCallback(function(Tr){return Xn({type:E.setColumnOrder,columnOrder:Tr})},[Xn])}vt.pluginName="useColumnOrder",S.canResize=!0,E.columnStartResizing="columnStartResizing",E.columnResizing="columnResizing",E.columnDoneResizing="columnDoneResizing",E.resetResize="resetResize";var Gt=function(Dt){Dt.getResizerProps=[En],Dt.getHeaderProps.push({style:{position:"relative"}}),Dt.stateReducers.push(Qn),Dt.useInstance.push(Pr),Dt.useInstanceBeforeDimensions.push(Or)},En=function(Dt,Xn){var Tr=Xn.instance,Nr=Xn.header,ti=Tr.dispatch,_i=function(Ii,ta){var Ji=!1;if(Ii.type==="touchstart"){if(Ii.touches&&Ii.touches.length>1)return;Ji=!0}var k,ve,Le=function(Fr){var qr=[];return function jr(vi){vi.columns&&vi.columns.length&&vi.columns.map(jr),qr.push(vi)}(Fr),qr}(ta).map(function(Fr){return[Fr.id,Fr.totalWidth]}),Ye=Ji?Math.round(Ii.touches[0].clientX):Ii.clientX,ot=function(){window.cancelAnimationFrame(k),k=null,ti({type:E.columnDoneResizing})},Lt=function(){window.cancelAnimationFrame(k),k=null,ti({type:E.columnResizing,clientX:ve})},an=function(Fr){ve=Fr,k||(k=window.requestAnimationFrame(Lt))},nr={mouse:{moveEvent:"mousemove",moveHandler:function(Fr){return an(Fr.clientX)},upEvent:"mouseup",upHandler:function(Fr){document.removeEventListener("mousemove",nr.mouse.moveHandler),document.removeEventListener("mouseup",nr.mouse.upHandler),ot()}},touch:{moveEvent:"touchmove",moveHandler:function(Fr){return Fr.cancelable&&(Fr.preventDefault(),Fr.stopPropagation()),an(Fr.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(Fr){document.removeEventListener(nr.touch.moveEvent,nr.touch.moveHandler),document.removeEventListener(nr.touch.upEvent,nr.touch.moveHandler),ot()}}},vr=Ji?nr.touch:nr.mouse,$r=!!function(){if(typeof Te=="boolean")return Te;var Fr=!1;try{var qr={get passive(){return Fr=!0,!1}};window.addEventListener("test",null,qr),window.removeEventListener("test",null,qr)}catch{Fr=!1}return Te=Fr}()&&{passive:!1};document.addEventListener(vr.moveEvent,vr.moveHandler,$r),document.addEventListener(vr.upEvent,vr.upHandler,$r),ti({type:E.columnStartResizing,columnId:ta.id,columnWidth:ta.totalWidth,headerIdWidths:Le,clientX:Ye})};return[Dt,{onMouseDown:function(Ii){return Ii.persist()||_i(Ii,Nr)},onTouchStart:function(Ii){return Ii.persist()||_i(Ii,Nr)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Qn(Dt,Xn){if(Xn.type===E.init)return f({columnResizing:{columnWidths:{}}},Dt);if(Xn.type===E.resetResize)return f({},Dt,{columnResizing:{columnWidths:{}}});if(Xn.type===E.columnStartResizing){var Tr=Xn.clientX,Nr=Xn.columnId,ti=Xn.columnWidth,_i=Xn.headerIdWidths;return f({},Dt,{columnResizing:f({},Dt.columnResizing,{startX:Tr,headerIdWidths:_i,columnWidth:ti,isResizingColumn:Nr})})}if(Xn.type===E.columnResizing){var Ii=Xn.clientX,ta=Dt.columnResizing,Ji=ta.startX,k=ta.columnWidth,ve=ta.headerIdWidths,Le=(Ii-Ji)/k,Ye={};return(ve===void 0?[]:ve).forEach(function(ot){var Lt=ot[0],an=ot[1];Ye[Lt]=Math.max(an+an*Le,0)}),f({},Dt,{columnResizing:f({},Dt.columnResizing,{columnWidths:f({},Dt.columnResizing.columnWidths,{},Ye)})})}return Xn.type===E.columnDoneResizing?f({},Dt,{columnResizing:f({},Dt.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Gt.pluginName="useResizeColumns";var Or=function(Dt){var Xn=Dt.flatHeaders,Tr=Dt.disableResizing,Nr=Dt.getHooks,ti=Dt.state.columnResizing,_i=I(Dt);Xn.forEach(function(Ii){var ta=te(Ii.disableResizing!==!0&&void 0,Tr!==!0&&void 0,!0);Ii.canResize=ta,Ii.width=ti.columnWidths[Ii.id]||Ii.originalWidth||Ii.width,Ii.isResizing=ti.isResizingColumn===Ii.id,ta&&(Ii.getResizerProps=O(Nr().getResizerProps,{instance:_i(),header:Ii}))})};function Pr(Dt){var Xn=Dt.plugins,Tr=Dt.dispatch,Nr=Dt.autoResetResize,ti=Nr===void 0||Nr,_i=Dt.columns;L(Xn,["useAbsoluteLayout"],"useResizeColumns");var Ii=I(ti);$(function(){Ii()&&Tr({type:E.resetResize})},[_i]);var ta=g.useCallback(function(){return Tr({type:E.resetResize})},[Tr]);Object.assign(Dt,{resetResizing:ta})}var ai={position:"absolute",top:0},xi=function(Dt){Dt.getTableBodyProps.push(mi),Dt.getRowProps.push(mi),Dt.getHeaderGroupProps.push(mi),Dt.getFooterGroupProps.push(mi),Dt.getHeaderProps.push(function(Xn,Tr){var Nr=Tr.column;return[Xn,{style:f({},ai,{left:Nr.totalLeft+"px",width:Nr.totalWidth+"px"})}]}),Dt.getCellProps.push(function(Xn,Tr){var Nr=Tr.cell;return[Xn,{style:f({},ai,{left:Nr.column.totalLeft+"px",width:Nr.column.totalWidth+"px"})}]}),Dt.getFooterProps.push(function(Xn,Tr){var Nr=Tr.column;return[Xn,{style:f({},ai,{left:Nr.totalLeft+"px",width:Nr.totalWidth+"px"})}]})};xi.pluginName="useAbsoluteLayout";var mi=function(Dt,Xn){return[Dt,{style:{position:"relative",width:Xn.instance.totalColumnsWidth+"px"}}]},ei={display:"inline-block",boxSizing:"border-box"},Qr=function(Dt,Xn){return[Dt,{style:{display:"flex",width:Xn.instance.totalColumnsWidth+"px"}}]},Ni=function(Dt){Dt.getRowProps.push(Qr),Dt.getHeaderGroupProps.push(Qr),Dt.getFooterGroupProps.push(Qr),Dt.getHeaderProps.push(function(Xn,Tr){var Nr=Tr.column;return[Xn,{style:f({},ei,{width:Nr.totalWidth+"px"})}]}),Dt.getCellProps.push(function(Xn,Tr){var Nr=Tr.cell;return[Xn,{style:f({},ei,{width:Nr.column.totalWidth+"px"})}]}),Dt.getFooterProps.push(function(Xn,Tr){var Nr=Tr.column;return[Xn,{style:f({},ei,{width:Nr.totalWidth+"px"})}]})};function ea(Dt){Dt.getTableProps.push(Qi),Dt.getRowProps.push(ir),Dt.getHeaderGroupProps.push(ir),Dt.getFooterGroupProps.push(ir),Dt.getHeaderProps.push(xr),Dt.getCellProps.push(di),Dt.getFooterProps.push(ft)}Ni.pluginName="useBlockLayout",ea.pluginName="useFlexLayout";var Qi=function(Dt,Xn){return[Dt,{style:{minWidth:Xn.instance.totalColumnsMinWidth+"px"}}]},ir=function(Dt,Xn){return[Dt,{style:{display:"flex",flex:"1 0 auto",minWidth:Xn.instance.totalColumnsMinWidth+"px"}}]},xr=function(Dt,Xn){var Tr=Xn.column;return[Dt,{style:{boxSizing:"border-box",flex:Tr.totalFlexWidth?Tr.totalFlexWidth+" 0 auto":void 0,minWidth:Tr.totalMinWidth+"px",width:Tr.totalWidth+"px"}}]},di=function(Dt,Xn){var Tr=Xn.cell;return[Dt,{style:{boxSizing:"border-box",flex:Tr.column.totalFlexWidth+" 0 auto",minWidth:Tr.column.totalMinWidth+"px",width:Tr.column.totalWidth+"px"}}]},ft=function(Dt,Xn){var Tr=Xn.column;return[Dt,{style:{boxSizing:"border-box",flex:Tr.totalFlexWidth?Tr.totalFlexWidth+" 0 auto":void 0,minWidth:Tr.totalMinWidth+"px",width:Tr.totalWidth+"px"}}]};function zn(Dt){Dt.stateReducers.push(wa),Dt.getTableProps.push(Zn),Dt.getHeaderProps.push(wi),Dt.getRowProps.push(Ea)}E.columnStartResizing="columnStartResizing",E.columnResizing="columnResizing",E.columnDoneResizing="columnDoneResizing",E.resetResize="resetResize",zn.pluginName="useGridLayout";var Zn=function(Dt,Xn){var Tr=Xn.instance;return[Dt,{style:{display:"grid",gridTemplateColumns:Tr.visibleColumns.map(function(Nr){var ti;return Tr.state.gridLayout.columnWidths[Nr.id]?Tr.state.gridLayout.columnWidths[Nr.id]+"px":(ti=Tr.state.columnResizing)!=null&&ti.isResizingColumn?Tr.state.gridLayout.startWidths[Nr.id]+"px":typeof Nr.width=="number"?Nr.width+"px":Nr.width}).join(" ")}}]},wi=function(Dt,Xn){var Tr=Xn.column;return[Dt,{id:"header-cell-"+Tr.id,style:{position:"sticky",gridColumn:"span "+Tr.totalVisibleHeaderCount}}]},Ea=function(Dt,Xn){var Tr=Xn.row;return Tr.isExpanded?[Dt,{style:{gridColumn:"1 / "+(Tr.cells.length+1)}}]:[Dt,{}]};function wa(Dt,Xn,Tr,Nr){if(Xn.type===E.init)return f({gridLayout:{columnWidths:{}}},Dt);if(Xn.type===E.resetResize)return f({},Dt,{gridLayout:{columnWidths:{}}});if(Xn.type===E.columnStartResizing){var ti=Xn.columnId,_i=Xn.headerIdWidths,Ii=ji(ti);if(Ii!==void 0){var ta=Nr.visibleColumns.reduce(function(qr,jr){var vi;return f({},qr,((vi={})[jr.id]=ji(jr.id),vi))},{}),Ji=Nr.visibleColumns.reduce(function(qr,jr){var vi;return f({},qr,((vi={})[jr.id]=jr.minWidth,vi))},{}),k=Nr.visibleColumns.reduce(function(qr,jr){var vi;return f({},qr,((vi={})[jr.id]=jr.maxWidth,vi))},{}),ve=_i.map(function(qr){var jr=qr[0];return[jr,ji(jr)]});return f({},Dt,{gridLayout:f({},Dt.gridLayout,{startWidths:ta,minWidths:Ji,maxWidths:k,headerIdGridWidths:ve,columnWidth:Ii})})}return Dt}if(Xn.type===E.columnResizing){var Le=Xn.clientX,Ye=Dt.columnResizing.startX,ot=Dt.gridLayout,Lt=ot.columnWidth,an=ot.minWidths,nr=ot.maxWidths,vr=ot.headerIdGridWidths,$r=(Le-Ye)/Lt,Fr={};return(vr===void 0?[]:vr).forEach(function(qr){var jr=qr[0],vi=qr[1];Fr[jr]=Math.min(Math.max(an[jr],vi+vi*$r),nr[jr])}),f({},Dt,{gridLayout:f({},Dt.gridLayout,{columnWidths:f({},Dt.gridLayout.columnWidths,{},Fr)})})}return Xn.type===E.columnDoneResizing?f({},Dt,{gridLayout:f({},Dt.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function ji(Dt){var Xn,Tr=(Xn=document.getElementById("header-cell-"+Dt))==null?void 0:Xn.offsetWidth;if(Tr!==void 0)return Tr}l._UNSTABLE_usePivotColumns=Gn,l.actions=E,l.defaultColumn=S,l.defaultGroupByFn=Je,l.defaultOrderByFn=_t,l.defaultRenderer=v,l.emptyRenderer=m,l.ensurePluginOrder=L,l.flexRender=re,l.functionalUpdate=j,l.loopHooks=C,l.makePropGetter=O,l.makeRenderer=ee,l.reduceHooks=R,l.safeUseLayoutEffect=U,l.useAbsoluteLayout=xi,l.useAsyncDebounce=function(Dt,Xn){Xn===void 0&&(Xn=0);var Tr=g.useRef({}),Nr=I(Dt),ti=I(Xn);return g.useCallback(function(){var _i=x(regeneratorRuntime.mark(function Ii(){var ta,Ji,k,ve=arguments;return regeneratorRuntime.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:for(ta=ve.length,Ji=new Array(ta),k=0;k<ta;k++)Ji[k]=ve[k];return Tr.current.promise||(Tr.current.promise=new Promise(function(Ye,ot){Tr.current.resolve=Ye,Tr.current.reject=ot})),Tr.current.timeout&&clearTimeout(Tr.current.timeout),Tr.current.timeout=setTimeout(x(regeneratorRuntime.mark(function Ye(){return regeneratorRuntime.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return delete Tr.current.timeout,ot.prev=1,ot.t0=Tr.current,ot.next=5,Nr().apply(void 0,Ji);case 5:ot.t1=ot.sent,ot.t0.resolve.call(ot.t0,ot.t1),ot.next=12;break;case 9:ot.prev=9,ot.t2=ot.catch(1),Tr.current.reject(ot.t2);case 12:return ot.prev=12,delete Tr.current.promise,ot.finish(12);case 15:case"end":return ot.stop()}},Ye,null,[[1,9,12,15]])})),ti()),Le.abrupt("return",Tr.current.promise);case 5:case"end":return Le.stop()}},Ii)}));return function(){return _i.apply(this,arguments)}}(),[Nr,ti])},l.useBlockLayout=Ni,l.useColumnOrder=vt,l.useExpanded=Pn,l.useFilters=bt,l.useFlexLayout=ea,l.useGetLatest=I,l.useGlobalFilter=K,l.useGridLayout=zn,l.useGroupBy=ht,l.useMountedLayoutEffect=$,l.usePagination=qt,l.useResizeColumns=Gt,l.useRowSelect=ki,l.useRowState=bi,l.useSortBy=zt,l.useTable=function(Dt){for(var Xn=arguments.length,Tr=new Array(Xn>1?Xn-1:0),Nr=1;Nr<Xn;Nr++)Tr[Nr-1]=arguments[Nr];Dt=Et(Dt),Tr=[bn].concat(Tr);var ti=g.useRef({}),_i=I(ti.current);Object.assign(_i(),f({},Dt,{plugins:Tr,hooks:Tn()})),Tr.filter(Boolean).forEach(function(Xe){Xe(_i().hooks)});var Ii=I(_i().hooks);_i().getHooks=Ii,delete _i().hooks,Object.assign(_i(),R(Ii().useOptions,Et(Dt)));var ta=_i(),Ji=ta.data,k=ta.columns,ve=ta.initialState,Le=ta.defaultColumn,Ye=ta.getSubRows,ot=ta.getRowId,Lt=ta.stateReducer,an=ta.useControlledState,nr=I(Lt),vr=g.useCallback(function(Xe,dt){if(!dt.type)throw console.info({action:dt}),new Error("Unknown Action \u{1F446}");return[].concat(Ii().stateReducers,Array.isArray(nr())?nr():[nr()]).reduce(function(kt,dn){return dn(kt,dt,Xe,_i())||kt},Xe)},[Ii,nr,_i]),$r=g.useReducer(vr,void 0,function(){return vr(ve,{type:E.init})}),Fr=$r[0],qr=$r[1],jr=R([].concat(Ii().useControlledState,[an]),Fr,{instance:_i()});Object.assign(_i(),{state:jr,dispatch:qr});var vi=g.useMemo(function(){return Se(R(Ii().columns,k,{instance:_i()}))},[Ii,_i,k].concat(R(Ii().columnsDeps,[],{instance:_i()})));_i().columns=vi;var Mi=g.useMemo(function(){return R(Ii().allColumns,z(vi),{instance:_i()}).map(Q)},[vi,Ii,_i].concat(R(Ii().allColumnsDeps,[],{instance:_i()})));_i().allColumns=Mi;var ra=g.useMemo(function(){for(var Xe=[],dt=[],kt={},dn=[].concat(Mi);dn.length;){var Vn=dn.shift();nn({data:Ji,rows:Xe,flatRows:dt,rowsById:kt,column:Vn,getRowId:ot,getSubRows:Ye,accessValueHooks:Ii().accessValue,getInstance:_i})}return[Xe,dt,kt]},[Mi,Ji,ot,Ye,Ii,_i]),Yi=ra[0],ua=ra[1],Sa=ra[2];Object.assign(_i(),{rows:Yi,initialRows:[].concat(Yi),flatRows:ua,rowsById:Sa}),C(Ii().useInstanceAfterData,_i());var Xt=g.useMemo(function(){return R(Ii().visibleColumns,Mi,{instance:_i()}).map(function(Xe){return ce(Xe,Le)})},[Ii,Mi,_i,Le].concat(R(Ii().visibleColumnsDeps,[],{instance:_i()})));Mi=g.useMemo(function(){var Xe=[].concat(Xt);return Mi.forEach(function(dt){Xe.find(function(kt){return kt.id===dt.id})||Xe.push(dt)}),Xe},[Mi,Xt]),_i().allColumns=Mi;var V=g.useMemo(function(){return R(Ii().headerGroups,se(Xt,Le),_i())},[Ii,Xt,Le,_i].concat(R(Ii().headerGroupsDeps,[],{instance:_i()})));_i().headerGroups=V;var Y=g.useMemo(function(){return V.length?V[0].headers:[]},[V]);_i().headers=Y,_i().flatHeaders=V.reduce(function(Xe,dt){return[].concat(Xe,dt.headers)},[]),C(Ii().useInstanceBeforeDimensions,_i());var D=Xt.filter(function(Xe){return Xe.isVisible}).map(function(Xe){return Xe.id}).sort().join("_");Xt=g.useMemo(function(){return Xt.filter(function(Xe){return Xe.isVisible})},[Xt,D]),_i().visibleColumns=Xt;var P=Zt(Y),oe=P[0],Ie=P[1],Ue=P[2];return _i().totalColumnsMinWidth=oe,_i().totalColumnsWidth=Ie,_i().totalColumnsMaxWidth=Ue,C(Ii().useInstance,_i()),[].concat(_i().flatHeaders,_i().allColumns).forEach(function(Xe){Xe.render=ee(_i(),Xe),Xe.getHeaderProps=O(Ii().getHeaderProps,{instance:_i(),column:Xe}),Xe.getFooterProps=O(Ii().getFooterProps,{instance:_i(),column:Xe})}),_i().headerGroups=g.useMemo(function(){return V.filter(function(Xe,dt){return Xe.headers=Xe.headers.filter(function(kt){return kt.headers?function dn(Vn){return Vn.filter(function(qn){return qn.headers?dn(qn.headers):qn.isVisible}).length}(kt.headers):kt.isVisible}),!!Xe.headers.length&&(Xe.getHeaderGroupProps=O(Ii().getHeaderGroupProps,{instance:_i(),headerGroup:Xe,index:dt}),Xe.getFooterGroupProps=O(Ii().getFooterGroupProps,{instance:_i(),headerGroup:Xe,index:dt}),!0)})},[V,_i,Ii]),_i().footerGroups=[].concat(_i().headerGroups).reverse(),_i().prepareRow=g.useCallback(function(Xe){Xe.getRowProps=O(Ii().getRowProps,{instance:_i(),row:Xe}),Xe.allCells=Mi.map(function(dt){var kt=Xe.values[dt.id],dn={column:dt,row:Xe,value:kt};return dn.getCellProps=O(Ii().getCellProps,{instance:_i(),cell:dn}),dn.render=ee(_i(),dt,{row:Xe,cell:dn,value:kt}),dn}),Xe.cells=Xt.map(function(dt){return Xe.allCells.find(function(kt){return kt.column.id===dt.id})}),C(Ii().prepareRow,Xe,{instance:_i()})},[Ii,_i,Mi,Xt]),_i().getTableProps=O(Ii().getTableProps,{instance:_i()}),_i().getTableBodyProps=O(Ii().getTableBodyProps,{instance:_i()}),C(Ii().useFinalInstance,_i()),_i()},Object.defineProperty(l,"__esModule",{value:!0})})},28848:(Ge,w,u)=>{var l=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT <https://opensource.org/licenses/MIT> * @author Lea Verou <https://lea.verou.me> * @namespace * @public */var g=function(y){var x=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,f=0,p={},h={manual:y.Prism&&y.Prism.manual,disableWorkerMessageHandler:y.Prism&&y.Prism.disableWorkerMessageHandler,util:{encode:function I(U){return U instanceof E?new E(U.type,I(U.content),U.alias):Array.isArray(U)?U.map(I):U.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(I){return Object.prototype.toString.call(I).slice(8,-1)},objId:function(I){return I.__id||Object.defineProperty(I,"__id",{value:++f}),I.__id},clone:function I(U,$){$=$||{};var ee,re;switch(h.util.type(U)){case"Object":if(re=h.util.objId(U),$[re])return $[re];ee={},$[re]=ee;for(var Se in U)U.hasOwnProperty(Se)&&(ee[Se]=I(U[Se],$));return ee;case"Array":return re=h.util.objId(U),$[re]?$[re]:(ee=[],$[re]=ee,U.forEach(function(z,Q){ee[Q]=I(z,$)}),ee);default:return U}},getLanguage:function(I){for(;I;){var U=x.exec(I.className);if(U)return U[1].toLowerCase();I=I.parentElement}return"none"},setLanguage:function(I,U){I.className=I.className.replace(RegExp(x,"gi"),""),I.classList.add("language-"+U)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(ee){var I=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ee.stack)||[])[1];if(I){var U=document.getElementsByTagName("script");for(var $ in U)if(U[$].src==I)return U[$]}return null}},isActive:function(I,U,$){for(var ee="no-"+U;I;){var re=I.classList;if(re.contains(U))return!0;if(re.contains(ee))return!1;I=I.parentElement}return!!$}},languages:{plain:p,plaintext:p,text:p,txt:p,extend:function(I,U){var $=h.util.clone(h.languages[I]);for(var ee in U)$[ee]=U[ee];return $},insertBefore:function(I,U,$,ee){ee=ee||h.languages;var re=ee[I],Se={};for(var z in re)if(re.hasOwnProperty(z)){if(z==U)for(var Q in $)$.hasOwnProperty(Q)&&(Se[Q]=$[Q]);$.hasOwnProperty(z)||(Se[z]=re[z])}var ce=ee[I];return ee[I]=Se,h.languages.DFS(h.languages,function(se,q){q===ce&&se!=I&&(this[se]=Se)}),Se},DFS:function I(U,$,ee,re){re=re||{};var Se=h.util.objId;for(var z in U)if(U.hasOwnProperty(z)){$.call(U,z,U[z],ee||z);var Q=U[z],ce=h.util.type(Q);ce==="Object"&&!re[Se(Q)]?(re[Se(Q)]=!0,I(Q,$,null,re)):ce==="Array"&&!re[Se(Q)]&&(re[Se(Q)]=!0,I(Q,$,z,re))}}},plugins:{},highlightAll:function(I,U){h.highlightAllUnder(document,I,U)},highlightAllUnder:function(I,U,$){var ee={callback:$,container:I,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};h.hooks.run("before-highlightall",ee),ee.elements=Array.prototype.slice.apply(ee.container.querySelectorAll(ee.selector)),h.hooks.run("before-all-elements-highlight",ee);for(var re=0,Se;Se=ee.elements[re++];)h.highlightElement(Se,U===!0,ee.callback)},highlightElement:function(I,U,$){var ee=h.util.getLanguage(I),re=h.languages[ee];h.util.setLanguage(I,ee);var Se=I.parentElement;Se&&Se.nodeName.toLowerCase()==="pre"&&h.util.setLanguage(Se,ee);var z=I.textContent,Q={element:I,language:ee,grammar:re,code:z};function ce(q){Q.highlightedCode=q,h.hooks.run("before-insert",Q),Q.element.innerHTML=Q.highlightedCode,h.hooks.run("after-highlight",Q),h.hooks.run("complete",Q),$&&$.call(Q.element)}if(h.hooks.run("before-sanity-check",Q),Se=Q.element.parentElement,Se&&Se.nodeName.toLowerCase()==="pre"&&!Se.hasAttribute("tabindex")&&Se.setAttribute("tabindex","0"),!Q.code){h.hooks.run("complete",Q),$&&$.call(Q.element);return}if(h.hooks.run("before-highlight",Q),!Q.grammar){ce(h.util.encode(Q.code));return}if(U&&y.Worker){var se=new Worker(h.filename);se.onmessage=function(q){ce(q.data)},se.postMessage(JSON.stringify({language:Q.language,code:Q.code,immediateClose:!0}))}else ce(h.highlight(Q.code,Q.grammar,Q.language))},highlight:function(I,U,$){var ee={code:I,grammar:U,language:$};if(h.hooks.run("before-tokenize",ee),!ee.grammar)throw new Error('The language "'+ee.language+'" has no grammar.');return ee.tokens=h.tokenize(ee.code,ee.grammar),h.hooks.run("after-tokenize",ee),E.stringify(h.util.encode(ee.tokens),ee.language)},tokenize:function(I,U){var $=U.rest;if($){for(var ee in $)U[ee]=$[ee];delete U.rest}var re=new S;return d(re,re.head,I),m(I,re,U,re.head,0),R(re)},hooks:{all:{},add:function(I,U){var $=h.hooks.all;$[I]=$[I]||[],$[I].push(U)},run:function(I,U){var $=h.hooks.all[I];if(!(!$||!$.length))for(var ee=0,re;re=$[ee++];)re(U)}},Token:E};y.Prism=h;function E(I,U,$,ee){this.type=I,this.content=U,this.alias=$,this.length=(ee||"").length|0}E.stringify=function I(U,$){if(typeof U=="string")return U;if(Array.isArray(U)){var ee="";return U.forEach(function(ce){ee+=I(ce,$)}),ee}var re={type:U.type,content:I(U.content,$),tag:"span",classes:["token",U.type],attributes:{},language:$},Se=U.alias;Se&&(Array.isArray(Se)?Array.prototype.push.apply(re.classes,Se):re.classes.push(Se)),h.hooks.run("wrap",re);var z="";for(var Q in re.attributes)z+=" "+Q+'="'+(re.attributes[Q]||"").replace(/"/g,""")+'"';return"<"+re.tag+' class="'+re.classes.join(" ")+'"'+z+">"+re.content+"</"+re.tag+">"};function v(I,U,$,ee){I.lastIndex=U;var re=I.exec($);if(re&&ee&&re[1]){var Se=re[1].length;re.index+=Se,re[0]=re[0].slice(Se)}return re}function m(I,U,$,ee,re,Se){for(var z in $)if(!(!$.hasOwnProperty(z)||!$[z])){var Q=$[z];Q=Array.isArray(Q)?Q:[Q];for(var ce=0;ce<Q.length;++ce){if(Se&&Se.cause==z+","+ce)return;var se=Q[ce],q=se.inside,te=!!se.lookbehind,A=!!se.greedy,T=se.alias;if(A&&!se.pattern.global){var B=se.pattern.toString().match(/[imsuy]*$/)[0];se.pattern=RegExp(se.pattern.source,B+"g")}for(var X=se.pattern||se,ue=ee.next,ie=re;ue!==U.tail&&!(Se&&ie>=Se.reach);ie+=ue.value.length,ue=ue.next){var Te=ue.value;if(U.length>I.length)return;if(!(Te instanceof E)){var je=1,yt;if(A){if(yt=v(X,ie,I,te),!yt||yt.index>=I.length)break;var it=yt.index,tt=yt.index+yt[0].length,Ze=ie;for(Ze+=ue.value.length;it>=Ze;)ue=ue.next,Ze+=ue.value.length;if(Ze-=ue.value.length,ie=Ze,ue.value instanceof E)continue;for(var Ne=ue;Ne!==U.tail&&(Ze<tt||typeof Ne.value=="string");Ne=Ne.next)je++,Ze+=Ne.value.length;je--,Te=I.slice(ie,Ze),yt.index-=ie}else if(yt=v(X,0,Te,te),!yt)continue;var it=yt.index,Rt=yt[0],Dn=Te.slice(0,it),Mt=Te.slice(it+Rt.length),Wt=ie+Te.length;Se&&Wt>Se.reach&&(Se.reach=Wt);var Tn=ue.prev;Dn&&(Tn=d(U,Tn,Dn),ie+=Dn.length),O(U,Tn,je);var bn=new E(z,q?h.tokenize(Rt,q):Rt,T,Rt);if(ue=d(U,Tn,bn),Mt&&d(U,ue,Mt),je>1){var $t={cause:z+","+ce,reach:Wt};m(I,U,$,ue.prev,ie,$t),Se&&$t.reach>Se.reach&&(Se.reach=$t.reach)}}}}}}function S(){var I={value:null,prev:null,next:null},U={value:null,prev:I,next:null};I.next=U,this.head=I,this.tail=U,this.length=0}function d(I,U,$){var ee=U.next,re={value:$,prev:U,next:ee};return U.next=re,ee.prev=re,I.length++,re}function O(I,U,$){for(var ee=U.next,re=0;re<$&&ee!==I.tail;re++)ee=ee.next;U.next=ee,ee.prev=U,I.length-=re}function R(I){for(var U=[],$=I.head.next;$!==I.tail;)U.push($.value),$=$.next;return U}if(!y.document)return y.addEventListener&&(h.disableWorkerMessageHandler||y.addEventListener("message",function(I){var U=JSON.parse(I.data),$=U.language,ee=U.code,re=U.immediateClose;y.postMessage(h.highlight(ee,h.languages[$],$)),re&&y.close()},!1)),h;var C=h.util.currentScript();C&&(h.filename=C.src,C.hasAttribute("data-manual")&&(h.manual=!0));function L(){h.manual||h.highlightAll()}if(!h.manual){var j=document.readyState;j==="loading"||j==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",L):window.requestAnimationFrame?window.requestAnimationFrame(L):window.setTimeout(L,16)}return h}(l);Ge.exports&&(Ge.exports=g),typeof u.g<"u"&&(u.g.Prism=g),g.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},g.languages.markup.tag.inside["attr-value"].inside.entity=g.languages.markup.entity,g.languages.markup.doctype.inside["internal-subset"].inside=g.languages.markup,g.hooks.add("wrap",function(y){y.type==="entity"&&(y.attributes.title=y.content.replace(/&/,"&"))}),Object.defineProperty(g.languages.markup.tag,"addInlined",{value:function(x,f){var p={};p["language-"+f]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:g.languages[f]},p.cdata=/^<!\[CDATA\[|\]\]>$/i;var h={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:p}};h["language-"+f]={pattern:/[\s\S]+/,inside:g.languages[f]};var E={};E[x]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return x}),"i"),lookbehind:!0,greedy:!0,inside:h},g.languages.insertBefore("markup","cdata",E)}}),Object.defineProperty(g.languages.markup.tag,"addAttribute",{value:function(y,x){g.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+y+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[x,"language-"+x],inside:g.languages[x]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),g.languages.html=g.languages.markup,g.languages.mathml=g.languages.markup,g.languages.svg=g.languages.markup,g.languages.xml=g.languages.extend("markup",{}),g.languages.ssml=g.languages.xml,g.languages.atom=g.languages.xml,g.languages.rss=g.languages.xml,function(y){var x=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;y.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+x.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+x.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+x.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+x.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:x,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},y.languages.css.atrule.inside.rest=y.languages.css;var f=y.languages.markup;f&&(f.tag.addInlined("style","css"),f.tag.addAttribute("style","css"))}(g),g.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},g.languages.javascript=g.languages.extend("clike",{"class-name":[g.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),g.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,g.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:g.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:g.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:g.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:g.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:g.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),g.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:g.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),g.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),g.languages.markup&&(g.languages.markup.tag.addInlined("script","javascript"),g.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),g.languages.js=g.languages.javascript,function(){if(typeof g>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var y="Loading\u2026",x=function(C,L){return"\u2716 Error "+C+" while fetching file: "+L},f="\u2716 Error: File does not exist or is empty",p={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},h="data-src-status",E="loading",v="loaded",m="failed",S="pre[data-src]:not(["+h+'="'+v+'"]):not(['+h+'="'+E+'"])';function d(C,L,j){var I=new XMLHttpRequest;I.open("GET",C,!0),I.onreadystatechange=function(){I.readyState==4&&(I.status<400&&I.responseText?L(I.responseText):I.status>=400?j(x(I.status,I.statusText)):j(f))},I.send(null)}function O(C){var L=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(L){var j=Number(L[1]),I=L[2],U=L[3];return I?U?[j,Number(U)]:[j,void 0]:[j,j]}}g.hooks.add("before-highlightall",function(C){C.selector+=", "+S}),g.hooks.add("before-sanity-check",function(C){var L=C.element;if(L.matches(S)){C.code="",L.setAttribute(h,E);var j=L.appendChild(document.createElement("CODE"));j.textContent=y;var I=L.getAttribute("data-src"),U=C.language;if(U==="none"){var $=(/\.(\w+)$/.exec(I)||[,"none"])[1];U=p[$]||$}g.util.setLanguage(j,U),g.util.setLanguage(L,U);var ee=g.plugins.autoloader;ee&&ee.loadLanguages(U),d(I,function(re){L.setAttribute(h,v);var Se=O(L.getAttribute("data-range"));if(Se){var z=re.split(/\r\n?|\n/g),Q=Se[0],ce=Se[1]==null?z.length:Se[1];Q<0&&(Q+=z.length),Q=Math.max(0,Math.min(Q-1,z.length)),ce<0&&(ce+=z.length),ce=Math.max(0,Math.min(ce,z.length)),re=z.slice(Q,ce).join(` `),L.hasAttribute("data-start")||L.setAttribute("data-start",String(Q+1))}j.textContent=re,g.highlightElement(j)},function(re){L.setAttribute(h,m),j.textContent=re})}}),g.plugins.fileHighlight={highlight:function(L){for(var j=(L||document).querySelectorAll(S),I=0,U;U=j[I++];)g.highlightElement(U)}};var R=!1;g.fileHighlight=function(){R||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),R=!0),g.plugins.fileHighlight.highlight.apply(this,arguments)}}()},28996:function(Ge,w,u){"use strict";var l=this&&this.__values||function(m){var S=typeof Symbol=="function"&&Symbol.iterator,d=S&&m[S],O=0;if(d)return d.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&O>=m.length&&(m=void 0),{value:m&&m[O++],done:!m}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.windowToggle=void 0;var g=u(54427),y=u(69879),x=u(65212),f=u(19724),p=u(17214),h=u(5717),E=u(54830);function v(m,S){return x.operate(function(d,O){var R=[],C=function(L){for(;0<R.length;)R.shift().error(L);O.error(L)};f.innerFrom(m).subscribe(p.createOperatorSubscriber(O,function(L){var j=new g.Subject;R.push(j);var I=new y.Subscription,U=function(){E.arrRemove(R,j),j.complete(),I.unsubscribe()},$;try{$=f.innerFrom(S(L))}catch(ee){C(ee);return}O.next(j.asObservable()),I.add($.subscribe(p.createOperatorSubscriber(O,U,h.noop,C)))},h.noop)),d.subscribe(p.createOperatorSubscriber(O,function(L){var j,I,U=R.slice();try{for(var $=l(U),ee=$.next();!ee.done;ee=$.next()){var re=ee.value;re.next(L)}}catch(Se){j={error:Se}}finally{try{ee&&!ee.done&&(I=$.return)&&I.call($)}finally{if(j)throw j.error}}},function(){for(;0<R.length;)R.shift().complete();O.complete()},C,function(){for(;0<R.length;)R.shift().unsubscribe()}))})}w.windowToggle=v},29035:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.findIndex=void 0;var l=u(65212),g=u(98183);function y(x,f){return l.operate(g.createFind(x,f,"index"))}w.findIndex=y},29317:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{Editor:()=>dn,ReactPlugin:()=>dt,cloneFragment:()=>Ji,default:()=>or,findDOMNode:()=>Vn,findDOMPoint:()=>qn,findDOMRange:()=>yr,findNode:()=>ci,findPath:()=>hi,findPoint:()=>Ti,findRange:()=>Pi,getEventRange:()=>mt,getEventTransfer:()=>an,setEventTransfer:()=>qr});var l=u(96540),g=u(83175),y=u.n(g),x=u(82611);function f(rt,St){function _n(Ln,_r,Br,Kr,Jr){var ii=_r[Br];return ii==null&&!Ln?null:ii==null&&Ln?new Error("The "+Jr+" `"+Br+"` is marked as required in `"+Kr+"`, but it was not supplied."):St(ii)?null:new Error("Invalid "+Jr+" `"+Br+"` supplied to `"+Kr+"`, expected a Slate `"+rt+"` but received: "+ii)}function vn(){for(var Ln=arguments.length,_r=Array(Ln),Br=0;Br<Ln;Br++)_r[Br]=arguments[Br];return _n.apply(void 0,[!1].concat(_r))}return vn.isRequired=function(){for(var Ln=arguments.length,_r=Array(Ln),Br=0;Br<Ln;Br++)_r[Br]=arguments[Br];return _n.apply(void 0,[!0].concat(_r))},vn}var p={block:f("Block",function(rt){return x.Block.isBlock(rt)}),blocks:f("List<Block>",function(rt){return x.Block.isBlockList(rt)}),change:f("Change",function(rt){return x.Change.isChange(rt)}),data:f("Data",function(rt){return x.Data.isData(rt)}),document:f("Document",function(rt){return x.Document.isDocument(rt)}),inline:f("Inline",function(rt){return x.Inline.isInline(rt)}),inlines:f("Inline",function(rt){return x.Inline.isInlineList(rt)}),leaf:f("Leaf",function(rt){return x.Leaf.isLeaf(rt)}),leaves:f("List<Leaf>",function(rt){return x.Leaf.isLeafList(rt)}),mark:f("Mark",function(rt){return x.Mark.isMark(rt)}),marks:f("Set<Mark>",function(rt){return x.Mark.isMarkSet(rt)}),node:f("Node",function(rt){return x.Node.isNode(rt)}),nodes:f("List<Node>",function(rt){return x.Node.isNodeList(rt)}),range:f("Range",function(rt){return x.Range.isRange(rt)}),ranges:f("List<Range>",function(rt){return x.Range.isRangeList(rt)}),selection:f("Selection",function(rt){return x.Selection.isSelection(rt)}),value:f("Value",function(rt){return x.Value.isValue(rt)}),text:f("Text",function(rt){return x.Text.isText(rt)}),texts:f("List<Text>",function(rt){return x.Text.isTextList(rt)})};const h=p;var E=u(2209),v=u.n(E),m=u(85190),S=u.n(m),d=!0,O=function(rt,St){if(!d){if(rt)return;console.warn(St)}};const R=O;var C=u(27166),L=u.n(C),j=u(25718),I=u.n(j),U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(rt){return typeof rt}:function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},$=(typeof window>"u"?"undefined":U(window))==="object"&&(typeof document>"u"?"undefined":U(document))==="object"&&document.nodeType===9;const ee=$;var re=function(){function rt(St,_n){var vn=[],Ln=!0,_r=!1,Br=void 0;try{for(var Kr=St[Symbol.iterator](),Jr;!(Ln=(Jr=Kr.next()).done)&&(vn.push(Jr.value),!(_n&&vn.length===_n));Ln=!0);}catch(ii){_r=!0,Br=ii}finally{try{!Ln&&Kr.return&&Kr.return()}finally{if(_r)throw Br}}return vn}return function(St,_n){if(Array.isArray(St))return St;if(Symbol.iterator in Object(St))return rt(St,_n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Se=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]],z=void 0;if(ee){var Q=!0,ce=!1,se=void 0;try{for(var q=Se[Symbol.iterator](),te;!(Q=(te=q.next()).done);Q=!0){var A=te.value,T=re(A,2),B=T[0],X=T[1];if(X.test(window.navigator.userAgent)){z=B;break}}}catch(rt){ce=!0,se=rt}finally{try{!Q&&q.return&&q.return()}finally{if(ce)throw se}}}var ue=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]],ie=void 0;if(ee){var Te=!0,je=!1,yt=void 0;try{for(var tt=ue[Symbol.iterator](),Ze;!(Te=(Ze=tt.next()).done);Te=!0){var Ne=Ze.value,it=re(Ne,2),Rt=it[0],Dn=it[1];if(Dn.test(window.navigator.userAgent)){ie=Rt;break}}}catch(rt){je=!0,yt=rt}finally{try{!Te&&tt.return&&tt.return()}finally{if(je)throw yt}}}var Mt=[["inputeventslevel1",function(rt){var St=rt.InputEvent?new rt.InputEvent("input"):{},_n="inputType"in St;return _n}],["inputeventslevel2",function(rt){return!1}]],Wt=[];if(ee){var Tn=!0,bn=!1,$t=void 0;try{for(var Ct=Mt[Symbol.iterator](),Z;!(Tn=(Z=Ct.next()).done);Tn=!0){var me=Z.value,ke=re(me,2),Ee=ke[0],_e=ke[1];_e(window)&&Wt.push(Ee)}}catch(rt){bn=!0,$t=rt}finally{try{!Tn&&Ct.return&&Ct.return()}finally{if(bn)throw $t}}}var ge=[[/^9([.]0|)/,28],[/^8[.]1/,27],[/^8([.]0|)/,26],[/^7[.]1/,25],[/^7([.]0|)/,24],[/^6([.]0|)/,23],[/^5[.]1/,22],[/^5([.]0|)/,21],[/^4[.]4/,20]];function Me(){if(ie!=="android")return null;var rt=window.navigator.userAgent,St=rt.match(/Android\s([0-9\.]+)/);if(St==null)return null;var _n=St[1],vn=!0,Ln=!1,_r=void 0;try{for(var Br=ge[Symbol.iterator](),Kr;!(vn=(Kr=Br.next()).done);vn=!0){var Jr=Kr.value,ii=re(Jr,2),le=ii[0],Ae=ii[1];if(_n.match(le))return Ae}}catch(Oe){Ln=!0,_r=Oe}finally{try{!vn&&Br.return&&Br.return()}finally{if(Ln)throw _r}}return null}var lt=z==="chrome",Ft=z==="opera",Et=z==="firefox",Zt=z==="safari",nn=z==="ie",Pn=z==="edge",rn=ie==="android",Vt=ie==="ios",Kn=ie==="macos",ur=ie==="windows",on=Me(),tr=Wt.includes("inputeventslevel1"),Cn=Wt.includes("inputeventslevel2")||rn&&(on===28||on===null),Wn=u(7350),er=u.n(Wn),Fn=u(90179),en=u.n(Fn),gn=u(49568),kn=u(17005),Jn={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},Nn={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},kr={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:"ctrl+y"},bt={},ne=Vt||Kn,fe=!ne,K=[].concat(Object.keys(Jn)).concat(Object.keys(Nn)).concat(Object.keys(kr));K.forEach(function(rt){var St="is"+rt[0].toUpperCase()+rt.slice(1);if(!bt[St]){var _n=Jn[rt],vn=Nn[rt],Ln=kr[rt],_r=_n&&(0,kn.Sn)(_n),Br=vn&&(0,kn.Sn)(vn),Kr=Ln&&(0,kn.Sn)(Ln);bt[St]=function(Jr){return!!(_r&&_r(Jr)||ne&&Br&&Br(Jr)||fe&&Kr&&Kr(Jr))}}});const he=bt;var Fe=u(40961),Nt=u(25948);function ln(rt){var St=JSON.stringify(rt),_n=(0,Nt.E)(encodeURIComponent(St));return _n}function pn(rt){var St=decodeURIComponent((0,Nt.l)(rt)),_n=JSON.parse(St);return _n}function Yn(rt,St){var _n=pn(rt),vn=x.Value.fromJSON(_n,St);return vn}function ht(rt,St){var _n=pn(rt),vn=x.Node.fromJSON(_n,St);return vn}function De(rt,St){var _n=rt.toJSON(St),vn=ln(_n);return vn}function we(rt,St){var _n=rt.toJSON(St),vn=ln(_n);return vn}var Ke={deserialize:Yn,deserializeNode:ht,serialize:De,serializeNode:we};const be=Ke;var pt=u(75226),We=u(11561),Je=!1,ye="Invariant failed",Qe=function(rt,St){if(!rt)throw Je?new Error(ye):new Error(ye+": "+(St||""))},ze=Object.assign||function(rt){for(var St=1;St<arguments.length;St++){var _n=arguments[St];for(var vn in _n)Object.prototype.hasOwnProperty.call(_n,vn)&&(rt[vn]=_n[vn])}return rt},qe=function(){function rt(St,_n){var vn=[],Ln=!0,_r=!1,Br=void 0;try{for(var Kr=St[Symbol.iterator](),Jr;!(Ln=(Jr=Kr.next()).done)&&(vn.push(Jr.value),!(_n&&vn.length===_n));Ln=!0);}catch(ii){_r=!0,Br=ii}finally{try{!Ln&&Kr.return&&Kr.return()}finally{if(_r)throw Br}}return vn}return function(St,_n){if(Array.isArray(St))return St;if(Symbol.iterator in Object(St))return rt(St,_n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Pt=function(rt){if(Array.isArray(rt)){for(var St=0,_n=Array(rt.length);St<rt.length;St++)_n[St]=rt[St];return _n}else return Array.from(rt)},zt=0;function un(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},St=zt++,_n=rt.placeholder,vn=rt.when,Ln=rt.style,_r=Ln===void 0?{}:Ln;Qe(typeof _n=="string","You must pass `SlateReactPlaceholder` an `options.placeholder` string."),Qe(typeof vn=="string"||typeof vn=="function","You must pass `SlateReactPlaceholder` an `options.when` query.");function Br(Jr,ii,le){if(!ii.query(vn,Jr))return le();var Ae=le(),Oe=Jr.texts(),et=qe(Oe,1),Ot=et[0],It=Jr.texts({direction:"backward"}),Mn=qe(It,1),mn=Mn[0],At=qe(Ot,2),Ut=At[0],jn=At[1],Jt=qe(mn,2),dr=Jt[0],wr=Jt[1],Hr={type:"placeholder",data:{key:St},anchor:{key:Ut.key,offset:0,path:jn},focus:{key:dr.key,offset:dr.text.length,path:wr}};return[].concat(Pt(Ae),[Hr])}function Kr(Jr,ii,le){var Ae=Jr.children,Oe=Jr.decoration;if(Oe.type==="placeholder"&&Oe.data.get("key")===St){var et=ze({pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333",verticalAlign:"text-top"},_r);return l.createElement("span",null,l.createElement("span",{contentEditable:!1,style:et},_n),Ae)}return le()}return{decorateNode:Br,renderDecoration:Kr}}const hn=un;var xt=function(St,_n){return St===_n};function _t(rt,St){St===void 0&&(St=xt);var _n,vn=[],Ln,_r=!1,Br=function(ii,le){return St(ii,vn[le])},Kr=function(){for(var ii=arguments.length,le=new Array(ii),Ae=0;Ae<ii;Ae++)le[Ae]=arguments[Ae];return _r&&_n===this&&le.length===vn.length&&le.every(Br)||(Ln=rt.apply(this,le),_r=!0,_n=this,vn=le),Ln};return Kr}const qt=_t;var fn=["onBeforeInput","onBlur","onClick","onContextMenu","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onMouseDown","onMouseUp","onPaste","onSelect"],On=["decorateNode","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark"],Gn={EDITOR:"data-slate-editor",FRAGMENT:"data-slate-fragment",KEY:"data-key",LEAF:"data-slate-leaf",LENGTH:"data-slate-length",OBJECT:"data-slate-object",OFFSET_KEY:"data-offset-key",SPACER:"data-slate-spacer",STRING:"data-slate-string",TEXT:"data-slate-object",VOID:"data-slate-void",ZERO_WIDTH:"data-slate-zero-width"},Bn={BLOCK:"["+Gn.OBJECT+'="block"]',EDITOR:"["+Gn.EDITOR+"]",INLINE:"["+Gn.OBJECT+'="inline"]',KEY:"["+Gn.KEY+"]",LEAF:"["+Gn.LEAF+"]",OBJECT:"["+Gn.OBJECT+"]",STRING:"["+Gn.STRING+"]",TEXT:"["+Gn.OBJECT+'="text"]',VOID:"["+Gn.VOID+"]",ZERO_WIDTH:"["+Gn.ZERO_WIDTH+"]"},Lr=function(rt,St){if(!(rt instanceof St))throw new TypeError("Cannot call a class as a function")},An=function(){function rt(St,_n){for(var vn=0;vn<_n.length;vn++){var Ln=_n[vn];Ln.enumerable=Ln.enumerable||!1,Ln.configurable=!0,"value"in Ln&&(Ln.writable=!0),Object.defineProperty(St,Ln.key,Ln)}}return function(St,_n,vn){return _n&&rt(St.prototype,_n),vn&&rt(St,vn),St}}(),Un=function(rt,St,_n){return St in rt?Object.defineProperty(rt,St,{value:_n,enumerable:!0,configurable:!0,writable:!0}):rt[St]=_n,rt},cr=Object.assign||function(rt){for(var St=1;St<arguments.length;St++){var _n=arguments[St];for(var vn in _n)Object.prototype.hasOwnProperty.call(_n,vn)&&(rt[vn]=_n[vn])}return rt},mr=function(rt,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);rt.prototype=Object.create(St&&St.prototype,{constructor:{value:rt,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(rt,St):rt.__proto__=St)},hr=function(rt,St){if(!rt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:rt},ar=function(){function rt(St,_n){var vn=[],Ln=!0,_r=!1,Br=void 0;try{for(var Kr=St[Symbol.iterator](),Jr;!(Ln=(Jr=Kr.next()).done)&&(vn.push(Jr.value),!(_n&&vn.length===_n));Ln=!0);}catch(ii){_r=!0,Br=ii}finally{try{!Ln&&Kr.return&&Kr.return()}finally{if(_r)throw Br}}return vn}return function(St,_n){if(Array.isArray(St))return St;if(Symbol.iterator in Object(St))return rt(St,_n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Cr=function(rt){if(Array.isArray(rt)){for(var St=0,_n=Array(rt.length);St<rt.length;St++)_n[St]=rt[St];return _n}else return Array.from(rt)},Yr=/^([\w-]+)(?::(\d+))?$/;function Xr(rt){var St=Yr.exec(rt);if(!St)throw new Error('Invalid offset key string "'+rt+'".');var _n=ar(St,3),vn=_n[0],Ln=_n[1],_r=_n[2];return{key:Ln,index:parseInt(_r,10)}}function ni(rt){return rt.key+":"+rt.index}var ki={parse:Xr,stringify:ni},zr=function(St){var _n=St.text,vn=_n===void 0?"":_n,Ln=St.isTrailing,_r=Ln===void 0?!1:Ln;return l.createElement("span",Un({},Gn.STRING,!0),vn,_r?` `:null)},Ur=function(St){var _n,vn=St.length,Ln=vn===void 0?0:vn,_r=St.isLineBreak,Br=_r===void 0?!1:_r;return l.createElement("span",(_n={},Un(_n,Gn.ZERO_WIDTH,Br?"n":"z"),Un(_n,Gn.LENGTH,Ln),_n),"\uFEFF",Br?l.createElement("br",null):null)},jt=function(St){var _n,vn=St.marks,Ln=St.annotations,_r=St.decorations,Br=St.node,Kr=St.index,Jr=St.offset,ii=St.text,le=St.editor,Ae=St.parent,Oe=St.block,et=St.leaves,Ot=ki.stringify({key:Br.key,index:Kr}),It=void 0;if(le.query("isVoid",Ae))It=l.createElement(Ur,{length:Ae.text.length});else if(ii===""&&Ae.object==="block"&&Ae.text===""&&Ae.nodes.last()===Br)It=l.createElement(Ur,{isLineBreak:!0});else if(ii==="")It=l.createElement(Ur,null);else{var Mn=Oe.getLastText(),mn=ii.charAt(ii.length-1),At=Br===Mn,Ut=Kr===et.size-1;At&&Ut&&mn===` `?It=l.createElement(zr,{isTrailing:!0,text:ii}):It=l.createElement(zr,{text:ii})}var jn={editor:le,marks:vn,annotations:Ln,decorations:_r,node:Br,offset:Jr,text:ii},Jt=!0,dr=!1,wr=void 0;try{for(var Hr=vn[Symbol.iterator](),Ar;!(Jt=(Ar=Hr.next()).done);Jt=!0){var yi=Ar.value,Rr=le.run("renderMark",cr({},jn,{mark:yi,children:It,attributes:Un({},Gn.OBJECT,"mark")}));Rr&&(It=Rr)}}catch(go){dr=!0,wr=go}finally{try{!Jt&&Hr.return&&Hr.return()}finally{if(dr)throw wr}}var si=!0,Si=!1,$i=void 0;try{for(var Hi=_r[Symbol.iterator](),Oa;!(si=(Oa=Hi.next()).done);si=!0){var Ma=Oa.value,Rr=le.run("renderDecoration",cr({},jn,{decoration:Ma,children:It,attributes:Un({},Gn.OBJECT,"decoration")}));Rr&&(It=Rr)}}catch(go){Si=!0,$i=go}finally{try{!si&&Hi.return&&Hi.return()}finally{if(Si)throw $i}}var Ua=!0,Xa=!1,Na=void 0;try{for(var za=Ln[Symbol.iterator](),qa;!(Ua=(qa=za.next()).done);Ua=!0){var no=qa.value,Rr=le.run("renderAnnotation",cr({},jn,{annotation:no,children:It,attributes:Un({},Gn.OBJECT,"annotation")}));Rr&&(It=Rr)}}catch(go){Xa=!0,Na=go}finally{try{!Ua&&za.return&&za.return()}finally{if(Xa)throw Na}}var wo=(_n={},Un(_n,Gn.LEAF,!0),Un(_n,Gn.OFFSET_KEY,Ot),_n);return l.createElement("span",wo,It)};jt.propTypes={annotations:v().list.isRequired,block:h.block.isRequired,decorations:v().list.isRequired,editor:y().object.isRequired,index:y().number.isRequired,leaves:y().object.isRequired,marks:h.marks.isRequired,node:h.node.isRequired,offset:y().number.isRequired,parent:h.node.isRequired,text:y().string.isRequired};var sn=l.memo(jt,function(rt,St){return St.block===rt.block&&St.index===rt.index&&St.marks===rt.marks&&St.parent===rt.parent&&St.text===rt.text&&St.annotations.equals(rt.annotations)&&St.decorations.equals(rt.decorations)}),Rn=l.forwardRef(function(rt,St){var _n,vn=rt.annotations,Ln=rt.block,_r=rt.decorations,Br=rt.node,Kr=rt.parent,Jr=rt.editor,ii=rt.style,le=Br.key,Ae=Br.getLeaves(vn,_r),Oe=0;return l.createElement("span",cr({ref:St,style:ii},(_n={},Un(_n,Gn.OBJECT,Br.object),Un(_n,Gn.KEY,le),_n)),Ae.map(function(et,Ot){var It=et.text,Mn=Oe;return Oe+=It.length,l.createElement(sn,{key:Br.key+"-"+Ot,block:Ln,editor:Jr,index:Ot,annotations:et.annotations,decorations:et.decorations,marks:et.marks,node:Br,offset:Mn,parent:Kr,leaves:Ae,text:It})}))});Rn.propTypes={annotations:v().map.isRequired,block:h.block,decorations:v().list.isRequired,editor:y().object.isRequired,node:h.node.isRequired,parent:h.node.isRequired,style:y().object};var H=l.memo(Rn,function(rt,St){return St.node===rt.node&&St.parent.object==="block"&&rt.parent.nodes.last()===rt.node&&St.parent.nodes.last()!==St.node&&St.annotations.equals(rt.annotations)&&St.decorations.equals(rt.decorations)}),Be=S()("slate:void"),wn=function(rt){mr(St,rt);function St(){var _n,vn,Ln,_r;Lr(this,St);for(var Br=arguments.length,Kr=Array(Br),Jr=0;Jr<Br;Jr++)Kr[Jr]=arguments[Jr];return _r=(vn=(Ln=hr(this,(_n=St.__proto__||Object.getPrototypeOf(St)).call.apply(_n,[this].concat(Kr))),Ln),bi.call(Ln),vn),hr(Ln,_r)}return An(St,[{key:"render",value:function(){var vn,Ln=this.props,_r=Ln.children,Br=Ln.node,Kr=Ln.readOnly,Jr=Br.object==="block"?"div":"span",ii={height:"0",color:"transparent",outline:"none",position:"absolute"},le=Un({},Gn.SPACER,!0),Ae=l.createElement(Jr,cr({style:ii},le),this.renderText()),Oe=l.createElement(Jr,{contentEditable:Kr?null:!1},_r);this.debug("render",{props:Ln});var et=(vn={},Un(vn,Gn.VOID,!0),Un(vn,Gn.KEY,Br.key),vn);return l.createElement(Jr,cr({contentEditable:Kr||Br.object==="block"?null:!1},et),Kr?null:Ae,Oe)}}]),St}(l.Component);wn.propTypes={block:h.block,children:y().any.isRequired,editor:y().object.isRequired,node:h.node.isRequired,parent:h.node.isRequired,readOnly:y().bool.isRequired};var bi=function(){var St=this;this.debug=function(_n){for(var vn=arguments.length,Ln=Array(vn>1?vn-1:0),_r=1;_r<vn;_r++)Ln[_r-1]=arguments[_r];var Br=St.props.node,Kr=Br.key,Jr=Br.type,ii=Kr+" ("+Jr+")";Be.apply(void 0,[_n,""+ii].concat(Ln))},this.renderText=function(){var _n=St.props,vn=_n.annotations,Ln=_n.block,_r=_n.decorations,Br=_n.node,Kr=_n.readOnly,Jr=_n.editor,ii=_n.textRef,le=Br.getFirstText();return l.createElement(H,{ref:ii,annotations:vn,block:Br.object==="block"?Br:Ln,decorations:_r,editor:Jr,key:le.key,node:le,parent:Br,readOnly:Kr})}},Oi=S()("slate:node"),de=function(rt){mr(St,rt);function St(){var _n,vn,Ln,_r;Lr(this,St);for(var Br=arguments.length,Kr=Array(Br),Jr=0;Jr<Br;Jr++)Kr[Jr]=arguments[Jr];return _r=(vn=(Ln=hr(this,(_n=St.__proto__||Object.getPrototypeOf(St)).call.apply(_n,[this].concat(Kr))),Ln),Ve.call(Ln),vn),hr(Ln,_r)}return An(St,[{key:"shouldComponentUpdate",value:function(vn){var Ln=this.props,_r=Ln.editor,Br=_r.run("shouldNodeComponentUpdate",Ln,vn),Kr=vn,Jr=Ln;if(Br!=null){if(R(!1,'As of slate-react@0.22 the `shouldNodeComponentUpdate` middleware is deprecated. You can pass specific values down the tree using React\'s built-in "context" construct instead.'),Br)return!0;R(Br!==!1,"Returning false in `shouldNodeComponentUpdate` does not disable Slate's internal `shouldComponentUpdate` logic. If you want to prevent updates, use React's `shouldComponentUpdate` instead.")}return!!(Kr.readOnly!==Jr.readOnly||Kr.node!==Jr.node||!Kr.selection&&Jr.selection||Kr.selection&&!Jr.selection||Kr.selection&&Jr.selection&&!Kr.selection.equals(Jr.selection)||!Kr.annotations.equals(Jr.annotations)||!Kr.decorations.equals(Jr.decorations))}},{key:"render",value:function(){var vn=this,Ln;this.debug("render",this);var _r=this.props,Br=_r.annotations,Kr=_r.block,Jr=_r.decorations,ii=_r.editor,le=_r.node,Ae=_r.parent,Oe=_r.readOnly,et=_r.selection,Ot=le.getDecorations(ii),It=le.nodes.toArray().map(function(jn,Jt){var dr=jn.object==="text"?H:St,wr=et&&vt(le,Jt,et),Hr=Ot.concat(Jr).map(function(yi){return vt(le,Jt,yi)}).filter(function(yi){return yi}),Ar=Br.map(function(yi){return vt(le,Jt,yi)}).filter(function(yi){return yi});return l.createElement(dr,{block:le.object==="block"?le:Kr,editor:ii,annotations:Ar,decorations:Hr,selection:wr,key:jn.key,node:jn,parent:le,readOnly:Oe,ref:function(Rr){Rr?vn.tmp.nodeRefs[Jt]=Rr:delete vn.tmp.nodeRefs[Jt]}})}),Mn=(Ln={},Un(Ln,Gn.OBJECT,le.object),Un(Ln,Gn.KEY,le.key),Un(Ln,"ref",this.ref),Ln);if(le.isLeafBlock()){var mn=le.getTextDirection();mn==="rtl"&&(Mn.dir="rtl")}var At=void 0;le.object==="block"?At="renderBlock":le.object==="document"?At="renderDocument":le.object==="inline"&&(At="renderInline");var Ut=ii.run(At,{attributes:Mn,children:It,editor:ii,isFocused:!!et&&et.isFocused,isSelected:!!et,node:le,parent:Ae,readOnly:Oe});return ii.isVoid(le)?l.createElement(wn,cr({},this.props,{textRef:function(Jt){Jt?vn.tmp.nodeRefs[0]=Jt:delete vn.tmp.nodeRefs[0]}}),Ut):Ut}}]),St}(l.Component);de.propTypes={annotations:v().map.isRequired,block:h.block,decorations:v().list.isRequired,editor:y().object.isRequired,node:h.node.isRequired,parent:h.node,readOnly:y().bool.isRequired,selection:h.selection};var Ve=function(){var St=this;this.tmp={nodeRefs:{}},this.ref=l.createRef(),this.debug=function(_n){for(var vn=arguments.length,Ln=Array(vn>1?vn-1:0),_r=1;_r<vn;_r++)Ln[_r-1]=arguments[_r];var Br=St.props.node,Kr=Br.key,Jr=Br.type;Oi.apply(void 0,[_n,Kr+" ("+Jr+")"].concat(Ln))}};function vt(rt,St,_n){if(_n.isUnset)return null;var vn=rt.nodes.get(St),Ln=_n,_r=Ln.start,Br=Ln.end,Kr=_r,Jr=Kr.path,ii=Br,le=ii.path,Ae=Jr.first(),Oe=le.first();if(Ae===St)_r=_r.setPath(Jr.rest());else if(Ae<St&&St<=Oe)if(vn.object==="text")_r=_r.moveTo(x.PathUtils.create([St]),0).setKey(vn.key);else{var et=vn.texts(),Ot=ar(et,1),It=Ot[0],Mn=ar(It,2),mn=Mn[0],At=Mn[1];_r=_r.moveTo(At,0).setKey(mn.key)}else _r=null;if(Oe===St)Br=Br.setPath(le.rest());else if(Ae<=St&&St<Oe)if(vn.object==="text"){var Ut=vn.text.length;Br=Br.moveTo(x.PathUtils.create([St]),Ut).setKey(vn.key)}else{var jn=vn.texts({direction:"backward"}),Jt=ar(jn,1),dr=Jt[0],wr=ar(dr,2),Hr=wr[0],Ar=wr[1];Br=Br.moveTo(Ar,Hr.text.length).setKey(Hr.key)}else Br=null;return!_r||!Br?null:(_n=_n.setAnchor(_r),_n=_n.setFocus(Br),_n)}var Qt=["auto","overlay","scroll"],nt=Vt&&!!window.navigator.userAgent.match(/os 11_/i);function Tt(rt,St){for(var _n=rt.parentNode,vn=void 0;!vn&&_n.parentNode;){var Ln=St.getComputedStyle(_n),_r=Ln.overflowY;if(Qt.includes(_r)){vn=_n;break}_n=_n.parentNode}return vn||St.document.body}function Gt(rt){if(!nt&&rt.anchorNode){var St=L()(rt.anchorNode),_n=Tt(rt.anchorNode,St),vn=_n===St.document.body||_n===St.document.documentElement,Ln=I()(rt),_r=rt.getRangeAt(0).cloneRange();_r.collapse(Ln);var Br=_r.getBoundingClientRect();Zt&&_r.collapsed&&Br.top===0&&Br.height===0&&(_r.startOffset===0?_r.setEnd(_r.endContainer,1):_r.setStart(_r.startContainer,_r.startOffset-1),Br=_r.getBoundingClientRect(),Br.top===0&&Br.height===0&&_r.getClientRects().length&&(Br=_r.getClientRects()[0]));var Kr=void 0,Jr=void 0,ii=void 0,le=void 0,Ae=0,Oe=0,et=0,Ot=0,It=0,Mn=0,mn=0,At=0;if(vn){var Ut=St.innerWidth,jn=St.innerHeight,Jt=St.pageYOffset,dr=St.pageXOffset;Kr=Ut,Jr=jn,ii=Jt,le=dr}else{var wr=_n.offsetWidth,Hr=_n.offsetHeight,Ar=_n.scrollTop,yi=_n.scrollLeft,Rr=St.getComputedStyle(_n),si=Rr.borderTopWidth,Si=Rr.borderBottomWidth,$i=Rr.borderLeftWidth,Hi=Rr.borderRightWidth,Oa=Rr.paddingTop,Ma=Rr.paddingBottom,Ua=Rr.paddingLeft,Xa=Rr.paddingRight,Na=_n.getBoundingClientRect();Kr=wr,Jr=Hr,Ae=Na.top+parseInt(si,10),Oe=Na.left+parseInt($i,10),et=parseInt(si,10)+parseInt(Si,10),Ot=parseInt($i,10)+parseInt(Hi,10),It=parseInt(Oa,10),Mn=parseInt(Ma,10),mn=parseInt(Ua,10),At=parseInt(Xa,10),ii=Ar,le=yi}var za=Br.top+ii-Ae,qa=Br.left+le-Oe,no=le,wo=ii;qa<le?no=qa-mn:qa+Br.width+Ot>le+Kr&&(no=qa+Ot+At-Kr),za<ii?wo=za-It:za+Br.height+et>ii+Jr&&(wo=za+et+Mn+Br.height-Jr),vn?St.scrollTo(no,wo):(_n.scrollTop=wo,_n.scrollLeft=no)}}function En(rt){if(nn){var St=window.document.body.createTextRange();St.collapse(),St.select()}else rt.removeAllRanges()}var Qn=/Permission denied to access property "nodeType"/,Or=S()("slate:content");Or.update=S()("slate:update");var Pr=function(rt){mr(St,rt);function St(){var _n,vn,Ln,_r;Lr(this,St);for(var Br=arguments.length,Kr=Array(Br),Jr=0;Jr<Br;Jr++)Kr[Jr]=arguments[Jr];return _r=(vn=(Ln=hr(this,(_n=St.__proto__||Object.getPrototypeOf(St)).call.apply(_n,[this].concat(Kr))),Ln),Ln.tmp={isUpdatingSelection:!1,nodeRef:l.createRef(),nodeRefs:{},contentKey:0,nativeSelection:{}},Ln.ref=l.createRef(),Ln.setRef=function(ii){Ln.ref.current=ii,Ln.props.editor.el=ii},Ln.handlers=fn.reduce(function(ii,le){return ii[le]=function(Ae){return Ln.onEvent(le,Ae)},ii},{}),Ln.updateSelection=function(){var ii=Ln.props.editor,le=ii.value,Ae=le.selection,Oe=Ae.isBackward,et=L()(Ln.ref.current),Ot=et.getSelection(),It=et.document.activeElement;if(Or.update.enabled&&Or.update("updateSelection",{selection:Ae.toJSON()}),!!Ot){var Mn=Ot.rangeCount,mn=Ot.anchorNode,At=!1;Ae.isBlurred&&It===Ln.ref.current&&(Ln.ref.current.blur(),At=!0);var Ut=["anchorNode","anchorOffset","focusNode","focusOffset","isCollapsed","rangeCount","type"],jn=!0,Jt=!0,dr=!1,wr=void 0;try{for(var Hr=Ut[Symbol.iterator](),Ar;!(Jt=(Ar=Hr.next()).done);Jt=!0){var yi=Ar.value;Ln.tmp.nativeSelection[yi]!==Ot[yi]&&(jn=!1)}}catch(Ma){dr=!0,wr=Ma}finally{try{!Jt&&Hr.return&&Hr.return()}finally{if(dr)throw wr}}if(Ae.isUnset&&Mn&&Ln.isInEditor(mn)&&jn&&(En(Ot),At=!0),Ae.isFocused&&It!==Ln.ref.current&&(Ln.ref.current.focus({preventScroll:!0}),At=!0),Ae.isFocused&&Ae.isSet){var Rr=!!Ot.rangeCount&&Ot.getRangeAt(0),si=ii.findDOMRange(Ae);if(!si){R(!1,"Unable to find a native DOM range from the current selection.");return}var Si=si.startContainer,$i=si.startOffset,Hi=si.endContainer,Oa=si.endOffset;if(Rr&&(Si===Rr.startContainer&&$i===Rr.startOffset&&Hi===Rr.endContainer&&Oa===Rr.endOffset||Si===Rr.endContainer&&$i===Rr.endOffset&&Hi===Rr.startContainer&&Oa===Rr.startOffset))return;At=!0,Ln.tmp.isUpdatingSelection=!0,En(Ot),Ot.setBaseAndExtent?Oe?Ot.setBaseAndExtent(si.endContainer,si.endOffset,si.startContainer,si.startOffset):Ot.setBaseAndExtent(si.startContainer,si.startOffset,si.endContainer,si.endOffset):Ot.addRange(si),ii.userActionPerformed()===!0&&Gt(Ot),setTimeout(function(){Et&&Ln.ref.current&&Ln.ref.current.focus(),Ln.tmp.isUpdatingSelection=!1,Or.update("updateSelection:setTimeout",{anchorOffset:et.getSelection().anchorOffset})})}At&&(Or.enabled||Or.update.enabled)&&(Or("updateSelection",{selection:Ae,native:Ot,activeElement:It}),Or.update("updateSelection:applied",{selection:Ae.toJSON(),native:{anchorOffset:Ot.anchorOffset,focusOffset:Ot.focusOffset}}))}},Ln.isInEditor=function(ii){var le=void 0;try{if(ii.nodeType===8)return!1;le=ii.nodeType===3?ii.parentNode:ii}catch(Ae){if(Et&&Qn.test(Ae.message))return!1;throw Ae}return le.isContentEditable&&(le===Ln.ref.current||le.closest(Bn.EDITOR)===Ln.ref.current)},Ln.onNativeSelectionChange=er()(function(ii){if(!Ln.props.readOnly){var le=L()(ii.target),Ae=le.document.activeElement,Oe=le.getSelection();Or.update("onNativeSelectionChange",{anchorOffset:Oe.anchorOffset}),Ae===Ln.ref.current&&(Ln.tmp.nativeSelection={anchorNode:Oe.anchorNode,anchorOffset:Oe.anchorOffset,focusNode:Oe.focusNode,focusOffset:Oe.focusOffset,isCollapsed:Oe.isCollapsed,rangeCount:Oe.rangeCount,type:Oe.type},Ln.props.onEvent("onSelect",ii))}},100),vn),hr(Ln,_r)}return An(St,[{key:"componentDidCatch",value:function(vn,Ln){Or("componentDidCatch",{error:vn,info:Ln}),this.setState({})}},{key:"componentDidMount",value:function(){var vn=L()(this.ref.current);vn.document.addEventListener("selectionchange",this.onNativeSelectionChange),Cn&&this.ref.current.addEventListener("beforeinput",this.handlers.onBeforeInput),this.updateSelection(),this.props.onEvent("onComponentDidMount")}},{key:"componentWillUnmount",value:function(){var vn=L()(this.ref.current);vn&&vn.document.removeEventListener("selectionchange",this.onNativeSelectionChange),Cn&&this.ref.current.removeEventListener("beforeinput",this.handlers.onBeforeInput),this.props.onEvent("onComponentWillUnmount")}},{key:"componentDidUpdate",value:function(){Or.update("componentDidUpdate"),this.updateSelection(),this.props.editor.clearUserActionPerformed(),this.props.onEvent("onComponentDidUpdate")}},{key:"onEvent",value:function(vn,Ln){Or("onEvent",vn);var _r=Ln.nativeEvent||Ln,Br=Ln.type==="keydown"&&(he.isUndo(_r)||he.isRedo(_r));if(!((this.tmp.isUpdatingSelection||Br)&&(vn==="onSelect"||vn==="onBlur"||vn==="onFocus"))){if(!rn&&vn==="onSelect"){var Kr=this.props.editor,Jr=Kr.value,ii=Jr.selection,le=L()(Ln.target),Ae=le.getSelection(),Oe=Kr.findRange(Ae);if(Oe&&Oe.equals(ii.toRange())){this.updateSelection();return}}if(vn==="onDragEnd"||vn==="onDragEnter"||vn==="onDragExit"||vn==="onDragLeave"||vn==="onDragOver"||vn==="onDragStart"||vn==="onDrop"){var et=Ln.target.closest(Bn.EDITOR);if(et!==this.ref.current)return}(vn==="onBeforeInput"||vn==="onBlur"||vn==="onCompositionEnd"||vn==="onCompositionStart"||vn==="onCopy"||vn==="onCut"||vn==="onFocus"||vn==="onInput"||vn==="onKeyDown"||vn==="onKeyUp"||vn==="onPaste"||vn==="onSelect")&&!this.isInEditor(Ln.target)||this.props.onEvent(vn,Ln)}}},{key:"render",value:function(){var vn,Ln=this.props,_r=this.handlers,Br=Ln.id,Kr=Ln.className,Jr=Ln.readOnly,ii=Ln.editor,le=Ln.tabIndex,Ae=Ln.role,Oe=Ln.tagName,et=Ln.spellCheck,Ot=ii.value,It=Oe,Mn=Ot.document,mn=Ot.selection,At=cr({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},Jr?{}:{WebkitUserModify:"read-write-plaintext-only"},Ln.style);Or("render",{props:Ln}),Or.update("render",this.tmp.contentKey,Mn.text),this.props.onEvent("onRender");var Ut=(vn={},Un(vn,Gn.EDITOR,!0),Un(vn,Gn.KEY,Mn.key),vn),jn=en()(this.props,Object.keys(St.propTypes));return l.createElement(It,cr({},jn,{key:this.tmp.contentKey},_r,Ut,{ref:this.setRef,contentEditable:Jr?null:!0,suppressContentEditableWarning:!0,id:Br,className:Kr,autoCorrect:Ln.autoCorrect?"on":"off",spellCheck:et,style:At,role:Jr?null:Ae||"textbox",tabIndex:le,"data-gramm":jn["data-gramm"]?void 0:!1}),l.createElement(de,{annotations:Ot.annotations,block:null,decorations:(0,gn.List)(),editor:ii,node:Mn,parent:null,readOnly:Jr,selection:mn,ref:this.tmp.nodeRef}))}}]),St}(l.Component);Pr.propTypes={autoCorrect:y().bool.isRequired,className:y().string,contentKey:y().number,editor:y().object.isRequired,id:y().string,onEvent:y().func.isRequired,readOnly:y().bool.isRequired,role:y().string,spellCheck:y().bool.isRequired,style:y().object,tabIndex:y().number,tagName:y().string},Pr.defaultProps={style:{},tagName:"div"};var ai=[].concat(Cr(fn),["commands","decorateNode","queries","renderAnnotation","renderBlock","renderDecoration","renderDocument","renderEditor","renderInline","renderMark","schema"]);function xi(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},St=ai.reduce(function(_n,vn){return vn in rt&&(_n[vn]=rt[vn]),_n},{});return St}function mi(){return{decorateNode:function(){return[]},renderAnnotation:function(St){var _n=St.attributes,vn=St.children;return l.createElement("span",_n,vn)},renderBlock:function(St){var _n=St.attributes,vn=St.children;return l.createElement("div",cr({},_n,{style:{position:"relative"}}),vn)},renderDecoration:function(St){var _n=St.attributes,vn=St.children;return l.createElement("span",_n,vn)},renderDocument:function(St){var _n=St.children;return _n},renderEditor:function(St){var _n=St.children;return _n},renderInline:function(St){var _n=St.attributes,vn=St.children;return l.createElement("span",cr({},_n,{style:{position:"relative"}}),vn)},renderMark:function(St){var _n=St.attributes,vn=St.children;return l.createElement("span",_n,vn)}}}function ei(){function rt(_n,vn){var Ln=_n.value,_r=Ln.document,Br=Ln.selection,Kr=_r.getPath(vn.key),Jr=_n.findDOMNode(Kr),ii=_r.getClosestBlock(Kr),le=vn.text,Ae=Jr.textContent,Oe=ii.nodes.last()===vn,et=Ae.charAt(Ae.length-1);if(Oe&&et===` `&&(Ae=Ae.slice(0,-1)),le!==Ae){var Ot=Br.moveAnchorTo(Kr,0).moveFocusTo(Kr,le.length);Ot=_r.resolveRange(Ot),_n.insertTextAtRange(Ot,Ae,vn.marks)}}function St(_n,vn){var Ln=vn.parentElement.closest("[data-key]"),_r=_n.findNode(Ln);_n.reconcileNode(_r)}return{commands:{reconcileNode:rt,reconcileDOMNode:St}}}function Qr(){function rt(ii,le){le=x.PathUtils.create(le);var Ae=ii.tmp.contentRef.current;if(!Ae)return null;if(!le.size)return Ae.ref.current||null;var Oe=function It(Mn,mn){if(!Mn)return null;if(!mn.size)return Mn.ref?Mn.ref.current||null:Mn||null;var At=mn.first(),Ut=mn.rest(),jn=Mn.tmp.nodeRefs[At];return It(jn,Ut)},et=Ae.tmp.nodeRef.current,Ot=Oe(et,le);return Ot}function St(ii,le){var Ae=ii.findDOMNode(le.path),Oe=0;if(!Ae)return null;var et=Array.from(Ae.querySelectorAll(Bn.STRING+", "+Bn.ZERO_WIDTH)),Ot=!0,It=!1,Mn=void 0;try{for(var mn=et[Symbol.iterator](),At;!(Ot=(At=mn.next()).done);Ot=!0){var Ut=At.value,jn=Ut.childNodes[0],Jt=jn.textContent.length,dr=Jt;Ut.hasAttribute(Gn.LENGTH)&&(dr=parseInt(Ut.getAttribute(Gn.LENGTH),10));var wr=Oe+dr;if(le.offset<=wr){var Hr=Math.min(Jt,Math.max(0,le.offset-Oe));return{node:jn,offset:Hr}}Oe=wr}}catch(Ar){It=!0,Mn=Ar}finally{try{!Ot&&mn.return&&mn.return()}finally{if(It)throw Mn}}return null}function _n(ii,le){var Ae=le.anchor,Oe=le.focus,et=le.isBackward,Ot=le.isCollapsed,It=ii.findDOMPoint(Ae),Mn=Ot?It:ii.findDOMPoint(Oe);if(!It||!Mn)return null;var mn=L()(It.node),At=mn.document.createRange(),Ut=et?Mn:It,jn=et?It:Mn;return At.setStart(Ut.node,Ut.offset),At.setEnd(jn.node,jn.offset),At}function vn(ii,le){var Ae=ii.findPath(le);if(!Ae)return null;var Oe=ii.value,et=Oe.document,Ot=et.getNode(Ae);return Ot}function Ln(ii,le){le.nativeEvent&&(le=le.nativeEvent);var Ae=le,Oe=Ae.clientX,et=Ae.clientY,Ot=Ae.target;if(Oe==null||et==null)return null;var It=ii.value,Mn=It.document,mn=ii.findPath(le.target);if(!mn)return null;var At=Mn.getNode(mn);if(ii.isVoid(At)){var Ut=Ot.getBoundingClientRect(),jn=At.object==="inline"?Oe-Ut.left<Ut.left+Ut.width-Oe:et-Ut.top<Ut.top+Ut.height-et,Jt=Mn.createRange(),dr=jn?"moveToEndOfNode":"moveToStartOfNode",wr=Mn[jn?"getPreviousText":"getNextText"](mn);return wr?Jt[dr](wr):null}var Hr=L()(Ot),Ar=void 0;if(Hr.document.caretRangeFromPoint)Ar=Hr.document.caretRangeFromPoint(Oe,et);else if(Hr.document.caretPositionFromPoint){var yi=Hr.document.caretPositionFromPoint(Oe,et);Ar=Hr.document.createRange(),Ar.setStart(yi.offsetNode,yi.offset),Ar.setEnd(yi.offsetNode,yi.offset)}else if(Hr.document.body.createTextRange){Ar=Hr.document.body.createTextRange();try{Ar.moveToPoint(Oe,et)}catch{return null}}var Rr=ii.findRange(Ar);return Rr}function _r(ii,le){var Ae=ii.tmp.contentRef.current,Oe=le;if(Oe.hasAttribute(Gn.KEY)||(Oe=Oe.closest(Bn.KEY)),!Oe||!Oe.getAttribute(Gn.KEY))return null;if(Oe===Ae.ref.current)return x.PathUtils.create([]);var et=function Mn(mn,At){if(Oe===mn)return At;if(!mn.ref)return null;if(Oe===mn.ref.current)return At;if(!mn.tmp)return null;var Ut=mn.tmp.nodeRefs,jn=Object.keys(Ut),Jt=!0,dr=!1,wr=void 0;try{for(var Hr=jn[Symbol.iterator](),Ar;!(Jt=(Ar=Hr.next()).done);Jt=!0){var yi=Ar.value,Rr=Ut[yi],si=parseInt(yi,10),Si=Mn(Rr,[].concat(Cr(At),[si]));if(Si)return Si}}catch($i){dr=!0,wr=$i}finally{try{!Jt&&Hr.return&&Hr.return()}finally{if(dr)throw wr}}return null},Ot=Ae.tmp.nodeRef.current,It=et(Ot,[]);return It?x.PathUtils.create(It):null}function Br(ii,le,Ae){var Oe=Ni(le,Ae),et=Oe.node,Ot=Oe.offset,It=L()(le),Mn=et.parentNode,mn=Mn.closest(Bn.LEAF),At=void 0,Ut=void 0,jn=void 0;if(mn){At=mn.closest(Bn.TEXT);var Jt=It.document.createRange();Jt.setStart(At,0),Jt.setEnd(et,Ot);var dr=Jt.cloneContents(),wr=dr.querySelectorAll(Bn.ZERO_WIDTH);Array.from(wr).forEach(function(Si){Si.parentNode.removeChild(Si)}),Ut=dr.textContent.length,jn=At}else{var Hr=Mn.closest(Bn.VOID);if(!Hr||(mn=Hr.querySelector(Bn.LEAF),!mn))return null;At=mn.closest(Bn.TEXT),jn=mn,Ut=jn.textContent.length}Ut===jn.textContent.length&&Mn.hasAttribute(Gn.ZERO_WIDTH)&&Ut--;var Ar=ii.findPath(At);if(!Ar)return null;var yi=ii.value,Rr=yi.document,si=Rr.createPoint({path:Ar,offset:Ut});return si}function Kr(ii,le){var Ae=le.anchorNode||le.startContainer;if(!Ae)return null;var Oe=L()(Ae);(le instanceof Oe.Range||Oe.StaticRange&&le instanceof Oe.StaticRange)&&(le={anchorNode:le.startContainer,anchorOffset:le.startOffset,focusNode:le.endContainer,focusOffset:le.endOffset});var et=le,Ot=et.anchorNode,It=et.anchorOffset,Mn=et.focusNode,mn=et.focusOffset,At=et.isCollapsed,Ut=ii.value,jn=ii.findPoint(Ot,It),Jt=At?jn:ii.findPoint(Mn,mn);if(!jn||!Jt)return null;var dr=Ut.document,wr=dr.createRange({anchor:jn,focus:Jt});return wr}function Jr(ii,le){var Ae=ii.value,Oe=Ae.document;if(!le.rangeCount)return null;var et=ii.findRange(le);if(!et)return null;var Ot=et,It=Ot.anchor,Mn=Ot.focus,mn=Oe.getNode(It.path),At=Oe.getNode(Mn.path),Ut=Oe.getClosestInline(It.path),jn=Oe.getClosestInline(Mn.path),Jt=Oe.getClosestBlock(Mn.path),dr=Oe.getClosestBlock(It.path);if(dr&&!ii.isVoid(dr)&&It.offset===0&&Jt&&ii.isVoid(Jt)&&Mn.offset!==0&&(et=et.setFocus(Mn.setOffset(0))),Ut&&!ii.isVoid(Ut)&&It.offset===mn.text.length){var wr=Oe.getClosestBlock(It.path),Hr=Oe.getDepth(wr.key),Ar=x.PathUtils.drop(It.path,Hr),yi=wr.texts({path:Ar}),Rr=ar(yi,1),si=Rr[0];if(si){var Si=ar(si,2),$i=Si[1],Hi=It.path.slice(0,Hr).concat($i);et=et.moveAnchorTo(Hi,0)}}if(jn&&!ii.isVoid(jn)&&Mn.offset===At.text.length){var Oa=Oe.getClosestBlock(Mn.path),Ma=Oe.getDepth(Oa.key),Ua=x.PathUtils.drop(Mn.path,Ma),Xa=Oa.texts({path:Ua}),Na=ar(Xa,1),za=Na[0];if(za){var qa=ar(za,2),no=qa[1],wo=Mn.path.slice(0,Ma).concat(no);et=et.moveFocusTo(wo,0)}}var go=Oe.createSelection(et);return go=go.setIsFocused(!0),go=go.set("marks",Ae.selection.marks),go}return{queries:{findDOMNode:rt,findDOMPoint:St,findDOMRange:_n,findEventRange:Ln,findNode:vn,findPath:_r,findPoint:Br,findRange:Kr,findSelection:Jr}}}function Ni(rt,St){if(rt.nodeType===1&&rt.childNodes.length){var _n=St===rt.childNodes.length,vn=_n?"backward":"forward",Ln=_n?St-1:St;for(rt=ea(rt,Ln,vn);rt.nodeType===1&&rt.childNodes.length;){var _r=_n?rt.childNodes.length-1:0;rt=ea(rt,_r,vn)}St=_n?rt.textContent.length:0}return{node:rt,offset:St}}function ea(rt,St,_n){for(var vn=rt.childNodes,Ln=vn[St],_r=St,Br=!1,Kr=!1;(Ln.nodeType===8||Ln.nodeType===1&&Ln.childNodes.length===0||Ln.nodeType===1&&Ln.getAttribute("contenteditable")==="false")&&!(Br&&Kr);){if(_r>=vn.length){Br=!0,_r=St-1,_n="backward";continue}if(_r<0){Kr=!0,_r=St+1,_n="forward";continue}Ln=vn[_r],_n==="forward"&&_r++,_n==="backward"&&_r--}return Ln||null}function Qi(rt,St){for(var _n=Math.min(rt.length,St.length),vn=0;vn<_n;vn++)if(rt.charAt(vn)!==St.charAt(vn))return vn;return rt.length!==St.length?_n:null}function ir(rt,St,_n){for(var vn=rt.length,Ln=St.length,_r=Math.min(vn,Ln,_n),Br=0;Br<_r;Br++){var Kr=rt.charAt(vn-Br-1),Jr=St.charAt(Ln-Br-1);if(Kr!==Jr)return Br}return rt.length!==St.length?_r:null}function xr(rt,St){if(rt===St)return null;var _n=Qi(rt,St),vn=Math.min(rt.length-_n,St.length-_n),Ln=ir(rt,St,vn);return{start:_n,end:Ln,total:_n+Ln}}function di(rt,St){return rt.slice(St.start,rt.length-St.end)}function ft(rt,St){var _n=xr(rt,St);if(_n==null)return null;var vn=di(St,_n),Ln=di(rt,_n);return{start:_n.start,end:rt.length-_n.end,cursor:_n.start+vn.length,insertText:vn,removeText:Ln}}var zn=S()("slate:composition-manager"),Zn="\uFEFF",wi=Fe.unstable_flushControlled;function Ea(rt,St){wi(function(){St(),rt.controller.flush()})}function wa(rt){for(var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,vn=St,Ln=rt,_r=0;_r!==-1&&(_r=Ln.indexOf(Zn,_r),_r!==-1);)vn>_r&&vn--,Ln=""+Ln.slice(0,_r)+Ln.slice(_r+1);var Br=Ln.charAt(Ln.length-1);_n&&Br===` `&&(Ln=Ln.slice(0,-1));var Kr=Ln.length;return vn>Kr&&(vn=Kr),{text:Ln,offset:vn}}function ji(rt){var St=new window.MutationObserver(Mn),_n=null,vn={rootEl:null,diff:null,range:null,domNode:null};function Ln(){zn("connect",{rootEl:wr});var wr=rt.findDOMNode([]);vn.rootEl!==wr&&(zn("connect:run"),_n=L()(wr),St.observe(wr,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}))}function _r(){zn("disconnect"),St.disconnect(),vn.rootEl=null}function Br(){zn("clearDIff"),vn.diff=null}function Kr(){zn("clearAction"),vn.diff=null,vn.domNode=null}function Jr(){zn("applyDiff");var wr=vn.diff;if(wr!=null){zn("applyDiff:run");var Hr=rt.value.document,Ar=rt.value.selection.moveAnchorTo(wr.path,wr.start).moveFocusTo(wr.path,wr.end);Ar=Hr.resolveRange(Ar),rt.insertTextAtRange(Ar,wr.insertText)}}function ii(){zn("splitBlock"),Ea(rt,function(){Jr(),vn.range?rt.select(vn.range):zn("splitBlock:NO-SELECTION"),rt.splitBlock().focus().restoreDOM(),Kr()})}function le(){zn("mergeBlock"),_n.requestAnimationFrame(function(){Ea(rt,function(){Jr(),rt.select(vn.range).deleteBackward().focus().restoreDOM(),Kr()})})}var Ae=null,Oe=[],et=null,Ot=!1;function It(){Ae&&(window.cancelAnimationFrame(Ae),Ae=null),Ot=!0,et&&window.cancelAnimationFrame(et),et=window.requestAnimationFrame(function(){Oe.length>0&&mn(Oe),et=null,Oe=[],Ot=!1})}function Mn(wr){var Hr;zn("flush"),(Hr=Oe).push.apply(Hr,Cr(wr)),It()}function mn(wr){if(zn("flushAction",wr.length,wr),vn.range&&!vn.range.isCollapsed){Ea(rt,function(){rt.select(vn.range).deleteBackward().focus().restoreDOM()});return}if(wr.length>1){var Hr=wr.find(function(yi){if(yi.type!=="childList"||yi.addedNodes.length===0)return!1;var Rr=yi.addedNodes[0];if(Rr.nodeType===window.Node.TEXT_NODE&&Rr.textContent===` `)return!0;if(Rr.nodeType!==window.Node.ELEMENT_NODE)return!1;var si=Rr.dataset,Si=si.key;if(Si==null)return!1;var $i=rt.value.document.getClosestBlock(Si);return!!$i});if(Hr){ii();return}}var Ar=wr[0];Ar.type==="characterData"?At(Ar.target.parentNode):Ar.type==="childList"&&(Ar.removedNodes.length>0?wr.length===1?Ut(Ar.removedNodes[0]):le():Ar.addedNodes.length>0&&ii())}function At(wr){zn("resolveDOMNode");var Hr=rt.value,Ar=Hr.document,yi=wr.closest("[data-key]"),Rr=yi.dataset.key,si=Ar.getPath(Rr),Si=Ar.getClosestBlock(Rr),$i=Ar.getDescendant(Rr),Hi=$i.text,Oa=Si.nodes.last()===$i,Ma=wa(wr.textContent,0,Oa),Ua=Ma.text;if(Ua===Hi){vn.diff=null;return}var Xa=ft(Hi,Ua);vn.diff={path:si,start:Xa.start,end:Xa.end,insertText:Xa.insertText},zn("resolveDOMNode:diff",vn.diff)}function Ut(wr){if(zn("removeNode"),wr.nodeType===window.Node.ELEMENT_NODE){var Hr=rt.value,Ar=Hr.document,yi=Hr.selection,Rr=rt.findNode(wr),si=Ar.resolveRange(yi.moveToRangeOfNode(Rr));Ea(rt,function(){rt.select(si).delete().restoreDOM()})}}function jn(){zn("onCompositionStart")}function Jt(){zn("onCompositionEnd"),window.setTimeout(function(){vn.diff&&(zn("onCompositionEnd:applyDiff"),Ea(rt,function(){Jr();var wr=_n.getSelection().getRangeAt(0),Hr=wr.startContainer.textContent,Ar=wr.startOffset,yi=wa(Hr,Ar),Rr=rt.findRange({anchorNode:wr.startContainer,anchorOffset:0,focusNode:wr.startContainer,focusOffset:0,isCollapsed:!0}).moveTo(yi.offset);rt.select(Rr).focus().restoreDOM()})),Kr()},20)}function dr(wr){zn("onSelect:try"),wr=wr.nativeEvent?wr.nativeEvent:wr,window.cancelAnimationFrame(Ae),Ae=null,!Ot&&(Ae=window.requestAnimationFrame(function(){zn("onSelect:save-selection");var Hr=L()(wr.target).getSelection(),Ar=rt.findRange(Hr),yi=wa(Hr.anchorNode.textContent,Hr.anchorOffset),Rr=wa(Hr.focusNode.textContent,Hr.focusOffset);Ar.anchor.offset!==yi.offset&&(Ar=Ar.set("anchor",Ar.anchor.set("offset",yi.offset))),Ar.focus.offset!==Rr.offset&&(Ar=Ar.set("focus",Ar.focus.set("offset",Rr.offset))),zn("onSelect:save-data",{domSelection:Dt(Hr),range:Ar.toJS()}),Hr.isCollapsed&&vn.node!==Hr.anchorNode&&vn.diff!=null&&(zn("onSelect:applyDiff",vn.diff),Jr(),rt.select(Ar),Kr()),vn.range=Ar,vn.node=Hr.anchorNode}))}return{clearDiff:Br,connect:Ln,disconnect:_r,onKeyDown:It,onCompositionStart:jn,onCompositionEnd:Jt,onSelect:dr}}function Dt(rt){return{anchorNode:rt.anchorNode,anchorOffset:rt.anchorOffset,focusNode:rt.focusNode,focusOffset:rt.focusOffset}}function Xn(rt){var St=rt.getSelection(),_n=St.anchorNode;if(_n!=null){var vn=_n.parentElement.dataset,Ln=vn?vn.slateZeroWidth==="n":!1;if(Ln&&_n.textContent.length===1&&St.anchorOffset!==0){var _r=rt.document.createRange();_r.setStart(_n,0),_r.setEnd(_n,0),St.removeAllRanges(),St.addRange(_r)}}}function Tr(rt){var St=rt.editor,_n=new ji(St);function vn(){_n.onCompositionStart()}function Ln(){_n.onCompositionEnd()}function _r(le){var Ae=L()(le.target);Xn(Ae),_n.onSelect(le)}function Br(){_n.connect()}function Kr(){_n.connect()}function Jr(){_n.disconnect()}function ii(){_n.disconnect(),_n.clearDiff()}return{onComponentDidMount:Br,onComponentDidUpdate:Kr,onComponentWillUnmount:Jr,onCompositionEnd:Ln,onCompositionStart:vn,onRender:ii,onSelect:_r}}function Nr(){var rt={},St=!0,_n=!1,vn=void 0;try{for(var Ln=fn[Symbol.iterator](),_r;!(St=(_r=Ln.next()).done);St=!0){var Br=_r.value;rt[Br]=function(Kr,Jr,ii){}}}catch(Kr){_n=!0,vn=Kr}finally{try{!St&&Ln.return&&Ln.return()}finally{if(_n)throw vn}}return rt}var ti={FRAGMENT:"application/x-slate-fragment",HTML:"text/html",NODE:"application/x-slate-node",RICH:"text/rtf",TEXT:"text/plain"},_i=ti.FRAGMENT,Ii=ti.HTML,ta=ti.TEXT;function Ji(rt,St){var _n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};(0,We.A)(!x.Value.isValue(St),"As of Slate 0.42.0, the `cloneFragment` utility takes an `editor` instead of a `value`.");var vn=L()(rt.target),Ln=vn.getSelection(),_r=St.value,Br=_r.document,Kr=_r.fragment,Jr=_r.selection,ii=Jr.start,le=Jr.end,Ae=Br.getClosestVoid(ii.path,St),Oe=Br.getClosestVoid(le.path,St);if(!(Ln.isCollapsed&&!Ae)){var et=be.serializeNode(Kr),Ot=Ln.getRangeAt(0),It=Ot.cloneContents(),Mn=It.childNodes[0];if(It.childNodes.forEach(function(Ar){Ar.textContent&&Ar.textContent.trim()!==""&&(Mn=Ar)}),Oe){var mn=Ot.cloneRange(),At=Br.getPath(Oe.key);if(At){var Ut=St.findDOMNode(At);mn.setEndAfter(Ut),It=mn.cloneContents()}}if(Ae&&(Mn=It.childNodes[0].childNodes[1].firstChild),[].slice.call(It.querySelectorAll(Bn.ZERO_WIDTH)).forEach(function(Ar){var yi=Ar.getAttribute(Gn.ZERO_WIDTH)==="n";Ar.textContent=yi?` `:""}),Mn.nodeType===3){var jn=vn.document.createElement("span");jn.style.whiteSpace="pre",jn.appendChild(Mn),It.appendChild(jn),Mn=jn}Mn.setAttribute(Gn.FRAGMENT,et);var Jt=x.Value.create({document:Kr}),dr=pt.default.serialize(Jt),wr=vn.document.createElement("div");if(wr.appendChild(It),rt.clipboardData&&rt.clipboardData.setData&&!nn){rt.preventDefault(),rt.clipboardData.setData(ta,dr),rt.clipboardData.setData(_i,et),rt.clipboardData.setData(Ii,wr.innerHTML),_n();return}var Hr=rt.target.closest(Bn.EDITOR);wr.setAttribute("contenteditable",!0),wr.style.position="absolute",wr.style.left="-9999px",Hr.appendChild(wr),Ln.selectAllChildren(wr),vn.requestAnimationFrame(function(){Hr.removeChild(wr),En(Ln),Ln.addRange(Ot),_n()})}}var k=ti.FRAGMENT,ve=ti.HTML,Le=ti.NODE,Ye=ti.RICH,ot=ti.TEXT,Lt=/ data-slate-fragment="([^\s"]+)"/;function an(rt){!nn&&rt.nativeEvent&&(rt=rt.nativeEvent);var St=rt.dataTransfer||rt.clipboardData,_n=$r(St,k),vn=$r(St,Le),Ln=$r(St,ve),_r=$r(St,Ye),Br=$r(St,ot),Kr=void 0;if(!_n&&Ln&&~Ln.indexOf(" "+Gn.FRAGMENT+'="')){var Jr=Lt.exec(Ln),ii=ar(Jr,2),le=ii[0],Ae=ii[1];Ae&&(_n=Ae)}if(Br){var Oe=nr(Br);Oe[k]&&(_n=Oe[k]),Oe[Le]&&(vn=Oe[Le]),Oe[ot]&&(Br=Oe[ot])}_n&&(_n=be.deserializeNode(_n)),vn&&(vn=be.deserializeNode(vn));try{St.items&&St.items.length?Kr=Array.from(St.items).map(function(Ot){return Ot.kind==="file"?Ot.getAsFile():null}).filter(function(Ot){return Ot}):St.files&&St.files.length&&(Kr=Array.from(St.files))}catch{St.files&&St.files.length&&(Kr=Array.from(St.files))}var et={files:Kr,fragment:_n,html:Ln,node:vn,rich:_r,text:Br};return et.type=vr(et),et}function nr(rt){var St="SLATE-DATA-EMBED::";if(rt.substring(0,St.length)!==St)return{TEXT:rt};try{return JSON.parse(rt.substring(St.length))}catch{throw new Error("Unable to parse custom Slate drag event data.")}}function vr(rt){return rt.fragment?"fragment":rt.node?"node":rt.rich&&rt.html?"html":rt.rich&&rt.text?"text":rt.files&&rt.files.length?"files":rt.html?"html":rt.text?"text":"unknown"}function $r(rt,St){if(!rt.types||!rt.types.length)return St===ot&&rt.getData("Text")||null;var _n=Array.from(rt.types);return _n.indexOf(St)!==-1&&rt.getData(St)||null}var Fr=ti.TEXT;function qr(rt,St,_n){var vn=ti[St.toUpperCase()];if(!vn)throw new Error('Cannot set unknown transfer type "'+vn+'".');rt.nativeEvent&&(rt=rt.nativeEvent);var Ln=rt.dataTransfer||rt.clipboardData;try{Ln.setData(vn,_n),Ln.setData("text",Ln.getData("text"))}catch{var _r="SLATE-DATA-EMBED::",Br=Ln.getData(Fr),Kr={};if(Br.substring(0,_r.length)===_r)try{Kr=JSON.parse(Br.substring(_r.length))}catch{throw new Error("Failed to parse Slate data from `DataTransfer` object.")}else Kr[Fr]=Br;Kr[vn]=_n;var Jr=""+_r+JSON.stringify(Kr);Ln.setData(Fr,Jr)}}var jr=S()("slate:after");function vi(){var rt=null,St=!1;function _n(mn,At,Ut){var jn=At.value,Jt=!!mn.nativeEvent;if(Jt)return mn.preventDefault(),At.insertText(mn.data),Ut();var dr=mn.getTargetRanges(),wr=ar(dr,1),Hr=wr[0];if(!Hr)return Ut();jr("onBeforeInput",{event:mn}),mn.preventDefault();var Ar=jn.document,yi=jn.selection,Rr=At.findRange(Hr);switch(mn.inputType){case"deleteByDrag":case"deleteByCut":case"deleteContent":case"deleteContentBackward":case"deleteContentForward":{At.deleteAtRange(Rr);break}case"deleteWordBackward":{At.deleteWordBackwardAtRange(Rr);break}case"deleteWordForward":{At.deleteWordForwardAtRange(Rr);break}case"deleteSoftLineBackward":case"deleteHardLineBackward":{At.deleteLineBackwardAtRange(Rr);break}case"deleteSoftLineForward":case"deleteHardLineForward":{At.deleteLineForwardAtRange(Rr);break}case"insertLineBreak":case"insertParagraph":{var si=Ar.hasVoidParent(yi.start.path,At);si?At.moveToStartOfNextText():At.splitBlockAtRange(Rr);break}case"insertFromYank":case"insertReplacementText":case"insertText":{var Si=mn.data==null?mn.dataTransfer.getData("text/plain"):mn.data;if(Si==null)break;At.insertTextAtRange(Rr,Si,yi.marks),yi.marks&&jn.document!==At.value.document&&At.select({marks:null});break}}Ut()}function vn(mn,At,Ut){jr("onBlur",{event:mn}),At.blur(),Ut()}function Ln(mn,At,Ut){if(At.readOnly)return Ut();var jn=At.value,Jt=jn.document,dr=At.findPath(mn.target);if(!dr)return Ut();jr("onClick",{event:mn});var wr=Jt.getNode(dr),Hr=Jt.getAncestors(dr),Ar=wr&&(At.isVoid(wr)||Hr.some(function(yi){return At.isVoid(yi)}));Ar&&At.focus().moveToEndOfNode(wr),Ut()}function _r(mn,At,Ut){jr("onCopy",{event:mn}),Ji(mn,At),Ut()}function Br(mn,At,Ut){jr("onCut",{event:mn}),Ji(mn,At,function(){var jn=At.value,Jt=jn.document,dr=jn.selection,wr=dr.end,Hr=dr.isCollapsed,Ar=void 0;if(Hr){var yi=!0,Rr=!1,si=void 0;try{for(var Si=Jt.ancestors(wr.path)[Symbol.iterator](),$i;!(yi=($i=Si.next()).done);yi=!0){var Hi=$i.value,Oa=ar(Hi,2),Ma=Oa[0],Ua=Oa[1];if(At.isVoid(Ma)){Ar=Ua;break}}}catch(Xa){Rr=!0,si=Xa}finally{try{!yi&&Si.return&&Si.return()}finally{if(Rr)throw si}}}Ar?At.removeNodeByKey(Ar):At.delete()}),Ut()}function Kr(mn,At,Ut){jr("onDragEnd",{event:mn}),rt=null,Ut()}function Jr(mn,At,Ut){jr("onDragStart",{event:mn}),rt=!0;var jn=At.value,Jt=jn.document,dr=At.findPath(mn.target),wr=Jt.getNode(dr),Hr=Jt.getAncestors(dr),Ar=wr&&(At.isVoid(wr)||Hr.some(function(Si){return At.isVoid(Si)})),yi=jn.blocks.some(function(Si){return Si===wr});Ar&&!yi&&At.moveToRangeOfNode(wr);var Rr=At.value.fragment,si=be.serializeNode(Rr);qr(mn,"fragment",si),Ut()}function ii(mn,At,Ut){var jn=At.value,Jt=jn.document,dr=jn.selection,wr=L()(mn.target),Hr=At.findEventRange(mn);if(!Hr)return Ut();jr("onDrop",{event:mn});var Ar=an(mn),yi=Ar.type,Rr=Ar.fragment,si=Ar.text;At.focus();var Si=At.findDOMNode(Hr.focus.path);Si&&Si.dispatchEvent(new MouseEvent("mouseup",{view:wr,bubbles:!0,cancelable:!0}));var $i=dr;if(At.select(Hr),rt&&At.deleteAtRange($i),yi==="text"||yi==="html"){var Hi=Hr.anchor,Oa=Jt.hasVoidParent(Hi.path,At);if(Oa){for(var Ma=Hi.path,Ua=Jt.getNode(Hi.path);Oa;){var Xa=Jt.texts({path:Ma}),Na=ar(Xa,1),za=Na[0];if(!za)break;var qa=ar(za,2);Ua=qa[0],Ma=qa[1],Oa=Jt.hasVoidParent(Ma,At)}Ua&&At.moveToStartOfNode(Ua)}si&&si.split(` `).forEach(function(no,wo){wo>0&&At.splitBlock(),At.insertText(no)})}yi==="fragment"&&At.insertFragment(Rr),Ut()}function le(mn,At,Ut){jr("onFocus",{event:mn}),St&&!nn&&!Pn?At.deselect().focus():At.focus(),Ut()}function Ae(mn,At,Ut){jr("onInput");var jn=L()(mn.target),Jt=jn.getSelection(),dr=At.findSelection(Jt);dr?At.select(dr):At.blur();var wr=Jt.anchorNode;At.reconcileDOMNode(wr),Ut()}function Oe(mn,At,Ut){jr("onKeyDown",{event:mn});var jn=At.value,Jt=jn.document,dr=jn.selection,wr=dr.start,Hr=Jt.hasVoidParent(wr.path,At);if(he.isSplitBlock(mn)&&!Vt)return Hr?At.moveToStartOfNextText():At.splitBlock();if(he.isDeleteBackward(mn)&&!Vt)return At.deleteCharBackward();if(he.isDeleteForward(mn)&&!Vt)return At.deleteCharForward();if(he.isDeleteLineBackward(mn))return At.deleteLineBackward();if(he.isDeleteLineForward(mn))return At.deleteLineForward();if(he.isDeleteWordBackward(mn))return At.deleteWordBackward();if(he.isDeleteWordForward(mn))return At.deleteWordForward();if(he.isRedo(mn))return At.redo();if(he.isUndo(mn))return At.undo();if(he.isMoveLineBackward(mn))return mn.preventDefault(),At.moveToStartOfBlock();if(he.isMoveLineForward(mn))return mn.preventDefault(),At.moveToEndOfBlock();if(he.isExtendLineBackward(mn))return mn.preventDefault(),At.moveFocusToStartOfBlock();if(he.isExtendLineForward(mn))return mn.preventDefault(),At.moveFocusToEndOfBlock();if(he.isMoveBackward(mn))return mn.preventDefault(),dr.isCollapsed?At.moveBackward():At.moveToStart();if(he.isMoveForward(mn))return mn.preventDefault(),dr.isCollapsed?At.moveForward():At.moveToEnd();if(he.isMoveWordBackward(mn))return mn.preventDefault(),At.moveWordBackward();if(he.isMoveWordForward(mn))return mn.preventDefault(),At.moveWordForward();if(he.isExtendBackward(mn)){var Ar=Jt.getNode(wr.path),yi=Jt.texts({path:wr.path,direction:"backward"}),Rr=ar(yi,1),si=Rr[0],Si=!1;if(si){var $i=ar(si,2),Hi=$i[1];Si=Jt.hasVoidParent(Hi,At)}if(Hr||Si||Ar.text==="")return mn.preventDefault(),At.moveFocusBackward()}if(he.isExtendForward(mn)){var Oa=Jt.getNode(wr.path),Ma=Jt.texts({path:wr.path}),Ua=ar(Ma,1),Xa=Ua[0],Na=!1;if(Xa){var za=ar(Xa,2),qa=za[1];Na=Jt.hasVoidParent(qa,At)}if(Hr||Na||Oa.text==="")return mn.preventDefault(),At.moveFocusForward()}Ut()}function et(mn,At,Ut){jr("onMouseDown",{event:mn}),St=!0,Ut()}function Ot(mn,At,Ut){jr("onMouseUp",{event:mn}),St=!1,Ut()}function It(mn,At,Ut){jr("onPaste",{event:mn});var jn=At.value,Jt=an(mn),dr=Jt.type,wr=Jt.fragment,Hr=Jt.text;if(dr==="fragment"&&At.insertFragment(wr),dr==="text"||dr==="html"){if(!Hr)return Ut();var Ar=jn.document,yi=jn.selection,Rr=jn.startBlock;if(At.isVoid(Rr))return Ut();var si=Rr,Si=Ar.getInsertMarksAtRange(yi),$i=pt.default.deserialize(Hr,{defaultBlock:si,defaultMarks:Si}).document;At.insertFragment($i)}Ut()}function Mn(mn,At,Ut){jr("onSelect",{event:mn});var jn=L()(mn.target),Jt=jn.getSelection(),dr=At.findSelection(Jt);dr?At.select(dr):At.blur(),St=!1,Ut()}return{onBeforeInput:_n,onBlur:vn,onClick:Ln,onCopy:_r,onCut:Br,onDragEnd:Kr,onDragStart:Jr,onDrop:ii,onFocus:le,onInput:Ae,onKeyDown:Oe,onMouseDown:et,onMouseUp:Ot,onPaste:It,onSelect:Mn}}var Mi=S()("slate:before");function ra(){var rt=null,St=0,_n=!1,vn=!1,Ln=!1,_r=!1;function Br(Rr,si,Si){var $i=!!Rr.nativeEvent;si.readOnly||(_r=!0,!($i&&Cn)&&(Mi("onBeforeInput",{event:Rr}),Si()))}function Kr(Rr,si,Si){if(!vn&&!si.readOnly){var $i=Rr.relatedTarget,Hi=Rr.target,Oa=L()(Hi);if(rt!==Oa.document.activeElement){if($i){var Ma=si.findDOMNode([]);if($i===Ma||$i.hasAttribute(Gn.SPACER))return;var Ua=si.findNode($i);if(Ma.contains($i)&&Ua&&!si.isVoid(Ua))return}Mi("onBlur",{event:Rr}),Si()}}}function Jr(Rr,si,Si){var $i=St;_r=!0,window.requestAnimationFrame(function(){St>$i||(_n=!1)}),Mi("onCompositionEnd",{event:Rr}),Si()}function ii(Rr,si,Si){Mi("onClick",{event:Rr}),_r=!0,Si()}function le(Rr,si,Si){_n=!0,St++;var $i=si.value,Hi=$i.selection;_r=!0,Hi.isCollapsed||si.delete(),Mi("onCompositionStart",{event:Rr}),Si()}function Ae(Rr,si,Si){var $i=L()(Rr.target);vn=!0,$i.requestAnimationFrame(function(){return vn=!1}),Mi("onCopy",{event:Rr}),Si()}function Oe(Rr,si,Si){if(!si.readOnly){var $i=L()(Rr.target);vn=!0,$i.requestAnimationFrame(function(){return vn=!1}),Mi("onCut",{event:Rr}),Si()}}function et(Rr,si,Si){Ln=!1,Mi("onDragEnd",{event:Rr}),Si()}function Ot(Rr,si,Si){Mi("onDragEnter",{event:Rr}),Si()}function It(Rr,si,Si){Mi("onDragExit",{event:Rr}),Si()}function Mn(Rr,si,Si){Mi("onDragLeave",{event:Rr}),Si()}function mn(Rr,si,Si){var $i=si.findNode(Rr.target);(!$i||si.isVoid($i))&&Rr.preventDefault(),nn&&Rr.preventDefault(),Ln||(Ln=!0,nn||(Rr.nativeEvent.dataTransfer.dropEffect="move")),Mi("onDragOver",{event:Rr}),Si()}function At(Rr,si,Si){Ln=!0,Mi("onDragStart",{event:Rr}),Si()}function Ut(Rr,si,Si){si.readOnly||(_r=!0,Rr.preventDefault(),Mi("onDrop",{event:Rr}),Si())}function jn(Rr,si,Si){if(!vn&&!si.readOnly){var $i=si.findDOMNode([]),Hi=L()(Rr.target);if(rt=Hi.document.activeElement,Et&&Rr.target!==$i){$i.focus();return}Mi("onFocus",{event:Rr}),Si()}}function Jt(Rr,si,Si){_n||si.value.selection.isBlurred||(_r=!0,Mi("onInput",{event:Rr}),Si())}function dr(Rr,si,Si){if(!si.readOnly){if(_n){he.isCompose(Rr)&&Rr.preventDefault();return}!Vt&&(he.isBold(Rr)||he.isDeleteBackward(Rr)||he.isDeleteForward(Rr)||he.isDeleteLineBackward(Rr)||he.isDeleteLineForward(Rr)||he.isDeleteWordBackward(Rr)||he.isDeleteWordForward(Rr)||he.isItalic(Rr)||he.isRedo(Rr)||he.isSplitBlock(Rr)||he.isTransposeCharacter(Rr)||he.isUndo(Rr))&&Rr.preventDefault(),_r=!0,Mi("onKeyDown",{event:Rr}),Si()}}function wr(Rr,si,Si){si.readOnly||(_r=!0,Rr.preventDefault(),Mi("onPaste",{event:Rr}),Si())}function Hr(Rr,si,Si){if(!vn&&!_n&&!si.readOnly){var $i=L()(Rr.target);rt=$i.document.activeElement,_r=!0,Mi("onSelect",{event:Rr}),Si()}}function Ar(){return _r}function yi(){return _r=!1,null}return{onBeforeInput:Br,onBlur:Kr,onClick:ii,onCompositionEnd:Jr,onCompositionStart:le,onCopy:Ae,onCut:Oe,onDragEnd:et,onDragEnter:Ot,onDragExit:It,onDragLeave:Mn,onDragOver:mn,onDragStart:At,onDrop:Ut,onFocus:jn,onInput:Jt,onKeyDown:dr,onPaste:wr,onSelect:Hr,queries:{userActionPerformed:Ar},commands:{clearUserActionPerformed:yi}}}function Yi(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},St=rt.plugins,_n=St===void 0?[]:St,vn=ra(),Ln=vi(),_r=rn?[Tr(rt),Nr(rt)]:[];return[].concat(_r,[vn],Cr(_n),[Ln])}function ua(){function rt(St){var _n=St.tmp.contentRef.current.tmp;_n.contentKey=_n.contentKey+1}return{commands:{restoreDOM:rt}}}function Sa(rt){var St=rt.nativeEvent||rt;switch(St.type){case"keydown":return St.type+" "+JSON.stringify(St.key);case"input":case"beforeinput":case"textInput":return St.type+":"+St.inputType+" "+JSON.stringify(St.data);default:return St.type}}var Xt=S()("slate:events");function V(){var rt={},St=!0,_n=!1,vn=void 0;try{for(var Ln=fn[Symbol.iterator](),_r;!(St=(_r=Ln.next()).done);St=!0){var Br=_r.value;rt[Br]=function(Kr,Jr,ii){var le=Sa(Kr);Xt(le),ii()}}}catch(Kr){_n=!0,vn=Kr}finally{try{!St&&Ln.return&&Ln.return()}finally{if(_n)throw vn}}return rt}var Y=2e3,D=S()("slate:batch-events");function P(){var rt=null,St=null,_n=[];function vn(){D(` `+_n.join(` `)),_n.length=0}function Ln(Oe){_n.length===0&&(rt=new Date);var et=Sa(Oe),Ot=new Date;_n.push("- "+(Ot-rt)+" - "+et),clearTimeout(St),St=setTimeout(vn,Y)}var _r={},Br=!0,Kr=!1,Jr=void 0;try{for(var ii=fn[Symbol.iterator](),le;!(Br=(le=ii.next()).done);Br=!0){var Ae=le.value;_r[Ae]=function(Oe,et,Ot){Ln(Oe),Ot()}}}catch(Oe){Kr=!0,Jr=Oe}finally{try{!Br&&ii.return&&ii.return()}finally{if(Kr)throw Jr}}return _r}var oe=S()("slate:mutations"),Ie=["type","oldValue","target","addedNodes","removedNodes","attributeName","attributeNamespace","nextSibling","previousSibling"];function Ue(rt){if(rt.nodeType===window.Node.TEXT_NODE)return rt.textContent;if(rt.nodeType===window.Node.ELEMENT_NODE){var St=rt.outerHTML,_n=rt.innerHTML;return St==null?JSON.stringify(rt.textContent):St.slice(0,St.indexOf(_n))}else return"Node(type="+rt.nodeType}function Xe(){var rt=new window.MutationObserver(function(Ln){var _r=Array.from(Ln).map(function(Br){var Kr={};return Ie.forEach(function(Jr){var ii=Br[Jr];if(ii!=null){if(ii instanceof window.NodeList){if(ii.length===0)return;Kr[Jr]=Array.from(ii).map(Ue).join(", ");return}ii instanceof window.Node&&(ii=Ue(ii)),Kr[Jr]=ii}}),Kr});oe.apply(void 0,[_r.length+" Mutations"].concat(Cr(_r)))}),St=null;function _n(Ln,_r,Br){var Kr=_r.findDOMNode([]);if(Kr===St)return Br();oe("start"),rt.observe(Kr,{childList:!0,characterData:!0,attributes:!0,subtree:!0,characterDataOldValue:!0}),St=Kr,Br()}function vn(Ln,_r,Br){oe("stop"),rt.disconnect(),St=null,Br()}return{onComponentDidMount:_n,onComponentDidUpdate:_n,onComponentWillUnmount:vn}}function dt(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},St=rt.placeholder,_n=St===void 0?"":St,vn=S().enabled("slate:events")?V(rt):null,Ln=S().enabled("slate:batch-events")?P(rt):null,_r=S().enabled("slate:mutations")?Xe(rt):null,Br=mi(rt),Kr=ei(rt),Jr=Qr(rt),ii=xi(rt),le=Yi(rt),Ae=ua(),Oe=rn?null:hn({placeholder:_n,when:function(Ot,It){return It.object==="document"&&It.text===""&&It.nodes.size===1&&Array.from(It.texts()).length===1}});return[vn,Ln,_r,ii,le,Ae,Oe,Br,Kr,Jr]}var kt=S()("slate:editor"),dn=function(rt){mr(St,rt);function St(){var _n,vn,Ln,_r;Lr(this,St);for(var Br=arguments.length,Kr=Array(Br),Jr=0;Jr<Br;Jr++)Kr[Jr]=arguments[Jr];return _r=(vn=(Ln=hr(this,(_n=St.__proto__||Object.getPrototypeOf(St)).call.apply(_n,[this].concat(Kr))),Ln),Ln.state={value:Ln.props.defaultValue,contentKey:0},Ln.tmp={mounted:!1,change:null,resolves:0,updates:0,contentRef:l.createRef()},Ln.resolveController=qt(function(){var ii=arguments[5];R(Ln.tmp.resolves<5||Ln.tmp.resolves!==Ln.tmp.updates,"A Slate <Editor> component is re-resolving the `plugins`, `schema`, `commands`, `queries` or `placeholder` prop on each update, which leads to poor performance. This is often due to passing in a new references for these props with each render by declaring them inline in your render function. Do not do this! Declare them outside your render function, or memoize them instead."),Ln.tmp.resolves++;var le=ii(cr({},Ln.props,{editor:Ln,value:Ln.props.value||Ln.state.value})),Ae=function(et){Ln.tmp.mounted?Ln.handleChange(et):Ln.tmp.change=et};Ln.controller=new x.Editor({plugins:[le],onChange:Ae},{controller:Ln,construct:!1}),Ln.controller.run("onConstruct")}),vn),hr(Ln,_r)}return An(St,[{key:"componentDidMount",value:function(){this.tmp.mounted=!0,this.tmp.updates++,this.props.autoFocus&&this.focus(),this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentDidUpdate",value:function(){this.tmp.updates++,this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentWillUnmount",value:function(){this.tmp.mounted=!1}},{key:"render",value:function(){var vn=this;kt("render",this);var Ln=this.props,_r=Ln.commands,Br=Ln.placeholder,Kr=Ln.plugins,Jr=Ln.queries,ii=Ln.schema;this.resolveController(Kr,ii,_r,Jr,Br,dt);var le=this.props,Ae=le.options,Oe=le.readOnly,et=le.value,Ot=this.state.value,It=et||Ot,Mn=this.state.contentKey;this.controller.setReadOnly(Oe),this.controller.setValue(It,Ae);var mn=this.props,At=mn.autoCorrect,Ut=mn.className,jn=mn.id,Jt=mn.role,dr=mn.spellCheck,wr=mn.tabIndex,Hr=mn.style,Ar=mn.tagName,yi=en()(this.props,Object.keys(St.propTypes)),Rr=l.createElement(Pr,cr({},yi,{ref:this.tmp.contentRef,autoCorrect:At,className:Ut,contentKey:Mn,editor:this,id:jn,onEvent:function($i,Hi){return vn.run($i,Hi)},readOnly:Oe,role:Jt,spellCheck:dr,style:Hr,tabIndex:wr,tagName:Ar})),si=this.controller.run("renderEditor",cr({},this.props,{editor:this,children:Rr}));return si}},{key:"handleChange",value:function(vn){var Ln=this.props.onChange,_r=this.state.value;_r&&this.setState({value:vn.value}),Ln(vn)}},{key:"applyOperation",value:function(){var vn;return(vn=this.controller).applyOperation.apply(vn,arguments)}},{key:"command",value:function(){var vn;return(vn=this.controller).command.apply(vn,arguments)}},{key:"hasCommand",value:function(){var vn;return(vn=this.controller).hasCommand.apply(vn,arguments)}},{key:"hasQuery",value:function(){var vn;return(vn=this.controller).hasQuery.apply(vn,arguments)}},{key:"normalize",value:function(){var vn;return(vn=this.controller).normalize.apply(vn,arguments)}},{key:"query",value:function(){var vn;return(vn=this.controller).query.apply(vn,arguments)}},{key:"registerCommand",value:function(){var vn;return(vn=this.controller).registerCommand.apply(vn,arguments)}},{key:"registerQuery",value:function(){var vn;return(vn=this.controller).registerQuery.apply(vn,arguments)}},{key:"run",value:function(){var vn;return(vn=this.controller).run.apply(vn,arguments)}},{key:"withoutNormalizing",value:function(){var vn;return(vn=this.controller).withoutNormalizing.apply(vn,arguments)}},{key:"call",value:function(){var vn;return(vn=this.controller).call.apply(vn,arguments)}},{key:"change",value:function(){var vn;return(vn=this.controller).change.apply(vn,arguments)}},{key:"onChange",value:function(){var vn;return(vn=this.controller).onChange.apply(vn,arguments)}},{key:"applyOperations",value:function(){var vn;return(vn=this.controller).applyOperations.apply(vn,arguments)}},{key:"setOperationFlag",value:function(){var vn;return(vn=this.controller).setOperationFlag.apply(vn,arguments)}},{key:"getFlag",value:function(){var vn;return(vn=this.controller).getFlag.apply(vn,arguments)}},{key:"unsetOperationFlag",value:function(){var vn;return(vn=this.controller).unsetOperationFlag.apply(vn,arguments)}},{key:"withoutNormalization",value:function(){var vn;return(vn=this.controller).withoutNormalization.apply(vn,arguments)}},{key:"operations",get:function(){return this.controller.operations}},{key:"readOnly",get:function(){return this.controller.readOnly}},{key:"value",get:function(){return this.controller.value}},{key:"editor",get:function(){return this.controller.editor}},{key:"schema",get:function(){(0,We.A)(!1,"As of Slate 0.42, the `editor.schema` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}},{key:"stack",get:function(){(0,We.A)(!1,"As of Slate 0.42, the `editor.stack` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}}]),St}(l.Component);dn.propTypes=cr({autoCorrect:y().bool,autoFocus:y().bool,className:y().string,defaultValue:h.value,id:y().string,onChange:y().func,options:y().object,placeholder:y().any,plugins:y().array,readOnly:y().bool,role:y().string,schema:y().object,spellCheck:y().bool,style:y().object,tabIndex:y().number,value:h.value},fn.reduce(function(rt,St){return rt[St]=y().func,rt},{}),On.reduce(function(rt,St){return rt[St]=y().func,rt},{})),dn.defaultProps={autoFocus:!1,autoCorrect:!0,onChange:function(){},options:{},placeholder:"",plugins:[],readOnly:!1,schema:{},spellCheck:!0};function Vn(rt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;R(!1,"As of slate-react@0.22 the `findDOMNode(key)` helper is deprecated in favor of `editor.findDOMNode(path)`."),x.Node.isNode(rt)&&(rt=rt.key);var _n=St.document.querySelector("["+Gn.KEY+'="'+rt+'"]');if(!_n)throw new Error('Unable to find a DOM node for "'+rt+'". This is often because of forgetting to add `props.attributes` to a custom component.');return _n}function qn(rt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;R(!1,"As of slate-react@0.22 the `findDOMPoint(point)` helper is deprecated in favor of `editor.findDOMPoint(point)`.");var _n=Vn(rt.key,St),vn=0,Ln=Array.from(_n.querySelectorAll(Bn.STRING+", "+Bn.ZERO_WIDTH)),_r=!0,Br=!1,Kr=void 0;try{for(var Jr=Ln[Symbol.iterator](),ii;!(_r=(ii=Jr.next()).done);_r=!0){var le=ii.value,Ae=le.childNodes[0],Oe=Ae.textContent.length,et=Oe;le.hasAttribute(Gn.LENGTH)&&(et=parseInt(le.getAttribute(Gn.LENGTH),10));var Ot=vn+et;if(rt.offset<=Ot){var It=Math.min(Oe,Math.max(0,rt.offset-vn));return{node:Ae,offset:It}}vn=Ot}}catch(Mn){Br=!0,Kr=Mn}finally{try{!_r&&Jr.return&&Jr.return()}finally{if(Br)throw Kr}}return null}function yr(rt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;R(!1,"As of slate-react@0.22 the `findDOMRange(range)` helper is deprecated in favor of `editor.findDOMRange(range)`.");var _n=rt.anchor,vn=rt.focus,Ln=rt.isBackward,_r=rt.isCollapsed,Br=qn(_n,St),Kr=_r?Br:qn(vn,St);if(!Br||!Kr)return null;var Jr=St.document.createRange(),ii=Ln?Kr:Br,le=Ln?Br:Kr;return Jr.setStart(ii.node,ii.offset),Jr.setEnd(le.node,le.offset),Jr}function ci(rt,St){R(!1,"As of slate-react@0.22 the `findNode(element)` helper is deprecated in favor of `editor.findNode(element)`."),(0,We.A)(!x.Value.isValue(St),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var _n=rt.closest(Bn.KEY);if(!_n)return null;var vn=_n.getAttribute(Gn.KEY);if(!vn)return null;var Ln=St.value,_r=Ln.document,Br=_r.getNode(vn);return Br||null}function hi(rt,St){R(!1,"As of slate-react@0.22 the `findPath(element)` helper is deprecated in favor of `editor.findPath(element)`.");var _n=ci(rt,St);if(!_n)return null;var vn=St.value,Ln=vn.document,_r=Ln.getPath(_n);return _r}function Ti(rt,St,_n){R(!1,"As of slate-react@0.22 the `findPoint(node, offset)` helper is deprecated in favor of `editor.findPoint(node, offset)`."),(0,We.A)(!x.Value.isValue(_n),"As of Slate 0.42.0, the `findPoint` utility takes an `editor` instead of a `value`.");var vn=Vi(rt,St),Ln=vn.node,_r=vn.offset,Br=L()(rt),Kr=Ln.parentNode,Jr=Kr.closest(Bn.LEAF),ii=void 0,le=void 0;if(Jr){var Ae=Br.document.createRange(),Oe=Jr.closest(Bn.TEXT);Ae.setStart(Oe,0),Ae.setEnd(Ln,_r),le=Oe;var et=Ae.cloneContents(),Ot=et.querySelectorAll("["+Gn.ZERO_WIDTH+"]");ii=et.textContent.length-Ot.length}else{var It=Kr.closest(Bn.VOID);if(!It||(Jr=It.querySelector(Bn.LEAF),!Jr))return null;le=Jr,ii=le.textContent.length}ii===le.textContent.length&&Kr.hasAttribute(Gn.ZERO_WIDTH)&&ii--;var Mn=Jr.getAttribute(Gn.OFFSET_KEY);if(!Mn)return null;var mn=ki.parse(Mn),At=mn.key,Ut=_n.value;if(!Ut.document.hasDescendant(At))return null;var jn=Ut.document.createPoint({key:At,offset:ii});return jn}function Vi(rt,St){if(rt.nodeType===1&&rt.childNodes.length){var _n=St===rt.childNodes.length,vn=_n?"backward":"forward",Ln=_n?St-1:St;for(rt=Di(rt,Ln,vn);rt.nodeType===1&&rt.childNodes.length;){var _r=_n?rt.childNodes.length-1:0;rt=Di(rt,_r,vn)}St=_n?rt.textContent.length:0}return{node:rt,offset:St}}function Di(rt,St,_n){for(var vn=rt.childNodes,Ln=vn[St],_r=St,Br=!1,Kr=!1;(Ln.nodeType===8||Ln.nodeType===1&&Ln.childNodes.length===0||Ln.nodeType===1&&Ln.getAttribute("contenteditable")==="false")&&!(Br&&Kr);){if(_r>=vn.length){Br=!0,_r=St-1,_n="backward";continue}if(_r<0){Kr=!0,_r=St+1,_n="forward";continue}Ln=vn[_r],_n==="forward"&&_r++,_n==="backward"&&_r--}return Ln||null}function Pi(rt,St){R(!1,"As of slate-react@0.22 the `findRange(selection)` helper is deprecated in favor of `editor.findRange(selection)`."),(0,We.A)(!x.Value.isValue(St),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var _n=rt.anchorNode||rt.startContainer;if(!_n)return null;var vn=L()(_n);(rt instanceof vn.Range||vn.StaticRange&&rt instanceof vn.StaticRange)&&(rt={anchorNode:rt.startContainer,anchorOffset:rt.startOffset,focusNode:rt.endContainer,focusOffset:rt.endOffset});var Ln=rt,_r=Ln.anchorNode,Br=Ln.anchorOffset,Kr=Ln.focusNode,Jr=Ln.focusOffset,ii=Ln.isCollapsed,le=St.value,Ae=Ti(_r,Br,St),Oe=ii?Ae:Ti(Kr,Jr,St);if(!Ae||!Oe)return null;var et=le.document,Ot=et.createRange({anchor:Ae,focus:Oe});return Ot}function mt(rt,St){R(!1,"As of slate-react@0.22 the `getEventRange(event, editor)` helper is deprecated in favor of `editor.findEventRange(event)`."),(0,We.A)(!x.Value.isValue(St),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`."),rt.nativeEvent&&(rt=rt.nativeEvent);var _n=rt,vn=_n.clientX,Ln=_n.clientY,_r=_n.target;if(vn==null||Ln==null)return null;var Br=St.value,Kr=Br.document,Jr=hi(rt.target,St);if(!Jr)return null;var ii=Kr.getNode(Jr);if(St.isVoid(ii)){var le=_r.getBoundingClientRect(),Ae=ii.object==="inline"?vn-le.left<le.left+le.width-vn:Ln-le.top<le.top+le.height-Ln,Oe=Kr.createRange(),et=Ae?"moveToEndOfNode":"moveToStartOfNode",Ot=Kr[Ae?"getPreviousText":"getNextText"](Jr);return Ot?Oe[et](Ot):null}var It=L()(_r),Mn=void 0;if(It.document.caretRangeFromPoint)Mn=It.document.caretRangeFromPoint(vn,Ln);else if(It.document.caretPositionFromPoint){var mn=It.document.caretPositionFromPoint(vn,Ln);Mn=It.document.createRange(),Mn.setStart(mn.offsetNode,mn.offset),Mn.setEnd(mn.offsetNode,mn.offset)}else if(It.document.body.createTextRange){Mn=It.document.body.createTextRange();try{Mn.moveToPoint(vn,Ln)}catch{return null}}var At=Pi(Mn,St);return At||null}var tn={Editor:dn,cloneFragment:Ji,findDOMNode:Vn,findDOMPoint:qn,findDOMRange:yr,findNode:ci,findPath:hi,findPoint:Ti,findRange:Pi,getEventRange:mt,getEventTransfer:an,setEventTransfer:qr,ReactPlugin:dt};const or=tn},29405:(Ge,w,u)=>{"use strict";u.d(w,{S:()=>y});var l=u(92908),g=u(97843);function y(x,f){return(0,l.N)((0,g.S)(x,f,arguments.length>=2,!0))}},29407:(Ge,w,u)=>{"use strict";u.d(w,{a:()=>g});var l=u(43329);function g(x,f){return(0,l.w)(f||x,x)}var y=null},29512:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.concatMap=void 0;var l=u(67478),g=u(10281);function y(x,f){return g.isFunction(f)?l.mergeMap(x,f,1):l.mergeMap(x,1)}w.concatMap=y},29647:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>f});var l=u(96540),g=u(2739),y=["mousedown","touchstart"],x=function(p,h,E){E===void 0&&(E=y);var v=(0,l.useRef)(h);(0,l.useEffect)(function(){v.current=h},[h]),(0,l.useEffect)(function(){for(var m=function(R){var C=p.current;C&&!C.contains(R.target)&&v.current(R)},S=0,d=E;S<d.length;S++){var O=d[S];(0,g.on)(document,O,m)}return function(){for(var R=0,C=E;R<C.length;R++){var L=C[R];(0,g.AU)(document,L,m)}}},[E,p])};const f=x},30048:(Ge,w,u)=>{"use strict";u.d(w,{c:()=>v});var l=u(22803),g=u(96540),y=u(44019),x=u(30703),f=u(45967),p=u(35137),h=u(37386),E=u(63142);const v=S=>{var d;const{label:O,optional:R,tooltip:C,tooltipInteractive:L,children:j,width:I,...U}=S,$=(0,E.of)(m,I),ee=U?.htmlFor||((d=y)==null?void 0:d.getChildId(j)),re=g.createElement(g.Fragment,null,g.createElement("label",{className:$.label,htmlFor:ee},O,R&&g.createElement("span",{className:$.optional}," - optional"),C&&g.createElement(f.m,{placement:"top",content:C,theme:"info",interactive:L},g.createElement(x.I,{tabIndex:0,name:"info-circle",size:"sm",className:$.icon}))),g.createElement(p.$,{v:.5}));return g.createElement("div",{className:$.root},g.createElement(h.D,{className:$.field,label:re,...U},j))},m=(S,d)=>({root:(0,l.css)({minWidth:S.spacing(d??0)}),label:(0,l.css)({fontSize:12,fontWeight:S.typography.fontWeightMedium}),optional:(0,l.css)({fontStyle:"italic",color:S.colors.text.secondary}),field:(0,l.css)({marginBottom:0}),icon:(0,l.css)({color:S.colors.text.secondary,marginLeft:S.spacing(1),":hover":{color:S.colors.text.primary}})})},30131:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scheduled=void 0;var l=u(65650),g=u(54530),y=u(34950),x=u(36805),f=u(17873),p=u(80629),h=u(67552),E=u(94975),v=u(12187),m=u(78263),S=u(86297),d=u(95462),O=u(30380);function R(C,L){if(C!=null){if(p.isInteropObservable(C))return l.scheduleObservable(C,L);if(E.isArrayLike(C))return y.scheduleArray(C,L);if(h.isPromise(C))return g.schedulePromise(C,L);if(m.isAsyncIterable(C))return f.scheduleAsyncIterable(C,L);if(v.isIterable(C))return x.scheduleIterable(C,L);if(d.isReadableStreamLike(C))return O.scheduleReadableStreamLike(C,L)}throw S.createInvalidObservableTypeError(C)}w.scheduled=R},30313:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(68037);function g(x,f){var p=Object.keys(x);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(x);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(x,E).enumerable})),p.push.apply(p,h)}return p}function y(x){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?g(Object(p),!0).forEach(function(h){(0,l.A)(x,h,p[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(p)):g(Object(p)).forEach(function(h){Object.defineProperty(x,h,Object.getOwnPropertyDescriptor(p,h))})}return x}},30380:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scheduleReadableStreamLike=void 0;var l=u(17873),g=u(95462);function y(x,f){return l.scheduleAsyncIterable(g.readableStreamLikeToAsyncGenerator(x),f)}w.scheduleReadableStreamLike=y},30399:function(Ge,w,u){Ge=u.nmd(Ge);var l;/*! https://mths.be/esrever v0.2.0 by @mathias */(function(g){var y=w,x=Ge&&Ge.exports==y&&Ge,f=typeof u.g=="object"&&u.g;(f.global===f||f.window===f)&&(g=f);var p=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,h=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,E=function(S){S=S.replace(p,function(R,C,L){return E(L)+C}).replace(h,"$2$1");for(var d="",O=S.length;O--;)d+=S.charAt(O);return d},v={version:"0.2.0",reverse:E};if(1)l=function(){return v}.call(w,u,w,Ge),l!==void 0&&(Ge.exports=l);else var m})(this)},30503:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>v});var l=u(66514),g=u(70915),y=u(61597),x=u(44294),f=u(62096),p=u(92497),h=u(56361);class E extends f.Ay{constructor(S,d){super(),d&&!Array.isArray(S[0])?this.setFlatCoordinates(d,S):this.setCoordinates(S,d)}appendPoint(S){(0,l.X$)(this.flatCoordinates,S.getFlatCoordinates()),this.changed()}clone(){const S=new E(this.flatCoordinates.slice(),this.layout);return S.applyProperties(this),S}closestPointXY(S,d,O,R){if(R<(0,g.Ld)(this.getExtent(),S,d))return R;const C=this.flatCoordinates,L=this.stride;for(let j=0,I=C.length;j<I;j+=L){const U=(0,y.hG)(S,d,C[j],C[j+1]);if(U<R){R=U;for(let $=0;$<L;++$)O[$]=C[j+$];O.length=L}}return R}getCoordinates(){return(0,h.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(S){const d=this.flatCoordinates.length/this.stride;return S<0||d<=S?null:new x.A(this.flatCoordinates.slice(S*this.stride,(S+1)*this.stride),this.layout)}getPoints(){const S=this.flatCoordinates,d=this.layout,O=this.stride,R=[];for(let C=0,L=S.length;C<L;C+=O){const j=new x.A(S.slice(C,C+O),d);R.push(j)}return R}getType(){return"MultiPoint"}intersectsExtent(S){const d=this.flatCoordinates,O=this.stride;for(let R=0,C=d.length;R<C;R+=O){const L=d[R],j=d[R+1];if((0,g.Rj)(S,L,j))return!0}return!1}setCoordinates(S,d){this.setLayout(d,S,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,p.z2)(this.flatCoordinates,0,S,this.stride),this.changed()}}const v=E},30514:(Ge,w,u)=>{var l=u(34932);function g(y,x){return l(x,function(f){return y[f]})}Ge.exports=g},30541:Ge=>{function w(u){var l=Object(u),g=[];for(var y in l)g.unshift(y);return function x(){for(;g.length;)if((y=g.pop())in l)return x.value=y,x.done=!1,x;return x.done=!0,x}}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},30580:(Ge,w,u)=>{var l=u(1262).default,g=u(48081);function y(x){var f=g(x,"string");return l(f)=="symbol"?f:f+""}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},30632:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.throwIfEmpty=void 0;var l=u(59328),g=u(65212),y=u(17214);function x(p){return p===void 0&&(p=f),g.operate(function(h,E){var v=!1;h.subscribe(y.createOperatorSubscriber(E,function(m){v=!0,E.next(m)},function(){return v?E.complete():E.error(p())}))})}w.throwIfEmpty=x;function f(){return new l.EmptyError}},30736:(Ge,w,u)=>{"use strict";u.d(w,{J:()=>l});const l=typeof globalThis<"u"?globalThis:typeof u.g<"u"?u.g:typeof self<"u"?self:void 0},30790:(Ge,w,u)=>{var l=u(62886);function g(y,x,f,p,h){var E=l(y,x,f,p,h);return E.next().then(function(v){return v.done?v.value:E.next()})}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},30981:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p,o:()=>f});var l=u(96540),g=u(20998),y=(0,g.A)()?l.useLayoutEffect:l.useEffect,x=function(E,v){var m=l.useRef(!0);y(function(){return E(m.current)},v),y(function(){return m.current=!1,function(){m.current=!0}},[])},f=function(E,v){x(function(m){if(!m)return E()},v)};const p=x},31033:(Ge,w,u)=>{"use strict";u.d(w,{Bp:()=>Nr,mH:()=>Y});function l(D,P){if(D==null)return{};var oe={};for(var Ie in D)if({}.hasOwnProperty.call(D,Ie)){if(P.indexOf(Ie)!==-1)continue;oe[Ie]=D[Ie]}return oe}function g(){return g=Object.assign?Object.assign.bind():function(D){for(var P=1;P<arguments.length;P++){var oe=arguments[P];for(var Ie in oe)({}).hasOwnProperty.call(oe,Ie)&&(D[Ie]=oe[Ie])}return D},g.apply(null,arguments)}var y=u(83175),x=u.n(y),f=u(96540),p=u(44353);const h=D=>typeof D=="object"&&D!=null&&D.nodeType===1,E=(D,P)=>(!P||D!=="hidden")&&D!=="visible"&&D!=="clip",v=(D,P)=>{if(D.clientHeight<D.scrollHeight||D.clientWidth<D.scrollWidth){const oe=getComputedStyle(D,null);return E(oe.overflowY,P)||E(oe.overflowX,P)||(Ie=>{const Ue=(Xe=>{if(!Xe.ownerDocument||!Xe.ownerDocument.defaultView)return null;try{return Xe.ownerDocument.defaultView.frameElement}catch{return null}})(Ie);return!!Ue&&(Ue.clientHeight<Ie.scrollHeight||Ue.clientWidth<Ie.scrollWidth)})(D)}return!1},m=(D,P,oe,Ie,Ue,Xe,dt,kt)=>Xe<D&&dt>P||Xe>D&&dt<P?0:Xe<=D&&kt<=oe||dt>=P&&kt>=oe?Xe-D-Ie:dt>P&&kt<oe||Xe<D&&kt>oe?dt-P+Ue:0,S=D=>{const P=D.parentElement;return P??(D.getRootNode().host||null)},d=(D,P)=>{var oe,Ie,Ue,Xe;if(typeof document>"u")return[];const{scrollMode:dt,block:kt,inline:dn,boundary:Vn,skipOverflowHiddenElements:qn}=P,yr=typeof Vn=="function"?Vn:Ae=>Ae!==Vn;if(!h(D))throw new TypeError("Invalid target");const ci=document.scrollingElement||document.documentElement,hi=[];let Ti=D;for(;h(Ti)&&yr(Ti);){if(Ti=S(Ti),Ti===ci){hi.push(Ti);break}Ti!=null&&Ti===document.body&&v(Ti)&&!v(document.documentElement)||Ti!=null&&v(Ti,qn)&&hi.push(Ti)}const Vi=(Ie=(oe=window.visualViewport)==null?void 0:oe.width)!=null?Ie:innerWidth,Di=(Xe=(Ue=window.visualViewport)==null?void 0:Ue.height)!=null?Xe:innerHeight,{scrollX:Pi,scrollY:mt}=window,{height:tn,width:or,top:rt,right:St,bottom:_n,left:vn}=D.getBoundingClientRect(),{top:Ln,right:_r,bottom:Br,left:Kr}=(Ae=>{const Oe=window.getComputedStyle(Ae);return{top:parseFloat(Oe.scrollMarginTop)||0,right:parseFloat(Oe.scrollMarginRight)||0,bottom:parseFloat(Oe.scrollMarginBottom)||0,left:parseFloat(Oe.scrollMarginLeft)||0}})(D);let Jr=kt==="start"||kt==="nearest"?rt-Ln:kt==="end"?_n+Br:rt+tn/2-Ln+Br,ii=dn==="center"?vn+or/2-Kr+_r:dn==="end"?St+_r:vn-Kr;const le=[];for(let Ae=0;Ae<hi.length;Ae++){const Oe=hi[Ae],{height:et,width:Ot,top:It,right:Mn,bottom:mn,left:At}=Oe.getBoundingClientRect();if(dt==="if-needed"&&rt>=0&&vn>=0&&_n<=Di&&St<=Vi&&rt>=It&&_n<=mn&&vn>=At&&St<=Mn)return le;const Ut=getComputedStyle(Oe),jn=parseInt(Ut.borderLeftWidth,10),Jt=parseInt(Ut.borderTopWidth,10),dr=parseInt(Ut.borderRightWidth,10),wr=parseInt(Ut.borderBottomWidth,10);let Hr=0,Ar=0;const yi="offsetWidth"in Oe?Oe.offsetWidth-Oe.clientWidth-jn-dr:0,Rr="offsetHeight"in Oe?Oe.offsetHeight-Oe.clientHeight-Jt-wr:0,si="offsetWidth"in Oe?Oe.offsetWidth===0?0:Ot/Oe.offsetWidth:0,Si="offsetHeight"in Oe?Oe.offsetHeight===0?0:et/Oe.offsetHeight:0;if(ci===Oe)Hr=kt==="start"?Jr:kt==="end"?Jr-Di:kt==="nearest"?m(mt,mt+Di,Di,Jt,wr,mt+Jr,mt+Jr+tn,tn):Jr-Di/2,Ar=dn==="start"?ii:dn==="center"?ii-Vi/2:dn==="end"?ii-Vi:m(Pi,Pi+Vi,Vi,jn,dr,Pi+ii,Pi+ii+or,or),Hr=Math.max(0,Hr+mt),Ar=Math.max(0,Ar+Pi);else{Hr=kt==="start"?Jr-It-Jt:kt==="end"?Jr-mn+wr+Rr:kt==="nearest"?m(It,mn,et,Jt,wr+Rr,Jr,Jr+tn,tn):Jr-(It+et/2)+Rr/2,Ar=dn==="start"?ii-At-jn:dn==="center"?ii-(At+Ot/2)+yi/2:dn==="end"?ii-Mn+dr+yi:m(At,Mn,Ot,jn,dr+yi,ii,ii+or,or);const{scrollLeft:$i,scrollTop:Hi}=Oe;Hr=Si===0?0:Math.max(0,Math.min(Hi+Hr/Si,Oe.scrollHeight-et/Si+Rr)),Ar=si===0?0:Math.max(0,Math.min($i+Ar/si,Oe.scrollWidth-Ot/si+yi)),Jr+=Hi-Hr,ii+=$i-Ar}le.push({el:Oe,top:Hr,left:Ar})}return le};var O=u(31635),R=0;function C(D){return typeof D=="function"?D:L}function L(){}function j(D,P){if(D){var oe=d(D,{boundary:P,block:"nearest",scrollMode:"if-needed"});oe.forEach(function(Ie){var Ue=Ie.el,Xe=Ie.top,dt=Ie.left;Ue.scrollTop=Xe,Ue.scrollLeft=dt})}}function I(D,P,oe){var Ie=D===P||P instanceof oe.Node&&D.contains&&D.contains(P);return Ie}function U(D,P){var oe;function Ie(){oe&&clearTimeout(oe)}function Ue(){for(var Xe=arguments.length,dt=new Array(Xe),kt=0;kt<Xe;kt++)dt[kt]=arguments[kt];Ie(),oe=setTimeout(function(){oe=null,D.apply(void 0,dt)},P)}return Ue.cancel=Ie,Ue}function $(){for(var D=arguments.length,P=new Array(D),oe=0;oe<D;oe++)P[oe]=arguments[oe];return function(Ie){for(var Ue=arguments.length,Xe=new Array(Ue>1?Ue-1:0),dt=1;dt<Ue;dt++)Xe[dt-1]=arguments[dt];return P.some(function(kt){return kt&&kt.apply(void 0,[Ie].concat(Xe)),Ie.preventDownshiftDefault||Ie.hasOwnProperty("nativeEvent")&&Ie.nativeEvent.preventDownshiftDefault})}}function ee(){for(var D=arguments.length,P=new Array(D),oe=0;oe<D;oe++)P[oe]=arguments[oe];return function(Ie){P.forEach(function(Ue){typeof Ue=="function"?Ue(Ie):Ue&&(Ue.current=Ie)})}}function re(){return String(R++)}function Se(){if("useId"in React){console.warn("It is not necessary to call resetIdCounter when using React 18+");return}R=0}function z(D){var P=D.isOpen,oe=D.resultCount,Ie=D.previousResultCount;return P?oe?oe!==Ie?oe+" result"+(oe===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Q(D,P){return D=Array.isArray(D)?D[0]:D,!D&&P?P:D}function ce(D){return typeof D.type=="string"}function se(D){return D.props}function q(D,P){console.error('The property "'+P+'" is required in "'+D+'"')}var te=null;function A(D){D===void 0&&(D={});var P={};return te.forEach(function(oe){D.hasOwnProperty(oe)&&(P[oe]=D[oe])}),P}function T(D,P){return!D||!P?D:Object.keys(D).reduce(function(oe,Ie){return oe[Ie]=B(P,Ie)?P[Ie]:D[Ie],oe},{})}function B(D,P){return D[P]!==void 0}function X(D){var P=D.key,oe=D.keyCode;return oe>=37&&oe<=40&&P.indexOf("Arrow")!==0?"Arrow"+P:P}function ue(D){return Object.prototype.toString.call(D)==="[object Object]"}function ie(D,P,oe,Ie,Ue){Ue===void 0&&(Ue=!1);var Xe=oe.length;if(Xe===0)return-1;var dt=Xe-1;(typeof D!="number"||D<0||D>dt)&&(D=P>0?-1:dt+1);var kt=D+P;kt<0?kt=Ue?dt:0:kt>dt&&(kt=Ue?0:dt);var dn=Te(kt,P<0,oe,Ie,Ue);return dn===-1?D>=Xe?-1:D:dn}function Te(D,P,oe,Ie,Ue){Ue===void 0&&(Ue=!1);var Xe=oe.length;if(P){for(var dt=D;dt>=0;dt--)if(!Ie(oe[dt],dt))return dt}else for(var kt=D;kt<Xe;kt++)if(!Ie(oe[kt],kt))return kt;return Ue?Te(P?Xe-1:0,P,oe,Ie):-1}function je(D,P,oe,Ie){return Ie===void 0&&(Ie=!0),oe&&P.some(function(Ue){return Ue&&(I(Ue,D,oe)||Ie&&I(Ue,oe.document.activeElement,oe))})}var yt=null,tt=U(function(D){Ze(D).textContent=""},500);function Ze(D){var P=D.getElementById("a11y-status-message");return P||(P=D.createElement("div"),P.setAttribute("id","a11y-status-message"),P.setAttribute("role","status"),P.setAttribute("aria-live","polite"),P.setAttribute("aria-relevant","additions text"),Object.assign(P.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),D.body.appendChild(P),P)}function Ne(D,P){if(!(!D||!P)){var oe=Ze(P);oe.textContent=D,tt(P)}}function it(D){var P=D?.getElementById("a11y-status-message");P&&P.remove()}var Rt=0,Dn=1,Mt=2,Wt=3,Tn=4,bn=5,$t=6,Ct=7,Z=8,me=9,ke=10,Ee=11,_e=12,ge=13,Me=14,lt=15,Ft=16,Et=Object.freeze({__proto__:null,blurButton:Me,blurInput:ke,changeInput:Ee,clickButton:ge,clickItem:me,controlledPropUpdatedSelectedItem:lt,itemMouseEnter:Mt,keyDownArrowDown:Tn,keyDownArrowUp:Wt,keyDownEnd:Z,keyDownEnter:$t,keyDownEscape:bn,keyDownHome:Ct,keyDownSpaceButton:_e,mouseUp:Dn,touchEnd:Ft,unknown:Rt}),Zt=null,nn=null,Pn=null,rn=null,Vt=null,Kn=null;function ur(D,P){var oe=P.refKey;D||console.error('downshift: The ref prop "'+oe+'" from getMenuProps was not applied correctly on your menu element.')}function on(D,P){var oe=P.refKey,Ie=oe!=="ref",Ue=!ce(D);Ue&&!Ie&&!isForwardRef(D)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!Ue&&Ie&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+oe+'"'),!isForwardRef(D)&&!se(D)[oe]&&console.error('downshift: You must apply the ref prop "'+oe+'" from getRootProps onto your root element.')}var tr={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Cn(D,P,oe){var Ie=D.props,Ue=D.type,Xe={};Object.keys(P).forEach(function(dt){Wn(dt,D,P,oe),oe[dt]!==P[dt]&&(Xe[dt]=oe[dt])}),Ie.onStateChange&&Object.keys(Xe).length&&Ie.onStateChange(g({type:Ue},Xe))}function Wn(D,P,oe,Ie){var Ue=P.props,Xe=P.type,dt="on"+Nn(D)+"Change";Ue[dt]&&Ie[D]!==void 0&&Ie[D]!==oe[D]&&Ue[dt](g({type:Xe},Ie))}function er(D,P){return P.changes}var Fn=U(function(D,P){Ne(D,P)},200),en=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?f.useLayoutEffect:f.useEffect,gn=function(P){var oe=P.id,Ie=P.labelId,Ue=P.menuId,Xe=P.getItemId,dt=P.toggleButtonId,kt=P.inputId,dn="downshift-"+f.useId();oe||(oe=dn);var Vn=(0,f.useRef)({labelId:Ie||oe+"-label",menuId:Ue||oe+"-menu",getItemId:Xe||function(qn){return oe+"-item-"+qn},toggleButtonId:dt||oe+"-toggle-button",inputId:kt||oe+"-input"});return Vn.current};function kn(D,P,oe,Ie){var Ue,Xe;if(D===void 0){if(P===void 0)throw new Error(Ie);Ue=oe[P],Xe=P}else Xe=P===void 0?oe.indexOf(D):P,Ue=D;return[Ue,Xe]}function Jn(D){return/^\S{1}$/.test(D)}function Nn(D){return""+D.slice(0,1).toUpperCase()+D.slice(1)}function kr(D){var P=(0,f.useRef)(D);return P.current=D,P}function bt(D,P,oe,Ie){var Ue=(0,f.useRef)(),Xe=(0,f.useRef)(),dt=(0,f.useCallback)(function(hi,Ti){Xe.current=Ti,hi=T(hi,Ti.props);var Vi=D(hi,Ti),Di=Ti.props.stateReducer(hi,g({},Ti,{changes:Vi}));return Di},[D]),kt=(0,f.useReducer)(dt,P,oe),dn=kt[0],Vn=kt[1],qn=kr(P),yr=(0,f.useCallback)(function(hi){return Vn(g({props:qn.current},hi))},[qn]),ci=Xe.current;return(0,f.useEffect)(function(){var hi=T(Ue.current,ci?.props),Ti=ci&&Ue.current&&!Ie(hi,dn);Ti&&Cn(ci,hi,dn),Ue.current=dn},[dn,ci,Ie]),[dn,yr]}function ne(D,P,oe,Ie){var Ue=bt(D,P,oe,Ie),Xe=Ue[0],dt=Ue[1];return[T(Xe,P),dt]}var fe={itemToString:function(P){return P?String(P):""},itemToKey:function(P){return P},stateReducer:er,scrollIntoView:j,environment:typeof window>"u"?void 0:window};function K(D,P,oe){oe===void 0&&(oe=tr);var Ie=D["default"+Nn(P)];return Ie!==void 0?Ie:oe[P]}function he(D,P,oe){oe===void 0&&(oe=tr);var Ie=D[P];if(Ie!==void 0)return Ie;var Ue=D["initial"+Nn(P)];return Ue!==void 0?Ue:K(D,P,oe)}function Fe(D){var P=he(D,"selectedItem"),oe=he(D,"isOpen"),Ie=We(D),Ue=he(D,"inputValue");return{highlightedIndex:Ie<0&&P&&oe?D.items.findIndex(function(Xe){return D.itemToKey(Xe)===D.itemToKey(P)}):Ie,isOpen:oe,selectedItem:P,inputValue:Ue}}function Nt(D,P,oe){var Ie=D.items,Ue=D.initialHighlightedIndex,Xe=D.defaultHighlightedIndex,dt=D.isItemDisabled,kt=D.itemToKey,dn=P.selectedItem,Vn=P.highlightedIndex;return Ie.length===0?-1:Ue!==void 0&&Vn===Ue&&!dt(Ie[Ue],Ue)?Ue:Xe!==void 0&&!dt(Ie[Xe],Xe)?Xe:dn?Ie.findIndex(function(qn){return kt(dn)===kt(qn)}):oe<0&&!dt(Ie[Ie.length-1],Ie.length-1)?Ie.length-1:oe>0&&!dt(Ie[0],0)?0:-1}function ln(D,P,oe){var Ie=(0,f.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,f.useEffect)(function(){if(!D)return L;var Ue=oe.map(function(qn){return qn.current});function Xe(){Ie.current.isTouchEnd=!1,Ie.current.isMouseDown=!0}function dt(qn){Ie.current.isMouseDown=!1,je(qn.target,Ue,D)||P()}function kt(){Ie.current.isTouchEnd=!1,Ie.current.isTouchMove=!1}function dn(){Ie.current.isTouchMove=!0}function Vn(qn){Ie.current.isTouchEnd=!0,!Ie.current.isTouchMove&&!je(qn.target,Ue,D,!1)&&P()}return D.addEventListener("mousedown",Xe),D.addEventListener("mouseup",dt),D.addEventListener("touchstart",kt),D.addEventListener("touchmove",dn),D.addEventListener("touchend",Vn),function(){D.removeEventListener("mousedown",Xe),D.removeEventListener("mouseup",dt),D.removeEventListener("touchstart",kt),D.removeEventListener("touchmove",dn),D.removeEventListener("touchend",Vn)}},[oe,D,P]),Ie.current}var pn=function(){return L};function Yn(D,P,oe,Ie){Ie===void 0&&(Ie={});var Ue=Ie.document,Xe=be();(0,f.useEffect)(function(){if(!(!D||Xe||!Ue)){var dt=D(P);Fn(dt,Ue)}},oe),(0,f.useEffect)(function(){return function(){Fn.cancel(),it(Ue)}},[Ue])}function ht(D){var P=D.highlightedIndex,oe=D.isOpen,Ie=D.itemRefs,Ue=D.getItemNodeFromIndex,Xe=D.menuElement,dt=D.scrollIntoView,kt=(0,f.useRef)(!0);return en(function(){P<0||!oe||!Object.keys(Ie.current).length||(kt.current===!1?kt.current=!0:dt(Ue(P),Xe))},[P]),kt}var De=L;function we(D,P,oe){var Ie;oe===void 0&&(oe=!0);var Ue=((Ie=D.items)==null?void 0:Ie.length)&&P>=0;return g({isOpen:!1,highlightedIndex:-1},Ue&&g({selectedItem:D.items[P],isOpen:K(D,"isOpen"),highlightedIndex:K(D,"highlightedIndex")},oe&&{inputValue:D.itemToString(D.items[P])}))}function Ke(D,P){return D.isOpen===P.isOpen&&D.inputValue===P.inputValue&&D.highlightedIndex===P.highlightedIndex&&D.selectedItem===P.selectedItem}function be(){var D=f.useRef(!0);return f.useEffect(function(){return D.current=!1,function(){D.current=!0}},[]),D.current}function pt(D){var P=K(D,"highlightedIndex");return P>-1&&D.isItemDisabled(D.items[P],P)?-1:P}function We(D){var P=he(D,"highlightedIndex");return P>-1&&D.isItemDisabled(D.items[P],P)?-1:P}var Je={environment:x().shape({addEventListener:x().func.isRequired,removeEventListener:x().func.isRequired,document:x().shape({createElement:x().func.isRequired,getElementById:x().func.isRequired,activeElement:x().any.isRequired,body:x().any.isRequired}).isRequired,Node:x().func.isRequired}),itemToString:x().func,itemToKey:x().func,stateReducer:x().func},ye=g({},Je,{getA11yStatusMessage:x().func,highlightedIndex:x().number,defaultHighlightedIndex:x().number,initialHighlightedIndex:x().number,isOpen:x().bool,defaultIsOpen:x().bool,initialIsOpen:x().bool,selectedItem:x().any,initialSelectedItem:x().any,defaultSelectedItem:x().any,id:x().string,labelId:x().string,menuId:x().string,getItemId:x().func,toggleButtonId:x().string,onSelectedItemChange:x().func,onHighlightedIndexChange:x().func,onStateChange:x().func,onIsOpenChange:x().func,scrollIntoView:x().func});function Qe(D,P,oe){var Ie=P.type,Ue=P.props,Xe;switch(Ie){case oe.ItemMouseMove:Xe={highlightedIndex:P.disabled?-1:P.index};break;case oe.MenuMouseLeave:Xe={highlightedIndex:-1};break;case oe.ToggleButtonClick:case oe.FunctionToggleMenu:Xe={isOpen:!D.isOpen,highlightedIndex:D.isOpen?-1:Nt(Ue,D,0)};break;case oe.FunctionOpenMenu:Xe={isOpen:!0,highlightedIndex:Nt(Ue,D,0)};break;case oe.FunctionCloseMenu:Xe={isOpen:!1};break;case oe.FunctionSetHighlightedIndex:Xe={highlightedIndex:Ue.isItemDisabled(Ue.items[P.highlightedIndex],P.highlightedIndex)?-1:P.highlightedIndex};break;case oe.FunctionSetInputValue:Xe={inputValue:P.inputValue};break;case oe.FunctionReset:Xe={highlightedIndex:pt(Ue),isOpen:K(Ue,"isOpen"),selectedItem:K(Ue,"selectedItem"),inputValue:K(Ue,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return g({},D,Xe)}function ze(D){for(var P=D.keysSoFar,oe=D.highlightedIndex,Ie=D.items,Ue=D.itemToString,Xe=D.isItemDisabled,dt=P.toLowerCase(),kt=0;kt<Ie.length;kt++){var dn=(kt+oe+(P.length<2?1:0))%Ie.length,Vn=Ie[dn];if(Vn!==void 0&&Ue(Vn).toLowerCase().startsWith(dt)&&!Xe(Vn,dn))return dn}return oe}var qe=(0,O.__assign)((0,O.__assign)({},ye),{items:x().array.isRequired,isItemDisabled:x().func}),Pt=(0,O.__assign)((0,O.__assign)({},fe),{isItemDisabled:function(){return!1}}),zt=L,un=0,hn=1,xt=2,_t=3,qt=4,fn=5,On=6,Gn=7,Bn=8,Lr=9,An=10,Un=11,cr=12,mr=13,hr=14,ar=15,Cr=16,Yr=17,Xr=18,ni=19,ki=20,zr=21,Ur=Object.freeze({__proto__:null,FunctionCloseMenu:Yr,FunctionOpenMenu:Cr,FunctionReset:zr,FunctionSelectItem:ni,FunctionSetHighlightedIndex:Xr,FunctionSetInputValue:ki,FunctionToggleMenu:ar,ItemClick:hr,ItemMouseMove:mr,MenuMouseLeave:cr,ToggleButtonBlur:Un,ToggleButtonClick:un,ToggleButtonKeyDownArrowDown:hn,ToggleButtonKeyDownArrowUp:xt,ToggleButtonKeyDownCharacter:_t,ToggleButtonKeyDownEnd:On,ToggleButtonKeyDownEnter:Gn,ToggleButtonKeyDownEscape:qt,ToggleButtonKeyDownHome:fn,ToggleButtonKeyDownPageDown:An,ToggleButtonKeyDownPageUp:Lr,ToggleButtonKeyDownSpaceButton:Bn});function jt(D,P){var oe,Ie=P.type,Ue=P.props,Xe=P.altKey,dt;switch(Ie){case hr:dt={isOpen:K(Ue,"isOpen"),highlightedIndex:pt(Ue),selectedItem:Ue.items[P.index]};break;case _t:{var kt=P.key,dn=""+D.inputValue+kt,Vn=!D.isOpen&&D.selectedItem?Ue.items.findIndex(function(hi){return Ue.itemToKey(hi)===Ue.itemToKey(D.selectedItem)}):D.highlightedIndex,qn=ze({keysSoFar:dn,highlightedIndex:Vn,items:Ue.items,itemToString:Ue.itemToString,isItemDisabled:Ue.isItemDisabled});dt={inputValue:dn,highlightedIndex:qn,isOpen:!0}}break;case hn:{var yr=D.isOpen?ie(D.highlightedIndex,1,Ue.items,Ue.isItemDisabled):Xe&&D.selectedItem==null?-1:Nt(Ue,D,1);dt={highlightedIndex:yr,isOpen:!0}}break;case xt:if(D.isOpen&&Xe)dt=we(Ue,D.highlightedIndex,!1);else{var ci=D.isOpen?ie(D.highlightedIndex,-1,Ue.items,Ue.isItemDisabled):Nt(Ue,D,-1);dt={highlightedIndex:ci,isOpen:!0}}break;case Gn:case Bn:dt=we(Ue,D.highlightedIndex,!1);break;case fn:dt={highlightedIndex:Te(0,!1,Ue.items,Ue.isItemDisabled),isOpen:!0};break;case On:dt={highlightedIndex:Te(Ue.items.length-1,!0,Ue.items,Ue.isItemDisabled),isOpen:!0};break;case Lr:dt={highlightedIndex:ie(D.highlightedIndex,-10,Ue.items,Ue.isItemDisabled)};break;case An:dt={highlightedIndex:ie(D.highlightedIndex,10,Ue.items,Ue.isItemDisabled)};break;case qt:dt={isOpen:!1,highlightedIndex:-1};break;case Un:dt=g({isOpen:!1,highlightedIndex:-1},D.highlightedIndex>=0&&((oe=Ue.items)==null?void 0:oe.length)&&{selectedItem:Ue.items[D.highlightedIndex]});break;case ni:dt={selectedItem:P.selectedItem};break;default:return Qe(D,P,Ur)}return g({},D,dt)}var sn=["onClick"],Rn=["onMouseLeave","refKey","ref"],H=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Be=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];wn.stateChangeTypes=Ur;function wn(D){D===void 0&&(D={}),zt(D,wn);var P=g({},Pt,D),oe=P.scrollIntoView,Ie=P.environment,Ue=P.getA11yStatusMessage,Xe=ne(jt,P,Fe,Ke),dt=Xe[0],kt=Xe[1],dn=dt.isOpen,Vn=dt.highlightedIndex,qn=dt.selectedItem,yr=dt.inputValue,ci=(0,f.useRef)(null),hi=(0,f.useRef)(null),Ti=(0,f.useRef)({}),Vi=(0,f.useRef)(null),Di=gn(P),Pi=kr({state:dt,props:P}),mt=(0,f.useCallback)(function(et){return Ti.current[Di.getItemId(et)]},[Di]);Yn(Ue,dt,[dn,Vn,qn,yr],Ie);var tn=ht({menuElement:hi.current,highlightedIndex:Vn,isOpen:dn,itemRefs:Ti,scrollIntoView:oe,getItemNodeFromIndex:mt});(0,f.useEffect)(function(){return Vi.current=U(function(et){et({type:ki,inputValue:""})},500),function(){Vi.current.cancel()}},[]),(0,f.useEffect)(function(){yr&&Vi.current(kt)},[kt,yr]),De({props:P,state:dt}),(0,f.useEffect)(function(){var et=he(P,"isOpen");et&&ci.current&&ci.current.focus()},[]);var or=ln(Ie,(0,f.useCallback)(function(){Pi.current.state.isOpen&&kt({type:Un})},[kt,Pi]),(0,f.useMemo)(function(){return[hi,ci]},[hi.current,ci.current])),rt=pn("getMenuProps","getToggleButtonProps");(0,f.useEffect)(function(){dn||(Ti.current={})},[dn]);var St=(0,f.useMemo)(function(){return{ArrowDown:function(Ot){Ot.preventDefault(),kt({type:hn,altKey:Ot.altKey})},ArrowUp:function(Ot){Ot.preventDefault(),kt({type:xt,altKey:Ot.altKey})},Home:function(Ot){Ot.preventDefault(),kt({type:fn})},End:function(Ot){Ot.preventDefault(),kt({type:On})},Escape:function(){Pi.current.state.isOpen&&kt({type:qt})},Enter:function(Ot){Ot.preventDefault(),kt({type:Pi.current.state.isOpen?Gn:un})},PageUp:function(Ot){Pi.current.state.isOpen&&(Ot.preventDefault(),kt({type:Lr}))},PageDown:function(Ot){Pi.current.state.isOpen&&(Ot.preventDefault(),kt({type:An}))}," ":function(Ot){Ot.preventDefault();var It=Pi.current.state;if(!It.isOpen){kt({type:un});return}It.inputValue?kt({type:_t,key:" "}):kt({type:Bn})}}},[kt,Pi]),_n=(0,f.useCallback)(function(){kt({type:ar})},[kt]),vn=(0,f.useCallback)(function(){kt({type:Yr})},[kt]),Ln=(0,f.useCallback)(function(){kt({type:Cr})},[kt]),_r=(0,f.useCallback)(function(et){kt({type:Xr,highlightedIndex:et})},[kt]),Br=(0,f.useCallback)(function(et){kt({type:ni,selectedItem:et})},[kt]),Kr=(0,f.useCallback)(function(){kt({type:zr})},[kt]),Jr=(0,f.useCallback)(function(et){kt({type:ki,inputValue:et})},[kt]),ii=(0,f.useCallback)(function(et){var Ot=et===void 0?{}:et,It=Ot.onClick,Mn=l(Ot,sn),mn=function(){var Ut;(Ut=ci.current)==null||Ut.focus()};return g({id:Di.labelId,htmlFor:Di.toggleButtonId,onClick:$(It,mn)},Mn)},[Di]),le=(0,f.useCallback)(function(et,Ot){var It,Mn=et===void 0?{}:et,mn=Mn.onMouseLeave,At=Mn.refKey,Ut=At===void 0?"ref":At,jn=Mn.ref,Jt=l(Mn,Rn),dr=Ot===void 0?{}:Ot,wr=dr.suppressRefError,Hr=wr===void 0?!1:wr,Ar=function(){kt({type:cr})};return rt("getMenuProps",Hr,Ut,hi),g((It={},It[Ut]=ee(jn,function(yi){hi.current=yi}),It.id=Di.menuId,It.role="listbox",It["aria-labelledby"]=Jt&&Jt["aria-label"]?void 0:""+Di.labelId,It.onMouseLeave=$(mn,Ar),It),Jt)},[kt,rt,Di]),Ae=(0,f.useCallback)(function(et,Ot){var It,Mn=et===void 0?{}:et,mn=Mn.onBlur,At=Mn.onClick;Mn.onPress;var Ut=Mn.onKeyDown,jn=Mn.refKey,Jt=jn===void 0?"ref":jn,dr=Mn.ref,wr=l(Mn,H),Hr=Ot===void 0?{}:Ot,Ar=Hr.suppressRefError,yi=Ar===void 0?!1:Ar,Rr=Pi.current.state,si=function(){kt({type:un})},Si=function(){Rr.isOpen&&!or.isMouseDown&&kt({type:Un})},$i=function(Ma){var Ua=X(Ma);Ua&&St[Ua]?St[Ua](Ma):Jn(Ua)&&kt({type:_t,key:Ua})},Hi=g((It={},It[Jt]=ee(dr,function(Oa){ci.current=Oa}),It["aria-activedescendant"]=Rr.isOpen&&Rr.highlightedIndex>-1?Di.getItemId(Rr.highlightedIndex):"",It["aria-controls"]=Di.menuId,It["aria-expanded"]=Pi.current.state.isOpen,It["aria-haspopup"]="listbox",It["aria-labelledby"]=wr&&wr["aria-label"]?void 0:""+Di.labelId,It.id=Di.toggleButtonId,It.role="combobox",It.tabIndex=0,It.onBlur=$(mn,Si),It),wr);return wr.disabled||(Hi.onClick=$(At,si),Hi.onKeyDown=$(Ut,$i)),rt("getToggleButtonProps",yi,Jt,ci),Hi},[kt,Di,Pi,or,rt,St]),Oe=(0,f.useCallback)(function(et){var Ot,It=et===void 0?{}:et,Mn=It.item,mn=It.index,At=It.onMouseMove,Ut=It.onClick,jn=It.onMouseDown;It.onPress;var Jt=It.refKey,dr=Jt===void 0?"ref":Jt,wr=It.disabled,Hr=It.ref,Ar=l(It,Be);wr!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var yi=Pi.current,Rr=yi.state,si=yi.props,Si=kn(Mn,mn,si.items,"Pass either item or index to getItemProps!"),$i=Si[0],Hi=Si[1],Oa=si.isItemDisabled($i,Hi),Ma=function(){or.isTouchEnd||Hi===Rr.highlightedIndex||(tn.current=!1,kt({type:mr,index:Hi,disabled:Oa}))},Ua=function(){kt({type:hr,index:Hi})},Xa=function(qa){return qa.preventDefault()},Na=g((Ot={},Ot[dr]=ee(Hr,function(za){za&&(Ti.current[Di.getItemId(Hi)]=za)}),Ot["aria-disabled"]=Oa,Ot["aria-selected"]=$i===Rr.selectedItem,Ot.id=Di.getItemId(Hi),Ot.role="option",Ot),Ar);return Oa||(Na.onClick=$(Ut,Ua)),Na.onMouseMove=$(At,Ma),Na.onMouseDown=$(jn,Xa),Na},[Pi,Di,or,tn,kt]);return{getToggleButtonProps:Ae,getLabelProps:ii,getMenuProps:le,getItemProps:Oe,toggleMenu:_n,openMenu:Ln,closeMenu:vn,setHighlightedIndex:_r,selectItem:Br,reset:Kr,setInputValue:Jr,highlightedIndex:Vn,isOpen:dn,selectedItem:qn,inputValue:yr}}var bi=0,Oi=1,de=2,Ve=3,vt=4,Qt=5,nt=6,Tt=7,Gt=8,En=9,Qn=10,Or=11,Pr=12,ai=13,xi=14,mi=15,ei=16,Qr=17,Ni=18,ea=19,Qi=20,ir=21,xr=22,di=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:xr,FunctionCloseMenu:Qr,FunctionOpenMenu:ei,FunctionReset:ir,FunctionSelectItem:ea,FunctionSetHighlightedIndex:Ni,FunctionSetInputValue:Qi,FunctionToggleMenu:mi,InputBlur:En,InputChange:Gt,InputClick:Qn,InputKeyDownArrowDown:bi,InputKeyDownArrowUp:Oi,InputKeyDownEnd:vt,InputKeyDownEnter:Tt,InputKeyDownEscape:de,InputKeyDownHome:Ve,InputKeyDownPageDown:nt,InputKeyDownPageUp:Qt,ItemClick:ai,ItemMouseMove:Pr,MenuMouseLeave:Or,ToggleButtonClick:xi});function ft(D){var P=Fe(D),oe=P.selectedItem,Ie=P.inputValue;return Ie===""&&oe&&D.defaultInputValue===void 0&&D.initialInputValue===void 0&&D.inputValue===void 0&&(Ie=D.itemToString(oe)),g({},P,{inputValue:Ie})}var zn=g({},ye,{items:x().array.isRequired,isItemDisabled:x().func,inputValue:x().string,defaultInputValue:x().string,initialInputValue:x().string,inputId:x().string,onInputValueChange:x().func});function Zn(D,P,oe,Ie){var Ue=(0,f.useRef)(),Xe=bt(D,P,oe,Ie),dt=Xe[0],kt=Xe[1],dn=be();return(0,f.useEffect)(function(){if(B(P,"selectedItem")){if(!dn){var Vn=P.itemToKey(P.selectedItem)!==P.itemToKey(Ue.current);Vn&&kt({type:xr,inputValue:P.itemToString(P.selectedItem)})}Ue.current=dt.selectedItem===Ue.current?P.selectedItem:dt.selectedItem}},[dt.selectedItem,P.selectedItem]),[T(dt,P),kt]}var wi=L,Ea=g({},fe,{isItemDisabled:function(){return!1}});function wa(D,P){var oe,Ie=P.type,Ue=P.props,Xe=P.altKey,dt;switch(Ie){case ai:dt={isOpen:K(Ue,"isOpen"),highlightedIndex:pt(Ue),selectedItem:Ue.items[P.index],inputValue:Ue.itemToString(Ue.items[P.index])};break;case bi:D.isOpen?dt={highlightedIndex:ie(D.highlightedIndex,1,Ue.items,Ue.isItemDisabled,!0)}:dt={highlightedIndex:Xe&&D.selectedItem==null?-1:Nt(Ue,D,1),isOpen:Ue.items.length>=0};break;case Oi:D.isOpen?Xe?dt=we(Ue,D.highlightedIndex):dt={highlightedIndex:ie(D.highlightedIndex,-1,Ue.items,Ue.isItemDisabled,!0)}:dt={highlightedIndex:Nt(Ue,D,-1),isOpen:Ue.items.length>=0};break;case Tt:dt=we(Ue,D.highlightedIndex);break;case de:dt=g({isOpen:!1,highlightedIndex:-1},!D.isOpen&&{selectedItem:null,inputValue:""});break;case Qt:dt={highlightedIndex:ie(D.highlightedIndex,-10,Ue.items,Ue.isItemDisabled,!0)};break;case nt:dt={highlightedIndex:ie(D.highlightedIndex,10,Ue.items,Ue.isItemDisabled,!0)};break;case Ve:dt={highlightedIndex:Te(0,!1,Ue.items,Ue.isItemDisabled)};break;case vt:dt={highlightedIndex:Te(Ue.items.length-1,!0,Ue.items,Ue.isItemDisabled)};break;case En:dt=g({isOpen:!1,highlightedIndex:-1},D.highlightedIndex>=0&&((oe=Ue.items)==null?void 0:oe.length)&&P.selectItem&&{selectedItem:Ue.items[D.highlightedIndex],inputValue:Ue.itemToString(Ue.items[D.highlightedIndex])});break;case Gt:dt={isOpen:!0,highlightedIndex:pt(Ue),inputValue:P.inputValue};break;case Qn:dt={isOpen:!D.isOpen,highlightedIndex:D.isOpen?-1:Nt(Ue,D,0)};break;case ea:dt={selectedItem:P.selectedItem,inputValue:Ue.itemToString(P.selectedItem)};break;case xr:dt={inputValue:P.inputValue};break;default:return Qe(D,P,di)}return g({},D,dt)}var ji=["onMouseLeave","refKey","ref"],Dt=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Xn=["onClick","onPress","refKey","ref"],Tr=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];Nr.stateChangeTypes=di;function Nr(D){D===void 0&&(D={}),wi(D,Nr);var P=g({},Ea,D),oe=P.items,Ie=P.scrollIntoView,Ue=P.environment,Xe=P.getA11yStatusMessage,dt=Zn(wa,P,ft,Ke),kt=dt[0],dn=dt[1],Vn=kt.isOpen,qn=kt.highlightedIndex,yr=kt.selectedItem,ci=kt.inputValue,hi=(0,f.useRef)(null),Ti=(0,f.useRef)({}),Vi=(0,f.useRef)(null),Di=(0,f.useRef)(null),Pi=be(),mt=gn(P),tn=(0,f.useRef)(),or=kr({state:kt,props:P}),rt=(0,f.useCallback)(function(mn){return Ti.current[mt.getItemId(mn)]},[mt]);Yn(Xe,kt,[Vn,qn,yr,ci],Ue);var St=ht({menuElement:hi.current,highlightedIndex:qn,isOpen:Vn,itemRefs:Ti,scrollIntoView:Ie,getItemNodeFromIndex:rt});De({props:P,state:kt}),(0,f.useEffect)(function(){var mn=he(P,"isOpen");mn&&Vi.current&&Vi.current.focus()},[]),(0,f.useEffect)(function(){Pi||(tn.current=oe.length)});var _n=ln(Ue,(0,f.useCallback)(function(){or.current.state.isOpen&&dn({type:En,selectItem:!1})},[dn,or]),(0,f.useMemo)(function(){return[hi,Di,Vi]},[hi.current,Di.current,Vi.current])),vn=pn("getInputProps","getMenuProps");(0,f.useEffect)(function(){Vn||(Ti.current={})},[Vn]),(0,f.useEffect)(function(){var mn;!Vn||!(Ue!=null&&Ue.document)||!(Vi!=null&&(mn=Vi.current)!=null&&mn.focus)||Ue.document.activeElement!==Vi.current&&Vi.current.focus()},[Vn,Ue]);var Ln=(0,f.useMemo)(function(){return{ArrowDown:function(At){At.preventDefault(),dn({type:bi,altKey:At.altKey})},ArrowUp:function(At){At.preventDefault(),dn({type:Oi,altKey:At.altKey})},Home:function(At){or.current.state.isOpen&&(At.preventDefault(),dn({type:Ve}))},End:function(At){or.current.state.isOpen&&(At.preventDefault(),dn({type:vt}))},Escape:function(At){var Ut=or.current.state;(Ut.isOpen||Ut.inputValue||Ut.selectedItem||Ut.highlightedIndex>-1)&&(At.preventDefault(),dn({type:de}))},Enter:function(At){var Ut=or.current.state;!Ut.isOpen||At.which===229||(At.preventDefault(),dn({type:Tt}))},PageUp:function(At){or.current.state.isOpen&&(At.preventDefault(),dn({type:Qt}))},PageDown:function(At){or.current.state.isOpen&&(At.preventDefault(),dn({type:nt}))}}},[dn,or]),_r=(0,f.useCallback)(function(mn){return g({id:mt.labelId,htmlFor:mt.inputId},mn)},[mt]),Br=(0,f.useCallback)(function(mn,At){var Ut,jn=mn===void 0?{}:mn,Jt=jn.onMouseLeave,dr=jn.refKey,wr=dr===void 0?"ref":dr,Hr=jn.ref,Ar=l(jn,ji),yi=At===void 0?{}:At,Rr=yi.suppressRefError,si=Rr===void 0?!1:Rr;return vn("getMenuProps",si,wr,hi),g((Ut={},Ut[wr]=ee(Hr,function(Si){hi.current=Si}),Ut.id=mt.menuId,Ut.role="listbox",Ut["aria-labelledby"]=Ar&&Ar["aria-label"]?void 0:""+mt.labelId,Ut.onMouseLeave=$(Jt,function(){dn({type:Or})}),Ut),Ar)},[dn,vn,mt]),Kr=(0,f.useCallback)(function(mn){var At,Ut,jn=mn===void 0?{}:mn,Jt=jn.item,dr=jn.index,wr=jn.refKey,Hr=wr===void 0?"ref":wr,Ar=jn.ref,yi=jn.onMouseMove,Rr=jn.onMouseDown,si=jn.onClick;jn.onPress;var Si=jn.disabled,$i=l(jn,Dt);Si!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var Hi=or.current,Oa=Hi.props,Ma=Hi.state,Ua=kn(Jt,dr,Oa.items,"Pass either item or index to getItemProps!"),Xa=Ua[0],Na=Ua[1],za=Oa.isItemDisabled(Xa,Na),qa="onClick",no=si,wo=function(){_n.isTouchEnd||Na===Ma.highlightedIndex||(St.current=!1,dn({type:Pr,index:Na,disabled:za}))},go=function(){dn({type:ai,index:Na})},Ka=function(Us){return Us.preventDefault()};return g((At={},At[Hr]=ee(Ar,function(Ia){Ia&&(Ti.current[mt.getItemId(Na)]=Ia)}),At["aria-disabled"]=za,At["aria-selected"]=Na===Ma.highlightedIndex,At.id=mt.getItemId(Na),At.role="option",At),!za&&(Ut={},Ut[qa]=$(no,go),Ut),{onMouseMove:$(yi,wo),onMouseDown:$(Rr,Ka)},$i)},[dn,mt,or,_n,St]),Jr=(0,f.useCallback)(function(mn){var At,Ut=mn===void 0?{}:mn,jn=Ut.onClick;Ut.onPress;var Jt=Ut.refKey,dr=Jt===void 0?"ref":Jt,wr=Ut.ref,Hr=l(Ut,Xn),Ar=or.current.state,yi=function(){dn({type:xi})};return g((At={},At[dr]=ee(wr,function(Rr){Di.current=Rr}),At["aria-controls"]=mt.menuId,At["aria-expanded"]=Ar.isOpen,At.id=mt.toggleButtonId,At.tabIndex=-1,At),!Hr.disabled&&g({},{onClick:$(jn,yi)}),Hr)},[dn,or,mt]),ii=(0,f.useCallback)(function(mn,At){var Ut,jn=mn===void 0?{}:mn,Jt=jn.onKeyDown,dr=jn.onChange,wr=jn.onInput,Hr=jn.onBlur;jn.onChangeText;var Ar=jn.onClick,yi=jn.refKey,Rr=yi===void 0?"ref":yi,si=jn.ref,Si=l(jn,Tr),$i=At===void 0?{}:At,Hi=$i.suppressRefError,Oa=Hi===void 0?!1:Hi;vn("getInputProps",Oa,Rr,Vi);var Ma=or.current.state,Ua=function(Ka){var Ia=X(Ka);Ia&&Ln[Ia]&&Ln[Ia](Ka)},Xa=function(Ka){dn({type:Gt,inputValue:Ka.target.value})},Na=function(Ka){if(Ue!=null&&Ue.document&&Ma.isOpen&&!_n.isMouseDown){var Ia=Ka.relatedTarget===null&&Ue.document.activeElement!==Ue.document.body;dn({type:En,selectItem:!Ia})}},za=function(){dn({type:Qn})},qa="onChange",no={};if(!Si.disabled){var wo;no=(wo={},wo[qa]=$(dr,wr,Xa),wo.onKeyDown=$(Jt,Ua),wo.onBlur=$(Hr,Na),wo.onClick=$(Ar,za),wo)}return g((Ut={},Ut[Rr]=ee(si,function(go){Vi.current=go}),Ut["aria-activedescendant"]=Ma.isOpen&&Ma.highlightedIndex>-1?mt.getItemId(Ma.highlightedIndex):"",Ut["aria-autocomplete"]="list",Ut["aria-controls"]=mt.menuId,Ut["aria-expanded"]=Ma.isOpen,Ut["aria-labelledby"]=Si&&Si["aria-label"]?void 0:mt.labelId,Ut.autoComplete="off",Ut.id=mt.inputId,Ut.role="combobox",Ut.value=Ma.inputValue,Ut),no,Si)},[dn,mt,Ue,Ln,or,_n,vn]),le=(0,f.useCallback)(function(){dn({type:mi})},[dn]),Ae=(0,f.useCallback)(function(){dn({type:Qr})},[dn]),Oe=(0,f.useCallback)(function(){dn({type:ei})},[dn]),et=(0,f.useCallback)(function(mn){dn({type:Ni,highlightedIndex:mn})},[dn]),Ot=(0,f.useCallback)(function(mn){dn({type:ea,selectedItem:mn})},[dn]),It=(0,f.useCallback)(function(mn){dn({type:Qi,inputValue:mn})},[dn]),Mn=(0,f.useCallback)(function(){dn({type:ir})},[dn]);return{getItemProps:Kr,getLabelProps:_r,getMenuProps:Br,getInputProps:ii,getToggleButtonProps:Jr,toggleMenu:le,openMenu:Oe,closeMenu:Ae,setHighlightedIndex:et,setInputValue:It,selectItem:Ot,reset:Mn,highlightedIndex:qn,isOpen:Vn,selectedItem:yr,inputValue:ci}}var ti={activeIndex:-1,selectedItems:[]};function _i(D,P){return he(D,P,ti)}function Ii(D,P){return K(D,P,ti)}function ta(D){var P=_i(D,"activeIndex"),oe=_i(D,"selectedItems");return{activeIndex:P,selectedItems:oe}}function Ji(D){if(D.shiftKey||D.metaKey||D.ctrlKey||D.altKey)return!1;var P=D.target;return!(P instanceof HTMLInputElement&&P.value!==""&&(P.selectionStart!==0||P.selectionEnd!==0))}function k(D,P){return D.selectedItems===P.selectedItems&&D.activeIndex===P.activeIndex}var ve={stateReducer:Je.stateReducer,itemToKey:Je.itemToKey,environment:Je.environment,selectedItems:x().array,initialSelectedItems:x().array,defaultSelectedItems:x().array,getA11yStatusMessage:x().func,activeIndex:x().number,initialActiveIndex:x().number,defaultActiveIndex:x().number,onActiveIndexChange:x().func,onSelectedItemsChange:x().func,keyNavigationNext:x().string,keyNavigationPrevious:x().string},Le={itemToKey:fe.itemToKey,stateReducer:fe.stateReducer,environment:fe.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Ye=L,ot=0,Lt=1,an=2,nr=3,vr=4,$r=5,Fr=6,qr=7,jr=8,vi=9,Mi=10,ra=11,Yi=12,ua=Object.freeze({__proto__:null,DropdownClick:qr,DropdownKeyDownBackspace:Fr,DropdownKeyDownNavigationPrevious:$r,FunctionAddSelectedItem:jr,FunctionRemoveSelectedItem:vi,FunctionReset:Yi,FunctionSetActiveIndex:ra,FunctionSetSelectedItems:Mi,SelectedItemClick:ot,SelectedItemKeyDownBackspace:an,SelectedItemKeyDownDelete:Lt,SelectedItemKeyDownNavigationNext:nr,SelectedItemKeyDownNavigationPrevious:vr});function Sa(D,P){var oe=P.type,Ie=P.index,Ue=P.props,Xe=P.selectedItem,dt=D.activeIndex,kt=D.selectedItems,dn;switch(oe){case ot:dn={activeIndex:Ie};break;case vr:dn={activeIndex:dt-1<0?0:dt-1};break;case nr:dn={activeIndex:dt+1>=kt.length?-1:dt+1};break;case an:case Lt:{if(dt<0)break;var Vn=dt;kt.length===1?Vn=-1:dt===kt.length-1&&(Vn=kt.length-2),dn=g({selectedItems:[].concat(kt.slice(0,dt),kt.slice(dt+1))},{activeIndex:Vn});break}case $r:dn={activeIndex:kt.length-1};break;case Fr:dn={selectedItems:kt.slice(0,kt.length-1)};break;case jr:dn={selectedItems:[].concat(kt,[Xe])};break;case qr:dn={activeIndex:-1};break;case vi:{var qn=dt,yr=kt.findIndex(function(Ti){return Ue.itemToKey(Ti)===Ue.itemToKey(Xe)});if(yr<0)break;kt.length===1?qn=-1:yr===kt.length-1&&(qn=kt.length-2),dn={selectedItems:[].concat(kt.slice(0,yr),kt.slice(yr+1)),activeIndex:qn};break}case Mi:{var ci=P.selectedItems;dn={selectedItems:ci};break}case ra:{var hi=P.activeIndex;dn={activeIndex:hi};break}case Yi:dn={activeIndex:Ii(Ue,"activeIndex"),selectedItems:Ii(Ue,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return g({},D,dn)}var Xt=["refKey","ref","onClick","onKeyDown","selectedItem","index"],V=["refKey","ref","onKeyDown","onClick","preventKeyAction"];Y.stateChangeTypes=ua;function Y(D){D===void 0&&(D={}),Ye(D,Y);var P=g({},Le,D),oe=P.getA11yStatusMessage,Ie=P.environment,Ue=P.keyNavigationNext,Xe=P.keyNavigationPrevious,dt=ne(Sa,P,ta,k),kt=dt[0],dn=dt[1],Vn=kt.activeIndex,qn=kt.selectedItems,yr=be(),ci=(0,f.useRef)(null),hi=(0,f.useRef)();hi.current=[];var Ti=kr({state:kt,props:P});Yn(oe,kt,[Vn,qn],Ie),(0,f.useEffect)(function(){yr||(Vn===-1&&ci.current?ci.current.focus():hi.current[Vn]&&hi.current[Vn].focus())},[Vn]),De({props:P,state:kt});var Vi=pn("getDropdownProps"),Di=(0,f.useMemo)(function(){var Ln;return Ln={},Ln[Xe]=function(){dn({type:vr})},Ln[Ue]=function(){dn({type:nr})},Ln.Delete=function(){dn({type:Lt})},Ln.Backspace=function(){dn({type:an})},Ln},[dn,Ue,Xe]),Pi=(0,f.useMemo)(function(){var Ln;return Ln={},Ln[Xe]=function(_r){Ji(_r)&&dn({type:$r})},Ln.Backspace=function(Br){Ji(Br)&&dn({type:Fr})},Ln},[dn,Xe]),mt=(0,f.useCallback)(function(Ln){var _r,Br=Ln===void 0?{}:Ln,Kr=Br.refKey,Jr=Kr===void 0?"ref":Kr,ii=Br.ref,le=Br.onClick,Ae=Br.onKeyDown,Oe=Br.selectedItem,et=Br.index,Ot=l(Br,Xt),It=Ti.current.state,Mn=kn(Oe,et,It.selectedItems,"Pass either item or index to getSelectedItemProps!"),mn=Mn[1],At=mn>-1&&mn===It.activeIndex,Ut=function(){dn({type:ot,index:mn})},jn=function(dr){var wr=X(dr);wr&&Di[wr]&&Di[wr](dr)};return g((_r={},_r[Jr]=ee(ii,function(Jt){Jt&&hi.current.push(Jt)}),_r.tabIndex=At?0:-1,_r.onClick=$(le,Ut),_r.onKeyDown=$(Ae,jn),_r),Ot)},[dn,Ti,Di]),tn=(0,f.useCallback)(function(Ln,_r){var Br,Kr=Ln===void 0?{}:Ln,Jr=Kr.refKey,ii=Jr===void 0?"ref":Jr,le=Kr.ref,Ae=Kr.onKeyDown,Oe=Kr.onClick,et=Kr.preventKeyAction,Ot=et===void 0?!1:et,It=l(Kr,V),Mn=_r===void 0?{}:_r,mn=Mn.suppressRefError,At=mn===void 0?!1:mn;Vi("getDropdownProps",At,ii,ci);var Ut=function(dr){var wr=X(dr);wr&&Pi[wr]&&Pi[wr](dr)},jn=function(){dn({type:qr})};return g((Br={},Br[ii]=ee(le,function(Jt){Jt&&(ci.current=Jt)}),Br),!Ot&&{onKeyDown:$(Ae,Ut),onClick:$(Oe,jn)},It)},[dn,Pi,Vi]),or=(0,f.useCallback)(function(Ln){dn({type:jr,selectedItem:Ln})},[dn]),rt=(0,f.useCallback)(function(Ln){dn({type:vi,selectedItem:Ln})},[dn]),St=(0,f.useCallback)(function(Ln){dn({type:Mi,selectedItems:Ln})},[dn]),_n=(0,f.useCallback)(function(Ln){dn({type:ra,activeIndex:Ln})},[dn]),vn=(0,f.useCallback)(function(){dn({type:Yi})},[dn]);return{getSelectedItemProps:mt,getDropdownProps:tn,addSelectedItem:or,removeSelectedItem:rt,setSelectedItems:St,setActiveIndex:_n,reset:vn,selectedItems:qn,activeIndex:Vn}}},31179:(Ge,w,u)=>{"use strict";u.d(w,{U:()=>l});var l={now:function(){return(l.delegate||Date).now()},delegate:void 0}},31245:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.observeNotification=w.Notification=w.NotificationKind=void 0;var l=u(44885),g=u(61587),y=u(26680),x=u(10281),f;(function(E){E.NEXT="N",E.ERROR="E",E.COMPLETE="C"})(f=w.NotificationKind||(w.NotificationKind={}));var p=function(){function E(v,m,S){this.kind=v,this.value=m,this.error=S,this.hasValue=v==="N"}return E.prototype.observe=function(v){return h(this,v)},E.prototype.do=function(v,m,S){var d=this,O=d.kind,R=d.value,C=d.error;return O==="N"?v?.(R):O==="E"?m?.(C):S?.()},E.prototype.accept=function(v,m,S){var d;return x.isFunction((d=v)===null||d===void 0?void 0:d.next)?this.observe(v):this.do(v,m,S)},E.prototype.toObservable=function(){var v=this,m=v.kind,S=v.value,d=v.error,O=m==="N"?g.of(S):m==="E"?y.throwError(function(){return d}):m==="C"?l.EMPTY:0;if(!O)throw new TypeError("Unexpected notification kind "+m);return O},E.createNext=function(v){return new E("N",v)},E.createError=function(v){return new E("E",void 0,v)},E.createComplete=function(){return E.completeNotification},E.completeNotification=new E("C"),E}();w.Notification=p;function h(E,v){var m,S,d,O=E,R=O.kind,C=O.value,L=O.error;if(typeof R!="string")throw new TypeError('Invalid notification, missing "kind"');R==="N"?(m=v.next)===null||m===void 0||m.call(v,C):R==="E"?(S=v.error)===null||S===void 0||S.call(v,L):(d=v.complete)===null||d===void 0||d.call(v)}w.observeNotification=h},31373:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=u;function u(l){var g=l.clientWidth,y=getComputedStyle(l),x=y.paddingLeft,f=y.paddingRight;return g-parseFloat(x)-parseFloat(f)}},31668:function(Ge,w,u){"use strict";var l=this&&this.__values||function(p){var h=typeof Symbol=="function"&&Symbol.iterator,E=h&&p[h],v=0;if(E)return E.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&v>=p.length&&(p=void 0),{value:p&&p[v++],done:!p}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.bufferCount=void 0;var g=u(65212),y=u(17214),x=u(54830);function f(p,h){return h===void 0&&(h=null),h=h??p,g.operate(function(E,v){var m=[],S=0;E.subscribe(y.createOperatorSubscriber(v,function(d){var O,R,C,L,j=null;S++%h===0&&m.push([]);try{for(var I=l(m),U=I.next();!U.done;U=I.next()){var $=U.value;$.push(d),p<=$.length&&(j=j??[],j.push($))}}catch(Se){O={error:Se}}finally{try{U&&!U.done&&(R=I.return)&&R.call(I)}finally{if(O)throw O.error}}if(j)try{for(var ee=l(j),re=ee.next();!re.done;re=ee.next()){var $=re.value;x.arrRemove(m,$),v.next($)}}catch(Se){C={error:Se}}finally{try{re&&!re.done&&(L=ee.return)&&L.call(ee)}finally{if(C)throw C.error}}},function(){var d,O;try{for(var R=l(m),C=R.next();!C.done;C=R.next()){var L=C.value;v.next(L)}}catch(j){d={error:j}}finally{try{C&&!C.done&&(O=R.return)&&O.call(R)}finally{if(d)throw d.error}}v.complete()},void 0,function(){m=null}))})}w.bufferCount=f},31749:(Ge,w,u)=>{var l=u(37887);function g(y,x,f,p,h){var E=l(y,x,f,p,h);return E.next().then(function(v){return v.done?v.value:E.next()})}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},31983:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.QueueAction=void 0;var g=u(64772),y=function(x){l(f,x);function f(p,h){var E=x.call(this,p,h)||this;return E.scheduler=p,E.work=h,E}return f.prototype.schedule=function(p,h){return h===void 0&&(h=0),h>0?x.prototype.schedule.call(this,p,h):(this.delay=h,this.state=p,this.scheduler.flush(this),this)},f.prototype.execute=function(p,h){return h>0||this.closed?x.prototype.execute.call(this,p,h):this._execute(p,h)},f.prototype.requestAsyncId=function(p,h,E){return E===void 0&&(E=0),E!=null&&E>0||E==null&&this.delay>0?x.prototype.requestAsyncId.call(this,p,h,E):(p.flush(this),0)},f}(g.AsyncAction);w.QueueAction=y},32036:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.QueueScheduler=void 0;var g=u(19533),y=function(x){l(f,x);function f(){return x!==null&&x.apply(this,arguments)||this}return f}(g.AsyncScheduler);w.QueueScheduler=y},32071:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.observeOn=void 0;var l=u(28619),g=u(65212),y=u(17214);function x(f,p){return p===void 0&&(p=0),g.operate(function(h,E){h.subscribe(y.createOperatorSubscriber(E,function(v){return l.executeSchedule(E,f,function(){return E.next(v)},p)},function(){return l.executeSchedule(E,f,function(){return E.complete()},p)},function(v){return l.executeSchedule(E,f,function(){return E.error(v)},p)}))})}w.observeOn=x},32508:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.TimeInterval=w.timeInterval=void 0;var l=u(62326),g=u(65212),y=u(17214);function x(p){return p===void 0&&(p=l.asyncScheduler),g.operate(function(h,E){var v=p.now();h.subscribe(y.createOperatorSubscriber(E,function(m){var S=p.now(),d=S-v;v=S,E.next(new f(m,d))}))})}w.timeInterval=x;var f=function(){function p(h,E){this.value=h,this.interval=E}return p}();w.TimeInterval=f},32568:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.last=void 0;var l=u(59328),g=u(85934),y=u(65279),x=u(30632),f=u(58799),p=u(87699);function h(E,v){var m=arguments.length>=2;return function(S){return S.pipe(E?g.filter(function(d,O){return E(d,O,S)}):p.identity,y.takeLast(1),m?f.defaultIfEmpty(v):x.throwIfEmpty(function(){return new l.EmptyError}))}}w.last=h},32631:(Ge,w,u)=>{"use strict";u.d(w,{P:()=>x,A:()=>f});var l=u(30736);function g(p){if(p.config.preventGlobalExposure)p.internalLogger.debug("Skipping registering public Faro instance in the global scope");else{if(p.internalLogger.debug(`Registering public faro reference in the global scope using "${p.config.globalObjectKey}" key`),p.config.globalObjectKey in l.J){p.internalLogger.warn(`Skipping global registration due to key "${p.config.globalObjectKey}" being used already. Please set "globalObjectKey" to something else or set "preventGlobalExposure" to "true"`);return}Object.defineProperty(l.J,p.config.globalObjectKey,{configurable:!1,writable:!1,value:p})}}var y=u(4756);let x={};function f(p,h,E,v,m,S,d){return h.debug("Initializing Faro"),x={api:S,config:E,instrumentations:d,internalLogger:h,metas:v,pause:m.pause,transports:m,unpatchedConsole:p,unpause:m.unpause},(0,y.N2)(x),g(x),x}},32885:(Ge,w,u)=>{Ge.exports=u(28829)},32980:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.reportUnhandledError=void 0;var l=u(93728),g=u(94808);function y(x){g.timeoutProvider.setTimeout(function(){var f=l.config.onUnhandledError;if(f)f(x);else throw x})}w.reportUnhandledError=y},33149:(Ge,w,u)=>{"use strict";u.d(w,{c:()=>Q});var l=u(74848),g=u(96540),y=u(40961),x=function(){return x=Object.assign||function(ce){for(var se,q=1,te=arguments.length;q<te;q++){se=arguments[q];for(var A in se)Object.prototype.hasOwnProperty.call(se,A)&&(ce[A]=se[A])}return ce},x.apply(this,arguments)},f={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},p={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},h={width:"20px",height:"20px",position:"absolute",zIndex:1},E={top:x(x({},f),{top:"-5px"}),right:x(x({},p),{left:void 0,right:"-5px"}),bottom:x(x({},f),{top:void 0,bottom:"-5px"}),left:x(x({},p),{left:"-5px"}),topRight:x(x({},h),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:x(x({},h),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:x(x({},h),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:x(x({},h),{left:"-10px",top:"-10px",cursor:"nw-resize"})},v=(0,g.memo)(function(ce){var se=ce.onResizeStart,q=ce.direction,te=ce.children,A=ce.replaceStyles,T=ce.className,B=(0,g.useCallback)(function(ie){se(ie,q)},[se,q]),X=(0,g.useCallback)(function(ie){se(ie,q)},[se,q]),ue=(0,g.useMemo)(function(){return x(x({position:"absolute",userSelect:"none"},E[q]),A??{})},[A,q]);return(0,l.jsx)("div",{className:T||void 0,style:ue,onMouseDown:B,onTouchStart:X,children:te})}),m=function(){var ce=function(se,q){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,A){te.__proto__=A}||function(te,A){for(var T in A)Object.prototype.hasOwnProperty.call(A,T)&&(te[T]=A[T])},ce(se,q)};return function(se,q){if(typeof q!="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");ce(se,q);function te(){this.constructor=se}se.prototype=q===null?Object.create(q):(te.prototype=q.prototype,new te)}}(),S=function(){return S=Object.assign||function(ce){for(var se,q=1,te=arguments.length;q<te;q++){se=arguments[q];for(var A in se)Object.prototype.hasOwnProperty.call(se,A)&&(ce[A]=se[A])}return ce},S.apply(this,arguments)},d={width:"auto",height:"auto"},O=function(ce,se,q){return Math.max(Math.min(ce,q),se)},R=function(ce,se,q){var te=Math.round(ce/se);return te*se+q*(te-1)},C=function(ce,se){return new RegExp(ce,"i").test(se)},L=function(ce){return!!(ce.touches&&ce.touches.length)},j=function(ce){return!!((ce.clientX||ce.clientX===0)&&(ce.clientY||ce.clientY===0))},I=function(ce,se,q){q===void 0&&(q=0);var te=se.reduce(function(T,B,X){return Math.abs(B-ce)<Math.abs(se[T]-ce)?X:T},0),A=Math.abs(se[te]-ce);return q===0||A<q?se[te]:ce},U=function(ce){return ce=ce.toString(),ce==="auto"||ce.endsWith("px")||ce.endsWith("%")||ce.endsWith("vh")||ce.endsWith("vw")||ce.endsWith("vmax")||ce.endsWith("vmin")?ce:"".concat(ce,"px")},$=function(ce,se,q,te){if(ce&&typeof ce=="string"){if(ce.endsWith("px"))return Number(ce.replace("px",""));if(ce.endsWith("%")){var A=Number(ce.replace("%",""))/100;return se*A}if(ce.endsWith("vw")){var A=Number(ce.replace("vw",""))/100;return q*A}if(ce.endsWith("vh")){var A=Number(ce.replace("vh",""))/100;return te*A}}return ce},ee=function(ce,se,q,te,A,T,B){return te=$(te,ce.width,se,q),A=$(A,ce.height,se,q),T=$(T,ce.width,se,q),B=$(B,ce.height,se,q),{maxWidth:typeof te>"u"?void 0:Number(te),maxHeight:typeof A>"u"?void 0:Number(A),minWidth:typeof T>"u"?void 0:Number(T),minHeight:typeof B>"u"?void 0:Number(B)}},re=function(ce){return Array.isArray(ce)?ce:[ce,ce]},Se=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],z="__resizable_base__",Q=function(ce){m(se,ce);function se(q){var te,A,T,B,X=ce.call(this,q)||this;return X.ratio=1,X.resizable=null,X.parentLeft=0,X.parentTop=0,X.resizableLeft=0,X.resizableRight=0,X.resizableTop=0,X.resizableBottom=0,X.targetLeft=0,X.targetTop=0,X.delta={width:0,height:0},X.appendBase=function(){if(!X.resizable||!X.window)return null;var ue=X.parentNode;if(!ue)return null;var ie=X.window.document.createElement("div");return ie.style.width="100%",ie.style.height="100%",ie.style.position="absolute",ie.style.transform="scale(0, 0)",ie.style.left="0",ie.style.flex="0 0 100%",ie.classList?ie.classList.add(z):ie.className+=z,ue.appendChild(ie),ie},X.removeBase=function(ue){var ie=X.parentNode;ie&&ie.removeChild(ue)},X.state={isResizing:!1,width:(A=(te=X.propsSize)===null||te===void 0?void 0:te.width)!==null&&A!==void 0?A:"auto",height:(B=(T=X.propsSize)===null||T===void 0?void 0:T.height)!==null&&B!==void 0?B:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},X.onResizeStart=X.onResizeStart.bind(X),X.onMouseMove=X.onMouseMove.bind(X),X.onMouseUp=X.onMouseUp.bind(X),X}return Object.defineProperty(se.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||d},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"size",{get:function(){var q=0,te=0;if(this.resizable&&this.window){var A=this.resizable.offsetWidth,T=this.resizable.offsetHeight,B=this.resizable.style.position;B!=="relative"&&(this.resizable.style.position="relative"),q=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:A,te=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:T,this.resizable.style.position=B}return{width:q,height:te}},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"sizeStyle",{get:function(){var q=this,te=this.props.size,A=function(X){var ue;if(typeof q.state[X]>"u"||q.state[X]==="auto")return"auto";if(q.propsSize&&q.propsSize[X]&&(!((ue=q.propsSize[X])===null||ue===void 0)&&ue.toString().endsWith("%"))){if(q.state[X].toString().endsWith("%"))return q.state[X].toString();var ie=q.getParentSize(),Te=Number(q.state[X].toString().replace("px","")),je=Te/ie[X]*100;return"".concat(je,"%")}return U(q.state[X])},T=te&&typeof te.width<"u"&&!this.state.isResizing?U(te.width):A("width"),B=te&&typeof te.height<"u"&&!this.state.isResizing?U(te.height):A("height");return{width:T,height:B}},enumerable:!1,configurable:!0}),se.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var q=this.appendBase();if(!q)return{width:0,height:0};var te=!1,A=this.parentNode.style.flexWrap;A!=="wrap"&&(te=!0,this.parentNode.style.flexWrap="wrap"),q.style.position="relative",q.style.minWidth="100%",q.style.minHeight="100%";var T={width:q.offsetWidth,height:q.offsetHeight};return te&&(this.parentNode.style.flexWrap=A),this.removeBase(q),T},se.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},se.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},se.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var q=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:q.flexBasis!=="auto"?q.flexBasis:void 0})}},se.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},se.prototype.createSizeForCssProperty=function(q,te){var A=this.propsSize&&this.propsSize[te];return this.state[te]==="auto"&&this.state.original[te]===q&&(typeof A>"u"||A==="auto")?"auto":q},se.prototype.calculateNewMaxFromBoundary=function(q,te){var A=this.props.boundsByDirection,T=this.state.direction,B=A&&C("left",T),X=A&&C("top",T),ue,ie;if(this.props.bounds==="parent"){var Te=this.parentNode;Te&&(ue=B?this.resizableRight-this.parentLeft:Te.offsetWidth+(this.parentLeft-this.resizableLeft),ie=X?this.resizableBottom-this.parentTop:Te.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(ue=B?this.resizableRight:this.window.innerWidth-this.resizableLeft,ie=X?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(ue=B?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),ie=X?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return ue&&Number.isFinite(ue)&&(q=q&&q<ue?q:ue),ie&&Number.isFinite(ie)&&(te=te&&te<ie?te:ie),{maxWidth:q,maxHeight:te}},se.prototype.calculateNewSizeFromDirection=function(q,te){var A=this.props.scale||1,T=re(this.props.resizeRatio||1),B=T[0],X=T[1],ue=this.state,ie=ue.direction,Te=ue.original,je=this.props,yt=je.lockAspectRatio,tt=je.lockAspectRatioExtraHeight,Ze=je.lockAspectRatioExtraWidth,Ne=Te.width,it=Te.height,Rt=tt||0,Dn=Ze||0;return C("right",ie)&&(Ne=Te.width+(q-Te.x)*B/A,yt&&(it=(Ne-Dn)/this.ratio+Rt)),C("left",ie)&&(Ne=Te.width-(q-Te.x)*B/A,yt&&(it=(Ne-Dn)/this.ratio+Rt)),C("bottom",ie)&&(it=Te.height+(te-Te.y)*X/A,yt&&(Ne=(it-Rt)*this.ratio+Dn)),C("top",ie)&&(it=Te.height-(te-Te.y)*X/A,yt&&(Ne=(it-Rt)*this.ratio+Dn)),{newWidth:Ne,newHeight:it}},se.prototype.calculateNewSizeFromAspectRatio=function(q,te,A,T){var B=this.props,X=B.lockAspectRatio,ue=B.lockAspectRatioExtraHeight,ie=B.lockAspectRatioExtraWidth,Te=typeof T.width>"u"?10:T.width,je=typeof A.width>"u"||A.width<0?q:A.width,yt=typeof T.height>"u"?10:T.height,tt=typeof A.height>"u"||A.height<0?te:A.height,Ze=ue||0,Ne=ie||0;if(X){var it=(yt-Ze)*this.ratio+Ne,Rt=(tt-Ze)*this.ratio+Ne,Dn=(Te-Ne)/this.ratio+Ze,Mt=(je-Ne)/this.ratio+Ze,Wt=Math.max(Te,it),Tn=Math.min(je,Rt),bn=Math.max(yt,Dn),$t=Math.min(tt,Mt);q=O(q,Wt,Tn),te=O(te,bn,$t)}else q=O(q,Te,je),te=O(te,yt,tt);return{newWidth:q,newHeight:te}},se.prototype.setBoundingClientRect=function(){var q=1/(this.props.scale||1);if(this.props.bounds==="parent"){var te=this.parentNode;if(te){var A=te.getBoundingClientRect();this.parentLeft=A.left*q,this.parentTop=A.top*q}}if(this.props.bounds&&typeof this.props.bounds!="string"){var T=this.props.bounds.getBoundingClientRect();this.targetLeft=T.left*q,this.targetTop=T.top*q}if(this.resizable){var B=this.resizable.getBoundingClientRect(),X=B.left,ue=B.top,ie=B.right,Te=B.bottom;this.resizableLeft=X*q,this.resizableRight=ie*q,this.resizableTop=ue*q,this.resizableBottom=Te*q}},se.prototype.onResizeStart=function(q,te){if(!(!this.resizable||!this.window)){var A=0,T=0;if(q.nativeEvent&&j(q.nativeEvent)?(A=q.nativeEvent.clientX,T=q.nativeEvent.clientY):q.nativeEvent&&L(q.nativeEvent)&&(A=q.nativeEvent.touches[0].clientX,T=q.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var B=this.props.onResizeStart(q,te,this.resizable);if(B===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var X,ue=this.window.getComputedStyle(this.resizable);if(ue.flexBasis!=="auto"){var ie=this.parentNode;if(ie){var Te=this.window.getComputedStyle(ie).flexDirection;this.flexDir=Te.startsWith("row")?"row":"column",X=ue.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var je={original:{x:A,y:T,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:S(S({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(q.target).cursor||"auto"}),direction:te,flexBasis:X};this.setState(je)}},se.prototype.onMouseMove=function(q){var te=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&L(q))try{q.preventDefault(),q.stopPropagation()}catch{}var A=this.props,T=A.maxWidth,B=A.maxHeight,X=A.minWidth,ue=A.minHeight,ie=L(q)?q.touches[0].clientX:q.clientX,Te=L(q)?q.touches[0].clientY:q.clientY,je=this.state,yt=je.direction,tt=je.original,Ze=je.width,Ne=je.height,it=this.getParentSize(),Rt=ee(it,this.window.innerWidth,this.window.innerHeight,T,B,X,ue);T=Rt.maxWidth,B=Rt.maxHeight,X=Rt.minWidth,ue=Rt.minHeight;var Dn=this.calculateNewSizeFromDirection(ie,Te),Mt=Dn.newHeight,Wt=Dn.newWidth,Tn=this.calculateNewMaxFromBoundary(T,B);this.props.snap&&this.props.snap.x&&(Wt=I(Wt,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(Mt=I(Mt,this.props.snap.y,this.props.snapGap));var bn=this.calculateNewSizeFromAspectRatio(Wt,Mt,{width:Tn.maxWidth,height:Tn.maxHeight},{width:X,height:ue});if(Wt=bn.newWidth,Mt=bn.newHeight,this.props.grid){var $t=R(Wt,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),Ct=R(Mt,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),Z=this.props.snapGap||0,me=Z===0||Math.abs($t-Wt)<=Z?$t:Wt,ke=Z===0||Math.abs(Ct-Mt)<=Z?Ct:Mt;Wt=me,Mt=ke}var Ee={width:Wt-tt.width,height:Mt-tt.height};if(this.delta=Ee,Ze&&typeof Ze=="string"){if(Ze.endsWith("%")){var _e=Wt/it.width*100;Wt="".concat(_e,"%")}else if(Ze.endsWith("vw")){var ge=Wt/this.window.innerWidth*100;Wt="".concat(ge,"vw")}else if(Ze.endsWith("vh")){var Me=Wt/this.window.innerHeight*100;Wt="".concat(Me,"vh")}}if(Ne&&typeof Ne=="string"){if(Ne.endsWith("%")){var _e=Mt/it.height*100;Mt="".concat(_e,"%")}else if(Ne.endsWith("vw")){var ge=Mt/this.window.innerWidth*100;Mt="".concat(ge,"vw")}else if(Ne.endsWith("vh")){var Me=Mt/this.window.innerHeight*100;Mt="".concat(Me,"vh")}}var lt={width:this.createSizeForCssProperty(Wt,"width"),height:this.createSizeForCssProperty(Mt,"height")};this.flexDir==="row"?lt.flexBasis=lt.width:this.flexDir==="column"&&(lt.flexBasis=lt.height);var Ft=this.state.width!==lt.width,Et=this.state.height!==lt.height,Zt=this.state.flexBasis!==lt.flexBasis,nn=Ft||Et||Zt;nn&&(0,y.flushSync)(function(){te.setState(lt)}),this.props.onResize&&nn&&this.props.onResize(q,yt,this.resizable,Ee)}},se.prototype.onMouseUp=function(q){var te,A,T=this.state,B=T.isResizing,X=T.direction,ue=T.original;!B||!this.resizable||(this.props.onResizeStop&&this.props.onResizeStop(q,X,this.resizable,this.delta),this.props.size&&this.setState({width:(te=this.props.size.width)!==null&&te!==void 0?te:"auto",height:(A=this.props.size.height)!==null&&A!==void 0?A:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:S(S({},this.state.backgroundStyle),{cursor:"auto"})}))},se.prototype.updateSize=function(q){var te,A;this.setState({width:(te=q.width)!==null&&te!==void 0?te:"auto",height:(A=q.height)!==null&&A!==void 0?A:"auto"})},se.prototype.renderResizer=function(){var q=this,te=this.props,A=te.enable,T=te.handleStyles,B=te.handleClasses,X=te.handleWrapperStyle,ue=te.handleWrapperClass,ie=te.handleComponent;if(!A)return null;var Te=Object.keys(A).map(function(je){return A[je]!==!1?(0,l.jsx)(v,{direction:je,onResizeStart:q.onResizeStart,replaceStyles:T&&T[je],className:B&&B[je],children:ie&&ie[je]?ie[je]:null},je):null});return(0,l.jsx)("div",{className:ue,style:X,children:Te})},se.prototype.render=function(){var q=this,te=Object.keys(this.props).reduce(function(B,X){return Se.indexOf(X)!==-1||(B[X]=q.props[X]),B},{}),A=S(S(S({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(A.flexBasis=this.state.flexBasis);var T=this.props.as||"div";return(0,l.jsxs)(T,S({style:A,className:this.props.className},te,{ref:function(B){B&&(q.resizable=B)},children:[this.state.isResizing&&(0,l.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},se.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},se}(g.PureComponent)},33160:(Ge,w,u)=>{"use strict";u.d(w,{L:()=>p});var l=u(92908),g=u(64878),y=u(58307),x=u(39697),f=u(15964);function p(h){h===void 0&&(h=1/0);var E;h&&typeof h=="object"?E=h:E={count:h};var v=E.count,m=v===void 0?1/0:v,S=E.delay,d=E.resetOnSuccess,O=d===void 0?!1:d;return m<=0?y.D:(0,l.N)(function(R,C){var L=0,j,I=function(){var U=!1;j=R.subscribe((0,g._)(C,function($){O&&(L=0),C.next($)},void 0,function($){if(L++<m){var ee=function(){j?(j.unsubscribe(),j=null,I()):U=!0};if(S!=null){var re=typeof S=="number"?(0,x.O)(S):(0,f.Tg)(S($,L)),Se=(0,g._)(C,function(){Se.unsubscribe(),ee()},function(){C.complete()});re.subscribe(Se)}else ee()}else C.error($)})),U&&(j.unsubscribe(),j=null,I())};I()})}},33457:(Ge,w,u)=>{"use strict";u.d(w,{r:()=>l});const l={major:4,minor:0,patch:15}},33514:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.browserPrefixToKey=g,w.browserPrefixToStyle=y,w.default=void 0,w.getPrefix=l;const u=["Moz","Webkit","O","ms"];function l(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||p in h)return"";for(let E=0;E<u.length;E++)if(g(p,u[E])in h)return u[E];return""}function g(p,h){return h?`${h}${x(p)}`:p}function y(p,h){return h?`-${h.toLowerCase()}-${p}`:p}function x(p){let h="",E=!0;for(let v=0;v<p.length;v++)E?(h+=p[v].toUpperCase(),E=!1):p[v]==="-"?E=!0:h+=p[v];return h}var f=w.default=l()},33836:(Ge,w,u)=>{"use strict";u.d(w,{z:()=>l});function l(){return{mangle:!1,walkTokens(y){if(y.type!=="link"||!y.href.startsWith("mailto:"))return;const x=y.href.substring(7),f=g(x);y.href=`mailto:${f}`,!(y.tokens.length!==1||y.tokens[0].type!=="text"||y.tokens[0].text!==x)&&(y.text=f,y.tokens[0].text=f)}}}function g(y){let x="",f,p;const h=y.length;for(f=0;f<h;f++)p=y.charCodeAt(f),Math.random()>.5&&(p="x"+p.toString(16)),x+="&#"+p+";";return x}},34120:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>E});var l=u(28450),g=u(11854),y=u(1685),x=u(43530),f=u(4087);class p extends y.Ay{constructor(m,S,d){super(m),this.key=S,this.oldValue=d}}class h extends g.A{constructor(m){super(),this.on,this.once,this.un,(0,f.v6)(this),this.values_=null,m!==void 0&&this.setProperties(m)}get(m){let S;return this.values_&&this.values_.hasOwnProperty(m)&&(S=this.values_[m]),S}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(m,S){let d;d=`change:${m}`,this.hasListener(d)&&this.dispatchEvent(new p(d,m,S)),d=l.A.PROPERTYCHANGE,this.hasListener(d)&&this.dispatchEvent(new p(d,m,S))}addChangeListener(m,S){this.addEventListener(`change:${m}`,S)}removeChangeListener(m,S){this.removeEventListener(`change:${m}`,S)}set(m,S,d){const O=this.values_||(this.values_={});if(d)O[m]=S;else{const R=O[m];O[m]=S,R!==S&&this.notify(m,R)}}setProperties(m,S){for(const d in m)this.set(d,m[d],S)}applyProperties(m){m.values_&&Object.assign(this.values_||(this.values_={}),m.values_)}unset(m,S){if(this.values_&&m in this.values_){const d=this.values_[m];delete this.values_[m],(0,x.p)(this.values_)&&(this.values_=null),S||this.notify(m,d)}}}const E=h},34160:(Ge,w,u)=>{"use strict";Ge.exports=function(){if(typeof globalThis=="object")return globalThis;var l;try{l=this||new Function("return this")()}catch{if(typeof window=="object")return window;if(typeof self=="object")return self;if(typeof u.g<"u")return u.g}return l}()},34164:(Ge,w,u)=>{"use strict";u.d(w,{$:()=>g,A:()=>y});function l(x){var f,p,h="";if(typeof x=="string"||typeof x=="number")h+=x;else if(typeof x=="object")if(Array.isArray(x)){var E=x.length;for(f=0;f<E;f++)x[f]&&(p=l(x[f]))&&(h&&(h+=" "),h+=p)}else for(p in x)x[p]&&(h&&(h+=" "),h+=p);return h}function g(){for(var x,f,p=0,h="",E=arguments.length;p<E;p++)(x=arguments[p])&&(f=l(x))&&(h&&(h+=" "),h+=f);return h}const y=g},34235:(Ge,w,u)=>{"use strict";var l,g=u(84262).default;l={value:!0},w.A=void 0;var y=g(u(95093)),x=u(61105),f={getNow:function(){return(0,y.default)()},getFixedDate:function(E){return(0,y.default)(E,"YYYY-MM-DD")},getEndDate:function(E){var v=E.clone();return v.endOf("month")},getWeekDay:function(E){var v=E.clone().locale("en_US");return v.weekday()+v.localeData().firstDayOfWeek()},getYear:function(E){return E.year()},getMonth:function(E){return E.month()},getDate:function(E){return E.date()},getHour:function(E){return E.hour()},getMinute:function(E){return E.minute()},getSecond:function(E){return E.second()},getMillisecond:function(E){return E.millisecond()},addYear:function(E,v){var m=E.clone();return m.add(v,"year")},addMonth:function(E,v){var m=E.clone();return m.add(v,"month")},addDate:function(E,v){var m=E.clone();return m.add(v,"day")},setYear:function(E,v){var m=E.clone();return m.year(v)},setMonth:function(E,v){var m=E.clone();return m.month(v)},setDate:function(E,v){var m=E.clone();return m.date(v)},setHour:function(E,v){var m=E.clone();return m.hour(v)},setMinute:function(E,v){var m=E.clone();return m.minute(v)},setSecond:function(E,v){var m=E.clone();return m.second(v)},setMillisecond:function(E,v){var m=E.clone();return m.millisecond(v)},isAfter:function(E,v){return E.isAfter(v)},isValidate:function(E){return E.isValid()},locale:{getWeekFirstDay:function(E){var v=(0,y.default)().locale(E);return v.localeData().firstDayOfWeek()},getWeekFirstDate:function(E,v){var m=v.clone(),S=m.locale(E);return S.weekday(0)},getWeek:function(E,v){var m=v.clone(),S=m.locale(E);return S.week()},getShortWeekDays:function(E){var v=(0,y.default)().locale(E);return v.localeData().weekdaysMin()},getShortMonths:function(E){var v=(0,y.default)().locale(E);return v.localeData().monthsShort()},format:function(E,v,m){var S=v.clone(),d=S.locale(E);return d.format(m)},parse:function(E,v,m){for(var S=[],d=0;d<m.length;d+=1){var O=m[d],R=v;if(O.includes("wo")||O.includes("Wo")){O=O.replace(/wo/g,"w").replace(/Wo/g,"W");var C=O.match(/[-YyMmDdHhSsWwGg]+/g),L=R.match(/[-\d]+/g);C&&L?(O=C.join(""),R=L.join("")):S.push(O.replace(/o/g,""))}var j=(0,y.default)(R,O,E,!0);if(j.isValid())return j}for(var I=0;I<S.length;I+=1){var U=(0,y.default)(v,S[I],E,!1);if(U.isValid())return(0,x.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),U}return null}}},p=w.A=f},34297:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p});function l(h){if(Array.isArray(h))return h}function g(h,E){var v=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(v!=null){var m,S,d,O,R=[],C=!0,L=!1;try{if(d=(v=v.call(h)).next,E===0){if(Object(v)!==v)return;C=!1}else for(;!(C=(m=d.call(v)).done)&&(R.push(m.value),R.length!==E);C=!0);}catch(j){L=!0,S=j}finally{try{if(!C&&v.return!=null&&(O=v.return(),Object(O)!==O))return}finally{if(L)throw S}}return R}}function y(h,E){(E==null||E>h.length)&&(E=h.length);for(var v=0,m=Array(E);v<E;v++)m[v]=h[v];return m}function x(h,E){if(h){if(typeof h=="string")return y(h,E);var v={}.toString.call(h).slice(8,-1);return v==="Object"&&h.constructor&&(v=h.constructor.name),v==="Map"||v==="Set"?Array.from(h):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?y(h,E):void 0}}function f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(h,E){return l(h)||g(h,E)||x(h,E)||f()}},34307:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});function l(f){return f.charAt(0)==="/"}function g(f,p){for(var h=p,E=h+1,v=f.length;E<v;h+=1,E+=1)f[h]=f[E];f.pop()}function y(f,p){p===void 0&&(p="");var h=f&&f.split("/")||[],E=p&&p.split("/")||[],v=f&&l(f),m=p&&l(p),S=v||m;if(f&&l(f)?E=h:h.length&&(E.pop(),E=E.concat(h)),!E.length)return"/";var d;if(E.length){var O=E[E.length-1];d=O==="."||O===".."||O===""}else d=!1;for(var R=0,C=E.length;C>=0;C--){var L=E[C];L==="."?g(E,C):L===".."?(g(E,C),R++):R&&(g(E,C),R--)}if(!S)for(;R--;R)E.unshift("..");S&&E[0]!==""&&(!E[0]||!l(E[0]))&&E.unshift("");var j=E.join("/");return d&&j.substr(-1)!=="/"&&(j+="/"),j}const x=y},34338:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>h});var l=u(6837),g=u(9438),y=u(70915),x=u(27430);class f extends x.A{constructor(v){super(),this.geometries_=v,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(g.JH),this.changeEventsKeys_.length=0}listenGeometriesChange_(){const v=this.geometries_;for(let m=0,S=v.length;m<S;++m)this.changeEventsKeys_.push((0,g.KT)(v[m],l.A.CHANGE,this.changed,this))}clone(){const v=new f(p(this.geometries_));return v.applyProperties(this),v}closestPointXY(v,m,S,d){if(d<(0,y.Ld)(this.getExtent(),v,m))return d;const O=this.geometries_;for(let R=0,C=O.length;R<C;++R)d=O[R].closestPointXY(v,m,S,d);return d}containsXY(v,m){const S=this.geometries_;for(let d=0,O=S.length;d<O;++d)if(S[d].containsXY(v,m))return!0;return!1}computeExtent(v){(0,y.aZ)(v);const m=this.geometries_;for(let S=0,d=m.length;S<d;++S)(0,y.X$)(v,m[S].getExtent());return v}getGeometries(){return p(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let v=[];const m=this.geometries_;for(let S=0,d=m.length;S<d;++S)m[S].getType()===this.getType()?v=v.concat(m[S].getGeometriesArrayRecursive()):v.push(m[S]);return v}getSimplifiedGeometry(v){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),v<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&v<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const m=[],S=this.geometries_;let d=!1;for(let O=0,R=S.length;O<R;++O){const C=S[O],L=C.getSimplifiedGeometry(v);m.push(L),L!==C&&(d=!0)}return d?new f(m):(this.simplifiedGeometryMaxMinSquaredTolerance=v,this)}getType(){return"GeometryCollection"}intersectsExtent(v){const m=this.geometries_;for(let S=0,d=m.length;S<d;++S)if(m[S].intersectsExtent(v))return!0;return!1}isEmpty(){return this.geometries_.length===0}rotate(v,m){const S=this.geometries_;for(let d=0,O=S.length;d<O;++d)S[d].rotate(v,m);this.changed()}scale(v,m,S){S||(S=(0,y.q1)(this.getExtent()));const d=this.geometries_;for(let O=0,R=d.length;O<R;++O)d[O].scale(v,m,S);this.changed()}setGeometries(v){this.setGeometriesArray(p(v))}setGeometriesArray(v){this.unlistenGeometriesChange_(),this.geometries_=v,this.listenGeometriesChange_(),this.changed()}applyTransform(v){const m=this.geometries_;for(let S=0,d=m.length;S<d;++S)m[S].applyTransform(v);this.changed()}translate(v,m){const S=this.geometries_;for(let d=0,O=S.length;d<O;++d)S[d].translate(v,m);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function p(E){return E.map(v=>v.clone())}const h=f},34632:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});const l=function(){for(var g=arguments.length,y=Array(g),x=0;x<g;x++)y[x]=arguments[x];var f=typeof y[0]!="function"&&y.shift(),p=y;if(typeof f>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(h,E){for(var v=arguments.length,m=Array(v>2?v-2:0),S=2;S<v;S++)m[S-2]=arguments[S];var d=typeof h>"u",O=typeof E>"u";return d&&O&&f?f:p.reduce(function(R,C,L){if(typeof C>"u")throw new TypeError("An undefined reducer was passed in at index "+L);return C.apply(void 0,[R,E].concat(m))},d&&!O&&f?f:h)}}},34796:(Ge,w,u)=>{var l=u(74692),g=u(34160),y=g;typeof y.$>"u"&&(y.$=l),typeof y.jQuery>"u"&&(y.jQuery=l),Ge.exports=l},34891:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.iterator=w.getSymbolIterator=void 0;function u(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}w.getSymbolIterator=u,w.iterator=u()},34933:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(S){for(var d,O=1,R=arguments.length;O<R;O++){d=arguments[O];for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(S[C]=d[C])}return S},l.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(S,d,O,R){R===void 0&&(R=O),Object.defineProperty(S,R,{enumerable:!0,get:function(){return d[O]}})}:function(S,d,O,R){R===void 0&&(R=O),S[R]=d[O]}),y=this&&this.__setModuleDefault||(Object.create?function(S,d){Object.defineProperty(S,"default",{enumerable:!0,value:d})}:function(S,d){S.default=d}),x=this&&this.__importStar||function(S){if(S&&S.__esModule)return S;var d={};if(S!=null)for(var O in S)O!=="default"&&Object.prototype.hasOwnProperty.call(S,O)&&g(d,S,O);return y(d,S),d},f=this&&this.__rest||function(S,d){var O={};for(var R in S)Object.prototype.hasOwnProperty.call(S,R)&&d.indexOf(R)<0&&(O[R]=S[R]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,R=Object.getOwnPropertySymbols(S);C<R.length;C++)d.indexOf(R[C])<0&&Object.prototype.propertyIsEnumerable.call(S,R[C])&&(O[R[C]]=S[R[C]]);return O};Object.defineProperty(w,"__esModule",{value:!0}),w.KBarSearch=w.getListboxItemId=w.KBAR_LISTBOX=void 0;var p=x(u(96540)),h=u(60950),E=u(4122);w.KBAR_LISTBOX="kbar-listbox";var v=function(S){return"kbar-listbox-item-"+S};w.getListboxItemId=v;function m(S){var d=(0,E.useKBar)(function(ce){return{search:ce.searchQuery,currentRootActionId:ce.currentRootActionId,actions:ce.actions,activeIndex:ce.activeIndex,showing:ce.visualState===h.VisualState.showing}}),O=d.query,R=d.search,C=d.actions,L=d.currentRootActionId,j=d.activeIndex,I=d.showing,U=d.options,$=p.useState(R),ee=$[0],re=$[1];p.useEffect(function(){O.setSearch(ee)},[ee,O]);var Se=S.defaultPlaceholder,z=f(S,["defaultPlaceholder"]);p.useEffect(function(){return O.setSearch(""),O.getInput().focus(),function(){return O.setSearch("")}},[L,O]);var Q=p.useMemo(function(){var ce=Se??"Type a command or search\u2026";return L&&C[L]?C[L].name:ce},[C,L,Se]);return p.createElement("input",l({},z,{ref:O.inputRefSetter,autoFocus:!0,autoComplete:"off",role:"combobox",spellCheck:"false","aria-expanded":I,"aria-controls":w.KBAR_LISTBOX,"aria-activedescendant":(0,w.getListboxItemId)(j),value:ee,placeholder:Q,onChange:function(ce){var se,q,te;(se=S.onChange)===null||se===void 0||se.call(S,ce),re(ce.target.value),(te=(q=U?.callbacks)===null||q===void 0?void 0:q.onQueryChange)===null||te===void 0||te.call(q,ce.target.value)},onKeyDown:function(ce){var se;if((se=S.onKeyDown)===null||se===void 0||se.call(S,ce),L&&!R&&ce.key==="Backspace"){var q=C[L].parent;O.setCurrentRootAction(q)}}}))}w.KBarSearch=m},34950:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scheduleArray=void 0;var l=u(48051);function g(y,x){return new l.Observable(function(f){var p=0;return x.schedule(function(){p===y.length?f.complete():(f.next(y[p++]),f.closed||this.schedule())})})}w.scheduleArray=g},35001:(Ge,w,u)=>{"use strict";var l;l={value:!0},w.default=R;var g=E(u(96540)),y=p(u(83175)),x=p(u(43591)),f=p(u(71508));function p(C){return C&&C.__esModule?C:{default:C}}function h(C){if(typeof WeakMap!="function")return null;var L=new WeakMap,j=new WeakMap;return(h=function(I){return I?j:L})(C)}function E(C,L){if(!L&&C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var j=h(L);if(j&&j.has(C))return j.get(C);var I={__proto__:null},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in C)if($!=="default"&&Object.prototype.hasOwnProperty.call(C,$)){var ee=U?Object.getOwnPropertyDescriptor(C,$):null;ee&&(ee.get||ee.set)?Object.defineProperty(I,$,ee):I[$]=C[$]}return I.default=C,j&&j.set(C,I),I}function v(){return v=Object.assign?Object.assign.bind():function(C){for(var L=1;L<arguments.length;L++){var j=arguments[L];for(var I in j)Object.prototype.hasOwnProperty.call(j,I)&&(C[I]=j[I])}return C},v.apply(this,arguments)}function m(C,L,j){return L=S(L),L in C?Object.defineProperty(C,L,{value:j,enumerable:!0,configurable:!0,writable:!0}):C[L]=j,C}function S(C){var L=d(C,"string");return typeof L=="symbol"?L:String(L)}function d(C,L){if(typeof C!="object"||C===null)return C;var j=C[Symbol.toPrimitive];if(j!==void 0){var I=j.call(C,L||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(C)}const O="react-grid-layout";function R(C){var L;return L=class extends g.Component{constructor(){super(...arguments),m(this,"state",{width:1280}),m(this,"elementRef",g.createRef()),m(this,"mounted",!1),m(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new x.default(U=>{if(this.elementRef.current instanceof HTMLElement){const ee=U[0].contentRect.width;this.setState({width:ee})}});const I=this.elementRef.current;I instanceof HTMLElement&&this.resizeObserver.observe(I)}componentWillUnmount(){this.mounted=!1;const I=this.elementRef.current;I instanceof HTMLElement&&this.resizeObserver.unobserve(I),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:I,...U}=this.props;return I&&!this.mounted?g.createElement("div",{className:(0,f.default)(this.props.className,O),style:this.props.style,ref:this.elementRef}):g.createElement(C,v({innerRef:this.elementRef},U,this.state))}},m(L,"defaultProps",{measureBeforeMount:!1}),m(L,"propTypes",{measureBeforeMount:y.default.bool}),L}},35254:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});function l(){return!!(typeof window<"u"&&window.document?.createElement)}function g({children:y,name:x}){return l()&&(window.REACT_INLINESVG_CACHE_NAME=x,window.REACT_INLINESVG_PERSISTENT_CACHE=!0),y}},35392:(Ge,w,u)=>{"use strict";u.d(w,{Ft:()=>Ee,Uw:()=>T});function l(_e,ge,Me,lt){function Ft(Et){return Et instanceof Me?Et:new Me(function(Zt){Zt(Et)})}return new(Me||(Me=Promise))(function(Et,Zt){function nn(Vt){try{rn(lt.next(Vt))}catch(Kn){Zt(Kn)}}function Pn(Vt){try{rn(lt.throw(Vt))}catch(Kn){Zt(Kn)}}function rn(Vt){Vt.done?Et(Vt.value):Ft(Vt.value).then(nn,Pn)}rn((lt=lt.apply(_e,ge||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function g(_e){return _e&&_e.__esModule&&Object.prototype.hasOwnProperty.call(_e,"default")?_e.default:_e}var y={exports:{}},x=typeof Reflect=="object"?Reflect:null,f=x&&typeof x.apply=="function"?x.apply:function(ge,Me,lt){return Function.prototype.apply.call(ge,Me,lt)},p;x&&typeof x.ownKeys=="function"?p=x.ownKeys:Object.getOwnPropertySymbols?p=function(ge){return Object.getOwnPropertyNames(ge).concat(Object.getOwnPropertySymbols(ge))}:p=function(ge){return Object.getOwnPropertyNames(ge)};function h(_e){console&&console.warn&&console.warn(_e)}var E=Number.isNaN||function(ge){return ge!==ge};function v(){v.init.call(this)}y.exports=v,y.exports.once=ee,v.EventEmitter=v,v.prototype._events=void 0,v.prototype._eventsCount=0,v.prototype._maxListeners=void 0;var m=10;function S(_e){if(typeof _e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _e)}Object.defineProperty(v,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(_e){if(typeof _e!="number"||_e<0||E(_e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_e+".");m=_e}}),v.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},v.prototype.setMaxListeners=function(ge){if(typeof ge!="number"||ge<0||E(ge))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ge+".");return this._maxListeners=ge,this};function d(_e){return _e._maxListeners===void 0?v.defaultMaxListeners:_e._maxListeners}v.prototype.getMaxListeners=function(){return d(this)},v.prototype.emit=function(ge){for(var Me=[],lt=1;lt<arguments.length;lt++)Me.push(arguments[lt]);var Ft=ge==="error",Et=this._events;if(Et!==void 0)Ft=Ft&&Et.error===void 0;else if(!Ft)return!1;if(Ft){var Zt;if(Me.length>0&&(Zt=Me[0]),Zt instanceof Error)throw Zt;var nn=new Error("Unhandled error."+(Zt?" ("+Zt.message+")":""));throw nn.context=Zt,nn}var Pn=Et[ge];if(Pn===void 0)return!1;if(typeof Pn=="function")f(Pn,this,Me);else for(var rn=Pn.length,Vt=I(Pn,rn),lt=0;lt<rn;++lt)f(Vt[lt],this,Me);return!0};function O(_e,ge,Me,lt){var Ft,Et,Zt;if(S(Me),Et=_e._events,Et===void 0?(Et=_e._events=Object.create(null),_e._eventsCount=0):(Et.newListener!==void 0&&(_e.emit("newListener",ge,Me.listener?Me.listener:Me),Et=_e._events),Zt=Et[ge]),Zt===void 0)Zt=Et[ge]=Me,++_e._eventsCount;else if(typeof Zt=="function"?Zt=Et[ge]=lt?[Me,Zt]:[Zt,Me]:lt?Zt.unshift(Me):Zt.push(Me),Ft=d(_e),Ft>0&&Zt.length>Ft&&!Zt.warned){Zt.warned=!0;var nn=new Error("Possible EventEmitter memory leak detected. "+Zt.length+" "+String(ge)+" listeners added. Use emitter.setMaxListeners() to increase limit");nn.name="MaxListenersExceededWarning",nn.emitter=_e,nn.type=ge,nn.count=Zt.length,h(nn)}return _e}v.prototype.addListener=function(ge,Me){return O(this,ge,Me,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(ge,Me){return O(this,ge,Me,!0)};function R(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(_e,ge,Me){var lt={fired:!1,wrapFn:void 0,target:_e,type:ge,listener:Me},Ft=R.bind(lt);return Ft.listener=Me,lt.wrapFn=Ft,Ft}v.prototype.once=function(ge,Me){return S(Me),this.on(ge,C(this,ge,Me)),this},v.prototype.prependOnceListener=function(ge,Me){return S(Me),this.prependListener(ge,C(this,ge,Me)),this},v.prototype.removeListener=function(ge,Me){var lt,Ft,Et,Zt,nn;if(S(Me),Ft=this._events,Ft===void 0)return this;if(lt=Ft[ge],lt===void 0)return this;if(lt===Me||lt.listener===Me)--this._eventsCount===0?this._events=Object.create(null):(delete Ft[ge],Ft.removeListener&&this.emit("removeListener",ge,lt.listener||Me));else if(typeof lt!="function"){for(Et=-1,Zt=lt.length-1;Zt>=0;Zt--)if(lt[Zt]===Me||lt[Zt].listener===Me){nn=lt[Zt].listener,Et=Zt;break}if(Et<0)return this;Et===0?lt.shift():U(lt,Et),lt.length===1&&(Ft[ge]=lt[0]),Ft.removeListener!==void 0&&this.emit("removeListener",ge,nn||Me)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(ge){var Me,lt,Ft;if(lt=this._events,lt===void 0)return this;if(lt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):lt[ge]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete lt[ge]),this;if(arguments.length===0){var Et=Object.keys(lt),Zt;for(Ft=0;Ft<Et.length;++Ft)Zt=Et[Ft],Zt!=="removeListener"&&this.removeAllListeners(Zt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Me=lt[ge],typeof Me=="function")this.removeListener(ge,Me);else if(Me!==void 0)for(Ft=Me.length-1;Ft>=0;Ft--)this.removeListener(ge,Me[Ft]);return this};function L(_e,ge,Me){var lt=_e._events;if(lt===void 0)return[];var Ft=lt[ge];return Ft===void 0?[]:typeof Ft=="function"?Me?[Ft.listener||Ft]:[Ft]:Me?$(Ft):I(Ft,Ft.length)}v.prototype.listeners=function(ge){return L(this,ge,!0)},v.prototype.rawListeners=function(ge){return L(this,ge,!1)},v.listenerCount=function(_e,ge){return typeof _e.listenerCount=="function"?_e.listenerCount(ge):j.call(_e,ge)},v.prototype.listenerCount=j;function j(_e){var ge=this._events;if(ge!==void 0){var Me=ge[_e];if(typeof Me=="function")return 1;if(Me!==void 0)return Me.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?p(this._events):[]};function I(_e,ge){for(var Me=new Array(ge),lt=0;lt<ge;++lt)Me[lt]=_e[lt];return Me}function U(_e,ge){for(;ge+1<_e.length;ge++)_e[ge]=_e[ge+1];_e.pop()}function $(_e){for(var ge=new Array(_e.length),Me=0;Me<ge.length;++Me)ge[Me]=_e[Me].listener||_e[Me];return ge}function ee(_e,ge){return new Promise(function(Me,lt){function Ft(Zt){_e.removeListener(ge,Et),lt(Zt)}function Et(){typeof _e.removeListener=="function"&&_e.removeListener("error",Ft),Me([].slice.call(arguments))}Se(_e,ge,Et,{once:!0}),ge!=="error"&&re(_e,Ft,{once:!0})})}function re(_e,ge,Me){typeof _e.on=="function"&&Se(_e,"error",ge,Me)}function Se(_e,ge,Me,lt){if(typeof _e.on=="function")lt.once?_e.once(ge,Me):_e.on(ge,Me);else if(typeof _e.addEventListener=="function")_e.addEventListener(ge,function Ft(Et){lt.once&&_e.removeEventListener(ge,Ft),Me(Et)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof _e)}var z=y.exports,Q=g(z),ce;(function(_e){_e[_e.timeout=1]="timeout",_e[_e.transportClosed=2]="transportClosed",_e[_e.clientDisconnected=3]="clientDisconnected",_e[_e.clientClosed=4]="clientClosed",_e[_e.clientConnectToken=5]="clientConnectToken",_e[_e.clientRefreshToken=6]="clientRefreshToken",_e[_e.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",_e[_e.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",_e[_e.subscriptionRefreshToken=9]="subscriptionRefreshToken",_e[_e.transportWriteError=10]="transportWriteError",_e[_e.connectionClosed=11]="connectionClosed",_e[_e.badConfiguration=12]="badConfiguration"})(ce||(ce={}));var se;(function(_e){_e[_e.connectCalled=0]="connectCalled",_e[_e.transportClosed=1]="transportClosed",_e[_e.noPing=2]="noPing",_e[_e.subscribeTimeout=3]="subscribeTimeout",_e[_e.unsubscribeError=4]="unsubscribeError"})(se||(se={}));var q;(function(_e){_e[_e.disconnectCalled=0]="disconnectCalled",_e[_e.unauthorized=1]="unauthorized",_e[_e.badProtocol=2]="badProtocol",_e[_e.messageSizeLimit=3]="messageSizeLimit"})(q||(q={}));var te;(function(_e){_e[_e.subscribeCalled=0]="subscribeCalled",_e[_e.transportClosed=1]="transportClosed"})(te||(te={}));var A;(function(_e){_e[_e.unsubscribeCalled=0]="unsubscribeCalled",_e[_e.unauthorized=1]="unauthorized",_e[_e.clientClosed=2]="clientClosed"})(A||(A={}));var T;(function(_e){_e.Disconnected="disconnected",_e.Connecting="connecting",_e.Connected="connected"})(T||(T={}));var B;(function(_e){_e.Unsubscribed="unsubscribed",_e.Subscribing="subscribing",_e.Subscribed="subscribed"})(B||(B={}));function X(_e,ge){return _e.lastIndexOf(ge,0)===0}function ue(_e){return _e==null?!1:typeof _e=="function"}function ie(_e,ge){if(globalThis.console){const Me=globalThis.console[_e];ue(Me)&&Me.apply(globalThis.console,ge)}}function Te(_e,ge){return Math.floor(Math.random()*(ge-_e+1)+_e)}function je(_e,ge,Me){_e>31&&(_e=31);const lt=Te(0,Math.min(Me,ge*Math.pow(2,_e)));return Math.min(Me,ge+lt)}function yt(_e){return"error"in _e&&_e.error!==null}function tt(_e){return Math.min(_e*1e3,2147483647)}class Ze extends Q{constructor(ge,Me,lt){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=Me,this.state=B.Unsubscribed,this._centrifuge=ge,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(lt),this._centrifuge._debugEnabled?(this.on("state",Ft=>{this._debug("subscription state",Me,Ft.oldState,"->",Ft.newState)}),this.on("error",Ft=>{this._debug("subscription error",Me,Ft)})):this.on("error",function(){Function.prototype()})}ready(ge){return this.state===B.Unsubscribed?Promise.reject({code:ce.subscriptionUnsubscribed,message:this.state}):this.state===B.Subscribed?Promise.resolve():new Promise((Me,lt)=>{const Ft={resolve:Me,reject:lt};ge&&(Ft.timeout=setTimeout(function(){lt({code:ce.timeout,message:"timeout"})},ge)),this._promises[this._nextPromiseId()]=Ft})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(te.subscribeCalled,"subscribe called"))}unsubscribe(){this._unsubPromise=this._setUnsubscribed(A.unsubscribeCalled,"unsubscribe called",!0)}publish(ge){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,ge)})}presence(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(ge){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,ge)})}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:ce.subscriptionUnsubscribed,message:this.state}):new Promise((ge,Me)=>{const lt=this._centrifuge._config.timeout,Ft=setTimeout(()=>{Me({code:ce.timeout,message:"timeout"})},lt);this._promises[this._nextPromiseId()]={timeout:Ft,resolve:ge,reject:Me}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===B.Unsubscribed}_isSubscribing(){return this.state===B.Subscribing}_isSubscribed(){return this.state===B.Subscribed}_setState(ge){if(this.state!==ge){const Me=this.state;return this.state=ge,this.emit("state",{newState:ge,oldState:Me,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(ge){if(!this._isSubscribing())return;this._clearSubscribingState(),ge.recoverable&&(this._recover=!0,this._offset=ge.offset||0,this._epoch=ge.epoch||""),ge.delta?this._delta_negotiated=!0:this._delta_negotiated=!1,this._setState(B.Subscribed);const Me=this._centrifuge._getSubscribeContext(this.channel,ge);this.emit("subscribed",Me),this._resolvePromises();const lt=ge.publications;if(lt&<.length>0)for(const Ft in lt)lt.hasOwnProperty(Ft)&&this._handlePublication(lt[Ft]);ge.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),tt(ge.ttl)))}_setSubscribing(ge,Me){return l(this,void 0,void 0,function*(){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._setState(B.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:ge,reason:Me}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe())})}_subscribe(){return this._debug("subscribing on",this.channel),this._isTransportOpen()?this._inflight?null:(this._inflight=!0,this._canSubscribeWithoutGettingToken()?this._subscribeWithoutToken():(this._getSubscriptionToken().then(ge=>this._handleTokenResponse(ge)).catch(ge=>this._handleTokenError(ge)),null)):(this._debug("delay subscribe on",this.channel,"till connected"),null)}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){return this._getData?(this._getDataAndSubscribe(this._token),null):this._sendSubscribe(this._token)}_getDataAndSubscribe(ge){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then(Me=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=Me,this._sendSubscribe(ge)}).catch(Me=>this._handleGetDataError(Me))}_handleGetDataError(ge){if(!this._isSubscribing()){this._inflight=!1;return}if(ge instanceof ke){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:ce.badConfiguration,message:ge?.toString()||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(ge){if(!this._isSubscribing()){this._inflight=!1;return}if(!ge){this._inflight=!1,this._failUnauthorized();return}this._token=ge,this._getData?this._getDataAndSubscribe(ge):this._sendSubscribe(ge)}_handleTokenError(ge){if(!this._isSubscribing()){this._inflight=!1;return}if(ge instanceof ke){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:ce.subscriptionSubscribeToken,message:ge?.toString()||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(ge){if(!this._isTransportOpen())return this._inflight=!1,null;const Me=this._buildSubscribeCommand(ge);return this._centrifuge._call(Me).then(lt=>{this._inflight=!1;const Ft=lt.reply.subscribe;this._handleSubscribeResponse(Ft),lt.next&<.next()},lt=>{this._inflight=!1,this._handleSubscribeError(lt.error),lt.next&<.next()}),Me}_buildSubscribeCommand(ge){const Me={channel:this.channel};if(ge&&(Me.token=ge),this._data&&(Me.data=this._data),this._positioned&&(Me.positioned=!0),this._recoverable&&(Me.recoverable=!0),this._joinLeave&&(Me.join_leave=!0),this._needRecover()){Me.recover=!0;const lt=this._getOffset();lt&&(Me.offset=lt);const Ft=this._getEpoch();Ft&&(Me.epoch=Ft)}return this._delta&&(Me.delta=this._delta),{subscribe:Me}}_debug(...ge){this._centrifuge._debug(...ge)}_handleSubscribeError(ge){if(this._isSubscribing()){if(ge.code===ce.timeout){this._centrifuge._disconnect(se.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(ge)}}_handleSubscribeResponse(ge){this._isSubscribing()&&this._setSubscribed(ge)}_setUnsubscribed(ge,Me,lt){if(this._isUnsubscribed())return Promise.resolve();let Ft=Promise.resolve();return this._isSubscribed()?(lt&&(Ft=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&<&&(Ft=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._inflight=!1,this._setState(B.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:ge,reason:Me}),this._rejectPromises({code:ce.subscriptionUnsubscribed,message:this.state}),Ft}_handlePublication(ge){if(this._delta&&this._delta_negotiated){const{newData:lt,newPrevValue:Ft}=this._centrifuge._codec.applyDeltaIfNeeded(ge,this._prevValue);ge.data=lt,this._prevValue=Ft}const Me=this._centrifuge._getPublicationContext(this.channel,ge);this.emit("publication",Me),ge.offset&&(this._offset=ge.offset)}_handleJoin(ge){const Me=this._centrifuge._getJoinLeaveContext(ge.info);this.emit("join",{channel:this.channel,info:Me})}_handleLeave(ge){const Me=this._centrifuge._getJoinLeaveContext(ge.info);this.emit("leave",{channel:this.channel,info:Me})}_resolvePromises(){for(const ge in this._promises)this._promises.hasOwnProperty(ge)&&(this._promises[ge].timeout&&clearTimeout(this._promises[ge].timeout),this._promises[ge].resolve(),delete this._promises[ge])}_rejectPromises(ge){for(const Me in this._promises)this._promises.hasOwnProperty(Me)&&(this._promises[Me].timeout&&clearTimeout(this._promises[Me].timeout),this._promises[Me].reject(ge),delete this._promises[Me])}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}const ge=this,Me=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){ge._isSubscribing()&&ge._subscribe()},Me),this._debug("resubscribe scheduled after "+Me,this.channel)}_subscribeError(ge){if(this._isSubscribing())if(ge.code<100||ge.code===109||ge.temporary===!0){ge.code===109&&(this._token="");const Me={channel:this.channel,type:"subscribe",error:ge};this._centrifuge.state===T.Connected&&this.emit("error",Me),this._scheduleResubscribe()}else this._setUnsubscribed(ge.code,ge.message,!1)}_getResubscribeDelay(){const ge=je(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,ge}_setOptions(ge){if(ge&&(ge.since&&(this._offset=ge.since.offset||0,this._epoch=ge.since.epoch||"",this._recover=!0),ge.data&&(this._data=ge.data),ge.getData&&(this._getData=ge.getData),ge.minResubscribeDelay!==void 0&&(this._minResubscribeDelay=ge.minResubscribeDelay),ge.maxResubscribeDelay!==void 0&&(this._maxResubscribeDelay=ge.maxResubscribeDelay),ge.token&&(this._token=ge.token),ge.getToken&&(this._getToken=ge.getToken),ge.positioned===!0&&(this._positioned=!0),ge.recoverable===!0&&(this._recoverable=!0),ge.joinLeave===!0&&(this._joinLeave=!0),ge.delta)){if(ge.delta!=="fossil")throw new Error("unsupported delta format");this._delta=ge.delta}}_getOffset(){const ge=this._offset;return ge!==null?ge:0}_getEpoch(){const ge=this._epoch;return ge!==null?ge:""}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearResubscribeTimeout(){this._resubscribeTimeout!==null&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null)}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);const ge={channel:this.channel},Me=this._getToken;return Me===null?(this.emit("error",{type:"configuration",channel:this.channel,error:{code:ce.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new ke(""))):Me(ge)}_refresh(){this._clearRefreshTimeout();const ge=this;this._getSubscriptionToken().then(function(Me){if(!ge._isSubscribed())return;if(!Me){ge._failUnauthorized();return}ge._token=Me;const Ft={sub_refresh:{channel:ge.channel,token:Me}};ge._centrifuge._call(Ft).then(Et=>{const Zt=Et.reply.sub_refresh;ge._refreshResponse(Zt),Et.next&&Et.next()},Et=>{ge._refreshError(Et.error),Et.next&&Et.next()})}).catch(function(Me){if(Me instanceof ke){ge._failUnauthorized();return}ge.emit("error",{type:"refreshToken",channel:ge.channel,error:{code:ce.subscriptionRefreshToken,message:Me!==void 0?Me.toString():""}}),ge._refreshTimeout=setTimeout(()=>ge._refresh(),ge._getRefreshRetryDelay())})}_refreshResponse(ge){this._isSubscribed()&&(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),ge.expires===!0&&(this._refreshTimeout=setTimeout(()=>this._refresh(),tt(ge.ttl))))}_refreshError(ge){this._isSubscribed()&&(ge.code<100||ge.temporary===!0?(this.emit("error",{type:"refresh",channel:this.channel,error:ge}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(ge.code,ge.message,!0))}_getRefreshRetryDelay(){return je(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(A.unauthorized,"unauthorized",!0)}}class Ne{constructor(ge,Me){this.endpoint=ge,this.options=Me,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(ge,Me){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{Me.onOpen()},this._transport.onerror=lt=>{Me.onError(lt)},this._transport.onclose=lt=>{Me.onClose(lt)},this._transport.onmessage=lt=>{Me.onMessage(lt.data)}}close(){this._transport.close()}send(ge){this._transport.send(ge)}}class it{constructor(ge,Me){this.endpoint=ge,this.options=Me,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(ge,Me){let lt="";ge==="protobuf"&&(lt="centrifuge-protobuf"),lt!==""?this._transport=new this.options.websocket(this.endpoint,lt):this._transport=new this.options.websocket(this.endpoint),ge==="protobuf"&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{Me.onOpen()},this._transport.onerror=Ft=>{Me.onError(Ft)},this._transport.onclose=Ft=>{Me.onClose(Ft)},this._transport.onmessage=Ft=>{Me.onMessage(Ft.data)}}close(){this._transport.close()}send(ge){this._transport.send(ge)}}class Rt{constructor(ge,Me){this.endpoint=ge,this.options=Me,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(ge){if(!ge.ok)throw new Error(ge.status);return ge}_fetchEventTarget(ge,Me,lt){const Ft=new EventTarget,Et=ge.options.fetch;return Et(Me,lt).then(ge._handleErrors).then(Zt=>{Ft.dispatchEvent(new Event("open"));let nn="",Pn=0,rn=new Uint8Array;const Vt=Zt.body.getReader();return new ge.options.readableStream({start(Kn){function ur(){return Vt.read().then(({done:on,value:tr})=>{if(on){Ft.dispatchEvent(new Event("close")),Kn.close();return}try{if(ge._protocol==="json")for(nn+=ge._utf8decoder.decode(tr);Pn<nn.length;)if(nn[Pn]===` `){const Cn=nn.substring(0,Pn);Ft.dispatchEvent(new MessageEvent("message",{data:Cn})),nn=nn.substring(Pn+1),Pn=0}else++Pn;else{const Cn=new Uint8Array(rn.length+tr.length);for(Cn.set(rn),Cn.set(tr,rn.length),rn=Cn;;){const Wn=ge.options.decoder.decodeReply(rn);if(Wn.ok){const er=rn.slice(0,Wn.pos);Ft.dispatchEvent(new MessageEvent("message",{data:er})),rn=rn.slice(Wn.pos);continue}break}}}catch(Cn){Ft.dispatchEvent(new Event("error",{detail:Cn})),Ft.dispatchEvent(new Event("close")),Kn.close();return}ur()}).catch(function(on){Ft.dispatchEvent(new Event("error",{detail:on})),Ft.dispatchEvent(new Event("close")),Kn.close()})}return ur()}})}).catch(Zt=>{Ft.dispatchEvent(new Event("error",{detail:Zt})),Ft.dispatchEvent(new Event("close"))}),Ft}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(ge,Me,lt){this._protocol=ge,this._abortController=new AbortController;let Ft,Et;ge==="json"?(Ft={Accept:"application/json","Content-Type":"application/json"},Et=lt):(Ft={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},Et=lt);const Zt={method:"POST",headers:Ft,body:Et,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},nn=this._fetchEventTarget(this,this.endpoint,Zt);nn.addEventListener("open",()=>{Me.onOpen()}),nn.addEventListener("error",Pn=>{this._abortController.abort(),Me.onError(Pn)}),nn.addEventListener("close",()=>{this._abortController.abort(),Me.onClose({code:4,reason:"connection closed"})}),nn.addEventListener("message",Pn=>{Me.onMessage(Pn.data)})}close(){this._abortController.abort()}send(ge,Me,lt){let Ft,Et;const Zt={session:Me,node:lt,data:ge};this._protocol==="json"?(Ft={"Content-Type":"application/json"},Et=JSON.stringify(Zt)):(Ft={"Content-Type":"application/octet-stream"},Et=this.options.encoder.encodeEmulationRequest(Zt));const nn=this.options.fetch,Pn={method:"POST",headers:Ft,body:Et,mode:"cors",credentials:"same-origin"};nn(this.options.emulationEndpoint,Pn)}}class Dn{constructor(ge,Me){this.endpoint=ge,this.options=Me,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(ge,Me,lt){let Ft;globalThis&&globalThis.document&&globalThis.document.baseURI?Ft=new URL(this.endpoint,globalThis.document.baseURI):Ft=new URL(this.endpoint),Ft.searchParams.append("cf_connect",lt);const Et={},Zt=new this.options.eventsource(Ft.toString(),Et);this._transport=Zt;const nn=this;Zt.onopen=function(){Me.onOpen()},Zt.onerror=function(Pn){Zt.close(),Me.onError(Pn),Me.onClose({code:4,reason:"connection closed"})},Zt.onmessage=function(Pn){Me.onMessage(Pn.data)},nn._onClose=function(){Me.onClose({code:4,reason:"connection closed"})}}close(){this._transport.close(),this._onClose!==null&&this._onClose()}send(ge,Me,lt){const Ft={session:Me,node:lt,data:ge},Et={"Content-Type":"application/json"},Zt=JSON.stringify(Ft),nn=this.options.fetch,Pn={method:"POST",headers:Et,body:Zt,mode:"cors",credentials:"same-origin"};nn(this.options.emulationEndpoint,Pn)}}class Mt{constructor(ge,Me){this.endpoint=ge,this.options=Me,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(ge,Me){return l(this,void 0,void 0,function*(){let lt;globalThis&&globalThis.document&&globalThis.document.baseURI?lt=new URL(this.endpoint,globalThis.document.baseURI):lt=new URL(this.endpoint),ge==="protobuf"&<.searchParams.append("cf_protocol","protobuf"),this._protocol=ge;const Ft=new EventTarget;this._transport=new this.options.webtransport(lt.toString()),this._transport.closed.then(()=>{Me.onClose({code:4,reason:"connection closed"})}).catch(()=>{Me.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch{this.close();return}let Et;try{Et=yield this._transport.createBidirectionalStream()}catch{this.close();return}this._stream=Et,this._writer=this._stream.writable.getWriter(),Ft.addEventListener("close",()=>{Me.onClose({code:4,reason:"connection closed"})}),Ft.addEventListener("message",Zt=>{Me.onMessage(Zt.data)}),this._startReading(Ft),Me.onOpen()})}_startReading(ge){return l(this,void 0,void 0,function*(){const Me=this._stream.readable.getReader();let lt="",Ft=0,Et=new Uint8Array;try{for(;;){const{done:Zt,value:nn}=yield Me.read();if(nn.length>0)if(this._protocol==="json")for(lt+=this._utf8decoder.decode(nn);Ft<lt.length;)if(lt[Ft]===` `){const Pn=lt.substring(0,Ft);ge.dispatchEvent(new MessageEvent("message",{data:Pn})),lt=lt.substring(Ft+1),Ft=0}else++Ft;else{const Pn=new Uint8Array(Et.length+nn.length);for(Pn.set(Et),Pn.set(nn,Et.length),Et=Pn;;){const rn=this.options.decoder.decodeReply(Et);if(rn.ok){const Vt=Et.slice(0,rn.pos);ge.dispatchEvent(new MessageEvent("message",{data:Vt})),Et=Et.slice(rn.pos);continue}break}}if(Zt)break}}catch{ge.dispatchEvent(new Event("close"))}})}close(){return l(this,void 0,void 0,function*(){try{this._writer&&(yield this._writer.close()),this._transport.close()}catch{}})}send(ge){return l(this,void 0,void 0,function*(){let Me;this._protocol==="json"?Me=new TextEncoder().encode(ge+` `):Me=ge;try{yield this._writer.write(Me)}catch{this.close()}})}}const Wt=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class Tn{constructor(ge){this.a=ge,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){const ge=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw new RangeError("out of bounds");return ge}getChar(){return String.fromCharCode(this.getByte())}getInt(){let ge=0,Me;for(;this.haveBytes()&&(Me=Wt[127&this.getByte()])>=0;)ge=(ge<<6)+Me;return this.pos--,ge>>>0}}class bn{constructor(){this.a=[]}toByteArray(ge){return Array.isArray(ge)?this.a:new Uint8Array(this.a)}putArray(ge,Me,lt){for(let Ft=Me;Ft<lt;Ft++)this.a.push(ge[Ft])}}function $t(_e){let ge=0,Me=0,lt=0,Ft=0,Et=0,Zt=_e.length;for(;Zt>=16;)ge=ge+_e[Et+0]|0,Me=Me+_e[Et+1]|0,lt=lt+_e[Et+2]|0,Ft=Ft+_e[Et+3]|0,ge=ge+_e[Et+4]|0,Me=Me+_e[Et+5]|0,lt=lt+_e[Et+6]|0,Ft=Ft+_e[Et+7]|0,ge=ge+_e[Et+8]|0,Me=Me+_e[Et+9]|0,lt=lt+_e[Et+10]|0,Ft=Ft+_e[Et+11]|0,ge=ge+_e[Et+12]|0,Me=Me+_e[Et+13]|0,lt=lt+_e[Et+14]|0,Ft=Ft+_e[Et+15]|0,Et+=16,Zt-=16;for(;Zt>=4;)ge=ge+_e[Et+0]|0,Me=Me+_e[Et+1]|0,lt=lt+_e[Et+2]|0,Ft=Ft+_e[Et+3]|0,Et+=4,Zt-=4;switch(Ft=((Ft+(lt<<8)|0)+(Me<<16)|0)+(ge<<24)|0,Zt){case 3:Ft=Ft+(_e[Et+2]<<8)|0;case 2:Ft=Ft+(_e[Et+1]<<16)|0;case 1:Ft=Ft+(_e[Et+0]<<24)|0}return Ft>>>0}function Ct(_e,ge){let Me=0;const lt=new Tn(ge),Ft=_e.length,Et=ge.length,Zt=lt.getInt();if(lt.getChar()!==` `)throw new Error("size integer not terminated by '\\n'");const nn=new bn;for(;lt.haveBytes();){const Pn=lt.getInt();let rn;switch(lt.getChar()){case"@":if(rn=lt.getInt(),lt.haveBytes()&<.getChar()!==",")throw new Error("copy command not terminated by ','");if(Me+=Pn,Me>Zt)throw new Error("copy exceeds output file size");if(rn+Pn>Ft)throw new Error("copy extends past end of input");nn.putArray(_e,rn,rn+Pn);break;case":":if(Me+=Pn,Me>Zt)throw new Error("insert command gives an output larger than predicted");if(Pn>Et)throw new Error("insert count exceeds size of delta");nn.putArray(lt.a,lt.pos,lt.pos+Pn),lt.pos+=Pn;break;case";":{const Vt=nn.toByteArray(_e);if(Pn!==$t(Vt))throw new Error("bad checksum");if(Me!==Zt)throw new Error("generated size does not match predicted size");return Vt}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}class Z{name(){return"json"}encodeCommands(ge){return ge.map(Me=>JSON.stringify(Me)).join(` `)}decodeReplies(ge){return ge.trim().split(` `).map(Me=>JSON.parse(Me))}applyDeltaIfNeeded(ge,Me){let lt,Ft;if(ge.delta){const Et=Ct(Me,new TextEncoder().encode(ge.data));lt=JSON.parse(new TextDecoder().decode(Et)),Ft=Et}else lt=JSON.parse(ge.data),Ft=new TextEncoder().encode(ge.data);return{newData:lt,newPrevValue:Ft}}}const me={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class ke extends Error{constructor(ge){super(ge),this.name=this.constructor.name}}class Ee extends Q{constructor(ge,Me){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=T.Disconnected,this._transportIsOpen=!1,this._endpoint=ge,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new Z,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},me),Me),this._configure(),this._debugEnabled?(this.on("state",lt=>{this._debug("client state",lt.oldState,"->",lt.newState)}),this.on("error",lt=>{this._debug("client error",lt)})):this.on("error",function(){Function.prototype()})}newSubscription(ge,Me){if(this.getSubscription(ge)!==null)throw new Error("Subscription to the channel "+ge+" already exists");const lt=new Ze(this,ge,Me);return this._subs[ge]=lt,lt}getSubscription(ge){return this._getSub(ge)}removeSubscription(ge){ge&&(ge.state!==B.Unsubscribed&&ge.unsubscribe(),this._removeSubscription(ge))}subscriptions(){return this._subs}ready(ge){switch(this.state){case T.Disconnected:return Promise.reject({code:ce.clientDisconnected,message:"client disconnected"});case T.Connected:return Promise.resolve();default:return new Promise((Me,lt)=>{const Ft={resolve:Me,reject:lt};ge&&(Ft.timeout=setTimeout(()=>{lt({code:ce.timeout,message:"timeout"})},ge)),this._promises[this._nextPromiseId()]=Ft})}}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(q.disconnectCalled,"disconnect called",!1)}setToken(ge){this._token=ge}setHeaders(ge){this._config.headers=ge}send(ge){return l(this,void 0,void 0,function*(){const Me={send:{data:ge}};if(yield this._methodCall(),!this._transportSendCommands([Me]))throw this._createErrorObject(ce.transportWriteError,"transport write error")})}rpc(ge,Me){return l(this,void 0,void 0,function*(){const lt={rpc:{method:ge,data:Me}};return yield this._methodCall(),{data:(yield this._callPromise(lt,Et=>Et.rpc)).data}})}publish(ge,Me){return l(this,void 0,void 0,function*(){const lt={publish:{channel:ge,data:Me}};return yield this._methodCall(),yield this._callPromise(lt,()=>({})),{}})}history(ge,Me){return l(this,void 0,void 0,function*(){const lt={history:this._getHistoryRequest(ge,Me)};yield this._methodCall();const Ft=yield this._callPromise(lt,Zt=>Zt.history),Et=[];if(Ft.publications)for(let Zt=0;Zt<Ft.publications.length;Zt++)Et.push(this._getPublicationContext(ge,Ft.publications[Zt]));return{publications:Et,epoch:Ft.epoch||"",offset:Ft.offset||0}})}presence(ge){return l(this,void 0,void 0,function*(){const Me={presence:{channel:ge}};yield this._methodCall();const Ft=(yield this._callPromise(Me,Et=>Et.presence)).presence;for(const Et in Ft)if(Object.prototype.hasOwnProperty.call(Ft,Et)){const Zt=Ft[Et],nn=Zt.conn_info,Pn=Zt.chan_info;nn&&(Zt.connInfo=nn),Pn&&(Zt.chanInfo=Pn)}return{clients:Ft}})}presenceStats(ge){return l(this,void 0,void 0,function*(){const Me={presence_stats:{channel:ge}};yield this._methodCall();const lt=yield this._callPromise(Me,Ft=>Ft.presence_stats);return{numUsers:lt.num_users,numClients:lt.num_clients}})}startBatching(){this._batching=!0}stopBatching(){const ge=this;Promise.resolve().then(function(){Promise.resolve().then(function(){ge._batching=!1,ge._flush()})})}_debug(...ge){this._debugEnabled&&ie("debug",ge)}_codecName(){return this._codec.name()}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(this._config.token!==null&&(this._token=this._config.token),this._config.data!==null&&(this._data=this._config.data),this._codec=new Z,this._formatOverride(),(this._config.debug===!0||typeof localStorage<"u"&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),typeof this._endpoint!="string")if(typeof this._endpoint=="object"&&this._endpoint instanceof Array){this._transports=this._endpoint,this._emulation=!0;for(const ge in this._transports)if(this._transports.hasOwnProperty(ge)){const Me=this._transports[ge];if(!Me.endpoint||!Me.transport)throw new Error("malformed transport configuration");const lt=Me.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(lt)<0)throw new Error("unsupported transport name: "+lt)}}else throw new Error("unsupported url configuration type: only string or array of objects are supported")}_setState(ge){if(this.state!==ge){this._reconnecting=!1;const Me=this.state;return this.state=ge,this.emit("state",{newState:ge,oldState:Me}),!0}return!1}_isDisconnected(){return this.state===T.Disconnected}_isConnecting(){return this.state===T.Connecting}_isConnected(){return this.state===T.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let ge=null;this._config.networkEventTarget!==null?ge=this._config.networkEventTarget:typeof globalThis.addEventListener<"u"&&(ge=globalThis),ge&&(ge.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===T.Connected||this.state===T.Connecting)&&(this._disconnect(se.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),ge.addEventListener("online",()=>{this._debug("online event triggered"),this.state===T.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const ge=je(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,ge}_clearOutgoingRequests(){for(const ge in this._callbacks)if(this._callbacks.hasOwnProperty(ge)){const Me=this._callbacks[ge];clearTimeout(Me.timeout);const lt=Me.errback;if(!lt)continue;lt({error:this._createErrorObject(ce.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const ge in this._subs){if(!this._subs.hasOwnProperty(ge))continue;const Me=this._subs[ge];Me.state===B.Subscribed&&Me._setSubscribing(te.transportClosed,"transport closed")}for(const ge in this._serverSubs)this._serverSubs.hasOwnProperty(ge)&&this.emit("subscribing",{channel:ge})}_handleWriteError(ge){for(const Me of ge){const lt=Me.id;if(!(lt in this._callbacks))continue;const Ft=this._callbacks[lt];clearTimeout(this._callbacks[lt].timeout),delete this._callbacks[lt];const Et=Ft.errback;Et({error:this._createErrorObject(ce.transportWriteError,"transport write error")})}}_transportSendCommands(ge){if(!ge.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(ge),this._session,this._node)}catch(Me){return this._debug("error writing commands",Me),this._handleWriteError(ge),!1}return!0}_initializeTransport(){let ge;this._config.websocket!==null?ge=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(ge=globalThis.WebSocket);let Me=null;this._config.sockjs!==null?Me=this._config.sockjs:typeof globalThis.SockJS<"u"&&(Me=globalThis.SockJS);let lt=null;this._config.eventsource!==null?lt=this._config.eventsource:typeof globalThis.EventSource<"u"&&(lt=globalThis.EventSource);let Ft=null;this._config.fetch!==null?Ft=this._config.fetch:typeof globalThis.fetch<"u"&&(Ft=globalThis.fetch);let Et=null;if(this._config.readableStream!==null?Et=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(Et=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let on=0;for(;;){if(on>=this._transports.length)throw new Error("no supported transport found");const tr=this._transports[this._currentTransportIndex],Cn=tr.transport,Wn=tr.endpoint;if(Cn==="websocket"){if(this._debug("trying websocket transport"),this._transport=new it(Wn,{websocket:ge}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,on++;continue}}else if(Cn==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new Mt(Wn,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,on++;continue}}else if(Cn==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new Rt(Wn,{fetch:Ft,readableStream:Et,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,on++;continue}}else if(Cn==="sse"){if(this._debug("trying sse transport"),this._transport=new Dn(Wn,{eventsource:lt,fetch:Ft,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,on++;continue}}else if(Cn==="sockjs"){if(this._debug("trying sockjs"),this._transport=new Ne(Wn,{sockjs:Me,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,on++;continue}}else throw new Error("unknown transport "+Cn);break}}else{if(X(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new it(this._endpoint,{websocket:ge}),!this._transport.supported())throw new Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}const Zt=this,nn=this._transport,Pn=this._nextTransportId();Zt._debug("id of transport",Pn);let rn=!1;const Vt=[];if(this._transport.emulation()){const on=Zt._sendConnect(!0);Vt.push(on)}this._setNetworkEvents();const Kn=this._codec.encodeCommands(Vt);this._transportClosed=!1;let ur;ur=setTimeout(function(){nn.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(ur&&(clearTimeout(ur),ur=null),Zt._transportId!=Pn){Zt._debug("open callback from non-actual transport"),nn.close();return}rn=!0,Zt._debug(nn.subName(),"transport open"),!nn.emulation()&&(Zt._transportIsOpen=!0,Zt._transportWasOpen=!0,Zt.startBatching(),Zt._sendConnect(!1),Zt._sendSubscribeCommands(),Zt.stopBatching(),Zt.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(on){if(Zt._transportId!=Pn){Zt._debug("error callback from non-actual transport");return}Zt._debug("transport level error",on)},onClose:function(on){if(ur&&(clearTimeout(ur),ur=null),Zt._transportId!=Pn){Zt._debug("close callback from non-actual transport");return}Zt._debug(nn.subName(),"transport closed"),Zt._transportClosed=!0,Zt._transportIsOpen=!1;let tr="connection closed",Cn=!0,Wn=0;if(on&&"code"in on&&on.code&&(Wn=on.code),on&&on.reason)try{const er=JSON.parse(on.reason);tr=er.reason,Cn=er.reconnect}catch{tr=on.reason,(Wn>=3500&&Wn<4e3||Wn>=4500&&Wn<5e3)&&(Cn=!1)}Wn<3e3?(Wn===1009?(Wn=q.messageSizeLimit,tr="message size limit exceeded",Cn=!1):(Wn=se.transportClosed,tr="transport closed"),Zt._emulation&&!Zt._transportWasOpen&&(Zt._currentTransportIndex++,Zt._currentTransportIndex>=Zt._transports.length&&(Zt._triedAllTransports=!0,Zt._currentTransportIndex=0))):Zt._transportWasOpen=!0,Zt._isConnecting()&&!rn&&Zt.emit("error",{type:"transport",error:{code:ce.transportClosed,message:"transport closed"},transport:nn.name()}),Zt._reconnecting=!1,Zt._disconnect(Wn,tr,Cn)},onMessage:function(on){Zt._dataReceived(on)}},Kn),Zt.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(ge){const Me=this._constructConnectCommand(),lt=this;return this._call(Me,ge).then(Ft=>{const Et=Ft.reply.connect;lt._connectResponse(Et),Ft.next&&Ft.next()},Ft=>{lt._connectError(Ft.error),Ft.next&&Ft.next()}),Me}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;const ge=this._token==="";if(!(this._refreshRequired||ge&&this._config.getToken!==null)){this._config.getData?this._config.getData().then(Ft=>{this._isConnecting()&&(this._data=Ft,this._initializeTransport())}).catch(Ft=>this._handleGetDataError(Ft)):this._initializeTransport();return}const lt=this;this._getToken().then(function(Ft){if(lt._isConnecting()){if(Ft==null||Ft==null){lt._failUnauthorized();return}lt._token=Ft,lt._debug("connection token refreshed"),lt._config.getData?lt._config.getData().then(function(Et){lt._isConnecting()&&(lt._data=Et,lt._initializeTransport())}).catch(Et=>lt._handleGetDataError(Et)):lt._initializeTransport()}}).catch(function(Ft){if(!lt._isConnecting())return;if(Ft instanceof ke){lt._failUnauthorized();return}lt.emit("error",{type:"connectToken",error:{code:ce.clientConnectToken,message:Ft!==void 0?Ft.toString():""}});const Et=lt._getReconnectDelay();lt._debug("error on getting connection token, reconnect after "+Et+" milliseconds",Ft),lt._reconnecting=!1,lt._reconnectTimeout=setTimeout(()=>{lt._startReconnecting()},Et)})}_handleGetDataError(ge){if(ge instanceof ke){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:ce.badConfiguration,message:ge?.toString()||""}});const Me=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+Me+" milliseconds",ge),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},Me)}_connectError(ge){this.state===T.Connecting&&(ge.code===109&&(this._refreshRequired=!0),ge.code<100||ge.temporary===!0||ge.code===109?(this.emit("error",{type:"connect",error:ge}),this._debug("closing transport due to connect error"),this._disconnect(ge.code,ge.message,!0)):this._disconnect(ge.code,ge.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let ge=!1;this._emulation&&!this._transportWasOpen&&!this._triedAllTransports&&(ge=!0);let Me=this._getReconnectDelay();ge&&(Me=0),this._debug("reconnect after "+Me+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},Me)}_constructConnectCommand(){const ge={};this._token&&(ge.token=this._token),this._data&&(ge.data=this._data),this._config.name&&(ge.name=this._config.name),this._config.version&&(ge.version=this._config.version),Object.keys(this._config.headers).length>0&&(ge.headers=this._config.headers);const Me={};let lt=!1;for(const Ft in this._serverSubs)if(this._serverSubs.hasOwnProperty(Ft)&&this._serverSubs[Ft].recoverable){lt=!0;const Et={recover:!0};this._serverSubs[Ft].offset&&(Et.offset=this._serverSubs[Ft].offset),this._serverSubs[Ft].epoch&&(Et.epoch=this._serverSubs[Ft].epoch),Me[Ft]=Et}return lt&&(ge.subs=Me),{connect:ge}}_getHistoryRequest(ge,Me){const lt={channel:ge};return Me!==void 0&&(Me.since&&(lt.since={offset:Me.since.offset},Me.since.epoch&&(lt.since.epoch=Me.since.epoch)),Me.limit!==void 0&&(lt.limit=Me.limit),Me.reverse===!0&&(lt.reverse=!0)),lt}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((ge,Me)=>{const lt=setTimeout(function(){Me({code:ce.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:lt,resolve:ge,reject:Me}})}_callPromise(ge,Me){return new Promise((lt,Ft)=>{this._call(ge,!1).then(Et=>{var Zt;const nn=Me(Et.reply);lt(nn),(Zt=Et.next)===null||Zt===void 0||Zt.call(Et)},Et=>{var Zt;Ft(Et.error),(Zt=Et.next)===null||Zt===void 0||Zt.call(Et)})})}_dataReceived(ge){this._serverPing>0&&this._waitServerPing();const Me=this._codec.decodeReplies(ge);this._dispatchPromise=this._dispatchPromise.then(()=>{let lt;this._dispatchPromise=new Promise(Ft=>{lt=Ft}),this._dispatchSynchronized(Me,lt)})}_dispatchSynchronized(ge,Me){let lt=Promise.resolve();for(const Ft in ge)ge.hasOwnProperty(Ft)&&(lt=lt.then(()=>this._dispatchReply(ge[Ft])));lt=lt.then(()=>{Me()})}_dispatchReply(ge){let Me;const lt=new Promise(Et=>{Me=Et});if(ge==null)return this._debug("dispatch: got undefined or null reply"),Me(),lt;const Ft=ge.id;return Ft&&Ft>0?this._handleReply(ge,Me):ge.push?this._handlePush(ge.push,Me):this._handleServerPing(Me),lt}_call(ge,Me){return new Promise((lt,Ft)=>{ge.id=this._nextCommandId(),this._registerCall(ge.id,lt,Ft),Me||this._addCommand(ge)})}_startConnecting(){this._debug("start connecting"),this._setState(T.Connecting)&&this.emit("connecting",{code:se.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(ge,Me,lt){if(this._isDisconnected())return;this._transportIsOpen=!1;const Ft=this.state;this._reconnecting=!1;const Et={code:ge,reason:Me};let Zt=!1;if(lt?Zt=this._setState(T.Connecting):(Zt=this._setState(T.Disconnected),this._rejectPromises({code:ce.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),Ft===T.Connecting&&this._clearReconnectTimeout(),Ft===T.Connected&&this._clearConnectedState(),Zt&&(this._isConnecting()?this.emit("connecting",Et):this.emit("disconnected",Et)),this._transport){this._debug("closing existing transport");const nn=this._transport;this._transport=null,nn.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(q.unauthorized,"unauthorized",!1)}_getToken(){return this._debug("get connection token"),this._config.getToken?this._config.getToken({}):(this.emit("error",{type:"configuration",error:{code:ce.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new ke("")))}_refresh(){const ge=this._client,Me=this;this._getToken().then(function(lt){if(ge!==Me._client)return;if(!lt){Me._failUnauthorized();return}if(Me._token=lt,Me._debug("connection token refreshed"),!Me._isConnected())return;const Ft={refresh:{token:Me._token}};Me._call(Ft,!1).then(Et=>{const Zt=Et.reply.refresh;Me._refreshResponse(Zt),Et.next&&Et.next()},Et=>{Me._refreshError(Et.error),Et.next&&Et.next()})}).catch(function(lt){if(Me._isConnected()){if(lt instanceof ke){Me._failUnauthorized();return}Me.emit("error",{type:"refreshToken",error:{code:ce.clientRefreshToken,message:lt!==void 0?lt.toString():""}}),Me._refreshTimeout=setTimeout(()=>Me._refresh(),Me._getRefreshRetryDelay())}})}_refreshError(ge){ge.code<100||ge.temporary===!0?(this.emit("error",{type:"refresh",error:ge}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(ge.code,ge.message,!1)}_getRefreshRetryDelay(){return je(0,5e3,1e4)}_refreshResponse(ge){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),ge.expires&&(this._client=ge.client,this._refreshTimeout=setTimeout(()=>this._refresh(),tt(ge.ttl)))}_removeSubscription(ge){ge!==null&&delete this._subs[ge.channel]}_unsubscribe(ge){if(!this._transportIsOpen)return Promise.resolve();const lt={unsubscribe:{channel:ge.channel}},Ft=this;return new Promise((Zt,nn)=>{this._call(lt,!1).then(Pn=>{Zt(),Pn.next&&Pn.next()},Pn=>{Zt(),Pn.next&&Pn.next(),Ft._disconnect(se.unsubscribeError,"unsubscribe error",!0)})})}_getSub(ge){const Me=this._subs[ge];return Me||null}_isServerSub(ge){return this._serverSubs[ge]!==void 0}_sendSubscribeCommands(){const ge=[];for(const Me in this._subs){if(!this._subs.hasOwnProperty(Me))continue;const lt=this._subs[Me];if(lt._inflight!==!0&<.state===B.Subscribing){const Ft=lt._subscribe();Ft&&ge.push(Ft)}}return ge}_connectResponse(ge){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=ge.client,this._setState(T.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),ge.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),tt(ge.ttl))),this._session=ge.session,this._node=ge.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const Me={client:ge.client,transport:this._transport.subName()};ge.data&&(Me.data=ge.data),this.emit("connected",Me),this._resolvePromises(),this._processServerSubs(ge.subs||{}),ge.ping&&ge.ping>0?(this._serverPing=ge.ping*1e3,this._sendPong=ge.pong===!0,this._waitServerPing()):this._serverPing=0}_processServerSubs(ge){for(const Me in ge){if(!ge.hasOwnProperty(Me))continue;const lt=ge[Me];this._serverSubs[Me]={offset:lt.offset,epoch:lt.epoch,recoverable:lt.recoverable||!1};const Ft=this._getSubscribeContext(Me,lt);this.emit("subscribed",Ft)}for(const Me in ge){if(!ge.hasOwnProperty(Me))continue;const lt=ge[Me];if(lt.recovered){const Ft=lt.publications;if(Ft&&Ft.length>0)for(const Et in Ft)Ft.hasOwnProperty(Et)&&this._handlePublication(Me,Ft[Et])}}for(const Me in this._serverSubs)this._serverSubs.hasOwnProperty(Me)&&(ge[Me]||(this.emit("unsubscribed",{channel:Me}),delete this._serverSubs[Me]))}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(se.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(ge,Me){const lt={channel:ge,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};Me.recovered&&(lt.recovered=!0),Me.positioned&&(lt.positioned=!0),Me.recoverable&&(lt.recoverable=!0),Me.was_recovering&&(lt.wasRecovering=!0);let Ft="";"epoch"in Me&&(Ft=Me.epoch);let Et=0;return"offset"in Me&&(Et=Me.offset),(lt.positioned||lt.recoverable)&&(lt.streamPosition={offset:Et,epoch:Ft}),Array.isArray(Me.publications)&&Me.publications.length>0&&(lt.hasRecoveredPublications=!0),Me.data&&(lt.data=Me.data),lt}_handleReply(ge,Me){const lt=ge.id;if(!(lt in this._callbacks)){Me();return}const Ft=this._callbacks[lt];if(clearTimeout(this._callbacks[lt].timeout),delete this._callbacks[lt],yt(ge)){const Et=Ft.errback;if(!Et){Me();return}const Zt={code:ge.error.code,message:ge.error.message||"",temporary:ge.error.temporary||!1};Et({error:Zt,next:Me})}else{const Et=Ft.callback;if(!Et)return;Et({reply:ge,next:Me})}}_handleJoin(ge,Me){const lt=this._getSub(ge);if(!lt){if(this._isServerSub(ge)){const Ft={channel:ge,info:this._getJoinLeaveContext(Me.info)};this.emit("join",Ft)}return}lt._handleJoin(Me)}_handleLeave(ge,Me){const lt=this._getSub(ge);if(!lt){if(this._isServerSub(ge)){const Ft={channel:ge,info:this._getJoinLeaveContext(Me.info)};this.emit("leave",Ft)}return}lt._handleLeave(Me)}_handleUnsubscribe(ge,Me){const lt=this._getSub(ge);if(!lt){this._isServerSub(ge)&&(delete this._serverSubs[ge],this.emit("unsubscribed",{channel:ge}));return}Me.code<2500?lt._setUnsubscribed(Me.code,Me.reason,!1):lt._setSubscribing(Me.code,Me.reason)}_handleSubscribe(ge,Me){this._serverSubs[ge]={offset:Me.offset,epoch:Me.epoch,recoverable:Me.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(ge,Me))}_handleDisconnect(ge){const Me=ge.code;let lt=!0;(Me>=3500&&Me<4e3||Me>=4500&&Me<5e3)&&(lt=!1),this._disconnect(Me,ge.reason,lt)}_getPublicationContext(ge,Me){const lt={channel:ge,data:Me.data};return Me.offset&&(lt.offset=Me.offset),Me.info&&(lt.info=this._getJoinLeaveContext(Me.info)),Me.tags&&(lt.tags=Me.tags),lt}_getJoinLeaveContext(ge){const Me={client:ge.client,user:ge.user},lt=ge.conn_info;lt&&(Me.connInfo=lt);const Ft=ge.chan_info;return Ft&&(Me.chanInfo=Ft),Me}_handlePublication(ge,Me){const lt=this._getSub(ge);if(!lt){if(this._isServerSub(ge)){const Ft=this._getPublicationContext(ge,Me);this.emit("publication",Ft),Me.offset!==void 0&&(this._serverSubs[ge].offset=Me.offset)}return}lt._handlePublication(Me)}_handleMessage(ge){this.emit("message",{data:ge.data})}_handleServerPing(ge){if(this._sendPong){const Me={};this._transportSendCommands([Me])}ge()}_handlePush(ge,Me){const lt=ge.channel;ge.pub?this._handlePublication(lt,ge.pub):ge.message?this._handleMessage(ge.message):ge.join?this._handleJoin(lt,ge.join):ge.leave?this._handleLeave(lt,ge.leave):ge.unsubscribe?this._handleUnsubscribe(lt,ge.unsubscribe):ge.subscribe?this._handleSubscribe(lt,ge.subscribe):ge.disconnect&&this._handleDisconnect(ge.disconnect),Me()}_flush(){const ge=this._commands.slice(0);this._commands=[],this._transportSendCommands(ge)}_createErrorObject(ge,Me,lt){const Ft={code:ge,message:Me};return lt&&(Ft.temporary=!0),Ft}_registerCall(ge,Me,lt){this._callbacks[ge]={callback:Me,errback:lt,timeout:null},this._callbacks[ge].timeout=setTimeout(()=>{delete this._callbacks[ge],ue(lt)&<({error:this._createErrorObject(ce.timeout,"timeout")})},this._config.timeout)}_addCommand(ge){this._batching?this._commands.push(ge):this._transportSendCommands([ge])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const ge in this._promises)this._promises.hasOwnProperty(ge)&&(this._promises[ge].timeout&&clearTimeout(this._promises[ge].timeout),this._promises[ge].resolve(),delete this._promises[ge])}_rejectPromises(ge){for(const Me in this._promises)this._promises.hasOwnProperty(Me)&&(this._promises[Me].timeout&&clearTimeout(this._promises[Me].timeout),this._promises[Me].reject(ge),delete this._promises[Me])}}Ee.SubscriptionState=B,Ee.State=T,Ee.UnauthorizedError=ke},35557:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{AbortedDeferredError:()=>p.tH,Await:()=>f.jD,BrowserRouter:()=>nn,CompatRoute:()=>we,CompatRouter:()=>pt,Form:()=>tr,HashRouter:()=>Pn,Link:()=>ur,MemoryRouter:()=>f.fS,NavLink:()=>on,Navigate:()=>f.C5,NavigationType:()=>p.rc,Outlet:()=>f.sv,Route:()=>f.qh,Router:()=>f.Ix,RouterProvider:()=>Ft,Routes:()=>f.BV,ScrollRestoration:()=>Cn,StaticRouter:()=>Je,UNSAFE_DataRouterContext:()=>f.sp,UNSAFE_DataRouterStateContext:()=>f.Rq,UNSAFE_LocationContext:()=>f.yN,UNSAFE_NavigationContext:()=>f.jb,UNSAFE_RouteContext:()=>f.UX,UNSAFE_useRouteId:()=>f.$3,UNSAFE_useScrollRestoration:()=>ln,createBrowserRouter:()=>Dn,createHashRouter:()=>Mt,createMemoryRouter:()=>f.bg,createPath:()=>p.AO,createRoutesFromChildren:()=>f.AV,createRoutesFromElements:()=>f.Eu,createSearchParams:()=>X,defer:()=>p.v6,generatePath:()=>p.tW,isRouteErrorResponse:()=>p.pX,json:()=>p.Pq,matchPath:()=>p.B6,matchRoutes:()=>p.ue,parsePath:()=>p.Rr,redirect:()=>p.V2,redirectDocument:()=>p.Sk,renderMatches:()=>f.KT,replace:()=>p.HC,resolvePath:()=>p.o1,unstable_HistoryRouter:()=>rn,unstable_usePrompt:()=>ht,useActionData:()=>f.mP,useAsyncError:()=>f.oI,useAsyncValue:()=>f.J8,useBeforeUnload:()=>pn,useBlocker:()=>f.KP,useFetcher:()=>K,useFetchers:()=>he,useFormAction:()=>fe,useHref:()=>f.$P,useInRouterContext:()=>f.Ri,useLinkClickHandler:()=>kn,useLoaderData:()=>f.LG,useLocation:()=>f.zy,useMatch:()=>f.RQ,useMatches:()=>f.FE,useNavigate:()=>f.Zp,useNavigation:()=>f.cq,useNavigationType:()=>f.wQ,useOutlet:()=>f.P1,useOutletContext:()=>f.KC,useParams:()=>f.g,useResolvedPath:()=>f.x$,useRevalidator:()=>f.vL,useRouteError:()=>f.r5,useRouteLoaderData:()=>f.Ew,useRoutes:()=>f.Ye,useSearchParams:()=>Jn,useSubmit:()=>ne});var l=u(96540),g=u.t(l,2),y=u(40961),x=u.t(y,2),f=u(54148),p=u(45588),h;(function(ye){ye.Pop="POP",ye.Push="PUSH",ye.Replace="REPLACE"})(h||(h={}));var E=null;function v(ye,Qe){if(!ye){typeof console<"u"&&console.warn(Qe);try{throw new Error(Qe)}catch{}}}var m="beforeunload",S="hashchange",d="popstate";function O(ye){ye===void 0&&(ye={});var Qe=ye,ze=Qe.window,qe=ze===void 0?document.defaultView:ze,Pt=qe.history;function zt(){var Yr=qe.location,Xr=Yr.pathname,ni=Yr.search,ki=Yr.hash,zr=Pt.state||{};return[zr.idx,E({pathname:Xr,search:ni,hash:ki,state:zr.usr||null,key:zr.key||"default"})]}var un=null;function hn(){if(un)Gn.call(un),un=null;else{var Yr=h.Pop,Xr=zt(),ni=Xr[0],ki=Xr[1];if(Gn.length){if(ni!=null){var zr=qt-ni;zr&&(un={action:Yr,location:ki,retry:function(){ar(zr*-1)}},ar(zr))}}else cr(Yr)}}qe.addEventListener(d,hn);var xt=h.Pop,_t=zt(),qt=_t[0],fn=_t[1],On=I(),Gn=I();qt==null&&(qt=0,Pt.replaceState(_extends({},Pt.state,{idx:qt}),""));function Bn(Yr){return typeof Yr=="string"?Yr:$(Yr)}function Lr(Yr,Xr){return Xr===void 0&&(Xr=null),E(_extends({pathname:fn.pathname,hash:"",search:""},typeof Yr=="string"?ee(Yr):Yr,{state:Xr,key:U()}))}function An(Yr,Xr){return[{usr:Yr.state,key:Yr.key,idx:Xr},Bn(Yr)]}function Un(Yr,Xr,ni){return!Gn.length||(Gn.call({action:Yr,location:Xr,retry:ni}),!1)}function cr(Yr){xt=Yr;var Xr=zt();qt=Xr[0],fn=Xr[1],On.call({action:xt,location:fn})}function mr(Yr,Xr){var ni=h.Push,ki=Lr(Yr,Xr);function zr(){mr(Yr,Xr)}if(Un(ni,ki,zr)){var Ur=An(ki,qt+1),jt=Ur[0],sn=Ur[1];try{Pt.pushState(jt,"",sn)}catch{qe.location.assign(sn)}cr(ni)}}function hr(Yr,Xr){var ni=h.Replace,ki=Lr(Yr,Xr);function zr(){hr(Yr,Xr)}if(Un(ni,ki,zr)){var Ur=An(ki,qt),jt=Ur[0],sn=Ur[1];Pt.replaceState(jt,"",sn),cr(ni)}}function ar(Yr){Pt.go(Yr)}var Cr={get action(){return xt},get location(){return fn},createHref:Bn,push:mr,replace:hr,go:ar,back:function(){ar(-1)},forward:function(){ar(1)},listen:function(Xr){return On.push(Xr)},block:function(Xr){var ni=Gn.push(Xr);return Gn.length===1&&qe.addEventListener(m,j),function(){ni(),Gn.length||qe.removeEventListener(m,j)}}};return Cr}function R(ye){ye===void 0&&(ye={});var Qe=ye,ze=Qe.window,qe=ze===void 0?document.defaultView:ze,Pt=qe.history;function zt(){var Xr=ee(qe.location.hash.substr(1)),ni=Xr.pathname,ki=ni===void 0?"/":ni,zr=Xr.search,Ur=zr===void 0?"":zr,jt=Xr.hash,sn=jt===void 0?"":jt,Rn=Pt.state||{};return[Rn.idx,E({pathname:ki,search:Ur,hash:sn,state:Rn.usr||null,key:Rn.key||"default"})]}var un=null;function hn(){if(un)Gn.call(un),un=null;else{var Xr=h.Pop,ni=zt(),ki=ni[0],zr=ni[1];if(Gn.length){if(ki!=null){var Ur=qt-ki;Ur&&(un={action:Xr,location:zr,retry:function(){Cr(Ur*-1)}},Cr(Ur))}}else mr(Xr)}}qe.addEventListener(d,hn),qe.addEventListener(S,function(){var Xr=zt(),ni=Xr[1];$(ni)!==$(fn)&&hn()});var xt=h.Pop,_t=zt(),qt=_t[0],fn=_t[1],On=I(),Gn=I();qt==null&&(qt=0,Pt.replaceState(_extends({},Pt.state,{idx:qt}),""));function Bn(){var Xr=document.querySelector("base"),ni="";if(Xr&&Xr.getAttribute("href")){var ki=qe.location.href,zr=ki.indexOf("#");ni=zr===-1?ki:ki.slice(0,zr)}return ni}function Lr(Xr){return Bn()+"#"+(typeof Xr=="string"?Xr:$(Xr))}function An(Xr,ni){return ni===void 0&&(ni=null),E(_extends({pathname:fn.pathname,hash:"",search:""},typeof Xr=="string"?ee(Xr):Xr,{state:ni,key:U()}))}function Un(Xr,ni){return[{usr:Xr.state,key:Xr.key,idx:ni},Lr(Xr)]}function cr(Xr,ni,ki){return!Gn.length||(Gn.call({action:Xr,location:ni,retry:ki}),!1)}function mr(Xr){xt=Xr;var ni=zt();qt=ni[0],fn=ni[1],On.call({action:xt,location:fn})}function hr(Xr,ni){var ki=h.Push,zr=An(Xr,ni);function Ur(){hr(Xr,ni)}if(cr(ki,zr,Ur)){var jt=Un(zr,qt+1),sn=jt[0],Rn=jt[1];try{Pt.pushState(sn,"",Rn)}catch{qe.location.assign(Rn)}mr(ki)}}function ar(Xr,ni){var ki=h.Replace,zr=An(Xr,ni);function Ur(){ar(Xr,ni)}if(cr(ki,zr,Ur)){var jt=Un(zr,qt),sn=jt[0],Rn=jt[1];Pt.replaceState(sn,"",Rn),mr(ki)}}function Cr(Xr){Pt.go(Xr)}var Yr={get action(){return xt},get location(){return fn},createHref:Lr,push:hr,replace:ar,go:Cr,back:function(){Cr(-1)},forward:function(){Cr(1)},listen:function(ni){return On.push(ni)},block:function(ni){var ki=Gn.push(ni);return Gn.length===1&&qe.addEventListener(m,j),function(){ki(),Gn.length||qe.removeEventListener(m,j)}}};return Yr}function C(ye){ye===void 0&&(ye={});var Qe=ye,ze=Qe.initialEntries,qe=ze===void 0?["/"]:ze,Pt=Qe.initialIndex,zt=qe.map(function(mr){var hr=E(_extends({pathname:"/",search:"",hash:"",state:null,key:U()},typeof mr=="string"?ee(mr):mr));return hr}),un=L(Pt??zt.length-1,0,zt.length-1),hn=h.Pop,xt=zt[un],_t=I(),qt=I();function fn(mr){return typeof mr=="string"?mr:$(mr)}function On(mr,hr){return hr===void 0&&(hr=null),E(_extends({pathname:xt.pathname,search:"",hash:""},typeof mr=="string"?ee(mr):mr,{state:hr,key:U()}))}function Gn(mr,hr,ar){return!qt.length||(qt.call({action:mr,location:hr,retry:ar}),!1)}function Bn(mr,hr){hn=mr,xt=hr,_t.call({action:hn,location:xt})}function Lr(mr,hr){var ar=h.Push,Cr=On(mr,hr);function Yr(){Lr(mr,hr)}Gn(ar,Cr,Yr)&&(un+=1,zt.splice(un,zt.length,Cr),Bn(ar,Cr))}function An(mr,hr){var ar=h.Replace,Cr=On(mr,hr);function Yr(){An(mr,hr)}Gn(ar,Cr,Yr)&&(zt[un]=Cr,Bn(ar,Cr))}function Un(mr){var hr=L(un+mr,0,zt.length-1),ar=h.Pop,Cr=zt[hr];function Yr(){Un(mr)}Gn(ar,Cr,Yr)&&(un=hr,Bn(ar,Cr))}var cr={get index(){return un},get action(){return hn},get location(){return xt},createHref:fn,push:Lr,replace:An,go:Un,back:function(){Un(-1)},forward:function(){Un(1)},listen:function(hr){return _t.push(hr)},block:function(hr){return qt.push(hr)}};return cr}function L(ye,Qe,ze){return Math.min(Math.max(ye,Qe),ze)}function j(ye){ye.preventDefault(),ye.returnValue=""}function I(){var ye=[];return{get length(){return ye.length},push:function(ze){return ye.push(ze),function(){ye=ye.filter(function(qe){return qe!==ze})}},call:function(ze){ye.forEach(function(qe){return qe&&qe(ze)})}}}function U(){return Math.random().toString(36).substr(2,8)}function $(ye){var Qe=ye.pathname,ze=Qe===void 0?"/":Qe,qe=ye.search,Pt=qe===void 0?"":qe,zt=ye.hash,un=zt===void 0?"":zt;return Pt&&Pt!=="?"&&(ze+=Pt.charAt(0)==="?"?Pt:"?"+Pt),un&&un!=="#"&&(ze+=un.charAt(0)==="#"?un:"#"+un),ze}function ee(ye){var Qe={};if(ye){var ze=ye.indexOf("#");ze>=0&&(Qe.hash=ye.substr(ze),ye=ye.substr(0,ze));var qe=ye.indexOf("?");qe>=0&&(Qe.search=ye.substr(qe),ye=ye.substr(0,qe)),ye&&(Qe.pathname=ye)}return Qe}var re=u(96014);/** * React Router DOM v5 Compat v6.26.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Se(){return Se=Object.assign?Object.assign.bind():function(ye){for(var Qe=1;Qe<arguments.length;Qe++){var ze=arguments[Qe];for(var qe in ze)Object.prototype.hasOwnProperty.call(ze,qe)&&(ye[qe]=ze[qe])}return ye},Se.apply(this,arguments)}function z(ye,Qe){if(ye==null)return{};var ze={},qe=Object.keys(ye),Pt,zt;for(zt=0;zt<qe.length;zt++)Pt=qe[zt],!(Qe.indexOf(Pt)>=0)&&(ze[Pt]=ye[Pt]);return ze}const Q="get",ce="application/x-www-form-urlencoded";function se(ye){return ye!=null&&typeof ye.tagName=="string"}function q(ye){return se(ye)&&ye.tagName.toLowerCase()==="button"}function te(ye){return se(ye)&&ye.tagName.toLowerCase()==="form"}function A(ye){return se(ye)&&ye.tagName.toLowerCase()==="input"}function T(ye){return!!(ye.metaKey||ye.altKey||ye.ctrlKey||ye.shiftKey)}function B(ye,Qe){return ye.button===0&&(!Qe||Qe==="_self")&&!T(ye)}function X(ye){return ye===void 0&&(ye=""),new URLSearchParams(typeof ye=="string"||Array.isArray(ye)||ye instanceof URLSearchParams?ye:Object.keys(ye).reduce((Qe,ze)=>{let qe=ye[ze];return Qe.concat(Array.isArray(qe)?qe.map(Pt=>[ze,Pt]):[[ze,qe]])},[]))}function ue(ye,Qe){let ze=X(ye);return Qe&&Qe.forEach((qe,Pt)=>{ze.has(Pt)||Qe.getAll(Pt).forEach(zt=>{ze.append(Pt,zt)})}),ze}let ie=null;function Te(){if(ie===null)try{new FormData(document.createElement("form"),0),ie=!1}catch{ie=!0}return ie}const je=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yt(ye){return ye!=null&&!je.has(ye)?null:ye}function tt(ye,Qe){let ze,qe,Pt,zt,un;if(te(ye)){let hn=ye.getAttribute("action");qe=hn?(0,p.pb)(hn,Qe):null,ze=ye.getAttribute("method")||Q,Pt=yt(ye.getAttribute("enctype"))||ce,zt=new FormData(ye)}else if(q(ye)||A(ye)&&(ye.type==="submit"||ye.type==="image")){let hn=ye.form;if(hn==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let xt=ye.getAttribute("formaction")||hn.getAttribute("action");if(qe=xt?(0,p.pb)(xt,Qe):null,ze=ye.getAttribute("formmethod")||hn.getAttribute("method")||Q,Pt=yt(ye.getAttribute("formenctype"))||yt(hn.getAttribute("enctype"))||ce,zt=new FormData(hn,ye),!Te()){let{name:_t,type:qt,value:fn}=ye;if(qt==="image"){let On=_t?_t+".":"";zt.append(On+"x","0"),zt.append(On+"y","0")}else _t&&zt.append(_t,fn)}}else{if(se(ye))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');ze=Q,qe=null,Pt=ce,un=ye}return zt&&Pt==="text/plain"&&(un=zt,zt=void 0),{action:qe,method:ze.toLowerCase(),encType:Pt,formData:zt,body:un}}const Ze=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ne=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],it=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],Rt="6";try{window.__reactRouterVersion=Rt}catch{}function Dn(ye,Qe){return(0,p.aE)({basename:Qe?.basename,future:Se({},Qe?.future,{v7_prependBasename:!0}),history:(0,p.zR)({window:Qe?.window}),hydrationData:Qe?.hydrationData||Wt(),routes:ye,mapRouteProperties:f.wE,unstable_dataStrategy:Qe?.unstable_dataStrategy,unstable_patchRoutesOnNavigation:Qe?.unstable_patchRoutesOnNavigation,window:Qe?.window}).initialize()}function Mt(ye,Qe){return(0,p.aE)({basename:Qe?.basename,future:Se({},Qe?.future,{v7_prependBasename:!0}),history:(0,p.TM)({window:Qe?.window}),hydrationData:Qe?.hydrationData||Wt(),routes:ye,mapRouteProperties:f.wE,unstable_dataStrategy:Qe?.unstable_dataStrategy,unstable_patchRoutesOnNavigation:Qe?.unstable_patchRoutesOnNavigation,window:Qe?.window}).initialize()}function Wt(){var ye;let Qe=(ye=window)==null?void 0:ye.__staticRouterHydrationData;return Qe&&Qe.errors&&(Qe=Se({},Qe,{errors:Tn(Qe.errors)})),Qe}function Tn(ye){if(!ye)return null;let Qe=Object.entries(ye),ze={};for(let[qe,Pt]of Qe)if(Pt&&Pt.__type==="RouteErrorResponse")ze[qe]=new p.VV(Pt.status,Pt.statusText,Pt.data,Pt.internal===!0);else if(Pt&&Pt.__type==="Error"){if(Pt.__subType){let zt=window[Pt.__subType];if(typeof zt=="function")try{let un=new zt(Pt.message);un.stack="",ze[qe]=un}catch{}}if(ze[qe]==null){let zt=new Error(Pt.message);zt.stack="",ze[qe]=zt}}else ze[qe]=Pt;return ze}const bn=l.createContext({isTransitioning:!1}),$t=l.createContext(new Map),Z=g["startTransition"],ke=x["flushSync"],_e=g["useId"];function ge(ye){Z?Z(ye):ye()}function Me(ye){ke?ke(ye):ye()}class lt{constructor(){this.status="pending",this.promise=new Promise((Qe,ze)=>{this.resolve=qe=>{this.status==="pending"&&(this.status="resolved",Qe(qe))},this.reject=qe=>{this.status==="pending"&&(this.status="rejected",ze(qe))}})}}function Ft(ye){let{fallbackElement:Qe,router:ze,future:qe}=ye,[Pt,zt]=l.useState(ze.state),[un,hn]=l.useState(),[xt,_t]=l.useState({isTransitioning:!1}),[qt,fn]=l.useState(),[On,Gn]=l.useState(),[Bn,Lr]=l.useState(),An=l.useRef(new Map),{v7_startTransition:Un}=qe||{},cr=l.useCallback(Xr=>{Un?ge(Xr):Xr()},[Un]),mr=l.useCallback((Xr,ni)=>{let{deletedFetchers:ki,unstable_flushSync:zr,unstable_viewTransitionOpts:Ur}=ni;ki.forEach(sn=>An.current.delete(sn)),Xr.fetchers.forEach((sn,Rn)=>{sn.data!==void 0&&An.current.set(Rn,sn.data)});let jt=ze.window==null||ze.window.document==null||typeof ze.window.document.startViewTransition!="function";if(!Ur||jt){zr?Me(()=>zt(Xr)):cr(()=>zt(Xr));return}if(zr){Me(()=>{On&&(qt&&qt.resolve(),On.skipTransition()),_t({isTransitioning:!0,flushSync:!0,currentLocation:Ur.currentLocation,nextLocation:Ur.nextLocation})});let sn=ze.window.document.startViewTransition(()=>{Me(()=>zt(Xr))});sn.finished.finally(()=>{Me(()=>{fn(void 0),Gn(void 0),hn(void 0),_t({isTransitioning:!1})})}),Me(()=>Gn(sn));return}On?(qt&&qt.resolve(),On.skipTransition(),Lr({state:Xr,currentLocation:Ur.currentLocation,nextLocation:Ur.nextLocation})):(hn(Xr),_t({isTransitioning:!0,flushSync:!1,currentLocation:Ur.currentLocation,nextLocation:Ur.nextLocation}))},[ze.window,On,qt,An,cr]);l.useLayoutEffect(()=>ze.subscribe(mr),[ze,mr]),l.useEffect(()=>{xt.isTransitioning&&!xt.flushSync&&fn(new lt)},[xt]),l.useEffect(()=>{if(qt&&un&&ze.window){let Xr=un,ni=qt.promise,ki=ze.window.document.startViewTransition(async()=>{cr(()=>zt(Xr)),await ni});ki.finished.finally(()=>{fn(void 0),Gn(void 0),hn(void 0),_t({isTransitioning:!1})}),Gn(ki)}},[cr,un,qt,ze.window]),l.useEffect(()=>{qt&&un&&Pt.location.key===un.location.key&&qt.resolve()},[qt,On,Pt.location,un]),l.useEffect(()=>{!xt.isTransitioning&&Bn&&(hn(Bn.state),_t({isTransitioning:!0,flushSync:!1,currentLocation:Bn.currentLocation,nextLocation:Bn.nextLocation}),Lr(void 0))},[xt.isTransitioning,Bn]),l.useEffect(()=>{},[]);let hr=l.useMemo(()=>({createHref:ze.createHref,encodeLocation:ze.encodeLocation,go:Xr=>ze.navigate(Xr),push:(Xr,ni,ki)=>ze.navigate(Xr,{state:ni,preventScrollReset:ki?.preventScrollReset}),replace:(Xr,ni,ki)=>ze.navigate(Xr,{replace:!0,state:ni,preventScrollReset:ki?.preventScrollReset})}),[ze]),ar=ze.basename||"/",Cr=l.useMemo(()=>({router:ze,navigator:hr,static:!1,basename:ar}),[ze,hr,ar]),Yr=l.useMemo(()=>({v7_relativeSplatPath:ze.future.v7_relativeSplatPath}),[ze.future.v7_relativeSplatPath]);return l.createElement(l.Fragment,null,l.createElement(f.sp.Provider,{value:Cr},l.createElement(f.Rq.Provider,{value:Pt},l.createElement($t.Provider,{value:An.current},l.createElement(bn.Provider,{value:xt},l.createElement(f.Ix,{basename:ar,location:Pt.location,navigationType:Pt.historyAction,navigator:hr,future:Yr},Pt.initialized||ze.future.v7_partialHydration?l.createElement(Et,{routes:ze.routes,future:ze.future,state:Pt}):Qe))))),null)}const Et=l.memo(Zt);function Zt(ye){let{routes:Qe,future:ze,state:qe}=ye;return(0,f.ph)(Qe,void 0,qe,ze)}function nn(ye){let{basename:Qe,children:ze,future:qe,window:Pt}=ye,zt=l.useRef();zt.current==null&&(zt.current=(0,p.zR)({window:Pt,v5Compat:!0}));let un=zt.current,[hn,xt]=l.useState({action:un.action,location:un.location}),{v7_startTransition:_t}=qe||{},qt=l.useCallback(fn=>{_t&&Z?Z(()=>xt(fn)):xt(fn)},[xt,_t]);return l.useLayoutEffect(()=>un.listen(qt),[un,qt]),l.createElement(f.Ix,{basename:Qe,children:ze,location:hn.location,navigationType:hn.action,navigator:un,future:qe})}function Pn(ye){let{basename:Qe,children:ze,future:qe,window:Pt}=ye,zt=l.useRef();zt.current==null&&(zt.current=(0,p.TM)({window:Pt,v5Compat:!0}));let un=zt.current,[hn,xt]=l.useState({action:un.action,location:un.location}),{v7_startTransition:_t}=qe||{},qt=l.useCallback(fn=>{_t&&Z?Z(()=>xt(fn)):xt(fn)},[xt,_t]);return l.useLayoutEffect(()=>un.listen(qt),[un,qt]),l.createElement(f.Ix,{basename:Qe,children:ze,location:hn.location,navigationType:hn.action,navigator:un,future:qe})}function rn(ye){let{basename:Qe,children:ze,future:qe,history:Pt}=ye,[zt,un]=l.useState({action:Pt.action,location:Pt.location}),{v7_startTransition:hn}=qe||{},xt=l.useCallback(_t=>{hn&&Z?Z(()=>un(_t)):un(_t)},[un,hn]);return l.useLayoutEffect(()=>Pt.listen(xt),[Pt,xt]),l.createElement(f.Ix,{basename:Qe,children:ze,location:zt.location,navigationType:zt.action,navigator:Pt,future:qe})}const Vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ur=l.forwardRef(function(Qe,ze){let{onClick:qe,relative:Pt,reloadDocument:zt,replace:un,state:hn,target:xt,to:_t,preventScrollReset:qt,unstable_viewTransition:fn}=Qe,On=z(Qe,Ze),{basename:Gn}=l.useContext(f.jb),Bn,Lr=!1;if(typeof _t=="string"&&Kn.test(_t)&&(Bn=_t,Vt))try{let mr=new URL(window.location.href),hr=_t.startsWith("//")?new URL(mr.protocol+_t):new URL(_t),ar=(0,p.pb)(hr.pathname,Gn);hr.origin===mr.origin&&ar!=null?_t=ar+hr.search+hr.hash:Lr=!0}catch{}let An=(0,f.$P)(_t,{relative:Pt}),Un=kn(_t,{replace:un,state:hn,target:xt,preventScrollReset:qt,relative:Pt,unstable_viewTransition:fn});function cr(mr){qe&&qe(mr),mr.defaultPrevented||Un(mr)}return l.createElement("a",Se({},On,{href:Bn||An,onClick:Lr||zt?qe:cr,ref:ze,target:xt}))}),on=l.forwardRef(function(Qe,ze){let{"aria-current":qe="page",caseSensitive:Pt=!1,className:zt="",end:un=!1,style:hn,to:xt,unstable_viewTransition:_t,children:qt}=Qe,fn=z(Qe,Ne),On=(0,f.x$)(xt,{relative:fn.relative}),Gn=(0,f.zy)(),Bn=l.useContext(f.Rq),{navigator:Lr,basename:An}=l.useContext(f.jb),Un=Bn!=null&&De(On)&&_t===!0,cr=Lr.encodeLocation?Lr.encodeLocation(On).pathname:On.pathname,mr=Gn.pathname,hr=Bn&&Bn.navigation&&Bn.navigation.location?Bn.navigation.location.pathname:null;Pt||(mr=mr.toLowerCase(),hr=hr?hr.toLowerCase():null,cr=cr.toLowerCase()),hr&&An&&(hr=(0,p.pb)(hr,An)||hr);const ar=cr!=="/"&&cr.endsWith("/")?cr.length-1:cr.length;let Cr=mr===cr||!un&&mr.startsWith(cr)&&mr.charAt(ar)==="/",Yr=hr!=null&&(hr===cr||!un&&hr.startsWith(cr)&&hr.charAt(cr.length)==="/"),Xr={isActive:Cr,isPending:Yr,isTransitioning:Un},ni=Cr?qe:void 0,ki;typeof zt=="function"?ki=zt(Xr):ki=[zt,Cr?"active":null,Yr?"pending":null,Un?"transitioning":null].filter(Boolean).join(" ");let zr=typeof hn=="function"?hn(Xr):hn;return l.createElement(ur,Se({},fn,{"aria-current":ni,className:ki,ref:ze,style:zr,to:xt,unstable_viewTransition:_t}),typeof qt=="function"?qt(Xr):qt)}),tr=l.forwardRef((ye,Qe)=>{let{fetcherKey:ze,navigate:qe,reloadDocument:Pt,replace:zt,state:un,method:hn=Q,action:xt,onSubmit:_t,relative:qt,preventScrollReset:fn,unstable_viewTransition:On}=ye,Gn=z(ye,it),Bn=ne(),Lr=fe(xt,{relative:qt}),An=hn.toLowerCase()==="get"?"get":"post",Un=cr=>{if(_t&&_t(cr),cr.defaultPrevented)return;cr.preventDefault();let mr=cr.nativeEvent.submitter,hr=mr?.getAttribute("formmethod")||hn;Bn(mr||cr.currentTarget,{fetcherKey:ze,method:hr,navigate:qe,replace:zt,state:un,relative:qt,preventScrollReset:fn,unstable_viewTransition:On})};return l.createElement("form",Se({ref:Qe,method:An,action:Lr,onSubmit:Pt?_t:Un},Gn))});function Cn(ye){let{getKey:Qe,storageKey:ze}=ye;return ln({getKey:Qe,storageKey:ze}),null}var Wn;(function(ye){ye.UseScrollRestoration="useScrollRestoration",ye.UseSubmit="useSubmit",ye.UseSubmitFetcher="useSubmitFetcher",ye.UseFetcher="useFetcher",ye.useViewTransitionState="useViewTransitionState"})(Wn||(Wn={}));var er;(function(ye){ye.UseFetcher="useFetcher",ye.UseFetchers="useFetchers",ye.UseScrollRestoration="useScrollRestoration"})(er||(er={}));function Fn(ye){return ye+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function en(ye){let Qe=l.useContext(f.sp);return Qe||(0,p.Oi)(!1),Qe}function gn(ye){let Qe=l.useContext(f.Rq);return Qe||(0,p.Oi)(!1),Qe}function kn(ye,Qe){let{target:ze,replace:qe,state:Pt,preventScrollReset:zt,relative:un,unstable_viewTransition:hn}=Qe===void 0?{}:Qe,xt=(0,f.Zp)(),_t=(0,f.zy)(),qt=(0,f.x$)(ye,{relative:un});return l.useCallback(fn=>{if(B(fn,ze)){fn.preventDefault();let On=qe!==void 0?qe:(0,p.AO)(_t)===(0,p.AO)(qt);xt(ye,{replace:On,state:Pt,preventScrollReset:zt,relative:un,unstable_viewTransition:hn})}},[_t,xt,qt,qe,Pt,ze,ye,zt,un,hn])}function Jn(ye){let Qe=l.useRef(X(ye)),ze=l.useRef(!1),qe=(0,f.zy)(),Pt=l.useMemo(()=>ue(qe.search,ze.current?null:Qe.current),[qe.search]),zt=(0,f.Zp)(),un=l.useCallback((hn,xt)=>{const _t=X(typeof hn=="function"?hn(Pt):hn);ze.current=!0,zt("?"+_t,xt)},[zt,Pt]);return[Pt,un]}function Nn(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let kr=0,bt=()=>"__"+String(++kr)+"__";function ne(){let{router:ye}=en(Wn.UseSubmit),{basename:Qe}=l.useContext(f.jb),ze=(0,f.$3)();return l.useCallback(function(qe,Pt){Pt===void 0&&(Pt={}),Nn();let{action:zt,method:un,encType:hn,formData:xt,body:_t}=tt(qe,Qe);if(Pt.navigate===!1){let qt=Pt.fetcherKey||bt();ye.fetch(qt,ze,Pt.action||zt,{preventScrollReset:Pt.preventScrollReset,formData:xt,body:_t,formMethod:Pt.method||un,formEncType:Pt.encType||hn,unstable_flushSync:Pt.unstable_flushSync})}else ye.navigate(Pt.action||zt,{preventScrollReset:Pt.preventScrollReset,formData:xt,body:_t,formMethod:Pt.method||un,formEncType:Pt.encType||hn,replace:Pt.replace,state:Pt.state,fromRouteId:ze,unstable_flushSync:Pt.unstable_flushSync,unstable_viewTransition:Pt.unstable_viewTransition})},[ye,Qe,ze])}function fe(ye,Qe){let{relative:ze}=Qe===void 0?{}:Qe,{basename:qe}=l.useContext(f.jb),Pt=l.useContext(f.UX);Pt||(0,p.Oi)(!1);let[zt]=Pt.matches.slice(-1),un=Se({},(0,f.x$)(ye||".",{relative:ze})),hn=(0,f.zy)();if(ye==null){un.search=hn.search;let xt=new URLSearchParams(un.search);xt.has("index")&&xt.get("index")===""&&(xt.delete("index"),un.search=xt.toString()?"?"+xt.toString():"")}return(!ye||ye===".")&&zt.route.index&&(un.search=un.search?un.search.replace(/^\?/,"?index&"):"?index"),qe!=="/"&&(un.pathname=un.pathname==="/"?qe:(0,p.HS)([qe,un.pathname])),(0,p.AO)(un)}function K(ye){var Qe;let{key:ze}=ye===void 0?{}:ye,{router:qe}=en(Wn.UseFetcher),Pt=gn(er.UseFetcher),zt=l.useContext($t),un=l.useContext(f.UX),hn=(Qe=un.matches[un.matches.length-1])==null?void 0:Qe.route.id;zt||(0,p.Oi)(!1),un||(0,p.Oi)(!1),hn==null&&(0,p.Oi)(!1);let xt=_e?_e():"",[_t,qt]=l.useState(ze||xt);ze&&ze!==_t?qt(ze):_t||qt(bt()),l.useEffect(()=>(qe.getFetcher(_t),()=>{qe.deleteFetcher(_t)}),[qe,_t]);let fn=l.useCallback((cr,mr)=>{hn||(0,p.Oi)(!1),qe.fetch(_t,hn,cr,mr)},[_t,hn,qe]),On=ne(),Gn=l.useCallback((cr,mr)=>{On(cr,Se({},mr,{navigate:!1,fetcherKey:_t}))},[_t,On]),Bn=l.useMemo(()=>l.forwardRef((mr,hr)=>l.createElement(tr,Se({},mr,{navigate:!1,fetcherKey:_t,ref:hr}))),[_t]),Lr=Pt.fetchers.get(_t)||p.HW,An=zt.get(_t);return l.useMemo(()=>Se({Form:Bn,submit:Gn,load:fn},Lr,{data:An}),[Bn,Gn,fn,Lr,An])}function he(){let ye=gn(er.UseFetchers);return Array.from(ye.fetchers.entries()).map(Qe=>{let[ze,qe]=Qe;return Se({},qe,{key:ze})})}const Fe="react-router-scroll-positions";let Nt={};function ln(ye){let{getKey:Qe,storageKey:ze}=ye===void 0?{}:ye,{router:qe}=en(Wn.UseScrollRestoration),{restoreScrollPosition:Pt,preventScrollReset:zt}=gn(er.UseScrollRestoration),{basename:un}=l.useContext(f.jb),hn=(0,f.zy)(),xt=(0,f.FE)(),_t=(0,f.cq)();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Yn(l.useCallback(()=>{if(_t.state==="idle"){let qt=(Qe?Qe(hn,xt):null)||hn.key;Nt[qt]=window.scrollY}try{sessionStorage.setItem(ze||Fe,JSON.stringify(Nt))}catch{}window.history.scrollRestoration="auto"},[ze,Qe,_t.state,hn,xt])),typeof document<"u"&&(l.useLayoutEffect(()=>{try{let qt=sessionStorage.getItem(ze||Fe);qt&&(Nt=JSON.parse(qt))}catch{}},[ze]),l.useLayoutEffect(()=>{let qt=Qe&&un!=="/"?(On,Gn)=>Qe(Se({},On,{pathname:(0,p.pb)(On.pathname,un)||On.pathname}),Gn):Qe,fn=qe?.enableScrollRestoration(Nt,()=>window.scrollY,qt);return()=>fn&&fn()},[qe,un,Qe]),l.useLayoutEffect(()=>{if(Pt!==!1){if(typeof Pt=="number"){window.scrollTo(0,Pt);return}if(hn.hash){let qt=document.getElementById(decodeURIComponent(hn.hash.slice(1)));if(qt){qt.scrollIntoView();return}}zt!==!0&&window.scrollTo(0,0)}},[hn,Pt,zt]))}function pn(ye,Qe){let{capture:ze}=Qe||{};l.useEffect(()=>{let qe=ze!=null?{capture:ze}:void 0;return window.addEventListener("beforeunload",ye,qe),()=>{window.removeEventListener("beforeunload",ye,qe)}},[ye,ze])}function Yn(ye,Qe){let{capture:ze}=Qe||{};l.useEffect(()=>{let qe=ze!=null?{capture:ze}:void 0;return window.addEventListener("pagehide",ye,qe),()=>{window.removeEventListener("pagehide",ye,qe)}},[ye,ze])}function ht(ye){let{when:Qe,message:ze}=ye,qe=(0,f.KP)(Qe);l.useEffect(()=>{qe.state==="blocked"&&(window.confirm(ze)?setTimeout(qe.proceed,0):qe.reset())},[qe,ze]),l.useEffect(()=>{qe.state==="blocked"&&!Qe&&qe.reset()},[qe,Qe])}function De(ye,Qe){Qe===void 0&&(Qe={});let ze=l.useContext(bn);ze==null&&(0,p.Oi)(!1);let{basename:qe}=en(Wn.useViewTransitionState),Pt=(0,f.x$)(ye,{relative:Qe.relative});if(!ze.isTransitioning)return!1;let zt=(0,p.pb)(ze.currentLocation.pathname,qe)||ze.currentLocation.pathname,un=(0,p.pb)(ze.nextLocation.pathname,qe)||ze.nextLocation.pathname;return(0,p.B6)(Pt.pathname,un)!=null||(0,p.B6)(Pt.pathname,zt)!=null}function we(ye){let{location:Qe,path:ze}=ye;return ye.exact||(ze+="/*"),l.createElement(f.BV,{location:Qe},l.createElement(f.qh,{path:ze,element:l.createElement(re.qh,Se({},ye))}))}const be=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:()=>{};function pt(ye){let{children:Qe}=ye,ze=(0,re.W6)(),[qe,Pt]=l.useState(()=>({location:ze.location,action:ze.action}));return be(()=>{ze.listen((zt,un)=>Pt({location:zt,action:un}))},[ze]),l.createElement(f.Ix,{navigationType:qe.action,location:qe.location,navigator:ze},l.createElement(f.BV,null,l.createElement(f.qh,{path:"*",element:Qe})))}const We=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Je(ye){let{basename:Qe,children:ze,location:qe="/"}=ye;typeof qe=="string"&&(qe=ee(qe));let Pt=h.Pop,zt={pathname:qe.pathname||"/",search:qe.search||"",hash:qe.hash||"",state:qe.state!=null?qe.state:null,key:qe.key||"default"},un={createHref(hn){return typeof hn=="string"?hn:$(hn)},encodeLocation(hn){let xt=typeof hn=="string"?hn:$(hn);xt=xt.replace(/ $/,"%20");let _t=We.test(xt)?new URL(xt):new URL(xt,"http://localhost");return{pathname:_t.pathname,search:_t.search,hash:_t.hash}},push(hn){throw new Error("You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+JSON.stringify(hn)+")` somewhere in your app."))},replace(hn){throw new Error("You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+JSON.stringify(hn)+", { replace: true })` somewhere ")+"in your app.")},go(hn){throw new Error("You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a "+("`navigate("+hn+")` somewhere in your app."))},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}};return l.createElement(f.Ix,{basename:Qe,children:ze,location:zt,navigationType:Pt,navigator:un,static:!0})}},35565:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scan=void 0;var l=u(65212),g=u(78531);function y(x,f){return l.operate(g.scanInternals(x,f,arguments.length>=2,!0))}w.scan=y},35726:function(Ge,w,u){"use strict";var l=this&&this.__read||function(x,f){var p=typeof Symbol=="function"&&x[Symbol.iterator];if(!p)return x;var h=p.call(x),E,v=[],m;try{for(;(f===void 0||f-- >0)&&!(E=h.next()).done;)v.push(E.value)}catch(S){m={error:S}}finally{try{E&&!E.done&&(p=h.return)&&p.call(h)}finally{if(m)throw m.error}}return v},g=this&&this.__spreadArray||function(x,f){for(var p=0,h=f.length,E=x.length;p<h;p++,E++)x[E]=f[p];return x};Object.defineProperty(w,"__esModule",{value:!0}),w.animationFrameProvider=void 0;var y=u(69879);w.animationFrameProvider={schedule:function(x){var f=requestAnimationFrame,p=cancelAnimationFrame,h=w.animationFrameProvider.delegate;h&&(f=h.requestAnimationFrame,p=h.cancelAnimationFrame);var E=f(function(v){p=void 0,x(v)});return new y.Subscription(function(){return p?.(E)})},requestAnimationFrame:function(){for(var x=[],f=0;f<arguments.length;f++)x[f]=arguments[f];var p=w.animationFrameProvider.delegate;return(p?.requestAnimationFrame||requestAnimationFrame).apply(void 0,g([],l(x)))},cancelAnimationFrame:function(){for(var x=[],f=0;f<arguments.length;f++)x[f]=arguments[f];var p=w.animationFrameProvider.delegate;return(p?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,g([],l(x)))},delegate:void 0}},35822:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{defaultRangeExtractor:()=>L,useVirtual:()=>j});var l=u(96540);function g(){return g=Object.assign||function($){for(var ee=1;ee<arguments.length;ee++){var re=arguments[ee];for(var Se in re)Object.prototype.hasOwnProperty.call(re,Se)&&($[Se]=re[Se])}return $},g.apply(this,arguments)}function y($,ee){if($==null)return{};var re={},Se=Object.keys($),z,Q;for(Q=0;Q<Se.length;Q++)z=Se[Q],!(ee.indexOf(z)>=0)&&(re[z]=$[z]);return re}var x=["bottom","height","left","right","top","width"],f=function(ee,re){return ee===void 0&&(ee={}),re===void 0&&(re={}),x.some(function(Se){return ee[Se]!==re[Se]})},p=new Map,h,E=function $(){var ee=[];p.forEach(function(re,Se){var z=Se.getBoundingClientRect();f(z,re.rect)&&(re.rect=z,ee.push(re))}),ee.forEach(function(re){re.callbacks.forEach(function(Se){return Se(re.rect)})}),h=window.requestAnimationFrame($)};function v($,ee){return{observe:function(){var Se=p.size===0;p.has($)?p.get($).callbacks.push(ee):p.set($,{rect:void 0,hasRectChanged:!1,callbacks:[ee]}),Se&&E()},unobserve:function(){var Se=p.get($);if(Se){var z=Se.callbacks.indexOf(ee);z>=0&&Se.callbacks.splice(z,1),Se.callbacks.length||p.delete($),p.size||cancelAnimationFrame(h)}}}}var m=typeof window<"u"?l.useLayoutEffect:l.useEffect;function S($,ee){ee===void 0&&(ee={width:0,height:0});var re=l.useState($.current),Se=re[0],z=re[1],Q=l.useReducer(d,ee),ce=Q[0],se=Q[1],q=l.useRef(!1);return m(function(){$.current!==Se&&z($.current)}),m(function(){if(Se&&!q.current){q.current=!0;var te=Se.getBoundingClientRect();se({rect:te})}},[Se]),l.useEffect(function(){if(Se){var te=v(Se,function(A){se({rect:A})});return te.observe(),function(){te.unobserve()}}},[Se]),ce}function d($,ee){var re=ee.rect;return $.height!==re.height||$.width!==re.width?re:$}var O=function(){return 50},R=function(ee){return ee},C=function(ee,re){var Se=re?"offsetWidth":"offsetHeight";return ee[Se]},L=function(ee){for(var re=Math.max(ee.start-ee.overscan,0),Se=Math.min(ee.end+ee.overscan,ee.size-1),z=[],Q=re;Q<=Se;Q++)z.push(Q);return z};function j($){var ee,re=$.size,Se=re===void 0?0:re,z=$.estimateSize,Q=z===void 0?O:z,ce=$.overscan,se=ce===void 0?1:ce,q=$.paddingStart,te=q===void 0?0:q,A=$.paddingEnd,T=A===void 0?0:A,B=$.parentRef,X=$.horizontal,ue=$.scrollToFn,ie=$.useObserver,Te=$.initialRect,je=$.onScrollElement,yt=$.scrollOffsetFn,tt=$.keyExtractor,Ze=tt===void 0?R:tt,Ne=$.measureSize,it=Ne===void 0?C:Ne,Rt=$.rangeExtractor,Dn=Rt===void 0?L:Rt,Mt=X?"width":"height",Wt=X?"scrollLeft":"scrollTop",Tn=l.useRef({scrollOffset:0,measurements:[]}),bn=l.useState(0),$t=bn[0],Ct=bn[1];Tn.current.scrollOffset=$t;var Z=ie||S,me=Z(B,Te),ke=me[Mt];Tn.current.outerSize=ke;var Ee=l.useCallback(function(gn){B.current&&(B.current[Wt]=gn)},[B,Wt]),_e=ue||Ee;ue=l.useCallback(function(gn){_e(gn,Ee)},[Ee,_e]);var ge=l.useState({}),Me=ge[0],lt=ge[1],Ft=l.useCallback(function(){return lt({})},[]),Et=l.useRef([]),Zt=l.useMemo(function(){var gn=Et.current.length>0?Math.min.apply(Math,Et.current):0;Et.current=[];for(var kn=Tn.current.measurements.slice(0,gn),Jn=gn;Jn<Se;Jn++){var Nn=Ze(Jn),kr=Me[Nn],bt=kn[Jn-1]?kn[Jn-1].end:te,ne=typeof kr=="number"?kr:Q(Jn),fe=bt+ne;kn[Jn]={index:Jn,start:bt,size:ne,end:fe,key:Nn}}return kn},[Q,Me,te,Se,Ze]),nn=(((ee=Zt[Se-1])==null?void 0:ee.end)||te)+T;Tn.current.measurements=Zt,Tn.current.totalSize=nn;var Pn=je?je.current:B.current,rn=l.useRef(yt);rn.current=yt,m(function(){if(!Pn){Ct(0);return}var gn=function(Jn){var Nn=rn.current?rn.current(Jn):Pn[Wt];Ct(Nn)};return gn(),Pn.addEventListener("scroll",gn,{capture:!1,passive:!0}),function(){Pn.removeEventListener("scroll",gn)}},[Pn,Wt]);var Vt=U(Tn.current),Kn=Vt.start,ur=Vt.end,on=l.useMemo(function(){return Dn({start:Kn,end:ur,overscan:se,size:Zt.length})},[Kn,ur,se,Zt.length,Dn]),tr=l.useRef(it);tr.current=it;var Cn=l.useMemo(function(){for(var gn=[],kn=function(bt,ne){var fe=on[bt],K=Zt[fe],he=g(g({},K),{},{measureRef:function(Nt){if(Nt){var ln=tr.current(Nt,X);if(ln!==he.size){var pn=Tn.current.scrollOffset;he.start<pn&&Ee(pn+(ln-he.size)),Et.current.push(fe),lt(function(Yn){var ht;return g(g({},Yn),{},(ht={},ht[he.key]=ln,ht))})}}}});gn.push(he)},Jn=0,Nn=on.length;Jn<Nn;Jn++)kn(Jn);return gn},[on,Ee,X,Zt]),Wn=l.useRef(!1);m(function(){Wn.current&<({}),Wn.current=!0},[Q]);var er=l.useCallback(function(gn,kn){var Jn=kn===void 0?{}:kn,Nn=Jn.align,kr=Nn===void 0?"start":Nn,bt=Tn.current,ne=bt.scrollOffset,fe=bt.outerSize;kr==="auto"&&(gn<=ne?kr="start":gn>=ne+fe?kr="end":kr="start"),kr==="start"?ue(gn):kr==="end"?ue(gn-fe):kr==="center"&&ue(gn-fe/2)},[ue]),Fn=l.useCallback(function(gn,kn){var Jn=kn===void 0?{}:kn,Nn=Jn.align,kr=Nn===void 0?"auto":Nn,bt=y(Jn,["align"]),ne=Tn.current,fe=ne.measurements,K=ne.scrollOffset,he=ne.outerSize,Fe=fe[Math.max(0,Math.min(gn,Se-1))];if(Fe){if(kr==="auto")if(Fe.end>=K+he)kr="end";else if(Fe.start<=K)kr="start";else return;var Nt=kr==="center"?Fe.start+Fe.size/2:kr==="end"?Fe.end:Fe.start;er(Nt,g({align:kr},bt))}},[er,Se]),en=l.useCallback(function(){for(var gn=arguments.length,kn=new Array(gn),Jn=0;Jn<gn;Jn++)kn[Jn]=arguments[Jn];Fn.apply(void 0,kn),requestAnimationFrame(function(){Fn.apply(void 0,kn)})},[Fn]);return{virtualItems:Cn,totalSize:nn,scrollToOffset:er,scrollToIndex:en,measure:Ft}}var I=function(ee,re,Se,z){for(;ee<=re;){var Q=(ee+re)/2|0,ce=Se(Q);if(ce<z)ee=Q+1;else if(ce>z)re=Q-1;else return Q}return ee>0?ee-1:0};function U($){for(var ee=$.measurements,re=$.outerSize,Se=$.scrollOffset,z=ee.length-1,Q=function(te){return ee[te].start},ce=I(0,z,Q,Se),se=ce;se<z&&ee[se].end<Se+re;)se++;return{start:ce,end:se}}},35880:(Ge,w,u)=>{var l=u(30514),g=u(95950);function y(x){return x==null?[]:l(x,g(x))}Ge.exports=y},35884:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.defer=void 0;var l=u(48051),g=u(19724);function y(x){return new l.Observable(function(f){g.innerFrom(x()).subscribe(f)})}w.defer=y},35904:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.using=void 0;var l=u(48051),g=u(19724),y=u(44885);function x(f,p){return new l.Observable(function(h){var E=f(),v=p(E),m=v?g.innerFrom(v):y.EMPTY;return m.subscribe(h),function(){E&&E.unsubscribe()}})}w.using=x},36453:Ge=>{function w(u){"@babel/helpers - typeof";return Ge.exports=w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w(u)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},36571:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateOptions=u;function u(l,g){if(typeof l=="function")g.callback=l;else if(l)for(var y in l)l.hasOwnProperty(y)&&(g[y]=l[y]);return g}},36613:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>gi});const l=!0,g="u-",y="uplot",x=g+"hz",f=g+"vt",p=g+"title",h=g+"wrap",E=g+"under",v=g+"over",m=g+"axis",S=g+"off",d=g+"select",O=g+"cursor-x",R=g+"cursor-y",C=g+"cursor-pt",L=g+"legend",j=g+"live",I=g+"inline",U=g+"series",$=g+"marker",ee=g+"label",re=g+"value",Se="width",z="height",Q="top",ce="bottom",se="left",q="right",te="#000",A=te+"0",T="mousemove",B="mousedown",X="mouseup",ue="mouseenter",ie="mouseleave",Te="dblclick",je="resize",yt="scroll",tt="change",Ze="dppxchange",Ne="--",it=typeof window<"u",Rt=it?document:null,Dn=it?window:null,Mt=it?navigator:null;let Wt,Tn;function bn(){let wt=devicePixelRatio;Wt!=wt&&(Wt=wt,Tn&&Pn(tt,Tn,bn),Tn=matchMedia(`(min-resolution: ${Wt-.001}dppx) and (max-resolution: ${Wt+.001}dppx)`),nn(tt,Tn,bn),Dn.dispatchEvent(new CustomEvent(Ze)))}function $t(wt,cn){if(cn!=null){let rr=wt.classList;!rr.contains(cn)&&rr.add(cn)}}function Ct(wt,cn){let rr=wt.classList;rr.contains(cn)&&rr.remove(cn)}function Z(wt,cn,rr){wt.style[cn]=rr+"px"}function me(wt,cn,rr,$n){let Sr=Rt.createElement(wt);return cn!=null&&$t(Sr,cn),rr?.insertBefore(Sr,$n),Sr}function ke(wt,cn){return me("div",wt,cn)}const Ee=new WeakMap;function _e(wt,cn,rr,$n,Sr){let fi="translate("+cn+"px,"+rr+"px)",Ci=Ee.get(wt);fi!=Ci&&(wt.style.transform=fi,Ee.set(wt,fi),cn<0||rr<0||cn>$n||rr>Sr?$t(wt,S):Ct(wt,S))}const ge=new WeakMap;function Me(wt,cn,rr){let $n=cn+rr,Sr=ge.get(wt);$n!=Sr&&(ge.set(wt,$n),wt.style.background=cn,wt.style.borderColor=rr)}const lt=new WeakMap;function Ft(wt,cn,rr,$n){let Sr=cn+""+rr,fi=lt.get(wt);Sr!=fi&&(lt.set(wt,Sr),wt.style.height=rr+"px",wt.style.width=cn+"px",wt.style.marginLeft=$n?-cn/2+"px":0,wt.style.marginTop=$n?-rr/2+"px":0)}const Et={passive:!0},Zt={...Et,capture:!0};function nn(wt,cn,rr,$n){cn.addEventListener(wt,rr,$n?Zt:Et)}function Pn(wt,cn,rr,$n){cn.removeEventListener(wt,rr,Et)}it&&bn();function rn(wt,cn,rr,$n){let Sr;rr=rr||0,$n=$n||cn.length-1;let fi=$n<=2147483647;for(;$n-rr>1;)Sr=fi?rr+$n>>1:Nt((rr+$n)/2),cn[Sr]<wt?rr=Sr:$n=Sr;return wt-cn[rr]<=cn[$n]-wt?rr:$n}function Vt(wt){return(rr,$n,Sr)=>{let fi=-1,Ci=-1;for(let la=$n;la<=Sr;la++)if(wt(rr[la])){fi=la;break}for(let la=Sr;la>=$n;la--)if(wt(rr[la])){Ci=la;break}return[fi,Ci]}}const Kn=wt=>wt!=null,ur=wt=>wt!=null&&wt>0,on=Vt(Kn),tr=Vt(ur);function Cn(wt,cn,rr,$n=0,Sr=!1){let fi=Sr?tr:on,Ci=Sr?ur:Kn;[cn,rr]=fi(wt,cn,rr);let la=wt[cn],ya=wt[cn];if(cn>-1)if($n==1)la=wt[cn],ya=wt[rr];else if($n==-1)la=wt[rr],ya=wt[cn];else for(let _a=cn;_a<=rr;_a++){let Ga=wt[_a];Ci(Ga)&&(Ga<la?la=Ga:Ga>ya&&(ya=Ga))}return[la??Je,ya??-Je]}function Wn(wt,cn,rr,$n){let Sr=we(wt),fi=we(cn);wt==cn&&(Sr==-1?(wt*=rr,cn/=rr):(wt/=rr,cn*=rr));let Ci=rr==10?Ke:be,la=Sr==1?Nt:pn,ya=fi==1?pn:Nt,_a=la(Ci(Fe(wt))),Ga=ya(Ci(Fe(cn))),Pa=De(rr,_a),ja=De(rr,Ga);return rr==10&&(_a<0&&(Pa=Lr(Pa,-_a)),Ga<0&&(ja=Lr(ja,-Ga))),$n||rr==2?(wt=Pa*Sr,cn=ja*fi):(wt=Bn(wt,Pa),cn=Gn(cn,ja)),[wt,cn]}function er(wt,cn,rr,$n){let Sr=Wn(wt,cn,rr,$n);return wt==0&&(Sr[0]=0),cn==0&&(Sr[1]=0),Sr}const Fn=.1,en={mode:3,pad:Fn},gn={pad:0,soft:null,mode:0},kn={min:gn,max:gn};function Jn(wt,cn,rr,$n){return ki(rr)?bt(wt,cn,rr):(gn.pad=rr,gn.soft=$n?0:null,gn.mode=$n?3:0,bt(wt,cn,kn))}function Nn(wt,cn){return wt??cn}function kr(wt,cn,rr){for(cn=Nn(cn,0),rr=Nn(rr,wt.length-1);cn<=rr;){if(wt[cn]!=null)return!0;cn++}return!1}function bt(wt,cn,rr){let $n=rr.min,Sr=rr.max,fi=Nn($n.pad,0),Ci=Nn(Sr.pad,0),la=Nn($n.hard,-Je),ya=Nn(Sr.hard,Je),_a=Nn($n.soft,Je),Ga=Nn(Sr.soft,-Je),Pa=Nn($n.mode,0),ja=Nn(Sr.mode,0),Oo=cn-wt,Do=Ke(Oo),fo=ht(Fe(wt),Fe(cn)),Zo=Ke(fo),bs=Fe(Zo-Do);(Oo<1e-24||bs>10)&&(Oo=0,(wt==0||cn==0)&&(Oo=1e-24,Pa==2&&_a!=Je&&(fi=0),ja==2&&Ga!=-Je&&(Ci=0)));let io=Oo||fo||1e3,fs=Ke(io),yo=De(10,Nt(fs)),lo=io*(Oo==0?wt==0?.1:1:fi),Ha=Lr(Bn(wt-lo,yo/10),24),zo=wt>=_a&&(Pa==1||Pa==3&&Ha<=_a||Pa==2&&Ha>=_a)?_a:Je,vs=ht(la,Ha<zo&&wt>=zo?zo:Yn(zo,Ha)),Fs=io*(Oo==0?cn==0?.1:1:Ci),Ms=Lr(Gn(cn+Fs,yo/10),24),to=cn<=Ga&&(ja==1||ja==3&&Ms>=Ga||ja==2&&Ms<=Ga)?Ga:-Je,Ho=Yn(ya,Ms>to&&cn<=to?to:ht(to,Ms));return vs==Ho&&vs==0&&(Ho=100),[vs,Ho]}const ne=new Intl.NumberFormat(it?Mt.language:"en-US"),fe=wt=>ne.format(wt),K=Math,he=K.PI,Fe=K.abs,Nt=K.floor,ln=K.round,pn=K.ceil,Yn=K.min,ht=K.max,De=K.pow,we=K.sign,Ke=K.log10,be=K.log2,pt=(wt,cn=1)=>K.sinh(wt)*cn,We=(wt,cn=1)=>K.asinh(wt/cn),Je=1/0;function ye(wt){return(Ke((wt^wt>>31)-(wt>>31))|0)+1}function Qe(wt,cn,rr){return Yn(ht(wt,cn),rr)}function ze(wt){return typeof wt=="function"}function qe(wt){return ze(wt)?wt:()=>wt}const Pt=()=>{},zt=wt=>wt,un=(wt,cn)=>cn,hn=wt=>null,xt=wt=>!0,_t=(wt,cn)=>wt==cn,qt=/\.\d*?(?=9{6,}|0{6,})/gm,fn=wt=>{if(Yr(wt)||An.has(wt))return wt;const cn=`${wt}`,rr=cn.match(qt);if(rr==null)return wt;let $n=rr[0].length-1;if(cn.indexOf("e-")!=-1){let[Sr,fi]=cn.split("e");return+`${fn(Sr)}e${fi}`}return Lr(wt,$n)};function On(wt,cn){return fn(Lr(fn(wt/cn))*cn)}function Gn(wt,cn){return fn(pn(fn(wt/cn))*cn)}function Bn(wt,cn){return fn(Nt(fn(wt/cn))*cn)}function Lr(wt,cn=0){if(Yr(wt))return wt;let rr=10**cn,$n=wt*rr*(1+Number.EPSILON);return ln($n)/rr}const An=new Map;function Un(wt){return((""+wt).split(".")[1]||"").length}function cr(wt,cn,rr,$n){let Sr=[],fi=$n.map(Un);for(let Ci=cn;Ci<rr;Ci++){let la=Fe(Ci),ya=Lr(De(wt,Ci),la);for(let _a=0;_a<$n.length;_a++){let Ga=wt==10?+`${$n[_a]}e${Ci}`:$n[_a]*ya,Pa=(Ci>=0?0:la)+(Ci>=fi[_a]?0:fi[_a]),ja=wt==10?Ga:Lr(Ga,Pa);Sr.push(ja),An.set(ja,Pa)}}return Sr}const mr={},hr=[],ar=[null,null],Cr=Array.isArray,Yr=Number.isInteger,Xr=wt=>wt===void 0;function ni(wt){return typeof wt=="string"}function ki(wt){let cn=!1;if(wt!=null){let rr=wt.constructor;cn=rr==null||rr==Object}return cn}function zr(wt){return wt!=null&&typeof wt=="object"}const Ur=Object.getPrototypeOf(Uint8Array),jt="__proto__";function sn(wt,cn=ki){let rr;if(Cr(wt)){let $n=wt.find(Sr=>Sr!=null);if(Cr($n)||cn($n)){rr=Array(wt.length);for(let Sr=0;Sr<wt.length;Sr++)rr[Sr]=sn(wt[Sr],cn)}else rr=wt.slice()}else if(wt instanceof Ur)rr=wt.slice();else if(cn(wt)){rr={};for(let $n in wt)$n!=jt&&(rr[$n]=sn(wt[$n],cn))}else rr=wt;return rr}function Rn(wt){let cn=arguments;for(let rr=1;rr<cn.length;rr++){let $n=cn[rr];for(let Sr in $n)Sr!=jt&&(ki(wt[Sr])?Rn(wt[Sr],sn($n[Sr])):wt[Sr]=sn($n[Sr]))}return wt}const H=0,Be=1,wn=2;function bi(wt,cn,rr){for(let $n=0,Sr,fi=-1;$n<cn.length;$n++){let Ci=cn[$n];if(Ci>fi){for(Sr=Ci-1;Sr>=0&&wt[Sr]==null;)wt[Sr--]=null;for(Sr=Ci+1;Sr<rr&&wt[Sr]==null;)wt[fi=Sr++]=null}}}function Oi(wt,cn){if(vt(wt)){let Ci=wt[0].slice();for(let la=1;la<wt.length;la++)Ci.push(...wt[la].slice(1));return Qt(Ci[0])||(Ci=Ve(Ci)),Ci}let rr=new Set;for(let Ci=0;Ci<wt.length;Ci++){let ya=wt[Ci][0],_a=ya.length;for(let Ga=0;Ga<_a;Ga++)rr.add(ya[Ga])}let $n=[Array.from(rr).sort((Ci,la)=>Ci-la)],Sr=$n[0].length,fi=new Map;for(let Ci=0;Ci<Sr;Ci++)fi.set($n[0][Ci],Ci);for(let Ci=0;Ci<wt.length;Ci++){let la=wt[Ci],ya=la[0];for(let _a=1;_a<la.length;_a++){let Ga=la[_a],Pa=Array(Sr).fill(void 0),ja=cn?cn[Ci][_a]:Be,Oo=[];for(let Do=0;Do<Ga.length;Do++){let fo=Ga[Do],Zo=fi.get(ya[Do]);fo===null?ja!=H&&(Pa[Zo]=fo,ja==wn&&Oo.push(Zo)):Pa[Zo]=fo}bi(Pa,Oo,Sr),$n.push(Pa)}}return $n}const de=typeof queueMicrotask>"u"?wt=>Promise.resolve().then(wt):queueMicrotask;function Ve(wt){let cn=wt[0],rr=cn.length,$n=Array(rr);for(let fi=0;fi<$n.length;fi++)$n[fi]=fi;$n.sort((fi,Ci)=>cn[fi]-cn[Ci]);let Sr=[];for(let fi=0;fi<wt.length;fi++){let Ci=wt[fi],la=Array(rr);for(let ya=0;ya<rr;ya++)la[ya]=Ci[$n[ya]];Sr.push(la)}return Sr}function vt(wt){let cn=wt[0][0],rr=cn.length;for(let $n=1;$n<wt.length;$n++){let Sr=wt[$n][0];if(Sr.length!=rr)return!1;if(Sr!=cn){for(let fi=0;fi<rr;fi++)if(Sr[fi]!=cn[fi])return!1}}return!0}function Qt(wt,cn=100){const rr=wt.length;if(rr<=1)return!0;let $n=0,Sr=rr-1;for(;$n<=Sr&&wt[$n]==null;)$n++;for(;Sr>=$n&&wt[Sr]==null;)Sr--;if(Sr<=$n)return!0;const fi=ht(1,Nt((Sr-$n+1)/cn));for(let Ci=wt[$n],la=$n+fi;la<=Sr;la+=fi){const ya=wt[la];if(ya!=null){if(ya<=Ci)return!1;Ci=ya}}return!0}const nt=["January","February","March","April","May","June","July","August","September","October","November","December"],Tt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Gt(wt){return wt.slice(0,3)}const En=Tt.map(Gt),Qn=nt.map(Gt),Or={MMMM:nt,MMM:Qn,WWWW:Tt,WWW:En};function Pr(wt){return(wt<10?"0":"")+wt}function ai(wt){return(wt<10?"00":wt<100?"0":"")+wt}const xi={YYYY:wt=>wt.getFullYear(),YY:wt=>(wt.getFullYear()+"").slice(2),MMMM:(wt,cn)=>cn.MMMM[wt.getMonth()],MMM:(wt,cn)=>cn.MMM[wt.getMonth()],MM:wt=>Pr(wt.getMonth()+1),M:wt=>wt.getMonth()+1,DD:wt=>Pr(wt.getDate()),D:wt=>wt.getDate(),WWWW:(wt,cn)=>cn.WWWW[wt.getDay()],WWW:(wt,cn)=>cn.WWW[wt.getDay()],HH:wt=>Pr(wt.getHours()),H:wt=>wt.getHours(),h:wt=>{let cn=wt.getHours();return cn==0?12:cn>12?cn-12:cn},AA:wt=>wt.getHours()>=12?"PM":"AM",aa:wt=>wt.getHours()>=12?"pm":"am",a:wt=>wt.getHours()>=12?"p":"a",mm:wt=>Pr(wt.getMinutes()),m:wt=>wt.getMinutes(),ss:wt=>Pr(wt.getSeconds()),s:wt=>wt.getSeconds(),fff:wt=>ai(wt.getMilliseconds())};function mi(wt,cn){cn=cn||Or;let rr=[],$n=/\{([a-z]+)\}|[^{]+/gi,Sr;for(;Sr=$n.exec(wt);)rr.push(Sr[0][0]=="{"?xi[Sr[1]]:Sr[0]);return fi=>{let Ci="";for(let la=0;la<rr.length;la++)Ci+=typeof rr[la]=="string"?rr[la]:rr[la](fi,cn);return Ci}}const ei=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Qr(wt,cn){let rr;return cn=="UTC"||cn=="Etc/UTC"?rr=new Date(+wt+wt.getTimezoneOffset()*6e4):cn==ei?rr=wt:(rr=new Date(wt.toLocaleString("en-US",{timeZone:cn})),rr.setMilliseconds(wt.getMilliseconds())),rr}const Ni=wt=>wt%1==0,ea=[1,2,2.5,5],Qi=cr(10,-32,0,ea),ir=cr(10,0,32,ea),xr=ir.filter(Ni),di=Qi.concat(ir),ft=` `,zn="{YYYY}",Zn=ft+zn,wi="{M}/{D}",Ea=ft+wi,wa=Ea+"/{YY}",ji="{aa}",Xn="{h}:{mm}"+ji,Tr=ft+Xn,Nr=":{ss}",ti=null;function _i(wt){let cn=wt*1e3,rr=cn*60,$n=rr*60,Sr=$n*24,fi=Sr*30,Ci=Sr*365,ya=(wt==1?cr(10,0,3,ea).filter(Ni):cr(10,-3,0,ea)).concat([cn,cn*5,cn*10,cn*15,cn*30,rr,rr*5,rr*10,rr*15,rr*30,$n,$n*2,$n*3,$n*4,$n*6,$n*8,$n*12,Sr,Sr*2,Sr*3,Sr*4,Sr*5,Sr*6,Sr*7,Sr*8,Sr*9,Sr*10,Sr*15,fi,fi*2,fi*3,fi*4,fi*6,Ci,Ci*2,Ci*5,Ci*10,Ci*25,Ci*50,Ci*100]);const _a=[[Ci,zn,ti,ti,ti,ti,ti,ti,1],[Sr*28,"{MMM}",Zn,ti,ti,ti,ti,ti,1],[Sr,wi,Zn,ti,ti,ti,ti,ti,1],[$n,"{h}"+ji,wa,ti,Ea,ti,ti,ti,1],[rr,Xn,wa,ti,Ea,ti,ti,ti,1],[cn,Nr,wa+" "+Xn,ti,Ea+" "+Xn,ti,Tr,ti,1],[wt,Nr+".{fff}",wa+" "+Xn,ti,Ea+" "+Xn,ti,Tr,ti,1]];function Ga(Pa){return(ja,Oo,Do,fo,Zo,bs)=>{let io=[],fs=Zo>=Ci,yo=Zo>=fi&&Zo<Ci,lo=Pa(Do),Ha=Lr(lo*wt,3),zo=an(lo.getFullYear(),fs?0:lo.getMonth(),yo||fs?1:lo.getDate()),vs=Lr(zo*wt,3);if(yo||fs){let Fs=yo?Zo/fi:0,Ms=fs?Zo/Ci:0,to=Ha==vs?Ha:Lr(an(zo.getFullYear()+Ms,zo.getMonth()+Fs,1)*wt,3),Ho=new Date(ln(to/wt)),ls=Ho.getFullYear(),xo=Ho.getMonth();for(let $a=0;to<=fo;$a++){let oo=an(ls+Ms*$a,xo+Fs*$a,1),ro=oo-Pa(Lr(oo*wt,3));to=Lr((+oo+ro)*wt,3),to<=fo&&io.push(to)}}else{let Fs=Zo>=Sr?Sr:Zo,Ms=Nt(Do)-Nt(Ha),to=vs+Ms+Gn(Ha-vs,Fs);io.push(to);let Ho=Pa(to),ls=Ho.getHours()+Ho.getMinutes()/rr+Ho.getSeconds()/$n,xo=Zo/$n,$a=ja.axes[Oo]._space,oo=bs/$a;for(;to=Lr(to+Zo,wt==1?0:3),!(to>fo);)if(xo>1){let ro=Nt(Lr(ls+xo,6))%24,qo=Pa(to).getHours()-ro;qo>1&&(qo=-1),to-=qo*$n,ls=(ls+xo)%24;let Go=io[io.length-1];Lr((to-Go)/Zo,3)*oo>=.7&&io.push(to)}else io.push(to)}return io}}return[ya,_a,Ga]}const[Ii,ta,Ji]=_i(1),[k,ve,Le]=_i(.001);cr(2,-53,53,[1]);function Ye(wt,cn){return wt.map(rr=>rr.map(($n,Sr)=>Sr==0||Sr==8||$n==null?$n:cn(Sr==1||rr[8]==0?$n:rr[1]+$n)))}function ot(wt,cn){return(rr,$n,Sr,fi,Ci)=>{let la=cn.find(Do=>Ci>=Do[0])||cn[cn.length-1],ya,_a,Ga,Pa,ja,Oo;return $n.map(Do=>{let fo=wt(Do),Zo=fo.getFullYear(),bs=fo.getMonth(),io=fo.getDate(),fs=fo.getHours(),yo=fo.getMinutes(),lo=fo.getSeconds(),Ha=Zo!=ya&&la[2]||bs!=_a&&la[3]||io!=Ga&&la[4]||fs!=Pa&&la[5]||yo!=ja&&la[6]||lo!=Oo&&la[7]||la[1];return ya=Zo,_a=bs,Ga=io,Pa=fs,ja=yo,Oo=lo,Ha(fo)})}}function Lt(wt,cn){let rr=mi(cn);return($n,Sr,fi,Ci,la)=>Sr.map(ya=>rr(wt(ya)))}function an(wt,cn,rr){return new Date(wt,cn,rr)}function nr(wt,cn){return cn(wt)}const vr="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function $r(wt,cn){return(rr,$n,Sr,fi)=>fi==null?Ne:cn(wt($n))}function Fr(wt,cn){let rr=wt.series[cn];return rr.width?rr.stroke(wt,cn):rr.points.width?rr.points.stroke(wt,cn):null}function qr(wt,cn){return wt.series[cn].fill(wt,cn)}const jr={show:!0,live:!0,isolate:!1,mount:Pt,markers:{show:!0,width:2,stroke:Fr,fill:qr,dash:"solid"},idx:null,idxs:null,values:[]};function vi(wt,cn){let rr=wt.cursor.points,$n=ke(),Sr=rr.size(wt,cn);Z($n,Se,Sr),Z($n,z,Sr);let fi=Sr/-2;Z($n,"marginLeft",fi),Z($n,"marginTop",fi);let Ci=rr.width(wt,cn,Sr);return Ci&&Z($n,"borderWidth",Ci),$n}function Mi(wt,cn){let rr=wt.series[cn].points;return rr._fill||rr._stroke}function ra(wt,cn){let rr=wt.series[cn].points;return rr._stroke||rr._fill}function Yi(wt,cn){return wt.series[cn].points.size}const ua=[0,0];function Sa(wt,cn,rr){return ua[0]=cn,ua[1]=rr,ua}function Xt(wt,cn,rr,$n=!0){return Sr=>{Sr.button==0&&(!$n||Sr.target==cn)&&rr(Sr)}}function V(wt,cn,rr,$n=!0){return Sr=>{(!$n||Sr.target==cn)&&rr(Sr)}}const Y={show:!0,x:!0,y:!0,lock:!1,move:Sa,points:{one:!1,show:vi,size:Yi,width:0,stroke:ra,fill:Mi},bind:{mousedown:Xt,mouseup:Xt,click:Xt,dblclick:Xt,mousemove:V,mouseleave:V,mouseenter:V},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(wt,cn)=>{cn.stopPropagation(),cn.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(wt,cn,rr,$n,Sr)=>$n-Sr,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},D={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},P=Rn({},D,{filter:un}),oe=Rn({},P,{size:10}),Ie=Rn({},D,{show:!1}),Ue='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Xe="bold "+Ue,dt=1.5,kt={show:!0,scale:"x",stroke:te,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Xe,side:2,grid:P,ticks:oe,border:Ie,font:Ue,lineGap:dt,rotate:0},dn="Value",Vn="Time",qn={show:!0,scale:"x",auto:!1,sorted:1,min:Je,max:-Je,idxs:[]};function yr(wt,cn,rr,$n,Sr){return cn.map(fi=>fi==null?"":fe(fi))}function ci(wt,cn,rr,$n,Sr,fi,Ci){let la=[],ya=An.get(Sr)||0;rr=Ci?rr:Lr(Gn(rr,Sr),ya);for(let _a=rr;_a<=$n;_a=Lr(_a+Sr,ya))la.push(Object.is(_a,-0)?0:_a);return la}function hi(wt,cn,rr,$n,Sr,fi,Ci){const la=[],ya=wt.scales[wt.axes[cn].scale].log,_a=ya==10?Ke:be,Ga=Nt(_a(rr));Sr=De(ya,Ga),ya==10&&(Sr=di[rn(Sr,di)]);let Pa=rr,ja=Sr*ya;ya==10&&(ja=di[rn(ja,di)]);do la.push(Pa),Pa=Pa+Sr,ya==10&&!An.has(Pa)&&(Pa=Lr(Pa,An.get(Sr))),Pa>=ja&&(Sr=Pa,ja=Sr*ya,ya==10&&(ja=di[rn(ja,di)]));while(Pa<=$n);return la}function Ti(wt,cn,rr,$n,Sr,fi,Ci){let ya=wt.scales[wt.axes[cn].scale].asinh,_a=$n>ya?hi(wt,cn,ht(ya,rr),$n,Sr):[ya],Ga=$n>=0&&rr<=0?[0]:[];return(rr<-ya?hi(wt,cn,ht(ya,-$n),-rr,Sr):[ya]).reverse().map(ja=>-ja).concat(Ga,_a)}const Vi=/./,Di=/[12357]/,Pi=/[125]/,mt=/1/,tn=(wt,cn,rr,$n)=>wt.map((Sr,fi)=>cn==4&&Sr==0||fi%$n==0&&rr.test(Sr.toExponential()[Sr<0?1:0])?Sr:null);function or(wt,cn,rr,$n,Sr){let fi=wt.axes[rr],Ci=fi.scale,la=wt.scales[Ci],ya=wt.valToPos,_a=fi._space,Ga=ya(10,Ci),Pa=ya(9,Ci)-Ga>=_a?Vi:ya(7,Ci)-Ga>=_a?Di:ya(5,Ci)-Ga>=_a?Pi:mt;if(Pa==mt){let ja=Fe(ya(1,Ci)-Ga);if(ja<_a)return tn(cn.slice().reverse(),la.distr,Pa,pn(_a/ja)).reverse()}return tn(cn,la.distr,Pa,1)}function rt(wt,cn,rr,$n,Sr){let fi=wt.axes[rr],Ci=fi.scale,la=fi._space,ya=wt.valToPos,_a=Fe(ya(1,Ci)-ya(2,Ci));return _a<la?tn(cn.slice().reverse(),3,Vi,pn(la/_a)).reverse():cn}function St(wt,cn,rr,$n){return $n==null?Ne:cn==null?"":fe(cn)}const _n={show:!0,scale:"y",stroke:te,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Xe,side:3,grid:P,ticks:oe,border:Ie,font:Ue,lineGap:dt,rotate:0};function vn(wt,cn){let rr=3+(wt||1)*2;return Lr(rr*cn,3)}function Ln(wt,cn){let{scale:rr,idxs:$n}=wt.series[0],Sr=wt._data[0],fi=wt.valToPos(Sr[$n[0]],rr,!0),Ci=wt.valToPos(Sr[$n[1]],rr,!0),la=Fe(Ci-fi),ya=wt.series[cn],_a=la/(ya.points.space*Wt);return $n[1]-$n[0]<=_a}const _r={scale:null,auto:!0,sorted:0,min:Je,max:-Je},Br=(wt,cn,rr,$n,Sr)=>Sr,Kr={show:!0,auto:!0,sorted:0,gaps:Br,alpha:1,facets:[Rn({},_r,{scale:"x"}),Rn({},_r,{scale:"y"})]},Jr={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Br,alpha:1,points:{show:Ln,filter:null},values:null,min:Je,max:-Je,idxs:[],path:null,clip:null};function ii(wt,cn,rr,$n,Sr){return rr/10}const le={time:l,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Ae=Rn({},le,{time:!1,ori:1}),Oe={};function et(wt,cn){let rr=Oe[wt];return rr||(rr={key:wt,plots:[],sub($n){rr.plots.push($n)},unsub($n){rr.plots=rr.plots.filter(Sr=>Sr!=$n)},pub($n,Sr,fi,Ci,la,ya,_a){for(let Ga=0;Ga<rr.plots.length;Ga++)rr.plots[Ga]!=Sr&&rr.plots[Ga].pub($n,Sr,fi,Ci,la,ya,_a)}},wt!=null&&(Oe[wt]=rr)),rr}const Ot=1,It=2;function Mn(wt,cn,rr){const $n=wt.mode,Sr=wt.series[cn],fi=$n==2?wt._data[cn]:wt._data,Ci=wt.scales,la=wt.bbox;let ya=fi[0],_a=$n==2?fi[1]:fi[cn],Ga=$n==2?Ci[Sr.facets[0].scale]:Ci[wt.series[0].scale],Pa=$n==2?Ci[Sr.facets[1].scale]:Ci[Sr.scale],ja=la.left,Oo=la.top,Do=la.width,fo=la.height,Zo=wt.valToPosH,bs=wt.valToPosV;return Ga.ori==0?rr(Sr,ya,_a,Ga,Pa,Zo,bs,ja,Oo,Do,fo,Ar,Rr,Si,Hi,Ma):rr(Sr,ya,_a,Ga,Pa,bs,Zo,Oo,ja,fo,Do,yi,si,$i,Oa,Ua)}function mn(wt,cn){let rr=0,$n=0,Sr=Nn(wt.bands,hr);for(let fi=0;fi<Sr.length;fi++){let Ci=Sr[fi];Ci.series[0]==cn?rr=Ci.dir:Ci.series[1]==cn&&(Ci.dir==1?$n|=1:$n|=2)}return[rr,$n==1?-1:$n==2?1:$n==3?2:0]}function At(wt,cn,rr,$n,Sr){let fi=wt.mode,Ci=wt.series[cn],la=fi==2?Ci.facets[1].scale:Ci.scale,ya=wt.scales[la];return Sr==-1?ya.min:Sr==1?ya.max:ya.distr==3?ya.dir==1?ya.min:ya.max:0}function Ut(wt,cn,rr,$n,Sr,fi){return Mn(wt,cn,(Ci,la,ya,_a,Ga,Pa,ja,Oo,Do,fo,Zo)=>{let bs=Ci.pxRound;const io=_a.dir*(_a.ori==0?1:-1),fs=_a.ori==0?Rr:si;let yo,lo;io==1?(yo=rr,lo=$n):(yo=$n,lo=rr);let Ha=bs(Pa(la[yo],_a,fo,Oo)),zo=bs(ja(ya[yo],Ga,Zo,Do)),vs=bs(Pa(la[lo],_a,fo,Oo)),Fs=bs(ja(fi==1?Ga.max:Ga.min,Ga,Zo,Do)),Ms=new Path2D(Sr);return fs(Ms,vs,Fs),fs(Ms,Ha,Fs),fs(Ms,Ha,zo),Ms})}function jn(wt,cn,rr,$n,Sr,fi){let Ci=null;if(wt.length>0){Ci=new Path2D;const la=cn==0?Si:$i;let ya=rr;for(let Pa=0;Pa<wt.length;Pa++){let ja=wt[Pa];if(ja[1]>ja[0]){let Oo=ja[0]-ya;Oo>0&&la(Ci,ya,$n,Oo,$n+fi),ya=ja[1]}}let _a=rr+Sr-ya,Ga=10;_a>0&&la(Ci,ya,$n-Ga/2,_a,$n+fi+Ga)}return Ci}function Jt(wt,cn,rr){let $n=wt[wt.length-1];$n&&$n[0]==cn?$n[1]=rr:wt.push([cn,rr])}function dr(wt,cn,rr,$n,Sr,fi,Ci){let la=[],ya=wt.length;for(let _a=Sr==1?rr:$n;_a>=rr&&_a<=$n;_a+=Sr)if(cn[_a]===null){let Pa=_a,ja=_a;if(Sr==1)for(;++_a<=$n&&cn[_a]===null;)ja=_a;else for(;--_a>=rr&&cn[_a]===null;)ja=_a;let Oo=fi(wt[Pa]),Do=ja==Pa?Oo:fi(wt[ja]),fo=Pa-Sr;Oo=Ci<=0&&fo>=0&&fo<ya?fi(wt[fo]):Oo;let bs=ja+Sr;Do=Ci>=0&&bs>=0&&bs<ya?fi(wt[bs]):Do,Do>=Oo&&la.push([Oo,Do])}return la}function wr(wt){return wt==0?zt:wt==1?ln:cn=>On(cn,wt)}function Hr(wt){let cn=wt==0?Ar:yi,rr=wt==0?(Sr,fi,Ci,la,ya,_a)=>{Sr.arcTo(fi,Ci,la,ya,_a)}:(Sr,fi,Ci,la,ya,_a)=>{Sr.arcTo(Ci,fi,ya,la,_a)},$n=wt==0?(Sr,fi,Ci,la,ya)=>{Sr.rect(fi,Ci,la,ya)}:(Sr,fi,Ci,la,ya)=>{Sr.rect(Ci,fi,ya,la)};return(Sr,fi,Ci,la,ya,_a=0,Ga=0)=>{_a==0&&Ga==0?$n(Sr,fi,Ci,la,ya):(_a=Yn(_a,la/2,ya/2),Ga=Yn(Ga,la/2,ya/2),cn(Sr,fi+_a,Ci),rr(Sr,fi+la,Ci,fi+la,Ci+ya,_a),rr(Sr,fi+la,Ci+ya,fi,Ci+ya,Ga),rr(Sr,fi,Ci+ya,fi,Ci,Ga),rr(Sr,fi,Ci,fi+la,Ci,_a),Sr.closePath())}}const Ar=(wt,cn,rr)=>{wt.moveTo(cn,rr)},yi=(wt,cn,rr)=>{wt.moveTo(rr,cn)},Rr=(wt,cn,rr)=>{wt.lineTo(cn,rr)},si=(wt,cn,rr)=>{wt.lineTo(rr,cn)},Si=Hr(0),$i=Hr(1),Hi=(wt,cn,rr,$n,Sr,fi)=>{wt.arc(cn,rr,$n,Sr,fi)},Oa=(wt,cn,rr,$n,Sr,fi)=>{wt.arc(rr,cn,$n,Sr,fi)},Ma=(wt,cn,rr,$n,Sr,fi,Ci)=>{wt.bezierCurveTo(cn,rr,$n,Sr,fi,Ci)},Ua=(wt,cn,rr,$n,Sr,fi,Ci)=>{wt.bezierCurveTo(rr,cn,Sr,$n,Ci,fi)};function Xa(wt){return(cn,rr,$n,Sr,fi)=>Mn(cn,rr,(Ci,la,ya,_a,Ga,Pa,ja,Oo,Do,fo,Zo)=>{let{pxRound:bs,points:io}=Ci,fs,yo;_a.ori==0?(fs=Ar,yo=Hi):(fs=yi,yo=Oa);const lo=Lr(io.width*Wt,3);let Ha=(io.size-io.width)/2*Wt,zo=Lr(Ha*2,3),vs=new Path2D,Fs=new Path2D,{left:Ms,top:to,width:Ho,height:ls}=cn.bbox;Si(Fs,Ms-zo,to-zo,Ho+zo*2,ls+zo*2);const xo=$a=>{if(ya[$a]!=null){let oo=bs(Pa(la[$a],_a,fo,Oo)),ro=bs(ja(ya[$a],Ga,Zo,Do));fs(vs,oo+Ha,ro),yo(vs,oo,ro,Ha,0,he*2)}};if(fi)fi.forEach(xo);else for(let $a=$n;$a<=Sr;$a++)xo($a);return{stroke:lo>0?vs:null,fill:vs,clip:Fs,flags:Ot|It}})}function Na(wt){return(cn,rr,$n,Sr,fi,Ci)=>{$n!=Sr&&(fi!=$n&&Ci!=$n&&wt(cn,rr,$n),fi!=Sr&&Ci!=Sr&&wt(cn,rr,Sr),wt(cn,rr,Ci))}}const za=Na(Rr),qa=Na(si);function no(wt){const cn=Nn(wt?.alignGaps,0);return(rr,$n,Sr,fi)=>Mn(rr,$n,(Ci,la,ya,_a,Ga,Pa,ja,Oo,Do,fo,Zo)=>{[Sr,fi]=on(ya,Sr,fi);let bs=Ci.pxRound,io=ls=>bs(Pa(ls,_a,fo,Oo)),fs=ls=>bs(ja(ls,Ga,Zo,Do)),yo,lo;_a.ori==0?(yo=Rr,lo=za):(yo=si,lo=qa);const Ha=_a.dir*(_a.ori==0?1:-1),zo={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ot},vs=zo.stroke;let Fs=!1;if(fi-Sr>=fo*4){let ls=Bo=>rr.posToVal(Bo,_a.key,!0),xo=null,$a=null,oo,ro,Ls,Ns=io(la[Ha==1?Sr:fi]),qo=io(la[Sr]),Go=io(la[fi]),gs=ls(Ha==1?qo+1:Go-1);for(let Bo=Ha==1?Sr:fi;Bo>=Sr&&Bo<=fi;Bo+=Ha){let tu=la[Bo],hu=(Ha==1?tu<gs:tu>gs)?Ns:io(tu),es=ya[Bo];hu==Ns?es!=null?(ro=es,xo==null?(yo(vs,hu,fs(ro)),oo=xo=$a=ro):ro<xo?xo=ro:ro>$a&&($a=ro)):es===null&&(Fs=!0):(xo!=null&&lo(vs,Ns,fs(xo),fs($a),fs(oo),fs(ro)),es!=null?(ro=es,yo(vs,hu,fs(ro)),xo=$a=oo=ro):(xo=$a=null,es===null&&(Fs=!0)),Ns=hu,gs=ls(Ns+Ha))}xo!=null&&xo!=$a&&Ls!=Ns&&lo(vs,Ns,fs(xo),fs($a),fs(oo),fs(ro))}else for(let ls=Ha==1?Sr:fi;ls>=Sr&&ls<=fi;ls+=Ha){let xo=ya[ls];xo===null?Fs=!0:xo!=null&&yo(vs,io(la[ls]),fs(xo))}let[to,Ho]=mn(rr,$n);if(Ci.fill!=null||to!=0){let ls=zo.fill=new Path2D(vs),xo=Ci.fillTo(rr,$n,Ci.min,Ci.max,to),$a=fs(xo),oo=io(la[Sr]),ro=io(la[fi]);Ha==-1&&([ro,oo]=[oo,ro]),yo(ls,ro,$a),yo(ls,oo,$a)}if(!Ci.spanGaps){let ls=[];Fs&&ls.push(...dr(la,ya,Sr,fi,Ha,io,cn)),zo.gaps=ls=Ci.gaps(rr,$n,Sr,fi,ls),zo.clip=jn(ls,_a.ori,Oo,Do,fo,Zo)}return Ho!=0&&(zo.band=Ho==2?[Ut(rr,$n,Sr,fi,vs,-1),Ut(rr,$n,Sr,fi,vs,1)]:Ut(rr,$n,Sr,fi,vs,Ho)),zo})}function wo(wt){const cn=Nn(wt.align,1),rr=Nn(wt.ascDesc,!1),$n=Nn(wt.alignGaps,0),Sr=Nn(wt.extend,!1);return(fi,Ci,la,ya)=>Mn(fi,Ci,(_a,Ga,Pa,ja,Oo,Do,fo,Zo,bs,io,fs)=>{[la,ya]=on(Pa,la,ya);let yo=_a.pxRound,{left:lo,width:Ha}=fi.bbox,zo=qo=>yo(Do(qo,ja,io,Zo)),vs=qo=>yo(fo(qo,Oo,fs,bs)),Fs=ja.ori==0?Rr:si;const Ms={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ot},to=Ms.stroke,Ho=ja.dir*(ja.ori==0?1:-1);let ls=vs(Pa[Ho==1?la:ya]),xo=zo(Ga[Ho==1?la:ya]),$a=xo,oo=xo;Sr&&cn==-1&&(oo=lo,Fs(to,oo,ls)),Fs(to,xo,ls);for(let qo=Ho==1?la:ya;qo>=la&&qo<=ya;qo+=Ho){let Go=Pa[qo];if(Go==null)continue;let gs=zo(Ga[qo]),Bo=vs(Go);cn==1?Fs(to,gs,ls):Fs(to,$a,Bo),Fs(to,gs,Bo),ls=Bo,$a=gs}let ro=$a;Sr&&cn==1&&(ro=lo+Ha,Fs(to,ro,ls));let[Ls,Ns]=mn(fi,Ci);if(_a.fill!=null||Ls!=0){let qo=Ms.fill=new Path2D(to),Go=_a.fillTo(fi,Ci,_a.min,_a.max,Ls),gs=vs(Go);Fs(qo,ro,gs),Fs(qo,oo,gs)}if(!_a.spanGaps){let qo=[];qo.push(...dr(Ga,Pa,la,ya,Ho,zo,$n));let Go=_a.width*Wt/2,gs=rr||cn==1?Go:-Go,Bo=rr||cn==-1?-Go:Go;qo.forEach(tu=>{tu[0]+=gs,tu[1]+=Bo}),Ms.gaps=qo=_a.gaps(fi,Ci,la,ya,qo),Ms.clip=jn(qo,ja.ori,Zo,bs,io,fs)}return Ns!=0&&(Ms.band=Ns==2?[Ut(fi,Ci,la,ya,to,-1),Ut(fi,Ci,la,ya,to,1)]:Ut(fi,Ci,la,ya,to,Ns)),Ms})}function go(wt,cn,rr,$n,Sr,fi,Ci=Je){if(wt.length>1){let la=null;for(let ya=0,_a=1/0;ya<wt.length;ya++)if(cn[ya]!==void 0){if(la!=null){let Ga=Fe(wt[ya]-wt[la]);Ga<_a&&(_a=Ga,Ci=Fe(rr(wt[ya],$n,Sr,fi)-rr(wt[la],$n,Sr,fi)))}la=ya}}return Ci}function Ka(wt){wt=wt||mr;const cn=Nn(wt.size,[.6,Je,1]),rr=wt.align||0,$n=wt.gap||0;let Sr=wt.radius;Sr=Sr==null?[0,0]:typeof Sr=="number"?[Sr,0]:Sr;const fi=qe(Sr),Ci=1-cn[0],la=Nn(cn[1],Je),ya=Nn(cn[2],1),_a=Nn(wt.disp,mr),Ga=Nn(wt.each,Oo=>{}),{fill:Pa,stroke:ja}=_a;return(Oo,Do,fo,Zo)=>Mn(Oo,Do,(bs,io,fs,yo,lo,Ha,zo,vs,Fs,Ms,to)=>{let Ho=bs.pxRound,ls=rr,xo=$n*Wt,$a=la*Wt,oo=ya*Wt,ro,Ls;yo.ori==0?[ro,Ls]=fi(Oo,Do):[Ls,ro]=fi(Oo,Do);const Ns=yo.dir*(yo.ori==0?1:-1);let qo=yo.ori==0?Si:$i,Go=yo.ori==0?Ga:(Xo,Ou,gl,Ol,Mu,hc,xc)=>{Ga(Xo,Ou,gl,Mu,Ol,xc,hc)},gs=Nn(Oo.bands,hr).find(Xo=>Xo.series[0]==Do),Bo=gs!=null?gs.dir:0,tu=bs.fillTo(Oo,Do,bs.min,bs.max,Bo),vo=Ho(zo(tu,lo,to,Fs)),hu,es,qu,lu=Ms,cu=Ho(bs.width*Wt),gu=!1,Jl=null,fc=null,uf=null,Bf=null;Pa!=null&&(cu==0||ja!=null)&&(gu=!0,Jl=Pa.values(Oo,Do,fo,Zo),fc=new Map,new Set(Jl).forEach(Xo=>{Xo!=null&&fc.set(Xo,new Path2D)}),cu>0&&(uf=ja.values(Oo,Do,fo,Zo),Bf=new Map,new Set(uf).forEach(Xo=>{Xo!=null&&Bf.set(Xo,new Path2D)})));let{x0:Ec,size:dc}=_a;if(Ec!=null&&dc!=null){ls=1,io=Ec.values(Oo,Do,fo,Zo),Ec.unit==2&&(io=io.map(gl=>Oo.posToVal(vs+gl*Ms,yo.key,!0)));let Xo=dc.values(Oo,Do,fo,Zo);dc.unit==2?es=Xo[0]*Ms:es=Ha(Xo[0],yo,Ms,vs)-Ha(0,yo,Ms,vs),lu=go(io,fs,Ha,yo,Ms,vs,lu),qu=lu-es+xo}else lu=go(io,fs,Ha,yo,Ms,vs,lu),qu=lu*Ci+xo,es=lu-qu;qu<1&&(qu=0),cu>=es/2&&(cu=0),qu<5&&(Ho=zt);let Yc=qu>0,$u=lu-qu-(Yc?cu:0);es=Ho(Qe($u,oo,$a)),hu=(ls==0?es/2:ls==Ns?0:es)-ls*Ns*((ls==0?xo/2:0)+(Yc?cu/2:0));const Fl={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},wc=gu?null:new Path2D;let ml=null;if(gs!=null)ml=Oo.data[gs.series[1]];else{let{y0:Xo,y1:Ou}=_a;Xo!=null&&Ou!=null&&(fs=Ou.values(Oo,Do,fo,Zo),ml=Xo.values(Oo,Do,fo,Zo))}let jl=ro*es,js=Ls*es;for(let Xo=Ns==1?fo:Zo;Xo>=fo&&Xo<=Zo;Xo+=Ns){let Ou=fs[Xo];if(Ou==null)continue;if(ml!=null){let Tu=ml[Xo]??0;if(Ou-Tu==0)continue;vo=zo(Tu,lo,to,Fs)}let gl=yo.distr!=2||_a!=null?io[Xo]:Xo,Ol=Ha(gl,yo,Ms,vs),Mu=zo(Nn(Ou,tu),lo,to,Fs),hc=Ho(Ol-hu),xc=Ho(ht(Mu,vo)),Zl=Ho(Yn(Mu,vo)),Bl=xc-Zl;if(Ou!=null){let Tu=Ou<0?js:jl,ac=Ou<0?jl:js;gu?(cu>0&&uf[Xo]!=null&&qo(Bf.get(uf[Xo]),hc,Zl+Nt(cu/2),es,ht(0,Bl-cu),Tu,ac),Jl[Xo]!=null&&qo(fc.get(Jl[Xo]),hc,Zl+Nt(cu/2),es,ht(0,Bl-cu),Tu,ac)):qo(wc,hc,Zl+Nt(cu/2),es,ht(0,Bl-cu),Tu,ac),Go(Oo,Do,Xo,hc-cu/2,Zl,es+cu,Bl)}}return cu>0?Fl.stroke=gu?Bf:wc:gu||(Fl._fill=bs.width==0?bs._fill:bs._stroke??bs._fill,Fl.width=0),Fl.fill=gu?fc:wc,Fl})}function Ia(wt,cn){const rr=Nn(cn?.alignGaps,0);return($n,Sr,fi,Ci)=>Mn($n,Sr,(la,ya,_a,Ga,Pa,ja,Oo,Do,fo,Zo,bs)=>{[fi,Ci]=on(_a,fi,Ci);let io=la.pxRound,fs=ro=>io(ja(ro,Ga,Zo,Do)),yo=ro=>io(Oo(ro,Pa,bs,fo)),lo,Ha,zo;Ga.ori==0?(lo=Ar,zo=Rr,Ha=Ma):(lo=yi,zo=si,Ha=Ua);const vs=Ga.dir*(Ga.ori==0?1:-1);let Fs=fs(ya[vs==1?fi:Ci]),Ms=Fs,to=[],Ho=[];for(let ro=vs==1?fi:Ci;ro>=fi&&ro<=Ci;ro+=vs)if(_a[ro]!=null){let Ns=ya[ro],qo=fs(Ns);to.push(Ms=qo),Ho.push(yo(_a[ro]))}const ls={stroke:wt(to,Ho,lo,zo,Ha,io),fill:null,clip:null,band:null,gaps:null,flags:Ot},xo=ls.stroke;let[$a,oo]=mn($n,Sr);if(la.fill!=null||$a!=0){let ro=ls.fill=new Path2D(xo),Ls=la.fillTo($n,Sr,la.min,la.max,$a),Ns=yo(Ls);zo(ro,Ms,Ns),zo(ro,Fs,Ns)}if(!la.spanGaps){let ro=[];ro.push(...dr(ya,_a,fi,Ci,vs,fs,rr)),ls.gaps=ro=la.gaps($n,Sr,fi,Ci,ro),ls.clip=jn(ro,Ga.ori,Do,fo,Zo,bs)}return oo!=0&&(ls.band=oo==2?[Ut($n,Sr,fi,Ci,xo,-1),Ut($n,Sr,fi,Ci,xo,1)]:Ut($n,Sr,fi,Ci,xo,oo)),ls})}function Us(wt){return Ia(Vs,wt)}function Vs(wt,cn,rr,$n,Sr,fi){const Ci=wt.length;if(Ci<2)return null;const la=new Path2D;if(rr(la,wt[0],cn[0]),Ci==2)$n(la,wt[1],cn[1]);else{let ya=Array(Ci),_a=Array(Ci-1),Ga=Array(Ci-1),Pa=Array(Ci-1);for(let ja=0;ja<Ci-1;ja++)Ga[ja]=cn[ja+1]-cn[ja],Pa[ja]=wt[ja+1]-wt[ja],_a[ja]=Ga[ja]/Pa[ja];ya[0]=_a[0];for(let ja=1;ja<Ci-1;ja++)_a[ja]===0||_a[ja-1]===0||_a[ja-1]>0!=_a[ja]>0?ya[ja]=0:(ya[ja]=3*(Pa[ja-1]+Pa[ja])/((2*Pa[ja]+Pa[ja-1])/_a[ja-1]+(Pa[ja]+2*Pa[ja-1])/_a[ja]),isFinite(ya[ja])||(ya[ja]=0));ya[Ci-1]=_a[Ci-2];for(let ja=0;ja<Ci-1;ja++)Sr(la,wt[ja]+Pa[ja]/3,cn[ja]+ya[ja]*Pa[ja]/3,wt[ja+1]-Pa[ja]/3,cn[ja+1]-ya[ja+1]*Pa[ja]/3,wt[ja+1],cn[ja+1])}return la}const Is=new Set;function uo(){for(let wt of Is)wt.syncRect(!0)}it&&(nn(je,Dn,uo),nn(yt,Dn,uo,!0),nn(Ze,Dn,()=>{gi.pxRatio=Wt}));const Ds=no(),Js=Xa();function eo(wt,cn,rr,$n){return($n?[wt[0],wt[1]].concat(wt.slice(2)):[wt[0]].concat(wt.slice(1))).map((fi,Ci)=>pa(fi,Ci,cn,rr))}function uu(wt,cn){return wt.map((rr,$n)=>$n==0?{}:Rn({},cn,rr))}function pa(wt,cn,rr,$n){return Rn({},cn==0?rr:$n,wt)}function na(wt,cn,rr){return cn==null?ar:[cn,rr]}const Ui=na;function xe(wt,cn,rr){return cn==null?ar:Jn(cn,rr,Fn,!0)}function Ce(wt,cn,rr,$n){return cn==null?ar:Wn(cn,rr,wt.scales[$n].log,!1)}const st=Ce;function gt(wt,cn,rr,$n){return cn==null?ar:er(cn,rr,wt.scales[$n].log,!1)}const Ht=gt;function Hn(wt,cn,rr,$n,Sr){let fi=ht(ye(wt),ye(cn)),Ci=cn-wt,la=rn(Sr/$n*Ci,rr);do{let ya=rr[la],_a=$n*ya/Ci;if(_a>=Sr&&fi+(ya<5?An.get(ya):0)<=17)return[ya,_a]}while(++la<rr.length);return[0,0]}function fr(wt){let cn,rr;return wt=wt.replace(/(\d+)px/,($n,Sr)=>(cn=ln((rr=+Sr)*Wt))+"px"),[wt,cn,rr]}function Zr(wt){wt.show&&[wt.font,wt.labelFont].forEach(cn=>{let rr=Lr(cn[2]*Wt,1);cn[0]=cn[0].replace(/[0-9.]+px/,rr+"px"),cn[1]=rr})}function gi(wt,cn,rr){const $n={mode:Nn(wt.mode,1)},Sr=$n.mode;function fi(Er,ri,Li,Gi){let ha=ri.valToPct(Er);return Gi+Li*(ri.dir==-1?1-ha:ha)}function Ci(Er,ri,Li,Gi){let ha=ri.valToPct(Er);return Gi+Li*(ri.dir==-1?ha:1-ha)}function la(Er,ri,Li,Gi){return ri.ori==0?fi(Er,ri,Li,Gi):Ci(Er,ri,Li,Gi)}$n.valToPosH=fi,$n.valToPosV=Ci;let ya=!1;$n.status=0;const _a=$n.root=ke(y);if(wt.id!=null&&(_a.id=wt.id),$t(_a,wt.class),wt.title){let Er=ke(p,_a);Er.textContent=wt.title}const Ga=me("canvas"),Pa=$n.ctx=Ga.getContext("2d"),ja=ke(h,_a);nn("click",ja,Er=>{Er.target===Do&&(Vu!=Df||Au!=cd)&&Vl.click($n,Er)},!0);const Oo=$n.under=ke(E,ja);ja.appendChild(Ga);const Do=$n.over=ke(v,ja);wt=sn(wt);const fo=+Nn(wt.pxAlign,1),Zo=wr(fo);(wt.plugins||[]).forEach(Er=>{Er.opts&&(wt=Er.opts($n,wt)||wt)});const bs=wt.ms||.001,io=$n.series=Sr==1?eo(wt.series||[],qn,Jr,!1):uu(wt.series||[null],Kr),fs=$n.axes=eo(wt.axes||[],kt,_n,!0),yo=$n.scales={},lo=$n.bands=wt.bands||[];lo.forEach(Er=>{Er.fill=qe(Er.fill||null),Er.dir=Nn(Er.dir,-1)});const Ha=Sr==2?io[1].facets[0].scale:io[0].scale,zo={axes:ch,series:Vf},vs=(wt.drawOrder||["axes","series"]).map(Er=>zo[Er]);function Fs(Er){const ri=Er.distr==3?Li=>Ke(Li>0?Li:Er.clamp($n,Li,Er.min,Er.max,Er.key)):Er.distr==4?Li=>We(Li,Er.asinh):Er.distr==100?Li=>Er.fwd(Li):Li=>Li;return Li=>{let Gi=ri(Li),{_min:ha,_max:Da}=Er,Qa=Da-ha;return(Gi-ha)/Qa}}function Ms(Er){let ri=yo[Er];if(ri==null){let Li=(wt.scales||mr)[Er]||mr;if(Li.from!=null){Ms(Li.from);let Gi=Rn({},yo[Li.from],Li,{key:Er});Gi.valToPct=Fs(Gi),yo[Er]=Gi}else{ri=yo[Er]=Rn({},Er==Ha?le:Ae,Li),ri.key=Er;let Gi=ri.time,ha=ri.range,Da=Cr(ha);if((Er!=Ha||Sr==2&&!Gi)&&(Da&&(ha[0]==null||ha[1]==null)&&(ha={min:ha[0]==null?en:{mode:1,hard:ha[0],soft:ha[0]},max:ha[1]==null?en:{mode:1,hard:ha[1],soft:ha[1]}},Da=!1),!Da&&ki(ha))){let Qa=ha;ha=(so,To,Ko)=>To==null?ar:Jn(To,Ko,Qa)}ri.range=qe(ha||(Gi?Ui:Er==Ha?ri.distr==3?st:ri.distr==4?Ht:na:ri.distr==3?Ce:ri.distr==4?gt:xe)),ri.auto=qe(Da?!1:ri.auto),ri.clamp=qe(ri.clamp||ii),ri._min=ri._max=null,ri.valToPct=Fs(ri)}}}Ms("x"),Ms("y"),Sr==1&&io.forEach(Er=>{Ms(Er.scale)}),fs.forEach(Er=>{Ms(Er.scale)});for(let Er in wt.scales)Ms(Er);const to=yo[Ha],Ho=to.distr;let ls,xo;to.ori==0?($t(_a,x),ls=fi,xo=Ci):($t(_a,f),ls=Ci,xo=fi);const $a={};for(let Er in yo){let ri=yo[Er];(ri.min!=null||ri.max!=null)&&($a[Er]={min:ri.min,max:ri.max},ri.min=ri.max=null)}const oo=wt.tzDate||(Er=>new Date(ln(Er/bs))),ro=wt.fmtDate||mi,Ls=bs==1?Ji(oo):Le(oo),Ns=ot(oo,Ye(bs==1?ta:ve,ro)),qo=$r(oo,nr(vr,ro)),Go=[],gs=$n.legend=Rn({},jr,wt.legend),Bo=$n.cursor=Rn({},Y,{drag:{y:Sr==2}},wt.cursor),tu=gs.show,vo=Bo.show,hu=gs.markers;gs.idxs=Go,hu.width=qe(hu.width),hu.dash=qe(hu.dash),hu.stroke=qe(hu.stroke),hu.fill=qe(hu.fill);let es,qu,lu,cu=[],gu=[],Jl,fc=!1,uf={};if(gs.live){const Er=io[1]?io[1].values:null;fc=Er!=null,Jl=fc?Er($n,1,0):{_:0};for(let ri in Jl)uf[ri]=Ne}if(tu)if(es=me("table",L,_a),lu=me("tbody",null,es),gs.mount($n,es),fc){qu=me("thead",null,es,lu);let Er=me("tr",null,qu);me("th",null,Er);for(var Bf in Jl)me("th",ee,Er).textContent=Bf}else $t(es,I),gs.live&&$t(es,j);const Ec={show:!0},dc={show:!1};function Yc(Er,ri){if(ri==0&&(fc||!gs.live||Sr==2))return ar;let Li=[],Gi=me("tr",U,lu,lu.childNodes[ri]);$t(Gi,Er.class),Er.show||$t(Gi,S);let ha=me("th",null,Gi);if(hu.show){let so=ke($,ha);if(ri>0){let To=hu.width($n,ri);To&&(so.style.border=To+"px "+hu.dash($n,ri)+" "+hu.stroke($n,ri)),so.style.background=hu.fill($n,ri)}}let Da=ke(ee,ha);Er.label instanceof HTMLElement?Da.appendChild(Er.label):Da.textContent=Er.label,ri>0&&(hu.show||(Da.style.color=Er.width>0?hu.stroke($n,ri):hu.fill($n,ri)),Fl("click",ha,so=>{if(Bo._lock)return;xf(so);let To=io.indexOf(Er);if((so.ctrlKey||so.metaKey)!=gs.isolate){let Ko=io.some((rs,cs)=>cs>0&&cs!=To&&rs.show);io.forEach((rs,cs)=>{cs>0&&Vc(cs,Ko?cs==To?Ec:dc:Ec,!0,_l.setSeries)})}else Vc(To,{show:!Er.show},!0,_l.setSeries)},!1),Jc&&Fl(ue,ha,so=>{Bo._lock||(xf(so),Vc(io.indexOf(Er),Mr,!0,_l.setSeries))},!1));for(var Qa in Jl){let so=me("td",re,Gi);so.textContent="--",Li.push(so)}return[Gi,Li]}const $u=new Map;function Fl(Er,ri,Li,Gi=!0){const ha=$u.get(ri)||{},Da=Bo.bind[Er]($n,ri,Li,Gi);Da&&(nn(Er,ri,ha[Er]=Da),$u.set(ri,ha))}function wc(Er,ri,Li){const Gi=$u.get(ri)||{};for(let ha in Gi)(Er==null||ha==Er)&&(Pn(ha,ri,Gi[ha]),delete Gi[ha]);Er==null&&$u.delete(ri)}let ml=0,jl=0,js=0,Xo=0,Ou=0,gl=0,Ol=Ou,Mu=gl,hc=js,xc=Xo,Zl=0,Bl=0,Tu=0,ac=0;$n.bbox={};let Ju=!1,$f=!1,lf=!1,Cc=!1,wf=!1,Il=!1;function id(Er,ri,Li){(Li||Er!=$n.width||ri!=$n.height)&&$l(Er,ri),Tc(!1),lf=!0,$f=!0,Qc()}function $l(Er,ri){$n.width=ml=js=Er,$n.height=jl=Xo=ri,Ou=gl=0,Ad(),Uh();let Li=$n.bbox;Zl=Li.left=On(Ou*Wt,.5),Bl=Li.top=On(gl*Wt,.5),Tu=Li.width=On(js*Wt,.5),ac=Li.height=On(Xo*Wt,.5)}const ad=3;function Od(){let Er=!1,ri=0;for(;!Er;){ri++;let Li=uh(ri),Gi=lh(ri);Er=ri==ad||Li&&Gi,Er||($l($n.width,$n.height),$f=!0)}}function Td({width:Er,height:ri}){id(Er,ri)}$n.setSize=Td;function Ad(){let Er=!1,ri=!1,Li=!1,Gi=!1;fs.forEach((ha,Da)=>{if(ha.show&&ha._show){let{side:Qa,_size:so}=ha,To=Qa%2,Ko=ha.label!=null?ha.labelSize:0,rs=so+Ko;rs>0&&(To?(js-=rs,Qa==3?(Ou+=rs,Gi=!0):Li=!0):(Xo-=rs,Qa==0?(gl+=rs,Er=!0):ri=!0))}}),Xl[0]=Er,Xl[1]=Li,Xl[2]=ri,Xl[3]=Gi,js-=Zc[1]+Zc[3],Ou+=Zc[3],Xo-=Zc[2]+Zc[0],gl+=Zc[0]}function Uh(){let Er=Ou+js,ri=gl+Xo,Li=Ou,Gi=gl;function ha(Da,Qa){switch(Da){case 1:return Er+=Qa,Er-Qa;case 2:return ri+=Qa,ri-Qa;case 3:return Li-=Qa,Li+Qa;case 0:return Gi-=Qa,Gi+Qa}}fs.forEach((Da,Qa)=>{if(Da.show&&Da._show){let so=Da.side;Da._pos=ha(so,Da._size),Da.label!=null&&(Da._lpos=ha(so,Da.labelSize))}})}if(Bo.dataIdx==null){let Er=Bo.hover,ri=Er.skip=new Set(Er.skip??[]);ri.add(void 0);let Li=Er.prox=qe(Er.prox),Gi=Er.bias??=0;Bo.dataIdx=(ha,Da,Qa,so)=>{if(Da==0)return Qa;let To=Qa,Ko=Li(ha,Da,Qa,so)??Je,rs=Ko>=0&&Ko<Je,cs=to.ori==0?js:Xo,Ks=Bo.left,yu=cn[0],Su=cn[Da];if(ri.has(Su[Qa])){To=null;let fu=null,Bs=null,_s;if(Gi==0||Gi==-1)for(_s=Qa;fu==null&&_s-- >0;)ri.has(Su[_s])||(fu=_s);if(Gi==0||Gi==1)for(_s=Qa;Bs==null&&_s++<Su.length;)ri.has(Su[_s])||(Bs=_s);if(fu!=null||Bs!=null)if(rs){let Ku=fu==null?-1/0:ls(yu[fu],to,cs,0),al=Bs==null?1/0:ls(yu[Bs],to,cs,0),El=Ks-Ku,Wu=al-Ks;El<=Wu?El<=Ko&&(To=fu):Wu<=Ko&&(To=Bs)}else To=Bs==null?fu:fu==null?Bs:Qa-fu<=Bs-Qa?fu:Bs}else rs&&Fe(Ks-ls(yu[Qa],to,cs,0))>Ko&&(To=null);return To}}const xf=Er=>{Bo.event=Er};Bo.idxs=Go,Bo._lock=!1;let Dl=Bo.points;Dl.show=qe(Dl.show),Dl.size=qe(Dl.size),Dl.stroke=qe(Dl.stroke),Dl.width=qe(Dl.width),Dl.fill=qe(Dl.fill);const $c=$n.focus=Rn({},wt.focus||{alpha:.3},Bo.focus),Jc=$c.prox>=0,cf=Jc&&Dl.one;let rl=[],od=[],Ul=[];function Kd(Er,ri){let Li=Dl.show($n,ri);if(Li instanceof HTMLElement)return $t(Li,C),$t(Li,Er.class),_e(Li,-10,-10,js,Xo),Do.insertBefore(Li,rl[ri]),Li}function Cf(Er,ri){if(Sr==1||ri>0){let Li=Sr==1&&yo[Er.scale].time,Gi=Er.value;Er.value=Li?ni(Gi)?$r(oo,nr(Gi,ro)):Gi||qo:Gi||St,Er.label=Er.label||(Li?Vn:dn)}if(cf||ri>0){Er.width=Er.width==null?1:Er.width,Er.paths=Er.paths||Ds||hn,Er.fillTo=qe(Er.fillTo||At),Er.pxAlign=+Nn(Er.pxAlign,fo),Er.pxRound=wr(Er.pxAlign),Er.stroke=qe(Er.stroke||null),Er.fill=qe(Er.fill||null),Er._stroke=Er._fill=Er._paths=Er._focus=null;let Li=vn(ht(1,Er.width),1),Gi=Er.points=Rn({},{size:Li,width:ht(1,Li*.2),stroke:Er.stroke,space:Li*2,paths:Js,_stroke:null,_fill:null},Er.points);Gi.show=qe(Gi.show),Gi.filter=qe(Gi.filter),Gi.fill=qe(Gi.fill),Gi.stroke=qe(Gi.stroke),Gi.paths=qe(Gi.paths),Gi.pxAlign=Er.pxAlign}if(tu){let Li=Yc(Er,ri);cu.splice(ri,0,Li[0]),gu.splice(ri,0,Li[1]),gs.values.push(null)}if(vo){Go.splice(ri,0,null);let Li=null;cf?ri==0&&(Li=Kd(Er,ri)):ri>0&&(Li=Kd(Er,ri)),rl.splice(ri,0,Li),od.splice(ri,0,0),Ul.splice(ri,0,0)}Sl("addSeries",ri)}function Vh(Er,ri){ri=ri??io.length,Er=Sr==1?pa(Er,ri,qn,Jr):pa(Er,ri,{},Kr),io.splice(ri,0,Er),Cf(io[ri],ri)}$n.addSeries=Vh;function pu(Er){if(io.splice(Er,1),tu){gs.values.splice(Er,1),gu.splice(Er,1);let ri=cu.splice(Er,1)[0];wc(null,ri.firstChild),ri.remove()}vo&&(Go.splice(Er,1),rl.splice(Er,1)[0].remove(),od.splice(Er,1),Ul.splice(Er,1)),Sl("delSeries",Er)}$n.delSeries=pu;const Xl=[!1,!1,!1,!1];function Zu(Er,ri){if(Er._show=Er.show,Er.show){let Li=Er.side%2,Gi=yo[Er.scale];Gi==null&&(Er.scale=Li?io[1].scale:Ha,Gi=yo[Er.scale]);let ha=Gi.time;Er.size=qe(Er.size),Er.space=qe(Er.space),Er.rotate=qe(Er.rotate),Cr(Er.incrs)&&Er.incrs.forEach(Qa=>{!An.has(Qa)&&An.set(Qa,Un(Qa))}),Er.incrs=qe(Er.incrs||(Gi.distr==2?xr:ha?bs==1?Ii:k:di)),Er.splits=qe(Er.splits||(ha&&Gi.distr==1?Ls:Gi.distr==3?hi:Gi.distr==4?Ti:ci)),Er.stroke=qe(Er.stroke),Er.grid.stroke=qe(Er.grid.stroke),Er.ticks.stroke=qe(Er.ticks.stroke),Er.border.stroke=qe(Er.border.stroke);let Da=Er.values;Er.values=Cr(Da)&&!Cr(Da[0])?qe(Da):ha?Cr(Da)?ot(oo,Ye(Da,ro)):ni(Da)?Lt(oo,Da):Da||Ns:Da||yr,Er.filter=qe(Er.filter||(Gi.distr>=3&&Gi.log==10?or:Gi.distr==3&&Gi.log==2?rt:un)),Er.font=fr(Er.font),Er.labelFont=fr(Er.labelFont),Er._size=Er.size($n,null,ri,0),Er._space=Er._rotate=Er._incrs=Er._found=Er._splits=Er._values=null,Er._size>0&&(Xl[ri]=!0,Er._el=ke(m,ja))}}function ff(Er,ri,Li,Gi){let[ha,Da,Qa,so]=Li,To=ri%2,Ko=0;return To==0&&(so||Da)&&(Ko=ri==0&&!ha||ri==2&&!Qa?ln(kt.size/3):0),To==1&&(ha||Qa)&&(Ko=ri==1&&!Da||ri==3&&!so?ln(_n.size/2):0),Ko}const Of=$n.padding=(wt.padding||[ff,ff,ff,ff]).map(Er=>qe(Nn(Er,ff))),Zc=$n._padding=Of.map((Er,ri)=>Er($n,ri,Xl,0));let cl,Eu=null,il=null;const sd=Sr==1?io[0].idxs:null;let wu=null,Uf=!1;function sh(Er,ri){if(cn=Er??[],$n.data=$n._data=cn,Sr==2){cl=0;for(let Li=1;Li<io.length;Li++)cl+=cn[Li][0].length}else{cn.length==0&&($n.data=$n._data=cn=[[]]),wu=cn[0],cl=wu.length;let Li=cn;if(Ho==2){Li=cn.slice();let Gi=Li[0]=Array(cl);for(let ha=0;ha<cl;ha++)Gi[ha]=ha}$n._data=cn=Li}if(Tc(!0),Sl("setData"),Ho==2&&(lf=!0),ri!==!1){let Li=to;Li.auto($n,Uf)?oc():uc(Ha,Li.min,Li.max),Cc=Cc||Bo.left>=0,Il=!0,Qc()}}$n.setData=sh;function oc(){Uf=!0;let Er,ri;Sr==1&&(cl>0?(Eu=sd[0]=0,il=sd[1]=cl-1,Er=cn[0][Eu],ri=cn[0][il],Ho==2?(Er=Eu,ri=il):Er==ri&&(Ho==3?[Er,ri]=Wn(Er,Er,to.log,!1):Ho==4?[Er,ri]=er(Er,Er,to.log,!1):to.time?ri=Er+ln(86400/bs):[Er,ri]=Jn(Er,ri,Fn,!0))):(Eu=sd[0]=Er=null,il=sd[1]=ri=null)),uc(Ha,Er,ri)}let ru,Tf,Oc,df,ud,Tl,as,nu,Xu,Ql;function Af(Er,ri,Li,Gi,ha,Da){Er??=A,Li??=hr,Gi??="butt",ha??=A,Da??="round",Er!=ru&&(Pa.strokeStyle=ru=Er),ha!=Tf&&(Pa.fillStyle=Tf=ha),ri!=Oc&&(Pa.lineWidth=Oc=ri),Da!=ud&&(Pa.lineJoin=ud=Da),Gi!=Tl&&(Pa.lineCap=Tl=Gi),Li!=df&&Pa.setLineDash(df=Li)}function Rf(Er,ri,Li,Gi){ri!=Tf&&(Pa.fillStyle=Tf=ri),Er!=as&&(Pa.font=as=Er),Li!=nu&&(Pa.textAlign=nu=Li),Gi!=Xu&&(Pa.textBaseline=Xu=Gi)}function ku(Er,ri,Li,Gi,ha=0){if(Gi.length>0&&Er.auto($n,Uf)&&(ri==null||ri.min==null)){let Da=Nn(Eu,0),Qa=Nn(il,Gi.length-1),so=Li.min==null?Cn(Gi,Da,Qa,ha,Er.distr==3):[Li.min,Li.max];Er.min=Yn(Er.min,Li.min=so[0]),Er.max=ht(Er.max,Li.max=so[1])}}const Oh={min:null,max:null};function zh(){for(let Gi in yo){let ha=yo[Gi];$a[Gi]==null&&(ha.min==null||$a[Ha]!=null&&ha.auto($n,Uf))&&($a[Gi]=Oh)}for(let Gi in yo){let ha=yo[Gi];$a[Gi]==null&&ha.from!=null&&$a[ha.from]!=null&&($a[Gi]=Oh)}$a[Ha]!=null&&Tc(!0);let Er={};for(let Gi in $a){let ha=$a[Gi];if(ha!=null){let Da=Er[Gi]=sn(yo[Gi],zr);if(ha.min!=null)Rn(Da,ha);else if(Gi!=Ha||Sr==2)if(cl==0&&Da.from==null){let Qa=Da.range($n,null,null,Gi);Da.min=Qa[0],Da.max=Qa[1]}else Da.min=Je,Da.max=-Je}}if(cl>0){io.forEach((Gi,ha)=>{if(Sr==1){let Da=Gi.scale,Qa=$a[Da];if(Qa==null)return;let so=Er[Da];if(ha==0){let To=so.range($n,so.min,so.max,Da);so.min=To[0],so.max=To[1],Eu=rn(so.min,cn[0]),il=rn(so.max,cn[0]),il-Eu>1&&(cn[0][Eu]<so.min&&Eu++,cn[0][il]>so.max&&il--),Gi.min=wu[Eu],Gi.max=wu[il]}else Gi.show&&Gi.auto&&ku(so,Qa,Gi,cn[ha],Gi.sorted);Gi.idxs[0]=Eu,Gi.idxs[1]=il}else if(ha>0&&Gi.show&&Gi.auto){let[Da,Qa]=Gi.facets,so=Da.scale,To=Qa.scale,[Ko,rs]=cn[ha],cs=Er[so],Ks=Er[To];cs!=null&&ku(cs,$a[so],Da,Ko,Da.sorted),Ks!=null&&ku(Ks,$a[To],Qa,rs,Qa.sorted),Gi.min=Qa.min,Gi.max=Qa.max}});for(let Gi in Er){let ha=Er[Gi],Da=$a[Gi];if(ha.from==null&&(Da==null||Da.min==null)){let Qa=ha.range($n,ha.min==Je?null:ha.min,ha.max==-Je?null:ha.max,Gi);ha.min=Qa[0],ha.max=Qa[1]}}}for(let Gi in Er){let ha=Er[Gi];if(ha.from!=null){let Da=Er[ha.from];if(Da.min==null)ha.min=ha.max=null;else{let Qa=ha.range($n,Da.min,Da.max,Gi);ha.min=Qa[0],ha.max=Qa[1]}}}let ri={},Li=!1;for(let Gi in Er){let ha=Er[Gi],Da=yo[Gi];if(Da.min!=ha.min||Da.max!=ha.max){Da.min=ha.min,Da.max=ha.max;let Qa=Da.distr;Da._min=Qa==3?Ke(Da.min):Qa==4?We(Da.min,Da.asinh):Qa==100?Da.fwd(Da.min):Da.min,Da._max=Qa==3?Ke(Da.max):Qa==4?We(Da.max,Da.asinh):Qa==100?Da.fwd(Da.max):Da.max,ri[Gi]=Li=!0}}if(Li){io.forEach((Gi,ha)=>{Sr==2?ha>0&&ri.y&&(Gi._paths=null):ri[Gi.scale]&&(Gi._paths=null)});for(let Gi in ri)lf=!0,Sl("setScale",Gi);vo&&Bo.left>=0&&(Cc=Il=!0)}for(let Gi in $a)$a[Gi]=null}function el(Er){let ri=Qe(Eu-1,0,cl-1),Li=Qe(il+1,0,cl-1);for(;Er[ri]==null&&ri>0;)ri--;for(;Er[Li]==null&&Li<cl-1;)Li++;return[ri,Li]}function Vf(){if(cl>0){let Er=io.some(ri=>ri._focus)&&Ql!=$c.alpha;Er&&(Pa.globalAlpha=Ql=$c.alpha),io.forEach((ri,Li)=>{if(Li>0&&ri.show&&(Xc(Li,!1),Xc(Li,!0),ri._paths==null)){let Gi=Ql;Ql!=ri.alpha&&(Pa.globalAlpha=Ql=ri.alpha);let ha=Sr==2?[0,cn[Li][0].length-1]:el(cn[Li]);ri._paths=ri.paths($n,Li,ha[0],ha[1]),Ql!=Gi&&(Pa.globalAlpha=Ql=Gi)}}),io.forEach((ri,Li)=>{if(Li>0&&ri.show){let Gi=Ql;Ql!=ri.alpha&&(Pa.globalAlpha=Ql=ri.alpha),ri._paths!=null&&Uc(Li,!1);{let ha=ri._paths!=null?ri._paths.gaps:null,Da=ri.points.show($n,Li,Eu,il,ha),Qa=ri.points.filter($n,Li,Da,ha);(Da||Qa)&&(ri.points._paths=ri.points.paths($n,Li,Eu,il,Qa),Uc(Li,!0))}Ql!=Gi&&(Pa.globalAlpha=Ql=Gi),Sl("drawSeries",Li)}}),Er&&(Pa.globalAlpha=Ql=1)}}function Xc(Er,ri){let Li=ri?io[Er].points:io[Er];Li._stroke=Li.stroke($n,Er),Li._fill=Li.fill($n,Er)}function Uc(Er,ri){let Li=ri?io[Er].points:io[Er],{stroke:Gi,fill:ha,clip:Da,flags:Qa,_stroke:so=Li._stroke,_fill:To=Li._fill,_width:Ko=Li.width}=Li._paths;Ko=Lr(Ko*Wt,3);let rs=null,cs=Ko%2/2;ri&&To==null&&(To=Ko>0?"#fff":so);let Ks=Li.pxAlign==1&&cs>0;if(Ks&&Pa.translate(cs,cs),!ri){let yu=Zl-Ko/2,Su=Bl-Ko/2,fu=Tu+Ko,Bs=ac+Ko;rs=new Path2D,rs.rect(yu,Su,fu,Bs)}ri?sc(so,Ko,Li.dash,Li.cap,To,Gi,ha,Qa,Da):bo(Er,so,Ko,Li.dash,Li.cap,To,Gi,ha,Qa,rs,Da),Ks&&Pa.translate(-cs,-cs)}function bo(Er,ri,Li,Gi,ha,Da,Qa,so,To,Ko,rs){let cs=!1;To!=0&&lo.forEach((Ks,yu)=>{if(Ks.series[0]==Er){let Su=io[Ks.series[1]],fu=cn[Ks.series[1]],Bs=(Su._paths||mr).band;Cr(Bs)&&(Bs=Ks.dir==1?Bs[0]:Bs[1]);let _s,Ku=null;Su.show&&Bs&&kr(fu,Eu,il)?(Ku=Ks.fill($n,yu)||Da,_s=Su._paths.clip):Bs=null,sc(ri,Li,Gi,ha,Ku,Qa,so,To,Ko,rs,_s,Bs),cs=!0}}),cs||sc(ri,Li,Gi,ha,Da,Qa,so,To,Ko,rs)}const zf=Ot|It;function sc(Er,ri,Li,Gi,ha,Da,Qa,so,To,Ko,rs,cs){Af(Er,ri,Li,Gi,ha),(To||Ko||cs)&&(Pa.save(),To&&Pa.clip(To),Ko&&Pa.clip(Ko)),cs?(so&zf)==zf?(Pa.clip(cs),rs&&Pa.clip(rs),Gf(ha,Qa),Wf(Er,Da,ri)):so&It?(Gf(ha,Qa),Pa.clip(cs),Wf(Er,Da,ri)):so&Ot&&(Pa.save(),Pa.clip(cs),rs&&Pa.clip(rs),Gf(ha,Qa),Pa.restore(),Wf(Er,Da,ri)):(Gf(ha,Qa),Wf(Er,Da,ri)),(To||Ko||cs)&&Pa.restore()}function Wf(Er,ri,Li){Li>0&&(ri instanceof Map?ri.forEach((Gi,ha)=>{Pa.strokeStyle=ru=ha,Pa.stroke(Gi)}):ri!=null&&Er&&Pa.stroke(ri))}function Gf(Er,ri){ri instanceof Map?ri.forEach((Li,Gi)=>{Pa.fillStyle=Tf=Gi,Pa.fill(Li)}):ri!=null&&Er&&Pa.fill(ri)}function Uu(Er,ri,Li,Gi){let ha=fs[Er],Da;if(Gi<=0)Da=[0,0];else{let Qa=ha._space=ha.space($n,Er,ri,Li,Gi),so=ha._incrs=ha.incrs($n,Er,ri,Li,Gi,Qa);Da=Hn(ri,Li,so,Gi,Qa)}return ha._found=Da}function ld(Er,ri,Li,Gi,ha,Da,Qa,so,To,Ko){let rs=Qa%2/2;fo==1&&Pa.translate(rs,rs),Af(so,Qa,To,Ko,so),Pa.beginPath();let cs,Ks,yu,Su,fu=ha+(Gi==0||Gi==3?-Da:Da);Li==0?(Ks=ha,Su=fu):(cs=ha,yu=fu);for(let Bs=0;Bs<Er.length;Bs++)ri[Bs]!=null&&(Li==0?cs=yu=Er[Bs]:Ks=Su=Er[Bs],Pa.moveTo(cs,Ks),Pa.lineTo(yu,Su));Pa.stroke(),fo==1&&Pa.translate(-rs,-rs)}function uh(Er){let ri=!0;return fs.forEach((Li,Gi)=>{if(!Li.show)return;let ha=yo[Li.scale];if(ha.min==null){Li._show&&(ri=!1,Li._show=!1,Tc(!1));return}else Li._show||(ri=!1,Li._show=!0,Tc(!1));let Da=Li.side,Qa=Da%2,{min:so,max:To}=ha,[Ko,rs]=Uu(Gi,so,To,Qa==0?js:Xo);if(rs==0)return;let cs=ha.distr==2,Ks=Li._splits=Li.splits($n,Gi,so,To,Ko,rs,cs),yu=ha.distr==2?Ks.map(_s=>wu[_s]):Ks,Su=ha.distr==2?wu[Ks[1]]-wu[Ks[0]]:Ko,fu=Li._values=Li.values($n,Li.filter($n,yu,Gi,rs,Su),Gi,rs,Su);Li._rotate=Da==2?Li.rotate($n,fu,Gi,rs):0;let Bs=Li._size;Li._size=pn(Li.size($n,fu,Gi,Er)),Bs!=null&&Li._size!=Bs&&(ri=!1)}),ri}function lh(Er){let ri=!0;return Of.forEach((Li,Gi)=>{let ha=Li($n,Gi,Xl,Er);ha!=Zc[Gi]&&(ri=!1),Zc[Gi]=ha}),ri}function ch(){for(let Er=0;Er<fs.length;Er++){let ri=fs[Er];if(!ri.show||!ri._show)continue;let Li=ri.side,Gi=Li%2,ha,Da,Qa=ri.stroke($n,Er),so=Li==0||Li==3?-1:1,[To,Ko]=ri._found;if(ri.label!=null){let Rl=ri.labelGap*so,lc=ln((ri._lpos+Rl)*Wt);Rf(ri.labelFont[0],Qa,"center",Li==2?Q:ce),Pa.save(),Gi==1?(ha=Da=0,Pa.translate(lc,ln(Bl+ac/2)),Pa.rotate((Li==3?-he:he)/2)):(ha=ln(Zl+Tu/2),Da=lc);let pd=ze(ri.label)?ri.label($n,Er,To,Ko):ri.label;Pa.fillText(pd,ha,Da),Pa.restore()}if(Ko==0)continue;let rs=yo[ri.scale],cs=Gi==0?Tu:ac,Ks=Gi==0?Zl:Bl,yu=ri._splits,Su=rs.distr==2?yu.map(Rl=>wu[Rl]):yu,fu=rs.distr==2?wu[yu[1]]-wu[yu[0]]:To,Bs=ri.ticks,_s=ri.border,Ku=Bs.show?Bs.size:0,al=ln(Ku*Wt),El=ln((ri.alignTo==2?ri._size-Ku-ri.gap:ri.gap)*Wt),Wu=ri._rotate*-he/180,ol=Zo(ri._pos*Wt),Rc=(al+El)*so,fl=ol+Rc;Da=Gi==0?fl:0,ha=Gi==1?fl:0;let Pc=ri.font[0],tf=ri.align==1?se:ri.align==2?q:Wu>0?se:Wu<0?q:Gi==0?"center":Li==3?q:se,Ic=Wu||Gi==1?"middle":Li==2?Q:ce;Rf(Pc,Qa,tf,Ic);let vc=ri.font[1]*ri.lineGap,Dc=yu.map(Rl=>Zo(la(Rl,rs,cs,Ks))),pf=ri._values;for(let Rl=0;Rl<pf.length;Rl++){let lc=pf[Rl];if(lc!=null){Gi==0?ha=Dc[Rl]:Da=Dc[Rl],lc=""+lc;let pd=lc.indexOf(` `)==-1?[lc]:lc.split(/\n/gm);for(let tc=0;tc<pd.length;tc++){let vd=pd[tc];Wu?(Pa.save(),Pa.translate(ha,Da+tc*vc),Pa.rotate(Wu),Pa.fillText(vd,0,0),Pa.restore()):Pa.fillText(vd,ha,Da+tc*vc)}}}Bs.show&&ld(Dc,Bs.filter($n,Su,Er,Ko,fu),Gi,Li,ol,al,Lr(Bs.width*Wt,3),Bs.stroke($n,Er),Bs.dash,Bs.cap);let nf=ri.grid;nf.show&&ld(Dc,nf.filter($n,Su,Er,Ko,fu),Gi,Gi==0?2:1,Gi==0?Bl:Zl,Gi==0?ac:Tu,Lr(nf.width*Wt,3),nf.stroke($n,Er),nf.dash,nf.cap),_s.show&&ld([ol],[1],Gi==0?1:0,Gi==0?1:2,Gi==1?Bl:Zl,Gi==1?ac:Tu,Lr(_s.width*Wt,3),_s.stroke($n,Er),_s.dash,_s.cap)}Sl("drawAxes")}function Tc(Er){io.forEach((ri,Li)=>{Li>0&&(ri._paths=null,Er&&(Sr==1?(ri.min=null,ri.max=null):ri.facets.forEach(Gi=>{Gi.min=null,Gi.max=null})))})}let qs=!1,Rd=!1,Hf=[];function Yd(){Rd=!1;for(let Er=0;Er<Hf.length;Er++)Sl(...Hf[Er]);Hf.length=0}function Qc(){qs||(de(Pd),qs=!0)}function Kf(Er,ri=!1){qs=!0,Rd=ri,Er($n),Pd(),ri&&Hf.length>0&&queueMicrotask(Yd)}$n.batch=Kf;function Pd(){if(Ju&&(zh(),Ju=!1),lf&&(Od(),lf=!1),$f){if(Z(Oo,se,Ou),Z(Oo,Q,gl),Z(Oo,Se,js),Z(Oo,z,Xo),Z(Do,se,Ou),Z(Do,Q,gl),Z(Do,Se,js),Z(Do,z,Xo),Z(ja,Se,ml),Z(ja,z,jl),Ga.width=ln(ml*Wt),Ga.height=ln(jl*Wt),fs.forEach(({_el:Er,_show:ri,_size:Li,_pos:Gi,side:ha})=>{if(Er!=null)if(ri){let Da=ha===3||ha===0?Li:0,Qa=ha%2==1;Z(Er,Qa?"left":"top",Gi-Da),Z(Er,Qa?"width":"height",Li),Z(Er,Qa?"top":"left",Qa?gl:Ou),Z(Er,Qa?"height":"width",Qa?Xo:js),Ct(Er,S)}else $t(Er,S)}),ru=Tf=Oc=ud=Tl=as=nu=Xu=df=null,Ql=1,Hs(!0),Ou!=Ol||gl!=Mu||js!=hc||Xo!=xc){Tc(!1);let Er=js/hc,ri=Xo/xc;if(vo&&!Cc&&Bo.left>=0){Bo.left*=Er,Bo.top*=ri,Pf&&_e(Pf,ln(Bo.left),0,js,Xo),If&&_e(If,0,ln(Bo.top),js,Xo);for(let Li=0;Li<rl.length;Li++){let Gi=rl[Li];Gi!=null&&(od[Li]*=Er,Ul[Li]*=ri,_e(Gi,pn(od[Li]),pn(Ul[Li]),js,Xo))}}if(Lu.show&&!wf&&Lu.left>=0&&Lu.width>0){Lu.left*=Er,Lu.width*=Er,Lu.top*=ri,Lu.height*=ri;for(let Li in iu)Z(hf,Li,Lu[Li])}Ol=Ou,Mu=gl,hc=js,xc=Xo}Sl("setSize"),$f=!1}ml>0&&jl>0&&(Pa.clearRect(0,0,Ga.width,Ga.height),Sl("drawClear"),vs.forEach(Er=>Er()),Sl("draw")),Lu.show&&wf&&(fd(Lu),wf=!1),vo&&Cc&&(Po(null,!0,!1),Cc=!1),gs.show&&gs.live&&Il&&(co(),Il=!1),ya||(ya=!0,$n.status=1,Sl("ready")),Uf=!1,qs=!1}$n.redraw=(Er,ri)=>{lf=ri||!1,Er!==!1?uc(Ha,to.min,to.max):Qc()};function qc(Er,ri){let Li=yo[Er];if(Li.from==null){if(cl==0){let Gi=Li.range($n,ri.min,ri.max,Er);ri.min=Gi[0],ri.max=Gi[1]}if(ri.min>ri.max){let Gi=ri.min;ri.min=ri.max,ri.max=Gi}if(cl>1&&ri.min!=null&&ri.max!=null&&ri.max-ri.min<1e-16)return;Er==Ha&&Li.distr==2&&cl>0&&(ri.min=rn(ri.min,cn[0]),ri.max=rn(ri.max,cn[0]),ri.min==ri.max&&ri.max++),$a[Er]=ri,Ju=!0,Qc()}}$n.setScale=qc;let pc,Jd,Pf,If,fh,Id,Df,cd,Dd,Yf,Vu,Au,ql=!1;const Vl=Bo.drag;let zu=Vl.x,yl=Vl.y;vo&&(Bo.x&&(pc=ke(O,Do)),Bo.y&&(Jd=ke(R,Do)),to.ori==0?(Pf=pc,If=Jd):(Pf=Jd,If=pc),Vu=Bo.left,Au=Bo.top);const Lu=$n.select=Rn({show:!0,over:!0,left:0,width:0,top:0,height:0},wt.select),hf=Lu.show?ke(d,Lu.over?Do:Oo):null;function fd(Er,ri){if(Lu.show){for(let Li in Er)Lu[Li]=Er[Li],Li in iu&&Z(hf,Li,Er[Li]);ri!==!1&&Sl("setSelect")}}$n.setSelect=fd;function ef(Er){if(io[Er].show)tu&&Ct(cu[Er],S);else if(tu&&$t(cu[Er],S),vo){let Li=cf?rl[0]:rl[Er];Li!=null&&_e(Li,-10,-10,js,Xo)}}function uc(Er,ri,Li){qc(Er,{min:ri,max:Li})}function Vc(Er,ri,Li,Gi){ri.focus!=null&&ui(Er),ri.show!=null&&io.forEach((ha,Da)=>{Da>0&&(Er==Da||Er==null)&&(ha.show=ri.show,ef(Da),Sr==2?(uc(ha.facets[0].scale,null,null),uc(ha.facets[1].scale,null,null)):uc(ha.scale,null,null),Qc())}),Li!==!1&&Sl("setSeries",Er,ri),Gi&&Qd("setSeries",$n,Er,ri)}$n.setSeries=Vc;function Th(Er,ri){Rn(lo[Er],ri)}function Zd(Er,ri){Er.fill=qe(Er.fill||null),Er.dir=Nn(Er.dir,-1),ri=ri??lo.length,lo.splice(ri,0,Er)}function Pe(Er){Er==null?lo.length=0:lo.splice(Er,1)}$n.addBand=Zd,$n.setBand=Th,$n.delBand=Pe;function ut(Er,ri){io[Er].alpha=ri,vo&&rl[Er]!=null&&(rl[Er].style.opacity=ri),tu&&cu[Er]&&(cu[Er].style.opacity=ri)}let Kt,lr,pr;const Mr={focus:!0};function ui(Er){if(Er!=pr){let ri=Er==null,Li=$c.alpha!=1;io.forEach((Gi,ha)=>{if(Sr==1||ha>0){let Da=ri||ha==0||ha==Er;Gi._focus=ri?null:Da,Li&&ut(ha,Da?1:$c.alpha)}}),pr=Er,Li&&Qc()}}tu&&Jc&&Fl(ie,es,Er=>{Bo._lock||(xf(Er),pr!=null&&Vc(null,Mr,!0,_l.setSeries))});function Ai(Er,ri,Li){let Gi=yo[ri];Li&&(Er=Er/Wt-(Gi.ori==1?gl:Ou));let ha=js;Gi.ori==1&&(ha=Xo,Er=ha-Er),Gi.dir==-1&&(Er=ha-Er);let Da=Gi._min,Qa=Gi._max,so=Er/ha,To=Da+(Qa-Da)*so,Ko=Gi.distr;return Ko==3?De(10,To):Ko==4?pt(To,Gi.asinh):Ko==100?Gi.bwd(To):To}function Xi(Er,ri){let Li=Ai(Er,Ha,ri);return rn(Li,cn[0],Eu,il)}$n.valToIdx=Er=>rn(Er,cn[0]),$n.posToIdx=Xi,$n.posToVal=Ai,$n.valToPos=(Er,ri,Li)=>yo[ri].ori==0?fi(Er,yo[ri],Li?Tu:js,Li?Zl:0):Ci(Er,yo[ri],Li?ac:Xo,Li?Bl:0),$n.setCursor=(Er,ri,Li)=>{Vu=Er.left,Au=Er.top,Po(null,ri,Li)};function ca(Er,ri){Z(hf,se,Lu.left=Er),Z(hf,Se,Lu.width=ri)}function ma(Er,ri){Z(hf,Q,Lu.top=Er),Z(hf,z,Lu.height=ri)}let Wi=to.ori==0?ca:ma,aa=to.ori==1?ca:ma;function Ta(){if(tu&&gs.live)for(let Er=Sr==2?1:0;Er<io.length;Er++){if(Er==0&&fc)continue;let ri=gs.values[Er],Li=0;for(let Gi in ri)gu[Er][Li++].firstChild.nodeValue=ri[Gi]}}function co(Er,ri){if(Er!=null&&(Er.idxs?Er.idxs.forEach((Li,Gi)=>{Go[Gi]=Li}):Xr(Er.idx)||Go.fill(Er.idx),gs.idx=Go[0]),tu&&gs.live){for(let Li=0;Li<io.length;Li++)(Li>0||Sr==1&&!fc)&&So(Li,Go[Li]);Ta()}Il=!1,ri!==!1&&Sl("setLegend")}$n.setLegend=co;function So(Er,ri){let Li=io[Er],Gi=Er==0&&Ho==2?wu:cn[Er],ha;fc?ha=Li.values($n,Er,ri)??uf:(ha=Li.value($n,ri==null?null:Gi[ri],Er,ri),ha=ha==null?uf:{_:ha}),gs.values[Er]=ha}function Po(Er,ri,Li){Dd=Vu,Yf=Au,[Vu,Au]=Bo.move($n,Vu,Au),Bo.left=Vu,Bo.top=Au,vo&&(Pf&&_e(Pf,ln(Vu),0,js,Xo),If&&_e(If,0,ln(Au),js,Xo));let Gi,ha=Eu>il;Kt=Je,lr=null;let Da=to.ori==0?js:Xo,Qa=to.ori==1?js:Xo;if(Vu<0||cl==0||ha){Gi=Bo.idx=null;for(let so=0;so<io.length;so++){let To=rl[so];To!=null&&_e(To,-10,-10,js,Xo)}Jc&&Vc(null,Mr,!0,Er==null&&_l.setSeries),gs.live&&(Go.fill(Gi),Il=!0)}else{let so,To,Ko;Sr==1&&(so=to.ori==0?Vu:Au,To=Ai(so,Ha),Gi=Bo.idx=rn(To,cn[0],Eu,il),Ko=ls(cn[0][Gi],to,Da,0));let rs=-10,cs=-10,Ks=0,yu=0,Su=!0,fu="",Bs="";for(let _s=Sr==2?1:0;_s<io.length;_s++){let Ku=io[_s],al=Go[_s],El=al==null?null:Sr==1?cn[_s][al]:cn[_s][1][al],Wu=Bo.dataIdx($n,_s,Gi,To),ol=Wu==null?null:Sr==1?cn[_s][Wu]:cn[_s][1][Wu];if(Il=Il||ol!=El||Wu!=al,Go[_s]=Wu,_s>0&&Ku.show){let Rc=Wu==null?-10:Wu==Gi?Ko:ls(Sr==1?cn[0][Wu]:cn[_s][0][Wu],to,Da,0),fl=ol==null?-10:xo(ol,Sr==1?yo[Ku.scale]:yo[Ku.facets[1].scale],Qa,0);if(Jc&&ol!=null){let Pc=to.ori==1?Vu:Au,tf=Fe($c.dist($n,_s,Wu,fl,Pc));if(tf<Kt){let Ic=$c.bias;if(Ic!=0){let vc=Ai(Pc,Ku.scale),Dc=ol>=0?1:-1,pf=vc>=0?1:-1;pf==Dc&&(pf==1?Ic==1?ol>=vc:ol<=vc:Ic==1?ol<=vc:ol>=vc)&&(Kt=tf,lr=_s)}else Kt=tf,lr=_s}}if(Il||cf){let Pc,tf;to.ori==0?(Pc=Rc,tf=fl):(Pc=fl,tf=Rc);let Ic,vc,Dc,pf,nf,Rl,lc=!0,pd=Dl.bbox;if(pd!=null){lc=!1;let tc=pd($n,_s);Dc=tc.left,pf=tc.top,Ic=tc.width,vc=tc.height}else Dc=Pc,pf=tf,Ic=vc=Dl.size($n,_s);if(Rl=Dl.fill($n,_s),nf=Dl.stroke($n,_s),cf)_s==lr&&Kt<=$c.prox&&(rs=Dc,cs=pf,Ks=Ic,yu=vc,Su=lc,fu=Rl,Bs=nf);else{let tc=rl[_s];tc!=null&&(od[_s]=Dc,Ul[_s]=pf,Ft(tc,Ic,vc,lc),Me(tc,Rl,nf),_e(tc,pn(Dc),pn(pf),js,Xo))}}}}if(cf){let _s=$c.prox,Ku=pr==null?Kt<=_s:Kt>_s||lr!=pr;if(Il||Ku){let al=rl[0];al!=null&&(od[0]=rs,Ul[0]=cs,Ft(al,Ks,yu,Su),Me(al,fu,Bs),_e(al,pn(rs),pn(cs),js,Xo))}}}if(Lu.show&&ql)if(Er!=null){let[so,To]=_l.scales,[Ko,rs]=_l.match,[cs,Ks]=Er.cursor.sync.scales,yu=Er.cursor.drag;if(zu=yu._x,yl=yu._y,zu||yl){let{left:Su,top:fu,width:Bs,height:_s}=Er.select,Ku=Er.scales[cs].ori,al=Er.posToVal,El,Wu,ol,Rc,fl,Pc=so!=null&&Ko(so,cs),tf=To!=null&&rs(To,Ks);Pc&&zu?(Ku==0?(El=Su,Wu=Bs):(El=fu,Wu=_s),ol=yo[so],Rc=ls(al(El,cs),ol,Da,0),fl=ls(al(El+Wu,cs),ol,Da,0),Wi(Yn(Rc,fl),Fe(fl-Rc))):Wi(0,Da),tf&&yl?(Ku==1?(El=Su,Wu=Bs):(El=fu,Wu=_s),ol=yo[To],Rc=xo(al(El,Ks),ol,Qa,0),fl=xo(al(El+Wu,Ks),ol,Qa,0),aa(Yn(Rc,fl),Fe(fl-Rc))):aa(0,Qa)}else au()}else{let so=Fe(Dd-fh),To=Fe(Yf-Id);if(to.ori==1){let Ks=so;so=To,To=Ks}zu=Vl.x&&so>=Vl.dist,yl=Vl.y&&To>=Vl.dist;let Ko=Vl.uni;Ko!=null?zu&&yl&&(zu=so>=Ko,yl=To>=Ko,!zu&&!yl&&(To>so?yl=!0:zu=!0)):Vl.x&&Vl.y&&(zu||yl)&&(zu=yl=!0);let rs,cs;zu&&(to.ori==0?(rs=Df,cs=Vu):(rs=cd,cs=Au),Wi(Yn(rs,cs),Fe(cs-rs)),yl||aa(0,Qa)),yl&&(to.ori==1?(rs=Df,cs=Vu):(rs=cd,cs=Au),aa(Yn(rs,cs),Fe(cs-rs)),zu||Wi(0,Da)),!zu&&!yl&&(Wi(0,0),aa(0,0))}if(Vl._x=zu,Vl._y=yl,Er==null){if(Li){if(Sp!=null){let[so,To]=_l.scales;_l.values[0]=so!=null?Ai(to.ori==0?Vu:Au,so):null,_l.values[1]=To!=null?Ai(to.ori==1?Vu:Au,To):null}Qd(T,$n,Vu,Au,js,Xo,Gi)}if(Jc){let so=Li&&_l.setSeries,To=$c.prox;pr==null?Kt<=To&&Vc(lr,Mr,!0,so):Kt>To?Vc(null,Mr,!0,so):lr!=pr&&Vc(lr,Mr,!0,so)}}Il&&(gs.idx=Gi,co()),ri!==!1&&Sl("setCursor")}let As=null;Object.defineProperty($n,"rect",{get(){return As==null&&Hs(!1),As}});function Hs(Er=!1){Er?As=null:(As=Do.getBoundingClientRect(),Sl("syncRect",As))}function bu(Er,ri,Li,Gi,ha,Da,Qa){Bo._lock||ql&&Er!=null&&Er.movementX==0&&Er.movementY==0||(Zs(Er,ri,Li,Gi,ha,Da,Qa,!1,Er!=null),Er!=null?Po(null,!0,!0):Po(ri,!0,!1))}function Zs(Er,ri,Li,Gi,ha,Da,Qa,so,To){if(As==null&&Hs(!1),xf(Er),Er!=null)Li=Er.clientX-As.left,Gi=Er.clientY-As.top;else{if(Li<0||Gi<0){Vu=-10,Au=-10;return}let[Ko,rs]=_l.scales,cs=ri.cursor.sync,[Ks,yu]=cs.values,[Su,fu]=cs.scales,[Bs,_s]=_l.match,Ku=ri.axes[0].side%2==1,al=to.ori==0?js:Xo,El=to.ori==1?js:Xo,Wu=Ku?Da:ha,ol=Ku?ha:Da,Rc=Ku?Gi:Li,fl=Ku?Li:Gi;if(Su!=null?Li=Bs(Ko,Su)?la(Ks,yo[Ko],al,0):-10:Li=al*(Rc/Wu),fu!=null?Gi=_s(rs,fu)?la(yu,yo[rs],El,0):-10:Gi=El*(fl/ol),to.ori==1){let Pc=Li;Li=Gi,Gi=Pc}}To&&(ri==null||ri.cursor.event.type==T)&&((Li<=1||Li>=js-1)&&(Li=On(Li,js)),(Gi<=1||Gi>=Xo-1)&&(Gi=On(Gi,Xo))),so?(fh=Li,Id=Gi,[Df,cd]=Bo.move($n,Li,Gi)):(Vu=Li,Au=Gi)}const iu={width:0,height:0,left:0,top:0};function au(){fd(iu,!1)}let bl,Nu,Ac,Al;function Mf(Er,ri,Li,Gi,ha,Da,Qa){ql=!0,zu=yl=Vl._x=Vl._y=!1,Zs(Er,ri,Li,Gi,ha,Da,Qa,!0,!1),Er!=null&&(Fl(X,Rt,ec,!1),Qd(B,$n,Df,cd,js,Xo,null));let{left:so,top:To,width:Ko,height:rs}=Lu;bl=so,Nu=To,Ac=Ko,Al=rs}function ec(Er,ri,Li,Gi,ha,Da,Qa){ql=Vl._x=Vl._y=!1,Zs(Er,ri,Li,Gi,ha,Da,Qa,!1,!0);let{left:so,top:To,width:Ko,height:rs}=Lu,cs=Ko>0||rs>0,Ks=bl!=so||Nu!=To||Ac!=Ko||Al!=rs;if(cs&&Ks&&fd(Lu),Vl.setScale&&cs&&Ks){let yu=so,Su=Ko,fu=To,Bs=rs;if(to.ori==1&&(yu=To,Su=rs,fu=so,Bs=Ko),zu&&uc(Ha,Ai(yu,Ha),Ai(yu+Su,Ha)),yl)for(let _s in yo){let Ku=yo[_s];_s!=Ha&&Ku.from==null&&Ku.min!=Je&&uc(_s,Ai(fu+Bs,_s),Ai(fu,_s))}au()}else Bo.lock&&(Bo._lock=!Bo._lock,Po(ri,!0,Er!=null));Er!=null&&(wc(X,Rt),Qd(X,$n,Vu,Au,js,Xo,null))}function zc(Er,ri,Li,Gi,ha,Da,Qa){if(Bo._lock)return;xf(Er);let so=ql;if(ql){let To=!0,Ko=!0,rs=10,cs,Ks;to.ori==0?(cs=zu,Ks=yl):(cs=yl,Ks=zu),cs&&Ks&&(To=Vu<=rs||Vu>=js-rs,Ko=Au<=rs||Au>=Xo-rs),cs&&To&&(Vu=Vu<Df?0:js),Ks&&Ko&&(Au=Au<cd?0:Xo),Po(null,!0,!0),ql=!1}Vu=-10,Au=-10,Go.fill(null),Po(null,!0,!0),so&&(ql=so)}function dd(Er,ri,Li,Gi,ha,Da,Qa){Bo._lock||(xf(Er),oc(),au(),Er!=null&&Qd(Te,$n,Vu,Au,js,Xo,null))}function Md(){fs.forEach(Zr),id($n.width,$n.height,!0)}nn(Ze,Dn,Md);const kf={};kf.mousedown=Mf,kf.mousemove=bu,kf.mouseup=ec,kf.dblclick=dd,kf.setSeries=(Er,ri,Li,Gi)=>{let ha=_l.match[2];Li=ha($n,ri,Li),Li!=-1&&Vc(Li,Gi,!0,!1)},vo&&(Fl(B,Do,Mf),Fl(T,Do,bu),Fl(ue,Do,Er=>{xf(Er),Hs(!1)}),Fl(ie,Do,zc),Fl(Te,Do,dd),Is.add($n),$n.syncRect=Hs);const Xd=$n.hooks=wt.hooks||{};function Sl(Er,ri,Li){Rd?Hf.push([Er,ri,Li]):Er in Xd&&Xd[Er].forEach(Gi=>{Gi.call(null,$n,ri,Li)})}(wt.plugins||[]).forEach(Er=>{for(let ri in Er.hooks)Xd[ri]=(Xd[ri]||[]).concat(Er.hooks[ri])});const Wh=(Er,ri,Li)=>Li,_l=Rn({key:null,setSeries:!1,filters:{pub:xt,sub:xt},scales:[Ha,io[1]?io[1].scale:null],match:[_t,_t,Wh],values:[null,null]},Bo.sync);_l.match.length==2&&_l.match.push(Wh),Bo.sync=_l;const Sp=_l.key,hd=et(Sp);function Qd(Er,ri,Li,Gi,ha,Da,Qa){_l.filters.pub(Er,ri,Li,Gi,ha,Da,Qa)&&hd.pub(Er,ri,Li,Gi,ha,Da,Qa)}hd.sub($n);function Gh(Er,ri,Li,Gi,ha,Da,Qa){_l.filters.sub(Er,ri,Li,Gi,ha,Da,Qa)&&kf[Er](null,ri,Li,Gi,ha,Da,Qa)}$n.pub=Gh;function _p(){hd.unsub($n),Is.delete($n),$u.clear(),Pn(Ze,Dn,Md),_a.remove(),es?.remove(),Sl("destroy")}$n.destroy=_p;function Ah(){Sl("init",wt,cn),sh(cn||wt.data,!1),$a[Ha]?qc(Ha,$a[Ha]):oc(),wf=Lu.show&&(Lu.width>0||Lu.height>0),Cc=Il=!0,id(wt.width,wt.height)}return io.forEach(Cf),fs.forEach(Zu),rr?rr instanceof HTMLElement?(rr.appendChild(_a),Ah()):rr($n,Ah):Ah(),$n}gi.assign=Rn,gi.fmtNum=fe,gi.rangeNum=Jn,gi.rangeLog=Wn,gi.rangeAsinh=er,gi.orient=Mn,gi.pxRatio=Wt,gi.join=Oi,gi.fmtDate=mi,gi.tzDate=Qr,gi.sync=et;{gi.addGap=Jt,gi.clipGaps=jn;let wt=gi.paths={points:Xa};wt.linear=no,wt.stepped=wo,wt.bars=Ka,wt.spline=Us}},36805:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scheduleIterable=void 0;var l=u(48051),g=u(34891),y=u(10281),x=u(28619);function f(p,h){return new l.Observable(function(E){var v;return x.executeSchedule(E,h,function(){v=p[g.iterator](),x.executeSchedule(E,h,function(){var m,S,d;try{m=v.next(),S=m.value,d=m.done}catch(O){E.error(O);return}d?E.complete():E.next(S)},0,!0)}),function(){return y.isFunction(v?.return)&&v.return()}})}w.scheduleIterable=f},36977:function(Ge,w,u){"use strict";var l=this&&this.__read||function(f,p){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var E=h.call(f),v,m=[],S;try{for(;(p===void 0||p-- >0)&&!(v=E.next()).done;)m.push(v.value)}catch(d){S={error:d}}finally{try{v&&!v.done&&(h=E.return)&&h.call(E)}finally{if(S)throw S.error}}return m},g=this&&this.__spreadArray||function(f,p){for(var h=0,E=p.length,v=f.length;h<E;h++,v++)f[v]=p[h];return f};Object.defineProperty(w,"__esModule",{value:!0}),w.zipWith=void 0;var y=u(26749);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return y.zip.apply(void 0,g([],l(f)))}w.zipWith=x},37541:(Ge,w,u)=>{"use strict";u.d(w,{l:()=>y});var l=u(55604),g=u(61209);function y(x){return(0,g.T)(x[l.s])}},37564:(Ge,w,u)=>{"use strict";u(14912)},37748:(Ge,w,u)=>{"use strict";u.d(w,{l:()=>f});var l=u(15964),g=u(13752),y=u(92908),x=u(64878);function f(p){return(0,y.N)(function(h,E){var v,m=!1,S,d=function(){v=h.subscribe((0,x._)(E,void 0,void 0,function(O){S||(S=new g.B,(0,l.Tg)(p(S)).subscribe((0,x._)(E,function(){return v?d():m=!0}))),S&&S.next(O)})),m&&(v.unsubscribe(),v=null,m=!1,d())};d()})}},37887:(Ge,w,u)=>{var l=u(71673),g=u(51479);function y(x,f,p,h,E){return new g(l().w(x,f,p,h),E||Promise)}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},37930:(Ge,w,u)=>{"use strict";u.d(w,{$b:()=>l,HT:()=>y,Ic:()=>g});var l;(function(x){x.TRACE="trace",x.DEBUG="debug",x.INFO="info",x.LOG="log",x.WARN="warn",x.ERROR="error"})(l||(l={}));const g=l.LOG,y=[l.TRACE,l.DEBUG,l.INFO,l.LOG,l.WARN,l.ERROR]},38092:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>Sa});function l(){return l=Object.assign?Object.assign.bind():function(Xt){for(var V=1;V<arguments.length;V++){var Y=arguments[V];for(var D in Y)({}).hasOwnProperty.call(Y,D)&&(Xt[D]=Y[D])}return Xt},l.apply(null,arguments)}function g(Xt){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},g(Xt)}function y(Xt,V){if(g(Xt)!="object"||!Xt)return Xt;var Y=Xt[Symbol.toPrimitive];if(Y!==void 0){var D=Y.call(Xt,V||"default");if(g(D)!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(Xt)}function x(Xt){var V=y(Xt,"string");return g(V)=="symbol"?V:V+""}function f(Xt,V,Y){return(V=x(V))in Xt?Object.defineProperty(Xt,V,{value:Y,enumerable:!0,configurable:!0,writable:!0}):Xt[V]=Y,Xt}function p(Xt,V){var Y=Object.keys(Xt);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(Xt);V&&(D=D.filter(function(P){return Object.getOwnPropertyDescriptor(Xt,P).enumerable})),Y.push.apply(Y,D)}return Y}function h(Xt){for(var V=1;V<arguments.length;V++){var Y=arguments[V]!=null?arguments[V]:{};V%2?p(Object(Y),!0).forEach(function(D){f(Xt,D,Y[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Xt,Object.getOwnPropertyDescriptors(Y)):p(Object(Y)).forEach(function(D){Object.defineProperty(Xt,D,Object.getOwnPropertyDescriptor(Y,D))})}return Xt}function E(Xt,V){(V==null||V>Xt.length)&&(V=Xt.length);for(var Y=0,D=Array(V);Y<V;Y++)D[Y]=Xt[Y];return D}function v(Xt){if(Array.isArray(Xt))return E(Xt)}function m(Xt){if(typeof Symbol<"u"&&Xt[Symbol.iterator]!=null||Xt["@@iterator"]!=null)return Array.from(Xt)}function S(Xt,V){if(Xt){if(typeof Xt=="string")return E(Xt,V);var Y={}.toString.call(Xt).slice(8,-1);return Y==="Object"&&Xt.constructor&&(Y=Xt.constructor.name),Y==="Map"||Y==="Set"?Array.from(Xt):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?E(Xt,V):void 0}}function d(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(Xt){return v(Xt)||m(Xt)||S(Xt)||d()}function R(Xt){if(Array.isArray(Xt))return Xt}function C(Xt,V){var Y=Xt==null?null:typeof Symbol<"u"&&Xt[Symbol.iterator]||Xt["@@iterator"];if(Y!=null){var D,P,oe,Ie,Ue=[],Xe=!0,dt=!1;try{if(oe=(Y=Y.call(Xt)).next,V===0){if(Object(Y)!==Y)return;Xe=!1}else for(;!(Xe=(D=oe.call(Y)).done)&&(Ue.push(D.value),Ue.length!==V);Xe=!0);}catch(kt){dt=!0,P=kt}finally{try{if(!Xe&&Y.return!=null&&(Ie=Y.return(),Object(Ie)!==Ie))return}finally{if(dt)throw P}}return Ue}}function L(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(Xt,V){return R(Xt)||C(Xt,V)||S(Xt,V)||L()}function I(Xt,V){if(Xt==null)return{};var Y={};for(var D in Xt)if({}.hasOwnProperty.call(Xt,D)){if(V.indexOf(D)!==-1)continue;Y[D]=Xt[D]}return Y}function U(Xt,V){if(Xt==null)return{};var Y,D,P=I(Xt,V);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(Xt);for(D=0;D<oe.length;D++)Y=oe[D],V.indexOf(Y)===-1&&{}.propertyIsEnumerable.call(Xt,Y)&&(P[Y]=Xt[Y])}return P}function $(){return $=Object.assign?Object.assign.bind():function(Xt){for(var V=1;V<arguments.length;V++){var Y=arguments[V];for(var D in Y)({}).hasOwnProperty.call(Y,D)&&(Xt[D]=Y[D])}return Xt},$.apply(null,arguments)}function ee(Xt,V){(V==null||V>Xt.length)&&(V=Xt.length);for(var Y=0,D=Array(V);Y<V;Y++)D[Y]=Xt[Y];return D}function re(Xt){if(Array.isArray(Xt))return ee(Xt)}function Se(Xt){if(typeof Symbol<"u"&&Xt[Symbol.iterator]!=null||Xt["@@iterator"]!=null)return Array.from(Xt)}function z(Xt,V){if(Xt){if(typeof Xt=="string")return ee(Xt,V);var Y={}.toString.call(Xt).slice(8,-1);return Y==="Object"&&Xt.constructor&&(Y=Xt.constructor.name),Y==="Map"||Y==="Set"?Array.from(Xt):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?ee(Xt,V):void 0}}function Q(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(Xt){return re(Xt)||Se(Xt)||z(Xt)||Q()}function se(Xt){"@babel/helpers - typeof";return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},se(Xt)}function q(Xt,V){if(se(Xt)!="object"||!Xt)return Xt;var Y=Xt[Symbol.toPrimitive];if(Y!==void 0){var D=Y.call(Xt,V||"default");if(se(D)!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(Xt)}function te(Xt){var V=q(Xt,"string");return se(V)=="symbol"?V:V+""}function A(Xt,V,Y){return(V=te(V))in Xt?Object.defineProperty(Xt,V,{value:Y,enumerable:!0,configurable:!0,writable:!0}):Xt[V]=Y,Xt}function T(Xt,V){var Y=Object.keys(Xt);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(Xt);V&&(D=D.filter(function(P){return Object.getOwnPropertyDescriptor(Xt,P).enumerable})),Y.push.apply(Y,D)}return Y}function B(Xt){for(var V=1;V<arguments.length;V++){var Y=arguments[V]!=null?arguments[V]:{};V%2?T(Object(Y),!0).forEach(function(D){A(Xt,D,Y[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Xt,Object.getOwnPropertyDescriptors(Y)):T(Object(Y)).forEach(function(D){Object.defineProperty(Xt,D,Object.getOwnPropertyDescriptor(Y,D))})}return Xt}function X(Xt){if(Array.isArray(Xt))return Xt}function ue(Xt,V){var Y=Xt==null?null:typeof Symbol<"u"&&Xt[Symbol.iterator]||Xt["@@iterator"];if(Y!=null){var D,P,oe,Ie,Ue=[],Xe=!0,dt=!1;try{if(oe=(Y=Y.call(Xt)).next,V===0){if(Object(Y)!==Y)return;Xe=!1}else for(;!(Xe=(D=oe.call(Y)).done)&&(Ue.push(D.value),Ue.length!==V);Xe=!0);}catch(kt){dt=!0,P=kt}finally{try{if(!Xe&&Y.return!=null&&(Ie=Y.return(),Object(Ie)!==Ie))return}finally{if(dt)throw P}}return Ue}}function ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(Xt,V){return X(Xt)||ue(Xt,V)||z(Xt,V)||ie()}function je(Xt,V){if(Xt==null)return{};var Y={};for(var D in Xt)if({}.hasOwnProperty.call(Xt,D)){if(V.indexOf(D)!==-1)continue;Y[D]=Xt[D]}return Y}function yt(Xt,V){if(Xt==null)return{};var Y,D,P=je(Xt,V);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(Xt);for(D=0;D<oe.length;D++)Y=oe[D],V.indexOf(Y)===-1&&{}.propertyIsEnumerable.call(Xt,Y)&&(P[Y]=Xt[Y])}return P}var tt=u(12533),Ze=u(68210),Ne=u(96540),it=u(46942),Rt=u.n(it),Dn=u(30981),Mt=u(68430),Wt=u(8719),Tn=function(V){var Y=V.className,D=V.customizeIcon,P=V.customizeIconProps,oe=V.children,Ie=V.onMouseDown,Ue=V.onClick,Xe=typeof D=="function"?D(P):D;return Ne.createElement("span",{className:Y,onMouseDown:function(kt){kt.preventDefault(),Ie?.(kt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ue,"aria-hidden":!0},Xe!==void 0?Xe:Ne.createElement("span",{className:Rt()(Y.split(/\s+/).map(function(dt){return"".concat(dt,"-icon")}))},oe))};const bn=Tn;var $t=function(V,Y,D,P,oe){var Ie=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ue=arguments.length>6?arguments[6]:void 0,Xe=arguments.length>7?arguments[7]:void 0,dt=Ne.useMemo(function(){if(se(P)==="object")return P.clearIcon;if(oe)return oe},[P,oe]),kt=Ne.useMemo(function(){return!!(!Ie&&P&&(D.length||Ue)&&!(Xe==="combobox"&&Ue===""))},[P,Ie,D.length,Ue,Xe]);return{allowClear:kt,clearIcon:Ne.createElement(bn,{className:"".concat(V,"-clear"),onMouseDown:Y,customizeIcon:dt},"\xD7")}},Ct=Ne.createContext(null);function Z(){return Ne.useContext(Ct)}function me(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,V=Ne.useState(!1),Y=Te(V,2),D=Y[0],P=Y[1],oe=Ne.useRef(null),Ie=function(){window.clearTimeout(oe.current)};Ne.useEffect(function(){return Ie},[]);var Ue=function(dt,kt){Ie(),oe.current=window.setTimeout(function(){P(dt),kt&&kt()},Xt)};return[D,Ue,Ie]}function ke(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,V=Ne.useRef(null),Y=Ne.useRef(null);Ne.useEffect(function(){return function(){window.clearTimeout(Y.current)}},[]);function D(P){(P||V.current===null)&&(V.current=P),window.clearTimeout(Y.current),Y.current=window.setTimeout(function(){V.current=null},Xt)}return[function(){return V.current},D]}function Ee(Xt,V,Y,D){var P=Ne.useRef(null);P.current={open:V,triggerOpen:Y,customizedTrigger:D},Ne.useEffect(function(){function oe(Ie){var Ue;if(!((Ue=P.current)!==null&&Ue!==void 0&&Ue.customizedTrigger)){var Xe=Ie.target;Xe.shadowRoot&&Ie.composed&&(Xe=Ie.composedPath()[0]||Xe),P.current.open&&Xt().filter(function(dt){return dt}).every(function(dt){return!dt.contains(Xe)&&dt!==Xe})&&P.current.triggerOpen(!1)}}return window.addEventListener("mousedown",oe),function(){return window.removeEventListener("mousedown",oe)}},[])}var _e=u(16928);function ge(Xt){return![_e.A.ESC,_e.A.SHIFT,_e.A.BACKSPACE,_e.A.TAB,_e.A.WIN_KEY,_e.A.ALT,_e.A.META,_e.A.WIN_KEY_RIGHT,_e.A.CTRL,_e.A.SEMICOLON,_e.A.EQUALS,_e.A.CAPS_LOCK,_e.A.CONTEXT_MENU,_e.A.F1,_e.A.F2,_e.A.F3,_e.A.F4,_e.A.F5,_e.A.F6,_e.A.F7,_e.A.F8,_e.A.F9,_e.A.F10,_e.A.F11,_e.A.F12].includes(Xt)}var Me=u(72065),lt=u(52392),Ft=function(V,Y){var D,P=V.prefixCls,oe=V.id,Ie=V.inputElement,Ue=V.disabled,Xe=V.tabIndex,dt=V.autoFocus,kt=V.autoComplete,dn=V.editable,Vn=V.activeDescendantId,qn=V.value,yr=V.maxLength,ci=V.onKeyDown,hi=V.onMouseDown,Ti=V.onChange,Vi=V.onPaste,Di=V.onCompositionStart,Pi=V.onCompositionEnd,mt=V.open,tn=V.attrs,or=Ie||Ne.createElement("input",null),rt=or,St=rt.ref,_n=rt.props,vn=_n.onKeyDown,Ln=_n.onChange,_r=_n.onMouseDown,Br=_n.onCompositionStart,Kr=_n.onCompositionEnd,Jr=_n.style;return(0,Ze.$e)(!("maxLength"in or.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),or=Ne.cloneElement(or,B(B(B({type:"search"},_n),{},{id:oe,ref:(0,Wt.K4)(Y,St),disabled:Ue,tabIndex:Xe,autoComplete:kt||"off",autoFocus:dt,className:Rt()("".concat(P,"-selection-search-input"),(D=or)===null||D===void 0||(D=D.props)===null||D===void 0?void 0:D.className),role:"combobox","aria-expanded":mt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(oe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(oe,"_list"),"aria-activedescendant":mt?Vn:void 0},tn),{},{value:dn?qn:"",maxLength:yr,readOnly:!dn,unselectable:dn?null:"on",style:B(B({},Jr),{},{opacity:dn?null:0}),onKeyDown:function(le){ci(le),vn&&vn(le)},onMouseDown:function(le){hi(le),_r&&_r(le)},onChange:function(le){Ti(le),Ln&&Ln(le)},onCompositionStart:function(le){Di(le),Br&&Br(le)},onCompositionEnd:function(le){Pi(le),Kr&&Kr(le)},onPaste:Vi})),or},Et=Ne.forwardRef(Ft);const Zt=Et;function nn(Xt){return Array.isArray(Xt)?Xt:Xt!==void 0?[Xt]:[]}var Pn=typeof window<"u"&&window.document&&window.document.documentElement,rn=Pn;function Vt(Xt){return Xt!=null}function Kn(Xt){return!Xt&&Xt!==0}function ur(Xt){return["string","number"].includes(se(Xt))}function on(Xt){var V=void 0;return Xt&&(ur(Xt.title)?V=Xt.title.toString():ur(Xt.label)&&(V=Xt.label.toString())),V}function tr(Xt,V){rn?Ne.useLayoutEffect(Xt,V):Ne.useEffect(Xt,V)}function Cn(Xt){var V;return(V=Xt.key)!==null&&V!==void 0?V:Xt.value}var Wn=function(V){V.preventDefault(),V.stopPropagation()},er=function(V){var Y=V.id,D=V.prefixCls,P=V.values,oe=V.open,Ie=V.searchValue,Ue=V.autoClearSearchValue,Xe=V.inputRef,dt=V.placeholder,kt=V.disabled,dn=V.mode,Vn=V.showSearch,qn=V.autoFocus,yr=V.autoComplete,ci=V.activeDescendantId,hi=V.tabIndex,Ti=V.removeIcon,Vi=V.maxTagCount,Di=V.maxTagTextLength,Pi=V.maxTagPlaceholder,mt=Pi===void 0?function(Ar){return"+ ".concat(Ar.length," ...")}:Pi,tn=V.tagRender,or=V.onToggleOpen,rt=V.onRemove,St=V.onInputChange,_n=V.onInputPaste,vn=V.onInputKeyDown,Ln=V.onInputMouseDown,_r=V.onInputCompositionStart,Br=V.onInputCompositionEnd,Kr=Ne.useRef(null),Jr=(0,Ne.useState)(0),ii=Te(Jr,2),le=ii[0],Ae=ii[1],Oe=(0,Ne.useState)(!1),et=Te(Oe,2),Ot=et[0],It=et[1],Mn="".concat(D,"-selection"),mn=oe||dn==="multiple"&&Ue===!1||dn==="tags"?Ie:"",At=dn==="tags"||dn==="multiple"&&Ue===!1||Vn&&(oe||Ot);tr(function(){Ae(Kr.current.scrollWidth)},[mn]);var Ut=function(yi,Rr,si,Si,$i){return Ne.createElement("span",{title:on(yi),className:Rt()("".concat(Mn,"-item"),A({},"".concat(Mn,"-item-disabled"),si))},Ne.createElement("span",{className:"".concat(Mn,"-item-content")},Rr),Si&&Ne.createElement(bn,{className:"".concat(Mn,"-item-remove"),onMouseDown:Wn,onClick:$i,customizeIcon:Ti},"\xD7"))},jn=function(yi,Rr,si,Si,$i,Hi){var Oa=function(Ua){Wn(Ua),or(!oe)};return Ne.createElement("span",{onMouseDown:Oa},tn({label:Rr,value:yi,disabled:si,closable:Si,onClose:$i,isMaxTag:!!Hi}))},Jt=function(yi){var Rr=yi.disabled,si=yi.label,Si=yi.value,$i=!kt&&!Rr,Hi=si;if(typeof Di=="number"&&(typeof si=="string"||typeof si=="number")){var Oa=String(Hi);Oa.length>Di&&(Hi="".concat(Oa.slice(0,Di),"..."))}var Ma=function(Xa){Xa&&Xa.stopPropagation(),rt(yi)};return typeof tn=="function"?jn(Si,Hi,Rr,$i,Ma):Ut(yi,Hi,Rr,$i,Ma)},dr=function(yi){var Rr=typeof mt=="function"?mt(yi):mt;return typeof tn=="function"?jn(void 0,Rr,!1,!1,void 0,!0):Ut({title:Rr},Rr,!1)},wr=Ne.createElement("div",{className:"".concat(Mn,"-search"),style:{width:le},onFocus:function(){It(!0)},onBlur:function(){It(!1)}},Ne.createElement(Zt,{ref:Xe,open:oe,prefixCls:D,id:Y,inputElement:null,disabled:kt,autoFocus:qn,autoComplete:yr,editable:At,activeDescendantId:ci,value:mn,onKeyDown:vn,onMouseDown:Ln,onChange:St,onPaste:_n,onCompositionStart:_r,onCompositionEnd:Br,tabIndex:hi,attrs:(0,Me.A)(V,!0)}),Ne.createElement("span",{ref:Kr,className:"".concat(Mn,"-search-mirror"),"aria-hidden":!0},mn,"\xA0")),Hr=Ne.createElement(lt.A,{prefixCls:"".concat(Mn,"-overflow"),data:P,renderItem:Jt,renderRest:dr,suffix:wr,itemKey:Cn,maxCount:Vi});return Ne.createElement("span",{className:"".concat(Mn,"-wrap")},Hr,!P.length&&!mn&&Ne.createElement("span",{className:"".concat(Mn,"-placeholder")},dt))};const Fn=er;var en=function(V){var Y=V.inputElement,D=V.prefixCls,P=V.id,oe=V.inputRef,Ie=V.disabled,Ue=V.autoFocus,Xe=V.autoComplete,dt=V.activeDescendantId,kt=V.mode,dn=V.open,Vn=V.values,qn=V.placeholder,yr=V.tabIndex,ci=V.showSearch,hi=V.searchValue,Ti=V.activeValue,Vi=V.maxLength,Di=V.onInputKeyDown,Pi=V.onInputMouseDown,mt=V.onInputChange,tn=V.onInputPaste,or=V.onInputCompositionStart,rt=V.onInputCompositionEnd,St=V.title,_n=Ne.useState(!1),vn=Te(_n,2),Ln=vn[0],_r=vn[1],Br=kt==="combobox",Kr=Br||ci,Jr=Vn[0],ii=hi||"";Br&&Ti&&!Ln&&(ii=Ti),Ne.useEffect(function(){Br&&_r(!1)},[Br,Ti]);var le=kt!=="combobox"&&!dn&&!ci?!1:!!ii,Ae=St===void 0?on(Jr):St,Oe=Ne.useMemo(function(){return Jr?null:Ne.createElement("span",{className:"".concat(D,"-selection-placeholder"),style:le?{visibility:"hidden"}:void 0},qn)},[Jr,le,qn,D]);return Ne.createElement("span",{className:"".concat(D,"-selection-wrap")},Ne.createElement("span",{className:"".concat(D,"-selection-search")},Ne.createElement(Zt,{ref:oe,prefixCls:D,id:P,open:dn,inputElement:Y,disabled:Ie,autoFocus:Ue,autoComplete:Xe,editable:Kr,activeDescendantId:dt,value:ii,onKeyDown:Di,onMouseDown:Pi,onChange:function(Ot){_r(!0),mt(Ot)},onPaste:tn,onCompositionStart:or,onCompositionEnd:rt,tabIndex:yr,attrs:(0,Me.A)(V,!0),maxLength:Br?Vi:void 0})),!Br&&Jr?Ne.createElement("span",{className:"".concat(D,"-selection-item"),title:Ae,style:le?{visibility:"hidden"}:void 0},Jr.label):null,Oe)};const gn=en;var kn=function(V,Y){var D=(0,Ne.useRef)(null),P=(0,Ne.useRef)(!1),oe=V.prefixCls,Ie=V.open,Ue=V.mode,Xe=V.showSearch,dt=V.tokenWithEnter,kt=V.disabled,dn=V.prefix,Vn=V.autoClearSearchValue,qn=V.onSearch,yr=V.onSearchSubmit,ci=V.onToggleOpen,hi=V.onInputKeyDown,Ti=V.domRef;Ne.useImperativeHandle(Y,function(){return{focus:function(Ae){D.current.focus(Ae)},blur:function(){D.current.blur()}}});var Vi=ke(0),Di=Te(Vi,2),Pi=Di[0],mt=Di[1],tn=function(Ae){var Oe=Ae.which,et=D.current instanceof HTMLTextAreaElement;!et&&Ie&&(Oe===_e.A.UP||Oe===_e.A.DOWN)&&Ae.preventDefault(),hi&&hi(Ae),Oe===_e.A.ENTER&&Ue==="tags"&&!P.current&&!Ie&&yr?.(Ae.target.value),!(et&&!Ie&&~[_e.A.UP,_e.A.DOWN,_e.A.LEFT,_e.A.RIGHT].indexOf(Oe))&&ge(Oe)&&ci(!0)},or=function(){mt(!0)},rt=(0,Ne.useRef)(null),St=function(Ae){qn(Ae,!0,P.current)!==!1&&ci(!0)},_n=function(){P.current=!0},vn=function(Ae){P.current=!1,Ue!=="combobox"&&St(Ae.target.value)},Ln=function(Ae){var Oe=Ae.target.value;if(dt&&rt.current&&/[\r\n]/.test(rt.current)){var et=rt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oe=Oe.replace(et,rt.current)}rt.current=null,St(Oe)},_r=function(Ae){var Oe=Ae.clipboardData,et=Oe?.getData("text");rt.current=et||""},Br=function(Ae){var Oe=Ae.target;if(Oe!==D.current){var et=document.body.style.msTouchAction!==void 0;et?setTimeout(function(){D.current.focus()}):D.current.focus()}},Kr=function(Ae){var Oe=Pi();Ae.target!==D.current&&!Oe&&!(Ue==="combobox"&&kt)&&Ae.preventDefault(),(Ue!=="combobox"&&(!Xe||!Oe)||!Ie)&&(Ie&&Vn!==!1&&qn("",!0,!1),ci())},Jr={inputRef:D,onInputKeyDown:tn,onInputMouseDown:or,onInputChange:Ln,onInputPaste:_r,onInputCompositionStart:_n,onInputCompositionEnd:vn},ii=Ue==="multiple"||Ue==="tags"?Ne.createElement(Fn,$({},V,Jr)):Ne.createElement(gn,$({},V,Jr));return Ne.createElement("div",{ref:Ti,className:"".concat(oe,"-selector"),onClick:Br,onMouseDown:Kr},dn&&Ne.createElement("div",{className:"".concat(oe,"-prefix")},dn),ii)},Jn=Ne.forwardRef(kn);const Nn=Jn;var kr=u(48802),bt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ne=function(V){var Y=V===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Y,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Y,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Y,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Y,adjustY:1},htmlRegion:"scroll"}}},fe=function(V,Y){var D=V.prefixCls,P=V.disabled,oe=V.visible,Ie=V.children,Ue=V.popupElement,Xe=V.animation,dt=V.transitionName,kt=V.dropdownStyle,dn=V.dropdownClassName,Vn=V.direction,qn=Vn===void 0?"ltr":Vn,yr=V.placement,ci=V.builtinPlacements,hi=V.dropdownMatchSelectWidth,Ti=V.dropdownRender,Vi=V.dropdownAlign,Di=V.getPopupContainer,Pi=V.empty,mt=V.getTriggerDOMNode,tn=V.onPopupVisibleChange,or=V.onPopupMouseEnter,rt=yt(V,bt),St="".concat(D,"-dropdown"),_n=Ue;Ti&&(_n=Ti(Ue));var vn=Ne.useMemo(function(){return ci||ne(hi)},[ci,hi]),Ln=Xe?"".concat(St,"-").concat(Xe):dt,_r=typeof hi=="number",Br=Ne.useMemo(function(){return _r?null:hi===!1?"minWidth":"width"},[hi,_r]),Kr=kt;_r&&(Kr=B(B({},Kr),{},{width:hi}));var Jr=Ne.useRef(null);return Ne.useImperativeHandle(Y,function(){return{getPopupElement:function(){var le;return(le=Jr.current)===null||le===void 0?void 0:le.popupElement}}}),Ne.createElement(kr.A,$({},rt,{showAction:tn?["click"]:[],hideAction:tn?["click"]:[],popupPlacement:yr||(qn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:vn,prefixCls:St,popupTransitionName:Ln,popup:Ne.createElement("div",{onMouseEnter:or},_n),ref:Jr,stretch:Br,popupAlign:Vi,popupVisible:oe,getPopupContainer:Di,popupClassName:Rt()(dn,A({},"".concat(St,"-empty"),Pi)),popupStyle:Kr,getTriggerDOMNode:mt,onPopupVisibleChange:tn}),Ie)},K=Ne.forwardRef(fe);const he=K;function Fe(Xt){return X(Xt)||Se(Xt)||z(Xt)||ie()}function Nt(Xt,V){var Y=Xt.key,D;return"value"in Xt&&(D=Xt.value),Y??(D!==void 0?D:"rc-index-key-".concat(V))}function ln(Xt){return typeof Xt<"u"&&!Number.isNaN(Xt)}function pn(Xt,V){var Y=Xt||{},D=Y.label,P=Y.value,oe=Y.options,Ie=Y.groupLabel,Ue=D||(V?"children":"label");return{label:Ue,value:P||"value",options:oe||"options",groupLabel:Ie||Ue}}function Yn(Xt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=V.fieldNames,D=V.childrenAsData,P=[],oe=pn(Y,!1),Ie=oe.label,Ue=oe.value,Xe=oe.options,dt=oe.groupLabel;function kt(dn,Vn){Array.isArray(dn)&&dn.forEach(function(qn){if(Vn||!(Xe in qn)){var yr=qn[Ue];P.push({key:Nt(qn,P.length),groupOption:Vn,data:qn,label:qn[Ie],value:yr})}else{var ci=qn[dt];ci===void 0&&D&&(ci=qn.label),P.push({key:Nt(qn,P.length),group:!0,data:qn,label:ci}),kt(qn[Xe],!0)}})}return kt(Xt,!1),P}function ht(Xt){var V=B({},Xt);return"props"in V||Object.defineProperty(V,"props",{get:function(){return(0,Ze.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),V}}),V}var De=function(V,Y,D){if(!Y||!Y.length)return null;var P=!1,oe=function Ue(Xe,dt){var kt=Fe(dt),dn=kt[0],Vn=kt.slice(1);if(!dn)return[Xe];var qn=Xe.split(dn);return P=P||qn.length>1,qn.reduce(function(yr,ci){return[].concat(ce(yr),ce(Ue(ci,Vn)))},[]).filter(Boolean)},Ie=oe(V,Y);return P?typeof D<"u"?Ie.slice(0,D):Ie:null},we=Ne.createContext(null);const Ke=we;function be(Xt){var V=Xt.visible,Y=Xt.values;if(!V)return null;var D=50;return Ne.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Y.slice(0,D).map(function(P){var oe=P.label,Ie=P.value;return["number","string"].includes(se(oe))?oe:Ie}).join(", ")),Y.length>D?", ...":null)}var pt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],We=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Je=function(V){return V==="tags"||V==="multiple"},ye=Ne.forwardRef(function(Xt,V){var Y,D=Xt.id,P=Xt.prefixCls,oe=Xt.className,Ie=Xt.showSearch,Ue=Xt.tagRender,Xe=Xt.direction,dt=Xt.omitDomProps,kt=Xt.displayValues,dn=Xt.onDisplayValuesChange,Vn=Xt.emptyOptions,qn=Xt.notFoundContent,yr=qn===void 0?"Not Found":qn,ci=Xt.onClear,hi=Xt.mode,Ti=Xt.disabled,Vi=Xt.loading,Di=Xt.getInputElement,Pi=Xt.getRawInputElement,mt=Xt.open,tn=Xt.defaultOpen,or=Xt.onDropdownVisibleChange,rt=Xt.activeValue,St=Xt.onActiveValueChange,_n=Xt.activeDescendantId,vn=Xt.searchValue,Ln=Xt.autoClearSearchValue,_r=Xt.onSearch,Br=Xt.onSearchSplit,Kr=Xt.tokenSeparators,Jr=Xt.allowClear,ii=Xt.prefix,le=Xt.suffixIcon,Ae=Xt.clearIcon,Oe=Xt.OptionList,et=Xt.animation,Ot=Xt.transitionName,It=Xt.dropdownStyle,Mn=Xt.dropdownClassName,mn=Xt.dropdownMatchSelectWidth,At=Xt.dropdownRender,Ut=Xt.dropdownAlign,jn=Xt.placement,Jt=Xt.builtinPlacements,dr=Xt.getPopupContainer,wr=Xt.showAction,Hr=wr===void 0?[]:wr,Ar=Xt.onFocus,yi=Xt.onBlur,Rr=Xt.onKeyUp,si=Xt.onKeyDown,Si=Xt.onMouseDown,$i=yt(Xt,pt),Hi=Je(hi),Oa=(Ie!==void 0?Ie:Hi)||hi==="combobox",Ma=B({},$i);We.forEach(function(qo){delete Ma[qo]}),dt?.forEach(function(qo){delete Ma[qo]});var Ua=Ne.useState(!1),Xa=Te(Ua,2),Na=Xa[0],za=Xa[1];Ne.useEffect(function(){za((0,Mt.A)())},[]);var qa=Ne.useRef(null),no=Ne.useRef(null),wo=Ne.useRef(null),go=Ne.useRef(null),Ka=Ne.useRef(null),Ia=Ne.useRef(!1),Us=me(),Vs=Te(Us,3),Is=Vs[0],uo=Vs[1],Ds=Vs[2];Ne.useImperativeHandle(V,function(){var qo,Go;return{focus:(qo=go.current)===null||qo===void 0?void 0:qo.focus,blur:(Go=go.current)===null||Go===void 0?void 0:Go.blur,scrollTo:function(Bo){var tu;return(tu=Ka.current)===null||tu===void 0?void 0:tu.scrollTo(Bo)},nativeElement:qa.current||no.current}});var Js=Ne.useMemo(function(){var qo;if(hi!=="combobox")return vn;var Go=(qo=kt[0])===null||qo===void 0?void 0:qo.value;return typeof Go=="string"||typeof Go=="number"?String(Go):""},[vn,hi,kt]),eo=hi==="combobox"&&typeof Di=="function"&&Di()||null,uu=typeof Pi=="function"&&Pi(),pa=(0,Wt.xK)(no,uu==null||(Y=uu.props)===null||Y===void 0?void 0:Y.ref),na=Ne.useState(!1),Ui=Te(na,2),xe=Ui[0],Ce=Ui[1];(0,Dn.A)(function(){Ce(!0)},[]);var st=(0,tt.A)(!1,{defaultValue:tn,value:mt}),gt=Te(st,2),Ht=gt[0],Hn=gt[1],fr=xe?Ht:!1,Zr=!yr&&Vn;(Ti||Zr&&fr&&hi==="combobox")&&(fr=!1);var gi=Zr?!1:fr,wt=Ne.useCallback(function(qo){var Go=qo!==void 0?qo:!fr;Ti||(Hn(Go),fr!==Go&&or?.(Go))},[Ti,fr,Hn,or]),cn=Ne.useMemo(function(){return(Kr||[]).some(function(qo){return[` `,`\r `].includes(qo)})},[Kr]),rr=Ne.useContext(Ke)||{},$n=rr.maxCount,Sr=rr.rawValues,fi=function(Go,gs,Bo){if(!(Hi&&ln($n)&&Sr?.size>=$n)){var tu=!0,vo=Go;St?.(null);var hu=De(Go,Kr,ln($n)?$n-Sr.size:void 0),es=Bo?null:hu;return hi!=="combobox"&&es&&(vo="",Br?.(es),wt(!1),tu=!1),_r&&Js!==vo&&_r(vo,{source:gs?"typing":"effect"}),tu}},Ci=function(Go){!Go||!Go.trim()||_r(Go,{source:"submit"})};Ne.useEffect(function(){!fr&&!Hi&&hi!=="combobox"&&fi("",!1,!1)},[fr]),Ne.useEffect(function(){Ht&&Ti&&Hn(!1),Ti&&!Ia.current&&uo(!1)},[Ti]);var la=ke(),ya=Te(la,2),_a=ya[0],Ga=ya[1],Pa=Ne.useRef(!1),ja=function(Go){var gs=_a(),Bo=Go.key,tu=Bo==="Enter";if(tu&&(hi!=="combobox"&&Go.preventDefault(),fr||wt(!0)),Ga(!!Js),Bo==="Backspace"&&!gs&&Hi&&!Js&&kt.length){for(var vo=ce(kt),hu=null,es=vo.length-1;es>=0;es-=1){var qu=vo[es];if(!qu.disabled){vo.splice(es,1),hu=qu;break}}hu&&dn(vo,{type:"remove",values:[hu]})}for(var lu=arguments.length,cu=new Array(lu>1?lu-1:0),gu=1;gu<lu;gu++)cu[gu-1]=arguments[gu];if(fr&&(!tu||!Pa.current)){var Jl;(Jl=Ka.current)===null||Jl===void 0||Jl.onKeyDown.apply(Jl,[Go].concat(cu))}tu&&(Pa.current=!0),si?.apply(void 0,[Go].concat(cu))},Oo=function(Go){for(var gs=arguments.length,Bo=new Array(gs>1?gs-1:0),tu=1;tu<gs;tu++)Bo[tu-1]=arguments[tu];if(fr){var vo;(vo=Ka.current)===null||vo===void 0||vo.onKeyUp.apply(vo,[Go].concat(Bo))}Go.key==="Enter"&&(Pa.current=!1),Rr?.apply(void 0,[Go].concat(Bo))},Do=function(Go){var gs=kt.filter(function(Bo){return Bo!==Go});dn(gs,{type:"remove",values:[Go]})},fo=Ne.useRef(!1),Zo=function(){uo(!0),Ti||(Ar&&!fo.current&&Ar.apply(void 0,arguments),Hr.includes("focus")&&wt(!0)),fo.current=!0},bs=function(){Ia.current=!0,uo(!1,function(){fo.current=!1,Ia.current=!1,wt(!1)}),!Ti&&(Js&&(hi==="tags"?_r(Js,{source:"submit"}):hi==="multiple"&&_r("",{source:"blur"})),yi&&yi.apply(void 0,arguments))},io=[];Ne.useEffect(function(){return function(){io.forEach(function(qo){return clearTimeout(qo)}),io.splice(0,io.length)}},[]);var fs=function(Go){var gs,Bo=Go.target,tu=(gs=wo.current)===null||gs===void 0?void 0:gs.getPopupElement();if(tu&&tu.contains(Bo)){var vo=setTimeout(function(){var lu=io.indexOf(vo);if(lu!==-1&&io.splice(lu,1),Ds(),!Na&&!tu.contains(document.activeElement)){var cu;(cu=go.current)===null||cu===void 0||cu.focus()}});io.push(vo)}for(var hu=arguments.length,es=new Array(hu>1?hu-1:0),qu=1;qu<hu;qu++)es[qu-1]=arguments[qu];Si?.apply(void 0,[Go].concat(es))},yo=Ne.useState({}),lo=Te(yo,2),Ha=lo[1];function zo(){Ha({})}var vs;uu&&(vs=function(Go){wt(Go)}),Ee(function(){var qo;return[qa.current,(qo=wo.current)===null||qo===void 0?void 0:qo.getPopupElement()]},gi,wt,!!uu);var Fs=Ne.useMemo(function(){return B(B({},Xt),{},{notFoundContent:yr,open:fr,triggerOpen:gi,id:D,showSearch:Oa,multiple:Hi,toggleOpen:wt})},[Xt,yr,gi,fr,D,Oa,Hi,wt]),Ms=!!le||Vi,to;Ms&&(to=Ne.createElement(bn,{className:Rt()("".concat(P,"-arrow"),A({},"".concat(P,"-arrow-loading"),Vi)),customizeIcon:le,customizeIconProps:{loading:Vi,searchValue:Js,open:fr,focused:Is,showSearch:Oa}}));var Ho=function(){var Go;ci?.(),(Go=go.current)===null||Go===void 0||Go.focus(),dn([],{type:"clear",values:kt}),fi("",!1,!1)},ls=$t(P,Ho,kt,Jr,Ae,Ti,Js,hi),xo=ls.allowClear,$a=ls.clearIcon,oo=Ne.createElement(Oe,{ref:Ka}),ro=Rt()(P,oe,A(A(A(A(A(A(A(A(A(A({},"".concat(P,"-focused"),Is),"".concat(P,"-multiple"),Hi),"".concat(P,"-single"),!Hi),"".concat(P,"-allow-clear"),Jr),"".concat(P,"-show-arrow"),Ms),"".concat(P,"-disabled"),Ti),"".concat(P,"-loading"),Vi),"".concat(P,"-open"),fr),"".concat(P,"-customize-input"),eo),"".concat(P,"-show-search"),Oa)),Ls=Ne.createElement(he,{ref:wo,disabled:Ti,prefixCls:P,visible:gi,popupElement:oo,animation:et,transitionName:Ot,dropdownStyle:It,dropdownClassName:Mn,direction:Xe,dropdownMatchSelectWidth:mn,dropdownRender:At,dropdownAlign:Ut,placement:jn,builtinPlacements:Jt,getPopupContainer:dr,empty:Vn,getTriggerDOMNode:function(Go){return no.current||Go},onPopupVisibleChange:vs,onPopupMouseEnter:zo},uu?Ne.cloneElement(uu,{ref:pa}):Ne.createElement(Nn,$({},Xt,{domRef:no,prefixCls:P,inputElement:eo,ref:go,id:D,prefix:ii,showSearch:Oa,autoClearSearchValue:Ln,mode:hi,activeDescendantId:_n,tagRender:Ue,values:kt,open:fr,onToggleOpen:wt,activeValue:rt,searchValue:Js,onSearch:fi,onSearchSubmit:Ci,onRemove:Do,tokenWithEnter:cn}))),Ns;return uu?Ns=Ls:Ns=Ne.createElement("div",$({className:ro},Ma,{ref:qa,onMouseDown:fs,onKeyDown:ja,onKeyUp:Oo,onFocus:Zo,onBlur:bs}),Ne.createElement(be,{visible:Is&&!fr,values:kt}),Ls,to,xo&&$a),Ne.createElement(Ct.Provider,{value:Fs},Ns)});const Qe=ye;var ze=function(){return null};ze.isSelectOptGroup=!0;const qe=ze;var Pt=function(){return null};Pt.isSelectOption=!0;const zt=Pt;var un=u(28104),hn=u(19853),xt=u(48301);function _t(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qt=["disabled","title","children","style","className"];function fn(Xt){return typeof Xt=="string"||typeof Xt=="number"}var On=function(V,Y){var D=Z(),P=D.prefixCls,oe=D.id,Ie=D.open,Ue=D.multiple,Xe=D.mode,dt=D.searchValue,kt=D.toggleOpen,dn=D.notFoundContent,Vn=D.onPopupScroll,qn=Ne.useContext(Ke),yr=qn.maxCount,ci=qn.flattenOptions,hi=qn.onActiveValue,Ti=qn.defaultActiveFirstOption,Vi=qn.onSelect,Di=qn.menuItemSelectedIcon,Pi=qn.rawValues,mt=qn.fieldNames,tn=qn.virtual,or=qn.direction,rt=qn.listHeight,St=qn.listItemHeight,_n=qn.optionRender,vn="".concat(P,"-item"),Ln=(0,un.A)(function(){return ci},[Ie,ci],function(wr,Hr){return Hr[0]&&wr[1]!==Hr[1]}),_r=Ne.useRef(null),Br=Ne.useMemo(function(){return Ue&&ln(yr)&&Pi?.size>=yr},[Ue,yr,Pi?.size]),Kr=function(Hr){Hr.preventDefault()},Jr=function(Hr){var Ar;(Ar=_r.current)===null||Ar===void 0||Ar.scrollTo(typeof Hr=="number"?{index:Hr}:Hr)},ii=function(Hr){for(var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,yi=Ln.length,Rr=0;Rr<yi;Rr+=1){var si=(Hr+Rr*Ar+yi)%yi,Si=Ln[si]||{},$i=Si.group,Hi=Si.data;if(!$i&&!(Hi!=null&&Hi.disabled)&&!Br)return si}return-1},le=Ne.useState(function(){return ii(0)}),Ae=Te(le,2),Oe=Ae[0],et=Ae[1],Ot=function(Hr){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;et(Hr);var yi={source:Ar?"keyboard":"mouse"},Rr=Ln[Hr];if(!Rr){hi(null,-1,yi);return}hi(Rr.value,Hr,yi)};(0,Ne.useEffect)(function(){Ot(Ti!==!1?ii(0):-1)},[Ln.length,dt]);var It=Ne.useCallback(function(wr){return Xe==="combobox"?!1:Pi.has(wr)},[Xe,ce(Pi).toString(),Pi.size]),Mn=Ne.useCallback(function(wr){return Xe==="combobox"?String(wr).toLowerCase()===dt.toLowerCase():Pi.has(wr)},[Xe,dt,ce(Pi).toString(),Pi.size]);(0,Ne.useEffect)(function(){var wr=setTimeout(function(){if(!Ue&&Ie&&Pi.size===1){var Ar=Array.from(Pi)[0],yi=Ln.findIndex(function(Rr){var si=Rr.data;return si.value===Ar});yi!==-1&&(Ot(yi),Jr(yi))}});if(Ie){var Hr;(Hr=_r.current)===null||Hr===void 0||Hr.scrollTo(void 0)}return function(){return clearTimeout(wr)}},[Ie,dt]);var mn=function(Hr){Hr!==void 0&&Vi(Hr,{selected:!Pi.has(Hr)}),Ue||kt(!1)};if(Ne.useImperativeHandle(Y,function(){return{onKeyDown:function(Hr){var Ar=Hr.which,yi=Hr.ctrlKey;switch(Ar){case _e.A.N:case _e.A.P:case _e.A.UP:case _e.A.DOWN:{var Rr=0;if(Ar===_e.A.UP?Rr=-1:Ar===_e.A.DOWN?Rr=1:_t()&&yi&&(Ar===_e.A.N?Rr=1:Ar===_e.A.P&&(Rr=-1)),Rr!==0){var si=ii(Oe+Rr,Rr);Jr(si),Ot(si,!0)}break}case _e.A.TAB:case _e.A.ENTER:{var Si,$i=Ln[Oe];$i&&!($i!=null&&(Si=$i.data)!==null&&Si!==void 0&&Si.disabled)&&!Br?mn($i.value):mn(void 0),Ie&&Hr.preventDefault();break}case _e.A.ESC:kt(!1),Ie&&Hr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Hr){Jr(Hr)}}}),Ln.length===0)return Ne.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),className:"".concat(vn,"-empty"),onMouseDown:Kr},dn);var At=Object.keys(mt).map(function(wr){return mt[wr]}),Ut=function(Hr){return Hr.label};function jn(wr,Hr){var Ar=wr.group;return{role:Ar?"presentation":"option",id:"".concat(oe,"_list_").concat(Hr)}}var Jt=function(Hr){var Ar=Ln[Hr];if(!Ar)return null;var yi=Ar.data||{},Rr=yi.value,si=Ar.group,Si=(0,Me.A)(yi,!0),$i=Ut(Ar);return Ar?Ne.createElement("div",$({"aria-label":typeof $i=="string"&&!si?$i:null},Si,{key:Hr},jn(Ar,Hr),{"aria-selected":Mn(Rr)}),Rr):null},dr={role:"listbox",id:"".concat(oe,"_list")};return Ne.createElement(Ne.Fragment,null,tn&&Ne.createElement("div",$({},dr,{style:{height:0,width:0,overflow:"hidden"}}),Jt(Oe-1),Jt(Oe),Jt(Oe+1)),Ne.createElement(xt.A,{itemKey:"key",ref:_r,data:Ln,height:rt,itemHeight:St,fullHeight:!1,onMouseDown:Kr,onScroll:Vn,virtual:tn,direction:or,innerProps:tn?null:dr},function(wr,Hr){var Ar=wr.group,yi=wr.groupOption,Rr=wr.data,si=wr.label,Si=wr.value,$i=Rr.key;if(Ar){var Hi,Oa=(Hi=Rr.title)!==null&&Hi!==void 0?Hi:fn(si)?si.toString():void 0;return Ne.createElement("div",{className:Rt()(vn,"".concat(vn,"-group"),Rr.className),title:Oa},si!==void 0?si:$i)}var Ma=Rr.disabled,Ua=Rr.title,Xa=Rr.children,Na=Rr.style,za=Rr.className,qa=yt(Rr,qt),no=(0,hn.A)(qa,At),wo=It(Si),go=Ma||!wo&&Br,Ka="".concat(vn,"-option"),Ia=Rt()(vn,Ka,za,A(A(A(A({},"".concat(Ka,"-grouped"),yi),"".concat(Ka,"-active"),Oe===Hr&&!go),"".concat(Ka,"-disabled"),go),"".concat(Ka,"-selected"),wo)),Us=Ut(wr),Vs=!Di||typeof Di=="function"||wo,Is=typeof Us=="number"?Us:Us||Si,uo=fn(Is)?Is.toString():void 0;return Ua!==void 0&&(uo=Ua),Ne.createElement("div",$({},(0,Me.A)(no),tn?{}:jn(wr,Hr),{"aria-selected":Mn(Si),className:Ia,title:uo,onMouseMove:function(){Oe===Hr||go||Ot(Hr)},onClick:function(){go||mn(Si)},style:Na}),Ne.createElement("div",{className:"".concat(Ka,"-content")},typeof _n=="function"?_n(wr,{index:Hr}):Is),Ne.isValidElement(Di)||wo,Vs&&Ne.createElement(bn,{className:"".concat(vn,"-option-state"),customizeIcon:Di,customizeIconProps:{value:Si,disabled:go,isSelected:wo}},wo?"\u2713":null))}))},Gn=Ne.forwardRef(On);const Bn=Gn,Lr=function(Xt,V){var Y=Ne.useRef({values:new Map,options:new Map}),D=Ne.useMemo(function(){var oe=Y.current,Ie=oe.values,Ue=oe.options,Xe=Xt.map(function(dn){if(dn.label===void 0){var Vn;return B(B({},dn),{},{label:(Vn=Ie.get(dn.value))===null||Vn===void 0?void 0:Vn.label})}return dn}),dt=new Map,kt=new Map;return Xe.forEach(function(dn){dt.set(dn.value,dn),kt.set(dn.value,V.get(dn.value)||Ue.get(dn.value))}),Y.current.values=dt,Y.current.options=kt,Xe},[Xt,V]),P=Ne.useCallback(function(oe){return V.get(oe)||Y.current.options.get(oe)},[V]);return[D,P]};function An(Xt,V){return nn(Xt).join("").toUpperCase().includes(V)}const Un=function(Xt,V,Y,D,P){return Ne.useMemo(function(){if(!Y||D===!1)return Xt;var oe=V.options,Ie=V.label,Ue=V.value,Xe=[],dt=typeof D=="function",kt=Y.toUpperCase(),dn=dt?D:function(qn,yr){return P?An(yr[P],kt):yr[oe]?An(yr[Ie!=="children"?Ie:"label"],kt):An(yr[Ue],kt)},Vn=dt?function(qn){return ht(qn)}:function(qn){return qn};return Xt.forEach(function(qn){if(qn[oe]){var yr=dn(Y,Vn(qn));if(yr)Xe.push(qn);else{var ci=qn[oe].filter(function(hi){return dn(Y,Vn(hi))});ci.length&&Xe.push(B(B({},qn),{},A({},oe,ci)))}return}dn(Y,Vn(qn))&&Xe.push(qn)}),Xe},[Xt,D,P,Y,V])};var cr=u(20998),mr=0,hr=(0,cr.A)();function ar(){var Xt;return hr?(Xt=mr,mr+=1):Xt="TEST_OR_SSR",Xt}function Cr(Xt){var V=Ne.useState(),Y=Te(V,2),D=Y[0],P=Y[1];return Ne.useEffect(function(){P("rc_select_".concat(ar()))},[]),Xt||D}var Yr=u(82546),Xr=["children","value"],ni=["children"];function ki(Xt){var V=Xt,Y=V.key,D=V.props,P=D.children,oe=D.value,Ie=yt(D,Xr);return B({key:Y,value:oe!==void 0?oe:Y,children:P},Ie)}function zr(Xt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Yr.A)(Xt).map(function(Y,D){if(!Ne.isValidElement(Y)||!Y.type)return null;var P=Y,oe=P.type.isSelectOptGroup,Ie=P.key,Ue=P.props,Xe=Ue.children,dt=yt(Ue,ni);return V||!oe?ki(Y):B(B({key:"__RC_SELECT_GRP__".concat(Ie===null?D:Ie,"__"),label:Ie},dt),{},{options:zr(Xe)})}).filter(function(Y){return Y})}var Ur=function(V,Y,D,P,oe){return Ne.useMemo(function(){var Ie=V,Ue=!V;Ue&&(Ie=zr(Y));var Xe=new Map,dt=new Map,kt=function(qn,yr,ci){ci&&typeof ci=="string"&&qn.set(yr[ci],yr)},dn=function Vn(qn){for(var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ci=0;ci<qn.length;ci+=1){var hi=qn[ci];!hi[D.options]||yr?(Xe.set(hi[D.value],hi),kt(dt,hi,D.label),kt(dt,hi,P),kt(dt,hi,oe)):Vn(hi[D.options],!0)}};return dn(Ie),{options:Ie,valueOptions:Xe,labelOptions:dt}},[V,Y,D,P,oe])};const jt=Ur;function sn(Xt){var V=Ne.useRef();V.current=Xt;var Y=Ne.useCallback(function(){return V.current.apply(V,arguments)},[]);return Y}function Rn(Xt){var V=Xt.mode,Y=Xt.options,D=Xt.children,P=Xt.backfill,oe=Xt.allowClear,Ie=Xt.placeholder,Ue=Xt.getInputElement,Xe=Xt.showSearch,dt=Xt.onSearch,kt=Xt.defaultOpen,dn=Xt.autoFocus,Vn=Xt.labelInValue,qn=Xt.value,yr=Xt.inputValue,ci=Xt.optionLabelProp,hi=isMultiple(V),Ti=Xe!==void 0?Xe:hi||V==="combobox",Vi=Y||convertChildrenToData(D);if(warning(V!=="tags"||Vi.every(function(tn){return!tn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var Di=Vi.some(function(tn){return tn.options?tn.options.some(function(or){return typeof("value"in or?or.value:or.key)=="number"}):typeof("value"in tn?tn.value:tn.key)=="number"});warning(!Di,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(V!=="combobox"||!ci,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(V==="combobox"||!P,"`backfill` only works with `combobox` mode."),warning(V==="combobox"||!Ue,"`getInputElement` only work with `combobox` mode."),noteOnce(V!=="combobox"||!Ue||!oe||!Ie,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),dt&&!Ti&&V!=="combobox"&&V!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!kt||dn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),qn!=null){var Pi=toArray(qn);warning(!Vn||Pi.every(function(tn){return _typeof(tn)==="object"&&("key"in tn||"value"in tn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!hi||Array.isArray(qn),"`value` should be array when `mode` is `multiple` or `tags`")}if(D){var mt=null;toNodeArray(D).some(function(tn){if(!React.isValidElement(tn)||!tn.type)return!1;var or=tn,rt=or.type;if(rt.isSelectOption)return!1;if(rt.isSelectOptGroup){var St=toNodeArray(tn.props.children).every(function(_n){return!React.isValidElement(_n)||!tn.type||_n.type.isSelectOption?!0:(mt=_n.type,!1)});return!St}return mt=rt,!0}),mt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(mt.displayName||mt.name||mt,"`.")),warning(yr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function H(Xt,V){if(Xt){var Y=function D(P){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ie=0;Ie<P.length;Ie++){var Ue=P[Ie];if(Ue[V?.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!oe&&Array.isArray(Ue[V?.options])&&D(Ue[V?.options],!0))break}};Y(Xt)}}const Be=null;var wn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],bi=["inputValue"];function Oi(Xt){return!Xt||se(Xt)!=="object"}var de=Ne.forwardRef(function(Xt,V){var Y=Xt.id,D=Xt.mode,P=Xt.prefixCls,oe=P===void 0?"rc-select":P,Ie=Xt.backfill,Ue=Xt.fieldNames,Xe=Xt.inputValue,dt=Xt.searchValue,kt=Xt.onSearch,dn=Xt.autoClearSearchValue,Vn=dn===void 0?!0:dn,qn=Xt.onSelect,yr=Xt.onDeselect,ci=Xt.dropdownMatchSelectWidth,hi=ci===void 0?!0:ci,Ti=Xt.filterOption,Vi=Xt.filterSort,Di=Xt.optionFilterProp,Pi=Xt.optionLabelProp,mt=Xt.options,tn=Xt.optionRender,or=Xt.children,rt=Xt.defaultActiveFirstOption,St=Xt.menuItemSelectedIcon,_n=Xt.virtual,vn=Xt.direction,Ln=Xt.listHeight,_r=Ln===void 0?200:Ln,Br=Xt.listItemHeight,Kr=Br===void 0?20:Br,Jr=Xt.labelRender,ii=Xt.value,le=Xt.defaultValue,Ae=Xt.labelInValue,Oe=Xt.onChange,et=Xt.maxCount,Ot=yt(Xt,wn),It=Cr(Y),Mn=Je(D),mn=!!(!mt&&or),At=Ne.useMemo(function(){return Ti===void 0&&D==="combobox"?!1:Ti},[Ti,D]),Ut=Ne.useMemo(function(){return pn(Ue,mn)},[JSON.stringify(Ue),mn]),jn=(0,tt.A)("",{value:dt!==void 0?dt:Xe,postState:function(cn){return cn||""}}),Jt=Te(jn,2),dr=Jt[0],wr=Jt[1],Hr=jt(mt,or,Ut,Di,Pi),Ar=Hr.valueOptions,yi=Hr.labelOptions,Rr=Hr.options,si=Ne.useCallback(function(wt){var cn=nn(wt);return cn.map(function(rr){var $n,Sr,fi,Ci,la;if(Oi(rr))$n=rr;else{var ya;fi=rr.key,Sr=rr.label,$n=(ya=rr.value)!==null&&ya!==void 0?ya:fi}var _a=Ar.get($n);if(_a){var Ga;if(Sr===void 0&&(Sr=_a?.[Pi||Ut.label]),fi===void 0&&(fi=(Ga=_a?.key)!==null&&Ga!==void 0?Ga:$n),Ci=_a?.disabled,la=_a?.title,0)var Pa}return{label:Sr,value:$n,key:fi,disabled:Ci,title:la}})},[Ut,Pi,Ar]),Si=(0,tt.A)(le,{value:ii}),$i=Te(Si,2),Hi=$i[0],Oa=$i[1],Ma=Ne.useMemo(function(){var wt,cn=Mn&&Hi===null?[]:Hi,rr=si(cn);return D==="combobox"&&Kn((wt=rr[0])===null||wt===void 0?void 0:wt.value)?[]:rr},[Hi,si,D,Mn]),Ua=Lr(Ma,Ar),Xa=Te(Ua,2),Na=Xa[0],za=Xa[1],qa=Ne.useMemo(function(){if(!D&&Na.length===1){var wt=Na[0];if(wt.value===null&&(wt.label===null||wt.label===void 0))return[]}return Na.map(function(cn){var rr;return B(B({},cn),{},{label:(rr=typeof Jr=="function"?Jr(cn):cn.label)!==null&&rr!==void 0?rr:cn.value})})},[D,Na,Jr]),no=Ne.useMemo(function(){return new Set(Na.map(function(wt){return wt.value}))},[Na]);Ne.useEffect(function(){if(D==="combobox"){var wt,cn=(wt=Na[0])===null||wt===void 0?void 0:wt.value;wr(Vt(cn)?String(cn):"")}},[Na]);var wo=sn(function(wt,cn){var rr=cn??wt;return A(A({},Ut.value,wt),Ut.label,rr)}),go=Ne.useMemo(function(){if(D!=="tags")return Rr;var wt=ce(Rr),cn=function($n){return Ar.has($n)};return ce(Na).sort(function(rr,$n){return rr.value<$n.value?-1:1}).forEach(function(rr){var $n=rr.value;cn($n)||wt.push(wo($n,rr.label))}),wt},[wo,Rr,Ar,Na,D]),Ka=Un(go,Ut,dr,At,Di),Ia=Ne.useMemo(function(){return D!=="tags"||!dr||Ka.some(function(wt){return wt[Di||"value"]===dr})||Ka.some(function(wt){return wt[Ut.value]===dr})?Ka:[wo(dr)].concat(ce(Ka))},[wo,Di,D,Ka,dr,Ut]),Us=function wt(cn){var rr=ce(cn).sort(function($n,Sr){return Vi($n,Sr,{searchValue:dr})});return rr.map(function($n){return Array.isArray($n.options)?B(B({},$n),{},{options:$n.options.length>0?wt($n.options):$n.options}):$n})},Vs=Ne.useMemo(function(){return Vi?Us(Ia):Ia},[Ia,Vi,dr]),Is=Ne.useMemo(function(){return Yn(Vs,{fieldNames:Ut,childrenAsData:mn})},[Vs,Ut,mn]),uo=function(cn){var rr=si(cn);if(Oa(rr),Oe&&(rr.length!==Na.length||rr.some(function(fi,Ci){var la;return((la=Na[Ci])===null||la===void 0?void 0:la.value)!==fi?.value}))){var $n=Ae?rr:rr.map(function(fi){return fi.value}),Sr=rr.map(function(fi){return ht(za(fi.value))});Oe(Mn?$n:$n[0],Mn?Sr:Sr[0])}},Ds=Ne.useState(null),Js=Te(Ds,2),eo=Js[0],uu=Js[1],pa=Ne.useState(0),na=Te(pa,2),Ui=na[0],xe=na[1],Ce=rt!==void 0?rt:D!=="combobox",st=Ne.useCallback(function(wt,cn){var rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$n=rr.source,Sr=$n===void 0?"keyboard":$n;xe(cn),Ie&&D==="combobox"&&wt!==null&&Sr==="keyboard"&&uu(String(wt))},[Ie,D]),gt=function(cn,rr,$n){var Sr=function(){var Do,fo=za(cn);return[Ae?{label:fo?.[Ut.label],value:cn,key:(Do=fo?.key)!==null&&Do!==void 0?Do:cn}:cn,ht(fo)]};if(rr&&qn){var fi=Sr(),Ci=Te(fi,2),la=Ci[0],ya=Ci[1];qn(la,ya)}else if(!rr&&yr&&$n!=="clear"){var _a=Sr(),Ga=Te(_a,2),Pa=Ga[0],ja=Ga[1];yr(Pa,ja)}},Ht=sn(function(wt,cn){var rr,$n=Mn?cn.selected:!0;$n?rr=Mn?[].concat(ce(Na),[wt]):[wt]:rr=Na.filter(function(Sr){return Sr.value!==wt}),uo(rr),gt(wt,$n),D==="combobox"?uu(""):(!Je||Vn)&&(wr(""),uu(""))}),Hn=function(cn,rr){uo(cn);var $n=rr.type,Sr=rr.values;($n==="remove"||$n==="clear")&&Sr.forEach(function(fi){gt(fi.value,!1,$n)})},fr=function(cn,rr){if(wr(cn),uu(null),rr.source==="submit"){var $n=(cn||"").trim();if($n){var Sr=Array.from(new Set([].concat(ce(no),[$n])));uo(Sr),gt($n,!0),wr("")}return}rr.source!=="blur"&&(D==="combobox"&&uo(cn),kt?.(cn))},Zr=function(cn){var rr=cn;D!=="tags"&&(rr=cn.map(function(Sr){var fi=yi.get(Sr);return fi?.value}).filter(function(Sr){return Sr!==void 0}));var $n=Array.from(new Set([].concat(ce(no),ce(rr))));uo($n),$n.forEach(function(Sr){gt(Sr,!0)})},gi=Ne.useMemo(function(){var wt=_n!==!1&&hi!==!1;return B(B({},Hr),{},{flattenOptions:Is,onActiveValue:st,defaultActiveFirstOption:Ce,onSelect:Ht,menuItemSelectedIcon:St,rawValues:no,fieldNames:Ut,virtual:wt,direction:vn,listHeight:_r,listItemHeight:Kr,childrenAsData:mn,maxCount:et,optionRender:tn})},[et,Hr,Is,st,Ce,Ht,St,no,Ut,_n,hi,vn,_r,Kr,mn,tn]);return Ne.createElement(Ke.Provider,{value:gi},Ne.createElement(Qe,$({},Ot,{id:It,prefixCls:oe,ref:V,omitDomProps:bi,mode:D,displayValues:qa,onDisplayValuesChange:Hn,direction:vn,searchValue:dr,onSearch:fr,autoClearSearchValue:Vn,onSearchSplit:Zr,dropdownMatchSelectWidth:hi,OptionList:Bn,emptyOptions:!Is.length,activeValue:eo,activeDescendantId:"".concat(It,"_list_").concat(Ui)})))}),Ve=de;Ve.Option=zt,Ve.OptGroup=qe;const vt=null,Qt=null;var nt=u(26956),Tt=Ne.createContext({});const Gt=Tt;var En="__rc_cascader_search_mark__",Qn=function(V,Y,D){var P=D.label,oe=P===void 0?"":P;return Y.some(function(Ie){return String(Ie[oe]).toLowerCase().includes(V.toLowerCase())})},Or=function(V,Y,D,P){return Y.map(function(oe){return oe[P.label]}).join(" / ")},Pr=function(V,Y,D,P,oe,Ie){var Ue=oe.filter,Xe=Ue===void 0?Qn:Ue,dt=oe.render,kt=dt===void 0?Or:dt,dn=oe.limit,Vn=dn===void 0?50:dn,qn=oe.sort;return Ne.useMemo(function(){var yr=[];if(!V)return[];function ci(hi,Ti){var Vi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;hi.forEach(function(Di){if(!(!qn&&Vn!==!1&&Vn>0&&yr.length>=Vn)){var Pi=[].concat(O(Ti),[Di]),mt=Di[D.children],tn=Vi||Di.disabled;if((!mt||mt.length===0||Ie)&&Xe(V,Pi,{label:D.label})){var or;yr.push(h(h({},Di),{},(or={disabled:tn},f(or,D.label,kt(V,Pi,P,D)),f(or,En,Pi),f(or,D.children,void 0),or)))}mt&&ci(Di[D.children],Pi,tn)}})}return ci(Y,[]),qn&&yr.sort(function(hi,Ti){return qn(hi[En],Ti[En],V,D)}),Vn!==!1&&Vn>0?yr.slice(0,Vn):yr},[V,Y,D,P,kt,Ie,Xe,qn,Vn])};const ai=Pr;var xi="__RC_CASCADER_SPLIT__",mi="SHOW_PARENT",ei="SHOW_CHILD";function Qr(Xt){return Xt.join(xi)}function Ni(Xt){return Xt.map(Qr)}function ea(Xt){return Xt.split(xi)}function Qi(Xt){var V=Xt||{},Y=V.label,D=V.value,P=V.children,oe=D||"value";return{label:Y||"label",value:oe,key:oe,children:P||"children"}}function ir(Xt,V){var Y,D;return(Y=Xt.isLeaf)!==null&&Y!==void 0?Y:!((D=Xt[V.children])!==null&&D!==void 0&&D.length)}function xr(Xt){var V=Xt.parentElement;if(V){var Y=Xt.offsetTop-V.offsetTop;Y-V.scrollTop<0?V.scrollTo({top:Y}):Y+Xt.offsetHeight-V.scrollTop>V.offsetHeight&&V.scrollTo({top:Y+Xt.offsetHeight-V.offsetHeight})}}function di(Xt,V){return Xt.map(function(Y){var D;return(D=Y[En])===null||D===void 0?void 0:D.map(function(P){return P[V.value]})})}function ft(Xt){return Array.isArray(Xt)&&Array.isArray(Xt[0])}function zn(Xt){return Xt?ft(Xt)?Xt:(Xt.length===0?[]:[Xt]).map(function(V){return Array.isArray(V)?V:[V]}):[]}function Zn(Xt,V,Y){var D=new Set(Xt),P=V();return Xt.filter(function(oe){var Ie=P[oe],Ue=Ie?Ie.parent:null,Xe=Ie?Ie.children:null;return Ie&&Ie.node.disabled?!0:Y===ei?!(Xe&&Xe.some(function(dt){return dt.key&&D.has(dt.key)})):!(Ue&&!Ue.node.disabled&&D.has(Ue.key))})}function wi(Xt,V,Y){for(var D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,P=V,oe=[],Ie=function(){var dt,kt,dn,Vn=Xt[Ue],qn=(dt=P)===null||dt===void 0?void 0:dt.findIndex(function(ci){var hi=ci[Y.value];return D?String(hi)===String(Vn):hi===Vn}),yr=qn!==-1?(kt=P)===null||kt===void 0?void 0:kt[qn]:null;oe.push({value:(dn=yr?.[Y.value])!==null&&dn!==void 0?dn:Vn,index:qn,option:yr}),P=yr?.[Y.children]},Ue=0;Ue<Xt.length;Ue+=1)Ie();return oe}const Ea=function(Xt,V,Y,D,P){return Ne.useMemo(function(){var oe=P||function(Ie){var Ue=D?Ie.slice(-1):Ie,Xe=" / ";return Ue.every(function(dt){return["string","number"].includes(g(dt))})?Ue.join(Xe):Ue.reduce(function(dt,kt,dn){var Vn=Ne.isValidElement(kt)?Ne.cloneElement(kt,{key:dn}):kt;return dn===0?[Vn]:[].concat(O(dt),[Xe,Vn])},[])};return Xt.map(function(Ie){var Ue,Xe=wi(Ie,V,Y),dt=oe(Xe.map(function(dn){var Vn,qn=dn.option,yr=dn.value;return(Vn=qn?.[Y.label])!==null&&Vn!==void 0?Vn:yr}),Xe.map(function(dn){var Vn=dn.option;return Vn})),kt=Qr(Ie);return{label:dt,value:kt,key:kt,valueCells:Ie,disabled:(Ue=Xe[Xe.length-1])===null||Ue===void 0||(Ue=Ue.option)===null||Ue===void 0?void 0:Ue.disabled}})},[Xt,V,Y,P,D])};function wa(Xt,V){return Ne.useCallback(function(Y){var D=[],P=[];return Y.forEach(function(oe){var Ie=wi(oe,Xt,V);Ie.every(function(Ue){return Ue.option})?P.push(oe):D.push(oe)}),[P,D]},[Xt,V])}var ji=u(7974);const Dt=function(Xt,V){var Y=Ne.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),D=Ne.useCallback(function(){return Y.current.options!==Xt&&(Y.current.options=Xt,Y.current.info=(0,ji.cG)(Xt,{fieldNames:V,initWrapper:function(oe){return h(h({},oe),{},{pathKeyEntities:{}})},processEntity:function(oe,Ie){var Ue=oe.nodes.map(function(Xe){return Xe[V.value]}).join(xi);Ie.pathKeyEntities[Ue]=oe,oe.key=Ue}})),Y.current.info.pathKeyEntities},[V,Xt]);return D};function Xn(Xt,V){var Y=Ne.useMemo(function(){return V||[]},[V]),D=Dt(Y,Xt),P=Ne.useCallback(function(oe){var Ie=D();return oe.map(function(Ue){var Xe=Ie[Ue].nodes;return Xe.map(function(dt){return dt[Xt.value]})})},[D,Xt]);return[Y,D,P]}function Tr(Xt){return Ne.useMemo(function(){if(!Xt)return[!1,{}];var V={matchInputWidth:!0,limit:50};return Xt&&g(Xt)==="object"&&(V=h(h({},V),Xt)),V.limit<=0&&(V.limit=!1),[!0,V]},[Xt])}var Nr=u(38820);function ti(Xt,V,Y,D,P,oe,Ie,Ue){return function(Xe){if(!Xt)V(Xe);else{var dt=Qr(Xe),kt=Ni(Y),dn=Ni(D),Vn=kt.includes(dt),qn=P.some(function(tn){return Qr(tn)===dt}),yr=Y,ci=P;if(qn&&!Vn)ci=P.filter(function(tn){return Qr(tn)!==dt});else{var hi=Vn?kt.filter(function(tn){return tn!==dt}):[].concat(O(kt),[dt]),Ti=oe(),Vi;if(Vn){var Di=(0,Nr.p)(hi,{checked:!1,halfCheckedKeys:dn},Ti);Vi=Di.checkedKeys}else{var Pi=(0,Nr.p)(hi,!0,Ti);Vi=Pi.checkedKeys}var mt=Zn(Vi,oe,Ue);yr=Ie(mt)}V([].concat(O(ci),O(yr)))}}}function _i(Xt,V,Y,D,P){return Ne.useMemo(function(){var oe=P(V),Ie=j(oe,2),Ue=Ie[0],Xe=Ie[1];if(!Xt||!V.length)return[Ue,[],Xe];var dt=Ni(Ue),kt=Y(),dn=(0,Nr.p)(dt,!0,kt),Vn=dn.checkedKeys,qn=dn.halfCheckedKeys;return[D(Vn),D(qn),Xe]},[Xt,V,Y,D,P])}var Ii=Ne.memo(function(Xt){var V=Xt.children;return V},function(Xt,V){return!V.open});const ta=Ii;function Ji(Xt){var V,Y=Xt.prefixCls,D=Xt.checked,P=Xt.halfChecked,oe=Xt.disabled,Ie=Xt.onClick,Ue=Xt.disableCheckbox,Xe=Ne.useContext(Gt),dt=Xe.checkable,kt=typeof dt!="boolean"?dt:null;return Ne.createElement("span",{className:Rt()("".concat(Y),(V={},f(V,"".concat(Y,"-checked"),D),f(V,"".concat(Y,"-indeterminate"),!D&&P),f(V,"".concat(Y,"-disabled"),oe||Ue),V)),onClick:Ie},kt)}var k="__cascader_fix_label__";function ve(Xt){var V=Xt.prefixCls,Y=Xt.multiple,D=Xt.options,P=Xt.activeValue,oe=Xt.prevValuePath,Ie=Xt.onToggleOpen,Ue=Xt.onSelect,Xe=Xt.onActive,dt=Xt.checkedSet,kt=Xt.halfCheckedSet,dn=Xt.loadingKeys,Vn=Xt.isSelectable,qn=Xt.disabled,yr="".concat(V,"-menu"),ci="".concat(V,"-menu-item"),hi=Ne.useContext(Gt),Ti=hi.fieldNames,Vi=hi.changeOnSelect,Di=hi.expandTrigger,Pi=hi.expandIcon,mt=hi.loadingIcon,tn=hi.dropdownMenuColumnStyle,or=hi.optionRender,rt=Di==="hover",St=function(Ln){return qn||Ln},_n=Ne.useMemo(function(){return D.map(function(vn){var Ln,_r=vn.disabled,Br=vn.disableCheckbox,Kr=vn[En],Jr=(Ln=vn[k])!==null&&Ln!==void 0?Ln:vn[Ti.label],ii=vn[Ti.value],le=ir(vn,Ti),Ae=Kr?Kr.map(function(Mn){return Mn[Ti.value]}):[].concat(O(oe),[ii]),Oe=Qr(Ae),et=dn.includes(Oe),Ot=dt.has(Oe),It=kt.has(Oe);return{disabled:_r,label:Jr,value:ii,isLeaf:le,isLoading:et,checked:Ot,halfChecked:It,option:vn,disableCheckbox:Br,fullPath:Ae,fullPathKey:Oe}})},[D,dt,Ti,kt,dn,oe]);return Ne.createElement("ul",{className:yr,role:"menu"},_n.map(function(vn){var Ln,_r=vn.disabled,Br=vn.label,Kr=vn.value,Jr=vn.isLeaf,ii=vn.isLoading,le=vn.checked,Ae=vn.halfChecked,Oe=vn.option,et=vn.fullPath,Ot=vn.fullPathKey,It=vn.disableCheckbox,Mn=function(){if(!St(_r)){var jn=O(et);rt&&Jr&&jn.pop(),Xe(jn)}},mn=function(){Vn(Oe)&&!St(_r)&&Ue(et,Jr)},At;return typeof Oe.title=="string"?At=Oe.title:typeof Br=="string"&&(At=Br),Ne.createElement("li",{key:Ot,className:Rt()(ci,(Ln={},f(Ln,"".concat(ci,"-expand"),!Jr),f(Ln,"".concat(ci,"-active"),P===Kr||P===Ot),f(Ln,"".concat(ci,"-disabled"),St(_r)),f(Ln,"".concat(ci,"-loading"),ii),Ln)),style:tn,role:"menuitemcheckbox",title:At,"aria-checked":le,"data-path-key":Ot,onClick:function(){Mn(),!It&&(!Y||Jr)&&mn()},onDoubleClick:function(){Vi&&Ie(!1)},onMouseEnter:function(){rt&&Mn()},onMouseDown:function(jn){jn.preventDefault()}},Y&&Ne.createElement(Ji,{prefixCls:"".concat(V,"-checkbox"),checked:le,halfChecked:Ae,disabled:St(_r)||It,disableCheckbox:It,onClick:function(jn){It||(jn.stopPropagation(),mn())}}),Ne.createElement("div",{className:"".concat(ci,"-content")},or?or(Oe):Br),!ii&&Pi&&!Jr&&Ne.createElement("div",{className:"".concat(ci,"-expand-icon")},Pi),ii&&mt&&Ne.createElement("div",{className:"".concat(ci,"-loading-icon")},mt))}))}var Le=function(V,Y){var D=Ne.useContext(Gt),P=D.values,oe=P[0],Ie=Ne.useState([]),Ue=j(Ie,2),Xe=Ue[0],dt=Ue[1];return Ne.useEffect(function(){V||dt(oe||[])},[Y,oe]),[Xe,dt]};const Ye=Le,ot=function(Xt,V,Y,D,P,oe,Ie){var Ue=Ie.direction,Xe=Ie.searchValue,dt=Ie.toggleOpen,kt=Ie.open,dn=Ue==="rtl",Vn=Ne.useMemo(function(){for(var tn=-1,or=V,rt=[],St=[],_n=D.length,vn=di(V,Y),Ln=function(ii){var le=or.findIndex(function(Ae,Oe){return(vn[Oe]?Qr(vn[Oe]):Ae[Y.value])===D[ii]});if(le===-1)return 1;tn=le,rt.push(tn),St.push(D[ii]),or=or[tn][Y.children]},_r=0;_r<_n&&or&&!Ln(_r);_r+=1);for(var Br=V,Kr=0;Kr<rt.length-1;Kr+=1)Br=Br[rt[Kr]][Y.children];return[St,tn,Br,vn]},[D,Y,V]),qn=j(Vn,4),yr=qn[0],ci=qn[1],hi=qn[2],Ti=qn[3],Vi=function(or){P(or)},Di=function(or){var rt=hi.length,St=ci;St===-1&&or<0&&(St=rt);for(var _n=0;_n<rt;_n+=1){St=(St+or+rt)%rt;var vn=hi[St];if(vn&&!vn.disabled){var Ln=yr.slice(0,-1).concat(Ti[St]?Qr(Ti[St]):vn[Y.value]);Vi(Ln);return}}},Pi=function(){if(yr.length>1){var or=yr.slice(0,-1);Vi(or)}else dt(!1)},mt=function(){var or,rt=((or=hi[ci])===null||or===void 0?void 0:or[Y.children])||[],St=rt.find(function(vn){return!vn.disabled});if(St){var _n=[].concat(O(yr),[St[Y.value]]);Vi(_n)}};Ne.useImperativeHandle(Xt,function(){return{onKeyDown:function(or){var rt=or.which;switch(rt){case _e.A.UP:case _e.A.DOWN:{var St=0;rt===_e.A.UP?St=-1:rt===_e.A.DOWN&&(St=1),St!==0&&Di(St);break}case _e.A.LEFT:{if(Xe)break;dn?mt():Pi();break}case _e.A.RIGHT:{if(Xe)break;dn?Pi():mt();break}case _e.A.BACKSPACE:{Xe||Pi();break}case _e.A.ENTER:{if(yr.length){var _n=hi[ci],vn=_n?.[En]||[];vn.length?oe(vn.map(function(Ln){return Ln[Y.value]}),vn[vn.length-1]):oe(yr,hi[ci])}break}case _e.A.ESC:dt(!1),kt&&or.stopPropagation()}},onKeyUp:function(){}}})};var Lt=Ne.forwardRef(function(Xt,V){var Y,D,P,oe=Xt.prefixCls,Ie=Xt.multiple,Ue=Xt.searchValue,Xe=Xt.toggleOpen,dt=Xt.notFoundContent,kt=Xt.direction,dn=Xt.open,Vn=Xt.disabled,qn=Ne.useRef(null),yr=kt==="rtl",ci=Ne.useContext(Gt),hi=ci.options,Ti=ci.values,Vi=ci.halfValues,Di=ci.fieldNames,Pi=ci.changeOnSelect,mt=ci.onSelect,tn=ci.searchOptions,or=ci.dropdownPrefixCls,rt=ci.loadData,St=ci.expandTrigger,_n=or||oe,vn=Ne.useState([]),Ln=j(vn,2),_r=Ln[0],Br=Ln[1],Kr=function(yi){if(!(!rt||Ue)){var Rr=wi(yi,hi,Di),si=Rr.map(function(Hi){var Oa=Hi.option;return Oa}),Si=si[si.length-1];if(Si&&!ir(Si,Di)){var $i=Qr(yi);Br(function(Hi){return[].concat(O(Hi),[$i])}),rt(si)}}};Ne.useEffect(function(){_r.length&&_r.forEach(function(Ar){var yi=ea(Ar),Rr=wi(yi,hi,Di,!0).map(function(Si){var $i=Si.option;return $i}),si=Rr[Rr.length-1];(!si||si[Di.children]||ir(si,Di))&&Br(function(Si){return Si.filter(function($i){return $i!==Ar})})})},[hi,_r,Di]);var Jr=Ne.useMemo(function(){return new Set(Ni(Ti))},[Ti]),ii=Ne.useMemo(function(){return new Set(Ni(Vi))},[Vi]),le=Ye(Ie,dn),Ae=j(le,2),Oe=Ae[0],et=Ae[1],Ot=function(yi){et(yi),Kr(yi)},It=function(yi){if(Vn)return!1;var Rr=yi.disabled,si=ir(yi,Di);return!Rr&&(si||Pi||Ie)},Mn=function(yi,Rr){var si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;mt(yi),!Ie&&(Rr||Pi&&(St==="hover"||si))&&Xe(!1)},mn=Ne.useMemo(function(){return Ue?tn:hi},[Ue,tn,hi]),At=Ne.useMemo(function(){for(var Ar=[{options:mn}],yi=mn,Rr=di(yi,Di),si=function(){var Hi=Oe[Si],Oa=yi.find(function(Ua,Xa){return(Rr[Xa]?Qr(Rr[Xa]):Ua[Di.value])===Hi}),Ma=Oa?.[Di.children];if(!(Ma!=null&&Ma.length))return 1;yi=Ma,Ar.push({options:Ma})},Si=0;Si<Oe.length&&!si();Si+=1);return Ar},[mn,Oe,Di]),Ut=function(yi,Rr){It(Rr)&&Mn(yi,ir(Rr,Di),!0)};ot(V,mn,Di,Oe,Ot,Ut,{direction:kt,searchValue:Ue,toggleOpen:Xe,open:dn}),Ne.useEffect(function(){if(!Ue)for(var Ar=0;Ar<Oe.length;Ar+=1){var yi,Rr=Oe.slice(0,Ar+1),si=Qr(Rr),Si=(yi=qn.current)===null||yi===void 0?void 0:yi.querySelector('li[data-path-key="'.concat(si.replace(/\\{0,2}"/g,'\\"'),'"]'));Si&&xr(Si)}},[Oe,Ue]);var jn=!((Y=At[0])!==null&&Y!==void 0&&(Y=Y.options)!==null&&Y!==void 0&&Y.length),Jt=[(D={},f(D,Di.value,"__EMPTY__"),f(D,k,dt),f(D,"disabled",!0),D)],dr=h(h({},Xt),{},{multiple:!jn&&Ie,onSelect:Mn,onActive:Ot,onToggleOpen:Xe,checkedSet:Jr,halfCheckedSet:ii,loadingKeys:_r,isSelectable:It}),wr=jn?[{options:Jt}]:At,Hr=wr.map(function(Ar,yi){var Rr=Oe.slice(0,yi),si=Oe[yi];return Ne.createElement(ve,l({key:yi},dr,{prefixCls:_n,options:Ar.options,prevValuePath:Rr,activeValue:si}))});return Ne.createElement(ta,{open:dn},Ne.createElement("div",{className:Rt()("".concat(_n,"-menus"),(P={},f(P,"".concat(_n,"-menu-empty"),jn),f(P,"".concat(_n,"-rtl"),yr),P)),ref:qn},Hr))});const an=Lt;var nr=Ne.forwardRef(function(Xt,V){var Y=Z();return Ne.createElement(an,l({},Xt,Y,{ref:V}))});const vr=nr;var $r=u(28295);function Fr(){}function qr(Xt){var V,Y=Xt,D=Y.prefixCls,P=D===void 0?"rc-cascader":D,oe=Y.style,Ie=Y.className,Ue=Y.options,Xe=Y.checkable,dt=Y.defaultValue,kt=Y.value,dn=Y.fieldNames,Vn=Y.changeOnSelect,qn=Y.onChange,yr=Y.showCheckedStrategy,ci=Y.loadData,hi=Y.expandTrigger,Ti=Y.expandIcon,Vi=Ti===void 0?">":Ti,Di=Y.loadingIcon,Pi=Y.direction,mt=Y.notFoundContent,tn=mt===void 0?"Not Found":mt,or=Y.disabled,rt=!!Xe,St=(0,$r.vz)(dt,{value:kt,postState:zn}),_n=j(St,2),vn=_n[0],Ln=_n[1],_r=Ne.useMemo(function(){return Qi(dn)},[JSON.stringify(dn)]),Br=Xn(_r,Ue),Kr=j(Br,3),Jr=Kr[0],ii=Kr[1],le=Kr[2],Ae=wa(Jr,_r),Oe=_i(rt,vn,ii,le,Ae),et=j(Oe,3),Ot=et[0],It=et[1],Mn=et[2],mn=(0,$r._q)(function(wr){if(Ln(wr),qn){var Hr=zn(wr),Ar=Hr.map(function(si){return wi(si,Jr,_r).map(function(Si){return Si.option})}),yi=rt?Hr:Hr[0],Rr=rt?Ar:Ar[0];qn(yi,Rr)}}),At=ti(rt,mn,Ot,It,Mn,ii,le,yr),Ut=(0,$r._q)(function(wr){At(wr)}),jn=Ne.useMemo(function(){return{options:Jr,fieldNames:_r,values:Ot,halfValues:It,changeOnSelect:Vn,onSelect:Ut,checkable:Xe,searchOptions:[],dropdownPrefixCls:void 0,loadData:ci,expandTrigger:hi,expandIcon:Vi,loadingIcon:Di,dropdownMenuColumnStyle:void 0}},[Jr,_r,Ot,It,Vn,Ut,Xe,ci,hi,Vi,Di]),Jt="".concat(P,"-panel"),dr=!Jr.length;return Ne.createElement(Gt.Provider,{value:jn},Ne.createElement("div",{className:Rt()(Jt,(V={},f(V,"".concat(Jt,"-rtl"),Pi==="rtl"),f(V,"".concat(Jt,"-empty"),dr),V),Ie),style:oe},dr?tn:Ne.createElement(an,{prefixCls:P,searchValue:"",multiple:rt,toggleOpen:Fr,open:!0,direction:Pi,disabled:or})))}function jr(Xt){var V=Xt.onPopupVisibleChange,Y=Xt.popupVisible,D=Xt.popupClassName,P=Xt.popupPlacement,oe=Xt.onDropdownVisibleChange;warning(!V,"`onPopupVisibleChange` is deprecated. Please use `onOpenChange` instead."),warning(!oe,"`onDropdownVisibleChange` is deprecated. Please use `onOpenChange` instead."),warning(Y===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(D===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(P===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function vi(Xt,V){if(Xt){var Y=function D(P){for(var oe=0;oe<P.length;oe++){var Ie=P[oe];if(Ie[V?.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Ie[V?.children])&&D(Ie[V?.children]))return!0}};Y(Xt)}}const Mi=null;var ra=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Yi=Ne.forwardRef(function(Xt,V){var Y=Xt.id,D=Xt.prefixCls,P=D===void 0?"rc-cascader":D,oe=Xt.fieldNames,Ie=Xt.defaultValue,Ue=Xt.value,Xe=Xt.changeOnSelect,dt=Xt.onChange,kt=Xt.displayRender,dn=Xt.checkable,Vn=Xt.autoClearSearchValue,qn=Vn===void 0?!0:Vn,yr=Xt.searchValue,ci=Xt.onSearch,hi=Xt.showSearch,Ti=Xt.expandTrigger,Vi=Xt.options,Di=Xt.dropdownPrefixCls,Pi=Xt.loadData,mt=Xt.popupVisible,tn=Xt.open,or=Xt.popupClassName,rt=Xt.dropdownClassName,St=Xt.dropdownMenuColumnStyle,_n=Xt.dropdownStyle,vn=Xt.popupPlacement,Ln=Xt.placement,_r=Xt.onDropdownVisibleChange,Br=Xt.onPopupVisibleChange,Kr=Xt.onOpenChange,Jr=Xt.expandIcon,ii=Jr===void 0?">":Jr,le=Xt.loadingIcon,Ae=Xt.children,Oe=Xt.dropdownMatchSelectWidth,et=Oe===void 0?!1:Oe,Ot=Xt.showCheckedStrategy,It=Ot===void 0?mi:Ot,Mn=Xt.optionRender,mn=U(Xt,ra),At=Cr(Y),Ut=!!dn,jn=(0,tt.A)(Ie,{value:Ue,postState:zn}),Jt=j(jn,2),dr=Jt[0],wr=Jt[1],Hr=Ne.useMemo(function(){return Qi(oe)},[JSON.stringify(oe)]),Ar=Xn(Hr,Vi),yi=j(Ar,3),Rr=yi[0],si=yi[1],Si=yi[2],$i=(0,tt.A)("",{value:yr,postState:function(Hn){return Hn||""}}),Hi=j($i,2),Oa=Hi[0],Ma=Hi[1],Ua=function(Hn,fr){Ma(Hn),fr.source!=="blur"&&ci&&ci(Hn)},Xa=Tr(hi),Na=j(Xa,2),za=Na[0],qa=Na[1],no=ai(Oa,Rr,Hr,Di||P,qa,Xe||Ut),wo=wa(Rr,Hr),go=_i(Ut,dr,si,Si,wo),Ka=j(go,3),Ia=Ka[0],Us=Ka[1],Vs=Ka[2],Is=Ne.useMemo(function(){var Ht=Ni(Ia),Hn=Zn(Ht,si,It);return[].concat(O(Vs),O(Si(Hn)))},[Ia,si,Si,Vs,It]),uo=Ea(Is,Rr,Hr,Ut,kt),Ds=(0,nt.A)(function(Ht){if(wr(Ht),dt){var Hn=zn(Ht),fr=Hn.map(function(wt){return wi(wt,Rr,Hr).map(function(cn){return cn.option})}),Zr=Ut?Hn:Hn[0],gi=Ut?fr:fr[0];dt(Zr,gi)}}),Js=ti(Ut,Ds,Ia,Us,Vs,si,Si,It),eo=(0,nt.A)(function(Ht){(!Ut||qn)&&Ma(""),Js(Ht)}),uu=function(Hn,fr){if(fr.type==="clear"){Ds([]);return}var Zr=fr.values[0],gi=Zr.valueCells;eo(gi)},pa=tn!==void 0?tn:mt,na=rt||or,Ui=Ln||vn,xe=function(Hn){Kr?.(Hn),_r?.(Hn),Br?.(Hn)},Ce=Ne.useMemo(function(){return{options:Rr,fieldNames:Hr,values:Ia,halfValues:Us,changeOnSelect:Xe,onSelect:eo,checkable:dn,searchOptions:no,dropdownPrefixCls:Di,loadData:Pi,expandTrigger:Ti,expandIcon:ii,loadingIcon:le,dropdownMenuColumnStyle:St,optionRender:Mn}},[Rr,Hr,Ia,Us,Xe,eo,dn,no,Di,Pi,Ti,ii,le,St,Mn]),st=!(Oa?no:Rr).length,gt=Oa&&qa.matchInputWidth||st?{}:{minWidth:"auto"};return Ne.createElement(Gt.Provider,{value:Ce},Ne.createElement(Qe,l({},mn,{ref:V,id:At,prefixCls:P,autoClearSearchValue:qn,dropdownMatchSelectWidth:et,dropdownStyle:h(h({},gt),_n),displayValues:uo,onDisplayValuesChange:uu,mode:Ut?"multiple":void 0,searchValue:Oa,onSearch:Ua,showSearch:za,OptionList:vr,emptyOptions:st,open:pa,dropdownClassName:na,placement:Ui,onDropdownVisibleChange:xe,getRawInputElement:function(){return Ae}})))});Yi.SHOW_PARENT=mi,Yi.SHOW_CHILD=ei,Yi.Panel=qr;const Sa=Yi},38314:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});function l(g){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},l(g)}},38365:(Ge,w,u)=>{"use strict";/*! * is-plain-object <https://github.com/jonschlinkert/is-plain-object> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */var l=u(13798);function g(y){return l(y)===!0&&Object.prototype.toString.call(y)==="[object Object]"}Ge.exports=function(x){var f,p;return!(g(x)===!1||(f=x.constructor,typeof f!="function")||(p=f.prototype,g(p)===!1)||p.hasOwnProperty("isPrototypeOf")===!1)}},38426:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.bottom=p,w.childrenEqual=S,w.cloneLayout=h,w.cloneLayoutItem=m,w.collides=R,w.compact=C,w.compactItem=I,w.compactType=bn,w.correctBounds=U,w.fastPositionEqual=O,w.fastRGLPropsEqual=void 0,w.getAllCollisions=re,w.getFirstCollision=ee,w.getLayoutItem=$,w.getStatics=Se,w.modifyLayout=E,w.moveElement=z,w.moveElementAwayFromCollision=Q,w.noop=void 0,w.perc=ce,w.resizeItemInDirection=Ze,w.setTopLeft=it,w.setTransform=Ne,w.sortLayoutItems=Rt,w.sortLayoutItemsByColRow=Mt,w.sortLayoutItemsByRowCol=Dn,w.synchronizeLayoutWithChildren=Wt,w.validateLayout=Tn,w.withLayoutItem=v;var l=u(51548),g=y(u(96540));function y(Z){return Z&&Z.__esModule?Z:{default:Z}}const x=!0,f=!1;function p(Z){let me=0,ke;for(let Ee=0,_e=Z.length;Ee<_e;Ee++)ke=Z[Ee].y+Z[Ee].h,ke>me&&(me=ke);return me}function h(Z){const me=Array(Z.length);for(let ke=0,Ee=Z.length;ke<Ee;ke++)me[ke]=m(Z[ke]);return me}function E(Z,me){const ke=Array(Z.length);for(let Ee=0,_e=Z.length;Ee<_e;Ee++)me.i===Z[Ee].i?ke[Ee]=me:ke[Ee]=Z[Ee];return ke}function v(Z,me,ke){let Ee=$(Z,me);return Ee?(Ee=ke(m(Ee)),Z=E(Z,Ee),[Z,Ee]):[Z,null]}function m(Z){return{w:Z.w,h:Z.h,x:Z.x,y:Z.y,i:Z.i,minW:Z.minW,maxW:Z.maxW,minH:Z.minH,maxH:Z.maxH,moved:!!Z.moved,static:!!Z.static,isDraggable:Z.isDraggable,isResizable:Z.isResizable,resizeHandles:Z.resizeHandles,isBounded:Z.isBounded}}function S(Z,me){return(0,l.deepEqual)(g.default.Children.map(Z,ke=>ke?.key),g.default.Children.map(me,ke=>ke?.key))&&(0,l.deepEqual)(g.default.Children.map(Z,ke=>ke?.props["data-grid"]),g.default.Children.map(me,ke=>ke?.props["data-grid"]))}const d=w.fastRGLPropsEqual=u(72590);function O(Z,me){return Z.left===me.left&&Z.top===me.top&&Z.width===me.width&&Z.height===me.height}function R(Z,me){return!(Z.i===me.i||Z.x+Z.w<=me.x||Z.x>=me.x+me.w||Z.y+Z.h<=me.y||Z.y>=me.y+me.h)}function C(Z,me,ke,Ee){const _e=Se(Z),ge=Rt(Z,me),Me=Array(Z.length);for(let lt=0,Ft=ge.length;lt<Ft;lt++){let Et=m(ge[lt]);Et.static||(Et=I(_e,Et,me,ke,ge,Ee),_e.push(Et)),Me[Z.indexOf(ge[lt])]=Et,Et.moved=!1}return Me}const L={x:"w",y:"h"};function j(Z,me,ke,Ee){const _e=L[Ee];me[Ee]+=1;const ge=Z.map(Me=>Me.i).indexOf(me.i);for(let Me=ge+1;Me<Z.length;Me++){const lt=Z[Me];if(!lt.static){if(lt.y>me.y+me.h)break;R(me,lt)&&j(Z,lt,ke+me[_e],Ee)}}me[Ee]=ke}function I(Z,me,ke,Ee,_e,ge){const Me=ke==="vertical",lt=ke==="horizontal";if(Me)for(me.y=Math.min(p(Z),me.y);me.y>0&&!ee(Z,me);)me.y--;else if(lt)for(;me.x>0&&!ee(Z,me);)me.x--;let Ft;for(;(Ft=ee(Z,me))&&!(ke===null&&ge);)if(lt?j(_e,me,Ft.x+Ft.w,"x"):j(_e,me,Ft.y+Ft.h,"y"),lt&&me.x+me.w>Ee)for(me.x=Ee-me.w,me.y++;me.x>0&&!ee(Z,me);)me.x--;return me.y=Math.max(me.y,0),me.x=Math.max(me.x,0),me}function U(Z,me){const ke=Se(Z);for(let Ee=0,_e=Z.length;Ee<_e;Ee++){const ge=Z[Ee];if(ge.x+ge.w>me.cols&&(ge.x=me.cols-ge.w),ge.x<0&&(ge.x=0,ge.w=me.cols),!ge.static)ke.push(ge);else for(;ee(ke,ge);)ge.y++}return Z}function $(Z,me){for(let ke=0,Ee=Z.length;ke<Ee;ke++)if(Z[ke].i===me)return Z[ke]}function ee(Z,me){for(let ke=0,Ee=Z.length;ke<Ee;ke++)if(R(Z[ke],me))return Z[ke]}function re(Z,me){return Z.filter(ke=>R(ke,me))}function Se(Z){return Z.filter(me=>me.static)}function z(Z,me,ke,Ee,_e,ge,Me,lt,Ft){if(me.static&&me.isDraggable!==!0||me.y===Ee&&me.x===ke)return Z;$t(`Moving element ${me.i} to [${String(ke)},${String(Ee)}] from [${me.x},${me.y}]`);const Et=me.x,Zt=me.y;typeof ke=="number"&&(me.x=ke),typeof Ee=="number"&&(me.y=Ee),me.moved=!0;let nn=Rt(Z,Me);(Me==="vertical"&&typeof Ee=="number"?Zt>=Ee:Me==="horizontal"&&typeof ke=="number"?Et>=ke:!1)&&(nn=nn.reverse());const rn=re(nn,me),Vt=rn.length>0;if(Vt&&Ft)return h(Z);if(Vt&&ge)return $t(`Collision prevented on ${me.i}, reverting.`),me.x=Et,me.y=Zt,me.moved=!1,Z;for(let Kn=0,ur=rn.length;Kn<ur;Kn++){const on=rn[Kn];$t(`Resolving collision between ${me.i} at [${me.x},${me.y}] and ${on.i} at [${on.x},${on.y}]`),!on.moved&&(on.static?Z=Q(Z,on,me,_e,Me,lt):Z=Q(Z,me,on,_e,Me,lt))}return Z}function Q(Z,me,ke,Ee,_e,ge){const Me=_e==="horizontal",lt=_e==="vertical",Ft=me.static;if(Ee){Ee=!1;const nn={x:Me?Math.max(me.x-ke.w,0):ke.x,y:lt?Math.max(me.y-ke.h,0):ke.y,w:ke.w,h:ke.h,i:"-1"},Pn=ee(Z,nn),rn=Pn&&Pn.y+Pn.h>me.y,Vt=Pn&&me.x+me.w>Pn.x;if(Pn){if(rn&<)return z(Z,ke,void 0,me.y+1,Ee,Ft,_e,ge);if(rn&&_e==null)return me.y=ke.y,ke.y=ke.y+ke.h,Z;if(Vt&&Me)return z(Z,me,ke.x,void 0,Ee,Ft,_e,ge)}else return $t(`Doing reverse collision on ${ke.i} up to [${nn.x},${nn.y}].`),z(Z,ke,Me?nn.x:void 0,lt?nn.y:void 0,Ee,Ft,_e,ge)}const Et=Me?ke.x+1:void 0,Zt=lt?ke.y+1:void 0;return Et==null&&Zt==null?Z:z(Z,ke,Me?ke.x+1:void 0,lt?ke.y+1:void 0,Ee,Ft,_e,ge)}function ce(Z){return Z*100+"%"}const se=(Z,me,ke,Ee)=>Z+ke>Ee?me:ke,q=(Z,me,ke)=>Z<0?me:ke,te=Z=>Math.max(0,Z),A=Z=>Math.max(0,Z),T=(Z,me,ke)=>{let{left:Ee,height:_e,width:ge}=me;const Me=Z.top-(_e-Z.height);return{left:Ee,width:ge,height:q(Me,Z.height,_e),top:A(Me)}},B=(Z,me,ke)=>{let{top:Ee,left:_e,height:ge,width:Me}=me;return{top:Ee,height:ge,width:se(Z.left,Z.width,Me,ke),left:te(_e)}},X=(Z,me,ke)=>{let{top:Ee,height:_e,width:ge}=me;const Me=Z.left-(ge-Z.width);return{height:_e,width:Me<0?Z.width:se(Z.left,Z.width,ge,ke),top:A(Ee),left:te(Me)}},ue=(Z,me,ke)=>{let{top:Ee,left:_e,height:ge,width:Me}=me;return{width:Me,left:_e,height:q(Ee,Z.height,ge),top:A(Ee)}},tt={n:T,ne:function(){return T(arguments.length<=0?void 0:arguments[0],B(...arguments),arguments.length<=2?void 0:arguments[2])},e:B,se:function(){return ue(arguments.length<=0?void 0:arguments[0],B(...arguments),arguments.length<=2?void 0:arguments[2])},s:ue,sw:function(){return ue(arguments.length<=0?void 0:arguments[0],X(...arguments),arguments.length<=2?void 0:arguments[2])},w:X,nw:function(){return T(arguments.length<=0?void 0:arguments[0],X(...arguments),arguments.length<=2?void 0:arguments[2])}};function Ze(Z,me,ke,Ee){const _e=tt[Z];return _e?_e(me,{...me,...ke},Ee):ke}function Ne(Z){let{top:me,left:ke,width:Ee,height:_e}=Z;const ge=`translate(${ke}px,${me}px)`;return{transform:ge,WebkitTransform:ge,MozTransform:ge,msTransform:ge,OTransform:ge,width:`${Ee}px`,height:`${_e}px`,position:"absolute"}}function it(Z){let{top:me,left:ke,width:Ee,height:_e}=Z;return{top:`${me}px`,left:`${ke}px`,width:`${Ee}px`,height:`${_e}px`,position:"absolute"}}function Rt(Z,me){return me==="horizontal"?Mt(Z):me==="vertical"?Dn(Z):Z}function Dn(Z){return Z.slice(0).sort(function(me,ke){return me.y>ke.y||me.y===ke.y&&me.x>ke.x?1:me.y===ke.y&&me.x===ke.x?0:-1})}function Mt(Z){return Z.slice(0).sort(function(me,ke){return me.x>ke.x||me.x===ke.x&&me.y>ke.y?1:-1})}function Wt(Z,me,ke,Ee,_e){Z=Z||[];const ge=[];g.default.Children.forEach(me,lt=>{if(lt?.key==null)return;const Ft=$(Z,String(lt.key)),Et=lt.props["data-grid"];Ft&&Et==null?ge.push(m(Ft)):Et?(x||Tn([Et],"ReactGridLayout.children"),ge.push(m({...Et,i:lt.key}))):ge.push(m({w:1,h:1,x:0,y:p(ge),i:String(lt.key)}))});const Me=U(ge,{cols:ke});return _e?Me:C(Me,Ee,ke)}function Tn(Z){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const ke=["x","y","w","h"];if(!Array.isArray(Z))throw new Error(me+" must be an array!");for(let Ee=0,_e=Z.length;Ee<_e;Ee++){const ge=Z[Ee];for(let Me=0;Me<ke.length;Me++)if(typeof ge[ke[Me]]!="number")throw new Error("ReactGridLayout: "+me+"["+Ee+"]."+ke[Me]+" must be a number!")}}function bn(Z){const{verticalCompact:me,compactType:ke}=Z||{};return me===!1?null:ke}function $t(){f&&console.log(...arguments)}const Ct=()=>{};w.noop=Ct},38495:(Ge,w,u)=>{"use strict";u.d(w,{U:()=>y});var l=u(92908),g=u(64878);function y(x){return(0,l.N)(function(f,p){var h=!1;f.subscribe((0,g._)(p,function(E){h=!0,p.next(E)},function(){h||p.next(x),p.complete()}))})}},38820:(Ge,w,u)=>{"use strict";u.d(w,{p:()=>h});var l=u(68210),g=u(84963);function y(E,v){var m=new Set;return E.forEach(function(S){v.has(S)||m.add(S)}),m}function x(E){var v=E||{},m=v.disabled,S=v.disableCheckbox,d=v.checkable;return!!(m||S)||d===!1}function f(E,v,m,S){for(var d=new Set(E),O=new Set,R=0;R<=m;R+=1){var C=v.get(R)||new Set;C.forEach(function(U){var $=U.key,ee=U.node,re=U.children,Se=re===void 0?[]:re;d.has($)&&!S(ee)&&Se.filter(function(z){return!S(z.node)}).forEach(function(z){d.add(z.key)})})}for(var L=new Set,j=m;j>=0;j-=1){var I=v.get(j)||new Set;I.forEach(function(U){var $=U.parent,ee=U.node;if(!(S(ee)||!U.parent||L.has(U.parent.key))){if(S(U.parent.node)){L.add($.key);return}var re=!0,Se=!1;($.children||[]).filter(function(z){return!S(z.node)}).forEach(function(z){var Q=z.key,ce=d.has(Q);re&&!ce&&(re=!1),!Se&&(ce||O.has(Q))&&(Se=!0)}),re&&d.add($.key),Se&&O.add($.key),L.add($.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(y(O,d))}}function p(E,v,m,S,d){for(var O=new Set(E),R=new Set(v),C=0;C<=S;C+=1){var L=m.get(C)||new Set;L.forEach(function($){var ee=$.key,re=$.node,Se=$.children,z=Se===void 0?[]:Se;!O.has(ee)&&!R.has(ee)&&!d(re)&&z.filter(function(Q){return!d(Q.node)}).forEach(function(Q){O.delete(Q.key)})})}R=new Set;for(var j=new Set,I=S;I>=0;I-=1){var U=m.get(I)||new Set;U.forEach(function($){var ee=$.parent,re=$.node;if(!(d(re)||!$.parent||j.has($.parent.key))){if(d($.parent.node)){j.add(ee.key);return}var Se=!0,z=!1;(ee.children||[]).filter(function(Q){return!d(Q.node)}).forEach(function(Q){var ce=Q.key,se=O.has(ce);Se&&!se&&(Se=!1),!z&&(se||R.has(ce))&&(z=!0)}),Se||O.delete(ee.key),z&&R.add(ee.key),j.add(ee.key)}})}return{checkedKeys:Array.from(O),halfCheckedKeys:Array.from(y(R,O))}}function h(E,v,m,S){var d=[],O;S?O=S:O=x;var R=new Set(E.filter(function(I){var U=!!(0,g.A)(m,I);return U||d.push(I),U})),C=new Map,L=0;Object.keys(m).forEach(function(I){var U=m[I],$=U.level,ee=C.get($);ee||(ee=new Set,C.set($,ee)),ee.add(U),L=Math.max(L,$)}),(0,l.Ay)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map(function(I){return"'".concat(I,"'")}).join(", ")));var j;return v===!0?j=f(R,C,L,O):j=p(R,v.halfCheckedKeys,C,L,O),j}},38975:(Ge,w,u)=>{"use strict";u.d(w,{s:()=>x});var l=u(61701),g=u(92908),y=u(64878);function x(f){return f<=0?function(){return l.w}:(0,g.N)(function(p,h){var E=0;p.subscribe((0,y._)(h,function(v){++E<=f&&(h.next(v),f<=E&&h.complete())}))})}},39546:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.concat=void 0;var l=u(70201),g=u(26404),y=u(47058);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return l.concatAll()(y.from(f,g.popScheduler(f)))}w.concat=x},39697:(Ge,w,u)=>{"use strict";u.d(w,{O:()=>f});var l=u(88483),g=u(44838),y=u(98820),x=u(86577);function f(p,h,E){p===void 0&&(p=0),E===void 0&&(E=g.b);var v=-1;return h!=null&&((0,y.m)(h)?E=h:v=h),new l.c(function(m){var S=(0,x.v)(p)?+p-E.now():p;S<0&&(S=0);var d=0;return E.schedule(function(){m.closed||(m.next(d++),0<=v?this.schedule(void 0,v):m.complete())},S)})}},39741:(Ge,w,u)=>{"use strict";u.d(w,{m:()=>x});var l=u(31635),g=u(13752),y=u(31179),x=function(f){(0,l.__extends)(p,f);function p(h,E,v){h===void 0&&(h=1/0),E===void 0&&(E=1/0),v===void 0&&(v=y.U);var m=f.call(this)||this;return m._bufferSize=h,m._windowTime=E,m._timestampProvider=v,m._buffer=[],m._infiniteTimeWindow=!0,m._infiniteTimeWindow=E===1/0,m._bufferSize=Math.max(1,h),m._windowTime=Math.max(1,E),m}return p.prototype.next=function(h){var E=this,v=E.isStopped,m=E._buffer,S=E._infiniteTimeWindow,d=E._timestampProvider,O=E._windowTime;v||(m.push(h),!S&&m.push(d.now()+O)),this._trimBuffer(),f.prototype.next.call(this,h)},p.prototype._subscribe=function(h){this._throwIfClosed(),this._trimBuffer();for(var E=this._innerSubscribe(h),v=this,m=v._infiniteTimeWindow,S=v._buffer,d=S.slice(),O=0;O<d.length&&!h.closed;O+=m?1:2)h.next(d[O]);return this._checkFinalizedStatuses(h),E},p.prototype._trimBuffer=function(){var h=this,E=h._bufferSize,v=h._timestampProvider,m=h._buffer,S=h._infiniteTimeWindow,d=(S?1:2)*E;if(E<1/0&&d<m.length&&m.splice(0,m.length-d),!S){for(var O=v.now(),R=0,C=1;C<m.length&&m[C]<=O;C+=2)R=C;R&&m.splice(0,R+1)}},p}(g.B)},40380:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.diffArrays=x,w.arrayDiff=void 0;var l=g(u(85969));function g(f){return f&&f.__esModule?f:{default:f}}var y=new l.default;w.arrayDiff=y,y.tokenize=function(f){return f.slice()},y.join=y.removeEmpty=function(f){return f};function x(f,p,h){return y.diff(f,p,h)}},40841:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.firstValueFrom=void 0;var l=u(59328),g=u(2708);function y(x,f){var p=typeof f=="object";return new Promise(function(h,E){var v=new g.SafeSubscriber({next:function(m){h(m),v.unsubscribe()},error:E,complete:function(){p?h(f.defaultValue):E(new l.EmptyError)}});x.subscribe(v)})}w.firstValueFrom=y},40871:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l,X:()=>g});function l(y,x,f){y.prototype=x.prototype=f,f.constructor=y}function g(y,x){var f=Object.create(y.prototype);for(var p in x)f[p]=x[p];return f}},40989:(Ge,w,u)=>{"use strict";u.d(w,{q:()=>y});var l=u(31635),g=u(94121),y=function(x){(0,l.__extends)(f,x);function f(p,h){h===void 0&&(h=g._.now);var E=x.call(this,p,h)||this;return E.actions=[],E._active=!1,E}return f.prototype.flush=function(p){var h=this.actions;if(this._active){h.push(p);return}var E;this._active=!0;do if(E=p.execute(p.state,p.delay))break;while(p=h.shift());if(this._active=!1,E){for(;p=h.shift();)p.unsubscribe();throw E}},f}(g._)},40996:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(96540);function g(x,f){f===void 0&&(f=0);var p=(0,l.useRef)(!1),h=(0,l.useRef)(),E=(0,l.useRef)(x),v=(0,l.useCallback)(function(){return p.current},[]),m=(0,l.useCallback)(function(){p.current=!1,h.current&&clearTimeout(h.current),h.current=setTimeout(function(){p.current=!0,E.current()},f)},[f]),S=(0,l.useCallback)(function(){p.current=null,h.current&&clearTimeout(h.current)},[]);return(0,l.useEffect)(function(){E.current=x},[x]),(0,l.useEffect)(function(){return m(),S},[f]),[v,S,m]}function y(x,f,p){f===void 0&&(f=0),p===void 0&&(p=[]);var h=g(x,f),E=h[0],v=h[1],m=h[2];return(0,l.useEffect)(m,p),[E,v]}},41153:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var u=["Shift","Meta","Alt","Control"],l=1e3,g="keydown",y=typeof navigator=="object"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function x(E,v){return typeof E.getModifierState=="function"?E.getModifierState(v):!1}function f(E){return E.trim().split(" ").map(function(v){var m=v.split(/\b\+/),S=m.pop();return m=m.map(function(d){return d==="$mod"?y:d}),[m,S]})}function p(E,v){return/^[^A-Za-z0-9]$/.test(E.key)&&v[1]===E.key?!0:!(v[1].toUpperCase()!==E.key.toUpperCase()&&v[1]!==E.code||v[0].find(function(m){return!x(E,m)})||u.find(function(m){return!v[0].includes(m)&&v[1]!==m&&x(E,m)}))}function h(E,v,m){var S,d;m===void 0&&(m={});var O=(S=m.timeout)!==null&&S!==void 0?S:l,R=(d=m.event)!==null&&d!==void 0?d:g,C=Object.keys(v).map(function(U){return[f(U),v[U]]}),L=new Map,j=null,I=function(U){U instanceof KeyboardEvent&&(C.forEach(function($){var ee=$[0],re=$[1],Se=L.get(ee),z=Se||ee,Q=z[0],ce=p(U,Q);ce?z.length>1?L.set(ee,z.slice(1)):(L.delete(ee),re(U)):x(U,U.key)||L.delete(ee)}),j&&clearTimeout(j),j=setTimeout(L.clear.bind(L),O))};return E.addEventListener(R,I),function(){E.removeEventListener(R,I)}}w.default=h},41560:(Ge,w,u)=>{"use strict";u.d(w,{v:()=>x});var l=u(76464),g=u(92908),y=u(64878);function x(p){return p===void 0&&(p=f),(0,g.N)(function(h,E){var v=!1;h.subscribe((0,y._)(E,function(m){v=!0,E.next(m)},function(){return v?E.complete():E.error(p())}))})}function f(){return new l.G}},41719:function(Ge,w,u){"use strict";var l=this&&this.__values||function(m){var S=typeof Symbol=="function"&&Symbol.iterator,d=S&&m[S],O=0;if(d)return d.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&O>=m.length&&(m=void 0),{value:m&&m[O++],done:!m}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.bufferTime=void 0;var g=u(69879),y=u(65212),x=u(17214),f=u(54830),p=u(62326),h=u(26404),E=u(28619);function v(m){for(var S,d,O=[],R=1;R<arguments.length;R++)O[R-1]=arguments[R];var C=(S=h.popScheduler(O))!==null&&S!==void 0?S:p.asyncScheduler,L=(d=O[0])!==null&&d!==void 0?d:null,j=O[1]||1/0;return y.operate(function(I,U){var $=[],ee=!1,re=function(Q){var ce=Q.buffer,se=Q.subs;se.unsubscribe(),f.arrRemove($,Q),U.next(ce),ee&&Se()},Se=function(){if($){var Q=new g.Subscription;U.add(Q);var ce=[],se={buffer:ce,subs:Q};$.push(se),E.executeSchedule(Q,C,function(){return re(se)},m)}};L!==null&&L>=0?E.executeSchedule(U,C,Se,L,!0):ee=!0,Se();var z=x.createOperatorSubscriber(U,function(Q){var ce,se,q=$.slice();try{for(var te=l(q),A=te.next();!A.done;A=te.next()){var T=A.value,B=T.buffer;B.push(Q),j<=B.length&&re(T)}}catch(X){ce={error:X}}finally{try{A&&!A.done&&(se=te.return)&&se.call(te)}finally{if(ce)throw ce.error}}},function(){for(;$?.length;)U.next($.shift().buffer);z?.unsubscribe(),U.complete(),U.unsubscribe()},void 0,function(){return $=null});I.subscribe(z)})}w.bufferTime=v},41729:(Ge,w,u)=>{var l=u(30580);function g(y,x,f){return(x=l(x))in y?Object.defineProperty(y,x,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[x]=f,y}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},41778:(Ge,w,u)=>{"use strict";u.d(w,{gv:()=>p,lX:()=>h});var l=u(52135),g=u(47184),y=u(2543),x=u(96540),f,p=(S=>(S[S.Timeseries=0]="Timeseries",S[S.Table=1]="Table",S[S.Logs=2]="Logs",S[S.Trace=3]="Trace",S[S.OptionMulti=4]="OptionMulti",S))(p||{}),h=(S=>(S.Builder="builder",S.Code="code",S))(h||{});const E=[{label:"Time series",value:0},{label:"Table",value:1}],v=S=>({label:S,value:S}),m=(f=g.z)!=null?f:v},41900:(Ge,w,u)=>{"use strict";u.d(w,{F:()=>x});var l=u(58307),g=u(92908),y=u(64878);function x(p,h){return h===void 0&&(h=l.D),p=p??f,(0,g.N)(function(E,v){var m,S=!0;E.subscribe((0,y._)(v,function(d){var O=h(d);(S||!p(m,O))&&(S=!1,m=O,v.next(d))}))})}function f(p,h){return p===h}},42467:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});const l=function(g){if(!g)return!1;if(g instanceof Element){if(g.offsetParent)return!0;if(g.getBBox){var y=g.getBBox(),x=y.width,f=y.height;if(x||f)return!0}if(g.getBoundingClientRect){var p=g.getBoundingClientRect(),h=p.width,E=p.height;if(h||E)return!0}}return!1}},42767:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createNotification=w.nextNotification=w.errorNotification=w.COMPLETE_NOTIFICATION=void 0,w.COMPLETE_NOTIFICATION=function(){return g("C",void 0,void 0)}();function u(y){return g("E",void 0,y)}w.errorNotification=u;function l(y){return g("N",y,void 0)}w.nextNotification=l;function g(y,x,f){return{kind:y,value:x,error:f}}w.createNotification=g},42941:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540),g=function(f,p){return typeof p=="boolean"?p:!f},y=function(f){return(0,l.useReducer)(g,f)};const x=y},43107:(Ge,w,u)=>{"use strict";u.d(w,{n1:()=>z,Pu:()=>ue});var l=u(49953),g=u(99672),y=u(24836),x=u(69202);const f=typeof Element<"u"&&"checkVisibility"in Element.prototype;function p(Ct){const Z=(0,y.mD)(Ct);if(!(Ct instanceof Z.HTMLElement)&&!(Ct instanceof Z.SVGElement))return!1;let{display:me,visibility:ke}=Ct.style,Ee=me!=="none"&&ke!=="hidden"&&ke!=="collapse";if(Ee){const{getComputedStyle:_e}=Ct.ownerDocument.defaultView;let{display:ge,visibility:Me}=_e(Ct);Ee=ge!=="none"&&Me!=="hidden"&&Me!=="collapse"}return Ee}function h(Ct,Z){return!Ct.hasAttribute("hidden")&&!Ct.hasAttribute("data-react-aria-prevent-focus")&&(Ct.nodeName==="DETAILS"&&Z&&Z.nodeName!=="SUMMARY"?Ct.hasAttribute("open"):!0)}function E(Ct,Z){return f?Ct.checkVisibility({visibilityProperty:!0})&&!Ct.closest("[data-react-aria-prevent-focus]"):Ct.nodeName!=="#comment"&&p(Ct)&&h(Ct,Z)&&(!Ct.parentElement||E(Ct.parentElement,Ct))}const v=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],m=v.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";v.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const S=v.join(':not([hidden]):not([tabindex="-1"]),');function d(Ct){return Ct.matches(m)&&E(Ct)&&!R(Ct)}function O(Ct){return Ct.matches(S)&&E(Ct)&&!R(Ct)}function R(Ct){let Z=Ct;for(;Z!=null;){if(Z instanceof Z.ownerDocument.defaultView.HTMLElement&&Z.inert)return!0;Z=Z.parentElement}return!1}var C=u(93399);class L{get currentNode(){return this._currentNode}set currentNode(Z){if(!(0,g.sD)(this.root,Z))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const me=[];let ke=Z,Ee=Z;for(this._currentNode=Z;ke&&ke!==this.root;)if(ke.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const ge=ke,Me=this._doc.createTreeWalker(ge,this.whatToShow,{acceptNode:this._acceptNode});me.push(Me),Me.currentNode=Ee,this._currentSetFor.add(Me),ke=Ee=ge.host}else ke=ke.parentNode;const _e=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});me.push(_e),_e.currentNode=Ee,this._currentSetFor.add(_e),this._walkerStack=me}get doc(){return this._doc}firstChild(){let Z=this.currentNode,me=this.nextNode();return(0,g.sD)(Z,me)?(me&&(this.currentNode=me),me):(this.currentNode=Z,null)}lastChild(){let me=this._walkerStack[0].lastChild();return me&&(this.currentNode=me),me}nextNode(){const Z=this._walkerStack[0].nextNode();if(Z){if(Z.shadowRoot){var me;let Ee;if(typeof this.filter=="function"?Ee=this.filter(Z):!((me=this.filter)===null||me===void 0)&&me.acceptNode&&(Ee=this.filter.acceptNode(Z)),Ee===NodeFilter.FILTER_ACCEPT)return this.currentNode=Z,Z;let _e=this.nextNode();return _e&&(this.currentNode=_e),_e}return Z&&(this.currentNode=Z),Z}else if(this._walkerStack.length>1){this._walkerStack.shift();let ke=this.nextNode();return ke&&(this.currentNode=ke),ke}else return null}previousNode(){const Z=this._walkerStack[0];if(Z.currentNode===Z.root){if(this._currentSetFor.has(Z))if(this._currentSetFor.delete(Z),this._walkerStack.length>1){this._walkerStack.shift();let Ee=this.previousNode();return Ee&&(this.currentNode=Ee),Ee}else return null;return null}const me=Z.previousNode();if(me){if(me.shadowRoot){var ke;let _e;if(typeof this.filter=="function"?_e=this.filter(me):!((ke=this.filter)===null||ke===void 0)&&ke.acceptNode&&(_e=this.filter.acceptNode(me)),_e===NodeFilter.FILTER_ACCEPT)return me&&(this.currentNode=me),me;let ge=this.lastChild();return ge&&(this.currentNode=ge),ge}return me&&(this.currentNode=me),me}else if(this._walkerStack.length>1){this._walkerStack.shift();let Ee=this.previousNode();return Ee&&(this.currentNode=Ee),Ee}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(Z,me,ke,Ee){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=ge=>{if(ge.nodeType===Node.ELEMENT_NODE){const lt=ge.shadowRoot;if(lt){const Ft=this._doc.createTreeWalker(lt,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(Ft),NodeFilter.FILTER_ACCEPT}else{var Me;if(typeof this.filter=="function")return this.filter(ge);if(!((Me=this.filter)===null||Me===void 0)&&Me.acceptNode)return this.filter.acceptNode(ge);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=Z,this.root=me,this.filter=Ee??null,this.whatToShow=ke??NodeFilter.SHOW_ALL,this._currentNode=me,this._walkerStack.unshift(Z.createTreeWalker(me,ke,this._acceptNode));const _e=me.shadowRoot;if(_e){const ge=this._doc.createTreeWalker(_e,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(ge)}}}function j(Ct,Z,me,ke){return(0,C.Nf)()?new L(Ct,Z,me,ke):Ct.createTreeWalker(Z,me,ke)}var I=u(88374),U=u(86578),$=u(96540);const ee=$.createContext(null),re="react-aria-focus-scope-restore";let Se=null;function z(Ct){let{children:Z,contain:me,restoreFocus:ke,autoFocus:Ee}=Ct,_e=(0,$.useRef)(null),ge=(0,$.useRef)(null),Me=(0,$.useRef)([]),{parentNode:lt}=(0,$.useContext)(ee)||{},Ft=(0,$.useMemo)(()=>new bn({scopeRef:Me}),[Me]);(0,l.N)(()=>{let nn=lt||$t.root;if($t.getTreeNode(nn.scopeRef)&&Se&&!ie(Se,nn.scopeRef)){let Pn=$t.getTreeNode(Se);Pn&&(nn=Pn)}nn.addChild(Ft),$t.addNode(Ft)},[Ft,lt]),(0,l.N)(()=>{let nn=$t.getTreeNode(Me);nn&&(nn.contain=!!me)},[me]),(0,l.N)(()=>{var nn;let Pn=(nn=_e.current)===null||nn===void 0?void 0:nn.nextSibling,rn=[],Vt=Kn=>Kn.stopPropagation();for(;Pn&&Pn!==ge.current;)rn.push(Pn),Pn.addEventListener(re,Vt),Pn=Pn.nextSibling;return Me.current=rn,()=>{for(let Kn of rn)Kn.removeEventListener(re,Vt)}},[Z]),Ze(Me,ke,me),A(Me,me),it(Me,ke,me),tt(Me,Ee),(0,$.useEffect)(()=>{const nn=(0,g.bq)((0,y.TW)(Me.current?Me.current[0]:void 0));let Pn=null;if(B(nn,Me.current)){for(let rn of $t.traverse())rn.scopeRef&&B(nn,rn.scopeRef.current)&&(Pn=rn);Pn===$t.getTreeNode(Me)&&(Se=Pn.scopeRef)}},[Me]),(0,l.N)(()=>()=>{var nn,Pn,rn;let Vt=(rn=(Pn=$t.getTreeNode(Me))===null||Pn===void 0||(nn=Pn.parent)===null||nn===void 0?void 0:nn.scopeRef)!==null&&rn!==void 0?rn:null;(Me===Se||ie(Me,Se))&&(!Vt||$t.getTreeNode(Vt))&&(Se=Vt),$t.removeTreeNode(Me)},[Me]);let Et=(0,$.useMemo)(()=>ce(Me),[]),Zt=(0,$.useMemo)(()=>({focusManager:Et,parentNode:Ft}),[Ft,Et]);return $.createElement(ee.Provider,{value:Zt},$.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:_e}),Z,$.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:ge}))}function Q(){var Ct;return(Ct=$cgawC$useContext(ee))===null||Ct===void 0?void 0:Ct.focusManager}function ce(Ct){return{focusNext(Z={}){let me=Ct.current,{from:ke,tabbable:Ee,wrap:_e,accept:ge}=Z;var Me;let lt=ke||(0,g.bq)((0,y.TW)((Me=me[0])!==null&&Me!==void 0?Me:void 0)),Ft=me[0].previousElementSibling,Et=se(me),Zt=Dn(Et,{tabbable:Ee,accept:ge},me);Zt.currentNode=B(lt,me)?lt:Ft;let nn=Zt.nextNode();return!nn&&_e&&(Zt.currentNode=Ft,nn=Zt.nextNode()),nn&&Te(nn,!0),nn},focusPrevious(Z={}){let me=Ct.current,{from:ke,tabbable:Ee,wrap:_e,accept:ge}=Z;var Me;let lt=ke||(0,g.bq)((0,y.TW)((Me=me[0])!==null&&Me!==void 0?Me:void 0)),Ft=me[me.length-1].nextElementSibling,Et=se(me),Zt=Dn(Et,{tabbable:Ee,accept:ge},me);Zt.currentNode=B(lt,me)?lt:Ft;let nn=Zt.previousNode();return!nn&&_e&&(Zt.currentNode=Ft,nn=Zt.previousNode()),nn&&Te(nn,!0),nn},focusFirst(Z={}){let me=Ct.current,{tabbable:ke,accept:Ee}=Z,_e=se(me),ge=Dn(_e,{tabbable:ke,accept:Ee},me);ge.currentNode=me[0].previousElementSibling;let Me=ge.nextNode();return Me&&Te(Me,!0),Me},focusLast(Z={}){let me=Ct.current,{tabbable:ke,accept:Ee}=Z,_e=se(me),ge=Dn(_e,{tabbable:ke,accept:Ee},me);ge.currentNode=me[me.length-1].nextElementSibling;let Me=ge.previousNode();return Me&&Te(Me,!0),Me}}}function se(Ct){return Ct[0].parentElement}function q(Ct){let Z=$t.getTreeNode(Se);for(;Z&&Z.scopeRef!==Ct;){if(Z.contain)return!1;Z=Z.parent}return!0}function te(Ct){if(Ct.checked)return!0;let Z=[];if(!Ct.form)Z=[...(0,y.TW)(Ct).querySelectorAll(`input[type="radio"][name="${CSS.escape(Ct.name)}"]`)].filter(_e=>!_e.form);else{var me,ke;let _e=(ke=Ct.form)===null||ke===void 0||(me=ke.elements)===null||me===void 0?void 0:me.namedItem(Ct.name);Z=[..._e??[]]}return Z?!Z.some(_e=>_e.checked):!1}function A(Ct,Z){let me=(0,$.useRef)(void 0),ke=(0,$.useRef)(void 0);(0,l.N)(()=>{let Ee=Ct.current;if(!Z){ke.current&&(cancelAnimationFrame(ke.current),ke.current=void 0);return}const _e=(0,y.TW)(Ee?Ee[0]:void 0);let ge=Ft=>{if(Ft.key!=="Tab"||Ft.altKey||Ft.ctrlKey||Ft.metaKey||!q(Ct)||Ft.isComposing)return;let Et=(0,g.bq)(_e),Zt=Ct.current;if(!Zt||!B(Et,Zt))return;let nn=se(Zt),Pn=Dn(nn,{tabbable:!0},Zt);if(!Et)return;Pn.currentNode=Et;let rn=Ft.shiftKey?Pn.previousNode():Pn.nextNode();rn||(Pn.currentNode=Ft.shiftKey?Zt[Zt.length-1].nextElementSibling:Zt[0].previousElementSibling,rn=Ft.shiftKey?Pn.previousNode():Pn.nextNode()),Ft.preventDefault(),rn&&Te(rn,!0)},Me=Ft=>{(!Se||ie(Se,Ct))&&B((0,g.wt)(Ft),Ct.current)?(Se=Ct,me.current=(0,g.wt)(Ft)):q(Ct)&&!X((0,g.wt)(Ft),Ct)?me.current?me.current.focus():Se&&Se.current&&yt(Se.current):q(Ct)&&(me.current=(0,g.wt)(Ft))},lt=Ft=>{ke.current&&cancelAnimationFrame(ke.current),ke.current=requestAnimationFrame(()=>{let Et=(0,I.ME)(),Zt=(Et==="virtual"||Et===null)&&(0,x.m0)()&&(0,x.H8)(),nn=(0,g.bq)(_e);if(!Zt&&nn&&q(Ct)&&!X(nn,Ct)){Se=Ct;let rn=(0,g.wt)(Ft);if(rn&&rn.isConnected){var Pn;me.current=rn,(Pn=me.current)===null||Pn===void 0||Pn.focus()}else Se.current&&yt(Se.current)}})};return _e.addEventListener("keydown",ge,!1),_e.addEventListener("focusin",Me,!1),Ee?.forEach(Ft=>Ft.addEventListener("focusin",Me,!1)),Ee?.forEach(Ft=>Ft.addEventListener("focusout",lt,!1)),()=>{_e.removeEventListener("keydown",ge,!1),_e.removeEventListener("focusin",Me,!1),Ee?.forEach(Ft=>Ft.removeEventListener("focusin",Me,!1)),Ee?.forEach(Ft=>Ft.removeEventListener("focusout",lt,!1))}},[Ct,Z]),(0,l.N)(()=>()=>{ke.current&&cancelAnimationFrame(ke.current)},[ke])}function T(Ct){return X(Ct)}function B(Ct,Z){return!Ct||!Z?!1:Z.some(me=>me.contains(Ct))}function X(Ct,Z=null){if(Ct instanceof Element&&Ct.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:me}of $t.traverse($t.getTreeNode(Z)))if(me&&B(Ct,me.current))return!0;return!1}function ue(Ct){return X(Ct,Se)}function ie(Ct,Z){var me;let ke=(me=$t.getTreeNode(Z))===null||me===void 0?void 0:me.parent;for(;ke;){if(ke.scopeRef===Ct)return!0;ke=ke.parent}return!1}function Te(Ct,Z=!1){if(Ct!=null&&!Z)try{(0,U.l)(Ct)}catch{}else if(Ct!=null)try{Ct.focus()}catch{}}function je(Ct,Z=!0){let me=Ct[0].previousElementSibling,ke=se(Ct),Ee=Dn(ke,{tabbable:Z},Ct);Ee.currentNode=me;let _e=Ee.nextNode();return Z&&!_e&&(ke=se(Ct),Ee=Dn(ke,{tabbable:!1},Ct),Ee.currentNode=me,_e=Ee.nextNode()),_e}function yt(Ct,Z=!0){Te(je(Ct,Z))}function tt(Ct,Z){const me=$.useRef(Z);(0,$.useEffect)(()=>{if(me.current){Se=Ct;const ke=(0,y.TW)(Ct.current?Ct.current[0]:void 0);!B((0,g.bq)(ke),Se.current)&&Ct.current&&yt(Ct.current)}me.current=!1},[Ct])}function Ze(Ct,Z,me){(0,l.N)(()=>{if(Z||me)return;let ke=Ct.current;const Ee=(0,y.TW)(ke?ke[0]:void 0);let _e=ge=>{let Me=(0,g.wt)(ge);B(Me,Ct.current)?Se=Ct:T(Me)||(Se=null)};return Ee.addEventListener("focusin",_e,!1),ke?.forEach(ge=>ge.addEventListener("focusin",_e,!1)),()=>{Ee.removeEventListener("focusin",_e,!1),ke?.forEach(ge=>ge.removeEventListener("focusin",_e,!1))}},[Ct,Z,me])}function Ne(Ct){let Z=$t.getTreeNode(Se);for(;Z&&Z.scopeRef!==Ct;){if(Z.nodeToRestore)return!1;Z=Z.parent}return Z?.scopeRef===Ct}function it(Ct,Z,me){const ke=(0,$.useRef)(typeof document<"u"?(0,g.bq)((0,y.TW)(Ct.current?Ct.current[0]:void 0)):null);(0,l.N)(()=>{let Ee=Ct.current;const _e=(0,y.TW)(Ee?Ee[0]:void 0);if(!Z||me)return;let ge=()=>{(!Se||ie(Se,Ct))&&B((0,g.bq)(_e),Ct.current)&&(Se=Ct)};return _e.addEventListener("focusin",ge,!1),Ee?.forEach(Me=>Me.addEventListener("focusin",ge,!1)),()=>{_e.removeEventListener("focusin",ge,!1),Ee?.forEach(Me=>Me.removeEventListener("focusin",ge,!1))}},[Ct,me]),(0,l.N)(()=>{const Ee=(0,y.TW)(Ct.current?Ct.current[0]:void 0);if(!Z)return;let _e=ge=>{if(ge.key!=="Tab"||ge.altKey||ge.ctrlKey||ge.metaKey||!q(Ct)||ge.isComposing)return;let Me=Ee.activeElement;if(!X(Me,Ct)||!Ne(Ct))return;let lt=$t.getTreeNode(Ct);if(!lt)return;let Ft=lt.nodeToRestore,Et=Dn(Ee.body,{tabbable:!0});Et.currentNode=Me;let Zt=ge.shiftKey?Et.previousNode():Et.nextNode();if((!Ft||!Ft.isConnected||Ft===Ee.body)&&(Ft=void 0,lt.nodeToRestore=void 0),(!Zt||!X(Zt,Ct))&&Ft){Et.currentNode=Ft;do Zt=ge.shiftKey?Et.previousNode():Et.nextNode();while(X(Zt,Ct));ge.preventDefault(),ge.stopPropagation(),Zt?Te(Zt,!0):T(Ft)?Te(Ft,!0):Me.blur()}};return me||Ee.addEventListener("keydown",_e,!0),()=>{me||Ee.removeEventListener("keydown",_e,!0)}},[Ct,Z,me]),(0,l.N)(()=>{const Ee=(0,y.TW)(Ct.current?Ct.current[0]:void 0);if(!Z)return;let _e=$t.getTreeNode(Ct);if(_e){var ge;return _e.nodeToRestore=(ge=ke.current)!==null&&ge!==void 0?ge:void 0,()=>{let Me=$t.getTreeNode(Ct);if(!Me)return;let lt=Me.nodeToRestore,Ft=(0,g.bq)(Ee);if(Z&<&&(Ft&&X(Ft,Ct)||Ft===Ee.body&&Ne(Ct))){let Et=$t.clone();requestAnimationFrame(()=>{if(Ee.activeElement===Ee.body){let Zt=Et.getTreeNode(Ct);for(;Zt;){if(Zt.nodeToRestore&&Zt.nodeToRestore.isConnected){Rt(Zt.nodeToRestore);return}Zt=Zt.parent}for(Zt=Et.getTreeNode(Ct);Zt;){if(Zt.scopeRef&&Zt.scopeRef.current&&$t.getTreeNode(Zt.scopeRef)){let nn=je(Zt.scopeRef.current,!0);Rt(nn);return}Zt=Zt.parent}}})}}}},[Ct,Z])}function Rt(Ct){Ct.dispatchEvent(new CustomEvent(re,{bubbles:!0,cancelable:!0}))&&Te(Ct)}function Dn(Ct,Z,me){let ke=Z?.tabbable?O:d,Ee=Ct?.nodeType===Node.ELEMENT_NODE?Ct:null,_e=(0,y.TW)(Ee),ge=j(_e,Ct||_e,NodeFilter.SHOW_ELEMENT,{acceptNode(Me){var lt;return!(Z==null||(lt=Z.from)===null||lt===void 0)&<.contains(Me)||Z?.tabbable&&Me.tagName==="INPUT"&&Me.getAttribute("type")==="radio"&&(!te(Me)||ge.currentNode.tagName==="INPUT"&&ge.currentNode.type==="radio"&&ge.currentNode.name===Me.name)?NodeFilter.FILTER_REJECT:ke(Me)&&(!me||B(Me,me))&&(!Z?.accept||Z.accept(Me))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return Z?.from&&(ge.currentNode=Z.from),ge}function Mt(Ct,Z={}){return{focusNext(me={}){let ke=Ct.current;if(!ke)return null;let{from:Ee,tabbable:_e=Z.tabbable,wrap:ge=Z.wrap,accept:Me=Z.accept}=me,lt=Ee||$cgawC$getActiveElement($cgawC$getOwnerDocument(ke)),Ft=Dn(ke,{tabbable:_e,accept:Me});ke.contains(lt)&&(Ft.currentNode=lt);let Et=Ft.nextNode();return!Et&&ge&&(Ft.currentNode=ke,Et=Ft.nextNode()),Et&&Te(Et,!0),Et},focusPrevious(me=Z){let ke=Ct.current;if(!ke)return null;let{from:Ee,tabbable:_e=Z.tabbable,wrap:ge=Z.wrap,accept:Me=Z.accept}=me,lt=Ee||$cgawC$getActiveElement($cgawC$getOwnerDocument(ke)),Ft=Dn(ke,{tabbable:_e,accept:Me});if(ke.contains(lt))Ft.currentNode=lt;else{let Zt=Wt(Ft);return Zt&&Te(Zt,!0),Zt??null}let Et=Ft.previousNode();if(!Et&&ge){Ft.currentNode=ke;let Zt=Wt(Ft);if(!Zt)return null;Et=Zt}return Et&&Te(Et,!0),Et??null},focusFirst(me=Z){let ke=Ct.current;if(!ke)return null;let{tabbable:Ee=Z.tabbable,accept:_e=Z.accept}=me,Me=Dn(ke,{tabbable:Ee,accept:_e}).nextNode();return Me&&Te(Me,!0),Me},focusLast(me=Z){let ke=Ct.current;if(!ke)return null;let{tabbable:Ee=Z.tabbable,accept:_e=Z.accept}=me,ge=Dn(ke,{tabbable:Ee,accept:_e}),Me=Wt(ge);return Me&&Te(Me,!0),Me??null}}}function Wt(Ct){let Z,me;do me=Ct.lastChild(),me&&(Z=me);while(me);return Z}class Tn{get size(){return this.fastMap.size}getTreeNode(Z){return this.fastMap.get(Z)}addTreeNode(Z,me,ke){let Ee=this.fastMap.get(me??null);if(!Ee)return;let _e=new bn({scopeRef:Z});Ee.addChild(_e),_e.parent=Ee,this.fastMap.set(Z,_e),ke&&(_e.nodeToRestore=ke)}addNode(Z){this.fastMap.set(Z.scopeRef,Z)}removeTreeNode(Z){if(Z===null)return;let me=this.fastMap.get(Z);if(!me)return;let ke=me.parent;for(let _e of this.traverse())_e!==me&&me.nodeToRestore&&_e.nodeToRestore&&me.scopeRef&&me.scopeRef.current&&B(_e.nodeToRestore,me.scopeRef.current)&&(_e.nodeToRestore=me.nodeToRestore);let Ee=me.children;ke&&(ke.removeChild(me),Ee.size>0&&Ee.forEach(_e=>ke&&ke.addChild(_e))),this.fastMap.delete(me.scopeRef)}*traverse(Z=this.root){if(Z.scopeRef!=null&&(yield Z),Z.children.size>0)for(let me of Z.children)yield*this.traverse(me)}clone(){var Z;let me=new Tn;var ke;for(let Ee of this.traverse())me.addTreeNode(Ee.scopeRef,(ke=(Z=Ee.parent)===null||Z===void 0?void 0:Z.scopeRef)!==null&&ke!==void 0?ke:null,Ee.nodeToRestore);return me}constructor(){this.fastMap=new Map,this.root=new bn({scopeRef:null}),this.fastMap.set(null,this.root)}}class bn{addChild(Z){this.children.add(Z),Z.parent=this}removeChild(Z){this.children.delete(Z),Z.parent=void 0}constructor(Z){this.children=new Set,this.contain=!1,this.scopeRef=Z.scopeRef}}let $t=new Tn},43195:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,m,S){S===void 0&&(S=m),Object.defineProperty(E,S,{enumerable:!0,get:function(){return v[m]}})}:function(E,v,m,S){S===void 0&&(S=m),E[S]=v[m]}),g=this&&this.__setModuleDefault||(Object.create?function(E,v){Object.defineProperty(E,"default",{enumerable:!0,value:v})}:function(E,v){E.default=v}),y=this&&this.__importStar||function(E){if(E&&E.__esModule)return E;var v={};if(E!=null)for(var m in E)m!=="default"&&Object.prototype.hasOwnProperty.call(E,m)&&l(v,E,m);return g(v,E),v};Object.defineProperty(w,"__esModule",{value:!0}),w.KBarProvider=w.KBarContext=void 0;var x=u(79711),f=y(u(96540)),p=u(95843);w.KBarContext=f.createContext({});var h=function(E){var v=(0,x.useStore)(E);return f.createElement(w.KBarContext.Provider,{value:v},f.createElement(p.InternalEvents,null),E.children)};w.KBarProvider=h},43329:(Ge,w,u)=>{"use strict";u.d(w,{w:()=>g});var l=u(61501);function g(x,f){return typeof x=="function"?x(f):x&&typeof x=="object"&&l._P in x?x[l._P](f):x instanceof Date?new x.constructor(f):new Date(f)}var y=null},43434:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.sample=void 0;var l=u(19724),g=u(65212),y=u(5717),x=u(17214);function f(p){return g.operate(function(h,E){var v=!1,m=null;h.subscribe(x.createOperatorSubscriber(E,function(S){v=!0,m=S})),l.innerFrom(p).subscribe(x.createOperatorSubscriber(E,function(){if(v){v=!1;var S=m;m=null,E.next(S)}},y.noop))})}w.sample=f},43465:(Ge,w,u)=>{"use strict";u.d(w,{L:()=>l});function l(g){return new TypeError("You provided "+(g!==null&&typeof g=="object"?"an invalid object":"'"+g+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},43530:(Ge,w,u)=>{"use strict";u.d(w,{I:()=>l,p:()=>g});function l(y){for(const x in y)delete y[x]}function g(y){let x;for(x in y)return!1;return!x}},43561:(Ge,w,u)=>{"use strict";u.d(w,{d_:()=>x,Ak:()=>f});const l="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let g=p=>crypto.getRandomValues(new Uint8Array(p)),y=(p,h,E)=>{let v=(2<<Math.log2(p.length-1))-1,m=-~(1.6*v*h/p.length);return(S=h)=>{let d="";for(;;){let O=E(m),R=m|0;for(;R--;)if(d+=p[O[R]&v]||"",d.length>=S)return d}}},x=(p,h=21)=>y(p,h|0,g),f=(p=21)=>{let h="",E=crypto.getRandomValues(new Uint8Array(p|=0));for(;p--;)h+=l[E[p]&63];return h}},43591:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{default:()=>A});var l=function(){if(typeof Map<"u")return Map;function T(B,X){var ue=-1;return B.some(function(ie,Te){return ie[0]===X?(ue=Te,!0):!1}),ue}return function(){function B(){this.__entries__=[]}return Object.defineProperty(B.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),B.prototype.get=function(X){var ue=T(this.__entries__,X),ie=this.__entries__[ue];return ie&&ie[1]},B.prototype.set=function(X,ue){var ie=T(this.__entries__,X);~ie?this.__entries__[ie][1]=ue:this.__entries__.push([X,ue])},B.prototype.delete=function(X){var ue=this.__entries__,ie=T(ue,X);~ie&&ue.splice(ie,1)},B.prototype.has=function(X){return!!~T(this.__entries__,X)},B.prototype.clear=function(){this.__entries__.splice(0)},B.prototype.forEach=function(X,ue){ue===void 0&&(ue=null);for(var ie=0,Te=this.__entries__;ie<Te.length;ie++){var je=Te[ie];X.call(ue,je[1],je[0])}},B}()}(),g=typeof window<"u"&&typeof document<"u"&&window.document===document,y=function(){return typeof u.g<"u"&&u.g.Math===Math?u.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),x=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(y):function(T){return setTimeout(function(){return T(Date.now())},1e3/60)}}(),f=2;function p(T,B){var X=!1,ue=!1,ie=0;function Te(){X&&(X=!1,T()),ue&&yt()}function je(){x(Te)}function yt(){var tt=Date.now();if(X){if(tt-ie<f)return;ue=!0}else X=!0,ue=!1,setTimeout(je,B);ie=tt}return yt}var h=20,E=["top","right","bottom","left","width","height","size","weight"],v=typeof MutationObserver<"u",m=function(){function T(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=p(this.refresh.bind(this),h)}return T.prototype.addObserver=function(B){~this.observers_.indexOf(B)||this.observers_.push(B),this.connected_||this.connect_()},T.prototype.removeObserver=function(B){var X=this.observers_,ue=X.indexOf(B);~ue&&X.splice(ue,1),!X.length&&this.connected_&&this.disconnect_()},T.prototype.refresh=function(){var B=this.updateObservers_();B&&this.refresh()},T.prototype.updateObservers_=function(){var B=this.observers_.filter(function(X){return X.gatherActive(),X.hasActive()});return B.forEach(function(X){return X.broadcastActive()}),B.length>0},T.prototype.connect_=function(){!g||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v?(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(){!g||!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(B){var X=B.propertyName,ue=X===void 0?"":X,ie=E.some(function(Te){return!!~ue.indexOf(Te)});ie&&this.refresh()},T.getInstance=function(){return this.instance_||(this.instance_=new T),this.instance_},T.instance_=null,T}(),S=function(T,B){for(var X=0,ue=Object.keys(B);X<ue.length;X++){var ie=ue[X];Object.defineProperty(T,ie,{value:B[ie],enumerable:!1,writable:!1,configurable:!0})}return T},d=function(T){var B=T&&T.ownerDocument&&T.ownerDocument.defaultView;return B||y},O=Se(0,0,0,0);function R(T){return parseFloat(T)||0}function C(T){for(var B=[],X=1;X<arguments.length;X++)B[X-1]=arguments[X];return B.reduce(function(ue,ie){var Te=T["border-"+ie+"-width"];return ue+R(Te)},0)}function L(T){for(var B=["top","right","bottom","left"],X={},ue=0,ie=B;ue<ie.length;ue++){var Te=ie[ue],je=T["padding-"+Te];X[Te]=R(je)}return X}function j(T){var B=T.getBBox();return Se(0,0,B.width,B.height)}function I(T){var B=T.clientWidth,X=T.clientHeight;if(!B&&!X)return O;var ue=d(T).getComputedStyle(T),ie=L(ue),Te=ie.left+ie.right,je=ie.top+ie.bottom,yt=R(ue.width),tt=R(ue.height);if(ue.boxSizing==="border-box"&&(Math.round(yt+Te)!==B&&(yt-=C(ue,"left","right")+Te),Math.round(tt+je)!==X&&(tt-=C(ue,"top","bottom")+je)),!$(T)){var Ze=Math.round(yt+Te)-B,Ne=Math.round(tt+je)-X;Math.abs(Ze)!==1&&(yt-=Ze),Math.abs(Ne)!==1&&(tt-=Ne)}return Se(ie.left,ie.top,yt,tt)}var U=function(){return typeof SVGGraphicsElement<"u"?function(T){return T instanceof d(T).SVGGraphicsElement}:function(T){return T instanceof d(T).SVGElement&&typeof T.getBBox=="function"}}();function $(T){return T===d(T).document.documentElement}function ee(T){return g?U(T)?j(T):I(T):O}function re(T){var B=T.x,X=T.y,ue=T.width,ie=T.height,Te=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,je=Object.create(Te.prototype);return S(je,{x:B,y:X,width:ue,height:ie,top:X,right:B+ue,bottom:ie+X,left:B}),je}function Se(T,B,X,ue){return{x:T,y:B,width:X,height:ue}}var z=function(){function T(B){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Se(0,0,0,0),this.target=B}return T.prototype.isActive=function(){var B=ee(this.target);return this.contentRect_=B,B.width!==this.broadcastWidth||B.height!==this.broadcastHeight},T.prototype.broadcastRect=function(){var B=this.contentRect_;return this.broadcastWidth=B.width,this.broadcastHeight=B.height,B},T}(),Q=function(){function T(B,X){var ue=re(X);S(this,{target:B,contentRect:ue})}return T}(),ce=function(){function T(B,X,ue){if(this.activeObservations_=[],this.observations_=new l,typeof B!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=B,this.controller_=X,this.callbackCtx_=ue}return T.prototype.observe=function(B){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(B instanceof d(B).Element))throw new TypeError('parameter 1 is not of type "Element".');var X=this.observations_;X.has(B)||(X.set(B,new z(B)),this.controller_.addObserver(this),this.controller_.refresh())}},T.prototype.unobserve=function(B){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(B instanceof d(B).Element))throw new TypeError('parameter 1 is not of type "Element".');var X=this.observations_;X.has(B)&&(X.delete(B),X.size||this.controller_.removeObserver(this))}},T.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},T.prototype.gatherActive=function(){var B=this;this.clearActive(),this.observations_.forEach(function(X){X.isActive()&&B.activeObservations_.push(X)})},T.prototype.broadcastActive=function(){if(this.hasActive()){var B=this.callbackCtx_,X=this.activeObservations_.map(function(ue){return new Q(ue.target,ue.broadcastRect())});this.callback_.call(B,X,B),this.clearActive()}},T.prototype.clearActive=function(){this.activeObservations_.splice(0)},T.prototype.hasActive=function(){return this.activeObservations_.length>0},T}(),se=typeof WeakMap<"u"?new WeakMap:new l,q=function(){function T(B){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 X=m.getInstance(),ue=new ce(B,X,this);se.set(this,ue)}return T}();["observe","unobserve","disconnect"].forEach(function(T){q.prototype[T]=function(){var B;return(B=se.get(this))[T].apply(B,arguments)}});var te=function(){return typeof y.ResizeObserver<"u"?y.ResizeObserver:q}();const A=te},44143:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.sampleTime=void 0;var l=u(62326),g=u(43434),y=u(62275);function x(f,p){return p===void 0&&(p=l.asyncScheduler),g.sample(y.interval(f,p))}w.sampleTime=x},44207:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>p,fk:()=>x});var l=u(38314),g=u(96540),y=u(40961);function x(h){return h instanceof HTMLElement||h instanceof SVGElement}function f(h){return h&&(0,l.A)(h)==="object"&&x(h.nativeElement)?h.nativeElement:x(h)?h:null}function p(h){var E=f(h);if(E)return E;if(h instanceof g.Component){var v;return(v=y.findDOMNode)===null||v===void 0?void 0:v.call(y,h)}return null}},44240:(Ge,w,u)=>{"use strict";u.d(w,{h:()=>p});var l=u(93031),g=u(15964),y=u(61701),x=u(82100),f=u(65474);function p(){for(var h=[],E=0;E<arguments.length;E++)h[E]=arguments[E];var v=(0,x.lI)(h),m=(0,x.R0)(h,1/0),S=h;return S.length?S.length===1?(0,g.Tg)(S[0]):(0,l.U)(m)((0,f.H)(S,v)):y.w}},44248:(Ge,w,u)=>{"use strict";u.d(w,{H9:()=>Cp,x0:()=>Ph,Zx:()=>ad,yP:()=>Ab,wT:()=>wb,mI:()=>Pb,P1:()=>Yp,ZG:()=>xe,Yj:()=>um,w1:()=>zo,xc:()=>Xg,WY:()=>Hi,n8:()=>ir,Or:()=>Lh,sU:()=>Hp,d0:()=>p0,fS:()=>Zv,UU:()=>Z,N0:()=>e0,VE:()=>rp,kh:()=>Zl,ps:()=>xc,Zv:()=>kr,Es:()=>Bl,or:()=>Fm,vA:()=>Rm,G1:()=>nv,hy:()=>kl,V$:()=>_m,tI:()=>Lc,Bs:()=>Rt,bZ:()=>ue,So:()=>Nt,dt:()=>Uv,dM:()=>Lm,WM:()=>Jy,KE:()=>Cm,JZ:()=>qt,XQ:()=>my,Pj:()=>Tb,oh:()=>cr,Kg:()=>Xv,HV:()=>Rb,TS:()=>sm,$L:()=>Ty,Kw:()=>ie,Sh:()=>mc,K8:()=>Dh,Uf:()=>xu,Eb:()=>Tu,Lw:()=>vm,Gg:()=>l,tV:()=>y,vz:()=>jt,mY:()=>$r,_H:()=>dS,oY:()=>g,jh:()=>_o,Go:()=>v0,gn:()=>Dn,Yg:()=>Kp,MV:()=>wl});var l={};u.r(l),u.d(l,{K2:()=>$u,en:()=>jl,lN:()=>na,Hf:()=>en});var g={};u.r(g),u.d(g,{SceneRenderProfiler:()=>db,getScenePerformanceTracker:()=>hi});var y={};u.r(y),u.d(y,{g:()=>vy});var x=u(96014),f=u(5556),p=u(92138),h=u(36490);function E(){const N=(0,x.zy)();return(0,h.SE)(N.search||"")}function v(N,_,G){const pe={..._};if(G)for(const $e of Object.keys(pe))G.includes($e)||delete pe[$e];return f.kM.renderUrl(p.I.assureBaseUrl(N),pe)}function m(N){const _=(0,x.g)(),G=(0,x.zy)(),pe=(0,x.B6)({path:N,caseSensitive:!1,end:!0},G.pathname);return{params:_,isExact:pe!==null,path:G.pathname,url:G.pathname}}var S=u(39698);const d=new Map;function O({pluginId:N,plugin:_}){if(d.has(N))throw new Error(`A runtime panel plugin with id ${N} has already been registered`);_.meta={..._.meta,id:N,name:N,module:"runtime plugin",baseUrl:"runtime plugin",info:{author:{name:"Runtime plugin "+N},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""}},d.set(N,_)}function R(N){var _;const{getPanelPluginFromCache:G}=(0,S.o)();return(_=G(N))!=null?_:d.get(N)}var C=u(96540),L=u.t(C,2),j=u(64423);const U={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let $;const ee=new Uint8Array(16);function re(){if(!$&&($=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $(ee)}const Se=[];for(let N=0;N<256;++N)Se.push((N+256).toString(16).slice(1));function z(N,_=0){return Se[N[_+0]]+Se[N[_+1]]+Se[N[_+2]]+Se[N[_+3]]+"-"+Se[N[_+4]]+Se[N[_+5]]+"-"+Se[N[_+6]]+Se[N[_+7]]+"-"+Se[N[_+8]]+Se[N[_+9]]+"-"+Se[N[_+10]]+Se[N[_+11]]+Se[N[_+12]]+Se[N[_+13]]+Se[N[_+14]]+Se[N[_+15]]}function Q(N,_=0){const G=z(N,_);if(!validate(G))throw TypeError("Stringified UUID is invalid");return G}const ce=null;function se(N,_,G){if(U.randomUUID&&!_&&!N)return U.randomUUID();N=N||{};const pe=N.random||(N.rng||re)();if(pe[6]=pe[6]&15|64,pe[8]=pe[8]&63|128,_){G=G||0;for(let $e=0;$e<16;++$e)_[G+$e]=pe[$e];return _}return z(pe)}const q=se;var te=u(19379);function A({model:N,..._}){var G;const pe=(G=N.constructor.Component)!=null?G:B,[$e,ct]=(0,C.useState)(0);return(0,C.useEffect)(()=>{const Yt=N.activate();return ct(In=>In+1),Yt},[N]),!N.isActive&&!N.renderBeforeActivation?null:C.createElement(pe,{..._,model:N})}const T=C.memo(A);function B(N){return null}var X=u(68388);class ue extends X.x{}ue.type="scene-object-state-change";class ie extends X.x{}ie.type="scene-object-user-action";var Te=N=>{throw TypeError(N)},je=(N,_,G)=>_.has(N)||Te("Cannot "+G),yt=(N,_,G)=>(je(N,_,"read from private field"),G?G.call(N):_.get(N)),tt=(N,_,G)=>_.has(N)?Te("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(N):_.set(N,G),Ze=(N,_,G,pe)=>(je(N,_,"write to private field"),_.set(N,G),G),Ne;class it{constructor(_){tt(this,Ne),Ze(this,Ne,_)}resolve(){return yt(this,Ne)}}Ne=new WeakMap;class Rt{constructor(_){this._isActive=!1,this._activationHandlers=[],this._deactivationHandlers=new Map,this._subs=new j.yU,this._refCount=0,this._renderBeforeActivation=!1,_.key||(_.key=q()),this._events=new te.o,this._state=Object.freeze(_),this._setParent(this._state)}get state(){return this._state}get isActive(){return this._isActive}get renderBeforeActivation(){return this._renderBeforeActivation}get parent(){return this._parent}get variableDependency(){return this._variableDependency}get urlSync(){return this._urlSync}get Component(){return T}_setParent(_){Mt(_,G=>{G._parent&&G._parent!==this&&console.warn("SceneObject already has a parent set that is different from the new parent. You cannot share the same SceneObject instance in multiple scenes or in multiple different places of the same scene graph. Use SceneObject.clone() to duplicate a SceneObject or store a state key reference and use sceneGraph.findObject to locate it.",G,this),G._parent=this})}clearParent(){this._parent=void 0}subscribeToState(_){return this._events.subscribe(ue,G=>{G.payload.changedObject===this&&_(G.payload.newState,G.payload.prevState)})}subscribeToEvent(_,G){return this._events.subscribe(_,G)}setState(_){const G=this._state,pe={...this._state,..._};this._state=Object.freeze(pe),this._setParent(_),this._handleActivationOfChangedStateProps(G,pe),this.publishEvent(new ue({prevState:G,newState:pe,partialUpdate:_,changedObject:this}),!0)}_handleActivationOfChangedStateProps(_,G){this.isActive&&(_.$behaviors!==G.$behaviors&&this._handleChangedBehaviors(_.$behaviors,G.$behaviors),_.$data!==G.$data&&this._handleChangedStateActivation(_.$data,G.$data),_.$variables!==G.$variables&&this._handleChangedStateActivation(_.$variables,G.$variables),_.$timeRange!==G.$timeRange&&this._handleChangedStateActivation(_.$timeRange,G.$timeRange))}_handleChangedStateActivation(_,G){if(_){const pe=this._deactivationHandlers.get(_);pe&&(pe(),this._deactivationHandlers.delete(_))}G&&this._deactivationHandlers.set(G,G.activate())}_handleChangedBehaviors(_,G){if(_){for(const pe of _)if(!G||!G.includes(pe)){const $e=this._deactivationHandlers.get(pe);$e&&($e(),this._deactivationHandlers.delete(pe))}}if(G)for(const pe of G)(!_||!_.includes(pe))&&this._activateBehavior(pe)}publishEvent(_,G){this._events.publish(_),G&&this.parent&&this.parent.publishEvent(_,G)}getRoot(){return this._parent?this._parent.getRoot():this}_internalActivate(){this._isActive=!0;const{$data:_,$variables:G,$timeRange:pe,$behaviors:$e}=this.state;if(this._activationHandlers.forEach(ct=>{const Yt=ct();Yt&&this._deactivationHandlers.set(Yt,Yt)}),pe&&!pe.isActive&&this._deactivationHandlers.set(pe,pe.activate()),G&&!G.isActive&&this._deactivationHandlers.set(G,G.activate()),_&&!_.isActive&&this._deactivationHandlers.set(_,_.activate()),$e)for(const ct of $e)this._activateBehavior(ct)}_activateBehavior(_){if(_ instanceof Rt)this._deactivationHandlers.set(_,_.activate());else if(typeof _=="function"){const G=_(this);G&&this._deactivationHandlers.set(_,G)}}activate(){this.isActive||this._internalActivate(),this._refCount++;let _=!1;return()=>{if(this._refCount--,_){const G="SceneObject cancelation handler returned by activate() called a second time";throw new Error(G)}_=!0,this._refCount===0&&this._internalDeactivate()}}_internalDeactivate(){this._isActive=!1;for(let _ of this._deactivationHandlers.values())_();this._deactivationHandlers.clear(),this._events.removeAllListeners(),this._subs.unsubscribe(),this._subs=new j.yU}useState(){return Dn(this)}forceRender(){this.setState({})}clone(_){return Tn(this,_)}addActivationHandler(_){this._activationHandlers.push(_)}forEachChild(_){Mt(this.state,_)}getRef(){return this._ref||(this._ref=new it(this)),this._ref}toJSON(){return{type:Object.getPrototypeOf(this).constructor.name,isActive:this.isActive,state:this.state}}}function Dn(N,_){var G;const[pe,$e]=(0,C.useState)(N.state),ct=N.state,Yt=(G=_?.shouldActivateOrKeepAlive)!=null?G:!1;return(0,C.useEffect)(()=>{let In;Yt&&(In=N.activate());const br=N.subscribeToState(Ir=>{$e(Ir)});return N.state!==ct&&$e(N.state),()=>{br.unsubscribe(),In&&In()}},[N,Yt]),N.state}function Mt(N,_){for(const G of Object.values(N)){if(G instanceof Rt&&_(G)===!1)break;if(Array.isArray(G)){let pe=!1;for(const $e of G)if($e instanceof Rt&&_($e)===!1){pe=!0;break}if(pe)break}}}var Wt=u(2543);function Tn(N,_){const G=bn(N.state,_);return new N.constructor(G)}function bn(N,_){const G={...N};Object.assign(G,_);for(const pe in G){if(_&&_[pe]!==void 0)continue;const $e=G[pe];if($e instanceof it){console.warn("Cloning object with SceneObjectRef");continue}if($e instanceof Rt)G[pe]=$e.clone();else if(Array.isArray($e)){const ct=[];for(const Yt of $e)Yt instanceof Rt?ct.push(Yt.clone()):typeof Yt=="object"?ct.push((0,Wt.cloneDeep)(Yt)):ct.push(Yt);G[pe]=ct}else typeof $e=="object"?G[pe]=(0,Wt.cloneDeep)($e):G[pe]=$e}return G}var $t=u(94644),Ct=u(11594);class Z extends $t.mA{constructor(_,G){super({name:"RuntimeDataSource-"+_,uid:G,type:_,id:1,readOnly:!0,jsonData:{},access:"direct",meta:{id:_,name:"RuntimeDataSource-"+_,type:Ct.QE.datasource,info:{author:{name:""},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""},module:"",baseUrl:""}})}testDatasource(){return Promise.resolve({})}}const me=new Map;function ke({dataSource:N}){if(me.has(N.uid))throw new Error(`A runtime data source with uid ${N.uid} has already been registered`);me.set(N.uid,N)}const Ee="",_e=["from","to","timezone"];class ge{constructor(_){this.index=new Map,this.options={namespace:_?.namespace||Ee,excludeFromNamespace:_?.excludeFromNamespace||_e}}getOptions(){return this.options}getNamespacedKey(_){return this.options.namespace&&!this.options.excludeFromNamespace.includes(_)?`${this.options.namespace}-${_}`:_}getUniqueKey(_,G){const pe=this.getNamespacedKey(_),$e=this.index.get(pe);if(!$e)return this.index.set(pe,[G]),pe;let ct=$e.findIndex(Yt=>Yt===G);return ct===-1&&(Me($e,G.getRoot()),$e.push(G),ct=$e.length-1),ct>0?`${pe}-${ct+1}`:pe}clear(){this.index.clear()}}function Me(N,_){for(let G=0;G<N.length;G++){const pe=N[G];lt(pe)&&(N.splice(G,1),G--)}}function lt(N,_){if(!N.parent)return!1;let G=!1;return N.parent.forEachChild(pe=>{if(pe===N)return G=!0,!1}),G?lt(N.parent):!0}function Ft(N,_){const G=new ge(_),pe={},$e=ct=>{if(ct.urlSync){const Yt=ct.urlSync.getUrlState();for(const[In,br]of Object.entries(Yt))if(br!=null){const Ir=G.getUniqueKey(In,ct);pe[Ir]=br}}ct.forEachChild($e)};return $e(N),pe}function Et(N,_,G){const pe=new ge(G);Zt(N,_,pe)}function Zt(N,_,G,pe){pe||nn(N,_,G),N.forEachChild($e=>{nn($e,_,G)}),N.forEachChild($e=>Zt($e,_,G,!0))}function nn(N,_,G){if(N.urlSync){const pe={},$e=N.urlSync.getUrlState();for(const ct of N.urlSync.getKeys()){const Yt=G.getUniqueKey(ct,N),In=_.getAll(Yt),br=$e[ct];Pn(In,br)||(In.length>0?Array.isArray(br)?pe[ct]=In:pe[ct]=In[0]:pe[ct]=null)}Object.keys(pe).length>0&&N.urlSync.updateFromUrl(pe)}}function Pn(N,_){return N.length===0&&_==null?!0:!Array.isArray(_)&&N?.length===1?_===N[0]:_?.length===0&&N===null?!0:(0,Wt.isEqual)(N,_)}function rn(N,_){const G=_.state.$variables;if(!G)return _.parent?rn(N,_.parent):null;const pe=G.getByName(N);return pe||(_.parent?rn(N,_.parent):null)}function Vt(N,_,...G){let pe=!1;typeof window<"u"&&(pe=localStorage.getItem("grafana.debug.scenes")==="true"),pe&&console.log(`${N}: `,_,...G)}var Kn=N=>{throw TypeError(N)},ur=(N,_,G)=>_.has(N)||Kn("Cannot "+G),on=(N,_,G)=>(ur(N,_,"read from private field"),G?G.call(N):_.get(N)),tr=(N,_,G)=>_.has(N)?Kn("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(N):_.set(N,G),Cn=(N,_,G,pe)=>(ur(N,_,"write to private field"),_.set(N,G),G),Wn,er;function Fn(N){return"isQueryController"in N}class en extends Rt{constructor(_={},G){super({..._,isRunning:!1}),this.profiler=G,this.isQueryController=!0,tr(this,Wn,new Set),tr(this,er,null),this.runningQueriesCount=()=>on(this,Wn).size,G&&(this.profiler=G,G.setQueryController(this)),this.addActivationHandler(()=>{var pe;return(pe=this.profiler)==null||pe.setQueryController(this),()=>on(this,Wn).clear()})}startProfile(_){var G;this.state.enableProfiling&&((G=this.profiler)==null||G.startProfile(_))}cancelProfile(){var _;(_=this.profiler)==null||_.cancelProfile()}queryStarted(_){on(this,Wn).add(_),this.changeRunningQueryCount(1,_),this.state.isRunning||this.setState({isRunning:!0})}queryCompleted(_){on(this,Wn).has(_)&&(on(this,Wn).delete(_),this.changeRunningQueryCount(-1),on(this,Wn).size===0&&this.setState({isRunning:!1}))}changeRunningQueryCount(_,G){var pe,$e,ct,Yt;window.__grafanaRunningQueryCount=((pe=window.__grafanaRunningQueryCount)!=null?pe:0)+_,_===1&&this.state.enableProfiling&&(G&&(($e=this.profiler)==null||$e.addCrumb(`${G.type}`)),(ct=this.profiler)!=null&&ct.isTailRecording()&&(Vt("SceneQueryController","New query started, cancelling tail recording"),(Yt=this.profiler)==null||Yt.cancelTailRecording())),this.state.enableProfiling&&(on(this,er)&&cancelAnimationFrame(on(this,er)),Cn(this,er,requestAnimationFrame(()=>{var In;(In=this.profiler)==null||In.tryCompletingProfile()})))}cancelAll(){var _;for(const G of on(this,Wn).values())(_=G.cancel)==null||_.call(G)}}Wn=new WeakMap,er=new WeakMap;function gn(N){let _=N;for(;_;){if(_.state.$behaviors){for(const G of _.state.$behaviors)if(Fn(G))return G}_=_.parent}}var kn=u(22592),Jn=u(31114),Nn=u(62467);class kr extends Rt{constructor(_){super({data:bt,..._})}getResultsStream(){const _={origin:this,data:this.state.data};return(0,Nn.of)(_)}}const bt={state:Jn.Gu.Done,series:[],timeRange:(0,kn.E2)()};var ne=u(60188),fe=u(17548),K=u(25229),he=u(62717),Fe=u(739);class Nt{constructor(_,G){this._sceneObject=_,this._nextChangeShouldAddHistoryStep=!1,this._keys=G.keys}getKeys(){return typeof this._keys=="function"?this._keys():this._keys}getUrlState(){return this._sceneObject.getUrlState()}updateFromUrl(_){this._sceneObject.updateFromUrl(_)}shouldCreateHistoryStep(_){return this._nextChangeShouldAddHistoryStep}performBrowserHistoryAction(_){this._nextChangeShouldAddHistoryStep=!0,_(),this._nextChangeShouldAddHistoryStep=!1}}function ln(N,_){let G=N,pe;for(;G&&!pe;)pe=_(G),G=G.parent;return pe}const pn=/^\d+[yYmMsSwWhHdD]$/;function Yn(N){if(typeof N!="string")return null;if(N.indexOf("now")!==-1||pn.test(N))return N;if(N.length===8){const G=(0,K.yT)(N,"YYYYMMDD");if(G.isValid())return G.toISOString()}else if(N.length===15){const G=(0,K.yT)(N,"YYYYMMDDTHHmmss");if(G.isValid())return G.toISOString()}else if(N.length===19){const G=(0,K.yT)(N,"YYYY-MM-DD HH:mm:ss");if(G.isValid())return G.toISOString()}else if(N.length===24)return(0,K.yT)(N).toISOString();const _=parseInt(N,10);return isNaN(_)?null:(0,K.yT)(_).toISOString()}var ht=u(33239);function De(N,_,G,pe,$e,ct){const Yt=$e&&_==="now",In=Date.now();ct&&Ke(ct);const br=(Ir,Wr)=>ht.toDateTime?ht.toDateTime(Ir,Wr):ht.parse(Ir,Wr.roundUp,Wr.timezone,Wr.fiscalYearStartMonth);return{to:br(Yt?"now-"+$e:_,{roundUp:!0,timezone:G,fiscalYearStartMonth:pe,now:In}),from:br(N,{roundUp:!1,timezone:G,fiscalYearStartMonth:pe,now:In}),raw:{from:N,to:_}}}let we;function Ke(N){N!==we&&(we=N,(0,K.$D)(N))}var be=u(75234),pt=u(43173),We=u(44922);function Je(N,_,G){return(0,K.Ar)(N)?N.isValid():ht.isMathString(N)?ht.isValid(N):(0,We.b)(N,{roundUp:_,timeZone:G}).isValid()}const ye="refresh",Qe="time_range_change",ze="filter_removed",qe="filter_changed",Pt="filter_restored",zt="variable_value_changed",un="scopes_changed",hn="adhoc_keys_dropdown",xt="adhoc_values_dropdown",_t="groupby_dimensions";class qt extends Rt{constructor(_={}){var G;const pe=_.from&&Je(_.from)?_.from:"now-6h",$e=_.to&&Je(_.to)?_.to:"now",ct=On(_.timeZone),Yt=De(pe,$e,ct||(0,ne.O)(),_.fiscalYearStartMonth,_.UNSAFE_nowDelay,_.weekStart),In=(G=_.refreshOnActivate)!=null?G:{percent:10};super({from:pe,to:$e,timeZone:ct,value:Yt,refreshOnActivate:In,..._}),this._urlSync=new Nt(this,{keys:["from","to","timezone","time","time.window"]}),this.onTimeRangeChange=br=>{const Ir={};if(typeof br.raw.from=="string"?Ir.from=br.raw.from:Ir.from=br.raw.from.toISOString(),typeof br.raw.to=="string"?Ir.to=br.raw.to:Ir.to=br.raw.to.toISOString(),Ir.value=De(Ir.from,Ir.to,this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart),Ir.from!==this.state.from||Ir.to!==this.state.to){const Wr=gn(this);Wr?.startProfile(Qe),this._urlSync.performBrowserHistoryAction(()=>{this.setState(Ir)})}},this.onTimeZoneChange=br=>{this._urlSync.performBrowserHistoryAction(()=>{var Ir;const Wr=(Ir=On(br))!=null?Ir:Fe.vp,Gr=De(this.state.from,this.state.to,Wr,this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart);this.setState({timeZone:Wr,value:Gr})})},this.onRefresh=()=>{this.refreshRange(0),this.publishEvent(new be._,!0)},this.addActivationHandler(this._onActivate.bind(this))}_onActivate(){if(!this.state.timeZone){const _=this.getTimeZoneSource();_!==this&&this._subs.add(_.subscribeToState((G,pe)=>{G.timeZone!==void 0&&G.timeZone!==pe.timeZone&&this.refreshRange(0)}))}return fe.isRelativeTimeRange(this.state.value.raw)&&this.refreshIfStale(),()=>{this.state.weekStart&&(0,K.$D)(pt.$.bootData.user.weekStart)}}refreshIfStale(){var _,G,pe,$e;let ct;((G=(_=this.state)==null?void 0:_.refreshOnActivate)==null?void 0:G.percent)!==void 0&&(ct=this.calculatePercentOfInterval(this.state.refreshOnActivate.percent)),(($e=(pe=this.state)==null?void 0:pe.refreshOnActivate)==null?void 0:$e.afterMs)!==void 0&&(ct=Math.min(this.state.refreshOnActivate.afterMs,ct??1/0)),ct!==void 0&&this.refreshRange(ct)}getTimeZoneSource(){if(!this.parent||!this.parent.parent)return this;const _=ln(this.parent.parent,G=>{if(G.state.$timeRange&&G.state.$timeRange.state.timeZone)return G.state.$timeRange});return _||this}refreshRange(_){var G;const pe=De(this.state.from,this.state.to,(G=this.state.timeZone)!=null?G:(0,ne.O)(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart);pe.to.diff(this.state.value.to,"milliseconds")>=_&&this.setState({value:pe})}calculatePercentOfInterval(_){const G=this.state.value.to.diff(this.state.value.from,"milliseconds");return Math.ceil(G/100*_)}getTimeZone(){if(this.state.timeZone&&On(this.state.timeZone))return this.state.timeZone;const _=this.getTimeZoneSource();return _!==this&&On(_.state.timeZone)?_.state.timeZone:(0,ne.O)()}getUrlState(){const _=h.Ny.getSearchObject(),G={from:this.state.from,to:this.state.to,timezone:this.getTimeZone()};return _.time&&_["time.window"]&&(G.time=null,G["time.window"]=null),G}updateFromUrl(_){var G,pe,$e;const ct={};let Yt=Yn(_.from),In=Yn(_.to);if(_.time&&_["time.window"]){const br=Array.isArray(_.time)?_.time[0]:_.time,Ir=Array.isArray(_["time.window"])?_["time.window"][0]:_["time.window"],Wr=fn(br,Ir);Wr.from&&Je(Wr.from)&&(Yt=Wr.from),Wr.to&&Je(Wr.to)&&(In=Wr.to)}if(Yt&&Je(Yt)&&(ct.from=Yt),In&&Je(In)&&(ct.to=In),typeof _.timezone=="string"&&(ct.timeZone=_.timezone!==""?_.timezone:void 0),Object.keys(ct).length!==0)return ct.value=De((G=ct.from)!=null?G:this.state.from,(pe=ct.to)!=null?pe:this.state.to,($e=ct.timeZone)!=null?$e:this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart),this.setState(ct)}}function fn(N,_){const G=isNaN(Date.parse(N))?parseInt(N,10):Date.parse(N);let pe;return _.match(/^\d+$/)&&parseInt(_,10)?pe=parseInt(_,10):pe=fe.intervalToMs(_),{from:(0,K.yT)(G-pe/2).toISOString(),to:(0,K.yT)(G+pe/2).toISOString()}}function On(N){if(N!==void 0){if((0,Wt.isEmpty)(N))return pt.$.bootData.user.timezone;if(N===Fe.vp||(0,he.HD)(N))return N;Vt("SceneTimeRange",`Invalid timeZone "${N}" provided.`)}}const Gn=new kr,Bn=new qt;class Lr extends Rt{constructor(){super({variables:[]})}getByName(_){}isVariableLoadingOrWaitingToUpdate(_){return!1}}const An=new Lr;function Un(N){var _;return(_=ln(N,G=>G.state.$timeRange))!=null?_:Bn}class cr extends X.x{}cr.type="scene-variable-changed-value";function mr(N){return typeof N=="object"&&"formatter"in N}let hr={};function ar(N){const _=hr[N];return _||(hr[N]=(0,Wt.property)(N))}class Cr{constructor(_,G){this.state={name:_,value:G,type:"scopedvar"}}getValue(_){let{value:G}=this.state,pe=G.value;return _?pe=ar(_)(G.value):pe=G.value,pe==="string"||pe==="number"||pe==="boolean"?pe:String(pe)}getValueText(){const{value:_}=this.state;return _.text!=null?String(_.text):String(_)}}let Yr;function Xr(N,_){return Yr?(Yr.state.name=N,Yr.state.value=_):Yr=new Cr(N,_),Yr}var ni=u(92745),ki=u(42954),zr=u(8934),Ur=u(63704);const jt=new ki.O(()=>[{id:Fe.$m.Lucene,name:"Lucene",description:"Values are lucene escaped and multi-valued variables generate an OR expression",formatter:_=>typeof _=="string"?sn(_):Array.isArray(_)?_.length===0?"__empty__":"("+(0,Wt.map)(_,pe=>'"'+sn(pe)+'"').join(" OR ")+")":sn(`${_}`)},{id:Fe.$m.Raw,name:"raw",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.keep-value-as-is","Keep value as is"),formatter:_=>String(_)},{id:Fe.$m.Regex,name:"Regex",description:"Values are regex escaped and multi-valued variables generate a (<value>|<value>) expression",formatter:_=>{if(typeof _=="string")return(0,zr.$f)(_);if(Array.isArray(_)){const G=_.map(pe=>typeof pe=="string"?(0,zr.$f)(pe):(0,zr.$f)(String(pe)));return G.length===1?G[0]:"("+G.join("|")+")"}return(0,zr.$f)(`${_}`)}},{id:Fe.$m.Pipe,name:"Pipe",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.values-are-separated-by-character","Values are separated by | character"),formatter:_=>typeof _=="string"?_:Array.isArray(_)?_.join("|"):`${_}`},{id:Fe.$m.Distributed,name:"Distributed",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.multiple-values-are-formatted-like-variablevalue","Multiple values are formatted like variable=value"),formatter:(_,G,pe)=>typeof _=="string"?_:Array.isArray(_)?(_=(0,Wt.map)(_,($e,ct)=>ct!==0?pe.state.name+"="+$e:$e),_.join(",")):`${_}`},{id:Fe.$m.CSV,name:"Csv",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.commaseparated-values","Comma-separated values"),formatter:_=>typeof _=="string"?_:(0,Wt.isArray)(_)?_.join(","):String(_)},{id:Fe.$m.HTML,name:"HTML",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.html-escaping-of-values","HTML escaping of values"),formatter:_=>typeof _=="string"?Ur.sQ.escapeHtml(_):(0,Wt.isArray)(_)?Ur.sQ.escapeHtml(_.join(", ")):Ur.sQ.escapeHtml(String(_))},{id:Fe.$m.JSON,name:"JSON",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.json-stringify-value","JSON stringify value"),formatter:_=>typeof _=="string"?_:JSON.stringify(_)},{id:Fe.$m.PercentEncode,name:"Percent encode",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.useful-for-url-escaping-values","Useful for URL escaping values"),formatter:_=>(0,Wt.isArray)(_)?Rn("{"+_.join(",")+"}"):Rn(_)},{id:Fe.$m.SingleQuote,name:"Single quote",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.single-quoted-values","Single quoted values"),formatter:_=>{const G=new RegExp("'","g");if((0,Wt.isArray)(_))return(0,Wt.map)(_,$e=>`'${(0,Wt.replace)($e,G,"\\'")}'`).join(",");let pe=typeof _=="string"?_:String(_);return`'${(0,Wt.replace)(pe,G,"\\'")}'`}},{id:Fe.$m.DoubleQuote,name:"Double quote",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.double-quoted-values","Double quoted values"),formatter:_=>{const G=new RegExp('"',"g");if((0,Wt.isArray)(_))return(0,Wt.map)(_,$e=>`"${(0,Wt.replace)($e,G,'\\"')}"`).join(",");let pe=typeof _=="string"?_:String(_);return`"${(0,Wt.replace)(pe,G,'\\"')}"`}},{id:Fe.$m.SQLString,name:"SQL string",description:"SQL string quoting and commas for use in IN statements and other scenarios",formatter:de},{id:"join",name:"Join",description:"Join values with a comma",formatter:(_,G)=>{var pe;if((0,Wt.isArray)(_)){const $e=(pe=G[0])!=null?pe:",";return _.join($e)}return String(_)}},{id:Fe.$m.Date,name:"Date",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.format-date-in-different-ways","Format date in different ways"),formatter:(_,G)=>{var pe;let $e=NaN;if(typeof _=="number"?$e=_:typeof _=="string"&&($e=parseInt(_,10)),isNaN($e))return"NaN";const ct=(pe=G[0])!=null?pe:"iso";switch(ct){case"ms":return String(_);case"seconds":return`${Math.round($e/1e3)}`;case"iso":return(0,K.KQ)($e).toISOString();default:return(G||[]).length>1?(0,K.KQ)($e).format(G.join(":")):(0,K.KQ)($e).format(ct)}}},{id:Fe.$m.Glob,name:"Glob",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.format-multivalued-variables-using-syntax-example","Format multi-valued variables using glob syntax, example {value1,value2}"),formatter:_=>(0,Wt.isArray)(_)&&_.length>1?"{"+_.join(",")+"}":String(_)},{id:Fe.$m.Text,name:"Text",description:"Format variables in their text representation. Example in multi-variable scenario A + B + C.",formatter:(_,G,pe)=>pe.getValueText?pe.getValueText():String(_)},{id:Fe.$m.QueryParam,name:"Query parameter",description:"Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.",formatter:(_,G,pe)=>{if(pe.urlSync){const $e=pe.urlSync.getUrlState();return f.kM.toUrlParams($e)}return Array.isArray(_)?_.map($e=>wn(pe.state.name,$e)).join("&"):wn(pe.state.name,_)}},{id:"customqueryparam",name:"Custom query parameter",description:"Format variables as URL parameters with custom name and value prefix. Example in multi-variable scenario A + B + C => p-foo=x-A&p-foo=x-B&p-foo=x-C.",formatter:(_,G,pe)=>{const $e=Rn(G[0]||pe.state.name),ct=Rn(G[1]||"");return Array.isArray(_)?_.map(Yt=>bi($e,Yt,ct)).join("&"):bi($e,_,ct)}},{id:Fe.$m.UriEncode,name:"Percent encode as URI",description:(0,ni.t)("grafana-scenes.variables.format-registry.formats.description.useful-escaping-values-taking-syntax-characters","Useful for URL escaping values, taking into URI syntax characters"),formatter:_=>(0,Wt.isArray)(_)?H("{"+_.join(",")+"}"):H(_)}]);function sn(N){return isNaN(+N)===!1?N:N.replace(/([\!\*\+\-\=<>\s\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}function Rn(N){return typeof N=="object"&&(N=String(N)),Be(encodeURIComponent(N))}const H=N=>Be(encodeURI(String(N))),Be=N=>N.replace(/[!'()*]/g,_=>"%"+_.charCodeAt(0).toString(16).toUpperCase());function wn(N,_){return`var-${N}=${Rn(_)}`}function bi(N,_,G=""){return`${N}=${G}${Rn(_)}`}const Oi={"'":"''",'"':'\\"'};function de(N){const _=new RegExp(`'|"`,"g");if((0,Wt.isArray)(N))return(0,Wt.map)(N,pe=>`'${(0,Wt.replace)(pe,_,$e=>{var ct;return(ct=Oi[$e])!=null?ct:""})}'`).join(",");let G=typeof N=="string"?N:String(N);return`'${(0,Wt.replace)(G,_,pe=>{var $e;return($e=Oi[pe])!=null?$e:""})}'`}const Ve="All",vt="$__all",Qt="Auto",nt="$__auto",Tt=/\$(\w+)|\[\[(\w+?)(?::(\w+))?\]\]|\${(\w+)(?:\.([^:^\}]+))?(?::([^\}]+))?}/g,Gt="__searchFilter",En="__scopes";var Qn=u(38036),Or=u(80011);class Pr{constructor(_){this._value=_}formatter(){return this._value}}class ai{constructor(_,G){this.state={name:_,type:"url_variable"},this._sceneObject=G}getValue(){var _;const pe=(_=Un(this._sceneObject).urlSync)==null?void 0:_.getUrlState();return new Pr(f.kM.toUrlParams(pe))}getValueText(){return""}}class xi{constructor(_,G){this.state={name:_,type:"time_macro"},this._sceneObject=G}getValue(){const _=Un(this._sceneObject);return this.state.name==="__from"?_.state.value.from.valueOf():_.state.value.to.valueOf()}getValueText(){const _=Un(this._sceneObject);return this.state.name==="__from"?(0,Or.LE)(_.state.value.from,{timeZone:_.getTimeZone()}):(0,Or.LE)(_.state.value.to,{timeZone:_.getTimeZone()})}}class mi{constructor(_,G){this.state={name:_,type:"time_macro"},this._sceneObject=G}getValue(){const G=Un(this._sceneObject).getTimeZone();return G==="browser"?Intl.DateTimeFormat().resolvedOptions().timeZone:G}getValueText(){return this.getValue()}}class ei{constructor(_,G,pe){this.state={name:_,type:"time_macro",match:pe},this._sceneObject=G}getValue(){var _;const G=jp(this._sceneObject);if(G){const pe=(_=G.state.data)==null?void 0:_.request;return pe?this.state.name==="__interval_ms"?pe.intervalMs:pe.interval:this.state.match}return this.state.match}}var Qr=u(81160);function Ni(N,_){N.setState(_)}function ea(){return h.at?(0,h.at)():h.Ny}function Qi(N){let _=N;do{if("repeatSourceKey"in _.state&&_.state.repeatSourceKey)return!0;_=_.parent}while(_);return!1}class ir extends Rt{constructor(){super(...arguments),this._urlSync=new di(this)}validateAndUpdate(){return this.getValueOptions({}).pipe((0,Qr.T)(_=>(this.updateValueGivenNewOptions(_),{})))}onCancel(){this.setStateHelper({loading:!1});const _=this.parent;_?.cancel(this)}updateValueGivenNewOptions(_){const{value:G,text:pe,options:$e}=this.state,ct=this.getStateUpdateGivenNewOptions(_,G,pe);this.interceptStateUpdateAfterValidation(ct),this.setStateHelper(ct),(ct.value!==G||ct.text!==pe||this.hasAllValue()&&!(0,Wt.isEqual)(_,$e))&&this.publishEvent(new cr(this),!0)}getStateUpdateGivenNewOptions(_,G,pe){const $e={options:_,loading:!1,value:G,text:pe};if(_.length===0)return this.state.defaultToAll||this.state.includeAll?($e.value=vt,$e.text=Ve):this.state.isMulti?($e.value=[],$e.text=[]):($e.value="",$e.text=""),$e;if(this.hasAllValue())return this.state.includeAll?$e.text=Ve:($e.value=_[0].value,$e.text=_[0].label,this.state.isMulti&&($e.value=[$e.value],$e.text=[$e.text])),$e;if(this.state.isMulti){const In=(Array.isArray(G)?G:[G]).filter(Ir=>_.find(Wr=>Wr.value===Ir)),br=In.map(Ir=>_.find(Wr=>Wr.value===Ir).label);if(In.length===0){const Ir=this.getDefaultMultiState(_);$e.value=Ir.value,$e.text=Ir.text}else(0,Wt.isEqual)(In,G)||($e.value=In),(0,Wt.isEqual)(br,pe)||($e.text=br);return $e}let ct=xr(G,pe,_);if(ct)$e.text=ct.label,$e.value=ct.value;else{const Yt=this.getDefaultSingleState(_);$e.value=Yt.value,$e.text=Yt.text}return $e}interceptStateUpdateAfterValidation(_){const G=_.value===vt&&this.state.text===Ve;this.skipNextValidation&&_.value!==this.state.value&&_.text!==this.state.text&&!G&&(_.value=this.state.value,_.text=this.state.text),this.skipNextValidation=!1}getValue(_){let G=this.state.value;if(this.hasAllValue()){if(this.state.allValue)return new zn(this.state.allValue,this);G=this.state.options.map(pe=>pe.value)}if(_!=null&&Array.isArray(G)){const pe=parseInt(_,10);if(!isNaN(pe)&&pe>=0&&pe<G.length)return G[pe]}return G}getValueText(){return this.hasAllValue()?Ve:Array.isArray(this.state.text)?this.state.text.join(" + "):String(this.state.text)}hasAllValue(){const _=this.state.value;return _===vt||Array.isArray(_)&&_[0]===vt}getDefaultMultiState(_){return this.state.defaultToAll?{value:[vt],text:[Ve]}:_.length>0?{value:[_[0].value],text:[_[0].label]}:{value:[],text:[]}}getDefaultSingleState(_){return this.state.defaultToAll?{value:vt,text:Ve}:_.length>0?{value:_[0].value,text:_[0].label}:{value:"",text:""}}changeValueTo(_,G,pe=!1){var $e,ct;if(_===this.state.value&&G===this.state.text)return;if(G||(Array.isArray(_)?G=_.map(In=>this.findLabelTextForValue(In)):G=this.findLabelTextForValue(_)),Array.isArray(_)){if(_.length===0){const In=this.getDefaultMultiState(this.state.options);_=In.value,G=In.text}_[_.length-1]===vt?(_=[vt],G=[Ve]):_[0]===vt&&_.length>1&&(_.shift(),Array.isArray(G)&&G.shift())}if((0,Wt.isEqual)(_,this.state.value)&&(0,Wt.isEqual)(G,this.state.text))return;const Yt=()=>this.setStateHelper({value:_,text:G,loading:!1});if(pe){const In=gn(this);In?.startProfile(zt),(ct=($e=this._urlSync).performBrowserHistoryAction)==null||ct.call($e,Yt)}else Yt();this.publishEvent(new cr(this),!0)}findLabelTextForValue(_){if(_===vt)return Ve;const G=this.state.options.find($e=>$e.value===_);if(G)return G.label;const pe=this.state.options.find($e=>$e.label===_);return pe?pe.label:_}setStateHelper(_){Ni(this,_)}getOptionsForSelect(_=!0){let G=this.state.options;return this.state.includeAll&&(G=[{value:vt,label:Ve},...G]),_&&!Array.isArray(this.state.value)&&(G.find($e=>$e.value===this.state.value)||(G=[{value:this.state.value,label:String(this.state.text)},...G])),G}refreshOptions(){this.getValueOptions({}).subscribe(_=>{this.updateValueGivenNewOptions(_)})}}function xr(N,_,G){let pe;for(const $e of G){if($e.value===N)return $e;$e.label===_&&(pe=$e)}return pe}class di{constructor(_){this._sceneObject=_,this._nextChangeShouldAddHistoryStep=!1}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return this._sceneObject.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){if(this._sceneObject.state.skipUrlSync)return{};let _=null,G=this._sceneObject.state.value;return Array.isArray(G)?_=G.map(String):this._sceneObject.state.isMulti?_=[String(G)]:_=String(G),{[this.getKey()]:_}}updateFromUrl(_){let G=_[this.getKey()];G!=null&&(this._sceneObject.state.includeAll&&(G=ft(G)),this._sceneObject.state.allValue&&this._sceneObject.state.allValue===G&&(G=vt),this._sceneObject.isActive||(this._sceneObject.skipNextValidation=!0),this._sceneObject.changeValueTo(G))}performBrowserHistoryAction(_){this._nextChangeShouldAddHistoryStep=!0,_(),this._nextChangeShouldAddHistoryStep=!1}shouldCreateHistoryStep(_){return this._nextChangeShouldAddHistoryStep}}function ft(N){return(0,Wt.isArray)(N)&&N[0]===Ve?[vt]:N===Ve?vt:N}class zn{constructor(_,G){this._value=_,this._variable=G}formatter(_){return _===Fe.$m.Text?Ve:_===Fe.$m.PercentEncode?jt.get(Fe.$m.PercentEncode).formatter(this._value,[],this._variable):_===Fe.$m.QueryParam?jt.get(Fe.$m.QueryParam).formatter(Ve,[],this._variable):this._value}}class Zn{constructor(_,G){this.state={name:_,type:"url_variable"},this._sceneObject=G}getValue(){const _=wi(this._sceneObject),G=jt.get(Fe.$m.QueryParam),pe=[];for(const $e of Object.keys(_)){const ct=_[$e];if(ct instanceof ir&&ct.hasAllValue()&&!ct.state.allValue){pe.push(G.formatter(vt,[],ct));continue}const Yt=ct.getValue();Yt&&(mr(Yt)?pe.push(Yt.formatter(Fe.$m.QueryParam)):pe.push(G.formatter(Yt,[],ct)))}return new Pr(pe.join("&"))}getValueText(){return""}}function wi(N,_={}){if(N.state.$variables)for(const G of N.state.$variables.state.variables)G.state.skipUrlSync||_[G.state.name]||(_[G.state.name]=G);return N.parent&&wi(N.parent,_),_}var Ea=u(55386),wa=u(95004),ji=u(11576),Dt=u(7102),Xn=u(16515),Tr=u(71642);function Nr(N,_,G){return new Proxy({},{get:(pe,$e)=>{if($e==="name")return N.name;if($e==="displayName")return(0,Xn.Ct)(N,_,G);if($e==="labels"||$e==="formattedLabels")return N.labels?{...N.labels,__values:Object.values(N.labels).sort().join(", "),toString:()=>(0,Tr.h6)(N.labels,"",!0)}:""}})}class ti{constructor(_,G,pe,$e){this._match=pe,this._scopedVars=$e,this.state={name:_,type:"__value"}}getValue(_){var G,pe;const $e=(G=this._scopedVars)==null?void 0:G.__dataContext;if(!$e)return this._match;const{frame:ct,rowIndex:Yt,field:In,calculatedValue:br}=$e.value;if(br)switch(_){case"numeric":return br.numeric;case"raw":return br.numeric;case"time":return"";case"text":default:return(0,Ea.cN)(br)}if(Yt==null)return this._match;if(_==="time"){const pi=ct.fields.find(Ri=>Ri.type===wa.PU.time);return pi?pi.values.get(Yt):void 0}if(!In)return this._match;const Ir=In.values.get(Yt);if(_==="raw")return Ir;const Gr=((pe=In.display)!=null?pe:_i)(Ir);switch(_){case"numeric":return Gr.numeric;case"text":default:return(0,Ea.cN)(Gr)}}getValueText(){return""}}const _i=(0,ji.J)();class Ii{constructor(_,G,pe,$e){this._match=pe,this._scopedVars=$e,this.state={name:_,type:"__data"}}getValue(_){var G,pe;const $e=(G=this._scopedVars)==null?void 0:G.__dataContext;if(!$e||!_)return this._match;const{frame:ct,rowIndex:Yt}=$e.value;if(Yt===void 0||_===void 0)return this._match;const In={name:ct.name,refId:ct.refId,fields:(0,Dt.F)({frame:ct,rowIndex:Yt})};return(pe=ar(_)(In))!=null?pe:""}getValueText(){return""}}class ta{constructor(_,G,pe,$e){this._match=pe,this._scopedVars=$e,this.state={name:_,type:"__series"}}getValue(_){var G;const pe=(G=this._scopedVars)==null?void 0:G.__dataContext;if(!pe||!_)return this._match;if(_!=="name")return this._match;const{frame:$e,frameIndex:ct}=pe.value;return(0,Xn.Ri)($e,ct)}getValueText(){return""}}class Ji{constructor(_,G,pe,$e){this._match=pe,this._scopedVars=$e,this.state={name:_,type:"__field"}}getValue(_){var G,pe;const $e=(G=this._scopedVars)==null?void 0:G.__dataContext;if(!$e||!_)return this._match;if(_===void 0||_==="")return this._match;const{frame:ct,field:Yt,data:In}=$e.value,br=Nr(Yt,ct,In);return(pe=ar(_)(br))!=null?pe:""}getValueText(){return""}}class k{constructor(_,G){this.state={name:_,type:"url_macro"}}getValue(_){var G;const pe=h.Ny.getLocation(),$e=(G=pt.$.appSubUrl)!=null?G:"";switch(_??""){case"params":return new ve(pe.search);case"path":return $e+pe.pathname;case"":default:return $e+pe.pathname+pe.search}}getValueText(){return""}}class ve{constructor(_){this._urlQueryParams=_}formatter(_){if(!_)return this._urlQueryParams;const G=_.split(":");if(G[0]==="exclude"&&G.length>1){const pe=new URLSearchParams(this._urlQueryParams);for(const $e of G[1].split(","))pe.delete($e);return`?${pe}`}if(G[0]==="include"&&G.length>1){const pe=new URLSearchParams(this._urlQueryParams),$e=G[1].split(",");for(const ct of pe.keys())$e.includes(ct)||pe.delete(ct);return`?${pe}`}return this._urlQueryParams}}class Le{constructor(_,G){this.state={name:_,type:"user_macro"}}getValue(_){const G=pt.$.bootData.user;switch(_){case"login":return G.login;case"email":return G.email;case"id":default:return String(G.id)}}getValueText(){return""}}class Ye{constructor(_,G){this.state={name:_,type:"org_macro"}}getValue(_){const G=pt.$.bootData.user;switch(_){case"name":return G.orgName;case"id":default:return String(G.orgId)}}getValueText(){return""}}const ot=new Map([[Qn.c.includeVars,Zn],[Qn.c.keepTime,ai],["__value",ti],["__data",Ii],["__series",ta],["__field",Ji],["__url",k],["__from",xi],["__to",xi],["__timezone",mi],["__user",Le],["__org",Ye],["__interval",ei],["__interval_ms",ei]]);function Lt(N,_,G=!1){if(!G&&ot.get(N))throw new Error(`Macro already registered ${N}`);return ot.set(N,_),()=>{if(G)throw new Error("Replaced macros can not be unregistered. They need to be restored manually.");ot.delete(N)}}function an(N,_,G,pe,$e){return!_||typeof _!="string"?_??"":(Tt.lastIndex=0,_.replace(Tt,(ct,Yt,In,br,Ir,Wr,Gr)=>{const pi=Yt||In||Ir,Ri=br||Gr||pe,Zi=nr(pi,ct,G,N);if(!Zi)return $e&&$e.push({match:ct,variableName:pi,fieldPath:Wr,format:Ri,value:ct,found:!1}),ct;const ia=vr(N,Zi,Zi.getValue(Wr),Ri);return $e&&$e.push({match:ct,variableName:pi,fieldPath:Wr,format:Ri,value:ia,found:ia!==ct}),ia}))}function nr(N,_,G,pe){if(G&&G.hasOwnProperty(N)){const Yt=G[N];if(Yt)return Xr(N,Yt)}const $e=rn(N,pe);if($e)return $e;const ct=ot.get(N);return ct?new ct(N,pe,_,G):null}function vr(N,_,G,pe){if(G==null)return"";if(mr(G))return an(N,G.formatter(pe));if(!Array.isArray(G)&&typeof G=="object"&&(G=`${G}`),typeof pe=="function")return pe(G,{name:_.state.name,type:_.state.type,multi:_.state.isMulti,includeAll:_.state.includeAll});let $e=[];pe?($e=pe.split(":"),$e.length>1?(pe=$e[0],$e=$e.slice(1)):$e=[]):pe=Fe.$m.Glob;let ct=jt.getIfExists(pe);return ct||(console.error(`Variable format ${pe} not found. Using glob format as fallback.`),ct=jt.get(Fe.$m.Glob)),ct.formatter(G,$e,_)}function $r(N){return N.useState!==void 0}function Fr(N){return"enrichDataRequest"in N}function qr(N){return"enrichFiltersRequest"in N}function jr(N){return"isDataLayer"in N}var vi=u(75505),Mi=u(65474),ra=u(69862),Yi=u(16126),ua=u(38975),Sa=u(13288),Xt=u(66847),V=u(7389),Y=u(28105),D=u(1906),P=u(39741),oe=u(45650),Ie=u(41119),Ue=u(88673),Xe=u(83734),dt=u(97534),kt=u(36580),dn=u(78282),Vn=u(88483);function qn(N="op"){if(typeof crypto<"u"&&crypto.randomUUID){const G=crypto.randomUUID();return`${N}-${G}`}const _=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return`${N}-${_}`}const yr=class ig{constructor(){this.observers=[]}static getInstance(){return ig.instance||(ig.instance=new ig),ig.instance}addObserver(_){return this.observers.push(_),()=>{const G=this.observers.indexOf(_);G>-1&&this.observers.splice(G,1)}}clearObservers(){this.observers=[]}getObserverCount(){return this.observers.length}notifyObservers(_,G,pe){this.observers.forEach($e=>{try{const ct=$e[_];ct?.(G)}catch(ct){console.warn(`Error in ${pe} observer:`,ct)}})}notifyDashboardInteractionStart(_){this.notifyObservers("onDashboardInteractionStart",_,"dashboard interaction start")}notifyDashboardInteractionMilestone(_){this.notifyObservers("onDashboardInteractionMilestone",_,"dashboard interaction milestone")}notifyDashboardInteractionComplete(_){this.notifyObservers("onDashboardInteractionComplete",_,"dashboard interaction complete")}notifyPanelOperationStart(_){this.notifyObservers("onPanelOperationStart",_,"panel operation start")}notifyPanelOperationComplete(_){this.notifyObservers("onPanelOperationComplete",_,"panel operation complete")}notifyQueryStart(_){this.notifyObservers("onQueryStart",_,"query start")}notifyQueryComplete(_){this.notifyObservers("onQueryComplete",_,"query complete")}};yr.instance=null;let ci=yr;function hi(){return ci.getInstance()}function Ti(N,_){return G=>{const pe=_o.getQueryController(N.origin);return pe?new Vn.c($e=>{var ct;N.cancel||(N.cancel=()=>$e.complete());const Yt=((ct=N.request)==null?void 0:ct.requestId)||`${N.type}-${Math.floor(performance.now()).toString(36)}`,In=performance.now();let br=null;if(_)br=_.onQueryStarted(In,N,Yt);else{const Gr=qn("query");hi().notifyQueryStart({operationId:Gr,queryId:Yt,queryType:N.type,origin:N.origin.constructor.name,timestamp:In}),br=(pi,Ri)=>{hi().notifyQueryComplete({operationId:Gr,queryId:Yt,queryType:N.type,origin:N.origin.constructor.name,timestamp:pi,duration:pi-In,error:Ri?Ri?.message||String(Ri)||"Unknown error":void 0})}}pe.queryStarted(N);let Ir=!1;const Wr=G.subscribe({next:Gr=>{!Ir&&Gr.state!==Jn.Gu.Loading&&(Ir=!0,pe.queryCompleted(N),br?.(performance.now())),$e.next(Gr)},error:Gr=>{Ir||(Ir=!0,pe.queryCompleted(N),br?.(performance.now(),Gr)),$e.error(Gr)},complete:()=>{$e.complete()}});return()=>{Wr.unsubscribe(),Ir||(pe.queryCompleted(N),br?.(performance.now()))}}):G}}function Vi(N){return new Vn.c(_=>{_.next({state:Jn.Gu.Loading}),(0,Mi.H)(N).pipe((0,Qr.T)(()=>({state:Jn.Gu.Done})),(0,Xt.W)(()=>(_.next({state:Jn.Gu.Error}),[]))).subscribe({next:pe=>_.next(pe),complete:()=>_.complete()})})}async function Di(N,_){var G;if(N?.uid){const ct=me.get(N.uid);if(ct)return ct}if(N&&N.query)return N;const pe=(0,dn.l)().get(N,_);if(_.__sceneObject&&_.__sceneObject.value.valueOf()){const ct=_o.getQueryController(_.__sceneObject.value.valueOf());ct&&ct.state.enableProfiling&&Vi(pe).pipe(Ti({type:`getDataSource/${(G=N?.type)!=null?G:"unknown"}`,origin:_.__sceneObject.value.valueOf()})).subscribe(()=>{})}return await pe}class Pi{constructor(){this._values=new Map}recordCurrentDependencyValuesForSceneObject(_){if(this.clearValues(),!!_.variableDependency)for(const G of _.variableDependency.getNames()){const pe=_o.lookupVariable(G,_);pe&&this._values.set(pe.state.name,pe.getValue())}}cloneAndRecordCurrentValuesForSceneObject(_){const G=new Pi;return G.recordCurrentDependencyValuesForSceneObject(_),G}clearValues(){this._values.clear()}hasValues(){return!!this._values}recordCurrentValue(_){this._values.set(_.state.name,_.getValue())}hasRecordedValue(_){return this._values.has(_.state.name)}hasValueChanged(_){if(this._values.has(_.state.name)){const G=this._values.get(_.state.name);if(!Vv(G,_.getValue()))return!0}return!1}hasDependenciesChanged(_){if(!this._values||!_.variableDependency)return!1;for(const G of _.variableDependency.getNames()){const pe=_o.lookupVariable(G,_);if(!pe)continue;const $e=pe.state.name;if(pe&&this._values.has($e)){const ct=this._values.get($e);if(!Vv(ct,pe.getValue()))return!0}}return!1}}function mt(N){return typeof N=="object"&&"getExtraQueries"in N}const tn=(N,_)=>(0,Nn.of)(_),or=N=>_=>_.pipe((0,ra.Z)(([G,...pe])=>{const $e=pe.flatMap(ct=>{var Yt,In;return(In=(Yt=N.get(ct.request.requestId))==null?void 0:Yt(G,ct))!=null?In:(0,Nn.of)(ct)});return(0,oe.p)([(0,Nn.of)(G),...$e])}),(0,Qr.T)(([G,...pe])=>{var $e;return{...G,series:[...G.series,...pe.flatMap(ct=>ct.series)],annotations:[...($e=G.annotations)!=null?$e:[],...pe.flatMap(ct=>{var Yt;return(Yt=ct.annotations)!=null?Yt:[]})]}})),rt=0;function St(N,_){var G;if(!Array.isArray(N)||N.length===0)return N;const pe=Array.from({length:N.length},()=>new Set);let $e=0;for(const Yt of N){for(let In=0;In<Yt.length;In++){if(pe[$e].has(In))continue;let br=!0;const Ir=Yt.fields.find(Gr=>Gr.name==="panelId"),Wr=Yt.fields.find(Gr=>Gr.name==="source");if(Wr){Ir&&Wr.values[In].type==="dashboard"&&(br=[_.panelId,rt].includes(Ir.values[In]));const Gr=Wr.values[In].filter;if(Gr){const pi=[...(G=Gr.ids)!=null?G:[],rt].includes(_.panelId);Gr.exclude?pi&&(br=!1):pi||(br=!1)}}br&&pe[$e].add(In)}$e++}const ct=[];$e=0;for(const Yt of N){const In=pe[$e].size,br=[];for(const Ir of Yt.fields){const Wr=[];for(let Gr=0;Gr<Yt.length;Gr++)if(pe[$e].has(Gr)){Wr.push(Ir.values[Gr]);continue}br.push({...Ir,values:Wr})}ct.push({...Yt,fields:br,length:In}),$e++}return ct}function _n(N){const _=N.getRoot();return Fr(_)?_.enrichDataRequest(N):null}const vn=new Set;function Ln(N){var _;for(const G of vn.values())if(tp(G,(_=G.state.datasource)==null?void 0:_.uid)===N)return G}var _r=u(59099),Br=u(18857),Kr=u(29362),Jr=u(63142),ii=u(69665),le=u(32635),Ae=u(51898),Oe=u(22803),et=u(84139);const Ot=/[^ -~]/m,It=/^[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+$/m,Mn=5,mn=25,At=5,Ut=1e4,jn=new et.A({intraMode:1});function Jt(N,_,G){let pe=[];if(G==="")pe=N;else if(Ot.test(G)||It.test(G)||G.length>mn||jn.split(G).length>At)for(let $e=0;$e<_.length;$e++)_[$e].includes(G)&&pe.push(N[$e]);else{const[$e,ct,Yt]=jn.search(_,G,Mn,Ut);$e?.length&&(ct&&Yt?pe=Yt.map(In=>N[ct.idx[In]]):pe=$e.map(In=>N[In]))}return pe}function dr(N,_=!1){let G=N;_&&(G=[{value:vt,label:Ve},...G]);const pe=G.map($e=>$e.label);return $e=>Jt(G,pe,$e)}const wr=()=>!0,Hr=N=>N.value!=="$__all",Ar=(N,_)=>N.length===_.filter(Hr).length?Kr.X.allSelected:N.length===0||N.length===1&&N[0]&&N[0].value==="$__all"?Kr.X.noneSelected:Kr.X.indeterminate;function yi(N,_){return{value:N,label:_??String(N)}}function Rr({model:N,state:_}){const{value:G,text:pe,key:$e,options:ct,includeAll:Yt,isReadOnly:In,allowCustomValue:br=!0}=_,[Ir,Wr]=(0,C.useState)(""),[Gr,pi]=(0,C.useState)(!1),Ri=yi(G,String(pe)),Zi=_o.getQueryController(N),ia=(0,C.useMemo)(()=>dr(ct,Yt),[ct,Yt]),Fa=(Ya,{action:Ao})=>(Ao==="input-change"&&(Wr(Ya),N.onSearchChange&&N.onSearchChange(Ya)),Ya),Ba=ia(Ir),Va=()=>{Gr&&Wr(String(pe))},Ra=()=>{Wr("")};return C.createElement(Br.l6,{id:$e,isValidNewOption:Ya=>Ya.trim().length>0,placeholder:(0,ni.t)("grafana-scenes.variables.variable-value-select.placeholder-select-value","Select value"),width:"auto",disabled:In,value:Ri,inputValue:Ir,allowCustomValue:br,virtualized:!0,filterOption:wr,tabSelectsValue:!1,onInputChange:Fa,onOpenMenu:Va,onCloseMenu:Ra,options:Ba,"data-testid":Ae.Tp.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts(`${G}`),onChange:Ya=>{N.changeValueTo(Ya.value,Ya.label,!0),Zi?.startProfile(zt),Gr!==Ya.__isNew__&&pi(Ya.__isNew__)}})}function si({model:N,state:_}){const{value:G,options:pe,key:$e,maxVisibleValues:ct,noValueOnClear:Yt,includeAll:In,isReadOnly:br,allowCustomValue:Ir=!0}=_,Wr=(0,C.useMemo)(()=>(0,Wt.isArray)(G)?G:[G],[G]),[Gr,pi]=(0,C.useState)(Wr),[Ri,Zi]=(0,C.useState)(""),ia=(0,C.useMemo)(()=>dr(pe,In),[pe,In]);(0,C.useEffect)(()=>{pi(Wr)},[Wr]);const Fa=(Ra,{action:Ya})=>Ya==="input-change"?(Zi(Ra),N.onSearchChange&&N.onSearchChange(Ra),Ra):Ya==="input-blur"?(Zi(""),""):Ri,Ba=pe.length>0?"Select value":"",Va=ia(Ri);return C.createElement(Br.KF,{id:$e,placeholder:Ba,width:"auto",inputValue:Ri,disabled:br,value:Gr,noMultiValueWrap:!0,maxVisibleValues:ct??5,tabSelectsValue:!1,virtualized:!0,allowCustomValue:Ir,toggleAllOptions:{enabled:!0,optionsFilter:Hr,determineToggleAllState:Ar},options:Va,closeMenuOnSelect:!1,components:{Option:Si},isClearable:!0,hideSelectedOptions:!1,onInputChange:Fa,onBlur:()=>{N.changeValueTo(Gr,void 0,!0)},filterOption:wr,"data-testid":Ae.Tp.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts(`${Gr}`),onChange:(Ra,Ya)=>{Ya.action==="clear"&&Yt&&N.changeValueTo([],void 0,!0),pi(Ra.map(Ao=>Ao.value))}})}const Si=({children:N,data:_,innerProps:G,innerRef:pe,isFocused:$e,isSelected:ct,indeterminate:Yt,renderOptionLabel:In})=>{var br;const{onMouseMove:Ir,onMouseOver:Wr,...Gr}=G,pi=(0,Jr.$j)(),Ri=(0,ii.J)(pi),Zi=(0,Jr.of)($i);return C.createElement("div",{ref:pe,className:(0,Oe.cx)(Ri.option,$e&&Ri.optionFocused),...Gr,"data-testid":"data-testid Select option",title:_.title},C.createElement("div",{className:Zi.checkbox},C.createElement(le.S,{indeterminate:Yt,value:ct})),C.createElement("div",{className:Ri.optionBody,"data-testid":Ae.Tp.pages.Dashboard.SubMenu.submenuItemValueDropDownOptionTexts((br=_.label)!=null?br:String(_.value))},C.createElement("span",null,N)))};Si.displayName="SelectMenuOptions";const $i=N=>({checkbox:(0,Oe.css)({marginRight:N.spacing(2)})});function Hi({model:N}){const _=N.useState();return _.isMulti?C.createElement(si,{model:N,state:_}):C.createElement(Rr,{model:N,state:_})}class Oa{constructor(_){this._sceneObject=_,this._nextChangeShouldAddHistoryStep=!1}getRestorableKey(){return`restorable-var-${this._sceneObject.state.name}`}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return this._sceneObject.state.skipUrlSync?[]:[this.getKey(),this.getRestorableKey()]}getUrlState(){return this._sceneObject.state.skipUrlSync?{}:{[this.getKey()]:this._sceneObject.state.defaultValue&&!this._sceneObject.state.restorable?[""]:Ma(this._sceneObject.state.value,this._sceneObject.state.text),[this.getRestorableKey()]:this._sceneObject.state.defaultValue?this._sceneObject.state.restorable?"true":"false":null}}updateFromUrl(_){let G=_[this.getKey()],pe=_[this.getRestorableKey()];if(G!=null){this._sceneObject.isActive||(this._sceneObject.skipNextValidation=!0);const{values:$e,texts:ct}=Ua(G);if(this._sceneObject.state.defaultValue&&(pe==="false"||pe===void 0))return;if(pe==="false"){this._sceneObject.changeValueTo([],[],!1);return}this._sceneObject.changeValueTo($e,ct)}}performBrowserHistoryAction(_){this._nextChangeShouldAddHistoryStep=!0,_(),this._nextChangeShouldAddHistoryStep=!1}shouldCreateHistoryStep(_){return this._nextChangeShouldAddHistoryStep}}function Ma(N,_){return N=Array.isArray(N)?N:[N],_=Array.isArray(_)?_:[_],N.map((G,pe)=>{if(G==null)return"";G=String(G);let $e=_[pe];return $e=$e==null?G:String($e),qh(G,$e)})}function Ua(N){return N=Array.isArray(N)?N:[N],N.reduce((_,G)=>{const[pe,$e]=(G??"").split(",");return _.values.push(Hv(pe)),_.texts.push(Hv($e??pe)),_},{values:[],texts:[]})}function Xa(N){const _=N.getRoot();return qr(_)?_.enrichFiltersRequest(N):null}var Na=N=>{throw TypeError(N)},za=(N,_,G)=>_.has(N)||Na("Cannot "+G),qa=(N,_,G)=>(za(N,_,"read from private field"),G?G.call(N):_.get(N)),no=(N,_,G)=>_.has(N)?Na("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(N):_.set(N,G),wo=(N,_,G,pe)=>(za(N,_,"write to private field"),_.set(N,G),G),go;class Ka{constructor(_){no(this,go),this.text="__sceneObject",this.valueOf=()=>qa(this,go),wo(this,go,_)}toString(){}get value(){return this}}go=new WeakMap;function Ia(N){const _=/^(\d+)\.(\d+)\.(\d+)/,G=N.match(_);if(!G)return!1;const pe=parseInt(G[1],10),$e=parseInt(G[2],10),ct=parseInt(G[3],10);return pe===11?$e===0&&ct>=4||$e===1&&ct>=2||$e>1:pe===10?$e===4&&ct>=8||$e>=5:pe>11}function Us(N){const _=pt.$.buildInfo.version;return Ia(_)?new Ka(N):{value:N,text:"__sceneObject"}}var Vs=u(63527),Is=u(76319),uo=u(45967),Ds=u(30703);function Js(N){const{model:_}=N,G=(0,Jr.$j)(),pe=eo(G),$e=(0,Vs.n)({theme:G,invalid:!1}),ct=(0,Wt.isArray)(_.state.value)?_.state.value:_.state.value?[_.state.value]:[];let Yt=[];return ct&&ct.length&&Yt.push(C.createElement(Is.K,{"aria-label":(0,ni.t)("grafana-scenes.variables.default-group-by-custom-indicator-container.aria-label-clear","clear"),key:"clear",name:"times",size:"md",className:pe.clearIcon,onClick:In=>{_.changeValueTo([],void 0,!0),_.checkIfRestorable([])&&_.setState({restorable:!0})}})),_.state.restorable&&Yt.push(C.createElement(Is.K,{onClick:In=>{N.model.restoreDefaultValues()},onKeyDownCapture:In=>{In.key==="Enter"&&N.model.restoreDefaultValues()},key:"restore",name:"history",size:"md",className:pe.clearIcon,tooltip:(0,ni.t)("grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip-restore-groupby-set-by-this-dashboard","Restore groupby set by this dashboard.")})),_.state.restorable||Yt.push(C.createElement(uo.m,{key:"tooltip",content:(0,ni.t)("grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip","Applied by default in this dashboard. If edited, it carries over to other dashboards."),placement:"bottom"},C.createElement(Ds.I,{name:"info-circle",size:"md"}))),C.createElement("div",{onMouseDown:In=>{In.preventDefault(),In.stopPropagation()},className:(0,Oe.cx)($e.suffix,(0,Oe.css)({position:"relative"}))},Yt)}const eo=N=>({clearIcon:(0,Oe.css)({color:N.colors.action.disabledText,cursor:"pointer","&:hover:before":{backgroundColor:"transparent"},"&:hover":{color:N.colors.text.primary}})}),uu=({keysApplicability:N,children:_})=>{var G,pe;const $e=(0,Jr.$j)(),ct=(0,ii.J)($e),{disabledPill:Yt,strikethrough:In}=Mp($e),br=C.Children.toArray(_)[0];let Ir=!0;if(C.isValidElement(br)&&((pe=(G=br.props)==null?void 0:G.data)!=null&&pe.value)){const Wr=br.props.data.value,Gr=N?.find(pi=>pi.key===Wr);Gr&&!Gr.applicable&&(Ir=!1)}return C.createElement("div",{className:(0,Oe.cx)(ct.multiValueContainer,!Ir&&(0,Oe.cx)(Yt,In))},_)};function pa(N){return"isInteractionTracker"in N}class na extends Rt{constructor(_={},G){super(_),this.renderProfiler=G,this.isInteractionTracker=!0,G&&(this.renderProfiler=G,this.renderProfiler.setInteractionCompleteHandler(_.onInteractionComplete))}startInteraction(_){var G;this.state.enableInteractionTracking&&((G=this.renderProfiler)==null||G.startInteraction(_))}stopInteraction(){var _;(_=this.renderProfiler)==null||_.stopInteraction()}}function Ui(N){let _=N;for(;_;){if(_.state.$behaviors){for(const G of _.state.$behaviors)if(pa(G))return G}_=_.parent}}class xe extends ir{constructor(_){super({isMulti:!0,name:"",value:[],text:[],options:[],datasource:null,baseFilters:[],applyMode:"auto",layout:"horizontal",type:"groupby",..._,noValueOnClear:!0}),this.isLazy=!0,this._urlSync=new Oa(this),this._activationHandler=()=>(this._verifyApplicability(),this.state.defaultValue&&this.checkIfRestorable(this.state.value)&&this.setState({restorable:!0}),()=>{this.state.defaultValue&&this.restoreDefaultValues()}),this._getKeys=async G=>{var pe,$e,ct;const Yt=await(($e=(pe=this.state).getTagKeysProvider)==null?void 0:$e.call(pe,this,null));if(Yt&&Yt.replace)return Yt.values;if(this.state.defaultOptions)return this.state.defaultOptions.concat(Jf((ct=Yt?.values)!=null?ct:[]));if(!G.getTagKeys)return[];const In=Qh(this),br=this.state.baseFilters||[],Ir=_o.getTimeRange(this).state.value,Wr=await G.getTagKeys({filters:br,queries:In,timeRange:Ir,scopes:_o.getScopes(this),...Xa(this)});Ip(Wr)&&this.setState({error:Wr.error.message});let Gr=Jf(Wr);Yt&&(Gr=Gr.concat(Jf(Yt.values)));const pi=this.state.tagKeyRegexFilter;return pi&&(Gr=Gr.filter(Ri=>Ri.text.match(pi))),Gr},this.state.defaultValue&&this.changeValueTo(this.state.defaultValue.value,this.state.defaultValue.text,!1),this.state.applyMode==="auto"&&this.addActivationHandler(()=>(vn.add(this),()=>vn.delete(this))),this.addActivationHandler(this._activationHandler)}validateAndUpdate(){return this.getValueOptions({}).pipe((0,Qr.T)(_=>(this._updateValueGivenNewOptions(_),{})))}_updateValueGivenNewOptions(_){const{value:G,text:pe}=this.state,$e={options:_,loading:!1,value:G??[],text:pe??[]};this.setState($e)}getValueOptions(_){return this.state.defaultOptions?(0,Nn.of)(this.state.defaultOptions.map(G=>({label:G.text,value:String(G.value),group:G.group}))):(this.setState({loading:!0,error:null}),(0,Mi.H)(Di(this.state.datasource,{__sceneObject:Us(this)})).pipe((0,ra.Z)(G=>(0,Mi.H)(this._getKeys(G)).pipe((0,_r.M)(pe=>{Ip(pe)&&this.setState({error:pe.error.message})}),(0,Qr.T)(pe=>Jf(pe)),(0,ua.s)(1),(0,ra.Z)(pe=>{const $e=pe.map(ct=>({label:ct.text,value:ct.value?String(ct.value):ct.text,group:ct.group}));return(0,Nn.of)($e)})))))}getApplicableKeys(){const{value:_,keysApplicability:G}=this.state,pe=(0,Wt.isArray)(_)?_:_?[_]:[];return!G||G.length===0?pe:pe.filter(ct=>{const Yt=G.find(In=>In.key===ct);return!Yt||Yt.applicable!==!1})}async _verifyApplicability(){const _=await Di(this.state.datasource,{__sceneObject:Us(this)});if(!_.getDrilldownsApplicability)return;const G=Qh(this),pe=_o.getTimeRange(this).state.value,$e=this.state.value,ct=await _.getDrilldownsApplicability({groupByKeys:Array.isArray($e)?$e.map(Yt=>String(Yt)):$e?[String($e)]:[],queries:G,timeRange:pe,scopes:_o.getScopes(this),...Xa(this)});(0,Wt.isEqual)(ct,this.state.keysApplicability)||(this.setState({keysApplicability:ct??void 0}),this.publishEvent(new cr(this),!0))}checkIfRestorable(_){var G,pe,$e,ct;const Yt=(0,Wt.isArray)((G=this.state.defaultValue)==null?void 0:G.value)?(pe=this.state.defaultValue)==null?void 0:pe.value:($e=this.state.defaultValue)!=null&&$e.value?[(ct=this.state.defaultValue)==null?void 0:ct.value]:[],In=(0,Wt.isArray)(_)?_:[_];return In.length!==Yt.length?!0:!(0,Wt.isEqual)(In,Yt)}restoreDefaultValues(){this.setState({restorable:!1}),this.state.defaultValue&&this.changeValueTo(this.state.defaultValue.value,this.state.defaultValue.text,!0)}getDefaultMultiState(_){return{value:[],text:[]}}}xe.Component=Ce;function Ce({model:N}){const{value:_,text:G,key:pe,isMulti:$e=!0,maxVisibleValues:ct,noValueOnClear:Yt,options:In,includeAll:br,allowCustomValue:Ir=!0,defaultValue:Wr,keysApplicability:Gr}=N.useState(),pi=(0,C.useMemo)(()=>{const ko=(0,Wt.isArray)(_)?_:[_],Mo=(0,Wt.isArray)(G)?G:[G];return ko.map((ds,po)=>{var Qo;return{value:ds,label:String((Qo=Mo[po])!=null?Qo:ds)}})},[_,G]),[Ri,Zi]=(0,C.useState)(!1),[ia,Fa]=(0,C.useState)(!1),[Ba,Va]=(0,C.useState)(""),[Ra,Ya]=(0,C.useState)(pi),Ao=(0,C.useMemo)(()=>dr(In,br),[In,br]),Co=Wr!==void 0;(0,C.useEffect)(()=>{Ya(pi)},[pi]);const ao=(ko,{action:Mo})=>Mo==="input-change"?(Va(ko),N.onSearchChange&&N.onSearchChange(ko),ko):Mo==="input-blur"?(Va(""),""):Ba,$o=(0,C.useMemo)(()=>Dp(Ao(Ba).map(gt)),[Ao,Ba]);return $e?C.createElement(Br.KF,{"aria-label":(0,ni.t)("grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector","Group by selector"),"data-testid":`GroupBySelect-${pe}`,id:pe,placeholder:(0,ni.t)("grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label","Group by label"),width:"auto",allowCustomValue:Ir,inputValue:Ba,value:Ra,noMultiValueWrap:!0,maxVisibleValues:ct??5,tabSelectsValue:!1,virtualized:!0,options:$o,filterOption:st,closeMenuOnSelect:!1,isOpen:ia,isClearable:!0,hideSelectedOptions:!1,isLoading:Ri,components:{Option:Si,...Co?{IndicatorsContainer:()=>C.createElement(Js,{model:N})}:{},MultiValueContainer:({innerProps:ko,children:Mo})=>C.createElement(uu,{innerProps:ko,keysApplicability:Gr},Mo)},onInputChange:ao,onBlur:()=>{N.changeValueTo(Ra.map(Mo=>Mo.value),Ra.map(Mo=>Mo.label),!0);const ko=N.checkIfRestorable(Ra.map(Mo=>Mo.value));ko!==N.state.restorable&&N.setState({restorable:ko}),N._verifyApplicability()},onChange:(ko,Mo)=>{Mo.action==="clear"&&Yt&&N.changeValueTo([],void 0,!0),Ya(ko)},onOpenMenu:async()=>{const ko=Ui(N);ko?.startInteraction(_t),Zi(!0),await(0,vi.s)(N.validateAndUpdate()),Zi(!1),Fa(!0),ko?.stopInteraction()},onCloseMenu:()=>{Fa(!1)}}):C.createElement(Br.l6,{"aria-label":(0,ni.t)("grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector","Group by selector"),"data-testid":`GroupBySelect-${pe}`,id:pe,placeholder:(0,ni.t)("grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label","Group by label"),width:"auto",inputValue:Ba,value:Ra&&Ra.length>0?Ra:null,allowCustomValue:Ir,noMultiValueWrap:!0,maxVisibleValues:ct??5,tabSelectsValue:!1,virtualized:!0,options:$o,filterOption:st,closeMenuOnSelect:!0,isOpen:ia,isClearable:!0,hideSelectedOptions:!1,noValueOnClear:!0,isLoading:Ri,onInputChange:ao,onChange:(ko,Mo)=>{if(Mo.action==="clear"){Ya([]),Yt&&N.changeValueTo([]);return}ko?.value&&(Ya([ko]),N.changeValueTo([ko.value],ko.label?[ko.label]:void 0))},onOpenMenu:async()=>{const ko=Ui(N);ko?.startInteraction(_t),Zi(!0),await(0,vi.s)(N.validateAndUpdate()),Zi(!1),Fa(!0),ko?.stopInteraction()},onCloseMenu:()=>{Fa(!1)}})}const st=()=>!0;function gt(N){const{label:_,value:G,group:pe}=N,$e={label:_,value:G};return pe&&($e.group=pe),$e}var Ht=u(69168),Hn=u(67458),fr=u(60519),Zr=u(76732),gi=u(84229),wt=u(16207),cn=function(){};function rr(N){for(var _=[],G=1;G<arguments.length;G++)_[G-1]=arguments[G];N&&N.addEventListener&&N.addEventListener.apply(N,_)}function $n(N){for(var _=[],G=1;G<arguments.length;G++)_[G-1]=arguments[G];N&&N.removeEventListener&&N.removeEventListener.apply(N,_)}var Sr=typeof window<"u",fi=typeof navigator<"u",Ci=Sr?C.useLayoutEffect:C.useEffect;const la=Ci;var ya={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function _a(){var N=(0,C.useState)(null),_=N[0],G=N[1],pe=(0,C.useState)(ya),$e=pe[0],ct=pe[1],Yt=(0,C.useMemo)(function(){return new window.ResizeObserver(function(In){if(In[0]){var br=In[0].contentRect,Ir=br.x,Wr=br.y,Gr=br.width,pi=br.height,Ri=br.top,Zi=br.left,ia=br.bottom,Fa=br.right;ct({x:Ir,y:Wr,width:Gr,height:pi,top:Ri,left:Zi,bottom:ia,right:Fa})}})},[]);return la(function(){if(_)return Yt.observe(_),function(){Yt.disconnect()}},[_]),[G,$e]}const Ga=Sr&&typeof window.ResizeObserver<"u"?_a:function(){return[cn,ya]};var Pa=u(57852),ja=u(76190),Oo=u(20877),Do=u(67522),fo=u(36303),Zo=u(64400),bs=u(45861);function io({data:N,showAll:_,seriesLimit:G,onShowAllSeries:pe}){const $e=(0,Jr.of)(fs),ct=N?.series.length;if(ct===void 0||ct<G)return null;const Yt=_?"Restore limit":`Show all ${ct}`;return C.createElement("div",{className:$e.timeSeriesDisclaimer},!_&&C.createElement("span",{className:$e.warningMessage},C.createElement(Ds.I,{title:(0,ni.t)("grafana-scenes.components.viz-panel-series-limit.warning-message","Showing only {{seriesLimit}} series",{seriesLimit:G}),name:"exclamation-triangle","aria-hidden":"true"})),C.createElement(uo.m,{content:(0,ni.t)("grafana-scenes.components.viz-panel-series-limit.content-rendering-series-single-panel-impact-performance","Rendering too many series in a single panel may impact performance and make data harder to read.")},C.createElement(bs.$n,{variant:"secondary",size:"sm",onClick:pe},Yt)))}const fs=N=>({timeSeriesDisclaimer:(0,Oe.css)({label:"time-series-disclaimer",display:"flex",alignItems:"center",gap:N.spacing(1)}),warningMessage:(0,Oe.css)({display:"flex",alignItems:"center",gap:N.spacing(.5),color:N.colors.warning.main,fontSize:N.typography.bodySmall.fontSize})});var yo=function(N){(0,C.useEffect)(N,[])};const lo=yo;function Ha(){var N;const _=(0,C.useRef)(void 0);return(N=_.current)!=null||(_.current=(0,Wt.uniqueId)()),_.current}const zo=C.forwardRef(({children:N,onLoad:_,onChange:G,className:pe,...$e},ct)=>{const Yt=Ha(),{hideEmpty:In}=(0,Jr.of)(vs),[br,Ir]=(0,C.useState)(!1),[Wr,Gr]=(0,C.useState)(!1),pi=(0,C.useRef)(null);return(0,C.useImperativeHandle)(ct,()=>pi.current),lo(()=>{zo.addCallback(Yt,Zi=>{!br&&Zi.isIntersecting&&(Ir(!0),_?.()),Gr(Zi.isIntersecting),G?.(Zi.isIntersecting)});const Ri=pi.current;return Ri&&zo.observer.observe(Ri),()=>{Ri&&zo.observer.unobserve(Ri),delete zo.callbacks[Yt],Object.keys(zo.callbacks).length===0&&zo.observer.disconnect()}}),C.createElement("div",{id:Yt,ref:pi,className:`${In} ${pe}`,...$e},br?C.createElement(Fs.Provider,{value:Wr},N):(0,ni.t)("grafana-scenes.components.lazy-loader.placeholder","\xA0"))});function vs(){return{hideEmpty:(0,Oe.css)({"&:empty":{display:"none"}})}}zo.displayName="LazyLoader",zo.callbacks={},zo.addCallback=(N,_)=>zo.callbacks[N]=_,zo.observer=new IntersectionObserver(N=>{for(const _ of N)typeof zo.callbacks[_.target.id]=="function"&&zo.callbacks[_.target.id](_)},{rootMargin:"100px"});const Fs=C.createContext(!0);function Ms(){return C.useContext(Fs)}function to({model:N}){var _;const{title:G,options:pe,fieldConfig:$e,_pluginLoadError:ct,displayMode:Yt,hoverHeader:In,showMenuAlways:br,hoverHeaderOffset:Ir,menu:Wr,headerActions:Gr,titleItems:pi,seriesLimit:Ri,seriesLimitShowAll:Zi,description:ia,collapsible:Fa,collapsed:Ba,_renderCounter:Va=0}=N.useState(),[Ra,{width:Ya,height:Ao}]=Ga(),Co=(0,C.useMemo)(()=>(0,be.J7)(),[]),ao=(0,C.useCallback)(()=>{N.state.key&&Co.publish(new Pa.Tp({panelId:N.getPathId()}))},[N,Co]),$o=(0,C.useMemo)(()=>(0,Wt.debounce)(ao,100,{leading:!0,trailing:!1}),[ao]),ko=(0,C.useMemo)(()=>N.getProfiler(),[N]),Mo=performance.now(),ds=C.useRef(null);(0,C.useLayoutEffect)(()=>{if(ko){const zs=ko.onSimpleRenderStart(Mo);ds.current=zs||null}}),(0,C.useEffect)(()=>{if(ds.current){const zs=performance.now(),hl=zs-Mo;ds.current(zs,hl),ds.current=null}});const po=N.getPlugin(),{dragClass:Qo,dragClassCancel:Fo}=ls(N),Yo=xo(N),Ro=_o.getData(N),jo=Ro.useState(),ss=Ho(jo.data,Ri,Zi),La=N.applyFieldConfig(ss),Lo=_o.getTimeRange(N).getTimeZone(),Es=N.getTimeRange(La),ou=Ms();(0,C.useEffect)(()=>{Ro.isInViewChanged&&Ro.isInViewChanged(ou)},[ou,Ro]);const hs=N.interpolate(G,void 0,"text"),Eo=(0,Jr.of)(Ns);if(!po)return C.createElement("div",null,C.createElement(ni.x6,{i18nKey:"grafana-scenes.components.viz-panel-renderer.loading-plugin-panel"},"Loading plugin panel..."));if(!po.panel)return C.createElement("div",null,C.createElement(ni.x6,{i18nKey:"grafana-scenes.components.viz-panel-renderer.panel-plugin-has-no-panel-component"},"Panel plugin has no panel component"));const ns=po.panel;Ro&&Ro.setContainerWidth&&Ro.setContainerWidth(Math.round(Ya));let us=[];pi&&(Array.isArray(pi)?us=us.concat(pi.map(zs=>C.createElement(zs.Component,{model:zs,key:`${zs.state.key}`}))):$r(pi)?us.push(C.createElement(pi.Component,{model:pi})):us.push(pi)),Ri&&us.push(C.createElement(io,{key:"series-limit",data:jo.data,seriesLimit:Ri,showAll:Zi,onShowAllSeries:()=>N.setState({seriesLimitShowAll:!Zi})})),N.state.$timeRange&&us.push(C.createElement(N.state.$timeRange.Component,{model:N.state.$timeRange,key:N.state.key})),La.alertState&&us.push(C.createElement(uo.m,{content:(_=La.alertState.state)!=null?_:"unknown",key:`alert-states-icon-${N.state.key}`},C.createElement(Do.NR.TitleItem,{className:(0,Oe.cx)({[Eo.ok]:La.alertState.state===ja.O.OK,[Eo.pending]:La.alertState.state===ja.O.Pending,[Eo.alerting]:La.alertState.state===ja.O.Alerting})},C.createElement(Ds.I,{name:La.alertState.state==="alerting"?"heart-break":"heart",className:"panel-alert-icon",size:"md"}))));let ys;Wr&&(ys=C.createElement(Wr.Component,{model:Wr}));let ws;Gr&&(Array.isArray(Gr)?ws=C.createElement(C.Fragment,null,Gr.map(zs=>C.createElement(zs.Component,{model:zs,key:`${zs.state.key}`}))):$r(Gr)?ws=C.createElement(Gr.Component,{model:Gr}):ws=Gr);const Gs=La,Qu=Ro.isDataReadyToDisplay?Ro.isDataReadyToDisplay():!0,dl=N.getPanelContext(),Xf=N.getLegacyPanelId();return C.createElement("div",{className:ro},C.createElement("div",{ref:Ra,className:Ls,"data-viz-panel-key":N.state.key},Ya>0&&Ao>0&&C.createElement(Do.NR,{title:hs,description:ia?.trim()?N.getDescription:void 0,loadingState:Gs.state,statusMessage:oo(Gs,ct),statusMessageOnClick:N.onStatusMessageClick,width:Ya,height:Ao,selectionId:N.state.key,displayMode:Yt,titleItems:us,dragClass:Qo,actions:ws,dragClassCancel:Fo,padding:po.noPadding?"none":"md",menu:ys,onCancelQuery:N.onCancelQuery,onFocus:ao,onMouseEnter:ao,onMouseMove:$o,onDragStart:zs=>{var hl;(hl=Yo.onDragStart)==null||hl.call(Yo,zs,N)},showMenuAlways:br,...Fa?{collapsible:!!Fa,collapsed:Ba,onToggleCollapse:N.onToggleCollapse}:{hoverHeader:In,hoverHeaderOffset:Ir}},(zs,hl)=>C.createElement(C.Fragment,null,C.createElement(fo.Xw,{dependencies:[po,Gs]},C.createElement(Oo.a,{meta:po.meta},C.createElement(Zo.XF,{value:dl},Qu&&C.createElement(ns,{id:Xf,data:Gs,title:G,timeRange:Es,timeZone:Lo,options:pe,fieldConfig:$e,transparent:Yt==="transparent",width:zs,height:hl,renderCounter:Va,replaceVariables:N.interpolate,onOptionsChange:N.onOptionsChange,onFieldConfigChange:N.onFieldConfigChange,onChangeTimeRange:N.onTimeRangeChange,eventBus:dl.eventBus}))))))))}function Ho(N,_,G){return(0,C.useMemo)(()=>!N?.series||!_||G?N:{...N,series:N.series.slice(0,_)},[N,_,G])}function ls(N){var _,G;const pe=_o.getLayout(N),$e=pe?.isDraggable();return!pe||!$e||$a(N,pe)?{dragClass:"",dragClassCancel:""}:{dragClass:(_=pe.getDragClass)==null?void 0:_.call(pe),dragClassCancel:(G=pe?.getDragClassCancel)==null?void 0:G.call(pe)}}function xo(N){var _,G;const pe=_o.getLayout(N);return(G=(_=pe?.getDragHooks)==null?void 0:_.call(pe))!=null?G:{}}function $a(N,_){let G=N;for(;G&&G!==_;){if("isDraggable"in G.state&&G.state.isDraggable===!1||"repeatSourceKey"in G.state&&G.state.repeatSourceKey)return!0;G=G.parent}return!1}function oo(N,_){if(_)return _;let G=N.error?N.error.message:void 0;return N.errors&&(G=N.errors.map(pe=>pe.message).join(", ")),G}const ro=(0,Oe.css)({position:"relative",width:"100%",height:"100%"}),Ls=(0,Oe.css)({position:"absolute",width:"100%",height:"100%"}),Ns=N=>({ok:(0,Oe.css)({color:N.colors.success.text}),pending:(0,Oe.css)({color:N.colors.warning.text}),alerting:(0,Oe.css)({color:N.colors.error.text})});var qo=u(83340),Go=u(4575),gs=u(57866),Bo=u(36638),tu=u(49256);const vo="hideSeriesFrom",hu=(0,qo.ZW)(vo);function es(N,_,G,pe){const{overrides:$e}=G,ct=N,Yt=$e.findIndex(hu);if(Yt<0){if(_===tu.B.ToggleSelection){const pi=qu([ct,...fc($e,pe)]);return{...G,overrides:[...G.overrides,pi]}}const Wr=Jl(pe,ct),Gr=qu(Wr);return{...G,overrides:[...G.overrides,Gr]}}const In=Array.from($e),[br]=In.splice(Yt,1);if(_===tu.B.ToggleSelection){let Wr=cu(br);const Gr=fc(In,pe);if(Gr.length>0&&(Wr=Wr.filter(Ri=>Gr.indexOf(Ri)<0)),Wr[0]===ct&&Wr.length===1)return{...G,overrides:In};const pi=qu([ct,...Gr]);return{...G,overrides:[...In,pi]}}const Ir=lu(br,ct);return gu(Ir,pe)?{...G,overrides:In}:{...G,overrides:[...In,Ir]}}function qu(N,_=Go.PP.exclude,G){return G=G??{id:"custom.hideFrom",value:{viz:!0,legend:!1,tooltip:!0}},{__systemRef:vo,matcher:{id:gs.Ct.byNames,options:{mode:_,names:N,prefix:_===Go.PP.exclude?"All except:":void 0,readOnly:!0}},properties:[{...G,value:{viz:!0,legend:!1,tooltip:!0}}]}}const lu=(N,_,G=Go.PP.exclude)=>{const pe=N.properties.find(Yt=>Yt.id==="custom.hideFrom"),$e=cu(N),ct=$e.findIndex(Yt=>Yt===_);return ct<0?$e.push(_):$e.splice(ct,1),qu($e,G,pe)},cu=N=>{var _;const G=(_=N.matcher.options)==null?void 0:_.names;return Array.isArray(G)?[...G]:[]},gu=(N,_)=>cu(N).length===Jl(_).length,Jl=(N,_)=>{const G=new Set;for(const pe of N)for(const $e of pe.fields){if($e.type!==wa.PU.number)continue;const ct=(0,Xn.Ct)($e,pe,N);ct!==_&&G.add(ct)}return Array.from(G)},fc=(N,_)=>{var G;let pe=[];for(const $e of N){const ct=$e.properties.find(Yt=>Yt.id==="custom.hideFrom");if(ct!==void 0&&((G=ct.value)==null?void 0:G.legend)===!0){const In=Bo.sJ.get($e.matcher.id).get($e.matcher.options);for(const br of _)for(const Ir of br.fields){if(Ir.type!==wa.PU.number)continue;const Wr=(0,Xn.Ct)(Ir,br,_);In(Ir,br,_)&&pe.push(Wr)}}}return pe};var uf=u(64394);const Bf=(N,_,G)=>{const{overrides:pe}=G,$e=G.overrides.findIndex(Ir=>Ir.matcher.id===gs.Ct.byName&&Ir.matcher.options===N);if($e<0)return{...G,overrides:[...G.overrides,Ec(N,_)]};const ct=Array.from(pe),Yt=ct[$e],In=Yt.properties.findIndex(Ir=>Ir.id==="color");if(In<0)return ct[$e]={...Yt,properties:[...Yt.properties,dc(_)]},{...G,overrides:ct};const br=Array.from(Yt.properties);return br[In]=dc(_),ct[$e]={...Yt,properties:br},{...G,overrides:ct}},Ec=(N,_)=>({matcher:{id:gs.Ct.byName,options:N},properties:[dc(_)]}),dc=N=>({id:"color",value:{mode:uf.Y.Fixed,fixedColor:N}});var Yc=u(21275);class $u extends Rt{constructor(_){super({..._,sync:_.sync||Yc.yV.Off}),this.getEventsBus=G=>{if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return new Fl(this.parent,G)}}getEventsScope(){if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return this.state.key}}class Fl{constructor(_,G){this._source=_,this._eventsOrigin=G}publish(_){_.origin=this,this._eventsOrigin.publishEvent(_,!0)}getStream(_){return new Vn.c(G=>{const pe=ct=>{G.next(ct)},$e=this._source.subscribeToEvent(_,pe);return()=>$e.unsubscribe()})}subscribe(_,G){return this.getStream(_).pipe().subscribe(G)}removeAllListeners(){}newScopedBus(_,G){throw new Error("For internal use only")}}function wc(N){return _o.findObject(N,_=>_ instanceof $u)}const ml=class gE extends Rt{constructor({enabled:_=!1}){super({enabled:_}),this.timerId=void 0,this._activationHandler=()=>(this.state.enabled&&this.enable(),()=>{window.clearInterval(this.timerId),this.timerId=void 0}),this.addActivationHandler(this._activationHandler)}enable(){window.clearInterval(this.timerId),this.timerId=void 0,this.timerId=window.setInterval(()=>{const _=_o.findAllObjects(this.getRoot(),G=>G instanceof Tu);for(const G of _)G.forceRender()},gE.REFRESH_RATE),this.setState({enabled:!0})}disable(){window.clearInterval(this.timerId),this.timerId=void 0,this.setState({enabled:!1})}get isEnabled(){return this.state.enabled}};ml.REFRESH_RATE=100;let jl=ml;class js extends Rt{constructor(_={}){super({..._}),this._isTracking=!1,this._activeQueries=new Map,this.addActivationHandler(()=>this._onActivate())}_onActivate(){var _,G;let pe;try{pe=_o.getAncestor(this,Tu)}catch(ct){Vt("VizPanelRenderProfiler","Failed to find VizPanel ancestor",ct);return}if(!pe){Vt("VizPanelRenderProfiler","Not attached to a VizPanel");return}if(!pe.state.key){Vt("VizPanelRenderProfiler","Panel has no key, skipping tracking");return}this._panelKey=pe.state.key,this._panelId=String(pe.getLegacyPanelId()),this._pluginId=pe.state.pluginId;const $e=pe.getPlugin();return this._pluginVersion=(G=(_=$e?.meta)==null?void 0:_.info)==null?void 0:G.version,this._subs.add(pe.subscribeToState((ct,Yt)=>{this._handlePanelStateChange(pe,ct,Yt)})),()=>{this._cleanup()}}_handlePanelStateChange(_,G,pe){G.pluginId!==pe.pluginId&&this._onPluginChange(_,G.pluginId)}onQueryStarted(_,G,pe){if(!this._panelKey)return null;this._activeQueries.set(pe,{entry:G,startTime:_});const $e=qn("query");return hi().notifyPanelOperationStart({operationId:$e,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,pluginVersion:this._pluginVersion,operation:"query",timestamp:_,metadata:{queryId:pe,queryType:G.type}}),(ct,Yt)=>{if(!this._panelKey)return;const In=this._activeQueries.get(pe);if(!In)return;const br=ct-In.startTime;this._activeQueries.delete(pe),hi().notifyPanelOperationComplete({operationId:$e,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,pluginVersion:this._pluginVersion,operation:"query",timestamp:ct,duration:br,metadata:{queryId:pe,queryType:G.type},error:Yt?Yt?.message||String(Yt)||"Unknown error":void 0})}}onPluginLoadStart(_){if(!this._panelKey){let pe;try{pe=_o.getAncestor(this,Tu)}catch{return null}pe&&!this._panelKey&&pe.state.key&&(this._panelKey=pe.state.key,this._panelId=String(pe.getLegacyPanelId()),this._pluginId=_)}if(!this._panelKey)return null;this._isTracking||this._startTracking(),this._loadPluginStartTime=performance.now();const G=qn("pluginLoad");return hi().notifyPanelOperationStart({operationId:G,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"plugin-load",timestamp:this._loadPluginStartTime,metadata:{pluginId:_}}),(pe,$e=!1)=>{if(!this._panelKey||!this._loadPluginStartTime)return;const ct=performance.now()-this._loadPluginStartTime;hi().notifyPanelOperationComplete({operationId:G,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"plugin-load",timestamp:performance.now(),duration:ct,metadata:{pluginId:this._pluginId,fromCache:$e,pluginLoadTime:ct}}),this._loadPluginStartTime=void 0}}onFieldConfigStart(_){if(!this._panelKey)return null;this._applyFieldConfigStartTime=_;const G=qn("fieldConfig");return hi().notifyPanelOperationStart({operationId:G,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"fieldConfig",timestamp:this._applyFieldConfigStartTime,metadata:{}}),(pe,$e,ct)=>{if(!this._panelKey||!this._applyFieldConfigStartTime)return;const Yt=pe-this._applyFieldConfigStartTime;hi().notifyPanelOperationComplete({operationId:G,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"fieldConfig",timestamp:pe,duration:Yt,metadata:{}}),this._applyFieldConfigStartTime=void 0}}_getPanelInfo(){let _;try{_=_o.getAncestor(this,Tu)}catch{}let G=_?.state.title||this._panelKey||"No-key panel";return G.length>30&&(G=G.substring(0,27)+"..."),`VizPanelRenderProfiler [${G}]`}onSimpleRenderStart(_){if(!this._panelKey)return;const G=qn("render");return hi().notifyPanelOperationStart({operationId:G,panelId:this._panelId||"unknown",panelKey:this._panelKey,pluginId:this._pluginId||"unknown",pluginVersion:this._pluginVersion,operation:"render",timestamp:_,metadata:{}}),(pe,$e)=>{this._panelKey&&hi().notifyPanelOperationComplete({operationId:G,panelId:this._panelId||"unknown",panelKey:this._panelKey,pluginId:this._pluginId||"unknown",pluginVersion:this._pluginVersion,operation:"render",duration:$e,timestamp:pe,metadata:{}})}}_onPluginChange(_,G){var pe,$e;this._pluginId=G;const ct=_.getPlugin();this._pluginVersion=($e=(pe=ct?.meta)==null?void 0:pe.info)==null?void 0:$e.version,Vt(this._getPanelInfo(),`Plugin changed to ${G}`)}_startTracking(){!this._panelKey||!this._pluginId||this._isTracking||(this._isTracking=!0)}_cleanup(){this._activeQueries.clear(),this._isTracking=!1,Vt(this._getPanelInfo(),"Cleaned up")}onDataTransformStart(_,G,pe){if(!this._panelKey)return null;const $e=qn("transform");return hi().notifyPanelOperationStart({operationId:$e,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"transform",timestamp:_,metadata:{transformationId:G,transformationCount:pe.transformationCount,seriesTransformationCount:pe.seriesTransformationCount,annotationTransformationCount:pe.annotationTransformationCount}}),(ct,Yt,In,br)=>{this._panelKey&&hi().notifyPanelOperationComplete({operationId:$e,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"transform",timestamp:ct,duration:Yt,metadata:{transformationId:G,transformationCount:pe.transformationCount,seriesTransformationCount:pe.seriesTransformationCount,annotationTransformationCount:pe.annotationTransformationCount,success:In,error:br?.error||(In?void 0:"Transform operation failed")}})}}}var Xo=u(2197),Ou=u(44240),gl=u(93031),Ol=u(69850);class Mu{constructor(){this._resultsMap=new Map,this._prevLayers=[]}getMergedStream(_){hc(_,this._prevLayers)&&(this._resultsMap=new Map,this._prevLayers=_);const G=_.map($e=>$e.getResultsStream()),pe=[];for(const $e of _)pe.push($e.activate());return(0,Ou.h)(G).pipe((0,gl.U)(),(0,Yi.p)($e=>this._resultsMap.get($e.origin.state.key)!==$e),(0,Qr.T)($e=>(this._resultsMap.set($e.origin.state.key,$e),this._resultsMap.values())),(0,Ol.j)(()=>{pe.forEach($e=>$e())}))}}function hc(N,_){if(N.length!==_.length)return!0;for(let G=0;G<N.length;G++)if(N[G]!==_[G])return!0;return!1}class xc extends Rt{constructor(){super(...arguments),this.isDataLayer=!0,this._results=new P.m(1),this._dataLayersMerger=new Mu}subscribeToAllLayers(_){_.length>0?this.querySub=this._dataLayersMerger.getMergedStream(_).subscribe(this._onLayerUpdateReceived.bind(this)):(this._results.next({origin:this,data:bt}),this.setStateHelper({data:bt}))}_onLayerUpdateReceived(_){var G;let pe=[];for(const ct of _)(G=ct.data)!=null&&G.series&&(pe=pe.concat(ct.data.series));const $e={...bt,series:pe};this._results.next({origin:this,data:$e}),this.setStateHelper({data:$e})}getResultsStream(){return this._results}cancelQuery(){var _;(_=this.querySub)==null||_.unsubscribe()}setStateHelper(_){Ni(this,_)}}class Zl extends xc{constructor(_){var G,pe;super({name:(G=_.name)!=null?G:"Data layers",layers:(pe=_.layers)!=null?pe:[]}),this.addActivationHandler(()=>this._onActivate())}_onActivate(){return this._subs.add(this.subscribeToState((_,G)=>{var pe;_.layers!==G.layers&&((pe=this.querySub)==null||pe.unsubscribe(),this.subscribeToAllLayers(_.layers))})),this.subscribeToAllLayers(this.state.layers),()=>{var _;(_=this.querySub)==null||_.unsubscribe()}}}Zl.Component=({model:N})=>{const{layers:_}=N.useState();return C.createElement(C.Fragment,null,_.map(G=>C.createElement(G.Component,{model:G,key:G.state.key})))};class Bl extends Rt{constructor(_){super(_),this._results=new P.m(1),this._variableDependency=new mc(this,{statePaths:["transformations"],onReferencedVariableValueChanged:()=>this.reprocessTransformations()}),this.addActivationHandler(()=>this.activationHandler())}activationHandler(){const _=this.getSourceData();return this._subs.add(_.subscribeToState(G=>this.transform(G.data))),_.state.data&&this.transform(_.state.data),()=>{this._transformSub&&this._transformSub.unsubscribe()}}getSourceData(){if(this.state.$data){if(this.state.$data instanceof Zl)throw new Error("SceneDataLayerSet can not be used as data provider for SceneDataTransformer.");return this.state.$data}if(!this.parent||!this.parent.parent)throw new Error("SceneDataTransformer must either have $data set on it or have a parent.parent with $data");return _o.getData(this.parent.parent)}setContainerWidth(_){this.state.$data&&this.state.$data.setContainerWidth&&this.state.$data.setContainerWidth(_)}isDataReadyToDisplay(){const _=this.getSourceData();return _.isDataReadyToDisplay?_.isDataReadyToDisplay():!0}reprocessTransformations(){this.transform(this.getSourceData().state.data,!0)}_calculateTransformationMetrics(_,G){const pe=G.length,$e=G.filter(Yt=>"options"in Yt||"topic"in Yt?Yt.topic==null||Yt.topic===Fe.QR.Series:!0).length,ct=G.filter(Yt=>"options"in Yt||"topic"in Yt?Yt.topic===Fe.QR.Annotations:!1).length;return{transformationCount:pe,seriesTransformationCount:$e,annotationTransformationCount:ct}}cancelQuery(){var _,G;(G=(_=this.getSourceData()).cancelQuery)==null||G.call(_)}getResultsStream(){return this._results}clone(_){const G=super.clone(_);return this._prevDataFromSource&&(G._prevDataFromSource=this._prevDataFromSource),G}isInViewChanged(_){var G,pe;(pe=(G=this.state.$data)==null?void 0:G.isInViewChanged)==null||pe.call(G,_)}bypassIsInViewChanged(_){var G,pe;(pe=(G=this.state.$data)==null?void 0:G.bypassIsInViewChanged)==null||pe.call(G,_)}haveAlreadyTransformedData(_){if(!this._prevDataFromSource)return!1;if(_===this._prevDataFromSource)return!0;const{series:G,annotations:pe}=this._prevDataFromSource;return _.series===G&&_.annotations===pe?(this.state.data&&_.state!==this.state.data.state&&this.setState({data:{...this.state.data,state:_.state}}),!0):!1}transform(_,G=!1){var pe;const $e=performance.now(),ct=Ju(this),Yt=performance.now();let In,br=null;if(this.state.transformations.length===0||!_){this._prevDataFromSource=_,this.setState({data:_}),_&&this._results.next({origin:this,data:_});return}if(!G&&this.haveAlreadyTransformedData(_))return;if(ct){In=this.state.transformations.map(Ra=>"id"in Ra?Ra.id:"customTransformation").join("+")||"no-transforms";const Va=this._calculateTransformationMetrics(_,this.state.transformations);br=ct.onDataTransformStart($e,In,Va)}const Ir=this._interpolateVariablesInTransformationConfigs(_),Wr=this._filterAndPrepareTransformationsByTopic(Ir,Ba=>"options"in Ba||"topic"in Ba?Ba.topic==null||Ba.topic===Fe.QR.Series:!0),Gr=this._filterAndPrepareTransformationsByTopic(Ir,Ba=>"options"in Ba||"topic"in Ba?Ba.topic===Fe.QR.Annotations:!1);this._transformSub&&this._transformSub.unsubscribe();const pi={interpolate:(Ba,Va)=>{var Ra;return _o.interpolate(this,Ba,{...(Ra=_.request)==null?void 0:Ra.scopedVars,...Va})}},Ri=(0,Xo.m)(Wr,_.series,pi),Zi=(0,Xo.m)(Gr,(pe=_.annotations)!=null?pe:[]);let ia=[],Fa=[];this._transformSub=(0,oe.p)([Ri,Zi]).pipe((0,Qr.T)(Ba=>(Ba.forEach(Va=>{var Ra;for(const Ya of Va)((Ra=Ya.meta)==null?void 0:Ra.dataTopic)===Fe.QR.Annotations?Fa.push(Ya):ia.push(Ya)}),{..._,series:ia,annotations:Fa})),(0,Xt.W)(Ba=>{var Va;const Ra=performance.now(),Ya=Ra-Yt;br&&br(Ra,Ya,!1,{error:Ba.message||Ba}),console.error("Error transforming data: ",Ba);const Ao=((Va=this.getSourceData().state.data)==null?void 0:Va.errors)||[],Co=(0,dt.u)(Ba);Co.message=`Error transforming data: ${Co.message}`;const ao={..._,state:Y.Gu.Error,errors:[...Ao,Co]};return(0,Nn.of)(ao)})).subscribe(Ba=>{var Va;const Ra=performance.now(),Ya=Ra-Yt;br&&br(Ra,Ya,!0,{outputSeriesCount:Ba.series.length,outputAnnotationsCount:((Va=Ba.annotations)==null?void 0:Va.length)||0}),this.setState({data:Ba}),this._results.next({origin:this,data:Ba}),this._prevDataFromSource=_})}_interpolateVariablesInTransformationConfigs(_){var G;const pe=this.state.transformations;return this._variableDependency.getNames().size===0?pe:pe.every(ct=>typeof ct=="object")?JSON.parse(_o.interpolate(this,JSON.stringify(pe),(G=_.request)==null?void 0:G.scopedVars)):pe.map(ct=>{var Yt;return typeof ct=="object"?JSON.parse(_o.interpolate(this,JSON.stringify(ct),(Yt=_.request)==null?void 0:Yt.scopedVars)):ct})}_filterAndPrepareTransformationsByTopic(_,G){return _.filter(G).map(pe=>"operator"in pe?pe.operator:pe)}}class Tu extends Rt{constructor(_){var G;super({options:{},fieldConfig:{defaults:{},overrides:[]},title:(0,ni.t)("grafana-scenes.components.viz-panel.title.title","Title"),pluginId:"timeseries",_renderCounter:0,..._}),this._variableDependency=new mc(this,{statePaths:["title","options","fieldConfig"]}),this._structureRev=0,this.onTimeRangeChange=pe=>{_o.getTimeRange(this).onTimeRangeChange({raw:{from:(0,K.yT)(pe.from),to:(0,K.yT)(pe.to)},from:(0,K.yT)(pe.from),to:(0,K.yT)(pe.to)})},this.getTimeRange=pe=>{const $e=_o.findObject(this,In=>In instanceof jl),ct=_o.getTimeRange(this);if($e instanceof jl&&$e.isEnabled)return De(ct.state.from,ct.state.to,ct.getTimeZone(),ct.state.fiscalYearStartMonth,ct.state.UNSAFE_nowDelay,ct.state.weekStart);const Yt=this.getPlugin();return Yt&&!Yt.meta.skipDataQuery&&pe&&pe.timeRange?pe.timeRange:ct.state.value},this.onTitleChange=pe=>{this.setState({title:pe})},this.onDescriptionChange=pe=>{this.setState({description:pe})},this.onDisplayModeChange=pe=>{this.setState({displayMode:pe})},this.onToggleCollapse=pe=>{this.setState({collapsed:pe})},this.onOptionsChange=(pe,$e=!1,ct=!1)=>{var Yt;const{fieldConfig:In,options:br}=this.state,Ir=$e?pe:(0,Wt.mergeWith)((0,Wt.cloneDeep)(br),pe,(Gr,pi,Ri,Zi)=>{if((0,Wt.isArray)(pi))return pi;if(Gr!==pi&&typeof pi>"u"){Zi[Ri]=pi;return}}),Wr=(0,Ht.F)({plugin:this._plugin,currentOptions:Ir,currentFieldConfig:In,isAfterPluginChange:ct});this.setState({options:Wr.options,_renderCounter:((Yt=this.state._renderCounter)!=null?Yt:0)+1})},this.onFieldConfigChange=(pe,$e)=>{const{fieldConfig:ct,options:Yt}=this.state,In=$e?pe:(0,Wt.merge)((0,Wt.cloneDeep)(ct),pe),br=(0,Ht.F)({plugin:this._plugin,currentOptions:Yt,currentFieldConfig:In,isAfterPluginChange:!1});this._dataWithFieldConfig=void 0,this.setState({fieldConfig:br.fieldConfig})},this.interpolate=(pe,$e,ct)=>_o.interpolate(this,pe,$e,ct),this.getDescription=()=>{this.publishEvent(new ie({origin:this,interaction:"panel-description-shown"}),!0);const{description:pe}=this.state;if(pe){const $e=this.interpolate(pe);return(0,Hn.G)($e)}return""},this.onCancelQuery=()=>{var pe;this.publishEvent(new ie({origin:this,interaction:"panel-cancel-query-clicked"}),!0);const $e=_o.getData(this);(pe=$e.cancelQuery)==null||pe.call($e)},this.onStatusMessageClick=()=>{this.publishEvent(new ie({origin:this,interaction:"panel-status-message-clicked"}),!0)},this._onSeriesColorChange=(pe,$e)=>{this.onFieldConfigChange(Bf(pe,$e,this.state.fieldConfig))},this._onSeriesVisibilityChange=(pe,$e)=>{this._dataWithFieldConfig&&this.onFieldConfigChange(es(pe,$e,this.state.fieldConfig,this._dataWithFieldConfig.series),!0)},this._onInstanceStateChange=pe=>{this._panelContext&&(this._panelContext={...this._panelContext,instanceState:pe}),this.setState({_pluginInstanceState:pe})},this._onToggleLegendSort=pe=>{const $e=this.state.options.legend;if(!$e)return;let ct=$e.sortDesc,Yt=$e.sortBy;pe!==Yt&&(ct=void 0),ct===!1?(Yt=void 0,ct=void 0):(ct=!ct,Yt=pe),this.onOptionsChange({...this.state.options,legend:{...$e,sortBy:Yt,sortDesc:ct}},!0)},this.addActivationHandler(()=>{this._onActivate()}),(G=_.menu)==null||G.addActivationHandler(()=>{this.publishEvent(new ie({origin:this,interaction:"panel-menu-shown"}),!0)})}getProfiler(){if(this.state.$behaviors){for(const _ of this.state.$behaviors)if(_ instanceof js)return _}}_onActivate(){this._plugin||this._loadPlugin(this.state.pluginId)}forceRender(){var _;this.setState({_renderCounter:((_=this.state._renderCounter)!=null?_:0)+1})}async _loadPlugin(_,G,pe,$e){const ct=this.getProfiler(),Yt=R(_);if(Yt){const In=ct?.onPluginLoadStart(_);In?.(Yt,!0),this._pluginLoaded(Yt,G,pe,$e)}else{const{importPanelPlugin:In}=(0,S.o)();try{const br=ct?.onPluginLoadStart(_),Ir=In(_),Wr=_o.getQueryController(this);Wr&&Wr.state.enableProfiling&&Vi(Ir).pipe(Ti({type:`VizPanel/loadPlugin/${_}`,origin:this})).subscribe(()=>{});const Gr=await Ir;br?.(Gr,!1),this._pluginLoaded(Gr,G,pe,$e)}catch(br){this._pluginLoaded(ac(_)),br instanceof Error&&this.setState({_pluginLoadError:br.message})}}}getLegacyPanelId(){var _,G;const pe=(G=(_=this.state.key)==null?void 0:_.split("/"))!=null?G:[];if(pe.length===0)return 0;const $e=pe[pe.length-1],ct=parseInt($e.replace("panel-",""),10);return isNaN(ct)?0:ct}getPathId(){return qg(this)}async _pluginLoaded(_,G,pe,$e){var ct;const{options:Yt,fieldConfig:In,title:br,pluginVersion:Ir,_UNSAFE_customMigrationHandler:Wr}=this.state,Gr={title:br,options:Yt,fieldConfig:In,id:this.getLegacyPanelId(),type:_.meta.id,pluginVersion:Ir};G&&(Gr.options=G),pe&&(Gr.fieldConfig=pe);const pi=this._getPluginVersion(_);Wr?.(Gr,_);const Ri=pi!==Ir||((ct=_.shouldMigrate)==null?void 0:ct.call(_,Gr));_.onPanelMigration&&Ri&&!$e&&(Gr.options=await _.onPanelMigration(Gr));let Zi=this.state.$data;Gr.transformations&&Zi&&(Zi instanceof Bl?Zi.setState({transformations:Gr.transformations}):Zi instanceof Uv&&(Zi.clearParent(),Zi=new Bl({transformations:Gr.transformations,$data:Zi})));const ia=(0,Ht.F)({plugin:_,currentOptions:Gr.options,currentFieldConfig:Gr.fieldConfig,isAfterPluginChange:$e??!1});if(this._plugin=_,this.setState({$data:Zi,options:ia.options,fieldConfig:ia.fieldConfig,pluginVersion:pi,pluginId:_.meta.id}),_.meta.skipDataQuery){const Fa=_o.getTimeRange(this);this._subs.add(Fa.subscribeToState(()=>this.forceRender()))}}_getPluginVersion(_){return _&&_.meta.info.version?_.meta.info.version:pt.$.buildInfo.version}getPlugin(){return this._plugin}getPanelContext(){var _;return(_=this._panelContext)!=null||(this._panelContext=this.buildPanelContext()),this._panelContext}async changePluginType(_,G,pe){var $e,ct;const{options:Yt,fieldConfig:In,pluginId:br}=this.state;this._dataWithFieldConfig=void 0;const Ir=this.state.pluginId!==_;await this._loadPlugin(_,G??{},pe,Ir);const Wr={title:this.state.title,options:this.state.options,fieldConfig:this.state.fieldConfig,id:1,type:_},Gr=(ct=($e=this._plugin)==null?void 0:$e.onPanelTypeChanged)==null?void 0:ct.call($e,Wr,br,Yt,In);Gr&&!(0,Wt.isEmpty)(Gr)&&this.onOptionsChange(Gr,!0,!0)}clearFieldConfigCache(){this._dataWithFieldConfig=void 0}applyFieldConfig(_){var G,pe,$e,ct;const Yt=performance.now(),In=this._plugin,br=this.getProfiler();if(!In||In.meta.skipDataQuery||!_)return bt;if(this._prevData===_&&this._dataWithFieldConfig)return this._dataWithFieldConfig;const Ir=br?.onFieldConfigStart(Yt),Wr=In.dataSupport||{alertStates:!1,annotations:!1},Gr=In.fieldConfigRegistry,pi=(pe=(G=this._dataWithFieldConfig)==null?void 0:G.series)!=null?pe:[],Ri=(0,fr.we)({data:_.series,fieldConfig:this.state.fieldConfig,fieldConfigRegistry:Gr,replaceVariables:this.interpolate,theme:pt.$.theme2,timeZone:($e=_.request)==null?void 0:$e.timezone});return(0,Zr.J3)(Ri,pi,Zr.bW)||this._structureRev++,this._dataWithFieldConfig={..._,structureRev:this._structureRev,series:Ri},this._dataWithFieldConfig.annotations&&(this._dataWithFieldConfig.annotations=(0,fr.we)({data:this._dataWithFieldConfig.annotations,fieldConfig:{defaults:{},overrides:[]},fieldConfigRegistry:Gr,replaceVariables:this.interpolate,theme:pt.$.theme2,timeZone:(ct=_.request)==null?void 0:ct.timezone})),Wr.alertStates||(this._dataWithFieldConfig.alertState=void 0),Wr.annotations||(this._dataWithFieldConfig.annotations=void 0),this._prevData=_,br&&Ir?.(performance.now()),this._dataWithFieldConfig}clone(_){return super.clone({_pluginInstanceState:void 0,_pluginLoadError:void 0,..._})}buildPanelContext(){const _=wc(this),G={eventsScope:_?_.getEventsScope():"__global_",eventBus:_?_.getEventsBus(this):(0,be.J7)(),app:D.Jk.Unknown,sync:()=>_?_.state.sync:gi.y.Off,onSeriesColorChange:this._onSeriesColorChange,onToggleSeriesVisibility:this._onSeriesVisibilityChange,onToggleLegendSort:this._onToggleLegendSort,onInstanceStateChange:this._onInstanceStateChange};return this.state.extendPanelContext&&this.state.extendPanelContext(this,G),G}}Tu.Component=to;function ac(N){const _=new wt.m(()=>null);return _.meta={id:N,name:N,sort:100,type:Ct.QE.panel,module:"",baseUrl:"",info:{author:{name:""},description:"",links:[],logos:{large:"",small:"public/img/grafana_icon.svg"},screenshots:[],updated:"",version:""}},_}function Ju(N){try{const _=_o.getAncestor(N,Tu);if(_)return(_.state.$behaviors||[]).find(pe=>pe instanceof js)}catch{}}var $f=u(2863);let lf;const Cc=new Set;function wf(N){if(N.addActivationHandler(()=>(Cc.add(N),()=>Cc.delete(N))),lf)return;const _=(0,$f.w)();if(!_?.getAdhocFilters){console.log("Failed to patch getAdhocFilters");return}lf=_.getAdhocFilters,_.getAdhocFilters=function(pe){var $e;if(Cc.size===0)return lf.call(_,pe);const ct=(0,dn.l)().getInstanceSettings(pe);if(!ct)return[];for(const Yt of Cc.values())if((($e=Yt.state.datasource)==null?void 0:$e.uid)===ct.uid)return Yt.state.filters;return[]}.bind(_)}function Il(N){var _;for(const G of Cc.values())if(tp(G,(_=G.state.datasource)==null?void 0:_.uid)===N)return G}var id=u(37386);function $l(N){return C.createElement(uo.m,{content:(0,ni.t)("grafana-scenes.utils.loading-indicator.content-cancel-query","Cancel query")},C.createElement(Ds.I,{className:"spin-clockwise",name:"sync",size:"xs",role:"button",onMouseDown:_=>{N.onCancel(_)}}))}function ad(N){const _=(0,Jr.of)(Od),G=(0,Jr.$j)(),pe=N.layout==="vertical",$e=N.isLoading?C.createElement("div",{style:{marginLeft:G.spacing(1),marginTop:"-1px"},"aria-label":Ae.Tp.components.LoadingIndicator.icon},C.createElement($l,{onCancel:Ir=>{var Wr;Ir.preventDefault(),Ir.stopPropagation(),(Wr=N.onCancel)==null||Wr.call(N)}})):null;let ct=null;N.error&&(ct=C.createElement(uo.m,{content:N.error,placement:"bottom"},C.createElement(Ds.I,{className:_.errorIcon,name:"exclamation-triangle"})));let Yt=null;N.description&&(Yt=C.createElement(uo.m,{content:N.description,placement:pe?"top":"bottom"},C.createElement(Ds.I,{className:_.normalIcon,name:"info-circle"})));const In=typeof N.label=="string"?Ae.Tp.pages.Dashboard.SubMenu.submenuItemLabels(N.label):"";let br;return pe?br=C.createElement("label",{className:(0,Oe.cx)(_.verticalLabel,N.className),"data-testid":In,htmlFor:N.htmlFor},N.prefix,N.label,Yt,ct,N.icon&&C.createElement(Ds.I,{name:N.icon,className:_.normalIcon}),$e,N.onRemove&&C.createElement(Is.K,{variant:"secondary",size:"xs",name:"times",onClick:N.onRemove,tooltip:(0,ni.t)("grafana-scenes.utils.controls-label.tooltip-remove","Remove")}),N.suffix):br=C.createElement("label",{className:(0,Oe.cx)(_.horizontalLabel,N.className),"data-testid":In,htmlFor:N.htmlFor},N.prefix,ct,N.icon&&C.createElement(Ds.I,{name:N.icon,className:_.normalIcon}),N.label,Yt,$e,N.suffix),br}const Od=N=>({horizontalLabel:(0,Oe.css)({background:N.isDark?N.colors.background.primary:N.colors.background.secondary,display:"flex",alignItems:"center",padding:N.spacing(0,1),fontWeight:N.typography.fontWeightMedium,fontSize:N.typography.bodySmall.fontSize,height:N.spacing(N.components.height.md),lineHeight:N.spacing(N.components.height.md),borderRadius:`${N.shape.radius.default} 0 0 ${N.shape.radius.default}`,border:`1px solid ${N.components.input.borderColor}`,position:"relative",right:-1,whiteSpace:"nowrap",gap:N.spacing(.5)}),verticalLabel:(0,Oe.css)({display:"flex",alignItems:"center",fontWeight:N.typography.fontWeightMedium,fontSize:N.typography.bodySmall.fontSize,lineHeight:N.typography.bodySmall.lineHeight,whiteSpace:"nowrap",marginBottom:N.spacing(.5),gap:N.spacing(1)}),errorIcon:(0,Oe.css)({color:N.colors.error.text}),normalIcon:(0,Oe.css)({color:N.colors.text.secondary})});function Td(N){const _=N.map(G=>{var pe;return(pe=G.label)!=null?pe:String(G.value)});return G=>Jt(N,_,G)}function Ad(N,_){return N!==""?{value:N,label:_||N}:null}const Uh=()=>!0;function xf({filter:N,model:_}){var G,pe,$e,ct,Yt;const In=(0,Jr.of)(Dl),[br,Ir]=(0,C.useState)([]),[Wr,Gr]=(0,C.useState)([]),[pi,Ri]=(0,C.useState)(!1),[Zi,ia]=(0,C.useState)(!1),[Fa,Ba]=(0,C.useState)(!1),[Va,Ra]=(0,C.useState)(!1),[Ya,Ao]=(0,C.useState)(!1),[Co,ao]=(0,C.useState)(""),[$o,ko]=(0,C.useState)(!1),[Mo,ds]=(0,C.useState)(N.values?N.values.map((Eo,ns)=>{var us;return Ad(Eo,(us=N.valueLabels)==null?void 0:us[ns])}):[]),po=mf(N.operator),Qo=Ad(N.key,N.keyLabel),Fo=Ad(N.value,(G=N.valueLabels)==null?void 0:G[0]),Yo=(0,C.useMemo)(()=>Td(Wr),[Wr]),Ro=_.state.onAddCustomValue,jo=(Eo,{action:ns})=>(ns==="input-change"&&ao(Eo),Eo),ss=Eo=>{var ns,us;const ys=N.operator,ws=Eo.value,Gs={operator:ws};mf(ys)&&!mf(ws)?(Gs.value="",Gs.valueLabels=[""],Gs.values=void 0,ds([])):!mf(ys)&&mf(ws)&&N.value&&(Gs.values=[N.value],ds([{value:N.value,label:(us=(ns=N.valueLabels)==null?void 0:ns[0])!=null?us:N.value}])),_._updateFilter(N,Gs)},La=(0,C.useMemo)(()=>Dp(Yo(Co)),[Yo,Co]),ts={isMulti:!0,value:Mo,components:{Option:Si},hideSelectedOptions:!1,closeMenuOnSelect:!1,openMenuOnFocus:!1,onChange:Eo=>{ds(Eo),Eo.some(ns=>ns.__isNew__)&&ao("")},onBlur:()=>{var Eo,ns;_._updateFilter(N,{value:(ns=(Eo=Mo[0])==null?void 0:Eo.value)!=null?ns:"",values:Mo.map(us=>us.value),valueLabels:Mo.map(us=>us.label)})}},Lo=Lf.find(Eo=>N.operator===Eo.value),Es=C.createElement(Br.l6,{virtualized:!0,allowCustomValue:(pe=_.state.allowCustomValue)!=null?pe:!0,createOptionPosition:Lo?.isRegex?"first":"last",isValidNewOption:Eo=>Eo.trim().length>0,allowCreateWhileLoading:!0,formatCreateLabel:Eo=>`Use custom value: ${Eo}`,disabled:_.state.readOnly,className:(0,Oe.cx)(In.value,Va?In.widthWhenOpen:void 0),width:"auto",value:Fo,filterOption:Uh,placeholder:(0,ni.t)("grafana-scenes.variables.ad-hoc-filter-renderer.value-select.placeholder-select-value","Select value"),options:La,inputValue:Co,onInputChange:jo,onChange:Eo=>{Ro&&Eo.__isNew__?_._updateFilter(N,Ro(Eo,N)):_._updateFilter(N,{value:Eo.value,valueLabels:Eo.label?[Eo.label]:[Eo.value]}),$o!==Eo.__isNew__&&ko(Eo.__isNew__)},isOpen:Va&&!Zi,isLoading:Zi,openMenuOnFocus:!0,onOpenMenu:async()=>{var Eo;ia(!0),Ra(!0);const ns=await _._getValuesFor(N);ia(!1),Gr(ns),$o&&ao((Eo=Fo?.label)!=null?Eo:"")},onCloseMenu:()=>{Ra(!1),ao("")},...po&&ts}),ou=C.createElement(Br.l6,{key:`${Zi?"loading":"loaded"}`,disabled:_.state.readOnly,className:(0,Oe.cx)(In.key,Fa?In.widthWhenOpen:void 0),width:"auto",allowCustomValue:($e=_.state.allowCustomValue)!=null?$e:!0,createOptionPosition:Lo?.isRegex?"first":"last",value:Qo,placeholder:(0,ni.t)("grafana-scenes.variables.ad-hoc-filter-renderer.key-select.placeholder-select-label","Select label"),options:Dp(br),onChange:Eo=>{_._updateFilter(N,{key:Eo.value,keyLabel:Eo.label,value:"",valueLabels:[""],values:void 0}),ds([])},autoFocus:N.key==="",isOpen:Fa&&!pi,isLoading:pi,onOpenMenu:async()=>{Ba(!0),Ri(!0);const Eo=await _._getKeys(N.key);Ri(!1),Ir(Eo)},onCloseMenu:()=>{Ba(!1)},onBlur:()=>{N.key===""&&_._removeFilter(N)},openMenuOnFocus:!0}),hs=C.createElement(Br.l6,{className:(0,Oe.cx)(In.operator,{[In.widthWhenOpen]:Ya}),value:N.operator,disabled:_.state.readOnly,options:_._getOperators(),onChange:ss,onOpenMenu:()=>{Ao(!0)},onCloseMenu:()=>{Ao(!1)}});if(_.state.layout==="vertical")if(N.key){const Eo=C.createElement(ad,{layout:"vertical",label:(ct=N.key)!=null?ct:"",onRemove:()=>_._removeFilter(N)});return C.createElement(id.D,{label:Eo,"data-testid":`AdHocFilter-${N.key}`,className:In.field},C.createElement("div",{className:In.wrapper},hs,Es))}else return C.createElement(id.D,{label:(0,ni.t)("grafana-scenes.variables.ad-hoc-filter-renderer.label-select-label","Select label"),"data-testid":`AdHocFilter-${N.key}`,className:In.field},ou);return C.createElement("div",{className:In.wrapper,"data-testid":`AdHocFilter-${N.key}`},ou,hs,Es,C.createElement(bs.$n,{variant:"secondary","aria-label":(0,ni.t)("grafana-scenes.variables.ad-hoc-filter-renderer.aria-label-remove-filter","Remove filter"),title:(0,ni.t)("grafana-scenes.variables.ad-hoc-filter-renderer.title-remove-filter","Remove filter"),className:In.removeButton,icon:"times","data-testid":`AdHocFilter-remove-${(Yt=N.key)!=null?Yt:""}`,onClick:()=>_._removeFilter(N)}))}const Dl=N=>({field:(0,Oe.css)({marginBottom:0}),wrapper:(0,Oe.css)({display:"flex","&:first-child":{"> :first-child":{borderBottomLeftRadius:0,borderTopLeftRadius:0}},"> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:0,"&:hover":{zIndex:1},"&:focus-within":{zIndex:2}}}),widthWhenOpen:(0,Oe.css)({minWidth:N.spacing(16)}),value:(0,Oe.css)({flexBasis:"content",flexShrink:1,minWidth:"90px"}),key:(0,Oe.css)({flexBasis:"content",minWidth:"90px",flexShrink:1}),operator:(0,Oe.css)({flexShrink:0,flexBasis:"content"}),removeButton:(0,Oe.css)({paddingLeft:N.spacing(3/2),paddingRight:N.spacing(3/2),borderLeft:"none",width:N.spacing(3),marginRight:N.spacing(1),boxSizing:"border-box",position:"relative",left:"1px"})});function $c({model:N,addFilterButtonText:_}){const{_wip:G}=N.useState(),pe=(0,Jr.of)(Jc);return G?C.createElement(xf,{filter:G,model:N}):C.createElement(bs.$n,{variant:"secondary",icon:"plus",title:(0,ni.t)("grafana-scenes.variables.ad-hoc-filter-builder.title-add-filter","Add filter"),"aria-label":(0,ni.t)("grafana-scenes.variables.ad-hoc-filter-builder.aria-label-add-filter","Add filter"),"data-testid":"AdHocFilter-add",onClick:()=>N._addWip(),className:pe.addButton},_)}const Jc=N=>({addButton:(0,Oe.css)({"&:first-child":{borderBottomLeftRadius:0,borderTopLeftRadius:0}})});class cf{constructor(_){this._variable=_}getKey(){return`var-${this._variable.state.name}`}getKeys(){return[this.getKey()]}getUrlState(){const _=this._variable.state.filters,G=this._variable.state.originFilters;let pe=[];return _.length===0&&G?.length===0?{[this.getKey()]:[""]}:(_.length&&pe.push(..._.filter(Zh).filter($e=>!$e.hidden).map($e=>Ul($e).map(Dg).join("|"))),G?.length&&pe.push(...G?.filter(Zh).filter($e=>!$e.hidden&&$e.origin&&$e.restorable).map($e=>Ul($e).map(Dg).join("|").concat(`#${$e.origin}#restorable`))),{[this.getKey()]:pe.length?pe:[""]})}updateFromUrl(_){const G=_[this.getKey()];if(G==null)return;const pe=od(G),$e=rl([...this._variable.state.originFilters||[]],pe);this._variable.setState({filters:pe.filter(ct=>!ct.origin),originFilters:$e})}}function rl(N,_){const G=[...N];for(let pe=0;pe<_.length;pe++){const $e=N.findIndex(ct=>ct.key===_[pe].key);$e>-1&&_[pe].origin===N[$e].origin?(Tp(_[pe])&&(_[pe].matchAllFilter=!0),G[$e]=_[pe]):_[pe].origin==="dashboard"?(delete _[pe].origin,delete _[pe].restorable):$e===-1&&_[pe].origin==="scope"&&_[pe].restorable&&G.push(_[pe])}return G}function od(N){if(Array.isArray(N))return N.map(Kd).filter(Vh);const _=Kd(N);return _===null?[]:[_]}function Ul(N){var _;const G=[qh(N.key,N.keyLabel),N.operator];return mf(N.operator)?N.values.forEach((pe,$e)=>{var ct;G.push(qh(pe,(ct=N.valueLabels)==null?void 0:ct[$e]))}):G.push(qh(N.value,(_=N.valueLabels)==null?void 0:_[0])),G}function Kd(N){if(typeof N!="string"||N.length===0)return null;const[_,G,pe]=N.split("#"),[$e,ct,Yt,In,...br]=_.split("|").reduce((Ir,Wr)=>{const[Gr,pi]=Wr.split(",");return Ir.push(Gr,pi??Gr),Ir},[]).map(Hv);return{key:$e,keyLabel:ct,operator:Yt,value:br[0],values:mf(Yt)?br.filter((Ir,Wr)=>Wr%2===0):void 0,valueLabels:br.filter((Ir,Wr)=>Wr%2===1),condition:"",...Cf(G)&&{origin:G},...!!pe&&{restorable:!0}}}function Cf(N){return N==="scope"||N==="dashboard"}function Vh(N){return N!==null&&typeof N.key=="string"&&typeof N.value=="string"}var pu=u(86635);function Xl(N){let _=N.activeElement;for(;((G=_)==null||(G=G.shadowRoot)==null?void 0:G.activeElement)!=null;){var G;_=_.shadowRoot.activeElement}return _}function Zu(N,_){if(!N||!_)return!1;const G=_.getRootNode==null?void 0:_.getRootNode();if(N.contains(_))return!0;if(G&&(0,pu.Ng)(G)){let pe=_;for(;pe;){if(N===pe)return!0;pe=pe.parentNode||pe.host}}return!1}function ff(){const N=navigator.userAgentData;return N!=null&&N.platform?N.platform:navigator.platform}function Of(){const N=navigator.userAgentData;return N&&Array.isArray(N.brands)?N.brands.map(_=>{let{brand:G,version:pe}=_;return G+"/"+pe}).join(" "):navigator.userAgent}function Zc(N){return N.mozInputSource===0&&N.isTrusted?!0:il()&&N.pointerType?N.type==="click"&&N.buttons===1:N.detail===0&&!N.pointerType}function cl(N){return wu()?!1:!il()&&N.width===0&&N.height===0||il()&&N.width===1&&N.height===1&&N.pressure===0&&N.detail===0&&N.pointerType==="mouse"||N.width<1&&N.height<1&&N.pressure===0&&N.detail===0&&N.pointerType==="touch"}function Eu(){return/apple/i.test(navigator.vendor)}function il(){const N=/android/i;return N.test(ff())||N.test(Of())}function sd(){return ff().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function wu(){return Of().includes("jsdom/")}function Uf(N,_){const G=["mouse","pen"];return _||G.push("",void 0),G.includes(N)}function sh(N){return"nativeEvent"in N}function oc(N){return N.matches("html,body")}function ru(N){return N?.ownerDocument||document}function Tf(N,_){if(_==null)return!1;if("composedPath"in N)return N.composedPath().includes(_);const G=N;return G.target!=null&&_.contains(G.target)}function Oc(N){return"composedPath"in N?N.composedPath()[0]:N.target}const df="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ud(N){return(0,pu.sb)(N)&&N.matches(df)}function Tl(N){N.preventDefault(),N.stopPropagation()}function as(N){return N?N.getAttribute("role")==="combobox"&&ud(N):!1}var nu=u(97193),Xu=u(49054),Ql=u(40961),Af=u(34743);function Rf(N){return React.useMemo(()=>N.every(_=>_==null)?null:_=>{N.forEach(G=>{typeof G=="function"?G(_):G!=null&&(G.current=_)})},N)}const ku={...L},zh=ku.useInsertionEffect||(N=>N());function el(N){const _=C.useRef(()=>{});return zh(()=>{_.current=N}),C.useCallback(function(){for(var G=arguments.length,pe=new Array(G),$e=0;$e<G;$e++)pe[$e]=arguments[$e];return _.current==null?void 0:_.current(...pe)},[])}const Vf="ArrowUp",Xc="ArrowDown",Uc="ArrowLeft",bo="ArrowRight";function zf(N,_,G){return Math.floor(N/_)!==G}function sc(N,_){return _<0||_>=N.current.length}function Wf(N,_){return Uu(N,{disabledIndices:_})}function Gf(N,_){return Uu(N,{decrement:!0,startingIndex:N.current.length,disabledIndices:_})}function Uu(N,_){let{startingIndex:G=-1,decrement:pe=!1,disabledIndices:$e,amount:ct=1}=_===void 0?{}:_;const Yt=N.current;let In=G;do In+=pe?-ct:ct;while(In>=0&&In<=Yt.length-1&&Tc(Yt,In,$e));return In}function ld(N,_){let{event:G,orientation:pe,loop:$e,rtl:ct,cols:Yt,disabledIndices:In,minIndex:br,maxIndex:Ir,prevIndex:Wr,stopEvent:Gr=!1}=_,pi=Wr;if(G.key===Vf){if(Gr&&Tl(G),Wr===-1)pi=Ir;else if(pi=Uu(N,{startingIndex:pi,amount:Yt,decrement:!0,disabledIndices:In}),$e&&(Wr-Yt<br||pi<0)){const Ri=Wr%Yt,Zi=Ir%Yt,ia=Ir-(Zi-Ri);Zi===Ri?pi=Ir:pi=Zi>Ri?ia:ia-Yt}sc(N,pi)&&(pi=Wr)}if(G.key===Xc&&(Gr&&Tl(G),Wr===-1?pi=br:(pi=Uu(N,{startingIndex:Wr,amount:Yt,disabledIndices:In}),$e&&Wr+Yt>Ir&&(pi=Uu(N,{startingIndex:Wr%Yt-Yt,amount:Yt,disabledIndices:In}))),sc(N,pi)&&(pi=Wr)),pe==="both"){const Ri=(0,nu.RI)(Wr/Yt);G.key===(ct?Uc:bo)&&(Gr&&Tl(G),Wr%Yt!==Yt-1?(pi=Uu(N,{startingIndex:Wr,disabledIndices:In}),$e&&zf(pi,Yt,Ri)&&(pi=Uu(N,{startingIndex:Wr-Wr%Yt-1,disabledIndices:In}))):$e&&(pi=Uu(N,{startingIndex:Wr-Wr%Yt-1,disabledIndices:In})),zf(pi,Yt,Ri)&&(pi=Wr)),G.key===(ct?bo:Uc)&&(Gr&&Tl(G),Wr%Yt!==0?(pi=Uu(N,{startingIndex:Wr,decrement:!0,disabledIndices:In}),$e&&zf(pi,Yt,Ri)&&(pi=Uu(N,{startingIndex:Wr+(Yt-Wr%Yt),decrement:!0,disabledIndices:In}))):$e&&(pi=Uu(N,{startingIndex:Wr+(Yt-Wr%Yt),decrement:!0,disabledIndices:In})),zf(pi,Yt,Ri)&&(pi=Wr));const Zi=(0,nu.RI)(Ir/Yt)===Ri;sc(N,pi)&&($e&&Zi?pi=G.key===(ct?bo:Uc)?Ir:Uu(N,{startingIndex:Wr-Wr%Yt-1,disabledIndices:In}):pi=Wr)}return pi}function uh(N,_,G){const pe=[];let $e=0;return N.forEach((ct,Yt)=>{let{width:In,height:br}=ct;In>_;let Ir=!1;for(G&&($e=0);!Ir;){const Wr=[];for(let Gr=0;Gr<In;Gr++)for(let pi=0;pi<br;pi++)Wr.push($e+Gr+pi*_);$e%_+In<=_&&Wr.every(Gr=>pe[Gr]==null)?(Wr.forEach(Gr=>{pe[Gr]=Yt}),Ir=!0):$e++}}),[...pe]}function lh(N,_,G,pe,$e){if(N===-1)return-1;const ct=G.indexOf(N),Yt=_[N];switch($e){case"tl":return ct;case"tr":return Yt?ct+Yt.width-1:ct;case"bl":return Yt?ct+(Yt.height-1)*pe:ct;case"br":return G.lastIndexOf(N)}}function ch(N,_){return _.flatMap((G,pe)=>N.includes(G)?[pe]:[])}function Tc(N,_,G){if(G)return G.includes(_);const pe=N[_];return pe==null||pe.hasAttribute("disabled")||pe.getAttribute("aria-disabled")==="true"}var qs=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Rd(N,_){const G=N.compareDocumentPosition(_);return G&Node.DOCUMENT_POSITION_FOLLOWING||G&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:G&Node.DOCUMENT_POSITION_PRECEDING||G&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Hf(N,_){if(N.size!==_.size)return!1;for(const[G,pe]of N.entries())if(pe!==_.get(G))return!1;return!0}const Yd=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Qc(N){const{children:_,elementsRef:G,labelsRef:pe}=N,[$e,ct]=React.useState(()=>new Map),Yt=React.useCallback(br=>{ct(Ir=>new Map(Ir).set(br,null))},[]),In=React.useCallback(br=>{ct(Ir=>{const Wr=new Map(Ir);return Wr.delete(br),Wr})},[]);return qs(()=>{const br=new Map($e);Array.from(br.keys()).sort(Rd).forEach((Wr,Gr)=>{br.set(Wr,Gr)}),Hf($e,br)||ct(br)},[$e]),React.createElement(Yd.Provider,{value:React.useMemo(()=>({register:Yt,unregister:In,map:$e,elementsRef:G,labelsRef:pe}),[Yt,In,$e,G,pe])},_)}function Kf(N){N===void 0&&(N={});const{label:_}=N,{register:G,unregister:pe,map:$e,elementsRef:ct,labelsRef:Yt}=React.useContext(Yd),[In,br]=React.useState(null),Ir=React.useRef(null),Wr=React.useCallback(Gr=>{if(Ir.current=Gr,In!==null&&(ct.current[In]=Gr,Yt)){var pi;const Ri=_!==void 0;Yt.current[In]=Ri?_:(pi=Gr?.textContent)!=null?pi:null}},[In,ct,Yt,_]);return qs(()=>{const Gr=Ir.current;if(Gr)return G(Gr),()=>{pe(Gr)}},[G,pe]),qs(()=>{const Gr=Ir.current?$e.get(Ir.current):null;Gr!=null&&br(Gr)},[$e]),React.useMemo(()=>({ref:Wr,index:In??-1}),[In,Wr])}function Pd(N,_){return typeof N=="function"?N(_):N?React.cloneElement(N,_):React.createElement("div",_)}const qc=C.createContext({activeIndex:0,onNavigate:()=>{}}),pc=[Uc,bo],Jd=[Vf,Xc],Pf=[...pc,...Jd],If=null,fh=null;function Id(){return Id=Object.assign?Object.assign.bind():function(N){for(var _=1;_<arguments.length;_++){var G=arguments[_];for(var pe in G)Object.prototype.hasOwnProperty.call(G,pe)&&(N[pe]=G[pe])}return N},Id.apply(this,arguments)}let Df=!1,cd=0;const Dd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cd++;function Yf(){const[N,_]=C.useState(()=>Df?Dd():void 0);return qs(()=>{N==null&&_(Dd())},[]),C.useEffect(()=>{Df=!0},[]),N}const Au=ku.useId||Yf;let ql;function Vl(){for(var N,_=arguments.length,G=new Array(_),pe=0;pe<_;pe++)G[pe]=arguments[pe];const $e="Floating UI: "+G.join(" ");if(!((N=ql)!=null&&N.has($e))){var ct;(ct=ql)==null||ct.add($e),console.warn($e)}}function zu(){for(var N,_=arguments.length,G=new Array(_),pe=0;pe<_;pe++)G[pe]=arguments[pe];const $e="Floating UI: "+G.join(" ");if(!((N=ql)!=null&&N.has($e))){var ct;(ct=ql)==null||ct.add($e),console.error($e)}}const yl=null;function Lu(){const N=new Map;return{emit(_,G){var pe;(pe=N.get(_))==null||pe.forEach($e=>$e(G))},on(_,G){N.set(_,[...N.get(_)||[],G])},off(_,G){var pe;N.set(_,((pe=N.get(_))==null?void 0:pe.filter($e=>$e!==G))||[])}}}const hf=C.createContext(null),fd=C.createContext(null),ef=()=>{var N;return((N=C.useContext(hf))==null?void 0:N.id)||null},uc=()=>C.useContext(fd);function Vc(N){const _=Au(),G=uc(),pe=ef(),$e=N||pe;return qs(()=>{const ct={id:_,parentId:$e};return G?.addNode(ct),()=>{G?.removeNode(ct)}},[G,_,$e]),_}function Th(N){const{children:_,id:G}=N,pe=ef();return React.createElement(hf.Provider,{value:React.useMemo(()=>({id:G,parentId:pe}),[G,pe])},_)}function Zd(N){const{children:_}=N,G=React.useRef([]),pe=React.useCallback(Yt=>{G.current=[...G.current,Yt]},[]),$e=React.useCallback(Yt=>{G.current=G.current.filter(In=>In!==Yt)},[]),ct=React.useState(()=>Lu())[0];return React.createElement(fd.Provider,{value:React.useMemo(()=>({nodesRef:G,addNode:pe,removeNode:$e,events:ct}),[pe,$e,ct])},_)}function Pe(N){return"data-floating-ui-"+N}function ut(N){const _=(0,C.useRef)(N);return qs(()=>{_.current=N}),_}const Kt=null;function lr(N,_,G){return G&&!isMouseLikePointerType(G)?0:typeof N=="number"?N:N?.[_]}function pr(N,_){_===void 0&&(_={});const{open:G,onOpenChange:pe,dataRef:$e,events:ct,elements:Yt}=N,{enabled:In=!0,delay:br=0,handleClose:Ir=null,mouseOnly:Wr=!1,restMs:Gr=0,move:pi=!0}=_,Ri=uc(),Zi=ef(),ia=ut(Ir),Fa=ut(br),Ba=ut(G),Va=React.useRef(),Ra=React.useRef(-1),Ya=React.useRef(),Ao=React.useRef(-1),Co=React.useRef(!0),ao=React.useRef(!1),$o=React.useRef(()=>{}),ko=React.useRef(!1),Mo=React.useCallback(()=>{var jo;const ss=(jo=$e.current.openEvent)==null?void 0:jo.type;return ss?.includes("mouse")&&ss!=="mousedown"},[$e]);React.useEffect(()=>{if(!In)return;function jo(ss){let{open:La}=ss;La||(clearTimeout(Ra.current),clearTimeout(Ao.current),Co.current=!0,ko.current=!1)}return ct.on("openchange",jo),()=>{ct.off("openchange",jo)}},[In,ct]),React.useEffect(()=>{if(!In||!ia.current||!G)return;function jo(La){Mo()&&pe(!1,La,"hover")}const ss=getDocument(Yt.floating).documentElement;return ss.addEventListener("mouseleave",jo),()=>{ss.removeEventListener("mouseleave",jo)}},[Yt.floating,G,pe,In,ia,Mo]);const ds=React.useCallback(function(jo,ss,La){ss===void 0&&(ss=!0),La===void 0&&(La="hover");const ts=lr(Fa.current,"close",Va.current);ts&&!Ya.current?(clearTimeout(Ra.current),Ra.current=window.setTimeout(()=>pe(!1,jo,La),ts)):ss&&(clearTimeout(Ra.current),pe(!1,jo,La))},[Fa,pe]),po=el(()=>{$o.current(),Ya.current=void 0}),Qo=el(()=>{if(ao.current){const jo=getDocument(Yt.floating).body;jo.style.pointerEvents="",jo.removeAttribute(Kt),ao.current=!1}}),Fo=el(()=>$e.current.openEvent?["click","mousedown"].includes($e.current.openEvent.type):!1);React.useEffect(()=>{if(!In)return;function jo(Lo){if(clearTimeout(Ra.current),Co.current=!1,Wr&&!isMouseLikePointerType(Va.current)||Gr>0&&!lr(Fa.current,"open"))return;const Es=lr(Fa.current,"open",Va.current);Es?Ra.current=window.setTimeout(()=>{Ba.current||pe(!0,Lo,"hover")},Es):G||pe(!0,Lo,"hover")}function ss(Lo){if(Fo())return;$o.current();const Es=getDocument(Yt.floating);if(clearTimeout(Ao.current),ko.current=!1,ia.current&&$e.current.floatingContext){G||clearTimeout(Ra.current),Ya.current=ia.current({...$e.current.floatingContext,tree:Ri,x:Lo.clientX,y:Lo.clientY,onClose(){Qo(),po(),Fo()||ds(Lo,!0,"safe-polygon")}});const hs=Ya.current;Es.addEventListener("mousemove",hs),$o.current=()=>{Es.removeEventListener("mousemove",hs)};return}(Va.current==="touch"?!contains(Yt.floating,Lo.relatedTarget):!0)&&ds(Lo)}function La(Lo){Fo()||$e.current.floatingContext&&(ia.current==null||ia.current({...$e.current.floatingContext,tree:Ri,x:Lo.clientX,y:Lo.clientY,onClose(){Qo(),po(),Fo()||ds(Lo)}})(Lo))}if(isElement(Yt.domReference)){var ts;const Lo=Yt.domReference;return G&&Lo.addEventListener("mouseleave",La),(ts=Yt.floating)==null||ts.addEventListener("mouseleave",La),pi&&Lo.addEventListener("mousemove",jo,{once:!0}),Lo.addEventListener("mouseenter",jo),Lo.addEventListener("mouseleave",ss),()=>{var Es;G&&Lo.removeEventListener("mouseleave",La),(Es=Yt.floating)==null||Es.removeEventListener("mouseleave",La),pi&&Lo.removeEventListener("mousemove",jo),Lo.removeEventListener("mouseenter",jo),Lo.removeEventListener("mouseleave",ss)}}},[Yt,In,N,Wr,Gr,pi,ds,po,Qo,pe,G,Ba,Ri,Fa,ia,$e,Fo]),qs(()=>{var jo;if(In&&G&&(jo=ia.current)!=null&&jo.__options.blockPointerEvents&&Mo()){ao.current=!0;const La=Yt.floating;if(isElement(Yt.domReference)&&La){var ss;const ts=getDocument(Yt.floating).body;ts.setAttribute(Kt,"");const Lo=Yt.domReference,Es=Ri==null||(ss=Ri.nodesRef.current.find(ou=>ou.id===Zi))==null||(ss=ss.context)==null?void 0:ss.elements.floating;return Es&&(Es.style.pointerEvents=""),ts.style.pointerEvents="none",Lo.style.pointerEvents="auto",La.style.pointerEvents="auto",()=>{ts.style.pointerEvents="",Lo.style.pointerEvents="",La.style.pointerEvents=""}}}},[In,G,Zi,Yt,Ri,ia,Mo]),qs(()=>{G||(Va.current=void 0,ko.current=!1,po(),Qo())},[G,po,Qo]),React.useEffect(()=>()=>{po(),clearTimeout(Ra.current),clearTimeout(Ao.current),Qo()},[In,Yt.domReference,po,Qo]);const Yo=React.useMemo(()=>{function jo(ss){Va.current=ss.pointerType}return{onPointerDown:jo,onPointerEnter:jo,onMouseMove(ss){const{nativeEvent:La}=ss;function ts(){!Co.current&&!Ba.current&&pe(!0,La,"hover")}Wr&&!isMouseLikePointerType(Va.current)||G||Gr===0||ko.current&&ss.movementX**2+ss.movementY**2<2||(clearTimeout(Ao.current),Va.current==="touch"?ts():(ko.current=!0,Ao.current=window.setTimeout(ts,Gr)))}}},[Wr,pe,G,Ba,Gr]),Ro=React.useMemo(()=>({onMouseEnter(){clearTimeout(Ra.current)},onMouseLeave(jo){Fo()||ds(jo.nativeEvent,!1)}}),[ds,Fo]);return React.useMemo(()=>In?{reference:Yo,floating:Ro}:{},[In,Yo,Ro])}const Mr=()=>{},ui=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Mr,setState:Mr,isInstantPhase:!1}),Ai=()=>React.useContext(ui);function Xi(N){const{children:_,delay:G,timeoutMs:pe=0}=N,[$e,ct]=React.useReducer((br,Ir)=>({...br,...Ir}),{delay:G,timeoutMs:pe,initialDelay:G,currentId:null,isInstantPhase:!1}),Yt=React.useRef(null),In=React.useCallback(br=>{ct({currentId:br})},[]);return qs(()=>{$e.currentId?Yt.current===null?Yt.current=$e.currentId:$e.isInstantPhase||ct({isInstantPhase:!0}):($e.isInstantPhase&&ct({isInstantPhase:!1}),Yt.current=null)},[$e.currentId,$e.isInstantPhase]),React.createElement(ui.Provider,{value:React.useMemo(()=>({...$e,setState:ct,setCurrentId:In}),[$e,In])},_)}function ca(N,_){_===void 0&&(_={});const{open:G,onOpenChange:pe,floatingId:$e}=N,{id:ct,enabled:Yt=!0}=_,In=ct??$e,br=Ai(),{currentId:Ir,setCurrentId:Wr,initialDelay:Gr,setState:pi,timeoutMs:Ri}=br;return qs(()=>{Yt&&Ir&&(pi({delay:{open:1,close:lr(Gr,"close")}}),Ir!==In&&pe(!1))},[Yt,In,pe,pi,Ir,Gr]),qs(()=>{function Zi(){pe(!1),pi({delay:Gr,currentId:null})}if(Yt&&Ir&&!G&&Ir===In){if(Ri){const ia=window.setTimeout(Zi,Ri);return()=>{clearTimeout(ia)}}Zi()}},[Yt,G,pi,Ir,In,pe,Gr,Ri]),qs(()=>{Yt&&(Wr===Mr||!G||Wr(In))},[Yt,G,Wr,In]),br}let ma=0;function Wi(N,_){_===void 0&&(_={});const{preventScroll:G=!1,cancelPrevious:pe=!0,sync:$e=!1}=_;pe&&cancelAnimationFrame(ma);const ct=()=>N?.focus({preventScroll:G});$e?ct():ma=requestAnimationFrame(ct)}function aa(N,_){var G;let pe=[],$e=(G=N.find(ct=>ct.id===_))==null?void 0:G.parentId;for(;$e;){const ct=N.find(Yt=>Yt.id===$e);$e=ct?.parentId,ct&&(pe=pe.concat(ct))}return pe}function Ta(N,_){let G=N.filter($e=>{var ct;return $e.parentId===_&&((ct=$e.context)==null?void 0:ct.open)}),pe=G;for(;pe.length;)pe=N.filter($e=>{var ct;return(ct=pe)==null?void 0:ct.some(Yt=>{var In;return $e.parentId===Yt.id&&((In=$e.context)==null?void 0:In.open)})}),G=G.concat(pe);return G}function co(N,_){let G,pe=-1;function $e(ct,Yt){Yt>pe&&(G=ct,pe=Yt),Ta(N,ct).forEach(br=>{$e(br.id,Yt+1)})}return $e(_,0),N.find(ct=>ct.id===G)}let So=new WeakMap,Po=new WeakSet,As={},Hs=0;const bu=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Zs=N=>N&&(N.host||Zs(N.parentNode)),iu=(N,_)=>_.map(G=>{if(N.contains(G))return G;const pe=Zs(G);return N.contains(pe)?pe:null}).filter(G=>G!=null);function au(N,_,G,pe){const $e="data-floating-ui-inert",ct=pe?"inert":G?"aria-hidden":null,Yt=iu(_,N),In=new Set,br=new Set(Yt),Ir=[];As[$e]||(As[$e]=new WeakMap);const Wr=As[$e];Yt.forEach(Gr),pi(_),In.clear();function Gr(Ri){!Ri||In.has(Ri)||(In.add(Ri),Ri.parentNode&&Gr(Ri.parentNode))}function pi(Ri){!Ri||br.has(Ri)||[].forEach.call(Ri.children,Zi=>{if((0,pu.mq)(Zi)!=="script")if(In.has(Zi))pi(Zi);else{const ia=ct?Zi.getAttribute(ct):null,Fa=ia!==null&&ia!=="false",Ba=(So.get(Zi)||0)+1,Va=(Wr.get(Zi)||0)+1;So.set(Zi,Ba),Wr.set(Zi,Va),Ir.push(Zi),Ba===1&&Fa&&Po.add(Zi),Va===1&&Zi.setAttribute($e,""),!Fa&&ct&&Zi.setAttribute(ct,"true")}})}return Hs++,()=>{Ir.forEach(Ri=>{const Zi=(So.get(Ri)||0)-1,ia=(Wr.get(Ri)||0)-1;So.set(Ri,Zi),Wr.set(Ri,ia),Zi||(!Po.has(Ri)&&ct&&Ri.removeAttribute(ct),Po.delete(Ri)),ia||Ri.removeAttribute($e)}),Hs--,Hs||(So=new WeakMap,So=new WeakMap,Po=new WeakSet,As={})}}function bl(N,_,G){_===void 0&&(_=!1),G===void 0&&(G=!1);const pe=ru(N[0]).body;return au(N.concat(Array.from(pe.querySelectorAll("[aria-live]"))),pe,_,G)}const Nu=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ac(N,_){const G=(0,Xu.Kr)(N,Nu());_==="prev"&&G.reverse();const pe=G.indexOf(Xl(ru(N)));return G.slice(pe+1)[0]}function Al(){return Ac(document.body,"next")}function Mf(){return Ac(document.body,"prev")}function ec(N,_){const G=_||N.currentTarget,pe=N.relatedTarget;return!pe||!Zu(G,pe)}function zc(N){(0,Xu.Kr)(N,Nu()).forEach(G=>{G.dataset.tabindex=G.getAttribute("tabindex")||"",G.setAttribute("tabindex","-1")})}function dd(N){N.querySelectorAll("[data-tabindex]").forEach(G=>{const pe=G.dataset.tabindex;delete G.dataset.tabindex,pe?G.setAttribute("tabindex",pe):G.removeAttribute("tabindex")})}const Md={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let kf;function Xd(N){N.key==="Tab"&&(N.target,clearTimeout(kf))}const Sl=C.forwardRef(function(_,G){const[pe,$e]=C.useState();qs(()=>(Eu()&&$e("button"),document.addEventListener("keydown",Xd),()=>{document.removeEventListener("keydown",Xd)}),[]);const ct={ref:G,tabIndex:0,role:pe,"aria-hidden":pe?void 0:!0,[Pe("focus-guard")]:"",style:Md};return C.createElement("span",Id({},_,ct))}),Wh=C.createContext(null),_l=Pe("portal");function Sp(N){N===void 0&&(N={});const{id:_,root:G}=N,pe=Au(),$e=Qd(),[ct,Yt]=C.useState(null),In=C.useRef(null);return qs(()=>()=>{ct?.remove(),queueMicrotask(()=>{In.current=null})},[ct]),qs(()=>{if(!pe||In.current)return;const br=_?document.getElementById(_):null;if(!br)return;const Ir=document.createElement("div");Ir.id=pe,Ir.setAttribute(_l,""),br.appendChild(Ir),In.current=Ir,Yt(Ir)},[_,pe]),qs(()=>{if(G===null||!pe||In.current)return;let br=G||$e?.portalNode;br&&!(0,pu.vq)(br)&&(br=br.current),br=br||document.body;let Ir=null;_&&(Ir=document.createElement("div"),Ir.id=_,br.appendChild(Ir));const Wr=document.createElement("div");Wr.id=pe,Wr.setAttribute(_l,""),br=Ir||br,br.appendChild(Wr),In.current=Wr,Yt(Wr)},[_,G,pe,$e]),ct}function hd(N){const{children:_,id:G,root:pe,preserveTabOrder:$e=!0}=N,ct=Sp({id:G,root:pe}),[Yt,In]=C.useState(null),br=C.useRef(null),Ir=C.useRef(null),Wr=C.useRef(null),Gr=C.useRef(null),pi=Yt?.modal,Ri=Yt?.open,Zi=!!Yt&&!Yt.modal&&Yt.open&&$e&&!!(pe||ct);return C.useEffect(()=>{if(!ct||!$e||pi)return;function ia(Fa){ct&&ec(Fa)&&(Fa.type==="focusin"?dd:zc)(ct)}return ct.addEventListener("focusin",ia,!0),ct.addEventListener("focusout",ia,!0),()=>{ct.removeEventListener("focusin",ia,!0),ct.removeEventListener("focusout",ia,!0)}},[ct,$e,pi]),C.useEffect(()=>{ct&&(Ri||dd(ct))},[Ri,ct]),C.createElement(Wh.Provider,{value:C.useMemo(()=>({preserveTabOrder:$e,beforeOutsideRef:br,afterOutsideRef:Ir,beforeInsideRef:Wr,afterInsideRef:Gr,portalNode:ct,setFocusManagerState:In}),[$e,ct])},Zi&&ct&&C.createElement(Sl,{"data-type":"outside",ref:br,onFocus:ia=>{if(ec(ia,ct)){var Fa;(Fa=Wr.current)==null||Fa.focus()}else{const Ba=Mf()||Yt?.refs.domReference.current;Ba?.focus()}}}),Zi&&ct&&C.createElement("span",{"aria-owns":ct.id,style:Md}),ct&&Ql.createPortal(_,ct),Zi&&ct&&C.createElement(Sl,{"data-type":"outside",ref:Ir,onFocus:ia=>{if(ec(ia,ct)){var Fa;(Fa=Gr.current)==null||Fa.focus()}else{const Ba=Al()||Yt?.refs.domReference.current;Ba?.focus(),Yt?.closeOnFocusOut&&Yt?.onOpenChange(!1,ia.nativeEvent,"focus-out")}}}))}const Qd=()=>C.useContext(Wh),Gh="data-floating-ui-focusable";function _p(N){return N?N.hasAttribute(Gh)?N:N.querySelector("["+Gh+"]")||N:null}const Ah=20;let Er=[];function ri(N){Er=Er.filter(G=>G.isConnected);let _=N;if(!(!_||(0,pu.mq)(_)==="body")){if(!(0,Xu.AO)(_,Nu())){const G=(0,Xu.Kr)(_,Nu())[0];G&&(_=G)}Er.push(_),Er.length>Ah&&(Er=Er.slice(-Ah))}}function Li(){return Er.slice().reverse().find(N=>N.isConnected)}const Gi=C.forwardRef(function(_,G){return C.createElement("button",Id({},_,{type:"button",ref:G,tabIndex:-1,style:Md}))});function ha(N){const{context:_,children:G,disabled:pe=!1,order:$e=["content"],guards:ct=!0,initialFocus:Yt=0,returnFocus:In=!0,restoreFocus:br=!1,modal:Ir=!0,visuallyHiddenDismiss:Wr=!1,closeOnFocusOut:Gr=!0}=N,{open:pi,refs:Ri,nodeId:Zi,onOpenChange:ia,events:Fa,dataRef:Ba,floatingId:Va,elements:{domReference:Ra,floating:Ya}}=_,Ao=typeof Yt=="number"&&Yt<0,Co=as(Ra)&&Ao,ao=bu()?ct:!0,$o=ut($e),ko=ut(Yt),Mo=ut(In),ds=uc(),po=Qd(),Qo=C.useRef(null),Fo=C.useRef(null),Yo=C.useRef(!1),Ro=C.useRef(!1),jo=C.useRef(-1),ss=po!=null,La=_p(Ya),ts=el(function(hs){return hs===void 0&&(hs=La),hs?(0,Xu.Kr)(hs,Nu()):[]}),Lo=el(hs=>{const Eo=ts(hs);return $o.current.map(ns=>Ra&&ns==="reference"?Ra:La&&ns==="floating"?La:Eo).filter(Boolean).flat()});C.useEffect(()=>{if(pe||!Ir)return;function hs(ns){if(ns.key==="Tab"){Zu(La,Xl(ru(La)))&&ts().length===0&&!Co&&Tl(ns);const us=Lo(),ys=Oc(ns);$o.current[0]==="reference"&&ys===Ra&&(Tl(ns),ns.shiftKey?Wi(us[us.length-1]):Wi(us[1])),$o.current[1]==="floating"&&ys===La&&ns.shiftKey&&(Tl(ns),Wi(us[0]))}}const Eo=ru(La);return Eo.addEventListener("keydown",hs),()=>{Eo.removeEventListener("keydown",hs)}},[pe,Ra,La,Ir,$o,Co,ts,Lo]),C.useEffect(()=>{if(pe||!Ya)return;function hs(Eo){const ns=Oc(Eo),ys=ts().indexOf(ns);ys!==-1&&(jo.current=ys)}return Ya.addEventListener("focusin",hs),()=>{Ya.removeEventListener("focusin",hs)}},[pe,Ya,ts]),C.useEffect(()=>{if(pe||!Gr)return;function hs(){Ro.current=!0,setTimeout(()=>{Ro.current=!1})}function Eo(ns){const us=ns.relatedTarget;queueMicrotask(()=>{const ys=!(Zu(Ra,us)||Zu(Ya,us)||Zu(us,Ya)||Zu(po?.portalNode,us)||us!=null&&us.hasAttribute(Pe("focus-guard"))||ds&&(Ta(ds.nodesRef.current,Zi).find(ws=>{var Gs,Qu;return Zu((Gs=ws.context)==null?void 0:Gs.elements.floating,us)||Zu((Qu=ws.context)==null?void 0:Qu.elements.domReference,us)})||aa(ds.nodesRef.current,Zi).find(ws=>{var Gs,Qu;return((Gs=ws.context)==null?void 0:Gs.elements.floating)===us||((Qu=ws.context)==null?void 0:Qu.elements.domReference)===us})));if(br&&ys&&Xl(ru(La))===ru(La).body){(0,pu.sb)(La)&&La.focus();const ws=jo.current,Gs=ts(),Qu=Gs[ws]||Gs[Gs.length-1]||La;(0,pu.sb)(Qu)&&Qu.focus()}(Co||!Ir)&&us&&ys&&!Ro.current&&us!==Li()&&(Yo.current=!0,ia(!1,ns,"focus-out"))})}if(Ya&&(0,pu.sb)(Ra))return Ra.addEventListener("focusout",Eo),Ra.addEventListener("pointerdown",hs),Ya.addEventListener("focusout",Eo),()=>{Ra.removeEventListener("focusout",Eo),Ra.removeEventListener("pointerdown",hs),Ya.removeEventListener("focusout",Eo)}},[pe,Ra,Ya,La,Ir,Zi,ds,po,ia,Gr,br,ts,Co]),C.useEffect(()=>{var hs;if(pe)return;const Eo=Array.from((po==null||(hs=po.portalNode)==null?void 0:hs.querySelectorAll("["+Pe("portal")+"]"))||[]);if(Ya){const ns=[Ya,...Eo,Qo.current,Fo.current,$o.current.includes("reference")||Co?Ra:null].filter(ys=>ys!=null),us=Ir||Co?bl(ns,ao,!ao):bl(ns);return()=>{us()}}},[pe,Ra,Ya,Ir,$o,po,Co,ao]),qs(()=>{if(pe||!(0,pu.sb)(La))return;const hs=ru(La),Eo=Xl(hs);queueMicrotask(()=>{const ns=Lo(La),us=ko.current,ys=(typeof us=="number"?ns[us]:us.current)||La,ws=Zu(La,Eo);!Ao&&!ws&&pi&&Wi(ys,{preventScroll:ys===La})})},[pe,pi,La,Ao,Lo,ko]),qs(()=>{if(pe||!La)return;let hs=!1;const Eo=ru(La),ns=Xl(Eo);let ys=Ba.current.openEvent;ri(ns);function ws(dl){let{open:Xf,reason:zs,event:hl,nested:Qf}=dl;Xf&&(ys=hl),zs==="escape-key"&&Ri.domReference.current&&ri(Ri.domReference.current),zs==="hover"&&hl.type==="mouseleave"&&(Yo.current=!0),zs==="outside-press"&&(Qf?(Yo.current=!1,hs=!0):Yo.current=!(Zc(hl)||cl(hl)))}Fa.on("openchange",ws);const Gs=Eo.createElement("span");Gs.setAttribute("tabindex","-1"),Gs.setAttribute("aria-hidden","true"),Object.assign(Gs.style,Md),ss&&Ra&&Ra.insertAdjacentElement("afterend",Gs);function Qu(){return typeof Mo.current=="boolean"?Li()||Gs:Mo.current.current||Gs}return()=>{Fa.off("openchange",ws);const dl=Xl(Eo),Xf=Zu(Ya,dl)||ds&&Ta(ds.nodesRef.current,Zi).some(Qf=>{var wh;return Zu((wh=Qf.context)==null?void 0:wh.elements.floating,dl)});(Xf||ys&&["click","mousedown"].includes(ys.type))&&Ri.domReference.current&&ri(Ri.domReference.current);const hl=Qu();queueMicrotask(()=>{Mo.current&&!Yo.current&&(0,pu.sb)(hl)&&(!(hl!==dl&&dl!==Eo.body)||Xf)&&hl.focus({preventScroll:hs}),Gs.remove()})}},[pe,Ya,La,Mo,Ba,Ri,Fa,ds,Zi,ss,Ra]),C.useEffect(()=>{queueMicrotask(()=>{Yo.current=!1})},[pe]),qs(()=>{if(!pe&&po)return po.setFocusManagerState({modal:Ir,closeOnFocusOut:Gr,open:pi,onOpenChange:ia,refs:Ri}),()=>{po.setFocusManagerState(null)}},[pe,po,Ir,pi,ia,Ri,Gr]),qs(()=>{if(pe||!La||typeof MutationObserver!="function"||Ao)return;const hs=()=>{const ns=La.getAttribute("tabindex"),us=ts(),ys=Xl(ru(Ya)),ws=us.indexOf(ys);ws!==-1&&(jo.current=ws),$o.current.includes("floating")||ys!==Ri.domReference.current&&us.length===0?ns!=="0"&&La.setAttribute("tabindex","0"):ns!=="-1"&&La.setAttribute("tabindex","-1")};hs();const Eo=new MutationObserver(hs);return Eo.observe(La,{childList:!0,subtree:!0,attributes:!0}),()=>{Eo.disconnect()}},[pe,Ya,La,Ri,$o,ts,Ao]);function Es(hs){return pe||!Wr||!Ir?null:C.createElement(Gi,{ref:hs==="start"?Qo:Fo,onClick:Eo=>ia(!1,Eo.nativeEvent)},typeof Wr=="string"?Wr:"Dismiss")}const ou=!pe&&ao&&(Ir?!Co:!0)&&(ss||Ir);return C.createElement(C.Fragment,null,ou&&C.createElement(Sl,{"data-type":"inside",ref:po?.beforeInsideRef,onFocus:hs=>{if(Ir){const ns=Lo();Wi($e[0]==="reference"?ns[0]:ns[ns.length-1])}else if(po!=null&&po.preserveTabOrder&&po.portalNode)if(Yo.current=!1,ec(hs,po.portalNode)){const ns=Al()||Ra;ns?.focus()}else{var Eo;(Eo=po.beforeOutsideRef.current)==null||Eo.focus()}}}),!Co&&Es("start"),G,Es("end"),ou&&C.createElement(Sl,{"data-type":"inside",ref:po?.afterInsideRef,onFocus:hs=>{if(Ir)Wi(Lo()[0]);else if(po!=null&&po.preserveTabOrder&&po.portalNode)if(Gr&&(Yo.current=!0),ec(hs,po.portalNode)){const ns=Mf()||Ra;ns?.focus()}else{var Eo;(Eo=po.afterOutsideRef.current)==null||Eo.focus()}}}))}let Da=0;function Qa(){const N=/iP(hone|ad|od)|iOS/.test(getPlatform()),_=document.body.style,pe=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",$e=window.innerWidth-document.documentElement.clientWidth,ct=_.left?parseFloat(_.left):window.scrollX,Yt=_.top?parseFloat(_.top):window.scrollY;if(_.overflow="hidden",$e&&(_[pe]=$e+"px"),N){var In,br;const Ir=((In=window.visualViewport)==null?void 0:In.offsetLeft)||0,Wr=((br=window.visualViewport)==null?void 0:br.offsetTop)||0;Object.assign(_,{position:"fixed",top:-(Yt-Math.floor(Wr))+"px",left:-(ct-Math.floor(Ir))+"px",right:"0"})}return()=>{Object.assign(_,{overflow:"",[pe]:""}),N&&(Object.assign(_,{position:"",top:"",left:"",right:""}),window.scrollTo(ct,Yt))}}let so=()=>{};const To=null;function Ko(N){return isHTMLElement(N.target)&&N.target.tagName==="BUTTON"}function rs(N){return isTypeableElement(N)}function cs(N,_){_===void 0&&(_={});const{open:G,onOpenChange:pe,dataRef:$e,elements:{domReference:ct}}=N,{enabled:Yt=!0,event:In="click",toggle:br=!0,ignoreMouse:Ir=!1,keyboardHandlers:Wr=!0,stickIfOpen:Gr=!0}=_,pi=React.useRef(),Ri=React.useRef(!1),Zi=React.useMemo(()=>({onPointerDown(ia){pi.current=ia.pointerType},onMouseDown(ia){const Fa=pi.current;ia.button===0&&In!=="click"&&(isMouseLikePointerType(Fa,!0)&&Ir||(G&&br&&(!($e.current.openEvent&&Gr)||$e.current.openEvent.type==="mousedown")?pe(!1,ia.nativeEvent,"click"):(ia.preventDefault(),pe(!0,ia.nativeEvent,"click"))))},onClick(ia){const Fa=pi.current;if(In==="mousedown"&&pi.current){pi.current=void 0;return}isMouseLikePointerType(Fa,!0)&&Ir||(G&&br&&(!($e.current.openEvent&&Gr)||$e.current.openEvent.type==="click")?pe(!1,ia.nativeEvent,"click"):pe(!0,ia.nativeEvent,"click"))},onKeyDown(ia){pi.current=void 0,!(ia.defaultPrevented||!Wr||Ko(ia))&&(ia.key===" "&&!rs(ct)&&(ia.preventDefault(),Ri.current=!0),ia.key==="Enter"&&pe(!(G&&br),ia.nativeEvent,"click"))},onKeyUp(ia){ia.defaultPrevented||!Wr||Ko(ia)||rs(ct)||ia.key===" "&&Ri.current&&(Ri.current=!1,pe(!(G&&br),ia.nativeEvent,"click"))}}),[$e,ct,In,Ir,Wr,pe,G,Gr,br]);return React.useMemo(()=>Yt?{reference:Zi}:{},[Yt,Zi])}function Ks(N,_){let G=null,pe=null,$e=!1;return{contextElement:N||void 0,getBoundingClientRect(){var ct;const Yt=N?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},In=_.axis==="x"||_.axis==="both",br=_.axis==="y"||_.axis==="both",Ir=["mouseenter","mousemove"].includes(((ct=_.dataRef.current.openEvent)==null?void 0:ct.type)||"")&&_.pointerType!=="touch";let Wr=Yt.width,Gr=Yt.height,pi=Yt.x,Ri=Yt.y;return G==null&&_.x&&In&&(G=Yt.x-_.x),pe==null&&_.y&&br&&(pe=Yt.y-_.y),pi-=G||0,Ri-=pe||0,Wr=0,Gr=0,!$e||Ir?(Wr=_.axis==="y"?Yt.width:0,Gr=_.axis==="x"?Yt.height:0,pi=In&&_.x!=null?_.x:pi,Ri=br&&_.y!=null?_.y:Ri):$e&&!Ir&&(Gr=_.axis==="x"?Yt.height:Gr,Wr=_.axis==="y"?Yt.width:Wr),$e=!0,{width:Wr,height:Gr,x:pi,y:Ri,top:Ri,right:pi+Wr,bottom:Ri+Gr,left:pi}}}}function yu(N){return N!=null&&N.clientX!=null}function Su(N,_){_===void 0&&(_={});const{open:G,dataRef:pe,elements:{floating:$e,domReference:ct},refs:Yt}=N,{enabled:In=!0,axis:br="both",x:Ir=null,y:Wr=null}=_,Gr=React.useRef(!1),pi=React.useRef(null),[Ri,Zi]=React.useState(),[ia,Fa]=React.useState([]),Ba=el((Co,ao)=>{Gr.current||pe.current.openEvent&&!yu(pe.current.openEvent)||Yt.setPositionReference(Ks(ct,{x:Co,y:ao,axis:br,dataRef:pe,pointerType:Ri}))}),Va=el(Co=>{Ir!=null||Wr!=null||(G?pi.current||Fa([]):Ba(Co.clientX,Co.clientY))}),Ra=isMouseLikePointerType(Ri)?$e:G,Ya=React.useCallback(()=>{if(!Ra||!In||Ir!=null||Wr!=null)return;const Co=getWindow($e);function ao($o){const ko=getTarget($o);contains($e,ko)?(Co.removeEventListener("mousemove",ao),pi.current=null):Ba($o.clientX,$o.clientY)}if(!pe.current.openEvent||yu(pe.current.openEvent)){Co.addEventListener("mousemove",ao);const $o=()=>{Co.removeEventListener("mousemove",ao),pi.current=null};return pi.current=$o,$o}Yt.setPositionReference(ct)},[Ra,In,Ir,Wr,$e,pe,Yt,ct,Ba]);React.useEffect(()=>Ya(),[Ya,ia]),React.useEffect(()=>{In&&!$e&&(Gr.current=!1)},[In,$e]),React.useEffect(()=>{!In&&G&&(Gr.current=!0)},[In,G]),qs(()=>{In&&(Ir!=null||Wr!=null)&&(Gr.current=!1,Ba(Ir,Wr))},[In,Ir,Wr,Ba]);const Ao=React.useMemo(()=>{function Co(ao){let{pointerType:$o}=ao;Zi($o)}return{onPointerDown:Co,onPointerEnter:Co,onMouseMove:Va,onMouseEnter:Va}},[Va]);return React.useMemo(()=>In?{reference:Ao}:{},[In,Ao])}const fu={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Bs={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},_s=N=>{var _,G;return{escapeKey:typeof N=="boolean"?N:(_=N?.escapeKey)!=null?_:!1,outsidePress:typeof N=="boolean"?N:(G=N?.outsidePress)!=null?G:!0}};function Ku(N,_){_===void 0&&(_={});const{open:G,onOpenChange:pe,elements:$e,dataRef:ct}=N,{enabled:Yt=!0,escapeKey:In=!0,outsidePress:br=!0,outsidePressEvent:Ir="pointerdown",referencePress:Wr=!1,referencePressEvent:Gr="pointerdown",ancestorScroll:pi=!1,bubbles:Ri,capture:Zi}=_,ia=uc(),Fa=el(typeof br=="function"?br:()=>!1),Ba=typeof br=="function"?Fa:br,Va=C.useRef(!1),Ra=C.useRef(!1),{escapeKey:Ya,outsidePress:Ao}=_s(Ri),{escapeKey:Co,outsidePress:ao}=_s(Zi),$o=C.useRef(!1),ko=el(Yo=>{var Ro;if(!G||!Yt||!In||Yo.key!=="Escape"||$o.current)return;const jo=(Ro=ct.current.floatingContext)==null?void 0:Ro.nodeId,ss=ia?Ta(ia.nodesRef.current,jo):[];if(!Ya&&(Yo.stopPropagation(),ss.length>0)){let La=!0;if(ss.forEach(ts=>{var Lo;if((Lo=ts.context)!=null&&Lo.open&&!ts.context.dataRef.current.__escapeKeyBubbles){La=!1;return}}),!La)return}pe(!1,sh(Yo)?Yo.nativeEvent:Yo,"escape-key")}),Mo=el(Yo=>{var Ro;const jo=()=>{var ss;ko(Yo),(ss=Oc(Yo))==null||ss.removeEventListener("keydown",jo)};(Ro=Oc(Yo))==null||Ro.addEventListener("keydown",jo)}),ds=el(Yo=>{var Ro;const jo=Va.current;Va.current=!1;const ss=Ra.current;if(Ra.current=!1,Ir==="click"&&ss||jo||typeof Ba=="function"&&!Ba(Yo))return;const La=Oc(Yo),ts="["+Pe("inert")+"]",Lo=ru($e.floating).querySelectorAll(ts);let Es=(0,pu.vq)(La)?La:null;for(;Es&&!(0,pu.eu)(Es);){const ns=(0,pu.$4)(Es);if((0,pu.eu)(ns)||!(0,pu.vq)(ns))break;Es=ns}if(Lo.length&&(0,pu.vq)(La)&&!oc(La)&&!Zu(La,$e.floating)&&Array.from(Lo).every(ns=>!Zu(Es,ns)))return;if((0,pu.sb)(La)&&Fo){const ns=La.clientWidth>0&&La.scrollWidth>La.clientWidth,us=La.clientHeight>0&&La.scrollHeight>La.clientHeight;let ys=us&&Yo.offsetX>La.clientWidth;if(us&&(0,pu.L9)(La).direction==="rtl"&&(ys=Yo.offsetX<=La.offsetWidth-La.clientWidth),ys||ns&&Yo.offsetY>La.clientHeight)return}const ou=(Ro=ct.current.floatingContext)==null?void 0:Ro.nodeId,hs=ia&&Ta(ia.nodesRef.current,ou).some(ns=>{var us;return Tf(Yo,(us=ns.context)==null?void 0:us.elements.floating)});if(Tf(Yo,$e.floating)||Tf(Yo,$e.domReference)||hs)return;const Eo=ia?Ta(ia.nodesRef.current,ou):[];if(Eo.length>0){let ns=!0;if(Eo.forEach(us=>{var ys;if((ys=us.context)!=null&&ys.open&&!us.context.dataRef.current.__outsidePressBubbles){ns=!1;return}}),!ns)return}pe(!1,Yo,"outside-press")}),po=el(Yo=>{var Ro;const jo=()=>{var ss;ds(Yo),(ss=Oc(Yo))==null||ss.removeEventListener(Ir,jo)};(Ro=Oc(Yo))==null||Ro.addEventListener(Ir,jo)});C.useEffect(()=>{if(!G||!Yt)return;ct.current.__escapeKeyBubbles=Ya,ct.current.__outsidePressBubbles=Ao;let Yo=-1;function Ro(Lo){pe(!1,Lo,"ancestor-scroll")}function jo(){window.clearTimeout(Yo),$o.current=!0}function ss(){Yo=window.setTimeout(()=>{$o.current=!1},(0,pu.Tc)()?5:0)}const La=ru($e.floating);In&&(La.addEventListener("keydown",Co?Mo:ko,Co),La.addEventListener("compositionstart",jo),La.addEventListener("compositionend",ss)),Ba&&La.addEventListener(Ir,ao?po:ds,ao);let ts=[];return pi&&((0,pu.vq)($e.domReference)&&(ts=(0,pu.v9)($e.domReference)),(0,pu.vq)($e.floating)&&(ts=ts.concat((0,pu.v9)($e.floating))),!(0,pu.vq)($e.reference)&&$e.reference&&$e.reference.contextElement&&(ts=ts.concat((0,pu.v9)($e.reference.contextElement)))),ts=ts.filter(Lo=>{var Es;return Lo!==((Es=La.defaultView)==null?void 0:Es.visualViewport)}),ts.forEach(Lo=>{Lo.addEventListener("scroll",Ro,{passive:!0})}),()=>{In&&(La.removeEventListener("keydown",Co?Mo:ko,Co),La.removeEventListener("compositionstart",jo),La.removeEventListener("compositionend",ss)),Ba&&La.removeEventListener(Ir,ao?po:ds,ao),ts.forEach(Lo=>{Lo.removeEventListener("scroll",Ro)}),window.clearTimeout(Yo)}},[ct,$e,In,Ba,Ir,G,pe,pi,Yt,Ya,Ao,ko,Co,Mo,ds,ao,po]),C.useEffect(()=>{Va.current=!1},[Ba,Ir]);const Qo=C.useMemo(()=>({onKeyDown:ko,[fu[Gr]]:Yo=>{Wr&&pe(!1,Yo.nativeEvent,"reference-press")}}),[ko,pe,Wr,Gr]),Fo=C.useMemo(()=>({onKeyDown:ko,onMouseDown(){Ra.current=!0},onMouseUp(){Ra.current=!0},[Bs[Ir]]:()=>{Va.current=!0}}),[ko,Ir]);return C.useMemo(()=>Yt?{reference:Qo,floating:Fo}:{},[Yt,Qo,Fo])}function al(N){const{open:_=!1,onOpenChange:G,elements:pe}=N,$e=Au(),ct=C.useRef({}),[Yt]=C.useState(()=>Lu()),In=ef()!=null,[br,Ir]=C.useState(pe.reference),Wr=el((Ri,Zi,ia)=>{ct.current.openEvent=Ri?Zi:void 0,Yt.emit("openchange",{open:Ri,event:Zi,reason:ia,nested:In}),G?.(Ri,Zi,ia)}),Gr=C.useMemo(()=>({setPositionReference:Ir}),[]),pi=C.useMemo(()=>({reference:br||pe.reference||null,floating:pe.floating||null,domReference:pe.reference}),[br,pe.reference,pe.floating]);return C.useMemo(()=>({dataRef:ct,open:_,onOpenChange:Wr,elements:pi,events:Yt,floatingId:$e,refs:Gr}),[_,Wr,pi,Yt,$e,Gr])}function El(N){N===void 0&&(N={});const{nodeId:_}=N,G=al({...N,elements:{reference:null,floating:null,...N.elements}}),pe=N.rootContext||G,$e=pe.elements,[ct,Yt]=C.useState(null),[In,br]=C.useState(null),Wr=$e?.domReference||ct,Gr=C.useRef(null),pi=uc();qs(()=>{Wr&&(Gr.current=Wr)},[Wr]);const Ri=(0,Af.we)({...N,elements:{...$e,...In&&{reference:In}}}),Zi=C.useCallback(Ra=>{const Ya=(0,pu.vq)(Ra)?{getBoundingClientRect:()=>Ra.getBoundingClientRect(),contextElement:Ra}:Ra;br(Ya),Ri.refs.setReference(Ya)},[Ri.refs]),ia=C.useCallback(Ra=>{((0,pu.vq)(Ra)||Ra===null)&&(Gr.current=Ra,Yt(Ra)),((0,pu.vq)(Ri.refs.reference.current)||Ri.refs.reference.current===null||Ra!==null&&!(0,pu.vq)(Ra))&&Ri.refs.setReference(Ra)},[Ri.refs]),Fa=C.useMemo(()=>({...Ri.refs,setReference:ia,setPositionReference:Zi,domReference:Gr}),[Ri.refs,ia,Zi]),Ba=C.useMemo(()=>({...Ri.elements,domReference:Wr}),[Ri.elements,Wr]),Va=C.useMemo(()=>({...Ri,...pe,refs:Fa,elements:Ba,nodeId:_}),[Ri,Fa,Ba,_,pe]);return qs(()=>{pe.dataRef.current.floatingContext=Va;const Ra=pi?.nodesRef.current.find(Ya=>Ya.id===_);Ra&&(Ra.context=Va)}),C.useMemo(()=>({...Ri,context:Va,refs:Fa,elements:Ba}),[Ri,Fa,Ba,Va])}function Wu(N,_){_===void 0&&(_={});const{open:G,onOpenChange:pe,events:$e,dataRef:ct,elements:Yt}=N,{enabled:In=!0,visibleOnly:br=!0}=_,Ir=React.useRef(!1),Wr=React.useRef(),Gr=React.useRef(!0);React.useEffect(()=>{if(!In)return;const Ri=getWindow(Yt.domReference);function Zi(){!G&&isHTMLElement(Yt.domReference)&&Yt.domReference===activeElement(getDocument(Yt.domReference))&&(Ir.current=!0)}function ia(){Gr.current=!0}return Ri.addEventListener("blur",Zi),Ri.addEventListener("keydown",ia,!0),()=>{Ri.removeEventListener("blur",Zi),Ri.removeEventListener("keydown",ia,!0)}},[Yt.domReference,G,In]),React.useEffect(()=>{if(!In)return;function Ri(Zi){let{reason:ia}=Zi;(ia==="reference-press"||ia==="escape-key")&&(Ir.current=!0)}return $e.on("openchange",Ri),()=>{$e.off("openchange",Ri)}},[$e,In]),React.useEffect(()=>()=>{clearTimeout(Wr.current)},[]);const pi=React.useMemo(()=>({onPointerDown(Ri){isVirtualPointerEvent(Ri.nativeEvent)||(Gr.current=!1)},onMouseLeave(){Ir.current=!1},onFocus(Ri){if(Ir.current)return;const Zi=getTarget(Ri.nativeEvent);if(br&&isElement(Zi))try{if(isSafari()&&isMac())throw Error();if(!Zi.matches(":focus-visible"))return}catch{if(!Gr.current&&!isTypeableElement(Zi))return}pe(!0,Ri.nativeEvent,"focus")},onBlur(Ri){Ir.current=!1;const Zi=Ri.relatedTarget,ia=Ri.nativeEvent,Fa=isElement(Zi)&&Zi.hasAttribute(Pe("focus-guard"))&&Zi.getAttribute("data-type")==="outside";Wr.current=window.setTimeout(()=>{var Ba;const Va=activeElement(Yt.domReference?Yt.domReference.ownerDocument:document);!Zi&&Va===Yt.domReference||contains((Ba=ct.current.floatingContext)==null?void 0:Ba.refs.floating.current,Va)||contains(Yt.domReference,Va)||Fa||pe(!1,ia,"focus")})}}),[ct,Yt.domReference,pe,br]);return React.useMemo(()=>In?{reference:pi}:{},[In,pi])}const ol="active",Rc="selected";function fl(N,_,G){const pe=new Map,$e=G==="item";let ct=N;if($e&&N){const{[ol]:Yt,[Rc]:In,...br}=N;ct=br}return{...G==="floating"&&{tabIndex:-1,[Gh]:""},...ct,..._.map(Yt=>{const In=Yt?Yt[G]:null;return typeof In=="function"?N?In(N):null:In}).concat(N).reduce((Yt,In)=>(In&&Object.entries(In).forEach(br=>{let[Ir,Wr]=br;if(!($e&&[ol,Rc].includes(Ir)))if(Ir.indexOf("on")===0){if(pe.has(Ir)||pe.set(Ir,[]),typeof Wr=="function"){var Gr;(Gr=pe.get(Ir))==null||Gr.push(Wr),Yt[Ir]=function(){for(var pi,Ri=arguments.length,Zi=new Array(Ri),ia=0;ia<Ri;ia++)Zi[ia]=arguments[ia];return(pi=pe.get(Ir))==null?void 0:pi.map(Fa=>Fa(...Zi)).find(Fa=>Fa!==void 0)}}}else Yt[Ir]=Wr}),Yt),{})}}function Pc(N){N===void 0&&(N=[]);const _=N.map(In=>In?.reference),G=N.map(In=>In?.floating),pe=N.map(In=>In?.item),$e=C.useCallback(In=>fl(In,N,"reference"),_),ct=C.useCallback(In=>fl(In,N,"floating"),G),Yt=C.useCallback(In=>fl(In,N,"item"),pe);return C.useMemo(()=>({getReferenceProps:$e,getFloatingProps:ct,getItemProps:Yt}),[$e,ct,Yt])}let tf=!1;function Ic(N,_,G){switch(N){case"vertical":return _;case"horizontal":return G;default:return _||G}}function vc(N,_){return Ic(_,N===Vf||N===Xc,N===Uc||N===bo)}function Dc(N,_,G){return Ic(_,N===Xc,G?N===Uc:N===bo)||N==="Enter"||N===" "||N===""}function pf(N,_,G){return Ic(_,G?N===Uc:N===bo,N===Xc)}function nf(N,_,G){return Ic(_,G?N===bo:N===Uc,N===Vf)}function Rl(N,_){const{open:G,onOpenChange:pe,elements:$e}=N,{listRef:ct,activeIndex:Yt,onNavigate:In=()=>{},enabled:br=!0,selectedIndex:Ir=null,allowEscape:Wr=!1,loop:Gr=!1,nested:pi=!1,rtl:Ri=!1,virtual:Zi=!1,focusItemOnOpen:ia="auto",focusItemOnHover:Fa=!0,openOnArrowKeyDown:Ba=!0,disabledIndices:Va=void 0,orientation:Ra="vertical",cols:Ya=1,scrollItemIntoView:Ao=!0,virtualItemRef:Co,itemSizes:ao,dense:$o=!1}=_,ko=_p($e.floating),Mo=ut(ko),ds=ef(),po=uc(),Qo=el(In),Fo=as($e.domReference),Yo=C.useRef(ia),Ro=C.useRef(Ir??-1),jo=C.useRef(null),ss=C.useRef(!0),La=C.useRef(Qo),ts=C.useRef(!!$e.floating),Lo=C.useRef(G),Es=C.useRef(!1),ou=C.useRef(!1),hs=ut(Va),Eo=ut(G),ns=ut(Ao),us=ut(Ir),[ys,ws]=C.useState(),[Gs,Qu]=C.useState(),dl=el(function(su,tl,$s){$s===void 0&&($s=!1);function du(nl){Zi?(ws(nl.id),po?.events.emit("virtualfocus",nl),Co&&(Co.current=nl)):Wi(nl,{preventScroll:!0,sync:sd()&&Eu()?tf||Es.current:!1})}const Fc=su.current[tl.current];Fc&&du(Fc),requestAnimationFrame(()=>{const nl=su.current[tl.current]||Fc;if(!nl)return;Fc||du(nl);const nc=ns.current;nc&&zs&&($s||!ss.current)&&(nl.scrollIntoView==null||nl.scrollIntoView(typeof nc=="boolean"?{block:"nearest",inline:"nearest"}:nc))})});qs(()=>{document.createElement("div").focus({get preventScroll(){return tf=!0,!1}})},[]),qs(()=>{br&&(G&&$e.floating?Yo.current&&Ir!=null&&(ou.current=!0,Ro.current=Ir,Qo(Ir)):ts.current&&(Ro.current=-1,La.current(null)))},[br,G,$e.floating,Ir,Qo]),qs(()=>{if(br&&G&&$e.floating)if(Yt==null){if(Es.current=!1,us.current!=null)return;if(ts.current&&(Ro.current=-1,dl(ct,Ro)),(!Lo.current||!ts.current)&&Yo.current&&(jo.current!=null||Yo.current===!0&&jo.current==null)){let su=0;const tl=()=>{ct.current[0]==null?(su<2&&(su?requestAnimationFrame:queueMicrotask)(tl),su++):(Ro.current=jo.current==null||Dc(jo.current,Ra,Ri)||pi?Wf(ct,hs.current):Gf(ct,hs.current),jo.current=null,Qo(Ro.current))};tl()}}else sc(ct,Yt)||(Ro.current=Yt,dl(ct,Ro,ou.current),ou.current=!1)},[br,G,$e.floating,Yt,us,pi,ct,Ra,Ri,Qo,dl,hs]),qs(()=>{var su;if(!br||$e.floating||!po||Zi||!ts.current)return;const tl=po.nodesRef.current,$s=(su=tl.find(nl=>nl.id===ds))==null||(su=su.context)==null?void 0:su.elements.floating,du=Xl(ru($e.floating)),Fc=tl.some(nl=>nl.context&&Zu(nl.context.elements.floating,du));$s&&!Fc&&ss.current&&$s.focus({preventScroll:!0})},[br,$e.floating,po,ds,Zi]),qs(()=>{if(!br||!po||!Zi||ds)return;function su(tl){Qu(tl.id),Co&&(Co.current=tl)}return po.events.on("virtualfocus",su),()=>{po.events.off("virtualfocus",su)}},[br,po,Zi,ds,Co]),qs(()=>{La.current=Qo,ts.current=!!$e.floating}),qs(()=>{G||(jo.current=null)},[G]),qs(()=>{Lo.current=G},[G]);const Xf=Yt!=null,zs=C.useMemo(()=>{function su($s){if(!G)return;const du=ct.current.indexOf($s);du!==-1&&Qo(du)}return{onFocus($s){let{currentTarget:du}=$s;su(du)},onClick:$s=>{let{currentTarget:du}=$s;return du.focus({preventScroll:!0})},...Fa&&{onMouseMove($s){let{currentTarget:du}=$s;su(du)},onPointerLeave($s){let{pointerType:du}=$s;!ss.current||du==="touch"||(Ro.current=-1,dl(ct,Ro),Qo(null),Zi||Wi(Mo.current,{preventScroll:!0}))}}}},[G,Mo,dl,Fa,ct,Qo,Zi]),hl=el(su=>{if(ss.current=!1,Es.current=!0,su.which===229||!Eo.current&&su.currentTarget===Mo.current)return;if(pi&&nf(su.key,Ra,Ri)){Tl(su),pe(!1,su.nativeEvent,"list-navigation"),(0,pu.sb)($e.domReference)&&(Zi?po?.events.emit("virtualfocus",$e.domReference):$e.domReference.focus());return}const tl=Ro.current,$s=Wf(ct,Va),du=Gf(ct,Va);if(Fo||(su.key==="Home"&&(Tl(su),Ro.current=$s,Qo(Ro.current)),su.key==="End"&&(Tl(su),Ro.current=du,Qo(Ro.current))),Ya>1){const Fc=ao||Array.from({length:ct.current.length},()=>({width:1,height:1})),nl=uh(Fc,Ya,$o),nc=nl.findIndex(yf=>yf!=null&&!Tc(ct.current,yf,Va)),xh=nl.reduce((yf,Sd,$h)=>Sd!=null&&!Tc(ct.current,Sd,Va)?$h:yf,-1),Gd=nl[ld({current:nl.map(yf=>yf!=null?ct.current[yf]:null)},{event:su,orientation:Ra,loop:Gr,rtl:Ri,cols:Ya,disabledIndices:ch([...Va||ct.current.map((yf,Sd)=>Tc(ct.current,Sd)?Sd:void 0),void 0],nl),minIndex:nc,maxIndex:xh,prevIndex:lh(Ro.current>du?$s:Ro.current,Fc,nl,Ya,su.key===Xc?"bl":su.key===(Ri?Uc:bo)?"tr":"tl"),stopEvent:!0})];if(Gd!=null&&(Ro.current=Gd,Qo(Ro.current)),Ra==="both")return}if(vc(su.key,Ra)){if(Tl(su),G&&!Zi&&Xl(su.currentTarget.ownerDocument)===su.currentTarget){Ro.current=Dc(su.key,Ra,Ri)?$s:du,Qo(Ro.current);return}Dc(su.key,Ra,Ri)?Gr?Ro.current=tl>=du?Wr&&tl!==ct.current.length?-1:$s:Uu(ct,{startingIndex:tl,disabledIndices:Va}):Ro.current=Math.min(du,Uu(ct,{startingIndex:tl,disabledIndices:Va})):Gr?Ro.current=tl<=$s?Wr&&tl!==-1?ct.current.length:du:Uu(ct,{startingIndex:tl,decrement:!0,disabledIndices:Va}):Ro.current=Math.max($s,Uu(ct,{startingIndex:tl,decrement:!0,disabledIndices:Va})),sc(ct,Ro.current)?Qo(null):Qo(Ro.current)}}),Qf=C.useMemo(()=>Zi&&G&&Xf&&{"aria-activedescendant":Gs||ys},[Zi,G,Xf,Gs,ys]),wh=C.useMemo(()=>({"aria-orientation":Ra==="both"?void 0:Ra,...!as($e.domReference)&&Qf,onKeyDown:hl,onPointerMove(){ss.current=!0}}),[Qf,hl,$e.domReference,Ra]),fv=C.useMemo(()=>{function su($s){ia==="auto"&&Zc($s.nativeEvent)&&(Yo.current=!0)}function tl($s){Yo.current=ia,ia==="auto"&&cl($s.nativeEvent)&&(Yo.current=!0)}return{...Qf,onKeyDown($s){ss.current=!1;const du=$s.key.startsWith("Arrow"),Fc=["Home","End"].includes($s.key),nl=du||Fc,nc=pf($s.key,Ra,Ri),xh=nf($s.key,Ra,Ri),Gd=vc($s.key,Ra),yf=(pi?nc:Gd)||$s.key==="Enter"||$s.key.trim()==="";if(Zi&&G){const Uo=po?.nodesRef.current.find(ks=>ks.parentId==null),Os=po&&Uo?co(po.nodesRef.current,Uo.id):null;if(nl&&Os&&Co){const ks=new KeyboardEvent("keydown",{key:$s.key,bubbles:!0});if(nc||xh){var Sd,$h;const sl=((Sd=Os.context)==null?void 0:Sd.elements.domReference)===$s.currentTarget,ul=xh&&!sl?($h=Os.context)==null?void 0:$h.elements.domReference:nc?ct.current.find(rf=>rf?.id===ys):null;ul&&(Tl($s),ul.dispatchEvent(ks),Qu(void 0))}if((Gd||Fc)&&Os.context&&Os.context.open&&Os.parentId&&$s.currentTarget!==Os.context.elements.domReference){var dv;Tl($s),(dv=Os.context.elements.domReference)==null||dv.dispatchEvent(ks);return}}return hl($s)}if(!(!G&&!Ba&&du)){if(yf&&(jo.current=pi&&Gd?null:$s.key),pi){nc&&(Tl($s),G?(Ro.current=Wf(ct,hs.current),Qo(Ro.current)):pe(!0,$s.nativeEvent,"list-navigation"));return}Gd&&(Ir!=null&&(Ro.current=Ir),Tl($s),!G&&Ba?pe(!0,$s.nativeEvent,"list-navigation"):hl($s),G&&Qo(Ro.current))}},onFocus(){G&&!Zi&&Qo(null)},onPointerDown:tl,onMouseDown:su,onClick:su}},[ys,Qf,hl,hs,ia,ct,pi,Qo,pe,G,Ba,Ra,Ri,Ir,po,Zi,Co]);return C.useMemo(()=>br?{reference:fv,floating:wh,item:zs}:{},[br,fv,wh,zs])}const lc=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pd(N,_){var G;_===void 0&&(_={});const{open:pe,floatingId:$e}=N,{enabled:ct=!0,role:Yt="dialog"}=_,In=(G=lc.get(Yt))!=null?G:Yt,br=Au(),Wr=ef()!=null,Gr=C.useMemo(()=>In==="tooltip"||Yt==="label"?{["aria-"+(Yt==="label"?"labelledby":"describedby")]:pe?$e:void 0}:{"aria-expanded":pe?"true":"false","aria-haspopup":In==="alertdialog"?"dialog":In,"aria-controls":pe?$e:void 0,...In==="listbox"&&{role:"combobox"},...In==="menu"&&{id:br},...In==="menu"&&Wr&&{role:"menuitem"},...Yt==="select"&&{"aria-autocomplete":"none"},...Yt==="combobox"&&{"aria-autocomplete":"list"}},[In,$e,Wr,pe,br,Yt]),pi=C.useMemo(()=>{const Zi={id:$e,...In&&{role:In}};return In==="tooltip"||Yt==="label"?Zi:{...Zi,...In==="menu"&&{"aria-labelledby":br}}},[In,$e,br,Yt]),Ri=C.useCallback(Zi=>{let{active:ia,selected:Fa}=Zi;const Ba={role:"option",...ia&&{id:$e+"-option"}};switch(Yt){case"select":return{...Ba,"aria-selected":ia&&Fa};case"combobox":return{...Ba,...ia&&{"aria-selected":!0}}}return{}},[$e,Yt]);return C.useMemo(()=>ct?{reference:Gr,floating:pi,item:Ri}:{},[ct,Gr,pi,Ri])}const tc=N=>N.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(_,G)=>(G?"-":"")+_.toLowerCase());function vd(N,_){return typeof N=="function"?N(_):N}function sg(N,_){const[G,pe]=React.useState(N);return N&&!G&&pe(!0),React.useEffect(()=>{if(!N&&G){const $e=setTimeout(()=>pe(!1),_);return()=>clearTimeout($e)}},[N,G,_]),G}function Ov(N,_){_===void 0&&(_={});const{open:G,elements:{floating:pe}}=N,{duration:$e=250}=_,Yt=(typeof $e=="number"?$e:$e.close)||0,[In,br]=React.useState("unmounted"),Ir=sg(G,Yt);return!Ir&&In==="close"&&br("unmounted"),qs(()=>{if(pe){if(G){br("initial");const Wr=requestAnimationFrame(()=>{br("open")});return()=>{cancelAnimationFrame(Wr)}}br("close")}},[G,pe]),{isMounted:Ir,status:In}}function FS(N,_){_===void 0&&(_={});const{initial:G={opacity:0},open:pe,close:$e,common:ct,duration:Yt=250}=_,In=N.placement,br=In.split("-")[0],Ir=React.useMemo(()=>({side:br,placement:In}),[br,In]),Wr=typeof Yt=="number",Gr=(Wr?Yt:Yt.open)||0,pi=(Wr?Yt:Yt.close)||0,[Ri,Zi]=React.useState(()=>({...vd(ct,Ir),...vd(G,Ir)})),{isMounted:ia,status:Fa}=Ov(N,{duration:Yt}),Ba=ut(G),Va=ut(pe),Ra=ut($e),Ya=ut(ct);return qs(()=>{const Ao=vd(Ba.current,Ir),Co=vd(Ra.current,Ir),ao=vd(Ya.current,Ir),$o=vd(Va.current,Ir)||Object.keys(Ao).reduce((ko,Mo)=>(ko[Mo]="",ko),{});if(Fa==="initial"&&Zi(ko=>({transitionProperty:ko.transitionProperty,...ao,...Ao})),Fa==="open"&&Zi({transitionProperty:Object.keys($o).map(tc).join(","),transitionDuration:Gr+"ms",...ao,...$o}),Fa==="close"){const ko=Co||Ao;Zi({transitionProperty:Object.keys(ko).map(tc).join(","),transitionDuration:pi+"ms",...ao,...ko})}},[pi,Ra,Ba,Va,Ya,Gr,Fa,Ir]),{isMounted:ia,styles:Ri}}function M0(N,_){var G;const{open:pe,dataRef:$e}=N,{listRef:ct,activeIndex:Yt,onMatch:In,onTypingChange:br,enabled:Ir=!0,findMatch:Wr=null,resetMs:Gr=750,ignoreKeys:pi=[],selectedIndex:Ri=null}=_,Zi=React.useRef(),ia=React.useRef(""),Fa=React.useRef((G=Ri??Yt)!=null?G:-1),Ba=React.useRef(null),Va=el(In),Ra=el(br),Ya=ut(Wr),Ao=ut(pi);qs(()=>{pe&&(clearTimeout(Zi.current),Ba.current=null,ia.current="")},[pe]),qs(()=>{if(pe&&ia.current===""){var Mo;Fa.current=(Mo=Ri??Yt)!=null?Mo:-1}},[pe,Ri,Yt]);const Co=el(Mo=>{Mo?$e.current.typing||($e.current.typing=Mo,Ra(Mo)):$e.current.typing&&($e.current.typing=Mo,Ra(Mo))}),ao=el(Mo=>{function ds(Ro,jo,ss){const La=Ya.current?Ya.current(jo,ss):jo.find(ts=>ts?.toLocaleLowerCase().indexOf(ss.toLocaleLowerCase())===0);return La?Ro.indexOf(La):-1}const po=ct.current;if(ia.current.length>0&&ia.current[0]!==" "&&(ds(po,po,ia.current)===-1?Co(!1):Mo.key===" "&&stopEvent(Mo)),po==null||Ao.current.includes(Mo.key)||Mo.key.length!==1||Mo.ctrlKey||Mo.metaKey||Mo.altKey)return;pe&&Mo.key!==" "&&(stopEvent(Mo),Co(!0)),po.every(Ro=>{var jo,ss;return Ro?((jo=Ro[0])==null?void 0:jo.toLocaleLowerCase())!==((ss=Ro[1])==null?void 0:ss.toLocaleLowerCase()):!0})&&ia.current===Mo.key&&(ia.current="",Fa.current=Ba.current),ia.current+=Mo.key,clearTimeout(Zi.current),Zi.current=setTimeout(()=>{ia.current="",Fa.current=Ba.current,Co(!1)},Gr);const Fo=Fa.current,Yo=ds(po,[...po.slice((Fo||0)+1),...po.slice(0,(Fo||0)+1)],ia.current);Yo!==-1?(Va(Yo),Ba.current=Yo):Mo.key!==" "&&(ia.current="",Co(!1))}),$o=React.useMemo(()=>({onKeyDown:ao}),[ao]),ko=React.useMemo(()=>({onKeyDown:ao,onKeyUp(Mo){Mo.key===" "&&Co(!1)}}),[ao,Co]);return React.useMemo(()=>Ir?{reference:$o,floating:ko}:{},[Ir,$o,ko])}function Tv(N,_){return{...N,rects:{...N.rects,floating:{...N.rects.floating,height:_}}}}const Mc=N=>({name:"inner",options:N,async fn(_){const{listRef:G,overflowRef:pe,onFallbackChange:$e,offset:ct=0,index:Yt=0,minItemsVisible:In=4,referenceOverflowThreshold:br=0,scrollRef:Ir,...Wr}=evaluate(N,_),{rects:Gr,elements:{floating:pi}}=_,Ri=G.current[Yt],Zi=Ir?.current||pi,ia=pi.clientTop||Zi.clientTop,Fa=pi.clientTop!==0,Ba=Zi.clientTop!==0,Va=pi===Zi;if(!Ri)return{};const Ra={..._,...await offset(-Ri.offsetTop-pi.clientTop-Gr.reference.height/2-Ri.offsetHeight/2-ct).fn(_)},Ya=await detectOverflow(Tv(Ra,Zi.scrollHeight+ia+pi.clientTop),Wr),Ao=await detectOverflow(Ra,{...Wr,elementContext:"reference"}),Co=max(0,Ya.top),ao=Ra.y+Co,Mo=(Zi.scrollHeight>Zi.clientHeight?ds=>ds:round)(max(0,Zi.scrollHeight+(Fa&&Va||Ba?ia*2:0)-Co-max(0,Ya.bottom)));if(Zi.style.maxHeight=Mo+"px",Zi.scrollTop=Co,$e){const ds=Zi.offsetHeight<Ri.offsetHeight*min(In,G.current.length)-1||Ao.top>=-br||Ao.bottom>=-br;ReactDOM.flushSync(()=>$e(ds))}return pe&&(pe.current=await detectOverflow(Tv({...Ra,y:ao},Zi.offsetHeight+ia+pi.clientTop),Wr)),{y:ao}}});function jS(N,_){const{open:G,elements:pe}=N,{enabled:$e=!0,overflowRef:ct,scrollRef:Yt,onChange:In}=_,br=el(In),Ir=React.useRef(!1),Wr=React.useRef(null),Gr=React.useRef(null);React.useEffect(()=>{if(!$e)return;function Ri(ia){if(ia.ctrlKey||!Zi||ct.current==null)return;const Fa=ia.deltaY,Ba=ct.current.top>=-.5,Va=ct.current.bottom>=-.5,Ra=Zi.scrollHeight-Zi.clientHeight,Ya=Fa<0?-1:1,Ao=Fa<0?"max":"min";Zi.scrollHeight<=Zi.clientHeight||(!Ba&&Fa>0||!Va&&Fa<0?(ia.preventDefault(),ReactDOM.flushSync(()=>{br(Co=>Co+Math[Ao](Fa,Ra*Ya))})):/firefox/i.test(getUserAgent())&&(Zi.scrollTop+=Fa))}const Zi=Yt?.current||pe.floating;if(G&&Zi)return Zi.addEventListener("wheel",Ri),requestAnimationFrame(()=>{Wr.current=Zi.scrollTop,ct.current!=null&&(Gr.current={...ct.current})}),()=>{Wr.current=null,Gr.current=null,Zi.removeEventListener("wheel",Ri)}},[$e,G,pe.floating,ct,Yt,br]);const pi=React.useMemo(()=>({onKeyDown(){Ir.current=!0},onWheel(){Ir.current=!1},onPointerMove(){Ir.current=!1},onScroll(){const Ri=Yt?.current||pe.floating;if(!(!ct.current||!Ri||!Ir.current)){if(Wr.current!==null){const Zi=Ri.scrollTop-Wr.current;(ct.current.bottom<-.5&&Zi<-1||ct.current.top<-.5&&Zi>1)&&ReactDOM.flushSync(()=>br(ia=>ia+Zi))}requestAnimationFrame(()=>{Wr.current=Ri.scrollTop})}}}),[pe.floating,br,ct,Yt]);return React.useMemo(()=>$e?{floating:pi}:{},[$e,pi])}function ug(N,_){const[G,pe]=N;let $e=!1;const ct=_.length;for(let Yt=0,In=ct-1;Yt<ct;In=Yt++){const[br,Ir]=_[Yt]||[0,0],[Wr,Gr]=_[In]||[0,0];Ir>=pe!=Gr>=pe&&G<=(Wr-br)*(pe-Ir)/(Gr-Ir)+br&&($e=!$e)}return $e}function vf(N,_){return N[0]>=_.x&&N[0]<=_.x+_.width&&N[1]>=_.y&&N[1]<=_.y+_.height}function BS(N){N===void 0&&(N={});const{buffer:_=.5,blockPointerEvents:G=!1,requireIntent:pe=!0}=N;let $e,ct=!1,Yt=null,In=null,br=performance.now();function Ir(Gr,pi){const Ri=performance.now(),Zi=Ri-br;if(Yt===null||In===null||Zi===0)return Yt=Gr,In=pi,br=Ri,null;const ia=Gr-Yt,Fa=pi-In,Va=Math.sqrt(ia*ia+Fa*Fa)/Zi;return Yt=Gr,In=pi,br=Ri,Va}const Wr=Gr=>{let{x:pi,y:Ri,placement:Zi,elements:ia,onClose:Fa,nodeId:Ba,tree:Va}=Gr;return function(Ya){function Ao(){clearTimeout($e),Fa()}if(clearTimeout($e),!ia.domReference||!ia.floating||Zi==null||pi==null||Ri==null)return;const{clientX:Co,clientY:ao}=Ya,$o=[Co,ao],ko=getTarget(Ya),Mo=Ya.type==="mouseleave",ds=contains(ia.floating,ko),po=contains(ia.domReference,ko),Qo=ia.domReference.getBoundingClientRect(),Fo=ia.floating.getBoundingClientRect(),Yo=Zi.split("-")[0],Ro=pi>Fo.right-Fo.width/2,jo=Ri>Fo.bottom-Fo.height/2,ss=vf($o,Qo),La=Fo.width>Qo.width,ts=Fo.height>Qo.height,Lo=(La?Qo:Fo).left,Es=(La?Qo:Fo).right,ou=(ts?Qo:Fo).top,hs=(ts?Qo:Fo).bottom;if(ds&&(ct=!0,!Mo))return;if(po&&(ct=!1),po&&!Mo){ct=!0;return}if(Mo&&isElement(Ya.relatedTarget)&&contains(ia.floating,Ya.relatedTarget)||Va&&Ta(Va.nodesRef.current,Ba).some(us=>{let{context:ys}=us;return ys?.open}))return;if(Yo==="top"&&Ri>=Qo.bottom-1||Yo==="bottom"&&Ri<=Qo.top+1||Yo==="left"&&pi>=Qo.right-1||Yo==="right"&&pi<=Qo.left+1)return Ao();let Eo=[];switch(Yo){case"top":Eo=[[Lo,Qo.top+1],[Lo,Fo.bottom-1],[Es,Fo.bottom-1],[Es,Qo.top+1]];break;case"bottom":Eo=[[Lo,Fo.top+1],[Lo,Qo.bottom-1],[Es,Qo.bottom-1],[Es,Fo.top+1]];break;case"left":Eo=[[Fo.right-1,hs],[Fo.right-1,ou],[Qo.left+1,ou],[Qo.left+1,hs]];break;case"right":Eo=[[Qo.right-1,hs],[Qo.right-1,ou],[Fo.left+1,ou],[Fo.left+1,hs]];break}function ns(us){let[ys,ws]=us;switch(Yo){case"top":{const Gs=[La?ys+_/2:Ro?ys+_*4:ys-_*4,ws+_+1],Qu=[La?ys-_/2:Ro?ys+_*4:ys-_*4,ws+_+1],dl=[[Fo.left,Ro||La?Fo.bottom-_:Fo.top],[Fo.right,Ro?La?Fo.bottom-_:Fo.top:Fo.bottom-_]];return[Gs,Qu,...dl]}case"bottom":{const Gs=[La?ys+_/2:Ro?ys+_*4:ys-_*4,ws-_],Qu=[La?ys-_/2:Ro?ys+_*4:ys-_*4,ws-_],dl=[[Fo.left,Ro||La?Fo.top+_:Fo.bottom],[Fo.right,Ro?La?Fo.top+_:Fo.bottom:Fo.top+_]];return[Gs,Qu,...dl]}case"left":{const Gs=[ys+_+1,ts?ws+_/2:jo?ws+_*4:ws-_*4],Qu=[ys+_+1,ts?ws-_/2:jo?ws+_*4:ws-_*4];return[...[[jo||ts?Fo.right-_:Fo.left,Fo.top],[jo?ts?Fo.right-_:Fo.left:Fo.right-_,Fo.bottom]],Gs,Qu]}case"right":{const Gs=[ys-_,ts?ws+_/2:jo?ws+_*4:ws-_*4],Qu=[ys-_,ts?ws-_/2:jo?ws+_*4:ws-_*4],dl=[[jo||ts?Fo.left+_:Fo.right,Fo.top],[jo?ts?Fo.left+_:Fo.right:Fo.left+_,Fo.bottom]];return[Gs,Qu,...dl]}}}if(!ug([Co,ao],Eo)){if(ct&&!ss)return Ao();if(!Mo&&pe){const us=Ir(Ya.clientX,Ya.clientY);if(us!==null&&us<.1)return Ao()}ug([Co,ao],ns([pi,Ri]))?!ct&&pe&&($e=window.setTimeout(Ao,40)):Ao()}}};return Wr.__options={blockPointerEvents:G},Wr}var k0=u(68079),lg=u(66404),cg=u(72181);const Ep=(0,C.forwardRef)(function({children:_,active:G,addGroupBottomBorder:pe,isMultiValueEdit:$e,checked:ct,...Yt},In){const br=(0,Jr.of)(Hh),Ir=(0,C.useId)();return C.createElement("div",{ref:In,role:"option",id:Ir,"aria-selected":G,className:(0,Oe.cx)(br.option,G&&br.optionFocused,pe&&br.groupBottomBorder),...Yt},C.createElement("div",{className:br.optionBody,"data-testid":`data-testid ad hoc filter option value ${_}`},C.createElement("span",null,$e?C.createElement(le.S,{tabIndex:-1,checked:ct,className:br.checkbox}):null,_)))}),Hh=N=>({option:(0,Oe.css)({label:"grafana-select-option",top:0,left:0,width:"100%",position:"absolute",padding:N.spacing(1),display:"flex",alignItems:"center",flexDirection:"row",flexShrink:0,whiteSpace:"nowrap",cursor:"pointer","&:hover":{background:N.colors.action.hover,"@media (forced-colors: active), (prefers-contrast: more)":{border:`1px solid ${N.colors.primary.border}`}}}),optionFocused:(0,Oe.css)({label:"grafana-select-option-focused",background:N.colors.action.focus,"@media (forced-colors: active), (prefers-contrast: more)":{border:`1px solid ${N.colors.primary.border}`}}),optionBody:(0,Oe.css)({label:"grafana-select-option-body",display:"flex",fontWeight:N.typography.fontWeightMedium,flexDirection:"column",flexGrow:1}),groupBottomBorder:(0,Oe.css)({borderBottom:`1px solid ${N.colors.border.weak}`}),checkbox:(0,Oe.css)({paddingRight:N.spacing(.5)}),multiValueApplyWrapper:(0,Oe.css)({position:"fixed",top:0,left:0,display:"flex",backgroundColor:N.colors.background.primary,color:N.colors.text.primary,boxShadow:N.shadows.z2,overflowY:"auto",zIndex:N.zIndex.dropdown,gap:N.spacing(1.5),padding:`${N.spacing(1.5)} ${N.spacing(1)}`})}),L0=()=>C.createElement(Ep,{onClick:N=>N.stopPropagation()},C.createElement(ni.x6,{i18nKey:"grafana-scenes.variables.loading-options-placeholder.loading-options"},"Loading options...")),fg=()=>C.createElement(Ep,{onClick:N=>N.stopPropagation()},C.createElement(ni.x6,{i18nKey:"grafana-scenes.variables.no-options-placeholder.no-options-found"},"No options found")),dg=({handleFetchOptions:N})=>C.createElement(Ep,{onClick:N},C.createElement(ni.x6,{i18nKey:"grafana-scenes.variables.options-error-placeholder.error-occurred-fetching-labels-click-retry"},"An error has occurred fetching labels. Click to retry")),hg=({onApply:N,floatingElement:_,maxOptionWidth:G,menuHeight:pe})=>{const $e=(0,Jr.of)(Hh),ct=_?.getBoundingClientRect();return C.createElement("div",{className:$e.multiValueApplyWrapper,style:{width:`${G}px`,transform:`translate(${ct?.left}px,${ct?ct.top+pe:0}px)`}},C.createElement(bs.$n,{onClick:N,size:"sm",tabIndex:-1},C.createElement(ni.x6,{i18nKey:"grafana-scenes.variables.multi-value-apply-button.apply"},"Apply")))},pg=8,Av=6,N0=8,vg=5,Rv=38,F0=60,j0=366,mg=N=>N.flatMap(_=>_.options?[_,..._.options]:[_]),Pv=(N,_,G)=>{var pe,$e,ct,Yt;let In=182;const br=[],Ir=[];for(let Wr=0;Wr<N.length;Wr++){br.push(null),(pe=N[Wr])!=null&&pe.options&&Ir.push(Wr);let Gr=(ct=($e=N[Wr].label)!=null?$e:N[Wr].value)!=null?ct:"",pi=pg;Gr.length*pg<(((Yt=N[Wr].description)==null?void 0:Yt.length)||0)*Av&&(Gr=N[Wr].description,pi=Av);const Ri=(N[Wr].isCustom?Gr.length+18:Gr.length)*pi+N0*2;Ri>In&&(In=Ri)}return _.current=[...br],G.current=[...Ir],In},wp={key:"operator",operator:"value",value:"key"},Iv=(N,_,G,pe,$e)=>Kh(wp[N],_,N==="value"?G:void 0,pe,$e),Kh=(N,_,G,pe,$e)=>{_(N),G?.(void 0,$e),setTimeout(()=>pe?.focus())},gg=({filterInputType:N,item:_,filter:G,setFilterMultiValues:pe,onAddCustomValue:$e})=>{var ct,Yt,In,br,Ir;if(N==="key")return{key:_.value,keyLabel:_.label?_.label:_.value,meta:_?.meta};if(N==="value")return _.isCustom&&$e?$e(_,G):{value:_.value,valueLabels:[_.label?_.label:_.value]};if(N==="operator"){if(mf(G.operator)&&!mf(_.value))return pe([]),{operator:_.value,valueLabels:[((ct=G.valueLabels)==null?void 0:ct[0])||((Yt=G.values)==null?void 0:Yt[0])||G.value],values:void 0};if(mf(_.value)&&!mf(G.operator)){const Wr=[((In=G.valueLabels)==null?void 0:In[0])||((br=G.values)==null?void 0:br[0])||G.value],Gr=[G.value];return Gr[0]&&pe([{value:Gr[0],label:(Ir=Wr?.[0])!=null?Ir:Gr[0]}]),{operator:_.value,valueLabels:Wr,values:Gr}}}return{[N]:_.value}},xp="Filter by label values",Dv=(N,_,G,pe,$e)=>{var ct;return _==="key"?$e||xp:_==="value"?G?"Edit values":((ct=N.valueLabels)==null?void 0:ct[0])||"":N[_]&&!pe?`${N[_]}`:$e||xp},Mv=({populateInputOnEdit:N,item:_,filterInputType:G,setInputValue:pe,filter:$e})=>{var ct,Yt,In;N&&!mf(_.value||"")&&wp[G]==="value"?pe((In=(Yt=(ct=$e?.valueLabels)==null?void 0:ct[0])!=null?Yt:$e?.value)!=null?In:""):pe("")};var yg=u(46885);const dh=300,B0=({open:N,onOpenChange:_,activeIndex:G,setActiveIndex:pe,outsidePressIdsToIgnore:$e,listRef:ct,disabledIndicesRef:Yt})=>{const{refs:In,floatingStyles:br,context:Ir}=El({whileElementsMounted:yg.ll,open:N,onOpenChange:_,placement:"bottom-start",middleware:[(0,Af.cY)(10),(0,Af.UU)({padding:10}),(0,Af.Ej)({apply({availableHeight:Fa,availableWidth:Ba,elements:Va}){Va.floating.style.maxHeight=`${Math.min(dh,Fa)}px`,Va.floating.style.maxWidth=`${Ba}px`},padding:10})],strategy:"fixed"}),Wr=pd(Ir,{role:"listbox"}),Gr=Ku(Ir,{outsidePress:Fa=>{var Ba;if(Fa.currentTarget instanceof Element){const Va=Fa.currentTarget;let Ra=Va.id;if(Va.nodeName==="path"&&(Ra=((Ba=Va.parentElement)==null?void 0:Ba.id)||""),$e.includes(Ra))return!1}return!0}}),pi=Rl(Ir,{listRef:ct,activeIndex:G,onNavigate:pe,virtual:!0,loop:!0,disabledIndices:Yt.current}),{getReferenceProps:Ri,getFloatingProps:Zi,getItemProps:ia}=Pc([Wr,Gr,pi]);return{refs:In,floatingStyles:br,context:Ir,getReferenceProps:Ri,getFloatingProps:Zi,getItemProps:ia}},$0=({item:N,handleRemoveMultiValue:_,index:G,handleEditMultiValuePill:pe})=>{var $e,ct;const Yt=(0,Jr.of)(U0),In=(0,C.useCallback)(Gr=>{Gr.stopPropagation(),Gr.preventDefault(),pe(N)},[pe,N]),br=(0,C.useCallback)(Gr=>{Gr.key==="Enter"&&In(Gr)},[In]),Ir=(0,C.useCallback)(Gr=>{Gr.stopPropagation(),Gr.preventDefault(),_(N)},[_,N]),Wr=(0,C.useCallback)(Gr=>{Gr.key==="Enter"&&Ir(Gr)},[Ir]);return C.createElement("div",{className:(0,Oe.cx)(Yt.basePill,Yt.valuePill),onClick:In,onKeyDown:br,tabIndex:0,id:`${N.value}-${G}`},($e=N.label)!=null?$e:N.value,C.createElement(bs.$n,{onClick:Ir,onKeyDownCapture:Wr,fill:"text",size:"sm",variant:"secondary",className:Yt.removeButton,tooltip:(0,ni.t)("grafana-scenes.components.adhoc-filters-combobox.remove-filter-value","Remove filter value - {{itemLabel}}",{itemLabel:(ct=N.label)!=null?ct:N.value})},C.createElement(Ds.I,{name:"times",size:"md",id:`${N.value}-${G}-close-icon`})))},U0=N=>({basePill:(0,Oe.css)({display:"flex",alignItems:"center",background:N.colors.action.disabledBackground,border:`1px solid ${N.colors.border.weak}`,padding:N.spacing(.125,1,.125,1),color:N.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:N.spacing(2.75),...N.typography.bodySmall,cursor:"pointer"}),valuePill:(0,Oe.css)({background:N.colors.action.selected,padding:N.spacing(.125,0,.125,1)}),removeButton:(0,Oe.css)({marginInline:N.spacing(.5),height:"100%",padding:0,cursor:"pointer","&:hover":{color:N.colors.text.primary}})}),kv=(0,C.forwardRef)(function({filter:_,controller:G,isAlwaysWip:pe,handleChangeViewMode:$e,focusOnWipInputRef:ct,populateInputOnEdit:Yt},In){var br,Ir,Wr;const[Gr,pi]=(0,C.useState)(!1),[Ri,Zi]=(0,C.useState)([]),[ia,Fa]=(0,C.useState)(!1),[Ba,Va]=(0,C.useState)(!1),[Ra,Ya]=(0,C.useState)(""),[Ao,Co]=(0,C.useState)(null),[ao,$o]=(0,C.useState)(pe?"key":"value"),[ko,Mo]=(0,C.useState)(!pe&&ao==="value"),ds=(0,Jr.of)(bg),[po,Qo]=(0,C.useState)([]),[Fo,Yo]=(0,C.useState)({}),{allowCustomValue:Ro=!0,onAddCustomValue:jo,filters:ss,inputPlaceholder:La}=G.useState(),ts=(0,C.useRef)(null),Lo=mf(_?.operator||""),Es=Lo&&ao==="value",ou=(0,C.useId)(),hs=(0,C.useRef)([]),Eo=(0,C.useRef)([]),ns=(0,C.useRef)(pe?"key":"value"),us=(0,C.useMemo)(()=>Td(Ri),[Ri]),ys=(0,C.useMemo)(()=>pe?!1:ss.at(-1)===_,[_,pe,ss]),ws=(0,C.useCallback)(()=>{pe&&(G.addWip(),$o("key"),Ya(""))},[G,pe]),Gs=(0,C.useCallback)((Uo,Os,ks,sl)=>{var ul;if(!ks.length&&Os.origin&&Uo.updateToMatchAll(Os),ks.length){const rf=[],gc=[];ks.forEach(qf=>{var Ch;rf.push((Ch=qf.label)!=null?Ch:qf.value),gc.push(qf.value)});let bf=!0;Array.isArray(Os.values)&&Os.values.length===gc.length&&(bf=!Os.values.every((qf,Ch)=>qf===gc[Ch])),bf&&((ul=Uo.startProfile)==null||ul.call(Uo,qe)),Uo.updateFilter(Os,{valueLabels:rf,values:gc,value:gc[0]}),Qo([])}sl||setTimeout(()=>{var rf;return(rf=zs.domReference.current)==null?void 0:rf.focus()})},[]),Qu=(0,C.useCallback)(Uo=>{Qo(Os=>Os.some(ks=>ks.value===Uo.value)?Os.filter(ks=>ks.value!==Uo.value):[...Os,Uo])},[]),dl=(0,C.useCallback)((Uo,Os,ks)=>{pi(Uo),ks&&["outside-press","escape-key"].includes(ks)&&(Es?Gs(G,_,po):_&&_.origin&&Ra===""&&G.updateToMatchAll(_),ws(),$e?.())},[_,po,$e,Gs,ws,Ra,Es,G]),Xf=(0,C.useMemo)(()=>[ou,...po.reduce((Uo,Os,ks)=>[...Uo,`${Os.value}-${ks}`,`${Os.value}-${ks}-close-icon`],[])],[ou,po]),{refs:zs,floatingStyles:hl,context:Qf,getReferenceProps:wh,getFloatingProps:fv,getItemProps:su}=B0({open:Gr,onOpenChange:dl,activeIndex:Ao,setActiveIndex:Co,outsidePressIdsToIgnore:Xf,listRef:hs,disabledIndicesRef:Eo});(0,C.useImperativeHandle)(In,()=>()=>{var Uo;return(Uo=zs.domReference.current)==null?void 0:Uo.focus()},[zs.domReference]);function tl(Uo){const Os=Uo.target.value;Ya(Os),Co(0),ko&&Mo(!1)}const $s=(0,C.useCallback)(Uo=>{Qo(Os=>Os.filter(ks=>ks.value!==Uo.value)),setTimeout(()=>{var Os;return(Os=zs.domReference.current)==null?void 0:Os.focus()})},[zs.domReference]),du=mg(Dp(us(ko?"":Ra)));if(Ro&&ao!=="operator"&&Ra){const Uo=Lf.find(ks=>_?.operator===ks.value),Os={value:Ra.trim(),label:Ra.trim(),isCustom:!0};Uo?.isRegex?du.unshift(Os):du.push(Os)}const Fc=Pv(du,hs,Eo),nl=(0,C.useCallback)(async Uo=>{var Os,ks,sl,ul;const rf=Uo==="key"?hn:xt;Uo!=="operator"&&((Os=G.startInteraction)==null||Os.call(G,rf)),Va(!1),Fa(!0),Zi([]);let gc=[];try{if(Uo==="key"?gc=await G.getKeys(null):Uo==="operator"?gc=G.getOperators():Uo==="value"&&(gc=await G.getValuesFor(_)),ns.current!==Uo){(ks=G.stopInteraction)==null||ks.call(G);return}Zi(gc),(sl=gc[0])!=null&&sl.group?Co(1):Co(0)}catch{Va(!0)}Fa(!1),(ul=G.stopInteraction)==null||ul.call(G)},[_,G]),nc=(0,cg.Te)({count:du.length,getScrollElement:()=>zs.floating.current,estimateSize:Uo=>du[Uo].description?F0:Rv,overscan:vg}),xh=(0,C.useCallback)((Uo,Os)=>{var ks;if(Uo.key==="Backspace"&&!Ra){if(ao==="value"){if(Os&&po.length){Qo(sl=>{const ul=[...sl];return ul.splice(-1,1),ul});return}if(_?.origin)return;$o("operator");return}ct?.(),Zh(_)&&((ks=G.startProfile)==null||ks.call(G,ze)),G.handleComboboxBackspace(_),pe&&ws()}},[Ra,ao,G,_,pe,po.length,ws,ct]),Gd=(0,C.useCallback)((Uo,Os)=>{var ks;Uo.key==="Tab"&&!Uo.shiftKey&&(Os&&(Uo.preventDefault(),Gs(G,_,po),(ks=zs.domReference.current)==null||ks.focus()),$e?.(),ws())},[_,po,$e,Gs,ws,G,zs.domReference]),yf=(0,C.useCallback)((Uo,Os)=>{Uo.key==="Tab"&&Uo.shiftKey&&(Os&&(Uo.preventDefault(),Gs(G,_,po,!0)),$e?.(),ws())},[_,po,$e,Gs,ws,G]),Sd=(0,C.useCallback)((Uo,Os)=>{var ks;if(Uo.key==="Enter"&&Ao!=null){if(!du[Ao])return;const sl=du[Ao];if(Os)Qu(sl),Ya("");else{const ul=gg({filterInputType:ao,item:sl,filter:_,setFilterMultiValues:Qo,onAddCustomValue:jo});ao==="value"&&ul.value!==_?.value&&((ks=G.startProfile)==null||ks.call(G,qe)),G.updateFilter(_,ul),Mv({populateInputOnEdit:Yt,item:sl,filterInputType:ao,setInputValue:Ya,filter:_}),Iv(ao,$o,$e,zs.domReference.current,ys?!1:void 0),Co(null),ys&&ct?.()}}},[Ao,du,Qu,G,_,ao,Yt,$e,zs.domReference,ys,ct,jo]),$h=(0,C.useCallback)(Uo=>{var Os;const ks=Uo.label||Uo.value;Qo(sl=>sl.filter(ul=>ul.value!==Uo.value)),Mo(!0),Ya(ks),(Os=zs.domReference.current)==null||Os.focus(),setTimeout(()=>{var sl;(sl=zs.domReference.current)==null||sl.select()})},[zs.domReference]);(0,C.useEffect)(()=>{Gr&&nl(ao)},[Gr,ao]),(0,C.useEffect)(()=>{var Uo,Os,ks,sl;if(!pe){if(Lo&&((Uo=_?.values)!=null&&Uo.length)){const ul=_.values.reduce((rf,gc,bf)=>{var qf;return[...rf,{label:((qf=_.valueLabels)==null?void 0:qf[bf])||gc,value:gc}]},[]);Qo(ul)}!Lo&&Yt&&(Ya((ks=(Os=_?.valueLabels)==null?void 0:Os[0])!=null?ks:_?.value||""),setTimeout(()=>{var ul;(ul=zs.domReference.current)==null||ul.select()})),(sl=zs.domReference.current)==null||sl.focus()}},[]),(0,C.useEffect)(()=>{Es&&po&&setTimeout(()=>Yo({}))},[po,Es]),(0,C.useLayoutEffect)(()=>{ns.current&&(ns.current=ao)},[ao]),(0,C.useLayoutEffect)(()=>{var Uo,Os;Ao!==null&&nc.range&&(Ao>((Uo=nc.range)==null?void 0:Uo.endIndex)||Ao<((Os=nc.range)==null?void 0:Os.startIndex))&&nc.scrollToIndex(Ao)},[Ao,nc]);const dv=(br=_?.keyLabel)!=null?br:_?.key;return C.createElement("div",{className:ds.comboboxWrapper},_?C.createElement("div",{className:ds.pillWrapper},_?.key?C.createElement("div",{className:(0,Oe.cx)(ds.basePill,ds.keyPill)},dv):null,_?.key&&_?.operator&&ao!=="operator"?C.createElement("div",{id:ou,className:(0,Oe.cx)(ds.basePill,!_.origin&&ds.operatorPill,_.origin&&ds.keyPill,ou),"aria-label":(0,ni.t)("grafana-scenes.variables.ad-hoc-combobox.aria-label-edit-filter-operator","Edit filter operator"),tabIndex:_.origin?-1:0,onClick:Uo=>{if(_.origin){$e?.();return}Uo.stopPropagation(),Ya(""),Kh("operator",$o,void 0,zs.domReference.current)},onKeyDown:Uo=>{_.origin||(yf(Uo,Lo),Uo.key==="Enter"&&(Ya(""),Kh("operator",$o,void 0,zs.domReference.current)))},...!_.origin&&{role:"button"}},_.operator):null,C.createElement("div",{ref:ts}),Es?po.map((Uo,Os)=>C.createElement($0,{key:`${Uo.value}-${Os}`,item:Uo,index:Os,handleRemoveMultiValue:$s,handleEditMultiValuePill:$h})):null):null,C.createElement("input",{...wh({ref:zs.setReference,onChange:tl,value:Ra,placeholder:Dv(_,ao,Es,pe,La),"aria-autocomplete":"list",onKeyDown(Uo){if(!Gr){pi(!0);return}ao==="operator"&&yf(Uo),xh(Uo,Es),Gd(Uo,Es),Sd(Uo,Es)}}),className:(0,Oe.cx)(ds.inputStyle,{[ds.loadingInputPadding]:!ia}),onClick:Uo=>{Uo.stopPropagation(),pi(!0)},onFocus:()=>{pi(!0)}}),ia?C.createElement(k0.y,{className:ds.loadingIndicator,inline:!0}):null,C.createElement(hd,null,Gr&&C.createElement(ha,{context:Qf,initialFocus:-1,visuallyHiddenDismiss:!0,modal:!0},C.createElement(C.Fragment,null,C.createElement("div",{style:{...hl,width:`${Ba?j0:Fc}px`,transform:Es?`translate(${((Ir=ts.current)==null?void 0:Ir.getBoundingClientRect().left)||0}px, ${(((Wr=zs.domReference.current)==null?void 0:Wr.getBoundingClientRect().bottom)||0)+10}px )`:hl.transform},ref:zs.setFloating,className:ds.dropdownWrapper,tabIndex:-1},C.createElement("div",{style:{height:`${nc.getTotalSize()||Rv}px`},...fv(),tabIndex:-1},ia?C.createElement(L0,null):Ba?C.createElement(dg,{handleFetchOptions:()=>nl(ao)}):!du.length&&(!Ro||ao==="operator"||!Ra)?C.createElement(fg,null):nc.getVirtualItems().map(Uo=>{var Os;const ks=du[Uo.index],sl=Uo.index;if(ks.options)return C.createElement("div",{key:`${ks.label}+${sl}`,className:(0,Oe.cx)(ds.optionGroupLabel,ds.groupTopBorder),style:{height:`${Uo.size}px`,transform:`translateY(${Uo.start}px)`}},C.createElement(lg.E,{weight:"bold",variant:"bodySmall",color:"secondary"},ks.label));const ul=du[Uo.index+1],rf=ul&&!ul.group&&!ul.options&&ks.group,gc=(Os=ks.label)!=null?Os:ks.value;return C.createElement(Ep,{...su({key:`${ks.value}-${sl}`,ref(bf){hs.current[sl]=bf},onClick(bf){var qf,Ch;if(ao!=="value"&&bf.stopPropagation(),Es)bf.preventDefault(),bf.stopPropagation(),Qu(ks),Ya(""),(qf=zs.domReference.current)==null||qf.focus();else{const m0=gg({filterInputType:ao,item:ks,filter:_,setFilterMultiValues:Qo,onAddCustomValue:jo});ao==="value"&&m0.value!==_?.value&&((Ch=G.startProfile)==null||Ch.call(G,qe)),G.updateFilter(_,m0),Mv({populateInputOnEdit:Yt,item:ks,filterInputType:ao,setInputValue:Ya,filter:_}),Iv(ao,$o,$e,zs.domReference.current,!1)}}}),active:Ao===sl,addGroupBottomBorder:rf,style:{height:`${Uo.size}px`,transform:`translateY(${Uo.start}px)`},"aria-setsize":du.length,"aria-posinset":Uo.index+1,isMultiValueEdit:Es,checked:po.some(bf=>bf.value===ks.value)},C.createElement("span",null,ks.isCustom?(0,ni.t)("grafana-scenes.components.adhoc-filters-combobox.use-custom-value","Use custom value: {{itemLabel}}",{itemLabel:gc}):gc),ks.description?C.createElement("div",{className:ds.descriptionText},ks.description):null)}))),Es&&!ia&&!Ba&&du.length?C.createElement(hg,{onApply:()=>{Gs(G,_,po)},floatingElement:zs.floating.current,maxOptionWidth:Fc,menuHeight:Math.min(nc.getTotalSize(),dh)}):null))))}),bg=N=>({comboboxWrapper:(0,Oe.css)({display:"flex",flexWrap:"wrap"}),pillWrapper:(0,Oe.css)({display:"flex",alignItems:"center",flexWrap:"wrap"}),basePill:(0,Oe.css)({display:"flex",alignItems:"center",background:N.colors.action.disabledBackground,border:`1px solid ${N.colors.border.weak}`,padding:N.spacing(.125,1,.125,1),color:N.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:N.spacing(2.75),...N.typography.bodySmall,cursor:"pointer"}),keyPill:(0,Oe.css)({fontWeight:N.typography.fontWeightBold,cursor:"default"}),operatorPill:(0,Oe.css)({"&:hover":{background:N.colors.action.hover}}),dropdownWrapper:(0,Oe.css)({backgroundColor:N.colors.background.primary,color:N.colors.text.primary,boxShadow:N.shadows.z2,overflowY:"auto",zIndex:N.zIndex.portal}),inputStyle:(0,Oe.css)({paddingBlock:0,"&:focus":{outline:"none"}}),loadingIndicator:(0,Oe.css)({color:N.colors.text.secondary,marginLeft:N.spacing(.5)}),loadingInputPadding:(0,Oe.css)({paddingRight:N.spacing(2.5)}),optionGroupLabel:(0,Oe.css)({padding:N.spacing(1),position:"absolute",top:0,left:0,width:"100%"}),groupTopBorder:(0,Oe.css)({"&:not(:first-child)":{borderTop:`1px solid ${N.colors.border.weak}`}}),descriptionText:(0,Oe.css)({...N.typography.bodySmall,color:N.colors.text.secondary,paddingTop:N.spacing(.5)})}),Sg=20;function _g({filter:N,controller:_,readOnly:G,focusOnWipInputRef:pe}){var $e,ct,Yt,In;const br=(0,Jr.of)(Eg),[Ir,Wr]=(0,C.useState)(!0),[Gr,pi]=(0,C.useState)(!1),Ri=(0,C.useRef)(null),[Zi,ia]=(0,C.useState)(!1),Fa=($e=N.keyLabel)!=null?$e:N.key,Ba=((ct=N.valueLabels)==null?void 0:ct.join(", "))||((Yt=N.values)==null?void 0:Yt.join(", "))||N.value,Va=(0,C.useCallback)((Ao,Co)=>{Ao?.stopPropagation(),!G&&(pi(Co??!Ir),Wr(!Ir))},[G,Ir]);(0,C.useEffect)(()=>{var Ao;Gr&&((Ao=Ri.current)==null||Ao.focus(),pi(!1))},[Gr]),(0,C.useEffect)(()=>{N.forceEdit&&Ir&&(Wr(!1),_.updateFilter(N,{forceEdit:void 0}))},[N,_,Ir]),(0,C.useEffect)(()=>{Ir&&ia(Ao=>Ao&&!1)},[Ir]);const Ra=Ao=>Ao==="dashboard"?{info:"Applied by default in this dashboard. If edited, it carries over to other dashboards.",restore:"Restore the value set by this dashboard."}:Ao==="scope"?{info:"Applied automatically from your selected scope.",restore:"Restore the value set by your selected scope."}:{info:`This is a ${Ao} injected filter.`,restore:"Restore filter to its original value."},Ya=!N.restorable&&!N.readOnly&&!N.nonApplicable;if(Ir){const Ao=`${Fa} ${N.operator} ${Ba}`,Co=C.createElement("span",{className:(0,Oe.cx)(br.pillText,N.nonApplicable&&br.strikethrough)},Ao);return C.createElement("div",{className:(0,Oe.cx)(br.combinedFilterPill,G&&br.readOnlyCombinedFilter,(Tp(N)||N.nonApplicable)&&br.disabledPill,N.readOnly&&br.filterReadOnly),onClick:ao=>{ao.stopPropagation(),ia(!0),Va()},onKeyDown:ao=>{ao.key==="Enter"&&(ia(!0),Va())},role:G?void 0:"button","aria-label":(0,ni.t)("grafana-scenes.components.adhoc-filter-pill.edit-filter-with-key","Edit filter with key {{keyLabel}}",{keyLabel:Fa}),tabIndex:0,ref:Ri},Ao.length<Sg?Co:C.createElement(uo.m,{content:C.createElement("div",{className:br.tooltipText},Ao),placement:"top"},Co),!G&&!N.matchAllFilter&&(!N.origin||N.origin==="dashboard")?C.createElement(Is.K,{onClick:ao=>{ao.stopPropagation(),N.origin&&N.origin==="dashboard"?_.updateToMatchAll(N):_.removeFilter(N),setTimeout(()=>pe?.())},onKeyDownCapture:ao=>{ao.key==="Enter"&&(ao.preventDefault(),ao.stopPropagation(),N.origin&&N.origin==="dashboard"?_.updateToMatchAll(N):_.removeFilter(N),setTimeout(()=>pe?.()))},name:"times",size:"md",className:(0,Oe.cx)(br.pillIcon,N.nonApplicable&&br.disabledPillIcon),tooltip:(0,ni.t)("grafana-scenes.components.adhoc-filter-pill.remove-filter-with-key","Remove filter with key {{keyLabel}}",{keyLabel:Fa})}):null,N.origin&&N.readOnly&&C.createElement(uo.m,{content:(0,ni.t)("grafana-scenes.components.adhoc-filter-pill.managed-filter","{{origin}} managed filter",{origin:N.origin}),placement:"bottom"},C.createElement(Ds.I,{name:"lock",size:"md",className:br.readOnlyPillIcon})),N.origin&&Ya&&C.createElement(uo.m,{content:Ra(N.origin).info,placement:"bottom"},C.createElement(Ds.I,{name:"info-circle",size:"md",className:br.infoPillIcon})),N.origin&&N.restorable&&!N.readOnly&&C.createElement(Is.K,{onClick:ao=>{ao.stopPropagation(),_.restoreOriginalFilter(N)},onKeyDownCapture:ao=>{ao.key==="Enter"&&(ao.preventDefault(),ao.stopPropagation(),_.restoreOriginalFilter(N))},name:"history",size:"md",className:Tp(N)?br.matchAllPillIcon:br.pillIcon,tooltip:Ra(N.origin).restore}),N.nonApplicable&&C.createElement(uo.m,{content:(In=N.nonApplicableReason)!=null?In:(0,ni.t)("grafana-scenes.components.adhoc-filter-pill.non-applicable","Filter is not applicable"),placement:"bottom"},C.createElement(Ds.I,{name:"info-circle",size:"md",className:br.infoPillIcon})))}return C.createElement(kv,{filter:N,controller:_,handleChangeViewMode:Va,focusOnWipInputRef:pe,populateInputOnEdit:Zi})}const Eg=N=>({combinedFilterPill:(0,Oe.css)({display:"flex",alignItems:"center",background:N.colors.action.selected,borderRadius:N.shape.radius.default,border:`1px solid ${N.colors.border.weak}`,padding:N.spacing(.125,0,.125,1),color:N.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:N.spacing(2.75),...N.typography.bodySmall,fontWeight:N.typography.fontWeightBold,cursor:"pointer","&:hover":{background:N.colors.action.hover}}),readOnlyCombinedFilter:(0,Oe.css)({paddingRight:N.spacing(1),cursor:"text","&:hover":{background:N.colors.action.selected}}),filterReadOnly:(0,Oe.css)({background:N.colors.background.canvas,cursor:"text","&:hover":{background:N.colors.background.canvas}}),pillIcon:(0,Oe.css)({marginInline:N.spacing(.5),cursor:"pointer","&:hover":{color:N.colors.text.primary}}),pillText:(0,Oe.css)({maxWidth:"200px",width:"100%",textOverflow:"ellipsis",overflow:"hidden"}),tooltipText:(0,Oe.css)({textAlign:"center"}),infoPillIcon:(0,Oe.css)({marginInline:N.spacing(.5),cursor:"pointer"}),readOnlyPillIcon:(0,Oe.css)({marginInline:N.spacing(.5)}),matchAllPillIcon:(0,Oe.css)({marginInline:N.spacing(.5),cursor:"pointer",color:N.colors.text.disabled}),disabledPillIcon:(0,Oe.css)({marginInline:N.spacing(.5),cursor:"pointer",color:N.colors.text.disabled,"&:hover":{color:N.colors.text.disabled}}),...Mp(N)}),Lv=(0,C.forwardRef)(function({controller:_},G){const{wip:pe}=_.useState();return(0,C.useLayoutEffect)(()=>{pe||_.addWip()},[pe]),C.createElement(kv,{controller:_,filter:pe,isAlwaysWip:!0,ref:G})}),V0=(0,C.memo)(function({controller:_}){const{originFilters:G,filters:pe,readOnly:$e}=_.useState(),ct=(0,Jr.of)(z0),Yt=(0,C.useRef)();return C.createElement("div",{className:(0,Oe.cx)(ct.comboboxWrapper,{[ct.comboboxFocusOutline]:!$e}),onClick:()=>{var In;(In=Yt.current)==null||In.call(Yt)}},C.createElement(Ds.I,{name:"filter",className:ct.filterIcon,size:"lg"}),G?.map((In,br)=>In.origin?C.createElement(_g,{key:`${br}-${In.key}`,filter:In,controller:_,focusOnWipInputRef:Yt.current}):null),pe.filter(In=>!In.hidden).map((In,br)=>C.createElement(_g,{key:`${br}-${In.key}`,filter:In,controller:_,readOnly:$e||In.readOnly,focusOnWipInputRef:Yt.current})),$e?null:C.createElement(Lv,{controller:_,ref:Yt}))}),z0=N=>({comboboxWrapper:(0,Oe.css)({display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:N.spacing(1),rowGap:N.spacing(.5),minHeight:N.spacing(4),backgroundColor:N.components.input.background,border:`1px solid ${N.colors.border.strong}`,borderRadius:N.shape.radius.default,paddingInline:N.spacing(1),paddingBlock:N.spacing(.5),flexGrow:1}),comboboxFocusOutline:(0,Oe.css)({"&:focus-within":{outline:"2px dotted transparent",outlineOffset:"2px",boxShadow:`0 0 0 2px ${N.colors.background.canvas}, 0 0 0px 4px ${N.colors.primary.main}`,transitionTimingFunction:"cubic-bezier(0.19, 1, 0.22, 1)",transitionDuration:"0.2s",transitionProperty:"outline, outline-offset, box-shadow",zIndex:2}}),filterIcon:(0,Oe.css)({color:N.colors.text.secondary,alignSelf:"center"})});var Yh=u(27164);const Rh=Object.fromEntries(Object.entries(Yh.n9).map(([N,_])=>[_,N]));function Nv(N){return new Set(["equals","not-equals","one-of","not-one-of"]).has(N)}function wg(N){return new Set(["regex-match","regex-not-match"]).has(N)}function W0(N){const _=new Map,G=[],pe=N.flatMap($e=>$e.spec.filters);for(const $e of pe)G0(_,G,$e);return[..._.values(),...G]}function G0(N,_,G){var pe,$e;if(!G)return;const ct=N.get(G.key);ct&&xg(ct.operator,G.operator)?H0(ct,G):ct&&hh(ct.operator,G.operator)?(ct.value+=`|${G.value}`,ct.values=[ct.value]):ct?_.push({key:G.key,operator:Rh[G.operator],value:G.value,values:($e=G.values)!=null?$e:[G.value],origin:"scope"}):N.set(G.key,{key:G.key,operator:Rh[G.operator],value:G.value,values:(pe=G.values)!=null?pe:[G.value],origin:"scope"})}function H0(N,_){var G,pe,$e,ct;const Yt=(G=_.values)!=null?G:[_.value];for(const In of Yt)(pe=N.values)!=null&&pe.includes(In)||($e=N.values)==null||$e.push(In);((ct=N.values)==null?void 0:ct.length)!==1&&(_.operator==="equals"&&N.operator===Rh.equals?N.operator=Rh["one-of"]:_.operator==="not-equals"&&N.operator===Rh["not-equals"]&&(N.operator=Rh["not-one-of"]))}function hh(N,_){const G=Yh.n9[N];return!wg(G)||!wg(_)?!1:Fv(G,_)}function xg(N,_){const G=Yh.n9[N];return!Nv(G)||!Nv(_)?!1:Fv(G,_)}function Fv(N,_){return!(N.includes("not")&&!_.includes("not")||!N.includes("not")&&_.includes("not"))}class jv{constructor(_){this.model=_}useState(){const _=this.model.useState();return{filters:_.filters,originFilters:_.originFilters,readOnly:_.readOnly,allowCustomValue:_.allowCustomValue,supportsMultiValueOperators:_.supportsMultiValueOperators,onAddCustomValue:_.onAddCustomValue,wip:_._wip}}async getKeys(_){return this.model._getKeys(_)}async getValuesFor(_){return this.model._getValuesFor(_)}getOperators(){return this.model._getOperators()}updateFilter(_,G){this.model._updateFilter(_,G)}updateToMatchAll(_){this.model.updateToMatchAll(_)}removeFilter(_){this.model._removeFilter(_)}removeLastFilter(){this.model._removeLastFilter()}handleComboboxBackspace(_){this.model._handleComboboxBackspace(_)}addWip(){this.model._addWip()}restoreOriginalFilter(_){this.model.restoreOriginalFilter(_)}startProfile(_){const G=gn(this.model);G?.startProfile(_)}startInteraction(_){const G=Ui(this.model);G?.startInteraction(_)}stopInteraction(){const _=Ui(this.model);_?.stopInteraction()}}const Lf=[{value:"=",description:"Equals"},{value:"!=",description:"Not equal"},{value:"=|",description:"One of. Use to filter on multiple values.",isMulti:!0},{value:"!=|",description:"Not one of. Use to exclude multiple values.",isMulti:!0},{value:"=~",description:"Matches regex",isRegex:!0},{value:"!~",description:"Does not match regex",isRegex:!0},{value:"<",description:"Less than"},{value:"<=",description:"Less than or equal to"},{value:">",description:"Greater than"},{value:">=",description:"Greater than or equal to"}];class Cp extends Rt{constructor(_){var G,pe,$e,ct,Yt;super({type:"adhoc",name:(G=_.name)!=null?G:"Filters",filters:[],datasource:null,applyMode:"auto",filterExpression:(ct=_.filterExpression)!=null?ct:Op(_.expressionBuilder,[...(pe=_.originFilters)!=null?pe:[],...($e=_.filters)!=null?$e:[]]),..._}),this._scopedVars={__sceneObject:Us(this)},this._dataSourceSrv=(0,dn.l)(),this._originalValues=new Map,this._prevScopes=[],this._variableDependency=new mc(this,{dependsOnScopes:!0,onReferencedVariableValueChanged:()=>this._updateScopesFilters()}),this._urlSync=new cf(this),this._debouncedVerifyApplicability=(0,Wt.debounce)(this._verifyApplicability,100),this._activationHandler=()=>(this._debouncedVerifyApplicability(),()=>{var In;(In=this.state.originFilters)==null||In.forEach(br=>{br.restorable&&this.restoreOriginalFilter(br)})}),this.state.applyMode==="auto"&&wf(this),(Yt=this.state.originFilters)==null||Yt.forEach(In=>{var br;this._originalValues.set(`${In.key}-${In.origin}`,{operator:In.operator,value:(br=In.values)!=null?br:[In.value]})}),this.addActivationHandler(this._activationHandler)}_updateScopesFilters(){var _,G;const pe=_o.getScopes(this);if(!pe||!pe.length){this.setState({originFilters:(_=this.state.originFilters)==null?void 0:_.filter(Gr=>Gr.origin!=="scope")});return}const $e=W0(pe);if(!$e.length)return;let ct=$e;const Yt=[],In=[];if(ct.forEach(Gr=>{var pi;this._originalValues.set(`${Gr.key}-${Gr.origin}`,{value:(pi=Gr.values)!=null?pi:[Gr.value],operator:Gr.operator})}),(G=this.state.originFilters)==null||G.forEach(Gr=>{Gr.origin==="scope"?Yt.push(Gr):In.push(Gr)}),this._prevScopes.length){this.setState({originFilters:[...ct,...In]}),this._prevScopes=pe,this._debouncedVerifyApplicability();return}const br=Yt.filter(Gr=>Gr.restorable),Ir=br.map(Gr=>Gr.key),Wr=$e.map(Gr=>Gr.key);ct=[...br.filter(Gr=>Wr.includes(Gr.key)),...$e.filter(Gr=>!Ir.includes(Gr.key))],this.setState({originFilters:[...ct,...In]}),this._prevScopes=pe,this._debouncedVerifyApplicability()}setState(_){var G,pe;let $e=!1;if((_.filters&&_.filters!==this.state.filters||_.originFilters&&_.originFilters!==this.state.originFilters)&&!_.filterExpression){const ct=(G=_.filters)!=null?G:this.state.filters,Yt=(pe=_.originFilters)!=null?pe:this.state.originFilters;_.filterExpression=Op(this.state.expressionBuilder,[...Yt??[],...ct]),$e=_.filterExpression!==this.state.filterExpression}super.setState(_),$e&&this.publishEvent(new cr(this),!0)}updateFilters(_,G){var pe;let $e=!1,ct;_&&_!==this.state.filters&&(ct=Op(this.state.expressionBuilder,[...(pe=this.state.originFilters)!=null?pe:[],..._]),$e=ct!==this.state.filterExpression),super.setState({filters:_,filterExpression:ct}),($e&&G?.skipPublish!==!0||G?.forcePublish)&&this.publishEvent(new cr(this),!0)}restoreOriginalFilter(_){const G={matchAllFilter:!1,restorable:!1};if(_.restorable){const pe=this._originalValues.get(`${_.key}-${_.origin}`);if(!pe)return;G.value=pe?.value[0],G.values=pe?.value,G.valueLabels=pe?.value,G.operator=pe?.operator,G.nonApplicable=pe?.nonApplicable;const $e=gn(this);$e?.startProfile(Pt),this._updateFilter(_,G)}}getValue(){return this.state.filterExpression}_updateFilter(_,G){var pe;const{originFilters:$e,filters:ct,_wip:Yt}=this.state;if(_.origin){const br=this._originalValues.get(`${_.key}-${_.origin}`),Ir=G.values||(G.value?[G.value]:void 0);Ir&&!(0,Wt.isEqual)(Ir,br?.value)||G.operator&&G.operator!==br?.operator?G.restorable=!0:Ir&&(0,Wt.isEqual)(Ir,br?.value)&&(G.restorable=!1);const Wr=(pe=$e?.map(Gr=>Gr===_?{...Gr,...G}:Gr))!=null?pe:[];this.setState({originFilters:Wr});return}if(_===Yt){"value"in G&&G.value!==""?(this.setState({filters:[...ct,{...Yt,...G}],_wip:void 0}),this._debouncedVerifyApplicability()):this.setState({_wip:{..._,...G}});return}const In=this.state.filters.map(br=>br===_?{...br,...G}:br);this.setState({filters:In})}updateToMatchAll(_){this._updateFilter(_,{operator:"=~",value:".*",values:[".*"],valueLabels:["All"],matchAllFilter:!0,nonApplicable:!1,restorable:!0})}_removeFilter(_){if(_===this.state._wip){this.setState({_wip:void 0});return}const G=gn(this);G?.startProfile(ze),this.setState({filters:this.state.filters.filter(pe=>pe!==_)}),this._debouncedVerifyApplicability()}_removeLastFilter(){const _=this.state.filters.at(-1);_&&this._removeFilter(_)}_handleComboboxBackspace(_){var G;if(this.state.filters.length){let pe=this.state.filters.length-1;_!==this.state._wip&&(pe=-1),this.setState({filters:this.state.filters.reduce(($e,ct,Yt)=>Yt===pe&&!ct.readOnly?[...$e,{...ct,forceEdit:!0}]:ct===_?$e:[...$e,ct],[])})}else if((G=this.state.originFilters)!=null&&G.length){let pe=this.state.originFilters.length-1;_!==this.state._wip&&(pe=-1),this.setState({originFilters:this.state.originFilters.reduce(($e,ct,Yt)=>Yt===pe&&!ct.readOnly?[...$e,{...ct,forceEdit:!0}]:ct===_?$e:[...$e,ct],[])})}}async _verifyApplicability(){var _,G,pe;const $e=[...this.state.filters,...(_=this.state.originFilters)!=null?_:[]],ct=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!ct||!ct.getDrilldownsApplicability||!$e)return;const Yt=_o.getTimeRange(this).state.value,In=this.state.useQueriesAsFilterForOptions?Qh(this):void 0,br=await ct.getDrilldownsApplicability({filters:$e,queries:In,timeRange:Yt,scopes:_o.getScopes(this),...Xa(this)}),Ir=new Map;br.forEach(Gr=>{Ir.set(`${Gr.key}${Gr.origin?`-${Gr.origin}`:""}`,Gr)});const Wr={filters:[...this.state.filters],originFilters:[...(G=this.state.originFilters)!=null?G:[]]};Wr.filters.forEach(Gr=>{const pi=Ir.get(Gr.key);pi&&(Gr.nonApplicable=!pi.applicable,Gr.nonApplicableReason=pi.reason)}),(pe=Wr.originFilters)==null||pe.forEach(Gr=>{const pi=Ir.get(`${Gr.key}-${Gr.origin}`);if(pi){Gr.matchAllFilter||(Gr.nonApplicable=!pi.applicable,Gr.nonApplicableReason=pi.reason);const Ri=this._originalValues.get(`${Gr.key}-${Gr.origin}`);Ri&&(Ri.nonApplicable=!pi.applicable,Ri.nonApplicableReason=pi?.reason)}}),this.setState(Wr)}async _getKeys(_){var G,pe,$e,ct,Yt;const In=await((pe=(G=this.state).getTagKeysProvider)==null?void 0:pe.call(G,this,_));if(In&&In.replace)return Jf(In.values).map(Jh);if(this.state.defaultKeys)return this.state.defaultKeys.map(Jh);const br=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!br||!br.getTagKeys)return[];const Ir=(ct=($e=this.state.originFilters)==null?void 0:$e.filter(Fa=>!Fa.nonApplicable))!=null?ct:[],Wr=this.state.filters.filter(Fa=>Fa.key!==_&&!Fa.nonApplicable).concat((Yt=this.state.baseFilters)!=null?Yt:[]).concat(Ir),Gr=_o.getTimeRange(this).state.value,pi=this.state.useQueriesAsFilterForOptions?Qh(this):void 0,Ri=await br.getTagKeys({filters:Wr,queries:pi,timeRange:Gr,scopes:_o.getScopes(this),...Xa(this)});Ip(Ri)&&this.setState({error:Ri.error.message});let Zi=Jf(Ri);In&&(Zi=Zi.concat(Jf(In.values)));const ia=this.state.tagKeyRegexFilter;return ia&&(Zi=Zi.filter(Fa=>Fa.text.match(ia))),Zi.map(Jh)}async _getValuesFor(_){var G,pe,$e,ct;const Yt=await((pe=(G=this.state).getTagValuesProvider)==null?void 0:pe.call(G,this,_));if(Yt&&Yt.replace)return Jf(Yt.values).map(Jh);const In=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!In||!In.getTagValues)return[];const br=(ct=($e=this.state.originFilters)==null?void 0:$e.filter(ia=>ia.key!==_.key))!=null?ct:[],Ir=this.state.filters.filter(ia=>ia.key!==_.key).concat(br),Wr=_o.getTimeRange(this).state.value,Gr=this.state.useQueriesAsFilterForOptions?Qh(this):void 0;let pi=_o.getScopes(this);_.origin==="scope"&&(pi=pi?.map(ia=>({...ia,spec:{...ia.spec,filters:ia.spec.filters.filter(Fa=>Fa.key!==_.key)}})));const Ri=await In.getTagValues({key:_.key,filters:Ir,timeRange:Wr,queries:Gr,scopes:pi,...Xa(this)});Ip(Ri)&&this.setState({error:Ri.error.message});let Zi=Jf(Ri);return Yt&&(Zi=Zi.concat(Jf(Yt.values))),Zi.map(Jh)}_addWip(){this.setState({_wip:{key:"",value:"",operator:"=",condition:""}})}_getOperators(){const{supportsMultiValueOperators:_,allowCustomValue:G=!0}=this.state;return Lf.filter(({isMulti:pe,isRegex:$e})=>!(!_&&pe||!G&&$e)).map(({value:pe,description:$e})=>({label:pe,value:pe,description:$e}))}}Cp.Component=Cg;function Op(N,_){var G;return(N??Wv)((G=_?.filter(pe=>Bv(pe)))!=null?G:[])}function Cg({model:N}){const{filters:_,readOnly:G,addFilterButtonText:pe}=N.useState(),$e=(0,Jr.of)(K0),ct=(0,C.useMemo)(()=>N.state.layout==="combobox"?new jv(N):void 0,[N]);return ct?C.createElement(V0,{controller:ct}):C.createElement("div",{className:$e.wrapper},_.filter(Yt=>!Yt.hidden).map((Yt,In)=>C.createElement(C.Fragment,{key:In},C.createElement(xf,{filter:Yt,model:N}))),!G&&C.createElement($c,{model:N,key:"'builder",addFilterButtonText:pe}))}const K0=N=>({wrapper:(0,Oe.css)({display:"flex",flexWrap:"wrap",alignItems:"flex-end",columnGap:N.spacing(2),rowGap:N.spacing(1)})});function Jh(N){const{text:_,value:G}=N,pe={label:String(_),value:String(G??_)};return"group"in N&&(pe.group=N.group),"meta"in N&&(pe.meta=N.meta),pe}function Tp(N){return N.operator==="=~"&&N.value===".*"}function Zh(N){return N.key!==""&&N.operator!==""&&N.value!==""}function Bv(N){return!N.nonApplicable}function mf(N){const _=Lf.find(G=>G.value===N);return _?!!_.isMulti:!1}class $v{constructor(_){this._variableDependency=_}findAndSubscribeToDrilldowns(_){const G=Il(_),pe=Ln(_);let $e=!1;this._adhocFiltersVar!==G&&(this._adhocFiltersVar=G,$e=!0),this._groupByVar!==pe&&(this._groupByVar=pe,$e=!0),$e&&this._updateExplicitDrilldownVariableDependencies()}_updateExplicitDrilldownVariableDependencies(){const _=[];this._adhocFiltersVar&&_.push(this._adhocFiltersVar.state.name),this._groupByVar&&_.push(this._groupByVar.state.name),this._variableDependency.setVariableNames(_)}get adHocFiltersVar(){return this._adhocFiltersVar}get groupByVar(){return this._groupByVar}getFilters(){var _;return this._adhocFiltersVar?[...(_=this._adhocFiltersVar.state.originFilters)!=null?_:[],...this._adhocFiltersVar.state.filters].filter(G=>Zh(G)&&Bv(G)):void 0}getGroupByKeys(){return this._groupByVar?this._groupByVar.getApplicableKeys():void 0}cleanup(){this._adhocFiltersVar=void 0,this._groupByVar=void 0}}let Og=100;function Tg(){return"SQR"+Og++}class Uv extends Rt{constructor(_){super(_),this._dataLayersMerger=new Mu,this._variableValueRecorder=new Pi,this._results=new P.m(1),this._scopedVars={__sceneObject:Us(this)},this._isInView=!0,this._bypassIsInView=!1,this._queryNotExecutedWhenOutOfView=!1,this._variableDependency=new mc(this,{statePaths:["queries","datasource","minInterval"],onVariableUpdateCompleted:this.onVariableUpdatesCompleted.bind(this),onAnyVariableChanged:this.onAnyVariableChanged.bind(this),dependsOnScopes:!0}),this._drilldownDependenciesManager=new $v(this._variableDependency),this.onDataReceived=G=>{const pe=(0,Ie.N$)(G,this.state.data);this._resultAnnotations=G.annotations;const $e=this._combineDataLayers(pe);let ct=this.state._hasFetchedData;!ct&&pe.state!==Jn.Gu.Loading&&(ct=!0),this.setState({data:$e,_hasFetchedData:ct}),this._results.next({origin:this,data:$e})},this.addActivationHandler(()=>this._onActivate())}getResultsStream(){return this._results}_onActivate(){if(this.isQueryModeAuto()){const _=_o.getTimeRange(this),G=this.getClosestExtraQueryProviders();for(const pe of G)this._subs.add(pe.subscribeToState(($e,ct)=>{pe.shouldRerun(ct,$e,this.state.queries)&&this.runQueries()}));this.subscribeToTimeRangeChanges(_),this.shouldRunQueriesOnActivate()&&this.runQueries()}return this._dataLayersSub||this._handleDataLayers(),()=>this._onDeactivate()}_handleDataLayers(){const _=_o.getDataLayers(this);_.length!==0&&(this._dataLayersSub=this._dataLayersMerger.getMergedStream(_).subscribe(this._onLayersReceived.bind(this)))}_onLayersReceived(_){var G,pe,$e,ct,Yt;const In=_o.getTimeRange(this),{dataLayerFilter:br}=this.state;let Ir=[],Wr=[],Gr;for(const Ri of _)for(let Zi of Ri.data.series)((G=Zi.meta)==null?void 0:G.dataTopic)===Fe.QR.Annotations&&(Ir=Ir.concat(Zi)),((pe=Zi.meta)==null?void 0:pe.dataTopic)===Fe.QR.AlertStates&&(Wr=Wr.concat(Zi));if(br?.panelId&&(Ir.length>0&&(Ir=St(Ir,br)),Wr.length>0))for(const Ri of Wr){const Zi=new Ue.R(Ri);for(const ia of Zi)if(ia.panelId===br.panelId){Gr=ia;break}}if(Ap(Ir)&&Ap(this._layerAnnotations)&&(0,Wt.isEqual)(Gr,($e=this.state.data)==null?void 0:$e.alertState))return;this._layerAnnotations=Ir;const pi=this.state.data?this.state.data:{...bt,timeRange:In.state.value};this.setState({data:{...pi,annotations:[...(ct=this._resultAnnotations)!=null?ct:[],...Ir],alertState:Gr??((Yt=this.state.data)==null?void 0:Yt.alertState)}})}onVariableUpdatesCompleted(){this.isQueryModeAuto()&&this.runQueries()}onAnyVariableChanged(_){this._drilldownDependenciesManager.adHocFiltersVar===_||this._drilldownDependenciesManager.groupByVar===_||!this.isQueryModeAuto()||(_ instanceof Cp&&this._isRelevantAutoVariable(_)&&this.runQueries(),_ instanceof xe&&this._isRelevantAutoVariable(_)&&this.runQueries())}_isRelevantAutoVariable(_){var G,pe;const $e=(G=this.state.datasource)!=null?G:Ag(this.state.queries);return _.state.applyMode==="auto"&&$e?.uid===((pe=_.state.datasource)==null?void 0:pe.uid)}shouldRunQueriesOnActivate(){return this._variableValueRecorder.hasDependenciesChanged(this)?(Vt("SceneQueryRunner","Variable dependency changed while inactive, shouldRunQueriesOnActivate returns true"),!0):!!(!this.state.data||this._isDataTimeRangeStale(this.state.data))}_isDataTimeRangeStale(_){const pe=_o.getTimeRange(this).state.value,$e=_.timeRange;return pe.from.unix()===$e.from.unix()&&pe.to.unix()===$e.to.unix()?!1:(Vt("SceneQueryRunner","Data time range is stale"),!0)}_onDeactivate(){var _;this._querySub&&(this._querySub.unsubscribe(),this._querySub=void 0),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),(_=this._timeSub)==null||_.unsubscribe(),this._timeSub=void 0,this._timeSubRange=void 0,this._drilldownDependenciesManager.cleanup()}setContainerWidth(_){!this._containerWidth&&_>0?(this._containerWidth=_,this.state.maxDataPointsFromWidth&&!this.state.maxDataPoints&&setTimeout(()=>{this.isActive&&!this.state._hasFetchedData&&this.runQueries()},0)):_>0&&(this._containerWidth=_)}isDataReadyToDisplay(){return!!this.state._hasFetchedData}subscribeToTimeRangeChanges(_){this._timeSubRange!==_&&(this._timeSub&&this._timeSub.unsubscribe(),this._timeSubRange=_,this._timeSub=_.subscribeToState(()=>{this.runWithTimeRange(_)}))}runQueries(){const _=_o.getTimeRange(this);this.isQueryModeAuto()&&this.subscribeToTimeRangeChanges(_),this.runWithTimeRange(_)}getMaxDataPoints(){var _;return this.state.maxDataPoints?this.state.maxDataPoints:this.state.maxDataPointsFromWidth&&(_=this._containerWidth)!=null?_:500}cancelQuery(){var _;(_=this._querySub)==null||_.unsubscribe(),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),this.setState({data:{...this.state.data,state:Jn.Gu.Done}})}async runWithTimeRange(_){var G,pe,$e;if(!this.state.maxDataPoints&&this.state.maxDataPointsFromWidth&&!this._containerWidth)return;if(this.isQueryModeAuto()&&!this._isInView&&!this._bypassIsInView){this._queryNotExecutedWhenOutOfView=!0;return}if(this._queryNotExecutedWhenOutOfView=!1,this._dataLayersSub||this._handleDataLayers(),(G=this._querySub)==null||G.unsubscribe(),this._variableDependency.hasDependencyInLoadingState()){Vt("SceneQueryRunner","Variable dependency is in loading state, skipping query execution"),this.setState({data:{...(pe=this.state.data)!=null?pe:bt,state:Jn.Gu.Loading}});return}this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this);const{queries:ct}=this.state;if(!ct?.length){this._setNoDataState();return}try{const Yt=($e=this.state.datasource)!=null?$e:Ag(ct),In=await Di(Yt,this._scopedVars);this._drilldownDependenciesManager.findAndSubscribeToDrilldowns(In.uid);const br=(0,Xe.XJ)(),{primary:Ir,secondaries:Wr,processors:Gr}=this.prepareRequests(_,In);Vt("SceneQueryRunner","Starting runRequest",this.state.key);let pi=br(In,Ir);if(Wr.length>0){const Zi=Wr.map(Fa=>br(In,Fa)),ia=or(Gr);pi=(0,oe.p)([pi,...Zi]).pipe(ia)}const Ri=Ju(this);pi=pi.pipe(Ti({type:"SceneQueryRunner/runQueries",request:Ir,origin:this,cancel:()=>this.cancelQuery()},Ri)),this._querySub=pi.subscribe(this.onDataReceived)}catch(Yt){console.error("PanelQueryRunner Error",Yt),this.onDataReceived({...bt,...this.state.data,state:Jn.Gu.Error,errors:[(0,dt.u)(Yt)]})}}clone(_){var G;const pe=super.clone(_);return this._resultAnnotations&&(pe._resultAnnotations=this._resultAnnotations.map($e=>({...$e}))),this._layerAnnotations&&(pe._layerAnnotations=this._layerAnnotations.map($e=>({...$e}))),pe._variableValueRecorder=this._variableValueRecorder.cloneAndRecordCurrentValuesForSceneObject(this),pe._containerWidth=this._containerWidth,pe._results.next({origin:this,data:(G=this.state.data)!=null?G:bt}),pe}prepareRequests(_,G){var pe;const{minInterval:$e,queries:ct}=this.state;let Yt={app:"scenes",requestId:Tg(),timezone:_.getTimeZone(),range:_.state.value,interval:"1s",intervalMs:1e3,targets:(0,Wt.cloneDeep)(ct),maxDataPoints:this.getMaxDataPoints(),scopedVars:this._scopedVars,startTime:Date.now(),liveStreaming:this.state.liveStreaming,rangeRaw:{from:_.state.from,to:_.state.to},cacheTimeout:this.state.cacheTimeout,queryCachingTTL:this.state.queryCachingTTL,scopes:_o.getScopes(this),..._n(this)};const In=this._drilldownDependenciesManager.getFilters(),br=this._drilldownDependenciesManager.getGroupByKeys();In&&(Yt.filters=In),br&&(Yt.groupByKeys=br),Yt.targets=Yt.targets.map(Zi=>{var ia;return(!Zi.datasource||Zi.datasource.uid!==G.uid&&!((ia=G.meta)!=null&&ia.mixed)&&kt.s9&&!(0,kt.s9)(Zi.datasource))&&(Zi.datasource=G.getRef()),Zi});const Ir=$e?tp(this,$e):G.interval,Wr=fe.calculateInterval(_.state.value,Yt.maxDataPoints,Ir);Yt.scopedVars=Object.assign({},Yt.scopedVars,{__interval:{text:Wr.interval,value:Wr.interval},__interval_ms:{text:Wr.intervalMs.toString(),value:Wr.intervalMs}}),Yt.interval=Wr.interval,Yt.intervalMs=Wr.intervalMs;const Gr=_.state.value;let pi=[],Ri=new Map;for(const Zi of(pe=this.getClosestExtraQueryProviders())!=null?pe:[])for(const{req:ia,processor:Fa}of Zi.getExtraQueries(Yt)){const Ba=Tg();pi.push({...ia,requestId:Ba}),Ri.set(Ba,Fa??tn)}return Yt.range=Gr,{primary:Yt,secondaries:pi,processors:Ri}}_combineDataLayers(_){return this._layerAnnotations&&this._layerAnnotations.length>0&&(_.annotations=(_.annotations||[]).concat(this._layerAnnotations)),this.state.data&&this.state.data.alertState&&(_.alertState=this.state.data.alertState),_}_setNoDataState(){this.state.data!==bt&&this.setState({data:bt})}getClosestExtraQueryProviders(){const _=new Map;return this.parent?(ln(this.parent,G=>(mt(G)&&!_.has(G.constructor)&&_.set(G.constructor,G),G.forEachChild(pe=>{mt(pe)&&!_.has(pe.constructor)&&_.set(pe.constructor,pe)}),null)),Array.from(_.values())):[]}isQueryModeAuto(){var _;return((_=this.state.runQueriesMode)!=null?_:"auto")==="auto"}isInViewChanged(_){Vt("SceneQueryRunner",`isInViewChanged: ${_}`,this.state.key),this._isInView=_,_&&this._queryNotExecutedWhenOutOfView&&this.runQueries()}bypassIsInViewChanged(_){Vt("SceneQueryRunner",`bypassIsInViewChanged: ${_}`,this.state.key),this._bypassIsInView=_,_&&this._queryNotExecutedWhenOutOfView&&this.runQueries()}}function Ag(N){var _,G;return(G=(_=N.find(pe=>pe.datasource!==null))==null?void 0:_.datasource)!=null?G:void 0}function Ap(N){if(!N)return!0;for(let _=0;_<N.length;_++)if(N[_].length>0)return!1;return!0}function Vv(N,_){return N===_?!0:(0,Wt.isEqual)(N,_)}function zv(N){const _=()=>{const G=new WeakSet;return(pe,$e)=>{if(typeof $e=="object"&&$e!==null){if(G.has($e))return;G.add($e)}return $e}};try{return JSON.stringify(N,_())}catch(G){console.error(G)}return""}function Wv(N){return N.map(_=>Y0(_)).join(",")}function Y0(N){var _,G;let pe="",$e=N.operator;return $e==="=|"?($e="=~",pe=(_=N.values)==null?void 0:_.map(Xh).join("|")):$e==="!=|"?($e="!~",pe=(G=N.values)==null?void 0:G.map(Xh).join("|")):$e==="=~"||$e==="!~"?pe=Xh(N.value):pe=Rp(N.value),`${N.key}${$e}"${pe}"`}function Rp(N){return N.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')}function Xh(N){return Rp(Pg(N))}const Rg=/[*+?()|\\.\[\]{}^$]/g;function Pg(N){return N.replace(Rg,"\\$&")}function Qh(N){var _;const G=_o.findAllObjects(N.getRoot(),Yt=>Yt instanceof Uv),pe=_o.interpolate(N,(_=N.state.datasource)==null?void 0:_.uid),$e=J0(G).filter(Yt=>{var In;return _o.interpolate(N,(In=Yt.state.datasource)==null?void 0:In.uid)===pe});if($e.length===0)return[];const ct=[];return $e.forEach(Yt=>{ct.push(...Yt.state.queries.filter(In=>!In.datasource||!In.datasource.uid?!0:_o.interpolate(N,In.datasource.uid)===pe))}),ct}function J0(N){const _={};for(const G of N)G.state.key&&(G.state.key in _||(_[G.state.key]=[]),_[G.state.key].push(G));return Object.values(_).flatMap(G=>{const pe=G.filter($e=>$e.isActive);return pe.length===0&&G.length===1?G:pe})}function Gv(N){return N==null?"":N=/\|/g[Symbol.replace](N,"__gfp__")}function Pp(N){return N==null?"":/,/g[Symbol.replace](N,"__gfc__")}function Ig(N){return N==null?"":/#/g[Symbol.replace](N,"__gfh__")}function Dg(N){return Ig(Gv(N))}function Mg(N){return Pp(Gv(N))}function Hv(N){return N==null?"":(N=/__gfp__/g[Symbol.replace](N,"|"),N=/__gfc__/g[Symbol.replace](N,","),N=/__gfh__/g[Symbol.replace](N,"#"),N)}function qh(N,_){return!_||N===_?Pp(N):[N,_].map(Pp).join(",")}function Jf(N){return Array.isArray(N)?N:N.data}function Ip(N){return!Array.isArray(N)&&!!N.error}function Dp(N){const _=[],G=new Map;for(const pe of N){const $e=pe.group;if($e){let ct=G.get($e);ct||(ct=[],G.set($e,ct),_.push({label:$e,options:ct})),ct.push(pe)}else _.push(pe)}return _}function Mp(N){return{disabledPill:(0,Oe.css)({background:N.colors.action.selected,color:N.colors.text.disabled,border:0,"&:hover":{background:N.colors.action.selected}}),strikethrough:(0,Oe.css)({textDecoration:"line-through"})}}class Ph extends Rt{constructor(_){super({type:"constant",value:"",name:"",..._,skipUrlSync:!0}),this._variableDependency=new mc(this,{statePaths:["value"]}),this._prevValue=""}validateAndUpdate(){const _=this.getValue();return this._prevValue!==_&&(this._prevValue=_,this.publishEvent(new cr(this),!0)),(0,Nn.of)({})}getValue(){return typeof this.state.value=="string"?_o.interpolate(this,this.state.value):this.state.value}}class mc{constructor(_,G){this._sceneObject=_,this._options=G,this._dependencies=new Set,this._isWaitingForVariables=!1,this.scanCount=0,this._statePaths=G.statePaths,this._options.handleTimeMacros&&this.handleTimeMacros()}hasDependencyOn(_){return this.getNames().has(_)}variableUpdateCompleted(_,G){var pe,$e,ct,Yt;const In=this.getNames(),br=(In.has(_.state.name)||In.has(Qn.c.includeVars))&&G;Vt("VariableDependencyConfig","variableUpdateCompleted",_.state.name,br,this._isWaitingForVariables),($e=(pe=this._options).onAnyVariableChanged)==null||$e.call(pe,_),this._options.onVariableUpdateCompleted&&(this._isWaitingForVariables||br)&&this._options.onVariableUpdateCompleted(),br&&((Yt=(ct=this._options).onReferencedVariableValueChanged)==null||Yt.call(ct,_),!this._options.onReferencedVariableValueChanged&&!this._options.onVariableUpdateCompleted&&this._sceneObject.forceRender())}hasDependencyInLoadingState(){return this._isWaitingForVariables=_o.hasVariableDependencyInLoadingState(this._sceneObject),this._isWaitingForVariables}getNames(){const _=this._state,G=this._state=this._sceneObject.state;return(!_||G!==_&&(!this._statePaths||this._statePaths.some(Yt=>Yt==="*"||G[Yt]!==_[Yt])))&&this.scanStateForDependencies(G),this._dependencies}setVariableNames(_){this._options.variableNames=_,this.scanStateForDependencies(this._state)}setPaths(_){this._statePaths=_}scanStateForDependencies(_){if(this._dependencies.clear(),this.scanCount++,this._options.variableNames)for(const G of this._options.variableNames)this._dependencies.add(G);if(this._options.dependsOnScopes&&this._dependencies.add(En),this._statePaths)for(const G of this._statePaths)if(G==="*"){this.extractVariablesFrom(_);break}else{const pe=_[G];pe&&this.extractVariablesFrom(pe)}}extractVariablesFrom(_){Tt.lastIndex=0;const pe=(typeof _!="string"?zv(_):_).matchAll(Tt);if(pe)for(const $e of pe){const[,ct,Yt,,In]=$e,br=ct||Yt||In;this._dependencies.add(br)}}handleTimeMacros(){this._sceneObject.addActivationHandler(()=>{const G=_o.getTimeRange(this._sceneObject).subscribeToState((pe,$e)=>{const ct=this.getNames(),Yt=ct.has("__from"),In=ct.has("__to"),br=ct.has("__timezone");if(pe.value!==$e.value){if(Yt){const Ir=new Ph({name:"__from",value:pe.from});this.variableUpdateCompleted(Ir,!0)}else if(In){const Ir=new Ph({name:"__to",value:pe.to});this.variableUpdateCompleted(Ir,!0)}}if(pe.timeZone!==$e.timeZone&&br){const Ir=new Ph({name:"__timezone",value:pe.timeZone});this.variableUpdateCompleted(Ir,!0)}});return()=>G.unsubscribe()})}}var kp=u(48592);const Lp=N=>!!N.metricFindQuery&&!N.variables,Kv=N=>{if(!N.variables||N.variables.getType()!==kp.Qz.Standard)return!1;const _=N.variables;return"toDataQuery"in _&&!!_.toDataQuery},Np=N=>{if(!N.variables||N.variables.getType()!==kp.Qz.Custom)return!1;const _=N.variables;return"query"in _&&"editor"in _&&!!_.query&&!!_.editor},Fp=N=>N.variables?N.variables.getType()===kp.Qz.Datasource:!1;class kg{constructor(_,G=(0,Xe.XJ)()){this.datasource=_,this._runRequest=G}getTarget(_){if(Kv(this.datasource))return this.datasource.variables.toDataQuery(jg(_));throw new Error("Couldn't create a target with supplied arguments.")}runRequest(_,G){return Kv(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,G,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,G):ep()}}class Lg{constructor(_){this.datasource=_}getTarget(_){if(Lp(this.datasource))return _.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest({variable:_,searchFilter:G},pe){return Lp(this.datasource)?(0,Mi.H)(this.datasource.metricFindQuery(_.state.query,{...pe,variable:{name:_.state.name,type:_.state.type},searchFilter:G})).pipe((0,ra.Z)($e=>{if(!$e||!$e.length)return ep();const ct=$e;return(0,Nn.of)({series:ct,state:Y.Gu.Done,timeRange:pe.range})})):ep()}}class Ng{constructor(_,G=(0,Xe.XJ)()){this.datasource=_,this._runRequest=G}getTarget(_){if(Np(this.datasource))return _.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest(_,G){return Np(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,G,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,G):ep()}}const Z0="variable-query";class X0{constructor(_,G=(0,Xe.XJ)()){this.datasource=_,this._runRequest=G}getTarget(_){var G;if(Fp(this.datasource))return typeof _.state.query=="string"?_.state.query:{..._.state.query,refId:(G=_.state.query.refId)!=null?G:Z0};throw new Error("Couldn't create a target with supplied arguments.")}runRequest(_,G){return Fp(this.datasource)?this._runRequest(this.datasource,G):ep()}}function ep(){return(0,Nn.of)({state:Y.Gu.Done,series:[],timeRange:(0,kn.E2)()})}function Fg(N){if(Kv(N))return new kg(N,(0,Xe.XJ)());if(Lp(N))return new Lg(N);if(Np(N))return new Ng(N);if(Fp(N))return new X0(N);throw new Error(`Couldn't create a query runner for datasource ${N.type}`)}let Yv=Fg;function jg(N){var _;const G=(_=N.state.query)!=null?_:"";return typeof G=="string"?{query:G,refId:`variable-${N.state.name}`}:G.refId==null?{...G,refId:`variable-${N.state.name}`}:N.state.query}function Bg(N,_,G){var pe,$e,ct,Yt,In,br,Ir,Wr,Gr,pi;let Ri,Zi=[];N&&(Ri=(0,zr.dO)(N));for(let ia=0;ia<G.length;ia++){const Fa=G[ia];let Ba=($e=(pe=Fa.text)!=null?pe:Fa.value)!=null?$e:"",Va=(Yt=(ct=Fa.value)!=null?ct:Fa.text)!=null?Yt:"";if((0,Wt.isNumber)(Va)&&(Va=Va.toString()),(0,Wt.isNumber)(Ba)&&(Ba=Ba.toString()),Ri){const Ra=$g(Va,Ri);if(!Ra.length)continue;const Ya=Ra.find($o=>$o.groups&&$o.groups.value),Ao=Ra.find($o=>$o.groups&&$o.groups.text),Co=Ra.find($o=>$o.length>1),ao=Ra.length>1&&Co;if(Ya||Ao)Va=(Ir=(In=Ya?.groups)==null?void 0:In.value)!=null?Ir:(br=Ao?.groups)==null?void 0:br.text,Ba=(pi=(Wr=Ao?.groups)==null?void 0:Wr.text)!=null?pi:(Gr=Ya?.groups)==null?void 0:Gr.value;else if(ao){for(let $o=0;$o<Ra.length;$o++){const ko=Ra[$o];Zi.push({label:ko[1],value:ko[1]})}continue}else Co&&(Ba=Co[1],Va=Co[1])}Zi.push({label:Ba,value:Va})}return Zi=(0,Wt.uniqBy)(Zi,"value"),Jv(Zi,_)}const $g=(N,_)=>{const G=[];let pe=null;_.lastIndex=0;do pe=_.exec(N),pe&&G.push(pe);while(_.global&&pe&&pe[0]!==""&&pe[0]!==void 0);return G},Jv=(N,_)=>{if(_===V.ZG.disabled)return N;switch(_){case V.ZG.alphabeticalAsc:N=(0,Wt.sortBy)(N,"label");break;case V.ZG.alphabeticalDesc:N=(0,Wt.sortBy)(N,"label").reverse();break;case V.ZG.numericalAsc:N=(0,Wt.sortBy)(N,Ug);break;case V.ZG.numericalDesc:N=(0,Wt.sortBy)(N,Ug),N=N.reverse();break;case V.ZG.alphabeticalCaseInsensitiveAsc:N=(0,Wt.sortBy)(N,G=>(0,Wt.toLower)(G.label));break;case V.ZG.alphabeticalCaseInsensitiveDesc:N=(0,Wt.sortBy)(N,G=>(0,Wt.toLower)(G.label)),N=N.reverse();break;case(V.ZG.naturalAsc||7):N=Vg(N);break;case(V.ZG.naturalDesc||8):N=Vg(N),N=N.reverse();break}return N};function Ug(N){if(!N.label)return-1;const _=N.label.match(/.*?(\d+).*/);return!_||_.length<2?-1:parseInt(_[1],10)}const Q0=new Intl.Collator(void 0,{sensitivity:"accent",numeric:!0});function Vg(N){return N.slice().sort((_,G)=>Q0.compare(_.label,G.label))}function q0(){return N=>N.pipe((0,Qr.T)(_=>{const G=_.series;if(!G||!G.length)return[];if(eb(G))return G;if(G[0].fields.length===0)return[];const pe=(0,Ie.Bt)(G),$e=[];let ct=-1,Yt=-1,In=-1,br=-1;for(const Ir of pe)for(let Wr=0;Wr<Ir.fields.length;Wr++){const Gr=Ir.fields[Wr],pi=(0,Xn.Ct)(Gr,Ir,G).toLowerCase();Gr.type===wa.PU.string&&In===-1&&(In=Wr),pi==="text"&&Gr.type===wa.PU.string&&Yt===-1&&(Yt=Wr),pi==="value"&&Gr.type===wa.PU.string&&ct===-1&&(ct=Wr),pi==="expandable"&&(Gr.type===wa.PU.boolean||Gr.type===wa.PU.number)&&br===-1&&(br=Wr)}if(In===-1)throw new Error("Couldn't find any field of type string in the results.");for(const Ir of G)for(let Wr=0;Wr<Ir.length;Wr++){const Gr=br!==-1?Ir.fields[br].values.get(Wr):void 0,pi=Ir.fields[In].values.get(Wr),Ri=Yt!==-1?Ir.fields[Yt].values.get(Wr):"",Zi=ct!==-1?Ir.fields[ct].values.get(Wr):"";if(ct===-1&&Yt===-1){$e.push({text:pi,value:pi,expandable:Gr});continue}if(ct===-1&&Yt!==-1){$e.push({text:Ri,value:Ri,expandable:Gr});continue}if(ct!==-1&&Yt===-1){$e.push({text:Zi,value:Zi,expandable:Gr});continue}$e.push({text:Ri,value:Zi,expandable:Gr})}return $e}))}function eb(N){if(!N)return!1;if(!N.length)return!0;const _=N[0];if((0,Ie.ci)(_))return!1;for(const G in _){if(!_.hasOwnProperty(G)||_[G]!==null&&typeof _[G]!="string"&&typeof _[G]!="number")continue;const pe=G.toLowerCase();if(pe==="text"||pe==="value")return!0}return!1}class Zv extends ir{constructor(_){super({type:"query",name:"",value:"",text:"",options:[],datasource:null,regex:"",query:"",refresh:V.CO.onDashboardLoad,sort:V.ZG.disabled,..._}),this._variableDependency=new mc(this,{statePaths:["regex","query","datasource"]}),this.onSearchChange=G=>{tb(this.state.query)&&this._updateOptionsBasedOnSearchFilter(G)},this._updateOptionsBasedOnSearchFilter=(0,Wt.debounce)(async G=>{const pe=await(0,vi.s)(this.getValueOptions({searchFilter:G}));this.setState({options:pe,loading:!1})},400)}getValueOptions(_){return this.state.query?(this.setState({loading:!0,error:null}),(0,Mi.H)(Di(this.state.datasource,{__sceneObject:Us(this)})).pipe((0,ra.Z)(G=>{const pe=Yv(G),$e=pe.getTarget(this),ct=this.getRequest($e,_.searchFilter);return pe.runRequest({variable:this,searchFilter:_.searchFilter},ct).pipe(Ti({type:"QueryVariable/getValueOptions",request:ct,origin:this}),(0,Yi.p)(Yt=>Yt.state===Y.Gu.Done||Yt.state===Y.Gu.Error),(0,ua.s)(1),(0,ra.Z)(Yt=>Yt.state===Y.Gu.Error?(0,Sa.$)(()=>Yt.error):(0,Nn.of)(Yt)),q0(),(0,ra.Z)(Yt=>{let In="";this.state.regex&&(In=_o.interpolate(this,this.state.regex,void 0,"regex"));let br=Bg(In,this.state.sort,Yt);if(this.state.staticOptions){const Ir=this.state.staticOptions;br=br.filter(Wr=>!Ir.find(Gr=>Gr.value===Wr.value)),this.state.staticOptionsOrder==="after"?br.push(...Ir):this.state.staticOptionsOrder==="sorted"?br=Jv(br.concat(Ir),this.state.sort):br.unshift(...Ir)}return(0,Nn.of)(br)}),(0,Xt.W)(Yt=>Yt.cancelled?(0,Nn.of)([]):(0,Sa.$)(()=>Yt)))}))):(0,Nn.of)([])}getRequest(_,G){const pe={__sceneObject:Us(this)};G&&(pe.__searchFilter={value:G,text:G});const $e=_o.getTimeRange(this).state.value;return{app:D.Jk.Dashboard,requestId:q(),timezone:"",range:$e,interval:"",intervalMs:0,targets:[_],scopedVars:pe,startTime:Date.now()}}}Zv.Component=({model:N})=>C.createElement(Hi,{model:N});function tb(N){return zv(N).indexOf(Gt)>-1}var zg=u(69896),nb=u(59857);class Xv extends Rt{constructor(_){super({skipUrlSync:!0,loading:!0,scopes:[],..._,type:"system",name:En,hide:nb.zL.hideVariable}),this._renderBeforeActivation=!0,this.UNSAFE_renderAsHidden=!0}getValue(){var _;const G=(_=this.state.scopes)!=null?_:[];return new Wg(G.map(pe=>pe.metadata.name))}getScopes(){return this.state.scopes}setContext(_){if(!_)return;this._context=_;const G=_.state;this.state.enable!=null&&_.setEnabled(this.state.enable);const pe=_.stateObservable.subscribe($e=>{this.updateStateFromContext($e)});return()=>{pe.unsubscribe(),this.state.enable!=null&&_.setEnabled(G.enabled)}}updateStateFromContext(_){const G=_.value.length===0?!1:_.loading,pe=this.state.scopes.map(Yt=>Yt.metadata.name),$e=_.value.map(Yt=>Yt.metadata.name),ct=!(0,Wt.isEqual)(pe,$e);if(!G&&(ct||$e.length===0)){const Yt=gn(this);Yt?.startProfile(un),this.setState({scopes:_.value,loading:G}),this.publishEvent(new cr(this),!0)}else this.setState({loading:G})}}Xv.Component=rb;function rb({model:N}){const _=(0,C.useContext)(zg.j);return(0,C.useEffect)(()=>N.setContext(_),[_,N]),null}class Wg{constructor(_){this._value=_}formatter(_){return _===Fe.$m.QueryParam?this._value.map(G=>`scope=${encodeURIComponent(G)}`).join("&"):this._value.join(", ")}}function ib(N){var _;return(_=ln(N,G=>G.state.$variables))!=null?_:An}function jp(N){var _;return(_=ln(N,G=>G.state.$data))!=null?_:Gn}function Gg(N){return"isDraggable"in N}function Hg(N){const _=ln(N,G=>Gg(G)?G:void 0);return _||null}function tp(N,_,G,pe,$e){return _===""||_==null?"":an(N,_,G,pe,$e)}function Kg(N){if(!N.variableDependency)return!1;for(const _ of N.variableDependency.getNames()){if(N instanceof Zv&&N.state.name===_){console.warn("Query variable is referencing itself");continue}const G=rn(_,N);if(!G)continue;if(G.parent.isVariableLoadingOrWaitingToUpdate(G))return!0}return!1}function Nf(N,_,G,pe){if(_(N))return N;let $e=null;return N.forEachChild(ct=>{if(ct===G)return;let Yt=Nf(ct,_);if(Yt)return $e=Yt,!1}),$e||(pe&&N.parent?Nf(N.parent,_,N,!0):null)}function Qv(N,_){const G=Bp(N,pe=>pe.state.key===_);if(!G)throw new Error("Unable to find scene with key "+_);return G}function ab(N,_,G){const pe=Bp(N,$e=>$e.state.key===_);if(!pe)throw new Error("Unable to find scene with key "+_);if(!(pe instanceof G))throw new Error(`Found scene object with key ${_} does not match type ${G.name}`);return pe}function Bp(N,_){return Nf(N,_,void 0,!0)}function qv(N,_){const G=[];return N.forEachChild(pe=>{_(pe)&&G.push(pe),G.push(...qv(pe,_))}),G}function Yg(N,_=!1){let G=N,pe=[];for(;G;){const $e=G.state.$data;if(!$e){G=G.parent;continue}if(jr($e)?pe=pe.concat($e):$e.state.$data&&jr($e.state.$data)&&(pe=pe.concat($e.state.$data)),_&&pe.length>0)break;G=G.parent}return pe}function Jg(N,_){let G=N;for(;G;){if(G instanceof _)return G;G=G.parent}if(!G)throw new Error("Unable to find parent of type "+_.name);return G}function Zg(N,_){function G($e){return $e instanceof _}return qv(N,G).filter(G)}function em(N){const _=rn(En,N);if(_ instanceof Xv)return _.state.scopes}const _o={getVariables:ib,getData:jp,getTimeRange:Un,getLayout:Hg,getDataLayers:Yg,interpolate:tp,lookupVariable:rn,hasVariableDependencyInLoadingState:Kg,findByKey:Qv,findByKeyAndType:ab,findObject:Bp,findAllObjects:qv,getAncestor:Jg,getQueryController:gn,findDescendents:Zg,getScopes:em};class Xg extends Rt{constructor(_){super({type:"system",value:"",text:"",name:"",..._,skipUrlSync:!0})}getValue(){return this.state.value}getValueText(){return this.state.text.toString()}isAncestorLoading(){var _,G;const pe=(G=(_=this.parent)==null?void 0:_.parent)==null?void 0:G.parent;if(!pe)throw new Error("LocalValueVariable requires a parent SceneVariableSet that has an ancestor SceneVariableSet");const $e=_o.getVariables(pe),ct=_o.lookupVariable(this.state.name,pe);return $e&&ct?$e.isVariableLoadingOrWaitingToUpdate(ct):!1}}const Qg="$";function qg(N){let _=`panel-${N.getLegacyPanelId()}`,G,pe=N;for(;pe;){const $e=pe.state.$variables;$e&&$e.state.variables.forEach(ct=>{ct.state.name!==G&&ct instanceof Xg&&(_=`${ct.state.value}${Qg}${_}`,G=ct.state.name)}),pe=pe.parent}return _}function ey(N){return N.state.type==="adhoc"}function ob(N){return N.state.type==="constant"}function ty(N){return N.state.type==="custom"}function sb(N){return N.state.type==="datasource"}function tm(N){return N.state.type==="interval"}function ny(N){return N.state.type==="query"}function qd(N){return N.state.type==="textbox"}function ub(N){return N.state.type==="groupby"}function ry(N){return N.state.type==="switch"}class $S extends Rt{constructor(){super(...arguments),this._runningEffect=null,this._variableDependency=new mc(this,{variableNames:[this.state.variableName],onReferencedVariableValueChanged:this._onVariableChanged.bind(this)})}_onVariableChanged(_){const G=this.state.onChange;this._runningEffect&&(this._runningEffect(),this._runningEffect=null);const pe=G(_,this);pe&&(this._runningEffect=pe)}}function wl(N,_,...G){let pe=!1;typeof window<"u"&&(pe=localStorage.getItem("grafana.debug.sceneProfiling")==="true"),pe&&console.log(`${N}: `,_,...G)}class lb{constructor(_){this._config=_,this._subscriptions=[]}attachToScene(_){this._sceneObject=_;const G=_.subscribeToState((pe,$e)=>{this._config.watchStateKey?pe[this._config.watchStateKey]!==$e[this._config.watchStateKey]&&this._attachProfilersToPanels():this._attachProfilersToPanels()});this._subscriptions.push(G),this._attachProfilersToPanels()}attachProfilerToPanel(_){var G;if((G=_.state.$behaviors)==null?void 0:G.find(ct=>ct instanceof js))return;const $e=new js;_.setState({$behaviors:[..._.state.$behaviors||[],$e]})}_attachProfilersToPanels(){if(!this._sceneObject)return;_o.findAllObjects(this._sceneObject,G=>G instanceof Tu).forEach(G=>{this.attachProfilerToPanel(G)})}cleanup(){this._subscriptions.forEach(_=>_.unsubscribe()),this._subscriptions=[],this._sceneObject=void 0}}var nm=N=>{throw TypeError(N)},rm=(N,_,G)=>_.has(N)||nm("Cannot "+G),Wc=(N,_,G)=>(rm(N,_,"read from private field"),G?G.call(N):_.get(N)),kd=(N,_,G)=>_.has(N)?nm("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(N):_.set(N,G),Zf=(N,_,G,pe)=>(rm(N,_,"write to private field"),_.set(N,G),G),Ld,Nd,ph,np,vh;const $p=50;class iy{constructor(){kd(this,Ld,!1),kd(this,Nd,null),kd(this,ph,null),kd(this,np,0),kd(this,vh,null),this.measureFrames=()=>{if(!Wc(this,Ld))return;const _=performance.now(),G=_-Wc(this,np);if(G>$p){const pe={duration:G,timestamp:_,method:"manual"};if(Wc(this,Nd)&&Wc(this,Nd).call(this,pe),typeof performance<"u"&&performance.mark&&performance.measure){const $e=`long-frame-manual-${_.toFixed(0)}`,ct=`${$e}-start`,Yt=`${$e}-end`,In=`Long Frame (Manual): ${G.toFixed(1)}ms`;try{performance.mark(ct,{startTime:_-G}),performance.mark(Yt,{startTime:_}),performance.measure(In,ct,Yt)}catch{performance.mark(In)}}wl("LFD",`Long frame detected (manual): ${G}ms (threshold: ${$p}ms)`)}Zf(this,np,_),Wc(this,Ld)&&Zf(this,ph,requestAnimationFrame(this.measureFrames))}}isLoAFAvailable(){return typeof PerformanceObserver<"u"&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}start(_){Wc(this,Ld)&&(wl("LFD","Already tracking frames, stopping previous session"),this.stop()),Zf(this,Nd,_),Zf(this,Ld,!0),this.isLoAFAvailable()?this.startLoAFTracking():this.startManualFrameTracking(),wl("LFD",`Started tracking with ${this.isLoAFAvailable()?"LoAF API":"manual"} method, threshold: ${$p}ms`)}stop(){Wc(this,Ld)&&(Zf(this,Ld,!1),Zf(this,Nd,null),this.stopLoAFTracking(),this.stopManualFrameTracking())}isTracking(){return Wc(this,Ld)}startLoAFTracking(){if(!this.isLoAFAvailable()){wl("LFD","LoAF API not available, falling back to manual tracking"),this.startManualFrameTracking();return}try{Zf(this,vh,new PerformanceObserver(_=>{for(const G of _.getEntries()){const pe={duration:G.duration,timestamp:G.startTime,method:"loaf"};if(Wc(this,Nd)&&Wc(this,Nd).call(this,pe),typeof performance<"u"&&performance.mark&&performance.measure){const $e=`long-frame-${G.startTime.toFixed(0)}`,ct=`${$e}-start`,Yt=`${$e}-end`,In=`Long Frame (LoAF): ${G.duration.toFixed(1)}ms`;try{performance.mark(ct,{startTime:G.startTime}),performance.mark(Yt,{startTime:G.startTime+G.duration}),performance.measure(In,ct,Yt)}catch{performance.mark(In)}}wl("LFD",`Long frame detected (LoAF): ${G.duration}ms at ${G.startTime}ms`)}})),Wc(this,vh).observe({type:"long-animation-frame",buffered:!1})}catch(_){wl("LFD","Failed to start LoAF tracking, falling back to manual:",_),this.startManualFrameTracking()}}stopLoAFTracking(){Wc(this,vh)&&(Wc(this,vh).disconnect(),Zf(this,vh,null),wl("LFD","Stopped LoAF tracking"))}startManualFrameTracking(){Zf(this,np,performance.now()),Zf(this,ph,requestAnimationFrame(()=>this.measureFrames()))}stopManualFrameTracking(){Wc(this,ph)&&(cancelAnimationFrame(Wc(this,ph)),Zf(this,ph,null),wl("LFD","Stopped manual frame tracking"))}}Ld=new WeakMap,Nd=new WeakMap,ph=new WeakMap,np=new WeakMap,vh=new WeakMap;var ay=N=>{throw TypeError(N)},oy=(N,_,G)=>_.has(N)||ay("Cannot "+G),ms=(N,_,G)=>(oy(N,_,"read from private field"),G?G.call(N):_.get(N)),Rs=(N,_,G)=>_.has(N)?ay("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(N):_.set(N,G),Ru=(N,_,G,pe)=>(oy(N,_,"write to private field"),_.set(N,G),G),sy=(N,_,G,pe)=>({set _($e){Ru(N,_,$e)},get _(){return ms(N,_,pe)}}),Ml,zl,eh,Gc,Fd,mh,gh,Ff,jd,Bd,md;const cb=2e3,fb=30;class db{constructor(_){Rs(this,Ml,null),Rs(this,zl,null),Rs(this,eh,null),Rs(this,Gc,null),this.metadata={},Rs(this,Fd),Rs(this,mh,[]),Rs(this,gh),Rs(this,Ff,0),Rs(this,jd,0),Rs(this,Bd,null),Rs(this,md,null),this.measureTrailingFrames=(G,pe,$e)=>{const ct=performance.now(),Yt=ct-pe;if(ms(this,mh).push(Yt),ct-G<cb)ms(this,Ml)&&Ru(this,Gc,requestAnimationFrame(()=>this.measureTrailingFrames(G,ct,$e)));else{const In=hb(ms(this,mh)),br=In.reduce((Zi,ia)=>Zi+ia,0);wl("SRP","Profile tail recorded, slow frames duration:",br,In,ms(this,Ml)),Ru(this,mh,[]);const Ir=G-$e,Wr=In.length>0?`${br.toFixed(1)}ms slow frames[tail recording] (${In.length}) \u26A0\uFE0F`:`${br.toFixed(1)}ms slow frames[tail recording] (${In.length})`,Gr=ms(this,Ff)>0?`${ms(this,jd).toFixed(1)}ms long frames[LoAF] (${ms(this,Ff)}) \u26A0\uFE0F`:`${ms(this,jd).toFixed(1)}ms long frames[LoAF] (${ms(this,Ff)})`;wl("SRP",`[PROFILER] Complete: ${(Ir+br).toFixed(1)}ms total | ${Wr} | ${Gr}`),ms(this,gh).stop(),Ru(this,Gc,null);const pi=$e+Ir+br;if(!ms(this,Ml))return;const Ri=uy($e,pi);if(ms(this,Ml)){const Zi={operationId:ms(this,Fd)||qn("dashboard-fallback"),interactionType:ms(this,Ml).origin,timestamp:pi,duration:Ir+br,networkDuration:Ri,longFramesCount:ms(this,Ff),longFramesTotalTime:ms(this,jd),metadata:this.metadata};hi().notifyDashboardInteractionComplete(Zi),Ru(this,Ml,null),Ru(this,Gc,null)}}},Ru(this,gh,new iy),this.setupVisibilityChangeHandler(),Ru(this,zl,null),_&&(this._panelProfilingManager=new lb(_))}setMetadata(_){this.metadata={..._}}setQueryController(_){this.queryController=_}attachPanelProfiling(_){var G;(G=this._panelProfilingManager)==null||G.attachToScene(_)}attachProfilerToPanel(_){var G;wl("SRP","Attaching profiler to panel",_.state.key),(G=this._panelProfilingManager)==null||G.attachProfilerToPanel(_)}setInteractionCompleteHandler(_){Ru(this,md,_??null)}setupVisibilityChangeHandler(){ms(this,Bd)||(Ru(this,Bd,()=>{document.hidden&&ms(this,Ml)&&(wl("SRP","Tab became inactive, cancelling profile"),this.cancelProfile())}),typeof document<"u"&&document.addEventListener("visibilitychange",ms(this,Bd)))}cleanup(){var _;ms(this,Bd)&&typeof document<"u"&&(document.removeEventListener("visibilitychange",ms(this,Bd)),Ru(this,Bd,null)),ms(this,gh).stop(),this.cancelProfile(),(_=this._panelProfilingManager)==null||_.cleanup()}startProfile(_){if(document.hidden){wl("SRP","Tab is inactive, skipping profile",_);return}ms(this,Ml)?ms(this,Gc)?(this.cancelProfile(),this._startNewProfile(_,!0)):this.addCrumb(_):this._startNewProfile(_)}startInteraction(_){ms(this,zl)&&(wl("SRP","Cancelled interaction:",ms(this,zl)),Ru(this,zl,null)),Ru(this,zl,{interaction:_,startTs:performance.now()}),wl("SRP","Started interaction:",_)}stopInteraction(){if(!ms(this,zl))return;const _=performance.now(),G=_-ms(this,zl).startTs,pe=uy(ms(this,zl).startTs,_);wl("SRP",`[INTERACTION] Complete: ${G.toFixed(1)}ms total | ${pe.toFixed(1)}ms network`),ms(this,md)&&ms(this,Ml)&&ms(this,md).call(this,{origin:ms(this,zl).interaction,duration:G,networkDuration:pe,startTs:ms(this,zl).startTs,endTs:_}),performance.mark(`${ms(this,zl).interaction}_start`,{startTime:ms(this,zl).startTs}),performance.mark(`${ms(this,zl).interaction}_end`,{startTime:_}),performance.measure(`Interaction_${ms(this,zl).interaction}`,`${ms(this,zl).interaction}_start`,`${ms(this,zl).interaction}_end`),Ru(this,zl,null)}getCurrentInteraction(){var _,G;return(G=(_=ms(this,zl))==null?void 0:_.interaction)!=null?G:null}_startNewProfile(_,G=!1){wl("SRP",`[PROFILER] ${_} started (${G?"forced":"clean"})`),Ru(this,Ml,{origin:_,crumbs:[]}),Ru(this,eh,performance.now()),Ru(this,Ff,0),Ru(this,jd,0),Ru(this,Fd,qn("dashboard")),hi().notifyDashboardInteractionStart({operationId:ms(this,Fd),interactionType:_,timestamp:ms(this,eh),metadata:this.metadata}),ms(this,gh).start($e=>{!ms(this,Ml)||!ms(this,eh)||$e.timestamp<ms(this,eh)||(sy(this,Ff)._++,Ru(this,jd,ms(this,jd)+$e.duration))})}recordProfileTail(_,G){Ru(this,Gc,requestAnimationFrame(()=>this.measureTrailingFrames(_,_,G)))}tryCompletingProfile(){var _;wl("SRP","Trying to complete profile",ms(this,Ml)),((_=this.queryController)==null?void 0:_.runningQueriesCount())===0&&ms(this,Ml)&&(wl("SRP","All queries completed, stopping profile"),this.recordProfileTail(performance.now(),ms(this,eh)))}isTailRecording(){return!!ms(this,Gc)}cancelTailRecording(){ms(this,Gc)&&(cancelAnimationFrame(ms(this,Gc)),Ru(this,Gc,null),wl("SRP","Cancelled recording frames, new profile started"))}cancelProfile(){ms(this,Ml)&&(wl("SRP","Cancelling profile",ms(this,Ml)),Ru(this,Ml,null),ms(this,Gc)&&(cancelAnimationFrame(ms(this,Gc)),Ru(this,Gc,null)),ms(this,gh).stop(),wl("SRP","Stopped long frame detection - profile cancelled"),Ru(this,mh,[]),Ru(this,Ff,0),Ru(this,jd,0))}addCrumb(_){ms(this,Ml)&&(hi().notifyDashboardInteractionMilestone({operationId:qn("dashboard-milestone"),interactionType:ms(this,Ml).origin,timestamp:performance.now(),milestone:_,metadata:this.metadata}),ms(this,Ml).crumbs.push(_))}}Ml=new WeakMap,zl=new WeakMap,eh=new WeakMap,Gc=new WeakMap,Fd=new WeakMap,mh=new WeakMap,gh=new WeakMap,Ff=new WeakMap,jd=new WeakMap,Bd=new WeakMap,md=new WeakMap;function hb(N){for(let _=N.length-1;_>=0;_--)if(N[_]>fb)return N.slice(0,_+1);return[N[0]]}function uy(N,_){const G=performance.getEntriesByType("resource");performance.clearResourceTimings();const pe=G.filter($e=>$e.startTime>=N&&$e.startTime<=_&&$e.responseEnd>=N&&$e.responseEnd<=_);for(const $e of pe)performance.measure("Network entry "+$e.name,{start:$e.startTime,end:$e.responseEnd});return pb(pe)}function pb(N){if(N.length===0)return 0;N.sort(($e,ct)=>$e.startTime-ct.startTime);let _=0,G=N[0].startTime,pe=N[0].responseEnd;for(let $e=1;$e<N.length;$e++)N[$e].startTime<=pe?pe=Math.max(pe,N[$e].responseEnd):(_+=pe-G,G=N[$e].startTime,pe=N[$e].responseEnd);return _+=pe-G,_}var im=u(27359),Up=u(68143);function vb(N){if(typeof N=="string")return N;if(N){if(N instanceof Error)return N.message;if((0,Up.NF)(N)){if(N.data&&N.data.message)return N.data.message;if(N.statusText)return N.statusText}else if(N.hasOwnProperty("message"))return N.message}return JSON.stringify(N)}class rp extends Rt{constructor(_,G=[]){super({isEnabled:!0,..._}),this._results=new P.m(1),this.isDataLayer=!0,this._variableValueRecorder=new Pi,this._variableDependency=new mc(this,{onVariableUpdateCompleted:this.onVariableUpdateCompleted.bind(this),dependsOnScopes:!0}),this._variableDependency.setPaths(G),this.addActivationHandler(()=>this.onActivate())}onActivate(){return this.state.isEnabled&&this.onEnable(),this.shouldRunLayerOnActivate()&&this.runLayer(),this.subscribeToState((_,G)=>{!_.isEnabled&&this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.onDisable(),this._results.next({origin:this,data:bt}),this.setStateHelper({data:bt})),_.isEnabled&&!G.isEnabled&&(this.onEnable(),this.runLayer())}),()=>{this.onDeactivate()}}onDeactivate(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0),this.onDisable(),this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this)}onVariableUpdateCompleted(){this.runLayer()}cancelQuery(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.publishResults(bt))}publishResults(_){this.state.isEnabled&&(this._results.next({origin:this,data:_}),this.setStateHelper({data:_}))}getResultsStream(){return this._results}shouldRunLayerOnActivate(){return this.state.isEnabled?this._variableValueRecorder.hasDependenciesChanged(this)?(Vt("SceneDataLayerBase","Variable dependency changed while inactive, shouldRunLayerOnActivate returns true"),!0):!this.state.data:!1}setStateHelper(_){Ni(this,_)}}var gd=u(52645),ip=u(88907);const ly={prepareAnnotation:N=>{if((0,Wt.isString)(N?.query)){const{query:_,...G}=N;return{...G,target:{refId:"annotation_query",query:_},mappings:{}}}return N},prepareQuery:N=>N.target,processEvents:(N,_)=>dy(_,N.mappings)};function cy(){return N=>N.pipe((0,ra.Z)(_=>{if(!_?.length)return(0,Nn.of)(void 0);if(_.length===1)return(0,Nn.of)(_[0]);const G={interpolate:pe=>pe};return(0,Nn.of)(_).pipe(gd.c.mergeTransformer.operator({},G),(0,Qr.T)(pe=>pe[0]))}))}const fy=[{key:"time",field:N=>N.fields.find(_=>_.type===wa.PU.time),placeholder:"time, or the first time field"},{key:"timeEnd",help:"When this field is defined, the annotation will be treated as a range"},{key:"title"},{key:"text",field:N=>N.fields.find(_=>_.type===wa.PU.string),placeholder:"text, or the first text field"},{key:"tags",split:",",help:"The results will be split on comma (,)"},{key:"id"}],Vp=[{key:"color"},{key:"isRegion"},{key:"source"}],am=[...pt.$.publicDashboardAccessToken?Vp:[],...fy,{key:"userId"},{key:"login"},{key:"email"},{key:"prevState"},{key:"newState"},{key:"data"},{key:"panelId"},{key:"alertId"},{key:"dashboardId"},{key:"dashboardUID"}];function dy(N,_){return(0,Nn.of)(N).pipe(cy(),(0,Qr.T)(G=>{if(!G?.length)return[];let pe=!1,$e=!1;const ct={};for(const br of G.fields){const Ir=(0,Xn.Ct)(br,G);ct[Ir.toLowerCase()]=br}_||(_={});const Yt=[];for(const br of am){const Ir=_[br.key]||{};if(Ir.source===ip.V.Skip)continue;const Wr={key:br.key,split:br.split};if(Ir.source===ip.V.Text)Wr.text=Ir.value;else{const Gr=(Ir.value||br.key).toLowerCase();Wr.field=ct[Gr],!Wr.field&&br.field&&(Wr.field=br.field(G))}(Wr.field||Wr.text)&&(Yt.push(Wr),Wr.key==="time"?pe=!0:Wr.key==="text"&&($e=!0))}if(!pe||!$e)return console.error("Cannot process annotation fields. No time or text present."),[];const In=[];for(let br=0;br<G.length;br++){const Ir={type:"default",color:"red"};for(const Wr of Yt){let Gr;if(Wr.text)Gr=Wr.text;else if(Wr.field&&(Gr=Wr.field.values.get(br),Gr!==void 0&&Wr.regex)){const pi=Wr.regex.exec(Gr);pi&&(Gr=pi[1]?pi[1]:pi[0])}Gr!=null&&(Wr.split&&typeof Gr=="string"&&(Gr=Gr.split(",")),Ir[Wr.key]=Gr)}In.push(Ir)}return In}))}const mb=["prometheus","loki","elasticsearch","grafana-opensearch-datasource"];function gb(N){const{type:_}=N;return!N.annotations||mb.includes(_)}let yb=100;function bb(){return"AQ"+yb++}function hy(N,_,G,pe,$e,ct){var Yt;if(N.annotationQuery&&gb(N))return console.warn("Using deprecated annotationQuery method, please upgrade your datasource"),(0,Mi.H)(N.annotationQuery({range:_.state.value,rangeRaw:_.state.value.raw,annotation:G,dashboard:{getVariables:(0,$f.w)().getVariables}})).pipe((0,Qr.T)(Fa=>({state:Jn.Gu.Done,events:Fa})));const In={...ly,...N.annotations},br={...(Yt=In.getDefaultQuery)==null?void 0:Yt.call(In),...G},Ir=In.prepareAnnotation(br);if(!Ir)return(0,Nn.of)({state:Jn.Gu.Done,events:[]});const Wr=In.prepareQuery(Ir);if(!Wr)return(0,Nn.of)({state:Jn.Gu.Done,events:[]});const Gr=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,pi=fe.calculateInterval(_.state.value,Gr,N.interval),Ri={__interval:{text:pi.interval,value:pi.interval},__interval_ms:{text:pi.intervalMs.toString(),value:pi.intervalMs},__annotation:{text:Ir.name,value:Ir},__sceneObject:Us(pe)},Zi={startTime:Date.now(),requestId:bb(),range:_.state.value,maxDataPoints:Gr,scopedVars:Ri,...pi,app:D.Jk.Dashboard,timezone:_.getTimeZone(),targets:[{...Wr,refId:"Anno"}],scopes:_o.getScopes(pe),filters:$e,groupByKeys:ct,..._n(pe)};return(0,Xe.XJ)()(N,Zi).pipe((0,ra.Z)(Fa=>{const Ba=Fa?.series.length?Fa.series:Fa.annotations;return Ba?.length?(Ba.forEach(Va=>{var Ra;(Ra=Va.meta)!=null&&Ra.dataTopic||(Va.meta={...Va.meta||{},dataTopic:Fe.QR.Annotations})}),In.processEvents(Ir,Ba).pipe((0,Qr.T)(Va=>({state:Fa.state,events:Va||[]})))):(0,Nn.of)({state:Fa.state,events:[]})}))}function Sb(N,_){return N.snapshotData&&(N=(0,Wt.cloneDeep)(N),delete N.snapshotData),_.map(pe=>{var $e;const ct={...pe};switch(ct.source=N,ct.color=pt.$.theme2.visualization.getColorByName(N.iconColor),ct.type=N.name,ct.isRegion=!!(ct.timeEnd&&ct.time!==ct.timeEnd),($e=ct.newState)==null?void 0:$e.toLowerCase()){case"pending":ct.color="yellow";break;case"alerting":ct.color="red";break;case"ok":ct.color="green";break;case"normal":ct.color="green";break;case"no_data":ct.color="gray";break;case"nodata":ct.color="gray";break}return ct})}function _b(N){let _=[];const G=(0,Wt.partition)(N,"id"),pe=(0,Wt.groupBy)(G[0],"id");return _=(0,Wt.map)(pe,$e=>$e.length>1&&!(0,Wt.every)($e,py)?(0,Wt.find)($e,ct=>ct.eventType!=="panel-alert"):(0,Wt.head)($e)),_=(0,Wt.concat)(_,G[1]),_}function py(N){return N.eventType==="panel-alert"}var zp=u(21285);class vy extends rp{constructor(_){super({isEnabled:!0,..._},["query"]),this._scopedVars={__sceneObject:Us(this)},this._drilldownDependenciesManager=new $v(this._variableDependency)}onEnable(){this.publishEvent(new be._,!0);const _=_o.getTimeRange(this);this.setState({query:{...this.state.query,enable:!0}}),this._timeRangeSub=_.subscribeToState(()=>{this.runWithTimeRange(_)})}onDisable(){var _;this.publishEvent(new be._,!0),this.setState({query:{...this.state.query,enable:!1}}),(_=this._timeRangeSub)==null||_.unsubscribe()}runLayer(){Vt("AnnotationsDataLayer","run layer");const _=_o.getTimeRange(this);this.runWithTimeRange(_)}async runWithTimeRange(_){var G;const{query:pe}=this.state;if(pe.enable){if(this._drilldownDependenciesManager.findAndSubscribeToDrilldowns((G=pe.datasource)==null?void 0:G.uid),this.querySub&&this.querySub.unsubscribe(),this._variableDependency.hasDependencyInLoadingState()){Vt("AnnotationsDataLayer","Variable dependency is in loading state, skipping query execution");return}try{const $e=await this.resolveDataSource(pe);let ct=hy($e,_,pe,this,this._drilldownDependenciesManager.getFilters(),this._drilldownDependenciesManager.getGroupByKeys()).pipe(Ti({type:"AnnotationsDataLayer/annotationsLoading",origin:this,cancel:()=>this.cancelQuery()}),(0,Qr.T)(Yt=>this.processEvents(pe,Yt)));this.querySub=ct.subscribe(Yt=>{this.publishResults(Yt)})}catch($e){this.publishResults({...bt,state:Jn.Gu.Error,errors:[{message:vb($e)}]}),console.error("AnnotationsDataLayer error",$e)}}}async resolveDataSource(_){return await Di(_.datasource||void 0,this._scopedVars)}processEvents(_,G){let pe=Sb(_,G.events||[]);pe=_b(pe);const $e={...bt,state:G.state},ct=(0,im.I)(pe);return ct.meta={...ct.meta,dataTopic:Fe.QR.Annotations},$e.series=[ct],$e}}vy.Component=Eb;function Eb({model:N}){const{isEnabled:_,isHidden:G}=N.useState(),pe=`data-layer-${N.state.key}`;return G?null:C.createElement(zp.K,{className:Ih,id:pe,value:_,onChange:()=>N.setState({isEnabled:!_})})}const Ih=(0,Oe.css)({borderBottomLeftRadius:0,borderTopLeftRadius:0});class my extends Rt{constructor(_){super(_),this._activationHandler=()=>{const G=this.getAncestorTimeRange();this.ancestorTimeRangeChanged(G.state),this._subs.add(G.subscribeToState(pe=>this.ancestorTimeRangeChanged(pe)))},this.addActivationHandler(this._activationHandler)}getAncestorTimeRange(){if(!this.parent||!this.parent.parent)throw new Error(typeof this+" must be used within $timeRange scope");return _o.getTimeRange(this.parent.parent)}getTimeZone(){return this.getAncestorTimeRange().getTimeZone()}onTimeRangeChange(_){this.getAncestorTimeRange().onTimeRangeChange(_)}onTimeZoneChange(_){this.getAncestorTimeRange().onTimeZoneChange(_)}onRefresh(){this.getAncestorTimeRange().onRefresh()}}class US extends my{constructor(_){super({..._,timeZone:_.timeZone,from:"now-6h",to:"now",value:(0,kn.E2)()})}ancestorTimeRangeChanged(_){this.setState({..._,timeZone:this.state.timeZone,value:De(_.from,_.to,this.state.timeZone,_.fiscalYearStartMonth,_.UNSAFE_nowDelay,_.weekStart)})}getTimeZone(){return this.state.timeZone}onTimeZoneChange(_){const G=this.getAncestorTimeRange();this.setState({timeZone:_,value:De(G.state.from,G.state.to,_,G.state.fiscalYearStartMonth,G.state.UNSAFE_nowDelay,G.state.weekStart)})}}class wb extends Rt{constructor(_){super({source:_.source,data:_.source.resolve().state.data}),this.addActivationHandler(()=>{this._subs.add(this.state.source.resolve().subscribeToState((G,pe)=>{G.data!==pe.data&&this.setState({data:G.data})}))})}setContainerWidth(_){var G,pe;(pe=(G=this.state.source.resolve()).setContainerWidth)==null||pe.call(G,_)}isDataReadyToDisplay(){var _,G,pe;return(pe=(G=(_=this.state.source.resolve()).isDataReadyToDisplay)==null?void 0:G.call(_))!=null?pe:!0}cancelQuery(){var _,G;(G=(_=this.state.source.resolve()).cancelQuery)==null||G.call(_)}getResultsStream(){return this.state.source.resolve().getResultsStream()}}class gy extends Rt{constructor(){super({})}}gy.Component=yy;function yy({model:N}){const _=_o.getDataLayers(N,!0);return _.length===0?null:C.createElement(C.Fragment,null,_.map(G=>C.createElement(Wp,{layer:G,key:G.state.key})))}function Wp({layer:N}){var _,G;const pe=`data-layer-${N.state.key}`,{data:$e,isHidden:ct}=N.useState(),Yt=!!($e&&$e.state===Jn.Gu.Loading);return ct?null:C.createElement("div",{className:xb},C.createElement(ad,{htmlFor:pe,isLoading:Yt,onCancel:()=>{var In;return(In=N.cancelQuery)==null?void 0:In.call(N)},label:N.state.name,description:N.state.description,error:(G=(_=N.state.data)==null?void 0:_.errors)==null?void 0:G[0].message}),C.createElement(N.Component,{model:N}))}const xb=(0,Oe.css)({display:"flex"});class Dh extends Rt{}Dh.Component=kc;function kc({model:N}){const _=_o.getVariables(N).useState();return C.createElement(C.Fragment,null,_.variables.map(G=>C.createElement(Cb,{key:G.state.key,variable:G,layout:N.state.layout})))}function Cb({variable:N,layout:_,showAlways:G,hideLabel:pe}){return Dn(N,{shouldActivateOrKeepAlive:!0}).hide===V.zL.hideVariable&&!G?N.UNSAFE_renderAsHidden?C.createElement(N.Component,{model:N}):null:_==="vertical"?C.createElement("div",{className:zS,"data-testid":Ae.Tp.pages.Dashboard.SubMenu.submenuItem},C.createElement(Ob,{variable:N,layout:_,hideLabel:pe}),C.createElement(N.Component,{model:N})):C.createElement("div",{className:VS,"data-testid":Ae.Tp.pages.Dashboard.SubMenu.submenuItem},C.createElement(Ob,{variable:N,hideLabel:pe}),C.createElement(N.Component,{model:N}))}function Ob({variable:N,layout:_,hideLabel:G}){var pe;const{state:$e}=N;if(N.state.hide===V.zL.hideLabel||G)return null;const ct=`var-${$e.key}`,Yt=$e.label||$e.name;return C.createElement(ad,{htmlFor:ct,isLoading:$e.loading,onCancel:()=>{var In;return(In=N.onCancel)==null?void 0:In.call(N)},label:Yt,error:$e.error,layout:_,description:(pe=$e.description)!=null?pe:void 0})}const VS=(0,Oe.css)({display:"flex","> :nth-child(2)":(0,Oe.css)({borderTopLeftRadius:0,borderBottomLeftRadius:0})}),zS=(0,Oe.css)({display:"flex",flexDirection:"column"});class WS extends Rt{}WS.Component=GS;function GS({model:N}){const _=_o.lookupVariable(N.state.variableName,N);return _?C.createElement(Cb,{key:_.state.key,variable:_,layout:N.state.layout,showAlways:!0}):null}class Tb extends Rt{constructor(_){super(_),this._variablesToUpdate=new Set,this._updating=new Map,this._variableValueRecorder=new Pi,this._variableDependency=new HS(this._handleParentVariableUpdatesCompleted.bind(this)),this._onActivate=()=>{const G=_o.getTimeRange(this);this._subs.add(this.subscribeToEvent(cr,pe=>this._handleVariableValueChanged(pe.payload))),this._subs.add(G.subscribeToState(()=>{this._refreshTimeRangeBasedVariables()})),this._subs.add(this.subscribeToState(this._onStateChanged)),this._checkForVariablesThatChangedWhileInactive();for(const pe of this.state.variables)this._variableNeedsUpdate(pe)&&this._variablesToUpdate.add(pe);return this._updateNextBatch(),this._onDeactivate},this._onDeactivate=()=>{var G;for(const pe of this._updating.values())(G=pe.subscription)==null||G.unsubscribe();for(const pe of this.state.variables)!this._variablesToUpdate.has(pe)&&!this._updating.has(pe)&&this._variableValueRecorder.recordCurrentValue(pe);this._variablesToUpdate.clear(),this._updating.clear()},this._onStateChanged=(G,pe)=>{const $e=this._variablesToUpdate.size;for(const ct of pe.variables)if(!G.variables.includes(ct)){const Yt=this._updating.get(ct);Yt?.subscription&&Yt.subscription.unsubscribe(),this._updating.delete(ct),this._variablesToUpdate.delete(ct)}for(const ct of G.variables)pe.variables.includes(ct)||this._variableNeedsUpdate(ct)&&this._variablesToUpdate.add(ct);$e===0&&this._variablesToUpdate.size>0&&this._updateNextBatch()},this.addActivationHandler(this._onActivate)}getByName(_){return this.state.variables.find(G=>G.state.name===_)}_refreshTimeRangeBasedVariables(){for(const _ of this.state.variables)"refresh"in _.state&&_.state.refresh===V.CO.onTimeRangeChanged&&this._variablesToUpdate.add(_);this._updateNextBatch()}_checkForVariablesThatChangedWhileInactive(){if(this._variableValueRecorder.hasValues())for(const _ of this.state.variables)this._variableValueRecorder.hasValueChanged(_)&&(ap(_,"Changed while in-active"),this._addDependentVariablesToUpdateQueue(_))}_variableNeedsUpdate(_){return _.isLazy||!_.validateAndUpdate?!1:this._variableValueRecorder.hasRecordedValue(_)?(ap(_,"Skipping updateAndValidate current value valid"),!1):!0}_updateNextBatch(){for(const _ of this._variablesToUpdate){if(!_.validateAndUpdate){console.error("Variable added to variablesToUpdate but does not have validateAndUpdate");continue}if(this._updating.has(_)||_o.hasVariableDependencyInLoadingState(_))continue;const G={variable:_};this._updating.set(_,G),ap(_,"updateAndValidate started"),G.subscription=_.validateAndUpdate().subscribe({next:()=>this._validateAndUpdateCompleted(_),complete:()=>this._validateAndUpdateCompleted(_),error:pe=>this._handleVariableError(_,pe)})}}_validateAndUpdateCompleted(_){var G;if(!this._updating.has(_))return;const pe=this._updating.get(_);(G=pe?.subscription)==null||G.unsubscribe(),this._updating.delete(_),this._variablesToUpdate.delete(_),ap(_,"updateAndValidate completed"),this._notifyDependentSceneObjects(_),this._updateNextBatch()}cancel(_){var G;const pe=this._updating.get(_);(G=pe?.subscription)==null||G.unsubscribe(),this._updating.delete(_),this._variablesToUpdate.delete(_)}_handleVariableError(_,G){var pe;const $e=this._updating.get(_);(pe=$e?.subscription)==null||pe.unsubscribe(),this._updating.delete(_),this._variablesToUpdate.delete(_),_.setState({loading:!1,error:G.message}),console.error("SceneVariableSet updateAndValidate error",G),ap(_,"updateAndValidate error",G),this._notifyDependentSceneObjects(_),this._updateNextBatch()}_handleVariableValueChanged(_){this._addDependentVariablesToUpdateQueue(_),this._updating.has(_)||(this._updateNextBatch(),this._notifyDependentSceneObjects(_))}_handleParentVariableUpdatesCompleted(_,G){G&&this._addDependentVariablesToUpdateQueue(_),this._variablesToUpdate.size>0&&this._updating.size===0&&this._updateNextBatch()}_addDependentVariablesToUpdateQueue(_){for(const G of this.state.variables)G.variableDependency&&G.variableDependency.hasDependencyOn(_.state.name)&&(ap(G,"Added to update queue, dependant variable value changed"),this._updating.has(G)&&G.onCancel&&G.onCancel(),G.validateAndUpdate&&this._variablesToUpdate.add(G),G.variableDependency.variableUpdateCompleted(_,!0))}_notifyDependentSceneObjects(_){this.parent&&this._traverseSceneAndNotify(this.parent,_,!0)}_traverseSceneAndNotify(_,G,pe){if(this!==_&&_.isActive){if(_.state.$variables&&_.state.$variables!==this){const $e=_.state.$variables.getByName(G.state.name);if($e?.isAncestorLoading)G=$e;else if($e)return}_.variableDependency&&_.variableDependency.variableUpdateCompleted(G,pe),_.forEachChild($e=>this._traverseSceneAndNotify($e,G,pe))}}isVariableLoadingOrWaitingToUpdate(_){return _.state.loading||_.isAncestorLoading&&_.isAncestorLoading()||this._variablesToUpdate.has(_)||this._updating.has(_)?!0:_o.hasVariableDependencyInLoadingState(_)}}function ap(N,_,G){G?Vt("SceneVariableSet",`Variable[${N.state.name}]: ${_}`,G):Vt("SceneVariableSet",`Variable[${N.state.name}]: ${_}`)}class HS{constructor(_){this._variableUpdatesCompleted=_,this._emptySet=new Set}getNames(){return this._emptySet}hasDependencyOn(_){return!1}variableUpdateCompleted(_,G){this._variableUpdatesCompleted(_,G)}}class Ab extends ir{constructor(_){super({type:"custom",query:"",value:"",text:"",options:[],name:"",..._}),this._variableDependency=new mc(this,{statePaths:["query"]})}transformCsvStringToOptions(_,G=!0){var pe;return _=G?_o.interpolate(this,_):_,((pe=_.match(/(?:\\,|[^,])+/g))!=null?pe:[]).map(ct=>{var Yt;ct=ct.replace(/\\,/g,",");const In=(Yt=/^\s*(.+)\s:\s(.+)$/g.exec(ct))!=null?Yt:[];if(In.length===3){const[,br,Ir]=In;return{label:br.trim(),value:Ir.trim()}}else return{label:ct.trim(),value:ct.trim()}})}getValueOptions(_){const G=this.transformCsvStringToOptions(this.state.query);return G.length||(this.skipNextValidation=!0),(0,Nn.of)(G)}}Ab.Component=({model:N})=>C.createElement(Hi,{model:N});class Rb extends Rt{constructor(_){super({type:"switch",value:"false",enabledValue:"true",disabledValue:"false",name:"",..._}),this._prevValue="",this._urlSync=new Nt(this,{keys:()=>this.getKeys()})}validateAndUpdate(){const _=this.getValue();return this._prevValue!==_&&(this._prevValue=_,this.publishEvent(new cr(this),!0)),(0,Nn.of)({})}setValue(_){this.getValue()!==_&&([this.state.enabledValue,this.state.disabledValue].includes(_)?(this.setState({value:_}),this.publishEvent(new cr(this),!0)):console.error(`Invalid value for switch variable: "${_}". Valid values are: "${this.state.enabledValue}" and "${this.state.disabledValue}".`))}getValue(){return this.state.value}isEnabled(){return this.state.value===this.state.enabledValue}isDisabled(){return this.state.value===this.state.disabledValue}getKey(){return`var-${this.state.name}`}getKeys(){return this.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){return this.state.skipUrlSync?{}:{[this.getKey()]:this.state.value}}updateFromUrl(_){const G=_[this.getKey()];typeof G=="string"&&this.setValue(G)}}Rb.Component=KS;function KS({model:N}){const _=N.useState(),G=(0,Jr.of)(YS);return C.createElement("div",{className:G.container},C.createElement(zp.d,{value:_.value===_.enabledValue,onChange:pe=>{N.setValue(pe.currentTarget.checked?_.enabledValue:_.disabledValue)}}))}function YS(N){return{container:(0,Oe.css)({display:"flex",alignItems:"center",padding:N.spacing(0,1),height:N.spacing(N.components.height.md),borderRadius:N.shape.radius.default,border:`1px solid ${N.components.input.borderColor}`,background:N.colors.background.primary})}}class Pb extends ir{constructor(_){super({type:"datasource",value:"",text:"",options:[],name:"",regex:"",pluginId:"",..._}),this._variableDependency=new mc(this,{statePaths:["regex"]})}getValueOptions(_){if(!this.state.pluginId)return(0,Nn.of)([]);const G=(0,dn.l)().getList({metrics:!0,variables:!1,pluginId:this.state.pluginId});let pe;if(this.state.regex){const ct=_o.interpolate(this,this.state.regex,void 0,"regex");pe=(0,zr.dO)(ct)}const $e=[];for(let ct=0;ct<G.length;ct++){const Yt=G[ct];by(Yt,pe)&&$e.push({label:Yt.name,value:Yt.uid}),this.state.defaultOptionEnabled&&Sy(Yt,pe)&&$e.push({label:(0,ni.t)("grafana-scenes.variables.data-source-variable.label.default","default"),value:"default"})}return $e.length===0?this.setState({error:"No data sources found"}):this.state.error&&this.setState({error:null}),(0,Nn.of)($e)}}Pb.Component=({model:N})=>C.createElement(Hi,{model:N});function by(N,_){return _?_.exec(N.name):!0}function Sy(N,_){return N.isDefault?_?_.exec("default"):!0:!1}var _y=u(13752);function om(N,_){const G=["A","B","C","D","E","F","G","H"],pe=[];if(_>5)return[];for(const $e of G){const ct=`${N}${$e}`;pe.push({name:ct,children:om(ct,_+1)})}return pe}function Gp(N,_,G){if(G>=_.length||_[G]==="*")return N;const pe=_[G];let $e=[],ct=[pe];pe.startsWith("{")&&(ct=pe.replace(/\{|\}/g,"").split(","));for(const Yt of N)for(const In of ct)if(In.indexOf("*")!==-1){const br=In.replace("*","");new RegExp(`^${br}.*`,"gi").test(Yt.name)&&($e=$e.concat(Gp([Yt],_,G+1)))}else Yt.name===In&&($e=$e.concat(Gp(Yt.children,_,G+1)));return $e}function Ey(N){if(N.indexOf("value")===0)return[{name:N,children:[]}];const _=om("",0);return Gp(_,N.split("."),0)}class Ib extends ir{constructor(_,G=!1){super({type:"custom",name:"Test",value:"Value",text:(0,ni.t)("grafana-scenes.variables.test-variable.text.text","Text"),query:"Query",options:[],refresh:V.CO.onDashboardLoad,updateOptions:!0,..._}),this.completeUpdate=new _y.B,this.isGettingValues=!0,this.getValueOptionsCount=0,this.isLazy=!1,this._variableDependency=new mc(this,{statePaths:["query"]}),this.isLazy=G}getValueOptions(_){const{delayMs:G}=this.state;this.getValueOptionsCount+=1;const pe=_o.getQueryController(this);return new Vn.c($e=>{const ct={type:"variable",origin:this,cancel:()=>$e.complete()};if(pe&&pe.queryStarted(ct),this.setState({loading:!0}),this.state.throwError)throw new Error(this.state.throwError);const Yt=_o.interpolate(this,this.state.query),In=this.getOptions(Yt),br=this.completeUpdate.subscribe({next:()=>{const Wr={issuedQuery:Yt,loading:!1};this.state.updateOptions&&(Wr.options=In),this.setState(Wr),$e.next(In),$e.complete()}});let Ir;return G?Ir=window.setTimeout(()=>this.signalUpdateCompleted(),G):G===0&&this.signalUpdateCompleted(),this.isGettingValues=!0,()=>{br.unsubscribe(),window.clearTimeout(Ir),this.isGettingValues=!1,this.state.loading&&this.setState({loading:!1}),pe&&pe.queryCompleted(ct)}})}cancel(){const _=ln(this,G=>G instanceof Tb?G:void 0);_?.cancel(this)}getOptions(_){return this.state.optionsToReturn?this.state.optionsToReturn:Ey(_).map(G=>({label:G.name,value:G.name}))}signalUpdateCompleted(){this.completeUpdate.next(1)}}Ib.Component=({model:N})=>C.createElement(Hi,{model:N});var wy=u(33033);function xy({model:N}){const{value:_,key:G,loading:pe}=N.useState(),$e=(0,C.useCallback)(Yt=>{N.setValue(Yt.currentTarget.value)},[N]),ct=(0,C.useCallback)(Yt=>{Yt.key==="Enter"&&N.setValue(Yt.currentTarget.value)},[N]);return C.createElement(wy.D,{id:G,placeholder:(0,ni.t)("grafana-scenes.variables.variable-value-input.placeholder-enter-value","Enter value"),minWidth:15,maxWidth:30,value:_,loading:pe,onBlur:$e,onKeyDown:ct})}class sm extends Rt{constructor(_){super({type:"textbox",value:"",name:"",..._}),this._urlSync=new Nt(this,{keys:()=>this.getKeys()})}getValue(){return this.state.value}setValue(_){_!==this.state.value&&(this.setState({value:_}),this.publishEvent(new cr(this),!0))}getKey(){return`var-${this.state.name}`}getKeys(){return this.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){return this.state.skipUrlSync?{}:{[this.getKey()]:this.state.value}}updateFromUrl(_){const G=_[this.getKey()];typeof G=="string"&&this.setValue(G)}}sm.Component=({model:N})=>C.createElement(xy,{model:N});class um extends Rt{constructor(_){super({type:"interval",value:"",intervals:["1m","10m","30m","1h","6h","12h","1d","7d","14d","30d"],name:"",autoStepCount:30,autoMinInterval:"10s",autoEnabled:!1,refresh:Yc.CO.onTimeRangeChanged,..._}),this._onChange=G=>{this.setState({value:G.value}),this.publishEvent(new cr(this),!0)},this._urlSync=new Nt(this,{keys:()=>[this.getKey()]})}getKey(){return`var-${this.state.name}`}getUrlState(){return{[this.getKey()]:this.state.value}}updateFromUrl(_){const G={},pe=_[this.getKey()];typeof pe=="string"&&(pe.startsWith("$__auto_interval_")?G.value=nt:G.value=pe),this.setState(G)}getOptionsForSelect(){const{value:_,intervals:G,autoEnabled:pe}=this.state;let $e=G.map(ct=>({value:ct,label:ct}));return pe&&($e=[{value:nt,label:Qt},...$e]),_&&!$e.some(ct=>ct.value===_)&&$e.push({value:_,label:_}),$e}getValue(){const{value:_,autoStepCount:G,autoMinInterval:pe}=this.state;return _===nt?this.getAutoRefreshInteval(G,pe):_}getAutoRefreshInteval(_,G){const pe=_o.getTimeRange(this).state.value;return fe.calculateInterval(pe,_,G).interval}validateAndUpdate(){const{value:_,intervals:G}=this.state;let pe=!1;if(_===nt)pe=!0;else if(!_&&G.length>0){const $e=G[0];this.setState({value:$e}),pe=!0}return pe&&this.publishEvent(new cr(this),!0),(0,Nn.of)({})}}um.Component=({model:N})=>{const{key:_,value:G}=N.useState();return C.createElement(Br.l6,{id:_,placeholder:(0,ni.t)("grafana-scenes.variables.interval-variable.placeholder-select-value","Select value"),width:"auto",value:G,tabSelectsValue:!1,options:N.getOptionsForSelect(),onChange:N._onChange})};var lm=N=>{throw TypeError(N)},cm=(N,_,G)=>_.has(N)||lm("Cannot "+G),op=(N,_,G)=>(cm(N,_,"read from private field"),G?G.call(N):_.get(N)),fm=(N,_,G)=>_.has(N)?lm("Cannot add the same private member more than once"):_ instanceof WeakSet?_.add(N):_.set(N,G),dm=(N,_,G,pe)=>(cm(N,_,"write to private field"),_.set(N,G),G),yh,sp;class Hp extends X.x{}Hp.type="new-scene-object-added";class Cy{constructor(_={},G=h.Ny){this._options=_,this._locationService=G,this._paramsCache=new Oy(G),this._urlKeyMapper=new ge({namespace:_.namespace,excludeFromNamespace:_.excludeFromNamespace})}initSync(_){var G;if(this._subs&&(Vt("UrlSyncManager","Unregister previous scene state subscription",(G=this._sceneRoot)==null?void 0:G.state.key),this._subs.unsubscribe()),Vt("UrlSyncManager","init",_.state.key),this._sceneRoot=_,this._subs=new j.yU,this._subs.add(_.subscribeToEvent(ue,pe=>{this.handleSceneObjectStateChanged(pe.payload.changedObject)})),this._subs.add(_.subscribeToEvent(Hp,pe=>{this.handleNewObject(pe.payload)})),this._urlKeyMapper.clear(),this._lastLocation=this._locationService.getLocation(),this.handleNewObject(this._sceneRoot),this._options.updateUrlOnInit){const pe=Ft(_,this._urlKeyMapper.getOptions());hm(pe,this._paramsCache.getParams())&&this._locationService.partial(pe,!0)}}cleanUp(_){this._sceneRoot===_&&(Vt("UrlSyncManager","Clean up"),this._subs&&(this._subs.unsubscribe(),this._subs=void 0,Vt("UrlSyncManager","Root deactived, unsub to state","same key",this._sceneRoot.state.key===_.state.key)),this._sceneRoot=void 0,this._lastLocation=void 0)}handleNewLocation(_){!this._sceneRoot||this._lastLocation===_||(Vt("UrlSyncManager","handleNewLocation"),this._lastLocation=_,Zt(this._sceneRoot,this._paramsCache.getParams(),this._urlKeyMapper))}handleNewObject(_){this._sceneRoot&&Zt(_,this._paramsCache.getParams(),this._urlKeyMapper)}handleSceneObjectStateChanged(_){var G,pe;if(!_.urlSync)return;const $e=_.urlSync.getUrlState(),ct=this._locationService.getSearch(),Yt={};for(const[In,br]of Object.entries($e)){const Ir=this._urlKeyMapper.getUniqueKey(In,_),Wr=ct.getAll(Ir);Pn(Wr,br)||(Yt[Ir]=br)}if(Object.keys(Yt).length>0){const br=((pe=(G=_.urlSync).shouldCreateHistoryStep)==null?void 0:pe.call(G,$e))!==!0;Vt("UrlSyncManager","onStateChange updating URL"),this._locationService.partial(Yt,br),this._lastLocation=this._locationService.getLocation()}}getUrlState(_){return Ft(_,this._urlKeyMapper.getOptions())}}class Oy{constructor(_){this.locationService=_,fm(this,yh),fm(this,sp)}getParams(){const _=this.locationService.getLocation();return op(this,sp)===_?op(this,yh):(dm(this,sp,_),dm(this,yh,new URLSearchParams(_.search)),op(this,yh))}}yh=new WeakMap,sp=new WeakMap;function hm(N,_){for(let G in N)if(!Pn(_.getAll(G),N[G]))return!0;return!1}function pm(N,_){return(0,C.useMemo)(()=>new Cy({updateUrlOnInit:N.updateUrlOnInit,createBrowserHistorySteps:N.createBrowserHistorySteps,namespace:N.namespace,excludeFromNamespace:N.excludeFromNamespace},_),[N.updateUrlOnInit,N.createBrowserHistorySteps,N.namespace,N.excludeFromNamespace,_])}function Kp(N,_={}){const G=(0,x.zy)(),pe=ea(),[$e,ct]=(0,C.useState)(!1),Yt=pm(_,pe);return(0,C.useEffect)(()=>(Yt.initSync(N),ct(!0),()=>Yt.cleanUp(N)),[N,Yt]),(0,C.useEffect)(()=>{const In=pe.getLocation(),br=In!==G?In:G;In!==G&&Vt("useUrlSync","latestLocation different from location"),Yt.handleNewLocation(br)},[N,Yt,G,pe]),$e}function Ty({children:N,scene:_,updateUrlOnInit:G,createBrowserHistorySteps:pe,namespace:$e,excludeFromNamespace:ct}){return Kp(_,{updateUrlOnInit:G,createBrowserHistorySteps:pe,namespace:$e,excludeFromNamespace:ct})?N:null}function Ay(N){const _=window.__grafanaSceneContext;return Vt("setWindowGrafanaScene","set window.__grafanaSceneContext",N),window.__grafanaSceneContext=N,()=>{window.__grafanaSceneContext===N&&(Vt("setWindowGrafanaScene","restore window.__grafanaSceneContext",_),window.__grafanaSceneContext=_)}}class Yp extends Rt{constructor(_){super(_),this.addActivationHandler(()=>{const G=Ay(this);return()=>{G()}})}}Yp.Component=Ry;function Ry({model:N}){const{body:_,controls:G}=N.useState(),pe=(0,Jr.of)(Py);return C.createElement("div",{className:pe.container},G&&C.createElement("div",{className:pe.controls},G.map($e=>C.createElement($e.Component,{key:$e.state.key,model:$e}))),C.createElement("div",{className:pe.body},C.createElement(_.Component,{model:_})))}const Py=N=>({container:(0,Oe.css)({flexGrow:1,display:"flex",gap:N.spacing(2),minHeight:"100%",flexDirection:"column"}),body:(0,Oe.css)({flexGrow:1,display:"flex",gap:N.spacing(1)}),controls:(0,Oe.css)({display:"flex",gap:N.spacing(2),alignItems:"flex-end",flexWrap:"wrap"})});var up=u(87063);class vm extends Rt{addItem(_){this.setState({items:this.state.items?[...this.state.items,_]:[_]})}setItems(_){this.setState({items:_})}}vm.Component=$d;function $d({model:N}){const{items:_=[]}=N.useState(),G=C.useRef(null);(0,C.useEffect)(()=>{G.current&&G.current.focus()},[]);const pe=$e=>$e.map(ct=>{switch(ct.type){case"divider":return C.createElement(up.W.Divider,{key:ct.text});case"group":return C.createElement(up.W.Group,{key:ct.text,label:ct.text},ct.subMenu?pe(ct.subMenu):void 0);default:return C.createElement(up.W.Item,{key:ct.text,role:"menuitem",label:ct.text,icon:ct.iconClassName,childItems:ct.subMenu?pe(ct.subMenu):void 0,url:ct.href,onClick:ct.onClick,shortcut:ct.shortcut,testId:Ae.Tp.components.Panels.Panel.menuItems(ct.text)})}});return C.createElement(up.W,{ref:G},pe(_))}var mm=u(31635);function Iy(){var N=(0,C.useRef)(!1),_=(0,C.useCallback)(function(){return N.current},[]);return(0,C.useEffect)(function(){return N.current=!0,function(){N.current=!1}},[]),_}function Dy(N,_,G){_===void 0&&(_=[]),G===void 0&&(G={loading:!1});var pe=(0,C.useRef)(0),$e=Iy(),ct=(0,C.useState)(G),Yt=ct[0],In=ct[1],br=(0,C.useCallback)(function(){for(var Ir=[],Wr=0;Wr<arguments.length;Wr++)Ir[Wr]=arguments[Wr];var Gr=++pe.current;return Yt.loading||In(function(pi){return(0,mm.__assign)((0,mm.__assign)({},pi),{loading:!0})}),N.apply(void 0,Ir).then(function(pi){return $e()&&Gr===pe.current&&In({value:pi,loading:!1}),pi},function(pi){return $e()&&Gr===pe.current&&In({error:pi,loading:!1}),pi})},_);return[Yt,br]}function gm(N,_){_===void 0&&(_=[]);var G=Dy(N,_,{loading:!0}),pe=G[0],$e=G[1];return(0,C.useEffect)(function(){$e()},[$e]),pe}async function Mh(N,_,G,pe){var $e,ct,Yt,In;const br=($e=N.request)==null?void 0:$e.targets;if(!br)return"";const{from:Ir,to:Wr}=G,Gr=(ct=N.request)==null?void 0:ct.filters,pi={__sceneObject:Us(_)},Ri=(await Promise.allSettled(br.map(async Ba=>{var Va;const Ra=await(0,dn.l)().get(Ba.datasource);return((Va=Ra.interpolateVariablesInQueries)==null?void 0:Va.call(Ra,[Ba],pi??{},Gr)[0])||Ba}))).filter(Ba=>Ba.status==="fulfilled").map(Ba=>Ba.value).map(Ba=>{var Va;return(Va=pe?.(Ba))!=null?Va:Ba}),Zi=Ri??[];let Fa=new Set(Zi.map(Ba=>{var Va;return(Va=Ba.datasource)==null?void 0:Va.uid})).size>1?"-- Mixed --":(In=(Yt=Zi.find(Ba=>{var Va;return!!((Va=Ba.datasource)!=null&&Va.uid)}))==null?void 0:Yt.datasource)==null?void 0:In.uid;return Zi?.length&&Fa&&Ir&&Wr?`/explore?left=${encodeURIComponent(JSON.stringify({datasource:Fa,queries:Zi,range:{from:Ir,to:Wr}}))}`:""}var Db=u(41071);class My extends Rt{constructor(_={}){super({options:_})}}My.Component=Mb;function Mb({model:N}){const{options:_}=N.useState(),{data:G}=_o.getData(N).useState(),{from:pe,to:$e}=_o.getTimeRange(N).useState(),{value:ct}=gm(async()=>G?Mh(G,N,{from:pe,to:$e},_.transform):"",[G,N,pe,$e]),Yt=(0,Db.i)();return ct?C.createElement(bs.z9,{key:"explore",icon:"compass",size:"sm",variant:"secondary",href:ct,onClick:()=>{var In;_.returnToPrevious&&Yt(_.returnToPrevious.title,_.returnToPrevious.href),(In=_.onClick)==null||In.call(_)}},C.createElement(ni.x6,{i18nKey:"grafana-scenes.components.viz-panel-explore-button.explore"},"Explore")):null}var th=u(7895);const gf=4,ky=30,lp=8,bh=24;class kh extends Rt{}kh.Component=kb;function kb({model:N}){const{body:_}=N.useState(),G=N.parent;if(G&&!Ny(G)&&!Ly(G))throw new Error("SceneGridItem must be a child of SceneGridLayout or SceneGridRow");return _?C.createElement(_.Component,{model:_}):null}function Ly(N){return N instanceof Lc}function Ny(N){return N instanceof kl}var Fy=u(66816),Jp=u.n(Fy);function Ud({model:N}){const{children:_,isLazy:G,isDraggable:pe,isResizable:$e}=N.useState(),[ct,{width:Yt,height:In}]=Ga(),br=(0,C.useRef)(null);(0,C.useEffect)(()=>{bm(br,!!pe)},[pe]),cp(_);const Ir=(Wr,Gr)=>{if(!Wr||!Gr)return null;const pi=N.buildGridLayout(Wr,Gr);return C.createElement("div",{ref:br,style:{width:`${Wr}px`,height:"100%"},className:"react-grid-layout"},C.createElement(Jp(),{width:Wr,isDraggable:pe&&Wr>768,isResizable:$e??!1,containerPadding:[0,0],useCSSTransforms:!0,margin:[lp,lp],cols:bh,rowHeight:ky,draggableHandle:`.grid-drag-handle-${N.state.key}`,draggableCancel:".grid-drag-cancel",layout:pi,onDragStart:N.onDragStart,onDragStop:N.onDragStop,onResizeStop:N.onResizeStop,onLayoutChange:N.onLayoutChange,isBounded:!1,resizeHandle:C.createElement(jy,null)},pi.map((Ri,Zi)=>C.createElement(Zp,{key:Ri.i,grid:N,layoutItem:Ri,index:Zi,isLazy:G,totalCount:pi.length}))))};return C.createElement("div",{ref:ct,className:ym},Ir(Yt,In))}const ym=(0,Oe.css)({flex:"1 1 auto",position:"relative",zIndex:1,width:"100%"}),Zp=C.forwardRef((N,_)=>{var G;const{grid:pe,layoutItem:$e,index:ct,totalCount:Yt,isLazy:In,style:br,onLoad:Ir,onChange:Wr,children:Gr,...pi}=N,Ri=pe.getSceneLayoutChild($e.i),Zi=(G=Ri.getClassName)==null?void 0:G.call(Ri),ia=C.createElement(Ri.Component,{model:Ri,key:Ri.state.key});return In?C.createElement(zo,{...pi,key:Ri.state.key,"data-griditem-key":Ri.state.key,className:(0,Oe.cx)(Zi,N.className),style:br,ref:_},ia,Gr):C.createElement("div",{...pi,ref:_,key:Ri.state.key,"data-griditem-key":Ri.state.key,className:(0,Oe.cx)(Zi,N.className),style:br},ia,Gr)});Zp.displayName="GridItemWrapper";function cp(N){if(N.some(_=>_.state.height===void 0||_.state.width===void 0||_.state.x===void 0||_.state.y===void 0))throw new Error("All children must have a size specified")}function bm(N,_,G){N.current?_?N.current.classList.add("react-grid-layout--enable-move-animations"):N.current.classList.remove("react-grid-layout--enable-move-animations"):G||setTimeout(()=>bm(N,_,!0),50)}const jy=C.forwardRef(({handleAxis:N,..._},G)=>{const pe=(0,Jr.of)(Sm);return C.createElement("div",{ref:G,..._,className:`${pe} scene-resize-handle`},C.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.createElement("path",{d:"M21 15L15 21M21 8L8 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))});jy.displayName="ResizeHandle";function Sm(N){return(0,Oe.css)({position:"absolute",bottom:0,right:0,zIndex:999,padding:N.spacing(1.5,0,0,1.5),color:N.colors.border.strong,cursor:"se-resize","&:hover":{color:N.colors.text.link},svg:{display:"block"},".react-resizable-hide &":{display:"none"}})}class _m extends X.x{}_m.type="scene-grid-layout-drag-start";function Xp(N,_){const G=_-lp*4,pe=Math.max(...N.map(Yt=>Yt.h+Yt.y)),$e=Math.floor(G/(ky+lp)),ct=pe/$e;return N.map(Yt=>({...Yt,y:Math.round(Yt.y/ct)||0,h:Math.round(Yt.h/ct)||1}))}const Em=class MS extends Rt{constructor(_){super({..._,children:fp(_.children)}),this._skipOnLayoutChange=!1,this._oldLayout=[],this._loadOldLayout=!1,this.onLayoutChange=G=>{if(this._skipOnLayoutChange){this._skipOnLayoutChange=!1;return}this._loadOldLayout&&(G=[...this._oldLayout],this._loadOldLayout=!1);for(const pe of G){const $e=this.getSceneLayoutChild(pe.i),ct={x:pe.x,y:pe.y,width:pe.w,height:pe.h};By($e.state,ct)||$e.setState({...ct})}this.setState({children:fp(this.state.children)})},this.onResizeStop=(G,pe,$e)=>{this.getSceneLayoutChild($e.i).setState({width:$e.w,height:$e.h})},this.onDragStart=G=>{this._oldLayout=[...G]},this.onDragStop=(G,pe,$e)=>{const ct=this.getSceneLayoutChild($e.i);G=wm(G);const Yt=G.findIndex(Ir=>Ir.i===$e.i);let In=this.findGridItemSceneParent(G,Yt-1),br=this.state.children;for(let Ir=0;Ir<G.length;Ir++){const Wr=G[Ir],Gr=this.getSceneLayoutChild(Wr.i),pi=Gr.state;(pi?.x!==Wr.x||pi?.y!==Wr.y)&&Gr.setState({x:Wr.x,y:Wr.y})}In instanceof Lc&&Qi(In)&&(this._loadOldLayout=!0),ct instanceof Lc&&In instanceof Lc&&(this.isRowDropValid(G,$e,Yt)||(this._loadOldLayout=!0),In=this),In!==ct.parent&&!this._loadOldLayout&&(br=this.moveChildTo(ct,In)),this.setState({children:fp(br)}),this._skipOnLayoutChange=!0}}isDraggable(){var _;return(_=this.state.isDraggable)!=null?_:!1}getDragClass(){return`grid-drag-handle-${this.state.key}`}getDragClassCancel(){return"grid-drag-cancel"}getDragHooks(){return{onDragStart:(_,G)=>{this.publishEvent(new _m({evt:_,panel:G}),!0)}}}adjustYPositions(_,G){for(const pe of this.state.children)if(pe.state.y>_&&pe.setState({y:pe.state.y+G}),pe instanceof Lc)for(const $e of pe.state.children)$e.state.y>_&&$e.setState({y:$e.state.y+G})}toggleRow(_){var G,pe;if(!_.state.isCollapsed){_.setState({isCollapsed:!0}),this.setState({});return}const ct=_.state.children;if(ct.length===0){_.setState({isCollapsed:!1}),this.setState({});return}const Yt=_.state.y,br=((G=ct[0].state.y)!=null?G:Yt)-(Yt+1);let Ir=Yt;for(const Gr of ct){const pi={...Gr.state};pi.y=(pe=pi.y)!=null?pe:Yt,pi.y-=br,pi.y!==Gr.state.y&&Gr.setState(pi),Ir=Math.max(Ir,Number(pi.y)+Number(pi.height))}const Wr=Ir-Yt-1;for(const Gr of this.state.children)if(Gr.state.y>Yt&&this.pushChildDown(Gr,Wr),Ly(Gr)&&Gr!==_)for(const pi of Gr.state.children)pi.state.y>Yt&&this.pushChildDown(pi,Wr);_.setState({isCollapsed:!1}),this.setState({})}ignoreLayoutChange(_){this._skipOnLayoutChange=_}getSceneLayoutChild(_){for(const G of this.state.children){if(G.state.key===_)return G;if(G instanceof Lc){for(const pe of G.state.children)if(pe.state.key===_)return pe}}throw new Error("Scene layout child not found for GridItem")}pushChildDown(_,G){_.setState({y:_.state.y+G})}findGridItemSceneParent(_,G){for(let pe=G;pe>=0;pe--){const $e=_[pe],ct=this.getSceneLayoutChild($e.i);if(ct instanceof Lc)return ct.state.isCollapsed?this:ct}return this}isRowDropValid(_,G,pe){if(_[_.length-1].i===G.i)return!0;const $e=this.getSceneLayoutChild(_[pe+1].i);return $e instanceof Lc?!0:$e.parent instanceof MS}moveChildTo(_,G){const pe=_.parent;let $e=this.state.children;const ct=_.clone({key:_.state.key});if(pe instanceof Lc){const Yt=pe.clone();if(Yt.setState({children:Yt.state.children.filter(In=>In.state.key!==_.state.key)}),$e=$e.map(In=>In===pe?Yt:In),G instanceof Lc){const In=G.clone();In.setState({children:[...In.state.children,ct]}),$e=$e.map(br=>br===G?In:br)}else $e=[...$e,ct]}else if(!(G instanceof MS)){$e=$e.filter(In=>In.state.key!==_.state.key);const Yt=G.clone();Yt.setState({children:[...Yt.state.children,ct]}),$e=$e.map(In=>In===G?Yt:In)}return $e}toGridCell(_){const G=_.state;let pe=Number.isFinite(Number(G.x))?Number(G.x):0,$e=Number.isFinite(Number(G.y))?Number(G.y):0;const ct=Number.isFinite(Number(G.width))?Number(G.width):gf,Yt=Number.isFinite(Number(G.height))?Number(G.height):gf;let In=_.state.isDraggable,br=_.state.isResizable;return _ instanceof Lc&&(In=!!_.state.isCollapsed,br=!1),Qi(_)&&(In=!1,br=!1),{i:_.state.key,x:pe,y:$e,h:Yt,w:ct,isResizable:br,isDraggable:In}}buildGridLayout(_,G){let pe=[];for(const $e of this.state.children)if(pe.push(this.toGridCell($e)),$e instanceof Lc&&!$e.state.isCollapsed)for(const ct of $e.state.children)pe.push(this.toGridCell(ct));return pe=wm(pe),this.state.UNSAFE_fitPanels&&(pe=Xp(pe,G)),_<768?(this._skipOnLayoutChange=!0,pe.map($e=>({...$e,w:24}))):(this._skipOnLayoutChange=!1,pe)}};Em.Component=Ud;let kl=Em;function By(N,_){return N.x===_.x&&N.y===_.y&&N.width===_.width&&N.height===_.height}function fp(N){return N.forEach(_=>{_ instanceof Lc&&_.setState({children:fp(_.state.children)})}),[...N].sort((_,G)=>_.state.y-G.state.y||_.state.x-G.state.x)}function wm(N){return[...N].sort((_,G)=>_.y-G.y||_.x-G.x)}class Lc extends Rt{constructor(_){super({children:_.children||[],isCollapsible:_.isCollapsible||!0,title:_.title||"",..._,x:0,height:1,width:bh}),this._variableDependency=new mc(this,{statePaths:["title"],handleTimeMacros:!0}),this.onCollapseToggle=()=>{this.state.isCollapsible&&this.getGridLayout().toggleRow(this)}}getGridLayout(){const _=this.parent;if(!_||!(_ instanceof kl))throw new Error("SceneGridRow must be a child of SceneGridLayout");return _}getUrlState(){return{rowc:this.state.isCollapsed?"1":"0"}}updateFromUrl(_){_.rowc!=null&&_.rowc!==this.getUrlState().rowc&&this.onCollapseToggle()}getPanelCount(_){var G;let pe=0;for(const $e of _)pe+=((G=$e.getChildCount)==null?void 0:G.call($e))||1;return pe}}Lc.Component=$y;function $y({model:N}){const _=(0,Jr.of)(xm),{isCollapsible:G,isCollapsed:pe,title:$e,actions:ct,children:Yt}=N.useState(),In=N.getGridLayout(),br=In.getDragClass(),Ir=In.isDraggable()&&!Qi(N),Wr=N.getPanelCount(Yt),Gr=Wr===1?"panel":"panels";return C.createElement("div",{className:(0,Oe.cx)(_.row,pe&&_.rowCollapsed)},C.createElement("div",{className:_.rowTitleAndActionsGroup},C.createElement("button",{onClick:N.onCollapseToggle,className:_.rowTitleButton,"aria-label":pe?(0,ni.t)("grafana-scenes.components.scene-grid-row.expand-row","Expand row"):(0,ni.t)("grafana-scenes.components.scene-grid-row.collapse-row","Collapse row"),"data-testid":Ae.Tp.components.DashboardRow.title(_o.interpolate(N,$e,void 0,"text"))},G&&C.createElement(Ds.I,{name:pe?"angle-right":"angle-down"}),C.createElement("span",{className:_.rowTitle,role:"heading"},_o.interpolate(N,$e,void 0,"text"))),C.createElement("span",{className:(0,Oe.cx)(_.panelCount,pe&&_.panelCountCollapsed)},"(",Wr," ",Gr,")"),ct&&C.createElement("div",{className:_.rowActions},C.createElement(ct.Component,{model:ct}))),Ir&&pe&&C.createElement("div",{className:(0,Oe.cx)(_.dragHandle,br)},C.createElement(Ds.I,{name:"draggabledots"})))}const xm=N=>({row:(0,Oe.css)({width:"100%",height:"30px",display:"flex",justifyContent:"space-between",gap:N.spacing(1)}),rowTitleButton:(0,Oe.css)({display:"flex",alignItems:"center",cursor:"pointer",background:"transparent",border:"none",minWidth:0,gap:N.spacing(1)}),rowCollapsed:(0,Oe.css)({borderBottom:`1px solid ${N.colors.border.weak}`}),rowTitle:(0,Oe.css)({fontSize:N.typography.h5.fontSize,fontWeight:N.typography.fontWeightMedium,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",flexGrow:1,minWidth:0}),collapsedInfo:(0,Oe.css)({fontSize:N.typography.bodySmall.fontSize,color:N.colors.text.secondary,display:"flex",alignItems:"center",flexGrow:1}),rowTitleAndActionsGroup:(0,Oe.css)({display:"flex",minWidth:0,"&:hover, &:focus-within":{"& > div":{opacity:1}}}),rowActions:(0,Oe.css)({display:"flex",whiteSpace:"nowrap",opacity:0,transition:"200ms opacity ease-in 200ms","&:hover, &:focus-within":{opacity:1}}),dragHandle:(0,Oe.css)({display:"flex",padding:N.spacing(0,1),alignItems:"center",justifyContent:"flex-end",cursor:"move",color:N.colors.text.secondary,"&:hover":{color:N.colors.text.primary}}),panelCount:(0,Oe.css)({whiteSpace:"nowrap",paddingLeft:N.spacing(2),color:N.colors.text.secondary,fontStyle:"italic",fontSize:N.typography.size.sm,fontWeight:"normal",display:"none",lineHeight:"30px"}),panelCountCollapsed:(0,Oe.css)({display:"inline-block"})});class Lh extends Rt{constructor(){super(...arguments),this.onToggle=()=>{this.setState({isCollapsed:!this.state.isCollapsed})},this.onRemove=()=>{const _=this.parent;Vy(_)&&_.setState({body:void 0})}}}Lh.Component=nh;function nh({model:N}){const{title:_,isCollapsed:G,canCollapse:pe,canRemove:$e,body:ct,controls:Yt}=N.useState(),In=(0,Jr.of)(xm),br=(0,Jr.of)(Uy),Ir=(Yt??[]).map(Wr=>C.createElement(Wr.Component,{key:Wr.state.key,model:Wr}));return $e&&Ir.push(C.createElement(th.I,{icon:"times",variant:"default",onClick:N.onRemove,key:"remove-button","aria-label":(0,ni.t)("grafana-scenes.components.nested-scene-renderer.remove-button-label","Remove scene")})),C.createElement("div",{className:br.wrapper},C.createElement("div",{className:(0,Oe.cx)(br.row,G&&br.rowCollapsed)},C.createElement("button",{onClick:N.onToggle,className:In.rowTitleButton,"aria-label":G?(0,ni.t)("grafana-scenes.components.nested-scene-renderer.expand-button-label","Expand scene"):(0,ni.t)("grafana-scenes.components.nested-scene-renderer.collapse-button-label","Collapse scene")},pe&&C.createElement(Ds.I,{name:G?"angle-right":"angle-down"}),C.createElement("span",{className:In.rowTitle,role:"heading"},_o.interpolate(N,_,void 0,"text"))),C.createElement("div",{className:br.actions},Ir)),!G&&C.createElement(ct.Component,{model:ct}))}const Uy=N=>({wrapper:(0,Oe.css)({display:"flex",flexDirection:"column",flexGrow:1,gap:N.spacing(1)}),row:(0,Oe.css)({width:"100%",display:"flex",justifyContent:"space-between",gap:N.spacing(1)}),rowCollapsed:(0,Oe.css)({borderBottom:`1px solid ${N.colors.border.weak}`,paddingBottom:N.spacing(1)}),actions:(0,Oe.css)({display:"flex",alignItems:"center",gap:N.spacing(1),justifyContent:"flex-end",flexGrow:1})});function Vy(N){return"body"in N.state}class Lb extends Rt{constructor(){super(...arguments),this._variableDependency=new mc(this,{statePaths:["text"]})}}Lb.Component=zy;function zy({model:N}){const{text:_,fontSize:G=20,align:pe="left",key:$e,spacing:ct}=N.useState(),Yt=(0,Jr.$j)(),In=(0,Oe.css)({fontSize:G,display:"flex",flexGrow:1,alignItems:"center",padding:ct?Yt.spacing(ct,0):void 0,justifyContent:pe});return C.createElement("div",{className:In,"data-testid":$e},_o.interpolate(N,_))}class yd extends Rt{}yd.Component=({model:N})=>{const _=N.useState();return C.createElement(th.I,{onClick:_.onClick,icon:_.icon})};class Nb extends Rt{}Nb.Component=({model:N})=>{const _=N.useState();return C.createElement("div",{style:{display:"flex"}},_.label&&C.createElement(ad,{label:_.label}),C.createElement(Vs.p,{defaultValue:_.value,width:8,onBlur:G=>{N.state.onChange(parseInt(G.currentTarget.value,10))}}))};var Fb=function(N,_,G){if(!Sr)return[_,cn,cn];if(!N)throw new Error("useLocalStorage key may not be falsy");var pe=G?G.raw?function(Wr){return Wr}:G.deserializer:JSON.parse,$e=(0,C.useRef)(function(Wr){try{var Gr=G?G.raw?String:G.serializer:JSON.stringify,pi=localStorage.getItem(Wr);return pi!==null?pe(pi):(_&&localStorage.setItem(Wr,Gr(_)),_)}catch{return _}}),ct=(0,C.useState)(function(){return $e.current(N)}),Yt=ct[0],In=ct[1];(0,C.useLayoutEffect)(function(){return In($e.current(N))},[N]);var br=(0,C.useCallback)(function(Wr){try{var Gr=typeof Wr=="function"?Wr(Yt):Wr;if(typeof Gr>"u")return;var pi=void 0;G?G.raw?typeof Gr=="string"?pi=Gr:pi=JSON.stringify(Gr):G.serializer?pi=G.serializer(Gr):pi=JSON.stringify(Gr):pi=JSON.stringify(Gr),localStorage.setItem(N,pi),In(pe(pi))}catch{}},[N,In]),Ir=(0,C.useCallback)(function(){try{localStorage.removeItem(N),In(void 0)}catch{}},[N,In]);return[Yt,br,Ir]};const jb=Fb;var Bb=u(74529),rh=u(91867);class Cm extends Rt{constructor(){super(...arguments),this.onZoom=()=>{const _=_o.getTimeRange(this),G=Gy(_.state.value,2);_.onTimeRangeChange(G)},this.onChangeFiscalYearStartMonth=_=>{_o.getTimeRange(this).setState({fiscalYearStartMonth:_})},this.toAbsolute=()=>{const _=_o.getTimeRange(this),G=_.state.value,pe=(0,K.yT)(G.from),$e=(0,K.yT)(G.to);_.onTimeRangeChange({from:pe,to:$e,raw:{from:pe,to:$e}})},this.onMoveBackward=()=>{const _=_o.getTimeRange(this),{state:{value:G}}=_;_.onTimeRangeChange(Om(0,G))},this.onMoveForward=()=>{const _=_o.getTimeRange(this),{state:{value:G}}=_;_.onTimeRangeChange(Om(1,G,Date.now()))}}}Cm.Component=Wy;function Wy({model:N}){const{hidePicker:_,isOnCanvas:G,quickRanges:pe,defaultQuickRanges:$e}=N.useState(),ct=_o.getTimeRange(N),Yt=ct.getTimeZone(),In=ct.useState(),[br,Ir]=jb(Hy,[],{raw:!1,serializer:bd,deserializer:$b});if(_)return null;const Wr=pe||$e,Gr=(In.value.to.valueOf()-In.value.from.valueOf())/2,pi=(0,Bb.dU)({start:new Date(In.value.from.valueOf()),end:new Date(In.value.from.valueOf()+Gr)}),Zi=In.value.to.valueOf()+Gr<=Date.now()?pi:void 0;return C.createElement(rh.$6,{isOnCanvas:G??!0,value:In.value,onChange:ia=>{Yy(ia)&&Ir([ia,...br??[]]),ct.onTimeRangeChange(ia)},timeZone:Yt,fiscalYearStartMonth:In.fiscalYearStartMonth,onMoveBackward:N.onMoveBackward,onMoveForward:N.onMoveForward,moveForwardTooltip:Zi?(0,ni.t)("grafana-scenes.components.time-picker.move-forward-tooltip","Move {{moveForwardDuration}} forward",{moveForwardDuration:Zi}):void 0,moveBackwardTooltip:(0,ni.t)("grafana-scenes.components.time-picker.move-backward-tooltip","Move {{moveBackwardDuration}} backward",{moveBackwardDuration:pi}),onZoom:N.onZoom,onChangeTimeZone:ct.onTimeZoneChange,onChangeFiscalYearStartMonth:N.onChangeFiscalYearStartMonth,weekStart:In.weekStart,history:br,quickRanges:Wr})}function Gy(N,_){const G=N.to.valueOf()-N.from.valueOf(),pe=N.to.valueOf()-G/2,$e=G===0?3e4:G*_,ct=pe+$e/2,Yt=pe-$e/2;return{from:(0,K.yT)(Yt),to:(0,K.yT)(ct),raw:{from:(0,K.yT)(Yt),to:(0,K.yT)(ct)}}}function Om(N,_,G){const pe=_.to.valueOf(),$e=_.from.valueOf(),ct=(pe-$e)/2;let Yt,In;N===0?(Yt=$e-ct,In=pe-ct):(Yt=$e+ct,In=pe+ct,G!==void 0&&In>G&&pe<G&&(In=G,Yt=$e));const br=(0,K.yT)(Yt),Ir=(0,K.yT)(In);return{from:br,to:Ir,raw:{from:br,to:Ir}}}const Hy="grafana.dashboard.timepicker.history";function $b(N){return JSON.parse(N).map(G=>fe.convertRawToRange(G,"utc",void 0,"YYYY-MM-DD HH:mm:ss"))}function bd(N){return JSON.stringify(Ky(N.map(_=>({from:typeof _.raw.from=="string"?_.raw.from:_.raw.from.toISOString(),to:typeof _.raw.to=="string"?_.raw.to:_.raw.to.toISOString()}))))}function Ky(N){return(0,Wt.uniqBy)(N,_=>_.from+_.to).slice(0,4)}function Yy(N){return(0,K.Ar)(N.raw.from)||(0,K.Ar)(N.raw.to)}var Qp=u(90811);const Ub=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"];class Jy extends Rt{constructor(_){var G,pe,$e;const ct=Yt=>{var In;const br=(In=_.minRefreshInterval)!=null?In:pt.$.minRefreshInterval;try{return br?fe.intervalToMs(Yt)>=fe.intervalToMs(br):!0}catch{return!1}};super({refresh:"",..._,autoValue:void 0,autoEnabled:(G=_.autoEnabled)!=null?G:!0,autoMinInterval:(pe=_.autoMinInterval)!=null?pe:pt.$.minRefreshInterval,intervals:(($e=_.intervals)!=null?$e:Ub).filter(ct)}),this._urlSync=new Nt(this,{keys:["refresh"]}),this._autoRefreshBlocked=!1,this.onRefresh=()=>{const Yt=_o.getQueryController(this);if(Yt?.state.isRunning){Yt.cancelAll(),Yt.cancelProfile();return}Yt?.startProfile(ye);const In=_o.getTimeRange(this);this._intervalTimer&&clearInterval(this._intervalTimer),In.onRefresh(),this.setupIntervalTimer()},this.onIntervalChanged=Yt=>{this.setState({refresh:Yt}),this.setupIntervalTimer()},this.setupAutoTimeRangeListener=()=>_o.getTimeRange(this).subscribeToState((Yt,In)=>{(Yt.from!==In.from||Yt.to!==In.to)&&this.setupIntervalTimer()}),this.calculateAutoRefreshInterval=()=>{var Yt;const In=_o.getTimeRange(this),br=(Yt=window?.innerWidth)!=null?Yt:2e3;return fe.calculateInterval(In.state.value,br,this.state.autoMinInterval)},this.setupIntervalTimer=()=>{var Yt;const In=_o.getTimeRange(this),{refresh:br,intervals:Ir}=this.state;if((this._intervalTimer||br==="")&&clearInterval(this._intervalTimer),br===""||br!==Qp.cC.autoOption.value&&Ir&&!Ir.includes(br))return;let Wr;if((Yt=this._autoTimeRangeListener)==null||Yt.unsubscribe(),br===Qp.cC.autoOption.value){const Gr=this.calculateAutoRefreshInterval();Wr=Gr.intervalMs,this._autoTimeRangeListener=this.setupAutoTimeRangeListener(),Gr.interval!==this.state.autoValue&&this.setState({autoValue:Gr.interval})}else Wr=fe.intervalToMs(br);this._intervalTimer=setInterval(()=>{if(this.isTabVisible()){const Gr=_o.getQueryController(this);Gr?.state.isRunning&&Gr.cancelProfile(),Gr?.startProfile(ye),In.onRefresh()}else this._autoRefreshBlocked=!0},Wr)},this.addActivationHandler(()=>{this.setupIntervalTimer();const Yt=()=>{this._autoRefreshBlocked&&document.visibilityState==="visible"&&(this._autoRefreshBlocked=!1,this.onRefresh())};return document.addEventListener("visibilitychange",Yt),()=>{var In;this._intervalTimer&&clearInterval(this._intervalTimer),document.removeEventListener("visibilitychange",Yt),(In=this._autoTimeRangeListener)==null||In.unsubscribe()}})}getUrlState(){let _=this.state.refresh;return(typeof _!="string"||_.length===0)&&(_=void 0),{refresh:_}}updateFromUrl(_){const{intervals:G}=this.state;let pe=_.refresh;typeof pe=="string"&&zb(pe)&&(G?.includes(pe)?this.setState({refresh:pe}):this.setState({refresh:G?G[0]:void 0}))}isTabVisible(){return document.visibilityState===void 0||document.visibilityState==="visible"}}Jy.Component=Zy;function Zy({model:N}){var _;const{refresh:G,intervals:pe,autoEnabled:$e,autoValue:ct,isOnCanvas:Yt,primary:In,withText:br}=N.useState(),Ir=Vb(N);let Wr=G===((_=Qp.cC.autoOption)==null?void 0:_.value)?ct:br?(0,ni.t)("grafana-scenes.components.scene-refresh-picker.text-refresh","Refresh"):void 0,Gr,pi;return Ir&&(Gr=(0,ni.t)("grafana-scenes.components.scene-refresh-picker.tooltip-cancel","Cancel all queries"),br&&(Wr=(0,ni.t)("grafana-scenes.components.scene-refresh-picker.text-cancel","Cancel"))),br&&(pi="96px"),C.createElement(Qp.cC,{showAutoInterval:$e,value:G,intervals:pe,tooltip:Gr,width:pi,text:Wr,onRefresh:()=>{N.onRefresh()},primary:In,onIntervalChanged:N.onIntervalChanged,isLoading:Ir,isOnCanvas:Yt??!0})}function Vb(N){const _=_o.getQueryController(N);return _?_.useState().isRunning:!1}function zb(N){try{return fe.describeInterval(N).count>0}catch{return!1}}var Wb=u(93256),Gb=u(15356);const Tm=N=>`${N}-compare`,qp="__previousPeriod",Vd="__noPeriod",Xy={label:"Previous period",value:qp},Qy={label:"None",value:Vd},Am=[{label:"Day before",value:"24h"},{label:"Week before",value:"1w"},{label:"Month before",value:"1M"}];class Hb extends Rt{constructor(_){super({compareOptions:Am,..._}),this._urlSync=new Nt(this,{keys:["compareWith"]}),this._onActivate=()=>{const G=_o.getTimeRange(this);this.setState({compareOptions:this.getCompareOptions(G.state.value)}),this._subs.add(G.subscribeToState(pe=>{const $e=this.getCompareOptions(pe.value),ct={compareOptions:$e};this.state.compareWith&&!$e.find(({value:Yt})=>Yt===this.state.compareWith)&&(ct.compareWith=qp),this.setState(ct)}))},this.getCompareOptions=G=>{const pe=Math.ceil(G.to.diff(G.from)),$e=Am.findIndex(({value:ct})=>fe.intervalToMs(ct)>=pe);return[Qy,Xy,...Am.slice($e).map(({label:ct,value:Yt})=>({label:ct,value:Yt}))]},this.onCompareWithChanged=G=>{G===Vd?this.onClearCompare():this.setState({compareWith:G})},this.onClearCompare=()=>{this.setState({compareWith:void 0})},this.addActivationHandler(this._onActivate)}getExtraQueries(_){const G=[],pe=this.getCompareTimeRange(_.range);if(!pe)return G;const $e=_.targets.filter(ct=>ct.timeRangeCompare!==!1);return $e.length&&G.push({req:{..._,targets:$e,range:pe},processor:Kb}),G}shouldRerun(_,G,pe){return _.compareWith!==G.compareWith&&pe.find($e=>$e.timeRangeCompare!==!1)!==void 0}getCompareTimeRange(_){let G,pe;if(this.state.compareWith){if(this.state.compareWith===qp){const $e=_.to.diff(_.from);G=(0,K.KQ)(_.from).subtract($e),pe=(0,K.KQ)(_.to).subtract($e)}else G=(0,K.KQ)(_.from).subtract(fe.intervalToMs(this.state.compareWith)),pe=(0,K.KQ)(_.to).subtract(fe.intervalToMs(this.state.compareWith));return{from:G,to:pe,raw:{from:G,to:pe}}}}getUrlState(){return{compareWith:this.state.compareWith}}updateFromUrl(_){if(!_.compareWith)return;const G=Yn(_.compareWith);G&&(this.getCompareOptions(_o.getTimeRange(this).state.value).find(({value:$e})=>$e===G)?this.setState({compareWith:G}):this.setState({compareWith:"__previousPeriod"}))}}Hb.Component=Yb;const Kb=(N,_)=>{const G=_.timeRange.from.diff(N.timeRange.from);return _.series.forEach(pe=>{pe.refId=Tm(pe.refId||""),pe.meta={...pe.meta,timeCompare:{diffMs:G,isTimeShiftQuery:!0}}}),(0,Nn.of)(_)};function Yb({model:N}){var _;const G=(0,Jr.of)(Jb),{compareWith:pe,compareOptions:$e,hideCheckbox:ct}=N.useState(),[Yt,In]=C.useState(pe),br=(_=$e.find(({value:ia})=>ia===Yt))!=null?_:Xy,Ir=$e.find(({value:ia})=>ia===pe),Wr=!!Ir,Gr=()=>{Wr?(In(pe),N.onClearCompare()):Wr||N.onCompareWithChanged(br.value)},pi=ct&&!pe?Qy:Ir,Ri=ct||Wr,Zi=ct&&pi?{...pi,label:`Comparison: ${pi.label}`}:pi;return C.createElement(Wb.e,null,!ct&&C.createElement(th.I,{variant:"canvas",tooltip:(0,ni.t)("grafana-scenes.components.scene-time-range-compare-renderer.button-tooltip","Enable time frame comparison"),onClick:ia=>{ia.stopPropagation(),ia.preventDefault(),Gr()}},C.createElement(le.S,{label:" ",value:Wr,onClick:Gr}),C.createElement(ni.x6,{i18nKey:"grafana-scenes.components.scene-time-range-compare-renderer.button-label"},"Comparison")),Ri?C.createElement(Gb.f,{variant:"canvas",value:Zi,options:$e,onChange:ia=>{N.onCompareWithChanged(ia.value)}}):C.createElement(th.I,{className:G.previewButton,disabled:!0,variant:"canvas",isOpen:!1},br.label))}function Jb(N){return{previewButton:(0,Oe.css)({"&:disabled":{border:`1px solid ${N.colors.secondary.border}`,color:N.colors.text.disabled,opacity:1}})}}class qy extends Rt{constructor(_){super(_),this.addActivationHandler(()=>{const G=_o.getData(this);this._subs.add(G.subscribeToState(pe=>{var $e;(($e=pe.data)==null?void 0:$e.state)===Y.Gu.Done&&this.performRepeat(pe.data)})),G.state.data&&this.performRepeat(G.state.data)})}performRepeat(_){const G=[];for(let pe=0;pe<_.series.length;pe++){const $e=this.state.getLayoutChild(_,_.series[pe],pe);G.push($e)}this.state.body.setState({children:G})}}qy.Component=({model:N})=>{const{body:_}=N.useState();return C.createElement(_.Component,{model:_})};class ev extends Rt{constructor(_){super(_),this._variableDependency=new mc(this,{variableNames:[this.state.variableName],onVariableUpdateCompleted:()=>this.performRepeat()}),this.addActivationHandler(()=>this.performRepeat())}performRepeat(){if(this._variableDependency.hasDependencyInLoadingState())return;const _=_o.lookupVariable(this.state.variableName,this);if(!(_ instanceof ir)){console.error("SceneByVariableRepeater: variable is not a MultiValueVariable");return}const G=tv(_),pe=[];for(const $e of G){const ct=this.state.getLayoutChild($e);pe.push(ct)}this.state.body.setState({children:pe})}}ev.Component=({model:N})=>{const{body:_}=N.useState();return C.createElement(_.Component,{model:_})};function tv(N){const{value:_,text:G,options:pe}=N.state;return N.hasAllValue()?pe:Array.isArray(_)&&Array.isArray(G)?_.map(($e,ct)=>({value:$e,label:G[ct]})):[{value:_,label:G}]}class e0 extends Rt{constructor(){super({}),this._renderBeforeActivation=!0}}e0.Component=N=>C.createElement("div",{style:{flexGrow:1}});class nv extends Rt{toggleDirection(){this.setState({direction:this.state.direction==="row"?"column":"row"})}isDraggable(){return!1}}nv.Component=Zb;function Zb({model:N,parentState:_}){const{children:G,isHidden:pe}=N.useState(),$e=qb(N.state,_);return pe?null:C.createElement("div",{className:$e},G.map(ct=>{const Yt=ct.Component;return C.createElement(Yt,{key:ct.state.key,model:ct,parentState:N.state})}))}class Rm extends Rt{}Rm.Component=Xb;function Xb({model:N,parentState:_}){if(!_)throw new Error("SceneFlexItem must be a child of SceneFlexLayout");const{body:G,isHidden:pe}=N.useState(),$e=Qb(N.state,_);return!G||pe?null:C.createElement("div",{className:$e},C.createElement(G.Component,{model:G}))}function Pm(N,_,G){var pe,$e,ct;const Yt=(pe=G.direction)!=null?pe:"row",{xSizing:In="fill",ySizing:br="fill"}=_;return N.display="flex",N.position="relative",N.flexDirection=Yt,Yt==="column"?(_.height?N.height=_.height:N.flexGrow=br==="fill"?1:0,_.width?N.width=_.width:N.alignSelf=In==="fill"?"stretch":"flex-start"):(_.height?N.height=_.height:N.alignSelf=br==="fill"?"stretch":"flex-start",_.width?N.width=_.width:N.flexGrow=In==="fill"?1:0,_.wrap&&(N.flexWrap=_.wrap,_.wrap!=="nowrap"&&(Yt==="row"?N.rowGap="8px":N.columnGap="8px"))),N.minWidth=_.minWidth,N.maxWidth=_.maxWidth,N.maxHeight=_.maxHeight,N.minHeight=($e=_.minHeight)!=null?$e:G.minHeight,N.height=(ct=_.height)!=null?ct:G.height,N}function Qb(N,_){return(0,C.useMemo)(()=>{var G,pe,$e,ct,Yt,In,br,Ir,Wr,Gr;const pi=pt.$.theme2,Ri=Pm({},N,_);return Ri[pi.breakpoints.down("md")]={maxWidth:(pe=(G=N.md)==null?void 0:G.maxWidth)!=null?pe:"unset",maxHeight:(ct=($e=N.md)==null?void 0:$e.maxHeight)!=null?ct:"unset",height:(br=(Yt=N.md)==null?void 0:Yt.height)!=null?br:(In=_.md)==null?void 0:In.height,width:(Gr=(Ir=N.md)==null?void 0:Ir.width)!=null?Gr:(Wr=_.md)==null?void 0:Wr.width},(0,Oe.css)(Ri)},[N,_])}function qb(N,_){return(0,C.useMemo)(()=>{var G,pe,$e,ct,Yt,In,br,Ir,Wr,Gr;const{direction:pi="row",wrap:Ri}=N,Zi=pt.$.theme2,ia={};return _?Pm(ia,N,_):(ia.display="flex",ia.flexGrow=1,ia.minWidth=N.minWidth,ia.minHeight=N.minHeight),ia.flexDirection=pi,ia.gap="8px",ia.flexWrap=Ri||"nowrap",ia.alignContent="baseline",ia.minWidth=ia.minWidth||0,ia.minHeight=ia.minHeight||0,ia[Zi.breakpoints.down("md")]={flexDirection:(pe=(G=N.md)==null?void 0:G.direction)!=null?pe:"column",maxWidth:(ct=($e=N.md)==null?void 0:$e.maxWidth)!=null?ct:"unset",maxHeight:(In=(Yt=N.md)==null?void 0:Yt.maxHeight)!=null?In:"unset",height:(Ir=(br=N.md)==null?void 0:br.height)!=null?Ir:"unset",width:(Gr=(Wr=N.md)==null?void 0:Wr.width)!=null?Gr:"unset"},(0,Oe.css)(ia)},[_,N])}class eS extends Rt{constructor(_){var G,pe;super({rowGap:1,columnGap:1,templateColumns:"repeat(auto-fit, minmax(400px, 1fr))",autoRows:(G=_.autoRows)!=null?G:"320px",children:(pe=_.children)!=null?pe:[],..._})}isDraggable(){return!1}}eS.Component=Im;function Im({model:N}){const{children:_,isHidden:G,isLazy:pe}=N.useState(),$e=n0(N.state);return G?null:C.createElement("div",{className:$e},_.map(ct=>{const Yt=ct.Component;return pe?C.createElement(zo,{key:ct.state.key,className:$e},C.createElement(Yt,{key:ct.state.key,model:ct,parentState:N.state})):C.createElement(Yt,{key:ct.state.key,model:ct,parentState:N.state})}))}class t0 extends Rt{}t0.Component=Nc;function Nc({model:N,parentState:_}){if(!_)throw new Error("SceneCSSGridItem must be a child of SceneCSSGridLayout");const{body:G,isHidden:pe}=N.useState(),$e=tS(N.state);return!G||pe?null:C.createElement("div",{className:$e},C.createElement(G.Component,{model:G}))}function n0(N){return(0,C.useMemo)(()=>{var _,G,pe,$e,ct,Yt,In,br,Ir,Wr,Gr;const pi={},Ri=pt.$.theme2;return pi.display="grid",pi.gridTemplateColumns=N.templateColumns,pi.gridTemplateRows=N.templateRows||"unset",pi.gridAutoRows=N.autoRows||"unset",pi.rowGap=Ri.spacing((_=N.rowGap)!=null?_:1),pi.columnGap=Ri.spacing((G=N.columnGap)!=null?G:1),pi.justifyItems=N.justifyItems||"unset",pi.alignItems=N.alignItems||"unset",pi.justifyContent=N.justifyContent||"unset",pi.flexGrow=1,N.md&&(pi[Ri.breakpoints.down("md")]={gridTemplateRows:(pe=N.md)==null?void 0:pe.templateRows,gridTemplateColumns:($e=N.md)==null?void 0:$e.templateColumns,rowGap:N.md.rowGap?Ri.spacing((Yt=(ct=N.md)==null?void 0:ct.rowGap)!=null?Yt:1):void 0,columnGap:N.md.columnGap?Ri.spacing((br=(In=N.md)==null?void 0:In.rowGap)!=null?br:1):void 0,justifyItems:(Ir=N.md)==null?void 0:Ir.justifyItems,alignItems:(Wr=N.md)==null?void 0:Wr.alignItems,justifyContent:(Gr=N.md)==null?void 0:Gr.justifyContent}),(0,Oe.css)(pi)},[N])}function tS(N){return(0,C.useMemo)(()=>{const _={};return _.gridColumn=N.gridColumn||"unset",_.gridRow=N.gridRow||"unset",_.position="relative",(0,Oe.css)(_)},[N])}const dp=.3,Dm=new Set(["ArrowUp","ArrowDown"]),r0=new Set(["ArrowLeft","ArrowRight"]),Mm={row:{dim:"width",axis:"clientX",min:"minWidth",max:"maxWidth"},column:{dim:"height",axis:"clientY",min:"minHeight",max:"maxHeight"}};function i0({direction:N="row",handleSize:_=32,initialSize:G="auto",primaryPaneStyles:pe,secondaryPaneStyles:$e,onDragFinished:ct,children:Yt}){const In=C.Children.toArray(Yt),br=(0,C.useRef)(null),Ir=(0,C.useRef)(null),Wr=(0,C.useRef)(null),Gr=(0,C.useRef)(null),pi=(0,C.useRef)(null),Ri=(0,C.useRef)("1fr"),Zi=(0,C.useRef)(void 0),ia=(0,C.useRef)(void 0),Fa=Mm[N].dim,Ba=Mm[N].axis,Va=Mm[N].min,Ra=Mm[N].max;hp(Gr.current,La=>{for(const ts of La){if(!ts.target.isSameNode(Gr.current))return;const Lo=Ir.current.getBoundingClientRect()[Fa],Es=Nh(Ir.current);br.current.ariaValueNow=`${(0,Wt.clamp)((Lo-Es[Va])/(Es[Ra]-Es[Va])*100,0,100)}`}},500,[Ra,Va,N,Fa]);const Ya=(0,C.useRef)(null),Ao=(0,C.useCallback)(La=>{Ri.current=Ir.current.getBoundingClientRect()[Fa],pi.current=Gr.current.getBoundingClientRect()[Fa],Ya.current=La[Ba],br.current.setPointerCapture(La.pointerId),Zi.current=Nh(Ir.current),ia.current=void 0},[Fa,Ba]),Co=(0,C.useCallback)(La=>{if(Ya.current!==null&&Ri.current!=="1fr"){const ts=La[Ba]-Ya.current,Lo=Zi.current,Es=(0,Wt.clamp)(Ri.current+ts,Lo[Va],Lo[Ra]),ou=Es/(pi.current-_);Ir.current.style.flexGrow=`${ou}`,Wr.current.style.flexGrow=`${1-ou}`;const hs=(0,Wt.clamp)((Es-Lo[Va])/(Lo[Ra]-Lo[Va])*100,0,100);br.current.ariaValueNow=`${hs}`}},[_,Ba,Va,Ra]),ao=(0,C.useCallback)(La=>{La.preventDefault(),La.stopPropagation(),br.current.releasePointerCapture(La.pointerId),Ya.current=null,ct?.(parseFloat(Ir.current.style.flexGrow))},[ct]),$o=(0,C.useRef)(new Set),ko=(0,C.useRef)(null),Mo=(0,C.useCallback)(La=>{var ts;if($o.current.size===0){ko.current=null;return}else if(Ri.current==="1fr")return;const ou=(La-((ts=ko.current)!=null?ts:La))*dp;let hs=0;N==="row"?($o.current.has("ArrowLeft")&&(hs-=ou),$o.current.has("ArrowRight")&&(hs+=ou)):($o.current.has("ArrowUp")&&(hs-=ou),$o.current.has("ArrowDown")&&(hs+=ou));const Eo=Zi.current,ns=Ir.current.getBoundingClientRect()[Fa],us=(0,Wt.clamp)(ns+hs,Eo[Va],Eo[Ra]),ys=us/(pi.current-_);Ir.current.style.flexGrow=`${ys}`,Wr.current.style.flexGrow=`${1-ys}`;const ws=(us-Eo[Va])/(Eo[Ra]-Eo[Va])*100;br.current.ariaValueNow=`${(0,Wt.clamp)(ws,0,100)}`,ko.current=La,window.requestAnimationFrame(Mo)},[N,_,Va,Ra,Fa]),ds=(0,C.useCallback)(La=>{if(La.key==="Enter"){ia.current===void 0?(ia.current=Ir.current.style.flexGrow,Ir.current.style.flexGrow="0",Wr.current.style.flexGrow="1"):(Ir.current.style.flexGrow=ia.current,Wr.current.style.flexGrow=`${1-parseFloat(ia.current)}`,ia.current=void 0);return}else if(La.key==="Home"){Zi.current=Nh(Ir.current),pi.current=Gr.current.getBoundingClientRect()[Fa];const Lo=Zi.current[Va]/(pi.current-_);Ir.current.style.flexGrow=`${Lo}`,Wr.current.style.flexGrow=`${1-Lo}`,br.current.ariaValueNow="0";return}else if(La.key==="End"){Zi.current=Nh(Ir.current),pi.current=Gr.current.getBoundingClientRect()[Fa];const Lo=Zi.current[Ra]/(pi.current-_);Ir.current.style.flexGrow=`${Lo}`,Wr.current.style.flexGrow=`${1-Lo}`,br.current.ariaValueNow="100";return}if(!(N==="column"&&Dm.has(La.key)||N==="row"&&r0.has(La.key))||$o.current.has(La.key))return;if(ia.current=void 0,La.preventDefault(),La.stopPropagation(),Ri.current=Ir.current.getBoundingClientRect()[Fa],pi.current=Gr.current.getBoundingClientRect()[Fa],Zi.current=Nh(Ir.current),!$o.current.has(La.key)){const Lo=$o.current.size===0;$o.current.add(La.key),Lo&&window.requestAnimationFrame(Mo)}},[N,Mo,_,Ra,Fa,Va]),po=(0,C.useCallback)(La=>{N==="row"&&!r0.has(La.key)||N==="column"&&!Dm.has(La.key)||($o.current.delete(La.key),ct?.(parseFloat(Ir.current.style.flexGrow)))},[N,ct]),Qo=(0,C.useCallback)(()=>{Ir.current.style.flexGrow="0.5",Wr.current.style.flexGrow="0.5";const La=Nh(Ir.current);Zi.current=La,Ri.current=Ir.current.getBoundingClientRect()[Fa],br.current.ariaValueNow=`${(Ri.current-La[Va])/(La[Ra]-La[Va])*100}`},[Ra,Fa,Va]),Fo=(0,C.useCallback)(()=>{$o.current.size>0&&($o.current.clear(),Ya.current=null,ct?.(parseFloat(Ir.current.style.flexGrow)))},[ct]),Yo=(0,Jr.of)(rv),Ro=Ha(),ss=In.length===2?"visible":"hidden";return C.createElement("div",{ref:Gr,className:Yo.container,style:{flexDirection:N}},C.createElement("div",{ref:Ir,className:Yo.panel,style:{flexGrow:G==="auto"?.5:(0,Wt.clamp)(G,0,1),[Va]:"min-content",...pe},id:`start-panel-${Ro}`},In[0]),In[1]&&C.createElement(C.Fragment,null,C.createElement("div",{ref:br,style:{[Fa]:`${_}px`},className:(0,Oe.cx)(Yo.handle,{[Yo.handleHorizontal]:N==="column"}),onPointerUp:ao,onPointerDown:Ao,onPointerMove:Co,onKeyDown:ds,onKeyUp:po,onDoubleClick:Qo,onBlur:Fo,role:"separator","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":50,"aria-controls":`start-panel-${Ro}`,"aria-label":(0,ni.t)("grafana-scenes.components.splitter.aria-label-pane-resize-widget","Pane resize widget"),tabIndex:0}),C.createElement("div",{ref:Wr,className:Yo.panel,style:{flexGrow:G==="auto"?.5:(0,Wt.clamp)(1-G,0,1),[Va]:"min-content",visibility:`${ss}`,...$e},id:`end-panel-${Ro}`},In[1])))}function rv(N){return{handle:(0,Oe.css)({cursor:"col-resize",position:"relative",flexShrink:0,userSelect:"none","&::before":{content:'""',position:"absolute",backgroundColor:N.colors.primary.main,left:"50%",transform:"translate(-50%)",top:0,height:"100%",width:"1px",opacity:0,transition:"opacity ease-in-out 0.2s"},"&::after":{content:'""',width:"4px",borderRadius:"4px",backgroundColor:N.colors.border.weak,transition:"background-color ease-in-out 0.2s",height:"50%",top:"calc(50% - (50%) / 2)",transform:"translateX(-50%)",position:"absolute",left:"50%"},"&:hover, &:focus-visible":{outline:"none","&::before":{opacity:1},"&::after":{backgroundColor:N.colors.primary.main}}}),handleHorizontal:(0,Oe.css)({cursor:"row-resize","&::before":{left:"inherit",transform:"translateY(-50%)",top:"50%",height:"1px",width:"100%"},"&::after":{width:"50%",height:"4px",top:"50%",transform:"translateY(-50%)",left:"calc(50% - (50%) / 2)"}}),container:(0,Oe.css)({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),panel:(0,Oe.css)({display:"flex",position:"relative",flexBasis:0})}}function Nh(N){if(N===null)return;const _=document.body.style.overflow,G=N.style.width,pe=N.style.height,$e=N.style.flexGrow;document.body.style.overflow="hidden",N.style.flexGrow="0";const{width:ct,height:Yt}=N.getBoundingClientRect();N.style.flexGrow="100";const{width:In,height:br}=N.getBoundingClientRect();return document.body.style.overflow=_,N.style.width=G,N.style.height=pe,N.style.flexGrow=$e,{minWidth:ct,maxWidth:In,minHeight:Yt,maxHeight:br}}function hp(N,_,G=0,pe){const $e=(0,Wt.throttle)(_,G);(0,C.useLayoutEffect)(()=>{if(!N)return;const ct=new ResizeObserver($e);return ct.observe(N,{box:"device-pixel-content-box"}),()=>ct.disconnect()},pe)}function a0({model:N}){const{primary:_,secondary:G,direction:pe,isHidden:$e,initialSize:ct,primaryPaneStyles:Yt,secondaryPaneStyles:In}=N.useState();if($e)return null;const br=_.Component,Ir=G?.Component;let Wr=G?ct:1;return C.createElement(i0,{direction:pe,initialSize:Wr??.5,primaryPaneStyles:Yt,secondaryPaneStyles:In},C.createElement(br,{key:_.state.key,model:_,parentState:N.state}),Ir&&G&&C.createElement(Ir,{key:G.state.key,model:G,parentState:N.state}))}class o0 extends Rt{toggleDirection(){this.setState({direction:this.state.direction==="row"?"column":"row"})}isDraggable(){return!1}}o0.Component=a0;var s0=u(61417);class nS extends Rt{constructor(){super(...arguments),this._renderBeforeActivation=!0}enrichDataRequest(){return{app:this.state.name||"app"}}}nS.Component=({model:N})=>{const{pages:_}=N.useState();return C.createElement(C.Fragment,null,C.createElement(iv.Provider,{value:N},C.createElement(s0.Routes,null,_.map(G=>C.createElement(x.qh,{key:G.state.url,path:G.state.routePath,element:C.createElement(G.Component,{model:G})})))))};const iv=(0,C.createContext)(null),km=new Map;function rS(N){const _=km.get(N);if(_)return _;const G=N();return km.set(N,G),G}class Lm extends Rt{}Lm.Component=({model:N})=>{const{component:_,props:G,reactNode:pe}=N.useState();return _?C.createElement(_,{...G}):pe||null};var av=u(88806),iS=u(8207),u0=u(52718),Sh=u(50275);function aS({node:N}){const _=N.useState(),G=(0,Jr.of)(c0);return C.createElement("div",{className:G.container},Object.keys(_).map(pe=>C.createElement("div",{className:G.row,key:pe},C.createElement("div",{className:G.keyName},pe),C.createElement("div",{className:G.value},l0(pe,_[pe],N)))))}function l0(N,_,G){if(_===null)return"null";switch(typeof _){case"number":return C.createElement(Vs.p,{type:"number",defaultValue:_,onBlur:pe=>G.setState({[N]:pe.currentTarget.valueAsNumber})});case"string":return C.createElement(Vs.p,{type:"text",defaultValue:_,onBlur:pe=>G.setState({[N]:pe.currentTarget.value})});case"object":return $r(_)?_.constructor.name:(0,Wt.isPlainObject)(_)||(0,Wt.isArray)(_)?C.createElement(Sh.B,{json:_,open:0}):String(_);default:return typeof _}}function c0(N){return{container:(0,Oe.css)({flexGrow:1,display:"flex",gap:N.spacing(.5),flexDirection:"column"}),row:(0,Oe.css)({display:"flex",gap:N.spacing(2)}),keyName:(0,Oe.css)({display:"flex",flexGrow:"0",width:120,alignItems:"center",height:N.spacing(N.components.height.md)}),value:(0,Oe.css)({flexGrow:1,minHeight:N.spacing(N.components.height.md),display:"flex",alignItems:"center"})}}function Nm({node:N,selectedObject:_,onSelect:G}){const pe=(0,Jr.of)(ov),$e=[],ct=N===_;return N.forEachChild(Yt=>{$e.push(C.createElement(Nm,{node:Yt,key:Yt.state.key,selectedObject:_,onSelect:G}))}),C.createElement("div",{className:pe.container},C.createElement("div",{className:(0,Oe.cx)(pe.name,ct&&pe.selected),onClick:()=>G(N)},N.constructor.name),C.createElement("div",{className:pe.children},$e))}function ov(N){return{container:(0,Oe.css)({flexGrow:1,display:"flex",gap:N.spacing(.5),flexDirection:"column"}),name:(0,Oe.css)({flexGrow:1,display:"flex",gap:N.spacing(1),fontSize:N.typography.bodySmall.fontSize,cursor:"pointer",padding:N.spacing(0,1),borderRadius:N.shape.borderRadius(2),position:"relative","&:hover":{background:N.colors.background.secondary}}),selected:(0,Oe.css)({"&::before":{display:"block",content:"' '",position:"absolute",left:0,width:4,bottom:2,top:2,borderRadius:N.shape.radius.default,backgroundImage:N.colors.gradients.brandVertical}}),children:(0,Oe.css)({flexGrow:1,display:"flex",flexDirection:"column",paddingLeft:N.spacing(1)})}}function Fm({scene:N}){const _=(0,Jr.of)(f0),[G,pe]=(0,C.useState)(!1),[$e,ct]=(0,C.useState)();return C.createElement(C.Fragment,null,C.createElement(th.I,{variant:"canvas",icon:"bug",onClick:()=>pe(!0)}),G&&C.createElement(iS._,{title:(0,ni.t)("grafana-scenes.components.scene-debugger.title-scene-debugger","Scene debugger"),onClose:()=>pe(!1),size:"lg"},C.createElement("div",{className:_.panes},C.createElement("div",{className:_.pane1},C.createElement("div",{className:_.paneHeading},C.createElement(ni.x6,{i18nKey:"grafana-scenes.components.scene-debugger.scene-graph"},"Scene graph")),C.createElement(u0.E,{autoHeightMin:"100%"},C.createElement("div",{className:_.treeWrapper},C.createElement(Nm,{node:N,selectedObject:$e,onSelect:ct})))),C.createElement("div",{className:_.pane2},C.createElement("div",{className:_.paneHeading},C.createElement(ni.x6,{i18nKey:"grafana-scenes.components.scene-debugger.object-details"},"Object details")),$e&&C.createElement(aS,{node:$e})))))}function f0(N){return{panes:(0,Oe.css)({flexGrow:1,display:"flex",height:"100%",flexDirection:"row",marginTop:N.spacing(-2)}),pane1:(0,Oe.css)({flexGrow:0,display:"flex",height:"100%",flexDirection:"column",borderRight:`1px solid ${N.colors.border.weak}`}),pane2:(0,Oe.css)({flexGrow:1,display:"flex",minHeight:"100%",flexDirection:"column",paddingLeft:N.spacing(2)}),treeWrapper:(0,Oe.css)({paddingRight:N.spacing(2),height:"100%",marginLeft:N.spacing(-1)}),paneHeading:(0,Oe.css)({padding:N.spacing(1,0),fontWeight:N.typography.fontWeightMedium})}}function sv({page:N}){const _=m(N.state.url),G=jm(N),pe=G.useState(),$e=E(),ct=N.getScene(_),Yt=(0,C.useContext)(iv),In=pe.initializedScene===ct,{layout:br}=N.state,Ir=ea();(0,C.useLayoutEffect)(()=>{In||G.initializeScene(ct)},[ct,G,In]),(0,C.useEffect)(()=>()=>G.setState({initializedScene:void 0}),[G]);const Wr=Kp(G,Yt?.state.urlSyncOptions);if(!In&&!Wr)return null;const Gr={text:pe.title,img:pe.titleImg,icon:pe.titleIcon,url:v(pe.url,Ir.getSearchObject(),pe.preserveUrlKeys),hideFromBreadcrumbs:pe.hideFromBreadcrumbs,parentItem:Fh(pe.getParentPage?pe.getParentPage():G.parent,$e,Ir.getSearchObject())};pe.tabs&&(Gr.children=pe.tabs.map(Ri=>({text:Ri.state.title,icon:Ri.state.titleIcon,tabSuffix:Ri.state.tabSuffix,active:N===Ri,url:v(Ri.state.url,Ir.getSearchObject(),Ri.state.preserveUrlKeys),parentItem:Gr})));let pi=[];return pe.controls&&(pi=pe.controls.map(Ri=>C.createElement(Ri.Component,{model:Ri,key:Ri.state.key}))),$e["scene-debugger"]&&pi.push(C.createElement(Fm,{scene:G,key:"scene-debugger"})),C.createElement(av.V,{layout:br,pageNav:Gr,actions:pi,renderTitle:pe.renderTitle,subTitle:pe.subTitle},C.createElement(ct.Component,{model:ct}))}function jm(N){return N.parent instanceof pp?N.parent:N}function Fh(N,_,G){if(N instanceof pp)return{text:N.state.title,url:v(N.state.url,G,N.state.preserveUrlKeys),hideFromBreadcrumbs:N.state.hideFromBreadcrumbs,parentItem:Fh(N.state.getParentPage?N.state.getParentPage():N.parent,_,G)}}function Bm({drilldown:N,parent:_}){const G=m(N.routePath),pe=_.getDrilldownPage(N,G);return C.createElement(pe.Component,{model:pe})}class pp extends Rt{constructor(){super(...arguments),this._sceneCache=new Map,this._drilldownCache=new Map}initializeScene(_){this.setState({initializedScene:_})}getScene(_){let G=this._sceneCache.get(_.url);if(G)return G;if(!this.state.getScene)throw new Error("Missing getScene on SceneAppPage "+this.state.title);return G=this.state.getScene(_),this._sceneCache.set(_.url,G),G}getDrilldownPage(_,G){let pe=this._drilldownCache.get(G.url);return pe||(pe=_.getPage(G,this),this._drilldownCache.set(G.url,pe),pe)}enrichDataRequest(_){if(this.state.getParentPage)return this.state.getParentPage().enrichDataRequest(_);if(!this.parent)return null;const G=this.getRoot();return Fr(G)?G.enrichDataRequest(_):null}}pp.Component=d0;function d0({model:N}){const{tabs:_,drilldowns:G}=N.useState(),pe=[];if(pe.push(oS(N)),_&&_.length>0)for(let $e=0;$e<_.length;$e++){const ct=_[$e];if($e===0&&pe.push(C.createElement(x.qh,{key:N.state.routePath,path:"",element:C.createElement(ct.Component,{model:ct})})),pe.push(C.createElement(x.qh,{key:ct.state.url,path:ct.state.routePath,element:C.createElement(ct.Component,{model:ct})})),ct.state.drilldowns)for(const Yt of ct.state.drilldowns)pe.push(C.createElement(x.qh,{key:Yt.routePath,path:Yt.routePath,element:C.createElement(Bm,{drilldown:Yt,parent:ct})}))}if(G)for(const $e of G)pe.push(C.createElement(x.qh,{key:$e.routePath,path:$e.routePath,Component:()=>C.createElement(Bm,{drilldown:$e,parent:N})}));return _||pe.push(C.createElement(x.qh,{key:"home route",path:"/",element:C.createElement(sv,{page:N})})),C.createElement(s0.Routes,null,pe)}function oS(N){var _,G,pe;return C.createElement(x.qh,{key:"fallback route",path:"*",element:C.createElement(sv,{page:(pe=(G=(_=N.state).getFallbackPage)==null?void 0:G.call(_))!=null?pe:sS()})})}function sS(){return new pp({url:"",title:(0,ni.t)("grafana-scenes.components.fallback-page.title","Not found"),subTitle:(0,ni.t)("grafana-scenes.components.fallback-page.subTitle","The url did not match any page"),routePath:"*",getScene:()=>new Yp({body:new nv({direction:"column",children:[new Rm({body:new Lm({component:()=>C.createElement("div",{"data-testid":"default-fallback-content"},C.createElement(ni.x6,{i18nKey:"grafana-scenes.components.fallback-page.content"},"If you found your way here using a link then there might be a bug in this application."))})})]})})})}var _h=u(97474),uv=u(48390),$m=u(53478),zd=u(74194),lv=u(48850),Wd=u(97644),jh=u(55448),Um=u(25346),Vm=u(23130),zm=u(7698),ih=u(16880),Eh=u(93384),cv=u(59740),Wm=u(51250),Bh=u(81166);class h0{constructor(){this._overrides=[]}overrideColor(_){return this._overrides[this._overrides.length-1].properties.push({id:"color",value:_}),this}overrideDecimals(_){return this._overrides[this._overrides.length-1].properties.push({id:"decimals",value:_}),this}overrideDisplayName(_){return this._overrides[this._overrides.length-1].properties.push({id:"displayName",value:_}),this}overrideFilterable(_){return this._overrides[this._overrides.length-1].properties.push({id:"filterable",value:_}),this}overrideLinks(_){return this._overrides[this._overrides.length-1].properties.push({id:"links",value:_}),this}overrideMappings(_){return this._overrides[this._overrides.length-1].properties.push({id:"mappings",value:_}),this}overrideMax(_){return this._overrides[this._overrides.length-1].properties.push({id:"max",value:_}),this}overrideMin(_){return this._overrides[this._overrides.length-1].properties.push({id:"min",value:_}),this}overrideNoValue(_){return this._overrides[this._overrides.length-1].properties.push({id:"noValue",value:_}),this}overrideThresholds(_){return this._overrides[this._overrides.length-1].properties.push({id:"thresholds",value:_}),this}overrideUnit(_){return this._overrides[this._overrides.length-1].properties.push({id:"unit",value:_}),this}}class uS extends h0{match(_){return this._overrides.push({matcher:_,properties:[]}),this}matchFieldsWithName(_){return this._overrides.push({matcher:{id:gs.Ct.byName,options:_},properties:[]}),this}matchFieldsWithNameByRegex(_){return this._overrides.push({matcher:{id:gs.Ct.byRegexp,options:_},properties:[]}),this}matchFieldsByType(_){return this._overrides.push({matcher:{id:gs.Ct.byType,options:_},properties:[]}),this}matchFieldsByQuery(_){return this._overrides.push({matcher:{id:gs.Ct.byFrameRefID,options:_},properties:[]}),this}matchFieldsByValue(_){return this._overrides.push({matcher:{id:gs.Ct.byValue,options:_},properties:[]}),this}matchComparisonQuery(_){return this.matchFieldsByQuery(Tm(_))}overrideCustomFieldConfig(_,G){const pe=`custom.${String(_)}`;return this._overrides[this._overrides.length-1].properties.push({id:pe,value:G}),this}build(){return this._overrides}}class xl{constructor(_){this.defaultFieldConfig=_,this._fieldConfig={defaults:{},overrides:[]},this._overridesBuilder=new uS,this.setDefaults()}setDefaults(){const _={defaults:{custom:this.defaultFieldConfig?(0,Wt.cloneDeep)(this.defaultFieldConfig()):{}},overrides:[]};this._fieldConfig=_}setColor(_){return this.setFieldConfigDefaults("color",_)}setDecimals(_){return this.setFieldConfigDefaults("decimals",_)}setDisplayName(_){return this.setFieldConfigDefaults("displayName",_)}setFilterable(_){return this.setFieldConfigDefaults("filterable",_)}setLinks(_){return this.setFieldConfigDefaults("links",_)}setMappings(_){return this.setFieldConfigDefaults("mappings",_)}setMax(_){return this.setFieldConfigDefaults("max",_)}setMin(_){return this.setFieldConfigDefaults("min",_)}setNoValue(_){return this.setFieldConfigDefaults("noValue",_)}setThresholds(_){return this.setFieldConfigDefaults("thresholds",_)}setUnit(_){return this.setFieldConfigDefaults("unit",_)}setCustomFieldConfig(_,G){return this._fieldConfig.defaults={...this._fieldConfig.defaults,custom:(0,Wt.merge)(this._fieldConfig.defaults.custom,{[_]:G})},this}setOverrides(_){return _(this._overridesBuilder),this}setFieldConfigDefaults(_,G){return this._fieldConfig.defaults={...this._fieldConfig.defaults,[_]:G},this}build(){return{defaults:this._fieldConfig.defaults,overrides:this._overridesBuilder.build()}}}class Cl{constructor(_){this.defaultOptions=_,this._options={},this.setDefaults()}setDefaults(){this._options=this.defaultOptions?(0,Wt.cloneDeep)(this.defaultOptions()):{}}setOption(_,G){return this._options=(0,Wt.merge)(this._options,{[_]:G}),this}build(){return this._options}}class Ll{constructor(_,G,pe,$e){this._state={},this._state.title="",this._state.description="",this._state.displayMode="default",this._state.hoverHeader=!1,this._state.pluginId=_,this._state.pluginVersion=G,this._fieldConfigBuilder=new xl($e),this._panelOptionsBuilder=new Cl(pe)}setTitle(_){return this._state.title=_,this}setDescription(_){return this._state.description=_,this}setDisplayMode(_){return this._state.displayMode=_,this}setHoverHeader(_){return this._state.hoverHeader=_,this}setShowMenuAlways(_){return this._state.showMenuAlways=_,this}setMenu(_){return this._state.menu=_,this}setHeaderActions(_){return this._state.headerActions=_,this}setCollapsible(_){return this._state.collapsible=_,this}setCollapsed(_){return this._state.collapsed=_,this}setColor(_){return this._fieldConfigBuilder.setColor(_),this}setDecimals(_){return this._fieldConfigBuilder.setDecimals(_),this}setDisplayName(_){return this._fieldConfigBuilder.setDisplayName(_),this}setFilterable(_){return this._fieldConfigBuilder.setFilterable(_),this}setLinks(_){return this._fieldConfigBuilder.setLinks(_),this}setMappings(_){return this._fieldConfigBuilder.setMappings(_),this}setMax(_){return this._fieldConfigBuilder.setMax(_),this}setMin(_){return this._fieldConfigBuilder.setMin(_),this}setNoValue(_){return this._fieldConfigBuilder.setNoValue(_),this}setThresholds(_){return this._fieldConfigBuilder.setThresholds(_),this}setUnit(_){return this._fieldConfigBuilder.setUnit(_),this}setCustomFieldConfig(_,G){return this._fieldConfigBuilder.setCustomFieldConfig(_,G),this}setOverrides(_){return this._fieldConfigBuilder.setOverrides(_),this}setOption(_,G){return this._panelOptionsBuilder.setOption(_,G),this}setData(_){return this._state.$data=_,this}setTimeRange(_){return this._state.$timeRange=_,this}setVariables(_){return this._state.$variables=_,this}setBehaviors(_){return this._state.$behaviors=_,this}setSeriesLimit(_){return this._state.seriesLimit=_,this}applyMixin(_){return _(this),this}build(){return new Tu({...this._state,options:this._panelOptionsBuilder.build(),fieldConfig:this._fieldConfigBuilder.build()})}}const p0={barchart(){return new Ll("barchart","10.0.0",()=>_h.KQ,()=>_h.QB)},bargauge(){return new Ll("bargauge","10.0.0",()=>uv.K)},datagrid(){return new Ll("datagrid","10.0.0",()=>$m.K)},flamegraph(){return new Ll("flamegraph","10.0.0")},gauge(){return new Ll("gauge","10.0.0",()=>zd.K)},geomap(){return new Ll("geomap","10.0.0",()=>lv.KQ)},heatmap(){return new Ll("heatmap","10.0.0",()=>Wd.KQ)},histogram(){return new Ll("histogram","10.0.0",()=>jh.KQ,()=>jh.QB)},logs(){return new Ll("logs","10.0.0")},news(){return new Ll("news","10.0.0",()=>Um.K)},nodegraph(){return new Ll("nodeGraph","10.0.0")},piechart(){return new Ll("piechart","10.0.0",()=>Vm.KQ)},stat(){return new Ll("stat","10.0.0",()=>zm.K)},statetimeline(){return new Ll("state-timeline","10.0.0",()=>ih.KQ,()=>ih.QB)},statushistory(){return new Ll("status-history","10.0.0",()=>Eh.KQ,()=>Eh.QB)},table(){return new Ll("table","10.0.0",()=>cv.K)},text(){return new Ll("text","10.0.0",()=>Wm.KQ)},timeseries(){return new Ll("timeseries","10.0.0")},trend(){return new Ll("trend","10.0.0")},traces(){return new Ll("traces","10.0.0")},xychart(){return new Ll("xychart","10.0.0",()=>Bh.KQ,()=>Bh.QB)}};class Pl{constructor(_,G,pe,$e){this._pluginId=_,this._pluginVersion=G,this._fieldConfigBuilder=new xl($e),this._panelOptionsBuilder=new Cl(pe)}setColor(_){return this._fieldConfigBuilder.setColor(_),this}setDecimals(_){return this._fieldConfigBuilder.setDecimals(_),this}setDisplayName(_){return this._fieldConfigBuilder.setDisplayName(_),this}setFilterable(_){return this._fieldConfigBuilder.setFilterable(_),this}setLinks(_){return this._fieldConfigBuilder.setLinks(_),this}setMappings(_){return this._fieldConfigBuilder.setMappings(_),this}setMax(_){return this._fieldConfigBuilder.setMax(_),this}setMin(_){return this._fieldConfigBuilder.setMin(_),this}setNoValue(_){return this._fieldConfigBuilder.setNoValue(_),this}setThresholds(_){return this._fieldConfigBuilder.setThresholds(_),this}setUnit(_){return this._fieldConfigBuilder.setUnit(_),this}setCustomFieldConfig(_,G){return this._fieldConfigBuilder.setCustomFieldConfig(_,G),this}setOverrides(_){return this._fieldConfigBuilder.setOverrides(_),this}setOption(_,G){return this._panelOptionsBuilder.setOption(_,G),this}build(){return{pluginId:this._pluginId,pluginVersion:this._pluginVersion,options:this._panelOptionsBuilder.build(),fieldConfig:this._fieldConfigBuilder.build()}}}const xu={barchart(){return new Pl("barchart","10.0.0",()=>_h.KQ,()=>_h.QB)},bargauge(){return new Pl("bargauge","10.0.0",()=>uv.K)},datagrid(){return new Pl("datagrid","10.0.0",()=>$m.K)},flamegraph(){return new Pl("flamegraph","10.0.0")},gauge(){return new Pl("gauge","10.0.0",()=>zd.K)},geomap(){return new Pl("geomap","10.0.0",()=>lv.KQ)},heatmap(){return new Pl("heatmap","10.0.0",()=>Wd.KQ)},histogram(){return new Pl("histogram","10.0.0",()=>jh.KQ,()=>jh.QB)},logs(){return new Pl("logs","10.0.0")},news(){return new Pl("news","10.0.0",()=>Um.K)},nodegraph(){return new Pl("nodeGraph","10.0.0")},piechart(){return new Pl("piechart","10.0.0",()=>Vm.KQ)},stat(){return new Pl("stat","10.0.0",()=>zm.K)},statetimeline(){return new Pl("state-timeline","10.0.0",()=>ih.KQ,()=>ih.QB)},statushistory(){return new Pl("status-history","10.0.0",()=>Eh.KQ,()=>Eh.QB)},table(){return new Pl("table","10.0.0",()=>cv.K)},text(){return new Pl("text","10.0.0",()=>Wm.KQ)},timeseries(){return new Pl("timeseries","10.0.0")},trend(){return new Pl("trend","10.0.0")},traces(){return new Pl("traces","10.0.0")},xychart(){return new Pl("xychart","10.0.0",()=>Bh.KQ,()=>Bh.QB)}};var lS=u(22480);function cS(N){switch(N){case"../locales/cs-CZ/grafana-scenes.json":return u.e(7969).then(u.bind(u,27969));case"../locales/de-DE/grafana-scenes.json":return u.e(9992).then(u.bind(u,69992));case"../locales/en-US/grafana-scenes.json":return u.e(4691).then(u.bind(u,34691));case"../locales/es-ES/grafana-scenes.json":return u.e(362).then(u.bind(u,7981));case"../locales/fr-FR/grafana-scenes.json":return u.e(7790).then(u.bind(u,7790));case"../locales/hu-HU/grafana-scenes.json":return u.e(2744).then(u.bind(u,22744));case"../locales/id-ID/grafana-scenes.json":return u.e(4824).then(u.bind(u,54824));case"../locales/it-IT/grafana-scenes.json":return u.e(2152).then(u.bind(u,22152));case"../locales/ja-JP/grafana-scenes.json":return u.e(3171).then(u.bind(u,43171));case"../locales/ko-KR/grafana-scenes.json":return u.e(3501).then(u.bind(u,43501));case"../locales/nl-NL/grafana-scenes.json":return u.e(2710).then(u.bind(u,82710));case"../locales/pl-PL/grafana-scenes.json":return u.e(9578).then(u.bind(u,49578));case"../locales/pt-BR/grafana-scenes.json":return u.e(5106).then(u.bind(u,25106));case"../locales/pt-PT/grafana-scenes.json":return u.e(205).then(u.bind(u,72586));case"../locales/ru-RU/grafana-scenes.json":return u.e(6236).then(u.bind(u,56236));case"../locales/sv-SE/grafana-scenes.json":return u.e(221).then(u.bind(u,20221));case"../locales/tr-TR/grafana-scenes.json":return u.e(874).then(u.bind(u,80874));case"../locales/zh-Hans/grafana-scenes.json":return u.e(344).then(u.bind(u,60344));case"../locales/zh-Hant/grafana-scenes.json":return u.e(9449).then(u.bind(u,69449));default:return new Promise(function(_,G){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(G.bind(null,new Error("Unknown variable dynamic import: "+N)))})}}const fS=lS.Y.reduce((N,_)=>(N[_.code]=async()=>await cS(`../locales/${_.code}/grafana-scenes.json`),N),{}),dS=async N=>(await fS[N]()).default,JS={barchart(){return new Cl(()=>_h.KQ)},bargauge(){return new Cl(()=>uv.K)},datagrid(){return new Cl(()=>$m.K)},flamegraph(){return new Cl},gauge(){return new Cl(()=>zd.K)},geomap(){return new Cl(()=>lv.KQ)},heatmap(){return new Cl(()=>Wd.KQ)},histogram(){return new Cl(()=>jh.KQ)},logs(){return new Cl},news(){return new Cl(()=>Um.K)},nodegraph(){return new Cl},piechart(){return new Cl(()=>Vm.KQ)},stat(){return new Cl(()=>zm.K)},statetimeline(){return new Cl(()=>ih.KQ)},statushistory(){return new Cl(()=>Eh.KQ)},table(){return new Cl(()=>cv.K)},text(){return new Cl(()=>Wm.KQ)},timeseries(){return new Cl},trend(){return new Cl},traces(){return new Cl},xychart(){return new Cl(()=>Bh.KQ)}},hS={barchart(){return new xl(()=>_h.QB)},bargauge(){return new xl},datagrid(){return new xl},flamegraph(){return new xl},gauge(){return new xl},geomap(){return new xl},heatmap(){return new xl},histogram(){return new xl(()=>jh.QB)},logs(){return new xl},news(){return new xl},nodegraph(){return new xl},piechart(){return new xl},stat(){return new xl},statetimeline(){return new xl(()=>ih.QB)},statushistory(){return new xl(()=>Eh.QB)},table(){return new xl},text(){return new xl},timeseries(){return new xl},trend(){return new xl},traces(){return new xl},xychart(){return new xl(()=>Bh.QB)}},v0={getUrlWithAppState:v,registerRuntimePanelPlugin:O,registerRuntimeDataSource:ke,registerVariableMacro:Lt,cloneSceneObjectState:bn,syncStateFromSearchParams:Et,getUrlState:Ft,renderPrometheusLabelFilters:Wv,escapeLabelValueInRegexSelector:Xh,escapeLabelValueInExactSelector:Rp,escapeURLDelimiters:Mg,isAdHocVariable:ey,isConstantVariable:ob,isCustomVariable:ty,isDataSourceVariable:sb,isIntervalVariable:tm,isQueryVariable:ny,isTextBoxVariable:qd,isGroupByVariable:ub,isSwitchVariable:ry,isRepeatCloneOrChildOf:Qi,buildPathIdFor:qg}},44294:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p});var l=u(70915),g=u(61597),y=u(62096),x=u(92497);class f extends y.Ay{constructor(E,v){super(),this.setCoordinates(E,v)}clone(){const E=new f(this.flatCoordinates.slice(),this.layout);return E.applyProperties(this),E}closestPointXY(E,v,m,S){const d=this.flatCoordinates,O=(0,g.hG)(E,v,d[0],d[1]);if(O<S){const R=this.stride;for(let C=0;C<R;++C)m[C]=d[C];return m.length=R,O}return S}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(E){return(0,l.dP)(this.flatCoordinates,E)}getType(){return"Point"}intersectsExtent(E){return(0,l.Rj)(E,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(E,v){this.setLayout(v,E,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,x._n)(this.flatCoordinates,0,E,this.stride),this.changed()}}const p=f},44335:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.GetDurationUnitOptions=g;var l=u(1656);function g(y,x,f,p,h,E){var v=(0,l.GetOption)(x,y,"string",p,void 0),m="always";v===void 0&&(f==="digital"?(y!=="hours"&&y!=="minutes"&&y!=="seconds"&&(m="auto"),v=h):(m="auto",E==="numeric"||E==="2-digit"?v="numeric":v=f));var S="".concat(y,"Display"),d=(0,l.GetOption)(x,S,"string",["always","auto"],m);if(E==="numeric"||E==="2-digit"){if(v!=="numeric"&&v!=="2-digit")throw new RangeError("Can't mix numeric and non-numeric styles");if((y==="minutes"||y==="seconds")&&(v="2-digit"),v==="numeric"&&d==="always"&&(y==="milliseconds"||y==="microseconds"||y==="nanoseconds"))throw new RangeError("Can't display milliseconds, microseconds, or nanoseconds in numeric format")}return{style:v,display:d}}},44353:(Ge,w,u)=>{"use strict";u(85581)},44363:(Ge,w,u)=>{"use strict";Ge.exports=u(22799)},44383:(Ge,w,u)=>{var l=u(76001),g=u(38816),y=g(function(x,f){return x==null?{}:l(x,f)});Ge.exports=y},44411:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.computeHiddenBlocks=void 0;function u(l,g,y){let x=0,f,p={},h=[];return l.forEach((E,v)=>{const m=g.some(S=>S>=v-y&&S<=v+y);!m&&f==null?(f={index:x,startLine:v,endLine:v,lines:1},h.push(f),p[v]=f.index,x++):m?f=void 0:(f.endLine=v,f.lines++,p[v]=f.index)}),{lineBlocks:p,blocks:h}}w.computeHiddenBlocks=u},44436:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>$t});var l=u(7077);const g=window,{navigator:y,navigator:{userAgentData:x}}=g,f=x?.brands,p=/ (?:Headless)?Chrome\/\d+/;let h;function E(){return h===void 0&&(h=y.userAgent),h}const v=(0,l.bq)(f)&&f.length?(0,l.Of)(l.VD,f,[Z=>Z?.brand==="Chromium"])!==void 0:(0,l.Of)(l.MI,p,[E()]),m=v&&x===void 0,{prototype:S}=Document,{close:d,createElement:O,open:R}=S,C=(0,l.M4)(S,"body"),L=DOMException,{DATA_CLONE_ERR:j}=L,I=(0,l.M4)(L.prototype,"code"),{remove:U,setAttribute:$}=Element.prototype,ee=(0,l.M4)(HTMLElement.prototype,"style"),re=(0,l.M4)(HTMLIFrameElement.prototype,"contentWindow"),{prototype:Se}=Node,{appendChild:z}=Se,Q=(0,l.M4)(Se,"lastChild");if(l.T$){let Z=!0;const me=(0,l.Qd)("@@lockerDebugMode"),ke=100,Ee=5,_e=100,ge=_e/2,Me="display: inline-block; margin-bottom: 3px; margin-left: -3px; word-break: break-all; word-wrap: wrap;",lt={style:"margin-left:15px; margin-bottom: 3px;"},Ft={style:"display: inline-block; margin-left:12px; word-break: break-all; word-wrap: wrap;"},Et={style:"color: #9d288c; font-weight: bold"},Zt={style:"color: #b17ab0"},nn={style:"color: #16239f"},Pn={style:"color: #236d25"},rn={style:"color: #606367"},Vt={style:"color: #b82619"},Kn=function(Wn){if(Wn==null)return["span",rn,`${Wn}`];if(typeof Wn=="boolean")return["span",nn,Wn];if(typeof Wn=="number")return(0,l.pL)(Wn)?["span",nn,Wn]:["span",nn,`${Wn>=0?"":"-"}Infinity`];if(typeof Wn=="bigint")return["span",Pn,`${Wn}n`];if(typeof Wn=="string"){let er=Wn;const{length:Fn}=er;if(Fn>_e){const en=(0,l.Of)(l.A$,er,[0,ge]),gn=(0,l.Of)(l.A$,er,[Fn-ge-1,Fn]);er=en+l.Bq+gn}return["span",Vt,(0,l.iq)(er)]}return(0,l.bq)(Wn)?["span",{},`Array(${Wn.length})`]:(0,l.Gv)(Wn)?["span",{},`{${l.Bq}}`]:["span",Vt,(0,l.gc)(Wn)]},ur=function(Wn,er){const Fn=er?.isChildElement,en=[];let gn=0;Fn&&(en[gn++]=["span",Et,er.childKey],en[gn++]=["span",{},": "]);const kn=(0,l.Of)(l._0,Wn,[]);let Jn=(0,l.mX)(Wn);if(kn===l.B7)(0,l.Of)(l.xo,Jn,["description"])||(0,l.Of)(l.DJ,Jn,["description"]);else if(kn===l.wG){const{length:K}=Wn;Jn=(0,l.Of)(l.wo,Jn,[he=>{const Fe=typeof he=="string"?+he:-1;return Fe<0||Fe>=K||!(0,l.YU)(Fe)}])}const Nn=(0,l.go)(Wn),kr=(0,l.Of)(l.yT,Nn,[l.gc]),{length:bt}=kr;if((0,l.bq)(Wn)){en[gn++]=["span",{},`(${Wn.length}) [`];for(let K=0,he=(0,l.nf)(bt,ke);K<he;K+=1){const Fe=Nn[K],Nt=kr[K],ln=Wn[Fe];Nt!=="length"&&((0,l.rT)((0,l.er)(Nt))?(en[gn++]=["span",{},K?", ":""],en[gn++]=["span",rn,(0,l.gc)(Nt)],en[gn++]=["span",{},": "],en[gn++]=Kn(ln)):(en[gn++]=["span",{},K?", ":""],en[gn++]=Kn(ln)))}return bt>ke&&(en[gn++]=["span",null,["span",{},`, ${l.Bq}`]]),en[gn++]=["span",{},"]"],en}let ne,fe="{";switch(kn){case l.F2:case l.H1:case l.cO:case l.wG:case l.B7:{let K=nn;kn===l.F2?K=Pn:kn===l.B7&&(K=Vt),fe=`${(0,l.Of)(l.A$,kn,[8,-1])} {`,ne=["span",K,`${(0,l.gc)((0,l.Np)(Wn))}`];break}}en[gn++]=["span",{},fe],ne&&(en[gn++]=ne,bt&&(en[gn++]=["span",{},", "]));for(let K=0,he=(0,l.nf)(bt,Ee);K<he;K+=1){const Fe=Nn[K],Nt=kr[K],ln=Wn[Fe];en[gn++]=["span",{},K?", ":""],en[gn++]=["span",rn,Nt],en[gn++]=["span",{},": "],en[gn++]=Kn(ln)}return bt>Ee&&(en[gn++]=["span",null,["span",{},`, ${l.Bq}`]]),en[gn++]=["span",{},"}"],en},on=function(Wn){const er=(0,l.go)(Wn),Fn=(0,l.Of)(l.yT,er,[l.gc]),en=(0,l.bq)(Wn);if(en){const Jn=(0,l.Of)(l.PR,Fn,["length"]),Nn=(0,l.Of)(l.aE,er,[Jn,1])[0];(0,l.Of)(l.sr,er,[Nn]);const kr=(0,l.Of)(l.aE,Fn,[Jn,1])[0];(0,l.Of)(l.sr,Fn,[kr])}const gn=[];let kn=0;for(let Jn=0,{length:Nn}=Fn;Jn<Nn;Jn+=1){const kr=er[Jn],bt=Fn[Jn],ne=Wn[kr];if((0,l.Gv)(ne))gn[kn++]=["div",{},["object",{object:ne,config:{childKey:(0,l.gc)(bt),isChildElement:!0}}]];else{let fe=Et;en&&bt==="length"&&(fe=Zt),gn[kn++]=["div",lt,["span",fe,bt],["span",{},": "],Kn(ne)]}}return gn};let{devtoolsFormatters:tr}=g;(0,l.bq)(tr)||(tr=[],(0,l._E)(g,"devtoolsFormatters",{__proto__:null,configurable:!0,value:tr,writable:!0})),tr[tr.length]={header(Cn,Wn){if(Z&&(Z=!1,(0,l._E)(g,me,{__proto__:null,configurable:!0,value:!0,writable:!0})),!(0,l.U)(Cn))return null;const er=["div",{style:`${Me}${Wn!=null&&Wn.isChildElement?"":"font-style: italic;"}`}];return(0,l.Of)(l.sr,er,ur(Cn,Wn)),["div",{},er]},hasBody(){return!0},body(Cn){const Wn=["div",Ft];return(0,l.Of)(l.sr,Wn,on(Cn)),Wn}}}const ce=(0,l.Dj)(new l.LS);function se(Z){var me,ke,Ee,_e,ge;const Me=Array,lt=ArrayBuffer,Ft=Error,Et=Number,Zt=Object,nn=Proxy,Pn=Reflect,rn=RegExp,Vt=String,Kn=Symbol,ur=TypeError,on=WeakMap,tr=WeakSet,{for:Cn,toStringTag:Wn}=Kn,{apply:er,construct:Fn,defineProperty:en,deleteProperty:gn,get:kn,getOwnPropertyDescriptor:Jn,getPrototypeOf:Nn,has:kr,isExtensible:bt,ownKeys:ne,preventExtensions:fe,set:K,setPrototypeOf:he}=Pn,{assign:Fe,defineProperties:Nt,freeze:ln,getOwnPropertyDescriptor:pn,getOwnPropertyDescriptors:Yn,isFrozen:ht,isSealed:De,keys:we,prototype:Ke,seal:be}=Zt,{hasOwnProperty:pt,propertyIsEnumerable:We,toString:Je}=Ke,{hasOwn:ye}=Zt,{__defineGetter__:Qe,__defineSetter__:ze,__lookupGetter__:qe,__lookupSetter__:Pt}=Ke,zt=typeof ye=="function"?ye:(jr,vi)=>er(pt,jr,[vi]),un=(me=(ke=Z??(typeof globalThis<"u"?globalThis:void 0))!=null?ke:typeof self<"u"?self:void 0)!=null?me:(en(Ke,"globalThis",{__proto__:null,configurable:!0,get(){return gn(Ke,"globalThis"),this!=null?this:self}}),globalThis),hn=typeof Z!="object"||Z===null,xt=!hn,_t=xt?Cn("@@lockerDebugMode"):void 0,qt="$LWS",fn=xt?Cn("@@lockerNearMembraneSerializedValue"):void 0,On=xt?Cn("@@lockerNearMembrane"):void 0,Gn=Cn("@@lockerNearMembraneUndefinedValue"),Bn=20,Lr=`${function jr(){return jr.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),An=Lr&&xt,Un="Illegal property access.",cr=hn?/\w*$/:void 0;let mr;const hr=typeof BigInt=="function",{isArray:ar}=Me,{includes:Cr,indexOf:Yr,slice:Xr}=Me.prototype,{isView:ni}=lt,ki=hr?BigInt.prototype.valueOf:void 0,{valueOf:zr}=Boolean.prototype,{toString:Ur}=Ft.prototype,{bind:jt,toString:sn}=Function.prototype,{stringify:Rn}=JSON,{isInteger:H}=Et,{valueOf:Be}=Et.prototype,{revocable:wn}=nn,{prototype:bi}=rn,{exec:Oi,test:de,toString:Ve}=bi,vt=hn?(Ee=er(qe,bi,["flags"]))!=null?Ee:function(){const vi=er(Ve,this,[]);return er(Oi,cr,[vi])[0]}:void 0,Qt=er(qe,bi,["source"]),{replace:nt,slice:Tt,valueOf:Gt}=Vt.prototype,{toString:En,valueOf:Qn}=Kn.prototype,Or=(_e=un.BigInt64Array)==null?void 0:_e.prototype,Pr=(ge=un.BigUint64Array)==null?void 0:ge.prototype,{prototype:ai}=Float32Array,{prototype:xi}=Float64Array,{prototype:mi}=Int8Array,{prototype:ei}=Int16Array,{prototype:Qr}=Int32Array,{prototype:Ni}=Uint8Array,{prototype:ea}=Uint16Array,{prototype:Qi}=Uint32Array,ir=Ni.__proto__,xr=er(qe,ir,["length"]),{prototype:di}=on,{delete:ft,has:zn,set:Zn,[Wn]:wi}=di,{prototype:Ea}=tr,{add:wa,has:ji,delete:Dt,[Wn]:Xn}=Ea,Tr=xt&&typeof console=="object"&&console!==null?console:void 0,Nr=Tr?.info,ti=hn?eval:void 0;let _i=!1,Ii=!1;function ta(){return!1}const Ji=Lr?()=>{if(_i)return;_i=!0;const jr=(()=>{try{var Sa;Ft.prepareStackTrace=(V,Y)=>Y;const Xt=new Ft().stack;return gn(Ft,"prepareStackTrace"),ar(Xt)&&Xt.length>0?(Sa=Xt[0])==null?void 0:Sa.constructor:void 0}catch{}})();if(typeof jr!="function")return;const{getEvalOrigin:vi,getFunctionName:Mi,toString:ra}=jr.prototype,Yi=new rn(`${er(nt,qt,[/[\\^$.*+?()[\]{}|]/g,"\\$&"])}(?=\\.|$)`),ua=function(Xt,V){let Y="";try{Y=er(Ur,Xt,[])}catch{Y="<error>"}let D=!1;for(let P=0,{length:oe}=V;P<oe;P+=1){const Ie=V[P],Ue=er(Mi,Ie,[]);let Xe=!1;if(typeof Ue=="string"&&Ue!=="eval"&&er(de,Yi,[Ue])&&(Xe=!0),!Xe){const dt=er(vi,Ie,[]);typeof dt=="string"&&er(de,Yi,[dt])&&(Xe=!0)}if(Xe){D||(D=!0,Y+=` at LWS`);continue}else D=!1;try{Y+=` at ${er(ra,Ie,[])}`}catch{}}return Y};try{Ft.prepareStackTrace=function(Xt,V){return ua(Xt,V)}}catch{}try{const{stackTraceLimit:Sa}=Ft;(typeof Sa!="number"||Sa<Bn)&&(Ft.stackTraceLimit=Bn)}catch{}}:k;function k(){}const ve=hn?jr=>er(ki,jr,[]):k,Le=hn?jr=>er(zr,jr,[]):k,Ye=hn?jr=>er(Be,jr,[]):k,ot=hn?jr=>{if(jr!==bi){const vi=er(Qt,jr,[]);return Rn({__proto__:null,flags:er(vt,jr,[]),source:vi})}}:k,Lt=hn?jr=>er(Gt,jr,[]):k,an=hn?jr=>er(Qn,jr,[]):k,nr=hn?jr=>{switch(er(Je,jr,[])){case"[object Boolean]":return Le(jr);case"[object Number]":return Ye(jr);case"[object RegExp]":return ot(jr);case"[object String]":return Lt(jr);case"[object Object]":try{return an(jr)}catch{}if(hr)try{return ve(jr)}catch{}default:return}}:k,vr=hn?jr=>{try{return an(jr)}catch{}if(hr)try{return ve(jr)}catch{}try{return Le(jr)}catch{}try{return Ye(jr)}catch{}try{return ot(jr)}catch{}try{return Lt(jr)}catch{}}:k;function $r(jr){if(typeof jr=="string")return jr;try{if(typeof jr=="object"&&jr!==null){const vi=er(Je,jr,[]);return vi==="[object Symbol]"?er(En,jr,[]):vi}return typeof jr=="function"?er(sn,jr,[]):Vt(jr)}catch{}return"[Object Unknown]"}function Fr(jr){return he(jr,null),jr.delete=ft,jr.has=zn,jr.set=Zn,jr[Wn]=wi,he(jr,di),jr}function qr(jr){return he(jr,null),jr.add=wa,jr.delete=Dt,jr.has=ji,jr[Wn]=Xn,he(jr,Ea),jr}return function(vi,Mi,ra){hn&&(ra=void 0);const{distortionCallback:Yi,liveTargetCallback:ua,revokedProxyCallback:Sa}=Fe({__proto__:null},ra),Xt={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},V={__proto__:null,0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,n:void 0},Y=Fr(new on),D=Fr(new on);let P,oe,Ie,Ue,Xe,dt,kt,dn,Vn,qn,yr,ci,hi,Ti,Vi,Di,Pi,mt,tn,or,rt,St,_n,vn,Ln,_r,Br,Kr,Jr,ii,le,Ae,Oe,et,Ot,It,Mn,mn,At,Ut,jn,Jt,dr=0,wr=!1,Hr=hn,Ar=hn;const yi=hn?(pa,na,Ui)=>{Ui[na]=!1;const xe=Ia(pa);let Ce;try{dn(xe,na,(gt,Ht,Hn,fr,Zr,gi,wt)=>{Ce=za(Ht,Hn,fr,Zr,gi,wt)})}catch(gt){var st;const Ht=(st=Jt)!=null?st:gt;throw Jt=void 0,Ht}Ce?en(pa,na,Ce):gn(pa,na)}:k;let Rr=An?()=>{try{zt(un,_t)&&(Rr=()=>!0,Ji(),rt())}catch{Rr=ta}return!1}:ta;const si=hn?()=>{Jr=qr(new tr)}:k;function Si(pa,na){let Ui;try{Ui=_r(pa,(...st)=>{const gt={};for(let Ht=0,{length:Hn}=st;Ht<Hn;Ht+=7){const fr=st[Ht];gt[fr]=za(st[Ht+1],st[Ht+2],st[Ht+3],st[Ht+4],st[Ht+5],st[Ht+6])}Nt(na,gt)})}catch(st){var xe;const gt=(xe=Jt)!=null?xe:st;throw Jt=void 0,gt}let Ce;typeof Ui=="function"?(Ui(),Ce=Jt,Jt=void 0):Ce=null,he(na,Ce)}function $i(pa){const na=pa&1,Ui=na?Xt:V,xe=na?Ie:Ue;return function(st,gt,Ht){dr=pa;const Hn=na?Ht:gt,{length:fr}=Hn;if(fr!==0){var Zr;return this[(Zr=Ui[fr])!=null?Zr:Ui.n](st,gt,Ht)}const{foreignTargetPointer:gi}=this,wt=na?gt:Ht;let cn;try{cn=xe(gi,typeof wt=="object"&&wt!==null||typeof wt=="function"?Ia(wt):typeof wt>"u"?void 0:wt)}catch(Sr){var rr;const fi=(rr=Jt)!=null?rr:Sr;throw Jt=void 0,fi}let $n;return typeof cn=="function"?(cn(),$n=Jt,Jt=void 0):$n=cn,$n}}function Hi(pa){const na=pa&1,Ui=na?Xt:V,xe=na?Ie:Ue;return function(st,gt,Ht){dr=pa;const Hn=na?Ht:gt,{length:fr}=Hn;if(fr!==1){var Zr;return this[(Zr=Ui[fr])!=null?Zr:Ui.n](st,gt,Ht)}const{foreignTargetPointer:gi}=this,wt=na?gt:Ht;let cn;try{const{0:Sr}=Hn;cn=xe(gi,typeof wt=="object"&&wt!==null||typeof wt=="function"?Ia(wt):typeof wt>"u"?void 0:wt,typeof Sr=="object"&&Sr!==null||typeof Sr=="function"?Ia(Sr):typeof Sr>"u"?void 0:Sr)}catch(Sr){var rr;const fi=(rr=Jt)!=null?rr:Sr;throw Jt=void 0,fi}let $n;return typeof cn=="function"?(cn(),$n=Jt,Jt=void 0):$n=cn,$n}}function Oa(pa){const na=pa&1,Ui=na?Xt:V,xe=na?Ie:Ue;return function(st,gt,Ht){dr=pa;const Hn=na?Ht:gt,{length:fr}=Hn;if(fr!==2){var Zr;return this[(Zr=Ui[fr])!=null?Zr:Ui.n](st,gt,Ht)}const{foreignTargetPointer:gi}=this,wt=na?gt:Ht;let cn;try{const{0:Sr,1:fi}=Hn;cn=xe(gi,typeof wt=="object"&&wt!==null||typeof wt=="function"?Ia(wt):typeof wt>"u"?void 0:wt,typeof Sr=="object"&&Sr!==null||typeof Sr=="function"?Ia(Sr):typeof Sr>"u"?void 0:Sr,typeof fi=="object"&&fi!==null||typeof fi=="function"?Ia(fi):typeof fi>"u"?void 0:fi)}catch(Sr){var rr;const fi=(rr=Jt)!=null?rr:Sr;throw Jt=void 0,fi}let $n;return typeof cn=="function"?(cn(),$n=Jt,Jt=void 0):$n=cn,$n}}function Ma(pa){const na=pa&1,Ui=na?Xt:V,xe=na?Ie:Ue;return function(st,gt,Ht){dr=pa;const Hn=na?Ht:gt,{length:fr}=Hn;if(fr!==3){var Zr;return this[(Zr=Ui[fr])!=null?Zr:Ui.n](st,gt,Ht)}const{foreignTargetPointer:gi}=this,wt=na?gt:Ht;let cn;try{const{0:Sr,1:fi,2:Ci}=Hn;cn=xe(gi,typeof wt=="object"&&wt!==null||typeof wt=="function"?Ia(wt):typeof wt>"u"?void 0:wt,typeof Sr=="object"&&Sr!==null||typeof Sr=="function"?Ia(Sr):typeof Sr>"u"?void 0:Sr,typeof fi=="object"&&fi!==null||typeof fi=="function"?Ia(fi):typeof fi>"u"?void 0:fi,typeof Ci=="object"&&Ci!==null||typeof Ci=="function"?Ia(Ci):typeof Ci>"u"?void 0:Ci)}catch(Sr){var rr;const fi=(rr=Jt)!=null?rr:Sr;throw Jt=void 0,fi}let $n;return typeof cn=="function"?(cn(),$n=Jt,Jt=void 0):$n=cn,$n}}function Ua(pa){const na=pa&1,Ui=na?Xt:V,xe=na?Ie:Ue;return function(st,gt,Ht){dr=pa;const Hn=na?Ht:gt,{length:fr}=Hn;if(fr!==4){var Zr;return this[(Zr=Ui[fr])!=null?Zr:Ui.n](st,gt,Ht)}const{foreignTargetPointer:gi}=this,wt=na?gt:Ht;let cn;try{const{0:Sr,1:fi,2:Ci,3:la}=Hn;cn=xe(gi,typeof wt=="object"&&wt!==null||typeof wt=="function"?Ia(wt):typeof wt>"u"?void 0:wt,typeof Sr=="object"&&Sr!==null||typeof Sr=="function"?Ia(Sr):typeof Sr>"u"?void 0:Sr,typeof fi=="object"&&fi!==null||typeof fi=="function"?Ia(fi):typeof fi>"u"?void 0:fi,typeof Ci=="object"&&Ci!==null||typeof Ci=="function"?Ia(Ci):typeof Ci>"u"?void 0:Ci,typeof la=="object"&&la!==null||typeof la=="function"?Ia(la):typeof la>"u"?void 0:la)}catch(Sr){var rr;const fi=(rr=Jt)!=null?rr:Sr;throw Jt=void 0,fi}let $n;return typeof cn=="function"?(cn(),$n=Jt,Jt=void 0):$n=cn,$n}}function Xa(pa){const na=pa&1,Ui=na?Xt:V,xe=na?Ie:Ue;return function(st,gt,Ht){dr=pa;const Hn=na?Ht:gt,{length:fr}=Hn;if(fr!==5){var Zr;return this[(Zr=Ui[fr])!=null?Zr:Ui.n](st,gt,Ht)}const{foreignTargetPointer:gi}=this,wt=na?gt:Ht;let cn;try{const{0:Sr,1:fi,2:Ci,3:la,4:ya}=Hn;cn=xe(gi,typeof wt=="object"&&wt!==null||typeof wt=="function"?Ia(wt):typeof wt>"u"?void 0:wt,typeof Sr=="object"&&Sr!==null||typeof Sr=="function"?Ia(Sr):typeof Sr>"u"?void 0:Sr,typeof fi=="object"&&fi!==null||typeof fi=="function"?Ia(fi):typeof fi>"u"?void 0:fi,typeof Ci=="object"&&Ci!==null||typeof Ci=="function"?Ia(Ci):typeof Ci>"u"?void 0:Ci,typeof la=="object"&&la!==null||typeof la=="function"?Ia(la):typeof la>"u"?void 0:la,typeof ya=="object"&&ya!==null||typeof ya=="function"?Ia(ya):typeof ya>"u"?void 0:ya)}catch(Sr){var rr;const fi=(rr=Jt)!=null?rr:Sr;throw Jt=void 0,fi}let $n;return typeof cn=="function"?(cn(),$n=Jt,Jt=void 0):$n=cn,$n}}function Na(pa){const na=pa&1,Ui=na?Ie:Ue;return function(Ce,st,gt){dr=pa;const{foreignTargetPointer:Ht}=this,Hn=na?gt:st,{length:fr}=Hn,Zr=na?st:gt;let gi=2;const wt=new Me(fr+gi);wt[0]=Ht;let cn;try{wt[1]=typeof Zr=="object"&&Zr!==null||typeof Zr=="function"?Ia(Zr):typeof Zr>"u"?void 0:Zr;for(let Sr=0;Sr<fr;Sr+=1){const fi=Hn[Sr];wt[gi++]=typeof fi=="object"&&fi!==null||typeof fi=="function"?Ia(fi):typeof fi>"u"?void 0:fi}cn=er(Ui,void 0,wt)}catch(Sr){var rr;const fi=(rr=Jt)!=null?rr:Sr;throw Jt=void 0,fi}let $n;return typeof cn=="function"?(cn(),$n=Jt,Jt=void 0):$n=cn,$n}}function za(pa,na,Ui,xe,Ce,st){const gt={__proto__:null};return pa!==Gn&&(gt.configurable=pa),na!==Gn&&(gt.enumerable=na),Ui!==Gn&&(gt.writable=Ui),Ce!==Gn&&(typeof Ce=="function"?(Ce(),gt.get=Jt,Jt=void 0):gt.get=void 0),st!==Gn&&(typeof st=="function"?(st(),gt.set=Jt,Jt=void 0):gt.set=void 0),xe!==Gn&&(typeof xe=="function"?(xe(),gt.value=Jt,Jt=void 0):gt.value=xe),gt}function qa(pa){return()=>{Jt=pa}}const no=hn?()=>{Hr=!1,Ar=!1,si()}:k,wo=hn?pa=>{let na=Y.get(pa);if(na===void 0){const Ui=mt(Ia(pa));typeof Ui=="function"&&(Ui(),na=Jt,Jt=void 0,na&&Y.set(pa,na))}return na}:k,go=hn?pa=>pa===(Mn===void 0?Mn=Ia(Ke):Mn):ta,Ka=hn?pa=>pa===(Ae===void 0?Ae=Ia(ai):Ae)||pa===(Oe===void 0?Oe=Ia(xi):Oe)||pa===(et===void 0?et=Ia(mi):et)||pa===(Ot===void 0?Ot=Ia(ei):Ot)||pa===(It===void 0?It=Ia(Qr):It)||pa===(At===void 0?At=Ia(Ni):At)||pa===(Ut===void 0?Ut=Ia(ea):Ut)||pa===(jn===void 0?jn=Ia(Qi):jn)||pa===(mn===void 0?mn=Ia(ir):mn)||pa===(ii===void 0?ii=Or?Ia(Or):k:ii)||pa===(le===void 0?le=Pr?Ia(Pr):k:le):ta;function Ia(pa,na=oe){let Ui=D.get(pa);if(Ui)return Ui;let xe=0,Ce="",st=0;if(Sa&&Sa(pa))return Ui=na(qa(pa),64,xe,Ce,st),D.set(pa,Ui),Ui;let gt,Ht=16;if(Yi){if(gt=Yi(pa),gt!==pa&&typeof gt!=typeof pa)throw new ur(`Invalid distortion ${$r(pa)}.`)}else gt=pa;let Hn=!0;if(typeof gt=="function"){Hn=!1,xe=0,Ht=4;try{"prototype"in gt||(Ht|=8);const fr=Jn(pa,"length");if(fr){he(fr,null);const{value:gi}=fr;typeof gi=="number"&&(xe=gi)}const Zr=void 0}catch{Hn=!0}}else if(ni(gt)){Hn=!1,Ht=2;try{st=er(xr,gt,[]),Ht|=32}catch{Hn=!0}}if(Hn)try{ar(gt)&&(Ht=1)}catch{Ht=64}return Ui=na(qa(gt),Ht,xe,Ce,st),D.set(pa,Ui),Ui}const Us=hn?pa=>{if(Ii)return;Ii=!0;const na=ar(pa)&&pa.length>0,Ui=na?{__proto__:null}:void 0,xe=na?(wt,cn)=>er(Cr,pa,[cn])?{configurable:!1,enumerable:er(We,wt,[cn]),get:Ce(cn),set:void 0}:Jn(wt,cn):void 0,Ce=na?wt=>{let cn=Ui[wt];return cn===void 0&&(cn=er(jt,Ht,[]),Ui[wt]=cn),cn}:void 0,st=na?(wt,cn)=>er(Cr,pa,[cn])?Ce(cn):er(qe,wt,[cn]):void 0,gt=na?(wt,cn)=>er(Cr,pa,[cn])?void 0:er(Pt,wt,[cn]):void 0,Ht=na?()=>un:void 0,Hn=wt=>{const{length:cn}=wt,rr=cn===2;return new nn(wt,{apply($n,Sr,fi){if(fi.length>=cn){const Ci=rr?Sr:fi[0];if(typeof Ci=="object"&&Ci!==null||typeof Ci=="function"){const la=rr?fi[0]:fi[1],ya=wo(Ci);ya!=null&&ya[la]&&Ci[la]}}return er(wt,Sr,fi)}})},fr=(wt,cn)=>new nn(wt,{apply(rr,$n,Sr){if(Sr.length&&(typeof $n=="object"&&$n!==null||typeof $n=="function")){const{0:fi}=Sr,Ci=wo($n);if(Ci!=null&&Ci[fi]&&$n[fi],na&&$n===un)return cn($n,fi)}return er(wt,$n,Sr)}}),Zr=wt=>new nn(wt,{apply(cn,rr,$n){if($n.length>1){const{0:Sr,1:fi}=$n;if(typeof Sr=="object"&&Sr!==null||typeof Sr=="function"){const Ci=wo(Sr);if(Ci!=null&&Ci[fi]&&Sr[fi],na&&Sr===un)return xe(Sr,fi)}}return er(wt,rr,$n)}}),gi=wt=>new nn(wt,{apply(cn,rr,$n){const Sr=$n.length?$n[0]:void 0;if(!(typeof Sr=="object"&&Sr!==null||typeof Sr=="function"))return er(wt,rr,$n);const fi=wo(Sr),Ci=Sr===un&&na,la=Ci?{}:er(wt,rr,$n);if(!Ci&&fi===void 0)return la;const ya=ne(Ci?Sr:la);for(let _a=0,{length:Ga}=ya;_a<Ga;_a+=1){const Pa=ya[_a],ja=!!(fi!=null&&fi[Pa]);if(ja&&Sr[Pa],ja||Ci){const Oo=Ci?xe(Sr,Pa):Jn(Sr,Pa);Oo?la[Pa]=Oo:Ci||gn(la,Pa)}}return la}});try{Pn.defineProperty=Hn(en)}catch{}try{Pn.getOwnPropertyDescriptor=Zr(Jn)}catch{}try{Zt.getOwnPropertyDescriptor=Zr(pn)}catch{}try{Zt.getOwnPropertyDescriptors=gi(Yn)}catch{}try{Ke.__defineGetter__=Hn(Qe)}catch{}try{Ke.__defineSetter__=Hn(ze)}catch{}try{Ke.__lookupGetter__=fr(qe,st)}catch{}try{Ke.__lookupSetter__=fr(Pt,gt)}catch{}}:k;function Vs(pa,na,Ui){let xe,Ce;try{xe=Kr(pa,Ui,(Ht,Hn,fr,Zr,gi,wt,cn)=>{Ce={__proto__:null,foreign:!0},Hn!==Gn&&(Ce.configurable=Hn),fr!==Gn&&(Ce.enumerable=fr),Zr!==Gn&&(Ce.writable=Zr),wt!==Gn&&(typeof wt=="function"?(wt(),Ce.get=Jt,Jt=void 0):Ce.get=void 0),cn!==Gn&&(typeof cn=="function"?(cn(),Ce.set=Jt,Jt=void 0):Ce.set=void 0),gi!==Gn&&(typeof gi=="function"?(gi(),Ce.value=Jt,Jt=void 0):Ce.value=gi),Hn===!1&&en(na,Ui,Ce)})}catch(Ht){var st;const Hn=(st=Jt)!=null?st:Ht;throw Jt=void 0,Hn}if(Ce===void 0){let Ht;for(typeof xe=="function"?(xe(),Ht=Jt,Jt=void 0):Ht=null;Ht;){if(Ce=Jn(Ht,Ui),Ce){he(Ce,null);break}Ht=Nn(Ht)}if(Ce){var gt;const{get:Hn,set:fr,value:Zr}=Ce,gi=(gt=Hn??fr)!=null?gt:Zr;Ce.foreign=(typeof gi=="object"&&gi!==null||typeof gi=="function")&&D.get(gi)!==void 0}}return Ce}function Is(pa,na,Ui,xe,Ce){const st=Vs(pa,na,Ui);if(st){if("get"in st||"set"in st){const{set:Ht}=st;return Ht?(st.foreign?Ie(Ia(Ht),typeof Ce=="object"&&Ce!==null||typeof Ce=="function"?Ia(Ce):typeof Ce>"u"?void 0:Ce,typeof xe=="object"&&xe!==null||typeof xe=="function"?Ia(xe):typeof xe>"u"?void 0:xe):er(Ht,Ce,[xe]),!0):!1}if(st.writable===!1)return!1}if(!(typeof Ce=="object"&&Ce!==null||typeof Ce=="function"))return!1;const gt=Jn(Ce,Ui);return gt?(he(gt,null),"get"in gt||"set"in gt||gt.writable===!1?!1:(en(Ce,Ui,{__proto__:null,value:xe}),!0)):en(Ce,Ui,{__proto__:null,configurable:!0,enumerable:!0,value:xe,writable:!0})}function uo(pa){return An&&Rr(),(typeof pa=="object"&&pa!==null||typeof pa=="function")&&Ia(pa,P)(),pa}function Ds(pa,na,Ui,xe,Ce){const{proxy:st}=new eo(pa,na,Ui,xe,Ce);return D.set(st,pa),qa(st)}const Js=hn?(pa,na)=>{Y.set(pa,na),Ln(Ia(pa),Ia(na))}:k;class eo{constructor(na,Ui,xe,Ce,st){this.makeProxyLive=hn?function(){this.deleteProperty=eo.passthruDeletePropertyTrap,this.defineProperty=eo.passthruDefinePropertyTrap,this.preventExtensions=eo.passthruPreventExtensionsTrap,this.set=eo.passthruSetTrap,this.setPrototypeOf=eo.passthruSetPrototypeOfTrap}:k,this.makeProxyStatic=hn?function(){this.defineProperty=eo.staticDefinePropertyTrap,this.deleteProperty=eo.staticDeletePropertyTrap,this.get=eo.staticGetTrap,this.getOwnPropertyDescriptor=eo.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=eo.staticGetPrototypeOfTrap,this.has=eo.staticHasTrap,this.isExtensible=eo.staticIsExtensibleTrap,this.ownKeys=eo.staticOwnKeysTrap,this.preventExtensions=eo.staticPreventExtensionsTrap,this.set=eo.staticSetTrap,this.setPrototypeOf=eo.staticSetPrototypeOfTrap;const{foreignTargetPointer:cn,foreignTargetTraits:rr,shadowTarget:$n}=this;Hr&&Jr.delete(cn);const Sr=tn(cn);if(Sr&8){this.revoke();return}try{Si(cn,$n)}catch{if(_n(cn)){this.revoke();return}}if(rr&16&&!(Wn in $n)){let fi="Object";try{fi=or(cn)}catch{}this.staticToStringTag=fi}Sr&4?ln($n):(Sr&2?be($n):Sr&1&&fe($n),Lr&&Di("Mutations on the membrane of an object originating outside of the sandbox will not be reflected on the object itself:",cn))}:k;let gt;const Ht=Ui&1,Hn=Ui&4;Hn?gt=Ui&8?()=>{}:function(){}:Ht?gt=[]:gt={};const{proxy:fr,revoke:Zr}=wn(gt,this);if(this.foreignTargetPointer=na,this.foreignTargetTraits=Ui,this.foreignTargetTypedArrayLength=st,this.nonConfigurableDescriptorCallback=(cn,rr,$n,Sr,fi,Ci,la)=>{en(this.shadowTarget,cn,za(rr,$n,Sr,fi,Ci,la))},this.proxy=fr,this.revoke=Zr,this.serialize=k,this.shadowTarget=gt,this.staticToStringTag="Object",Hn){var gi,wt;this.apply=this[(gi=Xt[xe])!=null?gi:Xt.n],this.construct=this[(wt=V[xe])!=null?wt:V.n]}if(this.defineProperty=eo.defaultDefinePropertyTrap,this.deleteProperty=eo.defaultDeletePropertyTrap,this.isExtensible=eo.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=eo.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=eo.defaultGetPrototypeOfTrap,this.get=Ui&32?eo.hybridGetTrapForTypedArray:eo.defaultGetTrap,this.has=eo.defaultHasTrap,this.ownKeys=eo.defaultOwnKeysTrap,this.preventExtensions=eo.defaultPreventExtensionsTrap,this.setPrototypeOf=eo.defaultSetPrototypeOfTrap,this.set=eo.defaultSetTrap,Ui&64)this.revoke();else if(hn)(Ht||Ui&2)&&this.makeProxyLive();else if(Ui&16){let cn=Gn;this.serialize=()=>(cn===Gn&&(cn=vn(this.foreignTargetPointer)),cn)}}static passthruDefinePropertyTrap(na,Ui,xe){dr=4;const{foreignTargetPointer:Ce,nonConfigurableDescriptorCallback:st}=this,gt=xe;he(gt,null);const{get:Ht,set:Hn,value:fr}=gt,Zr="value"in gt?typeof fr=="object"&&fr!==null||typeof fr=="function"?Ia(fr):typeof fr>"u"?void 0:fr:Gn,gi="get"in gt?typeof Ht=="function"?Ia(Ht):Ht:Gn,wt="set"in gt?typeof Hn=="function"?Ia(Hn):Hn:Gn;let cn=!1;try{cn=Xe(Ce,Ui,"configurable"in gt?!!gt.configurable:Gn,"enumerable"in gt?!!gt.enumerable:Gn,"writable"in gt?!!gt.writable:Gn,Zr,gi,wt,st)}catch($n){var rr;const Sr=(rr=Jt)!=null?rr:$n;throw Jt=void 0,Sr}return Hr&&cn&&(typeof gi=="function"||typeof wt=="function")&&Jr.delete(Ce),cn}static passthruDeletePropertyTrap(na,Ui){dr=8;let xe=!1;try{xe=dt(this.foreignTargetPointer,Ui)}catch(st){var Ce;const gt=(Ce=Jt)!=null?Ce:st;throw Jt=void 0,gt}return xe}static passthruGetPrototypeOfTrap(na){dr=64;let Ui;try{Ui=Vn(this.foreignTargetPointer)}catch(st){var xe;const gt=(xe=Jt)!=null?xe:st;throw Jt=void 0,gt}let Ce;return typeof Ui=="function"?(Ui(),Ce=Jt,Jt=void 0):Ce=null,Ce}static passthruIsExtensibleTrap(na){dr=256;const{shadowTarget:Ui}=this;let xe=!1;if(bt(Ui)){const{foreignTargetPointer:st}=this;try{xe=yr(st)}catch(gt){var Ce;const Ht=(Ce=Jt)!=null?Ce:gt;throw Jt=void 0,Ht}xe||(Si(st,Ui),fe(Ui))}return xe}static passthruOwnKeysTrap(na){dr=512;let Ui;try{ci(this.foreignTargetPointer,(...Ce)=>{Ui=Ce})}catch(Ce){var xe;const st=(xe=Jt)!=null?xe:Ce;throw Jt=void 0,st}return Ui||[]}static passthruGetOwnPropertyDescriptorTrap(na,Ui){dr=32;const{foreignTargetPointer:xe,shadowTarget:Ce}=this;let st;try{dn(xe,Ui,(Ht,Hn,fr,Zr,gi,wt,cn)=>{st=za(Hn,fr,Zr,gi,wt,cn),st.configurable===!1&&en(Ce,Ui,st)})}catch(Ht){var gt;const Hn=(gt=Jt)!=null?gt:Ht;throw Jt=void 0,Hn}if(xt&&st&&(Ui===On||Ui===fn))throw new ur(Un);return st}static passthruPreventExtensionsTrap(na){dr=1024;const{foreignTargetPointer:Ui,shadowTarget:xe}=this;let Ce=!0;if(bt(xe)){let gt=0;try{gt=hi(Ui)}catch(Ht){var st;const Hn=(st=Jt)!=null?st:Ht;throw Jt=void 0,Hn}gt&1||(Si(Ui,xe),fe(xe)),Ce=!(gt&2)}return Ce}static passthruSetPrototypeOfTrap(na,Ui){dr=4096;const{foreignTargetPointer:xe}=this,Ce=Ui&&Ia(Ui);let st=!1;try{st=Vi(xe,Ce)}catch(Ht){var gt;const Hn=(gt=Jt)!=null?gt:Ht;throw Jt=void 0,Hn}return Hr&&st&&Jr.delete(xe),st}static passthruSetTrap(na,Ui,xe,Ce){dr=2048;const{foreignTargetPointer:st,proxy:gt,shadowTarget:Ht}=this;if(typeof xe>"u"&&(xe=void 0),typeof Ce>"u"&&(Ce=gt),xt&&(Ui===On||Ui===fn))throw new ur(Un);const Hn=gt===Ce;let fr=!1;try{fr=Hn?Ti(st,Ui,typeof xe=="object"&&xe!==null||typeof xe=="function"?Ia(xe):xe):Is(st,Ht,Ui,xe,Ce)}catch(gi){var Zr;const wt=(Zr=Jt)!=null?Zr:gi;throw Jt=void 0,wt}return fr}}eo.hybridGetTrap=hn?function(pa,na,Ui){const{foreignTargetPointer:xe,foreignTargetTraits:Ce,proxy:st,shadowTarget:gt}=this;let Ht,Hn;if(Hr&&Jr.has(xe)){let cn;try{cn=Pi(xe,na)}catch(rr){var fr;const $n=(fr=Jt)!=null?fr:rr;throw Jt=void 0,$n}typeof cn=="function"?(cn(),Hn=Jt,Jt=void 0):Hn=cn}else if(Ht=Vs(xe,gt,na),Ht){const{get:cn,value:rr}=Ht;if(cn)if(Ht.foreign){const $n=Ia(cn),Sr=st===Ui?xe:typeof Ui=="object"&&Ui!==null||typeof Ui=="function"?Ia(Ui):Ui;let fi;try{fi=Ie($n,Sr)}catch(Ci){var Zr;const la=(Zr=Jt)!=null?Zr:Ci;throw Jt=void 0,la}typeof fi=="function"?(fi(),Hn=Jt,Jt=void 0):Hn=fi}else Hn=er(cn,Ui,[]);else Hn=rr}else{const cn=st===Ui?xe:typeof Ui=="object"&&Ui!==null||typeof Ui=="function"?Ia(Ui):Ui;let rr;try{rr=kt(xe,Ce,na,cn)}catch($n){var gi;const Sr=(gi=Jt)!=null?gi:$n;throw Jt=void 0,Sr}typeof rr=="function"?(rr(),Hn=Jt,Jt=void 0):Hn=rr}if(Ht===void 0&&Hn===void 0&&na===Wn&&Ce&16){let cn;try{cn=or(xe)}catch(rr){var wt;const $n=(wt=Jt)!=null?wt:rr;throw Jt=void 0,$n}cn!=="Object"&&(Hn=cn)}return Hn}:k,eo.hybridGetTrapForTypedArray=hn?function(pa,na,Ui){const{foreignTargetPointer:xe,foreignTargetTypedArrayLength:Ce,proxy:st,shadowTarget:gt}=this;let Ht=Ar;if(!Ht&&typeof na=="string"){const gi=+na;Ht=gi>-1&&gi<Ce&&H(gi)}let Hn;if(Ht){let gi;try{gi=Pi(xe,na)}catch(wt){var fr;const cn=(fr=Jt)!=null?fr:wt;throw Jt=void 0,cn}typeof gi=="function"?(gi(),Hn=Jt,Jt=void 0):Hn=gi}else{const gi=Vs(xe,gt,na);if(gi){const{get:wt,value:cn}=gi;if(wt)if(gi.foreign){const rr=Ia(wt),$n=st===Ui?xe:typeof Ui=="object"&&Ui!==null||typeof Ui=="function"?Ia(Ui):Ui;let Sr;try{Sr=Ie(rr,$n)}catch(fi){var Zr;const Ci=(Zr=Jt)!=null?Zr:fi;throw Jt=void 0,Ci}typeof Sr=="function"?(Sr(),Hn=Jt,Jt=void 0):Hn=Sr}else Hn=er(wt,Ui,[]);else Hn=cn}}return Hn}:k,eo.hybridHasTrap=hn?function(pa,na){let Ui;try{Ui=Br(this.foreignTargetPointer,na)}catch(st){var xe;const gt=(xe=Jt)!=null?xe:st;throw Jt=void 0,gt}let Ce=!1;if(Ui===!0)Ce=!0;else{let st;for(typeof Ui=="function"?(Ui(),st=Jt,Jt=void 0):st=null;st;){if(zt(st,na)){Ce=!0;break}st=Nn(st)}}return Ce}:ta,eo.passthruGetTrap=xt?function(pa,na,Ui){wr&&(wr=dr===128),dr=16;const xe=na===On,Ce=na===fn;if(wr){if(xe)return!0;if(Ce)return this.serialize()}const{foreignTargetPointer:st,foreignTargetTraits:gt,proxy:Ht}=this;typeof Ui>"u"&&(Ui=Ht);const Hn=Ht===Ui?Gn:typeof Ui=="object"&&Ui!==null||typeof Ui=="function"?Ia(Ui):Ui;let fr;try{fr=kt(st,gt,na,Hn)}catch(wt){var Zr;const cn=(Zr=Jt)!=null?Zr:wt;throw Jt=void 0,cn}let gi;if(typeof fr=="function"?(fr(),gi=Jt,Jt=void 0):gi=fr,gi!==void 0&&(xe||Ce))throw new ur(Un);return gi}:k,eo.passthruHasTrap=xt?function(pa,na){dr=128;let Ui;try{Ui=qn(this.foreignTargetPointer,na)}catch(gt){var xe;const Ht=(xe=Jt)!=null?xe:gt;throw Jt=void 0,Ht}const Ce=na===On,st=na===fn;if(Ui){if(wr=!1,Ce||st)throw new ur(Un)}else wr=Ce||st;return Ui}:ta,eo.pendingDefinePropertyTrap=hn?function(pa,na,Ui){const{foreignTargetPointer:xe,foreignTargetTraits:Ce}=this;return St(xe,Ce)?this.makeProxyLive():(Hr&&(go(xe)?no():Ka(xe)&&(Ar=!1)),this.makeProxyStatic()),this.defineProperty(pa,na,Ui)}:ta,eo.pendingDeletePropertyTrap=hn?function(pa,na){return St(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.deleteProperty(pa,na)}:ta,eo.pendingPreventExtensionsTrap=hn?function(pa){return St(this.foreignTargetPointer,this.foreignTargetTraits)?this.makeProxyLive():this.makeProxyStatic(),this.preventExtensions(pa)}:ta,eo.pendingSetPrototypeOfTrap=hn?function(pa,na){const{foreignTargetPointer:Ui,foreignTargetTraits:xe}=this;return St(Ui,xe)?this.makeProxyLive():(Hr&&(go(Ui)?no():Ka(Ui)&&(Ar=!1)),this.makeProxyStatic()),this.setPrototypeOf(pa,na)}:ta,eo.pendingSetTrap=hn?function(pa,na,Ui,xe){const{foreignTargetPointer:Ce,foreignTargetTraits:st}=this;return St(Ce,st)?this.makeProxyLive():(Hr&&(go(Ce)?no():Ka(Ce)&&(Ar=!1)),this.makeProxyStatic()),this.set(pa,na,Ui,xe)}:ta,eo.staticDefinePropertyTrap=hn?en:ta,eo.staticDeletePropertyTrap=hn?gn:ta,eo.staticGetOwnPropertyDescriptorTrap=hn?Jn:k,eo.staticGetPrototypeOfTrap=hn?Nn:()=>null,eo.staticGetTrap=hn?function(pa,na,Ui){const{foreignTargetTraits:xe,staticToStringTag:Ce}=this,st=kn(pa,na,Ui);return st===void 0&&na===Wn&&xe&16&&Ce!=="Object"&&!(na in pa)?Ce:st}:k,eo.staticHasTrap=hn?kr:ta,eo.staticIsExtensibleTrap=hn?bt:ta,eo.staticOwnKeysTrap=hn?ne:()=>[],eo.staticPreventExtensionsTrap=hn?fe:ta,eo.staticSetPrototypeOfTrap=hn?he:ta,eo.staticSetTrap=hn?K:ta,eo.defaultDefinePropertyTrap=hn?eo.pendingDefinePropertyTrap:eo.passthruDefinePropertyTrap,eo.defaultDeletePropertyTrap=hn?eo.pendingDeletePropertyTrap:eo.passthruDeletePropertyTrap,eo.defaultGetOwnPropertyDescriptorTrap=eo.passthruGetOwnPropertyDescriptorTrap,eo.defaultGetPrototypeOfTrap=eo.passthruGetPrototypeOfTrap,eo.defaultGetTrap=hn?eo.hybridGetTrap:eo.passthruGetTrap,eo.defaultHasTrap=hn?eo.hybridHasTrap:eo.passthruHasTrap,eo.defaultIsExtensibleTrap=eo.passthruIsExtensibleTrap,eo.defaultOwnKeysTrap=eo.passthruOwnKeysTrap,eo.defaultPreventExtensionsTrap=hn?eo.pendingPreventExtensionsTrap:eo.passthruPreventExtensionsTrap,eo.defaultSetTrap=hn?eo.pendingSetTrap:eo.passthruSetTrap,eo.defaultSetPrototypeOfTrap=hn?eo.pendingSetPrototypeOfTrap:eo.passthruSetPrototypeOfTrap,hn&&si(),Mi(qa(un),xt?()=>{const pa=Jt;return Jt=void 0,pa}:k,pa=>typeof pa=="object"&&pa!==null||typeof pa=="function"?Ia(pa):typeof pa>"u"?void 0:pa,(pa,na)=>{pa();const Ui=Jt;Jt=void 0;const xe=Ui?.[na];return qa(typeof xe>"u"?void 0:xe)},hn?pa=>{let na;try{na=ti(pa)}catch(Ui){throw uo(Ui)}return typeof na=="object"&&na!==null||typeof na=="function"?Ia(na):na}:k,(pa,na)=>{pa();const Ui=Jt;Jt=void 0,(typeof Ui=="object"&&Ui!==null||typeof Ui=="function")&&D.set(Ui,na)},An?(pa,na,Ui,xe,Ce)=>{const st=Ds(pa,na,Ui,xe,Ce);return()=>(Rr(),st())}:Ds,Ds,(pa,na,...Ui)=>{pa();const xe=Jt;Jt=void 0;let Ce;typeof na=="function"&&(na(),Ce=Jt,Jt=void 0);for(let gt=0,{length:Ht}=Ui;gt<Ht;gt+=1){const Hn=Ui[gt];typeof Hn=="function"&&(Hn(),Ui[gt]=Jt,Jt=void 0)}let st;try{st=er(xe,Ce,Ui)}catch(gt){throw uo(gt)}return typeof st=="object"&&st!==null||typeof st=="function"?Ia(st):typeof st>"u"?void 0:st},(pa,na,...Ui)=>{pa();const xe=Jt;Jt=void 0;let Ce;typeof na=="function"&&(na(),Ce=Jt,Jt=void 0);for(let gt=0,{length:Ht}=Ui;gt<Ht;gt+=1){const Hn=Ui[gt];typeof Hn=="function"&&(Hn(),Ui[gt]=Jt,Jt=void 0)}let st;try{st=Fn(xe,Ui,Ce)}catch(gt){throw uo(gt)}return typeof st=="object"&&st!==null||typeof st=="function"?Ia(st):typeof st>"u"?void 0:st},(pa,na,Ui,xe,Ce,st,gt,Ht,Hn)=>{pa();const fr=Jt;Jt=void 0;const Zr=za(Ui,xe,Ce,st,gt,Ht);let gi=!1;try{gi=en(fr,na,Zr)}catch(wt){throw uo(wt)}if(gi&&Ui===!1){let wt;try{wt=Jn(fr,na)}catch(cn){throw uo(cn)}if(wt&&(he(wt,null),wt.configurable===!1)){const{get:cn,set:rr,value:$n}=wt;Hn(na,!1,"enumerable"in wt?wt.enumerable:Gn,"writable"in wt?wt.writable:Gn,"value"in wt?typeof $n=="object"&&$n!==null||typeof $n=="function"?Ia($n):$n:Gn,"get"in wt?typeof cn=="function"?Ia(cn):cn:Gn,"set"in wt?typeof rr=="function"?Ia(rr):rr:Gn)}}return gi},(pa,na)=>{pa();const Ui=Jt;Jt=void 0;try{return gn(Ui,na)}catch(xe){throw uo(xe)}},(pa,na,Ui,xe)=>{pa();const Ce=Jt;Jt=void 0;let st;typeof xe=="function"?(xe(),st=Jt,Jt=void 0):st=xe===Gn?Ce:xe;let gt;try{gt=kn(Ce,Ui,st)}catch(Ht){throw uo(Ht)}if(typeof gt=="object"&>!==null||typeof gt=="function")return Ia(gt);if(gt===void 0&&Ui===Wn&&na&16)try{if(!(Ui in Ce)){const Ht=er(Je,Ce,[]);Ht!=="[object Object]"&&(gt=er(Tt,Ht,[8,-1]))}}catch(Ht){throw uo(Ht)}return typeof gt>"u"?void 0:gt},(pa,na,Ui)=>{pa();const xe=Jt;Jt=void 0;let Ce;try{Ce=Jn(xe,na)}catch(st){throw uo(st)}if(Ce){he(Ce,null);const{get:st,set:gt,value:Ht}=Ce;Ui(na,"configurable"in Ce?Ce.configurable:Gn,"enumerable"in Ce?Ce.enumerable:Gn,"writable"in Ce?Ce.writable:Gn,"value"in Ce?typeof Ht=="object"&&Ht!==null||typeof Ht=="function"?Ia(Ht):typeof Ht>"u"?void 0:Ht:Gn,"get"in Ce?typeof st=="function"?Ia(st):st:Gn,"set"in Ce?typeof gt=="function"?Ia(gt):gt:Gn)}},pa=>{pa();const na=Jt;Jt=void 0;let Ui;try{Ui=Nn(na)}catch(xe){throw uo(xe)}return typeof Ui>"u"?null:Ui&&Ia(Ui)},(pa,na)=>{pa();const Ui=Jt;Jt=void 0;try{return na in Ui}catch(xe){throw uo(xe)}},pa=>{pa();const na=Jt;Jt=void 0;try{return bt(na)}catch(Ui){throw uo(Ui)}},(pa,na)=>{pa();const Ui=Jt;Jt=void 0;let xe;try{xe=ne(Ui)}catch(Ce){throw uo(Ce)}er(na,void 0,xe)},pa=>{pa();const na=Jt;Jt=void 0;let Ui=2;try{fe(na)?Ui=4:bt(na)&&(Ui|=1)}catch(xe){throw uo(xe)}return Ui},(pa,na,Ui)=>{pa();const xe=Jt;Jt=void 0;let Ce;typeof Ui=="function"?(Ui(),Ce=Jt,Jt=void 0):Ce=Ui;try{return K(xe,na,Ce,xe)}catch(st){throw uo(st)}},(pa,na=null)=>{pa();const Ui=Jt;Jt=void 0;let xe;typeof na=="function"?(er(na,void 0,[]),xe=Jt,Jt=void 0):xe=null;try{return he(Ui,xe)}catch(Ce){throw uo(Ce)}},An?(...pa)=>{if(Rr()){for(let na=0,{length:Ui}=pa;na<Ui;na+=1){const xe=pa[na];typeof xe=="function"&&(xe(),pa[na]=Jt,Jt=void 0)}try{er(Nr,Tr,pa)}catch{}}}:k,hn?(pa,...na)=>{pa();const Ui=Jt;Jt=void 0;for(let xe=0,{length:Ce}=na;xe<Ce;xe+=7)en(Ui,na[xe],za(na[xe+1],na[xe+2],na[xe+3],na[xe+4],na[xe+5],na[xe+6]))}:k,xt?pa=>{pa();const na=Jt;Jt=void 0;const Ui=ce.get(na);return Ui&&Ia(Ui)}:k,xt?(pa,na)=>{pa();const Ui=Jt;Jt=void 0;let xe;try{xe=Ui[na]}catch(Ce){throw uo(Ce)}return typeof xe=="object"&&xe!==null||typeof xe=="function"?Ia(xe):xe}:k,xt?pa=>{pa();const na=Jt;Jt=void 0;try{if(!bt(na))return ht(na)||De(na)?0:1}catch{try{ar(na)}catch{return 8}}return 0}:()=>0,pa=>{pa();const na=Jt;Jt=void 0;try{const Ui=er(Je,na,[]);return Ui==="[object Object]"?"Object":er(Tt,Ui,[8,-1])}catch(Ui){throw uo(Ui)}},Ji,hn?(pa,...na)=>{const Ui=er(Yr,na,[Gn]);let xe,Ce;Ui===-1?xe=na:(xe=er(Xr,na,[0,Ui]),Ce=er(Xr,na,[Ui+1])),pa();const st=Jt;Jt=void 0;let gt=wo(st);gt===void 0&&(gt={__proto__:null},Js(st,gt));for(let Ht=0,{length:Hn}=xe;Ht<Hn;Ht+=1){const fr=xe[Ht];gt[fr]=!0,en(st,fr,{__proto__:null,configurable:!0,get(){return yi(st,fr,gt),st[fr]},set(Zr){yi(st,fr,gt),K(st,fr,Zr)}})}Us(Ce)}:k,xt&&ua?(pa,na)=>{pa();const Ui=Jt;if(Jt=void 0,Ui!==Ke&&Ui!==bi)try{return ua(Ui,na)}catch{}return!1}:ta,xt?pa=>{pa();const na=Jt;Jt=void 0;try{return ar(na),!1}catch{}return!0}:ta,hn?pa=>{pa();const na=Jt;Jt=void 0;try{return Wn in na?vr(na):nr(na)}catch{}}:k,xt?(pa,na)=>{pa();const Ui=Jt;Jt=void 0,na();const xe=Jt;Jt=void 0,ce.set(Ui,xe)}:k,hn?pa=>{pa();const na=Jt;Jt=void 0,Hr&&Jr.add(Ia(na))}:k,(pa,na)=>{pa();const Ui=Jt;Jt=void 0;let xe;try{xe=Yn(Ui)}catch(Hn){throw uo(Hn)}const Ce=ne(xe),{length:st}=Ce,gt=new Me(st*7);for(let Hn=0,fr=0;Hn<st;Hn+=1,fr+=7){const Zr=Ce[Hn],gi=xe[Zr];he(gi,null);const{get:wt,set:cn,value:rr}=gi;gt[fr]=Zr,gt[fr+1]="configurable"in gi?gi.configurable:Gn,gt[fr+2]="enumerable"in gi?gi.enumerable:Gn,gt[fr+3]="writable"in gi?gi.writable:Gn,gt[fr+4]="value"in gi?typeof rr=="object"&&rr!==null||typeof rr=="function"?Ia(rr):rr:Gn,gt[fr+5]="get"in gi?typeof wt=="function"?Ia(wt):wt:Gn,gt[fr+6]="set"in gi?typeof cn=="function"?Ia(cn):cn:Gn}er(na,void 0,gt);let Ht;try{Ht=Nn(Ui)}catch(Hn){throw uo(Hn)}return typeof Ht>"u"?null:Ht&&Ia(Ht)},(pa,na)=>{pa();const Ui=Jt;Jt=void 0;let xe;try{if(zt(Ui,na))return!0;xe=Nn(Ui)}catch(Ce){throw uo(Ce)}return typeof xe>"u"?null:xe&&Ia(xe)},(pa,na,Ui)=>{pa();const xe=Jt;Jt=void 0;let Ce;try{Ce=Jn(xe,na)}catch(gt){throw uo(gt)}if(Ce){he(Ce,null);const{get:gt,set:Ht,value:Hn}=Ce;Ui(na,"configurable"in Ce?Ce.configurable:Gn,"enumerable"in Ce?Ce.enumerable:Gn,"writable"in Ce?Ce.writable:Gn,"value"in Ce?typeof Hn=="object"&&Hn!==null||typeof Hn=="function"?Ia(Hn):typeof Hn>"u"?void 0:Hn:Gn,"get"in Ce?typeof gt=="function"?Ia(gt):gt:Gn,"set"in Ce?typeof Ht=="function"?Ia(Ht):Ht:Gn);return}let st;try{st=Nn(xe)}catch(gt){throw uo(gt)}return typeof st>"u"?null:st&&Ia(st)});let uu=!1;return(...pa)=>{if(uu)return;uu=!0,{6:P,7:oe,8:Ie,9:Ue,10:Xe,11:dt,12:kt,13:dn,14:Vn,15:qn,16:yr,17:ci,18:hi,19:Ti,20:Vi,21:Di,23:mt,24:Pi,25:tn,26:or,27:rt,29:St,30:_n,31:vn,32:Ln,34:_r,35:Br,36:Kr}=pa;const na=$i(1),Ui=Hi(1),xe=Oa(1),Ce=Ma(1),st=Ua(1),gt=Xa(1),Ht=Na(1),Hn=$i(2),fr=Hi(2),Zr=Oa(2),gi=Ma(2),wt=Ua(2),cn=Xa(2),rr=Na(2);mr===void 0&&(mr=we({applyTrapForZeroOrMoreArgs:na,applyTrapForOneOrMoreArgs:Ui,applyTrapForTwoOrMoreArgs:xe,applyTrapForThreeOrMoreArgs:Ce,applyTrapForFourOrMoreArgs:st,applyTrapForFiveOrMoreArgs:gt,applyTrapForAnyNumberOfArgs:Ht,constructTrapForZeroOrMoreArgs:Hn,constructTrapForOneOrMoreArgs:fr,constructTrapForTwoOrMoreArgs:Zr,constructTrapForThreeOrMoreArgs:gi,constructTrapForFourOrMoreArgs:wt,constructTrapForFiveOrMoreArgs:cn,constructTrapForAnyNumberOfArgs:rr})),Xt[0]=mr[0],Xt[1]=mr[1],Xt[2]=mr[2],Xt[3]=mr[3],Xt[4]=mr[4],Xt[5]=mr[5],Xt.n=mr[6],V[0]=mr[7],V[1]=mr[8],V[2]=mr[9],V[3]=mr[10],V[4]=mr[11],V[5]=mr[12],V.n=mr[13];const{prototype:$n}=eo;$n[Xt[0]]=na,$n[Xt[1]]=Ui,$n[Xt[2]]=xe,$n[Xt[3]]=Ce,$n[Xt[4]]=st,$n[Xt[5]]=gt,$n[Xt.n]=Ht,$n[V[0]]=Hn,$n[V[1]]=fr,$n[V[2]]=Zr,$n[V[3]]=gi,$n[V[4]]=wt,$n[V[5]]=cn,$n[V.n]=rr,he($n,null)}}}const q=` 'use strict'; (${se})`;function te(Z){if(typeof Z!="object"||Z===null)throw new l.L_("Missing globalObject.");return se(Z)}function A(Z){if(typeof Z!="function")throw new l.L_("Missing evaluator function.");return Z(q)()}const T=(0,l.Qd)("@@lockerNearMembraneUndefinedValue");class B{constructor(me){if(me===void 0)throw new l.X("Missing required VirtualEnvironment options.");const{blueConnector:ke,redConnector:Ee,distortionCallback:_e,instrumentation:ge,liveTargetCallback:Me,revokedProxyCallback:lt,signSourceCallback:Ft}=(0,l.tH)({__proto__:null},me);let Et;const Zt=ke("blue",(...jt)=>{Et=jt},{distortionCallback:_e,instrumentation:ge,liveTargetCallback:Me,revokedProxyCallback:lt}),{0:nn,1:Pn,2:rn,3:Vt,5:Kn,6:ur,7:on,8:tr,9:Cn,10:Wn,11:er,12:Fn,13:en,14:gn,15:kn,16:Jn,17:Nn,18:kr,19:bt,20:ne,23:fe,24:K,25:he,26:Fe,27:Nt,29:ln,32:pn,34:Yn,35:ht,36:De}=Et;let we;const Ke=Ee("red",(...jt)=>{we=jt}),{0:be,3:pt,4:We,5:Je,6:ye,7:Qe,8:ze,9:qe,10:Pt,11:zt,12:un,13:hn,14:xt,15:_t,16:qt,17:fn,18:On,19:Gn,20:Bn,21:Lr,22:An,23:Un,25:cr,26:mr,27:hr,28:ar,30:Cr,31:Yr,32:Xr,33:ni,34:ki,35:zr,36:Ur}=we;Zt(l.lQ,l.lQ,l.lQ,l.lQ,l.lQ,l.lQ,ye,Qe,ze,qe,Pt,zt,un,hn,xt,_t,qt,fn,On,Gn,Bn,Lr,l.lQ,Un,l.lQ,cr,mr,hr,l.lQ,l.lQ,Cr,Yr,Xr,ni,ki,zr,Ur),Ke(l.lQ,l.lQ,l.lQ,l.lQ,l.lQ,l.lQ,ur,on,tr,Cn,Wn,er,Fn,en,gn,kn,Jn,Nn,kr,bt,ne,l.lQ,l.lQ,fe,K,he,Fe,Nt,l.lQ,ln,l.lQ,l.lQ,pn,l.lQ,Yn,ht,De),this.blueGlobalThisPointer=nn,this.blueGetSelectedTarget=Pn,this.blueGetTransferableValue=rn,this.blueCallableGetPropertyValuePointer=Vt,this.blueCallableLinkPointers=Kn,this.redGlobalThisPointer=()=>be(),this.redCallableGetPropertyValuePointer=(jt,sn)=>pt(jt,sn),this.redCallableEvaluate=Ft?jt=>We(Ft(jt)):jt=>We(jt),this.redCallableLinkPointers=(jt,sn)=>Je(jt,sn),this.redCallableSetPrototypeOf=(jt,sn)=>Bn(jt,sn),this.redCallableDefineProperties=(jt,...sn)=>{const{length:Rn}=sn,H=new l.Ml(Rn+1);H[0]=jt;for(let Be=0;Be<Rn;Be+=1)H[Be+1]=sn[Be];(0,l.Of)(An,void 0,H)},this.redCallableInstallLazyPropertyDescriptors=(jt,...sn)=>{const{length:Rn}=sn,H=new l.Ml(Rn+1);H[0]=jt;for(let Be=0;Be<Rn;Be+=1)H[Be+1]=sn[Be];(0,l.Of)(ar,void 0,H)},this.redCallableTrackAsFastTarget=jt=>ni(jt)}evaluate(me){try{const Ee=this.redCallableEvaluate(me);return typeof Ee=="function"?(Ee(),this.blueGetSelectedTarget()):Ee}catch(Ee){var ke;throw(ke=this.blueGetSelectedTarget())!=null?ke:Ee}}lazyRemapProperties(me,ke,Ee){if(typeof me=="object"&&me!==null||typeof me=="function"){const _e=[this.blueGetTransferableValue(me)];(0,l.Of)(l.sr,_e,ke),Ee!=null&&Ee.length&&(_e[_e.length]=T,(0,l.Of)(l.sr,_e,Ee)),(0,l.Of)(this.redCallableInstallLazyPropertyDescriptors,void 0,_e)}}link(...me){let ke=this.blueGlobalThisPointer,Ee=this.redGlobalThisPointer;for(let _e=0,{length:ge}=me;_e<ge;_e+=1){const Me=me[_e];ke=this.blueCallableGetPropertyValuePointer(ke,Me),Ee=this.redCallableGetPropertyValuePointer(Ee,Me),this.redCallableLinkPointers(Ee,ke),this.blueCallableLinkPointers(ke,Ee)}}remapProperties(me,ke){if(typeof me=="object"&&me!==null||typeof me=="function"){const Ee=this.blueGetTransferableValue(me),_e=(0,l.go)(ke),{length:ge}=_e,Me=new l.Ml(1+ge*7);Me[0]=Ee;for(let lt=0,Ft=1;lt<ge;lt+=1,Ft+=7){const Et=_e[lt],Zt=ke[Et],nn=(0,l.tH)({__proto__:null},Zt);Me[Ft]=Et,Me[Ft+1]="configurable"in nn?!!nn.configurable:T,Me[Ft+2]="enumerable"in nn?!!nn.enumerable:T,Me[Ft+3]="writable"in nn?!!nn.writable:T,Me[Ft+4]="value"in nn?this.blueGetTransferableValue(nn.value):T,Me[Ft+5]="get"in nn?this.blueGetTransferableValue(nn.get):T,Me[Ft+6]="set"in nn?this.blueGetTransferableValue(nn.set):T}(0,l.Of)(this.redCallableDefineProperties,this,Me)}}remapProto(me,ke){if(typeof me=="object"&&me!==null||typeof me=="function"){const Ee=this.blueGetTransferableValue(me),_e=ke&&this.blueGetTransferableValue(ke);this.redCallableSetPrototypeOf(Ee,_e)}}trackAsFastTarget(me){(typeof me=="object"&&me!==null||typeof me=="function")&&this.redCallableTrackAsFastTarget(this.blueGetTransferableValue(me))}}function X(Z){const me=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","BigInt","Boolean","FinalizationRegistry","Map","Number","RegExp","Set","String","Symbol","WeakMap","WeakSet","WeakRef","JSON","Math","Reflect","escape","unescape"],ke={intrinsics:["ArrayBuffer","Atomics","BigInt64Array","BigUint64Array","DataView","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","SharedArrayBuffer","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],browser:["Blob","crypto","Crypto","fetch","File","FileReader","FileReaderSync","Request","Response","SubtleCrypto","TextDecoder","TextEncoder","URL","XMLHttpRequest"]};return Z&&me.push(...ke.intrinsics,...ke.browser),me}const ue=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval","globalThis"];function ie(Z){const me=X(Z);return(0,l.UO)([...me,...ue])}function Te(Z){const me=(0,l.go)(Z);return(0,l.wC)(Z,"webkit")&&!(0,l.Of)(l.xo,me,["webkit"])&&(me[me.length]="webkit"),me}function je(Z,me,ke){const Ee=Te(me),_e=ie(ke);for(let ge=0,{length:Me}=Ee;ge<Me;ge+=1){const lt=Ee[ge];if(!_e.includes(lt)){const Ft=me[lt];Ft&&(Z[lt]=(0,l.tH)({__proto__:null},Ft))}}return Z}function yt(Z,me){const ke=[];let Ee=0;const _e=Te(Z),ge=ie(me);for(let Me=0,{length:lt}=_e;Me<lt;Me+=1){const Ft=_e[Me];ge.includes(Ft)||(ke[Ee++]=Ft)}return ke}function tt(Z,me){for(let ke=0,{length:Ee}=ue;ke<Ee;ke+=1){const _e=ue[ke],ge=me[_e];ge&&(ge.prototype?Z.link(_e,"prototype"):Z.link(_e))}}const Ze=(0,l.Dj)(new WeakMap),Ne=v?["window"]:void 0;function it(Z){const{window:me}=Z;let ke,Ee;try{({document:Ee}=Z),ke=Ze.get(Ee)}catch{return}if(ke)return ke;const _e=(0,l.Td)(me),ge=(0,l.Td)(_e),Me=(0,l.Td)(ge);return ke={document:Ee,DocumentProto:(0,l.Td)(Ee),window:me,WindowProto:(0,l.Td)(me),WindowPropertiesProto:(0,l.Td)(_e),EventTargetProto:Me,EventTargetProtoOwnKeys:Me?(0,l.go)(Me):[]},Ze.set(Ee,ke),ke}function Rt(Z){const me=new l.pE(["document","location","top","window"]),ke=[];let Ee=0;for(let _e=0,{length:ge}=Z;_e<ge;_e+=1){const Me=Z[_e];(0,l.Of)(l.ZU,me,[Me])||(ke[Ee++]=Me)}return ke}function Dn(Z){return(0,l.qS)(Z,"document"),(0,l.qS)(Z,"location"),(0,l.qS)(Z,"top"),(0,l.qS)(Z,"window"),(0,l.qS)(Z,"chrome"),Z}it(g);const Mt="allow-same-origin allow-scripts",Wt=(0,l.PO)(new l.N4),Tn=(0,l.Dj)(new l.LS);function bn(Z){var me;const ke=(0,l.Of)(O,Z,["iframe"]),Ee=(me=(0,l.Of)(C,Z,[]))!=null?me:(0,l.Of)(Q,Z,[]),_e=(0,l.Of)(ee,ke,[]);return _e.display="none",(0,l.Of)($,ke,["sandbox",Mt]),(0,l.Of)(z,Ee,[ke]),ke}function $t(Z,me){if(typeof Z!="object"||Z===null)throw new l.L_("Missing global object virtualization target.");const ke=it(Z);if(typeof ke!="object"||ke===null)throw new l.L_("Invalid virtualization target.");const{distortionCallback:Ee,defaultPolicy:_e,endowments:ge,globalObjectShape:Me,instrumentation:lt,keepAlive:Ft=!0,liveTargetCallback:Et,maxPerfMode:Zt=!1,signSourceCallback:nn}=(0,l.tH)({__proto__:null},me),Pn=bn(ke.document),rn=(0,l.Of)(re,Pn,[]),Vt=typeof Me!="object"||Me===null,Kn=Rt(yt(rn,Zt));let ur=Tn.get(ke.document);ur===void 0&&(ur=te(Z),Tn.set(ke.document,ur)),typeof rn.trustedTypes<"u"&&(0,l.Gv)(_e)&&rn.trustedTypes.createPolicy("default",_e);const{eval:on}=rn,tr=new B({blueConnector:ur,redConnector:A(nn?Cn=>on(nn(Cn)):on),distortionCallback:Ee,instrumentation:lt,liveTargetCallback:Et,revokedProxyCallback:Ft?Ct:void 0,signSourceCallback:nn});if(tt(tr,Z),typeof globalThis>"u"?tr.link("window","document"):tr.link("document"),tr.link("__proto__","__proto__","__proto__"),tr.remapProto(ke.document,ke.DocumentProto),tr.lazyRemapProperties(ke.window,Vt?Kn:Rt(yt(Me,Zt)),Ft?void 0:Ne),ge){const Cn={};je(Cn,ge,Zt),Dn(Cn),tr.remapProperties(ke.window,Cn)}if(tr.lazyRemapProperties(ke.EventTargetProto,ke.EventTargetProtoOwnKeys),Ft){const{document:Cn}=rn;Wt.add(Cn),Wt.add(rn),(0,l.Of)(R,Cn,[]),(0,l.Of)(d,Cn,[])}else m&&on("window"),(0,l.Of)(U,Pn,[]);return tr}function Ct(Z){return Wt.has(Z)}},44809:function(Ge,w){var u,l,g;/* @license Papa Parse v5.5.3 https://github.com/mholt/PapaParse License: MIT */((y,x)=>{l=[],u=x,g=typeof u=="function"?u.apply(w,l):u,g!==void 0&&(Ge.exports=g)})(this,function y(){var x=typeof self<"u"?self:typeof window<"u"?window:x!==void 0?x:{},f,p=!x.document&&!!x.postMessage,h=x.IS_PAPA_WORKER||!1,E={},v=0,m={};function S(Q){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(ce){var se=re(ce);se.chunkSize=parseInt(se.chunkSize),ce.step||ce.chunk||(se.chunkSize=null),this._handle=new L(se),(this._handle.streamer=this)._config=se}.call(this,Q),this.parseChunk=function(ce,se){var q=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<q){let A=this._config.newline;A||(te=this._config.quoteChar||'"',A=this._handle.guessLineEndings(ce,te)),ce=[...ce.split(A).slice(q)].join(A)}this.isFirstChunk&&z(this._config.beforeFirstChunk)&&(te=this._config.beforeFirstChunk(ce))!==void 0&&(ce=te),this.isFirstChunk=!1,this._halted=!1;var q=this._partialLine+ce,te=(this._partialLine="",this._handle.parse(q,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(ce=te.meta.cursor,q=(this._finished||(this._partialLine=q.substring(ce-this._baseIndex),this._baseIndex=ce),te&&te.data&&(this._rowCount+=te.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),h)x.postMessage({results:te,workerId:m.WORKER_ID,finished:q});else if(z(this._config.chunk)&&!se){if(this._config.chunk(te,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=te=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(te.data),this._completeResults.errors=this._completeResults.errors.concat(te.errors),this._completeResults.meta=te.meta),this._completed||!q||!z(this._config.complete)||te&&te.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),q||te&&te.meta.paused||this._nextChunk(),te}this._halted=!0},this._sendError=function(ce){z(this._config.error)?this._config.error(ce):h&&this._config.error&&x.postMessage({workerId:m.WORKER_ID,error:ce,finished:!1})}}function d(Q){var ce;(Q=Q||{}).chunkSize||(Q.chunkSize=m.RemoteChunkSize),S.call(this,Q),this._nextChunk=p?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(se){this._input=se,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(ce=new XMLHttpRequest,this._config.withCredentials&&(ce.withCredentials=this._config.withCredentials),p||(ce.onload=Se(this._chunkLoaded,this),ce.onerror=Se(this._chunkError,this)),ce.open(this._config.downloadRequestBody?"POST":"GET",this._input,!p),this._config.downloadRequestHeaders){var se,q=this._config.downloadRequestHeaders;for(se in q)ce.setRequestHeader(se,q[se])}var te;this._config.chunkSize&&(te=this._start+this._config.chunkSize-1,ce.setRequestHeader("Range","bytes="+this._start+"-"+te));try{ce.send(this._config.downloadRequestBody)}catch(A){this._chunkError(A.message)}p&&ce.status===0&&this._chunkError()}},this._chunkLoaded=function(){ce.readyState===4&&(ce.status<200||400<=ce.status?this._chunkError():(this._start+=this._config.chunkSize||ce.responseText.length,this._finished=!this._config.chunkSize||this._start>=(se=>(se=se.getResponseHeader("Content-Range"))!==null?parseInt(se.substring(se.lastIndexOf("/")+1)):-1)(ce),this.parseChunk(ce.responseText)))},this._chunkError=function(se){se=ce.statusText||se,this._sendError(new Error(se))}}function O(Q){(Q=Q||{}).chunkSize||(Q.chunkSize=m.LocalChunkSize),S.call(this,Q);var ce,se,q=typeof FileReader<"u";this.stream=function(te){this._input=te,se=te.slice||te.webkitSlice||te.mozSlice,q?((ce=new FileReader).onload=Se(this._chunkLoaded,this),ce.onerror=Se(this._chunkError,this)):ce=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var te=this._input,A=(this._config.chunkSize&&(A=Math.min(this._start+this._config.chunkSize,this._input.size),te=se.call(te,this._start,A)),ce.readAsText(te,this._config.encoding));q||this._chunkLoaded({target:{result:A}})},this._chunkLoaded=function(te){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(te.target.result)},this._chunkError=function(){this._sendError(ce.error)}}function R(Q){var ce;S.call(this,Q=Q||{}),this.stream=function(se){return ce=se,this._nextChunk()},this._nextChunk=function(){var se,q;if(!this._finished)return se=this._config.chunkSize,ce=se?(q=ce.substring(0,se),ce.substring(se)):(q=ce,""),this._finished=!ce,this.parseChunk(q)}}function C(Q){S.call(this,Q=Q||{});var ce=[],se=!0,q=!1;this.pause=function(){S.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){S.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(te){this._input=te,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){q&&ce.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),ce.length?this.parseChunk(ce.shift()):se=!0},this._streamData=Se(function(te){try{ce.push(typeof te=="string"?te:te.toString(this._config.encoding)),se&&(se=!1,this._checkIsFinished(),this.parseChunk(ce.shift()))}catch(A){this._streamError(A)}},this),this._streamError=Se(function(te){this._streamCleanUp(),this._sendError(te)},this),this._streamEnd=Se(function(){this._streamCleanUp(),q=!0,this._streamData("")},this),this._streamCleanUp=Se(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function L(Q){var ce,se,q,te,A=Math.pow(2,53),T=-A,B=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,X=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,ue=this,ie=0,Te=0,je=!1,yt=!1,tt=[],Ze={data:[],errors:[],meta:{}};function Ne(Mt){return Q.skipEmptyLines==="greedy"?Mt.join("").trim()==="":Mt.length===1&&Mt[0].length===0}function it(){if(Ze&&q&&(Dn("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+m.DefaultDelimiter+"'"),q=!1),Q.skipEmptyLines&&(Ze.data=Ze.data.filter(function($t){return!Ne($t)})),Rt()){let $t=function(Ct,Z){z(Q.transformHeader)&&(Ct=Q.transformHeader(Ct,Z)),tt.push(Ct)};var bn=$t;if(Ze)if(Array.isArray(Ze.data[0])){for(var Mt=0;Rt()&&Mt<Ze.data.length;Mt++)Ze.data[Mt].forEach($t);Ze.data.splice(0,1)}else Ze.data.forEach($t)}function Wt($t,Ct){for(var Z=Q.header?{}:[],me=0;me<$t.length;me++){var ke=me,Ee=$t[me],Ee=((_e,ge)=>(Me=>(Q.dynamicTypingFunction&&Q.dynamicTyping[Me]===void 0&&(Q.dynamicTyping[Me]=Q.dynamicTypingFunction(Me)),(Q.dynamicTyping[Me]||Q.dynamicTyping)===!0))(_e)?ge==="true"||ge==="TRUE"||ge!=="false"&&ge!=="FALSE"&&((Me=>{if(B.test(Me)&&(Me=parseFloat(Me),T<Me&&Me<A))return 1})(ge)?parseFloat(ge):X.test(ge)?new Date(ge):ge===""?null:ge):ge)(ke=Q.header?me>=tt.length?"__parsed_extra":tt[me]:ke,Ee=Q.transform?Q.transform(Ee,ke):Ee);ke==="__parsed_extra"?(Z[ke]=Z[ke]||[],Z[ke].push(Ee)):Z[ke]=Ee}return Q.header&&(me>tt.length?Dn("FieldMismatch","TooManyFields","Too many fields: expected "+tt.length+" fields but parsed "+me,Te+Ct):me<tt.length&&Dn("FieldMismatch","TooFewFields","Too few fields: expected "+tt.length+" fields but parsed "+me,Te+Ct)),Z}var Tn;Ze&&(Q.header||Q.dynamicTyping||Q.transform)&&(Tn=1,!Ze.data.length||Array.isArray(Ze.data[0])?(Ze.data=Ze.data.map(Wt),Tn=Ze.data.length):Ze.data=Wt(Ze.data,0),Q.header&&Ze.meta&&(Ze.meta.fields=tt),Te+=Tn)}function Rt(){return Q.header&&tt.length===0}function Dn(Mt,Wt,Tn,bn){Mt={type:Mt,code:Wt,message:Tn},bn!==void 0&&(Mt.row=bn),Ze.errors.push(Mt)}z(Q.step)&&(te=Q.step,Q.step=function(Mt){Ze=Mt,Rt()?it():(it(),Ze.data.length!==0&&(ie+=Mt.data.length,Q.preview&&ie>Q.preview?se.abort():(Ze.data=Ze.data[0],te(Ze,ue))))}),this.parse=function(Mt,Wt,Tn){var bn=Q.quoteChar||'"',bn=(Q.newline||(Q.newline=this.guessLineEndings(Mt,bn)),q=!1,Q.delimiter?z(Q.delimiter)&&(Q.delimiter=Q.delimiter(Mt),Ze.meta.delimiter=Q.delimiter):((bn=(($t,Ct,Z,me,ke)=>{var Ee,_e,ge,Me;ke=ke||[","," ","|",";",m.RECORD_SEP,m.UNIT_SEP];for(var lt=0;lt<ke.length;lt++){for(var Ft,Et=ke[lt],Zt=0,nn=0,Pn=0,rn=(ge=void 0,new I({comments:me,delimiter:Et,newline:Ct,preview:10}).parse($t)),Vt=0;Vt<rn.data.length;Vt++)Z&&Ne(rn.data[Vt])?Pn++:(Ft=rn.data[Vt].length,nn+=Ft,ge===void 0?ge=Ft:0<Ft&&(Zt+=Math.abs(Ft-ge),ge=Ft));0<rn.data.length&&(nn/=rn.data.length-Pn),(_e===void 0||Zt<=_e)&&(Me===void 0||Me<nn)&&1.99<nn&&(_e=Zt,Ee=Et,Me=nn)}return{successful:!!(Q.delimiter=Ee),bestDelimiter:Ee}})(Mt,Q.newline,Q.skipEmptyLines,Q.comments,Q.delimitersToGuess)).successful?Q.delimiter=bn.bestDelimiter:(q=!0,Q.delimiter=m.DefaultDelimiter),Ze.meta.delimiter=Q.delimiter),re(Q));return Q.preview&&Q.header&&bn.preview++,ce=Mt,se=new I(bn),Ze=se.parse(ce,Wt,Tn),it(),je?{meta:{paused:!0}}:Ze||{meta:{paused:!1}}},this.paused=function(){return je},this.pause=function(){je=!0,se.abort(),ce=z(Q.chunk)?"":ce.substring(se.getCharIndex())},this.resume=function(){ue.streamer._halted?(je=!1,ue.streamer.parseChunk(ce,!0)):setTimeout(ue.resume,3)},this.aborted=function(){return yt},this.abort=function(){yt=!0,se.abort(),Ze.meta.aborted=!0,z(Q.complete)&&Q.complete(Ze),ce=""},this.guessLineEndings=function($t,bn){$t=$t.substring(0,1048576);var bn=new RegExp(j(bn)+"([^]*?)"+j(bn),"gm"),Tn=($t=$t.replace(bn,"")).split("\r"),bn=$t.split(` `),$t=1<bn.length&&bn[0].length<Tn[0].length;if(Tn.length===1||$t)return` `;for(var Ct=0,Z=0;Z<Tn.length;Z++)Tn[Z][0]===` `&&Ct++;return Ct>=Tn.length/2?`\r `:"\r"}}function j(Q){return Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(Q){var ce=(Q=Q||{}).delimiter,se=Q.newline,q=Q.comments,te=Q.step,A=Q.preview,T=Q.fastMode,B=null,X=!1,ue=Q.quoteChar==null?'"':Q.quoteChar,ie=ue;if(Q.escapeChar!==void 0&&(ie=Q.escapeChar),(typeof ce!="string"||-1<m.BAD_DELIMITERS.indexOf(ce))&&(ce=","),q===ce)throw new Error("Comment character same as delimiter");q===!0?q="#":(typeof q!="string"||-1<m.BAD_DELIMITERS.indexOf(q))&&(q=!1),se!==` `&&se!=="\r"&&se!==`\r `&&(se=` `);var Te=0,je=!1;this.parse=function(yt,tt,Ze){if(typeof yt!="string")throw new Error("Input must be a string");var Ne=yt.length,it=ce.length,Rt=se.length,Dn=q.length,Mt=z(te),Wt=[],Tn=[],bn=[],$t=Te=0;if(!yt)return Zt();if(T||T!==!1&&yt.indexOf(ue)===-1){for(var Ct=yt.split(se),Z=0;Z<Ct.length;Z++){if(bn=Ct[Z],Te+=bn.length,Z!==Ct.length-1)Te+=se.length;else if(Ze)return Zt();if(!q||bn.substring(0,Dn)!==q){if(Mt){if(Wt=[],Me(bn.split(ce)),nn(),je)return Zt()}else Me(bn.split(ce));if(A&&A<=Z)return Wt=Wt.slice(0,A),Zt(!0)}}return Zt()}for(var me=yt.indexOf(ce,Te),ke=yt.indexOf(se,Te),Ee=new RegExp(j(ie)+j(ue),"g"),_e=yt.indexOf(ue,Te);;)if(yt[Te]===ue)for(_e=Te,Te++;;){if((_e=yt.indexOf(ue,_e+1))===-1)return Ze||Tn.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Wt.length,index:Te}),Ft();if(_e===Ne-1)return Ft(yt.substring(Te,_e).replace(Ee,ue));if(ue===ie&&yt[_e+1]===ie)_e++;else if(ue===ie||_e===0||yt[_e-1]!==ie){me!==-1&&me<_e+1&&(me=yt.indexOf(ce,_e+1));var ge=lt((ke=ke!==-1&&ke<_e+1?yt.indexOf(se,_e+1):ke)===-1?me:Math.min(me,ke));if(yt.substr(_e+1+ge,it)===ce){bn.push(yt.substring(Te,_e).replace(Ee,ue)),yt[Te=_e+1+ge+it]!==ue&&(_e=yt.indexOf(ue,Te)),me=yt.indexOf(ce,Te),ke=yt.indexOf(se,Te);break}if(ge=lt(ke),yt.substring(_e+1+ge,_e+1+ge+Rt)===se){if(bn.push(yt.substring(Te,_e).replace(Ee,ue)),Et(_e+1+ge+Rt),me=yt.indexOf(ce,Te),_e=yt.indexOf(ue,Te),Mt&&(nn(),je))return Zt();if(A&&Wt.length>=A)return Zt(!0);break}Tn.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Wt.length,index:Te}),_e++}}else if(q&&bn.length===0&&yt.substring(Te,Te+Dn)===q){if(ke===-1)return Zt();Te=ke+Rt,ke=yt.indexOf(se,Te),me=yt.indexOf(ce,Te)}else if(me!==-1&&(me<ke||ke===-1))bn.push(yt.substring(Te,me)),Te=me+it,me=yt.indexOf(ce,Te);else{if(ke===-1)break;if(bn.push(yt.substring(Te,ke)),Et(ke+Rt),Mt&&(nn(),je))return Zt();if(A&&Wt.length>=A)return Zt(!0)}return Ft();function Me(Pn){Wt.push(Pn),$t=Te}function lt(Pn){var rn=0;return rn=Pn!==-1&&(Pn=yt.substring(_e+1,Pn))&&Pn.trim()===""?Pn.length:rn}function Ft(Pn){return Ze||(Pn===void 0&&(Pn=yt.substring(Te)),bn.push(Pn),Te=Ne,Me(bn),Mt&&nn()),Zt()}function Et(Pn){Te=Pn,Me(bn),bn=[],ke=yt.indexOf(se,Te)}function Zt(Pn){if(Q.header&&!tt&&Wt.length&&!X){var rn=Wt[0],Vt=Object.create(null),Kn=new Set(rn);let ur=!1;for(let on=0;on<rn.length;on++){let tr=rn[on];if(Vt[tr=z(Q.transformHeader)?Q.transformHeader(tr,on):tr]){let Cn,Wn=Vt[tr];for(;Cn=tr+"_"+Wn,Wn++,Kn.has(Cn););Kn.add(Cn),rn[on]=Cn,Vt[tr]++,ur=!0,(B=B===null?{}:B)[Cn]=tr}else Vt[tr]=1,rn[on]=tr;Kn.add(tr)}ur&&console.warn("Duplicate headers found and renamed."),X=!0}return{data:Wt,errors:Tn,meta:{delimiter:ce,linebreak:se,aborted:je,truncated:!!Pn,cursor:$t+(tt||0),renamedHeaders:B}}}function nn(){te(Zt()),Wt=[],Tn=[]}},this.abort=function(){je=!0},this.getCharIndex=function(){return Te}}function U(Q){var ce=Q.data,se=E[ce.workerId],q=!1;if(ce.error)se.userError(ce.error,ce.file);else if(ce.results&&ce.results.data){var te={abort:function(){q=!0,$(ce.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ee,resume:ee};if(z(se.userStep)){for(var A=0;A<ce.results.data.length&&(se.userStep({data:ce.results.data[A],errors:ce.results.errors,meta:ce.results.meta},te),!q);A++);delete ce.results}else z(se.userChunk)&&(se.userChunk(ce.results,te,ce.file),delete ce.results)}ce.finished&&!q&&$(ce.workerId,ce.results)}function $(Q,ce){var se=E[Q];z(se.userComplete)&&se.userComplete(ce),se.terminate(),delete E[Q]}function ee(){throw new Error("Not implemented.")}function re(Q){if(typeof Q!="object"||Q===null)return Q;var ce,se=Array.isArray(Q)?[]:{};for(ce in Q)se[ce]=re(Q[ce]);return se}function Se(Q,ce){return function(){Q.apply(ce,arguments)}}function z(Q){return typeof Q=="function"}return m.parse=function(Q,ce){var se=(ce=ce||{}).dynamicTyping||!1;if(z(se)&&(ce.dynamicTypingFunction=se,se={}),ce.dynamicTyping=se,ce.transform=!!z(ce.transform)&&ce.transform,!ce.worker||!m.WORKERS_SUPPORTED)return se=null,m.NODE_STREAM_INPUT,typeof Q=="string"?(Q=(q=>q.charCodeAt(0)!==65279?q:q.slice(1))(Q),se=new(ce.download?d:R)(ce)):Q.readable===!0&&z(Q.read)&&z(Q.on)?se=new C(ce):(x.File&&Q instanceof File||Q instanceof Object)&&(se=new O(ce)),se.stream(Q);(se=(()=>{var q;return!!m.WORKERS_SUPPORTED&&(q=(()=>{var te=x.URL||x.webkitURL||null,A=y.toString();return m.BLOB_URL||(m.BLOB_URL=te.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",A,")();"],{type:"text/javascript"})))})(),(q=new x.Worker(q)).onmessage=U,q.id=v++,E[q.id]=q)})()).userStep=ce.step,se.userChunk=ce.chunk,se.userComplete=ce.complete,se.userError=ce.error,ce.step=z(ce.step),ce.chunk=z(ce.chunk),ce.complete=z(ce.complete),ce.error=z(ce.error),delete ce.worker,se.postMessage({input:Q,config:ce,workerId:se.id})},m.unparse=function(Q,ce){var se=!1,q=!0,te=",",A=`\r `,T='"',B=T+T,X=!1,ue=null,ie=!1,Te=((()=>{if(typeof ce=="object"){if(typeof ce.delimiter!="string"||m.BAD_DELIMITERS.filter(function(tt){return ce.delimiter.indexOf(tt)!==-1}).length||(te=ce.delimiter),typeof ce.quotes!="boolean"&&typeof ce.quotes!="function"&&!Array.isArray(ce.quotes)||(se=ce.quotes),typeof ce.skipEmptyLines!="boolean"&&typeof ce.skipEmptyLines!="string"||(X=ce.skipEmptyLines),typeof ce.newline=="string"&&(A=ce.newline),typeof ce.quoteChar=="string"&&(T=ce.quoteChar),typeof ce.header=="boolean"&&(q=ce.header),Array.isArray(ce.columns)){if(ce.columns.length===0)throw new Error("Option columns is empty");ue=ce.columns}ce.escapeChar!==void 0&&(B=ce.escapeChar+T),ce.escapeFormulae instanceof RegExp?ie=ce.escapeFormulae:typeof ce.escapeFormulae=="boolean"&&ce.escapeFormulae&&(ie=/^[=+\-@\t\r].*$/)}})(),new RegExp(j(T),"g"));if(typeof Q=="string"&&(Q=JSON.parse(Q)),Array.isArray(Q)){if(!Q.length||Array.isArray(Q[0]))return je(null,Q,X);if(typeof Q[0]=="object")return je(ue||Object.keys(Q[0]),Q,X)}else if(typeof Q=="object")return typeof Q.data=="string"&&(Q.data=JSON.parse(Q.data)),Array.isArray(Q.data)&&(Q.fields||(Q.fields=Q.meta&&Q.meta.fields||ue),Q.fields||(Q.fields=Array.isArray(Q.data[0])?Q.fields:typeof Q.data[0]=="object"?Object.keys(Q.data[0]):[]),Array.isArray(Q.data[0])||typeof Q.data[0]=="object"||(Q.data=[Q.data])),je(Q.fields||[],Q.data||[],X);throw new Error("Unable to serialize unrecognized input");function je(tt,Ze,Ne){var it="",Rt=(typeof tt=="string"&&(tt=JSON.parse(tt)),typeof Ze=="string"&&(Ze=JSON.parse(Ze)),Array.isArray(tt)&&0<tt.length),Dn=!Array.isArray(Ze[0]);if(Rt&&q){for(var Mt=0;Mt<tt.length;Mt++)0<Mt&&(it+=te),it+=yt(tt[Mt],Mt);0<Ze.length&&(it+=A)}for(var Wt=0;Wt<Ze.length;Wt++){var Tn=(Rt?tt:Ze[Wt]).length,bn=!1,$t=Rt?Object.keys(Ze[Wt]).length===0:Ze[Wt].length===0;if(Ne&&!Rt&&(bn=Ne==="greedy"?Ze[Wt].join("").trim()==="":Ze[Wt].length===1&&Ze[Wt][0].length===0),Ne==="greedy"&&Rt){for(var Ct=[],Z=0;Z<Tn;Z++){var me=Dn?tt[Z]:Z;Ct.push(Ze[Wt][me])}bn=Ct.join("").trim()===""}if(!bn){for(var ke=0;ke<Tn;ke++){0<ke&&!$t&&(it+=te);var Ee=Rt&&Dn?tt[ke]:ke;it+=yt(Ze[Wt][Ee],ke)}Wt<Ze.length-1&&(!Ne||0<Tn&&!$t)&&(it+=A)}}return it}function yt(tt,Ze){var Ne,it;return tt==null?"":tt.constructor===Date?JSON.stringify(tt).slice(1,25):(it=!1,ie&&typeof tt=="string"&&ie.test(tt)&&(tt="'"+tt,it=!0),Ne=tt.toString().replace(Te,B),(it=it||se===!0||typeof se=="function"&&se(tt,Ze)||Array.isArray(se)&&se[Ze]||((Rt,Dn)=>{for(var Mt=0;Mt<Dn.length;Mt++)if(-1<Rt.indexOf(Dn[Mt]))return!0;return!1})(Ne,m.BAD_DELIMITERS)||-1<Ne.indexOf(te)||Ne.charAt(0)===" "||Ne.charAt(Ne.length-1)===" ")?T+Ne+T:Ne)}},m.RECORD_SEP="",m.UNIT_SEP="",m.BYTE_ORDER_MARK="\uFEFF",m.BAD_DELIMITERS=["\r",` `,'"',m.BYTE_ORDER_MARK],m.WORKERS_SUPPORTED=!p&&!!x.Worker,m.NODE_STREAM_INPUT=1,m.LocalChunkSize=10485760,m.RemoteChunkSize=5242880,m.DefaultDelimiter=",",m.Parser=I,m.ParserHandle=L,m.NetworkStreamer=d,m.FileStreamer=O,m.StringStreamer=R,m.ReadableStreamStreamer=C,x.jQuery&&((f=x.jQuery).fn.parse=function(Q){var ce=Q.config||{},se=[];return this.each(function(A){if(!(f(this).prop("tagName").toUpperCase()==="INPUT"&&f(this).attr("type").toLowerCase()==="file"&&x.FileReader)||!this.files||this.files.length===0)return!0;for(var T=0;T<this.files.length;T++)se.push({file:this.files[T],inputElem:this,instanceConfig:f.extend({},ce)})}),q(),this;function q(){if(se.length===0)z(Q.complete)&&Q.complete();else{var A,T,B,X,ue=se[0];if(z(Q.before)){var ie=Q.before(ue.file,ue.inputElem);if(typeof ie=="object"){if(ie.action==="abort")return A="AbortError",T=ue.file,B=ue.inputElem,X=ie.reason,void(z(Q.error)&&Q.error({name:A},T,B,X));if(ie.action==="skip")return void te();typeof ie.config=="object"&&(ue.instanceConfig=f.extend(ue.instanceConfig,ie.config))}else if(ie==="skip")return void te()}var Te=ue.instanceConfig.complete;ue.instanceConfig.complete=function(je){z(Te)&&Te(je,ue.file,ue.inputElem),te()},m.parse(ue.file,ue.instanceConfig)}}function te(){se.splice(0,1),q()}}),h&&(x.onmessage=function(Q){Q=Q.data,m.WORKER_ID===void 0&&Q&&(m.WORKER_ID=Q.workerId),typeof Q.input=="string"?x.postMessage({workerId:m.WORKER_ID,results:m.parse(Q.input,Q.config),finished:!0}):(x.File&&Q.input instanceof File||Q.input instanceof Object)&&(Q=m.parse(Q.input,Q.config))&&x.postMessage({workerId:m.WORKER_ID,results:Q,finished:!0})}),(d.prototype=Object.create(S.prototype)).constructor=d,(O.prototype=Object.create(S.prototype)).constructor=O,(R.prototype=Object.create(R.prototype)).constructor=R,(C.prototype=Object.create(S.prototype)).constructor=C,m})},44838:(Ge,w,u)=>{"use strict";u.d(w,{E:()=>y,b:()=>x});var l=u(44876),g=u(40989),y=new g.q(l.R),x=y},44876:(Ge,w,u)=>{"use strict";u.d(w,{R:()=>p});var l=u(31635),g=u(64423),y=function(h){(0,l.__extends)(E,h);function E(v,m){return h.call(this)||this}return E.prototype.schedule=function(v,m){return m===void 0&&(m=0),this},E}(g.yU),x={setInterval:function(h,E){for(var v=[],m=2;m<arguments.length;m++)v[m-2]=arguments[m];var S=x.delegate;return S?.setInterval?S.setInterval.apply(S,(0,l.__spreadArray)([h,E],(0,l.__read)(v))):setInterval.apply(void 0,(0,l.__spreadArray)([h,E],(0,l.__read)(v)))},clearInterval:function(h){var E=x.delegate;return(E?.clearInterval||clearInterval)(h)},delegate:void 0},f=u(6174),p=function(h){(0,l.__extends)(E,h);function E(v,m){var S=h.call(this,v,m)||this;return S.scheduler=v,S.work=m,S.pending=!1,S}return E.prototype.schedule=function(v,m){var S;if(m===void 0&&(m=0),this.closed)return this;this.state=v;var d=this.id,O=this.scheduler;return d!=null&&(this.id=this.recycleAsyncId(O,d,m)),this.pending=!0,this.delay=m,this.id=(S=this.id)!==null&&S!==void 0?S:this.requestAsyncId(O,this.id,m),this},E.prototype.requestAsyncId=function(v,m,S){return S===void 0&&(S=0),x.setInterval(v.flush.bind(v,this),S)},E.prototype.recycleAsyncId=function(v,m,S){if(S===void 0&&(S=0),S!=null&&this.delay===S&&this.pending===!1)return m;m!=null&&x.clearInterval(m)},E.prototype.execute=function(v,m){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var S=this._execute(v,m);if(S)return S;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},E.prototype._execute=function(v,m){var S=!1,d;try{this.work(v)}catch(O){S=!0,d=O||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),d},E.prototype.unsubscribe=function(){if(!this.closed){var v=this,m=v.id,S=v.scheduler,d=S.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,f.o)(d,this),m!=null&&(this.id=this.recycleAsyncId(S,m,null)),this.delay=null,h.prototype.unsubscribe.call(this)}},E}(y)},44880:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.throttle=void 0;var l=u(65212),g=u(17214),y=u(19724);function x(f,p){return l.operate(function(h,E){var v=p??{},m=v.leading,S=m===void 0?!0:m,d=v.trailing,O=d===void 0?!1:d,R=!1,C=null,L=null,j=!1,I=function(){L?.unsubscribe(),L=null,O&&(ee(),j&&E.complete())},U=function(){L=null,j&&E.complete()},$=function(re){return L=y.innerFrom(f(re)).subscribe(g.createOperatorSubscriber(E,I,U))},ee=function(){if(R){R=!1;var re=C;C=null,E.next(re),!j&&$(re)}};h.subscribe(g.createOperatorSubscriber(E,function(re){R=!0,C=re,!(L&&!L.closed)&&(S?ee():$(re))},function(){j=!0,!(O&&R&&L&&!L.closed)&&E.complete()}))})}w.throttle=x},44885:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.empty=w.EMPTY=void 0;var l=u(48051);w.EMPTY=new l.Observable(function(x){return x.complete()});function g(x){return x?y(x):w.EMPTY}w.empty=g;function y(x){return new l.Observable(function(f){return x.schedule(function(){return f.complete()})})}},45214:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>m});var l=u(96540),g=function(S){return S!==Object(S)},y=function(S,d,O){var R=(0,l.useRef)(void 0);(!R.current||!O(d,R.current))&&(R.current=d),(0,l.useEffect)(S,R.current)};const x=y;var f=u(72774),p=u.n(f);const h=p();var E=function(S){return S!==Object(S)},v=function(S,d){x(S,d,h)};const m=v},45435:(Ge,w,u)=>{"use strict";u.d(w,{$W:()=>p,GT:()=>x,_e:()=>y,cr:()=>f,tm:()=>l,xI:()=>g});const l=Object.freeze({status:"aborted"});function g(h,E,v){function m(R,C){var L;Object.defineProperty(R,"_zod",{value:R._zod??{},enumerable:!1}),(L=R._zod).traits??(L.traits=new Set),R._zod.traits.add(h),E(R,C);for(const j in O.prototype)j in R||Object.defineProperty(R,j,{value:O.prototype[j].bind(R)});R._zod.constr=O,R._zod.def=C}const S=v?.Parent??Object;class d extends S{}Object.defineProperty(d,"name",{value:h});function O(R){var C;const L=v?.Parent?new d:this;m(L,R),(C=L._zod).deferred??(C.deferred=[]);for(const j of L._zod.deferred)j();return L}return Object.defineProperty(O,"init",{value:m}),Object.defineProperty(O,Symbol.hasInstance,{value:R=>v?.Parent&&R instanceof v.Parent?!0:R?._zod?.traits?.has(h)}),Object.defineProperty(O,"name",{value:h}),O}const y=Symbol("zod_brand");class x extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const f={};function p(h){return h&&Object.assign(f,h),f}},45588:(Ge,w,u)=>{"use strict";u.d(w,{AO:()=>d,B6:()=>Te,G3:()=>er,Gh:()=>Mt,HC:()=>Zt,HS:()=>Tn,HW:()=>Wn,Oi:()=>h,Pq:()=>Z,RO:()=>yt,Rr:()=>O,Sk:()=>Et,TM:()=>p,V2:()=>Ft,VV:()=>nn,aE:()=>kn,o1:()=>Ze,pX:()=>Pn,pb:()=>tt,rc:()=>g,ro:()=>ee,sC:()=>x,tH:()=>Ee,tW:()=>ie,ue:()=>U,v6:()=>lt,yD:()=>Dn,zR:()=>f});/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function l(){return l=Object.assign?Object.assign.bind():function(de){for(var Ve=1;Ve<arguments.length;Ve++){var vt=arguments[Ve];for(var Qt in vt)Object.prototype.hasOwnProperty.call(vt,Qt)&&(de[Qt]=vt[Qt])}return de},l.apply(this,arguments)}var g;(function(de){de.Pop="POP",de.Push="PUSH",de.Replace="REPLACE"})(g||(g={}));const y="popstate";function x(de){de===void 0&&(de={});let{initialEntries:Ve=["/"],initialIndex:vt,v5Compat:Qt=!1}=de,nt;nt=Ve.map((mi,ei)=>Pr(mi,typeof mi=="string"?null:mi.state,ei===0?"default":void 0));let Tt=Qn(vt??nt.length-1),Gt=g.Pop,En=null;function Qn(mi){return Math.min(Math.max(mi,0),nt.length-1)}function Or(){return nt[Tt]}function Pr(mi,ei,Qr){ei===void 0&&(ei=null);let Ni=S(nt?Or().pathname:"/",mi,ei,Qr);return E(Ni.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(mi)),Ni}function ai(mi){return typeof mi=="string"?mi:d(mi)}return{get index(){return Tt},get action(){return Gt},get location(){return Or()},createHref:ai,createURL(mi){return new URL(ai(mi),"http://localhost")},encodeLocation(mi){let ei=typeof mi=="string"?O(mi):mi;return{pathname:ei.pathname||"",search:ei.search||"",hash:ei.hash||""}},push(mi,ei){Gt=g.Push;let Qr=Pr(mi,ei);Tt+=1,nt.splice(Tt,nt.length,Qr),Qt&&En&&En({action:Gt,location:Qr,delta:1})},replace(mi,ei){Gt=g.Replace;let Qr=Pr(mi,ei);nt[Tt]=Qr,Qt&&En&&En({action:Gt,location:Qr,delta:0})},go(mi){Gt=g.Pop;let ei=Qn(Tt+mi),Qr=nt[ei];Tt=ei,En&&En({action:Gt,location:Qr,delta:mi})},listen(mi){return En=mi,()=>{En=null}}}}function f(de){de===void 0&&(de={});function Ve(Qt,nt){let{pathname:Tt,search:Gt,hash:En}=Qt.location;return S("",{pathname:Tt,search:Gt,hash:En},nt.state&&nt.state.usr||null,nt.state&&nt.state.key||"default")}function vt(Qt,nt){return typeof nt=="string"?nt:d(nt)}return R(Ve,vt,null,de)}function p(de){de===void 0&&(de={});function Ve(nt,Tt){let{pathname:Gt="/",search:En="",hash:Qn=""}=O(nt.location.hash.substr(1));return!Gt.startsWith("/")&&!Gt.startsWith(".")&&(Gt="/"+Gt),S("",{pathname:Gt,search:En,hash:Qn},Tt.state&&Tt.state.usr||null,Tt.state&&Tt.state.key||"default")}function vt(nt,Tt){let Gt=nt.document.querySelector("base"),En="";if(Gt&&Gt.getAttribute("href")){let Qn=nt.location.href,Or=Qn.indexOf("#");En=Or===-1?Qn:Qn.slice(0,Or)}return En+"#"+(typeof Tt=="string"?Tt:d(Tt))}function Qt(nt,Tt){E(nt.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(Tt)+")")}return R(Ve,vt,Qt,de)}function h(de,Ve){if(de===!1||de===null||typeof de>"u")throw new Error(Ve)}function E(de,Ve){if(!de){typeof console<"u"&&console.warn(Ve);try{throw new Error(Ve)}catch{}}}function v(){return Math.random().toString(36).substr(2,8)}function m(de,Ve){return{usr:de.state,key:de.key,idx:Ve}}function S(de,Ve,vt,Qt){return vt===void 0&&(vt=null),l({pathname:typeof de=="string"?de:de.pathname,search:"",hash:""},typeof Ve=="string"?O(Ve):Ve,{state:vt,key:Ve&&Ve.key||Qt||v()})}function d(de){let{pathname:Ve="/",search:vt="",hash:Qt=""}=de;return vt&&vt!=="?"&&(Ve+=vt.charAt(0)==="?"?vt:"?"+vt),Qt&&Qt!=="#"&&(Ve+=Qt.charAt(0)==="#"?Qt:"#"+Qt),Ve}function O(de){let Ve={};if(de){let vt=de.indexOf("#");vt>=0&&(Ve.hash=de.substr(vt),de=de.substr(0,vt));let Qt=de.indexOf("?");Qt>=0&&(Ve.search=de.substr(Qt),de=de.substr(0,Qt)),de&&(Ve.pathname=de)}return Ve}function R(de,Ve,vt,Qt){Qt===void 0&&(Qt={});let{window:nt=document.defaultView,v5Compat:Tt=!1}=Qt,Gt=nt.history,En=g.Pop,Qn=null,Or=Pr();Or==null&&(Or=0,Gt.replaceState(l({},Gt.state,{idx:Or}),""));function Pr(){return(Gt.state||{idx:null}).idx}function ai(){En=g.Pop;let Ni=Pr(),ea=Ni==null?null:Ni-Or;Or=Ni,Qn&&Qn({action:En,location:Qr.location,delta:ea})}function xi(Ni,ea){En=g.Push;let Qi=S(Qr.location,Ni,ea);vt&&vt(Qi,Ni),Or=Pr()+1;let ir=m(Qi,Or),xr=Qr.createHref(Qi);try{Gt.pushState(ir,"",xr)}catch(di){if(di instanceof DOMException&&di.name==="DataCloneError")throw di;nt.location.assign(xr)}Tt&&Qn&&Qn({action:En,location:Qr.location,delta:1})}function mi(Ni,ea){En=g.Replace;let Qi=S(Qr.location,Ni,ea);vt&&vt(Qi,Ni),Or=Pr();let ir=m(Qi,Or),xr=Qr.createHref(Qi);Gt.replaceState(ir,"",xr),Tt&&Qn&&Qn({action:En,location:Qr.location,delta:0})}function ei(Ni){let ea=nt.location.origin!=="null"?nt.location.origin:nt.location.href,Qi=typeof Ni=="string"?Ni:d(Ni);return Qi=Qi.replace(/ $/,"%20"),h(ea,"No window.location.(origin|href) available to create URL for href: "+Qi),new URL(Qi,ea)}let Qr={get action(){return En},get location(){return de(nt,Gt)},listen(Ni){if(Qn)throw new Error("A history only accepts one active listener");return nt.addEventListener(y,ai),Qn=Ni,()=>{nt.removeEventListener(y,ai),Qn=null}},createHref(Ni){return Ve(nt,Ni)},createURL:ei,encodeLocation(Ni){let ea=ei(Ni);return{pathname:ea.pathname,search:ea.search,hash:ea.hash}},push:xi,replace:mi,go(Ni){return Gt.go(Ni)}};return Qr}var C;(function(de){de.data="data",de.deferred="deferred",de.redirect="redirect",de.error="error"})(C||(C={}));const L=new Set(["lazy","caseSensitive","path","id","index","children"]);function j(de){return de.index===!0}function I(de,Ve,vt,Qt){return vt===void 0&&(vt=[]),Qt===void 0&&(Qt={}),de.map((nt,Tt)=>{let Gt=[...vt,String(Tt)],En=typeof nt.id=="string"?nt.id:Gt.join("-");if(h(nt.index!==!0||!nt.children,"Cannot specify children on an index route"),h(!Qt[En],'Found a route id collision on id "'+En+`". Route id's must be globally unique within Data Router usages`),j(nt)){let Qn=l({},nt,Ve(nt),{id:En});return Qt[En]=Qn,Qn}else{let Qn=l({},nt,Ve(nt),{id:En,children:void 0});return Qt[En]=Qn,nt.children&&(Qn.children=I(nt.children,Ve,Gt,Qt)),Qn}})}function U(de,Ve,vt){return vt===void 0&&(vt="/"),$(de,Ve,vt,!1)}function $(de,Ve,vt,Qt){let nt=typeof Ve=="string"?O(Ve):Ve,Tt=tt(nt.pathname||"/",vt);if(Tt==null)return null;let Gt=re(de);z(Gt);let En=null;for(let Qn=0;En==null&&Qn<Gt.length;++Qn){let Or=yt(Tt);En=ue(Gt[Qn],Or,Qt)}return En}function ee(de,Ve){let{route:vt,pathname:Qt,params:nt}=de;return{id:vt.id,pathname:Qt,params:nt,data:Ve[vt.id],handle:vt.handle}}function re(de,Ve,vt,Qt){Ve===void 0&&(Ve=[]),vt===void 0&&(vt=[]),Qt===void 0&&(Qt="");let nt=(Tt,Gt,En)=>{let Qn={relativePath:En===void 0?Tt.path||"":En,caseSensitive:Tt.caseSensitive===!0,childrenIndex:Gt,route:Tt};Qn.relativePath.startsWith("/")&&(h(Qn.relativePath.startsWith(Qt),'Absolute route path "'+Qn.relativePath+'" nested under path '+('"'+Qt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),Qn.relativePath=Qn.relativePath.slice(Qt.length));let Or=Tn([Qt,Qn.relativePath]),Pr=vt.concat(Qn);Tt.children&&Tt.children.length>0&&(h(Tt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+Or+'".')),re(Tt.children,Ve,Pr,Or)),!(Tt.path==null&&!Tt.index)&&Ve.push({path:Or,score:B(Or,Tt.index),routesMeta:Pr})};return de.forEach((Tt,Gt)=>{var En;if(Tt.path===""||!((En=Tt.path)!=null&&En.includes("?")))nt(Tt,Gt);else for(let Qn of Se(Tt.path))nt(Tt,Gt,Qn)}),Ve}function Se(de){let Ve=de.split("/");if(Ve.length===0)return[];let[vt,...Qt]=Ve,nt=vt.endsWith("?"),Tt=vt.replace(/\?$/,"");if(Qt.length===0)return nt?[Tt,""]:[Tt];let Gt=Se(Qt.join("/")),En=[];return En.push(...Gt.map(Qn=>Qn===""?Tt:[Tt,Qn].join("/"))),nt&&En.push(...Gt),En.map(Qn=>de.startsWith("/")&&Qn===""?"/":Qn)}function z(de){de.sort((Ve,vt)=>Ve.score!==vt.score?vt.score-Ve.score:X(Ve.routesMeta.map(Qt=>Qt.childrenIndex),vt.routesMeta.map(Qt=>Qt.childrenIndex)))}const Q=/^:[\w-]+$/,ce=3,se=2,q=1,te=10,A=-2,T=de=>de==="*";function B(de,Ve){let vt=de.split("/"),Qt=vt.length;return vt.some(T)&&(Qt+=A),Ve&&(Qt+=se),vt.filter(nt=>!T(nt)).reduce((nt,Tt)=>nt+(Q.test(Tt)?ce:Tt===""?q:te),Qt)}function X(de,Ve){return de.length===Ve.length&&de.slice(0,-1).every((Qt,nt)=>Qt===Ve[nt])?de[de.length-1]-Ve[Ve.length-1]:0}function ue(de,Ve,vt){vt===void 0&&(vt=!1);let{routesMeta:Qt}=de,nt={},Tt="/",Gt=[];for(let En=0;En<Qt.length;++En){let Qn=Qt[En],Or=En===Qt.length-1,Pr=Tt==="/"?Ve:Ve.slice(Tt.length)||"/",ai=Te({path:Qn.relativePath,caseSensitive:Qn.caseSensitive,end:Or},Pr),xi=Qn.route;if(!ai&&Or&&vt&&!Qt[Qt.length-1].route.index&&(ai=Te({path:Qn.relativePath,caseSensitive:Qn.caseSensitive,end:!1},Pr)),!ai)return null;Object.assign(nt,ai.params),Gt.push({params:nt,pathname:Tn([Tt,ai.pathname]),pathnameBase:bn(Tn([Tt,ai.pathnameBase])),route:xi}),ai.pathnameBase!=="/"&&(Tt=Tn([Tt,ai.pathnameBase]))}return Gt}function ie(de,Ve){Ve===void 0&&(Ve={});let vt=de;vt.endsWith("*")&&vt!=="*"&&!vt.endsWith("/*")&&(E(!1,'Route path "'+vt+'" will be treated as if it were '+('"'+vt.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+vt.replace(/\*$/,"/*")+'".')),vt=vt.replace(/\*$/,"/*"));const Qt=vt.startsWith("/")?"/":"",nt=Gt=>Gt==null?"":typeof Gt=="string"?Gt:String(Gt),Tt=vt.split(/\/+/).map((Gt,En,Qn)=>{if(En===Qn.length-1&&Gt==="*")return nt(Ve["*"]);const Pr=Gt.match(/^:([\w-]+)(\??)$/);if(Pr){const[,ai,xi]=Pr;let mi=Ve[ai];return h(xi==="?"||mi!=null,'Missing ":'+ai+'" param'),nt(mi)}return Gt.replace(/\?$/g,"")}).filter(Gt=>!!Gt);return Qt+Tt.join("/")}function Te(de,Ve){typeof de=="string"&&(de={path:de,caseSensitive:!1,end:!0});let[vt,Qt]=je(de.path,de.caseSensitive,de.end),nt=Ve.match(vt);if(!nt)return null;let Tt=nt[0],Gt=Tt.replace(/(.)\/+$/,"$1"),En=nt.slice(1);return{params:Qt.reduce((Or,Pr,ai)=>{let{paramName:xi,isOptional:mi}=Pr;if(xi==="*"){let Qr=En[ai]||"";Gt=Tt.slice(0,Tt.length-Qr.length).replace(/(.)\/+$/,"$1")}const ei=En[ai];return mi&&!ei?Or[xi]=void 0:Or[xi]=(ei||"").replace(/%2F/g,"/"),Or},{}),pathname:Tt,pathnameBase:Gt,pattern:de}}function je(de,Ve,vt){Ve===void 0&&(Ve=!1),vt===void 0&&(vt=!0),E(de==="*"||!de.endsWith("*")||de.endsWith("/*"),'Route path "'+de+'" will be treated as if it were '+('"'+de.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+de.replace(/\*$/,"/*")+'".'));let Qt=[],nt="^"+de.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(Gt,En,Qn)=>(Qt.push({paramName:En,isOptional:Qn!=null}),Qn?"/?([^\\/]+)?":"/([^\\/]+)"));return de.endsWith("*")?(Qt.push({paramName:"*"}),nt+=de==="*"||de==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):vt?nt+="\\/*$":de!==""&&de!=="/"&&(nt+="(?:(?=\\/|$))"),[new RegExp(nt,Ve?void 0:"i"),Qt]}function yt(de){try{return de.split("/").map(Ve=>decodeURIComponent(Ve).replace(/\//g,"%2F")).join("/")}catch(Ve){return E(!1,'The URL path "'+de+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+Ve+").")),de}}function tt(de,Ve){if(Ve==="/")return de;if(!de.toLowerCase().startsWith(Ve.toLowerCase()))return null;let vt=Ve.endsWith("/")?Ve.length-1:Ve.length,Qt=de.charAt(vt);return Qt&&Qt!=="/"?null:de.slice(vt)||"/"}function Ze(de,Ve){Ve===void 0&&(Ve="/");let{pathname:vt,search:Qt="",hash:nt=""}=typeof de=="string"?O(de):de;return{pathname:vt?vt.startsWith("/")?vt:Ne(vt,Ve):Ve,search:$t(Qt),hash:Ct(nt)}}function Ne(de,Ve){let vt=Ve.replace(/\/+$/,"").split("/");return de.split("/").forEach(nt=>{nt===".."?vt.length>1&&vt.pop():nt!=="."&&vt.push(nt)}),vt.length>1?vt.join("/"):"/"}function it(de,Ve,vt,Qt){return"Cannot include a '"+de+"' character in a manually specified "+("`to."+Ve+"` field ["+JSON.stringify(Qt)+"]. Please separate it out to the ")+("`to."+vt+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Rt(de){return de.filter((Ve,vt)=>vt===0||Ve.route.path&&Ve.route.path.length>0)}function Dn(de,Ve){let vt=Rt(de);return Ve?vt.map((Qt,nt)=>nt===vt.length-1?Qt.pathname:Qt.pathnameBase):vt.map(Qt=>Qt.pathnameBase)}function Mt(de,Ve,vt,Qt){Qt===void 0&&(Qt=!1);let nt;typeof de=="string"?nt=O(de):(nt=l({},de),h(!nt.pathname||!nt.pathname.includes("?"),it("?","pathname","search",nt)),h(!nt.pathname||!nt.pathname.includes("#"),it("#","pathname","hash",nt)),h(!nt.search||!nt.search.includes("#"),it("#","search","hash",nt)));let Tt=de===""||nt.pathname==="",Gt=Tt?"/":nt.pathname,En;if(Gt==null)En=vt;else{let ai=Ve.length-1;if(!Qt&&Gt.startsWith("..")){let xi=Gt.split("/");for(;xi[0]==="..";)xi.shift(),ai-=1;nt.pathname=xi.join("/")}En=ai>=0?Ve[ai]:"/"}let Qn=Ze(nt,En),Or=Gt&&Gt!=="/"&&Gt.endsWith("/"),Pr=(Tt||Gt===".")&&vt.endsWith("/");return!Qn.pathname.endsWith("/")&&(Or||Pr)&&(Qn.pathname+="/"),Qn}function Wt(de){return de===""||de.pathname===""?"/":typeof de=="string"?O(de).pathname:de.pathname}const Tn=de=>de.join("/").replace(/\/\/+/g,"/"),bn=de=>de.replace(/\/+$/,"").replace(/^\/*/,"/"),$t=de=>!de||de==="?"?"":de.startsWith("?")?de:"?"+de,Ct=de=>!de||de==="#"?"":de.startsWith("#")?de:"#"+de,Z=function(Ve,vt){vt===void 0&&(vt={});let Qt=typeof vt=="number"?{status:vt}:vt,nt=new Headers(Qt.headers);return nt.has("Content-Type")||nt.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(Ve),l({},Qt,{headers:nt}))};class me{constructor(Ve,vt){this.type="DataWithResponseInit",this.data=Ve,this.init=vt||null}}function ke(de,Ve){return new me(de,typeof Ve=="number"?{status:Ve}:Ve)}class Ee extends Error{}class _e{constructor(Ve,vt){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],h(Ve&&typeof Ve=="object"&&!Array.isArray(Ve),"defer() only accepts plain objects");let Qt;this.abortPromise=new Promise((Tt,Gt)=>Qt=Gt),this.controller=new AbortController;let nt=()=>Qt(new Ee("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",nt),this.controller.signal.addEventListener("abort",nt),this.data=Object.entries(Ve).reduce((Tt,Gt)=>{let[En,Qn]=Gt;return Object.assign(Tt,{[En]:this.trackPromise(En,Qn)})},{}),this.done&&this.unlistenAbortSignal(),this.init=vt}trackPromise(Ve,vt){if(!(vt instanceof Promise))return vt;this.deferredKeys.push(Ve),this.pendingKeysSet.add(Ve);let Qt=Promise.race([vt,this.abortPromise]).then(nt=>this.onSettle(Qt,Ve,void 0,nt),nt=>this.onSettle(Qt,Ve,nt));return Qt.catch(()=>{}),Object.defineProperty(Qt,"_tracked",{get:()=>!0}),Qt}onSettle(Ve,vt,Qt,nt){if(this.controller.signal.aborted&&Qt instanceof Ee)return this.unlistenAbortSignal(),Object.defineProperty(Ve,"_error",{get:()=>Qt}),Promise.reject(Qt);if(this.pendingKeysSet.delete(vt),this.done&&this.unlistenAbortSignal(),Qt===void 0&&nt===void 0){let Tt=new Error('Deferred data for key "'+vt+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(Ve,"_error",{get:()=>Tt}),this.emit(!1,vt),Promise.reject(Tt)}return nt===void 0?(Object.defineProperty(Ve,"_error",{get:()=>Qt}),this.emit(!1,vt),Promise.reject(Qt)):(Object.defineProperty(Ve,"_data",{get:()=>nt}),this.emit(!1,vt),nt)}emit(Ve,vt){this.subscribers.forEach(Qt=>Qt(Ve,vt))}subscribe(Ve){return this.subscribers.add(Ve),()=>this.subscribers.delete(Ve)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((Ve,vt)=>this.pendingKeysSet.delete(vt)),this.emit(!0)}async resolveData(Ve){let vt=!1;if(!this.done){let Qt=()=>this.cancel();Ve.addEventListener("abort",Qt),vt=await new Promise(nt=>{this.subscribe(Tt=>{Ve.removeEventListener("abort",Qt),(Tt||this.done)&&nt(Tt)})})}return vt}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return h(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((Ve,vt)=>{let[Qt,nt]=vt;return Object.assign(Ve,{[Qt]:Me(nt)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function ge(de){return de instanceof Promise&&de._tracked===!0}function Me(de){if(!ge(de))return de;if(de._error)throw de._error;return de._data}const lt=function(Ve,vt){vt===void 0&&(vt={});let Qt=typeof vt=="number"?{status:vt}:vt;return new _e(Ve,Qt)},Ft=function(Ve,vt){vt===void 0&&(vt=302);let Qt=vt;typeof Qt=="number"?Qt={status:Qt}:typeof Qt.status>"u"&&(Qt.status=302);let nt=new Headers(Qt.headers);return nt.set("Location",Ve),new Response(null,l({},Qt,{headers:nt}))},Et=(de,Ve)=>{let vt=Ft(de,Ve);return vt.headers.set("X-Remix-Reload-Document","true"),vt},Zt=(de,Ve)=>{let vt=Ft(de,Ve);return vt.headers.set("X-Remix-Replace","true"),vt};class nn{constructor(Ve,vt,Qt,nt){nt===void 0&&(nt=!1),this.status=Ve,this.statusText=vt||"",this.internal=nt,Qt instanceof Error?(this.data=Qt.toString(),this.error=Qt):this.data=Qt}}function Pn(de){return de!=null&&typeof de.status=="number"&&typeof de.statusText=="string"&&typeof de.internal=="boolean"&&"data"in de}const rn=["post","put","patch","delete"],Vt=new Set(rn),Kn=["get",...rn],ur=new Set(Kn),on=new Set([301,302,303,307,308]),tr=new Set([307,308]),Cn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Wn={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},er={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Fn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,en=de=>({hasErrorBoundary:!!de.hasErrorBoundary}),gn="remix-router-transitions";function kn(de){const Ve=de.window?de.window:typeof window<"u"?window:void 0,vt=typeof Ve<"u"&&typeof Ve.document<"u"&&typeof Ve.document.createElement<"u",Qt=!vt;h(de.routes.length>0,"You must provide a non-empty routes array to createRouter");let nt;if(de.mapRouteProperties)nt=de.mapRouteProperties;else if(de.detectErrorBoundary){let le=de.detectErrorBoundary;nt=Ae=>({hasErrorBoundary:le(Ae)})}else nt=en;let Tt={},Gt=I(de.routes,nt,void 0,Tt),En,Qn=de.basename||"/",Or=de.unstable_dataStrategy||we,Pr=de.unstable_patchRoutesOnNavigation,ai=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},de.future),xi=null,mi=new Set,ei=1e3,Qr=new Set,Ni=null,ea=null,Qi=null,ir=de.hydrationData!=null,xr=U(Gt,de.history.location,Qn),di=null;if(xr==null&&!Pr){let le=_t(404,{pathname:de.history.location.pathname}),{matches:Ae,route:Oe}=xt(Gt);xr=Ae,di={[Oe.id]:le}}xr&&!de.hydrationData&&_r(xr,Gt,de.history.location.pathname).active&&(xr=null);let ft;if(xr)if(xr.some(le=>le.route.lazy))ft=!1;else if(!xr.some(le=>le.route.loader))ft=!0;else if(ai.v7_partialHydration){let le=de.hydrationData?de.hydrationData.loaderData:null,Ae=de.hydrationData?de.hydrationData.errors:null,Oe=et=>et.route.loader?typeof et.route.loader=="function"&&et.route.loader.hydrate===!0?!1:le&&le[et.route.id]!==void 0||Ae&&Ae[et.route.id]!==void 0:!0;if(Ae){let et=xr.findIndex(Ot=>Ae[Ot.route.id]!==void 0);ft=xr.slice(0,et+1).every(Oe)}else ft=xr.every(Oe)}else ft=de.hydrationData!=null;else if(ft=!1,xr=[],ai.v7_partialHydration){let le=_r(null,Gt,de.history.location.pathname);le.active&&le.matches&&(xr=le.matches)}let zn,Zn={historyAction:de.history.action,location:de.history.location,matches:xr,initialized:ft,navigation:Cn,restoreScrollPosition:de.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:de.hydrationData&&de.hydrationData.loaderData||{},actionData:de.hydrationData&&de.hydrationData.actionData||null,errors:de.hydrationData&&de.hydrationData.errors||di,fetchers:new Map,blockers:new Map},wi=g.Pop,Ea=!1,wa,ji=!1,Dt=new Map,Xn=null,Tr=!1,Nr=!1,ti=[],_i=new Set,Ii=new Map,ta=0,Ji=-1,k=new Map,ve=new Set,Le=new Map,Ye=new Map,ot=new Set,Lt=new Map,an=new Map,nr=new Map,vr=!1;function $r(){if(xi=de.history.listen(le=>{let{action:Ae,location:Oe,delta:et}=le;if(vr){vr=!1;return}E(an.size===0||et!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ot=mt({currentLocation:Zn.location,nextLocation:Oe,historyAction:Ae});if(Ot&&et!=null){vr=!0,de.history.go(et*-1),Pi(Ot,{state:"blocked",location:Oe,proceed(){Pi(Ot,{state:"proceeding",proceed:void 0,reset:void 0,location:Oe}),de.history.go(et)},reset(){let It=new Map(Zn.blockers);It.set(Ot,er),jr({blockers:It})}});return}return Yi(Ae,Oe)}),vt){bi(Ve,Dt);let le=()=>Oi(Ve,Dt);Ve.addEventListener("pagehide",le),Xn=()=>Ve.removeEventListener("pagehide",le)}return Zn.initialized||Yi(g.Pop,Zn.location,{initialHydration:!0}),zn}function Fr(){xi&&xi(),Xn&&Xn(),mi.clear(),wa&&wa.abort(),Zn.fetchers.forEach((le,Ae)=>Vn(Ae)),Zn.blockers.forEach((le,Ae)=>Di(Ae))}function qr(le){return mi.add(le),()=>mi.delete(le)}function jr(le,Ae){Ae===void 0&&(Ae={}),Zn=l({},Zn,le);let Oe=[],et=[];ai.v7_fetcherPersist&&Zn.fetchers.forEach((Ot,It)=>{Ot.state==="idle"&&(ot.has(It)?et.push(It):Oe.push(It))}),[...mi].forEach(Ot=>Ot(Zn,{deletedFetchers:et,unstable_viewTransitionOpts:Ae.viewTransitionOpts,unstable_flushSync:Ae.flushSync===!0})),ai.v7_fetcherPersist&&(Oe.forEach(Ot=>Zn.fetchers.delete(Ot)),et.forEach(Ot=>Vn(Ot)))}function vi(le,Ae,Oe){var et,Ot;let{flushSync:It}=Oe===void 0?{}:Oe,Mn=Zn.actionData!=null&&Zn.navigation.formMethod!=null&&Xr(Zn.navigation.formMethod)&&Zn.navigation.state==="loading"&&((et=le.state)==null?void 0:et._isRedirect)!==!0,mn;Ae.actionData?Object.keys(Ae.actionData).length>0?mn=Ae.actionData:mn=null:Mn?mn=Zn.actionData:mn=null;let At=Ae.loaderData?zt(Zn.loaderData,Ae.loaderData,Ae.matches||[],Ae.errors):Zn.loaderData,Ut=Zn.blockers;Ut.size>0&&(Ut=new Map(Ut),Ut.forEach((dr,wr)=>Ut.set(wr,er)));let jn=Ea===!0||Zn.navigation.formMethod!=null&&Xr(Zn.navigation.formMethod)&&((Ot=le.state)==null?void 0:Ot._isRedirect)!==!0;En&&(Gt=En,En=void 0),Tr||wi===g.Pop||(wi===g.Push?de.history.push(le,le.state):wi===g.Replace&&de.history.replace(le,le.state));let Jt;if(wi===g.Pop){let dr=Dt.get(Zn.location.pathname);dr&&dr.has(le.pathname)?Jt={currentLocation:Zn.location,nextLocation:le}:Dt.has(le.pathname)&&(Jt={currentLocation:le,nextLocation:Zn.location})}else if(ji){let dr=Dt.get(Zn.location.pathname);dr?dr.add(le.pathname):(dr=new Set([le.pathname]),Dt.set(Zn.location.pathname,dr)),Jt={currentLocation:Zn.location,nextLocation:le}}jr(l({},Ae,{actionData:mn,loaderData:At,historyAction:wi,location:le,initialized:!0,navigation:Cn,revalidation:"idle",restoreScrollPosition:Ln(le,Ae.matches||Zn.matches),preventScrollReset:jn,blockers:Ut}),{viewTransitionOpts:Jt,flushSync:It===!0}),wi=g.Pop,Ea=!1,ji=!1,Tr=!1,Nr=!1,ti=[]}async function Mi(le,Ae){if(typeof le=="number"){de.history.go(le);return}let Oe=fe(Zn.location,Zn.matches,Qn,ai.v7_prependBasename,le,ai.v7_relativeSplatPath,Ae?.fromRouteId,Ae?.relative),{path:et,submission:Ot,error:It}=K(ai.v7_normalizeFormMethod,!1,Oe,Ae),Mn=Zn.location,mn=S(Zn.location,et,Ae&&Ae.state);mn=l({},mn,de.history.encodeLocation(mn));let At=Ae&&Ae.replace!=null?Ae.replace:void 0,Ut=g.Push;At===!0?Ut=g.Replace:At===!1||Ot!=null&&Xr(Ot.formMethod)&&Ot.formAction===Zn.location.pathname+Zn.location.search&&(Ut=g.Replace);let jn=Ae&&"preventScrollReset"in Ae?Ae.preventScrollReset===!0:void 0,Jt=(Ae&&Ae.unstable_flushSync)===!0,dr=mt({currentLocation:Mn,nextLocation:mn,historyAction:Ut});if(dr){Pi(dr,{state:"blocked",location:mn,proceed(){Pi(dr,{state:"proceeding",proceed:void 0,reset:void 0,location:mn}),Mi(le,Ae)},reset(){let wr=new Map(Zn.blockers);wr.set(dr,er),jr({blockers:wr})}});return}return await Yi(Ut,mn,{submission:Ot,pendingError:It,preventScrollReset:jn,replace:Ae&&Ae.replace,enableViewTransition:Ae&&Ae.unstable_viewTransition,flushSync:Jt})}function ra(){if(Xe(),jr({revalidation:"loading"}),Zn.navigation.state!=="submitting"){if(Zn.navigation.state==="idle"){Yi(Zn.historyAction,Zn.location,{startUninterruptedRevalidation:!0});return}Yi(wi||Zn.historyAction,Zn.navigation.location,{overrideNavigation:Zn.navigation})}}async function Yi(le,Ae,Oe){wa&&wa.abort(),wa=null,wi=le,Tr=(Oe&&Oe.startUninterruptedRevalidation)===!0,vn(Zn.location,Zn.matches),Ea=(Oe&&Oe.preventScrollReset)===!0,ji=(Oe&&Oe.enableViewTransition)===!0;let et=En||Gt,Ot=Oe&&Oe.overrideNavigation,It=U(et,Ae,Qn),Mn=(Oe&&Oe.flushSync)===!0,mn=_r(It,et,Ae.pathname);if(mn.active&&mn.matches&&(It=mn.matches),!It){let{error:Hr,notFoundMatches:Ar,route:yi}=tn(Ae.pathname);vi(Ae,{matches:Ar,loaderData:{},errors:{[yi.id]:Hr}},{flushSync:Mn});return}if(Zn.initialized&&!Nr&&On(Zn.location,Ae)&&!(Oe&&Oe.submission&&Xr(Oe.submission.formMethod))){vi(Ae,{matches:It},{flushSync:Mn});return}wa=new AbortController;let At=ye(de.history,Ae,wa.signal,Oe&&Oe.submission),Ut;if(Oe&&Oe.pendingError)Ut=[hn(It).route.id,{type:C.error,error:Oe.pendingError}];else if(Oe&&Oe.submission&&Xr(Oe.submission.formMethod)){let Hr=await ua(At,Ae,Oe.submission,It,mn.active,{replace:Oe.replace,flushSync:Mn});if(Hr.shortCircuited)return;if(Hr.pendingActionResult){let[Ar,yi]=Hr.pendingActionResult;if(Un(yi)&&Pn(yi.error)&&yi.error.status===404){wa=null,vi(Ae,{matches:Hr.matches,loaderData:{},errors:{[Ar]:yi.error}});return}}It=Hr.matches||It,Ut=Hr.pendingActionResult,Ot=sn(Ae,Oe.submission),Mn=!1,mn.active=!1,At=ye(de.history,At.url,At.signal)}let{shortCircuited:jn,matches:Jt,loaderData:dr,errors:wr}=await Sa(At,Ae,It,mn.active,Ot,Oe&&Oe.submission,Oe&&Oe.fetcherSubmission,Oe&&Oe.replace,Oe&&Oe.initialHydration===!0,Mn,Ut);jn||(wa=null,vi(Ae,l({matches:Jt||It},un(Ut),{loaderData:dr,errors:wr})))}async function ua(le,Ae,Oe,et,Ot,It){It===void 0&&(It={}),Xe();let Mn=Rn(Ae,Oe);if(jr({navigation:Mn},{flushSync:It.flushSync===!0}),Ot){let Ut=await Br(et,Ae.pathname,le.signal);if(Ut.type==="aborted")return{shortCircuited:!0};if(Ut.type==="error"){let{boundaryId:jn,error:Jt}=or(Ae.pathname,Ut);return{matches:Ut.partialMatches,pendingActionResult:[jn,{type:C.error,error:Jt}]}}else if(Ut.matches)et=Ut.matches;else{let{notFoundMatches:jn,error:Jt,route:dr}=tn(Ae.pathname);return{matches:jn,pendingActionResult:[dr.id,{type:C.error,error:Jt}]}}}let mn,At=Ur(et,Ae);if(!At.route.action&&!At.route.lazy)mn={type:C.error,error:_t(405,{method:le.method,pathname:Ae.pathname,routeId:At.route.id})};else if(mn=(await Ie("action",le,[At],et))[0],le.signal.aborted)return{shortCircuited:!0};if(cr(mn)){let Ut;return It&&It.replace!=null?Ut=It.replace:Ut=Je(mn.response.headers.get("Location"),new URL(le.url),Qn)===Zn.location.pathname+Zn.location.search,await oe(le,mn,{submission:Oe,replace:Ut}),{shortCircuited:!0}}if(An(mn))throw _t(400,{type:"defer-action"});if(Un(mn)){let Ut=hn(et,At.route.id);return(It&&It.replace)!==!0&&(wi=g.Push),{matches:et,pendingActionResult:[Ut.route.id,mn]}}return{matches:et,pendingActionResult:[At.route.id,mn]}}async function Sa(le,Ae,Oe,et,Ot,It,Mn,mn,At,Ut,jn){let Jt=Ot||sn(Ae,It),dr=It||Mn||jt(Jt),wr=!Tr&&(!ai.v7_partialHydration||!At);if(et){if(wr){let za=Xt(jn);jr(l({navigation:Jt},za!==void 0?{actionData:za}:{}),{flushSync:Ut})}let Na=await Br(Oe,Ae.pathname,le.signal);if(Na.type==="aborted")return{shortCircuited:!0};if(Na.type==="error"){let{boundaryId:za,error:qa}=or(Ae.pathname,Na);return{matches:Na.partialMatches,loaderData:{},errors:{[za]:qa}}}else if(Na.matches)Oe=Na.matches;else{let{error:za,notFoundMatches:qa,route:no}=tn(Ae.pathname);return{matches:qa,loaderData:{},errors:{[no.id]:za}}}}let Hr=En||Gt,[Ar,yi]=Fe(de.history,Zn,Oe,dr,Ae,ai.v7_partialHydration&&At===!0,ai.v7_skipActionErrorRevalidation,Nr,ti,_i,ot,Le,ve,Hr,Qn,jn);if(rt(Na=>!(Oe&&Oe.some(za=>za.route.id===Na))||Ar&&Ar.some(za=>za.route.id===Na)),Ji=++ta,Ar.length===0&&yi.length===0){let Na=hi();return vi(Ae,l({matches:Oe,loaderData:{},errors:jn&&Un(jn[1])?{[jn[0]]:jn[1].error}:null},un(jn),Na?{fetchers:new Map(Zn.fetchers)}:{}),{flushSync:Ut}),{shortCircuited:!0}}if(wr){let Na={};if(!et){Na.navigation=Jt;let za=Xt(jn);za!==void 0&&(Na.actionData=za)}yi.length>0&&(Na.fetchers=V(yi)),jr(Na,{flushSync:Ut})}yi.forEach(Na=>{Ii.has(Na.key)&&yr(Na.key),Na.controller&&Ii.set(Na.key,Na.controller)});let Rr=()=>yi.forEach(Na=>yr(Na.key));wa&&wa.signal.addEventListener("abort",Rr);let{loaderResults:si,fetcherResults:Si}=await Ue(Zn.matches,Oe,Ar,yi,le);if(le.signal.aborted)return{shortCircuited:!0};wa&&wa.signal.removeEventListener("abort",Rr),yi.forEach(Na=>Ii.delete(Na.key));let $i=qt([...si,...Si]);if($i){if($i.idx>=Ar.length){let Na=yi[$i.idx-Ar.length].key;ve.add(Na)}return await oe(le,$i.result,{replace:mn}),{shortCircuited:!0}}let{loaderData:Hi,errors:Oa}=Pt(Zn,Oe,Ar,si,jn,yi,Si,Lt);Lt.forEach((Na,za)=>{Na.subscribe(qa=>{(qa||Na.done)&&Lt.delete(za)})}),ai.v7_partialHydration&&At&&Zn.errors&&Object.entries(Zn.errors).filter(Na=>{let[za]=Na;return!Ar.some(qa=>qa.route.id===za)}).forEach(Na=>{let[za,qa]=Na;Oa=Object.assign(Oa||{},{[za]:qa})});let Ma=hi(),Ua=Ti(Ji),Xa=Ma||Ua||yi.length>0;return l({matches:Oe,loaderData:Hi,errors:Oa},Xa?{fetchers:new Map(Zn.fetchers)}:{})}function Xt(le){if(le&&!Un(le[1]))return{[le[0]]:le[1].data};if(Zn.actionData)return Object.keys(Zn.actionData).length===0?null:Zn.actionData}function V(le){return le.forEach(Ae=>{let Oe=Zn.fetchers.get(Ae.key),et=H(void 0,Oe?Oe.data:void 0);Zn.fetchers.set(Ae.key,et)}),new Map(Zn.fetchers)}function Y(le,Ae,Oe,et){if(Qt)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ii.has(le)&&yr(le);let Ot=(et&&et.unstable_flushSync)===!0,It=En||Gt,Mn=fe(Zn.location,Zn.matches,Qn,ai.v7_prependBasename,Oe,ai.v7_relativeSplatPath,Ae,et?.relative),mn=U(It,Mn,Qn),At=_r(mn,It,Mn);if(At.active&&At.matches&&(mn=At.matches),!mn){kt(le,Ae,_t(404,{pathname:Mn}),{flushSync:Ot});return}let{path:Ut,submission:jn,error:Jt}=K(ai.v7_normalizeFormMethod,!0,Mn,et);if(Jt){kt(le,Ae,Jt,{flushSync:Ot});return}let dr=Ur(mn,Ut);if(Ea=(et&&et.preventScrollReset)===!0,jn&&Xr(jn.formMethod)){D(le,Ae,Ut,dr,mn,At.active,Ot,jn);return}Le.set(le,{routeId:Ae,path:Ut}),P(le,Ae,Ut,dr,mn,At.active,Ot,jn)}async function D(le,Ae,Oe,et,Ot,It,Mn,mn){Xe(),Le.delete(le);function At(no){if(!no.route.action&&!no.route.lazy){let wo=_t(405,{method:mn.formMethod,pathname:Oe,routeId:Ae});return kt(le,Ae,wo,{flushSync:Mn}),!0}return!1}if(!It&&At(et))return;let Ut=Zn.fetchers.get(le);dt(le,Be(mn,Ut),{flushSync:Mn});let jn=new AbortController,Jt=ye(de.history,Oe,jn.signal,mn);if(It){let no=await Br(Ot,Oe,Jt.signal);if(no.type==="aborted")return;if(no.type==="error"){let{error:wo}=or(Oe,no);kt(le,Ae,wo,{flushSync:Mn});return}else if(no.matches){if(Ot=no.matches,et=Ur(Ot,Oe),At(et))return}else{kt(le,Ae,_t(404,{pathname:Oe}),{flushSync:Mn});return}}Ii.set(le,jn);let dr=ta,Hr=(await Ie("action",Jt,[et],Ot))[0];if(Jt.signal.aborted){Ii.get(le)===jn&&Ii.delete(le);return}if(ai.v7_fetcherPersist&&ot.has(le)){if(cr(Hr)||Un(Hr)){dt(le,wn(void 0));return}}else{if(cr(Hr))if(Ii.delete(le),Ji>dr){dt(le,wn(void 0));return}else return ve.add(le),dt(le,H(mn)),oe(Jt,Hr,{fetcherSubmission:mn});if(Un(Hr)){kt(le,Ae,Hr.error);return}}if(An(Hr))throw _t(400,{type:"defer-action"});let Ar=Zn.navigation.location||Zn.location,yi=ye(de.history,Ar,jn.signal),Rr=En||Gt,si=Zn.navigation.state!=="idle"?U(Rr,Zn.navigation.location,Qn):Zn.matches;h(si,"Didn't find any matches after fetcher action");let Si=++ta;k.set(le,Si);let $i=H(mn,Hr.data);Zn.fetchers.set(le,$i);let[Hi,Oa]=Fe(de.history,Zn,si,mn,Ar,!1,ai.v7_skipActionErrorRevalidation,Nr,ti,_i,ot,Le,ve,Rr,Qn,[et.route.id,Hr]);Oa.filter(no=>no.key!==le).forEach(no=>{let wo=no.key,go=Zn.fetchers.get(wo),Ka=H(void 0,go?go.data:void 0);Zn.fetchers.set(wo,Ka),Ii.has(wo)&&yr(wo),no.controller&&Ii.set(wo,no.controller)}),jr({fetchers:new Map(Zn.fetchers)});let Ma=()=>Oa.forEach(no=>yr(no.key));jn.signal.addEventListener("abort",Ma);let{loaderResults:Ua,fetcherResults:Xa}=await Ue(Zn.matches,si,Hi,Oa,yi);if(jn.signal.aborted)return;jn.signal.removeEventListener("abort",Ma),k.delete(le),Ii.delete(le),Oa.forEach(no=>Ii.delete(no.key));let Na=qt([...Ua,...Xa]);if(Na){if(Na.idx>=Hi.length){let no=Oa[Na.idx-Hi.length].key;ve.add(no)}return oe(yi,Na.result)}let{loaderData:za,errors:qa}=Pt(Zn,Zn.matches,Hi,Ua,void 0,Oa,Xa,Lt);if(Zn.fetchers.has(le)){let no=wn(Hr.data);Zn.fetchers.set(le,no)}Ti(Si),Zn.navigation.state==="loading"&&Si>Ji?(h(wi,"Expected pending action"),wa&&wa.abort(),vi(Zn.navigation.location,{matches:si,loaderData:za,errors:qa,fetchers:new Map(Zn.fetchers)})):(jr({errors:qa,loaderData:zt(Zn.loaderData,za,si,qa),fetchers:new Map(Zn.fetchers)}),Nr=!1)}async function P(le,Ae,Oe,et,Ot,It,Mn,mn){let At=Zn.fetchers.get(le);dt(le,H(mn,At?At.data:void 0),{flushSync:Mn});let Ut=new AbortController,jn=ye(de.history,Oe,Ut.signal);if(It){let Hr=await Br(Ot,Oe,jn.signal);if(Hr.type==="aborted")return;if(Hr.type==="error"){let{error:Ar}=or(Oe,Hr);kt(le,Ae,Ar,{flushSync:Mn});return}else if(Hr.matches)Ot=Hr.matches,et=Ur(Ot,Oe);else{kt(le,Ae,_t(404,{pathname:Oe}),{flushSync:Mn});return}}Ii.set(le,Ut);let Jt=ta,wr=(await Ie("loader",jn,[et],Ot))[0];if(An(wr)&&(wr=await ki(wr,jn.signal,!0)||wr),Ii.get(le)===Ut&&Ii.delete(le),!jn.signal.aborted){if(ot.has(le)){dt(le,wn(void 0));return}if(cr(wr))if(Ji>Jt){dt(le,wn(void 0));return}else{ve.add(le),await oe(jn,wr);return}if(Un(wr)){kt(le,Ae,wr.error);return}h(!An(wr),"Unhandled fetcher deferred data"),dt(le,wn(wr.data))}}async function oe(le,Ae,Oe){let{submission:et,fetcherSubmission:Ot,replace:It}=Oe===void 0?{}:Oe;Ae.response.headers.has("X-Remix-Revalidate")&&(Nr=!0);let Mn=Ae.response.headers.get("Location");h(Mn,"Expected a Location header on the redirect Response"),Mn=Je(Mn,new URL(le.url),Qn);let mn=S(Zn.location,Mn,{_isRedirect:!0});if(vt){let wr=!1;if(Ae.response.headers.has("X-Remix-Reload-Document"))wr=!0;else if(Fn.test(Mn)){const Hr=de.history.createURL(Mn);wr=Hr.origin!==Ve.location.origin||tt(Hr.pathname,Qn)==null}if(wr){It?Ve.location.replace(Mn):Ve.location.assign(Mn);return}}wa=null;let At=It===!0||Ae.response.headers.has("X-Remix-Replace")?g.Replace:g.Push,{formMethod:Ut,formAction:jn,formEncType:Jt}=Zn.navigation;!et&&!Ot&&Ut&&jn&&Jt&&(et=jt(Zn.navigation));let dr=et||Ot;if(tr.has(Ae.response.status)&&dr&&Xr(dr.formMethod))await Yi(At,mn,{submission:l({},dr,{formAction:Mn}),preventScrollReset:Ea});else{let wr=sn(mn,et);await Yi(At,mn,{overrideNavigation:wr,fetcherSubmission:Ot,preventScrollReset:Ea})}}async function Ie(le,Ae,Oe,et){try{let Ot=await Ke(Or,le,Ae,Oe,et,Tt,nt);return await Promise.all(Ot.map((It,Mn)=>{if(Lr(It)){let mn=It.result;return{type:C.redirect,response:We(mn,Ae,Oe[Mn].route.id,et,Qn,ai.v7_relativeSplatPath)}}return pt(It)}))}catch(Ot){return Oe.map(()=>({type:C.error,error:Ot}))}}async function Ue(le,Ae,Oe,et,Ot){let[It,...Mn]=await Promise.all([Oe.length?Ie("loader",Ot,Oe,Ae):[],...et.map(mn=>{if(mn.matches&&mn.match&&mn.controller){let At=ye(de.history,mn.path,mn.controller.signal);return Ie("loader",At,[mn.match],mn.matches).then(Ut=>Ut[0])}else return Promise.resolve({type:C.error,error:_t(404,{pathname:mn.path})})})]);return await Promise.all([ni(le,Oe,It,It.map(()=>Ot.signal),!1,Zn.loaderData),ni(le,et.map(mn=>mn.match),Mn,et.map(mn=>mn.controller?mn.controller.signal:null),!0)]),{loaderResults:It,fetcherResults:Mn}}function Xe(){Nr=!0,ti.push(...rt()),Le.forEach((le,Ae)=>{Ii.has(Ae)&&(_i.add(Ae),yr(Ae))})}function dt(le,Ae,Oe){Oe===void 0&&(Oe={}),Zn.fetchers.set(le,Ae),jr({fetchers:new Map(Zn.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function kt(le,Ae,Oe,et){et===void 0&&(et={});let Ot=hn(Zn.matches,Ae);Vn(le),jr({errors:{[Ot.route.id]:Oe},fetchers:new Map(Zn.fetchers)},{flushSync:(et&&et.flushSync)===!0})}function dn(le){return ai.v7_fetcherPersist&&(Ye.set(le,(Ye.get(le)||0)+1),ot.has(le)&&ot.delete(le)),Zn.fetchers.get(le)||Wn}function Vn(le){let Ae=Zn.fetchers.get(le);Ii.has(le)&&!(Ae&&Ae.state==="loading"&&k.has(le))&&yr(le),Le.delete(le),k.delete(le),ve.delete(le),ot.delete(le),_i.delete(le),Zn.fetchers.delete(le)}function qn(le){if(ai.v7_fetcherPersist){let Ae=(Ye.get(le)||0)-1;Ae<=0?(Ye.delete(le),ot.add(le)):Ye.set(le,Ae)}else Vn(le);jr({fetchers:new Map(Zn.fetchers)})}function yr(le){let Ae=Ii.get(le);h(Ae,"Expected fetch controller: "+le),Ae.abort(),Ii.delete(le)}function ci(le){for(let Ae of le){let Oe=dn(Ae),et=wn(Oe.data);Zn.fetchers.set(Ae,et)}}function hi(){let le=[],Ae=!1;for(let Oe of ve){let et=Zn.fetchers.get(Oe);h(et,"Expected fetcher: "+Oe),et.state==="loading"&&(ve.delete(Oe),le.push(Oe),Ae=!0)}return ci(le),Ae}function Ti(le){let Ae=[];for(let[Oe,et]of k)if(et<le){let Ot=Zn.fetchers.get(Oe);h(Ot,"Expected fetcher: "+Oe),Ot.state==="loading"&&(yr(Oe),k.delete(Oe),Ae.push(Oe))}return ci(Ae),Ae.length>0}function Vi(le,Ae){let Oe=Zn.blockers.get(le)||er;return an.get(le)!==Ae&&an.set(le,Ae),Oe}function Di(le){Zn.blockers.delete(le),an.delete(le)}function Pi(le,Ae){let Oe=Zn.blockers.get(le)||er;h(Oe.state==="unblocked"&&Ae.state==="blocked"||Oe.state==="blocked"&&Ae.state==="blocked"||Oe.state==="blocked"&&Ae.state==="proceeding"||Oe.state==="blocked"&&Ae.state==="unblocked"||Oe.state==="proceeding"&&Ae.state==="unblocked","Invalid blocker state transition: "+Oe.state+" -> "+Ae.state);let et=new Map(Zn.blockers);et.set(le,Ae),jr({blockers:et})}function mt(le){let{currentLocation:Ae,nextLocation:Oe,historyAction:et}=le;if(an.size===0)return;an.size>1&&E(!1,"A router only supports one blocker at a time");let Ot=Array.from(an.entries()),[It,Mn]=Ot[Ot.length-1],mn=Zn.blockers.get(It);if(!(mn&&mn.state==="proceeding")&&Mn({currentLocation:Ae,nextLocation:Oe,historyAction:et}))return It}function tn(le){let Ae=_t(404,{pathname:le}),Oe=En||Gt,{matches:et,route:Ot}=xt(Oe);return rt(),{notFoundMatches:et,route:Ot,error:Ae}}function or(le,Ae){return{boundaryId:hn(Ae.partialMatches).route.id,error:_t(400,{type:"route-discovery",pathname:le,message:Ae.error!=null&&"message"in Ae.error?Ae.error:String(Ae.error)})}}function rt(le){let Ae=[];return Lt.forEach((Oe,et)=>{(!le||le(et))&&(Oe.cancel(),Ae.push(et),Lt.delete(et))}),Ae}function St(le,Ae,Oe){if(Ni=le,Qi=Ae,ea=Oe||null,!ir&&Zn.navigation===Cn){ir=!0;let et=Ln(Zn.location,Zn.matches);et!=null&&jr({restoreScrollPosition:et})}return()=>{Ni=null,Qi=null,ea=null}}function _n(le,Ae){return ea&&ea(le,Ae.map(et=>ee(et,Zn.loaderData)))||le.key}function vn(le,Ae){if(Ni&&Qi){let Oe=_n(le,Ae);Ni[Oe]=Qi()}}function Ln(le,Ae){if(Ni){let Oe=_n(le,Ae),et=Ni[Oe];if(typeof et=="number")return et}return null}function _r(le,Ae,Oe){if(Pr){if(Qr.has(Oe))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:$(Ae,Oe,Qn,!0)}}else return{active:!0,matches:$(Ae,Oe,Qn,!0)||[]}}return{active:!1,matches:null}}async function Br(le,Ae,Oe){let et=le;for(;;){let Ot=En==null,It=En||Gt;try{await Yn(Pr,Ae,et,It,Tt,nt,nr,Oe)}catch(At){return{type:"error",error:At,partialMatches:et}}finally{Ot&&(Gt=[...Gt])}if(Oe.aborted)return{type:"aborted"};let Mn=U(It,Ae,Qn);if(Mn)return Kr(Ae,Qr),{type:"success",matches:Mn};let mn=$(It,Ae,Qn,!0);if(!mn||et.length===mn.length&&et.every((At,Ut)=>At.route.id===mn[Ut].route.id))return Kr(Ae,Qr),{type:"success",matches:null};et=mn}}function Kr(le,Ae){if(Ae.size>=ei){let Oe=Ae.values().next().value;Ae.delete(Oe)}Ae.add(le)}function Jr(le){Tt={},En=I(le,nt,void 0,Tt)}function ii(le,Ae){let Oe=En==null;ht(le,Ae,En||Gt,Tt,nt),Oe&&(Gt=[...Gt],jr({}))}return zn={get basename(){return Qn},get future(){return ai},get state(){return Zn},get routes(){return Gt},get window(){return Ve},initialize:$r,subscribe:qr,enableScrollRestoration:St,navigate:Mi,fetch:Y,revalidate:ra,createHref:le=>de.history.createHref(le),encodeLocation:le=>de.history.encodeLocation(le),getFetcher:dn,deleteFetcher:qn,dispose:Fr,getBlocker:Vi,deleteBlocker:Di,patchRoutes:ii,_internalFetchControllers:Ii,_internalActiveDeferreds:Lt,_internalSetRoutes:Jr},zn}const Jn=Symbol("deferred");function Nn(de,Ve){h(de.length>0,"You must provide a non-empty routes array to createStaticHandler");let vt={},Qt=(Ve?Ve.basename:null)||"/",nt;if(Ve!=null&&Ve.mapRouteProperties)nt=Ve.mapRouteProperties;else if(Ve!=null&&Ve.detectErrorBoundary){let mi=Ve.detectErrorBoundary;nt=ei=>({hasErrorBoundary:mi(ei)})}else nt=en;let Tt=l({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},Ve?Ve.future:null),Gt=I(de,nt,void 0,vt);async function En(mi,ei){let{requestContext:Qr,skipLoaderErrorBubbling:Ni,unstable_dataStrategy:ea}=ei===void 0?{}:ei,Qi=new URL(mi.url),ir=mi.method,xr=S("",d(Qi),null,"default"),di=U(Gt,xr,Qt);if(!Yr(ir)&&ir!=="HEAD"){let zn=_t(405,{method:ir}),{matches:Zn,route:wi}=xt(Gt);return{basename:Qt,location:xr,matches:Zn,loaderData:{},actionData:null,errors:{[wi.id]:zn},statusCode:zn.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!di){let zn=_t(404,{pathname:xr.pathname}),{matches:Zn,route:wi}=xt(Gt);return{basename:Qt,location:xr,matches:Zn,loaderData:{},actionData:null,errors:{[wi.id]:zn},statusCode:zn.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let ft=await Or(mi,xr,di,Qr,ea||null,Ni===!0,null);return ar(ft)?ft:l({location:xr,basename:Qt},ft)}async function Qn(mi,ei){let{routeId:Qr,requestContext:Ni,unstable_dataStrategy:ea}=ei===void 0?{}:ei,Qi=new URL(mi.url),ir=mi.method,xr=S("",d(Qi),null,"default"),di=U(Gt,xr,Qt);if(!Yr(ir)&&ir!=="HEAD"&&ir!=="OPTIONS")throw _t(405,{method:ir});if(!di)throw _t(404,{pathname:xr.pathname});let ft=Qr?di.find(Ea=>Ea.route.id===Qr):Ur(di,xr);if(Qr&&!ft)throw _t(403,{pathname:xr.pathname,routeId:Qr});if(!ft)throw _t(404,{pathname:xr.pathname});let zn=await Or(mi,xr,di,Ni,ea||null,!1,ft);if(ar(zn))return zn;let Zn=zn.errors?Object.values(zn.errors)[0]:void 0;if(Zn!==void 0)throw Zn;if(zn.actionData)return Object.values(zn.actionData)[0];if(zn.loaderData){var wi;let Ea=Object.values(zn.loaderData)[0];return(wi=zn.activeDeferreds)!=null&&wi[ft.route.id]&&(Ea[Jn]=zn.activeDeferreds[ft.route.id]),Ea}}async function Or(mi,ei,Qr,Ni,ea,Qi,ir){h(mi.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(Xr(mi.method.toLowerCase()))return await Pr(mi,Qr,ir||Ur(Qr,ei),Ni,ea,Qi,ir!=null);let xr=await ai(mi,Qr,Ni,ea,Qi,ir);return ar(xr)?xr:l({},xr,{actionData:null,actionHeaders:{}})}catch(xr){if(Bn(xr)&&ar(xr.result)){if(xr.type===C.error)throw xr.result;return xr.result}if(Cr(xr))return xr;throw xr}}async function Pr(mi,ei,Qr,Ni,ea,Qi,ir){let xr;if(!Qr.route.action&&!Qr.route.lazy){let zn=_t(405,{method:mi.method,pathname:new URL(mi.url).pathname,routeId:Qr.route.id});if(ir)throw zn;xr={type:C.error,error:zn}}else xr=(await xi("action",mi,[Qr],ei,ir,Ni,ea))[0],mi.signal.aborted&&bt(mi,ir,Tt);if(cr(xr))throw new Response(null,{status:xr.response.status,headers:{Location:xr.response.headers.get("Location")}});if(An(xr)){let zn=_t(400,{type:"defer-action"});if(ir)throw zn;xr={type:C.error,error:zn}}if(ir){if(Un(xr))throw xr.error;return{matches:[Qr],loaderData:{},actionData:{[Qr.route.id]:xr.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let di=new Request(mi.url,{headers:mi.headers,redirect:mi.redirect,signal:mi.signal});if(Un(xr)){let zn=Qi?Qr:hn(ei,Qr.route.id),Zn=await ai(di,ei,Ni,ea,Qi,null,[zn.route.id,xr]);return l({},Zn,{statusCode:Pn(xr.error)?xr.error.status:xr.statusCode!=null?xr.statusCode:500,actionData:null,actionHeaders:l({},xr.headers?{[Qr.route.id]:xr.headers}:{})})}let ft=await ai(di,ei,Ni,ea,Qi,null);return l({},ft,{actionData:{[Qr.route.id]:xr.data}},xr.statusCode?{statusCode:xr.statusCode}:{},{actionHeaders:xr.headers?{[Qr.route.id]:xr.headers}:{}})}async function ai(mi,ei,Qr,Ni,ea,Qi,ir){let xr=Qi!=null;if(xr&&!(Qi!=null&&Qi.route.loader)&&!(Qi!=null&&Qi.route.lazy))throw _t(400,{method:mi.method,pathname:new URL(mi.url).pathname,routeId:Qi?.route.id});let ft=(Qi?[Qi]:ir&&Un(ir[1])?he(ei,ir[0]):ei).filter(wa=>wa.route.loader||wa.route.lazy);if(ft.length===0)return{matches:ei,loaderData:ei.reduce((wa,ji)=>Object.assign(wa,{[ji.route.id]:null}),{}),errors:ir&&Un(ir[1])?{[ir[0]]:ir[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let zn=await xi("loader",mi,ft,ei,xr,Qr,Ni);mi.signal.aborted&&bt(mi,xr,Tt);let Zn=new Map,wi=qe(ei,ft,zn,ir,Zn,ea),Ea=new Set(ft.map(wa=>wa.route.id));return ei.forEach(wa=>{Ea.has(wa.route.id)||(wi.loaderData[wa.route.id]=null)}),l({},wi,{matches:ei,activeDeferreds:Zn.size>0?Object.fromEntries(Zn.entries()):null})}async function xi(mi,ei,Qr,Ni,ea,Qi,ir){let xr=await Ke(ir||we,mi,ei,Qr,Ni,vt,nt,Qi);return await Promise.all(xr.map((di,ft)=>{if(Lr(di)){let zn=di.result;throw We(zn,ei,Qr[ft].route.id,Ni,Qt,Tt.v7_relativeSplatPath)}if(ar(di.result)&&ea)throw di;return pt(di)}))}return{dataRoutes:Gt,query:En,queryRoute:Qn}}function kr(de,Ve,vt){return l({},Ve,{statusCode:Pn(vt)?vt.status:500,errors:{[Ve._deepestRenderedBoundaryId||de[0].id]:vt}})}function bt(de,Ve,vt){if(vt.v7_throwAbortReason&&de.signal.reason!==void 0)throw de.signal.reason;let Qt=Ve?"queryRoute":"query";throw new Error(Qt+"() call aborted: "+de.method+" "+de.url)}function ne(de){return de!=null&&("formData"in de&&de.formData!=null||"body"in de&&de.body!==void 0)}function fe(de,Ve,vt,Qt,nt,Tt,Gt,En){let Qn,Or;if(Gt){Qn=[];for(let ai of Ve)if(Qn.push(ai),ai.route.id===Gt){Or=ai;break}}else Qn=Ve,Or=Ve[Ve.length-1];let Pr=Mt(nt||".",Dn(Qn,Tt),tt(de.pathname,vt)||de.pathname,En==="path");return nt==null&&(Pr.search=de.search,Pr.hash=de.hash),(nt==null||nt===""||nt===".")&&Or&&Or.route.index&&!zr(Pr.search)&&(Pr.search=Pr.search?Pr.search.replace(/^\?/,"?index&"):"?index"),Qt&&vt!=="/"&&(Pr.pathname=Pr.pathname==="/"?vt:Tn([vt,Pr.pathname])),d(Pr)}function K(de,Ve,vt,Qt){if(!Qt||!ne(Qt))return{path:vt};if(Qt.formMethod&&!Yr(Qt.formMethod))return{path:vt,error:_t(405,{method:Qt.formMethod})};let nt=()=>({path:vt,error:_t(400,{type:"invalid-body"})}),Tt=Qt.formMethod||"get",Gt=de?Tt.toUpperCase():Tt.toLowerCase(),En=fn(vt);if(Qt.body!==void 0){if(Qt.formEncType==="text/plain"){if(!Xr(Gt))return nt();let xi=typeof Qt.body=="string"?Qt.body:Qt.body instanceof FormData||Qt.body instanceof URLSearchParams?Array.from(Qt.body.entries()).reduce((mi,ei)=>{let[Qr,Ni]=ei;return""+mi+Qr+"="+Ni+` `},""):String(Qt.body);return{path:vt,submission:{formMethod:Gt,formAction:En,formEncType:Qt.formEncType,formData:void 0,json:void 0,text:xi}}}else if(Qt.formEncType==="application/json"){if(!Xr(Gt))return nt();try{let xi=typeof Qt.body=="string"?JSON.parse(Qt.body):Qt.body;return{path:vt,submission:{formMethod:Gt,formAction:En,formEncType:Qt.formEncType,formData:void 0,json:xi,text:void 0}}}catch{return nt()}}}h(typeof FormData=="function","FormData is not available in this environment");let Qn,Or;if(Qt.formData)Qn=Qe(Qt.formData),Or=Qt.formData;else if(Qt.body instanceof FormData)Qn=Qe(Qt.body),Or=Qt.body;else if(Qt.body instanceof URLSearchParams)Qn=Qt.body,Or=ze(Qn);else if(Qt.body==null)Qn=new URLSearchParams,Or=new FormData;else try{Qn=new URLSearchParams(Qt.body),Or=ze(Qn)}catch{return nt()}let Pr={formMethod:Gt,formAction:En,formEncType:Qt&&Qt.formEncType||"application/x-www-form-urlencoded",formData:Or,json:void 0,text:void 0};if(Xr(Pr.formMethod))return{path:vt,submission:Pr};let ai=O(vt);return Ve&&ai.search&&zr(ai.search)&&Qn.append("index",""),ai.search="?"+Qn,{path:d(ai),submission:Pr}}function he(de,Ve){let vt=de;if(Ve){let Qt=de.findIndex(nt=>nt.route.id===Ve);Qt>=0&&(vt=de.slice(0,Qt))}return vt}function Fe(de,Ve,vt,Qt,nt,Tt,Gt,En,Qn,Or,Pr,ai,xi,mi,ei,Qr){let Ni=Qr?Un(Qr[1])?Qr[1].error:Qr[1].data:void 0,ea=de.createURL(Ve.location),Qi=de.createURL(nt),ir=Qr&&Un(Qr[1])?Qr[0]:void 0,xr=ir?he(vt,ir):vt,di=Qr?Qr[1].statusCode:void 0,ft=Gt&&di&&di>=400,zn=xr.filter((wi,Ea)=>{let{route:wa}=wi;if(wa.lazy)return!0;if(wa.loader==null)return!1;if(Tt)return typeof wa.loader!="function"||wa.loader.hydrate?!0:Ve.loaderData[wa.id]===void 0&&(!Ve.errors||Ve.errors[wa.id]===void 0);if(Nt(Ve.loaderData,Ve.matches[Ea],wi)||Qn.some(Xn=>Xn===wi.route.id))return!0;let ji=Ve.matches[Ea],Dt=wi;return pn(wi,l({currentUrl:ea,currentParams:ji.params,nextUrl:Qi,nextParams:Dt.params},Qt,{actionResult:Ni,actionStatus:di,defaultShouldRevalidate:ft?!1:En||ea.pathname+ea.search===Qi.pathname+Qi.search||ea.search!==Qi.search||ln(ji,Dt)}))}),Zn=[];return ai.forEach((wi,Ea)=>{if(Tt||!vt.some(Tr=>Tr.route.id===wi.routeId)||Pr.has(Ea))return;let wa=U(mi,wi.path,ei);if(!wa){Zn.push({key:Ea,routeId:wi.routeId,path:wi.path,matches:null,match:null,controller:null});return}let ji=Ve.fetchers.get(Ea),Dt=Ur(wa,wi.path),Xn=!1;xi.has(Ea)?Xn=!1:Or.has(Ea)?(Or.delete(Ea),Xn=!0):ji&&ji.state!=="idle"&&ji.data===void 0?Xn=En:Xn=pn(Dt,l({currentUrl:ea,currentParams:Ve.matches[Ve.matches.length-1].params,nextUrl:Qi,nextParams:vt[vt.length-1].params},Qt,{actionResult:Ni,actionStatus:di,defaultShouldRevalidate:ft?!1:En})),Xn&&Zn.push({key:Ea,routeId:wi.routeId,path:wi.path,matches:wa,match:Dt,controller:new AbortController})}),[zn,Zn]}function Nt(de,Ve,vt){let Qt=!Ve||vt.route.id!==Ve.route.id,nt=de[vt.route.id]===void 0;return Qt||nt}function ln(de,Ve){let vt=de.route.path;return de.pathname!==Ve.pathname||vt!=null&&vt.endsWith("*")&&de.params["*"]!==Ve.params["*"]}function pn(de,Ve){if(de.route.shouldRevalidate){let vt=de.route.shouldRevalidate(Ve);if(typeof vt=="boolean")return vt}return Ve.defaultShouldRevalidate}async function Yn(de,Ve,vt,Qt,nt,Tt,Gt,En){let Qn=[Ve,...vt.map(Or=>Or.route.id)].join("-");try{let Or=Gt.get(Qn);Or||(Or=de({path:Ve,matches:vt,patch:(Pr,ai)=>{En.aborted||ht(Pr,ai,Qt,nt,Tt)}}),Gt.set(Qn,Or)),Or&&Gn(Or)&&await Or}finally{Gt.delete(Qn)}}function ht(de,Ve,vt,Qt,nt){if(de){var Tt;let Gt=Qt[de];h(Gt,"No route found to patch children into: routeId = "+de);let En=I(Ve,nt,[de,"patch",String(((Tt=Gt.children)==null?void 0:Tt.length)||"0")],Qt);Gt.children?Gt.children.push(...En):Gt.children=En}else{let Gt=I(Ve,nt,["patch",String(vt.length||"0")],Qt);vt.push(...Gt)}}async function De(de,Ve,vt){if(!de.lazy)return;let Qt=await de.lazy();if(!de.lazy)return;let nt=vt[de.id];h(nt,"No route found in manifest");let Tt={};for(let Gt in Qt){let Qn=nt[Gt]!==void 0&&Gt!=="hasErrorBoundary";E(!Qn,'Route "'+nt.id+'" has a static property "'+Gt+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+Gt+'" will be ignored.')),!Qn&&!L.has(Gt)&&(Tt[Gt]=Qt[Gt])}Object.assign(nt,Tt),Object.assign(nt,l({},Ve(nt),{lazy:void 0}))}function we(de){return Promise.all(de.matches.map(Ve=>Ve.resolve()))}async function Ke(de,Ve,vt,Qt,nt,Tt,Gt,En){let Qn=Qt.reduce((ai,xi)=>ai.add(xi.route.id),new Set),Or=new Set,Pr=await de({matches:nt.map(ai=>{let xi=Qn.has(ai.route.id);return l({},ai,{shouldLoad:xi,resolve:ei=>(Or.add(ai.route.id),xi?be(Ve,vt,ai,Tt,Gt,ei,En):Promise.resolve({type:C.data,result:void 0}))})}),request:vt,params:nt[0].params,context:En});return nt.forEach(ai=>h(Or.has(ai.route.id),'`match.resolve()` was not called for route id "'+ai.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),Pr.filter((ai,xi)=>Qn.has(nt[xi].route.id))}async function be(de,Ve,vt,Qt,nt,Tt,Gt){let En,Qn,Or=Pr=>{let ai,xi=new Promise((Qr,Ni)=>ai=Ni);Qn=()=>ai(),Ve.signal.addEventListener("abort",Qn);let mi=Qr=>typeof Pr!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+de+'" [routeId: '+vt.route.id+"]"))):Pr({request:Ve,params:vt.params,context:Gt},...Qr!==void 0?[Qr]:[]),ei;return Tt?ei=Tt(Qr=>mi(Qr)):ei=(async()=>{try{return{type:"data",result:await mi()}}catch(Qr){return{type:"error",result:Qr}}})(),Promise.race([ei,xi])};try{let Pr=vt.route[de];if(vt.route.lazy)if(Pr){let ai,[xi]=await Promise.all([Or(Pr).catch(mi=>{ai=mi}),De(vt.route,nt,Qt)]);if(ai!==void 0)throw ai;En=xi}else if(await De(vt.route,nt,Qt),Pr=vt.route[de],Pr)En=await Or(Pr);else if(de==="action"){let ai=new URL(Ve.url),xi=ai.pathname+ai.search;throw _t(405,{method:Ve.method,pathname:xi,routeId:vt.route.id})}else return{type:C.data,result:void 0};else if(Pr)En=await Or(Pr);else{let ai=new URL(Ve.url),xi=ai.pathname+ai.search;throw _t(404,{pathname:xi})}h(En.result!==void 0,"You defined "+(de==="action"?"an action":"a loader")+" for route "+('"'+vt.route.id+"\" but didn't return anything from your `"+de+"` ")+"function. Please return a value or `null`.")}catch(Pr){return{type:C.error,result:Pr}}finally{Qn&&Ve.signal.removeEventListener("abort",Qn)}return En}async function pt(de){let{result:Ve,type:vt}=de;if(ar(Ve)){let Or;try{let Pr=Ve.headers.get("Content-Type");Pr&&/\bapplication\/json\b/.test(Pr)?Ve.body==null?Or=null:Or=await Ve.json():Or=await Ve.text()}catch(Pr){return{type:C.error,error:Pr}}return vt===C.error?{type:C.error,error:new nn(Ve.status,Ve.statusText,Or),statusCode:Ve.status,headers:Ve.headers}:{type:C.data,data:Or,statusCode:Ve.status,headers:Ve.headers}}if(vt===C.error){if(mr(Ve)){var Qt;if(Ve.data instanceof Error){var nt;return{type:C.error,error:Ve.data,statusCode:(nt=Ve.init)==null?void 0:nt.status}}Ve=new nn(((Qt=Ve.init)==null?void 0:Qt.status)||500,void 0,Ve.data)}return{type:C.error,error:Ve,statusCode:Pn(Ve)?Ve.status:void 0}}if(hr(Ve)){var Tt,Gt;return{type:C.deferred,deferredData:Ve,statusCode:(Tt=Ve.init)==null?void 0:Tt.status,headers:((Gt=Ve.init)==null?void 0:Gt.headers)&&new Headers(Ve.init.headers)}}if(mr(Ve)){var En,Qn;return{type:C.data,data:Ve.data,statusCode:(En=Ve.init)==null?void 0:En.status,headers:(Qn=Ve.init)!=null&&Qn.headers?new Headers(Ve.init.headers):void 0}}return{type:C.data,data:Ve}}function We(de,Ve,vt,Qt,nt,Tt){let Gt=de.headers.get("Location");if(h(Gt,"Redirects returned/thrown from loaders/actions must have a Location header"),!Fn.test(Gt)){let En=Qt.slice(0,Qt.findIndex(Qn=>Qn.route.id===vt)+1);Gt=fe(new URL(Ve.url),En,nt,!0,Gt,Tt),de.headers.set("Location",Gt)}return de}function Je(de,Ve,vt){if(Fn.test(de)){let Qt=de,nt=Qt.startsWith("//")?new URL(Ve.protocol+Qt):new URL(Qt),Tt=tt(nt.pathname,vt)!=null;if(nt.origin===Ve.origin&&Tt)return nt.pathname+nt.search+nt.hash}return de}function ye(de,Ve,vt,Qt){let nt=de.createURL(fn(Ve)).toString(),Tt={signal:vt};if(Qt&&Xr(Qt.formMethod)){let{formMethod:Gt,formEncType:En}=Qt;Tt.method=Gt.toUpperCase(),En==="application/json"?(Tt.headers=new Headers({"Content-Type":En}),Tt.body=JSON.stringify(Qt.json)):En==="text/plain"?Tt.body=Qt.text:En==="application/x-www-form-urlencoded"&&Qt.formData?Tt.body=Qe(Qt.formData):Tt.body=Qt.formData}return new Request(nt,Tt)}function Qe(de){let Ve=new URLSearchParams;for(let[vt,Qt]of de.entries())Ve.append(vt,typeof Qt=="string"?Qt:Qt.name);return Ve}function ze(de){let Ve=new FormData;for(let[vt,Qt]of de.entries())Ve.append(vt,Qt);return Ve}function qe(de,Ve,vt,Qt,nt,Tt){let Gt={},En=null,Qn,Or=!1,Pr={},ai=Qt&&Un(Qt[1])?Qt[1].error:void 0;return vt.forEach((xi,mi)=>{let ei=Ve[mi].route.id;if(h(!cr(xi),"Cannot handle redirect results in processLoaderData"),Un(xi)){let Qr=xi.error;if(ai!==void 0&&(Qr=ai,ai=void 0),En=En||{},Tt)En[ei]=Qr;else{let Ni=hn(de,ei);En[Ni.route.id]==null&&(En[Ni.route.id]=Qr)}Gt[ei]=void 0,Or||(Or=!0,Qn=Pn(xi.error)?xi.error.status:500),xi.headers&&(Pr[ei]=xi.headers)}else An(xi)?(nt.set(ei,xi.deferredData),Gt[ei]=xi.deferredData.data,xi.statusCode!=null&&xi.statusCode!==200&&!Or&&(Qn=xi.statusCode),xi.headers&&(Pr[ei]=xi.headers)):(Gt[ei]=xi.data,xi.statusCode&&xi.statusCode!==200&&!Or&&(Qn=xi.statusCode),xi.headers&&(Pr[ei]=xi.headers))}),ai!==void 0&&Qt&&(En={[Qt[0]]:ai},Gt[Qt[0]]=void 0),{loaderData:Gt,errors:En,statusCode:Qn||200,loaderHeaders:Pr}}function Pt(de,Ve,vt,Qt,nt,Tt,Gt,En){let{loaderData:Qn,errors:Or}=qe(Ve,vt,Qt,nt,En,!1);for(let Pr=0;Pr<Tt.length;Pr++){let{key:ai,match:xi,controller:mi}=Tt[Pr];h(Gt!==void 0&&Gt[Pr]!==void 0,"Did not find corresponding fetcher result");let ei=Gt[Pr];if(!(mi&&mi.signal.aborted))if(Un(ei)){let Qr=hn(de.matches,xi?.route.id);Or&&Or[Qr.route.id]||(Or=l({},Or,{[Qr.route.id]:ei.error})),de.fetchers.delete(ai)}else if(cr(ei))h(!1,"Unhandled fetcher revalidation redirect");else if(An(ei))h(!1,"Unhandled fetcher deferred data");else{let Qr=wn(ei.data);de.fetchers.set(ai,Qr)}}return{loaderData:Qn,errors:Or}}function zt(de,Ve,vt,Qt){let nt=l({},Ve);for(let Tt of vt){let Gt=Tt.route.id;if(Ve.hasOwnProperty(Gt)?Ve[Gt]!==void 0&&(nt[Gt]=Ve[Gt]):de[Gt]!==void 0&&Tt.route.loader&&(nt[Gt]=de[Gt]),Qt&&Qt.hasOwnProperty(Gt))break}return nt}function un(de){return de?Un(de[1])?{actionData:{}}:{actionData:{[de[0]]:de[1].data}}:{}}function hn(de,Ve){return(Ve?de.slice(0,de.findIndex(Qt=>Qt.route.id===Ve)+1):[...de]).reverse().find(Qt=>Qt.route.hasErrorBoundary===!0)||de[0]}function xt(de){let Ve=de.length===1?de[0]:de.find(vt=>vt.index||!vt.path||vt.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:Ve}],route:Ve}}function _t(de,Ve){let{pathname:vt,routeId:Qt,method:nt,type:Tt,message:Gt}=Ve===void 0?{}:Ve,En="Unknown Server Error",Qn="Unknown @remix-run/router error";return de===400?(En="Bad Request",Tt==="route-discovery"?Qn='Unable to match URL "'+vt+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: `+Gt):nt&&vt&&Qt?Qn="You made a "+nt+' request to "'+vt+'" but '+('did not provide a `loader` for route "'+Qt+'", ')+"so there is no way to handle the request.":Tt==="defer-action"?Qn="defer() is not supported in actions":Tt==="invalid-body"&&(Qn="Unable to encode submission body")):de===403?(En="Forbidden",Qn='Route "'+Qt+'" does not match URL "'+vt+'"'):de===404?(En="Not Found",Qn='No route matches URL "'+vt+'"'):de===405&&(En="Method Not Allowed",nt&&vt&&Qt?Qn="You made a "+nt.toUpperCase()+' request to "'+vt+'" but '+('did not provide an `action` for route "'+Qt+'", ')+"so there is no way to handle the request.":nt&&(Qn='Invalid request method "'+nt.toUpperCase()+'"')),new nn(de||500,En,new Error(Qn),!0)}function qt(de){for(let Ve=de.length-1;Ve>=0;Ve--){let vt=de[Ve];if(cr(vt))return{result:vt,idx:Ve}}}function fn(de){let Ve=typeof de=="string"?O(de):de;return d(l({},Ve,{hash:""}))}function On(de,Ve){return de.pathname!==Ve.pathname||de.search!==Ve.search?!1:de.hash===""?Ve.hash!=="":de.hash===Ve.hash?!0:Ve.hash!==""}function Gn(de){return typeof de=="object"&&de!=null&&"then"in de}function Bn(de){return de!=null&&typeof de=="object"&&"type"in de&&"result"in de&&(de.type===C.data||de.type===C.error)}function Lr(de){return ar(de.result)&&on.has(de.result.status)}function An(de){return de.type===C.deferred}function Un(de){return de.type===C.error}function cr(de){return(de&&de.type)===C.redirect}function mr(de){return typeof de=="object"&&de!=null&&"type"in de&&"data"in de&&"init"in de&&de.type==="DataWithResponseInit"}function hr(de){let Ve=de;return Ve&&typeof Ve=="object"&&typeof Ve.data=="object"&&typeof Ve.subscribe=="function"&&typeof Ve.cancel=="function"&&typeof Ve.resolveData=="function"}function ar(de){return de!=null&&typeof de.status=="number"&&typeof de.statusText=="string"&&typeof de.headers=="object"&&typeof de.body<"u"}function Cr(de){if(!ar(de))return!1;let Ve=de.status,vt=de.headers.get("Location");return Ve>=300&&Ve<=399&&vt!=null}function Yr(de){return ur.has(de.toLowerCase())}function Xr(de){return Vt.has(de.toLowerCase())}async function ni(de,Ve,vt,Qt,nt,Tt){for(let Gt=0;Gt<vt.length;Gt++){let En=vt[Gt],Qn=Ve[Gt];if(!Qn)continue;let Or=de.find(ai=>ai.route.id===Qn.route.id),Pr=Or!=null&&!ln(Or,Qn)&&(Tt&&Tt[Qn.route.id])!==void 0;if(An(En)&&(nt||Pr)){let ai=Qt[Gt];h(ai,"Expected an AbortSignal for revalidating fetcher deferred result"),await ki(En,ai,nt).then(xi=>{xi&&(vt[Gt]=xi||vt[Gt])})}}}async function ki(de,Ve,vt){if(vt===void 0&&(vt=!1),!await de.deferredData.resolveData(Ve)){if(vt)try{return{type:C.data,data:de.deferredData.unwrappedData}}catch(nt){return{type:C.error,error:nt}}return{type:C.data,data:de.deferredData.data}}}function zr(de){return new URLSearchParams(de).getAll("index").some(Ve=>Ve==="")}function Ur(de,Ve){let vt=typeof Ve=="string"?O(Ve).search:Ve.search;if(de[de.length-1].route.index&&zr(vt||""))return de[de.length-1];let Qt=Rt(de);return Qt[Qt.length-1]}function jt(de){let{formMethod:Ve,formAction:vt,formEncType:Qt,text:nt,formData:Tt,json:Gt}=de;if(!(!Ve||!vt||!Qt)){if(nt!=null)return{formMethod:Ve,formAction:vt,formEncType:Qt,formData:void 0,json:void 0,text:nt};if(Tt!=null)return{formMethod:Ve,formAction:vt,formEncType:Qt,formData:Tt,json:void 0,text:void 0};if(Gt!==void 0)return{formMethod:Ve,formAction:vt,formEncType:Qt,formData:void 0,json:Gt,text:void 0}}}function sn(de,Ve){return Ve?{state:"loading",location:de,formMethod:Ve.formMethod,formAction:Ve.formAction,formEncType:Ve.formEncType,formData:Ve.formData,json:Ve.json,text:Ve.text}:{state:"loading",location:de,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Rn(de,Ve){return{state:"submitting",location:de,formMethod:Ve.formMethod,formAction:Ve.formAction,formEncType:Ve.formEncType,formData:Ve.formData,json:Ve.json,text:Ve.text}}function H(de,Ve){return de?{state:"loading",formMethod:de.formMethod,formAction:de.formAction,formEncType:de.formEncType,formData:de.formData,json:de.json,text:de.text,data:Ve}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:Ve}}function Be(de,Ve){return{state:"submitting",formMethod:de.formMethod,formAction:de.formAction,formEncType:de.formEncType,formData:de.formData,json:de.json,text:de.text,data:Ve?Ve.data:void 0}}function wn(de){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:de}}function bi(de,Ve){try{let vt=de.sessionStorage.getItem(gn);if(vt){let Qt=JSON.parse(vt);for(let[nt,Tt]of Object.entries(Qt||{}))Tt&&Array.isArray(Tt)&&Ve.set(nt,new Set(Tt||[]))}}catch{}}function Oi(de,Ve){if(Ve.size>0){let vt={};for(let[Qt,nt]of Ve)vt[Qt]=[...nt];try{de.sessionStorage.setItem(gn,JSON.stringify(vt))}catch(Qt){E(!1,"Failed to save applied view transitions in sessionStorage ("+Qt+").")}}}},45650:(Ge,w,u)=>{"use strict";u.d(w,{p:()=>E});var l=u(88483),g=u(24151),y=u(15964),x=u(82100),f=u(64878),p=u(57516),h=u(66450);function E(){for(var v=[],m=0;m<arguments.length;m++)v[m]=arguments[m];var S=(0,x.ms)(v),d=(0,g.D)(v),O=d.args,R=d.keys,C=new l.c(function(L){var j=O.length;if(!j){L.complete();return}for(var I=new Array(j),U=j,$=j,ee=function(Se){var z=!1;(0,y.Tg)(O[Se]).subscribe((0,f._)(L,function(Q){z||(z=!0,$--),I[Se]=Q},function(){return U--},void 0,function(){(!U||!z)&&($||L.next(R?(0,h.e)(R,I):I),L.complete())}))},re=0;re<j;re++)ee(re)});return S?C.pipe((0,p.I)(S)):C}},45928:function(Ge){(function(u,l){Ge.exports=l()})(this,()=>(()=>{"use strict";var w={"./public/lib/events.ts":(y,x,f)=>{f.r(x),f.d(x,{createCloseEvent:()=>O,createCrashDetectedEvent:()=>C,createCrashReportedEvent:()=>U,createPingEvent:()=>E,createStaleTabDetectedEvent:()=>j,createStaleTabReportedEvent:()=>ee,createStartEvent:()=>h,createUpdateEvent:()=>S,isCloseEvent:()=>d,isCrashDetectedEvent:()=>R,isCrashReportedEvent:()=>I,isPingEvent:()=>v,isStaleTabDetectedEvent:()=>L,isStaleTabReportedEvent:()=>$,isStartEvent:()=>p,isUpdateEvent:()=>m});function p(re){return re?.event==="start"}function h(re){return{event:"start",report:re}}function E(){return{event:"ping"}}function v(re){return re?.event==="ping"}function m(re){return re?.event==="update"}function S(re){return{event:"update",report:re}}function d(re){return re?.event==="close"}function O(re){return{event:"close",id:re}}function R(re){return re?.event==="crash-detected"}function C(re,Se){return{event:"crash-detected",report:re,senderId:Se}}function L(re){return re?.event==="stale-tab-detected"}function j(re,Se){return{event:"stale-tab-detected",report:re,senderId:Se}}function I(re){return re?.event==="crash-reported"}function U(re){return{event:"crash-reported",id:re}}function $(re){return re?.event==="stale-tab-reported"}function ee(re){return{event:"stale-tab-reported",report:re}}},"./public/lib/init.client.worker.ts":(y,x,f)=>{f.r(x),f.d(x,{initClientWorker:()=>S});var p=f("./public/lib/utils.ts"),h=f("./public/lib/events.ts"),E=function(){return E=Object.assign||function(d){for(var O,R=1,C=arguments.length;R<C;R++){O=arguments[R];for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(d[L]=O[L])}return d},E.apply(this,arguments)},v=function(d,O,R,C){function L(j){return j instanceof R?j:new R(function(I){I(j)})}return new(R||(R=Promise))(function(j,I){function U(re){try{ee(C.next(re))}catch(Se){I(Se)}}function $(re){try{ee(C.throw(re))}catch(Se){I(Se)}}function ee(re){re.done?j(re.value):L(re.value).then(U,$)}ee((C=C.apply(d,O||[])).next())})},m=function(d,O){var R={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},C,L,j,I=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return I.next=U(0),I.throw=U(1),I.return=U(2),typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function U(ee){return function(re){return $([ee,re])}}function $(ee){if(C)throw new TypeError("Generator is already executing.");for(;I&&(I=0,ee[0]&&(R=0)),R;)try{if(C=1,L&&(j=ee[0]&2?L.return:ee[0]?L.throw||((j=L.return)&&j.call(L),0):L.next)&&!(j=j.call(L,ee[1])).done)return j;switch(L=0,j&&(ee=[ee[0]&2,j.value]),ee[0]){case 0:case 1:j=ee;break;case 4:return R.label++,{value:ee[1],done:!1};case 5:R.label++,L=ee[1],ee=[0];continue;case 7:ee=R.ops.pop(),R.trys.pop();continue;default:if(j=R.trys,!(j=j.length>0&&j[j.length-1])&&(ee[0]===6||ee[0]===2)){R=0;continue}if(ee[0]===3&&(!j||ee[1]>j[0]&&ee[1]<j[3])){R.label=ee[1];break}if(ee[0]===6&&R.label<j[1]){R.label=j[1],j=ee;break}if(j&&R.label<j[2]){R.label=j[2],R.ops.push(ee);break}j[2]&&R.ops.pop(),R.trys.pop();continue}ee=O.call(d,R)}catch(re){ee=[6,re],L=0}finally{C=j=0}if(ee[0]&5)throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}};function S(d){var O=this,R,C=Date.now(),L;setInterval(function(){if(L){if(R?.id){var j=L.transaction(["tabs"],"readwrite"),I=j.objectStore("tabs"),U=Date.now();I.put(E(E({},structuredClone(R)),{tabLastActive:C,workerLastActive:U}))}var $=(0,h.createPingEvent)();postMessage($)}},d.pingInterval),addEventListener("message",function(j){return v(O,void 0,void 0,function(){var I,U;return m(this,function($){switch($.label){case 0:return(0,h.isUpdateEvent)(j.data)&&(C=Date.now(),R=structuredClone(j.data.report)),(0,h.isStartEvent)(j.data)?[4,(0,p.getDb)(d.dbName)]:[3,2];case 1:L=$.sent(),$.label=2;case 2:return(0,h.isCloseEvent)(j.data)&&L&&(I=L.transaction(["tabs"],"readwrite"),U=I.objectStore("tabs"),U.delete(j.data.id),L=void 0),[2]}})})})}},"./public/lib/init.detector.worker.ts":(y,x,f)=>{f.r(x),f.d(x,{initDetectorWorker:()=>m});var p=f("./public/lib/utils.ts"),h=f("./public/lib/events.ts"),E=function(S,d,O,R){function C(L){return L instanceof O?L:new O(function(j){j(L)})}return new(O||(O=Promise))(function(L,j){function I(ee){try{$(R.next(ee))}catch(re){j(re)}}function U(ee){try{$(R.throw(ee))}catch(re){j(re)}}function $(ee){ee.done?L(ee.value):C(ee.value).then(I,U)}$((R=R.apply(S,d||[])).next())})},v=function(S,d){var O={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},R,C,L,j=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return j.next=I(0),j.throw=I(1),j.return=I(2),typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function I($){return function(ee){return U([$,ee])}}function U($){if(R)throw new TypeError("Generator is already executing.");for(;j&&(j=0,$[0]&&(O=0)),O;)try{if(R=1,C&&(L=$[0]&2?C.return:$[0]?C.throw||((L=C.return)&&L.call(C),0):C.next)&&!(L=L.call(C,$[1])).done)return L;switch(C=0,L&&($=[$[0]&2,L.value]),$[0]){case 0:case 1:L=$;break;case 4:return O.label++,{value:$[1],done:!1};case 5:O.label++,C=$[1],$=[0];continue;case 7:$=O.ops.pop(),O.trys.pop();continue;default:if(L=O.trys,!(L=L.length>0&&L[L.length-1])&&($[0]===6||$[0]===2)){O=0;continue}if($[0]===3&&(!L||$[1]>L[0]&&$[1]<L[3])){O.label=$[1];break}if($[0]===6&&O.label<L[1]){O.label=L[1],L=$;break}if(L&&O.label<L[2]){O.label=L[2],O.ops.push($);break}L[2]&&O.ops.pop(),O.trys.pop();continue}$=d.call(S,O)}catch(ee){$=[6,ee],C=0}finally{R=L=0}if($[0]&5)throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}};function m(S){var d,O=!1,R=[],C=[];function L(I){if((0,h.isCrashReportedEvent)(I.data)){var U=d.transaction(["tabs"],"readwrite"),$=U.objectStore("tabs");$.delete(I.data.id)}(0,h.isStaleTabReportedEvent)(I.data)&&C.push(I.data.report.id)}function j(){var I=d.transaction(["tabs"],"readwrite"),U=I.objectStore("tabs"),$=U.getAll();$.onsuccess=function(){var ee=$.result,re=[],Se=[],z=[];if(ee.forEach(function(ce){var se=Date.now()-ce.workerLastActive,q=Date.now()-ce.tabLastActive;se>S.crashThreshold?Se.push(ce):S.staleThreshold&&q>S.staleThreshold&&!C.includes(ce.id)?z.push(ce):re.push(ce)}),re.length!==0){var Q=re.pop();Se.forEach(function(ce){R.forEach(function(se){var q=(0,h.createCrashDetectedEvent)(ce,Q.id);se.postMessage(q)})}),z.forEach(function(ce){R.forEach(function(se){var q=(0,h.createStaleTabDetectedEvent)(ce,Q.id);se.postMessage(q)})})}}}self.addEventListener("connect",function(I){return E(this,void 0,void 0,function(){var U;return v(this,function($){switch($.label){case 0:return O?[3,2]:[4,(0,p.getDb)(S.dbName)];case 1:d=$.sent(),U=I.ports[0],R.push(U),U.addEventListener("message",L),U.addEventListener("close",function(){R=R.filter(function(ee){return ee!==U})}),U.start(),setInterval(j,S.interval),O=!0,$.label=2;case 2:return[2]}})})})}},"./public/lib/init.ts":(y,x,f)=>{f.r(x),f.d(x,{initCrashDetection:()=>m});var p=f("./public/lib/utils.ts"),h=f("./public/lib/events.ts"),E=function(S,d,O,R){function C(L){return L instanceof O?L:new O(function(j){j(L)})}return new(O||(O=Promise))(function(L,j){function I(ee){try{$(R.next(ee))}catch(re){j(re)}}function U(ee){try{$(R.throw(ee))}catch(re){j(re)}}function $(ee){ee.done?L(ee.value):C(ee.value).then(I,U)}$((R=R.apply(S,d||[])).next())})},v=function(S,d){var O={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},R,C,L,j=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return j.next=I(0),j.throw=I(1),j.return=I(2),typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function I($){return function(ee){return U([$,ee])}}function U($){if(R)throw new TypeError("Generator is already executing.");for(;j&&(j=0,$[0]&&(O=0)),O;)try{if(R=1,C&&(L=$[0]&2?C.return:$[0]?C.throw||((L=C.return)&&L.call(C),0):C.next)&&!(L=L.call(C,$[1])).done)return L;switch(C=0,L&&($=[$[0]&2,L.value]),$[0]){case 0:case 1:L=$;break;case 4:return O.label++,{value:$[1],done:!1};case 5:O.label++,C=$[1],$=[0];continue;case 7:$=O.ops.pop(),O.trys.pop();continue;default:if(L=O.trys,!(L=L.length>0&&L[L.length-1])&&($[0]===6||$[0]===2)){O=0;continue}if($[0]===3&&(!L||$[1]>L[0]&&$[1]<L[3])){O.label=$[1];break}if($[0]===6&&O.label<L[1]){O.label=L[1],L=$;break}if(L&&O.label<L[2]){O.label=L[2],O.ops.push($);break}L[2]&&O.ops.pop(),O.trys.pop();continue}$=d.call(S,O)}catch(ee){$=[6,ee],C=0}finally{R=L=0}if($[0]&5)throw $[1];return{value:$[0]?$[1]:void 0,done:!0}}};function m(S){var d,O,R={},C,L=function(z){var Q;z.id=String(R.id),(Q=S.log)===null||Q===void 0||Q.call(S,z)};function j(z){return E(this,void 0,void 0,function(){var Q,q,ce,se,q,te;return v(this,function(A){switch(A.label){case 0:return(0,h.isCrashDetectedEvent)(z.data)&&z.data.senderId===R.id?(Q=z.data.report,[4,S.reportCrash(Q)]):[3,2];case 1:q=A.sent(),q&&(ce=(0,h.createCrashReportedEvent)(z.data.report.id),O.port.postMessage(ce)),A.label=2;case 2:return S.reportStaleTab&&(0,h.isStaleTabDetectedEvent)(z.data)&&z.data.senderId===R.id?(se=z.data.report,[4,S.reportStaleTab(se)]):[3,4];case 3:q=A.sent(),q&&(te=(0,h.createStaleTabReportedEvent)(z.data.report),O.port.postMessage(te)),A.label=4;case 4:return[2]}})})}function I(){R.id=S.id,R.tabFirstActive=Date.now()}function U(z){if((0,h.isPingEvent)(z.data)){S.updateInfo(R);var Q=(0,h.createUpdateEvent)(R);d.postMessage(Q)}}function $(){d=S.createClientWorker(),d.addEventListener("message",U),O=S.createDetectorWorker(),O.port.addEventListener("message",j),O.port.start()}function ee(){d.removeEventListener("message",U),O.port.removeEventListener("message",j)}function re(){window.addEventListener("click",Se)}function Se(){return E(this,void 0,void 0,function(){var z;return v(this,function(Q){return window.removeEventListener("click",Se),I(),$(),window.addEventListener("beforeunload",function(){var ce=C.transaction(["tabs"],"readwrite"),se=ce.objectStore("tabs");se.delete(R.id);var q=(0,h.createCloseEvent)(R.id);d.postMessage(q),ee()}),z=(0,h.createStartEvent)(R),d.postMessage(z),[2]})})}(0,p.getDb)(S.dbName).then(function(z){return C=z}),document.readyState==="complete"?re():window.addEventListener("load",function(){re()})}},"./public/lib/utils.ts":(y,x,f)=>{f.r(x),f.d(x,{getDb:()=>E});var p=function(v,m,S,d){function O(R){return R instanceof S?R:new S(function(C){C(R)})}return new(S||(S=Promise))(function(R,C){function L(U){try{I(d.next(U))}catch($){C($)}}function j(U){try{I(d.throw(U))}catch($){C($)}}function I(U){U.done?R(U.value):O(U.value).then(L,j)}I((d=d.apply(v,m||[])).next())})},h=function(v,m){var S={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},d,O,R,C=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return C.next=L(0),C.throw=L(1),C.return=L(2),typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function L(I){return function(U){return j([I,U])}}function j(I){if(d)throw new TypeError("Generator is already executing.");for(;C&&(C=0,I[0]&&(S=0)),S;)try{if(d=1,O&&(R=I[0]&2?O.return:I[0]?O.throw||((R=O.return)&&R.call(O),0):O.next)&&!(R=R.call(O,I[1])).done)return R;switch(O=0,R&&(I=[I[0]&2,R.value]),I[0]){case 0:case 1:R=I;break;case 4:return S.label++,{value:I[1],done:!1};case 5:S.label++,O=I[1],I=[0];continue;case 7:I=S.ops.pop(),S.trys.pop();continue;default:if(R=S.trys,!(R=R.length>0&&R[R.length-1])&&(I[0]===6||I[0]===2)){S=0;continue}if(I[0]===3&&(!R||I[1]>R[0]&&I[1]<R[3])){S.label=I[1];break}if(I[0]===6&&S.label<R[1]){S.label=R[1],R=I;break}if(R&&S.label<R[2]){S.label=R[2],S.ops.push(I);break}R[2]&&S.ops.pop(),S.trys.pop();continue}I=m.call(v,S)}catch(U){I=[6,U],O=0}finally{d=R=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}};function E(v){return p(this,void 0,void 0,function(){return h(this,function(m){return[2,new Promise(function(S,d){var O=indexedDB.open(v);O.onerror=function(){d(O.error)},O.onsuccess=function(){S(O.result)},O.onupgradeneeded=function(R){if(R.target){var C=O.result;C.objectStoreNames.contains("tabs")||C.createObjectStore("tabs",{keyPath:"id"})}}})]})})}}},u={};function l(y){var x=u[y];if(x!==void 0)return x.exports;var f=u[y]={exports:{}};return w[y](f,f.exports,l),f.exports}l.d=(y,x)=>{for(var f in x)l.o(x,f)&&!l.o(y,f)&&Object.defineProperty(y,f,{enumerable:!0,get:x[f]})},l.o=(y,x)=>Object.prototype.hasOwnProperty.call(y,x),l.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var g={};return(()=>{/*!*****************************!*\ !*** ./public/lib/index.ts ***! \*****************************/l.r(g),l.d(g,{initClientWorker:()=>x.initClientWorker,initCrashDetection:()=>y.initCrashDetection,initDetectorWorker:()=>f.initDetectorWorker});var y=l("./public/lib/init.ts"),x=l("./public/lib/init.client.worker.ts"),f=l("./public/lib/init.detector.worker.ts")})(),g})())},45940:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.diffWords=h,w.diffWordsWithSpace=E,w.wordDiff=void 0;var l=y(u(85969)),g=u(36571);function y(v){return v&&v.__esModule?v:{default:v}}var x=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,f=/\S/,p=new l.default;w.wordDiff=p,p.equals=function(v,m){return this.options.ignoreCase&&(v=v.toLowerCase(),m=m.toLowerCase()),v===m||this.options.ignoreWhitespace&&!f.test(v)&&!f.test(m)},p.tokenize=function(v){for(var m=v.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),S=0;S<m.length-1;S++)!m[S+1]&&m[S+2]&&x.test(m[S])&&x.test(m[S+2])&&(m[S]+=m[S+2],m.splice(S+1,2),S--);return m};function h(v,m,S){return S=(0,g.generateOptions)(S,{ignoreWhitespace:!0}),p.diff(v,m,S)}function E(v,m,S){return p.diff(v,m,S)}},46267:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(O,R,C,L){L===void 0&&(L=C),Object.defineProperty(O,L,{enumerable:!0,get:function(){return R[C]}})}:function(O,R,C,L){L===void 0&&(L=C),O[L]=R[C]}),g=this&&this.__setModuleDefault||(Object.create?function(O,R){Object.defineProperty(O,"default",{enumerable:!0,value:R})}:function(O,R){O.default=R}),y=this&&this.__importStar||function(O){if(O&&O.__esModule)return O;var R={};if(O!=null)for(var C in O)C!=="default"&&Object.prototype.hasOwnProperty.call(O,C)&&l(R,O,C);return g(R,O),R},x=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(w,"__esModule",{value:!0}),w.useDeepMatches=w.useMatches=w.NO_GROUP=void 0;var f=y(u(96540)),p=u(4122),h=u(65178),E=x(u(47120));w.NO_GROUP={name:"none",priority:h.Priority.NORMAL};var v={keys:[{name:"name",weight:.5},{name:"keywords",getFn:function(O){var R;return((R=O.keywords)!==null&&R!==void 0?R:"").split(",")},weight:.5},"subtitle"],ignoreLocation:!0,includeScore:!0,includeMatches:!0,threshold:.2,minMatchCharLength:1};function m(O,R){return R.priority-O.priority}function S(){var O=(0,p.useKBar)(function(Q){return{search:Q.searchQuery,actions:Q.actions,rootActionId:Q.currentRootActionId}}),R=O.search,C=O.actions,L=O.rootActionId,j=f.useMemo(function(){return Object.keys(C).reduce(function(Q,ce){var se=C[ce];if(!se.parent&&!L&&Q.push(se),se.id===L)for(var q=0;q<se.children.length;q++)Q.push(se.children[q]);return Q},[]).sort(m)},[C,L]),I=f.useCallback(function(Q){for(var ce=[],se=0;se<Q.length;se++)ce.push(Q[se]);return function q(te,A){A===void 0&&(A=ce);for(var T=0;T<te.length;T++)if(te[T].children.length>0){for(var B=te[T].children,X=0;X<B.length;X++)A.push(B[X]);q(te[T].children,A)}return A}(Q)},[]),U=!R,$=f.useMemo(function(){return U?j:I(j)},[I,j,U]),ee=f.useMemo(function(){return new E.default($,v)},[$]),re=d($,R,ee),Se=f.useMemo(function(){for(var Q,ce,se={},q=[],te=[],A=0;A<re.length;A++){var T=re[A],B=T.action,X=T.score||h.Priority.NORMAL,ue={name:typeof B.section=="string"?B.section:((Q=B.section)===null||Q===void 0?void 0:Q.name)||w.NO_GROUP.name,priority:typeof B.section=="string"?X:((ce=B.section)===null||ce===void 0?void 0:ce.priority)||0+X};se[ue.name]||(se[ue.name]=[],q.push(ue)),se[ue.name].push({priority:B.priority+X,action:B})}te=q.sort(m).map(function(yt){return{name:yt.name,actions:se[yt.name].sort(m).map(function(tt){return tt.action})}});for(var ie=[],A=0;A<te.length;A++){var Te=te[A];Te.name!==w.NO_GROUP.name&&ie.push(Te.name);for(var je=0;je<Te.actions.length;je++)ie.push(Te.actions[je])}return ie},[re]),z=f.useMemo(function(){return L},[Se]);return f.useMemo(function(){return{results:Se,rootActionId:z}},[z,Se])}w.useMatches=S;function d(O,R,C){var L=f.useMemo(function(){return{filtered:O,search:R}},[O,R]),j=(0,h.useThrottledValue)(L),I=j.filtered,U=j.search;return f.useMemo(function(){if(U.trim()==="")return I.map(function(re){return{score:0,action:re}});var $=[],ee=C.search(U);return $=ee.map(function(re){var Se=re.item,z=re.score;return{score:1/((z??0)+1),action:Se}}),$},[I,U,C])}w.useDeepMatches=S},46489:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.applyPatch=x,w.applyPatches=f;var l=u(70290),g=y(u(28061));function y(p){return p&&p.__esModule?p:{default:p}}function x(p,h){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof h=="string"&&(h=(0,l.parsePatch)(h)),Array.isArray(h)){if(h.length>1)throw new Error("applyPatch only works with a single input.");h=h[0]}var v=p.split(/\r\n|[\n\v\f\r\x85]/),m=p.match(/\r\n|[\n\v\f\r\x85]/g)||[],S=h.hunks,d=E.compareLine||function(je,yt,tt,Ze){return yt===Ze},O=0,R=E.fuzzFactor||0,C=0,L=0,j,I;function U(je,yt){for(var tt=0;tt<je.lines.length;tt++){var Ze=je.lines[tt],Ne=Ze.length>0?Ze[0]:" ",it=Ze.length>0?Ze.substr(1):Ze;if(Ne===" "||Ne==="-"){if(!d(yt+1,v[yt],Ne,it)&&(O++,O>R))return!1;yt++}}return!0}for(var $=0;$<S.length;$++){for(var ee=S[$],re=v.length-ee.oldLines,Se=0,z=L+ee.oldStart-1,Q=(0,g.default)(z,C,re);Se!==void 0;Se=Q())if(U(ee,z+Se)){ee.offset=L+=Se;break}if(Se===void 0)return!1;C=ee.offset+ee.oldStart+ee.oldLines}for(var ce=0,se=0;se<S.length;se++){var q=S[se],te=q.oldStart+q.offset+ce-1;ce+=q.newLines-q.oldLines;for(var A=0;A<q.lines.length;A++){var T=q.lines[A],B=T.length>0?T[0]:" ",X=T.length>0?T.substr(1):T,ue=q.linedelimiters&&q.linedelimiters[A]||` `;if(B===" ")te++;else if(B==="-")v.splice(te,1),m.splice(te,1);else if(B==="+")v.splice(te,0,X),m.splice(te,0,ue),te++;else if(B==="\\"){var ie=q.lines[A-1]?q.lines[A-1][0]:null;ie==="+"?j=!0:ie==="-"&&(I=!0)}}}if(j)for(;!v[v.length-1];)v.pop(),m.pop();else I&&(v.push(""),m.push(` `));for(var Te=0;Te<v.length-1;Te++)v[Te]=v[Te]+m[Te];return v.join("")}function f(p,h){typeof p=="string"&&(p=(0,l.parsePatch)(p));var E=0;function v(){var m=p[E++];if(!m)return h.complete();h.loadFile(m,function(S,d){if(S)return h.complete(S);var O=x(d,m,h);h.patched(m,O,function(R){if(R)return h.complete(R);v()})})}v()}},46631:(Ge,w,u)=>{"use strict";u.d(w,{$W:()=>l.$W,$g:()=>l.$g,B0:()=>X,Lh:()=>l.Lh,O4:()=>l.O4,Uc:()=>l.Uc,by:()=>ce,wh:()=>l.wh});var l=u(78101),g=Object.create,y=Object.defineProperty,x=Object.defineProperties,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,d=Reflect.get,O=(ue,ie,Te)=>ie in ue?y(ue,ie,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ie]=Te,R=(ue,ie)=>{for(var Te in ie||(ie={}))m.call(ie,Te)&&O(ue,Te,ie[Te]);if(E)for(var Te of E(ie))S.call(ie,Te)&&O(ue,Te,ie[Te]);return ue},C=(ue,ie)=>x(ue,p(ie)),L=(ue,ie)=>function(){return ie||(0,ue[h(ue)[0]])((ie={exports:{}}).exports,ie),ie.exports},j=(ue,ie,Te,je)=>{if(ie&&typeof ie=="object"||typeof ie=="function")for(let yt of h(ie))!m.call(ue,yt)&&yt!==Te&&y(ue,yt,{get:()=>ie[yt],enumerable:!(je=f(ie,yt))||je.enumerable});return ue},I=(ue,ie,Te)=>(Te=ue!=null?g(v(ue)):{},j(ie||!ue||!ue.__esModule?y(Te,"default",{value:ue,enumerable:!0}):Te,ue)),U=(ue,ie,Te)=>d(v(ue),Te,ie),$=(ue,ie,Te)=>new Promise((je,yt)=>{var tt=it=>{try{Ne(Te.next(it))}catch(Rt){yt(Rt)}},Ze=it=>{try{Ne(Te.throw(it))}catch(Rt){yt(Rt)}},Ne=it=>it.done?je(it.value):Promise.resolve(it.value).then(tt,Ze);Ne((Te=Te.apply(ue,ie)).next())}),ee=L({"../../node_modules/eventemitter3/index.js"(ue,ie){"use strict";var Te=Object.prototype.hasOwnProperty,je="~";function yt(){}Object.create&&(yt.prototype=Object.create(null),new yt().__proto__||(je=!1));function tt(Rt,Dn,Mt){this.fn=Rt,this.context=Dn,this.once=Mt||!1}function Ze(Rt,Dn,Mt,Wt,Tn){if(typeof Mt!="function")throw new TypeError("The listener must be a function");var bn=new tt(Mt,Wt||Rt,Tn),$t=je?je+Dn:Dn;return Rt._events[$t]?Rt._events[$t].fn?Rt._events[$t]=[Rt._events[$t],bn]:Rt._events[$t].push(bn):(Rt._events[$t]=bn,Rt._eventsCount++),Rt}function Ne(Rt,Dn){--Rt._eventsCount===0?Rt._events=new yt:delete Rt._events[Dn]}function it(){this._events=new yt,this._eventsCount=0}it.prototype.eventNames=function(){var Dn=[],Mt,Wt;if(this._eventsCount===0)return Dn;for(Wt in Mt=this._events)Te.call(Mt,Wt)&&Dn.push(je?Wt.slice(1):Wt);return Object.getOwnPropertySymbols?Dn.concat(Object.getOwnPropertySymbols(Mt)):Dn},it.prototype.listeners=function(Dn){var Mt=je?je+Dn:Dn,Wt=this._events[Mt];if(!Wt)return[];if(Wt.fn)return[Wt.fn];for(var Tn=0,bn=Wt.length,$t=new Array(bn);Tn<bn;Tn++)$t[Tn]=Wt[Tn].fn;return $t},it.prototype.listenerCount=function(Dn){var Mt=je?je+Dn:Dn,Wt=this._events[Mt];return Wt?Wt.fn?1:Wt.length:0},it.prototype.emit=function(Dn,Mt,Wt,Tn,bn,$t){var Ct=je?je+Dn:Dn;if(!this._events[Ct])return!1;var Z=this._events[Ct],me=arguments.length,ke,Ee;if(Z.fn){switch(Z.once&&this.removeListener(Dn,Z.fn,void 0,!0),me){case 1:return Z.fn.call(Z.context),!0;case 2:return Z.fn.call(Z.context,Mt),!0;case 3:return Z.fn.call(Z.context,Mt,Wt),!0;case 4:return Z.fn.call(Z.context,Mt,Wt,Tn),!0;case 5:return Z.fn.call(Z.context,Mt,Wt,Tn,bn),!0;case 6:return Z.fn.call(Z.context,Mt,Wt,Tn,bn,$t),!0}for(Ee=1,ke=new Array(me-1);Ee<me;Ee++)ke[Ee-1]=arguments[Ee];Z.fn.apply(Z.context,ke)}else{var _e=Z.length,ge;for(Ee=0;Ee<_e;Ee++)switch(Z[Ee].once&&this.removeListener(Dn,Z[Ee].fn,void 0,!0),me){case 1:Z[Ee].fn.call(Z[Ee].context);break;case 2:Z[Ee].fn.call(Z[Ee].context,Mt);break;case 3:Z[Ee].fn.call(Z[Ee].context,Mt,Wt);break;case 4:Z[Ee].fn.call(Z[Ee].context,Mt,Wt,Tn);break;default:if(!ke)for(ge=1,ke=new Array(me-1);ge<me;ge++)ke[ge-1]=arguments[ge];Z[Ee].fn.apply(Z[Ee].context,ke)}}return!0},it.prototype.on=function(Dn,Mt,Wt){return Ze(this,Dn,Mt,Wt,!1)},it.prototype.once=function(Dn,Mt,Wt){return Ze(this,Dn,Mt,Wt,!0)},it.prototype.removeListener=function(Dn,Mt,Wt,Tn){var bn=je?je+Dn:Dn;if(!this._events[bn])return this;if(!Mt)return Ne(this,bn),this;var $t=this._events[bn];if($t.fn)$t.fn===Mt&&(!Tn||$t.once)&&(!Wt||$t.context===Wt)&&Ne(this,bn);else{for(var Ct=0,Z=[],me=$t.length;Ct<me;Ct++)($t[Ct].fn!==Mt||Tn&&!$t[Ct].once||Wt&&$t[Ct].context!==Wt)&&Z.push($t[Ct]);Z.length?this._events[bn]=Z.length===1?Z[0]:Z:Ne(this,bn)}return this},it.prototype.removeAllListeners=function(Dn){var Mt;return Dn?(Mt=je?je+Dn:Dn,this._events[Mt]&&Ne(this,Mt)):(this._events=new yt,this._eventsCount=0),this},it.prototype.off=it.prototype.removeListener,it.prototype.addListener=it.prototype.on,it.prefixed=je,it.EventEmitter=it,typeof ie<"u"&&(ie.exports=it)}}),re="No-op",Se=class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(ue,ie){return this.noOp(ie)}resolveStringEvaluation(ue,ie){return this.noOp(ie)}resolveNumberEvaluation(ue,ie){return this.noOp(ie)}resolveObjectEvaluation(ue,ie){return this.noOp(ie)}noOp(ue){return{value:ue,reason:re}}},z=new Se,Q=I(ee(),1),ce=class extends l.sN{constructor(){super(),this.eventEmitter=new Q.default}},se=class yE extends l.Lh{constructor(ie){super(ie),Object.setPrototypeOf(this,yE.prototype),this.name="VariantNotFoundError",this.code=l.O4.GENERAL}},q=class{constructor(ue={}){this.events=new ce,this.runsOn="client",this.metadata={name:"in-memory"},this._flagConfiguration=R({},ue)}putConfiguration(ue){return $(this,null,function*(){try{const ie=Object.entries(R(R({},ue),this._flagConfiguration)).map(([Te])=>Te);this._flagConfiguration=R({},ue),this.events.emit(ClientProviderEvents.ConfigurationChanged,{flagsChanged:ie})}catch(ie){throw this.events.emit(ClientProviderEvents.Error),ie}})}resolveBooleanEvaluation(ue,ie,Te,je){return this.resolveAndCheckFlag(ue,ie,Te||this._context,je)}resolveNumberEvaluation(ue,ie,Te,je){return this.resolveAndCheckFlag(ue,ie,Te||this._context,je)}resolveStringEvaluation(ue,ie,Te,je){return this.resolveAndCheckFlag(ue,ie,Te||this._context,je)}resolveObjectEvaluation(ue,ie,Te,je){return this.resolveAndCheckFlag(ue,ie,Te||this._context,je)}resolveAndCheckFlag(ue,ie,Te,je){if(!(ue in this._flagConfiguration)){const tt=`no flag found with key ${ue}`;throw je?.debug(tt),new FlagNotFoundError(tt)}if(this._flagConfiguration[ue].disabled)return{value:ie,reason:StandardResolutionReasons.DISABLED};const yt=this.resolveFlagWithReason(ue,Te);if(yt.value===void 0){const tt=`no value associated with variant provided for ${ue} found`;throw je?.error(tt),new se(tt)}if(typeof yt.value!=typeof ie)throw new TypeMismatchError;return yt}resolveFlagWithReason(ue,ie){try{return this.lookupFlagValue(ue,ie)}catch(Te){throw Te instanceof OpenFeatureError2?Te:new GeneralError(Te?.message||"unknown error")}}lookupFlagValue(ue,ie){var Te;const je=this._flagConfiguration[ue],yt=ie&&je?.contextEvaluator,tt=yt?(Te=je.contextEvaluator)==null?void 0:Te.call(je,ie):je.defaultVariant,Ze=tt&&je?.variants[tt],Ne=yt?StandardResolutionReasons.TARGETING_MATCH:StandardResolutionReasons.STATIC;return C(R({value:Ze},tt&&{variant:tt}),{reason:Ne})}},te=class{constructor(ue,ie,Te,je,yt,tt,Ze){this.providerAccessor=ue,this.providerStatusAccessor=ie,this.emitterAccessor=Te,this.apiContextAccessor=je,this.apiHooksAccessor=yt,this.globalLogger=tt,this.options=Ze,this._hooks=[]}get metadata(){var ue,ie;return{name:(ue=this.options.domain)!=null?ue:this.options.name,domain:(ie=this.options.domain)!=null?ie:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(ue,ie,Te){var je;if(this.emitterAccessor().addHandler(ue,ie),(0,l._e)(ue,this.providerStatus))try{ie({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(tt){(je=this._logger)==null||je.error("Error running event handler:",tt)}Te?.signal&&typeof Te.signal.addEventListener=="function"&&Te.signal.addEventListener("abort",()=>{this.removeHandler(ue,ie)})}removeHandler(ue,ie){this.emitterAccessor().removeHandler(ue,ie)}getHandlers(ue){return this.emitterAccessor().getHandlers(ue)}setLogger(ue){return this._clientLogger=new l.qM(ue),this}addHooks(...ue){return this._hooks=[...this._hooks,...ue],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(ue,ie,Te){return this.getBooleanDetails(ue,ie,Te).value}getBooleanDetails(ue,ie,Te){return this.evaluate(ue,this._provider.resolveBooleanEvaluation,ie,"boolean",Te)}getStringValue(ue,ie,Te){return this.getStringDetails(ue,ie,Te).value}getStringDetails(ue,ie,Te){return this.evaluate(ue,this._provider.resolveStringEvaluation,ie,"string",Te)}getNumberValue(ue,ie,Te){return this.getNumberDetails(ue,ie,Te).value}getNumberDetails(ue,ie,Te){return this.evaluate(ue,this._provider.resolveNumberEvaluation,ie,"number",Te)}getObjectValue(ue,ie,Te){return this.getObjectDetails(ue,ie,Te).value}getObjectDetails(ue,ie,Te){return this.evaluate(ue,this._provider.resolveObjectEvaluation,ie,"object",Te)}track(ue,ie={}){var Te,je,yt;try{if(this.shortCircuitIfNotReady(),typeof this._provider.track=="function"){const tt=Object.freeze(R({},this.apiContextAccessor((Te=this==null?void 0:this.options)==null?void 0:Te.domain)));return(yt=(je=this._provider).track)==null?void 0:yt.call(je,ue,tt,ie)}else this._logger.debug("Provider does not support the track function; will no-op.")}catch(tt){this._logger.debug("Error recording tracking event.",tt)}}evaluate(ue,ie,Te,je,yt={}){var tt,Ze;const Ne=[...this.apiHooksAccessor(),...this.getHooks(),...yt.hooks||[],...this._provider.hooks||[]],it=[...Ne].reverse(),Rt=R({},this.apiContextAccessor((tt=this==null?void 0:this.options)==null?void 0:tt.domain)),Dn=it.map(()=>Object.freeze({flagKey:ue,defaultValue:Te,flagValueType:je,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:Rt,logger:this._logger,hookData:new l.eD}));let Mt;try{this.beforeHooks(Ne,Dn,yt),this.shortCircuitIfNotReady();const Wt=ie.call(this._provider,ue,Te,Rt,this._logger),Tn=C(R({},Wt),{flagMetadata:Object.freeze((Ze=Wt.flagMetadata)!=null?Ze:{}),flagKey:ue});if(Tn.errorCode){const bn=(0,l.l6)(Tn.errorCode,Tn.errorMessage);this.errorHooks(it,Dn,bn,yt),Mt=this.getErrorEvaluationDetails(ue,Te,bn,Tn.flagMetadata)}else this.afterHooks(it,Dn,Tn,yt),Mt=Tn}catch(Wt){this.errorHooks(it,Dn,Wt,yt),Mt=this.getErrorEvaluationDetails(ue,Te,Wt)}return this.finallyHooks(it,Dn,Mt,yt),Mt}beforeHooks(ue,ie,Te){var je;for(const[yt,tt]of ue.entries()){const Ze=ue.length-1-yt,Ne=ie[Ze];Object.freeze(Ne),Object.freeze(Ne.context),(je=tt?.before)==null||je.call(tt,Ne,Object.freeze(Te.hookHints))}}afterHooks(ue,ie,Te,je){var yt;for(const[tt,Ze]of ue.entries()){const Ne=ie[tt];(yt=Ze?.after)==null||yt.call(Ze,Ne,Te,je.hookHints)}}errorHooks(ue,ie,Te,je){var yt;for(const[tt,Ze]of ue.entries())try{const Ne=ie[tt];(yt=Ze?.error)==null||yt.call(Ze,Ne,Te,je.hookHints)}catch(Ne){this._logger.error(`Unhandled error during 'error' hook: ${Ne}`),Ne instanceof Error&&this._logger.error(Ne.stack),this._logger.error(Ne?.stack)}}finallyHooks(ue,ie,Te,je){var yt;for(const[tt,Ze]of ue.entries())try{const Ne=ie[tt];(yt=Ze?.finally)==null||yt.call(Ze,Ne,Te,je.hookHints)}catch(Ne){this._logger.error(`Unhandled error during 'finally' hook: ${Ne}`),Ne instanceof Error&&this._logger.error(Ne.stack),this._logger.error(Ne?.stack)}}get _provider(){return this.providerAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}shortCircuitIfNotReady(){if(this.providerStatus===l.$l.NOT_READY)throw new l._V("provider has not yet initialized");if(this.providerStatus===l.$l.FATAL)throw new l.wh("provider is in an irrecoverable error state")}getErrorEvaluationDetails(ue,ie,Te,je={}){const yt=Te?.message;return{errorCode:Te?.code||l.O4.GENERAL,errorMessage:yt,value:ie,reason:l.$W.ERROR,flagMetadata:Object.freeze(je),flagKey:ue}}},A=Symbol.for("@openfeature/web-sdk/api"),T=globalThis,B=class kS extends l.g7{constructor(){super("client"),this._statusEnumType=l.$l,this._apiEmitter=new ce,this._defaultProvider=new l.VL(z,l.$l.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new ce}static getInstance(){const ie=T[A];if(ie)return ie;const Te=new kS;return T[A]=Te,Te}getProviderStatus(ie){var Te,je;return ie?(je=(Te=this._domainScopedProviders.get(ie))==null?void 0:Te.status)!=null?je:this._defaultProvider.status:this._defaultProvider.status}setProviderAndWait(ie,Te,je){return $(this,null,function*(){const yt=(0,l.j)(ie),tt=yt?(0,l.XD)(Te):(0,l.XD)(ie),Ze=yt?(0,l.XD)(je):(0,l.XD)(Te);Ze&&(yt?this._domainScopedContext.set(yt,Ze):this._context=Ze),yield this.setAwaitableProvider(yt,tt)})}setProvider(ie,Te,je){const yt=(0,l.j)(ie),tt=yt?(0,l.XD)(Te):(0,l.XD)(ie),Ze=yt?(0,l.XD)(je):(0,l.XD)(Te);Ze&&(yt?this._domainScopedContext.set(yt,Ze):this._context=Ze);const Ne=this.setAwaitableProvider(yt,tt);return Promise.resolve(Ne).catch(it=>{this._logger.error("Error during provider initialization:",it)}),this}getProvider(ie){return this.getProviderForClient(ie)}setContext(ie,Te){return $(this,null,function*(){var je,yt;const tt=(0,l.j)(ie),Ze=(yt=(je=(0,l.XD)(ie))!=null?je:(0,l.XD)(Te))!=null?yt:{};if(tt){const Ne=this._domainScopedProviders.get(tt);if(Ne){const it=this.getContext(tt);this._domainScopedContext.set(tt,Ze),yield this.runProviderContextChangeHandler(tt,Ne,it,Ze)}else this._domainScopedContext.set(tt,Ze)}else{const Ne=this._context;this._context=Ze;const it=Array.from(this._domainScopedProviders.entries()).filter(([Dn])=>!this._domainScopedContext.has(Dn)).reduce((Dn,[Mt,Wt])=>(Dn.push({domain:Mt,wrapper:Wt}),Dn),[]),Rt=[{domain:void 0,wrapper:this._defaultProvider},...it];yield Promise.all(Rt.map(Dn=>this.runProviderContextChangeHandler(Dn.domain,Dn.wrapper,Ne,Ze)))}})}getContext(ie){const Te=(0,l.j)(ie);if(Te){const je=this._domainScopedContext.get(Te);if(je)return je;this._logger.debug(`Unable to find context for '${Te}'.`)}return this._context}clearContext(ie){return $(this,null,function*(){const Te=(0,l.j)(ie);if(Te){const je=this._domainScopedProviders.get(Te);if(je){const yt=this.getContext(Te);this._domainScopedContext.delete(Te);const tt=this.getContext();yield this.runProviderContextChangeHandler(Te,je,yt,tt)}else this._domainScopedContext.delete(Te)}else return this.setContext({})})}clearContexts(){return $(this,null,function*(){yield this.clearContext(),yield Promise.allSettled(Array.from(this._domainScopedProviders.keys()).map(ie=>this.clearContext(ie)))})}getClient(ie,Te){return new te(()=>this.getProviderForClient(ie),()=>this.getProviderStatus(ie),()=>this.buildAndCacheEventEmitterForClient(ie),je=>this.getContext(je),()=>this.getHooks(),()=>this._logger,{domain:ie,version:Te})}clearProviders(){return $(this,null,function*(){yield U(kS.prototype,this,"clearProvidersAndSetDefault").call(this,z),this._domainScopedContext.clear()})}runProviderContextChangeHandler(ie,Te,je,yt){return $(this,null,function*(){var tt,Ze,Ne,it,Rt,Dn;const Mt=((Ze=(tt=Te.provider)==null?void 0:tt.metadata)==null?void 0:Ze.name)||"unnamed-provider";try{if(typeof Te.provider.onContextChange=="function"){const Wt=Te.provider.onContextChange(je,yt);typeof Wt?.then=="function"&&(Te.incrementPendingContextChanges(),Te.status=this._statusEnumType.RECONCILING,this.getAssociatedEventEmitters(ie).forEach(Tn=>{Tn?.emit(l.Uc.Reconciling,{domain:ie,providerName:Mt})}),(Ne=this._apiEmitter)==null||Ne.emit(l.Uc.Reconciling,{domain:ie,providerName:Mt}),yield Wt,Te.decrementPendingContextChanges())}Te.status=this._statusEnumType.READY,Te.allContextChangesSettled&&(this.getAssociatedEventEmitters(ie).forEach(Wt=>{Wt?.emit(l.Uc.ContextChanged,{clientName:ie,domain:ie,providerName:Mt})}),(it=this._apiEmitter)==null||it.emit(l.Uc.ContextChanged,{clientName:ie,domain:ie,providerName:Mt}))}catch(Wt){if(Te.decrementPendingContextChanges(),Te.status=this._statusEnumType.ERROR,Te.allContextChangesSettled){const Tn=Wt,bn=`Error running ${Mt}'s context change handler: ${Tn?.message}`;(Rt=this._logger)==null||Rt.error(`${bn}`,Wt),this.getAssociatedEventEmitters(ie).forEach($t=>{$t?.emit(l.Uc.Error,{clientName:ie,domain:ie,providerName:Mt,message:bn})}),(Dn=this._apiEmitter)==null||Dn.emit(l.Uc.Error,{clientName:ie,domain:ie,providerName:Mt,message:bn})}}})}},X=B.getInstance()},46662:(Ge,w,u)=>{"use strict";u.d(w,{v:()=>y});var l=u(92908),g=u(64878);function y(x,f){return f===void 0&&(f=!1),(0,l.N)(function(p,h){var E=0;p.subscribe((0,g._)(h,function(v){var m=x(v,E++);(m||f)&&h.next(v),!m&&h.complete()}))})}},46834:Ge=>{function w(u,l,g,y){var x=Object.defineProperty;try{x({},"",{})}catch{x=0}Ge.exports=w=function(p,h,E,v){function m(S,d){w(p,S,function(O){return this._invoke(S,d,O)})}h?x?x(p,h,{value:E,enumerable:!v,configurable:!v,writable:!v}):p[h]=E:(m("next",0),m("throw",1),m("return",2))},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w(u,l,g,y)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},46957:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>$,Gw:()=>Q,KI:()=>ue,Q1:()=>g,Qh:()=>z,Uw:()=>x,b:()=>Se,ef:()=>y});var l=u(40871);function g(){}var y=.7,x=1/y,f="\\s*([+-]?\\d+)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E=/^#([0-9a-f]{3,8})$/,v=new RegExp(`^rgb\\(${f},${f},${f}\\)$`),m=new RegExp(`^rgb\\(${h},${h},${h}\\)$`),S=new RegExp(`^rgba\\(${f},${f},${f},${p}\\)$`),d=new RegExp(`^rgba\\(${h},${h},${h},${p}\\)$`),O=new RegExp(`^hsl\\(${p},${h},${h}\\)$`),R=new RegExp(`^hsla\\(${p},${h},${h},${p}\\)$`),C={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};(0,l.A)(g,$,{copy(tt){return Object.assign(new this.constructor,this,tt)},displayable(){return this.rgb().displayable()},hex:L,formatHex:L,formatHex8:j,formatHsl:I,formatRgb:U,toString:U});function L(){return this.rgb().formatHex()}function j(){return this.rgb().formatHex8()}function I(){return X(this).formatHsl()}function U(){return this.rgb().formatRgb()}function $(tt){var Ze,Ne;return tt=(tt+"").trim().toLowerCase(),(Ze=E.exec(tt))?(Ne=Ze[1].length,Ze=parseInt(Ze[1],16),Ne===6?ee(Ze):Ne===3?new Q(Ze>>8&15|Ze>>4&240,Ze>>4&15|Ze&240,(Ze&15)<<4|Ze&15,1):Ne===8?re(Ze>>24&255,Ze>>16&255,Ze>>8&255,(Ze&255)/255):Ne===4?re(Ze>>12&15|Ze>>8&240,Ze>>8&15|Ze>>4&240,Ze>>4&15|Ze&240,((Ze&15)<<4|Ze&15)/255):null):(Ze=v.exec(tt))?new Q(Ze[1],Ze[2],Ze[3],1):(Ze=m.exec(tt))?new Q(Ze[1]*255/100,Ze[2]*255/100,Ze[3]*255/100,1):(Ze=S.exec(tt))?re(Ze[1],Ze[2],Ze[3],Ze[4]):(Ze=d.exec(tt))?re(Ze[1]*255/100,Ze[2]*255/100,Ze[3]*255/100,Ze[4]):(Ze=O.exec(tt))?B(Ze[1],Ze[2]/100,Ze[3]/100,1):(Ze=R.exec(tt))?B(Ze[1],Ze[2]/100,Ze[3]/100,Ze[4]):C.hasOwnProperty(tt)?ee(C[tt]):tt==="transparent"?new Q(NaN,NaN,NaN,0):null}function ee(tt){return new Q(tt>>16&255,tt>>8&255,tt&255,1)}function re(tt,Ze,Ne,it){return it<=0&&(tt=Ze=Ne=NaN),new Q(tt,Ze,Ne,it)}function Se(tt){return tt instanceof g||(tt=$(tt)),tt?(tt=tt.rgb(),new Q(tt.r,tt.g,tt.b,tt.opacity)):new Q}function z(tt,Ze,Ne,it){return arguments.length===1?Se(tt):new Q(tt,Ze,Ne,it??1)}function Q(tt,Ze,Ne,it){this.r=+tt,this.g=+Ze,this.b=+Ne,this.opacity=+it}(0,l.A)(Q,z,(0,l.X)(g,{brighter(tt){return tt=tt==null?x:Math.pow(x,tt),new Q(this.r*tt,this.g*tt,this.b*tt,this.opacity)},darker(tt){return tt=tt==null?y:Math.pow(y,tt),new Q(this.r*tt,this.g*tt,this.b*tt,this.opacity)},rgb(){return this},clamp(){return new Q(A(this.r),A(this.g),A(this.b),te(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ce,formatHex:ce,formatHex8:se,formatRgb:q,toString:q}));function ce(){return`#${T(this.r)}${T(this.g)}${T(this.b)}`}function se(){return`#${T(this.r)}${T(this.g)}${T(this.b)}${T((isNaN(this.opacity)?1:this.opacity)*255)}`}function q(){const tt=te(this.opacity);return`${tt===1?"rgb(":"rgba("}${A(this.r)}, ${A(this.g)}, ${A(this.b)}${tt===1?")":`, ${tt})`}`}function te(tt){return isNaN(tt)?1:Math.max(0,Math.min(1,tt))}function A(tt){return Math.max(0,Math.min(255,Math.round(tt)||0))}function T(tt){return tt=A(tt),(tt<16?"0":"")+tt.toString(16)}function B(tt,Ze,Ne,it){return it<=0?tt=Ze=Ne=NaN:Ne<=0||Ne>=1?tt=Ze=NaN:Ze<=0&&(tt=NaN),new ie(tt,Ze,Ne,it)}function X(tt){if(tt instanceof ie)return new ie(tt.h,tt.s,tt.l,tt.opacity);if(tt instanceof g||(tt=$(tt)),!tt)return new ie;if(tt instanceof ie)return tt;tt=tt.rgb();var Ze=tt.r/255,Ne=tt.g/255,it=tt.b/255,Rt=Math.min(Ze,Ne,it),Dn=Math.max(Ze,Ne,it),Mt=NaN,Wt=Dn-Rt,Tn=(Dn+Rt)/2;return Wt?(Ze===Dn?Mt=(Ne-it)/Wt+(Ne<it)*6:Ne===Dn?Mt=(it-Ze)/Wt+2:Mt=(Ze-Ne)/Wt+4,Wt/=Tn<.5?Dn+Rt:2-Dn-Rt,Mt*=60):Wt=Tn>0&&Tn<1?0:Mt,new ie(Mt,Wt,Tn,tt.opacity)}function ue(tt,Ze,Ne,it){return arguments.length===1?X(tt):new ie(tt,Ze,Ne,it??1)}function ie(tt,Ze,Ne,it){this.h=+tt,this.s=+Ze,this.l=+Ne,this.opacity=+it}(0,l.A)(ie,ue,(0,l.X)(g,{brighter(tt){return tt=tt==null?x:Math.pow(x,tt),new ie(this.h,this.s,this.l*tt,this.opacity)},darker(tt){return tt=tt==null?y:Math.pow(y,tt),new ie(this.h,this.s,this.l*tt,this.opacity)},rgb(){var tt=this.h%360+(this.h<0)*360,Ze=isNaN(tt)||isNaN(this.s)?0:this.s,Ne=this.l,it=Ne+(Ne<.5?Ne:1-Ne)*Ze,Rt=2*Ne-it;return new Q(yt(tt>=240?tt-240:tt+120,Rt,it),yt(tt,Rt,it),yt(tt<120?tt+240:tt-120,Rt,it),this.opacity)},clamp(){return new ie(Te(this.h),je(this.s),je(this.l),te(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const tt=te(this.opacity);return`${tt===1?"hsl(":"hsla("}${Te(this.h)}, ${je(this.s)*100}%, ${je(this.l)*100}%${tt===1?")":`, ${tt})`}`}}));function Te(tt){return tt=(tt||0)%360,tt<0?tt+360:tt}function je(tt){return Math.max(0,Math.min(1,tt||0))}function yt(tt,Ze,Ne){return(tt<60?Ze+(Ne-Ze)*tt/60:tt<180?Ne:tt<240?Ze+(Ne-Ze)*(240-tt)/60:Ze)*255}},47058:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.from=void 0;var l=u(30131),g=u(19724);function y(x,f){return f?l.scheduled(x,f):g.innerFrom(x)}w.from=y},47120:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{default:()=>er});function l(Fn){return Array.isArray?Array.isArray(Fn):d(Fn)==="[object Array]"}const g=1/0;function y(Fn){if(typeof Fn=="string")return Fn;let en=Fn+"";return en=="0"&&1/Fn==-g?"-0":en}function x(Fn){return Fn==null?"":y(Fn)}function f(Fn){return typeof Fn=="string"}function p(Fn){return typeof Fn=="number"}function h(Fn){return Fn===!0||Fn===!1||v(Fn)&&d(Fn)=="[object Boolean]"}function E(Fn){return typeof Fn=="object"}function v(Fn){return E(Fn)&&Fn!==null}function m(Fn){return Fn!=null}function S(Fn){return!Fn.trim().length}function d(Fn){return Fn==null?Fn===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Fn)}const O="Extended search is not available",R="Incorrect 'index' type",C=Fn=>`Invalid value for key ${Fn}`,L=Fn=>`Pattern length exceeds max of ${Fn}.`,j=Fn=>`Missing ${Fn} property in key`,I=Fn=>`Property 'weight' in key '${Fn}' must be a positive integer`,U=Object.prototype.hasOwnProperty;class ${constructor(en){this._keys=[],this._keyMap={};let gn=0;en.forEach(kn=>{let Jn=ee(kn);gn+=Jn.weight,this._keys.push(Jn),this._keyMap[Jn.id]=Jn,gn+=Jn.weight}),this._keys.forEach(kn=>{kn.weight/=gn})}get(en){return this._keyMap[en]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ee(Fn){let en=null,gn=null,kn=null,Jn=1,Nn=null;if(f(Fn)||l(Fn))kn=Fn,en=re(Fn),gn=Se(Fn);else{if(!U.call(Fn,"name"))throw new Error(j("name"));const kr=Fn.name;if(kn=kr,U.call(Fn,"weight")&&(Jn=Fn.weight,Jn<=0))throw new Error(I(kr));en=re(kr),gn=Se(kr),Nn=Fn.getFn}return{path:en,id:gn,weight:Jn,src:kn,getFn:Nn}}function re(Fn){return l(Fn)?Fn:Fn.split(".")}function Se(Fn){return l(Fn)?Fn.join("."):Fn}function z(Fn,en){let gn=[],kn=!1;const Jn=(Nn,kr,bt)=>{if(m(Nn))if(!kr[bt])gn.push(Nn);else{let ne=kr[bt];const fe=Nn[ne];if(!m(fe))return;if(bt===kr.length-1&&(f(fe)||p(fe)||h(fe)))gn.push(x(fe));else if(l(fe)){kn=!0;for(let K=0,he=fe.length;K<he;K+=1)Jn(fe[K],kr,bt+1)}else kr.length&&Jn(fe,kr,bt+1)}};return Jn(Fn,f(en)?en.split("."):en,0),kn?gn:gn[0]}var te={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(Fn,en)=>Fn.score===en.score?Fn.idx<en.idx?-1:1:Fn.score<en.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:z,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const A=/[^ ]+/g;function T(Fn=1,en=3){const gn=new Map,kn=Math.pow(10,en);return{get(Jn){const Nn=Jn.match(A).length;if(gn.has(Nn))return gn.get(Nn);const kr=1/Math.pow(Nn,.5*Fn),bt=parseFloat(Math.round(kr*kn)/kn);return gn.set(Nn,bt),bt},clear(){gn.clear()}}}class B{constructor({getFn:en=te.getFn,fieldNormWeight:gn=te.fieldNormWeight}={}){this.norm=T(gn,3),this.getFn=en,this.isCreated=!1,this.setIndexRecords()}setSources(en=[]){this.docs=en}setIndexRecords(en=[]){this.records=en}setKeys(en=[]){this.keys=en,this._keysMap={},en.forEach((gn,kn)=>{this._keysMap[gn.id]=kn})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,f(this.docs[0])?this.docs.forEach((en,gn)=>{this._addString(en,gn)}):this.docs.forEach((en,gn)=>{this._addObject(en,gn)}),this.norm.clear())}add(en){const gn=this.size();f(en)?this._addString(en,gn):this._addObject(en,gn)}removeAt(en){this.records.splice(en,1);for(let gn=en,kn=this.size();gn<kn;gn+=1)this.records[gn].i-=1}getValueForItemAtKeyId(en,gn){return en[this._keysMap[gn]]}size(){return this.records.length}_addString(en,gn){if(!m(en)||S(en))return;let kn={v:en,i:gn,n:this.norm.get(en)};this.records.push(kn)}_addObject(en,gn){let kn={i:gn,$:{}};this.keys.forEach((Jn,Nn)=>{let kr=Jn.getFn?Jn.getFn(en):this.getFn(en,Jn.path);if(m(kr)){if(l(kr)){let bt=[];const ne=[{nestedArrIndex:-1,value:kr}];for(;ne.length;){const{nestedArrIndex:fe,value:K}=ne.pop();if(m(K))if(f(K)&&!S(K)){let he={v:K,i:fe,n:this.norm.get(K)};bt.push(he)}else l(K)&&K.forEach((he,Fe)=>{ne.push({nestedArrIndex:Fe,value:he})})}kn.$[Nn]=bt}else if(f(kr)&&!S(kr)){let bt={v:kr,n:this.norm.get(kr)};kn.$[Nn]=bt}}}),this.records.push(kn)}toJSON(){return{keys:this.keys,records:this.records}}}function X(Fn,en,{getFn:gn=te.getFn,fieldNormWeight:kn=te.fieldNormWeight}={}){const Jn=new B({getFn:gn,fieldNormWeight:kn});return Jn.setKeys(Fn.map(ee)),Jn.setSources(en),Jn.create(),Jn}function ue(Fn,{getFn:en=te.getFn,fieldNormWeight:gn=te.fieldNormWeight}={}){const{keys:kn,records:Jn}=Fn,Nn=new B({getFn:en,fieldNormWeight:gn});return Nn.setKeys(kn),Nn.setIndexRecords(Jn),Nn}function ie(Fn,{errors:en=0,currentLocation:gn=0,expectedLocation:kn=0,distance:Jn=te.distance,ignoreLocation:Nn=te.ignoreLocation}={}){const kr=en/Fn.length;if(Nn)return kr;const bt=Math.abs(kn-gn);return Jn?kr+bt/Jn:bt?1:kr}function Te(Fn=[],en=te.minMatchCharLength){let gn=[],kn=-1,Jn=-1,Nn=0;for(let kr=Fn.length;Nn<kr;Nn+=1){let bt=Fn[Nn];bt&&kn===-1?kn=Nn:!bt&&kn!==-1&&(Jn=Nn-1,Jn-kn+1>=en&&gn.push([kn,Jn]),kn=-1)}return Fn[Nn-1]&&Nn-kn>=en&&gn.push([kn,Nn-1]),gn}const je=32;function yt(Fn,en,gn,{location:kn=te.location,distance:Jn=te.distance,threshold:Nn=te.threshold,findAllMatches:kr=te.findAllMatches,minMatchCharLength:bt=te.minMatchCharLength,includeMatches:ne=te.includeMatches,ignoreLocation:fe=te.ignoreLocation}={}){if(en.length>je)throw new Error(L(je));const K=en.length,he=Fn.length,Fe=Math.max(0,Math.min(kn,he));let Nt=Nn,ln=Fe;const pn=bt>1||ne,Yn=pn?Array(he):[];let ht;for(;(ht=Fn.indexOf(en,ln))>-1;){let We=ie(en,{currentLocation:ht,expectedLocation:Fe,distance:Jn,ignoreLocation:fe});if(Nt=Math.min(We,Nt),ln=ht+K,pn){let Je=0;for(;Je<K;)Yn[ht+Je]=1,Je+=1}}ln=-1;let De=[],we=1,Ke=K+he;const be=1<<K-1;for(let We=0;We<K;We+=1){let Je=0,ye=Ke;for(;Je<ye;)ie(en,{errors:We,currentLocation:Fe+ye,expectedLocation:Fe,distance:Jn,ignoreLocation:fe})<=Nt?Je=ye:Ke=ye,ye=Math.floor((Ke-Je)/2+Je);Ke=ye;let Qe=Math.max(1,Fe-ye+1),ze=kr?he:Math.min(Fe+ye,he)+K,qe=Array(ze+2);qe[ze+1]=(1<<We)-1;for(let zt=ze;zt>=Qe;zt-=1){let un=zt-1,hn=gn[Fn.charAt(un)];if(pn&&(Yn[un]=+!!hn),qe[zt]=(qe[zt+1]<<1|1)&hn,We&&(qe[zt]|=(De[zt+1]|De[zt])<<1|1|De[zt+1]),qe[zt]&be&&(we=ie(en,{errors:We,currentLocation:un,expectedLocation:Fe,distance:Jn,ignoreLocation:fe}),we<=Nt)){if(Nt=we,ln=un,ln<=Fe)break;Qe=Math.max(1,2*Fe-ln)}}if(ie(en,{errors:We+1,currentLocation:Fe,expectedLocation:Fe,distance:Jn,ignoreLocation:fe})>Nt)break;De=qe}const pt={isMatch:ln>=0,score:Math.max(.001,we)};if(pn){const We=Te(Yn,bt);We.length?ne&&(pt.indices=We):pt.isMatch=!1}return pt}function tt(Fn){let en={};for(let gn=0,kn=Fn.length;gn<kn;gn+=1){const Jn=Fn.charAt(gn);en[Jn]=(en[Jn]||0)|1<<kn-gn-1}return en}class Ze{constructor(en,{location:gn=te.location,threshold:kn=te.threshold,distance:Jn=te.distance,includeMatches:Nn=te.includeMatches,findAllMatches:kr=te.findAllMatches,minMatchCharLength:bt=te.minMatchCharLength,isCaseSensitive:ne=te.isCaseSensitive,ignoreLocation:fe=te.ignoreLocation}={}){if(this.options={location:gn,threshold:kn,distance:Jn,includeMatches:Nn,findAllMatches:kr,minMatchCharLength:bt,isCaseSensitive:ne,ignoreLocation:fe},this.pattern=ne?en:en.toLowerCase(),this.chunks=[],!this.pattern.length)return;const K=(Fe,Nt)=>{this.chunks.push({pattern:Fe,alphabet:tt(Fe),startIndex:Nt})},he=this.pattern.length;if(he>je){let Fe=0;const Nt=he%je,ln=he-Nt;for(;Fe<ln;)K(this.pattern.substr(Fe,je),Fe),Fe+=je;if(Nt){const pn=he-je;K(this.pattern.substr(pn),pn)}}else K(this.pattern,0)}searchIn(en){const{isCaseSensitive:gn,includeMatches:kn}=this.options;if(gn||(en=en.toLowerCase()),this.pattern===en){let ln={isMatch:!0,score:0};return kn&&(ln.indices=[[0,en.length-1]]),ln}const{location:Jn,distance:Nn,threshold:kr,findAllMatches:bt,minMatchCharLength:ne,ignoreLocation:fe}=this.options;let K=[],he=0,Fe=!1;this.chunks.forEach(({pattern:ln,alphabet:pn,startIndex:Yn})=>{const{isMatch:ht,score:De,indices:we}=yt(en,ln,pn,{location:Jn+Yn,distance:Nn,threshold:kr,findAllMatches:bt,minMatchCharLength:ne,includeMatches:kn,ignoreLocation:fe});ht&&(Fe=!0),he+=De,ht&&we&&(K=[...K,...we])});let Nt={isMatch:Fe,score:Fe?he/this.chunks.length:1};return Fe&&kn&&(Nt.indices=K),Nt}}class Ne{constructor(en){this.pattern=en}static isMultiMatch(en){return it(en,this.multiRegex)}static isSingleMatch(en){return it(en,this.singleRegex)}search(){}}function it(Fn,en){const gn=Fn.match(en);return gn?gn[1]:null}class Rt extends Ne{constructor(en){super(en)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(en){const gn=en===this.pattern;return{isMatch:gn,score:gn?0:1,indices:[0,this.pattern.length-1]}}}class Dn extends Ne{constructor(en){super(en)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(en){const kn=en.indexOf(this.pattern)===-1;return{isMatch:kn,score:kn?0:1,indices:[0,en.length-1]}}}class Mt extends Ne{constructor(en){super(en)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(en){const gn=en.startsWith(this.pattern);return{isMatch:gn,score:gn?0:1,indices:[0,this.pattern.length-1]}}}class Wt extends Ne{constructor(en){super(en)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(en){const gn=!en.startsWith(this.pattern);return{isMatch:gn,score:gn?0:1,indices:[0,en.length-1]}}}class Tn extends Ne{constructor(en){super(en)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(en){const gn=en.endsWith(this.pattern);return{isMatch:gn,score:gn?0:1,indices:[en.length-this.pattern.length,en.length-1]}}}class bn extends Ne{constructor(en){super(en)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(en){const gn=!en.endsWith(this.pattern);return{isMatch:gn,score:gn?0:1,indices:[0,en.length-1]}}}class $t extends Ne{constructor(en,{location:gn=te.location,threshold:kn=te.threshold,distance:Jn=te.distance,includeMatches:Nn=te.includeMatches,findAllMatches:kr=te.findAllMatches,minMatchCharLength:bt=te.minMatchCharLength,isCaseSensitive:ne=te.isCaseSensitive,ignoreLocation:fe=te.ignoreLocation}={}){super(en),this._bitapSearch=new Ze(en,{location:gn,threshold:kn,distance:Jn,includeMatches:Nn,findAllMatches:kr,minMatchCharLength:bt,isCaseSensitive:ne,ignoreLocation:fe})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(en){return this._bitapSearch.searchIn(en)}}class Ct extends Ne{constructor(en){super(en)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(en){let gn=0,kn;const Jn=[],Nn=this.pattern.length;for(;(kn=en.indexOf(this.pattern,gn))>-1;)gn=kn+Nn,Jn.push([kn,gn-1]);const kr=!!Jn.length;return{isMatch:kr,score:kr?0:1,indices:Jn}}}const Z=[Rt,Ct,Mt,Wt,bn,Tn,Dn,$t],me=Z.length,ke=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ee="|";function _e(Fn,en={}){return Fn.split(Ee).map(gn=>{let kn=gn.trim().split(ke).filter(Nn=>Nn&&!!Nn.trim()),Jn=[];for(let Nn=0,kr=kn.length;Nn<kr;Nn+=1){const bt=kn[Nn];let ne=!1,fe=-1;for(;!ne&&++fe<me;){const K=Z[fe];let he=K.isMultiMatch(bt);he&&(Jn.push(new K(he,en)),ne=!0)}if(!ne)for(fe=-1;++fe<me;){const K=Z[fe];let he=K.isSingleMatch(bt);if(he){Jn.push(new K(he,en));break}}}return Jn})}const ge=new Set([$t.type,Ct.type]);class Me{constructor(en,{isCaseSensitive:gn=te.isCaseSensitive,includeMatches:kn=te.includeMatches,minMatchCharLength:Jn=te.minMatchCharLength,ignoreLocation:Nn=te.ignoreLocation,findAllMatches:kr=te.findAllMatches,location:bt=te.location,threshold:ne=te.threshold,distance:fe=te.distance}={}){this.query=null,this.options={isCaseSensitive:gn,includeMatches:kn,minMatchCharLength:Jn,findAllMatches:kr,ignoreLocation:Nn,location:bt,threshold:ne,distance:fe},this.pattern=gn?en:en.toLowerCase(),this.query=_e(this.pattern,this.options)}static condition(en,gn){return gn.useExtendedSearch}searchIn(en){const gn=this.query;if(!gn)return{isMatch:!1,score:1};const{includeMatches:kn,isCaseSensitive:Jn}=this.options;en=Jn?en:en.toLowerCase();let Nn=0,kr=[],bt=0;for(let ne=0,fe=gn.length;ne<fe;ne+=1){const K=gn[ne];kr.length=0,Nn=0;for(let he=0,Fe=K.length;he<Fe;he+=1){const Nt=K[he],{isMatch:ln,indices:pn,score:Yn}=Nt.search(en);if(ln){if(Nn+=1,bt+=Yn,kn){const ht=Nt.constructor.type;ge.has(ht)?kr=[...kr,...pn]:kr.push(pn)}}else{bt=0,Nn=0,kr.length=0;break}}if(Nn){let he={isMatch:!0,score:bt/Nn};return kn&&(he.indices=kr),he}}return{isMatch:!1,score:1}}}const lt=[];function Ft(...Fn){lt.push(...Fn)}function Et(Fn,en){for(let gn=0,kn=lt.length;gn<kn;gn+=1){let Jn=lt[gn];if(Jn.condition(Fn,en))return new Jn(Fn,en)}return new Ze(Fn,en)}const Zt={AND:"$and",OR:"$or"},nn={PATH:"$path",PATTERN:"$val"},Pn=Fn=>!!(Fn[Zt.AND]||Fn[Zt.OR]),rn=Fn=>!!Fn[nn.PATH],Vt=Fn=>!l(Fn)&&E(Fn)&&!Pn(Fn),Kn=Fn=>({[Zt.AND]:Object.keys(Fn).map(en=>({[en]:Fn[en]}))});function ur(Fn,en,{auto:gn=!0}={}){const kn=Jn=>{let Nn=Object.keys(Jn);const kr=rn(Jn);if(!kr&&Nn.length>1&&!Pn(Jn))return kn(Kn(Jn));if(Vt(Jn)){const ne=kr?Jn[nn.PATH]:Nn[0],fe=kr?Jn[nn.PATTERN]:Jn[ne];if(!f(fe))throw new Error(C(ne));const K={keyId:Se(ne),pattern:fe};return gn&&(K.searcher=Et(fe,en)),K}let bt={children:[],operator:Nn[0]};return Nn.forEach(ne=>{const fe=Jn[ne];l(fe)&&fe.forEach(K=>{bt.children.push(kn(K))})}),bt};return Pn(Fn)||(Fn=Kn(Fn)),kn(Fn)}function on(Fn,{ignoreFieldNorm:en=te.ignoreFieldNorm}){Fn.forEach(gn=>{let kn=1;gn.matches.forEach(({key:Jn,norm:Nn,score:kr})=>{const bt=Jn?Jn.weight:null;kn*=Math.pow(kr===0&&bt?Number.EPSILON:kr,(bt||1)*(en?1:Nn))}),gn.score=kn})}function tr(Fn,en){const gn=Fn.matches;en.matches=[],m(gn)&&gn.forEach(kn=>{if(!m(kn.indices)||!kn.indices.length)return;const{indices:Jn,value:Nn}=kn;let kr={indices:Jn,value:Nn};kn.key&&(kr.key=kn.key.src),kn.idx>-1&&(kr.refIndex=kn.idx),en.matches.push(kr)})}function Cn(Fn,en){en.score=Fn.score}function Wn(Fn,en,{includeMatches:gn=te.includeMatches,includeScore:kn=te.includeScore}={}){const Jn=[];return gn&&Jn.push(tr),kn&&Jn.push(Cn),Fn.map(Nn=>{const{idx:kr}=Nn,bt={item:en[kr],refIndex:kr};return Jn.length&&Jn.forEach(ne=>{ne(Nn,bt)}),bt})}class er{constructor(en,gn={},kn){this.options={...te,...gn},this.options.useExtendedSearch,this._keyStore=new $(this.options.keys),this.setCollection(en,kn)}setCollection(en,gn){if(this._docs=en,gn&&!(gn instanceof B))throw new Error(R);this._myIndex=gn||X(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(en){m(en)&&(this._docs.push(en),this._myIndex.add(en))}remove(en=()=>!1){const gn=[];for(let kn=0,Jn=this._docs.length;kn<Jn;kn+=1){const Nn=this._docs[kn];en(Nn,kn)&&(this.removeAt(kn),kn-=1,Jn-=1,gn.push(Nn))}return gn}removeAt(en){this._docs.splice(en,1),this._myIndex.removeAt(en)}getIndex(){return this._myIndex}search(en,{limit:gn=-1}={}){const{includeMatches:kn,includeScore:Jn,shouldSort:Nn,sortFn:kr,ignoreFieldNorm:bt}=this.options;let ne=f(en)?f(this._docs[0])?this._searchStringList(en):this._searchObjectList(en):this._searchLogical(en);return on(ne,{ignoreFieldNorm:bt}),Nn&&ne.sort(kr),p(gn)&&gn>-1&&(ne=ne.slice(0,gn)),Wn(ne,this._docs,{includeMatches:kn,includeScore:Jn})}_searchStringList(en){const gn=Et(en,this.options),{records:kn}=this._myIndex,Jn=[];return kn.forEach(({v:Nn,i:kr,n:bt})=>{if(!m(Nn))return;const{isMatch:ne,score:fe,indices:K}=gn.searchIn(Nn);ne&&Jn.push({item:Nn,idx:kr,matches:[{score:fe,value:Nn,norm:bt,indices:K}]})}),Jn}_searchLogical(en){const gn=ur(en,this.options),kn=(bt,ne,fe)=>{if(!bt.children){const{keyId:he,searcher:Fe}=bt,Nt=this._findMatches({key:this._keyStore.get(he),value:this._myIndex.getValueForItemAtKeyId(ne,he),searcher:Fe});return Nt&&Nt.length?[{idx:fe,item:ne,matches:Nt}]:[]}const K=[];for(let he=0,Fe=bt.children.length;he<Fe;he+=1){const Nt=bt.children[he],ln=kn(Nt,ne,fe);if(ln.length)K.push(...ln);else if(bt.operator===Zt.AND)return[]}return K},Jn=this._myIndex.records,Nn={},kr=[];return Jn.forEach(({$:bt,i:ne})=>{if(m(bt)){let fe=kn(gn,bt,ne);fe.length&&(Nn[ne]||(Nn[ne]={idx:ne,item:bt,matches:[]},kr.push(Nn[ne])),fe.forEach(({matches:K})=>{Nn[ne].matches.push(...K)}))}}),kr}_searchObjectList(en){const gn=Et(en,this.options),{keys:kn,records:Jn}=this._myIndex,Nn=[];return Jn.forEach(({$:kr,i:bt})=>{if(!m(kr))return;let ne=[];kn.forEach((fe,K)=>{ne.push(...this._findMatches({key:fe,value:kr[K],searcher:gn}))}),ne.length&&Nn.push({idx:bt,item:kr,matches:ne})}),Nn}_findMatches({key:en,value:gn,searcher:kn}){if(!m(gn))return[];let Jn=[];if(l(gn))gn.forEach(({v:Nn,i:kr,n:bt})=>{if(!m(Nn))return;const{isMatch:ne,score:fe,indices:K}=kn.searchIn(Nn);ne&&Jn.push({score:fe,key:en,value:Nn,idx:kr,norm:bt,indices:K})});else{const{v:Nn,n:kr}=gn,{isMatch:bt,score:ne,indices:fe}=kn.searchIn(Nn);bt&&Jn.push({score:ne,key:en,value:Nn,norm:kr,indices:fe})}return Jn}}er.version="6.6.2",er.createIndex=X,er.parseIndex=ue,er.config=te,er.parseQuery=ur,Ft(Me)},47356:(Ge,w,u)=>{"use strict";u.d(w,{G:()=>f,g:()=>p});var l=u(45435),g=u(73371),y=u(57048);const x=(h,E)=>{g.a$.init(h,E),h.name="ZodError",Object.defineProperties(h,{format:{value:v=>g.Wk(h,v)},flatten:{value:v=>g.JM(h,v)},addIssue:{value:v=>{h.issues.push(v),h.message=JSON.stringify(h.issues,y.jsonStringifyReplacer,2)}},addIssues:{value:v=>{h.issues.push(...v),h.message=JSON.stringify(h.issues,y.jsonStringifyReplacer,2)}},isEmpty:{get(){return h.issues.length===0}}})},f=l.xI("ZodError",x),p=l.xI("ZodError",x,{Parent:Error})},47370:(Ge,w,u)=>{"use strict";u.d(w,{x:()=>x});var l=u(54889),g=u(82100),y=u(65474);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return(0,l.K)()((0,y.H)(f,(0,g.lI)(f)))}},47402:(Ge,w,u)=>{"use strict";u.d(w,{d:()=>g});var l=u(29407);function g(x,f){return+(0,l.a)(x)>+(0,l.a)(f)}var y=null},48051:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Observable=void 0;var l=u(2708),g=u(69879),y=u(2884),x=u(99517),f=u(93728),p=u(10281),h=u(12688),E=function(){function d(O){O&&(this._subscribe=O)}return d.prototype.lift=function(O){var R=new d;return R.source=this,R.operator=O,R},d.prototype.subscribe=function(O,R,C){var L=this,j=S(O)?O:new l.SafeSubscriber(O,R,C);return h.errorContext(function(){var I=L,U=I.operator,$=I.source;j.add(U?U.call(j,$):$?L._subscribe(j):L._trySubscribe(j))}),j},d.prototype._trySubscribe=function(O){try{return this._subscribe(O)}catch(R){O.error(R)}},d.prototype.forEach=function(O,R){var C=this;return R=v(R),new R(function(L,j){var I=new l.SafeSubscriber({next:function(U){try{O(U)}catch($){j($),I.unsubscribe()}},error:j,complete:L});C.subscribe(I)})},d.prototype._subscribe=function(O){var R;return(R=this.source)===null||R===void 0?void 0:R.subscribe(O)},d.prototype[y.observable]=function(){return this},d.prototype.pipe=function(){for(var O=[],R=0;R<arguments.length;R++)O[R]=arguments[R];return x.pipeFromArray(O)(this)},d.prototype.toPromise=function(O){var R=this;return O=v(O),new O(function(C,L){var j;R.subscribe(function(I){return j=I},function(I){return L(I)},function(){return C(j)})})},d.create=function(O){return new d(O)},d}();w.Observable=E;function v(d){var O;return(O=d??f.config.Promise)!==null&&O!==void 0?O:Promise}function m(d){return d&&p.isFunction(d.next)&&p.isFunction(d.error)&&p.isFunction(d.complete)}function S(d){return d&&d instanceof l.Subscriber||m(d)&&g.isSubscription(d)}},48081:(Ge,w,u)=>{var l=u(1262).default;function g(y,x){if(l(y)!="object"||!y)return y;var f=y[Symbol.toPrimitive];if(f!==void 0){var p=f.call(y,x||"default");if(l(p)!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(y)}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},48301:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>Ft});function l(){return l=Object.assign?Object.assign.bind():function(Et){for(var Zt=1;Zt<arguments.length;Zt++){var nn=arguments[Zt];for(var Pn in nn)({}).hasOwnProperty.call(nn,Pn)&&(Et[Pn]=nn[Pn])}return Et},l.apply(null,arguments)}function g(Et){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Zt){return typeof Zt}:function(Zt){return Zt&&typeof Symbol=="function"&&Zt.constructor===Symbol&&Zt!==Symbol.prototype?"symbol":typeof Zt},g(Et)}function y(Et,Zt){if(g(Et)!="object"||!Et)return Et;var nn=Et[Symbol.toPrimitive];if(nn!==void 0){var Pn=nn.call(Et,Zt||"default");if(g(Pn)!="object")return Pn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Zt==="string"?String:Number)(Et)}function x(Et){var Zt=y(Et,"string");return g(Zt)=="symbol"?Zt:Zt+""}function f(Et,Zt,nn){return(Zt=x(Zt))in Et?Object.defineProperty(Et,Zt,{value:nn,enumerable:!0,configurable:!0,writable:!0}):Et[Zt]=nn,Et}function p(Et,Zt){var nn=Object.keys(Et);if(Object.getOwnPropertySymbols){var Pn=Object.getOwnPropertySymbols(Et);Zt&&(Pn=Pn.filter(function(rn){return Object.getOwnPropertyDescriptor(Et,rn).enumerable})),nn.push.apply(nn,Pn)}return nn}function h(Et){for(var Zt=1;Zt<arguments.length;Zt++){var nn=arguments[Zt]!=null?arguments[Zt]:{};Zt%2?p(Object(nn),!0).forEach(function(Pn){f(Et,Pn,nn[Pn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Et,Object.getOwnPropertyDescriptors(nn)):p(Object(nn)).forEach(function(Pn){Object.defineProperty(Et,Pn,Object.getOwnPropertyDescriptor(nn,Pn))})}return Et}function E(Et){if(Array.isArray(Et))return Et}function v(Et,Zt){var nn=Et==null?null:typeof Symbol<"u"&&Et[Symbol.iterator]||Et["@@iterator"];if(nn!=null){var Pn,rn,Vt,Kn,ur=[],on=!0,tr=!1;try{if(Vt=(nn=nn.call(Et)).next,Zt===0){if(Object(nn)!==nn)return;on=!1}else for(;!(on=(Pn=Vt.call(nn)).done)&&(ur.push(Pn.value),ur.length!==Zt);on=!0);}catch(Cn){tr=!0,rn=Cn}finally{try{if(!on&&nn.return!=null&&(Kn=nn.return(),Object(Kn)!==Kn))return}finally{if(tr)throw rn}}return ur}}function m(Et,Zt){(Zt==null||Zt>Et.length)&&(Zt=Et.length);for(var nn=0,Pn=Array(Zt);nn<Zt;nn++)Pn[nn]=Et[nn];return Pn}function S(Et,Zt){if(Et){if(typeof Et=="string")return m(Et,Zt);var nn={}.toString.call(Et).slice(8,-1);return nn==="Object"&&Et.constructor&&(nn=Et.constructor.name),nn==="Map"||nn==="Set"?Array.from(Et):nn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nn)?m(Et,Zt):void 0}}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(Et,Zt){return E(Et)||v(Et,Zt)||S(Et,Zt)||d()}function R(Et,Zt){if(Et==null)return{};var nn={};for(var Pn in Et)if({}.hasOwnProperty.call(Et,Pn)){if(Zt.indexOf(Pn)!==-1)continue;nn[Pn]=Et[Pn]}return nn}function C(Et,Zt){if(Et==null)return{};var nn,Pn,rn=R(Et,Zt);if(Object.getOwnPropertySymbols){var Vt=Object.getOwnPropertySymbols(Et);for(Pn=0;Pn<Vt.length;Pn++)nn=Vt[Pn],Zt.indexOf(nn)===-1&&{}.propertyIsEnumerable.call(Et,nn)&&(rn[nn]=Et[nn])}return rn}var L=u(96540),j=u(46942),I=u.n(j),U=u(50072),$=L.forwardRef(function(Et,Zt){var nn=Et.height,Pn=Et.offset,rn=Et.children,Vt=Et.prefixCls,Kn=Et.onInnerResize,ur=Et.innerProps,on={},tr={display:"flex",flexDirection:"column"};return Pn!==void 0&&(on={height:nn,position:"relative",overflow:"hidden"},tr=h(h({},tr),{},{transform:"translateY(".concat(Pn,"px)"),position:"absolute",left:0,right:0,top:0})),L.createElement("div",{style:on},L.createElement(U.A,{onResize:function(Wn){var er=Wn.offsetHeight;er&&Kn&&Kn()}},L.createElement("div",l({style:tr,className:I()(f({},"".concat(Vt,"-holder-inner"),Vt)),ref:Zt},ur),rn)))});$.displayName="Filler";const ee=$;function re(Et,Zt){if(!(Et instanceof Zt))throw new TypeError("Cannot call a class as a function")}function Se(Et,Zt){for(var nn=0;nn<Zt.length;nn++){var Pn=Zt[nn];Pn.enumerable=Pn.enumerable||!1,Pn.configurable=!0,"value"in Pn&&(Pn.writable=!0),Object.defineProperty(Et,x(Pn.key),Pn)}}function z(Et,Zt,nn){return Zt&&Se(Et.prototype,Zt),nn&&Se(Et,nn),Object.defineProperty(Et,"prototype",{writable:!1}),Et}function Q(Et,Zt){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nn,Pn){return nn.__proto__=Pn,nn},Q(Et,Zt)}function ce(Et,Zt){if(typeof Zt!="function"&&Zt!==null)throw new TypeError("Super expression must either be null or a function");Et.prototype=Object.create(Zt&&Zt.prototype,{constructor:{value:Et,writable:!0,configurable:!0}}),Object.defineProperty(Et,"prototype",{writable:!1}),Zt&&Q(Et,Zt)}function se(Et){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Zt){return Zt.__proto__||Object.getPrototypeOf(Zt)},se(Et)}function q(){try{var Et=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q=function(){return!!Et})()}function te(Et){if(Et===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et}function A(Et,Zt){if(Zt&&(g(Zt)=="object"||typeof Zt=="function"))return Zt;if(Zt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return te(Et)}function T(Et){var Zt=q();return function(){var nn,Pn=se(Et);if(Zt){var rn=se(this).constructor;nn=Reflect.construct(Pn,arguments,rn)}else nn=Pn.apply(this,arguments);return A(this,nn)}}var B=u(25371),X=20;function ue(Et){return"touches"in Et?Et.touches[0].pageY:Et.pageY}var ie=function(Et){ce(nn,Et);var Zt=T(nn);function nn(){var Pn;re(this,nn);for(var rn=arguments.length,Vt=new Array(rn),Kn=0;Kn<rn;Kn++)Vt[Kn]=arguments[Kn];return Pn=Zt.call.apply(Zt,[this].concat(Vt)),Pn.moveRaf=null,Pn.scrollbarRef=L.createRef(),Pn.thumbRef=L.createRef(),Pn.visibleTimeout=null,Pn.state={dragging:!1,pageY:null,startTop:null,visible:!1},Pn.delayHidden=function(){clearTimeout(Pn.visibleTimeout),Pn.setState({visible:!0}),Pn.visibleTimeout=setTimeout(function(){Pn.setState({visible:!1})},2e3)},Pn.onScrollbarTouchStart=function(ur){ur.preventDefault()},Pn.onContainerMouseDown=function(ur){ur.stopPropagation(),ur.preventDefault()},Pn.patchEvents=function(){window.addEventListener("mousemove",Pn.onMouseMove),window.addEventListener("mouseup",Pn.onMouseUp),Pn.thumbRef.current.addEventListener("touchmove",Pn.onMouseMove),Pn.thumbRef.current.addEventListener("touchend",Pn.onMouseUp)},Pn.removeEvents=function(){window.removeEventListener("mousemove",Pn.onMouseMove),window.removeEventListener("mouseup",Pn.onMouseUp),Pn.thumbRef.current&&(Pn.thumbRef.current.removeEventListener("touchmove",Pn.onMouseMove),Pn.thumbRef.current.removeEventListener("touchend",Pn.onMouseUp)),B.A.cancel(Pn.moveRaf)},Pn.onMouseDown=function(ur){var on=Pn.props.onStartMove;Pn.setState({dragging:!0,pageY:ue(ur),startTop:Pn.getTop()}),on(),Pn.patchEvents(),ur.stopPropagation(),ur.preventDefault()},Pn.onMouseMove=function(ur){var on=Pn.state,tr=on.dragging,Cn=on.pageY,Wn=on.startTop,er=Pn.props.onScroll;if(B.A.cancel(Pn.moveRaf),tr){var Fn=ue(ur)-Cn,en=Wn+Fn,gn=Pn.getEnableScrollRange(),kn=Pn.getEnableHeightRange(),Jn=kn?en/kn:0,Nn=Math.ceil(Jn*gn);Pn.moveRaf=(0,B.A)(function(){er(Nn)})}},Pn.onMouseUp=function(){var ur=Pn.props.onStopMove;Pn.setState({dragging:!1}),ur(),Pn.removeEvents()},Pn.getSpinHeight=function(){var ur=Pn.props,on=ur.height,tr=ur.count,Cn=on/tr*10;return Cn=Math.max(Cn,X),Cn=Math.min(Cn,on/2),Math.floor(Cn)},Pn.getEnableScrollRange=function(){var ur=Pn.props,on=ur.scrollHeight,tr=ur.height;return on-tr||0},Pn.getEnableHeightRange=function(){var ur=Pn.props.height,on=Pn.getSpinHeight();return ur-on||0},Pn.getTop=function(){var ur=Pn.props.scrollTop,on=Pn.getEnableScrollRange(),tr=Pn.getEnableHeightRange();if(ur===0||on===0)return 0;var Cn=ur/on;return Cn*tr},Pn.showScroll=function(){var ur=Pn.props,on=ur.height,tr=ur.scrollHeight;return tr>on},Pn}return z(nn,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(rn){rn.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){var rn,Vt;this.removeEvents(),(rn=this.scrollbarRef.current)===null||rn===void 0||rn.removeEventListener("touchstart",this.onScrollbarTouchStart),(Vt=this.thumbRef.current)===null||Vt===void 0||Vt.removeEventListener("touchstart",this.onMouseDown),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var rn=this.state,Vt=rn.dragging,Kn=rn.visible,ur=this.props,on=ur.prefixCls,tr=ur.direction,Cn=this.getSpinHeight(),Wn=this.getTop(),er=this.showScroll(),Fn=er&&Kn,en=tr==="rtl"?{left:0}:{right:0};return L.createElement("div",{ref:this.scrollbarRef,className:I()("".concat(on,"-scrollbar"),f({},"".concat(on,"-scrollbar-show"),er)),style:h(h({width:8,top:0,bottom:0},en),{},{position:"absolute",display:Fn?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},L.createElement("div",{ref:this.thumbRef,className:I()("".concat(on,"-scrollbar-thumb"),f({},"".concat(on,"-scrollbar-thumb-moving"),Vt)),style:{width:"100%",height:Cn,top:Wn,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),nn}(L.Component);function Te(Et){var Zt=Et.children,nn=Et.setRef,Pn=L.useCallback(function(rn){nn(rn)},[]);return L.cloneElement(Zt,{ref:Pn})}function je(Et,Zt,nn,Pn,rn,Vt){var Kn=Vt.getKey;return Et.slice(Zt,nn+1).map(function(ur,on){var tr=Zt+on,Cn=rn(ur,tr,{}),Wn=Kn(ur);return L.createElement(Te,{key:Wn,setRef:function(Fn){return Pn(ur,Fn)}},Cn)})}var yt=u(44207),tt=function(){function Et(){re(this,Et),this.maps=void 0,this.maps=Object.create(null)}return z(Et,[{key:"set",value:function(nn,Pn){this.maps[nn]=Pn}},{key:"get",value:function(nn){return this.maps[nn]}}]),Et}();const Ze=tt;function Ne(Et,Zt,nn){var Pn=L.useState(0),rn=O(Pn,2),Vt=rn[0],Kn=rn[1],ur=(0,L.useRef)(new Map),on=(0,L.useRef)(new Ze),tr=(0,L.useRef)();function Cn(){B.A.cancel(tr.current)}function Wn(){Cn(),tr.current=(0,B.A)(function(){ur.current.forEach(function(Fn,en){if(Fn&&Fn.offsetParent){var gn=(0,yt.Ay)(Fn),kn=gn.offsetHeight;on.current.get(en)!==kn&&on.current.set(en,gn.offsetHeight)}}),Kn(function(Fn){return Fn+1})})}function er(Fn,en){var gn=Et(Fn),kn=ur.current.get(gn);en?(ur.current.set(gn,en),Wn()):ur.current.delete(gn),!kn!=!en&&(en?Zt?.(Fn):nn?.(Fn))}return(0,L.useEffect)(function(){return Cn},[]),[er,Wn,on.current,Vt]}function it(Et,Zt,nn,Pn,rn,Vt,Kn,ur){var on=L.useRef();return function(tr){if(tr==null){ur();return}if(B.A.cancel(on.current),typeof tr=="number")Kn(tr);else if(tr&&g(tr)==="object"){var Cn,Wn=tr.align;"index"in tr?Cn=tr.index:Cn=Zt.findIndex(function(gn){return rn(gn)===tr.key});var er=tr.offset,Fn=er===void 0?0:er,en=function gn(kn,Jn){if(!(kn<0||!Et.current)){var Nn=Et.current.clientHeight,kr=!1,bt=Jn;if(Nn){for(var ne=Jn||Wn,fe=0,K=0,he=0,Fe=Math.min(Zt.length,Cn),Nt=0;Nt<=Fe;Nt+=1){var ln=rn(Zt[Nt]);K=fe;var pn=nn.get(ln);he=K+(pn===void 0?Pn:pn),fe=he,Nt===Cn&&pn===void 0&&(kr=!0)}var Yn=null;switch(ne){case"top":Yn=K-Fn;break;case"bottom":Yn=he-Nn+Fn;break;default:{var ht=Et.current.scrollTop,De=ht+Nn;K<ht?bt="top":he>De&&(bt="bottom")}}Yn!==null&&Yn!==Et.current.scrollTop&&Kn(Yn)}on.current=(0,B.A)(function(){kr&&Vt(),gn(kn-1,bt)},2)}};en(3)}}}function Rt(Et,Zt,nn,Pn){var rn=nn-Et,Vt=Zt-nn,Kn=Math.min(rn,Vt)*2;if(Pn<=Kn){var ur=Math.floor(Pn/2);return Pn%2?nn+ur+1:nn-ur}return rn>Vt?nn-(Pn-Vt):nn+(Pn-rn)}function Dn(Et,Zt,nn){var Pn=Et.length,rn=Zt.length,Vt,Kn;if(Pn===0&&rn===0)return null;Pn<rn?(Vt=Et,Kn=Zt):(Vt=Zt,Kn=Et);var ur={__EMPTY_ITEM__:!0};function on(en){return en!==void 0?nn(en):ur}for(var tr=null,Cn=Math.abs(Pn-rn)!==1,Wn=0;Wn<Kn.length;Wn+=1){var er=on(Vt[Wn]),Fn=on(Kn[Wn]);if(er!==Fn){tr=Wn,Cn=Cn||er!==on(Kn[Wn+1]);break}}return tr===null?null:{index:tr,multiple:Cn}}function Mt(Et,Zt,nn){var Pn=L.useState(Et),rn=O(Pn,2),Vt=rn[0],Kn=rn[1],ur=L.useState(null),on=O(ur,2),tr=on[0],Cn=on[1];return L.useEffect(function(){var Wn=Dn(Vt||[],Et||[],Zt);Wn?.index!==void 0&&(nn?.(Wn.index),Cn(Et[Wn.index])),Kn(Et)},[Et]),[tr]}var Wt=(typeof navigator>"u"?"undefined":g(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Tn=Wt,bn=function(Et,Zt){var nn=(0,L.useRef)(!1),Pn=(0,L.useRef)(null);function rn(){clearTimeout(Pn.current),nn.current=!0,Pn.current=setTimeout(function(){nn.current=!1},50)}var Vt=(0,L.useRef)({top:Et,bottom:Zt});return Vt.current.top=Et,Vt.current.bottom=Zt,function(Kn){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=Kn<0&&Vt.current.top||Kn>0&&Vt.current.bottom;return ur&&on?(clearTimeout(Pn.current),nn.current=!1):(!on||nn.current)&&rn(),!nn.current&&on}};function $t(Et,Zt,nn,Pn){var rn=(0,L.useRef)(0),Vt=(0,L.useRef)(null),Kn=(0,L.useRef)(null),ur=(0,L.useRef)(!1),on=bn(Zt,nn);function tr(Wn){if(Et){B.A.cancel(Vt.current);var er=Wn.deltaY;rn.current+=er,Kn.current=er,!on(er)&&(Tn||Wn.preventDefault(),Vt.current=(0,B.A)(function(){var Fn=ur.current?10:1;Pn(rn.current*Fn),rn.current=0}))}}function Cn(Wn){Et&&(ur.current=Wn.detail===Kn.current)}return[tr,Cn]}var Ct=u(30981),Z=14/15;function me(Et,Zt,nn){var Pn=(0,L.useRef)(!1),rn=(0,L.useRef)(0),Vt=(0,L.useRef)(null),Kn=(0,L.useRef)(null),ur,on=function(er){if(Pn.current){var Fn=Math.ceil(er.touches[0].pageY),en=rn.current-Fn;rn.current=Fn,nn(en)&&er.preventDefault(),clearInterval(Kn.current),Kn.current=setInterval(function(){en*=Z,(!nn(en,!0)||Math.abs(en)<=.1)&&clearInterval(Kn.current)},16)}},tr=function(){Pn.current=!1,ur()},Cn=function(er){ur(),er.touches.length===1&&!Pn.current&&(Pn.current=!0,rn.current=Math.ceil(er.touches[0].pageY),Vt.current=er.target,Vt.current.addEventListener("touchmove",on),Vt.current.addEventListener("touchend",tr))};ur=function(){Vt.current&&(Vt.current.removeEventListener("touchmove",on),Vt.current.removeEventListener("touchend",tr))},(0,Ct.A)(function(){return Et&&Zt.current.addEventListener("touchstart",Cn),function(){var Wn;(Wn=Zt.current)===null||Wn===void 0||Wn.removeEventListener("touchstart",Cn),ur(),clearInterval(Kn.current)}},[Et])}var ke=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],Ee=[],_e={overflowY:"auto",overflowAnchor:"none"};function ge(Et,Zt){var nn=Et.prefixCls,Pn=nn===void 0?"rc-virtual-list":nn,rn=Et.className,Vt=Et.height,Kn=Et.itemHeight,ur=Et.fullHeight,on=ur===void 0?!0:ur,tr=Et.style,Cn=Et.data,Wn=Et.children,er=Et.itemKey,Fn=Et.virtual,en=Et.direction,gn=Et.component,kn=gn===void 0?"div":gn,Jn=Et.onScroll,Nn=Et.onVisibleChange,kr=Et.innerProps,bt=C(Et,ke),ne=!!(Fn!==!1&&Vt&&Kn),fe=ne&&Cn&&Kn*Cn.length>Vt,K=(0,L.useState)(0),he=O(K,2),Fe=he[0],Nt=he[1],ln=(0,L.useState)(!1),pn=O(ln,2),Yn=pn[0],ht=pn[1],De=I()(Pn,f({},"".concat(Pn,"-rtl"),en==="rtl"),rn),we=Cn||Ee,Ke=(0,L.useRef)(),be=(0,L.useRef)(),pt=(0,L.useRef)(),We=L.useCallback(function(H){return typeof er=="function"?er(H):H?.[er]},[er]),Je={getKey:We};function ye(H){Nt(function(Be){var wn;typeof H=="function"?wn=H(Be):wn=H;var bi=mr(wn);return Ke.current.scrollTop=bi,bi})}var Qe=(0,L.useRef)({start:0,end:we.length}),ze=(0,L.useRef)(),qe=Mt(we,We),Pt=O(qe,1),zt=Pt[0];ze.current=zt;var un=Ne(We,null,null),hn=O(un,4),xt=hn[0],_t=hn[1],qt=hn[2],fn=hn[3],On=L.useMemo(function(){if(!ne)return{scrollHeight:void 0,start:0,end:we.length-1,offset:void 0};if(!fe){var H;return{scrollHeight:((H=be.current)===null||H===void 0?void 0:H.offsetHeight)||0,start:0,end:we.length-1,offset:void 0}}for(var Be=0,wn,bi,Oi,de=we.length,Ve=0;Ve<de;Ve+=1){var vt=we[Ve],Qt=We(vt),nt=qt.get(Qt),Tt=Be+(nt===void 0?Kn:nt);Tt>=Fe&&wn===void 0&&(wn=Ve,bi=Be),Tt>Fe+Vt&&Oi===void 0&&(Oi=Ve),Be=Tt}return wn===void 0&&(wn=0,bi=0,Oi=Math.ceil(Vt/Kn)),Oi===void 0&&(Oi=we.length-1),Oi=Math.min(Oi+1,we.length),{scrollHeight:Be,start:wn,end:Oi,offset:bi}},[fe,ne,Fe,we,fn,Vt]),Gn=On.scrollHeight,Bn=On.start,Lr=On.end,An=On.offset;Qe.current.start=Bn,Qe.current.end=Lr;var Un=Gn-Vt,cr=(0,L.useRef)(Un);cr.current=Un;function mr(H){var Be=H;return Number.isNaN(cr.current)||(Be=Math.min(Be,cr.current)),Be=Math.max(Be,0),Be}var hr=Fe<=0,ar=Fe>=Un,Cr=bn(hr,ar);function Yr(H){var Be=H;ye(Be)}function Xr(H){var Be=H.currentTarget.scrollTop;Be!==Fe&&ye(Be),Jn?.(H)}var ni=$t(ne,hr,ar,function(H){ye(function(Be){var wn=Be+H;return wn})}),ki=O(ni,2),zr=ki[0],Ur=ki[1];me(ne,Ke,function(H,Be){return Cr(H,Be)?!1:(zr({preventDefault:function(){},deltaY:H}),!0)}),(0,Ct.A)(function(){function H(Be){ne&&Be.preventDefault()}return Ke.current.addEventListener("wheel",zr),Ke.current.addEventListener("DOMMouseScroll",Ur),Ke.current.addEventListener("MozMousePixelScroll",H),function(){Ke.current&&(Ke.current.removeEventListener("wheel",zr),Ke.current.removeEventListener("DOMMouseScroll",Ur),Ke.current.removeEventListener("MozMousePixelScroll",H))}},[ne]);var jt=it(Ke,we,qt,Kn,We,_t,ye,function(){var H;(H=pt.current)===null||H===void 0||H.delayHidden()});L.useImperativeHandle(Zt,function(){return{scrollTo:jt}}),(0,Ct.A)(function(){if(Nn){var H=we.slice(Bn,Lr+1);Nn(H,we)}},[Bn,Lr,we]);var sn=je(we,Bn,Lr,xt,Wn,Je),Rn=null;return Vt&&(Rn=h(f({},on?"height":"maxHeight",Vt),_e),ne&&(Rn.overflowY="hidden",Yn&&(Rn.pointerEvents="none"))),L.createElement("div",l({style:h(h({},tr),{},{position:"relative"}),className:De},bt),L.createElement(kn,{className:"".concat(Pn,"-holder"),style:Rn,ref:Ke,onScroll:Xr},L.createElement(ee,{prefixCls:Pn,height:Gn,offset:An,onInnerResize:_t,ref:be,innerProps:kr},sn)),ne&&L.createElement(ie,{ref:pt,prefixCls:Pn,scrollTop:Fe,height:Vt,scrollHeight:Gn,count:we.length,direction:en,onScroll:Yr,onStartMove:function(){ht(!0)},onStopMove:function(){ht(!1)}}))}var Me=L.forwardRef(ge);Me.displayName="List";const Ft=Me},48422:(Ge,w,u)=>{var l=u(81757),g=u(80344),y=u(30790),x=u(62886),f=u(91452),p=u(5480),h=u(75394);function E(){"use strict";var v=g(),m=v.m(E),S=(Object.getPrototypeOf?Object.getPrototypeOf(m):m.__proto__).constructor;function d(C){var L=typeof C=="function"&&C.constructor;return!!L&&(L===S||(L.displayName||L.name)==="GeneratorFunction")}var O={throw:1,return:2,break:3,continue:3};function R(C){var L,j;return function(I){L||(L={stop:function(){return j(I.a,2)},catch:function(){return I.v},abrupt:function($,ee){return j(I.a,O[$],ee)},delegateYield:function($,ee,re){return L.resultName=ee,j(I.d,h($),re)},finish:function($){return j(I.f,$)}},j=function($,ee,re){I.p=L.prev,I.n=L.next;try{return $(ee,re)}finally{L.next=I.n}}),L.resultName&&(L[L.resultName]=I.v,L.resultName=void 0),L.sent=I.v,L.next=I.n;try{return C.call(this,L)}finally{I.p=L.prev,I.n=L.next}}}return(Ge.exports=E=function(){return{wrap:function(j,I,U,$){return v.w(R(j),I,U,$&&$.reverse())},isGeneratorFunction:d,mark:v.m,awrap:function(j,I){return new l(j,I)},AsyncIterator:f,async:function(j,I,U,$,ee){return(d(I)?x:y)(R(j),I,U,$,ee)},keys:p,values:h}},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports)()}Ge.exports=E,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},48461:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.switchScan=void 0;var l=u(90680),g=u(65212);function y(x,f){return g.operate(function(p,h){var E=f;return l.switchMap(function(v,m){return x(E,v,m)},function(v,m){return E=m,m})(p).subscribe(h),function(){E=null}})}w.switchScan=y},48497:(Ge,w,u)=>{"use strict";u.d(w,{Y:()=>g});var l=u(29407);function g(x,f){return+(0,l.a)(x)<+(0,l.a)(f)}var y=null},48556:Ge=>{"use strict";const w=Object,u=["black","red","green","yellow","blue","magenta","cyan","lightGray","","default"],l=["darkGray","lightRed","lightGreen","lightYellow","lightBlue","lightMagenta","lightCyan","white",""],g=["","bright","dim","italic","underline","","","inverse"],y={red:"lightRed",green:"lightGreen",yellow:"lightYellow",blue:"lightBlue",magenta:"lightMagenta",cyan:"lightCyan",black:"darkGray",lightGray:"white"},x={0:"style",2:"unstyle",3:"color",9:"colorLight",4:"bgColor",10:"bgColorLight"},f={color:u,colorLight:l,bgColor:u,bgColorLight:l,style:g,unstyle:g};class p{constructor(Q,ce,se){this.background=Q,this.name=ce,this.brightness=se}get inverse(){return new p(!this.background,this.name||(this.background?"black":"white"),this.brightness)}get clean(){const Q=this.name==="default"?"":this.name,ce=this.brightness===h.bright,se=this.brightness===h.dim;if(!(!Q&&!ce&&!se))return{name:Q,bright:ce,dim:se}}defaultBrightness(Q){return new p(this.background,this.name,this.brightness||Q)}css(Q){const ce=Q?this.inverse:this,se=ce.brightness===h.bright&&y[ce.name]||ce.name,q=ce.background?"background:":"color:",te=Se.rgb[se],A=this.brightness===h.dim?.5:1;return te?q+"rgba("+[...te,A].join(",")+");":!ce.background&&A<1?"color:rgba(0,0,0,0.5);":""}}class h{constructor(Q){let ce,se,q,te="",A=!1;if(Q!==void 0){if(ce=Number(Q),se=x[Math.floor(ce/10)],se===void 0||f[se]===void 0)return;q=f[se][ce%10],te="\x1B["+ce+"m",A=ce===h.noBrightness||ce===h.bright||ce===h.dim}this.value=ce,this.type=se,this.subtype=q,this.str=te,this.isBrightness=A}static str(Q){return Q===void 0?"":"\x1B["+Number(Q)+"m"}clone(){const Q=new h(void 0);return Q.value=this.value,Q.type=this.type,Q.subtype=this.subtype,Q.str=this.str,Q.isBrightness=this.isBrightness,Q}}w.assign(h,{reset:0,bright:1,dim:2,inverse:7,noBrightness:22,noItalic:23,noUnderline:24,noInverse:27,noColor:39,noBgColor:49});const E=(z,Q,ce)=>z.split(Q).join(ce),v=z=>z.replace(/(\u001b\[(1|2)m)/g,"\x1B[22m$1"),m=z=>z.replace(/\u001b\[22m(\u001b\[(1|2)m)/g,"$1"),S=(z,Q,ce)=>{const se=h.str(Q),q=h.str(ce);return String(z).split(` `).map(te=>v(se+E(m(te),q,se)+q)).join(` `)},d=(z,Q)=>z+Q.charAt(0).toUpperCase()+Q.slice(1),O=[...u.map((z,Q)=>z?[[z,30+Q,h.noColor],[d("bg",z),40+Q,h.noBgColor]]:[]),...l.map((z,Q)=>z?[[z,90+Q,h.noColor],[d("bg",z),100+Q,h.noBgColor]]:[]),...["","BrightRed","BrightGreen","BrightYellow","BrightBlue","BrightMagenta","BrightCyan"].map((z,Q)=>z?[["bg"+z,100+Q,h.noBgColor]]:[]),...g.map((z,Q)=>z?[[z,Q,z==="bright"||z==="dim"?h.noBrightness:20+Q]]:[])].reduce((z,Q)=>z.concat(Q)),R=(z,Q=z)=>O.reduce((ce,[se,q,te])=>w.defineProperty(ce,se,{get:()=>R(A=>Q(S(A,q,te)))}),z),C=0,L=1,j=2;class I{constructor(Q,ce){this.code=Q,this.text=ce,this.css="",this.color=void 0,this.bgColor=void 0,this.bold=void 0,this.inverse=void 0,this.italic=void 0,this.underline=void 0,this.bright=void 0,this.dim=void 0}}function*U(z){const Q={state:C,buffer:"",text:"",code:"",codes:[]},se=$(z(),1048576);for(let q=0;q<se.length;q++){const te=se[q];se[q]=void 0,yield*ee(te,Q)}Q.state!==C&&(Q.text+=Q.buffer),Q.text&&(yield new I(new h,Q.text))}function $(z,Q){const ce=[],se=Math.ceil(z.length/Q);for(let q=0,te=0;q<se;++q,te+=Q)ce.push(z.substring(te,te+Q));return ce}function*ee(z,Q){const ce=z,se=z.length;for(let q=0;q<se;q++){const te=ce[q];switch(Q.buffer+=te,Q.state){case C:te==="\x1B"?(Q.state=L,Q.buffer=te):Q.text+=te;break;case L:te==="["?(Q.state=j,Q.code="",Q.codes=[]):(Q.state=C,Q.text+=Q.buffer);break;case j:if(te>="0"&&te<="9")Q.code+=te;else if(te===";")Q.codes.push(new h(Q.code)),Q.code="";else if(te==="m"){Q.code=Q.code||"0";for(const A of Q.codes)yield new I(A,Q.text),Q.text="";yield new I(new h(Q.code),Q.text),Q.text="",Q.state=C}else Q.state=C,Q.text+=Q.buffer}}}function*re(z){let Q=new p,ce=new p(!0),se,q=new Set;function te(){Q=new p,ce=new p(!0),se=void 0,q.clear()}te();for(const A of z){const T=A.code;if(A.text!==""){const B=q.has("inverse"),X=q.has("underline")?"text-decoration: underline;":"",ue=q.has("italic")?"font-style: italic;":"",ie=se===h.bright?"font-weight: bold;":"",Te=Q.defaultBrightness(se),je=new I(A.code?A.code.clone():void 0,A.text);je.css=A.css?A.css:ie+ue+X+Te.css(B)+ce.css(B),je.bold=A.bold?A.bold:!!ie,je.color=A.color?A.color:Te.clean,je.bgColor=A.bgColor?A.bgColor:ce.clean,je.inverse=B,je.italic=!!ue,je.underline=!!X,je.bright=q.has("bright"),je.dim=q.has("dim"),yield je}if(T.isBrightness){se=T.value;continue}if(A.code.value!==void 0){if(A.code.value===h.reset){te();continue}switch(A.code.type){case"color":case"colorLight":Q=new p(!1,T.subtype);break;case"bgColor":case"bgColorLight":ce=new p(!0,T.subtype);break;case"style":q.add(T.subtype);break;case"unstyle":q.delete(T.subtype);break}}}}class Se{constructor(Q){this.spans=Q?Array.from(U(typeof Q=="string"?()=>Q:Q)):[]}get str(){return this.spans.reduce((Q,ce)=>Q+ce.text+ce.code.str,"")}get parsed(){const Q=new Se;return Q.spans=Array.from(re(this.spans)),Q}get asChromeConsoleLogArguments(){const Q=this.parsed.spans;return[Q.map(ce=>"%c"+ce.text).join(""),...Q.map(ce=>ce.css)]}get browserConsoleArguments(){return this.asChromeConsoleLogArguments}static get nice(){return Se.names.forEach(Q=>{Q in String.prototype||w.defineProperty(String.prototype,Q,{get:function(){return Se[Q](this)}})}),Se}static parse(Q){return new Se(Q).parsed}static parseIterator(Q){return re(U(typeof Q=="string"?()=>Q:Q))}static strip(Q){return Q.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g,"")}static isEscaped(Q){return Q=String(Q),Se.strip(Q)!==Q}[Symbol.iterator](){return this.spans[Symbol.iterator]()}static get ansicolor(){return Se}}R(Se,z=>z),Se.names=O.map(([z])=>z),Se.rgb={black:[0,0,0],darkGray:[100,100,100],lightGray:[200,200,200],white:[255,255,255],red:[204,0,0],lightRed:[255,51,0],green:[0,204,0],lightGreen:[51,204,51],yellow:[204,102,0],lightYellow:[255,153,51],blue:[0,0,255],lightBlue:[26,140,255],magenta:[204,0,204],lightMagenta:[255,0,255],cyan:[0,153,255],lightCyan:[0,204,255]},Ge.exports=Se},48802:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>ur});function l(on){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tr){return typeof tr}:function(tr){return tr&&typeof Symbol=="function"&&tr.constructor===Symbol&&tr!==Symbol.prototype?"symbol":typeof tr},l(on)}function g(on,tr){if(l(on)!="object"||!on)return on;var Cn=on[Symbol.toPrimitive];if(Cn!==void 0){var Wn=Cn.call(on,tr||"default");if(l(Wn)!="object")return Wn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(tr==="string"?String:Number)(on)}function y(on){var tr=g(on,"string");return l(tr)=="symbol"?tr:tr+""}function x(on,tr,Cn){return(tr=y(tr))in on?Object.defineProperty(on,tr,{value:Cn,enumerable:!0,configurable:!0,writable:!0}):on[tr]=Cn,on}function f(on,tr){var Cn=Object.keys(on);if(Object.getOwnPropertySymbols){var Wn=Object.getOwnPropertySymbols(on);tr&&(Wn=Wn.filter(function(er){return Object.getOwnPropertyDescriptor(on,er).enumerable})),Cn.push.apply(Cn,Wn)}return Cn}function p(on){for(var tr=1;tr<arguments.length;tr++){var Cn=arguments[tr]!=null?arguments[tr]:{};tr%2?f(Object(Cn),!0).forEach(function(Wn){x(on,Wn,Cn[Wn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(on,Object.getOwnPropertyDescriptors(Cn)):f(Object(Cn)).forEach(function(Wn){Object.defineProperty(on,Wn,Object.getOwnPropertyDescriptor(Cn,Wn))})}return on}function h(on){if(Array.isArray(on))return on}function E(on,tr){var Cn=on==null?null:typeof Symbol<"u"&&on[Symbol.iterator]||on["@@iterator"];if(Cn!=null){var Wn,er,Fn,en,gn=[],kn=!0,Jn=!1;try{if(Fn=(Cn=Cn.call(on)).next,tr===0){if(Object(Cn)!==Cn)return;kn=!1}else for(;!(kn=(Wn=Fn.call(Cn)).done)&&(gn.push(Wn.value),gn.length!==tr);kn=!0);}catch(Nn){Jn=!0,er=Nn}finally{try{if(!kn&&Cn.return!=null&&(en=Cn.return(),Object(en)!==en))return}finally{if(Jn)throw er}}return gn}}function v(on,tr){(tr==null||tr>on.length)&&(tr=on.length);for(var Cn=0,Wn=Array(tr);Cn<tr;Cn++)Wn[Cn]=on[Cn];return Wn}function m(on,tr){if(on){if(typeof on=="string")return v(on,tr);var Cn={}.toString.call(on).slice(8,-1);return Cn==="Object"&&on.constructor&&(Cn=on.constructor.name),Cn==="Map"||Cn==="Set"?Array.from(on):Cn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Cn)?v(on,tr):void 0}}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(on,tr){return h(on)||E(on,tr)||m(on,tr)||S()}function O(on,tr){if(on==null)return{};var Cn={};for(var Wn in on)if({}.hasOwnProperty.call(on,Wn)){if(tr.indexOf(Wn)!==-1)continue;Cn[Wn]=on[Wn]}return Cn}function R(on,tr){if(on==null)return{};var Cn,Wn,er=O(on,tr);if(Object.getOwnPropertySymbols){var Fn=Object.getOwnPropertySymbols(on);for(Wn=0;Wn<Fn.length;Wn++)Cn=Fn[Wn],tr.indexOf(Cn)===-1&&{}.propertyIsEnumerable.call(on,Cn)&&(er[Cn]=on[Cn])}return er}var C=u(50365),L=u(46942),j=u.n(L),I=u(50072),U=u(44207);function $(on){var tr;return on==null||(tr=on.getRootNode)===null||tr===void 0?void 0:tr.call(on)}function ee(on){return $(on)instanceof ShadowRoot}function re(on){return ee(on)?$(on):null}var Se=u(26956),z=u(56855),Q=u(30981),ce=u(68430),se=u(96540);function q(){return q=Object.assign?Object.assign.bind():function(on){for(var tr=1;tr<arguments.length;tr++){var Cn=arguments[tr];for(var Wn in Cn)({}).hasOwnProperty.call(Cn,Wn)&&(on[Wn]=Cn[Wn])}return on},q.apply(null,arguments)}var te=u(1052),A=u(8719);function T(on){var tr=on.prefixCls,Cn=on.align,Wn=on.arrow,er=on.arrowPos,Fn=Wn||{},en=Fn.className,gn=Fn.content,kn=er.x,Jn=kn===void 0?0:kn,Nn=er.y,kr=Nn===void 0?0:Nn,bt=se.useRef();if(!Cn||!Cn.points)return null;var ne={position:"absolute"};if(Cn.autoArrow!==!1){var fe=Cn.points[0],K=Cn.points[1],he=fe[0],Fe=fe[1],Nt=K[0],ln=K[1];he===Nt||!["t","b"].includes(he)?ne.top=kr:he==="t"?ne.top=0:ne.bottom=0,Fe===ln||!["l","r"].includes(Fe)?ne.left=Jn:Fe==="l"?ne.left=0:ne.right=0}return se.createElement("div",{ref:bt,className:j()("".concat(tr,"-arrow"),en),style:ne},gn)}function B(on){var tr=on.prefixCls,Cn=on.open,Wn=on.zIndex,er=on.mask,Fn=on.motion;return er?se.createElement(te.A,q({},Fn,{motionAppear:!0,visible:Cn,removeOnLeave:!0}),function(en){var gn=en.className;return se.createElement("div",{style:{zIndex:Wn},className:j()("".concat(tr,"-mask"),gn)})}):null}var X=se.memo(function(on){var tr=on.children;return tr},function(on,tr){return tr.cache});const ue=X;var ie=se.forwardRef(function(on,tr){var Cn=on.popup,Wn=on.className,er=on.prefixCls,Fn=on.style,en=on.target,gn=on.onVisibleChanged,kn=on.open,Jn=on.keepDom,Nn=on.fresh,kr=on.onClick,bt=on.mask,ne=on.arrow,fe=on.arrowPos,K=on.align,he=on.motion,Fe=on.maskMotion,Nt=on.forceRender,ln=on.getPopupContainer,pn=on.autoDestroy,Yn=on.portal,ht=on.zIndex,De=on.onMouseEnter,we=on.onMouseLeave,Ke=on.onPointerEnter,be=on.ready,pt=on.offsetX,We=on.offsetY,Je=on.offsetR,ye=on.offsetB,Qe=on.onAlign,ze=on.onPrepare,qe=on.stretch,Pt=on.targetWidth,zt=on.targetHeight,un=typeof Cn=="function"?Cn():Cn,hn=kn||Jn,xt=ln?.length>0,_t=se.useState(!ln||!xt),qt=d(_t,2),fn=qt[0],On=qt[1];if((0,Q.A)(function(){!fn&&xt&&en&&On(!0)},[fn,xt,en]),!fn)return null;var Gn="auto",Bn={left:"-1000vw",top:"-1000vh",right:Gn,bottom:Gn};if(be||!kn){var Lr,An=K.points,Un=K.dynamicInset||((Lr=K._experimental)===null||Lr===void 0?void 0:Lr.dynamicInset),cr=Un&&An[0][1]==="r",mr=Un&&An[0][0]==="b";cr?(Bn.right=Je,Bn.left=Gn):(Bn.left=pt,Bn.right=Gn),mr?(Bn.bottom=ye,Bn.top=Gn):(Bn.top=We,Bn.bottom=Gn)}var hr={};return qe&&(qe.includes("height")&&zt?hr.height=zt:qe.includes("minHeight")&&zt&&(hr.minHeight=zt),qe.includes("width")&&Pt?hr.width=Pt:qe.includes("minWidth")&&Pt&&(hr.minWidth=Pt)),kn||(hr.pointerEvents="none"),se.createElement(Yn,{open:Nt||hn,getContainer:ln&&function(){return ln(en)},autoDestroy:pn},se.createElement(B,{prefixCls:er,open:kn,zIndex:ht,mask:bt,motion:Fe}),se.createElement(I.A,{onResize:Qe,disabled:!kn},function(ar){return se.createElement(te.A,q({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Nt,leavedClassName:"".concat(er,"-hidden")},he,{onAppearPrepare:ze,onEnterPrepare:ze,visible:kn,onVisibleChanged:function(Yr){var Xr;he==null||(Xr=he.onVisibleChanged)===null||Xr===void 0||Xr.call(he,Yr),gn(Yr)}}),function(Cr,Yr){var Xr=Cr.className,ni=Cr.style,ki=j()(er,Xr,Wn);return se.createElement("div",{ref:(0,A.K4)(ar,tr,Yr),className:ki,style:p(p(p(p({"--arrow-x":"".concat(fe.x||0,"px"),"--arrow-y":"".concat(fe.y||0,"px")},Bn),hr),ni),{},{boxSizing:"border-box",zIndex:ht},Fn),onMouseEnter:De,onMouseLeave:we,onPointerEnter:Ke,onClick:kr},ne&&se.createElement(T,{prefixCls:er,arrow:ne,arrowPos:fe,align:K}),se.createElement(ue,{cache:!kn&&!Nn},un))})}))});const Te=ie;var je=se.forwardRef(function(on,tr){var Cn=on.children,Wn=on.getTriggerDOMNode,er=(0,A.f3)(Cn),Fn=se.useCallback(function(gn){(0,A.Xf)(tr,Wn?Wn(gn):gn)},[Wn]),en=(0,A.xK)(Fn,Cn.ref);return er?se.cloneElement(Cn,{ref:en}):Cn});const yt=je;var tt=se.createContext(null);const Ze=tt;function Ne(on){return on?Array.isArray(on)?on:[on]:[]}function it(on,tr,Cn,Wn){return se.useMemo(function(){var er=Ne(Cn??tr),Fn=Ne(Wn??tr),en=new Set(er),gn=new Set(Fn);return on&&(en.has("hover")&&(en.delete("hover"),en.add("click")),gn.has("hover")&&(gn.delete("hover"),gn.add("click"))),[en,gn]},[on,tr,Cn,Wn])}var Rt=u(42467);function Dn(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Cn=arguments.length>2?arguments[2]:void 0;return Cn?on[0]===tr[0]:on[0]===tr[0]&&on[1]===tr[1]}function Mt(on,tr,Cn,Wn){for(var er=Cn.points,Fn=Object.keys(on),en=0;en<Fn.length;en+=1){var gn,kn=Fn[en];if(Dn((gn=on[kn])===null||gn===void 0?void 0:gn.points,er,Wn))return"".concat(tr,"-placement-").concat(kn)}return""}function Wt(on,tr,Cn,Wn){return tr||(Cn?{motionName:"".concat(on,"-").concat(Cn)}:Wn?{motionName:Wn}:null)}function Tn(on){return on.ownerDocument.defaultView}function bn(on){for(var tr=[],Cn=on?.parentElement,Wn=["hidden","scroll","clip","auto"];Cn;){var er=Tn(Cn).getComputedStyle(Cn),Fn=er.overflowX,en=er.overflowY,gn=er.overflow;[Fn,en,gn].some(function(kn){return Wn.includes(kn)})&&tr.push(Cn),Cn=Cn.parentElement}return tr}function $t(on){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(on)?tr:on}function Ct(on){return $t(parseFloat(on),0)}function Z(on,tr){var Cn=p({},on);return(tr||[]).forEach(function(Wn){if(!(Wn instanceof HTMLBodyElement||Wn instanceof HTMLHtmlElement)){var er=Tn(Wn).getComputedStyle(Wn),Fn=er.overflow,en=er.overflowClipMargin,gn=er.borderTopWidth,kn=er.borderBottomWidth,Jn=er.borderLeftWidth,Nn=er.borderRightWidth,kr=Wn.getBoundingClientRect(),bt=Wn.offsetHeight,ne=Wn.clientHeight,fe=Wn.offsetWidth,K=Wn.clientWidth,he=Ct(gn),Fe=Ct(kn),Nt=Ct(Jn),ln=Ct(Nn),pn=$t(Math.round(kr.width/fe*1e3)/1e3),Yn=$t(Math.round(kr.height/bt*1e3)/1e3),ht=(fe-K-Nt-ln)*pn,De=(bt-ne-he-Fe)*Yn,we=he*Yn,Ke=Fe*Yn,be=Nt*pn,pt=ln*pn,We=0,Je=0;if(Fn==="clip"){var ye=Ct(en);We=ye*pn,Je=ye*Yn}var Qe=kr.x+be-We,ze=kr.y+we-Je,qe=Qe+kr.width+2*We-be-pt-ht,Pt=ze+kr.height+2*Je-we-Ke-De;Cn.left=Math.max(Cn.left,Qe),Cn.top=Math.max(Cn.top,ze),Cn.right=Math.min(Cn.right,qe),Cn.bottom=Math.min(Cn.bottom,Pt)}}),Cn}function me(on){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Cn="".concat(tr),Wn=Cn.match(/^(.*)\%$/);return Wn?on*(parseFloat(Wn[1])/100):parseFloat(Cn)}function ke(on,tr){var Cn=tr||[],Wn=d(Cn,2),er=Wn[0],Fn=Wn[1];return[me(on.width,er),me(on.height,Fn)]}function Ee(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[on[0],on[1]]}function _e(on,tr){var Cn=tr[0],Wn=tr[1],er,Fn;return Cn==="t"?Fn=on.y:Cn==="b"?Fn=on.y+on.height:Fn=on.y+on.height/2,Wn==="l"?er=on.x:Wn==="r"?er=on.x+on.width:er=on.x+on.width/2,{x:er,y:Fn}}function ge(on,tr){var Cn={t:"b",b:"t",l:"r",r:"l"};return on.map(function(Wn,er){return er===tr?Cn[Wn]||"c":Wn}).join("")}function Me(on,tr,Cn,Wn,er,Fn,en){var gn=se.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:er[Wn]||{}}),kn=d(gn,2),Jn=kn[0],Nn=kn[1],kr=se.useRef(0),bt=se.useMemo(function(){return tr?bn(tr):[]},[tr]),ne=se.useRef({}),fe=function(){ne.current={}};on||fe();var K=(0,Se.A)(function(){if(tr&&Cn&&on){let dn=function(qn,yr){var ci=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ki,hi=un.x+qn,Ti=un.y+yr,Vi=hi+Lr,Di=Ti+Bn,Pi=Math.max(hi,ci.left),mt=Math.max(Ti,ci.top),tn=Math.min(Vi,ci.right),or=Math.min(Di,ci.bottom);return Math.max(0,(tn-Pi)*(or-mt))},Vn=function(){wa=un.y+ei,ji=wa+Bn,Dt=un.x+mi,Xn=Dt+Lr};var Nt,ln,pn=tr,Yn=pn.ownerDocument,ht=Tn(pn),De=ht.getComputedStyle(pn),we=De.width,Ke=De.height,be=De.position,pt=pn.style.left,We=pn.style.top,Je=pn.style.right,ye=pn.style.bottom,Qe=pn.style.overflow,ze=p(p({},er[Wn]),Fn),qe=Yn.createElement("div");(Nt=pn.parentElement)===null||Nt===void 0||Nt.appendChild(qe),qe.style.left="".concat(pn.offsetLeft,"px"),qe.style.top="".concat(pn.offsetTop,"px"),qe.style.position=be,qe.style.height="".concat(pn.offsetHeight,"px"),qe.style.width="".concat(pn.offsetWidth,"px"),pn.style.left="0",pn.style.top="0",pn.style.right="auto",pn.style.bottom="auto",pn.style.overflow="hidden";var Pt;if(Array.isArray(Cn))Pt={x:Cn[0],y:Cn[1],width:0,height:0};else{var zt=Cn.getBoundingClientRect();Pt={x:zt.x,y:zt.y,width:zt.width,height:zt.height}}var un=pn.getBoundingClientRect(),hn=Yn.documentElement,xt=hn.clientWidth,_t=hn.clientHeight,qt=hn.scrollWidth,fn=hn.scrollHeight,On=hn.scrollTop,Gn=hn.scrollLeft,Bn=un.height,Lr=un.width,An=Pt.height,Un=Pt.width,cr={left:0,top:0,right:xt,bottom:_t},mr={left:-Gn,top:-On,right:qt-Gn,bottom:fn-On},hr=ze.htmlRegion,ar="visible",Cr="visibleFirst";hr!=="scroll"&&hr!==Cr&&(hr=ar);var Yr=hr===Cr,Xr=Z(mr,bt),ni=Z(cr,bt),ki=hr===ar?ni:Xr,zr=Yr?ni:ki;pn.style.left="auto",pn.style.top="auto",pn.style.right="0",pn.style.bottom="0";var Ur=pn.getBoundingClientRect();pn.style.left=pt,pn.style.top=We,pn.style.right=Je,pn.style.bottom=ye,pn.style.overflow=Qe,(ln=pn.parentElement)===null||ln===void 0||ln.removeChild(qe);var jt=$t(Math.round(Lr/parseFloat(we)*1e3)/1e3),sn=$t(Math.round(Bn/parseFloat(Ke)*1e3)/1e3);if(jt===0||sn===0||(0,U.fk)(Cn)&&!(0,Rt.A)(Cn))return;var Rn=ze.offset,H=ze.targetOffset,Be=ke(un,Rn),wn=d(Be,2),bi=wn[0],Oi=wn[1],de=ke(Pt,H),Ve=d(de,2),vt=Ve[0],Qt=Ve[1];Pt.x-=vt,Pt.y-=Qt;var nt=ze.points||[],Tt=d(nt,2),Gt=Tt[0],En=Tt[1],Qn=Ee(En),Or=Ee(Gt),Pr=_e(Pt,Qn),ai=_e(un,Or),xi=p({},ze),mi=Pr.x-ai.x+bi,ei=Pr.y-ai.y+Oi,Qr=dn(mi,ei),Ni=dn(mi,ei,ni),ea=_e(Pt,["t","l"]),Qi=_e(un,["t","l"]),ir=_e(Pt,["b","r"]),xr=_e(un,["b","r"]),di=ze.overflow||{},ft=di.adjustX,zn=di.adjustY,Zn=di.shiftX,wi=di.shiftY,Ea=function(yr){return typeof yr=="boolean"?yr:yr>=0},wa,ji,Dt,Xn;Vn();var Tr=Ea(zn),Nr=Or[0]===Qn[0];if(Tr&&Or[0]==="t"&&(ji>zr.bottom||ne.current.bt)){var ti=ei;Nr?ti-=Bn-An:ti=ea.y-xr.y-Oi;var _i=dn(mi,ti),Ii=dn(mi,ti,ni);_i>Qr||_i===Qr&&(!Yr||Ii>=Ni)?(ne.current.bt=!0,ei=ti,Oi=-Oi,xi.points=[ge(Or,0),ge(Qn,0)]):ne.current.bt=!1}if(Tr&&Or[0]==="b"&&(wa<zr.top||ne.current.tb)){var ta=ei;Nr?ta+=Bn-An:ta=ir.y-Qi.y-Oi;var Ji=dn(mi,ta),k=dn(mi,ta,ni);Ji>Qr||Ji===Qr&&(!Yr||k>=Ni)?(ne.current.tb=!0,ei=ta,Oi=-Oi,xi.points=[ge(Or,0),ge(Qn,0)]):ne.current.tb=!1}var ve=Ea(ft),Le=Or[1]===Qn[1];if(ve&&Or[1]==="l"&&(Xn>zr.right||ne.current.rl)){var Ye=mi;Le?Ye-=Lr-Un:Ye=ea.x-xr.x-bi;var ot=dn(Ye,ei),Lt=dn(Ye,ei,ni);ot>Qr||ot===Qr&&(!Yr||Lt>=Ni)?(ne.current.rl=!0,mi=Ye,bi=-bi,xi.points=[ge(Or,1),ge(Qn,1)]):ne.current.rl=!1}if(ve&&Or[1]==="r"&&(Dt<zr.left||ne.current.lr)){var an=mi;Le?an+=Lr-Un:an=ir.x-Qi.x-bi;var nr=dn(an,ei),vr=dn(an,ei,ni);nr>Qr||nr===Qr&&(!Yr||vr>=Ni)?(ne.current.lr=!0,mi=an,bi=-bi,xi.points=[ge(Or,1),ge(Qn,1)]):ne.current.lr=!1}Vn();var $r=Zn===!0?0:Zn;typeof $r=="number"&&(Dt<ni.left&&(mi-=Dt-ni.left-bi,Pt.x+Un<ni.left+$r&&(mi+=Pt.x-ni.left+Un-$r)),Xn>ni.right&&(mi-=Xn-ni.right-bi,Pt.x>ni.right-$r&&(mi+=Pt.x-ni.right+$r)));var Fr=wi===!0?0:wi;typeof Fr=="number"&&(wa<ni.top&&(ei-=wa-ni.top-Oi,Pt.y+An<ni.top+Fr&&(ei+=Pt.y-ni.top+An-Fr)),ji>ni.bottom&&(ei-=ji-ni.bottom-Oi,Pt.y>ni.bottom-Fr&&(ei+=Pt.y-ni.bottom+Fr)));var qr=un.x+mi,jr=qr+Lr,vi=un.y+ei,Mi=vi+Bn,ra=Pt.x,Yi=ra+Un,ua=Pt.y,Sa=ua+An,Xt=Math.max(qr,ra),V=Math.min(jr,Yi),Y=(Xt+V)/2,D=Y-qr,P=Math.max(vi,ua),oe=Math.min(Mi,Sa),Ie=(P+oe)/2,Ue=Ie-vi;en?.(tr,xi);var Xe=Ur.right-un.x-(mi+un.width),dt=Ur.bottom-un.y-(ei+un.height);jt===1&&(mi=Math.round(mi),Xe=Math.round(Xe)),sn===1&&(ei=Math.round(ei),dt=Math.round(dt));var kt={ready:!0,offsetX:mi/jt,offsetY:ei/sn,offsetR:Xe/jt,offsetB:dt/sn,arrowX:D/jt,arrowY:Ue/sn,scaleX:jt,scaleY:sn,align:xi};Nn(kt)}}),he=function(){kr.current+=1;var ln=kr.current;Promise.resolve().then(function(){kr.current===ln&&K()})},Fe=function(){Nn(function(ln){return p(p({},ln),{},{ready:!1})})};return(0,Q.A)(Fe,[Wn]),(0,Q.A)(function(){on||Fe()},[on]),[Jn.ready,Jn.offsetX,Jn.offsetY,Jn.offsetR,Jn.offsetB,Jn.arrowX,Jn.arrowY,Jn.scaleX,Jn.scaleY,Jn.align,he]}function lt(on){if(Array.isArray(on))return v(on)}function Ft(on){if(typeof Symbol<"u"&&on[Symbol.iterator]!=null||on["@@iterator"]!=null)return Array.from(on)}function Et(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zt(on){return lt(on)||Ft(on)||m(on)||Et()}function nn(on,tr,Cn,Wn,er){(0,Q.A)(function(){if(on&&tr&&Cn){let kr=function(){Wn(),er()};var Fn=tr,en=Cn,gn=bn(Fn),kn=bn(en),Jn=Tn(en),Nn=new Set([Jn].concat(Zt(gn),Zt(kn)));return Nn.forEach(function(bt){bt.addEventListener("scroll",kr,{passive:!0})}),Jn.addEventListener("resize",kr,{passive:!0}),Wn(),function(){Nn.forEach(function(bt){bt.removeEventListener("scroll",kr),Jn.removeEventListener("resize",kr)})}}},[on,tr,Cn])}var Pn=u(68210);function rn(on,tr,Cn,Wn,er,Fn,en,gn){var kn=se.useRef(on);kn.current=on,se.useEffect(function(){if(tr&&Wn&&(!er||Fn)){var Jn=function(Fe){var Nt=Fe.target;kn.current&&!en(Nt)&&gn(!1)},Nn=Tn(Wn);Nn.addEventListener("mousedown",Jn,!0),Nn.addEventListener("contextmenu",Jn,!0);var kr=re(Cn);if(kr&&(kr.addEventListener("mousedown",Jn,!0),kr.addEventListener("contextmenu",Jn,!0)),0)var bt,ne,fe,K;return function(){Nn.removeEventListener("mousedown",Jn,!0),Nn.removeEventListener("contextmenu",Jn,!0),kr&&(kr.removeEventListener("mousedown",Jn,!0),kr.removeEventListener("contextmenu",Jn,!0))}}},[tr,Cn,Wn,er,Fn])}var Vt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Kn(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C.A,tr=se.forwardRef(function(Cn,Wn){var er=Cn.prefixCls,Fn=er===void 0?"rc-trigger-popup":er,en=Cn.children,gn=Cn.action,kn=gn===void 0?"hover":gn,Jn=Cn.showAction,Nn=Cn.hideAction,kr=Cn.popupVisible,bt=Cn.defaultPopupVisible,ne=Cn.onPopupVisibleChange,fe=Cn.afterPopupVisibleChange,K=Cn.mouseEnterDelay,he=Cn.mouseLeaveDelay,Fe=he===void 0?.1:he,Nt=Cn.focusDelay,ln=Cn.blurDelay,pn=Cn.mask,Yn=Cn.maskClosable,ht=Yn===void 0?!0:Yn,De=Cn.getPopupContainer,we=Cn.forceRender,Ke=Cn.autoDestroy,be=Cn.destroyPopupOnHide,pt=Cn.popup,We=Cn.popupClassName,Je=Cn.popupStyle,ye=Cn.popupPlacement,Qe=Cn.builtinPlacements,ze=Qe===void 0?{}:Qe,qe=Cn.popupAlign,Pt=Cn.zIndex,zt=Cn.stretch,un=Cn.getPopupClassNameFromAlign,hn=Cn.fresh,xt=Cn.alignPoint,_t=Cn.onPopupClick,qt=Cn.onPopupAlign,fn=Cn.arrow,On=Cn.popupMotion,Gn=Cn.maskMotion,Bn=Cn.popupTransitionName,Lr=Cn.popupAnimation,An=Cn.maskTransitionName,Un=Cn.maskAnimation,cr=Cn.className,mr=Cn.getTriggerDOMNode,hr=R(Cn,Vt),ar=Ke||be||!1,Cr=se.useState(!1),Yr=d(Cr,2),Xr=Yr[0],ni=Yr[1];(0,Q.A)(function(){ni((0,ce.A)())},[]);var ki=se.useRef({}),zr=se.useContext(Ze),Ur=se.useMemo(function(){return{registerSubPopup:function(St,_n){ki.current[St]=_n,zr?.registerSubPopup(St,_n)}}},[zr]),jt=(0,z.A)(),sn=se.useState(null),Rn=d(sn,2),H=Rn[0],Be=Rn[1],wn=se.useRef(null),bi=(0,Se.A)(function(rt){wn.current=rt,(0,U.fk)(rt)&&H!==rt&&Be(rt),zr?.registerSubPopup(jt,rt)}),Oi=se.useState(null),de=d(Oi,2),Ve=de[0],vt=de[1],Qt=se.useRef(null),nt=(0,Se.A)(function(rt){(0,U.fk)(rt)&&Ve!==rt&&(vt(rt),Qt.current=rt)}),Tt=se.Children.only(en),Gt=Tt?.props||{},En={},Qn=(0,Se.A)(function(rt){var St,_n,vn=Ve;return vn?.contains(rt)||((St=re(vn))===null||St===void 0?void 0:St.host)===rt||rt===vn||H?.contains(rt)||((_n=re(H))===null||_n===void 0?void 0:_n.host)===rt||rt===H||Object.values(ki.current).some(function(Ln){return Ln?.contains(rt)||rt===Ln})}),Or=Wt(Fn,On,Lr,Bn),Pr=Wt(Fn,Gn,Un,An),ai=se.useState(bt||!1),xi=d(ai,2),mi=xi[0],ei=xi[1],Qr=kr??mi,Ni=(0,Se.A)(function(rt){kr===void 0&&ei(rt)});(0,Q.A)(function(){ei(kr||!1)},[kr]);var ea=se.useRef(Qr);ea.current=Qr;var Qi=se.useRef([]);Qi.current=[];var ir=(0,Se.A)(function(rt){var St;Ni(rt),((St=Qi.current[Qi.current.length-1])!==null&&St!==void 0?St:Qr)!==rt&&(Qi.current.push(rt),ne?.(rt))}),xr=se.useRef(),di=function(){clearTimeout(xr.current)},ft=function(St){var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;di(),_n===0?ir(St):xr.current=setTimeout(function(){ir(St)},_n*1e3)};se.useEffect(function(){return di},[]);var zn=se.useState(!1),Zn=d(zn,2),wi=Zn[0],Ea=Zn[1];(0,Q.A)(function(rt){(!rt||Qr)&&Ea(!0)},[Qr]);var wa=se.useState(null),ji=d(wa,2),Dt=ji[0],Xn=ji[1],Tr=se.useState([0,0]),Nr=d(Tr,2),ti=Nr[0],_i=Nr[1],Ii=function(St){_i([St.clientX,St.clientY])},ta=Me(Qr,H,xt?ti:Ve,ye,ze,qe,qt),Ji=d(ta,11),k=Ji[0],ve=Ji[1],Le=Ji[2],Ye=Ji[3],ot=Ji[4],Lt=Ji[5],an=Ji[6],nr=Ji[7],vr=Ji[8],$r=Ji[9],Fr=Ji[10],qr=it(Xr,kn,Jn,Nn),jr=d(qr,2),vi=jr[0],Mi=jr[1],ra=vi.has("click"),Yi=Mi.has("click")||Mi.has("contextMenu"),ua=(0,Se.A)(function(){wi||Fr()}),Sa=function(){ea.current&&xt&&Yi&&ft(!1)};nn(Qr,Ve,H,ua,Sa),(0,Q.A)(function(){ua()},[ti,ye]),(0,Q.A)(function(){Qr&&!(ze!=null&&ze[ye])&&ua()},[JSON.stringify(qe)]);var Xt=se.useMemo(function(){var rt=Mt(ze,Fn,$r,xt);return j()(rt,un?.($r))},[$r,un,ze,Fn,xt]);se.useImperativeHandle(Wn,function(){return{nativeElement:Qt.current,popupElement:wn.current,forceAlign:ua}});var V=se.useState(0),Y=d(V,2),D=Y[0],P=Y[1],oe=se.useState(0),Ie=d(oe,2),Ue=Ie[0],Xe=Ie[1],dt=function(){if(zt&&Ve){var St=Ve.getBoundingClientRect();P(St.width),Xe(St.height)}},kt=function(){dt(),ua()},dn=function(St){Ea(!1),Fr(),fe?.(St)},Vn=function(){return new Promise(function(St){dt(),Xn(function(){return St})})};(0,Q.A)(function(){Dt&&(Fr(),Dt(),Xn(null))},[Dt]);function qn(rt,St,_n,vn){En[rt]=function(Ln){var _r;vn?.(Ln),ft(St,_n);for(var Br=arguments.length,Kr=new Array(Br>1?Br-1:0),Jr=1;Jr<Br;Jr++)Kr[Jr-1]=arguments[Jr];(_r=Gt[rt])===null||_r===void 0||_r.call.apply(_r,[Gt,Ln].concat(Kr))}}(ra||Yi)&&(En.onClick=function(rt){var St;ea.current&&Yi?ft(!1):!ea.current&&ra&&(Ii(rt),ft(!0));for(var _n=arguments.length,vn=new Array(_n>1?_n-1:0),Ln=1;Ln<_n;Ln++)vn[Ln-1]=arguments[Ln];(St=Gt.onClick)===null||St===void 0||St.call.apply(St,[Gt,rt].concat(vn))}),rn(Qr,Yi,Ve,H,pn,ht,Qn,ft);var yr=vi.has("hover"),ci=Mi.has("hover"),hi,Ti;yr&&(qn("onMouseEnter",!0,K,function(rt){Ii(rt)}),qn("onPointerEnter",!0,K,function(rt){Ii(rt)}),hi=function(St){(Qr||wi)&&H!==null&&H!==void 0&&H.contains(St.target)&&ft(!0,K)},xt&&(En.onMouseMove=function(rt){var St;(St=Gt.onMouseMove)===null||St===void 0||St.call(Gt,rt)})),ci&&(qn("onMouseLeave",!1,Fe),qn("onPointerLeave",!1,Fe),Ti=function(){ft(!1,Fe)}),vi.has("focus")&&qn("onFocus",!0,Nt),Mi.has("focus")&&qn("onBlur",!1,ln),vi.has("contextMenu")&&(En.onContextMenu=function(rt){var St;ea.current&&Mi.has("contextMenu")?ft(!1):(Ii(rt),ft(!0)),rt.preventDefault();for(var _n=arguments.length,vn=new Array(_n>1?_n-1:0),Ln=1;Ln<_n;Ln++)vn[Ln-1]=arguments[Ln];(St=Gt.onContextMenu)===null||St===void 0||St.call.apply(St,[Gt,rt].concat(vn))}),cr&&(En.className=j()(Gt.className,cr));var Vi=p(p({},Gt),En),Di={},Pi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Pi.forEach(function(rt){hr[rt]&&(Di[rt]=function(){for(var St,_n=arguments.length,vn=new Array(_n),Ln=0;Ln<_n;Ln++)vn[Ln]=arguments[Ln];(St=Vi[rt])===null||St===void 0||St.call.apply(St,[Vi].concat(vn)),hr[rt].apply(hr,vn)})});var mt=se.cloneElement(Tt,p(p({},Vi),Di)),tn={x:Lt,y:an},or=fn?p({},fn!==!0?fn:{}):null;return se.createElement(se.Fragment,null,se.createElement(I.A,{disabled:!Qr,ref:nt,onResize:kt},se.createElement(yt,{getTriggerDOMNode:mr},mt)),se.createElement(Ze.Provider,{value:Ur},se.createElement(Te,{portal:on,ref:bi,prefixCls:Fn,popup:pt,className:j()(We,Xt),style:Je,target:Ve,onMouseEnter:hi,onMouseLeave:Ti,onPointerEnter:hi,zIndex:Pt,open:Qr,keepDom:wi,fresh:hn,onClick:_t,mask:pn,motion:Or,maskMotion:Pr,onVisibleChanged:dn,onPrepare:Vn,forceRender:we,autoDestroy:ar,getPopupContainer:De,align:$r,arrow:or,arrowPos:tn,ready:k,offsetX:ve,offsetY:Le,offsetR:Ye,offsetB:ot,onAlign:ua,stretch:zt,targetWidth:D/nr,targetHeight:Ue/vr})))});return tr}const ur=Kn(C.A)},48808:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=y(u(3429)),g=y(u(81474));function y(O){return O&&O.__esModule?O:{default:O}}function x(O,R){if(!(O instanceof R))throw new TypeError("Cannot call a class as a function")}function f(O,R){for(var C=0;C<R.length;C++){var L=R[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}function p(O,R,C){return R&&f(O.prototype,R),C&&f(O,C),O}var h=["ACCESSIBLE","ACTION","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ANALYSE","ANALYZE","AS","ASC","AUTOCOMMIT","AUTO_INCREMENT","BACKUP","BEGIN","BETWEEN","BINLOG","BOTH","CASCADE","CASE","CHANGE","CHANGED","CHARACTER SET","CHARSET","CHECK","CHECKSUM","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPRESSED","CONCURRENT","CONSTRAINT","CONTAINS","CONVERT","CREATE","CROSS","CURRENT_TIMESTAMP","DATABASE","DATABASES","DAY","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DEFAULT","DEFINER","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO","DROP","DUMPFILE","DUPLICATE","DYNAMIC","ELSE","ENCLOSED","END","ENGINE","ENGINES","ENGINE_TYPE","ESCAPE","ESCAPED","EVENTS","EXEC","EXECUTE","EXISTS","EXPLAIN","EXTENDED","FAST","FETCH","FIELDS","FILE","FIRST","FIXED","FLUSH","FOR","FORCE","FOREIGN","FULL","FULLTEXT","FUNCTION","GLOBAL","GRANT","GRANTS","GROUP_CONCAT","HEAP","HIGH_PRIORITY","HOSTS","HOUR","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IFNULL","IGNORE","IN","INDEX","INDEXES","INFILE","INSERT","INSERT_ID","INSERT_METHOD","INTERVAL","INTO","INVOKER","IS","ISOLATION","KEY","KEYS","KILL","LAST_INSERT_ID","LEADING","LEVEL","LIKE","LINEAR","LINES","LOAD","LOCAL","LOCK","LOCKS","LOGS","LOW_PRIORITY","MARIA","MASTER","MASTER_CONNECT_RETRY","MASTER_HOST","MASTER_LOG_FILE","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MERGE","MINUTE","MINUTE_SECOND","MIN_ROWS","MODE","MODIFY","MONTH","MRG_MYISAM","MYISAM","NAMES","NATURAL","NOT","NOW()","NULL","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPEN","OPTIMIZE","OPTION","OPTIONALLY","OUTFILE","PACK_KEYS","PAGE","PARTIAL","PARTITION","PARTITIONS","PASSWORD","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PURGE","QUICK","RAID0","RAID_CHUNKS","RAID_CHUNKSIZE","RAID_TYPE","RANGE","READ","READ_ONLY","READ_WRITE","REFERENCES","REGEXP","RELOAD","RENAME","REPAIR","REPEATABLE","REPLACE","REPLICATION","RESET","RESTORE","RESTRICT","RETURN","RETURNS","REVOKE","RLIKE","ROLLBACK","ROW","ROWS","ROW_FORMAT","SECOND","SECURITY","SEPARATOR","SERIALIZABLE","SESSION","SHARE","SHOW","SHUTDOWN","SLAVE","SONAME","SOUNDS","SQL","SQL_AUTO_IS_NULL","SQL_BIG_RESULT","SQL_BIG_SELECTS","SQL_BIG_TABLES","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_LOG_BIN","SQL_LOG_OFF","SQL_LOG_UPDATE","SQL_LOW_PRIORITY_UPDATES","SQL_MAX_JOIN_SIZE","SQL_NO_CACHE","SQL_QUOTE_SHOW_CREATE","SQL_SAFE_UPDATES","SQL_SELECT_LIMIT","SQL_SLAVE_SKIP_COUNTER","SQL_SMALL_RESULT","SQL_WARNINGS","START","STARTING","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","STRIPED","SUPER","TABLE","TABLES","TEMPORARY","TERMINATED","THEN","TO","TRAILING","TRANSACTIONAL","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNIQUE","UNLOCK","UNSIGNED","USAGE","USE","USING","VARIABLES","VIEW","WHEN","WITH","WORK","WRITE","YEAR_MONTH"],E=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INSERT","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],v=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],m=["AND","CROSS APPLY","CROSS JOIN","ELSE","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],S,d=function(){function O(R){x(this,O),this.cfg=R}return p(O,[{key:"format",value:function(C){return S||(S=new g.default({reservedWords:h,reservedTopLevelWords:E,reservedNewlineWords:m,reservedTopLevelWordsNoIndent:v,stringTypes:['""',"N''","''","``","[]"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@",":"],lineCommentTypes:["#","--"]})),new l.default(this.cfg,S).format(C)}}]),O}();w.default=d,Ge.exports=w.default},48817:(Ge,w,u)=>{"use strict";u.d(w,{X:()=>x});var l=u(53496),g=u(17617),y=u(90063);class x extends l.P{constructor(h,E){if(super(),h===!0){const v=E;this.slope=v.slope,this.intercept=v.intercept,this.coefficients=[v.intercept,v.slope]}else{(0,g.Y)(h,E);const v=f(h,E);this.slope=v.slope,this.intercept=v.intercept,this.coefficients=[v.intercept,v.slope]}}toJSON(){return{name:"simpleLinearRegression",slope:this.slope,intercept:this.intercept}}_predict(h){return this.slope*h+this.intercept}computeX(h){return(h-this.intercept)/this.slope}toString(h){let E="f(x) = ";if(this.slope!==0){const v=(0,y.u)(this.slope,h);if(E+=`${v==="1"?"":`${v} * `}x`,this.intercept!==0){const m=Math.abs(this.intercept),S=m===this.intercept?"+":"-";E+=` ${S} ${(0,y.u)(m,h)}`}}else E+=(0,y.u)(this.intercept,h);return E}toLaTeX(h){return this.toString(h)}static load(h){if(h.name!=="simpleLinearRegression")throw new TypeError("not a SLR model");return new x(!0,h)}}function f(p,h){const E=p.length;let v=0,m=0,S=0,d=0;for(let C=0;C<E;C++)v+=p[C],m+=h[C],S+=p[C]*p[C],d+=p[C]*h[C];const R=(E*d-v*m)/(E*S-v*v);return{slope:R,intercept:1/E*m-R*(1/E)*v}}},48820:(Ge,w,u)=>{"use strict";u.d(w,{U1:()=>ce});var l=u(90365);class g{constructor(T,B,X,ue,ie,Te,je,yt,tt,Ze=0,Ne){this.p=T,this.stack=B,this.state=X,this.reducePos=ue,this.pos=ie,this.score=Te,this.buffer=je,this.bufferBase=yt,this.curContext=tt,this.lookAhead=Ze,this.parent=Ne}toString(){return`[${this.stack.filter((T,B)=>B%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(T,B,X=0){let ue=T.parser.context;return new g(T,[],B,X,X,0,[],0,ue?new y(ue,ue.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(T,B){this.stack.push(this.state,B,this.bufferBase+this.buffer.length),this.state=T}reduce(T){var B;let X=T>>19,ue=T&65535,{parser:ie}=this.p,Te=this.reducePos<this.pos-25;Te&&this.setLookAhead(this.pos);let je=ie.dynamicPrecedence(ue);if(je&&(this.score+=je),X==0){this.pushState(ie.getGoto(this.state,ue,!0),this.reducePos),ue<ie.minRepeatTerm&&this.storeNode(ue,this.reducePos,this.reducePos,Te?8:4,!0),this.reduceContext(ue,this.reducePos);return}let yt=this.stack.length-(X-1)*3-(T&262144?6:0),tt=yt?this.stack[yt-2]:this.p.ranges[0].from,Ze=this.reducePos-tt;Ze>=2e3&&!(!((B=this.p.parser.nodeSet.types[ue])===null||B===void 0)&&B.isAnonymous)&&(tt==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=Ze):this.p.lastBigReductionSize<Ze&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=tt,this.p.lastBigReductionSize=Ze));let Ne=yt?this.stack[yt-1]:0,it=this.bufferBase+this.buffer.length-Ne;if(ue<ie.minRepeatTerm||T&131072){let Rt=ie.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(ue,tt,Rt,it+4,!0)}if(T&262144)this.state=this.stack[yt];else{let Rt=this.stack[yt-3];this.state=ie.getGoto(Rt,ue,!0)}for(;this.stack.length>yt;)this.stack.pop();this.reduceContext(ue,tt)}storeNode(T,B,X,ue=4,ie=!1){if(T==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let Te=this,je=this.buffer.length;if(je==0&&Te.parent&&(je=Te.bufferBase-Te.parent.bufferBase,Te=Te.parent),je>0&&Te.buffer[je-4]==0&&Te.buffer[je-1]>-1){if(B==X)return;if(Te.buffer[je-2]>=B){Te.buffer[je-2]=X;return}}}if(!ie||this.pos==X)this.buffer.push(T,B,X,ue);else{let Te=this.buffer.length;if(Te>0&&this.buffer[Te-4]!=0){let je=!1;for(let yt=Te;yt>0&&this.buffer[yt-2]>X;yt-=4)if(this.buffer[yt-1]>=0){je=!0;break}if(je)for(;Te>0&&this.buffer[Te-2]>X;)this.buffer[Te]=this.buffer[Te-4],this.buffer[Te+1]=this.buffer[Te-3],this.buffer[Te+2]=this.buffer[Te-2],this.buffer[Te+3]=this.buffer[Te-1],Te-=4,ue>4&&(ue-=4)}this.buffer[Te]=T,this.buffer[Te+1]=B,this.buffer[Te+2]=X,this.buffer[Te+3]=ue}}shift(T,B,X,ue){if(T&131072)this.pushState(T&65535,this.pos);else if((T&262144)==0){let ie=T,{parser:Te}=this.p;(ue>this.pos||B<=Te.maxNode)&&(this.pos=ue,Te.stateFlag(ie,1)||(this.reducePos=ue)),this.pushState(ie,X),this.shiftContext(B,X),B<=Te.maxNode&&this.buffer.push(B,X,ue,4)}else this.pos=ue,this.shiftContext(B,X),B<=this.p.parser.maxNode&&this.buffer.push(B,X,ue,4)}apply(T,B,X,ue){T&65536?this.reduce(T):this.shift(T,B,X,ue)}useNode(T,B){let X=this.p.reused.length-1;(X<0||this.p.reused[X]!=T)&&(this.p.reused.push(T),X++);let ue=this.pos;this.reducePos=this.pos=ue+T.length,this.pushState(B,ue),this.buffer.push(X,ue,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,T,this,this.p.stream.reset(this.pos-T.length)))}split(){let T=this,B=T.buffer.length;for(;B>0&&T.buffer[B-2]>T.reducePos;)B-=4;let X=T.buffer.slice(B),ue=T.bufferBase+B;for(;T&&ue==T.bufferBase;)T=T.parent;return new g(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,X,ue,this.curContext,this.lookAhead,T)}recoverByDelete(T,B){let X=T<=this.p.parser.maxNode;X&&this.storeNode(T,this.pos,B,4),this.storeNode(0,this.pos,B,X?8:4),this.pos=this.reducePos=B,this.score-=190}canShift(T){for(let B=new x(this);;){let X=this.p.parser.stateSlot(B.state,4)||this.p.parser.hasAction(B.state,T);if(X==0)return!1;if((X&65536)==0)return!0;B.reduce(X)}}recoverByInsert(T){if(this.stack.length>=300)return[];let B=this.p.parser.nextStates(this.state);if(B.length>8||this.stack.length>=120){let ue=[];for(let ie=0,Te;ie<B.length;ie+=2)(Te=B[ie+1])!=this.state&&this.p.parser.hasAction(Te,T)&&ue.push(B[ie],Te);if(this.stack.length<120)for(let ie=0;ue.length<8&&ie<B.length;ie+=2){let Te=B[ie+1];ue.some((je,yt)=>yt&1&&je==Te)||ue.push(B[ie],Te)}B=ue}let X=[];for(let ue=0;ue<B.length&&X.length<4;ue+=2){let ie=B[ue+1];if(ie==this.state)continue;let Te=this.split();Te.pushState(ie,this.pos),Te.storeNode(0,Te.pos,Te.pos,4,!0),Te.shiftContext(B[ue],this.pos),Te.reducePos=this.pos,Te.score-=200,X.push(Te)}return X}forceReduce(){let{parser:T}=this.p,B=T.stateSlot(this.state,5);if((B&65536)==0)return!1;if(!T.validAction(this.state,B)){let X=B>>19,ue=B&65535,ie=this.stack.length-X*3;if(ie<0||T.getGoto(this.stack[ie],ue,!1)<0){let Te=this.findForcedReduction();if(Te==null)return!1;B=Te}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(B),!0}findForcedReduction(){let{parser:T}=this.p,B=[],X=(ue,ie)=>{if(!B.includes(ue))return B.push(ue),T.allActions(ue,Te=>{if(!(Te&393216))if(Te&65536){let je=(Te>>19)-ie;if(je>1){let yt=Te&65535,tt=this.stack.length-je*3;if(tt>=0&&T.getGoto(this.stack[tt],yt,!1)>=0)return je<<19|65536|yt}}else{let je=X(Te,ie+1);if(je!=null)return je}})};return X(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:T}=this.p;return T.data[T.stateSlot(this.state,1)]==65535&&!T.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(T){if(this.state!=T.state||this.stack.length!=T.stack.length)return!1;for(let B=0;B<this.stack.length;B+=3)if(this.stack[B]!=T.stack[B])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(T){return this.p.parser.dialect.flags[T]}shiftContext(T,B){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,T,this,this.p.stream.reset(B)))}reduceContext(T,B){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,T,this,this.p.stream.reset(B)))}emitContext(){let T=this.buffer.length-1;(T<0||this.buffer[T]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let T=this.buffer.length-1;(T<0||this.buffer[T]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(T){if(T!=this.curContext.context){let B=new y(this.curContext.tracker,T);B.hash!=this.curContext.hash&&this.emitContext(),this.curContext=B}}setLookAhead(T){T>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=T)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class y{constructor(T,B){this.tracker=T,this.context=B,this.hash=T.strict?T.hash(B):0}}class x{constructor(T){this.start=T,this.state=T.state,this.stack=T.stack,this.base=this.stack.length}reduce(T){let B=T&65535,X=T>>19;X==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(X-1)*3;let ue=this.start.p.parser.getGoto(this.stack[this.base-3],B,!0);this.state=ue}}class f{constructor(T,B,X){this.stack=T,this.pos=B,this.index=X,this.buffer=T.buffer,this.index==0&&this.maybeNext()}static create(T,B=T.bufferBase+T.buffer.length){return new f(T,B,B-T.bufferBase)}maybeNext(){let T=this.stack.parent;T!=null&&(this.index=this.stack.bufferBase-T.bufferBase,this.stack=T,this.buffer=T.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new f(this.stack,this.pos,this.index)}}function p(A,T=Uint16Array){if(typeof A!="string")return A;let B=null;for(let X=0,ue=0;X<A.length;){let ie=0;for(;;){let Te=A.charCodeAt(X++),je=!1;if(Te==126){ie=65535;break}Te>=92&&Te--,Te>=34&&Te--;let yt=Te-32;if(yt>=46&&(yt-=46,je=!0),ie+=yt,je)break;ie*=46}B?B[ue++]=ie:B=new T(ie)}return B}class h{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const E=new h;class v{constructor(T,B){this.input=T,this.ranges=B,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=E,this.rangeIndex=0,this.pos=this.chunkPos=B[0].from,this.range=B[0],this.end=B[B.length-1].to,this.readNext()}resolveOffset(T,B){let X=this.range,ue=this.rangeIndex,ie=this.pos+T;for(;ie<X.from;){if(!ue)return null;let Te=this.ranges[--ue];ie-=X.from-Te.to,X=Te}for(;B<0?ie>X.to:ie>=X.to;){if(ue==this.ranges.length-1)return null;let Te=this.ranges[++ue];ie+=Te.from-X.to,X=Te}return ie}clipPos(T){if(T>=this.range.from&&T<this.range.to)return T;for(let B of this.ranges)if(B.to>T)return Math.max(T,B.from);return this.end}peek(T){let B=this.chunkOff+T,X,ue;if(B>=0&&B<this.chunk.length)X=this.pos+T,ue=this.chunk.charCodeAt(B);else{let ie=this.resolveOffset(T,1);if(ie==null)return-1;if(X=ie,X>=this.chunk2Pos&&X<this.chunk2Pos+this.chunk2.length)ue=this.chunk2.charCodeAt(X-this.chunk2Pos);else{let Te=this.rangeIndex,je=this.range;for(;je.to<=X;)je=this.ranges[++Te];this.chunk2=this.input.chunk(this.chunk2Pos=X),X+this.chunk2.length>je.to&&(this.chunk2=this.chunk2.slice(0,je.to-X)),ue=this.chunk2.charCodeAt(0)}}return X>=this.token.lookAhead&&(this.token.lookAhead=X+1),ue}acceptToken(T,B=0){let X=B?this.resolveOffset(B,-1):this.pos;if(X==null||X<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=T,this.token.end=X}acceptTokenTo(T,B){this.token.value=T,this.token.end=B}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:T,chunkPos:B}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=T,this.chunk2Pos=B,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let T=this.input.chunk(this.pos),B=this.pos+T.length;this.chunk=B>this.range.to?T.slice(0,this.range.to-this.pos):T,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(T=1){for(this.chunkOff+=T;this.pos+T>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();T-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=T,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(T,B){if(B?(this.token=B,B.start=T,B.lookAhead=T+1,B.value=B.extended=-1):this.token=E,this.pos!=T){if(this.pos=T,T==this.end)return this.setDone(),this;for(;T<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;T>=this.range.to;)this.range=this.ranges[++this.rangeIndex];T>=this.chunkPos&&T<this.chunkPos+this.chunk.length?this.chunkOff=T-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(T,B){if(T>=this.chunkPos&&B<=this.chunkPos+this.chunk.length)return this.chunk.slice(T-this.chunkPos,B-this.chunkPos);if(T>=this.chunk2Pos&&B<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(T-this.chunk2Pos,B-this.chunk2Pos);if(T>=this.range.from&&B<=this.range.to)return this.input.read(T,B);let X="";for(let ue of this.ranges){if(ue.from>=B)break;ue.to>T&&(X+=this.input.read(Math.max(ue.from,T),Math.min(ue.to,B)))}return X}}class m{constructor(T,B){this.data=T,this.id=B}token(T,B){let{parser:X}=B.p;O(this.data,T,B,this.id,X.data,X.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class S{constructor(T,B,X){this.precTable=B,this.elseToken=X,this.data=typeof T=="string"?p(T):T}token(T,B){let X=T.pos,ue=0;for(;;){let ie=T.next<0,Te=T.resolveOffset(1,1);if(O(this.data,T,B,0,this.data,this.precTable),T.token.value>-1)break;if(this.elseToken==null)return;if(ie||ue++,Te==null)break;T.reset(Te,T.token)}ue&&(T.reset(X,T.token),T.acceptToken(this.elseToken,ue))}}S.prototype.contextual=m.prototype.fallback=m.prototype.extend=!1;class d{constructor(T,B={}){this.token=T,this.contextual=!!B.contextual,this.fallback=!!B.fallback,this.extend=!!B.extend}}function O(A,T,B,X,ue,ie){let Te=0,je=1<<X,{dialect:yt}=B.p.parser;e:for(;(je&A[Te])!=0;){let tt=A[Te+1];for(let Rt=Te+3;Rt<tt;Rt+=2)if((A[Rt+1]&je)>0){let Dn=A[Rt];if(yt.allows(Dn)&&(T.token.value==-1||T.token.value==Dn||C(Dn,T.token.value,ue,ie))){T.acceptToken(Dn);break}}let Ze=T.next,Ne=0,it=A[Te+2];if(T.next<0&&it>Ne&&A[tt+it*3-3]==65535){Te=A[tt+it*3-1];continue e}for(;Ne<it;){let Rt=Ne+it>>1,Dn=tt+Rt+(Rt<<1),Mt=A[Dn],Wt=A[Dn+1]||65536;if(Ze<Mt)it=Rt;else if(Ze>=Wt)Ne=Rt+1;else{Te=A[Dn+2],T.advance();continue e}}break}}function R(A,T,B){for(let X=T,ue;(ue=A[X])!=65535;X++)if(ue==B)return X-T;return-1}function C(A,T,B,X){let ue=R(B,X,T);return ue<0||R(B,X,A)<ue}const L=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let j=null;function I(A,T,B){let X=A.cursor(l.Qj.IncludeAnonymous);for(X.moveTo(T);;)if(!(B<0?X.childBefore(T):X.childAfter(T)))for(;;){if((B<0?X.to<T:X.from>T)&&!X.type.isError)return B<0?Math.max(0,Math.min(X.to-1,T-25)):Math.min(A.length,Math.max(X.from+1,T+25));if(B<0?X.prevSibling():X.nextSibling())break;if(!X.parent())return B<0?0:A.length}}class U{constructor(T,B){this.fragments=T,this.nodeSet=B,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let T=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(T){for(this.safeFrom=T.openStart?I(T.tree,T.from+T.offset,1)-T.offset:T.from,this.safeTo=T.openEnd?I(T.tree,T.to+T.offset,-1)-T.offset:T.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(T.tree),this.start.push(-T.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(T){if(T<this.nextStart)return null;for(;this.fragment&&this.safeTo<=T;)this.nextFragment();if(!this.fragment)return null;for(;;){let B=this.trees.length-1;if(B<0)return this.nextFragment(),null;let X=this.trees[B],ue=this.index[B];if(ue==X.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let ie=X.children[ue],Te=this.start[B]+X.positions[ue];if(Te>T)return this.nextStart=Te,null;if(ie instanceof l.PH){if(Te==T){if(Te<this.safeFrom)return null;let je=Te+ie.length;if(je<=this.safeTo){let yt=ie.prop(l.uY.lookAhead);if(!yt||je+yt<this.fragment.to)return ie}}this.index[B]++,Te+ie.length>=Math.max(this.safeFrom,T)&&(this.trees.push(ie),this.start.push(Te),this.index.push(0))}else this.index[B]++,this.nextStart=Te+ie.length}}}class ${constructor(T,B){this.stream=B,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=T.tokenizers.map(X=>new h)}getActions(T){let B=0,X=null,{parser:ue}=T.p,{tokenizers:ie}=ue,Te=ue.stateSlot(T.state,3),je=T.curContext?T.curContext.hash:0,yt=0;for(let tt=0;tt<ie.length;tt++){if((1<<tt&Te)==0)continue;let Ze=ie[tt],Ne=this.tokens[tt];if(!(X&&!Ze.fallback)&&((Ze.contextual||Ne.start!=T.pos||Ne.mask!=Te||Ne.context!=je)&&(this.updateCachedToken(Ne,Ze,T),Ne.mask=Te,Ne.context=je),Ne.lookAhead>Ne.end+25&&(yt=Math.max(Ne.lookAhead,yt)),Ne.value!=0)){let it=B;if(Ne.extended>-1&&(B=this.addActions(T,Ne.extended,Ne.end,B)),B=this.addActions(T,Ne.value,Ne.end,B),!Ze.extend&&(X=Ne,B>it))break}}for(;this.actions.length>B;)this.actions.pop();return yt&&T.setLookAhead(yt),!X&&T.pos==this.stream.end&&(X=new h,X.value=T.p.parser.eofTerm,X.start=X.end=T.pos,B=this.addActions(T,X.value,X.end,B)),this.mainToken=X,this.actions}getMainToken(T){if(this.mainToken)return this.mainToken;let B=new h,{pos:X,p:ue}=T;return B.start=X,B.end=Math.min(X+1,ue.stream.end),B.value=X==ue.stream.end?ue.parser.eofTerm:0,B}updateCachedToken(T,B,X){let ue=this.stream.clipPos(X.pos);if(B.token(this.stream.reset(ue,T),X),T.value>-1){let{parser:ie}=X.p;for(let Te=0;Te<ie.specialized.length;Te++)if(ie.specialized[Te]==T.value){let je=ie.specializers[Te](this.stream.read(T.start,T.end),X);if(je>=0&&X.p.parser.dialect.allows(je>>1)){(je&1)==0?T.value=je>>1:T.extended=je>>1;break}}}else T.value=0,T.end=this.stream.clipPos(ue+1)}putAction(T,B,X,ue){for(let ie=0;ie<ue;ie+=3)if(this.actions[ie]==T)return ue;return this.actions[ue++]=T,this.actions[ue++]=B,this.actions[ue++]=X,ue}addActions(T,B,X,ue){let{state:ie}=T,{parser:Te}=T.p,{data:je}=Te;for(let yt=0;yt<2;yt++)for(let tt=Te.stateSlot(ie,yt?2:1);;tt+=3){if(je[tt]==65535)if(je[tt+1]==1)tt=se(je,tt+2);else{ue==0&&je[tt+1]==2&&(ue=this.putAction(se(je,tt+2),B,X,ue));break}je[tt]==B&&(ue=this.putAction(se(je,tt+1),B,X,ue))}return ue}}class ee{constructor(T,B,X,ue){this.parser=T,this.input=B,this.ranges=ue,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new v(B,ue),this.tokens=new $(T,this.stream),this.topTerm=T.top[1];let{from:ie}=ue[0];this.stacks=[g.start(this,T.top[0],ie)],this.fragments=X.length&&this.stream.end-ie>T.bufferLength*4?new U(X,T.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let T=this.stacks,B=this.minStackPos,X=this.stacks=[],ue,ie;if(this.bigReductionCount>300&&T.length==1){let[Te]=T;for(;Te.forceReduce()&&Te.stack.length&&Te.stack[Te.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let Te=0;Te<T.length;Te++){let je=T[Te];for(;;){if(this.tokens.mainToken=null,je.pos>B)X.push(je);else{if(this.advanceStack(je,X,T))continue;{ue||(ue=[],ie=[]),ue.push(je);let yt=this.tokens.getMainToken(je);ie.push(yt.value,yt.end)}}break}}if(!X.length){let Te=ue&&q(ue);if(Te)return L&&console.log("Finish with "+this.stackID(Te)),this.stackToTree(Te);if(this.parser.strict)throw L&&ue&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+B);this.recovering||(this.recovering=5)}if(this.recovering&&ue){let Te=this.stoppedAt!=null&&ue[0].pos>this.stoppedAt?ue[0]:this.runRecovery(ue,ie,X);if(Te)return L&&console.log("Force-finish "+this.stackID(Te)),this.stackToTree(Te.forceAll())}if(this.recovering){let Te=this.recovering==1?1:this.recovering*3;if(X.length>Te)for(X.sort((je,yt)=>yt.score-je.score);X.length>Te;)X.pop();X.some(je=>je.reducePos>B)&&this.recovering--}else if(X.length>1){e:for(let Te=0;Te<X.length-1;Te++){let je=X[Te];for(let yt=Te+1;yt<X.length;yt++){let tt=X[yt];if(je.sameState(tt)||je.buffer.length>500&&tt.buffer.length>500)if((je.score-tt.score||je.buffer.length-tt.buffer.length)>0)X.splice(yt--,1);else{X.splice(Te--,1);continue e}}}X.length>12&&X.splice(12,X.length-12)}this.minStackPos=X[0].pos;for(let Te=1;Te<X.length;Te++)X[Te].pos<this.minStackPos&&(this.minStackPos=X[Te].pos);return null}stopAt(T){if(this.stoppedAt!=null&&this.stoppedAt<T)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=T}advanceStack(T,B,X){let ue=T.pos,{parser:ie}=this,Te=L?this.stackID(T)+" -> ":"";if(this.stoppedAt!=null&&ue>this.stoppedAt)return T.forceReduce()?T:null;if(this.fragments){let tt=T.curContext&&T.curContext.tracker.strict,Ze=tt?T.curContext.hash:0;for(let Ne=this.fragments.nodeAt(ue);Ne;){let it=this.parser.nodeSet.types[Ne.type.id]==Ne.type?ie.getGoto(T.state,Ne.type.id):-1;if(it>-1&&Ne.length&&(!tt||(Ne.prop(l.uY.contextHash)||0)==Ze))return T.useNode(Ne,it),L&&console.log(Te+this.stackID(T)+` (via reuse of ${ie.getName(Ne.type.id)})`),!0;if(!(Ne instanceof l.PH)||Ne.children.length==0||Ne.positions[0]>0)break;let Rt=Ne.children[0];if(Rt instanceof l.PH&&Ne.positions[0]==0)Ne=Rt;else break}}let je=ie.stateSlot(T.state,4);if(je>0)return T.reduce(je),L&&console.log(Te+this.stackID(T)+` (via always-reduce ${ie.getName(je&65535)})`),!0;if(T.stack.length>=8400)for(;T.stack.length>6e3&&T.forceReduce(););let yt=this.tokens.getActions(T);for(let tt=0;tt<yt.length;){let Ze=yt[tt++],Ne=yt[tt++],it=yt[tt++],Rt=tt==yt.length||!X,Dn=Rt?T:T.split(),Mt=this.tokens.mainToken;if(Dn.apply(Ze,Ne,Mt?Mt.start:Dn.pos,it),L&&console.log(Te+this.stackID(Dn)+` (via ${(Ze&65536)==0?"shift":`reduce of ${ie.getName(Ze&65535)}`} for ${ie.getName(Ne)} @ ${ue}${Dn==T?"":", split"})`),Rt)return!0;Dn.pos>ue?B.push(Dn):X.push(Dn)}return!1}advanceFully(T,B){let X=T.pos;for(;;){if(!this.advanceStack(T,null,null))return!1;if(T.pos>X)return re(T,B),!0}}runRecovery(T,B,X){let ue=null,ie=!1;for(let Te=0;Te<T.length;Te++){let je=T[Te],yt=B[Te<<1],tt=B[(Te<<1)+1],Ze=L?this.stackID(je)+" -> ":"";if(je.deadEnd&&(ie||(ie=!0,je.restart(),L&&console.log(Ze+this.stackID(je)+" (restarted)"),this.advanceFully(je,X))))continue;let Ne=je.split(),it=Ze;for(let Rt=0;Ne.forceReduce()&&Rt<10&&(L&&console.log(it+this.stackID(Ne)+" (via force-reduce)"),!this.advanceFully(Ne,X));Rt++)L&&(it=this.stackID(Ne)+" -> ");for(let Rt of je.recoverByInsert(yt))L&&console.log(Ze+this.stackID(Rt)+" (via recover-insert)"),this.advanceFully(Rt,X);this.stream.end>je.pos?(tt==je.pos&&(tt++,yt=0),je.recoverByDelete(yt,tt),L&&console.log(Ze+this.stackID(je)+` (via recover-delete ${this.parser.getName(yt)})`),re(je,X)):(!ue||ue.score<je.score)&&(ue=je)}return ue}stackToTree(T){return T.close(),l.PH.build({buffer:f.create(T),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:T.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(T){let B=(j||(j=new WeakMap)).get(T);return B||j.set(T,B=String.fromCodePoint(this.nextStackID++)),B+T}}function re(A,T){for(let B=0;B<T.length;B++){let X=T[B];if(X.pos==A.pos&&X.sameState(A)){T[B].score<A.score&&(T[B]=A);return}}T.push(A)}class Se{constructor(T,B,X){this.source=T,this.flags=B,this.disabled=X}allows(T){return!this.disabled||this.disabled[T]==0}}const z=A=>A;class Q{constructor(T){this.start=T.start,this.shift=T.shift||z,this.reduce=T.reduce||z,this.reuse=T.reuse||z,this.hash=T.hash||(()=>0),this.strict=T.strict!==!1}}class ce extends l.iX{constructor(T){if(super(),this.wrappers=[],T.version!=14)throw new RangeError(`Parser version (${T.version}) doesn't match runtime version (14)`);let B=T.nodeNames.split(" ");this.minRepeatTerm=B.length;for(let je=0;je<T.repeatNodeCount;je++)B.push("");let X=Object.keys(T.topRules).map(je=>T.topRules[je][1]),ue=[];for(let je=0;je<B.length;je++)ue.push([]);function ie(je,yt,tt){ue[je].push([yt,yt.deserialize(String(tt))])}if(T.nodeProps)for(let je of T.nodeProps){let yt=je[0];typeof yt=="string"&&(yt=l.uY[yt]);for(let tt=1;tt<je.length;){let Ze=je[tt++];if(Ze>=0)ie(Ze,yt,je[tt++]);else{let Ne=je[tt+-Ze];for(let it=-Ze;it>0;it--)ie(je[tt++],yt,Ne);tt++}}}this.nodeSet=new l.fI(B.map((je,yt)=>l.Z6.define({name:yt>=this.minRepeatTerm?void 0:je,id:yt,props:ue[yt],top:X.indexOf(yt)>-1,error:yt==0,skipped:T.skippedNodes&&T.skippedNodes.indexOf(yt)>-1}))),T.propSources&&(this.nodeSet=this.nodeSet.extend(...T.propSources)),this.strict=!1,this.bufferLength=l.cF;let Te=p(T.tokenData);this.context=T.context,this.specializerSpecs=T.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let je=0;je<this.specializerSpecs.length;je++)this.specialized[je]=this.specializerSpecs[je].term;this.specializers=this.specializerSpecs.map(te),this.states=p(T.states,Uint32Array),this.data=p(T.stateData),this.goto=p(T.goto),this.maxTerm=T.maxTerm,this.tokenizers=T.tokenizers.map(je=>typeof je=="number"?new m(Te,je):je),this.topRules=T.topRules,this.dialects=T.dialects||{},this.dynamicPrecedences=T.dynamicPrecedences||null,this.tokenPrecTable=T.tokenPrec,this.termNames=T.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(T,B,X){let ue=new ee(this,T,B,X);for(let ie of this.wrappers)ue=ie(ue,T,B,X);return ue}getGoto(T,B,X=!1){let ue=this.goto;if(B>=ue[0])return-1;for(let ie=ue[B+1];;){let Te=ue[ie++],je=Te&1,yt=ue[ie++];if(je&&X)return yt;for(let tt=ie+(Te>>1);ie<tt;ie++)if(ue[ie]==T)return yt;if(je)return-1}}hasAction(T,B){let X=this.data;for(let ue=0;ue<2;ue++)for(let ie=this.stateSlot(T,ue?2:1),Te;;ie+=3){if((Te=X[ie])==65535)if(X[ie+1]==1)Te=X[ie=se(X,ie+2)];else{if(X[ie+1]==2)return se(X,ie+2);break}if(Te==B||Te==0)return se(X,ie+1)}return 0}stateSlot(T,B){return this.states[T*6+B]}stateFlag(T,B){return(this.stateSlot(T,0)&B)>0}validAction(T,B){return!!this.allActions(T,X=>X==B?!0:null)}allActions(T,B){let X=this.stateSlot(T,4),ue=X?B(X):void 0;for(let ie=this.stateSlot(T,1);ue==null;ie+=3){if(this.data[ie]==65535)if(this.data[ie+1]==1)ie=se(this.data,ie+2);else break;ue=B(se(this.data,ie+1))}return ue}nextStates(T){let B=[];for(let X=this.stateSlot(T,1);;X+=3){if(this.data[X]==65535)if(this.data[X+1]==1)X=se(this.data,X+2);else break;if((this.data[X+2]&1)==0){let ue=this.data[X+1];B.some((ie,Te)=>Te&1&&ie==ue)||B.push(this.data[X],ue)}}return B}configure(T){let B=Object.assign(Object.create(ce.prototype),this);if(T.props&&(B.nodeSet=this.nodeSet.extend(...T.props)),T.top){let X=this.topRules[T.top];if(!X)throw new RangeError(`Invalid top rule name ${T.top}`);B.top=X}return T.tokenizers&&(B.tokenizers=this.tokenizers.map(X=>{let ue=T.tokenizers.find(ie=>ie.from==X);return ue?ue.to:X})),T.specializers&&(B.specializers=this.specializers.slice(),B.specializerSpecs=this.specializerSpecs.map((X,ue)=>{let ie=T.specializers.find(je=>je.from==X.external);if(!ie)return X;let Te=Object.assign(Object.assign({},X),{external:ie.to});return B.specializers[ue]=te(Te),Te})),T.contextTracker&&(B.context=T.contextTracker),T.dialect&&(B.dialect=this.parseDialect(T.dialect)),T.strict!=null&&(B.strict=T.strict),T.wrap&&(B.wrappers=B.wrappers.concat(T.wrap)),T.bufferLength!=null&&(B.bufferLength=T.bufferLength),B}hasWrappers(){return this.wrappers.length>0}getName(T){return this.termNames?this.termNames[T]:String(T<=this.maxNode&&this.nodeSet.types[T].name||T)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(T){let B=this.dynamicPrecedences;return B==null?0:B[T]||0}parseDialect(T){let B=Object.keys(this.dialects),X=B.map(()=>!1);if(T)for(let ie of T.split(" ")){let Te=B.indexOf(ie);Te>=0&&(X[Te]=!0)}let ue=null;for(let ie=0;ie<B.length;ie++)if(!X[ie])for(let Te=this.dialects[B[ie]],je;(je=this.data[Te++])!=65535;)(ue||(ue=new Uint8Array(this.maxTerm+1)))[je]=1;return new Se(T,X,ue)}static deserialize(T){return new ce(T)}}function se(A,T){return A[T]|A[T+1]<<16}function q(A){let T=null;for(let B of A){let X=B.p.stoppedAt;(B.pos==B.p.stream.end||X!=null&&B.pos>X)&&B.p.parser.stateFlag(B.state,2)&&(!T||T.score<B.score)&&(T=B)}return T}function te(A){if(A.external){let T=A.extend?1:0;return(B,X)=>A.external(B,X)<<1|T}return A.get}},49045:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>f});var l=u(96540),g=u(2739),y=function(p,h){return h!==void 0?h:g.Bd?window.matchMedia(p).matches:!1},x=function(p,h){var E=(0,l.useState)(y(p,h)),v=E[0],m=E[1];return(0,l.useEffect)(function(){var S=!0,d=window.matchMedia(p),O=function(){S&&m(!!d.matches)};return d.addEventListener("change",O),m(d.matches),function(){S=!1,d.removeEventListener("change",O)}},[p]),v};const f=x},49184:(Ge,w,u)=>{"use strict";u.d(w,{n:()=>x});var l=u(92908),g=u(64878),y=u(15964);function x(f,p){return(0,l.N)(function(h,E){var v=p??{},m=v.leading,S=m===void 0?!0:m,d=v.trailing,O=d===void 0?!1:d,R=!1,C=null,L=null,j=!1,I=function(){L?.unsubscribe(),L=null,O&&(ee(),j&&E.complete())},U=function(){L=null,j&&E.complete()},$=function(re){return L=(0,y.Tg)(f(re)).subscribe((0,g._)(E,I,U))},ee=function(){if(R){R=!1;var re=C;C=null,E.next(re),!j&&$(re)}};h.subscribe((0,g._)(E,function(re){R=!0,C=re,!(L&&!L.closed)&&(S?ee():$(re))},function(){j=!0,!(O&&R&&L&&!L.closed)&&E.complete()}))})}},49426:(Ge,w,u)=>{"use strict";u.d(w,{t:()=>y});var l=u(31635),g=u(13752),y=function(x){(0,l.__extends)(f,x);function f(p){var h=x.call(this)||this;return h._value=p,h}return Object.defineProperty(f.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),f.prototype._subscribe=function(p){var h=x.prototype._subscribe.call(this,p);return!h.closed&&p.next(this._value),h},f.prototype.getValue=function(){var p=this,h=p.hasError,E=p.thrownError,v=p._value;if(h)throw E;return this._throwIfClosed(),v},f.prototype.next=function(p){x.prototype.next.call(this,this._value=p)},f}(g.B)},49510:(Ge,w,u)=>{"use strict";u.d(w,{P:()=>S,z:()=>m});var l=u(88483),g=u(24151),y=u(65474),x=u(58307),f=u(57516),p=u(82100),h=u(66450),E=u(64878),v=u(56315);function m(){for(var O=[],R=0;R<arguments.length;R++)O[R]=arguments[R];var C=(0,p.lI)(O),L=(0,p.ms)(O),j=(0,g.D)(O),I=j.args,U=j.keys;if(I.length===0)return(0,y.H)([],C);var $=new l.c(S(I,C,U?function(ee){return(0,h.e)(U,ee)}:x.D));return L?$.pipe((0,f.I)(L)):$}function S(O,R,C){return C===void 0&&(C=x.D),function(L){d(R,function(){for(var j=O.length,I=new Array(j),U=j,$=j,ee=function(Se){d(R,function(){var z=(0,y.H)(O[Se],R),Q=!1;z.subscribe((0,E._)(L,function(ce){I[Se]=ce,Q||(Q=!0,$--),$||L.next(C(I.slice()))},function(){--U||L.complete()}))},L)},re=0;re<j;re++)ee(re)},L)}}function d(O,R,C){O?(0,v.N)(C,O,R):R()}},49568:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{Collection:()=>E,Iterable:()=>Ui,List:()=>Xt,Map:()=>Qi,OrderedMap:()=>yr,OrderedSet:()=>Xa,PairSorting:()=>wo,Range:()=>ii,Record:()=>Ka,Repeat:()=>Ds,Seq:()=>me,Set:()=>et,Stack:()=>mt,fromJS:()=>eo,get:()=>Fr,getIn:()=>Ut,has:()=>$r,hasIn:()=>Jt,hash:()=>Cn,is:()=>Yr,isAssociative:()=>f,isCollection:()=>h,isImmutable:()=>Mt,isIndexed:()=>g,isKeyed:()=>x,isList:()=>Sa,isMap:()=>Qr,isOrdered:()=>Tn,isOrderedMap:()=>qn,isOrderedSet:()=>Ua,isPlainObject:()=>jt,isRecord:()=>Dn,isSeq:()=>$t,isSet:()=>Oe,isStack:()=>Pi,isValueObject:()=>Cr,merge:()=>Be,mergeDeep:()=>bi,mergeDeepWith:()=>Oi,mergeWith:()=>wn,remove:()=>qr,removeIn:()=>ra,set:()=>jr,setIn:()=>Qn,update:()=>Xr,updateIn:()=>vi,version:()=>na});/** * @license * MIT License * * Copyright (c) 2014-present, Lee Byron and other contributors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */var l="@@__IMMUTABLE_INDEXED__@@";function g(xe){return!!(xe&&xe[l])}var y="@@__IMMUTABLE_KEYED__@@";function x(xe){return!!(xe&&xe[y])}function f(xe){return x(xe)||g(xe)}var p="@@__IMMUTABLE_ITERABLE__@@";function h(xe){return!!(xe&&xe[p])}var E=function(Ce){return h(Ce)?Ce:me(Ce)},v=function(xe){function Ce(st){return x(st)?st:ke(st)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce}(E),m=function(xe){function Ce(st){return g(st)?st:Ee(st)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce}(E),S=function(xe){function Ce(st){return h(st)&&!f(st)?st:_e(st)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce}(E);E.Keyed=v,E.Indexed=m,E.Set=S;var d=0,O=1,R=2,C=typeof Symbol=="function"&&Symbol.iterator,L="@@iterator",j=C||L,I=function(Ce){this.next=Ce};I.prototype.toString=function(){return"[Iterator]"},I.KEYS=d,I.VALUES=O,I.ENTRIES=R,I.prototype.inspect=I.prototype.toSource=function(){return this.toString()},I.prototype[j]=function(){return this};function U(xe,Ce,st,gt){var Ht=xe===d?Ce:xe===O?st:[Ce,st];return gt?gt.value=Ht:gt={value:Ht,done:!1},gt}function $(){return{value:void 0,done:!0}}function ee(xe){return Array.isArray(xe)?!0:!!z(xe)}function re(xe){return!!(xe&&typeof xe.next=="function")}function Se(xe){var Ce=z(xe);return Ce&&Ce.call(xe)}function z(xe){var Ce=xe&&(C&&xe[C]||xe[L]);if(typeof Ce=="function")return Ce}function Q(xe){var Ce=z(xe);return Ce&&Ce===xe.entries}function ce(xe){var Ce=z(xe);return Ce&&Ce===xe.keys}var se="delete",q=5,te=1<<q,A=te-1,T={};function B(){return{value:!1}}function X(xe){xe&&(xe.value=!0)}function ue(){}function ie(xe){return xe.size===void 0&&(xe.size=xe.__iterate(je)),xe.size}function Te(xe,Ce){if(typeof Ce!="number"){var st=Ce>>>0;if(""+st!==Ce||st===4294967295)return NaN;Ce=st}return Ce<0?ie(xe)+Ce:Ce}function je(){return!0}function yt(xe,Ce,st){return(xe===0&&!it(xe)||st!==void 0&&xe<=-st)&&(Ce===void 0||st!==void 0&&Ce>=st)}function tt(xe,Ce){return Ne(xe,Ce,0)}function Ze(xe,Ce){return Ne(xe,Ce,Ce)}function Ne(xe,Ce,st){return xe===void 0?st:it(xe)?Ce===1/0?Ce:Math.max(0,Ce+xe)|0:Ce===void 0||Ce===xe?xe:Math.min(Ce,xe)|0}function it(xe){return xe<0||xe===0&&1/xe===-1/0}var Rt="@@__IMMUTABLE_RECORD__@@";function Dn(xe){return!!(xe&&xe[Rt])}function Mt(xe){return h(xe)||Dn(xe)}var Wt="@@__IMMUTABLE_ORDERED__@@";function Tn(xe){return!!(xe&&xe[Wt])}var bn="@@__IMMUTABLE_SEQ__@@";function $t(xe){return!!(xe&&xe[bn])}var Ct=Object.prototype.hasOwnProperty;function Z(xe){return Array.isArray(xe)||typeof xe=="string"?!0:xe&&typeof xe=="object"&&Number.isInteger(xe.length)&&xe.length>=0&&(xe.length===0?Object.keys(xe).length===1:xe.hasOwnProperty(xe.length-1))}var me=function(xe){function Ce(st){return st==null?Et():Mt(st)?st.toSeq():Pn(st)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.toSeq=function(){return this},Ce.prototype.toString=function(){return this.__toString("Seq {","}")},Ce.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Ce.prototype.__iterate=function(gt,Ht){var Hn=this._cache;if(Hn){for(var fr=Hn.length,Zr=0;Zr!==fr;){var gi=Hn[Ht?fr-++Zr:Zr++];if(gt(gi[1],gi[0],this)===!1)break}return Zr}return this.__iterateUncached(gt,Ht)},Ce.prototype.__iterator=function(gt,Ht){var Hn=this._cache;if(Hn){var fr=Hn.length,Zr=0;return new I(function(){if(Zr===fr)return $();var gi=Hn[Ht?fr-++Zr:Zr++];return U(gt,gi[0],gi[1])})}return this.__iteratorUncached(gt,Ht)},Ce}(E),ke=function(xe){function Ce(st){return st==null?Et().toKeyedSeq():h(st)?x(st)?st.toSeq():st.fromEntrySeq():Dn(st)?st.toSeq():Zt(st)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.toKeyedSeq=function(){return this},Ce}(me),Ee=function(xe){function Ce(st){return st==null?Et():h(st)?x(st)?st.entrySeq():st.toIndexedSeq():Dn(st)?st.toSeq().entrySeq():nn(st)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.of=function(){return Ce(arguments)},Ce.prototype.toIndexedSeq=function(){return this},Ce.prototype.toString=function(){return this.__toString("Seq [","]")},Ce}(me),_e=function(xe){function Ce(st){return(h(st)&&!f(st)?st:Ee(st)).toSetSeq()}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.of=function(){return Ce(arguments)},Ce.prototype.toSetSeq=function(){return this},Ce}(me);me.isSeq=$t,me.Keyed=ke,me.Set=_e,me.Indexed=Ee,me.prototype[bn]=!0;var ge=function(xe){function Ce(st){this._array=st,this.size=st.length}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.get=function(gt,Ht){return this.has(gt)?this._array[Te(this,gt)]:Ht},Ce.prototype.__iterate=function(gt,Ht){for(var Hn=this._array,fr=Hn.length,Zr=0;Zr!==fr;){var gi=Ht?fr-++Zr:Zr++;if(gt(Hn[gi],gi,this)===!1)break}return Zr},Ce.prototype.__iterator=function(gt,Ht){var Hn=this._array,fr=Hn.length,Zr=0;return new I(function(){if(Zr===fr)return $();var gi=Ht?fr-++Zr:Zr++;return U(gt,gi,Hn[gi])})},Ce}(Ee),Me=function(xe){function Ce(st){var gt=Object.keys(st).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(st):[]);this._object=st,this._keys=gt,this.size=gt.length}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.get=function(gt,Ht){return Ht!==void 0&&!this.has(gt)?Ht:this._object[gt]},Ce.prototype.has=function(gt){return Ct.call(this._object,gt)},Ce.prototype.__iterate=function(gt,Ht){for(var Hn=this._object,fr=this._keys,Zr=fr.length,gi=0;gi!==Zr;){var wt=fr[Ht?Zr-++gi:gi++];if(gt(Hn[wt],wt,this)===!1)break}return gi},Ce.prototype.__iterator=function(gt,Ht){var Hn=this._object,fr=this._keys,Zr=fr.length,gi=0;return new I(function(){if(gi===Zr)return $();var wt=fr[Ht?Zr-++gi:gi++];return U(gt,wt,Hn[wt])})},Ce}(ke);Me.prototype[Wt]=!0;var lt=function(xe){function Ce(st){this._collection=st,this.size=st.length||st.size}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.__iterateUncached=function(gt,Ht){if(Ht)return this.cacheResult().__iterate(gt,Ht);var Hn=this._collection,fr=Se(Hn),Zr=0;if(re(fr))for(var gi;!(gi=fr.next()).done&>(gi.value,Zr++,this)!==!1;);return Zr},Ce.prototype.__iteratorUncached=function(gt,Ht){if(Ht)return this.cacheResult().__iterator(gt,Ht);var Hn=this._collection,fr=Se(Hn);if(!re(fr))return new I($);var Zr=0;return new I(function(){var gi=fr.next();return gi.done?gi:U(gt,Zr++,gi.value)})},Ce}(Ee),Ft;function Et(){return Ft||(Ft=new ge([]))}function Zt(xe){var Ce=rn(xe);if(Ce)return Ce.fromEntrySeq();if(typeof xe=="object")return new Me(xe);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+xe)}function nn(xe){var Ce=rn(xe);if(Ce)return Ce;throw new TypeError("Expected Array or collection object of values: "+xe)}function Pn(xe){var Ce=rn(xe);if(Ce)return Q(xe)?Ce.fromEntrySeq():ce(xe)?Ce.toSetSeq():Ce;if(typeof xe=="object")return new Me(xe);throw new TypeError("Expected Array or collection object of values, or keyed object: "+xe)}function rn(xe){return Z(xe)?new ge(xe):ee(xe)?new lt(xe):void 0}function Vt(){return this.__ensureOwner()}function Kn(){return this.__ownerID?this:this.__ensureOwner(new ue)}var ur=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(Ce,st){Ce|=0,st|=0;var gt=Ce&65535,Ht=st&65535;return gt*Ht+((Ce>>>16)*Ht+gt*(st>>>16)<<16>>>0)|0};function on(xe){return xe>>>1&1073741824|xe&3221225471}var tr=Object.prototype.valueOf;function Cn(xe){if(xe==null)return Wn(xe);if(typeof xe.hashCode=="function")return on(xe.hashCode(xe));var Ce=bt(xe);if(Ce==null)return Wn(Ce);switch(typeof Ce){case"boolean":return Ce?1108378657:1108378656;case"number":return er(Ce);case"string":return Ce.length>ln?Fn(Ce):en(Ce);case"object":case"function":return kn(Ce);case"symbol":return gn(Ce);default:if(typeof Ce.toString=="function")return en(Ce.toString());throw new Error("Value type "+typeof Ce+" cannot be hashed.")}}function Wn(xe){return xe===null?1108378658:1108378659}function er(xe){if(xe!==xe||xe===1/0)return 0;var Ce=xe|0;for(Ce!==xe&&(Ce^=xe*4294967295);xe>4294967295;)xe/=4294967295,Ce^=xe;return on(Ce)}function Fn(xe){var Ce=ht[xe];return Ce===void 0&&(Ce=en(xe),Yn===pn&&(Yn=0,ht={}),Yn++,ht[xe]=Ce),Ce}function en(xe){for(var Ce=0,st=0;st<xe.length;st++)Ce=31*Ce+xe.charCodeAt(st)|0;return on(Ce)}function gn(xe){var Ce=he[xe];return Ce!==void 0||(Ce=ne(),he[xe]=Ce),Ce}function kn(xe){var Ce;if(fe&&(Ce=K.get(xe),Ce!==void 0)||(Ce=xe[Nt],Ce!==void 0)||!Nn&&(Ce=xe.propertyIsEnumerable&&xe.propertyIsEnumerable[Nt],Ce!==void 0||(Ce=kr(xe),Ce!==void 0)))return Ce;if(Ce=ne(),fe)K.set(xe,Ce);else{if(Jn!==void 0&&Jn(xe)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Nn)Object.defineProperty(xe,Nt,{enumerable:!1,configurable:!1,writable:!1,value:Ce});else if(xe.propertyIsEnumerable!==void 0&&xe.propertyIsEnumerable===xe.constructor.prototype.propertyIsEnumerable)xe.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},xe.propertyIsEnumerable[Nt]=Ce;else if(xe.nodeType!==void 0)xe[Nt]=Ce;else throw new Error("Unable to set a non-enumerable property on object.")}return Ce}var Jn=Object.isExtensible,Nn=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function kr(xe){if(xe&&xe.nodeType>0)switch(xe.nodeType){case 1:return xe.uniqueID;case 9:return xe.documentElement&&xe.documentElement.uniqueID}}function bt(xe){return xe.valueOf!==tr&&typeof xe.valueOf=="function"?xe.valueOf(xe):xe}function ne(){var xe=++Fe;return Fe&1073741824&&(Fe=0),xe}var fe=typeof WeakMap=="function",K;fe&&(K=new WeakMap);var he=Object.create(null),Fe=0,Nt="__immutablehash__";typeof Symbol=="function"&&(Nt=Symbol(Nt));var ln=16,pn=255,Yn=0,ht={},De=function(xe){function Ce(st,gt){this._iter=st,this._useKeys=gt,this.size=st.size}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.get=function(gt,Ht){return this._iter.get(gt,Ht)},Ce.prototype.has=function(gt){return this._iter.has(gt)},Ce.prototype.valueSeq=function(){return this._iter.valueSeq()},Ce.prototype.reverse=function(){var gt=this,Ht=Je(this,!0);return this._useKeys||(Ht.valueSeq=function(){return gt._iter.toSeq().reverse()}),Ht},Ce.prototype.map=function(gt,Ht){var Hn=this,fr=We(this,gt,Ht);return this._useKeys||(fr.valueSeq=function(){return Hn._iter.toSeq().map(gt,Ht)}),fr},Ce.prototype.__iterate=function(gt,Ht){var Hn=this;return this._iter.__iterate(function(fr,Zr){return gt(fr,Zr,Hn)},Ht)},Ce.prototype.__iterator=function(gt,Ht){return this._iter.__iterator(gt,Ht)},Ce}(ke);De.prototype[Wt]=!0;var we=function(xe){function Ce(st){this._iter=st,this.size=st.size}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.includes=function(gt){return this._iter.includes(gt)},Ce.prototype.__iterate=function(gt,Ht){var Hn=this,fr=0;return Ht&&ie(this),this._iter.__iterate(function(Zr){return gt(Zr,Ht?Hn.size-++fr:fr++,Hn)},Ht)},Ce.prototype.__iterator=function(gt,Ht){var Hn=this,fr=this._iter.__iterator(O,Ht),Zr=0;return Ht&&ie(this),new I(function(){var gi=fr.next();return gi.done?gi:U(gt,Ht?Hn.size-++Zr:Zr++,gi.value,gi)})},Ce}(Ee),Ke=function(xe){function Ce(st){this._iter=st,this.size=st.size}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.has=function(gt){return this._iter.includes(gt)},Ce.prototype.__iterate=function(gt,Ht){var Hn=this;return this._iter.__iterate(function(fr){return gt(fr,fr,Hn)},Ht)},Ce.prototype.__iterator=function(gt,Ht){var Hn=this._iter.__iterator(O,Ht);return new I(function(){var fr=Hn.next();return fr.done?fr:U(gt,fr.value,fr.value,fr)})},Ce}(_e),be=function(xe){function Ce(st){this._iter=st,this.size=st.size}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.entrySeq=function(){return this._iter.toSeq()},Ce.prototype.__iterate=function(gt,Ht){var Hn=this;return this._iter.__iterate(function(fr){if(fr){Un(fr);var Zr=h(fr);return gt(Zr?fr.get(1):fr[1],Zr?fr.get(0):fr[0],Hn)}},Ht)},Ce.prototype.__iterator=function(gt,Ht){var Hn=this._iter.__iterator(O,Ht);return new I(function(){for(;;){var fr=Hn.next();if(fr.done)return fr;var Zr=fr.value;if(Zr){Un(Zr);var gi=h(Zr);return U(gt,gi?Zr.get(0):Zr[0],gi?Zr.get(1):Zr[1],fr)}}})},Ce}(ke);we.prototype.cacheResult=De.prototype.cacheResult=Ke.prototype.cacheResult=be.prototype.cacheResult=hr;function pt(xe){var Ce=mr(xe);return Ce._iter=xe,Ce.size=xe.size,Ce.flip=function(){return xe},Ce.reverse=function(){var st=xe.reverse.apply(this);return st.flip=function(){return xe.reverse()},st},Ce.has=function(st){return xe.includes(st)},Ce.includes=function(st){return xe.has(st)},Ce.cacheResult=hr,Ce.__iterateUncached=function(st,gt){var Ht=this;return xe.__iterate(function(Hn,fr){return st(fr,Hn,Ht)!==!1},gt)},Ce.__iteratorUncached=function(st,gt){if(st===R){var Ht=xe.__iterator(st,gt);return new I(function(){var Hn=Ht.next();if(!Hn.done){var fr=Hn.value[0];Hn.value[0]=Hn.value[1],Hn.value[1]=fr}return Hn})}return xe.__iterator(st===O?d:O,gt)},Ce}function We(xe,Ce,st){var gt=mr(xe);return gt.size=xe.size,gt.has=function(Ht){return xe.has(Ht)},gt.get=function(Ht,Hn){var fr=xe.get(Ht,T);return fr===T?Hn:Ce.call(st,fr,Ht,xe)},gt.__iterateUncached=function(Ht,Hn){var fr=this;return xe.__iterate(function(Zr,gi,wt){return Ht(Ce.call(st,Zr,gi,wt),gi,fr)!==!1},Hn)},gt.__iteratorUncached=function(Ht,Hn){var fr=xe.__iterator(R,Hn);return new I(function(){var Zr=fr.next();if(Zr.done)return Zr;var gi=Zr.value,wt=gi[0];return U(Ht,wt,Ce.call(st,gi[1],wt,xe),Zr)})},gt}function Je(xe,Ce){var st=this,gt=mr(xe);return gt._iter=xe,gt.size=xe.size,gt.reverse=function(){return xe},xe.flip&&(gt.flip=function(){var Ht=pt(xe);return Ht.reverse=function(){return xe.flip()},Ht}),gt.get=function(Ht,Hn){return xe.get(Ce?Ht:-1-Ht,Hn)},gt.has=function(Ht){return xe.has(Ce?Ht:-1-Ht)},gt.includes=function(Ht){return xe.includes(Ht)},gt.cacheResult=hr,gt.__iterate=function(Ht,Hn){var fr=this,Zr=0;return Hn&&ie(xe),xe.__iterate(function(gi,wt){return Ht(gi,Ce?wt:Hn?fr.size-++Zr:Zr++,fr)},!Hn)},gt.__iterator=function(Ht,Hn){var fr=0;Hn&&ie(xe);var Zr=xe.__iterator(R,!Hn);return new I(function(){var gi=Zr.next();if(gi.done)return gi;var wt=gi.value;return U(Ht,Ce?wt[0]:Hn?st.size-++fr:fr++,wt[1],gi)})},gt}function ye(xe,Ce,st,gt){var Ht=mr(xe);return gt&&(Ht.has=function(Hn){var fr=xe.get(Hn,T);return fr!==T&&!!Ce.call(st,fr,Hn,xe)},Ht.get=function(Hn,fr){var Zr=xe.get(Hn,T);return Zr!==T&&Ce.call(st,Zr,Hn,xe)?Zr:fr}),Ht.__iterateUncached=function(Hn,fr){var Zr=this,gi=0;return xe.__iterate(function(wt,cn,rr){if(Ce.call(st,wt,cn,rr))return gi++,Hn(wt,gt?cn:gi-1,Zr)},fr),gi},Ht.__iteratorUncached=function(Hn,fr){var Zr=xe.__iterator(R,fr),gi=0;return new I(function(){for(;;){var wt=Zr.next();if(wt.done)return wt;var cn=wt.value,rr=cn[0],$n=cn[1];if(Ce.call(st,$n,rr,xe))return U(Hn,gt?rr:gi++,$n,wt)}})},Ht}function Qe(xe,Ce,st){var gt=Qi().asMutable();return xe.__iterate(function(Ht,Hn){gt.update(Ce.call(st,Ht,Hn,xe),0,function(fr){return fr+1})}),gt.asImmutable()}function ze(xe,Ce,st){var gt=x(xe),Ht=(Tn(xe)?yr():Qi()).asMutable();xe.__iterate(function(fr,Zr){Ht.update(Ce.call(st,fr,Zr,xe),function(gi){return gi=gi||[],gi.push(gt?[Zr,fr]:fr),gi})});var Hn=cr(xe);return Ht.map(function(fr){return An(xe,Hn(fr))}).asImmutable()}function qe(xe,Ce,st){var gt=x(xe),Ht=[[],[]];xe.__iterate(function(fr,Zr){Ht[Ce.call(st,fr,Zr,xe)?1:0].push(gt?[Zr,fr]:fr)});var Hn=cr(xe);return Ht.map(function(fr){return An(xe,Hn(fr))})}function Pt(xe,Ce,st,gt){var Ht=xe.size;if(yt(Ce,st,Ht))return xe;if(typeof Ht>"u"&&(Ce<0||st<0))return Pt(xe.toSeq().cacheResult(),Ce,st,gt);var Hn=tt(Ce,Ht),fr=Ze(st,Ht),Zr=fr-Hn,gi;Zr===Zr&&(gi=Zr<0?0:Zr);var wt=mr(xe);return wt.size=gi===0?gi:xe.size&&gi||void 0,!gt&&$t(xe)&&gi>=0&&(wt.get=function(cn,rr){return cn=Te(this,cn),cn>=0&&cn<gi?xe.get(cn+Hn,rr):rr}),wt.__iterateUncached=function(cn,rr){var $n=this;if(gi===0)return 0;if(rr)return this.cacheResult().__iterate(cn,rr);var Sr=0,fi=!0,Ci=0;return xe.__iterate(function(la,ya){if(!(fi&&(fi=Sr++<Hn)))return Ci++,cn(la,gt?ya:Ci-1,$n)!==!1&&Ci!==gi}),Ci},wt.__iteratorUncached=function(cn,rr){if(gi!==0&&rr)return this.cacheResult().__iterator(cn,rr);if(gi===0)return new I($);var $n=xe.__iterator(cn,rr),Sr=0,fi=0;return new I(function(){for(;Sr++<Hn;)$n.next();if(++fi>gi)return $();var Ci=$n.next();return gt||cn===O||Ci.done?Ci:cn===d?U(cn,fi-1,void 0,Ci):U(cn,fi-1,Ci.value[1],Ci)})},wt}function zt(xe,Ce,st){var gt=mr(xe);return gt.__iterateUncached=function(Ht,Hn){var fr=this;if(Hn)return this.cacheResult().__iterate(Ht,Hn);var Zr=0;return xe.__iterate(function(gi,wt,cn){return Ce.call(st,gi,wt,cn)&&++Zr&&Ht(gi,wt,fr)}),Zr},gt.__iteratorUncached=function(Ht,Hn){var fr=this;if(Hn)return this.cacheResult().__iterator(Ht,Hn);var Zr=xe.__iterator(R,Hn),gi=!0;return new I(function(){if(!gi)return $();var wt=Zr.next();if(wt.done)return wt;var cn=wt.value,rr=cn[0],$n=cn[1];return Ce.call(st,$n,rr,fr)?Ht===R?wt:U(Ht,rr,$n,wt):(gi=!1,$())})},gt}function un(xe,Ce,st,gt){var Ht=mr(xe);return Ht.__iterateUncached=function(Hn,fr){var Zr=this;if(fr)return this.cacheResult().__iterate(Hn,fr);var gi=!0,wt=0;return xe.__iterate(function(cn,rr,$n){if(!(gi&&(gi=Ce.call(st,cn,rr,$n))))return wt++,Hn(cn,gt?rr:wt-1,Zr)}),wt},Ht.__iteratorUncached=function(Hn,fr){var Zr=this;if(fr)return this.cacheResult().__iterator(Hn,fr);var gi=xe.__iterator(R,fr),wt=!0,cn=0;return new I(function(){var rr,$n,Sr;do{if(rr=gi.next(),rr.done)return gt||Hn===O?rr:Hn===d?U(Hn,cn++,void 0,rr):U(Hn,cn++,rr.value[1],rr);var fi=rr.value;$n=fi[0],Sr=fi[1],wt&&(wt=Ce.call(st,Sr,$n,Zr))}while(wt);return Hn===R?rr:U(Hn,$n,Sr,rr)})},Ht}var hn=function(xe){function Ce(st){this._wrappedIterables=st.flatMap(function(gt){return gt._wrappedIterables?gt._wrappedIterables:[gt]}),this.size=this._wrappedIterables.reduce(function(gt,Ht){if(gt!==void 0){var Hn=Ht.size;if(Hn!==void 0)return gt+Hn}},0),this[y]=this._wrappedIterables[0][y],this[l]=this._wrappedIterables[0][l],this[Wt]=this._wrappedIterables[0][Wt]}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.__iterateUncached=function(gt,Ht){if(this._wrappedIterables.length!==0){if(Ht)return this.cacheResult().__iterate(gt,Ht);for(var Hn=0,fr=x(this),Zr=fr?R:O,gi=this._wrappedIterables[Hn].__iterator(Zr,Ht),wt=!0,cn=0;wt;){for(var rr=gi.next();rr.done;){if(Hn++,Hn===this._wrappedIterables.length)return cn;gi=this._wrappedIterables[Hn].__iterator(Zr,Ht),rr=gi.next()}var $n=fr?gt(rr.value[1],rr.value[0],this):gt(rr.value,cn,this);wt=$n!==!1,cn++}return cn}},Ce.prototype.__iteratorUncached=function(gt,Ht){var Hn=this;if(this._wrappedIterables.length===0)return new I($);if(Ht)return this.cacheResult().__iterator(gt,Ht);var fr=0,Zr=this._wrappedIterables[fr].__iterator(gt,Ht);return new I(function(){for(var gi=Zr.next();gi.done;){if(fr++,fr===Hn._wrappedIterables.length)return gi;Zr=Hn._wrappedIterables[fr].__iterator(gt,Ht),gi=Zr.next()}return gi})},Ce}(me);function xt(xe,Ce){var st=x(xe),gt=[xe].concat(Ce).map(function(Hn){return h(Hn)?st&&(Hn=v(Hn)):Hn=st?Zt(Hn):nn(Array.isArray(Hn)?Hn:[Hn]),Hn}).filter(function(Hn){return Hn.size!==0});if(gt.length===0)return xe;if(gt.length===1){var Ht=gt[0];if(Ht===xe||st&&x(Ht)||g(xe)&&g(Ht))return Ht}return new hn(gt)}function _t(xe,Ce,st){var gt=mr(xe);return gt.__iterateUncached=function(Ht,Hn){if(Hn)return this.cacheResult().__iterate(Ht,Hn);var fr=0,Zr=!1;function gi(wt,cn){wt.__iterate(function(rr,$n){return(!Ce||cn<Ce)&&h(rr)?gi(rr,cn+1):(fr++,Ht(rr,st?$n:fr-1,gt)===!1&&(Zr=!0)),!Zr},Hn)}return gi(xe,0),fr},gt.__iteratorUncached=function(Ht,Hn){if(Hn)return this.cacheResult().__iterator(Ht,Hn);var fr=xe.__iterator(Ht,Hn),Zr=[],gi=0;return new I(function(){for(;fr;){var wt=fr.next();if(wt.done!==!1){fr=Zr.pop();continue}var cn=wt.value;if(Ht===R&&(cn=cn[1]),(!Ce||Zr.length<Ce)&&h(cn))Zr.push(fr),fr=cn.__iterator(Ht,Hn);else return st?wt:U(Ht,gi++,cn,wt)}return $()})},gt}function qt(xe,Ce,st){var gt=cr(xe);return xe.toSeq().map(function(Ht,Hn){return gt(Ce.call(st,Ht,Hn,xe))}).flatten(!0)}function fn(xe,Ce){var st=mr(xe);return st.size=xe.size&&xe.size*2-1,st.__iterateUncached=function(gt,Ht){var Hn=this,fr=0;return xe.__iterate(function(Zr){return(!fr||gt(Ce,fr++,Hn)!==!1)&>(Zr,fr++,Hn)!==!1},Ht),fr},st.__iteratorUncached=function(gt,Ht){var Hn=xe.__iterator(O,Ht),fr=0,Zr;return new I(function(){return(!Zr||fr%2)&&(Zr=Hn.next(),Zr.done)?Zr:fr%2?U(gt,fr++,Ce):U(gt,fr++,Zr.value,Zr)})},st}function On(xe,Ce,st){Ce||(Ce=ar);var gt=x(xe),Ht=0,Hn=xe.toSeq().map(function(fr,Zr){return[Zr,fr,Ht++,st?st(fr,Zr,xe):fr]}).valueSeq().toArray();return Hn.sort(function(fr,Zr){return Ce(fr[3],Zr[3])||fr[2]-Zr[2]}).forEach(gt?function(fr,Zr){Hn[Zr].length=2}:function(fr,Zr){Hn[Zr]=fr[1]}),gt?ke(Hn):g(xe)?Ee(Hn):_e(Hn)}function Gn(xe,Ce,st){if(Ce||(Ce=ar),st){var gt=xe.toSeq().map(function(Ht,Hn){return[Ht,st(Ht,Hn,xe)]}).reduce(function(Ht,Hn){return Bn(Ce,Ht[1],Hn[1])?Hn:Ht});return gt&>[0]}return xe.reduce(function(Ht,Hn){return Bn(Ce,Ht,Hn)?Hn:Ht})}function Bn(xe,Ce,st){var gt=xe(st,Ce);return gt===0&&st!==Ce&&(st==null||st!==st)||gt>0}function Lr(xe,Ce,st,gt){var Ht=mr(xe),Hn=new ge(st).map(function(fr){return fr.size});return Ht.size=gt?Hn.max():Hn.min(),Ht.__iterate=function(fr,Zr){for(var gi=this.__iterator(O,Zr),wt,cn=0;!(wt=gi.next()).done&&fr(wt.value,cn++,this)!==!1;);return cn},Ht.__iteratorUncached=function(fr,Zr){var gi=st.map(function(rr){return rr=E(rr),Se(Zr?rr.reverse():rr)}),wt=0,cn=!1;return new I(function(){var rr;return cn||(rr=gi.map(function($n){return $n.next()}),cn=gt?rr.every(function($n){return $n.done}):rr.some(function($n){return $n.done})),cn?$():U(fr,wt++,Ce.apply(null,rr.map(function($n){return $n.value})))})},Ht}function An(xe,Ce){return xe===Ce?xe:$t(xe)?Ce:xe.constructor(Ce)}function Un(xe){if(xe!==Object(xe))throw new TypeError("Expected [K, V] tuple: "+xe)}function cr(xe){return x(xe)?v:g(xe)?m:S}function mr(xe){return Object.create((x(xe)?ke:g(xe)?Ee:_e).prototype)}function hr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):me.prototype.cacheResult.call(this)}function ar(xe,Ce){return xe===void 0&&Ce===void 0?0:xe===void 0?1:Ce===void 0?-1:xe>Ce?1:xe<Ce?-1:0}function Cr(xe){return!!(xe&&typeof xe.equals=="function"&&typeof xe.hashCode=="function")}function Yr(xe,Ce){if(xe===Ce||xe!==xe&&Ce!==Ce)return!0;if(!xe||!Ce)return!1;if(typeof xe.valueOf=="function"&&typeof Ce.valueOf=="function"){if(xe=xe.valueOf(),Ce=Ce.valueOf(),xe===Ce||xe!==xe&&Ce!==Ce)return!0;if(!xe||!Ce)return!1}return!!(Cr(xe)&&Cr(Ce)&&xe.equals(Ce))}function Xr(xe,Ce,st,gt){return vi(xe,[Ce],st,gt)}function ni(){for(var xe=[],Ce=arguments.length;Ce--;)xe[Ce]=arguments[Ce];return zr(this,xe)}function ki(xe){for(var Ce=[],st=arguments.length-1;st-- >0;)Ce[st]=arguments[st+1];if(typeof xe!="function")throw new TypeError("Invalid merger function: "+xe);return zr(this,Ce,xe)}function zr(xe,Ce,st){for(var gt=[],Ht=0;Ht<Ce.length;Ht++){var Hn=v(Ce[Ht]);Hn.size!==0&>.push(Hn)}return gt.length===0?xe:xe.toSeq().size===0&&!xe.__ownerID&>.length===1?Dn(xe)?xe:xe.constructor(gt[0]):xe.withMutations(function(fr){for(var Zr=st?function(wt,cn){Xr(fr,cn,T,function(rr){return rr===T?wt:st(rr,wt,cn)})}:function(wt,cn){fr.set(cn,wt)},gi=0;gi<gt.length;gi++)gt[gi].forEach(Zr)})}var Ur=Object.prototype.toString;function jt(xe){if(!xe||typeof xe!="object"||Ur.call(xe)!=="[object Object]")return!1;var Ce=Object.getPrototypeOf(xe);if(Ce===null)return!0;for(var st=Ce,gt=Object.getPrototypeOf(Ce);gt!==null;)st=gt,gt=Object.getPrototypeOf(st);return st===Ce}function sn(xe){return typeof xe=="object"&&(Mt(xe)||Array.isArray(xe)||jt(xe))}function Rn(xe,Ce){Ce=Ce||0;for(var st=Math.max(0,xe.length-Ce),gt=new Array(st),Ht=0;Ht<st;Ht++)gt[Ht]=xe[Ht+Ce];return gt}function H(xe){if(Array.isArray(xe))return Rn(xe);var Ce={};for(var st in xe)Ct.call(xe,st)&&(Ce[st]=xe[st]);return Ce}function Be(xe){for(var Ce=[],st=arguments.length-1;st-- >0;)Ce[st]=arguments[st+1];return Ve(xe,Ce)}function wn(xe,Ce){for(var st=[],gt=arguments.length-2;gt-- >0;)st[gt]=arguments[gt+2];return Ve(Ce,st,xe)}function bi(xe){for(var Ce=[],st=arguments.length-1;st-- >0;)Ce[st]=arguments[st+1];return de(xe,Ce)}function Oi(xe,Ce){for(var st=[],gt=arguments.length-2;gt-- >0;)st[gt]=arguments[gt+2];return de(Ce,st,xe)}function de(xe,Ce,st){return Ve(xe,Ce,vt(st))}function Ve(xe,Ce,st){if(!sn(xe))throw new TypeError("Cannot merge into non-data-structure value: "+xe);if(Mt(xe))return typeof st=="function"&&xe.mergeWith?xe.mergeWith.apply(xe,[st].concat(Ce)):xe.merge?xe.merge.apply(xe,Ce):xe.concat.apply(xe,Ce);for(var gt=Array.isArray(xe),Ht=xe,Hn=gt?m:v,fr=gt?function(gi){Ht===xe&&(Ht=H(Ht)),Ht.push(gi)}:function(gi,wt){var cn=Ct.call(Ht,wt),rr=cn&&st?st(Ht[wt],gi,wt):gi;(!cn||rr!==Ht[wt])&&(Ht===xe&&(Ht=H(Ht)),Ht[wt]=rr)},Zr=0;Zr<Ce.length;Zr++)Hn(Ce[Zr]).forEach(fr);return Ht}function vt(xe){function Ce(st,gt,Ht){return sn(st)&&sn(gt)&&Qt(st,gt)?Ve(st,[gt],Ce):xe?xe(st,gt,Ht):gt}return Ce}function Qt(xe,Ce){var st=me(xe),gt=me(Ce);return g(st)===g(gt)&&x(st)===x(gt)}function nt(){for(var xe=[],Ce=arguments.length;Ce--;)xe[Ce]=arguments[Ce];return de(this,xe)}function Tt(xe){for(var Ce=[],st=arguments.length-1;st-- >0;)Ce[st]=arguments[st+1];return de(this,Ce,xe)}function Gt(xe){for(var Ce=[],st=arguments.length-1;st-- >0;)Ce[st]=arguments[st+1];return vi(this,xe,Xn(),function(gt){return de(gt,Ce)})}function En(xe){for(var Ce=[],st=arguments.length-1;st-- >0;)Ce[st]=arguments[st+1];return vi(this,xe,Xn(),function(gt){return Ve(gt,Ce)})}function Qn(xe,Ce,st){return vi(xe,Ce,T,function(){return st})}function Or(xe,Ce){return Qn(this,xe,Ce)}function Pr(xe,Ce,st){return arguments.length===1?xe(this):Xr(this,xe,Ce,st)}function ai(xe,Ce,st){return vi(this,xe,Ce,st)}function xi(){return this.__altered}function mi(xe){var Ce=this.asMutable();return xe(Ce),Ce.wasAltered()?Ce.__ensureOwner(this.__ownerID):this}var ei="@@__IMMUTABLE_MAP__@@";function Qr(xe){return!!(xe&&xe[ei])}function Ni(xe,Ce){if(!xe)throw new Error(Ce)}function ea(xe){Ni(xe!==1/0,"Cannot perform this action with an infinite size.")}var Qi=function(xe){function Ce(st){return st==null?Xn():Qr(st)&&!Tn(st)?st:Xn().withMutations(function(gt){var Ht=xe(st);ea(Ht.size),Ht.forEach(function(Hn,fr){return gt.set(fr,Hn)})})}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.toString=function(){return this.__toString("Map {","}")},Ce.prototype.get=function(gt,Ht){return this._root?this._root.get(0,void 0,gt,Ht):Ht},Ce.prototype.set=function(gt,Ht){return Tr(this,gt,Ht)},Ce.prototype.remove=function(gt){return Tr(this,gt,T)},Ce.prototype.deleteAll=function(gt){var Ht=E(gt);return Ht.size===0?this:this.withMutations(function(Hn){Ht.forEach(function(fr){return Hn.remove(fr)})})},Ce.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xn()},Ce.prototype.sort=function(gt){return yr(On(this,gt))},Ce.prototype.sortBy=function(gt,Ht){return yr(On(this,Ht,gt))},Ce.prototype.map=function(gt,Ht){var Hn=this;return this.withMutations(function(fr){fr.forEach(function(Zr,gi){fr.set(gi,gt.call(Ht,Zr,gi,Hn))})})},Ce.prototype.__iterator=function(gt,Ht){return new wi(this,gt,Ht)},Ce.prototype.__iterate=function(gt,Ht){var Hn=this,fr=0;return this._root&&this._root.iterate(function(Zr){return fr++,gt(Zr[1],Zr[0],Hn)},Ht),fr},Ce.prototype.__ensureOwner=function(gt){return gt===this.__ownerID?this:gt?ji(this.size,this._root,gt,this.__hash):this.size===0?Xn():(this.__ownerID=gt,this.__altered=!1,this)},Ce}(v);Qi.isMap=Qr;var ir=Qi.prototype;ir[ei]=!0,ir[se]=ir.remove,ir.removeAll=ir.deleteAll,ir.setIn=Or,ir.removeIn=ir.deleteIn=Yi,ir.update=Pr,ir.updateIn=ai,ir.merge=ir.concat=ni,ir.mergeWith=ki,ir.mergeDeep=nt,ir.mergeDeepWith=Tt,ir.mergeIn=En,ir.mergeDeepIn=Gt,ir.withMutations=mi,ir.wasAltered=xi,ir.asImmutable=Vt,ir["@@transducer/init"]=ir.asMutable=Kn,ir["@@transducer/step"]=function(xe,Ce){return xe.set(Ce[0],Ce[1])},ir["@@transducer/result"]=function(xe){return xe.asImmutable()};var xr=function(Ce,st){this.ownerID=Ce,this.entries=st};xr.prototype.get=function(Ce,st,gt,Ht){for(var Hn=this.entries,fr=0,Zr=Hn.length;fr<Zr;fr++)if(Yr(gt,Hn[fr][0]))return Hn[fr][1];return Ht},xr.prototype.update=function(Ce,st,gt,Ht,Hn,fr,Zr){for(var gi=Hn===T,wt=this.entries,cn=0,rr=wt.length;cn<rr&&!Yr(Ht,wt[cn][0]);cn++);var $n=cn<rr;if($n?wt[cn][1]===Hn:gi)return this;if(X(Zr),(gi||!$n)&&X(fr),!(gi&&wt.length===1)){if(!$n&&!gi&&wt.length>=ot)return Ii(Ce,wt,Ht,Hn);var Sr=Ce&&Ce===this.ownerID,fi=Sr?wt:Rn(wt);return $n?gi?cn===rr-1?fi.pop():fi[cn]=fi.pop():fi[cn]=[Ht,Hn]:fi.push([Ht,Hn]),Sr?(this.entries=fi,this):new xr(Ce,fi)}};var di=function(Ce,st,gt){this.ownerID=Ce,this.bitmap=st,this.nodes=gt};di.prototype.get=function(Ce,st,gt,Ht){st===void 0&&(st=Cn(gt));var Hn=1<<((Ce===0?st:st>>>Ce)&A),fr=this.bitmap;return(fr&Hn)===0?Ht:this.nodes[k(fr&Hn-1)].get(Ce+q,st,gt,Ht)},di.prototype.update=function(Ce,st,gt,Ht,Hn,fr,Zr){gt===void 0&&(gt=Cn(Ht));var gi=(st===0?gt:gt>>>st)&A,wt=1<<gi,cn=this.bitmap,rr=(cn&wt)!==0;if(!rr&&Hn===T)return this;var $n=k(cn&wt-1),Sr=this.nodes,fi=rr?Sr[$n]:void 0,Ci=Nr(fi,Ce,st+q,gt,Ht,Hn,fr,Zr);if(Ci===fi)return this;if(!rr&&Ci&&Sr.length>=Lt)return Ji(Ce,Sr,cn,gi,Ci);if(rr&&!Ci&&Sr.length===2&&ti(Sr[$n^1]))return Sr[$n^1];if(rr&&Ci&&Sr.length===1&&ti(Ci))return Ci;var la=Ce&&Ce===this.ownerID,ya=rr?Ci?cn:cn^wt:cn|wt,_a=rr?Ci?ve(Sr,$n,Ci,la):Ye(Sr,$n,la):Le(Sr,$n,Ci,la);return la?(this.bitmap=ya,this.nodes=_a,this):new di(Ce,ya,_a)};var ft=function(Ce,st,gt){this.ownerID=Ce,this.count=st,this.nodes=gt};ft.prototype.get=function(Ce,st,gt,Ht){st===void 0&&(st=Cn(gt));var Hn=(Ce===0?st:st>>>Ce)&A,fr=this.nodes[Hn];return fr?fr.get(Ce+q,st,gt,Ht):Ht},ft.prototype.update=function(Ce,st,gt,Ht,Hn,fr,Zr){gt===void 0&&(gt=Cn(Ht));var gi=(st===0?gt:gt>>>st)&A,wt=Hn===T,cn=this.nodes,rr=cn[gi];if(wt&&!rr)return this;var $n=Nr(rr,Ce,st+q,gt,Ht,Hn,fr,Zr);if($n===rr)return this;var Sr=this.count;if(!rr)Sr++;else if(!$n&&(Sr--,Sr<an))return ta(Ce,cn,Sr,gi);var fi=Ce&&Ce===this.ownerID,Ci=ve(cn,gi,$n,fi);return fi?(this.count=Sr,this.nodes=Ci,this):new ft(Ce,Sr,Ci)};var zn=function(Ce,st,gt){this.ownerID=Ce,this.keyHash=st,this.entries=gt};zn.prototype.get=function(Ce,st,gt,Ht){for(var Hn=this.entries,fr=0,Zr=Hn.length;fr<Zr;fr++)if(Yr(gt,Hn[fr][0]))return Hn[fr][1];return Ht},zn.prototype.update=function(Ce,st,gt,Ht,Hn,fr,Zr){gt===void 0&&(gt=Cn(Ht));var gi=Hn===T;if(gt!==this.keyHash)return gi?this:(X(Zr),X(fr),_i(this,Ce,st,gt,[Ht,Hn]));for(var wt=this.entries,cn=0,rr=wt.length;cn<rr&&!Yr(Ht,wt[cn][0]);cn++);var $n=cn<rr;if($n?wt[cn][1]===Hn:gi)return this;if(X(Zr),(gi||!$n)&&X(fr),gi&&rr===2)return new Zn(Ce,this.keyHash,wt[cn^1]);var Sr=Ce&&Ce===this.ownerID,fi=Sr?wt:Rn(wt);return $n?gi?cn===rr-1?fi.pop():fi[cn]=fi.pop():fi[cn]=[Ht,Hn]:fi.push([Ht,Hn]),Sr?(this.entries=fi,this):new zn(Ce,this.keyHash,fi)};var Zn=function(Ce,st,gt){this.ownerID=Ce,this.keyHash=st,this.entry=gt};Zn.prototype.get=function(Ce,st,gt,Ht){return Yr(gt,this.entry[0])?this.entry[1]:Ht},Zn.prototype.update=function(Ce,st,gt,Ht,Hn,fr,Zr){var gi=Hn===T,wt=Yr(Ht,this.entry[0]);if(wt?Hn===this.entry[1]:gi)return this;if(X(Zr),gi){X(fr);return}return wt?Ce&&Ce===this.ownerID?(this.entry[1]=Hn,this):new Zn(Ce,this.keyHash,[Ht,Hn]):(X(fr),_i(this,Ce,st,Cn(Ht),[Ht,Hn]))},xr.prototype.iterate=zn.prototype.iterate=function(xe,Ce){for(var st=this.entries,gt=0,Ht=st.length-1;gt<=Ht;gt++)if(xe(st[Ce?Ht-gt:gt])===!1)return!1},di.prototype.iterate=ft.prototype.iterate=function(xe,Ce){for(var st=this.nodes,gt=0,Ht=st.length-1;gt<=Ht;gt++){var Hn=st[Ce?Ht-gt:gt];if(Hn&&Hn.iterate(xe,Ce)===!1)return!1}},Zn.prototype.iterate=function(xe,Ce){return xe(this.entry)};var wi=function(xe){function Ce(st,gt,Ht){this._type=gt,this._reverse=Ht,this._stack=st._root&&wa(st._root)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.next=function(){for(var gt=this._type,Ht=this._stack;Ht;){var Hn=Ht.node,fr=Ht.index++,Zr=void 0;if(Hn.entry){if(fr===0)return Ea(gt,Hn.entry)}else if(Hn.entries){if(Zr=Hn.entries.length-1,fr<=Zr)return Ea(gt,Hn.entries[this._reverse?Zr-fr:fr])}else if(Zr=Hn.nodes.length-1,fr<=Zr){var gi=Hn.nodes[this._reverse?Zr-fr:fr];if(gi){if(gi.entry)return Ea(gt,gi.entry);Ht=this._stack=wa(gi,Ht)}continue}Ht=this._stack=this._stack.__prev}return $()},Ce}(I);function Ea(xe,Ce){return U(xe,Ce[0],Ce[1])}function wa(xe,Ce){return{node:xe,index:0,__prev:Ce}}function ji(xe,Ce,st,gt){var Ht=Object.create(ir);return Ht.size=xe,Ht._root=Ce,Ht.__ownerID=st,Ht.__hash=gt,Ht.__altered=!1,Ht}var Dt;function Xn(){return Dt||(Dt=ji(0))}function Tr(xe,Ce,st){var gt,Ht;if(xe._root){var Hn=B(),fr=B();if(gt=Nr(xe._root,xe.__ownerID,0,void 0,Ce,st,Hn,fr),!fr.value)return xe;Ht=xe.size+(Hn.value?st===T?-1:1:0)}else{if(st===T)return xe;Ht=1,gt=new xr(xe.__ownerID,[[Ce,st]])}return xe.__ownerID?(xe.size=Ht,xe._root=gt,xe.__hash=void 0,xe.__altered=!0,xe):gt?ji(Ht,gt):Xn()}function Nr(xe,Ce,st,gt,Ht,Hn,fr,Zr){return xe?xe.update(Ce,st,gt,Ht,Hn,fr,Zr):Hn===T?xe:(X(Zr),X(fr),new Zn(Ce,gt,[Ht,Hn]))}function ti(xe){return xe.constructor===Zn||xe.constructor===zn}function _i(xe,Ce,st,gt,Ht){if(xe.keyHash===gt)return new zn(Ce,gt,[xe.entry,Ht]);var Hn=(st===0?xe.keyHash:xe.keyHash>>>st)&A,fr=(st===0?gt:gt>>>st)&A,Zr,gi=Hn===fr?[_i(xe,Ce,st+q,gt,Ht)]:(Zr=new Zn(Ce,gt,Ht),Hn<fr?[xe,Zr]:[Zr,xe]);return new di(Ce,1<<Hn|1<<fr,gi)}function Ii(xe,Ce,st,gt){xe||(xe=new ue);for(var Ht=new Zn(xe,Cn(st),[st,gt]),Hn=0;Hn<Ce.length;Hn++){var fr=Ce[Hn];Ht=Ht.update(xe,0,void 0,fr[0],fr[1])}return Ht}function ta(xe,Ce,st,gt){for(var Ht=0,Hn=0,fr=new Array(st),Zr=0,gi=1,wt=Ce.length;Zr<wt;Zr++,gi<<=1){var cn=Ce[Zr];cn!==void 0&&Zr!==gt&&(Ht|=gi,fr[Hn++]=cn)}return new di(xe,Ht,fr)}function Ji(xe,Ce,st,gt,Ht){for(var Hn=0,fr=new Array(te),Zr=0;st!==0;Zr++,st>>>=1)fr[Zr]=st&1?Ce[Hn++]:void 0;return fr[gt]=Ht,new ft(xe,Hn+1,fr)}function k(xe){return xe-=xe>>1&1431655765,xe=(xe&858993459)+(xe>>2&858993459),xe=xe+(xe>>4)&252645135,xe+=xe>>8,xe+=xe>>16,xe&127}function ve(xe,Ce,st,gt){var Ht=gt?xe:Rn(xe);return Ht[Ce]=st,Ht}function Le(xe,Ce,st,gt){var Ht=xe.length+1;if(gt&&Ce+1===Ht)return xe[Ce]=st,xe;for(var Hn=new Array(Ht),fr=0,Zr=0;Zr<Ht;Zr++)Zr===Ce?(Hn[Zr]=st,fr=-1):Hn[Zr]=xe[Zr+fr];return Hn}function Ye(xe,Ce,st){var gt=xe.length-1;if(st&&Ce===gt)return xe.pop(),xe;for(var Ht=new Array(gt),Hn=0,fr=0;fr<gt;fr++)fr===Ce&&(Hn=1),Ht[fr]=xe[fr+Hn];return Ht}var ot=te/4,Lt=te/2,an=te/4;function nr(xe){if(Z(xe)&&typeof xe!="string")return xe;if(Tn(xe))return xe.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+xe)}function vr(xe){try{return typeof xe=="string"?JSON.stringify(xe):String(xe)}catch{return JSON.stringify(xe)}}function $r(xe,Ce){return Mt(xe)?xe.has(Ce):sn(xe)&&Ct.call(xe,Ce)}function Fr(xe,Ce,st){return Mt(xe)?xe.get(Ce,st):$r(xe,Ce)?typeof xe.get=="function"?xe.get(Ce):xe[Ce]:st}function qr(xe,Ce){if(!sn(xe))throw new TypeError("Cannot update non-data-structure value: "+xe);if(Mt(xe)){if(!xe.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+xe);return xe.remove(Ce)}if(!Ct.call(xe,Ce))return xe;var st=H(xe);return Array.isArray(st)?st.splice(Ce,1):delete st[Ce],st}function jr(xe,Ce,st){if(!sn(xe))throw new TypeError("Cannot update non-data-structure value: "+xe);if(Mt(xe)){if(!xe.set)throw new TypeError("Cannot update immutable value without .set() method: "+xe);return xe.set(Ce,st)}if(Ct.call(xe,Ce)&&st===xe[Ce])return xe;var gt=H(xe);return gt[Ce]=st,gt}function vi(xe,Ce,st,gt){gt||(gt=st,st=void 0);var Ht=Mi(Mt(xe),xe,nr(Ce),0,st,gt);return Ht===T?st:Ht}function Mi(xe,Ce,st,gt,Ht,Hn){var fr=Ce===T;if(gt===st.length){var Zr=fr?Ht:Ce,gi=Hn(Zr);return gi===Zr?Ce:gi}if(!fr&&!sn(Ce))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(st).slice(0,gt).map(vr)+"]: "+Ce);var wt=st[gt],cn=fr?T:Fr(Ce,wt,T),rr=Mi(cn===T?xe:Mt(cn),cn,st,gt+1,Ht,Hn);return rr===cn?Ce:rr===T?qr(Ce,wt):jr(fr?xe?Xn():{}:Ce,wt,rr)}function ra(xe,Ce){return vi(xe,Ce,function(){return T})}function Yi(xe){return ra(this,xe)}var ua="@@__IMMUTABLE_LIST__@@";function Sa(xe){return!!(xe&&xe[ua])}var Xt=function(xe){function Ce(st){var gt=Ie();if(st==null)return gt;if(Sa(st))return st;var Ht=xe(st),Hn=Ht.size;return Hn===0?gt:(ea(Hn),Hn>0&&Hn<te?oe(0,Hn,q,null,new Y(Ht.toArray())):gt.withMutations(function(fr){fr.setSize(Hn),Ht.forEach(function(Zr,gi){return fr.set(gi,Zr)})}))}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("List [","]")},Ce.prototype.get=function(gt,Ht){if(gt=Te(this,gt),gt>=0&><this.size){gt+=this._origin;var Hn=kt(this,gt);return Hn&&Hn.array[gt&A]}return Ht},Ce.prototype.set=function(gt,Ht){return Ue(this,gt,Ht)},Ce.prototype.remove=function(gt){return this.has(gt)?gt===0?this.shift():gt===this.size-1?this.pop():this.splice(gt,1):this},Ce.prototype.insert=function(gt,Ht){return this.splice(gt,0,Ht)},Ce.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=q,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Ie()},Ce.prototype.push=function(){var gt=arguments,Ht=this.size;return this.withMutations(function(Hn){dn(Hn,0,Ht+gt.length);for(var fr=0;fr<gt.length;fr++)Hn.set(Ht+fr,gt[fr])})},Ce.prototype.pop=function(){return dn(this,0,-1)},Ce.prototype.unshift=function(){var gt=arguments;return this.withMutations(function(Ht){dn(Ht,-gt.length);for(var Hn=0;Hn<gt.length;Hn++)Ht.set(Hn,gt[Hn])})},Ce.prototype.shift=function(){return dn(this,1)},Ce.prototype.shuffle=function(gt){return gt===void 0&&(gt=Math.random),this.withMutations(function(Ht){for(var Hn=Ht.size,fr,Zr;Hn;)fr=Math.floor(gt()*Hn--),Zr=Ht.get(fr),Ht.set(fr,Ht.get(Hn)),Ht.set(Hn,Zr)})},Ce.prototype.concat=function(){for(var gt=arguments,Ht=[],Hn=0;Hn<arguments.length;Hn++){var fr=gt[Hn],Zr=xe(typeof fr!="string"&&ee(fr)?fr:[fr]);Zr.size!==0&&Ht.push(Zr)}return Ht.length===0?this:this.size===0&&!this.__ownerID&&Ht.length===1?this.constructor(Ht[0]):this.withMutations(function(gi){Ht.forEach(function(wt){return wt.forEach(function(cn){return gi.push(cn)})})})},Ce.prototype.setSize=function(gt){return dn(this,0,gt)},Ce.prototype.map=function(gt,Ht){var Hn=this;return this.withMutations(function(fr){for(var Zr=0;Zr<Hn.size;Zr++)fr.set(Zr,gt.call(Ht,fr.get(Zr),Zr,Hn))})},Ce.prototype.slice=function(gt,Ht){var Hn=this.size;return yt(gt,Ht,Hn)?this:dn(this,tt(gt,Hn),Ze(Ht,Hn))},Ce.prototype.__iterator=function(gt,Ht){var Hn=Ht?this.size:0,fr=P(this,Ht);return new I(function(){var Zr=fr();return Zr===D?$():U(gt,Ht?--Hn:Hn++,Zr)})},Ce.prototype.__iterate=function(gt,Ht){for(var Hn=Ht?this.size:0,fr=P(this,Ht),Zr;(Zr=fr())!==D&>(Zr,Ht?--Hn:Hn++,this)!==!1;);return Hn},Ce.prototype.__ensureOwner=function(gt){return gt===this.__ownerID?this:gt?oe(this._origin,this._capacity,this._level,this._root,this._tail,gt,this.__hash):this.size===0?Ie():(this.__ownerID=gt,this.__altered=!1,this)},Ce}(m);Xt.isList=Sa;var V=Xt.prototype;V[ua]=!0,V[se]=V.remove,V.merge=V.concat,V.setIn=Or,V.deleteIn=V.removeIn=Yi,V.update=Pr,V.updateIn=ai,V.mergeIn=En,V.mergeDeepIn=Gt,V.withMutations=mi,V.wasAltered=xi,V.asImmutable=Vt,V["@@transducer/init"]=V.asMutable=Kn,V["@@transducer/step"]=function(xe,Ce){return xe.push(Ce)},V["@@transducer/result"]=function(xe){return xe.asImmutable()};var Y=function(Ce,st){this.array=Ce,this.ownerID=st};Y.prototype.removeBefore=function(Ce,st,gt){if((gt&(1<<st+q)-1)===0||this.array.length===0)return this;var Ht=gt>>>st&A;if(Ht>=this.array.length)return new Y([],Ce);var Hn=Ht===0,fr;if(st>0){var Zr=this.array[Ht];if(fr=Zr&&Zr.removeBefore(Ce,st-q,gt),fr===Zr&&Hn)return this}if(Hn&&!fr)return this;var gi=dt(this,Ce);if(!Hn)for(var wt=0;wt<Ht;wt++)gi.array[wt]=void 0;return fr&&(gi.array[Ht]=fr),gi},Y.prototype.removeAfter=function(Ce,st,gt){if(gt===(st?1<<st+q:te)||this.array.length===0)return this;var Ht=gt-1>>>st&A;if(Ht>=this.array.length)return this;var Hn;if(st>0){var fr=this.array[Ht];if(Hn=fr&&fr.removeAfter(Ce,st-q,gt),Hn===fr&&Ht===this.array.length-1)return this}var Zr=dt(this,Ce);return Zr.array.splice(Ht+1),Hn&&(Zr.array[Ht]=Hn),Zr};var D={};function P(xe,Ce){var st=xe._origin,gt=xe._capacity,Ht=Vn(gt),Hn=xe._tail;return fr(xe._root,xe._level,0);function fr(wt,cn,rr){return cn===0?Zr(wt,rr):gi(wt,cn,rr)}function Zr(wt,cn){var rr=cn===Ht?Hn&&Hn.array:wt&&wt.array,$n=cn>st?0:st-cn,Sr=gt-cn;return Sr>te&&(Sr=te),function(){if($n===Sr)return D;var fi=Ce?--Sr:$n++;return rr&&rr[fi]}}function gi(wt,cn,rr){var $n,Sr=wt&&wt.array,fi=rr>st?0:st-rr>>cn,Ci=(gt-rr>>cn)+1;return Ci>te&&(Ci=te),function(){for(;;){if($n){var la=$n();if(la!==D)return la;$n=null}if(fi===Ci)return D;var ya=Ce?--Ci:fi++;$n=fr(Sr&&Sr[ya],cn-q,rr+(ya<<cn))}}}}function oe(xe,Ce,st,gt,Ht,Hn,fr){var Zr=Object.create(V);return Zr.size=Ce-xe,Zr._origin=xe,Zr._capacity=Ce,Zr._level=st,Zr._root=gt,Zr._tail=Ht,Zr.__ownerID=Hn,Zr.__hash=fr,Zr.__altered=!1,Zr}function Ie(){return oe(0,0,q)}function Ue(xe,Ce,st){if(Ce=Te(xe,Ce),Ce!==Ce)return xe;if(Ce>=xe.size||Ce<0)return xe.withMutations(function(fr){Ce<0?dn(fr,Ce).set(0,st):dn(fr,0,Ce+1).set(Ce,st)});Ce+=xe._origin;var gt=xe._tail,Ht=xe._root,Hn=B();return Ce>=Vn(xe._capacity)?gt=Xe(gt,xe.__ownerID,0,Ce,st,Hn):Ht=Xe(Ht,xe.__ownerID,xe._level,Ce,st,Hn),Hn.value?xe.__ownerID?(xe._root=Ht,xe._tail=gt,xe.__hash=void 0,xe.__altered=!0,xe):oe(xe._origin,xe._capacity,xe._level,Ht,gt):xe}function Xe(xe,Ce,st,gt,Ht,Hn){var fr=gt>>>st&A,Zr=xe&&fr<xe.array.length;if(!Zr&&Ht===void 0)return xe;var gi;if(st>0){var wt=xe&&xe.array[fr],cn=Xe(wt,Ce,st-q,gt,Ht,Hn);return cn===wt?xe:(gi=dt(xe,Ce),gi.array[fr]=cn,gi)}return Zr&&xe.array[fr]===Ht?xe:(Hn&&X(Hn),gi=dt(xe,Ce),Ht===void 0&&fr===gi.array.length-1?gi.array.pop():gi.array[fr]=Ht,gi)}function dt(xe,Ce){return Ce&&xe&&Ce===xe.ownerID?xe:new Y(xe?xe.array.slice():[],Ce)}function kt(xe,Ce){if(Ce>=Vn(xe._capacity))return xe._tail;if(Ce<1<<xe._level+q){for(var st=xe._root,gt=xe._level;st&>>0;)st=st.array[Ce>>>gt&A],gt-=q;return st}}function dn(xe,Ce,st){Ce!==void 0&&(Ce|=0),st!==void 0&&(st|=0);var gt=xe.__ownerID||new ue,Ht=xe._origin,Hn=xe._capacity,fr=Ht+Ce,Zr=st===void 0?Hn:st<0?Hn+st:Ht+st;if(fr===Ht&&Zr===Hn)return xe;if(fr>=Zr)return xe.clear();for(var gi=xe._level,wt=xe._root,cn=0;fr+cn<0;)wt=new Y(wt&&wt.array.length?[void 0,wt]:[],gt),gi+=q,cn+=1<<gi;cn&&(fr+=cn,Ht+=cn,Zr+=cn,Hn+=cn);for(var rr=Vn(Hn),$n=Vn(Zr);$n>=1<<gi+q;)wt=new Y(wt&&wt.array.length?[wt]:[],gt),gi+=q;var Sr=xe._tail,fi=$n<rr?kt(xe,Zr-1):$n>rr?new Y([],gt):Sr;if(Sr&&$n>rr&&fr<Hn&&Sr.array.length){wt=dt(wt,gt);for(var Ci=wt,la=gi;la>q;la-=q){var ya=rr>>>la&A;Ci=Ci.array[ya]=dt(Ci.array[ya],gt)}Ci.array[rr>>>q&A]=Sr}if(Zr<Hn&&(fi=fi&&fi.removeAfter(gt,0,Zr)),fr>=$n)fr-=$n,Zr-=$n,gi=q,wt=null,fi=fi&&fi.removeBefore(gt,0,fr);else if(fr>Ht||$n<rr){for(cn=0;wt;){var _a=fr>>>gi&A;if(_a!==$n>>>gi&A)break;_a&&(cn+=(1<<gi)*_a),gi-=q,wt=wt.array[_a]}wt&&fr>Ht&&(wt=wt.removeBefore(gt,gi,fr-cn)),wt&&$n<rr&&(wt=wt.removeAfter(gt,gi,$n-cn)),cn&&(fr-=cn,Zr-=cn)}return xe.__ownerID?(xe.size=Zr-fr,xe._origin=fr,xe._capacity=Zr,xe._level=gi,xe._root=wt,xe._tail=fi,xe.__hash=void 0,xe.__altered=!0,xe):oe(fr,Zr,gi,wt,fi)}function Vn(xe){return xe<te?0:xe-1>>>q<<q}function qn(xe){return Qr(xe)&&Tn(xe)}var yr=function(xe){function Ce(st){return st==null?Ti():qn(st)?st:Ti().withMutations(function(gt){var Ht=v(st);ea(Ht.size),Ht.forEach(function(Hn,fr){return gt.set(fr,Hn)})})}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ce.prototype.get=function(gt,Ht){var Hn=this._map.get(gt);return Hn!==void 0?this._list.get(Hn)[1]:Ht},Ce.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Ti()},Ce.prototype.set=function(gt,Ht){return Vi(this,gt,Ht)},Ce.prototype.remove=function(gt){return Vi(this,gt,T)},Ce.prototype.__iterate=function(gt,Ht){var Hn=this;return this._list.__iterate(function(fr){return fr&>(fr[1],fr[0],Hn)},Ht)},Ce.prototype.__iterator=function(gt,Ht){return this._list.fromEntrySeq().__iterator(gt,Ht)},Ce.prototype.__ensureOwner=function(gt){if(gt===this.__ownerID)return this;var Ht=this._map.__ensureOwner(gt),Hn=this._list.__ensureOwner(gt);return gt?ci(Ht,Hn,gt,this.__hash):this.size===0?Ti():(this.__ownerID=gt,this.__altered=!1,this._map=Ht,this._list=Hn,this)},Ce}(Qi);yr.isOrderedMap=qn,yr.prototype[Wt]=!0,yr.prototype[se]=yr.prototype.remove;function ci(xe,Ce,st,gt){var Ht=Object.create(yr.prototype);return Ht.size=xe?xe.size:0,Ht._map=xe,Ht._list=Ce,Ht.__ownerID=st,Ht.__hash=gt,Ht.__altered=!1,Ht}var hi;function Ti(){return hi||(hi=ci(Xn(),Ie()))}function Vi(xe,Ce,st){var gt=xe._map,Ht=xe._list,Hn=gt.get(Ce),fr=Hn!==void 0,Zr,gi;if(st===T){if(!fr)return xe;Ht.size>=te&&Ht.size>=gt.size*2?(gi=Ht.filter(function(wt,cn){return wt!==void 0&&Hn!==cn}),Zr=gi.toKeyedSeq().map(function(wt){return wt[0]}).flip().toMap(),xe.__ownerID&&(Zr.__ownerID=gi.__ownerID=xe.__ownerID)):(Zr=gt.remove(Ce),gi=Hn===Ht.size-1?Ht.pop():Ht.set(Hn,void 0))}else if(fr){if(st===Ht.get(Hn)[1])return xe;Zr=gt,gi=Ht.set(Hn,[Ce,st])}else Zr=gt.set(Ce,Ht.size),gi=Ht.set(Ht.size,[Ce,st]);return xe.__ownerID?(xe.size=Zr.size,xe._map=Zr,xe._list=gi,xe.__hash=void 0,xe.__altered=!0,xe):ci(Zr,gi)}var Di="@@__IMMUTABLE_STACK__@@";function Pi(xe){return!!(xe&&xe[Di])}var mt=function(xe){function Ce(st){return st==null?St():Pi(st)?st:St().pushAll(st)}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.of=function(){return this(arguments)},Ce.prototype.toString=function(){return this.__toString("Stack [","]")},Ce.prototype.get=function(gt,Ht){var Hn=this._head;for(gt=Te(this,gt);Hn&>--;)Hn=Hn.next;return Hn?Hn.value:Ht},Ce.prototype.peek=function(){return this._head&&this._head.value},Ce.prototype.push=function(){var gt=arguments;if(arguments.length===0)return this;for(var Ht=this.size+arguments.length,Hn=this._head,fr=arguments.length-1;fr>=0;fr--)Hn={value:gt[fr],next:Hn};return this.__ownerID?(this.size=Ht,this._head=Hn,this.__hash=void 0,this.__altered=!0,this):or(Ht,Hn)},Ce.prototype.pushAll=function(gt){if(gt=xe(gt),gt.size===0)return this;if(this.size===0&&Pi(gt))return gt;ea(gt.size);var Ht=this.size,Hn=this._head;return gt.__iterate(function(fr){Ht++,Hn={value:fr,next:Hn}},!0),this.__ownerID?(this.size=Ht,this._head=Hn,this.__hash=void 0,this.__altered=!0,this):or(Ht,Hn)},Ce.prototype.pop=function(){return this.slice(1)},Ce.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):St()},Ce.prototype.slice=function(gt,Ht){if(yt(gt,Ht,this.size))return this;var Hn=tt(gt,this.size),fr=Ze(Ht,this.size);if(fr!==this.size)return xe.prototype.slice.call(this,gt,Ht);for(var Zr=this.size-Hn,gi=this._head;Hn--;)gi=gi.next;return this.__ownerID?(this.size=Zr,this._head=gi,this.__hash=void 0,this.__altered=!0,this):or(Zr,gi)},Ce.prototype.__ensureOwner=function(gt){return gt===this.__ownerID?this:gt?or(this.size,this._head,gt,this.__hash):this.size===0?St():(this.__ownerID=gt,this.__altered=!1,this)},Ce.prototype.__iterate=function(gt,Ht){var Hn=this;if(Ht)return new ge(this.toArray()).__iterate(function(gi,wt){return gt(gi,wt,Hn)},Ht);for(var fr=0,Zr=this._head;Zr&>(Zr.value,fr++,this)!==!1;)Zr=Zr.next;return fr},Ce.prototype.__iterator=function(gt,Ht){if(Ht)return new ge(this.toArray()).__iterator(gt,Ht);var Hn=0,fr=this._head;return new I(function(){if(fr){var Zr=fr.value;return fr=fr.next,U(gt,Hn++,Zr)}return $()})},Ce}(m);mt.isStack=Pi;var tn=mt.prototype;tn[Di]=!0,tn.shift=tn.pop,tn.unshift=tn.push,tn.unshiftAll=tn.pushAll,tn.withMutations=mi,tn.wasAltered=xi,tn.asImmutable=Vt,tn["@@transducer/init"]=tn.asMutable=Kn,tn["@@transducer/step"]=function(xe,Ce){return xe.unshift(Ce)},tn["@@transducer/result"]=function(xe){return xe.asImmutable()};function or(xe,Ce,st,gt){var Ht=Object.create(tn);return Ht.size=xe,Ht._head=Ce,Ht.__ownerID=st,Ht.__hash=gt,Ht.__altered=!1,Ht}var rt;function St(){return rt||(rt=or(0))}function _n(xe,Ce,st,gt,Ht,Hn){return ea(xe.size),xe.__iterate(function(fr,Zr,gi){Ht?(Ht=!1,st=fr):st=Ce.call(gt,st,fr,Zr,gi)},Hn),st}function vn(xe,Ce){return Ce}function Ln(xe,Ce){return[Ce,xe]}function _r(xe){return function(){for(var Ce=[],st=arguments.length;st--;)Ce[st]=arguments[st];return!xe.apply(this,Ce)}}function Br(xe){return function(){for(var Ce=[],st=arguments.length;st--;)Ce[st]=arguments[st];return-xe.apply(this,Ce)}}function Kr(xe,Ce){return xe<Ce?1:xe>Ce?-1:0}function Jr(xe,Ce){if(xe===Ce)return!0;if(!h(Ce)||xe.size!==void 0&&Ce.size!==void 0&&xe.size!==Ce.size||xe.__hash!==void 0&&Ce.__hash!==void 0&&xe.__hash!==Ce.__hash||x(xe)!==x(Ce)||g(xe)!==g(Ce)||Tn(xe)!==Tn(Ce))return!1;if(xe.size===0&&Ce.size===0)return!0;var st=!f(xe);if(Tn(xe)){var gt=xe.entries();return Ce.every(function(gi,wt){var cn=gt.next().value;return cn&&Yr(cn[1],gi)&&(st||Yr(cn[0],wt))})&>.next().done}var Ht=!1;if(xe.size===void 0)if(Ce.size===void 0)typeof xe.cacheResult=="function"&&xe.cacheResult();else{Ht=!0;var Hn=xe;xe=Ce,Ce=Hn}var fr=!0,Zr=Ce.__iterate(function(gi,wt){if(st?!xe.has(gi):Ht?!Yr(gi,xe.get(wt,T)):!Yr(xe.get(wt,T),gi))return fr=!1,!1});return fr&&xe.size===Zr}var ii=function(xe){function Ce(st,gt,Ht){if(Ht===void 0&&(Ht=1),!(this instanceof Ce))return new Ce(st,gt,Ht);if(Ni(Ht!==0,"Cannot step a Range by 0"),Ni(st!==void 0,"You must define a start value when using Range"),Ni(gt!==void 0,"You must define an end value when using Range"),Ht=Math.abs(Ht),gt<st&&(Ht=-Ht),this._start=st,this._end=gt,this._step=Ht,this.size=Math.max(0,Math.ceil((gt-st)/Ht-1)+1),this.size===0){if(le)return le;le=this}}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},Ce.prototype.get=function(gt,Ht){return this.has(gt)?this._start+Te(this,gt)*this._step:Ht},Ce.prototype.includes=function(gt){var Ht=(gt-this._start)/this._step;return Ht>=0&&Ht<this.size&&Ht===Math.floor(Ht)},Ce.prototype.slice=function(gt,Ht){return yt(gt,Ht,this.size)?this:(gt=tt(gt,this.size),Ht=Ze(Ht,this.size),Ht<=gt?new Ce(0,0):new Ce(this.get(gt,this._end),this.get(Ht,this._end),this._step))},Ce.prototype.indexOf=function(gt){var Ht=gt-this._start;if(Ht%this._step===0){var Hn=Ht/this._step;if(Hn>=0&&Hn<this.size)return Hn}return-1},Ce.prototype.lastIndexOf=function(gt){return this.indexOf(gt)},Ce.prototype.__iterate=function(gt,Ht){for(var Hn=this.size,fr=this._step,Zr=Ht?this._start+(Hn-1)*fr:this._start,gi=0;gi!==Hn&>(Zr,Ht?Hn-++gi:gi++,this)!==!1;)Zr+=Ht?-fr:fr;return gi},Ce.prototype.__iterator=function(gt,Ht){var Hn=this.size,fr=this._step,Zr=Ht?this._start+(Hn-1)*fr:this._start,gi=0;return new I(function(){if(gi===Hn)return $();var wt=Zr;return Zr+=Ht?-fr:fr,U(gt,Ht?Hn-++gi:gi++,wt)})},Ce.prototype.equals=function(gt){return gt instanceof Ce?this._start===gt._start&&this._end===gt._end&&this._step===gt._step:Jr(this,gt)},Ce}(Ee),le,Ae="@@__IMMUTABLE_SET__@@";function Oe(xe){return!!(xe&&xe[Ae])}var et=function(xe){function Ce(st){return st==null?At():Oe(st)&&!Tn(st)?st:At().withMutations(function(gt){var Ht=xe(st);ea(Ht.size),Ht.forEach(function(Hn){return gt.add(Hn)})})}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.of=function(){return this(arguments)},Ce.fromKeys=function(gt){return this(v(gt).keySeq())},Ce.intersect=function(gt){return gt=E(gt).toArray(),gt.length?Ot.intersect.apply(Ce(gt.pop()),gt):At()},Ce.union=function(gt){return gt=E(gt).toArray(),gt.length?Ot.union.apply(Ce(gt.pop()),gt):At()},Ce.prototype.toString=function(){return this.__toString("Set {","}")},Ce.prototype.has=function(gt){return this._map.has(gt)},Ce.prototype.add=function(gt){return It(this,this._map.set(gt,gt))},Ce.prototype.remove=function(gt){return It(this,this._map.remove(gt))},Ce.prototype.clear=function(){return It(this,this._map.clear())},Ce.prototype.map=function(gt,Ht){var Hn=this,fr=!1,Zr=It(this,this._map.mapEntries(function(gi){var wt=gi[1],cn=gt.call(Ht,wt,wt,Hn);return cn!==wt&&(fr=!0),[cn,cn]},Ht));return fr?Zr:this},Ce.prototype.union=function(){for(var gt=[],Ht=arguments.length;Ht--;)gt[Ht]=arguments[Ht];return gt=gt.filter(function(Hn){return Hn.size!==0}),gt.length===0?this:this.size===0&&!this.__ownerID&>.length===1?this.constructor(gt[0]):this.withMutations(function(Hn){for(var fr=0;fr<gt.length;fr++)typeof gt[fr]=="string"?Hn.add(gt[fr]):xe(gt[fr]).forEach(function(Zr){return Hn.add(Zr)})})},Ce.prototype.intersect=function(){for(var gt=[],Ht=arguments.length;Ht--;)gt[Ht]=arguments[Ht];if(gt.length===0)return this;gt=gt.map(function(fr){return xe(fr)});var Hn=[];return this.forEach(function(fr){gt.every(function(Zr){return Zr.includes(fr)})||Hn.push(fr)}),this.withMutations(function(fr){Hn.forEach(function(Zr){fr.remove(Zr)})})},Ce.prototype.subtract=function(){for(var gt=[],Ht=arguments.length;Ht--;)gt[Ht]=arguments[Ht];if(gt.length===0)return this;gt=gt.map(function(fr){return xe(fr)});var Hn=[];return this.forEach(function(fr){gt.some(function(Zr){return Zr.includes(fr)})&&Hn.push(fr)}),this.withMutations(function(fr){Hn.forEach(function(Zr){fr.remove(Zr)})})},Ce.prototype.sort=function(gt){return Xa(On(this,gt))},Ce.prototype.sortBy=function(gt,Ht){return Xa(On(this,Ht,gt))},Ce.prototype.wasAltered=function(){return this._map.wasAltered()},Ce.prototype.__iterate=function(gt,Ht){var Hn=this;return this._map.__iterate(function(fr){return gt(fr,fr,Hn)},Ht)},Ce.prototype.__iterator=function(gt,Ht){return this._map.__iterator(gt,Ht)},Ce.prototype.__ensureOwner=function(gt){if(gt===this.__ownerID)return this;var Ht=this._map.__ensureOwner(gt);return gt?this.__make(Ht,gt):this.size===0?this.__empty():(this.__ownerID=gt,this._map=Ht,this)},Ce}(S);et.isSet=Oe;var Ot=et.prototype;Ot[Ae]=!0,Ot[se]=Ot.remove,Ot.merge=Ot.concat=Ot.union,Ot.withMutations=mi,Ot.asImmutable=Vt,Ot["@@transducer/init"]=Ot.asMutable=Kn,Ot["@@transducer/step"]=function(xe,Ce){return xe.add(Ce)},Ot["@@transducer/result"]=function(xe){return xe.asImmutable()},Ot.__empty=At,Ot.__make=Mn;function It(xe,Ce){return xe.__ownerID?(xe.size=Ce.size,xe._map=Ce,xe):Ce===xe._map?xe:Ce.size===0?xe.__empty():xe.__make(Ce)}function Mn(xe,Ce){var st=Object.create(Ot);return st.size=xe?xe.size:0,st._map=xe,st.__ownerID=Ce,st}var mn;function At(){return mn||(mn=Mn(Xn()))}function Ut(xe,Ce,st){for(var gt=nr(Ce),Ht=0;Ht!==gt.length;)if(xe=Fr(xe,gt[Ht++],T),xe===T)return st;return xe}function jn(xe,Ce){return Ut(this,xe,Ce)}function Jt(xe,Ce){return Ut(xe,Ce,T)!==T}function dr(xe){return Jt(this,xe)}function wr(){ea(this.size);var xe={};return this.__iterate(function(Ce,st){xe[st]=Ce}),xe}function Hr(xe){if(!xe||typeof xe!="object")return xe;if(!h(xe)){if(!sn(xe))return xe;xe=me(xe)}if(x(xe)){var Ce={};return xe.__iterate(function(gt,Ht){Ce[Ht]=Hr(gt)}),Ce}var st=[];return xe.__iterate(function(gt){st.push(Hr(gt))}),st}function Ar(xe){if(xe.size===1/0)return 0;var Ce=Tn(xe),st=x(xe),gt=Ce?1:0;return xe.__iterate(st?Ce?function(Ht,Hn){gt=31*gt+Rr(Cn(Ht),Cn(Hn))|0}:function(Ht,Hn){gt=gt+Rr(Cn(Ht),Cn(Hn))|0}:Ce?function(Ht){gt=31*gt+Cn(Ht)|0}:function(Ht){gt=gt+Cn(Ht)|0}),yi(xe.size,gt)}function yi(xe,Ce){return Ce=ur(Ce,3432918353),Ce=ur(Ce<<15|Ce>>>-15,461845907),Ce=ur(Ce<<13|Ce>>>-13,5),Ce=(Ce+3864292196|0)^xe,Ce=ur(Ce^Ce>>>16,2246822507),Ce=ur(Ce^Ce>>>13,3266489909),Ce=on(Ce^Ce>>>16),Ce}function Rr(xe,Ce){return xe^Ce+2654435769+(xe<<6)+(xe>>2)|0}function si(xe,Ce){var st=function(gt){xe.prototype[gt]=Ce[gt]};return Object.keys(Ce).forEach(st),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(Ce).forEach(st),xe}E.Iterator=I,si(E,{toArray:function(){ea(this.size);var Ce=new Array(this.size||0),st=x(this),gt=0;return this.__iterate(function(Ht,Hn){Ce[gt++]=st?[Hn,Ht]:Ht}),Ce},toIndexedSeq:function(){return new we(this)},toJS:function(){return Hr(this)},toKeyedSeq:function(){return new De(this,!0)},toMap:function(){return Qi(this.toKeyedSeq())},toObject:wr,toOrderedMap:function(){return yr(this.toKeyedSeq())},toOrderedSet:function(){return Xa(x(this)?this.valueSeq():this)},toSet:function(){return et(x(this)?this.valueSeq():this)},toSetSeq:function(){return new Ke(this)},toSeq:function(){return g(this)?this.toIndexedSeq():x(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return mt(x(this)?this.valueSeq():this)},toList:function(){return Xt(x(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(Ce,st){return this.size===0?Ce+st:Ce+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+st},concat:function(){for(var Ce=[],st=arguments.length;st--;)Ce[st]=arguments[st];return An(this,xt(this,Ce))},includes:function(Ce){return this.some(function(st){return Yr(st,Ce)})},entries:function(){return this.__iterator(R)},every:function(Ce,st){ea(this.size);var gt=!0;return this.__iterate(function(Ht,Hn,fr){if(!Ce.call(st,Ht,Hn,fr))return gt=!1,!1}),gt},filter:function(Ce,st){return An(this,ye(this,Ce,st,!0))},partition:function(Ce,st){return qe(this,Ce,st)},find:function(Ce,st,gt){var Ht=this.findEntry(Ce,st);return Ht?Ht[1]:gt},forEach:function(Ce,st){return ea(this.size),this.__iterate(st?Ce.bind(st):Ce)},join:function(Ce){ea(this.size),Ce=Ce!==void 0?""+Ce:",";var st="",gt=!0;return this.__iterate(function(Ht){gt?gt=!1:st+=Ce,st+=Ht!=null?Ht.toString():""}),st},keys:function(){return this.__iterator(d)},map:function(Ce,st){return An(this,We(this,Ce,st))},reduce:function(Ce,st,gt){return _n(this,Ce,st,gt,arguments.length<2,!1)},reduceRight:function(Ce,st,gt){return _n(this,Ce,st,gt,arguments.length<2,!0)},reverse:function(){return An(this,Je(this,!0))},slice:function(Ce,st){return An(this,Pt(this,Ce,st,!0))},some:function(Ce,st){ea(this.size);var gt=!1;return this.__iterate(function(Ht,Hn,fr){if(Ce.call(st,Ht,Hn,fr))return gt=!0,!1}),gt},sort:function(Ce){return An(this,On(this,Ce))},values:function(){return this.__iterator(O)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(Ce,st){return ie(Ce?this.toSeq().filter(Ce,st):this)},countBy:function(Ce,st){return Qe(this,Ce,st)},equals:function(Ce){return Jr(this,Ce)},entrySeq:function(){var Ce=this;if(Ce._cache)return new ge(Ce._cache);var st=Ce.toSeq().map(Ln).toIndexedSeq();return st.fromEntrySeq=function(){return Ce.toSeq()},st},filterNot:function(Ce,st){return this.filter(_r(Ce),st)},findEntry:function(Ce,st,gt){var Ht=gt;return this.__iterate(function(Hn,fr,Zr){if(Ce.call(st,Hn,fr,Zr))return Ht=[fr,Hn],!1}),Ht},findKey:function(Ce,st){var gt=this.findEntry(Ce,st);return gt&>[0]},findLast:function(Ce,st,gt){return this.toKeyedSeq().reverse().find(Ce,st,gt)},findLastEntry:function(Ce,st,gt){return this.toKeyedSeq().reverse().findEntry(Ce,st,gt)},findLastKey:function(Ce,st){return this.toKeyedSeq().reverse().findKey(Ce,st)},first:function(Ce){return this.find(je,null,Ce)},flatMap:function(Ce,st){return An(this,qt(this,Ce,st))},flatten:function(Ce){return An(this,_t(this,Ce,!0))},fromEntrySeq:function(){return new be(this)},get:function(Ce,st){return this.find(function(gt,Ht){return Yr(Ht,Ce)},void 0,st)},getIn:jn,groupBy:function(Ce,st){return ze(this,Ce,st)},has:function(Ce){return this.get(Ce,T)!==T},hasIn:dr,isSubset:function(Ce){return Ce=typeof Ce.includes=="function"?Ce:E(Ce),this.every(function(st){return Ce.includes(st)})},isSuperset:function(Ce){return Ce=typeof Ce.isSubset=="function"?Ce:E(Ce),Ce.isSubset(this)},keyOf:function(Ce){return this.findKey(function(st){return Yr(st,Ce)})},keySeq:function(){return this.toSeq().map(vn).toIndexedSeq()},last:function(Ce){return this.toSeq().reverse().first(Ce)},lastKeyOf:function(Ce){return this.toKeyedSeq().reverse().keyOf(Ce)},max:function(Ce){return Gn(this,Ce)},maxBy:function(Ce,st){return Gn(this,st,Ce)},min:function(Ce){return Gn(this,Ce?Br(Ce):Kr)},minBy:function(Ce,st){return Gn(this,st?Br(st):Kr,Ce)},rest:function(){return this.slice(1)},skip:function(Ce){return Ce===0?this:this.slice(Math.max(0,Ce))},skipLast:function(Ce){return Ce===0?this:this.slice(0,-Math.max(0,Ce))},skipWhile:function(Ce,st){return An(this,un(this,Ce,st,!0))},skipUntil:function(Ce,st){return this.skipWhile(_r(Ce),st)},sortBy:function(Ce,st){return An(this,On(this,st,Ce))},take:function(Ce){return this.slice(0,Math.max(0,Ce))},takeLast:function(Ce){return this.slice(-Math.max(0,Ce))},takeWhile:function(Ce,st){return An(this,zt(this,Ce,st))},takeUntil:function(Ce,st){return this.takeWhile(_r(Ce),st)},update:function(Ce){return Ce(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=Ar(this))}});var Si=E.prototype;Si[p]=!0,Si[j]=Si.values,Si.toJSON=Si.toArray,Si.__toStringMapper=vr,Si.inspect=Si.toSource=function(){return this.toString()},Si.chain=Si.flatMap,Si.contains=Si.includes,si(v,{flip:function(){return An(this,pt(this))},mapEntries:function(Ce,st){var gt=this,Ht=0;return An(this,this.toSeq().map(function(Hn,fr){return Ce.call(st,[fr,Hn],Ht++,gt)}).fromEntrySeq())},mapKeys:function(Ce,st){var gt=this;return An(this,this.toSeq().flip().map(function(Ht,Hn){return Ce.call(st,Ht,Hn,gt)}).flip())}});var $i=v.prototype;$i[y]=!0,$i[j]=Si.entries,$i.toJSON=wr,$i.__toStringMapper=function(xe,Ce){return vr(Ce)+": "+vr(xe)},si(m,{toKeyedSeq:function(){return new De(this,!1)},filter:function(Ce,st){return An(this,ye(this,Ce,st,!1))},findIndex:function(Ce,st){var gt=this.findEntry(Ce,st);return gt?gt[0]:-1},indexOf:function(Ce){var st=this.keyOf(Ce);return st===void 0?-1:st},lastIndexOf:function(Ce){var st=this.lastKeyOf(Ce);return st===void 0?-1:st},reverse:function(){return An(this,Je(this,!1))},slice:function(Ce,st){return An(this,Pt(this,Ce,st,!1))},splice:function(Ce,st){var gt=arguments.length;if(st=Math.max(st||0,0),gt===0||gt===2&&!st)return this;Ce=tt(Ce,Ce<0?this.count():this.size);var Ht=this.slice(0,Ce);return An(this,gt===1?Ht:Ht.concat(Rn(arguments,2),this.slice(Ce+st)))},findLastIndex:function(Ce,st){var gt=this.findLastEntry(Ce,st);return gt?gt[0]:-1},first:function(Ce){return this.get(0,Ce)},flatten:function(Ce){return An(this,_t(this,Ce,!1))},get:function(Ce,st){return Ce=Te(this,Ce),Ce<0||this.size===1/0||this.size!==void 0&&Ce>this.size?st:this.find(function(gt,Ht){return Ht===Ce},void 0,st)},has:function(Ce){return Ce=Te(this,Ce),Ce>=0&&(this.size!==void 0?this.size===1/0||Ce<this.size:this.indexOf(Ce)!==-1)},interpose:function(Ce){return An(this,fn(this,Ce))},interleave:function(){var Ce=[this].concat(Rn(arguments)),st=Lr(this.toSeq(),Ee.of,Ce),gt=st.flatten(!0);return st.size&&(gt.size=st.size*Ce.length),An(this,gt)},keySeq:function(){return ii(0,this.size)},last:function(Ce){return this.get(-1,Ce)},skipWhile:function(Ce,st){return An(this,un(this,Ce,st,!1))},zip:function(){var Ce=[this].concat(Rn(arguments));return An(this,Lr(this,Ma,Ce))},zipAll:function(){var Ce=[this].concat(Rn(arguments));return An(this,Lr(this,Ma,Ce,!0))},zipWith:function(Ce){var st=Rn(arguments);return st[0]=this,An(this,Lr(this,Ce,st))}});var Hi=m.prototype;Hi[l]=!0,Hi[Wt]=!0,si(S,{get:function(Ce,st){return this.has(Ce)?Ce:st},includes:function(Ce){return this.has(Ce)},keySeq:function(){return this.valueSeq()}});var Oa=S.prototype;Oa.has=Si.includes,Oa.contains=Oa.includes,Oa.keys=Oa.values,si(ke,$i),si(Ee,Hi),si(_e,Oa);function Ma(){return Rn(arguments)}function Ua(xe){return Oe(xe)&&Tn(xe)}var Xa=function(xe){function Ce(st){return st==null?no():Ua(st)?st:no().withMutations(function(gt){var Ht=S(st);ea(Ht.size),Ht.forEach(function(Hn){return gt.add(Hn)})})}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.of=function(){return this(arguments)},Ce.fromKeys=function(gt){return this(v(gt).keySeq())},Ce.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ce}(et);Xa.isOrderedSet=Ua;var Na=Xa.prototype;Na[Wt]=!0,Na.zip=Hi.zip,Na.zipWith=Hi.zipWith,Na.zipAll=Hi.zipAll,Na.__empty=no,Na.__make=za;function za(xe,Ce){var st=Object.create(Na);return st.size=xe?xe.size:0,st._map=xe,st.__ownerID=Ce,st}var qa;function no(){return qa||(qa=za(Ti()))}var wo={LeftThenRight:-1,RightThenLeft:1};function go(xe){if(Dn(xe))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Mt(xe))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(xe===null||typeof xe!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Ka=function(Ce,st){var gt;go(Ce);var Ht=function(Zr){var gi=this;if(Zr instanceof Ht)return Zr;if(!(this instanceof Ht))return new Ht(Zr);if(!gt){gt=!0;var wt=Object.keys(Ce),cn=Hn._indices={};Hn._name=st,Hn._keys=wt,Hn._defaultValues=Ce;for(var rr=0;rr<wt.length;rr++){var $n=wt[rr];cn[$n]=rr,Hn[$n]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+Vs(this)+' with property "'+$n+'" since that property name is part of the Record API.'):uo(Hn,$n)}}return this.__ownerID=void 0,this._values=Xt().withMutations(function(Sr){Sr.setSize(gi._keys.length),v(Zr).forEach(function(fi,Ci){Sr.set(gi._indices[Ci],fi===gi._defaultValues[Ci]?void 0:fi)})}),this},Hn=Ht.prototype=Object.create(Ia);return Hn.constructor=Ht,st&&(Ht.displayName=st),Ht};Ka.prototype.toString=function(){for(var Ce=Vs(this)+" { ",st=this._keys,gt,Ht=0,Hn=st.length;Ht!==Hn;Ht++)gt=st[Ht],Ce+=(Ht?", ":"")+gt+": "+vr(this.get(gt));return Ce+" }"},Ka.prototype.equals=function(Ce){return this===Ce||Dn(Ce)&&Is(this).equals(Is(Ce))},Ka.prototype.hashCode=function(){return Is(this).hashCode()},Ka.prototype.has=function(Ce){return this._indices.hasOwnProperty(Ce)},Ka.prototype.get=function(Ce,st){if(!this.has(Ce))return st;var gt=this._indices[Ce],Ht=this._values.get(gt);return Ht===void 0?this._defaultValues[Ce]:Ht},Ka.prototype.set=function(Ce,st){if(this.has(Ce)){var gt=this._values.set(this._indices[Ce],st===this._defaultValues[Ce]?void 0:st);if(gt!==this._values&&!this.__ownerID)return Us(this,gt)}return this},Ka.prototype.remove=function(Ce){return this.set(Ce)},Ka.prototype.clear=function(){var Ce=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Us(this,Ce)},Ka.prototype.wasAltered=function(){return this._values.wasAltered()},Ka.prototype.toSeq=function(){return Is(this)},Ka.prototype.toJS=function(){return Hr(this)},Ka.prototype.entries=function(){return this.__iterator(R)},Ka.prototype.__iterator=function(Ce,st){return Is(this).__iterator(Ce,st)},Ka.prototype.__iterate=function(Ce,st){return Is(this).__iterate(Ce,st)},Ka.prototype.__ensureOwner=function(Ce){if(Ce===this.__ownerID)return this;var st=this._values.__ensureOwner(Ce);return Ce?Us(this,st,Ce):(this.__ownerID=Ce,this._values=st,this)},Ka.isRecord=Dn,Ka.getDescriptiveName=Vs;var Ia=Ka.prototype;Ia[Rt]=!0,Ia[se]=Ia.remove,Ia.deleteIn=Ia.removeIn=Yi,Ia.getIn=jn,Ia.hasIn=Si.hasIn,Ia.merge=ni,Ia.mergeWith=ki,Ia.mergeIn=En,Ia.mergeDeep=nt,Ia.mergeDeepWith=Tt,Ia.mergeDeepIn=Gt,Ia.setIn=Or,Ia.update=Pr,Ia.updateIn=ai,Ia.withMutations=mi,Ia.asMutable=Kn,Ia.asImmutable=Vt,Ia[j]=Ia.entries,Ia.toJSON=Ia.toObject=Si.toObject,Ia.inspect=Ia.toSource=function(){return this.toString()};function Us(xe,Ce,st){var gt=Object.create(Object.getPrototypeOf(xe));return gt._values=Ce,gt.__ownerID=st,gt}function Vs(xe){return xe.constructor.displayName||xe.constructor.name||"Record"}function Is(xe){return Zt(xe._keys.map(function(Ce){return[Ce,xe.get(Ce)]}))}function uo(xe,Ce){try{Object.defineProperty(xe,Ce,{get:function(){return this.get(Ce)},set:function(st){Ni(this.__ownerID,"Cannot set on an immutable record."),this.set(Ce,st)}})}catch{}}var Ds=function(xe){function Ce(st,gt){if(!(this instanceof Ce))return new Ce(st,gt);if(this._value=st,this.size=gt===void 0?1/0:Math.max(0,gt),this.size===0){if(Js)return Js;Js=this}}return xe&&(Ce.__proto__=xe),Ce.prototype=Object.create(xe&&xe.prototype),Ce.prototype.constructor=Ce,Ce.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ce.prototype.get=function(gt,Ht){return this.has(gt)?this._value:Ht},Ce.prototype.includes=function(gt){return Yr(this._value,gt)},Ce.prototype.slice=function(gt,Ht){var Hn=this.size;return yt(gt,Ht,Hn)?this:new Ce(this._value,Ze(Ht,Hn)-tt(gt,Hn))},Ce.prototype.reverse=function(){return this},Ce.prototype.indexOf=function(gt){return Yr(this._value,gt)?0:-1},Ce.prototype.lastIndexOf=function(gt){return Yr(this._value,gt)?this.size:-1},Ce.prototype.__iterate=function(gt,Ht){for(var Hn=this.size,fr=0;fr!==Hn&>(this._value,Ht?Hn-++fr:fr++,this)!==!1;);return fr},Ce.prototype.__iterator=function(gt,Ht){var Hn=this,fr=this.size,Zr=0;return new I(function(){return Zr===fr?$():U(gt,Ht?fr-++Zr:Zr++,Hn._value)})},Ce.prototype.equals=function(gt){return gt instanceof Ce?Yr(this._value,gt._value):Jr(this,gt)},Ce}(Ee),Js;function eo(xe,Ce){return uu([],Ce||pa,xe,"",Ce&&Ce.length>2?[]:void 0,{"":xe})}function uu(xe,Ce,st,gt,Ht,Hn){if(typeof st!="string"&&!Mt(st)&&(Z(st)||ee(st)||jt(st))){if(~xe.indexOf(st))throw new TypeError("Cannot convert circular structure to Immutable");xe.push(st),Ht&>!==""&&Ht.push(gt);var fr=Ce.call(Hn,gt,me(st).map(function(Zr,gi){return uu(xe,Ce,Zr,gi,Ht,st)}),Ht&&Ht.slice());return xe.pop(),Ht&&Ht.pop(),fr}return st}function pa(xe,Ce){return g(Ce)?Ce.toList():x(Ce)?Ce.toMap():Ce.toSet()}var na="5.1.4",Ui=E},49579:(Ge,w)=>{"use strict";var u;function l(x,f){var p=document.createElement("div"),h=document.createTextNode(x);return p.appendChild(h),p.style.fontFamily=f.font,p.style.fontSize=f.fontSize,p.style.fontWeight=f.fontWeight,p.style.position="absolute",p.style.visibility="hidden",p.style.left="-999px",p.style.top="-999px",p.style.width=f.width,p.style.height="auto",document.body.appendChild(p),p}function g(x){x.parentNode.removeChild(x)}var y={};u={value:!0},w.A=function(x,f){f===void 0&&(f={});var p=JSON.stringify({text:x,options:f});if(y[p])return y[p];f.font=f.font||"Times",f.fontSize=f.fontSize||"16px",f.fontWeight=f.fontWeight||"normal",f.width=f.width||"auto";var h=l(x,f),E={width:h.offsetWidth,height:h.offsetHeight};return g(h),y[p]=E,E}},49785:(Ge,w,u)=>{"use strict";u.d(w,{FH:()=>X,Op:()=>Q,as:()=>ue,jz:()=>We,mN:()=>Je,xI:()=>ie,xW:()=>z});var l=u(96540),g=ye=>ye.type==="checkbox",y=ye=>ye instanceof Date,x=ye=>ye==null;const f=ye=>typeof ye=="object";var p=ye=>!x(ye)&&!Array.isArray(ye)&&f(ye)&&!y(ye),h=ye=>p(ye)&&ye.target?g(ye.target)?ye.target.checked:ye.target.value:ye,E=ye=>ye.substring(0,ye.search(/\.\d+(\.|$)/))||ye,v=(ye,Qe)=>ye.has(E(Qe)),m=ye=>{const Qe=ye.constructor&&ye.constructor.prototype;return p(Qe)&&Qe.hasOwnProperty("isPrototypeOf")},S=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function d(ye){let Qe;const ze=Array.isArray(ye),qe=typeof FileList<"u"?ye instanceof FileList:!1;if(ye instanceof Date)Qe=new Date(ye);else if(!(S&&(ye instanceof Blob||qe))&&(ze||p(ye)))if(Qe=ze?[]:Object.create(Object.getPrototypeOf(ye)),!ze&&!m(ye))Qe=ye;else for(const Pt in ye)ye.hasOwnProperty(Pt)&&(Qe[Pt]=d(ye[Pt]));else return ye;return Qe}var O=ye=>/^\w*$/.test(ye),R=ye=>ye===void 0,C=ye=>Array.isArray(ye)?ye.filter(Boolean):[],L=ye=>C(ye.replace(/["|']|\]/g,"").split(/\.|\[/)),j=(ye,Qe,ze)=>{if(!Qe||!p(ye))return ze;const qe=(O(Qe)?[Qe]:L(Qe)).reduce((Pt,zt)=>x(Pt)?Pt:Pt[zt],ye);return R(qe)||qe===ye?R(ye[Qe])?ze:ye[Qe]:qe},I=ye=>typeof ye=="boolean",U=(ye,Qe,ze)=>{let qe=-1;const Pt=O(Qe)?[Qe]:L(Qe),zt=Pt.length,un=zt-1;for(;++qe<zt;){const hn=Pt[qe];let xt=ze;if(qe!==un){const _t=ye[hn];xt=p(_t)||Array.isArray(_t)?_t:isNaN(+Pt[qe+1])?{}:[]}if(hn==="__proto__"||hn==="constructor"||hn==="prototype")return;ye[hn]=xt,ye=ye[hn]}};const $={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ee={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},re={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Se=l.createContext(null);Se.displayName="HookFormContext";const z=()=>l.useContext(Se),Q=ye=>{const{children:Qe,...ze}=ye;return l.createElement(Se.Provider,{value:ze},Qe)};var ce=(ye,Qe,ze,qe=!0)=>{const Pt={defaultValues:Qe._defaultValues};for(const zt in ye)Object.defineProperty(Pt,zt,{get:()=>{const un=zt;return Qe._proxyFormState[un]!==ee.all&&(Qe._proxyFormState[un]=!qe||ee.all),ze&&(ze[un]=!0),ye[un]}});return Pt};const se=typeof window<"u"?l.useLayoutEffect:l.useEffect;function q(ye){const Qe=z(),{control:ze=Qe.control,disabled:qe,name:Pt,exact:zt}=ye||{},[un,hn]=l.useState(ze._formState),xt=l.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return se(()=>ze._subscribe({name:Pt,formState:xt.current,exact:zt,callback:_t=>{!qe&&hn({...ze._formState,..._t})}}),[Pt,qe,zt]),l.useEffect(()=>{xt.current.isValid&&ze._setValid(!0)},[ze]),l.useMemo(()=>ce(un,ze,xt.current,!1),[un,ze])}var te=ye=>typeof ye=="string",A=(ye,Qe,ze,qe,Pt)=>te(ye)?(qe&&Qe.watch.add(ye),j(ze,ye,Pt)):Array.isArray(ye)?ye.map(zt=>(qe&&Qe.watch.add(zt),j(ze,zt))):(qe&&(Qe.watchAll=!0),ze),T=ye=>x(ye)||!f(ye);function B(ye,Qe,ze=new WeakSet){if(T(ye)||T(Qe))return ye===Qe;if(y(ye)&&y(Qe))return ye.getTime()===Qe.getTime();const qe=Object.keys(ye),Pt=Object.keys(Qe);if(qe.length!==Pt.length)return!1;if(ze.has(ye)||ze.has(Qe))return!0;ze.add(ye),ze.add(Qe);for(const zt of qe){const un=ye[zt];if(!Pt.includes(zt))return!1;if(zt!=="ref"){const hn=Qe[zt];if(y(un)&&y(hn)||p(un)&&p(hn)||Array.isArray(un)&&Array.isArray(hn)?!B(un,hn,ze):un!==hn)return!1}}return!0}function X(ye){const Qe=z(),{control:ze=Qe.control,name:qe,defaultValue:Pt,disabled:zt,exact:un,compute:hn}=ye||{},xt=l.useRef(Pt),_t=l.useRef(hn),qt=l.useRef(void 0);_t.current=hn;const fn=l.useMemo(()=>ze._getWatch(qe,xt.current),[ze,qe]),[On,Gn]=l.useState(_t.current?_t.current(fn):fn);return se(()=>ze._subscribe({name:qe,formState:{values:!0},exact:un,callback:Bn=>{if(!zt){const Lr=A(qe,ze._names,Bn.values||ze._formValues,!1,xt.current);if(_t.current){const An=_t.current(Lr);B(An,qt.current)||(Gn(An),qt.current=An)}else Gn(Lr)}}}),[ze,zt,qe,un]),l.useEffect(()=>ze._removeUnmounted()),On}function ue(ye){const Qe=z(),{name:ze,disabled:qe,control:Pt=Qe.control,shouldUnregister:zt,defaultValue:un}=ye,hn=v(Pt._names.array,ze),xt=l.useMemo(()=>j(Pt._formValues,ze,j(Pt._defaultValues,ze,un)),[Pt,ze,un]),_t=X({control:Pt,name:ze,defaultValue:xt,exact:!0}),qt=q({control:Pt,name:ze,exact:!0}),fn=l.useRef(ye),On=l.useRef(Pt.register(ze,{...ye.rules,value:_t,...I(ye.disabled)?{disabled:ye.disabled}:{}}));fn.current=ye;const Gn=l.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!j(qt.errors,ze)},isDirty:{enumerable:!0,get:()=>!!j(qt.dirtyFields,ze)},isTouched:{enumerable:!0,get:()=>!!j(qt.touchedFields,ze)},isValidating:{enumerable:!0,get:()=>!!j(qt.validatingFields,ze)},error:{enumerable:!0,get:()=>j(qt.errors,ze)}}),[qt,ze]),Bn=l.useCallback(cr=>On.current.onChange({target:{value:h(cr),name:ze},type:$.CHANGE}),[ze]),Lr=l.useCallback(()=>On.current.onBlur({target:{value:j(Pt._formValues,ze),name:ze},type:$.BLUR}),[ze,Pt._formValues]),An=l.useCallback(cr=>{const mr=j(Pt._fields,ze);mr&&cr&&(mr._f.ref={focus:()=>cr.focus&&cr.focus(),select:()=>cr.select&&cr.select(),setCustomValidity:hr=>cr.setCustomValidity(hr),reportValidity:()=>cr.reportValidity()})},[Pt._fields,ze]),Un=l.useMemo(()=>({name:ze,value:_t,...I(qe)||qt.disabled?{disabled:qt.disabled||qe}:{},onChange:Bn,onBlur:Lr,ref:An}),[ze,qe,qt.disabled,Bn,Lr,An,_t]);return l.useEffect(()=>{const cr=Pt._options.shouldUnregister||zt;Pt.register(ze,{...fn.current.rules,...I(fn.current.disabled)?{disabled:fn.current.disabled}:{}});const mr=(hr,ar)=>{const Cr=j(Pt._fields,hr);Cr&&Cr._f&&(Cr._f.mount=ar)};if(mr(ze,!0),cr){const hr=d(j(Pt._options.defaultValues,ze));U(Pt._defaultValues,ze,hr),R(j(Pt._formValues,ze))&&U(Pt._formValues,ze,hr)}return!hn&&Pt.register(ze),()=>{(hn?cr&&!Pt._state.action:cr)?Pt.unregister(ze):mr(ze,!1)}},[ze,Pt,hn,zt]),l.useEffect(()=>{Pt._setDisabledField({disabled:qe,name:ze})},[qe,ze,Pt]),l.useMemo(()=>({field:Un,formState:qt,fieldState:Gn}),[Un,qt,Gn])}const ie=ye=>ye.render(ue(ye)),Te=ye=>{const Qe={};for(const ze of Object.keys(ye))if(f(ye[ze])&&ye[ze]!==null){const qe=Te(ye[ze]);for(const Pt of Object.keys(qe))Qe[`${ze}.${Pt}`]=qe[Pt]}else Qe[ze]=ye[ze];return Qe},je="post";function yt(ye){const Qe=z(),[ze,qe]=React.useState(!1),{control:Pt=Qe.control,onSubmit:zt,children:un,action:hn,method:xt=je,headers:_t,encType:qt,onError:fn,render:On,onSuccess:Gn,validateStatus:Bn,...Lr}=ye,An=async Un=>{let cr=!1,mr="";await Pt.handleSubmit(async hr=>{const ar=new FormData;let Cr="";try{Cr=JSON.stringify(hr)}catch{}const Yr=Te(Pt._formValues);for(const Xr in Yr)ar.append(Xr,Yr[Xr]);if(zt&&await zt({data:hr,event:Un,method:xt,formData:ar,formDataJson:Cr}),hn)try{const Xr=[_t&&_t["Content-Type"],qt].some(ki=>ki&&ki.includes("json")),ni=await fetch(String(hn),{method:xt,headers:{..._t,...qt&&qt!=="multipart/form-data"?{"Content-Type":qt}:{}},body:Xr?Cr:ar});ni&&(Bn?!Bn(ni.status):ni.status<200||ni.status>=300)?(cr=!0,fn&&fn({response:ni}),mr=String(ni.status)):Gn&&Gn({response:ni})}catch(Xr){cr=!0,fn&&fn({error:Xr})}})(Un),cr&&ye.control&&(ye.control._subjects.state.next({isSubmitSuccessful:!1}),ye.control.setError("root.server",{type:mr}))};return React.useEffect(()=>{qe(!0)},[]),On?React.createElement(React.Fragment,null,On({submit:An})):React.createElement("form",{noValidate:ze,action:hn,method:xt,encType:qt,onSubmit:An,...Lr},un)}var tt=(ye,Qe,ze,qe,Pt)=>Qe?{...ze[ye],types:{...ze[ye]&&ze[ye].types?ze[ye].types:{},[qe]:Pt||!0}}:{},Ze=ye=>Array.isArray(ye)?ye:[ye],Ne=()=>{let ye=[];return{get observers(){return ye},next:Pt=>{for(const zt of ye)zt.next&&zt.next(Pt)},subscribe:Pt=>(ye.push(Pt),{unsubscribe:()=>{ye=ye.filter(zt=>zt!==Pt)}}),unsubscribe:()=>{ye=[]}}},it=ye=>p(ye)&&!Object.keys(ye).length,Rt=ye=>ye.type==="file",Dn=ye=>typeof ye=="function",Mt=ye=>{if(!S)return!1;const Qe=ye?ye.ownerDocument:0;return ye instanceof(Qe&&Qe.defaultView?Qe.defaultView.HTMLElement:HTMLElement)},Wt=ye=>ye.type==="select-multiple",Tn=ye=>ye.type==="radio",bn=ye=>Tn(ye)||g(ye),$t=ye=>Mt(ye)&&ye.isConnected;function Ct(ye,Qe){const ze=Qe.slice(0,-1).length;let qe=0;for(;qe<ze;)ye=R(ye)?qe++:ye[Qe[qe++]];return ye}function Z(ye){for(const Qe in ye)if(ye.hasOwnProperty(Qe)&&!R(ye[Qe]))return!1;return!0}function me(ye,Qe){const ze=Array.isArray(Qe)?Qe:O(Qe)?[Qe]:L(Qe),qe=ze.length===1?ye:Ct(ye,ze),Pt=ze.length-1,zt=ze[Pt];return qe&&delete qe[zt],Pt!==0&&(p(qe)&&it(qe)||Array.isArray(qe)&&Z(qe))&&me(ye,ze.slice(0,-1)),ye}var ke=ye=>{for(const Qe in ye)if(Dn(ye[Qe]))return!0;return!1};function Ee(ye,Qe={}){const ze=Array.isArray(ye);if(p(ye)||ze)for(const qe in ye)Array.isArray(ye[qe])||p(ye[qe])&&!ke(ye[qe])?(Qe[qe]=Array.isArray(ye[qe])?[]:{},Ee(ye[qe],Qe[qe])):x(ye[qe])||(Qe[qe]=!0);return Qe}function _e(ye,Qe,ze){const qe=Array.isArray(ye);if(p(ye)||qe)for(const Pt in ye)Array.isArray(ye[Pt])||p(ye[Pt])&&!ke(ye[Pt])?R(Qe)||T(ze[Pt])?ze[Pt]=Array.isArray(ye[Pt])?Ee(ye[Pt],[]):{...Ee(ye[Pt])}:_e(ye[Pt],x(Qe)?{}:Qe[Pt],ze[Pt]):ze[Pt]=!B(ye[Pt],Qe[Pt]);return ze}var ge=(ye,Qe)=>_e(ye,Qe,Ee(Qe));const Me={value:!1,isValid:!1},lt={value:!0,isValid:!0};var Ft=ye=>{if(Array.isArray(ye)){if(ye.length>1){const Qe=ye.filter(ze=>ze&&ze.checked&&!ze.disabled).map(ze=>ze.value);return{value:Qe,isValid:!!Qe.length}}return ye[0].checked&&!ye[0].disabled?ye[0].attributes&&!R(ye[0].attributes.value)?R(ye[0].value)||ye[0].value===""?lt:{value:ye[0].value,isValid:!0}:lt:Me}return Me},Et=(ye,{valueAsNumber:Qe,valueAsDate:ze,setValueAs:qe})=>R(ye)?ye:Qe?ye===""?NaN:ye&&+ye:ze&&te(ye)?new Date(ye):qe?qe(ye):ye;const Zt={isValid:!1,value:null};var nn=ye=>Array.isArray(ye)?ye.reduce((Qe,ze)=>ze&&ze.checked&&!ze.disabled?{isValid:!0,value:ze.value}:Qe,Zt):Zt;function Pn(ye){const Qe=ye.ref;return Rt(Qe)?Qe.files:Tn(Qe)?nn(ye.refs).value:Wt(Qe)?[...Qe.selectedOptions].map(({value:ze})=>ze):g(Qe)?Ft(ye.refs).value:Et(R(Qe.value)?ye.ref.value:Qe.value,ye)}var rn=(ye,Qe,ze,qe)=>{const Pt={};for(const zt of ye){const un=j(Qe,zt);un&&U(Pt,zt,un._f)}return{criteriaMode:ze,names:[...ye],fields:Pt,shouldUseNativeValidation:qe}},Vt=ye=>ye instanceof RegExp,Kn=ye=>R(ye)?ye:Vt(ye)?ye.source:p(ye)?Vt(ye.value)?ye.value.source:ye.value:ye,ur=ye=>({isOnSubmit:!ye||ye===ee.onSubmit,isOnBlur:ye===ee.onBlur,isOnChange:ye===ee.onChange,isOnAll:ye===ee.all,isOnTouch:ye===ee.onTouched});const on="AsyncFunction";var tr=ye=>!!ye&&!!ye.validate&&!!(Dn(ye.validate)&&ye.validate.constructor.name===on||p(ye.validate)&&Object.values(ye.validate).find(Qe=>Qe.constructor.name===on)),Cn=ye=>ye.mount&&(ye.required||ye.min||ye.max||ye.maxLength||ye.minLength||ye.pattern||ye.validate),Wn=(ye,Qe,ze)=>!ze&&(Qe.watchAll||Qe.watch.has(ye)||[...Qe.watch].some(qe=>ye.startsWith(qe)&&/^\.\w+/.test(ye.slice(qe.length))));const er=(ye,Qe,ze,qe)=>{for(const Pt of ze||Object.keys(ye)){const zt=j(ye,Pt);if(zt){const{_f:un,...hn}=zt;if(un){if(un.refs&&un.refs[0]&&Qe(un.refs[0],Pt)&&!qe)return!0;if(un.ref&&Qe(un.ref,un.name)&&!qe)return!0;if(er(hn,Qe))break}else if(p(hn)&&er(hn,Qe))break}}};function Fn(ye,Qe,ze){const qe=j(ye,ze);if(qe||O(ze))return{error:qe,name:ze};const Pt=ze.split(".");for(;Pt.length;){const zt=Pt.join("."),un=j(Qe,zt),hn=j(ye,zt);if(un&&!Array.isArray(un)&&ze!==zt)return{name:ze};if(hn&&hn.type)return{name:zt,error:hn};if(hn&&hn.root&&hn.root.type)return{name:`${zt}.root`,error:hn.root};Pt.pop()}return{name:ze}}var en=(ye,Qe,ze,qe)=>{ze(ye);const{name:Pt,...zt}=ye;return it(zt)||Object.keys(zt).length>=Object.keys(Qe).length||Object.keys(zt).find(un=>Qe[un]===(!qe||ee.all))},gn=(ye,Qe,ze)=>!ye||!Qe||ye===Qe||Ze(ye).some(qe=>qe&&(ze?qe===Qe:qe.startsWith(Qe)||Qe.startsWith(qe))),kn=(ye,Qe,ze,qe,Pt)=>Pt.isOnAll?!1:!ze&&Pt.isOnTouch?!(Qe||ye):(ze?qe.isOnBlur:Pt.isOnBlur)?!ye:(ze?qe.isOnChange:Pt.isOnChange)?ye:!0,Jn=(ye,Qe)=>!C(j(ye,Qe)).length&&me(ye,Qe),Nn=(ye,Qe,ze)=>{const qe=Ze(j(ye,ze));return U(qe,"root",Qe[ze]),U(ye,ze,qe),ye},kr=ye=>te(ye);function bt(ye,Qe,ze="validate"){if(kr(ye)||Array.isArray(ye)&&ye.every(kr)||I(ye)&&!ye)return{type:ze,message:kr(ye)?ye:"",ref:Qe}}var ne=ye=>p(ye)&&!Vt(ye)?ye:{value:ye,message:""},fe=async(ye,Qe,ze,qe,Pt,zt)=>{const{ref:un,refs:hn,required:xt,maxLength:_t,minLength:qt,min:fn,max:On,pattern:Gn,validate:Bn,name:Lr,valueAsNumber:An,mount:Un}=ye._f,cr=j(ze,Lr);if(!Un||Qe.has(Lr))return{};const mr=hn?hn[0]:un,hr=Ur=>{Pt&&mr.reportValidity&&(mr.setCustomValidity(I(Ur)?"":Ur||""),mr.reportValidity())},ar={},Cr=Tn(un),Yr=g(un),Xr=Cr||Yr,ni=(An||Rt(un))&&R(un.value)&&R(cr)||Mt(un)&&un.value===""||cr===""||Array.isArray(cr)&&!cr.length,ki=tt.bind(null,Lr,qe,ar),zr=(Ur,jt,sn,Rn=re.maxLength,H=re.minLength)=>{const Be=Ur?jt:sn;ar[Lr]={type:Ur?Rn:H,message:Be,ref:un,...ki(Ur?Rn:H,Be)}};if(zt?!Array.isArray(cr)||!cr.length:xt&&(!Xr&&(ni||x(cr))||I(cr)&&!cr||Yr&&!Ft(hn).isValid||Cr&&!nn(hn).isValid)){const{value:Ur,message:jt}=kr(xt)?{value:!!xt,message:xt}:ne(xt);if(Ur&&(ar[Lr]={type:re.required,message:jt,ref:mr,...ki(re.required,jt)},!qe))return hr(jt),ar}if(!ni&&(!x(fn)||!x(On))){let Ur,jt;const sn=ne(On),Rn=ne(fn);if(!x(cr)&&!isNaN(cr)){const H=un.valueAsNumber||cr&&+cr;x(sn.value)||(Ur=H>sn.value),x(Rn.value)||(jt=H<Rn.value)}else{const H=un.valueAsDate||new Date(cr),Be=Oi=>new Date(new Date().toDateString()+" "+Oi),wn=un.type=="time",bi=un.type=="week";te(sn.value)&&cr&&(Ur=wn?Be(cr)>Be(sn.value):bi?cr>sn.value:H>new Date(sn.value)),te(Rn.value)&&cr&&(jt=wn?Be(cr)<Be(Rn.value):bi?cr<Rn.value:H<new Date(Rn.value))}if((Ur||jt)&&(zr(!!Ur,sn.message,Rn.message,re.max,re.min),!qe))return hr(ar[Lr].message),ar}if((_t||qt)&&!ni&&(te(cr)||zt&&Array.isArray(cr))){const Ur=ne(_t),jt=ne(qt),sn=!x(Ur.value)&&cr.length>+Ur.value,Rn=!x(jt.value)&&cr.length<+jt.value;if((sn||Rn)&&(zr(sn,Ur.message,jt.message),!qe))return hr(ar[Lr].message),ar}if(Gn&&!ni&&te(cr)){const{value:Ur,message:jt}=ne(Gn);if(Vt(Ur)&&!cr.match(Ur)&&(ar[Lr]={type:re.pattern,message:jt,ref:un,...ki(re.pattern,jt)},!qe))return hr(jt),ar}if(Bn){if(Dn(Bn)){const Ur=await Bn(cr,ze),jt=bt(Ur,mr);if(jt&&(ar[Lr]={...jt,...ki(re.validate,jt.message)},!qe))return hr(jt.message),ar}else if(p(Bn)){let Ur={};for(const jt in Bn){if(!it(Ur)&&!qe)break;const sn=bt(await Bn[jt](cr,ze),mr,jt);sn&&(Ur={...sn,...ki(jt,sn.message)},hr(sn.message),qe&&(ar[Lr]=Ur))}if(!it(Ur)&&(ar[Lr]={ref:mr,...Ur},!qe))return ar}}return hr(!0),ar};const K={mode:ee.onSubmit,reValidateMode:ee.onChange,shouldFocusError:!0};function he(ye={}){let Qe={...K,...ye},ze={submitCount:0,isDirty:!1,isReady:!1,isLoading:Dn(Qe.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:Qe.errors||{},disabled:Qe.disabled||!1},qe={},Pt=p(Qe.defaultValues)||p(Qe.values)?d(Qe.defaultValues||Qe.values)||{}:{},zt=Qe.shouldUnregister?{}:d(Pt),un={action:!1,mount:!1,watch:!1},hn={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},xt,_t=0;const qt={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let fn={...qt};const On={array:Ne(),state:Ne()},Gn=Qe.criteriaMode===ee.all,Bn=ir=>xr=>{clearTimeout(_t),_t=setTimeout(ir,xr)},Lr=async ir=>{if(!Qe.disabled&&(qt.isValid||fn.isValid||ir)){const xr=Qe.resolver?it((await Yr()).errors):await ni(qe,!0);xr!==ze.isValid&&On.state.next({isValid:xr})}},An=(ir,xr)=>{!Qe.disabled&&(qt.isValidating||qt.validatingFields||fn.isValidating||fn.validatingFields)&&((ir||Array.from(hn.mount)).forEach(di=>{di&&(xr?U(ze.validatingFields,di,xr):me(ze.validatingFields,di))}),On.state.next({validatingFields:ze.validatingFields,isValidating:!it(ze.validatingFields)}))},Un=(ir,xr=[],di,ft,zn=!0,Zn=!0)=>{if(ft&&di&&!Qe.disabled){if(un.action=!0,Zn&&Array.isArray(j(qe,ir))){const wi=di(j(qe,ir),ft.argA,ft.argB);zn&&U(qe,ir,wi)}if(Zn&&Array.isArray(j(ze.errors,ir))){const wi=di(j(ze.errors,ir),ft.argA,ft.argB);zn&&U(ze.errors,ir,wi),Jn(ze.errors,ir)}if((qt.touchedFields||fn.touchedFields)&&Zn&&Array.isArray(j(ze.touchedFields,ir))){const wi=di(j(ze.touchedFields,ir),ft.argA,ft.argB);zn&&U(ze.touchedFields,ir,wi)}(qt.dirtyFields||fn.dirtyFields)&&(ze.dirtyFields=ge(Pt,zt)),On.state.next({name:ir,isDirty:zr(ir,xr),dirtyFields:ze.dirtyFields,errors:ze.errors,isValid:ze.isValid})}else U(zt,ir,xr)},cr=(ir,xr)=>{U(ze.errors,ir,xr),On.state.next({errors:ze.errors})},mr=ir=>{ze.errors=ir,On.state.next({errors:ze.errors,isValid:!1})},hr=(ir,xr,di,ft)=>{const zn=j(qe,ir);if(zn){const Zn=j(zt,ir,R(di)?j(Pt,ir):di);R(Zn)||ft&&ft.defaultChecked||xr?U(zt,ir,xr?Zn:Pn(zn._f)):sn(ir,Zn),un.mount&&Lr()}},ar=(ir,xr,di,ft,zn)=>{let Zn=!1,wi=!1;const Ea={name:ir};if(!Qe.disabled){if(!di||ft){(qt.isDirty||fn.isDirty)&&(wi=ze.isDirty,ze.isDirty=Ea.isDirty=zr(),Zn=wi!==Ea.isDirty);const wa=B(j(Pt,ir),xr);wi=!!j(ze.dirtyFields,ir),wa?me(ze.dirtyFields,ir):U(ze.dirtyFields,ir,!0),Ea.dirtyFields=ze.dirtyFields,Zn=Zn||(qt.dirtyFields||fn.dirtyFields)&&wi!==!wa}if(di){const wa=j(ze.touchedFields,ir);wa||(U(ze.touchedFields,ir,di),Ea.touchedFields=ze.touchedFields,Zn=Zn||(qt.touchedFields||fn.touchedFields)&&wa!==di)}Zn&&zn&&On.state.next(Ea)}return Zn?Ea:{}},Cr=(ir,xr,di,ft)=>{const zn=j(ze.errors,ir),Zn=(qt.isValid||fn.isValid)&&I(xr)&&ze.isValid!==xr;if(Qe.delayError&&di?(xt=Bn(()=>cr(ir,di)),xt(Qe.delayError)):(clearTimeout(_t),xt=null,di?U(ze.errors,ir,di):me(ze.errors,ir)),(di?!B(zn,di):zn)||!it(ft)||Zn){const wi={...ft,...Zn&&I(xr)?{isValid:xr}:{},errors:ze.errors,name:ir};ze={...ze,...wi},On.state.next(wi)}},Yr=async ir=>{An(ir,!0);const xr=await Qe.resolver(zt,Qe.context,rn(ir||hn.mount,qe,Qe.criteriaMode,Qe.shouldUseNativeValidation));return An(ir),xr},Xr=async ir=>{const{errors:xr}=await Yr(ir);if(ir)for(const di of ir){const ft=j(xr,di);ft?U(ze.errors,di,ft):me(ze.errors,di)}else ze.errors=xr;return xr},ni=async(ir,xr,di={valid:!0})=>{for(const ft in ir){const zn=ir[ft];if(zn){const{_f:Zn,...wi}=zn;if(Zn){const Ea=hn.array.has(Zn.name),wa=zn._f&&tr(zn._f);wa&&qt.validatingFields&&An([ft],!0);const ji=await fe(zn,hn.disabled,zt,Gn,Qe.shouldUseNativeValidation&&!xr,Ea);if(wa&&qt.validatingFields&&An([ft]),ji[Zn.name]&&(di.valid=!1,xr))break;!xr&&(j(ji,Zn.name)?Ea?Nn(ze.errors,ji,Zn.name):U(ze.errors,Zn.name,ji[Zn.name]):me(ze.errors,Zn.name))}!it(wi)&&await ni(wi,xr,di)}}return di.valid},ki=()=>{for(const ir of hn.unMount){const xr=j(qe,ir);xr&&(xr._f.refs?xr._f.refs.every(di=>!$t(di)):!$t(xr._f.ref))&&Gt(ir)}hn.unMount=new Set},zr=(ir,xr)=>!Qe.disabled&&(ir&&xr&&U(zt,ir,xr),!B(Oi(),Pt)),Ur=(ir,xr,di)=>A(ir,hn,{...un.mount?zt:R(xr)?Pt:te(ir)?{[ir]:xr}:xr},di,xr),jt=ir=>C(j(un.mount?zt:Pt,ir,Qe.shouldUnregister?j(Pt,ir,[]):[])),sn=(ir,xr,di={})=>{const ft=j(qe,ir);let zn=xr;if(ft){const Zn=ft._f;Zn&&(!Zn.disabled&&U(zt,ir,Et(xr,Zn)),zn=Mt(Zn.ref)&&x(xr)?"":xr,Wt(Zn.ref)?[...Zn.ref.options].forEach(wi=>wi.selected=zn.includes(wi.value)):Zn.refs?g(Zn.ref)?Zn.refs.forEach(wi=>{(!wi.defaultChecked||!wi.disabled)&&(Array.isArray(zn)?wi.checked=!!zn.find(Ea=>Ea===wi.value):wi.checked=zn===wi.value||!!zn)}):Zn.refs.forEach(wi=>wi.checked=wi.value===zn):Rt(Zn.ref)?Zn.ref.value="":(Zn.ref.value=zn,Zn.ref.type||On.state.next({name:ir,values:d(zt)})))}(di.shouldDirty||di.shouldTouch)&&ar(ir,zn,di.shouldTouch,di.shouldDirty,!0),di.shouldValidate&&bi(ir)},Rn=(ir,xr,di)=>{for(const ft in xr){if(!xr.hasOwnProperty(ft))return;const zn=xr[ft],Zn=ir+"."+ft,wi=j(qe,Zn);(hn.array.has(ir)||p(zn)||wi&&!wi._f)&&!y(zn)?Rn(Zn,zn,di):sn(Zn,zn,di)}},H=(ir,xr,di={})=>{const ft=j(qe,ir),zn=hn.array.has(ir),Zn=d(xr);U(zt,ir,Zn),zn?(On.array.next({name:ir,values:d(zt)}),(qt.isDirty||qt.dirtyFields||fn.isDirty||fn.dirtyFields)&&di.shouldDirty&&On.state.next({name:ir,dirtyFields:ge(Pt,zt),isDirty:zr(ir,Zn)})):ft&&!ft._f&&!x(Zn)?Rn(ir,Zn,di):sn(ir,Zn,di),Wn(ir,hn)&&On.state.next({...ze,name:ir}),On.state.next({name:un.mount?ir:void 0,values:d(zt)})},Be=async ir=>{un.mount=!0;const xr=ir.target;let di=xr.name,ft=!0;const zn=j(qe,di),Zn=wa=>{ft=Number.isNaN(wa)||y(wa)&&isNaN(wa.getTime())||B(wa,j(zt,di,wa))},wi=ur(Qe.mode),Ea=ur(Qe.reValidateMode);if(zn){let wa,ji;const Dt=xr.type?Pn(zn._f):h(ir),Xn=ir.type===$.BLUR||ir.type===$.FOCUS_OUT,Tr=!Cn(zn._f)&&!Qe.resolver&&!j(ze.errors,di)&&!zn._f.deps||kn(Xn,j(ze.touchedFields,di),ze.isSubmitted,Ea,wi),Nr=Wn(di,hn,Xn);U(zt,di,Dt),Xn?(!xr||!xr.readOnly)&&(zn._f.onBlur&&zn._f.onBlur(ir),xt&&xt(0)):zn._f.onChange&&zn._f.onChange(ir);const ti=ar(di,Dt,Xn),_i=!it(ti)||Nr;if(!Xn&&On.state.next({name:di,type:ir.type,values:d(zt)}),Tr)return(qt.isValid||fn.isValid)&&(Qe.mode==="onBlur"?Xn&&Lr():Xn||Lr()),_i&&On.state.next({name:di,...Nr?{}:ti});if(!Xn&&Nr&&On.state.next({...ze}),Qe.resolver){const{errors:Ii}=await Yr([di]);if(Zn(Dt),ft){const ta=Fn(ze.errors,qe,di),Ji=Fn(Ii,qe,ta.name||di);wa=Ji.error,di=Ji.name,ji=it(Ii)}}else An([di],!0),wa=(await fe(zn,hn.disabled,zt,Gn,Qe.shouldUseNativeValidation))[di],An([di]),Zn(Dt),ft&&(wa?ji=!1:(qt.isValid||fn.isValid)&&(ji=await ni(qe,!0)));ft&&(zn._f.deps&&bi(zn._f.deps),Cr(di,ji,wa,ti))}},wn=(ir,xr)=>{if(j(ze.errors,xr)&&ir.focus)return ir.focus(),1},bi=async(ir,xr={})=>{let di,ft;const zn=Ze(ir);if(Qe.resolver){const Zn=await Xr(R(ir)?ir:zn);di=it(Zn),ft=ir?!zn.some(wi=>j(Zn,wi)):di}else ir?(ft=(await Promise.all(zn.map(async Zn=>{const wi=j(qe,Zn);return await ni(wi&&wi._f?{[Zn]:wi}:wi)}))).every(Boolean),!(!ft&&!ze.isValid)&&Lr()):ft=di=await ni(qe);return On.state.next({...!te(ir)||(qt.isValid||fn.isValid)&&di!==ze.isValid?{}:{name:ir},...Qe.resolver||!ir?{isValid:di}:{},errors:ze.errors}),xr.shouldFocus&&!ft&&er(qe,wn,ir?zn:hn.mount),ft},Oi=ir=>{const xr={...un.mount?zt:Pt};return R(ir)?xr:te(ir)?j(xr,ir):ir.map(di=>j(xr,di))},de=(ir,xr)=>({invalid:!!j((xr||ze).errors,ir),isDirty:!!j((xr||ze).dirtyFields,ir),error:j((xr||ze).errors,ir),isValidating:!!j(ze.validatingFields,ir),isTouched:!!j((xr||ze).touchedFields,ir)}),Ve=ir=>{ir&&Ze(ir).forEach(xr=>me(ze.errors,xr)),On.state.next({errors:ir?ze.errors:{}})},vt=(ir,xr,di)=>{const ft=(j(qe,ir,{_f:{}})._f||{}).ref,zn=j(ze.errors,ir)||{},{ref:Zn,message:wi,type:Ea,...wa}=zn;U(ze.errors,ir,{...wa,...xr,ref:ft}),On.state.next({name:ir,errors:ze.errors,isValid:!1}),di&&di.shouldFocus&&ft&&ft.focus&&ft.focus()},Qt=(ir,xr)=>Dn(ir)?On.state.subscribe({next:di=>"values"in di&&ir(Ur(void 0,xr),di)}):Ur(ir,xr,!0),nt=ir=>On.state.subscribe({next:xr=>{gn(ir.name,xr.name,ir.exact)&&en(xr,ir.formState||qt,Ni,ir.reRenderRoot)&&ir.callback({values:{...zt},...ze,...xr,defaultValues:Pt})}}).unsubscribe,Tt=ir=>(un.mount=!0,fn={...fn,...ir.formState},nt({...ir,formState:fn})),Gt=(ir,xr={})=>{for(const di of ir?Ze(ir):hn.mount)hn.mount.delete(di),hn.array.delete(di),xr.keepValue||(me(qe,di),me(zt,di)),!xr.keepError&&me(ze.errors,di),!xr.keepDirty&&me(ze.dirtyFields,di),!xr.keepTouched&&me(ze.touchedFields,di),!xr.keepIsValidating&&me(ze.validatingFields,di),!Qe.shouldUnregister&&!xr.keepDefaultValue&&me(Pt,di);On.state.next({values:d(zt)}),On.state.next({...ze,...xr.keepDirty?{isDirty:zr()}:{}}),!xr.keepIsValid&&Lr()},En=({disabled:ir,name:xr})=>{(I(ir)&&un.mount||ir||hn.disabled.has(xr))&&(ir?hn.disabled.add(xr):hn.disabled.delete(xr))},Qn=(ir,xr={})=>{let di=j(qe,ir);const ft=I(xr.disabled)||I(Qe.disabled);return U(qe,ir,{...di||{},_f:{...di&&di._f?di._f:{ref:{name:ir}},name:ir,mount:!0,...xr}}),hn.mount.add(ir),di?En({disabled:I(xr.disabled)?xr.disabled:Qe.disabled,name:ir}):hr(ir,!0,xr.value),{...ft?{disabled:xr.disabled||Qe.disabled}:{},...Qe.progressive?{required:!!xr.required,min:Kn(xr.min),max:Kn(xr.max),minLength:Kn(xr.minLength),maxLength:Kn(xr.maxLength),pattern:Kn(xr.pattern)}:{},name:ir,onChange:Be,onBlur:Be,ref:zn=>{if(zn){Qn(ir,xr),di=j(qe,ir);const Zn=R(zn.value)&&zn.querySelectorAll&&zn.querySelectorAll("input,select,textarea")[0]||zn,wi=bn(Zn),Ea=di._f.refs||[];if(wi?Ea.find(wa=>wa===Zn):Zn===di._f.ref)return;U(qe,ir,{_f:{...di._f,...wi?{refs:[...Ea.filter($t),Zn,...Array.isArray(j(Pt,ir))?[{}]:[]],ref:{type:Zn.type,name:ir}}:{ref:Zn}}}),hr(ir,!1,void 0,Zn)}else di=j(qe,ir,{}),di._f&&(di._f.mount=!1),(Qe.shouldUnregister||xr.shouldUnregister)&&!(v(hn.array,ir)&&un.action)&&hn.unMount.add(ir)}}},Or=()=>Qe.shouldFocusError&&er(qe,wn,hn.mount),Pr=ir=>{I(ir)&&(On.state.next({disabled:ir}),er(qe,(xr,di)=>{const ft=j(qe,di);ft&&(xr.disabled=ft._f.disabled||ir,Array.isArray(ft._f.refs)&&ft._f.refs.forEach(zn=>{zn.disabled=ft._f.disabled||ir}))},0,!1))},ai=(ir,xr)=>async di=>{let ft;di&&(di.preventDefault&&di.preventDefault(),di.persist&&di.persist());let zn=d(zt);if(On.state.next({isSubmitting:!0}),Qe.resolver){const{errors:Zn,values:wi}=await Yr();ze.errors=Zn,zn=d(wi)}else await ni(qe);if(hn.disabled.size)for(const Zn of hn.disabled)me(zn,Zn);if(me(ze.errors,"root"),it(ze.errors)){On.state.next({errors:{}});try{await ir(zn,di)}catch(Zn){ft=Zn}}else xr&&await xr({...ze.errors},di),Or(),setTimeout(Or);if(On.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:it(ze.errors)&&!ft,submitCount:ze.submitCount+1,errors:ze.errors}),ft)throw ft},xi=(ir,xr={})=>{j(qe,ir)&&(R(xr.defaultValue)?H(ir,d(j(Pt,ir))):(H(ir,xr.defaultValue),U(Pt,ir,d(xr.defaultValue))),xr.keepTouched||me(ze.touchedFields,ir),xr.keepDirty||(me(ze.dirtyFields,ir),ze.isDirty=xr.defaultValue?zr(ir,d(j(Pt,ir))):zr()),xr.keepError||(me(ze.errors,ir),qt.isValid&&Lr()),On.state.next({...ze}))},mi=(ir,xr={})=>{const di=ir?d(ir):Pt,ft=d(di),zn=it(ir),Zn=zn?Pt:ft;if(xr.keepDefaultValues||(Pt=di),!xr.keepValues){if(xr.keepDirtyValues){const wi=new Set([...hn.mount,...Object.keys(ge(Pt,zt))]);for(const Ea of Array.from(wi))j(ze.dirtyFields,Ea)?U(Zn,Ea,j(zt,Ea)):H(Ea,j(Zn,Ea))}else{if(S&&R(ir))for(const wi of hn.mount){const Ea=j(qe,wi);if(Ea&&Ea._f){const wa=Array.isArray(Ea._f.refs)?Ea._f.refs[0]:Ea._f.ref;if(Mt(wa)){const ji=wa.closest("form");if(ji){ji.reset();break}}}}if(xr.keepFieldsRef)for(const wi of hn.mount)H(wi,j(Zn,wi));else qe={}}zt=Qe.shouldUnregister?xr.keepDefaultValues?d(Pt):{}:d(Zn),On.array.next({values:{...Zn}}),On.state.next({values:{...Zn}})}hn={mount:xr.keepDirtyValues?hn.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},un.mount=!qt.isValid||!!xr.keepIsValid||!!xr.keepDirtyValues,un.watch=!!Qe.shouldUnregister,On.state.next({submitCount:xr.keepSubmitCount?ze.submitCount:0,isDirty:zn?!1:xr.keepDirty?ze.isDirty:!!(xr.keepDefaultValues&&!B(ir,Pt)),isSubmitted:xr.keepIsSubmitted?ze.isSubmitted:!1,dirtyFields:zn?{}:xr.keepDirtyValues?xr.keepDefaultValues&&zt?ge(Pt,zt):ze.dirtyFields:xr.keepDefaultValues&&ir?ge(Pt,ir):xr.keepDirty?ze.dirtyFields:{},touchedFields:xr.keepTouched?ze.touchedFields:{},errors:xr.keepErrors?ze.errors:{},isSubmitSuccessful:xr.keepIsSubmitSuccessful?ze.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:Pt})},ei=(ir,xr)=>mi(Dn(ir)?ir(zt):ir,xr),Qr=(ir,xr={})=>{const di=j(qe,ir),ft=di&&di._f;if(ft){const zn=ft.refs?ft.refs[0]:ft.ref;zn.focus&&(zn.focus(),xr.shouldSelect&&Dn(zn.select)&&zn.select())}},Ni=ir=>{ze={...ze,...ir}},Qi={control:{register:Qn,unregister:Gt,getFieldState:de,handleSubmit:ai,setError:vt,_subscribe:nt,_runSchema:Yr,_focusError:Or,_getWatch:Ur,_getDirty:zr,_setValid:Lr,_setFieldArray:Un,_setDisabledField:En,_setErrors:mr,_getFieldArray:jt,_reset:mi,_resetDefaultValues:()=>Dn(Qe.defaultValues)&&Qe.defaultValues().then(ir=>{ei(ir,Qe.resetOptions),On.state.next({isLoading:!1})}),_removeUnmounted:ki,_disableForm:Pr,_subjects:On,_proxyFormState:qt,get _fields(){return qe},get _formValues(){return zt},get _state(){return un},set _state(ir){un=ir},get _defaultValues(){return Pt},get _names(){return hn},set _names(ir){hn=ir},get _formState(){return ze},get _options(){return Qe},set _options(ir){Qe={...Qe,...ir}}},subscribe:Tt,trigger:bi,register:Qn,handleSubmit:ai,watch:Qt,setValue:H,getValues:Oi,reset:ei,resetField:xi,clearErrors:Ve,unregister:Gt,setError:vt,setFocus:Qr,getFieldState:de};return{...Qi,formControl:Qi}}var Fe=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const ye=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,Qe=>{const ze=(Math.random()*16+ye)%16|0;return(Qe=="x"?ze:ze&3|8).toString(16)})},Nt=(ye,Qe,ze={})=>ze.shouldFocus||R(ze.shouldFocus)?ze.focusName||`${ye}.${R(ze.focusIndex)?Qe:ze.focusIndex}.`:"",ln=(ye,Qe)=>[...ye,...Ze(Qe)],pn=ye=>Array.isArray(ye)?ye.map(()=>{}):void 0;function Yn(ye,Qe,ze){return[...ye.slice(0,Qe),...Ze(ze),...ye.slice(Qe)]}var ht=(ye,Qe,ze)=>Array.isArray(ye)?(R(ye[ze])&&(ye[ze]=void 0),ye.splice(ze,0,ye.splice(Qe,1)[0]),ye):[],De=(ye,Qe)=>[...Ze(Qe),...Ze(ye)];function we(ye,Qe){let ze=0;const qe=[...ye];for(const Pt of Qe)qe.splice(Pt-ze,1),ze++;return C(qe).length?qe:[]}var Ke=(ye,Qe)=>R(Qe)?[]:we(ye,Ze(Qe).sort((ze,qe)=>ze-qe)),be=(ye,Qe,ze)=>{[ye[Qe],ye[ze]]=[ye[ze],ye[Qe]]},pt=(ye,Qe,ze)=>(ye[Qe]=ze,ye);function We(ye){const Qe=z(),{control:ze=Qe.control,name:qe,keyName:Pt="id",shouldUnregister:zt,rules:un}=ye,[hn,xt]=l.useState(ze._getFieldArray(qe)),_t=l.useRef(ze._getFieldArray(qe).map(Fe)),qt=l.useRef(hn),fn=l.useRef(!1);qt.current=hn,ze._names.array.add(qe),l.useMemo(()=>un&&ze.register(qe,un),[ze,un,qe]),se(()=>ze._subjects.array.subscribe({next:({values:ar,name:Cr})=>{if(Cr===qe||!Cr){const Yr=j(ar,qe);Array.isArray(Yr)&&(xt(Yr),_t.current=Yr.map(Fe))}}}).unsubscribe,[ze,qe]);const On=l.useCallback(ar=>{fn.current=!0,ze._setFieldArray(qe,ar)},[ze,qe]),Gn=(ar,Cr)=>{const Yr=Ze(d(ar)),Xr=ln(ze._getFieldArray(qe),Yr);ze._names.focus=Nt(qe,Xr.length-1,Cr),_t.current=ln(_t.current,Yr.map(Fe)),On(Xr),xt(Xr),ze._setFieldArray(qe,Xr,ln,{argA:pn(ar)})},Bn=(ar,Cr)=>{const Yr=Ze(d(ar)),Xr=De(ze._getFieldArray(qe),Yr);ze._names.focus=Nt(qe,0,Cr),_t.current=De(_t.current,Yr.map(Fe)),On(Xr),xt(Xr),ze._setFieldArray(qe,Xr,De,{argA:pn(ar)})},Lr=ar=>{const Cr=Ke(ze._getFieldArray(qe),ar);_t.current=Ke(_t.current,ar),On(Cr),xt(Cr),!Array.isArray(j(ze._fields,qe))&&U(ze._fields,qe,void 0),ze._setFieldArray(qe,Cr,Ke,{argA:ar})},An=(ar,Cr,Yr)=>{const Xr=Ze(d(Cr)),ni=Yn(ze._getFieldArray(qe),ar,Xr);ze._names.focus=Nt(qe,ar,Yr),_t.current=Yn(_t.current,ar,Xr.map(Fe)),On(ni),xt(ni),ze._setFieldArray(qe,ni,Yn,{argA:ar,argB:pn(Cr)})},Un=(ar,Cr)=>{const Yr=ze._getFieldArray(qe);be(Yr,ar,Cr),be(_t.current,ar,Cr),On(Yr),xt(Yr),ze._setFieldArray(qe,Yr,be,{argA:ar,argB:Cr},!1)},cr=(ar,Cr)=>{const Yr=ze._getFieldArray(qe);ht(Yr,ar,Cr),ht(_t.current,ar,Cr),On(Yr),xt(Yr),ze._setFieldArray(qe,Yr,ht,{argA:ar,argB:Cr},!1)},mr=(ar,Cr)=>{const Yr=d(Cr),Xr=pt(ze._getFieldArray(qe),ar,Yr);_t.current=[...Xr].map((ni,ki)=>!ni||ki===ar?Fe():_t.current[ki]),On(Xr),xt([...Xr]),ze._setFieldArray(qe,Xr,pt,{argA:ar,argB:Yr},!0,!1)},hr=ar=>{const Cr=Ze(d(ar));_t.current=Cr.map(Fe),On([...Cr]),xt([...Cr]),ze._setFieldArray(qe,[...Cr],Yr=>Yr,{},!0,!1)};return l.useEffect(()=>{if(ze._state.action=!1,Wn(qe,ze._names)&&ze._subjects.state.next({...ze._formState}),fn.current&&(!ur(ze._options.mode).isOnSubmit||ze._formState.isSubmitted)&&!ur(ze._options.reValidateMode).isOnSubmit)if(ze._options.resolver)ze._runSchema([qe]).then(ar=>{const Cr=j(ar.errors,qe),Yr=j(ze._formState.errors,qe);(Yr?!Cr&&Yr.type||Cr&&(Yr.type!==Cr.type||Yr.message!==Cr.message):Cr&&Cr.type)&&(Cr?U(ze._formState.errors,qe,Cr):me(ze._formState.errors,qe),ze._subjects.state.next({errors:ze._formState.errors}))});else{const ar=j(ze._fields,qe);ar&&ar._f&&!(ur(ze._options.reValidateMode).isOnSubmit&&ur(ze._options.mode).isOnSubmit)&&fe(ar,ze._names.disabled,ze._formValues,ze._options.criteriaMode===ee.all,ze._options.shouldUseNativeValidation,!0).then(Cr=>!it(Cr)&&ze._subjects.state.next({errors:Nn(ze._formState.errors,Cr,qe)}))}ze._subjects.state.next({name:qe,values:d(ze._formValues)}),ze._names.focus&&er(ze._fields,(ar,Cr)=>{if(ze._names.focus&&Cr.startsWith(ze._names.focus)&&ar.focus)return ar.focus(),1}),ze._names.focus="",ze._setValid(),fn.current=!1},[hn,qe,ze]),l.useEffect(()=>(!j(ze._formValues,qe)&&ze._setFieldArray(qe),()=>{const ar=(Cr,Yr)=>{const Xr=j(ze._fields,Cr);Xr&&Xr._f&&(Xr._f.mount=Yr)};ze._options.shouldUnregister||zt?ze.unregister(qe):ar(qe,!1)}),[qe,ze,Pt,zt]),{swap:l.useCallback(Un,[On,qe,ze]),move:l.useCallback(cr,[On,qe,ze]),prepend:l.useCallback(Bn,[On,qe,ze]),append:l.useCallback(Gn,[On,qe,ze]),remove:l.useCallback(Lr,[On,qe,ze]),insert:l.useCallback(An,[On,qe,ze]),update:l.useCallback(mr,[On,qe,ze]),replace:l.useCallback(hr,[On,qe,ze]),fields:l.useMemo(()=>hn.map((ar,Cr)=>({...ar,[Pt]:_t.current[Cr]||Fe()})),[hn,Pt])}}function Je(ye={}){const Qe=l.useRef(void 0),ze=l.useRef(void 0),[qe,Pt]=l.useState({isDirty:!1,isValidating:!1,isLoading:Dn(ye.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:ye.errors||{},disabled:ye.disabled||!1,isReady:!1,defaultValues:Dn(ye.defaultValues)?void 0:ye.defaultValues});if(!Qe.current)if(ye.formControl)Qe.current={...ye.formControl,formState:qe},ye.defaultValues&&!Dn(ye.defaultValues)&&ye.formControl.reset(ye.defaultValues,ye.resetOptions);else{const{formControl:un,...hn}=he(ye);Qe.current={...hn,formState:qe}}const zt=Qe.current.control;return zt._options=ye,se(()=>{const un=zt._subscribe({formState:zt._proxyFormState,callback:()=>Pt({...zt._formState}),reRenderRoot:!0});return Pt(hn=>({...hn,isReady:!0})),zt._formState.isReady=!0,un},[zt]),l.useEffect(()=>zt._disableForm(ye.disabled),[zt,ye.disabled]),l.useEffect(()=>{ye.mode&&(zt._options.mode=ye.mode),ye.reValidateMode&&(zt._options.reValidateMode=ye.reValidateMode)},[zt,ye.mode,ye.reValidateMode]),l.useEffect(()=>{ye.errors&&(zt._setErrors(ye.errors),zt._focusError())},[zt,ye.errors]),l.useEffect(()=>{ye.shouldUnregister&&zt._subjects.state.next({values:zt._getWatch()})},[zt,ye.shouldUnregister]),l.useEffect(()=>{if(zt._proxyFormState.isDirty){const un=zt._getDirty();un!==qe.isDirty&&zt._subjects.state.next({isDirty:un})}},[zt,qe.isDirty]),l.useEffect(()=>{ye.values&&!B(ye.values,ze.current)?(zt._reset(ye.values,{keepFieldsRef:!0,...zt._options.resetOptions}),ze.current=ye.values,Pt(un=>({...un}))):zt._resetDefaultValues()},[zt,ye.values]),l.useEffect(()=>{zt._state.mount||(zt._setValid(),zt._state.mount=!0),zt._state.watch&&(zt._state.watch=!1,zt._subjects.state.next({...zt._formState})),zt._removeUnmounted()}),Qe.current.formState=ce(qe,zt),Qe.current}},49879:Ge=>{Ge.exports=g;var w=/\s/,u=/(_|-|\.|:)/,l=/([a-z][A-Z]|[A-Z][a-z])/;function g(h){return w.test(h)?h.toLowerCase():u.test(h)?(x(h)||h).toLowerCase():l.test(h)?p(h).toLowerCase():h.toLowerCase()}var y=/[\W_]+(.|$)/g;function x(h){return h.replace(y,function(E,v){return v?" "+v:""})}var f=/(.)([A-Z]+)/g;function p(h){return h.replace(f,function(E,v,m){return v+" "+m.toLowerCase().split("").join(" ")})}},49953:(Ge,w,u)=>{"use strict";u.d(w,{N:()=>g});var l=u(96540);const g=typeof document<"u"?l.useLayoutEffect:()=>{}},49954:(Ge,w,u)=>{"use strict";u.d(w,{Ay$:()=>zr});var l={};u.r(l),u.d(l,{ar:()=>C,az:()=>j,be:()=>$,ca:()=>re,cs:()=>z,da:()=>ce,de:()=>q,en:()=>T,eo:()=>ue,es:()=>Te,fa:()=>yt,fi:()=>Ze,fr:()=>it,frCA:()=>Dn,he:()=>Wt,hu:()=>bn,id:()=>Ct,is:()=>ke,it:()=>_e,ja:()=>Me,kh:()=>Ft,ko:()=>Zt,mk:()=>Pn,ms:()=>Vt,nl:()=>ur,no:()=>tr,ota:()=>Wn,pl:()=>gn,ps:()=>Fn,pt:()=>Jn,ru:()=>bt,sl:()=>fe,sv:()=>he,ta:()=>Nt,th:()=>pn,tr:()=>De,ua:()=>Ke,ur:()=>pt,vi:()=>Je,yo:()=>zt,zhCN:()=>Qe,zhTW:()=>qe});var g={};u.r(g);var y={};u.r(y),u.d(y,{$ZodAny:()=>v.Gb,$ZodArray:()=>v.$p,$ZodAsyncError:()=>p.GT,$ZodBase64:()=>v.Dq,$ZodBase64URL:()=>v.CQ,$ZodBigInt:()=>v.BN,$ZodBigIntFormat:()=>v.IT,$ZodBoolean:()=>v.sF,$ZodCIDRv4:()=>v.CI,$ZodCIDRv6:()=>v.Cn,$ZodCUID:()=>v.bl,$ZodCUID2:()=>v.Zu,$ZodCatch:()=>v.t$,$ZodCheck:()=>m.QP,$ZodCheckBigIntFormat:()=>m.uE,$ZodCheckEndsWith:()=>m.E6,$ZodCheckGreaterThan:()=>m.J_,$ZodCheckIncludes:()=>m.Tt,$ZodCheckLengthEquals:()=>m.RM,$ZodCheckLessThan:()=>m.sm,$ZodCheckLowerCase:()=>m.NI,$ZodCheckMaxLength:()=>m.Yk,$ZodCheckMaxSize:()=>m.j2,$ZodCheckMimeType:()=>m.sj,$ZodCheckMinLength:()=>m.Kk,$ZodCheckMinSize:()=>m.PH,$ZodCheckMultipleOf:()=>m.Jk,$ZodCheckNumberFormat:()=>m.KH,$ZodCheckOverwrite:()=>m.v$,$ZodCheckProperty:()=>m.XF,$ZodCheckRegex:()=>m.DG,$ZodCheckSizeEquals:()=>m.e2,$ZodCheckStartsWith:()=>m.J,$ZodCheckStringFormat:()=>m.ql,$ZodCheckUpperCase:()=>m.kH,$ZodCustom:()=>v.b0,$ZodCustomStringFormat:()=>v.ZQ,$ZodDate:()=>v.o5,$ZodDefault:()=>v.rv,$ZodDiscriminatedUnion:()=>v.P0,$ZodE164:()=>v.Oy,$ZodEmail:()=>v.qG,$ZodEmoji:()=>v.cG,$ZodEnum:()=>v.VO,$ZodError:()=>E.a$,$ZodFile:()=>v.CT,$ZodFunction:()=>_t,$ZodGUID:()=>v.Zc,$ZodIPv4:()=>v.Lc,$ZodIPv6:()=>v.Zy,$ZodISODate:()=>v.v1,$ZodISODateTime:()=>v.Ko,$ZodISODuration:()=>v.$N,$ZodISOTime:()=>v.Ax,$ZodIntersection:()=>v.LJ,$ZodJWT:()=>v.h8,$ZodKSUID:()=>v.GY,$ZodLazy:()=>v.kU,$ZodLiteral:()=>v.nu,$ZodMap:()=>v.eb,$ZodNaN:()=>v.zP,$ZodNanoID:()=>v.Py,$ZodNever:()=>v.Um,$ZodNonOptional:()=>v.N$,$ZodNull:()=>v.x8,$ZodNullable:()=>v.qc,$ZodNumber:()=>v.vz,$ZodNumberFormat:()=>v.I,$ZodObject:()=>v.L8,$ZodOptional:()=>v.ig,$ZodPipe:()=>v._m,$ZodPrefault:()=>v.VF,$ZodPromise:()=>v.hA,$ZodReadonly:()=>v.Sb,$ZodRealError:()=>E.Kd,$ZodRecord:()=>v.h,$ZodRegistry:()=>un.rs,$ZodSet:()=>v.Oi,$ZodString:()=>v.$v,$ZodStringFormat:()=>v.EY,$ZodSuccess:()=>v.Dw,$ZodSymbol:()=>v.U5,$ZodTemplateLiteral:()=>v.d,$ZodTransform:()=>v.Wc,$ZodTuple:()=>v.G3,$ZodType:()=>v.W4,$ZodULID:()=>v.g5,$ZodURL:()=>v.VY,$ZodUUID:()=>v.Zn,$ZodUndefined:()=>v.Mv,$ZodUnion:()=>v.cu,$ZodUnknown:()=>v.GP,$ZodVoid:()=>v.WH,$ZodXID:()=>v.TF,$brand:()=>p._e,$constructor:()=>p.xI,$input:()=>un.nP,$output:()=>un.UY,Doc:()=>hn.J,JSONSchema:()=>g,JSONSchemaGenerator:()=>fn,NEVER:()=>p.tm,TimePrecision:()=>xt.So,_any:()=>xt.KA,_array:()=>xt.dZ,_base64:()=>xt.rt,_base64url:()=>xt.cU,_bigint:()=>xt.z$,_boolean:()=>xt._L,_catch:()=>xt.nb,_check:()=>xt.ST,_cidrv4:()=>xt.Uy,_cidrv6:()=>xt.gP,_coercedBigint:()=>xt.St,_coercedBoolean:()=>xt.dN,_coercedDate:()=>xt.B4,_coercedNumber:()=>xt.qG,_coercedString:()=>xt.K_,_cuid:()=>xt.fs,_cuid2:()=>xt.Bj,_custom:()=>xt.FO,_date:()=>xt.YY,_default:()=>xt.Rv,_discriminatedUnion:()=>xt.FG,_e164:()=>xt.KB,_email:()=>xt.Mu,_emoji:()=>xt.aC,_endsWith:()=>xt.ER,_enum:()=>xt.$8,_file:()=>xt.K2,_float32:()=>xt.HL,_float64:()=>xt.g6,_gt:()=>xt.Tx,_gte:()=>xt.qm,_guid:()=>xt.tB,_includes:()=>xt.dR,_int:()=>xt.LK,_int32:()=>xt.sw,_int64:()=>xt.Jg,_intersection:()=>xt.tj,_ipv4:()=>xt.Ny,_ipv6:()=>xt.$O,_isoDate:()=>xt.db,_isoDateTime:()=>xt.G1,_isoDuration:()=>xt.f2,_isoTime:()=>xt.Kn,_jwt:()=>xt.rk,_ksuid:()=>xt._z,_lazy:()=>xt.kx,_length:()=>xt.YA,_literal:()=>xt.rn,_lowercase:()=>xt.hH,_lt:()=>xt.Au,_lte:()=>xt.Zm,_map:()=>xt.rF,_max:()=>xt.Yv,_maxLength:()=>xt.Eb,_maxSize:()=>xt.vL,_mime:()=>xt.GZ,_min:()=>xt.Q_,_minLength:()=>xt.m9,_minSize:()=>xt.Nd,_multipleOf:()=>xt.Hi,_nan:()=>xt.L4,_nanoid:()=>xt.Dl,_nativeEnum:()=>xt.Un,_negative:()=>xt.bR,_never:()=>xt.G8,_nonnegative:()=>xt.UI,_nonoptional:()=>xt.v$,_nonpositive:()=>xt.ej,_normalize:()=>xt.lo,_null:()=>xt.jw,_nullable:()=>xt.jS,_number:()=>xt.F7,_optional:()=>xt.oI,_overwrite:()=>xt.bS,_parse:()=>h.Tj,_parseAsync:()=>h.Rb,_pipe:()=>xt.yz,_positive:()=>xt.NC,_promise:()=>xt.Z$,_property:()=>xt.Jf,_readonly:()=>xt.CM,_record:()=>xt.Bb,_refine:()=>xt.fU,_regex:()=>xt.Fk,_safeParse:()=>h.Od,_safeParseAsync:()=>h.wG,_set:()=>xt.QC,_size:()=>xt.d$,_startsWith:()=>xt.$S,_string:()=>xt.Rl,_stringFormat:()=>xt.Af,_stringbool:()=>xt.fI,_success:()=>xt.P7,_superRefine:()=>xt.MB,_symbol:()=>xt.W7,_templateLiteral:()=>xt.Bt,_toLowerCase:()=>xt.Il,_toUpperCase:()=>xt.xY,_transform:()=>xt.MQ,_trim:()=>xt.WN,_tuple:()=>xt.gt,_uint32:()=>xt.P,_uint64:()=>xt.ii,_ulid:()=>xt.Ct,_undefined:()=>xt.E4,_union:()=>xt.h8,_unknown:()=>xt.em,_uppercase:()=>xt.qF,_url:()=>xt.Fn,_uuid:()=>xt.Be,_uuidv4:()=>xt.nA,_uuidv6:()=>xt.pY,_uuidv7:()=>xt.wA,_void:()=>xt.OC,_xid:()=>xt.Pw,clone:()=>v.o8,config:()=>p.$W,flattenError:()=>E.JM,formatError:()=>E.Wk,function:()=>qt,globalConfig:()=>p.cr,globalRegistry:()=>un.fd,isValidBase64:()=>v.UY,isValidBase64URL:()=>v.tV,isValidJWT:()=>v.c2,locales:()=>l,parse:()=>h.qg,parseAsync:()=>h.EJ,prettifyError:()=>E.S1,regexes:()=>O,registry:()=>un.u5,safeParse:()=>h.xL,safeParseAsync:()=>h.bp,toDotPath:()=>E.sR,toJSONSchema:()=>On,treeifyError:()=>E.ZC,util:()=>d,version:()=>S.r});var x={};u.r(x),u.d(x,{bigint:()=>ni,boolean:()=>Xr,date:()=>ki,number:()=>Yr,string:()=>Cr});var f={};u.r(f),u.d(f,{$brand:()=>p._e,$input:()=>un.nP,$output:()=>un.UY,NEVER:()=>p.tm,TimePrecision:()=>xt.So,ZodAny:()=>Bn.Ml,ZodArray:()=>Bn.n,ZodBase64:()=>Bn.nL,ZodBase64URL:()=>Bn._$,ZodBigInt:()=>Bn.Lr,ZodBigIntFormat:()=>Bn.A8,ZodBoolean:()=>Bn.WF,ZodCIDRv4:()=>Bn.W5,ZodCIDRv6:()=>Bn.Yl,ZodCUID:()=>Bn.Jj,ZodCUID2:()=>Bn.tr,ZodCatch:()=>Bn.hw,ZodCustom:()=>Bn.JE,ZodCustomStringFormat:()=>Bn.LE,ZodDate:()=>Bn.aP,ZodDefault:()=>Bn.Xi,ZodDiscriminatedUnion:()=>Bn.jv,ZodE164:()=>Bn.m7,ZodEmail:()=>Bn.cM,ZodEmoji:()=>Bn.yC,ZodEnum:()=>Bn.Vb,ZodError:()=>Lr.G,ZodFile:()=>Bn.im,ZodFirstPartyTypeKind:()=>hr,ZodGUID:()=>Bn.n4,ZodIPv4:()=>Bn.Bo,ZodIPv6:()=>Bn.Gp,ZodISODate:()=>ar.ZodISODate,ZodISODateTime:()=>ar.ZodISODateTime,ZodISODuration:()=>ar.ZodISODuration,ZodISOTime:()=>ar.ZodISOTime,ZodIntersection:()=>Bn.Jv,ZodIssueCode:()=>Un,ZodJWT:()=>Bn.fi,ZodKSUID:()=>Bn.Kf,ZodLazy:()=>Bn.Ih,ZodLiteral:()=>Bn.DN,ZodMap:()=>Bn.Ut,ZodNaN:()=>Bn.Tq,ZodNanoID:()=>Bn.n$,ZodNever:()=>Bn.iS,ZodNonOptional:()=>Bn.vZ,ZodNull:()=>Bn.PQ,ZodNullable:()=>Bn.l1,ZodNumber:()=>Bn.rS,ZodNumberFormat:()=>Bn.Kq,ZodObject:()=>Bn.bv,ZodOptional:()=>Bn.Ii,ZodPipe:()=>Bn.ut,ZodPrefault:()=>Bn.xg,ZodPromise:()=>Bn.$i,ZodReadonly:()=>Bn.EV,ZodRealError:()=>Lr.g,ZodRecord:()=>Bn.b8,ZodSet:()=>Bn.Kz,ZodString:()=>Bn.ND,ZodStringFormat:()=>Bn.EB,ZodSuccess:()=>Bn.Bu,ZodSymbol:()=>Bn.K5,ZodTemplateLiteral:()=>Bn.dd,ZodTransform:()=>Bn.CL,ZodTuple:()=>Bn.y0,ZodType:()=>Bn.aR,ZodULID:()=>Bn.qX,ZodURL:()=>Bn.zY,ZodUUID:()=>Bn.vX,ZodUndefined:()=>Bn._Z,ZodUnion:()=>Bn.fZ,ZodUnknown:()=>Bn._,ZodVoid:()=>Bn.a0,ZodXID:()=>Bn.Lq,_ZodString:()=>Bn.UC,_default:()=>Bn.Rv,any:()=>Bn.bz,array:()=>Bn.YO,base64:()=>Bn.K3,base64url:()=>Bn.r0,bigint:()=>Bn.o,boolean:()=>Bn.zM,catch:()=>Bn.Mf,check:()=>Bn.z6,cidrv4:()=>Bn.zr,cidrv6:()=>Bn.l7,clone:()=>d.clone,coerce:()=>x,config:()=>p.$W,core:()=>y,cuid:()=>Bn.gF,cuid2:()=>Bn.Gl,custom:()=>Bn.Ie,date:()=>Bn.p6,discriminatedUnion:()=>Bn.gM,e164:()=>Bn.hQ,email:()=>Bn.Rp,emoji:()=>Bn.Zg,endsWith:()=>xt.ER,enum:()=>Bn.k5,file:()=>Bn.NJ,flattenError:()=>E.JM,float32:()=>Bn.In,float64:()=>Bn.BN,formatError:()=>E.Wk,function:()=>qt,getErrorMap:()=>mr,globalRegistry:()=>un.fd,gt:()=>xt.Tx,gte:()=>xt.qm,guid:()=>Bn.Os,hostname:()=>Bn.OI,includes:()=>xt.dR,instanceof:()=>Bn.Nl,int:()=>Bn.Wh,int32:()=>Bn.HA,int64:()=>Bn.Gk,intersection:()=>Bn.E$,ipv4:()=>Bn.uX,ipv6:()=>Bn.ug,iso:()=>ar,json:()=>Bn.Pq,jwt:()=>Bn.a$,keyof:()=>Bn.ZE,ksuid:()=>Bn.fO,lazy:()=>Bn.RZ,length:()=>xt.YA,literal:()=>Bn.eu,locales:()=>l,looseObject:()=>Bn._H,lowercase:()=>xt.hH,lt:()=>xt.Au,lte:()=>xt.Zm,map:()=>Bn.Tj,maxLength:()=>xt.Eb,maxSize:()=>xt.vL,mime:()=>xt.GZ,minLength:()=>xt.m9,minSize:()=>xt.Nd,multipleOf:()=>xt.Hi,nan:()=>Bn.oi,nanoid:()=>Bn.Ak,nativeEnum:()=>Bn.fc,negative:()=>xt.bR,never:()=>Bn.Zm,nonnegative:()=>xt.UI,nonoptional:()=>Bn.eY,nonpositive:()=>xt.ej,normalize:()=>xt.lo,null:()=>Bn.ch,nullable:()=>Bn.me,nullish:()=>Bn.cl,number:()=>Bn.ai,object:()=>Bn.Ik,optional:()=>Bn.lq,overwrite:()=>xt.bS,parse:()=>An.qg,parseAsync:()=>An.EJ,partialRecord:()=>Bn.jg,pipe:()=>Bn.Fs,positive:()=>xt.NC,prefault:()=>Bn.Sd,preprocess:()=>Bn.vk,prettifyError:()=>E.S1,promise:()=>Bn.iv,property:()=>xt.Jf,readonly:()=>Bn.tB,record:()=>Bn.g1,refine:()=>Bn.YP,regex:()=>xt.Fk,regexes:()=>O,registry:()=>un.u5,safeParse:()=>An.xL,safeParseAsync:()=>An.bp,set:()=>Bn.hZ,setErrorMap:()=>cr,size:()=>xt.d$,startsWith:()=>xt.$S,strictObject:()=>Bn.re,string:()=>Bn.Yj,stringFormat:()=>Bn.Np,stringbool:()=>Bn.uE,success:()=>Bn.kX,superRefine:()=>Bn.zn,symbol:()=>Bn.HR,templateLiteral:()=>Bn.Uy,toJSONSchema:()=>On,toLowerCase:()=>xt.Il,toUpperCase:()=>xt.xY,transform:()=>Bn.pd,treeifyError:()=>E.ZC,trim:()=>xt.WN,tuple:()=>Bn.PV,uint32:()=>Bn.S8,uint64:()=>Bn.VV,ulid:()=>Bn.Z0,undefined:()=>Bn.Vx,union:()=>Bn.KC,unknown:()=>Bn.L5,uppercase:()=>xt.qF,url:()=>Bn.OZ,uuid:()=>Bn.uR,uuidv4:()=>Bn.gZ,uuidv6:()=>Bn.gE,uuidv7:()=>Bn.nH,void:()=>Bn.rI,xid:()=>Bn.kM});var p=u(45435),h=u(62373),E=u(73371),v=u(70666),m=u(59737),S=u(33457),d=u(57048),O=u(53705);const R=()=>{const Ur={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return H=>{switch(H.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${H.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${d.stringifyPrimitive(H.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${H.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${Be} ${H.maximum.toString()} ${wn.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${H.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${Be} ${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${H.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${Be} ${H.minimum.toString()} ${wn.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${H.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${Be} ${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${H.prefix}"`:Be.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${Be.suffix}"`:Be.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${Be.includes}"`:Be.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${Be.pattern}`:`${Rn[Be.format]??H.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${H.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${H.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${H.keys.length>1?"\u0629":""}: ${d.joinValues(H.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${H.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${H.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function C(){return{localeError:R()}}const L=()=>{const Ur={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return H=>{switch(H.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${H.expected}, daxil olan ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${d.stringifyPrimitive(H.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${H.origin??"d\u0259y\u0259r"} ${Be}${H.maximum.toString()} ${wn.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${H.origin??"d\u0259y\u0259r"} ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${H.origin} ${Be}${H.minimum.toString()} ${wn.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${H.origin} ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${Be.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:Be.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${Be.suffix}" il\u0259 bitm\u0259lidir`:Be.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${Be.includes}" daxil olmal\u0131d\u0131r`:Be.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${Be.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${H.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${H.keys.length>1?"lar":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`${H.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${H.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function j(){return{localeError:L()}}function I(Ur,jt,sn,Rn){const H=Math.abs(Ur),Be=H%10,wn=H%100;return wn>=11&&wn<=19?Rn:Be===1?jt:Be>=2&&Be<=4?sn:Rn}const U=()=>{const Ur={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(H))return"\u043C\u0430\u0441\u0456\u045E";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return H=>{switch(H.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${H.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${d.stringifyPrimitive(H.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);if(wn){const bi=Number(H.maximum),Oi=I(bi,wn.unit.one,wn.unit.few,wn.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${H.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${wn.verb} ${Be}${H.maximum.toString()} ${Oi}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${H.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);if(wn){const bi=Number(H.minimum),Oi=I(bi,wn.unit.one,wn.unit.few,wn.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${H.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${wn.verb} ${Be}${H.minimum.toString()} ${Oi}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${H.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${Be.prefix}"`:Be.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${Be.suffix}"`:Be.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${Be.includes}"`:Be.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${Be.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${H.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${H.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${H.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${H.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function $(){return{localeError:U()}}const ee=()=>{const Ur={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return H=>{switch(H.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${H.expected}, s'ha rebut ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Valor inv\xE0lid: s'esperava ${d.stringifyPrimitive(H.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${d.joinValues(H.values," o ")}`;case"too_big":{const Be=H.inclusive?"com a m\xE0xim":"menys de",wn=jt(H.origin);return wn?`Massa gran: s'esperava que ${H.origin??"el valor"} contingu\xE9s ${Be} ${H.maximum.toString()} ${wn.unit??"elements"}`:`Massa gran: s'esperava que ${H.origin??"el valor"} fos ${Be} ${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?"com a m\xEDnim":"m\xE9s de",wn=jt(H.origin);return wn?`Massa petit: s'esperava que ${H.origin} contingu\xE9s ${Be} ${H.minimum.toString()} ${wn.unit}`:`Massa petit: s'esperava que ${H.origin} fos ${Be} ${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${Be.prefix}"`:Be.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${Be.suffix}"`:Be.format==="includes"?`Format inv\xE0lid: ha d'incloure "${Be.includes}"`:Be.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${Be.pattern}`:`Format inv\xE0lid per a ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${H.divisor}`;case"unrecognized_keys":return`Clau${H.keys.length>1?"s":""} no reconeguda${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${H.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${H.origin}`;default:return"Entrada inv\xE0lida"}}};function re(){return{localeError:ee()}}const Se=()=>{const Ur={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(H))return"pole";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return H=>{switch(H.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${H.expected}, obdr\u017Eeno ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${d.stringifyPrimitive(H.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${H.origin??"hodnota"} mus\xED m\xEDt ${Be}${H.maximum.toString()} ${wn.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${H.origin??"hodnota"} mus\xED b\xFDt ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${H.origin??"hodnota"} mus\xED m\xEDt ${Be}${H.minimum.toString()} ${wn.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${H.origin??"hodnota"} mus\xED b\xFDt ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${Be.prefix}"`:Be.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${Be.suffix}"`:Be.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${Be.includes}"`:Be.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${Be.pattern}`:`Neplatn\xFD form\xE1t ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${H.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${H.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${H.origin}`;default:return"Neplatn\xFD vstup"}}};function z(){return{localeError:Se()}}const Q=()=>{const Ur={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},jt={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function sn(wn){return Ur[wn]??null}function Rn(wn){return jt[wn]??wn}const H=wn=>{const bi=typeof wn;switch(bi){case"number":return Number.isNaN(wn)?"NaN":"tal";case"object":return Array.isArray(wn)?"liste":wn===null?"null":Object.getPrototypeOf(wn)!==Object.prototype&&wn.constructor?wn.constructor.name:"objekt"}return bi},Be={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return wn=>{switch(wn.code){case"invalid_type":return`Ugyldigt input: forventede ${Rn(wn.expected)}, fik ${Rn(H(wn.input))}`;case"invalid_value":return wn.values.length===1?`Ugyldig v\xE6rdi: forventede ${d.stringifyPrimitive(wn.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${d.joinValues(wn.values,"|")}`;case"too_big":{const bi=wn.inclusive?"<=":"<",Oi=sn(wn.origin),de=Rn(wn.origin);return Oi?`For stor: forventede ${de??"value"} ${Oi.verb} ${bi} ${wn.maximum.toString()} ${Oi.unit??"elementer"}`:`For stor: forventede ${de??"value"} havde ${bi} ${wn.maximum.toString()}`}case"too_small":{const bi=wn.inclusive?">=":">",Oi=sn(wn.origin),de=Rn(wn.origin);return Oi?`For lille: forventede ${de} ${Oi.verb} ${bi} ${wn.minimum.toString()} ${Oi.unit}`:`For lille: forventede ${de} havde ${bi} ${wn.minimum.toString()}`}case"invalid_format":{const bi=wn;return bi.format==="starts_with"?`Ugyldig streng: skal starte med "${bi.prefix}"`:bi.format==="ends_with"?`Ugyldig streng: skal ende med "${bi.suffix}"`:bi.format==="includes"?`Ugyldig streng: skal indeholde "${bi.includes}"`:bi.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${bi.pattern}`:`Ugyldig ${Be[bi.format]??wn.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${wn.divisor}`;case"unrecognized_keys":return`${wn.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${d.joinValues(wn.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${wn.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${wn.origin}`;default:return"Ugyldigt input"}}};function ce(){return{localeError:Q()}}const se=()=>{const Ur={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"Zahl";case"object":{if(Array.isArray(H))return"Array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return H=>{switch(H.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${H.expected}, erhalten ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Ung\xFCltige Eingabe: erwartet ${d.stringifyPrimitive(H.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Zu gro\xDF: erwartet, dass ${H.origin??"Wert"} ${Be}${H.maximum.toString()} ${wn.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${H.origin??"Wert"} ${Be}${H.maximum.toString()} ist`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Zu klein: erwartet, dass ${H.origin} ${Be}${H.minimum.toString()} ${wn.unit} hat`:`Zu klein: erwartet, dass ${H.origin} ${Be}${H.minimum.toString()} ist`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Ung\xFCltiger String: muss mit "${Be.prefix}" beginnen`:Be.format==="ends_with"?`Ung\xFCltiger String: muss mit "${Be.suffix}" enden`:Be.format==="includes"?`Ung\xFCltiger String: muss "${Be.includes}" enthalten`:Be.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${Be.pattern} entsprechen`:`Ung\xFCltig: ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${H.divisor} sein`;case"unrecognized_keys":return`${H.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${H.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${H.origin}`;default:return"Ung\xFCltige Eingabe"}}};function q(){return{localeError:se()}}const te=Ur=>{const jt=typeof Ur;switch(jt){case"number":return Number.isNaN(Ur)?"NaN":"number";case"object":{if(Array.isArray(Ur))return"array";if(Ur===null)return"null";if(Object.getPrototypeOf(Ur)!==Object.prototype&&Ur.constructor)return Ur.constructor.name}}return jt},A=()=>{const Ur={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function jt(Rn){return Ur[Rn]??null}const sn={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return Rn=>{switch(Rn.code){case"invalid_type":return`Invalid input: expected ${Rn.expected}, received ${te(Rn.input)}`;case"invalid_value":return Rn.values.length===1?`Invalid input: expected ${d.stringifyPrimitive(Rn.values[0])}`:`Invalid option: expected one of ${d.joinValues(Rn.values,"|")}`;case"too_big":{const H=Rn.inclusive?"<=":"<",Be=jt(Rn.origin);return Be?`Too big: expected ${Rn.origin??"value"} to have ${H}${Rn.maximum.toString()} ${Be.unit??"elements"}`:`Too big: expected ${Rn.origin??"value"} to be ${H}${Rn.maximum.toString()}`}case"too_small":{const H=Rn.inclusive?">=":">",Be=jt(Rn.origin);return Be?`Too small: expected ${Rn.origin} to have ${H}${Rn.minimum.toString()} ${Be.unit}`:`Too small: expected ${Rn.origin} to be ${H}${Rn.minimum.toString()}`}case"invalid_format":{const H=Rn;return H.format==="starts_with"?`Invalid string: must start with "${H.prefix}"`:H.format==="ends_with"?`Invalid string: must end with "${H.suffix}"`:H.format==="includes"?`Invalid string: must include "${H.includes}"`:H.format==="regex"?`Invalid string: must match pattern ${H.pattern}`:`Invalid ${sn[H.format]??Rn.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Rn.divisor}`;case"unrecognized_keys":return`Unrecognized key${Rn.keys.length>1?"s":""}: ${d.joinValues(Rn.keys,", ")}`;case"invalid_key":return`Invalid key in ${Rn.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${Rn.origin}`;default:return"Invalid input"}}};function T(){return{localeError:A()}}const B=Ur=>{const jt=typeof Ur;switch(jt){case"number":return Number.isNaN(Ur)?"NaN":"nombro";case"object":{if(Array.isArray(Ur))return"tabelo";if(Ur===null)return"senvalora";if(Object.getPrototypeOf(Ur)!==Object.prototype&&Ur.constructor)return Ur.constructor.name}}return jt},X=()=>{const Ur={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function jt(Rn){return Ur[Rn]??null}const sn={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return Rn=>{switch(Rn.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${Rn.expected}, ricevi\u011Dis ${B(Rn.input)}`;case"invalid_value":return Rn.values.length===1?`Nevalida enigo: atendi\u011Dis ${d.stringifyPrimitive(Rn.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${d.joinValues(Rn.values,"|")}`;case"too_big":{const H=Rn.inclusive?"<=":"<",Be=jt(Rn.origin);return Be?`Tro granda: atendi\u011Dis ke ${Rn.origin??"valoro"} havu ${H}${Rn.maximum.toString()} ${Be.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${Rn.origin??"valoro"} havu ${H}${Rn.maximum.toString()}`}case"too_small":{const H=Rn.inclusive?">=":">",Be=jt(Rn.origin);return Be?`Tro malgranda: atendi\u011Dis ke ${Rn.origin} havu ${H}${Rn.minimum.toString()} ${Be.unit}`:`Tro malgranda: atendi\u011Dis ke ${Rn.origin} estu ${H}${Rn.minimum.toString()}`}case"invalid_format":{const H=Rn;return H.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${H.prefix}"`:H.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${H.suffix}"`:H.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${H.includes}"`:H.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${H.pattern}`:`Nevalida ${sn[H.format]??Rn.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${Rn.divisor}`;case"unrecognized_keys":return`Nekonata${Rn.keys.length>1?"j":""} \u015Dlosilo${Rn.keys.length>1?"j":""}: ${d.joinValues(Rn.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${Rn.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${Rn.origin}`;default:return"Nevalida enigo"}}};function ue(){return{localeError:X()}}const ie=()=>{const Ur={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(H))return"arreglo";if(H===null)return"nulo";if(Object.getPrototypeOf(H)!==Object.prototype)return H.constructor.name}}return Be},Rn={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return H=>{switch(H.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${H.expected}, recibido ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Entrada inv\xE1lida: se esperaba ${d.stringifyPrimitive(H.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Demasiado grande: se esperaba que ${H.origin??"valor"} tuviera ${Be}${H.maximum.toString()} ${wn.unit??"elementos"}`:`Demasiado grande: se esperaba que ${H.origin??"valor"} fuera ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Demasiado peque\xF1o: se esperaba que ${H.origin} tuviera ${Be}${H.minimum.toString()} ${wn.unit}`:`Demasiado peque\xF1o: se esperaba que ${H.origin} fuera ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${Be.prefix}"`:Be.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${Be.suffix}"`:Be.format==="includes"?`Cadena inv\xE1lida: debe incluir "${Be.includes}"`:Be.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${Be.pattern}`:`Inv\xE1lido ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${H.divisor}`;case"unrecognized_keys":return`Llave${H.keys.length>1?"s":""} desconocida${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${H.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${H.origin}`;default:return"Entrada inv\xE1lida"}}};function Te(){return{localeError:ie()}}const je=()=>{const Ur={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(H))return"\u0622\u0631\u0627\u06CC\u0647";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return H=>{switch(H.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${H.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${sn(H.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return H.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${d.stringifyPrimitive(H.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${d.joinValues(H.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${H.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${Be}${H.maximum.toString()} ${wn.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${H.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${Be}${H.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${H.origin} \u0628\u0627\u06CC\u062F ${Be}${H.minimum.toString()} ${wn.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${H.origin} \u0628\u0627\u06CC\u062F ${Be}${H.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${Be.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:Be.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${Be.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:Be.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${Be.includes}" \u0628\u0627\u0634\u062F`:Be.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${Be.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${Rn[Be.format]??H.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${H.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${H.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${H.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${H.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function yt(){return{localeError:je()}}const tt=()=>{const Ur={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return H=>{switch(H.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${H.expected}, oli ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${d.stringifyPrimitive(H.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Liian suuri: ${wn.subject} t\xE4ytyy olla ${Be}${H.maximum.toString()} ${wn.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Liian pieni: ${wn.subject} t\xE4ytyy olla ${Be}${H.minimum.toString()} ${wn.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${Be.prefix}"`:Be.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${Be.suffix}"`:Be.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${Be.includes}"`:Be.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${Be.pattern}`:`Virheellinen ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${H.divisor} monikerta`;case"unrecognized_keys":return`${H.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Ze(){return{localeError:tt()}}const Ne=()=>{const Ur={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"nombre";case"object":{if(Array.isArray(H))return"tableau";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return H=>{switch(H.code){case"invalid_type":return`Entr\xE9e invalide : ${H.expected} attendu, ${sn(H.input)} re\xE7u`;case"invalid_value":return H.values.length===1?`Entr\xE9e invalide : ${d.stringifyPrimitive(H.values[0])} attendu`:`Option invalide : une valeur parmi ${d.joinValues(H.values,"|")} attendue`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Trop grand : ${H.origin??"valeur"} doit ${wn.verb} ${Be}${H.maximum.toString()} ${wn.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${H.origin??"valeur"} doit \xEAtre ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Trop petit : ${H.origin} doit ${wn.verb} ${Be}${H.minimum.toString()} ${wn.unit}`:`Trop petit : ${H.origin} doit \xEAtre ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${Be.prefix}"`:Be.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${Be.suffix}"`:Be.format==="includes"?`Cha\xEEne invalide : doit inclure "${Be.includes}"`:Be.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${Be.pattern}`:`${Rn[Be.format]??H.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${H.divisor}`;case"unrecognized_keys":return`Cl\xE9${H.keys.length>1?"s":""} non reconnue${H.keys.length>1?"s":""} : ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${H.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${H.origin}`;default:return"Entr\xE9e invalide"}}};function it(){return{localeError:Ne()}}const Rt=()=>{const Ur={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return H=>{switch(H.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${H.expected}, re\xE7u ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Entr\xE9e invalide : attendu ${d.stringifyPrimitive(H.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"\u2264":"<",wn=jt(H.origin);return wn?`Trop grand : attendu que ${H.origin??"la valeur"} ait ${Be}${H.maximum.toString()} ${wn.unit}`:`Trop grand : attendu que ${H.origin??"la valeur"} soit ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?"\u2265":">",wn=jt(H.origin);return wn?`Trop petit : attendu que ${H.origin} ait ${Be}${H.minimum.toString()} ${wn.unit}`:`Trop petit : attendu que ${H.origin} soit ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${Be.prefix}"`:Be.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${Be.suffix}"`:Be.format==="includes"?`Cha\xEEne invalide : doit inclure "${Be.includes}"`:Be.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${Be.pattern}`:`${Rn[Be.format]??H.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${H.divisor}`;case"unrecognized_keys":return`Cl\xE9${H.keys.length>1?"s":""} non reconnue${H.keys.length>1?"s":""} : ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${H.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${H.origin}`;default:return"Entr\xE9e invalide"}}};function Dn(){return{localeError:Rt()}}const Mt=()=>{const Ur={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return H=>{switch(H.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${H.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${d.stringifyPrimitive(H.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${H.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${Be}${H.maximum.toString()} ${wn.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${H.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${H.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${Be}${H.minimum.toString()} ${wn.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${H.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${Be.prefix}"`:Be.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${Be.suffix}"`:Be.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${Be.includes}"`:Be.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${Be.pattern}`:`${Rn[Be.format]??H.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${H.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${H.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${H.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${H.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${H.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Wt(){return{localeError:Mt()}}const Tn=()=>{const Ur={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(H))return"t\xF6mb";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return H=>{switch(H.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${H.expected}, a kapott \xE9rt\xE9k ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${d.stringifyPrimitive(H.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`T\xFAl nagy: ${H.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${Be}${H.maximum.toString()} ${wn.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${H.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${H.origin} m\xE9rete t\xFAl kicsi ${Be}${H.minimum.toString()} ${wn.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${H.origin} t\xFAl kicsi ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\xC9rv\xE9nytelen string: "${Be.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:Be.format==="ends_with"?`\xC9rv\xE9nytelen string: "${Be.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:Be.format==="includes"?`\xC9rv\xE9nytelen string: "${Be.includes}" \xE9rt\xE9ket kell tartalmaznia`:Be.format==="regex"?`\xC9rv\xE9nytelen string: ${Be.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${H.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${H.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${H.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function bn(){return{localeError:Tn()}}const $t=()=>{const Ur={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return H=>{switch(H.code){case"invalid_type":return`Input tidak valid: diharapkan ${H.expected}, diterima ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Input tidak valid: diharapkan ${d.stringifyPrimitive(H.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Terlalu besar: diharapkan ${H.origin??"value"} memiliki ${Be}${H.maximum.toString()} ${wn.unit??"elemen"}`:`Terlalu besar: diharapkan ${H.origin??"value"} menjadi ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Terlalu kecil: diharapkan ${H.origin} memiliki ${Be}${H.minimum.toString()} ${wn.unit}`:`Terlalu kecil: diharapkan ${H.origin} menjadi ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`String tidak valid: harus dimulai dengan "${Be.prefix}"`:Be.format==="ends_with"?`String tidak valid: harus berakhir dengan "${Be.suffix}"`:Be.format==="includes"?`String tidak valid: harus menyertakan "${Be.includes}"`:Be.format==="regex"?`String tidak valid: harus sesuai pola ${Be.pattern}`:`${Rn[Be.format]??H.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${H.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${H.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${H.origin}`;default:return"Input tidak valid"}}};function Ct(){return{localeError:$t()}}const Z=Ur=>{const jt=typeof Ur;switch(jt){case"number":return Number.isNaN(Ur)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(Ur))return"fylki";if(Ur===null)return"null";if(Object.getPrototypeOf(Ur)!==Object.prototype&&Ur.constructor)return Ur.constructor.name}}return jt},me=()=>{const Ur={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function jt(Rn){return Ur[Rn]??null}const sn={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return Rn=>{switch(Rn.code){case"invalid_type":return`Rangt gildi: \xDE\xFA sl\xF3st inn ${Z(Rn.input)} \xFEar sem \xE1 a\xF0 vera ${Rn.expected}`;case"invalid_value":return Rn.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${d.stringifyPrimitive(Rn.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${d.joinValues(Rn.values,"|")}`;case"too_big":{const H=Rn.inclusive?"<=":"<",Be=jt(Rn.origin);return Be?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${Rn.origin??"gildi"} hafi ${H}${Rn.maximum.toString()} ${Be.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${Rn.origin??"gildi"} s\xE9 ${H}${Rn.maximum.toString()}`}case"too_small":{const H=Rn.inclusive?">=":">",Be=jt(Rn.origin);return Be?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${Rn.origin} hafi ${H}${Rn.minimum.toString()} ${Be.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${Rn.origin} s\xE9 ${H}${Rn.minimum.toString()}`}case"invalid_format":{const H=Rn;return H.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${H.prefix}"`:H.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${H.suffix}"`:H.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${H.includes}"`:H.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${H.pattern}`:`Rangt ${sn[H.format]??Rn.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${Rn.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${Rn.keys.length>1?"ir lyklar":"ur lykill"}: ${d.joinValues(Rn.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${Rn.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${Rn.origin}`;default:return"Rangt gildi"}}};function ke(){return{localeError:me()}}const Ee=()=>{const Ur={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"numero";case"object":{if(Array.isArray(H))return"vettore";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return H=>{switch(H.code){case"invalid_type":return`Input non valido: atteso ${H.expected}, ricevuto ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Input non valido: atteso ${d.stringifyPrimitive(H.values[0])}`:`Opzione non valida: atteso uno tra ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Troppo grande: ${H.origin??"valore"} deve avere ${Be}${H.maximum.toString()} ${wn.unit??"elementi"}`:`Troppo grande: ${H.origin??"valore"} deve essere ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Troppo piccolo: ${H.origin} deve avere ${Be}${H.minimum.toString()} ${wn.unit}`:`Troppo piccolo: ${H.origin} deve essere ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Stringa non valida: deve iniziare con "${Be.prefix}"`:Be.format==="ends_with"?`Stringa non valida: deve terminare con "${Be.suffix}"`:Be.format==="includes"?`Stringa non valida: deve includere "${Be.includes}"`:Be.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${Be.pattern}`:`Invalid ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${H.divisor}`;case"unrecognized_keys":return`Chiav${H.keys.length>1?"i":"e"} non riconosciut${H.keys.length>1?"e":"a"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${H.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${H.origin}`;default:return"Input non valido"}}};function _e(){return{localeError:Ee()}}const ge=()=>{const Ur={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(H))return"\u914D\u5217";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return H=>{switch(H.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${H.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${sn(H.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return H.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${d.stringifyPrimitive(H.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${d.joinValues(H.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const Be=H.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",wn=jt(H.origin);return wn?`\u5927\u304D\u3059\u304E\u308B\u5024: ${H.origin??"\u5024"}\u306F${H.maximum.toString()}${wn.unit??"\u8981\u7D20"}${Be}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${H.origin??"\u5024"}\u306F${H.maximum.toString()}${Be}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const Be=H.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",wn=jt(H.origin);return wn?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${H.origin}\u306F${H.minimum.toString()}${wn.unit}${Be}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${H.origin}\u306F${H.minimum.toString()}${Be}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${Be.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:Be.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${Be.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:Be.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${Be.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:Be.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${Be.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${H.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${H.keys.length>1?"\u7FA4":""}: ${d.joinValues(H.keys,"\u3001")}`;case"invalid_key":return`${H.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${H.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Me(){return{localeError:ge()}}const lt=()=>{const Ur={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(H))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(H===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return H=>{switch(H.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${H.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${d.stringifyPrimitive(H.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${H.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${Be} ${H.maximum.toString()} ${wn.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${H.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${Be} ${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${H.origin} ${Be} ${H.minimum.toString()} ${wn.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${H.origin} ${Be} ${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${Be.prefix}"`:Be.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${Be.suffix}"`:Be.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${Be.includes}"`:Be.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${Be.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${H.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${H.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${H.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Ft(){return{localeError:lt()}}const Et=()=>{const Ur={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return H=>{switch(H.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${H.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${sn(H.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return H.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${d.stringifyPrimitive(H.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${d.joinValues(H.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const Be=H.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",wn=Be==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",bi=jt(H.origin),Oi=bi?.unit??"\uC694\uC18C";return bi?`${H.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${H.maximum.toString()}${Oi} ${Be}${wn}`:`${H.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${H.maximum.toString()} ${Be}${wn}`}case"too_small":{const Be=H.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",wn=Be==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",bi=jt(H.origin),Oi=bi?.unit??"\uC694\uC18C";return bi?`${H.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${H.minimum.toString()}${Oi} ${Be}${wn}`:`${H.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${H.minimum.toString()} ${Be}${wn}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${Be.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:Be.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${Be.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:Be.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${Be.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:Be.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${Be.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${H.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${H.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${H.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Zt(){return{localeError:Et()}}const nn=()=>{const Ur={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(H))return"\u043D\u0438\u0437\u0430";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return H=>{switch(H.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${H.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Invalid input: expected ${d.stringifyPrimitive(H.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${H.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${Be}${H.maximum.toString()} ${wn.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${H.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${H.origin} \u0434\u0430 \u0438\u043C\u0430 ${Be}${H.minimum.toString()} ${wn.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${H.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${Be.prefix}"`:Be.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${Be.suffix}"`:Be.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${Be.includes}"`:Be.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${Be.pattern}`:`Invalid ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${H.divisor}`;case"unrecognized_keys":return`${H.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${H.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${H.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Pn(){return{localeError:nn()}}const rn=()=>{const Ur={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"nombor";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return H=>{switch(H.code){case"invalid_type":return`Input tidak sah: dijangka ${H.expected}, diterima ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Input tidak sah: dijangka ${d.stringifyPrimitive(H.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Terlalu besar: dijangka ${H.origin??"nilai"} ${wn.verb} ${Be}${H.maximum.toString()} ${wn.unit??"elemen"}`:`Terlalu besar: dijangka ${H.origin??"nilai"} adalah ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Terlalu kecil: dijangka ${H.origin} ${wn.verb} ${Be}${H.minimum.toString()} ${wn.unit}`:`Terlalu kecil: dijangka ${H.origin} adalah ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`String tidak sah: mesti bermula dengan "${Be.prefix}"`:Be.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${Be.suffix}"`:Be.format==="includes"?`String tidak sah: mesti mengandungi "${Be.includes}"`:Be.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${Be.pattern}`:`${Rn[Be.format]??H.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${H.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${H.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${H.origin}`;default:return"Input tidak sah"}}};function Vt(){return{localeError:rn()}}const Kn=()=>{const Ur={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"getal";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return H=>{switch(H.code){case"invalid_type":return`Ongeldige invoer: verwacht ${H.expected}, ontving ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Ongeldige invoer: verwacht ${d.stringifyPrimitive(H.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Te lang: verwacht dat ${H.origin??"waarde"} ${Be}${H.maximum.toString()} ${wn.unit??"elementen"} bevat`:`Te lang: verwacht dat ${H.origin??"waarde"} ${Be}${H.maximum.toString()} is`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Te kort: verwacht dat ${H.origin} ${Be}${H.minimum.toString()} ${wn.unit} bevat`:`Te kort: verwacht dat ${H.origin} ${Be}${H.minimum.toString()} is`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Ongeldige tekst: moet met "${Be.prefix}" beginnen`:Be.format==="ends_with"?`Ongeldige tekst: moet op "${Be.suffix}" eindigen`:Be.format==="includes"?`Ongeldige tekst: moet "${Be.includes}" bevatten`:Be.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${Be.pattern}`:`Ongeldig: ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${H.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${H.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${H.origin}`;default:return"Ongeldige invoer"}}};function ur(){return{localeError:Kn()}}const on=()=>{const Ur={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"tall";case"object":{if(Array.isArray(H))return"liste";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return H=>{switch(H.code){case"invalid_type":return`Ugyldig input: forventet ${H.expected}, fikk ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Ugyldig verdi: forventet ${d.stringifyPrimitive(H.values[0])}`:`Ugyldig valg: forventet en av ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`For stor(t): forventet ${H.origin??"value"} til \xE5 ha ${Be}${H.maximum.toString()} ${wn.unit??"elementer"}`:`For stor(t): forventet ${H.origin??"value"} til \xE5 ha ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`For lite(n): forventet ${H.origin} til \xE5 ha ${Be}${H.minimum.toString()} ${wn.unit}`:`For lite(n): forventet ${H.origin} til \xE5 ha ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${Be.prefix}"`:Be.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${Be.suffix}"`:Be.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${Be.includes}"`:Be.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${Be.pattern}`:`Ugyldig ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${H.divisor}`;case"unrecognized_keys":return`${H.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${H.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${H.origin}`;default:return"Ugyldig input"}}};function tr(){return{localeError:on()}}const Cn=()=>{const Ur={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"numara";case"object":{if(Array.isArray(H))return"saf";if(H===null)return"gayb";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return H=>{switch(H.code){case"invalid_type":return`F\xE2sit giren: umulan ${H.expected}, al\u0131nan ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`F\xE2sit giren: umulan ${d.stringifyPrimitive(H.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Fazla b\xFCy\xFCk: ${H.origin??"value"}, ${Be}${H.maximum.toString()} ${wn.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${H.origin??"value"}, ${Be}${H.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Fazla k\xFC\xE7\xFCk: ${H.origin}, ${Be}${H.minimum.toString()} ${wn.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${H.origin}, ${Be}${H.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`F\xE2sit metin: "${Be.prefix}" ile ba\u015Flamal\u0131.`:Be.format==="ends_with"?`F\xE2sit metin: "${Be.suffix}" ile bitmeli.`:Be.format==="includes"?`F\xE2sit metin: "${Be.includes}" ihtiv\xE2 etmeli.`:Be.format==="regex"?`F\xE2sit metin: ${Be.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${H.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`${H.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${H.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Wn(){return{localeError:Cn()}}const er=()=>{const Ur={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(H))return"\u0627\u0631\u06D0";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return H=>{switch(H.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${H.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${sn(H.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return H.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${d.stringifyPrimitive(H.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${d.joinValues(H.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${H.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${Be}${H.maximum.toString()} ${wn.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${H.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${Be}${H.maximum.toString()} \u0648\u064A`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${H.origin} \u0628\u0627\u06CC\u062F ${Be}${H.minimum.toString()} ${wn.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${H.origin} \u0628\u0627\u06CC\u062F ${Be}${H.minimum.toString()} \u0648\u064A`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${Be.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:Be.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${Be.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:Be.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${Be.includes}" \u0648\u0644\u0631\u064A`:Be.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${Be.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${Rn[Be.format]??H.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${H.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${H.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${H.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${H.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Fn(){return{localeError:er()}}const en=()=>{const Ur={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"liczba";case"object":{if(Array.isArray(H))return"tablica";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return H=>{switch(H.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${H.expected}, otrzymano ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${d.stringifyPrimitive(H.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${H.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${Be}${H.maximum.toString()} ${wn.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${H.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${H.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${Be}${H.minimum.toString()} ${wn.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${H.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${Be.prefix}"`:Be.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${Be.suffix}"`:Be.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${Be.includes}"`:Be.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${Be.pattern}`:`Nieprawid\u0142ow(y/a/e) ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${H.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${H.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${H.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function gn(){return{localeError:en()}}const kn=()=>{const Ur={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(H))return"array";if(H===null)return"nulo";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return H=>{switch(H.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${H.expected}, recebido ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Entrada inv\xE1lida: esperado ${d.stringifyPrimitive(H.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Muito grande: esperado que ${H.origin??"valor"} tivesse ${Be}${H.maximum.toString()} ${wn.unit??"elementos"}`:`Muito grande: esperado que ${H.origin??"valor"} fosse ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Muito pequeno: esperado que ${H.origin} tivesse ${Be}${H.minimum.toString()} ${wn.unit}`:`Muito pequeno: esperado que ${H.origin} fosse ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${Be.prefix}"`:Be.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${Be.suffix}"`:Be.format==="includes"?`Texto inv\xE1lido: deve incluir "${Be.includes}"`:Be.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${Be.pattern}`:`${Rn[Be.format]??H.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${H.divisor}`;case"unrecognized_keys":return`Chave${H.keys.length>1?"s":""} desconhecida${H.keys.length>1?"s":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${H.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${H.origin}`;default:return"Campo inv\xE1lido"}}};function Jn(){return{localeError:kn()}}function Nn(Ur,jt,sn,Rn){const H=Math.abs(Ur),Be=H%10,wn=H%100;return wn>=11&&wn<=19?Rn:Be===1?jt:Be>=2&&Be<=4?sn:Rn}const kr=()=>{const Ur={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(H))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return H=>{switch(H.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${H.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${d.stringifyPrimitive(H.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);if(wn){const bi=Number(H.maximum),Oi=Nn(bi,wn.unit.one,wn.unit.few,wn.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${H.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${Be}${H.maximum.toString()} ${Oi}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${H.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);if(wn){const bi=Number(H.minimum),Oi=Nn(bi,wn.unit.one,wn.unit.few,wn.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${H.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${Be}${H.minimum.toString()} ${Oi}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${H.origin} \u0431\u0443\u0434\u0435\u0442 ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${Be.prefix}"`:Be.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${Be.suffix}"`:Be.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${Be.includes}"`:Be.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${Be.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${H.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${H.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${H.keys.length>1?"\u0438":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${H.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${H.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function bt(){return{localeError:kr()}}const ne=()=>{const Ur={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(H))return"tabela";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return H=>{switch(H.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${H.expected}, prejeto ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${d.stringifyPrimitive(H.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Preveliko: pri\u010Dakovano, da bo ${H.origin??"vrednost"} imelo ${Be}${H.maximum.toString()} ${wn.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${H.origin??"vrednost"} ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Premajhno: pri\u010Dakovano, da bo ${H.origin} imelo ${Be}${H.minimum.toString()} ${wn.unit}`:`Premajhno: pri\u010Dakovano, da bo ${H.origin} ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${Be.prefix}"`:Be.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${Be.suffix}"`:Be.format==="includes"?`Neveljaven niz: mora vsebovati "${Be.includes}"`:Be.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${Be.pattern}`:`Neveljaven ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${H.divisor}`;case"unrecognized_keys":return`Neprepoznan${H.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${H.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${H.origin}`;default:return"Neveljaven vnos"}}};function fe(){return{localeError:ne()}}const K=()=>{const Ur={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"antal";case"object":{if(Array.isArray(H))return"lista";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return H=>{switch(H.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${H.expected}, fick ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${d.stringifyPrimitive(H.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`F\xF6r stor(t): f\xF6rv\xE4ntade ${H.origin??"v\xE4rdet"} att ha ${Be}${H.maximum.toString()} ${wn.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${H.origin??"v\xE4rdet"} att ha ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`F\xF6r lite(t): f\xF6rv\xE4ntade ${H.origin??"v\xE4rdet"} att ha ${Be}${H.minimum.toString()} ${wn.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${H.origin??"v\xE4rdet"} att ha ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${Be.prefix}"`:Be.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${Be.suffix}"`:Be.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${Be.includes}"`:Be.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${Be.pattern}"`:`Ogiltig(t) ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${H.divisor}`;case"unrecognized_keys":return`${H.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${H.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${H.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function he(){return{localeError:K()}}const Fe=()=>{const Ur={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(H))return"\u0B85\u0BA3\u0BBF";if(H===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return H=>{switch(H.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${H.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${d.stringifyPrimitive(H.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${d.joinValues(H.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${H.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${Be}${H.maximum.toString()} ${wn.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${H.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${Be}${H.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${H.origin} ${Be}${H.minimum.toString()} ${wn.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${H.origin} ${Be}${H.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${Be.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:Be.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${Be.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:Be.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${Be.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:Be.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${Be.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${H.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${H.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`${H.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${H.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Nt(){return{localeError:Fe()}}const ln=()=>{const Ur={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(H))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(H===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return H=>{switch(H.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${H.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${d.stringifyPrimitive(H.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",wn=jt(H.origin);return wn?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${H.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${Be} ${H.maximum.toString()} ${wn.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${H.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${Be} ${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",wn=jt(H.origin);return wn?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${H.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${Be} ${H.minimum.toString()} ${wn.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${H.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${Be} ${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${Be.prefix}"`:Be.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${Be.suffix}"`:Be.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${Be.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:Be.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${Be.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${H.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${H.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${H.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function pn(){return{localeError:ln()}}const Yn=Ur=>{const jt=typeof Ur;switch(jt){case"number":return Number.isNaN(Ur)?"NaN":"number";case"object":{if(Array.isArray(Ur))return"array";if(Ur===null)return"null";if(Object.getPrototypeOf(Ur)!==Object.prototype&&Ur.constructor)return Ur.constructor.name}}return jt},ht=()=>{const Ur={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function jt(Rn){return Ur[Rn]??null}const sn={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return Rn=>{switch(Rn.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${Rn.expected}, al\u0131nan ${Yn(Rn.input)}`;case"invalid_value":return Rn.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${d.stringifyPrimitive(Rn.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${d.joinValues(Rn.values,"|")}`;case"too_big":{const H=Rn.inclusive?"<=":"<",Be=jt(Rn.origin);return Be?`\xC7ok b\xFCy\xFCk: beklenen ${Rn.origin??"de\u011Fer"} ${H}${Rn.maximum.toString()} ${Be.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${Rn.origin??"de\u011Fer"} ${H}${Rn.maximum.toString()}`}case"too_small":{const H=Rn.inclusive?">=":">",Be=jt(Rn.origin);return Be?`\xC7ok k\xFC\xE7\xFCk: beklenen ${Rn.origin} ${H}${Rn.minimum.toString()} ${Be.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${Rn.origin} ${H}${Rn.minimum.toString()}`}case"invalid_format":{const H=Rn;return H.format==="starts_with"?`Ge\xE7ersiz metin: "${H.prefix}" ile ba\u015Flamal\u0131`:H.format==="ends_with"?`Ge\xE7ersiz metin: "${H.suffix}" ile bitmeli`:H.format==="includes"?`Ge\xE7ersiz metin: "${H.includes}" i\xE7ermeli`:H.format==="regex"?`Ge\xE7ersiz metin: ${H.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${sn[H.format]??Rn.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${Rn.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${Rn.keys.length>1?"lar":""}: ${d.joinValues(Rn.keys,", ")}`;case"invalid_key":return`${Rn.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${Rn.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function De(){return{localeError:ht()}}const we=()=>{const Ur={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(H))return"\u043C\u0430\u0441\u0438\u0432";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return H=>{switch(H.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${H.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${d.stringifyPrimitive(H.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${H.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${wn.verb} ${Be}${H.maximum.toString()} ${wn.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${H.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${H.origin} ${wn.verb} ${Be}${H.minimum.toString()} ${wn.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${H.origin} \u0431\u0443\u0434\u0435 ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${Be.prefix}"`:Be.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${Be.suffix}"`:Be.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${Be.includes}"`:Be.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${Be.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${H.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${H.keys.length>1?"\u0456":""}: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${H.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${H.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ke(){return{localeError:we()}}const be=()=>{const Ur={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(H))return"\u0622\u0631\u06D2";if(H===null)return"\u0646\u0644";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return H=>{switch(H.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${H.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${sn(H.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return H.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${d.stringifyPrimitive(H.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${d.joinValues(H.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${H.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${Be}${H.maximum.toString()} ${wn.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${H.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${Be}${H.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${H.origin} \u06A9\u06D2 ${Be}${H.minimum.toString()} ${wn.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${H.origin} \u06A9\u0627 ${Be}${H.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${Be.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:Be.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${Be.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:Be.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${Be.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:Be.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${Be.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${H.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${H.keys.length>1?"\u0632":""}: ${d.joinValues(H.keys,"\u060C ")}`;case"invalid_key":return`${H.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${H.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function pt(){return{localeError:be()}}const We=()=>{const Ur={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(H))return"m\u1EA3ng";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return H=>{switch(H.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${H.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${d.stringifyPrimitive(H.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${H.origin??"gi\xE1 tr\u1ECB"} ${wn.verb} ${Be}${H.maximum.toString()} ${wn.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${H.origin??"gi\xE1 tr\u1ECB"} ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${H.origin} ${wn.verb} ${Be}${H.minimum.toString()} ${wn.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${H.origin} ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${Be.prefix}"`:Be.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${Be.suffix}"`:Be.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${Be.includes}"`:Be.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${Be.pattern}`:`${Rn[Be.format]??H.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${H.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${H.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${H.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Je(){return{localeError:We()}}const ye=()=>{const Ur={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(H))return"\u6570\u7EC4";if(H===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return H=>{switch(H.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${H.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${d.stringifyPrimitive(H.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${H.origin??"\u503C"} ${Be}${H.maximum.toString()} ${wn.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${H.origin??"\u503C"} ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${H.origin} ${Be}${H.minimum.toString()} ${wn.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${H.origin} ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${Be.prefix}" \u5F00\u5934`:Be.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${Be.suffix}" \u7ED3\u5C3E`:Be.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${Be.includes}"`:Be.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${Be.pattern}`:`\u65E0\u6548${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${H.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`${H.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${H.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Qe(){return{localeError:ye()}}const ze=()=>{const Ur={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"number";case"object":{if(Array.isArray(H))return"array";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return H=>{switch(H.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${H.expected}\uFF0C\u4F46\u6536\u5230 ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${d.stringifyPrimitive(H.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${H.origin??"\u503C"} \u61C9\u70BA ${Be}${H.maximum.toString()} ${wn.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${H.origin??"\u503C"} \u61C9\u70BA ${Be}${H.maximum.toString()}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${H.origin} \u61C9\u70BA ${Be}${H.minimum.toString()} ${wn.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${H.origin} \u61C9\u70BA ${Be}${H.minimum.toString()}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${Be.prefix}" \u958B\u982D`:Be.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${Be.suffix}" \u7D50\u5C3E`:Be.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${Be.includes}"`:Be.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${Be.pattern}`:`\u7121\u6548\u7684 ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${H.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${H.keys.length>1?"\u5011":""}\uFF1A${d.joinValues(H.keys,"\u3001")}`;case"invalid_key":return`${H.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${H.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function qe(){return{localeError:ze()}}const Pt=()=>{const Ur={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function jt(H){return Ur[H]??null}const sn=H=>{const Be=typeof H;switch(Be){case"number":return Number.isNaN(H)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(H))return"akop\u1ECD";if(H===null)return"null";if(Object.getPrototypeOf(H)!==Object.prototype&&H.constructor)return H.constructor.name}}return Be},Rn={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"};return H=>{switch(H.code){case"invalid_type":return`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${H.expected}, \xE0m\u1ECD\u0300 a r\xED ${sn(H.input)}`;case"invalid_value":return H.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${d.stringifyPrimitive(H.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${d.joinValues(H.values,"|")}`;case"too_big":{const Be=H.inclusive?"<=":"<",wn=jt(H.origin);return wn?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${H.origin??"iye"} ${wn.verb} ${Be}${H.maximum} ${wn.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${Be}${H.maximum}`}case"too_small":{const Be=H.inclusive?">=":">",wn=jt(H.origin);return wn?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${H.origin} ${wn.verb} ${Be}${H.minimum} ${wn.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${Be}${H.minimum}`}case"invalid_format":{const Be=H;return Be.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${Be.prefix}"`:Be.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${Be.suffix}"`:Be.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${Be.includes}"`:Be.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${Be.pattern}`:`A\u1E63\xEC\u1E63e: ${Rn[Be.format]??H.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${H.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${d.joinValues(H.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${H.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${H.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function zt(){return{localeError:Pt()}}var un=u(83795),hn=u(58424),xt=u(20638);class _t{constructor(jt){this._def=jt,this.def=jt}implement(jt){if(typeof jt!="function")throw new Error("implement() must be called with a function");const sn=(...Rn)=>{const H=this._def.input?(0,h.qg)(this._def.input,Rn,void 0,{callee:sn}):Rn;if(!Array.isArray(H))throw new Error("Invalid arguments schema: not an array or tuple schema.");const Be=jt(...H);return this._def.output?(0,h.qg)(this._def.output,Be,void 0,{callee:sn}):Be};return sn}implementAsync(jt){if(typeof jt!="function")throw new Error("implement() must be called with a function");const sn=async(...Rn)=>{const H=this._def.input?await(0,h.EJ)(this._def.input,Rn,void 0,{callee:sn}):Rn;if(!Array.isArray(H))throw new Error("Invalid arguments schema: not an array or tuple schema.");const Be=await jt(...H);return this._def.output?(0,h.EJ)(this._def.output,Be,void 0,{callee:sn}):Be};return sn}input(...jt){const sn=this.constructor;return Array.isArray(jt[0])?new sn({type:"function",input:new v.G3({type:"tuple",items:jt[0],rest:jt[1]}),output:this._def.output}):new sn({type:"function",input:jt[0],output:this._def.output})}output(jt){const sn=this.constructor;return new sn({type:"function",input:this._def.input,output:jt})}}function qt(Ur){return new _t({type:"function",input:Array.isArray(Ur?.input)?(0,xt.gt)(v.G3,Ur?.input):Ur?.input??(0,xt.dZ)(v.$p,(0,xt.em)(v.GP)),output:Ur?.output??(0,xt.em)(v.GP)})}class fn{constructor(jt){this.counter=0,this.metadataRegistry=jt?.metadata??un.fd,this.target=jt?.target??"draft-2020-12",this.unrepresentable=jt?.unrepresentable??"throw",this.override=jt?.override??(()=>{}),this.io=jt?.io??"output",this.seen=new Map}process(jt,sn={path:[],schemaPath:[]}){var Rn;const H=jt._zod.def,Be={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},wn=this.seen.get(jt);if(wn)return wn.count++,sn.schemaPath.includes(jt)&&(wn.cycle=sn.path),wn.schema;const bi={schema:{},count:1,cycle:void 0,path:sn.path};this.seen.set(jt,bi);const Oi=jt._zod.toJSONSchema?.();if(Oi)bi.schema=Oi;else{const vt={...sn,schemaPath:[...sn.schemaPath,jt],path:sn.path},Qt=jt._zod.parent;if(Qt)bi.ref=Qt,this.process(Qt,vt),this.seen.get(Qt).isParent=!0;else{const nt=bi.schema;switch(H.type){case"string":{const Tt=nt;Tt.type="string";const{minimum:Gt,maximum:En,format:Qn,patterns:Or,contentEncoding:Pr}=jt._zod.bag;if(typeof Gt=="number"&&(Tt.minLength=Gt),typeof En=="number"&&(Tt.maxLength=En),Qn&&(Tt.format=Be[Qn]??Qn,Tt.format===""&&delete Tt.format),Pr&&(Tt.contentEncoding=Pr),Or&&Or.size>0){const ai=[...Or];ai.length===1?Tt.pattern=ai[0].source:ai.length>1&&(bi.schema.allOf=[...ai.map(xi=>({...this.target==="draft-7"||this.target==="draft-4"?{type:"string"}:{},pattern:xi.source}))])}break}case"number":{const Tt=nt,{minimum:Gt,maximum:En,format:Qn,multipleOf:Or,exclusiveMaximum:Pr,exclusiveMinimum:ai}=jt._zod.bag;typeof Qn=="string"&&Qn.includes("int")?Tt.type="integer":Tt.type="number",typeof ai=="number"&&(this.target==="draft-4"?(Tt.minimum=ai,Tt.exclusiveMinimum=!0):Tt.exclusiveMinimum=ai),typeof Gt=="number"&&(Tt.minimum=Gt,typeof ai=="number"&&this.target!=="draft-4"&&(ai>=Gt?delete Tt.minimum:delete Tt.exclusiveMinimum)),typeof Pr=="number"&&(this.target==="draft-4"?(Tt.maximum=Pr,Tt.exclusiveMaximum=!0):Tt.exclusiveMaximum=Pr),typeof En=="number"&&(Tt.maximum=En,typeof Pr=="number"&&this.target!=="draft-4"&&(Pr<=En?delete Tt.maximum:delete Tt.exclusiveMaximum)),typeof Or=="number"&&(Tt.multipleOf=Or);break}case"boolean":{const Tt=nt;Tt.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{nt.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{nt.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const Tt=nt,{minimum:Gt,maximum:En}=jt._zod.bag;typeof Gt=="number"&&(Tt.minItems=Gt),typeof En=="number"&&(Tt.maxItems=En),Tt.type="array",Tt.items=this.process(H.element,{...vt,path:[...vt.path,"items"]});break}case"object":{const Tt=nt;Tt.type="object",Tt.properties={};const Gt=H.shape;for(const Or in Gt)Tt.properties[Or]=this.process(Gt[Or],{...vt,path:[...vt.path,"properties",Or]});const En=new Set(Object.keys(Gt)),Qn=new Set([...En].filter(Or=>{const Pr=H.shape[Or]._zod;return this.io==="input"?Pr.optin===void 0:Pr.optout===void 0}));Qn.size>0&&(Tt.required=Array.from(Qn)),H.catchall?._zod.def.type==="never"?Tt.additionalProperties=!1:H.catchall?H.catchall&&(Tt.additionalProperties=this.process(H.catchall,{...vt,path:[...vt.path,"additionalProperties"]})):this.io==="output"&&(Tt.additionalProperties=!1);break}case"union":{const Tt=nt;Tt.anyOf=H.options.map((Gt,En)=>this.process(Gt,{...vt,path:[...vt.path,"anyOf",En]}));break}case"intersection":{const Tt=nt,Gt=this.process(H.left,{...vt,path:[...vt.path,"allOf",0]}),En=this.process(H.right,{...vt,path:[...vt.path,"allOf",1]}),Qn=Pr=>"allOf"in Pr&&Object.keys(Pr).length===1,Or=[...Qn(Gt)?Gt.allOf:[Gt],...Qn(En)?En.allOf:[En]];Tt.allOf=Or;break}case"tuple":{const Tt=nt;Tt.type="array";const Gt=H.items.map((Or,Pr)=>this.process(Or,{...vt,path:[...vt.path,"prefixItems",Pr]}));if(this.target==="draft-2020-12"?Tt.prefixItems=Gt:Tt.items=Gt,H.rest){const Or=this.process(H.rest,{...vt,path:[...vt.path,"items"]});this.target==="draft-2020-12"?Tt.items=Or:Tt.additionalItems=Or}H.rest&&(Tt.items=this.process(H.rest,{...vt,path:[...vt.path,"items"]}));const{minimum:En,maximum:Qn}=jt._zod.bag;typeof En=="number"&&(Tt.minItems=En),typeof Qn=="number"&&(Tt.maxItems=Qn);break}case"record":{const Tt=nt;Tt.type="object",this.target!=="draft-4"&&(Tt.propertyNames=this.process(H.keyType,{...vt,path:[...vt.path,"propertyNames"]})),Tt.additionalProperties=this.process(H.valueType,{...vt,path:[...vt.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const Tt=nt,Gt=(0,d.getEnumValues)(H.entries);Gt.every(En=>typeof En=="number")&&(Tt.type="number"),Gt.every(En=>typeof En=="string")&&(Tt.type="string"),Tt.enum=Gt;break}case"literal":{const Tt=nt,Gt=[];for(const En of H.values)if(En===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof En=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");Gt.push(Number(En))}else Gt.push(En);if(Gt.length!==0)if(Gt.length===1){const En=Gt[0];Tt.type=En===null?"null":typeof En,this.target==="draft-4"?Tt.enum=[En]:Tt.const=En}else Gt.every(En=>typeof En=="number")&&(Tt.type="number"),Gt.every(En=>typeof En=="string")&&(Tt.type="string"),Gt.every(En=>typeof En=="boolean")&&(Tt.type="string"),Gt.every(En=>En===null)&&(Tt.type="null"),Tt.enum=Gt;break}case"file":{const Tt=nt,Gt={type:"string",format:"binary",contentEncoding:"binary"},{minimum:En,maximum:Qn,mime:Or}=jt._zod.bag;En!==void 0&&(Gt.minLength=En),Qn!==void 0&&(Gt.maxLength=Qn),Or?Or.length===1?(Gt.contentMediaType=Or[0],Object.assign(Tt,Gt)):Tt.anyOf=Or.map(Pr=>({...Gt,contentMediaType:Pr})):Object.assign(Tt,Gt);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const Tt=this.process(H.innerType,vt);nt.anyOf=[Tt,{type:"null"}];break}case"nonoptional":{this.process(H.innerType,vt),bi.ref=H.innerType;break}case"success":{const Tt=nt;Tt.type="boolean";break}case"default":{this.process(H.innerType,vt),bi.ref=H.innerType,nt.default=JSON.parse(JSON.stringify(H.defaultValue));break}case"prefault":{this.process(H.innerType,vt),bi.ref=H.innerType,this.io==="input"&&(nt._prefault=JSON.parse(JSON.stringify(H.defaultValue)));break}case"catch":{this.process(H.innerType,vt),bi.ref=H.innerType;let Tt;try{Tt=H.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}nt.default=Tt;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const Tt=nt,Gt=jt._zod.pattern;if(!Gt)throw new Error("Pattern not found in template literal");Tt.type="string",Tt.pattern=Gt.source;break}case"pipe":{const Tt=this.io==="input"?H.in._zod.def.type==="transform"?H.out:H.in:H.out;this.process(Tt,vt),bi.ref=Tt;break}case"readonly":{this.process(H.innerType,vt),bi.ref=H.innerType,nt.readOnly=!0;break}case"promise":{this.process(H.innerType,vt),bi.ref=H.innerType;break}case"optional":{this.process(H.innerType,vt),bi.ref=H.innerType;break}case"lazy":{const Tt=jt._zod.innerType;this.process(Tt,vt),bi.ref=Tt;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}const de=this.metadataRegistry.get(jt);return de&&Object.assign(bi.schema,de),this.io==="input"&&Gn(jt)&&(delete bi.schema.examples,delete bi.schema.default),this.io==="input"&&bi.schema._prefault&&((Rn=bi.schema).default??(Rn.default=bi.schema._prefault)),delete bi.schema._prefault,this.seen.get(jt).schema}emit(jt,sn){const Rn={cycles:sn?.cycles??"ref",reused:sn?.reused??"inline",external:sn?.external??void 0},H=this.seen.get(jt);if(!H)throw new Error("Unprocessed schema. This is a bug in Zod.");const Be=Ve=>{const vt=this.target==="draft-2020-12"?"$defs":"definitions";if(Rn.external){const Gt=Rn.external.registry.get(Ve[0])?.id,En=Rn.external.uri??(Or=>Or);if(Gt)return{ref:En(Gt)};const Qn=Ve[1].defId??Ve[1].schema.id??`schema${this.counter++}`;return Ve[1].defId=Qn,{defId:Qn,ref:`${En("__shared")}#/${vt}/${Qn}`}}if(Ve[1]===H)return{ref:"#"};const nt=`#/${vt}/`,Tt=Ve[1].schema.id??`__schema${this.counter++}`;return{defId:Tt,ref:nt+Tt}},wn=Ve=>{if(Ve[1].schema.$ref)return;const vt=Ve[1],{ref:Qt,defId:nt}=Be(Ve);vt.def={...vt.schema},nt&&(vt.defId=nt);const Tt=vt.schema;for(const Gt in Tt)delete Tt[Gt];Tt.$ref=Qt};if(Rn.cycles==="throw")for(const Ve of this.seen.entries()){const vt=Ve[1];if(vt.cycle)throw new Error(`Cycle detected: #/${vt.cycle?.join("/")}/<root> Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const Ve of this.seen.entries()){const vt=Ve[1];if(jt===Ve[0]){wn(Ve);continue}if(Rn.external){const nt=Rn.external.registry.get(Ve[0])?.id;if(jt!==Ve[0]&&nt){wn(Ve);continue}}if(this.metadataRegistry.get(Ve[0])?.id){wn(Ve);continue}if(vt.cycle){wn(Ve);continue}if(vt.count>1&&Rn.reused==="ref"){wn(Ve);continue}}const bi=(Ve,vt)=>{const Qt=this.seen.get(Ve),nt=Qt.def??Qt.schema,Tt={...nt};if(Qt.ref===null)return;const Gt=Qt.ref;if(Qt.ref=null,Gt){bi(Gt,vt);const En=this.seen.get(Gt).schema;En.$ref&&(vt.target==="draft-7"||vt.target==="draft-4")?(nt.allOf=nt.allOf??[],nt.allOf.push(En)):(Object.assign(nt,En),Object.assign(nt,Tt))}Qt.isParent||this.override({zodSchema:Ve,jsonSchema:nt,path:Qt.path??[]})};for(const Ve of[...this.seen.entries()].reverse())bi(Ve[0],{target:this.target});const Oi={};if(this.target==="draft-2020-12"?Oi.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?Oi.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?Oi.$schema="http://json-schema.org/draft-04/schema#":console.warn(`Invalid target: ${this.target}`),Rn.external?.uri){const Ve=Rn.external.registry.get(jt)?.id;if(!Ve)throw new Error("Schema is missing an `id` property");Oi.$id=Rn.external.uri(Ve)}Object.assign(Oi,H.def);const de=Rn.external?.defs??{};for(const Ve of this.seen.entries()){const vt=Ve[1];vt.def&&vt.defId&&(de[vt.defId]=vt.def)}Rn.external||Object.keys(de).length>0&&(this.target==="draft-2020-12"?Oi.$defs=de:Oi.definitions=de);try{return JSON.parse(JSON.stringify(Oi))}catch{throw new Error("Error converting schema to JSON.")}}}function On(Ur,jt){if(Ur instanceof un.rs){const Rn=new fn(jt),H={};for(const bi of Ur._idmap.entries()){const[Oi,de]=bi;Rn.process(de)}const Be={},wn={registry:Ur,uri:jt?.uri,defs:H};for(const bi of Ur._idmap.entries()){const[Oi,de]=bi;Be[Oi]=Rn.emit(de,{...jt,external:wn})}if(Object.keys(H).length>0){const bi=Rn.target==="draft-2020-12"?"$defs":"definitions";Be.__shared={[bi]:H}}return{schemas:Be}}const sn=new fn(jt);return sn.process(Ur),sn.emit(Ur,jt)}function Gn(Ur,jt){const sn=jt??{seen:new Set};if(sn.seen.has(Ur))return!1;sn.seen.add(Ur);const H=Ur._zod.def;switch(H.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Gn(H.element,sn);case"object":{for(const Be in H.shape)if(Gn(H.shape[Be],sn))return!0;return!1}case"union":{for(const Be of H.options)if(Gn(Be,sn))return!0;return!1}case"intersection":return Gn(H.left,sn)||Gn(H.right,sn);case"tuple":{for(const Be of H.items)if(Gn(Be,sn))return!0;return!!(H.rest&&Gn(H.rest,sn))}case"record":return Gn(H.keyType,sn)||Gn(H.valueType,sn);case"map":return Gn(H.keyType,sn)||Gn(H.valueType,sn);case"set":return Gn(H.valueType,sn);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Gn(H.innerType,sn);case"lazy":return Gn(H.getter(),sn);case"default":return Gn(H.innerType,sn);case"prefault":return Gn(H.innerType,sn);case"custom":return!1;case"transform":return!0;case"pipe":return Gn(H.in,sn)||Gn(H.out,sn);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${H.type}`)}var Bn=u(66687),Lr=u(47356),An=u(55852);const Un={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function cr(Ur){p.$W({customError:Ur})}function mr(){return p.$W().customError}var hr;hr||(hr={});var ar=u(3174);function Cr(Ur){return xt.K_(Bn.ND,Ur)}function Yr(Ur){return xt.qG(Bn.rS,Ur)}function Xr(Ur){return xt.dN(Bn.WF,Ur)}function ni(Ur){return xt.St(Bn.Lr,Ur)}function ki(Ur){return xt.B4(Bn.aP,Ur)}(0,p.$W)(T());const zr=f},50072:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>Ze});function l(){return l=Object.assign?Object.assign.bind():function(Ne){for(var it=1;it<arguments.length;it++){var Rt=arguments[it];for(var Dn in Rt)({}).hasOwnProperty.call(Rt,Dn)&&(Ne[Dn]=Rt[Dn])}return Ne},l.apply(null,arguments)}var g=u(96540),y=u(82546),x=u(68210);function f(Ne){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},f(Ne)}function p(Ne,it){if(f(Ne)!="object"||!Ne)return Ne;var Rt=Ne[Symbol.toPrimitive];if(Rt!==void 0){var Dn=Rt.call(Ne,it||"default");if(f(Dn)!="object")return Dn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(it==="string"?String:Number)(Ne)}function h(Ne){var it=p(Ne,"string");return f(it)=="symbol"?it:it+""}function E(Ne,it,Rt){return(it=h(it))in Ne?Object.defineProperty(Ne,it,{value:Rt,enumerable:!0,configurable:!0,writable:!0}):Ne[it]=Rt,Ne}function v(Ne,it){var Rt=Object.keys(Ne);if(Object.getOwnPropertySymbols){var Dn=Object.getOwnPropertySymbols(Ne);it&&(Dn=Dn.filter(function(Mt){return Object.getOwnPropertyDescriptor(Ne,Mt).enumerable})),Rt.push.apply(Rt,Dn)}return Rt}function m(Ne){for(var it=1;it<arguments.length;it++){var Rt=arguments[it]!=null?arguments[it]:{};it%2?v(Object(Rt),!0).forEach(function(Dn){E(Ne,Dn,Rt[Dn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ne,Object.getOwnPropertyDescriptors(Rt)):v(Object(Rt)).forEach(function(Dn){Object.defineProperty(Ne,Dn,Object.getOwnPropertyDescriptor(Rt,Dn))})}return Ne}var S=u(44207),d=u(8719),O=g.createContext(null);function R(Ne){var it=Ne.children,Rt=Ne.onBatchResize,Dn=g.useRef(0),Mt=g.useRef([]),Wt=g.useContext(O),Tn=g.useCallback(function(bn,$t,Ct){Dn.current+=1;var Z=Dn.current;Mt.current.push({size:bn,element:$t,data:Ct}),Promise.resolve().then(function(){Z===Dn.current&&(Rt?.(Mt.current),Mt.current=[])}),Wt?.(bn,$t,Ct)},[Rt,Wt]);return g.createElement(O.Provider,{value:Tn},it)}var C=u(43591),L=new Map;function j(Ne){Ne.forEach(function(it){var Rt,Dn=it.target;(Rt=L.get(Dn))===null||Rt===void 0||Rt.forEach(function(Mt){return Mt(Dn)})})}var I=new C.default(j),U=null,$=null;function ee(Ne,it){L.has(Ne)||(L.set(Ne,new Set),I.observe(Ne)),L.get(Ne).add(it)}function re(Ne,it){L.has(Ne)&&(L.get(Ne).delete(it),L.get(Ne).size||(I.unobserve(Ne),L.delete(Ne)))}function Se(Ne,it){if(!(Ne instanceof it))throw new TypeError("Cannot call a class as a function")}function z(Ne,it){for(var Rt=0;Rt<it.length;Rt++){var Dn=it[Rt];Dn.enumerable=Dn.enumerable||!1,Dn.configurable=!0,"value"in Dn&&(Dn.writable=!0),Object.defineProperty(Ne,h(Dn.key),Dn)}}function Q(Ne,it,Rt){return it&&z(Ne.prototype,it),Rt&&z(Ne,Rt),Object.defineProperty(Ne,"prototype",{writable:!1}),Ne}function ce(Ne,it){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Rt,Dn){return Rt.__proto__=Dn,Rt},ce(Ne,it)}function se(Ne,it){if(typeof it!="function"&&it!==null)throw new TypeError("Super expression must either be null or a function");Ne.prototype=Object.create(it&&it.prototype,{constructor:{value:Ne,writable:!0,configurable:!0}}),Object.defineProperty(Ne,"prototype",{writable:!1}),it&&ce(Ne,it)}function q(Ne){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(it){return it.__proto__||Object.getPrototypeOf(it)},q(Ne)}function te(){try{var Ne=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(te=function(){return!!Ne})()}function A(Ne){if(Ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ne}function T(Ne,it){if(it&&(f(it)=="object"||typeof it=="function"))return it;if(it!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(Ne)}function B(Ne){var it=te();return function(){var Rt,Dn=q(Ne);if(it){var Mt=q(this).constructor;Rt=Reflect.construct(Dn,arguments,Mt)}else Rt=Dn.apply(this,arguments);return T(this,Rt)}}var X=function(Ne){se(Rt,Ne);var it=B(Rt);function Rt(){return Se(this,Rt),it.apply(this,arguments)}return Q(Rt,[{key:"render",value:function(){return this.props.children}}]),Rt}(g.Component);function ue(Ne,it){var Rt=Ne.children,Dn=Ne.disabled,Mt=g.useRef(null),Wt=g.useRef(null),Tn=g.useContext(O),bn=typeof Rt=="function",$t=bn?Rt(Mt):Rt,Ct=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Z=!bn&&g.isValidElement($t)&&(0,d.f3)($t),me=Z?(0,d.A9)($t):null,ke=(0,d.xK)(me,Mt),Ee=function(){var lt;return(0,S.Ay)(Mt.current)||(Mt.current&&f(Mt.current)==="object"?(0,S.Ay)((lt=Mt.current)===null||lt===void 0?void 0:lt.nativeElement):null)||(0,S.Ay)(Wt.current)};g.useImperativeHandle(it,function(){return Ee()});var _e=g.useRef(Ne);_e.current=Ne;var ge=g.useCallback(function(Me){var lt=_e.current,Ft=lt.onResize,Et=lt.data,Zt=Me.getBoundingClientRect(),nn=Zt.width,Pn=Zt.height,rn=Me.offsetWidth,Vt=Me.offsetHeight,Kn=Math.floor(nn),ur=Math.floor(Pn);if(Ct.current.width!==Kn||Ct.current.height!==ur||Ct.current.offsetWidth!==rn||Ct.current.offsetHeight!==Vt){var on={width:Kn,height:ur,offsetWidth:rn,offsetHeight:Vt};Ct.current=on;var tr=rn===Math.round(nn)?nn:rn,Cn=Vt===Math.round(Pn)?Pn:Vt,Wn=m(m({},on),{},{offsetWidth:tr,offsetHeight:Cn});Tn?.(Wn,Me,Et),Ft&&Promise.resolve().then(function(){Ft(Wn,Me)})}},[]);return g.useEffect(function(){var Me=Ee();return Me&&!Dn&&ee(Me,ge),function(){return re(Me,ge)}},[Mt.current,Dn]),g.createElement(X,{ref:Wt},Z?g.cloneElement($t,{ref:ke}):$t)}var ie=g.forwardRef(ue);const Te=ie;var je="rc-observer-key";function yt(Ne,it){var Rt=Ne.children,Dn=typeof Rt=="function"?[Rt]:(0,y.A)(Rt);return Dn.map(function(Mt,Wt){var Tn=Mt?.key||"".concat(je,"-").concat(Wt);return g.createElement(Te,l({},Ne,{key:Tn,ref:Wt===0?it:void 0}),Mt)})}var tt=g.forwardRef(yt);tt.Collection=R;const Ze=tt},50096:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.max=void 0;var l=u(92070),g=u(10281);function y(x){return l.reduce(g.isFunction(x)?function(f,p){return x(f,p)>0?f:p}:function(f,p){return f>p?f:p})}w.max=y},50365:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>Ct});function l(Z){if(Array.isArray(Z))return Z}function g(Z,me){var ke=Z==null?null:typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(ke!=null){var Ee,_e,ge,Me,lt=[],Ft=!0,Et=!1;try{if(ge=(ke=ke.call(Z)).next,me===0){if(Object(ke)!==ke)return;Ft=!1}else for(;!(Ft=(Ee=ge.call(ke)).done)&&(lt.push(Ee.value),lt.length!==me);Ft=!0);}catch(Zt){Et=!0,_e=Zt}finally{try{if(!Ft&&ke.return!=null&&(Me=ke.return(),Object(Me)!==Me))return}finally{if(Et)throw _e}}return lt}}function y(Z,me){(me==null||me>Z.length)&&(me=Z.length);for(var ke=0,Ee=Array(me);ke<me;ke++)Ee[ke]=Z[ke];return Ee}function x(Z,me){if(Z){if(typeof Z=="string")return y(Z,me);var ke={}.toString.call(Z).slice(8,-1);return ke==="Object"&&Z.constructor&&(ke=Z.constructor.name),ke==="Map"||ke==="Set"?Array.from(Z):ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke)?y(Z,me):void 0}}function f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(Z,me){return l(Z)||g(Z,me)||x(Z,me)||f()}var h=u(96540),E=u(40961),v=u(20998),m=u(68210),S=u(8719),d=h.createContext(null);const O=d;function R(Z){if(Array.isArray(Z))return y(Z)}function C(Z){if(typeof Symbol<"u"&&Z[Symbol.iterator]!=null||Z["@@iterator"]!=null)return Array.from(Z)}function L(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(Z){return R(Z)||C(Z)||x(Z)||L()}var I=u(30981),U=[];function $(Z,me){var ke=h.useState(function(){if(!(0,v.A)())return null;var Vt=document.createElement("div");return Vt}),Ee=p(ke,1),_e=Ee[0],ge=h.useRef(!1),Me=h.useContext(O),lt=h.useState(U),Ft=p(lt,2),Et=Ft[0],Zt=Ft[1],nn=Me||(ge.current?void 0:function(Vt){Zt(function(Kn){var ur=[Vt].concat(j(Kn));return ur})});function Pn(){_e.parentElement||document.body.appendChild(_e),ge.current=!0}function rn(){var Vt;(Vt=_e.parentElement)===null||Vt===void 0||Vt.removeChild(_e),ge.current=!1}return(0,I.A)(function(){return Z?Me?Me(Pn):Pn():rn(),rn},[Z]),(0,I.A)(function(){Et.length&&(Et.forEach(function(Vt){return Vt()}),Zt(U))},[Et]),[_e,nn]}var ee=u(87826);function re(Z,me){if(!Z)return!1;if(Z.contains)return Z.contains(me);for(var ke=me;ke;){if(ke===Z)return!0;ke=ke.parentNode}return!1}var Se="data-rc-order",z="data-rc-priority",Q="rc-util-key",ce=new Map;function se(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me=Z.mark;return me?me.startsWith("data-")?me:"data-".concat(me):Q}function q(Z){if(Z.attachTo)return Z.attachTo;var me=document.querySelector("head");return me||document.body}function te(Z){return Z==="queue"?"prependQueue":Z?"prepend":"append"}function A(Z){return Array.from((ce.get(Z)||Z).children).filter(function(me){return me.tagName==="STYLE"})}function T(Z){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,v.A)())return null;var ke=me.csp,Ee=me.prepend,_e=me.priority,ge=_e===void 0?0:_e,Me=te(Ee),lt=Me==="prependQueue",Ft=document.createElement("style");Ft.setAttribute(Se,Me),lt&&ge&&Ft.setAttribute(z,"".concat(ge)),ke!=null&&ke.nonce&&(Ft.nonce=ke?.nonce),Ft.innerHTML=Z;var Et=q(me),Zt=Et.firstChild;if(Ee){if(lt){var nn=(me.styles||A(Et)).filter(function(Pn){if(!["prepend","prependQueue"].includes(Pn.getAttribute(Se)))return!1;var rn=Number(Pn.getAttribute(z)||0);return ge>=rn});if(nn.length)return Et.insertBefore(Ft,nn[nn.length-1].nextSibling),Ft}Et.insertBefore(Ft,Zt)}else Et.appendChild(Ft);return Ft}function B(Z){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=q(me);return(me.styles||A(ke)).find(function(Ee){return Ee.getAttribute(se(me))===Z})}function X(Z){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=B(Z,me);if(ke){var Ee=q(me);Ee.removeChild(ke)}}function ue(Z,me){var ke=ce.get(Z);if(!ke||!re(document,ke)){var Ee=T("",me),_e=Ee.parentNode;ce.set(Z,_e),Z.removeChild(Ee)}}function ie(){ce.clear()}function Te(Z,me){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ee=q(ke),_e=A(Ee),ge=(0,ee.A)((0,ee.A)({},ke),{},{styles:_e});ue(Ee,ge);var Me=B(me,ge);if(Me){var lt,Ft;if((lt=ge.csp)!==null&<!==void 0&<.nonce&&Me.nonce!==((Ft=ge.csp)===null||Ft===void 0?void 0:Ft.nonce)){var Et;Me.nonce=(Et=ge.csp)===null||Et===void 0?void 0:Et.nonce}return Me.innerHTML!==Z&&(Me.innerHTML=Z),Me}var Zt=T(Z,ge);return Zt.setAttribute(se(ge),me),Zt}var je;function yt(Z){var me="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),ke=document.createElement("div");ke.id=me;var Ee=ke.style;Ee.position="absolute",Ee.left="0",Ee.top="0",Ee.width="100px",Ee.height="100px",Ee.overflow="scroll";var _e,ge;if(Z){var Me=getComputedStyle(Z);Ee.scrollbarColor=Me.scrollbarColor,Ee.scrollbarWidth=Me.scrollbarWidth;var lt=getComputedStyle(Z,"::-webkit-scrollbar"),Ft=parseInt(lt.width,10),Et=parseInt(lt.height,10);try{var Zt=Ft?"width: ".concat(lt.width,";"):"",nn=Et?"height: ".concat(lt.height,";"):"";Te(` #`.concat(me,`::-webkit-scrollbar { `).concat(Zt,` `).concat(nn,` }`),me)}catch(Vt){console.error(Vt),_e=Ft,ge=Et}}document.body.appendChild(ke);var Pn=Z&&_e&&!isNaN(_e)?_e:ke.offsetWidth-ke.clientWidth,rn=Z&&ge&&!isNaN(ge)?ge:ke.offsetHeight-ke.clientHeight;return document.body.removeChild(ke),X(me),{width:Pn,height:rn}}function tt(Z){return typeof document>"u"?0:((Z||je===void 0)&&(je=yt()),je.width)}function Ze(Z){return typeof document>"u"||!Z||!(Z instanceof Element)?{width:0,height:0}:yt(Z)}function Ne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var it="rc-util-locker-".concat(Date.now()),Rt=0;function Dn(Z){var me=!!Z,ke=h.useState(function(){return Rt+=1,"".concat(it,"_").concat(Rt)}),Ee=p(ke,1),_e=Ee[0];(0,I.A)(function(){if(me){var ge=tt(),Me=Ne();Te(` html body { overflow-y: hidden; `.concat(Me?"width: calc(100% - ".concat(ge,"px);"):"",` }`),_e)}else X(_e);return function(){X(_e)}},[me,_e])}var Mt=!1;function Wt(Z){return typeof Z=="boolean"&&(Mt=Z),Mt}var Tn=function(me){return me===!1?!1:!(0,v.A)()||!me?null:typeof me=="string"?document.querySelector(me):typeof me=="function"?me():me},bn=h.forwardRef(function(Z,me){var ke=Z.open,Ee=Z.autoLock,_e=Z.getContainer,ge=Z.debug,Me=Z.autoDestroy,lt=Me===void 0?!0:Me,Ft=Z.children,Et=h.useState(ke),Zt=p(Et,2),nn=Zt[0],Pn=Zt[1],rn=nn||ke;h.useEffect(function(){(lt||ke)&&Pn(ke)},[ke,lt]);var Vt=h.useState(function(){return Tn(_e)}),Kn=p(Vt,2),ur=Kn[0],on=Kn[1];h.useEffect(function(){var kr=Tn(_e);on(kr??null)});var tr=$(rn&&!ur,ge),Cn=p(tr,2),Wn=Cn[0],er=Cn[1],Fn=ur??Wn;Dn(Ee&&ke&&(0,v.A)()&&(Fn===Wn||Fn===document.body));var en=null;if(Ft&&(0,S.f3)(Ft)&&me){var gn=Ft;en=gn.ref}var kn=(0,S.xK)(en,me);if(!rn||!(0,v.A)()||ur===void 0)return null;var Jn=Fn===!1||Wt(),Nn=Ft;return me&&(Nn=h.cloneElement(Ft,{ref:kn})),h.createElement(O.Provider,{value:er},Jn?Nn:(0,E.createPortal)(Nn,Fn))});const Ct=bn},50439:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.argsArgArrayOrObject=void 0;var u=Array.isArray,l=Object.getPrototypeOf,g=Object.prototype,y=Object.keys;function x(p){if(p.length===1){var h=p[0];if(u(h))return{args:h,keys:null};if(f(h)){var E=y(h);return{args:E.map(function(v){return h[v]}),keys:E}}}return{args:p,keys:null}}w.argsArgArrayOrObject=x;function f(p){return p&&typeof p=="object"&&l(p)===g}},50597:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.timeoutWith=void 0;var l=u(62326),g=u(85345),y=u(81713);function x(f,p,h){var E,v,m;if(h=h??l.async,g.isValidDate(f)?E=f:typeof f=="number"&&(v=f),p)m=function(){return p};else throw new TypeError("No observable provided to switch to");if(E==null&&v==null)throw new TypeError("No timeout provided.");return y.timeout({first:E,each:v,scheduler:h,with:m})}w.timeoutWith=x},50832:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(88483),g=u(61209);function y(x){return!!x&&(x instanceof l.c||(0,g.T)(x.lift)&&(0,g.T)(x.subscribe))}},50839:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ObjectUnsubscribedError=void 0;var l=u(9619);w.ObjectUnsubscribedError=l.createErrorClass(function(g){return function(){g(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},50875:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var h=function(E,v){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,S){m.__proto__=S}||function(m,S){for(var d in S)Object.prototype.hasOwnProperty.call(S,d)&&(m[d]=S[d])},h(E,v)};return function(E,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");h(E,v);function m(){this.constructor=E}E.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.VirtualAction=w.VirtualTimeScheduler=void 0;var g=u(64772),y=u(69879),x=u(19533),f=function(h){l(E,h);function E(v,m){v===void 0&&(v=p),m===void 0&&(m=1/0);var S=h.call(this,v,function(){return S.frame})||this;return S.maxFrames=m,S.frame=0,S.index=-1,S}return E.prototype.flush=function(){for(var v=this,m=v.actions,S=v.maxFrames,d,O;(O=m[0])&&O.delay<=S&&(m.shift(),this.frame=O.delay,!(d=O.execute(O.state,O.delay))););if(d){for(;O=m.shift();)O.unsubscribe();throw d}},E.frameTimeFactor=10,E}(x.AsyncScheduler);w.VirtualTimeScheduler=f;var p=function(h){l(E,h);function E(v,m,S){S===void 0&&(S=v.index+=1);var d=h.call(this,v,m)||this;return d.scheduler=v,d.work=m,d.index=S,d.active=!0,d.index=v.index=S,d}return E.prototype.schedule=function(v,m){if(m===void 0&&(m=0),Number.isFinite(m)){if(!this.id)return h.prototype.schedule.call(this,v,m);this.active=!1;var S=new E(this.scheduler,this.work);return this.add(S),S.schedule(v,m)}else return y.Subscription.EMPTY},E.prototype.requestAsyncId=function(v,m,S){S===void 0&&(S=0),this.delay=v.frame+S;var d=v.actions;return d.push(this),d.sort(E.sortActions),1},E.prototype.recycleAsyncId=function(v,m,S){S===void 0&&(S=0)},E.prototype._execute=function(v,m){if(this.active===!0)return h.prototype._execute.call(this,v,m)},E.sortActions=function(v,m){return v.delay===m.delay?v.index===m.index?0:v.index>m.index?1:-1:v.delay>m.delay?1:-1},E}(g.AsyncAction);w.VirtualAction=p},50904:(Ge,w,u)=>{"use strict";u.d(w,{k:()=>l});function l(y,x,f,p){let h=y[x],E=y[x+1],v=0;for(let m=x+p;m<f;m+=p){const S=y[m],d=y[m+1];v+=Math.sqrt((S-h)*(S-h)+(d-E)*(d-E)),h=S,E=d}return v}function g(y,x,f,p){let h=l(y,x,f,p);const E=y[f-p]-y[x],v=y[f-p+1]-y[x+1];return h+=Math.sqrt(E*E+v*v),h}},51071:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.fromSubscribable=void 0;var l=u(48051);function g(y){return new l.Observable(function(x){return y.subscribe(x)})}w.fromSubscribable=g},51181:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.convertChangesToXML=u;function u(g){for(var y=[],x=0;x<g.length;x++){var f=g[x];f.added?y.push("<ins>"):f.removed&&y.push("<del>"),y.push(l(f.value)),f.added?y.push("</ins>"):f.removed&&y.push("</del>")}return y.join("")}function l(g){var y=g;return y=y.replace(/&/g,"&"),y=y.replace(/</g,"<"),y=y.replace(/>/g,">"),y=y.replace(/"/g,"""),y}},51479:(Ge,w,u)=>{var l=u(23212),g=u(46834);function y(x,f){function p(E,v,m,S){try{var d=x[E](v),O=d.value;return O instanceof l?f.resolve(O.v).then(function(R){p("next",R,m,S)},function(R){p("throw",R,m,S)}):f.resolve(O).then(function(R){d.value=R,m(d)},function(R){return p("throw",R,m,S)})}catch(R){S(R)}}var h;this.next||(g(y.prototype),g(y.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),g(this,"_invoke",function(E,v,m){function S(){return new f(function(d,O){p(E,m,d,O)})}return h=h?h.then(S,S):S()},!0)}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},51548:function(Ge,w){(function(u,l){l(w)})(this,function(u){"use strict";function l(it){return function(Dn,Mt,Wt,Tn,bn,$t,Ct){return it(Dn,Mt,Ct)}}function g(it){return function(Dn,Mt,Wt,Tn){if(!Dn||!Mt||typeof Dn!="object"||typeof Mt!="object")return it(Dn,Mt,Wt,Tn);var bn=Tn.get(Dn),$t=Tn.get(Mt);if(bn&&$t)return bn===Mt&&$t===Dn;Tn.set(Dn,Mt),Tn.set(Mt,Dn);var Ct=it(Dn,Mt,Wt,Tn);return Tn.delete(Dn),Tn.delete(Mt),Ct}}function y(it,Rt){var Dn={};for(var Mt in it)Dn[Mt]=it[Mt];for(var Mt in Rt)Dn[Mt]=Rt[Mt];return Dn}function x(it){return it.constructor===Object||it.constructor==null}function f(it){return typeof it.then=="function"}function p(it,Rt){return it===Rt||it!==it&&Rt!==Rt}var h="[object Arguments]",E="[object Boolean]",v="[object Date]",m="[object RegExp]",S="[object Map]",d="[object Number]",O="[object Object]",R="[object Set]",C="[object String]",L=Object.prototype.toString;function j(it){var Rt=it.areArraysEqual,Dn=it.areDatesEqual,Mt=it.areMapsEqual,Wt=it.areObjectsEqual,Tn=it.areRegExpsEqual,bn=it.areSetsEqual,$t=it.createIsNestedEqual,Ct=$t(Z);function Z(me,ke,Ee){if(me===ke)return!0;if(!me||!ke||typeof me!="object"||typeof ke!="object")return me!==me&&ke!==ke;if(x(me)&&x(ke))return Wt(me,ke,Ct,Ee);var _e=Array.isArray(me),ge=Array.isArray(ke);if(_e||ge)return _e===ge&&Rt(me,ke,Ct,Ee);var Me=L.call(me);return Me!==L.call(ke)?!1:Me===v?Dn(me,ke,Ct,Ee):Me===m?Tn(me,ke,Ct,Ee):Me===S?Mt(me,ke,Ct,Ee):Me===R?bn(me,ke,Ct,Ee):Me===O||Me===h?f(me)||f(ke)?!1:Wt(me,ke,Ct,Ee):Me===E||Me===d||Me===C?p(me.valueOf(),ke.valueOf()):!1}return Z}function I(it,Rt,Dn,Mt){var Wt=it.length;if(Rt.length!==Wt)return!1;for(;Wt-- >0;)if(!Dn(it[Wt],Rt[Wt],Wt,Wt,it,Rt,Mt))return!1;return!0}var U=g(I);function $(it,Rt){return p(it.valueOf(),Rt.valueOf())}function ee(it,Rt,Dn,Mt){var Wt=it.size===Rt.size;if(!Wt)return!1;if(!it.size)return!0;var Tn={},bn=0;return it.forEach(function($t,Ct){if(Wt){var Z=!1,me=0;Rt.forEach(function(ke,Ee){!Z&&!Tn[me]&&(Z=Dn(Ct,Ee,bn,me,it,Rt,Mt)&&Dn($t,ke,Ct,Ee,it,Rt,Mt))&&(Tn[me]=!0),me++}),bn++,Wt=Z}}),Wt}var re=g(ee),Se="_owner",z=Object.prototype.hasOwnProperty;function Q(it,Rt,Dn,Mt){var Wt=Object.keys(it),Tn=Wt.length;if(Object.keys(Rt).length!==Tn)return!1;for(var bn;Tn-- >0;){if(bn=Wt[Tn],bn===Se){var $t=!!it.$$typeof,Ct=!!Rt.$$typeof;if(($t||Ct)&&$t!==Ct)return!1}if(!z.call(Rt,bn)||!Dn(it[bn],Rt[bn],bn,bn,it,Rt,Mt))return!1}return!0}var ce=g(Q);function se(it,Rt){return it.source===Rt.source&&it.flags===Rt.flags}function q(it,Rt,Dn,Mt){var Wt=it.size===Rt.size;if(!Wt)return!1;if(!it.size)return!0;var Tn={};return it.forEach(function(bn,$t){if(Wt){var Ct=!1,Z=0;Rt.forEach(function(me,ke){!Ct&&!Tn[Z]&&(Ct=Dn(bn,me,$t,ke,it,Rt,Mt))&&(Tn[Z]=!0),Z++}),Wt=Ct}}),Wt}var te=g(q),A=Object.freeze({areArraysEqual:I,areDatesEqual:$,areMapsEqual:ee,areObjectsEqual:Q,areRegExpsEqual:se,areSetsEqual:q,createIsNestedEqual:l}),T=Object.freeze({areArraysEqual:U,areDatesEqual:$,areMapsEqual:re,areObjectsEqual:ce,areRegExpsEqual:se,areSetsEqual:te,createIsNestedEqual:l}),B=j(A);function X(it,Rt){return B(it,Rt,void 0)}var ue=j(y(A,{createIsNestedEqual:function(){return p}}));function ie(it,Rt){return ue(it,Rt,void 0)}var Te=j(T);function je(it,Rt){return Te(it,Rt,new WeakMap)}var yt=j(y(T,{createIsNestedEqual:function(){return p}}));function tt(it,Rt){return yt(it,Rt,new WeakMap)}function Ze(it){return j(y(A,it(A)))}function Ne(it){var Rt=j(y(T,it(T)));return function(Dn,Mt,Wt){return Wt===void 0&&(Wt=new WeakMap),Rt(Dn,Mt,Wt)}}u.circularDeepEqual=je,u.circularShallowEqual=tt,u.createCustomCircularEqual=Ne,u.createCustomEqual=Ze,u.deepEqual=X,u.sameValueZeroEqual=p,u.shallowEqual=ie,Object.defineProperty(u,"__esModule",{value:!0})})},51608:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.auditTime=void 0;var l=u(62326),g=u(88877),y=u(5825);function x(f,p){return p===void 0&&(p=l.asyncScheduler),g.audit(function(){return y.timer(f,p)})}w.auditTime=x},52135:(Ge,w,u)=>{"use strict";u.d(w,{d$:()=>vO,M$:()=>LC,XK:()=>w1,Aq:()=>EO});var l={};u.r(l),u.d(l,{applyToJS:()=>$f,cleanJSX:()=>wf,clone:()=>lu(),deepEqual:()=>hc,deepFreeze:()=>Td,escapeRegExp:()=>lf,getFirstDefined:()=>$c,getLogger:()=>Dl,getOpCardinality:()=>Mu,hasSafeOwnProperty:()=>Xo,isDirtyJSX:()=>Il,isImmutable:()=>Tu,isImmutableList:()=>ac,isJSX:()=>id,isJsonCompatible:()=>Ad,isJsonLogic:()=>$l,isObject:()=>$u,isObjectOrArray:()=>Fl,isSafeKeyForObject:()=>js,isTypeOf:()=>ml,logger:()=>Jc,mergeArraysSmart:()=>Od,mergeCustomizerNoArrays:()=>Cc,mergeIn:()=>gl,moment:()=>gu(),omit:()=>Ol,opDefKeysToOmit:()=>Yc,setIn:()=>Ou,shallowCopy:()=>jl,shallowEqual:()=>xc,sleep:()=>ad,toImmutableList:()=>Ju,typeOf:()=>wc,uuid:()=>es,widgetDefKeysToOmit:()=>dc});var g={};u.r(g),u.d(g,{_fixImmutableValue:()=>Yd,expandTreePath:()=>bo,expandTreeSubpath:()=>zf,fixEmptyGroupsInTree:()=>ld,fixPathsInTree:()=>Uu,getAncestorRuleGroups:()=>Wf,getFlatTree:()=>uh,getItemByPath:()=>sc,getLightTree:()=>Tc,getSwitchValues:()=>qs,getTotalReordableNodesCountInTree:()=>lh,getTotalRulesCountInTree:()=>ch,hasChildren:()=>Hf,immutableToJs:()=>$f,isEmptyTree:()=>Rd,isImmutable:()=>Tu,jsToImmutable:()=>Qc,removeIsLockedInTree:()=>Gf,toImmutableList:()=>Ju});var y={};u.r(y),u.d(y,{calculateValueType:()=>Vu,completeFuncValue:()=>ut,completeValue:()=>Pe,formatFieldName:()=>zu,getDefaultArgValue:()=>lr,getFieldPathLabels:()=>ql,getFuncPathLabels:()=>Au,getOneChildOrDescendant:()=>Kt,getValueLabel:()=>Vl,isEmptyGroupChildren:()=>ef,isEmptyItem:()=>yl,isEmptyRuleGroupExtPropertiesAndChildren:()=>hf,isEmptyRuleProperties:()=>Vc,setArgValue:()=>pr,setFuncDefaultArg:()=>ui,setFuncDefaultArgs:()=>Mr,whatRulePropertiesAreCompleted:()=>Th});var x={};u.r(x),u.d(x,{addJsonLogicOperation:()=>bl,addRequiredJsonLogicOperations:()=>Ac,applyJsonLogic:()=>au,customJsonLogicOperations:()=>Nu,jsonLogicFormatConcat:()=>Al,jsonLogicImportConcat:()=>Mf});var f={};u.r(f),u.d(f,{LINEAR_REGRESSION:()=>Ah,LOWER:()=>Gh,NOW:()=>Sl,RELATIVE_DATE:()=>Qd,RELATIVE_DATETIME:()=>hd,START_OF_TODAY:()=>_l,TODAY:()=>Wh,TRUNCATE_DATETIME:()=>Sp,UPPER:()=>_p});var p={};u.r(p),u.d(p,{mongoEmptyValue:()=>Dv,mongoFieldEscape:()=>dh,mongoFieldUnescape:()=>B0,mongoFormatOp1:()=>Mv,mongoFormatOp2:()=>yg});var h={};u.r(h),u.d(h,{spelEscape:()=>hh,spelFixList:()=>jv,spelFormatConcat:()=>xg,spelImportConcat:()=>Fv});var E={};u.r(E),u.d(E,{SqlString:()=>Lf,mongoEmptyValue:()=>Dv,spelEscape:()=>hh,spelFixList:()=>jv,spelFormatConcat:()=>xg,spelImportConcat:()=>Fv,sqlEmptyValue:()=>Cp,stringifyForDisplay:()=>Op,wrapWithBrackets:()=>Cg});var v={};u.r(v),u.d(v,{_mongodbFormat:()=>Eg,_spelFormat:()=>Gv,_sqlFormat:()=>$v,elasticSearchFormat:()=>Wg,jsonLogicFormat:()=>N0,mongodbFormat:()=>_g,queryBuilderFormat:()=>ca,queryString:()=>Lg,spelFormat:()=>J0,sqlFormat:()=>mf});var m={};u.r(m),u.d(m,{_getFromConfigCache:()=>df,_getWidgetsAndSrcsForFieldOp:()=>Af,_saveToConfigCache:()=>ud,_widgetDefKeysToOmit:()=>Xl,applyJsonLogic:()=>au,areConfigsSame:()=>pd,cleanJSX:()=>wf,compileConfig:()=>al,compressConfig:()=>_s,configKeys:()=>Zu,createConfigMemo:()=>sg,decompressConfig:()=>Ku,extendConfig:()=>vf,filterValueSourcesForField:()=>Rf,findExtendedConfigInAllMemos:()=>vd,getCommonMemo:()=>tc,getFieldConfig:()=>as,getFieldId:()=>Oc,getFieldParts:()=>ru,getFieldPartsConfigs:()=>Uc,getFieldPath:()=>oc,getFieldPathParts:()=>Tf,getFieldRawConfig:()=>Eu,getFieldSrc:()=>Tl,getFieldWidgetConfig:()=>Xu,getFirstField:()=>Ql,getFirstOperator:()=>Xc,getFuncArgConfig:()=>Uf,getFuncConfig:()=>wu,getFuncSignature:()=>sd,getOperatorConfig:()=>nu,getOperatorsForField:()=>Vf,getOperatorsForType:()=>el,getValueSourcesForFieldOp:()=>Oh,getWidgetForFieldOp:()=>ku,getWidgetsForFieldOp:()=>zh,isDirtyJSX:()=>Il,isFieldDescendantOfField:()=>sh,isJSX:()=>id,iterateFields:()=>Zc,iterateFuncs:()=>Of,normalizeField:()=>il,selectTypes:()=>ff});var S={};u.r(S),u.d(S,{getItemInListValues:()=>cp,getListValue:()=>Xp,getTitleInListValues:()=>bm,getValueInListValues:()=>jy,listValuesToArray:()=>Zp,makeCustomListValue:()=>ym,mapListValues:()=>Sm,searchListValue:()=>_m,toListValue:()=>Ud});var d={};u.r(d),u.d(d,{_validateTree:()=>Lh,checkTree:()=>wm,getTreeBadFields:()=>fp,isValidTree:()=>By,sanitizeTree:()=>$y,translateValidation:()=>gf,validateAndFixTree:()=>xm,validateRange:()=>rh,validateTree:()=>Lc,validateValue:()=>yd});var O={};u.r(O),u.d(O,{getCompatibleArgsOnFuncChange:()=>Om,getDefaultArgValue:()=>lr,setArgValue:()=>pr,setArgValueAsyncListValues:()=>Gy,setArgValueSrc:()=>Wy,setFunc:()=>Cm,setFuncDefaultArg:()=>ui,setFuncDefaultArgs:()=>Mr});var R={};u.r(R),u.d(R,{createListFromArray:()=>Df,createListWithOneElement:()=>Id,defaultConjunction:()=>Kf,defaultGroupConjunction:()=>qc,defaultGroupProperties:()=>pc,defaultItemProperties:()=>Ky,defaultOperatorOptions:()=>Pd,defaultRoot:()=>Qp,defaultRule:()=>Yy,defaultRuleProperties:()=>bd,emptyProperties:()=>cd,getDefaultField:()=>Jd,getDefaultFieldSrc:()=>If,getDefaultOperator:()=>fh,getDefaultSubField:()=>Pf});var C={};u.r(C),u.d(C,{fixListValuesGroupOrder:()=>Jb,getListValue:()=>Xp,listValueToOption:()=>Yb,mergeListValues:()=>Am,optionToListValue:()=>Hb,optionsToListValues:()=>Kb,simulateAsyncFetch:()=>Qy});var L={};u.r(L),u.d(L,{Autocomplete:()=>C,ConfigUtils:()=>m,DefaultUtils:()=>R,ExportUtils:()=>E,FuncUtils:()=>O,JsonLogicUtils:()=>x,ListUtils:()=>S,MongoUtils:()=>p,OtherUtils:()=>l,RuleUtils:()=>y,SpelUtils:()=>h,TreeUtils:()=>g,Validation:()=>d,checkTree:()=>wm,clone:()=>lu(),compressConfig:()=>_s,decompressConfig:()=>Ku,getSwitchValues:()=>qs,i18n:()=>ky,isValidTree:()=>By,moment:()=>gu(),sanitizeTree:()=>$y,uuid:()=>es,validateAndFixTree:()=>xm,validateTree:()=>Lc});var j={};u.r(j),u.d(j,{_loadFromJsonLogic:()=>ty,_loadFromSpel:()=>h0,getTree:()=>ib,isImmutableTree:()=>Gg,isJsonLogic:()=>$l,isTree:()=>Hg,jsToImmutable:()=>Qc,loadFromJsonLogic:()=>ob,loadFromSpel:()=>Bh,loadTree:()=>jp});var I={};u.r(I),u.d(I,{addCaseGroup:()=>$h,addDefaultCaseGroup:()=>Sd,addGroup:()=>dv,addRule:()=>Gd,moveItem:()=>Os,removeGroup:()=>Uo,removeRule:()=>yf,setTree:()=>xh});var U={};u.r(U),u.d(U,{setConjunction:()=>ks,setLock:()=>ul,setNot:()=>sl});var $={};u.r($),u.d($,{setField:()=>rf,setFieldSrc:()=>gc,setFuncValue:()=>m0,setOperator:()=>bf,setOperatorOption:()=>AE,setValue:()=>qf,setValueSrc:()=>Ch});var ee={};u.r(ee),u.d(ee,{bindActionCreators:()=>v1,isUsingLegacyReactDomRender:()=>p1,liteShouldComponentUpdate:()=>E0,pureShouldComponentUpdate:()=>pv,useOnPropsChanged:()=>Sf});var re={};u.r(re),u.d(re,{FuncWidget:()=>CS,ValueFieldWidget:()=>iE,VanillaBooleanWidget:()=>$C,VanillaButton:()=>tO,VanillaButtonGroup:()=>rO,VanillaConjs:()=>qC,VanillaDateTimeWidget:()=>GC,VanillaDateWidget:()=>zC,VanillaFieldSelect:()=>QC,VanillaIcon:()=>nO,VanillaMultiSelectWidget:()=>KC,VanillaNumberWidget:()=>ZC,VanillaProvider:()=>sO,VanillaSelectWidget:()=>JC,VanillaSliderWidget:()=>XC,VanillaSwitch:()=>aO,VanillaTextAreaWidget:()=>VC,VanillaTextWidget:()=>UC,VanillaTimeWidget:()=>WC,VanillaValueSources:()=>iO,vanillaConfirm:()=>oO});var Se={};u.r(Se),u.d(Se,{ProximityOperator:()=>IS});function z(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(c){"@babel/helpers - typeof";return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(c)}function ce(c,t){if(Q(c)!="object"||!c)return c;var i=c[Symbol.toPrimitive];if(i!==void 0){var s=i.call(c,t||"default");if(Q(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(c)}function se(c){var t=ce(c,"string");return Q(t)=="symbol"?t:t+""}function q(c,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,se(s.key),s)}}function te(c,t,i){return t&&q(c.prototype,t),i&&q(c,i),Object.defineProperty(c,"prototype",{writable:!1}),c}function A(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function T(c,t){if(t&&(Q(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(c)}function B(c){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(c)}function X(c,t){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},X(c,t)}function ue(c,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),t&&X(c,t)}var ie=u(96540);function Te(c){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(c)}function je(c,t){if(Te(c)!="object"||!c)return c;var i=c[Symbol.toPrimitive];if(i!==void 0){var s=i.call(c,t||"default");if(Te(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(c)}function yt(c){var t=je(c,"string");return Te(t)=="symbol"?t:t+""}function tt(c,t,i){return(t=yt(t))in c?Object.defineProperty(c,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):c[t]=i,c}function Ze(c){if(Array.isArray(c))return c}function Ne(c,t){var i=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(i!=null){var s,b,M,F,W=[],J=!0,ae=!1;try{if(M=(i=i.call(c)).next,t===0){if(Object(i)!==i)return;J=!1}else for(;!(J=(s=M.call(i)).done)&&(W.push(s.value),W.length!==t);J=!0);}catch(Re){ae=!0,b=Re}finally{try{if(!J&&i.return!=null&&(F=i.return(),Object(F)!==F))return}finally{if(ae)throw b}}return W}}function it(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Rt(c,t){if(c){if(typeof c=="string")return it(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?it(c,t):void 0}}function Dn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mt(c,t){return Ze(c)||Ne(c,t)||Rt(c,t)||Dn()}function Wt(c){if(Array.isArray(c))return it(c)}function Tn(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}function bn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(c){return Wt(c)||Tn(c)||Rt(c)||bn()}var Ct="delete",Z=5,me=1<<Z,ke=me-1,Ee={};function _e(){return{value:!1}}function ge(c){c&&(c.value=!0)}function Me(){}function lt(c){return c.size===void 0&&(c.size=c.__iterate(Et)),c.size}function Ft(c,t){if(typeof t!="number"){var i=t>>>0;if(""+i!==t||i===4294967295)return NaN;t=i}return t<0?lt(c)+t:t}function Et(){return!0}function Zt(c,t,i){return(c===0&&!Vt(c)||i!==void 0&&c<=-i)&&(t===void 0||i!==void 0&&t>=i)}function nn(c,t){return rn(c,t,0)}function Pn(c,t){return rn(c,t,t)}function rn(c,t,i){return c===void 0?i:Vt(c)?t===1/0?t:Math.max(0,t+c)|0:t===void 0||t===c?c:Math.min(t,c)|0}function Vt(c){return c<0||c===0&&1/c===-1/0}var Kn="@@__IMMUTABLE_ITERABLE__@@";function ur(c){return!!(c&&c[Kn])}var on="@@__IMMUTABLE_KEYED__@@";function tr(c){return!!(c&&c[on])}var Cn="@@__IMMUTABLE_INDEXED__@@";function Wn(c){return!!(c&&c[Cn])}function er(c){return tr(c)||Wn(c)}var Fn=function(t){return ur(t)?t:qe(t)},en=function(c){function t(i){return tr(i)?i:Pt(i)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t}(Fn),gn=function(c){function t(i){return Wn(i)?i:zt(i)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t}(Fn),kn=function(c){function t(i){return ur(i)&&!er(i)?i:un(i)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t}(Fn);Fn.Keyed=en,Fn.Indexed=gn,Fn.Set=kn;var Jn="@@__IMMUTABLE_SEQ__@@";function Nn(c){return!!(c&&c[Jn])}var kr="@@__IMMUTABLE_RECORD__@@";function bt(c){return!!(c&&c[kr])}function ne(c){return ur(c)||bt(c)}var fe="@@__IMMUTABLE_ORDERED__@@";function K(c){return!!(c&&c[fe])}var he=0,Fe=1,Nt=2,ln=typeof Symbol=="function"&&Symbol.iterator,pn="@@iterator",Yn=ln||pn,ht=function(t){this.next=t};ht.prototype.toString=function(){return"[Iterator]"},ht.KEYS=he,ht.VALUES=Fe,ht.ENTRIES=Nt,ht.prototype.inspect=ht.prototype.toSource=function(){return this.toString()},ht.prototype[Yn]=function(){return this};function De(c,t,i,s){var b=c===0?t:c===1?i:[t,i];return s?s.value=b:s={value:b,done:!1},s}function we(){return{value:void 0,done:!0}}function Ke(c){return Array.isArray(c)?!0:!!We(c)}function be(c){return c&&typeof c.next=="function"}function pt(c){var t=We(c);return t&&t.call(c)}function We(c){var t=c&&(ln&&c[ln]||c[pn]);if(typeof t=="function")return t}function Je(c){var t=We(c);return t&&t===c.entries}function ye(c){var t=We(c);return t&&t===c.keys}var Qe=Object.prototype.hasOwnProperty;function ze(c){return Array.isArray(c)||typeof c=="string"?!0:c&&typeof c=="object"&&Number.isInteger(c.length)&&c.length>=0&&(c.length===0?Object.keys(c).length===1:c.hasOwnProperty(c.length-1))}var qe=function(c){function t(i){return i==null?fn():ne(i)?i.toSeq():Bn(i)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(s,b){var M=this._cache;if(M){for(var F=M.length,W=0;W!==F;){var J=M[b?F-++W:W++];if(s(J[1],J[0],this)===!1)break}return W}return this.__iterateUncached(s,b)},t.prototype.__iterator=function(s,b){var M=this._cache;if(M){var F=M.length,W=0;return new ht(function(){if(W===F)return we();var J=M[b?F-++W:W++];return De(s,J[0],J[1])})}return this.__iteratorUncached(s,b)},t}(Fn),Pt=function(c){function t(i){return i==null?fn().toKeyedSeq():ur(i)?tr(i)?i.toSeq():i.fromEntrySeq():bt(i)?i.toSeq():On(i)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(qe),zt=function(c){function t(i){return i==null?fn():ur(i)?tr(i)?i.entrySeq():i.toIndexedSeq():bt(i)?i.toSeq().entrySeq():Gn(i)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(qe),un=function(c){function t(i){return(ur(i)&&!er(i)?i:zt(i)).toSetSeq()}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(qe);qe.isSeq=Nn,qe.Keyed=Pt,qe.Set=un,qe.Indexed=zt,qe.prototype[Jn]=!0;var hn=function(c){function t(i){this._array=i,this.size=i.length}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.get=function(s,b){return this.has(s)?this._array[Ft(this,s)]:b},t.prototype.__iterate=function(s,b){for(var M=this._array,F=M.length,W=0;W!==F;){var J=b?F-++W:W++;if(s(M[J],J,this)===!1)break}return W},t.prototype.__iterator=function(s,b){var M=this._array,F=M.length,W=0;return new ht(function(){if(W===F)return we();var J=b?F-++W:W++;return De(s,J,M[J])})},t}(zt),xt=function(c){function t(i){var s=Object.keys(i).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i):[]);this._object=i,this._keys=s,this.size=s.length}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.get=function(s,b){return b!==void 0&&!this.has(s)?b:this._object[s]},t.prototype.has=function(s){return Qe.call(this._object,s)},t.prototype.__iterate=function(s,b){for(var M=this._object,F=this._keys,W=F.length,J=0;J!==W;){var ae=F[b?W-++J:J++];if(s(M[ae],ae,this)===!1)break}return J},t.prototype.__iterator=function(s,b){var M=this._object,F=this._keys,W=F.length,J=0;return new ht(function(){if(J===W)return we();var ae=F[b?W-++J:J++];return De(s,ae,M[ae])})},t}(Pt);xt.prototype[fe]=!0;var _t=function(c){function t(i){this._collection=i,this.size=i.length||i.size}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(s,b){if(b)return this.cacheResult().__iterate(s,b);var M=this._collection,F=pt(M),W=0;if(be(F))for(var J;!(J=F.next()).done&&s(J.value,W++,this)!==!1;);return W},t.prototype.__iteratorUncached=function(s,b){if(b)return this.cacheResult().__iterator(s,b);var M=this._collection,F=pt(M);if(!be(F))return new ht(we);var W=0;return new ht(function(){var J=F.next();return J.done?J:De(s,W++,J.value)})},t}(zt),qt;function fn(){return qt||(qt=new hn([]))}function On(c){var t=Lr(c);if(t)return t.fromEntrySeq();if(typeof c=="object")return new xt(c);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+c)}function Gn(c){var t=Lr(c);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+c)}function Bn(c){var t=Lr(c);if(t)return Je(c)?t.fromEntrySeq():ye(c)?t.toSetSeq():t;if(typeof c=="object")return new xt(c);throw new TypeError("Expected Array or collection object of values, or keyed object: "+c)}function Lr(c){return ze(c)?new hn(c):Ke(c)?new _t(c):void 0}var An="@@__IMMUTABLE_MAP__@@";function Un(c){return!!(c&&c[An])}function cr(c){return Un(c)&&K(c)}function mr(c){return!!(c&&typeof c.equals=="function"&&typeof c.hashCode=="function")}function hr(c,t){if(c===t||c!==c&&t!==t)return!0;if(!c||!t)return!1;if(typeof c.valueOf=="function"&&typeof t.valueOf=="function"){if(c=c.valueOf(),t=t.valueOf(),c===t||c!==c&&t!==t)return!0;if(!c||!t)return!1}return!!(mr(c)&&mr(t)&&c.equals(t))}var ar=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,i){t|=0,i|=0;var s=t&65535,b=i&65535;return s*b+((t>>>16)*b+s*(i>>>16)<<16>>>0)|0};function Cr(c){return c>>>1&1073741824|c&3221225471}var Yr=Object.prototype.valueOf;function Xr(c){if(c==null)return ni(c);if(typeof c.hashCode=="function")return Cr(c.hashCode(c));var t=wn(c);if(t==null)return ni(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return ki(t);case"string":return t.length>nt?zr(t):Ur(t);case"object":case"function":return sn(t);case"symbol":return jt(t);default:if(typeof t.toString=="function")return Ur(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function ni(c){return c===null?1108378658:1108378659}function ki(c){if(c!==c||c===1/0)return 0;var t=c|0;for(t!==c&&(t^=c*4294967295);c>4294967295;)c/=4294967295,t^=c;return Cr(t)}function zr(c){var t=En[c];return t===void 0&&(t=Ur(c),Gt===Tt&&(Gt=0,En={}),Gt++,En[c]=t),t}function Ur(c){for(var t=0,i=0;i<c.length;i++)t=31*t+c.charCodeAt(i)|0;return Cr(t)}function jt(c){var t=Ve[c];return t!==void 0||(t=bi(),Ve[c]=t),t}function sn(c){var t;if(Oi&&(t=de.get(c),t!==void 0)||(t=c[Qt],t!==void 0)||!H&&(t=c.propertyIsEnumerable&&c.propertyIsEnumerable[Qt],t!==void 0||(t=Be(c),t!==void 0)))return t;if(t=bi(),Oi)de.set(c,t);else{if(Rn!==void 0&&Rn(c)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(H)Object.defineProperty(c,Qt,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(c.propertyIsEnumerable!==void 0&&c.propertyIsEnumerable===c.constructor.prototype.propertyIsEnumerable)c.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},c.propertyIsEnumerable[Qt]=t;else if(c.nodeType!==void 0)c[Qt]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var Rn=Object.isExtensible,H=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function Be(c){if(c&&c.nodeType>0)switch(c.nodeType){case 1:return c.uniqueID;case 9:return c.documentElement&&c.documentElement.uniqueID}}function wn(c){return c.valueOf!==Yr&&typeof c.valueOf=="function"?c.valueOf(c):c}function bi(){var c=++vt;return vt&1073741824&&(vt=0),c}var Oi=typeof WeakMap=="function",de;Oi&&(de=new WeakMap);var Ve=Object.create(null),vt=0,Qt="__immutablehash__";typeof Symbol=="function"&&(Qt=Symbol(Qt));var nt=16,Tt=255,Gt=0,En={},Qn=function(c){function t(i,s){this._iter=i,this._useKeys=s,this.size=i.size}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.get=function(s,b){return this._iter.get(s,b)},t.prototype.has=function(s){return this._iter.has(s)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var s=this,b=ei(this,!0);return this._useKeys||(b.valueSeq=function(){return s._iter.toSeq().reverse()}),b},t.prototype.map=function(s,b){var M=this,F=mi(this,s,b);return this._useKeys||(F.valueSeq=function(){return M._iter.toSeq().map(s,b)}),F},t.prototype.__iterate=function(s,b){var M=this;return this._iter.__iterate(function(F,W){return s(F,W,M)},b)},t.prototype.__iterator=function(s,b){return this._iter.__iterator(s,b)},t}(Pt);Qn.prototype[fe]=!0;var Or=function(c){function t(i){this._iter=i,this.size=i.size}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.includes=function(s){return this._iter.includes(s)},t.prototype.__iterate=function(s,b){var M=this,F=0;return b&<(this),this._iter.__iterate(function(W){return s(W,b?M.size-++F:F++,M)},b)},t.prototype.__iterator=function(s,b){var M=this,F=this._iter.__iterator(Fe,b),W=0;return b&<(this),new ht(function(){var J=F.next();return J.done?J:De(s,b?M.size-++W:W++,J.value,J)})},t}(zt),Pr=function(c){function t(i){this._iter=i,this.size=i.size}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.has=function(s){return this._iter.includes(s)},t.prototype.__iterate=function(s,b){var M=this;return this._iter.__iterate(function(F){return s(F,F,M)},b)},t.prototype.__iterator=function(s,b){var M=this._iter.__iterator(Fe,b);return new ht(function(){var F=M.next();return F.done?F:De(s,F.value,F.value,F)})},t}(un),ai=function(c){function t(i){this._iter=i,this.size=i.size}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(s,b){var M=this;return this._iter.__iterate(function(F){if(F){Tr(F);var W=ur(F);return s(W?F.get(1):F[1],W?F.get(0):F[0],M)}},b)},t.prototype.__iterator=function(s,b){var M=this._iter.__iterator(Fe,b);return new ht(function(){for(;;){var F=M.next();if(F.done)return F;var W=F.value;if(W){Tr(W);var J=ur(W);return De(s,J?W.get(0):W[0],J?W.get(1):W[1],F)}}})},t}(Pt);Or.prototype.cacheResult=Qn.prototype.cacheResult=Pr.prototype.cacheResult=ai.prototype.cacheResult=_i;function xi(c){var t=ti(c);return t._iter=c,t.size=c.size,t.flip=function(){return c},t.reverse=function(){var i=c.reverse.apply(this);return i.flip=function(){return c.reverse()},i},t.has=function(i){return c.includes(i)},t.includes=function(i){return c.has(i)},t.cacheResult=_i,t.__iterateUncached=function(i,s){var b=this;return c.__iterate(function(M,F){return i(F,M,b)!==!1},s)},t.__iteratorUncached=function(i,s){if(i===Nt){var b=c.__iterator(i,s);return new ht(function(){var M=b.next();if(!M.done){var F=M.value[0];M.value[0]=M.value[1],M.value[1]=F}return M})}return c.__iterator(i===Fe?he:Fe,s)},t}function mi(c,t,i){var s=ti(c);return s.size=c.size,s.has=function(b){return c.has(b)},s.get=function(b,M){var F=c.get(b,Ee);return F===Ee?M:t.call(i,F,b,c)},s.__iterateUncached=function(b,M){var F=this;return c.__iterate(function(W,J,ae){return b(t.call(i,W,J,ae),J,F)!==!1},M)},s.__iteratorUncached=function(b,M){var F=c.__iterator(Nt,M);return new ht(function(){var W=F.next();if(W.done)return W;var J=W.value,ae=J[0];return De(b,ae,t.call(i,J[1],ae,c),W)})},s}function ei(c,t){var i=this,s=ti(c);return s._iter=c,s.size=c.size,s.reverse=function(){return c},c.flip&&(s.flip=function(){var b=xi(c);return b.reverse=function(){return c.flip()},b}),s.get=function(b,M){return c.get(t?b:-1-b,M)},s.has=function(b){return c.has(t?b:-1-b)},s.includes=function(b){return c.includes(b)},s.cacheResult=_i,s.__iterate=function(b,M){var F=this,W=0;return M&<(c),c.__iterate(function(J,ae){return b(J,t?ae:M?F.size-++W:W++,F)},!M)},s.__iterator=function(b,M){var F=0;M&<(c);var W=c.__iterator(Nt,!M);return new ht(function(){var J=W.next();if(J.done)return J;var ae=J.value;return De(b,t?ae[0]:M?i.size-++F:F++,ae[1],J)})},s}function Qr(c,t,i,s){var b=ti(c);return s&&(b.has=function(M){var F=c.get(M,Ee);return F!==Ee&&!!t.call(i,F,M,c)},b.get=function(M,F){var W=c.get(M,Ee);return W!==Ee&&t.call(i,W,M,c)?W:F}),b.__iterateUncached=function(M,F){var W=this,J=0;return c.__iterate(function(ae,Re,He){if(t.call(i,ae,Re,He))return J++,M(ae,s?Re:J-1,W)},F),J},b.__iteratorUncached=function(M,F){var W=c.__iterator(Nt,F),J=0;return new ht(function(){for(;;){var ae=W.next();if(ae.done)return ae;var Re=ae.value,He=Re[0],at=Re[1];if(t.call(i,at,He,c))return De(M,s?He:J++,at,ae)}})},b}function Ni(c,t,i){var s=Pi().asMutable();return c.__iterate(function(b,M){s.update(t.call(i,b,M,c),0,function(F){return F+1})}),s.asImmutable()}function ea(c,t,i){var s=tr(c),b=(K(c)?no():Pi()).asMutable();c.__iterate(function(F,W){b.update(t.call(i,F,W,c),function(J){return J=J||[],J.push(s?[W,F]:F),J})});var M=Nr(c);return b.map(function(F){return Xn(c,M(F))}).asImmutable()}function Qi(c,t,i){var s=tr(c),b=[[],[]];c.__iterate(function(F,W){b[t.call(i,F,W,c)?1:0].push(s?[W,F]:F)});var M=Nr(c);return b.map(function(F){return Xn(c,M(F))})}function ir(c,t,i,s){var b=c.size;if(Zt(t,i,b))return c;if(typeof b>"u"&&(t<0||i<0))return ir(c.toSeq().cacheResult(),t,i,s);var M=nn(t,b),F=Pn(i,b),W=F-M,J;W===W&&(J=W<0?0:W);var ae=ti(c);return ae.size=J===0?J:c.size&&J||void 0,!s&&Nn(c)&&J>=0&&(ae.get=function(Re,He){return Re=Ft(this,Re),Re>=0&&Re<J?c.get(Re+M,He):He}),ae.__iterateUncached=function(Re,He){var at=this;if(J===0)return 0;if(He)return this.cacheResult().__iterate(Re,He);var Bt=0,Sn=!0,yn=0;return c.__iterate(function(xn,sr){if(!(Sn&&(Sn=Bt++<M)))return yn++,Re(xn,s?sr:yn-1,at)!==!1&&yn!==J}),yn},ae.__iteratorUncached=function(Re,He){if(J!==0&&He)return this.cacheResult().__iterator(Re,He);if(J===0)return new ht(we);var at=c.__iterator(Re,He),Bt=0,Sn=0;return new ht(function(){for(;Bt++<M;)at.next();if(++Sn>J)return we();var yn=at.next();return s||Re===Fe||yn.done?yn:Re===he?De(Re,Sn-1,void 0,yn):De(Re,Sn-1,yn.value[1],yn)})},ae}function xr(c,t,i){var s=ti(c);return s.__iterateUncached=function(b,M){var F=this;if(M)return this.cacheResult().__iterate(b,M);var W=0;return c.__iterate(function(J,ae,Re){return t.call(i,J,ae,Re)&&++W&&b(J,ae,F)}),W},s.__iteratorUncached=function(b,M){var F=this;if(M)return this.cacheResult().__iterator(b,M);var W=c.__iterator(Nt,M),J=!0;return new ht(function(){if(!J)return we();var ae=W.next();if(ae.done)return ae;var Re=ae.value,He=Re[0],at=Re[1];return t.call(i,at,He,F)?b===Nt?ae:De(b,He,at,ae):(J=!1,we())})},s}function di(c,t,i,s){var b=ti(c);return b.__iterateUncached=function(M,F){var W=this;if(F)return this.cacheResult().__iterate(M,F);var J=!0,ae=0;return c.__iterate(function(Re,He,at){if(!(J&&(J=t.call(i,Re,He,at))))return ae++,M(Re,s?He:ae-1,W)}),ae},b.__iteratorUncached=function(M,F){var W=this;if(F)return this.cacheResult().__iterator(M,F);var J=c.__iterator(Nt,F),ae=!0,Re=0;return new ht(function(){var He,at,Bt;do{if(He=J.next(),He.done)return s||M===Fe?He:M===he?De(M,Re++,void 0,He):De(M,Re++,He.value[1],He);var Sn=He.value;at=Sn[0],Bt=Sn[1],ae&&(ae=t.call(i,Bt,at,W))}while(ae);return M===Nt?He:De(M,at,Bt,He)})},b}function ft(c,t){var i=tr(c),s=[c].concat(t).map(function(F){return ur(F)?i&&(F=en(F)):F=i?On(F):Gn(Array.isArray(F)?F:[F]),F}).filter(function(F){return F.size!==0});if(s.length===0)return c;if(s.length===1){var b=s[0];if(b===c||i&&tr(b)||Wn(c)&&Wn(b))return b}var M=new hn(s);return i?M=M.toKeyedSeq():Wn(c)||(M=M.toSetSeq()),M=M.flatten(!0),M.size=s.reduce(function(F,W){if(F!==void 0){var J=W.size;if(J!==void 0)return F+J}},0),M}function zn(c,t,i){var s=ti(c);return s.__iterateUncached=function(b,M){if(M)return this.cacheResult().__iterate(b,M);var F=0,W=!1;function J(ae,Re){ae.__iterate(function(He,at){return(!t||Re<t)&&ur(He)?J(He,Re+1):(F++,b(He,i?at:F-1,s)===!1&&(W=!0)),!W},M)}return J(c,0),F},s.__iteratorUncached=function(b,M){if(M)return this.cacheResult().__iterator(b,M);var F=c.__iterator(b,M),W=[],J=0;return new ht(function(){for(;F;){var ae=F.next();if(ae.done!==!1){F=W.pop();continue}var Re=ae.value;if(b===Nt&&(Re=Re[1]),(!t||W.length<t)&&ur(Re))W.push(F),F=Re.__iterator(b,M);else return i?ae:De(b,J++,Re,ae)}return we()})},s}function Zn(c,t,i){var s=Nr(c);return c.toSeq().map(function(b,M){return s(t.call(i,b,M,c))}).flatten(!0)}function wi(c,t){var i=ti(c);return i.size=c.size&&c.size*2-1,i.__iterateUncached=function(s,b){var M=this,F=0;return c.__iterate(function(W){return(!F||s(t,F++,M)!==!1)&&s(W,F++,M)!==!1},b),F},i.__iteratorUncached=function(s,b){var M=c.__iterator(Fe,b),F=0,W;return new ht(function(){return(!W||F%2)&&(W=M.next(),W.done)?W:F%2?De(s,F++,t):De(s,F++,W.value,W)})},i}function Ea(c,t,i){t||(t=Ii);var s=tr(c),b=0,M=c.toSeq().map(function(F,W){return[W,F,b++,i?i(F,W,c):F]}).valueSeq().toArray();return M.sort(function(F,W){return t(F[3],W[3])||F[2]-W[2]}).forEach(s?function(F,W){M[W].length=2}:function(F,W){M[W]=F[1]}),s?Pt(M):Wn(c)?zt(M):un(M)}function wa(c,t,i){if(t||(t=Ii),i){var s=c.toSeq().map(function(b,M){return[b,i(b,M,c)]}).reduce(function(b,M){return ji(t,b[1],M[1])?M:b});return s&&s[0]}return c.reduce(function(b,M){return ji(t,b,M)?M:b})}function ji(c,t,i){var s=c(i,t);return s===0&&i!==t&&(i==null||i!==i)||s>0}function Dt(c,t,i,s){var b=ti(c),M=new hn(i).map(function(F){return F.size});return b.size=s?M.max():M.min(),b.__iterate=function(F,W){for(var J=this.__iterator(Fe,W),ae,Re=0;!(ae=J.next()).done&&F(ae.value,Re++,this)!==!1;);return Re},b.__iteratorUncached=function(F,W){var J=i.map(function(He){return He=Fn(He),pt(W?He.reverse():He)}),ae=0,Re=!1;return new ht(function(){var He;return Re||(He=J.map(function(at){return at.next()}),Re=s?He.every(function(at){return at.done}):He.some(function(at){return at.done})),Re?we():De(F,ae++,t.apply(null,He.map(function(at){return at.value})))})},b}function Xn(c,t){return c===t?c:Nn(c)?t:c.constructor(t)}function Tr(c){if(c!==Object(c))throw new TypeError("Expected [K, V] tuple: "+c)}function Nr(c){return tr(c)?en:Wn(c)?gn:kn}function ti(c){return Object.create((tr(c)?Pt:Wn(c)?zt:un).prototype)}function _i(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):qe.prototype.cacheResult.call(this)}function Ii(c,t){return c===void 0&&t===void 0?0:c===void 0?1:t===void 0?-1:c>t?1:c<t?-1:0}function ta(c,t){t=t||0;for(var i=Math.max(0,c.length-t),s=new Array(i),b=0;b<i;b++)s[b]=c[b+t];return s}function Ji(c,t){if(!c)throw new Error(t)}function k(c){Ji(c!==1/0,"Cannot perform this action with an infinite size.")}function ve(c){if(ze(c)&&typeof c!="string")return c;if(K(c))return c.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+c)}var Le=Object.prototype.toString;function Ye(c){if(!c||typeof c!="object"||Le.call(c)!=="[object Object]")return!1;var t=Object.getPrototypeOf(c);if(t===null)return!0;for(var i=t,s=Object.getPrototypeOf(t);s!==null;)i=s,s=Object.getPrototypeOf(i);return i===t}function ot(c){return typeof c=="object"&&(ne(c)||Array.isArray(c)||Ye(c))}function Lt(c){try{return typeof c=="string"?JSON.stringify(c):String(c)}catch{return JSON.stringify(c)}}function an(c,t){return ne(c)?c.has(t):ot(c)&&Qe.call(c,t)}function nr(c,t,i){return ne(c)?c.get(t,i):an(c,t)?typeof c.get=="function"?c.get(t):c[t]:i}function vr(c){if(Array.isArray(c))return ta(c);var t={};for(var i in c)Qe.call(c,i)&&(t[i]=c[i]);return t}function $r(c,t){if(!ot(c))throw new TypeError("Cannot update non-data-structure value: "+c);if(ne(c)){if(!c.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+c);return c.remove(t)}if(!Qe.call(c,t))return c;var i=vr(c);return Array.isArray(i)?i.splice(t,1):delete i[t],i}function Fr(c,t,i){if(!ot(c))throw new TypeError("Cannot update non-data-structure value: "+c);if(ne(c)){if(!c.set)throw new TypeError("Cannot update immutable value without .set() method: "+c);return c.set(t,i)}if(Qe.call(c,t)&&i===c[t])return c;var s=vr(c);return s[t]=i,s}function qr(c,t,i,s){s||(s=i,i=void 0);var b=jr(ne(c),c,ve(t),0,i,s);return b===Ee?i:b}function jr(c,t,i,s,b,M){var F=t===Ee;if(s===i.length){var W=F?b:t,J=M(W);return J===W?t:J}if(!F&&!ot(t))throw new TypeError("Cannot update within non-data-structure value in path ["+i.slice(0,s).map(Lt)+"]: "+t);var ae=i[s],Re=F?Ee:nr(t,ae,Ee),He=jr(Re===Ee?c:ne(Re),Re,i,s+1,b,M);return He===Re?t:He===Ee?$r(t,ae):Fr(F?c?Jr():{}:t,ae,He)}function vi(c,t,i){return qr(c,t,Ee,function(){return i})}function Mi(c,t){return vi(this,c,t)}function ra(c,t){return qr(c,t,function(){return Ee})}function Yi(c){return ra(this,c)}function ua(c,t,i,s){return qr(c,[t],i,s)}function Sa(c,t,i){return arguments.length===1?c(this):ua(this,c,t,i)}function Xt(c,t,i){return qr(this,c,t,i)}function V(){for(var c=[],t=arguments.length;t--;)c[t]=arguments[t];return D(this,c)}function Y(c){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];if(typeof c!="function")throw new TypeError("Invalid merger function: "+c);return D(this,t,c)}function D(c,t,i){for(var s=[],b=0;b<t.length;b++){var M=en(t[b]);M.size!==0&&s.push(M)}return s.length===0?c:c.toSeq().size===0&&!c.__ownerID&&s.length===1?c.constructor(s[0]):c.withMutations(function(F){for(var W=i?function(ae,Re){ua(F,Re,Ee,function(He){return He===Ee?ae:i(He,ae,Re)})}:function(ae,Re){F.set(Re,ae)},J=0;J<s.length;J++)s[J].forEach(W)})}function P(c){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];return dt(c,t)}function oe(c,t){for(var i=[],s=arguments.length-2;s-- >0;)i[s]=arguments[s+2];return dt(t,i,c)}function Ie(c){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];return Xe(c,t)}function Ue(c,t){for(var i=[],s=arguments.length-2;s-- >0;)i[s]=arguments[s+2];return Xe(t,i,c)}function Xe(c,t,i){return dt(c,t,kt(i))}function dt(c,t,i){if(!ot(c))throw new TypeError("Cannot merge into non-data-structure value: "+c);if(ne(c))return typeof i=="function"&&c.mergeWith?c.mergeWith.apply(c,[i].concat(t)):c.merge?c.merge.apply(c,t):c.concat.apply(c,t);for(var s=Array.isArray(c),b=c,M=s?gn:en,F=s?function(J){b===c&&(b=vr(b)),b.push(J)}:function(J,ae){var Re=Qe.call(b,ae),He=Re&&i?i(b[ae],J,ae):J;(!Re||He!==b[ae])&&(b===c&&(b=vr(b)),b[ae]=He)},W=0;W<t.length;W++)M(t[W]).forEach(F);return b}function kt(c){function t(i,s,b){return ot(i)&&ot(s)&&dn(i,s)?dt(i,[s],t):c?c(i,s,b):s}return t}function dn(c,t){var i=qe(c),s=qe(t);return Wn(i)===Wn(s)&&tr(i)===tr(s)}function Vn(){for(var c=[],t=arguments.length;t--;)c[t]=arguments[t];return Xe(this,c)}function qn(c){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];return Xe(this,t,c)}function yr(c){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];return qr(this,c,Jr(),function(s){return dt(s,t)})}function ci(c){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];return qr(this,c,Jr(),function(s){return Xe(s,t)})}function hi(c){var t=this.asMutable();return c(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Ti(){return this.__ownerID?this:this.__ensureOwner(new Me)}function Vi(){return this.__ensureOwner()}function Di(){return this.__altered}var Pi=function(c){function t(i){return i==null?Jr():Un(i)&&!K(i)?i:Jr().withMutations(function(s){var b=c(i);k(b.size),b.forEach(function(M,F){return s.set(F,M)})})}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){for(var s=[],b=arguments.length;b--;)s[b]=arguments[b];return Jr().withMutations(function(M){for(var F=0;F<s.length;F+=2){if(F+1>=s.length)throw new Error("Missing value for key: "+s[F]);M.set(s[F],s[F+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(s,b){return this._root?this._root.get(0,void 0,s,b):b},t.prototype.set=function(s,b){return ii(this,s,b)},t.prototype.remove=function(s){return ii(this,s,Ee)},t.prototype.deleteAll=function(s){var b=Fn(s);return b.size===0?this:this.withMutations(function(M){b.forEach(function(F){return M.remove(F)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Jr()},t.prototype.sort=function(s){return no(Ea(this,s))},t.prototype.sortBy=function(s,b){return no(Ea(this,b,s))},t.prototype.map=function(s,b){var M=this;return this.withMutations(function(F){F.forEach(function(W,J){F.set(J,s.call(b,W,J,M))})})},t.prototype.__iterator=function(s,b){return new vn(this,s,b)},t.prototype.__iterate=function(s,b){var M=this,F=0;return this._root&&this._root.iterate(function(W){return F++,s(W[1],W[0],M)},b),F},t.prototype.__ensureOwner=function(s){return s===this.__ownerID?this:s?Br(this.size,this._root,s,this.__hash):this.size===0?Jr():(this.__ownerID=s,this.__altered=!1,this)},t}(en);Pi.isMap=Un;var mt=Pi.prototype;mt[An]=!0,mt[Ct]=mt.remove,mt.removeAll=mt.deleteAll,mt.setIn=Mi,mt.removeIn=mt.deleteIn=Yi,mt.update=Sa,mt.updateIn=Xt,mt.merge=mt.concat=V,mt.mergeWith=Y,mt.mergeDeep=Vn,mt.mergeDeepWith=qn,mt.mergeIn=yr,mt.mergeDeepIn=ci,mt.withMutations=hi,mt.wasAltered=Di,mt.asImmutable=Vi,mt["@@transducer/init"]=mt.asMutable=Ti,mt["@@transducer/step"]=function(c,t){return c.set(t[0],t[1])},mt["@@transducer/result"]=function(c){return c.asImmutable()};var tn=function(t,i){this.ownerID=t,this.entries=i};tn.prototype.get=function(t,i,s,b){for(var M=this.entries,F=0,W=M.length;F<W;F++)if(hr(s,M[F][0]))return M[F][1];return b},tn.prototype.update=function(t,i,s,b,M,F,W){for(var J=M===Ee,ae=this.entries,Re=0,He=ae.length;Re<He&&!hr(b,ae[Re][0]);Re++);var at=Re<He;if(at?ae[Re][1]===M:J)return this;if(ge(W),(J||!at)&&ge(F),!(J&&ae.length===1)){if(!at&&!J&&ae.length>=jn)return et(t,ae,b,M);var Bt=t&&t===this.ownerID,Sn=Bt?ae:ta(ae);return at?J?Re===He-1?Sn.pop():Sn[Re]=Sn.pop():Sn[Re]=[b,M]:Sn.push([b,M]),Bt?(this.entries=Sn,this):new tn(t,Sn)}};var or=function(t,i,s){this.ownerID=t,this.bitmap=i,this.nodes=s};or.prototype.get=function(t,i,s,b){i===void 0&&(i=Xr(s));var M=1<<((t===0?i:i>>>t)&ke),F=this.bitmap;return(F&M)===0?b:this.nodes[Mn(F&M-1)].get(t+Z,i,s,b)},or.prototype.update=function(t,i,s,b,M,F,W){s===void 0&&(s=Xr(b));var J=(i===0?s:s>>>i)&ke,ae=1<<J,Re=this.bitmap,He=(Re&ae)!==0;if(!He&&M===Ee)return this;var at=Mn(Re&ae-1),Bt=this.nodes,Sn=He?Bt[at]:void 0,yn=le(Sn,t,i+Z,s,b,M,F,W);if(yn===Sn)return this;if(!He&&yn&&Bt.length>=Jt)return It(t,Bt,Re,J,yn);if(He&&!yn&&Bt.length===2&&Ae(Bt[at^1]))return Bt[at^1];if(He&&yn&&Bt.length===1&&Ae(yn))return yn;var xn=t&&t===this.ownerID,sr=He?yn?Re:Re^ae:Re|ae,gr=He?yn?mn(Bt,at,yn,xn):Ut(Bt,at,xn):At(Bt,at,yn,xn);return xn?(this.bitmap=sr,this.nodes=gr,this):new or(t,sr,gr)};var rt=function(t,i,s){this.ownerID=t,this.count=i,this.nodes=s};rt.prototype.get=function(t,i,s,b){i===void 0&&(i=Xr(s));var M=(t===0?i:i>>>t)&ke,F=this.nodes[M];return F?F.get(t+Z,i,s,b):b},rt.prototype.update=function(t,i,s,b,M,F,W){s===void 0&&(s=Xr(b));var J=(i===0?s:s>>>i)&ke,ae=M===Ee,Re=this.nodes,He=Re[J];if(ae&&!He)return this;var at=le(He,t,i+Z,s,b,M,F,W);if(at===He)return this;var Bt=this.count;if(!He)Bt++;else if(!at&&(Bt--,Bt<dr))return Ot(t,Re,Bt,J);var Sn=t&&t===this.ownerID,yn=mn(Re,J,at,Sn);return Sn?(this.count=Bt,this.nodes=yn,this):new rt(t,Bt,yn)};var St=function(t,i,s){this.ownerID=t,this.keyHash=i,this.entries=s};St.prototype.get=function(t,i,s,b){for(var M=this.entries,F=0,W=M.length;F<W;F++)if(hr(s,M[F][0]))return M[F][1];return b},St.prototype.update=function(t,i,s,b,M,F,W){s===void 0&&(s=Xr(b));var J=M===Ee;if(s!==this.keyHash)return J?this:(ge(W),ge(F),Oe(this,t,i,s,[b,M]));for(var ae=this.entries,Re=0,He=ae.length;Re<He&&!hr(b,ae[Re][0]);Re++);var at=Re<He;if(at?ae[Re][1]===M:J)return this;if(ge(W),(J||!at)&&ge(F),J&&He===2)return new _n(t,this.keyHash,ae[Re^1]);var Bt=t&&t===this.ownerID,Sn=Bt?ae:ta(ae);return at?J?Re===He-1?Sn.pop():Sn[Re]=Sn.pop():Sn[Re]=[b,M]:Sn.push([b,M]),Bt?(this.entries=Sn,this):new St(t,this.keyHash,Sn)};var _n=function(t,i,s){this.ownerID=t,this.keyHash=i,this.entry=s};_n.prototype.get=function(t,i,s,b){return hr(s,this.entry[0])?this.entry[1]:b},_n.prototype.update=function(t,i,s,b,M,F,W){var J=M===Ee,ae=hr(b,this.entry[0]);if(ae?M===this.entry[1]:J)return this;if(ge(W),J){ge(F);return}return ae?t&&t===this.ownerID?(this.entry[1]=M,this):new _n(t,this.keyHash,[b,M]):(ge(F),Oe(this,t,i,Xr(b),[b,M]))},tn.prototype.iterate=St.prototype.iterate=function(c,t){for(var i=this.entries,s=0,b=i.length-1;s<=b;s++)if(c(i[t?b-s:s])===!1)return!1},or.prototype.iterate=rt.prototype.iterate=function(c,t){for(var i=this.nodes,s=0,b=i.length-1;s<=b;s++){var M=i[t?b-s:s];if(M&&M.iterate(c,t)===!1)return!1}},_n.prototype.iterate=function(c,t){return c(this.entry)};var vn=function(c){function t(i,s,b){this._type=s,this._reverse=b,this._stack=i._root&&_r(i._root)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var s=this._type,b=this._stack;b;){var M=b.node,F=b.index++,W=void 0;if(M.entry){if(F===0)return Ln(s,M.entry)}else if(M.entries){if(W=M.entries.length-1,F<=W)return Ln(s,M.entries[this._reverse?W-F:F])}else if(W=M.nodes.length-1,F<=W){var J=M.nodes[this._reverse?W-F:F];if(J){if(J.entry)return Ln(s,J.entry);b=this._stack=_r(J,b)}continue}b=this._stack=this._stack.__prev}return we()},t}(ht);function Ln(c,t){return De(c,t[0],t[1])}function _r(c,t){return{node:c,index:0,__prev:t}}function Br(c,t,i,s){var b=Object.create(mt);return b.size=c,b._root=t,b.__ownerID=i,b.__hash=s,b.__altered=!1,b}var Kr;function Jr(){return Kr||(Kr=Br(0))}function ii(c,t,i){var s,b;if(c._root){var M=_e(),F=_e();if(s=le(c._root,c.__ownerID,0,void 0,t,i,M,F),!F.value)return c;b=c.size+(M.value?i===Ee?-1:1:0)}else{if(i===Ee)return c;b=1,s=new tn(c.__ownerID,[[t,i]])}return c.__ownerID?(c.size=b,c._root=s,c.__hash=void 0,c.__altered=!0,c):s?Br(b,s):Jr()}function le(c,t,i,s,b,M,F,W){return c?c.update(t,i,s,b,M,F,W):M===Ee?c:(ge(W),ge(F),new _n(t,s,[b,M]))}function Ae(c){return c.constructor===_n||c.constructor===St}function Oe(c,t,i,s,b){if(c.keyHash===s)return new St(t,s,[c.entry,b]);var M=(i===0?c.keyHash:c.keyHash>>>i)&ke,F=(i===0?s:s>>>i)&ke,W,J=M===F?[Oe(c,t,i+Z,s,b)]:(W=new _n(t,s,b),M<F?[c,W]:[W,c]);return new or(t,1<<M|1<<F,J)}function et(c,t,i,s){c||(c=new Me);for(var b=new _n(c,Xr(i),[i,s]),M=0;M<t.length;M++){var F=t[M];b=b.update(c,0,void 0,F[0],F[1])}return b}function Ot(c,t,i,s){for(var b=0,M=0,F=new Array(i),W=0,J=1,ae=t.length;W<ae;W++,J<<=1){var Re=t[W];Re!==void 0&&W!==s&&(b|=J,F[M++]=Re)}return new or(c,b,F)}function It(c,t,i,s,b){for(var M=0,F=new Array(me),W=0;i!==0;W++,i>>>=1)F[W]=i&1?t[M++]:void 0;return F[s]=b,new rt(c,M+1,F)}function Mn(c){return c-=c>>1&1431655765,c=(c&858993459)+(c>>2&858993459),c=c+(c>>4)&252645135,c+=c>>8,c+=c>>16,c&127}function mn(c,t,i,s){var b=s?c:ta(c);return b[t]=i,b}function At(c,t,i,s){var b=c.length+1;if(s&&t+1===b)return c[t]=i,c;for(var M=new Array(b),F=0,W=0;W<b;W++)W===t?(M[W]=i,F=-1):M[W]=c[W+F];return M}function Ut(c,t,i){var s=c.length-1;if(i&&t===s)return c.pop(),c;for(var b=new Array(s),M=0,F=0;F<s;F++)F===t&&(M=1),b[F]=c[F+M];return b}var jn=me/4,Jt=me/2,dr=me/4,wr="@@__IMMUTABLE_LIST__@@";function Hr(c){return!!(c&&c[wr])}var Ar=function(c){function t(i){var s=Oa();if(i==null)return s;if(Hr(i))return i;var b=c(i),M=b.size;return M===0?s:(k(M),M>0&&M<me?$i(0,M,Z,null,new Rr(b.toArray())):s.withMutations(function(F){F.setSize(M),b.forEach(function(W,J){return F.set(J,W)})}))}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(s,b){if(s=Ft(this,s),s>=0&&s<this.size){s+=this._origin;var M=Na(this,s);return M&&M.array[s&ke]}return b},t.prototype.set=function(s,b){return Ma(this,s,b)},t.prototype.remove=function(s){return this.has(s)?s===0?this.shift():s===this.size-1?this.pop():this.splice(s,1):this},t.prototype.insert=function(s,b){return this.splice(s,0,b)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Z,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Oa()},t.prototype.push=function(){var s=arguments,b=this.size;return this.withMutations(function(M){za(M,0,b+s.length);for(var F=0;F<s.length;F++)M.set(b+F,s[F])})},t.prototype.pop=function(){return za(this,0,-1)},t.prototype.unshift=function(){var s=arguments;return this.withMutations(function(b){za(b,-s.length);for(var M=0;M<s.length;M++)b.set(M,s[M])})},t.prototype.shift=function(){return za(this,1)},t.prototype.concat=function(){for(var s=arguments,b=[],M=0;M<arguments.length;M++){var F=s[M],W=c(typeof F!="string"&&Ke(F)?F:[F]);W.size!==0&&b.push(W)}return b.length===0?this:this.size===0&&!this.__ownerID&&b.length===1?this.constructor(b[0]):this.withMutations(function(J){b.forEach(function(ae){return ae.forEach(function(Re){return J.push(Re)})})})},t.prototype.setSize=function(s){return za(this,0,s)},t.prototype.map=function(s,b){var M=this;return this.withMutations(function(F){for(var W=0;W<M.size;W++)F.set(W,s.call(b,F.get(W),W,M))})},t.prototype.slice=function(s,b){var M=this.size;return Zt(s,b,M)?this:za(this,nn(s,M),Pn(b,M))},t.prototype.__iterator=function(s,b){var M=b?this.size:0,F=Si(this,b);return new ht(function(){var W=F();return W===si?we():De(s,b?--M:M++,W)})},t.prototype.__iterate=function(s,b){for(var M=b?this.size:0,F=Si(this,b),W;(W=F())!==si&&s(W,b?--M:M++,this)!==!1;);return M},t.prototype.__ensureOwner=function(s){return s===this.__ownerID?this:s?$i(this._origin,this._capacity,this._level,this._root,this._tail,s,this.__hash):this.size===0?Oa():(this.__ownerID=s,this.__altered=!1,this)},t}(gn);Ar.isList=Hr;var yi=Ar.prototype;yi[wr]=!0,yi[Ct]=yi.remove,yi.merge=yi.concat,yi.setIn=Mi,yi.deleteIn=yi.removeIn=Yi,yi.update=Sa,yi.updateIn=Xt,yi.mergeIn=yr,yi.mergeDeepIn=ci,yi.withMutations=hi,yi.wasAltered=Di,yi.asImmutable=Vi,yi["@@transducer/init"]=yi.asMutable=Ti,yi["@@transducer/step"]=function(c,t){return c.push(t)},yi["@@transducer/result"]=function(c){return c.asImmutable()};var Rr=function(t,i){this.array=t,this.ownerID=i};Rr.prototype.removeBefore=function(t,i,s){if(s===i?1<<i:this.array.length===0)return this;var b=s>>>i&ke;if(b>=this.array.length)return new Rr([],t);var M=b===0,F;if(i>0){var W=this.array[b];if(F=W&&W.removeBefore(t,i-Z,s),F===W&&M)return this}if(M&&!F)return this;var J=Xa(this,t);if(!M)for(var ae=0;ae<b;ae++)J.array[ae]=void 0;return F&&(J.array[b]=F),J},Rr.prototype.removeAfter=function(t,i,s){if(s===(i?1<<i:0)||this.array.length===0)return this;var b=s-1>>>i&ke;if(b>=this.array.length)return this;var M;if(i>0){var F=this.array[b];if(M=F&&F.removeAfter(t,i-Z,s),M===F&&b===this.array.length-1)return this}var W=Xa(this,t);return W.array.splice(b+1),M&&(W.array[b]=M),W};var si={};function Si(c,t){var i=c._origin,s=c._capacity,b=qa(s),M=c._tail;return F(c._root,c._level,0);function F(ae,Re,He){return Re===0?W(ae,He):J(ae,Re,He)}function W(ae,Re){var He=Re===b?M&&M.array:ae&&ae.array,at=Re>i?0:i-Re,Bt=s-Re;return Bt>me&&(Bt=me),function(){if(at===Bt)return si;var Sn=t?--Bt:at++;return He&&He[Sn]}}function J(ae,Re,He){var at,Bt=ae&&ae.array,Sn=He>i?0:i-He>>Re,yn=(s-He>>Re)+1;return yn>me&&(yn=me),function(){for(;;){if(at){var xn=at();if(xn!==si)return xn;at=null}if(Sn===yn)return si;var sr=t?--yn:Sn++;at=F(Bt&&Bt[sr],Re-Z,He+(sr<<Re))}}}}function $i(c,t,i,s,b,M,F){var W=Object.create(yi);return W.size=t-c,W._origin=c,W._capacity=t,W._level=i,W._root=s,W._tail=b,W.__ownerID=M,W.__hash=F,W.__altered=!1,W}var Hi;function Oa(){return Hi||(Hi=$i(0,0,Z))}function Ma(c,t,i){if(t=Ft(c,t),t!==t)return c;if(t>=c.size||t<0)return c.withMutations(function(F){t<0?za(F,t).set(0,i):za(F,0,t+1).set(t,i)});t+=c._origin;var s=c._tail,b=c._root,M=_e();return t>=qa(c._capacity)?s=Ua(s,c.__ownerID,0,t,i,M):b=Ua(b,c.__ownerID,c._level,t,i,M),M.value?c.__ownerID?(c._root=b,c._tail=s,c.__hash=void 0,c.__altered=!0,c):$i(c._origin,c._capacity,c._level,b,s):c}function Ua(c,t,i,s,b,M){var F=s>>>i&ke,W=c&&F<c.array.length;if(!W&&b===void 0)return c;var J;if(i>0){var ae=c&&c.array[F],Re=Ua(ae,t,i-Z,s,b,M);return Re===ae?c:(J=Xa(c,t),J.array[F]=Re,J)}return W&&c.array[F]===b?c:(M&&ge(M),J=Xa(c,t),b===void 0&&F===J.array.length-1?J.array.pop():J.array[F]=b,J)}function Xa(c,t){return t&&c&&t===c.ownerID?c:new Rr(c?c.array.slice():[],t)}function Na(c,t){if(t>=qa(c._capacity))return c._tail;if(t<1<<c._level+Z){for(var i=c._root,s=c._level;i&&s>0;)i=i.array[t>>>s&ke],s-=Z;return i}}function za(c,t,i){t!==void 0&&(t|=0),i!==void 0&&(i|=0);var s=c.__ownerID||new Me,b=c._origin,M=c._capacity,F=b+t,W=i===void 0?M:i<0?M+i:b+i;if(F===b&&W===M)return c;if(F>=W)return c.clear();for(var J=c._level,ae=c._root,Re=0;F+Re<0;)ae=new Rr(ae&&ae.array.length?[void 0,ae]:[],s),J+=Z,Re+=1<<J;Re&&(F+=Re,b+=Re,W+=Re,M+=Re);for(var He=qa(M),at=qa(W);at>=1<<J+Z;)ae=new Rr(ae&&ae.array.length?[ae]:[],s),J+=Z;var Bt=c._tail,Sn=at<He?Na(c,W-1):at>He?new Rr([],s):Bt;if(Bt&&at>He&&F<M&&Bt.array.length){ae=Xa(ae,s);for(var yn=ae,xn=J;xn>Z;xn-=Z){var sr=He>>>xn&ke;yn=yn.array[sr]=Xa(yn.array[sr],s)}yn.array[He>>>Z&ke]=Bt}if(W<M&&(Sn=Sn&&Sn.removeAfter(s,0,W)),F>=at)F-=at,W-=at,J=Z,ae=null,Sn=Sn&&Sn.removeBefore(s,0,F);else if(F>b||at<He){for(Re=0;ae;){var gr=F>>>J&ke;if(gr!==at>>>J&ke)break;gr&&(Re+=(1<<J)*gr),J-=Z,ae=ae.array[gr]}ae&&F>b&&(ae=ae.removeBefore(s,J,F-Re)),ae&&at<He&&(ae=ae.removeAfter(s,J,at-Re)),Re&&(F-=Re,W-=Re)}return c.__ownerID?(c.size=W-F,c._origin=F,c._capacity=W,c._level=J,c._root=ae,c._tail=Sn,c.__hash=void 0,c.__altered=!0,c):$i(F,W,J,ae,Sn)}function qa(c){return c<me?0:c-1>>>Z<<Z}var no=function(c){function t(i){return i==null?Ka():cr(i)?i:Ka().withMutations(function(s){var b=en(i);k(b.size),b.forEach(function(M,F){return s.set(F,M)})})}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(s,b){var M=this._map.get(s);return M!==void 0?this._list.get(M)[1]:b},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Ka()},t.prototype.set=function(s,b){return Ia(this,s,b)},t.prototype.remove=function(s){return Ia(this,s,Ee)},t.prototype.__iterate=function(s,b){var M=this;return this._list.__iterate(function(F){return F&&s(F[1],F[0],M)},b)},t.prototype.__iterator=function(s,b){return this._list.fromEntrySeq().__iterator(s,b)},t.prototype.__ensureOwner=function(s){if(s===this.__ownerID)return this;var b=this._map.__ensureOwner(s),M=this._list.__ensureOwner(s);return s?wo(b,M,s,this.__hash):this.size===0?Ka():(this.__ownerID=s,this.__altered=!1,this._map=b,this._list=M,this)},t}(Pi);no.isOrderedMap=cr,no.prototype[fe]=!0,no.prototype[Ct]=no.prototype.remove;function wo(c,t,i,s){var b=Object.create(no.prototype);return b.size=c?c.size:0,b._map=c,b._list=t,b.__ownerID=i,b.__hash=s,b.__altered=!1,b}var go;function Ka(){return go||(go=wo(Jr(),Oa()))}function Ia(c,t,i){var s=c._map,b=c._list,M=s.get(t),F=M!==void 0,W,J;if(i===Ee){if(!F)return c;b.size>=me&&b.size>=s.size*2?(J=b.filter(function(ae,Re){return ae!==void 0&&M!==Re}),W=J.toKeyedSeq().map(function(ae){return ae[0]}).flip().toMap(),c.__ownerID&&(W.__ownerID=J.__ownerID=c.__ownerID)):(W=s.remove(t),J=M===b.size-1?b.pop():b.set(M,void 0))}else if(F){if(i===b.get(M)[1])return c;W=s,J=b.set(M,[t,i])}else W=s.set(t,b.size),J=b.set(b.size,[t,i]);return c.__ownerID?(c.size=W.size,c._map=W,c._list=J,c.__hash=void 0,c.__altered=!0,c):wo(W,J)}var Us="@@__IMMUTABLE_STACK__@@";function Vs(c){return!!(c&&c[Us])}var Is=function(c){function t(i){return i==null?eo():Vs(i)?i:eo().pushAll(i)}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(s,b){var M=this._head;for(s=Ft(this,s);M&&s--;)M=M.next;return M?M.value:b},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var s=arguments;if(arguments.length===0)return this;for(var b=this.size+arguments.length,M=this._head,F=arguments.length-1;F>=0;F--)M={value:s[F],next:M};return this.__ownerID?(this.size=b,this._head=M,this.__hash=void 0,this.__altered=!0,this):Ds(b,M)},t.prototype.pushAll=function(s){if(s=c(s),s.size===0)return this;if(this.size===0&&Vs(s))return s;k(s.size);var b=this.size,M=this._head;return s.__iterate(function(F){b++,M={value:F,next:M}},!0),this.__ownerID?(this.size=b,this._head=M,this.__hash=void 0,this.__altered=!0,this):Ds(b,M)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):eo()},t.prototype.slice=function(s,b){if(Zt(s,b,this.size))return this;var M=nn(s,this.size),F=Pn(b,this.size);if(F!==this.size)return c.prototype.slice.call(this,s,b);for(var W=this.size-M,J=this._head;M--;)J=J.next;return this.__ownerID?(this.size=W,this._head=J,this.__hash=void 0,this.__altered=!0,this):Ds(W,J)},t.prototype.__ensureOwner=function(s){return s===this.__ownerID?this:s?Ds(this.size,this._head,s,this.__hash):this.size===0?eo():(this.__ownerID=s,this.__altered=!1,this)},t.prototype.__iterate=function(s,b){var M=this;if(b)return new hn(this.toArray()).__iterate(function(J,ae){return s(J,ae,M)},b);for(var F=0,W=this._head;W&&s(W.value,F++,this)!==!1;)W=W.next;return F},t.prototype.__iterator=function(s,b){if(b)return new hn(this.toArray()).__iterator(s,b);var M=0,F=this._head;return new ht(function(){if(F){var W=F.value;return F=F.next,De(s,M++,W)}return we()})},t}(gn);Is.isStack=Vs;var uo=Is.prototype;uo[Us]=!0,uo.shift=uo.pop,uo.unshift=uo.push,uo.unshiftAll=uo.pushAll,uo.withMutations=hi,uo.wasAltered=Di,uo.asImmutable=Vi,uo["@@transducer/init"]=uo.asMutable=Ti,uo["@@transducer/step"]=function(c,t){return c.unshift(t)},uo["@@transducer/result"]=function(c){return c.asImmutable()};function Ds(c,t,i,s){var b=Object.create(uo);return b.size=c,b._head=t,b.__ownerID=i,b.__hash=s,b.__altered=!1,b}var Js;function eo(){return Js||(Js=Ds(0))}var uu="@@__IMMUTABLE_SET__@@";function pa(c){return!!(c&&c[uu])}function na(c){return pa(c)&&K(c)}function Ui(c,t){if(c===t)return!0;if(!ur(t)||c.size!==void 0&&t.size!==void 0&&c.size!==t.size||c.__hash!==void 0&&t.__hash!==void 0&&c.__hash!==t.__hash||tr(c)!==tr(t)||Wn(c)!==Wn(t)||K(c)!==K(t))return!1;if(c.size===0&&t.size===0)return!0;var i=!er(c);if(K(c)){var s=c.entries();return t.every(function(J,ae){var Re=s.next().value;return Re&&hr(Re[1],J)&&(i||hr(Re[0],ae))})&&s.next().done}var b=!1;if(c.size===void 0)if(t.size===void 0)typeof c.cacheResult=="function"&&c.cacheResult();else{b=!0;var M=c;c=t,t=M}var F=!0,W=t.__iterate(function(J,ae){if(i?!c.has(J):b?!hr(J,c.get(ae,Ee)):!hr(c.get(ae,Ee),J))return F=!1,!1});return F&&c.size===W}function xe(c,t){var i=function(s){c.prototype[s]=t[s]};return Object.keys(t).forEach(i),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(i),c}function Ce(c){if(!c||typeof c!="object")return c;if(!ur(c)){if(!ot(c))return c;c=qe(c)}if(tr(c)){var t={};return c.__iterate(function(s,b){t[b]=Ce(s)}),t}var i=[];return c.__iterate(function(s){i.push(Ce(s))}),i}var st=function(c){function t(i){return i==null?Zr():pa(i)&&!K(i)?i:Zr().withMutations(function(s){var b=c(i);k(b.size),b.forEach(function(M){return s.add(M)})})}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(s){return this(en(s).keySeq())},t.intersect=function(s){return s=Fn(s).toArray(),s.length?gt.intersect.apply(t(s.pop()),s):Zr()},t.union=function(s){return s=Fn(s).toArray(),s.length?gt.union.apply(t(s.pop()),s):Zr()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(s){return this._map.has(s)},t.prototype.add=function(s){return Ht(this,this._map.set(s,s))},t.prototype.remove=function(s){return Ht(this,this._map.remove(s))},t.prototype.clear=function(){return Ht(this,this._map.clear())},t.prototype.map=function(s,b){var M=this,F=!1,W=Ht(this,this._map.mapEntries(function(J){var ae=J[1],Re=s.call(b,ae,ae,M);return Re!==ae&&(F=!0),[Re,Re]},b));return F?W:this},t.prototype.union=function(){for(var s=[],b=arguments.length;b--;)s[b]=arguments[b];return s=s.filter(function(M){return M.size!==0}),s.length===0?this:this.size===0&&!this.__ownerID&&s.length===1?this.constructor(s[0]):this.withMutations(function(M){for(var F=0;F<s.length;F++)typeof s[F]=="string"?M.add(s[F]):c(s[F]).forEach(function(W){return M.add(W)})})},t.prototype.intersect=function(){for(var s=[],b=arguments.length;b--;)s[b]=arguments[b];if(s.length===0)return this;s=s.map(function(F){return c(F)});var M=[];return this.forEach(function(F){s.every(function(W){return W.includes(F)})||M.push(F)}),this.withMutations(function(F){M.forEach(function(W){F.remove(W)})})},t.prototype.subtract=function(){for(var s=[],b=arguments.length;b--;)s[b]=arguments[b];if(s.length===0)return this;s=s.map(function(F){return c(F)});var M=[];return this.forEach(function(F){s.some(function(W){return W.includes(F)})&&M.push(F)}),this.withMutations(function(F){M.forEach(function(W){F.remove(W)})})},t.prototype.sort=function(s){return yo(Ea(this,s))},t.prototype.sortBy=function(s,b){return yo(Ea(this,b,s))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(s,b){var M=this;return this._map.__iterate(function(F){return s(F,F,M)},b)},t.prototype.__iterator=function(s,b){return this._map.__iterator(s,b)},t.prototype.__ensureOwner=function(s){if(s===this.__ownerID)return this;var b=this._map.__ensureOwner(s);return s?this.__make(b,s):this.size===0?this.__empty():(this.__ownerID=s,this._map=b,this)},t}(kn);st.isSet=pa;var gt=st.prototype;gt[uu]=!0,gt[Ct]=gt.remove,gt.merge=gt.concat=gt.union,gt.withMutations=hi,gt.asImmutable=Vi,gt["@@transducer/init"]=gt.asMutable=Ti,gt["@@transducer/step"]=function(c,t){return c.add(t)},gt["@@transducer/result"]=function(c){return c.asImmutable()},gt.__empty=Zr,gt.__make=Hn;function Ht(c,t){return c.__ownerID?(c.size=t.size,c._map=t,c):t===c._map?c:t.size===0?c.__empty():c.__make(t)}function Hn(c,t){var i=Object.create(gt);return i.size=c?c.size:0,i._map=c,i.__ownerID=t,i}var fr;function Zr(){return fr||(fr=Hn(Jr()))}var gi=function(c){function t(i,s,b){if(!(this instanceof t))return new t(i,s,b);if(Ji(b!==0,"Cannot step a Range by 0"),i=i||0,s===void 0&&(s=1/0),b=b===void 0?1:Math.abs(b),s<i&&(b=-b),this._start=i,this._end=s,this._step=b,this.size=Math.max(0,Math.ceil((s-i)/b-1)+1),this.size===0){if(wt)return wt;wt=this}}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(s,b){return this.has(s)?this._start+Ft(this,s)*this._step:b},t.prototype.includes=function(s){var b=(s-this._start)/this._step;return b>=0&&b<this.size&&b===Math.floor(b)},t.prototype.slice=function(s,b){return Zt(s,b,this.size)?this:(s=nn(s,this.size),b=Pn(b,this.size),b<=s?new t(0,0):new t(this.get(s,this._end),this.get(b,this._end),this._step))},t.prototype.indexOf=function(s){var b=s-this._start;if(b%this._step===0){var M=b/this._step;if(M>=0&&M<this.size)return M}return-1},t.prototype.lastIndexOf=function(s){return this.indexOf(s)},t.prototype.__iterate=function(s,b){for(var M=this.size,F=this._step,W=b?this._start+(M-1)*F:this._start,J=0;J!==M&&s(W,b?M-++J:J++,this)!==!1;)W+=b?-F:F;return J},t.prototype.__iterator=function(s,b){var M=this.size,F=this._step,W=b?this._start+(M-1)*F:this._start,J=0;return new ht(function(){if(J===M)return we();var ae=W;return W+=b?-F:F,De(s,b?M-++J:J++,ae)})},t.prototype.equals=function(s){return s instanceof t?this._start===s._start&&this._end===s._end&&this._step===s._step:Ui(this,s)},t}(zt),wt;function cn(c,t,i){for(var s=ve(t),b=0;b!==s.length;)if(c=nr(c,s[b++],Ee),c===Ee)return i;return c}function rr(c,t){return cn(this,c,t)}function $n(c,t){return cn(c,t,Ee)!==Ee}function Sr(c){return $n(this,c)}function fi(){k(this.size);var c={};return this.__iterate(function(t,i){c[i]=t}),c}Fn.isIterable=ur,Fn.isKeyed=tr,Fn.isIndexed=Wn,Fn.isAssociative=er,Fn.isOrdered=K,Fn.Iterator=ht,xe(Fn,{toArray:function(){k(this.size);var t=new Array(this.size||0),i=tr(this),s=0;return this.__iterate(function(b,M){t[s++]=i?[M,b]:b}),t},toIndexedSeq:function(){return new Or(this)},toJS:function(){return Ce(this)},toKeyedSeq:function(){return new Qn(this,!0)},toMap:function(){return Pi(this.toKeyedSeq())},toObject:fi,toOrderedMap:function(){return no(this.toKeyedSeq())},toOrderedSet:function(){return yo(tr(this)?this.valueSeq():this)},toSet:function(){return st(tr(this)?this.valueSeq():this)},toSetSeq:function(){return new Pr(this)},toSeq:function(){return Wn(this)?this.toIndexedSeq():tr(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Is(tr(this)?this.valueSeq():this)},toList:function(){return Ar(tr(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,i){return this.size===0?t+i:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+i},concat:function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];return Xn(this,ft(this,t))},includes:function(t){return this.some(function(i){return hr(i,t)})},entries:function(){return this.__iterator(Nt)},every:function(t,i){k(this.size);var s=!0;return this.__iterate(function(b,M,F){if(!t.call(i,b,M,F))return s=!1,!1}),s},filter:function(t,i){return Xn(this,Qr(this,t,i,!0))},partition:function(t,i){return Qi(this,t,i)},find:function(t,i,s){var b=this.findEntry(t,i);return b?b[1]:s},forEach:function(t,i){return k(this.size),this.__iterate(i?t.bind(i):t)},join:function(t){k(this.size),t=t!==void 0?""+t:",";var i="",s=!0;return this.__iterate(function(b){s?s=!1:i+=t,i+=b!=null?b.toString():""}),i},keys:function(){return this.__iterator(he)},map:function(t,i){return Xn(this,mi(this,t,i))},reduce:function(t,i,s){return Ga(this,t,i,s,arguments.length<2,!1)},reduceRight:function(t,i,s){return Ga(this,t,i,s,arguments.length<2,!0)},reverse:function(){return Xn(this,ei(this,!0))},slice:function(t,i){return Xn(this,ir(this,t,i,!0))},some:function(t,i){k(this.size);var s=!1;return this.__iterate(function(b,M,F){if(t.call(i,b,M,F))return s=!0,!1}),s},sort:function(t){return Xn(this,Ea(this,t))},values:function(){return this.__iterator(Fe)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,i){return lt(t?this.toSeq().filter(t,i):this)},countBy:function(t,i){return Ni(this,t,i)},equals:function(t){return Ui(this,t)},entrySeq:function(){var t=this;if(t._cache)return new hn(t._cache);var i=t.toSeq().map(ja).toIndexedSeq();return i.fromEntrySeq=function(){return t.toSeq()},i},filterNot:function(t,i){return this.filter(Oo(t),i)},findEntry:function(t,i,s){var b=s;return this.__iterate(function(M,F,W){if(t.call(i,M,F,W))return b=[F,M],!1}),b},findKey:function(t,i){var s=this.findEntry(t,i);return s&&s[0]},findLast:function(t,i,s){return this.toKeyedSeq().reverse().find(t,i,s)},findLastEntry:function(t,i,s){return this.toKeyedSeq().reverse().findEntry(t,i,s)},findLastKey:function(t,i){return this.toKeyedSeq().reverse().findKey(t,i)},first:function(t){return this.find(Et,null,t)},flatMap:function(t,i){return Xn(this,Zn(this,t,i))},flatten:function(t){return Xn(this,zn(this,t,!0))},fromEntrySeq:function(){return new ai(this)},get:function(t,i){return this.find(function(s,b){return hr(b,t)},void 0,i)},getIn:rr,groupBy:function(t,i){return ea(this,t,i)},has:function(t){return this.get(t,Ee)!==Ee},hasIn:Sr,isSubset:function(t){return t=typeof t.includes=="function"?t:Fn(t),this.every(function(i){return t.includes(i)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:Fn(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(i){return hr(i,t)})},keySeq:function(){return this.toSeq().map(Pa).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return wa(this,t)},maxBy:function(t,i){return wa(this,i,t)},min:function(t){return wa(this,t?Do(t):Zo)},minBy:function(t,i){return wa(this,i?Do(i):Zo,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,i){return Xn(this,di(this,t,i,!0))},skipUntil:function(t,i){return this.skipWhile(Oo(t),i)},sortBy:function(t,i){return Xn(this,Ea(this,i,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,i){return Xn(this,xr(this,t,i))},takeUntil:function(t,i){return this.takeWhile(Oo(t),i)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=bs(this))}});var Ci=Fn.prototype;Ci[Kn]=!0,Ci[Yn]=Ci.values,Ci.toJSON=Ci.toArray,Ci.__toStringMapper=Lt,Ci.inspect=Ci.toSource=function(){return this.toString()},Ci.chain=Ci.flatMap,Ci.contains=Ci.includes,xe(en,{flip:function(){return Xn(this,xi(this))},mapEntries:function(t,i){var s=this,b=0;return Xn(this,this.toSeq().map(function(M,F){return t.call(i,[F,M],b++,s)}).fromEntrySeq())},mapKeys:function(t,i){var s=this;return Xn(this,this.toSeq().flip().map(function(b,M){return t.call(i,b,M,s)}).flip())}});var la=en.prototype;la[on]=!0,la[Yn]=Ci.entries,la.toJSON=fi,la.__toStringMapper=function(c,t){return Lt(t)+": "+Lt(c)},xe(gn,{toKeyedSeq:function(){return new Qn(this,!1)},filter:function(t,i){return Xn(this,Qr(this,t,i,!1))},findIndex:function(t,i){var s=this.findEntry(t,i);return s?s[0]:-1},indexOf:function(t){var i=this.keyOf(t);return i===void 0?-1:i},lastIndexOf:function(t){var i=this.lastKeyOf(t);return i===void 0?-1:i},reverse:function(){return Xn(this,ei(this,!1))},slice:function(t,i){return Xn(this,ir(this,t,i,!1))},splice:function(t,i){var s=arguments.length;if(i=Math.max(i||0,0),s===0||s===2&&!i)return this;t=nn(t,t<0?this.count():this.size);var b=this.slice(0,t);return Xn(this,s===1?b:b.concat(ta(arguments,2),this.slice(t+i)))},findLastIndex:function(t,i){var s=this.findLastEntry(t,i);return s?s[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Xn(this,zn(this,t,!1))},get:function(t,i){return t=Ft(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?i:this.find(function(s,b){return b===t},void 0,i)},has:function(t){return t=Ft(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return Xn(this,wi(this,t))},interleave:function(){var t=[this].concat(ta(arguments)),i=Dt(this.toSeq(),zt.of,t),s=i.flatten(!0);return i.size&&(s.size=i.size*t.length),Xn(this,s)},keySeq:function(){return gi(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,i){return Xn(this,di(this,t,i,!1))},zip:function(){var t=[this].concat(ta(arguments));return Xn(this,Dt(this,fo,t))},zipAll:function(){var t=[this].concat(ta(arguments));return Xn(this,Dt(this,fo,t,!0))},zipWith:function(t){var i=ta(arguments);return i[0]=this,Xn(this,Dt(this,t,i))}});var ya=gn.prototype;ya[Cn]=!0,ya[fe]=!0,xe(kn,{get:function(t,i){return this.has(t)?t:i},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var _a=kn.prototype;_a.has=Ci.includes,_a.contains=_a.includes,_a.keys=_a.values,xe(Pt,la),xe(zt,ya),xe(un,_a);function Ga(c,t,i,s,b,M){return k(c.size),c.__iterate(function(F,W,J){b?(b=!1,i=F):i=t.call(s,i,F,W,J)},M),i}function Pa(c,t){return t}function ja(c,t){return[t,c]}function Oo(c){return function(){return!c.apply(this,arguments)}}function Do(c){return function(){return-c.apply(this,arguments)}}function fo(){return ta(arguments)}function Zo(c,t){return c<t?1:c>t?-1:0}function bs(c){if(c.size===1/0)return 0;var t=K(c),i=tr(c),s=t?1:0,b=c.__iterate(i?t?function(M,F){s=31*s+fs(Xr(M),Xr(F))|0}:function(M,F){s=s+fs(Xr(M),Xr(F))|0}:t?function(M){s=31*s+Xr(M)|0}:function(M){s=s+Xr(M)|0});return io(b,s)}function io(c,t){return t=ar(t,3432918353),t=ar(t<<15|t>>>-15,461845907),t=ar(t<<13|t>>>-13,5),t=(t+3864292196|0)^c,t=ar(t^t>>>16,2246822507),t=ar(t^t>>>13,3266489909),t=Cr(t^t>>>16),t}function fs(c,t){return c^t+2654435769+(c<<6)+(c>>2)|0}var yo=function(c){function t(i){return i==null?vs():na(i)?i:vs().withMutations(function(s){var b=kn(i);k(b.size),b.forEach(function(M){return s.add(M)})})}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(s){return this(en(s).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(st);yo.isOrderedSet=na;var lo=yo.prototype;lo[fe]=!0,lo.zip=ya.zip,lo.zipWith=ya.zipWith,lo.zipAll=ya.zipAll,lo.__empty=vs,lo.__make=Ha;function Ha(c,t){var i=Object.create(lo);return i.size=c?c.size:0,i._map=c,i.__ownerID=t,i}var zo;function vs(){return zo||(zo=Ha(Ka()))}var Fs={LeftThenRight:-1,RightThenLeft:1};function Ms(c){if(bt(c))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(ne(c))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(c===null||typeof c!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var to=function(t,i){var s;Ms(t);var b=function(W){var J=this;if(W instanceof b)return W;if(!(this instanceof b))return new b(W);if(!s){s=!0;var ae=Object.keys(t),Re=M._indices={};M._name=i,M._keys=ae,M._defaultValues=t;for(var He=0;He<ae.length;He++){var at=ae[He];Re[at]=He,M[at]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+xo(this)+' with property "'+at+'" since that property name is part of the Record API.'):oo(M,at)}}return this.__ownerID=void 0,this._values=Ar().withMutations(function(Bt){Bt.setSize(J._keys.length),en(W).forEach(function(Sn,yn){Bt.set(J._indices[yn],Sn===J._defaultValues[yn]?void 0:Sn)})}),this},M=b.prototype=Object.create(Ho);return M.constructor=b,i&&(b.displayName=i),b};to.prototype.toString=function(){for(var t=xo(this)+" { ",i=this._keys,s,b=0,M=i.length;b!==M;b++)s=i[b],t+=(b?", ":"")+s+": "+Lt(this.get(s));return t+" }"},to.prototype.equals=function(t){return this===t||bt(t)&&$a(this).equals($a(t))},to.prototype.hashCode=function(){return $a(this).hashCode()},to.prototype.has=function(t){return this._indices.hasOwnProperty(t)},to.prototype.get=function(t,i){if(!this.has(t))return i;var s=this._indices[t],b=this._values.get(s);return b===void 0?this._defaultValues[t]:b},to.prototype.set=function(t,i){if(this.has(t)){var s=this._values.set(this._indices[t],i===this._defaultValues[t]?void 0:i);if(s!==this._values&&!this.__ownerID)return ls(this,s)}return this},to.prototype.remove=function(t){return this.set(t)},to.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:ls(this,t)},to.prototype.wasAltered=function(){return this._values.wasAltered()},to.prototype.toSeq=function(){return $a(this)},to.prototype.toJS=function(){return Ce(this)},to.prototype.entries=function(){return this.__iterator(Nt)},to.prototype.__iterator=function(t,i){return $a(this).__iterator(t,i)},to.prototype.__iterate=function(t,i){return $a(this).__iterate(t,i)},to.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var i=this._values.__ensureOwner(t);return t?ls(this,i,t):(this.__ownerID=t,this._values=i,this)},to.isRecord=bt,to.getDescriptiveName=xo;var Ho=to.prototype;Ho[kr]=!0,Ho[Ct]=Ho.remove,Ho.deleteIn=Ho.removeIn=Yi,Ho.getIn=rr,Ho.hasIn=Ci.hasIn,Ho.merge=V,Ho.mergeWith=Y,Ho.mergeIn=yr,Ho.mergeDeep=Vn,Ho.mergeDeepWith=qn,Ho.mergeDeepIn=ci,Ho.setIn=Mi,Ho.update=Sa,Ho.updateIn=Xt,Ho.withMutations=hi,Ho.asMutable=Ti,Ho.asImmutable=Vi,Ho[Yn]=Ho.entries,Ho.toJSON=Ho.toObject=Ci.toObject,Ho.inspect=Ho.toSource=function(){return this.toString()};function ls(c,t,i){var s=Object.create(Object.getPrototypeOf(c));return s._values=t,s.__ownerID=i,s}function xo(c){return c.constructor.displayName||c.constructor.name||"Record"}function $a(c){return On(c._keys.map(function(t){return[t,c.get(t)]}))}function oo(c,t){try{Object.defineProperty(c,t,{get:function(){return this.get(t)},set:function(i){Ji(this.__ownerID,"Cannot set on an immutable record."),this.set(t,i)}})}catch{}}var ro=function(c){function t(i,s){if(!(this instanceof t))return new t(i,s);if(this._value=i,this.size=s===void 0?1/0:Math.max(0,s),this.size===0){if(Ls)return Ls;Ls=this}}return c&&(t.__proto__=c),t.prototype=Object.create(c&&c.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(s,b){return this.has(s)?this._value:b},t.prototype.includes=function(s){return hr(this._value,s)},t.prototype.slice=function(s,b){var M=this.size;return Zt(s,b,M)?this:new t(this._value,Pn(b,M)-nn(s,M))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(s){return hr(this._value,s)?0:-1},t.prototype.lastIndexOf=function(s){return hr(this._value,s)?this.size:-1},t.prototype.__iterate=function(s,b){for(var M=this.size,F=0;F!==M&&s(this._value,b?M-++F:F++,this)!==!1;);return F},t.prototype.__iterator=function(s,b){var M=this,F=this.size,W=0;return new ht(function(){return W===F?we():De(s,b?F-++W:W++,M._value)})},t.prototype.equals=function(s){return s instanceof t?hr(this._value,s._value):Ui(this,s)},t}(zt),Ls;function Ns(c,t){return qo([],t||Go,c,"",t&&t.length>2?[]:void 0,{"":c})}function qo(c,t,i,s,b,M){if(typeof i!="string"&&!ne(i)&&(ze(i)||Ke(i)||Ye(i))){if(~c.indexOf(i))throw new TypeError("Cannot convert circular structure to Immutable");c.push(i),b&&s!==""&&b.push(s);var F=t.call(M,s,qe(i).map(function(W,J){return qo(c,t,W,J,b,i)}),b&&b.slice());return c.pop(),b&&b.pop(),F}return i}function Go(c,t){return Wn(t)?t.toList():tr(t)?t.toMap():t.toSet()}var gs="4.3.7",Bo={version:gs,Collection:Fn,Iterable:Fn,Seq:qe,Map:Pi,OrderedMap:no,List:Ar,Stack:Is,Set:st,OrderedSet:yo,PairSorting:Fs,Record:to,Range:gi,Repeat:ro,is:hr,fromJS:Ns,hash:Xr,isImmutable:ne,isCollection:ur,isKeyed:tr,isIndexed:Wn,isAssociative:er,isOrdered:K,isValueObject:mr,isPlainObject:Ye,isSeq:Nn,isList:Hr,isMap:Un,isOrderedMap:cr,isStack:Vs,isSet:pa,isOrderedSet:na,isRecord:bt,get:nr,getIn:cn,has:an,hasIn:$n,merge:P,mergeDeep:Ie,mergeWith:oe,mergeDeepWith:Ue,remove:$r,removeIn:ra,set:Fr,setIn:vi,update:ua,updateIn:qr},tu=null;const vo=Bo;var hu=0;const es=function(){var c=(new Date().getTime().toString(16)+"FF").substr(0,11),t="ssssssss-xxxx-4xxx-yxxx-x".replace(/[xys]/g,function(i){var s=i==="s"?Math.floor(Math.random()*16):hu++&15,b=i==="x"?s:s&3|8;return b.toString(16)});return t+c};var qu=u(1779),lu=u.n(qu),cu=u(95093),gu=u.n(cu);function Jl(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=fc(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function fc(c,t){if(c){if(typeof c=="string")return uf(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?uf(c,t):void 0}}function uf(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Bf(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Ec(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Bf(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Bf(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var dc=["formatValue","mongoFormatValue","sqlFormatValue","jsonLogic","elasticSearchFormatValue","spelFormatValue","spelImportFuncs","spelImportValue"],Yc=["formatOp","mongoFormatOp","sqlFormatOp","jsonLogic","spelFormatOp"],$u=function(t){return Te(t)==="object"&&t!==null&&Object.prototype.toString.call(t)==="[object Object]"},Fl=function(t){return Te(t)==="object"&&t!==null},wc=function(t){var i=Te(t);return i&&t!==null&&Array.isArray(t)?"array":i},ml=function(t,i){return wc(t)===i||i==="number"&&!isNaN(t)},jl=function(t){if(Te(t)==="object"&&t!==null){if(Array.isArray(t))return $t(t);if($u(t))return Ec({},t)}return t},js=function(t){return!["__proto__","constructor","prototype"].includes(t)},Xo=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)&&js(i)},Ou=function(t,i,s,b){var M={canCreate:!1,canIgnore:!1,canChangeType:!1};b=Ec(Ec({},M),b??{});var F=b,W=F.canCreate,J=F.canIgnore,ae=F.canChangeType;if(!Array.isArray(i))throw new Error("path is not an array");if(!i.length)throw new Error("path is empty");var Re=typeof i[0]=="number"?"array":"object";if(!ml(t,Re))throw new Error("obj is not of type ".concat(Re));var He=jl(t),at=He,Bt=$t(i),Sn=Bt.pop(),yn=[],xn=Jl(Bt),sr;try{for(xn.s();!(sr=xn.n()).done;){var gr=sr.value;if(!js(gr))throw new Error("path contains unsafe ".concat(gr));var Vr=i[yn.length],Dr=typeof Vr=="number"?"array":"object";if(!ml(at[gr],Dr))if(at[gr]?ae:W)at[gr]=Dr==="array"?[]:{};else if(J){at=void 0,He=t;break}else throw new Error("Value by path ".concat(yn.join(".")," should have type ").concat(Dr," but got ").concat(wc(at[gr])));yn.push(gr),at[gr]=jl(at[gr]),at=at[gr]}}catch(oi){xn.e(oi)}finally{xn.f()}if(at)if(s===void 0)delete at[Sn];else{var li=at[Sn];typeof s=="function"?at[Sn]=s(li):at[Sn]=s}return He},gl=function(t,i,s){var b={canCreate:!0,canChangeType:!0,deepCopyObj:!1,deepCopyMixin:!1,arrayMergeMode:"merge",circularRefs:!1,specialSymbols:!0};s=Ec(Ec({},b),s??{});var M=s,F=M.deepCopyObj,W=M.deepCopyMixin,J=M.circularRefs,ae=M.specialSymbols;if(!ml(t,"object"))throw new Error("obj is not an object");if(!ml(i,"object"))throw new Error("mixin is not an object");var Re=Symbol.for("_v"),He=Symbol.for("_type"),at=Symbol.for("_canCreate"),Bt=Symbol.for("_canChangeType"),Sn=Symbol.for("_arrayMergeMode"),yn=F?lu()(t,J):jl(t),xn=!1,sr=function(Vr,Dr,li){var oi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ei=oi.isMixingArray,sa=oi.isMixingRealArray,Ki=0,Bi=function(){if(!js(oa))throw new Error("mixin contains unsafe key ".concat(oa));if(!Xo(Dr,oa))return 0;var va=Ei?Number(oa)+Ki:oa,ba=ae&&Fl(Dr[oa]),fa=s.canCreate,ga=s.canChangeType,da=s.arrayMergeMode,Ca=Dr[oa],xa=!1,Aa=wc(Ca);if(ba){var ka,Wa,ho,mo,Za,is,Io;Re in Dr[oa]&&(xa=!0,Ca=Dr[oa][Re]),Aa=((ka=Dr[oa])===null||ka===void 0?void 0:ka[He])||wc(Ca),fa=(Wa=(ho=Dr[oa])===null||ho===void 0?void 0:ho[at])!==null&&Wa!==void 0?Wa:fa,ga=(mo=(Za=Dr[oa])===null||Za===void 0?void 0:Za[Bt])!==null&&mo!==void 0?mo:ga,da=(is=(Io=Dr[oa])===null||Io===void 0?void 0:Io[Sn])!==null&&is!==void 0?is:da,Aa==="array"&&da==="overwrite"&&(xa=!0)}if(Aa!=="array"&&(da=void 0),!ml(li[va],Aa))if(li[va]?ga:fa)(Aa==="array"||Aa==="object")&&(li[va]=Aa==="array"?[]:{},xn=!0);else return 0;if(Aa==="array"||Aa==="object")if(xa)xn=!0,li[va]=W?lu()(Ca,J):jl(Ca);else if(da&&["join","joinMissing","joinRespectOrder"].includes(da)){xn=!0;var Ja=F?li[va]:lu()(li[va],J),Vo=W?lu()(Ca,J):Ca;da==="joinRespectOrder"?li[va]=Od(Ja,Vo):(da==="joinMissing"&&(Vo=Vo.filter(function(Jo){return!Ja.includes(Jo)})),li[va]=[].concat($t(Ja),$t(Vo)))}else{var Wo;F||(li[va]=jl(li[va])),sr([].concat($t(Vr),[oa]),Ca,li[va],{isMixingArray:Aa==="array",isMixingRealArray:Aa==="array"&&!((Wo=Dr[oa])!==null&&Wo!==void 0&&Wo[He])})}else{var No=Ca===void 0&&!sa&&!xa,os=va in li;No?os&&(xn=!0,Array.isArray(li)?(li.splice(va,1),Ki--):delete li[va]):(xn=!0,li[va]=Ca)}},qi;for(var oa in Dr)qi=Bi()};return sr([],i,yn),xn?yn:t},Ol=function(t,i){return Object.fromEntries(Object.entries(t).filter(function(s){var b=Mt(s,1),M=b[0];return!i.includes(M)}))},Mu=function(t){var i;return(i=t?.cardinality)!==null&&i!==void 0?i:1},hc=function(t,i){return t===i?!0:Pi.isMap(t)?t.equals(i):JSON.stringify(t)==JSON.stringify(i)},xc=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t===i?!0:Array.isArray(t)?Zl(t,i,s):Pi.isMap(t)?t.equals(i):Te(t)=="object"?Bl(t,i,s):t===i};function Zl(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(c===t)return!0;if(!c||!t)return!1;var s=c.length;if(t.length!==s)return!1;for(var b=0;b<s;b++){var M=i?xc(c[b],t[b],i):c[b]===t[b];if(!M)return!1}return!0}function Bl(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(c===t)return!0;if(!c||!t)return!1;var s=Object.keys(c),b=Object.keys(t),M=s.length;if(b.length!==M)return!1;for(var F=0;F<M;F++){var W=s[F],J=i?xc(c[W],t[W],i):c[W]===t[W];if(!J)return!1}return!0}var Tu=function(t){return Te(t)==="object"&&t!==null&&typeof t.toJS=="function"},ac=function(t){return Tu(t)&&vo.isList(t)};function Ju(c){return ac(c)?c:new vo.List(c)}function $f(c){return Tu(c)?c.toJS():c}var lf=function(t){return t.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&")},Cc=function(t,i,s,b,M,F){if(Array.isArray(t))return i},wf=function(t){var i=["$$typeof","_owner","_store","ref","key"],s=function(W){return typeof W=="string"?W:typeof W=="function"?W.name:W};if(t instanceof Array)return t.map(function(F,W){return wf(F)});if(Te(t)==="object"&&t!==null&&Il(t)){var b,M=Ol(t,i);return M.type&&(M.type=s(M.type)),M!=null&&(b=M.props)!==null&&b!==void 0&&b.children&&(M.props.children=wf(M.props.children)),M}return t},Il=function(t){return Te(t)==="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).includes("type")&&Object.keys(t).includes("props")&&Object.keys(t).includes("key")&&Object.keys(t).includes("ref")&&Object.keys(t).includes("$$typeof")},id=function(t){return Te(t)==="object"&&t!==null&&!Array.isArray(t)&&typeof t.type=="string"&&Object.keys(t).includes("props")},$l=function(t){var i=Te(t)==="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length===1;return i};function ad(c){return new Promise(function(t){setTimeout(t,c)})}function Od(c,t){return c||(c=[]),t||(t=[]),t.map(function(i){return[i,c.indexOf(i)]}).map(function(i,s,b){var M=Mt(i,2),F=M[0],W=M[1];if(W==-1){var J=b.slice(s+1),ae=b.slice(0,s),Re=$t(ae).reverse().find(function(yn){var xn=Mt(yn,2),sr=xn[0],gr=xn[1];return gr!=-1}),He=ae[ae.length-1],at=J.find(function(yn){var xn=Mt(yn,2),sr=xn[0],gr=xn[1];return gr!=-1}),Bt=Re&&Re===ae[ae.length-1],Sn=at&&J===J[0];return Bt?[F,"after",Re[0]]:Sn?[F,"before",at[0]]:Re?He?[F,"after",He[0]]:[F,"after",Re[0]]:at?[F,"before",at[0]]:[F,"append",null]}else return null}).filter(function(i){return i!==null}).reduce(function(i,s){var b=Mt(s,3),M=b[0],F=b[1],W=b[2],J=i.indexOf(W);if(i.indexOf(M)===-1)if(J>-1){var ae=F==="after"?1:0;i.splice(J+ae,0,M)}else i.splice(F==="append"?1/0:0,0,M);return i},c.slice())}var Td=function(t){Te(t)==="object"&&t!==null&&!Il(t)&&(Object.keys(t).forEach(function(i){i!=="__cache"&&Td(t[i])}),Object.freeze(t))},Ad=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if($u(t)){if(t.var)return s[t.var]=i,!0;if(!$u(i))return!1;for(var M in t){var F=t[M],W=i[M];if(!Ad(F,W,s,[].concat($t(b),[M])))return!1}return!0}else if(Array.isArray(t)){if(!Array.isArray(i))return!1;for(var J=0;J<t.length;J++){var ae=t[J],Re=i[J];if(!Ad(ae,Re,s,[].concat($t(b),[J])))return!1}return!0}else return t===i},Uh=function(){var t;return typeof process<"u"&&((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:"production")=="development"},xf=function(){var t;return typeof process<"u"&&((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.NODE_ENV_TEST)=="true"},Dl=function(t){if(xf())return Ec(Ec({},console),{},{log:function(){},debug:function(){},info:function(){}});var i=t??Uh();return i?console:{error:function(){},log:function(){},warn:function(){},debug:function(){},info:function(){}}},$c=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i,s=0;s<t.length;s++){var b=t[s];if(b!==void 0){i=b;break}}return i},Jc=Dl(),cf=u(86636),rl=u.n(cf),od=u(44383),Ul=u.n(od);function Kd(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Cf(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Kd(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Kd(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Vh=rl().mark(Of),pu=rl().mark(Zc),Xl=dc,Zu=["conjunctions","fields","types","operators","widgets","settings","funcs","ctx"],ff=["select","multiselect","treeselect","treemultiselect"];function Of(c){return rl().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.delegateYield(cl(c,c.funcs||{},[]),"t0",1);case 1:case"end":return i.stop()}},Vh)}function Zc(c){return rl().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.delegateYield(cl(c,c.fields||{},[]),"t0",1);case 1:case"end":return i.stop()}},pu)}function cl(c,t,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"subfields";return rl().mark(function b(M){var F,W,J;return rl().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:F=(c==null||(M=c.settings)===null||M===void 0?void 0:M.fieldSeparator)||".",Re.t0=rl().keys(t);case 2:if((Re.t1=Re.t0()).done){Re.next=13;break}if(W=Re.t1.value,J=t[W],!J[s]){Re.next=9;break}return Re.delegateYield(cl(c,J[s],[].concat($t(i),[W]),s),"t2",7);case 7:Re.next=11;break;case 9:return Re.next=11,[[].concat($t(i),[W]).join(F),J,W];case 11:Re.next=2;break;case 13:case"end":return Re.stop()}},b)})()}var Eu=function(t,i){var s,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"fields",M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"subfields";if(!i)return null;if(i==="!case_value"){var F;return t==null||(F=t.settings)===null||F===void 0?void 0:F.caseValueField}var W=(t==null||(s=t.settings)===null||s===void 0?void 0:s.fieldSeparator)||".",J=ru(i,t),ae=t[b];if(!ae)return null;for(var Re=ae,He=null,at=[],Bt=0;Bt<J.length;Bt++){var Sn=J[Bt];at.push(Sn);var yn=at.join(W);He=Re[yn],Bt<J.length-1&&(He&&He[M]?(Re=He[M],at=[]):He=null)}return He},il=function(t,i){var s,b,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,F=t.settings.fieldSeparator,W=[M].concat($t(i.split(F))).filter(function(Re){return Re!=null}),J=i,ae=(s=t.__fieldNames[J])===null||s===void 0||(b=s.find)===null||b===void 0||(b=b.call(s,function(Re){var He=Re.inGroup;return He?M?.startsWith(He):!0}))===null||b===void 0?void 0:b.fullPath;return(ae||W).join(F)},sd=function(t,i){if(!i)return null;var s=Eu(t,i,"funcs","subfields");if(!s)return null;var b=s.returnType,M=s.args,F=Object.fromEntries(Object.entries(M||{}).map(function(J){var ae=Mt(J,2),Re=ae[0],He=ae[1],at=Ul()(He,["type","valueSources","defaultValue","fieldSettings","isOptional","_funcKey","_argKey","_isFuncArg"]);return[Re,at]})),W={returnType:b,args:F};return W},wu=function(t,i){if(!i)return null;var s=Eu(t,i,"funcs","subfields");return s||null},Uf=function(t,i,s){var b=wu(t,i);if(!b)return null;var M=b.args&&b.args[s]||null;return M||null},sh=function(t,i){var s,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!i)return!1;var M=(b==null||(s=b.settings)===null||s===void 0?void 0:s.fieldSeparator)||".",F=oc(t,b),W=oc(i,b);return F.startsWith(W+M)},oc=function(t){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string")return t;var b=(s==null||(i=s.settings)===null||i===void 0?void 0:i.fieldSeparator)||".";return ru(t,s).join(b)},ru=function(t){var i,s,b,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!t)return[];if(Array.isArray(t))return t;var F=(M==null||(i=M.settings)===null||i===void 0?void 0:i.fieldSeparator)||".";if(t!=null&&t.func)return Array.isArray(t.func)?t.func:t.func.split(F);if(t!=null&&(s=t.get)!==null&&s!==void 0&&s.call(t,"func")){var W;return t==null||(W=t.get)===null||W===void 0?void 0:W.call(t,"func").split(F)}return(t==null||(b=t.split)===null||b===void 0?void 0:b.call(t,F))||[]},Tf=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!t)return null;var b=i.settings.fieldSeparator,M=ru(t,i);return s?M:M.map(function(F,W,J){return J.slice(0,W+1)}).map(function(F){return F.join(b)})},Oc=function(t){var i;if(typeof t=="string"||Array.isArray(t))return"field:".concat(oc(t));if(Te(t)==="object"&&t){if(t._funcKey&&t._argKey)return"arg:".concat(oc(t._funcKey),"__").concat(t._argKey);if(t._funcKey)return"func:".concat(oc(t._funcKey));if(t.func&&t.arg)return"arg:".concat(oc(t.func),"__").concat(t.arg);if(t.func)return"func:".concat(oc(t.func));if(t.type)return null}return t!=null&&(i=t.get)!==null&&i!==void 0&&i.call(t,"func")?t!=null&&t.get("arg")?"arg:".concat(oc(t.get("func")),"__").concat(t.get("arg")):"func:".concat(oc(t.get("func"))):null},df=function(t,i,s){var b;return(b=t.__cache)===null||b===void 0||(b=b[i])===null||b===void 0?void 0:b[s]},ud=function(t,i,s,b){!t.__cache||!s||(t.__cache[i]||(t.__cache[i]={}),t.__cache[i][s]=b)},Tl=function(t){var i;if(!t)return null;if(Te(t)==="object"){if(!t.func&&t.type)return"field";if(t.func)return t.func&&t.arg?null:"func"}return t!=null&&(i=t.get)!==null&&i!==void 0&&i.call(t,"func")?t!=null&&t.get("arg")?null:"func":"field"},as=function(t,i){var s;if(!i)return null;if(Te(i)=="object"){if(!i.func&&i.type&&i.widgets)return i;if(i._isFuncArg)return Uf(t,i._funcKey,i._argKey);if(i._isFunc)return wu(t,i._funcKey);if(i.func)return i.func&&i.arg?Uf(t,i.func,i.arg):wu(t,i.func)}if(i!=null&&(s=i.get)!==null&&s!==void 0&&s.call(i,"func"))return i!=null&&i.get("arg")?Uf(t,i.get("func"),i.get("arg")):wu(t,i.get("func"));var b=Eu(t,i);return b||null},nu=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!i)return null;var b=t.operators[i];if(s){var M,F,W=Oc(s),J=W?"".concat(W,"__").concat(i):null,ae=df(t,"getOperatorConfig",J);if(ae)return ae;var Re=as(t,s),He=ku(t,s,i,null),at=t.widgets[He]||{},Bt=(Re&&Re.widgets?Re.widgets[He]:{})||{},Sn=((M=at.opProps)===null||M===void 0?void 0:M[i])||{},yn=((F=Bt.opProps)===null||F===void 0?void 0:F[i])||{},xn=Cf(Cf(Cf({},b),Sn),yn);return ud(t,"getOperatorConfig",J,xn),xn}else return b},Xu=function(t,i){var s,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,W=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(!i)return null;var J=as(t,i),ae=Oc(i);M||(M=ku(t,i,b,F));var Re=ae?"".concat(ae,"__").concat(b,"__").concat(M,"__").concat(F):null,He=df(t,"getFieldWidgetConfig",Re);if(He)return He;var at=t.widgets[M]||{},Bt=(J==null||(s=J.widgets)===null||s===void 0?void 0:s[M])||{},Sn=Bt.widgetProps||{},yn=F==="value"||!F?J?.fieldSettings:{},xn=Cf(Cf(Cf(Cf({},at),Bt),Sn),yn);return ud(t,"getFieldWidgetConfig",Re,xn),W.forExport&&(xn=Ol(xn,"factory")),xn},Ql=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=t.settings.fieldSeparator,b=ru(i,t),M=i?Eu(t,i):t,F=M,W=null,J=[];do{var ae,Re=F===t?t.fields:(ae=F)===null||ae===void 0?void 0:ae.subfields;if(!Re||!Object.keys(Re).length){F=W=null;break}W=Object.keys(Re)[0],J.push(W),F=Re[W]}while(F.type=="!struct"||F.type=="!group");return(b||[]).concat(J).join(s)};function Af(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,b=[],M=[];if(!t)return{widgets:b,valueSrcs:M};var F=Oc(t),W=F?"".concat(F,"__").concat(i,"__").concat(s):null,J=df(c,"_getWidgetsAndSrcsForFieldOp",W);if(J)return J;var ae=Te(t)==="object"&&(!!t.func&&!!t.arg||t._isFuncArg),Re=as(c,t),He=i?c.operators[i]:null;if(Re!=null&&Re.widgets){var at=function(){var sr=Re.widgets[Bt];if(!c.widgets[Bt])return 1;var gr=c.widgets[Bt].valueSrc||"value",Vr=!0;if(Bt==="field"&&(Vr=Vr&&Rf(c,["field"],Re,i).length>0),Bt==="func"&&(Vr=Vr&&Rf(c,["func"],Re,i).length>0),s==="value"&&!sr.operators&&!ae&&t!=="!case_value"&&(Vr=!1),sr.operators&&i&&(Vr=Vr&&sr.operators.indexOf(i)!=-1),s&&s!=gr&&s!=="const"&&(Vr=!1),He&&He.cardinality==0&&gr!=="value"&&(Vr=!1),Vr){var Dr,li;b.push(Bt);var oi=((Dr=Re.valueSources)===null||Dr===void 0?void 0:Dr.indexOf(gr))!=-1;(He==null||(li=He.valueSources)===null||li===void 0?void 0:li.indexOf(gr))==-1&&(oi=!1),oi&&!M.find(function(Ei){return Ei==gr})&&M.push(gr)}};for(var Bt in Re.widgets)at()}var Sn=function(sr){var gr=0;return Re.preferWidgets?Re.preferWidgets.includes(sr)&&(gr+=10-Re.preferWidgets.indexOf(sr)):sr==Re.mainWidget&&(gr+=100),sr==="field"&&(gr-=1),sr==="func"&&(gr-=2),gr};b.sort(function(xn,sr){return Sn(sr)-Sn(xn)});var yn={widgets:b,valueSrcs:M};return ud(c,"_getWidgetsAndSrcsForFieldOp",W,yn),yn}var Rf=function(t,i,s){var b,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(!s)return i;var F=(b=s.type)!==null&&b!==void 0?b:s.returnType;F==="!group"&&(F="number");var W=!1;if(M){var J=t.operators[M];J!=null&&J.valueTypes&&(F=J.valueTypes[0],W=!0)}return i||(i=Object.keys(t.settings.valueSourcesInfo)),i.filter(function(ae){var Re=!0;if(ae==="field"&&t.__fieldsCntByType){var He=s._isFuncArg||W?0:1;Re=Re&&t.__fieldsCntByType[F]>He}return ae==="func"&&(s.funcs&&(Re=Re&&s.funcs.length>0),t.__funcsCntByType&&(Re=Re&&t.__funcsCntByType[F]>0)),Re})},ku=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=Af(t,i,s,b),F=M.widgets,W=null;return F.length&&(W=F[0]),W},Oh=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=Af(t,i,s,null),F=M.valueSrcs,W=Rf(t,F,b,s);return W},zh=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=Af(t,i,s,b),F=M.widgets;return F},el=function(t,i){var s;return((s=t.types[i])===null||s===void 0?void 0:s.operators)||null},Vf=function(t,i){var s=as(t,i),b=s?s.operators:[];return b},Xc=function(t,i){var s,b=Vf(t,i);return(s=b?.[0])!==null&&s!==void 0?s:null},Uc=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!t)return null;var b=s&&Eu(i,s)||null,M=i.settings.fieldSeparator,F=ru(t,i),W=sh(t,s,i),J=W?ru(s,i):[];return F.slice(J.length).map(function(ae,Re,He){return He.slice(0,Re+1)}).map(function(ae){return{part:[].concat($t(J),$t(ae)).join(M),key:ae[ae.length-1]}}).map(function(ae){var Re=ae.part,He=ae.key,at=Eu(i,Re);return{key:He,cnf:at}}).map(function(ae,Re,He){var at=ae.key,Bt=ae.cnf,Sn=Re>0?He[Re-1].cnf:b;return[at,Bt,Sn]})},bo=function(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),b=1;b<i;b++)s[b-1]=arguments[b];return t.interpose("children1").withMutations(function(M){return M.skip(1),M.push.apply(M,s),M})},zf=function(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),b=1;b<i;b++)s[b-1]=arguments[b];return t.interpose("children1").withMutations(function(M){return M.push.apply(M,s),M})},sc=function(t,i){var s=new vo.OrderedMap(tt({},t.get("id"),t)),b=t;return i.forEach(function(M){var F,W;b=(F=s)===null||F===void 0?void 0:F.get(M),s=(W=b)===null||W===void 0?void 0:W.get("children1")}),b},Wf=function(t,i){var s=i.map(function(b,M){return i.take(M+1)}).reverse().toJS().map(function(b){return{item:sc(t,b),path:b}}).filter(function(b){var M=b.item;return M?.get("type")==="rule_group"});return s.length?s.map(function(b){var M=b.item,F=b.path;return{path:F,field:M.get("properties").get("field")}}):[]},Gf=function(t){var i=t;function s(b,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,W=M.push(b.get("id")),J=b.getIn(["properties","isLocked"]);F&&J&&(i=i.deleteIn(bo(W,"properties","isLocked")));var ae=b.get("children1");ae&&ae.map(function(Re,He){s(Re,W,J||F)})}return s(t,new vo.List),i},Uu=function(t){var i=t;function s(b,M,F,W){if(b){var J=b.get("path"),ae=b.get("id"),Re=ae||W||es(),He=M.push(Re);(!J||!J.equals(He))&&(i=i.setIn(bo(He,"path"),He)),ae||(i=i.setIn(bo(He,"id"),Re));var at=b.get("children1");at&&(at.constructor.name==="Map"&&(i=i.setIn(bo(He,"children1"),new vo.OrderedMap(at))),at.map(function(Bt,Sn){s(Bt,He,F+1,Sn)}))}}return s(t,new vo.List,0),i},ld=function(t){var i=t;function s(b,M,F,W){if(!b)return!1;var J=b.get("id")||W,ae=M.push(J),Re=b.get("children1");if(Re){var He=Re.map(function(at,Bt){return s(at,ae,F+1,Bt)}).reduce(function(at,Bt){return at&&Bt},!0);if((Re.size==0||He)&&F>0)return i=i.deleteIn(bo(ae)),!0}return!1}return s(t,new vo.List,0),i},uh=function(t,i){var s=[],b={},M=[],F=0,W=0,J=0,ae=0,Re={};function He(xn,sr,gr,Vr,Dr,li,oi,Ei,sa){var Ki,Bi,qi,oa=xn===t,zi=xn.get("type"),va=xn.get("collapsed"),ba=xn.get("id"),fa=xn.get("children1"),ga=xn.getIn(["properties","isLocked"]),da=fa?fa.map(function(ic,ju){return ju}).valueSeq().toArray():null,Ca=zi==="rule_group",xa=zi==="rule",Aa=zi==="group",ka=zi==="case_group",Wa=!Dr&&(!fa||Ca),ho=da?.length>0,mo=sr.length?sr[sr.length-1]:null,Za=$t(sr).reverse().find(function(ic){return b[ic].type=="rule_group"}),is=xn.getIn(["properties","field"]),Io=is&&i&&as(i,is),Ja=Io?Io?.canRegroup!==!1:void 0,Vo=Io?.maxNesting,Wo=b==null||(Ki=b[Za])===null||Ki===void 0?void 0:Ki.canRegroup,No=b==null||(Bi=b[Za])===null||Bi===void 0?void 0:Bi.maxNesting,os=b==null||(qi=b[Za])===null||qi===void 0?void 0:qi.lev,Jo=ka?ba:Ei;ka&&(M.push(ba),W=0,J=0,ae=0,Re={});var ps=Jo?M.indexOf(Jo):null,Ps=s.length,Ss=F,xs;oa||(xs={},xs.caseNo=ps,xs.globalNoByType=ka?ps:Re[zi]||0,xs.indexPath=[].concat($t(sr.slice(1).map(function(ic){return b[ic].childNo})),[sa]),xa?xs.globalLeafNo=W:Aa&&(xs.globalGroupNo=ae));var Gu=Dr||Ca?oi:oi+1;s.push(ba),b[ba]={node:xn,index:Ps,id:ba,type:zi,parent:mo,children:da,childNo:sa,caseId:Jo,caseNo:ps,closestRuleGroupId:Za,closestRuleGroupLev:os,closestRuleGroupMaxNesting:No,closestRuleGroupCanRegroup:Wo,maxNesting:Vo,canRegroup:Ja,path:sr.concat(ba),lev:li,atomicLev:oi,nextAtomicLev:Gu,isLeaf:!fa,isAtomicRule:Wa,isLocked:ga||Vr,top:gr?null:Ss,isDefaultCase:ka?!fa:void 0,atomicRulesCountInCase:ka?0:void 0,position:xs,collapsed:va,_top:Ps,parentType:mo?b[mo].type:null,leaf:!fa};var Cu=0,Fu=0;gr||(F+=1,Cu+=1,ho&&!va&&!Ca&&(Fu+=1),!oa&&!ka&&(Aa&&ae++,Wa&&J++,xa&&W++,Re[zi]=(Re[zi]||0)+1)),Ei&&Wa&&b[Ei].atomicRulesCountInCase++;var eu=0,ll=0;if(ho){var Yu=0;fa.map(function(ic,ju){if(ic){He(ic,sr.concat(ba),gr||va,Vr||ga,Dr||Ca,li+1,Gu,Jo,Yu);var Hc=b[ju];eu=Math.max(eu,Hc.depth||0),ll+=Hc.height,Yu++}})}Cu+=ll,Fu+=eu;var rc=s.length,pl=rc-Ps,Wl=gr?null:Ss+Cu;Object.assign(b[ba],{depth:fa?Fu:void 0,_height:pl,height:Cu,bottom:Wl})}He(t,[],!1,!1,!1,0,0,null,null);for(var at=0;at<s.length;at++){var Bt=at>0?s[at-1]:null,Sn=at<s.length-1?s[at+1]:null,yn=b[s[at]];yn.prev=Bt,yn.next=Sn}return{flat:s,items:b,cases:M}},lh=function(t){if(!t)return-1;var i=0;function s(b,M,F){var W,J,ae;typeof b.get=="function"?(W=b.get("id"),J=b.get("children1"),ae=b.get("type")):(W=b.id,J=b.children1,ae=b.type),i++,ae=="rule_group"&&F>0||J&&J.map(function(Re,He){Re&&s(Re,M.concat(W),F+1)})}return s(t,[],0),i-1},ch=function(t){if(!t)return-1;var i=0;function s(b,M,F){var W,J,ae;typeof b.get=="function"?(W=b.get("id"),J=b.get("children1"),ae=b.get("type")):(W=b.id,J=b.children1,ae=b.type),ae=="rule"||ae=="rule_group"&&F>0?i++:J&&J.map(function(Re,He){Re&&s(Re,M.concat(W),F+1)})}return s(t,[],0),i},Tc=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=t;function M(F,W){i&&F.path&&delete F.path,i&&!s&&W&&delete F.id;var J=F.properties;J&&J.operatorOptions==null&&delete J.operatorOptions;var ae=F.children1;if(ae){for(var Re in ae)ae[Re]&&M(ae[Re],Re);s&&(F.children1=Object.values(ae))}}return M(t,null),b},qs=function(t){var i=[],s=t.get("children1");return s&&s.map(function(b){var M=b.getIn(["properties","value"]),F;M&&M.size==1?(F=M.get(0),Array.isArray(F)&&F.length==0&&(F=null)):F=null,i=[].concat($t(i),[F])}),i},Rd=function(t){return!t.get("children1")||t.get("children1").size==0},Hf=function(t,i){return t.getIn(bo(i,"children1")).size>0},Yd=function(t){if(t!=null&&t.toJS){var i,s=t==null||(i=t.toJS)===null||i===void 0?void 0:i.call(t);return s!=null&&s.func?t.toOrderedMap():s}else return t};function Qc(c){var t=Ns(c,function(i,s,b){var M=b&&b.length>3&&b[b.length-1]==="value"&&b[b.length-3]==="args",F=b&&b.length>3&&b[b.length-1]==="value"&&b[b.length-2]==="properties",W;if(i=="properties"){W=s.toOrderedMap();for(var J=0;J<2;J++){var ae,Re;((ae=W.get("value"))===null||ae===void 0||(Re=ae.get)===null||Re===void 0?void 0:Re.call(ae,J))===null&&(W=W.setIn(["value",J],void 0))}}else M?W=Yd(s):(b?F:i=="value")&&vo.Iterable.isIndexed(s)?W=s.map(Yd).toList():i=="asyncListValues"?W=s.toJS():i=="children1"&&vo.Iterable.isIndexed(s)?W=new vo.OrderedMap(s.map(function(He){return[He?.get("id")||es(),He]})):W=vo.Iterable.isIndexed(s)?s.toList():s.toOrderedMap();return W});return t}var Kf=function(t){return qc(t)},Pd=function(t,i,s){var b=i?nu(t,i,s):null;return b&&b.options?new vo.Map(b.options&&b.options.defaults||{}):null},qc=function(t){var i,s,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;b=as(t,b);var M=((i=b)===null||i===void 0?void 0:i.conjunctions)||Object.keys(t.conjunctions);return M.length==1?M[0]:((s=b)===null||s===void 0?void 0:s.defaultConjunction)||t.settings.defaultConjunction||t.settings.defaultGroupConjunction||M[0]},pc=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return new vo.Map({conjunction:qc(t,i),not:!1})},Jd=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=t.settings.defaultField,M=(s?Pf(t,s):b)||i&&Ql(t,s)||null;return M!=null&&typeof M!="string"&&!Tu(M)&&(M=Qc(M)),M},Pf=function(t){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!s)return null;var b=(t==null||(i=t.settings)===null||i===void 0?void 0:i.fieldSeparator)||".",M=as(t,s),F=M?.defaultField;return F&&(F=[].concat($t(ru(s)),[F]).join(b)),F},If=function(t){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return s&&((i=t.settings.fieldSources)===null||i===void 0?void 0:i[0])||"field"},fh=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=as(t,i),M=b?.operators||[],F=t.settings.defaultOperator;F&&!M.includes(F)&&(F=null);var W=b?.defaultOperator,J=b?.ownDefaultOperator,ae=s?Xc(t,i):null,Re=J||F||W||ae;return Re},Id=function(t){return ac(t)?t:Df([t])},Df=function(t){return ac(t)?t:new vo.List(t)},cd=function(){return new vo.Map},Dd=u(68090),Yf=u.n(Dd),Vu=function(t,i,s){var b=null;if(t){if(i==="field"){var M=as(s,t);M&&(b=M.type)}else if(i==="func"){var F=t.get("func");if(F){var W=wu(s,F);W&&(b=W.returnType||W.type)}}}return b},Au=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return ql(t,i,s,"funcs","subfields")},ql=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"fields",M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"subfields";if(!t)return null;var F=i.settings.fieldSeparator,W=ru(t,i),J=ru(s,i),ae=W.slice(J.length).map(function(Re,He,at){return at.slice(0,He+1)}).map(function(Re){return[].concat($t(J),$t(Re)).join(F)}).map(function(Re){var He=Eu(i,Re,b,M);return He&&He.label||Yf()(Re.split(F))}).filter(function(Re){return Re!=null});return ae},Vl=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,W=Xu(t,i,s,null,M)||{},J=nu(t,s,i)||{},ae=F?1:J.cardinality,Re=null;if(ae>1){var He=W.valueLabels||J.valueLabels;He&&(Re=He[b]),Re&&Te(Re)!=="object"&&(Re={label:Re,placeholder:Re}),Re||(Re={label:t.settings.valueLabel+" "+(b+1),placeholder:t.settings.valuePlaceholder+" "+(b+1)})}else{var at=W.valueLabel,Bt=W.valuePlaceholder;Re={label:at||t.settings.valueLabel,placeholder:Bt||t.settings.valuePlaceholder}}return Re},zu=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};if(t){var F=as(i,t)||{},W=i.settings.fieldSeparator,J=ru(t,i),ae=Array.isArray(t)?t.join(W):t;if(M!=null&&M.useTableName&&F.tableName){var Re=$t(J);Re[0]=F.tableName,ae=Re.join(W)}if(F.fieldName&&(ae=F.fieldName),b){var He=as(i,b)||{},at=b;ae.indexOf(at+W)==0?ae=ae.slice((at+W).length):F.fieldName||s.errors.push("Can't cut group ".concat(at," from field ").concat(ae))}return ae}},yl=function(t,i){var s=t.get("type"),b=t.getIn(["properties","mode"]);return s=="rule_group"&&b=="array"?Lu(t,i):s=="group"||s=="rule_group"?fd(t,i):uc(t,i)},Lu=function(t,i){var s=t.get("children1"),b=t.get("properties");return hf(b.toObject(),s,i)},hf=function(t,i,s){var b,M,F=t.operator,W=(b=(M=s.operators[F])===null||M===void 0?void 0:M.cardinality)!==null&&b!==void 0?b:1,J=W==0,ae={group:!Vc(t,s),children:!ef(i,s)},Re=ae.group&&(J?ae.children:!0);return!Re},fd=function(t,i){var s=t.get("children1");return ef(s,i)},ef=function(t,i){var s=t?.size>0&&t.filter(function(b){return!yl(b,i)}).size>0;return!s},uc=function(t,i){var s=t.get("properties");return Vc(s?.toObject()||{},i)},Vc=function(t,i){var s=!0,b=3,M=Th(t,i,s),F=M.score>=b;return!F},Th=function(t,i){var s,b,M,F=t.field,W=t.fieldSrc,J=t.fieldType,ae=t.operator,Re=t.value,He=t.valueSrc,at=t.valueType,Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Sn=(s=(b=i.operators[ae])===null||b===void 0?void 0:b.cardinality)!==null&&s!==void 0?s:1,yn=He!=null&&He.get?He.toJS():He,xn={parts:{},score:0};if(xn.parts.field=Bt?F!=null:Zd(F,W,i),xn.parts.operator=!!ae,xn.parts.value=(Re==null||(M=Re.filter(function(gr,Vr){return Zd(gr,yn?.[Vr],i,Bt)}))===null||M===void 0?void 0:M.size)>=(Bt?Math.min(Sn,1):Sn),xn.score=Object.keys(xn.parts).filter(function(gr){return!!xn.parts[gr]}).length,Bt&&xn.score<3){var sr=!0;!xn.parts.value&&W==="func"&&Zd(F,W,i,!1,sr)&&xn.score++,xn.parts.field||Re?.map(function(gr,Vr){yn?.[Vr]==="func"&&Zd(gr,yn?.[Vr],i,!1,sr)&&xn.score++})}return xn},Zd=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(!b&&i=="func"&&t){var F,W=(F=t.get)===null||F===void 0?void 0:F.call(t,"func"),J=wu(s,W);if(J){var ae=t.get("args");for(var Re in J.args){var He=J.args[Re],at=ae?ae.get(Re):void 0,Bt=at?at.get("value"):void 0,Sn=at?at.get("valueSrc"):void 0;if(Bt==null&&He?.defaultValue===void 0&&!(He!=null&&He.isOptional)||Bt!=null&&!Zd(Bt,Sn,s,M?b:!0))return!1}return!0}}return t!=null},Pe=function(t,i,s){return i=="func"?ut(t,s):t},ut=function(t,i){if(t){var s=t.get("func"),b=s&&wu(i,s);if(b){var M=t,F=!1;for(var W in b.args){var J=b.args[W],ae=J.valueSources,Re=J.isOptional,He=J.defaultValue,at=Rf(i,ae,J),Bt=M.get("args"),Sn=at.length==1?at[0]:void 0,yn=Bt?Bt.get(W):void 0,xn=yn?yn.get("value"):void 0,sr=(yn?yn.get("valueSrc"):void 0)||Sn;if(xn!==void 0){var gr=Pe(xn,sr,i);if(gr===void 0||(gr!==xn&&(M=M.setIn(["args",W,"value"],gr)),F))return}else if(He!==void 0&&!$u(He))M=M.setIn(["args",W,"value"],lr(J)),M=M.setIn(["args",W,"valueSrc"],"value");else if(Re)F=!0;else return}return M}}},Kt=function(t){var i=t.get("children1");if(i?.size==1){var s=i.first(),b=s.get("type");return b==="group"?Kt(s):s}return null},lr=function(t){var i=t.defaultValue;return $u(i)&&!vo.Map.isMap(i)&&i.func?vo.fromJS(i,function(s,b){return vo.Iterable.isIndexed(b)?b.toList():b.toOrderedMap()}):i},pr=function(t,i,s,b,M){if(t&&t.get("func")){t=t.setIn(["args",i,"value"],s);var F=t.getIn(["args",i,"valueSrc"]),W=b.valueSources,J=Rf(M,W,b),ae=J.length==1?J[0]:void 0;!ae&&J.includes("value")&&(ae="value"),!F&&ae&&(t=t.setIn(["args",i,"valueSrc"],ae))}return t},Mr=function(t,i,s){if(s)for(var b in s.args)i=ui(t,i,s,b);return i},ui=function(t,i,s,b){var M=s.args[b],F=M.valueSources,W=M.defaultValue,J=Rf(t,F,M),ae=J.length?J[0]:void 0,Re=W?$u(W)&&W.func?"func":"value":void 0,He=Re||ae,at=i.getIn(["args",b]);return at||(W!==void 0&&(i=i.setIn(["args",b,"value"],lr(M))),He&&(i=i.setIn(["args",b,"valueSrc"],He))),i};function Ai(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Xi(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Ai(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Ai(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var ca=function(t,i){var s={usedFields:[]},b=ma(t,i,s);if(b)return Xi(Xi({},b),s)},ma=function(t,i,s){if(t){var b=t.get("type"),M=t.get("children1");if((b==="group"||b==="rule_group")&&M&&M.size)return Wi(t,i,s);if(b==="rule")return aa(t,i,s)}},Wi=function(t,i,s){var b=t.get("properties")||new Pi,M=t.get("children1"),F=t.get("id"),W=M.map(function(He){return ma(He,i,s)}).filter(function(He){return typeof He<"u"});if(W.size){var J=b.get("conjunction");J||(J=Kf(i));var ae=b.get("not"),Re={id:F,rules:W.toList(),condition:J.toUpperCase(),not:ae};return Re}},aa=function(t,i,s){var b,M=t.get("properties")||new Pi,F=t.get("id"),W=M.get("operator"),J=M.get("operatorOptions"),ae=M.get("field"),Re=M.get("value"),He=M.get("valueSrc"),at=M.get("valueType"),Bt=Re.filter(function(Bi){return Bi===void 0}).size>0;if(!(ae==null||W==null||Bt)){var Sn=as(i,ae)||{},yn=nu(i,W,ae)||{},xn=Sn.type||"undefined",sr=Mu(yn),gr=i.types[Sn.type]||{},Vr=zu(ae,i,s);if(!(Re.size<sr)){s.usedFields.indexOf(ae)==-1&&s.usedFields.push(ae),Re=Re.toArray(),He=He.toArray(),at=((b=at)===null||b===void 0?void 0:b.toArray())||[];for(var Dr=[],li=0;li<Re.length;li++){var oi={type:at[li],value:Re[li]};if(Dr.push(oi),He[li]=="field"){var Ei=Re[li];s.usedFields.indexOf(Ei)==-1&&s.usedFields.push(Ei)}}var sa=J?J.toJS():null;sa&&!Object.keys(sa).length&&(sa=null);var Ki={id:F,fieldName:Vr,type:xn,input:gr.mainWidget,operator:W};return sa&&(Ki.operatorOptions=sa),Ki.values=Dr,Ki}}},Ta=u(6924),co=u.n(Ta),So={reverseOperatorsForNot:!1,canShortMongoQuery:!0,fixJsonLogicDateCompareOp:!1,formatField:function(t,i,s,b,M,F){return F?s:t},caseValueField:{type:"case_value"},fieldSources:["field"],keepInputOnChangeFieldSrc:!0,fieldItemKeysForSearch:["label","path","altLabel","grouplabel"],listKeysForSearch:["title","value"],valueSourcesInfo:{value:{}},fieldSeparator:".",fieldSeparatorDisplay:".",canReorder:!0,canRegroup:!0,canDeleteLocked:!1,canLeaveEmptyGroup:!0,shouldCreateEmptyGroup:!1,exportPreserveGroups:!1,removeEmptyGroupsOnLoad:!0,removeEmptyRulesOnLoad:!0,removeIncompleteRulesOnLoad:!1,removeInvalidMultiSelectValuesOnLoad:!0,showErrorMessage:!1,setOpOnChangeField:["keep","default"],groupOperators:["some","all","none"],defaultConjunction:"AND",defaultGroupConjunction:"AND",locale:{moment:"en"},valueLabel:"Value",valuePlaceholder:"Value",fieldLabel:"Field",operatorLabel:"Operator",funcLabel:"Function",fieldPlaceholder:"Select field",funcPlaceholder:"Select function",operatorPlaceholder:"Select operator",lockLabel:"Lock",lockedLabel:"Locked",deleteLabel:"Delete",addGroupLabel:"Add group",addCaseLabel:"Add condition",addDefaultCaseLabel:"Add default condition",defaultCaseLabel:"Default:",addRuleLabel:"Add rule",addSubRuleLabel:"Add sub rule",addSubGroupLabel:"Add sub group",delGroupLabel:"Delete",notLabel:"Not",fieldSourcesPopupTitle:"Select source",valueSourcesPopupTitle:"Select value source",removeRuleConfirmOptions:null,removeGroupConfirmOptions:null,loadMoreLabel:"Load more...",loadingMoreLabel:"Loading more...",typeToSearchLabel:"Type to search",loadingLabel:"Loading...",notFoundLabel:"Not found"},Po=u(55364),As=u.n(Po),Hs=u(18678),bu=u.n(Hs);function Zs(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function iu(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Zs(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Zs(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function au(c,t){return bu().apply(c,t)}function bl(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bu();return i.add_operation(c,t)}var Nu={CALL:function(t,i){for(var s=arguments.length,b=new Array(s>2?s-2:0),M=2;M<s;M++)b[M-2]=arguments[M];return t.call.apply(t,[i].concat(b))},JSX:function(t,i){return{type:t,props:i}},mergeObjects:function(t,i){return iu(iu({},t),i)},fromEntries:function(t){return Object.fromEntries(t)},toLowerCase:function(t){return t.toLowerCase()},toUpperCase:function(t){return t.toUpperCase()},strlen:function(t){return t?.length||0},regexTest:function(t,i,s){return t?.match(new RegExp(i,s))!=null},"date==":function(t,i){if(t==null||i==null)return!1;var s=gu()(t).startOf("day"),b=gu()(i).startOf("day");return s.isSame(b)},"date!=":function(t,i){return!Nu["date=="](t,i)},"datetime==":function(t,i){if(t==null||i==null)return!1;var s=gu()(t),b=gu()(i);return s.isSame(b)},"datetime!=":function(t,i){return!Nu["datetime=="](t,i)},now:function(){return new Date},today:function(){var t=gu()().startOf("day"),i=t.year(),s=t.month(),b=t.date(),M=gu().utc([i,s,b]);return M.toDate()},start_of_today:function(){return gu()().startOf("day").toDate()},date_add:function(t,i,s){return gu()(t).add(i,s).toDate()},datetime_add:function(t,i,s){return gu()(t).add(i,s).toDate()},datetime_truncate:function(t,i){return gu()(t).startOf(i).toDate()}};function Ac(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bu();for(var t in Nu)bl(t,Nu[t],c)}var Al=function(t){if(t&&Array.isArray(t)&&t.length)return t.map(function(i){var s;return(s=i?.value)!==null&&s!==void 0?s:i}).filter(function(i){return i!=null})},Mf=function(t){if(t!=null){var i=[],s=Array.isArray(t)?t:[t],b=s.filter(function(M){return M!=null}).map(function(M){return{type:"property",value:t}});if(i.length)throw new Error(i.join(` `));return b}};function ec(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function zc(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ec(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):ec(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var dd={day:"day",week:"week",month:"month",year:"year"},Md="day",kf=zc({hour:"hour",minute:"minute",second:"second"},dd),Xd="day",Sl={label:"Now",returnType:"datetime",jsonLogicCustomOps:{now:{}},jsonLogic:function(){return{now:[]}},jsonLogicImport:function(t){if(t.now)return[]},spelFunc:"T(java.time.LocalDateTime).now()",sqlFormatFunc:function(){return"NOW()"},sqlFunc:"NOW",mongoFormatFunc:function(){return{$toDate:"$$NOW"}},formatFunc:function(){return"NOW"}},Wh={label:"Today",returnType:"date",jsonLogicCustomOps:{today:{}},jsonLogic:function(){return{today:[]}},jsonLogicImport:function(t){if(t.today)return[]},spelFunc:"T(java.time.LocalDate).now()",sqlFormatFunc:function(){return"CURDATE()"},sqlFunc:"CURDATE",mongoFormatFunc:function(){return{$dateTrunc:{date:{$toDate:"$$NOW"},unit:"day"}}},formatFunc:function(){return"TODAY"}},_l={label:"Start of today",returnType:"datetime",jsonLogicCustomOps:{start_of_today:{}},jsonLogic:function(){return{start_of_today:[]}},jsonLogicImport:function(t){if(t.start_of_today)return[]},spelFunc:"T(java.time.LocalDateTime).now().truncatedTo(T(java.time.temporal.ChronoUnit).DAYS)",spelImport:function(t){var i,s,b,M,F=t.obj,W=t.args,J=t?.type==="!func"&&t?.methodName==="truncatedTo",ae=F?.methodName==="now"&&(F==null||(i=F.obj)===null||i===void 0||(i=i.cls)===null||i===void 0?void 0:i.join("."))==="java.time.LocalDateTime",Re=W?.length||0,He=W?.[0],at=He==null||(s=He.children)===null||s===void 0?void 0:s[0],Bt=He==null||(b=He.children)===null||b===void 0?void 0:b[1],Sn=at?.type==="!type"&&(at==null||(M=at.cls)===null||M===void 0?void 0:M.join(".")),yn=Bt?.type==="property"&&Bt?.val,xn=Re===1&&He.type==="compound"&&Sn==="java.time.temporal.ChronoUnit"&&yn==="DAYS";if(ae&&J&&xn)return{}},sqlFormatFunc:function(){return"DATE_FORMAT(NOW(), '%Y-%m-%d 00:00:00')"},sqlImport:function(t,i,s){var b;if(t?.func==="DATE_FORMAT"&&((b=t.children)===null||b===void 0?void 0:b.length)===2){var M=Mt(t.children,2),F=M[0],W=M[1];if(W?.value=="%Y-%m-%d 00:00:00"&&F?.func=="NOW")return{args:{}}}},mongoFormatFunc:function(){return{$dateTrunc:{date:{$toDate:"$$NOW"},unit:"day"}}},formatFunc:function(){return"START_OF_TODAY"}},Sp={label:"Truncate",returnType:"datetime",renderBrackets:["",""],renderSeps:["to"],jsonLogicCustomOps:{datetime_truncate:{}},jsonLogic:function(t){var i=t.date,s=t.dim;return{datetime_truncate:[i,s]}},jsonLogicImport:function(t){if(t.datetime_truncate){var i=t.datetime_truncate[0],s=t.datetime_truncate[1];return[i,s]}},spelFormatFunc:function(t){var i=t.date,s=t.dim,b=(s.charAt(0).toUpperCase()+s.slice(1)+"s").toUpperCase();return"".concat(i,".truncatedTo(T(java.time.temporal.ChronoUnit).").concat(b,")")},spelImport:function(t){var i,s,b,M=t.args,F=t?.type==="!func"&&t?.methodName==="truncatedTo",W=M?.length||0,J=M?.[0],ae=J==null||(i=J.children)===null||i===void 0?void 0:i[0],Re=J==null||(s=J.children)===null||s===void 0?void 0:s[1],He=ae?.type==="!type"&&(ae==null||(b=ae.cls)===null||b===void 0?void 0:b.join(".")),at=Re?.type==="property"&&Re?.val,Bt=W===1&&J.type==="compound"&&He==="java.time.temporal.ChronoUnit"&&at,Sn=at.toLowerCase().substring(0,at.length-1);if(F&&Bt)return{date:t.obj,dim:{type:"string",val:Sn}}},sqlFormatFunc:function(t,i){var s=t.date,b=t.dim;if(!i||i==="MySQL")switch(b=b.replace(/^'|'$/g,""),b){case"second":return"DATE_FORMAT(".concat(s,", '%Y-%m-%d %H:%i:%s')");case"minute":return"DATE_FORMAT(".concat(s,", '%Y-%m-%d %H:%i:00')");case"hour":return"DATE_FORMAT(".concat(s,", '%Y-%m-%d %H:00:00')");case"day":return"DATE_FORMAT(".concat(s,", '%Y-%m-%d 00:00:00')");case"week":return"DATE_SUB(DATE_FORMAT(".concat(s,", '%Y-%m-%d 00:00:00'), INTERVAL WEEKDAY(").concat(s,") DAY)");case"month":return"DATE_FORMAT(".concat(s,", '%Y-%m-01 00:00:00')");case"year":return"DATE_FORMAT(".concat(s,", '%Y-01-01 00:00:00')")}else if(i==="PostgreSQL")return"date_trunc(".concat(b,", ").concat(s,")")},sqlImport:function(t,i,s){if(!s||s==="MySQL"){var b,M;if(t?.func==="DATE_FORMAT"&&((b=t.children)===null||b===void 0?void 0:b.length)===2){var F=Mt(t.children,2),W=F[0],J=F[1],ae;switch(J?.value){case"%Y-%m-%d %H:%i:%s":ae="second";break;case"%Y-%m-%d %H:%i:00":ae="minute";break;case"%Y-%m-%d %H:00:00":ae="hour";break;case"%Y-%m-%d 00:00:00":ae="day";break;case"%Y-%m-01 00:00:00":ae="month";break;case"%Y-01-01 00:00:00":ae="year"}if(ae)return{args:{date:W,dim:ae}}}else if(t?.func==="DATE_SUB"&&((M=t.children)===null||M===void 0?void 0:M.length)===2){var Re,He=Mt(t.children,2),at=He[0],Bt=He[1],Sn=at?.func==="DATE_FORMAT"&&((Re=at.children)===null||Re===void 0?void 0:Re.length)===2,yn=Bt._type=="interval"&&Bt.unit==="day";if(Sn&&yn){var xn=Mt(at.children,2),sr=xn[0],gr=xn[1];if(gr?.value==="%Y-%m-%d 00:00:00")return{args:{date:sr,dim:"week"}}}}return}else if(s==="PostgreSQL"){var Vr;if(t?.func==="date_trunc"&&((Vr=t.children)===null||Vr===void 0?void 0:Vr.length)===2){var Dr=Mt(t.children,2),li=Dr[0],oi=Dr[1];return{args:{date:oi,dim:li.value}}}}},mongoFormatFunc:function(t){var i=t.date,s=t.dim;return{$dateTrunc:{date:i,unit:s}}},formatFunc:function(t){var i=t.date,s=t.dim;return"TRUNCATE ".concat(i," TO ").concat(s)},args:{date:{label:"Datetime",type:"datetime",defaultValue:{func:"NOW",args:[]},valueSources:["value","field","func"],escapeForFormat:!0},dim:{label:"Dimension",type:"select",defaultValue:Xd,valueSources:["value"],mainWidgetProps:{customProps:{showSearch:!1}},fieldSettings:{listValues:kf},escapeForFormat:!1}}},hd={label:"Relative",returnType:"datetime",renderBrackets:["",""],renderSeps:["","",""],spelFormatFunc:function(t){var i=t.date,s=t.op,b=t.val,M=t.dim,F=M.charAt(0).toUpperCase()+M.slice(1)+"s",W=s+F;return"".concat(i,".").concat(W,"(").concat(b,")")},spelImport:function(t){var i,s,b,M,F,W=(i=t.methodName)===null||i===void 0?void 0:i.match(/^(minus|plus)(\w+)s$/);if(W&&(F=W[2].toLowerCase(),b=W[1],["minus","plus"].includes(b)&&Object.keys(kf).includes(F)))return b={type:"string",val:b},F={type:"string",val:F},M=t.args[0],s=t.obj,{date:s,op:b,val:M,dim:F}},jsonLogic:function(t){var i=t.date,s=t.op,b=t.val,M=t.dim;return{datetime_add:[i,b*(s=="minus"?-1:1),M]}},jsonLogicImport:function(t){if(t.datetime_add){var i=t.datetime_add[0],s=Math.abs(t.datetime_add[1]),b=t.datetime_add[1]>=0?"plus":"minus",M=t.datetime_add[2];return[i,b,s,M]}},jsonLogicCustomOps:{datetime_add:{}},sqlFormatFunc:function(t){var i=t.date,s=t.op,b=t.val,M=t.dim;return"DATE_ADD(".concat(i,", INTERVAL ").concat(parseInt(b)*(s=="minus"?-1:1)," ").concat(M.replace(/^'|'$/g,""),")")},sqlImport:function(t,i,s){var b;if(["DATE_ADD","DATE_SUB"].includes(t?.func)&&((b=t.children)===null||b===void 0?void 0:b.length)===2){var M=Mt(t.children,2),F=M[0],W=M[1];if(W._type=="interval")return{args:{date:F,op:t?.func==="DATE_ADD"?"plus":"minus",val:W.value,dim:W.unit}}}},mongoFormatFunc:function(t){var i=t.date,s=t.op,b=t.val,M=t.dim;return{$dateAdd:{startDate:i,unit:M,amount:b*(s=="minus"?-1:1)}}},formatFunc:function(t){var i=t.date,s=t.op,b=t.val,M=t.dim;return b?"".concat(i," ").concat(s=="minus"?"-":"+"," ").concat(b," ").concat(M):i},args:{date:{label:"Datetime",type:"datetime",defaultValue:{func:"NOW",args:[]},valueSources:["value","field","func"],escapeForFormat:!0},op:{label:"Op",type:"select",defaultValue:"plus",valueSources:["value"],mainWidgetProps:{customProps:{showSearch:!1}},fieldSettings:{listValues:{plus:"+",minus:"-"}},escapeForFormat:!1},val:{label:"Value",type:"number",fieldSettings:{min:0},defaultValue:0,valueSources:["value"],escapeForFormat:!1},dim:{label:"Dimension",type:"select",defaultValue:Xd,valueSources:["value"],mainWidgetProps:{customProps:{showSearch:!1}},fieldSettings:{listValues:kf},escapeForFormat:!1}}},Qd=zc(zc({},hd),{},{label:"Relative",returnType:"date",jsonLogic:function(t){var i=t.date,s=t.op,b=t.val,M=t.dim;return{date_add:[i,b*(s=="minus"?-1:1),M]}},jsonLogicImport:function(t){var i=t.date_add[0],s=Math.abs(t.date_add[1]),b=t.date_add[1]>=0?"plus":"minus",M=t.date_add[2];return[i,b,s,M]},jsonLogicCustomOps:{date_add:{}},args:{date:zc(zc({},hd.args.date),{},{label:"Date",type:"date",defaultValue:{func:"TODAY",args:[]}}),op:zc({},hd.args.op),val:zc({},hd.args.val),dim:zc(zc({},hd.args.dim),{},{defaultValue:Md,fieldSettings:{listValues:dd}})}}),Gh={label:"Lowercase",mongoFunc:"$toLower",jsonLogic:"toLowerCase",sqlFunc:"LOWER",spelFunc:"${str}.toLowerCase()",jsonLogicCustomOps:{toLowerCase:{}},returnType:"text",args:{str:{label:"String",type:"text",valueSources:["value","field","func"]}}},_p={label:"Uppercase",mongoFunc:"$toUpper",jsonLogic:"toUpperCase",sqlFunc:"UPPER",spelFunc:"${str}.toUpperCase()",jsonLogicCustomOps:{toUpperCase:{}},returnType:"text",args:{str:{label:"String",type:"text",valueSources:["value","field","func"]}}},Ah={label:"Linear regression",returnType:"number",formatFunc:function(t,i){var s=t.coef,b=t.bias,M=t.val;return"(".concat(s," * ").concat(M," + ").concat(b,")")},sqlFormatFunc:function(t){var i=t.coef,s=t.bias,b=t.val;return"(".concat(i," * ").concat(b," + ").concat(s,")")},spelFormatFunc:function(t){var i=t.coef,s=t.bias,b=t.val;return"(".concat(i," * ").concat(b," + ").concat(s,")")},spelImport:function(t){var i,s,b,M;if(t.type==="op-plus"){var F=Mt(t.children,2);if(M=F[0],b=F[1],M.type==="op-multiply"){var W=Mt(M.children,2);return i=W[0],s=W[1],{coef:i,val:s,bias:b}}}},sqlImport:function(t,i,s){var b;if(["+"].includes(t?.operator)&&((b=t.children)===null||b===void 0?void 0:b.length)===2){var M,F=Mt(t.children,2),W=F[0],J=F[1];if(["*"].includes(W?.operator)&&((M=W.children)===null||M===void 0?void 0:M.length)===2){var ae=Mt(W.children,2),Re=ae[0],He=ae[1];return{args:{coef:Re,val:He,bias:J}}}}},mongoFormatFunc:function(t){var i=t.coef,s=t.bias,b=t.val;return{$sum:[{$multiply:[i,b]},s]}},jsonLogic:function(t){var i=t.coef,s=t.bias,b=t.val;return{"+":[{"*":[i,b]},s]}},jsonLogicImport:function(t){var i=t["+"][0]["*"][0],s=t["+"][0]["*"][1],b=t["+"][1];return[i,s,b]},renderBrackets:["",""],renderSeps:[" * "," + "],args:{coef:{label:"Coef",type:"number",defaultValue:1,valueSources:["value"]},val:{label:"Value",type:"number",valueSources:["value","field"]},bias:{label:"Bias",type:"number",defaultValue:0,valueSources:["value"]}}};function Er(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=ri(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function ri(c,t){if(c){if(typeof c=="string")return Li(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Li(c,t):void 0}}function Li(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Gi(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function ha(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Gi(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Gi(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}Ac();function Da(c,t,i){var s;try{s=bu().apply(c,t)}catch(b){throw b.message="".concat(i.join(".")," :: ").concat(b.message),b}return s}function Qa(c,t,i,s){var b;try{b=t.call.apply(t,[c].concat($t(i)))}catch(M){throw M.message="".concat(s.join(".")," :: ").concat(M.message),M}return b}var so={asyncFetch:{type:"f",args:["searchOrValues","offset"]},labelYes:{type:"r"},labelNo:{type:"r"},marks:{type:"r",isArr:!0},validateValue:{type:"f",args:["val","fieldSettings","op","opDef","rightFieldDef"]}},To=ha(ha({},so),{},{factory:{type:"rf"},formatValue:{type:"f",args:["val","fieldDef","wgtDef","isForDisplay","op","opDef","rightFieldDef"]},sqlFormatValue:{type:"f",args:["val","fieldDef","wgtDef","op","opDef","rightFieldDef","sqlDialect"]},spelFormatValue:{type:"f",args:["val","fieldDef","wgtDef","op","opDef","rightFieldDef"]},spelImportValue:{type:"f",args:["val","wgtDef","args"]},sqlImport:{type:"f",args:["sqlObj","wgtDef","sqlDialect"]},mongoFormatValue:{type:"f",args:["val","fieldDef","wgtDef","op","opDef"]},elasticSearchFormatValue:{type:"f",args:["queryType","val","op","field","config"]},jsonLogic:{type:"f",args:["val","fieldDef","wgtDef","op","opDef"]},jsonLogicImport:{type:"f",args:["val","wgtDef"]},validateValue:{type:"f",args:["val","fieldSettings","op","opDef","rightFieldDef"]},toJS:{type:"f",args:["val"]}}),Ko={options:{factory:{type:"rf"}},formatOp:{type:"f",args:["field","op","vals","valueSrc","valueType","opDef","operatorOptions","isForDisplay","fieldDef"]},mongoFormatOp:{type:"f",args:["field","op","vals","useExpr","valueSrc","valueType","opDef","operatorOptions","fieldDef"]},sqlFormatOp:{type:"f",args:["field","op","vals","valueSrc","valueType","opDef","operatorOptions","fieldDef"]},spelFormatOp:{type:"f",args:["field","op","vals","valueSrc","valueType","opDef","operatorOptions","fieldDef"]},jsonLogic:{type:"f",ignore:"string",args:["field","op","vals","opDef","operatorOptions","fieldDef","expectedType","settings"]},sqlImport:{type:"f",args:["sqlObj","_","sqlDialect"]},elasticSearchQueryType:{type:"f",ignore:"string",args:["valueType"]},textSeparators:{type:"r",isArr:!0}},rs={formatConj:{type:"f",args:["children","conj","not","isForDisplay"]},sqlFormatConj:{type:"f",args:["children","conj","not"]},spelFormatConj:{type:"f",args:["children","conj","not","omitBrackets"]}},cs={widgetProps:To,opProps:Ko},Ks={renderBrackets:{type:"r",isArr:!0},renderSeps:{type:"r",isArr:!0},jsonLogic:{type:"f",ignore:"string",args:["formattedArgs"]},jsonLogicImport:{type:"f",args:["val"]},spelImport:{type:"f",args:["spel"]},sqlImport:{type:"f",args:["sqlObj","_","sqlDialect"]},formatFunc:{type:"f",args:["formattedArgs","isForDisplay"]},sqlFormatFunc:{type:"f",args:["formattedArgs","sqlDialect"]},mongoFormatFunc:{type:"f",args:["formattedArgs"]},spelFormatFunc:{type:"f",args:["formattedArgs"]}},yu=ha(ha({},so),{},{fieldSettings:so}),Su=ha(ha({},so),{},{fieldSettings:so,widgets:{x:cs},mainWidgetProps:To}),fu={locale:{mui:{type:"f",args:[],invokeWith:[],ignore:"jl"}},caseValueField:Su,canCompareFieldWithField:{type:"f",args:["leftField","leftFieldConfig","rightField","rightFieldConfig","op"]},formatReverse:{type:"f",args:["q","op","reversedOp","operatorDefinition","revOperatorDefinition","isForDisplay"]},sqlFormatReverse:{type:"f",args:["q"]},spelFormatReverse:{type:"f",args:["q"]},formatField:{type:"f",args:["field","parts","label2","fieldDefinition","config","isForDisplay"]},formatSpelField:{type:"f",args:["field","parentField","parts","partsExt","fieldDefinition","config"]},formatAggr:{type:"f",args:["whereStr","aggrField","operator","value","valueSrc","valueType","opDef","operatorOptions","isForDisplay","aggrFieldDef"]},normalizeListValues:{type:"f",args:["listValues","type","fieldSettings"]},renderConfirm:{type:"f",args:["props"]},useConfirm:{type:"f",args:[]},renderField:{type:"rf"},renderOperator:{type:"rf"},renderFunc:{type:"rf"},renderConjs:{type:"rf"},renderButton:{type:"rf"},renderIcon:{type:"rf"},renderButtonGroup:{type:"rf"},renderValueSources:{type:"rf"},renderFieldSources:{type:"rf"},renderProvider:{type:"rf"},renderSwitch:{type:"rf"},renderSwitchPrefix:{type:"r"},renderItem:{type:"rf"},renderBeforeWidget:{type:"rf"},renderAfterWidget:{type:"rf"},renderBeforeActions:{type:"rf"},renderAfterActions:{type:"rf"},renderBeforeCaseValue:{type:"rf"},renderAfterCaseValue:{type:"rf"},renderRuleError:{type:"rf"}},Bs={fields:{x:Su},widgets:{x:To},conjunctions:{x:rs},operators:{x:Ko},types:{x:{widgets:{x:cs}}},funcs:{x:ha(ha(ha({},yu),Ks),{},{args:{x:ha({},yu)}})},settings:fu},_s=function(t,i){if(t.__fieldNames)throw new Error("Don't apply `compressConfig()` to extended config");var s=Ul()(t,Zu);delete s.ctx;var b=function(Re,He,at,Bt){if($u(Re)){if(Il(Re)&&(Re=wf(Re)),at[0]==="funcs"&&!He){var Sn=at[at.length-1];He=Eu({funcs:Bt.BasicFuncs},Sn,"funcs","subfields")||void 0,He&&(Re.$$key=Sn)}if(He!==void 0&&$u(He))for(var yn in He)Object.prototype.hasOwnProperty.call(He,yn)&&(!Object.keys(Re).includes(yn)||Re[yn]===void 0&&He[yn]!==void 0?Re[yn]="$$deleted":(Re[yn]=b(Re[yn],He[yn],[].concat($t(at),[yn]),Bt),Re[yn]===void 0&&delete Re[yn]));for(var xn in Re)if(Object.prototype.hasOwnProperty.call(Re,xn)){if(!He||!Object.keys(He).includes(xn)){var sr;Re[xn]=b(Re[xn],(sr=He)===null||sr===void 0?void 0:sr[xn],[].concat($t(at),[xn]),Bt)}Re[xn]===void 0&&delete Re[xn]}Object.keys(Re).length===0&&(Re=void 0)}else Array.isArray(Re)&&Re.forEach(function(gr,Vr){Re[Vr]=b(Re[Vr],void 0,[].concat($t(at),[Vr]),Bt)});if(!(He!==void 0&&xc(Re,He,!0))){if(typeof Re=="function")throw new Error("compressConfig: function at ".concat(at.join(".")," should be converted to JsonLogic"));return Re}},M=Er(Zu),F;try{for(M.s();!(F=M.n()).done;){var W=F.value;if(W!=="ctx")if(W==="fields")s[W]=lu()(s[W]),b(s[W],{},[W]);else if(W==="funcs"){s[W]=lu()(s[W]||{});for(var J in s[W])b(s[W][J],null,[W,J],{BasicFuncs:f})}else s[W]=lu()(s[W]),b(s[W],i[W],[W])}}catch(ae){M.e(ae)}finally{M.f()}return s},Ku=function(t,i,s){if(!t.settings.useConfigCompress)throw new Error("Please enable `useConfigCompress` in config settings to use decompressConfig()");var b={},M=function(He,at,Bt){if($u(at)){$u(He)||(He={});for(var Sn in at)Xo(at,Sn)&&(at[Sn]==="$$deleted"?delete He[Sn]:He[Sn]=M(He[Sn],at[Sn],[].concat($t(Bt),[Sn])))}else Array.isArray(at)?He=lu()(at):He=at;return He},F=function(He,at,Bt){var Sn=!1;if($u(He)&&Object.prototype.hasOwnProperty.call(He,"$$key")&&He.$$key){var yn=Eu({funcs:Bt.BasicFuncs},He.$$key,"funcs","subfields");if(yn)delete He.$$key,He=M(lu()(yn),He,at),Sn=!0;else throw new Error("decompressConfig: basic function not found by key ".concat(He.$$key," at ").concat(at.join(".")))}if(!Sn){if($u(He))for(var xn in He)Object.prototype.hasOwnProperty.call(He,xn)&&(He[xn]=F(He[xn],[].concat($t(at),[xn]),Bt));else if(Array.isArray(He)){var sr=Er(He),gr;try{for(sr.s();!(gr=sr.n()).done;){var Vr=gr.value;He[Vr]=F(He[Vr],[].concat($t(at),[Vr]),Bt)}}catch(Dr){sr.e(Dr)}finally{sr.f()}}}return He},W=Er(Zu),J;try{for(W.s();!(J=W.n()).done;){var ae=J.value;ae==="ctx"?b[ae]=As()({},i.ctx||{},s||{}):ae==="funcs"?(b[ae]=lu()(t[ae]||{}),F(b[ae],[ae],{BasicFuncs:f})):ae==="fields"?b[ae]=lu()(t[ae]||{}):(b[ae]=lu()(i[ae]||{}),M(b[ae],t[ae]||{},[ae]))}}catch(Re){W.e(Re)}finally{W.f()}return b},al=function(t){if(t.__compliled)return t;t=lu()(t);var i={ctx:t.ctx},s=[];return El(t,t,i,Bs,s),Object.defineProperty(t,"__compliled",{enumerable:!1,writable:!1,value:!0}),t};function El(c,t,i,s,b){var M=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[];if(t){var F=!M.length;for(var W in s){var J=s[W],ae=W==="x"?M:[].concat($t(M),[W]);if(J.type==="r"){var Re=t,He=Re[W];if(J.isArr)for(var at in He){var Bt=fl(He[at],i,[].concat($t(ae),[at]));Bt!==He[at]&&(b.push("Compiled ".concat(ae.join("."),"[").concat(at,"]")),He[at]=Bt)}else{var Sn=fl(He,i,ae,void 0);Sn!==He&&(b.push("Compiled R ".concat(ae.join("."))),Re[W]=Sn)}}else if(J.type==="rf"){var yn=t,xn=yn[W],sr=Wu(xn,i,ae,J.ignore);sr!==xn&&(b.push("Compiled JL-RF ".concat(ae.join("."))),yn[W]=sr)}else if(J.type==="f"){var gr=t,Vr=gr[W],Dr=ol(Vr,i,ae,J.args,J.ignore);if(J.invokeWith&&Dr&&typeof Dr=="function"){var li;Dr=(li=Dr).call.apply(li,[null].concat($t(J.invokeWith)))}Dr!==Vr&&(b.push("Compiled JL-F ".concat(ae.join("."))),gr[W]=Dr)}else if(W==="x")for(var oi in t){ae=[].concat($t(M),[oi]);var Ei=t[oi];El(c,Ei,i,J,b,ae),Ei.subfields&&El(c,Ei.subfields,i,s,b,ae)}else{var sa=t[W];El(c,sa,i,J,b,ae)}}}}function Wu(c,t,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0;return $l(c)?function(b,M){M=M||t?.ctx;var F={props:b,ctx:M},W=Da(c,F,i);typeof W=="string"&&(W={type:W,props:b});var J=fl(W,{ctx:M},i);return J}:typeof c=="string"?function(b,M){M=M||t?.ctx;var F=c.split(".").reduce(function(ae,Re){return ae?.[Re]},M);if(F)return Qa(this,F,[b,M],i);var W={type:c,props:b},J=fl(W,{ctx:M},i);return J}:c}function ol(c,t,i,s){var b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;return $l(c)&&b!=="jl"?function(){for(var M=arguments.length,F=new Array(M),W=0;W<M;W++)F[W]=arguments[W];var J=this||t?.ctx,ae=(s||[]).reduce(function(He,at,Bt){return ha(ha({},He),{},tt({},at,F[Bt]))},{args:F,ctx:J}),Re=Da(c,ae,i);return Re}.bind(t?.ctx):typeof c=="string"&&b!=="string"?function(){var M=this||t?.ctx,F=c.split(".").reduce(function(Re,He){return Re?.[He]},M);if(F){for(var W=arguments.length,J=new Array(W),ae=0;ae<W;ae++)J[ae]=arguments[ae];return Qa(this,F,J,i)}else throw new Error("".concat(i.join(".")," :: Function ").concat(c," is not found in ctx"))}.bind(t?.ctx):c}function Rc(c,t){var i;return(t==null||(i=t.components)===null||i===void 0?void 0:i[c])||t.W[c]||t.O[c]}function fl(c,t,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0;if(id(c)){var b,M=c.type,F=c.props;if(typeof M!="string")throw new Error("renderReactElement for ".concat(i.join("."),": type should be string"));var W=Rc(M,t.ctx)||M.toLowerCase(),J;s!==void 0&&(F=ha(ha({},F),{},{key:s})),(b=F)!==null&&b!==void 0&&b.children&&(J=fl(F.children,t,i),F=ha(ha({},F),{},{children:J}));var ae=t.ctx.RCE(W,F);return ae}else if(c instanceof Array)return c.map(function(Re,He){return fl(Re,t,i,""+He)});return c}function Pc(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=tf(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function tf(c,t){if(c){if(typeof c=="string")return Ic(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ic(c,t):void 0}}function Ic(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function vc(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Dc(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?vc(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):vc(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var pf=0,nf=0,Rl,lc={},pd=function(t,i){return Zu.map(function(s){return t[s]===i[s]}).filter(function(s){return!s}).length===0},tc=function(t){return Rl||(Rl=sg({reactIndex:void 0,maxSize:3,canCompile:void 0,extendConfig:t})),Rl},vd=function(t,i){var s;for(var b in lc){var M=lc[b].findExtendedConfig(t,i);if(M){s=M;break}}return s},sg=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{reactIndex:void 0,maxSize:2,canCompile:!0,extendConfig:void 0},i=new Map,s=t.maxSize||2,b=++pf,M,F=!0,W=function(xn){return Ul()(xn,Zu)},J=function(xn){var sr=t.extendConfig(xn,++nf,t.canCompile);return Re(xn,sr),sr},ae=function(){return i.size},Re=function(xn,sr){i.size+1>s&&i.delete(i.keys().next().value),i.set(Dc({},xn),sr)},He=function(xn){var sr=Pc(i.keys()),gr;try{for(sr.s();!(gr=sr.n()).done;){var Vr=gr.value,Dr=i.get(Vr),li=pd(Dr,xn);if(li)return Vr}}catch(oi){sr.e(oi)}finally{sr.f()}return xn},at=function(xn,sr){var gr=Pc(i.keys()),Vr;try{var Dr=function(){var qi=Vr.value,oa=Zu.filter(function(va){return qi[va]===xn[va]}),zi=oa.length===Zu.length&&(sr?qi.__compliled:!0);if(zi)return{v:i.get(qi)}},li;for(gr.s();!(Vr=gr.n()).done;)if(li=Dr(),li)return li.v}catch(Bi){gr.e(Bi)}finally{gr.f()}var oi=Pc(i.values()),Ei;try{var sa=function(){var qi=Ei.value,oa=Zu.filter(function(va){return qi[va]===xn[va]}),zi=oa.length===Zu.length&&(sr?qi.__compliled:!0);if(zi)return{v:qi}},Ki;for(oi.s();!(Ei=oi.n()).done;)if(Ki=sa(),Ki)return Ki.v}catch(Bi){oi.e(Bi)}finally{oi.f()}return null},Bt=function(xn){return at(xn)||J(xn)},Sn=function(){F=!1,i.clear(),delete lc[b],Rl===M&&(Rl=void 0)};return M={getExtendedConfig:function(xn){return Bt(W(xn))},findExtendedConfig:at,getBasicConfig:He,clearConfigMemo:Sn,configId:nf,storeConfigPair:Re,getSize:ae,configStore:i,memoId:b,meta:t},t.reactIndex===void 0&&(Rl=M),lc[b]=M,M};function Ov(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=FS(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function FS(c,t){if(c){if(typeof c=="string")return M0(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?M0(c,t):void 0}}function M0(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Tv(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Mc(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Tv(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Tv(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var jS=["customProps"],ug=["options"],vf=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(s=s&&t.settings.useConfigCompress,t.__configId)return t;var b=vd(t,s);if(b)return b;var M=t;s?t.__compliled?t=lu()(t):t=al(t):t=lu()(t),t.settings=co()({},So,t.settings,Cc),t.__fieldsCntByType={},t.__funcsCntByType={},t.__fieldNames={},BS(t.types,t),lg(t.fields,t),cg(t.funcs,t);var F=t.settings.caseValueField;F&&Hh(F,t,[],!1,!0);var W=t.settings.locale.moment;W&&gu().locale(W),Object.defineProperty(t,"__configId",{enumerable:!1,writable:!1,value:i||es()}),t.__cache={},Td(t);var J=tc(vf);return J.storeConfigPair(M,t),t};function BS(c,t){for(var i in c){var s=c[i];k0(i,s,t)}}function k0(c,t,i){var s=null,b=null;t.mainWidget=t.mainWidget||Object.keys(t.widgets).filter(function(Bt){return Bt!="field"&&Bt!="func"})[0];var M=t.excludeOperators||[];for(var F in t.widgets){var W=t.widgets[F],J=W.defaultOperator;if(W.operators){var ae=W.operators.filter(function(Bt){return!M.includes(Bt)});s=Od(s,ae)}J&&!M.includes(J)&&(!b||F===t.mainWidget)&&(b=J),F==t.mainWidget&&(W.widgetProps=Mc(Mc({},t.mainWidgetProps||{}),W.widgetProps||{})),t.widgets[F]=W}t.valueSources||(t.valueSources=Object.keys(i.settings.valueSourcesInfo));var Re=Ov(t.valueSources),He;try{for(Re.s();!(He=Re.n()).done;){var at=He.value;at!="value"&&!t.widgets[at]&&(t.widgets[at]={})}}catch(Bt){Re.e(Bt)}finally{Re.f()}!t.operators&&s&&(t.operators=Array.from(new Set(s))),!t.defaultOperator&&b&&(t.defaultOperator=b)}function lg(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];for(var s in c){var b=[].concat($t(i),[s]);Hh(c[s],t,b),c[s].subfields&&lg(c[s].subfields,t,b)}}function cg(c,t){var i,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(c){var b=(t==null||(i=t.settings)===null||i===void 0?void 0:i.fieldSeparator)||".";for(var M in c){var F=[].concat($t(s),[M]),W=F.join(b),J=c[M];if(J.returnType&&(J.type=J.returnType,t.__funcsCntByType[J.returnType]||(t.__funcsCntByType[J.returnType]=0),t.__funcsCntByType[J.returnType]++),Hh(J,t,F,!1),J.args){for(var ae in J.args)Hh(J.args[ae],t,[].concat($t(F),[ae]),!0);var Re=Object.keys(J.args),He=!0,at=Ov(Re.reverse()),Bt;try{for(at.s();!(Bt=at.n()).done;){var Sn=Bt.value,yn=J.args[Sn];!He&&yn.isOptional&&(Jc.info("Arg ".concat(Sn," for func ").concat(W," can't be optional")),delete yn.isOptional),yn.isOptional||(He=!1)}}catch(xn){at.e(xn)}finally{at.f()}}J.subfields&&cg(J.subfields,t,[].concat($t(s),[M]))}}}function Ep(c,t,i){for(var s,b,M=["listValues","treeValues","allowCustomValues","validateValue"],F=0,W=M;F<W.length;F++){var J=W[F];c[J]&&(c.fieldSettings||(c.fieldSettings={}),c.fieldSettings[J]=c[J],delete c[J])}(s=c.fieldSettings)!==null&&s!==void 0&&s.listValues&&t.settings.normalizeListValues&&(c.fieldSettings.listValues=t.settings.normalizeListValues.call(t.ctx,c.fieldSettings.listValues,i,c.fieldSettings)),(b=c.fieldSettings)!==null&&b!==void 0&&b.treeValues&&t.settings.normalizeListValues&&(c.fieldSettings.treeValues=t.settings.normalizeListValues.call(t.ctx,c.fieldSettings.treeValues,i,c.fieldSettings))}function Hh(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,M=t.settings,F=M.showLabels,W=M.fieldSeparator;W=W??".";var J=i[i.length-1],ae=s?i.slice(0,i.length-1).join(W):i.join(W),Re=!!c.returnType,He=c.type||c.returnType,at=t.types[He],Bt=c.excludeOperators||[],Sn=(c.operators||at?.operators||[]).filter(function(sa){return!Bt.includes(sa)}),yn=c.defaultOperator||at?.defaultOperator;Bt.includes(yn)&&(yn=void 0);var xn=!!yn&&yn==c.defaultOperator;if(xn&&(c.ownDefaultOperator=c.defaultOperator),!at){c.type!=="!struct"&&(c.disabled=!0);return}!s&&!Re&&!b&&(t.__fieldsCntByType[He]||(t.__fieldsCntByType[He]=0),t.__fieldsCntByType[He]++),s&&(c._isFuncArg=!0,c._argKey=J,c._funcKey=ae),Re&&(c._isFunc=!0,c._funcKey=ae),b&&(c._isCaseValue=!0),Ep(c,t,He);var sr=["widgets","operators","defaultOperator"];Object.keys(at).filter(function(sa){return!sr.includes(sa)}).map(function(sa){c[sa]||(c[sa]=jl(at[sa]))});var gr=at.excludeOperators||[];c.operators&&(gr=gr.filter(function(sa){return!c.operators.includes(sa)})),c.widgets||(c.widgets={});var Vr=function(){var Ki=Mc({},c.widgets[Dr]||{}),Bi=at.widgets[Dr]||{};if(!s){var qi=Ki.defaultOperator,oa=[].concat($t(Bt),$t(gr)),zi=c.preferWidgets&&(Dr==="field"||c.preferWidgets.includes(Dr))||oa.length>0;if(Ki.operators){var va=Ki.operators.filter(function(Gu){return!oa.includes(Gu)});Ki.operators=va,Sn=Od(Sn,va)}else if(zi&&Bi.operators){var ba=Bi.operators.filter(function(Gu){return!oa.includes(Gu)});Ki.operators=ba,Sn=Od(Sn,ba)}qi&&!oa.includes(qi)&&(!yn||!xn&&Dr===c.mainWidget)&&(yn=qi)}Ki.widgetProps=Mc(Mc(Mc({},Bi.widgetProps||{}),Dr===c.mainWidget&&c.mainWidgetProps||{}),Ki.widgetProps||{});for(var fa=0,ga=jS;fa<ga.length;fa++){var da=ga[fa];if(Ki.widgetProps[da]){var Ca,xa,Aa,ka;Ki.widgetProps[da]=Mc(Mc(Mc(Mc({},((Ca=t.widgets[Dr])===null||Ca===void 0?void 0:Ca[da])||{}),((xa=Bi.widgetProps)===null||xa===void 0?void 0:xa[da])||{}),Dr===c.mainWidget&&((Aa=c.mainWidgetProps)===null||Aa===void 0?void 0:Aa[da])||{}),((ka=Ki.widgetProps)===null||ka===void 0?void 0:ka[da])||{})}}var Wa=Array.from(new Set([].concat($t(Object.keys(Bi.opProps||{})),$t(Object.keys(Ki.opProps||{})))));if(Wa.length){var ho={},mo=Ov(Wa),Za;try{for(mo.s();!(Za=mo.n()).done;){var is,Io,Ja=Za.value;ho[Ja]=Mc(Mc({},((is=Bi.opProps)===null||is===void 0?void 0:is[Ja])||{}),((Io=Ki.opProps)===null||Io===void 0?void 0:Io[Ja])||{});for(var Vo=0,Wo=ug;Vo<Wo.length;Vo++){var No=Wo[Vo];if(ho[Ja][No]){var os,Jo,ps;ho[Ja][No]=Mc(Mc(Mc({},((os=t.operators)===null||os===void 0||(os=os[Ja])===null||os===void 0?void 0:os[No])||{}),((Jo=Bi.opProps)===null||Jo===void 0||(Jo=Jo[Ja])===null||Jo===void 0?void 0:Jo[No])||{}),((ps=Ki.opProps)===null||ps===void 0||(ps=ps[Ja])===null||ps===void 0?void 0:ps[No])||{})}}}}catch(Gu){mo.e(Gu)}finally{mo.f()}Ki.opProps=ho}var Ps=Ki,Ss=Ps.valueLabel,xs=Ps.valuePlaceholder;s&&(Ss||(Ki.valueLabel=c.label||J),!xs&&!F&&(Ki.valuePlaceholder=c.label||J)),Ki=Mc(Mc({},Bi),Ki),c.widgets[Dr]=Ki};for(var Dr in at.widgets)Vr();if(s||(c.operators||(c.operators=Array.from(new Set(Sn))),c.defaultOperator||(c.defaultOperator=yn)),!s&&!Re&&!b){var li=L0(t,i),oi=li.fieldName,Ei=li.inGroup;oi&&(c.fieldName=oi,t.__fieldNames[oi]||(t.__fieldNames[oi]=[]),t.__fieldNames[oi].push({fullPath:i,inGroup:Ei}))}}function L0(c,t){if(!t)return{};var i=c.settings.fieldSeparator,s=$t(t).reduce(function(W,J,ae,Re){var He=W.computedPath,at=W.computed,Bt=W.inGroup,Sn=[].concat($t(Re.slice(0,ae)),[J]),yn=Eu(c,Sn);return yn?.type==="!group"&&ae<Re.length-1?(Bt=Sn.join(i),He=[]):yn!=null&&yn.fieldName?(at=!0,He=[yn.fieldName]):He=[].concat($t(He),[J]),{computedPath:He,computed:at,inGroup:Bt}},{computedPath:[],computed:!1,inGroup:void 0}),b=s.computedPath,M=s.computed,F=s.inGroup;return M?{fieldName:b.join(i),inGroup:F}:{}}function fg(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function dg(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?fg(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):fg(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function hg(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=pg(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function pg(c,t){if(c){if(typeof c=="string")return Av(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Av(c,t):void 0}}function Av(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}var N0=function(t,i){var s={usedFields:[],errors:[]},b=vf(i,void 0,!1),M=vg(t,b,s,!1,!0),F=s.errors,W=s.usedFields,J=b.settings.fieldSeparator,ae={},Re=hg(W),He;try{for(Re.s();!(He=Re.n()).done;)for(var at=He.value,Bt=ru(at,i),Sn=as(b,at)||{},yn=ae,xn=0;xn<Bt.length;xn++){var sr=Bt[xn],gr=as(b,Bt.slice(0,xn+1))||{};xn!=Bt.length-1?gr.type=="!group"&&gr.mode!="struct"?(yn[sr]||(yn[sr]=[{}]),yn=yn[sr][0]):(yn[sr]||(yn[sr]={}),yn=yn[sr]):yn[sr]||(yn[sr]=null)}}catch(Vr){Re.e(Vr)}finally{Re.f()}return{errors:F,logic:M,data:ae}},vg=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null;if(t){var W=t.get("type"),J=t.get("properties")||new Pi,ae=J.get("isLocked"),Re=i.settings.jsonLogic.lockedOp,He;return W==="group"||W==="rule_group"?He=Rv(t,i,s,b,M,F):W==="rule"?He=F0(t,i,s,b,F):W=="switch_group"?He=j0(t,i,s,b):W=="case_group"&&(He=mg(t,i,s,b,F)),ae&&He&&Re&&(He=tt({},Re,He)),He}},Rv=function(t,i,s){var b,M,F,W,J,ae,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,He=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,at=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,Bt=t.get("type"),Sn=t.get("properties")||new Pi,yn=Sn.get("mode"),xn=t.get("children1")||new Ar,sr=Sn.get("field"),gr=as(i,sr),Vr=Sn.get("conjunction");Vr||(Vr=Kf(i));var Dr=i.conjunctions[Vr],li=Dr?.jsonLogicConj||Vr.toLowerCase(),oi=!!Sn.get("not"),Ei=Bt==="rule_group"&&!He,sa=Ei&&yn!="struct",Ki=sa?sr:at,Bi=Sn.get("operator"),qi=Bi&&nu(i,Bi,sr)||null,oa=Pv(i,Sn,s,Bi,at),zi=Ei&&(!Bi||((b=qi)===null||b===void 0?void 0:b.cardinality)==0),va=Ei&&xn?.size>0,ba=Ei&&!(xn!=null&&xn.size),fa=oi,ga=!1;va?(ga=oi,fa=Re):Re&&(fa=!fa);var da=!1,Ca=(M=qi)===null||M===void 0?void 0:M.reversedOp,xa=nu(i,Ca,sr),Aa=!((F=qi)!==null&&F!==void 0&&F.jsonLogic)&&!!((W=xa)!==null&&W!==void 0&&W.jsonLogic),ka=!!((J=xa)!==null&&J!==void 0&&J.jsonLogic),Wa=(ae=Kt(t))===null||ae===void 0?void 0:ae.get("type"),ho=!!i.settings.reverseOperatorsForNot&&(!Ei&&fa&&Wa==="rule"||ga&&xn?.size===1);ho&&(va?ga=!ga:fa=!fa,da=!0);var mo=fa&&Ei&&ka&&(!!i.settings.reverseOperatorsForNot||Aa);if(mo){fa=!fa;var Za=[Ca,Bi];Bi=Za[0],Ca=Za[1];var is=[xa,qi];qi=is[0],xa=is[1]}var Io=xn.map(function(Cu){return vg(Cu,i,s,da,!1,Ki)}).filter(function(Cu){return typeof Cu<"u"}),Ja=!!i.settings.exportPreserveGroups;if(sa&&!zi){if(oa==null)return}else if(!Io.size&&!Ja)return;var Vo=He||Ja||Io.size!=1;!Vo&&oi&&!da&&(Vo=xn.some(function(Cu){var Fu,eu,ll,Yu,rc=(Fu=Cu.get("properties"))===null||Fu===void 0?void 0:Fu.get("operator"),pl=(eu=i.operators)===null||eu===void 0||(eu=eu[rc])===null||eu===void 0?void 0:eu.reversedOp;return(ll=(Yu=i.operators)===null||Yu===void 0||(Yu=Yu[pl])===null||Yu===void 0?void 0:Yu._jsonLogicIsExclamationOp)!==null&&ll!==void 0?ll:!1}));var Wo={};Vo?Wo[li]=Io.toList().toJS():Wo=Io.first(),ga&&(Wo={"!":Wo});var No=Wo;if(sa){var os,Jo=Kh(s,i,sr,at),ps;if(!zi){var Ps=Io.size?{filter:[Jo,Wo]}:Jo;ps={reduce:[Ps,{"+":[1,{var:"accumulator"}]},0]}}var Ss=ps??Jo,xs=new Pi({having:Wo,reduce:ps,groupField:sr,groupFieldFormatted:Jo});if(typeof((os=qi)===null||os===void 0?void 0:os.jsonLogic)=="function")No=xp(i,Sn,Ss,oa,Bi,xs,gr);else if(zi){var Gu=Bi||"some";No=tt({},Gu,[Jo,Wo])}else No=xp(i,Sn,Ss,oa,Bi,null,gr)}return fa&&(No={"!":No}),No},F0=function(t,i,s){var b,M,F,W,J,ae,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,He=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,at=t.get("properties")||new Pi,Bt=at.get("field"),Sn=at.get("fieldSrc"),yn=at.get("operator"),xn=at.get("operatorOptions");if(xn=xn?xn.toJS():null,xn&&!Object.keys(xn).length&&(xn=null),!(Bt==null||yn==null)){var sr=as(i,Bt),gr=nu(i,yn,Bt),Vr=(b=gr)===null||b===void 0?void 0:b.reversedOp,Dr=nu(i,Vr,Bt);if(!((M=gr)!==null&&M!==void 0&&M.jsonLogic)&&!((F=Dr)!==null&&F!==void 0&&F.jsonLogic)){s.errors.push("Operator ".concat(yn," is not supported"));return}var li=Re,oi=!((W=gr)!==null&&W!==void 0&&W.jsonLogic)&&!!((J=Dr)!==null&&J!==void 0&&J.jsonLogic),Ei=!!((ae=Dr)!==null&&ae!==void 0&&ae.jsonLogic),sa=Ei&&(!!i.settings.reverseOperatorsForNot||oi),Ki=li&&sa||oi;if(Ki){li=!li;var Bi=[Vr,yn];yn=Bi[0],Vr=Bi[1];var qi=[Dr,gr];gr=qi[0],Dr=qi[1]}var oa=Pv(i,at,s,yn,He);if(oa!==void 0){var zi=Sn==="func"?Iv(s,i,Bt,He):Kh(s,i,Bt,He);if(zi!==void 0)return xp(i,at,zi,oa,yn,xn,sr,li)}}},j0=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,M=t.get("children1");if(M){for(var F=M.map(function(oi){return mg(oi,i,s,b,null)}).filter(function(oi){return typeof oi<"u"}).valueSeq().toArray(),W=[],J=0;J<F.length;J++)J!==F.length-1&&!F[J][0]?s.errors.push("No condition for case ".concat(J)):(W.push(F[J]),J===F.length-1&&F[J][0]&&W.push([void 0,null]));if(W.length){if(W.length===1){var ae=Mt(W[0],2),Re=ae[0],He=ae[1];return He==null&&(He=null),He}for(var at={if:[]},Bt=at.if,Sn=Mt(W[W.length-1],2),yn=Sn[0],xn=Sn[1],sr=0;sr<W.length-1;sr++){var gr=sr===W.length-2,Vr=Mt(W[sr],2),Dr=Vr[0],li=Vr[1];li==null&&(li=null),Dr==null&&(Dr=!0),Bt.push(Dr),Bt.push(li),gr?Bt.push(xn):(Bt.push({if:[]}),Bt=Bt[Bt.length-1].if)}return at}}},mg=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=t.get("type");if(F!="case_group"){s.errors.push("Unexpected child of type ".concat(F," inside switch"));return}var W=t.get("properties")||new Pi,J=Rv(t,i,s,b,M),ae=Pv(i,W,s,null,M,"!case_value");return[J,ae]},Pv=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,W=i.get("field"),J=i.get("valueSrc"),ae=i.get("valueType");(F=="!case_value"||ae&&ae.get(0)=="case_value")&&(W="!case_value");var Re=as(t,W),He=nu(t,b,W),at=Mu(He),Bt=i.get("value"),Sn=i.get("asyncListValues");if(Bt!=null){var yn=[],xn=[],sr=s.usedFields,gr=Bt.map(function(Dr,li){var oi=J?J.get(li):null,Ei=ae?ae.get(li):null,sa=Pe(Dr,oi,t),Ki=ku(t,W,b,oi),Bi=Xu(t,W,b,Ki,oi,{forExport:!0}),qi=wp(s,t,sa,oi,Ei,Bi,Re,b,He,M,Sn);return qi!==void 0&&(yn.push(oi),xn.push(Ei)),qi}),Vr=gr.filter(function(Dr){return Dr===void 0}).size>0;if(gr.size<at||Vr){s.usedFields=sr;return}return at>1?gr.toArray():at==1?gr.first():null}},wp=function(t,i,s,b,M,F,W,J,ae){var Re=arguments.length>9&&arguments[9]!==void 0?arguments[9]:null,He=arguments.length>10?arguments[10]:void 0;if(s!==void 0){var at;if(b=="field")at=Kh(t,i,s,Re);else if(b=="func")at=Iv(t,i,s,Re);else if(typeof F?.jsonLogic=="function"){var Bt=F.jsonLogic,Sn=[s,dg(dg({},W?Ul()(W,["fieldSettings","listValues"]):{}),{},{asyncListValues:He}),Ol(F,dc)];J&&(Sn.push(J),Sn.push(ae)),at=Bt.call.apply(Bt,[i.ctx].concat(Sn))}else at=s;return at}},Iv=function(t,i,s){var b,M,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,W=(b=s.get)===null||b===void 0?void 0:b.call(s,"func"),J=(M=s.get)===null||M===void 0?void 0:M.call(s,"args"),ae=wu(i,W),Re=ru(W,i),He=Re[Re.length-1];if(!ae){t.errors.push("Func ".concat(W," is not defined in config"));return}if(!(ae!=null&&ae.jsonLogic)){t.errors.push("Func ".concat(W," is not supported"));return}var at={},Bt=[],Sn=[];for(var yn in ae.args){var xn,sr=ae.args[yn],gr=as(i,sr),Vr=sr.defaultValue,Dr=sr.isOptional,li=Vr!=null&&Vr.func?"func":"value",oi=J?J.get(yn):void 0,Ei=oi?oi.get("value"):void 0,sa=oi?oi.get("valueSrc"):void 0;sa!=="func"&&(xn=Ei)!==null&&xn!==void 0&&xn.toJS&&(Ei=Ei.toJS());var Ki=null,Bi=ku(i,sr,Ki,sa),qi=Xu(i,sr,Ki,Bi,sa,{forExport:!0}),oa=wp(t,i,Ei,sa,sr.type,qi,gr,null,null,F);if(Ei!=null&&oa===void 0){sa!="func"&&t.errors.push("Can't format value of arg ".concat(yn," for func ").concat(W));return}var zi=void 0;if(oa===void 0&&!Dr&&Vr!=null){var va=ku(i,sr,Ki,li),ba=Xu(i,sr,Ki,va,li,{forExport:!0});if(zi=wp(t,i,Vr,li,sr.type,ba,gr,null,null,F),zi===void 0){li!="func"&&t.errors.push("Can't format default value of arg ".concat(yn," for func ").concat(W));return}}var fa=oa??zi;if(fa!==void 0){if(Bt.length){var ga=hg(Bt),da;try{for(ga.s();!(da=ga.n()).done;){var Ca=da.value;at[Ca]=void 0}}catch(Io){ga.e(Io)}finally{ga.f()}Bt=[]}at[yn]=fa}else Dr||Sn.push(yn),Bt.push(yn)}if(!Sn.length){var xa=Object.values(at),Aa;if(typeof ae.jsonLogic=="function"){var ka=ae.jsonLogic,Wa=[at];Aa=ka.call.apply(ka,[i.ctx].concat(Wa))}else{var ho=ae.jsonLogic||He,mo=!!ae.jsonLogicIsMethod;if(mo){var Za=xa[0],is=xa.slice(1);is.length?Aa={method:[Za,ho,is]}:Aa={method:[Za,ho]}}else Aa=tt({},ho,xa)}return Aa}},Kh=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=i.settings,F=M.fieldSeparator,W=M.jsonLogic,J;if(s){Array.isArray(s)&&(s=s.join(F));var ae=as(i,s)||{},Re=zu(s,i,t,b),He=ae.jsonLogicVar||(ae.type=="!group"?W.groupVarKey:"var");J=tt({},He,Re),t.usedFields.indexOf(s)==-1&&t.usedFields.push(s)}return J},gg=function(t,i,s,b,M){var F=t,W=Mu(i);typeof i.jsonLogic=="string"&&(F=i.jsonLogic);var J=["<","<=",">",">="],ae=["==","!="],Re=function(at,Bt,Sn,yn,xn){return W==0&&ae.includes(F)?tt({},F,[s,null]):W==0?tt({},F,s):W==1?tt({},F,[s,b]):W==2&&J.includes(F)?tt({},F,[b[0],s,b[1]]):tt({},F,[s].concat($t(b)))};return Re},xp=function(t,i,s,b,M){var F,W,J=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,ae=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,Re=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,He=i.get("field"),at=(F=i.get("valueType"))===null||F===void 0?void 0:F.get(0),Bt=nu(t,M,He)||{},Sn=(W=ae?.type)!==null&&W!==void 0?W:at,yn=typeof Bt.jsonLogic=="function"?Bt.jsonLogic:gg(M,Bt,s,b,Sn),xn=[s,M,b,Ol(Bt,Yc),J,ae,Sn,t.settings],sr=yn.call.apply(yn,[t.ctx].concat(xn));return Re&&(sr={"!":sr}),sr},Dv=function(t){var i="",s=t?.type;return s=="number"&&(i=0),i},Mv=function(t,i,s,b,M,F,W,J,ae,Re,He,at,Bt){var Sn=typeof b=="string"&&!b.startsWith("$")?"$"+b:b,yn=i(F,Bt);if(yn!==void 0){var xn=W^s;if(J&&t=="$nin"&&(xn=!xn,t="$in"),J&&t=="$regex"){var sr={$regexFind:{input:Sn,regex:yn}};return xn&&(sr={$not:sr}),sr}return xn?J?{$not:tt({},t,[Sn,yn])}:tt({},b,{$not:tt({},t,yn)}):!J&&(!t||t=="$eq")?tt({},b,yn):J?tt({},t,[Sn,yn]):tt({},b,tt({},t,yn))}},yg=function(t,i,s,b,M,F,W,J,ae,Re,He,at){var Bt=typeof s=="string"&&!s.startsWith("$")?"$"+s:s;return F^i?W?{$not:{$and:[tt({},t[0],[Bt,M[0]]),tt({},t[1],[Bt,M[1]])]}}:tt({},s,{$not:tt(tt({},t[0],M[0]),t[1],M[1])}):W?{$and:[tt({},t[0],[Bt,M[0]]),tt({},t[1],[Bt,M[1]])]}:tt({},s,tt(tt({},t[0],M[0]),t[1],M[1]))},dh=function(t){return t.replace(/\$/g,"\uFF04")},B0=function(t){return t.replace(/\uFF04/g,"$")};function $0(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=U0(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function U0(c,t){if(c){if(typeof c=="string")return kv(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?kv(c,t):void 0}}function kv(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function bg(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Sg(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):bg(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var _g=function(t,i){return Eg(t,i,!1)},Eg=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b={errors:[]},M=vf(i,void 0,!1),F=Lv([],t,M,b);return s?[F,b.errors]:(b.errors.length&&console.warn("Errors while exporting to MongoDb:",b.errors),F)},Lv=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:void 0,J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:void 0;if(i){var ae=i.get("type");if(ae==="group"||ae==="rule_group")return V0(t,i,s,b,M,F,W,J);if(ae==="rule")return z0(t,i,s,b,M,F,W,J)}},V0=function(t,i,s,b){var M,F,W,J,ae,Re,He,at,Bt,Sn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,yn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,xn=arguments.length>6&&arguments[6]!==void 0?arguments[6]:void 0,sr=arguments.length>7&&arguments[7]!==void 0?arguments[7]:void 0,gr=i.get("type"),Vr=i.get("properties")||new Pi,Dr=!!Vr.get("not"),li=i.get("children1")||new Ar,oi=s.settings,Ei=oi.canShortMongoQuery,sa=oi.fieldSeparator,Ki=oi.exportPreserveGroups,Bi=oi.reverseOperatorsForNot,qi=sa,oa=(M=t.filter(function(Pu){return Pu.get("type")=="rule_group"}))===null||M===void 0||(M=M.slice(-1))===null||M===void 0?void 0:M.pop(),zi=!!oa,va=oa?.get("properties").get("field"),ba=zi&&oa.get("properties").get("mode")=="array",fa=gr==="rule_group",ga=fa?Vr.get("field"):null,da=fa?Vr.get("operator"):null,Ca=da&&nu(s,da,ga)||null,xa=da?(F=(W=Ca)===null||W===void 0?void 0:W.cardinality)!==null&&F!==void 0?F:1:void 0,Aa=zu(ga,s,b,va),ka=as(s,ga)||{},Wa=ka.mode,ho=ga&&Wa==="array"&&xa>=1,mo=fa&&Wa!="struct",Za=fa&&li?.size>0,is=fa&&!(li!=null&&li.size),Io=!1,Ja=Dr,Vo=!1;Za?(Vo=Dr,Ja=Sn):Sn&&(Ja=!Ja);var Wo=(J=Ca)===null||J===void 0?void 0:J.reversedOp,No=nu(s,Wo,ga),os=!((ae=Ca)!==null&&ae!==void 0&&ae.mongoFormatOp)&&!!((Re=No)!==null&&Re!==void 0&&Re.mongoFormatOp),Jo=!!((He=No)!==null&&He!==void 0&&He.mongoFormatOp),ps=(at=Kt(i))===null||at===void 0?void 0:at.get("type"),Ps=!fa&&ps==="rule",Ss=(Ja&&Ps||Vo&&li?.size===1)&&!Ki;Ss&&(Ps?Ja=!Ja:Vo=!Vo,Io=!0);var xs=Ja&&fa&&Jo&&(!!Bi&&!Ki||os);if(xs){Ja=!Ja;var Gu=[Wo,da];da=Gu[0],Wo=Gu[1];var Cu=[No,Ca];Ca=Cu[0],No=Cu[1]}var Fu=Vr.get("conjunction");Fu||(Fu=Kf(s));var eu=s.conjunctions[Fu];if(eu){var ll=eu.reversedConj,Yu=Ja&&((Bt=Fu)===null||Bt===void 0?void 0:Bt.toLowerCase())==="or"&&ll&&!fa&&!!Bi&&!Ki;Yu&&(Fu=ll,eu=s.conjunctions[Fu],Ja=!Ja,Io=!0);var rc=eu.mongoConj,pl=!fa&&!zi,Wl=Wa=="array"?function(Pu){return"$$el".concat(qi).concat(Pu)}:xn,ic=li.map(function(Pu){return Lv([].concat($t(t),[i]),Pu,s,b,Io,pl,Wl)}).filter(function(Pu){return typeof Pu<"u"});if(!(!ho&&!ic.size)){var ju,Hc;if(ic.size==1)ju=ic.first();else if(ic.size>1){var Ed=ic.toList().toJS(),_u=Ei&&rc=="$and"&&!Ki;_u&&(ju=Ed.reduce(function(Pu,td){if(Pu){for(var Iu in td){if(Iu[0]=="$"){Pu=void 0;break}if(Pu[Iu]==null)Pu[Iu]=td[Iu];else{var sf=Pu[Iu],nd=td[Iu];$u(sf)||(sf={$eq:sf}),$u(nd)||(nd={$eq:nd});var Hd=Object.keys(sf)[0],Qm=Object.keys(nd)[0];if(Hd==Qm){Pu=void 0;break}Pu[Iu]=Object.assign({},sf,nd)}}return Pu}},{})),ju?Hc=!0:(Hc=!1,ju=tt({},rc,Ed))}if(ga)if(Wa=="array"){var Gl={$size:{$ifNull:["$"+dh(Aa),[]]}};Vo&&ju&&(ju={$not:ju},Vo=!1);var yc=ju?{$size:{$ifNull:[{$filter:{input:"$"+dh(Aa),as:"el",cond:ju}},[]]}}:Gl,ed=Ki?!1:Ja;ju=Lv(t,i.set("type","rule"),s,b,ed,!1,function(Pu){return yc},Gl),ed&&(Ja=!1),ju={$expr:ju}}else ju=tt({},dh(Aa),{$elemMatch:ju});return Ja&&(ba?ju={$not:ju}:ju={$nor:[ju]}),ju}}},z0=function(t,i,s,b){var M,F,W,J,ae,Re,He,at,Bt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,Sn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,yn=arguments.length>6&&arguments[6]!==void 0?arguments[6]:void 0,xn=arguments.length>7&&arguments[7]!==void 0?arguments[7]:void 0,sr=i.get("properties")||new Pi,gr=(M=t.filter(function(xs){return xs.get("type")=="rule_group"}))===null||M===void 0||(M=M.slice(-1))===null||M===void 0?void 0:M.pop(),Vr=gr?.get("properties").get("field"),Dr=sr.get("operator"),li=sr.get("operatorOptions"),oi=sr.get("field"),Ei=sr.get("fieldSrc"),sa=sr.get("value"),Ki=sr.get("valueSrc"),Bi=sr.get("valueType"),qi=sr.get("asyncListValues");if(!(oi==null||Dr==null||sa===void 0)){var oa=as(s,oi),zi=nu(s,Dr,oi),va=(F=zi)===null||F===void 0?void 0:F.reversedOp,ba=nu(s,va,oi),fa=Mu(zi);if(!((W=zi)!==null&&W!==void 0&&W.mongoFormatOp)&&!((J=ba)!==null&&J!==void 0&&J.mongoFormatOp)){b.errors.push("Operator ".concat(Dr," is not supported"));return}var ga=Bt,da=!((ae=zi)!==null&&ae!==void 0&&ae.mongoFormatOp)&&!!((Re=ba)!==null&&Re!==void 0&&Re.mongoFormatOp),Ca=!!((He=ba)!==null&&He!==void 0&&He.mongoFormatOp),xa=Ca&&(!!s.settings.reverseOperatorsForNot||da),Aa=xa&&ga||da,ka=!1;if(Aa){var Wa=[va,Dr];Dr=Wa[0],va=Wa[1];var ho=[ba,zi];zi=ho[0],ba=ho[1],ga=!ga,ka=!0}var mo,Za=!1;if(Ei=="func"){var is=Nv(b,s,oi,Vr),Io=Mt(is,2);mo=Io[0],Za=Io[1]}else mo=zu(oi,s,b,Vr),mo=dh(mo),yn&&(Za=!0,mo=yn(mo));if(mo!=null){var Ja=[],Vo=[],Wo;if(sa!=null){var No=sa.map(function(xs,Gu){var Cu=Ki?Ki.get(Gu):null,Fu=Bi?Bi.get(Gu):null,eu=Pe(xs,Cu,s),ll=ku(s,oi,Dr,Cu),Yu=Xu(s,oi,Dr,ll,Cu,{forExport:!0}),rc=Yh(b,s,eu,Cu,Fu,Yu,oa,Vr,Dr,zi,qi),pl=Mt(rc,2),Wl=pl[0],ic=pl[1];return Wl!==void 0&&(Za=Za||ic,Ja.push(Cu),Vo.push(Fu)),Wl}),os=No.filter(function(xs){return xs===void 0}).size>0;if(No.size<fa||os)return;Wo=fa>1?No.toArray():fa==1?No.first():null}var Jo=Za&&Sn,ps=(at=zi)===null||at===void 0?void 0:at.mongoFormatOp,Ps=[mo,Dr,xn!==void 0&&Wo==null?xn:Wo,ga,Za,Ja.length>1?Ja:Ja[0],Vo.length>1?Vo:Vo[0],Ol(zi,Yc),li,oa],Ss=ps.call.apply(ps,[s.ctx].concat(Ps));return Jo&&(Ss={$expr:Ss}),Ss}}},Yh=function(t,i,s,b,M,F,W,J,ae,Re,He){if(s===void 0)return[void 0,!1];var at,Bt=!1;if(b=="field"){var Sn=Rh(t,i,s,J),yn=Mt(Sn,2);at=yn[0],Bt=yn[1]}else if(b=="func"){var xn=Nv(t,i,s,J),sr=Mt(xn,2);at=sr[0],Bt=sr[1]}else{var gr;if(typeof F?.mongoFormatValue=="function"){var Vr=F.mongoFormatValue,Dr=[s,Sg(Sg({},W?Ul()(W,["fieldSettings","listValues"]):{}),{},{asyncListValues:He}),Ol(F,dc)];ae&&(Dr.push(ae),Dr.push(Re)),at=Vr.call.apply(Vr,[i.ctx].concat(Dr))}else at=s;(gr=at)!==null&&gr!==void 0&&gr.$dateFromString&&(Bt=!0)}return[at,Bt]},Rh=function(t,i,s,b){var M=i.settings.fieldSeparator,F,W=!0;if(s){var J=as(i,s)||{},ae=ru(s,i),Re=ql(s,i),He=Re?Re.join(M):null,at=i.settings.formatField,Bt=zu(s,i,t,b),Sn=at(Bt,ae,He,J,i,!1);F="$"+dh(Sn)}return[F,W]},Nv=function(t,i,s,b){var M,F,W=!0,J,ae=(M=s.get)===null||M===void 0?void 0:M.call(s,"func"),Re=(F=s.get)===null||F===void 0?void 0:F.call(s,"args"),He=wu(i,ae);if(!He)return t.errors.push("Func ".concat(ae," is not defined in config")),[void 0,!1];var at=ru(ae,i),Bt=at[at.length-1],Sn=He.mongoFunc||Bt,yn=He.mongoArgsAsObject,xn={},sr=0,gr=void 0,Vr=[],Dr=[];for(var li in He.args){var oi;sr++;var Ei=He.args[li],sa=as(i,Ei),Ki=Ei.defaultValue,Bi=Ei.isOptional,qi=Ki!=null&&Ki.func?"func":"value",oa=Re?Re.get(li):void 0,zi=oa?oa.get("value"):void 0,va=oa?oa.get("valueSrc"):void 0;va!=="func"&&(oi=zi)!==null&&oi!==void 0&&oi.toJS&&(zi=zi.toJS());var ba=oa?oa.get("asyncListValues"):void 0,fa=null,ga=ku(i,Ei,fa,va),da=Xu(i,Ei,fa,ga,va,{forExport:!0}),Ca=Yh(t,i,zi,va,Ei.type,da,sa,b,null,null,ba),xa=Mt(Ca,2),Aa=xa[0],ka=xa[1];if(zi!=null&&Aa===void 0)return va!="func"&&t.errors.push("Can't format value of arg ".concat(li," for func ").concat(ae)),[void 0,!1];var Wa=void 0;if(Aa===void 0&&!Bi&&Ki!=null){var ho=ku(i,Ei,fa,qi),mo=Xu(i,Ei,fa,ho,qi,{forExport:!0}),Za=void 0,is=Yh(t,i,Ki,qi,Ei.type,mo,sa,b,null,null,ba),Io=Mt(is,2);if(Wa=Io[0],Za=Io[1],Wa===void 0)return qi!="func"&&t.errors.push("Can't format default value of arg ".concat(li," for func ").concat(ae)),[void 0,!1]}var Ja=Aa??Wa;if(Ja!==void 0){if(Vr.length){var Vo=$0(Vr),Wo;try{for(Vo.s();!(Wo=Vo.n()).done;){var No=Wo.value;xn[No]=void 0}}catch(ps){Vo.e(ps)}finally{Vo.f()}Vr=[]}xn[li]=Ja,gr=Ja}else Bi||Dr.push(li),Vr.push(li)}if(Dr.length)return[void 0,!1];if(typeof He.mongoFormatFunc=="function"){var os=He.mongoFormatFunc,Jo=[xn];J=os.call.apply(os,[i.ctx].concat(Jo))}else{if(He.mongoFormatFunc===null)return t.errors.push("Functon ".concat(Sn," is not supported")),[void 0,!1];yn?J=tt({},Sn,xn):sr==1&&gr!==void 0?J=tt({},Sn,gr):J=tt({},Sn,Object.values(xn))}return[J,W]},wg=u(61526),W0=u.n(wg),G0=function(t){return"'"+t.replace(/'/g,"''")+"'"},H0=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,b,M=["int","float"];t.map(function(J){if(J!=null){if(typeof J=="string")b="String";else if(typeof J=="number")b=Number.isInteger(J)?"int":"float";else throw new Error("spelEscape: Can't use value ".concat(J," in array"));if(!s)s=b;else if(s!=b)if(M.includes(s)&&M.includes(b))s="float";else throw new Error("spelEscape: Can't use different types in array: found ".concat(s," and ").concat(b))}}),s||(s="String");var F;s=="float"?F=t.map(function(J){return hh(J,!0)}):F=t.map(function(J){return hh(J)});var W;return i?W="new ".concat(s,"[]{").concat(F.join(", "),"}"):W="{".concat(F.join(", "),"}"),W},hh=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(t==null)return"null";switch(Te(t)){case"boolean":return t?"true":"false";case"number":return!Number.isFinite(t)||isNaN(t)?void 0:t+(!Number.isInteger(t)||i?"f":"");case"object":if(Array.isArray(t))return H0(t,s);throw new Error("spelEscape: Object is not supported");default:return G0(t)}},xg=function(t){return t&&Array.isArray(t)&&t.length?t.map(function(i){if(i.type=="const")return hh(i.value);if(i.type=="property")return""+i.value;if(i.type=="variable")return"#"+i.value}).filter(function(i){return i!=null}).join(" + "):"null"},Fv=function(t){if(t==null)return[void 0,[]];var i=[],s=t.valueType=="case_value"?t.value:t,b=Array.isArray(s)?s:[s],M=b.map(function(F){if(F.valueSrc==="value")return F.value===null?void 0:{type:"const",value:F.value};if(F.valueSrc==="field")return{type:F.isVariable?"variable":"property",value:F.value};i.push("Unsupported valueSrc ".concat(F.valueSrc," in concatenation"))}).filter(function(F){return F!=null});return[M,i]},jv=function(t){return"".concat(t,".?[true]")},Lf=W0();Lf.trim=function(c){return c?.charAt(0)=="'"?c.substring(1,c.length-1):c},Lf.unescapeLike=function(c){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(typeof c!="string")return c;var i=c;return t==="BigQuery"?i=i.replace(/\\\\([%_])/g,"$1"):i=i.replace(/\\([%_])/g,"$1"),i},Lf.escapeLike=function(c){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0;if(typeof c!="string")return c;var b=Lf.escape(c);return b=Lf.trim(b),s==="BigQuery"?b=b.replace(/[%_\\]/g,"\\\\$&"):b=b.replace(/[%_]/g,"\\$&"),b=(t?"%":"")+b+(i?"%":""),b="'"+b+"'",b};var Cp=function(t){var i="''",s=t?.type;return s=="date"?i="'0000-00-00'":s=="datetime"?i="'0000-00-00 00:00'":s=="time"?i="'00:00'":s=="number"&&(i="0"),i},Op=function(t){return t==null?"NULL":t.toString()},Cg=function(t){return t==null||t?.[0]==="("&&t?.[t?.length-1]===")"?t:"("+t+")"};function K0(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Jh(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Jh(c,t){if(c){if(typeof c=="string")return Tp(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Tp(c,t):void 0}}function Tp(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Zh(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Bv(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Zh(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Zh(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var mf=function(t,i){return $v(t,i,!1)},$v=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b={errors:[]},M=vf(i,void 0,!1),F=Og(t,M,b);return s?[F,b.errors]:(b.errors.length&&console.warn("Errors while exporting to SQL:",b.errors),F)},Og=function(t,i,s){if(t){var b=t.get("type"),M=t.get("children1");if(b==="group"||b==="rule_group")return Tg(t,i,s);if(b==="rule")return Ag(t,i,s)}},Tg=function(t,i,s){var b=t.get("type"),M=t.get("properties")||new Pi,F=t.get("children1")||new Ar,W=b==="rule_group",J=W?M.get("field"):null,ae=as(i,J)||{},Re=ae.mode;Re=="array"&&s.errors.push("Aggregation is not supported for ".concat(J));var He=M.get("not"),at=!1,Bt=F.map(function(xn){return Og(xn,i,s)}).filter(function(xn){return typeof xn<"u"});if(!(!at&&!Bt.size)){var Sn=M.get("conjunction");Sn||(Sn=Kf(i));var yn=i.conjunctions[Sn];return yn.sqlFormatConj.call(i.ctx,Bt,Sn,He)}},Uv=function(t,i){var s=i.sqlOp||t,b=Mu(i),M;return b==0?M=function(W,J,ae,Re,He,at,Bt,Sn){return"".concat(W," ").concat(s)}:b==1?M=function(W,J,ae,Re,He,at,Bt,Sn){return"".concat(W," ").concat(s," ").concat(ae)}:b==2&&(M=function(W,J,ae,Re,He,at,Bt,Sn){var yn,xn,sr=ae==null||(yn=ae.first)===null||yn===void 0?void 0:yn.call(ae),gr=ae==null||(xn=ae.get)===null||xn===void 0?void 0:xn.call(ae,1);return"".concat(W," ").concat(s," ").concat(sr," AND ").concat(gr)}),M},Ag=function(t,i,s){var b=t.get("properties")||new Pi,M=b.get("field"),F=b.get("fieldSrc"),W=b.get("operator"),J=b.get("operatorOptions"),ae=b.get("valueSrc"),Re=b.get("valueType"),He=b.get("value"),at=b.get("asyncListValues");if(!(M==null||W==null)){var Bt=as(i,M)||{},Sn=nu(i,W,M)||{},yn=Sn.reversedOp,xn=nu(i,yn,M)||{},sr=Mu(Sn),gr=!1,Vr=Sn.sqlOp||Sn.sqlFormatOp,Dr=xn.sqlOp||xn.sqlFormatOp;if(!Vr&&!Dr){s.errors.push("Operator ".concat(W," is not supported"));return}if(!Vr&&Dr){gr=!0;var li=[yn,W];W=li[0],yn=li[1];var oi=[xn,Sn];Sn=oi[0],xn=oi[1]}var Ei=[],sa=[],Ki;if(He!=null){var Bi=He.map(function(fa,ga){var da=ae?ae.get(ga):null,Ca=Re?Re.get(ga):null,xa=Pe(fa,da,i),Aa=ku(i,M,W,da),ka=Xu(i,M,W,Aa,da,{forExport:!0}),Wa=Ap(s,i,xa,da,Ca,ka,Bt,W,Sn,at);return Wa!==void 0&&(Ei.push(da),sa.push(Ca)),Wa}),qi=Bi.filter(function(fa){return fa===void 0}).size>0;if(qi||Bi.size<sr)return;Ki=sr==1?Bi.first():Bi}var oa=Sn.sqlFormatOp||Uv(W,Sn);if(!oa){s.errors.push("Operator ".concat(W," is not supported"));return}var zi=F=="func"?zv(s,i,M):Vv(s,i,M);if(zi!=null){var va=[zi,W,Ki,Ei.length>1?Ei:Ei[0],sa.length>1?sa:sa[0],Ol(Sn,Yc),J,Bt],ba;if(ba=oa.call.apply(oa,[i.ctx].concat(va)),gr&&(ba=i.settings.sqlFormatReverse.call(i.ctx,ba)),ba===void 0){s.errors.push("Operator ".concat(W," is not supported for value source ").concat(Ei.join(", ")));return}return ba}}},Ap=function(t,i,s,b,M,F,W,J,ae,Re){if(s!==void 0){var He;if(b=="field")He=Vv(t,i,s);else if(b=="func")He=zv(t,i,s);else if(s==null)He=void 0;else if(typeof F?.sqlFormatValue=="function"){var at=F.sqlFormatValue,Bt=b=="field"&&as(i,s)||{},Sn=[s,Bv(Bv({},Ul()(W,["fieldSettings","listValues"])),{},{asyncListValues:Re}),Ol(F,dc),J,ae,Bt,i.settings.sqlDialect];He=at.call.apply(at,[i.ctx].concat(Sn))}else Array.isArray(s)?He=s.map(function(yn){return Lf.escape(yn)}):He=Lf.escape(s);return He}},Vv=function(t,i,s){if(s){var b=i.settings.fieldSeparator,M=as(i,s)||{},F=ru(s,i),W=ql(s,i),J=W?W.join(b):null,ae=i.settings.formatField,Re=zu(s,i,t,null,{useTableName:!0}),He=ae(Re,F,J,M,i);return He}},zv=function(t,i,s){var b,M,F=(b=s.get)===null||b===void 0?void 0:b.call(s,"func"),W=(M=s.get)===null||M===void 0?void 0:M.call(s,"args"),J=wu(i,F);if(!J){t.errors.push("Func ".concat(F," is not defined in config"));return}var ae=ru(F,i),Re=ae[ae.length-1],He=J.sqlFunc||Re,at={},Bt=[],Sn=[];for(var yn in J.args){var xn,sr=J.args[yn],gr=as(i,sr),Vr=sr.defaultValue,Dr=sr.isOptional,li=Vr!=null&&Vr.func?"func":"value",oi=W?W.get(yn):void 0,Ei=oi?oi.get("value"):void 0,sa=oi?oi.get("valueSrc"):void 0;sa!=="func"&&(xn=Ei)!==null&&xn!==void 0&&xn.toJS&&(Ei=Ei.toJS());var Ki=oi?oi.get("asyncListValues"):void 0,Bi=Ap(t,i,Ei,sa,sr.type,gr,sr,null,null,Ki);if(Ei!=null&&Bi===void 0){sa!="func"&&t.errors.push("Can't format value of arg ".concat(yn," for func ").concat(F));return}var qi=void 0;if(Bi===void 0&&!Dr&&Vr!=null&&(qi=Ap(t,i,Vr,li,sr.type,gr,sr,null,null,Ki),qi===void 0)){li!="func"&&t.errors.push("Can't format default value of arg ".concat(yn," for func ").concat(F));return}var oa=Bi??qi;if(oa!==void 0){if(Bt.length){var zi=K0(yn),va;try{for(zi.s();!(va=zi.n()).done;){var ba=va.value;at[ba]=void 0}}catch(xa){zi.e(xa)}finally{zi.f()}Bt=[]}at[yn]=oa}else Dr||Sn.push(yn),Bt.push(yn)}if(!Sn.length){var fa;if(typeof J.sqlFormatFunc=="function"){var ga=J.sqlFormatFunc,da=[at,i.settings.sqlDialect];fa=ga.call.apply(ga,[i.ctx].concat(da))}else{var Ca=Object.entries(at).map(function(xa){var Aa=Mt(xa,2),ka=Aa[0],Wa=Aa[1];return Wa}).join(", ");fa="".concat(He,"(").concat(Ca,")")}return fa}};function Wv(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Y0(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Y0(c,t){if(c){if(typeof c=="string")return Rp(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Rp(c,t):void 0}}function Rp(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Xh(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Rg(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Xh(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Pg="${0}.compareTo(${1})",Qh={datetime:!0,time:!0,date:!0},J0=function(t,i){return Gv(t,i,!1)},Gv=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b={errors:[]},M=vf(i,void 0,!1),F=Pp(t,M,b,null);return s?[F,b.errors]:(b.errors.length&&console.warn("Errors while exporting to SpEL:",b.errors),F)},Pp=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(t){var M=t.get("type");if(M==="group"||M==="rule_group")return Mg(t,i,s,b);if(M==="rule")return Ip(t,i,s,b);if(M=="switch_group")return Dg(t,i,s,b);if(M=="case_group")return Ig(t,i,s,b)}},Ig=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=t.get("type");if(M!="case_group"){s.errors.push("Unexpected child of type ".concat(M," inside switch"));return}var F=t.get("properties")||new Pi,W=Mp(i,F,s,null,b,"!case_value"),J=W.value,ae=W.valueSrc,Re=W.valueType,He=Mg(t,i,s,b);return[He,J]},Dg=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=t.get("properties")||new Pi,F=t.get("children1");if(F){var W=F.map(function(xn){return Ig(xn,i,s,null)}).filter(function(xn){return typeof xn<"u"}).valueSeq().toArray();if(W.length){if(W.length==1&&!W[0][0])return W[0][1];for(var J=[],ae=0;ae<W.length;ae++)ae!=W.length-1&&!W[ae][0]?s.errors.push("No condition for case ".concat(ae)):(J.push(W[ae]),ae==W.length-1&&W[ae][0]&&J.push([void 0,null]));for(var Re="",He="",at=0;at<J.length;at++){var Bt=Mt(J[at],2),Sn=Bt[0],yn=Bt[1];yn==null&&(yn="null"),Sn==null&&(Sn="true"),at!=J.length-1?(Re+="(".concat(Sn," ? ").concat(yn," : "),He+=")"):Re+="".concat(yn)}return Re+He}}},Mg=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=t.get("type"),F=t.get("properties")||new Pi,W=F.get("mode"),J=t.get("children1")||new Ar,ae=F.get("field"),Re=F.get("conjunction");Re||(Re=Kf(i));var He=i.conjunctions[Re],at=F.get("not"),Bt=M==="rule_group"&&ae,Sn=Bt&&W!="struct",yn=Sn?ae:b,xn=as(i,yn)||{},sr=xn.isSpelArray,gr=i.settings.fieldSeparator,Vr=F.get("operator");!Vr&&(!W||W=="some")&&(Vr="some");var Dr=Jf(i,Vr,ae),li=Dr!=Vr,oi=Vr&&nu(i,Dr,ae)||null,Ei=Bt&&(!Dr||oi.cardinality==0),sa=Mp(i,F,s,Dr,b,null),Ki=sa.value,Bi=sa.valueSrc,qi=sa.valueType,oa=J.map(function(Wa){return Pp(Wa,i,s,yn)}).filter(function(Wa){return typeof Wa<"u"});if(Sn&&!Ei){if(Ki==null)return}else if(!oa.size)return;var zi=Bt,va=oa.size?He.spelFormatConj.call(i.ctx,oa,Re,at,zi):null,ba;if(Sn){var fa=mc(s,i,ae,b),ga=fa.value,da=gr||".",Ca=da+(sr?"length":"size()"),xa="".concat(ga).concat(Ca),Aa=va?"".concat(ga,".?[").concat(va,"]").concat(Ca):xa,ka=Ei?xa:Ki;ba=qh(s,i,F,Aa,ka,Dr,Bi,qi,li)}else ba=va;return ba},Hv=function(t,i,s){var b=i.spelOp;if(b){var M=b.includes("${0}"),F=Qh[s],W=b,J,ae=Mu(i);return F?J=function(He,at,Bt,Sn,yn,xn,sr,gr){var Vr=Pg.replace(/\${(\w+)}/g,function(Dr,li){return li==0?He:ae>1?Bt[li-1]:Bt});return"".concat(Vr," ").concat(W," 0")}:M?J=function(He,at,Bt,Sn,yn,xn,sr,gr){return b.replace(/\${(\w+)}/g,function(Vr,Dr){return Dr==0?He:ae>1?Bt[Dr-1]:Bt})}:ae==0?J=function(He,at,Bt,Sn,yn,xn,sr,gr){return"".concat(He," ").concat(W)}:ae==1&&(J=function(He,at,Bt,Sn,yn,xn,sr,gr){return"".concat(He," ").concat(W," ").concat(Bt)}),J}},qh=function(t,i,s,b,M,F,W,J){var ae=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,Re=s.get("field"),He=nu(i,F,Re)||{},at=as(i,Re)||{},Bt=s.get("operatorOptions"),Sn=He.spelFormatOp||Hv(F,He,J??at.type);if(!Sn){t.errors.push("Operator ".concat(F," is not supported"));return}var yn=[b,F,M,W,J,Ol(He,Yc),Bt,at],xn;return xn=Sn.call.apply(Sn,[i.ctx].concat(yn)),ae&&(xn=i.settings.spelFormatReverse.call(i.ctx,xn)),xn===void 0&&t.errors.push("Operator ".concat(F," is not supported for value source ").concat(W)),xn},Jf=function(t,i,s){if(i){var b=nu(t,i,s)||{},M=b.reversedOp,F=nu(t,M,s)||{},W=!1,J=b.spelOp||b.spelFormatOp,ae=F.spelOp||F.spelFormatOp;if(!(!J&&!ae)){if(!J&&ae){W=!0;var Re=[M,i];i=Re[0],M=Re[1];var He=[F,b];b=He[0],F=He[1]}return i}}},Ip=function(t,i,s){var b,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,F=t.get("properties")||new Pi,W=F.get("field"),J=F.get("fieldSrc"),ae=F.get("operator");if(!(W==null||ae==null)){var Re=Jf(i,ae,W);if(!Re){s.errors.push("Operator ".concat(ae," is not supported"));return}var He=Re!=ae,at=Mp(i,F,s,Re,M,null),Bt=at.value,Sn=at.valueSrc,yn=at.valueType;if(Bt!==void 0){var xn=(b=Dp(s,i,W,J,M))!==null&&b!==void 0?b:{},sr=xn.value,gr=xn.valueSrc,Vr=xn.valueType;if(sr!==void 0){var Dr=qh(s,i,F,sr,Bt,Re,Sn,yn??Vr,He);return Dr}}}},Dp=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;return b==="func"?kp(t,i,s,M):mc(t,i,s,M)},Mp=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,W=i.get("field"),J=i.get("valueSrc"),ae=i.get("valueType");(F=="!case_value"||ae&&ae.get(0)=="case_value")&&(W="!case_value");var Re=as(t,W)||{},He=nu(t,b,W)||{},at=Mu(He),Bt=i.get("value"),Sn=i.get("asyncListValues"),yn=[],xn=[],sr;if(Bt!=null){var gr=Bt.map(function(Dr,li){var oi=J?J.get(li):null,Ei=ae?ae.get(li):null,sa=Pe(Dr,oi,t),Ki=ku(t,W,b,oi),Bi=Xu(t,W,b,Ki,oi,{forExport:!0}),qi=Ph(s,t,sa,oi,Ei,Bi,Re,b,He,M,Sn);return qi!==void 0&&(yn.push(oi),xn.push(Ei)),qi}),Vr=gr.filter(function(Dr){return Dr===void 0}).size>0;gr.size<at||Vr||(sr=at>1?gr.toArray():at==1?gr.first():null)}return{value:sr,valueSrc:yn.length>1?yn:yn[0],valueType:xn.length>1?xn:xn[0]}},Ph=function(t,i,s,b,M,F,W,J,ae){var Re=arguments.length>9&&arguments[9]!==void 0?arguments[9]:null,He=arguments.length>10?arguments[10]:void 0;if(s!==void 0){var at;if(b==="field"){var Bt;at=(Bt=mc(t,i,s,Re))===null||Bt===void 0?void 0:Bt.value}else if(b==="func"){var Sn;at=(Sn=kp(t,i,s,Re,M))===null||Sn===void 0?void 0:Sn.value}else if(typeof F?.spelFormatValue=="function"){var yn=F.spelFormatValue,xn=[s,Rg(Rg({},Ul()(W,["fieldSettings","listValues"])),{},{asyncListValues:He}),Ol(F,dc)];if(J&&(xn.push(J),xn.push(ae)),b=="field"){var sr=as(i,s)||{};xn.push(sr)}at=yn.call.apply(yn,[i.ctx].concat(xn))}else at=hh(s);return at}},mc=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(s){var M=i.settings.fieldSeparator,F=as(i,s)||{},W=ru(s,i),J=Uc(s,i,b),ae=i.settings.formatSpelField,Re=zu(s,i,t,b),He=J.map(function(Bt){var Sn=Mt(Bt,3),yn=Sn[0],xn=Sn[1],sr=Sn[2],gr;sr&&(sr.type=="!struct"||sr.type=="!group"&&sr.mode=="struct"?gr=xn!=null&&xn.isSpelMap?"map":"class":sr.type=="!group"?gr=xn!=null&&xn.isSpelItemMap?"[map]":"[class]":gr="class");var Vr=xn?.isSpelVariable;return{key:yn,parent:gr,isSpelVariable:Vr,fieldSeparator:M}}),at=ae.call(i.ctx,Re,b,W,He,F,i);return{value:at,valueSrc:"field",valueType:F?.type}}},kp=function(t,i,s){var b,M,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,J=(b=s.get)===null||b===void 0?void 0:b.call(s,"func"),ae=(M=s.get)===null||M===void 0?void 0:M.call(s,"args"),Re=wu(i,J);if(!Re){t.errors.push("Func ".concat(J," is not defined in config"));return}var He={},at=[],Bt=[];for(var Sn in Re.args){var yn,xn,sr=Re.args[Sn],gr=as(i,sr),Vr=sr.defaultValue,Dr=sr.isOptional,li=Vr!=null&&Vr.func?"func":"value",oi=ae?ae.get(Sn):void 0,Ei=oi?oi.get("value"):void 0,sa=oi?oi.get("valueSrc"):void 0;sa!=="func"&&(yn=Ei)!==null&&yn!==void 0&&yn.toJS&&(Ei=Ei.toJS());var Ki=oi?oi.get("asyncListValues"):void 0,Bi=(xn=sr.escapeForFormat)!==null&&xn!==void 0?xn:!0,qi=null,oa=ku(i,sr,qi,sa),zi=Xu(i,sr,qi,oa,sa,{forExport:!0}),va=Ph(t,i,Ei,sa,sr.type,zi,gr,null,null,F,Ki);if(Ei!=null&&va===void 0){sa!="func"&&t.errors.push("Can't format value of arg ".concat(Sn," for func ").concat(J));return}var ba=void 0;if(va===void 0&&!Dr&&Vr!=null){var fa=ku(i,sr,qi,li),ga=Xu(i,sr,qi,fa,li,{forExport:!0});if(ba=Ph(t,i,Vr,li,sr.type,ga,gr,null,null,F,Ki),ba===void 0){li!="func"&&t.errors.push("Can't format default value of arg ".concat(Sn," for func ").concat(J));return}}var da=va??ba;if(da!==void 0){if(at.length){var Ca=Wv(at),xa;try{for(Ca.s();!(xa=Ca.n()).done;){var Aa=xa.value;He[Aa]=void 0}}catch(Ja){Ca.e(Ja)}finally{Ca.f()}at=[]}He[Sn]=Bi?da:Ei??Vr}else Dr||Bt.push(Sn),at.push(Sn)}if(!Bt.length){var ka;if(typeof Re.spelFormatFunc=="function"){var Wa=Re.spelFormatFunc,ho=[He];ka=Wa.call.apply(Wa,[i.ctx].concat(ho))}else if(Re.spelFunc){ka=Re.spelFunc.replace(/\${(\w+)}/g,function(Ja,Vo){var Wo;return(Wo=He[Vo])!==null&&Wo!==void 0?Wo:Ja});var mo=Object.keys(Re.args||{}).reverse().filter(function(Ja){return!!Re.args[Ja].isOptional}),Za=Wv(mo),is;try{for(Za.s();!(is=Za.n()).done;){var Io=is.value;if(He[Io]!=null)break;ka=ka.replace(new RegExp("(, )?\\${"+Io+"}","g"),"")}}catch(Ja){Za.e(Ja)}finally{Za.f()}ka=ka.replace(/\${(\w+)}/g,"null")}else t.errors.push("Func ".concat(J," is not supported"));return{value:ka,valueSrc:"func",valueType:Re.returnType}}};function Lp(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Kv(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Kv(c,t){if(c){if(typeof c=="string")return Np(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Np(c,t):void 0}}function Np(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Fp(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function kg(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Fp(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Fp(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Lg=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,M={errors:[],settings:{isForDisplay:s,isDebugMode:b}},F=vf(i,void 0,!1),W=Ng([],t,F,M,null);return M.errors.length&&console.warn("Errors while exporting to string:",M.errors),W},Ng=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(i){var F=i.get("type"),W=i.get("children1");if(F==="group"||F==="rule_group")return Z0(t,i,s,b,M);if(F==="rule")return Fg(t,i,s,b,M)}},Z0=function(t,i,s,b){var M,F,W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,J=b.settings,ae=J.isForDisplay,Re=J.isDebugMode,He=i.get("type"),at=i.get("properties")||new Pi,Bt=at.get("mode"),Sn=i.get("children1")||new Ar,yn=W,xn=He==="rule_group",sr=xn&&Bt=="array"?at.get("field"):null,gr=He==="rule_group"?at.get("operator"):null,Vr=gr?(M=(F=s.operators[gr])===null||F===void 0?void 0:F.cardinality)!==null&&M!==void 0?M:1:void 0,Dr=xn&&Bt==="array"&&Vr>=1,li=at.get("not"),oi=Sn.map(function(ba){return Ng([].concat($t(t),[i]),ba,s,b,sr??yn)}).filter(function(ba){return typeof ba<"u"});if(!(!Dr&&!oi.size&&!Re)){var Ei=at.get("conjunction");Ei||(Ei=Kf(s));var sa=s.conjunctions[Ei],Ki=oi.size?sa.formatConj.call(s.ctx,oi,Ei,li,ae):null,Bi;if(sr){var qi=Fg(t,i,s,b,yn,!0);if(qi){var oa,zi=qi.pop(),va=[Ki].concat($t(qi));Bi=(oa=s.settings.formatAggr).call.apply(oa,[s.ctx].concat($t(va))),zi&&(Bi=s.settings.formatReverse.call(s.ctx,Bi,null,null,null,null,ae))}}else Bi=Ki;return Re&&Bi==null&&(Bi="?"),Bi}},X0=function(t,i,s,b,M){var F=s.settings,W=F.isForDisplay,J=F.isDebugMode,ae=i.get("field"),Re=i.get("valueSrc"),He=i.get("valueType"),at=as(t,ae)||{},Bt=b||i.get("operator"),Sn=nu(t,Bt,ae)||{},yn=Mu(Sn),xn=i.get("value"),sr=i.get("asyncListValues"),gr=[],Vr=[],Dr,li;if(xn!=null){li=xn.map(function(sa,Ki){var Bi=Re?Re.get(Ki):null,qi=He?He.get(Ki):null,oa=J?sa:Pe(sa,Bi,t),zi=ku(t,ae,Bt,Bi),va=Xu(t,ae,Bt,zi,Bi,{forExport:!0}),ba=Yv(t,s,oa,Bi,qi,va,at,Bt,Sn,M,sr);return ba!==void 0&&(gr.push(Bi),Vr.push(qi)),ba});var oi=li.filter(function(sa){return sa===void 0}).size>0,Ei=!oi&&li.size===yn;Ei&&(Dr=yn==1?li.first():li)}return J&&!Dr&&(Dr=yn>1?new Ar(Array.from({length:yn}).map(function(sa,Ki){var Bi,qi;return(Bi=(qi=li)===null||qi===void 0?void 0:qi.get(Ki))!==null&&Bi!==void 0?Bi:"?"})):"?"),[Dr,gr.length>1?gr:gr[0],Vr.length>1?Vr:Vr[0]]},ep=function(t,i,s){var b=s.settings.isDebugMode,M=i?.labelForFormat||t,F=Mu(i),W;return F==0?W=function(ae,Re,He,at,Bt,Sn,yn,xn){return"".concat(ae," ").concat(M)}:F==1?W=function(ae,Re,He,at,Bt,Sn,yn,xn){return b&&Re==="?"&&He==="?"?ae&&ae!=="?"?"".concat(ae," ?"):"?":"".concat(ae," ").concat(M," ").concat(He)}:F==2&&(W=function(ae,Re,He,at,Bt,Sn,yn,xn){var sr,gr,Vr=He==null||(sr=He.first)===null||sr===void 0?void 0:sr.call(He),Dr=He==null||(gr=He.get)===null||gr===void 0?void 0:gr.call(He,1);return"".concat(ae," ").concat(M," ").concat(Vr," AND ").concat(Dr)}),W},Fg=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,W=b.settings,J=W.isForDisplay,ae=W.isDebugMode,Re=i.get("properties")||new Pi,He=Re.get("field"),at=Re.get("fieldSrc"),Bt=Re.get("operator"),Sn=Re.get("operatorOptions");if(!((He==null||Bt==null)&&!ae)){var yn=as(s,He)||{},xn=nu(s,Bt,He)||{},sr=xn.reversedOp,gr=nu(s,sr,He)||{},Vr=!1,Dr=xn.formatOp;if(!Dr&&sr&&(Dr=gr.formatOp,Dr)){Vr=!0;var li=[sr,Bt];Bt=li[0],sr=li[1];var oi=[gr,xn];xn=oi[0],gr=oi[1]}if(ae&&!Bt&&(Bt="?"),Dr||(Dr=ep(Bt,xn,b)),!!Dr){var Ei=at==="func"?Bg(s,b,He,M):jg(s,b,He,M);if(Ei!=null){var sa=X0(s,Re,b,Bt,M),Ki=Mt(sa,3),Bi=Ki[0],qi=Ki[1],oa=Ki[2];if(Bi!==void 0){var zi=[Ei,Bt,Bi,qi,oa,Ol(xn,Yc),Sn,J,yn,Vr];if(F)return zi;var va,ba=(va=Dr).call.apply(va,[s.ctx].concat(zi));return Vr&&(ba=s.settings.formatReverse.call(s.ctx,ba,Bt,sr,xn,gr,J)),ba}}}}},Yv=function(t,i,s,b,M,F,W,J,ae){var Re=arguments.length>9&&arguments[9]!==void 0?arguments[9]:null,He=arguments.length>10?arguments[10]:void 0,at=i.settings,Bt=at.isForDisplay,Sn=at.isDebugMode;if(s===void 0)return Sn?F?.jsType==="array"?[]:"?":void 0;var yn;if(b=="field")yn=jg(t,i,s,Re);else if(b=="func")yn=Bg(t,i,s,Re);else if(s==null)yn=void 0;else if(typeof F?.formatValue=="function"){var xn,sr=F.formatValue,gr=[s,kg(kg({},Ul()(W,["fieldSettings","listValues"])),{},{asyncListValues:He}),Ol(F,dc),Bt];if(J&&(gr.push(J),gr.push(ae)),b=="field"){var Vr=as(t,s)||{};gr.push(Vr)}var Dr=(xn=W?.escapeForFormat)!==null&&xn!==void 0?xn:!0;Dr?yn=sr.call.apply(sr,[t.ctx].concat(gr)):yn=s}else yn=s;return yn},jg=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,F=i.settings,W=F.isForDisplay,J=F.isDebugMode,ae=t.settings,Re=ae.fieldSeparator,He=ae.fieldSeparatorDisplay,at=null;if(s){var Bt=as(t,s)||{},Sn=ru(s,t),yn=ql(s,t,M?b:null),xn=yn?yn.join(He):null,sr=Bt.label2||xn,gr=t.settings.formatField,Vr=zu(s,t,i,M?b:null,{useTableName:!0});at=gr(Vr,Sn,sr,Bt,t,W)}else J&&(at="?");return at},Bg=function(t,i,s){var b,M,F,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,J=i.settings,ae=J.isForDisplay,Re=J.isDebugMode,He=s==null||(b=s.get)===null||b===void 0?void 0:b.call(s,"func");if(!He)return Re?"?()":void 0;var at=(M=s.get)===null||M===void 0?void 0:M.call(s,"args"),Bt=wu(t,He);if(!Bt&&!Re){i.errors.push("Func ".concat(He," is not defined in config"));return}var Sn=ru(He,t),yn=Sn[Sn.length-1],xn=ae&&Bt?.label||yn,sr={},gr=[],Vr=[],Dr={},li=Bt?Object.keys(Bt.args||{}):(at==null||(F=at.keySeq)===null||F===void 0?void 0:F.call(at).toArray())||[],oi=Lp(li),Ei;try{for(oi.s();!(Ei=oi.n()).done;){var sa,Ki=Ei.value,Bi=Bt?.args[Ki],qi=as(t,Bi),oa=Bi||{},zi=oa.defaultValue,va=oa.isOptional,ba=zi!=null&&zi.func?"func":"value",fa=Xu(t,Bi,void 0,void 0,ba,{forExport:!0}),ga=ae&&Bi?.label||Ki,da=at?at.get(Ki):void 0,Ca=da?da.get("value"):void 0,xa=da?da.get("valueSrc"):void 0;xa!=="func"&&(sa=Ca)!==null&&sa!==void 0&&sa.toJS&&(Ca=Ca.toJS());var Aa=da?da.get("asyncListValues"):void 0,ka=Yv(t,i,Ca,xa,Bi?.type,fa,Bi,null,null,W,Aa);Ca!=null&&ka===void 0&&xa!="func"&&i.errors.push("Can't format value of arg ".concat(Ki," for func ").concat(He));var Wa=void 0;if(ka===void 0&&!va&&zi!=null&&(Wa=Yv(t,i,zi,ba,Bi?.type,fa,Bi,null,null,W,Aa),Wa===void 0)){ba!="func"&&i.errors.push("Can't format default value of arg ".concat(Ki," for func ").concat(He));return}var ho=ka??Wa;if(ho!==void 0){if(gr.length){var mo=Lp(Ki),Za;try{for(mo.s();!(Za=mo.n()).done;){var is=Mt(Za.value,2),Io=is[0],Ja=is[1];sr[Io]=void 0}}catch(Jo){mo.e(Jo)}finally{mo.f()}gr=[]}sr[Ki]=ho,Dr[ga]=ho}else va||Vr.push(Ki),gr.push([Ki,ga])}}catch(Jo){oi.e(Jo)}finally{oi.f()}if(!(Vr.length&&!Re)){var Vo=null;if(typeof Bt?.formatFunc=="function"){var Wo=Bt.formatFunc,No=[sr,ae];Vo=Wo.call.apply(Wo,[t.ctx].concat(No))}else{var os=Object.entries(ae?Dr:sr).map(function(Jo){var ps=Mt(Jo,2),Ps=ps[0],Ss=ps[1];return ae?"".concat(Ps,": ").concat(Ss):"".concat(Ss)}).join(", ");Vo="".concat(xn,"(").concat(os,")")}return Vo}};function $g(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Jv(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):$g(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function Ug(c){if(c==null)return null;var t=c.split(",").map(Number);return{top_left:{lat:t[0],lon:t[1]},bottom_right:{lat:t[2],lon:t[3]}}}function Q0(c,t){if(c.length>1)return{gte:"".concat(c[0]),lte:"".concat(c[1])};var i=c[0];switch(t){case"on_date":case"not_on_date":case"equal":case"select_equals":case"not_equal":return{gte:"".concat(i,"||/d"),lte:"".concat(i,"||+1d")};case"less_or_equal":return{lte:"".concat(i)};case"greater_or_equal":return{gte:"".concat(i)};case"less":return{lt:"".concat(i)};case"greater":return{gt:"".concat(i)};default:return}}function Vg(c){return{value:"*"+c+"*"}}function q0(c,t){switch(c){case"AND":return t?"must_not":"must";case"OR":return t?"should_not":"should";case"NOT":return t?"must":"must_not";default:return}}function eb(c){return{value:c}}function Zv(c,t){return c}function tb(c,t,i,s,b,M){var F=Zv(s,b);switch(c){case"filter":return{script:b.operators[i].elasticSearchScript(s,t)};case"exists":return{field:s};case"match":return tt({},F,t[0]);case"term":return M===Xv?tt({},s,{value:t[0]}):tt({},s,t[0]);case"geo_bounding_box":return tt({},s,Ug(t[0]));case"range":return tt({},s,Q0(t,i));case"wildcard":return tt({},s,Vg(t[0]));case"regexp":return tt({},s,eb(t[0]));default:return}}function zg(c,t,i,s,b,M){if(!(!c||!i||t==null)){var F=i,W=s.operators[F];if(W){var J=W,ae=J.elasticSearchQueryType,Re=!1;if(!ae&&W.reversedOp){Re=!0,F=W.reversedOp,W=s.operators[F];var He=W;ae=He.elasticSearchQueryType}var at=ku(s,c,F,b),Bt=s.widgets[at];if(Bt){var Sn=Bt.elasticSearchFormatValue,yn;if(typeof ae=="function"?yn=ae(at):yn=ae,!!yn){var xn;return typeof Sn=="function"?xn=Sn(yn,t,F,c,s):xn=tb(yn,t,F,c,s,M),Re?{bool:{must_not:tt({},yn,Jv({},xn))}}:tt({},yn,Jv({},xn))}}}}}function nb(c,t,i,s,b,M){if(!(!c||!c.size)){var F=c.valueSeq().toArray(),W=q0(t,i),J=F.map(function(Re){return s(Re,b,M)}).filter(function(Re){return Re!==void 0});if(J.length){var ae=J.flat(1/0);return{bool:tt({},W,ae)}}}}var Xv="ES_7_SYNTAX",rb="ES_6_SYNTAX";function Wg(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rb,s=vf(t,void 0,!1);if(c){var b=c.get("type"),M=c.get("properties")||new Map;if(b==="rule"&&M.get("field")){var F,W,J,ae=M.get("operator"),Re=M.get("field"),He=M.get("fieldSrc"),at=(F=M.get("value"))===null||F===void 0?void 0:F.toJS(),Bt=(W=M.get("valueType"))===null||W===void 0?void 0:W.get(0),Sn=(J=M.get("valueSrc"))===null||J===void 0?void 0:J.get(0);return Sn==="func"||He=="func"?void 0:at&&Array.isArray(at[0])?at[0].map(function(gr){return zg(Re,[gr],ae,s,Sn,i)}):zg(Re,at,ae,s,Sn,i)}if(b==="group"||b==="rule_group"){var yn=M.get("not"),xn=M.get("conjunction");xn||(xn=Kf(s));var sr=c.get("children1");return nb(sr,xn,yn,Wg,s,i)}}}var ib=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(t){var b=t;return b=b.toJS(),b=Tc(b,i,s),b}},jp=function(t){if(Gg(t))return t;if(Hg(t))return Uu(Qc(t));if(typeof t=="string"&&t.startsWith('["~#iM"'))throw new Error("You are trying to load query in obsolete serialization format (Immutable string) which is not supported in versions starting from 2.1.17");if(typeof t=="string")return Uu(Qc(JSON.parse(t)));throw new Error("Can't load tree!")},Gg=function(t){return Pi.isMap(t)},Hg=function(t){return Te(t)=="object"&&(t.type=="group"||t.type=="switch_group")};function tp(c){return Ze(c)||Tn(c)||Rt(c)||Dn()}function Kg(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Nf(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Kg(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function Qv(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=ab(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function ab(c,t){if(c){if(typeof c=="string")return Bp(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Bp(c,t):void 0}}function Bp(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}var qv=function(t){return Array.from(new Set(t))},Yg="jlField",Jg="jlRawField",Zg="jlHavingMarker",em=new Proxy({__name:"jlArgs",__test:function(t){var i,s=t==null||(i=t.match)===null||i===void 0?void 0:i.call(t,/jlArgs\[(\d+)\]/);if(s)return parseInt(s[1])}},{get:function(t,i){return isNaN(parseInt(i))?t[i]:"jlArgs["+i+"]"}}),_o=["==","!=","datetime==","datetime!=","date==","date!="],Xg=["<","<=",">",">="],Qg=["in","!in"],qg=["multiselect_equals","multiselect_not_equals","multiselect_contains","multiselect_not_contains"],ey=function(t){return{errors:[],settings:t?.settings}},ob=function(t,i){return ty(t,i,!1)},ty=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=ey();b.settings={allowUnknownFields:!1,returnErrors:s};var M=vf(i,void 0,!1),F=sb(M),W=t?qd(t,F,M,["rule","group","switch","case_val"],b):void 0,J=W?jp(W):void 0;return b.errors=Array.from(new Set(b.errors)),s?[J,b.errors]:(b.errors.length&&console.warn("Errors while importing from JsonLogic:",b.errors),J)},sb=function(t){var i={},s={},b=function(li){var oi=t.operators[li],Ei=Mu(oi);if(typeof oi.jsonLogic=="string"){var sa=oi.jsonLogic+"/"+Ei;i[sa]||(i[sa]=[]),i[sa].push(li)}else if(typeof oi.jsonLogic=="function"){var Ki,Bi,qi,oa,zi;try{zi=oi.jsonLogic(Yg,li,em,oi,new vo.Map({having:Zg,groupField:Jg}))}catch(da){return console.warn("Error while running JsonLogic template for op ".concat(li),da),1}var va=Object.keys(zi)[0],ba=(Ki=oi.jsonLogic2)===null||Ki===void 0?void 0:Ki.startsWith("#"),fa=(Bi=(qi=oi.jsonLogic2)===null||qi===void 0?void 0:qi.replace(/^#/,""))!==null&&Bi!==void 0?Bi:va,ga=(oa=oi.jsonLogicOps)!==null&&oa!==void 0?oa:[fa];ga.map(function(da){var Ca=da+"/"+Ei;i[Ca]||(i[Ca]=[]),i[Ca].push(li)}),s[li]||(s[li]={}),s[li]={template:zi,newOp:fa,_jsonLogicIsExclamationOp:!!oi._jsonLogicIsExclamationOp,isRevArgs:ba}}};for(var M in t.operators)b(M);var F={};for(var W in t.conjunctions){var J=t.conjunctions[W],ae=J.jsonLogicConj||W.toLowerCase();F[ae]=W}var Re={},He=Qv(Of(t)),at;try{for(He.s();!(at=He.n()).done;){var Bt=Mt(at.value,2),Sn=Bt[0],yn=Bt[1],xn=void 0;yn.jsonLogicIsMethod?xn="#"+yn.jsonLogic:typeof yn.jsonLogic=="string"&&(xn=yn.jsonLogic),xn&&(Re[xn]||(Re[xn]=[]),Re[xn].push(Sn))}}catch(Dr){He.e(Dr)}finally{He.f()}var sr=t.settings.jsonLogic,gr=sr.groupVarKey,Vr=sr.altVarKey;return{operators:i,conjunctions:F,funcs:Re,varKeys:["var",gr,Vr],combinationOperators:s}},tm=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M;if(i!=null&&i.combinationOperators)for(var F=0,W=Object.entries(i.combinationOperators);F<W.length;F++){var J=Mt(W[F],2),ae=J[0],Re=J[1];if(b==null||b.includes(ae)){var He=ny(Re.template,t);He.match&&(M?s.errors.push("Operator matched against 2 templates: ".concat(M.newOp," and ").concat(ae)):M=He,M.newOp=Re.newOp)}}return M},ny=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{match:!0,jlField:null,jlArgs:[],jlHaving:null};if(t==null||i==null)return s.match=!1,s;var b=Object.keys(t),M=Object.keys(i);if(b.length!==M.length)return s.match=!1,s;s.vals=[];for(var F=0;F<b.length;F++){var W=b[F],J=t[W];if(s.vals.push(i[W]),W!==M[F])return s.match=!1,s;var ae=em.__test(J);if(ae!==void 0)s.jlArgs[ae]=i[W];else if(J===Yg&&$l(i[W]))s.jlField=i[W];else if(J===Jg)s.jlField={var:i[W]};else if(J===em)s.jlArgs.push(i[W]);else if(J===Zg)s.jlHaving=i[W];else if(Te(J)==="object"&&J!==null||Array.isArray(J))s=ny(J,i[W],s);else if(J!==i[W])return s.match=!1,s}return s},qd=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,W=arguments.length>6?arguments[6]:void 0,J=arguments.length>7?arguments[7]:void 0,ae=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,Re=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1,He,at;$l(t)&&(He=Object.keys(t)[0],at=t[He],Array.isArray(at)||(at=[at]));var Bt,Sn=M.errors.length,yn=s.settings.jsonLogic.lockedOp,xn=He=="!"&&at.length==1&&at[0]&&$l(at[0])&&i.varKeys.includes(Object.keys(at[0])[0]),sr=tm(t,i,M);sr&&(at=[],at[0]=sr.jlField,sr.jlHaving&&at.push(sr.jlHaving),sr.jlArgs.forEach(function(Ki){return at.push(Ki)}),He=sr.newOp,Qg.includes(He)&&(at=sr.vals));var gr=He=="!"&&!xn,Vr=yn&&He==yn,Dr=b.includes("switch"),li=Dr;if(Vr)Bt=qd(at[0],i,s,b,M,F,W,J,ae,!0);else if(gr)Bt=qd(at[0],i,s,b,M,!F,W,J,ae);else if(b.includes("val"))Bt=ry(He,at,i,s,F,M,ae)||nm(He,at,i,s,F,W,M,ae)||ub(t,W,J,s,M);else{var oi=$t(M.errors);b.includes("switch")&&(Bt=np(He,at,i,s,F,M,ae)),Bt==null&&b.includes("group")&&(Bt=rm(He,at,i,s,F,M,ae,!1)),Bt==null&&b.includes("rule")&&(Bt=Nd(He,at,i,s,F,M,ae));var Ei=$t(M.errors);Bt==null&&b.includes("case_val")&&(M.errors=oi,Bt=ph(He,at,i,s,F,M,ae),Bt==null&&(M.errors=Ei)),Bt&&li&&!["group","switch_group"].includes(Bt.type)&&(Bt=kd(Bt,s))}var sa=M.errors.length;return He!="!"&&Bt===void 0&&sa==Sn&&M.errors.push("Can't parse logic ".concat(JSON.stringify(t))),Vr&&(Bt.properties.isLocked=!0),Bt},ub=function(t,i,s,b,M){var F;if(t===void 0&&(t=i?.defaultValue),t!==void 0){s=s||i?.mainWidget;var W=b.widgets[s],J=i?.type;if(J&&!W){M.errors.push("No widget for type ".concat(J));return}if($l(t)){M.errors.push("Unexpected logic in value: ".concat(JSON.stringify(t)));return}if(W!=null&&W.jsonLogicImport)try{var ae;t=W.jsonLogicImport.call(b.ctx,t,Nf(Nf({},W),(ae=i?.fieldSettings)!==null&&ae!==void 0?ae:{}))}catch(oi){var Re;M.errors.push("Can't import value ".concat(t," using import func of widget ").concat(s,": ").concat((Re=oi?.message)!==null&&Re!==void 0?Re:oi)),t=void 0}else{if(J==="time"&&typeof t=="number"){var He=Math.floor(t/60/60)%24,at=Math.floor(t/60)%60,Bt=t%60,Sn=W.valueFormat;if(Sn){var yn=new Date(t);yn.setMilliseconds(0),yn.setHours(He),yn.setMinutes(at),yn.setSeconds(Bt),t=gu()(yn).format(Sn)}else t="".concat(He,":").concat(at,":").concat(Bt)}if(["date","datetime"].includes(J)&&t&&!(t instanceof Date))try{var xn=typeof t=="number"||typeof t=="string"&&!isNaN(t),sr=xn&&typeof t=="string"?parseInt(t):t,gr=new Date(xn?sr:t);if(gr instanceof Date&&(t=gr),isNaN(gr))throw new Error("Invalid date")}catch{M.errors.push("Can't convert value ".concat(t," as Date")),t=void 0}}if(t instanceof Date&&i){var Vr=W.valueFormat;Vr&&(t=gu()(t).format(Vr))}var Dr;if(t&&i!==null&&i!==void 0&&(F=i.fieldSettings)!==null&&F!==void 0&&F.asyncFetch){var li=Array.isArray(t)?t:[t];Dr=li}return{valueSrc:"value",value:t,valueType:W?.type,asyncListValues:Dr}}},ry=function(t,i,s,b,M,F){var W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null;if(s.varKeys.includes(t)&&typeof i[0]=="string"){var J,ae=il(b,i[0],W),Re=as(b,ae);if(!Re&&!((J=F.settings)!==null&&J!==void 0&&J.allowUnknownFields)){F.errors.push("No config for field ".concat(ae));return}return{valueSrc:"field",value:ae,valueType:Re?.type}}},$S=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,J=arguments.length>7?arguments[7]:void 0,ae=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,Re=M.operators[t],He=!!Re,at=Object.keys(i)[0],Bt=Object.values(i)[0],Sn=function(ga,da){return wl(ga,da,b,M,F,J,ae)||lb(ga,da,b,M,F,W,J,ae)},yn=J.errors.length,xn,sr,gr,Vr=Sn(at,Bt);if(Vr&&(xn=Vr.field,sr=Vr.fieldSrc),He&&(gr=s[0],s=s.splice(1)),at=="reduce"&&Array.isArray(Bt)&&Bt.length==3){var Dr=Bt,li=Mt(Dr,3),oi=li[0],Ei=li[1],sa=li[2];if($l(oi)&&sa==0&&$l(Ei)&&Array.isArray(Ei["+"])&&Ei["+"][0]==1&&$l(Ei["+"][1])&&Ei["+"][1].var=="accumulator")if(at=Object.keys(oi)[0],Bt=Object.values(oi)[0],at=="filter"){var Ki=Bt,Bi=Mt(Ki,2),qi=Bi[0],oa=Bi[1];if($l(qi)){at=Object.keys(qi)[0],Bt=Object.values(qi)[0];var zi=Sn(at,Bt);zi&&(xn=zi.field,sr=zi.fieldSrc,gr=oa,He=!0)}}else{var va=Sn(at,Bt);va&&(xn=va.field,sr=va.fieldSrc,He=!0)}}var ba=J.errors.length;if(!xn&&ba==yn&&J.errors.push("Unknown LHS ".concat(JSON.stringify(i))),!!xn)return{field:xn,fieldSrc:sr,having:gr,isGroup:He,args:s}},wl=function(t,i,s,b,M,F){var W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null;Array.isArray(i)||(i=[i]);var J=ry(t,i,s,b,M,F,W);if(J)return{fieldSrc:"field",field:J.value}},lb=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,W=arguments.length>6?arguments[6]:void 0,J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,ae=nm(t,i,s,b,M,F,W,J);if(ae)return{fieldSrc:"func",field:ae.value}},nm=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,W=arguments.length>6?arguments[6]:void 0,J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null;if(t){var ae,Re,He,at=t=="method";if(at){var Bt,Sn,yn=tp(i);Bt=yn[0],ae=yn[1],Sn=yn.slice(2),Re=[Bt].concat($t(Sn))}else ae=t,Re=i;var xn=(at?"#":"")+ae,sr=F?.type||F?.returnType,gr=(s.funcs[xn]||[]).filter(function(ga){return F?wu(b,ga).returnType==sr:!0});if(gr.length)He=gr[0];else{var Vr=tt({},t,i),Dr=Qv(Of(b)),li;try{for(Dr.s();!(li=Dr.n()).done;){var oi=Mt(li.value,2),Ei=oi[0],sa=oi[1];if(sa.jsonLogicImport&&(!sr||sa.returnType==sr)){var Ki=void 0;try{Ki=sa.jsonLogicImport.call(b.ctx,Vr)}catch{}Ki&&(He=Ei,Re=Ki)}}}catch(ga){Dr.e(ga)}finally{Dr.f()}}if(He&&He){var Bi=wu(b,He),qi=Object.keys(Bi.args||{}),oa=Re.reduce(function(ga,da,Ca){var xa=qi[Ca],Aa=Bi.args[xa],ka;return Aa&&(ka=qd(da,s,b,["val"],W,!1,Aa,null,J)),ka!==void 0?Nf(Nf({},ga),{},tt({},xa,ka)):ga},{});for(var zi in Bi.args){var va=Bi.args[zi],ba=oa[zi];if(ba===void 0){if(ba=va?.defaultValue,ba!==void 0){var fa;ba={value:ba,valueSrc:(fa=ba)!==null&&fa!==void 0&&fa.func?"func":"value",valueType:va.type}}if(ba===void 0){if(!(va!=null&&va.isOptional)){W.errors.push("No value for arg ".concat(zi," of func ").concat(He));return}}else oa[zi]=ba}}return{valueSrc:"func",value:{func:He,args:oa},valueType:Bi.returnType}}}},rm=function(t,i,s,b,M,F){var W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,ae=s.conjunctions[t],Re=b.settings.fieldSeparator;if(ae){var He="group",at=i.map(function(Vr){return qd(Vr,s,b,["rule","group"],F,!1,null,null,W)}).filter(function(Vr){return Vr!==void 0}).reduce(function(Vr,Dr){return Nf(Nf({},Vr),{},tt({},Dr.id,Dr))},{}),Bt=Object.values(at).map(function(Vr){var Dr,li;return(Vr==null||(Dr=Vr.properties)===null||Dr===void 0?void 0:Dr.fieldSrc)=="field"&&(Vr==null||(li=Vr.properties)===null||li===void 0?void 0:li.field)}).filter(function(Vr){var Dr;return Vr==null||(Dr=Vr.includes)===null||Dr===void 0?void 0:Dr.call(Vr,Re)}),Sn=Object.fromEntries(qv(Bt).map(function(Vr){var Dr=Vr.split(Re),li=Object.fromEntries(Dr.slice(0,-1).map(function(oi,Ei,sa){return[].concat($t(sa.slice(0,Ei)),[oi])}).map(function(oi){return[oi.join(Re),as(b,oi)]}).filter(function(oi){var Ei=Mt(oi,2),sa=Ei[0],Ki=Ei[1];return Ki?.type=="!group"}));return[Vr,Object.keys(li)]})),yn={conjunction:ae,not:M},xn=es(),sr={},gr={};return Object.entries(at).map(function(Vr){var Dr=Mt(Vr,2),li=Dr[0],oi=Dr[1];if(oi?.type=="group"||oi?.type=="rule_group")sr[li]=oi;else{var Ei,sa=oi==null||(Ei=oi.properties)===null||Ei===void 0?void 0:Ei.field,Ki=Sn[sa]||[],Bi=Ki[Ki.length-1];if(!Bi)oi&&(sr[li]=oi);else{var qi=sr,oa=ru(W,b),zi=ru(Bi,b),va=xc(oa,zi.slice(0,oa.length));va||(oa=[]);var ba=Bi.split(Re).slice(oa.length).map(function(fa,ga,da){return[].concat($t(oa),$t(da.slice(0,ga)),[fa]).join(Re)}).map(function(fa){return{f:fa,fc:as(b,fa)||{}}}).filter(function(fa){var ga=fa.fc;return ga.type!="!struct"});ba.map(function(fa,ga){var da=fa.f,Ca=fa.fc,xa=gr[da];xa||(xa=es(),gr[da]=xa,qi[xa]={type:"rule_group",id:xa,children1:{},properties:{conjunction:ae,not:!1,field:da,fieldSrc:"field",mode:Ca.mode}}),qi=qi[xa].children1}),qi[li]=oi}}}),{type:He,id:xn,children1:sr,properties:yn}}},Wc=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;if(t)return{type:"rule_group",id:es(),children1:tt({},t.id,t),properties:{conjunction:M||qc(b,s),not:F,field:i}}},kd=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return{type:"group",id:es(),children1:tt({},t.id,t),properties:{conjunction:qc(i),not:s}}},Zf=function(t,i,s,b,M,F,W){var J=ey(W),ae=Ld(t,i,s,b,M,F,J);if(!ae){W.errors.push(Array.from(new Set(J.errors)).join("; ")||"Unknown op ".concat(t,"/").concat(i));return}return ae},Ld=function(t,i,s,b,M,F,W){var J,ae=qg.map(function(da){var Ca;return(Ca=F.operators[da])===null||Ca===void 0?void 0:Ca.jsonLogic2}).includes(t),Re=F.settings.groupOperators.find(function(da){var Ca=F.operators[da];return[da,typeof Ca.jsonLogic=="string"&&Ca.jsonLogic,Ca.jsonLogic2].includes(t)}),He=F.operators[Re],at=Re&&He?.cardinality==0&&!ae,Bt=(J=He?.cardinality)!==null&&J!==void 0?J:i-1;!at&&_o.includes(t)&&Bt==1&&s[1]===null&&(i=1,Bt=0,s=[s[0]]);var Sn=t+"/"+Bt,yn=M.operators[Sn];if(yn){var xn=[],sr=Qv(yn),gr;try{for(sr.s();!(gr=sr.n()).done;){var Vr,Dr,li=gr.value,oi=void 0,Ei=[];if(Xg.includes(t)&&i==3)oi=s[1],Ei=[s[0],s[2]];else{var sa=s,Ki=tp(sa);oi=Ki[0],Ei=Ki.slice(1)}if((Vr=M.combinationOperators[li])!==null&&Vr!==void 0&&Vr.isRevArgs&&(oi=s[s.length-1],Ei=s.slice(0,s.length-1)),!!$l(oi)){var Bi=$S(Re,oi,Ei,M,F,null,null,W,b);if(Bi){var qi=Bi.field,oa=Bi.fieldSrc,zi=Bi.having,va=Bi.isGroup,ba=Bi.args,fa=as(F,qi);if(!fa&&!((Dr=W.settings)!==null&&Dr!==void 0&&Dr.allowUnknownFields)){W.errors.push("No config for LHS ".concat(qi));return}var ga=fa?.operators&&fa.operators.includes(li);xn.push({field:qi,fieldSrc:oa,fieldConfig:fa,opKey:li,args:ba,having:zi,isValidOp:ga})}}}}catch(da){sr.e(da)}finally{sr.f()}return xn.sort(function(da){var Ca=da.isValidOp;return Ca?-1:1}),xn[0]}},Nd=function(t,i,s,b,M,F){var W,J=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,ae=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(t){var Re=Object.values(b.conjunctions).map(function(Za){var is=Za.jsonLogicConj;return is}),He=i.length,at=Zf(t,He,i,J,s,b,F);if(at){var Bt=at.field,Sn=at.fieldSrc,yn=at.fieldConfig,xn=at.opKey,sr=at.args,gr=at.having,Vr=as(b,J),Dr=b.operators[xn],li=b.operators[(W=Dr)===null||W===void 0?void 0:W.reversedOp],oi=!1,Ei=!!li,sa=yn.type=="!group",Ki=Vr?.type=="!group",Bi=Ei&&(!!b.settings.reverseOperatorsForNot||oi||sa&&!gr||!sa&&Ki&&!ae),qi=M&&Bi||oi,oa,zi,va=!1,ba=!!b.settings.reverseOperatorsForNot;if(yn?.type=="!group"&&gr){oa=Object.keys(gr)[0],zi=gr[oa],Array.isArray(zi)||(zi=[zi]);for(var fa=tm(gr,s,F);oa=="!"&&!fa;){var ga=oa=="!"&&zi.length==1&&zi[0]&&$l(zi[0])&&s.varKeys.includes(Object.keys(zi[0])[0]);if(ga)break;va=!va,gr=gr["!"],oa=Object.keys(gr)[0],zi=gr[oa],ba&&Re.includes(oa)&&zi.length==1&&(gr=gr[oa][0],oa=Object.keys(gr)[0],zi=gr[oa]);var da=tm(gr,s,F);fa=da||fa}Array.isArray(zi)||(zi=[zi]),fa&&(zi=[],zi[0]=fa.jlField,fa.jlArgs.forEach(function(Za){return zi.push(Za)}),oa=fa.newOp,Qg.includes(fa.newOp)&&(zi=fa.vals))}qi&&(M=!M,xn=Dr.reversedOp,Dr=b.operators[xn]);var Ca=ku(b,Bt,xn,null),xa=sr.map(function(Za){return qd(Za,s,b,["val"],F,!1,yn,Ca,J)});if(!xa.filter(function(Za){return Za===void 0}).length){var Aa,ka=yn?.type;if((ka==="!group"||ka==="!struct")&&(ka=null),yn?.type=="!group"&&gr){if(s.conjunctions[oa]!==void 0)Aa=rm(oa,zi,s,b,va,F,Bt,!0);else if(Aa=Nd(oa,zi,s,b,va,F,Bt,!0),Aa){var Wa;Aa.type==="rule_group"&&((Wa=Aa.properties)===null||Wa===void 0?void 0:Wa.field)!==Bt&&(Aa=Wc(Aa,Bt,yn,b)),Object.assign(Aa.properties,{conjunction:qc(b,yn)})}if(!Aa)return;Aa.type="rule_group",Object.assign(Aa.properties,{field:Bt,mode:yn.mode,operator:xn}),yn.mode=="array"&&Object.assign(Aa.properties,{value:xa.map(function(Za){return Za.value}),valueSrc:xa.map(function(Za){return Za.valueSrc}),valueType:xa.map(function(Za){return Za.valueType})}),M&&(Aa=kd(Aa,b,M))}else if(yn?.type=="!group"&&!gr)Aa={type:"rule_group",id:es(),children1:{},properties:{conjunction:qc(b,yn),not:!1,mode:yn.mode,field:Bt,operator:xn}},yn.mode==="array"&&Object.assign(Aa.properties,{value:xa.map(function(Za){return Za.value}),valueSrc:xa.map(function(Za){return Za.valueSrc}),valueType:xa.map(function(Za){return Za.valueType})}),M&&(Aa=kd(Aa,b,M));else{var ho=xa.map(function(Za){return Za.asyncListValues}).filter(function(Za){return Za!=null}),mo=ho.length?ho[0]:void 0;Aa={type:"rule",id:es(),properties:Nf({field:Bt,fieldSrc:Sn,operator:xn,value:xa.map(function(Za){return Za.value}),valueSrc:xa.map(function(Za){return Za.valueSrc}),valueType:xa.map(function(Za){return Za.valueType})},mo?{asyncListValues:mo}:{})},(M||ae)&&(Aa=kd(Aa,b,M))}return Aa}}}},ph=function(t,i,s,b,M,F){var W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,J=tt({},t,i),ae=iy(b,F,s,J);if(ae!==void 0){var Re=$p(null,ae,b,F),He=[Re],at={type:"switch_group",id:es(),children1:He,properties:{}};return at}},np=function(t,i,s,b,M,F){var W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null;if(t?.toLowerCase()==="if"){var J=vh(i),ae=J.map(function(at){var Bt=Mt(at,2),Sn=Bt[0],yn=Bt[1];return[Sn?qd(Sn,s,b,["rule","group"],F,!1,null,null,W):null,iy(b,F,s,yn)]}),Re=ae.map(function(at){var Bt=Mt(at,2),Sn=Bt[0],yn=Bt[1];return $p(Sn,yn,b,F)}),He={type:"switch_group",id:es(),children1:Re,properties:{}};return He}},vh=function(t){var i=[];function s(b){var M=Mt(b,3),F=M[0],W=M[1],J=M[2];i.push([F,W]);var ae=$l(J)?Object.keys(J)[0]:null;ae?.toLowerCase()==="if"?s(J[ae]):i.push([void 0,J])}return s(t),i},$p=function(t,i,s,b){var M;return t?(M=Nf({},t),M.type?(M.type!="group"&&(M=kd(M,s)),M.type="case_group"):(b.errors.push("Unexpected case: ".concat(JSON.stringify(M))),M=void 0)):M={id:es(),type:"case_group",properties:{}},M&&(M.properties=Nf(Nf({},M.properties),i)),M},iy=function(t,i,s,b){var M=as(t,"!case_value");if(!M){i.errors.push("Missing caseValueField in settings");return}var F=M.mainWidget,W=t.widgets[F];if(!W){i.errors.push("No widget ".concat(F," for case value"));return}var J=qd(b,s,t,["val","case_val"],i,!1,M,F);if(J!=null){var ae=J.value,Re=J.valueSrc,He=J.valueType,at={value:[ae],valueSrc:[Re??"value"],valueType:[He??W?.type],field:"!case_value"};return at}},ay=u(21450),oy=u(90179),ms=u.n(oy);const Rs=c=>typeof c=="string",Ru=()=>{let c,t;const i=new Promise((s,b)=>{c=s,t=b});return i.resolve=c,i.reject=t,i},sy=c=>c==null?"":""+c,Ml=(c,t,i)=>{c.forEach(s=>{t[s]&&(i[s]=t[s])})},zl=/###/g,eh=c=>c&&c.indexOf("###")>-1?c.replace(zl,"."):c,Gc=c=>!c||Rs(c),Fd=(c,t,i)=>{const s=Rs(t)?t.split("."):t;let b=0;for(;b<s.length-1;){if(Gc(c))return{};const M=eh(s[b]);!c[M]&&i&&(c[M]=new i),Object.prototype.hasOwnProperty.call(c,M)?c=c[M]:c={},++b}return Gc(c)?{}:{obj:c,k:eh(s[b])}},mh=(c,t,i)=>{const{obj:s,k:b}=Fd(c,t,Object);if(s!==void 0||t.length===1){s[b]=i;return}let M=t[t.length-1],F=t.slice(0,t.length-1),W=Fd(c,F,Object);for(;W.obj===void 0&&F.length;)M=`${F[F.length-1]}.${M}`,F=F.slice(0,F.length-1),W=Fd(c,F,Object),W&&W.obj&&typeof W.obj[`${W.k}.${M}`]<"u"&&(W.obj=void 0);W.obj[`${W.k}.${M}`]=i},gh=(c,t,i,s)=>{const{obj:b,k:M}=Fd(c,t,Object);b[M]=b[M]||[],b[M].push(i)},Ff=(c,t)=>{const{obj:i,k:s}=Fd(c,t);if(i)return i[s]},jd=(c,t,i)=>{const s=Ff(c,i);return s!==void 0?s:Ff(t,i)},Bd=(c,t,i)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in c?Rs(c[s])||c[s]instanceof String||Rs(t[s])||t[s]instanceof String?i&&(c[s]=t[s]):Bd(c[s],t[s],i):c[s]=t[s]);return c},md=c=>c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var cb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const fb=c=>Rs(c)?c.replace(/[&<>"'\/]/g,t=>cb[t]):c;class db{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const i=this.regExpMap.get(t);if(i!==void 0)return i;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}const hb=[" ",",","?","!",";"],uy=new db(20),pb=(c,t,i)=>{t=t||"",i=i||"";const s=hb.filter(F=>t.indexOf(F)<0&&i.indexOf(F)<0);if(s.length===0)return!0;const b=uy.getRegExp(`(${s.map(F=>F==="?"?"\\?":F).join("|")})`);let M=!b.test(c);if(!M){const F=c.indexOf(i);F>0&&!b.test(c.substring(0,F))&&(M=!0)}return M},im=function(c,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!c)return;if(c[t])return c[t];const s=t.split(i);let b=c;for(let M=0;M<s.length;){if(!b||typeof b!="object")return;let F,W="";for(let J=M;J<s.length;++J)if(J!==M&&(W+=i),W+=s[J],F=b[W],F!==void 0){if(["string","number","boolean"].indexOf(typeof F)>-1&&J<s.length-1)continue;M+=J-M+1;break}b=F}return b},Up=c=>c&&c.replace("_","-"),vb={type:"logger",log(c){this.output("log",c)},warn(c){this.output("warn",c)},error(c){this.output("error",c)},output(c,t){console&&console[c]&&console[c].apply(console,t)}};class rp{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,i)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=t||vb,this.options=i,this.debug=i.debug}log(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"log","",!0)}warn(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"warn","",!0)}error(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"error","")}deprecate(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,s,b){return b&&!this.debug?null:(Rs(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[i](t))}create(t){return new rp(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new rp(this.logger,t)}}var gd=new rp;class ip{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const b=this.observers[s].get(i)||0;this.observers[s].set(i,b+1)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t].delete(i)}}emit(t){for(var i=arguments.length,s=new Array(i>1?i-1:0),b=1;b<i;b++)s[b-1]=arguments[b];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(F=>{let[W,J]=F;for(let ae=0;ae<J;ae++)W(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(F=>{let[W,J]=F;for(let ae=0;ae<J;ae++)W.apply(W,[t,...s])})}}class ly extends ip{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,s){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const M=b.keySeparator!==void 0?b.keySeparator:this.options.keySeparator,F=b.ignoreJSONStructure!==void 0?b.ignoreJSONStructure:this.options.ignoreJSONStructure;let W;t.indexOf(".")>-1?W=t.split("."):(W=[t,i],s&&(Array.isArray(s)?W.push(...s):Rs(s)&&M?W.push(...s.split(M)):W.push(s)));const J=Ff(this.data,W);return!J&&!i&&!s&&t.indexOf(".")>-1&&(t=W[0],i=W[1],s=W.slice(2).join(".")),J||!F||!Rs(s)?J:im(this.data&&this.data[t]&&this.data[t][i],s,M)}addResource(t,i,s,b){let M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const F=M.keySeparator!==void 0?M.keySeparator:this.options.keySeparator;let W=[t,i];s&&(W=W.concat(F?s.split(F):s)),t.indexOf(".")>-1&&(W=t.split("."),b=i,i=W[1]),this.addNamespaces(i),mh(this.data,W,b),M.silent||this.emit("added",t,i,s,b)}addResources(t,i,s){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const M in s)(Rs(s[M])||Array.isArray(s[M]))&&this.addResource(t,i,M,s[M],{silent:!0});b.silent||this.emit("added",t,i,s)}addResourceBundle(t,i,s,b,M){let F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},W=[t,i];t.indexOf(".")>-1&&(W=t.split("."),b=s,s=i,i=W[1]),this.addNamespaces(i);let J=Ff(this.data,W)||{};F.skipCopy||(s=JSON.parse(JSON.stringify(s))),b?Bd(J,s,M):J={...J,...s},mh(this.data,W,J),F.silent||this.emit("added",t,i,s)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,i)}:this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(b=>i[b]&&Object.keys(i[b]).length>0)}toJSON(){return this.data}}var cy={processors:{},addPostProcessor(c){this.processors[c.name]=c},handle(c,t,i,s,b){return c.forEach(M=>{this.processors[M]&&(t=this.processors[M].process(t,i,s,b))}),t}};const fy={};class Vp extends ip{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ml(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=gd.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,i);return s&&s.res!==void 0}extractFromKey(t,i){let s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const b=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let M=i.ns||this.options.defaultNS||[];const F=s&&t.indexOf(s)>-1,W=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!pb(t,s,b);if(F&&!W){const J=t.match(this.interpolator.nestingRegexp);if(J&&J.length>0)return{key:t,namespaces:Rs(M)?[M]:M};const ae=t.split(s);(s!==b||s===b&&this.options.ns.indexOf(ae[0])>-1)&&(M=ae.shift()),t=ae.join(b)}return{key:t,namespaces:Rs(M)?[M]:M}}translate(t,i,s){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const b=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,M=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:F,namespaces:W}=this.extractFromKey(t[t.length-1],i),J=W[W.length-1],ae=i.lng||this.language,Re=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(ae&&ae.toLowerCase()==="cimode"){if(Re){const Dr=i.nsSeparator||this.options.nsSeparator;return b?{res:`${J}${Dr}${F}`,usedKey:F,exactUsedKey:F,usedLng:ae,usedNS:J,usedParams:this.getUsedParamsDetails(i)}:`${J}${Dr}${F}`}return b?{res:F,usedKey:F,exactUsedKey:F,usedLng:ae,usedNS:J,usedParams:this.getUsedParamsDetails(i)}:F}const He=this.resolve(t,i);let at=He&&He.res;const Bt=He&&He.usedKey||F,Sn=He&&He.exactUsedKey||F,yn=Object.prototype.toString.apply(at),xn=["[object Number]","[object Function]","[object RegExp]"],sr=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,gr=!this.i18nFormat||this.i18nFormat.handleAsObject,Vr=!Rs(at)&&typeof at!="boolean"&&typeof at!="number";if(gr&&at&&Vr&&xn.indexOf(yn)<0&&!(Rs(sr)&&Array.isArray(at))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Dr=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Bt,at,{...i,ns:W}):`key '${F} (${this.language})' returned an object instead of string.`;return b?(He.res=Dr,He.usedParams=this.getUsedParamsDetails(i),He):Dr}if(M){const Dr=Array.isArray(at),li=Dr?[]:{},oi=Dr?Sn:Bt;for(const Ei in at)if(Object.prototype.hasOwnProperty.call(at,Ei)){const sa=`${oi}${M}${Ei}`;li[Ei]=this.translate(sa,{...i,joinArrays:!1,ns:W}),li[Ei]===sa&&(li[Ei]=at[Ei])}at=li}}else if(gr&&Rs(sr)&&Array.isArray(at))at=at.join(sr),at&&(at=this.extendTranslation(at,t,i,s));else{let Dr=!1,li=!1;const oi=i.count!==void 0&&!Rs(i.count),Ei=Vp.hasDefaultValue(i),sa=oi?this.pluralResolver.getSuffix(ae,i.count,i):"",Ki=i.ordinal&&oi?this.pluralResolver.getSuffix(ae,i.count,{ordinal:!1}):"",Bi=oi&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),qi=Bi&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${sa}`]||i[`defaultValue${Ki}`]||i.defaultValue;!this.isValidLookup(at)&&Ei&&(Dr=!0,at=qi),this.isValidLookup(at)||(li=!0,at=F);const zi=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&li?void 0:at,va=Ei&&qi!==at&&this.options.updateMissing;if(li||Dr||va){if(this.logger.log(va?"updateKey":"missingKey",ae,J,F,va?qi:at),M){const da=this.resolve(F,{...i,keySeparator:!1});da&&da.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ba=[];const fa=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fa&&fa[0])for(let da=0;da<fa.length;da++)ba.push(fa[da]);else this.options.saveMissingTo==="all"?ba=this.languageUtils.toResolveHierarchy(i.lng||this.language):ba.push(i.lng||this.language);const ga=(da,Ca,xa)=>{const Aa=Ei&&xa!==at?xa:zi;this.options.missingKeyHandler?this.options.missingKeyHandler(da,J,Ca,Aa,va,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(da,J,Ca,Aa,va,i),this.emit("missingKey",da,J,Ca,at)};this.options.saveMissing&&(this.options.saveMissingPlurals&&oi?ba.forEach(da=>{const Ca=this.pluralResolver.getSuffixes(da,i);Bi&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Ca.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ca.push(`${this.options.pluralSeparator}zero`),Ca.forEach(xa=>{ga([da],F+xa,i[`defaultValue${xa}`]||qi)})}):ga(ba,F,qi))}at=this.extendTranslation(at,t,i,He,s),li&&at===F&&this.options.appendNamespaceToMissingKey&&(at=`${J}:${F}`),(li||Dr)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?at=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${J}:${F}`:F,Dr?at:void 0):at=this.options.parseMissingKeyHandler(at))}return b?(He.res=at,He.usedParams=this.getUsedParamsDetails(i),He):at}extendTranslation(t,i,s,b,M){var F=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||b.usedLng,b.usedNS,b.usedKey,{resolved:b});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const ae=Rs(t)&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Re;if(ae){const at=t.match(this.interpolator.nestingRegexp);Re=at&&at.length}let He=s.replace&&!Rs(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(He={...this.options.interpolation.defaultVariables,...He}),t=this.interpolator.interpolate(t,He,s.lng||this.language||b.usedLng,s),ae){const at=t.match(this.interpolator.nestingRegexp),Bt=at&&at.length;Re<Bt&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&b&&b.res&&(s.lng=this.language||b.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var at=arguments.length,Bt=new Array(at),Sn=0;Sn<at;Sn++)Bt[Sn]=arguments[Sn];return M&&M[0]===Bt[0]&&!s.context?(F.logger.warn(`It seems you are nesting recursively key: ${Bt[0]} in key: ${i[0]}`),null):F.translate(...Bt,i)},s)),s.interpolation&&this.interpolator.reset()}const W=s.postProcess||this.options.postProcess,J=Rs(W)?[W]:W;return t!=null&&J&&J.length&&s.applyPostProcessor!==!1&&(t=cy.handle(J,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...b,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,b,M,F,W;return Rs(t)&&(t=[t]),t.forEach(J=>{if(this.isValidLookup(s))return;const ae=this.extractFromKey(J,i),Re=ae.key;b=Re;let He=ae.namespaces;this.options.fallbackNS&&(He=He.concat(this.options.fallbackNS));const at=i.count!==void 0&&!Rs(i.count),Bt=at&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),Sn=i.context!==void 0&&(Rs(i.context)||typeof i.context=="number")&&i.context!=="",yn=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);He.forEach(xn=>{this.isValidLookup(s)||(W=xn,!fy[`${yn[0]}-${xn}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(W)&&(fy[`${yn[0]}-${xn}`]=!0,this.logger.warn(`key "${b}" for languages "${yn.join(", ")}" won't get resolved as namespace "${W}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),yn.forEach(sr=>{if(this.isValidLookup(s))return;F=sr;const gr=[Re];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(gr,Re,sr,xn,i);else{let Dr;at&&(Dr=this.pluralResolver.getSuffix(sr,i.count,i));const li=`${this.options.pluralSeparator}zero`,oi=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(at&&(gr.push(Re+Dr),i.ordinal&&Dr.indexOf(oi)===0&&gr.push(Re+Dr.replace(oi,this.options.pluralSeparator)),Bt&&gr.push(Re+li)),Sn){const Ei=`${Re}${this.options.contextSeparator}${i.context}`;gr.push(Ei),at&&(gr.push(Ei+Dr),i.ordinal&&Dr.indexOf(oi)===0&&gr.push(Ei+Dr.replace(oi,this.options.pluralSeparator)),Bt&&gr.push(Ei+li))}}let Vr;for(;Vr=gr.pop();)this.isValidLookup(s)||(M=Vr,s=this.getResource(sr,xn,Vr,i))}))})}),{res:s,usedKey:b,exactUsedKey:M,usedLng:F,usedNS:W}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,s){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,i,s,b):this.resourceStore.getResource(t,i,s,b)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!Rs(t.replace);let b=s?t.replace:t;if(s&&typeof t.count<"u"&&(b.count=t.count),this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),!s){b={...b};for(const M of i)delete b[M]}return b}static hasDefaultValue(t){const i="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&i===s.substring(0,i.length)&&t[s]!==void 0)return!0;return!1}}const am=c=>c.charAt(0).toUpperCase()+c.slice(1);class dy{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gd.create("languageUtils")}getScriptPartFromCode(t){if(t=Up(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=Up(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(Rs(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let b=Intl.getCanonicalLocales(t)[0];if(b&&this.options.lowerCaseLng&&(b=b.toLowerCase()),b)return b}catch{}const i=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(b=>b.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),i.indexOf(s[1].toLowerCase())>-1&&(s[1]=am(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),i.indexOf(s[1].toLowerCase())>-1&&(s[1]=am(s[1].toLowerCase())),i.indexOf(s[2].toLowerCase())>-1&&(s[2]=am(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(s=>{if(i)return;const b=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(b))&&(i=b)}),!i&&this.options.supportedLngs&&t.forEach(s=>{if(i)return;const b=this.getLanguagePartFromCode(s);if(this.isSupportedCode(b))return i=b;i=this.options.supportedLngs.find(M=>{if(M===b)return M;if(!(M.indexOf("-")<0&&b.indexOf("-")<0)&&(M.indexOf("-")>0&&b.indexOf("-")<0&&M.substring(0,M.indexOf("-"))===b||M.indexOf(b)===0&&b.length>1))return M})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),Rs(t)&&(t=[t]),Array.isArray(t))return t;if(!i)return t.default||[];let s=t[i];return s||(s=t[this.getScriptPartFromCode(i)]),s||(s=t[this.formatLanguageCode(i)]),s||(s=t[this.getLanguagePartFromCode(i)]),s||(s=t.default),s||[]}toResolveHierarchy(t,i){const s=this.getFallbackCodes(i||this.options.fallbackLng||[],t),b=[],M=F=>{F&&(this.isSupportedCode(F)?b.push(F):this.logger.warn(`rejecting language code not found in supportedLngs: ${F}`))};return Rs(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&M(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&M(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&M(this.getLanguagePartFromCode(t))):Rs(t)&&M(this.formatLanguageCode(t)),s.forEach(F=>{b.indexOf(F)<0&&M(this.formatLanguageCode(F))}),b}}let mb=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],gb={1:c=>+(c>1),2:c=>+(c!=1),3:c=>0,4:c=>c%10==1&&c%100!=11?0:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?1:2,5:c=>c==0?0:c==1?1:c==2?2:c%100>=3&&c%100<=10?3:c%100>=11?4:5,6:c=>c==1?0:c>=2&&c<=4?1:2,7:c=>c==1?0:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?1:2,8:c=>c==1?0:c==2?1:c!=8&&c!=11?2:3,9:c=>+(c>=2),10:c=>c==1?0:c==2?1:c<7?2:c<11?3:4,11:c=>c==1||c==11?0:c==2||c==12?1:c>2&&c<20?2:3,12:c=>+(c%10!=1||c%100==11),13:c=>+(c!==0),14:c=>c==1?0:c==2?1:c==3?2:3,15:c=>c%10==1&&c%100!=11?0:c%10>=2&&(c%100<10||c%100>=20)?1:2,16:c=>c%10==1&&c%100!=11?0:c!==0?1:2,17:c=>c==1||c%10==1&&c%100!=11?0:1,18:c=>c==0?0:c==1?1:2,19:c=>c==1?0:c==0||c%100>1&&c%100<11?1:c%100>10&&c%100<20?2:3,20:c=>c==1?0:c==0||c%100>0&&c%100<20?1:2,21:c=>c%100==1?1:c%100==2?2:c%100==3||c%100==4?3:0,22:c=>c==1?0:c==2?1:(c<0||c>10)&&c%10==0?2:3};const yb=["v1","v2","v3"],bb=["v4"],hy={zero:0,one:1,two:2,few:3,many:4,other:5},Sb=()=>{const c={};return mb.forEach(t=>{t.lngs.forEach(i=>{c[i]={numbers:t.nr,plurals:gb[t.fc]}})}),c};class _b{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=i,this.logger=gd.create("pluralResolver"),(!this.options.compatibilityJSON||bb.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Sb(),this.pluralRulesCache={}}addRule(t,i){this.rules[t]=i}clearCache(){this.pluralRulesCache={}}getRule(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const s=Up(t==="dev"?"en":t),b=i.ordinal?"ordinal":"cardinal",M=JSON.stringify({cleanedCode:s,type:b});if(M in this.pluralRulesCache)return this.pluralRulesCache[M];let F;try{F=new Intl.PluralRules(s,{type:b})}catch{if(!t.match(/-|_/))return;const J=this.languageUtils.getLanguagePartFromCode(t);F=this.getRule(J,i)}return this.pluralRulesCache[M]=F,F}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,i);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(b=>`${i}${b}`)}getSuffixes(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,i);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((b,M)=>hy[b]-hy[M]).map(b=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${b}`):s.numbers.map(b=>this.getSuffix(t,b,i)):[]}getSuffix(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const b=this.getRule(t,s);return b?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${b.select(i)}`:this.getSuffixRetroCompatible(b,i):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,i){const s=t.noAbs?t.plurals(i):t.plurals(Math.abs(i));let b=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(b===2?b="plural":b===1&&(b=""));const M=()=>this.options.prepend&&b.toString()?this.options.prepend+b.toString():b.toString();return this.options.compatibilityJSON==="v1"?b===1?"":typeof b=="number"?`_plural_${b.toString()}`:M():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?M():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!yb.includes(this.options.compatibilityJSON)}}const py=function(c,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",b=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,M=jd(c,t,i);return!M&&b&&Rs(i)&&(M=im(c,i,s),M===void 0&&(M=im(t,i,s))),M},zp=c=>c.replace(/\$/g,"$$$$");class vy{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gd.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(i=>i),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:i,escapeValue:s,useRawValueToEscape:b,prefix:M,prefixEscaped:F,suffix:W,suffixEscaped:J,formatSeparator:ae,unescapeSuffix:Re,unescapePrefix:He,nestingPrefix:at,nestingPrefixEscaped:Bt,nestingSuffix:Sn,nestingSuffixEscaped:yn,nestingOptionsSeparator:xn,maxReplaces:sr,alwaysFormat:gr}=t.interpolation;this.escape=i!==void 0?i:fb,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=b!==void 0?b:!1,this.prefix=M?md(M):F||"{{",this.suffix=W?md(W):J||"}}",this.formatSeparator=ae||",",this.unescapePrefix=Re?"":He||"-",this.unescapeSuffix=this.unescapePrefix?"":Re||"",this.nestingPrefix=at?md(at):Bt||md("$t("),this.nestingSuffix=Sn?md(Sn):yn||md(")"),this.nestingOptionsSeparator=xn||",",this.maxReplaces=sr||1e3,this.alwaysFormat=gr!==void 0?gr:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(i,s)=>i&&i.source===s?(i.lastIndex=0,i):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,i,s,b){let M,F,W;const J=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},ae=Bt=>{if(Bt.indexOf(this.formatSeparator)<0){const sr=py(i,J,Bt,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(sr,void 0,s,{...b,...i,interpolationkey:Bt}):sr}const Sn=Bt.split(this.formatSeparator),yn=Sn.shift().trim(),xn=Sn.join(this.formatSeparator).trim();return this.format(py(i,J,yn,this.options.keySeparator,this.options.ignoreJSONStructure),xn,s,{...b,...i,interpolationkey:yn})};this.resetRegExp();const Re=b&&b.missingInterpolationHandler||this.options.missingInterpolationHandler,He=b&&b.interpolation&&b.interpolation.skipOnVariables!==void 0?b.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Bt=>zp(Bt)},{regex:this.regexp,safeValue:Bt=>this.escapeValue?zp(this.escape(Bt)):zp(Bt)}].forEach(Bt=>{for(W=0;M=Bt.regex.exec(t);){const Sn=M[1].trim();if(F=ae(Sn),F===void 0)if(typeof Re=="function"){const xn=Re(t,M,b);F=Rs(xn)?xn:""}else if(b&&Object.prototype.hasOwnProperty.call(b,Sn))F="";else if(He){F=M[0];continue}else this.logger.warn(`missed to pass in variable ${Sn} for interpolating ${t}`),F="";else!Rs(F)&&!this.useRawValueToEscape&&(F=sy(F));const yn=Bt.safeValue(F);if(t=t.replace(M[0],yn),He?(Bt.regex.lastIndex+=F.length,Bt.regex.lastIndex-=M[0].length):Bt.regex.lastIndex=0,W++,W>=this.maxReplaces)break}}),t}nest(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b,M,F;const W=(J,ae)=>{const Re=this.nestingOptionsSeparator;if(J.indexOf(Re)<0)return J;const He=J.split(new RegExp(`${Re}[ ]*{`));let at=`{${He[1]}`;J=He[0],at=this.interpolate(at,F);const Bt=at.match(/'/g),Sn=at.match(/"/g);(Bt&&Bt.length%2===0&&!Sn||Sn.length%2!==0)&&(at=at.replace(/'/g,'"'));try{F=JSON.parse(at),ae&&(F={...ae,...F})}catch(yn){return this.logger.warn(`failed parsing options string in nesting for key ${J}`,yn),`${J}${Re}${at}`}return F.defaultValue&&F.defaultValue.indexOf(this.prefix)>-1&&delete F.defaultValue,J};for(;b=this.nestingRegexp.exec(t);){let J=[];F={...s},F=F.replace&&!Rs(F.replace)?F.replace:F,F.applyPostProcessor=!1,delete F.defaultValue;let ae=!1;if(b[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(b[1])){const Re=b[1].split(this.formatSeparator).map(He=>He.trim());b[1]=Re.shift(),J=Re,ae=!0}if(M=i(W.call(this,b[1].trim(),F),F),M&&b[0]===t&&!Rs(M))return M;Rs(M)||(M=sy(M)),M||(this.logger.warn(`missed to resolve ${b[1]} for nesting ${t}`),M=""),ae&&(M=J.reduce((Re,He)=>this.format(Re,He,s.lng,{...s,interpolationkey:b[1].trim()}),M.trim())),t=t.replace(b[0],M),this.regexp.lastIndex=0}return t}}const Eb=c=>{let t=c.toLowerCase().trim();const i={};if(c.indexOf("(")>-1){const s=c.split("(");t=s[0].toLowerCase().trim();const b=s[1].substring(0,s[1].length-1);t==="currency"&&b.indexOf(":")<0?i.currency||(i.currency=b.trim()):t==="relativetime"&&b.indexOf(":")<0?i.range||(i.range=b.trim()):b.split(";").forEach(F=>{if(F){const[W,...J]=F.split(":"),ae=J.join(":").trim().replace(/^'+|'+$/g,""),Re=W.trim();i[Re]||(i[Re]=ae),ae==="false"&&(i[Re]=!1),ae==="true"&&(i[Re]=!0),isNaN(ae)||(i[Re]=parseInt(ae,10))}})}return{formatName:t,formatOptions:i}},Ih=c=>{const t={};return(i,s,b)=>{let M=b;b&&b.interpolationkey&&b.formatParams&&b.formatParams[b.interpolationkey]&&b[b.interpolationkey]&&(M={...M,[b.interpolationkey]:void 0});const F=s+JSON.stringify(M);let W=t[F];return W||(W=c(Up(s),b),t[F]=W),W(i)}};class my{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gd.create("formatter"),this.options=t,this.formats={number:Ih((i,s)=>{const b=new Intl.NumberFormat(i,{...s});return M=>b.format(M)}),currency:Ih((i,s)=>{const b=new Intl.NumberFormat(i,{...s,style:"currency"});return M=>b.format(M)}),datetime:Ih((i,s)=>{const b=new Intl.DateTimeFormat(i,{...s});return M=>b.format(M)}),relativetime:Ih((i,s)=>{const b=new Intl.RelativeTimeFormat(i,{...s});return M=>b.format(M,s.range||"day")}),list:Ih((i,s)=>{const b=new Intl.ListFormat(i,{...s});return M=>b.format(M)})},this.init(t)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=Ih(i)}format(t,i,s){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const M=i.split(this.formatSeparator);if(M.length>1&&M[0].indexOf("(")>1&&M[0].indexOf(")")<0&&M.find(W=>W.indexOf(")")>-1)){const W=M.findIndex(J=>J.indexOf(")")>-1);M[0]=[M[0],...M.splice(1,W)].join(this.formatSeparator)}return M.reduce((W,J)=>{const{formatName:ae,formatOptions:Re}=Eb(J);if(this.formats[ae]){let He=W;try{const at=b&&b.formatParams&&b.formatParams[b.interpolationkey]||{},Bt=at.locale||at.lng||b.locale||b.lng||s;He=this.formats[ae](W,Bt,{...Re,...b,...at})}catch(at){this.logger.warn(at)}return He}else this.logger.warn(`there was no format function for ${ae}`);return W},t)}}const US=(c,t)=>{c.pending[t]!==void 0&&(delete c.pending[t],c.pendingCount--)};class wb extends ip{constructor(t,i,s){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=i,this.services=s,this.languageUtils=s.languageUtils,this.options=b,this.logger=gd.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=b.maxParallelReads||10,this.readingCalls=0,this.maxRetries=b.maxRetries>=0?b.maxRetries:5,this.retryTimeout=b.retryTimeout>=1?b.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,b.backend,b)}queueLoad(t,i,s,b){const M={},F={},W={},J={};return t.forEach(ae=>{let Re=!0;i.forEach(He=>{const at=`${ae}|${He}`;!s.reload&&this.store.hasResourceBundle(ae,He)?this.state[at]=2:this.state[at]<0||(this.state[at]===1?F[at]===void 0&&(F[at]=!0):(this.state[at]=1,Re=!1,F[at]===void 0&&(F[at]=!0),M[at]===void 0&&(M[at]=!0),J[He]===void 0&&(J[He]=!0)))}),Re||(W[ae]=!0)}),(Object.keys(M).length||Object.keys(F).length)&&this.queue.push({pending:F,pendingCount:Object.keys(F).length,loaded:{},errors:[],callback:b}),{toLoad:Object.keys(M),pending:Object.keys(F),toLoadLanguages:Object.keys(W),toLoadNamespaces:Object.keys(J)}}loaded(t,i,s){const b=t.split("|"),M=b[0],F=b[1];i&&this.emit("failedLoading",M,F,i),!i&&s&&this.store.addResourceBundle(M,F,s,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2,i&&s&&(this.state[t]=0);const W={};this.queue.forEach(J=>{gh(J.loaded,[M],F),US(J,t),i&&J.errors.push(i),J.pendingCount===0&&!J.done&&(Object.keys(J.loaded).forEach(ae=>{W[ae]||(W[ae]={});const Re=J.loaded[ae];Re.length&&Re.forEach(He=>{W[ae][He]===void 0&&(W[ae][He]=!0)})}),J.done=!0,J.errors.length?J.callback(J.errors):J.callback())}),this.emit("loaded",W),this.queue=this.queue.filter(J=>!J.done)}read(t,i,s){let b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,F=arguments.length>5?arguments[5]:void 0;if(!t.length)return F(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:s,tried:b,wait:M,callback:F});return}this.readingCalls++;const W=(ae,Re)=>{if(this.readingCalls--,this.waitingReads.length>0){const He=this.waitingReads.shift();this.read(He.lng,He.ns,He.fcName,He.tried,He.wait,He.callback)}if(ae&&Re&&b<this.maxRetries){setTimeout(()=>{this.read.call(this,t,i,s,b+1,M*2,F)},M);return}F(ae,Re)},J=this.backend[s].bind(this.backend);if(J.length===2){try{const ae=J(t,i);ae&&typeof ae.then=="function"?ae.then(Re=>W(null,Re)).catch(W):W(null,ae)}catch(ae){W(ae)}return}return J(t,i,W)}prepareLoading(t,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),b&&b();Rs(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Rs(i)&&(i=[i]);const M=this.queueLoad(t,i,s,b);if(!M.toLoad.length)return M.pending.length||b(),null;M.toLoad.forEach(F=>{this.loadOne(F)})}load(t,i,s){this.prepareLoading(t,i,{},s)}reload(t,i,s){this.prepareLoading(t,i,{reload:!0},s)}loadOne(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),b=s[0],M=s[1];this.read(b,M,"read",void 0,void 0,(F,W)=>{F&&this.logger.warn(`${i}loading namespace ${M} for language ${b} failed`,F),!F&&W&&this.logger.log(`${i}loaded namespace ${M} for language ${b}`,W),this.loaded(t,F,W)})}saveMissing(t,i,s,b,M){let F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${s}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const J={...F,isUpdate:M},ae=this.backend.create.bind(this.backend);if(ae.length<6)try{let Re;ae.length===5?Re=ae(t,i,s,b,J):Re=ae(t,i,s,b),Re&&typeof Re.then=="function"?Re.then(He=>W(null,He)).catch(W):W(null,Re)}catch(Re){W(Re)}else ae(t,i,s,b,W,J)}!t||!t[0]||this.store.addResource(t[0],i,s,b)}}}const gy=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:c=>{let t={};if(typeof c[1]=="object"&&(t=c[1]),Rs(c[1])&&(t.defaultValue=c[1]),Rs(c[2])&&(t.tDescription=c[2]),typeof c[2]=="object"||typeof c[3]=="object"){const i=c[3]||c[2];Object.keys(i).forEach(s=>{t[s]=i[s]})}return t},interpolation:{escapeValue:!0,format:c=>c,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),yy=c=>(Rs(c.ns)&&(c.ns=[c.ns]),Rs(c.fallbackLng)&&(c.fallbackLng=[c.fallbackLng]),Rs(c.fallbackNS)&&(c.fallbackNS=[c.fallbackNS]),c.supportedLngs&&c.supportedLngs.indexOf("cimode")<0&&(c.supportedLngs=c.supportedLngs.concat(["cimode"])),c),Wp=()=>{},xb=c=>{Object.getOwnPropertyNames(Object.getPrototypeOf(c)).forEach(i=>{typeof c[i]=="function"&&(c[i]=c[i].bind(c))})};class Dh extends ip{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yy(t),this.services={},this.logger=gd,this.modules={external:[]},xb(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(){var t=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(Rs(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const b=gy();this.options={...b,...this.options,...yy(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...b.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const M=Re=>Re?typeof Re=="function"?new Re:Re:null;if(!this.options.isClone){this.modules.logger?gd.init(M(this.modules.logger),this.options):gd.init(null,this.options);let Re;this.modules.formatter?Re=this.modules.formatter:typeof Intl<"u"&&(Re=my);const He=new dy(this.options);this.store=new ly(this.options.resources,this.options);const at=this.services;at.logger=gd,at.resourceStore=this.store,at.languageUtils=He,at.pluralResolver=new _b(He,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Re&&(!this.options.interpolation.format||this.options.interpolation.format===b.interpolation.format)&&(at.formatter=M(Re),at.formatter.init(at,this.options),this.options.interpolation.format=at.formatter.format.bind(at.formatter)),at.interpolator=new vy(this.options),at.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},at.backendConnector=new wb(M(this.modules.backend),at.resourceStore,at,this.options),at.backendConnector.on("*",function(Bt){for(var Sn=arguments.length,yn=new Array(Sn>1?Sn-1:0),xn=1;xn<Sn;xn++)yn[xn-1]=arguments[xn];t.emit(Bt,...yn)}),this.modules.languageDetector&&(at.languageDetector=M(this.modules.languageDetector),at.languageDetector.init&&at.languageDetector.init(at,this.options.detection,this.options)),this.modules.i18nFormat&&(at.i18nFormat=M(this.modules.i18nFormat),at.i18nFormat.init&&at.i18nFormat.init(this)),this.translator=new Vp(this.services,this.options),this.translator.on("*",function(Bt){for(var Sn=arguments.length,yn=new Array(Sn>1?Sn-1:0),xn=1;xn<Sn;xn++)yn[xn-1]=arguments[xn];t.emit(Bt,...yn)}),this.modules.external.forEach(Bt=>{Bt.init&&Bt.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Wp),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Re=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Re.length>0&&Re[0]!=="dev"&&(this.options.lng=Re[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(Re=>{this[Re]=function(){return t.store[Re](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Re=>{this[Re]=function(){return t.store[Re](...arguments),t}});const J=Ru(),ae=()=>{const Re=(He,at)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),J.resolve(at),s(He,at)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return Re(null,this.t.bind(this));this.changeLanguage(this.options.lng,Re)};return this.options.resources||!this.options.initImmediate?ae():setTimeout(ae,0),J}loadResources(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wp;const b=Rs(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(b&&b.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const M=[],F=W=>{if(!W||W==="cimode")return;this.services.languageUtils.toResolveHierarchy(W).forEach(ae=>{ae!=="cimode"&&M.indexOf(ae)<0&&M.push(ae)})};b?F(b):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(J=>F(J)),this.options.preload&&this.options.preload.forEach(W=>F(W)),this.services.backendConnector.load(M,this.options.ns,W=>{!W&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(W)})}else s(null)}reloadResources(t,i,s){const b=Ru();return typeof t=="function"&&(s=t,t=void 0),typeof i=="function"&&(s=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),s||(s=Wp),this.services.backendConnector.reload(t,i,M=>{b.resolve(),s(M)}),b}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&cy.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let i=0;i<this.languages.length;i++){const s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,i){var s=this;this.isLanguageChangingTo=t;const b=Ru();this.emit("languageChanging",t);const M=J=>{this.language=J,this.languages=this.services.languageUtils.toResolveHierarchy(J),this.resolvedLanguage=void 0,this.setResolvedLanguage(J)},F=(J,ae)=>{ae?(M(ae),this.translator.changeLanguage(ae),this.isLanguageChangingTo=void 0,this.emit("languageChanged",ae),this.logger.log("languageChanged",ae)):this.isLanguageChangingTo=void 0,b.resolve(function(){return s.t(...arguments)}),i&&i(J,function(){return s.t(...arguments)})},W=J=>{!t&&!J&&this.services.languageDetector&&(J=[]);const ae=Rs(J)?J:this.services.languageUtils.getBestMatchFromCodes(J);ae&&(this.language||M(ae),this.translator.language||this.translator.changeLanguage(ae),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(ae)),this.loadResources(ae,Re=>{F(Re,ae)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?W(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(W):this.services.languageDetector.detect(W):W(t),b}getFixedT(t,i,s){var b=this;const M=function(F,W){let J;if(typeof W!="object"){for(var ae=arguments.length,Re=new Array(ae>2?ae-2:0),He=2;He<ae;He++)Re[He-2]=arguments[He];J=b.options.overloadTranslationOptionHandler([F,W].concat(Re))}else J={...W};J.lng=J.lng||M.lng,J.lngs=J.lngs||M.lngs,J.ns=J.ns||M.ns,J.keyPrefix!==""&&(J.keyPrefix=J.keyPrefix||s||M.keyPrefix);const at=b.options.keySeparator||".";let Bt;return J.keyPrefix&&Array.isArray(F)?Bt=F.map(Sn=>`${J.keyPrefix}${at}${Sn}`):Bt=J.keyPrefix?`${J.keyPrefix}${at}${F}`:F,b.t(Bt,J)};return Rs(t)?M.lng=t:M.lngs=t,M.ns=i,M.keyPrefix=s,M}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=i.lng||this.resolvedLanguage||this.languages[0],b=this.options?this.options.fallbackLng:!1,M=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const F=(W,J)=>{const ae=this.services.backendConnector.state[`${W}|${J}`];return ae===-1||ae===0||ae===2};if(i.precheck){const W=i.precheck(this,F);if(W!==void 0)return W}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||F(s,t)&&(!b||F(M,t)))}loadNamespaces(t,i){const s=Ru();return this.options.ns?(Rs(t)&&(t=[t]),t.forEach(b=>{this.options.ns.indexOf(b)<0&&this.options.ns.push(b)}),this.loadResources(b=>{s.resolve(),i&&i(b)}),s):(i&&i(),Promise.resolve())}loadLanguages(t,i){const s=Ru();Rs(t)&&(t=[t]);const b=this.options.preload||[],M=t.filter(F=>b.indexOf(F)<0&&this.services.languageUtils.isSupportedCode(F));return M.length?(this.options.preload=b.concat(M),this.loadResources(F=>{s.resolve(),i&&i(F)}),s):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new dy(gy());return i.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new Dh(t,i)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wp;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const b={...this.options,...t,isClone:!0},M=new Dh(b);return(t.debug!==void 0||t.prefix!==void 0)&&(M.logger=M.logger.clone(t)),["store","services","language"].forEach(W=>{M[W]=this[W]}),M.services={...this.services},M.services.utils={hasLoadedNamespace:M.hasLoadedNamespace.bind(M)},s&&(M.store=new ly(this.store.data,b),M.services.resourceStore=M.store),M.translator=new Vp(M.services,b),M.translator.on("*",function(W){for(var J=arguments.length,ae=new Array(J>1?J-1:0),Re=1;Re<J;Re++)ae[Re-1]=arguments[Re];M.emit(W,...ae)}),M.init(b,i),M.translator.options=b,M.translator.backendConnector.services.utils={hasLoadedNamespace:M.hasLoadedNamespace.bind(M)},M}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const kc=Dh.createInstance();kc.createInstance=Dh.createInstance;const Cb=kc.createInstance,Ob=kc.dir,VS=kc.init,zS=kc.loadResources,WS=kc.reloadResources,GS=kc.use,Tb=kc.changeLanguage,ap=kc.getFixedT,HS=kc.t,Ab=kc.exists,Rb=kc.setDefaultNamespace,KS=kc.hasLoadedNamespace,YS=kc.loadNamespaces,Pb=kc.loadLanguages;var by="EMPTY_GROUP",Sy="EMPTY_RULE_GROUP",_y="EMPTY_QUERY",om="EMPTY_CASE",Gp="NO_CONFIG_FOR_FIELD",Ey="NO_CONFIG_FOR_OPERATOR",Ib="FIXED_OPERATOR",wy="NO_CONFIG_FOR_FUNCTION",xy="INVALID_VALUE",sm="INVALID_FUNC_ARG_VALUE",um="UNSUPPORTED_FIELD_TYPE",lm="UNSUPPORTED_OPERATOR_FOR_FIELD",cm="INVALID_VALUE_SRC",op="INCOMPLETE_RULE",fm="INCOMPLETE_LHS",dm="INCOMPLETE_RHS",yh="BAD_MULTISELECT_VALUES",sp="BAD_SELECT_VALUE",Hp="INCORRECT_VALUE_TYPE",Cy="INCORRECT_VALUE_JS_TYPE",Oy="VALUE_LENGTH_CONSTRAINT_FAIL",hm="VALUE_MIN_CONSTRAINT_FAIL",pm="VALUE_MAX_CONSTRAINT_FAIL",Kp="NO_CONFIG_FOR_FIELD_VALUE",Ty="CANT_COMPARE_FIELD_WITH_ITSELF",Ay="CANT_COMPARE_FIELD_WITH_FIELD",Yp="INCORRECT_FIELD_TYPE",Ry="UNSUPPORTED_FUNCTION_FOR_FIELD",Py="REQUIRED_FUNCTION_ARG",up="INCORRECT_FUNCTION_RETURN_TYPE",vm="INVALID_RANGE",$d="ITEM_POSITION",mm="ITEM_POSITION_ROOT",Iy="ITEM_POSITION_WITH_INDEX_PATH",Dy="ITEM_POSITION_IN_CASE",gm="range",Mh,Db=(Mh={},tt(tt(tt(tt(tt(tt(tt(tt(tt(tt(Mh,by,"Empty group"),Sy,"No conditions for group field {{field}}"),_y,"Empty query"),om,"Empty case"),Gp,"No config for field {{field}}"),Ib,"Fixed operator {{from}} to {{to}} for field {{field}}"),Ey,"No config for operator {{operator}}"),wy,"No config for function {{funcKey}}"),xy,"Invalid value"),sm,"Invalid value of arg {{argName}} for func {{funcName}}: {{argValidationError}}"),tt(tt(tt(tt(tt(tt(tt(tt(tt(tt(Mh,um,"Type of field {{field}} is not supported"),lm,"Operator {{operator}} is not supported for field {{field}}"),op,"Incomplete rule"),fm,"Incomplete LHS"),dm,"Incomplete RHS"),cm,"Invalid value src {{valueSrcs, list}}"),yh+"_one","Value {{badValues, list}} is not in the list of allowed values"),yh+"_other","Values {{badValues, list}} are not in the list of allowed values"),sp,"Value {{value}} is not in the list of allowed values"),Hp,"Value should have type {{wType}}, but got value of type {{valueType}}"),tt(tt(tt(tt(tt(tt(tt(tt(tt(tt(Mh,Cy,"Value should have JS type {{jsType}}, but got value of type {{valueTypeof}}"),Oy,"Value {{value}} should have max length {{fieldSettings.maxLength}} but got {{length}}"),hm,"Value {{value}} should be greater than or equal to {{fieldSettings.min}}"),hm+"_"+gm,"Value {{value}} should be from {{fieldSettings.min}} to {{fieldSettings.max}}"),pm,"Value {{value}} should be less than or equal to {{fieldSettings.max}}"),pm+"_"+gm,"Value {{value}} should be from {{fieldSettings.min}} to {{fieldSettings.max}}"),Kp,"No config for field {{field}}"),Ty,"Can't compare field {{field}} with itself"),Ay,"Can't compare field {{leftField}} with {{rightField}}"),Yp,"Field {{field}} is of type {{type}}, but expected {{expected}}"),tt(tt(tt(tt(tt(tt(tt(tt(tt(tt(Mh,Ry,"Unsupported function {{funcKey}} for field {{field}}"),Py,"Value of arg {{argName}} for func {{funcName}} is required"),up,"Function {{funcKey}} should return value of type {{returnType}}, but got {{valueType}}"),vm,"Invalid range"),mm,"Root"),$d+"__rule","Leaf #{{globalLeafNo}}"),$d+"__group","Group #{{globalGroupNo}}"),$d+"__rule_group","Rule-group #{{globalNoByType}}"),$d+"__case_group","Case #{{globalNoByType}}"),$d+"__rule__deleted","Deleted leaf #{{globalLeafNo}}"),tt(tt(tt(tt(tt(Mh,$d+"__group__deleted","Deleted group #{{globalGroupNo}}"),$d+"__rule_group__deleted","Deleted rule-group #{{globalNoByType}}"),$d+"__case_group__deleted","Deleted case #{{globalNoByType}}"),Dy,"{{str}} in case #{{caseNo}}"),Iy,"{{str}} (index path: {{indexPath, list}})")),My="raqbvalidation",Mb="".concat(My,":"),th=kc.createInstance();th.init({fallbackLng:"en"}),th.addResources("en",My,Db);var gf=function(t,i){return t!=null&&t.str?t.str:t!=null&&t.key?gf(t.key,t.args):i===null?t:th.t(t.includes(":")?t:Mb+t,i)};const ky=th;function lp(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function bh(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?lp(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):lp(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var kh=function(t,i){var s,b,M,F,W=t.validateValue,J=t.validateRange,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Re=arguments.length>3?arguments[3]:void 0,He=arguments.length>4?arguments[4]:void 0,at=arguments.length>5?arguments[5]:void 0,Bt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,Sn=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,yn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,xn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1;ae||(ae=i);var sr=i.settings,gr=sr.keepInputOnChangeFieldSrc,Vr=sr.convertableWidgets,Dr=sr.clearValueOnChangeField,li=sr.clearValueOnChangeOp,oi=He=="!case_value",Ei=Re.get("field");!Ei&&oi&&(Ei=He);var sa=Re.get("fieldType"),Ki=Re.get("fieldSrc"),Bi=Re.get("operator"),qi=Re.get("value"),oa=Re.get("valueSrc",new vo.List),zi=Re.get("valueType",new vo.List),va=Re.get("valueError",new vo.List),ba=Re.get("asyncListValues"),fa=oi,ga=nu(ae,Bi),da=nu(i,at,He),Ca=oi?1:Bi?Mu(ga):null,xa=oi?1:at?Mu(da):null,Aa=as(ae,Ei),ka=as(i,He),Wa=!Ei&&sa&&gr,ho=Aa?.type||sa,mo=ka?.type||!He&&Wa&&ho,Za=Aa?.listValuesType,is=ka?.listValuesType,Io=((s=Ei)===null||s===void 0||(b=s.get)===null||b===void 0?void 0:b.call(s,"func"))||Ei,Ja=((M=He)===null||M===void 0||(F=M.get)===null||F===void 0?void 0:F.call(M,"func"))||He,Vo=Ja!=Io,Wo=[],No=(Ei||Wa)&&(Bi&&at||fa)&&qi!=null;(!(ho&&mo&&ho==mo)||Bt==="field"&&Vo&&Dr||Bt==="operator"&&li)&&(No=!1),Vo&&ff.includes(mo)&&(is&&is===Za||(No=!1)),!fa&&(!(qi!=null&&qi.size)&&xa||qi!=null&&qi.size&&!xa)&&(No=!1);var os;if(Ki==="func"&&He){var Jo=W(i,null,null,at,He,mo,Ki,ba,Sn,yn,xn),ps=Mt(Jo,2),Ps=ps[0],Ss=ps[1],xs=!(Ss!=null&&Ss.length),Gu=Ps!==He,Cu=!xs&&Gu&&!Ss.find(function(Hl){return!Hl.fixed}),Fu=Sn&&!xs&&!Cu&&!!Bt&&He!==Ei,eu=!1;if(eu?He=null:Fu?He=Ei:Gu&&(He=Ps),!xs){var ll=!xs&&!Cu&&!eu&&!Fu,Yu=Ss.find(function(Hl){return!Hl.fixed&&!Hl.ignore});ll&&Yu&&(os=gf(Yu)),Ss.map(function(Hl){return Wo.push(bh(bh({side:"lhs"},Hl),{},{fixed:Hl.fixed||Fu||eu}))})}}for(var rc=0;rc<xa;rc++){var pl=oa.get(rc)||null,Wl=ku(ae,Ei,Bi,pl),ic=ku(i,He,at,pl),ju=pl==="value"?Wl:ku(ae,Ei,Bi,"value"),Hc=pl==="value"?ic:ku(i,He,at,"value"),Ed=Hc==ju||(Vr[ju]||[]).includes(Hc)||!ju&&Wa;Ed||(No=!1)}Bi!=at&&[Bi,at].includes("proximity")&&(No=!1);var _u=oa.first(),Gl=Xu(i,He,at,null,_u),yc=Oh(i,He,at,null);!He&&Wa&&(yc=Object.keys(i.settings.valueSourcesInfo));var ed=yc[0],Pu;xa===1&&Gl&&Gl.type!==void 0?Pu=Gl.type:xa===1&&ka&&ka.type!==void 0&&(Pu=ka.type==="!group"?"number":ka.type);var td=No&&Bt==="operator"&&Ca===1&&xa===2,Iu=[],sf=[],nd=[],Hd=Array.from({length:xa},function(){return null});if(No)for(var Qm=function(Hu){var Kl=qi.get(Hu),bp=zi.get(Hu)||null,Kc=oa.get(Hu)||null;td&&Hu===1&&(Kl=Iu[0]!==void 0?Iu[0]:qi.get(0),Iu[Hu]=Kl,bp=zi.get(0)||null,Kc=oa.get(0)||null);var I0=Kc?yc.find(function(Cd){return Cd==Kc})!==void 0:!0,D0=W(i,He,He,at,Kl,bp,Kc,ba,Sn,yn,xn),xv=Mt(D0,2),ng=xv[0],Bc=xv[1],Cv=!(Bc!=null&&Bc.length),Yl=ng!==Kl,xd=!Cv&&Yl&&!(Bc!=null&&Bc.find(function(Cd){return!Cd.fixed})),rg=!(Bc!=null&&Bc.find(function(Cd){return!Cd.fixed&&!Cd.ignore})),pE=!I0||Sn&&!Cv&&!xd&&(!rg||Vo);Cv||Bc?.map(function(Cd){return Wo.push(bh(bh({side:"rhs",delta:Hu},Cd),{},{fixed:Cd.fixed||pE}))}),pE&&(Iu[Hu]=null,Hu===0&&delete Iu[1]);var wO=!Cv&&!Yl,vE=Bc?.find(function(Cd){return!Cd.fixed&&!Cd.ignore});wO&&vE&&(Hd[Hu]=gf(vE)),Yl&&(Iu[Hu]=ng),td&&Hu===0&&!Cv&&!Yl&&(td=!1),td&&Hu===0&&["func","field"].includes(Kc)&&(td=!1)},yp=0;yp<xa;yp++)Qm(yp);if(!No){for(var wv=0;wv<xa;wv++)if(xa===1){var qm,eg,oh=$c([ka?.defaultValue,ka==null||(qm=ka.fieldSettings)===null||qm===void 0?void 0:qm.defaultValue,Gl?.defaultValue]);Iu[wv]=oh,(oh!=null&&oh.func||oh!=null&&(eg=oh.get)!==null&&eg!==void 0&&eg.call(oh,"func"))&&(sf[wv]="func")}}for(var jc=0;jc<xa;jc++){var tg=No&&oa.get(jc)||null,Bu=No&&zi.get(jc)||null,Ts=Iu[jc]!==void 0?Iu[jc]:No?qi.get(jc):void 0;if(No&&td&&jc===1){var Cs,Ws;tg=(Cs=sf[jc])!==null&&Cs!==void 0?Cs:oa.get(0),Bu=(Ws=nd[jc])!==null&&Ws!==void 0?Ws:zi.get(0),sf[jc]=tg,nd[jc]=Bu}var Xs=yc.includes(tg);Xs||(sf[jc]=ed),Bu||(nd[jc]=Pu),Ts!=null&&Ts.func&&(Iu[jc]=Qc(Ts),sf[jc]="func")}var mu=qi;(Iu.length>0||!No||xa<Ca)&&(mu=new vo.List(Array.from({length:xa},function(Hl,Hu){return Iu[Hu]!==void 0?Iu[Hu]:No?qi.get(Hu):void 0})));var Nl=oa;(sf.length>0||!No||xa<Ca)&&(Nl=new vo.List(Array.from({length:xa},function(Hl,Hu){var Kl;return(Kl=sf[Hu])!==null&&Kl!==void 0?Kl:No&&oa.get(Hu)||null})));var vl=zi;(nd.length>0||!No||xa<Ca)&&(vl=new vo.List(Array.from({length:xa},function(Hl,Hu){var Kl;return(Kl=nd[Hu])!==null&&Kl!==void 0?Kl:No&&zi.get(Hu)||null})));var bc=J(i,He,at,mu,Nl);if(bc){var Sc=gf(bc),_c=Sn&&xa>=2,rd=mu;_c&&(Iu[1]=mu.get(0),mu=mu.set(1,Iu[1]),Hd[1]=Hd[0]);var Du=!_c;Du&&Hd.push(Sc),Wo.push(bh(bh({side:"rhs",delta:-1},bc),{},{fixed:_c,fixedFrom:_c?[rd.get(0),rd.get(1)]:void 0,fixedTo:_c?[mu.get(0),mu.get(1)]:void 0}))}var wd=va,jf=va?.size!==Hd.length||Hd.filter(function(Hl,Hu){return Hl!=va.get(Hu)}).length>0;return jf&&(wd=new vo.List(Hd)),{canReuseValue:No,newValue:mu,newValueSrc:Nl,newValueType:vl,operatorCardinality:xa,fixedField:He,newValueError:wd,newFieldError:os,validationErrors:Wo}};function kb(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Ly(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Ly(c,t){if(c){if(typeof c=="string")return Ny(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ny(c,t):void 0}}function Ny(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Fy(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Jp(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Fy(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Fy(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Ud=function(t,i){if(!(t==null||t==""))return $u(t)?Jp(Jp({},t),{},{title:t.title||t.value}):{value:t,title:i!==void 0?i:""+t}},ym=function(t){var i=Ud(t);return $u(i)?Jp(Jp({},Ud(t)),{},{isCustom:!0}):i},Zp=function(t){if(Array.isArray(t))return t.map(function(M){return Ud(M)});if(!$u(t))return t;var i=[];for(var s in t){var b=t[s];i.push(Ud(s,b))}return i},cp=function(t,i){if(Array.isArray(t)){var s=t.map(function(b){return Ud(b)});return s.find(function(b){return""+b.value==""+i})}else return t[i]!==void 0?Ud(i,t[i]):void 0},bm=function(t,i){if(t==null)return i;var s=cp(t,i);return s!==void 0?s.title:i},jy=function(t,i){if(t==null)return i;var s=cp(t,i);return s!==void 0?s.value:i},Sm=function(t,i){var s=[];if(Array.isArray(t)){var b=kb(t),M;try{for(b.s();!(M=b.n()).done;){var F=M.value,W=i(Ud(F));W!=null&&s.push(W)}}catch(Re){b.e(Re)}finally{b.f()}}else for(var J in t){var ae=i(Ud(J,t[J]));ae!=null&&s.push(ae)}return s},_m=function(t,i){return Sm(i,function(s){return"".concat(s.value).indexOf(t)!=-1||s.title.indexOf(t)!=-1?s:null}).filter(function(s){return s!==null}).shift()},Xp=function(t,i){return Sm(i,function(s){return""+s.value==""+t?s:null}).filter(function(s){return s!==null}).shift()};function Em(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function kl(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Em(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Em(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var By=function(t,i){return fp(t,i).length===0},fp=function(t,i){var s=i.settings.showErrorMessage,b=[];function M(F,W,J){var ae,Re,He=F.get("id"),at=F.get("children1"),Bt=F.getIn(["properties","valueError"]),Sn=F.getIn(["properties","fieldError"]),yn=F.getIn(["properties","field"]),xn=(ae=yn==null||(Re=yn.get)===null||Re===void 0?void 0:Re.call(yn,"func"))!==null&&ae!==void 0?ae:yn,sr=Bt?.size>0&&Bt.filter(function(Vr){return Vr!=null}).size>0,gr=sr||!!Sn;gr&&s&&b.push(xn),at&&at.map(function(Vr,Dr){Vr&&M(Vr,W.concat(He),J+1)})}return t&&M(t,[],0),Array.from(new Set(b))},wm=function(t,i){var s=vf(i,void 0,!0),b={removeEmptyGroups:i.settings.removeEmptyGroupsOnLoad,removeIncompleteRules:i.settings.removeIncompleteRulesOnLoad,removeEmptyRules:i.settings.removeEmptyRulesOnLoad,forceFix:!1},M=Lh(t,null,s,s,b),F=M.fixedTree,W=M.allErrors,J=M.isSanitized;return J&&W.length&&console.warn("Tree check errors: ",W),F},Lc=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=vf(i,void 0,!0),M=kl(kl({},s),{},{removeEmptyGroups:!1,removeEmptyRules:!1,removeIncompleteRules:!1,forceFix:!1}),F=Lh(t,null,b,b,M),W=F.allErrors;return W},$y=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=vf(i,void 0,!0),M=kl({removeEmptyGroups:!0,removeEmptyRules:!0,removeIncompleteRules:!0,forceFix:!1},s),F=Lh(t,null,b,b,M),W=F.fixedTree,J=F.fixedErrors,ae=F.nonFixedErrors,Re=F.allErrors;return{fixedTree:W,fixedErrors:J,nonFixedErrors:ae,allErrors:Re}},xm=function(t,i,s,b,M,F,W){M===void 0&&(M=s.settings.removeEmptyGroupsOnLoad),F===void 0&&(F=s.settings.removeEmptyRulesOnLoad),W===void 0&&(W=s.settings.removeIncompleteRulesOnLoad);var J={removeEmptyGroups:M,removeEmptyRules:F,removeIncompleteRules:W,forceFix:!1},ae=Lh(t,i,s,b,J),Re=ae.fixedTree,He=ae.allErrors,at=ae.fixedErrors,Bt=ae.nonFixedErrors,Sn=ae.isSanitized;return Sn&&at.length&&console.warn("Fixed tree errors: ",at),Re=Uu(Re),Re},Lh=function(t,i,s,b,M){if(!t)return{fixedTree:t,allErrors:[],fixedErrors:[],nonFixedErrors:[],isSanitized:!1};var F=M||{},W=F.removeEmptyGroups,J=F.removeEmptyRules,ae=F.removeIncompleteRules,Re=F.forceFix,He=F.translateErrors,at=He===void 0?!0:He,Bt=F.includeStringifiedItems,Sn=Bt===void 0?!0:Bt,yn=F.stringifyFixedItems,xn=yn===void 0?!1:yn,sr=F.stringifyItemsUserFriendly,gr=sr===void 0?!0:sr,Vr=F.includeItemsPositions,Dr=Vr===void 0?!0:Vr,li={config:s,oldConfig:b,removeEmptyGroups:W,removeEmptyRules:J,removeIncompleteRules:ae,forceFix:Re},oi={errors:{}},Ei=Vy(t,[],null,oi,li),sa=oi.sanitized,Ki=[],Bi,qi;Dr&&(Bi=uh(Ei,s).items);for(var oa in oi.errors){var zi=oi.errors[oa],va=zi.path,ba=zi.errors;at&&(ba=ba.map(function(xs){return kl(kl({},xs),{},{str:gf(xs)})}));var fa={path:va,errors:ba};if(Sn){var ga=sc(xn?Ei:t,va),da=va.length===1;if(!da&&ga.get("type")!=="group"){var Ca=!0,xa=gr,Aa=Lg(ga,s,xa,Ca);fa.itemStr=Aa}}if(Dr){var ka=Bi[oa],Wa=!ka;if(Wa&&(qi||(qi=uh(t,s).items),ka=qi[oa]),ka){var ho=kl(kl({},ka.position),{},{index:ka.index,type:ka.type,isDeleted:Wa});fa.itemPosition=ho;var mo=ka.index?$d+"__"+ka.type+(Wa?"__deleted":""):mm,Za=kl({},ho);if(gr){for(var is,Io=0,Ja=["caseNo","globalLeafNo","globalGroupNo","globalNoByType"];Io<Ja.length;Io++){var Vo=Ja[Io];Za[Vo]!=null&&(Za[Vo]=Za[Vo]+1)}Za.indexPath=(is=ho.indexPath)===null||is===void 0?void 0:is.map(function(xs){return xs+1})}fa.itemPositionStr=gf(mo,Za),ka.index&&(ka.caseId&&ka.type!=="case_group"&&(fa.itemPositionStr=gf(Dy,kl(kl({},Za),{},{str:fa.itemPositionStr}))),ka.type!=="case_group"&&(fa.itemPositionStr=gf(Iy,kl(kl({},Za),{},{str:fa.itemPositionStr}))))}}Ki.push(fa)}for(var Wo=[],No=[],os=0,Jo=Ki;os<Jo.length;os++){var ps=Jo[os],Ps=ps.errors.filter(function(xs){return!!xs.fixed}),Ss=ps.errors.filter(function(xs){return!xs.fixed&&xs.key!=="EMPTY_QUERY"});Ps.length&&Wo.push(kl(kl({},ps),{},{errors:Ps})),Ss.length&&No.push(kl(kl({},ps),{},{errors:Ss}))}return{fixedTree:Ei,allErrors:Ki,fixedErrors:Wo,nonFixedErrors:No,isSanitized:sa}};function nh(c,t,i,s){var b=t.get("id");c.errors[b]||(c.errors[b]={path:[].concat($t(i),[b]),errors:[]}),c.errors[b].errors.push(s)}function Uy(c,t){var i=t.get("id");c.errors[i]&&c.errors[i].errors.map(function(s){s.fixed=!0})}function Vy(c,t,i,s,b){var M=c?.get("type");return M==="group"||M==="rule_group"||M=="case_group"||M=="switch_group"?Lb(c,t,i,s,b):M==="rule"?zy(c,t,i,s,b):c}function Lb(c,t,i,s,b){var M,F,W,J,ae,Re,He=b.removeEmptyGroups,at=b.removeIncompleteRules,Bt=b.forceFix,Sn=b.config,yn=Sn.settings.showErrorMessage,xn=!yn||Bt,sr=c.get("id"),gr=c.get("children1"),Vr=!t.length,Dr=gr,li=c.get("type"),oi=c.get("properties"),Ei=oi?.get("field"),sa=oi?.get("mode"),Ki=oi==null||(M=oi.get)===null||M===void 0?void 0:M.call(oi,"operator"),Bi=li==="rule_group"&&sa==="array",qi=li==="case_group",oa=qi&&gr==null,zi=Ki?(F=(W=Sn.operators[Ki])===null||W===void 0?void 0:W.cardinality)!==null&&F!==void 0?F:1:void 0,va=qi?!oa:Bi?zi==0:He,ba=Bi||qi;!sr&&i&&(sr=i,c=c.set("id",sr),s.sanitized=!0),ba&&(c=zy(c,t,i,s,b));var fa={errors:{}};gr=(J=gr)===null||J===void 0?void 0:J.map(function(Aa,ka){return Vy(Aa,t.concat(sr),ka,fa,b)});var ga=(ae=gr)===null||ae===void 0?void 0:ae.filter(function(Aa){return Aa!=null});He&&(gr=ga);var da=fa.sanitized||Dr?.size!=((Re=gr)===null||Re===void 0?void 0:Re.size),Ca=!(ga!=null&&ga.size),xa=He&&!Vr;return Bi&&Ei&&(xa=at),Ca&&va&&(nh(s,c,t,{key:Vr?_y:qi?om:Bi?Sy:by,args:{field:Ei},fixed:xa}),xa&&(Uy(s,c),c=void 0)),da&&(s.sanitized=!0),da&&c&&(c=c.set("children1",gr)),s.errors=kl(kl({},s.errors),fa?.errors||{}),c}function zy(c,t,i,s,b){var M=b.removeIncompleteRules,F=b.removeEmptyRules,W=b.forceFix,J=b.config,ae=b.oldConfig,Re=J.settings.showErrorMessage,He=!Re||W,at=c,Bt=c.get("id"),Sn=c.get("type"),yn=Sn==="case_group",xn=c.get("properties");if(!xn)if(yn)xn=new vo.Map;else{var sr={key:op,args:{},fixed:M||F};nh(s,c,t,sr);return}var gr=xn.get("field")||null;yn&&(gr="!case_value");var Vr=xn.get("fieldSrc")||null,Dr=xn.get("operator")||null,li=xn.get("operatorOptions"),oi=xn.get("valueSrc"),Ei=xn.get("value"),sa=xn.get("valueError"),Ki=xn.get("fieldError"),Bi=function(){var Jo,ps;return{field:((Jo=gr)===null||Jo===void 0||(ps=Jo.toJS)===null||ps===void 0?void 0:ps.call(Jo))||gr,fieldSrc:Vr,operator:Dr,operatorOptions:li?li.toJS():{},valueSrc:oi?oi.toJS():null,value:Ei?Ei.toJS():null,valueError:sa?sa.toJS():null,fieldError:Ki||null}},qi=Bi();!Bt&&i&&(Bt=i,c=c.set("id",Bt),s.sanitized=!0);var oa=gr?as(J,gr):null;gr&&!oa&&(nh(s,c,t,{key:Gp,args:{field:gr},side:"lhs",fixed:M||F}),gr=null),gr==null&&!yn&&(xn=["operator","operatorOptions","valueSrc","value","valueError","fieldError","field"].reduce(function(os,Jo){return os.delete(Jo)},xn),Dr=null),!Vr&&gr&&!yn&&(Vr=Tl(gr),xn=xn.set("fieldSrc",Vr)),(Dr==="range_between"||Dr==="range_not_between")&&(Dr=Dr==="range_between"?"between":"not_between",xn=xn.set("operator",Dr));var zi=Dr?nu(J,Dr,gr):null;Dr&&!zi&&(nh(s,c,t,{key:Ey,args:{operator:Dr},side:"op",fixed:M||F}),Dr=null);var va=gr?Vf(J,gr):[];gr&&!yn&&(va!=null&&va.length?Dr&&va.indexOf(Dr)==-1&&(Dr==="is_empty"||Dr==="is_not_empty"?(Dr=Dr==="is_empty"?"is_null":"is_not_null",xn=xn.set("operator",Dr)):(nh(s,c,t,{key:lm,args:{operator:Dr,field:gr},side:"lhs",fixed:M||F}),Dr=null)):(nh(s,c,t,{key:um,args:{field:gr},side:"lhs",fixed:M||F}),Dr=null)),Dr==null&&!yn&&(xn=["operatorOptions","valueSrc","value","valueError"].reduce(function(os,Jo){return os.delete(Jo)},xn)),li=xn.get("operatorOptions"),!Dr||li&&!zi.options?(li=null,xn=xn.delete("operatorOptions")):Dr&&!li&&zi.options&&(li=Pd(J,Dr,gr),xn=xn.set("operatorOptions",li)),oi=xn.get("valueSrc"),Ei=xn.get("value");var ba=!0,fa=kh({validateValue:yd,validateRange:rh},J,ae,xn,gr,Dr,null,He,ba),ga=fa.newValue,da=fa.newValueSrc,Ca=fa.newValueError,xa=fa.validationErrors,Aa=fa.newFieldError,ka=fa.fixedField;Ei=ga,oi=da,sa=Ca,Ki=Aa,gr=ka,xn=xn.set("field",gr),xn=xn.set("value",Ei),xn=xn.set("valueSrc",oi),Re?xn=xn.set("valueError",sa).set("fieldError",Ki):xn=xn.delete("valueError").delete("fieldError");var Wa=Bi(),ho=!hc(qi,Wa),mo=Th(xn.toObject(),J),Za=yn?mo.parts.value:mo.score>=3;if(ho&&(s.sanitized=!0,c=c.set("properties",xn)),xa?.map(function(os){return nh(s,c,t,os)}),!Za&&!yn){var is=mo.score?M:F,Io={key:op,args:{}};if(!mo.parts.field)Io.key=fm,Io.side="lhs";else if(!mo.parts.value){var Ja,Vo,Wo,No;Io.key=dm,Io.side="rhs",(Ja=Wa.valueSrc)!==null&&Ja!==void 0&&Ja[0]&&((Vo=Wa.valueSrc)===null||Vo===void 0?void 0:Vo[0])!=((Wo=qi.valueSrc)===null||Wo===void 0?void 0:Wo[0])&&((No=Wa.value)===null||No===void 0?void 0:No[0])!=null&&(Io.key=cm,Io.args={valueSrcs:Wa.valueSrc})}Io.fixed=is,nh(s,c,t,Io),is&&(Uy(s,c),c=void 0)}return c}var yd=function(t,i,s,b,M,F,W,J){var ae=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,Re=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1,He=arguments.length>10&&arguments[10]!==void 0?arguments[10]:!1,at=[],Bt=M;if(M!=null){var Sn,yn,xn,sr;if(W==="field"){var gr=jb(i,s,M,W,F,J,t,b,ae,Re),Vr=Mt(gr,2);Bt=Vr[0],at=Vr[1]}else if(W==="func"){var Dr=Bb(i,s,M,W,F,J,t,b,ae,Re,He),li=Mt(Dr,2);Bt=li[0],at=li[1]}else if(W==="value"||!W){var oi=Fb(s,M,W,F,J,t,b,ae,Re),Ei=Mt(oi,2);Bt=Ei[0],at=Ei[1]}var sa=!((Sn=at)!==null&&Sn!==void 0&&Sn.find(function(ho){return!ho.fixed})),Ki=!!s&&!["field","func"].includes(W)&&(!((yn=at)!==null&&yn!==void 0&&yn.length)||sa);if(Ki){var Bi=ku(t,s,b,W),qi=b?nu(t,b,s):null,oa=Xu(t,s,b,Bi,W,{forExport:!0}),zi=W==="field"?as(t,M):null,va=oa,ba=oa.validateValue;if(typeof ba=="function"){var fa=[Bt,va,b,qi];W==="field"&&fa.push(zi);var ga=ba.call.apply(ba,[t.ctx].concat(fa));if(Te(ga)==="object"&&ga!==null&&!Array.isArray(ga)){var da,Ca;(da=ga.error)!==null&&da!==void 0&&da.key?Ca=kl({},ga.error):Ca={key:ga.error,args:null},ga.fixedValue!==void 0&&ae&&(Ca.fixed=!0,Ca.fixedFrom=Bt,Ca.fixedTo=ga.fixedValue,Bt=ga.fixedValue),at.push(Ca)}else typeof ga=="boolean"?ga==!1&&at.push({key:xy,args:{}}):typeof ga=="string"&&at.push({key:ga,args:null})}}if(sa=!((xn=at)!==null&&xn!==void 0&&xn.find(function(ho){return!ho.fixed})),(sr=at)!==null&&sr!==void 0&&sr.length&&!sa&&ae){var xa=as(t,s),Aa=xa?.fieldSettings,ka=Aa?.defaultValue;if(ka!==void 0){var Wa=at[at.length-1];Wa.fixed=!0,Wa.fixedFrom=Bt,Wa.fixedTo=ka,Bt=ka,at.map(function(ho){ho.fixed=!0})}}}return[Bt,at]},Nb=function(t,i,s,b,M){var F=vo.List.isList(t)?t.toJS():t instanceof Array?$t(t):void 0,W=t,J=[];if(F){var ae=F.reduce(function(xn,sr){var gr=Mt(xn,2),Vr=gr[0],Dr=gr[1],li=cp(i,sr);return li==null?[Vr,[].concat($t(Dr),[sr])]:[[].concat($t(Vr),[li.value]),Dr]},[[],[]]),Re=Mt(ae,2),He=Re[0],at=Re[1],Bt=at.length>0;if(s=s||M===!0,W=s&&Bt?He:t,at.length){var Sn=s&&Bt;J.push({key:yh,args:{badValues:at,count:at.length},fixed:Sn,fixedFrom:Sn?F:void 0,fixedTo:Sn?W:void 0})}return[W,J]}else{var yn=cp(i,t);return yn==null?(W=s?null:t,J.push({key:sp,args:{value:t},fixed:s,fixedFrom:s?t:void 0,fixedTo:s?W:void 0})):W=yn.value,[W,J]}},Fb=function(t,i,s,b,M,F){var W=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,ae=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,Re=[],He=i;if(t){var at=as(F,t),Bt=ku(F,t,W,s),Sn=F.widgets[Bt],yn=Sn?.type,xn=Sn?.jsType,sr=at?.fieldSettings,gr=sr?.treeValues||sr?.listValues,Vr=!!(sr!=null&&sr.asyncFetch),Dr=gr||Vr;if(b&&yn&&b!=yn)return Re.push({key:Hp,args:{wType:yn,valueType:b}}),[i,Re];if(xn&&!ml(i,xn)&&!Dr)return Re.push({key:Cy,args:{jsType:xn,valueTypeof:wc(i)}}),[i,Re];if(sr){var li=M||gr;if(li&&!sr.allowCustomValues&&Bt!=="case_value"){var oi=Nb(i,li,J,ae,F.settings.removeInvalidMultiSelectValuesOnLoad),Ei=Mt(oi,2);He=Ei[0],Re=Ei[1]}sr.maxLength>0&&i!=null&&String(i).length>sr.maxLength&&(He=J?String(i).substring(0,sr.maxLength):i,Re.push({key:Oy,args:{value:i,length:String(i).length,fieldSettings:sr},fixed:J,fixedFrom:J?i:void 0,fixedTo:J?He:void 0}));var sa=sr.min!=null&&sr.max!=null?gm:void 0;sr.min!=null&&i<sr.min&&(He=J?sr.min:i,Re.push({key:hm,args:{value:i,fieldSettings:sr,context:sa},fixed:J,fixedFrom:J?i:void 0,fixedTo:J?He:void 0})),sr.max!=null&&i>sr.max&&(He=J?sr.max:i,Re.push({key:pm,args:{value:i,fieldSettings:sr,context:sa},fixed:J,fixedFrom:J?i:void 0,fixedTo:J?He:void 0}))}}return[He,Re]},jb=function(t,i,s,b,M,F,W){var J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,ae=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,Re=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1,He=[],at=W.settings,Bt=at.fieldSeparator,Sn=at.canCompareFieldWithField,yn=Te(i)=="object"&&i?._isFuncArg,xn=Array.isArray(t)?t.join(Bt):t,sr=as(W,t),gr=Array.isArray(s)?s.join(Bt):s,Vr=as(W,s);if(!Vr)return He.push({key:Kp,args:{field:gr}}),[s,He];if(t&&gr===xn&&!yn)return He.push({key:Ty,args:{field:xn}}),[s,He];if(M&&M!=Vr.type)return He.push({key:Yp,args:{field:gr,type:Vr.type,expected:M}}),[s,He];if(t&&!yn&&Sn){var Dr=Sn(xn,sr,gr,Vr,J);if(!Dr)return He.push({key:Ay,args:{leftField:xn,rightField:gr}}),[s,He]}return[s]},Bb=function(t,i,s,b,M,F,W){var J,ae,Re=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,He=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1,at=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1,Bt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:!1,Sn=s,yn=[];if(!s)return[s];var xn=(J=s.get)===null||J===void 0?void 0:J.call(s,"func");if(!xn)return[s];var sr=as(W,i);if(sr!=null&&sr.funcs&&!sr.funcs.includes(xn))return yn.push({key:Ry,args:{funcKey:xn,field:i}}),[s,yn];var gr=wu(W,xn);if(!gr)return yn.push({key:wy,args:{funcKey:xn}}),[s,yn];var Vr=(ae=gr.label)!==null&&ae!==void 0?ae:xn;if(M&&gr.returnType!=M)return yn.push({key:up,args:{funcKey:xn,funcName:Vr,returnType:gr.returnType,valueType:M}}),[s,yn];He=He||Bt;for(var Dr in gr.args){var li,oi=gr.args[Dr],Ei=Sn.get("args"),sa=Ei?Ei.get(Dr):void 0,Ki=as(W,oi),Bi=(li=Ki?.label)!==null&&li!==void 0?li:Dr,qi=sa?sa.get("value"):void 0,oa=sa?sa.get("valueSrc"):void 0;if(qi!==void 0){var zi=yd(W,t,Ki,Re,qi,oi.type,oa,F,He,at,Bt),va=Mt(zi,2),ba=va[0],fa=va[1],ga=!(fa!=null&&fa.length),da=He&&ba!==qi,Ca=He&&!ga&&!da&&(at||Bt);if(da&&(Sn=Sn.setIn(["args",Dr,"value"],ba)),Ca&&(Sn=Sn.deleteIn(["args",Dr]),Sn=ui(W,Sn,gr,Dr)),!ga){var xa,Aa,ka=(xa=(Aa=fa.find(function(Io){return!Io.fixed&&!Io.ignore}))!==null&&Aa!==void 0?Aa:fa.find(function(Io){return!Io.fixed}))!==null&&xa!==void 0?xa:fa[0],Wa=da||Ca,ho=fa.filter(function(Io){return!Io.ignore}).length===0;if(ka){var mo=gf(ka);yn.push({key:sm,args:{funcKey:xn,funcName:Vr,argKey:Dr,argName:Bi,argValidationError:mo,argErrors:fa},ignore:ho,fixed:Wa,fixedFrom:Wa?qi:void 0,fixedTo:Wa?da?ba:oi.defaultValue:void 0})}}}else if(!oi.isOptional&&(at||Bt)){var Za=He&&oi.defaultValue!==void 0&&(at||Bt),is=at;is&&yn.push({key:Py,args:{funcKey:xn,funcName:Vr,argKey:Dr,argName:Bi},fixed:Za,fixedTo:Za?oi.defaultValue:void 0,ignore:!Za}),Za&&(Sn=Sn.deleteIn(["args",Dr]),Sn=ui(W,Sn,gr,Dr))}}return[Sn,yn]},rh=function(t,i,s,b,M){var F=nu(t,s,i),W=s?Mu(F):null,J=M.toJS?M.toJS():M,ae=b.toJS?b.toJS():b,Re=J.filter(function(sr){return sr=="value"||sr==null}).length==W,He;if(F!=null&&F.validateValues&&Re){var at=J[0],Bt=ku(t,i,s,at),Sn=Xu(t,i,s,Bt,at),yn=Sn!=null&&Sn.toJS?ae.map(function(sr){var gr=Sn.toJS.call(t.ctx,sr,Sn);return gr instanceof Date&&(gr=gr.getTime()),gr}):ae,xn=F.validateValues(yn);typeof xn=="boolean"&&xn==!1&&(He={key:vm,args:{jsValues:yn,values:ae}})}return He},Cm=function(t,i,s,b){var M=s.settings.fieldSeparator;t=t||new vo.Map,Array.isArray(i)&&(i=i.join(M));var F=t.get("func"),W=t.get("args");t=t.set("func",i);var J=i&&wu(s,i),ae=i&&sd(s,i),Re=F&&sd(s,F),He=Om(Re,ae,W,s,b);if(He.length){var at=Object.keys(ae.args),Bt=at.filter(function(Sn){return!He.includes(Sn)});t=Bt.reduce(function(Sn,yn){return Sn.deleteIn(["args",yn])},t)}else t=t.set("args",new vo.Map);return t=Mr(s,t,J),t},Wy=function(t,i,s,b,M){return t&&t.get("func")&&(t=t.setIn(["args",i],new vo.Map({valueSrc:s}))),t},Gy=function(t,i,s,b,M){return t&&t.get("func")&&(t=t.setIn(["args",i,"asyncListValues"],s)),t},Om=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(t?.returnType!=i?.returnType)return[];var F=!1,W=Object.keys(i.args),J=W.filter(function(ae,Re){var He=i.args[ae],at=t.args[ae],Bt=Object.keys(t.args).indexOf(ae);if(!at&&(He.defaultValue!==void 0||He.isOptional))return!0;if(F&&Re!==Bt||at?.type!=He.type||ff.includes(He.type)&&(!at.listValuesType||at.listValuesType!==He.listValuesType))return!1;if(s){var Sn,yn=s.get(ae),xn=yn?.get("value"),sr=yn?.get("valueSrc");if(sr&&He.valueSources&&!He.valueSources.includes(sr))return!1;var gr=null,Vr=null,Dr=He,li=null,oi=!0,Ei=yd(b,gr,Dr,Vr,xn,Dr.type,sr,li,M,oi),sa=Mt(Ei,2),Ki=sa[0],Bi=sa[1];if(Bi!=null&&(Sn=Bi.filter(function(qi){return!qi.fixed}))!==null&&Sn!==void 0&&Sn.length)return!1}return!0});return J};function Hy(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function $b(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Hy(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var bd=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,F=null,W=null,J=null,ae=t.settings.showErrorMessage;if(s){var Re,He,at;J=s==null||(Re=s.properties)===null||Re===void 0?void 0:Re.fieldSrc,F=s==null||(He=s.properties)===null||He===void 0?void 0:He.field,W=s==null||(at=s.properties)===null||at===void 0?void 0:at.operator}else b?(F=Jd(t,M,i),F?J=Tu(F)?"func":"field":J=If(t),W=fh(t,F,!0)):J=If(t);var Bt=new vo.Map({fieldSrc:J,field:F,operator:W,value:new vo.List,valueSrc:new vo.List,operatorOptions:Pd(t,W,F)});if(ae&&(Bt=Bt.set("valueError",new vo.List)),F&&W){var Sn=!1,yn=kh({validateValue:yd,validateRange:rh},t,t,Bt,F,W,"operator",Sn),xn=yn.newValue,sr=yn.newValueSrc,gr=yn.newValueType,Vr=yn.newValueError,Dr=yn.newFieldError;Bt=Bt.set("value",xn).set("valueSrc",sr).set("valueType",gr),ae&&(Bt=Bt.set("valueError",Vr).set("fieldError",Dr))}var li=as(t,F);if(li?.type==="!group"){var oi=qc(t,li);Bt=Bt.set("conjunction",oi)}return Bt},Ky=function(t,i){return i?.type=="group"?pc(t):bd(t,null,i)},Yy=function(t,i){return tt({},t,new vo.Map({type:"rule",id:t,properties:bd(i)}))},Qp=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return new vo.Map({type:"group",id:es(),children1:new vo.OrderedMap(i?$b({},Yy(es(),t)):{}),properties:pc(t)})};function Ub(c,t){if(c==null)return{};var i={};for(var s in c)if({}.hasOwnProperty.call(c,s)){if(t.indexOf(s)!==-1)continue;i[s]=c[s]}return i}function Jy(c,t){if(c==null)return{};var i,s,b=Ub(c,t);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(c);for(s=0;s<M.length;s++)i=M[s],t.indexOf(i)===-1&&{}.propertyIsEnumerable.call(c,i)&&(b[i]=c[i])}return b}function Zy(c,t,i,s,b,M,F){try{var W=c[M](F),J=W.value}catch(ae){return void i(ae)}W.done?t(J):Promise.resolve(J).then(s,b)}function Vb(c){return function(){var t=this,i=arguments;return new Promise(function(s,b){var M=c.apply(t,i);function F(J){Zy(M,s,b,F,W,"next",J)}function W(J){Zy(M,s,b,F,W,"throw",J)}F(void 0)})}}var zb=["title","value","disabled","groupTitle","grouplabel","renderTitle","children","label","isCustom","isHidden"];function Wb(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Gb(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Gb(c,t){if(c){if(typeof c=="string")return Tm(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Tm(c,t):void 0}}function Tm(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function qp(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Vd(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?qp(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):qp(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Xy=function(t,i){if(t.findLastIndex)return t.findLastIndex(i);var s=$t(t).reverse().findIndex(i);return s==-1?-1:t.length-1-s},Qy=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e3;return function(){var b=Vb(rl().mark(function M(F,W,J){var ae,Re,He,at,Bt,Sn,yn,xn,sr,gr;return rl().wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:if(!s){Dr.next=3;break}return Dr.next=3,ad(s);case 3:if(ae=!!(J!=null&&J.fetchSelectedValues)&&Array.isArray(F),!ae){Dr.next=7;break}return Re=Zp(t).filter(function(li){var oi=li.value;return F.includes(oi)}),Dr.abrupt("return",{values:Re});case 7:return He=J?.pageSize!=null?J.pageSize:i,at=Zp(t).filter(function(li){var oi=li.title,Ei=li.value;return F==null?!0:oi.toUpperCase().indexOf(F.toUpperCase())!=-1||"".concat(Ei).toUpperCase().indexOf(F.toUpperCase())!=-1}),Bt=He?Math.ceil(at.length/He):0,Sn=W||0,yn=He?Math.ceil(Sn/He):null,xn=He?at.slice(Sn,Sn+He):at,sr=He?Sn+xn.length:null,gr=He?sr<at.length:!1,Dr.abrupt("return",{values:xn,hasMore:gr});case 16:case"end":return Dr.stop()}},M)}));return function(M,F,W){return b.apply(this,arguments)}}()},Am=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!i)return t;var M=t||[],F=i.filter(function(J){return M.find(function(ae){return""+ae.value==""+J.value})==null}).map(function(J){return b?Vd(Vd({},J),{},{isHidden:!0}):J}),W=s?[].concat($t(F),$t(M)):[].concat($t(M),$t(F));return W},Hb=function(t,i,s){var b,M=t==null||t==""?void 0:(b=t?.value)!==null&&b!==void 0?b:t,F=Xp(M,i),W=s&&!F?ym(M):void 0,J=F||W,ae=J?[J]:void 0;return[M,ae]},Kb=function(t,i,s){var b=t.map(function(F,W){var J,ae=F==null||F==""?void 0:(J=F?.value)!==null&&J!==void 0?J:F,Re=Xp(ae,i),He=s&&!Re?ym(ae):void 0,at=Re||He;return at}).filter(function(F){return F!=null}),M=b.map(function(F){var W;return(W=F?.value)!==null&&W!==void 0?W:F});return M.length||(M=void 0),[M,b]},Yb=function(t){if(t==null)return null;var i=t.title,s=t.value,b=t.disabled,M=t.groupTitle,F=t.grouplabel,W=t.renderTitle,J=t.children,ae=t.label,Re=t.isCustom,He=t.isHidden,at=Jy(t,zb),Bt={value:s,title:i||ae||J};return b&&(Bt.disabled=b),Re&&(Bt.isCustom=Re),He&&(Bt.isHidden=He),(M||F)&&(Bt.groupTitle=M||F),W&&(Bt.renderTitle=W),Bt=Vd(Vd({},Bt),at),Bt},Jb=function(t){var i=[],s=[],b=Wb(t),M;try{var F=function(){var J=M.value,ae=Xy(i,function(Re){var He,at;return((He=Re.groupTitle)!==null&&He!==void 0?He:"")==((at=J.groupTitle)!==null&&at!==void 0?at:"")});J.groupTitle!=null&&!s.includes(J.groupTitle)&&(s.push(J.groupTitle),s.length===1&&(i=i.map(function(Re){return Vd(Vd({},Re),{},{groupTitle:""})}))),J.groupTitle==null&&s.length&&(J=Vd(Vd({},J),{},{groupTitle:""})),ae!=-1?i.splice(ae+1,0,J):i.push(J)};for(b.s();!(M=b.n()).done;)F()}catch(W){b.e(W)}finally{b.f()}return i};function qy(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function ev(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?qy(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):qy(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function tv(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=e0(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function e0(c,t){if(c){if(typeof c=="string")return nv(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?nv(c,t):void 0}}function nv(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}var Zb=Of,Rm=Jc,Xb=function(t){return["length"].includes(t)},Pm=["between","not_between","is_empty","is_not_empty","is_null","is_not_null","some","all","none"],Qb=["proximity"],qb=function(t){var i={},s=function(qi){var oa=t.operators[qi],zi=oa.spelOps?oa.spelOps:oa.spelOp?[oa.spelOp]:void 0;if(zi)zi.forEach(function(da){var Ca=da;i[Ca]||(i[Ca]=[]),i[Ca].push(qi)});else{var va,ba=(va=t.operators)===null||va===void 0?void 0:va[oa.reversedOp],fa=ba?.spelOp||ba?.spelOps,ga=fa||Pm.includes(qi)||Pm.includes(oa.reversedOp)||Qb.includes(qi);ga||Rm.warn("[spel] No spelOp for operator ".concat(qi))}};for(var b in t.operators)s(b);var M={};for(var F in t.conjunctions){var W=t.conjunctions[F],J=W.spelConj||F.toLowerCase();M[J]=F}var ae={},Re=tv(Zb(t)),He;try{var at=function(){var qi=Mt(He.value,2),oa=qi[0],zi=qi[1],va=[],ba=zi.spelFunc;if(typeof ba=="string"){var fa=Object.keys(zi.args||{}).reverse().filter(function(ka){return!!zi.args[ka].isOptional||zi.args[ka].defaultValue!=null}),ga=ba.replace(/\?\./g,".").replace(/\${(\w+)}/g,function(ka,Wa){return"?"}),da=fa.reduce(function(ka,Wa){return[].concat($t(ka),[[Wa].concat($t(ka[ka.length-1]||[]))])},[]).map(function(ka){return ba.replace(/(?:, )?\${(\w+)}/g,function(Wa,ho){return ka.includes(ho)?"":Wa}).replace(/\?\./g,".").replace(/\${(\w+)}/g,function(Wa,ho){return"?"})});va=[ga].concat($t(da))}var Ca=tv(va),xa;try{for(Ca.s();!(xa=Ca.n()).done;){var Aa=xa.value;ae[Aa]||(ae[Aa]=[]),ae[Aa].push(oa)}}catch(ka){Ca.e(ka)}finally{Ca.f()}};for(Re.s();!(He=Re.n()).done;)at()}catch(Bi){Re.e(Bi)}finally{Re.f()}var Bt={};for(var Sn in t.widgets){var yn=t.widgets[Sn],xn=yn.spelImportFuncs;if(xn){var sr=tv(xn),gr;try{for(sr.s();!(gr=sr.n()).done;){var Vr=gr.value;if(typeof Vr=="string"){var Dr=Vr.replace(/\?\./g,".").replace(/\${(\w+)}/g,function(Bi,qi){return"?"}),li=$t(Vr.matchAll(/\${(\w+)}/g)).map(function(Bi){var qi=Mt(Bi,2),oa=qi[0],zi=qi[1];return zi});Bt[Dr]||(Bt[Dr]=[]),Bt[Dr].push({w:Sn,argsOrder:li})}}}catch(Bi){sr.e(Bi)}finally{sr.f()}}}var oi={},Ei=function(qi){var oa=t.operators[qi],zi=oa.spelOps?oa.spelOps:oa.spelOp?[oa.spelOp]:void 0;zi?.forEach(function(va){if(va!=null&&va.includes("${0}")){var ba=va.replace(/\?\./g,".").replace(/\${(\w+)}/g,function(ga,da){return"?"}),fa=$t(va.matchAll(/\${(\w+)}/g)).map(function(ga){var da=Mt(ga,2),Ca=da[0],xa=da[1];return xa});oi[ba]||(oi[ba]=[]),oi[ba].push({op:qi,argsOrder:fa})}})};for(var sa in t.operators)Ei(sa);var Ki=Pg.replace(/\?\./g,".").replace(/\${(\w+)}/g,function(Bi,qi){return"?"});return oi[Ki]=[{op:"!compare",argsOrder:["0","1"]}],{operators:i,conjunctions:M,funcs:ae,valueFuncs:Bt,opFuncs:oi}},eS=function(t){var i=[{s:"",params:[],objs:[]}];return Im(t,i),i.map(function(s){var b=s.s,M=s.params;return{s:b,params:M}}).reverse().filter(function(s){var b=s.s;return b!==""&&b!=="?"})},Im=function(t,i){var s=[],b="",M=t.type,F=t.methodName,W=t.val,J=t.obj,ae=t.args,Re=t.isVar,He=t.cls,at=t.children,Bt=at?.[at.length-1],Sn=i[i.length-1];if(M==="!func"){for(var yn=J;yn;){var xn,sr=Im(ev(ev({},yn),{},{obj:null}),[{}]),gr=Mt(sr,2),Vr=gr[0],Dr=gr[1];if(Vr!=="?"){var li={s:Sn.s,params:$t(Sn.params),objs:$t(Sn.objs)};Sn.objs.unshift("?"),Sn.params.unshift(yn),i.push(li),Sn=i[i.length-1]}Sn.objs.unshift(Vr),(xn=Sn.params).unshift.apply(xn,$t(Dr)),yn=yn.type==="!func"?yn.obj:null}var oi=tv(i),Ei;try{for(oi.s();!(Ei=oi.n()).done;){var sa,Ki=Ei.value;s=[].concat($t(Ki?.params||[]),$t(ae||[])),b="",Ki!=null&&(sa=Ki.objs)!==null&&sa!==void 0&&sa.length&&(b+=Ki.objs.join(".")+"."),b+=(Re?"#":"")+F,b+="("+(ae||[]).map(function(Bi){return"?"}).join(", ")+")",Ki.s=b,Ki.params=s}}catch(Bi){oi.e(Bi)}finally{oi.f()}}else M==="!new"?(s=ae||[],b="new ".concat(He.join("."),"(").concat(s.map(function(Bi){return"?"}).join(", "),")")):M==="!type"?b="T(".concat(He.join("."),")"):M==="compound"&&Bt.type==="property"&&Xb(Bt.val)?b=at.map(function(Bi){var qi;if(Bi===Bt)return Bi.val;var oa=Im(ev(ev({},Bi),{},{obj:null}),[{}]),zi=Mt(oa,2),va=zi[0],ba=zi[1];return(qi=s).push.apply(qi,$t(ba)),va}).join("."):(s=[t],b="?");return Sn&&(Sn.s=b,Sn.params=s),[b,s]};function t0(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Nc(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?t0(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):t0(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var n0=l,tS=n0.isObject,dp=n0.uuid,Dm=R,r0=Dm.defaultConjunction,Mm=Dm.defaultGroupConjunction,i0=m,rv=i0.getFieldConfig,Nh=i0.getWidgetForFieldOp,hp=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return{type:"group",id:dp(),children1:tt({},t.id,t),properties:{conjunction:r0(i),not:s||!1}}},a0=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,W=nS(b,M,s,i,F),J;return t?(J=t,J.type?(J.type!="group"&&J.type!="case_group"&&(J=hp(J,b)),J.type="case_group"):(M.errors.push("Unexpected case: ".concat(JSON.stringify(J))),J=void 0)):J={id:dp(),type:"case_group",properties:{}},J&&(J.properties=Nc(Nc({},J.properties),W)),J},o0=function(t,i,s,b){var M={},F=a0(null,t,i,s,b);F&&(M[F.id]=F);var W={type:"switch_group",id:dp(),children1:M,properties:{}};return W},s0=function(t,i,s,b,M){var F=t.groupFilter,W=t.groupFieldValue;if(W.valueSrc!="field")throw"Bad groupFieldValue: ".concat(JSON.stringify(W));var J=W.value,ae=iv(b,M,J,i,s);if(ae){var Re=rv(b,J),He=Re?.mode,at;return F?.type==="group"?at=Nc(Nc({},F||{}),{},{type:"rule_group",properties:Nc(Nc(Nc({},ae.properties),F?.properties||{}),{},{mode:He})}):F?at=Nc(Nc({},ae||{}),{},{type:"rule_group",children1:[F],properties:Nc(Nc({},ae.properties),{},{mode:He})}):at=Nc(Nc({},ae||{}),{},{type:"rule_group",properties:Nc(Nc({},ae.properties),{},{mode:He})}),at.id||(at.id=dp()),at}},nS=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F={},W,J,ae=rv(t,"!case_value");if(b?.valueType==="case_value")W="case_value";else if(W=ae?.mainWidget,J=t.widgets[W],b&&b.valueSrc==="value"){var Re;b.valueType=((Re=J)===null||Re===void 0?void 0:Re.type)||ae?.type||b.valueType}var He=t.widgets[W];if(W==="case_value"){var at=He?.spelImportValue;if(at){var Bt=at.call(t.ctx,b),Sn=Mt(Bt,2),yn=Sn[0],xn=Sn[1];if(xn.map(function(gr){return i.errors.push(gr)}),yn!=null){var sr;F={value:[yn],valueSrc:["value"],valueType:[(sr=He?.type)!==null&&sr!==void 0?sr:"case_value"],field:"!case_value"}}}}else b!=null&&b?.value!=null&&(F={value:[b.value],valueSrc:[b.valueSrc],valueType:[b.valueType],field:"!case_value"});return F},iv=function(t,i,s,b,M,F){var W,J;if(!M.filter(function(qi){return qi===void 0}).length){var ae=(W=s)!==null&&W!==void 0&&W.func?"func":"field";tS(s)&&s.valueSrc&&(ae=s.valueSrc,s=s.value);var Re=rv(t,s);if(!Re){i.errors.push("No config for field ".concat(s));return}var He=rv(t,F?._groupField),at=Re.type=="!group",Bt=at&&Re.mode=="array",Sn=He?.type=="!group",yn=t.operators[b],xn=t.operators[(J=yn)===null||J===void 0?void 0:J.reversedOp],sr=F?.not&&["between"].includes(b),gr=!!xn,Vr=gr&&(!!t.settings.reverseOperatorsForNot||sr||!at&&Sn),Dr=F?.not&&Vr||sr;Dr&&(b=yn.reversedOp,yn=t.operators[b],F.not=!F.not);var li=!!(F!=null&&F.not),oi=Nh(t,s,b),Ei=t.widgets[oi||Re.mainWidget],sa=M.map(function(qi){return qi.asyncListValues}).filter(function(qi){return qi!=null}),Ki=sa.length?sa[0]:void 0,Bi={type:"rule",id:dp(),properties:Nc({field:s,fieldSrc:ae,operator:b,value:M.map(function(qi){return qi.value}),valueSrc:M.map(function(qi){return qi.valueSrc}),valueType:M.map(function(qi){return qi.valueSrc=="value"&&(Ei?.type||Re?.type)||qi.valueType})},Ki?{asyncListValues:Ki}:{})};return li&&(Bi=hp(Bi,t,F.not)),Bi}};function km(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function rS(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?km(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):km(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Lm=Jc,av=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=t.getType(),M=t.getChildren().map(function(zi){return av(zi,i,t)});if((b=="op-or"||b=="op-and")&&(M=M.reduce(function(zi,va){var ba=va.type=="op-and"&&va.children.length==2&&va.children[0].type=="op-ge"&&va.children[1].type=="op-le",fa=va.type=="op-or"&&va.children.length==2&&va.children[0].type=="op-lt"&&va.children[1].type=="op-gt",ga=ba||fa,da=va.type==b&&!va.not&&!ga,Ca=da?va.children:[va];return[].concat($t(zi),$t(Ca))},[])),b=="op-not")return M.length!=1&&i.errors.push("Operator NOT should have 1 child, but got ".concat(M.length,"}")),rS(rS({},M[0]),{},{not:!M[0].not});if(b=="compound"){M=M.filter(function(zi){var va=zi.type=="selection"&&zi.children.length==1&&zi.children[0].type=="boolean"&&zi.children[0].val==!0;return!va});var F=M.find(function(zi){return zi.type=="selection"});F&&F.children.length!=1&&i.errors.push("Selection should have 1 child, but got ".concat(F.children.length));var W=F?F.children[0]:null,J=M[M.length-1],ae=J.type=="method"&&J.val.methodName=="size"||J.type=="!func"&&J.methodName=="size",Re=J.type=="property"&&J.val=="length",He=M.filter(function(zi){return zi!==F&&zi!==J}),at={type:"compound",children:He},Bt=(ae||Re)&&u0(He)!=null;if(Bt)return{type:"!aggr",filter:W,source:at};if(M=M.filter(function(zi){var va=zi.type=="variable"&&zi.val=="this",ba=zi.type=="variable"&&zi.val=="root";return!(va||ba)}),M=M.map(function(zi){return zi.type=="indexer"&&zi.children.length==1?{type:"indexer",val:zi.children[0].val,itype:zi.children[0].type}:zi}),J.type=="!func"){var Sn={},yn=Sn;do{var xn,sr;Object.assign(yn,J),M=M.filter(function(zi){return zi!==J}),J=M[M.length-1],((xn=J)===null||xn===void 0?void 0:xn.type)=="!func"?(yn.obj={},yn=yn.obj):M.length>1?yn.obj={type:"compound",children:M}:yn.obj=J}while(((sr=J)===null||sr===void 0?void 0:sr.type)=="!func");return Sn}}var gr;try{t.getRaw?gr=t.getRaw():t.getValue.length==0&&(gr=t.getValue())}catch(zi){Lm.error("[spel2js] Error in getValue()",zi)}if(b=="ternary"&&(gr=iS(M)),Te(gr)==="object"&&gr!==null&&(gr.methodName||gr.functionName)&&(gr.args=gr.args.map(function(zi){return av(zi,i,t)})),b=="list"&&(gr=gr.map(function(zi){return av(zi,i,t)}),!s&&gr.length==1))return gr[0];if(b=="constructorref"){var Vr=M.find(function(zi){return zi.type=="qualifiedidentifier"}),Dr=Vr?.val;if(!Dr){i.errors.push("Can't find qualifiedidentifier in constructorref children: ".concat(JSON.stringify(M)));return}var li=M.filter(function(zi){return zi.type!="qualifiedidentifier"});return{type:"!new",cls:Dr,args:li}}if(b=="typeref"){var oi=M.find(function(zi){return zi.type=="qualifiedidentifier"}),Ei=oi?.val;if(!Ei){i.errors.push("Can't find qualifiedidentifier in typeref children: ".concat(JSON.stringify(M)));return}var sa=M.filter(function(zi){return zi.type!="qualifiedidentifier"});return{type:"!type",cls:Ei}}if(b=="function"||b=="method"){var Ki=gr,Bi=Ki.functionName,qi=Ki.methodName,oa=Ki.args;return{type:"!func",methodName:Bi||qi,isVar:b=="function",args:oa}}return{type:b,children:M,val:gr}},iS=function(t){var i=[];function s(b){var M=Mt(b,3),F=M[0],W=M[1],J=M[2];i.push([F,W]),J?.type=="ternary"?s(J.children):i.push([void 0,J])}return s(t),i},u0=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,b=!1,M=t.map(function(F){if(F.type=="variable"||F.type=="property"||F.type=="indexer"&&F.itype=="string")return F.val;var W,J;b=!0,s&&(i==null||(W=i.errors)===null||W===void 0||(J=W.push)===null||J===void 0||J.call(W,"Unexpected item in field path compound: ".concat(JSON.stringify(F))))});return b?void 0:M};function Sh(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=aS(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function aS(c,t){if(c){if(typeof c=="string")return l0(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l0(c,t):void 0}}function l0(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function c0(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Nm(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):c0(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var ov=l,Fm=ov.isJsonCompatible,f0=ov.isObject,sv=ov.uuid,jm=ov.logger,Fh=m,Bm=Fh.getFieldConfig,pp=Fh.getFuncConfig,d0=Fh.normalizeField,oS=Fh.iterateFuncs,sS=Fh.getWidgetForFieldOp,_h={number:"number",string:"text",boolean:"boolean",null:"null"},uv={String:"text"},$m="multiselect",zd=function(t,i,s,b){var M,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(t){t._groupField=(M=t._groupField)!==null&&M!==void 0?M:F?._groupField;var W,J=!0;if(t.type.indexOf("op-")===0||t.type==="matches")W=lv(t,i,s,b,F);else if(t.type=="!aggr"){var ae,Re=zd(t.source,i,s,b,t);t._groupField=Re?.value;var He=zd(t.filter,i,s,b,t);((ae=He)===null||ae===void 0?void 0:ae.type)=="rule"&&(He=hp(He,s,t.filter.not)),W={groupFilter:He,groupFieldValue:Re},F||(W=void 0,b.errors.push("Unexpected !aggr in root"),J=!1)}else if(t.type=="ternary"){var at={};t.val.forEach(function(yn){var xn=Mt(yn,2),sr=xn[0],gr=xn[1],Vr=zd(sr,i,s,b,t),Dr=ih(gr,i,s,b,t),li=a0(Vr,Dr,i,s,b,t);li&&(at[li.id]=li)}),W={type:"switch_group",id:sv(),children1:at,properties:{}}}if(!W&&J&&(W=Wd(t,i,s,b,F)),W&&!W.type&&!F){var Bt=ih(t,i,s,b),Sn=o0(Bt,i,s,b);Sn?W=Sn:(W=void 0,b.errors.push("Can't convert rule of type ".concat(t.type,", it looks like var/literal")))}return W}},lv=function(t,i,s,b){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F,W=t.type.startsWith("op-")?t.type.slice(3):t.type,J=(W=="minus"||W=="plus")&&t.children.length==1;if(J){var ae=t.negative;return W=="minus"&&(ae=!ae),t.children[0].negative=ae,zd(t.children[0],i,s,b,M)}var Re=W=="and"&&t.children.length==2&&t.children[0].type=="op-ge"&&t.children[1].type=="op-le",He=W=="or"&&t.children.length==2&&t.children[0].type=="op-lt"&&t.children[1].type=="op-gt",at=Re||He;if(at){var Bt=Mt(t.children[0].children,2),Sn=Bt[0],yn=Bt[1],xn=Mt(t.children[1].children,2),sr=xn[0],gr=xn[1],Vr=zm(Sn,sr,t,i,s,b,M);if(Vr){var Dr=yn.val,li=gr.val,oi={type:"op-between",children:[Sn,yn,gr],not:He};return oi._groupField=M?._groupField,lv(oi,i,s,b,M)}}var Ei=i.operators[W];W=="eq"&&t.children[1].type=="null"?Ei=["is_null"]:W=="ne"&&t.children[1].type=="null"?Ei=["is_not_null"]:W=="le"&&t.children[1].type=="string"&&t.children[1].val==""?Ei=["is_empty"]:W=="gt"&&t.children[1].type=="string"&&t.children[1].val==""?Ei=["is_not_empty"]:W=="between"&&(Ei=["between"]);var sa=function(){var Ps,Ss=t.children.map(function(xs){return zd(xs,i,s,b,t)});return Ss.length>=2&&((Ps=Ss)===null||Ps===void 0||(Ps=Ps[0])===null||Ps===void 0?void 0:Ps.type)=="!compare"&&(Ss=Ss[0].children),Ss};if(W=="and"||W=="or"){var Ki={},Bi=sa();Bi.forEach(function(ps){if(ps){var Ps=sv();ps.id=Ps,ps.type!=null?Ki[Ps]=ps:b.errors.push("Bad item in AND/OR: ".concat(JSON.stringify(ps)))}}),F={type:"group",id:sv(),children1:Ki,properties:{conjunction:i.conjunctions[W],not:t.not}}}else if(Ei){var qi,oa,zi,va=sa(),ba=va[0],fa=va.slice(1),ga=ba==null||(qi=ba.groupFieldValue)===null||qi===void 0?void 0:qi.value,da=(oa=fa)===null||oa===void 0?void 0:oa[0],Ca=Ei[0];if(Ei.length>1){var xa,Aa,ka=((xa=va[0])===null||xa===void 0?void 0:xa.valueType)||((Aa=va[1])===null||Aa===void 0?void 0:Aa.valueType),Wa=ba?.value,ho=Ei.map(function(ps){return{op:ps,widget:sS(s,Wa,ps)}});if(W=="eq"||W=="ne"){var mo=ho.find(function(ps){var Ps=ps.op,Ss=ps.widget;return Ss&&Ss!="field"});mo&&(Ca=mo.op)}else jm.warn("[spel] Spel operator ".concat(W," can be mapped to ").concat(Ei,"."),"widgets:",ho,"vals:",va,"valueType=",ka)}ba!=null&&ba.groupFieldValue&&(da&&da.groupFieldValue&&da.groupFieldValue.valueSrc=="field"&&da.groupFieldValue.value==ga?(Ca="all",fa=[]):Ca=="equal"&&da.valueSrc=="value"&&da.valueType=="number"&&da.value==0?(Ca="none",fa=[]):Ca=="greater"&&da.valueSrc=="value"&&da.valueType=="number"&&da.value==0&&(Ca="some",fa=[]));var Za=s.operators[Ca],is=s.operators[(zi=Za)===null||zi===void 0?void 0:zi.reversedOp],Io=t.not&&["between"].includes(Ca),Ja=!!is,Vo=Ja&&(!!s.settings.reverseOperatorsForNot||Io),Wo=t.not&&Vo||Io;Wo&&(Ca=Za.reversedOp,Za=s.operators[Ca],t.not=!t.not);var No=!!t.not;if(t.not=!1,ba)if(ba.groupFieldValue)ba.groupFieldValue.valueSrc!="field"&&b.errors.push("Expected group field ".concat(JSON.stringify(ba))),F=s0(ba,Ca,fa,s,b);else{ba.valueSrc!="field"&&ba.valueSrc!="func"&&b.errors.push("Expected field/func at LHS, but got ".concat(JSON.stringify(ba)));var os=ba.value;F=iv(s,b,os,Ca,fa,t)}No&&(F.type!=="group"?F=hp(F,s,!0):F.properties.not=!F.properties.not)}else if(!M){var Jo=ih(t,i,s,b);F=o0(Jo,i,s,b)}return F},Wd=function(t,i,s,b){var M,F,W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(t!=null){var J=s.settings.fieldSeparator;if(t._groupField=(M=t._groupField)!==null&&M!==void 0?M:W?._groupField,t.type=="variable"||t.type=="property"){var ae=d0(s,t.val,t._groupField),Re=Bm(s,ae),He=t.type=="variable";return{valueSrc:"field",valueType:Re?.type,isVariable:He,value:ae}}else if(t.type=="compound"){var at=u0(t.children,b);if(at){var Bt,Sn=d0(s,at.join(J),t._groupField),yn=Bm(s,Sn),xn=((Bt=t.children)===null||Bt===void 0||(Bt=Bt[0])===null||Bt===void 0?void 0:Bt.type)=="variable";return{valueSrc:"field",valueType:yn?.type,isVariable:xn,value:Sn}}}else if(_h[t.type]){var sr=t.val,gr=_h[t.type];return t.negative&&(sr=-sr),{valueSrc:"value",valueType:gr,value:sr}}else if(t.type=="!new"&&uv[t.cls.at(-1)]){var Vr=t.args.map(function(oa){return Wd(oa,i,s,b,t)}),Dr=Vr?.[0],li=uv[t.cls.at(-1)];return Nm(Nm({},Dr),{},{valueType:li})}else if(t.type=="list"){var oi,Ei=t.val.map(function(oa){return Wd(oa,i,s,b,t)}),sa=Ei.length?(oi=Ei[0])===null||oi===void 0?void 0:oi.valueType:null,Ki=Ei.map(function(oa){return oa?.value}),Bi=$m;return{valueSrc:"value",valueType:Bi,value:Ki}}else if(t.type==="op-plus"&&W?.type==="ternary"&&((F=s.settings.caseValueField)===null||F===void 0?void 0:F.type)==="case_value")return Eh(t,i,s,b);var qi=jh(t,i,s,b,W);if(qi!==void 0)return qi;b.errors.push("Can't convert arg of type ".concat(t.type))}},jh=function(t,i,s,b){var M,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,W=function(Io){return zd(Io,i,s,b,t)},J=eS(t),ae=J==null||(M=J[0])===null||M===void 0?void 0:M.s;J.length&&jm.debug("Signatures for ",t,":",ae,J);var Re=Um(t,i,s,b,F,J,W);if(Re!==void 0)return Re;var He=Vm(t,i,s,b,F,J,W);if(He!==void 0)return He;var at,Bt,Sn,yn=Sh(J),xn;try{var sr=function(){var Io=xn.value,Ja=Io.s,Vo=Io.params,Wo=i.funcs[Ja];if(Wo){at=Wo[0],Bt=pp(s,at);var No=Bt,os=No.spelFunc,Jo=Vo.map(W),ps=$t(os.matchAll(/\${(\w+)}/g)).map(function(Ps){var Ss=Mt(Ps,2),xs=Ss[0],Gu=Ss[1];return Gu});return Sn=Object.fromEntries(ps.map(function(Ps,Ss){return[Ps,Jo[Ss]]})),1}};for(yn.s();!(xn=yn.n()).done&&!sr(););}catch(is){yn.e(is)}finally{yn.f()}if(!at){var gr=Sh(oS(s)),Vr;try{for(gr.s();!(Vr=gr.n()).done;){var Dr=Mt(Vr.value,2),li=Dr[0],oi=Dr[1];if(oi.spelImport){var Ei=void 0;try{Ei=oi.spelImport.call(s.ctx,t)}catch(is){jm.debug("Error while using spelImport for ".concat(li),is)}if(Ei){var sa;at=li,Bt=pp(s,at),Sn={};for(var Ki in Ei)Sn[Ki]=W(Ei[Ki]);var Bi=!0,qi=(sa=Bt)===null||sa===void 0?void 0:sa.returnType;if(["date","datetime"].includes(qi)){var oa,zi=Object.keys((oa=Bt.args)!==null&&oa!==void 0?oa:[]).filter(function(is){return["date","datetime"].includes(Bt.args[is].type)}),va=Sh(zi),ba;try{for(va.s();!(ba=va.n()).done;){var fa,ga=ba.value,da=Bt.args[ga],Ca=da.type,xa=(fa=Sn[ga])===null||fa===void 0?void 0:fa.valueType;xa&&xa!=Ca&&(Bi=!1)}}catch(is){va.e(is)}finally{va.f()}}if(Bi)break}}}}catch(is){gr.e(is)}finally{gr.f()}}if(at){var Aa={};for(var ka in Bt.args){var Wa=Bt.args[ka],ho=Sn[ka];if(ho===void 0)if(ho=Wa?.defaultValue,ho===void 0){if(!(Wa!=null&&Wa.isOptional)){b.errors.push("No value for arg ".concat(ka," of func ").concat(at));return}}else{var mo;ho={value:ho,valueSrc:(mo=ho)!==null&&mo!==void 0&&mo.func?"func":"value",valueType:Wa.type}}ho&&(Aa[ka]=ho)}return{valueSrc:"func",value:{func:at,args:Aa},valueType:Bt.returnType}}var Za=t.methodName;Za&&b.errors.push("Signature ".concat(ae," - failed to convert"))},Um=function(t,i,s,b,M,F,W){var J,ae,Re,He=[];for(var at in s.widgets){var Bt=s.widgets[at],Sn=Bt.spelImportFuncs;if(Sn)for(var yn=0;yn<Sn.length;yn++){var xn=Sn[yn];if(f0(xn)){var sr={};if(Fm(xn,t,sr)){for(var gr in sr)sr[gr]=W(sr[gr]);He.push({s:"widgets.".concat(at,".spelImportFuncs[").concat(yn,"]"),w:at,argsObj:sr})}}}}var Vr=Sh(F),Dr;try{for(Vr.s();!(Dr=Vr.n()).done;){var li=Dr.value,oi=li.s,Ei=li.params,sa=i.valueFuncs[oi]||[],Ki=Sh(sa),Bi;try{var qi=function(){var Za=Bi.value,is=Za.w,Io=Za.argsOrder,Ja=Ei.map(W),Vo=Object.fromEntries(Io.map(function(Wo,No){return[Wo,Ja[No]]}));He.push({s:oi,w:is,argsObj:Vo})};for(Ki.s();!(Bi=Ki.n()).done;)qi()}catch(mo){Ki.e(mo)}finally{Ki.f()}}}catch(mo){Vr.e(mo)}finally{Vr.f()}for(var oa=0,zi=He;oa<zi.length;oa++){var va=zi[oa],ba=va.s,fa=va.w,ga=va.argsObj,da=s.widgets[fa],Ca=da.spelImportValue,xa=da.type;Re=fa,ae=ba,J=[];for(var Aa in ga)["value"].includes(ga[Aa].valueSrc)||J.push("".concat(Aa," has unsupported value src ").concat(ga[Aa].valueSrc));var ka=ga.v.value;if(Ca&&!J.length){var Wa=Ca.call(s.ctx,ga.v,da,ga),ho=Mt(Wa,2);ka=ho[0],J=ho[1],J&&!Array.isArray(J)&&(J=[J])}if(!J.length)return{valueSrc:"value",valueType:xa,value:ka}}Re&&J.length&&b.errors.push("Signature ".concat(ae," - looks like convertable to ").concat(Re,", but: ").concat(J.join("; ")))},Vm=function(t,i,s,b,M,F,W){var J=[],ae=Sh(F),Re;try{for(ae.s();!(Re=ae.n()).done;){var He=Re.value,at=He.s,Bt=He.params,Sn=i.opFuncs[at]||[],yn=Sh(Sn),xn;try{var sr=function(){var ga,da=xn.value,Ca=da.op,xa=da.argsOrder,Aa=Bt.map(W),ka=[];if(Ca==="!compare"){if(M.type.startsWith("op-")&&M.children.length==2&&M.children[1].type=="number"&&M.children[1].val===0)return{v:{type:"!compare",children:Aa}};ka.push("Result of compareTo() should be compared to 0")}var Wa=s.operators[Ca],ho=Wa.valueTypes,mo=Object.fromEntries(xa.map(function(Ja,Vo){return[Ja,Aa[Vo]]})),Za=mo[0],is=Object.keys(mo).filter(function(Ja){return parseInt(Ja)>0}).map(function(Ja){return mo[Ja]}),Io=(ga=Aa.filter(function(Ja){return!!Ja&&Ja!==Za}))===null||ga===void 0||(ga=ga[0])===null||ga===void 0?void 0:ga.valueType;ho&&Io&&!ho.includes(Io)&&ka.push("Op supports types ".concat(ho,", but got ").concat(Io)),J.push({opKey:Ca,foundSign:at,field:Za,convertedArgs:is,errs:ka})},gr;for(yn.s();!(xn=yn.n()).done;)if(gr=sr(),gr)return gr.v}catch(fa){yn.e(fa)}finally{yn.f()}}}catch(fa){ae.e(fa)}finally{ae.f()}for(var Vr in s.operators){var Dr=s.operators[Vr],li=Dr.spelImportFuncs,oi=Dr.valueTypes;if(li)for(var Ei=function(){var ga=li[sa];if(f0(ga)){var da={};if(Fm(ga,t,da)){var Ca,xa=[];for(var Aa in da)da[Aa]=W(da[Aa]);var ka=da[0],Wa=Object.keys(da).filter(function(mo){return parseInt(mo)>0}).map(function(mo){return da[mo]}),ho=(Ca=da[1])===null||Ca===void 0?void 0:Ca.valueType;oi&&ho&&!oi.includes(ho)&&xa.push("Op supports types ".concat(oi,", but got ").concat(ho)),J.push({opKey:Vr,foundSign:"spelImportFuncs[".concat(sa,"]"),field:ka,convertedArgs:Wa,errs:xa})}}},sa=0;sa<li.length;sa++)Ei()}var Ki=J.find(function(fa){var ga=fa.errs;return!ga.length});if(Ki){var Bi=Ki.opKey,qi=Ki.foundSign,oa=Ki.field,zi=Ki.convertedArgs,va=Ki.errs;return iv(s,b,oa,Bi,zi,t)}else if(J.length){var ba=J.map(function(fa){var ga=fa.foundSign,da=fa.opKey,Ca=fa.errs;return"Looks like convertable to ".concat(da," with signature ").concat(ga,", but: ").concat(Ca.join("; "))}).join(". ");b.errors.push(ba)}},zm=function(t,i,s,b,M,F){if(t.type==i.type)if(t.type=="!aggr"){var W=[t.source,i.source].map(function(yn){return Wd(yn,b,M,F,s)}),J=Mt(W,2),ae=J[0],Re=J[1];return ae.value==Re.value}else{var He=[t,i].map(function(yn){return Wd(yn,b,M,F,s)}),at=Mt(He,2),Bt=at[0],Sn=at[1];return Bt.value==Sn.value}return!1},ih=function(t,i,s,b){var M,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,W;return t?.type==="op-plus"&&((M=s.settings.caseValueField)===null||M===void 0?void 0:M.type)==="case_value"?W=Eh(t,i,s,b):W=Wd(t,i,s,b,F),W},Eh=function(t,i,s,b){var M=[];function F(W){W.map(function(J){if(J.type==="op-plus")F(J.children);else{var ae=Wd(J,i,s,b,t);ae?M.push(ae):b.errors.push("Can't convert ".concat(J.type," in concatenation"))}})}return F(t.children),{valueSrc:"value",valueType:"case_value",value:M}},cv=Jc,Wm=vf,Bh=function(t,i){return h0(t,i,!0)},h0=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b={errors:[]},M=Wm(i,void 0,!1),F=qb(M),W,J,ae=void 0;try{var Re=ay.SpelExpressionEvaluator.compile(t);W=Re._compiledExpression}catch(at){b.errors.push(at)}W&&(J=av(W,b),cv.debug("convertedObj:",J,b),ae=zd(J,F,M,b),ae&&ae.type!="group"&&ae.type!="switch_group"&&(ae=hp(ae,M,J.not)),cv.debug("jsTree:",ae));var He=ae?jp(ae):void 0;return s?[He,b.errors]:(b.errors.length&&console.warn("Errors while importing from SpEL:",b.errors),He)},uS={utils:{SqlString:Lf,moment:gu(),mongoFormatOp1:Mv,mongoFormatOp2:yg,mongoEmptyValue:Dv,escapeRegExp:lf,sqlEmptyValue:Cp,stringifyForDisplay:Op,getTitleInListValues:bm,spelEscape:hh,spelFixList:jv,wrapWithBrackets:Cg}};const xl=uS;function Cl(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Ll(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Ll(c,t){if(c){if(typeof c=="string")return p0(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p0(c,t):void 0}}function p0(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function Pl(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function xu(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Pl(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Pl(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var lS={AND:{label:"And",mongoConj:"$and",jsonLogicConj:"and",sqlConj:"AND",spelConj:"and",spelConjs:["and","&&"],reversedConj:"OR",formatConj:function(t,i,s,b){var M=t.size>1?t.join(" "+(b?"AND":"&&")+" "):t.first();return(t.size>1||s)&&(M=this.utils.wrapWithBrackets(M)),s&&(M="NOT "+M),M},sqlFormatConj:function(t,i,s){var b=t.size>1?t.join(" AND "):t.first();return(t.size>1||s)&&(b=this.utils.wrapWithBrackets(b)),s&&(b="NOT "+b),b},spelFormatConj:function(t,i,s,b){s&&(b=!1);var M=t.size>1?t.join(" && "):t.first();return(t.size>1||s)&&!b&&(M=this.utils.wrapWithBrackets(M)),s&&(M="!"+M),M}},OR:{label:"Or",mongoConj:"$or",jsonLogicConj:"or",sqlConj:"OR",spelConj:"or",spelConjs:["or","||"],reversedConj:"AND",formatConj:function(t,i,s,b){return t.size>1?(s?"NOT ":"")+"("+t.join(" "+(b?"OR":"||")+" ")+")":(s?"NOT (":"")+t.first()+(s?")":"")},sqlFormatConj:function(t,i,s){var b=t.size>1?t.join(" OR "):t.first();return(t.size>1||s)&&(b=this.utils.wrapWithBrackets(b)),s&&(b="NOT "+b),b},spelFormatConj:function(t,i,s,b){return s&&(b=!1),t.size>1?(s?"!":"")+(b?"":"(")+t.join(" || ")+(b?"":")"):(s?"!(":"")+t.first()+(s?")":"")}}},cS={equal:{label:"==",labelForFormat:"==",sqlOp:"=",spelOp:"==",spelOps:["==","eq"],reversedOp:"not_equal",formatOp:function(t,i,s,b,M,F,W,J,ae){var Re=J?"=":F.label;return M=="boolean"&&J?s=="No"?"NOT ".concat(t):"".concat(t):"".concat(t," ").concat(Re," ").concat(s)},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$eq",function(M){return M},!1].concat(s))},jsonLogic2:"==",jsonLogicOps:["==","datetime==","date=="],jsonLogic:function(t,i,s,b,M,F,W,J){return J!=null&&J.fixJsonLogicDateCompareOp&&["date","datetime"].includes(W)?tt({},"".concat(W,"=="),[t,s]):{"==":[t,s]}},elasticSearchQueryType:"term"},not_equal:{isNotOp:!0,label:"!=",labelForFormat:"!=",sqlOp:"<>",sqlOps:["<>","!="],spelOp:"!=",spelOps:["!=","ne"],reversedOp:"equal",formatOp:function(t,i,s,b,M,F,W,J,ae){return M=="boolean"&&J?s=="No"?"".concat(t):"NOT ".concat(t):"".concat(t," ").concat(F.label," ").concat(s)},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$ne",function(M){return M},!1].concat(s))},jsonLogic2:"!=",jsonLogicOps:["!=","datetime!=","date!="],jsonLogic:function(t,i,s,b,M,F,W,J){return J!=null&&J.fixJsonLogicDateCompareOp&&["date","datetime"].includes(W)?tt({},"".concat(W,"!="),[t,s]):{"!=":[t,s]}}},less:{label:"<",labelForFormat:"<",sqlOp:"<",spelOp:"<",spelOps:["<","lt"],reversedOp:"greater_or_equal",mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$lt",function(M){return M},!1].concat(s))},jsonLogic:"<",elasticSearchQueryType:"range"},less_or_equal:{label:"<=",labelForFormat:"<=",sqlOp:"<=",spelOp:"<=",spelOps:["<=","le"],reversedOp:"greater",mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$lte",function(M){return M},!1].concat(s))},jsonLogic:"<=",elasticSearchQueryType:"range"},greater:{label:">",labelForFormat:">",sqlOp:">",spelOp:">",spelOps:[">","gt"],reversedOp:"less_or_equal",mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$gt",function(M){return M},!1].concat(s))},jsonLogic:">",elasticSearchQueryType:"range"},greater_or_equal:{label:">=",labelForFormat:">=",sqlOp:">=",spelOp:">=",spelOps:[">=","ge"],reversedOp:"less",mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$gte",function(M){return M},!1].concat(s))},jsonLogic:">=",elasticSearchQueryType:"range"},like:{label:"Contains",labelForFormat:"Contains",reversedOp:"not_like",sqlOp:"LIKE",sqlImport:function(t,i,s){if(t?.operator=="LIKE"||t?.operator=="NOT LIKE"){var b,M=t?.operator=="NOT LIKE",F=t.children||[],W=Mt(F,2),J=W[0],ae=W[1];if(ae!=null&&(b=ae.valueType)!==null&&b!==void 0&&b.endsWith("_quote_string")){if(ae!=null&&ae.value.startsWith("%")&&ae!==null&&ae!==void 0&&ae.value.endsWith("%"))return ae.value=this.utils.SqlString.unescapeLike(ae.value.substring(1,ae.value.length-1),s),t.operator=M?"not_like":"like",t;if(ae!=null&&ae.value.startsWith("%"))return ae.value=this.utils.SqlString.unescapeLike(ae.value.substring(1),s),t.operator="ends_with",t;if(ae!=null&&ae.value.endsWith("%"))return ae.value=this.utils.SqlString.unescapeLike(ae.value.substring(0,ae.value.length-1),s),t.operator="starts_with",t}}},spelOp:"${0}.contains(${1})",valueTypes:["text"],mongoFormatOp:function(){for(var t,i=this,s=arguments.length,b=new Array(s),M=0;M<s;M++)b[M]=arguments[M];return(t=this.utils).mongoFormatOp1.apply(t,["$regex",function(F){return typeof F=="string"?i.utils.escapeRegExp(F):void 0},!1].concat(b))},jsonLogic:function(t,i,s){return{in:[s,t]}},jsonLogic2:"#in",valueSources:["value"],elasticSearchQueryType:"regexp"},not_like:{isNotOp:!0,label:"Not contains",reversedOp:"like",labelForFormat:"Not Contains",sqlOp:"NOT LIKE",mongoFormatOp:function(){for(var t,i=this,s=arguments.length,b=new Array(s),M=0;M<s;M++)b[M]=arguments[M];return(t=this.utils).mongoFormatOp1.apply(t,["$regex",function(F){return typeof F=="string"?i.utils.escapeRegExp(F):void 0},!0].concat(b))},jsonLogic:function(t,i,s){return{"!":{in:[s,t]}}},jsonLogic2:"#!in",_jsonLogicIsExclamationOp:!0,valueSources:["value"]},starts_with:{label:"Starts with",labelForFormat:"Starts with",sqlOp:"LIKE",spelOp:"${0}.startsWith(${1})",mongoFormatOp:function(){for(var t,i=this,s=arguments.length,b=new Array(s),M=0;M<s;M++)b[M]=arguments[M];return(t=this.utils).mongoFormatOp1.apply(t,["$regex",function(F){return typeof F=="string"?"^"+i.utils.escapeRegExp(F):void 0},!1].concat(b))},jsonLogic:void 0,valueSources:["value"]},ends_with:{label:"Ends with",labelForFormat:"Ends with",sqlOp:"LIKE",spelOp:"${0}.endsWith(${1})",mongoFormatOp:function(){for(var t,i=this,s=arguments.length,b=new Array(s),M=0;M<s;M++)b[M]=arguments[M];return(t=this.utils).mongoFormatOp1.apply(t,["$regex",function(F){return typeof F=="string"?i.utils.escapeRegExp(F)+"$":void 0},!1].concat(b))},jsonLogic:void 0,valueSources:["value"]},between:{label:"Between",labelForFormat:"BETWEEN",sqlOp:"BETWEEN",cardinality:2,formatOp:function(t,i,s,b,M,F,W,J){var ae=s.first(),Re=s.get(1);return J?"".concat(t," BETWEEN ").concat(ae," AND ").concat(Re):"".concat(t," >= ").concat(ae," && ").concat(t," <= ").concat(Re)},spelFormatOp:function(t,i,s,b,M,F,W,J){var ae=s[0],Re=s[1];return"(".concat(t," >= ").concat(ae," && ").concat(t," <= ").concat(Re,")")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp2.apply(t,[["$gte","$lte"],!1].concat(s))},valueLabels:["Value from","Value to"],textSeparators:[null,"and"],reversedOp:"not_between",jsonLogic:"<=",validateValues:function(t){return t[0]!=null&&t[1]!=null?t[0]<=t[1]:null},elasticSearchQueryType:function(t){return t==="time"?"filter":"range"}},not_between:{isNotOp:!0,label:"Not between",labelForFormat:"NOT BETWEEN",sqlOp:"NOT BETWEEN",cardinality:2,formatOp:function(t,i,s,b,M,F,W,J){var ae=s.first(),Re=s.get(1);return J?"".concat(t," NOT BETWEEN ").concat(ae," AND ").concat(Re):"(".concat(t," < ").concat(ae," || ").concat(t," > ").concat(Re,")")},spelFormatOp:function(t,i,s,b,M,F,W,J){var ae=s[0],Re=s[1];return"(".concat(t," < ").concat(ae," || ").concat(t," > ").concat(Re,")")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp2.apply(t,[["$gte","$lte"],!0].concat(s))},valueLabels:["Value from","Value to"],textSeparators:[null,"and"],reversedOp:"between",jsonLogic:function(t,i,s){return{"!":{"<=":[Array.isArray(s)?s[0]:s,t,Array.isArray(s)?s[1]:s]}}},jsonLogic2:"!<=",_jsonLogicIsExclamationOp:!0,validateValues:function(t){return t[0]!=null&&t[1]!=null?t[0]<=t[1]:null}},is_empty:{label:"Is empty",labelForFormat:"IS EMPTY",cardinality:0,reversedOp:"is_not_empty",formatOp:function(t,i,s,b,M,F,W,J){return J?"".concat(t," IS EMPTY"):"!".concat(t)},sqlFormatOp:function(t,i,s,b,M,F,W,J){var ae=this.utils.sqlEmptyValue(J);return"COALESCE(".concat(t,", ").concat(ae,") = ").concat(ae)},sqlImport:function(t,i,s){if(t?.operator==="="||t?.operator==="<>"){var b,M=t.children||[],F=Mt(M,2),W=F[0],J=F[1];if(J?.value===""&&W?.func==="COALESCE"&&(W==null||(b=W.children)===null||b===void 0||(b=b[1])===null||b===void 0?void 0:b.value)==="")return t.operator=t?.operator==="="?"is_empty":"is_not_empty",t.children=[W.children[0]],t}},spelFormatOp:function(t,i,s,b,M,F,W,J){return"".concat(t," <= ''")},mongoFormatOp:function(){for(var t,i=this,s=arguments.length,b=new Array(s),M=0;M<s;M++)b[M]=arguments[M];return(t=this.utils).mongoFormatOp1.apply(t,["$in",function(F,W){return[i.utils.mongoEmptyValue(W),null]},!1].concat(b))},jsonLogic:"!"},is_not_empty:{isNotOp:!0,label:"Is not empty",labelForFormat:"IS NOT EMPTY",cardinality:0,reversedOp:"is_empty",formatOp:function(t,i,s,b,M,F,W,J){return J?"".concat(t," IS NOT EMPTY"):"!!".concat(t)},sqlFormatOp:function(t,i,s,b,M,F,W,J){var ae=this.utils.sqlEmptyValue(J);return"COALESCE(".concat(t,", ").concat(ae,") <> ").concat(ae)},spelFormatOp:function(t,i,s,b,M,F,W,J){return"".concat(t," > ''")},mongoFormatOp:function(){for(var t,i=this,s=arguments.length,b=new Array(s),M=0;M<s;M++)b[M]=arguments[M];return(t=this.utils).mongoFormatOp1.apply(t,["$nin",function(F,W){return[i.utils.mongoEmptyValue(W),null]},!1].concat(b))},jsonLogic:"!!",elasticSearchQueryType:"exists"},is_null:{label:"Is null",labelForFormat:"IS NULL",sqlOp:"IS NULL",sqlImport:function(t,i,s){if(t?.operator==="IS"||t?.operator==="IS NOT"){var b=t.children||[],M=Mt(b,2),F=M[0],W=M[1];if(W?.valueType=="null")return t.operator=t?.operator==="IS"?"is_null":"is_not_null",t.value=F,t}},cardinality:0,reversedOp:"is_not_null",formatOp:function(t,i,s,b,M,F,W,J){return J?"".concat(t," IS NULL"):"!".concat(t)},spelFormatOp:function(t,i,s,b,M,F,W,J){return"".concat(t," == null")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$eq",function(M){return null},!1].concat(s))},jsonLogic:"=="},is_not_null:{label:"Is not null",labelForFormat:"IS NOT NULL",sqlOp:"IS NOT NULL",cardinality:0,reversedOp:"is_null",formatOp:function(t,i,s,b,M,F,W,J){return J?"".concat(t," IS NOT NULL"):"!!".concat(t)},spelFormatOp:function(t,i,s,b,M,F,W,J){return"".concat(t," != null")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$ne",function(M){return null},!1].concat(s))},jsonLogic:"!=",elasticSearchQueryType:"exists"},select_equals:{label:"==",labelForFormat:"==",sqlOp:"=",formatOp:function(t,i,s,b,M,F,W,J){var ae=J?"=":"==";return"".concat(t," ").concat(ae," ").concat(s)},spelOp:"==",spelOps:["==","eq"],mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$eq",function(M){return M},!1].concat(s))},reversedOp:"select_not_equals",jsonLogic:"==",elasticSearchQueryType:"term"},select_not_equals:{isNotOp:!0,label:"!=",labelForFormat:"!=",sqlOp:"<>",sqlOps:["<>","!="],formatOp:function(t,i,s,b,M,F,W,J){return"".concat(t," != ").concat(s)},spelOp:"!=",spelOps:["!=","ne"],mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$ne",function(M){return M},!1].concat(s))},reversedOp:"select_equals",jsonLogic:"!="},select_any_in:{label:"Any in",labelForFormat:"IN",sqlOp:"IN",formatOp:function(t,i,s,b,M,F,W,J){return b=="value"?"".concat(t," IN (").concat(s.join(", "),")"):"".concat(t," IN (").concat(s,")")},sqlFormatOp:function(t,i,s,b,M,F,W,J){if(b=="value")return"".concat(t," IN (").concat(s.join(", "),")")},valueTypes:["multiselect"],spelOp:"${1}.contains(${0})",mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$in",function(M){return M},!1].concat(s))},reversedOp:"select_not_any_in",jsonLogic:"in",elasticSearchQueryType:"term"},select_not_any_in:{isNotOp:!0,label:"Not in",labelForFormat:"NOT IN",sqlOp:"NOT IN",formatOp:function(t,i,s,b,M,F,W,J){return b=="value"?"".concat(t," NOT IN (").concat(s.join(", "),")"):"".concat(t," NOT IN (").concat(s,")")},sqlFormatOp:function(t,i,s,b,M,F,W,J){if(b=="value")return"".concat(t," NOT IN (").concat(s.join(", "),")")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$nin",function(M){return M},!1].concat(s))},reversedOp:"select_any_in",jsonLogic:function(t,i,s){return{"!":{in:[t,s]}}},jsonLogic2:"!in",_jsonLogicIsExclamationOp:!0},multiselect_contains:{label:"Contains",labelForFormat:"CONTAINS",valueTypes:["multiselect"],formatOp:function(t,i,s,b,M,F,W,J){return b=="value"?"".concat(t," CONTAINS [").concat(s.join(", "),"]"):"".concat(t," CONTAINS ").concat(s)},reversedOp:"multiselect_not_contains",jsonLogic2:"some-in",jsonLogic:function(t,i,s){return{some:[t,{in:[{var:""},s]}]}},spelOp:"T(CollectionUtils).containsAny(${0}, ${1})",spelImportFuncs:[{obj:{type:"property",val:"CollectionUtils"},methodName:"containsAny",args:[{var:"0"},{var:"1"}]}],elasticSearchQueryType:"term",mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$in",function(M){return M},!1].concat(s))}},multiselect_not_contains:{isNotOp:!0,label:"Not contains",labelForFormat:"NOT CONTAINS",valueTypes:["multiselect"],formatOp:function(t,i,s,b,M,F,W,J){return b=="value"?"".concat(t," NOT CONTAINS [").concat(s.join(", "),"]"):"".concat(t," NOT CONTAINS ").concat(s)},reversedOp:"multiselect_contains",jsonLogic2:"!some-in",jsonLogic:function(t,i,s){return{"!":{some:[t,{in:[{var:""},s]}]}}},_jsonLogicIsExclamationOp:!0},multiselect_equals:{label:"Equals",labelForFormat:"==",sqlOp:"=",valueTypes:["multiselect"],formatOp:function(t,i,s,b,M,F,W,J){var ae=J?"=":"==";return b=="value"?"".concat(t," ").concat(ae," [").concat(s.join(", "),"]"):"".concat(t," ").concat(ae," ").concat(s)},sqlFormatOp:function(t,i,s,b,M,F,W,J){var ae=this;if(b=="value")return"".concat(t," = '").concat(s.map(function(Re){return ae.utils.SqlString.trim(Re)}).join(","),"'")},spelOp:"${0}.equals(${1})",mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$eq",function(M){return M},!1].concat(s))},reversedOp:"multiselect_not_equals",jsonLogic2:"all-in",jsonLogic:function(t,i,s){return{all:[t,{in:[{var:""},s]}]}},elasticSearchQueryType:"term"},multiselect_not_equals:{isNotOp:!0,label:"Not equals",labelForFormat:"!=",sqlOp:"<>",sqlOps:["<>","!="],valueTypes:["multiselect"],formatOp:function(t,i,s,b,M,F,W,J){return b=="value"?"".concat(t," != [").concat(s.join(", "),"]"):"".concat(t," != ").concat(s)},sqlFormatOp:function(t,i,s,b,M,F,W,J){var ae=this;if(b=="value")return"".concat(t," != '").concat(s.map(function(Re){return ae.utils.SqlString.trim(Re)}).join(","),"'")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$ne",function(M){return M},!1].concat(s))},reversedOp:"multiselect_equals",jsonLogic2:"!all-in",jsonLogic:function(t,i,s){return{"!":{all:[t,{in:[{var:""},s]}]}}},_jsonLogicIsExclamationOp:!0},proximity:{label:"Proximity search",cardinality:2,valueLabels:[{label:"Word 1",placeholder:"Enter first word"},{label:"Word 2",placeholder:"Enter second word"}],textSeparators:[],formatOp:function(t,i,s,b,M,F,W,J){var ae=s.first(),Re=s.get(1),He=W?.get("proximity");return"".concat(t," ").concat(ae," NEAR/").concat(He," ").concat(Re)},sqlFormatOp:function(t,i,s,b,M,F,W,J){var ae=s.first(),Re=s.get(1),He=this.utils.SqlString.trim(ae),at=this.utils.SqlString.trim(Re),Bt=W?.get("proximity");return"CONTAINS(".concat(t,", 'NEAR((").concat(He,", ").concat(at,"), ").concat(Bt,")')")},sqlImport:function(t,i,s){if(t?.func==="CONTAINS"){var b,M=t.children||[],F=Mt(M,2),W=F[0],J=F[1];if(J!=null&&(b=J.value)!==null&&b!==void 0&&b.includes("NEAR(")){var ae=J.value.match(/NEAR\(\((\w+), (\w+)\), (\d+)\)/);if(ae)return delete t.func,t.operator="proximity",t.children=[W,{value:ae[1]},{value:ae[2]}],t.operatorOptions={proximity:parseInt(ae[3])},t}}},mongoFormatOp:void 0,jsonLogic:void 0,options:{optionLabel:"Near",optionTextBefore:"Near",optionPlaceholder:"Select words between",minProximity:2,maxProximity:10,defaults:{proximity:2}}},some:{label:"Some",labelForFormat:"SOME",cardinality:0,jsonLogic:"some",spelFormatOp:function(t){return"".concat(t," > 0")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$gt",function(M){return 0},!1].concat(s))}},all:{label:"All",labelForFormat:"ALL",cardinality:0,jsonLogic:"all",spelFormatOp:function(t,i,s){return"".concat(t," == ").concat(s)},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$eq",function(M){return M},!1].concat(s))}},none:{label:"None",labelForFormat:"NONE",cardinality:0,jsonLogic:"none",spelFormatOp:function(t){return"".concat(t," == 0")},mongoFormatOp:function(){for(var t,i=arguments.length,s=new Array(i),b=0;b<i;b++)s[b]=arguments[b];return(t=this.utils).mongoFormatOp1.apply(t,["$eq",function(M){return 0},!1].concat(s))}}},fS={text:{type:"text",jsType:"string",valueSrc:"value",valueLabel:"String",valuePlaceholder:"Enter string",formatValue:function(t,i,s,b){return b?this.utils.stringifyForDisplay(t):JSON.stringify(t)},spelFormatValue:function(t,i,s,b,M){return this.utils.spelEscape(t)},sqlFormatValue:function(t,i,s,b,M,F,W){return M.sqlOp=="LIKE"||M.sqlOp=="NOT LIKE"?this.utils.SqlString.escapeLike(t,b!="starts_with",b!="ends_with",W):this.utils.SqlString.escape(t)},toJS:function(t,i){return t},mongoFormatValue:function(t,i,s){return t}},textarea:{type:"text",jsType:"string",valueSrc:"value",valueLabel:"Text",valuePlaceholder:"Enter text",formatValue:function(t,i,s,b){return b?this.utils.stringifyForDisplay(t):JSON.stringify(t)},sqlFormatValue:function(t,i,s,b,M,F,W){return M.sqlOp=="LIKE"||M.sqlOp=="NOT LIKE"?this.utils.SqlString.escapeLike(t,b!="starts_with",b!="ends_with",W):this.utils.SqlString.escape(t)},spelFormatValue:function(t){return this.utils.spelEscape(t)},toJS:function(t,i){return t},mongoFormatValue:function(t,i,s){return t},fullWidth:!0},number:{type:"number",jsType:"number",valueSrc:"value",valueLabel:"Number",valuePlaceholder:"Enter number",valueLabels:[{label:"Number from",placeholder:"Enter number from"},{label:"Number to",placeholder:"Enter number to"}],formatValue:function(t,i,s,b){return b?this.utils.stringifyForDisplay(t):JSON.stringify(t)},sqlFormatValue:function(t,i,s,b,M,F,W){return this.utils.SqlString.escape(t)},spelFormatValue:function(t,i,s){var b=s.step&&!Number.isInteger(s.step);return this.utils.spelEscape(t,b)},toJS:function(t,i){return t},mongoFormatValue:function(t,i,s){return t}},slider:{type:"number",jsType:"number",valueSrc:"value",valueLabel:"Number",valuePlaceholder:"Enter number or move slider",formatValue:function(t,i,s,b){return b?this.utils.stringifyForDisplay(t):JSON.stringify(t)},sqlFormatValue:function(t,i,s,b,M,F,W){return this.utils.SqlString.escape(t)},spelFormatValue:function(t){return this.utils.spelEscape(t)},toJS:function(t,i){return t},mongoFormatValue:function(t,i,s){return t}},select:{type:"select",jsType:"string",valueSrc:"value",valueLabel:"Value",valuePlaceholder:"Select value",formatValue:function(t,i,s,b){var M=this.utils.getTitleInListValues(i.fieldSettings.listValues||i.asyncListValues,t);return b?this.utils.stringifyForDisplay(M):JSON.stringify(t)},sqlFormatValue:function(t,i,s,b,M,F,W){return this.utils.SqlString.escape(t)},spelFormatValue:function(t){return this.utils.spelEscape(t)},toJS:function(t,i){return t},mongoFormatValue:function(t,i,s){return t}},multiselect:{type:"multiselect",jsType:"array",valueSrc:"value",valueLabel:"Values",valuePlaceholder:"Select values",formatValue:function(t,i,s,b){var M=this,F=t.map(function(W){return M.utils.getTitleInListValues(i.fieldSettings.listValues||i.asyncListValues,W)});return b?F.map(this.utils.stringifyForDisplay):t.map(JSON.stringify)},sqlFormatValue:function(t,i,s,b,M,F,W){var J=this;return t.map(function(ae){return J.utils.SqlString.escape(ae)})},spelFormatValue:function(t,i,s,b,M){var F=M&&M.spelOp&&M.spelOp.startsWith("${1}"),W=this.utils.spelEscape(t);return F&&(W=this.utils.spelFixList(W)),W},toJS:function(t,i){return t},mongoFormatValue:function(t,i,s){return t}},date:{type:"date",jsType:"string",valueSrc:"value",dateFormat:"DD.MM.YYYY",valueFormat:"YYYY-MM-DD",valueLabel:"Date",valuePlaceholder:"Enter date",valueLabels:[{label:"Date from",placeholder:"Enter date from"},{label:"Date to",placeholder:"Enter date to"}],formatValue:function(t,i,s,b){var M=this.utils.moment(t,s.valueFormat);return b?M.format(s.dateFormat):JSON.stringify(t)},sqlFormatValue:function(t,i,s,b,M,F,W){var J=this.utils.moment(t,s.valueFormat);return this.utils.SqlString.escape(J.format("YYYY-MM-DD"))},spelFormatValue:function(t,i,s,b,M){var F=this.utils.moment(t,s.valueFormat),W=F.format("YYYY-MM-DD"),J="yyyy-MM-dd";return"T(java.time.LocalDate).parse('".concat(W,"', T(java.time.format.DateTimeFormatter).ofPattern('").concat(J,"'))")},spelImportFuncs:[{obj:{cls:["java","time","LocalDate"]},methodName:"parse",args:[{var:"v"},{obj:{cls:["java","time","format","DateTimeFormatter"]},methodName:"ofPattern",args:[{var:"fmt"}]}]}],spelImportValue:function(t,i,s){var b,M,F,W;if(!i)return[void 0,"No widget def to get value format"];if(s!=null&&(b=s.fmt)!==null&&b!==void 0&&(b=b.value)!==null&&b!==void 0&&(M=b.includes)!==null&&M!==void 0&&M.call(b," ")||(F=s.fmt)!==null&&F!==void 0&&(F=F.value)!==null&&F!==void 0&&(W=F.toLowerCase)!==null&&W!==void 0&&W.call(F).includes("hh:mm"))return[void 0,"Invalid date format ".concat(JSON.stringify(s.fmt))];var J=this.utils.moment(t.value,this.utils.moment.ISO_8601);return J.isValid()?[J.format(i?.valueFormat),[]]:[void 0,"Invalid date"]},jsonLogic:function(t,i,s){return this.utils.moment.utc(t,s.valueFormat).toDate()},toJS:function(t,i){var s=this.utils.moment(t,i.valueFormat);return s.isValid()?s.toDate():void 0},mongoFormatValue:function(t,i,s){var b=this.utils.moment(t,s.valueFormat);if(b.isValid())return{$dateFromString:{dateString:b.format("YYYY-MM-DD"),format:"%Y-%m-%d"}}}},time:{type:"time",jsType:"string",valueSrc:"value",timeFormat:"HH:mm",valueFormat:"HH:mm:ss",use12Hours:!1,valueLabel:"Time",valuePlaceholder:"Enter time",valueLabels:[{label:"Time from",placeholder:"Enter time from"},{label:"Time to",placeholder:"Enter time to"}],formatValue:function(t,i,s,b){var M=this.utils.moment(t,s.valueFormat);return b?M.format(s.timeFormat):JSON.stringify(t)},sqlFormatValue:function(t,i,s,b,M,F,W){var J=this.utils.moment(t,s.valueFormat);return this.utils.SqlString.escape(J.format("HH:mm:ss"))},spelFormatValue:function(t,i,s,b,M){var F=this.utils.moment(t,s.valueFormat),W="HH:mm:ss",J=F.format("HH:mm:ss");return"T(java.time.LocalTime).parse('".concat(J,"')")},spelImportFuncs:["T(java.time.LocalTime).parse(${v})"],spelImportValue:function(t,i,s){var b,M,F;if(!i)return[void 0,"No widget def to get value format"];if(s!=null&&s.fmt&&(!((b=s.fmt)!==null&&b!==void 0&&(b=b.value)!==null&&b!==void 0&&(M=b.toLowerCase)!==null&&M!==void 0&&M.call(b).includes("hh:mm"))||(F=s.fmt)!==null&&F!==void 0&&(F=F.value)!==null&&F!==void 0&&F.includes(" ")))return[void 0,"Invalid time format ".concat(JSON.stringify(s.fmt))];var W=this.utils.moment(t.value,"HH:mm:ss");return W.isValid()?[W.format(i?.valueFormat),[]]:[void 0,"Invalid date"]},jsonLogic:function(t,i,s){var b=this.utils.moment(t,s.valueFormat);return b.get("hour")*60*60+b.get("minute")*60+b.get("second")},toJS:function(t,i){var s=this.utils.moment(t,i.valueFormat);return s.isValid()?s.get("hour")*60*60+s.get("minute")*60+s.get("second"):void 0},mongoFormatValue:function(t,i,s){var b=this.utils.moment(t,s.valueFormat);return b.get("hour")*60*60+b.get("minute")*60+b.get("second")},elasticSearchFormatValue:function(t,i,s,b){return{script:{script:{source:"doc[".concat(b,"][0].getHour() >== params.min && doc[").concat(b,"][0].getHour() <== params.max"),params:{min:i[0],max:i[1]}}}}}},datetime:{type:"datetime",jsType:"string",valueSrc:"value",timeFormat:"HH:mm",dateFormat:"DD.MM.YYYY",valueFormat:"YYYY-MM-DD HH:mm:ss",use12Hours:!1,valueLabel:"Datetime",valuePlaceholder:"Enter datetime",valueLabels:[{label:"Datetime from",placeholder:"Enter datetime from"},{label:"Datetime to",placeholder:"Enter datetime to"}],formatValue:function(t,i,s,b){var M=this.utils.moment(t,s.valueFormat);return b?M.format(s.dateFormat+" "+s.timeFormat):JSON.stringify(t)},sqlFormatValue:function(t,i,s,b,M,F,W){var J=this.utils.moment(t,s.valueFormat);return this.utils.SqlString.escape(J.toDate())},spelFormatValue:function(t,i,s,b,M){var F=this.utils.moment(t,s.valueFormat),W=F.format("YYYY-MM-DD HH:mm:ss"),J="yyyy-MM-dd HH:mm:ss";return"T(java.time.LocalDateTime).parse('".concat(W,"', T(java.time.format.DateTimeFormatter).ofPattern('").concat(J,"'))")},spelImportFuncs:[{obj:{cls:["java","time","LocalDateTime"]},methodName:"parse",args:[{var:"v"},{obj:{cls:["java","time","format","DateTimeFormatter"]},methodName:"ofPattern",args:[{var:"fmt"}]}]}],spelImportValue:function(t,i,s){var b,M;if(!i)return[void 0,"No widget def to get value format"];if(!(s!=null&&(b=s.fmt)!==null&&b!==void 0&&(b=b.value)!==null&&b!==void 0&&(M=b.includes)!==null&&M!==void 0&&M.call(b," ")))return[void 0,"Invalid datetime format ".concat(JSON.stringify(s.fmt))];var F=this.utils.moment(t.value,this.utils.moment.ISO_8601);return F.isValid()?[F.format(i?.valueFormat),[]]:[void 0,"Invalid date"]},jsonLogic:function(t,i,s){return this.utils.moment(t,s.valueFormat).toDate()},toJS:function(t,i){var s=this.utils.moment(t,i.valueFormat);return s.isValid()?s.toDate():void 0},mongoFormatValue:function(t,i,s){var b=this.utils.moment(t,s.valueFormat);if(b.isValid())return{$dateFromString:{dateString:b.format("YYYY-MM-DD HH:mm:ss"),format:"%Y-%m-%d %H:%M:%S"}}}},boolean:{type:"boolean",jsType:"boolean",valueSrc:"value",labelYes:"Yes",labelNo:"No",formatValue:function(t,i,s,b){return b?t?"Yes":"No":JSON.stringify(!!t)},sqlFormatValue:function(t,i,s,b,M,F,W){return this.utils.SqlString.escape(t)},spelFormatValue:function(t,i,s,b,M){return this.utils.spelEscape(t)},defaultValue:!1,toJS:function(t,i){return t},mongoFormatValue:function(t,i,s){return t}},field:{valueSrc:"field",formatValue:function(t,i,s,b,M,F,W){return b&&W.label||t},sqlFormatValue:function(t,i,s,b,M,F,W){return t},spelFormatValue:function(t,i,s,b,M){return t},valueLabel:"Field to compare",valuePlaceholder:"Select field to compare"},func:{valueSrc:"func",valueLabel:"Function",valuePlaceholder:"Select function"},case_value:{valueSrc:"value",type:"case_value",spelFormatValue:function(t){return this.utils.spelEscape(t===""?null:t)},spelImportValue:function(t){return[t.value,[]]},jsonLogic:function(t){return t===""?null:t}}},dS={text:{defaultOperator:"equal",mainWidget:"text",widgets:{text:{operators:["equal","not_equal","like","not_like","starts_with","ends_with","proximity","is_empty","is_not_empty","is_null","is_not_null"],widgetProps:{},opProps:{}},textarea:{operators:["equal","not_equal","like","not_like","starts_with","ends_with","is_empty","is_not_empty","is_null","is_not_null"],widgetProps:{},opProps:{}},field:{operators:["equal","not_equal","proximity"]}}},number:{defaultOperator:"equal",mainWidget:"number",widgets:{number:{operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_null","is_not_null"]},slider:{operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","is_null","is_not_null"]}}},date:{defaultOperator:"equal",widgets:{date:{operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_null","is_not_null"]}}},time:{defaultOperator:"equal",widgets:{time:{operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_null","is_not_null"]}}},datetime:{defaultOperator:"equal",widgets:{datetime:{operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_null","is_not_null"]}}},select:{mainWidget:"select",defaultOperator:"select_equals",widgets:{select:{operators:["select_equals","select_not_equals","is_null","is_not_null"]},multiselect:{operators:["select_any_in","select_not_any_in","is_null","is_not_null"]}}},multiselect:{defaultOperator:"multiselect_equals",widgets:{multiselect:{operators:["multiselect_contains","multiselect_not_contains","multiselect_equals","multiselect_not_equals","is_null","is_not_null"]}}},boolean:{defaultOperator:"equal",widgets:{boolean:{operators:["equal","not_equal","is_null","is_not_null"],widgetProps:{}},field:{operators:["equal","not_equal"]}}},"!group":{defaultOperator:"some",mainWidget:"number",widgets:{number:{widgetProps:{min:0},operators:["some","all","none","equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between"],opProps:{equal:{label:"Count =="},not_equal:{label:"Count !="},less:{label:"Count <"},less_or_equal:{label:"Count <="},greater:{label:"Count >"},greater_or_equal:{label:"Count >="},between:{label:"Count between"},not_between:{label:"Count not between"}}}}},case_value:{mainWidget:"case_value",widgets:{case_value:{widgetProps:{}}}}},JS=xu(xu({},So),{},{convertableWidgets:{number:["slider","rangeslider"],slider:["number","rangeslider"],rangeslider:["number","slider"],text:["textarea"],textarea:["text"]},formatSpelField:function(t,i,s,b,M,F){var W=this,J=b.map(function(ae,Re){var He=ae.key,at=ae.parent,Bt=ae.fieldSeparator;return Re==0?at=="[map]"?"#this[".concat(W.utils.spelEscape(He),"]"):(at=="[class]",He):at=="map"||at=="[map]"?"[".concat(W.utils.spelEscape(He),"]"):(at=="class"||at=="[class]","".concat(Bt).concat(He))}).join("");return M.fieldName&&(J=t),M.isSpelVariable&&(J="#"+J),J},sqlFormatReverse:function(t){if(t!=null)return"NOT"+this.utils.wrapWithBrackets(t)},spelFormatReverse:function(t){if(t!=null)return"!"+this.utils.wrapWithBrackets(t)},formatReverse:function(t,i,s,b,M,F){if(t!=null)return F?"NOT "+this.utils.wrapWithBrackets(t):"!"+this.utils.wrapWithBrackets(t)},formatAggr:function(t,i,s,b,M,F,W,J,ae,Re){var He=W.labelForFormat,at=W.cardinality;if(at==0){var Bt=t?" HAVE ".concat(t):"";return"".concat(He," OF ").concat(i).concat(Bt)}else if(at==null||at==1){var Sn=t?" WHERE ".concat(t):"";return"COUNT OF ".concat(i).concat(Sn," ").concat(He," ").concat(b)}else if(at==2){var yn=t?" WHERE ".concat(t):"",xn=b.first(),sr=b.get(1);return"COUNT OF ".concat(i).concat(yn," ").concat(He," ").concat(xn," AND ").concat(sr)}},jsonLogic:{groupVarKey:"var",altVarKey:"var",lockedOp:"locked"},canCompareFieldWithField:function(t,i,s,b){return!0},valueSourcesInfo:{value:{label:"Value"},field:{label:"Field",widget:"field"},func:{label:"Function",widget:"func"}}}),hS=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b={rangeslider:G,treeselect:pe,treemultiselect:$e,rangeable__date:_("date","date")},M=Cl(i),F;try{for(M.s();!(F=M.n()).done;){var W=F.value,J=b[W];if(J)t=J(t,s);else throw new Error("Can't ".concat(s?"add":"remove"," mixin ").concat(W))}}catch(ae){M.e(ae)}finally{M.f()}return t},v0=function(t,i){return hS(t,i,!0)},N=function(t,i){return hS(t,i,!1)},_=function(t,i){return function(s){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,M=s.types;return M=xu(xu({},M),{},tt({},t,xu(xu({},M[t]),{},{widgets:xu({},M[t].widgets)}))),b?M[t].widgets[i]=xu({opProps:{between:{isSpecialRange:!0,textSeparators:[null,null]},not_between:{isSpecialRange:!0,textSeparators:[null,null]}}},M[t].widgets[i]):delete M[t].widgets[i],xu(xu({},s),{},{types:M})}},G=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=t.widgets,b=t.types;return s=xu({},s),i?s.rangeslider=xu({type:"number",jsType:"number",valueSrc:"value",valueLabel:"Range",valuePlaceholder:"Select range",valueLabels:[{label:"Number from",placeholder:"Enter number from"},{label:"Number to",placeholder:"Enter number to"}],formatValue:function(F,W,J,ae){return ae?this.utils.stringifyForDisplay(F):JSON.stringify(F)},sqlFormatValue:function(F,W,J,ae,Re,He,at){return this.utils.SqlString.escape(F)},spelFormatValue:function(F){return this.utils.spelEscape(F)},singleWidget:"slider",toJS:function(F,W){return F}},s.rangeslider):delete s.rangeslider,b=xu(xu({},b),{},{number:xu(xu({},b.number),{},{widgets:xu({},b.number.widgets)})}),i?b.number.widgets.rangeslider=xu({opProps:{between:{isSpecialRange:!0},not_between:{isSpecialRange:!0}},operators:["between","not_between","is_null","is_not_null"]},b.number.widgets.rangeslider):delete b.number.widgets.rangeslider,xu(xu({},t),{},{widgets:s,types:b})},pe=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=t.widgets,b=t.types;return s=xu({},s),i?s.treeselect=xu({type:"treeselect",jsType:"string",valueSrc:"value",valueLabel:"Value",valuePlaceholder:"Select value",formatValue:function(F,W,J,ae){var Re=W.fieldSettings.treeValues||W.fieldSettings.listValues||W.asyncListValues,He=this.utils.getTitleInListValues(Re,F);return ae?this.utils.stringifyForDisplay(He):JSON.stringify(F)},sqlFormatValue:function(F,W,J,ae,Re,He,at){return this.utils.SqlString.escape(F)},spelFormatValue:function(F){return this.utils.spelEscape(F)},toJS:function(F,W){return F}},s.treeselect):delete s.treeselect,b=xu({},b),i?b.treeselect=xu({mainWidget:"treeselect",defaultOperator:"select_equals",widgets:{treeselect:{operators:["select_equals","select_not_equals"]},treemultiselect:{operators:["select_any_in","select_not_any_in"]}}},b.treeselect):delete b.treeselect,xu(xu({},t),{},{widgets:s,types:b})},$e=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=t.widgets,b=t.types;return s=xu({},s),i?s.treemultiselect=xu({type:"treemultiselect",jsType:"array",valueSrc:"value",valueLabel:"Values",valuePlaceholder:"Select values",formatValue:function(F,W,J,ae){var Re=this,He=W.fieldSettings.treeValues||W.fieldSettings.listValues||W.asyncListValues,at=F.map(function(Bt){return Re.utils.getTitleInListValues(He,Bt)});return ae?at.map(this.utils.stringifyForDisplay):F.map(JSON.stringify)},sqlFormatValue:function(F,W,J,ae,Re,He,at){var Bt=this;return F.map(function(Sn){return Bt.utils.SqlString.escape(Sn)})},spelFormatValue:function(F){return this.utils.spelEscape(F)},toJS:function(F,W){return F}},s.treemultiselect):delete s.treemultiselect,b=xu({},b),i?b.treemultiselect=xu({defaultOperator:"multiselect_equals",widgets:{treemultiselect:{operators:["multiselect_equals","multiselect_not_equals"]}}},b.treemultiselect):delete b.treemultiselect,xu(xu({},t),{},{widgets:s,types:b})},ct={addMixins:v0,removeMixins:N},Yt={conjunctions:lS,operators:cS,widgets:fS,types:dS,settings:JS,ctx:xl};Yt=v0(Yt,["rangeslider","treeselect","treemultiselect"]);const In=Yt;var br="ADD_GROUP",Ir="ADD_CASE_GROUP",Wr="REMOVE_GROUP",Gr="SET_CONJUNCTION",pi="SET_NOT",Ri="ADD_RULE",Zi="REMOVE_RULE",ia="SET_FIELD",Fa="SET_FIELD_SRC",Ba="SET_OPERATOR",Va="SET_VALUE",Ra="SET_VALUE_SRC",Ya="SET_FUNC_VALUE",Ao="SET_OPERATOR_OPTION",Co="SET_LOCK",ao="SET_TREE",$o="MOVE_ITEM",ko="after",Mo="before",ds="append",po="prepend",Qo="SET_DRAG_PROGRESS",Fo="SET_DRAG_START",Yo="SET_DRAG_END",Ro=u(73916),jo=u.n(Ro);function ss(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function La(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ss(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):ss(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function ts(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Lo(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Lo(c,t){if(c){if(typeof c=="string")return Es(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Es(c,t):void 0}}function Es(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}var ou=function(t,i,s,b,M,F){var W,J=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,ae=arguments.length>7&&arguments[7]!==void 0?arguments[7]:{},Re=t.getIn(bo(i));if(!Re)return t;var He=(M==null||(W=M.get)===null||W===void 0?void 0:W.call(M,"id"))||b,at=F.settings.shouldCreateEmptyGroup,Bt=i.push(He),Sn=!at,yn=!!(ae!=null&&ae.isDefaultCase),xn=t;return t=ws(t,i,s,He,pc(F).merge(Ns(M)||{}),F,J),t!==xn&&(!J&&!yn&&(t=t.setIn(bo(Bt,"children1"),new vo.OrderedMap),Sn&&(t=ws(t,Bt,"rule",es(),bd(F,ae?.parentRuleGroupField),F))),t=Uu(t)),t},hs=function(t,i,s){var b=t.getIn(bo(i));if(!b)return t;t=Gs(t,i);var M=s.settings.canLeaveEmptyGroup,F=i.slice(0,-1),W=!Hf(t,F);if(W&&!M&&(t=ld(t),Rd(t)&&!M)){var J=!1,ae=!1;t=ws(t,new vo.List,"rule",es(),bd(s,void 0,void 0,J,ae),s)}return t=Uu(t),t},Eo=function(t,i,s){var b=t.getIn(bo(i));if(!b)return t;t=Gs(t,i);var M=s.settings.canLeaveEmptyGroup,F=i.pop(),W=t.getIn(bo(F)),J=W.getIn(["properties","field"]),ae=W.getIn(["properties","operator"]),Re=J?as(s,J):null,He=ae?nu(s,ae,J):null,at=J&&ae&&He.cardinality!=0,Bt=W.get("type")=="rule_group",Sn=!Hf(t,F),yn=Bt?at&&Re.initialEmptyWhere:M;if(Sn&&!yn&&(Bt&&(t=t.deleteIn(bo(F))),t=ld(t),Rd(t)&&!M)){var xn=!1,sr=!1;t=ws(t,new vo.List,"rule",es(),bd(s,void 0,void 0,xn,sr),s)}return t=Uu(t),t},ns=function(t,i,s){var b=t.getIn(bo(i));return b&&(t=t.setIn(bo(i,"properties","not"),s)),t},us=function(t,i,s){var b=t.getIn(bo(i));return b&&(t=Gf(t.setIn(bo(i,"properties","isLocked"),s))),t},ys=function(t,i,s){var b=t.getIn(bo(i));return b&&(t=t.setIn(bo(i,"properties","conjunction"),s)),t},ws=function(t,i,s,b,M,F){var W,J=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null;if(s==="switch_group")throw new Error("Can't add switch_group programmatically");var ae=t.getIn(bo(i));if(!ae)return t;var Re=(M==null||(W=M.get)===null||W===void 0?void 0:W.call(M,"id"))||b,He=F.settings,at=He.maxNumberOfCases,Bt=He.maxNumberOfRules,Sn=He.maxNesting,yn=t.get("type"),xn=yn==="switch_group",sr=xn?t.getIn(bo(i.take(2))):null,gr=bo(i,"children1"),Vr=t.getIn(gr),Dr=!!Vr&&Vr.size,li=Dr?Vr.size:null,oi,Ei;if(s==="case_group")oi=li,Ei=at;else if(s==="group"){var sa=Wf(t,i);if(sa.length){var Ki=sa[0],Bi=Ki.path,qi=Ki.field,oa=as(F,qi);oi=i.size-Bi.length,Ei=oa?.maxNesting}else oi=i.size,Ei=Sn}else{var zi=Wf(t,i);if(zi.length){var va=zi[0],ba=va.path,fa=va.field,ga=as(F,fa),da=sc(t,ba);Ei=ga?.maxNumberOfRules,oi=ch(da)}else oi=ch(xn?sr:t),Ei=Bt}var Ca=Ei&&oi?oi<Ei:!0,xa={type:s,id:Re,properties:M};$s(F,xa,J);var Aa=s==="case_group"&&Dr&&Vr.last().get("children1")==null;if(Ca){var ka=new vo.OrderedMap(tt({},Re,new vo.Map(xa)));if(!Dr)t=t.setIn(gr,ka);else if(Aa){var Wa=Vr.last(),ho=new vo.OrderedMap(tt(tt({},Re,new vo.Map(xa)),Wa.get("id"),Wa));t=t.deleteIn(bo(gr,"children1",Wa.get("id"))),t=t.mergeIn(gr,ho)}else t=t.mergeIn(gr,ka);t=Uu(t)}return t},Gs=function(t,i){return t=t.deleteIn(bo(i)),t=Uu(t),t},Qu=function(t,i,s,b,M){var F=sc(t,i),W=i.pop(),J=i.size>1?sc(t,W):null,ae=J?J.get("children1"):null,Re=sc(t,s),He=b==ds||b==po?s:s.pop(),at=b==ds||b==po?Re:s.size>1?sc(t,He):null,Bt=at?at.get("children1"):null;if(!J||!at||!F)return t;var Sn=J.get("id")==at.get("id"),yn=He.size<W.size&&hc(He.toArray(),W.toArray().slice(0,He.size)),xn=He.size>W.size&&hc(W.toArray(),He.toArray().slice(0,W.size)),sr=null,gr=null;yn?sr=vo.List(W.toArray().slice(He.size)):xn&&(gr=vo.List(He.toArray().slice(W.size)));var Vr=Bt,Dr=ae;return xn||(Dr=Dr.delete(F.get("id"))),Sn?Vr=Dr:yn&&(Vr=Vr.updateIn(zf(sr,"children1"),function(li){return Dr})),b==Mo||b==ko?Vr=vo.OrderedMap().withMutations(function(li){var oi=ts(Vr.entries()),Ei;try{for(oi.s();!(Ei=oi.n()).done;){var sa=Mt(Ei.value,2),Ki=sa[0],Bi=sa[1];Ki==Re?.get("id")&&b==Mo&&li.set(F.get("id"),F),li.set(Ki,Bi),Ki==Re?.get("id")&&b==ko&&li.set(F.get("id"),F)}}catch(qi){oi.e(qi)}finally{oi.f()}}):b==ds?Vr=Vr.merge(vo.OrderedMap(tt({},F.get("id"),F))):b==po&&(Vr=vo.OrderedMap(tt({},F.get("id"),F)).merge(Vr)),xn&&(Dr=Dr.updateIn(zf(gr,"children1"),function(li){return Vr}),Dr=Dr.delete(F.get("id"))),!Sn&&!yn&&(t=t.updateIn(bo(W,"children1"),function(li){return Dr})),xn||(t=t.updateIn(bo(He,"children1"),function(li){return Vr})),t=Uu(t),t},dl=function(t,i,s,b){var M=t.getIn(bo(i));if(!M)return t;var F=b.settings.keepInputOnChangeFieldSrc,W=M.get("properties"),J=W?.get("field"),ae=W?.get("fieldType"),Re=as(b,J),He=Re?.type||ae;(!He||He==="!group"||He==="!struct")&&(He=null);var at=!ff.includes(He),Bt=F&&!yl(M,b)&&at;return Bt?(t=t.setIn(bo(i,"properties","field"),null),t=t.deleteIn(bo(i,"properties","fieldError")),t=t.setIn(bo(i,"properties","fieldType"),He)):t=t.setIn(bo(i,"properties"),bd(b,null,null,!1)),t=t.setIn(bo(i,"properties","fieldSrc"),s),t},Xf=function(t,i,s,b,M,F,W,J,ae){var Re=arguments.length>9&&arguments[9]!==void 0?arguments[9]:{},He=i.getIn(bo(s));if(!He)return i;var at=b===-1,Bt=He.get("properties"),Sn=Bt.get("field"),yn=Bt.get("value"),xn=at?Sn:yn.getIn([b]),sr=[],gr=xn,Vr=ts(M||[]),Dr;try{for(Vr.s();!(Dr=Vr.n()).done;){var li=Mt(Dr.value,2),oi=li[0],Ei=li[1];if(sr.push([oi,Ei,gr]),oi!==gr.get("func")){var sa=sr.map(function(ho){var mo=Mt(ho,2),Za=mo[0],is=mo[1];return"".concat(Za,"(").concat(is,")")}).join("/")||"root";throw new Error("In ".concat(at?"LHS":"RHS"," for path ").concat(sa," expected func key ").concat(oi," but got ").concat(gr.get("func")))}gr=gr.getIn(["args",Ei,"value"])}}catch(ho){Vr.e(ho)}finally{Vr.f()}if(F){var qi=gr.get("func"),oa=wu(t,qi),zi=oa.args,va=zi[F];J==="!valueSrc"?gr=Wy(gr,F,W,va,t):(gr=pr(gr,F,W,va,t),ae&&(gr=Gy(gr,F,ae,va,t)))}else{var Ki=W,Bi=!0;gr=Cm(gr,Ki,t,Bi),Re.canDropArgs=!0}for(var ba=gr;sr.length;){var fa=sr.pop(),ga=Mt(fa,3),da=ga[0],Ca=ga[1],xa=ga[2],Aa=wu(t,da),ka=Aa.args,Wa=ka[Ca];ba=pr(xa,Ca,ba,Wa,t)}return at?zs(i,s,ba,t,void 0,Re):Qf(i,s,b,ba,void 0,t,void 0,Re)},zs=function(t,i,s,b,M){var F,W,J,ae,Re=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},He=t.getIn(bo(i));if(!He)return{state:t};var at=Re.isEndValue,Bt=Re.canDropArgs;if(!s)return t=Gs(t,i),{state:t};var Sn=b.settings,yn=Sn.fieldSeparator,xn=Sn.setOpOnChangeField,sr=Sn.showErrorMessage;Array.isArray(s)&&(s=s.join(yn));var gr=He.get("type"),Vr=He.get("properties"),Dr=gr=="rule_group",li=Vr?.get("fieldSrc"),oi=as(b,s);if(!oi)return console.warn("No config for LHS ".concat(s)),{state:t};var Ei=oi.type;(Ei==="!group"||Ei==="!struct")&&(Ei=null);var sa=Vr?.get("operator"),Ki=Vr?.get("operatorOptions"),Bi=Vr?.get("field"),qi=oi.type=="!group",oa=qi&&oi.mode=="array",zi=Dr!=qi,va=oi&&((F=oi.operators)===null||F===void 0?void 0:F.indexOf(sa))!==-1?sa:null,ba=li==="func"&&(Bi==null||(W=Bi.get)===null||W===void 0?void 0:W.call(Bi,"func"))===((J=s)===null||J===void 0||(ae=J.get)===null||ae===void 0?void 0:ae.call(J,"func")),fa=ba&&!!va,ga=null,da=li==="func"?el(b,Ei):Vf(b,s);if(da&&da.length==1)ga=da[0];else if(fa)ga=va;else if(da&&da.length>1){var Ca=ts(xn),xa;try{for(Ca.s();!(xa=Ca.n()).done;){var Aa=xa.value;if(Aa=="keep"&&!zi?ga=va:Aa=="default"?ga=fh(b,s,!1):Aa=="first"&&(ga=Xc(b,s)),ga)break}}catch(Vo){Ca.e(Vo)}finally{Ca.f()}}if(!qi&&!oi.operators)return console.warn("Type ".concat(oi.type," is not supported")),{state:t};Dr&&!qi&&(t=t.setIn(bo(i,"type"),"rule"),t=t.deleteIn(bo(i,"children1")),t=t.setIn(bo(i,"properties"),new vo.OrderedMap)),Vr||(t=t.setIn(bo(i,"properties"),new vo.OrderedMap));var ka=!sr;if(qi){t=t.setIn(bo(i,"type"),"rule_group");var Wa=kh({validateValue:yd,validateRange:rh},b,b,Vr,s,ga,"field",ka,at,Bt),ho=Wa.canReuseValue,mo=Wa.newValue,Za=Wa.newValueSrc,is=Wa.newValueType,Io=Wa.operatorCardinality,Ja=pc(b,oi,s).merge({field:s,fieldSrc:"field",mode:oi.mode});oa&&(Ja=Ja.merge({operator:ga,value:mo,valueSrc:Za,valueType:is})),t=t.setIn(bo(i,"children1"),new vo.OrderedMap),t=t.setIn(bo(i,"properties"),Ja),oi.initialEmptyWhere&&Io==1||(t=ws(t,i,"rule",es(),bd(b,s),b)),t=Uu(t)}else t=t.updateIn(bo(i,"properties"),function(Vo){return Vo.withMutations(function(Wo){var No=kh({validateValue:yd,validateRange:rh},b,b,Wo,s,ga,"field",ka,at,Bt),os=No.canReuseValue,Jo=No.newValue,ps=No.newValueSrc,Ps=No.newValueType,Ss=No.newValueError,xs=No.newFieldError,Gu=No.fixedField,Cu=s,Fu=Gu!==s;Fu&&(Cu=Gu),sr&&(Wo=Wo.set("fieldError",xs),Wo=Wo.set("valueError",Ss));var eu=os?Ki:Pd(b,ga,Cu);return Wo=Wo.set("field",Cu).delete("fieldType").set("fieldSrc",li).set("operator",ga).set("operatorOptions",eu).set("value",Jo).set("valueSrc",ps).set("valueType",Ps),os||(Wo=Wo.delete("asyncListValues")),Wo})});return{state:t}},hl=function(t,i,s,b){var M=t.getIn(bo(i));if(!M)return t;var F=b.settings.showErrorMessage,W=M.get("properties"),J=M.get("children1"),ae=W.get("field"),Re=W.get("fieldSrc"),He=as(b,ae),at=He?.type=="!group",Bt=nu(b,s,ae),Sn=Bt?Mu(Bt):null,yn=!0;return t=t.updateIn(bo(i,"properties"),function(xn){return xn.withMutations(function(sr){var gr=sr.get("field"),Vr=sr.get("operatorOptions"),Dr=sr.get("value",new vo.List),li=sr.get("valueSrc",new vo.List),oi=sr.get("operator"),Ei=kh({validateValue:yd,validateRange:rh},b,b,sr,gr,s,"operator",yn),sa=Ei.canReuseValue,Ki=Ei.newValue,Bi=Ei.newValueSrc,qi=Ei.newValueType,oa=Ei.newValueError;F&&(sr=sr.set("valueError",oa));var zi=sa?Vr:Pd(b,s,gr);return sa||(sr=sr.delete("asyncListValues")),sr.set("operator",s).set("operatorOptions",zi).set("value",Ki).set("valueSrc",Bi).set("valueType",qi)})}),at&&Sn==0&&J.size==0&&(t=ws(t,i,"rule",es(),bd(b,ae),b)),t},Qf=function(t,i,s,b,M,F,W){var J=arguments.length>7&&arguments[7]!==void 0?arguments[7]:{},ae=t.getIn(bo(i));if(!ae)return{state:t};var Re=J.canDropArgs,He=J.isEndValue,at=F.settings,Bt=at.fieldSeparator,Sn=at.showErrorMessage,yn=t.getIn(bo(i,"properties","valueSrc",s+""))||null;yn==="field"&&Array.isArray(b)&&(b=b.join(Bt));var xn=t.getIn(bo(i,"properties","field"))||null,sr=t.getIn(bo(i,"properties","operator"))||null,gr=nu(F,sr,xn),Vr=sr?Mu(gr):null,Dr=M||Vu(b,yn,F),li=!Sn,oi=yd(F,xn,xn,sr,b,Dr,yn,W,li,He,Re),Ei=Mt(oi,2),sa=Ei[0],Ki=Ei[1],Bi=Ki?.find(function(xa){return!xa.fixed&&!xa.ignore}),qi=Bi?gf(Bi):null,oa=sa!==b;oa&&(b=sa),t=tl(t,i,F,Vr);var zi=Array.from({length:Vr},function(xa,Aa){return Aa==s?b:t.getIn(bo(i,"properties","value",Aa+""))||null}),va=Array.from({length:Vr},function(xa,Aa){return t.getIn(bo(i,"properties","valueSrc",Aa+""))||null}),ba=rh(F,xn,sr,zi,va),fa=ba?gf(ba):null,ga=!qi&&!fa,da=Sn?!0:ga||oa;if(da&&(t=t.deleteIn(bo(i,"properties","asyncListValues")),typeof b>"u"?(t=t.setIn(bo(i,"properties","value",s),void 0),t=t.setIn(bo(i,"properties","valueType",s),null)):(W&&(t=t.setIn(bo(i,"properties","asyncListValues"),W)),t=t.setIn(bo(i,"properties","value",s),b),t=t.setIn(bo(i,"properties","valueType",s),Dr))),Sn){var Ca=t.getIn(bo(i,"properties","valueError"));Ca||(t=t.setIn(bo(i,"properties","valueError"),new vo.List(new Array(Vr)))),t=t.setIn(bo(i,"properties","valueError",s),qi),Vr>=2&&(t=t.setIn(bo(i,"properties","valueError",Vr),fa))}return{state:t}},wh=function(t,i,s,b,M){var F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},W=t.getIn(bo(i));if(!W)return t;var J=M.settings.showErrorMessage,ae=t.getIn(bo(i,"properties","field"))||null,Re=t.getIn(bo(i,"properties","operator"))||null,He=nu(M,Re,ae),at=Re?Mu(He):null;if(t=tl(t,i,M,at),t=t.setIn(bo(i,"properties","value",s+""),void 0),t=t.setIn(bo(i,"properties","valueType",s+""),null),t=t.deleteIn(bo(i,"properties","asyncListValues")),J&&(t=t.setIn(bo(i,"properties","valueError",s),null),He!=null&&He.validateValues&&(t=t.setIn(bo(i,"properties","valueError",at),null))),typeof b>"u"?t=t.setIn(bo(i,"properties","valueSrc",s+""),null):t=t.setIn(bo(i,"properties","valueSrc",s+""),b),b){var Bt=t.getIn(bo(i,"properties")),Sn=!0,yn=kh({validateValue:yd,validateRange:rh},M,M,Bt,ae,Re,"valueSrc",Sn),xn=yn.canReuseValue,sr=yn.newValue,gr=yn.newValueSrc,Vr=yn.newValueType,Dr=yn.newValueError;!xn&&gr.get(s)==b&&(t=t.setIn(bo(i,"properties","value",s+""),sr.get(s)),t=t.setIn(bo(i,"properties","valueType",s+""),Vr.get(s)))}return t},fv=function(t,i,s,b){var M=t.getIn(bo(i));return M?t.setIn(bo(i,"properties","operatorOptions",s),b):t},su=function(t,i){var s=i.settings.canLeaveEmptyGroup;return s||(t=ld(t)),t},tl=function(t,i,s,b){if(!b){var M=t.getIn(bo(i,"properties","field"))||null,F=t.getIn(bo(i,"properties","operator"))||null,W=nu(s,F,M);b=F?Mu(W):null}for(var J=0,ae=["value","valueType","valueError","valueSrc"];J<ae.length;J++){var Re=ae[J];t.getIn(bo(i,"properties",Re))||(t=t.setIn(bo(i,"properties",Re),new vo.List(b?Array.from({length:b}):[])))}return t},$s=function(t,i,s){s&&Array.isArray(s)&&(i.children1=new vo.OrderedMap(s.reduce(function(b,M){var F,W=(F=M.id)!==null&&F!==void 0?F:es(),J=La(La({},M),{},{properties:Ky(t,M).merge(Ns(M.properties)||{}),id:W});return $s(t,J,J.children1),La(La({},b),{},tt({},W,new vo.Map(J)))},{})))},du=function(t,i){var s=t.getIn(bo(i,"properties","field"))||null;return s},Fc={dragging:{id:null,x:null,y:null,w:null,h:null},mousePos:{},dragStart:{id:null}},nl=function(t,i){if(!t||!t.type)return null;var s=["config","asyncListValues"],b=[ao,Fo,Qo,Yo],M=jo()(ms()(t,s),$f),F=t.path&&du(i.tree,t.path)||t.field;if(F){var W;(W=F)!==null&&W!==void 0&&W.toJS&&(F=F.toJS()),M.affectedField=F}return(b.includes(t.type)||t.type.indexOf("@@redux")==0)&&(M=null),M};const nc=function(c,t,i,s,b){var M=t,F=La({tree:M},Fc);return function(){var W,J,ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F,Re=arguments.length>1?arguments[1]:void 0,He=(W=(J=b?.())!==null&&J!==void 0?J:Re?.config)!==null&&W!==void 0?W:c,at={__lastAction:void 0},Bt={},Sn=nl(Re,ae);switch(Re?.type){case ao:{var yn=i(He,Re.tree);Bt.tree=yn;break}case Ir:{Bt.tree=ou(ae.tree,Re.path,"case_group",Re.id,Re.properties,He,Re.children,Re.meta);break}case br:{Bt.tree=ou(ae.tree,Re.path,"group",Re.id,Re.properties,He,Re.children,Re.meta);break}case Wr:{Bt.tree=hs(ae.tree,Re.path,He);break}case Ri:{Bt.tree=ws(ae.tree,Re.path,Re.ruleType,Re.id,Re.properties,He,Re.children);break}case Zi:{Bt.tree=Eo(ae.tree,Re.path,He);break}case Gr:{Bt.tree=ys(ae.tree,Re.path,Re.conjunction);break}case pi:{Bt.tree=ns(ae.tree,Re.path,Re.not);break}case ia:{var xn=zs(ae.tree,Re.path,Re.field,He,Re.asyncListValues,Re._meta),sr=xn.state;Bt.tree=sr;break}case Fa:{Bt.tree=dl(ae.tree,Re.path,Re.srcKey,He);break}case Co:{Bt.tree=us(ae.tree,Re.path,Re.lock);break}case Ba:{Bt.tree=hl(ae.tree,Re.path,Re.operator,He);break}case Va:{var gr=Qf(ae.tree,Re.path,Re.delta,Re.value,Re.valueType,He,Re.asyncListValues,Re._meta),Vr=gr.state;Bt.tree=Vr;break}case Ya:{var Dr=Xf(He,ae.tree,Re.path,Re.delta,Re.parentFuncs,Re.argKey,Re.value,Re.valueType,Re.asyncListValues,Re._meta),li=Dr.state;Bt.tree=li;break}case Ra:{Bt.tree=wh(ae.tree,Re.path,Re.delta,Re.srcKey,He,Re._meta);break}case Ao:{Bt.tree=fv(ae.tree,Re.path,Re.name,Re.value);break}case $o:{Bt.tree=Qu(ae.tree,Re.fromPath,Re.toPath,Re.placement,He);break}case Fo:{Bt.dragStart=Re.dragStart,Bt.dragging=Re.dragging,Bt.mousePos=Re.mousePos;break}case Qo:{Bt.mousePos=Re.mousePos,Bt.dragging=Re.dragging;break}case Yo:{Bt.tree=su(ae.tree,He),Bt=La(La({},Bt),Fc);break}default:break}return Sn&&(Bt.__lastAction=Sn),s&&Bt.tree&&ae.tree&&s(ae.tree),La(La(La({},ae),at),Bt)}};var xh=function(t,i){return{type:ao,tree:i,config:t}},Gd=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"rule",M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,F=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null;return{type:Ri,ruleType:b,children:M,path:Ju(i),id:es(),properties:bd(t,F).merge(Ns(s)||{}),config:t,meta:{parentRuleGroupField:F}}},yf=function(t,i){return{type:Zi,path:Ju(i),config:t}},Sd=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return{type:Ir,path:Ju(i),children:b,id:es(),properties:pc(t).merge(Ns(s)||{}),config:t,meta:{isDefaultCase:!0}}},$h=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return{type:Ir,path:Ju(i),children:b,id:es(),properties:pc(t).merge(Ns(s)||{}),config:t}},dv=function(t,i,s){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;return{type:br,path:Ju(i),children:b,id:es(),properties:pc(t,M).merge(Ns(s)||{}),config:t,meta:{parentRuleGroupField:M}}},Uo=function(t,i){return{type:Wr,path:Ju(i),config:t}},Os=function(t,i,s,b){return{type:$o,fromPath:Ju(i),toPath:Ju(s),placement:b,config:t}},ks=function(t,i,s){return{type:Gr,path:Ju(i),conjunction:s}},sl=function(t,i,s){return{type:pi,path:Ju(i),not:s}},ul=function(t,i,s){return{type:Co,path:Ju(i),lock:s}},rf=function(t,i,s,b,M){return{type:ia,path:Ju(i),field:s,config:t,asyncListValues:b,_meta:M}},gc=function(t,i,s){return{type:Fa,path:Ju(i),srcKey:s,config:t}},bf=function(t,i,s){return{type:Ba,path:Ju(i),operator:s,config:t}},qf=function(t,i,s,b,M,F,W){return{type:Va,path:Ju(i),delta:s,value:b,valueType:M,asyncListValues:F,config:t,_meta:W}},Ch=function(t,i,s,b,M){return{type:Ra,path:Ju(i),delta:s,srcKey:b,config:t,_meta:M}},m0=function(t,i,s,b,M,F,W,J,ae){return{type:Ya,path:Ju(i),delta:s,parentFuncs:b,argKey:M,value:F,valueType:W,asyncListValues:J,config:t,_meta:ae}},AE=function(t,i,s,b){return{type:Ao,path:Ju(i),name:s,value:b,config:t}};function ZS(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function pS(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(i),!0).forEach(function(s){tt(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):ZS(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Ys=pS(pS(pS({},L),{},{Export:v,Import:j,ConfigMixins:ct},v),j),RE=u(83175),Fi=u.n(RE);const PE=nc,Gm=ie.createContext();var IE=u(14644),DE=u(19888),ME=u(69242),kE=u(40961);function LE(c){c()}let XS=LE;const NE=c=>XS=c,FE=()=>XS,QS=Symbol.for("react-redux-context"),qS=typeof globalThis<"u"?globalThis:{};function jE(){var c;if(!ie.createContext)return{};const t=(c=qS[QS])!=null?c:qS[QS]=new Map;let i=t.get(ie.createContext);return i||(i=ie.createContext(null),t.set(ie.createContext,i)),i}const e1=jE(),xO=null;function CO(c=ReactReduxContext){return function(){return useContext(c)}}const OO=null;let t1=null;const BE=c=>{t1=c},$E=(c,t)=>c===t;function TO(c=ReactReduxContext){const t=c===ReactReduxContext?useDefaultReduxContext:createReduxContextHook(c);return function(s,b={}){const{equalityFn:M=$E,stabilityCheck:F=void 0,noopCheck:W=void 0}=typeof b=="function"?{equalityFn:b}:b,{store:J,subscription:ae,getServerState:Re,stabilityCheck:He,noopCheck:at}=t(),Bt=useRef(!0),Sn=useCallback({[s.name](xn){return s(xn)}}[s.name],[s,He,F]),yn=t1(ae.addNestedSub,J.getState,Re||J.getState,Sn,M);return useDebugValue(yn),yn}}const AO=null;function vu(){return vu=Object.assign?Object.assign.bind():function(c){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(c[s]=i[s])}return c},vu.apply(null,arguments)}function vS(c,t){if(c==null)return{};var i={};for(var s in c)if({}.hasOwnProperty.call(c,s)){if(t.indexOf(s)!==-1)continue;i[s]=c[s]}return i}var UE=u(4146),n1=u.n(UE),VE=u(44363);const zE=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function WE(c,t,i,s,{areStatesEqual:b,areOwnPropsEqual:M,areStatePropsEqual:F}){let W=!1,J,ae,Re,He,at;function Bt(gr,Vr){return J=gr,ae=Vr,Re=c(J,ae),He=t(s,ae),at=i(Re,He,ae),W=!0,at}function Sn(){return Re=c(J,ae),t.dependsOnOwnProps&&(He=t(s,ae)),at=i(Re,He,ae),at}function yn(){return c.dependsOnOwnProps&&(Re=c(J,ae)),t.dependsOnOwnProps&&(He=t(s,ae)),at=i(Re,He,ae),at}function xn(){const gr=c(J,ae),Vr=!F(gr,Re);return Re=gr,Vr&&(at=i(Re,He,ae)),at}function sr(gr,Vr){const Dr=!M(Vr,ae),li=!b(gr,J,Vr,ae);return J=gr,ae=Vr,Dr&&li?Sn():Dr?yn():li?xn():at}return function(Vr,Dr){return W?sr(Vr,Dr):Bt(Vr,Dr)}}function GE(c,t){let{initMapStateToProps:i,initMapDispatchToProps:s,initMergeProps:b}=t,M=vS(t,zE);const F=i(c,M),W=s(c,M),J=b(c,M);return WE(F,W,J,c,M)}function HE(c,t){const i={};for(const s in c){const b=c[s];typeof b=="function"&&(i[s]=(...M)=>t(b(...M)))}return i}function mS(c){return function(i){const s=c(i);function b(){return s}return b.dependsOnOwnProps=!1,b}}function r1(c){return c.dependsOnOwnProps?!!c.dependsOnOwnProps:c.length!==1}function i1(c,t){return function(s,{displayName:b}){const M=function(W,J){return M.dependsOnOwnProps?M.mapToProps(W,J):M.mapToProps(W,void 0)};return M.dependsOnOwnProps=!0,M.mapToProps=function(W,J){M.mapToProps=c,M.dependsOnOwnProps=r1(c);let ae=M(W,J);return typeof ae=="function"&&(M.mapToProps=ae,M.dependsOnOwnProps=r1(ae),ae=M(W,J)),ae},M}}function gS(c,t){return(i,s)=>{throw new Error(`Invalid value of type ${typeof c} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function KE(c){return c&&typeof c=="object"?mS(t=>HE(c,t)):c?typeof c=="function"?i1(c,"mapDispatchToProps"):gS(c,"mapDispatchToProps"):mS(t=>({dispatch:t}))}function YE(c){return c?typeof c=="function"?i1(c,"mapStateToProps"):gS(c,"mapStateToProps"):mS(()=>({}))}function JE(c,t,i){return vu({},i,c,t)}function ZE(c){return function(i,{displayName:s,areMergedPropsEqual:b}){let M=!1,F;return function(J,ae,Re){const He=c(J,ae,Re);return M?b(He,F)||(F=He):(M=!0,F=He),F}}}function XE(c){return c?typeof c=="function"?ZE(c):gS(c,"mergeProps"):()=>JE}function QE(){const c=FE();let t=null,i=null;return{clear(){t=null,i=null},notify(){c(()=>{let s=t;for(;s;)s.callback(),s=s.next})},get(){let s=[],b=t;for(;b;)s.push(b),b=b.next;return s},subscribe(s){let b=!0,M=i={callback:s,next:null,prev:i};return M.prev?M.prev.next=M:t=M,function(){!b||t===null||(b=!1,M.next?M.next.prev=M.prev:i=M.prev,M.prev?M.prev.next=M.next:t=M.next)}}}}const a1={notify(){},get:()=>[]};function o1(c,t){let i,s=a1,b=0,M=!1;function F(yn){Re();const xn=s.subscribe(yn);let sr=!1;return()=>{sr||(sr=!0,xn(),He())}}function W(){s.notify()}function J(){Sn.onStateChange&&Sn.onStateChange()}function ae(){return M}function Re(){b++,i||(i=t?t.addNestedSub(J):c.subscribe(J),s=QE())}function He(){b--,i&&b===0&&(i(),i=void 0,s.clear(),s=a1)}function at(){M||(M=!0,Re())}function Bt(){M&&(M=!1,He())}const Sn={addNestedSub:F,notifyNestedSubs:W,handleChangeWrapper:J,isSubscribed:ae,trySubscribe:at,tryUnsubscribe:Bt,getListeners:()=>s};return Sn}const g0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ie.useLayoutEffect:ie.useEffect;function s1(c,t){return c===t?c!==0||t!==0||1/c===1/t:c!==c&&t!==t}function yS(c,t){if(s1(c,t))return!0;if(typeof c!="object"||c===null||typeof t!="object"||t===null)return!1;const i=Object.keys(c),s=Object.keys(t);if(i.length!==s.length)return!1;for(let b=0;b<i.length;b++)if(!Object.prototype.hasOwnProperty.call(t,i[b])||!s1(c[i[b]],t[i[b]]))return!1;return!0}const qE=()=>{throw new Error("uSES not initialized!")},ew=["reactReduxForwardedRef"];let u1=qE;const tw=c=>{u1=c},nw=null,rw=[null,null],PO=c=>{try{return JSON.stringify(c)}catch{return String(c)}};function iw(c,t,i){g0(()=>c(...t),i)}function aw(c,t,i,s,b,M){c.current=s,i.current=!1,b.current&&(b.current=null,M())}function ow(c,t,i,s,b,M,F,W,J,ae,Re){if(!c)return()=>{};let He=!1,at=null;const Bt=()=>{if(He||!W.current)return;const yn=t.getState();let xn,sr;try{xn=s(yn,b.current)}catch(gr){sr=gr,at=gr}sr||(at=null),xn===M.current?F.current||ae():(M.current=xn,J.current=xn,F.current=!0,Re())};return i.onStateChange=Bt,i.trySubscribe(),Bt(),()=>{if(He=!0,i.tryUnsubscribe(),i.onStateChange=null,at)throw at}}const IO=()=>nw;function sw(c,t){return c===t}let DO=!1;function uw(c,t,i,{pure:s,areStatesEqual:b=sw,areOwnPropsEqual:M=yS,areStatePropsEqual:F=yS,areMergedPropsEqual:W=yS,forwardRef:J=!1,context:ae=e1}={}){const Re=ae,He=YE(c),at=KE(t),Bt=XE(i),Sn=!!c;return xn=>{const sr=xn.displayName||xn.name||"Component",gr=`Connect(${sr})`,Vr={shouldHandleStateChanges:Sn,displayName:gr,wrappedComponentName:sr,WrappedComponent:xn,initMapStateToProps:He,initMapDispatchToProps:at,initMergeProps:Bt,areStatesEqual:b,areStatePropsEqual:F,areOwnPropsEqual:M,areMergedPropsEqual:W};function Dr(Ei){const[sa,Ki,Bi]=ie.useMemo(()=>{const{reactReduxForwardedRef:os}=Ei,Jo=vS(Ei,ew);return[Ei.context,os,Jo]},[Ei]),qi=ie.useMemo(()=>sa&&sa.Consumer&&(0,VE.isContextConsumer)(ie.createElement(sa.Consumer,null))?sa:Re,[sa,Re]),oa=ie.useContext(qi),zi=!!Ei.store&&!!Ei.store.getState&&!!Ei.store.dispatch,va=!!oa&&!!oa.store,ba=zi?Ei.store:oa.store,fa=va?oa.getServerState:ba.getState,ga=ie.useMemo(()=>GE(ba.dispatch,Vr),[ba]),[da,Ca]=ie.useMemo(()=>{if(!Sn)return rw;const os=o1(ba,zi?void 0:oa.subscription),Jo=os.notifyNestedSubs.bind(os);return[os,Jo]},[ba,zi,oa]),xa=ie.useMemo(()=>zi?oa:vu({},oa,{subscription:da}),[zi,oa,da]),Aa=ie.useRef(),ka=ie.useRef(Bi),Wa=ie.useRef(),ho=ie.useRef(!1),mo=ie.useRef(!1),Za=ie.useRef(!1),is=ie.useRef();g0(()=>(Za.current=!0,()=>{Za.current=!1}),[]);const Io=ie.useMemo(()=>()=>Wa.current&&Bi===ka.current?Wa.current:ga(ba.getState(),Bi),[ba,Bi]),Ja=ie.useMemo(()=>Jo=>da?ow(Sn,ba,da,ga,ka,Aa,ho,Za,Wa,Ca,Jo):()=>{},[da]);iw(aw,[ka,Aa,ho,Bi,Wa,Ca]);let Vo;try{Vo=u1(Ja,Io,fa?()=>ga(fa(),Bi):Io)}catch(os){throw is.current&&(os.message+=` The error may be correlated with this previous error: ${is.current.stack} `),os}g0(()=>{is.current=void 0,Wa.current=void 0,Aa.current=Vo});const Wo=ie.useMemo(()=>ie.createElement(xn,vu({},Vo,{ref:Ki})),[Ki,xn,Vo]);return ie.useMemo(()=>Sn?ie.createElement(qi.Provider,{value:xa},Wo):Wo,[qi,Wo,xa])}const oi=ie.memo(Dr);if(oi.WrappedComponent=xn,oi.displayName=Dr.displayName=gr,J){const sa=ie.forwardRef(function(Bi,qi){return ie.createElement(oi,vu({},Bi,{reactReduxForwardedRef:qi}))});return sa.displayName=gr,sa.WrappedComponent=xn,n1()(sa,xn)}return n1()(oi,xn)}}const y0=uw;function lw({store:c,context:t,children:i,serverState:s,stabilityCheck:b="once",noopCheck:M="once"}){const F=ie.useMemo(()=>{const ae=o1(c);return{store:c,subscription:ae,getServerState:s?()=>s:void 0,stabilityCheck:b,noopCheck:M}},[c,s,b,M]),W=ie.useMemo(()=>c.getState(),[c]);g0(()=>{const{subscription:ae}=F;return ae.onStateChange=ae.notifyNestedSubs,ae.trySubscribe(),W!==c.getState()&&ae.notifyNestedSubs(),()=>{ae.tryUnsubscribe(),ae.onStateChange=void 0}},[F,W]);const J=t||e1;return ie.createElement(J.Provider,{value:F},i)}const cw=lw;function MO(c=ReactReduxContext){const t=c===ReactReduxContext?useDefaultReduxContext:createReduxContextHook(c);return function(){const{store:s}=t();return s}}const kO=null;function LO(c=ReactReduxContext){const t=c===ReactReduxContext?useDefaultStore:createStoreHook(c);return function(){return t().dispatch}}const NO=null;BE(ME.useSyncExternalStoreWithSelector),tw(DE.useSyncExternalStore),NE(kE.unstable_batchedUpdates);var FO="ADD_GROUP",jO="ADD_CASE_GROUP",BO="REMOVE_GROUP",$O="SET_CONJUNCTION",UO="SET_NOT",VO="ADD_RULE",zO="REMOVE_RULE",WO="SET_FIELD",GO="SET_FIELD_SRC",HO="SET_OPERATOR",KO="SET_VALUE",YO="SET_VALUE_SRC",JO="SET_OPERATOR_OPTION",ZO="SET_LOCK",XO="SET_TREE",QO="MOVE_ITEM",b0="after",S0="before",vp="append",hv="prepend",fw="SET_DRAG_PROGRESS",dw="SET_DRAG_START",hw="SET_DRAG_END",pw=function(t,i){return{type:fw,mousePos:t,dragging:i}},vw=function(t,i,s){return{type:dw,dragStart:t,dragging:i,mousePos:s}},mw=function(){return{type:hw}},l1=I,gw=U,yw=$;function af(c,t,i){return(t=se(t))in c?Object.defineProperty(c,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):c[t]=i,c}function c1(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function f1(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?c1(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):c1(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var bw=function(t){var i;return(i=t?.cardinality)!==null&&i!==void 0?i:1},_0=function(t,i,s){if(!i||!t||t.length<=i)return t;var b=t.substr(0,i-1);return(s?b.substr(0,b.lastIndexOf(" ")):b)+"..."},mp=function(t,i){return t===i?!0:t?.equals(i)},gp=function(t,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t===i?!0:Array.isArray(t)?Sw(t,i,s):t&&typeof t.equals=="function"?t.equals(i):Q(t)==="object"?_w(t,i,s):t===i};function Sw(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(c===t)return!0;if(!c||!t)return!1;var s=c.length;if(t.length!==s)return!1;for(var b=0;b<s;b++){var M=i?gp(c[b],t[b],i):c[b]===t[b];if(!M)return!1}return!0}function _w(c,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(c===t)return!0;if(!c||!t)return!1;var s=Object.keys(c),b=Object.keys(t),M=s.length;if(b.length!==M)return!1;for(var F=0;F<M;F++){var W=s[F],J=i?gp(c[W],t[W],i):c[W]===t[W];if(!J)return!1}return!0}var Ew=function(){var t;return typeof process<"u"&&((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:"production")=="development"},ww=function(){var t;return typeof process<"u"&&((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.NODE_ENV_TEST)=="true"},xw=function(t){if(ww())return f1(f1({},console),{},{log:function(){},debug:function(){},info:function(){}});var i=t??Ew();return i?console:{error:function(){},log:function(){},warn:function(){},debug:function(){},info:function(){}}},Cw=xw(),d1=Ys.Validation.validateAndFixTree,Ow=function(){var t,i,s;return function(b,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return M?(b.__configId===s&&(mp(M,t)||mp(M,i))||(s=b.__configId,t=M,W===!1?i=d1(M,null,b,F||b,!1,!1,!1):i=d1(M,null,b,F||b)),i):null}},Tw=function(t){if(t._reactRootContainer)return"root";if(Object.getOwnPropertyNames(t).filter(function(i){return i.startsWith("__reactContainer")}).length>0)return"container"},h1=function(t){if(t){var i=Tw(t);return i!==void 0?i:h1(t.parentNode)}},p1=function(t){return h1(t)==="root"},E0=function(t,i){return function(s,b){var M=t.props,F=t.state,W=s!=M||b!=F;if(W&&F==b&&M!=s){var J=[];for(var ae in s){var Re=s[ae]!=M[ae];Re&&(i[ae]=="ignore"?Re=!1:i[ae]=="shallow_deep"?Re=!gp(s[ae],M[ae],!0):i[ae]=="shallow"?Re=!gp(s[ae],M[ae]):typeof i[ae]=="function"&&(Re=i[ae](s[ae],M[ae],s,M))),Re&&J.push(ae)}J.length||(W=!1)}return W}},pv=function(t){return function(i,s){return!gp(t.props,i)||!gp(t.state,s)}},Aw=function(){var t=ie.version.split(".").map(parseInt.bind(null,10));return t[0]==16&&t[1]<3||t[0]<16},Sf=function(t){if(t.shouldComponentUpdate||(t.shouldComponentUpdate=pv(t)),Aw())t.componentWillReceiveProps=function(b){t.onPropsChanged(b)};else{var i=t.shouldComponentUpdate,s=function(M,F){var W=!gp(t.props,M);W&&t.onPropsChanged(M);var J=i.call(t,M,F);return J};t.shouldComponentUpdate=s.bind(t)}},v1=function(t,i,s){return jo()(t,function(b){return function(){for(var M=arguments.length,F=new Array(M),W=0;W<M;W++)F[W]=arguments[W];return s(b.apply(void 0,[i].concat(F)))}})};function m1(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function bS(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?m1(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):m1(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function Rw(c,t,i){return t=B(t),T(c,g1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function g1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g1=function(){return!!c})()}var y1=function(c){function t(i){var s;z(this,t),s=Rw(this,t,[i]),s.shouldComponentUpdate=E0(s,{tree:function(F){return!(F===s.oldValidatedTree&&s.oldValidatedTree===s.validatedTree)}}),Sf(s),s._updateActions(i),s.validatedTree=i.getMemoizedTree(i.config,i.tree,void 0,i.sanitizeTree),s.oldValidatedTree=s.validatedTree;var b=i.getBasicConfig(i.config);return i.onInit&&i.onInit(s.validatedTree,b,void 0,s.actions),s}return ue(t,c),te(t,[{key:"_updateActions",value:function(s){var b=s.config,M=s.dispatch;this.actions=v1(bS(bS(bS({},l1),gw),yw),b,M)}},{key:"onPropsChanged",value:function(s){var b=s.onChange,M=this.props.config,F=s.tree,W=this.props.tree,J=s.config;this.oldValidatedTree=this.validatedTree,this.validatedTree=F,M!==J&&(this._updateActions(s),this.validatedTree=s.getMemoizedTree(J,F,M));var ae=!mp(this.validatedTree,this.oldValidatedTree);if(ae){var Re=s.getBasicConfig(J);b&&b(this.validatedTree,Re,s.__lastAction,this.actions)}}},{key:"render",value:function(){var s=this.props,b=s.config,M=s.renderBuilder,F=s.dispatch,W={tree:this.validatedTree,actions:this.actions,config:b,dispatch:F};return M(W)}}])}(ie.Component);y1.propTypes={config:Fi().object.isRequired,onChange:Fi().func,onInit:Fi().func,renderBuilder:Fi().func,tree:Fi().any};var b1=y0(function(c){return{tree:c.tree,__lastAction:c.__lastAction}},null,null,{context:Gm})(y1);b1.displayName="ConnectedQuery";const Pw=b1;function Iw(c,t,i){return t=B(t),T(c,S1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function S1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S1=function(){return!!c})()}var _1=Ys.DefaultUtils.defaultRoot,E1=Ys.ConfigUtils,Dw=E1.createConfigMemo,Mw=E1.extendConfig,w1=function(c){function t(i,s){var b,M,F;z(this,t),F=Iw(this,t,[i,s]),F.setLastTree=function(Dr){F.prevTree&&(F.prevprevTree=F.prevTree),F.prevTree=Dr},F.getConfig=function(){return F.config},F.shouldComponentUpdate=E0(F,{value:function(li,oi){return!1}}),Sf(F);var W=Dw({reactIndex:(b=(M=F._reactInternals)===null||M===void 0?void 0:M.index)!==null&&b!==void 0?b:-1,maxSize:2,canCompile:!0,extendConfig:Mw}),J=W.getExtendedConfig,ae=W.getBasicConfig,Re=W.clearConfigMemo;F.getMemoizedConfig=J,F.getBasicConfig=ae,F.clearConfigMemo=Re,F.getMemoizedTree=Ow();var He=F.getMemoizedConfig(i),at=He.settings.shouldCreateEmptyGroup,Bt=!at,Sn=_1(He,Bt),yn=!!i.value,xn=i.value||Sn,sr=F.getMemoizedTree(He,xn,void 0,yn),gr=PE(He,sr,F.getMemoizedTree,F.setLastTree,F.getConfig),Vr=(0,IE.createStore)(gr);return F.config=He,F.state={store:Vr},F.QueryWrapper=function(Dr){return He.settings.renderProvider(Dr,He.ctx)},F}return ue(t,c),te(t,[{key:"componentWillUnmount",value:function(){this.clearConfigMemo()}},{key:"onPropsChanged",value:function(s){var b=this.props,M=this.config,F=this.getMemoizedConfig(s),W=M!==F,J=this.state.store.getState().tree,ae=!mp(s.value,this.props.value)&&!mp(s.value,J),Re=ae?s.value||_1(s):J,He=ae&&!mp(s.value,this.prevTree)&&!mp(s.value,this.prevprevTree);this.sanitizeTree=He||W;var at=W&&!ae;if(W&&(b.settings.renderProvider!==s.settings.renderProvider&&(this.QueryWrapper=function(Sn){return F.settings.renderProvider(Sn,F.ctx)}),this.config=F),ae||W){var Bt=this.getMemoizedTree(F,Re,at?M:void 0,this.sanitizeTree);this.state.store.dispatch(l1.setTree(F,Bt))}}},{key:"render",value:function(){var s=this.props,b=s.renderBuilder,M=s.get_children,F=s.onChange,W=s.onInit,J=this.state.store,ae=this.config,Re=this.QueryWrapper;return ie.createElement(Re,{config:ae},ie.createElement(cw,{store:J,context:Gm},ie.createElement(Pw,{config:ae,getMemoizedTree:this.getMemoizedTree,getBasicConfig:this.getBasicConfig,sanitizeTree:this.sanitizeTree,onChange:F,onInit:W,renderBuilder:b||M})))}}])}(ie.Component);w1.propTypes={conjunctions:Fi().object.isRequired,fields:Fi().object.isRequired,types:Fi().object.isRequired,operators:Fi().object.isRequired,widgets:Fi().object.isRequired,settings:Fi().object.isRequired,ctx:Fi().object.isRequired,onChange:Fi().func,onInit:Fi().func,renderBuilder:Fi().func,value:Fi().any};function vv(c,t){if(c==null)return{};var i,s,b=vS(c,t);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(c);for(s=0;s<M.length;s++)i=M[s],t.indexOf(i)===-1&&{}.propertyIsEnumerable.call(c,i)&&(b[i]=c[i])}return b}function SS(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function kw(c){if(Array.isArray(c))return SS(c)}function Lw(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}function x1(c,t){if(c){if(typeof c=="string")return SS(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?SS(c,t):void 0}}function Nw(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function of(c){return kw(c)||Lw(c)||x1(c)||Nw()}var Fw=u(46942),_d=u.n(Fw);function jw(c,t,i){return t=B(t),T(c,C1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function C1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C1=function(){return!!c})()}var Bw=Ys.ConfigUtils.getFieldConfig,$w=function(t){var i;return i=function(s){function b(M){var F;return z(this,b),F=jw(this,b,[M]),F.dummyFn=function(){},F.removeSelf=function(){F.props.actions.removeRule(F.props.path)},F.setLock=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;F.props.actions.setLock(F.props.path,W)},F.setField=function(W,J,ae){F.props.actions.setField(F.props.path,W,J,ae)},F.setFieldSrc=function(W){F.props.actions.setFieldSrc(F.props.path,W)},F.setOperator=function(W){F.props.actions.setOperator(F.props.path,W)},F.setOperatorOption=function(W,J){F.props.actions.setOperatorOption(F.props.path,W,J)},F.setValue=function(W,J,ae,Re,He){F.props.actions.setValue(F.props.path,W,J,ae,Re,He)},F.setValueSrc=function(W,J,ae){F.props.actions.setValueSrc(F.props.path,W,J,ae)},F.setFuncValue=function(W,J,ae,Re,He,at,Bt){F.props.actions.setFuncValue(F.props.path,W,J,ae,Re,He,at,Bt)},F.pureShouldComponentUpdate=pv(F),F.dummyFn.isDummyFn=!0,F}return ue(b,s),te(b,[{key:"shouldComponentUpdate",value:function(F,W){var J=this.props,ae=this.state,Re=this.pureShouldComponentUpdate(F,W);if(Re&&ae==W&&J!=F){var He=F.dragging.id||J.dragging.id,at=He==F.id,Bt=[];for(var Sn in F){var yn=F[Sn]!=J[Sn];Sn=="dragging"&&!at&&(yn=!1),yn&&Bt.push(Sn)}Bt.length||(Re=!1)}return Re}},{key:"render",value:function(){var F=this.props.dragging.id==this.props.id,W=Bw(this.props.config,this.props.field),J=this.props.fieldType||W?.type||null,ae=this.props.config.settings.showErrorMessage,Re=W&&W.type=="!struct",He=!F&&this.props.isDraggingTempo,at=this.props,Bt=at.valueError,Sn=at.fieldError,yn=[Sn].concat(of(Bt?.toArray()||[])).filter(function(sr){return!!sr}).shift()||null,xn=yn!=null&&ae;return ie.createElement("div",{className:_d()("group-or-rule-container","rule-container",xn?"rule-with-error":null),"data-id":this.props.id},[F?ie.createElement(t,{key:"dragging",id:this.props.id,groupId:this.props.groupId,lev:this.props.path.size-1,isDraggingMe:!0,isDraggingTempo:!0,dragging:this.props.dragging,setField:this.dummyFn,setFieldSrc:this.dummyFn,setFuncValue:this.dummyFn,setOperator:this.dummyFn,setOperatorOption:this.dummyFn,setLock:this.dummyFn,removeSelf:this.dummyFn,setValue:this.dummyFn,setValueSrc:this.dummyFn,selectedField:this.props.field||null,selectedFieldSrc:this.props.fieldSrc||"field",selectedFieldType:J,parentField:this.props.parentField||null,parentFieldPathSize:this.props.parentFieldPathSize,parentFieldCanReorder:this.props.parentFieldCanReorder,selectedOperator:this.props.operator||null,value:this.props.value||null,valueSrc:this.props.valueSrc||null,valueType:this.props.valueType||null,valueError:this.props.valueError||null,fieldError:this.props.fieldError||null,operatorOptions:this.props.operatorOptions,config:this.props.config,reordableNodesCnt:this.props.reordableNodesCnt,totalRulesCnt:this.props.totalRulesCnt,asyncListValues:this.props.asyncListValues,isLocked:this.props.isLocked,isTrueLocked:this.props.isTrueLocked,parentReordableNodesCnt:this.props.parentReordableNodesCnt}):null,ie.createElement(t,{key:this.props.id,id:this.props.id,groupId:this.props.groupId,lev:this.props.path.size-1,isDraggingMe:F,isDraggingTempo:He,onDragStart:this.props.onDragStart,setLock:He?this.dummyFn:this.setLock,removeSelf:He?this.dummyFn:this.removeSelf,setField:He?this.dummyFn:this.setField,setFieldSrc:He?this.dummyFn:this.setFieldSrc,setFuncValue:He?this.dummyFn:this.setFuncValue,setOperator:He?this.dummyFn:this.setOperator,setOperatorOption:He?this.dummyFn:this.setOperatorOption,setValue:He?this.dummyFn:this.setValue,setValueSrc:He?this.dummyFn:this.setValueSrc,selectedField:this.props.field||null,selectedFieldSrc:this.props.fieldSrc||"field",selectedFieldType:J,parentField:this.props.parentField||null,parentFieldPathSize:this.props.parentFieldPathSize,parentFieldCanReorder:this.props.parentFieldCanReorder,selectedOperator:this.props.operator||null,value:this.props.value||null,valueSrc:this.props.valueSrc||null,valueType:this.props.valueType||null,valueError:this.props.valueError||null,fieldError:this.props.fieldError||null,operatorOptions:this.props.operatorOptions,config:this.props.config,reordableNodesCnt:this.props.reordableNodesCnt,totalRulesCnt:this.props.totalRulesCnt,asyncListValues:this.props.asyncListValues,isLocked:this.props.isLocked,isTrueLocked:this.props.isTrueLocked,parentReordableNodesCnt:this.props.parentReordableNodesCnt})])}}])}(ie.Component),i.propTypes={id:Fi().string.isRequired,groupId:Fi().string,config:Fi().object.isRequired,path:Fi().any.isRequired,operator:Fi().string,field:Fi().any,fieldSrc:Fi().string,fieldType:Fi().string,actions:Fi().object.isRequired,onDragStart:Fi().func,value:Fi().any,valueSrc:Fi().any,asyncListValues:Fi().array,valueError:Fi().any,fieldError:Fi().string,operatorOptions:Fi().object,reordableNodesCnt:Fi().number,parentField:Fi().string,isLocked:Fi().bool,isTrueLocked:Fi().bool,dragging:Fi().object,isDraggingTempo:Fi().bool},i};const Uw=function(c){var t=y0(function(i){return{dragging:i.dragging}},null,null,{context:Gm})($w(c));return t.displayName="ConnectedRuleContainer",t};function Vw(c,t,i){return t=B(t),T(c,O1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function O1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O1=function(){return!!c})()}var T1=Ys.OtherUtils.clone,zw=Ys.TreeUtils.getFlatTree,_S=!1,Ww=function(t){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return i=function(b){function M(F){var W;return z(this,M),W=Vw(this,M,[F]),W._getEventTarget=function(J,ae){return J&&J.__mocked_window||document.body||window},W.onDragStart=function(J,ae,Re){var He=ae.closest(".query-builder");if(!He){console.error("Please change renderBuilder implementation of <Query>: wrap <Builder> with div.query-builder for drag-n-drop support");return}W._isUsingLegacyReactDomRender===void 0&&(W._isUsingLegacyReactDomRender=p1(He)),document.body.classList.add("qb-dragging"),He.classList.add("qb-dragging");var at=He.closest(".query-builder-container")||He;at=W._getScrollParent(at)||document.body;var Bt=at.scrollTop,Sn=W._getDraggableNodeEl(He),yn=W._getPlaceholderNodeEl(He),xn=He.querySelectorAll(".group--children"),sr=xn.length?xn[0]:null,gr;sr&&(gr=window.getComputedStyle(sr,null).getPropertyValue("padding-left"),gr=parseInt(gr));var Vr={id:J,x:ae.offsetLeft,y:ae.offsetTop,w:ae.offsetWidth,h:ae.offsetHeight,itemInfo:W.tree.items[J],paddingLeft:gr},Dr={id:J,x:ae.offsetLeft,y:ae.offsetTop,scrollTop:Bt,clientX:Re.clientX,clientY:Re.clientY,itemInfo:T1(W.tree.items[J]),treeEl:He,treeElContainer:at},li={clientX:Re.clientX,clientY:Re.clientY},oi=W._getEventTarget(Re,Dr);W.eventTarget=oi,oi.addEventListener("mousemove",W.onDrag),oi.addEventListener("mouseup",W.onDragEnd),W.props.setDragStart(Dr,Vr,li)},W.onDrag=function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Re=Object.assign({},W.props.dragging),He=W.props.dragStart,at=Re.paddingLeft,Bt=He.treeElContainer,Sn=Bt.scrollTop;if(Re.itemInfo=W.tree.items[Re.id],!!Re.itemInfo){var yn={clientX:J.clientX,clientY:J.clientY},xn={clientX:He.clientX,clientY:He.clientY};if(J.__mock_dom){var sr=He.treeEl,gr=W._getDraggableNodeEl(sr),Vr=W._getPlaceholderNodeEl(sr);J.__mock_dom({treeEl:sr,dragEl:gr,plhEl:Vr})}if(!He.plX){var Dr=He.treeEl,li=W._getPlaceholderNodeEl(Dr);li&&(He.plX=li.getBoundingClientRect().left+window.scrollX,He.plY=li.getBoundingClientRect().top+window.scrollY)}var oi=He.x,Ei=He.y,sa=He.clientX,Ki=He.clientY,Bi=He.scrollTop,qi={x:oi+(J.clientX-sa),y:Ei+(J.clientY-Ki)+(Sn-Bi)};Re.x=qi.x,Re.y=qi.y,Re.paddingLeft=at,Re.mousePos=yn,Re.startMousePos=xn,W.props.setDragProgress(yn,Re);var oa=ae?W.handleDrag(Re,J,s):!1;oa||J.preventDefault&&J.preventDefault()}},W.onDragEnd=function(){var J=W.props.dragStart.treeEl;W.props.setDragEnd(),J.classList.remove("qb-dragging"),document.body.classList.remove("qb-dragging"),W._cacheEls={};var ae=W.eventTarget||W._getEventTarget();ae.removeEventListener("mousemove",W.onDrag),ae.removeEventListener("mouseup",W.onDragEnd)},W.pureShouldComponentUpdate=pv(W),Sf(W),W.onPropsChanged(F),W}return ue(M,b),te(M,[{key:"onPropsChanged",value:function(W){this.tree=zw(W.tree,W.config)}},{key:"shouldComponentUpdate",value:function(W,J){var ae=this.props,Re=this.state,He=this.pureShouldComponentUpdate(W,J);if(He&&Re==J&&ae!=W){var at=[];for(var Bt in W){var Sn=W[Bt]!=ae[Bt];Sn&&Bt!="dragging"&&Bt!="mousePos"&&at.push(Bt)}at.length||(He=!1)}return He}},{key:"componentDidUpdate",value:function(W,J){var ae=this.props.dragging,Re=this.props.dragStart;if(_S=!1,Re&&Re.id&&(ae.itemInfo=this.tree.items[ae.id],ae.itemInfo&&(ae.itemInfo.index!=Re.itemInfo.index||ae.itemInfo.parent!=Re.itemInfo.parent))){var He=Re.treeEl,at=Re.treeElContainer,Bt=this._getPlaceholderNodeEl(He,!0);if(Bt){var Sn=Bt.getBoundingClientRect().left+window.scrollX,yn=Bt.getBoundingClientRect().top+window.scrollY,xn=Re.plX,sr=Re.plY,gr=at.scrollTop;Re.plX=Sn,Re.plY=yn,Re.itemInfo=T1(ae.itemInfo),Re.y=Bt.offsetTop,Re.x=Bt.offsetLeft,Re.clientY+=yn-sr,Re.clientX+=Sn-xn,at!=document.body&&(Re.scrollTop=gr),this.onDrag(this.props.mousePos,!1)}}}},{key:"_getNodeElById",value:function(W,J){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(J==null)return null;this._cacheEls||(this._cacheEls={});var Re=this._cacheEls[J];return Re&&document.contains(Re)&&!ae||(Re=W.querySelector('.group-or-rule-container[data-id="'+J+'"]'),this._cacheEls[J]=Re),Re}},{key:"_getDraggableNodeEl",value:function(W){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._cacheEls||(this._cacheEls={});var ae=this._cacheEls.draggable;if(ae&&document.contains(ae)&&!J)return ae;var Re=W.getElementsByClassName("qb-draggable");return ae=Re.length?Re[0]:null,this._cacheEls.draggable=ae,ae}},{key:"_getPlaceholderNodeEl",value:function(W){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._cacheEls||(this._cacheEls={});var ae=this._cacheEls.placeholder;if(ae&&document.contains(ae)&&!J)return ae;var Re=W.getElementsByClassName("qb-placeholder");return ae=Re.length?Re[0]:null,this._cacheEls.placeholder=ae,ae}},{key:"_isScrollable",value:function(W){var J=window.getComputedStyle(W)["overflow-y"];return(J==="scroll"||J==="auto")&&W.scrollHeight>W.offsetHeight}},{key:"_getScrollParent",value:function(W){return W==null?null:W===document.body||this._isScrollable(W)?W:this._getScrollParent(W.parentNode)}},{key:"handleDrag",value:function(W,J,ae){var Re=this,He=!0,at=W.itemInfo,Bt=W.paddingLeft,Sn=null,yn=this.props.dragStart.treeEl,xn=W.id,sr=this._getDraggableNodeEl(yn),gr=this._getPlaceholderNodeEl(yn),Vr,Dr,li,oi;if(sr&&gr){if(Vr=sr.getBoundingClientRect(),Dr=gr.getBoundingClientRect(),!Dr.width)return;var Ei={hrz:0,vrt:0};Vr.top<Dr.top?Ei.vrt=-1:Vr.bottom>Dr.bottom&&(Ei.vrt=1),Vr.left>Dr.left?Ei.hrz=1:Vr.left<Dr.left&&(Ei.hrz=-1),oi=yn.getBoundingClientRect();var sa={x:oi.left+(oi.right-oi.left)/2,y:Ei.vrt>=0?Vr.bottom:Vr.top},Ki;if(J.__mocked_hov_container)Ki=J.__mocked_hov_container;else{var Bi=document.elementFromPoint(sa.x,sa.y-1);if(Ki=Bi?Bi.closest(".group-or-rule-container"):null,!Ki&&Bi&&Bi.classList.contains("query-builder-container")){var qi,oa=Bi==null||(qi=Bi.firstChild)===null||qi===void 0?void 0:qi.firstChild;oa&&oa.classList.contains("group-or-rule-container")&&(Ki=oa)}}if(!Ki)Cw.log("out of tree bounds!");else{var zi=Ki.classList.contains("group-container"),va=Ki.getAttribute("data-id"),ba=Ki,fa=!1,ga=!1;if(ba){li=ba.getBoundingClientRect();var da=li.bottom-li.top,Ca=this.tree.items[va];if(!Ca)throw new Error("There is an issue with rendering. If you use Next.js, please check getServerSideProps() method.");var xa=null,Aa=null,ka=null,Wa=null;if(Ei.vrt==0)ka=at,Aa=gr,Aa&&(xa=Aa.getBoundingClientRect());else if(zi){if(Ei.vrt>0){var ho=Ki.getElementsByClassName("group--header"),mo=ho.length?ho[0]:null;if(mo){var Za=mo.getBoundingClientRect(),is=Za.bottom-Za.top,Io=Vr.bottom-Za.top>is*3/4;Io&&Ca.top>W.itemInfo.top&&(ka=Ca,xa=Za,Aa=mo,ga=!0)}}else if(Ei.vrt<0&&Ca.lev>=at.lev){var Ja=li.bottom-Vr.top>=2;Ja&&Ca.top<W.itemInfo.top&&(ka=Ca,xa=li,Aa=ba,fa=!0)}if(!ga&&!fa||He){var Vo=Ei.vrt<0?li.bottom-Vr.top>da-5:Vr.bottom-li.top>da-5;Vo&&(!ga&&!fa&&(ka=Ca,xa=li,Aa=ba),He&&(Wa=Ca))}}else{var Wo=Ei.vrt<0?li.bottom-Vr.top>da/2:Vr.bottom-li.top>da/2;Wo&&(ka=Ca,xa=li,Aa=ba)}var No=ka&&ka.id==xn;if(xa){var os=Vr.left-oi.left,Jo=xa.left-oi.left,ps=Jo/Bt,Ps=Math.max(0,Math.round(os/Bt)),Ss=[],xs=[];if(!No){if(zi&&(fa?Ss.push([vp,ka,ka.lev+1]):ga&&Ss.push([hv,ka,ka.lev+1]),He&&Wa)){var Gu=Wa.lev==0,Cu=Wa.type=="case_group"&&at.type!="case_group",Fu=Wa.prev&&this.tree.items[Wa.prev].caseId,eu=Wa.next&&this.tree.items[Wa.next].caseId;at.caseId==Fu&&(Fu=null),at.caseId==eu&&(eu=null);var ll=Fu&&this.tree.items[Fu],Yu=eu&&this.tree.items[eu];Ei.vrt>0?Gu?xs.push([vp,Wa,Wa.lev+1]):Cu&&Yu?xs.push([hv,Yu,Yu.lev+1]):xs.push([b0,Wa,Wa.lev]):Ei.vrt<0&&(Gu?xs.push([hv,Wa,Wa.lev+1]):Cu&&ll?xs.push([vp,ll,ll.lev+1]):xs.push([S0,Wa,Wa.lev]))}!fa&&!ga&&(Ei.vrt<0?Ss.push([S0,ka,ka.lev]):Ei.vrt>0&&Ss.push([b0,ka,ka.lev]))}var rc=function(Gl){var yc=Gl[1],ed=at.caseId?Re.tree.items[at.caseId]:null,Pu=yc.caseId?Re.tree.items[yc.caseId]:null;return[].concat(of(Gl),[ed,Pu])};Ss=Ss.map(rc),xs=xs.map(rc),Ss=Ss.filter(function(_u){var Gl=_u[0],yc=_u[1];if((Gl==S0||Gl==b0)&&yc.parent==null||yc.collapsed&&(Gl==vp||Gl==hv))return!1;var ed=yc.id==at.id;if(!ed){for(var Pu=yc;Pu.parent;)if(Pu=Re.tree.items[Pu.parent],Pu.id==at.id){ed=!0;break}}return!ed}).map(function(_u){var Gl=_u[0],yc=_u[1],ed=_u[2],Pu=_u[3],td=_u[4],Iu=null;return Gl==vp||Gl==hv?Iu=yc:Iu=Re.tree.items[yc.parent],Iu&&Iu.parent==null&&(Iu=null),_u[5]=Iu,_u});var pl=null,Wl=Ss.filter(function(_u){return Re.canMove(at,_u[1],_u[0],_u[3],_u[4],_u[5],ae)});He&&Wl.length==0&&xs.length>0&&(Wl=xs.filter(function(_u){return Re.canMove(at,_u[1],_u[0],_u[3],_u[4],_u[5],ae)}));var ic=Wl.map(function(_u){return _u[2]}),ju=at.lev,Hc=ic.concat(ju),Ed=null;Hc.indexOf(Ps)!=-1?Ed=Ps:Ps>Math.max.apply(Math,of(Hc))?Ed=Math.max.apply(Math,of(Hc)):Ps<Math.min.apply(Math,of(Hc))&&(Ed=Math.min.apply(Math,of(Hc))),pl=Wl.find(function(_u){return _u[2]==Ed}),!No&&!pl&&Wl.length&&(pl=Wl[0]),Sn=pl}}}}return Sn?(this.move(at,Sn[1],Sn[0],Sn[3]),!0):!1}},{key:"canMove",value:function(W,J,ae,Re,He,at,Bt){if(!W||!J||W.id===J.id)return!1;var Sn=this.props.config.settings,yn=Sn.canRegroup,xn=Sn.canRegroupCases,sr=Sn.maxNesting,gr=Sn.maxNumberOfRules,Vr=Sn.canLeaveEmptyCase,Dr=at?at.nextAtomicLev:J.atomicLev,li=Dr+(W.closestRuleGroupId?0:W.depth||(W.type=="group"?1:0)),oi=ae==S0||ae==b0,Ei=ae==hv||ae==vp,sa=oi&&J.lev==1||Ei&&J.lev==0,Ki=W.parent!=J.parent,Bi=Ei||Ki,qi=W.type=="rule_group"||!!W.closestRuleGroupId||J.type=="rule_group"||!!J.closestRuleGroupId,oa=Ei&&J.type=="rule_group"?J.id:J.closestRuleGroupId,zi=Ei&&J.type=="rule_group"?J.maxNesting:J.closestRuleGroupMaxNesting,va=(Ei&&J.type=="rule_group"?J.canRegroup:J.closestRuleGroupCanRegroup)!=!1,ba=Ei&&J.type=="rule_group"?J.lev:J.closestRuleGroupLev,fa=(at?at.lev+1:J.lev)+(W.depth||(W.type=="group"?1:0))-(ba||0),ga=qi&&W.closestRuleGroupId!=oa,da=W.type=="case_group"&&!sa||W.type!="case_group"&&J.type=="case_group"&&oi||W.type!="case_group"&&J.type=="switch_group"||!xn&&W.caseId!=J.caseId,Ca=da||ga,xa=J.isLocked||W.isLocked||at&&at.isLocked;if(sr&&li>sr||zi&&fa>zi||Bi&&(!yn||Ca||xa)||qi&&Bi&&!va)return!1;if(W.type!="case_group"&&W.caseId!=J.caseId){var Aa=Re?Re._height==2:!1,ka=He?He.atomicRulesCountInCase+1:0;if(gr&&ka>gr||Aa&&!Vr)return!1}if(W.type=="case_group"&&(W.isDefaultCase||J.isDefaultCase||J.type=="switch_group"&&ae==vp))return!1;var Wa=!0;return Bt&&(Wa=Bt(W.node.toJS(),J.node.toJS(),ae,at?at.node.toJS():null)),Wa}},{key:"move",value:function(W,J,ae,Re){this._isUsingLegacyReactDomRender||(_S=!0),this.props.actions.moveItem(W.path,J.path,ae)}},{key:"render",value:function(){return ie.createElement(t,vu({},this.props,{onDragStart:this.onDragStart}))}}])}(ie.Component),i.propTypes={tree:Fi().any.isRequired,actions:Fi().object.isRequired},i};const Gw=function(c){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=y0(function(s){return{dragging:s.dragging,dragStart:s.dragStart,mousePos:s.mousePos}},{setDragStart:vw,setDragProgress:pw,setDragEnd:mw},null,{context:Gm})(Ww(c,t));return i.displayName="ConnectedSortableContainer",i};var Hw=["isDraggingTempo","isDraggingMe","dragging"];function Kw(c,t,i){return t=B(t),T(c,A1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function A1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A1=function(){return!!c})()}const mv=function(c){return function(t){var i;return i=function(s){function b(M){var F;return z(this,b),F=Kw(this,b,[M]),F.handleDraggerMouseDown=function(W){var J=F.props.id,ae=F.wrapper.current;F.props.onDragStart&&F.props.onDragStart(J,ae,W)},F.wrapper=ie.createRef(),F}return ue(b,s),te(b,[{key:"render",value:function(){var F=this.props,W=F.isDraggingTempo,J=F.isDraggingMe,ae=F.dragging,Re=vv(F,Hw),He=Re.isTrueLocked,at={};J&&W&&(_S||(at={top:ae.y,left:ae.x,width:ae.w}));var Bt=_d()(c,"group-or-rule",J&&W?"qb-draggable":null,J&&!W?"qb-placeholder":null,He?"locked":null);return ie.createElement("div",{className:Bt,style:at,ref:this.wrapper,"data-id":this.props.id},ie.createElement(t,vu({handleDraggerMouseDown:this.handleDraggerMouseDown,isDraggingMe:J,isDraggingTempo:W},Re)))}}])}(ie.PureComponent),i.propTypes={isDraggingTempo:Fi().bool,isDraggingMe:Fi().bool,onDragStart:Fi().func,dragging:Fi().object,isLocked:Fi().bool,isTrueLocked:Fi().bool},i}};var Yw=u(95950),gv=u.n(Yw),Jw=u(71086),Zw=u.n(Jw);function R1(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Xw(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):R1(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function Qw(c,t,i){return t=B(t),T(c,P1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function P1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P1=function(){return!!c})()}var I1=Ys.ConfigUtils,qw=I1.getFieldConfig,ex=I1.getOperatorConfig,D1=function(c){function t(i){var s;return z(this,t),s=Qw(this,t,[i]),s.shouldComponentUpdate=E0(s,{selectedField:function(M,F){return!1}}),Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=["config","selectedField","selectedFieldSrc","selectedFieldType","selectedOperator"],F=!this.meta||M.map(function(W){return s[W]!==b[W]}).filter(function(W){return W}).length>0;F&&(this.meta=this.getMeta(s))}},{key:"getMeta",value:function(s){var b,M=s.config,F=s.selectedField,W=s.selectedFieldType,J=s.selectedOperator,ae=qw(M,F),Re=of(ae?.operators||((b=M.types[W])===null||b===void 0?void 0:b.operators)||[]);!F&&!Re.includes(J)&&Re.push(J);var He=jo()(Zw()(M.operators,function(Dr,li){return Re?.indexOf(li)!==-1}),function(Dr,li){return ex(M,li,F)}),at=this.buildOptions(M,He,Re),Bt=He[J]||{},Sn=this.props.config.settings.operatorPlaceholder,yn=J,xn=yn?[yn]:null,sr=xn,gr=Bt.label,Vr=Bt.label2||Bt.tooltip;return{placeholder:Sn,items:at,selectedKey:yn,selectedKeys:xn,selectedPath:sr,selectedLabel:gr,selectedAltLabel:Vr,selectedOpts:Bt,fieldConfig:ae}}},{key:"buildOptions",value:function(s,b,M){return!b||!M?null:gv()(b).sort(function(F,W){return M.indexOf(F)-M.indexOf(W)}).map(function(F){var W=b[F],J=W.label,ae=W.label2,Re=W.tooltip;return{key:F,path:F,label:J,altLabel:ae,tooltip:Re}})}},{key:"render",value:function(){var s=this.props,b=s.config,M=s.customProps,F=s.setOperator,W=s.readonly,J=s.id,ae=s.groupId,Re=b.settings.renderOperator,He=Xw({id:J,groupId:ae,config:b,customProps:M,readonly:W,setField:F},this.meta);return He.items?Re(He,b.ctx):null}}])}(ie.Component);D1.propTypes={id:Fi().string,groupId:Fi().string,config:Fi().object.isRequired,selectedField:Fi().any,selectedFieldId:Fi().string,selectedFieldType:Fi().string,selectedFieldSrc:Fi().string,selectedOperator:Fi().string,readonly:Fi().bool,customProps:Fi().object,setOperator:Fi().func.isRequired};function tx(c){if(Array.isArray(c))return c}function nx(c,t){var i=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(i!=null){var s,b,M,F,W=[],J=!0,ae=!1;try{if(M=(i=i.call(c)).next,t===0){if(Object(i)!==i)return;J=!1}else for(;!(J=(s=M.call(i)).done)&&(W.push(s.value),W.length!==t);J=!0);}catch(Re){ae=!0,b=Re}finally{try{if(!J&&i.return!=null&&(F=i.return(),Object(F)!==F))return}finally{if(ae)throw b}}return W}}function rx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w0(c,t){return tx(c)||nx(c,t)||x1(c,t)||rx()}var ix=["children"],cc=function(t){var i=t.children,s=vv(t,ix);return ie.createElement("div",s,i)},_f=function(){},M1=function(){return ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"gray",width:"18px",height:"18px"},ie.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),ie.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}))},yv=function(t){return function(i){var s=i.config.settings.useConfirm,b=s?s.call(i.config.ctx,i.config.ctx):null;return ie.createElement(t,vu({},i,{confirmFn:b}))}},k1=function(t){var i=t.id,s=t.isLHS,b=t.delta,M=t.parentFuncs;return[i,s?"L":"R",s?-1:b||0,(M||[]).map(function(F){var W=w0(F,2),J=W[0],ae=W[1];return"".concat(J,"(").concat(ae,")")}).join("/")].join(":")},Ef=function(t,i){var s;return typeof i=="function"?(s=function(M){return i?.(M,t.ctx)},s.displayName=i.name):s=i,s};function ax(c,t,i){return t=B(t),T(c,L1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function L1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L1=function(){return!!c})()}var N1=function(c){function t(){return z(this,t),ax(this,t,arguments)}return ue(t,c),te(t,[{key:"render",value:function(){var s=this.props,b=s.config,M=s.selectedField,F=s.selectedFieldSrc,W=s.selectedFieldType,J=s.selectedOperator,ae=s.setOperator,Re=s.selectedFieldId,He=s.showOperator,at=s.showOperatorLabel,Bt=s.selectedFieldWidgetConfig,Sn=s.readonly,yn=s.id,xn=s.groupId,sr=He&&ie.createElement(cc,{key:"operators-for-"+Re,className:"rule--operator"},b.settings.showLabels&&ie.createElement("label",{className:"rule--label"},b.settings.operatorLabel),ie.createElement(D1,{key:"operator",config:b,selectedField:M,selectedFieldSrc:F,selectedFieldType:W,selectedFieldId:Re,selectedOperator:J,setOperator:ae,customProps:b.settings.customOperatorSelectProps,readonly:Sn,id:yn,groupId:xn})),gr=at&&ie.createElement(cc,{key:"operators-for-"+Re,className:"rule--operator"},ie.createElement("div",{className:"rule--operator-wrapper"},b.settings.showLabels?ie.createElement("label",{className:"rule--label"},"\xA0"):null,ie.createElement("div",{className:"rule--operator-text-wrapper"},ie.createElement("span",{className:"rule--operator-text"},Bt.operatorInlineLabel))));return[sr,gr]}}])}(ie.PureComponent);function F1(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function ox(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?F1(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):F1(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function sx(c,t,i){return t=B(t),T(c,j1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function j1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j1=function(){return!!c})()}var B1=Ys.RuleUtils.getFieldPathLabels,ES=Ys.ConfigUtils,$1=ES.getFieldConfig,U1=ES.getFieldParts,V1=ES.getFieldPathParts,z1=function(c){function t(i){var s;return z(this,t),s=sx(this,t,[i]),s.setField=function(b,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=s.props.id;if(!F.widgetId){var J=[W,"L",-1].join(":");F.widgetId=J}s.props.setField(b,M,F)},Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=["selectedField","selectedFieldSrc","selectedFieldType","config","parentField"],F=!this.meta||M.map(function(W){return s[W]!==b[W]}).filter(function(W){return W}).length>0;F&&(this.meta=this.getMeta(s))}},{key:"getMeta",value:function(s){var b=s.selectedField,M=s.selectedFieldType,F=s.config,W=s.parentField,J=b,ae=F.settings,Re=ae.maxLabelsLength,He=ae.fieldSeparatorDisplay,at=ae.fieldPlaceholder,Bt=ae.fieldSeparator,Sn=!!b,yn=Sn?null:_0(at,Re),xn=Sn?$1(F,J):null,sr=xn||{},gr=V1(J,F),Vr=V1(J,F,!0),Dr=this.getFieldLabel(xn,J,F),li=B1(J,F),oi=li?li.join(He):null;(oi==Dr||W)&&(oi=null);var Ei=sr.label2||sr.tooltip,sa=U1(W,F),Ki=W?$1(F,W):null,Bi=W?Ki&&Ki.subfields:F.fields,qi=!Sn&&M,oa=this.buildOptions(sa,F,Bi,qi,sa),zi=qi?"Please select field":null;return J&&Q(J)==="object"&&(J=void 0),{placeholder:yn,items:oa,parentField:W,selectedKey:J,selectedKeys:gr,selectedPath:Vr,selectedLabel:Dr,selectedOpts:sr,selectedAltLabel:Ei,selectedFullLabel:oi,errorText:zi}}},{key:"getFieldLabel",value:function(s,b,M){if(!b)return null;var F=M.settings.maxLabelsLength,W=U1(b,M),J=s?.label||Yf()(W);return J=_0(J,F),J}},{key:"buildOptions",value:function(s,b,M){var F=this,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0,J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,ae=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null;if(!M)return null;var Re=b.settings,He=Re.fieldSeparator,at=Re.fieldSeparatorDisplay,Bt=J!=null&&J.length?J.join(He)+He:"",Sn=function(xn){return Object.keys(xn||{}).reduce(function(sr,gr){var Vr=xn[gr];return Vr.type==="!struct"?sr+Sn(Vr.subfields):sr+(Vr.type===W?1:0)},0)};return gv()(M).map(function(yn){var xn=[].concat(of(J??[]),[yn]),sr=M[yn],gr=F.getFieldLabel(sr,xn,b),Vr=B1(xn,b),Dr=Vr.join(at);(Dr==gr||s!=null&&s.length)&&(Dr=null);var li=sr.label2,oi=sr.tooltip,Ei=sr.disabled;if(!sr.hideForSelect)if(sr.type=="!struct"){var sa=F.buildOptions(s,b,sr.subfields,W,xn,{label:gr,tooltip:oi}),Ki=Sn(sr.subfields)>0;return{disabled:Ei,key:yn,path:Bt+yn,label:gr,fullLabel:Dr,altLabel:li,tooltip:oi,items:sa,matchesType:Ki}}else{var Bi=W!==void 0?sr.type===W:void 0;return{disabled:Ei,key:yn,path:Bt+yn,label:gr,fullLabel:Dr,altLabel:li,tooltip:oi,grouplabel:ae?.label,group:ae,matchesType:Bi}}}).filter(function(yn){return!!yn})}},{key:"render",value:function(){var s=this.props,b=s.config,M=s.customProps,F=s.setFieldSrc,W=s.readonly,J=s.id,ae=s.groupId,Re=b.settings.renderField;if(!this.meta.items)return null;var He=ox({id:J,groupId:ae,config:b,customProps:M,readonly:W,setField:this.setField,setFieldSrc:F},this.meta);return Re(He,b.ctx)}}])}(ie.Component);z1.propTypes={id:Fi().string,groupId:Fi().string,config:Fi().object.isRequired,selectedField:Fi().any,selectedFieldSrc:Fi().string,selectedFieldType:Fi().string,parentField:Fi().string,customProps:Fi().object,readonly:Fi().bool,setField:Fi().func.isRequired,setFieldSrc:Fi().func};function W1(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function ux(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?W1(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):W1(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function lx(c,t,i){return t=B(t),T(c,G1()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function G1(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G1=function(){return!!c})()}var cx=Ys.clone,Hm=Ys.ConfigUtils,fx=Hm.getFieldConfig,H1=Hm.getFuncConfig,dx=Hm.getFieldParts,K1=Hm.getFieldPathParts,hx=Hm.getWidgetForFieldOp,Y1=Ys.RuleUtils.getFuncPathLabels,px=Ys.OtherUtils.shallowEqual,J1=function(c){function t(i){var s;return z(this,t),s=lx(this,t,[i]),Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=["config","field","fieldType","fieldSrc","operator","isFuncArg","isLHS","parentFuncs"],F=["config","field","fieldType","fieldSrc","value","isLHS"],W=!this.items||M.map(function(ae){return ae==="parentFuncs"?!px(s[ae],b[ae],!0):s[ae]!==b[ae]}).filter(function(ae){return ae}).length>0,J=!this.meta||F.map(function(ae){return s[ae]!==b[ae]}).filter(function(ae){return ae}).length>0;J&&(this.meta=this.getMeta(s)),W&&(this.items=this.getItems(s,this.meta))}},{key:"getItems",value:function(s,b){var M=s.config,F=s.field,W=s.fieldType,J=s.isLHS,ae=s.operator,Re=s.parentFuncs,He=s.fieldDefinition,at=s.isFuncArg,Bt=b.lookingForFieldType,Sn=M.settings.canUseFuncForField,yn=this.filterFuncs(M,M.funcs,F,W,J,ae,Sn,Re,at,He),xn=this.buildOptions(M,yn,Bt);return xn}},{key:"getMeta",value:function(s){var b=s.config,M=s._field,F=s.fieldType,W=s.value,J=s.isLHS,ae=s.isFuncArg,Re=b.settings,He=Re.funcPlaceholder,at=Re.fieldSeparatorDisplay,Bt=W,Sn=!!W,yn=Sn?null:He,xn=Sn?H1(b,Bt):null,sr=xn||{},gr=K1(Bt,b),Vr=K1(Bt,b,!0),Dr=this.getFuncLabel(xn,Bt,b),li=Y1(Bt,b),oi=li?li.join(at):null;oi==Dr&&(oi=null);var Ei=J&&!ae,sa=Ei&&!Sn&&F,Ki=sa?"Please select function":null;return{placeholder:yn,selectedKey:Bt,selectedKeys:gr,selectedPath:Vr,selectedLabel:Dr,selectedOpts:sr,selectedFullLabel:oi,errorText:Ki,lookingForFieldType:sa}}},{key:"filterFuncs",value:function(s,b,M,F,W,J,ae,Re,He,at){b=cx(b);var Bt=s.settings.fieldSeparator,Sn=fx(s,M),yn=!1,xn,sr=Sn,gr=hx(s,M,J,"value"),Vr=gr&&s.widgets[gr];He?(sr=at,xn=at?.type):yn&&Vr?xn=Vr.type:Sn?xn=Sn.type:W||(xn=F);function Dr(li,oi){for(var Ei in li){var sa=li[Ei].subfields,Ki=(oi||[]).concat(Ei),Bi=Ki.join(Bt),qi=H1(s,Bi);if(qi.type=="!struct")Dr(sa,Ki)==0&&delete li[Ei];else{var oa,zi=!xn||qi.returnType==xn;(oa=sr)!==null&&oa!==void 0&&oa.funcs&&(zi=zi&&sr.funcs.includes(Bi)),ae&&(zi=zi&&ae(M,Sn,Bi,qi,J)),!qi.allowSelfNesting&&Re&&Re.map(function(va){var ba=w0(va,2),fa=ba[0],ga=ba[1];return fa}).includes(Bi)&&(zi=!1),zi||delete li[Ei]}}return gv()(li).length}return Dr(b,[]),b}},{key:"buildOptions",value:function(s,b){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(!b)return null;var ae=s.settings,Re=ae.fieldSeparator,He=ae.fieldSeparatorDisplay,at=W!=null&&W.length?W.join(Re)+Re:"",Bt=function(yn){return Object.keys(yn||{}).reduce(function(xn,sr){var gr=yn[sr];return gr.type==="!struct"?xn+Bt(gr.subfields):xn+(gr.type===F?1:0)},0)};return gv()(b).map(function(Sn){var yn=[].concat(of(W??[]),[Sn]),xn=b[Sn],sr=M.getFuncLabel(xn,yn,s),gr=Y1(yn,s),Vr=gr.join(He);Vr==sr&&(Vr=null);var Dr=xn.tooltip;if(xn.type=="!struct"){var li=M.buildOptions(s,xn.subfields,F,yn,{label:sr,tooltip:Dr}),oi=Bt(xn.subfields)>0;return{key:Sn,path:at+Sn,label:sr,fullLabel:Vr,tooltip:Dr,items:li,matchesType:oi}}else{var Ei=F!==void 0?xn.returnType===F:void 0;return{key:Sn,path:at+Sn,label:sr,fullLabel:Vr,tooltip:Dr,grouplabel:J?.label,group:J,matchesType:Ei}}})}},{key:"getFuncLabel",value:function(s,b,M){if(!b)return null;var F=M.settings.maxLabelsLength,W=dx(b,M),J=s?.label||Yf()(W);return J=_0(J,F),J}},{key:"render",value:function(){var s=this.props,b=s.config,M=s.customProps,F=s.setValue,W=s.readonly,J=s.id,ae=s.groupId,Re=b.settings.renderFunc,He=ux({config:b,customProps:M,readonly:W,setField:F,items:this.items,id:J,groupId:ae},this.meta);return Re(He,b.ctx)}}])}(ie.Component);J1.propTypes={id:Fi().string,groupId:Fi().string,config:Fi().object.isRequired,field:Fi().any,fieldType:Fi().string,fieldSrc:Fi().string,operator:Fi().string,customProps:Fi().object,value:Fi().string,setValue:Fi().func.isRequired,readonly:Fi().bool,parentFuncs:Fi().array,fieldDefinition:Fi().object,isFuncArg:Fi().bool,isLHS:Fi().bool};var vx=u(23181),wS=u.n(vx),mx=["widgetFactory"],gx=["factory"];function Z1(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function xS(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Z1(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):Z1(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var X1=Ys.ListUtils.getTitleInListValues,yx=Ys.ConfigUtils._widgetDefKeysToOmit,Q1=Ys.TreeUtils,bx=Q1._fixImmutableValue,Sx=Q1.isImmutable,q1=(0,ie.memo)(function(c){var t=c.widgetFactory,i=vv(c,mx),s=i.config,b=i.isFuncArg,M=i.fieldDefinition,F=M||{},W=F.fieldSettings,J=F.defaultValue,ae=F.valueSources,Re=b&&ae?.length==1&&ae?.[0]==="const",He=W?.treeValues||W?.listValues;return Re&&J?typeof J=="boolean"?J?i.labelYes||"YES":i.labelNo||"NO":He?Array.isArray(J)?J.map(function(at){return X1(He,at)||at}).join(", "):X1(He,J)||J:""+J:t?t(i,s.ctx):"?"});q1.displayName="WidgetFactoryMemo";var e_=function(t){var i=t.delta,s=t.parentDelta,b=t.isFuncArg,M=t.valueSrc,F=t.value,W=t.valueError,J=t.fieldError,ae=t.asyncListValues,Re=t.isSpecialRange,He=t.fieldDefinition,at=t.widget,Bt=t.widgetDefinition,Sn=t.widgetValueLabel,yn=t.valueLabels,xn=t.textSeparators,sr=t.setValue,gr=t.setFuncValue,Vr=t.config,Dr=t.field,li=t.fieldSrc,oi=t.fieldPath,Ei=t.fieldType,sa=t.isLHS,Ki=t.operator,Bi=t.readonly,qi=t.parentField,oa=t.parentFuncs,zi=t.id,va=t.groupId,ba=t.widgetId,fa=Bt.factory,ga=vv(Bt,gx),da=F?F.map(function(Ja){return bx(Ja)}):void 0,Ca=(0,ie.useMemo)(function(){if(Re){var Ja=[da?.get(0),da?.get(1)];return Ja[0]===void 0&&Ja[1]===void 0&&(Ja=void 0),Ja}return da?.get(i)},[Re,F]),xa=(0,ie.useMemo)(function(){var Ja;return W?Re?[W.get(0),W.get(1),W.get(2)]:W==null||(Ja=W.get)===null||Ja===void 0?void 0:Ja.call(W,i):null},[Re,F]),Aa=sa?J:xa,ka=He||{},Wa=ka.fieldSettings,ho=Sn.label,mo=Sn.placeholder,Za=yn?yn.placeholder:null,is=Sx(Dr)?null:Dr,Io=ms()(xS(xS(xS({},ga),Wa),{},{config:Vr,field:is,fieldPath:oi,fieldSrc:li,fieldType:Ei,isLHS:sa,parentField:qi,parentFuncs:oa,fieldDefinition:He,operator:Ki,delta:i,parentDelta:s,isSpecialRange:Re,isFuncArg:b,value:Ca,valueSrc:M,valueError:xa,fieldError:J,errorMessage:Aa,label:ho,placeholder:mo,placeholders:Za,textSeparators:xn,setValue:sr,setFuncValue:gr,readonly:Bi,asyncListValues:ae,id:zi,groupId:va,widgetId:ba,widgetFactory:fa,widget:at}),[].concat(of(yx),["toJS"]));return ie.createElement(q1,vu({widgetFactory:fa},Io))};e_.displayName="WidgetFactory";const _x=e_;function Ex(c,t,i){return t=B(t),T(c,t_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function t_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t_=function(){return!!c})()}var Km=Ys.ConfigUtils,wx=Km.getFieldConfig,xx=Km.getOperatorConfig,n_=Km.getFieldWidgetConfig,r_=Km.getWidgetForFieldOp,Cx=Km.getValueSourcesForFieldOp,x0=Ys.RuleUtils.getValueLabel,i_=Ys.DefaultUtils.createListWithOneElement,Ox=Ys.OtherUtils.shallowEqual,qO=Ys.TreeUtils.isImmutable,Tx={cardinality:1},Ym=function(c){function t(i){var s;return z(this,t),s=Ex(this,t,[i]),s._setValue=function(b,M,F,W,J,ae){var Re=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{};if(Re.widgetId||(Re.widgetId=W),b&&Array.isArray(J)){var He=[s.props.value.get(0),s.props.value.get(1)];He[0]!=J[0]&&s.props.setValue(0,J[0],F,ae,Re),He[1]!=J[1]&&s.props.setValue(1,J[1],F,ae,Re)}else s.props.setValue(M,J,F,ae,Re)},s._setValueSrc=function(b,M,F){var W={widgetId:M};s.props.setValueSrc(b,F,W)},s.renderWidget=function(b,M,F){var W=F.config,J=F.isFuncArg,ae=F.leftField,Re=F.operator,He=F.value,at=F.valueError,Bt=F.fieldError,Sn=F.readonly,yn=F.parentField,xn=F.parentFuncs,sr=F.id,gr=F.groupId,Vr=F.fieldSrc,Dr=F.fieldType,li=F.isLHS,oi=F.setFuncValue,Ei=F.parentDelta,sa=W.settings,Ki=M.widgets,Bi=M.iValues,qi=M.aField,oa=M.valueSources,zi=J?Bi:He,va=J?ae:qi,ba=Ki[b],fa=ba.valueSrc,ga=ba.valueLabel,da=ba.widgetId,Ca=oa.length>1&&!Sn,xa=sa.showLabels?ie.createElement("label",{key:"label-"+da,className:"rule--label"},ga.label):null;return ie.createElement("div",{key:"wrapper-"+da,className:_d()(fa==="func"?"widget--func":"widget--widget",Ca?"widget--has-valuesrcs":"widget--has-no-valuesrcs")},fa==="func"?null:xa,ie.createElement(_x,vu({key:da,id:sr,groupId:gr,widgetId:da,valueSrc:fa,delta:b,value:zi,valueError:at,fieldError:Bt,isFuncArg:J,isLHS:li},Ul()(M,["isSpecialRange","fieldDefinition","asyncListValues"]),Ul()(Ki[b],["widget","widgetDefinition","widgetValueLabel","valueLabels","textSeparators","setValue"]),{setFuncValue:oi,config:W,field:va,fieldSrc:Vr,fieldType:Dr,parentField:yn,parentFuncs:xn,parentDelta:Ei??b,operator:Re,readonly:Sn})))},s.renderValueSources=function(b,M,F){var W=F.config,J=F.isFuncArg,ae=F.leftField,Re=F.operator,He=F.readonly,at=W.settings,Bt=M.valueSources,Sn=M.widgets,yn=M.aField,xn=M.valueSourcesOptions,sr=J?ae:yn,gr=Sn[b],Vr=gr.valueSrc,Dr=gr.setValueSrc,li=s.ValueSources,oi=at.showLabels?ie.createElement("label",{className:"rule--label"},"\xA0"):null;return Bt.length>1&&!He&&ie.createElement("div",{key:"wrapper-valuesrc-"+b,className:"widget--valuesrc"},oi,ie.createElement(li,{key:"valuesrc-"+b,delta:b,valueSources:xn,valueSrc:Vr,config:W,field:sr,operator:Re,setValueSrc:Dr,readonly:He,title:at.valueSourcesPopupTitle}))},s.renderSep=function(b,M,F){var W=F.config,J=M.widgets,ae=W.settings,Re=J[b].sepText,He=ae.showLabels?ie.createElement("label",{className:"rule--label"},"\xA0"):null;return Re&&ie.createElement("div",{key:"widget-separators-"+b,className:_d()("widget--sep",b==0&&"widget--sep-first")},He,ie.createElement("span",null,Re))},s.renderWidgetDelta=function(b){var M=s.renderSep(b,s.meta,s.props),F=s.renderValueSources(b,s.meta,s.props),W=s.renderWidget(b,s.meta,s.props);return[M,F,W]},Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=!this.ValueSources||b?.config!==s?.config,F=["config","id","parentFuncs","field","fieldId","fieldSrc","fieldType","fieldFunc","fieldArg","leftField","operator","valueSrc","asyncListValues","isLHS","isFuncArg","isForRuleGroup","isCaseValue","value","parentDelta"],W=F.filter(function(He){return He==="parentFuncs"?!Ox(s[He],b[He],!0):He==="field"?s.fieldId!==b.fieldId:s[He]!==b[He]}),J=!this.meta||W.length>0;if(J&&(this.meta=this.getMeta(s,W)),M){var ae=s.config,Re=ae.settings.renderValueSources;this.ValueSources=Ef(ae,Re)}}},{key:"getMeta",value:function(s){var b,M,F,W,J=this,ae=s.config,Re=s.field,He=s.fieldSrc,at=s.fieldType,Bt=s.fieldFunc,Sn=s.fieldArg,yn=s.operator,xn=s.valueSrc,sr=s.value,gr=s.isForRuleGroup,Vr=s.isCaseValue,Dr=s.isFuncArg,li=s.leftField,oi=s.asyncListValues,Ei=s.parentFuncs,sa=s.isLHS,Ki=s.id,Bi=s.parentDelta,qi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],oa=ae.settings.valueSourcesInfo,zi=Dr?{func:Bt,arg:Sn}:Re,va=!Re&&at,ba=xn,fa=sr;(Dr||gr||Vr)&&(ba=i_(xn),fa=i_(sr));var ga=wx(ae,zi);!ga&&va&&(ga=ae.types[at]);var da=r_(ae,zi,yn);if(!da&&va){var Ca;da=(Ca=ae.types[at])===null||Ca===void 0?void 0:Ca.mainWidget}var xa=Dr?Tx:xx(ae,yn,zi);if((ga==null||xa==null)&&!Vr)return null;var Aa=xa?.isSpecialRange,ka=Aa&&(((b=ba)===null||b===void 0?void 0:b.get(0))==="field"||((M=ba)===null||M===void 0?void 0:M.get(1))==="field"),Wa=Aa&&!ka,ho=Wa?1:bw(xa);if(ho===0)return null;var mo=(F=this.meta)===null||F===void 0?void 0:F.valueSources,Za=(W=this.meta)===null||W===void 0?void 0:W.valueSourcesOptions,is={value:"Value",field:"Field",func:"Function"};(!mo||["field","operator","config","fieldDefinition","isForRuleGroup"].filter(function(Ja){return qi.includes(Ja)}).length)&&(mo=Cx(ae,zi,yn,ga),gr&&(mo=["value"]),zi||(mo=Object.keys(oa)),Za=mo.map(function(Ja){var Vo,Wo,No;return[Ja,{label:(Vo=(Wo=(No=oa[Ja])===null||No===void 0?void 0:No.label)!==null&&Wo!==void 0?Wo:is[Ja])!==null&&Vo!==void 0?Vo:Ja}]}));var Io=(Dr?[0]:wS()(0,ho)).map(function(Ja){var Vo,Wo,No,os,Jo=(Vo=J.meta)===null||Vo===void 0||(Vo=Vo.widgets)===null||Vo===void 0?void 0:Vo[Ja],ps=((Wo=ba)===null||Wo===void 0?void 0:Wo.get(Ja))||null,Ps=r_(ae,zi,yn,ps),Ss=n_(ae,zi,yn,Ps,ps);ka&&(Ps=Ss.singleWidget,Ss=n_(ae,zi,yn,Ps,ps)),!Ss&&va&&(Ps=["func","field"].includes(ps)?ps:da,Ss=ae.widgets[Ps]);var xs=(No=Ss)===null||No===void 0?void 0:No.type,Gu=x0(ae,zi,yn,Ja,ps,Wa),Cu=x0(ae,zi,yn,Ja,null,Wa),Fu=xa!=null&&xa.textSeparators?xa?.textSeparators[Ja]:null,eu=null,ll=null;Aa&&(eu=[x0(ae,zi,yn,0),x0(ae,zi,yn,1)],eu={placeholder:[eu[0].placeholder,eu[1].placeholder],label:[eu[0].label,eu[1].label]},ll=xa?.textSeparators);var Yu=k1({id:Ki,isLHS:sa,delta:Bi??Ja,parentFuncs:Ei}),rc=Yu+":VS",pl=Jo?.setValueSrc;(!pl||Jo?.widgetId!==Yu)&&(pl=J._setValueSrc.bind(J,Ja,rc));var Wl=Jo?.setValue;return(!Wl||Jo?.widgetId!==Yu||Jo?.widgetType!==xs||((os=J.meta)===null||os===void 0?void 0:os.isSpecialRange)!==Aa)&&(Wl=J._setValue.bind(J,Aa,Ja,xs,Yu)),{valueSrc:ps,valueLabel:Gu,widget:Ps,sepText:Fu,widgetDefinition:Ss,widgetValueLabel:Cu,valueLabels:eu,textSeparators:ll,setValueSrc:pl,setValue:Wl,widgetId:Yu,widgetType:xs}});return{defaultWidget:da,fieldDefinition:ga,operatorDefinition:xa,isSpecialRange:Wa,cardinality:ho,valueSources:mo,valueSourcesOptions:Za,widgets:Io,iValues:fa,aField:zi,asyncListValues:oi}}},{key:"render",value:function(){if(!this.meta)return null;var s=this.meta,b=s.defaultWidget,M=s.cardinality,F=this.meta.isFuncArg;if(!b)return null;var W=b;return ie.createElement(cc,{className:"rule--widget rule--widget--".concat(W.toUpperCase()),key:"widget-col-"+W},(F?[0]:wS()(0,M)).map(this.renderWidgetDelta))}}])}(ie.Component);Ym.propTypes={config:Fi().object.isRequired,value:Fi().any,valueSrc:Fi().any,valueError:Fi().any,fieldError:Fi().string,field:Fi().any,fieldSrc:Fi().string,fieldType:Fi().string,fieldId:Fi().string,operator:Fi().string,readonly:Fi().bool,asyncListValues:Fi().array,id:Fi().string,groupId:Fi().string,setValue:Fi().func,setValueSrc:Fi().func,setFuncValue:Fi().func,isFuncArg:Fi().bool,fieldFunc:Fi().string,fieldArg:Fi().string,leftField:Fi().any,isForRuleGroup:Fi().bool,parentField:Fi().string,parentFuncs:Fi().array,isLHS:Fi().bool,parentDelta:Fi().number,isCaseValue:Fi().bool};function a_(c,t,i){return t=B(t),T(c,o_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function o_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o_=function(){return!!c})()}var Ax=Ys.ConfigUtils.getFuncConfig,s_=Ys.OtherUtils.shallowEqual,CS=function(c){function t(i){var s;return z(this,t),s=a_(this,t,[i]),s.setFunc=function(b){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=s.props,W=F.isLHS,J=F.parentDelta,ae=F.parentFuncs,Re=F.id;if(!M.widgetId){var He=k1({id:Re,isLHS:W,delta:J,parentFuncs:ae});M.widgetId=He}s.props.setFuncValue(W?-1:J||0,ae,null,b,"!func",void 0,M)},s.setArgValue=function(b,M,F,W,J){var ae=s.props,Re=ae.config,He=ae.parentDelta,at=ae.isLHS,Bt=ae.parentFuncs;s.props.setFuncValue(at?-1:He||0,Bt,b,M,F,W,J)},s.setArgValueSrc=function(b,M,F){var W=s.props,J=W.config,ae=W.parentDelta,Re=W.isLHS,He=W.parentFuncs;s.props.setFuncValue(Re?-1:ae||0,He,b,M,"!valueSrc",void 0,F)},s.renderFuncSelect=function(){var b,M,F=s.props,W=F.config,J=F.field,ae=F.fieldType,Re=F.fieldSrc,He=F.isLHS,at=F.operator,Bt=F.customProps,Sn=F.value,yn=F.readonly,xn=F.parentFuncs,sr=F.id,gr=F.groupId,Vr=F.isFuncArg,Dr=F.fieldDefinition,li=F.parentDelta,oi=(b=Sn==null||(M=Sn.get)===null||M===void 0?void 0:M.call(Sn,"func"))!==null&&b!==void 0?b:null,Ei={value:oi,setValue:s.setFunc,config:W,field:J,fieldType:ae,fieldSrc:Re,isLHS:He,operator:at,customProps:Bt,readonly:yn,parentFuncs:xn,isFuncArg:Vr,fieldDefinition:Dr,id:sr,groupId:gr},sa=W.settings,Ki=sa.showLabels,Bi=sa.funcLabel,qi=Ki?ie.createElement("label",{className:"rule--label"},Bi):null;return ie.createElement(cc,{key:"func",className:"rule--func"},qi,ie.createElement(J1,Ei))},s.renderArgLabel=function(b,M){var F=M.valueSources,W=M.type,J=M.showPrefix,ae=M.label,Re=s.props.config,He=F&&F.length==1&&F[0]=="const",at=!Re.settings.showLabels&&(W=="boolean"||He)&&J;return at?ie.createElement(cc,{className:"rule--func--arg-label"},ae||b):null},s.renderArgLabelSep=function(b,M){var F=M.valueSources,W=M.type,J=M.showPrefix,ae=s.props.config,Re=F&&F.length==1&&F[0]=="const",He=!ae.settings.showLabels&&(W=="boolean"||Re)&&J;return He?ie.createElement(cc,{className:"rule--func--arg-label-sep"},":"):null},s.renderArgVal=function(b,M,F){var W=s.props,J=W.config,ae=W.field,Re=W.fieldType,He=W.fieldSrc,at=W.isLHS,Bt=W.operator,Sn=W.value,yn=W.readonly,xn=W.parentFuncs,sr=W.id,gr=W.groupId,Vr=W.fieldError,Dr=W.valueError,li=W.setFuncValue,oi=W.parentDelta,Ei=Sn?Sn.getIn(["args",M]):null,sa=Ei?Ei.get("value"):void 0,Ki=F.valueSources.length==1?F.valueSources[0]:void 0,Bi=Ei?Ei.get("valueSrc")||Ki||"value":Ki,qi=Ei?.get("asyncListValues"),oa={config:J,fieldFunc:b,fieldArg:M,leftField:ae,fieldType:Re,fieldSrc:He,fieldError:Vr,valueError:Dr,isLHS:at,operator:null,value:sa,valueSrc:Bi,asyncListValues:qi,setValue:s.setArgValue,setValueSrc:s.setArgValueSrc,setFuncValue:li,funcKey:b,argKey:M,argDefinition:F,readonly:yn,parentFuncs:xn,id:sr,groupId:gr,parentDelta:oi};return ie.createElement(cc,{className:"rule--func--arg-value"},ie.createElement(u_,oa))},s.renderArgSep=function(b,M,F,W){var J=W.renderSeps;return F?ie.createElement(cc,{className:"rule--func--arg-sep"},J?J[F-1]:", "):null},s.renderBracketBefore=function(b){var M=b.renderBrackets;return ie.createElement(cc,{key:"before_args",className:"rule--func--bracket-before"},M?M[0]:"(")},s.renderBracketAfter=function(b){var M=b.renderBrackets;return ie.createElement(cc,{key:"after_args",className:"rule--func--bracket-after"},M?M[1]:")")},s.renderFuncArgs=function(){var b=s.meta,M=b.funcDefinition,F=b.funcKey;if(!F)return null;var W=M||{},J=W.args;return J?ie.createElement(ie.Fragment,null,s.renderBracketBefore(M),ie.createElement(cc,{key:"args-".concat(F),className:"rule--func--args rule--func--".concat(F,"--args")},Object.keys(J).map(function(ae,Re){return ie.createElement(cc,{key:"arg-".concat(ae,"-").concat(Re),className:"rule--func--arg rule--func--".concat(F,"--arg--").concat(ae)},s.renderArgSep(ae,J[ae],Re,M),s.renderArgLabel(ae,J[ae]),s.renderArgLabelSep(ae,J[ae]),s.renderArgVal(F,ae,J[ae]))})),s.renderBracketAfter(M)):null},Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=["config","field","operator","value","fieldSrc","fieldType","isLHS"],F=!this.meta||M.map(function(W){return W==="parentFuncs"?!s_(s[W],b[W],!0):s[W]!==b[W]}).filter(function(W){return W}).length>0;F&&(this.meta=this.getMeta(s))}},{key:"getMeta",value:function(s){var b,M,F=s.config,W=s.field,J=s.operator,ae=s.value,Re=(b=ae==null||(M=ae.get)===null||M===void 0?void 0:M.call(ae,"func"))!==null&&b!==void 0?b:null,He=Re?Ax(F,Re):null;return{funcDefinition:He,funcKey:Re}}},{key:"render",value:function(){var s=this.props.parentFuncs,b=s?s.map(function(F){var W=w0(F,2),J=W[0],ae=W[1];return"".concat(J,"_").concat(ae)}).join("-"):"root",M=s?.length||0;return ie.createElement(cc,{className:"rule--func--wrapper rule--func--wrapper--under-".concat(b," rule--func--wrapper--lev-").concat(M)},this.renderFuncSelect(),this.renderFuncArgs())}}])}(ie.Component);CS.propTypes={id:Fi().string,groupId:Fi().string,config:Fi().object.isRequired,field:Fi().any,fieldSrc:Fi().string,fieldType:Fi().string,fieldError:Fi().string,operator:Fi().string,customProps:Fi().object,value:Fi().object,setValue:Fi().func.isRequired,setFuncValue:Fi().func,readonly:Fi().bool,parentFuncs:Fi().array,parentDelta:Fi().number,fieldDefinition:Fi().object,isFuncArg:Fi().bool,isLHS:Fi().bool,valueError:Fi().string};var u_=function(c){function t(i){var s;return z(this,t),s=a_(this,t,[i]),s.setValue=function(b,M,F,W,J){var ae=s.props,Re=ae.setValue,He=ae.argKey;Re(He,M,F,W,J)},s.setValueSrc=function(b,M,F){var W=s.props,J=W.setValueSrc,ae=W.argKey;J(ae,M,F)},Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=["parentFuncs","funcKey","argKey"],F=!this.meta||M.map(function(W){return W==="parentFuncs"?!s_(s[W],b[W],!0):s[W]!==b[W]}).filter(function(W){return W}).length>0;F&&(this.meta=this.getMeta(s))}},{key:"getMeta",value:function(s){var b=s.parentFuncs,M=s.funcKey,F=s.argKey,W=[].concat(of(b||[]),[[M,F]]);return{parentFuncs:W}}},{key:"render",value:function(){var s=this.meta.parentFuncs;return ie.createElement(Ym,vu({},this.props,{parentDelta:this.props.parentDelta,setValue:this.setValue,setValueSrc:this.setValueSrc,isFuncArg:!0,parentFuncs:s}))}}])}(ie.Component);u_.propTypes={funcKey:Fi().string.isRequired,argKey:Fi().string.isRequired,setValue:Fi().func.isRequired,setValueSrc:Fi().func.isRequired,readonly:Fi().bool,isLHS:Fi().bool,parentFuncs:Fi().array,id:Fi().string,groupId:Fi().string};function Rx(c,t,i){return t=B(t),T(c,l_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function l_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l_=function(){return!!c})()}var OS=function(c){function t(i){var s;return z(this,t),s=Rx(this,t,[i]),s.renderField=function(){var b=s.props,M=b.config,F=b.classname,W=b.selectedField,J=b.selectedFieldSrc,ae=b.selectedFieldType,Re=b.setField,He=b.setFuncValue,at=b.parentField,Bt=b.readonly,Sn=b.id,yn=b.groupId,xn=b.fieldError,sr=b.valueError,gr=["func","field"];if(!gr.includes(J))return"?";var Vr=J==="func"?ie.createElement(CS,{isLHS:!0,config:M,value:W,fieldSrc:J,fieldType:ae,fieldError:xn,valueError:sr,parentField:at,setValue:Re,setFuncValue:He,readonly:Bt,id:Sn,groupId:yn,key:"field-func-"+Sn}):ie.createElement(z1,{config:M,selectedField:W,selectedFieldSrc:J,selectedFieldType:ae,parentField:at,setField:Re,customProps:M.settings.customFieldSelectProps,readonly:Bt,id:Sn,groupId:yn,key:"field-"+Sn}),Dr=J==="func"?M.settings.funcLabel:M.settings.fieldLabel,li=M.settings.showLabels&&J!=="func"&&ie.createElement("label",{className:"rule--label"},Dr);return ie.createElement("div",{key:J,className:F},li,Vr)},s.renderFieldSources=function(){if(!s.meta)return null;var b=s.props,M=b.config,F=b.readonly,W=b.selectedFieldSrc,J=b.setFieldSrc,ae=b.id,Re=s.meta.fieldSourcesOptions,He=M.settings,at=s.ValueSources,Bt=He.showLabels?ie.createElement("label",{className:"rule--label"},"\xA0"):null;return Re.length>1&&!F&&ie.createElement("div",{key:"fieldsrc",className:"rule--fieldsrc"},Bt,ie.createElement(at,{key:"fieldsrc-"+ae,valueSources:Re,valueSrc:W,config:M,setValueSrc:J,readonly:F,title:He.fieldSourcesPopupTitle}))},Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=!this.ValueSources||b?.config!==s?.config,F=["config"],W=!this.meta||F.map(function(Re){return s[Re]!==b[Re]}).filter(function(Re){return Re}).length>0;if(W&&(this.meta=this.getMeta(s)),M){var J=s.config,ae=J.settings.renderValueSources;this.ValueSources=function(Re){return ae(Re,J.ctx)}}}},{key:"getMeta",value:function(s){var b=s.config,M={value:"Value",field:"Field",func:"Function"},F=b.settings,W=F.valueSourcesInfo,J=F.fieldSources,ae=J.map(function(Re){var He,at,Bt;return[Re,{label:(He=(at=(Bt=W[Re])===null||Bt===void 0?void 0:Bt.label)!==null&&at!==void 0?at:M[Re])!==null&&He!==void 0?He:Re}]});return{fieldSourcesOptions:ae}}},{key:"render",value:function(){var s=this.props,b=s.classname,M=s.canSelectFieldSource,F=M&&this.renderFieldSources(),W=this.renderField();return M?ie.createElement(cc,{className:"rule--field-wrapper"},F,W):W}}])}(ie.Component),Px=["factory"];function Ix(c,t,i){return t=B(t),T(c,c_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function c_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c_=function(){return!!c})()}var Dx=Ys.ConfigUtils.getOperatorConfig,f_=function(c){function t(){return z(this,t),Ix(this,t,arguments)}return ue(t,c),te(t,[{key:"render",value:function(){if(!this.props.selectedOperator)return null;var s=Dx(this.props.config,this.props.selectedOperator,this.props.selectedField);if(typeof s.options>"u")return null;var b=s.options,M=b.factory,F=vv(b,Px),W=Object.assign({},F,{config:this.props.config,field:this.props.selectedField,fieldSrc:this.props.selectedFieldSrc,operator:this.props.selectedOperator,options:this.props.operatorOptions,setOption:this.props.setOperatorOption,readonly:this.props.readonly}),J=M(W,this.props.config.ctx),ae=this.props.selectedOperator;return ie.createElement("div",{className:"rule--operator rule--operator--".concat(ae.toUpperCase())},J)}}])}(ie.PureComponent);f_.propTypes={config:Fi().object.isRequired,operatorOptions:Fi().any.isRequired,selectedField:Fi().any,selectedFieldSrc:Fi().string,selectedOperator:Fi().string.isRequired,readonly:Fi().bool,setOperatorOption:Fi().func.isRequired};function d_(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function h_(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):d_(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function Mx(c,t,i){return t=B(t),T(c,p_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function p_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p_=function(){return!!c})()}var C0=Ys.ConfigUtils,kx=C0.getFieldConfig,Lx=C0.getOperatorConfig,Nx=C0.getFieldWidgetConfig,Fx=C0.getFieldId,jx=Ys.RuleUtils.isEmptyRuleProperties,v_=function(c){function t(i){var s;return z(this,t),s=Mx(this,t,[i]),Sf(s),s.removeSelf=s.removeSelf.bind(s),s.setLock=s.setLock.bind(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this,M=this.props,F=!this.Icon||M?.config!==s?.config,W=["selectedField","selectedFieldSrc","selectedFieldType","selectedOperator","config","reordableNodesCnt","isLocked","parentField","parentFieldCanReorder"],J=!this.meta||W.map(function(gr){return s[gr]!==M[gr]}).filter(function(gr){return gr}).length>0;if(J&&(this.meta=this.getMeta(s)),F){var ae=s.config,Re=ae.settings,He=Re.renderIcon,at=Re.renderButton,Bt=Re.renderButtonGroup,Sn=Re.renderSwitch,yn=Re.renderBeforeWidget,xn=Re.renderAfterWidget,sr=Re.renderRuleError;this.Icon=Ef(ae,He),this.Btn=Ef(ae,at),this.BtnGrp=Ef(ae,Bt),this.Switch=Ef(ae,Sn),this.BeforeWidget=Ef(ae,yn),this.AfterWidget=Ef(ae,xn),this.RuleError=Ef(ae,sr)}this.doRemove=function(){b.props.removeSelf()}}},{key:"getMeta",value:function(s){var b=s.selectedField,M=s.selectedFieldType,F=s.selectedOperator,W=s.config,J=s.reordableNodesCnt,ae=s.isLocked,Re=s.parentField,He=s.parentFieldCanReorder,at=W.settings.keepInputOnChangeFieldSrc,Bt=Fx(b,W),Sn=kx(W,b),yn=Sn&&Sn.type==="!struct",xn=at&&M,sr=!!b||xn,gr=sr&&F,Vr=Lx(W,F,b),Dr=Vr&&Vr.options!=null,li=Nx(W,b,F,null,null)||{},oi=li.hideOperator,Ei=W.settings.canReorder&&J>1&&!ae;Re&&(Ei=Ei&&He);var sa=sr&&!oi,Ki=sr&&oi&&li.operatorInlineLabel,Bi=gr&&!yn,qi=gr&&Dr;return{selectedFieldId:Bt,selectedFieldWidgetConfig:li,showDragIcon:Ei,showOperator:sa,showOperatorLabel:Ki,showWidget:Bi,showOperatorOptions:qi}}},{key:"setLock",value:function(s){this.props.setLock(s)}},{key:"removeSelf",value:function(){var s=this.props,b=s.confirmFn,M=s.config,F=M.settings,W=F.renderConfirm,J=F.removeRuleConfirmOptions;J&&!this.isEmptyCurrentRule()?W.call(M.ctx,h_(h_({},J),{},{onOk:this.doRemove,onCancel:null,confirmFn:b}),M.ctx):this.doRemove()}},{key:"_buildWidgetProps",value:function(s,b){var M=s.selectedField,F=s.selectedFieldSrc,W=s.selectedFieldType,J=s.selectedOperator,ae=s.operatorOptions,Re=s.value,He=s.valueType,at=s.valueSrc,Bt=s.asyncListValues,Sn=s.valueError,yn=s.fieldError,xn=s.parentField,sr=b.selectedFieldId;return{field:M,fieldSrc:F,fieldType:W,fieldId:sr,operator:J,operatorOptions:ae,value:Re,valueType:He,valueSrc:at,asyncListValues:Bt,valueError:Sn,fieldError:yn,parentField:xn}}},{key:"isEmptyCurrentRule",value:function(){var s=this.props.config,b=this._buildWidgetProps(this.props,this.meta);return jx(b,s)}},{key:"renderField",value:function(){var s=this.props,b=s.config,M=s.isLocked,F=s.parentField,W=s.groupId,J=s.id,ae=s.selectedFieldSrc,Re=s.selectedField,He=s.selectedFieldType,at=s.setField,Bt=s.setFuncValue,Sn=s.setFieldSrc,yn=s.fieldError,xn=b.settings.immutableFieldsMode,sr=this.meta.selectedFieldId;return ie.createElement(OS,{key:"field",classname:_d()(ae=="func"?"rule--field--func":"rule--field"),config:b,canSelectFieldSource:!F,selectedField:Re,selectedFieldSrc:ae,selectedFieldType:He,selectedFieldId:sr,fieldError:yn,setField:xn?_f:at,setFuncValue:xn?_f:Bt,setFieldSrc:xn?_f:Sn,parentField:F,readonly:xn||M,id:J,groupId:W})}},{key:"renderOperator",value:function(){var s=this.props,b=s.config,M=s.isLocked,F=this.meta,W=F.selectedFieldId,J=F.selectedFieldWidgetConfig,ae=F.showOperator,Re=F.showOperatorLabel,He=b.settings.immutableOpsMode;return ie.createElement(N1,{key:"operator",config:b,selectedField:this.props.selectedField,selectedFieldSrc:this.props.selectedFieldSrc,selectedFieldType:this.props.selectedFieldType,selectedFieldId:W,selectedOperator:this.props.selectedOperator,setOperator:He?_f:this.props.setOperator,showOperator:ae,showOperatorLabel:Re,selectedFieldWidgetConfig:J,readonly:He||M,id:this.props.id,groupId:this.props.groupId})}},{key:"renderWidget",value:function(){var s=this.props,b=s.config,M=s.isLocked,F=this.meta.showWidget,W=b.settings.immutableValuesMode;if(!F)return null;var J=ie.createElement(Ym,vu({key:"values"},this._buildWidgetProps(this.props,this.meta),{config:b,setValue:W?_f:this.props.setValue,setValueSrc:W?_f:this.props.setValueSrc,setFuncValue:W?_f:this.props.setFuncValue,readonly:W||M,id:this.props.id,groupId:this.props.groupId}));return ie.createElement(cc,{key:"widget-for-"+this.props.selectedOperator,className:"rule--value"},J)}},{key:"renderOperatorOptions",value:function(){var s=this.props.config,b=this.meta.showOperatorOptions,M=s.settings,F=M.immutableOpsMode,W=M.immutableValuesMode;if(!b)return null;var J=ie.createElement(f_,{key:"operatorOptions",selectedField:this.props.selectedField,selectedOperator:this.props.selectedOperator,operatorOptions:this.props.operatorOptions,setOperatorOption:F?_f:this.props.setOperatorOption,config:s,readonly:W});return ie.createElement(cc,{key:"op-options-for-"+this.props.selectedOperator,className:"rule--operator-options"},J)}},{key:"renderBeforeWidget",value:function(){var s=this.BeforeWidget;return s?ie.createElement(cc,{key:"before-widget-for-"+this.props.selectedOperator,className:"rule--before-widget"},ie.createElement(s,this.props)):null}},{key:"renderAfterWidget",value:function(){var s=this.AfterWidget;return s?ie.createElement(cc,{key:"after-widget-for-"+this.props.selectedOperator,className:"rule--after-widget"},ie.createElement(s,this.props)):null}},{key:"renderError",value:function(){var s=this.props,b=s.config,M=s.valueError,F=s.fieldError,W=b.settings.showErrorMessage,J=this.RuleError,ae=[F].concat(of(M?.toArray()||[])).filter(function(Re){return!!Re}).shift()||null;return W&&ae&&ie.createElement("div",{className:"rule--error"},J?ie.createElement(J,{error:ae}):ae)}},{key:"renderDrag",value:function(){var s=this.props.handleDraggerMouseDown,b=this.meta.showDragIcon,M=this.Icon,F=ie.createElement(M,{type:"drag"});return b&&ie.createElement("div",{key:"rule-drag-icon",onMouseDown:s,className:"qb-drag-handler rule--drag-handler"},F)}},{key:"renderDel",value:function(){var s=this.props,b=s.config,M=s.isLocked,F=b.settings,W=F.deleteLabel,J=F.immutableGroupsMode,ae=F.canDeleteLocked,Re=this.Icon,He=this.Btn;return!J&&(!M||M&&ae)&&ie.createElement(He,{key:"rule-del",type:"delRule",onClick:this.removeSelf,label:W,config:b,renderIcon:Re})}},{key:"renderLock",value:function(){var s=this.props,b=s.config,M=s.isLocked,F=s.isTrueLocked,W=s.id,J=b.settings,ae=J.lockLabel,Re=J.lockedLabel,He=J.showLock,at=this.Switch;return He&&!(M&&!F)&&ie.createElement(at,{key:"rule-lock",type:"lock",id:W,value:M,setValue:this.setLock,label:ae,checkedLabel:Re,hideLabel:!0,config:b})}},{key:"render",value:function(){var s=this.meta,b=s.showOperatorOptions,M=s.selectedFieldWidgetConfig,F=this.props,W=F.valueSrc,J=F.value,ae=F.config,Re=W?.first()=="value"&&!b&&J.size==1&&M.fullWidth,He=this.BtnGrp,at=[this.renderField(),this.renderOperator(),this.renderBeforeWidget(),this.renderWidget(),this.renderAfterWidget(),this.renderOperatorOptions()],Bt=ie.createElement("div",{key:"rule-body",className:_d()("rule--body",Re&&"can--shrink--value")},at),Sn=this.renderError(),yn=this.renderDrag(),xn=this.renderLock(),sr=this.renderDel();return ie.createElement(ie.Fragment,null,yn,ie.createElement("div",{key:"rule-body-wrapper",className:"rule--body--wrapper"},Bt,Sn),ie.createElement("div",{key:"rule-header-wrapper",className:"rule--header"},ie.createElement(He,{key:"rule-header-group",config:ae},xn,sr)))}}])}(ie.Component);v_.propTypes={id:Fi().string.isRequired,groupId:Fi().string,selectedField:Fi().any,selectedFieldSrc:Fi().string,selectedFieldType:Fi().string,selectedOperator:Fi().string,operatorOptions:Fi().object,config:Fi().object.isRequired,value:Fi().any,valueSrc:Fi().any,valueType:Fi().any,asyncListValues:Fi().array,isDraggingMe:Fi().bool,isDraggingTempo:Fi().bool,parentField:Fi().string,valueError:Fi().any,fieldError:Fi().string,isLocked:Fi().bool,isTrueLocked:Fi().bool,handleDraggerMouseDown:Fi().func,setField:Fi().func,setFieldSrc:Fi().func,setOperator:Fi().func,setOperatorOption:Fi().func,setLock:Fi().func,removeSelf:Fi().func,setValue:Fi().func,setValueSrc:Fi().func,setFuncValue:Fi().func,reordableNodesCnt:Fi().number,totalRulesCnt:Fi().number,parentReordableNodesCnt:Fi().number,parentFieldCanReorder:Fi().bool};const Bx=Uw(mv("rule")(yv(v_)));var $x=u(22331),Ux=u.n($x);function Vx(c,t,i){return t=B(t),T(c,m_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function m_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m_=function(){return!!c})()}var zx=Ys.DefaultUtils.defaultGroupConjunction,g_=Ys.ConfigUtils.getFieldConfig,Wx=function(t,i){var s;return s=function(b){function M(F){var W;return z(this,M),W=Vx(this,M,[F]),W._selectedConjunction=function(J){return J=J||W.props,J.conjunction||zx(J.config,J.field)},W.setConjunction=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;W.props.actions.setConjunction(W.props.path,J)},W.setNot=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;W.props.actions.setNot(W.props.path,J)},W.setLock=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;W.props.actions.setLock(W.props.path,J)},W.dummyFn=function(){},W.removeSelf=function(){W.props.actions.removeGroup(W.props.path)},W.addGroup=function(){var J=i=="rule_group"?W.props.field:W.props.parentField;W.props.actions.addGroup(W.props.path,void 0,void 0,J)},W.addCaseGroup=function(){W.props.actions.addCaseGroup(W.props.path)},W.addDefaultCaseGroup=function(){W.props.actions.addDefaultCaseGroup(W.props.path)},W.addRule=function(){var J=i=="rule_group"?W.props.field:W.props.parentField;W.props.actions.addRule(W.props.path,void 0,void 0,void 0,J)},W.setField=function(J,ae,Re){W.props.actions.setField(W.props.path,J,ae,Re)},W.setOperator=function(J){W.props.actions.setOperator(W.props.path,J)},W.setValue=function(J,ae,Re,He,at){W.props.actions.setValue(W.props.path,J,ae,Re,He,at)},W.setValueSrc=function(J,ae,Re){W.props.actions.setValueSrc(W.props.path,J,ae,Re)},W.setFuncValue=function(J,ae,Re,He,at,Bt,Sn){W.props.actions.setFuncValue(W.props.path,J,ae,Re,He,at,Bt,Sn)},W.pureShouldComponentUpdate=pv(W),Sf(W),W.selectedConjunction=W._selectedConjunction(F),W.conjunctionOptions=W._getConjunctionOptions(F),W.dummyFn.isDummyFn=!0,W}return ue(M,b),te(M,[{key:"shouldComponentUpdate",value:function(W,J){var ae=this.props,Re=this.state,He=this.pureShouldComponentUpdate(W,J);if(He&&Re==J&&ae!=W){var at=W.dragging.id||ae.dragging.id,Bt=at==W.id,Sn=[];for(var yn in W){var xn=W[yn]!=ae[yn];yn=="dragging"&&!Bt&&(xn=!1),xn&&Sn.push(yn)}Sn.length||(He=!1)}return He}},{key:"onPropsChanged",value:function(W){var J=W.config,ae=W.id,Re=W.conjunction,He=this.props.config,at=this.props.conjunction;(He!=J||at!=Re)&&(this.selectedConjunction=this._selectedConjunction(W),this.conjunctionOptions=this._getConjunctionOptions(W))}},{key:"_getConjunctionOptions",value:function(W){var J=this;return jo()(W.config.conjunctions,function(ae,Re){return{id:"conjunction-".concat(W.id,"-").concat(Re),name:"conjunction[".concat(W.id,"]"),key:Re,label:ae.label,checked:Re===J._selectedConjunction(W)}})}},{key:"render",value:function(){var W=this.props.config.settings.showErrorMessage,J=this.props.dragging.id==this.props.id,ae=this.props.path.size,Re=this.props.config.settings.maxNesting,He=ae==1;if(this.props.parentField&&this.props.parentFieldPathSize){var at=g_(this.props.config,this.props.parentField);ae=this.props.path.size-this.props.parentFieldPathSize+1,Re=at?.maxNesting,He=!1}else if(this.props.field){var Bt=g_(this.props.config,this.props.field);ae=1,Re=Bt?.maxNesting,He=!1}var Sn=!J&&this.props.isDraggingTempo,yn=this.props.fieldType||null,xn=this.props.valueError,sr=of(xn?.toArray()||[]).filter(function(li){return!!li}).shift()||null,gr=sr!=null&&W,Vr=typeof Re>"u"||ae<Re,Dr=Re&&ae>Re;return ie.createElement("div",{className:_d()("group-or-rule-container","group-container",gr?"group-with-error":null),"data-id":this.props.id},[J?ie.createElement(t,{key:"dragging",id:this.props.id,groupId:this.props.groupId,isDraggingMe:!0,isDraggingTempo:!0,dragging:this.props.dragging,isRoot:He,lev:this.props.path.size-1,allowFurtherNesting:Vr,isMaxNestingExceeded:Dr,conjunctionOptions:this.conjunctionOptions,not:this.props.not,selectedConjunction:this.selectedConjunction,setConjunction:this.dummyFn,setNot:this.dummyFn,setLock:this.dummyFn,removeSelf:this.dummyFn,addGroup:this.dummyFn,addCaseGroup:this.dummyFn,addDefaultCaseGroup:this.dummyFn,addRule:this.dummyFn,setField:this.dummyFn,setFuncValue:this.dummyFn,setOperator:this.dummyFn,setValue:this.dummyFn,setValueSrc:this.dummyFn,value:this.props.value||null,valueError:this.props.valueError||null,valueSrc:this.props.valueSrc||null,config:this.props.config,children1:this.props.children1,actions:this.props.actions,reordableNodesCnt:this.props.reordableNodesCnt,totalRulesCnt:this.props.totalRulesCnt,selectedField:this.props.field||null,selectedFieldSrc:this.props.fieldSrc||"field",selectedFieldType:yn,parentField:this.props.parentField||null,parentFieldPathSize:this.props.parentFieldPathSize,parentFieldCanReorder:this.props.parentFieldCanReorder,selectedOperator:this.props.operator||null,isLocked:this.props.isLocked,isTrueLocked:this.props.isTrueLocked,parentReordableNodesCnt:this.props.parentReordableNodesCnt}):null,ie.createElement(t,{key:this.props.id,id:this.props.id,groupId:this.props.groupId,isDraggingMe:J,isDraggingTempo:Sn,onDragStart:this.props.onDragStart,isRoot:He,lev:this.props.path.size-1,allowFurtherNesting:Vr,isMaxNestingExceeded:Dr,conjunctionOptions:this.conjunctionOptions,not:this.props.not,selectedConjunction:this.selectedConjunction,setConjunction:Sn?this.dummyFn:this.setConjunction,setNot:Sn?this.dummyFn:this.setNot,setLock:Sn?this.dummyFn:this.setLock,removeSelf:Sn?this.dummyFn:this.removeSelf,addGroup:Sn?this.dummyFn:this.addGroup,addCaseGroup:Sn?this.dummyFn:this.addCaseGroup,addDefaultCaseGroup:Sn?this.dummyFn:this.addDefaultCaseGroup,addRule:Sn?this.dummyFn:this.addRule,setField:Sn?this.dummyFn:this.setField,setFuncValue:Sn?this.dummyFn:this.setFuncValue,setOperator:Sn?this.dummyFn:this.setOperator,setValue:Sn?this.dummyFn:this.setValue,setValueSrc:Sn?this.dummyFn:this.setValueSrc,value:this.props.value||null,valueError:this.props.valueError||null,valueSrc:this.props.valueSrc||null,config:this.props.config,children1:this.props.children1,actions:this.props.actions,reordableNodesCnt:this.props.reordableNodesCnt,totalRulesCnt:this.props.totalRulesCnt,selectedField:this.props.field||null,selectedFieldSrc:this.props.fieldSrc||"field",selectedFieldType:yn,parentField:this.props.parentField||null,parentFieldPathSize:this.props.parentFieldPathSize,parentFieldCanReorder:this.props.parentFieldCanReorder,selectedOperator:this.props.operator||null,isLocked:this.props.isLocked,isTrueLocked:this.props.isTrueLocked,parentReordableNodesCnt:this.props.parentReordableNodesCnt})])}}])}(ie.Component),s.propTypes={config:Fi().object.isRequired,actions:Fi().object.isRequired,path:Fi().any.isRequired,id:Fi().string.isRequired,groupId:Fi().string,not:Fi().bool,conjunction:Fi().string,children1:Fi().any,onDragStart:Fi().func,reordableNodesCnt:Fi().number,field:Fi().any,fieldSrc:Fi().string,fieldType:Fi().string,parentField:Fi().string,value:Fi().any,valueSrc:Fi().any,valueError:Fi().any,isLocked:Fi().bool,isTrueLocked:Fi().bool,dragging:Fi().object,isDraggingTempo:Fi().bool},s};const Jm=function(c,t){var i=y0(function(s){return{dragging:s.dragging}},null,null,{context:Gm})(Wx(c,t));return i.displayName="ConnectedGroupContainer",i};function Gx(c,t,i){return t=B(t),T(c,y_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function y_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y_=function(){return!!c})()}var Hx={topLeft:"group--actions--tl",topCenter:"group--actions--tc",topRight:"group--actions--tr",bottomLeft:"group--actions--bl",bottomCenter:"group--actions--bc",bottomRight:"group--actions--br"},Kx="topRight",b_=function(c){function t(){return z(this,t),Gx(this,t,arguments)}return ue(t,c),te(t,[{key:"render",value:function(){var s=this.props,b=s.config,M=s.addRule,F=s.addGroup,W=s.removeSelf,J=s.setLock,ae=s.isLocked,Re=s.isTrueLocked,He=s.id,at=s.parentField,Bt=s.canAddGroup,Sn=s.canAddRule,yn=s.canDeleteGroup,xn=b.settings,sr=xn.immutableGroupsMode,gr=xn.addRuleLabel,Vr=xn.addGroupLabel,Dr=xn.addSubRuleLabel,li=xn.addSubGroupLabel,oi=xn.delGroupLabel,Ei=xn.groupActionsPosition,sa=xn.renderButton,Ki=xn.renderIcon,Bi=xn.renderSwitch,qi=xn.renderButtonGroup,oa=xn.lockLabel,zi=xn.lockedLabel,va=xn.showLock,ba=xn.canDeleteLocked,fa=function(Za){return Ki(Za,b.ctx)},ga=function(Za){return sa(Za,b.ctx)},da=function(Za){return Bi(Za,b.ctx)},Ca=function(Za){return qi(Za,b.ctx)},xa=Hx[Ei||Kx],Aa=va&&!(ae&&!Re)&&ie.createElement(da,{type:"lock",id:He,value:ae,setValue:J,label:oa,checkedLabel:zi,config:b}),ka=!sr&&Sn&&!ae&&ie.createElement(ga,{type:at?"addSubRule":"addRule",onClick:M,label:at?Dr:gr,readonly:ae,config:b,renderIcon:fa}),Wa=!sr&&Bt&&!ae&&ie.createElement(ga,{type:at?"addSubGroup":"addGroup",onClick:F,label:at?li:Vr,readonly:ae,config:b,renderIcon:fa}),ho=!sr&&yn&&(!ae||ae&&ba)&&ie.createElement(ga,{type:"delGroup",onClick:W,label:oi,config:b,renderIcon:fa});return ie.createElement("div",{className:"group--actions ".concat(xa)},ie.createElement(Ca,{config:b},Aa,ka,Wa,ho))}}])}(ie.PureComponent);function Yx(c,t){var i=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!i){if(Array.isArray(c)||(i=Jx(c))||t&&c&&typeof c.length=="number"){i&&(c=i);var s=0,b=function(){};return{s:b,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(ae){throw ae},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,F=!0,W=!1;return{s:function(){i=i.call(c)},n:function(){var ae=i.next();return F=ae.done,ae},e:function(ae){W=!0,M=ae},f:function(){try{F||i.return==null||i.return()}finally{if(W)throw M}}}}function Jx(c,t){if(c){if(typeof c=="string")return S_(c,t);var i={}.toString.call(c).slice(8,-1);return i==="Object"&&c.constructor&&(i=c.constructor.name),i==="Map"||i==="Set"?Array.from(c):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?S_(c,t):void 0}}function S_(c,t){(t==null||t>c.length)&&(t=c.length);for(var i=0,s=Array(t);i<t;i++)s[i]=c[i];return s}function __(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function E_(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?__(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):__(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function Zx(c,t,i){return t=B(t),T(c,w_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function w_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w_=function(){return!!c})()}var TS=Ys.ConfigUtils.getFieldConfig,Xx=Ys.RuleUtils.isEmptyGroupChildren,x_=Ys.TreeUtils,eT=x_.getTotalReordableNodesCountInTree,Qx=x_.getTotalRulesCountInTree,qx="topRight",ah=function(c){function t(i){var s;return z(this,t),s=Zx(this,t,[i]),s.childrenClassName=function(){return""},s.renderBeforeActions=function(){var b=s.BeforeActions;return b==null?null:ie.createElement(b,vu({key:"group-actions-before"},s.props))},s.renderAfterActions=function(){var b=s.AfterActions;return b==null?null:ie.createElement(b,vu({key:"group-actions-after"},s.props))},Sf(s),s.onPropsChanged(i),s.removeSelf=s.removeSelf.bind(s),s.setLock=s.setLock.bind(s),s.renderItem=s.renderItem.bind(s),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this,M=this.props,F=!this.Icon||M?.config!==s?.config;if(F){var W=s.config,J=W.settings,ae=J.renderIcon,Re=J.renderConjs,He=J.renderBeforeActions,at=J.renderAfterActions;this.Icon=Ef(W,ae),this.Conjs=Ef(W,Re),this.BeforeActions=Ef(W,He),this.AfterActions=Ef(W,at)}this.doRemove=function(){b.props.removeSelf()}}},{key:"isGroupTopPosition",value:function(){return Ux()(this.props.config.settings.groupActionsPosition||qx,"top")}},{key:"setLock",value:function(s){this.props.setLock(s)}},{key:"removeSelf",value:function(){var s=this.props,b=s.confirmFn,M=s.config,F=M.settings,W=F.renderConfirm,J=F.removeGroupConfirmOptions;J&&!this.isEmptyCurrentGroup()?W.call(M.ctx,E_(E_({},J),{},{onOk:this.doRemove,onCancel:null,confirmFn:b}),M.ctx):this.doRemove()}},{key:"isEmptyCurrentGroup",value:function(){var s=this.props,b=s.children1,M=s.config;return Xx(b,M)}},{key:"showNot",value:function(){var s=this.props,b=s.config,M=s.parentField,F=b.settings.showNot;if(M){var W,J=TS(b,M);F=F&&((W=J?.showNot)!==null&&W!==void 0?W:!0)}return F}},{key:"showConjs",value:function(){var s=this.props.config,b=s.settings.forceShowConj,M=this.conjunctionOptions(),F=Object.keys(M).length;return F>1&&!this.isOneChild()||this.showNot()||b}},{key:"isNoChildren",value:function(){var s=this.props.children1;return s?s.size==0:!0}},{key:"isOneChild",value:function(){var s=this.props.children1;return s?s.size<2:!0}},{key:"renderChildrenWrapper",value:function(){var s=this.props.children1;return s&&ie.createElement("div",{key:"group-children",className:_d()("group--children",this.showConjs()?"":"hide--conjs",this.isOneChild()?"hide--line":"",this.isOneChild()?"one--child":"",this.childrenClassName())},this.renderChildren())}},{key:"renderHeaderWrapper",value:function(){var s=this.isGroupTopPosition();return ie.createElement("div",{key:"group-header",className:_d()("group--header",this.isOneChild()?"one--child":"",this.showConjs()?"":"hide--conjs",this.isOneChild()?"hide--line":"",this.isNoChildren()?"no--children":"")},this.renderHeader(),s&&this.renderBeforeActions(),s&&this.renderActions(),s&&this.renderAfterActions())}},{key:"renderFooterWrapper",value:function(){var s=this.isGroupTopPosition();return!s&&ie.createElement("div",{key:"group-footer",className:"group--footer"},this.renderBeforeActions(),this.renderActions(),this.renderAfterActions())}},{key:"renderActions",value:function(){var s=this.props,b=s.config,M=s.addRule,F=s.addGroup,W=s.isLocked,J=s.isTrueLocked,ae=s.id,Re=s.parentField;return ie.createElement(b_,{key:"group-actions",config:b,addRule:M,addGroup:F,canAddGroup:this.canAddGroup(),canAddRule:this.canAddRule(),canDeleteGroup:this.canDeleteGroup(),removeSelf:this.removeSelf,setLock:this.setLock,isLocked:W,isTrueLocked:J,id:ae,parentField:Re})}},{key:"canAddGroup",value:function(){return this.props.allowFurtherNesting}},{key:"canAddRule",value:function(){var s=this.props,b=s.totalRulesCnt,M=s.isMaxNestingExceeded,F=s.parentField,W=this.props.config.settings.maxNumberOfRules;if(F){var J=TS(this.props.config,F);W=J.maxNumberOfRules}return M?!1:W?b<W:!0}},{key:"canDeleteGroup",value:function(){return!this.props.isRoot}},{key:"renderChildren",value:function(){var s=this.props.children1;return s?s.valueSeq().toArray().map(this.renderItem):null}},{key:"renderItem",value:function(s){if(s){var b=this.props,M=b.config,F=b.actions,W=b.onDragStart,J=b.isLocked,ae=b.parentField,Re=b.parentFieldPathSize,He=b.parentFieldCanReorder,at=s.get("type")=="group"&&s.getIn(["properties","field"])!=null,Bt=at?"rule_group":s.get("type");return ie.createElement(PS,vu({key:s.get("id"),id:s.get("id"),groupId:b.id,path:s.get("path"),type:Bt,properties:s.get("properties"),config:M,actions:F,children1:s.get("children1"),parentField:ae,parentFieldPathSize:Re,parentFieldCanReorder:He,reordableNodesCnt:this.reordableNodesCntForItem(s),totalRulesCnt:this.totalRulesCntForItem(s),parentReordableNodesCnt:this.reordableNodesCnt(),onDragStart:W,isDraggingTempo:this.props.isDraggingTempo,isParentLocked:J},this.extraPropsForItem(s)))}}},{key:"extraPropsForItem",value:function(s){return{}}},{key:"reordableNodesCnt",value:function(){return this.props.isLocked?0:this.props.reordableNodesCnt}},{key:"totalRulesCntForItem",value:function(s){return s.get("type")==="rule_group"?Qx(s):this.props.totalRulesCnt}},{key:"reordableNodesCntForItem",value:function(s){return this.props.isLocked?0:this.reordableNodesCnt()}},{key:"showDragIcon",value:function(){var s=this.props,b=s.config,M=s.isRoot,F=s.isLocked,W=s.parentField,J=s.parentFieldCanReorder,ae=this.reordableNodesCnt(),Re=b.settings.canReorder&&!M&&ae>1&&!F;return W&&(Re=Re&&J),Re}},{key:"renderDrag",value:function(){var s=this.props.handleDraggerMouseDown,b=this.Icon,M=ie.createElement(b,{type:"drag"});return this.showDragIcon()&&ie.createElement("div",{key:"group-drag-icon",onMouseDown:s,className:"qb-drag-handler group--drag-handler"},M)}},{key:"conjunctionOptions",value:function(){var s=this.props,b=s.parentField,M=s.conjunctionOptions;return b?this.conjunctionOptionsForGroupField(b):M}},{key:"conjunctionOptionsForGroupField",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,b=this.props,M=b.config,F=b.conjunctionOptions,W=TS(M,s);if(W!=null&&W.conjunctions){var J={},ae=Yx(W.conjunctions),Re;try{for(ae.s();!(Re=ae.n()).done;){var He=Re.value,at=F[He];at&&(J[He]=at)}}catch(Bt){ae.e(Bt)}finally{ae.f()}return J}return F}},{key:"renderConjs",value:function(){var s=this.props,b=s.config,M=s.children1,F=s.id,W=s.selectedConjunction,J=s.setConjunction,ae=s.not,Re=s.setNot,He=s.isLocked,at=b.settings,Bt=at.immutableGroupsMode,Sn=at.notLabel,yn=this.conjunctionOptions();if(!this.showConjs()||!M||!M.size)return null;var xn={disabled:this.isOneChild(),readonly:Bt||He,selectedConjunction:W,setConjunction:Bt?_f:J,conjunctionOptions:yn,config:b,not:ae||!1,id:F,setNot:Bt?_f:Re,notLabel:Sn,showNot:this.showNot(),isLocked:He},sr=this.Conjs;return ie.createElement(sr,vu({key:"group-conjs"},xn))}},{key:"renderHeader",value:function(){return ie.createElement("div",{key:"group-conjunctions",className:"group--conjunctions"},this.renderConjs(),this.renderDrag())}},{key:"render",value:function(){return ie.createElement(ie.Fragment,null,this.renderHeaderWrapper(),this.renderChildrenWrapper(),this.renderFooterWrapper())}}])}(ie.Component);ah.propTypes={reordableNodesCnt:Fi().number,conjunctionOptions:Fi().object.isRequired,allowFurtherNesting:Fi().bool.isRequired,isMaxNestingExceeded:Fi().bool,isRoot:Fi().bool.isRequired,not:Fi().bool,selectedConjunction:Fi().string,config:Fi().object.isRequired,id:Fi().string.isRequired,groupId:Fi().string,path:Fi().any,children1:Fi().any,isDraggingMe:Fi().bool,isDraggingTempo:Fi().bool,isLocked:Fi().bool,isTrueLocked:Fi().bool,parentField:Fi().string,handleDraggerMouseDown:Fi().func,onDragStart:Fi().func,addRule:Fi().func.isRequired,addGroup:Fi().func.isRequired,removeSelf:Fi().func.isRequired,setConjunction:Fi().func.isRequired,setNot:Fi().func.isRequired,setLock:Fi().func.isRequired,actions:Fi().object.isRequired};const eC=Jm(mv("group")(yv(ah)),"group");function tC(c,t){for(;!{}.hasOwnProperty.call(c,t)&&(c=B(c))!==null;);return c}function bv(){return bv=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(c,t,i){var s=tC(c,t);if(s){var b=Object.getOwnPropertyDescriptor(s,t);return b.get?b.get.call(arguments.length<3?c:i):b.value}},bv.apply(null,arguments)}function nC(c,t,i){return t=B(t),T(c,C_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function C_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C_=function(){return!!c})()}var rC=function(c){function t(){return z(this,t),nC(this,t,arguments)}return ue(t,c),te(t,[{key:"render",value:function(){var s=this.props,b=s.config,M=s.addRule,F=s.canAddRule,W=s.canDeleteGroup,J=s.removeSelf,ae=s.setLock,Re=s.isLocked,He=s.isTrueLocked,at=s.id,Bt=b.settings,Sn=Bt.immutableGroupsMode,yn=Bt.addRuleLabel,xn=Bt.delGroupLabel,sr=Bt.renderButton,gr=Bt.renderIcon,Vr=Bt.renderSwitch,Dr=Bt.renderButtonGroup,li=Bt.lockLabel,oi=Bt.lockedLabel,Ei=Bt.showLock,sa=Bt.canDeleteLocked,Ki=function(ga){return gr(ga,b.ctx)},Bi=function(ga){return sr(ga,b.ctx)},qi=function(ga){return Vr(ga,b.ctx)},oa=function(ga){return Dr(ga,b.ctx)},zi=Ei&&!(Re&&!He)&&ie.createElement(qi,{type:"lock",id:at,value:Re,setValue:ae,label:li,checkedLabel:oi,hideLabel:!0,config:b}),va=!Sn&&F&&!Re&&ie.createElement(Bi,{type:"addSubRuleSimple",onClick:M,label:yn,readonly:Re,config:b,renderIcon:Ki}),ba=!Sn&&W&&(!Re||Re&&sa)&&ie.createElement(Bi,{type:"delRuleGroup",onClick:J,label:xn,config:b,renderIcon:Ki});return ie.createElement("div",{className:"group--actions"},ie.createElement(oa,{config:b},zi,va,ba))}}])}(ie.PureComponent);function O_(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function T_(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?O_(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):O_(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function iC(c,t,i){return t=B(t),T(c,A_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function A_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A_=function(){return!!c})()}function R_(c,t,i,s){var b=bv(B(1&s?c.prototype:c),t,i);return 2&s&&typeof b=="function"?function(M){return b.apply(i,M)}:b}var aC=Ys.ConfigUtils.getFieldConfig,P_=function(c){function t(i){var s;return z(this,t),s=iC(this,t,[i]),s.childrenClassName=function(){return"rule_group--children"},s.renderHeaderWrapper=function(){return null},s.renderFooterWrapper=function(){return null},s.renderConjs=function(){return null},s.canAddGroup=function(){return!1},s.canAddRule=function(){return!0},s.canDeleteGroup=function(){return!1},s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){R_(t,"onPropsChanged",this,3)([s])}},{key:"reordableNodesCntForItem",value:function(s){if(this.props.isLocked)return 0;var b=this.props.children1;return b?.size||0}},{key:"renderChildrenWrapper",value:function(){return ie.createElement(ie.Fragment,null,this.renderDrag(),this.renderField(),this.renderActions(),R_(t,"renderChildrenWrapper",this,3)([]))}},{key:"renderField",value:function(){var s=this.props,b=s.config,M=s.selectedField,F=s.selectedFieldSrc,W=s.selectedFieldType,J=s.setField,ae=s.setFuncValue,Re=s.setFieldSrc,He=s.parentField,at=s.id,Bt=s.groupId,Sn=s.isLocked,yn=b.settings.immutableFieldsMode;return ie.createElement(OS,{key:"field",classname:"group--field",config:b,canSelectFieldSource:!1,selectedField:M,selectedFieldSrc:F,selectedFieldType:W,setField:J,setFuncValue:ae,setFieldSrc:Re,parentField:He,readonly:yn||Sn,id:at,groupId:Bt})}},{key:"renderActions",value:function(){var s=this.props,b=s.config,M=s.addRule,F=s.isLocked,W=s.isTrueLocked,J=s.id;return ie.createElement(rC,{config:b,addRule:M,canAddRule:this.canAddRule(),canDeleteGroup:this.canDeleteGroup(),removeSelf:this.removeSelf,setLock:this.setLock,isLocked:F,isTrueLocked:W,id:J})}},{key:"extraPropsForItem",value:function(s){var b,M=this.props,F=M.selectedField,W=M.lev,J=M.config,ae=aC(J,F);return{parentField:F,parentFieldPathSize:W+1,parentFieldCanReorder:(b=ae?.canReorder)!==null&&b!==void 0?b:J.settings.canReorder}}}])}(ah);P_.propTypes=T_(T_({},ah.propTypes),{},{selectedField:Fi().any,selectedFieldSrc:Fi().string,parentField:Fi().string,setField:Fi().func,setFieldSrc:Fi().func,lev:Fi().number});const oC=Jm(mv("group rule_group")(yv(P_)),"rule_group");function sC(c,t,i){return t=B(t),T(c,I_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function I_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I_=function(){return!!c})()}var uC=function(c){function t(){return z(this,t),sC(this,t,arguments)}return ue(t,c),te(t,[{key:"render",value:function(){var s=this.props,b=s.config,M=s.addRule,F=s.addGroup,W=s.canAddRule,J=s.canAddGroup,ae=s.canDeleteGroup,Re=s.removeSelf,He=s.setLock,at=s.isLocked,Bt=s.isTrueLocked,Sn=s.id,yn=b.settings,xn=yn.immutableGroupsMode,sr=yn.addSubRuleLabel,gr=yn.addSubGroupLabel,Vr=yn.delGroupLabel,Dr=yn.renderButton,li=yn.renderIcon,oi=yn.renderSwitch,Ei=yn.renderButtonGroup,sa=yn.lockLabel,Ki=yn.lockedLabel,Bi=yn.showLock,qi=yn.canDeleteLocked,oa=function(Aa){return li(Aa,b.ctx)},zi=function(Aa){return Dr(Aa,b.ctx)},va=function(Aa){return oi(Aa,b.ctx)},ba=function(Aa){return Ei(Aa,b.ctx)},fa=Bi&&!(at&&!Bt)&&ie.createElement(va,{type:"lock",id:Sn,value:at,setValue:He,label:sa,checkedLabel:Ki,config:b}),ga=!xn&&W&&!at&&ie.createElement(zi,{type:"addSubRule",onClick:M,label:sr,readonly:at,config:b,renderIcon:oa}),da=!xn&&J&&!at&&ie.createElement(zi,{type:"addSubGroup",onClick:F,label:gr,readonly:at,config:b,renderIcon:oa}),Ca=!xn&&ae&&(!at||at&&qi)&&ie.createElement(zi,{type:"delRuleGroup",onClick:Re,label:Vr,config:b,renderIcon:oa});return ie.createElement("div",{className:"group--actions group--actions--tr"},ie.createElement(ba,{config:b},fa,ga,da,Ca))}}])}(ie.PureComponent);function D_(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function M_(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):D_(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function lC(c,t,i){return t=B(t),T(c,k_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function k_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k_=function(){return!!c})()}function cC(c,t,i,s){var b=bv(B(1&s?c.prototype:c),t,i);return 2&s&&typeof b=="function"?function(M){return b.apply(i,M)}:b}var L_=Ys.ConfigUtils,AS=L_.getFieldConfig,fC=L_.getFieldWidgetConfig,dC=Ys.RuleUtils.isEmptyRuleGroupExtPropertiesAndChildren,hC=Ys.TreeUtils.getTotalReordableNodesCountInTree,N_=function(c){function t(i){var s;return z(this,t),s=lC(this,t,[i]),s.childrenClassName=function(){return"rule_group_ext--children"},s.renderFooterWrapper=function(){return null},s.canDeleteGroup=function(){return!0},s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){cC(t,"onPropsChanged",this,3)([s])}},{key:"canAddGroup",value:function(){return this.props.allowFurtherNesting}},{key:"canAddRule",value:function(){var s=this.props,b=s.config,M=s.selectedField,F=AS(b,M),W=F?.maxNumberOfRules,J=this.props.totalRulesCnt;return W?J<W:!0}},{key:"renderHeaderWrapper",value:function(){return ie.createElement("div",{key:"group-header",className:_d()("group--header",this.isOneChild()?"one--child":"",this.isOneChild()?"hide--line":"",this.isNoChildren()?"no--children":"",this.showDragIcon()?"with--drag":"hide--drag",this.showConjs()?"with--conjs":"hide--conjs")},this.renderHeader(),this.renderGroupField(),this.renderActions())}},{key:"renderHeader",value:function(){return ie.createElement("div",{className:"group--conjunctions"},this.renderConjs(),this.renderDrag())}},{key:"renderGroupField",value:function(){return ie.createElement("div",{className:"group--field--count--rule"},this.renderField(),this.renderOperator(),this.renderWidget(),this.renderError())}},{key:"renderError",value:function(){var s=this.props,b=s.config,M=s.valueError,F=b.settings,W=F.renderRuleError,J=F.showErrorMessage,ae=of(M?.toArray()||[]).filter(function(Re){return!!Re}).shift()||null;return J&&ae&&ie.createElement("div",{className:"rule_group--error"},W?W({error:ae},b.ctx):ae)}},{key:"showNot",value:function(){var s,b=this.props,M=b.config,F=b.selectedField,W=AS(M,F);return(s=W?.showNot)!==null&&s!==void 0?s:M.settings.showNot}},{key:"conjunctionOptions",value:function(){var s=this.props.selectedField;return this.conjunctionOptionsForGroupField(s)}},{key:"renderField",value:function(){var s=this.props,b=s.config,M=s.selectedField,F=s.selectedFieldSrc,W=s.selectedFieldType,J=s.setField,ae=s.setFieldSrc,Re=s.setFuncValue,He=s.parentField,at=s.id,Bt=s.groupId,Sn=s.isLocked,yn=b.settings.immutableFieldsMode;return ie.createElement(OS,{key:"field",classname:"rule--field",config:b,canSelectFieldSource:!1,selectedField:M,selectedFieldSrc:F,selectedFieldType:W,setField:J,setFuncValue:Re,setFieldSrc:ae,parentField:He,readonly:yn||Sn,id:at,groupId:Bt})}},{key:"renderOperator",value:function(){var s=this.props,b=s.config,M=s.selectedField,F=s.selectedFieldSrc,W=s.selectedOperator,J=s.setField,ae=s.setOperator,Re=s.isLocked,He=b.settings.immutableFieldsMode,at=fC(b,M,W)||{},Bt=at.hideOperator,Sn=M&&Bt&&at.operatorInlineLabel,yn=M&&!Bt;return ie.createElement(N1,{key:"operator",classname:"group--operator",config:b,selectedField:M,selectedFieldSrc:F,selectedOperator:W,setOperator:ae,showOperator:yn,showOperatorLabel:Sn,selectedFieldWidgetConfig:at,readonly:He||Re,id:this.props.id,groupId:this.props.groupId})}},{key:"isEmptyCurrentGroup",value:function(){var s=this.props,b=s.children1,M=s.config,F=this._buildWidgetProps(this.props);return dC(F,b,M)}},{key:"_buildWidgetProps",value:function(s){var b=s.selectedField,M=s.selectedFieldSrc,F=s.selectedFieldType,W=s.selectedOperator,J=s.operatorOptions,ae=s.value,Re=s.valueType,He=s.valueSrc,at=s.asyncListValues,Bt=s.valueError,Sn=s.fieldError,yn=s.parentField;return{field:b,fieldSrc:M,fieldType:F,operator:W,operatorOptions:J,value:ae,valueType:Re,valueSrc:["value"],valueError:Bt,fieldError:null,parentField:yn}}},{key:"renderWidget",value:function(){var s=this.props,b=s.config,M=s.selectedField,F=s.selectedOperator,W=s.isLocked,J=b.settings.immutableValuesMode,ae=M&&F,Re=ae;if(!Re)return null;var He=ie.createElement(Ym,vu({key:"values",isForRuleGroup:!0},this._buildWidgetProps(this.props),{config:b,setValue:J?_f:this.props.setValue,setValueSrc:_f,readonly:J||W,id:this.props.id,groupId:this.props.groupId}));return ie.createElement(cc,{key:"widget-for-"+this.props.selectedOperator,className:"rule--value"},He)}},{key:"renderActions",value:function(){var s=this.props,b=s.config,M=s.addRule,F=s.addGroup,W=s.isLocked,J=s.isTrueLocked,ae=s.id;return ie.createElement(uC,{config:b,addRule:M,addGroup:F,canAddRule:this.canAddRule(),canAddGroup:this.canAddGroup(),canDeleteGroup:this.canDeleteGroup(),removeSelf:this.removeSelf,setLock:this.setLock,isLocked:W,isTrueLocked:J,id:ae})}},{key:"reordableNodesCntForItem",value:function(s){if(this.props.isLocked)return 0;var b=this.props,M=b.children1,F=b.id;return hC({id:F,type:"rule_group",children1:M})}},{key:"extraPropsForItem",value:function(s){var b,M=this.props,F=M.selectedField,W=M.lev,J=M.config,ae=AS(J,F);return{parentField:F,parentFieldPathSize:W+1,parentFieldCanReorder:(b=ae?.canReorder)!==null&&b!==void 0?b:J.settings.canReorder}}}])}(ah);N_.propTypes=M_(M_({},ah.propTypes),{},{selectedField:Fi().any,selectedFieldSrc:Fi().string,selectedOperator:Fi().string,value:Fi().any,parentField:Fi().string,setField:Fi().func,setFieldSrc:Fi().func,setOperator:Fi().func,setValue:Fi().func,valueError:Fi().any,lev:Fi().number});const pC=Jm(mv("group rule_group_ext")(yv(N_)),"rule_group");function vC(c,t,i){return t=B(t),T(c,F_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function F_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F_=function(){return!!c})()}var mC={topLeft:"group--actions--tl",topCenter:"group--actions--tc",topRight:"group--actions--tr",bottomLeft:"group--actions--bl",bottomCenter:"group--actions--bc",bottomRight:"group--actions--br"},gC="topRight",yC=function(c){function t(){return z(this,t),vC(this,t,arguments)}return ue(t,c),te(t,[{key:"render",value:function(){var s=this.props,b=s.config,M=s.addCaseGroup,F=s.addDefaultCaseGroup,W=s.setLock,J=s.isLocked,ae=s.isTrueLocked,Re=s.id,He=s.canAddGroup,at=s.canAddDefault,Bt=b.settings,Sn=Bt.immutableGroupsMode,yn=Bt.addCaseLabel,xn=Bt.addDefaultCaseLabel,sr=Bt.groupActionsPosition,gr=Bt.renderButton,Vr=Bt.renderIcon,Dr=Bt.renderSwitch,li=Bt.renderButtonGroup,oi=Bt.lockLabel,Ei=Bt.lockedLabel,sa=Bt.showLock,Ki=function(da){return Vr(da,b.ctx)},Bi=function(da){return gr(da,b.ctx)},qi=function(da){return Dr(da,b.ctx)},oa=function(da){return li(da,b.ctx)},zi=mC[sr||gC],va=sa&&!(J&&!ae)&&ie.createElement(qi,{type:"lock",id:Re,value:J,setValue:W,label:oi,checkedLabel:Ei,config:b}),ba=!Sn&&He&&!J&&ie.createElement(Bi,{type:"addCaseGroup",onClick:M,label:yn,readonly:J,config:b,renderIcon:Ki}),fa=!Sn&&at&&!J&&ie.createElement(Bi,{type:"addDefaultCaseGroup",onClick:F,label:xn,readonly:J,config:b,renderIcon:Ki});return ie.createElement("div",{className:"group--actions ".concat(zi)},ie.createElement(oa,{config:b},va,ba,fa))}}])}(ie.PureComponent);function j_(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function bC(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):j_(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function SC(c,t,i){return t=B(t),T(c,B_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function B_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B_=function(){return!!c})()}function _C(c,t,i,s){var b=bv(B(1&s?c.prototype:c),t,i);return 2&s&&typeof b=="function"?function(M){return b.apply(i,M)}:b}var $_=Ys.TreeUtils,EC=$_.getTotalReordableNodesCountInTree,wC=$_.getTotalRulesCountInTree,U_=function(c){function t(i){var s;return z(this,t),s=SC(this,t,[i]),s.childrenClassName=function(){return"switch_group--children"},s.renderFooterWrapper=function(){return null},s.hasDefaultCase=function(){var b;return((b=s.props.children1)===null||b===void 0?void 0:b.size)&&s.props.children1.filter(function(M){return M.get("children1")==null}).size>0},s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){_C(t,"onPropsChanged",this,3)([s])}},{key:"canAddGroup",value:function(){var s,b=this.props.config.settings.maxNumberOfCases,M=((s=this.props.children1)===null||s===void 0?void 0:s.size)||0;return b?M<b:!0}},{key:"canAddRule",value:function(){return!1}},{key:"reordableNodesCnt",value:function(){var s,b=((s=this.props.children1)===null||s===void 0?void 0:s.size)||0,M=b;return this.hasDefaultCase()&&M--,M}},{key:"totalRulesCntForItem",value:function(s){return wC(s)}},{key:"reordableNodesCntForItem",value:function(s){var b;if(this.props.isLocked)return 0;var M=this.props.config.settings,F=M.canLeaveEmptyCase,W=M.canRegroupCases,J=((b=this.props.children1)===null||b===void 0?void 0:b.size)||0,ae=J;this.hasDefaultCase()&&ae--;var Re=EC(s),He=Re;return He==1&&W&&F&&ae>1&&(He=111),He}},{key:"showConjs",value:function(){return!0}},{key:"renderHeaderWrapper",value:function(){return ie.createElement("div",{key:"group-header",className:_d()("group--header",this.isOneChild()?"one--child":"",this.isOneChild()?"hide--line":"",this.isNoChildren()?"no--children":"",this.showDragIcon()?"with--drag":"hide--drag",this.showConjs()?"with--conjs":"hide--conjs")},this.renderHeader(),this.renderActions())}},{key:"renderHeader",value:function(){return ie.createElement("div",{className:"group--conjunctions"},this.renderConjs(),this.renderDrag())}},{key:"renderConjs",value:function(){var s=this.props.config,b=s.settings.renderSwitchPrefix;return b||null}},{key:"showNot",value:function(){return!1}},{key:"renderActions",value:function(){var s=this.props,b=s.config,M=s.addCaseGroup,F=s.addDefaultCaseGroup,W=s.isLocked,J=s.isTrueLocked,ae=s.id;return ie.createElement(yC,{config:b,addCaseGroup:M,addDefaultCaseGroup:F,canAddDefault:!this.hasDefaultCase(),canAddGroup:this.canAddGroup(),setLock:this.setLock,isLocked:W,isTrueLocked:J,id:ae})}}])}(ah);U_.propTypes=bC({},ah.propTypes);const xC=Jm(mv("group switch_group")(yv(U_)),"switch_group");function V_(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function z_(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?V_(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):V_(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function CC(c,t,i){return t=B(t),T(c,W_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function W_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W_=function(){return!!c})()}function Sv(c,t,i,s){var b=bv(B(1&s?c.prototype:c),t,i);return 2&s&&typeof b=="function"?function(M){return b.apply(i,M)}:b}var G_=function(c){function t(i){var s;return z(this,t),s=CC(this,t,[i]),s.childrenClassName=function(){return"case_group--children"},s.renderFooterWrapper=function(){return null},s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=!this.renderBeforeCaseValue||b?.config!==s?.config;if(Sv(t,"onPropsChanged",this,3)([s]),M){var F=s.config,W=F.settings,J=W.renderBeforeCaseValue,ae=W.renderAfterCaseValue,Re=W.renderRuleError;this.BeforeCaseValue=Ef(F,J),this.AfterCaseValue=Ef(F,ae),this.RuleError=Ef(F,Re)}}},{key:"isDefaultCase",value:function(){return this.props.children1==null}},{key:"reordableNodesCnt",value:function(){return this.props.parentReordableNodesCnt}},{key:"reordableNodesCntForItem",value:function(s){return this.props.isLocked?0:this.props.reordableNodesCnt}},{key:"totalRulesCntForItem",value:function(s){return this.props.totalRulesCnt}},{key:"showDragIcon",value:function(){return this.isDefaultCase()?!1:Sv(t,"showDragIcon",this,3)([])}},{key:"renderHeaderWrapper",value:function(){return ie.createElement("div",{key:"group-header",className:_d()("group--header",this.isOneChild()?"one--child":"",this.isOneChild()?"hide--line":"",this.isNoChildren()?"no--children":"",this.showDragIcon()?"with--drag":"hide--drag",this.showConjs()&&(!this.isOneChild()||this.showNot())?"with--conjs":"hide--conjs")},this.renderHeaderLeft(),this.renderHeaderCenter(),this.renderActions())}},{key:"renderChildrenWrapper",value:function(){return this.isDefaultCase()?null:ie.createElement("div",{className:"case_group--body"},this.renderCondition(),this.renderBeforeValue(),this.renderValue(),this.renderAfterValue())}},{key:"renderHeaderLeft",value:function(){if(this.isDefaultCase()){var s=this.props.config.settings.defaultCaseLabel;return s||""}return ie.createElement("div",{className:"group--conjunctions"},this.renderConjs(),this.renderDrag(),this.renderError())}},{key:"renderCondition",value:function(){return this.isDefaultCase()?null:Sv(t,"renderChildrenWrapper",this,3)([])}},{key:"renderHeaderCenter",value:function(){return this.isDefaultCase()?ie.createElement("div",null,this.renderValue(),this.renderError()):null}},{key:"canAddGroup",value:function(){return this.isDefaultCase()?!1:Sv(t,"canAddGroup",this,3)([])}},{key:"canAddRule",value:function(){return this.isDefaultCase()?!1:Sv(t,"canAddRule",this,3)([])}},{key:"renderBeforeValue",value:function(){var s=this.BeforeCaseValue;return s==null?null:ie.createElement(s,vu({key:"values-before"},this.props))}},{key:"renderAfterValue",value:function(){var s=this.AfterCaseValue;return s==null?null:ie.createElement(s,vu({key:"values-after"},this.props))}},{key:"renderError",value:function(){var s=this.props,b=s.config,M=s.valueError,F=b.settings.showErrorMessage,W=this.RuleError,J=of(M?.toArray()||[]).filter(function(ae){return!!ae}).shift()||null;return F&&J&&ie.createElement("div",{className:"rule--error"},W?ie.createElement(W,{error:J}):J)}},{key:"renderValue",value:function(){var s=this.props,b=s.config,M=s.isLocked,F=s.value,W=s.valueSrc,J=s.valueError,ae=s.setValue,Re=s.setValueSrc,He=s.setFuncValue,at=s.id,Bt=b.settings.immutableValuesMode,Sn=ie.createElement(Ym,{key:"values",isCaseValue:!0,field:"!case_value",operator:null,value:F,valueSrc:W??"value",valueError:J,fieldError:null,config:b,setValue:Bt?_f:ae,setValueSrc:Bt?_f:Re,setFuncValue:Bt?_f:He,readonly:Bt||M,id:at,groupId:null});return ie.createElement(cc,{className:"case_group--value"},Sn)}},{key:"renderActions",value:function(){var s=this.props,b=s.config,M=s.addGroup,F=s.addRule,W=s.isLocked,J=s.isTrueLocked,ae=s.id;return ie.createElement(b_,{config:b,addGroup:M,addRule:F,canAddRule:this.canAddRule(),canAddGroup:this.canAddGroup(),canDeleteGroup:this.canDeleteGroup(),removeSelf:this.removeSelf,setLock:this.setLock,isLocked:W,isTrueLocked:J,id:ae})}},{key:"isEmptyCurrentGroup",value:function(){var s=this.props.value,b=s&&s.size?s.get(0):null,M=b!=null&&(Array.isArray(b)?b.length>0:!0);return Sv(t,"isEmptyCurrentGroup",this,3)([])&&!M}}])}(ah);G_.propTypes=z_(z_({},ah.propTypes),{},{parentReordableNodesCnt:Fi().number,value:Fi().any,setValue:Fi().func});const OC=Jm(mv("group case_group")(yv(G_)),"case_group");var TC=["type"];function AC(c,t,i){return t=B(t),T(c,H_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function H_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H_=function(){return!!c})()}function K_(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function RS(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):K_(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var RC=["rule","group","rule_group","switch_group","case_group"],_v=function(t){var i,s=((i=t.properties)===null||i===void 0?void 0:i.toObject())||{},b=RS({},s);return t.isParentLocked&&(b.isLocked=!0),s.isLocked&&(b.isTrueLocked=!0),b},PC={rule:function(t){return ie.createElement(Bx,vu({},_v(t),{id:t.id,groupId:t.groupId,path:t.path,actions:t.actions,reordableNodesCnt:t.reordableNodesCnt,totalRulesCnt:t.totalRulesCnt,config:t.config,onDragStart:t.onDragStart,isDraggingTempo:t.isDraggingTempo,parentField:t.parentField,parentFieldPathSize:t.parentFieldPathSize,parentReordableNodesCnt:t.parentReordableNodesCnt,parentFieldCanReorder:t.parentFieldCanReorder}))},group:function(t){return ie.createElement(eC,vu({},_v(t),{id:t.id,groupId:t.groupId,path:t.path,actions:t.actions,config:t.config,reordableNodesCnt:t.reordableNodesCnt,totalRulesCnt:t.totalRulesCnt,onDragStart:t.onDragStart,isDraggingTempo:t.isDraggingTempo,children1:t.children1,parentField:t.parentField,parentFieldPathSize:t.parentFieldPathSize,parentReordableNodesCnt:t.parentReordableNodesCnt,parentFieldCanReorder:t.parentFieldCanReorder}))},rule_group:function(t){return ie.createElement(oC,vu({},_v(t),{id:t.id,groupId:t.groupId,path:t.path,actions:t.actions,config:t.config,reordableNodesCnt:t.reordableNodesCnt,totalRulesCnt:t.totalRulesCnt,onDragStart:t.onDragStart,isDraggingTempo:t.isDraggingTempo,children1:t.children1,parentField:t.parentField,parentFieldPathSize:t.parentFieldPathSize,parentReordableNodesCnt:t.parentReordableNodesCnt,parentFieldCanReorder:t.parentFieldCanReorder}))},rule_group_ext:function(t){return ie.createElement(pC,vu({},_v(t),{id:t.id,groupId:t.groupId,path:t.path,actions:t.actions,config:t.config,reordableNodesCnt:t.reordableNodesCnt,totalRulesCnt:t.totalRulesCnt,onDragStart:t.onDragStart,isDraggingTempo:t.isDraggingTempo,children1:t.children1,parentField:t.parentField,parentFieldPathSize:t.parentFieldPathSize,parentReordableNodesCnt:t.parentReordableNodesCnt,parentFieldCanReorder:t.parentFieldCanReorder}))},switch_group:function(t){return ie.createElement(xC,vu({},_v(t),{id:t.id,groupId:t.groupId,path:t.path,actions:t.actions,config:t.config,reordableNodesCnt:t.reordableNodesCnt,totalRulesCnt:t.totalRulesCnt,onDragStart:t.onDragStart,isDraggingTempo:t.isDraggingTempo,children1:t.children1,parentField:null,parentReordableNodesCnt:t.parentReordableNodesCnt}))},case_group:function(t){return ie.createElement(OC,vu({},_v(t),{id:t.id,groupId:t.groupId,path:t.path,actions:t.actions,config:t.config,reordableNodesCnt:t.reordableNodesCnt,totalRulesCnt:t.totalRulesCnt,onDragStart:t.onDragStart,isDraggingTempo:t.isDraggingTempo,children1:t.children1,parentField:null,parentReordableNodesCnt:t.parentReordableNodesCnt}))}},PS=function(c){function t(){return z(this,t),AC(this,t,arguments)}return ue(t,c),te(t,[{key:"render",value:function(){var s,b=this.props,M=b.type,F=vv(b,TC),W=(s=F.properties)===null||s===void 0?void 0:s.get("mode"),J=W=="array"?"_ext":"",ae=F.config.settings.renderItem,Re=PC[M+J];return ae?ae(RS(RS({},F),{},{type:M,itemComponent:Re}),F.config.ctx):Re?Re(F):null}}])}(ie.PureComponent);PS.propTypes={config:Fi().object.isRequired,id:Fi().string.isRequired,groupId:Fi().string,type:Fi().oneOf(RC).isRequired,path:Fi().any.isRequired,properties:Fi().any,children1:Fi().any,actions:Fi().object.isRequired,reordableNodesCnt:Fi().number,onDragStart:Fi().func,parentField:Fi().string,isDraggingTempo:Fi().bool,isParentLocked:Fi().bool};function IC(c,t,i){return t=B(t),T(c,Y_()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function Y_(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y_=function(){return!!c})()}var J_=Ys.TreeUtils,DC=J_.getTotalReordableNodesCountInTree,MC=J_.getTotalRulesCountInTree,Z_=Ys.DefaultUtils,kC=Z_.createListWithOneElement,X_=Z_.emptyProperties,Q_=function(c){function t(i){var s;return z(this,t),s=IC(this,t,[i]),s.pureShouldComponentUpdate=pv(s),s._updPath(i),s}return ue(t,c),te(t,[{key:"shouldComponentUpdate",value:function(s,b){var M=this.pureShouldComponentUpdate(s,b);return M}},{key:"_updPath",value:function(s){var b=s.tree.get("id");this.path=kC(b)}},{key:"render",value:function(){var s=this.props,b=s.tree,M=s.config,F=s.actions,W=s.onDragStart,J=b.get("type"),ae=J=="switch_group",Re=ae?null:DC(b),He=ae?null:MC(b),at=b.get("id");return ie.createElement(PS,{key:at,id:at,path:this.path,type:J,properties:b.get("properties")||X_(),config:M,actions:F,children1:b.get("children1")||X_(),reordableNodesCnt:Re,totalRulesCnt:He,parentReordableNodesCnt:0,onDragStart:W})}}])}(ie.Component);Q_.propTypes={tree:Fi().any.isRequired,config:Fi().object.isRequired,actions:Fi().object.isRequired,onDragStart:Fi().func};const LC=Gw(Q_);function q_(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function NC(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?q_(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):q_(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}function FC(c,t,i){return t=B(t),T(c,eE()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function eE(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eE=function(){return!!c})()}var jC=Ys.OtherUtils.clone,O0=Ys.ConfigUtils,Zm=O0.getFieldConfig,tE=O0.getFieldParts,nE=O0.getFieldPathParts,BC=O0.getWidgetForFieldOp,rE=Ys.RuleUtils.getFieldPathLabels,iE=function(c){function t(i){var s;return z(this,t),s=FC(this,t,[i]),Sf(s),s.onPropsChanged(i),s}return ue(t,c),te(t,[{key:"onPropsChanged",value:function(s){var b=this.props,M=["config","field","fieldSrc","fieldType","operator","isFuncArg","parentField"],F=["config","field","fieldSrc","fieldType","operator","value","placeholder","isFuncArg","parentField"],W=!this.items||M.map(function(ae){return s[ae]!==b[ae]}).filter(function(ae){return ae}).length>0,J=!this.meta||F.map(function(ae){return s[ae]!==b[ae]}).filter(function(ae){return ae}).length>0;W&&(this.items=this.getItems(s)),J&&(this.meta=this.getMeta(s))}},{key:"getItems",value:function(s){var b=s.config,M=s.field,F=s.fieldType,W=s.operator,J=s.parentField,ae=s.isFuncArg,Re=s.fieldDefinition,He=b.settings.canCompareFieldWithField,at=tE(J,b),Bt=J?Zm(b,J):null,Sn=J?Bt?.subfields:b.fields,yn=this.filterFields(b,Sn,M,J,at,W,He,ae,Re,F),xn=this.buildOptions(at,b,yn,at);return xn}},{key:"getMeta",value:function(s){var b,M=s.config,F=s.field,W=s.fieldType,J=s.operator,ae=s.value,Re=s.placeholder,He=s.isFuncArg,at=s.parentField,Bt=M.settings,Sn=Bt.fieldPlaceholder,yn=Bt.fieldSeparatorDisplay,xn=ae,sr=!!ae,gr=F?Zm(M,F):{},Vr=gr==null||(b=gr.widgets)===null||b===void 0?void 0:b.field,Dr=Vr?.widgetProps||{},li=sr?null:He&&Re||Dr.valuePlaceholder||Sn,oi=sr?Zm(M,xn):null,Ei=oi||{},sa=nE(xn,M),Ki=nE(xn,M,!0),Bi=this.getFieldLabel(oi,xn,M),qi=rE(xn,M),oa=qi?qi.join(yn):null;(oa==Bi||at)&&(oa=null);var zi=Ei.label2||Ei.tooltip;return{placeholder:li,selectedKey:xn,selectedKeys:sa,selectedPath:Ki,selectedLabel:Bi,selectedOpts:Ei,selectedAltLabel:zi,selectedFullLabel:oa}}},{key:"filterFields",value:function(s,b,M,F,W,J,ae,Re,He,at){b=jC(b);var Bt=s.settings.fieldSeparator,Sn=Zm(s,M),yn=!1,xn=BC(s,M,J,"value"),sr=s.widgets[xn],gr=s.operators[J],Vr;Re?Vr=He?.type:gr!=null&&gr.valueTypes?Vr=gr?.valueTypes[0]:yn&&sr?Vr=sr.type:Sn?Vr=Sn.type:Vr=at;function Dr(li,oi){for(var Ei in li){var sa=li[Ei].subfields,Ki=(oi||[]).concat(Ei),Bi=Ki.join(Bt),qi=Zm(s,Bi);if(!qi)delete li[Ei];else if(qi.type=="!struct"||qi.type=="!group")Dr(sa,Ki)==0&&delete li[Ei];else{var oa=(!Vr||qi.type==Vr)&&(Re?!0:Bi!=M),zi=ae||s.settings.canCompareFieldWithField;zi&&(oa=oa&&zi(M,Sn,Bi,qi,J)),oa||delete li[Ei]}}return gv()(li).length}return Dr(b,W||[]),b}},{key:"buildOptions",value:function(s,b,M){var F=this,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(!M)return null;var ae=b.settings,Re=ae.fieldSeparator,He=ae.fieldSeparatorDisplay,at=W!=null&&W.length?W.join(Re)+Re:"";return gv()(M).map(function(Bt){var Sn=[].concat(of(W??[]),[Bt]),yn=M[Bt],xn=F.getFieldLabel(yn,Sn,b),sr=rE(Sn,b),gr=sr.join(He);(gr==xn||s)&&(gr=null);var Vr=yn.label2,Dr=yn.tooltip;if(!yn.hideForCompare)return yn.type=="!struct"||yn.type=="!group"?{key:Bt,path:at+Bt,label:xn,fullLabel:gr,altLabel:Vr,tooltip:Dr,items:F.buildOptions(s,b,yn.subfields,Sn,{label:xn,tooltip:Dr})}:{key:Bt,path:at+Bt,label:xn,fullLabel:gr,altLabel:Vr,tooltip:Dr,grouplabel:J?.label,group:J}}).filter(function(Bt){return!!Bt})}},{key:"getFieldLabel",value:function(s,b,M){if(!b)return null;var F=M.settings.maxLabelsLength,W=tE(b,M),J=s?.label||Yf()(W);return J=_0(J,F),J}},{key:"render",value:function(){var s=this.props,b=s.config,M=s.customProps,F=s.setValue,W=s.readonly,J=s.id,ae=s.groupId,Re=b.settings.renderField,He=NC({isValueField:!0,config:b,customProps:M,setField:F,readonly:W,items:this.items,id:J,groupId:ae},this.meta);return Re(He,b.ctx)}}])}(ie.Component);iE.propTypes={id:Fi().string,groupId:Fi().string,setValue:Fi().func.isRequired,config:Fi().object.isRequired,field:Fi().any,fieldSrc:Fi().string,fieldType:Fi().string,value:Fi().string,operator:Fi().string,customProps:Fi().object,readonly:Fi().bool,parentField:Fi().string,fieldDefinition:Fi().object,isFuncArg:Fi().bool};const $C=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.labelYes,M=c.labelNo,F=c.readonly,W=c.widgetId,J=c.customProps,ae=J===void 0?{}:J,Re=ae.radioYes||{},He=ae.radioNo||{},at=function(yn){return i(yn.target.checked)},Bt=function(yn){return i(yn.target.value=="true")};return ie.createElement(ie.Fragment,null,ie.createElement("input",vu({type:"radio",value:!0,checked:!!t,disabled:F,onChange:Bt},Re))," ",b,ie.createElement("input",vu({type:"radio",value:!1,checked:!t,disabled:F,onChange:Bt},He))," ",M)},UC=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.readonly,M=c.placeholder,F=c.maxLength,W=c.customProps,J=function(He){var at=He.target.value;at===""&&(at=void 0),i(at)},ae=t||"";return ie.createElement("input",vu({type:"text",value:ae,placeholder:M,disabled:b,onChange:J,maxLength:F},W))},VC=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.readonly,M=c.placeholder,F=c.maxLength,W=c.maxRows,J=c.fullWidth,ae=c.customProps,Re=function(Bt){var Sn=Bt.target.value;Sn===""&&(Sn=void 0),i(Sn)},He=t||"";return ie.createElement("textarea",vu({value:He,placeholder:M,disabled:b,onChange:Re,maxLength:F,style:{width:J?"100%":void 0}},ae))};var tT=Ys.moment;const zC=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.valueFormat,M=c.readonly,F=c.customProps,W=function(ae){var Re=ae.target.value;Re==""&&(Re=void 0),i(Re)};return ie.createElement("input",vu({type:"date",value:t||"",disabled:M,onChange:W},F))},WC=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.valueFormat,M=c.use12Hours,F=c.readonly,W=c.customProps,J=function(Re){var He=Re.target.value;He==""&&(He=void 0),i(He)};return ie.createElement("input",vu({type:"time",value:t||"",disabled:F,onChange:J},W))};var aE=Ys.moment;const GC=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.valueFormat,M=c.use12Hours,F=c.readonly,W=c.customProps,J=function(He){var at=He.target.value;at==""?at=void 0:at=aE(new Date(at)).format(b),i(at)},ae=t;return t?ae=aE(t).format("YYYY-MM-DDTHH:mm"):ae="",ie.createElement("input",vu({type:"datetime-local",value:ae,disabled:F,onChange:J},W))};var HC=Ys.ListUtils.mapListValues;const KC=function(c){var t=c.listValues,i=c.value,s=c.setValue,b=c.allowCustomValues,M=c.readonly,F=c.customProps,W=function(){return HC(t,function(He){var at=He.title,Bt=He.value;return ie.createElement("option",{key:Bt,value:Bt},at)})},J=function(He){for(var at=[],Bt=He.options,Sn=0;Sn<Bt.length;Sn++){var yn=Bt[Sn];yn.selected&&at.push(yn.value)}return at.length||(at=void 0),at},ae=function(He){return s(J(He.target))};return ie.createElement("select",vu({multiple:!0,onChange:ae,value:i,disabled:M},ms()(F,["showSearch","input","showCheckboxes"])),W())};var YC=Ys.ListUtils.mapListValues;const JC=function(c){var t=c.listValues,i=c.value,s=c.setValue,b=c.allowCustomValues,M=c.readonly,F=c.customProps,W=function(){return YC(t,function(He){var at=He.title,Bt=He.value;return ie.createElement("option",{key:Bt,value:Bt},at)})},J=function(He){return s(He.target.value)},ae=i!=null;return ie.createElement("select",vu({onChange:J,value:ae?i:"",disabled:M},ms()(F,["showSearch","input"])),!ae&&ie.createElement("option",{disabled:!0,value:""}),W())},ZC=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.readonly,M=c.min,F=c.max,W=c.step,J=c.placeholder,ae=c.customProps,Re=function(Bt){var Sn=Bt.target.value;Sn===""||Sn===null?Sn=void 0:Sn=Number(Sn),i(Sn)},He=t??"";return ie.createElement("input",vu({type:"number",value:He,placeholder:J,disabled:b,min:M,max:F,step:W,onChange:Re},ae))},XC=function(c){var t=c.value,i=c.setValue,s=c.config,b=c.readonly,M=c.min,F=c.max,W=c.step,J=c.placeholder,ae=c.customProps,Re=ae===void 0?{}:ae,He=Re.input||{},at=Re.slider||Re,Bt=function(xn){var sr=xn.target.value;sr===""||sr===null?sr=void 0:sr=Number(sr),i(sr)},Sn=t??"";return ie.createElement("div",{style:{display:"inline-flex"}},ie.createElement("input",vu({key:"number",type:"number",value:Sn,placeholder:J,disabled:b,min:M,max:F,step:W,onChange:Bt},He)),ie.createElement("input",vu({key:"range",type:"range",value:Sn,disabled:b,min:M,max:F,step:W,onChange:Bt},at)))},QC=function(c){var t=c.items,i=c.setField,s=c.selectedKey,b=c.readonly,M=c.errorText,F=function(Re){return Re.map(function(He){var at=He.items,Bt=He.path,Sn=He.label,yn=He.disabled,xn=He.matchesType;if(at)return ie.createElement("optgroup",{disabled:yn,key:Bt,label:Sn},F(at));var sr=xn?{fontWeight:"bold"}:{};return ie.createElement("option",{disabled:yn,key:Bt,value:Bt,style:sr},Sn)})},W=function(Re){return i(Re.target.value)},J=s!=null;return ie.createElement("select",{onChange:W,value:J?s:"",disabled:b,style:{color:M?"red":null}},!J&&ie.createElement("option",{disabled:!0,value:""}),F(t))},qC=function(c){var t=c.id,i=c.not,s=c.setNot,b=c.conjunctionOptions,M=c.setConjunction,F=c.disabled,W=c.readonly,J=c.config,ae=c.showNot,Re=c.notLabel,He=Object.keys(b).length,at=F,Bt=J.settings.forceShowConj,Sn=Bt||He>1&&!at,yn=function(){return Object.keys(b).map(function(Dr){var li=b[Dr],oi=li.id,Ei=li.name,sa=li.label,Ki=li.checked,Bi=M.isDummyFn?"__dummy":"";return(W||F)&&!Ki?null:[ie.createElement("input",{key:oi+Bi,type:"radio",id:oi+Bi,name:Ei+Bi,checked:Ki,disabled:W||F,value:Dr,onChange:sr}),ie.createElement("label",{key:oi+Bi+"label",htmlFor:oi+Bi},sa)]})},xn=function(){var Dr="not";return[ie.createElement("input",{key:t+Dr,type:"checkbox",id:t+Dr,checked:i,disabled:W,onChange:gr}),ie.createElement("label",{key:t+Dr+"label",htmlFor:t+Dr},Re||"NOT")]},sr=function(Dr){return M(Dr.target.value)},gr=function(Dr){return s(Dr.target.checked)};return[ae&&xn(),Sn&&yn()]};var eO={addSubRuleSimple:"+",addSubRule:"+",addSubGroup:"+",delGroup:"x",delRuleGroup:"x",delRule:"x"};const tO=function(c){var t=c.type,i=c.label,s=c.onClick,b=c.readonly,M=i||eO[t];return ie.createElement("button",{onClick:s,type:"button",disabled:b},M)},nO=function(c){var t=c.type,i={},s=i[t]||null;return!s&&t==="drag"&&(s=ie.createElement(M1,null)),s},rO=function(c){var t=c.children,i=c.config;return ie.createElement(ie.Fragment,null,t)},iO=function(c){var t=c.config,i=c.valueSources,s=c.valueSrc,b=c.title,M=c.setValueSrc,F=c.readonly,W=function(Re){return Re.map(function(He){var at=w0(He,2),Bt=at[0],Sn=at[1];return ie.createElement("option",{key:Bt,value:Bt},Sn.label)})},J=function(Re){return M(Re.target.value)};return ie.createElement("select",{onChange:J,value:s||"",disabled:F},W(i))},aO=function(c){var t=c.value,i=c.setValue,s=c.label,b=c.id,M=c.config,F=c.type,W=function(Re){return i(Re.target.checked)},J=F;return[ie.createElement("input",{key:b+J,type:"checkbox",id:b+J,checked:!!t,onChange:W}),ie.createElement("label",{key:b+J+"label",htmlFor:b+J},s)]},oO=function(c){var t=c.onOk,i=c.okText,s=c.cancelText,b=c.title;confirm(b)&&t()};var sO=function(t){var i=t.config,s=t.children;return s};function uO(c,t,i){return t=B(t),T(c,oE()?Reflect.construct(t,i||[],B(c).constructor):t.apply(c,i))}function oE(){try{var c=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oE=function(){return!!c})()}var IS=function(c){function t(){var i;z(this,t);for(var s=arguments.length,b=new Array(s),M=0;M<s;M++)b[M]=arguments[M];return i=uO(this,t,[].concat(b)),i.handleChange=function(F){i.props.setOption("proximity",parseInt(F))},i}return ue(t,c),te(t,[{key:"render",value:function(){var s=this.props,b=s.defaults,M=s.options,F=s.config,W=s.optionLabel,J=s.optionPlaceholder,ae=s.customProps,Re=s.minProximity,He=s.maxProximity,at=s.optionTextBefore,Bt=s.readonly,Sn=F.settings,yn=F.widgets,xn=F.ctx,sr=b?b.proximity:void 0,gr=Sn.showLabels,Vr=M.get("proximity",sr),Dr=wS()(Re,He+1).map(function(Ei){return{title:Ei,value:Ei}}),li=yn.select.factory,oi=function(sa){return li(sa,xn)};return ie.createElement("div",{className:"operator--PROXIMITY"},ie.createElement("div",{className:"operator--options"},gr&&ie.createElement("label",{className:"rule--label"},W),!gr&&at&&ie.createElement("div",{className:"operator--options--sep"},ie.createElement("span",null,at)),ie.createElement(oi,vu({config:F,value:Vr,listValues:Dr,setValue:this.handleChange,readonly:Bt,placeholder:J},ae))),ie.createElement("div",{className:"operator--widgets"},this.props.children))}}])}(ie.PureComponent);IS.propTypes={config:Fi().object.isRequired,setOption:Fi().func.isRequired,options:Fi().any.isRequired,minProximity:Fi().number,maxProximity:Fi().number,optionPlaceholder:Fi().string,optionTextBefore:Fi().string,optionLabel:Fi().string,customProps:Fi().object,readonly:Fi().bool},IS.defaultProps={customProps:{},minProximity:2,maxProximity:10,optionPlaceholder:"Select words between",optionLabel:"Words between",optionTextBefore:null};function sE(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function Qs(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?sE(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):sE(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var lO=Qs({},In.conjunctions),cO=Qs(Qs({},In.operators),{},{proximity:Qs(Qs({},In.operators.proximity),{},{options:Qs(Qs({},In.operators.proximity.options),{},{factory:function(t,i){var s=i.RCE,b=i.O.ProximityOperator;return s(b,t)}})})}),fO={text:Qs(Qs({},In.widgets.text),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaTextWidget;return s(b,t)}}),textarea:Qs(Qs({},In.widgets.textarea),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaTextAreaWidget;return s(b,t)}}),number:Qs(Qs({},In.widgets.number),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaNumberWidget;return s(b,t)}}),slider:Qs(Qs({},In.widgets.slider),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaSliderWidget;return s(b,t)}}),select:Qs(Qs({},In.widgets.select),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaSelectWidget;return s(b,t)}}),multiselect:Qs(Qs({},In.widgets.multiselect),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaMultiSelectWidget;return s(b,t)}}),date:Qs(Qs({},In.widgets.date),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaDateWidget;return s(b,t)}}),time:Qs(Qs({},In.widgets.time),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaTimeWidget;return s(b,t)}}),datetime:Qs(Qs({},In.widgets.datetime),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaDateTimeWidget;return s(b,t)}}),boolean:Qs(Qs({},In.widgets.boolean),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaBooleanWidget;return s(b,t)}}),field:Qs(Qs({},In.widgets.field),{},{factory:function(t,i){var s=i.RCE,b=i.W.ValueFieldWidget;return s(b,t)},customProps:{showSearch:!0}}),func:Qs(Qs({},In.widgets.func),{},{factory:function(t,i){var s=i.RCE,b=i.W.FuncWidget;return s(b,t)},customProps:{}}),case_value:Qs(Qs({},In.widgets.case_value),{},{factory:function(t,i){var s=i.RCE,b=i.W.VanillaTextWidget;return s(b,t)}})},dO=Qs(Qs({},In.types),{},{select:Qs(Qs({},In.types.select),{},{widgets:Qs(Qs({},In.types.select.widgets),{},{select:Qs(Qs({},In.types.select.widgets.select),{},{widgetProps:{customProps:{showSearch:!0}}})})})}),hO=Qs(Qs({},In.settings),{},{renderField:function(t,i){var s=i.RCE,b=i.W.VanillaFieldSelect;return s(b,t)},renderOperator:function(t,i){var s=i.RCE,b=i.W.VanillaFieldSelect;return s(b,t)},renderFunc:function(t,i){var s=i.RCE,b=i.W.VanillaFieldSelect;return s(b,t)},renderConjs:function(t,i){var s=i.RCE,b=i.W.VanillaConjs;return s(b,t)},renderSwitch:function(t,i){var s=i.RCE,b=i.W.VanillaSwitch;return s(b,t)},renderButton:function(t,i){var s=i.RCE,b=i.W.VanillaButton;return s(b,t)},renderIcon:function(t,i){var s=i.RCE,b=i.W.VanillaIcon;return s(b,t)},renderButtonGroup:function(t,i){var s=i.RCE,b=i.W.VanillaButtonGroup;return s(b,t)},renderProvider:function(t,i){var s=i.RCE,b=i.W.VanillaProvider;return s(b,t)},renderValueSources:function(t,i){var s=i.RCE,b=i.W.VanillaValueSources;return s(b,t)},renderFieldSources:function(t,i){var s=i.RCE,b=i.W.VanillaValueSources;return s(b,t)},renderConfirm:function(t,i){var s=i.W.vanillaConfirm;return s(t)},renderSwitchPrefix:"IF",renderBeforeCaseValue:function(t,i){var s=i.RCE;return s("span",{children:[" then "]})},customFieldSelectProps:{showSearch:!0},customOperatorSelectProps:{},defaultSliderWidth:"200px",defaultSelectWidth:"200px",defaultSearchWidth:"100px",defaultMaxRows:5,renderSize:"small",maxLabelsLength:100,showLock:!1,showNot:!0,forceShowConj:!1,groupActionsPosition:"topRight"}),pO=Qs(Qs({},In.ctx),{},{W:Qs({},re),O:Qs({},Se),RCE:function(t,i){return ie.createElement(t,i)}}),DS={conjunctions:lO,operators:cO,widgets:fO,types:dO,settings:hO,ctx:pO};DS=Ys.ConfigMixins.removeMixins(DS,["rangeslider","treeselect","treemultiselect"]);const vO=DS;var nT=u(15413),rT=u(60602);function uE(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function T0(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?uE(Object(i),!0).forEach(function(s){_defineProperty(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):uE(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}var Xm=Ys.Autocomplete,A0=Xm.mergeListValues,lE=Xm.listValueToOption,mO=Xm.optionToListValue,gO=Xm.optionsToListValues,yO=Xm.fixListValuesGroupOrder,Ev=Ys.ListUtils,bO=Ev.mapListValues,R0=Ev.listValuesToArray,P0=Ev.getListValue,cE=Ev.makeCustomListValue,SO=Ev.searchListValue,_O=Ev.getItemInListValues;function fE(c){return new Promise(function(t){setTimeout(t,c)})}var iT=function(t,i){var s,b,M,F=t.asyncFetch,W=t.useLoadMore,J=t.useAsyncSearch,ae=t.forceAsyncSearch,Re=t.fetchSelectedValuesOnInit,He=t.asyncListValues,at=t.listValues,Bt=t.allowCustomValues,Sn=t.value,yn=t.setValue,xn=t.placeholder,sr=t.config,gr=t.field,Vr=i.debounceTimeout,Dr=i.multiple,li=i.uif,oi=i.isFieldAutocomplete,Ei=["LOAD_MORE","LOADING_MORE"],sa=(s=sr.settings.loadMoreLabel)!==null&&s!==void 0?s:"Load more...",Ki=(b=sr.settings.loadingMoreLabel)!==null&&b!==void 0?b:"Loading more...",Bi=ae?(M=sr.settings.typeToSearchLabel)!==null&&M!==void 0?M:"Type to search":xn;F&&Re&&!He&&Sn!=null&&(He=Array.isArray(Sn)?Sn:[Sn]);var qi=React.useState(!1),oa=_slicedToArray(qi,2),zi=oa[0],va=oa[1],ba=React.useState(void 0),fa=_slicedToArray(ba,2),ga=fa[0],da=fa[1],Ca=React.useState(0),xa=_slicedToArray(Ca,2),Aa=xa[0],ka=xa[1],Wa=React.useState(!1),ho=_slicedToArray(Wa,2),mo=ho[0],Za=ho[1],is=React.useState(""),Io=_slicedToArray(is,2),Ja=Io[0],Vo=Io[1],Wo=React.useState(void 0),No=_slicedToArray(Wo,2),os=No[0],Jo=No[1],ps=React.useRef(0),Ps=React.useRef(0),Ss=React.useRef(!1),xs=React.useRef();xs.current=Sn;var Gu=React.useRef();Gu.current=Ja;var Cu=React.useMemo(function(){return R0(He)},[He]),Fu=He&&Array.isArray(He)&&He.filter(function(Bu){return Bu!==null&&_typeof(Bu)!=="object"}).length>0,eu=React.useMemo(function(){return F?He?A0(os,Cu,!0):os:R0(at)},[F,He,os,at]),ll=F?os:R0(at);Bt&&Ja&&!SO(Ja,os)&&(ll=A0(ll,[cE(Ja)],!0)),F&&!os&&He&&!Ja&&!zi&&li==="antd"&&(ll=eu),F&&!Bt&&He&&li==="mui"&&(ll=A0(ll,Cu,!0,!0));var Yu=Aa>0,rc=Re&&!zi&&F&&Fu&&Sn!=null,pl=zi&&F&&os===void 0&&(ae?Ja:!0),Wl=(pl||rc)&&Yu,ic=!Wl&&eu&&eu.length>0&&ga&&ga.hasMore&&(ga.filter||"")===Ja,ju=!Yu&&ic,Hc=bO(ll,lE),Ed=Sn!=null,_u=!Dr&&Ed?P0(Sn,eu):null,Gl=function(){var Bu=_asyncToGenerator(_regeneratorRuntime.mark(function Ts(){var Cs,Ws,Xs,mu,Nl,vl,bc,Sc,_c,rd,Du,wd,jf,Hl,Hu,Kl=arguments;return _regeneratorRuntime.wrap(function(Kc){for(;;)switch(Kc.prev=Kc.next){case 0:return Cs=Kl.length>0&&Kl[0]!==void 0?Kl[0]:null,Ws=Kl.length>1&&Kl[1]!==void 0?Kl[1]:!1,!Ws&&ga&&da(void 0),Xs=Ws&&os?os.length:0,mu=Ws&&ga||!W&&{pageSize:0},Nl=++ps.current,Kc.next=8,F.call(sr?.ctx,Cs,Xs,mu);case 8:if(vl=Kc.sent,bc=ps.current!=Nl,!(bc||!Ps.current)){Kc.next=12;break}return Kc.abrupt("return",null);case 12:return Sc=vl!=null&&vl.values?vl:{values:vl},_c=Sc.values,rd=Sc.hasMore,Du=Sc.meta,wd=R0(_c),Ws?(Hl=A0(os,wd,!1),jf=Hl.length>os.length):(Hl=wd,W&&(jf=Hl.length>0)),Hu=rd!=null||Du!=null||jf!=null?T0(T0(T0(T0({},jf!=null?{hasMore:jf}:{}),rd!=null?{hasMore:rd}:{}),Du??{}),{},{filter:Cs}):void 0,Hu&&da(Hu),Kc.abrupt("return",Hl);case 18:case"end":return Kc.stop()}},Ts)}));return function(){return Bu.apply(this,arguments)}}(),yc=function(){var Bu=_asyncToGenerator(_regeneratorRuntime.mark(function Ts(){var Cs,Ws,Xs,mu,Nl,vl,bc,Sc,_c;return _regeneratorRuntime.wrap(function(Du){for(;;)switch(Du.prev=Du.next){case 0:if(Cs=xs.current==null?[]:Dr?xs.current:[xs.current],Cs.length){Du.next=3;break}return Du.abrupt("return",null);case 3:return Ws={fetchSelectedValues:!0},Xs=++ps.current,Du.next=7,F.call(sr?.ctx,Cs,-1,Ws);case 7:if(mu=Du.sent,Nl=ps.current!=Xs,!(Nl||!Ps.current)){Du.next=11;break}return Du.abrupt("return",null);case 11:return vl=mu!=null&&mu.values?mu:{values:mu},bc=vl.values,Sc=xs.current==null?[]:Dr?xs.current:[xs.current],_c=Sc.map(function(wd){var jf;return(jf=_O(bc,wd))!==null&&jf!==void 0?jf:cE(wd)}),Du.abrupt("return",_c.length?_c:null);case 15:case"end":return Du.stop()}},Ts)}));return function(){return Bu.apply(this,arguments)}}(),ed=function(){var Bu=_asyncToGenerator(_regeneratorRuntime.mark(function Ts(){var Cs;return _regeneratorRuntime.wrap(function(Xs){for(;;)switch(Xs.prev=Xs.next){case 0:return ka(function(mu){return mu+1}),Xs.next=3,yc();case 3:if(Cs=Xs.sent,Ps.current){Xs.next=6;break}return Xs.abrupt("return");case 6:Cs!=null&&yn(xs.current,Cs),ka(function(mu){return mu-1});case 8:case"end":return Xs.stop()}},Ts)}));return function(){return Bu.apply(this,arguments)}}(),Pu=function(){var Bu=_asyncToGenerator(_regeneratorRuntime.mark(function Ts(){var Cs,Ws,Xs,mu=arguments;return _regeneratorRuntime.wrap(function(vl){for(;;)switch(vl.prev=vl.next){case 0:return Cs=mu.length>0&&mu[0]!==void 0?mu[0]:null,Ws=mu.length>1&&mu[1]!==void 0?mu[1]:!1,ka(function(bc){return bc+1}),Za(Ws),vl.next=6,Gl(Cs,Ws);case 6:if(Xs=vl.sent,Ps.current){vl.next=9;break}return vl.abrupt("return");case 9:Xs!=null&&Jo(Xs),ka(function(bc){return bc-1}),Za(!1);case 12:case"end":return vl.stop()}},Ts)}));return function(){return Bu.apply(this,arguments)}}(),td=React.useCallback(debounce(Pu,Vr),[]);React.useEffect(function(){return Ps.current++,function(){Ps.current--}},[]),React.useEffect(function(){pl&&Aa==0&&_asyncToGenerator(_regeneratorRuntime.mark(function Bu(){return _regeneratorRuntime.wrap(function(Cs){for(;;)switch(Cs.prev=Cs.next){case 0:return Cs.next=2,Pu();case 2:case"end":return Cs.stop()}},Bu)}))(),rc&&Aa==0&&_asyncToGenerator(_regeneratorRuntime.mark(function Bu(){return _regeneratorRuntime.wrap(function(Cs){for(;;)switch(Cs.prev=Cs.next){case 0:return Cs.next=2,ed();case 2:case"end":return Cs.stop()}},Bu)}))()},[pl,rc,Aa]);var Iu=function(){va(!0)},sf=function(){var Bu=_asyncToGenerator(_regeneratorRuntime.mark(function Ts(Cs){var Ws,Xs;return _regeneratorRuntime.wrap(function(Nl){for(;;)switch(Nl.prev=Nl.next){case 0:if(Ws=Ss.current,Ws?(Ss.current=!1,Dr&&va(!1)):va(!1),!(li==="mui"&&!Ws)){Nl.next=6;break}return Xs="",Nl.next=6,yp(null,Xs,"my-reset");case 6:case"end":return Nl.stop()}},Ts)}));return function(Cs){return Bu.apply(this,arguments)}}(),nd=function(Ts){Ts?Iu():sf()},Hd=function(Ts){var Cs=Ts?.specialValue||Ts?.value;return Ei.includes(Cs)},Qm=function(){var Bu=_asyncToGenerator(_regeneratorRuntime.mark(function Ts(Cs,Ws,Xs){var mu,Nl,vl,bc,Sc,_c,rd,Du,wd,jf,Hl,Hu,Kl,bp,Kc,I0,D0,xv,ng,Bc;return _regeneratorRuntime.wrap(function(Yl){for(;;)switch(Yl.prev=Yl.next){case 0:if(vl=Dr&&li==="mui"&&Xs==="clear",bc=!Dr&&li==="mui"&&Xs==="clear"&&Cs?.type==="change",Sc=!Dr&&li==="mui"&&Xs==="clear"&&Cs?.type!=="change",li==="mui"&&(Xs=Ws,Dr?Ws=Xs.map(function(xd){var rg;return(rg=xd?.value)!==null&&rg!==void 0?rg:xd}):Ws=(_c=(rd=Xs)===null||rd===void 0?void 0:rd.value)!==null&&_c!==void 0?_c:Xs),Du=Dr&&Array.isArray(Xs)&&Xs.map(function(xd){return xd?.specialValue}).find(function(xd){return!!xd})||((mu=Xs)===null||mu===void 0?void 0:mu.specialValue),Dr&&Ws&&!Array.isArray(Ws)&&(Ws=[].concat(_toConsumableArray(Sn||[]),[Ws]),Xs=null),wd=Dr&&((Nl=Ws)===null||Nl===void 0?void 0:Nl.length)&&new Set(Ws).size!==Ws.length,jf=Dr&&li==="antd"&&Cs===null&&Xs===null&&wd,Hl=vl&&Ws.length===0&&Ja&&zi||bc||jf,!Hl){Yl.next=11;break}return Yl.abrupt("return");case 11:if(Hu=Dr&&Ws.length&&Ws.length>(Sn||[]).length&&Ws[Ws.length-1]==Ja&&!P0(Ja,os),Du!="LOAD_MORE"){Yl.next=19;break}return Vo(Ja),Ss.current=!0,Yl.next=17,Pu(Ja,!0);case 17:Yl.next=39;break;case 19:if(Du!="LOADING_MORE"){Yl.next=23;break}Ss.current=!0,Yl.next=39;break;case 23:if(!Dr){Yl.next=33;break}if(Kl=gO(Ws,eu,Bt),bp=_slicedToArray(Kl,2),Kc=bp[0],I0=bp[1],yn(Kc,F?I0:void 0),!Hu){Yl.next=31;break}return Yl.next=29,fE(0);case 29:return Yl.next=31,yp(null,"","my-reset");case 31:Yl.next=39;break;case 33:if(D0=mO(Ws,eu,Bt),xv=_slicedToArray(D0,2),ng=xv[0],Bc=xv[1],yn(ng,F?Bc:void 0),!(Sc&&oi)){Yl.next=39;break}return Yl.next=38,fE(0);case 38:va(!1);case 39:case"end":return Yl.stop()}},Ts)}));return function(Cs,Ws,Xs){return Bu.apply(this,arguments)}}(),yp=function(){var Bu=_asyncToGenerator(_regeneratorRuntime.mark(function Ts(Cs,Ws,Xs){var mu,Nl,vl,bc,Sc,_c;return _regeneratorRuntime.wrap(function(Du){for(;;)switch(Du.prev=Du.next){case 0:if(mu=li==="mui"&&Xs==="removeOption"&&Ws===""&&Dr,Nl=li==="mui"&&Xs==="selectOption"&&Ws===""&&Dr,vl=li==="mui"&&!Dr&&Xs==="blur"&&Ws===_u?.title,bc=li==="mui"&&Xs==="reset"||Nl||mu||vl,Sc=Ws,!(Sc===sa||Sc===Ki||bc)){Du.next=7;break}return Du.abrupt("return");case 7:if(!(li==="mui"&&!Dr&&Xs==="selectOption"&&Ws!=="")){Du.next=9;break}return Du.abrupt("return");case 9:if(Ws==Ja){Du.next=18;break}if(Vo(Sc),_c=J&&(ae?!!Sc:!0),!_c){Du.next=17;break}return Du.next=15,td(Sc);case 15:Du.next=18;break;case 17:J&&ae&&Jo([]);case 18:case"end":return Du.stop()}},Ts)}));return function(Cs,Ws,Xs){return Bu.apply(this,arguments)}}(),wv=function(Ts){var Cs=_toConsumableArray(Ts);return W&&(ju?Cs.push({specialValue:"LOAD_MORE",title:sa}):mo&&Cs.push({specialValue:"LOADING_MORE",title:Ki,disabled:!0})),Cs},qm=function(Ts,Cs){if(Cs==null)return null;var Ws=Cs.value!=null?Cs.value:Cs;return Ts.value===Ws},eg=function(Ts){return Ts&&Ts.disabled},oh=function(Ts){var Cs;if(Ts!=null&&Ts.isCustom)return!0;var Ws=(Cs=Ts?.value)!==null&&Cs!==void 0?Cs:Ts,Xs=P0(Ws,eu);return Xs?.isCustom||Xs==null},jc=function(Ts){if(Ts==null)return null;var Cs=Ts.value!=null?Ts:lE(P0(Ts,eu));return!Cs&&Ts.specialValue?Ts.title:!Cs&&Bt||!Cs?Ts.toString():Cs.title||Cs.label||Cs.value.toString()},tg=li==="mui"?yO(Hc):Hc;return{options:tg,listValues:eu,hasValue:Ed,selectedListValue:_u,open:zi,onOpen:Iu,onClose:sf,onDropdownVisibleChange:nd,onChange:Qm,inputValue:Ja,onInputChange:yp,canShowLoadMore:ju,isInitialLoading:Wl,isLoading:Yu,isLoadingMore:mo,isSpecialValue:Hd,extendOptions:wv,getOptionSelected:qm,getOptionDisabled:eg,getOptionIsCustom:oh,getOptionLabel:jc,aPlaceholder:Bi}};const aT=null;function dE(c,t){var i=Object.keys(c);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(c);t&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(c,b).enumerable})),i.push.apply(i,s)}return i}function hE(c){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?dE(Object(i),!0).forEach(function(s){af(c,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):dE(Object(i)).forEach(function(s){Object.defineProperty(c,s,Object.getOwnPropertyDescriptor(i,s))})}return c}const EO=hE(hE({},Ys),{},{ReactUtils:ee,DragIcon:M1})},52365:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l=u(43329);function g(x){return(0,l.w)(x,Date.now())}var y=null},52392:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>Wt});function l(){return l=Object.assign?Object.assign.bind():function(Tn){for(var bn=1;bn<arguments.length;bn++){var $t=arguments[bn];for(var Ct in $t)({}).hasOwnProperty.call($t,Ct)&&(Tn[Ct]=$t[Ct])}return Tn},l.apply(null,arguments)}function g(Tn){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(bn){return typeof bn}:function(bn){return bn&&typeof Symbol=="function"&&bn.constructor===Symbol&&bn!==Symbol.prototype?"symbol":typeof bn},g(Tn)}function y(Tn,bn){if(g(Tn)!="object"||!Tn)return Tn;var $t=Tn[Symbol.toPrimitive];if($t!==void 0){var Ct=$t.call(Tn,bn||"default");if(g(Ct)!="object")return Ct;throw new TypeError("@@toPrimitive must return a primitive value.")}return(bn==="string"?String:Number)(Tn)}function x(Tn){var bn=y(Tn,"string");return g(bn)=="symbol"?bn:bn+""}function f(Tn,bn,$t){return(bn=x(bn))in Tn?Object.defineProperty(Tn,bn,{value:$t,enumerable:!0,configurable:!0,writable:!0}):Tn[bn]=$t,Tn}function p(Tn,bn){var $t=Object.keys(Tn);if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(Tn);bn&&(Ct=Ct.filter(function(Z){return Object.getOwnPropertyDescriptor(Tn,Z).enumerable})),$t.push.apply($t,Ct)}return $t}function h(Tn){for(var bn=1;bn<arguments.length;bn++){var $t=arguments[bn]!=null?arguments[bn]:{};bn%2?p(Object($t),!0).forEach(function(Ct){f(Tn,Ct,$t[Ct])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Tn,Object.getOwnPropertyDescriptors($t)):p(Object($t)).forEach(function(Ct){Object.defineProperty(Tn,Ct,Object.getOwnPropertyDescriptor($t,Ct))})}return Tn}function E(Tn){if(Array.isArray(Tn))return Tn}function v(Tn,bn){var $t=Tn==null?null:typeof Symbol<"u"&&Tn[Symbol.iterator]||Tn["@@iterator"];if($t!=null){var Ct,Z,me,ke,Ee=[],_e=!0,ge=!1;try{if(me=($t=$t.call(Tn)).next,bn===0){if(Object($t)!==$t)return;_e=!1}else for(;!(_e=(Ct=me.call($t)).done)&&(Ee.push(Ct.value),Ee.length!==bn);_e=!0);}catch(Me){ge=!0,Z=Me}finally{try{if(!_e&&$t.return!=null&&(ke=$t.return(),Object(ke)!==ke))return}finally{if(ge)throw Z}}return Ee}}function m(Tn,bn){(bn==null||bn>Tn.length)&&(bn=Tn.length);for(var $t=0,Ct=Array(bn);$t<bn;$t++)Ct[$t]=Tn[$t];return Ct}function S(Tn,bn){if(Tn){if(typeof Tn=="string")return m(Tn,bn);var $t={}.toString.call(Tn).slice(8,-1);return $t==="Object"&&Tn.constructor&&($t=Tn.constructor.name),$t==="Map"||$t==="Set"?Array.from(Tn):$t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t)?m(Tn,bn):void 0}}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(Tn,bn){return E(Tn)||v(Tn,bn)||S(Tn,bn)||d()}function R(Tn,bn){if(Tn==null)return{};var $t={};for(var Ct in Tn)if({}.hasOwnProperty.call(Tn,Ct)){if(bn.indexOf(Ct)!==-1)continue;$t[Ct]=Tn[Ct]}return $t}function C(Tn,bn){if(Tn==null)return{};var $t,Ct,Z=R(Tn,bn);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(Tn);for(Ct=0;Ct<me.length;Ct++)$t=me[Ct],bn.indexOf($t)===-1&&{}.propertyIsEnumerable.call(Tn,$t)&&(Z[$t]=Tn[$t])}return Z}var L=u(96540),j=u(46942),I=u.n(j),U=u(50072),$=u(30981),ee=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],re=void 0;function Se(Tn,bn){var $t=Tn.prefixCls,Ct=Tn.invalidate,Z=Tn.item,me=Tn.renderItem,ke=Tn.responsive,Ee=Tn.responsiveDisabled,_e=Tn.registerSize,ge=Tn.itemKey,Me=Tn.className,lt=Tn.style,Ft=Tn.children,Et=Tn.display,Zt=Tn.order,nn=Tn.component,Pn=nn===void 0?"div":nn,rn=C(Tn,ee),Vt=ke&&!Et;function Kn(Wn){_e(ge,Wn)}L.useEffect(function(){return function(){Kn(null)}},[]);var ur=me&&Z!==re?me(Z,{index:Zt}):Ft,on;Ct||(on={opacity:Vt?0:1,height:Vt?0:re,overflowY:Vt?"hidden":re,order:ke?Zt:re,pointerEvents:Vt?"none":re,position:Vt?"absolute":re});var tr={};Vt&&(tr["aria-hidden"]=!0);var Cn=L.createElement(Pn,l({className:I()(!Ct&&$t,Me),style:h(h({},on),lt)},tr,rn,{ref:bn}),ur);return ke&&(Cn=L.createElement(U.A,{onResize:function(er){var Fn=er.offsetWidth;Kn(Fn)},disabled:Ee},Cn)),Cn}var z=L.forwardRef(Se);z.displayName="Item";const Q=z;var ce=u(26956),se=u(40961),q=u(25371);function te(Tn){if(typeof MessageChannel>"u")(0,q.A)(Tn);else{var bn=new MessageChannel;bn.port1.onmessage=function(){return Tn()},bn.port2.postMessage(void 0)}}function A(){var Tn=L.useRef(null),bn=function(Ct){Tn.current||(Tn.current=[],te(function(){(0,se.unstable_batchedUpdates)(function(){Tn.current.forEach(function(Z){Z()}),Tn.current=null})})),Tn.current.push(Ct)};return bn}function T(Tn,bn){var $t=L.useState(bn),Ct=O($t,2),Z=Ct[0],me=Ct[1],ke=(0,ce.A)(function(Ee){Tn(function(){me(Ee)})});return[Z,ke]}var B=L.createContext(null),X=["component"],ue=["className"],ie=["className"],Te=function(bn,$t){var Ct=L.useContext(B);if(!Ct){var Z=bn.component,me=Z===void 0?"div":Z,ke=C(bn,X);return L.createElement(me,l({},ke,{ref:$t}))}var Ee=Ct.className,_e=C(Ct,ue),ge=bn.className,Me=C(bn,ie);return L.createElement(B.Provider,{value:null},L.createElement(Q,l({ref:$t,className:I()(Ee,ge)},_e,Me)))},je=L.forwardRef(Te);je.displayName="RawItem";const yt=je;var tt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ze="responsive",Ne="invalidate";function it(Tn){return"+ ".concat(Tn.length," ...")}function Rt(Tn,bn){var $t=Tn.prefixCls,Ct=$t===void 0?"rc-overflow":$t,Z=Tn.data,me=Z===void 0?[]:Z,ke=Tn.renderItem,Ee=Tn.renderRawItem,_e=Tn.itemKey,ge=Tn.itemWidth,Me=ge===void 0?10:ge,lt=Tn.ssr,Ft=Tn.style,Et=Tn.className,Zt=Tn.maxCount,nn=Tn.renderRest,Pn=Tn.renderRawRest,rn=Tn.suffix,Vt=Tn.component,Kn=Vt===void 0?"div":Vt,ur=Tn.itemComponent,on=Tn.onVisibleChange,tr=C(Tn,tt),Cn=lt==="full",Wn=A(),er=T(Wn,null),Fn=O(er,2),en=Fn[0],gn=Fn[1],kn=en||0,Jn=T(Wn,new Map),Nn=O(Jn,2),kr=Nn[0],bt=Nn[1],ne=T(Wn,0),fe=O(ne,2),K=fe[0],he=fe[1],Fe=T(Wn,0),Nt=O(Fe,2),ln=Nt[0],pn=Nt[1],Yn=T(Wn,0),ht=O(Yn,2),De=ht[0],we=ht[1],Ke=(0,L.useState)(null),be=O(Ke,2),pt=be[0],We=be[1],Je=(0,L.useState)(null),ye=O(Je,2),Qe=ye[0],ze=ye[1],qe=L.useMemo(function(){return Qe===null&&Cn?Number.MAX_SAFE_INTEGER:Qe||0},[Qe,en]),Pt=(0,L.useState)(!1),zt=O(Pt,2),un=zt[0],hn=zt[1],xt="".concat(Ct,"-item"),_t=Math.max(K,ln),qt=Zt===Ze,fn=me.length&&qt,On=Zt===Ne,Gn=fn||typeof Zt=="number"&&me.length>Zt,Bn=(0,L.useMemo)(function(){var H=me;return fn?en===null&&Cn?H=me:H=me.slice(0,Math.min(me.length,kn/Me)):typeof Zt=="number"&&(H=me.slice(0,Zt)),H},[me,Me,en,Zt,fn]),Lr=(0,L.useMemo)(function(){return fn?me.slice(qe+1):me.slice(Bn.length)},[me,Bn,fn,qe]),An=(0,L.useCallback)(function(H,Be){var wn;return typeof _e=="function"?_e(H):(wn=_e&&H?.[_e])!==null&&wn!==void 0?wn:Be},[_e]),Un=(0,L.useCallback)(ke||function(H){return H},[ke]);function cr(H,Be,wn){Qe===H&&(Be===void 0||Be===pt)||(ze(H),wn||(hn(H<me.length-1),on?.(H)),Be!==void 0&&We(Be))}function mr(H,Be){gn(Be.clientWidth)}function hr(H,Be){bt(function(wn){var bi=new Map(wn);return Be===null?bi.delete(H):bi.set(H,Be),bi})}function ar(H,Be){pn(Be),he(ln)}function Cr(H,Be){we(Be)}function Yr(H){return kr.get(An(Bn[H],H))}(0,$.A)(function(){if(kn&&typeof _t=="number"&&Bn){var H=De,Be=Bn.length,wn=Be-1;if(!Be){cr(0,null);return}for(var bi=0;bi<Be;bi+=1){var Oi=Yr(bi);if(Cn&&(Oi=Oi||0),Oi===void 0){cr(bi-1,void 0,!0);break}if(H+=Oi,wn===0&&H<=kn||bi===wn-1&&H+Yr(wn)<=kn){cr(wn,null);break}else if(H+_t>kn){cr(bi-1,H-Oi-De+ln);break}}rn&&Yr(0)+De>kn&&We(null)}},[kn,kr,ln,De,An,Bn]);var Xr=un&&!!Lr.length,ni={};pt!==null&&fn&&(ni={position:"absolute",left:pt,top:0});var ki={prefixCls:xt,responsive:fn,component:ur,invalidate:On},zr=Ee?function(H,Be){var wn=An(H,Be);return L.createElement(B.Provider,{key:wn,value:h(h({},ki),{},{order:Be,item:H,itemKey:wn,registerSize:hr,display:Be<=qe})},Ee(H,Be))}:function(H,Be){var wn=An(H,Be);return L.createElement(Q,l({},ki,{order:Be,key:wn,item:H,renderItem:Un,itemKey:wn,registerSize:hr,display:Be<=qe}))},Ur={order:Xr?qe:Number.MAX_SAFE_INTEGER,className:"".concat(xt,"-rest"),registerSize:ar,display:Xr},jt=nn||it,sn=Pn?L.createElement(B.Provider,{value:h(h({},ki),Ur)},Pn(Lr)):L.createElement(Q,l({},ki,Ur),typeof jt=="function"?jt(Lr):jt),Rn=L.createElement(Kn,l({className:I()(!On&&Ct,Et),style:Ft,ref:bn},tr),Bn.map(zr),Gn?sn:null,rn&&L.createElement(Q,l({},ki,{responsive:qt,responsiveDisabled:!fn,order:qe,className:"".concat(xt,"-suffix"),registerSize:Cr,display:!0,style:ni}),rn));return qt?L.createElement(U.A,{onResize:mr,disabled:!fn},Rn):Rn}var Dn=L.forwardRef(Rt);Dn.displayName="Overflow",Dn.Item=yt,Dn.RESPONSIVE=Ze,Dn.INVALIDATE=Ne;const Wt=Dn},52490:(Ge,w,u)=>{"use strict";u.d(w,{R3:()=>f,UG:()=>h,Yf:()=>y});var l=u(61597);const g=63710088e-1;function y(v,m,S){S=S||g;const d=(0,l.eh)(v[1]),O=(0,l.eh)(m[1]),R=(O-d)/2,C=(0,l.eh)(m[0]-v[0])/2,L=Math.sin(R)*Math.sin(R)+Math.sin(C)*Math.sin(C)*Math.cos(d)*Math.cos(O);return 2*S*Math.atan2(Math.sqrt(L),Math.sqrt(1-L))}function x(v,m){let S=0;for(let d=0,O=v.length;d<O-1;++d)S+=y(v[d],v[d+1],m);return S}function f(v,m){m=m||{};const S=m.radius||g,d=m.projection||"EPSG:3857",O=v.getType();O!=="GeometryCollection"&&(v=v.clone().transform(d,"EPSG:4326"));let R=0,C,L,j,I,U,$;switch(O){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":{C=v.getCoordinates(),R=x(C,S);break}case"MultiLineString":case"Polygon":{for(C=v.getCoordinates(),j=0,I=C.length;j<I;++j)R+=x(C[j],S);break}case"MultiPolygon":{for(C=v.getCoordinates(),j=0,I=C.length;j<I;++j)for(L=C[j],U=0,$=L.length;U<$;++U)R+=x(L[U],S);break}case"GeometryCollection":{const ee=v.getGeometries();for(j=0,I=ee.length;j<I;++j)R+=f(ee[j],m);break}default:throw new Error("Unsupported geometry type: "+O)}return R}function p(v,m){let S=0;const d=v.length;let O=v[d-1][0],R=v[d-1][1];for(let C=0;C<d;C++){const L=v[C][0],j=v[C][1];S+=(0,l.eh)(L-O)*(2+Math.sin((0,l.eh)(R))+Math.sin((0,l.eh)(j))),O=L,R=j}return S*m*m/2}function h(v,m){m=m||{};const S=m.radius||g,d=m.projection||"EPSG:3857",O=v.getType();O!=="GeometryCollection"&&(v=v.clone().transform(d,"EPSG:4326"));let R=0,C,L,j,I,U,$;switch(O){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":{for(C=v.getCoordinates(),R=Math.abs(p(C[0],S)),j=1,I=C.length;j<I;++j)R-=Math.abs(p(C[j],S));break}case"MultiPolygon":{for(C=v.getCoordinates(),j=0,I=C.length;j<I;++j)for(L=C[j],R+=Math.abs(p(L[0],S)),U=1,$=L.length;U<$;++U)R-=Math.abs(p(L[U],S));break}case"GeometryCollection":{const ee=v.getGeometries();for(j=0,I=ee.length;j<I;++j)R+=h(ee[j],m);break}default:throw new Error("Unsupported geometry type: "+O)}return R}function E(v,m,S,d){d=d||g;const O=toRadians(v[1]),R=toRadians(v[0]),C=m/d,L=Math.asin(Math.sin(O)*Math.cos(C)+Math.cos(O)*Math.sin(C)*Math.cos(S)),j=R+Math.atan2(Math.sin(S)*Math.sin(C)*Math.cos(O),Math.cos(C)-Math.sin(O)*Math.sin(L));return[toDegrees(j),toDegrees(L)]}},52845:(Ge,w,u)=>{"use strict";u.d(w,{Gd:()=>f,a_:()=>y,t7:()=>g,zb:()=>x});var l=u(70915);function g(p,h,E,v,m){return!(0,l.sB)(m,function(d){return!y(p,h,E,v,d[0],d[1])})}function y(p,h,E,v,m,S){let d=0,O=p[E-v],R=p[E-v+1];for(;h<E;h+=v){const C=p[h],L=p[h+1];R<=S?L>S&&(C-O)*(S-R)-(m-O)*(L-R)>0&&d++:L<=S&&(C-O)*(S-R)-(m-O)*(L-R)<0&&d--,O=C,R=L}return d!==0}function x(p,h,E,v,m,S){if(E.length===0||!y(p,h,E[0],v,m,S))return!1;for(let d=1,O=E.length;d<O;++d)if(y(p,E[d-1],E[d],v,m,S))return!1;return!0}function f(p,h,E,v,m,S){if(E.length===0)return!1;for(let d=0,O=E.length;d<O;++d){const R=E[d];if(x(p,h,R,v,m,S))return!0;h=R[R.length-1]}return!1}},52882:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(y,x,f,p){p===void 0&&(p=f),Object.defineProperty(y,p,{enumerable:!0,get:function(){return x[f]}})}:function(y,x,f,p){p===void 0&&(p=f),y[p]=x[f]}),g=this&&this.__exportStar||function(y,x){for(var f in y)f!=="default"&&!Object.prototype.hasOwnProperty.call(x,f)&&l(x,y,f)};Object.defineProperty(w,"__esModule",{value:!0}),g(u(17579),w),g(u(7040),w)},52908:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>f});var l=u(96540),g=u(23535),y=u(2739),x=function(p){var h=p===void 0?{}:p,E=h.initialWidth,v=E===void 0?1/0:E,m=h.initialHeight,S=m===void 0?1/0:m,d=h.onChange,O=(0,g.A)({width:y.Bd?window.innerWidth:v,height:y.Bd?window.innerHeight:S}),R=O[0],C=O[1];return(0,l.useEffect)(function(){if(y.Bd){var L=function(){var j=window.innerWidth,I=window.innerHeight;C({width:j,height:I}),d&&d(j,I)};return(0,y.on)(window,"resize",L),function(){(0,y.AU)(window,"resize",L)}}},[]),R};const f=x},53197:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.publish=void 0;var l=u(54427),g=u(18464),y=u(17812);function x(f){return f?function(p){return y.connect(f)(p)}:function(p){return g.multicast(new l.Subject)(p)}}w.publish=x},53258:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.diffJson=h,w.canonicalize=E,w.jsonDiff=void 0;var l=y(u(85969)),g=u(93578);function y(v){return v&&v.__esModule?v:{default:v}}function x(v){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(S){return typeof S}:x=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},x(v)}var f=Object.prototype.toString,p=new l.default;w.jsonDiff=p,p.useLongestToken=!0,p.tokenize=g.lineDiff.tokenize,p.castInput=function(v){var m=this.options,S=m.undefinedReplacement,d=m.stringifyReplacer,O=d===void 0?function(R,C){return typeof C>"u"?S:C}:d;return typeof v=="string"?v:JSON.stringify(E(v,null,null,O),O," ")},p.equals=function(v,m){return l.default.prototype.equals.call(p,v.replace(/,([\r\n])/g,"$1"),m.replace(/,([\r\n])/g,"$1"))};function h(v,m,S){return p.diff(v,m,S)}function E(v,m,S,d,O){m=m||[],S=S||[],d&&(v=d(O,v));var R;for(R=0;R<m.length;R+=1)if(m[R]===v)return S[R];var C;if(f.call(v)==="[object Array]"){for(m.push(v),C=new Array(v.length),S.push(C),R=0;R<v.length;R+=1)C[R]=E(v[R],m,S,d,O);return m.pop(),S.pop(),C}if(v&&v.toJSON&&(v=v.toJSON()),x(v)==="object"&&v!==null){m.push(v),C={},S.push(C);var L=[],j;for(j in v)v.hasOwnProperty(j)&&L.push(j);for(L.sort(),R=0;R<L.length;R+=1)j=L[R],C[j]=E(v[j],m,S,d,j);m.pop(),S.pop()}else C=v;return C}},53496:(Ge,w,u)=>{"use strict";u.d(w,{P:()=>y});var l=u(70788),g=u(17617);class y{constructor(){if(new.target===y)throw new Error("BaseRegression must be subclassed")}predict(f){if(typeof f=="number")return this._predict(f);if((0,l.isAnyArray)(f)){const p=[];for(const h of f)p.push(this._predict(h));return p}else throw new TypeError("x must be a number or array")}_predict(f){throw new Error("_predict must be implemented")}train(){}toString(f){return""}toLaTeX(f){return""}score(f,p){(0,g.Y)(f,p);const h=f.length,E=new Array(h);for(let j=0;j<h;j++)E[j]=this._predict(f[j]);let v=0,m=0,S=0,d=0,O=0,R=0,C=0;for(let j=0;j<h;j++)v+=E[j],m+=p[j],O+=E[j]*E[j],R+=p[j]*p[j],C+=E[j]*p[j],p[j]!==0&&(S+=(p[j]-E[j])*(p[j]-E[j])/p[j]),d+=(p[j]-E[j])*(p[j]-E[j]);const L=(h*C-v*m)/Math.sqrt((h*O-v*v)*(h*R-m*m));return{r:L,r2:L*L,chi2:S,rmsd:Math.sqrt(d/h)}}}},53554:(Ge,w,u)=>{"use strict";u.d(w,{zR:()=>Se});function l(){return l=Object.assign?Object.assign.bind():function(X){for(var ue=1;ue<arguments.length;ue++){var ie=arguments[ue];for(var Te in ie)({}).hasOwnProperty.call(ie,Te)&&(X[Te]=ie[Te])}return X},l.apply(null,arguments)}var g=u(34307),y=u(11561);function x(X){return X.charAt(0)==="/"?X:"/"+X}function f(X){return X.charAt(0)==="/"?X.substr(1):X}function p(X,ue){return X.toLowerCase().indexOf(ue.toLowerCase())===0&&"/?#".indexOf(X.charAt(ue.length))!==-1}function h(X,ue){return p(X,ue)?X.substr(ue.length):X}function E(X){return X.charAt(X.length-1)==="/"?X.slice(0,-1):X}function v(X){var ue=X||"/",ie="",Te="",je=ue.indexOf("#");je!==-1&&(Te=ue.substr(je),ue=ue.substr(0,je));var yt=ue.indexOf("?");return yt!==-1&&(ie=ue.substr(yt),ue=ue.substr(0,yt)),{pathname:ue,search:ie==="?"?"":ie,hash:Te==="#"?"":Te}}function m(X){var ue=X.pathname,ie=X.search,Te=X.hash,je=ue||"/";return ie&&ie!=="?"&&(je+=ie.charAt(0)==="?"?ie:"?"+ie),Te&&Te!=="#"&&(je+=Te.charAt(0)==="#"?Te:"#"+Te),je}function S(X,ue,ie,Te){var je;return typeof X=="string"?(je=v(X),je.state=ue):(je=l({},X),je.pathname===void 0&&(je.pathname=""),je.search?je.search.charAt(0)!=="?"&&(je.search="?"+je.search):je.search="",je.hash?je.hash.charAt(0)!=="#"&&(je.hash="#"+je.hash):je.hash="",ue!==void 0&&je.state===void 0&&(je.state=ue)),ie&&(je.key=ie),Te?je.pathname?je.pathname.charAt(0)!=="/"&&(je.pathname=(0,g.A)(je.pathname,Te.pathname)):je.pathname=Te.pathname:je.pathname||(je.pathname="/"),je}function d(X,ue){return X.pathname===ue.pathname&&X.search===ue.search&&X.hash===ue.hash&&X.key===ue.key&&valueEqual(X.state,ue.state)}function O(){var X=null;function ue(tt){return X=tt,function(){X===tt&&(X=null)}}function ie(tt,Ze,Ne,it){if(X!=null){var Rt=typeof X=="function"?X(tt,Ze):X;typeof Rt=="string"?typeof Ne=="function"?Ne(Rt,it):it(!0):it(Rt!==!1)}else it(!0)}var Te=[];function je(tt){var Ze=!0;function Ne(){Ze&&tt.apply(void 0,arguments)}return Te.push(Ne),function(){Ze=!1,Te=Te.filter(function(it){return it!==Ne})}}function yt(){for(var tt=arguments.length,Ze=new Array(tt),Ne=0;Ne<tt;Ne++)Ze[Ne]=arguments[Ne];Te.forEach(function(it){return it.apply(void 0,Ze)})}return{setPrompt:ue,confirmTransitionTo:ie,appendListener:je,notifyListeners:yt}}var R=!!(typeof window<"u"&&window.document&&window.document.createElement);function C(X,ue){ue(window.confirm(X))}function L(){var X=window.navigator.userAgent;return(X.indexOf("Android 2.")!==-1||X.indexOf("Android 4.0")!==-1)&&X.indexOf("Mobile Safari")!==-1&&X.indexOf("Chrome")===-1&&X.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function j(){return window.navigator.userAgent.indexOf("Trident")===-1}function I(){return window.navigator.userAgent.indexOf("Firefox")===-1}function U(X){return X.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var $="popstate",ee="hashchange";function re(){try{return window.history.state||{}}catch{return{}}}function Se(X){X===void 0&&(X={}),R||(0,y.A)(!1);var ue=window.history,ie=L(),Te=!j(),je=X,yt=je.forceRefresh,tt=yt===void 0?!1:yt,Ze=je.getUserConfirmation,Ne=Ze===void 0?C:Ze,it=je.keyLength,Rt=it===void 0?6:it,Dn=X.basename?E(x(X.basename)):"";function Mt(on){var tr=on||{},Cn=tr.key,Wn=tr.state,er=window.location,Fn=er.pathname,en=er.search,gn=er.hash,kn=Fn+en+gn;return Dn&&(kn=h(kn,Dn)),S(kn,Wn,Cn)}function Wt(){return Math.random().toString(36).substr(2,Rt)}var Tn=O();function bn(on){l(ur,on),ur.length=ue.length,Tn.notifyListeners(ur.location,ur.action)}function $t(on){U(on)||me(Mt(on.state))}function Ct(){me(Mt(re()))}var Z=!1;function me(on){if(Z)Z=!1,bn();else{var tr="POP";Tn.confirmTransitionTo(on,tr,Ne,function(Cn){Cn?bn({action:tr,location:on}):ke(on)})}}function ke(on){var tr=ur.location,Cn=_e.indexOf(tr.key);Cn===-1&&(Cn=0);var Wn=_e.indexOf(on.key);Wn===-1&&(Wn=0);var er=Cn-Wn;er&&(Z=!0,Ft(er))}var Ee=Mt(re()),_e=[Ee.key];function ge(on){return Dn+m(on)}function Me(on,tr){var Cn="PUSH",Wn=S(on,tr,Wt(),ur.location);Tn.confirmTransitionTo(Wn,Cn,Ne,function(er){if(er){var Fn=ge(Wn),en=Wn.key,gn=Wn.state;if(ie)if(ue.pushState({key:en,state:gn},null,Fn),tt)window.location.href=Fn;else{var kn=_e.indexOf(ur.location.key),Jn=_e.slice(0,kn+1);Jn.push(Wn.key),_e=Jn,bn({action:Cn,location:Wn})}else window.location.href=Fn}})}function lt(on,tr){var Cn="REPLACE",Wn=S(on,tr,Wt(),ur.location);Tn.confirmTransitionTo(Wn,Cn,Ne,function(er){if(er){var Fn=ge(Wn),en=Wn.key,gn=Wn.state;if(ie)if(ue.replaceState({key:en,state:gn},null,Fn),tt)window.location.replace(Fn);else{var kn=_e.indexOf(ur.location.key);kn!==-1&&(_e[kn]=Wn.key),bn({action:Cn,location:Wn})}else window.location.replace(Fn)}})}function Ft(on){ue.go(on)}function Et(){Ft(-1)}function Zt(){Ft(1)}var nn=0;function Pn(on){nn+=on,nn===1&&on===1?(window.addEventListener($,$t),Te&&window.addEventListener(ee,Ct)):nn===0&&(window.removeEventListener($,$t),Te&&window.removeEventListener(ee,Ct))}var rn=!1;function Vt(on){on===void 0&&(on=!1);var tr=Tn.setPrompt(on);return rn||(Pn(1),rn=!0),function(){return rn&&(rn=!1,Pn(-1)),tr()}}function Kn(on){var tr=Tn.appendListener(on);return Pn(1),function(){Pn(-1),tr()}}var ur={length:ue.length,action:"POP",location:Ee,createHref:ge,push:Me,replace:lt,go:Ft,goBack:Et,goForward:Zt,block:Vt,listen:Kn};return ur}var z="hashchange",Q={hashbang:{encodePath:function(ue){return ue.charAt(0)==="!"?ue:"!/"+f(ue)},decodePath:function(ue){return ue.charAt(0)==="!"?ue.substr(1):ue}},noslash:{encodePath:f,decodePath:x},slash:{encodePath:x,decodePath:x}};function ce(X){var ue=X.indexOf("#");return ue===-1?X:X.slice(0,ue)}function se(){var X=window.location.href,ue=X.indexOf("#");return ue===-1?"":X.substring(ue+1)}function q(X){window.location.hash=X}function te(X){window.location.replace(ce(window.location.href)+"#"+X)}function A(X){X===void 0&&(X={}),R||invariant(!1);var ue=window.history,ie=I(),Te=X,je=Te.getUserConfirmation,yt=je===void 0?C:je,tt=Te.hashType,Ze=tt===void 0?"slash":tt,Ne=X.basename?E(x(X.basename)):"",it=Q[Ze],Rt=it.encodePath,Dn=it.decodePath;function Mt(){var Cn=Dn(se());return Ne&&(Cn=h(Cn,Ne)),S(Cn)}var Wt=O();function Tn(Cn){_extends(tr,Cn),tr.length=ue.length,Wt.notifyListeners(tr.location,tr.action)}var bn=!1,$t=null;function Ct(Cn,Wn){return Cn.pathname===Wn.pathname&&Cn.search===Wn.search&&Cn.hash===Wn.hash}function Z(){var Cn=se(),Wn=Rt(Cn);if(Cn!==Wn)te(Wn);else{var er=Mt(),Fn=tr.location;if(!bn&&Ct(Fn,er)||$t===m(er))return;$t=null,me(er)}}function me(Cn){if(bn)bn=!1,Tn();else{var Wn="POP";Wt.confirmTransitionTo(Cn,Wn,yt,function(er){er?Tn({action:Wn,location:Cn}):ke(Cn)})}}function ke(Cn){var Wn=tr.location,er=Me.lastIndexOf(m(Wn));er===-1&&(er=0);var Fn=Me.lastIndexOf(m(Cn));Fn===-1&&(Fn=0);var en=er-Fn;en&&(bn=!0,Zt(en))}var Ee=se(),_e=Rt(Ee);Ee!==_e&&te(_e);var ge=Mt(),Me=[m(ge)];function lt(Cn){var Wn=document.querySelector("base"),er="";return Wn&&Wn.getAttribute("href")&&(er=ce(window.location.href)),er+"#"+Rt(Ne+m(Cn))}function Ft(Cn,Wn){var er="PUSH",Fn=S(Cn,void 0,void 0,tr.location);Wt.confirmTransitionTo(Fn,er,yt,function(en){if(en){var gn=m(Fn),kn=Rt(Ne+gn),Jn=se()!==kn;if(Jn){$t=gn,q(kn);var Nn=Me.lastIndexOf(m(tr.location)),kr=Me.slice(0,Nn+1);kr.push(gn),Me=kr,Tn({action:er,location:Fn})}else Tn()}})}function Et(Cn,Wn){var er="REPLACE",Fn=S(Cn,void 0,void 0,tr.location);Wt.confirmTransitionTo(Fn,er,yt,function(en){if(en){var gn=m(Fn),kn=Rt(Ne+gn),Jn=se()!==kn;Jn&&($t=gn,te(kn));var Nn=Me.indexOf(m(tr.location));Nn!==-1&&(Me[Nn]=gn),Tn({action:er,location:Fn})}})}function Zt(Cn){ue.go(Cn)}function nn(){Zt(-1)}function Pn(){Zt(1)}var rn=0;function Vt(Cn){rn+=Cn,rn===1&&Cn===1?window.addEventListener(z,Z):rn===0&&window.removeEventListener(z,Z)}var Kn=!1;function ur(Cn){Cn===void 0&&(Cn=!1);var Wn=Wt.setPrompt(Cn);return Kn||(Vt(1),Kn=!0),function(){return Kn&&(Kn=!1,Vt(-1)),Wn()}}function on(Cn){var Wn=Wt.appendListener(Cn);return Vt(1),function(){Vt(-1),Wn()}}var tr={length:ue.length,action:"POP",location:ge,createHref:lt,push:Ft,replace:Et,go:Zt,goBack:nn,goForward:Pn,block:ur,listen:on};return tr}function T(X,ue,ie){return Math.min(Math.max(X,ue),ie)}function B(X){X===void 0&&(X={});var ue=X,ie=ue.getUserConfirmation,Te=ue.initialEntries,je=Te===void 0?["/"]:Te,yt=ue.initialIndex,tt=yt===void 0?0:yt,Ze=ue.keyLength,Ne=Ze===void 0?6:Ze,it=O();function Rt(Me){_extends(ge,Me),ge.length=ge.entries.length,it.notifyListeners(ge.location,ge.action)}function Dn(){return Math.random().toString(36).substr(2,Ne)}var Mt=T(tt,0,je.length-1),Wt=je.map(function(Me){return typeof Me=="string"?S(Me,void 0,Dn()):S(Me,void 0,Me.key||Dn())}),Tn=m;function bn(Me,lt){var Ft="PUSH",Et=S(Me,lt,Dn(),ge.location);it.confirmTransitionTo(Et,Ft,ie,function(Zt){if(Zt){var nn=ge.index,Pn=nn+1,rn=ge.entries.slice(0);rn.length>Pn?rn.splice(Pn,rn.length-Pn,Et):rn.push(Et),Rt({action:Ft,location:Et,index:Pn,entries:rn})}})}function $t(Me,lt){var Ft="REPLACE",Et=S(Me,lt,Dn(),ge.location);it.confirmTransitionTo(Et,Ft,ie,function(Zt){Zt&&(ge.entries[ge.index]=Et,Rt({action:Ft,location:Et}))})}function Ct(Me){var lt=T(ge.index+Me,0,ge.entries.length-1),Ft="POP",Et=ge.entries[lt];it.confirmTransitionTo(Et,Ft,ie,function(Zt){Zt?Rt({action:Ft,location:Et,index:lt}):Rt()})}function Z(){Ct(-1)}function me(){Ct(1)}function ke(Me){var lt=ge.index+Me;return lt>=0&<<ge.entries.length}function Ee(Me){return Me===void 0&&(Me=!1),it.setPrompt(Me)}function _e(Me){return it.appendListener(Me)}var ge={length:Wt.length,action:"POP",location:Wt[Mt],index:Mt,entries:Wt,createHref:Tn,push:bn,replace:$t,go:Ct,goBack:Z,goForward:me,canGo:ke,block:Ee,listen:_e};return ge}},53705:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{base64:()=>ce,base64url:()=>se,bigint:()=>je,boolean:()=>Ze,browserEmail:()=>U,cidrv4:()=>z,cidrv6:()=>Q,cuid:()=>l,cuid2:()=>g,date:()=>B,datetime:()=>ie,domain:()=>te,duration:()=>h,e164:()=>A,email:()=>R,emoji:()=>ee,extendedDuration:()=>E,guid:()=>v,hostname:()=>q,html5Email:()=>C,idnEmail:()=>I,integer:()=>yt,ipv4:()=>re,ipv6:()=>Se,ksuid:()=>f,lowercase:()=>Rt,nanoid:()=>p,null:()=>Ne,number:()=>tt,rfc5322Email:()=>L,string:()=>Te,time:()=>ue,ulid:()=>y,undefined:()=>it,unicodeEmail:()=>j,uppercase:()=>Dn,uuid:()=>m,uuid4:()=>S,uuid6:()=>d,uuid7:()=>O,xid:()=>x});const l=/^[cC][^\s-]{8,}$/,g=/^[0-9a-z]+$/,y=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,x=/^[0-9a-vA-V]{20}$/,f=/^[A-Za-z0-9]{27}$/,p=/^[a-zA-Z0-9_-]{21}$/,h=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,E=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,v=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,m=Mt=>Mt?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${Mt}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,S=m(4),d=m(6),O=m(7),R=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,C=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,L=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,j=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,I=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,U=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ee(){return new RegExp($,"u")}const re=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Se=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,z=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Q=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ce=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,se=/^[A-Za-z0-9_-]*$/,q=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,te=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,A=/^\+(?:[0-9]){6,14}[0-9]$/,T="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",B=new RegExp(`^${T}$`);function X(Mt){const Wt="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof Mt.precision=="number"?Mt.precision===-1?`${Wt}`:Mt.precision===0?`${Wt}:[0-5]\\d`:`${Wt}:[0-5]\\d\\.\\d{${Mt.precision}}`:`${Wt}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ue(Mt){return new RegExp(`^${X(Mt)}$`)}function ie(Mt){const Wt=X({precision:Mt.precision}),Tn=["Z"];Mt.local&&Tn.push(""),Mt.offset&&Tn.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const bn=`${Wt}(?:${Tn.join("|")})`;return new RegExp(`^${T}T(?:${bn})$`)}const Te=Mt=>{const Wt=Mt?`[\\s\\S]{${Mt?.minimum??0},${Mt?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${Wt}$`)},je=/^\d+n?$/,yt=/^\d+$/,tt=/^-?\d+(?:\.\d+)?/i,Ze=/true|false/i,Ne=/null/i,it=/undefined/i,Rt=/^[^A-Z]*$/,Dn=/^[^a-z]*$/},53866:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.timestamp=void 0;var l=u(93275),g=u(26872);function y(x){return x===void 0&&(x=l.dateTimestampProvider),g.map(function(f){return{value:f,timestamp:x.now()}})}w.timestamp=y},53966:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=u;function u(l){var g=l.clientHeight,y=getComputedStyle(l),x=y.paddingTop,f=y.paddingBottom;return g-parseFloat(x)-parseFloat(f)}},54049:(Ge,w,u)=>{"use strict";u.d(w,{C:()=>g});var l=u(70915);function g(y,x,f,p){const h=[];let E=(0,l.S5)();for(let v=0,m=f.length;v<m;++v){const S=f[v];E=(0,l.Vy)(y,x,S[0],p),h.push((E[0]+E[2])/2,(E[1]+E[3])/2),x=S[S.length-1]}return h}},54148:(Ge,w,u)=>{"use strict";var l;u.d(w,{$3:()=>Ze,$P:()=>d,AV:()=>Cn,BV:()=>rn,C5:()=>Et,Eu:()=>Cn,Ew:()=>Mt,FE:()=>Rt,Ix:()=>Pn,J8:()=>bn,KC:()=>re,KP:()=>Z,KT:()=>Wn,LG:()=>Dn,P1:()=>Se,RQ:()=>L,Ri:()=>O,Rq:()=>p,UX:()=>m,Ye:()=>ce,Zp:()=>U,bg:()=>Fn,cq:()=>Ne,fS:()=>Ft,g:()=>z,jD:()=>Vt,jb:()=>E,mP:()=>Wt,oI:()=>$t,ph:()=>se,qh:()=>nn,r5:()=>Tn,sp:()=>f,sv:()=>Zt,vL:()=>it,wE:()=>er,wQ:()=>C,x$:()=>Q,yN:()=>v,zy:()=>R});var g=u(96540),y=u(45588);/** * React Router v6.26.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function x(){return x=Object.assign?Object.assign.bind():function(en){for(var gn=1;gn<arguments.length;gn++){var kn=arguments[gn];for(var Jn in kn)Object.prototype.hasOwnProperty.call(kn,Jn)&&(en[Jn]=kn[Jn])}return en},x.apply(this,arguments)}const f=g.createContext(null),p=g.createContext(null),h=g.createContext(null),E=g.createContext(null),v=g.createContext(null),m=g.createContext({outlet:null,matches:[],isDataRoute:!1}),S=g.createContext(null);function d(en,gn){let{relative:kn}=gn===void 0?{}:gn;O()||(0,y.Oi)(!1);let{basename:Jn,navigator:Nn}=g.useContext(E),{hash:kr,pathname:bt,search:ne}=Q(en,{relative:kn}),fe=bt;return Jn!=="/"&&(fe=bt==="/"?Jn:(0,y.HS)([Jn,bt])),Nn.createHref({pathname:fe,search:ne,hash:kr})}function O(){return g.useContext(v)!=null}function R(){return O()||(0,y.Oi)(!1),g.useContext(v).location}function C(){return g.useContext(v).navigationType}function L(en){O()||(0,y.Oi)(!1);let{pathname:gn}=R();return g.useMemo(()=>(0,y.B6)(en,(0,y.RO)(gn)),[gn,en])}const j=null;function I(en){g.useContext(E).static||g.useLayoutEffect(en)}function U(){let{isDataRoute:en}=g.useContext(m);return en?me():$()}function $(){O()||(0,y.Oi)(!1);let en=g.useContext(f),{basename:gn,future:kn,navigator:Jn}=g.useContext(E),{matches:Nn}=g.useContext(m),{pathname:kr}=R(),bt=JSON.stringify((0,y.yD)(Nn,kn.v7_relativeSplatPath)),ne=g.useRef(!1);return I(()=>{ne.current=!0}),g.useCallback(function(K,he){if(he===void 0&&(he={}),!ne.current)return;if(typeof K=="number"){Jn.go(K);return}let Fe=(0,y.Gh)(K,JSON.parse(bt),kr,he.relative==="path");en==null&&gn!=="/"&&(Fe.pathname=Fe.pathname==="/"?gn:(0,y.HS)([gn,Fe.pathname])),(he.replace?Jn.replace:Jn.push)(Fe,he.state,he)},[gn,Jn,bt,kr,en])}const ee=g.createContext(null);function re(){return g.useContext(ee)}function Se(en){let gn=g.useContext(m).outlet;return gn&&g.createElement(ee.Provider,{value:en},gn)}function z(){let{matches:en}=g.useContext(m),gn=en[en.length-1];return gn?gn.params:{}}function Q(en,gn){let{relative:kn}=gn===void 0?{}:gn,{future:Jn}=g.useContext(E),{matches:Nn}=g.useContext(m),{pathname:kr}=R(),bt=JSON.stringify((0,y.yD)(Nn,Jn.v7_relativeSplatPath));return g.useMemo(()=>(0,y.Gh)(en,JSON.parse(bt),kr,kn==="path"),[en,bt,kr,kn])}function ce(en,gn){return se(en,gn)}function se(en,gn,kn,Jn){O()||(0,y.Oi)(!1);let{navigator:Nn}=g.useContext(E),{matches:kr}=g.useContext(m),bt=kr[kr.length-1],ne=bt?bt.params:{},fe=bt?bt.pathname:"/",K=bt?bt.pathnameBase:"/",he=bt&&bt.route,Fe=R(),Nt;if(gn){var ln;let we=typeof gn=="string"?(0,y.Rr)(gn):gn;K==="/"||(ln=we.pathname)!=null&&ln.startsWith(K)||(0,y.Oi)(!1),Nt=we}else Nt=Fe;let pn=Nt.pathname||"/",Yn=pn;if(K!=="/"){let we=K.replace(/^\//,"").split("/");Yn="/"+pn.replace(/^\//,"").split("/").slice(we.length).join("/")}let ht=(0,y.ue)(en,{pathname:Yn}),De=B(ht&&ht.map(we=>Object.assign({},we,{params:Object.assign({},ne,we.params),pathname:(0,y.HS)([K,Nn.encodeLocation?Nn.encodeLocation(we.pathname).pathname:we.pathname]),pathnameBase:we.pathnameBase==="/"?K:(0,y.HS)([K,Nn.encodeLocation?Nn.encodeLocation(we.pathnameBase).pathname:we.pathnameBase])})),kr,kn,Jn);return gn&&De?g.createElement(v.Provider,{value:{location:x({pathname:"/",search:"",hash:"",state:null,key:"default"},Nt),navigationType:y.rc.Pop}},De):De}function q(){let en=Tn(),gn=(0,y.pX)(en)?en.status+" "+en.statusText:en instanceof Error?en.message:JSON.stringify(en),kn=en instanceof Error?en.stack:null,Jn="rgba(200,200,200, 0.5)",Nn={padding:"0.5rem",backgroundColor:Jn},kr={padding:"2px 4px",backgroundColor:Jn};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},gn),kn?g.createElement("pre",{style:Nn},kn):null,null)}const te=g.createElement(q,null);class A extends g.Component{constructor(gn){super(gn),this.state={location:gn.location,revalidation:gn.revalidation,error:gn.error}}static getDerivedStateFromError(gn){return{error:gn}}static getDerivedStateFromProps(gn,kn){return kn.location!==gn.location||kn.revalidation!=="idle"&&gn.revalidation==="idle"?{error:gn.error,location:gn.location,revalidation:gn.revalidation}:{error:gn.error!==void 0?gn.error:kn.error,location:kn.location,revalidation:gn.revalidation||kn.revalidation}}componentDidCatch(gn,kn){console.error("React Router caught the following error during render",gn,kn)}render(){return this.state.error!==void 0?g.createElement(m.Provider,{value:this.props.routeContext},g.createElement(S.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T(en){let{routeContext:gn,match:kn,children:Jn}=en,Nn=g.useContext(f);return Nn&&Nn.static&&Nn.staticContext&&(kn.route.errorElement||kn.route.ErrorBoundary)&&(Nn.staticContext._deepestRenderedBoundaryId=kn.route.id),g.createElement(m.Provider,{value:gn},Jn)}function B(en,gn,kn,Jn){var Nn;if(gn===void 0&&(gn=[]),kn===void 0&&(kn=null),Jn===void 0&&(Jn=null),en==null){var kr;if(!kn)return null;if(kn.errors)en=kn.matches;else if((kr=Jn)!=null&&kr.v7_partialHydration&&gn.length===0&&!kn.initialized&&kn.matches.length>0)en=kn.matches;else return null}let bt=en,ne=(Nn=kn)==null?void 0:Nn.errors;if(ne!=null){let he=bt.findIndex(Fe=>Fe.route.id&&ne?.[Fe.route.id]!==void 0);he>=0||(0,y.Oi)(!1),bt=bt.slice(0,Math.min(bt.length,he+1))}let fe=!1,K=-1;if(kn&&Jn&&Jn.v7_partialHydration)for(let he=0;he<bt.length;he++){let Fe=bt[he];if((Fe.route.HydrateFallback||Fe.route.hydrateFallbackElement)&&(K=he),Fe.route.id){let{loaderData:Nt,errors:ln}=kn,pn=Fe.route.loader&&Nt[Fe.route.id]===void 0&&(!ln||ln[Fe.route.id]===void 0);if(Fe.route.lazy||pn){fe=!0,K>=0?bt=bt.slice(0,K+1):bt=[bt[0]];break}}}return bt.reduceRight((he,Fe,Nt)=>{let ln,pn=!1,Yn=null,ht=null;kn&&(ln=ne&&Fe.route.id?ne[Fe.route.id]:void 0,Yn=Fe.route.errorElement||te,fe&&(K<0&&Nt===0?(Ee("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),pn=!0,ht=null):K===Nt&&(pn=!0,ht=Fe.route.hydrateFallbackElement||null)));let De=gn.concat(bt.slice(0,Nt+1)),we=()=>{let Ke;return ln?Ke=Yn:pn?Ke=ht:Fe.route.Component?Ke=g.createElement(Fe.route.Component,null):Fe.route.element?Ke=Fe.route.element:Ke=he,g.createElement(T,{match:Fe,routeContext:{outlet:he,matches:De,isDataRoute:kn!=null},children:Ke})};return kn&&(Fe.route.ErrorBoundary||Fe.route.errorElement||Nt===0)?g.createElement(A,{location:kn.location,revalidation:kn.revalidation,component:Yn,error:ln,children:we(),routeContext:{outlet:null,matches:De,isDataRoute:!0}}):we()},null)}var X=function(en){return en.UseBlocker="useBlocker",en.UseRevalidator="useRevalidator",en.UseNavigateStable="useNavigate",en}(X||{}),ue=function(en){return en.UseBlocker="useBlocker",en.UseLoaderData="useLoaderData",en.UseActionData="useActionData",en.UseRouteError="useRouteError",en.UseNavigation="useNavigation",en.UseRouteLoaderData="useRouteLoaderData",en.UseMatches="useMatches",en.UseRevalidator="useRevalidator",en.UseNavigateStable="useNavigate",en.UseRouteId="useRouteId",en}(ue||{});function ie(en){return en+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Te(en){let gn=g.useContext(f);return gn||(0,y.Oi)(!1),gn}function je(en){let gn=g.useContext(p);return gn||(0,y.Oi)(!1),gn}function yt(en){let gn=g.useContext(m);return gn||(0,y.Oi)(!1),gn}function tt(en){let gn=yt(en),kn=gn.matches[gn.matches.length-1];return kn.route.id||(0,y.Oi)(!1),kn.route.id}function Ze(){return tt(ue.UseRouteId)}function Ne(){return je(ue.UseNavigation).navigation}function it(){let en=Te(X.UseRevalidator),gn=je(ue.UseRevalidator);return g.useMemo(()=>({revalidate:en.router.revalidate,state:gn.revalidation}),[en.router.revalidate,gn.revalidation])}function Rt(){let{matches:en,loaderData:gn}=je(ue.UseMatches);return g.useMemo(()=>en.map(kn=>(0,y.ro)(kn,gn)),[en,gn])}function Dn(){let en=je(ue.UseLoaderData),gn=tt(ue.UseLoaderData);if(en.errors&&en.errors[gn]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+gn+")");return}return en.loaderData[gn]}function Mt(en){return je(ue.UseRouteLoaderData).loaderData[en]}function Wt(){let en=je(ue.UseActionData),gn=tt(ue.UseLoaderData);return en.actionData?en.actionData[gn]:void 0}function Tn(){var en;let gn=g.useContext(S),kn=je(ue.UseRouteError),Jn=tt(ue.UseRouteError);return gn!==void 0?gn:(en=kn.errors)==null?void 0:en[Jn]}function bn(){let en=g.useContext(h);return en?._data}function $t(){let en=g.useContext(h);return en?._error}let Ct=0;function Z(en){let{router:gn,basename:kn}=Te(X.UseBlocker),Jn=je(ue.UseBlocker),[Nn,kr]=g.useState(""),bt=g.useCallback(ne=>{if(typeof en!="function")return!!en;if(kn==="/")return en(ne);let{currentLocation:fe,nextLocation:K,historyAction:he}=ne;return en({currentLocation:x({},fe,{pathname:(0,y.pb)(fe.pathname,kn)||fe.pathname}),nextLocation:x({},K,{pathname:(0,y.pb)(K.pathname,kn)||K.pathname}),historyAction:he})},[kn,en]);return g.useEffect(()=>{let ne=String(++Ct);return kr(ne),()=>gn.deleteBlocker(ne)},[gn]),g.useEffect(()=>{Nn!==""&&gn.getBlocker(Nn,bt)},[gn,Nn,bt]),Nn&&Jn.blockers.has(Nn)?Jn.blockers.get(Nn):y.G3}function me(){let{router:en}=Te(X.UseNavigateStable),gn=tt(ue.UseNavigateStable),kn=g.useRef(!1);return I(()=>{kn.current=!0}),g.useCallback(function(Nn,kr){kr===void 0&&(kr={}),kn.current&&(typeof Nn=="number"?en.navigate(Nn):en.navigate(Nn,x({fromRouteId:gn},kr)))},[en,gn])}const ke={};function Ee(en,gn,kn){!gn&&!ke[en]&&(ke[en]=!0)}const ge=(l||(l=u.t(g,2)))["startTransition"];function Me(en){let{fallbackElement:gn,router:kn,future:Jn}=en,[Nn,kr]=React.useState(kn.state),{v7_startTransition:bt}=Jn||{},ne=React.useCallback(Fe=>{bt&&ge?ge(()=>kr(Fe)):kr(Fe)},[kr,bt]);React.useLayoutEffect(()=>kn.subscribe(ne),[kn,ne]),React.useEffect(()=>{},[]);let fe=React.useMemo(()=>({createHref:kn.createHref,encodeLocation:kn.encodeLocation,go:Fe=>kn.navigate(Fe),push:(Fe,Nt,ln)=>kn.navigate(Fe,{state:Nt,preventScrollReset:ln?.preventScrollReset}),replace:(Fe,Nt,ln)=>kn.navigate(Fe,{replace:!0,state:Nt,preventScrollReset:ln?.preventScrollReset})}),[kn]),K=kn.basename||"/",he=React.useMemo(()=>({router:kn,navigator:fe,static:!1,basename:K}),[kn,fe,K]);return React.createElement(React.Fragment,null,React.createElement(f.Provider,{value:he},React.createElement(p.Provider,{value:Nn},React.createElement(Pn,{basename:K,location:Nn.location,navigationType:Nn.historyAction,navigator:fe,future:{v7_relativeSplatPath:kn.future.v7_relativeSplatPath}},Nn.initialized||kn.future.v7_partialHydration?React.createElement(lt,{routes:kn.routes,future:kn.future,state:Nn}):gn))),null)}function lt(en){let{routes:gn,future:kn,state:Jn}=en;return se(gn,void 0,Jn,kn)}function Ft(en){let{basename:gn,children:kn,initialEntries:Jn,initialIndex:Nn,future:kr}=en,bt=g.useRef();bt.current==null&&(bt.current=(0,y.sC)({initialEntries:Jn,initialIndex:Nn,v5Compat:!0}));let ne=bt.current,[fe,K]=g.useState({action:ne.action,location:ne.location}),{v7_startTransition:he}=kr||{},Fe=g.useCallback(Nt=>{he&&ge?ge(()=>K(Nt)):K(Nt)},[K,he]);return g.useLayoutEffect(()=>ne.listen(Fe),[ne,Fe]),g.createElement(Pn,{basename:gn,children:kn,location:fe.location,navigationType:fe.action,navigator:ne,future:kr})}function Et(en){let{to:gn,replace:kn,state:Jn,relative:Nn}=en;O()||(0,y.Oi)(!1);let{future:kr,static:bt}=g.useContext(E),{matches:ne}=g.useContext(m),{pathname:fe}=R(),K=U(),he=(0,y.Gh)(gn,(0,y.yD)(ne,kr.v7_relativeSplatPath),fe,Nn==="path"),Fe=JSON.stringify(he);return g.useEffect(()=>K(JSON.parse(Fe),{replace:kn,state:Jn,relative:Nn}),[K,Fe,Nn,kn,Jn]),null}function Zt(en){return Se(en.context)}function nn(en){(0,y.Oi)(!1)}function Pn(en){let{basename:gn="/",children:kn=null,location:Jn,navigationType:Nn=y.rc.Pop,navigator:kr,static:bt=!1,future:ne}=en;O()&&(0,y.Oi)(!1);let fe=gn.replace(/^\/*/,"/"),K=g.useMemo(()=>({basename:fe,navigator:kr,static:bt,future:x({v7_relativeSplatPath:!1},ne)}),[fe,ne,kr,bt]);typeof Jn=="string"&&(Jn=(0,y.Rr)(Jn));let{pathname:he="/",search:Fe="",hash:Nt="",state:ln=null,key:pn="default"}=Jn,Yn=g.useMemo(()=>{let ht=(0,y.pb)(he,fe);return ht==null?null:{location:{pathname:ht,search:Fe,hash:Nt,state:ln,key:pn},navigationType:Nn}},[fe,he,Fe,Nt,ln,pn,Nn]);return Yn==null?null:g.createElement(E.Provider,{value:K},g.createElement(v.Provider,{children:kn,value:Yn}))}function rn(en){let{children:gn,location:kn}=en;return ce(Cn(gn),kn)}function Vt(en){let{children:gn,errorElement:kn,resolve:Jn}=en;return g.createElement(on,{resolve:Jn,errorElement:kn},g.createElement(tr,null,gn))}var Kn=function(en){return en[en.pending=0]="pending",en[en.success=1]="success",en[en.error=2]="error",en}(Kn||{});const ur=new Promise(()=>{});class on extends g.Component{constructor(gn){super(gn),this.state={error:null}}static getDerivedStateFromError(gn){return{error:gn}}componentDidCatch(gn,kn){console.error("<Await> caught the following error during render",gn,kn)}render(){let{children:gn,errorElement:kn,resolve:Jn}=this.props,Nn=null,kr=Kn.pending;if(!(Jn instanceof Promise))kr=Kn.success,Nn=Promise.resolve(),Object.defineProperty(Nn,"_tracked",{get:()=>!0}),Object.defineProperty(Nn,"_data",{get:()=>Jn});else if(this.state.error){kr=Kn.error;let bt=this.state.error;Nn=Promise.reject().catch(()=>{}),Object.defineProperty(Nn,"_tracked",{get:()=>!0}),Object.defineProperty(Nn,"_error",{get:()=>bt})}else Jn._tracked?(Nn=Jn,kr="_error"in Nn?Kn.error:"_data"in Nn?Kn.success:Kn.pending):(kr=Kn.pending,Object.defineProperty(Jn,"_tracked",{get:()=>!0}),Nn=Jn.then(bt=>Object.defineProperty(Jn,"_data",{get:()=>bt}),bt=>Object.defineProperty(Jn,"_error",{get:()=>bt})));if(kr===Kn.error&&Nn._error instanceof y.tH)throw ur;if(kr===Kn.error&&!kn)throw Nn._error;if(kr===Kn.error)return g.createElement(h.Provider,{value:Nn,children:kn});if(kr===Kn.success)return g.createElement(h.Provider,{value:Nn,children:gn});throw Nn}}function tr(en){let{children:gn}=en,kn=bn(),Jn=typeof gn=="function"?gn(kn):gn;return g.createElement(g.Fragment,null,Jn)}function Cn(en,gn){gn===void 0&&(gn=[]);let kn=[];return g.Children.forEach(en,(Jn,Nn)=>{if(!g.isValidElement(Jn))return;let kr=[...gn,Nn];if(Jn.type===g.Fragment){kn.push.apply(kn,Cn(Jn.props.children,kr));return}Jn.type!==nn&&(0,y.Oi)(!1),!Jn.props.index||!Jn.props.children||(0,y.Oi)(!1);let bt={id:Jn.props.id||kr.join("-"),caseSensitive:Jn.props.caseSensitive,element:Jn.props.element,Component:Jn.props.Component,index:Jn.props.index,path:Jn.props.path,loader:Jn.props.loader,action:Jn.props.action,errorElement:Jn.props.errorElement,ErrorBoundary:Jn.props.ErrorBoundary,hasErrorBoundary:Jn.props.ErrorBoundary!=null||Jn.props.errorElement!=null,shouldRevalidate:Jn.props.shouldRevalidate,handle:Jn.props.handle,lazy:Jn.props.lazy};Jn.props.children&&(bt.children=Cn(Jn.props.children,kr)),kn.push(bt)}),kn}function Wn(en){return B(en)}function er(en){let gn={hasErrorBoundary:en.ErrorBoundary!=null||en.errorElement!=null};return en.Component&&Object.assign(gn,{element:g.createElement(en.Component),Component:void 0}),en.HydrateFallback&&Object.assign(gn,{hydrateFallbackElement:g.createElement(en.HydrateFallback),HydrateFallback:void 0}),en.ErrorBoundary&&Object.assign(gn,{errorElement:g.createElement(en.ErrorBoundary),ErrorBoundary:void 0}),gn}function Fn(en,gn){return(0,y.aE)({basename:gn?.basename,future:x({},gn?.future,{v7_prependBasename:!0}),history:(0,y.sC)({initialEntries:gn?.initialEntries,initialIndex:gn?.initialIndex}),hydrationData:gn?.hydrationData,routes:en,mapRouteProperties:er,unstable_dataStrategy:gn?.unstable_dataStrategy,unstable_patchRoutesOnNavigation:gn?.unstable_patchRoutesOnNavigation}).initialize()}},54383:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.take=void 0;var l=u(44885),g=u(65212),y=u(17214);function x(f){return f<=0?function(){return l.EMPTY}:g.operate(function(p,h){var E=0;p.subscribe(y.createOperatorSubscriber(h,function(v){++E<=f&&(h.next(v),f<=E&&h.complete())}))})}w.take=x},54422:(Ge,w,u)=>{"use strict";u.d(w,{R8:()=>f});const l={info:1,warn:2,error:3,none:4};let g=l.info;function y(h){g=l[h]}function x(...h){g>l.info||console.log(...h)}function f(...h){g>l.warn||console.warn(...h)}function p(...h){g>l.error||console.error(...h)}},54427:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var m=function(S,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,R){O.__proto__=R}||function(O,R){for(var C in R)Object.prototype.hasOwnProperty.call(R,C)&&(O[C]=R[C])},m(S,d)};return function(S,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");m(S,d);function O(){this.constructor=S}S.prototype=d===null?Object.create(d):(O.prototype=d.prototype,new O)}}(),g=this&&this.__values||function(m){var S=typeof Symbol=="function"&&Symbol.iterator,d=S&&m[S],O=0;if(d)return d.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&O>=m.length&&(m=void 0),{value:m&&m[O++],done:!m}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.AnonymousSubject=w.Subject=void 0;var y=u(48051),x=u(69879),f=u(50839),p=u(54830),h=u(12688),E=function(m){l(S,m);function S(){var d=m.call(this)||this;return d.closed=!1,d.currentObservers=null,d.observers=[],d.isStopped=!1,d.hasError=!1,d.thrownError=null,d}return S.prototype.lift=function(d){var O=new v(this,this);return O.operator=d,O},S.prototype._throwIfClosed=function(){if(this.closed)throw new f.ObjectUnsubscribedError},S.prototype.next=function(d){var O=this;h.errorContext(function(){var R,C;if(O._throwIfClosed(),!O.isStopped){O.currentObservers||(O.currentObservers=Array.from(O.observers));try{for(var L=g(O.currentObservers),j=L.next();!j.done;j=L.next()){var I=j.value;I.next(d)}}catch(U){R={error:U}}finally{try{j&&!j.done&&(C=L.return)&&C.call(L)}finally{if(R)throw R.error}}}})},S.prototype.error=function(d){var O=this;h.errorContext(function(){if(O._throwIfClosed(),!O.isStopped){O.hasError=O.isStopped=!0,O.thrownError=d;for(var R=O.observers;R.length;)R.shift().error(d)}})},S.prototype.complete=function(){var d=this;h.errorContext(function(){if(d._throwIfClosed(),!d.isStopped){d.isStopped=!0;for(var O=d.observers;O.length;)O.shift().complete()}})},S.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(S.prototype,"observed",{get:function(){var d;return((d=this.observers)===null||d===void 0?void 0:d.length)>0},enumerable:!1,configurable:!0}),S.prototype._trySubscribe=function(d){return this._throwIfClosed(),m.prototype._trySubscribe.call(this,d)},S.prototype._subscribe=function(d){return this._throwIfClosed(),this._checkFinalizedStatuses(d),this._innerSubscribe(d)},S.prototype._innerSubscribe=function(d){var O=this,R=this,C=R.hasError,L=R.isStopped,j=R.observers;return C||L?x.EMPTY_SUBSCRIPTION:(this.currentObservers=null,j.push(d),new x.Subscription(function(){O.currentObservers=null,p.arrRemove(j,d)}))},S.prototype._checkFinalizedStatuses=function(d){var O=this,R=O.hasError,C=O.thrownError,L=O.isStopped;R?d.error(C):L&&d.complete()},S.prototype.asObservable=function(){var d=new y.Observable;return d.source=this,d},S.create=function(d,O){return new v(d,O)},S}(y.Observable);w.Subject=E;var v=function(m){l(S,m);function S(d,O){var R=m.call(this)||this;return R.destination=d,R.source=O,R}return S.prototype.next=function(d){var O,R;(R=(O=this.destination)===null||O===void 0?void 0:O.next)===null||R===void 0||R.call(O,d)},S.prototype.error=function(d){var O,R;(R=(O=this.destination)===null||O===void 0?void 0:O.error)===null||R===void 0||R.call(O,d)},S.prototype.complete=function(){var d,O;(O=(d=this.destination)===null||d===void 0?void 0:d.complete)===null||O===void 0||O.call(d)},S.prototype._subscribe=function(d){var O,R;return(R=(O=this.source)===null||O===void 0?void 0:O.subscribe(d))!==null&&R!==void 0?R:x.EMPTY_SUBSCRIPTION},S}(E);w.AnonymousSubject=v},54530:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.schedulePromise=void 0;var l=u(19724),g=u(32071),y=u(5455);function x(f,p){return l.innerFrom(f).pipe(y.subscribeOn(p),g.observeOn(p))}w.schedulePromise=x},54830:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.arrRemove=void 0;function u(l,g){if(l){var y=l.indexOf(g);0<=y&&l.splice(y,1)}}w.arrRemove=u},54889:(Ge,w,u)=>{"use strict";u.d(w,{K:()=>g});var l=u(93031);function g(){return(0,l.U)(1)}},55127:function(Ge){(function(w,u){Ge.exports=u()})(this,function(){var w=[],u=[],l={},g={},y={};function x(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function f(d,O){return d===O?O:d===d.toLowerCase()?O.toLowerCase():d===d.toUpperCase()?O.toUpperCase():d[0]===d[0].toUpperCase()?O.charAt(0).toUpperCase()+O.substr(1).toLowerCase():O.toLowerCase()}function p(d,O){return d.replace(/\$(\d{1,2})/g,function(R,C){return O[C]||""})}function h(d,O){return d.replace(O[0],function(R,C){var L=p(O[1],arguments);return f(R===""?d[C-1]:R,L)})}function E(d,O,R){if(!d.length||l.hasOwnProperty(d))return O;for(var C=R.length;C--;){var L=R[C];if(L[0].test(O))return h(O,L)}return O}function v(d,O,R){return function(C){var L=C.toLowerCase();return O.hasOwnProperty(L)?f(C,L):d.hasOwnProperty(L)?f(C,d[L]):E(L,C,R)}}function m(d,O,R,C){return function(L){var j=L.toLowerCase();return O.hasOwnProperty(j)?!0:d.hasOwnProperty(j)?!1:E(j,j,R)===j}}function S(d,O,R){var C=O===1?S.singular(d):S.plural(d);return(R?O+" ":"")+C}return S.plural=v(y,g,w),S.isPlural=m(y,g,w),S.singular=v(g,y,u),S.isSingular=m(g,y,u),S.addPluralRule=function(d,O){w.push([x(d),O])},S.addSingularRule=function(d,O){u.push([x(d),O])},S.addUncountableRule=function(d){if(typeof d=="string"){l[d.toLowerCase()]=!0;return}S.addPluralRule(d,"$0"),S.addSingularRule(d,"$0")},S.addIrregularRule=function(d,O){O=O.toLowerCase(),d=d.toLowerCase(),y[d]=O,g[O]=d},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(d){return S.addIrregularRule(d[0],d[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(d){return S.addPluralRule(d[0],d[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(d){return S.addSingularRule(d[0],d[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(S.addUncountableRule),S})},55261:Ge=>{function w(){return Ge.exports=w=Object.assign?Object.assign.bind():function(u){for(var l=1;l<arguments.length;l++){var g=arguments[l];for(var y in g)({}).hasOwnProperty.call(g,y)&&(u[y]=g[y])}return u},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w.apply(null,arguments)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},55440:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.single=void 0;var l=u(59328),g=u(94708),y=u(23506),x=u(65212),f=u(17214);function p(h){return x.operate(function(E,v){var m=!1,S,d=!1,O=0;E.subscribe(f.createOperatorSubscriber(v,function(R){d=!0,(!h||h(R,O++,E))&&(m&&v.error(new g.SequenceError("Too many matching values")),m=!0,S=R)},function(){m?(v.next(S),v.complete()):v.error(d?new y.NotFoundError("No matching values"):new l.EmptyError)}))})}w.single=p},55459:Ge=>{"use strict";function w(u){for(var l=5381,g=u.length;g;)l=l*33^u.charCodeAt(--g);return l>>>0}Ge.exports=w},55794:(Ge,w,u)=>{"use strict";const{default:l,DraggableCore:g}=u(86027);Ge.exports=l,Ge.exports.default=l,Ge.exports.DraggableCore=g},55852:(Ge,w,u)=>{"use strict";u.d(w,{EJ:()=>x,bp:()=>p,qg:()=>y,xL:()=>f});var l=u(62373),g=u(47356);const y=l.Tj(g.g),x=l.Rb(g.g),f=l.Od(g.g),p=l.wG(g.g)},56005:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{AND:()=>O,AS:()=>S,ASC:()=>E,BY:()=>p,COMPARISON_OPERATORS:()=>I,DESC:()=>h,EQUALS:()=>L,FROM:()=>g,GROUP:()=>x,LIMIT:()=>v,LOGICAL_OPERATORS:()=>C,NOT_EQUALS:()=>j,OR:()=>R,ORDER:()=>f,SCHEMA:()=>d,SELECT:()=>l,STD_OPERATORS:()=>U,WHERE:()=>y,WITH:()=>m,conf:()=>$,language:()=>ee});const l="select",g="from",y="where",x="group",f="order",p="by",h="desc",E="asc",v="limit",m="with",S="as",d="schema",O="AND",R="OR",C=[O,R],L="=",j="!=",I=[L,j],U=[...I],$={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},ee={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],logicalOperators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME"],comparisonOperators:["<>",">","<",">=","<=","=","!=","&","~","^","%"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@templateVariables"},{include:"@macros"},{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},{include:"@schemaTable"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$|<|>|=|!|%|&|+|\|-|*|/|~|^]+/,{cases:{"@operators":"operator","@comparisonOperators":"operator","@logicalOperators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}]],templateVariables:[[/\$[a-zA-Z0-9]+/,"variable"]],macros:[[/\$__[a-zA-Z0-9-_]+/,"type"]],schemaTable:[[/(\w+)\./,"identifier"],[/(\w+\.\w+)/,"identifier"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}},56131:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.repeat=void 0;var l=u(44885),g=u(65212),y=u(17214),x=u(19724),f=u(5825);function p(h){var E,v=1/0,m;return h!=null&&(typeof h=="object"?(E=h.count,v=E===void 0?1/0:E,m=h.delay):v=h),v<=0?function(){return l.EMPTY}:g.operate(function(S,d){var O=0,R,C=function(){if(R?.unsubscribe(),R=null,m!=null){var j=typeof m=="number"?f.timer(m):x.innerFrom(m(O)),I=y.createOperatorSubscriber(d,function(){I.unsubscribe(),L()});j.subscribe(I)}else L()},L=function(){var j=!1;R=S.subscribe(y.createOperatorSubscriber(d,void 0,function(){++O<v?R?C():j=!0:d.complete()})),j&&C()};L()})}w.repeat=p},56315:(Ge,w,u)=>{"use strict";u.d(w,{N:()=>l});function l(g,y,x,f,p){f===void 0&&(f=0),p===void 0&&(p=!1);var h=y.schedule(function(){x(),p?g.add(this.schedule(null,f)):this.unsubscribe()},f);if(g.add(h),!p)return h}},56361:(Ge,w,u)=>{"use strict";u.d(w,{Dz:()=>y,cD:()=>g,n2:()=>l});function l(x,f,p,h,E){E=E!==void 0?E:[];let v=0;for(let m=f;m<p;m+=h)E[v++]=x.slice(m,m+h);return E.length=v,E}function g(x,f,p,h,E){E=E!==void 0?E:[];let v=0;for(let m=0,S=p.length;m<S;++m){const d=p[m];E[v++]=l(x,f,d,h,E[v]),f=d}return E.length=v,E}function y(x,f,p,h,E){E=E!==void 0?E:[];let v=0;for(let m=0,S=p.length;m<S;++m){const d=p[m];E[v++]=d.length===1&&d[0]===f?[]:g(x,f,d,h,E[v]),f=d[d.length-1]}return E.length=v,E}},56568:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>bi});var l=u(31635),g="3.4.2";function y(de,Ve){return new Promise(function(vt){return setTimeout(vt,de,Ve)})}function x(de,Ve){Ve===void 0&&(Ve=1/0);var vt=window.requestIdleCallback;return vt?new Promise(function(Qt){return vt.call(window,function(){return Qt()},{timeout:Ve})}):y(Math.min(de,Ve))}function f(de){return!!de&&typeof de.then=="function"}function p(de,Ve){try{var vt=de();f(vt)?vt.then(function(Qt){return Ve(!0,Qt)},function(Qt){return Ve(!1,Qt)}):Ve(!0,vt)}catch(Qt){Ve(!1,Qt)}}function h(de,Ve,vt){return vt===void 0&&(vt=16),(0,l.__awaiter)(this,void 0,void 0,function(){var Qt,nt,Tt,Gt;return(0,l.__generator)(this,function(En){switch(En.label){case 0:Qt=Array(de.length),nt=Date.now(),Tt=0,En.label=1;case 1:return Tt<de.length?(Qt[Tt]=Ve(de[Tt],Tt),Gt=Date.now(),Gt>=nt+vt?(nt=Gt,[4,y(0)]):[3,3]):[3,4];case 2:En.sent(),En.label=3;case 3:return++Tt,[3,1];case 4:return[2,Qt]}})})}function E(de){de.then(void 0,function(){})}function v(de,Ve){de=[de[0]>>>16,de[0]&65535,de[1]>>>16,de[1]&65535],Ve=[Ve[0]>>>16,Ve[0]&65535,Ve[1]>>>16,Ve[1]&65535];var vt=[0,0,0,0];return vt[3]+=de[3]+Ve[3],vt[2]+=vt[3]>>>16,vt[3]&=65535,vt[2]+=de[2]+Ve[2],vt[1]+=vt[2]>>>16,vt[2]&=65535,vt[1]+=de[1]+Ve[1],vt[0]+=vt[1]>>>16,vt[1]&=65535,vt[0]+=de[0]+Ve[0],vt[0]&=65535,[vt[0]<<16|vt[1],vt[2]<<16|vt[3]]}function m(de,Ve){de=[de[0]>>>16,de[0]&65535,de[1]>>>16,de[1]&65535],Ve=[Ve[0]>>>16,Ve[0]&65535,Ve[1]>>>16,Ve[1]&65535];var vt=[0,0,0,0];return vt[3]+=de[3]*Ve[3],vt[2]+=vt[3]>>>16,vt[3]&=65535,vt[2]+=de[2]*Ve[3],vt[1]+=vt[2]>>>16,vt[2]&=65535,vt[2]+=de[3]*Ve[2],vt[1]+=vt[2]>>>16,vt[2]&=65535,vt[1]+=de[1]*Ve[3],vt[0]+=vt[1]>>>16,vt[1]&=65535,vt[1]+=de[2]*Ve[2],vt[0]+=vt[1]>>>16,vt[1]&=65535,vt[1]+=de[3]*Ve[1],vt[0]+=vt[1]>>>16,vt[1]&=65535,vt[0]+=de[0]*Ve[3]+de[1]*Ve[2]+de[2]*Ve[1]+de[3]*Ve[0],vt[0]&=65535,[vt[0]<<16|vt[1],vt[2]<<16|vt[3]]}function S(de,Ve){return Ve%=64,Ve===32?[de[1],de[0]]:Ve<32?[de[0]<<Ve|de[1]>>>32-Ve,de[1]<<Ve|de[0]>>>32-Ve]:(Ve-=32,[de[1]<<Ve|de[0]>>>32-Ve,de[0]<<Ve|de[1]>>>32-Ve])}function d(de,Ve){return Ve%=64,Ve===0?de:Ve<32?[de[0]<<Ve|de[1]>>>32-Ve,de[1]<<Ve]:[de[1]<<Ve-32,0]}function O(de,Ve){return[de[0]^Ve[0],de[1]^Ve[1]]}function R(de){return de=O(de,[0,de[0]>>>1]),de=m(de,[4283543511,3981806797]),de=O(de,[0,de[0]>>>1]),de=m(de,[3301882366,444984403]),de=O(de,[0,de[0]>>>1]),de}function C(de,Ve){de=de||"",Ve=Ve||0;var vt=de.length%16,Qt=de.length-vt,nt=[0,Ve],Tt=[0,Ve],Gt=[0,0],En=[0,0],Qn=[2277735313,289559509],Or=[1291169091,658871167],Pr;for(Pr=0;Pr<Qt;Pr=Pr+16)Gt=[de.charCodeAt(Pr+4)&255|(de.charCodeAt(Pr+5)&255)<<8|(de.charCodeAt(Pr+6)&255)<<16|(de.charCodeAt(Pr+7)&255)<<24,de.charCodeAt(Pr)&255|(de.charCodeAt(Pr+1)&255)<<8|(de.charCodeAt(Pr+2)&255)<<16|(de.charCodeAt(Pr+3)&255)<<24],En=[de.charCodeAt(Pr+12)&255|(de.charCodeAt(Pr+13)&255)<<8|(de.charCodeAt(Pr+14)&255)<<16|(de.charCodeAt(Pr+15)&255)<<24,de.charCodeAt(Pr+8)&255|(de.charCodeAt(Pr+9)&255)<<8|(de.charCodeAt(Pr+10)&255)<<16|(de.charCodeAt(Pr+11)&255)<<24],Gt=m(Gt,Qn),Gt=S(Gt,31),Gt=m(Gt,Or),nt=O(nt,Gt),nt=S(nt,27),nt=v(nt,Tt),nt=v(m(nt,[0,5]),[0,1390208809]),En=m(En,Or),En=S(En,33),En=m(En,Qn),Tt=O(Tt,En),Tt=S(Tt,31),Tt=v(Tt,nt),Tt=v(m(Tt,[0,5]),[0,944331445]);switch(Gt=[0,0],En=[0,0],vt){case 15:En=O(En,d([0,de.charCodeAt(Pr+14)],48));case 14:En=O(En,d([0,de.charCodeAt(Pr+13)],40));case 13:En=O(En,d([0,de.charCodeAt(Pr+12)],32));case 12:En=O(En,d([0,de.charCodeAt(Pr+11)],24));case 11:En=O(En,d([0,de.charCodeAt(Pr+10)],16));case 10:En=O(En,d([0,de.charCodeAt(Pr+9)],8));case 9:En=O(En,[0,de.charCodeAt(Pr+8)]),En=m(En,Or),En=S(En,33),En=m(En,Qn),Tt=O(Tt,En);case 8:Gt=O(Gt,d([0,de.charCodeAt(Pr+7)],56));case 7:Gt=O(Gt,d([0,de.charCodeAt(Pr+6)],48));case 6:Gt=O(Gt,d([0,de.charCodeAt(Pr+5)],40));case 5:Gt=O(Gt,d([0,de.charCodeAt(Pr+4)],32));case 4:Gt=O(Gt,d([0,de.charCodeAt(Pr+3)],24));case 3:Gt=O(Gt,d([0,de.charCodeAt(Pr+2)],16));case 2:Gt=O(Gt,d([0,de.charCodeAt(Pr+1)],8));case 1:Gt=O(Gt,[0,de.charCodeAt(Pr)]),Gt=m(Gt,Qn),Gt=S(Gt,31),Gt=m(Gt,Or),nt=O(nt,Gt)}return nt=O(nt,[0,de.length]),Tt=O(Tt,[0,de.length]),nt=v(nt,Tt),Tt=v(Tt,nt),nt=R(nt),Tt=R(Tt),nt=v(nt,Tt),Tt=v(Tt,nt),("00000000"+(nt[0]>>>0).toString(16)).slice(-8)+("00000000"+(nt[1]>>>0).toString(16)).slice(-8)+("00000000"+(Tt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Tt[1]>>>0).toString(16)).slice(-8)}function L(de){var Ve;return(0,l.__assign)({name:de.name,message:de.message,stack:(Ve=de.stack)===null||Ve===void 0?void 0:Ve.split(` `)},de)}function j(de,Ve){for(var vt=0,Qt=de.length;vt<Qt;++vt)if(de[vt]===Ve)return!0;return!1}function I(de,Ve){return!j(de,Ve)}function U(de){return parseInt(de)}function $(de){return parseFloat(de)}function ee(de,Ve){return typeof de=="number"&&isNaN(de)?Ve:de}function re(de){return de.reduce(function(Ve,vt){return Ve+(vt?1:0)},0)}function Se(de,Ve){if(Ve===void 0&&(Ve=1),Math.abs(Ve)>=1)return Math.round(de/Ve)*Ve;var vt=1/Ve;return Math.round(de*vt)/vt}function z(de){for(var Ve,vt,Qt="Unexpected syntax '".concat(de,"'"),nt=/^\s*([a-z-]*)(.*)$/i.exec(de),Tt=nt[1]||void 0,Gt={},En=/([.:#][\w-]+|\[.+?\])/gi,Qn=function(xi,mi){Gt[xi]=Gt[xi]||[],Gt[xi].push(mi)};;){var Or=En.exec(nt[2]);if(!Or)break;var Pr=Or[0];switch(Pr[0]){case".":Qn("class",Pr.slice(1));break;case"#":Qn("id",Pr.slice(1));break;case"[":{var ai=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(Pr);if(ai)Qn(ai[1],(vt=(Ve=ai[4])!==null&&Ve!==void 0?Ve:ai[5])!==null&&vt!==void 0?vt:"");else throw new Error(Qt);break}default:throw new Error(Qt)}}return[Tt,Gt]}function Q(de){return de&&typeof de=="object"&&"message"in de?de:{message:de}}function ce(de){return typeof de!="function"}function se(de,Ve){var vt=new Promise(function(Qt){var nt=Date.now();p(de.bind(null,Ve),function(){for(var Tt=[],Gt=0;Gt<arguments.length;Gt++)Tt[Gt]=arguments[Gt];var En=Date.now()-nt;if(!Tt[0])return Qt(function(){return{error:Q(Tt[1]),duration:En}});var Qn=Tt[1];if(ce(Qn))return Qt(function(){return{value:Qn,duration:En}});Qt(function(){return new Promise(function(Or){var Pr=Date.now();p(Qn,function(){for(var ai=[],xi=0;xi<arguments.length;xi++)ai[xi]=arguments[xi];var mi=En+Date.now()-Pr;if(!ai[0])return Or({error:Q(ai[1]),duration:mi});Or({value:ai[1],duration:mi})})})})})});return E(vt),function(){return vt.then(function(nt){return nt()})}}function q(de,Ve,vt){var Qt=Object.keys(de).filter(function(Tt){return I(vt,Tt)}),nt=h(Qt,function(Tt){return se(de[Tt],Ve)});return E(nt),function(){return(0,l.__awaiter)(this,void 0,void 0,function(){var Gt,En,Qn,Or,Pr;return(0,l.__generator)(this,function(ai){switch(ai.label){case 0:return[4,nt];case 1:return Gt=ai.sent(),[4,h(Gt,function(xi){var mi=xi();return E(mi),mi})];case 2:return En=ai.sent(),[4,Promise.all(En)];case 3:for(Qn=ai.sent(),Or={},Pr=0;Pr<Qt.length;++Pr)Or[Qt[Pr]]=Qn[Pr];return[2,Or]}})})}}function te(de,Ve){var vt=function(Qt){return ce(Qt)?Ve(Qt):function(){var nt=Qt();return f(nt)?nt.then(Ve):Ve(nt)}};return function(Qt){var nt=de(Qt);return f(nt)?nt.then(vt):vt(nt)}}function A(){var de=window,Ve=navigator;return re(["MSCSSMatrix"in de,"msSetImmediate"in de,"msIndexedDB"in de,"msMaxTouchPoints"in Ve,"msPointerEnabled"in Ve])>=4}function T(){var de=window,Ve=navigator;return re(["msWriteProfilerMark"in de,"MSStream"in de,"msLaunchUri"in Ve,"msSaveBlob"in Ve])>=3&&!A()}function B(){var de=window,Ve=navigator;return re(["webkitPersistentStorage"in Ve,"webkitTemporaryStorage"in Ve,Ve.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in de,"BatteryManager"in de,"webkitMediaStream"in de,"webkitSpeechGrammar"in de])>=5}function X(){var de=window,Ve=navigator;return re(["ApplePayError"in de,"CSSPrimitiveValue"in de,"Counter"in de,Ve.vendor.indexOf("Apple")===0,"getStorageUpdates"in Ve,"WebKitMediaKeys"in de])>=4}function ue(){var de=window;return re(["safari"in de,!("DeviceMotionEvent"in de),!("ongestureend"in de),!("standalone"in navigator)])>=3}function ie(){var de,Ve,vt=window;return re(["buildID"in navigator,"MozAppearance"in((Ve=(de=document.documentElement)===null||de===void 0?void 0:de.style)!==null&&Ve!==void 0?Ve:{}),"onmozfullscreenchange"in vt,"mozInnerScreenX"in vt,"CSSMozDocumentRule"in vt,"CanvasCaptureMediaStream"in vt])>=4}function Te(){var de=window;return re([!("MediaSettingsRange"in de),"RTCEncodedAudioFrame"in de,""+de.Intl=="[object Intl]",""+de.Reflect=="[object Reflect]"])>=3}function je(){var de=window;return re(["DOMRectList"in de,"RTCPeerConnectionIceEvent"in de,"SVGGeometryElement"in de,"ontransitioncancel"in de])>=3}function yt(){if(navigator.platform==="iPad")return!0;var de=screen,Ve=de.width/de.height;return re(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,Ve>.65&&Ve<1.53])>=2}function tt(){var de=document;return de.fullscreenElement||de.msFullscreenElement||de.mozFullScreenElement||de.webkitFullscreenElement||null}function Ze(){var de=document;return(de.exitFullscreen||de.msExitFullscreen||de.mozCancelFullScreen||de.webkitExitFullscreen).call(de)}function Ne(){var de=B(),Ve=ie();if(!de&&!Ve)return!1;var vt=window;return re(["onorientationchange"in vt,"orientation"in vt,de&&!("SharedWorker"in vt),Ve&&/android/i.test(navigator.appVersion)])>=2}function it(){var de=window,Ve=de.OfflineAudioContext||de.webkitOfflineAudioContext;if(!Ve)return-2;if(Rt())return-1;var vt=4500,Qt=5e3,nt=new Ve(1,Qt,44100),Tt=nt.createOscillator();Tt.type="triangle",Tt.frequency.value=1e4;var Gt=nt.createDynamicsCompressor();Gt.threshold.value=-50,Gt.knee.value=40,Gt.ratio.value=12,Gt.attack.value=0,Gt.release.value=.25,Tt.connect(Gt),Gt.connect(nt.destination),Tt.start(0);var En=Dn(nt),Qn=En[0],Or=En[1],Pr=Qn.then(function(ai){return Mt(ai.getChannelData(0).subarray(vt))},function(ai){if(ai.name==="timeout"||ai.name==="suspended")return-3;throw ai});return E(Pr),function(){return Or(),Pr}}function Rt(){return X()&&!ue()&&!je()}function Dn(de){var Ve=3,vt=500,Qt=500,nt=5e3,Tt=function(){},Gt=new Promise(function(En,Qn){var Or=!1,Pr=0,ai=0;de.oncomplete=function(ei){return En(ei.renderedBuffer)};var xi=function(){setTimeout(function(){return Qn(Wt("timeout"))},Math.min(Qt,ai+nt-Date.now()))},mi=function(){try{var ei=de.startRendering();switch(f(ei)&&E(ei),de.state){case"running":ai=Date.now(),Or&&xi();break;case"suspended":document.hidden||Pr++,Or&&Pr>=Ve?Qn(Wt("suspended")):setTimeout(mi,vt);break}}catch(Qr){Qn(Qr)}};mi(),Tt=function(){Or||(Or=!0,ai>0&&xi())}});return[Gt,Tt]}function Mt(de){for(var Ve=0,vt=0;vt<de.length;++vt)Ve+=Math.abs(de[vt]);return Ve}function Wt(de){var Ve=new Error(de);return Ve.name=de,Ve}function Tn(de,Ve,vt){var Qt,nt,Tt;return vt===void 0&&(vt=50),(0,l.__awaiter)(this,void 0,void 0,function(){var Gt,En;return(0,l.__generator)(this,function(Qn){switch(Qn.label){case 0:Gt=document,Qn.label=1;case 1:return Gt.body?[3,3]:[4,y(vt)];case 2:return Qn.sent(),[3,1];case 3:En=Gt.createElement("iframe"),Qn.label=4;case 4:return Qn.trys.push([4,,10,11]),[4,new Promise(function(Or,Pr){var ai=!1,xi=function(){ai=!0,Or()},mi=function(Ni){ai=!0,Pr(Ni)};En.onload=xi,En.onerror=mi;var ei=En.style;ei.setProperty("display","block","important"),ei.position="absolute",ei.top="0",ei.left="0",ei.visibility="hidden",Ve&&"srcdoc"in En?En.srcdoc=Ve:En.src="about:blank",Gt.body.appendChild(En);var Qr=function(){var Ni,ea;ai||(((ea=(Ni=En.contentWindow)===null||Ni===void 0?void 0:Ni.document)===null||ea===void 0?void 0:ea.readyState)==="complete"?xi():setTimeout(Qr,10))};Qr()})];case 5:Qn.sent(),Qn.label=6;case 6:return!((nt=(Qt=En.contentWindow)===null||Qt===void 0?void 0:Qt.document)===null||nt===void 0)&&nt.body?[3,8]:[4,y(vt)];case 7:return Qn.sent(),[3,6];case 8:return[4,de(En,En.contentWindow)];case 9:return[2,Qn.sent()];case 10:return(Tt=En.parentNode)===null||Tt===void 0||Tt.removeChild(En),[7];case 11:return[2]}})})}function bn(de){for(var Ve=z(de),vt=Ve[0],Qt=Ve[1],nt=document.createElement(vt??"div"),Tt=0,Gt=Object.keys(Qt);Tt<Gt.length;Tt++){var En=Gt[Tt],Qn=Qt[En].join(" ");En==="style"?$t(nt.style,Qn):nt.setAttribute(En,Qn)}return nt}function $t(de,Ve){for(var vt=0,Qt=Ve.split(";");vt<Qt.length;vt++){var nt=Qt[vt],Tt=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(nt);if(Tt){var Gt=Tt[1],En=Tt[2],Qn=Tt[4];de.setProperty(Gt,En,Qn||"")}}}var Ct="mmMwWLliI0O&1",Z="48px",me=["monospace","sans-serif","serif"],ke=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Ee(){return Tn(function(de,Ve){var vt=Ve.document,Qt=vt.body;Qt.style.fontSize=Z;var nt=vt.createElement("div"),Tt={},Gt={},En=function(Qr){var Ni=vt.createElement("span"),ea=Ni.style;return ea.position="absolute",ea.top="0",ea.left="0",ea.fontFamily=Qr,Ni.textContent=Ct,nt.appendChild(Ni),Ni},Qn=function(Qr,Ni){return En("'".concat(Qr,"',").concat(Ni))},Or=function(){return me.map(En)},Pr=function(){for(var Qr={},Ni=function(xr){Qr[xr]=me.map(function(di){return Qn(xr,di)})},ea=0,Qi=ke;ea<Qi.length;ea++){var ir=Qi[ea];Ni(ir)}return Qr},ai=function(Qr){return me.some(function(Ni,ea){return Qr[ea].offsetWidth!==Tt[Ni]||Qr[ea].offsetHeight!==Gt[Ni]})},xi=Or(),mi=Pr();Qt.appendChild(nt);for(var ei=0;ei<me.length;ei++)Tt[me[ei]]=xi[ei].offsetWidth,Gt[me[ei]]=xi[ei].offsetHeight;return ke.filter(function(Qr){return ai(mi[Qr])})})}function _e(){var de=navigator.plugins;if(de){for(var Ve=[],vt=0;vt<de.length;++vt){var Qt=de[vt];if(Qt){for(var nt=[],Tt=0;Tt<Qt.length;++Tt){var Gt=Qt[Tt];nt.push({type:Gt.type,suffixes:Gt.suffixes})}Ve.push({name:Qt.name,description:Qt.description,mimeTypes:nt})}}return Ve}}function ge(){var de=!1,Ve,vt,Qt=Me(),nt=Qt[0],Tt=Qt[1];if(!lt(nt,Tt))Ve=vt="";else{de=Ft(Tt),Et(nt,Tt);var Gt=nn(nt),En=nn(nt);Gt!==En?Ve=vt="unstable":(vt=Gt,Zt(nt,Tt),Ve=nn(nt))}return{winding:de,geometry:Ve,text:vt}}function Me(){var de=document.createElement("canvas");return de.width=1,de.height=1,[de,de.getContext("2d")]}function lt(de,Ve){return!!(Ve&&de.toDataURL)}function Ft(de){return de.rect(0,0,10,10),de.rect(2,2,6,6),!de.isPointInPath(5,5,"evenodd")}function Et(de,Ve){de.width=240,de.height=60,Ve.textBaseline="alphabetic",Ve.fillStyle="#f60",Ve.fillRect(100,1,62,20),Ve.fillStyle="#069",Ve.font='11pt "Times New Roman"';var vt="Cwm fjordbank gly ".concat("\u{1F603}");Ve.fillText(vt,2,15),Ve.fillStyle="rgba(102, 204, 0, 0.2)",Ve.font="18pt Arial",Ve.fillText(vt,4,45)}function Zt(de,Ve){de.width=122,de.height=110,Ve.globalCompositeOperation="multiply";for(var vt=0,Qt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];vt<Qt.length;vt++){var nt=Qt[vt],Tt=nt[0],Gt=nt[1],En=nt[2];Ve.fillStyle=Tt,Ve.beginPath(),Ve.arc(Gt,En,40,0,Math.PI*2,!0),Ve.closePath(),Ve.fill()}Ve.fillStyle="#f9c",Ve.arc(60,60,60,0,Math.PI*2,!0),Ve.arc(60,60,20,0,Math.PI*2,!0),Ve.fill("evenodd")}function nn(de){return de.toDataURL()}function Pn(){var de=navigator,Ve=0,vt;de.maxTouchPoints!==void 0?Ve=U(de.maxTouchPoints):de.msMaxTouchPoints!==void 0&&(Ve=de.msMaxTouchPoints);try{document.createEvent("TouchEvent"),vt=!0}catch{vt=!1}var Qt="ontouchstart"in window;return{maxTouchPoints:Ve,touchEvent:vt,touchStart:Qt}}function rn(){return navigator.oscpu}function Vt(){var de=navigator,Ve=[],vt=de.language||de.userLanguage||de.browserLanguage||de.systemLanguage;if(vt!==void 0&&Ve.push([vt]),Array.isArray(de.languages))B()&&Te()||Ve.push(de.languages);else if(typeof de.languages=="string"){var Qt=de.languages;Qt&&Ve.push(Qt.split(","))}return Ve}function Kn(){return window.screen.colorDepth}function ur(){return ee($(navigator.deviceMemory),void 0)}function on(){var de=screen,Ve=function(Qt){return ee(U(Qt),null)},vt=[Ve(de.width),Ve(de.height)];return vt.sort().reverse(),vt}var tr=2500,Cn=10,Wn,er;function Fn(){if(er===void 0){var de=function(){var Ve=kn();Jn(Ve)?er=setTimeout(de,tr):(Wn=Ve,er=void 0)};de()}}function en(){var de=this;return Fn(),function(){return(0,l.__awaiter)(de,void 0,void 0,function(){var Ve;return(0,l.__generator)(this,function(vt){switch(vt.label){case 0:return Ve=kn(),Jn(Ve)?Wn?[2,(0,l.__spreadArray)([],Wn,!0)]:tt()?[4,Ze()]:[3,2]:[3,2];case 1:vt.sent(),Ve=kn(),vt.label=2;case 2:return Jn(Ve)||(Wn=Ve),[2,Ve]}})})}}function gn(){var de=this,Ve=en();return function(){return(0,l.__awaiter)(de,void 0,void 0,function(){var vt,Qt;return(0,l.__generator)(this,function(nt){switch(nt.label){case 0:return[4,Ve()];case 1:return vt=nt.sent(),Qt=function(Tt){return Tt===null?null:Se(Tt,Cn)},[2,[Qt(vt[0]),Qt(vt[1]),Qt(vt[2]),Qt(vt[3])]]}})})}}function kn(){var de=screen;return[ee($(de.availTop),null),ee($(de.width)-$(de.availWidth)-ee($(de.availLeft),0),null),ee($(de.height)-$(de.availHeight)-ee($(de.availTop),0),null),ee($(de.availLeft),null)]}function Jn(de){for(var Ve=0;Ve<4;++Ve)if(de[Ve])return!1;return!0}function Nn(){return ee(U(navigator.hardwareConcurrency),void 0)}function kr(){var de,Ve=(de=window.Intl)===null||de===void 0?void 0:de.DateTimeFormat;if(Ve){var vt=new Ve().resolvedOptions().timeZone;if(vt)return vt}var Qt=-bt();return"UTC".concat(Qt>=0?"+":"").concat(Math.abs(Qt))}function bt(){var de=new Date().getFullYear();return Math.max($(new Date(de,0,1).getTimezoneOffset()),$(new Date(de,6,1).getTimezoneOffset()))}function ne(){try{return!!window.sessionStorage}catch{return!0}}function fe(){try{return!!window.localStorage}catch{return!0}}function K(){if(!(A()||T()))try{return!!window.indexedDB}catch{return!0}}function he(){return!!window.openDatabase}function Fe(){return navigator.cpuClass}function Nt(){var de=navigator.platform;return de==="MacIntel"&&X()&&!ue()?yt()?"iPad":"iPhone":de}function ln(){return navigator.vendor||""}function pn(){for(var de=[],Ve=0,vt=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];Ve<vt.length;Ve++){var Qt=vt[Ve],nt=window[Qt];nt&&typeof nt=="object"&&de.push(Qt)}return de.sort()}function Yn(){var de=document;try{de.cookie="cookietest=1; SameSite=Strict;";var Ve=de.cookie.indexOf("cookietest=")!==-1;return de.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",Ve}catch{return!1}}function ht(){var de=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',de("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",de("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",de("LnNwb25zb3JpdA=="),".ylamainos",de("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),de("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",de("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",de("LmhlYWRlci1ibG9ja2VkLWFk"),de("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",de("I2FkXzMwMFgyNTA="),de("I2Jhbm5lcmZsb2F0MjI="),de("I2NhbXBhaWduLWJhbm5lcg=="),de("I0FkLUNvbnRlbnQ=")],adGuardChinese:[de("LlppX2FkX2FfSA=="),de("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",de("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),de("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",de("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",de("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",de("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),de("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),de("LmFkZ29vZ2xl"),de("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[de("YW1wLWF1dG8tYWRz"),de("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",de("I2FkX2ludmlld19hcmVh")],adGuardRussian:[de("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),de("LnJlY2xhbWE="),'div[id^="smi2adblock"]',de("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[de("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),de("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",de("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),de("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),de("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",de("I3Jla2xhbWk="),de("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),de("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),de("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[de("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",de("LndpZGdldF9wb19hZHNfd2lkZ2V0"),de("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",de("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[de("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),de("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",de("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",de("I3Jla2xhbW5pLWJveA=="),de("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",de("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[de("I2FkdmVydGVudGll"),de("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",de("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",de("LnNwb25zb3JsaW5rZ3J1ZW4="),de("I3dlcmJ1bmdza3k="),de("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),de("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[de("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",de("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),de("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),de("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[de("LnJla2xhbW9zX3RhcnBhcw=="),de("LnJla2xhbW9zX251b3JvZG9z"),de("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),de("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),de("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[de("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[de("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),de("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",de("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[de("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),de("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),de("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",de("LmFkX19tYWlu"),de("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[de("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[de("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),de("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[de("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),de("I2xpdmVyZUFkV3JhcHBlcg=="),de("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),de("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[de("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",de("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),de("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),de("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[de("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),de("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),de("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",de("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),de("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),de("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),de("ZGl2I3NrYXBpZWNfYWQ=")],ro:[de("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),de("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),de("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),de("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[de("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),de("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),de("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",de("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),de("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",de("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function De(de){var Ve=de===void 0?{}:de,vt=Ve.debug;return(0,l.__awaiter)(this,void 0,void 0,function(){var Qt,nt,Tt,Gt,En,Qn;return(0,l.__generator)(this,function(Or){switch(Or.label){case 0:return we()?(Qt=ht(),nt=Object.keys(Qt),Tt=(Qn=[]).concat.apply(Qn,nt.map(function(Pr){return Qt[Pr]})),[4,Ke(Tt)]):[2,void 0];case 1:return Gt=Or.sent(),vt&&pt(Qt,Gt),En=nt.filter(function(Pr){var ai=Qt[Pr],xi=re(ai.map(function(mi){return Gt[mi]}));return xi>ai.length*.6}),En.sort(),[2,En]}})})}function we(){return X()||Ne()}function Ke(de){var Ve;return(0,l.__awaiter)(this,void 0,void 0,function(){var vt,Qt,nt,Tt,Qn,Gt,En,Qn;return(0,l.__generator)(this,function(Or){switch(Or.label){case 0:for(vt=document,Qt=vt.createElement("div"),nt=new Array(de.length),Tt={},be(Qt),Qn=0;Qn<de.length;++Qn)Gt=bn(de[Qn]),Gt.tagName==="DIALOG"&&Gt.show(),En=vt.createElement("div"),be(En),En.appendChild(Gt),Qt.appendChild(En),nt[Qn]=Gt;Or.label=1;case 1:return vt.body?[3,3]:[4,y(50)];case 2:return Or.sent(),[3,1];case 3:vt.body.appendChild(Qt);try{for(Qn=0;Qn<de.length;++Qn)nt[Qn].offsetParent||(Tt[de[Qn]]=!0)}finally{(Ve=Qt.parentNode)===null||Ve===void 0||Ve.removeChild(Qt)}return[2,Tt]}})})}function be(de){de.style.setProperty("display","block","important")}function pt(de,Ve){for(var vt="DOM blockers debug:\n```",Qt=0,nt=Object.keys(de);Qt<nt.length;Qt++){var Tt=nt[Qt];vt+=` `.concat(Tt,":");for(var Gt=0,En=de[Tt];Gt<En.length;Gt++){var Qn=En[Gt];vt+=` `.concat(Ve[Qn]?"\u{1F6AB}":"\u27A1\uFE0F"," ").concat(Qn)}}console.log("".concat(vt,"\n```"))}function We(){for(var de=0,Ve=["rec2020","p3","srgb"];de<Ve.length;de++){var vt=Ve[de];if(matchMedia("(color-gamut: ".concat(vt,")")).matches)return vt}}function Je(){if(ye("inverted"))return!0;if(ye("none"))return!1}function ye(de){return matchMedia("(inverted-colors: ".concat(de,")")).matches}function Qe(){if(ze("active"))return!0;if(ze("none"))return!1}function ze(de){return matchMedia("(forced-colors: ".concat(de,")")).matches}var qe=100;function Pt(){if(matchMedia("(min-monochrome: 0)").matches){for(var de=0;de<=qe;++de)if(matchMedia("(max-monochrome: ".concat(de,")")).matches)return de;throw new Error("Too high value")}}function zt(){if(un("no-preference"))return 0;if(un("high")||un("more"))return 1;if(un("low")||un("less"))return-1;if(un("forced"))return 10}function un(de){return matchMedia("(prefers-contrast: ".concat(de,")")).matches}function hn(){if(xt("reduce"))return!0;if(xt("no-preference"))return!1}function xt(de){return matchMedia("(prefers-reduced-motion: ".concat(de,")")).matches}function _t(){if(qt("high"))return!0;if(qt("standard"))return!1}function qt(de){return matchMedia("(dynamic-range: ".concat(de,")")).matches}var fn=Math,On=function(){return 0};function Gn(){var de=fn.acos||On,Ve=fn.acosh||On,vt=fn.asin||On,Qt=fn.asinh||On,nt=fn.atanh||On,Tt=fn.atan||On,Gt=fn.sin||On,En=fn.sinh||On,Qn=fn.cos||On,Or=fn.cosh||On,Pr=fn.tan||On,ai=fn.tanh||On,xi=fn.exp||On,mi=fn.expm1||On,ei=fn.log1p||On,Qr=function(Zn){return fn.pow(fn.PI,Zn)},Ni=function(Zn){return fn.log(Zn+fn.sqrt(Zn*Zn-1))},ea=function(Zn){return fn.log(Zn+fn.sqrt(Zn*Zn+1))},Qi=function(Zn){return fn.log((1+Zn)/(1-Zn))/2},ir=function(Zn){return fn.exp(Zn)-1/fn.exp(Zn)/2},xr=function(Zn){return(fn.exp(Zn)+1/fn.exp(Zn))/2},di=function(Zn){return fn.exp(Zn)-1},ft=function(Zn){return(fn.exp(2*Zn)-1)/(fn.exp(2*Zn)+1)},zn=function(Zn){return fn.log(1+Zn)};return{acos:de(.12312423423423424),acosh:Ve(1e308),acoshPf:Ni(1e154),asin:vt(.12312423423423424),asinh:Qt(1),asinhPf:ea(1),atanh:nt(.5),atanhPf:Qi(.5),atan:Tt(.5),sin:Gt(-1e300),sinh:En(1),sinhPf:ir(1),cos:Qn(10.000000000123),cosh:Or(1),coshPf:xr(1),tan:Pr(-1e300),tanh:ai(1),tanhPf:ft(1),exp:xi(1),expm1:mi(1),expm1Pf:di(1),log1p:ei(10),log1pPf:zn(10),powPI:Qr(-100)}}var Bn="mmMwWLliI0fiflO&1",Lr={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function An(){return Un(function(de,Ve){for(var vt={},Qt={},nt=0,Tt=Object.keys(Lr);nt<Tt.length;nt++){var Gt=Tt[nt],En=Lr[Gt],Qn=En[0],Or=Qn===void 0?{}:Qn,Pr=En[1],ai=Pr===void 0?Bn:Pr,xi=de.createElement("span");xi.textContent=ai,xi.style.whiteSpace="nowrap";for(var mi=0,ei=Object.keys(Or);mi<ei.length;mi++){var Qr=ei[mi],Ni=Or[Qr];Ni!==void 0&&(xi.style[Qr]=Ni)}vt[Gt]=xi,Ve.appendChild(de.createElement("br")),Ve.appendChild(xi)}for(var ea=0,Qi=Object.keys(Lr);ea<Qi.length;ea++){var Gt=Qi[ea];Qt[Gt]=vt[Gt].getBoundingClientRect().width}return Qt})}function Un(de,Ve){return Ve===void 0&&(Ve=4e3),Tn(function(vt,Qt){var nt=Qt.document,Tt=nt.body,Gt=Tt.style;Gt.width="".concat(Ve,"px"),Gt.webkitTextSizeAdjust=Gt.textSizeAdjust="none",B()?Tt.style.zoom="".concat(1/Qt.devicePixelRatio):X()&&(Tt.style.zoom="reset");var En=nt.createElement("div");return En.textContent=(0,l.__spreadArray)([],Array(Ve/20<<0),!0).map(function(){return"word"}).join(" "),Tt.appendChild(En),de(nt,Tt)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function cr(){var de,Ve=document.createElement("canvas"),vt=(de=Ve.getContext("webgl"))!==null&&de!==void 0?de:Ve.getContext("experimental-webgl");if(vt&&"getExtension"in vt){var Qt=vt.getExtension("WEBGL_debug_renderer_info");if(Qt)return{vendor:(vt.getParameter(Qt.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(vt.getParameter(Qt.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function mr(){return navigator.pdfViewerEnabled}function hr(){var de=new Float32Array(1),Ve=new Uint8Array(de.buffer);return de[0]=1/0,de[0]=de[0]-de[0],Ve[3]}var ar={fonts:Ee,domBlockers:De,fontPreferences:An,audio:it,screenFrame:gn,osCpu:rn,languages:Vt,colorDepth:Kn,deviceMemory:ur,screenResolution:on,hardwareConcurrency:Nn,timezone:kr,sessionStorage:ne,localStorage:fe,indexedDB:K,openDatabase:he,cpuClass:Fe,platform:Nt,plugins:_e,canvas:ge,touchSupport:Pn,vendor:ln,vendorFlavors:pn,cookiesEnabled:Yn,colorGamut:We,invertedColors:Je,forcedColors:Qe,monochrome:Pt,contrast:zt,reducedMotion:hn,hdr:_t,math:Gn,videoCard:cr,pdfViewerEnabled:mr,architecture:hr};function Cr(de){return q(ar,de,[])}var Yr="$ if upgrade to Pro: https://fpjs.dev/pro";function Xr(de){var Ve=ni(de),vt=ki(Ve);return{score:Ve,comment:Yr.replace(/\$/g,"".concat(vt))}}function ni(de){if(Ne())return .4;if(X())return ue()?.5:.3;var Ve=de.platform.value||"";return/^Win/.test(Ve)?.6:/^Mac/.test(Ve)?.5:.7}function ki(de){return Se(.99+.01*de,1e-4)}function zr(de){for(var Ve="",vt=0,Qt=Object.keys(de).sort();vt<Qt.length;vt++){var nt=Qt[vt],Tt=de[nt],Gt=Tt.error?"error":JSON.stringify(Tt.value);Ve+="".concat(Ve?"|":"").concat(nt.replace(/([:|\\])/g,"\\$1"),":").concat(Gt)}return Ve}function Ur(de){return JSON.stringify(de,function(Ve,vt){return vt instanceof Error?L(vt):vt},2)}function jt(de){return C(zr(de))}function sn(de){var Ve,vt=Xr(de);return{get visitorId(){return Ve===void 0&&(Ve=jt(this.components)),Ve},set visitorId(Qt){Ve=Qt},confidence:vt,components:de,version:g}}function Rn(de){return de===void 0&&(de=50),x(de,de*2)}function H(de,Ve){var vt=Date.now();return{get:function(Qt){return(0,l.__awaiter)(this,void 0,void 0,function(){var nt,Tt,Gt;return(0,l.__generator)(this,function(En){switch(En.label){case 0:return nt=Date.now(),[4,de()];case 1:return Tt=En.sent(),Gt=sn(Tt),(Ve||Qt?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Gt.version,` userAgent: `).concat(navigator.userAgent,` timeBetweenLoadAndGet: `).concat(nt-vt,` visitorId: `).concat(Gt.visitorId,` components: `).concat(Ur(Tt),"\n```")),[2,Gt]}})})}}}function Be(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var de=new XMLHttpRequest;de.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(g,"/npm-monitoring"),!0),de.send()}catch(Ve){console.error(Ve)}}function wn(de){var Ve=de===void 0?{}:de,vt=Ve.delayFallback,Qt=Ve.debug,nt=Ve.monitoring,Tt=nt===void 0?!0:nt;return(0,l.__awaiter)(this,void 0,void 0,function(){var Gt;return(0,l.__generator)(this,function(En){switch(En.label){case 0:return Tt&&Be(),[4,Rn(vt)];case 1:return En.sent(),Gt=Cr({debug:Qt}),[2,H(Gt,Qt)]}})})}var bi={load:wn,hashComponents:jt,componentsToDebugString:Ur},Oi=null},56606:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.bufferWhen=void 0;var l=u(65212),g=u(5717),y=u(17214),x=u(19724);function f(p){return l.operate(function(h,E){var v=null,m=null,S=function(){m?.unsubscribe();var d=v;v=[],d&&E.next(d),x.innerFrom(p()).subscribe(m=y.createOperatorSubscriber(E,S,g.noop))};S(),h.subscribe(y.createOperatorSubscriber(E,function(d){return v?.push(d)},function(){v&&E.next(v),E.complete()},void 0,function(){return v=m=null}))})}w.bufferWhen=f},56612:(Ge,w,u)=>{var l=u(78452),g=u(96540),y=u(10207);function x(d,O,R,C){Object.defineProperty(d,O,{get:R,set:C,enumerable:!0,configurable:!0})}function f(d){return d&&d.__esModule?d.default:d}x(Ge.exports,"Slot",()=>p),x(Ge.exports,"Slottable",()=>E),x(Ge.exports,"Root",()=>S);const p=g.forwardRef((d,O)=>{const{children:R,...C}=d,L=g.Children.toArray(R),j=L.find(v);if(j){const I=j.props.children,U=L.map($=>$===j?g.Children.count(I)>1?g.Children.only(null):g.isValidElement(I)?I.props.children:null:$);return g.createElement(h,f(l)({},C,{ref:O}),g.isValidElement(I)?g.cloneElement(I,void 0,U):null)}return g.createElement(h,f(l)({},C,{ref:O}),R)});p.displayName="Slot";const h=g.forwardRef((d,O)=>{const{children:R,...C}=d;return g.isValidElement(R)?g.cloneElement(R,{...m(C,R.props),ref:O?y.composeRefs(O,R.ref):R.ref}):g.Children.count(R)>1?g.Children.only(null):null});h.displayName="SlotClone";const E=({children:d})=>g.createElement(g.Fragment,null,d);function v(d){return g.isValidElement(d)&&d.type===E}function m(d,O){const R={...O};for(const C in O){const L=d[C],j=O[C];/^on[A-Z]/.test(C)?L&&j?R[C]=(...U)=>{j(...U),L(...U)}:L&&(R[C]=L):C==="style"?R[C]={...L,...j}:C==="className"&&(R[C]=[L,j].filter(Boolean).join(" "))}return{...d,...R}}const S=p},56737:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p});var l=u(96540),g=function(h){return(h+1)%1e6};function y(){var h=(0,l.useReducer)(g,0),E=h[1];return E}function x(h,E){return typeof h=="function"?h.length?h(E):h():h}function f(h){var E=(0,l.useRef)(x(h)),v=y();return(0,l.useMemo)(function(){return[function(){return E.current},function(m){E.current=x(m,E.current),v()}]},[])}function p(h,E,v){h===void 0&&(h=0),E===void 0&&(E=null),v===void 0&&(v=null);var m=x(h);typeof m!="number"&&console.error("initialValue has to be a number, got "+typeof h),typeof v=="number"?m=Math.max(m,v):v!==null&&console.error("min has to be a number, got "+typeof v),typeof E=="number"?m=Math.min(m,E):E!==null&&console.error("max has to be a number, got "+typeof E);var S=f(m),d=S[0],O=S[1];return[d(),(0,l.useMemo)(function(){var R=function(C){var L=d(),j=x(C,L);L!==j&&(typeof v=="number"&&(j=Math.max(j,v)),typeof E=="number"&&(j=Math.min(j,E)),L!==j&&O(j))};return{get:d,set:R,inc:function(C){C===void 0&&(C=1);var L=x(C,d());typeof L!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof L),R(function(j){return j+L})},dec:function(C){C===void 0&&(C=1);var L=x(C,d());typeof L!="number"&&console.error("delta has to be a number or function returning a number, got "+typeof L),R(function(j){return j-L})},reset:function(C){C===void 0&&(C=m);var L=x(C,d());typeof L!="number"&&console.error("value has to be a number or function returning a number, got "+typeof L),m=L,R(L)}}},[m,v,E])]}},56855:(Ge,w,u)=>{"use strict";var l;u.d(w,{A:()=>v});var g=u(34297),y=u(87826),x=u(96540);function f(){var m=(0,y.A)({},l||(l=u.t(x,2)));return m.useId}var p=0;function h(){}var E=f();const v=E?function(S){var d=E();return S||d}:function(S){var d=x.useState("ssr-id"),O=(0,g.A)(d,2),R=O[0],C=O[1];return x.useEffect(function(){var L=p;p+=1,C("rc_unique_".concat(L))},[]),S||R}},56978:(Ge,w,u)=>{"use strict";u.d(w,{B:()=>x});var l=u(44838),g=u(92908),y=u(64878);function x(f,p){return p===void 0&&(p=l.E),(0,g.N)(function(h,E){var v=null,m=null,S=null,d=function(){if(v){v.unsubscribe(),v=null;var R=m;m=null,E.next(R)}};function O(){var R=S+f,C=p.now();if(C<R){v=this.schedule(void 0,R-C),E.add(v);return}d()}h.subscribe((0,y._)(E,function(R){m=R,S=p.now(),v||(v=p.schedule(O,f),E.add(v))},function(){d(),E.complete()},void 0,function(){m=v=null}))})}},57048:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{BIGINT_FORMAT_RANGES:()=>yt,Class:()=>ke,NUMBER_FORMAT_RANGES:()=>je,aborted:()=>Mt,allowsEval:()=>Q,assert:()=>f,assertEqual:()=>l,assertIs:()=>y,assertNever:()=>x,assertNotEqual:()=>g,assignProp:()=>L,cached:()=>v,captureStackTrace:()=>Se,cleanEnum:()=>me,cleanRegex:()=>S,clone:()=>B,cloneDef:()=>I,createTransparentProxy:()=>ue,defineLazy:()=>R,esc:()=>re,escapeRegex:()=>T,extend:()=>Ne,finalizeIssue:()=>bn,floatSafeRemainder:()=>d,getElementAtPath:()=>U,getEnumValues:()=>p,getLengthableOrigin:()=>Ct,getParsedType:()=>q,getSizableOrigin:()=>$t,isObject:()=>z,isPlainObject:()=>ce,issue:()=>Z,joinValues:()=>h,jsonStringifyReplacer:()=>E,merge:()=>it,mergeDefs:()=>j,normalizeParams:()=>X,nullish:()=>m,numKeys:()=>se,objectClone:()=>C,omit:()=>Ze,optionalKeys:()=>Te,partial:()=>Rt,pick:()=>tt,prefixIssues:()=>Wt,primitiveTypes:()=>A,promiseAllObject:()=>$,propertyKeyTypes:()=>te,randomString:()=>ee,required:()=>Dn,stringifyPrimitive:()=>ie,unwrapMessage:()=>Tn});function l(Ee){return Ee}function g(Ee){return Ee}function y(Ee){}function x(Ee){throw new Error}function f(Ee){}function p(Ee){const _e=Object.values(Ee).filter(Me=>typeof Me=="number");return Object.entries(Ee).filter(([Me,lt])=>_e.indexOf(+Me)===-1).map(([Me,lt])=>lt)}function h(Ee,_e="|"){return Ee.map(ge=>ie(ge)).join(_e)}function E(Ee,_e){return typeof _e=="bigint"?_e.toString():_e}function v(Ee){return{get value(){{const ge=Ee();return Object.defineProperty(this,"value",{value:ge}),ge}throw new Error("cached value already set")}}}function m(Ee){return Ee==null}function S(Ee){const _e=Ee.startsWith("^")?1:0,ge=Ee.endsWith("$")?Ee.length-1:Ee.length;return Ee.slice(_e,ge)}function d(Ee,_e){const ge=(Ee.toString().split(".")[1]||"").length,Me=_e.toString();let lt=(Me.split(".")[1]||"").length;if(lt===0&&/\d?e-\d?/.test(Me)){const nn=Me.match(/\d?e-(\d?)/);nn?.[1]&&(lt=Number.parseInt(nn[1]))}const Ft=ge>lt?ge:lt,Et=Number.parseInt(Ee.toFixed(Ft).replace(".","")),Zt=Number.parseInt(_e.toFixed(Ft).replace(".",""));return Et%Zt/10**Ft}const O=Symbol("evaluating");function R(Ee,_e,ge){let Me;Object.defineProperty(Ee,_e,{get(){if(Me!==O)return Me===void 0&&(Me=O,Me=ge()),Me},set(lt){Object.defineProperty(Ee,_e,{value:lt})},configurable:!0})}function C(Ee){return Object.create(Object.getPrototypeOf(Ee),Object.getOwnPropertyDescriptors(Ee))}function L(Ee,_e,ge){Object.defineProperty(Ee,_e,{value:ge,writable:!0,enumerable:!0,configurable:!0})}function j(...Ee){const _e={};for(const ge of Ee){const Me=Object.getOwnPropertyDescriptors(ge);Object.assign(_e,Me)}return Object.defineProperties({},_e)}function I(Ee){return j(Ee._zod.def)}function U(Ee,_e){return _e?_e.reduce((ge,Me)=>ge?.[Me],Ee):Ee}function $(Ee){const _e=Object.keys(Ee),ge=_e.map(Me=>Ee[Me]);return Promise.all(ge).then(Me=>{const lt={};for(let Ft=0;Ft<_e.length;Ft++)lt[_e[Ft]]=Me[Ft];return lt})}function ee(Ee=10){const _e="abcdefghijklmnopqrstuvwxyz";let ge="";for(let Me=0;Me<Ee;Me++)ge+=_e[Math.floor(Math.random()*_e.length)];return ge}function re(Ee){return JSON.stringify(Ee)}const Se="captureStackTrace"in Error?Error.captureStackTrace:(...Ee)=>{};function z(Ee){return typeof Ee=="object"&&Ee!==null&&!Array.isArray(Ee)}const Q=v(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const Ee=Function;return new Ee(""),!0}catch{return!1}});function ce(Ee){if(z(Ee)===!1)return!1;const _e=Ee.constructor;if(_e===void 0)return!0;const ge=_e.prototype;return!(z(ge)===!1||Object.prototype.hasOwnProperty.call(ge,"isPrototypeOf")===!1)}function se(Ee){let _e=0;for(const ge in Ee)Object.prototype.hasOwnProperty.call(Ee,ge)&&_e++;return _e}const q=Ee=>{const _e=typeof Ee;switch(_e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(Ee)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(Ee)?"array":Ee===null?"null":Ee.then&&typeof Ee.then=="function"&&Ee.catch&&typeof Ee.catch=="function"?"promise":typeof Map<"u"&&Ee instanceof Map?"map":typeof Set<"u"&&Ee instanceof Set?"set":typeof Date<"u"&&Ee instanceof Date?"date":typeof File<"u"&&Ee instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${_e}`)}},te=new Set(["string","number","symbol"]),A=new Set(["string","number","bigint","boolean","symbol","undefined"]);function T(Ee){return Ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function B(Ee,_e,ge){const Me=new Ee._zod.constr(_e??Ee._zod.def);return(!_e||ge?.parent)&&(Me._zod.parent=Ee),Me}function X(Ee){const _e=Ee;if(!_e)return{};if(typeof _e=="string")return{error:()=>_e};if(_e?.message!==void 0){if(_e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");_e.error=_e.message}return delete _e.message,typeof _e.error=="string"?{..._e,error:()=>_e.error}:_e}function ue(Ee){let _e;return new Proxy({},{get(ge,Me,lt){return _e??(_e=Ee()),Reflect.get(_e,Me,lt)},set(ge,Me,lt,Ft){return _e??(_e=Ee()),Reflect.set(_e,Me,lt,Ft)},has(ge,Me){return _e??(_e=Ee()),Reflect.has(_e,Me)},deleteProperty(ge,Me){return _e??(_e=Ee()),Reflect.deleteProperty(_e,Me)},ownKeys(ge){return _e??(_e=Ee()),Reflect.ownKeys(_e)},getOwnPropertyDescriptor(ge,Me){return _e??(_e=Ee()),Reflect.getOwnPropertyDescriptor(_e,Me)},defineProperty(ge,Me,lt){return _e??(_e=Ee()),Reflect.defineProperty(_e,Me,lt)}})}function ie(Ee){return typeof Ee=="bigint"?Ee.toString()+"n":typeof Ee=="string"?`"${Ee}"`:`${Ee}`}function Te(Ee){return Object.keys(Ee).filter(_e=>Ee[_e]._zod.optin==="optional"&&Ee[_e]._zod.optout==="optional")}const je={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},yt={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tt(Ee,_e){const ge=Ee._zod.def,Me=j(Ee._zod.def,{get shape(){const lt={};for(const Ft in _e){if(!(Ft in ge.shape))throw new Error(`Unrecognized key: "${Ft}"`);_e[Ft]&&(lt[Ft]=ge.shape[Ft])}return L(this,"shape",lt),lt},checks:[]});return B(Ee,Me)}function Ze(Ee,_e){const ge=Ee._zod.def,Me=j(Ee._zod.def,{get shape(){const lt={...Ee._zod.def.shape};for(const Ft in _e){if(!(Ft in ge.shape))throw new Error(`Unrecognized key: "${Ft}"`);_e[Ft]&&delete lt[Ft]}return L(this,"shape",lt),lt},checks:[]});return B(Ee,Me)}function Ne(Ee,_e){if(!ce(_e))throw new Error("Invalid input to extend: expected a plain object");const ge=j(Ee._zod.def,{get shape(){const Me={...Ee._zod.def.shape,..._e};return L(this,"shape",Me),Me},checks:[]});return B(Ee,ge)}function it(Ee,_e){const ge=j(Ee._zod.def,{get shape(){const Me={...Ee._zod.def.shape,..._e._zod.def.shape};return L(this,"shape",Me),Me},get catchall(){return _e._zod.def.catchall},checks:[]});return B(Ee,ge)}function Rt(Ee,_e,ge){const Me=j(_e._zod.def,{get shape(){const lt=_e._zod.def.shape,Ft={...lt};if(ge)for(const Et in ge){if(!(Et in lt))throw new Error(`Unrecognized key: "${Et}"`);ge[Et]&&(Ft[Et]=Ee?new Ee({type:"optional",innerType:lt[Et]}):lt[Et])}else for(const Et in lt)Ft[Et]=Ee?new Ee({type:"optional",innerType:lt[Et]}):lt[Et];return L(this,"shape",Ft),Ft},checks:[]});return B(_e,Me)}function Dn(Ee,_e,ge){const Me=j(_e._zod.def,{get shape(){const lt=_e._zod.def.shape,Ft={...lt};if(ge)for(const Et in ge){if(!(Et in Ft))throw new Error(`Unrecognized key: "${Et}"`);ge[Et]&&(Ft[Et]=new Ee({type:"nonoptional",innerType:lt[Et]}))}else for(const Et in lt)Ft[Et]=new Ee({type:"nonoptional",innerType:lt[Et]});return L(this,"shape",Ft),Ft},checks:[]});return B(_e,Me)}function Mt(Ee,_e=0){for(let ge=_e;ge<Ee.issues.length;ge++)if(Ee.issues[ge]?.continue!==!0)return!0;return!1}function Wt(Ee,_e){return _e.map(ge=>{var Me;return(Me=ge).path??(Me.path=[]),ge.path.unshift(Ee),ge})}function Tn(Ee){return typeof Ee=="string"?Ee:Ee?.message}function bn(Ee,_e,ge){const Me={...Ee,path:Ee.path??[]};if(!Ee.message){const lt=Tn(Ee.inst?._zod.def?.error?.(Ee))??Tn(_e?.error?.(Ee))??Tn(ge.customError?.(Ee))??Tn(ge.localeError?.(Ee))??"Invalid input";Me.message=lt}return delete Me.inst,delete Me.continue,_e?.reportInput||delete Me.input,Me}function $t(Ee){return Ee instanceof Set?"set":Ee instanceof Map?"map":Ee instanceof File?"file":"unknown"}function Ct(Ee){return Array.isArray(Ee)?"array":typeof Ee=="string"?"string":"unknown"}function Z(...Ee){const[_e,ge,Me]=Ee;return typeof _e=="string"?{message:_e,code:"custom",input:ge,inst:Me}:{..._e}}function me(Ee){return Object.entries(Ee).filter(([_e,ge])=>Number.isNaN(Number.parseInt(_e,10))).map(_e=>_e[1])}class ke{constructor(..._e){}}},57406:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.partition=void 0;var l=u(14120),g=u(85934),y=u(19724);function x(f,p,h){return[g.filter(p,h)(y.innerFrom(f)),g.filter(l.not(p,h))(y.innerFrom(f))]}w.partition=x},57516:(Ge,w,u)=>{"use strict";u.d(w,{I:()=>f});var l=u(31635),g=u(81160),y=Array.isArray;function x(p,h){return y(h)?p.apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(h))):p(h)}function f(p){return(0,g.T)(function(h){return x(p,h)})}},57522:Ge=>{function w(u){"@babel/helpers - typeof";return Ge.exports=w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w(u)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},57532:(Ge,w,u)=>{"use strict";u.d(w,{$:()=>h});var l=u(76464),g=u(16126),y=u(38975),x=u(38495),f=u(41560),p=u(58307);function h(E,v){var m=arguments.length>=2;return function(S){return S.pipe(E?(0,g.p)(function(d,O){return E(d,O,S)}):p.D,(0,y.s)(1),m?(0,x.U)(v):(0,f.v)(function(){return new l.G}))}}},57746:(Ge,w)=>{"use strict";var u;u={value:!0};for(var l=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),g={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},y={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:l?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},x={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},f=1;f<20;f++)x["f"+f]=111+f;function p(O,R,C){R&&!("byKey"in R)&&(C=R,R=null),Array.isArray(O)||(O=[O]);var L=O.map(function(U){return v(U,R)}),j=function($){return L.some(function(ee){return m(ee,$)})},I=C==null?j:j(C);return I}function h(O,R){return p(O,R)}function E(O,R){return p(O,{byKey:!0},R)}function v(O,R){var C=R&&R.byKey,L={};O=O.replace("++","+add");var j=O.split("+"),I=j.length;for(var U in g)L[g[U]]=!1;var $=!0,ee=!1,re=void 0;try{for(var Se=j[Symbol.iterator](),z;!($=(z=Se.next()).done);$=!0){var Q=z.value,ce=Q.endsWith("?")&&Q.length>1;ce&&(Q=Q.slice(0,-1));var se=d(Q),q=g[se];if(Q.length>1&&!q&&!y[Q]&&!x[se])throw new TypeError('Unknown modifier: "'+Q+'"');(I===1||!q)&&(C?L.key=se:L.which=S(Q)),q&&(L[q]=ce?null:!0)}}catch(te){ee=!0,re=te}finally{try{!$&&Se.return&&Se.return()}finally{if(ee)throw re}}return L}function m(O,R){for(var C in O){var L=O[C],j=void 0;if(L!=null&&(C==="key"&&R.key!=null?j=R.key.toLowerCase():C==="which"?j=L===91&&R.which===93?91:R.which:j=R[C],!(j==null&&L===!1)&&j!==L))return!1}return!0}function S(O){O=d(O);var R=x[O]||O.toUpperCase().charCodeAt(0);return R}function d(O){return O=O.toLowerCase(),O=y[O]||O,O}u=p,u=p,u=h,w.Sn=E,u=v,u=m,u=S,u=d},58424:(Ge,w,u)=>{"use strict";u.d(w,{J:()=>l});class l{constructor(y=[]){this.content=[],this.indent=0,this&&(this.args=y)}indented(y){this.indent+=1,y(this),this.indent-=1}write(y){if(typeof y=="function"){y(this,{execution:"sync"}),y(this,{execution:"async"});return}const f=y.split(` `).filter(E=>E),p=Math.min(...f.map(E=>E.length-E.trimStart().length)),h=f.map(E=>E.slice(p)).map(E=>" ".repeat(this.indent*2)+E);for(const E of h)this.content.push(E)}compile(){const y=Function,x=this?.args,p=[...(this?.content??[""]).map(h=>` ${h}`)];return new y(...x,p.join(` `))}}},58493:(Ge,w,u)=>{"use strict";/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l=u(96540);function g(d,O){return d===O&&(d!==0||1/d===1/O)||d!==d&&O!==O}var y=typeof Object.is=="function"?Object.is:g,x=l.useState,f=l.useEffect,p=l.useLayoutEffect,h=l.useDebugValue;function E(d,O){var R=O(),C=x({inst:{value:R,getSnapshot:O}}),L=C[0].inst,j=C[1];return p(function(){L.value=R,L.getSnapshot=O,v(L)&&j({inst:L})},[d,R,O]),f(function(){return v(L)&&j({inst:L}),d(function(){v(L)&&j({inst:L})})},[d]),h(R),R}function v(d){var O=d.getSnapshot;d=d.value;try{var R=O();return!y(d,R)}catch{return!0}}function m(d,O){return O()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:E;w.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:S},58521:(Ge,w,u)=>{"use strict";u.d(w,{a:()=>x});var l=u(75156),g=u(92516);const y=["years","months","weeks","days","hours","minutes","seconds"];function x(p,h){const E=(0,g.q)(),v=h?.locale??E.locale??l.c,m=h?.format??y,S=h?.zero??!1,d=h?.delimiter??" ";return v.formatDistance?m.reduce((R,C)=>{const L=`x${C.replace(/(^.)/,I=>I.toUpperCase())}`,j=p[C];return j!==void 0&&(S||p[C])?R.concat(v.formatDistance(L,j)):R},[]).join(d):""}var f=null},58667:(Ge,w,u)=>{"use strict";u.d(w,{x:()=>y});var l=u(12059),g=u(61209);function y(x){return(0,g.T)(x?.[l.l])}},58799:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.defaultIfEmpty=void 0;var l=u(65212),g=u(17214);function y(x){return l.operate(function(f,p){var h=!1;f.subscribe(g.createOperatorSubscriber(p,function(E){h=!0,p.next(E)},function(){h||p.next(x),p.complete()}))})}w.defaultIfEmpty=y},59099:(Ge,w,u)=>{"use strict";u.d(w,{M:()=>f});var l=u(61209),g=u(92908),y=u(64878),x=u(58307);function f(p,h,E){var v=(0,l.T)(p)||h||E?{next:p,error:h,complete:E}:p;return v?(0,g.N)(function(m,S){var d;(d=v.subscribe)===null||d===void 0||d.call(v);var O=!0;m.subscribe((0,y._)(S,function(R){var C;(C=v.next)===null||C===void 0||C.call(v,R),S.next(R)},function(){var R;O=!1,(R=v.complete)===null||R===void 0||R.call(v),S.complete()},function(R){var C;O=!1,(C=v.error)===null||C===void 0||C.call(v,R),S.error(R)},function(){var R,C;O&&((R=v.unsubscribe)===null||R===void 0||R.call(v)),(C=v.finalize)===null||C===void 0||C.call(v)}))}):x.D}},59328:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.EmptyError=void 0;var l=u(9619);w.EmptyError=l.createErrorClass(function(g){return function(){g(this),this.name="EmptyError",this.message="no elements in sequence"}})},59511:(Ge,w,u)=>{/*! * SystemJS 6.15.1 */(function(){function l(bn,$t){return($t||"")+" (SystemJS Error#"+bn+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+bn+")"}var g=typeof Symbol<"u",y=typeof self<"u",x=typeof document<"u",f=y?self:u.g,p;if(x){var h=document.querySelector("base[href]");h&&(p=h.href)}if(!p&&typeof location<"u"){p=location.href.split("#")[0].split("?")[0];var E=p.lastIndexOf("/");E!==-1&&(p=p.slice(0,E+1))}var v=/\\/g;function m(bn,$t){if(bn.indexOf("\\")!==-1&&(bn=bn.replace(v,"/")),bn[0]==="/"&&bn[1]==="/")return $t.slice(0,$t.indexOf(":")+1)+bn;if(bn[0]==="."&&(bn[1]==="/"||bn[1]==="."&&(bn[2]==="/"||bn.length===2&&(bn+="/"))||bn.length===1&&(bn+="/"))||bn[0]==="/"){var Ct=$t.slice(0,$t.indexOf(":")+1),Z;if($t[Ct.length+1]==="/"?Ct!=="file:"?(Z=$t.slice(Ct.length+2),Z=Z.slice(Z.indexOf("/")+1)):Z=$t.slice(8):Z=$t.slice(Ct.length+($t[Ct.length]==="/")),bn[0]==="/")return $t.slice(0,$t.length-Z.length-1)+bn;for(var me=Z.slice(0,Z.lastIndexOf("/")+1)+bn,ke=[],Ee=-1,_e=0;_e<me.length;_e++)Ee!==-1?me[_e]==="/"&&(ke.push(me.slice(Ee,_e+1)),Ee=-1):me[_e]==="."?me[_e+1]==="."&&(me[_e+2]==="/"||_e+2===me.length)?(ke.pop(),_e+=2):me[_e+1]==="/"||_e+1===me.length?_e+=1:Ee=_e:Ee=_e;return Ee!==-1&&ke.push(me.slice(Ee)),$t.slice(0,$t.length-Z.length)+ke.join("")}}function S(bn,$t){return m(bn,$t)||(bn.indexOf(":")!==-1?bn:m("./"+bn,$t))}function d(bn,$t,Ct,Z,me){for(var ke in bn){var Ee=m(ke,Ct)||ke,_e=bn[ke];if(typeof _e=="string"){var ge=j(Z,m(_e,Ct)||_e,me);ge?$t[Ee]=ge:L("W1",ke,_e,"bare specifier did not resolve")}}}function O(bn,$t,Ct){bn.imports&&d(bn.imports,Ct.imports,$t,Ct,null);var Z;for(Z in bn.scopes||{}){var me=S(Z,$t);d(bn.scopes[Z],Ct.scopes[me]||(Ct.scopes[me]={}),$t,Ct,me)}for(Z in bn.depcache||{})Ct.depcache[S(Z,$t)]=bn.depcache[Z];for(Z in bn.integrity||{})Ct.integrity[S(Z,$t)]=bn.integrity[Z]}function R(bn,$t){if($t[bn])return bn;var Ct=bn.length;do{var Z=bn.slice(0,Ct+1);if(Z in $t)return Z}while((Ct=bn.lastIndexOf("/",Ct-1))!==-1)}function C(bn,$t){var Ct=R(bn,$t);if(Ct){var Z=$t[Ct];if(Z===null)return;if(bn.length>Ct.length&&Z[Z.length-1]!=="/")L("W2",Ct,Z,"should have a trailing '/'");else return Z+bn.slice(Ct.length)}}function L(bn,$t,Ct,Z){console.warn(l(bn,"Package target "+Z+", resolving target '"+Ct+"' for "+$t))}function j(bn,$t,Ct){for(var Z=bn.scopes,me=Ct&&R(Ct,Z);me;){var ke=C($t,Z[me]);if(ke)return ke;me=R(me.slice(0,me.lastIndexOf("/")),Z)}return C($t,bn.imports)||$t.indexOf(":")!==-1&&$t}var I=g&&Symbol.toStringTag,U=g?Symbol():"@";function $(){this[U]={}}var ee=$.prototype;ee.import=function(bn,$t,Ct){var Z=this;return $t&&typeof $t=="object"&&(Ct=$t,$t=void 0),Promise.resolve(Z.prepareImport()).then(function(){return Z.resolve(bn,$t,Ct)}).then(function(me){var ke=Q(Z,me,void 0,Ct);return ke.C||se(Z,ke)})},ee.createContext=function(bn){var $t=this;return{url:bn,resolve:function(Ct,Z){return Promise.resolve($t.resolve(Ct,Z||bn))}}},ee.onload=function(){};function re(bn){return bn.id}function Se(bn,$t,Ct,Z){if(bn.onload(Ct,$t.id,$t.d&&$t.d.map(re),!!Z),Ct)throw Ct}var z;ee.register=function(bn,$t,Ct){z=[bn,$t,Ct]},ee.getRegister=function(){var bn=z;return z=void 0,bn};function Q(bn,$t,Ct,Z){var me=bn[U][$t];if(me)return me;var ke=[],Ee=Object.create(null);I&&Object.defineProperty(Ee,I,{value:"Module"});var _e=Promise.resolve().then(function(){return bn.instantiate($t,Ct,Z)}).then(function(Me){if(!Me)throw Error(l(2,"Module "+$t+" did not instantiate"));function lt(Et,Zt){me.h=!0;var nn=!1;if(typeof Et=="string")(!(Et in Ee)||Ee[Et]!==Zt)&&(Ee[Et]=Zt,nn=!0);else{for(var Pn in Et){var Zt=Et[Pn];(!(Pn in Ee)||Ee[Pn]!==Zt)&&(Ee[Pn]=Zt,nn=!0)}Et&&Et.__esModule&&(Ee.__esModule=Et.__esModule)}if(nn)for(var rn=0;rn<ke.length;rn++){var Vt=ke[rn];Vt&&Vt(Ee)}return Zt}var Ft=Me[1](lt,Me[1].length===2?{import:function(Et,Zt){return bn.import(Et,$t,Zt)},meta:bn.createContext($t)}:void 0);return me.e=Ft.execute||function(){},[Me[0],Ft.setters||[],Me[2]||[]]},function(Me){throw me.e=null,me.er=Me,Se(bn,me,Me,!0),Me}),ge=_e.then(function(Me){return Promise.all(Me[0].map(function(lt,Ft){var Et=Me[1][Ft],Zt=Me[2][Ft];return Promise.resolve(bn.resolve(lt,$t)).then(function(nn){var Pn=Q(bn,nn,$t,Zt);return Promise.resolve(Pn.I).then(function(){return Et&&(Pn.i.push(Et),(Pn.h||!Pn.I)&&Et(Pn.n)),Pn})})})).then(function(lt){me.d=lt})});return me=bn[U][$t]={id:$t,i:ke,n:Ee,m:Z,I:_e,L:ge,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function ce(bn,$t,Ct,Z){if(!Z[$t.id])return Z[$t.id]=!0,Promise.resolve($t.L).then(function(){return(!$t.p||$t.p.e===null)&&($t.p=Ct),Promise.all($t.d.map(function(me){return ce(bn,me,Ct,Z)}))}).catch(function(me){throw $t.er||($t.e=null,Se(bn,$t,me,!1)),me})}function se(bn,$t){return $t.C=ce(bn,$t,$t,{}).then(function(){return te(bn,$t,{})}).then(function(){return $t.n})}var q=Object.freeze(Object.create(null));function te(bn,$t,Ct){if(Ct[$t.id])return;if(Ct[$t.id]=!0,!$t.e){if($t.er)throw $t.er;return $t.E?$t.E:void 0}var Z=$t.e;$t.e=null;var me;if($t.d.forEach(function(Ee){try{var _e=te(bn,Ee,Ct);_e&&(me=me||[]).push(_e)}catch(ge){throw $t.er=ge,Se(bn,$t,ge,!1),ge}}),me)return Promise.all(me).then(ke);return ke();function ke(){try{var Ee=Z.call(q);if(Ee)return Ee=Ee.then(function(){$t.C=$t.n,$t.E=null,Se(bn,$t,null,!0)},function(_e){throw $t.er=_e,$t.E=null,Se(bn,$t,_e,!0),_e}),$t.E=Ee;$t.C=$t.n,$t.L=$t.I=void 0}catch(_e){throw $t.er=_e,_e}finally{Se(bn,$t,$t.er,!0)}}}f.System=new $;var A=Promise.resolve(),T={imports:{},scopes:{},depcache:{},integrity:{}},B=x;ee.prepareImport=function(bn){return(B||bn)&&(X(),B=!1),A},ee.getImportMap=function(){return JSON.parse(JSON.stringify(T))},x&&(X(),window.addEventListener("DOMContentLoaded",X)),ee.addImportMap=function(bn,$t){O(bn,$t||p,T)};function X(){[].forEach.call(document.querySelectorAll("script"),function(bn){if(!bn.sp){if(bn.type==="systemjs-module"){if(bn.sp=!0,!bn.src)return;System.import(bn.src.slice(0,7)==="import:"?bn.src.slice(7):S(bn.src,p)).catch(function(Ct){if(Ct.message.indexOf("https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3")>-1){var Z=document.createEvent("Event");Z.initEvent("error",!1,!1),bn.dispatchEvent(Z)}return Promise.reject(Ct)})}else if(bn.type==="systemjs-importmap"){bn.sp=!0;var $t=bn.src?(System.fetch||fetch)(bn.src,{integrity:bn.integrity,priority:bn.fetchPriority,passThrough:!0}).then(function(Ct){if(!Ct.ok)throw Error("Invalid status code: "+Ct.status);return Ct.text()}).catch(function(Ct){return Ct.message=l("W4","Error fetching systemjs-import map "+bn.src)+` `+Ct.message,console.warn(Ct),typeof bn.onerror=="function"&&bn.onerror(),"{}"}):bn.innerHTML;A=A.then(function(){return $t}).then(function(Ct){ue(T,Ct,bn.src||p)})}}})}function ue(bn,$t,Ct){var Z={};try{Z=JSON.parse($t)}catch{console.warn(Error(l("W5","systemjs-importmap contains invalid JSON")+` `+$t+` `))}O(Z,Ct,bn)}if(x){window.addEventListener("error",function(bn){Ze=bn.filename,Ne=bn.error});var ie=location.origin}ee.createScript=function(bn){var $t=document.createElement("script");$t.async=!0,bn.indexOf(ie+"/")&&($t.crossOrigin="anonymous");var Ct=T.integrity[bn];return Ct&&($t.integrity=Ct),$t.src=bn,$t};var Te,je,yt={},tt=ee.register;ee.register=function(bn,$t){if(x&&document.readyState==="loading"&&typeof bn!="string"){var Ct=document.querySelectorAll("script[src]"),Z=Ct[Ct.length-1];if(Z){Z.src,Te=bn;var me=this;je=setTimeout(function(){yt[Z.src]=[bn,$t],me.import(Z.src)})}}else Te=void 0;return tt.call(this,bn,$t)};var Ze,Ne;ee.instantiate=function(bn,$t){var Ct=yt[bn];if(Ct)return delete yt[bn],Ct;var Z=this;return Promise.resolve(ee.createScript(bn)).then(function(me){return new Promise(function(ke,Ee){me.addEventListener("error",function(){Ee(Error(l(3,"Error loading "+bn+($t?" from "+$t:""))))}),me.addEventListener("load",function(){if(document.head.removeChild(me),Ze===bn)Ee(Ne);else{var _e=Z.getRegister(bn);_e&&_e[0]===Te&&clearTimeout(je),ke(_e)}}),document.head.appendChild(me)})})},ee.shouldFetch=function(){return!1},typeof fetch<"u"&&(ee.fetch=fetch);var it=ee.instantiate,Rt=/^(text|application)\/(x-)?javascript(;|$)/;ee.instantiate=function(bn,$t,Ct){var Z=this;return this.shouldFetch(bn,$t,Ct)?this.fetch(bn,{credentials:"same-origin",integrity:T.integrity[bn],meta:Ct}).then(function(me){if(!me.ok)throw Error(l(7,me.status+" "+me.statusText+", loading "+bn+($t?" from "+$t:"")));var ke=me.headers.get("content-type");if(!ke||!Rt.test(ke))throw Error(l(4,'Unknown Content-Type "'+ke+'", loading '+bn+($t?" from "+$t:"")));return me.text().then(function(Ee){return Ee.indexOf("//# sourceURL=")<0&&(Ee+=` //# sourceURL=`+bn),(0,eval)(Ee),Z.getRegister(bn)})}):it.apply(this,arguments)},ee.resolve=function(bn,$t){return $t=$t||!1||p,j(T,m(bn,$t)||bn,$t)||Dn(bn,$t)};function Dn(bn,$t){throw Error(l(8,"Unable to resolve bare specifier '"+bn+($t?"' from "+$t:"'")))}var Mt=ee.instantiate;ee.instantiate=function(bn,$t,Ct){var Z=T.depcache[bn];if(Z)for(var me=0;me<Z.length;me++)Q(this,this.resolve(Z[me],bn),bn);return Mt.call(this,bn,$t,Ct)},y&&typeof importScripts=="function"&&(ee.instantiate=function(bn){var $t=this;return Promise.resolve().then(function(){return importScripts(bn),$t.getRegister(bn)})}),function(bn){var $t=bn.System.constructor.prototype,Ct,Z,me;function ke(Et){var Zt=0,nn,Pn;for(var rn in bn)if(!Ft(rn)){if(Zt===0&&rn!==Ct||Zt===1&&rn!==Z)return rn;nn?(me=rn,Pn=Et&&Pn||rn):nn=rn===me,Zt++}return Pn}function Ee(){Ct=Z=void 0;for(var Et in bn)Ft(Et)||(Ct?Z||(Z=Et):Ct=Et,me=Et);return me}var _e=$t.import;$t.import=function(Et,Zt,nn){return Ee(),_e.call(this,Et,Zt,nn)};var ge=[[],function(){return{}}],Me=$t.getRegister;$t.getRegister=function(){var Et=Me.call(this);if(Et)return Et;var Zt=ke(this.firstGlobalProp);if(!Zt)return ge;var nn;try{nn=bn[Zt]}catch{return ge}return[[],function(Pn){return{execute:function(){Pn(nn),Pn({default:nn,__useDefault:!0})}}}]};var lt=typeof navigator<"u"&&navigator.userAgent.indexOf("Trident")!==-1;function Ft(Et){return!bn.hasOwnProperty(Et)||!isNaN(Et)&&Et<bn.length||lt&&bn[Et]&&typeof window<"u"&&bn[Et].parent===window}}(typeof self<"u"?self:u.g),function(bn){var $t=bn.System.constructor.prototype,Ct=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,Z=$t.shouldFetch.bind($t);$t.shouldFetch=function(ge){return Z(ge)||Ct.test(ge)};var me=/^application\/json(;|$)/,ke=/^text\/css(;|$)/,Ee=/^application\/wasm(;|$)/,_e=$t.fetch;$t.fetch=function(ge,Me){return _e(ge,Me).then(function(lt){if(Me.passThrough||!lt.ok)return lt;var Ft=lt.headers.get("content-type");return me.test(Ft)?lt.json().then(function(Et){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(Et)+")}}})"],{type:"application/javascript"}))}):ke.test(Ft)?lt.text().then(function(Et){return Et=Et.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,function(Zt,nn,Pn,rn){return["url(",nn,S(Pn||rn,ge),nn,")"].join("")}),new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(Et)+');e("default",s)}}})'],{type:"application/javascript"}))}):Ee.test(Ft)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(lt):lt.arrayBuffer().then(WebAssembly.compile)).then(function(Et){bn.System.wasmModules||(bn.System.wasmModules=Object.create(null)),bn.System.wasmModules[ge]=Et;var Zt=[],nn=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(Et).forEach(function(Pn){var rn=JSON.stringify(Pn.module);Zt.indexOf(rn)===-1&&(Zt.push(rn),nn.push("function(m){i["+rn+"]=m}"))}),new Response(new Blob(["System.register(["+Zt.join(",")+"],function(e){var i={};return{setters:["+nn.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(ge)+"],i).then(function(m){e(m.exports)})}}})"],{type:"application/javascript"}))}):lt})}}(typeof self<"u"?self:u.g);var Wt=typeof Symbol<"u"&&Symbol.toStringTag;ee.get=function(bn){var $t=this[U][bn];if($t&&$t.e===null&&!$t.E)return $t.er?null:$t.n},ee.set=function(bn,$t){try{new URL(bn)}catch{console.warn(Error(l("W3",'"'+bn+'" is not a valid URL to set in the module registry')))}var Ct;Wt&&$t[Wt]==="Module"?Ct=$t:(Ct=Object.assign(Object.create(null),$t),Wt&&Object.defineProperty(Ct,Wt,{value:"Module"}));var Z=Promise.resolve(Ct),me=this[U][bn]||(this[U][bn]={id:bn,i:[],h:!1,d:[],e:null,er:void 0,E:void 0});return me.e||me.E?!1:(Object.assign(me,{n:Ct,I:void 0,L:void 0,C:Z}),Ct)},ee.has=function(bn){var $t=this[U][bn];return!!$t},ee.delete=function(bn){var $t=this[U],Ct=$t[bn];if(!Ct||Ct.p&&Ct.p.e!==null||Ct.E)return!1;var Z=Ct.i;return Ct.d&&Ct.d.forEach(function(me){var ke=me.i.indexOf(Ct);ke!==-1&&me.i.splice(ke,1)}),delete $t[bn],function(){var me=$t[bn];if(!me||!Z||me.e!==null||me.E)return!1;Z.forEach(function(ke){me.i.push(ke),ke(me.n)}),Z=null}};var Tn=typeof Symbol<"u"&&Symbol.iterator;ee.entries=function(){var bn=this,$t=Object.keys(bn[U]),Ct=0,Z,me,ke={next:function(){for(;(me=$t[Ct++])!==void 0&&(Z=bn.get(me))===void 0;);return{done:me===void 0,value:me!==void 0&&[me,Z]}}};return ke[Tn]=function(){return this},ke}})()},59737:(Ge,w,u)=>{"use strict";u.d(w,{DG:()=>I,E6:()=>Se,J:()=>re,J_:()=>h,Jk:()=>E,KH:()=>v,Kk:()=>C,NI:()=>U,PH:()=>d,QP:()=>x,RM:()=>L,Tt:()=>ee,XF:()=>Q,Yk:()=>R,e2:()=>O,j2:()=>S,kH:()=>$,ql:()=>j,sj:()=>ce,sm:()=>p,uE:()=>m,v$:()=>se});var l=u(45435),g=u(53705),y=u(57048);const x=l.xI("$ZodCheck",(q,te)=>{var A;q._zod??(q._zod={}),q._zod.def=te,(A=q._zod).onattach??(A.onattach=[])}),f={number:"number",bigint:"bigint",object:"date"},p=l.xI("$ZodCheckLessThan",(q,te)=>{x.init(q,te);const A=f[typeof te.value];q._zod.onattach.push(T=>{const B=T._zod.bag,X=(te.inclusive?B.maximum:B.exclusiveMaximum)??Number.POSITIVE_INFINITY;te.value<X&&(te.inclusive?B.maximum=te.value:B.exclusiveMaximum=te.value)}),q._zod.check=T=>{(te.inclusive?T.value<=te.value:T.value<te.value)||T.issues.push({origin:A,code:"too_big",maximum:te.value,input:T.value,inclusive:te.inclusive,inst:q,continue:!te.abort})}}),h=l.xI("$ZodCheckGreaterThan",(q,te)=>{x.init(q,te);const A=f[typeof te.value];q._zod.onattach.push(T=>{const B=T._zod.bag,X=(te.inclusive?B.minimum:B.exclusiveMinimum)??Number.NEGATIVE_INFINITY;te.value>X&&(te.inclusive?B.minimum=te.value:B.exclusiveMinimum=te.value)}),q._zod.check=T=>{(te.inclusive?T.value>=te.value:T.value>te.value)||T.issues.push({origin:A,code:"too_small",minimum:te.value,input:T.value,inclusive:te.inclusive,inst:q,continue:!te.abort})}}),E=l.xI("$ZodCheckMultipleOf",(q,te)=>{x.init(q,te),q._zod.onattach.push(A=>{var T;(T=A._zod.bag).multipleOf??(T.multipleOf=te.value)}),q._zod.check=A=>{if(typeof A.value!=typeof te.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof A.value=="bigint"?A.value%te.value===BigInt(0):y.floatSafeRemainder(A.value,te.value)===0)||A.issues.push({origin:typeof A.value,code:"not_multiple_of",divisor:te.value,input:A.value,inst:q,continue:!te.abort})}}),v=l.xI("$ZodCheckNumberFormat",(q,te)=>{x.init(q,te),te.format=te.format||"float64";const A=te.format?.includes("int"),T=A?"int":"number",[B,X]=y.NUMBER_FORMAT_RANGES[te.format];q._zod.onattach.push(ue=>{const ie=ue._zod.bag;ie.format=te.format,ie.minimum=B,ie.maximum=X,A&&(ie.pattern=g.integer)}),q._zod.check=ue=>{const ie=ue.value;if(A){if(!Number.isInteger(ie)){ue.issues.push({expected:T,format:te.format,code:"invalid_type",continue:!1,input:ie,inst:q});return}if(!Number.isSafeInteger(ie)){ie>0?ue.issues.push({input:ie,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:q,origin:T,continue:!te.abort}):ue.issues.push({input:ie,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:q,origin:T,continue:!te.abort});return}}ie<B&&ue.issues.push({origin:"number",input:ie,code:"too_small",minimum:B,inclusive:!0,inst:q,continue:!te.abort}),ie>X&&ue.issues.push({origin:"number",input:ie,code:"too_big",maximum:X,inst:q})}}),m=l.xI("$ZodCheckBigIntFormat",(q,te)=>{x.init(q,te);const[A,T]=y.BIGINT_FORMAT_RANGES[te.format];q._zod.onattach.push(B=>{const X=B._zod.bag;X.format=te.format,X.minimum=A,X.maximum=T}),q._zod.check=B=>{const X=B.value;X<A&&B.issues.push({origin:"bigint",input:X,code:"too_small",minimum:A,inclusive:!0,inst:q,continue:!te.abort}),X>T&&B.issues.push({origin:"bigint",input:X,code:"too_big",maximum:T,inst:q})}}),S=l.xI("$ZodCheckMaxSize",(q,te)=>{var A;x.init(q,te),(A=q._zod.def).when??(A.when=T=>{const B=T.value;return!y.nullish(B)&&B.size!==void 0}),q._zod.onattach.push(T=>{const B=T._zod.bag.maximum??Number.POSITIVE_INFINITY;te.maximum<B&&(T._zod.bag.maximum=te.maximum)}),q._zod.check=T=>{const B=T.value;B.size<=te.maximum||T.issues.push({origin:y.getSizableOrigin(B),code:"too_big",maximum:te.maximum,input:B,inst:q,continue:!te.abort})}}),d=l.xI("$ZodCheckMinSize",(q,te)=>{var A;x.init(q,te),(A=q._zod.def).when??(A.when=T=>{const B=T.value;return!y.nullish(B)&&B.size!==void 0}),q._zod.onattach.push(T=>{const B=T._zod.bag.minimum??Number.NEGATIVE_INFINITY;te.minimum>B&&(T._zod.bag.minimum=te.minimum)}),q._zod.check=T=>{const B=T.value;B.size>=te.minimum||T.issues.push({origin:y.getSizableOrigin(B),code:"too_small",minimum:te.minimum,input:B,inst:q,continue:!te.abort})}}),O=l.xI("$ZodCheckSizeEquals",(q,te)=>{var A;x.init(q,te),(A=q._zod.def).when??(A.when=T=>{const B=T.value;return!y.nullish(B)&&B.size!==void 0}),q._zod.onattach.push(T=>{const B=T._zod.bag;B.minimum=te.size,B.maximum=te.size,B.size=te.size}),q._zod.check=T=>{const B=T.value,X=B.size;if(X===te.size)return;const ue=X>te.size;T.issues.push({origin:y.getSizableOrigin(B),...ue?{code:"too_big",maximum:te.size}:{code:"too_small",minimum:te.size},inclusive:!0,exact:!0,input:T.value,inst:q,continue:!te.abort})}}),R=l.xI("$ZodCheckMaxLength",(q,te)=>{var A;x.init(q,te),(A=q._zod.def).when??(A.when=T=>{const B=T.value;return!y.nullish(B)&&B.length!==void 0}),q._zod.onattach.push(T=>{const B=T._zod.bag.maximum??Number.POSITIVE_INFINITY;te.maximum<B&&(T._zod.bag.maximum=te.maximum)}),q._zod.check=T=>{const B=T.value;if(B.length<=te.maximum)return;const ue=y.getLengthableOrigin(B);T.issues.push({origin:ue,code:"too_big",maximum:te.maximum,inclusive:!0,input:B,inst:q,continue:!te.abort})}}),C=l.xI("$ZodCheckMinLength",(q,te)=>{var A;x.init(q,te),(A=q._zod.def).when??(A.when=T=>{const B=T.value;return!y.nullish(B)&&B.length!==void 0}),q._zod.onattach.push(T=>{const B=T._zod.bag.minimum??Number.NEGATIVE_INFINITY;te.minimum>B&&(T._zod.bag.minimum=te.minimum)}),q._zod.check=T=>{const B=T.value;if(B.length>=te.minimum)return;const ue=y.getLengthableOrigin(B);T.issues.push({origin:ue,code:"too_small",minimum:te.minimum,inclusive:!0,input:B,inst:q,continue:!te.abort})}}),L=l.xI("$ZodCheckLengthEquals",(q,te)=>{var A;x.init(q,te),(A=q._zod.def).when??(A.when=T=>{const B=T.value;return!y.nullish(B)&&B.length!==void 0}),q._zod.onattach.push(T=>{const B=T._zod.bag;B.minimum=te.length,B.maximum=te.length,B.length=te.length}),q._zod.check=T=>{const B=T.value,X=B.length;if(X===te.length)return;const ue=y.getLengthableOrigin(B),ie=X>te.length;T.issues.push({origin:ue,...ie?{code:"too_big",maximum:te.length}:{code:"too_small",minimum:te.length},inclusive:!0,exact:!0,input:T.value,inst:q,continue:!te.abort})}}),j=l.xI("$ZodCheckStringFormat",(q,te)=>{var A,T;x.init(q,te),q._zod.onattach.push(B=>{const X=B._zod.bag;X.format=te.format,te.pattern&&(X.patterns??(X.patterns=new Set),X.patterns.add(te.pattern))}),te.pattern?(A=q._zod).check??(A.check=B=>{te.pattern.lastIndex=0,!te.pattern.test(B.value)&&B.issues.push({origin:"string",code:"invalid_format",format:te.format,input:B.value,...te.pattern?{pattern:te.pattern.toString()}:{},inst:q,continue:!te.abort})}):(T=q._zod).check??(T.check=()=>{})}),I=l.xI("$ZodCheckRegex",(q,te)=>{j.init(q,te),q._zod.check=A=>{te.pattern.lastIndex=0,!te.pattern.test(A.value)&&A.issues.push({origin:"string",code:"invalid_format",format:"regex",input:A.value,pattern:te.pattern.toString(),inst:q,continue:!te.abort})}}),U=l.xI("$ZodCheckLowerCase",(q,te)=>{te.pattern??(te.pattern=g.lowercase),j.init(q,te)}),$=l.xI("$ZodCheckUpperCase",(q,te)=>{te.pattern??(te.pattern=g.uppercase),j.init(q,te)}),ee=l.xI("$ZodCheckIncludes",(q,te)=>{x.init(q,te);const A=y.escapeRegex(te.includes),T=new RegExp(typeof te.position=="number"?`^.{${te.position}}${A}`:A);te.pattern=T,q._zod.onattach.push(B=>{const X=B._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(T)}),q._zod.check=B=>{B.value.includes(te.includes,te.position)||B.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:te.includes,input:B.value,inst:q,continue:!te.abort})}}),re=l.xI("$ZodCheckStartsWith",(q,te)=>{x.init(q,te);const A=new RegExp(`^${y.escapeRegex(te.prefix)}.*`);te.pattern??(te.pattern=A),q._zod.onattach.push(T=>{const B=T._zod.bag;B.patterns??(B.patterns=new Set),B.patterns.add(A)}),q._zod.check=T=>{T.value.startsWith(te.prefix)||T.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:te.prefix,input:T.value,inst:q,continue:!te.abort})}}),Se=l.xI("$ZodCheckEndsWith",(q,te)=>{x.init(q,te);const A=new RegExp(`.*${y.escapeRegex(te.suffix)}$`);te.pattern??(te.pattern=A),q._zod.onattach.push(T=>{const B=T._zod.bag;B.patterns??(B.patterns=new Set),B.patterns.add(A)}),q._zod.check=T=>{T.value.endsWith(te.suffix)||T.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:te.suffix,input:T.value,inst:q,continue:!te.abort})}});function z(q,te,A){q.issues.length&&te.issues.push(...y.prefixIssues(A,q.issues))}const Q=l.xI("$ZodCheckProperty",(q,te)=>{x.init(q,te),q._zod.check=A=>{const T=te.schema._zod.run({value:A.value[te.property],issues:[]},{});if(T instanceof Promise)return T.then(B=>z(B,A,te.property));z(T,A,te.property)}}),ce=l.xI("$ZodCheckMimeType",(q,te)=>{x.init(q,te);const A=new Set(te.mime);q._zod.onattach.push(T=>{T._zod.bag.mime=te.mime}),q._zod.check=T=>{A.has(T.value.type)||T.issues.push({code:"invalid_value",values:te.mime,input:T.value.type,inst:q,continue:!te.abort})}}),se=l.xI("$ZodCheckOverwrite",(q,te)=>{x.init(q,te),q._zod.check=A=>{A.value=te.tx(A.value)}})},59742:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=m(u(96540)),g=u(51548),y=E(u(71508)),x=u(38426),f=u(82134),p=E(u(26392)),h=E(u(80634));function E(j){return j&&j.__esModule?j:{default:j}}function v(j){if(typeof WeakMap!="function")return null;var I=new WeakMap,U=new WeakMap;return(v=function($){return $?U:I})(j)}function m(j,I){if(!I&&j&&j.__esModule)return j;if(j===null||typeof j!="object"&&typeof j!="function")return{default:j};var U=v(I);if(U&&U.has(j))return U.get(j);var $={__proto__:null},ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in j)if(re!=="default"&&Object.prototype.hasOwnProperty.call(j,re)){var Se=ee?Object.getOwnPropertyDescriptor(j,re):null;Se&&(Se.get||Se.set)?Object.defineProperty($,re,Se):$[re]=j[re]}return $.default=j,U&&U.set(j,$),$}function S(j,I,U){return I=d(I),I in j?Object.defineProperty(j,I,{value:U,enumerable:!0,configurable:!0,writable:!0}):j[I]=U,j}function d(j){var I=O(j,"string");return typeof I=="symbol"?I:String(I)}function O(j,I){if(typeof j!="object"||j===null)return j;var U=j[Symbol.toPrimitive];if(U!==void 0){var $=U.call(j,I||"default");if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(j)}const R="react-grid-layout";let C=!1;try{C=/firefox/i.test(navigator.userAgent)}catch{}class L extends l.Component{constructor(){super(...arguments),S(this,"state",{activeDrag:null,layout:(0,x.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,x.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),S(this,"dragEnterCounter",0),S(this,"onDragStart",(I,U,$,ee)=>{let{e:re,node:Se}=ee;const{layout:z}=this.state,Q=(0,x.getLayoutItem)(z,I);if(!Q)return;const ce={w:Q.w,h:Q.h,x:Q.x,y:Q.y,placeholder:!0,i:I};return this.setState({oldDragItem:(0,x.cloneLayoutItem)(Q),oldLayout:z,activeDrag:ce}),this.props.onDragStart(z,Q,Q,null,re,Se)}),S(this,"onDrag",(I,U,$,ee)=>{let{e:re,node:Se}=ee;const{oldDragItem:z}=this.state;let{layout:Q}=this.state;const{cols:ce,allowOverlap:se,preventCollision:q}=this.props,te=(0,x.getLayoutItem)(Q,I);if(!te)return;const A={w:te.w,h:te.h,x:te.x,y:te.y,placeholder:!0,i:I};Q=(0,x.moveElement)(Q,te,U,$,!0,q,(0,x.compactType)(this.props),ce,se),this.props.onDrag(Q,z,te,A,re,Se),this.setState({layout:se?Q:(0,x.compact)(Q,(0,x.compactType)(this.props),ce),activeDrag:A})}),S(this,"onDragStop",(I,U,$,ee)=>{let{e:re,node:Se}=ee;if(!this.state.activeDrag)return;const{oldDragItem:z}=this.state;let{layout:Q}=this.state;const{cols:ce,preventCollision:se,allowOverlap:q}=this.props,te=(0,x.getLayoutItem)(Q,I);if(!te)return;Q=(0,x.moveElement)(Q,te,U,$,!0,se,(0,x.compactType)(this.props),ce,q);const T=q?Q:(0,x.compact)(Q,(0,x.compactType)(this.props),ce);this.props.onDragStop(T,z,te,null,re,Se);const{oldLayout:B}=this.state;this.setState({activeDrag:null,layout:T,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(T,B)}),S(this,"onResizeStart",(I,U,$,ee)=>{let{e:re,node:Se}=ee;const{layout:z}=this.state,Q=(0,x.getLayoutItem)(z,I);Q&&(this.setState({oldResizeItem:(0,x.cloneLayoutItem)(Q),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(z,Q,Q,null,re,Se))}),S(this,"onResize",(I,U,$,ee)=>{let{e:re,node:Se,size:z,handle:Q}=ee;const{oldResizeItem:ce}=this.state,{layout:se}=this.state,{cols:q,preventCollision:te,allowOverlap:A}=this.props;let T=!1,B,X,ue;const[ie,Te]=(0,x.withLayoutItem)(se,I,yt=>{let tt;return X=yt.x,ue=yt.y,["sw","w","nw","n","ne"].indexOf(Q)!==-1&&(["sw","nw","w"].indexOf(Q)!==-1&&(X=yt.x+(yt.w-U),U=yt.x!==X&&X<0?yt.w:U,X=X<0?0:X),["ne","n","nw"].indexOf(Q)!==-1&&(ue=yt.y+(yt.h-$),$=yt.y!==ue&&ue<0?yt.h:$,ue=ue<0?0:ue),T=!0),te&&!A&&(tt=(0,x.getAllCollisions)(se,{...yt,w:U,h:$,x:X,y:ue}).filter(Ne=>Ne.i!==yt.i).length>0,tt&&(ue=yt.y,$=yt.h,X=yt.x,U=yt.w,T=!1)),yt.w=U,yt.h=$,yt});if(!Te)return;B=ie,T&&(B=(0,x.moveElement)(ie,Te,X,ue,!0,this.props.preventCollision,(0,x.compactType)(this.props),q,A));const je={w:Te.w,h:Te.h,x:Te.x,y:Te.y,static:!0,i:I};this.props.onResize(B,ce,Te,je,re,Se),this.setState({layout:A?B:(0,x.compact)(B,(0,x.compactType)(this.props),q),activeDrag:je})}),S(this,"onResizeStop",(I,U,$,ee)=>{let{e:re,node:Se}=ee;const{layout:z,oldResizeItem:Q}=this.state,{cols:ce,allowOverlap:se}=this.props,q=(0,x.getLayoutItem)(z,I),te=se?z:(0,x.compact)(z,(0,x.compactType)(this.props),ce);this.props.onResizeStop(te,Q,q,null,re,Se);const{oldLayout:A}=this.state;this.setState({activeDrag:null,layout:te,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(te,A)}),S(this,"onDragOver",I=>{if(I.preventDefault(),I.stopPropagation(),C&&!I.nativeEvent.target?.classList.contains(R))return!1;const{droppingItem:U,onDropDragOver:$,margin:ee,cols:re,rowHeight:Se,maxRows:z,width:Q,containerPadding:ce,transformScale:se}=this.props,q=$?.(I);if(q===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const te={...U,...q},{layout:A}=this.state,T=I.currentTarget.getBoundingClientRect(),B=I.clientX-T.left,X=I.clientY-T.top,ue={left:B/se,top:X/se,e:I};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:ie,top:Te}=this.state.droppingPosition;(ie!=B||Te!=X)&&this.setState({droppingPosition:ue})}}else{const ie={cols:re,margin:ee,maxRows:z,rowHeight:Se,containerWidth:Q,containerPadding:ce||ee},Te=(0,f.calcXY)(ie,X,B,te.w,te.h);this.setState({droppingDOMNode:l.createElement("div",{key:te.i}),droppingPosition:ue,layout:[...A,{...te,x:Te.x,y:Te.y,static:!1,isDraggable:!0}]})}}),S(this,"removeDroppingPlaceholder",()=>{const{droppingItem:I,cols:U}=this.props,{layout:$}=this.state,ee=(0,x.compact)($.filter(re=>re.i!==I.i),(0,x.compactType)(this.props),U,this.props.allowOverlap);this.setState({layout:ee,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),S(this,"onDragLeave",I=>{I.preventDefault(),I.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),S(this,"onDragEnter",I=>{I.preventDefault(),I.stopPropagation(),this.dragEnterCounter++}),S(this,"onDrop",I=>{I.preventDefault(),I.stopPropagation();const{droppingItem:U}=this.props,{layout:$}=this.state,ee=$.find(re=>re.i===U.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop($,ee,I)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(I,U){let $;return U.activeDrag?null:(!(0,g.deepEqual)(I.layout,U.propsLayout)||I.compactType!==U.compactType?$=I.layout:(0,x.childrenEqual)(I.children,U.children)||($=U.layout),$?{layout:(0,x.synchronizeLayoutWithChildren)($,I.children,I.cols,(0,x.compactType)(I),I.allowOverlap),compactType:I.compactType,children:I.children,propsLayout:I.layout}:null)}shouldComponentUpdate(I,U){return this.props.children!==I.children||!(0,x.fastRGLPropsEqual)(this.props,I,g.deepEqual)||this.state.activeDrag!==U.activeDrag||this.state.mounted!==U.mounted||this.state.droppingPosition!==U.droppingPosition}componentDidUpdate(I,U){if(!this.state.activeDrag){const $=this.state.layout,ee=U.layout;this.onLayoutMaybeChanged($,ee)}}containerHeight(){if(!this.props.autoSize)return;const I=(0,x.bottom)(this.state.layout),U=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return I*this.props.rowHeight+(I-1)*this.props.margin[1]+U*2+"px"}onLayoutMaybeChanged(I,U){U||(U=this.state.layout),(0,g.deepEqual)(U,I)||this.props.onLayoutChange(I)}placeholder(){const{activeDrag:I}=this.state;if(!I)return null;const{width:U,cols:$,margin:ee,containerPadding:re,rowHeight:Se,maxRows:z,useCSSTransforms:Q,transformScale:ce}=this.props;return l.createElement(p.default,{w:I.w,h:I.h,x:I.x,y:I.y,i:I.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:U,cols:$,margin:ee,containerPadding:re||ee,maxRows:z,rowHeight:Se,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:Q,transformScale:ce},l.createElement("div",null))}processGridItem(I,U){if(!I||!I.key)return;const $=(0,x.getLayoutItem)(this.state.layout,String(I.key));if(!$)return null;const{width:ee,cols:re,margin:Se,containerPadding:z,rowHeight:Q,maxRows:ce,isDraggable:se,isResizable:q,isBounded:te,useCSSTransforms:A,transformScale:T,draggableCancel:B,draggableHandle:X,resizeHandles:ue,resizeHandle:ie}=this.props,{mounted:Te,droppingPosition:je}=this.state,yt=typeof $.isDraggable=="boolean"?$.isDraggable:!$.static&&se,tt=typeof $.isResizable=="boolean"?$.isResizable:!$.static&&q,Ze=$.resizeHandles||ue,Ne=yt&&te&&$.isBounded!==!1;return l.createElement(p.default,{containerWidth:ee,cols:re,margin:Se,containerPadding:z||Se,maxRows:ce,rowHeight:Q,cancel:B,handle:X,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:yt,isResizable:tt,isBounded:Ne,useCSSTransforms:A&&Te,usePercentages:!Te,transformScale:T,w:$.w,h:$.h,x:$.x,y:$.y,i:$.i,minH:$.minH,minW:$.minW,maxH:$.maxH,maxW:$.maxW,static:$.static,droppingPosition:U?je:void 0,resizeHandles:Ze,resizeHandle:ie},I)}render(){const{className:I,style:U,isDroppable:$,innerRef:ee}=this.props,re=(0,y.default)(R,I),Se={height:this.containerHeight(),...U};return l.createElement("div",{ref:ee,className:re,style:Se,onDrop:$?this.onDrop:x.noop,onDragLeave:$?this.onDragLeave:x.noop,onDragEnter:$?this.onDragEnter:x.noop,onDragOver:$?this.onDragOver:x.noop},l.Children.map(this.props.children,z=>this.processGridItem(z)),$&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}w.default=L,S(L,"displayName","ReactGridLayout"),S(L,"propTypes",h.default),S(L,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:x.noop,onDragStart:x.noop,onDrag:x.noop,onDragStop:x.noop,onResizeStart:x.noop,onResize:x.noop,onResizeStop:x.noop,onDrop:x.noop,onDropDragOver:x.noop})},59864:(Ge,w,u)=>{"use strict";var l;l={value:!0},w.default=void 0;var g=m(u(96540)),y=E(u(83175)),x=u(51548),f=u(38426),p=u(3108),h=E(u(59742));function E(I){return I&&I.__esModule?I:{default:I}}function v(I){if(typeof WeakMap!="function")return null;var U=new WeakMap,$=new WeakMap;return(v=function(ee){return ee?$:U})(I)}function m(I,U){if(!U&&I&&I.__esModule)return I;if(I===null||typeof I!="object"&&typeof I!="function")return{default:I};var $=v(U);if($&&$.has(I))return $.get(I);var ee={__proto__:null},re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Se in I)if(Se!=="default"&&Object.prototype.hasOwnProperty.call(I,Se)){var z=re?Object.getOwnPropertyDescriptor(I,Se):null;z&&(z.get||z.set)?Object.defineProperty(ee,Se,z):ee[Se]=I[Se]}return ee.default=I,$&&$.set(I,ee),ee}function S(){return S=Object.assign?Object.assign.bind():function(I){for(var U=1;U<arguments.length;U++){var $=arguments[U];for(var ee in $)Object.prototype.hasOwnProperty.call($,ee)&&(I[ee]=$[ee])}return I},S.apply(this,arguments)}function d(I,U,$){return U=O(U),U in I?Object.defineProperty(I,U,{value:$,enumerable:!0,configurable:!0,writable:!0}):I[U]=$,I}function O(I){var U=R(I,"string");return typeof U=="symbol"?U:String(U)}function R(I,U){if(typeof I!="object"||I===null)return I;var $=I[Symbol.toPrimitive];if($!==void 0){var ee=$.call(I,U||"default");if(typeof ee!="object")return ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(I)}const C=I=>Object.prototype.toString.call(I);function L(I,U){return I==null?null:Array.isArray(I)?I:I[U]}class j extends g.Component{constructor(){super(...arguments),d(this,"state",this.generateInitialState()),d(this,"onLayoutChange",U=>{this.props.onLayoutChange(U,{...this.props.layouts,[this.state.breakpoint]:U})})}generateInitialState(){const{width:U,breakpoints:$,layouts:ee,cols:re}=this.props,Se=(0,p.getBreakpointFromWidth)($,U),z=(0,p.getColsFromBreakpoint)(Se,re),Q=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,p.findOrGenerateResponsiveLayout)(ee,$,Se,Se,z,Q),breakpoint:Se,cols:z}}static getDerivedStateFromProps(U,$){if(!(0,x.deepEqual)(U.layouts,$.layouts)){const{breakpoint:ee,cols:re}=$;return{layout:(0,p.findOrGenerateResponsiveLayout)(U.layouts,U.breakpoints,ee,ee,re,U.compactType),layouts:U.layouts}}return null}componentDidUpdate(U){(this.props.width!=U.width||this.props.breakpoint!==U.breakpoint||!(0,x.deepEqual)(this.props.breakpoints,U.breakpoints)||!(0,x.deepEqual)(this.props.cols,U.cols))&&this.onWidthChange(U)}onWidthChange(U){const{breakpoints:$,cols:ee,layouts:re,compactType:Se}=this.props,z=this.props.breakpoint||(0,p.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),Q=this.state.breakpoint,ce=(0,p.getColsFromBreakpoint)(z,ee),se={...re};if(Q!==z||U.breakpoints!==$||U.cols!==ee){Q in se||(se[Q]=(0,f.cloneLayout)(this.state.layout));let A=(0,p.findOrGenerateResponsiveLayout)(se,$,z,Q,ce,Se);A=(0,f.synchronizeLayoutWithChildren)(A,this.props.children,ce,Se,this.props.allowOverlap),se[z]=A,this.props.onLayoutChange(A,se),this.props.onBreakpointChange(z,ce),this.setState({breakpoint:z,layout:A,cols:ce})}const q=L(this.props.margin,z),te=L(this.props.containerPadding,z);this.props.onWidthChange(this.props.width,q,ce,te)}render(){const{breakpoint:U,breakpoints:$,cols:ee,layouts:re,margin:Se,containerPadding:z,onBreakpointChange:Q,onLayoutChange:ce,onWidthChange:se,...q}=this.props;return g.createElement(h.default,S({},q,{margin:L(Se,this.state.breakpoint),containerPadding:L(z,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}w.default=j,d(j,"propTypes",{breakpoint:y.default.string,breakpoints:y.default.object,allowOverlap:y.default.bool,cols:y.default.object,margin:y.default.oneOfType([y.default.array,y.default.object]),containerPadding:y.default.oneOfType([y.default.array,y.default.object]),layouts(I,U){if(C(I[U])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+C(I[U]));Object.keys(I[U]).forEach($=>{if(!($ in I.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,f.validateLayout)(I.layouts[$],"layouts."+$)})},width:y.default.number.isRequired,onBreakpointChange:y.default.func,onLayoutChange:y.default.func,onWidthChange:y.default.func}),d(j,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:f.noop,onLayoutChange:f.noop,onWidthChange:f.noop})},59875:(Ge,w,u)=>{"use strict";u.d(w,{Sf:()=>m});var l=u(12354),g=u(96540),y=u(40961),x=u(60415);const f=g.createContext(null);function p(d){let{children:O}=d,R=(0,g.useContext)(f),[C,L]=(0,g.useState)(0),j=(0,g.useMemo)(()=>({parent:R,modalCount:C,addModal(){L(I=>I+1),R&&R.addModal()},removeModal(){L(I=>I-1),R&&R.removeModal()}}),[R,C]);return g.createElement(f.Provider,{value:j},O)}function h(){let d=(0,g.useContext)(f);return{modalProviderProps:{"aria-hidden":d&&d.modalCount>0?!0:void 0}}}function E(d){let{modalProviderProps:O}=h();return g.createElement("div",{"data-overlay-container":!0,...d,...O})}function v(d){return g.createElement(p,null,g.createElement(E,d))}function m(d){let O=(0,x.wR)(),{portalContainer:R=O?null:document.body,...C}=d,{getContainer:L}=(0,l.gX)();if(!d.portalContainer&&L&&(R=L()),g.useEffect(()=>{if(R?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[R]),!R)return null;let j=g.createElement(v,C);return y.createPortal(j,R)}function S(d){let O=$4AOtR$useContext(f);if(!O)throw new Error("Modal is not contained within a provider");return $4AOtR$useEffect(()=>{if(!(d?.isDisabled||!O||!O.parent))return O.parent.addModal(),()=>{O&&O.parent&&O.parent.removeModal()}},[O,O.parent,d?.isDisabled]),{modalProps:{"data-ismodal":!d?.isDisabled}}}},60023:(Ge,w,u)=>{"use strict";u.d(w,{xI:()=>ne});function l(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var g=l();function y(ht){g=ht}var x={exec:()=>null};function f(ht,De=""){let we=typeof ht=="string"?ht:ht.source,Ke={replace:(be,pt)=>{let We=typeof pt=="string"?pt:pt.source;return We=We.replace(p.caret,"$1"),we=we.replace(be,We),Ke},getRegex:()=>new RegExp(we,De)};return Ke}var p={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:ht=>new RegExp(`^( {0,3}${ht})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ht=>new RegExp(`^ {0,${Math.min(3,ht-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:ht=>new RegExp(`^ {0,${Math.min(3,ht-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:ht=>new RegExp(`^ {0,${Math.min(3,ht-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:ht=>new RegExp(`^ {0,${Math.min(3,ht-1)}}#`),htmlBeginRegex:ht=>new RegExp(`^ {0,${Math.min(3,ht-1)}}<(?:[a-z].*>|!--)`,"i")},h=/^(?:[ \t]*(?:\n|$))+/,E=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,v=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,m=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,S=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,d=/(?:[*+-]|\d{1,9}[.)])/,O=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,R=f(O).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),C=f(O).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),L=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,j=/^[^\n]+/,I=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,U=f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",I).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,d).getRegex(),ee="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",re=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Se=f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",re).replace("tag",ee).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z=f(L).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex(),Q=f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",z).getRegex(),ce={blockquote:Q,code:E,def:U,fences:v,heading:S,hr:m,html:Se,lheading:R,list:$,newline:h,paragraph:z,table:x,text:j},se=f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex(),q={...ce,lheading:C,table:se,paragraph:f(L).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",se).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex()},te={...ce,html:f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",re).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:x,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(L).replace("hr",m).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",R).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,T=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,B=/^( {2,}|\\)\n(?!\s*$)/,X=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ue=/[\p{P}\p{S}]/u,ie=/[\s\p{P}\p{S}]/u,Te=/[^\s\p{P}\p{S}]/u,je=f(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ie).getRegex(),yt=/(?!~)[\p{P}\p{S}]/u,tt=/(?!~)[\s\p{P}\p{S}]/u,Ze=/(?:[^\s\p{P}\p{S}]|~)/u,Ne=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,it=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Rt=f(it,"u").replace(/punct/g,ue).getRegex(),Dn=f(it,"u").replace(/punct/g,yt).getRegex(),Mt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Wt=f(Mt,"gu").replace(/notPunctSpace/g,Te).replace(/punctSpace/g,ie).replace(/punct/g,ue).getRegex(),Tn=f(Mt,"gu").replace(/notPunctSpace/g,Ze).replace(/punctSpace/g,tt).replace(/punct/g,yt).getRegex(),bn=f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Te).replace(/punctSpace/g,ie).replace(/punct/g,ue).getRegex(),$t=f(/\\(punct)/,"gu").replace(/punct/g,ue).getRegex(),Ct=f(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Z=f(re).replace("(?:-->|$)","-->").getRegex(),me=f("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ke=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,Ee=f(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ke).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),_e=f(/^!?\[(label)\]\[(ref)\]/).replace("label",ke).replace("ref",I).getRegex(),ge=f(/^!?\[(ref)\](?:\[\])?/).replace("ref",I).getRegex(),Me=f("reflink|nolink(?!\\()","g").replace("reflink",_e).replace("nolink",ge).getRegex(),lt={_backpedal:x,anyPunctuation:$t,autolink:Ct,blockSkip:Ne,br:B,code:T,del:x,emStrongLDelim:Rt,emStrongRDelimAst:Wt,emStrongRDelimUnd:bn,escape:A,link:Ee,nolink:ge,punctuation:je,reflink:_e,reflinkSearch:Me,tag:me,text:X,url:x},Ft={...lt,link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",ke).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ke).getRegex()},Et={...lt,emStrongRDelimAst:Tn,emStrongLDelim:Dn,url:f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Zt={...Et,br:f(B).replace("{2,}","*").getRegex(),text:f(Et.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nn={normal:ce,gfm:q,pedantic:te},Pn={normal:lt,gfm:Et,breaks:Zt,pedantic:Ft},rn={"&":"&","<":"<",">":">",'"':""","'":"'"},Vt=ht=>rn[ht];function Kn(ht,De){if(De){if(p.escapeTest.test(ht))return ht.replace(p.escapeReplace,Vt)}else if(p.escapeTestNoEncode.test(ht))return ht.replace(p.escapeReplaceNoEncode,Vt);return ht}function ur(ht){try{ht=encodeURI(ht).replace(p.percentDecode,"%")}catch{return null}return ht}function on(ht,De){let we=ht.replace(p.findPipe,(pt,We,Je)=>{let ye=!1,Qe=We;for(;--Qe>=0&&Je[Qe]==="\\";)ye=!ye;return ye?"|":" |"}),Ke=we.split(p.splitPipe),be=0;if(Ke[0].trim()||Ke.shift(),Ke.length>0&&!Ke.at(-1)?.trim()&&Ke.pop(),De)if(Ke.length>De)Ke.splice(De);else for(;Ke.length<De;)Ke.push("");for(;be<Ke.length;be++)Ke[be]=Ke[be].trim().replace(p.slashPipe,"|");return Ke}function tr(ht,De,we){let Ke=ht.length;if(Ke===0)return"";let be=0;for(;be<Ke;){let pt=ht.charAt(Ke-be-1);if(pt===De&&!we)be++;else if(pt!==De&&we)be++;else break}return ht.slice(0,Ke-be)}function Cn(ht,De){if(ht.indexOf(De[1])===-1)return-1;let we=0;for(let Ke=0;Ke<ht.length;Ke++)if(ht[Ke]==="\\")Ke++;else if(ht[Ke]===De[0])we++;else if(ht[Ke]===De[1]&&(we--,we<0))return Ke;return we>0?-2:-1}function Wn(ht,De,we,Ke,be){let pt=De.href,We=De.title||null,Je=ht[1].replace(be.other.outputLinkReplace,"$1");Ke.state.inLink=!0;let ye={type:ht[0].charAt(0)==="!"?"image":"link",raw:we,href:pt,title:We,text:Je,tokens:Ke.inlineTokens(Je)};return Ke.state.inLink=!1,ye}function er(ht,De,we){let Ke=ht.match(we.other.indentCodeCompensation);if(Ke===null)return De;let be=Ke[1];return De.split(` `).map(pt=>{let We=pt.match(we.other.beginningSpace);if(We===null)return pt;let[Je]=We;return Je.length>=be.length?pt.slice(be.length):pt}).join(` `)}var Fn=class{options;rules;lexer;constructor(ht){this.options=ht||g}space(ht){let De=this.rules.block.newline.exec(ht);if(De&&De[0].length>0)return{type:"space",raw:De[0]}}code(ht){let De=this.rules.block.code.exec(ht);if(De){let we=De[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:De[0],codeBlockStyle:"indented",text:this.options.pedantic?we:tr(we,` `)}}}fences(ht){let De=this.rules.block.fences.exec(ht);if(De){let we=De[0],Ke=er(we,De[3]||"",this.rules);return{type:"code",raw:we,lang:De[2]?De[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):De[2],text:Ke}}}heading(ht){let De=this.rules.block.heading.exec(ht);if(De){let we=De[2].trim();if(this.rules.other.endingHash.test(we)){let Ke=tr(we,"#");(this.options.pedantic||!Ke||this.rules.other.endingSpaceChar.test(Ke))&&(we=Ke.trim())}return{type:"heading",raw:De[0],depth:De[1].length,text:we,tokens:this.lexer.inline(we)}}}hr(ht){let De=this.rules.block.hr.exec(ht);if(De)return{type:"hr",raw:tr(De[0],` `)}}blockquote(ht){let De=this.rules.block.blockquote.exec(ht);if(De){let we=tr(De[0],` `).split(` `),Ke="",be="",pt=[];for(;we.length>0;){let We=!1,Je=[],ye;for(ye=0;ye<we.length;ye++)if(this.rules.other.blockquoteStart.test(we[ye]))Je.push(we[ye]),We=!0;else if(!We)Je.push(we[ye]);else break;we=we.slice(ye);let Qe=Je.join(` `),ze=Qe.replace(this.rules.other.blockquoteSetextReplace,` $1`).replace(this.rules.other.blockquoteSetextReplace2,"");Ke=Ke?`${Ke} ${Qe}`:Qe,be=be?`${be} ${ze}`:ze;let qe=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(ze,pt,!0),this.lexer.state.top=qe,we.length===0)break;let Pt=pt.at(-1);if(Pt?.type==="code")break;if(Pt?.type==="blockquote"){let zt=Pt,un=zt.raw+` `+we.join(` `),hn=this.blockquote(un);pt[pt.length-1]=hn,Ke=Ke.substring(0,Ke.length-zt.raw.length)+hn.raw,be=be.substring(0,be.length-zt.text.length)+hn.text;break}else if(Pt?.type==="list"){let zt=Pt,un=zt.raw+` `+we.join(` `),hn=this.list(un);pt[pt.length-1]=hn,Ke=Ke.substring(0,Ke.length-Pt.raw.length)+hn.raw,be=be.substring(0,be.length-zt.raw.length)+hn.raw,we=un.substring(pt.at(-1).raw.length).split(` `);continue}}return{type:"blockquote",raw:Ke,tokens:pt,text:be}}}list(ht){let De=this.rules.block.list.exec(ht);if(De){let we=De[1].trim(),Ke=we.length>1,be={type:"list",raw:"",ordered:Ke,start:Ke?+we.slice(0,-1):"",loose:!1,items:[]};we=Ke?`\\d{1,9}\\${we.slice(-1)}`:`\\${we}`,this.options.pedantic&&(we=Ke?we:"[*+-]");let pt=this.rules.other.listItemRegex(we),We=!1;for(;ht;){let ye=!1,Qe="",ze="";if(!(De=pt.exec(ht))||this.rules.block.hr.test(ht))break;Qe=De[0],ht=ht.substring(Qe.length);let qe=De[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,_t=>" ".repeat(3*_t.length)),Pt=ht.split(` `,1)[0],zt=!qe.trim(),un=0;if(this.options.pedantic?(un=2,ze=qe.trimStart()):zt?un=De[1].length+1:(un=De[2].search(this.rules.other.nonSpaceChar),un=un>4?1:un,ze=qe.slice(un),un+=De[1].length),zt&&this.rules.other.blankLine.test(Pt)&&(Qe+=Pt+` `,ht=ht.substring(Pt.length+1),ye=!0),!ye){let _t=this.rules.other.nextBulletRegex(un),qt=this.rules.other.hrRegex(un),fn=this.rules.other.fencesBeginRegex(un),On=this.rules.other.headingBeginRegex(un),Gn=this.rules.other.htmlBeginRegex(un);for(;ht;){let Bn=ht.split(` `,1)[0],Lr;if(Pt=Bn,this.options.pedantic?(Pt=Pt.replace(this.rules.other.listReplaceNesting," "),Lr=Pt):Lr=Pt.replace(this.rules.other.tabCharGlobal," "),fn.test(Pt)||On.test(Pt)||Gn.test(Pt)||_t.test(Pt)||qt.test(Pt))break;if(Lr.search(this.rules.other.nonSpaceChar)>=un||!Pt.trim())ze+=` `+Lr.slice(un);else{if(zt||qe.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||fn.test(qe)||On.test(qe)||qt.test(qe))break;ze+=` `+Pt}!zt&&!Pt.trim()&&(zt=!0),Qe+=Bn+` `,ht=ht.substring(Bn.length+1),qe=Lr.slice(un)}}be.loose||(We?be.loose=!0:this.rules.other.doubleBlankLine.test(Qe)&&(We=!0));let hn=null,xt;this.options.gfm&&(hn=this.rules.other.listIsTask.exec(ze),hn&&(xt=hn[0]!=="[ ] ",ze=ze.replace(this.rules.other.listReplaceTask,""))),be.items.push({type:"list_item",raw:Qe,task:!!hn,checked:xt,loose:!1,text:ze,tokens:[]}),be.raw+=Qe}let Je=be.items.at(-1);if(Je)Je.raw=Je.raw.trimEnd(),Je.text=Je.text.trimEnd();else return;be.raw=be.raw.trimEnd();for(let ye=0;ye<be.items.length;ye++)if(this.lexer.state.top=!1,be.items[ye].tokens=this.lexer.blockTokens(be.items[ye].text,[]),!be.loose){let Qe=be.items[ye].tokens.filter(qe=>qe.type==="space"),ze=Qe.length>0&&Qe.some(qe=>this.rules.other.anyLine.test(qe.raw));be.loose=ze}if(be.loose)for(let ye=0;ye<be.items.length;ye++)be.items[ye].loose=!0;return be}}html(ht){let De=this.rules.block.html.exec(ht);if(De)return{type:"html",block:!0,raw:De[0],pre:De[1]==="pre"||De[1]==="script"||De[1]==="style",text:De[0]}}def(ht){let De=this.rules.block.def.exec(ht);if(De){let we=De[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),Ke=De[2]?De[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",be=De[3]?De[3].substring(1,De[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):De[3];return{type:"def",tag:we,raw:De[0],href:Ke,title:be}}}table(ht){let De=this.rules.block.table.exec(ht);if(!De||!this.rules.other.tableDelimiter.test(De[2]))return;let we=on(De[1]),Ke=De[2].replace(this.rules.other.tableAlignChars,"").split("|"),be=De[3]?.trim()?De[3].replace(this.rules.other.tableRowBlankLine,"").split(` `):[],pt={type:"table",raw:De[0],header:[],align:[],rows:[]};if(we.length===Ke.length){for(let We of Ke)this.rules.other.tableAlignRight.test(We)?pt.align.push("right"):this.rules.other.tableAlignCenter.test(We)?pt.align.push("center"):this.rules.other.tableAlignLeft.test(We)?pt.align.push("left"):pt.align.push(null);for(let We=0;We<we.length;We++)pt.header.push({text:we[We],tokens:this.lexer.inline(we[We]),header:!0,align:pt.align[We]});for(let We of be)pt.rows.push(on(We,pt.header.length).map((Je,ye)=>({text:Je,tokens:this.lexer.inline(Je),header:!1,align:pt.align[ye]})));return pt}}lheading(ht){let De=this.rules.block.lheading.exec(ht);if(De)return{type:"heading",raw:De[0],depth:De[2].charAt(0)==="="?1:2,text:De[1],tokens:this.lexer.inline(De[1])}}paragraph(ht){let De=this.rules.block.paragraph.exec(ht);if(De){let we=De[1].charAt(De[1].length-1)===` `?De[1].slice(0,-1):De[1];return{type:"paragraph",raw:De[0],text:we,tokens:this.lexer.inline(we)}}}text(ht){let De=this.rules.block.text.exec(ht);if(De)return{type:"text",raw:De[0],text:De[0],tokens:this.lexer.inline(De[0])}}escape(ht){let De=this.rules.inline.escape.exec(ht);if(De)return{type:"escape",raw:De[0],text:De[1]}}tag(ht){let De=this.rules.inline.tag.exec(ht);if(De)return!this.lexer.state.inLink&&this.rules.other.startATag.test(De[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(De[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(De[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(De[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:De[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:De[0]}}link(ht){let De=this.rules.inline.link.exec(ht);if(De){let we=De[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(we)){if(!this.rules.other.endAngleBracket.test(we))return;let pt=tr(we.slice(0,-1),"\\");if((we.length-pt.length)%2===0)return}else{let pt=Cn(De[2],"()");if(pt===-2)return;if(pt>-1){let We=(De[0].indexOf("!")===0?5:4)+De[1].length+pt;De[2]=De[2].substring(0,pt),De[0]=De[0].substring(0,We).trim(),De[3]=""}}let Ke=De[2],be="";if(this.options.pedantic){let pt=this.rules.other.pedanticHrefTitle.exec(Ke);pt&&(Ke=pt[1],be=pt[3])}else be=De[3]?De[3].slice(1,-1):"";return Ke=Ke.trim(),this.rules.other.startAngleBracket.test(Ke)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(we)?Ke=Ke.slice(1):Ke=Ke.slice(1,-1)),Wn(De,{href:Ke&&Ke.replace(this.rules.inline.anyPunctuation,"$1"),title:be&&be.replace(this.rules.inline.anyPunctuation,"$1")},De[0],this.lexer,this.rules)}}reflink(ht,De){let we;if((we=this.rules.inline.reflink.exec(ht))||(we=this.rules.inline.nolink.exec(ht))){let Ke=(we[2]||we[1]).replace(this.rules.other.multipleSpaceGlobal," "),be=De[Ke.toLowerCase()];if(!be){let pt=we[0].charAt(0);return{type:"text",raw:pt,text:pt}}return Wn(we,be,we[0],this.lexer,this.rules)}}emStrong(ht,De,we=""){let Ke=this.rules.inline.emStrongLDelim.exec(ht);if(!(!Ke||Ke[3]&&we.match(this.rules.other.unicodeAlphaNumeric))&&(!(Ke[1]||Ke[2])||!we||this.rules.inline.punctuation.exec(we))){let be=[...Ke[0]].length-1,pt,We,Je=be,ye=0,Qe=Ke[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(Qe.lastIndex=0,De=De.slice(-1*ht.length+be);(Ke=Qe.exec(De))!=null;){if(pt=Ke[1]||Ke[2]||Ke[3]||Ke[4]||Ke[5]||Ke[6],!pt)continue;if(We=[...pt].length,Ke[3]||Ke[4]){Je+=We;continue}else if((Ke[5]||Ke[6])&&be%3&&!((be+We)%3)){ye+=We;continue}if(Je-=We,Je>0)continue;We=Math.min(We,We+Je+ye);let ze=[...Ke[0]][0].length,qe=ht.slice(0,be+Ke.index+ze+We);if(Math.min(be,We)%2){let zt=qe.slice(1,-1);return{type:"em",raw:qe,text:zt,tokens:this.lexer.inlineTokens(zt)}}let Pt=qe.slice(2,-2);return{type:"strong",raw:qe,text:Pt,tokens:this.lexer.inlineTokens(Pt)}}}}codespan(ht){let De=this.rules.inline.code.exec(ht);if(De){let we=De[2].replace(this.rules.other.newLineCharGlobal," "),Ke=this.rules.other.nonSpaceChar.test(we),be=this.rules.other.startingSpaceChar.test(we)&&this.rules.other.endingSpaceChar.test(we);return Ke&&be&&(we=we.substring(1,we.length-1)),{type:"codespan",raw:De[0],text:we}}}br(ht){let De=this.rules.inline.br.exec(ht);if(De)return{type:"br",raw:De[0]}}del(ht){let De=this.rules.inline.del.exec(ht);if(De)return{type:"del",raw:De[0],text:De[2],tokens:this.lexer.inlineTokens(De[2])}}autolink(ht){let De=this.rules.inline.autolink.exec(ht);if(De){let we,Ke;return De[2]==="@"?(we=De[1],Ke="mailto:"+we):(we=De[1],Ke=we),{type:"link",raw:De[0],text:we,href:Ke,tokens:[{type:"text",raw:we,text:we}]}}}url(ht){let De;if(De=this.rules.inline.url.exec(ht)){let we,Ke;if(De[2]==="@")we=De[0],Ke="mailto:"+we;else{let be;do be=De[0],De[0]=this.rules.inline._backpedal.exec(De[0])?.[0]??"";while(be!==De[0]);we=De[0],De[1]==="www."?Ke="http://"+De[0]:Ke=De[0]}return{type:"link",raw:De[0],text:we,href:Ke,tokens:[{type:"text",raw:we,text:we}]}}}inlineText(ht){let De=this.rules.inline.text.exec(ht);if(De){let we=this.lexer.state.inRawBlock;return{type:"text",raw:De[0],text:De[0],escaped:we}}}},en=class LS{tokens;options;state;tokenizer;inlineQueue;constructor(De){this.tokens=[],this.tokens.links=Object.create(null),this.options=De||g,this.options.tokenizer=this.options.tokenizer||new Fn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let we={other:p,block:nn.normal,inline:Pn.normal};this.options.pedantic?(we.block=nn.pedantic,we.inline=Pn.pedantic):this.options.gfm&&(we.block=nn.gfm,this.options.breaks?we.inline=Pn.breaks:we.inline=Pn.gfm),this.tokenizer.rules=we}static get rules(){return{block:nn,inline:Pn}}static lex(De,we){return new LS(we).lex(De)}static lexInline(De,we){return new LS(we).inlineTokens(De)}lex(De){De=De.replace(p.carriageReturn,` `),this.blockTokens(De,this.tokens);for(let we=0;we<this.inlineQueue.length;we++){let Ke=this.inlineQueue[we];this.inlineTokens(Ke.src,Ke.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(De,we=[],Ke=!1){for(this.options.pedantic&&(De=De.replace(p.tabCharGlobal," ").replace(p.spaceLine,""));De;){let be;if(this.options.extensions?.block?.some(We=>(be=We.call({lexer:this},De,we))?(De=De.substring(be.raw.length),we.push(be),!0):!1))continue;if(be=this.tokenizer.space(De)){De=De.substring(be.raw.length);let We=we.at(-1);be.raw.length===1&&We!==void 0?We.raw+=` `:we.push(be);continue}if(be=this.tokenizer.code(De)){De=De.substring(be.raw.length);let We=we.at(-1);We?.type==="paragraph"||We?.type==="text"?(We.raw+=(We.raw.endsWith(` `)?"":` `)+be.raw,We.text+=` `+be.text,this.inlineQueue.at(-1).src=We.text):we.push(be);continue}if(be=this.tokenizer.fences(De)){De=De.substring(be.raw.length),we.push(be);continue}if(be=this.tokenizer.heading(De)){De=De.substring(be.raw.length),we.push(be);continue}if(be=this.tokenizer.hr(De)){De=De.substring(be.raw.length),we.push(be);continue}if(be=this.tokenizer.blockquote(De)){De=De.substring(be.raw.length),we.push(be);continue}if(be=this.tokenizer.list(De)){De=De.substring(be.raw.length),we.push(be);continue}if(be=this.tokenizer.html(De)){De=De.substring(be.raw.length),we.push(be);continue}if(be=this.tokenizer.def(De)){De=De.substring(be.raw.length);let We=we.at(-1);We?.type==="paragraph"||We?.type==="text"?(We.raw+=(We.raw.endsWith(` `)?"":` `)+be.raw,We.text+=` `+be.raw,this.inlineQueue.at(-1).src=We.text):this.tokens.links[be.tag]||(this.tokens.links[be.tag]={href:be.href,title:be.title},we.push(be));continue}if(be=this.tokenizer.table(De)){De=De.substring(be.raw.length),we.push(be);continue}if(be=this.tokenizer.lheading(De)){De=De.substring(be.raw.length),we.push(be);continue}let pt=De;if(this.options.extensions?.startBlock){let We=1/0,Je=De.slice(1),ye;this.options.extensions.startBlock.forEach(Qe=>{ye=Qe.call({lexer:this},Je),typeof ye=="number"&&ye>=0&&(We=Math.min(We,ye))}),We<1/0&&We>=0&&(pt=De.substring(0,We+1))}if(this.state.top&&(be=this.tokenizer.paragraph(pt))){let We=we.at(-1);Ke&&We?.type==="paragraph"?(We.raw+=(We.raw.endsWith(` `)?"":` `)+be.raw,We.text+=` `+be.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=We.text):we.push(be),Ke=pt.length!==De.length,De=De.substring(be.raw.length);continue}if(be=this.tokenizer.text(De)){De=De.substring(be.raw.length);let We=we.at(-1);We?.type==="text"?(We.raw+=(We.raw.endsWith(` `)?"":` `)+be.raw,We.text+=` `+be.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=We.text):we.push(be);continue}if(De){let We="Infinite loop on byte: "+De.charCodeAt(0);if(this.options.silent){console.error(We);break}else throw new Error(We)}}return this.state.top=!0,we}inline(De,we=[]){return this.inlineQueue.push({src:De,tokens:we}),we}inlineTokens(De,we=[]){let Ke=De,be=null;if(this.tokens.links){let Je=Object.keys(this.tokens.links);if(Je.length>0)for(;(be=this.tokenizer.rules.inline.reflinkSearch.exec(Ke))!=null;)Je.includes(be[0].slice(be[0].lastIndexOf("[")+1,-1))&&(Ke=Ke.slice(0,be.index)+"["+"a".repeat(be[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(be=this.tokenizer.rules.inline.anyPunctuation.exec(Ke))!=null;)Ke=Ke.slice(0,be.index)+"++"+Ke.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(be=this.tokenizer.rules.inline.blockSkip.exec(Ke))!=null;)Ke=Ke.slice(0,be.index)+"["+"a".repeat(be[0].length-2)+"]"+Ke.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);Ke=this.options.hooks?.emStrongMask?.call({lexer:this},Ke)??Ke;let pt=!1,We="";for(;De;){pt||(We=""),pt=!1;let Je;if(this.options.extensions?.inline?.some(Qe=>(Je=Qe.call({lexer:this},De,we))?(De=De.substring(Je.raw.length),we.push(Je),!0):!1))continue;if(Je=this.tokenizer.escape(De)){De=De.substring(Je.raw.length),we.push(Je);continue}if(Je=this.tokenizer.tag(De)){De=De.substring(Je.raw.length),we.push(Je);continue}if(Je=this.tokenizer.link(De)){De=De.substring(Je.raw.length),we.push(Je);continue}if(Je=this.tokenizer.reflink(De,this.tokens.links)){De=De.substring(Je.raw.length);let Qe=we.at(-1);Je.type==="text"&&Qe?.type==="text"?(Qe.raw+=Je.raw,Qe.text+=Je.text):we.push(Je);continue}if(Je=this.tokenizer.emStrong(De,Ke,We)){De=De.substring(Je.raw.length),we.push(Je);continue}if(Je=this.tokenizer.codespan(De)){De=De.substring(Je.raw.length),we.push(Je);continue}if(Je=this.tokenizer.br(De)){De=De.substring(Je.raw.length),we.push(Je);continue}if(Je=this.tokenizer.del(De)){De=De.substring(Je.raw.length),we.push(Je);continue}if(Je=this.tokenizer.autolink(De)){De=De.substring(Je.raw.length),we.push(Je);continue}if(!this.state.inLink&&(Je=this.tokenizer.url(De))){De=De.substring(Je.raw.length),we.push(Je);continue}let ye=De;if(this.options.extensions?.startInline){let Qe=1/0,ze=De.slice(1),qe;this.options.extensions.startInline.forEach(Pt=>{qe=Pt.call({lexer:this},ze),typeof qe=="number"&&qe>=0&&(Qe=Math.min(Qe,qe))}),Qe<1/0&&Qe>=0&&(ye=De.substring(0,Qe+1))}if(Je=this.tokenizer.inlineText(ye)){De=De.substring(Je.raw.length),Je.raw.slice(-1)!=="_"&&(We=Je.raw.slice(-1)),pt=!0;let Qe=we.at(-1);Qe?.type==="text"?(Qe.raw+=Je.raw,Qe.text+=Je.text):we.push(Je);continue}if(De){let Qe="Infinite loop on byte: "+De.charCodeAt(0);if(this.options.silent){console.error(Qe);break}else throw new Error(Qe)}}return we}},gn=class{options;parser;constructor(ht){this.options=ht||g}space(ht){return""}code({text:ht,lang:De,escaped:we}){let Ke=(De||"").match(p.notSpaceStart)?.[0],be=ht.replace(p.endingNewline,"")+` `;return Ke?'<pre><code class="language-'+Kn(Ke)+'">'+(we?be:Kn(be,!0))+`</code></pre> `:"<pre><code>"+(we?be:Kn(be,!0))+`</code></pre> `}blockquote({tokens:ht}){return`<blockquote> ${this.parser.parse(ht)}</blockquote> `}html({text:ht}){return ht}def(ht){return""}heading({tokens:ht,depth:De}){return`<h${De}>${this.parser.parseInline(ht)}</h${De}> `}hr(ht){return`<hr> `}list(ht){let De=ht.ordered,we=ht.start,Ke="";for(let We=0;We<ht.items.length;We++){let Je=ht.items[We];Ke+=this.listitem(Je)}let be=De?"ol":"ul",pt=De&&we!==1?' start="'+we+'"':"";return"<"+be+pt+`> `+Ke+"</"+be+`> `}listitem(ht){let De="";if(ht.task){let we=this.checkbox({checked:!!ht.checked});ht.loose?ht.tokens[0]?.type==="paragraph"?(ht.tokens[0].text=we+" "+ht.tokens[0].text,ht.tokens[0].tokens&&ht.tokens[0].tokens.length>0&&ht.tokens[0].tokens[0].type==="text"&&(ht.tokens[0].tokens[0].text=we+" "+Kn(ht.tokens[0].tokens[0].text),ht.tokens[0].tokens[0].escaped=!0)):ht.tokens.unshift({type:"text",raw:we+" ",text:we+" ",escaped:!0}):De+=we+" "}return De+=this.parser.parse(ht.tokens,!!ht.loose),`<li>${De}</li> `}checkbox({checked:ht}){return"<input "+(ht?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:ht}){return`<p>${this.parser.parseInline(ht)}</p> `}table(ht){let De="",we="";for(let be=0;be<ht.header.length;be++)we+=this.tablecell(ht.header[be]);De+=this.tablerow({text:we});let Ke="";for(let be=0;be<ht.rows.length;be++){let pt=ht.rows[be];we="";for(let We=0;We<pt.length;We++)we+=this.tablecell(pt[We]);Ke+=this.tablerow({text:we})}return Ke&&(Ke=`<tbody>${Ke}</tbody>`),`<table> <thead> `+De+`</thead> `+Ke+`</table> `}tablerow({text:ht}){return`<tr> ${ht}</tr> `}tablecell(ht){let De=this.parser.parseInline(ht.tokens),we=ht.header?"th":"td";return(ht.align?`<${we} align="${ht.align}">`:`<${we}>`)+De+`</${we}> `}strong({tokens:ht}){return`<strong>${this.parser.parseInline(ht)}</strong>`}em({tokens:ht}){return`<em>${this.parser.parseInline(ht)}</em>`}codespan({text:ht}){return`<code>${Kn(ht,!0)}</code>`}br(ht){return"<br>"}del({tokens:ht}){return`<del>${this.parser.parseInline(ht)}</del>`}link({href:ht,title:De,tokens:we}){let Ke=this.parser.parseInline(we),be=ur(ht);if(be===null)return Ke;ht=be;let pt='<a href="'+ht+'"';return De&&(pt+=' title="'+Kn(De)+'"'),pt+=">"+Ke+"</a>",pt}image({href:ht,title:De,text:we,tokens:Ke}){Ke&&(we=this.parser.parseInline(Ke,this.parser.textRenderer));let be=ur(ht);if(be===null)return Kn(we);ht=be;let pt=`<img src="${ht}" alt="${we}"`;return De&&(pt+=` title="${Kn(De)}"`),pt+=">",pt}text(ht){return"tokens"in ht&&ht.tokens?this.parser.parseInline(ht.tokens):"escaped"in ht&&ht.escaped?ht.text:Kn(ht.text)}},kn=class{strong({text:ht}){return ht}em({text:ht}){return ht}codespan({text:ht}){return ht}del({text:ht}){return ht}html({text:ht}){return ht}text({text:ht}){return ht}link({text:ht}){return""+ht}image({text:ht}){return""+ht}br(){return""}},Jn=class NS{options;renderer;textRenderer;constructor(De){this.options=De||g,this.options.renderer=this.options.renderer||new gn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new kn}static parse(De,we){return new NS(we).parse(De)}static parseInline(De,we){return new NS(we).parseInline(De)}parse(De,we=!0){let Ke="";for(let be=0;be<De.length;be++){let pt=De[be];if(this.options.extensions?.renderers?.[pt.type]){let Je=pt,ye=this.options.extensions.renderers[Je.type].call({parser:this},Je);if(ye!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(Je.type)){Ke+=ye||"";continue}}let We=pt;switch(We.type){case"space":{Ke+=this.renderer.space(We);continue}case"hr":{Ke+=this.renderer.hr(We);continue}case"heading":{Ke+=this.renderer.heading(We);continue}case"code":{Ke+=this.renderer.code(We);continue}case"table":{Ke+=this.renderer.table(We);continue}case"blockquote":{Ke+=this.renderer.blockquote(We);continue}case"list":{Ke+=this.renderer.list(We);continue}case"html":{Ke+=this.renderer.html(We);continue}case"def":{Ke+=this.renderer.def(We);continue}case"paragraph":{Ke+=this.renderer.paragraph(We);continue}case"text":{let Je=We,ye=this.renderer.text(Je);for(;be+1<De.length&&De[be+1].type==="text";)Je=De[++be],ye+=` `+this.renderer.text(Je);we?Ke+=this.renderer.paragraph({type:"paragraph",raw:ye,text:ye,tokens:[{type:"text",raw:ye,text:ye,escaped:!0}]}):Ke+=ye;continue}default:{let Je='Token with "'+We.type+'" type was not found.';if(this.options.silent)return console.error(Je),"";throw new Error(Je)}}}return Ke}parseInline(De,we=this.renderer){let Ke="";for(let be=0;be<De.length;be++){let pt=De[be];if(this.options.extensions?.renderers?.[pt.type]){let Je=this.options.extensions.renderers[pt.type].call({parser:this},pt);if(Je!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(pt.type)){Ke+=Je||"";continue}}let We=pt;switch(We.type){case"escape":{Ke+=we.text(We);break}case"html":{Ke+=we.html(We);break}case"link":{Ke+=we.link(We);break}case"image":{Ke+=we.image(We);break}case"strong":{Ke+=we.strong(We);break}case"em":{Ke+=we.em(We);break}case"codespan":{Ke+=we.codespan(We);break}case"br":{Ke+=we.br(We);break}case"del":{Ke+=we.del(We);break}case"text":{Ke+=we.text(We);break}default:{let Je='Token with "'+We.type+'" type was not found.';if(this.options.silent)return console.error(Je),"";throw new Error(Je)}}}return Ke}},Nn=class{options;block;constructor(ht){this.options=ht||g}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(ht){return ht}postprocess(ht){return ht}processAllTokens(ht){return ht}emStrongMask(ht){return ht}provideLexer(){return this.block?en.lex:en.lexInline}provideParser(){return this.block?Jn.parse:Jn.parseInline}},kr=class{defaults=l();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Jn;Renderer=gn;TextRenderer=kn;Lexer=en;Tokenizer=Fn;Hooks=Nn;constructor(...ht){this.use(...ht)}walkTokens(ht,De){let we=[];for(let Ke of ht)switch(we=we.concat(De.call(this,Ke)),Ke.type){case"table":{let be=Ke;for(let pt of be.header)we=we.concat(this.walkTokens(pt.tokens,De));for(let pt of be.rows)for(let We of pt)we=we.concat(this.walkTokens(We.tokens,De));break}case"list":{let be=Ke;we=we.concat(this.walkTokens(be.items,De));break}default:{let be=Ke;this.defaults.extensions?.childTokens?.[be.type]?this.defaults.extensions.childTokens[be.type].forEach(pt=>{let We=be[pt].flat(1/0);we=we.concat(this.walkTokens(We,De))}):be.tokens&&(we=we.concat(this.walkTokens(be.tokens,De)))}}return we}use(...ht){let De=this.defaults.extensions||{renderers:{},childTokens:{}};return ht.forEach(we=>{let Ke={...we};if(Ke.async=this.defaults.async||Ke.async||!1,we.extensions&&(we.extensions.forEach(be=>{if(!be.name)throw new Error("extension name required");if("renderer"in be){let pt=De.renderers[be.name];pt?De.renderers[be.name]=function(...We){let Je=be.renderer.apply(this,We);return Je===!1&&(Je=pt.apply(this,We)),Je}:De.renderers[be.name]=be.renderer}if("tokenizer"in be){if(!be.level||be.level!=="block"&&be.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let pt=De[be.level];pt?pt.unshift(be.tokenizer):De[be.level]=[be.tokenizer],be.start&&(be.level==="block"?De.startBlock?De.startBlock.push(be.start):De.startBlock=[be.start]:be.level==="inline"&&(De.startInline?De.startInline.push(be.start):De.startInline=[be.start]))}"childTokens"in be&&be.childTokens&&(De.childTokens[be.name]=be.childTokens)}),Ke.extensions=De),we.renderer){let be=this.defaults.renderer||new gn(this.defaults);for(let pt in we.renderer){if(!(pt in be))throw new Error(`renderer '${pt}' does not exist`);if(["options","parser"].includes(pt))continue;let We=pt,Je=we.renderer[We],ye=be[We];be[We]=(...Qe)=>{let ze=Je.apply(be,Qe);return ze===!1&&(ze=ye.apply(be,Qe)),ze||""}}Ke.renderer=be}if(we.tokenizer){let be=this.defaults.tokenizer||new Fn(this.defaults);for(let pt in we.tokenizer){if(!(pt in be))throw new Error(`tokenizer '${pt}' does not exist`);if(["options","rules","lexer"].includes(pt))continue;let We=pt,Je=we.tokenizer[We],ye=be[We];be[We]=(...Qe)=>{let ze=Je.apply(be,Qe);return ze===!1&&(ze=ye.apply(be,Qe)),ze}}Ke.tokenizer=be}if(we.hooks){let be=this.defaults.hooks||new Nn;for(let pt in we.hooks){if(!(pt in be))throw new Error(`hook '${pt}' does not exist`);if(["options","block"].includes(pt))continue;let We=pt,Je=we.hooks[We],ye=be[We];Nn.passThroughHooks.has(pt)?be[We]=Qe=>{if(this.defaults.async&&Nn.passThroughHooksRespectAsync.has(pt))return Promise.resolve(Je.call(be,Qe)).then(qe=>ye.call(be,qe));let ze=Je.call(be,Qe);return ye.call(be,ze)}:be[We]=(...Qe)=>{let ze=Je.apply(be,Qe);return ze===!1&&(ze=ye.apply(be,Qe)),ze}}Ke.hooks=be}if(we.walkTokens){let be=this.defaults.walkTokens,pt=we.walkTokens;Ke.walkTokens=function(We){let Je=[];return Je.push(pt.call(this,We)),be&&(Je=Je.concat(be.call(this,We))),Je}}this.defaults={...this.defaults,...Ke}}),this}setOptions(ht){return this.defaults={...this.defaults,...ht},this}lexer(ht,De){return en.lex(ht,De??this.defaults)}parser(ht,De){return Jn.parse(ht,De??this.defaults)}parseMarkdown(ht){return(De,we)=>{let Ke={...we},be={...this.defaults,...Ke},pt=this.onError(!!be.silent,!!be.async);if(this.defaults.async===!0&&Ke.async===!1)return pt(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof De>"u"||De===null)return pt(new Error("marked(): input parameter is undefined or null"));if(typeof De!="string")return pt(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(De)+", string expected"));be.hooks&&(be.hooks.options=be,be.hooks.block=ht);let We=be.hooks?be.hooks.provideLexer():ht?en.lex:en.lexInline,Je=be.hooks?be.hooks.provideParser():ht?Jn.parse:Jn.parseInline;if(be.async)return Promise.resolve(be.hooks?be.hooks.preprocess(De):De).then(ye=>We(ye,be)).then(ye=>be.hooks?be.hooks.processAllTokens(ye):ye).then(ye=>be.walkTokens?Promise.all(this.walkTokens(ye,be.walkTokens)).then(()=>ye):ye).then(ye=>Je(ye,be)).then(ye=>be.hooks?be.hooks.postprocess(ye):ye).catch(pt);try{be.hooks&&(De=be.hooks.preprocess(De));let ye=We(De,be);be.hooks&&(ye=be.hooks.processAllTokens(ye)),be.walkTokens&&this.walkTokens(ye,be.walkTokens);let Qe=Je(ye,be);return be.hooks&&(Qe=be.hooks.postprocess(Qe)),Qe}catch(ye){return pt(ye)}}}onError(ht,De){return we=>{if(we.message+=` Please report this to https://github.com/markedjs/marked.`,ht){let Ke="<p>An error occurred:</p><pre>"+Kn(we.message+"",!0)+"</pre>";return De?Promise.resolve(Ke):Ke}if(De)return Promise.reject(we);throw we}}},bt=new kr;function ne(ht,De){return bt.parse(ht,De)}ne.options=ne.setOptions=function(ht){return bt.setOptions(ht),ne.defaults=bt.defaults,y(ne.defaults),ne},ne.getDefaults=l,ne.defaults=g,ne.use=function(...ht){return bt.use(...ht),ne.defaults=bt.defaults,y(ne.defaults),ne},ne.walkTokens=function(ht,De){return bt.walkTokens(ht,De)},ne.parseInline=bt.parseInline,ne.Parser=Jn,ne.parser=Jn.parse,ne.Renderer=gn,ne.TextRenderer=kn,ne.Lexer=en,ne.lexer=en.lex,ne.Tokenizer=Fn,ne.Hooks=Nn,ne.parse=ne;var fe=ne.options,K=ne.setOptions,he=ne.use,Fe=ne.walkTokens,Nt=ne.parseInline,ln=null,pn=Jn.parse,Yn=en.lex},60365:(Ge,w,u)=>{"use strict";u.d(w,{F:()=>se});var l=u(5305);function g(te,A){const[T,B]=(0,l.x)(te,A.start,A.end);return{start:T,end:B}}var y=u(66907),x=u(1108),f=u(61501),p=u(29407);function h(te,A){const T=(0,p.a)(te,A?.in);return T.setHours(0,0,0,0),T}const E=null;function v(te,A,T){const[B,X]=(0,l.x)(T?.in,te,A),ue=h(B),ie=h(X),Te=+ue-(0,x.G)(ue),je=+ie-(0,x.G)(ie);return Math.round((Te-je)/f.w4)}const m=null;function S(te,A,T){const[B,X]=(0,l.x)(T?.in,te,A),ue=d(B,X),ie=Math.abs(v(B,X));B.setDate(B.getDate()-ue*ie);const Te=+(d(B,X)===-ue),je=ue*(ie-Te);return je===0?0:je}function d(te,A){const T=te.getFullYear()-A.getFullYear()||te.getMonth()-A.getMonth()||te.getDate()-A.getDate()||te.getHours()-A.getHours()||te.getMinutes()-A.getMinutes()||te.getSeconds()-A.getSeconds()||te.getMilliseconds()-A.getMilliseconds();return T<0?-1:T>0?1:T}const O=null;var R=u(14936);function C(te,A,T){const[B,X]=(0,l.x)(T?.in,te,A),ue=(+B-+X)/f.s0;return(0,R.u)(T?.roundingMethod)(ue)}const L=null;var j=u(92488);function I(te,A,T){const B=(0,j.b)(te,A)/f.Cg;return(0,R.u)(T?.roundingMethod)(B)}const U=null;var $=u(71696),ee=u(91349),re=u(96054);function Se(te,A,T){const[B,X]=(0,l.x)(T?.in,te,A);return B.getFullYear()-X.getFullYear()}const z=null;function Q(te,A,T){const[B,X]=(0,l.x)(T?.in,te,A),ue=(0,re.z)(B,X),ie=Math.abs(Se(B,X));B.setFullYear(1584),X.setFullYear(1584);const Te=(0,re.z)(B,X)===-ue,je=ue*(ie-+Te);return je===0?0:je}const ce=null;function se(te,A){const{start:T,end:B}=g(A?.in,te),X={},ue=Q(B,T);ue&&(X.years=ue);const ie=(0,y.W)(T,{years:X.years}),Te=(0,$.W)(B,ie);Te&&(X.months=Te);const je=(0,y.W)(ie,{months:X.months}),yt=S(B,je);yt&&(X.days=yt);const tt=(0,y.W)(je,{days:X.days}),Ze=C(B,tt);Ze&&(X.hours=Ze);const Ne=(0,y.W)(tt,{hours:X.hours}),it=I(B,Ne);it&&(X.minutes=it);const Rt=(0,y.W)(Ne,{minutes:X.minutes}),Dn=(0,ee.O)(B,Rt);return Dn&&(X.seconds=Dn),X}const q=null},60415:(Ge,w,u)=>{"use strict";u.d(w,{Cc:()=>O,wR:()=>j});var l=u(96540);const g={prefix:String(Math.round(Math.random()*1e10)),current:0},y=l.createContext(g),x=l.createContext(!1);function f(I){let U=$670gB$useContext(y),$=m(U===g),[ee,re]=$670gB$useState(!0),Se=$670gB$useMemo(()=>({prefix:U===g?"":`${U.prefix}-${$}`,current:0}),[U,$]);return typeof document<"u"&&$670gB$useLayoutEffect(()=>{re(!1)},[]),$670gB$react.createElement(y.Provider,{value:Se},$670gB$react.createElement(x.Provider,{value:ee},I.children))}let p=!1;function h(I){return typeof $670gB$react.useId=="function"?$670gB$react.createElement($670gB$react.Fragment,null,I.children):$670gB$react.createElement(f,I)}let E=!!(typeof window<"u"&&window.document&&window.document.createElement),v=new WeakMap;function m(I=!1){let U=(0,l.useContext)(y),$=(0,l.useRef)(null);if($.current===null&&!I){var ee,re;let Se=(re=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||re===void 0||(ee=re.ReactCurrentOwner)===null||ee===void 0?void 0:ee.current;if(Se){let z=v.get(Se);z==null?v.set(Se,{id:U.current,state:Se.memoizedState}):Se.memoizedState!==z.state&&(U.current=z.id,v.delete(Se))}$.current=++U.current}return $.current}function S(I){let U=(0,l.useContext)(y),$=m(!!I),ee=`react-aria${U.prefix}`;return I||`${ee}-${$}`}function d(I){let U=l.useId(),[$]=(0,l.useState)(j()),ee=$?"react-aria":`react-aria${g.prefix}`;return I||`${ee}-${U}`}const O=typeof l.useId=="function"?d:S;function R(){return!1}function C(){return!0}function L(I){return()=>{}}function j(){return typeof l.useSyncExternalStore=="function"?l.useSyncExternalStore(L,R,C):(0,l.useContext)(x)}},60455:(Ge,w,u)=>{function l(){}Ge.exports=l;var g=u(77672),y=u(89634),x=u(93237),f=u(64969),p=u(15350),h=u(89516),E=u(28757);Object.assign(l.prototype,p),Object.assign(l.prototype,g),l.prototype.stringify=E.stringify,l.prototype.parse=f.parse,l.prototype.bodyParser=function(v){v||(v={});var m=v.contentType||"application/logplex-1";return y({contentType:m,parser:this.parse})},l.prototype.bodyParserStream=function(v){v||(v={});var m=v.contentType||"application/logplex-1";return x({contentType:m})},l.prototype.requestLogger=function(v,m){return h.init(this,v,m)},l.prototype.requestLogger.commonFormatter=h.commonFormatter,Object.assign(l,l.prototype)},60466:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});function l(y){if(y.path?.length){let x="";for(const f of y.path){const p=typeof f=="object"?f.key:f;if(typeof p=="string"||typeof p=="number")x?x+=`.${p}`:x+=p;else return null}return x}return null}var g=class extends Error{issues;constructor(y){super(y[0].message),this.name="SchemaError",this.issues=y}}},60598:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.takeWhile=void 0;var l=u(65212),g=u(17214);function y(x,f){return f===void 0&&(f=!1),l.operate(function(p,h){var E=0;p.subscribe(g.createOperatorSubscriber(h,function(v){var m=x(v,E++);(m||f)&&h.next(v),!m&&h.complete()}))})}w.takeWhile=y},60697:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.calcLineCount=m,w.merge=S;var l=u(13165),g=u(70290),y=u(87364);function x(q){return E(q)||h(q)||p(q)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(q,te){if(q){if(typeof q=="string")return v(q,te);var A=Object.prototype.toString.call(q).slice(8,-1);if(A==="Object"&&q.constructor&&(A=q.constructor.name),A==="Map"||A==="Set")return Array.from(q);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return v(q,te)}}function h(q){if(typeof Symbol<"u"&&Symbol.iterator in Object(q))return Array.from(q)}function E(q){if(Array.isArray(q))return v(q)}function v(q,te){(te==null||te>q.length)&&(te=q.length);for(var A=0,T=new Array(te);A<te;A++)T[A]=q[A];return T}function m(q){var te=se(q.lines),A=te.oldLines,T=te.newLines;A!==void 0?q.oldLines=A:delete q.oldLines,T!==void 0?q.newLines=T:delete q.newLines}function S(q,te,A){q=d(q,A),te=d(te,A);var T={};(q.index||te.index)&&(T.index=q.index||te.index),(q.newFileName||te.newFileName)&&(O(q)?O(te)?(T.oldFileName=R(T,q.oldFileName,te.oldFileName),T.newFileName=R(T,q.newFileName,te.newFileName),T.oldHeader=R(T,q.oldHeader,te.oldHeader),T.newHeader=R(T,q.newHeader,te.newHeader)):(T.oldFileName=q.oldFileName,T.newFileName=q.newFileName,T.oldHeader=q.oldHeader,T.newHeader=q.newHeader):(T.oldFileName=te.oldFileName||q.oldFileName,T.newFileName=te.newFileName||q.newFileName,T.oldHeader=te.oldHeader||q.oldHeader,T.newHeader=te.newHeader||q.newHeader)),T.hunks=[];for(var B=0,X=0,ue=0,ie=0;B<q.hunks.length||X<te.hunks.length;){var Te=q.hunks[B]||{oldStart:1/0},je=te.hunks[X]||{oldStart:1/0};if(C(Te,je))T.hunks.push(L(Te,ue)),B++,ie+=Te.newLines-Te.oldLines;else if(C(je,Te))T.hunks.push(L(je,ie)),X++,ue+=je.newLines-je.oldLines;else{var yt={oldStart:Math.min(Te.oldStart,je.oldStart),oldLines:0,newStart:Math.min(Te.newStart+ue,je.oldStart+ie),newLines:0,lines:[]};j(yt,Te.oldStart,Te.lines,je.oldStart,je.lines),X++,B++,T.hunks.push(yt)}}return T}function d(q,te){if(typeof q=="string"){if(/^@@/m.test(q)||/^Index:/m.test(q))return(0,g.parsePatch)(q)[0];if(!te)throw new Error("Must provide a base reference or pass in a patch");return(0,l.structuredPatch)(void 0,void 0,te,q)}return q}function O(q){return q.newFileName&&q.newFileName!==q.oldFileName}function R(q,te,A){return te===A?te:(q.conflict=!0,{mine:te,theirs:A})}function C(q,te){return q.oldStart<te.oldStart&&q.oldStart+q.oldLines<te.oldStart}function L(q,te){return{oldStart:q.oldStart,oldLines:q.oldLines,newStart:q.newStart+te,newLines:q.newLines,lines:q.lines}}function j(q,te,A,T,B){var X={offset:te,lines:A,index:0},ue={offset:T,lines:B,index:0};for(ee(q,X,ue),ee(q,ue,X);X.index<X.lines.length&&ue.index<ue.lines.length;){var ie=X.lines[X.index],Te=ue.lines[ue.index];if((ie[0]==="-"||ie[0]==="+")&&(Te[0]==="-"||Te[0]==="+"))I(q,X,ue);else if(ie[0]==="+"&&Te[0]===" "){var je;(je=q.lines).push.apply(je,x(Se(X)))}else if(Te[0]==="+"&&ie[0]===" "){var yt;(yt=q.lines).push.apply(yt,x(Se(ue)))}else ie[0]==="-"&&Te[0]===" "?U(q,X,ue):Te[0]==="-"&&ie[0]===" "?U(q,ue,X,!0):ie===Te?(q.lines.push(ie),X.index++,ue.index++):$(q,Se(X),Se(ue))}re(q,X),re(q,ue),m(q)}function I(q,te,A){var T=Se(te),B=Se(A);if(Q(T)&&Q(B)){if((0,y.arrayStartsWith)(T,B)&&ce(A,T,T.length-B.length)){var X;(X=q.lines).push.apply(X,x(T));return}else if((0,y.arrayStartsWith)(B,T)&&ce(te,B,B.length-T.length)){var ue;(ue=q.lines).push.apply(ue,x(B));return}}else if((0,y.arrayEqual)(T,B)){var ie;(ie=q.lines).push.apply(ie,x(T));return}$(q,T,B)}function U(q,te,A,T){var B=Se(te),X=z(A,B);if(X.merged){var ue;(ue=q.lines).push.apply(ue,x(X.merged))}else $(q,T?X:B,T?B:X)}function $(q,te,A){q.conflict=!0,q.lines.push({conflict:!0,mine:te,theirs:A})}function ee(q,te,A){for(;te.offset<A.offset&&te.index<te.lines.length;){var T=te.lines[te.index++];q.lines.push(T),te.offset++}}function re(q,te){for(;te.index<te.lines.length;){var A=te.lines[te.index++];q.lines.push(A)}}function Se(q){for(var te=[],A=q.lines[q.index][0];q.index<q.lines.length;){var T=q.lines[q.index];if(A==="-"&&T[0]==="+"&&(A="+"),A===T[0])te.push(T),q.index++;else break}return te}function z(q,te){for(var A=[],T=[],B=0,X=!1,ue=!1;B<te.length&&q.index<q.lines.length;){var ie=q.lines[q.index],Te=te[B];if(Te[0]==="+")break;if(X=X||ie[0]!==" ",T.push(Te),B++,ie[0]==="+")for(ue=!0;ie[0]==="+";)A.push(ie),ie=q.lines[++q.index];Te.substr(1)===ie.substr(1)?(A.push(ie),q.index++):ue=!0}if((te[B]||"")[0]==="+"&&X&&(ue=!0),ue)return A;for(;B<te.length;)T.push(te[B++]);return{merged:T,changes:A}}function Q(q){return q.reduce(function(te,A){return te&&A[0]==="-"},!0)}function ce(q,te,A){for(var T=0;T<A;T++){var B=te[te.length-A+T].substr(1);if(q.lines[q.index+T]!==" "+B)return!1}return q.index+=A,!0}function se(q){var te=0,A=0;return q.forEach(function(T){if(typeof T!="string"){var B=se(T.mine),X=se(T.theirs);te!==void 0&&(B.oldLines===X.oldLines?te+=B.oldLines:te=void 0),A!==void 0&&(B.newLines===X.newLines?A+=B.newLines:A=void 0)}else A!==void 0&&(T[0]==="+"||T[0]===" ")&&A++,te!==void 0&&(T[0]==="-"||T[0]===" ")&&te++}),{oldLines:te,newLines:A}}},60950:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.VisualState=void 0;var u;(function(l){l.animatingIn="animating-in",l.showing="showing",l.animatingOut="animating-out",l.hidden="hidden"})(u=w.VisualState||(w.VisualState={}))},61105:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.call=p,w.default=void 0,w.note=x,w.noteOnce=E,w.preMessage=void 0,w.resetWarned=f,w.warning=y,w.warningOnce=h;var u={},l=[],g=w.preMessage=function(S){l.push(S)};function y(m,S){if(0)var d}function x(m,S){if(0)var d}function f(){u={}}function p(m,S,d){!S&&!u[d]&&(m(!1,d),u[d]=!0)}function h(m,S){p(y,m,S)}function E(m,S){p(x,m,S)}h.preMessage=g,h.resetWarned=f,h.noteOnce=E;var v=w.default=h},61279:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.elementAt=void 0;var l=u(7024),g=u(85934),y=u(30632),x=u(58799),f=u(54383);function p(h,E){if(h<0)throw new l.ArgumentOutOfRangeError;var v=arguments.length>=2;return function(m){return m.pipe(g.filter(function(S,d){return d===h}),f.take(1),v?x.defaultIfEmpty(E):y.throwIfEmpty(function(){return new l.ArgumentOutOfRangeError}))}}w.elementAt=p},61417:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{BrowserRouter:()=>yt,HashRouter:()=>tt,Link:()=>Wt,MemoryRouter:()=>l.fS,NavLink:()=>me,Prompt:()=>l.XG,Redirect:()=>l.rd,Route:()=>l.qh,Router:()=>l.Ix,StaticRouter:()=>l.kO,Switch:()=>l.dO,generatePath:()=>l.tW,matchPath:()=>l.B6,useHistory:()=>l.W6,useLocation:()=>l.zy,useParams:()=>l.g,useRouteMatch:()=>l.W5,withRouter:()=>l.y});var l=u(96014);function g(Ee,_e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ge,Me){return ge.__proto__=Me,ge},g(Ee,_e)}function y(Ee,_e){Ee.prototype=Object.create(_e.prototype),Ee.prototype.constructor=Ee,g(Ee,_e)}var x=u(96540);function f(){return f=Object.assign?Object.assign.bind():function(Ee){for(var _e=1;_e<arguments.length;_e++){var ge=arguments[_e];for(var Me in ge)({}).hasOwnProperty.call(ge,Me)&&(Ee[Me]=ge[Me])}return Ee},f.apply(null,arguments)}var p=u(34307),h=u(11561);function E(Ee){return Ee.charAt(0)==="/"?Ee:"/"+Ee}function v(Ee){return Ee.charAt(0)==="/"?Ee.substr(1):Ee}function m(Ee,_e){return Ee.toLowerCase().indexOf(_e.toLowerCase())===0&&"/?#".indexOf(Ee.charAt(_e.length))!==-1}function S(Ee,_e){return m(Ee,_e)?Ee.substr(_e.length):Ee}function d(Ee){return Ee.charAt(Ee.length-1)==="/"?Ee.slice(0,-1):Ee}function O(Ee){var _e=Ee||"/",ge="",Me="",lt=_e.indexOf("#");lt!==-1&&(Me=_e.substr(lt),_e=_e.substr(0,lt));var Ft=_e.indexOf("?");return Ft!==-1&&(ge=_e.substr(Ft),_e=_e.substr(0,Ft)),{pathname:_e,search:ge==="?"?"":ge,hash:Me==="#"?"":Me}}function R(Ee){var _e=Ee.pathname,ge=Ee.search,Me=Ee.hash,lt=_e||"/";return ge&&ge!=="?"&&(lt+=ge.charAt(0)==="?"?ge:"?"+ge),Me&&Me!=="#"&&(lt+=Me.charAt(0)==="#"?Me:"#"+Me),lt}function C(Ee,_e,ge,Me){var lt;typeof Ee=="string"?(lt=O(Ee),lt.state=_e):(lt=f({},Ee),lt.pathname===void 0&&(lt.pathname=""),lt.search?lt.search.charAt(0)!=="?"&&(lt.search="?"+lt.search):lt.search="",lt.hash?lt.hash.charAt(0)!=="#"&&(lt.hash="#"+lt.hash):lt.hash="",_e!==void 0&<.state===void 0&&(lt.state=_e));try{lt.pathname=decodeURI(lt.pathname)}catch(Ft){throw Ft instanceof URIError?new URIError('Pathname "'+lt.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):Ft}return ge&&(lt.key=ge),Me?lt.pathname?lt.pathname.charAt(0)!=="/"&&(lt.pathname=(0,p.A)(lt.pathname,Me.pathname)):lt.pathname=Me.pathname:lt.pathname||(lt.pathname="/"),lt}function L(Ee,_e){return Ee.pathname===_e.pathname&&Ee.search===_e.search&&Ee.hash===_e.hash&&Ee.key===_e.key&&valueEqual(Ee.state,_e.state)}function j(){var Ee=null;function _e(Et){return Ee=Et,function(){Ee===Et&&(Ee=null)}}function ge(Et,Zt,nn,Pn){if(Ee!=null){var rn=typeof Ee=="function"?Ee(Et,Zt):Ee;typeof rn=="string"?typeof nn=="function"?nn(rn,Pn):Pn(!0):Pn(rn!==!1)}else Pn(!0)}var Me=[];function lt(Et){var Zt=!0;function nn(){Zt&&Et.apply(void 0,arguments)}return Me.push(nn),function(){Zt=!1,Me=Me.filter(function(Pn){return Pn!==nn})}}function Ft(){for(var Et=arguments.length,Zt=new Array(Et),nn=0;nn<Et;nn++)Zt[nn]=arguments[nn];Me.forEach(function(Pn){return Pn.apply(void 0,Zt)})}return{setPrompt:_e,confirmTransitionTo:ge,appendListener:lt,notifyListeners:Ft}}var I=!!(typeof window<"u"&&window.document&&window.document.createElement);function U(Ee,_e){_e(window.confirm(Ee))}function $(){var Ee=window.navigator.userAgent;return(Ee.indexOf("Android 2.")!==-1||Ee.indexOf("Android 4.0")!==-1)&&Ee.indexOf("Mobile Safari")!==-1&&Ee.indexOf("Chrome")===-1&&Ee.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function ee(){return window.navigator.userAgent.indexOf("Trident")===-1}function re(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Se(Ee){return Ee.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var z="popstate",Q="hashchange";function ce(){try{return window.history.state||{}}catch{return{}}}function se(Ee){Ee===void 0&&(Ee={}),I||(0,h.A)(!1);var _e=window.history,ge=$(),Me=!ee(),lt=Ee,Ft=lt.forceRefresh,Et=Ft===void 0?!1:Ft,Zt=lt.getUserConfirmation,nn=Zt===void 0?U:Zt,Pn=lt.keyLength,rn=Pn===void 0?6:Pn,Vt=Ee.basename?d(E(Ee.basename)):"";function Kn(Yn){var ht=Yn||{},De=ht.key,we=ht.state,Ke=window.location,be=Ke.pathname,pt=Ke.search,We=Ke.hash,Je=be+pt+We;return Vt&&(Je=S(Je,Vt)),C(Je,we,De)}function ur(){return Math.random().toString(36).substr(2,rn)}var on=j();function tr(Yn){f(pn,Yn),pn.length=_e.length,on.notifyListeners(pn.location,pn.action)}function Cn(Yn){Se(Yn)||Fn(Kn(Yn.state))}function Wn(){Fn(Kn(ce()))}var er=!1;function Fn(Yn){if(er)er=!1,tr();else{var ht="POP";on.confirmTransitionTo(Yn,ht,nn,function(De){De?tr({action:ht,location:Yn}):en(Yn)})}}function en(Yn){var ht=pn.location,De=kn.indexOf(ht.key);De===-1&&(De=0);var we=kn.indexOf(Yn.key);we===-1&&(we=0);var Ke=De-we;Ke&&(er=!0,bt(Ke))}var gn=Kn(ce()),kn=[gn.key];function Jn(Yn){return Vt+R(Yn)}function Nn(Yn,ht){var De="PUSH",we=C(Yn,ht,ur(),pn.location);on.confirmTransitionTo(we,De,nn,function(Ke){if(Ke){var be=Jn(we),pt=we.key,We=we.state;if(ge)if(_e.pushState({key:pt,state:We},null,be),Et)window.location.href=be;else{var Je=kn.indexOf(pn.location.key),ye=kn.slice(0,Je+1);ye.push(we.key),kn=ye,tr({action:De,location:we})}else window.location.href=be}})}function kr(Yn,ht){var De="REPLACE",we=C(Yn,ht,ur(),pn.location);on.confirmTransitionTo(we,De,nn,function(Ke){if(Ke){var be=Jn(we),pt=we.key,We=we.state;if(ge)if(_e.replaceState({key:pt,state:We},null,be),Et)window.location.replace(be);else{var Je=kn.indexOf(pn.location.key);Je!==-1&&(kn[Je]=we.key),tr({action:De,location:we})}else window.location.replace(be)}})}function bt(Yn){_e.go(Yn)}function ne(){bt(-1)}function fe(){bt(1)}var K=0;function he(Yn){K+=Yn,K===1&&Yn===1?(window.addEventListener(z,Cn),Me&&window.addEventListener(Q,Wn)):K===0&&(window.removeEventListener(z,Cn),Me&&window.removeEventListener(Q,Wn))}var Fe=!1;function Nt(Yn){Yn===void 0&&(Yn=!1);var ht=on.setPrompt(Yn);return Fe||(he(1),Fe=!0),function(){return Fe&&(Fe=!1,he(-1)),ht()}}function ln(Yn){var ht=on.appendListener(Yn);return he(1),function(){he(-1),ht()}}var pn={length:_e.length,action:"POP",location:gn,createHref:Jn,push:Nn,replace:kr,go:bt,goBack:ne,goForward:fe,block:Nt,listen:ln};return pn}var q="hashchange",te={hashbang:{encodePath:function(_e){return _e.charAt(0)==="!"?_e:"!/"+v(_e)},decodePath:function(_e){return _e.charAt(0)==="!"?_e.substr(1):_e}},noslash:{encodePath:v,decodePath:E},slash:{encodePath:E,decodePath:E}};function A(Ee){var _e=Ee.indexOf("#");return _e===-1?Ee:Ee.slice(0,_e)}function T(){var Ee=window.location.href,_e=Ee.indexOf("#");return _e===-1?"":Ee.substring(_e+1)}function B(Ee){window.location.hash=Ee}function X(Ee){window.location.replace(A(window.location.href)+"#"+Ee)}function ue(Ee){Ee===void 0&&(Ee={}),I||(0,h.A)(!1);var _e=window.history,ge=re(),Me=Ee,lt=Me.getUserConfirmation,Ft=lt===void 0?U:lt,Et=Me.hashType,Zt=Et===void 0?"slash":Et,nn=Ee.basename?d(E(Ee.basename)):"",Pn=te[Zt],rn=Pn.encodePath,Vt=Pn.decodePath;function Kn(){var De=Vt(T());return nn&&(De=S(De,nn)),C(De)}var ur=j();function on(De){f(ht,De),ht.length=_e.length,ur.notifyListeners(ht.location,ht.action)}var tr=!1,Cn=null;function Wn(De,we){return De.pathname===we.pathname&&De.search===we.search&&De.hash===we.hash}function er(){var De=T(),we=rn(De);if(De!==we)X(we);else{var Ke=Kn(),be=ht.location;if(!tr&&Wn(be,Ke)||Cn===R(Ke))return;Cn=null,Fn(Ke)}}function Fn(De){if(tr)tr=!1,on();else{var we="POP";ur.confirmTransitionTo(De,we,Ft,function(Ke){Ke?on({action:we,location:De}):en(De)})}}function en(De){var we=ht.location,Ke=Nn.lastIndexOf(R(we));Ke===-1&&(Ke=0);var be=Nn.lastIndexOf(R(De));be===-1&&(be=0);var pt=Ke-be;pt&&(tr=!0,fe(pt))}var gn=T(),kn=rn(gn);gn!==kn&&X(kn);var Jn=Kn(),Nn=[R(Jn)];function kr(De){var we=document.querySelector("base"),Ke="";return we&&we.getAttribute("href")&&(Ke=A(window.location.href)),Ke+"#"+rn(nn+R(De))}function bt(De,we){var Ke="PUSH",be=C(De,void 0,void 0,ht.location);ur.confirmTransitionTo(be,Ke,Ft,function(pt){if(pt){var We=R(be),Je=rn(nn+We),ye=T()!==Je;if(ye){Cn=We,B(Je);var Qe=Nn.lastIndexOf(R(ht.location)),ze=Nn.slice(0,Qe+1);ze.push(We),Nn=ze,on({action:Ke,location:be})}else on()}})}function ne(De,we){var Ke="REPLACE",be=C(De,void 0,void 0,ht.location);ur.confirmTransitionTo(be,Ke,Ft,function(pt){if(pt){var We=R(be),Je=rn(nn+We),ye=T()!==Je;ye&&(Cn=We,X(Je));var Qe=Nn.indexOf(R(ht.location));Qe!==-1&&(Nn[Qe]=We),on({action:Ke,location:be})}})}function fe(De){_e.go(De)}function K(){fe(-1)}function he(){fe(1)}var Fe=0;function Nt(De){Fe+=De,Fe===1&&De===1?window.addEventListener(q,er):Fe===0&&window.removeEventListener(q,er)}var ln=!1;function pn(De){De===void 0&&(De=!1);var we=ur.setPrompt(De);return ln||(Nt(1),ln=!0),function(){return ln&&(ln=!1,Nt(-1)),we()}}function Yn(De){var we=ur.appendListener(De);return Nt(1),function(){Nt(-1),we()}}var ht={length:_e.length,action:"POP",location:Jn,createHref:kr,push:bt,replace:ne,go:fe,goBack:K,goForward:he,block:pn,listen:Yn};return ht}function ie(Ee,_e,ge){return Math.min(Math.max(Ee,_e),ge)}function Te(Ee){Ee===void 0&&(Ee={});var _e=Ee,ge=_e.getUserConfirmation,Me=_e.initialEntries,lt=Me===void 0?["/"]:Me,Ft=_e.initialIndex,Et=Ft===void 0?0:Ft,Zt=_e.keyLength,nn=Zt===void 0?6:Zt,Pn=j();function rn(Nn){_extends(Jn,Nn),Jn.length=Jn.entries.length,Pn.notifyListeners(Jn.location,Jn.action)}function Vt(){return Math.random().toString(36).substr(2,nn)}var Kn=ie(Et,0,lt.length-1),ur=lt.map(function(Nn){return typeof Nn=="string"?C(Nn,void 0,Vt()):C(Nn,void 0,Nn.key||Vt())}),on=R;function tr(Nn,kr){var bt="PUSH",ne=C(Nn,kr,Vt(),Jn.location);Pn.confirmTransitionTo(ne,bt,ge,function(fe){if(fe){var K=Jn.index,he=K+1,Fe=Jn.entries.slice(0);Fe.length>he?Fe.splice(he,Fe.length-he,ne):Fe.push(ne),rn({action:bt,location:ne,index:he,entries:Fe})}})}function Cn(Nn,kr){var bt="REPLACE",ne=C(Nn,kr,Vt(),Jn.location);Pn.confirmTransitionTo(ne,bt,ge,function(fe){fe&&(Jn.entries[Jn.index]=ne,rn({action:bt,location:ne}))})}function Wn(Nn){var kr=ie(Jn.index+Nn,0,Jn.entries.length-1),bt="POP",ne=Jn.entries[kr];Pn.confirmTransitionTo(ne,bt,ge,function(fe){fe?rn({action:bt,location:ne,index:kr}):rn()})}function er(){Wn(-1)}function Fn(){Wn(1)}function en(Nn){var kr=Jn.index+Nn;return kr>=0&&kr<Jn.entries.length}function gn(Nn){return Nn===void 0&&(Nn=!1),Pn.setPrompt(Nn)}function kn(Nn){return Pn.appendListener(Nn)}var Jn={length:ur.length,action:"POP",location:ur[Kn],index:Kn,entries:ur,createHref:on,push:tr,replace:Cn,go:Wn,goBack:er,goForward:Fn,canGo:en,block:gn,listen:kn};return Jn}function je(Ee,_e){if(Ee==null)return{};var ge={};for(var Me in Ee)if({}.hasOwnProperty.call(Ee,Me)){if(_e.indexOf(Me)!==-1)continue;ge[Me]=Ee[Me]}return ge}var yt=function(Ee){y(_e,Ee);function _e(){for(var Me,lt=arguments.length,Ft=new Array(lt),Et=0;Et<lt;Et++)Ft[Et]=arguments[Et];return Me=Ee.call.apply(Ee,[this].concat(Ft))||this,Me.history=se(Me.props),Me}var ge=_e.prototype;return ge.render=function(){return x.createElement(l.Ix,{history:this.history,children:this.props.children})},_e}(x.Component),tt=function(Ee){y(_e,Ee);function _e(){for(var Me,lt=arguments.length,Ft=new Array(lt),Et=0;Et<lt;Et++)Ft[Et]=arguments[Et];return Me=Ee.call.apply(Ee,[this].concat(Ft))||this,Me.history=ue(Me.props),Me}var ge=_e.prototype;return ge.render=function(){return x.createElement(l.Ix,{history:this.history,children:this.props.children})},_e}(x.Component),Ze=function(_e,ge){return typeof _e=="function"?_e(ge):_e},Ne=function(_e,ge){return typeof _e=="string"?C(_e,null,null,ge):_e},it=function(_e){return _e},Rt=x.forwardRef;typeof Rt>"u"&&(Rt=it);function Dn(Ee){return!!(Ee.metaKey||Ee.altKey||Ee.ctrlKey||Ee.shiftKey)}var Mt=Rt(function(Ee,_e){var ge=Ee.innerRef,Me=Ee.navigate,lt=Ee.onClick,Ft=je(Ee,["innerRef","navigate","onClick"]),Et=Ft.target,Zt=f({},Ft,{onClick:function(Pn){try{lt&<(Pn)}catch(rn){throw Pn.preventDefault(),rn}!Pn.defaultPrevented&&Pn.button===0&&(!Et||Et==="_self")&&!Dn(Pn)&&(Pn.preventDefault(),Me())}});return it!==Rt?Zt.ref=_e||ge:Zt.ref=ge,x.createElement("a",Zt)}),Wt=Rt(function(Ee,_e){var ge=Ee.component,Me=ge===void 0?Mt:ge,lt=Ee.replace,Ft=Ee.to,Et=Ee.innerRef,Zt=je(Ee,["component","replace","to","innerRef"]);return x.createElement(l.XZ.Consumer,null,function(nn){nn||(0,h.A)(!1);var Pn=nn.history,rn=Ne(Ze(Ft,nn.location),nn.location),Vt=rn?Pn.createHref(rn):"",Kn=f({},Zt,{href:Vt,navigate:function(){var on=Ze(Ft,nn.location),tr=R(nn.location)===R(Ne(on)),Cn=lt||tr?Pn.replace:Pn.push;Cn(on)}});return it!==Rt?Kn.ref=_e||Et:Kn.innerRef=Et,x.createElement(Me,Kn)})});if(0)var Tn,bn;var $t=function(_e){return _e},Ct=x.forwardRef;typeof Ct>"u"&&(Ct=$t);function Z(){for(var Ee=arguments.length,_e=new Array(Ee),ge=0;ge<Ee;ge++)_e[ge]=arguments[ge];return _e.filter(function(Me){return Me}).join(" ")}var me=Ct(function(Ee,_e){var ge=Ee["aria-current"],Me=ge===void 0?"page":ge,lt=Ee.activeClassName,Ft=lt===void 0?"active":lt,Et=Ee.activeStyle,Zt=Ee.className,nn=Ee.exact,Pn=Ee.isActive,rn=Ee.location,Vt=Ee.sensitive,Kn=Ee.strict,ur=Ee.style,on=Ee.to,tr=Ee.innerRef,Cn=je(Ee,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return x.createElement(l.XZ.Consumer,null,function(Wn){Wn||(0,h.A)(!1);var er=rn||Wn.location,Fn=Ne(Ze(on,er),er),en=Fn.pathname,gn=en&&en.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),kn=gn?(0,l.B6)(er.pathname,{path:gn,exact:nn,sensitive:Vt,strict:Kn}):null,Jn=!!(Pn?Pn(kn,er):kn),Nn=typeof Zt=="function"?Zt(Jn):Zt,kr=typeof ur=="function"?ur(Jn):ur;Jn&&(Nn=Z(Nn,Ft),kr=f({},kr,Et));var bt=f({"aria-current":Jn&&Me||null,className:Nn,style:kr,to:Fn},Cn);return $t!==Ct?bt.ref=_e||tr:bt.innerRef=tr,x.createElement(Wt,bt)})});if(0)var ke},61501:(Ge,w,u)=>{"use strict";u.d(w,{Cg:()=>h,F6:()=>d,Ks:()=>m,Nw:()=>S,_P:()=>z,s0:()=>E,w4:()=>p});const l=7,g=365.2425,x=-(Math.pow(10,8)*24*60*60*1e3),f=6048e5,p=864e5,h=6e4,E=36e5,v=1e3,m=525600,S=43200,d=1440,O=60,R=3,C=12,L=4,j=3600,I=60,U=j*24,$=U*7,Se=U*g/12*3,z=Symbol.for("constructDateFrom")},61526:(Ge,w,u)=>{Ge.exports=u(88319)},61587:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.of=void 0;var l=u(26404),g=u(47058);function y(){for(var x=[],f=0;f<arguments.length;f++)x[f]=arguments[f];var p=l.popScheduler(x);return g.from(x,p)}w.of=y},61597:(Ge,w,u)=>{"use strict";u.d(w,{Cc:()=>E,KU:()=>x,LV:()=>O,Mg:()=>v,Q1:()=>g,RI:()=>S,eh:()=>p,hG:()=>y,mk:()=>d,qE:()=>l,xP:()=>h,xW:()=>f});function l(R,C,L){return Math.min(Math.max(R,C),L)}function g(R,C,L,j,I,U){const $=I-L,ee=U-j;if($!==0||ee!==0){const re=((R-L)*$+(C-j)*ee)/($*$+ee*ee);re>1?(L=I,j=U):re>0&&(L+=$*re,j+=ee*re)}return y(R,C,L,j)}function y(R,C,L,j){const I=L-R,U=j-C;return I*I+U*U}function x(R){const C=R.length;for(let j=0;j<C;j++){let I=j,U=Math.abs(R[j][j]);for(let ee=j+1;ee<C;ee++){const re=Math.abs(R[ee][j]);re>U&&(U=re,I=ee)}if(U===0)return null;const $=R[I];R[I]=R[j],R[j]=$;for(let ee=j+1;ee<C;ee++){const re=-R[ee][j]/R[j][j];for(let Se=j;Se<C+1;Se++)j==Se?R[ee][Se]=0:R[ee][Se]+=re*R[j][Se]}}const L=new Array(C);for(let j=C-1;j>=0;j--){L[j]=R[j][C]/R[j][j];for(let I=j-1;I>=0;I--)R[I][C]-=R[I][j]*L[j]}return L}function f(R){return R*180/Math.PI}function p(R){return R*Math.PI/180}function h(R,C){const L=R%C;return L*C<0?L+C:L}function E(R,C,L){return R+L*(C-R)}function v(R,C){const L=Math.pow(10,C);return Math.round(R*L)/L}function m(R,C){return Math.round(v(R,C))}function S(R,C){return Math.floor(v(R,C))}function d(R,C){return Math.ceil(v(R,C))}function O(R,C,L){if(R>=C&&R<L)return R;const j=L-C;return((R-C)%j+j)%j+C}},61701:(Ge,w,u)=>{"use strict";u.d(w,{I:()=>y,w:()=>g});var l=u(88483),g=new l.c(function(f){return f.complete()});function y(f){return f?x(f):g}function x(f){return new l.c(function(p){return f.schedule(function(){return p.complete()})})}},61778:function(Ge,w,u){"use strict";var l=this&&this.__values||function(v){var m=typeof Symbol=="function"&&Symbol.iterator,S=m&&v[m],d=0;if(S)return S.call(v);if(v&&typeof v.length=="number")return{next:function(){return v&&d>=v.length&&(v=void 0),{value:v&&v[d++],done:!v}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.bufferToggle=void 0;var g=u(69879),y=u(65212),x=u(19724),f=u(17214),p=u(5717),h=u(54830);function E(v,m){return y.operate(function(S,d){var O=[];x.innerFrom(v).subscribe(f.createOperatorSubscriber(d,function(R){var C=[];O.push(C);var L=new g.Subscription,j=function(){h.arrRemove(O,C),d.next(C),L.unsubscribe()};L.add(x.innerFrom(m(R)).subscribe(f.createOperatorSubscriber(d,j,p.noop)))},p.noop)),S.subscribe(f.createOperatorSubscriber(d,function(R){var C,L;try{for(var j=l(O),I=j.next();!I.done;I=j.next()){var U=I.value;U.push(R)}}catch($){C={error:$}}finally{try{I&&!I.done&&(L=j.return)&&L.call(j)}finally{if(C)throw C.error}}},function(){for(;O.length>0;)d.next(O.shift());d.complete()}))})}w.bufferToggle=E},62053:(Ge,w,u)=>{var l=u(55261),g=u(96540),y=u(40961),x=u(56612);function f(S,d,O,R){Object.defineProperty(S,d,{get:O,set:R,enumerable:!0,configurable:!0})}function p(S){return S&&S.__esModule?S.default:S}f(Ge.exports,"Primitive",()=>E),f(Ge.exports,"Root",()=>m),f(Ge.exports,"dispatchDiscreteCustomEvent",()=>v);const E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((S,d)=>{const O=g.forwardRef((R,C)=>{const{asChild:L,...j}=R,I=L?x.Slot:d;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(I,p(l)({},j,{ref:C}))});return O.displayName=`Primitive.${d}`,{...S,[d]:O}},{});function v(S,d){S&&y.flushSync(()=>S.dispatchEvent(d))}const m=E},62096:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>v,dn:()=>h,p0:()=>p,v7:()=>E});var l=u(70915),g=u(4087),y=u(27430),x=u(87622);class f extends y.A{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(S){return(0,l.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,S)}getCoordinates(){return(0,g.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(S){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),S<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&S<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const d=this.getSimplifiedGeometryInternal(S);return d.getFlatCoordinates().length<this.flatCoordinates.length?d:(this.simplifiedGeometryMaxMinSquaredTolerance=S,this)}getSimplifiedGeometryInternal(S){return this}getStride(){return this.stride}setFlatCoordinates(S,d){this.stride=h(S),this.layout=S,this.flatCoordinates=d}setCoordinates(S,d){(0,g.b0)()}setLayout(S,d,O){let R;if(S)R=h(S);else{for(let C=0;C<O;++C){if(d.length===0){this.layout="XY",this.stride=2;return}d=d[0]}R=d.length,S=p(R)}this.layout=S,this.stride=R}applyTransform(S){this.flatCoordinates&&(S(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(S,d){const O=this.getFlatCoordinates();if(O){const R=this.getStride();(0,x.e$)(O,0,O.length,R,S,d,O),this.changed()}}scale(S,d,O){d===void 0&&(d=S),O||(O=(0,l.q1)(this.getExtent()));const R=this.getFlatCoordinates();if(R){const C=this.getStride();(0,x.hs)(R,0,R.length,C,S,d,O,R),this.changed()}}translate(S,d){const O=this.getFlatCoordinates();if(O){const R=this.getStride();(0,x.Tl)(O,0,O.length,R,S,d,O),this.changed()}}}function p(m){let S;return m==2?S="XY":m==3?S="XYZ":m==4&&(S="XYZM"),S}function h(m){let S;return m=="XY"?S=2:m=="XYZ"||m=="XYM"?S=3:m=="XYZM"&&(S=4),S}function E(m,S,d){const O=m.getFlatCoordinates();if(!O)return null;const R=m.getStride();return(0,x.Rc)(O,0,O.length,R,S,d)}const v=f},62275:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.interval=void 0;var l=u(62326),g=u(5825);function y(x,f){return x===void 0&&(x=0),f===void 0&&(f=l.asyncScheduler),x<0&&(x=0),g.timer(x,x,f)}w.interval=y},62295:(Ge,w,u)=>{"use strict";var l;l={value:!0},l=void 0;var g=u(89455),y=x(g);function x(f){return f&&f.__esModule?f:{default:f}}w.Ay=y.default,l=y.default},62326:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.async=w.asyncScheduler=void 0;var l=u(64772),g=u(19533);w.asyncScheduler=new g.AsyncScheduler(l.AsyncAction),w.async=w.asyncScheduler},62373:(Ge,w,u)=>{"use strict";u.d(w,{EJ:()=>h,Od:()=>E,Rb:()=>p,Tj:()=>x,bp:()=>S,qg:()=>f,wG:()=>m,xL:()=>v});var l=u(45435),g=u(73371),y=u(57048);const x=d=>(O,R,C,L)=>{const j=C?Object.assign(C,{async:!1}):{async:!1},I=O._zod.run({value:R,issues:[]},j);if(I instanceof Promise)throw new l.GT;if(I.issues.length){const U=new(L?.Err??d)(I.issues.map($=>y.finalizeIssue($,j,l.$W())));throw y.captureStackTrace(U,L?.callee),U}return I.value},f=x(g.Kd),p=d=>async(O,R,C,L)=>{const j=C?Object.assign(C,{async:!0}):{async:!0};let I=O._zod.run({value:R,issues:[]},j);if(I instanceof Promise&&(I=await I),I.issues.length){const U=new(L?.Err??d)(I.issues.map($=>y.finalizeIssue($,j,l.$W())));throw y.captureStackTrace(U,L?.callee),U}return I.value},h=p(g.Kd),E=d=>(O,R,C)=>{const L=C?{...C,async:!1}:{async:!1},j=O._zod.run({value:R,issues:[]},L);if(j instanceof Promise)throw new l.GT;return j.issues.length?{success:!1,error:new(d??g.a$)(j.issues.map(I=>y.finalizeIssue(I,L,l.$W())))}:{success:!0,data:j.value}},v=E(g.Kd),m=d=>async(O,R,C)=>{const L=C?Object.assign(C,{async:!0}):{async:!0};let j=O._zod.run({value:R,issues:[]},L);return j instanceof Promise&&(j=await j),j.issues.length?{success:!1,error:new d(j.issues.map(I=>y.finalizeIssue(I,L,l.$W())))}:{success:!0,data:j.value}},S=m(g.Kd)},62467:(Ge,w,u)=>{"use strict";u.d(w,{of:()=>y});var l=u(82100),g=u(65474);function y(){for(var x=[],f=0;f<arguments.length;f++)x[f]=arguments[f];var p=(0,l.lI)(x);return(0,g.H)(x,p)}},62471:(Ge,w,u)=>{"use strict";u.d(w,{T:()=>g});var l=u(61209);function g(y){return Symbol.asyncIterator&&(0,l.T)(y?.[Symbol.asyncIterator])}},62560:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isObservable=void 0;var l=u(48051),g=u(10281);function y(x){return!!x&&(x instanceof l.Observable||g.isFunction(x.lift)&&g.isFunction(x.subscribe))}w.isObservable=y},62715:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(d){for(var O,R=1,C=arguments.length;R<C;R++){O=arguments[R];for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(d[L]=O[L])}return d},l.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(d,O,R,C){C===void 0&&(C=R),Object.defineProperty(d,C,{enumerable:!0,get:function(){return O[R]}})}:function(d,O,R,C){C===void 0&&(C=R),d[C]=O[R]}),y=this&&this.__setModuleDefault||(Object.create?function(d,O){Object.defineProperty(d,"default",{enumerable:!0,value:O})}:function(d,O){d.default=O}),x=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var O={};if(d!=null)for(var R in d)R!=="default"&&Object.prototype.hasOwnProperty.call(d,R)&&g(O,d,R);return y(O,d),O};Object.defineProperty(w,"__esModule",{value:!0}),w.KBarAnimator=void 0;var f=x(u(96540)),p=u(60950),h=u(4122),E=u(65178),v=[{opacity:0,transform:"scale(.99)"},{opacity:1,transform:"scale(1.01)"},{opacity:1,transform:"scale(1)"}],m=[{transform:"scale(1)"},{transform:"scale(.98)"},{transform:"scale(1)"}],S=function(d){var O,R,C=d.children,L=d.style,j=d.className,I=d.disableCloseOnOuterClick,U=(0,h.useKBar)(function(A){return{visualState:A.visualState,currentRootActionId:A.currentRootActionId}}),$=U.visualState,ee=U.currentRootActionId,re=U.query,Se=U.options,z=f.useRef(null),Q=f.useRef(null),ce=((O=Se?.animations)===null||O===void 0?void 0:O.enterMs)||0,se=((R=Se?.animations)===null||R===void 0?void 0:R.exitMs)||0;f.useEffect(function(){if($!==p.VisualState.showing){var A=$===p.VisualState.animatingIn?ce:se,T=z.current;T?.animate(v,{duration:A,easing:$===p.VisualState.animatingOut?"ease-in":"ease-out",direction:$===p.VisualState.animatingOut?"reverse":"normal",fill:"forwards"})}},[Se,$,ce,se]);var q=f.useRef();f.useEffect(function(){if($===p.VisualState.showing){var A=z.current,T=Q.current;if(!A||!T)return;var B=new ResizeObserver(function(X){for(var ue=0,ie=X;ue<ie.length;ue++){var Te=ie[ue],je=Te.contentRect;q.current||(q.current=je.height),A.animate([{height:q.current+"px"},{height:je.height+"px"}],{duration:ce/2,easing:"ease-out",fill:"forwards"}),q.current=je.height}});return B.observe(T),function(){B.unobserve(T)}}},[$,Se,ce,se]);var te=f.useRef(!0);return f.useEffect(function(){if(te.current){te.current=!1;return}var A=z.current;A&&A.animate(m,{duration:ce,easing:"ease-out"})},[ee,ce]),(0,E.useOuterClick)(z,function(){var A,T;I||(re.setVisualState(p.VisualState.animatingOut),(T=(A=Se.callbacks)===null||A===void 0?void 0:A.onClose)===null||T===void 0||T.call(A))}),f.createElement("div",{ref:z,style:l(l(l({},v[0]),L),{pointerEvents:"auto"}),className:j},f.createElement("div",{ref:Q},C))};w.KBarAnimator=S},62785:Ge=>{var w=null,u=["Webkit","Moz","O","ms"];Ge.exports=function(g){w||(w=document.createElement("div"));var y=w.style;if(g in y)return g;for(var x=g.charAt(0).toUpperCase()+g.slice(1),f=u.length;f>=0;f--){var p=u[f]+x;if(p in y)return p}return!1}},62886:(Ge,w,u)=>{var l=u(80344),g=u(91452);function y(x,f,p,h,E){return new g(l().w(x,f,p,h),E||Promise)}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},62893:function(Ge,w,u){"use strict";var l=this&&this.__values||function(p){var h=typeof Symbol=="function"&&Symbol.iterator,E=h&&p[h],v=0;if(E)return E.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&v>=p.length&&(p=void 0),{value:p&&p[v++],done:!p}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.windowCount=void 0;var g=u(54427),y=u(65212),x=u(17214);function f(p,h){h===void 0&&(h=0);var E=h>0?h:p;return y.operate(function(v,m){var S=[new g.Subject],d=[],O=0;m.next(S[0].asObservable()),v.subscribe(x.createOperatorSubscriber(m,function(R){var C,L;try{for(var j=l(S),I=j.next();!I.done;I=j.next()){var U=I.value;U.next(R)}}catch(re){C={error:re}}finally{try{I&&!I.done&&(L=j.return)&&L.call(j)}finally{if(C)throw C.error}}var $=O-p+1;if($>=0&&$%E===0&&S.shift().complete(),++O%E===0){var ee=new g.Subject;S.push(ee),m.next(ee.asObservable())}},function(){for(;S.length>0;)S.shift().complete();m.complete()},function(R){for(;S.length>0;)S.shift().error(R);m.error(R)},function(){d=null,S=null}))})}w.windowCount=f},62894:(Ge,w,u)=>{"use strict";u.d(w,{eg:()=>x,lR:()=>h,o1:()=>f,yB:()=>p});var l=u(49953),g=u(7049),y=u(96540);function x(v){let m=v;return m.nativeEvent=v,m.isDefaultPrevented=()=>m.defaultPrevented,m.isPropagationStopped=()=>m.cancelBubble,m.persist=()=>{},m}function f(v,m){Object.defineProperty(v,"target",{value:m}),Object.defineProperty(v,"currentTarget",{value:m})}function p(v){let m=(0,y.useRef)({isFocused:!1,observer:null});(0,l.N)(()=>{const d=m.current;return()=>{d.observer&&(d.observer.disconnect(),d.observer=null)}},[]);let S=(0,g.J)(d=>{v?.(d)});return(0,y.useCallback)(d=>{if(d.target instanceof HTMLButtonElement||d.target instanceof HTMLInputElement||d.target instanceof HTMLTextAreaElement||d.target instanceof HTMLSelectElement){m.current.isFocused=!0;let O=d.target,R=C=>{if(m.current.isFocused=!1,O.disabled){let L=x(C);S(L)}m.current.observer&&(m.current.observer.disconnect(),m.current.observer=null)};O.addEventListener("focusout",R,{once:!0}),m.current.observer=new MutationObserver(()=>{if(m.current.isFocused&&O.disabled){var C;(C=m.current.observer)===null||C===void 0||C.disconnect();let L=O===document.activeElement?null:document.activeElement;O.dispatchEvent(new FocusEvent("blur",{relatedTarget:L})),O.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:L}))}}),m.current.observer.observe(O,{attributes:!0,attributeFilter:["disabled"]})}},[S])}let h=!1;function E(v){for(;v&&!$6dfIe$isFocusable(v);)v=v.parentElement;let m=$6dfIe$getOwnerWindow(v),S=m.document.activeElement;if(!S||S===v)return;h=!0;let d=!1,O=U=>{(U.target===S||d)&&U.stopImmediatePropagation()},R=U=>{(U.target===S||d)&&(U.stopImmediatePropagation(),!v&&!d&&(d=!0,$6dfIe$focusWithoutScrolling(S),j()))},C=U=>{(U.target===v||d)&&U.stopImmediatePropagation()},L=U=>{(U.target===v||d)&&(U.stopImmediatePropagation(),d||(d=!0,$6dfIe$focusWithoutScrolling(S),j()))};m.addEventListener("blur",O,!0),m.addEventListener("focusout",R,!0),m.addEventListener("focusin",L,!0),m.addEventListener("focus",C,!0);let j=()=>{cancelAnimationFrame(I),m.removeEventListener("blur",O,!0),m.removeEventListener("focusout",R,!0),m.removeEventListener("focusin",L,!0),m.removeEventListener("focus",C,!0),h=!1,d=!1},I=requestAnimationFrame(j);return j}},63720:(Ge,w,u)=>{"use strict";u.d(w,{n:()=>x});var l=u(15964),g=u(92908),y=u(64878);function x(f,p){return(0,g.N)(function(h,E){var v=null,m=0,S=!1,d=function(){return S&&!v&&E.complete()};h.subscribe((0,y._)(E,function(O){v?.unsubscribe();var R=0,C=m++;(0,l.Tg)(f(O,C)).subscribe(v=(0,y._)(E,function(L){return E.next(p?p(O,L,C,R++):L)},function(){v=null,d()}))},function(){S=!0,d()}))})}},63953:(Ge,w,u)=>{"use strict";u.d(w,{HX:()=>x,MD:()=>y,c:()=>f,n:()=>p,oW:()=>h,te:()=>E});var l=u(61597);function g(v,m,S,d,O,R,C){const L=v[m],j=v[m+1],I=v[S]-L,U=v[S+1]-j;let $;if(I===0&&U===0)$=m;else{const ee=((O-L)*I+(R-j)*U)/(I*I+U*U);if(ee>1)$=S;else if(ee>0){for(let re=0;re<d;++re)C[re]=(0,l.Cc)(v[m+re],v[S+re],ee);C.length=d;return}else $=m}for(let ee=0;ee<d;++ee)C[ee]=v[$+ee];C.length=d}function y(v,m,S,d,O){let R=v[m],C=v[m+1];for(m+=d;m<S;m+=d){const L=v[m],j=v[m+1],I=(0,l.hG)(R,C,L,j);I>O&&(O=I),R=L,C=j}return O}function x(v,m,S,d,O){for(let R=0,C=S.length;R<C;++R){const L=S[R];O=y(v,m,L,d,O),m=L}return O}function f(v,m,S,d,O){for(let R=0,C=S.length;R<C;++R){const L=S[R];O=x(v,m,L,d,O),m=L[L.length-1]}return O}function p(v,m,S,d,O,R,C,L,j,I,U){if(m==S)return I;let $,ee;if(O===0){if(ee=(0,l.hG)(C,L,v[m],v[m+1]),ee<I){for($=0;$<d;++$)j[$]=v[m+$];return j.length=d,ee}return I}U=U||[NaN,NaN];let re=m+d;for(;re<S;)if(g(v,re-d,re,d,C,L,U),ee=(0,l.hG)(C,L,U[0],U[1]),ee<I){for(I=ee,$=0;$<d;++$)j[$]=U[$];j.length=d,re+=d}else re+=d*Math.max((Math.sqrt(ee)-Math.sqrt(I))/O|0,1);if(R&&(g(v,S-d,m,d,C,L,U),ee=(0,l.hG)(C,L,U[0],U[1]),ee<I)){for(I=ee,$=0;$<d;++$)j[$]=U[$];j.length=d}return I}function h(v,m,S,d,O,R,C,L,j,I,U){U=U||[NaN,NaN];for(let $=0,ee=S.length;$<ee;++$){const re=S[$];I=p(v,m,re,d,O,R,C,L,j,I,U),m=re}return I}function E(v,m,S,d,O,R,C,L,j,I,U){U=U||[NaN,NaN];for(let $=0,ee=S.length;$<ee;++$){const re=S[$];I=h(v,m,re,d,O,R,C,L,j,I,U),m=re[re.length-1]}return I}},64136:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>ue});var l=u(86717),g=u(34338),y=u(11217),x=u(96702),f=u(30503),p=u(2871),h=u(44294),E=u(71064),v=u(98217),m=u(4087);class S extends v.Ay{constructor(){super()}getType(){return"text"}readFeature(Te,je){return this.readFeatureFromText(d(Te),this.adaptOptions(je))}readFeatureFromText(Te,je){return(0,m.b0)()}readFeatures(Te,je){return this.readFeaturesFromText(d(Te),this.adaptOptions(je))}readFeaturesFromText(Te,je){return(0,m.b0)()}readGeometry(Te,je){return this.readGeometryFromText(d(Te),this.adaptOptions(je))}readGeometryFromText(Te,je){return(0,m.b0)()}readProjection(Te){return this.readProjectionFromText(d(Te))}readProjectionFromText(Te){return this.dataProjection}writeFeature(Te,je){return this.writeFeatureText(Te,this.adaptOptions(je))}writeFeatureText(Te,je){return(0,m.b0)()}writeFeatures(Te,je){return this.writeFeaturesText(Te,this.adaptOptions(je))}writeFeaturesText(Te,je){return(0,m.b0)()}writeGeometry(Te,je){return this.writeGeometryText(Te,this.adaptOptions(je))}writeGeometryText(Te,je){return(0,m.b0)()}}function d(ie){return typeof ie=="string"?ie:""}const O=S,R={POINT:h.A,LINESTRING:y.A,POLYGON:E.Ay,MULTIPOINT:f.A,MULTILINESTRING:x.A,MULTIPOLYGON:p.A},C="EMPTY",L="Z",j="M",I="ZM",U={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6},$={Point:"POINT",LineString:"LINESTRING",Polygon:"POLYGON",MultiPoint:"MULTIPOINT",MultiLineString:"MULTILINESTRING",MultiPolygon:"MULTIPOLYGON",GeometryCollection:"GEOMETRYCOLLECTION",Circle:"CIRCLE"};class ee{constructor(Te){this.wkt=Te,this.index_=-1}isAlpha_(Te){return Te>="a"&&Te<="z"||Te>="A"&&Te<="Z"}isNumeric_(Te,je){return je=je!==void 0?je:!1,Te>="0"&&Te<="9"||Te=="."&&!je}isWhiteSpace_(Te){return Te==" "||Te==" "||Te=="\r"||Te==` `}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const Te=this.nextChar_(),je=this.index_;let yt=Te,tt;if(Te=="(")tt=U.LEFT_PAREN;else if(Te==",")tt=U.COMMA;else if(Te==")")tt=U.RIGHT_PAREN;else if(this.isNumeric_(Te)||Te=="-")tt=U.NUMBER,yt=this.readNumber_();else if(this.isAlpha_(Te))tt=U.TEXT,yt=this.readText_();else{if(this.isWhiteSpace_(Te))return this.nextToken();if(Te==="")tt=U.EOF;else throw new Error("Unexpected character: "+Te)}return{position:je,value:yt,type:tt}}readNumber_(){let Te;const je=this.index_;let yt=!1,tt=!1;do Te=="."?yt=!0:(Te=="e"||Te=="E")&&(tt=!0),Te=this.nextChar_();while(this.isNumeric_(Te,yt)||!tt&&(Te=="e"||Te=="E")||tt&&(Te=="-"||Te=="+"));return parseFloat(this.wkt.substring(je,this.index_--))}readText_(){let Te;const je=this.index_;do Te=this.nextChar_();while(this.isAlpha_(Te));return this.wkt.substring(je,this.index_--).toUpperCase()}}class re{constructor(Te){this.lexer_=Te,this.token_={position:0,type:U.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(Te){return this.token_.type==Te}match(Te){const je=this.isTokenType(Te);return je&&this.consume_(),je}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let Te="XY";const je=this.token_;if(this.isTokenType(U.TEXT)){const yt=je.value;yt===L?Te="XYZ":yt===j?Te="XYM":yt===I&&(Te="XYZM"),Te!=="XY"&&this.consume_()}return Te}parseGeometryCollectionText_(){if(this.match(U.LEFT_PAREN)){const Te=[];do Te.push(this.parseGeometry_());while(this.match(U.COMMA));if(this.match(U.RIGHT_PAREN))return Te}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(U.LEFT_PAREN)){const Te=this.parsePoint_();if(this.match(U.RIGHT_PAREN))return Te}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(U.LEFT_PAREN)){const Te=this.parsePointList_();if(this.match(U.RIGHT_PAREN))return Te}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(U.LEFT_PAREN)){const Te=this.parseLineStringTextList_();if(this.match(U.RIGHT_PAREN))return Te}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(U.LEFT_PAREN)){let Te;if(this.token_.type==U.LEFT_PAREN?Te=this.parsePointTextList_():Te=this.parsePointList_(),this.match(U.RIGHT_PAREN))return Te}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(U.LEFT_PAREN)){const Te=this.parseLineStringTextList_();if(this.match(U.RIGHT_PAREN))return Te}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(U.LEFT_PAREN)){const Te=this.parsePolygonTextList_();if(this.match(U.RIGHT_PAREN))return Te}throw new Error(this.formatErrorMessage_())}parsePoint_(){const Te=[],je=this.layout_.length;for(let yt=0;yt<je;++yt){const tt=this.token_;if(this.match(U.NUMBER))Te.push(tt.value);else break}if(Te.length==je)return Te;throw new Error(this.formatErrorMessage_())}parsePointList_(){const Te=[this.parsePoint_()];for(;this.match(U.COMMA);)Te.push(this.parsePoint_());return Te}parsePointTextList_(){const Te=[this.parsePointText_()];for(;this.match(U.COMMA);)Te.push(this.parsePointText_());return Te}parseLineStringTextList_(){const Te=[this.parseLineStringText_()];for(;this.match(U.COMMA);)Te.push(this.parseLineStringText_());return Te}parsePolygonTextList_(){const Te=[this.parsePolygonText_()];for(;this.match(U.COMMA);)Te.push(this.parsePolygonText_());return Te}isEmptyGeometry_(){const Te=this.isTokenType(U.TEXT)&&this.token_.value==C;return Te&&this.consume_(),Te}formatErrorMessage_(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}parseGeometry_(){const Te=this.token_;if(this.match(U.TEXT)){const je=Te.value;this.layout_=this.parseGeometryLayout_();const yt=this.isEmptyGeometry_();if(je=="GEOMETRYCOLLECTION"){if(yt)return new g.A([]);const Ne=this.parseGeometryCollectionText_();return new g.A(Ne)}const tt=R[je];if(!tt)throw new Error("Invalid geometry type: "+je);let Ze;if(yt)je=="POINT"?Ze=[NaN,NaN]:Ze=[];else switch(je){case"POINT":{Ze=this.parsePointText_();break}case"LINESTRING":{Ze=this.parseLineStringText_();break}case"POLYGON":{Ze=this.parsePolygonText_();break}case"MULTIPOINT":{Ze=this.parseMultiPointText_();break}case"MULTILINESTRING":{Ze=this.parseMultiLineStringText_();break}case"MULTIPOLYGON":{Ze=this.parseMultiPolygonText_();break}default:break}return new tt(Ze,this.layout_)}throw new Error(this.formatErrorMessage_())}}class Se extends O{constructor(Te){super(),Te=Te||{},this.splitCollection_=Te.splitCollection!==void 0?Te.splitCollection:!1}parse_(Te){const je=new ee(Te);return new re(je).parse()}readFeatureFromText(Te,je){const yt=this.readGeometryFromText(Te,je),tt=new l.A;return tt.setGeometry(yt),tt}readFeaturesFromText(Te,je){let yt=[];const tt=this.readGeometryFromText(Te,je);this.splitCollection_&&tt.getType()=="GeometryCollection"?yt=tt.getGeometriesArray():yt=[tt];const Ze=[];for(let Ne=0,it=yt.length;Ne<it;++Ne){const Rt=new l.A;Rt.setGeometry(yt[Ne]),Ze.push(Rt)}return Ze}readGeometryFromText(Te,je){const yt=this.parse_(Te);return(0,v.hX)(yt,!1,je)}writeFeatureText(Te,je){const yt=Te.getGeometry();return yt?this.writeGeometryText(yt,je):""}writeFeaturesText(Te,je){if(Te.length==1)return this.writeFeatureText(Te[0],je);const yt=[];for(let Ze=0,Ne=Te.length;Ze<Ne;++Ze)yt.push(Te[Ze].getGeometry());const tt=new g.A(yt);return this.writeGeometryText(tt,je)}writeGeometryText(Te,je){return X((0,v.hX)(Te,!0,je))}}function z(ie){const Te=ie.getCoordinates();return Te.length===0?"":Te.join(" ")}function Q(ie){const Te=[],je=ie.getPoints();for(let yt=0,tt=je.length;yt<tt;++yt)Te.push("("+z(je[yt])+")");return Te.join(",")}function ce(ie){const Te=[],je=ie.getGeometries();for(let yt=0,tt=je.length;yt<tt;++yt)Te.push(X(je[yt]));return Te.join(",")}function se(ie){const Te=ie.getCoordinates(),je=[];for(let yt=0,tt=Te.length;yt<tt;++yt)je.push(Te[yt].join(" "));return je.join(",")}function q(ie){const Te=[],je=ie.getLineStrings();for(let yt=0,tt=je.length;yt<tt;++yt)Te.push("("+se(je[yt])+")");return Te.join(",")}function te(ie){const Te=[],je=ie.getLinearRings();for(let yt=0,tt=je.length;yt<tt;++yt)Te.push("("+se(je[yt])+")");return Te.join(",")}function A(ie){const Te=[],je=ie.getPolygons();for(let yt=0,tt=je.length;yt<tt;++yt)Te.push("("+te(je[yt])+")");return Te.join(",")}function T(ie){const Te=ie.getLayout();let je="";return(Te==="XYZ"||Te==="XYZM")&&(je+=L),(Te==="XYM"||Te==="XYZM")&&(je+=j),je}const B={Point:z,LineString:se,Polygon:te,MultiPoint:Q,MultiLineString:q,MultiPolygon:A,GeometryCollection:ce};function X(ie){const Te=ie.getType(),je=B[Te],yt=je(ie);let tt=$[Te];if(typeof ie.getFlatCoordinates=="function"){const Ze=T(ie);Ze.length>0&&(tt+=" "+Ze)}return yt.length===0?tt+" "+C:tt+"("+yt+")"}const ue=Se},64237:(Ge,w,u)=>{"use strict";u.d(w,{N:()=>f});var l=u(1578);const g="column",x=[{id:"$__timeFilter(dateColumn)",name:"$__timeFilter(dateColumn)",text:"$__timeFilter",args:[g],type:l.hh.Filter,description:"Will be replaced by a time range filter using the specified column name. For example, dateColumn BETWEEN FROM_UNIXTIME(1494410783) AND FROM_UNIXTIME(1494410983)"},{id:"$__timeFrom()",name:"$__timeFrom()",text:"$__timeFrom",args:[],type:l.hh.Filter,description:"Will be replaced by the start of the currently active time selection. For example, FROM_UNIXTIME(1494410783)"},{id:"$__timeTo()",name:"$__timeTo()",text:"$__timeTo",args:[],type:l.hh.Filter,description:"Will be replaced by the end of the currently active time selection. For example, FROM_UNIXTIME(1494410983)"},{id:"$__timeGroup(dateColumn, '5m')",name:"$__timeGroup(dateColumn, '5m')",text:"$__timeGroup",args:[g,"'5m'"],type:l.hh.Value,description:"Will be replaced by an expression usable in GROUP BY clause. For example, *cast(cast(UNIX_TIMESTAMP(dateColumn)/(300) as signed)*300 as signed),*"},{id:"$__table",name:"$__table",text:"$__table",args:[],type:l.hh.Table,description:"Will be replaced by the query table."},{id:"$__column",name:"$__column",text:"$__column",args:[],type:l.hh.Column,description:"Will be replaced by the query column."}];function f(p,h){var E,v,m;const S={triggerCharacters:["."," ","$",",","(","'"]};h&&Array.isArray(h.builtinFunctions)&&(S.supportedFunctions=()=>h.builtinFunctions.map(O=>({id:O,name:O})));const d=[];return(E=h?.comparisonOperators)!=null&&E.length&&d.push(...h.comparisonOperators.map(O=>({id:O.toLocaleLowerCase(),operator:O,type:l.hu.Comparison}))),h.logicalOperators=(v=h.logicalOperators)!=null?v:h.operators,(m=h?.logicalOperators)!=null&&m.length&&d.push(...h.logicalOperators.map(O=>({id:O.toLocaleLowerCase(),operator:O,type:l.hu.Logical}))),S.supportedOperators=()=>d,S.supportedMacros=()=>x,S}},64305:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540),g=u(94701),y=function(f){var p=(0,l.useRef)(f);p.current=f,(0,g.A)(function(){return function(){return p.current()}})};const x=y},64772:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var p=function(h,E){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&(v[S]=m[S])},p(h,E)};return function(h,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");p(h,E);function v(){this.constructor=h}h.prototype=E===null?Object.create(E):(v.prototype=E.prototype,new v)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.AsyncAction=void 0;var g=u(71666),y=u(8284),x=u(54830),f=function(p){l(h,p);function h(E,v){var m=p.call(this,E,v)||this;return m.scheduler=E,m.work=v,m.pending=!1,m}return h.prototype.schedule=function(E,v){var m;if(v===void 0&&(v=0),this.closed)return this;this.state=E;var S=this.id,d=this.scheduler;return S!=null&&(this.id=this.recycleAsyncId(d,S,v)),this.pending=!0,this.delay=v,this.id=(m=this.id)!==null&&m!==void 0?m:this.requestAsyncId(d,this.id,v),this},h.prototype.requestAsyncId=function(E,v,m){return m===void 0&&(m=0),y.intervalProvider.setInterval(E.flush.bind(E,this),m)},h.prototype.recycleAsyncId=function(E,v,m){if(m===void 0&&(m=0),m!=null&&this.delay===m&&this.pending===!1)return v;v!=null&&y.intervalProvider.clearInterval(v)},h.prototype.execute=function(E,v){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var m=this._execute(E,v);if(m)return m;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},h.prototype._execute=function(E,v){var m=!1,S;try{this.work(E)}catch(d){m=!0,S=d||new Error("Scheduled action threw falsy error")}if(m)return this.unsubscribe(),S},h.prototype.unsubscribe=function(){if(!this.closed){var E=this,v=E.id,m=E.scheduler,S=m.actions;this.work=this.state=this.scheduler=null,this.pending=!1,x.arrRemove(S,this),v!=null&&(this.id=this.recycleAsyncId(m,v,null)),this.delay=null,p.prototype.unsubscribe.call(this)}},h}(g.Action);w.AsyncAction=f},64849:(Ge,w,u)=>{var l=u(62785),g=u(78978),y={float:"cssFloat"},x=u(79887);function f(v,m,S){var d=y[m];if(typeof d>"u"&&(d=h(m)),d){if(S===void 0)return v.style[d];v.style[d]=x(d,S)}}function p(v,m){for(var S in m)m.hasOwnProperty(S)&&f(v,S,m[S])}function h(v){var m=g(v),S=l(m);return y[m]=y[v]=y[S]=S,S}function E(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:p(arguments[0],arguments[1]):f(arguments[0],arguments[1],arguments[2])}Ge.exports=E,Ge.exports.set=E,Ge.exports.get=function(v,m){return Array.isArray(m)?m.reduce(function(S,d){return S[d]=f(v,d||""),S},{}):f(v,m||"")}},64948:function(Ge,w,u){"use strict";var l=this&&this.__read||function(m,S){var d=typeof Symbol=="function"&&m[Symbol.iterator];if(!d)return m;var O=d.call(m),R,C=[],L;try{for(;(S===void 0||S-- >0)&&!(R=O.next()).done;)C.push(R.value)}catch(j){L={error:j}}finally{try{R&&!R.done&&(d=O.return)&&d.call(O)}finally{if(L)throw L.error}}return C},g=this&&this.__spreadArray||function(m,S){for(var d=0,O=S.length,R=m.length;d<O;d++,R++)m[R]=S[d];return m};Object.defineProperty(w,"__esModule",{value:!0}),w.combineLatest=void 0;var y=u(88246),x=u(65212),f=u(7652),p=u(13916),h=u(99517),E=u(26404);function v(){for(var m=[],S=0;S<arguments.length;S++)m[S]=arguments[S];var d=E.popResultSelector(m);return d?h.pipe(v.apply(void 0,g([],l(m))),p.mapOneOrManyArgs(d)):x.operate(function(O,R){y.combineLatestInit(g([O],l(f.argsOrArgArray(m))))(R)})}w.combineLatest=v},64969:(Ge,w)=>{w.debug=!1,w.parse=function(u){var l="",g="",y=!0,x=!1,f=!1,p=!1,h=!1,E={},v=w.debug;u[u.length-1]==` `&&(u=u.slice(0,u.length-1));for(var m=0;m<=u.length;m++){if(u[m]==" "&&!p||m==u.length){if(x&&l.length>0?E[l]=!0:f&&(g=="true"?g=!0:g=="false"?g=!1:g===""&&!h&&(g=null),E[l]=g,g=""),m==u.length)break;x=!1,f=!1,p=!1,h=!1}u[m]=="="&&!p?(v&&console.log("split"),x=!1,f=!0):u[m]=="\\"?(m++,g+=u[m],v&&console.log("escape: "+u[m])):u[m]=='"'?(h=!0,p=!p,v&&console.log("in quote: "+p)):u[m]!=" "&&!f&&!x?(v&&console.log("start key with: "+u[m]),x=!0,l=u[m]):x?(v&&console.log("add to key: "+u[m]),l+=u[m]):f&&(v&&console.log("add to value: "+u[m]),g+=u[m])}return E}},65024:(Ge,w,u)=>{(function(){function l(g,y){return(y||"")+" (SystemJS Error#"+g+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+g+")"}(function(g){function y(){throw Error(l(5,"AMD require not supported."))}var x=["require","exports","module"];function f(p,h){for(var E={},v={exports:E},m=[],S=[],d=0,O=0;O<p.length;O++){var R=p[O],C=S.length;R==="require"?(m[O]=y,d++):R==="module"?(m[O]=v,d++):R==="exports"?(m[O]=E,d++):j(O),d&&(p[C]=R)}d&&(p.length-=d);var L=h;return[p,function(I,U){return I({default:E,__useDefault:!0}),{setters:S,execute:function(){v.uri=U.meta.url;var $=L.apply(E,m);$!==void 0&&(v.exports=$),I(v.exports),I("default",v.exports)}}}];function j(I){S.push(function(U){m[I]=U.__useDefault?U.default:U})}}g.define=function(p,h,E){var v=typeof p=="string",m=v?p:null,S=v?h:p,d=v?E:h,O,R;if(Array.isArray(S))O=S,R=d;else if(typeof S=="object")O=[],R=function(){return S};else if(typeof S=="function")O=x,R=S;else throw Error(l(9,"Invalid call to AMD define()"));var C=f(O,R);v&&(System.registerRegistry?(System.registerRegistry[m]=C,System.register(m,C[0],C[1])):console.warn(l("W6","Include named-register.js for full named define support"))),System.register(C[0],C[1])},g.define.amd={}})(typeof self<"u"?self:u.g)})()},65156:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.windowWhen=void 0;var l=u(54427),g=u(65212),y=u(17214),x=u(19724);function f(p){return g.operate(function(h,E){var v,m,S=function(O){v.error(O),E.error(O)},d=function(){m?.unsubscribe(),v?.complete(),v=new l.Subject,E.next(v.asObservable());var O;try{O=x.innerFrom(p())}catch(R){S(R);return}O.subscribe(m=y.createOperatorSubscriber(E,d,d,S))};d(),h.subscribe(y.createOperatorSubscriber(E,function(O){return v.next(O)},function(){v.complete(),E.complete()},S,function(){m?.unsubscribe(),v=null}))})}w.windowWhen=f},65178:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(U){for(var $,ee=1,re=arguments.length;ee<re;ee++){$=arguments[ee];for(var Se in $)Object.prototype.hasOwnProperty.call($,Se)&&(U[Se]=$[Se])}return U},l.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(U,$,ee,re){re===void 0&&(re=ee),Object.defineProperty(U,re,{enumerable:!0,get:function(){return $[ee]}})}:function(U,$,ee,re){re===void 0&&(re=ee),U[re]=$[ee]}),y=this&&this.__setModuleDefault||(Object.create?function(U,$){Object.defineProperty(U,"default",{enumerable:!0,value:$})}:function(U,$){U.default=$}),x=this&&this.__importStar||function(U){if(U&&U.__esModule)return U;var $={};if(U!=null)for(var ee in U)ee!=="default"&&Object.prototype.hasOwnProperty.call(U,ee)&&g($,U,ee);return y($,U),$},f=this&&this.__spreadArray||function(U,$,ee){if(ee||arguments.length===2)for(var re=0,Se=$.length,z;re<Se;re++)(z||!(re in $))&&(z||(z=Array.prototype.slice.call($,0,re)),z[re]=$[re]);return U.concat(z||Array.prototype.slice.call($))};Object.defineProperty(w,"__esModule",{value:!0}),w.Priority=w.isModKey=w.shouldRejectKeystrokes=w.useThrottledValue=w.getScrollbarWidth=w.useIsomorphicLayout=w.noop=w.createAction=w.randomId=w.usePointerMovedSinceMount=w.useOuterClick=w.swallowEvent=void 0;var p=x(u(96540));function h(U){U.stopPropagation(),U.preventDefault()}w.swallowEvent=h;function E(U,$){var ee=p.useRef($);ee.current=$,p.useEffect(function(){function re(Se){var z,Q;!((z=U.current)===null||z===void 0)&&z.contains(Se.target)||Se.target===((Q=U.current)===null||Q===void 0?void 0:Q.getRootNode().host)||(Se.preventDefault(),Se.stopPropagation(),ee.current())}return window.addEventListener("pointerdown",re,!0),function(){return window.removeEventListener("pointerdown",re,!0)}},[U])}w.useOuterClick=E;function v(){var U=p.useState(!1),$=U[0],ee=U[1];return p.useEffect(function(){function re(){ee(!0)}if(!$)return window.addEventListener("pointermove",re),function(){return window.removeEventListener("pointermove",re)}},[$]),$}w.usePointerMovedSinceMount=v;function m(){return Math.random().toString(36).substring(2,9)}w.randomId=m;function S(U){return l({id:m()},U)}w.createAction=S;function d(){}w.noop=d,w.useIsomorphicLayout=typeof window>"u"?d:p.useLayoutEffect;function O(){var U=document.createElement("div");U.style.visibility="hidden",U.style.overflow="scroll",document.body.appendChild(U);var $=document.createElement("div");U.appendChild($);var ee=U.offsetWidth-$.offsetWidth;return U.parentNode.removeChild(U),ee}w.getScrollbarWidth=O;function R(U,$){$===void 0&&($=100);var ee=p.useState(U),re=ee[0],Se=ee[1],z=p.useRef(Date.now());return p.useEffect(function(){if($!==0){var Q=setTimeout(function(){Se(U),z.current=Date.now()},z.current-(Date.now()-$));return function(){clearTimeout(Q)}}},[$,U]),$===0?U:re}w.useThrottledValue=R;function C(U){var $,ee,re,Se=U===void 0?{ignoreWhenFocused:[]}:U,z=Se.ignoreWhenFocused,Q=f(["input","textarea"],z,!0).map(function(q){return q.toLowerCase()}),ce=document.activeElement,se=ce&&(Q.indexOf(ce.tagName.toLowerCase())!==-1||(($=ce.attributes.getNamedItem("role"))===null||$===void 0?void 0:$.value)==="textbox"||((ee=ce.attributes.getNamedItem("contenteditable"))===null||ee===void 0?void 0:ee.value)==="true"||((re=ce.attributes.getNamedItem("contenteditable"))===null||re===void 0?void 0:re.value)==="plaintext-only");return se}w.shouldRejectKeystrokes=C;var L=typeof window>"u",j=!L&&window.navigator.platform==="MacIntel";function I(U){return j?U.metaKey:U.ctrlKey}w.isModKey=I,w.Priority={HIGH:1,NORMAL:0,LOW:-1}},65212:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.operate=w.hasLift=void 0;var l=u(10281);function g(x){return l.isFunction(x?.lift)}w.hasLift=g;function y(x){return function(f){if(g(f))return f.lift(function(p){try{return x(p,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}w.operate=y},65229:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540),g=u(64305),y=function(f,p,h){p===void 0&&(p=200);var E=(0,l.useState)(null),v=E[0],m=E[1],S=(0,l.useRef)(),d=(0,l.useRef)();return(0,l.useEffect)(function(){if(S.current)d.current=h;else{m(f.apply(void 0,h));var O=function(){d.current?(m(f.apply(void 0,d.current)),d.current=void 0,S.current=setTimeout(O,p)):S.current=void 0};S.current=setTimeout(O,p)}},h),(0,g.A)(function(){S.current&&clearTimeout(S.current)}),v};const x=y},65279:function(Ge,w,u){"use strict";var l=this&&this.__values||function(p){var h=typeof Symbol=="function"&&Symbol.iterator,E=h&&p[h],v=0;if(E)return E.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&v>=p.length&&(p=void 0),{value:p&&p[v++],done:!p}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(w,"__esModule",{value:!0}),w.takeLast=void 0;var g=u(44885),y=u(65212),x=u(17214);function f(p){return p<=0?function(){return g.EMPTY}:y.operate(function(h,E){var v=[];h.subscribe(x.createOperatorSubscriber(E,function(m){v.push(m),p<v.length&&v.shift()},function(){var m,S;try{for(var d=l(v),O=d.next();!O.done;O=d.next()){var R=O.value;E.next(R)}}catch(C){m={error:C}}finally{try{O&&!O.done&&(S=d.return)&&S.call(d)}finally{if(m)throw m.error}}E.complete()},void 0,function(){v=null}))})}w.takeLast=f},65307:(Ge,w,u)=>{"use strict";u.d(w,{cN:()=>X,ch:()=>Cr,U1:()=>yt,VP:()=>d,zD:()=>Ft,pU:()=>Yn,Nc:()=>ki,vy:()=>Ne,Z0:()=>on,gk:()=>Qt,f$:()=>Dn,i0:()=>Rt,$S:()=>Z,sf:()=>Ct,mm:()=>Tn,TK:()=>bn,WA:()=>$t,Ak:()=>ke,aA:()=>ue});var l=u(1932),g=u(25508),y=u(14644);function x(nt){return({dispatch:Gt,getState:En})=>Qn=>Or=>typeof Or=="function"?Or(Gt,En,nt):Qn(Or)}var f=x(),p=x,h=(...nt)=>{const Tt=(0,g.Ad)(...nt),Gt=Object.assign((...En)=>{const Qn=Tt(...En),Or=(Pr,...ai)=>Qn((0,l.Qx)(Pr)?(0,l.ss)(Pr):Pr,...ai);return Object.assign(Or,Qn),Or},{withTypes:()=>Gt});return Gt},E=h(g.X4),v=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?y.compose:y.compose.apply(null,arguments)},m=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(nt){return nt}},S=nt=>nt&&typeof nt.match=="function";function d(nt,Tt){function Gt(...En){if(Tt){let Qn=Tt(...En);if(!Qn)throw new Error(Qt(0));return{type:nt,payload:Qn.payload,..."meta"in Qn&&{meta:Qn.meta},..."error"in Qn&&{error:Qn.error}}}return{type:nt,payload:En[0]}}return Gt.toString=()=>`${nt}`,Gt.type=nt,Gt.match=En=>(0,y.isAction)(En)&&En.type===nt,Gt}function O(nt){return typeof nt=="function"&&"type"in nt&&S(nt)}function R(nt){return(0,y.isAction)(nt)&&Object.keys(nt).every(C)}function C(nt){return["type","payload","error","meta"].indexOf(nt)>-1}function L(nt){const Tt=nt?`${nt}`.split("/"):[],Gt=Tt[Tt.length-1]||"actionCreator";return`Detected an action creator with type "${nt||"unknown"}" being dispatched. Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${Gt}())\` instead of \`dispatch(${Gt})\`. This is necessary even if the action has no payload.`}function j(nt={}){return()=>Tt=>Gt=>Tt(Gt)}function I(nt,Tt){let Gt=0;return{measureTime(En){const Qn=Date.now();try{return En()}finally{const Or=Date.now();Gt+=Or-Qn}},warnIfExceeded(){Gt>nt&&console.warn(`${Tt} took ${Gt}ms, which is more than the warning threshold of ${nt}ms. If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. It is disabled in production builds, so you don't need to worry about that.`)}}}var U=class ag extends Array{constructor(...Tt){super(...Tt),Object.setPrototypeOf(this,ag.prototype)}static get[Symbol.species](){return ag}concat(...Tt){return super.concat.apply(this,Tt)}prepend(...Tt){return Tt.length===1&&Array.isArray(Tt[0])?new ag(...Tt[0].concat(this)):new ag(...Tt.concat(this))}};function $(nt){return(0,l.a6)(nt)?(0,l.jM)(nt,()=>{}):nt}function ee(nt,Tt,Gt){return nt.has(Tt)?nt.get(Tt):nt.set(Tt,Gt(Tt)).get(Tt)}function re(nt){return typeof nt!="object"||nt==null||Object.isFrozen(nt)}function Se(nt,Tt,Gt){const En=z(nt,Tt,Gt);return{detectMutations(){return Q(nt,Tt,En,Gt)}}}function z(nt,Tt=[],Gt,En="",Qn=new Set){const Or={value:Gt};if(!nt(Gt)&&!Qn.has(Gt)){Qn.add(Gt),Or.children={};for(const Pr in Gt){const ai=En?En+"."+Pr:Pr;Tt.length&&Tt.indexOf(ai)!==-1||(Or.children[Pr]=z(nt,Tt,Gt[Pr],ai))}}return Or}function Q(nt,Tt=[],Gt,En,Qn=!1,Or=""){const Pr=Gt?Gt.value:void 0,ai=Pr===En;if(Qn&&!ai&&!Number.isNaN(En))return{wasMutated:!0,path:Or};if(nt(Pr)||nt(En))return{wasMutated:!1};const xi={};for(let ei in Gt.children)xi[ei]=!0;for(let ei in En)xi[ei]=!0;const mi=Tt.length>0;for(let ei in xi){const Qr=Or?Or+"."+ei:ei;if(mi&&Tt.some(Qi=>Qi instanceof RegExp?Qi.test(Qr):Qr===Qi))continue;const Ni=Q(nt,Tt,Gt.children[ei],En[ei],ai,Qr);if(Ni.wasMutated)return Ni}return{wasMutated:!1}}function ce(nt={}){if(1)return()=>En=>Qn=>En(Qn);var Tt,Gt}function se(nt){const Tt=typeof nt;return nt==null||Tt==="string"||Tt==="boolean"||Tt==="number"||Array.isArray(nt)||isPlainObject(nt)}function q(nt,Tt="",Gt=se,En,Qn=[],Or){let Pr;if(!Gt(nt))return{keyPath:Tt||"<root>",value:nt};if(typeof nt!="object"||nt===null||Or?.has(nt))return!1;const ai=En!=null?En(nt):Object.entries(nt),xi=Qn.length>0;for(const[mi,ei]of ai){const Qr=Tt?Tt+"."+mi:mi;if(!(xi&&Qn.some(ea=>ea instanceof RegExp?ea.test(Qr):Qr===ea))){if(!Gt(ei))return{keyPath:Qr,value:ei};if(typeof ei=="object"&&(Pr=q(ei,Qr,Gt,En,Qn,Or),Pr))return Pr}}return Or&&te(nt)&&Or.add(nt),!1}function te(nt){if(!Object.isFrozen(nt))return!1;for(const Tt of Object.values(nt))if(!(typeof Tt!="object"||Tt===null)&&!te(Tt))return!1;return!0}function A(nt={}){return()=>Tt=>Gt=>Tt(Gt)}function T(nt){return typeof nt=="boolean"}var B=()=>function(Tt){const{thunk:Gt=!0,immutableCheck:En=!0,serializableCheck:Qn=!0,actionCreatorCheck:Or=!0}=Tt??{};let Pr=new U;return Gt&&(T(Gt)?Pr.push(f):Pr.push(p(Gt.extraArgument))),Pr},X="RTK_autoBatch",ue=()=>nt=>({payload:nt,meta:{[X]:!0}}),ie=nt=>Tt=>{setTimeout(Tt,nt)},Te=(nt={type:"raf"})=>Tt=>(...Gt)=>{const En=Tt(...Gt);let Qn=!0,Or=!1,Pr=!1;const ai=new Set,xi=nt.type==="tick"?queueMicrotask:nt.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ie(10):nt.type==="callback"?nt.queueNotification:ie(nt.timeout),mi=()=>{Pr=!1,Or&&(Or=!1,ai.forEach(ei=>ei()))};return Object.assign({},En,{subscribe(ei){const Qr=()=>Qn&&ei(),Ni=En.subscribe(Qr);return ai.add(ei),()=>{Ni(),ai.delete(ei)}},dispatch(ei){try{return Qn=!ei?.meta?.[X],Or=!Qn,Or&&(Pr||(Pr=!0,xi(mi))),En.dispatch(ei)}finally{Qn=!0}}})},je=nt=>function(Gt){const{autoBatch:En=!0}=Gt??{};let Qn=new U(nt);return En&&Qn.push(Te(typeof En=="object"?En:void 0)),Qn};function yt(nt){const Tt=B(),{reducer:Gt=void 0,middleware:En,devTools:Qn=!0,duplicateMiddlewareCheck:Or=!0,preloadedState:Pr=void 0,enhancers:ai=void 0}=nt||{};let xi;if(typeof Gt=="function")xi=Gt;else if((0,y.isPlainObject)(Gt))xi=(0,y.combineReducers)(Gt);else throw new Error(Qt(1));let mi;typeof En=="function"?mi=En(Tt):mi=Tt();let ei=y.compose;Qn&&(ei=v({trace:!1,...typeof Qn=="object"&&Qn}));const Qr=(0,y.applyMiddleware)(...mi),Ni=je(Qr);let ea=typeof ai=="function"?ai(Ni):Ni();const Qi=ei(...ea);return(0,y.createStore)(xi,Pr,Qi)}function tt(nt){const Tt={},Gt=[];let En;const Qn={addCase(Or,Pr){const ai=typeof Or=="string"?Or:Or.type;if(!ai)throw new Error(Qt(28));if(ai in Tt)throw new Error(Qt(29));return Tt[ai]=Pr,Qn},addAsyncThunk(Or,Pr){return Pr.pending&&(Tt[Or.pending.type]=Pr.pending),Pr.rejected&&(Tt[Or.rejected.type]=Pr.rejected),Pr.fulfilled&&(Tt[Or.fulfilled.type]=Pr.fulfilled),Pr.settled&&Gt.push({matcher:Or.settled,reducer:Pr.settled}),Qn},addMatcher(Or,Pr){return Gt.push({matcher:Or,reducer:Pr}),Qn},addDefaultCase(Or){return En=Or,Qn}};return nt(Qn),[Tt,Gt,En]}function Ze(nt){return typeof nt=="function"}function Ne(nt,Tt){let[Gt,En,Qn]=tt(Tt),Or;if(Ze(nt))Or=()=>$(nt());else{const ai=$(nt);Or=()=>ai}function Pr(ai=Or(),xi){let mi=[Gt[xi.type],...En.filter(({matcher:ei})=>ei(xi)).map(({reducer:ei})=>ei)];return mi.filter(ei=>!!ei).length===0&&(mi=[Qn]),mi.reduce((ei,Qr)=>{if(Qr)if((0,l.Qx)(ei)){const ea=Qr(ei,xi);return ea===void 0?ei:ea}else{if((0,l.a6)(ei))return(0,l.jM)(ei,Ni=>Qr(Ni,xi));{const Ni=Qr(ei,xi);if(Ni===void 0){if(ei===null)return ei;throw Error("A case reducer on a non-draftable value must not return undefined")}return Ni}}return ei},ai)}return Pr.getInitialState=Or,Pr}var it=(nt,Tt)=>S(nt)?nt.match(Tt):nt(Tt);function Rt(...nt){return Tt=>nt.some(Gt=>it(Gt,Tt))}function Dn(...nt){return Tt=>nt.every(Gt=>it(Gt,Tt))}function Mt(nt,Tt){if(!nt||!nt.meta)return!1;const Gt=typeof nt.meta.requestId=="string",En=Tt.indexOf(nt.meta.requestStatus)>-1;return Gt&&En}function Wt(nt){return typeof nt[0]=="function"&&"pending"in nt[0]&&"fulfilled"in nt[0]&&"rejected"in nt[0]}function Tn(...nt){return nt.length===0?Tt=>Mt(Tt,["pending"]):Wt(nt)?Rt(...nt.map(Tt=>Tt.pending)):Tn()(nt[0])}function bn(...nt){return nt.length===0?Tt=>Mt(Tt,["rejected"]):Wt(nt)?Rt(...nt.map(Tt=>Tt.rejected)):bn()(nt[0])}function $t(...nt){const Tt=Gt=>Gt&&Gt.meta&&Gt.meta.rejectedWithValue;return nt.length===0?Dn(bn(...nt),Tt):Wt(nt)?Dn(bn(...nt),Tt):$t()(nt[0])}function Ct(...nt){return nt.length===0?Tt=>Mt(Tt,["fulfilled"]):Wt(nt)?Rt(...nt.map(Tt=>Tt.fulfilled)):Ct()(nt[0])}function Z(...nt){return nt.length===0?Tt=>Mt(Tt,["pending","fulfilled","rejected"]):Wt(nt)?Rt(...nt.flatMap(Tt=>[Tt.pending,Tt.rejected,Tt.fulfilled])):Z()(nt[0])}var me="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ke=(nt=21)=>{let Tt="",Gt=nt;for(;Gt--;)Tt+=me[Math.random()*64|0];return Tt},Ee=["name","message","stack","code"],_e=class{constructor(nt,Tt){this.payload=nt,this.meta=Tt}_type},ge=class{constructor(nt,Tt){this.payload=nt,this.meta=Tt}_type},Me=nt=>{if(typeof nt=="object"&&nt!==null){const Tt={};for(const Gt of Ee)typeof nt[Gt]=="string"&&(Tt[Gt]=nt[Gt]);return Tt}return{message:String(nt)}},lt="External signal was aborted",Ft=(()=>{function nt(Tt,Gt,En){const Qn=d(Tt+"/fulfilled",(xi,mi,ei,Qr)=>({payload:xi,meta:{...Qr||{},arg:ei,requestId:mi,requestStatus:"fulfilled"}})),Or=d(Tt+"/pending",(xi,mi,ei)=>({payload:void 0,meta:{...ei||{},arg:mi,requestId:xi,requestStatus:"pending"}})),Pr=d(Tt+"/rejected",(xi,mi,ei,Qr,Ni)=>({payload:Qr,error:(En&&En.serializeError||Me)(xi||"Rejected"),meta:{...Ni||{},arg:ei,requestId:mi,rejectedWithValue:!!Qr,requestStatus:"rejected",aborted:xi?.name==="AbortError",condition:xi?.name==="ConditionError"}}));function ai(xi,{signal:mi}={}){return(ei,Qr,Ni)=>{const ea=En?.idGenerator?En.idGenerator(xi):ke(),Qi=new AbortController;let ir,xr;function di(zn){xr=zn,Qi.abort()}mi&&(mi.aborted?di(lt):mi.addEventListener("abort",()=>di(lt),{once:!0}));const ft=async function(){let zn;try{let wi=En?.condition?.(xi,{getState:Qr,extra:Ni});if(Zt(wi)&&(wi=await wi),wi===!1||Qi.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const Ea=new Promise((wa,ji)=>{ir=()=>{ji({name:"AbortError",message:xr||"Aborted"})},Qi.signal.addEventListener("abort",ir)});ei(Or(ea,xi,En?.getPendingMeta?.({requestId:ea,arg:xi},{getState:Qr,extra:Ni}))),zn=await Promise.race([Ea,Promise.resolve(Gt(xi,{dispatch:ei,getState:Qr,extra:Ni,requestId:ea,signal:Qi.signal,abort:di,rejectWithValue:(wa,ji)=>new _e(wa,ji),fulfillWithValue:(wa,ji)=>new ge(wa,ji)})).then(wa=>{if(wa instanceof _e)throw wa;return wa instanceof ge?Qn(wa.payload,ea,xi,wa.meta):Qn(wa,ea,xi)})])}catch(wi){zn=wi instanceof _e?Pr(null,ea,xi,wi.payload,wi.meta):Pr(wi,ea,xi)}finally{ir&&Qi.signal.removeEventListener("abort",ir)}return En&&!En.dispatchConditionRejection&&Pr.match(zn)&&zn.meta.condition||ei(zn),zn}();return Object.assign(ft,{abort:di,requestId:ea,arg:xi,unwrap(){return ft.then(Et)}})}}return Object.assign(ai,{pending:Or,rejected:Pr,fulfilled:Qn,settled:Rt(Pr,Qn),typePrefix:Tt})}return nt.withTypes=()=>nt,nt})();function Et(nt){if(nt.meta&&nt.meta.rejectedWithValue)throw nt.payload;if(nt.error)throw nt.error;return nt.payload}function Zt(nt){return nt!==null&&typeof nt=="object"&&typeof nt.then=="function"}var nn=Symbol.for("rtk-slice-createasyncthunk"),Pn={[nn]:Ft},rn=(nt=>(nt.reducer="reducer",nt.reducerWithPrepare="reducerWithPrepare",nt.asyncThunk="asyncThunk",nt))(rn||{});function Vt(nt,Tt){return`${nt}/${Tt}`}function Kn({creators:nt}={}){const Tt=nt?.asyncThunk?.[nn];return function(En){const{name:Qn,reducerPath:Or=Qn}=En;if(!Qn)throw new Error(Qt(11));typeof process<"u";const Pr=(typeof En.reducers=="function"?En.reducers(tr()):En.reducers)||{},ai=Object.keys(Pr),xi={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},mi={addCase(zn,Zn){const wi=typeof zn=="string"?zn:zn.type;if(!wi)throw new Error(Qt(12));if(wi in xi.sliceCaseReducersByType)throw new Error(Qt(13));return xi.sliceCaseReducersByType[wi]=Zn,mi},addMatcher(zn,Zn){return xi.sliceMatchers.push({matcher:zn,reducer:Zn}),mi},exposeAction(zn,Zn){return xi.actionCreators[zn]=Zn,mi},exposeCaseReducer(zn,Zn){return xi.sliceCaseReducersByName[zn]=Zn,mi}};ai.forEach(zn=>{const Zn=Pr[zn],wi={reducerName:zn,type:Vt(Qn,zn),createNotation:typeof En.reducers=="function"};Wn(Zn)?Fn(wi,Zn,mi,Tt):Cn(wi,Zn,mi)});function ei(){const[zn={},Zn=[],wi=void 0]=typeof En.extraReducers=="function"?tt(En.extraReducers):[En.extraReducers],Ea={...zn,...xi.sliceCaseReducersByType};return Ne(En.initialState,wa=>{for(let ji in Ea)wa.addCase(ji,Ea[ji]);for(let ji of xi.sliceMatchers)wa.addMatcher(ji.matcher,ji.reducer);for(let ji of Zn)wa.addMatcher(ji.matcher,ji.reducer);wi&&wa.addDefaultCase(wi)})}const Qr=zn=>zn,Ni=new Map,ea=new WeakMap;let Qi;function ir(zn,Zn){return Qi||(Qi=ei()),Qi(zn,Zn)}function xr(){return Qi||(Qi=ei()),Qi.getInitialState()}function di(zn,Zn=!1){function wi(wa){let ji=wa[zn];return typeof ji>"u"&&Zn&&(ji=ee(ea,wi,xr)),ji}function Ea(wa=Qr){const ji=ee(Ni,Zn,()=>new WeakMap);return ee(ji,wa,()=>{const Dt={};for(const[Xn,Tr]of Object.entries(En.selectors??{}))Dt[Xn]=ur(Tr,wa,()=>ee(ea,wa,xr),Zn);return Dt})}return{reducerPath:zn,getSelectors:Ea,get selectors(){return Ea(wi)},selectSlice:wi}}const ft={name:Qn,reducer:ir,actions:xi.actionCreators,caseReducers:xi.sliceCaseReducersByName,getInitialState:xr,...di(Or),injectInto(zn,{reducerPath:Zn,...wi}={}){const Ea=Zn??Or;return zn.inject({reducerPath:Ea,reducer:ir},wi),{...ft,...di(Ea,!0)}}};return ft}}function ur(nt,Tt,Gt,En){function Qn(Or,...Pr){let ai=Tt(Or);return typeof ai>"u"&&En&&(ai=Gt()),nt(ai,...Pr)}return Qn.unwrapped=nt,Qn}var on=Kn();function tr(){function nt(Tt,Gt){return{_reducerDefinitionType:"asyncThunk",payloadCreator:Tt,...Gt}}return nt.withTypes=()=>nt,{reducer(Tt){return Object.assign({[Tt.name](...Gt){return Tt(...Gt)}}[Tt.name],{_reducerDefinitionType:"reducer"})},preparedReducer(Tt,Gt){return{_reducerDefinitionType:"reducerWithPrepare",prepare:Tt,reducer:Gt}},asyncThunk:nt}}function Cn({type:nt,reducerName:Tt,createNotation:Gt},En,Qn){let Or,Pr;if("reducer"in En){if(Gt&&!er(En))throw new Error(Qt(17));Or=En.reducer,Pr=En.prepare}else Or=En;Qn.addCase(nt,Or).exposeCaseReducer(Tt,Or).exposeAction(Tt,Pr?d(nt,Pr):d(nt))}function Wn(nt){return nt._reducerDefinitionType==="asyncThunk"}function er(nt){return nt._reducerDefinitionType==="reducerWithPrepare"}function Fn({type:nt,reducerName:Tt},Gt,En,Qn){if(!Qn)throw new Error(Qt(18));const{payloadCreator:Or,fulfilled:Pr,pending:ai,rejected:xi,settled:mi,options:ei}=Gt,Qr=Qn(nt,Or,ei);En.exposeAction(Tt,Qr),Pr&&En.addCase(Qr.fulfilled,Pr),ai&&En.addCase(Qr.pending,ai),xi&&En.addCase(Qr.rejected,xi),mi&&En.addMatcher(Qr.settled,mi),En.exposeCaseReducer(Tt,{fulfilled:Pr||en,pending:ai||en,rejected:xi||en,settled:mi||en})}function en(){}function gn(){return{ids:[],entities:{}}}function kn(nt){function Tt(Gt={},En){const Qn=Object.assign(gn(),Gt);return En?nt.setAll(Qn,En):Qn}return{getInitialState:Tt}}function Jn(){function nt(Tt,Gt={}){const{createSelector:En=E}=Gt,Qn=Qr=>Qr.ids,Or=Qr=>Qr.entities,Pr=En(Qn,Or,(Qr,Ni)=>Qr.map(ea=>Ni[ea])),ai=(Qr,Ni)=>Ni,xi=(Qr,Ni)=>Qr[Ni],mi=En(Qn,Qr=>Qr.length);if(!Tt)return{selectIds:Qn,selectEntities:Or,selectAll:Pr,selectTotal:mi,selectById:En(Or,ai,xi)};const ei=En(Tt,Or);return{selectIds:En(Tt,Qn),selectEntities:ei,selectAll:En(Tt,Pr),selectTotal:En(Tt,mi),selectById:En(ei,ai,xi)}}return{getSelectors:nt}}var Nn=l.Qx;function kr(nt){const Tt=bt((Gt,En)=>nt(En));return function(En){return Tt(En,void 0)}}function bt(nt){return function(Gt,En){function Qn(Pr){return R(Pr)}const Or=Pr=>{Qn(En)?nt(En.payload,Pr):nt(En,Pr)};return Nn(Gt)?(Or(Gt),Gt):(0,l.jM)(Gt,Or)}}function ne(nt,Tt){return Tt(nt)}function fe(nt){return Array.isArray(nt)||(nt=Object.values(nt)),nt}function K(nt){return(0,l.Qx)(nt)?(0,l.ss)(nt):nt}function he(nt,Tt,Gt){nt=fe(nt);const En=K(Gt.ids),Qn=new Set(En),Or=[],Pr=new Set([]),ai=[];for(const xi of nt){const mi=ne(xi,Tt);Qn.has(mi)||Pr.has(mi)?ai.push({id:mi,changes:xi}):(Pr.add(mi),Or.push(xi))}return[Or,ai,En]}function Fe(nt){function Tt(Qi,ir){const xr=ne(Qi,nt);xr in ir.entities||(ir.ids.push(xr),ir.entities[xr]=Qi)}function Gt(Qi,ir){Qi=fe(Qi);for(const xr of Qi)Tt(xr,ir)}function En(Qi,ir){const xr=ne(Qi,nt);xr in ir.entities||ir.ids.push(xr),ir.entities[xr]=Qi}function Qn(Qi,ir){Qi=fe(Qi);for(const xr of Qi)En(xr,ir)}function Or(Qi,ir){Qi=fe(Qi),ir.ids=[],ir.entities={},Gt(Qi,ir)}function Pr(Qi,ir){return ai([Qi],ir)}function ai(Qi,ir){let xr=!1;Qi.forEach(di=>{di in ir.entities&&(delete ir.entities[di],xr=!0)}),xr&&(ir.ids=ir.ids.filter(di=>di in ir.entities))}function xi(Qi){Object.assign(Qi,{ids:[],entities:{}})}function mi(Qi,ir,xr){const di=xr.entities[ir.id];if(di===void 0)return!1;const ft=Object.assign({},di,ir.changes),zn=ne(ft,nt),Zn=zn!==ir.id;return Zn&&(Qi[ir.id]=zn,delete xr.entities[ir.id]),xr.entities[zn]=ft,Zn}function ei(Qi,ir){return Qr([Qi],ir)}function Qr(Qi,ir){const xr={},di={};Qi.forEach(zn=>{zn.id in ir.entities&&(di[zn.id]={id:zn.id,changes:{...di[zn.id]?.changes,...zn.changes}})}),Qi=Object.values(di),Qi.length>0&&Qi.filter(Zn=>mi(xr,Zn,ir)).length>0&&(ir.ids=Object.values(ir.entities).map(Zn=>ne(Zn,nt)))}function Ni(Qi,ir){return ea([Qi],ir)}function ea(Qi,ir){const[xr,di]=he(Qi,nt,ir);Gt(xr,ir),Qr(di,ir)}return{removeAll:kr(xi),addOne:bt(Tt),addMany:bt(Gt),setOne:bt(En),setMany:bt(Qn),setAll:bt(Or),updateOne:bt(ei),updateMany:bt(Qr),upsertOne:bt(Ni),upsertMany:bt(ea),removeOne:bt(Pr),removeMany:bt(ai)}}function Nt(nt,Tt,Gt){let En=0,Qn=nt.length;for(;En<Qn;){let Or=En+Qn>>>1;const Pr=nt[Or];Gt(Tt,Pr)>=0?En=Or+1:Qn=Or}return En}function ln(nt,Tt,Gt){const En=Nt(nt,Tt,Gt);return nt.splice(En,0,Tt),nt}function pn(nt,Tt){const{removeOne:Gt,removeMany:En,removeAll:Qn}=Fe(nt);function Or(xr,di){return Pr([xr],di)}function Pr(xr,di,ft){xr=fe(xr);const zn=new Set(ft??K(di.ids)),Zn=xr.filter(wi=>!zn.has(ne(wi,nt)));Zn.length!==0&&ir(di,Zn)}function ai(xr,di){return xi([xr],di)}function xi(xr,di){if(xr=fe(xr),xr.length!==0){for(const ft of xr)delete di.entities[nt(ft)];ir(di,xr)}}function mi(xr,di){xr=fe(xr),di.entities={},di.ids=[],Pr(xr,di,[])}function ei(xr,di){return Qr([xr],di)}function Qr(xr,di){let ft=!1,zn=!1;for(let Zn of xr){const wi=di.entities[Zn.id];if(!wi)continue;ft=!0,Object.assign(wi,Zn.changes);const Ea=nt(wi);if(Zn.id!==Ea){zn=!0,delete di.entities[Zn.id];const wa=di.ids.indexOf(Zn.id);di.ids[wa]=Ea,di.entities[Ea]=wi}}ft&&ir(di,[],ft,zn)}function Ni(xr,di){return ea([xr],di)}function ea(xr,di){const[ft,zn,Zn]=he(xr,nt,di);ft.length&&Pr(ft,di,Zn),zn.length&&Qr(zn,di)}function Qi(xr,di){if(xr.length!==di.length)return!1;for(let ft=0;ft<xr.length;ft++)if(xr[ft]!==di[ft])return!1;return!0}const ir=(xr,di,ft,zn)=>{const Zn=K(xr.entities),wi=K(xr.ids),Ea=xr.entities;let wa=wi;zn&&(wa=new Set(wi));let ji=[];for(const Tr of wa){const Nr=Zn[Tr];Nr&&ji.push(Nr)}const Dt=ji.length===0;for(const Tr of di)Ea[nt(Tr)]=Tr,Dt||ln(ji,Tr,Tt);Dt?ji=di.slice().sort(Tt):ft&&ji.sort(Tt);const Xn=ji.map(nt);Qi(wi,Xn)||(xr.ids=Xn)};return{removeOne:Gt,removeMany:En,removeAll:Qn,addOne:bt(Or),updateOne:bt(ei),upsertOne:bt(Ni),setOne:bt(ai),setMany:bt(xi),setAll:bt(mi),addMany:bt(Pr),updateMany:bt(Qr),upsertMany:bt(ea)}}function Yn(nt={}){const{selectId:Tt,sortComparer:Gt}={sortComparer:!1,selectId:Pr=>Pr.id,...nt},En=Gt?pn(Tt,Gt):Fe(Tt),Qn=kn(En),Or=Jn();return{selectId:Tt,sortComparer:Gt,...Qn,...Or,...En}}var ht="task",De="listener",we="completed",Ke="cancelled",be=`task-${Ke}`,pt=`task-${we}`,We=`${De}-${Ke}`,Je=`${De}-${we}`,ye=class{constructor(nt){this.code=nt,this.message=`${ht} ${Ke} (reason: ${nt})`}name="TaskAbortError";message},Qe=(nt,Tt)=>{if(typeof nt!="function")throw new TypeError(Qt(32))},ze=()=>{},qe=(nt,Tt=ze)=>(nt.catch(Tt),nt),Pt=(nt,Tt)=>(nt.addEventListener("abort",Tt,{once:!0}),()=>nt.removeEventListener("abort",Tt)),zt=(nt,Tt)=>{const Gt=nt.signal;Gt.aborted||("reason"in Gt||Object.defineProperty(Gt,"reason",{enumerable:!0,value:Tt,configurable:!0,writable:!0}),nt.abort(Tt))},un=nt=>{if(nt.aborted){const{reason:Tt}=nt;throw new ye(Tt)}};function hn(nt,Tt){let Gt=ze;return new Promise((En,Qn)=>{const Or=()=>Qn(new ye(nt.reason));if(nt.aborted){Or();return}Gt=Pt(nt,Or),Tt.finally(()=>Gt()).then(En,Qn)}).finally(()=>{Gt=ze})}var xt=async(nt,Tt)=>{try{return await Promise.resolve(),{status:"ok",value:await nt()}}catch(Gt){return{status:Gt instanceof ye?"cancelled":"rejected",error:Gt}}finally{Tt?.()}},_t=nt=>Tt=>qe(hn(nt,Tt).then(Gt=>(un(nt),Gt))),qt=nt=>{const Tt=_t(nt);return Gt=>Tt(new Promise(En=>setTimeout(En,Gt)))},{assign:fn}=Object,On={},Gn="listenerMiddleware",Bn=(nt,Tt)=>{const Gt=En=>Pt(nt,()=>zt(En,nt.reason));return(En,Qn)=>{Qe(En,"taskExecutor");const Or=new AbortController;Gt(Or);const Pr=xt(async()=>{un(nt),un(Or.signal);const ai=await En({pause:_t(Or.signal),delay:qt(Or.signal),signal:Or.signal});return un(Or.signal),ai},()=>zt(Or,pt));return Qn?.autoJoin&&Tt.push(Pr.catch(ze)),{result:_t(nt)(Pr),cancel(){zt(Or,be)}}}},Lr=(nt,Tt)=>{const Gt=async(En,Qn)=>{un(Tt);let Or=()=>{};const ai=[new Promise((xi,mi)=>{let ei=nt({predicate:En,effect:(Qr,Ni)=>{Ni.unsubscribe(),xi([Qr,Ni.getState(),Ni.getOriginalState()])}});Or=()=>{ei(),mi()}})];Qn!=null&&ai.push(new Promise(xi=>setTimeout(xi,Qn,null)));try{const xi=await hn(Tt,Promise.race(ai));return un(Tt),xi}finally{Or()}};return(En,Qn)=>qe(Gt(En,Qn))},An=nt=>{let{type:Tt,actionCreator:Gt,matcher:En,predicate:Qn,effect:Or}=nt;if(Tt)Qn=d(Tt).match;else if(Gt)Tt=Gt.type,Qn=Gt.match;else if(En)Qn=En;else if(!Qn)throw new Error(Qt(21));return Qe(Or,"options.listener"),{predicate:Qn,type:Tt,effect:Or}},Un=fn(nt=>{const{type:Tt,predicate:Gt,effect:En}=An(nt);return{id:ke(),effect:En,type:Tt,predicate:Gt,pending:new Set,unsubscribe:()=>{throw new Error(Qt(22))}}},{withTypes:()=>Un}),cr=(nt,Tt)=>{const{type:Gt,effect:En,predicate:Qn}=An(Tt);return Array.from(nt.values()).find(Or=>(typeof Gt=="string"?Or.type===Gt:Or.predicate===Qn)&&Or.effect===En)},mr=nt=>{nt.pending.forEach(Tt=>{zt(Tt,We)})},hr=nt=>()=>{nt.forEach(mr),nt.clear()},ar=(nt,Tt,Gt)=>{try{nt(Tt,Gt)}catch(En){setTimeout(()=>{throw En},0)}},Cr=fn(d(`${Gn}/add`),{withTypes:()=>Cr}),Yr=d(`${Gn}/removeAll`),Xr=fn(d(`${Gn}/remove`),{withTypes:()=>Xr}),ni=(...nt)=>{console.error(`${Gn}/error`,...nt)},ki=(nt={})=>{const Tt=new Map,{extra:Gt,onError:En=ni}=nt;Qe(En,"onError");const Qn=ei=>(ei.unsubscribe=()=>Tt.delete(ei.id),Tt.set(ei.id,ei),Qr=>{ei.unsubscribe(),Qr?.cancelActive&&mr(ei)}),Or=ei=>{const Qr=cr(Tt,ei)??Un(ei);return Qn(Qr)};fn(Or,{withTypes:()=>Or});const Pr=ei=>{const Qr=cr(Tt,ei);return Qr&&(Qr.unsubscribe(),ei.cancelActive&&mr(Qr)),!!Qr};fn(Pr,{withTypes:()=>Pr});const ai=async(ei,Qr,Ni,ea)=>{const Qi=new AbortController,ir=Lr(Or,Qi.signal),xr=[];try{ei.pending.add(Qi),await Promise.resolve(ei.effect(Qr,fn({},Ni,{getOriginalState:ea,condition:(di,ft)=>ir(di,ft).then(Boolean),take:ir,delay:qt(Qi.signal),pause:_t(Qi.signal),extra:Gt,signal:Qi.signal,fork:Bn(Qi.signal,xr),unsubscribe:ei.unsubscribe,subscribe:()=>{Tt.set(ei.id,ei)},cancelActiveListeners:()=>{ei.pending.forEach((di,ft,zn)=>{di!==Qi&&(zt(di,We),zn.delete(di))})},cancel:()=>{zt(Qi,We),ei.pending.delete(Qi)},throwIfCancelled:()=>{un(Qi.signal)}})))}catch(di){di instanceof ye||ar(En,di,{raisedBy:"effect"})}finally{await Promise.all(xr),zt(Qi,Je),ei.pending.delete(Qi)}},xi=hr(Tt);return{middleware:ei=>Qr=>Ni=>{if(!(0,y.isAction)(Ni))return Qr(Ni);if(Cr.match(Ni))return Or(Ni.payload);if(Yr.match(Ni)){xi();return}if(Xr.match(Ni))return Pr(Ni.payload);let ea=ei.getState();const Qi=()=>{if(ea===On)throw new Error(Qt(23));return ea};let ir;try{if(ir=Qr(Ni),Tt.size>0){const xr=ei.getState(),di=Array.from(Tt.values());for(const ft of di){let zn=!1;try{zn=ft.predicate(Ni,xr,ea)}catch(Zn){zn=!1,ar(En,Zn,{raisedBy:"predicate"})}zn&&ai(ft,Ni,ei,Qi)}}}finally{ea=On}return ir},startListening:Or,stopListening:Pr,clearListeners:xi}},zr=nt=>({middleware:nt,applied:new Map}),Ur=nt=>Tt=>Tt?.meta?.instanceId===nt,jt=()=>{const nt=ke(),Tt=new Map,Gt=Object.assign(d("dynamicMiddleware/add",(...ai)=>({payload:ai,meta:{instanceId:nt}})),{withTypes:()=>Gt}),En=Object.assign(function(...xi){xi.forEach(mi=>{ee(Tt,mi,zr)})},{withTypes:()=>En}),Qn=ai=>{const xi=Array.from(Tt.values()).map(mi=>ee(mi.applied,ai,mi.middleware));return compose3(...xi)},Or=Dn(Gt,Ur(nt));return{middleware:ai=>xi=>mi=>Or(mi)?(En(...mi.payload),ai.dispatch):Qn(ai)(xi)(mi),addMiddleware:En,withMiddleware:Gt,instanceId:nt}},sn=nt=>"reducerPath"in nt&&typeof nt.reducerPath=="string",Rn=nt=>nt.flatMap(Tt=>sn(Tt)?[[Tt.reducerPath,Tt.reducer]]:Object.entries(Tt)),H=Symbol.for("rtk-state-proxy-original"),Be=nt=>!!nt&&!!nt[H],wn=new WeakMap,bi=(nt,Tt,Gt)=>ee(wn,nt,()=>new Proxy(nt,{get:(En,Qn,Or)=>{if(Qn===H)return En;const Pr=Reflect.get(En,Qn,Or);if(typeof Pr>"u"){const ai=Gt[Qn];if(typeof ai<"u")return ai;const xi=Tt[Qn];if(xi){const mi=xi(void 0,{type:ke()});if(typeof mi>"u")throw new Error(Qt(24));return Gt[Qn]=mi,mi}}return Pr}})),Oi=nt=>{if(!Be(nt))throw new Error(Qt(25));return nt[H]},de={},Ve=(nt=de)=>nt;function vt(...nt){const Tt=Object.fromEntries(Rn(nt)),Gt=()=>Object.keys(Tt).length?combineReducers2(Tt):Ve;let En=Gt();function Qn(xi,mi){return En(xi,mi)}Qn.withLazyLoadedSlices=()=>Qn;const Or={},Pr=(xi,mi={})=>{const{reducerPath:ei,reducer:Qr}=xi,Ni=Tt[ei];return!mi.overrideExisting&&Ni&&Ni!==Qr?(typeof process<"u",Qn):(mi.overrideExisting&&Ni!==Qr&&delete Or[ei],Tt[ei]=Qr,En=Gt(),Qn)},ai=Object.assign(function(mi,ei){return function(Ni,...ea){return mi(bi(ei?ei(Ni,...ea):Ni,Tt,Or),...ea)}},{original:Oi});return Object.assign(Qn,{inject:Pr,selector:ai})}function Qt(nt){return`Minified Redux Toolkit error #${nt}; visit https://redux-toolkit.js.org/Errors?code=${nt} for the full message or use the non-minified dev environment for full errors. `}},65474:(Ge,w,u)=>{"use strict";u.d(w,{H:()=>y});var l=u(3738),g=u(15964);function y(x,f){return f?(0,l.c)(x,f):(0,g.Tg)(x)}},65650:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scheduleObservable=void 0;var l=u(19724),g=u(32071),y=u(5455);function x(f,p){return l.innerFrom(f).pipe(y.subscribeOn(p),g.observeOn(p))}w.scheduleObservable=x},65661:(Ge,w,u)=>{"use strict";var l;l=!0,w.default=void 0;var g=v(u(96540)),y=h(u(83175)),x=h(u(15630)),f=u(28329),p=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function h($){return $&&$.__esModule?$:{default:$}}function E($){if(typeof WeakMap!="function")return null;var ee=new WeakMap,re=new WeakMap;return(E=function(z){return z?re:ee})($)}function v($,ee){if(!ee&&$&&$.__esModule)return $;if($===null||typeof $!="object"&&typeof $!="function")return{default:$};var re=E(ee);if(re&&re.has($))return re.get($);var Se={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in $)if(Q!=="default"&&Object.prototype.hasOwnProperty.call($,Q)){var ce=z?Object.getOwnPropertyDescriptor($,Q):null;ce&&(ce.get||ce.set)?Object.defineProperty(Se,Q,ce):Se[Q]=$[Q]}return Se.default=$,re&&re.set($,Se),Se}function m(){return m=Object.assign?Object.assign.bind():function($){for(var ee=1;ee<arguments.length;ee++){var re=arguments[ee];for(var Se in re)Object.prototype.hasOwnProperty.call(re,Se)&&($[Se]=re[Se])}return $},m.apply(this,arguments)}function S($,ee){var re=Object.keys($);if(Object.getOwnPropertySymbols){var Se=Object.getOwnPropertySymbols($);ee&&(Se=Se.filter(function(z){return Object.getOwnPropertyDescriptor($,z).enumerable})),re.push.apply(re,Se)}return re}function d($){for(var ee=1;ee<arguments.length;ee++){var re=arguments[ee]!=null?arguments[ee]:{};ee%2?S(Object(re),!0).forEach(function(Se){O($,Se,re[Se])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(re)):S(Object(re)).forEach(function(Se){Object.defineProperty($,Se,Object.getOwnPropertyDescriptor(re,Se))})}return $}function O($,ee,re){return ee=R(ee),ee in $?Object.defineProperty($,ee,{value:re,enumerable:!0,configurable:!0,writable:!0}):$[ee]=re,$}function R($){var ee=C($,"string");return typeof ee=="symbol"?ee:String(ee)}function C($,ee){if(typeof $!="object"||$===null)return $;var re=$[Symbol.toPrimitive];if(re!==void 0){var Se=re.call($,ee||"default");if(typeof Se!="object")return Se;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)($)}function L($,ee){if($==null)return{};var re={},Se=Object.keys($),z,Q;for(Q=0;Q<Se.length;Q++)z=Se[Q],!(ee.indexOf(z)>=0)&&(re[z]=$[z]);return re}function j($,ee){$.prototype=Object.create(ee.prototype),$.prototype.constructor=$,I($,ee)}function I($,ee){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Se,z){return Se.__proto__=z,Se},I($,ee)}var U=function($){j(ee,$);function ee(){for(var Se,z=arguments.length,Q=new Array(z),ce=0;ce<z;ce++)Q[ce]=arguments[ce];return Se=$.call.apply($,[this].concat(Q))||this,Se.state={width:Se.props.width,height:Se.props.height,propsWidth:Se.props.width,propsHeight:Se.props.height},Se.onResize=function(se,q){var te=q.size;Se.props.onResize?(se.persist==null||se.persist(),Se.setState(te,function(){return Se.props.onResize&&Se.props.onResize(se,q)})):Se.setState(te)},Se}ee.getDerivedStateFromProps=function(z,Q){return Q.propsWidth!==z.width||Q.propsHeight!==z.height?{width:z.width,height:z.height,propsWidth:z.width,propsHeight:z.height}:null};var re=ee.prototype;return re.render=function(){var z=this.props,Q=z.handle,ce=z.handleSize,se=z.onResize,q=z.onResizeStart,te=z.onResizeStop,A=z.draggableOpts,T=z.minConstraints,B=z.maxConstraints,X=z.lockAspectRatio,ue=z.axis,ie=z.width,Te=z.height,je=z.resizeHandles,yt=z.style,tt=z.transformScale,Ze=L(z,p);return g.createElement(x.default,{axis:ue,draggableOpts:A,handle:Q,handleSize:ce,height:this.state.height,lockAspectRatio:X,maxConstraints:B,minConstraints:T,onResizeStart:q,onResize:this.onResize,onResizeStop:te,resizeHandles:je,transformScale:tt,width:this.state.width},g.createElement("div",m({},Ze,{style:d(d({},yt),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},ee}(g.Component);w.default=U,U.propTypes=d(d({},f.resizableProps),{},{children:y.default.element})},65774:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.skipWhile=void 0;var l=u(65212),g=u(17214);function y(x){return l.operate(function(f,p){var h=!1,E=0;f.subscribe(g.createOperatorSubscriber(p,function(v){return(h||(h=!x(v,E++)))&&p.next(v)}))})}w.skipWhile=y},65838:function(Ge,w){(function(u,l){l(w)})(this,function(u){"use strict";var l=typeof WeakSet=="function",g=Object.keys;function y(z,Q){return z===Q||z!==z&&Q!==Q}function x(z){return z.constructor===Object||z.constructor==null}function f(z){return!!z&&typeof z.then=="function"}function p(z){return!!(z&&z.$$typeof)}function h(){var z=[];return{add:function(Q){z.push(Q)},has:function(Q){return z.indexOf(Q)!==-1}}}var E=function(z){return z?function(){return new WeakSet}:h}(l);function v(z){return function(ce){var se=z||ce;return function(te,A,T){T===void 0&&(T=E());var B=!!te&&typeof te=="object",X=!!A&&typeof A=="object";if(B||X){var ue=B&&T.has(te),ie=X&&T.has(A);if(ue||ie)return ue&&ie;B&&T.add(te),X&&T.add(A)}return se(te,A,T)}}}function m(z,Q,ce,se){var q=z.length;if(Q.length!==q)return!1;for(;q-- >0;)if(!ce(z[q],Q[q],se))return!1;return!0}function S(z,Q,ce,se){var q=z.size===Q.size;if(q&&z.size){var te={};z.forEach(function(A,T){if(q){var B=!1,X=0;Q.forEach(function(ue,ie){!B&&!te[X]&&(B=ce(T,ie,se)&&ce(A,ue,se),B&&(te[X]=!0)),X++}),q=B}})}return q}var d="_owner",O=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function R(z,Q,ce,se){var q=g(z),te=q.length;if(g(Q).length!==te)return!1;if(te)for(var A=void 0;te-- >0;){if(A=q[te],A===d){var T=p(z),B=p(Q);if((T||B)&&T!==B)return!1}if(!O(Q,A)||!ce(z[A],Q[A],se))return!1}return!0}function C(z,Q){return z.source===Q.source&&z.global===Q.global&&z.ignoreCase===Q.ignoreCase&&z.multiline===Q.multiline&&z.unicode===Q.unicode&&z.sticky===Q.sticky&&z.lastIndex===Q.lastIndex}function L(z,Q,ce,se){var q=z.size===Q.size;if(q&&z.size){var te={};z.forEach(function(A){if(q){var T=!1,B=0;Q.forEach(function(X){!T&&!te[B]&&(T=ce(A,X,se),T&&(te[B]=!0)),B++}),q=T}})}return q}var j=typeof Map=="function",I=typeof Set=="function";function U(z){var Q=typeof z=="function"?z(ce):ce;function ce(se,q,te){if(se===q)return!0;if(se&&q&&typeof se=="object"&&typeof q=="object"){if(x(se)&&x(q))return R(se,q,Q,te);var A=Array.isArray(se),T=Array.isArray(q);return A||T?A===T&&m(se,q,Q,te):(A=se instanceof Date,T=q instanceof Date,A||T?A===T&&y(se.getTime(),q.getTime()):(A=se instanceof RegExp,T=q instanceof RegExp,A||T?A===T&&C(se,q):f(se)||f(q)?se===q:j&&(A=se instanceof Map,T=q instanceof Map,A||T)?A===T&&S(se,q,Q,te):I&&(A=se instanceof Set,T=q instanceof Set,A||T)?A===T&&L(se,q,Q,te):R(se,q,Q,te)))}return se!==se&&q!==q}return ce}var $=U(),ee=U(function(){return y}),re=U(v()),Se=U(v(y));u.circularDeepEqual=re,u.circularShallowEqual=Se,u.createCustomEqual=U,u.deepEqual=$,u.sameValueZeroEqual=y,u.shallowEqual=ee,Object.defineProperty(u,"__esModule",{value:!0})})},65881:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Scheduler=void 0;var l=u(93275),g=function(){function y(x,f){f===void 0&&(f=y.now),this.schedulerActionCtor=x,this.now=f}return y.prototype.schedule=function(x,f,p){return f===void 0&&(f=0),new this.schedulerActionCtor(this,x).schedule(p,f)},y.now=l.dateTimestampProvider.now,y}();w.Scheduler=g},65961:(Ge,w,u)=>{"use strict";u.d(w,{u:()=>g});var l=u(81160);function g(y){return(0,l.T)(function(){return y})}},66036:(Ge,w,u)=>{"use strict";Ge.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Ge.exports.Resizable=u(15630).default,Ge.exports.ResizableBox=u(65661).default},66355:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.pluck=void 0;var l=u(26872);function g(){for(var y=[],x=0;x<arguments.length;x++)y[x]=arguments[x];var f=y.length;if(f===0)throw new Error("list of properties cannot be empty.");return l.map(function(p){for(var h=p,E=0;E<f;E++){var v=h?.[y[E]];if(typeof v<"u")h=v;else return}return h})}w.pluck=g},66450:(Ge,w,u)=>{"use strict";u.d(w,{e:()=>l});function l(g,y){return g.reduce(function(x,f,p){return x[f]=y[p],x},{})}},66514:(Ge,w,u)=>{"use strict";u.d(w,{El:()=>l,FT:()=>x,V_:()=>g,WC:()=>m,X$:()=>p,aI:()=>E,gI:()=>f,rG:()=>y});function l(S,d,O){let R,C;O=O||g;let L=0,j=S.length,I=!1;for(;L<j;)R=L+(j-L>>1),C=+O(S[R],d),C<0?L=R+1:(j=R,I=!C);return I?L:~L}function g(S,d){return S>d?1:S<d?-1:0}function y(S,d){return S<d?1:S>d?-1:0}function x(S,d,O){if(S[0]<=d)return 0;const R=S.length;if(d<=S[R-1])return R-1;if(typeof O=="function"){for(let C=1;C<R;++C){const L=S[C];if(L===d)return C;if(L<d)return O(d,S[C-1],L)>0?C-1:C}return R-1}if(O>0){for(let C=1;C<R;++C)if(S[C]<d)return C-1;return R-1}if(O<0){for(let C=1;C<R;++C)if(S[C]<=d)return C;return R-1}for(let C=1;C<R;++C){if(S[C]==d)return C;if(S[C]<d)return S[C-1]-d<d-S[C]?C-1:C}return R-1}function f(S,d,O){for(;d<O;){const R=S[d];S[d]=S[O],S[O]=R,++d,--O}}function p(S,d){const O=Array.isArray(d)?d:[d],R=O.length;for(let C=0;C<R;C++)S[S.length]=O[C]}function h(S,d){const O=S.indexOf(d),R=O>-1;return R&&S.splice(O,1),R}function E(S,d){const O=S.length;if(O!==d.length)return!1;for(let R=0;R<O;R++)if(S[R]!==d[R])return!1;return!0}function v(S,d){const O=S.length,R=Array(S.length);let C;for(C=0;C<O;C++)R[C]={index:C,value:S[C]};for(R.sort(function(L,j){return d(L.value,j.value)||L.index-j.index}),C=0;C<S.length;C++)S[C]=R[C].value}function m(S,d,O){const R=d||g;return S.every(function(C,L){if(L===0)return!0;const j=R(S[L-1],C);return!(j>0||O&&j===0)})}},66648:(Ge,w,u)=>{"use strict";u.d(w,{Y:()=>Ne});var l=u(10673);const g=l.y3,y=l.jy,x=l.oN,f=l.Hc,p=l.cg,h=l.hj,E=l.LU,v=l.Tb,m=l.uq,S=l.Zm,d=l.Dq,O=l.__,R=l.q0,C=l.lh,L=l.pI,j=l.zC,I=l.zg,U=l.g6,$=l.OL,ee=l.ks,re=l.QR,Se=l.jp,z=l.mk,Q=l.W2,ce=l.l,se=l.KY,q=l.dv,te=l.BR,A=l.Wu,T=(l.uq,l.uq),B=l.a4,X=l.DI,ue=l.Jo,ie=l.Zi,Te=l.kH,je=l.LV;var yt=u(53496),tt=u(17617),Ze=u(90063);class Ne extends yt.P{constructor(Dn,Mt,Wt,Tn={}){if(super(),Dn===!0)this.degree=Mt.degree,this.powers=Mt.powers,this.coefficients=Mt.coefficients;else{(0,tt.Y)(Dn,Mt);const bn=it(Dn,Mt,Wt,Tn);this.degree=bn.degree,this.powers=bn.powers,this.coefficients=bn.coefficients}}_predict(Dn){let Mt=0;for(let Wt=0;Wt<this.powers.length;Wt++)Mt+=this.coefficients[Wt]*Dn**this.powers[Wt];return Mt}toJSON(){return{name:"polynomialRegression",degree:this.degree,powers:this.powers,coefficients:this.coefficients}}toString(Dn){return this._toFormula(Dn,!1)}toLaTeX(Dn){return this._toFormula(Dn,!0)}_toFormula(Dn,Mt){let Wt="^",Tn="",bn=" * ";Mt&&(Wt="^{",Tn="}",bn="");let $t="",Ct="";for(let Z=0;Z<this.coefficients.length;Z++)Ct="",this.coefficients[Z]!==0&&(this.powers[Z]===0?Ct=(0,Ze.u)(this.coefficients[Z],Dn):this.powers[Z]===1?Ct=`${(0,Ze.u)(this.coefficients[Z],Dn)+bn}x`:Ct=`${(0,Ze.u)(this.coefficients[Z],Dn)+bn}x${Wt}${this.powers[Z]}${Tn}`,this.coefficients[Z]>0&&Z!==this.coefficients.length-1?Ct=` + ${Ct}`:Z!==this.coefficients.length-1&&(Ct=` ${Ct}`)),$t=Ct+$t;return $t.startsWith("+")&&($t=$t.slice(1)),`f(x) = ${$t}`}static load(Dn){if(Dn.name!=="polynomialRegression")throw new TypeError("not a polynomial regression model");return new Ne(!0,Dn)}}function it(Rt,Dn,Mt,Wt={}){const Tn=Rt.length;let{interceptAtZero:bn=!1}=Wt,$t=[];if(Array.isArray(Mt))$t=Mt,bn=!1;else if(typeof Mt=="number")if(bn){$t=new Array(Mt);for(let ge=0;ge<Mt;ge++)$t[ge]=ge+1}else{$t=new Array(Mt+1);for(let ge=0;ge<=Mt;ge++)$t[ge]=ge}const Ct=$t.length,Z=new m(Tn,Ct),me=new m([Dn]);for(let ge=0;ge<Ct;ge++)for(let Me=0;Me<Tn;Me++)$t[ge]===0?Z.set(Me,ge,1):Z.set(Me,ge,Rt[Me]**$t[ge]);const ke=new U(Z),Ee=ke.mmul(Z),_e=ke.mmul(new U(me));return{coefficients:Te(Ee,_e).to1DArray(),degree:Math.max(...$t),powers:$t}}},66687:(Ge,w,u)=>{"use strict";u.d(w,{$i:()=>ai,A8:()=>Wn,Ak:()=>te,BN:()=>rn,Bo:()=>Ze,Bu:()=>wn,CL:()=>ar,DN:()=>Un,E$:()=>Pt,EB:()=>R,EV:()=>Tt,Fs:()=>nt,Gk:()=>er,Gl:()=>X,Gp:()=>it,HA:()=>Vt,HR:()=>gn,Ie:()=>Qr,Ih:()=>Or,Ii:()=>Yr,Ik:()=>be,In:()=>Pn,JE:()=>mi,Jj:()=>A,Jv:()=>qe,K3:()=>$t,K5:()=>en,KC:()=>ye,Kf:()=>yt,Kq:()=>Zt,Kz:()=>On,L5:()=>K,LE:()=>ge,Lq:()=>Te,Lr:()=>tr,Mf:()=>de,Ml:()=>bt,ND:()=>d,NJ:()=>hr,Nl:()=>Qi,Np:()=>Me,OI:()=>lt,OZ:()=>Q,Os:()=>I,PQ:()=>Nn,PV:()=>un,Pq:()=>xr,RZ:()=>Pr,Rp:()=>L,Rv:()=>jt,S8:()=>Kn,Sd:()=>Rn,Tj:()=>fn,Tq:()=>Ve,UC:()=>S,Ut:()=>qt,Uy:()=>Qn,VV:()=>Fn,Vb:()=>Bn,Vx:()=>Jn,W5:()=>Dn,WF:()=>ur,Wh:()=>nn,Xi:()=>Ur,YO:()=>De,YP:()=>Ni,Yj:()=>O,Yl:()=>Wt,Z0:()=>ie,ZE:()=>we,Zg:()=>se,Zm:()=>Fe,_:()=>fe,_$:()=>Ct,_H:()=>We,_Z:()=>kn,a$:()=>_e,a0:()=>Nt,aP:()=>pn,aR:()=>m,ai:()=>Et,b8:()=>hn,bv:()=>Ke,bz:()=>ne,cM:()=>C,ch:()=>kr,cl:()=>zr,dd:()=>En,eY:()=>Be,eu:()=>cr,fO:()=>tt,fZ:()=>Je,fc:()=>An,fi:()=>Ee,g1:()=>xt,gE:()=>re,gF:()=>T,gM:()=>ze,gZ:()=>ee,hQ:()=>ke,hZ:()=>Gn,hw:()=>Oi,iS:()=>he,im:()=>mr,iv:()=>xi,jg:()=>_t,jv:()=>Qe,k5:()=>Lr,kM:()=>je,kX:()=>bi,l1:()=>ni,l7:()=>Tn,lq:()=>Xr,m7:()=>me,me:()=>ki,n:()=>ht,n$:()=>q,n4:()=>j,nH:()=>Se,nL:()=>bn,o:()=>Cn,oi:()=>vt,p6:()=>Yn,pd:()=>Cr,qX:()=>ue,r0:()=>Z,rI:()=>ln,rS:()=>Ft,re:()=>pt,tB:()=>Gt,tr:()=>B,uE:()=>ir,uR:()=>$,uX:()=>Ne,ug:()=>Rt,ut:()=>Qt,vX:()=>U,vZ:()=>H,vk:()=>di,xg:()=>sn,y0:()=>zt,yC:()=>ce,z6:()=>ei,zM:()=>on,zY:()=>z,zn:()=>ea,zr:()=>Mt});var l=u(45435),g=u(70666),y=u(59737),x=u(57048),f=u(53705),p=u(83795),h=u(20638),E=u(3174),v=u(55852);const m=l.xI("ZodType",(ft,zn)=>(g.W4.init(ft,zn),ft.def=zn,Object.defineProperty(ft,"_def",{value:zn}),ft.check=(...Zn)=>ft.clone({...zn,checks:[...zn.checks??[],...Zn.map(wi=>typeof wi=="function"?{_zod:{check:wi,def:{check:"custom"},onattach:[]}}:wi)]}),ft.clone=(Zn,wi)=>x.clone(ft,Zn,wi),ft.brand=()=>ft,ft.register=(Zn,wi)=>(Zn.add(ft,wi),ft),ft.parse=(Zn,wi)=>v.qg(ft,Zn,wi,{callee:ft.parse}),ft.safeParse=(Zn,wi)=>v.xL(ft,Zn,wi),ft.parseAsync=async(Zn,wi)=>v.EJ(ft,Zn,wi,{callee:ft.parseAsync}),ft.safeParseAsync=async(Zn,wi)=>v.bp(ft,Zn,wi),ft.spa=ft.safeParseAsync,ft.refine=(Zn,wi)=>ft.check(Ni(Zn,wi)),ft.superRefine=Zn=>ft.check(ea(Zn)),ft.overwrite=Zn=>ft.check(h.bS(Zn)),ft.optional=()=>Xr(ft),ft.nullable=()=>ki(ft),ft.nullish=()=>Xr(ki(ft)),ft.nonoptional=Zn=>Be(ft,Zn),ft.array=()=>De(ft),ft.or=Zn=>ye([ft,Zn]),ft.and=Zn=>Pt(ft,Zn),ft.transform=Zn=>nt(ft,Cr(Zn)),ft.default=Zn=>jt(ft,Zn),ft.prefault=Zn=>Rn(ft,Zn),ft.catch=Zn=>de(ft,Zn),ft.pipe=Zn=>nt(ft,Zn),ft.readonly=()=>Gt(ft),ft.describe=Zn=>{const wi=ft.clone();return p.fd.add(wi,{description:Zn}),wi},Object.defineProperty(ft,"description",{get(){return p.fd.get(ft)?.description},configurable:!0}),ft.meta=(...Zn)=>{if(Zn.length===0)return p.fd.get(ft);const wi=ft.clone();return p.fd.add(wi,Zn[0]),wi},ft.isOptional=()=>ft.safeParse(void 0).success,ft.isNullable=()=>ft.safeParse(null).success,ft)),S=l.xI("_ZodString",(ft,zn)=>{g.$v.init(ft,zn),m.init(ft,zn);const Zn=ft._zod.bag;ft.format=Zn.format??null,ft.minLength=Zn.minimum??null,ft.maxLength=Zn.maximum??null,ft.regex=(...wi)=>ft.check(h.Fk(...wi)),ft.includes=(...wi)=>ft.check(h.dR(...wi)),ft.startsWith=(...wi)=>ft.check(h.$S(...wi)),ft.endsWith=(...wi)=>ft.check(h.ER(...wi)),ft.min=(...wi)=>ft.check(h.m9(...wi)),ft.max=(...wi)=>ft.check(h.Eb(...wi)),ft.length=(...wi)=>ft.check(h.YA(...wi)),ft.nonempty=(...wi)=>ft.check(h.m9(1,...wi)),ft.lowercase=wi=>ft.check(h.hH(wi)),ft.uppercase=wi=>ft.check(h.qF(wi)),ft.trim=()=>ft.check(h.WN()),ft.normalize=(...wi)=>ft.check(h.lo(...wi)),ft.toLowerCase=()=>ft.check(h.Il()),ft.toUpperCase=()=>ft.check(h.xY())}),d=l.xI("ZodString",(ft,zn)=>{g.$v.init(ft,zn),S.init(ft,zn),ft.email=Zn=>ft.check(h.Mu(C,Zn)),ft.url=Zn=>ft.check(h.Fn(z,Zn)),ft.jwt=Zn=>ft.check(h.rk(Ee,Zn)),ft.emoji=Zn=>ft.check(h.aC(ce,Zn)),ft.guid=Zn=>ft.check(h.tB(j,Zn)),ft.uuid=Zn=>ft.check(h.Be(U,Zn)),ft.uuidv4=Zn=>ft.check(h.nA(U,Zn)),ft.uuidv6=Zn=>ft.check(h.pY(U,Zn)),ft.uuidv7=Zn=>ft.check(h.wA(U,Zn)),ft.nanoid=Zn=>ft.check(h.Dl(q,Zn)),ft.guid=Zn=>ft.check(h.tB(j,Zn)),ft.cuid=Zn=>ft.check(h.fs(A,Zn)),ft.cuid2=Zn=>ft.check(h.Bj(B,Zn)),ft.ulid=Zn=>ft.check(h.Ct(ue,Zn)),ft.base64=Zn=>ft.check(h.rt(bn,Zn)),ft.base64url=Zn=>ft.check(h.cU(Ct,Zn)),ft.xid=Zn=>ft.check(h.Pw(Te,Zn)),ft.ksuid=Zn=>ft.check(h._z(yt,Zn)),ft.ipv4=Zn=>ft.check(h.Ny(Ze,Zn)),ft.ipv6=Zn=>ft.check(h.$O(it,Zn)),ft.cidrv4=Zn=>ft.check(h.Uy(Dn,Zn)),ft.cidrv6=Zn=>ft.check(h.gP(Wt,Zn)),ft.e164=Zn=>ft.check(h.KB(me,Zn)),ft.datetime=Zn=>ft.check(E.datetime(Zn)),ft.date=Zn=>ft.check(E.date(Zn)),ft.time=Zn=>ft.check(E.time(Zn)),ft.duration=Zn=>ft.check(E.duration(Zn))});function O(ft){return h.Rl(d,ft)}const R=l.xI("ZodStringFormat",(ft,zn)=>{g.EY.init(ft,zn),S.init(ft,zn)}),C=l.xI("ZodEmail",(ft,zn)=>{g.qG.init(ft,zn),R.init(ft,zn)});function L(ft){return h.Mu(C,ft)}const j=l.xI("ZodGUID",(ft,zn)=>{g.Zc.init(ft,zn),R.init(ft,zn)});function I(ft){return h.tB(j,ft)}const U=l.xI("ZodUUID",(ft,zn)=>{g.Zn.init(ft,zn),R.init(ft,zn)});function $(ft){return h.Be(U,ft)}function ee(ft){return h.nA(U,ft)}function re(ft){return h.pY(U,ft)}function Se(ft){return h.wA(U,ft)}const z=l.xI("ZodURL",(ft,zn)=>{g.VY.init(ft,zn),R.init(ft,zn)});function Q(ft){return h.Fn(z,ft)}const ce=l.xI("ZodEmoji",(ft,zn)=>{g.cG.init(ft,zn),R.init(ft,zn)});function se(ft){return h.aC(ce,ft)}const q=l.xI("ZodNanoID",(ft,zn)=>{g.Py.init(ft,zn),R.init(ft,zn)});function te(ft){return h.Dl(q,ft)}const A=l.xI("ZodCUID",(ft,zn)=>{g.bl.init(ft,zn),R.init(ft,zn)});function T(ft){return h.fs(A,ft)}const B=l.xI("ZodCUID2",(ft,zn)=>{g.Zu.init(ft,zn),R.init(ft,zn)});function X(ft){return h.Bj(B,ft)}const ue=l.xI("ZodULID",(ft,zn)=>{g.g5.init(ft,zn),R.init(ft,zn)});function ie(ft){return h.Ct(ue,ft)}const Te=l.xI("ZodXID",(ft,zn)=>{g.TF.init(ft,zn),R.init(ft,zn)});function je(ft){return h.Pw(Te,ft)}const yt=l.xI("ZodKSUID",(ft,zn)=>{g.GY.init(ft,zn),R.init(ft,zn)});function tt(ft){return h._z(yt,ft)}const Ze=l.xI("ZodIPv4",(ft,zn)=>{g.Lc.init(ft,zn),R.init(ft,zn)});function Ne(ft){return h.Ny(Ze,ft)}const it=l.xI("ZodIPv6",(ft,zn)=>{g.Zy.init(ft,zn),R.init(ft,zn)});function Rt(ft){return h.$O(it,ft)}const Dn=l.xI("ZodCIDRv4",(ft,zn)=>{g.CI.init(ft,zn),R.init(ft,zn)});function Mt(ft){return h.Uy(Dn,ft)}const Wt=l.xI("ZodCIDRv6",(ft,zn)=>{g.Cn.init(ft,zn),R.init(ft,zn)});function Tn(ft){return h.gP(Wt,ft)}const bn=l.xI("ZodBase64",(ft,zn)=>{g.Dq.init(ft,zn),R.init(ft,zn)});function $t(ft){return h.rt(bn,ft)}const Ct=l.xI("ZodBase64URL",(ft,zn)=>{g.CQ.init(ft,zn),R.init(ft,zn)});function Z(ft){return h.cU(Ct,ft)}const me=l.xI("ZodE164",(ft,zn)=>{g.Oy.init(ft,zn),R.init(ft,zn)});function ke(ft){return h.KB(me,ft)}const Ee=l.xI("ZodJWT",(ft,zn)=>{g.h8.init(ft,zn),R.init(ft,zn)});function _e(ft){return h.rk(Ee,ft)}const ge=l.xI("ZodCustomStringFormat",(ft,zn)=>{g.ZQ.init(ft,zn),R.init(ft,zn)});function Me(ft,zn,Zn={}){return h.Af(ge,ft,zn,Zn)}function lt(ft){return h.Af(ge,"hostname",f.hostname,ft)}const Ft=l.xI("ZodNumber",(ft,zn)=>{g.vz.init(ft,zn),m.init(ft,zn),ft.gt=(wi,Ea)=>ft.check(h.Tx(wi,Ea)),ft.gte=(wi,Ea)=>ft.check(h.qm(wi,Ea)),ft.min=(wi,Ea)=>ft.check(h.qm(wi,Ea)),ft.lt=(wi,Ea)=>ft.check(h.Au(wi,Ea)),ft.lte=(wi,Ea)=>ft.check(h.Zm(wi,Ea)),ft.max=(wi,Ea)=>ft.check(h.Zm(wi,Ea)),ft.int=wi=>ft.check(nn(wi)),ft.safe=wi=>ft.check(nn(wi)),ft.positive=wi=>ft.check(h.Tx(0,wi)),ft.nonnegative=wi=>ft.check(h.qm(0,wi)),ft.negative=wi=>ft.check(h.Au(0,wi)),ft.nonpositive=wi=>ft.check(h.Zm(0,wi)),ft.multipleOf=(wi,Ea)=>ft.check(h.Hi(wi,Ea)),ft.step=(wi,Ea)=>ft.check(h.Hi(wi,Ea)),ft.finite=()=>ft;const Zn=ft._zod.bag;ft.minValue=Math.max(Zn.minimum??Number.NEGATIVE_INFINITY,Zn.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,ft.maxValue=Math.min(Zn.maximum??Number.POSITIVE_INFINITY,Zn.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,ft.isInt=(Zn.format??"").includes("int")||Number.isSafeInteger(Zn.multipleOf??.5),ft.isFinite=!0,ft.format=Zn.format??null});function Et(ft){return h.F7(Ft,ft)}const Zt=l.xI("ZodNumberFormat",(ft,zn)=>{g.I.init(ft,zn),Ft.init(ft,zn)});function nn(ft){return h.LK(Zt,ft)}function Pn(ft){return h.HL(Zt,ft)}function rn(ft){return h.g6(Zt,ft)}function Vt(ft){return h.sw(Zt,ft)}function Kn(ft){return h.P(Zt,ft)}const ur=l.xI("ZodBoolean",(ft,zn)=>{g.sF.init(ft,zn),m.init(ft,zn)});function on(ft){return h._L(ur,ft)}const tr=l.xI("ZodBigInt",(ft,zn)=>{g.BN.init(ft,zn),m.init(ft,zn),ft.gte=(wi,Ea)=>ft.check(h.qm(wi,Ea)),ft.min=(wi,Ea)=>ft.check(h.qm(wi,Ea)),ft.gt=(wi,Ea)=>ft.check(h.Tx(wi,Ea)),ft.gte=(wi,Ea)=>ft.check(h.qm(wi,Ea)),ft.min=(wi,Ea)=>ft.check(h.qm(wi,Ea)),ft.lt=(wi,Ea)=>ft.check(h.Au(wi,Ea)),ft.lte=(wi,Ea)=>ft.check(h.Zm(wi,Ea)),ft.max=(wi,Ea)=>ft.check(h.Zm(wi,Ea)),ft.positive=wi=>ft.check(h.Tx(BigInt(0),wi)),ft.negative=wi=>ft.check(h.Au(BigInt(0),wi)),ft.nonpositive=wi=>ft.check(h.Zm(BigInt(0),wi)),ft.nonnegative=wi=>ft.check(h.qm(BigInt(0),wi)),ft.multipleOf=(wi,Ea)=>ft.check(h.Hi(wi,Ea));const Zn=ft._zod.bag;ft.minValue=Zn.minimum??null,ft.maxValue=Zn.maximum??null,ft.format=Zn.format??null});function Cn(ft){return h.z$(tr,ft)}const Wn=l.xI("ZodBigIntFormat",(ft,zn)=>{g.IT.init(ft,zn),tr.init(ft,zn)});function er(ft){return h.Jg(Wn,ft)}function Fn(ft){return h.ii(Wn,ft)}const en=l.xI("ZodSymbol",(ft,zn)=>{g.U5.init(ft,zn),m.init(ft,zn)});function gn(ft){return h.W7(en,ft)}const kn=l.xI("ZodUndefined",(ft,zn)=>{g.Mv.init(ft,zn),m.init(ft,zn)});function Jn(ft){return h.E4(kn,ft)}const Nn=l.xI("ZodNull",(ft,zn)=>{g.x8.init(ft,zn),m.init(ft,zn)});function kr(ft){return h.jw(Nn,ft)}const bt=l.xI("ZodAny",(ft,zn)=>{g.Gb.init(ft,zn),m.init(ft,zn)});function ne(){return h.KA(bt)}const fe=l.xI("ZodUnknown",(ft,zn)=>{g.GP.init(ft,zn),m.init(ft,zn)});function K(){return h.em(fe)}const he=l.xI("ZodNever",(ft,zn)=>{g.Um.init(ft,zn),m.init(ft,zn)});function Fe(ft){return h.G8(he,ft)}const Nt=l.xI("ZodVoid",(ft,zn)=>{g.WH.init(ft,zn),m.init(ft,zn)});function ln(ft){return h.OC(Nt,ft)}const pn=l.xI("ZodDate",(ft,zn)=>{g.o5.init(ft,zn),m.init(ft,zn),ft.min=(wi,Ea)=>ft.check(h.qm(wi,Ea)),ft.max=(wi,Ea)=>ft.check(h.Zm(wi,Ea));const Zn=ft._zod.bag;ft.minDate=Zn.minimum?new Date(Zn.minimum):null,ft.maxDate=Zn.maximum?new Date(Zn.maximum):null});function Yn(ft){return h.YY(pn,ft)}const ht=l.xI("ZodArray",(ft,zn)=>{g.$p.init(ft,zn),m.init(ft,zn),ft.element=zn.element,ft.min=(Zn,wi)=>ft.check(h.m9(Zn,wi)),ft.nonempty=Zn=>ft.check(h.m9(1,Zn)),ft.max=(Zn,wi)=>ft.check(h.Eb(Zn,wi)),ft.length=(Zn,wi)=>ft.check(h.YA(Zn,wi)),ft.unwrap=()=>ft.element});function De(ft,zn){return h.dZ(ht,ft,zn)}function we(ft){const zn=ft._zod.def.shape;return cr(Object.keys(zn))}const Ke=l.xI("ZodObject",(ft,zn)=>{g.L8.init(ft,zn),m.init(ft,zn),x.defineLazy(ft,"shape",()=>zn.shape),ft.keyof=()=>Lr(Object.keys(ft._zod.def.shape)),ft.catchall=Zn=>ft.clone({...ft._zod.def,catchall:Zn}),ft.passthrough=()=>ft.clone({...ft._zod.def,catchall:K()}),ft.loose=()=>ft.clone({...ft._zod.def,catchall:K()}),ft.strict=()=>ft.clone({...ft._zod.def,catchall:Fe()}),ft.strip=()=>ft.clone({...ft._zod.def,catchall:void 0}),ft.extend=Zn=>x.extend(ft,Zn),ft.merge=Zn=>x.merge(ft,Zn),ft.pick=Zn=>x.pick(ft,Zn),ft.omit=Zn=>x.omit(ft,Zn),ft.partial=(...Zn)=>x.partial(Yr,ft,Zn[0]),ft.required=(...Zn)=>x.required(H,ft,Zn[0])});function be(ft,zn){const Zn={type:"object",get shape(){return x.assignProp(this,"shape",ft?x.objectClone(ft):{}),this.shape},...x.normalizeParams(zn)};return new Ke(Zn)}function pt(ft,zn){return new Ke({type:"object",get shape(){return x.assignProp(this,"shape",x.objectClone(ft)),this.shape},catchall:Fe(),...x.normalizeParams(zn)})}function We(ft,zn){return new Ke({type:"object",get shape(){return x.assignProp(this,"shape",x.objectClone(ft)),this.shape},catchall:K(),...x.normalizeParams(zn)})}const Je=l.xI("ZodUnion",(ft,zn)=>{g.cu.init(ft,zn),m.init(ft,zn),ft.options=zn.options});function ye(ft,zn){return new Je({type:"union",options:ft,...x.normalizeParams(zn)})}const Qe=l.xI("ZodDiscriminatedUnion",(ft,zn)=>{Je.init(ft,zn),g.P0.init(ft,zn)});function ze(ft,zn,Zn){return new Qe({type:"union",options:zn,discriminator:ft,...x.normalizeParams(Zn)})}const qe=l.xI("ZodIntersection",(ft,zn)=>{g.LJ.init(ft,zn),m.init(ft,zn)});function Pt(ft,zn){return new qe({type:"intersection",left:ft,right:zn})}const zt=l.xI("ZodTuple",(ft,zn)=>{g.G3.init(ft,zn),m.init(ft,zn),ft.rest=Zn=>ft.clone({...ft._zod.def,rest:Zn})});function un(ft,zn,Zn){const wi=zn instanceof g.W4,Ea=wi?Zn:zn,wa=wi?zn:null;return new zt({type:"tuple",items:ft,rest:wa,...x.normalizeParams(Ea)})}const hn=l.xI("ZodRecord",(ft,zn)=>{g.h.init(ft,zn),m.init(ft,zn),ft.keyType=zn.keyType,ft.valueType=zn.valueType});function xt(ft,zn,Zn){return new hn({type:"record",keyType:ft,valueType:zn,...x.normalizeParams(Zn)})}function _t(ft,zn,Zn){const wi=x.clone(ft);return wi._zod.values=void 0,new hn({type:"record",keyType:wi,valueType:zn,...x.normalizeParams(Zn)})}const qt=l.xI("ZodMap",(ft,zn)=>{g.eb.init(ft,zn),m.init(ft,zn),ft.keyType=zn.keyType,ft.valueType=zn.valueType});function fn(ft,zn,Zn){return new qt({type:"map",keyType:ft,valueType:zn,...x.normalizeParams(Zn)})}const On=l.xI("ZodSet",(ft,zn)=>{g.Oi.init(ft,zn),m.init(ft,zn),ft.min=(...Zn)=>ft.check(h.Nd(...Zn)),ft.nonempty=Zn=>ft.check(h.Nd(1,Zn)),ft.max=(...Zn)=>ft.check(h.vL(...Zn)),ft.size=(...Zn)=>ft.check(h.d$(...Zn))});function Gn(ft,zn){return new On({type:"set",valueType:ft,...x.normalizeParams(zn)})}const Bn=l.xI("ZodEnum",(ft,zn)=>{g.VO.init(ft,zn),m.init(ft,zn),ft.enum=zn.entries,ft.options=Object.values(zn.entries);const Zn=new Set(Object.keys(zn.entries));ft.extract=(wi,Ea)=>{const wa={};for(const ji of wi)if(Zn.has(ji))wa[ji]=zn.entries[ji];else throw new Error(`Key ${ji} not found in enum`);return new Bn({...zn,checks:[],...x.normalizeParams(Ea),entries:wa})},ft.exclude=(wi,Ea)=>{const wa={...zn.entries};for(const ji of wi)if(Zn.has(ji))delete wa[ji];else throw new Error(`Key ${ji} not found in enum`);return new Bn({...zn,checks:[],...x.normalizeParams(Ea),entries:wa})}});function Lr(ft,zn){const Zn=Array.isArray(ft)?Object.fromEntries(ft.map(wi=>[wi,wi])):ft;return new Bn({type:"enum",entries:Zn,...x.normalizeParams(zn)})}function An(ft,zn){return new Bn({type:"enum",entries:ft,...x.normalizeParams(zn)})}const Un=l.xI("ZodLiteral",(ft,zn)=>{g.nu.init(ft,zn),m.init(ft,zn),ft.values=new Set(zn.values),Object.defineProperty(ft,"value",{get(){if(zn.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return zn.values[0]}})});function cr(ft,zn){return new Un({type:"literal",values:Array.isArray(ft)?ft:[ft],...x.normalizeParams(zn)})}const mr=l.xI("ZodFile",(ft,zn)=>{g.CT.init(ft,zn),m.init(ft,zn),ft.min=(Zn,wi)=>ft.check(h.Nd(Zn,wi)),ft.max=(Zn,wi)=>ft.check(h.vL(Zn,wi)),ft.mime=(Zn,wi)=>ft.check(h.GZ(Array.isArray(Zn)?Zn:[Zn],wi))});function hr(ft){return h.K2(mr,ft)}const ar=l.xI("ZodTransform",(ft,zn)=>{g.Wc.init(ft,zn),m.init(ft,zn),ft._zod.parse=(Zn,wi)=>{Zn.addIssue=wa=>{if(typeof wa=="string")Zn.issues.push(x.issue(wa,Zn.value,zn));else{const ji=wa;ji.fatal&&(ji.continue=!1),ji.code??(ji.code="custom"),ji.input??(ji.input=Zn.value),ji.inst??(ji.inst=ft),Zn.issues.push(x.issue(ji))}};const Ea=zn.transform(Zn.value,Zn);return Ea instanceof Promise?Ea.then(wa=>(Zn.value=wa,Zn)):(Zn.value=Ea,Zn)}});function Cr(ft){return new ar({type:"transform",transform:ft})}const Yr=l.xI("ZodOptional",(ft,zn)=>{g.ig.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType});function Xr(ft){return new Yr({type:"optional",innerType:ft})}const ni=l.xI("ZodNullable",(ft,zn)=>{g.qc.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType});function ki(ft){return new ni({type:"nullable",innerType:ft})}function zr(ft){return Xr(ki(ft))}const Ur=l.xI("ZodDefault",(ft,zn)=>{g.rv.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType,ft.removeDefault=ft.unwrap});function jt(ft,zn){return new Ur({type:"default",innerType:ft,get defaultValue(){return typeof zn=="function"?zn():zn}})}const sn=l.xI("ZodPrefault",(ft,zn)=>{g.VF.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType});function Rn(ft,zn){return new sn({type:"prefault",innerType:ft,get defaultValue(){return typeof zn=="function"?zn():zn}})}const H=l.xI("ZodNonOptional",(ft,zn)=>{g.N$.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType});function Be(ft,zn){return new H({type:"nonoptional",innerType:ft,...x.normalizeParams(zn)})}const wn=l.xI("ZodSuccess",(ft,zn)=>{g.Dw.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType});function bi(ft){return new wn({type:"success",innerType:ft})}const Oi=l.xI("ZodCatch",(ft,zn)=>{g.t$.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType,ft.removeCatch=ft.unwrap});function de(ft,zn){return new Oi({type:"catch",innerType:ft,catchValue:typeof zn=="function"?zn:()=>zn})}const Ve=l.xI("ZodNaN",(ft,zn)=>{g.zP.init(ft,zn),m.init(ft,zn)});function vt(ft){return h.L4(Ve,ft)}const Qt=l.xI("ZodPipe",(ft,zn)=>{g._m.init(ft,zn),m.init(ft,zn),ft.in=zn.in,ft.out=zn.out});function nt(ft,zn){return new Qt({type:"pipe",in:ft,out:zn})}const Tt=l.xI("ZodReadonly",(ft,zn)=>{g.Sb.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType});function Gt(ft){return new Tt({type:"readonly",innerType:ft})}const En=l.xI("ZodTemplateLiteral",(ft,zn)=>{g.d.init(ft,zn),m.init(ft,zn)});function Qn(ft,zn){return new En({type:"template_literal",parts:ft,...x.normalizeParams(zn)})}const Or=l.xI("ZodLazy",(ft,zn)=>{g.kU.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.getter()});function Pr(ft){return new Or({type:"lazy",getter:ft})}const ai=l.xI("ZodPromise",(ft,zn)=>{g.hA.init(ft,zn),m.init(ft,zn),ft.unwrap=()=>ft._zod.def.innerType});function xi(ft){return new ai({type:"promise",innerType:ft})}const mi=l.xI("ZodCustom",(ft,zn)=>{g.b0.init(ft,zn),m.init(ft,zn)});function ei(ft){const zn=new y.QP({check:"custom"});return zn._zod.check=ft,zn}function Qr(ft,zn){return h.FO(mi,ft??(()=>!0),zn)}function Ni(ft,zn={}){return h.fU(mi,ft,zn)}function ea(ft){return h.MB(ft)}function Qi(ft,zn={error:`Input not instance of ${ft.name}`}){const Zn=new mi({type:"custom",check:"custom",fn:wi=>wi instanceof ft,abort:!0,...x.normalizeParams(zn)});return Zn._zod.bag.Class=ft,Zn}const ir=(...ft)=>h.fI({Pipe:Qt,Boolean:ur,String:d,Transform:ar},...ft);function xr(ft){const zn=Pr(()=>ye([O(ft),Et(),on(),kr(),De(zn),xt(O(),zn)]));return zn}function di(ft,zn){return nt(Cr(ft),zn)}},66791:function(Ge,w,u){"use strict";var l=this&&this.__read||function(p,h){var E=typeof Symbol=="function"&&p[Symbol.iterator];if(!E)return p;var v=E.call(p),m,S=[],d;try{for(;(h===void 0||h-- >0)&&!(m=v.next()).done;)S.push(m.value)}catch(O){d={error:O}}finally{try{m&&!m.done&&(E=v.return)&&E.call(v)}finally{if(d)throw d.error}}return S},g=this&&this.__spreadArray||function(p,h){for(var E=0,v=h.length,m=p.length;E<v;E++,m++)p[m]=h[E];return p};Object.defineProperty(w,"__esModule",{value:!0}),w.endWith=void 0;var y=u(39546),x=u(61587);function f(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];return function(E){return y.concat(E,x.of.apply(void 0,g([],l(p))))}}w.endWith=f},66816:(Ge,w,u)=>{Ge.exports=u(59742).default,Ge.exports.utils=u(38426),Ge.exports.calculateUtils=u(82134),Ge.exports.Responsive=u(59864).default,Ge.exports.Responsive.utils=u(3108),Ge.exports.WidthProvider=u(35001).default},66847:(Ge,w,u)=>{"use strict";u.d(w,{W:()=>x});var l=u(15964),g=u(64878),y=u(92908);function x(f){return(0,y.N)(function(p,h){var E=null,v=!1,m;E=p.subscribe((0,g._)(h,void 0,void 0,function(S){m=(0,l.Tg)(f(S,x(f)(p))),E?(E.unsubscribe(),E=null,m.subscribe(h)):v=!0})),v&&(E.unsubscribe(),E=null,m.subscribe(h))})}},66907:(Ge,w,u)=>{"use strict";u.d(w,{W:()=>p});var l=u(16172),g=u(43329),y=u(29407);function x(E,v,m){const S=(0,y.a)(E,m?.in);if(isNaN(v))return(0,g.w)(m?.in||E,NaN);if(!v)return S;const d=S.getDate(),O=(0,g.w)(m?.in||E,S.getTime());O.setMonth(S.getMonth()+v+1,0);const R=O.getDate();return d>=R?O:(S.setFullYear(O.getFullYear(),O.getMonth(),d),S)}const f=null;function p(E,v,m){const{years:S=0,months:d=0,weeks:O=0,days:R=0,hours:C=0,minutes:L=0,seconds:j=0}=v,I=(0,y.a)(E,m?.in),U=d||S?x(I,d+S*12):I,$=R||O?(0,l.f)(U,R+O*7):U,ee=L+C*60,Se=(j+ee*60)*1e3;return(0,g.w)(m?.in||E,+$+Se)}const h=null},66911:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.takeUntil=void 0;var l=u(65212),g=u(17214),y=u(19724),x=u(5717);function f(p){return l.operate(function(h,E){y.innerFrom(p).subscribe(g.createOperatorSubscriber(E,function(){return E.complete()},x.noop)),!E.closed&&h.subscribe(E)})}w.takeUntil=f},66975:function(Ge,w,u){"use strict";var l=this&&this.__read||function(m,S){var d=typeof Symbol=="function"&&m[Symbol.iterator];if(!d)return m;var O=d.call(m),R,C=[],L;try{for(;(S===void 0||S-- >0)&&!(R=O.next()).done;)C.push(R.value)}catch(j){L={error:j}}finally{try{R&&!R.done&&(d=O.return)&&d.call(O)}finally{if(L)throw L.error}}return C},g=this&&this.__spreadArray||function(m,S){for(var d=0,O=S.length,R=m.length;d<O;d++,R++)m[R]=S[d];return m};Object.defineProperty(w,"__esModule",{value:!0}),w.withLatestFrom=void 0;var y=u(65212),x=u(17214),f=u(19724),p=u(87699),h=u(5717),E=u(26404);function v(){for(var m=[],S=0;S<arguments.length;S++)m[S]=arguments[S];var d=E.popResultSelector(m);return y.operate(function(O,R){for(var C=m.length,L=new Array(C),j=m.map(function(){return!1}),I=!1,U=function(ee){f.innerFrom(m[ee]).subscribe(x.createOperatorSubscriber(R,function(re){L[ee]=re,!I&&!j[ee]&&(j[ee]=!0,(I=j.every(p.identity))&&(j=null))},h.noop))},$=0;$<C;$++)U($);O.subscribe(x.createOperatorSubscriber(R,function(ee){if(I){var re=g([ee],l(L));R.next(d?d.apply(void 0,g([],l(re))):re)}}))})}w.withLatestFrom=v},67323:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ToDurationRecord=y;var l=u(14204),g=u(6153);function y(x){if(typeof x!="object")throw typeof x=="string"?new RangeError("Invalid duration format"):new TypeError("Invalid duration");var f={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};if(x.days!==void 0&&(f.days=(0,g.ToIntegerIfIntegral)(x.days)),x.hours!==void 0&&(f.hours=(0,g.ToIntegerIfIntegral)(x.hours)),x.microseconds!==void 0&&(f.microseconds=(0,g.ToIntegerIfIntegral)(x.microseconds)),x.milliseconds!==void 0&&(f.milliseconds=(0,g.ToIntegerIfIntegral)(x.milliseconds)),x.minutes!==void 0&&(f.minutes=(0,g.ToIntegerIfIntegral)(x.minutes)),x.months!==void 0&&(f.months=(0,g.ToIntegerIfIntegral)(x.months)),x.nanoseconds!==void 0&&(f.nanoseconds=(0,g.ToIntegerIfIntegral)(x.nanoseconds)),x.seconds!==void 0&&(f.seconds=(0,g.ToIntegerIfIntegral)(x.seconds)),x.weeks!==void 0&&(f.weeks=(0,g.ToIntegerIfIntegral)(x.weeks)),x.years!==void 0&&(f.years=(0,g.ToIntegerIfIntegral)(x.years)),x.years===void 0&&x.months===void 0&&x.weeks===void 0&&x.days===void 0&&x.hours===void 0&&x.minutes===void 0&&x.seconds===void 0&&x.milliseconds===void 0&&x.microseconds===void 0&&x.nanoseconds===void 0)throw new TypeError("Invalid duration format");if(!(0,l.IsValidDurationRecord)(f))throw new RangeError("Invalid duration format");return f}},67404:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.getInternalSlots=l;var u=new WeakMap;function l(g){var y=u.get(g);return y||(y=Object.create(null),u.set(g,y)),y}},67478:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.mergeMap=void 0;var l=u(26872),g=u(19724),y=u(65212),x=u(2574),f=u(10281);function p(h,E,v){return v===void 0&&(v=1/0),f.isFunction(E)?p(function(m,S){return l.map(function(d,O){return E(m,d,S,O)})(g.innerFrom(h(m,S)))},v):(typeof E=="number"&&(v=E),y.operate(function(m,S){return x.mergeInternals(m,S,h,v)}))}w.mergeMap=p},67552:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isPromise=void 0;var l=u(10281);function g(y){return l.isFunction(y?.then)}w.isPromise=g},67791:(Ge,w,u)=>{"use strict";u.d(w,{Q:()=>f});var l=u(92908),g=u(64878),y=u(15964),x=u(92357);function f(p){return(0,l.N)(function(h,E){(0,y.Tg)(p).subscribe((0,g._)(E,function(){return E.complete()},x.l)),!E.closed&&h.subscribe(E)})}},68037:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l=u(88702);function g(y,x,f){return(x=(0,l.A)(x))in y?Object.defineProperty(y,x,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[x]=f,y}},68087:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.mergeAll=void 0;var l=u(67478),g=u(87699);function y(x){return x===void 0&&(x=1/0),l.mergeMap(g.identity,x)}w.mergeAll=y},68210:(Ge,w,u)=>{"use strict";u.d(w,{$e:()=>x,Ay:()=>m});var l={},g=[],y=function(d){g.push(d)};function x(S,d){if(0)var O}function f(S,d){if(0)var O}function p(){l={}}function h(S,d,O){!d&&!l[O]&&(S(!1,O),l[O]=!0)}function E(S,d){h(x,S,d)}function v(S,d){h(f,S,d)}E.preMessage=y,E.resetWarned=p,E.noteOnce=v;const m=E},68430:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});const l=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var g=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(g)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(g?.substr(0,4))}},68596:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isScheduler=void 0;var l=u(10281);function g(y){return y&&l.isFunction(y.schedule)}w.isScheduler=g},68710:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.publishReplay=void 0;var l=u(10381),g=u(18464),y=u(10281);function x(f,p,h,E){h&&!y.isFunction(h)&&(E=h);var v=y.isFunction(h)?h:void 0;return function(m){return g.multicast(new l.ReplaySubject(f,p,E),v)(m)}}w.publishReplay=x},69156:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>rn});function l(Vt){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Kn){return typeof Kn}:function(Kn){return Kn&&typeof Symbol=="function"&&Kn.constructor===Symbol&&Kn!==Symbol.prototype?"symbol":typeof Kn},l(Vt)}function g(Vt,Kn){if(l(Vt)!="object"||!Vt)return Vt;var ur=Vt[Symbol.toPrimitive];if(ur!==void 0){var on=ur.call(Vt,Kn||"default");if(l(on)!="object")return on;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Kn==="string"?String:Number)(Vt)}function y(Vt){var Kn=g(Vt,"string");return l(Kn)=="symbol"?Kn:Kn+""}function x(Vt,Kn,ur){return(Kn=y(Kn))in Vt?Object.defineProperty(Vt,Kn,{value:ur,enumerable:!0,configurable:!0,writable:!0}):Vt[Kn]=ur,Vt}function f(Vt,Kn){var ur=Object.keys(Vt);if(Object.getOwnPropertySymbols){var on=Object.getOwnPropertySymbols(Vt);Kn&&(on=on.filter(function(tr){return Object.getOwnPropertyDescriptor(Vt,tr).enumerable})),ur.push.apply(ur,on)}return ur}function p(Vt){for(var Kn=1;Kn<arguments.length;Kn++){var ur=arguments[Kn]!=null?arguments[Kn]:{};Kn%2?f(Object(ur),!0).forEach(function(on){x(Vt,on,ur[on])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Vt,Object.getOwnPropertyDescriptors(ur)):f(Object(ur)).forEach(function(on){Object.defineProperty(Vt,on,Object.getOwnPropertyDescriptor(ur,on))})}return Vt}function h(Vt,Kn){(Kn==null||Kn>Vt.length)&&(Kn=Vt.length);for(var ur=0,on=Array(Kn);ur<Kn;ur++)on[ur]=Vt[ur];return on}function E(Vt){if(Array.isArray(Vt))return h(Vt)}function v(Vt){if(typeof Symbol<"u"&&Vt[Symbol.iterator]!=null||Vt["@@iterator"]!=null)return Array.from(Vt)}function m(Vt,Kn){if(Vt){if(typeof Vt=="string")return h(Vt,Kn);var ur={}.toString.call(Vt).slice(8,-1);return ur==="Object"&&Vt.constructor&&(ur=Vt.constructor.name),ur==="Map"||ur==="Set"?Array.from(Vt):ur==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ur)?h(Vt,Kn):void 0}}function S(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(Vt){return E(Vt)||v(Vt)||m(Vt)||S()}function O(Vt){if(Array.isArray(Vt))return Vt}function R(Vt,Kn){var ur=Vt==null?null:typeof Symbol<"u"&&Vt[Symbol.iterator]||Vt["@@iterator"];if(ur!=null){var on,tr,Cn,Wn,er=[],Fn=!0,en=!1;try{if(Cn=(ur=ur.call(Vt)).next,Kn===0){if(Object(ur)!==ur)return;Fn=!1}else for(;!(Fn=(on=Cn.call(ur)).done)&&(er.push(on.value),er.length!==Kn);Fn=!0);}catch(gn){en=!0,tr=gn}finally{try{if(!Fn&&ur.return!=null&&(Wn=ur.return(),Object(Wn)!==Wn))return}finally{if(en)throw tr}}return er}}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L(Vt,Kn){return O(Vt)||R(Vt,Kn)||m(Vt,Kn)||C()}var j=u(46942),I=u.n(j),U=u(26956),$=u(12533),ee=u(38314),re=u(68210);function Se(Vt,Kn){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,on=new Set;function tr(Cn,Wn){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Fn=on.has(Cn);if((0,re.Ay)(!Fn,"Warning: There may be circular references"),Fn)return!1;if(Cn===Wn)return!0;if(ur&&er>1)return!1;on.add(Cn);var en=er+1;if(Array.isArray(Cn)){if(!Array.isArray(Wn)||Cn.length!==Wn.length)return!1;for(var gn=0;gn<Cn.length;gn++)if(!tr(Cn[gn],Wn[gn],en))return!1;return!0}if(Cn&&Wn&&(0,ee.A)(Cn)==="object"&&(0,ee.A)(Wn)==="object"){var kn=Object.keys(Cn);return kn.length!==Object.keys(Wn).length?!1:kn.every(function(Jn){return tr(Cn[Jn],Wn[Jn],en)})}return!1}return tr(Vt,Kn)}const z=Se;var Q=u(96540);function ce(){return ce=Object.assign?Object.assign.bind():function(Vt){for(var Kn=1;Kn<arguments.length;Kn++){var ur=arguments[Kn];for(var on in ur)({}).hasOwnProperty.call(ur,on)&&(Vt[on]=ur[on])}return Vt},ce.apply(null,arguments)}function se(Vt,Kn){if(Vt==null)return{};var ur={};for(var on in Vt)if({}.hasOwnProperty.call(Vt,on)){if(Kn.indexOf(on)!==-1)continue;ur[on]=Vt[on]}return ur}function q(Vt,Kn){if(Vt==null)return{};var ur,on,tr=se(Vt,Kn);if(Object.getOwnPropertySymbols){var Cn=Object.getOwnPropertySymbols(Vt);for(on=0;on<Cn.length;on++)ur=Cn[on],Kn.indexOf(ur)===-1&&{}.propertyIsEnumerable.call(Vt,ur)&&(tr[ur]=Vt[ur])}return tr}var te=u(40961);function A(Vt,Kn,ur){return(Vt-Kn)/(ur-Kn)}function T(Vt,Kn,ur,on){var tr=A(Kn,ur,on),Cn={};switch(Vt){case"rtl":Cn.right="".concat(tr*100,"%"),Cn.transform="translateX(50%)";break;case"btt":Cn.bottom="".concat(tr*100,"%"),Cn.transform="translateY(50%)";break;case"ttb":Cn.top="".concat(tr*100,"%"),Cn.transform="translateY(-50%)";break;default:Cn.left="".concat(tr*100,"%"),Cn.transform="translateX(-50%)";break}return Cn}function B(Vt,Kn){return Array.isArray(Vt)?Vt[Kn]:Vt}var X=u(16928),ue=Q.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});const ie=ue;var Te=Q.createContext({}),je=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],yt=Q.forwardRef(function(Vt,Kn){var ur=Vt.prefixCls,on=Vt.value,tr=Vt.valueIndex,Cn=Vt.onStartMove,Wn=Vt.onDelete,er=Vt.style,Fn=Vt.render,en=Vt.dragging,gn=Vt.draggingDelete,kn=Vt.onOffsetChange,Jn=Vt.onChangeComplete,Nn=Vt.onFocus,kr=Vt.onMouseEnter,bt=q(Vt,je),ne=Q.useContext(ie),fe=ne.min,K=ne.max,he=ne.direction,Fe=ne.disabled,Nt=ne.keyboard,ln=ne.range,pn=ne.tabIndex,Yn=ne.ariaLabelForHandle,ht=ne.ariaLabelledByForHandle,De=ne.ariaRequired,we=ne.ariaValueTextFormatterForHandle,Ke=ne.styles,be=ne.classNames,pt="".concat(ur,"-handle"),We=function(xt){Fe||Cn(xt,tr)},Je=function(xt){Nn?.(xt,tr)},ye=function(xt){kr(xt,tr)},Qe=function(xt){if(!Fe&&Nt){var _t=null;switch(xt.which||xt.keyCode){case X.A.LEFT:_t=he==="ltr"||he==="btt"?-1:1;break;case X.A.RIGHT:_t=he==="ltr"||he==="btt"?1:-1;break;case X.A.UP:_t=he!=="ttb"?1:-1;break;case X.A.DOWN:_t=he!=="ttb"?-1:1;break;case X.A.HOME:_t="min";break;case X.A.END:_t="max";break;case X.A.PAGE_UP:_t=2;break;case X.A.PAGE_DOWN:_t=-2;break;case X.A.BACKSPACE:case X.A.DELETE:Wn?.(tr);break}_t!==null&&(xt.preventDefault(),kn(_t,tr))}},ze=function(xt){switch(xt.which||xt.keyCode){case X.A.LEFT:case X.A.RIGHT:case X.A.UP:case X.A.DOWN:case X.A.HOME:case X.A.END:case X.A.PAGE_UP:case X.A.PAGE_DOWN:Jn?.();break}},qe=T(he,on,fe,K),Pt={};if(tr!==null){var zt;Pt={tabIndex:Fe?null:B(pn,tr),role:"slider","aria-valuemin":fe,"aria-valuemax":K,"aria-valuenow":on,"aria-disabled":Fe,"aria-label":B(Yn,tr),"aria-labelledby":B(ht,tr),"aria-required":B(De,tr),"aria-valuetext":(zt=B(we,tr))===null||zt===void 0?void 0:zt(on),"aria-orientation":he==="ltr"||he==="rtl"?"horizontal":"vertical",onMouseDown:We,onTouchStart:We,onFocus:Je,onMouseEnter:ye,onKeyDown:Qe,onKeyUp:ze}}var un=Q.createElement("div",ce({ref:Kn,className:I()(pt,x(x(x({},"".concat(pt,"-").concat(tr+1),tr!==null&&ln),"".concat(pt,"-dragging"),en),"".concat(pt,"-dragging-delete"),gn),be.handle),style:p(p(p({},qe),er),Ke.handle)},Pt,bt));return Fn&&(un=Fn(un,{index:tr,prefixCls:ur,value:on,dragging:en,draggingDelete:gn})),un});const tt=yt;var Ze=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Ne=Q.forwardRef(function(Vt,Kn){var ur=Vt.prefixCls,on=Vt.style,tr=Vt.onStartMove,Cn=Vt.onOffsetChange,Wn=Vt.values,er=Vt.handleRender,Fn=Vt.activeHandleRender,en=Vt.draggingIndex,gn=Vt.draggingDelete,kn=Vt.onFocus,Jn=q(Vt,Ze),Nn=Q.useRef({}),kr=Q.useState(!1),bt=L(kr,2),ne=bt[0],fe=bt[1],K=Q.useState(-1),he=L(K,2),Fe=he[0],Nt=he[1],ln=function(we){Nt(we),fe(!0)},pn=function(we,Ke){ln(Ke),kn?.(we)},Yn=function(we,Ke){ln(Ke)};Q.useImperativeHandle(Kn,function(){return{focus:function(we){var Ke;(Ke=Nn.current[we])===null||Ke===void 0||Ke.focus()},hideHelp:function(){(0,te.flushSync)(function(){fe(!1)})}}});var ht=p({prefixCls:ur,onStartMove:tr,onOffsetChange:Cn,render:er,onFocus:pn,onMouseEnter:Yn},Jn);return Q.createElement(Q.Fragment,null,Wn.map(function(De,we){var Ke=en===we;return Q.createElement(tt,ce({ref:function(pt){pt?Nn.current[we]=pt:delete Nn.current[we]},dragging:Ke,draggingDelete:Ke&&gn,style:B(on,we),key:we,value:De,valueIndex:we},ht))}),Fn&&ne&&Q.createElement(tt,ce({key:"a11y"},ht,{value:Wn[Fe],valueIndex:null,dragging:en!==-1,draggingDelete:gn,render:Fn,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const it=Ne;var Rt=function(Kn){var ur=Kn.prefixCls,on=Kn.style,tr=Kn.children,Cn=Kn.value,Wn=Kn.onClick,er=Q.useContext(ie),Fn=er.min,en=er.max,gn=er.direction,kn=er.includedStart,Jn=er.includedEnd,Nn=er.included,kr="".concat(ur,"-text"),bt=T(gn,Cn,Fn,en);return Q.createElement("span",{className:I()(kr,x({},"".concat(kr,"-active"),Nn&&kn<=Cn&&Cn<=Jn)),style:p(p({},bt),on),onMouseDown:function(fe){fe.stopPropagation()},onClick:function(){Wn(Cn)}},tr)};const Dn=Rt;var Mt=function(Kn){var ur=Kn.prefixCls,on=Kn.marks,tr=Kn.onClick,Cn="".concat(ur,"-mark");return on.length?Q.createElement("div",{className:Cn},on.map(function(Wn){var er=Wn.value,Fn=Wn.style,en=Wn.label;return Q.createElement(Dn,{key:er,prefixCls:Cn,style:Fn,value:er,onClick:tr},en)})):null};const Wt=Mt;var Tn=function(Kn){var ur=Kn.prefixCls,on=Kn.value,tr=Kn.style,Cn=Kn.activeStyle,Wn=Q.useContext(ie),er=Wn.min,Fn=Wn.max,en=Wn.direction,gn=Wn.included,kn=Wn.includedStart,Jn=Wn.includedEnd,Nn="".concat(ur,"-dot"),kr=gn&&kn<=on&&on<=Jn,bt=p(p({},T(en,on,er,Fn)),typeof tr=="function"?tr(on):tr);return kr&&(bt=p(p({},bt),typeof Cn=="function"?Cn(on):Cn)),Q.createElement("span",{className:I()(Nn,x({},"".concat(Nn,"-active"),kr)),style:bt})};const bn=Tn;var $t=function(Kn){var ur=Kn.prefixCls,on=Kn.marks,tr=Kn.dots,Cn=Kn.style,Wn=Kn.activeStyle,er=Q.useContext(ie),Fn=er.min,en=er.max,gn=er.step,kn=Q.useMemo(function(){var Jn=new Set;if(on.forEach(function(kr){Jn.add(kr.value)}),tr&&gn!==null)for(var Nn=Fn;Nn<=en;)Jn.add(Nn),Nn+=gn;return Array.from(Jn)},[Fn,en,gn,tr,on]);return Q.createElement("div",{className:"".concat(ur,"-step")},kn.map(function(Jn){return Q.createElement(bn,{prefixCls:ur,key:Jn,value:Jn,style:Cn,activeStyle:Wn})}))};const Ct=$t;var Z=function(Kn){var ur=Kn.prefixCls,on=Kn.style,tr=Kn.start,Cn=Kn.end,Wn=Kn.index,er=Kn.onStartMove,Fn=Kn.replaceCls,en=Q.useContext(ie),gn=en.direction,kn=en.min,Jn=en.max,Nn=en.disabled,kr=en.range,bt=en.classNames,ne="".concat(ur,"-track"),fe=A(tr,kn,Jn),K=A(Cn,kn,Jn),he=function(pn){!Nn&&er&&er(pn,-1)},Fe={};switch(gn){case"rtl":Fe.right="".concat(fe*100,"%"),Fe.width="".concat(K*100-fe*100,"%");break;case"btt":Fe.bottom="".concat(fe*100,"%"),Fe.height="".concat(K*100-fe*100,"%");break;case"ttb":Fe.top="".concat(fe*100,"%"),Fe.height="".concat(K*100-fe*100,"%");break;default:Fe.left="".concat(fe*100,"%"),Fe.width="".concat(K*100-fe*100,"%")}var Nt=Fn||I()(ne,x(x({},"".concat(ne,"-").concat(Wn+1),Wn!==null&&kr),"".concat(ur,"-track-draggable"),er),bt.track);return Q.createElement("div",{className:Nt,style:p(p({},Fe),on),onMouseDown:he,onTouchStart:he})};const me=Z;var ke=function(Kn){var ur=Kn.prefixCls,on=Kn.style,tr=Kn.values,Cn=Kn.startPoint,Wn=Kn.onStartMove,er=Q.useContext(ie),Fn=er.included,en=er.range,gn=er.min,kn=er.styles,Jn=er.classNames,Nn=Q.useMemo(function(){if(!en){if(tr.length===0)return[];var bt=Cn??gn,ne=tr[0];return[{start:Math.min(bt,ne),end:Math.max(bt,ne)}]}for(var fe=[],K=0;K<tr.length-1;K+=1)fe.push({start:tr[K],end:tr[K+1]});return fe},[tr,en,Cn,gn]);if(!Fn)return null;var kr=Nn!=null&&Nn.length&&(Jn.tracks||kn.tracks)?Q.createElement(me,{index:null,prefixCls:ur,start:Nn[0].start,end:Nn[Nn.length-1].end,replaceCls:I()(Jn.tracks,"".concat(ur,"-tracks")),style:kn.tracks}):null;return Q.createElement(Q.Fragment,null,kr,Nn.map(function(bt,ne){var fe=bt.start,K=bt.end;return Q.createElement(me,{index:ne,prefixCls:ur,style:p(p({},B(on,ne)),kn.track),start:fe,end:K,key:ne,onStartMove:Wn})}))};const Ee=ke;var _e=u(30981),ge=130;function Me(Vt){var Kn="targetTouches"in Vt?Vt.targetTouches[0]:Vt;return{pageX:Kn.pageX,pageY:Kn.pageY}}function lt(Vt,Kn,ur,on,tr,Cn,Wn,er,Fn,en,gn){var kn=Q.useState(null),Jn=L(kn,2),Nn=Jn[0],kr=Jn[1],bt=Q.useState(-1),ne=L(bt,2),fe=ne[0],K=ne[1],he=Q.useState(!1),Fe=L(he,2),Nt=Fe[0],ln=Fe[1],pn=Q.useState(ur),Yn=L(pn,2),ht=Yn[0],De=Yn[1],we=Q.useState(ur),Ke=L(we,2),be=Ke[0],pt=Ke[1],We=Q.useRef(null),Je=Q.useRef(null),ye=Q.useRef(null),Qe=Q.useContext(Te),ze=Qe.onDragStart,qe=Qe.onDragChange;(0,_e.A)(function(){fe===-1&&De(ur)},[ur,fe]),Q.useEffect(function(){return function(){document.removeEventListener("mousemove",We.current),document.removeEventListener("mouseup",Je.current),ye.current&&(ye.current.removeEventListener("touchmove",We.current),ye.current.removeEventListener("touchend",Je.current))}},[]);var Pt=function(_t,qt,fn){qt!==void 0&&kr(qt),De(_t);var On=_t;fn&&(On=_t.filter(function(Gn,Bn){return Bn!==fe})),Wn(On),qe&&qe({rawValues:_t,deleteIndex:fn?fe:-1,draggingIndex:fe,draggingValue:qt})},zt=(0,U.A)(function(xt,_t,qt){if(xt===-1){var fn=be[0],On=be[be.length-1],Gn=on-fn,Bn=tr-On,Lr=_t*(tr-on);Lr=Math.max(Lr,Gn),Lr=Math.min(Lr,Bn);var An=Cn(fn+Lr);Lr=An-fn;var Un=be.map(function(ar){return ar+Lr});Pt(Un)}else{var cr=(tr-on)*_t,mr=d(ht);mr[xt]=be[xt];var hr=Fn(mr,cr,xt,"dist");Pt(hr.values,hr.value,qt)}}),un=function(_t,qt,fn){_t.stopPropagation();var On=fn||ur,Gn=On[qt];K(qt),kr(Gn),pt(On),De(On),ln(!1);var Bn=Me(_t),Lr=Bn.pageX,An=Bn.pageY,Un=!1;ze&&ze({rawValues:On,draggingIndex:qt,draggingValue:Gn});var cr=function(ar){ar.preventDefault();var Cr=Me(ar),Yr=Cr.pageX,Xr=Cr.pageY,ni=Yr-Lr,ki=Xr-An,zr=Vt.current.getBoundingClientRect(),Ur=zr.width,jt=zr.height,sn,Rn;switch(Kn){case"btt":sn=-ki/jt,Rn=ni;break;case"ttb":sn=ki/jt,Rn=ni;break;case"rtl":sn=-ni/Ur,Rn=ki;break;default:sn=ni/Ur,Rn=ki}Un=en?Math.abs(Rn)>ge&&gn<ht.length:!1,ln(Un),zt(qt,sn,Un)},mr=function hr(ar){ar.preventDefault(),document.removeEventListener("mouseup",hr),document.removeEventListener("mousemove",cr),ye.current&&(ye.current.removeEventListener("touchmove",We.current),ye.current.removeEventListener("touchend",Je.current)),We.current=null,Je.current=null,ye.current=null,er(Un),K(-1),ln(!1)};document.addEventListener("mouseup",mr),document.addEventListener("mousemove",cr),_t.currentTarget.addEventListener("touchend",mr),_t.currentTarget.addEventListener("touchmove",cr),We.current=cr,Je.current=mr,ye.current=_t.currentTarget},hn=Q.useMemo(function(){var xt=d(ur).sort(function(Gn,Bn){return Gn-Bn}),_t=d(ht).sort(function(Gn,Bn){return Gn-Bn}),qt={};_t.forEach(function(Gn){qt[Gn]=(qt[Gn]||0)+1}),xt.forEach(function(Gn){qt[Gn]=(qt[Gn]||0)-1});var fn=en?1:0,On=Object.values(qt).reduce(function(Gn,Bn){return Gn+Math.abs(Bn)},0);return On<=fn?ht:ur},[ur,ht,en]);return[fe,Nn,Nt,hn,un]}const Ft=lt;function Et(Vt,Kn,ur,on,tr,Cn){var Wn=Q.useCallback(function(Nn){return Math.max(Vt,Math.min(Kn,Nn))},[Vt,Kn]),er=Q.useCallback(function(Nn){if(ur!==null){var kr=Vt+Math.round((Wn(Nn)-Vt)/ur)*ur,bt=function(he){return(String(he).split(".")[1]||"").length},ne=Math.max(bt(ur),bt(Kn),bt(Vt)),fe=Number(kr.toFixed(ne));return Vt<=fe&&fe<=Kn?fe:null}return null},[ur,Vt,Kn,Wn]),Fn=Q.useCallback(function(Nn){var kr=Wn(Nn),bt=on.map(function(K){return K.value});ur!==null&&bt.push(er(Nn)),bt.push(Vt,Kn);var ne=bt[0],fe=Kn-Vt;return bt.forEach(function(K){var he=Math.abs(kr-K);he<=fe&&(ne=K,fe=he)}),ne},[Vt,Kn,on,ur,Wn,er]),en=function Nn(kr,bt,ne){var fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof bt=="number"){var K,he=kr[ne],Fe=he+bt,Nt=[];on.forEach(function(De){Nt.push(De.value)}),Nt.push(Vt,Kn),Nt.push(er(he));var ln=bt>0?1:-1;fe==="unit"?Nt.push(er(he+ln*ur)):Nt.push(er(Fe)),Nt=Nt.filter(function(De){return De!==null}).filter(function(De){return bt<0?De<=he:De>=he}),fe==="unit"&&(Nt=Nt.filter(function(De){return De!==he}));var pn=fe==="unit"?he:Fe;K=Nt[0];var Yn=Math.abs(K-pn);if(Nt.forEach(function(De){var we=Math.abs(De-pn);we<Yn&&(K=De,Yn=we)}),K===void 0)return bt<0?Vt:Kn;if(fe==="dist")return K;if(Math.abs(bt)>1){var ht=d(kr);return ht[ne]=K,Nn(ht,bt-ln,ne,fe)}return K}else{if(bt==="min")return Vt;if(bt==="max")return Kn}},gn=function(kr,bt,ne){var fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",K=kr[ne],he=en(kr,bt,ne,fe);return{value:he,changed:he!==K}},kn=function(kr){return Cn===null&&kr===0||typeof Cn=="number"&&kr<Cn},Jn=function(kr,bt,ne){var fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",K=kr.map(Fn),he=K[ne],Fe=en(K,bt,ne,fe);if(K[ne]=Fe,tr===!1){var Nt=Cn||0;ne>0&&K[ne-1]!==he&&(K[ne]=Math.max(K[ne],K[ne-1]+Nt)),ne<K.length-1&&K[ne+1]!==he&&(K[ne]=Math.min(K[ne],K[ne+1]-Nt))}else if(typeof Cn=="number"||Cn===null){for(var ln=ne+1;ln<K.length;ln+=1)for(var pn=!0;kn(K[ln]-K[ln-1])&&pn;){var Yn=gn(K,1,ln);K[ln]=Yn.value,pn=Yn.changed}for(var ht=ne;ht>0;ht-=1)for(var De=!0;kn(K[ht]-K[ht-1])&&De;){var we=gn(K,-1,ht-1);K[ht-1]=we.value,De=we.changed}for(var Ke=K.length-1;Ke>0;Ke-=1)for(var be=!0;kn(K[Ke]-K[Ke-1])&&be;){var pt=gn(K,-1,Ke-1);K[Ke-1]=pt.value,be=pt.changed}for(var We=0;We<K.length-1;We+=1)for(var Je=!0;kn(K[We+1]-K[We])&&Je;){var ye=gn(K,1,We+1);K[We+1]=ye.value,Je=ye.changed}}return{value:K[ne],values:K}};return[Fn,Jn]}function Zt(Vt){return(0,Q.useMemo)(function(){if(Vt===!0||!Vt)return[!!Vt,!1,!1,0];var Kn=Vt.editable,ur=Vt.draggableTrack,on=Vt.minCount,tr=Vt.maxCount;return[!0,Kn,!Kn&&ur,on||0,tr]},[Vt])}var nn=Q.forwardRef(function(Vt,Kn){var ur=Vt.prefixCls,on=ur===void 0?"rc-slider":ur,tr=Vt.className,Cn=Vt.style,Wn=Vt.classNames,er=Vt.styles,Fn=Vt.id,en=Vt.disabled,gn=en===void 0?!1:en,kn=Vt.keyboard,Jn=kn===void 0?!0:kn,Nn=Vt.autoFocus,kr=Vt.onFocus,bt=Vt.onBlur,ne=Vt.min,fe=ne===void 0?0:ne,K=Vt.max,he=K===void 0?100:K,Fe=Vt.step,Nt=Fe===void 0?1:Fe,ln=Vt.value,pn=Vt.defaultValue,Yn=Vt.range,ht=Vt.count,De=Vt.onChange,we=Vt.onBeforeChange,Ke=Vt.onAfterChange,be=Vt.onChangeComplete,pt=Vt.allowCross,We=pt===void 0?!0:pt,Je=Vt.pushable,ye=Je===void 0?!1:Je,Qe=Vt.reverse,ze=Vt.vertical,qe=Vt.included,Pt=qe===void 0?!0:qe,zt=Vt.startPoint,un=Vt.trackStyle,hn=Vt.handleStyle,xt=Vt.railStyle,_t=Vt.dotStyle,qt=Vt.activeDotStyle,fn=Vt.marks,On=Vt.dots,Gn=Vt.handleRender,Bn=Vt.activeHandleRender,Lr=Vt.track,An=Vt.tabIndex,Un=An===void 0?0:An,cr=Vt.ariaLabelForHandle,mr=Vt.ariaLabelledByForHandle,hr=Vt.ariaRequired,ar=Vt.ariaValueTextFormatterForHandle,Cr=Q.useRef(null),Yr=Q.useRef(null),Xr=Q.useMemo(function(){return ze?Qe?"ttb":"btt":Qe?"rtl":"ltr"},[Qe,ze]),ni=Zt(Yn),ki=L(ni,5),zr=ki[0],Ur=ki[1],jt=ki[2],sn=ki[3],Rn=ki[4],H=Q.useMemo(function(){return isFinite(fe)?fe:0},[fe]),Be=Q.useMemo(function(){return isFinite(he)?he:100},[he]),wn=Q.useMemo(function(){return Nt!==null&&Nt<=0?1:Nt},[Nt]),bi=Q.useMemo(function(){return typeof ye=="boolean"?ye?wn:!1:ye>=0?ye:!1},[ye,wn]),Oi=Q.useMemo(function(){return Object.keys(fn||{}).map(function(ta){var Ji=fn[ta],k={value:Number(ta)};return Ji&&l(Ji)==="object"&&!Q.isValidElement(Ji)&&("label"in Ji||"style"in Ji)?(k.style=Ji.style,k.label=Ji.label):k.label=Ji,k}).filter(function(ta){var Ji=ta.label;return Ji||typeof Ji=="number"}).sort(function(ta,Ji){return ta.value-Ji.value})},[fn]),de=Et(H,Be,wn,Oi,We,bi),Ve=L(de,2),vt=Ve[0],Qt=Ve[1],nt=(0,$.A)(pn,{value:ln}),Tt=L(nt,2),Gt=Tt[0],En=Tt[1],Qn=Q.useMemo(function(){var ta=Gt==null?[]:Array.isArray(Gt)?Gt:[Gt],Ji=L(ta,1),k=Ji[0],ve=k===void 0?H:k,Le=Gt===null?[]:[ve];if(zr){if(Le=d(ta),ht||Gt===void 0){var Ye=ht>=0?ht+1:2;for(Le=Le.slice(0,Ye);Le.length<Ye;){var ot;Le.push((ot=Le[Le.length-1])!==null&&ot!==void 0?ot:H)}}Le.sort(function(Lt,an){return Lt-an})}return Le.forEach(function(Lt,an){Le[an]=vt(Lt)}),Le},[Gt,zr,H,ht,vt]),Or=function(Ji){return zr?Ji:Ji[0]},Pr=(0,U.A)(function(ta){var Ji=d(ta).sort(function(k,ve){return k-ve});De&&!z(Ji,Qn,!0)&&De(Or(Ji)),En(Ji)}),ai=(0,U.A)(function(ta){ta&&Cr.current.hideHelp();var Ji=Or(Qn);Ke?.(Ji),(0,re.Ay)(!Ke,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),be?.(Ji)}),xi=function(Ji){if(!(gn||!Ur||Qn.length<=sn)){var k=d(Qn);k.splice(Ji,1),we?.(Or(k)),Pr(k);var ve=Math.max(0,Ji-1);Cr.current.hideHelp(),Cr.current.focus(ve)}},mi=Ft(Yr,Xr,Qn,H,Be,vt,Pr,ai,Qt,Ur,sn),ei=L(mi,5),Qr=ei[0],Ni=ei[1],ea=ei[2],Qi=ei[3],ir=ei[4],xr=function(Ji,k){if(!gn){var ve=d(Qn),Le=0,Ye=0,ot=Be-H;Qn.forEach(function($r,Fr){var qr=Math.abs(Ji-$r);qr<=ot&&(ot=qr,Le=Fr),$r<Ji&&(Ye=Fr)});var Lt=Le;Ur&&ot!==0&&(!Rn||Qn.length<Rn)?(ve.splice(Ye+1,0,Ji),Lt=Ye+1):ve[Le]=Ji,zr&&!Qn.length&&ht===void 0&&ve.push(Ji);var an=Or(ve);if(we?.(an),Pr(ve),k){var nr,vr;(nr=document.activeElement)===null||nr===void 0||(vr=nr.blur)===null||vr===void 0||vr.call(nr),Cr.current.focus(Lt),ir(k,Lt,ve)}else Ke?.(an),(0,re.Ay)(!Ke,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),be?.(an)}},di=function(Ji){Ji.preventDefault();var k=Yr.current.getBoundingClientRect(),ve=k.width,Le=k.height,Ye=k.left,ot=k.top,Lt=k.bottom,an=k.right,nr=Ji.clientX,vr=Ji.clientY,$r;switch(Xr){case"btt":$r=(Lt-vr)/Le;break;case"ttb":$r=(vr-ot)/Le;break;case"rtl":$r=(an-nr)/ve;break;default:$r=(nr-Ye)/ve}var Fr=H+$r*(Be-H);xr(vt(Fr),Ji)},ft=Q.useState(null),zn=L(ft,2),Zn=zn[0],wi=zn[1],Ea=function(Ji,k){if(!gn){var ve=Qt(Qn,Ji,k);we?.(Or(Qn)),Pr(ve.values),wi(ve.value)}};Q.useEffect(function(){if(Zn!==null){var ta=Qn.indexOf(Zn);ta>=0&&Cr.current.focus(ta)}wi(null)},[Zn]);var wa=Q.useMemo(function(){return jt&&wn===null?!1:jt},[jt,wn]),ji=(0,U.A)(function(ta,Ji){ir(ta,Ji),we?.(Or(Qn))}),Dt=Qr!==-1;Q.useEffect(function(){if(!Dt){var ta=Qn.lastIndexOf(Ni);Cr.current.focus(ta)}},[Dt]);var Xn=Q.useMemo(function(){return d(Qi).sort(function(ta,Ji){return ta-Ji})},[Qi]),Tr=Q.useMemo(function(){return zr?[Xn[0],Xn[Xn.length-1]]:[H,Xn[0]]},[Xn,zr,H]),Nr=L(Tr,2),ti=Nr[0],_i=Nr[1];Q.useImperativeHandle(Kn,function(){return{focus:function(){Cr.current.focus(0)},blur:function(){var Ji,k=document,ve=k.activeElement;(Ji=Yr.current)!==null&&Ji!==void 0&&Ji.contains(ve)&&ve?.blur()}}}),Q.useEffect(function(){Nn&&Cr.current.focus(0)},[]);var Ii=Q.useMemo(function(){return{min:H,max:Be,direction:Xr,disabled:gn,keyboard:Jn,step:wn,included:Pt,includedStart:ti,includedEnd:_i,range:zr,tabIndex:Un,ariaLabelForHandle:cr,ariaLabelledByForHandle:mr,ariaRequired:hr,ariaValueTextFormatterForHandle:ar,styles:er||{},classNames:Wn||{}}},[H,Be,Xr,gn,Jn,wn,Pt,ti,_i,zr,Un,cr,mr,hr,ar,er,Wn]);return Q.createElement(ie.Provider,{value:Ii},Q.createElement("div",{ref:Yr,className:I()(on,tr,x(x(x(x({},"".concat(on,"-disabled"),gn),"".concat(on,"-vertical"),ze),"".concat(on,"-horizontal"),!ze),"".concat(on,"-with-marks"),Oi.length)),style:Cn,onMouseDown:di,id:Fn},Q.createElement("div",{className:I()("".concat(on,"-rail"),Wn?.rail),style:p(p({},xt),er?.rail)}),Lr!==!1&&Q.createElement(Ee,{prefixCls:on,style:un,values:Qn,startPoint:zt,onStartMove:wa?ji:void 0}),Q.createElement(Ct,{prefixCls:on,marks:Oi,dots:On,style:_t,activeStyle:qt}),Q.createElement(it,{ref:Cr,prefixCls:on,style:hn,values:Qi,draggingIndex:Qr,draggingDelete:ea,onStartMove:ji,onOffsetChange:Ea,onFocus:kr,onBlur:bt,handleRender:Gn,activeHandleRender:Bn,onChangeComplete:ai,onDelete:Ur?xi:void 0}),Q.createElement(Wt,{prefixCls:on,marks:Oi,onClick:xr})))});const rn=nn},69202:(Ge,w,u)=>{"use strict";u.d(w,{H8:()=>m,cX:()=>x,m0:()=>S});function l(O){var R;if(typeof window>"u"||window.navigator==null)return!1;let C=(R=window.navigator.userAgentData)===null||R===void 0?void 0:R.brands;return Array.isArray(C)&&C.some(L=>O.test(L.brand))||O.test(window.navigator.userAgent)}function g(O){var R;return typeof window<"u"&&window.navigator!=null?O.test(((R=window.navigator.userAgentData)===null||R===void 0?void 0:R.platform)||window.navigator.platform):!1}function y(O){let R=null;return()=>(R==null&&(R=O()),R)}const x=y(function(){return g(/^Mac/i)}),f=y(function(){return g(/^iPhone/i)}),p=y(function(){return g(/^iPad/i)||x()&&navigator.maxTouchPoints>1}),h=y(function(){return f()||p()}),E=y(function(){return x()||h()}),v=y(function(){return l(/AppleWebKit/i)&&!m()}),m=y(function(){return l(/Chrome/i)}),S=y(function(){return l(/Android/i)}),d=y(function(){return l(/Firefox/i)})},69242:(Ge,w,u)=>{"use strict";Ge.exports=u(22162)},69391:(Ge,w,u)=>{"use strict";u.d(w,{X:()=>l});var l=function(g){return g&&typeof g.length=="number"&&typeof g!="function"}},69517:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.UnsubscriptionError=void 0;var l=u(9619);w.UnsubscriptionError=l.createErrorClass(function(g){return function(x){g(this),this.message=x?x.length+` errors occurred during unsubscription: `+x.map(function(f,p){return p+1+") "+f.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=x}})},69850:(Ge,w,u)=>{"use strict";u.d(w,{j:()=>g});var l=u(92908);function g(y){return(0,l.N)(function(x,f){try{x.subscribe(f)}finally{f.add(y)}})}},69862:(Ge,w,u)=>{"use strict";u.d(w,{Z:()=>p});var l=u(81160),g=u(15964),y=u(92908),x=u(74462),f=u(61209);function p(h,E,v){return v===void 0&&(v=1/0),(0,f.T)(E)?p(function(m,S){return(0,l.T)(function(d,O){return E(m,d,S,O)})((0,g.Tg)(h(m,S)))},v):(typeof E=="number"&&(v=E),(0,y.N)(function(m,S){return(0,x.h)(m,S,h,v)}))}},69879:function(Ge,w,u){"use strict";var l=this&&this.__values||function(m){var S=typeof Symbol=="function"&&Symbol.iterator,d=S&&m[S],O=0;if(d)return d.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&O>=m.length&&(m=void 0),{value:m&&m[O++],done:!m}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(m,S){var d=typeof Symbol=="function"&&m[Symbol.iterator];if(!d)return m;var O=d.call(m),R,C=[],L;try{for(;(S===void 0||S-- >0)&&!(R=O.next()).done;)C.push(R.value)}catch(j){L={error:j}}finally{try{R&&!R.done&&(d=O.return)&&d.call(O)}finally{if(L)throw L.error}}return C},y=this&&this.__spreadArray||function(m,S){for(var d=0,O=S.length,R=m.length;d<O;d++,R++)m[R]=S[d];return m};Object.defineProperty(w,"__esModule",{value:!0}),w.isSubscription=w.EMPTY_SUBSCRIPTION=w.Subscription=void 0;var x=u(10281),f=u(69517),p=u(54830),h=function(){function m(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._finalizers=null}return m.prototype.unsubscribe=function(){var S,d,O,R,C;if(!this.closed){this.closed=!0;var L=this._parentage;if(L)if(this._parentage=null,Array.isArray(L))try{for(var j=l(L),I=j.next();!I.done;I=j.next()){var U=I.value;U.remove(this)}}catch(Q){S={error:Q}}finally{try{I&&!I.done&&(d=j.return)&&d.call(j)}finally{if(S)throw S.error}}else L.remove(this);var $=this.initialTeardown;if(x.isFunction($))try{$()}catch(Q){C=Q instanceof f.UnsubscriptionError?Q.errors:[Q]}var ee=this._finalizers;if(ee){this._finalizers=null;try{for(var re=l(ee),Se=re.next();!Se.done;Se=re.next()){var z=Se.value;try{v(z)}catch(Q){C=C??[],Q instanceof f.UnsubscriptionError?C=y(y([],g(C)),g(Q.errors)):C.push(Q)}}}catch(Q){O={error:Q}}finally{try{Se&&!Se.done&&(R=re.return)&&R.call(re)}finally{if(O)throw O.error}}}if(C)throw new f.UnsubscriptionError(C)}},m.prototype.add=function(S){var d;if(S&&S!==this)if(this.closed)v(S);else{if(S instanceof m){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=(d=this._finalizers)!==null&&d!==void 0?d:[]).push(S)}},m.prototype._hasParent=function(S){var d=this._parentage;return d===S||Array.isArray(d)&&d.includes(S)},m.prototype._addParent=function(S){var d=this._parentage;this._parentage=Array.isArray(d)?(d.push(S),d):d?[d,S]:S},m.prototype._removeParent=function(S){var d=this._parentage;d===S?this._parentage=null:Array.isArray(d)&&p.arrRemove(d,S)},m.prototype.remove=function(S){var d=this._finalizers;d&&p.arrRemove(d,S),S instanceof m&&S._removeParent(this)},m.EMPTY=function(){var S=new m;return S.closed=!0,S}(),m}();w.Subscription=h,w.EMPTY_SUBSCRIPTION=h.EMPTY;function E(m){return m instanceof h||m&&"closed"in m&&x.isFunction(m.remove)&&x.isFunction(m.add)&&x.isFunction(m.unsubscribe)}w.isSubscription=E;function v(m){x.isFunction(m)?m():m.unsubscribe()}},69915:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isEmpty=void 0;var l=u(65212),g=u(17214);function y(){return l.operate(function(x,f){x.subscribe(g.createOperatorSubscriber(f,function(){f.next(!1),f.complete()},function(){f.next(!0),f.complete()}))})}w.isEmpty=y},70201:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.concatAll=void 0;var l=u(68087);function g(){return l.mergeAll(1)}w.concatAll=g},70290:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.parsePatch=u;function u(l){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=l.split(/\r\n|[\n\v\f\r\x85]/),x=l.match(/\r\n|[\n\v\f\r\x85]/g)||[],f=[],p=0;function h(){var m={};for(f.push(m);p<y.length;){var S=y[p];if(/^(\-\-\-|\+\+\+|@@)\s/.test(S))break;var d=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(S);d&&(m.index=d[1]),p++}for(E(m),E(m),m.hunks=[];p<y.length;){var O=y[p];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(O))break;if(/^@@/.test(O))m.hunks.push(v());else{if(O&&g.strict)throw new Error("Unknown line "+(p+1)+" "+JSON.stringify(O));p++}}}function E(m){var S=/^(---|\+\+\+)\s+(.*)$/.exec(y[p]);if(S){var d=S[1]==="---"?"old":"new",O=S[2].split(" ",2),R=O[0].replace(/\\\\/g,"\\");/^".*"$/.test(R)&&(R=R.substr(1,R.length-2)),m[d+"FileName"]=R,m[d+"Header"]=(O[1]||"").trim(),p++}}function v(){var m=p,S=y[p++],d=S.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),O={oldStart:+d[1],oldLines:typeof d[2]>"u"?1:+d[2],newStart:+d[3],newLines:typeof d[4]>"u"?1:+d[4],lines:[],linedelimiters:[]};O.oldLines===0&&(O.oldStart+=1),O.newLines===0&&(O.newStart+=1);for(var R=0,C=0;p<y.length&&!(y[p].indexOf("--- ")===0&&p+2<y.length&&y[p+1].indexOf("+++ ")===0&&y[p+2].indexOf("@@")===0);p++){var L=y[p].length==0&&p!=y.length-1?" ":y[p][0];if(L==="+"||L==="-"||L===" "||L==="\\")O.lines.push(y[p]),O.linedelimiters.push(x[p]||` `),L==="+"?R++:L==="-"?C++:L===" "&&(R++,C++);else break}if(!R&&O.newLines===1&&(O.newLines=0),!C&&O.oldLines===1&&(O.oldLines=0),g.strict){if(R!==O.newLines)throw new Error("Added line count did not match for hunk at line "+(m+1));if(C!==O.oldLines)throw new Error("Removed line count did not match for hunk at line "+(m+1))}return O}for(;p<y.length;)h();return f}},70666:(Ge,w,u)=>{"use strict";u.d(w,{$N:()=>Q,$p:()=>me,$v:()=>v,Ax:()=>z,BN:()=>Ne,CI:()=>q,CQ:()=>X,CT:()=>Cn,Cn:()=>te,Dq:()=>T,Dw:()=>bt,EY:()=>m,G3:()=>Zt,GP:()=>Tn,GY:()=>ee,Gb:()=>Wt,I:()=>tt,IT:()=>it,Ko:()=>re,L8:()=>Ee,LJ:()=>lt,Lc:()=>ce,Mv:()=>Dn,N$:()=>Nn,Oi:()=>Kn,Oy:()=>ue,P0:()=>Me,Py:()=>L,Sb:()=>Fe,TF:()=>$,U5:()=>Rt,UY:()=>A,Um:()=>bn,VF:()=>Jn,VO:()=>on,VY:()=>R,W4:()=>E,WH:()=>$t,Wc:()=>Wn,ZQ:()=>je,Zc:()=>S,Zn:()=>d,Zu:()=>I,Zy:()=>se,_m:()=>K,b0:()=>ht,bl:()=>j,c2:()=>ie,cG:()=>C,cu:()=>ge,d:()=>ln,eb:()=>rn,g5:()=>U,h:()=>Pn,h8:()=>Te,hA:()=>pn,ig:()=>Fn,kU:()=>Yn,nu:()=>tr,o5:()=>Ct,o8:()=>p.clone,qG:()=>O,qc:()=>en,rv:()=>gn,sF:()=>Ze,t$:()=>ne,tV:()=>B,v1:()=>Se,vz:()=>yt,x8:()=>Mt,zP:()=>fe});var l=u(59737),g=u(45435),y=u(58424),x=u(62373),f=u(53705),p=u(57048),h=u(33457);const E=g.xI("$ZodType",(we,Ke)=>{var be;we??(we={}),we._zod.def=Ke,we._zod.bag=we._zod.bag||{},we._zod.version=h.r;const pt=[...we._zod.def.checks??[]];we._zod.traits.has("$ZodCheck")&&pt.unshift(we);for(const We of pt)for(const Je of We._zod.onattach)Je(we);if(pt.length===0)(be=we._zod).deferred??(be.deferred=[]),we._zod.deferred?.push(()=>{we._zod.run=we._zod.parse});else{const We=(Je,ye,Qe)=>{let ze=p.aborted(Je),qe;for(const Pt of ye){if(Pt._zod.def.when){if(!Pt._zod.def.when(Je))continue}else if(ze)continue;const zt=Je.issues.length,un=Pt._zod.check(Je);if(un instanceof Promise&&Qe?.async===!1)throw new g.GT;if(qe||un instanceof Promise)qe=(qe??Promise.resolve()).then(async()=>{await un,Je.issues.length!==zt&&(ze||(ze=p.aborted(Je,zt)))});else{if(Je.issues.length===zt)continue;ze||(ze=p.aborted(Je,zt))}}return qe?qe.then(()=>Je):Je};we._zod.run=(Je,ye)=>{const Qe=we._zod.parse(Je,ye);if(Qe instanceof Promise){if(ye.async===!1)throw new g.GT;return Qe.then(ze=>We(ze,pt,ye))}return We(Qe,pt,ye)}}we["~standard"]={validate:We=>{try{const Je=(0,x.xL)(we,We);return Je.success?{value:Je.data}:{issues:Je.error?.issues}}catch{return(0,x.bp)(we,We).then(ye=>ye.success?{value:ye.data}:{issues:ye.error?.issues})}},vendor:"zod",version:1}}),v=g.xI("$ZodString",(we,Ke)=>{E.init(we,Ke),we._zod.pattern=[...we?._zod.bag?.patterns??[]].pop()??f.string(we._zod.bag),we._zod.parse=(be,pt)=>{if(Ke.coerce)try{be.value=String(be.value)}catch{}return typeof be.value=="string"||be.issues.push({expected:"string",code:"invalid_type",input:be.value,inst:we}),be}}),m=g.xI("$ZodStringFormat",(we,Ke)=>{l.ql.init(we,Ke),v.init(we,Ke)}),S=g.xI("$ZodGUID",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.guid),m.init(we,Ke)}),d=g.xI("$ZodUUID",(we,Ke)=>{if(Ke.version){const pt={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[Ke.version];if(pt===void 0)throw new Error(`Invalid UUID version: "${Ke.version}"`);Ke.pattern??(Ke.pattern=f.uuid(pt))}else Ke.pattern??(Ke.pattern=f.uuid());m.init(we,Ke)}),O=g.xI("$ZodEmail",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.email),m.init(we,Ke)}),R=g.xI("$ZodURL",(we,Ke)=>{m.init(we,Ke),we._zod.check=be=>{try{const pt=be.value.trim(),We=new URL(pt);Ke.hostname&&(Ke.hostname.lastIndex=0,Ke.hostname.test(We.hostname)||be.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:f.hostname.source,input:be.value,inst:we,continue:!Ke.abort})),Ke.protocol&&(Ke.protocol.lastIndex=0,Ke.protocol.test(We.protocol.endsWith(":")?We.protocol.slice(0,-1):We.protocol)||be.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:Ke.protocol.source,input:be.value,inst:we,continue:!Ke.abort})),Ke.normalize?be.value=We.href:be.value=pt;return}catch{be.issues.push({code:"invalid_format",format:"url",input:be.value,inst:we,continue:!Ke.abort})}}}),C=g.xI("$ZodEmoji",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.emoji()),m.init(we,Ke)}),L=g.xI("$ZodNanoID",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.nanoid),m.init(we,Ke)}),j=g.xI("$ZodCUID",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.cuid),m.init(we,Ke)}),I=g.xI("$ZodCUID2",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.cuid2),m.init(we,Ke)}),U=g.xI("$ZodULID",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.ulid),m.init(we,Ke)}),$=g.xI("$ZodXID",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.xid),m.init(we,Ke)}),ee=g.xI("$ZodKSUID",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.ksuid),m.init(we,Ke)}),re=g.xI("$ZodISODateTime",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.datetime(Ke)),m.init(we,Ke)}),Se=g.xI("$ZodISODate",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.date),m.init(we,Ke)}),z=g.xI("$ZodISOTime",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.time(Ke)),m.init(we,Ke)}),Q=g.xI("$ZodISODuration",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.duration),m.init(we,Ke)}),ce=g.xI("$ZodIPv4",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.ipv4),m.init(we,Ke),we._zod.onattach.push(be=>{const pt=be._zod.bag;pt.format="ipv4"})}),se=g.xI("$ZodIPv6",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.ipv6),m.init(we,Ke),we._zod.onattach.push(be=>{const pt=be._zod.bag;pt.format="ipv6"}),we._zod.check=be=>{try{new URL(`http://[${be.value}]`)}catch{be.issues.push({code:"invalid_format",format:"ipv6",input:be.value,inst:we,continue:!Ke.abort})}}}),q=g.xI("$ZodCIDRv4",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.cidrv4),m.init(we,Ke)}),te=g.xI("$ZodCIDRv6",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.cidrv6),m.init(we,Ke),we._zod.check=be=>{const[pt,We]=be.value.split("/");try{if(!We)throw new Error;const Je=Number(We);if(`${Je}`!==We)throw new Error;if(Je<0||Je>128)throw new Error;new URL(`http://[${pt}]`)}catch{be.issues.push({code:"invalid_format",format:"cidrv6",input:be.value,inst:we,continue:!Ke.abort})}}});function A(we){if(we==="")return!0;if(we.length%4!==0)return!1;try{return atob(we),!0}catch{return!1}}const T=g.xI("$ZodBase64",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.base64),m.init(we,Ke),we._zod.onattach.push(be=>{be._zod.bag.contentEncoding="base64"}),we._zod.check=be=>{A(be.value)||be.issues.push({code:"invalid_format",format:"base64",input:be.value,inst:we,continue:!Ke.abort})}});function B(we){if(!f.base64url.test(we))return!1;const Ke=we.replace(/[-_]/g,pt=>pt==="-"?"+":"/"),be=Ke.padEnd(Math.ceil(Ke.length/4)*4,"=");return A(be)}const X=g.xI("$ZodBase64URL",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.base64url),m.init(we,Ke),we._zod.onattach.push(be=>{be._zod.bag.contentEncoding="base64url"}),we._zod.check=be=>{B(be.value)||be.issues.push({code:"invalid_format",format:"base64url",input:be.value,inst:we,continue:!Ke.abort})}}),ue=g.xI("$ZodE164",(we,Ke)=>{Ke.pattern??(Ke.pattern=f.e164),m.init(we,Ke)});function ie(we,Ke=null){try{const be=we.split(".");if(be.length!==3)return!1;const[pt]=be;if(!pt)return!1;const We=JSON.parse(atob(pt));return!("typ"in We&&We?.typ!=="JWT"||!We.alg||Ke&&(!("alg"in We)||We.alg!==Ke))}catch{return!1}}const Te=g.xI("$ZodJWT",(we,Ke)=>{m.init(we,Ke),we._zod.check=be=>{ie(be.value,Ke.alg)||be.issues.push({code:"invalid_format",format:"jwt",input:be.value,inst:we,continue:!Ke.abort})}}),je=g.xI("$ZodCustomStringFormat",(we,Ke)=>{m.init(we,Ke),we._zod.check=be=>{Ke.fn(be.value)||be.issues.push({code:"invalid_format",format:Ke.format,input:be.value,inst:we,continue:!Ke.abort})}}),yt=g.xI("$ZodNumber",(we,Ke)=>{E.init(we,Ke),we._zod.pattern=we._zod.bag.pattern??f.number,we._zod.parse=(be,pt)=>{if(Ke.coerce)try{be.value=Number(be.value)}catch{}const We=be.value;if(typeof We=="number"&&!Number.isNaN(We)&&Number.isFinite(We))return be;const Je=typeof We=="number"?Number.isNaN(We)?"NaN":Number.isFinite(We)?void 0:"Infinity":void 0;return be.issues.push({expected:"number",code:"invalid_type",input:We,inst:we,...Je?{received:Je}:{}}),be}}),tt=g.xI("$ZodNumber",(we,Ke)=>{l.KH.init(we,Ke),yt.init(we,Ke)}),Ze=g.xI("$ZodBoolean",(we,Ke)=>{E.init(we,Ke),we._zod.pattern=f.boolean,we._zod.parse=(be,pt)=>{if(Ke.coerce)try{be.value=!!be.value}catch{}const We=be.value;return typeof We=="boolean"||be.issues.push({expected:"boolean",code:"invalid_type",input:We,inst:we}),be}}),Ne=g.xI("$ZodBigInt",(we,Ke)=>{E.init(we,Ke),we._zod.pattern=f.bigint,we._zod.parse=(be,pt)=>{if(Ke.coerce)try{be.value=BigInt(be.value)}catch{}return typeof be.value=="bigint"||be.issues.push({expected:"bigint",code:"invalid_type",input:be.value,inst:we}),be}}),it=g.xI("$ZodBigInt",(we,Ke)=>{l.uE.init(we,Ke),Ne.init(we,Ke)}),Rt=g.xI("$ZodSymbol",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value;return typeof We=="symbol"||be.issues.push({expected:"symbol",code:"invalid_type",input:We,inst:we}),be}}),Dn=g.xI("$ZodUndefined",(we,Ke)=>{E.init(we,Ke),we._zod.pattern=f.undefined,we._zod.values=new Set([void 0]),we._zod.optin="optional",we._zod.optout="optional",we._zod.parse=(be,pt)=>{const We=be.value;return typeof We>"u"||be.issues.push({expected:"undefined",code:"invalid_type",input:We,inst:we}),be}}),Mt=g.xI("$ZodNull",(we,Ke)=>{E.init(we,Ke),we._zod.pattern=f.null,we._zod.values=new Set([null]),we._zod.parse=(be,pt)=>{const We=be.value;return We===null||be.issues.push({expected:"null",code:"invalid_type",input:We,inst:we}),be}}),Wt=g.xI("$ZodAny",(we,Ke)=>{E.init(we,Ke),we._zod.parse=be=>be}),Tn=g.xI("$ZodUnknown",(we,Ke)=>{E.init(we,Ke),we._zod.parse=be=>be}),bn=g.xI("$ZodNever",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>(be.issues.push({expected:"never",code:"invalid_type",input:be.value,inst:we}),be)}),$t=g.xI("$ZodVoid",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value;return typeof We>"u"||be.issues.push({expected:"void",code:"invalid_type",input:We,inst:we}),be}}),Ct=g.xI("$ZodDate",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{if(Ke.coerce)try{be.value=new Date(be.value)}catch{}const We=be.value,Je=We instanceof Date;return Je&&!Number.isNaN(We.getTime())||be.issues.push({expected:"date",code:"invalid_type",input:We,...Je?{received:"Invalid Date"}:{},inst:we}),be}});function Z(we,Ke,be){we.issues.length&&Ke.issues.push(...p.prefixIssues(be,we.issues)),Ke.value[be]=we.value}const me=g.xI("$ZodArray",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value;if(!Array.isArray(We))return be.issues.push({expected:"array",code:"invalid_type",input:We,inst:we}),be;be.value=Array(We.length);const Je=[];for(let ye=0;ye<We.length;ye++){const Qe=We[ye],ze=Ke.element._zod.run({value:Qe,issues:[]},pt);ze instanceof Promise?Je.push(ze.then(qe=>Z(qe,be,ye))):Z(ze,be,ye)}return Je.length?Promise.all(Je).then(()=>be):be}});function ke(we,Ke,be,pt){we.issues.length&&Ke.issues.push(...p.prefixIssues(be,we.issues)),we.value===void 0?be in pt&&(Ke.value[be]=void 0):Ke.value[be]=we.value}const Ee=g.xI("$ZodObject",(we,Ke)=>{E.init(we,Ke);const be=p.cached(()=>{const zt=Object.keys(Ke.shape);for(const hn of zt)if(!(Ke.shape[hn]instanceof E))throw new Error(`Invalid element at key "${hn}": expected a Zod schema`);const un=p.optionalKeys(Ke.shape);return{shape:Ke.shape,keys:zt,keySet:new Set(zt),numKeys:zt.length,optionalKeys:new Set(un)}});p.defineLazy(we._zod,"propValues",()=>{const zt=Ke.shape,un={};for(const hn in zt){const xt=zt[hn]._zod;if(xt.values){un[hn]??(un[hn]=new Set);for(const _t of xt.values)un[hn].add(_t)}}return un});const pt=zt=>{const un=new y.J(["shape","payload","ctx"]),hn=be.value,xt=On=>{const Gn=p.esc(On);return`shape[${Gn}]._zod.run({ value: input[${Gn}], issues: [] }, ctx)`};un.write("const input = payload.value;");const _t=Object.create(null);let qt=0;for(const On of hn.keys)_t[On]=`key_${qt++}`;un.write("const newResult = {}");for(const On of hn.keys){const Gn=_t[On],Bn=p.esc(On);un.write(`const ${Gn} = ${xt(On)};`),un.write(` if (${Gn}.issues.length) { payload.issues = payload.issues.concat(${Gn}.issues.map(iss => ({ ...iss, path: iss.path ? [${Bn}, ...iss.path] : [${Bn}] }))); } if (${Gn}.value === undefined) { if (${Bn} in input) { newResult[${Bn}] = undefined; } } else { newResult[${Bn}] = ${Gn}.value; } `)}un.write("payload.value = newResult;"),un.write("return payload;");const fn=un.compile();return(On,Gn)=>fn(zt,On,Gn)};let We;const Je=p.isObject,ye=!g.cr.jitless,Qe=p.allowsEval,ze=ye&&Qe.value,qe=Ke.catchall;let Pt;we._zod.parse=(zt,un)=>{Pt??(Pt=be.value);const hn=zt.value;if(!Je(hn))return zt.issues.push({expected:"object",code:"invalid_type",input:hn,inst:we}),zt;const xt=[];if(ye&&ze&&un?.async===!1&&un.jitless!==!0)We||(We=pt(Ke.shape)),zt=We(zt,un);else{zt.value={};const Gn=Pt.shape;for(const Bn of Pt.keys){const An=Gn[Bn]._zod.run({value:hn[Bn],issues:[]},un);An instanceof Promise?xt.push(An.then(Un=>ke(Un,zt,Bn,hn))):ke(An,zt,Bn,hn)}}if(!qe)return xt.length?Promise.all(xt).then(()=>zt):zt;const _t=[],qt=Pt.keySet,fn=qe._zod,On=fn.def.type;for(const Gn of Object.keys(hn)){if(qt.has(Gn))continue;if(On==="never"){_t.push(Gn);continue}const Bn=fn.run({value:hn[Gn],issues:[]},un);Bn instanceof Promise?xt.push(Bn.then(Lr=>ke(Lr,zt,Gn,hn))):ke(Bn,zt,Gn,hn)}return _t.length&&zt.issues.push({code:"unrecognized_keys",keys:_t,input:hn,inst:we}),xt.length?Promise.all(xt).then(()=>zt):zt}});function _e(we,Ke,be,pt){for(const Je of we)if(Je.issues.length===0)return Ke.value=Je.value,Ke;const We=we.filter(Je=>!p.aborted(Je));return We.length===1?(Ke.value=We[0].value,We[0]):(Ke.issues.push({code:"invalid_union",input:Ke.value,inst:be,errors:we.map(Je=>Je.issues.map(ye=>p.finalizeIssue(ye,pt,g.$W())))}),Ke)}const ge=g.xI("$ZodUnion",(we,Ke)=>{E.init(we,Ke),p.defineLazy(we._zod,"optin",()=>Ke.options.some(We=>We._zod.optin==="optional")?"optional":void 0),p.defineLazy(we._zod,"optout",()=>Ke.options.some(We=>We._zod.optout==="optional")?"optional":void 0),p.defineLazy(we._zod,"values",()=>{if(Ke.options.every(We=>We._zod.values))return new Set(Ke.options.flatMap(We=>Array.from(We._zod.values)))}),p.defineLazy(we._zod,"pattern",()=>{if(Ke.options.every(We=>We._zod.pattern)){const We=Ke.options.map(Je=>Je._zod.pattern);return new RegExp(`^(${We.map(Je=>p.cleanRegex(Je.source)).join("|")})$`)}});const be=Ke.options.length===1,pt=Ke.options[0]._zod.run;we._zod.parse=(We,Je)=>{if(be)return pt(We,Je);let ye=!1;const Qe=[];for(const ze of Ke.options){const qe=ze._zod.run({value:We.value,issues:[]},Je);if(qe instanceof Promise)Qe.push(qe),ye=!0;else{if(qe.issues.length===0)return qe;Qe.push(qe)}}return ye?Promise.all(Qe).then(ze=>_e(ze,We,we,Je)):_e(Qe,We,we,Je)}}),Me=g.xI("$ZodDiscriminatedUnion",(we,Ke)=>{ge.init(we,Ke);const be=we._zod.parse;p.defineLazy(we._zod,"propValues",()=>{const We={};for(const Je of Ke.options){const ye=Je._zod.propValues;if(!ye||Object.keys(ye).length===0)throw new Error(`Invalid discriminated union option at index "${Ke.options.indexOf(Je)}"`);for(const[Qe,ze]of Object.entries(ye)){We[Qe]||(We[Qe]=new Set);for(const qe of ze)We[Qe].add(qe)}}return We});const pt=p.cached(()=>{const We=Ke.options,Je=new Map;for(const ye of We){const Qe=ye._zod.propValues?.[Ke.discriminator];if(!Qe||Qe.size===0)throw new Error(`Invalid discriminated union option at index "${Ke.options.indexOf(ye)}"`);for(const ze of Qe){if(Je.has(ze))throw new Error(`Duplicate discriminator value "${String(ze)}"`);Je.set(ze,ye)}}return Je});we._zod.parse=(We,Je)=>{const ye=We.value;if(!p.isObject(ye))return We.issues.push({code:"invalid_type",expected:"object",input:ye,inst:we}),We;const Qe=pt.value.get(ye?.[Ke.discriminator]);return Qe?Qe._zod.run(We,Je):Ke.unionFallback?be(We,Je):(We.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:Ke.discriminator,input:ye,path:[Ke.discriminator],inst:we}),We)}}),lt=g.xI("$ZodIntersection",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value,Je=Ke.left._zod.run({value:We,issues:[]},pt),ye=Ke.right._zod.run({value:We,issues:[]},pt);return Je instanceof Promise||ye instanceof Promise?Promise.all([Je,ye]).then(([ze,qe])=>Et(be,ze,qe)):Et(be,Je,ye)}});function Ft(we,Ke){if(we===Ke)return{valid:!0,data:we};if(we instanceof Date&&Ke instanceof Date&&+we==+Ke)return{valid:!0,data:we};if(p.isPlainObject(we)&&p.isPlainObject(Ke)){const be=Object.keys(Ke),pt=Object.keys(we).filter(Je=>be.indexOf(Je)!==-1),We={...we,...Ke};for(const Je of pt){const ye=Ft(we[Je],Ke[Je]);if(!ye.valid)return{valid:!1,mergeErrorPath:[Je,...ye.mergeErrorPath]};We[Je]=ye.data}return{valid:!0,data:We}}if(Array.isArray(we)&&Array.isArray(Ke)){if(we.length!==Ke.length)return{valid:!1,mergeErrorPath:[]};const be=[];for(let pt=0;pt<we.length;pt++){const We=we[pt],Je=Ke[pt],ye=Ft(We,Je);if(!ye.valid)return{valid:!1,mergeErrorPath:[pt,...ye.mergeErrorPath]};be.push(ye.data)}return{valid:!0,data:be}}return{valid:!1,mergeErrorPath:[]}}function Et(we,Ke,be){if(Ke.issues.length&&we.issues.push(...Ke.issues),be.issues.length&&we.issues.push(...be.issues),p.aborted(we))return we;const pt=Ft(Ke.value,be.value);if(!pt.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(pt.mergeErrorPath)}`);return we.value=pt.data,we}const Zt=g.xI("$ZodTuple",(we,Ke)=>{E.init(we,Ke);const be=Ke.items,pt=be.length-[...be].reverse().findIndex(We=>We._zod.optin!=="optional");we._zod.parse=(We,Je)=>{const ye=We.value;if(!Array.isArray(ye))return We.issues.push({input:ye,inst:we,expected:"tuple",code:"invalid_type"}),We;We.value=[];const Qe=[];if(!Ke.rest){const qe=ye.length>be.length,Pt=ye.length<pt-1;if(qe||Pt)return We.issues.push({...qe?{code:"too_big",maximum:be.length}:{code:"too_small",minimum:be.length},input:ye,inst:we,origin:"array"}),We}let ze=-1;for(const qe of be){if(ze++,ze>=ye.length&&ze>=pt)continue;const Pt=qe._zod.run({value:ye[ze],issues:[]},Je);Pt instanceof Promise?Qe.push(Pt.then(zt=>nn(zt,We,ze))):nn(Pt,We,ze)}if(Ke.rest){const qe=ye.slice(be.length);for(const Pt of qe){ze++;const zt=Ke.rest._zod.run({value:Pt,issues:[]},Je);zt instanceof Promise?Qe.push(zt.then(un=>nn(un,We,ze))):nn(zt,We,ze)}}return Qe.length?Promise.all(Qe).then(()=>We):We}});function nn(we,Ke,be){we.issues.length&&Ke.issues.push(...p.prefixIssues(be,we.issues)),Ke.value[be]=we.value}const Pn=g.xI("$ZodRecord",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value;if(!p.isPlainObject(We))return be.issues.push({expected:"record",code:"invalid_type",input:We,inst:we}),be;const Je=[];if(Ke.keyType._zod.values){const ye=Ke.keyType._zod.values;be.value={};for(const ze of ye)if(typeof ze=="string"||typeof ze=="number"||typeof ze=="symbol"){const qe=Ke.valueType._zod.run({value:We[ze],issues:[]},pt);qe instanceof Promise?Je.push(qe.then(Pt=>{Pt.issues.length&&be.issues.push(...p.prefixIssues(ze,Pt.issues)),be.value[ze]=Pt.value})):(qe.issues.length&&be.issues.push(...p.prefixIssues(ze,qe.issues)),be.value[ze]=qe.value)}let Qe;for(const ze in We)ye.has(ze)||(Qe=Qe??[],Qe.push(ze));Qe&&Qe.length>0&&be.issues.push({code:"unrecognized_keys",input:We,inst:we,keys:Qe})}else{be.value={};for(const ye of Reflect.ownKeys(We)){if(ye==="__proto__")continue;const Qe=Ke.keyType._zod.run({value:ye,issues:[]},pt);if(Qe instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(Qe.issues.length){be.issues.push({code:"invalid_key",origin:"record",issues:Qe.issues.map(qe=>p.finalizeIssue(qe,pt,g.$W())),input:ye,path:[ye],inst:we}),be.value[Qe.value]=Qe.value;continue}const ze=Ke.valueType._zod.run({value:We[ye],issues:[]},pt);ze instanceof Promise?Je.push(ze.then(qe=>{qe.issues.length&&be.issues.push(...p.prefixIssues(ye,qe.issues)),be.value[Qe.value]=qe.value})):(ze.issues.length&&be.issues.push(...p.prefixIssues(ye,ze.issues)),be.value[Qe.value]=ze.value)}}return Je.length?Promise.all(Je).then(()=>be):be}}),rn=g.xI("$ZodMap",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value;if(!(We instanceof Map))return be.issues.push({expected:"map",code:"invalid_type",input:We,inst:we}),be;const Je=[];be.value=new Map;for(const[ye,Qe]of We){const ze=Ke.keyType._zod.run({value:ye,issues:[]},pt),qe=Ke.valueType._zod.run({value:Qe,issues:[]},pt);ze instanceof Promise||qe instanceof Promise?Je.push(Promise.all([ze,qe]).then(([Pt,zt])=>{Vt(Pt,zt,be,ye,We,we,pt)})):Vt(ze,qe,be,ye,We,we,pt)}return Je.length?Promise.all(Je).then(()=>be):be}});function Vt(we,Ke,be,pt,We,Je,ye){we.issues.length&&(p.propertyKeyTypes.has(typeof pt)?be.issues.push(...p.prefixIssues(pt,we.issues)):be.issues.push({code:"invalid_key",origin:"map",input:We,inst:Je,issues:we.issues.map(Qe=>p.finalizeIssue(Qe,ye,g.$W()))})),Ke.issues.length&&(p.propertyKeyTypes.has(typeof pt)?be.issues.push(...p.prefixIssues(pt,Ke.issues)):be.issues.push({origin:"map",code:"invalid_element",input:We,inst:Je,key:pt,issues:Ke.issues.map(Qe=>p.finalizeIssue(Qe,ye,g.$W()))})),be.value.set(we.value,Ke.value)}const Kn=g.xI("$ZodSet",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value;if(!(We instanceof Set))return be.issues.push({input:We,inst:we,expected:"set",code:"invalid_type"}),be;const Je=[];be.value=new Set;for(const ye of We){const Qe=Ke.valueType._zod.run({value:ye,issues:[]},pt);Qe instanceof Promise?Je.push(Qe.then(ze=>ur(ze,be))):ur(Qe,be)}return Je.length?Promise.all(Je).then(()=>be):be}});function ur(we,Ke){we.issues.length&&Ke.issues.push(...we.issues),Ke.value.add(we.value)}const on=g.xI("$ZodEnum",(we,Ke)=>{E.init(we,Ke);const be=p.getEnumValues(Ke.entries),pt=new Set(be);we._zod.values=pt,we._zod.pattern=new RegExp(`^(${be.filter(We=>p.propertyKeyTypes.has(typeof We)).map(We=>typeof We=="string"?p.escapeRegex(We):We.toString()).join("|")})$`),we._zod.parse=(We,Je)=>{const ye=We.value;return pt.has(ye)||We.issues.push({code:"invalid_value",values:be,input:ye,inst:we}),We}}),tr=g.xI("$ZodLiteral",(we,Ke)=>{if(E.init(we,Ke),Ke.values.length===0)throw new Error("Cannot create literal schema with no valid values");we._zod.values=new Set(Ke.values),we._zod.pattern=new RegExp(`^(${Ke.values.map(be=>typeof be=="string"?p.escapeRegex(be):be?p.escapeRegex(be.toString()):String(be)).join("|")})$`),we._zod.parse=(be,pt)=>{const We=be.value;return we._zod.values.has(We)||be.issues.push({code:"invalid_value",values:Ke.values,input:We,inst:we}),be}}),Cn=g.xI("$ZodFile",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=be.value;return We instanceof File||be.issues.push({expected:"file",code:"invalid_type",input:We,inst:we}),be}}),Wn=g.xI("$ZodTransform",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=Ke.transform(be.value,be);if(pt.async)return(We instanceof Promise?We:Promise.resolve(We)).then(ye=>(be.value=ye,be));if(We instanceof Promise)throw new g.GT;return be.value=We,be}});function er(we,Ke){return we.issues.length&&Ke===void 0?{issues:[],value:void 0}:we}const Fn=g.xI("$ZodOptional",(we,Ke)=>{E.init(we,Ke),we._zod.optin="optional",we._zod.optout="optional",p.defineLazy(we._zod,"values",()=>Ke.innerType._zod.values?new Set([...Ke.innerType._zod.values,void 0]):void 0),p.defineLazy(we._zod,"pattern",()=>{const be=Ke.innerType._zod.pattern;return be?new RegExp(`^(${p.cleanRegex(be.source)})?$`):void 0}),we._zod.parse=(be,pt)=>{if(Ke.innerType._zod.optin==="optional"){const We=Ke.innerType._zod.run(be,pt);return We instanceof Promise?We.then(Je=>er(Je,be.value)):er(We,be.value)}return be.value===void 0?be:Ke.innerType._zod.run(be,pt)}}),en=g.xI("$ZodNullable",(we,Ke)=>{E.init(we,Ke),p.defineLazy(we._zod,"optin",()=>Ke.innerType._zod.optin),p.defineLazy(we._zod,"optout",()=>Ke.innerType._zod.optout),p.defineLazy(we._zod,"pattern",()=>{const be=Ke.innerType._zod.pattern;return be?new RegExp(`^(${p.cleanRegex(be.source)}|null)$`):void 0}),p.defineLazy(we._zod,"values",()=>Ke.innerType._zod.values?new Set([...Ke.innerType._zod.values,null]):void 0),we._zod.parse=(be,pt)=>be.value===null?be:Ke.innerType._zod.run(be,pt)}),gn=g.xI("$ZodDefault",(we,Ke)=>{E.init(we,Ke),we._zod.optin="optional",p.defineLazy(we._zod,"values",()=>Ke.innerType._zod.values),we._zod.parse=(be,pt)=>{if(be.value===void 0)return be.value=Ke.defaultValue,be;const We=Ke.innerType._zod.run(be,pt);return We instanceof Promise?We.then(Je=>kn(Je,Ke)):kn(We,Ke)}});function kn(we,Ke){return we.value===void 0&&(we.value=Ke.defaultValue),we}const Jn=g.xI("$ZodPrefault",(we,Ke)=>{E.init(we,Ke),we._zod.optin="optional",p.defineLazy(we._zod,"values",()=>Ke.innerType._zod.values),we._zod.parse=(be,pt)=>(be.value===void 0&&(be.value=Ke.defaultValue),Ke.innerType._zod.run(be,pt))}),Nn=g.xI("$ZodNonOptional",(we,Ke)=>{E.init(we,Ke),p.defineLazy(we._zod,"values",()=>{const be=Ke.innerType._zod.values;return be?new Set([...be].filter(pt=>pt!==void 0)):void 0}),we._zod.parse=(be,pt)=>{const We=Ke.innerType._zod.run(be,pt);return We instanceof Promise?We.then(Je=>kr(Je,we)):kr(We,we)}});function kr(we,Ke){return!we.issues.length&&we.value===void 0&&we.issues.push({code:"invalid_type",expected:"nonoptional",input:we.value,inst:Ke}),we}const bt=g.xI("$ZodSuccess",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>{const We=Ke.innerType._zod.run(be,pt);return We instanceof Promise?We.then(Je=>(be.value=Je.issues.length===0,be)):(be.value=We.issues.length===0,be)}}),ne=g.xI("$ZodCatch",(we,Ke)=>{E.init(we,Ke),p.defineLazy(we._zod,"optin",()=>Ke.innerType._zod.optin),p.defineLazy(we._zod,"optout",()=>Ke.innerType._zod.optout),p.defineLazy(we._zod,"values",()=>Ke.innerType._zod.values),we._zod.parse=(be,pt)=>{const We=Ke.innerType._zod.run(be,pt);return We instanceof Promise?We.then(Je=>(be.value=Je.value,Je.issues.length&&(be.value=Ke.catchValue({...be,error:{issues:Je.issues.map(ye=>p.finalizeIssue(ye,pt,g.$W()))},input:be.value}),be.issues=[]),be)):(be.value=We.value,We.issues.length&&(be.value=Ke.catchValue({...be,error:{issues:We.issues.map(Je=>p.finalizeIssue(Je,pt,g.$W()))},input:be.value}),be.issues=[]),be)}}),fe=g.xI("$ZodNaN",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>((typeof be.value!="number"||!Number.isNaN(be.value))&&be.issues.push({input:be.value,inst:we,expected:"nan",code:"invalid_type"}),be)}),K=g.xI("$ZodPipe",(we,Ke)=>{E.init(we,Ke),p.defineLazy(we._zod,"values",()=>Ke.in._zod.values),p.defineLazy(we._zod,"optin",()=>Ke.in._zod.optin),p.defineLazy(we._zod,"optout",()=>Ke.out._zod.optout),p.defineLazy(we._zod,"propValues",()=>Ke.in._zod.propValues),we._zod.parse=(be,pt)=>{const We=Ke.in._zod.run(be,pt);return We instanceof Promise?We.then(Je=>he(Je,Ke,pt)):he(We,Ke,pt)}});function he(we,Ke,be){return we.issues.length?we:Ke.out._zod.run({value:we.value,issues:we.issues},be)}const Fe=g.xI("$ZodReadonly",(we,Ke)=>{E.init(we,Ke),p.defineLazy(we._zod,"propValues",()=>Ke.innerType._zod.propValues),p.defineLazy(we._zod,"values",()=>Ke.innerType._zod.values),p.defineLazy(we._zod,"optin",()=>Ke.innerType._zod.optin),p.defineLazy(we._zod,"optout",()=>Ke.innerType._zod.optout),we._zod.parse=(be,pt)=>{const We=Ke.innerType._zod.run(be,pt);return We instanceof Promise?We.then(Nt):Nt(We)}});function Nt(we){return we.value=Object.freeze(we.value),we}const ln=g.xI("$ZodTemplateLiteral",(we,Ke)=>{E.init(we,Ke);const be=[];for(const pt of Ke.parts)if(pt instanceof E){if(!pt._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...pt._zod.traits].shift()}`);const We=pt._zod.pattern instanceof RegExp?pt._zod.pattern.source:pt._zod.pattern;if(!We)throw new Error(`Invalid template literal part: ${pt._zod.traits}`);const Je=We.startsWith("^")?1:0,ye=We.endsWith("$")?We.length-1:We.length;be.push(We.slice(Je,ye))}else if(pt===null||p.primitiveTypes.has(typeof pt))be.push(p.escapeRegex(`${pt}`));else throw new Error(`Invalid template literal part: ${pt}`);we._zod.pattern=new RegExp(`^${be.join("")}$`),we._zod.parse=(pt,We)=>typeof pt.value!="string"?(pt.issues.push({input:pt.value,inst:we,expected:"template_literal",code:"invalid_type"}),pt):(we._zod.pattern.lastIndex=0,we._zod.pattern.test(pt.value)||pt.issues.push({input:pt.value,inst:we,code:"invalid_format",format:Ke.format??"template_literal",pattern:we._zod.pattern.source}),pt)}),pn=g.xI("$ZodPromise",(we,Ke)=>{E.init(we,Ke),we._zod.parse=(be,pt)=>Promise.resolve(be.value).then(We=>Ke.innerType._zod.run({value:We,issues:[]},pt))}),Yn=g.xI("$ZodLazy",(we,Ke)=>{E.init(we,Ke),p.defineLazy(we._zod,"innerType",()=>Ke.getter()),p.defineLazy(we._zod,"pattern",()=>we._zod.innerType._zod.pattern),p.defineLazy(we._zod,"propValues",()=>we._zod.innerType._zod.propValues),p.defineLazy(we._zod,"optin",()=>we._zod.innerType._zod.optin??void 0),p.defineLazy(we._zod,"optout",()=>we._zod.innerType._zod.optout??void 0),we._zod.parse=(be,pt)=>we._zod.innerType._zod.run(be,pt)}),ht=g.xI("$ZodCustom",(we,Ke)=>{l.QP.init(we,Ke),E.init(we,Ke),we._zod.parse=(be,pt)=>be,we._zod.check=be=>{const pt=be.value,We=Ke.fn(pt);if(We instanceof Promise)return We.then(Je=>De(Je,be,pt,we));De(We,be,pt,we)}});function De(we,Ke,be,pt){if(!we){const We={code:"custom",input:be,inst:pt,path:[...pt._zod.def.path??[]],continue:!pt._zod.def.abort};pt._zod.def.params&&(We.params=pt._zod.def.params),Ke.issues.push(p.issue(We))}}},70713:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>S});var l=u(96540);let g;typeof window<"u"?g=window:typeof self<"u"?g=self:g=u.g;let y=null,x=null;const f=20,p=g.clearTimeout,h=g.setTimeout,E=g.cancelAnimationFrame||g.mozCancelAnimationFrame||g.webkitCancelAnimationFrame,v=g.requestAnimationFrame||g.mozRequestAnimationFrame||g.webkitRequestAnimationFrame;E==null||v==null?(y=p,x=function(L){return h(L,f)}):(y=function([L,j]){E(L),p(j)},x=function(L){const j=v(function(){p(I),L()}),I=h(function(){E(j),L()},f);return[j,I]});function m(C){let L,j,I,U,$,ee,re;const Se=typeof document<"u"&&document.attachEvent;if(!Se){ee=function(B){const X=B.__resizeTriggers__,ue=X.firstElementChild,ie=X.lastElementChild,Te=ue.firstElementChild;ie.scrollLeft=ie.scrollWidth,ie.scrollTop=ie.scrollHeight,Te.style.width=ue.offsetWidth+1+"px",Te.style.height=ue.offsetHeight+1+"px",ue.scrollLeft=ue.scrollWidth,ue.scrollTop=ue.scrollHeight},$=function(B){return B.offsetWidth!==B.__resizeLast__.width||B.offsetHeight!==B.__resizeLast__.height},re=function(B){if(B.target.className&&typeof B.target.className.indexOf=="function"&&B.target.className.indexOf("contract-trigger")<0&&B.target.className.indexOf("expand-trigger")<0)return;const X=this;ee(this),this.__resizeRAF__&&y(this.__resizeRAF__),this.__resizeRAF__=x(function(){$(X)&&(X.__resizeLast__.width=X.offsetWidth,X.__resizeLast__.height=X.offsetHeight,X.__resizeListeners__.forEach(function(Te){Te.call(X,B)}))})};let se=!1,q="";I="animationstart";const te="Webkit Moz O ms".split(" ");let A="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),T="";{const B=document.createElement("fakeelement");if(B.style.animationName!==void 0&&(se=!0),se===!1){for(let X=0;X<te.length;X++)if(B.style[te[X]+"AnimationName"]!==void 0){T=te[X],q="-"+T.toLowerCase()+"-",I=A[X],se=!0;break}}}j="resizeanim",L="@"+q+"keyframes "+j+" { from { opacity: 0; } to { opacity: 0; } } ",U=q+"animation: 1ms "+j+"; "}const z=function(se){if(!se.getElementById("detectElementResize")){const q=(L||"")+".resize-triggers { "+(U||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',te=se.head||se.getElementsByTagName("head")[0],A=se.createElement("style");A.id="detectElementResize",A.type="text/css",C!=null&&A.setAttribute("nonce",C),A.styleSheet?A.styleSheet.cssText=q:A.appendChild(se.createTextNode(q)),te.appendChild(A)}};return{addResizeListener:function(se,q){if(Se)se.attachEvent("onresize",q);else{if(!se.__resizeTriggers__){const te=se.ownerDocument,A=g.getComputedStyle(se);A&&A.position==="static"&&(se.style.position="relative"),z(te),se.__resizeLast__={},se.__resizeListeners__=[],(se.__resizeTriggers__=te.createElement("div")).className="resize-triggers";const T=te.createElement("div");T.className="expand-trigger",T.appendChild(te.createElement("div"));const B=te.createElement("div");B.className="contract-trigger",se.__resizeTriggers__.appendChild(T),se.__resizeTriggers__.appendChild(B),se.appendChild(se.__resizeTriggers__),ee(se),se.addEventListener("scroll",re,!0),I&&(se.__resizeTriggers__.__animationListener__=function(ue){ue.animationName===j&&ee(se)},se.__resizeTriggers__.addEventListener(I,se.__resizeTriggers__.__animationListener__))}se.__resizeListeners__.push(q)}},removeResizeListener:function(se,q){if(Se)se.detachEvent("onresize",q);else if(se.__resizeListeners__.splice(se.__resizeListeners__.indexOf(q),1),!se.__resizeListeners__.length){se.removeEventListener("scroll",re,!0),se.__resizeTriggers__.__animationListener__&&(se.__resizeTriggers__.removeEventListener(I,se.__resizeTriggers__.__animationListener__),se.__resizeTriggers__.__animationListener__=null);try{se.__resizeTriggers__=!se.removeChild(se.__resizeTriggers__)}catch{}}}}}class S extends l.Component{constructor(...L){super(...L),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:j,disableWidth:I,onResize:U}=this.props;if(this._parentNode){const $=window.getComputedStyle(this._parentNode)||{},ee=parseFloat($.paddingLeft||"0"),re=parseFloat($.paddingRight||"0"),Se=parseFloat($.paddingTop||"0"),z=parseFloat($.paddingBottom||"0"),Q=this._parentNode.getBoundingClientRect(),ce=Q.height-Se-z,se=Q.width-ee-re;if(!j&&this.state.height!==ce||!I&&this.state.width!==se){this.setState({height:ce,width:se});const q=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof U=="function"&&U({height:ce,width:se,get scaledHeight(){return q(),ce},get scaledWidth(){return q(),se}})}}},this._setRef=j=>{this._autoSizer=j}}componentDidMount(){const{nonce:L}=this.props,j=this._autoSizer?this._autoSizer.parentNode:null;if(j!=null&&j.ownerDocument&&j.ownerDocument.defaultView&&j instanceof j.ownerDocument.defaultView.HTMLElement){this._parentNode=j;const I=j.ownerDocument.defaultView.ResizeObserver;I!=null?(this._resizeObserver=new I(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(j)):(this._detectElementResize=m(L),this._detectElementResize.addResizeListener(j,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:L,defaultHeight:j,defaultWidth:I,disableHeight:U=!1,disableWidth:$=!1,doNotBailOutOnEmptyChildren:ee=!1,nonce:re,onResize:Se,style:z={},tagName:Q="div",...ce}=this.props,{height:se,width:q}=this.state,te={overflow:"visible"},A={};let T=!1;return U||(se===0&&(T=!0),te.height=0,A.height=se,A.scaledHeight=se),$||(q===0&&(T=!0),te.width=0,A.width=q,A.scaledWidth=q),ee&&(T=!1),(0,l.createElement)(Q,{ref:this._setRef,style:{...te,...z},...ce},!T&&L(A))}}function d(C){return C&&C.disableHeight!==!0&&C.disableWidth!==!0}function O(C){return C&&C.disableHeight!==!0&&C.disableWidth===!0}function R(C){return C&&C.disableHeight===!0&&C.disableWidth!==!0}},70788:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{isAnyArray:()=>g});const l=Object.prototype.toString;function g(y){const x=l.call(y);return x.endsWith("Array]")&&!x.includes("Big")}},70915:(Ge,w,u)=>{"use strict";u.d(w,{$C:()=>ee,$u:()=>Mt,Af:()=>Wt,Bg:()=>X,HY:()=>Rt,Im:()=>Dn,Ld:()=>p,Li:()=>$t,Mx:()=>Tn,N:()=>d,NW:()=>bn,Oq:()=>ie,Py:()=>Ze,QJ:()=>Ct,R:()=>q,R8:()=>Se,RG:()=>it,Rj:()=>v,S5:()=>S,Tr:()=>g,UG:()=>se,Vy:()=>L,WU:()=>Ne,X$:()=>$,Ym:()=>h,Yw:()=>ue,_N:()=>je,aI:()=>I,aZ:()=>O,dP:()=>R,k_:()=>te,ms:()=>E,o8:()=>f,q1:()=>A,qF:()=>T,r:()=>x,sB:()=>ce,vz:()=>m});var l=u(11580);function g(Z){const me=S();for(let ke=0,Ee=Z.length;ke<Ee;++ke)ee(me,Z[ke]);return me}function y(Z,me,ke){const Ee=Math.min.apply(null,Z),_e=Math.min.apply(null,me),ge=Math.max.apply(null,Z),Me=Math.max.apply(null,me);return d(Ee,_e,ge,Me,ke)}function x(Z,me,ke){return ke?(ke[0]=Z[0]-me,ke[1]=Z[1]-me,ke[2]=Z[2]+me,ke[3]=Z[3]+me,ke):[Z[0]-me,Z[1]-me,Z[2]+me,Z[3]+me]}function f(Z,me){return me?(me[0]=Z[0],me[1]=Z[1],me[2]=Z[2],me[3]=Z[3],me):Z.slice()}function p(Z,me,ke){let Ee,_e;return me<Z[0]?Ee=Z[0]-me:Z[2]<me?Ee=me-Z[2]:Ee=0,ke<Z[1]?_e=Z[1]-ke:Z[3]<ke?_e=ke-Z[3]:_e=0,Ee*Ee+_e*_e}function h(Z,me){return v(Z,me[0],me[1])}function E(Z,me){return Z[0]<=me[0]&&me[2]<=Z[2]&&Z[1]<=me[1]&&me[3]<=Z[3]}function v(Z,me,ke){return Z[0]<=me&&me<=Z[2]&&Z[1]<=ke&&ke<=Z[3]}function m(Z,me){const ke=Z[0],Ee=Z[1],_e=Z[2],ge=Z[3],Me=me[0],lt=me[1];let Ft=l.A.UNKNOWN;return Me<ke?Ft=Ft|l.A.LEFT:Me>_e&&(Ft=Ft|l.A.RIGHT),lt<Ee?Ft=Ft|l.A.BELOW:lt>ge&&(Ft=Ft|l.A.ABOVE),Ft===l.A.UNKNOWN&&(Ft=l.A.INTERSECTING),Ft}function S(){return[1/0,1/0,-1/0,-1/0]}function d(Z,me,ke,Ee,_e){return _e?(_e[0]=Z,_e[1]=me,_e[2]=ke,_e[3]=Ee,_e):[Z,me,ke,Ee]}function O(Z){return d(1/0,1/0,-1/0,-1/0,Z)}function R(Z,me){const ke=Z[0],Ee=Z[1];return d(ke,Ee,ke,Ee,me)}function C(Z,me){const ke=O(me);return re(ke,Z)}function L(Z,me,ke,Ee,_e){const ge=O(_e);return Se(ge,Z,me,ke,Ee)}function j(Z,me){const ke=O(me);return z(ke,Z)}function I(Z,me){return Z[0]==me[0]&&Z[2]==me[2]&&Z[1]==me[1]&&Z[3]==me[3]}function U(Z,me,ke){return Math.abs(Z[0]-me[0])<ke&&Math.abs(Z[2]-me[2])<ke&&Math.abs(Z[1]-me[1])<ke&&Math.abs(Z[3]-me[3])<ke}function $(Z,me){return me[0]<Z[0]&&(Z[0]=me[0]),me[2]>Z[2]&&(Z[2]=me[2]),me[1]<Z[1]&&(Z[1]=me[1]),me[3]>Z[3]&&(Z[3]=me[3]),Z}function ee(Z,me){me[0]<Z[0]&&(Z[0]=me[0]),me[0]>Z[2]&&(Z[2]=me[0]),me[1]<Z[1]&&(Z[1]=me[1]),me[1]>Z[3]&&(Z[3]=me[1])}function re(Z,me){for(let ke=0,Ee=me.length;ke<Ee;++ke)ee(Z,me[ke]);return Z}function Se(Z,me,ke,Ee,_e){for(;ke<Ee;ke+=_e)Q(Z,me[ke],me[ke+1]);return Z}function z(Z,me){for(let ke=0,Ee=me.length;ke<Ee;++ke)re(Z,me[ke]);return Z}function Q(Z,me,ke){Z[0]=Math.min(Z[0],me),Z[1]=Math.min(Z[1],ke),Z[2]=Math.max(Z[2],me),Z[3]=Math.max(Z[3],ke)}function ce(Z,me){let ke;return ke=me(q(Z)),ke||(ke=me(te(Z)),ke)||(ke=me(Ne(Z)),ke)||(ke=me(Ze(Z)),ke)?ke:!1}function se(Z){let me=0;return Dn(Z)||(me=it(Z)*ie(Z)),me}function q(Z){return[Z[0],Z[1]]}function te(Z){return[Z[2],Z[1]]}function A(Z){return[(Z[0]+Z[2])/2,(Z[1]+Z[3])/2]}function T(Z,me){let ke;if(me==="bottom-left")ke=q(Z);else if(me==="bottom-right")ke=te(Z);else if(me==="top-left")ke=Ze(Z);else if(me==="top-right")ke=Ne(Z);else throw new Error("Invalid corner");return ke}function B(Z,me){const ke=Math.min(Z[0],me[0]),Ee=Math.min(Z[1],me[1]),_e=Math.max(Z[2],me[2]),ge=Math.max(Z[3],me[3]);return(_e-ke)*(ge-Ee)}function X(Z,me,ke,Ee,_e){const[ge,Me,lt,Ft,Et,Zt,nn,Pn]=ue(Z,me,ke,Ee);return d(Math.min(ge,lt,Et,nn),Math.min(Me,Ft,Zt,Pn),Math.max(ge,lt,Et,nn),Math.max(Me,Ft,Zt,Pn),_e)}function ue(Z,me,ke,Ee){const _e=me*Ee[0]/2,ge=me*Ee[1]/2,Me=Math.cos(ke),lt=Math.sin(ke),Ft=_e*Me,Et=_e*lt,Zt=ge*Me,nn=ge*lt,Pn=Z[0],rn=Z[1];return[Pn-Ft+nn,rn-Et-Zt,Pn-Ft-nn,rn-Et+Zt,Pn+Ft-nn,rn+Et+Zt,Pn+Ft+nn,rn+Et-Zt,Pn-Ft+nn,rn-Et-Zt]}function ie(Z){return Z[3]-Z[1]}function Te(Z,me){const ke=je(Z,me);return se(ke)}function je(Z,me,ke){const Ee=ke||S();return Rt(Z,me)?(Z[0]>me[0]?Ee[0]=Z[0]:Ee[0]=me[0],Z[1]>me[1]?Ee[1]=Z[1]:Ee[1]=me[1],Z[2]<me[2]?Ee[2]=Z[2]:Ee[2]=me[2],Z[3]<me[3]?Ee[3]=Z[3]:Ee[3]=me[3]):O(Ee),Ee}function yt(Z){return it(Z)+ie(Z)}function tt(Z){return[Z[2]-Z[0],Z[3]-Z[1]]}function Ze(Z){return[Z[0],Z[3]]}function Ne(Z){return[Z[2],Z[3]]}function it(Z){return Z[2]-Z[0]}function Rt(Z,me){return Z[0]<=me[2]&&Z[2]>=me[0]&&Z[1]<=me[3]&&Z[3]>=me[1]}function Dn(Z){return Z[2]<Z[0]||Z[3]<Z[1]}function Mt(Z,me){return me?(me[0]=Z[0],me[1]=Z[1],me[2]=Z[2],me[3]=Z[3],me):Z}function Wt(Z,me){const ke=(Z[2]-Z[0])/2*(me-1),Ee=(Z[3]-Z[1])/2*(me-1);Z[0]-=ke,Z[2]+=ke,Z[1]-=Ee,Z[3]+=Ee}function Tn(Z,me,ke){let Ee=!1;const _e=m(Z,me),ge=m(Z,ke);if(_e===l.A.INTERSECTING||ge===l.A.INTERSECTING)Ee=!0;else{const Me=Z[0],lt=Z[1],Ft=Z[2],Et=Z[3],Zt=me[0],nn=me[1],Pn=ke[0],rn=ke[1],Vt=(rn-nn)/(Pn-Zt);let Kn,ur;ge&l.A.ABOVE&&!(_e&l.A.ABOVE)&&(Kn=Pn-(rn-Et)/Vt,Ee=Kn>=Me&&Kn<=Ft),!Ee&&ge&l.A.RIGHT&&!(_e&l.A.RIGHT)&&(ur=rn-(Pn-Ft)*Vt,Ee=ur>=lt&&ur<=Et),!Ee&&ge&l.A.BELOW&&!(_e&l.A.BELOW)&&(Kn=Pn-(rn-lt)/Vt,Ee=Kn>=Me&&Kn<=Ft),!Ee&&ge&l.A.LEFT&&!(_e&l.A.LEFT)&&(ur=rn-(Pn-Me)*Vt,Ee=ur>=lt&&ur<=Et)}return Ee}function bn(Z,me,ke,Ee){if(Dn(Z))return O(ke);let _e=[];if(Ee>1){const lt=Z[2]-Z[0],Ft=Z[3]-Z[1];for(let Et=0;Et<Ee;++Et)_e.push(Z[0]+lt*Et/Ee,Z[1],Z[2],Z[1]+Ft*Et/Ee,Z[2]-lt*Et/Ee,Z[3],Z[0],Z[3]-Ft*Et/Ee)}else _e=[Z[0],Z[1],Z[2],Z[1],Z[2],Z[3],Z[0],Z[3]];me(_e,_e,2);const ge=[],Me=[];for(let lt=0,Ft=_e.length;lt<Ft;lt+=2)ge.push(_e[lt]),Me.push(_e[lt+1]);return y(ge,Me,ke)}function $t(Z,me){const ke=me.getExtent(),Ee=A(Z);if(me.canWrapX()&&(Ee[0]<ke[0]||Ee[0]>=ke[2])){const _e=it(ke),Me=Math.floor((Ee[0]-ke[0])/_e)*_e;Z[0]-=Me,Z[2]-=Me}return Z}function Ct(Z,me,ke){if(me.canWrapX()){const Ee=me.getExtent();if(!isFinite(Z[0])||!isFinite(Z[2]))return[[Ee[0],Z[1],Ee[2],Z[3]]];$t(Z,me);const _e=it(Ee);if(it(Z)>_e&&!ke)return[[Ee[0],Z[1],Ee[2],Z[3]]];if(Z[0]<Ee[0])return[[Z[0]+_e,Z[1],Ee[2],Z[3]],[Ee[0],Z[1],Z[2],Z[3]]];if(Z[2]>Ee[2])return[[Z[0],Z[1],Ee[2],Z[3]],[Ee[0],Z[1],Z[2]-_e,Z[3]]]}return[Z]}},71030:(Ge,w,u)=>{"use strict";u.d(w,{T:()=>y});var l=u(97843),g=u(92908);function y(x,f){return(0,g.N)((0,l.S)(x,f,arguments.length>=2,!1,!0))}},71060:(Ge,w,u)=>{"use strict";u.d(w,{k:()=>g});const l=[];for(let f=0;f<256;++f)l.push((f+256).toString(16).slice(1));function g(f,p=0){return(l[f[p+0]]+l[f[p+1]]+l[f[p+2]]+l[f[p+3]]+"-"+l[f[p+4]]+l[f[p+5]]+"-"+l[f[p+6]]+l[f[p+7]]+"-"+l[f[p+8]]+l[f[p+9]]+"-"+l[f[p+10]]+l[f[p+11]]+l[f[p+12]]+l[f[p+13]]+l[f[p+14]]+l[f[p+15]]).toLowerCase()}function y(f,p=0){const h=g(f,p);if(!validate(h))throw TypeError("Stringified UUID is invalid");return h}var x=null},71064:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>I,nD:()=>ee,VY:()=>$});var l=u(66514),g=u(70915),y=u(61597),x=u(62096),f=u(28609),p=u(63953),h=u(92497),E=u(56361),v=u(83671);class m extends x.Ay{constructor(z,Q){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,Q!==void 0&&!Array.isArray(z[0])?this.setFlatCoordinates(Q,z):this.setCoordinates(z,Q)}clone(){return new m(this.flatCoordinates.slice(),this.layout)}closestPointXY(z,Q,ce,se){return se<(0,g.Ld)(this.getExtent(),z,Q)?se:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,p.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,p.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,z,Q,ce,se))}getArea(){return(0,f.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,E.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(z){const Q=[];return Q.length=(0,v.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,z,Q,0),new m(Q,"XY")}getType(){return"LinearRing"}intersectsExtent(z){return!1}setCoordinates(z,Q){this.setLayout(Q,z,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,h.z2)(this.flatCoordinates,0,z,this.stride),this.changed()}}const S=m;var d=u(44294),O=u(52845),R=u(22616),C=u(4350),L=u(83402);class j extends x.Ay{constructor(z,Q,ce){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,Q!==void 0&&ce?(this.setFlatCoordinates(Q,z),this.ends_=ce):this.setCoordinates(z,Q)}appendLinearRing(z){this.flatCoordinates?(0,l.X$)(this.flatCoordinates,z.getFlatCoordinates()):this.flatCoordinates=z.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const z=new j(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return z.applyProperties(this),z}closestPointXY(z,Q,ce,se){return se<(0,g.Ld)(this.getExtent(),z,Q)?se:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,p.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,p.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,z,Q,ce,se))}containsXY(z,Q){return(0,O.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,z,Q)}getArea(){return(0,f.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(z){let Q;return z!==void 0?(Q=this.getOrientedFlatCoordinates().slice(),(0,L.ug)(Q,0,this.ends_,this.stride,z)):Q=this.flatCoordinates,(0,E.cD)(Q,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const z=(0,g.q1)(this.getExtent());this.flatInteriorPoint_=(0,R.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,z,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(z){return z<0||this.ends_.length<=z?null:new S(this.flatCoordinates.slice(z===0?0:this.ends_[z-1],this.ends_[z]),this.layout)}getLinearRings(){const z=this.layout,Q=this.flatCoordinates,ce=this.ends_,se=[];let q=0;for(let te=0,A=ce.length;te<A;++te){const T=ce[te],B=new S(Q.slice(q,T),z);se.push(B),q=T}return se}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const z=this.flatCoordinates;(0,L.PA)(z,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=z:(this.orientedFlatCoordinates_=z.slice(),this.orientedFlatCoordinates_.length=(0,L.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(z){const Q=[],ce=[];return Q.length=(0,v.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(z),Q,0,ce),new j(Q,"XY",ce)}getType(){return"Polygon"}intersectsExtent(z){return(0,C.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,z)}setCoordinates(z,Q){this.setLayout(Q,z,2),this.flatCoordinates||(this.flatCoordinates=[]);const ce=(0,h.KG)(this.flatCoordinates,0,z,this.stride,this.ends_);this.flatCoordinates.length=ce.length===0?0:ce[ce.length-1],this.changed()}}const I=j;function U(Se,z,Q,ce){Q=Q||32;const se=[];for(let q=0;q<Q;++q)extend(se,sphereOffset(Se,z,2*Math.PI*q/Q,ce));return se.push(se[0],se[1]),new j(se,"XY",[se.length])}function $(Se){if((0,g.Im)(Se))throw new Error("Cannot create polygon from empty extent");const z=Se[0],Q=Se[1],ce=Se[2],se=Se[3],q=[z,Q,z,se,ce,se,ce,Q,z,Q];return new j(q,"XY",[q.length])}function ee(Se,z,Q){z=z||32;const ce=Se.getStride(),se=Se.getLayout(),q=Se.getCenter(),te=ce*(z+1),A=new Array(te);for(let X=0;X<te;X+=ce){A[X]=0,A[X+1]=0;for(let ue=2;ue<ce;ue++)A[X+ue]=q[ue]}const T=[A.length],B=new j(A,se,T);return re(B,q,Se.getRadius(),Q),B}function re(Se,z,Q,ce){const se=Se.getFlatCoordinates(),q=Se.getStride(),te=se.length/q-1,A=ce||0;for(let T=0;T<=te;++T){const B=T*q,X=A+(0,y.xP)(T,te)*2*Math.PI/te;se[B]=z[0]+Q*Math.cos(X),se[B+1]=z[1]+Q*Math.sin(X)}Se.changed()}},71086:(Ge,w,u)=>{var l=u(34932),g=u(15389),y=u(97420),x=u(83349);function f(p,h){if(p==null)return{};var E=l(x(p),function(v){return[v]});return h=g(h),y(p,E,function(v,m){return h(v,m[0])})}Ge.exports=f},71089:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.addClassName=re,w.addEvent=h,w.addUserSelectStyles=U,w.createCSSTransform=R,w.createSVGTransform=C,w.getTouch=j,w.getTouchIdentifier=I,w.getTranslation=L,w.innerHeight=S,w.innerWidth=d,w.matchesSelector=f,w.matchesSelectorAndParentsTo=p,w.offsetXYFromParent=O,w.outerHeight=v,w.outerWidth=m,w.removeClassName=Se,w.removeEvent=E,w.scheduleRemoveUserSelectStyles=$;var l=u(77056),g=y(u(33514));function y(z,Q){if(typeof WeakMap=="function")var ce=new WeakMap,se=new WeakMap;return(y=function(q,te){if(!te&&q&&q.__esModule)return q;var A,T,B={__proto__:null,default:q};if(q===null||typeof q!="object"&&typeof q!="function")return B;if(A=te?se:ce){if(A.has(q))return A.get(q);A.set(q,B)}for(const X in q)X!=="default"&&{}.hasOwnProperty.call(q,X)&&((T=(A=Object.defineProperty)&&Object.getOwnPropertyDescriptor(q,X))&&(T.get||T.set)?A(B,X,T):B[X]=q[X]);return B})(z,Q)}let x="";function f(z,Q){return x||(x=(0,l.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ce){return(0,l.isFunction)(z[ce])})),(0,l.isFunction)(z[x])?z[x](Q):!1}function p(z,Q,ce){let se=z;do{if(f(se,Q))return!0;if(se===ce)return!1;se=se.parentNode}while(se);return!1}function h(z,Q,ce,se){if(!z)return;const q={capture:!0,...se};z.addEventListener?z.addEventListener(Q,ce,q):z.attachEvent?z.attachEvent("on"+Q,ce):z["on"+Q]=ce}function E(z,Q,ce,se){if(!z)return;const q={capture:!0,...se};z.removeEventListener?z.removeEventListener(Q,ce,q):z.detachEvent?z.detachEvent("on"+Q,ce):z["on"+Q]=null}function v(z){let Q=z.clientHeight;const ce=z.ownerDocument.defaultView.getComputedStyle(z);return Q+=(0,l.int)(ce.borderTopWidth),Q+=(0,l.int)(ce.borderBottomWidth),Q}function m(z){let Q=z.clientWidth;const ce=z.ownerDocument.defaultView.getComputedStyle(z);return Q+=(0,l.int)(ce.borderLeftWidth),Q+=(0,l.int)(ce.borderRightWidth),Q}function S(z){let Q=z.clientHeight;const ce=z.ownerDocument.defaultView.getComputedStyle(z);return Q-=(0,l.int)(ce.paddingTop),Q-=(0,l.int)(ce.paddingBottom),Q}function d(z){let Q=z.clientWidth;const ce=z.ownerDocument.defaultView.getComputedStyle(z);return Q-=(0,l.int)(ce.paddingLeft),Q-=(0,l.int)(ce.paddingRight),Q}function O(z,Q,ce){const q=Q===Q.ownerDocument.body?{left:0,top:0}:Q.getBoundingClientRect(),te=(z.clientX+Q.scrollLeft-q.left)/ce,A=(z.clientY+Q.scrollTop-q.top)/ce;return{x:te,y:A}}function R(z,Q){const ce=L(z,Q,"px");return{[(0,g.browserPrefixToKey)("transform",g.default)]:ce}}function C(z,Q){return L(z,Q,"")}function L(z,Q,ce){let{x:se,y:q}=z,te=`translate(${se}${ce},${q}${ce})`;if(Q){const A=`${typeof Q.x=="string"?Q.x:Q.x+ce}`,T=`${typeof Q.y=="string"?Q.y:Q.y+ce}`;te=`translate(${A}, ${T})`+te}return te}function j(z,Q){return z.targetTouches&&(0,l.findInArray)(z.targetTouches,ce=>Q===ce.identifier)||z.changedTouches&&(0,l.findInArray)(z.changedTouches,ce=>Q===ce.identifier)}function I(z){if(z.targetTouches&&z.targetTouches[0])return z.targetTouches[0].identifier;if(z.changedTouches&&z.changedTouches[0])return z.changedTouches[0].identifier}function U(z){if(!z)return;let Q=z.getElementById("react-draggable-style-el");Q||(Q=z.createElement("style"),Q.type="text/css",Q.id="react-draggable-style-el",Q.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,Q.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,z.getElementsByTagName("head")[0].appendChild(Q)),z.body&&re(z.body,"react-draggable-transparent-selection")}function $(z){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ee(z)}):ee(z)}function ee(z){if(z)try{if(z.body&&Se(z.body,"react-draggable-transparent-selection"),z.selection)z.selection.empty();else{const Q=(z.defaultView||window).getSelection();Q&&Q.type!=="Caret"&&Q.removeAllRanges()}}catch{}}function re(z,Q){z.classList?z.classList.add(Q):z.className.match(new RegExp(`(?:^|\\s)${Q}(?!\\S)`))||(z.className+=` ${Q}`)}function Se(z,Q){z.classList?z.classList.remove(Q):z.className=z.className.replace(new RegExp(`(?:^|\\s)${Q}(?!\\S)`,"g"),"")}},71220:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.history=w.HistoryItemImpl=void 0;var l=u(65178),g=function(){function f(p){this.perform=p.perform,this.negate=p.negate}return f.create=function(p){return new f(p)},f}();w.HistoryItemImpl=g;var y=function(){function f(){return this.undoStack=[],this.redoStack=[],f.instance||(f.instance=this,this.init()),f.instance}return f.prototype.init=function(){var p=this;typeof window>"u"||window.addEventListener("keydown",function(h){var E;if(!(!p.redoStack.length&&!p.undoStack.length||(0,l.shouldRejectKeystrokes)())){var v=(E=h.key)===null||E===void 0?void 0:E.toLowerCase();h.metaKey&&v==="z"&&h.shiftKey?p.redo():h.metaKey&&v==="z"&&p.undo()}})},f.prototype.add=function(p){var h=g.create(p);return this.undoStack.push(h),h},f.prototype.remove=function(p){var h=this.undoStack.findIndex(function(v){return v===p});if(h!==-1){this.undoStack.splice(h,1);return}var E=this.redoStack.findIndex(function(v){return v===p});E!==-1&&this.redoStack.splice(E,1)},f.prototype.undo=function(p){if(!p){var h=this.undoStack.pop();return h?(h?.negate(),this.redoStack.push(h),h):void 0}var E=this.undoStack.findIndex(function(v){return v===p});if(E!==-1)return this.undoStack.splice(E,1),p.negate(),this.redoStack.push(p),p},f.prototype.redo=function(p){if(!p){var h=this.redoStack.pop();return h?(h?.perform(),this.undoStack.push(h),h):void 0}var E=this.redoStack.findIndex(function(v){return v===p});if(E!==-1)return this.redoStack.splice(E,1),p.perform(),this.undoStack.push(p),p},f.prototype.reset=function(){this.undoStack.splice(0),this.redoStack.splice(0)},f}(),x=new y;w.history=x,Object.freeze(x)},71508:Ge=>{function w(l){var g,y,x="";if(typeof l=="string"||typeof l=="number")x+=l;else if(typeof l=="object")if(Array.isArray(l)){var f=l.length;for(g=0;g<f;g++)l[g]&&(y=w(l[g]))&&(x&&(x+=" "),x+=y)}else for(y in l)l[y]&&(x&&(x+=" "),x+=y);return x}function u(){for(var l,g,y=0,x="",f=arguments.length;y<f;y++)(l=arguments[y])&&(g=w(l))&&(x&&(x+=" "),x+=g);return x}Ge.exports=u,Ge.exports.clsx=u},71666:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.Action=void 0;var g=u(69879),y=function(x){l(f,x);function f(p,h){return x.call(this)||this}return f.prototype.schedule=function(p,h){return h===void 0&&(h=0),this},f}(g.Subscription);w.Action=y},71673:(Ge,w,u)=>{var l=u(46834);function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var y,x,f=typeof Symbol=="function"?Symbol:{},p=f.iterator||"@@iterator",h=f.toStringTag||"@@toStringTag";function E(L,j,I,U){var $=j&&j.prototype instanceof m?j:m,ee=Object.create($.prototype);return l(ee,"_invoke",function(re,Se,z){var Q,ce,se,q=0,te=z||[],A=!1,T={p:0,n:0,v:y,a:B,f:B.bind(y,4),d:function(ue,ie){return Q=ue,ce=0,se=y,T.n=ie,v}};function B(X,ue){for(ce=X,se=ue,x=0;!A&&q&&!ie&&x<te.length;x++){var ie,Te=te[x],je=T.p,yt=Te[2];X>3?(ie=yt===ue)&&(se=Te[(ce=Te[4])?5:(ce=3,3)],Te[4]=Te[5]=y):Te[0]<=je&&((ie=X<2&&je<Te[1])?(ce=0,T.v=ue,T.n=Te[1]):je<yt&&(ie=X<3||Te[0]>ue||ue>yt)&&(Te[4]=X,Te[5]=ue,T.n=yt,ce=0))}if(ie||X>1)return v;throw A=!0,ue}return function(X,ue,ie){if(q>1)throw TypeError("Generator is already running");for(A&&ue===1&&B(ue,ie),ce=ue,se=ie;(x=ce<2?y:se)||!A;){Q||(ce?ce<3?(ce>1&&(T.n=-1),B(ce,se)):T.n=se:T.v=se);try{if(q=2,Q){if(ce||(X="next"),x=Q[X]){if(!(x=x.call(Q,se)))throw TypeError("iterator result is not an object");if(!x.done)return x;se=x.value,ce<2&&(ce=0)}else ce===1&&(x=Q.return)&&x.call(Q),ce<2&&(se=TypeError("The iterator does not provide a '"+X+"' method"),ce=1);Q=y}else if((x=(A=T.n<0)?se:re.call(Se,T))!==v)break}catch(Te){Q=y,ce=1,se=Te}finally{q=1}}return{value:x,done:A}}}(L,I,U),!0),ee}var v={};function m(){}function S(){}function d(){}x=Object.getPrototypeOf;var O=[][p]?x(x([][p]())):(l(x={},p,function(){return this}),x),R=d.prototype=m.prototype=Object.create(O);function C(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,d):(L.__proto__=d,l(L,h,"GeneratorFunction")),L.prototype=Object.create(R),L}return S.prototype=d,l(R,"constructor",d),l(d,"constructor",S),S.displayName="GeneratorFunction",l(d,h,"GeneratorFunction"),l(R),l(R,h,"Generator"),l(R,p,function(){return this}),l(R,"toString",function(){return"[object Generator]"}),(Ge.exports=g=function(){return{w:E,m:C}},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports)()}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},71696:(Ge,w,u)=>{"use strict";u.d(w,{W:()=>d});var l=u(5305),g=u(96054);function y(R,C,L){const[j,I]=(0,l.x)(L?.in,R,C),U=j.getFullYear()-I.getFullYear(),$=j.getMonth()-I.getMonth();return U*12+$}const x=null;var f=u(29407);function p(R,C){const L=(0,f.a)(R,C?.in);return L.setHours(23,59,59,999),L}const h=null;function E(R,C){const L=(0,f.a)(R,C?.in),j=L.getMonth();return L.setFullYear(L.getFullYear(),j+1,0),L.setHours(23,59,59,999),L}const v=null;function m(R,C){const L=(0,f.a)(R,C?.in);return+p(L,C)==+E(L,C)}const S=null;function d(R,C,L){const[j,I,U]=(0,l.x)(L?.in,R,R,C),$=(0,g.z)(I,U),ee=Math.abs(y(I,U));if(ee<1)return 0;I.getMonth()===1&&I.getDate()>27&&I.setDate(30),I.setMonth(I.getMonth()-$*ee);let re=(0,g.z)(I,U)===-$;m(j)&&ee===1&&(0,g.z)(j,U)===1&&(re=!1);const Se=$*(ee-+re);return Se===0?0:Se}const O=null},72065:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>E});var l=u(87826),g=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,y=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,x="".concat(g," ").concat(y).split(/[\s\n]+/),f="aria-",p="data-";function h(v,m){return v.indexOf(m)===0}function E(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S;m===!1?S={aria:!0,data:!0,attr:!0}:m===!0?S={aria:!0}:S=(0,l.A)({},m);var d={};return Object.keys(v).forEach(function(O){(S.aria&&(O==="role"||h(O,f))||S.data&&h(O,p)||S.attr&&x.includes(O))&&(d[O]=v[O])}),d}},72181:(Ge,w,u)=>{"use strict";u.d(w,{Te:()=>Se});var l=u(96540),g=u(40961);function y(Q,ce,se){let q=se.initialDeps??[],te;return()=>{var A,T,B,X;let ue;se.key&&((A=se.debug)!=null&&A.call(se))&&(ue=Date.now());const ie=Q();if(!(ie.length!==q.length||ie.some((yt,tt)=>q[tt]!==yt)))return te;q=ie;let je;if(se.key&&((T=se.debug)!=null&&T.call(se))&&(je=Date.now()),te=ce(...ie),se.key&&((B=se.debug)!=null&&B.call(se))){const yt=Math.round((Date.now()-ue)*100)/100,tt=Math.round((Date.now()-je)*100)/100,Ze=tt/16,Ne=(it,Rt)=>{for(it=String(it);it.length<Rt;)it=" "+it;return it};console.info(`%c\u23F1 ${Ne(tt,5)} /${Ne(yt,5)} ms`,` font-size: .6rem; font-weight: bold; color: hsl(${Math.max(0,Math.min(120-120*Ze,120))}deg 100% 31%);`,se?.key)}return(X=se?.onChange)==null||X.call(se,te),te}}function x(Q,ce){if(Q===void 0)throw new Error(`Unexpected undefined${ce?`: ${ce}`:""}`);return Q}const f=(Q,ce)=>Math.abs(Q-ce)<1,p=(Q,ce,se)=>{let q;return function(...te){Q.clearTimeout(q),q=Q.setTimeout(()=>ce.apply(this,te),se)}},h=Q=>Q,E=Q=>{const ce=Math.max(Q.startIndex-Q.overscan,0),se=Math.min(Q.endIndex+Q.overscan,Q.count-1),q=[];for(let te=ce;te<=se;te++)q.push(te);return q},v=(Q,ce)=>{const se=Q.scrollElement;if(!se)return;const q=Q.targetWindow;if(!q)return;const te=T=>{const{width:B,height:X}=T;ce({width:Math.round(B),height:Math.round(X)})};if(te(se.getBoundingClientRect()),!q.ResizeObserver)return()=>{};const A=new q.ResizeObserver(T=>{const B=T[0];if(B?.borderBoxSize){const X=B.borderBoxSize[0];if(X){te({width:X.inlineSize,height:X.blockSize});return}}te(se.getBoundingClientRect())});return A.observe(se,{box:"border-box"}),()=>{A.unobserve(se)}},m={passive:!0},S=(Q,ce)=>{const se=Q.scrollElement;if(!se)return;const q=()=>{ce({width:se.innerWidth,height:se.innerHeight})};return q(),se.addEventListener("resize",q,m),()=>{se.removeEventListener("resize",q)}},d=typeof window>"u"?!0:"onscrollend"in window,O=(Q,ce)=>{const se=Q.scrollElement;if(!se)return;const q=Q.targetWindow;if(!q)return;let te=0;const A=Q.options.useScrollendEvent&&d?()=>{}:p(q,()=>{ce(te,!1)},Q.options.isScrollingResetDelay),T=ue=>()=>{const{horizontal:ie,isRtl:Te}=Q.options;te=ie?se.scrollLeft*(Te&&-1||1):se.scrollTop,A(),ce(te,ue)},B=T(!0),X=T(!1);return X(),se.addEventListener("scroll",B,m),se.addEventListener("scrollend",X,m),()=>{se.removeEventListener("scroll",B),se.removeEventListener("scrollend",X)}},R=(Q,ce)=>{const se=Q.scrollElement;if(!se)return;const q=Q.targetWindow;if(!q)return;let te=0;const A=Q.options.useScrollendEvent&&d?()=>{}:debounce(q,()=>{ce(te,!1)},Q.options.isScrollingResetDelay),T=ue=>()=>{te=se[Q.options.horizontal?"scrollX":"scrollY"],A(),ce(te,ue)},B=T(!0),X=T(!1);return X(),se.addEventListener("scroll",B,m),se.addEventListener("scrollend",X,m),()=>{se.removeEventListener("scroll",B),se.removeEventListener("scrollend",X)}},C=(Q,ce,se)=>{if(ce?.borderBoxSize){const q=ce.borderBoxSize[0];if(q)return Math.round(q[se.options.horizontal?"inlineSize":"blockSize"])}return Math.round(Q.getBoundingClientRect()[se.options.horizontal?"width":"height"])},L=(Q,{adjustments:ce=0,behavior:se},q)=>{var te,A;const T=Q+ce;(A=(te=q.scrollElement)==null?void 0:te.scrollTo)==null||A.call(te,{[q.options.horizontal?"left":"top"]:T,behavior:se})},j=(Q,{adjustments:ce=0,behavior:se},q)=>{var te,A;const T=Q+ce;(A=(te=q.scrollElement)==null?void 0:te.scrollTo)==null||A.call(te,{[q.options.horizontal?"left":"top"]:T,behavior:se})};class I{constructor(ce){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let se=null;const q=()=>se||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:se=new this.targetWindow.ResizeObserver(te=>{te.forEach(A=>{this._measureElement(A.target,A)})}));return{disconnect:()=>{var te;(te=q())==null||te.disconnect(),se=null},observe:te=>{var A;return(A=q())==null?void 0:A.observe(te,{box:"border-box"})},unobserve:te=>{var A;return(A=q())==null?void 0:A.unobserve(te)}}})(),this.range=null,this.setOptions=se=>{Object.entries(se).forEach(([q,te])=>{typeof te>"u"&&delete se[q]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:h,rangeExtractor:E,onChange:()=>{},measureElement:C,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...se}},this.notify=se=>{var q,te;(te=(q=this.options).onChange)==null||te.call(q,this,se)},this.maybeNotify=y(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),se=>{this.notify(se)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(se=>se()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var se;const q=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==q){if(this.cleanup(),!q){this.maybeNotify();return}this.scrollElement=q,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((se=this.scrollElement)==null?void 0:se.window)??null,this.elementsCache.forEach(te=>{this.observer.observe(te)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,te=>{this.scrollRect=te,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(te,A)=>{this.scrollAdjustments=0,this.scrollDirection=A?this.getScrollOffset()<te?"forward":"backward":null,this.scrollOffset=te,this.isScrolling=A,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(se,q)=>{const te=new Map,A=new Map;for(let T=q-1;T>=0;T--){const B=se[T];if(te.has(B.lane))continue;const X=A.get(B.lane);if(X==null||B.end>X.end?A.set(B.lane,B):B.end<X.end&&te.set(B.lane,!0),te.size===this.options.lanes)break}return A.size===this.options.lanes?Array.from(A.values()).sort((T,B)=>T.end===B.end?T.index-B.index:T.end-B.end)[0]:void 0},this.getMeasurementOptions=y(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(se,q,te,A,T)=>(this.pendingMeasuredCacheIndexes=[],{count:se,paddingStart:q,scrollMargin:te,getItemKey:A,enabled:T}),{key:!1}),this.getMeasurements=y(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:se,paddingStart:q,scrollMargin:te,getItemKey:A,enabled:T},B)=>{if(!T)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(ie=>{this.itemSizeCache.set(ie.key,ie.size)}));const X=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const ue=this.measurementsCache.slice(0,X);for(let ie=X;ie<se;ie++){const Te=A(ie),je=this.options.lanes===1?ue[ie-1]:this.getFurthestMeasurement(ue,ie),yt=je?je.end+this.options.gap:q+te,tt=B.get(Te),Ze=typeof tt=="number"?tt:this.options.estimateSize(ie),Ne=yt+Ze,it=je?je.lane:ie%this.options.lanes;ue[ie]={index:ie,start:yt,size:Ze,end:Ne,key:Te,lane:it}}return this.measurementsCache=ue,ue},{key:!1,debug:()=>this.options.debug}),this.calculateRange=y(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(se,q,te)=>this.range=se.length>0&&q>0?$({measurements:se,outerSize:q,scrollOffset:te}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=y(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(se,q,te,A)=>q===null?[]:se({startIndex:q.startIndex,endIndex:q.endIndex,overscan:te,count:A}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=se=>{const q=this.options.indexAttribute,te=se.getAttribute(q);return te?parseInt(te,10):(console.warn(`Missing attribute name '${q}={index}' on measured element.`),-1)},this._measureElement=(se,q)=>{const te=this.indexFromElement(se),A=this.measurementsCache[te];if(!A)return;const T=A.key,B=this.elementsCache.get(T);B!==se&&(B&&this.observer.unobserve(B),this.observer.observe(se),this.elementsCache.set(T,se)),se.isConnected&&this.resizeItem(te,this.options.measureElement(se,q,this))},this.resizeItem=(se,q)=>{const te=this.measurementsCache[se];if(!te)return;const A=this.itemSizeCache.get(te.key)??te.size,T=q-A;T!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(te,T,this):te.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=T,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(te.index),this.itemSizeCache=new Map(this.itemSizeCache.set(te.key,q)),this.notify(!1))},this.measureElement=se=>{if(!se){this.elementsCache.forEach((q,te)=>{q.isConnected||(this.observer.unobserve(q),this.elementsCache.delete(te))});return}this._measureElement(se,void 0)},this.getVirtualItems=y(()=>[this.getIndexes(),this.getMeasurements()],(se,q)=>{const te=[];for(let A=0,T=se.length;A<T;A++){const B=se[A],X=q[B];te.push(X)}return te},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=se=>{const q=this.getMeasurements();if(q.length!==0)return x(q[U(0,q.length-1,te=>x(q[te]).start,se)])},this.getOffsetForAlignment=(se,q)=>{const te=this.getSize(),A=this.getScrollOffset();q==="auto"&&(se<=A?q="start":se>=A+te?q="end":q="start"),q==="start"?se=se:q==="end"?se=se-te:q==="center"&&(se=se-te/2);const T=this.options.horizontal?"scrollWidth":"scrollHeight",X=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[T]:this.scrollElement[T]:0)-te;return Math.max(Math.min(X,se),0)},this.getOffsetForIndex=(se,q="auto")=>{se=Math.max(0,Math.min(se,this.options.count-1));const te=this.measurementsCache[se];if(!te)return;const A=this.getSize(),T=this.getScrollOffset();if(q==="auto")if(te.end>=T+A-this.options.scrollPaddingEnd)q="end";else if(te.start<=T+this.options.scrollPaddingStart)q="start";else return[T,q];const B=q==="end"?te.end+this.options.scrollPaddingEnd:te.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(B,q),q]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(se,{align:q="start",behavior:te}={})=>{this.cancelScrollToIndex(),te==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(se,q),{adjustments:void 0,behavior:te})},this.scrollToIndex=(se,{align:q="auto",behavior:te}={})=>{se=Math.max(0,Math.min(se,this.options.count-1)),this.cancelScrollToIndex(),te==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const A=this.getOffsetForIndex(se,q);if(!A)return;const[T,B]=A;this._scrollToOffset(T,{adjustments:void 0,behavior:te}),te!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(se))){const[ue]=x(this.getOffsetForIndex(se,B));f(ue,this.getScrollOffset())||this.scrollToIndex(se,{align:B,behavior:te})}else this.scrollToIndex(se,{align:B,behavior:te})}))},this.scrollBy=(se,{behavior:q}={})=>{this.cancelScrollToIndex(),q==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+se,{adjustments:void 0,behavior:q})},this.getTotalSize=()=>{var se;const q=this.getMeasurements();let te;return q.length===0?te=this.options.paddingStart:te=this.options.lanes===1?((se=q[q.length-1])==null?void 0:se.end)??0:Math.max(...q.slice(-this.options.lanes).map(A=>A.end)),Math.max(te-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(se,{adjustments:q,behavior:te})=>{this.options.scrollToFn(se,{behavior:te,adjustments:q},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(ce)}}const U=(Q,ce,se,q)=>{for(;Q<=ce;){const te=(Q+ce)/2|0,A=se(te);if(A<q)Q=te+1;else if(A>q)ce=te-1;else return te}return Q>0?Q-1:0};function $({measurements:Q,outerSize:ce,scrollOffset:se}){const q=Q.length-1,A=U(0,q,B=>Q[B].start,se);let T=A;for(;T<q&&Q[T].end<se+ce;)T++;return{startIndex:A,endIndex:T}}const ee=typeof document<"u"?l.useLayoutEffect:l.useEffect;function re(Q){const ce=l.useReducer(()=>({}),{})[1],se={...Q,onChange:(te,A)=>{var T;A?(0,g.flushSync)(ce):ce(),(T=Q.onChange)==null||T.call(Q,te,A)}},[q]=l.useState(()=>new I(se));return q.setOptions(se),l.useEffect(()=>q._didMount(),[]),ee(()=>q._willUpdate()),q}function Se(Q){return re({observeElementRect:v,observeElementOffset:O,scrollToFn:j,...Q})}function z(Q){return re({getScrollElement:()=>typeof document<"u"?window:null,observeElementRect:observeWindowRect,observeElementOffset:observeWindowOffset,scrollToFn:windowScroll,initialOffset:()=>typeof document<"u"?window.scrollY:0,...Q})}},72590:Ge=>{Ge.exports=function(u,l,g){return u===l?!0:u.className===l.className&&g(u.style,l.style)&&u.width===l.width&&u.autoSize===l.autoSize&&u.cols===l.cols&&u.draggableCancel===l.draggableCancel&&u.draggableHandle===l.draggableHandle&&g(u.verticalCompact,l.verticalCompact)&&g(u.compactType,l.compactType)&&g(u.layout,l.layout)&&g(u.margin,l.margin)&&g(u.containerPadding,l.containerPadding)&&u.rowHeight===l.rowHeight&&u.maxRows===l.maxRows&&u.isBounded===l.isBounded&&u.isDraggable===l.isDraggable&&u.isResizable===l.isResizable&&u.allowOverlap===l.allowOverlap&&u.preventCollision===l.preventCollision&&u.useCSSTransforms===l.useCSSTransforms&&u.transformScale===l.transformScale&&u.isDroppable===l.isDroppable&&g(u.resizeHandles,l.resizeHandles)&&g(u.resizeHandle,l.resizeHandle)&&u.onLayoutChange===l.onLayoutChange&&u.onDragStart===l.onDragStart&&u.onDrag===l.onDrag&&u.onDragStop===l.onDragStop&&u.onResizeStart===l.onResizeStart&&u.onResize===l.onResize&&u.onResizeStop===l.onResizeStop&&u.onDrop===l.onDrop&&g(u.droppingItem,l.droppingItem)&&g(u.innerRef,l.innerRef)}},72719:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.catchError=void 0;var l=u(19724),g=u(17214),y=u(65212);function x(f){return y.operate(function(p,h){var E=null,v=!1,m;E=p.subscribe(g.createOperatorSubscriber(h,void 0,void 0,function(S){m=l.innerFrom(f(S,x(f)(p))),E?(E.unsubscribe(),E=null,m.subscribe(h)):v=!0})),v&&(E.unsubscribe(),E=null,m.subscribe(h))})}w.catchError=x},72774:Ge=>{"use strict";Ge.exports=function w(u,l){if(u===l)return!0;if(u&&l&&typeof u=="object"&&typeof l=="object"){if(u.constructor!==l.constructor)return!1;var g,y,x;if(Array.isArray(u)){if(g=u.length,g!=l.length)return!1;for(y=g;y--!==0;)if(!w(u[y],l[y]))return!1;return!0}if(u.constructor===RegExp)return u.source===l.source&&u.flags===l.flags;if(u.valueOf!==Object.prototype.valueOf)return u.valueOf()===l.valueOf();if(u.toString!==Object.prototype.toString)return u.toString()===l.toString();if(x=Object.keys(u),g=x.length,g!==Object.keys(l).length)return!1;for(y=g;y--!==0;)if(!Object.prototype.hasOwnProperty.call(l,x[y]))return!1;for(y=g;y--!==0;){var f=x[y];if(!(f==="_owner"&&u.$$typeof)&&!w(u[f],l[f]))return!1}return!0}return u!==u&&l!==l}},72885:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.delayWhen=void 0;var l=u(39546),g=u(54383),y=u(2959),x=u(13337),f=u(67478),p=u(19724);function h(E,v){return v?function(m){return l.concat(v.pipe(g.take(1),y.ignoreElements()),m.pipe(h(E)))}:f.mergeMap(function(m,S){return p.innerFrom(E(m,S)).pipe(g.take(1),x.mapTo(m))})}w.delayWhen=h},72985:(Ge,w,u)=>{"use strict";u.d(w,{_:()=>y});var l=u(76464),g=u(75508);function y(x,f){var p=typeof f=="object";return new Promise(function(h,E){var v=new g.Ms({next:function(m){h(m),v.unsubscribe()},error:E,complete:function(){p?h(f.defaultValue):E(new l.G)}});x.subscribe(v)})}},73287:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>E});var l=u(17965),g=u.n(l),y=u(96540),x=u(1604),f=function(v){v===void 0&&(v={});var m=(0,y.useState)(v),S=m[0],d=m[1],O=(0,y.useCallback)(function(R){d(function(C){return Object.assign({},C,R instanceof Function?R(C):R)})},[]);return[S,O]};const p=f;var h=function(){var v=(0,x.A)(),m=p({value:void 0,error:void 0,noUserInteraction:!0}),S=m[0],d=m[1],O=(0,y.useCallback)(function(R){if(v()){var C,L;try{if(typeof R!="string"&&typeof R!="number"){var j=new Error("Cannot copy typeof "+typeof R+" to clipboard, must be a string");d({value:R,error:j,noUserInteraction:!0});return}else if(R===""){var j=new Error("Cannot copy empty string to clipboard.");d({value:R,error:j,noUserInteraction:!0});return}L=R.toString(),C=g()(L),d({value:L,error:void 0,noUserInteraction:C})}catch(I){d({value:L,error:I,noUserInteraction:C})}}},[]);return[S,O]};const E=h},73338:Ge=>{function w(){return Ge.exports=w=Object.assign?Object.assign.bind():function(u){for(var l=1;l<arguments.length;l++){var g=arguments[l];for(var y in g)({}).hasOwnProperty.call(g,y)&&(u[y]=g[y])}return u},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w.apply(null,arguments)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},73371:(Ge,w,u)=>{"use strict";u.d(w,{JM:()=>p,Kd:()=>f,S1:()=>m,Wk:()=>h,ZC:()=>E,a$:()=>x,sR:()=>v});var l=u(45435),g=u(57048);const y=(S,d)=>{S.name="$ZodError",Object.defineProperty(S,"_zod",{value:S._zod,enumerable:!1}),Object.defineProperty(S,"issues",{value:d,enumerable:!1}),S.message=JSON.stringify(d,g.jsonStringifyReplacer,2),Object.defineProperty(S,"toString",{value:()=>S.message,enumerable:!1})},x=(0,l.xI)("$ZodError",y),f=(0,l.xI)("$ZodError",y,{Parent:Error});function p(S,d=O=>O.message){const O={},R=[];for(const C of S.issues)C.path.length>0?(O[C.path[0]]=O[C.path[0]]||[],O[C.path[0]].push(d(C))):R.push(d(C));return{formErrors:R,fieldErrors:O}}function h(S,d){const O=d||function(L){return L.message},R={_errors:[]},C=L=>{for(const j of L.issues)if(j.code==="invalid_union"&&j.errors.length)j.errors.map(I=>C({issues:I}));else if(j.code==="invalid_key")C({issues:j.issues});else if(j.code==="invalid_element")C({issues:j.issues});else if(j.path.length===0)R._errors.push(O(j));else{let I=R,U=0;for(;U<j.path.length;){const $=j.path[U];U===j.path.length-1?(I[$]=I[$]||{_errors:[]},I[$]._errors.push(O(j))):I[$]=I[$]||{_errors:[]},I=I[$],U++}}};return C(S),R}function E(S,d){const O=d||function(L){return L.message},R={errors:[]},C=(L,j=[])=>{var I,U;for(const $ of L.issues)if($.code==="invalid_union"&&$.errors.length)$.errors.map(ee=>C({issues:ee},$.path));else if($.code==="invalid_key")C({issues:$.issues},$.path);else if($.code==="invalid_element")C({issues:$.issues},$.path);else{const ee=[...j,...$.path];if(ee.length===0){R.errors.push(O($));continue}let re=R,Se=0;for(;Se<ee.length;){const z=ee[Se],Q=Se===ee.length-1;typeof z=="string"?(re.properties??(re.properties={}),(I=re.properties)[z]??(I[z]={errors:[]}),re=re.properties[z]):(re.items??(re.items=[]),(U=re.items)[z]??(U[z]={errors:[]}),re=re.items[z]),Q&&re.errors.push(O($)),Se++}}};return C(S),R}function v(S){const d=[],O=S.map(R=>typeof R=="object"?R.key:R);for(const R of O)typeof R=="number"?d.push(`[${R}]`):typeof R=="symbol"?d.push(`[${JSON.stringify(String(R))}]`):/[^\w$]/.test(R)?d.push(`[${JSON.stringify(R)}]`):(d.length&&d.push("."),d.push(R));return d.join("")}function m(S){const d=[],O=[...S.issues].sort((R,C)=>(R.path??[]).length-(C.path??[]).length);for(const R of O)d.push(`\u2716 ${R.message}`),R.path?.length&&d.push(` \u2192 at ${v(R.path)}`);return d.join(` `)}},73484:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.toArray=void 0;var l=u(92070),g=u(65212),y=function(f,p){return f.push(p),f};function x(){return g.operate(function(f,p){l.reduce(y,[])(f).subscribe(p)})}w.toArray=x},73916:(Ge,w,u)=>{var l=u(43360),g=u(30641),y=u(15389);function x(f,p){var h={};return p=y(p,3),g(f,function(E,v,m){l(h,v,p(E,v,m))}),h}Ge.exports=x},73929:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.sequenceEqual=void 0;var l=u(65212),g=u(17214),y=u(19724);function x(p,h){return h===void 0&&(h=function(E,v){return E===v}),l.operate(function(E,v){var m=f(),S=f(),d=function(R){v.next(R),v.complete()},O=function(R,C){var L=g.createOperatorSubscriber(v,function(j){var I=C.buffer,U=C.complete;I.length===0?U?d(!1):R.buffer.push(j):!h(j,I.shift())&&d(!1)},function(){R.complete=!0;var j=C.complete,I=C.buffer;j&&d(I.length===0),L?.unsubscribe()});return L};E.subscribe(O(m,S)),y.innerFrom(p).subscribe(O(S,m))})}w.sequenceEqual=x;function f(){return{buffer:[],complete:!1}}},73956:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.retryWhen=void 0;var l=u(19724),g=u(54427),y=u(65212),x=u(17214);function f(p){return y.operate(function(h,E){var v,m=!1,S,d=function(){v=h.subscribe(x.createOperatorSubscriber(E,void 0,void 0,function(O){S||(S=new g.Subject,l.innerFrom(p(S)).subscribe(x.createOperatorSubscriber(E,function(){return v?d():m=!0}))),S&&S.next(O)})),m&&(v.unsubscribe(),v=null,m=!1,d())};d()})}w.retryWhen=f},74070:(Ge,w,u)=>{"use strict";u.d(w,{$S:()=>Tn,Ak:()=>$t,TK:()=>Dn,VP:()=>E,WA:()=>Mt,Z0:()=>rn,aA:()=>A,cN:()=>te,f$:()=>Ze,gk:()=>Oi,i0:()=>tt,mm:()=>Rt,sf:()=>Wt,zD:()=>_e});var l=u(14644),g=u(1932),y=(...de)=>{const Ve=createSelectorCreator(...de),vt=Object.assign((...Qt)=>{const nt=Ve(...Qt),Tt=(Gt,...En)=>nt(isDraft(Gt)?current(Gt):Gt,...En);return Object.assign(Tt,nt),Tt},{withTypes:()=>vt});return vt},x=null,f=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?l.compose:l.compose.apply(null,arguments)},p=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(de){return de}},h=de=>de&&typeof de.match=="function";function E(de,Ve){function vt(...Qt){if(Ve){let nt=Ve(...Qt);if(!nt)throw new Error(Oi(0));return{type:de,payload:nt.payload,..."meta"in nt&&{meta:nt.meta},..."error"in nt&&{error:nt.error}}}return{type:de,payload:Qt[0]}}return vt.toString=()=>`${de}`,vt.type=de,vt.match=Qt=>(0,l.isAction)(Qt)&&Qt.type===de,vt}function v(de){return typeof de=="function"&&"type"in de&&h(de)}function m(de){return isAction(de)&&Object.keys(de).every(S)}function S(de){return["type","payload","error","meta"].indexOf(de)>-1}function d(de){const Ve=de?`${de}`.split("/"):[],vt=Ve[Ve.length-1]||"actionCreator";return`Detected an action creator with type "${de||"unknown"}" being dispatched. Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${vt}())\` instead of \`dispatch(${vt})\`. This is necessary even if the action has no payload.`}function O(de={}){return()=>Ve=>vt=>Ve(vt)}function R(de,Ve){let vt=0;return{measureTime(Qt){const nt=Date.now();try{return Qt()}finally{const Tt=Date.now();vt+=Tt-nt}},warnIfExceeded(){vt>de&&console.warn(`${Ve} took ${vt}ms, which is more than the warning threshold of ${de}ms. If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions. It is disabled in production builds, so you don't need to worry about that.`)}}}var C=class og extends Array{constructor(...Ve){super(...Ve),Object.setPrototypeOf(this,og.prototype)}static get[Symbol.species](){return og}concat(...Ve){return super.concat.apply(this,Ve)}prepend(...Ve){return Ve.length===1&&Array.isArray(Ve[0])?new og(...Ve[0].concat(this)):new og(...Ve.concat(this))}};function L(de){return(0,g.a6)(de)?(0,g.jM)(de,()=>{}):de}function j(de,Ve,vt){return de.has(Ve)?de.get(Ve):de.set(Ve,vt(Ve)).get(Ve)}function I(de){return typeof de!="object"||de==null||Object.isFrozen(de)}function U(de,Ve,vt){const Qt=$(de,Ve,vt);return{detectMutations(){return ee(de,Ve,Qt,vt)}}}function $(de,Ve=[],vt,Qt="",nt=new Set){const Tt={value:vt};if(!de(vt)&&!nt.has(vt)){nt.add(vt),Tt.children={};for(const Gt in vt){const En=Qt?Qt+"."+Gt:Gt;Ve.length&&Ve.indexOf(En)!==-1||(Tt.children[Gt]=$(de,Ve,vt[Gt],En))}}return Tt}function ee(de,Ve=[],vt,Qt,nt=!1,Tt=""){const Gt=vt?vt.value:void 0,En=Gt===Qt;if(nt&&!En&&!Number.isNaN(Qt))return{wasMutated:!0,path:Tt};if(de(Gt)||de(Qt))return{wasMutated:!1};const Qn={};for(let Pr in vt.children)Qn[Pr]=!0;for(let Pr in Qt)Qn[Pr]=!0;const Or=Ve.length>0;for(let Pr in Qn){const ai=Tt?Tt+"."+Pr:Pr;if(Or&&Ve.some(ei=>ei instanceof RegExp?ei.test(ai):ai===ei))continue;const xi=ee(de,Ve,vt.children[Pr],Qt[Pr],En,ai);if(xi.wasMutated)return xi}return{wasMutated:!1}}function re(de={}){if(1)return()=>Qt=>nt=>Qt(nt);var Ve,vt}function Se(de){const Ve=typeof de;return de==null||Ve==="string"||Ve==="boolean"||Ve==="number"||Array.isArray(de)||isPlainObject(de)}function z(de,Ve="",vt=Se,Qt,nt=[],Tt){let Gt;if(!vt(de))return{keyPath:Ve||"<root>",value:de};if(typeof de!="object"||de===null||Tt?.has(de))return!1;const En=Qt!=null?Qt(de):Object.entries(de),Qn=nt.length>0;for(const[Or,Pr]of En){const ai=Ve?Ve+"."+Or:Or;if(!(Qn&&nt.some(mi=>mi instanceof RegExp?mi.test(ai):ai===mi))){if(!vt(Pr))return{keyPath:ai,value:Pr};if(typeof Pr=="object"&&(Gt=z(Pr,ai,vt,Qt,nt,Tt),Gt))return Gt}}return Tt&&Q(de)&&Tt.add(de),!1}function Q(de){if(!Object.isFrozen(de))return!1;for(const Ve of Object.values(de))if(!(typeof Ve!="object"||Ve===null)&&!Q(Ve))return!1;return!0}function ce(de={}){return()=>Ve=>vt=>Ve(vt)}function se(de){return typeof de=="boolean"}var q=()=>function(Ve){const{thunk:vt=!0,immutableCheck:Qt=!0,serializableCheck:nt=!0,actionCreatorCheck:Tt=!0}=Ve??{};let Gt=new C;return vt&&(se(vt)?Gt.push(thunkMiddleware):Gt.push(withExtraArgument(vt.extraArgument))),Gt},te="RTK_autoBatch",A=()=>de=>({payload:de,meta:{[te]:!0}}),T=de=>Ve=>{setTimeout(Ve,de)},B=(de={type:"raf"})=>Ve=>(...vt)=>{const Qt=Ve(...vt);let nt=!0,Tt=!1,Gt=!1;const En=new Set,Qn=de.type==="tick"?queueMicrotask:de.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T(10):de.type==="callback"?de.queueNotification:T(de.timeout),Or=()=>{Gt=!1,Tt&&(Tt=!1,En.forEach(Pr=>Pr()))};return Object.assign({},Qt,{subscribe(Pr){const ai=()=>nt&&Pr(),xi=Qt.subscribe(ai);return En.add(Pr),()=>{xi(),En.delete(Pr)}},dispatch(Pr){try{return nt=!Pr?.meta?.[te],Tt=!nt,Tt&&(Gt||(Gt=!0,Qn(Or))),Qt.dispatch(Pr)}finally{nt=!0}}})},X=de=>function(vt){const{autoBatch:Qt=!0}=vt??{};let nt=new C(de);return Qt&&nt.push(B(typeof Qt=="object"?Qt:void 0)),nt};function ue(de){const Ve=q(),{reducer:vt=void 0,middleware:Qt,devTools:nt=!0,duplicateMiddlewareCheck:Tt=!0,preloadedState:Gt=void 0,enhancers:En=void 0}=de||{};let Qn;if(typeof vt=="function")Qn=vt;else if(isPlainObject2(vt))Qn=combineReducers(vt);else throw new Error(Oi(1));let Or;typeof Qt=="function"?Or=Qt(Ve):Or=Ve();let Pr=compose2;nt&&(Pr=f({trace:!1,...typeof nt=="object"&&nt}));const ai=applyMiddleware(...Or),xi=X(ai);let mi=typeof En=="function"?En(xi):xi();const ei=Pr(...mi);return createStore(Qn,Gt,ei)}function ie(de){const Ve={},vt=[];let Qt;const nt={addCase(Tt,Gt){const En=typeof Tt=="string"?Tt:Tt.type;if(!En)throw new Error(Oi(28));if(En in Ve)throw new Error(Oi(29));return Ve[En]=Gt,nt},addAsyncThunk(Tt,Gt){return Gt.pending&&(Ve[Tt.pending.type]=Gt.pending),Gt.rejected&&(Ve[Tt.rejected.type]=Gt.rejected),Gt.fulfilled&&(Ve[Tt.fulfilled.type]=Gt.fulfilled),Gt.settled&&vt.push({matcher:Tt.settled,reducer:Gt.settled}),nt},addMatcher(Tt,Gt){return vt.push({matcher:Tt,reducer:Gt}),nt},addDefaultCase(Tt){return Qt=Tt,nt}};return de(nt),[Ve,vt,Qt]}function Te(de){return typeof de=="function"}function je(de,Ve){let[vt,Qt,nt]=ie(Ve),Tt;if(Te(de))Tt=()=>L(de());else{const En=L(de);Tt=()=>En}function Gt(En=Tt(),Qn){let Or=[vt[Qn.type],...Qt.filter(({matcher:Pr})=>Pr(Qn)).map(({reducer:Pr})=>Pr)];return Or.filter(Pr=>!!Pr).length===0&&(Or=[nt]),Or.reduce((Pr,ai)=>{if(ai)if((0,g.Qx)(Pr)){const mi=ai(Pr,Qn);return mi===void 0?Pr:mi}else{if((0,g.a6)(Pr))return(0,g.jM)(Pr,xi=>ai(xi,Qn));{const xi=ai(Pr,Qn);if(xi===void 0){if(Pr===null)return Pr;throw Error("A case reducer on a non-draftable value must not return undefined")}return xi}}return Pr},En)}return Gt.getInitialState=Tt,Gt}var yt=(de,Ve)=>h(de)?de.match(Ve):de(Ve);function tt(...de){return Ve=>de.some(vt=>yt(vt,Ve))}function Ze(...de){return Ve=>de.every(vt=>yt(vt,Ve))}function Ne(de,Ve){if(!de||!de.meta)return!1;const vt=typeof de.meta.requestId=="string",Qt=Ve.indexOf(de.meta.requestStatus)>-1;return vt&&Qt}function it(de){return typeof de[0]=="function"&&"pending"in de[0]&&"fulfilled"in de[0]&&"rejected"in de[0]}function Rt(...de){return de.length===0?Ve=>Ne(Ve,["pending"]):it(de)?tt(...de.map(Ve=>Ve.pending)):Rt()(de[0])}function Dn(...de){return de.length===0?Ve=>Ne(Ve,["rejected"]):it(de)?tt(...de.map(Ve=>Ve.rejected)):Dn()(de[0])}function Mt(...de){const Ve=vt=>vt&&vt.meta&&vt.meta.rejectedWithValue;return de.length===0?Ze(Dn(...de),Ve):it(de)?Ze(Dn(...de),Ve):Mt()(de[0])}function Wt(...de){return de.length===0?Ve=>Ne(Ve,["fulfilled"]):it(de)?tt(...de.map(Ve=>Ve.fulfilled)):Wt()(de[0])}function Tn(...de){return de.length===0?Ve=>Ne(Ve,["pending","fulfilled","rejected"]):it(de)?tt(...de.flatMap(Ve=>[Ve.pending,Ve.rejected,Ve.fulfilled])):Tn()(de[0])}var bn="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$t=(de=21)=>{let Ve="",vt=de;for(;vt--;)Ve+=bn[Math.random()*64|0];return Ve},Ct=["name","message","stack","code"],Z=class{constructor(de,Ve){this.payload=de,this.meta=Ve}_type},me=class{constructor(de,Ve){this.payload=de,this.meta=Ve}_type},ke=de=>{if(typeof de=="object"&&de!==null){const Ve={};for(const vt of Ct)typeof de[vt]=="string"&&(Ve[vt]=de[vt]);return Ve}return{message:String(de)}},Ee="External signal was aborted",_e=(()=>{function de(Ve,vt,Qt){const nt=E(Ve+"/fulfilled",(Qn,Or,Pr,ai)=>({payload:Qn,meta:{...ai||{},arg:Pr,requestId:Or,requestStatus:"fulfilled"}})),Tt=E(Ve+"/pending",(Qn,Or,Pr)=>({payload:void 0,meta:{...Pr||{},arg:Or,requestId:Qn,requestStatus:"pending"}})),Gt=E(Ve+"/rejected",(Qn,Or,Pr,ai,xi)=>({payload:ai,error:(Qt&&Qt.serializeError||ke)(Qn||"Rejected"),meta:{...xi||{},arg:Pr,requestId:Or,rejectedWithValue:!!ai,requestStatus:"rejected",aborted:Qn?.name==="AbortError",condition:Qn?.name==="ConditionError"}}));function En(Qn,{signal:Or}={}){return(Pr,ai,xi)=>{const mi=Qt?.idGenerator?Qt.idGenerator(Qn):$t(),ei=new AbortController;let Qr,Ni;function ea(ir){Ni=ir,ei.abort()}Or&&(Or.aborted?ea(Ee):Or.addEventListener("abort",()=>ea(Ee),{once:!0}));const Qi=async function(){let ir;try{let di=Qt?.condition?.(Qn,{getState:ai,extra:xi});if(Me(di)&&(di=await di),di===!1||ei.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const ft=new Promise((zn,Zn)=>{Qr=()=>{Zn({name:"AbortError",message:Ni||"Aborted"})},ei.signal.addEventListener("abort",Qr)});Pr(Tt(mi,Qn,Qt?.getPendingMeta?.({requestId:mi,arg:Qn},{getState:ai,extra:xi}))),ir=await Promise.race([ft,Promise.resolve(vt(Qn,{dispatch:Pr,getState:ai,extra:xi,requestId:mi,signal:ei.signal,abort:ea,rejectWithValue:(zn,Zn)=>new Z(zn,Zn),fulfillWithValue:(zn,Zn)=>new me(zn,Zn)})).then(zn=>{if(zn instanceof Z)throw zn;return zn instanceof me?nt(zn.payload,mi,Qn,zn.meta):nt(zn,mi,Qn)})])}catch(di){ir=di instanceof Z?Gt(null,mi,Qn,di.payload,di.meta):Gt(di,mi,Qn)}finally{Qr&&ei.signal.removeEventListener("abort",Qr)}return Qt&&!Qt.dispatchConditionRejection&&Gt.match(ir)&&ir.meta.condition||Pr(ir),ir}();return Object.assign(Qi,{abort:ea,requestId:mi,arg:Qn,unwrap(){return Qi.then(ge)}})}}return Object.assign(En,{pending:Tt,rejected:Gt,fulfilled:nt,settled:tt(Gt,nt),typePrefix:Ve})}return de.withTypes=()=>de,de})();function ge(de){if(de.meta&&de.meta.rejectedWithValue)throw de.payload;if(de.error)throw de.error;return de.payload}function Me(de){return de!==null&&typeof de=="object"&&typeof de.then=="function"}var lt=Symbol.for("rtk-slice-createasyncthunk"),Ft={[lt]:_e},Et=(de=>(de.reducer="reducer",de.reducerWithPrepare="reducerWithPrepare",de.asyncThunk="asyncThunk",de))(Et||{});function Zt(de,Ve){return`${de}/${Ve}`}function nn({creators:de}={}){const Ve=de?.asyncThunk?.[lt];return function(Qt){const{name:nt,reducerPath:Tt=nt}=Qt;if(!nt)throw new Error(Oi(11));typeof process<"u";const Gt=(typeof Qt.reducers=="function"?Qt.reducers(Vt()):Qt.reducers)||{},En=Object.keys(Gt),Qn={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},Or={addCase(ir,xr){const di=typeof ir=="string"?ir:ir.type;if(!di)throw new Error(Oi(12));if(di in Qn.sliceCaseReducersByType)throw new Error(Oi(13));return Qn.sliceCaseReducersByType[di]=xr,Or},addMatcher(ir,xr){return Qn.sliceMatchers.push({matcher:ir,reducer:xr}),Or},exposeAction(ir,xr){return Qn.actionCreators[ir]=xr,Or},exposeCaseReducer(ir,xr){return Qn.sliceCaseReducersByName[ir]=xr,Or}};En.forEach(ir=>{const xr=Gt[ir],di={reducerName:ir,type:Zt(nt,ir),createNotation:typeof Qt.reducers=="function"};ur(xr)?tr(di,xr,Or,Ve):Kn(di,xr,Or)});function Pr(){const[ir={},xr=[],di=void 0]=typeof Qt.extraReducers=="function"?ie(Qt.extraReducers):[Qt.extraReducers],ft={...ir,...Qn.sliceCaseReducersByType};return je(Qt.initialState,zn=>{for(let Zn in ft)zn.addCase(Zn,ft[Zn]);for(let Zn of Qn.sliceMatchers)zn.addMatcher(Zn.matcher,Zn.reducer);for(let Zn of xr)zn.addMatcher(Zn.matcher,Zn.reducer);di&&zn.addDefaultCase(di)})}const ai=ir=>ir,xi=new Map,mi=new WeakMap;let ei;function Qr(ir,xr){return ei||(ei=Pr()),ei(ir,xr)}function Ni(){return ei||(ei=Pr()),ei.getInitialState()}function ea(ir,xr=!1){function di(zn){let Zn=zn[ir];return typeof Zn>"u"&&xr&&(Zn=j(mi,di,Ni)),Zn}function ft(zn=ai){const Zn=j(xi,xr,()=>new WeakMap);return j(Zn,zn,()=>{const wi={};for(const[Ea,wa]of Object.entries(Qt.selectors??{}))wi[Ea]=Pn(wa,zn,()=>j(mi,zn,Ni),xr);return wi})}return{reducerPath:ir,getSelectors:ft,get selectors(){return ft(di)},selectSlice:di}}const Qi={name:nt,reducer:Qr,actions:Qn.actionCreators,caseReducers:Qn.sliceCaseReducersByName,getInitialState:Ni,...ea(Tt),injectInto(ir,{reducerPath:xr,...di}={}){const ft=xr??Tt;return ir.inject({reducerPath:ft,reducer:Qr},di),{...Qi,...ea(ft,!0)}}};return Qi}}function Pn(de,Ve,vt,Qt){function nt(Tt,...Gt){let En=Ve(Tt);return typeof En>"u"&&Qt&&(En=vt()),de(En,...Gt)}return nt.unwrapped=de,nt}var rn=nn();function Vt(){function de(Ve,vt){return{_reducerDefinitionType:"asyncThunk",payloadCreator:Ve,...vt}}return de.withTypes=()=>de,{reducer(Ve){return Object.assign({[Ve.name](...vt){return Ve(...vt)}}[Ve.name],{_reducerDefinitionType:"reducer"})},preparedReducer(Ve,vt){return{_reducerDefinitionType:"reducerWithPrepare",prepare:Ve,reducer:vt}},asyncThunk:de}}function Kn({type:de,reducerName:Ve,createNotation:vt},Qt,nt){let Tt,Gt;if("reducer"in Qt){if(vt&&!on(Qt))throw new Error(Oi(17));Tt=Qt.reducer,Gt=Qt.prepare}else Tt=Qt;nt.addCase(de,Tt).exposeCaseReducer(Ve,Tt).exposeAction(Ve,Gt?E(de,Gt):E(de))}function ur(de){return de._reducerDefinitionType==="asyncThunk"}function on(de){return de._reducerDefinitionType==="reducerWithPrepare"}function tr({type:de,reducerName:Ve},vt,Qt,nt){if(!nt)throw new Error(Oi(18));const{payloadCreator:Tt,fulfilled:Gt,pending:En,rejected:Qn,settled:Or,options:Pr}=vt,ai=nt(de,Tt,Pr);Qt.exposeAction(Ve,ai),Gt&&Qt.addCase(ai.fulfilled,Gt),En&&Qt.addCase(ai.pending,En),Qn&&Qt.addCase(ai.rejected,Qn),Or&&Qt.addMatcher(ai.settled,Or),Qt.exposeCaseReducer(Ve,{fulfilled:Gt||Cn,pending:En||Cn,rejected:Qn||Cn,settled:Or||Cn})}function Cn(){}function Wn(){return{ids:[],entities:{}}}function er(de){function Ve(vt={},Qt){const nt=Object.assign(Wn(),vt);return Qt?de.setAll(nt,Qt):nt}return{getInitialState:Ve}}function Fn(){function de(Ve,vt={}){const{createSelector:Qt=x}=vt,nt=ai=>ai.ids,Tt=ai=>ai.entities,Gt=Qt(nt,Tt,(ai,xi)=>ai.map(mi=>xi[mi])),En=(ai,xi)=>xi,Qn=(ai,xi)=>ai[xi],Or=Qt(nt,ai=>ai.length);if(!Ve)return{selectIds:nt,selectEntities:Tt,selectAll:Gt,selectTotal:Or,selectById:Qt(Tt,En,Qn)};const Pr=Qt(Ve,Tt);return{selectIds:Qt(Ve,nt),selectEntities:Pr,selectAll:Qt(Ve,Gt),selectTotal:Qt(Ve,Or),selectById:Qt(Pr,En,Qn)}}return{getSelectors:de}}var en=null;function gn(de){const Ve=kn((vt,Qt)=>de(Qt));return function(Qt){return Ve(Qt,void 0)}}function kn(de){return function(vt,Qt){function nt(Gt){return m(Gt)}const Tt=Gt=>{nt(Qt)?de(Qt.payload,Gt):de(Qt,Gt)};return en(vt)?(Tt(vt),vt):createNextState3(vt,Tt)}}function Jn(de,Ve){return Ve(de)}function Nn(de){return Array.isArray(de)||(de=Object.values(de)),de}function kr(de){return isDraft4(de)?current2(de):de}function bt(de,Ve,vt){de=Nn(de);const Qt=kr(vt.ids),nt=new Set(Qt),Tt=[],Gt=new Set([]),En=[];for(const Qn of de){const Or=Jn(Qn,Ve);nt.has(Or)||Gt.has(Or)?En.push({id:Or,changes:Qn}):(Gt.add(Or),Tt.push(Qn))}return[Tt,En,Qt]}function ne(de){function Ve(ei,Qr){const Ni=Jn(ei,de);Ni in Qr.entities||(Qr.ids.push(Ni),Qr.entities[Ni]=ei)}function vt(ei,Qr){ei=Nn(ei);for(const Ni of ei)Ve(Ni,Qr)}function Qt(ei,Qr){const Ni=Jn(ei,de);Ni in Qr.entities||Qr.ids.push(Ni),Qr.entities[Ni]=ei}function nt(ei,Qr){ei=Nn(ei);for(const Ni of ei)Qt(Ni,Qr)}function Tt(ei,Qr){ei=Nn(ei),Qr.ids=[],Qr.entities={},vt(ei,Qr)}function Gt(ei,Qr){return En([ei],Qr)}function En(ei,Qr){let Ni=!1;ei.forEach(ea=>{ea in Qr.entities&&(delete Qr.entities[ea],Ni=!0)}),Ni&&(Qr.ids=Qr.ids.filter(ea=>ea in Qr.entities))}function Qn(ei){Object.assign(ei,{ids:[],entities:{}})}function Or(ei,Qr,Ni){const ea=Ni.entities[Qr.id];if(ea===void 0)return!1;const Qi=Object.assign({},ea,Qr.changes),ir=Jn(Qi,de),xr=ir!==Qr.id;return xr&&(ei[Qr.id]=ir,delete Ni.entities[Qr.id]),Ni.entities[ir]=Qi,xr}function Pr(ei,Qr){return ai([ei],Qr)}function ai(ei,Qr){const Ni={},ea={};ei.forEach(ir=>{ir.id in Qr.entities&&(ea[ir.id]={id:ir.id,changes:{...ea[ir.id]?.changes,...ir.changes}})}),ei=Object.values(ea),ei.length>0&&ei.filter(xr=>Or(Ni,xr,Qr)).length>0&&(Qr.ids=Object.values(Qr.entities).map(xr=>Jn(xr,de)))}function xi(ei,Qr){return mi([ei],Qr)}function mi(ei,Qr){const[Ni,ea]=bt(ei,de,Qr);vt(Ni,Qr),ai(ea,Qr)}return{removeAll:gn(Qn),addOne:kn(Ve),addMany:kn(vt),setOne:kn(Qt),setMany:kn(nt),setAll:kn(Tt),updateOne:kn(Pr),updateMany:kn(ai),upsertOne:kn(xi),upsertMany:kn(mi),removeOne:kn(Gt),removeMany:kn(En)}}function fe(de,Ve,vt){let Qt=0,nt=de.length;for(;Qt<nt;){let Tt=Qt+nt>>>1;const Gt=de[Tt];vt(Ve,Gt)>=0?Qt=Tt+1:nt=Tt}return Qt}function K(de,Ve,vt){const Qt=fe(de,Ve,vt);return de.splice(Qt,0,Ve),de}function he(de,Ve){const{removeOne:vt,removeMany:Qt,removeAll:nt}=ne(de);function Tt(Ni,ea){return Gt([Ni],ea)}function Gt(Ni,ea,Qi){Ni=Nn(Ni);const ir=new Set(Qi??kr(ea.ids)),xr=new Set,di=Ni.filter(ft=>{const zn=Jn(ft,de),Zn=!xr.has(zn);return Zn&&xr.add(zn),!ir.has(zn)&&Zn});di.length!==0&&Qr(ea,di)}function En(Ni,ea){return Qn([Ni],ea)}function Qn(Ni,ea){let Qi={};if(Ni=Nn(Ni),Ni.length!==0){for(const ir of Ni){const xr=de(ir);Qi[xr]=ir,delete ea.entities[xr]}Ni=Nn(Qi),Qr(ea,Ni)}}function Or(Ni,ea){Ni=Nn(Ni),ea.entities={},ea.ids=[],Gt(Ni,ea,[])}function Pr(Ni,ea){return ai([Ni],ea)}function ai(Ni,ea){let Qi=!1,ir=!1;for(let xr of Ni){const di=ea.entities[xr.id];if(!di)continue;Qi=!0,Object.assign(di,xr.changes);const ft=de(di);if(xr.id!==ft){ir=!0,delete ea.entities[xr.id];const zn=ea.ids.indexOf(xr.id);ea.ids[zn]=ft,ea.entities[ft]=di}}Qi&&Qr(ea,[],Qi,ir)}function xi(Ni,ea){return mi([Ni],ea)}function mi(Ni,ea){const[Qi,ir,xr]=bt(Ni,de,ea);Qi.length&&Gt(Qi,ea,xr),ir.length&&ai(ir,ea)}function ei(Ni,ea){if(Ni.length!==ea.length)return!1;for(let Qi=0;Qi<Ni.length;Qi++)if(Ni[Qi]!==ea[Qi])return!1;return!0}const Qr=(Ni,ea,Qi,ir)=>{const xr=kr(Ni.entities),di=kr(Ni.ids),ft=Ni.entities;let zn=di;ir&&(zn=new Set(di));let Zn=[];for(const wa of zn){const ji=xr[wa];ji&&Zn.push(ji)}const wi=Zn.length===0;for(const wa of ea)ft[de(wa)]=wa,wi||K(Zn,wa,Ve);wi?Zn=ea.slice().sort(Ve):Qi&&Zn.sort(Ve);const Ea=Zn.map(de);ei(di,Ea)||(Ni.ids=Ea)};return{removeOne:vt,removeMany:Qt,removeAll:nt,addOne:kn(Tt),updateOne:kn(Pr),upsertOne:kn(xi),setOne:kn(En),setMany:kn(Qn),setAll:kn(Or),addMany:kn(Gt),updateMany:kn(ai),upsertMany:kn(mi)}}function Fe(de={}){const{selectId:Ve,sortComparer:vt}={sortComparer:!1,selectId:Gt=>Gt.id,...de},Qt=vt?he(Ve,vt):ne(Ve),nt=er(Qt),Tt=Fn();return{selectId:Ve,sortComparer:vt,...nt,...Tt,...Qt}}var Nt="task",ln="listener",pn="completed",Yn="cancelled",ht=null,De=null,we=null,Ke=null,be=class{constructor(de){this.code=de,this.message=`${Nt} ${Yn} (reason: ${de})`}name="TaskAbortError";message},pt=(de,Ve)=>{if(typeof de!="function")throw new TypeError(Oi(32))},We=()=>{},Je=(de,Ve=We)=>(de.catch(Ve),de),ye=(de,Ve)=>(de.addEventListener("abort",Ve,{once:!0}),()=>de.removeEventListener("abort",Ve)),Qe=(de,Ve)=>{const vt=de.signal;vt.aborted||("reason"in vt||Object.defineProperty(vt,"reason",{enumerable:!0,value:Ve,configurable:!0,writable:!0}),de.abort(Ve))},ze=de=>{if(de.aborted){const{reason:Ve}=de;throw new be(Ve)}};function qe(de,Ve){let vt=We;return new Promise((Qt,nt)=>{const Tt=()=>nt(new be(de.reason));if(de.aborted){Tt();return}vt=ye(de,Tt),Ve.finally(()=>vt()).then(Qt,nt)}).finally(()=>{vt=We})}var Pt=async(de,Ve)=>{try{return await Promise.resolve(),{status:"ok",value:await de()}}catch(vt){return{status:vt instanceof be?"cancelled":"rejected",error:vt}}finally{Ve?.()}},zt=de=>Ve=>Je(qe(de,Ve).then(vt=>(ze(de),vt))),un=de=>{const Ve=zt(de);return vt=>Ve(new Promise(Qt=>setTimeout(Qt,vt)))},{assign:hn}=Object,xt={},_t="listenerMiddleware",qt=(de,Ve)=>{const vt=Qt=>ye(de,()=>Qe(Qt,de.reason));return(Qt,nt)=>{pt(Qt,"taskExecutor");const Tt=new AbortController;vt(Tt);const Gt=Pt(async()=>{ze(de),ze(Tt.signal);const En=await Qt({pause:zt(Tt.signal),delay:un(Tt.signal),signal:Tt.signal});return ze(Tt.signal),En},()=>Qe(Tt,De));return nt?.autoJoin&&Ve.push(Gt.catch(We)),{result:zt(de)(Gt),cancel(){Qe(Tt,ht)}}}},fn=(de,Ve)=>{const vt=async(Qt,nt)=>{ze(Ve);let Tt=()=>{};const En=[new Promise((Qn,Or)=>{let Pr=de({predicate:Qt,effect:(ai,xi)=>{xi.unsubscribe(),Qn([ai,xi.getState(),xi.getOriginalState()])}});Tt=()=>{Pr(),Or()}})];nt!=null&&En.push(new Promise(Qn=>setTimeout(Qn,nt,null)));try{const Qn=await qe(Ve,Promise.race(En));return ze(Ve),Qn}finally{Tt()}};return(Qt,nt)=>Je(vt(Qt,nt))},On=de=>{let{type:Ve,actionCreator:vt,matcher:Qt,predicate:nt,effect:Tt}=de;if(Ve)nt=E(Ve).match;else if(vt)Ve=vt.type,nt=vt.match;else if(Qt)nt=Qt;else if(!nt)throw new Error(Oi(21));return pt(Tt,"options.listener"),{predicate:nt,type:Ve,effect:Tt}},Gn=hn(de=>{const{type:Ve,predicate:vt,effect:Qt}=On(de);return{id:$t(),effect:Qt,type:Ve,predicate:vt,pending:new Set,unsubscribe:()=>{throw new Error(Oi(22))}}},{withTypes:()=>Gn}),Bn=(de,Ve)=>{const{type:vt,effect:Qt,predicate:nt}=On(Ve);return Array.from(de.values()).find(Tt=>(typeof vt=="string"?Tt.type===vt:Tt.predicate===nt)&&Tt.effect===Qt)},Lr=de=>{de.pending.forEach(Ve=>{Qe(Ve,we)})},An=(de,Ve)=>()=>{for(const vt of Ve.keys())Lr(vt);de.clear()},Un=(de,Ve,vt)=>{try{de(Ve,vt)}catch(Qt){setTimeout(()=>{throw Qt},0)}},cr=hn(E(`${_t}/add`),{withTypes:()=>cr}),mr=null,hr=hn(E(`${_t}/remove`),{withTypes:()=>hr}),ar=(...de)=>{console.error(`${_t}/error`,...de)},Cr=(de={})=>{const Ve=new Map,vt=new Map,Qt=mi=>{const ei=vt.get(mi)??0;vt.set(mi,ei+1)},nt=mi=>{const ei=vt.get(mi)??1;ei===1?vt.delete(mi):vt.set(mi,ei-1)},{extra:Tt,onError:Gt=ar}=de;pt(Gt,"onError");const En=mi=>(mi.unsubscribe=()=>Ve.delete(mi.id),Ve.set(mi.id,mi),ei=>{mi.unsubscribe(),ei?.cancelActive&&Lr(mi)}),Qn=mi=>{const ei=Bn(Ve,mi)??Gn(mi);return En(ei)};hn(Qn,{withTypes:()=>Qn});const Or=mi=>{const ei=Bn(Ve,mi);return ei&&(ei.unsubscribe(),mi.cancelActive&&Lr(ei)),!!ei};hn(Or,{withTypes:()=>Or});const Pr=async(mi,ei,Qr,Ni)=>{const ea=new AbortController,Qi=fn(Qn,ea.signal),ir=[];try{mi.pending.add(ea),Qt(mi),await Promise.resolve(mi.effect(ei,hn({},Qr,{getOriginalState:Ni,condition:(xr,di)=>Qi(xr,di).then(Boolean),take:Qi,delay:un(ea.signal),pause:zt(ea.signal),extra:Tt,signal:ea.signal,fork:qt(ea.signal,ir),unsubscribe:mi.unsubscribe,subscribe:()=>{Ve.set(mi.id,mi)},cancelActiveListeners:()=>{mi.pending.forEach((xr,di,ft)=>{xr!==ea&&(Qe(xr,we),ft.delete(xr))})},cancel:()=>{Qe(ea,we),mi.pending.delete(ea)},throwIfCancelled:()=>{ze(ea.signal)}})))}catch(xr){xr instanceof be||Un(Gt,xr,{raisedBy:"effect"})}finally{await Promise.all(ir),Qe(ea,Ke),nt(mi),mi.pending.delete(ea)}},ai=An(Ve,vt);return{middleware:mi=>ei=>Qr=>{if(!isAction3(Qr))return ei(Qr);if(cr.match(Qr))return Qn(Qr.payload);if(mr.match(Qr)){ai();return}if(hr.match(Qr))return Or(Qr.payload);let Ni=mi.getState();const ea=()=>{if(Ni===xt)throw new Error(Oi(23));return Ni};let Qi;try{if(Qi=ei(Qr),Ve.size>0){const ir=mi.getState(),xr=Array.from(Ve.values());for(const di of xr){let ft=!1;try{ft=di.predicate(Qr,ir,Ni)}catch(zn){ft=!1,Un(Gt,zn,{raisedBy:"predicate"})}ft&&Pr(di,Qr,mi,ea)}}}finally{Ni=xt}return Qi},startListening:Qn,stopListening:Or,clearListeners:ai}},Yr=de=>({middleware:de,applied:new Map}),Xr=de=>Ve=>Ve?.meta?.instanceId===de,ni=()=>{const de=$t(),Ve=new Map,vt=Object.assign(E("dynamicMiddleware/add",(...En)=>({payload:En,meta:{instanceId:de}})),{withTypes:()=>vt}),Qt=Object.assign(function(...Qn){Qn.forEach(Or=>{j(Ve,Or,Yr)})},{withTypes:()=>Qt}),nt=En=>{const Qn=Array.from(Ve.values()).map(Or=>j(Or.applied,En,Or.middleware));return compose3(...Qn)},Tt=Ze(vt,Xr(de));return{middleware:En=>Qn=>Or=>Tt(Or)?(Qt(...Or.payload),En.dispatch):nt(En)(Qn)(Or),addMiddleware:Qt,withMiddleware:vt,instanceId:de}},ki=de=>"reducerPath"in de&&typeof de.reducerPath=="string",zr=de=>de.flatMap(Ve=>ki(Ve)?[[Ve.reducerPath,Ve.reducer]]:Object.entries(Ve)),Ur=Symbol.for("rtk-state-proxy-original"),jt=de=>!!de&&!!de[Ur],sn=new WeakMap,Rn=(de,Ve,vt)=>j(sn,de,()=>new Proxy(de,{get:(Qt,nt,Tt)=>{if(nt===Ur)return Qt;const Gt=Reflect.get(Qt,nt,Tt);if(typeof Gt>"u"){const En=vt[nt];if(typeof En<"u")return En;const Qn=Ve[nt];if(Qn){const Or=Qn(void 0,{type:$t()});if(typeof Or>"u")throw new Error(Oi(24));return vt[nt]=Or,Or}}return Gt}})),H=de=>{if(!jt(de))throw new Error(Oi(25));return de[Ur]},Be={},wn=(de=Be)=>de;function bi(...de){const Ve=Object.fromEntries(zr(de)),vt=()=>Object.keys(Ve).length?combineReducers2(Ve):wn;let Qt=vt();function nt(Qn,Or){return Qt(Qn,Or)}nt.withLazyLoadedSlices=()=>nt;const Tt={},Gt=(Qn,Or={})=>{const{reducerPath:Pr,reducer:ai}=Qn,xi=Ve[Pr];return!Or.overrideExisting&&xi&&xi!==ai?(typeof process<"u",nt):(Or.overrideExisting&&xi!==ai&&delete Tt[Pr],Ve[Pr]=ai,Qt=vt(),nt)},En=Object.assign(function(Or,Pr){return function(xi,...mi){return Or(Rn(Pr?Pr(xi,...mi):xi,Ve,Tt),...mi)}},{original:H});return Object.assign(nt,{inject:Gt,selector:En})}function Oi(de){return`Minified Redux Toolkit error #${de}; visit https://redux-toolkit.js.org/Errors?code=${de} for the full message or use the non-minified dev environment for full errors. `}},74226:(Ge,w,u)=>{"use strict";u.d(w,{B:()=>S});var l=u(52365),g=u(75156),y=u(92516),x=u(14936),f=u(1108),p=u(5305),h=u(96054),E=u(61501);function v(O,R,C){const L=(0,y.q)(),j=C?.locale??L.locale??g.c,I=(0,h.z)(O,R);if(isNaN(I))throw new RangeError("Invalid time value");const U=Object.assign({},C,{addSuffix:C?.addSuffix,comparison:I}),[$,ee]=(0,p.x)(C?.in,...I>0?[R,O]:[O,R]),re=(0,x.u)(C?.roundingMethod??"round"),Se=ee.getTime()-$.getTime(),z=Se/E.Cg,Q=(0,f.G)(ee)-(0,f.G)($),ce=(Se-Q)/E.Cg,se=C?.unit;let q;if(se?q=se:z<1?q="second":z<60?q="minute":z<E.F6?q="hour":ce<E.Nw?q="day":ce<E.Ks?q="month":q="year",q==="second"){const te=re(Se/1e3);return j.formatDistance("xSeconds",te,U)}else if(q==="minute"){const te=re(z);return j.formatDistance("xMinutes",te,U)}else if(q==="hour"){const te=re(z/60);return j.formatDistance("xHours",te,U)}else if(q==="day"){const te=re(ce/E.F6);return j.formatDistance("xDays",te,U)}else if(q==="month"){const te=re(ce/E.Nw);return te===12&&se!=="month"?j.formatDistance("xYears",1,U):j.formatDistance("xMonths",te,U)}else{const te=re(ce/E.Ks);return j.formatDistance("xYears",te,U)}}const m=null;function S(O,R){return v(O,(0,l.A)(O),R)}const d=null},74238:(Ge,w,u)=>{"use strict";u.d(w,{B4:()=>f,W8:()=>y,hq:()=>p,rT:()=>g,tV:()=>x});var l=u(66514);function g(){return!0}function y(){return!1}function x(){}function f(h){let E,v,m;return function(){const S=Array.prototype.slice.call(arguments);return(!v||this!==m||!(0,l.aI)(S,v))&&(m=this,v=S,E=h.apply(this,arguments)),E}}function p(h){function E(){let v;try{v=h()}catch(m){return Promise.reject(m)}return v instanceof Promise?v:Promise.resolve(v)}return E()}},74385:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.range=void 0;var l=u(48051),g=u(44885);function y(x,f,p){if(f==null&&(f=x,x=0),f<=0)return g.EMPTY;var h=f+x;return new l.Observable(p?function(E){var v=x;return p.schedule(function(){v<h?(E.next(v++),this.schedule()):E.complete()})}:function(E){for(var v=x;v<h&&!E.closed;)E.next(v++);E.complete()})}w.range=y},74462:(Ge,w,u)=>{"use strict";u.d(w,{h:()=>x});var l=u(15964),g=u(56315),y=u(64878);function x(f,p,h,E,v,m,S,d){var O=[],R=0,C=0,L=!1,j=function(){L&&!O.length&&!R&&p.complete()},I=function($){return R<E?U($):O.push($)},U=function($){m&&p.next($),R++;var ee=!1;(0,l.Tg)(h($,C++)).subscribe((0,y._)(p,function(re){v?.(re),m?I(re):p.next(re)},function(){ee=!0},void 0,function(){if(ee)try{R--;for(var re=function(){var Se=O.shift();S?(0,g.N)(p,S,function(){return U(Se)}):U(Se)};O.length&&R<E;)re();j()}catch(Se){p.error(Se)}}))};return f.subscribe((0,y._)(p,I,function(){L=!0,j()})),function(){d?.()}}},74478:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.AnimationFrameScheduler=void 0;var g=u(19533),y=function(x){l(f,x);function f(){return x!==null&&x.apply(this,arguments)||this}return f.prototype.flush=function(p){this._active=!0;var h;p?h=p.id:(h=this._scheduled,this._scheduled=void 0);var E=this.actions,v;p=p||E.shift();do if(v=p.execute(p.state,p.delay))break;while((p=E[0])&&p.id===h&&E.shift());if(this._active=!1,v){for(;(p=E[0])&&p.id===h&&E.shift();)p.unsubscribe();throw v}},f}(g.AsyncScheduler);w.AnimationFrameScheduler=y},74613:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.flatMap=void 0;var l=u(67478);w.flatMap=l.mergeMap},74692:function(Ge,w){var u,l;/*! * jQuery JavaScript Library v3.7.1 * https://jquery.com/ * * Copyright OpenJS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2023-08-28T13:37Z */(function(g,y){"use strict";typeof Ge.exports=="object"?Ge.exports=g.document?y(g,!0):function(x){if(!x.document)throw new Error("jQuery requires a window with a document");return y(x)}:y(g)})(typeof window<"u"?window:this,function(g,y){"use strict";var x=[],f=Object.getPrototypeOf,p=x.slice,h=x.flat?function(k){return x.flat.call(k)}:function(k){return x.concat.apply([],k)},E=x.push,v=x.indexOf,m={},S=m.toString,d=m.hasOwnProperty,O=d.toString,R=O.call(Object),C={},L=function(ve){return typeof ve=="function"&&typeof ve.nodeType!="number"&&typeof ve.item!="function"},j=function(ve){return ve!=null&&ve===ve.window},I=g.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function $(k,ve,Le){Le=Le||I;var Ye,ot,Lt=Le.createElement("script");if(Lt.text=k,ve)for(Ye in U)ot=ve[Ye]||ve.getAttribute&&ve.getAttribute(Ye),ot&&Lt.setAttribute(Ye,ot);Le.head.appendChild(Lt).parentNode.removeChild(Lt)}function ee(k){return k==null?k+"":typeof k=="object"||typeof k=="function"?m[S.call(k)]||"object":typeof k}var re="3.7.1",Se=/HTML$/i,z=function(k,ve){return new z.fn.init(k,ve)};z.fn=z.prototype={jquery:re,constructor:z,length:0,toArray:function(){return p.call(this)},get:function(k){return k==null?p.call(this):k<0?this[k+this.length]:this[k]},pushStack:function(k){var ve=z.merge(this.constructor(),k);return ve.prevObject=this,ve},each:function(k){return z.each(this,k)},map:function(k){return this.pushStack(z.map(this,function(ve,Le){return k.call(ve,Le,ve)}))},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(z.grep(this,function(k,ve){return(ve+1)%2}))},odd:function(){return this.pushStack(z.grep(this,function(k,ve){return ve%2}))},eq:function(k){var ve=this.length,Le=+k+(k<0?ve:0);return this.pushStack(Le>=0&&Le<ve?[this[Le]]:[])},end:function(){return this.prevObject||this.constructor()},push:E,sort:x.sort,splice:x.splice},z.extend=z.fn.extend=function(){var k,ve,Le,Ye,ot,Lt,an=arguments[0]||{},nr=1,vr=arguments.length,$r=!1;for(typeof an=="boolean"&&($r=an,an=arguments[nr]||{},nr++),typeof an!="object"&&!L(an)&&(an={}),nr===vr&&(an=this,nr--);nr<vr;nr++)if((k=arguments[nr])!=null)for(ve in k)Ye=k[ve],!(ve==="__proto__"||an===Ye)&&($r&&Ye&&(z.isPlainObject(Ye)||(ot=Array.isArray(Ye)))?(Le=an[ve],ot&&!Array.isArray(Le)?Lt=[]:!ot&&!z.isPlainObject(Le)?Lt={}:Lt=Le,ot=!1,an[ve]=z.extend($r,Lt,Ye)):Ye!==void 0&&(an[ve]=Ye));return an},z.extend({expando:"jQuery"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(k){throw new Error(k)},noop:function(){},isPlainObject:function(k){var ve,Le;return!k||S.call(k)!=="[object Object]"?!1:(ve=f(k),ve?(Le=d.call(ve,"constructor")&&ve.constructor,typeof Le=="function"&&O.call(Le)===R):!0)},isEmptyObject:function(k){var ve;for(ve in k)return!1;return!0},globalEval:function(k,ve,Le){$(k,{nonce:ve&&ve.nonce},Le)},each:function(k,ve){var Le,Ye=0;if(Q(k))for(Le=k.length;Ye<Le&&ve.call(k[Ye],Ye,k[Ye])!==!1;Ye++);else for(Ye in k)if(ve.call(k[Ye],Ye,k[Ye])===!1)break;return k},text:function(k){var ve,Le="",Ye=0,ot=k.nodeType;if(!ot)for(;ve=k[Ye++];)Le+=z.text(ve);return ot===1||ot===11?k.textContent:ot===9?k.documentElement.textContent:ot===3||ot===4?k.nodeValue:Le},makeArray:function(k,ve){var Le=ve||[];return k!=null&&(Q(Object(k))?z.merge(Le,typeof k=="string"?[k]:k):E.call(Le,k)),Le},inArray:function(k,ve,Le){return ve==null?-1:v.call(ve,k,Le)},isXMLDoc:function(k){var ve=k&&k.namespaceURI,Le=k&&(k.ownerDocument||k).documentElement;return!Se.test(ve||Le&&Le.nodeName||"HTML")},merge:function(k,ve){for(var Le=+ve.length,Ye=0,ot=k.length;Ye<Le;Ye++)k[ot++]=ve[Ye];return k.length=ot,k},grep:function(k,ve,Le){for(var Ye,ot=[],Lt=0,an=k.length,nr=!Le;Lt<an;Lt++)Ye=!ve(k[Lt],Lt),Ye!==nr&&ot.push(k[Lt]);return ot},map:function(k,ve,Le){var Ye,ot,Lt=0,an=[];if(Q(k))for(Ye=k.length;Lt<Ye;Lt++)ot=ve(k[Lt],Lt,Le),ot!=null&&an.push(ot);else for(Lt in k)ot=ve(k[Lt],Lt,Le),ot!=null&&an.push(ot);return h(an)},guid:1,support:C}),typeof Symbol=="function"&&(z.fn[Symbol.iterator]=x[Symbol.iterator]),z.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(k,ve){m["[object "+ve+"]"]=ve.toLowerCase()});function Q(k){var ve=!!k&&"length"in k&&k.length,Le=ee(k);return L(k)||j(k)?!1:Le==="array"||ve===0||typeof ve=="number"&&ve>0&&ve-1 in k}function ce(k,ve){return k.nodeName&&k.nodeName.toLowerCase()===ve.toLowerCase()}var se=x.pop,q=x.sort,te=x.splice,A="[\\x20\\t\\r\\n\\f]",T=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g");z.contains=function(k,ve){var Le=ve&&ve.parentNode;return k===Le||!!(Le&&Le.nodeType===1&&(k.contains?k.contains(Le):k.compareDocumentPosition&&k.compareDocumentPosition(Le)&16))};var B=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function X(k,ve){return ve?k==="\0"?"\uFFFD":k.slice(0,-1)+"\\"+k.charCodeAt(k.length-1).toString(16)+" ":"\\"+k}z.escapeSelector=function(k){return(k+"").replace(B,X)};var ue=I,ie=E;(function(){var k,ve,Le,Ye,ot,Lt=ie,an,nr,vr,$r,Fr,qr=z.expando,jr=0,vi=0,Mi=mt(),ra=mt(),Yi=mt(),ua=mt(),Sa=function(At,Ut){return At===Ut&&(ot=!0),0},Xt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",V="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Y="\\["+A+"*("+V+")(?:"+A+"*([*^$|!~]?=)"+A+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+V+"))|)"+A+"*\\]",D=":("+V+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Y+")*)|.*)\\)|)",P=new RegExp(A+"+","g"),oe=new RegExp("^"+A+"*,"+A+"*"),Ie=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),Ue=new RegExp(A+"|>"),Xe=new RegExp(D),dt=new RegExp("^"+V+"$"),kt={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V+"|[*])"),ATTR:new RegExp("^"+Y),PSEUDO:new RegExp("^"+D),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+Xt+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},dn=/^(?:input|select|textarea|button)$/i,Vn=/^h\d$/i,qn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yr=/[+~]/,ci=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),hi=function(At,Ut){var jn="0x"+At.slice(1)-65536;return Ut||(jn<0?String.fromCharCode(jn+65536):String.fromCharCode(jn>>10|55296,jn&1023|56320))},Ti=function(){_r()},Vi=ii(function(At){return At.disabled===!0&&ce(At,"fieldset")},{dir:"parentNode",next:"legend"});function Di(){try{return an.activeElement}catch{}}try{Lt.apply(x=p.call(ue.childNodes),ue.childNodes),x[ue.childNodes.length].nodeType}catch{Lt={apply:function(Ut,jn){ie.apply(Ut,p.call(jn))},call:function(Ut){ie.apply(Ut,p.call(arguments,1))}}}function Pi(At,Ut,jn,Jt){var dr,wr,Hr,Ar,yi,Rr,si,Si=Ut&&Ut.ownerDocument,$i=Ut?Ut.nodeType:9;if(jn=jn||[],typeof At!="string"||!At||$i!==1&&$i!==9&&$i!==11)return jn;if(!Jt&&(_r(Ut),Ut=Ut||an,vr)){if($i!==11&&(yi=qn.exec(At)))if(dr=yi[1]){if($i===9)if(Hr=Ut.getElementById(dr)){if(Hr.id===dr)return Lt.call(jn,Hr),jn}else return jn;else if(Si&&(Hr=Si.getElementById(dr))&&Pi.contains(Ut,Hr)&&Hr.id===dr)return Lt.call(jn,Hr),jn}else{if(yi[2])return Lt.apply(jn,Ut.getElementsByTagName(At)),jn;if((dr=yi[3])&&Ut.getElementsByClassName)return Lt.apply(jn,Ut.getElementsByClassName(dr)),jn}if(!ua[At+" "]&&(!$r||!$r.test(At))){if(si=At,Si=Ut,$i===1&&(Ue.test(At)||Ie.test(At))){for(Si=yr.test(At)&&Ln(Ut.parentNode)||Ut,(Si!=Ut||!C.scope)&&((Ar=Ut.getAttribute("id"))?Ar=z.escapeSelector(Ar):Ut.setAttribute("id",Ar=qr)),Rr=Kr(At),wr=Rr.length;wr--;)Rr[wr]=(Ar?"#"+Ar:":scope")+" "+Jr(Rr[wr]);si=Rr.join(",")}try{return Lt.apply(jn,Si.querySelectorAll(si)),jn}catch{ua(At,!0)}finally{Ar===qr&&Ut.removeAttribute("id")}}}return mn(At.replace(T,"$1"),Ut,jn,Jt)}function mt(){var At=[];function Ut(jn,Jt){return At.push(jn+" ")>ve.cacheLength&&delete Ut[At.shift()],Ut[jn+" "]=Jt}return Ut}function tn(At){return At[qr]=!0,At}function or(At){var Ut=an.createElement("fieldset");try{return!!At(Ut)}catch{return!1}finally{Ut.parentNode&&Ut.parentNode.removeChild(Ut),Ut=null}}function rt(At){return function(Ut){return ce(Ut,"input")&&Ut.type===At}}function St(At){return function(Ut){return(ce(Ut,"input")||ce(Ut,"button"))&&Ut.type===At}}function _n(At){return function(Ut){return"form"in Ut?Ut.parentNode&&Ut.disabled===!1?"label"in Ut?"label"in Ut.parentNode?Ut.parentNode.disabled===At:Ut.disabled===At:Ut.isDisabled===At||Ut.isDisabled!==!At&&Vi(Ut)===At:Ut.disabled===At:"label"in Ut?Ut.disabled===At:!1}}function vn(At){return tn(function(Ut){return Ut=+Ut,tn(function(jn,Jt){for(var dr,wr=At([],jn.length,Ut),Hr=wr.length;Hr--;)jn[dr=wr[Hr]]&&(jn[dr]=!(Jt[dr]=jn[dr]))})})}function Ln(At){return At&&typeof At.getElementsByTagName<"u"&&At}function _r(At){var Ut,jn=At?At.ownerDocument||At:ue;return jn==an||jn.nodeType!==9||!jn.documentElement||(an=jn,nr=an.documentElement,vr=!z.isXMLDoc(an),Fr=nr.matches||nr.webkitMatchesSelector||nr.msMatchesSelector,nr.msMatchesSelector&&ue!=an&&(Ut=an.defaultView)&&Ut.top!==Ut&&Ut.addEventListener("unload",Ti),C.getById=or(function(Jt){return nr.appendChild(Jt).id=z.expando,!an.getElementsByName||!an.getElementsByName(z.expando).length}),C.disconnectedMatch=or(function(Jt){return Fr.call(Jt,"*")}),C.scope=or(function(){return an.querySelectorAll(":scope")}),C.cssHas=or(function(){try{return an.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),C.getById?(ve.filter.ID=function(Jt){var dr=Jt.replace(ci,hi);return function(wr){return wr.getAttribute("id")===dr}},ve.find.ID=function(Jt,dr){if(typeof dr.getElementById<"u"&&vr){var wr=dr.getElementById(Jt);return wr?[wr]:[]}}):(ve.filter.ID=function(Jt){var dr=Jt.replace(ci,hi);return function(wr){var Hr=typeof wr.getAttributeNode<"u"&&wr.getAttributeNode("id");return Hr&&Hr.value===dr}},ve.find.ID=function(Jt,dr){if(typeof dr.getElementById<"u"&&vr){var wr,Hr,Ar,yi=dr.getElementById(Jt);if(yi){if(wr=yi.getAttributeNode("id"),wr&&wr.value===Jt)return[yi];for(Ar=dr.getElementsByName(Jt),Hr=0;yi=Ar[Hr++];)if(wr=yi.getAttributeNode("id"),wr&&wr.value===Jt)return[yi]}return[]}}),ve.find.TAG=function(Jt,dr){return typeof dr.getElementsByTagName<"u"?dr.getElementsByTagName(Jt):dr.querySelectorAll(Jt)},ve.find.CLASS=function(Jt,dr){if(typeof dr.getElementsByClassName<"u"&&vr)return dr.getElementsByClassName(Jt)},$r=[],or(function(Jt){var dr;nr.appendChild(Jt).innerHTML="<a id='"+qr+"' href='' disabled='disabled'></a><select id='"+qr+"-\r\\' disabled='disabled'><option selected=''></option></select>",Jt.querySelectorAll("[selected]").length||$r.push("\\["+A+"*(?:value|"+Xt+")"),Jt.querySelectorAll("[id~="+qr+"-]").length||$r.push("~="),Jt.querySelectorAll("a#"+qr+"+*").length||$r.push(".#.+[+~]"),Jt.querySelectorAll(":checked").length||$r.push(":checked"),dr=an.createElement("input"),dr.setAttribute("type","hidden"),Jt.appendChild(dr).setAttribute("name","D"),nr.appendChild(Jt).disabled=!0,Jt.querySelectorAll(":disabled").length!==2&&$r.push(":enabled",":disabled"),dr=an.createElement("input"),dr.setAttribute("name",""),Jt.appendChild(dr),Jt.querySelectorAll("[name='']").length||$r.push("\\["+A+"*name"+A+"*="+A+`*(?:''|"")`)}),C.cssHas||$r.push(":has"),$r=$r.length&&new RegExp($r.join("|")),Sa=function(Jt,dr){if(Jt===dr)return ot=!0,0;var wr=!Jt.compareDocumentPosition-!dr.compareDocumentPosition;return wr||(wr=(Jt.ownerDocument||Jt)==(dr.ownerDocument||dr)?Jt.compareDocumentPosition(dr):1,wr&1||!C.sortDetached&&dr.compareDocumentPosition(Jt)===wr?Jt===an||Jt.ownerDocument==ue&&Pi.contains(ue,Jt)?-1:dr===an||dr.ownerDocument==ue&&Pi.contains(ue,dr)?1:Ye?v.call(Ye,Jt)-v.call(Ye,dr):0:wr&4?-1:1)}),an}Pi.matches=function(At,Ut){return Pi(At,null,null,Ut)},Pi.matchesSelector=function(At,Ut){if(_r(At),vr&&!ua[Ut+" "]&&(!$r||!$r.test(Ut)))try{var jn=Fr.call(At,Ut);if(jn||C.disconnectedMatch||At.document&&At.document.nodeType!==11)return jn}catch{ua(Ut,!0)}return Pi(Ut,an,null,[At]).length>0},Pi.contains=function(At,Ut){return(At.ownerDocument||At)!=an&&_r(At),z.contains(At,Ut)},Pi.attr=function(At,Ut){(At.ownerDocument||At)!=an&&_r(At);var jn=ve.attrHandle[Ut.toLowerCase()],Jt=jn&&d.call(ve.attrHandle,Ut.toLowerCase())?jn(At,Ut,!vr):void 0;return Jt!==void 0?Jt:At.getAttribute(Ut)},Pi.error=function(At){throw new Error("Syntax error, unrecognized expression: "+At)},z.uniqueSort=function(At){var Ut,jn=[],Jt=0,dr=0;if(ot=!C.sortStable,Ye=!C.sortStable&&p.call(At,0),q.call(At,Sa),ot){for(;Ut=At[dr++];)Ut===At[dr]&&(Jt=jn.push(dr));for(;Jt--;)te.call(At,jn[Jt],1)}return Ye=null,At},z.fn.uniqueSort=function(){return this.pushStack(z.uniqueSort(p.apply(this)))},ve=z.expr={cacheLength:50,createPseudo:tn,match:kt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(At){return At[1]=At[1].replace(ci,hi),At[3]=(At[3]||At[4]||At[5]||"").replace(ci,hi),At[2]==="~="&&(At[3]=" "+At[3]+" "),At.slice(0,4)},CHILD:function(At){return At[1]=At[1].toLowerCase(),At[1].slice(0,3)==="nth"?(At[3]||Pi.error(At[0]),At[4]=+(At[4]?At[5]+(At[6]||1):2*(At[3]==="even"||At[3]==="odd")),At[5]=+(At[7]+At[8]||At[3]==="odd")):At[3]&&Pi.error(At[0]),At},PSEUDO:function(At){var Ut,jn=!At[6]&&At[2];return kt.CHILD.test(At[0])?null:(At[3]?At[2]=At[4]||At[5]||"":jn&&Xe.test(jn)&&(Ut=Kr(jn,!0))&&(Ut=jn.indexOf(")",jn.length-Ut)-jn.length)&&(At[0]=At[0].slice(0,Ut),At[2]=jn.slice(0,Ut)),At.slice(0,3))}},filter:{TAG:function(At){var Ut=At.replace(ci,hi).toLowerCase();return At==="*"?function(){return!0}:function(jn){return ce(jn,Ut)}},CLASS:function(At){var Ut=Mi[At+" "];return Ut||(Ut=new RegExp("(^|"+A+")"+At+"("+A+"|$)"))&&Mi(At,function(jn){return Ut.test(typeof jn.className=="string"&&jn.className||typeof jn.getAttribute<"u"&&jn.getAttribute("class")||"")})},ATTR:function(At,Ut,jn){return function(Jt){var dr=Pi.attr(Jt,At);return dr==null?Ut==="!=":Ut?(dr+="",Ut==="="?dr===jn:Ut==="!="?dr!==jn:Ut==="^="?jn&&dr.indexOf(jn)===0:Ut==="*="?jn&&dr.indexOf(jn)>-1:Ut==="$="?jn&&dr.slice(-jn.length)===jn:Ut==="~="?(" "+dr.replace(P," ")+" ").indexOf(jn)>-1:Ut==="|="?dr===jn||dr.slice(0,jn.length+1)===jn+"-":!1):!0}},CHILD:function(At,Ut,jn,Jt,dr){var wr=At.slice(0,3)!=="nth",Hr=At.slice(-4)!=="last",Ar=Ut==="of-type";return Jt===1&&dr===0?function(yi){return!!yi.parentNode}:function(yi,Rr,si){var Si,$i,Hi,Oa,Ma,Ua=wr!==Hr?"nextSibling":"previousSibling",Xa=yi.parentNode,Na=Ar&&yi.nodeName.toLowerCase(),za=!si&&!Ar,qa=!1;if(Xa){if(wr){for(;Ua;){for(Hi=yi;Hi=Hi[Ua];)if(Ar?ce(Hi,Na):Hi.nodeType===1)return!1;Ma=Ua=At==="only"&&!Ma&&"nextSibling"}return!0}if(Ma=[Hr?Xa.firstChild:Xa.lastChild],Hr&&za){for($i=Xa[qr]||(Xa[qr]={}),Si=$i[At]||[],Oa=Si[0]===jr&&Si[1],qa=Oa&&Si[2],Hi=Oa&&Xa.childNodes[Oa];Hi=++Oa&&Hi&&Hi[Ua]||(qa=Oa=0)||Ma.pop();)if(Hi.nodeType===1&&++qa&&Hi===yi){$i[At]=[jr,Oa,qa];break}}else if(za&&($i=yi[qr]||(yi[qr]={}),Si=$i[At]||[],Oa=Si[0]===jr&&Si[1],qa=Oa),qa===!1)for(;(Hi=++Oa&&Hi&&Hi[Ua]||(qa=Oa=0)||Ma.pop())&&!((Ar?ce(Hi,Na):Hi.nodeType===1)&&++qa&&(za&&($i=Hi[qr]||(Hi[qr]={}),$i[At]=[jr,qa]),Hi===yi)););return qa-=dr,qa===Jt||qa%Jt===0&&qa/Jt>=0}}},PSEUDO:function(At,Ut){var jn,Jt=ve.pseudos[At]||ve.setFilters[At.toLowerCase()]||Pi.error("unsupported pseudo: "+At);return Jt[qr]?Jt(Ut):Jt.length>1?(jn=[At,At,"",Ut],ve.setFilters.hasOwnProperty(At.toLowerCase())?tn(function(dr,wr){for(var Hr,Ar=Jt(dr,Ut),yi=Ar.length;yi--;)Hr=v.call(dr,Ar[yi]),dr[Hr]=!(wr[Hr]=Ar[yi])}):function(dr){return Jt(dr,0,jn)}):Jt}},pseudos:{not:tn(function(At){var Ut=[],jn=[],Jt=Mn(At.replace(T,"$1"));return Jt[qr]?tn(function(dr,wr,Hr,Ar){for(var yi,Rr=Jt(dr,null,Ar,[]),si=dr.length;si--;)(yi=Rr[si])&&(dr[si]=!(wr[si]=yi))}):function(dr,wr,Hr){return Ut[0]=dr,Jt(Ut,null,Hr,jn),Ut[0]=null,!jn.pop()}}),has:tn(function(At){return function(Ut){return Pi(At,Ut).length>0}}),contains:tn(function(At){return At=At.replace(ci,hi),function(Ut){return(Ut.textContent||z.text(Ut)).indexOf(At)>-1}}),lang:tn(function(At){return dt.test(At||"")||Pi.error("unsupported lang: "+At),At=At.replace(ci,hi).toLowerCase(),function(Ut){var jn;do if(jn=vr?Ut.lang:Ut.getAttribute("xml:lang")||Ut.getAttribute("lang"))return jn=jn.toLowerCase(),jn===At||jn.indexOf(At+"-")===0;while((Ut=Ut.parentNode)&&Ut.nodeType===1);return!1}}),target:function(At){var Ut=g.location&&g.location.hash;return Ut&&Ut.slice(1)===At.id},root:function(At){return At===nr},focus:function(At){return At===Di()&&an.hasFocus()&&!!(At.type||At.href||~At.tabIndex)},enabled:_n(!1),disabled:_n(!0),checked:function(At){return ce(At,"input")&&!!At.checked||ce(At,"option")&&!!At.selected},selected:function(At){return At.parentNode&&At.parentNode.selectedIndex,At.selected===!0},empty:function(At){for(At=At.firstChild;At;At=At.nextSibling)if(At.nodeType<6)return!1;return!0},parent:function(At){return!ve.pseudos.empty(At)},header:function(At){return Vn.test(At.nodeName)},input:function(At){return dn.test(At.nodeName)},button:function(At){return ce(At,"input")&&At.type==="button"||ce(At,"button")},text:function(At){var Ut;return ce(At,"input")&&At.type==="text"&&((Ut=At.getAttribute("type"))==null||Ut.toLowerCase()==="text")},first:vn(function(){return[0]}),last:vn(function(At,Ut){return[Ut-1]}),eq:vn(function(At,Ut,jn){return[jn<0?jn+Ut:jn]}),even:vn(function(At,Ut){for(var jn=0;jn<Ut;jn+=2)At.push(jn);return At}),odd:vn(function(At,Ut){for(var jn=1;jn<Ut;jn+=2)At.push(jn);return At}),lt:vn(function(At,Ut,jn){var Jt;for(jn<0?Jt=jn+Ut:jn>Ut?Jt=Ut:Jt=jn;--Jt>=0;)At.push(Jt);return At}),gt:vn(function(At,Ut,jn){for(var Jt=jn<0?jn+Ut:jn;++Jt<Ut;)At.push(Jt);return At})}},ve.pseudos.nth=ve.pseudos.eq;for(k in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})ve.pseudos[k]=rt(k);for(k in{submit:!0,reset:!0})ve.pseudos[k]=St(k);function Br(){}Br.prototype=ve.filters=ve.pseudos,ve.setFilters=new Br;function Kr(At,Ut){var jn,Jt,dr,wr,Hr,Ar,yi,Rr=ra[At+" "];if(Rr)return Ut?0:Rr.slice(0);for(Hr=At,Ar=[],yi=ve.preFilter;Hr;){(!jn||(Jt=oe.exec(Hr)))&&(Jt&&(Hr=Hr.slice(Jt[0].length)||Hr),Ar.push(dr=[])),jn=!1,(Jt=Ie.exec(Hr))&&(jn=Jt.shift(),dr.push({value:jn,type:Jt[0].replace(T," ")}),Hr=Hr.slice(jn.length));for(wr in ve.filter)(Jt=kt[wr].exec(Hr))&&(!yi[wr]||(Jt=yi[wr](Jt)))&&(jn=Jt.shift(),dr.push({value:jn,type:wr,matches:Jt}),Hr=Hr.slice(jn.length));if(!jn)break}return Ut?Hr.length:Hr?Pi.error(At):ra(At,Ar).slice(0)}function Jr(At){for(var Ut=0,jn=At.length,Jt="";Ut<jn;Ut++)Jt+=At[Ut].value;return Jt}function ii(At,Ut,jn){var Jt=Ut.dir,dr=Ut.next,wr=dr||Jt,Hr=jn&&wr==="parentNode",Ar=vi++;return Ut.first?function(yi,Rr,si){for(;yi=yi[Jt];)if(yi.nodeType===1||Hr)return At(yi,Rr,si);return!1}:function(yi,Rr,si){var Si,$i,Hi=[jr,Ar];if(si){for(;yi=yi[Jt];)if((yi.nodeType===1||Hr)&&At(yi,Rr,si))return!0}else for(;yi=yi[Jt];)if(yi.nodeType===1||Hr)if($i=yi[qr]||(yi[qr]={}),dr&&ce(yi,dr))yi=yi[Jt]||yi;else{if((Si=$i[wr])&&Si[0]===jr&&Si[1]===Ar)return Hi[2]=Si[2];if($i[wr]=Hi,Hi[2]=At(yi,Rr,si))return!0}return!1}}function le(At){return At.length>1?function(Ut,jn,Jt){for(var dr=At.length;dr--;)if(!At[dr](Ut,jn,Jt))return!1;return!0}:At[0]}function Ae(At,Ut,jn){for(var Jt=0,dr=Ut.length;Jt<dr;Jt++)Pi(At,Ut[Jt],jn);return jn}function Oe(At,Ut,jn,Jt,dr){for(var wr,Hr=[],Ar=0,yi=At.length,Rr=Ut!=null;Ar<yi;Ar++)(wr=At[Ar])&&(!jn||jn(wr,Jt,dr))&&(Hr.push(wr),Rr&&Ut.push(Ar));return Hr}function et(At,Ut,jn,Jt,dr,wr){return Jt&&!Jt[qr]&&(Jt=et(Jt)),dr&&!dr[qr]&&(dr=et(dr,wr)),tn(function(Hr,Ar,yi,Rr){var si,Si,$i,Hi,Oa=[],Ma=[],Ua=Ar.length,Xa=Hr||Ae(Ut||"*",yi.nodeType?[yi]:yi,[]),Na=At&&(Hr||!Ut)?Oe(Xa,Oa,At,yi,Rr):Xa;if(jn?(Hi=dr||(Hr?At:Ua||Jt)?[]:Ar,jn(Na,Hi,yi,Rr)):Hi=Na,Jt)for(si=Oe(Hi,Ma),Jt(si,[],yi,Rr),Si=si.length;Si--;)($i=si[Si])&&(Hi[Ma[Si]]=!(Na[Ma[Si]]=$i));if(Hr){if(dr||At){if(dr){for(si=[],Si=Hi.length;Si--;)($i=Hi[Si])&&si.push(Na[Si]=$i);dr(null,Hi=[],si,Rr)}for(Si=Hi.length;Si--;)($i=Hi[Si])&&(si=dr?v.call(Hr,$i):Oa[Si])>-1&&(Hr[si]=!(Ar[si]=$i))}}else Hi=Oe(Hi===Ar?Hi.splice(Ua,Hi.length):Hi),dr?dr(null,Ar,Hi,Rr):Lt.apply(Ar,Hi)})}function Ot(At){for(var Ut,jn,Jt,dr=At.length,wr=ve.relative[At[0].type],Hr=wr||ve.relative[" "],Ar=wr?1:0,yi=ii(function(Si){return Si===Ut},Hr,!0),Rr=ii(function(Si){return v.call(Ut,Si)>-1},Hr,!0),si=[function(Si,$i,Hi){var Oa=!wr&&(Hi||$i!=Le)||((Ut=$i).nodeType?yi(Si,$i,Hi):Rr(Si,$i,Hi));return Ut=null,Oa}];Ar<dr;Ar++)if(jn=ve.relative[At[Ar].type])si=[ii(le(si),jn)];else{if(jn=ve.filter[At[Ar].type].apply(null,At[Ar].matches),jn[qr]){for(Jt=++Ar;Jt<dr&&!ve.relative[At[Jt].type];Jt++);return et(Ar>1&&le(si),Ar>1&&Jr(At.slice(0,Ar-1).concat({value:At[Ar-2].type===" "?"*":""})).replace(T,"$1"),jn,Ar<Jt&&Ot(At.slice(Ar,Jt)),Jt<dr&&Ot(At=At.slice(Jt)),Jt<dr&&Jr(At))}si.push(jn)}return le(si)}function It(At,Ut){var jn=Ut.length>0,Jt=At.length>0,dr=function(wr,Hr,Ar,yi,Rr){var si,Si,$i,Hi=0,Oa="0",Ma=wr&&[],Ua=[],Xa=Le,Na=wr||Jt&&ve.find.TAG("*",Rr),za=jr+=Xa==null?1:Math.random()||.1,qa=Na.length;for(Rr&&(Le=Hr==an||Hr||Rr);Oa!==qa&&(si=Na[Oa])!=null;Oa++){if(Jt&&si){for(Si=0,!Hr&&si.ownerDocument!=an&&(_r(si),Ar=!vr);$i=At[Si++];)if($i(si,Hr||an,Ar)){Lt.call(yi,si);break}Rr&&(jr=za)}jn&&((si=!$i&&si)&&Hi--,wr&&Ma.push(si))}if(Hi+=Oa,jn&&Oa!==Hi){for(Si=0;$i=Ut[Si++];)$i(Ma,Ua,Hr,Ar);if(wr){if(Hi>0)for(;Oa--;)Ma[Oa]||Ua[Oa]||(Ua[Oa]=se.call(yi));Ua=Oe(Ua)}Lt.apply(yi,Ua),Rr&&!wr&&Ua.length>0&&Hi+Ut.length>1&&z.uniqueSort(yi)}return Rr&&(jr=za,Le=Xa),Ma};return jn?tn(dr):dr}function Mn(At,Ut){var jn,Jt=[],dr=[],wr=Yi[At+" "];if(!wr){for(Ut||(Ut=Kr(At)),jn=Ut.length;jn--;)wr=Ot(Ut[jn]),wr[qr]?Jt.push(wr):dr.push(wr);wr=Yi(At,It(dr,Jt)),wr.selector=At}return wr}function mn(At,Ut,jn,Jt){var dr,wr,Hr,Ar,yi,Rr=typeof At=="function"&&At,si=!Jt&&Kr(At=Rr.selector||At);if(jn=jn||[],si.length===1){if(wr=si[0]=si[0].slice(0),wr.length>2&&(Hr=wr[0]).type==="ID"&&Ut.nodeType===9&&vr&&ve.relative[wr[1].type]){if(Ut=(ve.find.ID(Hr.matches[0].replace(ci,hi),Ut)||[])[0],Ut)Rr&&(Ut=Ut.parentNode);else return jn;At=At.slice(wr.shift().value.length)}for(dr=kt.needsContext.test(At)?0:wr.length;dr--&&(Hr=wr[dr],!ve.relative[Ar=Hr.type]);)if((yi=ve.find[Ar])&&(Jt=yi(Hr.matches[0].replace(ci,hi),yr.test(wr[0].type)&&Ln(Ut.parentNode)||Ut))){if(wr.splice(dr,1),At=Jt.length&&Jr(wr),!At)return Lt.apply(jn,Jt),jn;break}}return(Rr||Mn(At,si))(Jt,Ut,!vr,jn,!Ut||yr.test(At)&&Ln(Ut.parentNode)||Ut),jn}C.sortStable=qr.split("").sort(Sa).join("")===qr,_r(),C.sortDetached=or(function(At){return At.compareDocumentPosition(an.createElement("fieldset"))&1}),z.find=Pi,z.expr[":"]=z.expr.pseudos,z.unique=z.uniqueSort,Pi.compile=Mn,Pi.select=mn,Pi.setDocument=_r,Pi.tokenize=Kr,Pi.escape=z.escapeSelector,Pi.getText=z.text,Pi.isXML=z.isXMLDoc,Pi.selectors=z.expr,Pi.support=z.support,Pi.uniqueSort=z.uniqueSort})();var Te=function(k,ve,Le){for(var Ye=[],ot=Le!==void 0;(k=k[ve])&&k.nodeType!==9;)if(k.nodeType===1){if(ot&&z(k).is(Le))break;Ye.push(k)}return Ye},je=function(k,ve){for(var Le=[];k;k=k.nextSibling)k.nodeType===1&&k!==ve&&Le.push(k);return Le},yt=z.expr.match.needsContext,tt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ze(k,ve,Le){return L(ve)?z.grep(k,function(Ye,ot){return!!ve.call(Ye,ot,Ye)!==Le}):ve.nodeType?z.grep(k,function(Ye){return Ye===ve!==Le}):typeof ve!="string"?z.grep(k,function(Ye){return v.call(ve,Ye)>-1!==Le}):z.filter(ve,k,Le)}z.filter=function(k,ve,Le){var Ye=ve[0];return Le&&(k=":not("+k+")"),ve.length===1&&Ye.nodeType===1?z.find.matchesSelector(Ye,k)?[Ye]:[]:z.find.matches(k,z.grep(ve,function(ot){return ot.nodeType===1}))},z.fn.extend({find:function(k){var ve,Le,Ye=this.length,ot=this;if(typeof k!="string")return this.pushStack(z(k).filter(function(){for(ve=0;ve<Ye;ve++)if(z.contains(ot[ve],this))return!0}));for(Le=this.pushStack([]),ve=0;ve<Ye;ve++)z.find(k,ot[ve],Le);return Ye>1?z.uniqueSort(Le):Le},filter:function(k){return this.pushStack(Ze(this,k||[],!1))},not:function(k){return this.pushStack(Ze(this,k||[],!0))},is:function(k){return!!Ze(this,typeof k=="string"&&yt.test(k)?z(k):k||[],!1).length}});var Ne,it=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Rt=z.fn.init=function(k,ve,Le){var Ye,ot;if(!k)return this;if(Le=Le||Ne,typeof k=="string")if(k[0]==="<"&&k[k.length-1]===">"&&k.length>=3?Ye=[null,k,null]:Ye=it.exec(k),Ye&&(Ye[1]||!ve))if(Ye[1]){if(ve=ve instanceof z?ve[0]:ve,z.merge(this,z.parseHTML(Ye[1],ve&&ve.nodeType?ve.ownerDocument||ve:I,!0)),tt.test(Ye[1])&&z.isPlainObject(ve))for(Ye in ve)L(this[Ye])?this[Ye](ve[Ye]):this.attr(Ye,ve[Ye]);return this}else return ot=I.getElementById(Ye[2]),ot&&(this[0]=ot,this.length=1),this;else return!ve||ve.jquery?(ve||Le).find(k):this.constructor(ve).find(k);else{if(k.nodeType)return this[0]=k,this.length=1,this;if(L(k))return Le.ready!==void 0?Le.ready(k):k(z)}return z.makeArray(k,this)};Rt.prototype=z.fn,Ne=z(I);var Dn=/^(?:parents|prev(?:Until|All))/,Mt={children:!0,contents:!0,next:!0,prev:!0};z.fn.extend({has:function(k){var ve=z(k,this),Le=ve.length;return this.filter(function(){for(var Ye=0;Ye<Le;Ye++)if(z.contains(this,ve[Ye]))return!0})},closest:function(k,ve){var Le,Ye=0,ot=this.length,Lt=[],an=typeof k!="string"&&z(k);if(!yt.test(k)){for(;Ye<ot;Ye++)for(Le=this[Ye];Le&&Le!==ve;Le=Le.parentNode)if(Le.nodeType<11&&(an?an.index(Le)>-1:Le.nodeType===1&&z.find.matchesSelector(Le,k))){Lt.push(Le);break}}return this.pushStack(Lt.length>1?z.uniqueSort(Lt):Lt)},index:function(k){return k?typeof k=="string"?v.call(z(k),this[0]):v.call(this,k.jquery?k[0]:k):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(k,ve){return this.pushStack(z.uniqueSort(z.merge(this.get(),z(k,ve))))},addBack:function(k){return this.add(k==null?this.prevObject:this.prevObject.filter(k))}});function Wt(k,ve){for(;(k=k[ve])&&k.nodeType!==1;);return k}z.each({parent:function(k){var ve=k.parentNode;return ve&&ve.nodeType!==11?ve:null},parents:function(k){return Te(k,"parentNode")},parentsUntil:function(k,ve,Le){return Te(k,"parentNode",Le)},next:function(k){return Wt(k,"nextSibling")},prev:function(k){return Wt(k,"previousSibling")},nextAll:function(k){return Te(k,"nextSibling")},prevAll:function(k){return Te(k,"previousSibling")},nextUntil:function(k,ve,Le){return Te(k,"nextSibling",Le)},prevUntil:function(k,ve,Le){return Te(k,"previousSibling",Le)},siblings:function(k){return je((k.parentNode||{}).firstChild,k)},children:function(k){return je(k.firstChild)},contents:function(k){return k.contentDocument!=null&&f(k.contentDocument)?k.contentDocument:(ce(k,"template")&&(k=k.content||k),z.merge([],k.childNodes))}},function(k,ve){z.fn[k]=function(Le,Ye){var ot=z.map(this,ve,Le);return k.slice(-5)!=="Until"&&(Ye=Le),Ye&&typeof Ye=="string"&&(ot=z.filter(Ye,ot)),this.length>1&&(Mt[k]||z.uniqueSort(ot),Dn.test(k)&&ot.reverse()),this.pushStack(ot)}});var Tn=/[^\x20\t\r\n\f]+/g;function bn(k){var ve={};return z.each(k.match(Tn)||[],function(Le,Ye){ve[Ye]=!0}),ve}z.Callbacks=function(k){k=typeof k=="string"?bn(k):z.extend({},k);var ve,Le,Ye,ot,Lt=[],an=[],nr=-1,vr=function(){for(ot=ot||k.once,Ye=ve=!0;an.length;nr=-1)for(Le=an.shift();++nr<Lt.length;)Lt[nr].apply(Le[0],Le[1])===!1&&k.stopOnFalse&&(nr=Lt.length,Le=!1);k.memory||(Le=!1),ve=!1,ot&&(Le?Lt=[]:Lt="")},$r={add:function(){return Lt&&(Le&&!ve&&(nr=Lt.length-1,an.push(Le)),function Fr(qr){z.each(qr,function(jr,vi){L(vi)?(!k.unique||!$r.has(vi))&&Lt.push(vi):vi&&vi.length&&ee(vi)!=="string"&&Fr(vi)})}(arguments),Le&&!ve&&vr()),this},remove:function(){return z.each(arguments,function(Fr,qr){for(var jr;(jr=z.inArray(qr,Lt,jr))>-1;)Lt.splice(jr,1),jr<=nr&&nr--}),this},has:function(Fr){return Fr?z.inArray(Fr,Lt)>-1:Lt.length>0},empty:function(){return Lt&&(Lt=[]),this},disable:function(){return ot=an=[],Lt=Le="",this},disabled:function(){return!Lt},lock:function(){return ot=an=[],!Le&&!ve&&(Lt=Le=""),this},locked:function(){return!!ot},fireWith:function(Fr,qr){return ot||(qr=qr||[],qr=[Fr,qr.slice?qr.slice():qr],an.push(qr),ve||vr()),this},fire:function(){return $r.fireWith(this,arguments),this},fired:function(){return!!Ye}};return $r};function $t(k){return k}function Ct(k){throw k}function Z(k,ve,Le,Ye){var ot;try{k&&L(ot=k.promise)?ot.call(k).done(ve).fail(Le):k&&L(ot=k.then)?ot.call(k,ve,Le):ve.apply(void 0,[k].slice(Ye))}catch(Lt){Le.apply(void 0,[Lt])}}z.extend({Deferred:function(k){var ve=[["notify","progress",z.Callbacks("memory"),z.Callbacks("memory"),2],["resolve","done",z.Callbacks("once memory"),z.Callbacks("once memory"),0,"resolved"],["reject","fail",z.Callbacks("once memory"),z.Callbacks("once memory"),1,"rejected"]],Le="pending",Ye={state:function(){return Le},always:function(){return ot.done(arguments).fail(arguments),this},catch:function(Lt){return Ye.then(null,Lt)},pipe:function(){var Lt=arguments;return z.Deferred(function(an){z.each(ve,function(nr,vr){var $r=L(Lt[vr[4]])&&Lt[vr[4]];ot[vr[1]](function(){var Fr=$r&&$r.apply(this,arguments);Fr&&L(Fr.promise)?Fr.promise().progress(an.notify).done(an.resolve).fail(an.reject):an[vr[0]+"With"](this,$r?[Fr]:arguments)})}),Lt=null}).promise()},then:function(Lt,an,nr){var vr=0;function $r(Fr,qr,jr,vi){return function(){var Mi=this,ra=arguments,Yi=function(){var Sa,Xt;if(!(Fr<vr)){if(Sa=jr.apply(Mi,ra),Sa===qr.promise())throw new TypeError("Thenable self-resolution");Xt=Sa&&(typeof Sa=="object"||typeof Sa=="function")&&Sa.then,L(Xt)?vi?Xt.call(Sa,$r(vr,qr,$t,vi),$r(vr,qr,Ct,vi)):(vr++,Xt.call(Sa,$r(vr,qr,$t,vi),$r(vr,qr,Ct,vi),$r(vr,qr,$t,qr.notifyWith))):(jr!==$t&&(Mi=void 0,ra=[Sa]),(vi||qr.resolveWith)(Mi,ra))}},ua=vi?Yi:function(){try{Yi()}catch(Sa){z.Deferred.exceptionHook&&z.Deferred.exceptionHook(Sa,ua.error),Fr+1>=vr&&(jr!==Ct&&(Mi=void 0,ra=[Sa]),qr.rejectWith(Mi,ra))}};Fr?ua():(z.Deferred.getErrorHook?ua.error=z.Deferred.getErrorHook():z.Deferred.getStackHook&&(ua.error=z.Deferred.getStackHook()),g.setTimeout(ua))}}return z.Deferred(function(Fr){ve[0][3].add($r(0,Fr,L(nr)?nr:$t,Fr.notifyWith)),ve[1][3].add($r(0,Fr,L(Lt)?Lt:$t)),ve[2][3].add($r(0,Fr,L(an)?an:Ct))}).promise()},promise:function(Lt){return Lt!=null?z.extend(Lt,Ye):Ye}},ot={};return z.each(ve,function(Lt,an){var nr=an[2],vr=an[5];Ye[an[1]]=nr.add,vr&&nr.add(function(){Le=vr},ve[3-Lt][2].disable,ve[3-Lt][3].disable,ve[0][2].lock,ve[0][3].lock),nr.add(an[3].fire),ot[an[0]]=function(){return ot[an[0]+"With"](this===ot?void 0:this,arguments),this},ot[an[0]+"With"]=nr.fireWith}),Ye.promise(ot),k&&k.call(ot,ot),ot},when:function(k){var ve=arguments.length,Le=ve,Ye=Array(Le),ot=p.call(arguments),Lt=z.Deferred(),an=function(nr){return function(vr){Ye[nr]=this,ot[nr]=arguments.length>1?p.call(arguments):vr,--ve||Lt.resolveWith(Ye,ot)}};if(ve<=1&&(Z(k,Lt.done(an(Le)).resolve,Lt.reject,!ve),Lt.state()==="pending"||L(ot[Le]&&ot[Le].then)))return Lt.then();for(;Le--;)Z(ot[Le],an(Le),Lt.reject);return Lt.promise()}});var me=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;z.Deferred.exceptionHook=function(k,ve){g.console&&g.console.warn&&k&&me.test(k.name)&&g.console.warn("jQuery.Deferred exception: "+k.message,k.stack,ve)},z.readyException=function(k){g.setTimeout(function(){throw k})};var ke=z.Deferred();z.fn.ready=function(k){return ke.then(k).catch(function(ve){z.readyException(ve)}),this},z.extend({isReady:!1,readyWait:1,ready:function(k){(k===!0?--z.readyWait:z.isReady)||(z.isReady=!0,!(k!==!0&&--z.readyWait>0)&&ke.resolveWith(I,[z]))}}),z.ready.then=ke.then;function Ee(){I.removeEventListener("DOMContentLoaded",Ee),g.removeEventListener("load",Ee),z.ready()}I.readyState==="complete"||I.readyState!=="loading"&&!I.documentElement.doScroll?g.setTimeout(z.ready):(I.addEventListener("DOMContentLoaded",Ee),g.addEventListener("load",Ee));var _e=function(k,ve,Le,Ye,ot,Lt,an){var nr=0,vr=k.length,$r=Le==null;if(ee(Le)==="object"){ot=!0;for(nr in Le)_e(k,ve,nr,Le[nr],!0,Lt,an)}else if(Ye!==void 0&&(ot=!0,L(Ye)||(an=!0),$r&&(an?(ve.call(k,Ye),ve=null):($r=ve,ve=function(Fr,qr,jr){return $r.call(z(Fr),jr)})),ve))for(;nr<vr;nr++)ve(k[nr],Le,an?Ye:Ye.call(k[nr],nr,ve(k[nr],Le)));return ot?k:$r?ve.call(k):vr?ve(k[0],Le):Lt},ge=/^-ms-/,Me=/-([a-z])/g;function lt(k,ve){return ve.toUpperCase()}function Ft(k){return k.replace(ge,"ms-").replace(Me,lt)}var Et=function(k){return k.nodeType===1||k.nodeType===9||!+k.nodeType};function Zt(){this.expando=z.expando+Zt.uid++}Zt.uid=1,Zt.prototype={cache:function(k){var ve=k[this.expando];return ve||(ve={},Et(k)&&(k.nodeType?k[this.expando]=ve:Object.defineProperty(k,this.expando,{value:ve,configurable:!0}))),ve},set:function(k,ve,Le){var Ye,ot=this.cache(k);if(typeof ve=="string")ot[Ft(ve)]=Le;else for(Ye in ve)ot[Ft(Ye)]=ve[Ye];return ot},get:function(k,ve){return ve===void 0?this.cache(k):k[this.expando]&&k[this.expando][Ft(ve)]},access:function(k,ve,Le){return ve===void 0||ve&&typeof ve=="string"&&Le===void 0?this.get(k,ve):(this.set(k,ve,Le),Le!==void 0?Le:ve)},remove:function(k,ve){var Le,Ye=k[this.expando];if(Ye!==void 0){if(ve!==void 0)for(Array.isArray(ve)?ve=ve.map(Ft):(ve=Ft(ve),ve=ve in Ye?[ve]:ve.match(Tn)||[]),Le=ve.length;Le--;)delete Ye[ve[Le]];(ve===void 0||z.isEmptyObject(Ye))&&(k.nodeType?k[this.expando]=void 0:delete k[this.expando])}},hasData:function(k){var ve=k[this.expando];return ve!==void 0&&!z.isEmptyObject(ve)}};var nn=new Zt,Pn=new Zt,rn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Vt=/[A-Z]/g;function Kn(k){return k==="true"?!0:k==="false"?!1:k==="null"?null:k===+k+""?+k:rn.test(k)?JSON.parse(k):k}function ur(k,ve,Le){var Ye;if(Le===void 0&&k.nodeType===1)if(Ye="data-"+ve.replace(Vt,"-$&").toLowerCase(),Le=k.getAttribute(Ye),typeof Le=="string"){try{Le=Kn(Le)}catch{}Pn.set(k,ve,Le)}else Le=void 0;return Le}z.extend({hasData:function(k){return Pn.hasData(k)||nn.hasData(k)},data:function(k,ve,Le){return Pn.access(k,ve,Le)},removeData:function(k,ve){Pn.remove(k,ve)},_data:function(k,ve,Le){return nn.access(k,ve,Le)},_removeData:function(k,ve){nn.remove(k,ve)}}),z.fn.extend({data:function(k,ve){var Le,Ye,ot,Lt=this[0],an=Lt&&Lt.attributes;if(k===void 0){if(this.length&&(ot=Pn.get(Lt),Lt.nodeType===1&&!nn.get(Lt,"hasDataAttrs"))){for(Le=an.length;Le--;)an[Le]&&(Ye=an[Le].name,Ye.indexOf("data-")===0&&(Ye=Ft(Ye.slice(5)),ur(Lt,Ye,ot[Ye])));nn.set(Lt,"hasDataAttrs",!0)}return ot}return typeof k=="object"?this.each(function(){Pn.set(this,k)}):_e(this,function(nr){var vr;if(Lt&&nr===void 0)return vr=Pn.get(Lt,k),vr!==void 0||(vr=ur(Lt,k),vr!==void 0)?vr:void 0;this.each(function(){Pn.set(this,k,nr)})},null,ve,arguments.length>1,null,!0)},removeData:function(k){return this.each(function(){Pn.remove(this,k)})}}),z.extend({queue:function(k,ve,Le){var Ye;if(k)return ve=(ve||"fx")+"queue",Ye=nn.get(k,ve),Le&&(!Ye||Array.isArray(Le)?Ye=nn.access(k,ve,z.makeArray(Le)):Ye.push(Le)),Ye||[]},dequeue:function(k,ve){ve=ve||"fx";var Le=z.queue(k,ve),Ye=Le.length,ot=Le.shift(),Lt=z._queueHooks(k,ve),an=function(){z.dequeue(k,ve)};ot==="inprogress"&&(ot=Le.shift(),Ye--),ot&&(ve==="fx"&&Le.unshift("inprogress"),delete Lt.stop,ot.call(k,an,Lt)),!Ye&&Lt&&Lt.empty.fire()},_queueHooks:function(k,ve){var Le=ve+"queueHooks";return nn.get(k,Le)||nn.access(k,Le,{empty:z.Callbacks("once memory").add(function(){nn.remove(k,[ve+"queue",Le])})})}}),z.fn.extend({queue:function(k,ve){var Le=2;return typeof k!="string"&&(ve=k,k="fx",Le--),arguments.length<Le?z.queue(this[0],k):ve===void 0?this:this.each(function(){var Ye=z.queue(this,k,ve);z._queueHooks(this,k),k==="fx"&&Ye[0]!=="inprogress"&&z.dequeue(this,k)})},dequeue:function(k){return this.each(function(){z.dequeue(this,k)})},clearQueue:function(k){return this.queue(k||"fx",[])},promise:function(k,ve){var Le,Ye=1,ot=z.Deferred(),Lt=this,an=this.length,nr=function(){--Ye||ot.resolveWith(Lt,[Lt])};for(typeof k!="string"&&(ve=k,k=void 0),k=k||"fx";an--;)Le=nn.get(Lt[an],k+"queueHooks"),Le&&Le.empty&&(Ye++,Le.empty.add(nr));return nr(),ot.promise(ve)}});var on=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,tr=new RegExp("^(?:([+-])=|)("+on+")([a-z%]*)$","i"),Cn=["Top","Right","Bottom","Left"],Wn=I.documentElement,er=function(k){return z.contains(k.ownerDocument,k)},Fn={composed:!0};Wn.getRootNode&&(er=function(k){return z.contains(k.ownerDocument,k)||k.getRootNode(Fn)===k.ownerDocument});var en=function(k,ve){return k=ve||k,k.style.display==="none"||k.style.display===""&&er(k)&&z.css(k,"display")==="none"};function gn(k,ve,Le,Ye){var ot,Lt,an=20,nr=Ye?function(){return Ye.cur()}:function(){return z.css(k,ve,"")},vr=nr(),$r=Le&&Le[3]||(z.cssNumber[ve]?"":"px"),Fr=k.nodeType&&(z.cssNumber[ve]||$r!=="px"&&+vr)&&tr.exec(z.css(k,ve));if(Fr&&Fr[3]!==$r){for(vr=vr/2,$r=$r||Fr[3],Fr=+vr||1;an--;)z.style(k,ve,Fr+$r),(1-Lt)*(1-(Lt=nr()/vr||.5))<=0&&(an=0),Fr=Fr/Lt;Fr=Fr*2,z.style(k,ve,Fr+$r),Le=Le||[]}return Le&&(Fr=+Fr||+vr||0,ot=Le[1]?Fr+(Le[1]+1)*Le[2]:+Le[2],Ye&&(Ye.unit=$r,Ye.start=Fr,Ye.end=ot)),ot}var kn={};function Jn(k){var ve,Le=k.ownerDocument,Ye=k.nodeName,ot=kn[Ye];return ot||(ve=Le.body.appendChild(Le.createElement(Ye)),ot=z.css(ve,"display"),ve.parentNode.removeChild(ve),ot==="none"&&(ot="block"),kn[Ye]=ot,ot)}function Nn(k,ve){for(var Le,Ye,ot=[],Lt=0,an=k.length;Lt<an;Lt++)Ye=k[Lt],Ye.style&&(Le=Ye.style.display,ve?(Le==="none"&&(ot[Lt]=nn.get(Ye,"display")||null,ot[Lt]||(Ye.style.display="")),Ye.style.display===""&&en(Ye)&&(ot[Lt]=Jn(Ye))):Le!=="none"&&(ot[Lt]="none",nn.set(Ye,"display",Le)));for(Lt=0;Lt<an;Lt++)ot[Lt]!=null&&(k[Lt].style.display=ot[Lt]);return k}z.fn.extend({show:function(){return Nn(this,!0)},hide:function(){return Nn(this)},toggle:function(k){return typeof k=="boolean"?k?this.show():this.hide():this.each(function(){en(this)?z(this).show():z(this).hide()})}});var kr=/^(?:checkbox|radio)$/i,bt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ne=/^$|^module$|\/(?:java|ecma)script/i;(function(){var k=I.createDocumentFragment(),ve=k.appendChild(I.createElement("div")),Le=I.createElement("input");Le.setAttribute("type","radio"),Le.setAttribute("checked","checked"),Le.setAttribute("name","t"),ve.appendChild(Le),C.checkClone=ve.cloneNode(!0).cloneNode(!0).lastChild.checked,ve.innerHTML="<textarea>x</textarea>",C.noCloneChecked=!!ve.cloneNode(!0).lastChild.defaultValue,ve.innerHTML="<option></option>",C.option=!!ve.lastChild})();var fe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,C.option||(fe.optgroup=fe.option=[1,"<select multiple='multiple'>","</select>"]);function K(k,ve){var Le;return typeof k.getElementsByTagName<"u"?Le=k.getElementsByTagName(ve||"*"):typeof k.querySelectorAll<"u"?Le=k.querySelectorAll(ve||"*"):Le=[],ve===void 0||ve&&ce(k,ve)?z.merge([k],Le):Le}function he(k,ve){for(var Le=0,Ye=k.length;Le<Ye;Le++)nn.set(k[Le],"globalEval",!ve||nn.get(ve[Le],"globalEval"))}var Fe=/<|&#?\w+;/;function Nt(k,ve,Le,Ye,ot){for(var Lt,an,nr,vr,$r,Fr,qr=ve.createDocumentFragment(),jr=[],vi=0,Mi=k.length;vi<Mi;vi++)if(Lt=k[vi],Lt||Lt===0)if(ee(Lt)==="object")z.merge(jr,Lt.nodeType?[Lt]:Lt);else if(!Fe.test(Lt))jr.push(ve.createTextNode(Lt));else{for(an=an||qr.appendChild(ve.createElement("div")),nr=(bt.exec(Lt)||["",""])[1].toLowerCase(),vr=fe[nr]||fe._default,an.innerHTML=vr[1]+z.htmlPrefilter(Lt)+vr[2],Fr=vr[0];Fr--;)an=an.lastChild;z.merge(jr,an.childNodes),an=qr.firstChild,an.textContent=""}for(qr.textContent="",vi=0;Lt=jr[vi++];){if(Ye&&z.inArray(Lt,Ye)>-1){ot&&ot.push(Lt);continue}if($r=er(Lt),an=K(qr.appendChild(Lt),"script"),$r&&he(an),Le)for(Fr=0;Lt=an[Fr++];)ne.test(Lt.type||"")&&Le.push(Lt)}return qr}var ln=/^([^.]*)(?:\.(.+)|)/;function pn(){return!0}function Yn(){return!1}function ht(k,ve,Le,Ye,ot,Lt){var an,nr;if(typeof ve=="object"){typeof Le!="string"&&(Ye=Ye||Le,Le=void 0);for(nr in ve)ht(k,nr,Le,Ye,ve[nr],Lt);return k}if(Ye==null&&ot==null?(ot=Le,Ye=Le=void 0):ot==null&&(typeof Le=="string"?(ot=Ye,Ye=void 0):(ot=Ye,Ye=Le,Le=void 0)),ot===!1)ot=Yn;else if(!ot)return k;return Lt===1&&(an=ot,ot=function(vr){return z().off(vr),an.apply(this,arguments)},ot.guid=an.guid||(an.guid=z.guid++)),k.each(function(){z.event.add(this,ve,ot,Ye,Le)})}z.event={global:{},add:function(k,ve,Le,Ye,ot){var Lt,an,nr,vr,$r,Fr,qr,jr,vi,Mi,ra,Yi=nn.get(k);if(Et(k))for(Le.handler&&(Lt=Le,Le=Lt.handler,ot=Lt.selector),ot&&z.find.matchesSelector(Wn,ot),Le.guid||(Le.guid=z.guid++),(vr=Yi.events)||(vr=Yi.events=Object.create(null)),(an=Yi.handle)||(an=Yi.handle=function(ua){return typeof z<"u"&&z.event.triggered!==ua.type?z.event.dispatch.apply(k,arguments):void 0}),ve=(ve||"").match(Tn)||[""],$r=ve.length;$r--;)nr=ln.exec(ve[$r])||[],vi=ra=nr[1],Mi=(nr[2]||"").split(".").sort(),vi&&(qr=z.event.special[vi]||{},vi=(ot?qr.delegateType:qr.bindType)||vi,qr=z.event.special[vi]||{},Fr=z.extend({type:vi,origType:ra,data:Ye,handler:Le,guid:Le.guid,selector:ot,needsContext:ot&&z.expr.match.needsContext.test(ot),namespace:Mi.join(".")},Lt),(jr=vr[vi])||(jr=vr[vi]=[],jr.delegateCount=0,(!qr.setup||qr.setup.call(k,Ye,Mi,an)===!1)&&k.addEventListener&&k.addEventListener(vi,an)),qr.add&&(qr.add.call(k,Fr),Fr.handler.guid||(Fr.handler.guid=Le.guid)),ot?jr.splice(jr.delegateCount++,0,Fr):jr.push(Fr),z.event.global[vi]=!0)},remove:function(k,ve,Le,Ye,ot){var Lt,an,nr,vr,$r,Fr,qr,jr,vi,Mi,ra,Yi=nn.hasData(k)&&nn.get(k);if(!(!Yi||!(vr=Yi.events))){for(ve=(ve||"").match(Tn)||[""],$r=ve.length;$r--;){if(nr=ln.exec(ve[$r])||[],vi=ra=nr[1],Mi=(nr[2]||"").split(".").sort(),!vi){for(vi in vr)z.event.remove(k,vi+ve[$r],Le,Ye,!0);continue}for(qr=z.event.special[vi]||{},vi=(Ye?qr.delegateType:qr.bindType)||vi,jr=vr[vi]||[],nr=nr[2]&&new RegExp("(^|\\.)"+Mi.join("\\.(?:.*\\.|)")+"(\\.|$)"),an=Lt=jr.length;Lt--;)Fr=jr[Lt],(ot||ra===Fr.origType)&&(!Le||Le.guid===Fr.guid)&&(!nr||nr.test(Fr.namespace))&&(!Ye||Ye===Fr.selector||Ye==="**"&&Fr.selector)&&(jr.splice(Lt,1),Fr.selector&&jr.delegateCount--,qr.remove&&qr.remove.call(k,Fr));an&&!jr.length&&((!qr.teardown||qr.teardown.call(k,Mi,Yi.handle)===!1)&&z.removeEvent(k,vi,Yi.handle),delete vr[vi])}z.isEmptyObject(vr)&&nn.remove(k,"handle events")}},dispatch:function(k){var ve,Le,Ye,ot,Lt,an,nr=new Array(arguments.length),vr=z.event.fix(k),$r=(nn.get(this,"events")||Object.create(null))[vr.type]||[],Fr=z.event.special[vr.type]||{};for(nr[0]=vr,ve=1;ve<arguments.length;ve++)nr[ve]=arguments[ve];if(vr.delegateTarget=this,!(Fr.preDispatch&&Fr.preDispatch.call(this,vr)===!1)){for(an=z.event.handlers.call(this,vr,$r),ve=0;(ot=an[ve++])&&!vr.isPropagationStopped();)for(vr.currentTarget=ot.elem,Le=0;(Lt=ot.handlers[Le++])&&!vr.isImmediatePropagationStopped();)(!vr.rnamespace||Lt.namespace===!1||vr.rnamespace.test(Lt.namespace))&&(vr.handleObj=Lt,vr.data=Lt.data,Ye=((z.event.special[Lt.origType]||{}).handle||Lt.handler).apply(ot.elem,nr),Ye!==void 0&&(vr.result=Ye)===!1&&(vr.preventDefault(),vr.stopPropagation()));return Fr.postDispatch&&Fr.postDispatch.call(this,vr),vr.result}},handlers:function(k,ve){var Le,Ye,ot,Lt,an,nr=[],vr=ve.delegateCount,$r=k.target;if(vr&&$r.nodeType&&!(k.type==="click"&&k.button>=1)){for(;$r!==this;$r=$r.parentNode||this)if($r.nodeType===1&&!(k.type==="click"&&$r.disabled===!0)){for(Lt=[],an={},Le=0;Le<vr;Le++)Ye=ve[Le],ot=Ye.selector+" ",an[ot]===void 0&&(an[ot]=Ye.needsContext?z(ot,this).index($r)>-1:z.find(ot,this,null,[$r]).length),an[ot]&&Lt.push(Ye);Lt.length&&nr.push({elem:$r,handlers:Lt})}}return $r=this,vr<ve.length&&nr.push({elem:$r,handlers:ve.slice(vr)}),nr},addProp:function(k,ve){Object.defineProperty(z.Event.prototype,k,{enumerable:!0,configurable:!0,get:L(ve)?function(){if(this.originalEvent)return ve(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[k]},set:function(Le){Object.defineProperty(this,k,{enumerable:!0,configurable:!0,writable:!0,value:Le})}})},fix:function(k){return k[z.expando]?k:new z.Event(k)},special:{load:{noBubble:!0},click:{setup:function(k){var ve=this||k;return kr.test(ve.type)&&ve.click&&ce(ve,"input")&&De(ve,"click",!0),!1},trigger:function(k){var ve=this||k;return kr.test(ve.type)&&ve.click&&ce(ve,"input")&&De(ve,"click"),!0},_default:function(k){var ve=k.target;return kr.test(ve.type)&&ve.click&&ce(ve,"input")&&nn.get(ve,"click")||ce(ve,"a")}},beforeunload:{postDispatch:function(k){k.result!==void 0&&k.originalEvent&&(k.originalEvent.returnValue=k.result)}}}};function De(k,ve,Le){if(!Le){nn.get(k,ve)===void 0&&z.event.add(k,ve,pn);return}nn.set(k,ve,!1),z.event.add(k,ve,{namespace:!1,handler:function(Ye){var ot,Lt=nn.get(this,ve);if(Ye.isTrigger&1&&this[ve]){if(Lt)(z.event.special[ve]||{}).delegateType&&Ye.stopPropagation();else if(Lt=p.call(arguments),nn.set(this,ve,Lt),this[ve](),ot=nn.get(this,ve),nn.set(this,ve,!1),Lt!==ot)return Ye.stopImmediatePropagation(),Ye.preventDefault(),ot}else Lt&&(nn.set(this,ve,z.event.trigger(Lt[0],Lt.slice(1),this)),Ye.stopPropagation(),Ye.isImmediatePropagationStopped=pn)}})}z.removeEvent=function(k,ve,Le){k.removeEventListener&&k.removeEventListener(ve,Le)},z.Event=function(k,ve){if(!(this instanceof z.Event))return new z.Event(k,ve);k&&k.type?(this.originalEvent=k,this.type=k.type,this.isDefaultPrevented=k.defaultPrevented||k.defaultPrevented===void 0&&k.returnValue===!1?pn:Yn,this.target=k.target&&k.target.nodeType===3?k.target.parentNode:k.target,this.currentTarget=k.currentTarget,this.relatedTarget=k.relatedTarget):this.type=k,ve&&z.extend(this,ve),this.timeStamp=k&&k.timeStamp||Date.now(),this[z.expando]=!0},z.Event.prototype={constructor:z.Event,isDefaultPrevented:Yn,isPropagationStopped:Yn,isImmediatePropagationStopped:Yn,isSimulated:!1,preventDefault:function(){var k=this.originalEvent;this.isDefaultPrevented=pn,k&&!this.isSimulated&&k.preventDefault()},stopPropagation:function(){var k=this.originalEvent;this.isPropagationStopped=pn,k&&!this.isSimulated&&k.stopPropagation()},stopImmediatePropagation:function(){var k=this.originalEvent;this.isImmediatePropagationStopped=pn,k&&!this.isSimulated&&k.stopImmediatePropagation(),this.stopPropagation()}},z.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},z.event.addProp),z.each({focus:"focusin",blur:"focusout"},function(k,ve){function Le(Ye){if(I.documentMode){var ot=nn.get(this,"handle"),Lt=z.event.fix(Ye);Lt.type=Ye.type==="focusin"?"focus":"blur",Lt.isSimulated=!0,ot(Ye),Lt.target===Lt.currentTarget&&ot(Lt)}else z.event.simulate(ve,Ye.target,z.event.fix(Ye))}z.event.special[k]={setup:function(){var Ye;if(De(this,k,!0),I.documentMode)Ye=nn.get(this,ve),Ye||this.addEventListener(ve,Le),nn.set(this,ve,(Ye||0)+1);else return!1},trigger:function(){return De(this,k),!0},teardown:function(){var Ye;if(I.documentMode)Ye=nn.get(this,ve)-1,Ye?nn.set(this,ve,Ye):(this.removeEventListener(ve,Le),nn.remove(this,ve));else return!1},_default:function(Ye){return nn.get(Ye.target,k)},delegateType:ve},z.event.special[ve]={setup:function(){var Ye=this.ownerDocument||this.document||this,ot=I.documentMode?this:Ye,Lt=nn.get(ot,ve);Lt||(I.documentMode?this.addEventListener(ve,Le):Ye.addEventListener(k,Le,!0)),nn.set(ot,ve,(Lt||0)+1)},teardown:function(){var Ye=this.ownerDocument||this.document||this,ot=I.documentMode?this:Ye,Lt=nn.get(ot,ve)-1;Lt?nn.set(ot,ve,Lt):(I.documentMode?this.removeEventListener(ve,Le):Ye.removeEventListener(k,Le,!0),nn.remove(ot,ve))}}}),z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(k,ve){z.event.special[k]={delegateType:ve,bindType:ve,handle:function(Le){var Ye,ot=this,Lt=Le.relatedTarget,an=Le.handleObj;return(!Lt||Lt!==ot&&!z.contains(ot,Lt))&&(Le.type=an.origType,Ye=an.handler.apply(this,arguments),Le.type=ve),Ye}}}),z.fn.extend({on:function(k,ve,Le,Ye){return ht(this,k,ve,Le,Ye)},one:function(k,ve,Le,Ye){return ht(this,k,ve,Le,Ye,1)},off:function(k,ve,Le){var Ye,ot;if(k&&k.preventDefault&&k.handleObj)return Ye=k.handleObj,z(k.delegateTarget).off(Ye.namespace?Ye.origType+"."+Ye.namespace:Ye.origType,Ye.selector,Ye.handler),this;if(typeof k=="object"){for(ot in k)this.off(ot,ve,k[ot]);return this}return(ve===!1||typeof ve=="function")&&(Le=ve,ve=void 0),Le===!1&&(Le=Yn),this.each(function(){z.event.remove(this,k,Le,ve)})}});var we=/<script|<style|<link/i,Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function pt(k,ve){return ce(k,"table")&&ce(ve.nodeType!==11?ve:ve.firstChild,"tr")&&z(k).children("tbody")[0]||k}function We(k){return k.type=(k.getAttribute("type")!==null)+"/"+k.type,k}function Je(k){return(k.type||"").slice(0,5)==="true/"?k.type=k.type.slice(5):k.removeAttribute("type"),k}function ye(k,ve){var Le,Ye,ot,Lt,an,nr,vr;if(ve.nodeType===1){if(nn.hasData(k)&&(Lt=nn.get(k),vr=Lt.events,vr)){nn.remove(ve,"handle events");for(ot in vr)for(Le=0,Ye=vr[ot].length;Le<Ye;Le++)z.event.add(ve,ot,vr[ot][Le])}Pn.hasData(k)&&(an=Pn.access(k),nr=z.extend({},an),Pn.set(ve,nr))}}function Qe(k,ve){var Le=ve.nodeName.toLowerCase();Le==="input"&&kr.test(k.type)?ve.checked=k.checked:(Le==="input"||Le==="textarea")&&(ve.defaultValue=k.defaultValue)}function ze(k,ve,Le,Ye){ve=h(ve);var ot,Lt,an,nr,vr,$r,Fr=0,qr=k.length,jr=qr-1,vi=ve[0],Mi=L(vi);if(Mi||qr>1&&typeof vi=="string"&&!C.checkClone&&Ke.test(vi))return k.each(function(ra){var Yi=k.eq(ra);Mi&&(ve[0]=vi.call(this,ra,Yi.html())),ze(Yi,ve,Le,Ye)});if(qr&&(ot=Nt(ve,k[0].ownerDocument,!1,k,Ye),Lt=ot.firstChild,ot.childNodes.length===1&&(ot=Lt),Lt||Ye)){for(an=z.map(K(ot,"script"),We),nr=an.length;Fr<qr;Fr++)vr=ot,Fr!==jr&&(vr=z.clone(vr,!0,!0),nr&&z.merge(an,K(vr,"script"))),Le.call(k[Fr],vr,Fr);if(nr)for($r=an[an.length-1].ownerDocument,z.map(an,Je),Fr=0;Fr<nr;Fr++)vr=an[Fr],ne.test(vr.type||"")&&!nn.access(vr,"globalEval")&&z.contains($r,vr)&&(vr.src&&(vr.type||"").toLowerCase()!=="module"?z._evalUrl&&!vr.noModule&&z._evalUrl(vr.src,{nonce:vr.nonce||vr.getAttribute("nonce")},$r):$(vr.textContent.replace(be,""),vr,$r))}return k}function qe(k,ve,Le){for(var Ye,ot=ve?z.filter(ve,k):k,Lt=0;(Ye=ot[Lt])!=null;Lt++)!Le&&Ye.nodeType===1&&z.cleanData(K(Ye)),Ye.parentNode&&(Le&&er(Ye)&&he(K(Ye,"script")),Ye.parentNode.removeChild(Ye));return k}z.extend({htmlPrefilter:function(k){return k},clone:function(k,ve,Le){var Ye,ot,Lt,an,nr=k.cloneNode(!0),vr=er(k);if(!C.noCloneChecked&&(k.nodeType===1||k.nodeType===11)&&!z.isXMLDoc(k))for(an=K(nr),Lt=K(k),Ye=0,ot=Lt.length;Ye<ot;Ye++)Qe(Lt[Ye],an[Ye]);if(ve)if(Le)for(Lt=Lt||K(k),an=an||K(nr),Ye=0,ot=Lt.length;Ye<ot;Ye++)ye(Lt[Ye],an[Ye]);else ye(k,nr);return an=K(nr,"script"),an.length>0&&he(an,!vr&&K(k,"script")),nr},cleanData:function(k){for(var ve,Le,Ye,ot=z.event.special,Lt=0;(Le=k[Lt])!==void 0;Lt++)if(Et(Le)){if(ve=Le[nn.expando]){if(ve.events)for(Ye in ve.events)ot[Ye]?z.event.remove(Le,Ye):z.removeEvent(Le,Ye,ve.handle);Le[nn.expando]=void 0}Le[Pn.expando]&&(Le[Pn.expando]=void 0)}}}),z.fn.extend({detach:function(k){return qe(this,k,!0)},remove:function(k){return qe(this,k)},text:function(k){return _e(this,function(ve){return ve===void 0?z.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=ve)})},null,k,arguments.length)},append:function(){return ze(this,arguments,function(k){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ve=pt(this,k);ve.appendChild(k)}})},prepend:function(){return ze(this,arguments,function(k){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ve=pt(this,k);ve.insertBefore(k,ve.firstChild)}})},before:function(){return ze(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this)})},after:function(){return ze(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this.nextSibling)})},empty:function(){for(var k,ve=0;(k=this[ve])!=null;ve++)k.nodeType===1&&(z.cleanData(K(k,!1)),k.textContent="");return this},clone:function(k,ve){return k=k??!1,ve=ve??k,this.map(function(){return z.clone(this,k,ve)})},html:function(k){return _e(this,function(ve){var Le=this[0]||{},Ye=0,ot=this.length;if(ve===void 0&&Le.nodeType===1)return Le.innerHTML;if(typeof ve=="string"&&!we.test(ve)&&!fe[(bt.exec(ve)||["",""])[1].toLowerCase()]){ve=z.htmlPrefilter(ve);try{for(;Ye<ot;Ye++)Le=this[Ye]||{},Le.nodeType===1&&(z.cleanData(K(Le,!1)),Le.innerHTML=ve);Le=0}catch{}}Le&&this.empty().append(ve)},null,k,arguments.length)},replaceWith:function(){var k=[];return ze(this,arguments,function(ve){var Le=this.parentNode;z.inArray(this,k)<0&&(z.cleanData(K(this)),Le&&Le.replaceChild(ve,this))},k)}}),z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(k,ve){z.fn[k]=function(Le){for(var Ye,ot=[],Lt=z(Le),an=Lt.length-1,nr=0;nr<=an;nr++)Ye=nr===an?this:this.clone(!0),z(Lt[nr])[ve](Ye),E.apply(ot,Ye.get());return this.pushStack(ot)}});var Pt=new RegExp("^("+on+")(?!px)[a-z%]+$","i"),zt=/^--/,un=function(k){var ve=k.ownerDocument.defaultView;return(!ve||!ve.opener)&&(ve=g),ve.getComputedStyle(k)},hn=function(k,ve,Le){var Ye,ot,Lt={};for(ot in ve)Lt[ot]=k.style[ot],k.style[ot]=ve[ot];Ye=Le.call(k);for(ot in ve)k.style[ot]=Lt[ot];return Ye},xt=new RegExp(Cn.join("|"),"i");(function(){function k(){if($r){vr.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",$r.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Wn.appendChild(vr).appendChild($r);var Fr=g.getComputedStyle($r);Le=Fr.top!=="1%",nr=ve(Fr.marginLeft)===12,$r.style.right="60%",Lt=ve(Fr.right)===36,Ye=ve(Fr.width)===36,$r.style.position="absolute",ot=ve($r.offsetWidth/3)===12,Wn.removeChild(vr),$r=null}}function ve(Fr){return Math.round(parseFloat(Fr))}var Le,Ye,ot,Lt,an,nr,vr=I.createElement("div"),$r=I.createElement("div");$r.style&&($r.style.backgroundClip="content-box",$r.cloneNode(!0).style.backgroundClip="",C.clearCloneStyle=$r.style.backgroundClip==="content-box",z.extend(C,{boxSizingReliable:function(){return k(),Ye},pixelBoxStyles:function(){return k(),Lt},pixelPosition:function(){return k(),Le},reliableMarginLeft:function(){return k(),nr},scrollboxSize:function(){return k(),ot},reliableTrDimensions:function(){var Fr,qr,jr,vi;return an==null&&(Fr=I.createElement("table"),qr=I.createElement("tr"),jr=I.createElement("div"),Fr.style.cssText="position:absolute;left:-11111px;border-collapse:separate",qr.style.cssText="box-sizing:content-box;border:1px solid",qr.style.height="1px",jr.style.height="9px",jr.style.display="block",Wn.appendChild(Fr).appendChild(qr).appendChild(jr),vi=g.getComputedStyle(qr),an=parseInt(vi.height,10)+parseInt(vi.borderTopWidth,10)+parseInt(vi.borderBottomWidth,10)===qr.offsetHeight,Wn.removeChild(Fr)),an}}))})();function _t(k,ve,Le){var Ye,ot,Lt,an,nr=zt.test(ve),vr=k.style;return Le=Le||un(k),Le&&(an=Le.getPropertyValue(ve)||Le[ve],nr&&an&&(an=an.replace(T,"$1")||void 0),an===""&&!er(k)&&(an=z.style(k,ve)),!C.pixelBoxStyles()&&Pt.test(an)&&xt.test(ve)&&(Ye=vr.width,ot=vr.minWidth,Lt=vr.maxWidth,vr.minWidth=vr.maxWidth=vr.width=an,an=Le.width,vr.width=Ye,vr.minWidth=ot,vr.maxWidth=Lt)),an!==void 0?an+"":an}function qt(k,ve){return{get:function(){if(k()){delete this.get;return}return(this.get=ve).apply(this,arguments)}}}var fn=["Webkit","Moz","ms"],On=I.createElement("div").style,Gn={};function Bn(k){for(var ve=k[0].toUpperCase()+k.slice(1),Le=fn.length;Le--;)if(k=fn[Le]+ve,k in On)return k}function Lr(k){var ve=z.cssProps[k]||Gn[k];return ve||(k in On?k:Gn[k]=Bn(k)||k)}var An=/^(none|table(?!-c[ea]).+)/,Un={position:"absolute",visibility:"hidden",display:"block"},cr={letterSpacing:"0",fontWeight:"400"};function mr(k,ve,Le){var Ye=tr.exec(ve);return Ye?Math.max(0,Ye[2]-(Le||0))+(Ye[3]||"px"):ve}function hr(k,ve,Le,Ye,ot,Lt){var an=ve==="width"?1:0,nr=0,vr=0,$r=0;if(Le===(Ye?"border":"content"))return 0;for(;an<4;an+=2)Le==="margin"&&($r+=z.css(k,Le+Cn[an],!0,ot)),Ye?(Le==="content"&&(vr-=z.css(k,"padding"+Cn[an],!0,ot)),Le!=="margin"&&(vr-=z.css(k,"border"+Cn[an]+"Width",!0,ot))):(vr+=z.css(k,"padding"+Cn[an],!0,ot),Le!=="padding"?vr+=z.css(k,"border"+Cn[an]+"Width",!0,ot):nr+=z.css(k,"border"+Cn[an]+"Width",!0,ot));return!Ye&&Lt>=0&&(vr+=Math.max(0,Math.ceil(k["offset"+ve[0].toUpperCase()+ve.slice(1)]-Lt-vr-nr-.5))||0),vr+$r}function ar(k,ve,Le){var Ye=un(k),ot=!C.boxSizingReliable()||Le,Lt=ot&&z.css(k,"boxSizing",!1,Ye)==="border-box",an=Lt,nr=_t(k,ve,Ye),vr="offset"+ve[0].toUpperCase()+ve.slice(1);if(Pt.test(nr)){if(!Le)return nr;nr="auto"}return(!C.boxSizingReliable()&&Lt||!C.reliableTrDimensions()&&ce(k,"tr")||nr==="auto"||!parseFloat(nr)&&z.css(k,"display",!1,Ye)==="inline")&&k.getClientRects().length&&(Lt=z.css(k,"boxSizing",!1,Ye)==="border-box",an=vr in k,an&&(nr=k[vr])),nr=parseFloat(nr)||0,nr+hr(k,ve,Le||(Lt?"border":"content"),an,Ye,nr)+"px"}z.extend({cssHooks:{opacity:{get:function(k,ve){if(ve){var Le=_t(k,"opacity");return Le===""?"1":Le}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(k,ve,Le,Ye){if(!(!k||k.nodeType===3||k.nodeType===8||!k.style)){var ot,Lt,an,nr=Ft(ve),vr=zt.test(ve),$r=k.style;if(vr||(ve=Lr(nr)),an=z.cssHooks[ve]||z.cssHooks[nr],Le!==void 0){if(Lt=typeof Le,Lt==="string"&&(ot=tr.exec(Le))&&ot[1]&&(Le=gn(k,ve,ot),Lt="number"),Le==null||Le!==Le)return;Lt==="number"&&!vr&&(Le+=ot&&ot[3]||(z.cssNumber[nr]?"":"px")),!C.clearCloneStyle&&Le===""&&ve.indexOf("background")===0&&($r[ve]="inherit"),(!an||!("set"in an)||(Le=an.set(k,Le,Ye))!==void 0)&&(vr?$r.setProperty(ve,Le):$r[ve]=Le)}else return an&&"get"in an&&(ot=an.get(k,!1,Ye))!==void 0?ot:$r[ve]}},css:function(k,ve,Le,Ye){var ot,Lt,an,nr=Ft(ve),vr=zt.test(ve);return vr||(ve=Lr(nr)),an=z.cssHooks[ve]||z.cssHooks[nr],an&&"get"in an&&(ot=an.get(k,!0,Le)),ot===void 0&&(ot=_t(k,ve,Ye)),ot==="normal"&&ve in cr&&(ot=cr[ve]),Le===""||Le?(Lt=parseFloat(ot),Le===!0||isFinite(Lt)?Lt||0:ot):ot}}),z.each(["height","width"],function(k,ve){z.cssHooks[ve]={get:function(Le,Ye,ot){if(Ye)return An.test(z.css(Le,"display"))&&(!Le.getClientRects().length||!Le.getBoundingClientRect().width)?hn(Le,Un,function(){return ar(Le,ve,ot)}):ar(Le,ve,ot)},set:function(Le,Ye,ot){var Lt,an=un(Le),nr=!C.scrollboxSize()&&an.position==="absolute",vr=nr||ot,$r=vr&&z.css(Le,"boxSizing",!1,an)==="border-box",Fr=ot?hr(Le,ve,ot,$r,an):0;return $r&&nr&&(Fr-=Math.ceil(Le["offset"+ve[0].toUpperCase()+ve.slice(1)]-parseFloat(an[ve])-hr(Le,ve,"border",!1,an)-.5)),Fr&&(Lt=tr.exec(Ye))&&(Lt[3]||"px")!=="px"&&(Le.style[ve]=Ye,Ye=z.css(Le,ve)),mr(Le,Ye,Fr)}}}),z.cssHooks.marginLeft=qt(C.reliableMarginLeft,function(k,ve){if(ve)return(parseFloat(_t(k,"marginLeft"))||k.getBoundingClientRect().left-hn(k,{marginLeft:0},function(){return k.getBoundingClientRect().left}))+"px"}),z.each({margin:"",padding:"",border:"Width"},function(k,ve){z.cssHooks[k+ve]={expand:function(Le){for(var Ye=0,ot={},Lt=typeof Le=="string"?Le.split(" "):[Le];Ye<4;Ye++)ot[k+Cn[Ye]+ve]=Lt[Ye]||Lt[Ye-2]||Lt[0];return ot}},k!=="margin"&&(z.cssHooks[k+ve].set=mr)}),z.fn.extend({css:function(k,ve){return _e(this,function(Le,Ye,ot){var Lt,an,nr={},vr=0;if(Array.isArray(Ye)){for(Lt=un(Le),an=Ye.length;vr<an;vr++)nr[Ye[vr]]=z.css(Le,Ye[vr],!1,Lt);return nr}return ot!==void 0?z.style(Le,Ye,ot):z.css(Le,Ye)},k,ve,arguments.length>1)}});function Cr(k,ve,Le,Ye,ot){return new Cr.prototype.init(k,ve,Le,Ye,ot)}z.Tween=Cr,Cr.prototype={constructor:Cr,init:function(k,ve,Le,Ye,ot,Lt){this.elem=k,this.prop=Le,this.easing=ot||z.easing._default,this.options=ve,this.start=this.now=this.cur(),this.end=Ye,this.unit=Lt||(z.cssNumber[Le]?"":"px")},cur:function(){var k=Cr.propHooks[this.prop];return k&&k.get?k.get(this):Cr.propHooks._default.get(this)},run:function(k){var ve,Le=Cr.propHooks[this.prop];return this.options.duration?this.pos=ve=z.easing[this.easing](k,this.options.duration*k,0,1,this.options.duration):this.pos=ve=k,this.now=(this.end-this.start)*ve+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),Le&&Le.set?Le.set(this):Cr.propHooks._default.set(this),this}},Cr.prototype.init.prototype=Cr.prototype,Cr.propHooks={_default:{get:function(k){var ve;return k.elem.nodeType!==1||k.elem[k.prop]!=null&&k.elem.style[k.prop]==null?k.elem[k.prop]:(ve=z.css(k.elem,k.prop,""),!ve||ve==="auto"?0:ve)},set:function(k){z.fx.step[k.prop]?z.fx.step[k.prop](k):k.elem.nodeType===1&&(z.cssHooks[k.prop]||k.elem.style[Lr(k.prop)]!=null)?z.style(k.elem,k.prop,k.now+k.unit):k.elem[k.prop]=k.now}}},Cr.propHooks.scrollTop=Cr.propHooks.scrollLeft={set:function(k){k.elem.nodeType&&k.elem.parentNode&&(k.elem[k.prop]=k.now)}},z.easing={linear:function(k){return k},swing:function(k){return .5-Math.cos(k*Math.PI)/2},_default:"swing"},z.fx=Cr.prototype.init,z.fx.step={};var Yr,Xr,ni=/^(?:toggle|show|hide)$/,ki=/queueHooks$/;function zr(){Xr&&(I.hidden===!1&&g.requestAnimationFrame?g.requestAnimationFrame(zr):g.setTimeout(zr,z.fx.interval),z.fx.tick())}function Ur(){return g.setTimeout(function(){Yr=void 0}),Yr=Date.now()}function jt(k,ve){var Le,Ye=0,ot={height:k};for(ve=ve?1:0;Ye<4;Ye+=2-ve)Le=Cn[Ye],ot["margin"+Le]=ot["padding"+Le]=k;return ve&&(ot.opacity=ot.width=k),ot}function sn(k,ve,Le){for(var Ye,ot=(Be.tweeners[ve]||[]).concat(Be.tweeners["*"]),Lt=0,an=ot.length;Lt<an;Lt++)if(Ye=ot[Lt].call(Le,ve,k))return Ye}function Rn(k,ve,Le){var Ye,ot,Lt,an,nr,vr,$r,Fr,qr="width"in ve||"height"in ve,jr=this,vi={},Mi=k.style,ra=k.nodeType&&en(k),Yi=nn.get(k,"fxshow");Le.queue||(an=z._queueHooks(k,"fx"),an.unqueued==null&&(an.unqueued=0,nr=an.empty.fire,an.empty.fire=function(){an.unqueued||nr()}),an.unqueued++,jr.always(function(){jr.always(function(){an.unqueued--,z.queue(k,"fx").length||an.empty.fire()})}));for(Ye in ve)if(ot=ve[Ye],ni.test(ot)){if(delete ve[Ye],Lt=Lt||ot==="toggle",ot===(ra?"hide":"show"))if(ot==="show"&&Yi&&Yi[Ye]!==void 0)ra=!0;else continue;vi[Ye]=Yi&&Yi[Ye]||z.style(k,Ye)}if(vr=!z.isEmptyObject(ve),!(!vr&&z.isEmptyObject(vi))){qr&&k.nodeType===1&&(Le.overflow=[Mi.overflow,Mi.overflowX,Mi.overflowY],$r=Yi&&Yi.display,$r==null&&($r=nn.get(k,"display")),Fr=z.css(k,"display"),Fr==="none"&&($r?Fr=$r:(Nn([k],!0),$r=k.style.display||$r,Fr=z.css(k,"display"),Nn([k]))),(Fr==="inline"||Fr==="inline-block"&&$r!=null)&&z.css(k,"float")==="none"&&(vr||(jr.done(function(){Mi.display=$r}),$r==null&&(Fr=Mi.display,$r=Fr==="none"?"":Fr)),Mi.display="inline-block")),Le.overflow&&(Mi.overflow="hidden",jr.always(function(){Mi.overflow=Le.overflow[0],Mi.overflowX=Le.overflow[1],Mi.overflowY=Le.overflow[2]})),vr=!1;for(Ye in vi)vr||(Yi?"hidden"in Yi&&(ra=Yi.hidden):Yi=nn.access(k,"fxshow",{display:$r}),Lt&&(Yi.hidden=!ra),ra&&Nn([k],!0),jr.done(function(){ra||Nn([k]),nn.remove(k,"fxshow");for(Ye in vi)z.style(k,Ye,vi[Ye])})),vr=sn(ra?Yi[Ye]:0,Ye,jr),Ye in Yi||(Yi[Ye]=vr.start,ra&&(vr.end=vr.start,vr.start=0))}}function H(k,ve){var Le,Ye,ot,Lt,an;for(Le in k)if(Ye=Ft(Le),ot=ve[Ye],Lt=k[Le],Array.isArray(Lt)&&(ot=Lt[1],Lt=k[Le]=Lt[0]),Le!==Ye&&(k[Ye]=Lt,delete k[Le]),an=z.cssHooks[Ye],an&&"expand"in an){Lt=an.expand(Lt),delete k[Ye];for(Le in Lt)Le in k||(k[Le]=Lt[Le],ve[Le]=ot)}else ve[Ye]=ot}function Be(k,ve,Le){var Ye,ot,Lt=0,an=Be.prefilters.length,nr=z.Deferred().always(function(){delete vr.elem}),vr=function(){if(ot)return!1;for(var qr=Yr||Ur(),jr=Math.max(0,$r.startTime+$r.duration-qr),vi=jr/$r.duration||0,Mi=1-vi,ra=0,Yi=$r.tweens.length;ra<Yi;ra++)$r.tweens[ra].run(Mi);return nr.notifyWith(k,[$r,Mi,jr]),Mi<1&&Yi?jr:(Yi||nr.notifyWith(k,[$r,1,0]),nr.resolveWith(k,[$r]),!1)},$r=nr.promise({elem:k,props:z.extend({},ve),opts:z.extend(!0,{specialEasing:{},easing:z.easing._default},Le),originalProperties:ve,originalOptions:Le,startTime:Yr||Ur(),duration:Le.duration,tweens:[],createTween:function(qr,jr){var vi=z.Tween(k,$r.opts,qr,jr,$r.opts.specialEasing[qr]||$r.opts.easing);return $r.tweens.push(vi),vi},stop:function(qr){var jr=0,vi=qr?$r.tweens.length:0;if(ot)return this;for(ot=!0;jr<vi;jr++)$r.tweens[jr].run(1);return qr?(nr.notifyWith(k,[$r,1,0]),nr.resolveWith(k,[$r,qr])):nr.rejectWith(k,[$r,qr]),this}}),Fr=$r.props;for(H(Fr,$r.opts.specialEasing);Lt<an;Lt++)if(Ye=Be.prefilters[Lt].call($r,k,Fr,$r.opts),Ye)return L(Ye.stop)&&(z._queueHooks($r.elem,$r.opts.queue).stop=Ye.stop.bind(Ye)),Ye;return z.map(Fr,sn,$r),L($r.opts.start)&&$r.opts.start.call(k,$r),$r.progress($r.opts.progress).done($r.opts.done,$r.opts.complete).fail($r.opts.fail).always($r.opts.always),z.fx.timer(z.extend(vr,{elem:k,anim:$r,queue:$r.opts.queue})),$r}z.Animation=z.extend(Be,{tweeners:{"*":[function(k,ve){var Le=this.createTween(k,ve);return gn(Le.elem,k,tr.exec(ve),Le),Le}]},tweener:function(k,ve){L(k)?(ve=k,k=["*"]):k=k.match(Tn);for(var Le,Ye=0,ot=k.length;Ye<ot;Ye++)Le=k[Ye],Be.tweeners[Le]=Be.tweeners[Le]||[],Be.tweeners[Le].unshift(ve)},prefilters:[Rn],prefilter:function(k,ve){ve?Be.prefilters.unshift(k):Be.prefilters.push(k)}}),z.speed=function(k,ve,Le){var Ye=k&&typeof k=="object"?z.extend({},k):{complete:Le||!Le&&ve||L(k)&&k,duration:k,easing:Le&&ve||ve&&!L(ve)&&ve};return z.fx.off?Ye.duration=0:typeof Ye.duration!="number"&&(Ye.duration in z.fx.speeds?Ye.duration=z.fx.speeds[Ye.duration]:Ye.duration=z.fx.speeds._default),(Ye.queue==null||Ye.queue===!0)&&(Ye.queue="fx"),Ye.old=Ye.complete,Ye.complete=function(){L(Ye.old)&&Ye.old.call(this),Ye.queue&&z.dequeue(this,Ye.queue)},Ye},z.fn.extend({fadeTo:function(k,ve,Le,Ye){return this.filter(en).css("opacity",0).show().end().animate({opacity:ve},k,Le,Ye)},animate:function(k,ve,Le,Ye){var ot=z.isEmptyObject(k),Lt=z.speed(ve,Le,Ye),an=function(){var nr=Be(this,z.extend({},k),Lt);(ot||nn.get(this,"finish"))&&nr.stop(!0)};return an.finish=an,ot||Lt.queue===!1?this.each(an):this.queue(Lt.queue,an)},stop:function(k,ve,Le){var Ye=function(ot){var Lt=ot.stop;delete ot.stop,Lt(Le)};return typeof k!="string"&&(Le=ve,ve=k,k=void 0),ve&&this.queue(k||"fx",[]),this.each(function(){var ot=!0,Lt=k!=null&&k+"queueHooks",an=z.timers,nr=nn.get(this);if(Lt)nr[Lt]&&nr[Lt].stop&&Ye(nr[Lt]);else for(Lt in nr)nr[Lt]&&nr[Lt].stop&&ki.test(Lt)&&Ye(nr[Lt]);for(Lt=an.length;Lt--;)an[Lt].elem===this&&(k==null||an[Lt].queue===k)&&(an[Lt].anim.stop(Le),ot=!1,an.splice(Lt,1));(ot||!Le)&&z.dequeue(this,k)})},finish:function(k){return k!==!1&&(k=k||"fx"),this.each(function(){var ve,Le=nn.get(this),Ye=Le[k+"queue"],ot=Le[k+"queueHooks"],Lt=z.timers,an=Ye?Ye.length:0;for(Le.finish=!0,z.queue(this,k,[]),ot&&ot.stop&&ot.stop.call(this,!0),ve=Lt.length;ve--;)Lt[ve].elem===this&&Lt[ve].queue===k&&(Lt[ve].anim.stop(!0),Lt.splice(ve,1));for(ve=0;ve<an;ve++)Ye[ve]&&Ye[ve].finish&&Ye[ve].finish.call(this);delete Le.finish})}}),z.each(["toggle","show","hide"],function(k,ve){var Le=z.fn[ve];z.fn[ve]=function(Ye,ot,Lt){return Ye==null||typeof Ye=="boolean"?Le.apply(this,arguments):this.animate(jt(ve,!0),Ye,ot,Lt)}}),z.each({slideDown:jt("show"),slideUp:jt("hide"),slideToggle:jt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(k,ve){z.fn[k]=function(Le,Ye,ot){return this.animate(ve,Le,Ye,ot)}}),z.timers=[],z.fx.tick=function(){var k,ve=0,Le=z.timers;for(Yr=Date.now();ve<Le.length;ve++)k=Le[ve],!k()&&Le[ve]===k&&Le.splice(ve--,1);Le.length||z.fx.stop(),Yr=void 0},z.fx.timer=function(k){z.timers.push(k),z.fx.start()},z.fx.interval=13,z.fx.start=function(){Xr||(Xr=!0,zr())},z.fx.stop=function(){Xr=null},z.fx.speeds={slow:600,fast:200,_default:400},z.fn.delay=function(k,ve){return k=z.fx&&z.fx.speeds[k]||k,ve=ve||"fx",this.queue(ve,function(Le,Ye){var ot=g.setTimeout(Le,k);Ye.stop=function(){g.clearTimeout(ot)}})},function(){var k=I.createElement("input"),ve=I.createElement("select"),Le=ve.appendChild(I.createElement("option"));k.type="checkbox",C.checkOn=k.value!=="",C.optSelected=Le.selected,k=I.createElement("input"),k.value="t",k.type="radio",C.radioValue=k.value==="t"}();var wn,bi=z.expr.attrHandle;z.fn.extend({attr:function(k,ve){return _e(this,z.attr,k,ve,arguments.length>1)},removeAttr:function(k){return this.each(function(){z.removeAttr(this,k)})}}),z.extend({attr:function(k,ve,Le){var Ye,ot,Lt=k.nodeType;if(!(Lt===3||Lt===8||Lt===2)){if(typeof k.getAttribute>"u")return z.prop(k,ve,Le);if((Lt!==1||!z.isXMLDoc(k))&&(ot=z.attrHooks[ve.toLowerCase()]||(z.expr.match.bool.test(ve)?wn:void 0)),Le!==void 0){if(Le===null){z.removeAttr(k,ve);return}return ot&&"set"in ot&&(Ye=ot.set(k,Le,ve))!==void 0?Ye:(k.setAttribute(ve,Le+""),Le)}return ot&&"get"in ot&&(Ye=ot.get(k,ve))!==null?Ye:(Ye=z.find.attr(k,ve),Ye??void 0)}},attrHooks:{type:{set:function(k,ve){if(!C.radioValue&&ve==="radio"&&ce(k,"input")){var Le=k.value;return k.setAttribute("type",ve),Le&&(k.value=Le),ve}}}},removeAttr:function(k,ve){var Le,Ye=0,ot=ve&&ve.match(Tn);if(ot&&k.nodeType===1)for(;Le=ot[Ye++];)k.removeAttribute(Le)}}),wn={set:function(k,ve,Le){return ve===!1?z.removeAttr(k,Le):k.setAttribute(Le,Le),Le}},z.each(z.expr.match.bool.source.match(/\w+/g),function(k,ve){var Le=bi[ve]||z.find.attr;bi[ve]=function(Ye,ot,Lt){var an,nr,vr=ot.toLowerCase();return Lt||(nr=bi[vr],bi[vr]=an,an=Le(Ye,ot,Lt)!=null?vr:null,bi[vr]=nr),an}});var Oi=/^(?:input|select|textarea|button)$/i,de=/^(?:a|area)$/i;z.fn.extend({prop:function(k,ve){return _e(this,z.prop,k,ve,arguments.length>1)},removeProp:function(k){return this.each(function(){delete this[z.propFix[k]||k]})}}),z.extend({prop:function(k,ve,Le){var Ye,ot,Lt=k.nodeType;if(!(Lt===3||Lt===8||Lt===2))return(Lt!==1||!z.isXMLDoc(k))&&(ve=z.propFix[ve]||ve,ot=z.propHooks[ve]),Le!==void 0?ot&&"set"in ot&&(Ye=ot.set(k,Le,ve))!==void 0?Ye:k[ve]=Le:ot&&"get"in ot&&(Ye=ot.get(k,ve))!==null?Ye:k[ve]},propHooks:{tabIndex:{get:function(k){var ve=z.find.attr(k,"tabindex");return ve?parseInt(ve,10):Oi.test(k.nodeName)||de.test(k.nodeName)&&k.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),C.optSelected||(z.propHooks.selected={get:function(k){var ve=k.parentNode;return ve&&ve.parentNode&&ve.parentNode.selectedIndex,null},set:function(k){var ve=k.parentNode;ve&&(ve.selectedIndex,ve.parentNode&&ve.parentNode.selectedIndex)}}),z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){z.propFix[this.toLowerCase()]=this});function Ve(k){var ve=k.match(Tn)||[];return ve.join(" ")}function vt(k){return k.getAttribute&&k.getAttribute("class")||""}function Qt(k){return Array.isArray(k)?k:typeof k=="string"?k.match(Tn)||[]:[]}z.fn.extend({addClass:function(k){var ve,Le,Ye,ot,Lt,an;return L(k)?this.each(function(nr){z(this).addClass(k.call(this,nr,vt(this)))}):(ve=Qt(k),ve.length?this.each(function(){if(Ye=vt(this),Le=this.nodeType===1&&" "+Ve(Ye)+" ",Le){for(Lt=0;Lt<ve.length;Lt++)ot=ve[Lt],Le.indexOf(" "+ot+" ")<0&&(Le+=ot+" ");an=Ve(Le),Ye!==an&&this.setAttribute("class",an)}}):this)},removeClass:function(k){var ve,Le,Ye,ot,Lt,an;return L(k)?this.each(function(nr){z(this).removeClass(k.call(this,nr,vt(this)))}):arguments.length?(ve=Qt(k),ve.length?this.each(function(){if(Ye=vt(this),Le=this.nodeType===1&&" "+Ve(Ye)+" ",Le){for(Lt=0;Lt<ve.length;Lt++)for(ot=ve[Lt];Le.indexOf(" "+ot+" ")>-1;)Le=Le.replace(" "+ot+" "," ");an=Ve(Le),Ye!==an&&this.setAttribute("class",an)}}):this):this.attr("class","")},toggleClass:function(k,ve){var Le,Ye,ot,Lt,an=typeof k,nr=an==="string"||Array.isArray(k);return L(k)?this.each(function(vr){z(this).toggleClass(k.call(this,vr,vt(this),ve),ve)}):typeof ve=="boolean"&&nr?ve?this.addClass(k):this.removeClass(k):(Le=Qt(k),this.each(function(){if(nr)for(Lt=z(this),ot=0;ot<Le.length;ot++)Ye=Le[ot],Lt.hasClass(Ye)?Lt.removeClass(Ye):Lt.addClass(Ye);else(k===void 0||an==="boolean")&&(Ye=vt(this),Ye&&nn.set(this,"__className__",Ye),this.setAttribute&&this.setAttribute("class",Ye||k===!1?"":nn.get(this,"__className__")||""))}))},hasClass:function(k){var ve,Le,Ye=0;for(ve=" "+k+" ";Le=this[Ye++];)if(Le.nodeType===1&&(" "+Ve(vt(Le))+" ").indexOf(ve)>-1)return!0;return!1}});var nt=/\r/g;z.fn.extend({val:function(k){var ve,Le,Ye,ot=this[0];return arguments.length?(Ye=L(k),this.each(function(Lt){var an;this.nodeType===1&&(Ye?an=k.call(this,Lt,z(this).val()):an=k,an==null?an="":typeof an=="number"?an+="":Array.isArray(an)&&(an=z.map(an,function(nr){return nr==null?"":nr+""})),ve=z.valHooks[this.type]||z.valHooks[this.nodeName.toLowerCase()],(!ve||!("set"in ve)||ve.set(this,an,"value")===void 0)&&(this.value=an))})):ot?(ve=z.valHooks[ot.type]||z.valHooks[ot.nodeName.toLowerCase()],ve&&"get"in ve&&(Le=ve.get(ot,"value"))!==void 0?Le:(Le=ot.value,typeof Le=="string"?Le.replace(nt,""):Le??"")):void 0}}),z.extend({valHooks:{option:{get:function(k){var ve=z.find.attr(k,"value");return ve??Ve(z.text(k))}},select:{get:function(k){var ve,Le,Ye,ot=k.options,Lt=k.selectedIndex,an=k.type==="select-one",nr=an?null:[],vr=an?Lt+1:ot.length;for(Lt<0?Ye=vr:Ye=an?Lt:0;Ye<vr;Ye++)if(Le=ot[Ye],(Le.selected||Ye===Lt)&&!Le.disabled&&(!Le.parentNode.disabled||!ce(Le.parentNode,"optgroup"))){if(ve=z(Le).val(),an)return ve;nr.push(ve)}return nr},set:function(k,ve){for(var Le,Ye,ot=k.options,Lt=z.makeArray(ve),an=ot.length;an--;)Ye=ot[an],(Ye.selected=z.inArray(z.valHooks.option.get(Ye),Lt)>-1)&&(Le=!0);return Le||(k.selectedIndex=-1),Lt}}}}),z.each(["radio","checkbox"],function(){z.valHooks[this]={set:function(k,ve){if(Array.isArray(ve))return k.checked=z.inArray(z(k).val(),ve)>-1}},C.checkOn||(z.valHooks[this].get=function(k){return k.getAttribute("value")===null?"on":k.value})});var Tt=g.location,Gt={guid:Date.now()},En=/\?/;z.parseXML=function(k){var ve,Le;if(!k||typeof k!="string")return null;try{ve=new g.DOMParser().parseFromString(k,"text/xml")}catch{}return Le=ve&&ve.getElementsByTagName("parsererror")[0],(!ve||Le)&&z.error("Invalid XML: "+(Le?z.map(Le.childNodes,function(Ye){return Ye.textContent}).join(` `):k)),ve};var Qn=/^(?:focusinfocus|focusoutblur)$/,Or=function(k){k.stopPropagation()};z.extend(z.event,{trigger:function(k,ve,Le,Ye){var ot,Lt,an,nr,vr,$r,Fr,qr,jr=[Le||I],vi=d.call(k,"type")?k.type:k,Mi=d.call(k,"namespace")?k.namespace.split("."):[];if(Lt=qr=an=Le=Le||I,!(Le.nodeType===3||Le.nodeType===8)&&!Qn.test(vi+z.event.triggered)&&(vi.indexOf(".")>-1&&(Mi=vi.split("."),vi=Mi.shift(),Mi.sort()),vr=vi.indexOf(":")<0&&"on"+vi,k=k[z.expando]?k:new z.Event(vi,typeof k=="object"&&k),k.isTrigger=Ye?2:3,k.namespace=Mi.join("."),k.rnamespace=k.namespace?new RegExp("(^|\\.)"+Mi.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,k.result=void 0,k.target||(k.target=Le),ve=ve==null?[k]:z.makeArray(ve,[k]),Fr=z.event.special[vi]||{},!(!Ye&&Fr.trigger&&Fr.trigger.apply(Le,ve)===!1))){if(!Ye&&!Fr.noBubble&&!j(Le)){for(nr=Fr.delegateType||vi,Qn.test(nr+vi)||(Lt=Lt.parentNode);Lt;Lt=Lt.parentNode)jr.push(Lt),an=Lt;an===(Le.ownerDocument||I)&&jr.push(an.defaultView||an.parentWindow||g)}for(ot=0;(Lt=jr[ot++])&&!k.isPropagationStopped();)qr=Lt,k.type=ot>1?nr:Fr.bindType||vi,$r=(nn.get(Lt,"events")||Object.create(null))[k.type]&&nn.get(Lt,"handle"),$r&&$r.apply(Lt,ve),$r=vr&&Lt[vr],$r&&$r.apply&&Et(Lt)&&(k.result=$r.apply(Lt,ve),k.result===!1&&k.preventDefault());return k.type=vi,!Ye&&!k.isDefaultPrevented()&&(!Fr._default||Fr._default.apply(jr.pop(),ve)===!1)&&Et(Le)&&vr&&L(Le[vi])&&!j(Le)&&(an=Le[vr],an&&(Le[vr]=null),z.event.triggered=vi,k.isPropagationStopped()&&qr.addEventListener(vi,Or),Le[vi](),k.isPropagationStopped()&&qr.removeEventListener(vi,Or),z.event.triggered=void 0,an&&(Le[vr]=an)),k.result}},simulate:function(k,ve,Le){var Ye=z.extend(new z.Event,Le,{type:k,isSimulated:!0});z.event.trigger(Ye,null,ve)}}),z.fn.extend({trigger:function(k,ve){return this.each(function(){z.event.trigger(k,ve,this)})},triggerHandler:function(k,ve){var Le=this[0];if(Le)return z.event.trigger(k,ve,Le,!0)}});var Pr=/\[\]$/,ai=/\r?\n/g,xi=/^(?:submit|button|image|reset|file)$/i,mi=/^(?:input|select|textarea|keygen)/i;function ei(k,ve,Le,Ye){var ot;if(Array.isArray(ve))z.each(ve,function(Lt,an){Le||Pr.test(k)?Ye(k,an):ei(k+"["+(typeof an=="object"&&an!=null?Lt:"")+"]",an,Le,Ye)});else if(!Le&&ee(ve)==="object")for(ot in ve)ei(k+"["+ot+"]",ve[ot],Le,Ye);else Ye(k,ve)}z.param=function(k,ve){var Le,Ye=[],ot=function(Lt,an){var nr=L(an)?an():an;Ye[Ye.length]=encodeURIComponent(Lt)+"="+encodeURIComponent(nr??"")};if(k==null)return"";if(Array.isArray(k)||k.jquery&&!z.isPlainObject(k))z.each(k,function(){ot(this.name,this.value)});else for(Le in k)ei(Le,k[Le],ve,ot);return Ye.join("&")},z.fn.extend({serialize:function(){return z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var k=z.prop(this,"elements");return k?z.makeArray(k):this}).filter(function(){var k=this.type;return this.name&&!z(this).is(":disabled")&&mi.test(this.nodeName)&&!xi.test(k)&&(this.checked||!kr.test(k))}).map(function(k,ve){var Le=z(this).val();return Le==null?null:Array.isArray(Le)?z.map(Le,function(Ye){return{name:ve.name,value:Ye.replace(ai,`\r `)}}):{name:ve.name,value:Le.replace(ai,`\r `)}}).get()}});var Qr=/%20/g,Ni=/#.*$/,ea=/([?&])_=[^&]*/,Qi=/^(.*?):[ \t]*([^\r\n]*)$/mg,ir=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,xr=/^(?:GET|HEAD)$/,di=/^\/\//,ft={},zn={},Zn="*/".concat("*"),wi=I.createElement("a");wi.href=Tt.href;function Ea(k){return function(ve,Le){typeof ve!="string"&&(Le=ve,ve="*");var Ye,ot=0,Lt=ve.toLowerCase().match(Tn)||[];if(L(Le))for(;Ye=Lt[ot++];)Ye[0]==="+"?(Ye=Ye.slice(1)||"*",(k[Ye]=k[Ye]||[]).unshift(Le)):(k[Ye]=k[Ye]||[]).push(Le)}}function wa(k,ve,Le,Ye){var ot={},Lt=k===zn;function an(nr){var vr;return ot[nr]=!0,z.each(k[nr]||[],function($r,Fr){var qr=Fr(ve,Le,Ye);if(typeof qr=="string"&&!Lt&&!ot[qr])return ve.dataTypes.unshift(qr),an(qr),!1;if(Lt)return!(vr=qr)}),vr}return an(ve.dataTypes[0])||!ot["*"]&&an("*")}function ji(k,ve){var Le,Ye,ot=z.ajaxSettings.flatOptions||{};for(Le in ve)ve[Le]!==void 0&&((ot[Le]?k:Ye||(Ye={}))[Le]=ve[Le]);return Ye&&z.extend(!0,k,Ye),k}function Dt(k,ve,Le){for(var Ye,ot,Lt,an,nr=k.contents,vr=k.dataTypes;vr[0]==="*";)vr.shift(),Ye===void 0&&(Ye=k.mimeType||ve.getResponseHeader("Content-Type"));if(Ye){for(ot in nr)if(nr[ot]&&nr[ot].test(Ye)){vr.unshift(ot);break}}if(vr[0]in Le)Lt=vr[0];else{for(ot in Le){if(!vr[0]||k.converters[ot+" "+vr[0]]){Lt=ot;break}an||(an=ot)}Lt=Lt||an}if(Lt)return Lt!==vr[0]&&vr.unshift(Lt),Le[Lt]}function Xn(k,ve,Le,Ye){var ot,Lt,an,nr,vr,$r={},Fr=k.dataTypes.slice();if(Fr[1])for(an in k.converters)$r[an.toLowerCase()]=k.converters[an];for(Lt=Fr.shift();Lt;)if(k.responseFields[Lt]&&(Le[k.responseFields[Lt]]=ve),!vr&&Ye&&k.dataFilter&&(ve=k.dataFilter(ve,k.dataType)),vr=Lt,Lt=Fr.shift(),Lt){if(Lt==="*")Lt=vr;else if(vr!=="*"&&vr!==Lt){if(an=$r[vr+" "+Lt]||$r["* "+Lt],!an){for(ot in $r)if(nr=ot.split(" "),nr[1]===Lt&&(an=$r[vr+" "+nr[0]]||$r["* "+nr[0]],an)){an===!0?an=$r[ot]:$r[ot]!==!0&&(Lt=nr[0],Fr.unshift(nr[1]));break}}if(an!==!0)if(an&&k.throws)ve=an(ve);else try{ve=an(ve)}catch(qr){return{state:"parsererror",error:an?qr:"No conversion from "+vr+" to "+Lt}}}}return{state:"success",data:ve}}z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:ir.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(k,ve){return ve?ji(ji(k,z.ajaxSettings),ve):ji(z.ajaxSettings,k)},ajaxPrefilter:Ea(ft),ajaxTransport:Ea(zn),ajax:function(k,ve){typeof k=="object"&&(ve=k,k=void 0),ve=ve||{};var Le,Ye,ot,Lt,an,nr,vr,$r,Fr,qr,jr=z.ajaxSetup({},ve),vi=jr.context||jr,Mi=jr.context&&(vi.nodeType||vi.jquery)?z(vi):z.event,ra=z.Deferred(),Yi=z.Callbacks("once memory"),ua=jr.statusCode||{},Sa={},Xt={},V="canceled",Y={readyState:0,getResponseHeader:function(P){var oe;if(vr){if(!Lt)for(Lt={};oe=Qi.exec(ot);)Lt[oe[1].toLowerCase()+" "]=(Lt[oe[1].toLowerCase()+" "]||[]).concat(oe[2]);oe=Lt[P.toLowerCase()+" "]}return oe==null?null:oe.join(", ")},getAllResponseHeaders:function(){return vr?ot:null},setRequestHeader:function(P,oe){return vr==null&&(P=Xt[P.toLowerCase()]=Xt[P.toLowerCase()]||P,Sa[P]=oe),this},overrideMimeType:function(P){return vr==null&&(jr.mimeType=P),this},statusCode:function(P){var oe;if(P)if(vr)Y.always(P[Y.status]);else for(oe in P)ua[oe]=[ua[oe],P[oe]];return this},abort:function(P){var oe=P||V;return Le&&Le.abort(oe),D(0,oe),this}};if(ra.promise(Y),jr.url=((k||jr.url||Tt.href)+"").replace(di,Tt.protocol+"//"),jr.type=ve.method||ve.type||jr.method||jr.type,jr.dataTypes=(jr.dataType||"*").toLowerCase().match(Tn)||[""],jr.crossDomain==null){nr=I.createElement("a");try{nr.href=jr.url,nr.href=nr.href,jr.crossDomain=wi.protocol+"//"+wi.host!=nr.protocol+"//"+nr.host}catch{jr.crossDomain=!0}}if(jr.data&&jr.processData&&typeof jr.data!="string"&&(jr.data=z.param(jr.data,jr.traditional)),wa(ft,jr,ve,Y),vr)return Y;$r=z.event&&jr.global,$r&&z.active++===0&&z.event.trigger("ajaxStart"),jr.type=jr.type.toUpperCase(),jr.hasContent=!xr.test(jr.type),Ye=jr.url.replace(Ni,""),jr.hasContent?jr.data&&jr.processData&&(jr.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(jr.data=jr.data.replace(Qr,"+")):(qr=jr.url.slice(Ye.length),jr.data&&(jr.processData||typeof jr.data=="string")&&(Ye+=(En.test(Ye)?"&":"?")+jr.data,delete jr.data),jr.cache===!1&&(Ye=Ye.replace(ea,"$1"),qr=(En.test(Ye)?"&":"?")+"_="+Gt.guid+++qr),jr.url=Ye+qr),jr.ifModified&&(z.lastModified[Ye]&&Y.setRequestHeader("If-Modified-Since",z.lastModified[Ye]),z.etag[Ye]&&Y.setRequestHeader("If-None-Match",z.etag[Ye])),(jr.data&&jr.hasContent&&jr.contentType!==!1||ve.contentType)&&Y.setRequestHeader("Content-Type",jr.contentType),Y.setRequestHeader("Accept",jr.dataTypes[0]&&jr.accepts[jr.dataTypes[0]]?jr.accepts[jr.dataTypes[0]]+(jr.dataTypes[0]!=="*"?", "+Zn+"; q=0.01":""):jr.accepts["*"]);for(Fr in jr.headers)Y.setRequestHeader(Fr,jr.headers[Fr]);if(jr.beforeSend&&(jr.beforeSend.call(vi,Y,jr)===!1||vr))return Y.abort();if(V="abort",Yi.add(jr.complete),Y.done(jr.success),Y.fail(jr.error),Le=wa(zn,jr,ve,Y),!Le)D(-1,"No Transport");else{if(Y.readyState=1,$r&&Mi.trigger("ajaxSend",[Y,jr]),vr)return Y;jr.async&&jr.timeout>0&&(an=g.setTimeout(function(){Y.abort("timeout")},jr.timeout));try{vr=!1,Le.send(Sa,D)}catch(P){if(vr)throw P;D(-1,P)}}function D(P,oe,Ie,Ue){var Xe,dt,kt,dn,Vn,qn=oe;vr||(vr=!0,an&&g.clearTimeout(an),Le=void 0,ot=Ue||"",Y.readyState=P>0?4:0,Xe=P>=200&&P<300||P===304,Ie&&(dn=Dt(jr,Y,Ie)),!Xe&&z.inArray("script",jr.dataTypes)>-1&&z.inArray("json",jr.dataTypes)<0&&(jr.converters["text script"]=function(){}),dn=Xn(jr,dn,Y,Xe),Xe?(jr.ifModified&&(Vn=Y.getResponseHeader("Last-Modified"),Vn&&(z.lastModified[Ye]=Vn),Vn=Y.getResponseHeader("etag"),Vn&&(z.etag[Ye]=Vn)),P===204||jr.type==="HEAD"?qn="nocontent":P===304?qn="notmodified":(qn=dn.state,dt=dn.data,kt=dn.error,Xe=!kt)):(kt=qn,(P||!qn)&&(qn="error",P<0&&(P=0))),Y.status=P,Y.statusText=(oe||qn)+"",Xe?ra.resolveWith(vi,[dt,qn,Y]):ra.rejectWith(vi,[Y,qn,kt]),Y.statusCode(ua),ua=void 0,$r&&Mi.trigger(Xe?"ajaxSuccess":"ajaxError",[Y,jr,Xe?dt:kt]),Yi.fireWith(vi,[Y,qn]),$r&&(Mi.trigger("ajaxComplete",[Y,jr]),--z.active||z.event.trigger("ajaxStop")))}return Y},getJSON:function(k,ve,Le){return z.get(k,ve,Le,"json")},getScript:function(k,ve){return z.get(k,void 0,ve,"script")}}),z.each(["get","post"],function(k,ve){z[ve]=function(Le,Ye,ot,Lt){return L(Ye)&&(Lt=Lt||ot,ot=Ye,Ye=void 0),z.ajax(z.extend({url:Le,type:ve,dataType:Lt,data:Ye,success:ot},z.isPlainObject(Le)&&Le))}}),z.ajaxPrefilter(function(k){var ve;for(ve in k.headers)ve.toLowerCase()==="content-type"&&(k.contentType=k.headers[ve]||"")}),z._evalUrl=function(k,ve,Le){return z.ajax({url:k,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Ye){z.globalEval(Ye,ve,Le)}})},z.fn.extend({wrapAll:function(k){var ve;return this[0]&&(L(k)&&(k=k.call(this[0])),ve=z(k,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&ve.insertBefore(this[0]),ve.map(function(){for(var Le=this;Le.firstElementChild;)Le=Le.firstElementChild;return Le}).append(this)),this},wrapInner:function(k){return L(k)?this.each(function(ve){z(this).wrapInner(k.call(this,ve))}):this.each(function(){var ve=z(this),Le=ve.contents();Le.length?Le.wrapAll(k):ve.append(k)})},wrap:function(k){var ve=L(k);return this.each(function(Le){z(this).wrapAll(ve?k.call(this,Le):k)})},unwrap:function(k){return this.parent(k).not("body").each(function(){z(this).replaceWith(this.childNodes)}),this}}),z.expr.pseudos.hidden=function(k){return!z.expr.pseudos.visible(k)},z.expr.pseudos.visible=function(k){return!!(k.offsetWidth||k.offsetHeight||k.getClientRects().length)},z.ajaxSettings.xhr=function(){try{return new g.XMLHttpRequest}catch{}};var Tr={0:200,1223:204},Nr=z.ajaxSettings.xhr();C.cors=!!Nr&&"withCredentials"in Nr,C.ajax=Nr=!!Nr,z.ajaxTransport(function(k){var ve,Le;if(C.cors||Nr&&!k.crossDomain)return{send:function(Ye,ot){var Lt,an=k.xhr();if(an.open(k.type,k.url,k.async,k.username,k.password),k.xhrFields)for(Lt in k.xhrFields)an[Lt]=k.xhrFields[Lt];k.mimeType&&an.overrideMimeType&&an.overrideMimeType(k.mimeType),!k.crossDomain&&!Ye["X-Requested-With"]&&(Ye["X-Requested-With"]="XMLHttpRequest");for(Lt in Ye)an.setRequestHeader(Lt,Ye[Lt]);ve=function(nr){return function(){ve&&(ve=Le=an.onload=an.onerror=an.onabort=an.ontimeout=an.onreadystatechange=null,nr==="abort"?an.abort():nr==="error"?typeof an.status!="number"?ot(0,"error"):ot(an.status,an.statusText):ot(Tr[an.status]||an.status,an.statusText,(an.responseType||"text")!=="text"||typeof an.responseText!="string"?{binary:an.response}:{text:an.responseText},an.getAllResponseHeaders()))}},an.onload=ve(),Le=an.onerror=an.ontimeout=ve("error"),an.onabort!==void 0?an.onabort=Le:an.onreadystatechange=function(){an.readyState===4&&g.setTimeout(function(){ve&&Le()})},ve=ve("abort");try{an.send(k.hasContent&&k.data||null)}catch(nr){if(ve)throw nr}},abort:function(){ve&&ve()}}}),z.ajaxPrefilter(function(k){k.crossDomain&&(k.contents.script=!1)}),z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(k){return z.globalEval(k),k}}}),z.ajaxPrefilter("script",function(k){k.cache===void 0&&(k.cache=!1),k.crossDomain&&(k.type="GET")}),z.ajaxTransport("script",function(k){if(k.crossDomain||k.scriptAttrs){var ve,Le;return{send:function(Ye,ot){ve=z("<script>").attr(k.scriptAttrs||{}).prop({charset:k.scriptCharset,src:k.url}).on("load error",Le=function(Lt){ve.remove(),Le=null,Lt&&ot(Lt.type==="error"?404:200,Lt.type)}),I.head.appendChild(ve[0])},abort:function(){Le&&Le()}}}});var ti=[],_i=/(=)\?(?=&|$)|\?\?/;z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var k=ti.pop()||z.expando+"_"+Gt.guid++;return this[k]=!0,k}}),z.ajaxPrefilter("json jsonp",function(k,ve,Le){var Ye,ot,Lt,an=k.jsonp!==!1&&(_i.test(k.url)?"url":typeof k.data=="string"&&(k.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&_i.test(k.data)&&"data");if(an||k.dataTypes[0]==="jsonp")return Ye=k.jsonpCallback=L(k.jsonpCallback)?k.jsonpCallback():k.jsonpCallback,an?k[an]=k[an].replace(_i,"$1"+Ye):k.jsonp!==!1&&(k.url+=(En.test(k.url)?"&":"?")+k.jsonp+"="+Ye),k.converters["script json"]=function(){return Lt||z.error(Ye+" was not called"),Lt[0]},k.dataTypes[0]="json",ot=g[Ye],g[Ye]=function(){Lt=arguments},Le.always(function(){ot===void 0?z(g).removeProp(Ye):g[Ye]=ot,k[Ye]&&(k.jsonpCallback=ve.jsonpCallback,ti.push(Ye)),Lt&&L(ot)&&ot(Lt[0]),Lt=ot=void 0}),"script"}),C.createHTMLDocument=function(){var k=I.implementation.createHTMLDocument("").body;return k.innerHTML="<form></form><form></form>",k.childNodes.length===2}(),z.parseHTML=function(k,ve,Le){if(typeof k!="string")return[];typeof ve=="boolean"&&(Le=ve,ve=!1);var Ye,ot,Lt;return ve||(C.createHTMLDocument?(ve=I.implementation.createHTMLDocument(""),Ye=ve.createElement("base"),Ye.href=I.location.href,ve.head.appendChild(Ye)):ve=I),ot=tt.exec(k),Lt=!Le&&[],ot?[ve.createElement(ot[1])]:(ot=Nt([k],ve,Lt),Lt&&Lt.length&&z(Lt).remove(),z.merge([],ot.childNodes))},z.fn.load=function(k,ve,Le){var Ye,ot,Lt,an=this,nr=k.indexOf(" ");return nr>-1&&(Ye=Ve(k.slice(nr)),k=k.slice(0,nr)),L(ve)?(Le=ve,ve=void 0):ve&&typeof ve=="object"&&(ot="POST"),an.length>0&&z.ajax({url:k,type:ot||"GET",dataType:"html",data:ve}).done(function(vr){Lt=arguments,an.html(Ye?z("<div>").append(z.parseHTML(vr)).find(Ye):vr)}).always(Le&&function(vr,$r){an.each(function(){Le.apply(this,Lt||[vr.responseText,$r,vr])})}),this},z.expr.pseudos.animated=function(k){return z.grep(z.timers,function(ve){return k===ve.elem}).length},z.offset={setOffset:function(k,ve,Le){var Ye,ot,Lt,an,nr,vr,$r,Fr=z.css(k,"position"),qr=z(k),jr={};Fr==="static"&&(k.style.position="relative"),nr=qr.offset(),Lt=z.css(k,"top"),vr=z.css(k,"left"),$r=(Fr==="absolute"||Fr==="fixed")&&(Lt+vr).indexOf("auto")>-1,$r?(Ye=qr.position(),an=Ye.top,ot=Ye.left):(an=parseFloat(Lt)||0,ot=parseFloat(vr)||0),L(ve)&&(ve=ve.call(k,Le,z.extend({},nr))),ve.top!=null&&(jr.top=ve.top-nr.top+an),ve.left!=null&&(jr.left=ve.left-nr.left+ot),"using"in ve?ve.using.call(k,jr):qr.css(jr)}},z.fn.extend({offset:function(k){if(arguments.length)return k===void 0?this:this.each(function(ot){z.offset.setOffset(this,k,ot)});var ve,Le,Ye=this[0];if(Ye)return Ye.getClientRects().length?(ve=Ye.getBoundingClientRect(),Le=Ye.ownerDocument.defaultView,{top:ve.top+Le.pageYOffset,left:ve.left+Le.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var k,ve,Le,Ye=this[0],ot={top:0,left:0};if(z.css(Ye,"position")==="fixed")ve=Ye.getBoundingClientRect();else{for(ve=this.offset(),Le=Ye.ownerDocument,k=Ye.offsetParent||Le.documentElement;k&&(k===Le.body||k===Le.documentElement)&&z.css(k,"position")==="static";)k=k.parentNode;k&&k!==Ye&&k.nodeType===1&&(ot=z(k).offset(),ot.top+=z.css(k,"borderTopWidth",!0),ot.left+=z.css(k,"borderLeftWidth",!0))}return{top:ve.top-ot.top-z.css(Ye,"marginTop",!0),left:ve.left-ot.left-z.css(Ye,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var k=this.offsetParent;k&&z.css(k,"position")==="static";)k=k.offsetParent;return k||Wn})}}),z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(k,ve){var Le=ve==="pageYOffset";z.fn[k]=function(Ye){return _e(this,function(ot,Lt,an){var nr;if(j(ot)?nr=ot:ot.nodeType===9&&(nr=ot.defaultView),an===void 0)return nr?nr[ve]:ot[Lt];nr?nr.scrollTo(Le?nr.pageXOffset:an,Le?an:nr.pageYOffset):ot[Lt]=an},k,Ye,arguments.length)}}),z.each(["top","left"],function(k,ve){z.cssHooks[ve]=qt(C.pixelPosition,function(Le,Ye){if(Ye)return Ye=_t(Le,ve),Pt.test(Ye)?z(Le).position()[ve]+"px":Ye})}),z.each({Height:"height",Width:"width"},function(k,ve){z.each({padding:"inner"+k,content:ve,"":"outer"+k},function(Le,Ye){z.fn[Ye]=function(ot,Lt){var an=arguments.length&&(Le||typeof ot!="boolean"),nr=Le||(ot===!0||Lt===!0?"margin":"border");return _e(this,function(vr,$r,Fr){var qr;return j(vr)?Ye.indexOf("outer")===0?vr["inner"+k]:vr.document.documentElement["client"+k]:vr.nodeType===9?(qr=vr.documentElement,Math.max(vr.body["scroll"+k],qr["scroll"+k],vr.body["offset"+k],qr["offset"+k],qr["client"+k])):Fr===void 0?z.css(vr,$r,nr):z.style(vr,$r,Fr,nr)},ve,an?ot:void 0,an)}})}),z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(k,ve){z.fn[ve]=function(Le){return this.on(ve,Le)}}),z.fn.extend({bind:function(k,ve,Le){return this.on(k,null,ve,Le)},unbind:function(k,ve){return this.off(k,null,ve)},delegate:function(k,ve,Le,Ye){return this.on(ve,k,Le,Ye)},undelegate:function(k,ve,Le){return arguments.length===1?this.off(k,"**"):this.off(ve,k||"**",Le)},hover:function(k,ve){return this.on("mouseenter",k).on("mouseleave",ve||k)}}),z.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(k,ve){z.fn[ve]=function(Le,Ye){return arguments.length>0?this.on(ve,null,Le,Ye):this.trigger(ve)}});var Ii=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;z.proxy=function(k,ve){var Le,Ye,ot;if(typeof ve=="string"&&(Le=k[ve],ve=k,k=Le),!!L(k))return Ye=p.call(arguments,2),ot=function(){return k.apply(ve||this,Ye.concat(p.call(arguments)))},ot.guid=k.guid=k.guid||z.guid++,ot},z.holdReady=function(k){k?z.readyWait++:z.ready(!0)},z.isArray=Array.isArray,z.parseJSON=JSON.parse,z.nodeName=ce,z.isFunction=L,z.isWindow=j,z.camelCase=Ft,z.type=ee,z.now=Date.now,z.isNumeric=function(k){var ve=z.type(k);return(ve==="number"||ve==="string")&&!isNaN(k-parseFloat(k))},z.trim=function(k){return k==null?"":(k+"").replace(Ii,"$1")},u=[],l=function(){return z}.apply(w,u),l!==void 0&&(Ge.exports=l);var ta=g.jQuery,Ji=g.$;return z.noConflict=function(k){return g.$===z&&(g.$=Ji),k&&g.jQuery===z&&(g.jQuery=ta),z},typeof y>"u"&&(g.jQuery=g.$=z),z})},74938:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(h,E,v,m){m===void 0&&(m=v),Object.defineProperty(h,m,{enumerable:!0,get:function(){return E[v]}})}:function(h,E,v,m){m===void 0&&(m=v),h[m]=E[v]}),g=this&&this.__setModuleDefault||(Object.create?function(h,E){Object.defineProperty(h,"default",{enumerable:!0,value:E})}:function(h,E){h.default=E}),y=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var E={};if(h!=null)for(var v in h)v!=="default"&&Object.prototype.hasOwnProperty.call(h,v)&&l(E,h,v);return g(E,h),E};Object.defineProperty(w,"__esModule",{value:!0}),w.useRegisterActions=void 0;var x=y(u(96540)),f=u(4122);function p(h,E){E===void 0&&(E=[]);var v=(0,f.useKBar)().query,m=x.useMemo(function(){return h},E);x.useEffect(function(){if(m.length){var S=v.registerActions(m);return function(){S()}}},[v,m])}w.useRegisterActions=p},75019:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.materialize=void 0;var l=u(31245),g=u(65212),y=u(17214);function x(){return g.operate(function(f,p){f.subscribe(y.createOperatorSubscriber(p,function(h){p.next(l.Notification.createNext(h))},function(){p.next(l.Notification.createComplete()),p.complete()},function(h){p.next(l.Notification.createError(h)),p.complete()}))})}w.materialize=x},75156:(Ge,w,u)=>{"use strict";u.d(w,{c:()=>Te});const l={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},g=(yt,tt,Ze)=>{let Ne;const it=l[yt];return typeof it=="string"?Ne=it:tt===1?Ne=it.one:Ne=it.other.replace("{{count}}",tt.toString()),Ze?.addSuffix?Ze.comparison&&Ze.comparison>0?"in "+Ne:Ne+" ago":Ne};function y(yt){return(tt={})=>{const Ze=tt.width?String(tt.width):yt.defaultWidth;return yt.formats[Ze]||yt.formats[yt.defaultWidth]}}const x={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},p={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},h={date:y({formats:x,defaultWidth:"full"}),time:y({formats:f,defaultWidth:"full"}),dateTime:y({formats:p,defaultWidth:"full"})},E={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},v=(yt,tt,Ze,Ne)=>E[yt];function m(yt){return(tt,Ze)=>{const Ne=Ze?.context?String(Ze.context):"standalone";let it;if(Ne==="formatting"&&yt.formattingValues){const Dn=yt.defaultFormattingWidth||yt.defaultWidth,Mt=Ze?.width?String(Ze.width):Dn;it=yt.formattingValues[Mt]||yt.formattingValues[Dn]}else{const Dn=yt.defaultWidth,Mt=Ze?.width?String(Ze.width):yt.defaultWidth;it=yt.values[Mt]||yt.values[Dn]}const Rt=yt.argumentCallback?yt.argumentCallback(tt):tt;return it[Rt]}}const S={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},d={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},O={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},R={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},C={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},L={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},I={ordinalNumber:(yt,tt)=>{const Ze=Number(yt),Ne=Ze%100;if(Ne>20||Ne<10)switch(Ne%10){case 1:return Ze+"st";case 2:return Ze+"nd";case 3:return Ze+"rd"}return Ze+"th"},era:m({values:S,defaultWidth:"wide"}),quarter:m({values:d,defaultWidth:"wide",argumentCallback:yt=>yt-1}),month:m({values:O,defaultWidth:"wide"}),day:m({values:R,defaultWidth:"wide"}),dayPeriod:m({values:C,defaultWidth:"wide",formattingValues:L,defaultFormattingWidth:"wide"})};function U(yt){return(tt,Ze={})=>{const Ne=Ze.width,it=Ne&&yt.matchPatterns[Ne]||yt.matchPatterns[yt.defaultMatchWidth],Rt=tt.match(it);if(!Rt)return null;const Dn=Rt[0],Mt=Ne&&yt.parsePatterns[Ne]||yt.parsePatterns[yt.defaultParseWidth],Wt=Array.isArray(Mt)?ee(Mt,$t=>$t.test(Dn)):$(Mt,$t=>$t.test(Dn));let Tn;Tn=yt.valueCallback?yt.valueCallback(Wt):Wt,Tn=Ze.valueCallback?Ze.valueCallback(Tn):Tn;const bn=tt.slice(Dn.length);return{value:Tn,rest:bn}}}function $(yt,tt){for(const Ze in yt)if(Object.prototype.hasOwnProperty.call(yt,Ze)&&tt(yt[Ze]))return Ze}function ee(yt,tt){for(let Ze=0;Ze<yt.length;Ze++)if(tt(yt[Ze]))return Ze}function re(yt){return(tt,Ze={})=>{const Ne=tt.match(yt.matchPattern);if(!Ne)return null;const it=Ne[0],Rt=tt.match(yt.parsePattern);if(!Rt)return null;let Dn=yt.valueCallback?yt.valueCallback(Rt[0]):Rt[0];Dn=Ze.valueCallback?Ze.valueCallback(Dn):Dn;const Mt=tt.slice(it.length);return{value:Dn,rest:Mt}}}const Se=/^(\d+)(th|st|nd|rd)?/i,z=/\d+/i,Q={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ce={any:[/^b/i,/^(a|c)/i]},se={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},q={any:[/1/i,/2/i,/3/i,/4/i]},te={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},A={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},T={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},B={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},X={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ue={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ie={ordinalNumber:re({matchPattern:Se,parsePattern:z,valueCallback:yt=>parseInt(yt,10)}),era:U({matchPatterns:Q,defaultMatchWidth:"wide",parsePatterns:ce,defaultParseWidth:"any"}),quarter:U({matchPatterns:se,defaultMatchWidth:"wide",parsePatterns:q,defaultParseWidth:"any",valueCallback:yt=>yt+1}),month:U({matchPatterns:te,defaultMatchWidth:"wide",parsePatterns:A,defaultParseWidth:"any"}),day:U({matchPatterns:T,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any"}),dayPeriod:U({matchPatterns:X,defaultMatchWidth:"any",parsePatterns:ue,defaultParseWidth:"any"})},Te={code:"en-US",formatDistance:g,formatLong:h,formatRelative:v,localize:I,match:ie,options:{weekStartsOn:0,firstWeekContainsDate:1}},je=null},75226:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{default:()=>E});var l=u(82611),g=u(49568),y=Object.assign||function(v){for(var m=1;m<arguments.length;m++){var S=arguments[m];for(var d in S)Object.prototype.hasOwnProperty.call(S,d)&&(v[d]=S[d])}return v};function x(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=m.defaultBlock,d=S===void 0?"line":S,O=m.defaultMarks,R=O===void 0?[]:O,C=m.delimiter,L=C===void 0?` `:C,j=m.toJSON,I=j===void 0?!1:j;g.Set.isSet(R)&&(R=R.toArray()),d=l.Node.createProperties(d),R=R.map(l.Mark.createProperties);var U={object:"value",document:{object:"document",data:{},nodes:v.split(L).map(function(ee){return y({},d,{object:"block",data:{},nodes:[{object:"text",text:ee,marks:R}]})})}},$=I?U:l.Value.fromJSON(U);return $}function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p(v.document,m)}function p(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=m.delimiter,d=S===void 0?` `:S;return v.object==="document"||v.object==="block"&&l.Block.isBlockList(v.nodes)?v.nodes.map(p).join(d):v.text}var h={deserialize:x,serialize:f};const E=h},75266:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.forkJoin=void 0;var l=u(48051),g=u(50439),y=u(19724),x=u(26404),f=u(17214),p=u(13916),h=u(15810);function E(){for(var v=[],m=0;m<arguments.length;m++)v[m]=arguments[m];var S=x.popResultSelector(v),d=g.argsArgArrayOrObject(v),O=d.args,R=d.keys,C=new l.Observable(function(L){var j=O.length;if(!j){L.complete();return}for(var I=new Array(j),U=j,$=j,ee=function(Se){var z=!1;y.innerFrom(O[Se]).subscribe(f.createOperatorSubscriber(L,function(Q){z||(z=!0,$--),I[Se]=Q},function(){return U--},void 0,function(){(!U||!z)&&($||L.next(R?h.createObject(R,I):I),L.complete())}))},re=0;re<j;re++)ee(re)});return S?C.pipe(p.mapOneOrManyArgs(S)):C}w.forkJoin=E},75394:(Ge,w,u)=>{var l=u(36453).default;function g(y){if(y!=null){var x=y[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],f=0;if(x)return x.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length))return{next:function(){return y&&f>=y.length&&(y=void 0),{value:y&&y[f++],done:!y}}}}throw new TypeError(l(y)+" is not iterable")}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},75505:(Ge,w,u)=>{"use strict";u.d(w,{s:()=>g});var l=u(76464);function g(y,x){var f=typeof x=="object";return new Promise(function(p,h){var E=!1,v;y.subscribe({next:function(m){v=m,E=!0},error:h,complete:function(){E?p(v):f?p(x.defaultValue):h(new l.G)}})})}},75544:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.expand=void 0;var l=u(65212),g=u(2574);function y(x,f,p){return f===void 0&&(f=1/0),f=(f||0)<1?1/0:f,l.operate(function(h,E){return g.mergeInternals(h,E,x,f,void 0,!0,p)})}w.expand=y},75816:(Ge,w,u)=>{"use strict";u.d(w,{xP:()=>q});var l=u(10378),g=u(71468),y=u(25508),x=u(65307),f=u(96540);function p(te){return te.replace(te[0],te[0].toUpperCase())}function h(te){let A=0;for(const T in te)A++;return A}function E(te){return te.type==="query"}function v(te){return te.type==="mutation"}function m(te){return te.type==="infinitequery"}function S(te,...A){return Object.assign(te,...A)}var d=Symbol();function O(te){const A=(0,f.useRef)(te),T=(0,f.useMemo)(()=>(0,l.$J)(A.current,te),[te]);return(0,f.useEffect)(()=>{A.current!==T&&(A.current=T)},[T]),T}function R(te){const A=(0,f.useRef)(te);return(0,f.useEffect)(()=>{(0,g.shallowEqual)(A.current,te)||(A.current=te)},[te]),(0,g.shallowEqual)(A.current,te)?A.current:te}var C=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",L=C(),j=()=>typeof navigator<"u"&&navigator.product==="ReactNative",I=j(),U=()=>L||I?f.useLayoutEffect:f.useEffect,$=U(),ee=te=>te.isUninitialized?{...te,isUninitialized:!1,isFetching:!0,isLoading:te.data===void 0,status:l.RE.pending}:te;function re(te,...A){const T={};return A.forEach(B=>{T[B]=te[B]}),T}var Se=["data","status","isLoading","isSuccess","isError","error"];function z({api:te,moduleOptions:{batch:A,hooks:{useDispatch:T,useSelector:B,useStore:X},unstable__sideEffectsInRender:ue,createSelector:ie},serializeQueryArgs:Te,context:je}){const yt=ue?$t=>$t():f.useEffect;return{buildQueryHooks:Wt,buildInfiniteQueryHooks:Tn,buildMutationHook:bn,usePrefetch:Ne};function tt($t,Ct,Z){if(Ct?.endpointName&&$t.isUninitialized){const{endpointName:Me}=Ct,lt=je.endpointDefinitions[Me];Z!==l.hT&&Te({queryArgs:Ct.originalArgs,endpointDefinition:lt,endpointName:Me})===Te({queryArgs:Z,endpointDefinition:lt,endpointName:Me})&&(Ct=void 0)}let me=$t.isSuccess?$t.data:Ct?.data;me===void 0&&(me=$t.data);const ke=me!==void 0,Ee=$t.isLoading,_e=(!Ct||Ct.isLoading||Ct.isUninitialized)&&!ke&&Ee,ge=$t.isSuccess||ke&&(Ee&&!Ct?.isError||$t.isUninitialized);return{...$t,data:me,currentData:$t.data,isFetching:Ee,isLoading:_e,isSuccess:ge}}function Ze($t,Ct,Z){if(Ct?.endpointName&&$t.isUninitialized){const{endpointName:Me}=Ct,lt=je.endpointDefinitions[Me];Z!==l.hT&&Te({queryArgs:Ct.originalArgs,endpointDefinition:lt,endpointName:Me})===Te({queryArgs:Z,endpointDefinition:lt,endpointName:Me})&&(Ct=void 0)}let me=$t.isSuccess?$t.data:Ct?.data;me===void 0&&(me=$t.data);const ke=me!==void 0,Ee=$t.isLoading,_e=(!Ct||Ct.isLoading||Ct.isUninitialized)&&!ke&&Ee,ge=$t.isSuccess||Ee&&ke;return{...$t,data:me,currentData:$t.data,isFetching:Ee,isLoading:_e,isSuccess:ge}}function Ne($t,Ct){const Z=T(),me=R(Ct);return(0,f.useCallback)((ke,Ee)=>Z(te.util.prefetch($t,ke,{...me,...Ee})),[$t,Z,me])}function it($t,Ct,{refetchOnReconnect:Z,refetchOnFocus:me,refetchOnMountOrArgChange:ke,skip:Ee=!1,pollingInterval:_e=0,skipPollingIfUnfocused:ge=!1,...Me}={}){const{initiate:lt}=te.endpoints[$t],Ft=T(),Et=(0,f.useRef)(void 0);if(!Et.current){const Cn=Ft(te.internalActions.internal_getRTKQSubscriptions());Et.current=Cn}const Zt=O(Ee?l.hT:Ct),nn=R({refetchOnReconnect:Z,refetchOnFocus:me,pollingInterval:_e,skipPollingIfUnfocused:ge}),Pn=Me.initialPageParam,rn=R(Pn),Vt=(0,f.useRef)(void 0);let{queryCacheKey:Kn,requestId:ur}=Vt.current||{},on=!1;Kn&&ur&&(on=Et.current.isRequestSubscribed(Kn,ur));const tr=!on&&Vt.current!==void 0;return yt(()=>{tr&&(Vt.current=void 0)},[tr]),yt(()=>{const Cn=Vt.current;if(typeof process<"u",Zt===l.hT){Cn?.unsubscribe(),Vt.current=void 0;return}const Wn=Vt.current?.subscriptionOptions;if(!Cn||Cn.arg!==Zt){Cn?.unsubscribe();const er=Ft(lt(Zt,{subscriptionOptions:nn,forceRefetch:ke,...m(je.endpointDefinitions[$t])?{initialPageParam:rn}:{}}));Vt.current=er}else nn!==Wn&&Cn.updateSubscriptionOptions(nn)},[Ft,lt,ke,Zt,nn,tr,rn,$t]),[Vt,Ft,lt,nn]}function Rt($t,Ct){return(me,{skip:ke=!1,selectFromResult:Ee}={})=>{const{select:_e}=te.endpoints[$t],ge=O(ke?l.hT:me),Me=(0,f.useRef)(void 0),lt=(0,f.useMemo)(()=>ie([_e(ge),(Pn,rn)=>rn,Pn=>ge],Ct,{memoizeOptions:{resultEqualityCheck:g.shallowEqual}}),[_e,ge]),Ft=(0,f.useMemo)(()=>Ee?ie([lt],Ee,{devModeChecks:{identityFunctionCheck:"never"}}):lt,[lt,Ee]),Et=B(Pn=>Ft(Pn,Me.current),g.shallowEqual),Zt=X(),nn=lt(Zt.getState(),Me.current);return $(()=>{Me.current=nn},[nn]),Et}}function Dn($t){(0,f.useEffect)(()=>()=>{$t.current?.unsubscribe?.(),$t.current=void 0},[$t])}function Mt($t){if(!$t.current)throw new Error((0,x.gk)(38));return $t.current.refetch()}function Wt($t){const Ct=(ke,Ee={})=>{const[_e]=it($t,ke,Ee);return Dn(_e),(0,f.useMemo)(()=>({refetch:()=>Mt(_e)}),[_e])},Z=({refetchOnReconnect:ke,refetchOnFocus:Ee,pollingInterval:_e=0,skipPollingIfUnfocused:ge=!1}={})=>{const{initiate:Me}=te.endpoints[$t],lt=T(),[Ft,Et]=(0,f.useState)(d),Zt=(0,f.useRef)(void 0),nn=R({refetchOnReconnect:ke,refetchOnFocus:Ee,pollingInterval:_e,skipPollingIfUnfocused:ge});yt(()=>{const Kn=Zt.current?.subscriptionOptions;nn!==Kn&&Zt.current?.updateSubscriptionOptions(nn)},[nn]);const Pn=(0,f.useRef)(nn);yt(()=>{Pn.current=nn},[nn]);const rn=(0,f.useCallback)(function(Kn,ur=!1){let on;return A(()=>{Zt.current?.unsubscribe(),Zt.current=on=lt(Me(Kn,{subscriptionOptions:Pn.current,forceRefetch:!ur})),Et(Kn)}),on},[lt,Me]),Vt=(0,f.useCallback)(()=>{Zt.current?.queryCacheKey&<(te.internalActions.removeQueryResult({queryCacheKey:Zt.current?.queryCacheKey}))},[lt]);return(0,f.useEffect)(()=>()=>{Zt?.current?.unsubscribe()},[]),(0,f.useEffect)(()=>{Ft!==d&&!Zt.current&&rn(Ft,!0)},[Ft,rn]),(0,f.useMemo)(()=>[rn,Ft,{reset:Vt}],[rn,Ft,Vt])},me=Rt($t,tt);return{useQueryState:me,useQuerySubscription:Ct,useLazyQuerySubscription:Z,useLazyQuery(ke){const[Ee,_e,{reset:ge}]=Z(ke),Me=me(_e,{...ke,skip:_e===d}),lt=(0,f.useMemo)(()=>({lastArg:_e}),[_e]);return(0,f.useMemo)(()=>[Ee,{...Me,reset:ge},lt],[Ee,Me,ge,lt])},useQuery(ke,Ee){const _e=Ct(ke,Ee),ge=me(ke,{selectFromResult:ke===l.hT||Ee?.skip?void 0:ee,...Ee}),Me=re(ge,...Se);return(0,f.useDebugValue)(Me),(0,f.useMemo)(()=>({...ge,..._e}),[ge,_e])}}}function Tn($t){const Ct=(me,ke={})=>{const[Ee,_e,ge,Me]=it($t,me,ke),lt=(0,f.useRef)(Me);yt(()=>{lt.current=Me},[Me]);const Ft=(0,f.useCallback)(function(nn,Pn){let rn;return A(()=>{Ee.current?.unsubscribe(),Ee.current=rn=_e(ge(nn,{subscriptionOptions:lt.current,direction:Pn}))}),rn},[Ee,_e,ge]);Dn(Ee);const Et=O(ke.skip?l.hT:me),Zt=(0,f.useCallback)(()=>Mt(Ee),[Ee]);return(0,f.useMemo)(()=>({trigger:Ft,refetch:Zt,fetchNextPage:()=>Ft(Et,"forward"),fetchPreviousPage:()=>Ft(Et,"backward")}),[Zt,Ft,Et])},Z=Rt($t,Ze);return{useInfiniteQueryState:Z,useInfiniteQuerySubscription:Ct,useInfiniteQuery(me,ke){const{refetch:Ee,fetchNextPage:_e,fetchPreviousPage:ge}=Ct(me,ke),Me=Z(me,{selectFromResult:me===l.hT||ke?.skip?void 0:ee,...ke}),lt=re(Me,...Se,"hasNextPage","hasPreviousPage");return(0,f.useDebugValue)(lt),(0,f.useMemo)(()=>({...Me,fetchNextPage:_e,fetchPreviousPage:ge,refetch:Ee}),[Me,_e,ge,Ee])}}}function bn($t){return({selectFromResult:Ct,fixedCacheKey:Z}={})=>{const{select:me,initiate:ke}=te.endpoints[$t],Ee=T(),[_e,ge]=(0,f.useState)();(0,f.useEffect)(()=>()=>{_e?.arg.fixedCacheKey||_e?.reset()},[_e]);const Me=(0,f.useCallback)(function(Kn){const ur=Ee(ke(Kn,{fixedCacheKey:Z}));return ge(ur),ur},[Ee,ke,Z]),{requestId:lt}=_e||{},Ft=(0,f.useMemo)(()=>me({fixedCacheKey:Z,requestId:_e?.requestId}),[Z,_e,me]),Et=(0,f.useMemo)(()=>Ct?ie([Ft],Ct):Ft,[Ct,Ft]),Zt=B(Et,g.shallowEqual),nn=Z==null?_e?.arg.originalArgs:void 0,Pn=(0,f.useCallback)(()=>{A(()=>{_e&&ge(void 0),Z&&Ee(te.internalActions.removeMutationResult({requestId:lt,fixedCacheKey:Z}))})},[Ee,Z,_e,lt]),rn=re(Zt,...Se,"endpointName");(0,f.useDebugValue)(rn);const Vt=(0,f.useMemo)(()=>({...Zt,originalArgs:nn,reset:Pn}),[Zt,nn,Pn]);return(0,f.useMemo)(()=>[Me,Vt],[Me,Vt])}}}var Q=Symbol(),ce=({batch:te=g.batch,hooks:A={useDispatch:g.useDispatch,useSelector:g.useSelector,useStore:g.useStore},createSelector:T=y.Mz,unstable__sideEffectsInRender:B=!1,...X}={})=>({name:Q,init(ue,{serializeQueryArgs:ie},Te){const je=ue,{buildQueryHooks:yt,buildInfiniteQueryHooks:tt,buildMutationHook:Ze,usePrefetch:Ne}=z({api:ue,moduleOptions:{batch:te,hooks:A,unstable__sideEffectsInRender:B,createSelector:T},serializeQueryArgs:ie,context:Te});return S(je,{usePrefetch:Ne}),S(Te,{batch:te}),{injectEndpoint(it,Rt){if(E(Rt)){const{useQuery:Dn,useLazyQuery:Mt,useLazyQuerySubscription:Wt,useQueryState:Tn,useQuerySubscription:bn}=yt(it);S(je.endpoints[it],{useQuery:Dn,useLazyQuery:Mt,useLazyQuerySubscription:Wt,useQueryState:Tn,useQuerySubscription:bn}),ue[`use${p(it)}Query`]=Dn,ue[`useLazy${p(it)}Query`]=Mt}if(v(Rt)){const Dn=Ze(it);S(je.endpoints[it],{useMutation:Dn}),ue[`use${p(it)}Mutation`]=Dn}else if(m(Rt)){const{useInfiniteQuery:Dn,useInfiniteQuerySubscription:Mt,useInfiniteQueryState:Wt}=tt(it);S(je.endpoints[it],{useInfiniteQuery:Dn,useInfiniteQuerySubscription:Mt,useInfiniteQueryState:Wt}),ue[`use${p(it)}InfiniteQuery`]=Dn}}}}});function se(te){const A=te.context||ReactReduxContext;if(useContext(A))throw new Error(_formatProdErrorMessage4(35));const[B]=React.useState(()=>configureStore({reducer:{[te.api.reducerPath]:te.api.reducer},middleware:X=>X().concat(te.api.middleware)}));return useEffect4(()=>te.setupListeners===!1?void 0:setupListeners(B.dispatch,te.setupListeners),[te.setupListeners,B.dispatch]),React.createElement(Provider,{store:B,context:A},te.children)}var q=(0,l.l0)((0,l.m7)(),ce())},75997:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.diffChars=x,w.characterDiff=void 0;var l=g(u(85969));function g(f){return f&&f.__esModule?f:{default:f}}var y=new l.default;w.characterDiff=y;function x(f,p,h){return y.diff(f,p,h)}},76001:(Ge,w,u)=>{var l=u(97420),g=u(80631);function y(x,f){return l(x,f,function(p,h){return g(x,h)})}Ge.exports=y},76035:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.distinctUntilKeyChanged=void 0;var l=u(22044);function g(y,x){return l.distinctUntilChanged(function(f,p){return x?x(f[y],p[y]):f[y]===p[y]})}w.distinctUntilKeyChanged=g},76075:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.mergeMapTo=void 0;var l=u(67478),g=u(10281);function y(x,f,p){return p===void 0&&(p=1/0),g.isFunction(f)?l.mergeMap(function(){return x},f,p):(typeof f=="number"&&(p=f),l.mergeMap(function(){return x},p))}w.mergeMapTo=y},76239:Ge=>{Ge.exports=l;var w=9;function u(g){return g&&g.nodeType===w}function l(g){if(u(g))return g;if(u(g.ownerDocument))return g.ownerDocument;if(u(g.document))return g.document;if(g.parentNode)return l(g.parentNode);if(g.commonAncestorContainer)return l(g.commonAncestorContainer);if(g.startContainer)return l(g.startContainer);if(g.anchorNode)return l(g.anchorNode)}},76288:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>f});var l=u(38314),g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),x=Symbol.for("react.fragment");function f(p){return p&&(0,l.A)(p)==="object"&&(p.$$typeof===g||p.$$typeof===y)&&p.type===x}},76459:Ge=>{"use strict";Ge.exports=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=void 0,p=void 0,h=void 0,E=[];return function(){var S=w(y),d=new Date().getTime(),O=!f||d-f>S;f=d;for(var R=arguments.length,C=Array(R),L=0;L<R;L++)C[L]=arguments[L];if(O&&x.leading)return x.accumulate?Promise.resolve(g.call(this,[C])).then(function(I){return I[0]}):Promise.resolve(g.call.apply(g,[this].concat(C)));if(p?clearTimeout(h):p=u(),E.push(C),h=setTimeout(v.bind(this),S),x.accumulate){var j=E.length-1;return p.promise.then(function(I){return I[j]})}return p.promise};function v(){var m=p;clearTimeout(h),Promise.resolve(x.accumulate?g.call(this,E):g.apply(this,E[E.length-1])).then(m.resolve,m.reject),E=[],p=null}};function w(l){return typeof l=="function"?l():l}function u(){var l={};return l.promise=new Promise(function(g,y){l.resolve=g,l.reject=y}),l}},76464:(Ge,w,u)=>{"use strict";u.d(w,{G:()=>g});var l=u(82947),g=(0,l.L)(function(y){return function(){y(this),this.name="EmptyError",this.message="no elements in sequence"}})},76595:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=f;var l=u(64849),g=y(l);function y(p){return p&&p.__esModule?p:{default:p}}var x=!1;function f(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(p&&x!==!1)return x;if(typeof document<"u"){var h=document.createElement("div");(0,g.default)(h,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(h),x=h.offsetWidth-h.clientWidth,document.body.removeChild(h)}else x=0;return x||0}},76625:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=g(u(87825));function g(E){return E&&E.__esModule?E:{default:E}}function y(E,v){if(!(E instanceof v))throw new TypeError("Cannot call a class as a function")}function x(E,v){for(var m=0;m<v.length;m++){var S=v[m];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(E,S.key,S)}}function f(E,v,m){return v&&x(E.prototype,v),m&&x(E,m),E}var p=50,h=function(){function E(){y(this,E),this.level=0}return f(E,[{key:"beginIfPossible",value:function(m,S){this.level===0&&this.isInlineBlock(m,S)?this.level=1:this.level>0?this.level++:this.level=0}},{key:"end",value:function(){this.level--}},{key:"isActive",value:function(){return this.level>0}},{key:"isInlineBlock",value:function(m,S){for(var d=0,O=0,R=S;R<m.length;R++){var C=m[R];if(d+=C.value.length,d>p)return!1;if(C.type===l.default.OPEN_PAREN)O++;else if(C.type===l.default.CLOSE_PAREN&&(O--,O===0))return!0;if(this.isForbiddenToken(C))return!1}return!1}},{key:"isForbiddenToken",value:function(m){var S=m.type,d=m.value;return S===l.default.RESERVED_TOP_LEVEL||S===l.default.RESERVED_NEWLINE||S===l.default.COMMENT||S===l.default.BLOCK_COMMENT||d===";"}}]),E}();w.default=h,Ge.exports=w.default},77056:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.dontSetMe=x,w.findInArray=u,w.int=y,w.isFunction=l,w.isNum=g;function u(f,p){for(let h=0,E=f.length;h<E;h++)if(p.apply(p,[f[h],h,f]))return f[h]}function l(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Function]"}function g(f){return typeof f=="number"&&!isNaN(f)}function y(f){return parseInt(f,10)}function x(f,p,h){if(f[p])return new Error(`Invalid prop ${p} passed to ${h} - do not set this, set it on the child.`)}},77672:(Ge,w,u)=>{var l=u(97352),g=u(11094),y=u(61358).PassThrough;w.streamParser=function(f){var f=f||{},p=new y,h=this,E=g(function(v){v!==""&&this.queue(h.parse(v))});return p.on("pipe",function(v){v.unpipe&&v.unpipe(this),this.transformStream=v.pipe(l()).pipe(E)}),p.pipe=function(v,m){return this.transformStream.pipe(v,m)},p},w.streamStringify=function(p){var f=this,p=p||{};if(p.hasOwnProperty("delimiter"))var h=p.delimiter;else var h=` `;return g(function(E){this.queue(f.stringify(E)+h)},function(){this.queue(null)})}},77691:(Ge,w,u)=>{var l=u(57522).default;function g(y){if(y!=null){var x=y[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],f=0;if(x)return x.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length))return{next:function(){return y&&f>=y.length&&(y=void 0),{value:y&&y[f++],done:!y}}}}throw new TypeError(l(y)+" is not iterable")}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},77876:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.distinct=void 0;var l=u(65212),g=u(17214),y=u(5717),x=u(19724);function f(p,h){return l.operate(function(E,v){var m=new Set;E.subscribe(g.createOperatorSubscriber(v,function(S){var d=p?p(S):S;m.has(d)||(m.add(d),v.next(S))})),h&&x.innerFrom(h).subscribe(g.createOperatorSubscriber(v,function(){return m.clear()},y.noop))})}w.distinct=f},78051:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var f=function(p,h){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,v){E.__proto__=v}||function(E,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(E[m]=v[m])},f(p,h)};return function(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");f(p,h);function E(){this.constructor=p}p.prototype=h===null?Object.create(h):(E.prototype=h.prototype,new E)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.AsapAction=void 0;var g=u(64772),y=u(16002),x=function(f){l(p,f);function p(h,E){var v=f.call(this,h,E)||this;return v.scheduler=h,v.work=E,v}return p.prototype.requestAsyncId=function(h,E,v){return v===void 0&&(v=0),v!==null&&v>0?f.prototype.requestAsyncId.call(this,h,E,v):(h.actions.push(this),h._scheduled||(h._scheduled=y.immediateProvider.setImmediate(h.flush.bind(h,void 0))))},p.prototype.recycleAsyncId=function(h,E,v){var m;if(v===void 0&&(v=0),v!=null?v>0:this.delay>0)return f.prototype.recycleAsyncId.call(this,h,E,v);var S=h.actions;E!=null&&((m=S[S.length-1])===null||m===void 0?void 0:m.id)!==E&&(y.immediateProvider.clearImmediate(E),h._scheduled===E&&(h._scheduled=void 0))},p}(g.AsyncAction);w.AsapAction=x},78072:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.window=void 0;var l=u(54427),g=u(65212),y=u(17214),x=u(5717),f=u(19724);function p(h){return g.operate(function(E,v){var m=new l.Subject;v.next(m.asObservable());var S=function(d){m.error(d),v.error(d)};return E.subscribe(y.createOperatorSubscriber(v,function(d){return m?.next(d)},function(){m.complete(),v.complete()},S)),f.innerFrom(h).subscribe(y.createOperatorSubscriber(v,function(){m.complete(),v.next(m=new l.Subject)},x.noop,S)),function(){m?.unsubscribe(),m=null}})}w.window=p},78080:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});function l(y,x){if(y==null)return{};var f={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(x.indexOf(p)!==-1)continue;f[p]=y[p]}return f}function g(y,x){if(y==null)return{};var f,p,h=l(y,x);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(y);for(p=0;p<E.length;p++)f=E[p],x.indexOf(f)===-1&&{}.propertyIsEnumerable.call(y,f)&&(h[f]=y[f])}return h}},78101:(Ge,w,u)=>{"use strict";u.d(w,{$W:()=>d,$g:()=>L,$l:()=>Q,Lh:()=>R,O4:()=>O,Uc:()=>se,VL:()=>Rt,XD:()=>Ne,_V:()=>$,_e:()=>te,eD:()=>S,g7:()=>Dn,j:()=>tt,l6:()=>Se,qM:()=>B,sN:()=>X,wh:()=>U});var l=Object.defineProperty,g=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(Mt,Wt,Tn)=>Wt in Mt?l(Mt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):Mt[Wt]=Tn,E=(Mt,Wt)=>{for(var Tn in Wt||(Wt={}))f.call(Wt,Tn)&&h(Mt,Tn,Wt[Tn]);if(x)for(var Tn of x(Wt))p.call(Wt,Tn)&&h(Mt,Tn,Wt[Tn]);return Mt},v=(Mt,Wt)=>g(Mt,y(Wt)),m=(Mt,Wt,Tn)=>new Promise((bn,$t)=>{var Ct=ke=>{try{me(Tn.next(ke))}catch(Ee){$t(Ee)}},Z=ke=>{try{me(Tn.throw(ke))}catch(Ee){$t(Ee)}},me=ke=>ke.done?bn(ke.value):Promise.resolve(ke.value).then(Ct,Z);me((Tn=Tn.apply(Mt,Wt)).next())}),S=class{constructor(){this.data=new Map}set(Mt,Wt){this.data.set(Mt,Wt)}get(Mt){return this.data.get(Mt)}has(Mt){return this.data.has(Mt)}delete(Mt){return this.data.delete(Mt)}clear(){this.data.clear()}},d={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",SPLIT:"SPLIT",CACHED:"CACHED",DISABLED:"DISABLED",UNKNOWN:"UNKNOWN",STALE:"STALE",ERROR:"ERROR"},O=(Mt=>(Mt.PROVIDER_NOT_READY="PROVIDER_NOT_READY",Mt.PROVIDER_FATAL="PROVIDER_FATAL",Mt.FLAG_NOT_FOUND="FLAG_NOT_FOUND",Mt.PARSE_ERROR="PARSE_ERROR",Mt.TYPE_MISMATCH="TYPE_MISMATCH",Mt.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",Mt.INVALID_CONTEXT="INVALID_CONTEXT",Mt.GENERAL="GENERAL",Mt))(O||{}),R=class bE extends Error{constructor(Wt,Tn){super(Wt),Object.setPrototypeOf(this,bE.prototype),this.name="OpenFeatureError",this.cause=Tn?.cause}},C=class SE extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,SE.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},L=class _E extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,_E.prototype),this.name="GeneralError",this.code="GENERAL"}},j=class EE extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,EE.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},I=class wE extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,wE.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},U=class xE extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,xE.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},$=class CE extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,CE.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},ee=class OE extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,OE.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},re=class TE extends R{constructor(Wt,Tn){super(Wt,Tn),Object.setPrototypeOf(this,TE.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},Se=(Mt,Wt)=>{switch(Mt){case"FLAG_NOT_FOUND":return new C(Wt);case"PARSE_ERROR":return new I(Wt);case"TYPE_MISMATCH":return new re(Wt);case"TARGETING_KEY_MISSING":return new ee(Wt);case"INVALID_CONTEXT":return new j(Wt);case"PROVIDER_NOT_READY":return new $(Wt);case"PROVIDER_FATAL":return new U(Wt);default:return new L(Wt)}},z=(Mt=>(Mt.NOT_READY="NOT_READY",Mt.READY="READY",Mt.ERROR="ERROR",Mt.STALE="STALE",Mt.FATAL="FATAL",Mt))(z||{}),Q=(Mt=>(Mt.NOT_READY="NOT_READY",Mt.READY="READY",Mt.ERROR="ERROR",Mt.STALE="STALE",Mt.FATAL="FATAL",Mt.RECONCILING="RECONCILING",Mt))(Q||{}),ce=(Mt=>(Mt.Ready="PROVIDER_READY",Mt.Error="PROVIDER_ERROR",Mt.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",Mt.Stale="PROVIDER_STALE",Mt))(ce||{}),se=(Mt=>(Mt.Ready="PROVIDER_READY",Mt.Error="PROVIDER_ERROR",Mt.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",Mt.ContextChanged="PROVIDER_CONTEXT_CHANGED",Mt.Reconciling="PROVIDER_RECONCILING",Mt.Stale="PROVIDER_STALE",Mt))(se||{}),q={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},te=(Mt,Wt)=>!Wt&&Mt==="PROVIDER_READY"||q[Wt]===Mt,A=class{error(...Mt){console.error(...Mt)}warn(...Mt){console.warn(...Mt)}info(){}debug(){}},T=["error","warn","info","debug"],B=class{constructor(Mt){this.fallbackLogger=new A;try{for(const Wt of T)if(!Mt[Wt]||typeof Mt[Wt]!="function")throw new Error(`The provided logger is missing the ${Wt} method.`);this.logger=Mt}catch(Wt){console.error(Wt),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...Mt){this.log("error",...Mt)}warn(...Mt){this.log("warn",...Mt)}info(...Mt){this.log("info",...Mt)}debug(...Mt){this.log("debug",...Mt)}log(Mt,...Wt){try{this.logger[Mt](...Wt)}catch{this.fallbackLogger[Mt](...Wt)}}},X=class{constructor(Mt){this.globalLogger=Mt,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(Mt,Wt){this.eventEmitter.emit(Mt,Wt)}addHandler(Mt,Wt){const Tn=$t=>m(this,null,function*(){var Ct;try{yield Wt($t)}catch(Z){(Ct=this._logger)==null||Ct.error("Error running event handler:",Z)}}),bn=this._handlers[Mt].get(Wt);this._handlers[Mt].set(Wt,[...bn||[],Tn]),this.eventEmitter.on(Mt,Tn)}removeHandler(Mt,Wt){const Tn=this._handlers[Mt].get(Wt);if(Tn){const bn=Tn.pop();bn&&this.eventEmitter.removeListener(Mt,bn)}}removeAllHandlers(Mt){Mt?this.eventEmitter.removeAllListeners(Mt):this.eventEmitter.removeAllListeners()}getHandlers(Mt){return this.eventEmitter.listeners(Mt)}setLogger(Mt){return this._eventLogger=new B(Mt),this}get _logger(){var Mt,Wt;return(Wt=this._eventLogger)!=null?Wt:(Mt=this.globalLogger)==null?void 0:Mt.call(this)}},ue={KEY:"feature_flag.key",ERROR_CODE:"error.type",ERROR_MESSAGE:"error.message",VARIANT:"feature_flag.result.variant",VALUE:"feature_flag.result.value",CONTEXT_ID:"feature_flag.context.id",REASON:"feature_flag.result.reason",PROVIDER:"feature_flag.provider.name",FLAG_SET_ID:"feature_flag.set.id",VERSION:"feature_flag.version"},ie={CONTEXT_ID:"contextId",FLAG_SET_ID:"flagSetId",VERSION:"version"},Te="feature_flag.evaluation";function je(Mt,Wt){var Tn,bn;const $t={[ue.KEY]:Mt.flagKey,[ue.PROVIDER]:Mt.providerMetadata.name,[ue.REASON]:((Tn=Wt.reason)!=null?Tn:d.UNKNOWN).toLowerCase()};Wt.variant?$t[ue.VARIANT]=Wt.variant:$t[ue.VALUE]=Wt.value;const Ct=Wt.flagMetadata[ie.CONTEXT_ID]||Mt.context.targetingKey;Ct&&($t[ue.CONTEXT_ID]=Ct);const Z=Wt.flagMetadata[ie.FLAG_SET_ID];Z&&($t[ue.FLAG_SET_ID]=Z);const me=Wt.flagMetadata[ie.VERSION];return me&&($t[ue.VERSION]=me),Wt.reason===d.ERROR&&($t[ue.ERROR_CODE]=((bn=Wt.errorCode)!=null?bn:"GENERAL").toLowerCase(),Wt.errorMessage&&($t[ue.ERROR_MESSAGE]=Wt.errorMessage)),{name:Te,attributes:$t}}function yt(Mt){return typeof Mt=="string"}function tt(Mt){return yt(Mt)?Mt:void 0}function Ze(Mt){return typeof Mt=="object"}function Ne(Mt){return Ze(Mt)?Mt:void 0}function it(Mt){return typeof Mt<"u"&&Mt!==null}var Rt=class{constructor(Mt,Wt,Tn){this._provider=Mt,this._status=Wt,this._pendingContextChanges=0;var bn,$t,Ct;(bn=Mt.events)==null||bn.addHandler("PROVIDER_READY",()=>{this._status=Tn.READY}),($t=Mt.events)==null||$t.addHandler("PROVIDER_STALE",()=>{this._status=Tn.STALE}),(Ct=Mt.events)==null||Ct.addHandler("PROVIDER_ERROR",Z=>{Z?.errorCode==="PROVIDER_FATAL"?this._status=Tn.FATAL:this._status=Tn.ERROR})}get provider(){return this._provider}set provider(Mt){this._provider=Mt}get status(){return this._status}set status(Mt){this._status=Mt}get allContextChangesSettled(){return this._pendingContextChanges===0}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},Dn=class{constructor(Mt){this._hooks=[],this._context={},this._logger=new A,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=Mt}addHooks(...Mt){return this._hooks=[...this._hooks,...Mt],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(Mt){return this._logger=new B(Mt),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(Mt){return this.getProviderForClient(Mt).metadata}addHandler(Mt,Wt,Tn){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(bn=>{var $t;const Ct=bn[0],Z=bn[1].provider,me=bn[1].status;if(te(Mt,me))try{Wt({domain:Ct,providerName:Z.metadata.name})}catch(Ee){($t=this._logger)==null||$t.error("Error running event handler:",Ee)}}),this._apiEmitter.addHandler(Mt,Wt),Tn?.signal&&typeof Tn.signal.addEventListener=="function"&&Tn.signal.addEventListener("abort",()=>{this.removeHandler(Mt,Wt)})}removeHandler(Mt,Wt){this._apiEmitter.removeHandler(Mt,Wt)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(Mt){return this._apiEmitter.getHandlers(Mt)}setAwaitableProvider(Mt,Wt){var Tn,bn,$t,Ct,Z,me,ke,Ee;const _e=tt(Mt),ge=(Tn=Ne(Mt))!=null?Tn:Ne(Wt);if(!ge){this._logger.debug("No provider defined, ignoring setProvider call");return}const Me=this.getProviderForClient(_e),lt=ge.metadata.name;if(Me===ge){this._logger.debug("Provider is already set, ignoring setProvider call");return}if(!ge.runsOn)this._logger.debug(`Provider '${ge.metadata.name}' has not defined its intended use.`);else if(ge.runsOn!==this._runsOn)throw new L(`Provider '${ge.metadata.name}' is intended for use on the ${ge.runsOn}.`);const Ft=this.getAssociatedEventEmitters(_e);let Et;const Zt=new Rt(ge,this._statusEnumType.NOT_READY,this._statusEnumType);return typeof ge.initialize=="function"&&!this.allProviders.includes(ge)?Et=(Z=(Ct=($t=ge.initialize)==null?void 0:$t.call(ge,_e?(bn=this._domainScopedContext.get(_e))!=null?bn:this._context:this._context))==null?void 0:Ct.then(()=>{var nn;Zt.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(_e).forEach(Pn=>{Pn?.emit("PROVIDER_READY",{clientName:_e,domain:_e,providerName:lt})}),(nn=this._apiEmitter)==null||nn.emit("PROVIDER_READY",{clientName:_e,domain:_e,providerName:lt})}))==null?void 0:Z.catch(nn=>{var Pn;throw nn?.code==="PROVIDER_FATAL"?Zt.status=this._statusEnumType.FATAL:Zt.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(_e).forEach(rn=>{rn?.emit("PROVIDER_ERROR",{clientName:_e,domain:_e,providerName:lt,message:nn?.message})}),(Pn=this._apiEmitter)==null||Pn.emit("PROVIDER_ERROR",{clientName:_e,domain:_e,providerName:lt,message:nn?.message}),nn}):(Zt.status=this._statusEnumType.READY,Ft.forEach(nn=>{nn?.emit("PROVIDER_READY",{clientName:_e,domain:_e,providerName:lt})}),(me=this._apiEmitter)==null||me.emit("PROVIDER_READY",{clientName:_e,domain:_e,providerName:lt})),_e?this._domainScopedProviders.set(_e,Zt):this._defaultProvider=Zt,this.transferListeners(Me,ge,_e,Ft),this.allProviders.includes(Me)||(Ee=(ke=Me?.onClose)==null?void 0:ke.call(Me))==null||Ee.catch(nn=>{this._logger.error(`error closing provider: ${nn?.message}, ${nn?.stack}`)}),Et}getProviderForClient(Mt){var Wt,Tn;return Mt?(Tn=(Wt=this._domainScopedProviders.get(Mt))==null?void 0:Wt.provider)!=null?Tn:this._defaultProvider.provider:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(Mt){const Wt=this._clientEvents.get(Mt);if(Wt)return Wt;const Tn=this._createEventEmitter();this._clientEvents.set(Mt,Tn);const bn=this.getProviderForClient(Mt);return Object.values(se).forEach($t=>{var Ct;return(Ct=bn.events)==null?void 0:Ct.addHandler($t,Z=>m(this,null,function*(){Tn.emit($t,v(E({},Z),{clientName:Mt,domain:Mt,providerName:bn.metadata.name}))}))}),Tn}getUnboundEmitters(){const Mt=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(it).filter(bn=>!Mt.includes(bn)).map(bn=>this._clientEvents.get(bn)),this._clientEvents.get(void 0)].filter(it)}getAssociatedEventEmitters(Mt){return Mt?[this.buildAndCacheEventEmitterForClient(Mt)]:this.getUnboundEmitters()}transferListeners(Mt,Wt,Tn,bn){var $t;($t=this._clientEventHandlers.get(Tn))==null||$t.forEach(Z=>{var me;return(me=Mt.events)==null?void 0:me.removeHandler(...Z)});const Ct=Object.values(se).map(Z=>[Z,ke=>m(this,null,function*(){bn.forEach(Ee=>{Ee?.emit(Z,v(E({},ke),{clientName:Tn,domain:Tn,providerName:Wt.metadata.name}))}),this._apiEmitter.emit(Z,v(E({},ke),{clientName:Tn,domain:Tn,providerName:Wt.metadata.name}))})]);this._clientEventHandlers.set(Tn,Ct),Ct.forEach(Z=>{var me;return(me=Wt.events)==null?void 0:me.addHandler(...Z)})}close(){return m(this,null,function*(){var Mt,Wt;try{yield(Wt=(Mt=this==null?void 0:this._defaultProvider.provider)==null?void 0:Mt.onClose)==null?void 0:Wt.call(Mt)}catch(bn){this.handleShutdownError(this._defaultProvider.provider,bn)}const Tn=Array.from(this._domainScopedProviders);yield Promise.all(Tn.map(bn=>m(this,[bn],function*([,$t]){var Ct,Z;try{yield(Z=$t==null?void 0:(Ct=$t.provider).onClose)==null?void 0:Z.call(Ct)}catch(me){this.handleShutdownError($t?.provider,me)}})))})}clearProvidersAndSetDefault(Mt){return m(this,null,function*(){try{yield this.close()}catch{this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new Rt(Mt,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(Mt=>Mt.provider),this._defaultProvider.provider]}handleShutdownError(Mt,Wt){this._logger.error(`Error during shutdown of provider ${Mt.metadata.name}: ${Wt}`),this._logger.error(Wt?.stack)}}},78217:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(S,d,O,R){R===void 0&&(R=O);var C=Object.getOwnPropertyDescriptor(d,O);(!C||("get"in C?!d.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return d[O]}}),Object.defineProperty(S,R,C)}:function(S,d,O,R){R===void 0&&(R=O),S[R]=d[O]}),g=this&&this.__setModuleDefault||(Object.create?function(S,d){Object.defineProperty(S,"default",{enumerable:!0,value:d})}:function(S,d){S.default=d}),y=this&&this.__importStar||function(S){if(S&&S.__esModule)return S;var d={};if(S!=null)for(var O in S)O!=="default"&&Object.prototype.hasOwnProperty.call(S,O)&&l(d,S,O);return g(d,S),d};Object.defineProperty(w,"__esModule",{value:!0}),w.computeLineInformation=w.DiffMethod=w.DiffType=void 0;const x=y(u(4700)),f=x;var p;(function(S){S[S.DEFAULT=0]="DEFAULT",S[S.ADDED=1]="ADDED",S[S.REMOVED=2]="REMOVED",S[S.CHANGED=3]="CHANGED"})(p||(w.DiffType=p={}));var h;(function(S){S.CHARS="diffChars",S.WORDS="diffWords",S.WORDS_WITH_SPACE="diffWordsWithSpace",S.LINES="diffLines",S.TRIMMED_LINES="diffTrimmedLines",S.SENTENCES="diffSentences",S.CSS="diffCss",S.JSON="diffJson"})(h||(w.DiffMethod=h={}));const E=S=>S===""?[]:S.replace(/\n$/,"").split(` `),v=(S,d,O=h.CHARS)=>{const R=f[O](S,d),C={left:[],right:[]};return R.forEach(({added:L,removed:j,value:I})=>{const U={};return L&&(U.type=p.ADDED,U.value=I,C.right.push(U)),j&&(U.type=p.REMOVED,U.value=I,C.left.push(U)),!j&&!L&&(U.type=p.DEFAULT,U.value=I,C.right.push(U),C.left.push(U)),U}),C},m=(S,d,O=!1,R=h.CHARS,C=0,L=[])=>{let j=[];typeof S=="string"&&typeof d=="string"?j=x.diffLines(S.trimRight(),d.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):j=x.diffJson(S,d);let I=C,U=C,$=[],ee=0;const re=[],Se=[],z=(Q,ce,se,q,te)=>E(Q).map((T,B)=>{const X={},ue={};if(!(Se.includes(`${ce}-${B}`)||te&&B!==0)){if(se||q){let ie=!0;if(q){U+=1,X.lineNumber=U,X.type=p.REMOVED,X.value=T||" ";const Te=j[ce+1];if(Te&&Te.added){const je=E(Te.value)[B];if(je){const yt=z(je,ce,!0,!1,!0),{value:tt,lineNumber:Ze,type:Ne}=yt[0].right;if(Se.push(`${ce+1}-${B}`),ue.lineNumber=Ze,X.value===tt)ie=!1,ue.type=0,X.type=0,ue.value=tt;else if(ue.type=Ne,O)ue.value=tt;else{const it=v(T,tt,R);ue.value=it.right,X.value=it.left}}}}else I+=1,ue.lineNumber=I,ue.type=p.ADDED,ue.value=T;ie&&!te&&(re.includes(ee)||re.push(ee))}else U+=1,I+=1,X.lineNumber=U,X.type=p.DEFAULT,X.value=T,ue.lineNumber=I,ue.type=p.DEFAULT,ue.value=T;return(L?.includes(`L-${X.lineNumber}`)||L?.includes(`R-${ue.lineNumber}`)&&!re.includes(ee))&&re.push(ee),te||(ee+=1),{right:ue,left:X}}}).filter(Boolean);return j.forEach(({added:Q,removed:ce,value:se},q)=>{$=[...$,...z(se,q,Q,ce)]}),{lineInformation:$,diffLines:re}};w.computeLineInformation=m},78263:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isAsyncIterable=void 0;var l=u(10281);function g(y){return Symbol.asyncIterator&&l.isFunction(y?.[Symbol.asyncIterator])}w.isAsyncIterable=g},78448:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p});var l=u(9175);function g(h){if(Array.isArray(h))return(0,l.A)(h)}function y(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)}var x=u(86906);function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(h){return g(h)||y(h)||(0,x.A)(h)||f()}},78452:Ge=>{function w(){return Ge.exports=w=Object.assign?Object.assign.bind():function(u){for(var l=1;l<arguments.length;l++){var g=arguments[l];for(var y in g)({}).hasOwnProperty.call(g,y)&&(u[y]=g[y])}return u},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports,w.apply(null,arguments)}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},78531:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.scanInternals=void 0;var l=u(17214);function g(y,x,f,p,h){return function(E,v){var m=f,S=x,d=0;E.subscribe(l.createOperatorSubscriber(v,function(O){var R=d++;S=m?y(S,O,R):(m=!0,O),p&&v.next(S)},h&&function(){m&&v.next(S),v.complete()}))}}w.scanInternals=g},78624:(Ge,w,u)=>{"use strict";var l=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof u.g<"u"&&u.g||{},g={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function y(ce){return ce&&DataView.prototype.isPrototypeOf(ce)}if(g.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(ce){return ce&&x.indexOf(Object.prototype.toString.call(ce))>-1};function p(ce){if(typeof ce!="string"&&(ce=String(ce)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(ce)||ce==="")throw new TypeError('Invalid character in header field name: "'+ce+'"');return ce.toLowerCase()}function h(ce){return typeof ce!="string"&&(ce=String(ce)),ce}function E(ce){var se={next:function(){var q=ce.shift();return{done:q===void 0,value:q}}};return g.iterable&&(se[Symbol.iterator]=function(){return se}),se}function v(ce){this.map={},ce instanceof v?ce.forEach(function(se,q){this.append(q,se)},this):Array.isArray(ce)?ce.forEach(function(se){if(se.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+se.length);this.append(se[0],se[1])},this):ce&&Object.getOwnPropertyNames(ce).forEach(function(se){this.append(se,ce[se])},this)}v.prototype.append=function(ce,se){ce=p(ce),se=h(se);var q=this.map[ce];this.map[ce]=q?q+", "+se:se},v.prototype.delete=function(ce){delete this.map[p(ce)]},v.prototype.get=function(ce){return ce=p(ce),this.has(ce)?this.map[ce]:null},v.prototype.has=function(ce){return this.map.hasOwnProperty(p(ce))},v.prototype.set=function(ce,se){this.map[p(ce)]=h(se)},v.prototype.forEach=function(ce,se){for(var q in this.map)this.map.hasOwnProperty(q)&&ce.call(se,this.map[q],q,this)},v.prototype.keys=function(){var ce=[];return this.forEach(function(se,q){ce.push(q)}),E(ce)},v.prototype.values=function(){var ce=[];return this.forEach(function(se){ce.push(se)}),E(ce)},v.prototype.entries=function(){var ce=[];return this.forEach(function(se,q){ce.push([q,se])}),E(ce)},g.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function m(ce){if(!ce._noBody){if(ce.bodyUsed)return Promise.reject(new TypeError("Already read"));ce.bodyUsed=!0}}function S(ce){return new Promise(function(se,q){ce.onload=function(){se(ce.result)},ce.onerror=function(){q(ce.error)}})}function d(ce){var se=new FileReader,q=S(se);return se.readAsArrayBuffer(ce),q}function O(ce){var se=new FileReader,q=S(se),te=/charset=([A-Za-z0-9_-]+)/.exec(ce.type),A=te?te[1]:"utf-8";return se.readAsText(ce,A),q}function R(ce){for(var se=new Uint8Array(ce),q=new Array(se.length),te=0;te<se.length;te++)q[te]=String.fromCharCode(se[te]);return q.join("")}function C(ce){if(ce.slice)return ce.slice(0);var se=new Uint8Array(ce.byteLength);return se.set(new Uint8Array(ce)),se.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(ce){this.bodyUsed=this.bodyUsed,this._bodyInit=ce,ce?typeof ce=="string"?this._bodyText=ce:g.blob&&Blob.prototype.isPrototypeOf(ce)?this._bodyBlob=ce:g.formData&&FormData.prototype.isPrototypeOf(ce)?this._bodyFormData=ce:g.searchParams&&URLSearchParams.prototype.isPrototypeOf(ce)?this._bodyText=ce.toString():g.arrayBuffer&&g.blob&&y(ce)?(this._bodyArrayBuffer=C(ce.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):g.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ce)||f(ce))?this._bodyArrayBuffer=C(ce):this._bodyText=ce=Object.prototype.toString.call(ce):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof ce=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(ce)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g.blob&&(this.blob=function(){var ce=m(this);if(ce)return ce;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var ce=m(this);return ce||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(g.blob)return this.blob().then(d);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var ce=m(this);if(ce)return ce;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(R(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var j=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function I(ce){var se=ce.toUpperCase();return j.indexOf(se)>-1?se:ce}function U(ce,se){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');se=se||{};var q=se.body;if(ce instanceof U){if(ce.bodyUsed)throw new TypeError("Already read");this.url=ce.url,this.credentials=ce.credentials,se.headers||(this.headers=new v(ce.headers)),this.method=ce.method,this.mode=ce.mode,this.signal=ce.signal,!q&&ce._bodyInit!=null&&(q=ce._bodyInit,ce.bodyUsed=!0)}else this.url=String(ce);if(this.credentials=se.credentials||this.credentials||"same-origin",(se.headers||!this.headers)&&(this.headers=new v(se.headers)),this.method=I(se.method||this.method||"GET"),this.mode=se.mode||this.mode||null,this.signal=se.signal||this.signal||function(){if("AbortController"in l){var T=new AbortController;return T.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&q)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(q),(this.method==="GET"||this.method==="HEAD")&&(se.cache==="no-store"||se.cache==="no-cache")){var te=/([?&])_=[^&]*/;if(te.test(this.url))this.url=this.url.replace(te,"$1_="+new Date().getTime());else{var A=/\?/;this.url+=(A.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function $(ce){var se=new FormData;return ce.trim().split("&").forEach(function(q){if(q){var te=q.split("="),A=te.shift().replace(/\+/g," "),T=te.join("=").replace(/\+/g," ");se.append(decodeURIComponent(A),decodeURIComponent(T))}}),se}function ee(ce){var se=new v,q=ce.replace(/\r?\n[\t ]+/g," ");return q.split("\r").map(function(te){return te.indexOf(` `)===0?te.substr(1,te.length):te}).forEach(function(te){var A=te.split(":"),T=A.shift().trim();if(T){var B=A.join(":").trim();try{se.append(T,B)}catch(X){console.warn("Response "+X.message)}}}),se}L.call(U.prototype);function re(ce,se){if(!(this instanceof re))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(se||(se={}),this.type="default",this.status=se.status===void 0?200:se.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=se.statusText===void 0?"":""+se.statusText,this.headers=new v(se.headers),this.url=se.url||"",this._initBody(ce)}L.call(re.prototype),re.prototype.clone=function(){return new re(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},re.error=function(){var ce=new re(null,{status:200,statusText:""});return ce.ok=!1,ce.status=0,ce.type="error",ce};var Se=[301,302,303,307,308];re.redirect=function(ce,se){if(Se.indexOf(se)===-1)throw new RangeError("Invalid status code");return new re(null,{status:se,headers:{location:ce}})};var z=l.DOMException;try{new z}catch{z=function(se,q){this.message=se,this.name=q;var te=Error(se);this.stack=te.stack},z.prototype=Object.create(Error.prototype),z.prototype.constructor=z}function Q(ce,se){return new Promise(function(q,te){var A=new U(ce,se);if(A.signal&&A.signal.aborted)return te(new z("Aborted","AbortError"));var T=new XMLHttpRequest;function B(){T.abort()}T.onload=function(){var ie={statusText:T.statusText,headers:ee(T.getAllResponseHeaders()||"")};A.url.indexOf("file://")===0&&(T.status<200||T.status>599)?ie.status=200:ie.status=T.status,ie.url="responseURL"in T?T.responseURL:ie.headers.get("X-Request-URL");var Te="response"in T?T.response:T.responseText;setTimeout(function(){q(new re(Te,ie))},0)},T.onerror=function(){setTimeout(function(){te(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){te(new TypeError("Network request timed out"))},0)},T.onabort=function(){setTimeout(function(){te(new z("Aborted","AbortError"))},0)};function X(ie){try{return ie===""&&l.location.href?l.location.href:ie}catch{return ie}}if(T.open(A.method,X(A.url),!0),A.credentials==="include"?T.withCredentials=!0:A.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(g.blob?T.responseType="blob":g.arrayBuffer&&(T.responseType="arraybuffer")),se&&typeof se.headers=="object"&&!(se.headers instanceof v||l.Headers&&se.headers instanceof l.Headers)){var ue=[];Object.getOwnPropertyNames(se.headers).forEach(function(ie){ue.push(p(ie)),T.setRequestHeader(ie,h(se.headers[ie]))}),A.headers.forEach(function(ie,Te){ue.indexOf(Te)===-1&&T.setRequestHeader(Te,ie)})}else A.headers.forEach(function(ie,Te){T.setRequestHeader(Te,ie)});A.signal&&(A.signal.addEventListener("abort",B),T.onreadystatechange=function(){T.readyState===4&&A.signal.removeEventListener("abort",B)}),T.send(typeof A._bodyInit>"u"?null:A._bodyInit)})}Q.polyfill=!0,l.fetch||(l.fetch=Q,l.Headers=v,l.Request=U,l.Response=re)},78685:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540),g=u(2739),y=function(f,p,h){if(!g.Bd)return[p,g.lQ,g.lQ];if(!f)throw new Error("useLocalStorage key may not be falsy");var E=h?h.raw?function(C){return C}:h.deserializer:JSON.parse,v=(0,l.useRef)(function(C){try{var L=h?h.raw?String:h.serializer:JSON.stringify,j=localStorage.getItem(C);return j!==null?E(j):(p&&localStorage.setItem(C,L(p)),p)}catch{return p}}),m=(0,l.useState)(function(){return v.current(f)}),S=m[0],d=m[1];(0,l.useLayoutEffect)(function(){return d(v.current(f))},[f]);var O=(0,l.useCallback)(function(C){try{var L=typeof C=="function"?C(S):C;if(typeof L>"u")return;var j=void 0;h?h.raw?typeof L=="string"?j=L:j=JSON.stringify(L):h.serializer?j=h.serializer(L):j=JSON.stringify(L):j=JSON.stringify(L),localStorage.setItem(f,j),d(E(j))}catch{}},[f,d]),R=(0,l.useCallback)(function(){try{localStorage.removeItem(f),d(void 0)}catch{}},[f,d]);return[S,O,R]};const x=y},78978:(Ge,w,u)=>{var l=u(27214);Ge.exports=g;function g(y){return l(y).replace(/\s(\w)/g,function(x,f){return f.toUpperCase()})}},79197:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(43329),g=u(29407);function y(f,p,h){return(0,l.w)(h?.in||f,+(0,g.a)(f)+p)}var x=null},79224:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.refCount=void 0;var l=u(65212),g=u(17214);function y(){return l.operate(function(x,f){var p=null;x._refCount++;var h=g.createOperatorSubscriber(f,void 0,void 0,void 0,function(){if(!x||x._refCount<=0||0<--x._refCount){p=null;return}var E=x._connection,v=p;p=null,E&&(!v||E===v)&&E.unsubscribe(),f.unsubscribe()});x.subscribe(h),h.closed||(p=x.connect())})}w.refCount=y},79332:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p});var l=u(90025),g=u(74238),y=u(43530),x=u(1685);class f extends l.A{constructor(E){super(),this.eventTarget_=E,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(E,v){if(!E||!v)return;const m=this.listeners_||(this.listeners_={}),S=m[E]||(m[E]=[]);S.includes(v)||S.push(v)}dispatchEvent(E){const v=typeof E=="string",m=v?E:E.type,S=this.listeners_&&this.listeners_[m];if(!S)return;const d=v?new x.Ay(E):E;d.target||(d.target=this.eventTarget_||this);const O=this.dispatching_||(this.dispatching_={}),R=this.pendingRemovals_||(this.pendingRemovals_={});m in O||(O[m]=0,R[m]=0),++O[m];let C;for(let L=0,j=S.length;L<j;++L)if("handleEvent"in S[L]?C=S[L].handleEvent(d):C=S[L].call(this,d),C===!1||d.propagationStopped){C=!1;break}if(--O[m]===0){let L=R[m];for(delete R[m];L--;)this.removeEventListener(m,g.tV);delete O[m]}return C}disposeInternal(){this.listeners_&&(0,y.I)(this.listeners_)}getListeners(E){return this.listeners_&&this.listeners_[E]||void 0}hasListener(E){return this.listeners_?E?E in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(E,v){if(!this.listeners_)return;const m=this.listeners_[E];if(!m)return;const S=m.indexOf(v);S!==-1&&(this.pendingRemovals_&&E in this.pendingRemovals_?(m[S]=g.tV,++this.pendingRemovals_[E]):(m.splice(S,1),m.length===0&&delete this.listeners_[E]))}}const p=f},79364:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(Ii,ta,Ji,k){k===void 0&&(k=Ji),Object.defineProperty(Ii,k,{enumerable:!0,get:function(){return ta[Ji]}})}:function(Ii,ta,Ji,k){k===void 0&&(k=Ji),Ii[k]=ta[Ji]}),g=this&&this.__exportStar||function(Ii,ta){for(var Ji in Ii)Ji!=="default"&&!Object.prototype.hasOwnProperty.call(ta,Ji)&&l(ta,Ii,Ji)};Object.defineProperty(w,"__esModule",{value:!0}),w.interval=w.iif=w.generate=w.fromEventPattern=w.fromEvent=w.from=w.forkJoin=w.empty=w.defer=w.connectable=w.concat=w.combineLatest=w.bindNodeCallback=w.bindCallback=w.UnsubscriptionError=w.TimeoutError=w.SequenceError=w.ObjectUnsubscribedError=w.NotFoundError=w.EmptyError=w.ArgumentOutOfRangeError=w.firstValueFrom=w.lastValueFrom=w.isObservable=w.identity=w.noop=w.pipe=w.NotificationKind=w.Notification=w.Subscriber=w.Subscription=w.Scheduler=w.VirtualAction=w.VirtualTimeScheduler=w.animationFrameScheduler=w.animationFrame=w.queueScheduler=w.queue=w.asyncScheduler=w.async=w.asapScheduler=w.asap=w.AsyncSubject=w.ReplaySubject=w.BehaviorSubject=w.Subject=w.animationFrames=w.observable=w.ConnectableObservable=w.Observable=void 0,w.filter=w.expand=w.exhaustMap=w.exhaustAll=w.exhaust=w.every=w.endWith=w.elementAt=w.distinctUntilKeyChanged=w.distinctUntilChanged=w.distinct=w.dematerialize=w.delayWhen=w.delay=w.defaultIfEmpty=w.debounceTime=w.debounce=w.count=w.connect=w.concatWith=w.concatMapTo=w.concatMap=w.concatAll=w.combineLatestWith=w.combineLatestAll=w.combineAll=w.catchError=w.bufferWhen=w.bufferToggle=w.bufferTime=w.bufferCount=w.buffer=w.auditTime=w.audit=w.config=w.NEVER=w.EMPTY=w.scheduled=w.zip=w.using=w.timer=w.throwError=w.range=w.race=w.partition=w.pairs=w.onErrorResumeNext=w.of=w.never=w.merge=void 0,w.switchMap=w.switchAll=w.subscribeOn=w.startWith=w.skipWhile=w.skipUntil=w.skipLast=w.skip=w.single=w.shareReplay=w.share=w.sequenceEqual=w.scan=w.sampleTime=w.sample=w.refCount=w.retryWhen=w.retry=w.repeatWhen=w.repeat=w.reduce=w.raceWith=w.publishReplay=w.publishLast=w.publishBehavior=w.publish=w.pluck=w.pairwise=w.onErrorResumeNextWith=w.observeOn=w.multicast=w.min=w.mergeWith=w.mergeScan=w.mergeMapTo=w.mergeMap=w.flatMap=w.mergeAll=w.max=w.materialize=w.mapTo=w.map=w.last=w.isEmpty=w.ignoreElements=w.groupBy=w.first=w.findIndex=w.find=w.finalize=void 0,w.zipWith=w.zipAll=w.withLatestFrom=w.windowWhen=w.windowToggle=w.windowTime=w.windowCount=w.window=w.toArray=w.timestamp=w.timeoutWith=w.timeout=w.timeInterval=w.throwIfEmpty=w.throttleTime=w.throttle=w.tap=w.takeWhile=w.takeUntil=w.takeLast=w.take=w.switchScan=w.switchMapTo=void 0;var y=u(48051);Object.defineProperty(w,"Observable",{enumerable:!0,get:function(){return y.Observable}});var x=u(14359);Object.defineProperty(w,"ConnectableObservable",{enumerable:!0,get:function(){return x.ConnectableObservable}});var f=u(2884);Object.defineProperty(w,"observable",{enumerable:!0,get:function(){return f.observable}});var p=u(21875);Object.defineProperty(w,"animationFrames",{enumerable:!0,get:function(){return p.animationFrames}});var h=u(54427);Object.defineProperty(w,"Subject",{enumerable:!0,get:function(){return h.Subject}});var E=u(97314);Object.defineProperty(w,"BehaviorSubject",{enumerable:!0,get:function(){return E.BehaviorSubject}});var v=u(10381);Object.defineProperty(w,"ReplaySubject",{enumerable:!0,get:function(){return v.ReplaySubject}});var m=u(5130);Object.defineProperty(w,"AsyncSubject",{enumerable:!0,get:function(){return m.AsyncSubject}});var S=u(22105);Object.defineProperty(w,"asap",{enumerable:!0,get:function(){return S.asap}}),Object.defineProperty(w,"asapScheduler",{enumerable:!0,get:function(){return S.asapScheduler}});var d=u(62326);Object.defineProperty(w,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(w,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var O=u(99245);Object.defineProperty(w,"queue",{enumerable:!0,get:function(){return O.queue}}),Object.defineProperty(w,"queueScheduler",{enumerable:!0,get:function(){return O.queueScheduler}});var R=u(15887);Object.defineProperty(w,"animationFrame",{enumerable:!0,get:function(){return R.animationFrame}}),Object.defineProperty(w,"animationFrameScheduler",{enumerable:!0,get:function(){return R.animationFrameScheduler}});var C=u(50875);Object.defineProperty(w,"VirtualTimeScheduler",{enumerable:!0,get:function(){return C.VirtualTimeScheduler}}),Object.defineProperty(w,"VirtualAction",{enumerable:!0,get:function(){return C.VirtualAction}});var L=u(65881);Object.defineProperty(w,"Scheduler",{enumerable:!0,get:function(){return L.Scheduler}});var j=u(69879);Object.defineProperty(w,"Subscription",{enumerable:!0,get:function(){return j.Subscription}});var I=u(2708);Object.defineProperty(w,"Subscriber",{enumerable:!0,get:function(){return I.Subscriber}});var U=u(31245);Object.defineProperty(w,"Notification",{enumerable:!0,get:function(){return U.Notification}}),Object.defineProperty(w,"NotificationKind",{enumerable:!0,get:function(){return U.NotificationKind}});var $=u(99517);Object.defineProperty(w,"pipe",{enumerable:!0,get:function(){return $.pipe}});var ee=u(5717);Object.defineProperty(w,"noop",{enumerable:!0,get:function(){return ee.noop}});var re=u(87699);Object.defineProperty(w,"identity",{enumerable:!0,get:function(){return re.identity}});var Se=u(62560);Object.defineProperty(w,"isObservable",{enumerable:!0,get:function(){return Se.isObservable}});var z=u(85761);Object.defineProperty(w,"lastValueFrom",{enumerable:!0,get:function(){return z.lastValueFrom}});var Q=u(40841);Object.defineProperty(w,"firstValueFrom",{enumerable:!0,get:function(){return Q.firstValueFrom}});var ce=u(7024);Object.defineProperty(w,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return ce.ArgumentOutOfRangeError}});var se=u(59328);Object.defineProperty(w,"EmptyError",{enumerable:!0,get:function(){return se.EmptyError}});var q=u(23506);Object.defineProperty(w,"NotFoundError",{enumerable:!0,get:function(){return q.NotFoundError}});var te=u(50839);Object.defineProperty(w,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return te.ObjectUnsubscribedError}});var A=u(94708);Object.defineProperty(w,"SequenceError",{enumerable:!0,get:function(){return A.SequenceError}});var T=u(81713);Object.defineProperty(w,"TimeoutError",{enumerable:!0,get:function(){return T.TimeoutError}});var B=u(69517);Object.defineProperty(w,"UnsubscriptionError",{enumerable:!0,get:function(){return B.UnsubscriptionError}});var X=u(79750);Object.defineProperty(w,"bindCallback",{enumerable:!0,get:function(){return X.bindCallback}});var ue=u(21946);Object.defineProperty(w,"bindNodeCallback",{enumerable:!0,get:function(){return ue.bindNodeCallback}});var ie=u(88246);Object.defineProperty(w,"combineLatest",{enumerable:!0,get:function(){return ie.combineLatest}});var Te=u(39546);Object.defineProperty(w,"concat",{enumerable:!0,get:function(){return Te.concat}});var je=u(98590);Object.defineProperty(w,"connectable",{enumerable:!0,get:function(){return je.connectable}});var yt=u(35884);Object.defineProperty(w,"defer",{enumerable:!0,get:function(){return yt.defer}});var tt=u(44885);Object.defineProperty(w,"empty",{enumerable:!0,get:function(){return tt.empty}});var Ze=u(75266);Object.defineProperty(w,"forkJoin",{enumerable:!0,get:function(){return Ze.forkJoin}});var Ne=u(47058);Object.defineProperty(w,"from",{enumerable:!0,get:function(){return Ne.from}});var it=u(88616);Object.defineProperty(w,"fromEvent",{enumerable:!0,get:function(){return it.fromEvent}});var Rt=u(26920);Object.defineProperty(w,"fromEventPattern",{enumerable:!0,get:function(){return Rt.fromEventPattern}});var Dn=u(9662);Object.defineProperty(w,"generate",{enumerable:!0,get:function(){return Dn.generate}});var Mt=u(99380);Object.defineProperty(w,"iif",{enumerable:!0,get:function(){return Mt.iif}});var Wt=u(62275);Object.defineProperty(w,"interval",{enumerable:!0,get:function(){return Wt.interval}});var Tn=u(95936);Object.defineProperty(w,"merge",{enumerable:!0,get:function(){return Tn.merge}});var bn=u(11934);Object.defineProperty(w,"never",{enumerable:!0,get:function(){return bn.never}});var $t=u(61587);Object.defineProperty(w,"of",{enumerable:!0,get:function(){return $t.of}});var Ct=u(1903);Object.defineProperty(w,"onErrorResumeNext",{enumerable:!0,get:function(){return Ct.onErrorResumeNext}});var Z=u(88269);Object.defineProperty(w,"pairs",{enumerable:!0,get:function(){return Z.pairs}});var me=u(57406);Object.defineProperty(w,"partition",{enumerable:!0,get:function(){return me.partition}});var ke=u(89795);Object.defineProperty(w,"race",{enumerable:!0,get:function(){return ke.race}});var Ee=u(74385);Object.defineProperty(w,"range",{enumerable:!0,get:function(){return Ee.range}});var _e=u(26680);Object.defineProperty(w,"throwError",{enumerable:!0,get:function(){return _e.throwError}});var ge=u(5825);Object.defineProperty(w,"timer",{enumerable:!0,get:function(){return ge.timer}});var Me=u(35904);Object.defineProperty(w,"using",{enumerable:!0,get:function(){return Me.using}});var lt=u(11415);Object.defineProperty(w,"zip",{enumerable:!0,get:function(){return lt.zip}});var Ft=u(30131);Object.defineProperty(w,"scheduled",{enumerable:!0,get:function(){return Ft.scheduled}});var Et=u(44885);Object.defineProperty(w,"EMPTY",{enumerable:!0,get:function(){return Et.EMPTY}});var Zt=u(11934);Object.defineProperty(w,"NEVER",{enumerable:!0,get:function(){return Zt.NEVER}}),g(u(96153),w);var nn=u(93728);Object.defineProperty(w,"config",{enumerable:!0,get:function(){return nn.config}});var Pn=u(88877);Object.defineProperty(w,"audit",{enumerable:!0,get:function(){return Pn.audit}});var rn=u(51608);Object.defineProperty(w,"auditTime",{enumerable:!0,get:function(){return rn.auditTime}});var Vt=u(10706);Object.defineProperty(w,"buffer",{enumerable:!0,get:function(){return Vt.buffer}});var Kn=u(31668);Object.defineProperty(w,"bufferCount",{enumerable:!0,get:function(){return Kn.bufferCount}});var ur=u(41719);Object.defineProperty(w,"bufferTime",{enumerable:!0,get:function(){return ur.bufferTime}});var on=u(61778);Object.defineProperty(w,"bufferToggle",{enumerable:!0,get:function(){return on.bufferToggle}});var tr=u(56606);Object.defineProperty(w,"bufferWhen",{enumerable:!0,get:function(){return tr.bufferWhen}});var Cn=u(72719);Object.defineProperty(w,"catchError",{enumerable:!0,get:function(){return Cn.catchError}});var Wn=u(89244);Object.defineProperty(w,"combineAll",{enumerable:!0,get:function(){return Wn.combineAll}});var er=u(90314);Object.defineProperty(w,"combineLatestAll",{enumerable:!0,get:function(){return er.combineLatestAll}});var Fn=u(82044);Object.defineProperty(w,"combineLatestWith",{enumerable:!0,get:function(){return Fn.combineLatestWith}});var en=u(70201);Object.defineProperty(w,"concatAll",{enumerable:!0,get:function(){return en.concatAll}});var gn=u(29512);Object.defineProperty(w,"concatMap",{enumerable:!0,get:function(){return gn.concatMap}});var kn=u(19913);Object.defineProperty(w,"concatMapTo",{enumerable:!0,get:function(){return kn.concatMapTo}});var Jn=u(98032);Object.defineProperty(w,"concatWith",{enumerable:!0,get:function(){return Jn.concatWith}});var Nn=u(17812);Object.defineProperty(w,"connect",{enumerable:!0,get:function(){return Nn.connect}});var kr=u(10970);Object.defineProperty(w,"count",{enumerable:!0,get:function(){return kr.count}});var bt=u(3143);Object.defineProperty(w,"debounce",{enumerable:!0,get:function(){return bt.debounce}});var ne=u(21762);Object.defineProperty(w,"debounceTime",{enumerable:!0,get:function(){return ne.debounceTime}});var fe=u(58799);Object.defineProperty(w,"defaultIfEmpty",{enumerable:!0,get:function(){return fe.defaultIfEmpty}});var K=u(5797);Object.defineProperty(w,"delay",{enumerable:!0,get:function(){return K.delay}});var he=u(72885);Object.defineProperty(w,"delayWhen",{enumerable:!0,get:function(){return he.delayWhen}});var Fe=u(19818);Object.defineProperty(w,"dematerialize",{enumerable:!0,get:function(){return Fe.dematerialize}});var Nt=u(77876);Object.defineProperty(w,"distinct",{enumerable:!0,get:function(){return Nt.distinct}});var ln=u(22044);Object.defineProperty(w,"distinctUntilChanged",{enumerable:!0,get:function(){return ln.distinctUntilChanged}});var pn=u(76035);Object.defineProperty(w,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return pn.distinctUntilKeyChanged}});var Yn=u(61279);Object.defineProperty(w,"elementAt",{enumerable:!0,get:function(){return Yn.elementAt}});var ht=u(66791);Object.defineProperty(w,"endWith",{enumerable:!0,get:function(){return ht.endWith}});var De=u(21361);Object.defineProperty(w,"every",{enumerable:!0,get:function(){return De.every}});var we=u(11464);Object.defineProperty(w,"exhaust",{enumerable:!0,get:function(){return we.exhaust}});var Ke=u(17977);Object.defineProperty(w,"exhaustAll",{enumerable:!0,get:function(){return Ke.exhaustAll}});var be=u(86632);Object.defineProperty(w,"exhaustMap",{enumerable:!0,get:function(){return be.exhaustMap}});var pt=u(75544);Object.defineProperty(w,"expand",{enumerable:!0,get:function(){return pt.expand}});var We=u(85934);Object.defineProperty(w,"filter",{enumerable:!0,get:function(){return We.filter}});var Je=u(17802);Object.defineProperty(w,"finalize",{enumerable:!0,get:function(){return Je.finalize}});var ye=u(98183);Object.defineProperty(w,"find",{enumerable:!0,get:function(){return ye.find}});var Qe=u(29035);Object.defineProperty(w,"findIndex",{enumerable:!0,get:function(){return Qe.findIndex}});var ze=u(19980);Object.defineProperty(w,"first",{enumerable:!0,get:function(){return ze.first}});var qe=u(5128);Object.defineProperty(w,"groupBy",{enumerable:!0,get:function(){return qe.groupBy}});var Pt=u(2959);Object.defineProperty(w,"ignoreElements",{enumerable:!0,get:function(){return Pt.ignoreElements}});var zt=u(69915);Object.defineProperty(w,"isEmpty",{enumerable:!0,get:function(){return zt.isEmpty}});var un=u(32568);Object.defineProperty(w,"last",{enumerable:!0,get:function(){return un.last}});var hn=u(26872);Object.defineProperty(w,"map",{enumerable:!0,get:function(){return hn.map}});var xt=u(13337);Object.defineProperty(w,"mapTo",{enumerable:!0,get:function(){return xt.mapTo}});var _t=u(75019);Object.defineProperty(w,"materialize",{enumerable:!0,get:function(){return _t.materialize}});var qt=u(50096);Object.defineProperty(w,"max",{enumerable:!0,get:function(){return qt.max}});var fn=u(68087);Object.defineProperty(w,"mergeAll",{enumerable:!0,get:function(){return fn.mergeAll}});var On=u(74613);Object.defineProperty(w,"flatMap",{enumerable:!0,get:function(){return On.flatMap}});var Gn=u(67478);Object.defineProperty(w,"mergeMap",{enumerable:!0,get:function(){return Gn.mergeMap}});var Bn=u(76075);Object.defineProperty(w,"mergeMapTo",{enumerable:!0,get:function(){return Bn.mergeMapTo}});var Lr=u(16707);Object.defineProperty(w,"mergeScan",{enumerable:!0,get:function(){return Lr.mergeScan}});var An=u(79694);Object.defineProperty(w,"mergeWith",{enumerable:!0,get:function(){return An.mergeWith}});var Un=u(80142);Object.defineProperty(w,"min",{enumerable:!0,get:function(){return Un.min}});var cr=u(18464);Object.defineProperty(w,"multicast",{enumerable:!0,get:function(){return cr.multicast}});var mr=u(32071);Object.defineProperty(w,"observeOn",{enumerable:!0,get:function(){return mr.observeOn}});var hr=u(95513);Object.defineProperty(w,"onErrorResumeNextWith",{enumerable:!0,get:function(){return hr.onErrorResumeNextWith}});var ar=u(26744);Object.defineProperty(w,"pairwise",{enumerable:!0,get:function(){return ar.pairwise}});var Cr=u(66355);Object.defineProperty(w,"pluck",{enumerable:!0,get:function(){return Cr.pluck}});var Yr=u(53197);Object.defineProperty(w,"publish",{enumerable:!0,get:function(){return Yr.publish}});var Xr=u(82955);Object.defineProperty(w,"publishBehavior",{enumerable:!0,get:function(){return Xr.publishBehavior}});var ni=u(26569);Object.defineProperty(w,"publishLast",{enumerable:!0,get:function(){return ni.publishLast}});var ki=u(68710);Object.defineProperty(w,"publishReplay",{enumerable:!0,get:function(){return ki.publishReplay}});var zr=u(6677);Object.defineProperty(w,"raceWith",{enumerable:!0,get:function(){return zr.raceWith}});var Ur=u(92070);Object.defineProperty(w,"reduce",{enumerable:!0,get:function(){return Ur.reduce}});var jt=u(56131);Object.defineProperty(w,"repeat",{enumerable:!0,get:function(){return jt.repeat}});var sn=u(82139);Object.defineProperty(w,"repeatWhen",{enumerable:!0,get:function(){return sn.repeatWhen}});var Rn=u(3352);Object.defineProperty(w,"retry",{enumerable:!0,get:function(){return Rn.retry}});var H=u(73956);Object.defineProperty(w,"retryWhen",{enumerable:!0,get:function(){return H.retryWhen}});var Be=u(79224);Object.defineProperty(w,"refCount",{enumerable:!0,get:function(){return Be.refCount}});var wn=u(43434);Object.defineProperty(w,"sample",{enumerable:!0,get:function(){return wn.sample}});var bi=u(44143);Object.defineProperty(w,"sampleTime",{enumerable:!0,get:function(){return bi.sampleTime}});var Oi=u(35565);Object.defineProperty(w,"scan",{enumerable:!0,get:function(){return Oi.scan}});var de=u(73929);Object.defineProperty(w,"sequenceEqual",{enumerable:!0,get:function(){return de.sequenceEqual}});var Ve=u(93405);Object.defineProperty(w,"share",{enumerable:!0,get:function(){return Ve.share}});var vt=u(17782);Object.defineProperty(w,"shareReplay",{enumerable:!0,get:function(){return vt.shareReplay}});var Qt=u(55440);Object.defineProperty(w,"single",{enumerable:!0,get:function(){return Qt.single}});var nt=u(23079);Object.defineProperty(w,"skip",{enumerable:!0,get:function(){return nt.skip}});var Tt=u(92359);Object.defineProperty(w,"skipLast",{enumerable:!0,get:function(){return Tt.skipLast}});var Gt=u(97783);Object.defineProperty(w,"skipUntil",{enumerable:!0,get:function(){return Gt.skipUntil}});var En=u(65774);Object.defineProperty(w,"skipWhile",{enumerable:!0,get:function(){return En.skipWhile}});var Qn=u(99054);Object.defineProperty(w,"startWith",{enumerable:!0,get:function(){return Qn.startWith}});var Or=u(5455);Object.defineProperty(w,"subscribeOn",{enumerable:!0,get:function(){return Or.subscribeOn}});var Pr=u(16201);Object.defineProperty(w,"switchAll",{enumerable:!0,get:function(){return Pr.switchAll}});var ai=u(90680);Object.defineProperty(w,"switchMap",{enumerable:!0,get:function(){return ai.switchMap}});var xi=u(761);Object.defineProperty(w,"switchMapTo",{enumerable:!0,get:function(){return xi.switchMapTo}});var mi=u(48461);Object.defineProperty(w,"switchScan",{enumerable:!0,get:function(){return mi.switchScan}});var ei=u(54383);Object.defineProperty(w,"take",{enumerable:!0,get:function(){return ei.take}});var Qr=u(65279);Object.defineProperty(w,"takeLast",{enumerable:!0,get:function(){return Qr.takeLast}});var Ni=u(66911);Object.defineProperty(w,"takeUntil",{enumerable:!0,get:function(){return Ni.takeUntil}});var ea=u(60598);Object.defineProperty(w,"takeWhile",{enumerable:!0,get:function(){return ea.takeWhile}});var Qi=u(15019);Object.defineProperty(w,"tap",{enumerable:!0,get:function(){return Qi.tap}});var ir=u(44880);Object.defineProperty(w,"throttle",{enumerable:!0,get:function(){return ir.throttle}});var xr=u(7245);Object.defineProperty(w,"throttleTime",{enumerable:!0,get:function(){return xr.throttleTime}});var di=u(30632);Object.defineProperty(w,"throwIfEmpty",{enumerable:!0,get:function(){return di.throwIfEmpty}});var ft=u(32508);Object.defineProperty(w,"timeInterval",{enumerable:!0,get:function(){return ft.timeInterval}});var zn=u(81713);Object.defineProperty(w,"timeout",{enumerable:!0,get:function(){return zn.timeout}});var Zn=u(50597);Object.defineProperty(w,"timeoutWith",{enumerable:!0,get:function(){return Zn.timeoutWith}});var wi=u(53866);Object.defineProperty(w,"timestamp",{enumerable:!0,get:function(){return wi.timestamp}});var Ea=u(73484);Object.defineProperty(w,"toArray",{enumerable:!0,get:function(){return Ea.toArray}});var wa=u(78072);Object.defineProperty(w,"window",{enumerable:!0,get:function(){return wa.window}});var ji=u(62893);Object.defineProperty(w,"windowCount",{enumerable:!0,get:function(){return ji.windowCount}});var Dt=u(90037);Object.defineProperty(w,"windowTime",{enumerable:!0,get:function(){return Dt.windowTime}});var Xn=u(28996);Object.defineProperty(w,"windowToggle",{enumerable:!0,get:function(){return Xn.windowToggle}});var Tr=u(65156);Object.defineProperty(w,"windowWhen",{enumerable:!0,get:function(){return Tr.windowWhen}});var Nr=u(66975);Object.defineProperty(w,"withLatestFrom",{enumerable:!0,get:function(){return Nr.withLatestFrom}});var ti=u(5362);Object.defineProperty(w,"zipAll",{enumerable:!0,get:function(){return ti.zipAll}});var _i=u(36977);Object.defineProperty(w,"zipWith",{enumerable:!0,get:function(){return _i.zipWith}})},79694:function(Ge,w,u){"use strict";var l=this&&this.__read||function(f,p){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var E=h.call(f),v,m=[],S;try{for(;(p===void 0||p-- >0)&&!(v=E.next()).done;)m.push(v.value)}catch(d){S={error:d}}finally{try{v&&!v.done&&(h=E.return)&&h.call(E)}finally{if(S)throw S.error}}return m},g=this&&this.__spreadArray||function(f,p){for(var h=0,E=p.length,v=f.length;h<E;h++,v++)f[v]=p[h];return f};Object.defineProperty(w,"__esModule",{value:!0}),w.mergeWith=void 0;var y=u(9330);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return y.merge.apply(void 0,g([],l(f)))}w.mergeWith=x},79711:function(Ge,w,u){"use strict";var l=this&&this.__assign||function(){return l=Object.assign||function(C){for(var L,j=1,I=arguments.length;j<I;j++){L=arguments[j];for(var U in L)Object.prototype.hasOwnProperty.call(L,U)&&(C[U]=L[U])}return C},l.apply(this,arguments)},g=this&&this.__createBinding||(Object.create?function(C,L,j,I){I===void 0&&(I=j),Object.defineProperty(C,I,{enumerable:!0,get:function(){return L[j]}})}:function(C,L,j,I){I===void 0&&(I=j),C[I]=L[j]}),y=this&&this.__setModuleDefault||(Object.create?function(C,L){Object.defineProperty(C,"default",{enumerable:!0,value:L})}:function(C,L){C.default=L}),x=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var L={};if(C!=null)for(var j in C)j!=="default"&&Object.prototype.hasOwnProperty.call(C,j)&&g(L,C,j);return y(L,C),L},f=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(w,"__esModule",{value:!0}),w.useStore=void 0;var p=u(65838),h=x(u(96540)),E=f(u(17676)),v=u(17579),m=u(71220),S=u(60950);function d(C){var L=h.useRef(l({animations:{enterMs:200,exitMs:100}},C.options)),j=h.useMemo(function(){return new v.ActionInterface(C.actions||[],{historyManager:L.current.enableHistory?m.history:void 0})},[]),I=h.useState({searchQuery:"",currentRootActionId:null,visualState:S.VisualState.hidden,actions:l({},j.actions),activeIndex:0,disabled:!1}),U=I[0],$=I[1],ee=h.useRef(U);ee.current=U;var re=h.useCallback(function(){return ee.current},[]),Se=h.useMemo(function(){return new O(re)},[re]);h.useEffect(function(){ee.current=U,Se.notify()},[U,Se]);var z=h.useCallback(function(ce){return $(function(se){return l(l({},se),{actions:j.add(ce)})}),function(){$(function(q){return l(l({},q),{actions:j.remove(ce)})})}},[j]),Q=h.useRef(null);return h.useMemo(function(){var ce={setCurrentRootAction:function(se){$(function(q){return l(l({},q),{currentRootActionId:se})})},setVisualState:function(se){$(function(q){return l(l({},q),{visualState:typeof se=="function"?se(q.visualState):se})})},setSearch:function(se){return $(function(q){return l(l({},q),{searchQuery:se})})},registerActions:z,toggle:function(){return $(function(se){return l(l({},se),{visualState:[S.VisualState.animatingOut,S.VisualState.hidden].includes(se.visualState)?S.VisualState.animatingIn:S.VisualState.animatingOut})})},setActiveIndex:function(se){return $(function(q){return l(l({},q),{activeIndex:typeof se=="number"?se:se(q.activeIndex)})})},inputRefSetter:function(se){Q.current=se},getInput:function(){return(0,E.default)(Q.current,"Input ref is undefined, make sure you attach `query.inputRefSetter` to your search input."),Q.current},disable:function(se){$(function(q){return l(l({},q),{disabled:se})})}};return{getState:re,query:ce,options:L.current,subscribe:function(se,q){return Se.subscribe(se,q)}}},[re,Se,z])}w.useStore=d;var O=function(){function C(L){this.subscribers=[],this.getState=L}return C.prototype.subscribe=function(L,j){var I=this,U=new R(function(){return L(I.getState())},j);return this.subscribers.push(U),this.unsubscribe.bind(this,U)},C.prototype.unsubscribe=function(L){if(this.subscribers.length){var j=this.subscribers.indexOf(L);if(j>-1)return this.subscribers.splice(j,1)}},C.prototype.notify=function(){this.subscribers.forEach(function(L){return L.collect()})},C}(),R=function(){function C(L,j){this.collector=L,this.onChange=j}return C.prototype.collect=function(){try{var L=this.collector();(0,p.deepEqual)(L,this.collected)||(this.collected=L,this.onChange&&this.onChange(this.collected))}catch(j){console.warn(j)}},C}()},79750:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.bindCallback=void 0;var l=u(17474);function g(y,x,f){return l.bindCallbackInternals(!1,y,x,f)}w.bindCallback=g},79859:(Ge,w,u)=>{var l=u(96131),g=u(64894),y=u(85015),x=u(61489),f=u(35880),p=Math.max;function h(E,v,m,S){E=g(E)?E:f(E),m=m&&!S?x(m):0;var d=E.length;return m<0&&(m=p(d+m,0)),y(E)?m<=d&&E.indexOf(v,m)>-1:!!d&&l(E,v,m)>-1}Ge.exports=h},79887:Ge=>{var w={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};Ge.exports=function(u,l){return typeof l=="number"&&!w[u]?l+"px":l}},79969:(Ge,w,u)=>{"use strict";u.d(w,{L8:()=>f,SH:()=>y,gr:()=>x});var l=u(66514),g=u(61597);function y(p,h,E,v,m,S,d){let O,R;const C=(E-h)/v;if(C===1)O=h;else if(C===2)O=h,R=m;else if(C!==0){let L=p[h],j=p[h+1],I=0;const U=[0];for(let re=h+v;re<E;re+=v){const Se=p[re],z=p[re+1];I+=Math.sqrt((Se-L)*(Se-L)+(z-j)*(z-j)),U.push(I),L=Se,j=z}const $=m*I,ee=(0,l.El)(U,$);ee<0?(R=($-U[-ee-2])/(U[-ee-1]-U[-ee-2]),O=h+(-ee-2)*v):O=h+ee*v}d=d>1?d:2,S=S||new Array(d);for(let L=0;L<d;++L)S[L]=O===void 0?NaN:R===void 0?p[O+L]:(0,g.Cc)(p[O+L],p[O+v+L],R);return S}function x(p,h,E,v,m,S){if(E==h)return null;let d;if(m<p[h+v-1])return S?(d=p.slice(h,h+v),d[v-1]=m,d):null;if(p[E-1]<m)return S?(d=p.slice(E-v,E),d[v-1]=m,d):null;if(m==p[h+v-1])return p.slice(h,h+v);let O=h/v,R=E/v;for(;O<R;){const I=O+R>>1;m<p[(I+1)*v-1]?R=I:O=I+1}const C=p[O*v-1];if(m==C)return p.slice((O-1)*v,(O-1)*v+v);const L=p[(O+1)*v-1],j=(m-C)/(L-C);d=[];for(let I=0;I<v-1;++I)d.push((0,g.Cc)(p[(O-1)*v+I],p[O*v+I],j));return d.push(m),d}function f(p,h,E,v,m,S,d){if(d)return x(p,h,E[E.length-1],v,m,S);let O;if(m<p[v-1])return S?(O=p.slice(0,v),O[v-1]=m,O):null;if(p[p.length-1]<m)return S?(O=p.slice(p.length-v),O[v-1]=m,O):null;for(let R=0,C=E.length;R<C;++R){const L=E[R];if(h!=L){if(m<p[h+v-1])return null;if(m<=p[L-1])return x(p,h,L,v,m,!1);h=L}}return null}},80142:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.min=void 0;var l=u(92070),g=u(10281);function y(x){return l.reduce(g.isFunction(x)?function(f,p){return x(f,p)<0?f:p}:function(f,p){return f<p?f:p})}w.min=y},80344:(Ge,w,u)=>{var l=u(17999);function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var y,x,f=typeof Symbol=="function"?Symbol:{},p=f.iterator||"@@iterator",h=f.toStringTag||"@@toStringTag";function E(L,j,I,U){var $=j&&j.prototype instanceof m?j:m,ee=Object.create($.prototype);return l(ee,"_invoke",function(re,Se,z){var Q,ce,se,q=0,te=z||[],A=!1,T={p:0,n:0,v:y,a:B,f:B.bind(y,4),d:function(ue,ie){return Q=ue,ce=0,se=y,T.n=ie,v}};function B(X,ue){for(ce=X,se=ue,x=0;!A&&q&&!ie&&x<te.length;x++){var ie,Te=te[x],je=T.p,yt=Te[2];X>3?(ie=yt===ue)&&(se=Te[(ce=Te[4])?5:(ce=3,3)],Te[4]=Te[5]=y):Te[0]<=je&&((ie=X<2&&je<Te[1])?(ce=0,T.v=ue,T.n=Te[1]):je<yt&&(ie=X<3||Te[0]>ue||ue>yt)&&(Te[4]=X,Te[5]=ue,T.n=yt,ce=0))}if(ie||X>1)return v;throw A=!0,ue}return function(X,ue,ie){if(q>1)throw TypeError("Generator is already running");for(A&&ue===1&&B(ue,ie),ce=ue,se=ie;(x=ce<2?y:se)||!A;){Q||(ce?ce<3?(ce>1&&(T.n=-1),B(ce,se)):T.n=se:T.v=se);try{if(q=2,Q){if(ce||(X="next"),x=Q[X]){if(!(x=x.call(Q,se)))throw TypeError("iterator result is not an object");if(!x.done)return x;se=x.value,ce<2&&(ce=0)}else ce===1&&(x=Q.return)&&x.call(Q),ce<2&&(se=TypeError("The iterator does not provide a '"+X+"' method"),ce=1);Q=y}else if((x=(A=T.n<0)?se:re.call(Se,T))!==v)break}catch(Te){Q=y,ce=1,se=Te}finally{q=1}}return{value:x,done:A}}}(L,I,U),!0),ee}var v={};function m(){}function S(){}function d(){}x=Object.getPrototypeOf;var O=[][p]?x(x([][p]())):(l(x={},p,function(){return this}),x),R=d.prototype=m.prototype=Object.create(O);function C(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,d):(L.__proto__=d,l(L,h,"GeneratorFunction")),L.prototype=Object.create(R),L}return S.prototype=d,l(R,"constructor",d),l(d,"constructor",S),S.displayName="GeneratorFunction",l(d,h,"GeneratorFunction"),l(R),l(R,h,"Generator"),l(R,p,function(){return this}),l(R,"toString",function(){return"[object Generator]"}),(Ge.exports=g=function(){return{w:E,m:C}},Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports)()}Ge.exports=g,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},80629:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isInteropObservable=void 0;var l=u(2884),g=u(10281);function y(x){return g.isFunction(x[l.observable])}w.isInteropObservable=y},80634:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.resizeHandleType=w.resizeHandleAxesType=w.default=void 0;var l=y(u(83175)),g=y(u(96540));function y(h){return h&&h.__esModule?h:{default:h}}const x=w.resizeHandleAxesType=l.default.arrayOf(l.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),f=w.resizeHandleType=l.default.oneOfType([l.default.node,l.default.func]);var p=w.default={className:l.default.string,style:l.default.object,width:l.default.number,autoSize:l.default.bool,cols:l.default.number,draggableCancel:l.default.string,draggableHandle:l.default.string,verticalCompact:function(h){h.verticalCompact},compactType:l.default.oneOf(["vertical","horizontal"]),layout:function(h){var E=h.layout;E!==void 0&&u(38426).validateLayout(E,"layout")},margin:l.default.arrayOf(l.default.number),containerPadding:l.default.arrayOf(l.default.number),rowHeight:l.default.number,maxRows:l.default.number,isBounded:l.default.bool,isDraggable:l.default.bool,isResizable:l.default.bool,allowOverlap:l.default.bool,preventCollision:l.default.bool,useCSSTransforms:l.default.bool,transformScale:l.default.number,isDroppable:l.default.bool,resizeHandles:x,resizeHandle:f,onLayoutChange:l.default.func,onDragStart:l.default.func,onDrag:l.default.func,onDragStop:l.default.func,onResizeStart:l.default.func,onResize:l.default.func,onResizeStop:l.default.func,onDrop:l.default.func,droppingItem:l.default.shape({i:l.default.string.isRequired,w:l.default.number.isRequired,h:l.default.number.isRequired}),children:function(h,E){const v=h[E],m={};g.default.Children.forEach(v,function(S){if(S?.key!=null){if(m[S.key])throw new Error('Duplicate child key "'+S.key+'" found! This will cause problems in ReactGridLayout.');m[S.key]=!0}})},innerRef:l.default.any}},80719:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.joinAllInternals=void 0;var l=u(87699),g=u(13916),y=u(99517),x=u(67478),f=u(73484);function p(h,E){return y.pipe(f.toArray(),x.mergeMap(function(v){return h(v)}),E?g.mapOneOrManyArgs(E):l.identity)}w.joinAllInternals=p},80902:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=y(u(3429)),g=y(u(81474));function y(O){return O&&O.__esModule?O:{default:O}}function x(O,R){if(!(O instanceof R))throw new TypeError("Cannot call a class as a function")}function f(O,R){for(var C=0;C<R.length;C++){var L=R[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}function p(O,R,C){return R&&f(O.prototype,R),C&&f(O,C),O}var h=["ABS","ACTIVATE","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","ANY","ARE","ARRAY","AS","ASC","ASENSITIVE","ASSOCIATE","ASUTIME","ASYMMETRIC","AT","ATOMIC","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","AVG","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CCSID","CEIL","CEILING","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOB","CLONE","CLOSE","CLUSTER","COALESCE","COLLATE","COLLECT","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","CONVERT","CORR","CORRESPONDING","COUNT","COUNT_BIG","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DATE","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DEREF","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DOUBLE","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELEMENT","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPTION","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXP","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FILTER","FINAL","FIRST","FLOAT","FLOOR","FOR","FOREIGN","FREE","FULL","FUNCTION","FUSION","GENERAL","GENERATED","GET","GLOBAL","GOTO","GRANT","GRAPHIC","GROUP","GROUPING","HANDLER","HASH","HASHED_VALUE","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTEGRITY","INTERSECTION","INTERVAL","INTO","IS","ISOBID","ISOLATION","ITERATE","JAR","JAVA","KEEP","KEY","LABEL","LANGUAGE","LARGE","LATERAL","LC_CTYPE","LEADING","LEAVE","LEFT","LIKE","LINKTYPE","LN","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","LOWER","MAINTAINED","MATCH","MATERIALIZED","MAX","MAXVALUE","MEMBER","MERGE","METHOD","MICROSECOND","MICROSECONDS","MIN","MINUTE","MINUTES","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MONTHS","MULTISET","NAN","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZE","NORMALIZED","NOT","NULL","NULLIF","NULLS","NUMERIC","NUMPARTS","OBID","OCTET_LENGTH","OF","OFFSET","OLD","OLD_TABLE","ON","ONLY","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PIECESIZE","PLAN","POSITION","POWER","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","REAL","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCOPE","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SIGNAL","SIMILAR","SIMPLE","SMALLINT","SNAN","SOME","SOURCE","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLID","SQLSTATE","SQLWARNING","SQRT","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STDDEV_POP","STDDEV_SAMP","STOGROUP","STORES","STYLE","SUBMULTISET","SUBSTRING","SUM","SUMMARY","SYMMETRIC","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","TABLESPACE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TYPE","UESCAPE","UNDO","UNIQUE","UNKNOWN","UNNEST","UNTIL","UPPER","USAGE","USER","USING","VALIDPROC","VALUE","VARCHAR","VARIABLE","VARIANT","VARYING","VAR_POP","VAR_SAMP","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHILE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],E=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INTERSECT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],v=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],m=["AND","CROSS JOIN","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN"],S,d=function(){function O(R){x(this,O),this.cfg=R}return p(O,[{key:"format",value:function(C){return S||(S=new g.default({reservedWords:h,reservedTopLevelWords:E,reservedNewlineWords:m,reservedTopLevelWordsNoIndent:v,stringTypes:['""',"''","``","[]"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["#","@"]})),new l.default(this.cfg,S).format(C)}}]),O}();w.default=d,Ge.exports=w.default},81160:(Ge,w,u)=>{"use strict";u.d(w,{T:()=>y});var l=u(92908),g=u(64878);function y(x,f){return(0,l.N)(function(p,h){var E=0;p.subscribe((0,g._)(h,function(v){h.next(x.call(f,v,E++))}))})}},81423:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(v,m,S,d){d===void 0&&(d=S),Object.defineProperty(v,d,{enumerable:!0,get:function(){return m[S]}})}:function(v,m,S,d){d===void 0&&(d=S),v[d]=m[S]}),g=this&&this.__setModuleDefault||(Object.create?function(v,m){Object.defineProperty(v,"default",{enumerable:!0,value:m})}:function(v,m){v.default=m}),y=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var m={};if(v!=null)for(var S in v)S!=="default"&&Object.prototype.hasOwnProperty.call(v,S)&&l(m,v,S);return g(m,v),m};Object.defineProperty(w,"__esModule",{value:!0}),w.KBarPortal=void 0;var x=u(93086),f=y(u(96540)),p=u(60950),h=u(4122);function E(v){var m=v.children,S=v.container,d=(0,h.useKBar)(function(O){return{showing:O.visualState!==p.VisualState.hidden}}).showing;return d?f.createElement(x.Portal,{container:S},m):null}w.KBarPortal=E},81474:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=x(u(62193)),g=x(u(60680)),y=x(u(87825));function x(v){return v&&v.__esModule?v:{default:v}}function f(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function p(v,m){for(var S=0;S<m.length;S++){var d=m[S];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(v,d.key,d)}}function h(v,m,S){return m&&p(v.prototype,m),S&&p(v,S),v}var E=function(){function v(m){f(this,v),this.WHITESPACE_REGEX=/^([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)/,this.NUMBER_REGEX=/^((\x2D[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?[0-9]+(\.[0-9]+)?|0x[0-9A-Fa-f]+|0b[01]+)\b/,this.OPERATOR_REGEX=/^(!=|<>|==|<=|>=|!<|!>|\|\||::|\x2D>>|\x2D>|~~\*|~~|!~~\*|!~~|~\*|!~\*|!~|:=|(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/,this.BLOCK_COMMENT_REGEX=/^(\/\*(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?(?:\*\/|$))/,this.LINE_COMMENT_REGEX=this.createLineCommentRegex(m.lineCommentTypes),this.RESERVED_TOP_LEVEL_REGEX=this.createReservedWordRegex(m.reservedTopLevelWords),this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX=this.createReservedWordRegex(m.reservedTopLevelWordsNoIndent),this.RESERVED_NEWLINE_REGEX=this.createReservedWordRegex(m.reservedNewlineWords),this.RESERVED_PLAIN_REGEX=this.createReservedWordRegex(m.reservedWords),this.WORD_REGEX=this.createWordRegex(m.specialWordChars),this.STRING_REGEX=this.createStringRegex(m.stringTypes),this.OPEN_PAREN_REGEX=this.createParenRegex(m.openParens),this.CLOSE_PAREN_REGEX=this.createParenRegex(m.closeParens),this.INDEXED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(m.indexedPlaceholderTypes,"[0-9]*"),this.IDENT_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(m.namedPlaceholderTypes,"[a-zA-Z0-9._$]+"),this.STRING_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(m.namedPlaceholderTypes,this.createStringPattern(m.stringTypes))}return h(v,[{key:"createLineCommentRegex",value:function(S){return new RegExp("^((?:".concat(S.map(function(d){return(0,g.default)(d)}).join("|"),`).*?(?:\r |\r| |$))`),"u")}},{key:"createReservedWordRegex",value:function(S){var d=S.join("|").replace(/ /g,"\\s+");return new RegExp("^(".concat(d,")\\b"),"iu")}},{key:"createWordRegex",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return new RegExp("^([\\p{Alphabetic}\\p{Mark}\\p{Decimal_Number}\\p{Connector_Punctuation}\\p{Join_Control}".concat(S.join(""),"]+)"),"u")}},{key:"createStringRegex",value:function(S){return new RegExp("^("+this.createStringPattern(S)+")","u")}},{key:"createStringPattern",value:function(S){var d={"``":"((`[^`]*($|`))+)","[]":"((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",'""':'(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',"''":"(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","N''":"((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)"};return S.map(function(O){return d[O]}).join("|")}},{key:"createParenRegex",value:function(S){var d=this;return new RegExp("^("+S.map(function(O){return d.escapeParen(O)}).join("|")+")","iu")}},{key:"escapeParen",value:function(S){return S.length===1?(0,g.default)(S):"\\b"+S+"\\b"}},{key:"createPlaceholderRegex",value:function(S,d){if((0,l.default)(S))return!1;var O=S.map(g.default).join("|");return new RegExp("^((?:".concat(O,")(?:").concat(d,"))"),"u")}},{key:"tokenize",value:function(S){if(!S)return[];for(var d=[],O;S.length;)O=this.getNextToken(S,O),S=S.substring(O.value.length),d.push(O);return d}},{key:"getNextToken",value:function(S,d){return this.getWhitespaceToken(S)||this.getCommentToken(S)||this.getStringToken(S)||this.getOpenParenToken(S)||this.getCloseParenToken(S)||this.getPlaceholderToken(S)||this.getNumberToken(S)||this.getReservedWordToken(S,d)||this.getWordToken(S)||this.getOperatorToken(S)}},{key:"getWhitespaceToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.WHITESPACE,regex:this.WHITESPACE_REGEX})}},{key:"getCommentToken",value:function(S){return this.getLineCommentToken(S)||this.getBlockCommentToken(S)}},{key:"getLineCommentToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.LINE_COMMENT,regex:this.LINE_COMMENT_REGEX})}},{key:"getBlockCommentToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.BLOCK_COMMENT,regex:this.BLOCK_COMMENT_REGEX})}},{key:"getStringToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.STRING,regex:this.STRING_REGEX})}},{key:"getOpenParenToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.OPEN_PAREN,regex:this.OPEN_PAREN_REGEX})}},{key:"getCloseParenToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.CLOSE_PAREN,regex:this.CLOSE_PAREN_REGEX})}},{key:"getPlaceholderToken",value:function(S){return this.getIdentNamedPlaceholderToken(S)||this.getStringNamedPlaceholderToken(S)||this.getIndexedPlaceholderToken(S)}},{key:"getIdentNamedPlaceholderToken",value:function(S){return this.getPlaceholderTokenWithKey({input:S,regex:this.IDENT_NAMED_PLACEHOLDER_REGEX,parseKey:function(O){return O.slice(1)}})}},{key:"getStringNamedPlaceholderToken",value:function(S){var d=this;return this.getPlaceholderTokenWithKey({input:S,regex:this.STRING_NAMED_PLACEHOLDER_REGEX,parseKey:function(R){return d.getEscapedPlaceholderKey({key:R.slice(2,-1),quoteChar:R.slice(-1)})}})}},{key:"getIndexedPlaceholderToken",value:function(S){return this.getPlaceholderTokenWithKey({input:S,regex:this.INDEXED_PLACEHOLDER_REGEX,parseKey:function(O){return O.slice(1)}})}},{key:"getPlaceholderTokenWithKey",value:function(S){var d=S.input,O=S.regex,R=S.parseKey,C=this.getTokenOnFirstMatch({input:d,regex:O,type:y.default.PLACEHOLDER});return C&&(C.key=R(C.value)),C}},{key:"getEscapedPlaceholderKey",value:function(S){var d=S.key,O=S.quoteChar;return d.replace(new RegExp((0,g.default)("\\"+O),"gu"),O)}},{key:"getNumberToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.NUMBER,regex:this.NUMBER_REGEX})}},{key:"getOperatorToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.OPERATOR,regex:this.OPERATOR_REGEX})}},{key:"getReservedWordToken",value:function(S,d){if(!(d&&d.value&&d.value==="."))return this.getTopLevelReservedToken(S)||this.getNewlineReservedToken(S)||this.getTopLevelReservedTokenNoIndent(S)||this.getPlainReservedToken(S)}},{key:"getTopLevelReservedToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.RESERVED_TOP_LEVEL,regex:this.RESERVED_TOP_LEVEL_REGEX})}},{key:"getNewlineReservedToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.RESERVED_NEWLINE,regex:this.RESERVED_NEWLINE_REGEX})}},{key:"getTopLevelReservedTokenNoIndent",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.RESERVED_TOP_LEVEL_NO_INDENT,regex:this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX})}},{key:"getPlainReservedToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.RESERVED,regex:this.RESERVED_PLAIN_REGEX})}},{key:"getWordToken",value:function(S){return this.getTokenOnFirstMatch({input:S,type:y.default.WORD,regex:this.WORD_REGEX})}},{key:"getTokenOnFirstMatch",value:function(S){var d=S.input,O=S.type,R=S.regex,C=d.match(R);if(C)return{type:O,value:C[1]}}}]),v}();w.default=E,Ge.exports=w.default},81713:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.timeout=w.TimeoutError=void 0;var l=u(62326),g=u(85345),y=u(65212),x=u(19724),f=u(9619),p=u(17214),h=u(28619);w.TimeoutError=f.createErrorClass(function(m){return function(d){d===void 0&&(d=null),m(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=d}});function E(m,S){var d=g.isValidDate(m)?{first:m}:typeof m=="number"?{each:m}:m,O=d.first,R=d.each,C=d.with,L=C===void 0?v:C,j=d.scheduler,I=j===void 0?S??l.asyncScheduler:j,U=d.meta,$=U===void 0?null:U;if(O==null&&R==null)throw new TypeError("No timeout provided.");return y.operate(function(ee,re){var Se,z,Q=null,ce=0,se=function(q){z=h.executeSchedule(re,I,function(){try{Se.unsubscribe(),x.innerFrom(L({meta:$,lastValue:Q,seen:ce})).subscribe(re)}catch(te){re.error(te)}},q)};Se=ee.subscribe(p.createOperatorSubscriber(re,function(q){z?.unsubscribe(),ce++,re.next(Q=q),R>0&&se(R)},void 0,void 0,function(){z?.closed||z?.unsubscribe(),Q=null})),!ce&&se(O!=null?typeof O=="number"?O:+O-I.now():R)})}w.timeout=E;function v(m){throw new w.TimeoutError(m)}},81726:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.canDragX=f,w.canDragY=p,w.createCoreData=E,w.createDraggableData=v,w.getBoundPosition=y,w.getControlPosition=h,w.snapToGrid=x;var l=u(77056),g=u(71089);function y(d,O,R){if(!d.props.bounds)return[O,R];let{bounds:C}=d.props;C=typeof C=="string"?C:m(C);const L=S(d);if(typeof C=="string"){const{ownerDocument:j}=L,I=j.defaultView;let U;if(C==="parent"?U=L.parentNode:U=L.getRootNode().querySelector(C),!(U instanceof I.HTMLElement))throw new Error('Bounds selector "'+C+'" could not find an element.');const $=U,ee=I.getComputedStyle(L),re=I.getComputedStyle($);C={left:-L.offsetLeft+(0,l.int)(re.paddingLeft)+(0,l.int)(ee.marginLeft),top:-L.offsetTop+(0,l.int)(re.paddingTop)+(0,l.int)(ee.marginTop),right:(0,g.innerWidth)($)-(0,g.outerWidth)(L)-L.offsetLeft+(0,l.int)(re.paddingRight)-(0,l.int)(ee.marginRight),bottom:(0,g.innerHeight)($)-(0,g.outerHeight)(L)-L.offsetTop+(0,l.int)(re.paddingBottom)-(0,l.int)(ee.marginBottom)}}return(0,l.isNum)(C.right)&&(O=Math.min(O,C.right)),(0,l.isNum)(C.bottom)&&(R=Math.min(R,C.bottom)),(0,l.isNum)(C.left)&&(O=Math.max(O,C.left)),(0,l.isNum)(C.top)&&(R=Math.max(R,C.top)),[O,R]}function x(d,O,R){const C=Math.round(O/d[0])*d[0],L=Math.round(R/d[1])*d[1];return[C,L]}function f(d){return d.props.axis==="both"||d.props.axis==="x"}function p(d){return d.props.axis==="both"||d.props.axis==="y"}function h(d,O,R){const C=typeof O=="number"?(0,g.getTouch)(d,O):null;if(typeof O=="number"&&!C)return null;const L=S(R),j=R.props.offsetParent||L.offsetParent||L.ownerDocument.body;return(0,g.offsetXYFromParent)(C||d,j,R.props.scale)}function E(d,O,R){const C=!(0,l.isNum)(d.lastX),L=S(d);return C?{node:L,deltaX:0,deltaY:0,lastX:O,lastY:R,x:O,y:R}:{node:L,deltaX:O-d.lastX,deltaY:R-d.lastY,lastX:d.lastX,lastY:d.lastY,x:O,y:R}}function v(d,O){const R=d.props.scale;return{node:O.node,x:d.state.x+O.deltaX/R,y:d.state.y+O.deltaY/R,deltaX:O.deltaX/R,deltaY:O.deltaY/R,lastX:d.state.x,lastY:d.state.y}}function m(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function S(d){const O=d.findDOMNode();if(!O)throw new Error("<DraggableCore>: Unmounted during event!");return O}},81757:Ge=>{function w(u,l){this.v=u,this.k=l}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},82044:function(Ge,w,u){"use strict";var l=this&&this.__read||function(f,p){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var E=h.call(f),v,m=[],S;try{for(;(p===void 0||p-- >0)&&!(v=E.next()).done;)m.push(v.value)}catch(d){S={error:d}}finally{try{v&&!v.done&&(h=E.return)&&h.call(E)}finally{if(S)throw S.error}}return m},g=this&&this.__spreadArray||function(f,p){for(var h=0,E=p.length,v=f.length;h<E;h++,v++)f[v]=p[h];return f};Object.defineProperty(w,"__esModule",{value:!0}),w.combineLatestWith=void 0;var y=u(64948);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return y.combineLatest.apply(void 0,g([],l(f)))}w.combineLatestWith=x},82093:(Ge,w,u)=>{(function(){(function(l){var g=l.System;E(g);var y=g.constructor.prototype,x=g.constructor,f=function(){x.call(this),E(this)};f.prototype=y,g.constructor=f;var p,h;function E(O){O.registerRegistry=Object.create(null),O.namedRegisterAliases=Object.create(null)}var v=y.register;y.register=function(O,R,C,L){if(typeof O!="string")return v.apply(this,arguments);var j=[R,C,L];return this.registerRegistry[O]=j,p||(p=j,h=O),Promise.resolve().then(function(){p=null,h=null}),v.apply(this,[R,C,L])};var m=y.resolve;y.resolve=function(O,R){try{return m.call(this,O,R)}catch(C){if(O in this.registerRegistry)return this.namedRegisterAliases[O]||O;throw C}};var S=y.instantiate;y.instantiate=function(O,R,C){var L=this.registerRegistry[O];return L?(this.registerRegistry[O]=null,L):S.call(this,O,R,C)};var d=y.getRegister;y.getRegister=function(O){var R=d.call(this,O);h&&O&&(this.namedRegisterAliases[h]=O);var C=p||R;return p=null,h=null,C}})(typeof self<"u"?self:u.g)})()},82100:(Ge,w,u)=>{"use strict";u.d(w,{R0:()=>p,lI:()=>f,ms:()=>x});var l=u(61209),g=u(98820);function y(h){return h[h.length-1]}function x(h){return(0,l.T)(y(h))?h.pop():void 0}function f(h){return(0,g.m)(y(h))?h.pop():void 0}function p(h,E){return typeof y(h)=="number"?h.pop():E}},82134:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.calcGridColWidth=u,w.calcGridItemPosition=g,w.calcGridItemWHPx=l,w.calcWH=x,w.calcXY=y,w.clamp=f;function u(p){const{margin:h,containerPadding:E,containerWidth:v,cols:m}=p;return(v-h[0]*(m-1)-E[0]*2)/m}function l(p,h,E){return Number.isFinite(p)?Math.round(h*p+Math.max(0,p-1)*E):p}function g(p,h,E,v,m,S){const{margin:d,containerPadding:O,rowHeight:R}=p,C=u(p),L={};return S&&S.resizing?(L.width=Math.round(S.resizing.width),L.height=Math.round(S.resizing.height)):(L.width=l(v,C,d[0]),L.height=l(m,R,d[1])),S&&S.dragging?(L.top=Math.round(S.dragging.top),L.left=Math.round(S.dragging.left)):S&&S.resizing&&typeof S.resizing.top=="number"&&typeof S.resizing.left=="number"?(L.top=Math.round(S.resizing.top),L.left=Math.round(S.resizing.left)):(L.top=Math.round((R+d[1])*E+O[1]),L.left=Math.round((C+d[0])*h+O[0])),L}function y(p,h,E,v,m){const{margin:S,cols:d,rowHeight:O,maxRows:R}=p,C=u(p);let L=Math.round((E-S[0])/(C+S[0])),j=Math.round((h-S[1])/(O+S[1]));return L=f(L,0,d-v),j=f(j,0,R-m),{x:L,y:j}}function x(p,h,E,v,m,S){const{margin:d,maxRows:O,cols:R,rowHeight:C}=p,L=u(p);let j=Math.round((h+d[0])/(L+d[0])),I=Math.round((E+d[1])/(C+d[1])),U=f(j,0,R-v),$=f(I,0,O-m);return["sw","w","nw"].indexOf(S)!==-1&&(U=f(j,0,R)),["nw","n","ne"].indexOf(S)!==-1&&($=f(I,0,O)),{w:U,h:$}}function f(p,h,E){return Math.max(Math.min(p,E),h)}},82139:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.repeatWhen=void 0;var l=u(19724),g=u(54427),y=u(65212),x=u(17214);function f(p){return y.operate(function(h,E){var v,m=!1,S,d=!1,O=!1,R=function(){return O&&d&&(E.complete(),!0)},C=function(){return S||(S=new g.Subject,l.innerFrom(p(S)).subscribe(x.createOperatorSubscriber(E,function(){v?L():m=!0},function(){d=!0,R()}))),S},L=function(){O=!1,v=h.subscribe(x.createOperatorSubscriber(E,void 0,function(){O=!0,!R()&&C().next()})),m&&(v.unsubscribe(),v=null,m=!1,L())};L()})}w.repeatWhen=f},82514:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(C,L,j,I){I===void 0&&(I=j);var U=Object.getOwnPropertyDescriptor(L,j);(!U||("get"in U?!L.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return L[j]}}),Object.defineProperty(C,I,U)}:function(C,L,j,I){I===void 0&&(I=j),C[I]=L[j]}),g=this&&this.__setModuleDefault||(Object.create?function(C,L){Object.defineProperty(C,"default",{enumerable:!0,value:L})}:function(C,L){C.default=L}),y=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var L={};if(C!=null)for(var j in C)j!=="default"&&Object.prototype.hasOwnProperty.call(C,j)&&l(L,C,j);return g(L,C),L},x=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(w,"__esModule",{value:!0}),w.DiffMethod=w.LineNumberPrefix=void 0;const f=u(74848),p=y(u(96540)),h=x(u(46942)),E=u(78217);Object.defineProperty(w,"DiffMethod",{enumerable:!0,get:function(){return E.DiffMethod}});const v=x(u(26945)),m=u(44411),S=u(41811),d=S.default||S;var O;(function(C){C.LEFT="L",C.RIGHT="R"})(O||(w.LineNumberPrefix=O={}));class R extends p.Component{constructor(L){super(L),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=j=>{const I=this.state.expandedBlocks.slice();I.push(j),this.setState({expandedBlocks:I})},this.computeStyles=d(v.default),this.onLineNumberClickProxy=j=>this.props.onLineNumberClick?I=>this.props.onLineNumberClick(j,I):()=>{},this.renderWordDiff=(j,I)=>j.map((U,$)=>(0,f.jsx)("span",{className:(0,h.default)(this.styles.wordDiff,{[this.styles.wordAdded]:U.type===E.DiffType.ADDED,[this.styles.wordRemoved]:U.type===E.DiffType.REMOVED}),children:I?I(U.value):U.value},$)),this.renderLine=(j,I,U,$,ee,re)=>{const Se=`${U}-${j}`,z=`${re}-${ee}`,Q=this.props.highlightLines.includes(Se)||this.props.highlightLines.includes(z),ce=I===E.DiffType.ADDED,se=I===E.DiffType.REMOVED,q=I===E.DiffType.CHANGED;let te;return Array.isArray($)?te=this.renderWordDiff($,this.props.renderContent):this.props.renderContent?te=this.props.renderContent($):te=$,(0,f.jsxs)(p.Fragment,{children:[!this.props.hideLineNumbers&&(0,f.jsx)("td",{onClick:j&&this.onLineNumberClickProxy(Se),className:(0,h.default)(this.styles.gutter,{[this.styles.emptyGutter]:!j,[this.styles.diffAdded]:ce,[this.styles.diffRemoved]:se,[this.styles.diffChanged]:q,[this.styles.highlightedGutter]:Q}),children:(0,f.jsx)("pre",{className:this.styles.lineNumber,children:j})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,f.jsx)("td",{onClick:ee&&this.onLineNumberClickProxy(z),className:(0,h.default)(this.styles.gutter,{[this.styles.emptyGutter]:!ee,[this.styles.diffAdded]:ce,[this.styles.diffRemoved]:se,[this.styles.diffChanged]:q,[this.styles.highlightedGutter]:Q}),children:(0,f.jsx)("pre",{className:this.styles.lineNumber,children:ee})}),this.props.renderGutter?this.props.renderGutter({lineNumber:j,type:I,prefix:U,value:$,additionalLineNumber:ee,additionalPrefix:re,styles:this.styles}):null,!this.props.hideMarkers&&(0,f.jsx)("td",{className:(0,h.default)(this.styles.marker,{[this.styles.emptyLine]:!te,[this.styles.diffAdded]:ce,[this.styles.diffRemoved]:se,[this.styles.diffChanged]:q,[this.styles.highlightedLine]:Q}),children:(0,f.jsxs)("pre",{children:[ce&&"+",se&&"-"]})}),(0,f.jsx)("td",{className:(0,h.default)(this.styles.content,{[this.styles.emptyLine]:!te,[this.styles.diffAdded]:ce,[this.styles.diffRemoved]:se,[this.styles.diffChanged]:q,[this.styles.highlightedLine]:Q}),children:(0,f.jsx)("pre",{className:this.styles.contentText,children:te})})]})},this.renderSplitView=({left:j,right:I},U)=>(0,f.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(j.lineNumber,j.type,O.LEFT,j.value),this.renderLine(I.lineNumber,I.type,O.RIGHT,I.value)]},U),this.renderInlineView=({left:j,right:I},U)=>{let $;return j.type===E.DiffType.REMOVED&&I.type===E.DiffType.ADDED?(0,f.jsxs)(p.Fragment,{children:[(0,f.jsx)("tr",{className:this.styles.line,children:this.renderLine(j.lineNumber,j.type,O.LEFT,j.value,null)}),(0,f.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,I.type,O.RIGHT,I.value,I.lineNumber)})]},U):(j.type===E.DiffType.REMOVED&&($=this.renderLine(j.lineNumber,j.type,O.LEFT,j.value,null)),j.type===E.DiffType.DEFAULT&&($=this.renderLine(j.lineNumber,j.type,O.LEFT,j.value,I.lineNumber,O.RIGHT)),I.type===E.DiffType.ADDED&&($=this.renderLine(null,I.type,O.RIGHT,I.value,I.lineNumber)),(0,f.jsx)("tr",{className:this.styles.line,children:$},U))},this.onBlockClickProxy=j=>()=>this.onBlockExpand(j),this.renderSkippedLineIndicator=(j,I,U,$)=>{const{hideLineNumbers:ee,splitView:re}=this.props,Se=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(j,U,$):(0,f.jsxs)("pre",{className:this.styles.codeFoldContent,children:["Expand ",j," lines ..."]}),z=(0,f.jsx)("td",{children:(0,f.jsx)("a",{onClick:this.onBlockClickProxy(I),tabIndex:0,children:Se})}),Q=!re&&!ee;return(0,f.jsxs)("tr",{className:this.styles.codeFold,children:[!ee&&(0,f.jsx)("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,f.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,f.jsx)("td",{className:(0,h.default)({[this.styles.codeFoldGutter]:Q})}),Q?(0,f.jsxs)(p.Fragment,{children:[(0,f.jsx)("td",{}),z]}):(0,f.jsxs)(p.Fragment,{children:[z,this.props.renderGutter?(0,f.jsx)("td",{}):null,(0,f.jsx)("td",{})]}),(0,f.jsx)("td",{}),(0,f.jsx)("td",{})]},`${U}-${$}`)},this.renderDiff=()=>{const{oldValue:j,newValue:I,splitView:U,disableWordDiff:$,compareMethod:ee,linesOffset:re}=this.props,{lineInformation:Se,diffLines:z}=(0,E.computeLineInformation)(j,I,$,ee,re,this.props.alwaysShowLines),Q=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:ce,blocks:se}=(0,m.computeHiddenBlocks)(Se,z,Q);return Se.map((q,te)=>{if(this.props.showDiffOnly){const T=ce[te];if(T!==void 0){const B=se[T].endLine===te;if(!this.state.expandedBlocks.includes(T)&&B)return(0,f.jsx)(p.Fragment,{children:this.renderSkippedLineIndicator(se[T].lines,T,q.left.lineNumber,q.right.lineNumber)},te);if(!this.state.expandedBlocks.includes(T))return null}}return U?this.renderSplitView(q,te):this.renderInlineView(q,te)})},this.render=()=>{const{oldValue:j,newValue:I,useDarkTheme:U,leftTitle:$,rightTitle:ee,splitView:re,hideLineNumbers:Se,hideMarkers:z,nonce:Q}=this.props;if(this.props.compareMethod!==E.DiffMethod.JSON&&(typeof j!="string"||typeof I!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,U,Q);const ce=this.renderDiff();let se=Se?2:3,q=Se?2:4;z&&(se-=1,q-=1);const te=this.props.renderGutter?1:0,A=($||ee)&&(0,f.jsxs)("tr",{children:[(0,f.jsx)("td",{colSpan:(re?se:q)+te,className:this.styles.titleBlock,children:(0,f.jsx)("pre",{className:this.styles.contentText,children:$})}),re&&(0,f.jsx)("td",{colSpan:se+te,className:this.styles.titleBlock,children:(0,f.jsx)("pre",{className:this.styles.contentText,children:ee})})]});return(0,f.jsx)("table",{className:(0,h.default)(this.styles.diffContainer,{[this.styles.splitView]:re}),children:(0,f.jsxs)("tbody",{children:[A,ce]})})},this.state={expandedBlocks:[]}}}R.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:E.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""},w.default=R},82546:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(76288),g=u(96540);function y(x){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=[];return g.Children.forEach(x,function(h){h==null&&!f.keepEmpty||(Array.isArray(h)?p=p.concat(y(h)):(0,l.A)(h)&&h.props?p=p.concat(y(h.props.children,f)):p.push(h))}),p}},82611:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{Annotation:()=>on,Block:()=>Nn,Change:()=>Yn,Data:()=>ge,Decoration:()=>Et,Document:()=>Cn,Editor:()=>di,Inline:()=>er,KeyUtils:()=>re,Leaf:()=>wa,Mark:()=>lt,Node:()=>kn,Operation:()=>ln,PathUtils:()=>ke,Point:()=>_e,Range:()=>Kn,Selection:()=>nn,Text:()=>gn,TextUtils:()=>qt,Value:()=>bt,default:()=>Xt,resetMemoization:()=>Ye,useMemoization:()=>ot});var l=u(49568),g=u(38365),y=u.n(g),x=!0,f=function(V,Y){if(!x){if(V)return;console.warn(Y)}};const p=f;var h=u(11561),E=u(97388),v=u.n(E),m=u(30399),S=u(44383),d=u.n(S),O=u(90179),R=u.n(O),C=u(19086),L=u.n(C),j=void 0,I=void 0;function U(V){if(V==null)return I();if(typeof V=="string")return V;throw new Error("Keys must be strings, but you passed: "+V)}function $(V){I=V}function ee(){j=0,I=function(){return""+j++}}ee();var re={create:U,setGenerator:$,resetGenerator:ee},Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},z=function(V,Y){if(!(V instanceof Y))throw new TypeError("Cannot call a class as a function")},Q=function(){function V(Y,D){for(var P=0;P<D.length;P++){var oe=D[P];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(Y,oe.key,oe)}}return function(Y,D,P){return D&&V(Y.prototype,D),P&&V(Y,P),Y}}(),ce=function(V,Y,D){return Y in V?Object.defineProperty(V,Y,{value:D,enumerable:!0,configurable:!0,writable:!0}):V[Y]=D,V},se=Object.assign||function(V){for(var Y=1;Y<arguments.length;Y++){var D=arguments[Y];for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&(V[P]=D[P])}return V},q=function(V,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);V.prototype=Object.create(Y&&Y.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(V,Y):V.__proto__=Y)},te=function(V,Y){var D={};for(var P in V)Y.indexOf(P)>=0||Object.prototype.hasOwnProperty.call(V,P)&&(D[P]=V[P]);return D},A=function(V,Y){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:V},T=function(){function V(Y,D){var P=[],oe=!0,Ie=!1,Ue=void 0;try{for(var Xe=Y[Symbol.iterator](),dt;!(oe=(dt=Xe.next()).done)&&(P.push(dt.value),!(D&&P.length===D));oe=!0);}catch(kt){Ie=!0,Ue=kt}finally{try{!oe&&Xe.return&&Xe.return()}finally{if(Ie)throw Ue}}return P}return function(Y,D){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return V(Y,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),B=function(V){if(Array.isArray(V)){for(var Y=0,D=Array(V.length);Y<V.length;Y++)D[Y]=V[Y];return D}else return Array.from(V)};function X(V,Y){for(var D=Ct(V,Y),P=0;P<D;P++){var oe=V.get(P),Ie=Y.get(P);if(oe<Ie)return-1;if(oe>Ie)return 1}return V.size===Y.size?0:null}function ue(V){if(V==null)return null;if(l.List.isList(V))return V;if(Array.isArray(V))return(0,l.List)(V);throw new Error("Paths can only be created from arrays or lists, but you passed: "+V)}function ie(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ct(V,Y),P=V.slice(0,D),oe=Y.slice(0,D);return[P,oe]}function Te(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V.size-1;return yt(V,0-Y,D)}function je(V){var Y=(0,l.List)().withMutations(function(D){for(var P=0;P<V.size;P++)D.push(V.slice(0,P))});return Y}function yt(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V.size-1,P=V.get(D),oe=P+Y,Ie=V.set(D,oe);return Ie}function tt(V,Y){var D=ie(V,Y),P=T(D,2),oe=P[0],Ie=P[1];return V.size<Y.size&&X(oe,Ie)===0}function Ze(V,Y){var D=ie(V,Y),P=T(D,2),oe=P[0],Ie=P[1];return X(oe,Ie)===1}function Ne(V,Y){var D=ie(V,Y),P=T(D,2),oe=P[0],Ie=P[1];return X(oe,Ie)===-1}function it(V,Y){return V.equals(Y)}function Rt(V,Y){var D=V.size-1,P=ie(V,Y,D),oe=T(P,2),Ie=oe[0],Ue=oe[1],Xe=V.get(D),dt=Y.get(D);return it(Ie,Ue)&&Xe>dt}function Dn(V){return(l.List.isList(V)||Array.isArray(V))&&V.every(function(Y){return typeof Y=="number"})}function Mt(V,Y){if(V.size!==Y.size)return!1;var D=V.butLast(),P=Y.butLast();return D.equals(P)}function Wt(V,Y){var D=V.size-1,P=ie(V,Y,D),oe=T(P,2),Ie=oe[0],Ue=oe[1],Xe=V.get(D),dt=Y.get(D);return it(Ie,Ue)&&Xe<dt}function Tn(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=V.slice(0,-1*Y);return D}function bn(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=V.slice(Y);return D}function $t(V,Y){var D=Math.max(V.size,Y.size);return D}function Ct(V,Y){var D=Math.min(V.size,Y.size);return D}function Z(V,Y){for(var D=[],P=0;P<V.size&&P<Y.size;P++){var oe=V.get(P),Ie=Y.get(P);if(oe!==Ie)break;D.push(oe)}var Ue=ue(D);return Ue}function me(V,Y){var D=Y.type,P=Y.position,oe=Y.path;if(D==="add_mark"||D==="insert_text"||D==="remove_mark"||D==="remove_text"||D==="set_mark"||D==="set_node"||D==="set_selection"||D==="set_value"||D==="add_annotation"||D==="remove_annotation"||D==="set_annotation"||V.size===0)return(0,l.List)([V]);var Ie=oe.size-1,Ue=it(oe,V),Xe=Wt(oe,V),dt=tt(oe,V);if(D==="insert_node"&&(Ue||Xe||dt)&&(V=yt(V,1,Ie)),D==="remove_node"&&(Xe?V=Te(V,1,Ie):(Ue||dt)&&(V=[])),D==="merge_node"&&(Ue||Xe?V=Te(V,1,Ie):dt&&(V=Te(V,1,Ie),V=yt(V,P,Ie+1))),D==="split_node"&&(Ue?V=[V,yt(V)]:Xe?V=yt(V,1,Ie):dt&&V.get(Ie+1)>=P&&(V=yt(V,1,Ie),V=Te(V,P,Ie+1))),D==="move_node"){var kt=Y.newPath;if(it(oe,kt))return(0,l.List)([V]);dt||Ue?Wt(oe,kt)&&oe.size<kt.size?V=Te(kt,1,Ct(kt,oe)-1).concat(V.slice(oe.size)):V=kt.concat(V.slice(oe.size)):(Xe&&(V=Te(V,1,Ie)),(Wt(kt,V)||it(kt,V)||tt(kt,V))&&(V=yt(V,1,kt.size-1)))}var dn=Array.isArray(V)?V:[V];return(0,l.List)(dn)}var ke={compare:X,create:ue,crop:ie,decrement:Te,getAncestors:je,increment:yt,isAbove:tt,isAfter:Ze,isBefore:Ne,isEqual:it,isOlder:Rt,isPath:Dn,isSibling:Mt,isYounger:Wt,lift:Tn,drop:bn,max:$t,min:Ct,relate:Z,transform:me},Ee={key:void 0,offset:void 0,path:void 0},_e=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"isAfterPoint",value:function(P){if(this.isUnset)return!1;var oe=this.key===P.key&&this.offset>P.offset||ke.compare(this.path,P.path)===1;return oe}},{key:"isAfterRange",value:function(P){if(this.isUnset)return!1;var oe=this.isAfterPoint(P.end);return oe}},{key:"isAtEndOfRange",value:function(P){if(this.isUnset)return!1;var oe=this.equals(P.end);return oe}},{key:"isAtStartOfRange",value:function(P){if(this.isUnset)return!1;var oe=this.equals(P.start);return oe}},{key:"isBeforePoint",value:function(P){if(this.isUnset)return!1;var oe=this.key===P.key&&this.offset<P.offset||ke.compare(this.path,P.path)===-1;return oe}},{key:"isBeforeRange",value:function(P){if(this.isUnset)return!1;var oe=this.isBeforePoint(P.start);return oe}},{key:"isInRange",value:function(P){if(this.isUnset)return!1;var oe=this.equals(P.start)||this.equals(P.end)||this.isAfterPoint(P.start)&&this.isBeforePoint(P.end);return oe}},{key:"isAtEndOfNode",value:function(P){if(this.isUnset)return!1;var oe=P.getLastText(),Ie=this.key===oe.key&&this.offset===oe.text.length;return Ie}},{key:"isAtStartOfNode",value:function(P){if(this.isUnset||this.offset!==0)return!1;var oe=P.getFirstText(),Ie=this.key===oe.key;return Ie}},{key:"isInNode",value:function(P){return this.isUnset?!1:!!(P.object==="text"&&P.key===this.key||P.hasNode(this.key))}},{key:"moveBackward",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(P===0)return this;if(P<0)return this.moveForward(-P);var oe=this.setOffset(this.offset-P);return oe}},{key:"moveForward",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;if(P===0)return this;if(P<0)return this.moveBackward(-P);var oe=this.setOffset(this.offset+P);return oe}},{key:"moveTo",value:function(P){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ie=this.key;typeof P=="number"?(oe=P,P=this.path):typeof P=="string"?(Ie=P,P=Ie===this.key?this.path:null):Ie=P.equals(this.path)?this.key:null;var Ue=this.merge({key:Ie,path:P,offset:oe});return Ue}},{key:"moveToStartOfNode",value:function(P){var oe=P.getFirstText(),Ie=this.moveTo(oe.key,0);return Ie}},{key:"moveToEndOfNode",value:function(P){var oe=P.getLastText(),Ie=this.moveTo(oe.key,oe.text.length);return Ie}},{key:"normalize",value:function(P){if(this.key==null&&this.path==null)return this.setOffset(null);var oe=this.key,Ie=this.offset,Ue=this.path,Xe=Ue&&P.getNode(Ue);if(!Xe&&(Xe=P.getNode(oe),Xe)){var dt=this.merge({path:P.getPath(oe)});return dt}if(!Xe){p(!1,"A point's `path` or `key` invalid and was reset!");var kt=P.getFirstText();if(!kt)return Y.create();var dn=this.merge({key:kt.key,offset:0,path:P.getPath(kt.key)});return dn}if(Xe.object!=="text"){p(!1,"A point should not reference a non-text node!");var Vn=Xe.getTextAtOffset(Ie),qn=Xe.getOffset(Vn.key),yr=this.merge({offset:Ie-qn,key:Vn.key,path:P.getPath(Vn.key)});return yr}Xe&&Ue&&oe&&oe!==Xe.key&&p(!1,"A point's `key` did not match its `path`!");var ci=this.merge({key:Xe.key,path:Ue??P.getPath(Xe.key),offset:Ie==null?0:Math.min(Ie,Xe.text.length)});if(ci.offset===Xe.text.length){var hi=P.getClosestBlock(ci.path),Ti=hi.getNextText();Ti&&(ci=ci.merge({key:Ti.key,path:P.getPath(Ti.key),offset:0}))}return ci}},{key:"setKey",value:function(P){P!=null&&(P=re.create(P));var oe=this.set("key",P);return oe}},{key:"setOffset",value:function(P){var oe=this.set("offset",P);return oe}},{key:"setPath",value:function(P){P!=null&&(P=ke.create(P));var oe=this.set("path",P);return oe}},{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,key:this.key,offset:this.offset,path:this.path&&this.path.toArray()};return P.preserveKeys||delete oe.key,oe}},{key:"unset",value:function(){return this.merge({key:null,offset:null,path:null})}},{key:"isSet",get:function(){return this.key!=null&&this.offset!=null&&this.path!=null}},{key:"isUnset",get:function(){return!this.isSet}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isPoint(P))return P;if(y()(P))return Y.fromJSON(P);throw new Error("`Point.create` only accepts objects or points, but you passed it: "+P)}},{key:"createProperties",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isPoint(P))return{key:P.key,offset:P.offset,path:P.path};if(y()(P)){var oe={};return"key"in P&&(oe.key=P.key),"offset"in P&&(oe.offset=P.offset),"path"in P&&(oe.path=ke.create(P.path)),"path"in P&&!("key"in P)&&(oe.key=null),"key"in P&&!("path"in P)&&(oe.path=null),oe}throw new Error("`Point.createProperties` only accepts objects or points, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.key,Ie=oe===void 0?null:oe,Ue=P.offset,Xe=Ue===void 0?null:Ue,dt=P.path,kt=dt===void 0?null:dt,dn=new Y({key:Ie,offset:Xe,path:ke.create(kt)});return dn}}]),Y}((0,l.Record)(Ee)),ge=function(){function V(){z(this,V)}return Q(V,null,[{key:"create",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(l.Map.isMap(D))return D;if(y()(D))return V.fromJSON(D);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+D)}},{key:"fromJSON",value:function(D){return new l.Map(D)}}]),V}();ge.fromJS=ge.fromJSON;var Me={data:void 0,type:void 0},lt=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"toJSON",value:function(){var P={object:this.object,type:this.type,data:this.data.toJSON()};return P}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isMark(P))return P;if(typeof P=="string"&&(P={type:P}),y()(P))return Y.fromJSON(P);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+P)}},{key:"createSet",value:function(P){if(l.Set.isSet(P)||Array.isArray(P)){var oe=new l.Set(P.map(Y.create));return oe}if(P==null)return(0,l.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+P)}},{key:"createProperties",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isMark(P))return{data:P.data,type:P.type};if(typeof P=="string")return{type:P};if(y()(P)){var oe={};return"type"in P&&(oe.type=P.type),"data"in P&&(oe.data=ge.create(P.data)),oe}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.data,Ie=oe===void 0?{}:oe,Ue=P.type;if(typeof Ue!="string")throw new Error("`Mark.fromJS` requires a `type` string.");var Xe=new Y({type:Ue,data:new l.Map(Ie)});return Xe}},{key:"isMarkSet",value:function(P){return l.Set.isSet(P)&&P.every(function(oe){return Y.isMark(oe)})}}]),Y}((0,l.Record)(Me)),Ft={type:void 0,data:void 0,anchor:void 0,focus:void 0},Et=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"setProperties",value:function(P){P=Y.createProperties(P);var oe=this.merge(P);return oe}},{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(P),focus:this.focus.toJSON(P)};return oe}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isDecoration(P))return P;if(Kn.isRange(P))return Y.fromJSON(Kn.createProperties(P));if(y()(P))return Y.fromJSON(P);throw new Error("`Decoration.create` only accepts objects or decorations, but you passed it: "+P)}},{key:"createList",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(P)||Array.isArray(P)){var oe=new l.List(P.map(Y.create));return oe}throw new Error("`Decoration.createList` only accepts arrays or lists, but you passed it: "+P)}},{key:"createProperties",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isDecoration(P))return{type:P.type,data:P.data,anchor:_e.createProperties(P.anchor),focus:_e.createProperties(P.focus),mark:lt.create(P.mark)};if(y()(P)){var oe={};return"type"in P&&(oe.type=P.type),"data"in P&&(oe.data=ge.create(P.data)),"anchor"in P&&(oe.anchor=_e.create(P.anchor)),"focus"in P&&(oe.focus=_e.create(P.focus)),oe}throw new Error("`Decoration.createProperties` only accepts objects or decorations, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.anchor,Ie=P.focus,Ue=P.type,Xe=P.data;if(P.mark&&!Ue&&(p(!1,"As of slate@0.47 the `decoration.mark` property has been changed to `decoration.type` and `decoration.data` directly."),Ue=P.mark.type,Xe=P.mark.data),!Ue)throw new Error("Decorations must be created with a `type`, but you passed: "+JSON.stringify(P));var dt=new Y({type:Ue,data:ge.create(Xe||{}),anchor:_e.fromJSON(oe||{}),focus:_e.fromJSON(Ie||{})});return dt}}]),Y}((0,l.Record)(Ft)),Zt={anchor:void 0,focus:void 0,isFocused:void 0,marks:void 0},nn=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"setIsFocused",value:function(P){var oe=this.set("isFocused",P);return oe}},{key:"setMarks",value:function(P){var oe=this.set("marks",P);return oe}},{key:"setProperties",value:function(P){P=Y.createProperties(P);var oe=P,Ie=oe.anchor,Ue=oe.focus,Xe=te(oe,["anchor","focus"]);Ie&&(Xe.anchor=_e.create(Ie)),Ue&&(Xe.focus=_e.create(Ue));var dt=this.merge(Xe);return dt}},{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,anchor:this.anchor.toJSON(P),focus:this.focus.toJSON(P),isFocused:this.isFocused,marks:this.marks==null?null:this.marks.toArray().map(function(Ie){return Ie.toJSON()})};return oe}},{key:"isBlurred",get:function(){return!this.isFocused}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isSelection(P))return P;if(Kn.isRange(P))return Y.fromJSON(Kn.createProperties(P));if(y()(P))return Y.fromJSON(P);throw new Error("`Selection.create` only accepts objects, ranges or selections, but you passed it: "+P)}},{key:"createProperties",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isSelection(P))return{anchor:_e.createProperties(P.anchor),focus:_e.createProperties(P.focus),isFocused:P.isFocused,marks:P.marks};if(Kn.isRange(P))return{anchor:_e.createProperties(P.anchor),focus:_e.createProperties(P.focus)};if(y()(P)){var oe={};return"anchor"in P&&(oe.anchor=_e.create(P.anchor)),"focus"in P&&(oe.focus=_e.create(P.focus)),"isFocused"in P&&(oe.isFocused=P.isFocused),"marks"in P&&(oe.marks=P.marks==null?null:lt.createSet(P.marks)),oe}throw new Error("`Selection.createProperties` only accepts objects, ranges or selections, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.anchor,Ie=P.focus,Ue=P.isFocused,Xe=Ue===void 0?!1:Ue,dt=P.marks,kt=dt===void 0?null:dt,dn=new Y({anchor:_e.fromJSON(oe||{}),focus:_e.fromJSON(Ie||{}),isFocused:Xe,marks:kt==null?null:new l.Set(kt.map(lt.fromJSON))});return dn}}]),Y}((0,l.Record)(Zt)),Pn={annotation:"@@__SLATE_ANNOTATION__@@",block:"@@__SLATE_BLOCK__@@",change:"@@__SLATE_CHANGE__@@",decoration:"@@__SLATE_DECORATION__@@",document:"@@__SLATE_DOCUMENT__@@",editor:"@@__SLATE_EDITOR__@@",inline:"@@__SLATE_INLINE__@@",leaf:"@@__SLATE_LEAF__@@",mark:"@@__SLATE_MARK__@@",operation:"@@__SLATE_OPERATION__@@",point:"@@__SLATE_POINT__@@",range:"@@__SLATE_RANGE__@@",selection:"@@__SLATE_SELECTION__@@",text:"@@__SLATE_TEXT__@@",value:"@@__SLATE_VALUE__@@"};function rn(V,Y){return!!(Y&&Y[Pn[V]])}var Vt={anchor:void 0,focus:void 0},Kn=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,anchor:this.anchor.toJSON(P),focus:this.focus.toJSON(P)};return oe}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isRange(P))return P.object==="range"?P:Y.fromJSON(Y.createProperties(P));if(y()(P))return Y.fromJSON(P);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+P)}},{key:"createList",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(P)||Array.isArray(P)){var oe=new l.List(P.map(Y.create));return oe}throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+P)}},{key:"createProperties",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isRange(P))return{anchor:_e.createProperties(P.anchor),focus:_e.createProperties(P.focus)};if(y()(P)){var oe={};return"anchor"in P&&(oe.anchor=_e.create(P.anchor)),"focus"in P&&(oe.focus=_e.create(P.focus)),oe}throw new Error("`Range.createProperties` only accepts objects, annotations, decorations, ranges or selections, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.anchor,Ie=P.focus,Ue=new Y({anchor:_e.fromJSON(oe||{}),focus:_e.fromJSON(Ie||{})});return Ue}},{key:"isRange",value:function(P){return rn("range",P)||Et.isDecoration(P)||nn.isSelection(P)}}]),Y}((0,l.Record)(Vt)),ur={key:void 0,type:void 0,data:void 0,anchor:void 0,focus:void 0},on=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"setProperties",value:function(P){P=Y.createProperties(P);var oe=this.merge(P);return oe}},{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,key:this.key,type:this.type,data:this.data.toJSON(),anchor:this.anchor.toJSON(P),focus:this.focus.toJSON(P)};return oe}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isAnnotation(P))return P;if(Kn.isRange(P))return Y.fromJSON(Kn.createProperties(P));if(y()(P))return Y.fromJSON(P);throw new Error("`Annotation.create` only accepts objects or annotations, but you passed it: "+P)}},{key:"createMap",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.Map.isMap(P))return P;if(y()(P)){var oe={};for(var Ie in P){var Ue=P[Ie],Xe=Y.create(Ue);oe[Ie]=Xe}return(0,l.Map)(oe)}throw new Error("`Annotation.createMap` only accepts arrays or lists, but you passed it: "+P)}},{key:"createProperties",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isAnnotation(P))return{key:P.key,type:P.type,data:P.data,anchor:_e.createProperties(P.anchor),focus:_e.createProperties(P.focus)};if(y()(P)){var oe={};return"key"in P&&(oe.key=P.key),"type"in P&&(oe.type=P.type),"data"in P&&(oe.data=ge.create(P.data)),"anchor"in P&&(oe.anchor=_e.create(P.anchor)),"focus"in P&&(oe.focus=_e.create(P.focus)),oe}throw new Error("`Annotation.createProperties` only accepts objects or annotations, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.key,Ie=P.type,Ue=P.data,Xe=P.anchor,dt=P.focus;if(!oe)throw new Error("Annotations must be created with a `key`, but you passed: "+JSON.stringify(P));if(!Ie)throw new Error("Annotations must be created with a `type`, but you passed: "+JSON.stringify(P));var kt=new Y({key:oe,type:Ie,data:ge.create(Ue||{}),anchor:_e.fromJSON(Xe||{}),focus:_e.fromJSON(dt||{})});return kt}}]),Y}((0,l.Record)(ur)),tr={data:void 0,key:void 0,nodes:void 0},Cn=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(Ie){return Ie.toJSON(P)})};return P.preserveKeys&&(oe.key=this.key),oe}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isDocument(P))return P;if((l.List.isList(P)||Array.isArray(P))&&(P={nodes:P}),y()(P))return Y.fromJSON(P);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+P)}},{key:"fromJSON",value:function(P){if(Y.isDocument(P))return P;var oe=P.data,Ie=oe===void 0?{}:oe,Ue=P.key,Xe=Ue===void 0?re.create():Ue,dt=P.nodes,kt=dt===void 0?[]:dt,dn=new Y({key:Xe,data:new l.Map(Ie),nodes:kn.createList(kt)});return dn}}]),Y}((0,l.Record)(tr)),Wn={data:void 0,key:void 0,nodes:void 0,type:void 0},er=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(Ie){return Ie.toJSON(P)})};return P.preserveKeys&&(oe.key=this.key),oe}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isInline(P))return P;if(typeof P=="string"&&(P={type:P}),y()(P))return Y.fromJSON(P);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+P)}},{key:"createList",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(P)||Array.isArray(P)){var oe=new l.List(P.map(Y.create));return oe}throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+P)}},{key:"fromJSON",value:function(P){if(Y.isInline(P))return P;var oe=P.data,Ie=oe===void 0?{}:oe,Ue=P.key,Xe=Ue===void 0?re.create():Ue,dt=P.nodes,kt=dt===void 0?[]:dt,dn=P.type;if(typeof dn!="string")throw new Error("`Inline.fromJS` requires a `type` string.");var Vn=new Y({key:Xe,type:dn,data:new l.Map(Ie),nodes:kn.createList(kt)});return Vn}},{key:"isInlineList",value:function(P){return l.List.isList(P)&&P.every(function(oe){return Y.isInline(oe)})}}]),Y}((0,l.Record)(Wn)),Fn={key:void 0,marks:void 0,text:void 0},en=(0,l.Record)({text:void 0,marks:void 0,annotations:void 0,decorations:void 0}),gn=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"addMark",value:function(P){P=lt.create(P);var oe=this.marks,Ie=oe.add(P),Ue=this.set("marks",Ie);return Ue}},{key:"addMarks",value:function(P){P=lt.createSet(P);var oe=this.set("marks",this.marks.union(P));return oe}},{key:"getLeaves",value:function(P,oe){var Ie=this.text,Ue=this.marks,Xe=[{text:Ie,marks:Ue,annotations:[],decorations:[]}],dt=function(qn,yr){return[{text:qn.text.slice(0,yr),marks:qn.marks,annotations:[].concat(B(qn.annotations)),decorations:[].concat(B(qn.decorations))},{text:qn.text.slice(yr),marks:qn.marks,annotations:[].concat(B(qn.annotations)),decorations:[].concat(B(qn.decorations))}]},kt=function(qn){var yr=qn==="annotations"?P.values():oe,ci=!0,hi=!1,Ti=void 0;try{for(var Vi=yr[Symbol.iterator](),Di;!(ci=(Di=Vi.next()).done);ci=!0){var Pi=Di.value,mt=Pi.start,tn=Pi.end,or=[],rt=0,St=!0,_n=!1,vn=void 0;try{for(var Ln=Xe[Symbol.iterator](),_r;!(St=(_r=Ln.next()).done);St=!0){var Br=_r.value,Kr=Br.text.length,Jr=rt;if(rt+=Kr,mt.offset<=Jr&&tn.offset>=Jr+Kr){Br[qn].push(Pi),or.push(Br);continue}if(mt.offset>Jr+Kr||tn.offset<Jr||tn.offset===Jr&&Jr!==0){or.push(Br);continue}var ii=Br,le=void 0,Ae=void 0;if(tn.offset<Jr+Kr){var Oe=dt(ii,tn.offset-Jr),et=T(Oe,2);ii=et[0],Ae=et[1]}if(mt.offset>Jr){var Ot=dt(ii,mt.offset-Jr),It=T(Ot,2);le=It[0],ii=It[1]}ii[qn].push(Pi),le&&or.push(le),or.push(ii),Ae&&or.push(Ae)}}catch(Mn){_n=!0,vn=Mn}finally{try{!St&&Ln.return&&Ln.return()}finally{if(_n)throw vn}}Xe=or}}catch(Mn){hi=!0,Ti=Mn}finally{try{!ci&&Vi.return&&Vi.return()}finally{if(hi)throw Ti}}};kt("annotations"),kt("decorations"),Xe=Xe.map(function(Vn){return new en(se({},Vn,{annotations:(0,l.List)(Vn.annotations),decorations:(0,l.List)(Vn.decorations)}))});var dn=(0,l.List)(Xe);return dn}},{key:"insertText",value:function(P,oe){var Ie=this.text,Ue=Ie.slice(0,P)+oe+Ie.slice(P),Xe=this.set("text",Ue);return Xe}},{key:"removeMark",value:function(P){P=lt.create(P);var oe=this.marks,Ie=oe.remove(P),Ue=this.set("marks",Ie);return Ue}},{key:"removeText",value:function(P,oe){var Ie=this.text,Ue=Ie.slice(0,P)+Ie.slice(P+oe),Xe=this.set("text",Ue);return Xe}},{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,text:this.text,marks:this.marks.toArray().map(function(Ie){return Ie.toJSON()})};return P.preserveKeys&&(oe.key=this.key),oe}},{key:"setMark",value:function(P,oe){var Ie=this.marks,Ue=lt.create(P),Xe=Ue.merge(oe),dt=Ie.remove(Ue).add(Xe),kt=this.set("marks",dt);return kt}},{key:"splitText",value:function(P){var oe=this.text,Ie=this.set("text",oe.slice(0,P)),Ue=this.set("text",oe.slice(P)).regenerateKey();return[Ie,Ue]}},{key:"mergeText",value:function(P){var oe=this.text+P.text,Ie=this.set("text",oe);return Ie}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Y.isText(P))return P;if(typeof P=="string"&&(P={text:P}),y()(P))return Y.fromJSON(P);throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+P)}},{key:"createList",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(P)||Array.isArray(P)){var oe=new l.List(P.map(Y.create));return oe}throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+P)}},{key:"fromJSON",value:function(P){if(Y.isText(P))return P;(0,h.A)(P.leaves==null,"As of slate@0.46, the `leaves` property of text nodes has been removed! Each individual leaf should be created as a text node instead.");var oe=P.text,Ie=oe===void 0?"":oe,Ue=P.marks,Xe=Ue===void 0?[]:Ue,dt=P.key,kt=dt===void 0?re.create():dt,dn=new Y({key:kt,text:Ie,marks:lt.createSet(Xe)});return dn}},{key:"isTextList",value:function(P){return l.List.isList(P)&&P.every(function(oe){return Y.isText(oe)})}}]),Y}((0,l.Record)(Fn)),kn=function(){function V(){z(this,V)}return Q(V,null,[{key:"create",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(V.isNode(D))return D;if(y()(D)){var P=D.object;switch(!P&&D.kind&&(p(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),P=D.kind),P){case"block":return Nn.create(D);case"document":return Cn.create(D);case"inline":return er.create(D);case"text":return gn.create(D);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+D)}},{key:"createList",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(D)||Array.isArray(D)){var P=[];D.forEach(function(Ie){if(Ie&&Ie.object==="text"&&Ie.leaves&&Array.isArray(Ie.leaves)){p(!1,"As of slate@0.46, the `leaves` property of Text nodes has been removed. Instead, each text node contains a string of text and a unique set of marks and leaves are unnecessary.");var Ue=gn.createList(Ie.leaves).toArray();P=P.concat(Ue);return}var Xe=V.create(Ie);P.push(Xe)});var oe=(0,l.List)(P);return oe}throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+D)}},{key:"createProperties",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Nn.isBlock(D)||er.isInline(D))return{data:D.data,type:D.type};if(typeof D=="string")return{type:D};if(y()(D)){var P={};return"type"in D&&(P.type=D.type),"data"in D&&(P.data=ge.create(D.data)),P}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+D)}},{key:"fromJSON",value:function(D){var P=D.object;switch(!P&&D.kind&&(p(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),P=D.kind),P){case"block":return Nn.fromJSON(D);case"document":return Cn.fromJSON(D);case"inline":return er.fromJSON(D);case"text":return gn.fromJSON(D);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+D)}}},{key:"isNode",value:function(D){return Nn.isBlock(D)||Cn.isDocument(D)||er.isInline(D)||gn.isText(D)}},{key:"isNodeList",value:function(D){return l.List.isList(D)&&D.every(function(P){return V.isNode(P)})}}]),V}(),Jn={data:void 0,key:void 0,nodes:void 0,type:void 0},Nn=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(Ie){return Ie.toJSON(P)})};return P.preserveKeys&&(oe.key=this.key),oe}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isBlock(P))return P;if(typeof P=="string"&&(P={type:P}),y()(P))return Y.fromJSON(P);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+P)}},{key:"createList",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(P)||Array.isArray(P)){var oe=new l.List(P.map(Y.create));return oe}throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+P)}},{key:"fromJSON",value:function(P){if(Y.isBlock(P))return P;var oe=P.data,Ie=oe===void 0?{}:oe,Ue=P.key,Xe=Ue===void 0?re.create():Ue,dt=P.nodes,kt=dt===void 0?[]:dt,dn=P.type;if(typeof dn!="string")throw new Error("`Block.fromJSON` requires a `type` string.");var Vn=new Y({key:Xe,type:dn,data:(0,l.Map)(Ie),nodes:kn.createList(kt)});return Vn}},{key:"isBlockList",value:function(P){return l.List.isList(P)&&P.every(function(oe){return Y.isBlock(oe)})}}]),Y}((0,l.Record)(Jn)),kr={annotations:void 0,data:void 0,document:void 0,selection:void 0},bt=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"addAnnotation",value:function(P){P=on.create(P);var oe=this,Ie=oe,Ue=Ie.annotations,Xe=Ie.document,dt=P,kt=dt.key;return P=P.updatePoints(function(dn){return dn.normalize(Xe)}),Ue=Ue.set(kt,P),oe=oe.set("annotations",Ue),oe}},{key:"addMark",value:function(P,oe){oe=lt.create(oe);var Ie=this,Ue=Ie,Xe=Ue.document;return Xe=Xe.addMark(P,oe),Ie=Ie.set("document",Xe),Ie}},{key:"insertNode",value:function(P,oe){var Ie=this,Ue=Ie,Xe=Ue.document;return Xe=Xe.insertNode(P,oe),Ie=Ie.set("document",Xe),Ie=Ie.mapRanges(function(dt){return dt.updatePoints(function(kt){return kt.setPath(null)})}),Ie}},{key:"insertText",value:function(P,oe,Ie){var Ue=this,Xe=Ue,dt=Xe.document,kt=dt.assertNode(P);return dt=dt.insertText(P,oe,Ie),kt=dt.assertNode(P),Ue=Ue.set("document",dt),Ue=Ue.mapPoints(function(dn){return dn.key===kt.key&&dn.offset>=oe?dn.setOffset(dn.offset+Ie.length):dn}),Ue}},{key:"mergeNode",value:function(P){var oe=this,Ie=oe,Ue=Ie.document,Xe=Ue.mergeNode(P);P=Ue.resolvePath(P);var dt=ke.decrement(P),kt=Ue.getNode(dt),dn=Ue.getNode(P);return oe=oe.set("document",Xe),oe=oe.mapRanges(function(Vn){if(dn.object==="text"){var qn=kt.text.length;Vn.anchor.key===dn.key&&(Vn=Vn.moveAnchorTo(kt.key,qn+Vn.anchor.offset)),Vn.focus.key===dn.key&&(Vn=Vn.moveFocusTo(kt.key,qn+Vn.focus.offset))}return Vn=Vn.updatePoints(function(yr){return yr.setPath(null)}),Vn}),oe}},{key:"moveNode",value:function(P,oe){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Ue=this,Xe=Ue,dt=Xe.document;return ke.isEqual(P,oe)||(dt=dt.moveNode(P,oe,Ie),Ue=Ue.set("document",dt),Ue=Ue.mapPoints(function(kt){return kt.setPath(null)})),Ue}},{key:"removeAnnotation",value:function(P){P=on.create(P);var oe=this,Ie=oe,Ue=Ie.annotations,Xe=P,dt=Xe.key;return Ue=Ue.delete(dt),oe=oe.set("annotations",Ue),oe}},{key:"removeMark",value:function(P,oe){oe=lt.create(oe);var Ie=this,Ue=Ie,Xe=Ue.document;return Xe=Xe.removeMark(P,oe),Ie=Ie.set("document",Xe),Ie}},{key:"removeNode",value:function(P){var oe=this,Ie=oe,Ue=Ie.document,Xe=Ue.assertNode(P),dt=Xe.object==="text"?Xe:Xe.getFirstText()||Xe,kt=Xe.object==="text"?Xe:Xe.getLastText()||Xe,dn=Ue.getPreviousText(dt.key),Vn=Ue.getNextText(kt.key);return Ue=Ue.removeNode(P),oe=oe.set("document",Ue),oe=oe.mapRanges(function(qn){var yr=qn,ci=yr.anchor,hi=yr.focus;return Xe.hasNode(ci.key)&&(qn=dn?qn.moveAnchorTo(dn.key,dn.text.length):Vn?qn.moveAnchorTo(Vn.key,0):qn.unset()),Xe.hasNode(hi.key)&&(qn=dn?qn.moveFocusTo(dn.key,dn.text.length):Vn?qn.moveFocusTo(Vn.key,0):qn.unset()),qn=qn.updatePoints(function(Ti){return Ti.setPath(null)}),qn}),oe}},{key:"removeText",value:function(P,oe,Ie){var Ue=this,Xe=Ue,dt=Xe.document,kt=dt.assertNode(P);dt=dt.removeText(P,oe,Ie),Ue=Ue.set("document",dt);var dn=Ie.length,Vn=oe,qn=oe+dn;return Ue=Ue.mapPoints(function(yr){return yr.key!==kt.key?yr:yr.offset>=qn?yr.setOffset(yr.offset-dn):yr.offset>Vn?yr.setOffset(Vn):yr}),Ue}},{key:"setAnnotation",value:function(P,oe){oe=on.createProperties(oe);var Ie=on.create(P),Ue=Ie.merge(oe),Xe=this,dt=Xe,kt=dt.annotations,dn=Ie.key;return kt=kt.set(dn,Ue),Xe=Xe.set("annotations",kt),Xe}},{key:"setNode",value:function(P,oe){var Ie=this,Ue=Ie,Xe=Ue.document;return Xe=Xe.setNode(P,oe),Ie=Ie.set("document",Xe),Ie}},{key:"setMark",value:function(P,oe,Ie){var Ue=this,Xe=Ue,dt=Xe.document;return dt=dt.setMark(P,oe,Ie),Ue=Ue.set("document",dt),Ue}},{key:"setProperties",value:function(P){var oe=this,Ie=oe,Ue=Ie.document,Xe=P.data,dt=P.annotations,kt={};return Xe&&(kt.data=Xe),dt&&(kt.annotations=dt.map(function(dn){return dn.isSet?dn:Ue.resolveAnnotation(dn)})),oe=oe.merge(kt),oe}},{key:"setSelection",value:function(P){var oe=this,Ie=oe,Ue=Ie.document,Xe=Ie.selection,dt=Xe.setProperties(P);return Xe=Ue.resolveSelection(dt),oe=oe.set("selection",Xe),oe}},{key:"splitNode",value:function(P,oe,Ie){var Ue=this,Xe=Ue,dt=Xe.document,kt=dt.splitNode(P,oe,Ie),dn=dt.assertNode(P);return Ue=Ue.set("document",kt),Ue=Ue.mapRanges(function(Vn){var qn=kt.getNextText(dn.key),yr=Vn,ci=yr.anchor,hi=yr.focus;return dn.key===ci.key&&oe<=ci.offset&&(Vn=Vn.moveAnchorTo(qn.key,ci.offset-oe)),dn.key===hi.key&&oe<=hi.offset&&(Vn=Vn.moveFocusTo(qn.key,hi.offset-oe)),Vn=Vn.updatePoints(function(Ti){return Ti.setPath(null)}),Vn}),Ue}},{key:"mapRanges",value:function(P){var oe=this,Ie=oe,Ue=Ie.document,Xe=Ie.selection,dt=Ie.annotations,kt=Xe.isSet?P(Xe):Xe;kt||(kt=Xe.unset()),kt!==Xe&&(kt=Ue.createSelection(kt)),oe=oe.set("selection",kt);var dn=dt.map(function(Vn){var qn=Vn.isSet?P(Vn):Vn;return qn&&qn!==Vn&&(qn=Ue.createAnnotation(qn)),qn});return dn=dn.filter(function(Vn){return!!Vn}),oe=oe.set("annotations",dn),oe}},{key:"mapPoints",value:function(P){return this.mapRanges(function(oe){return oe.updatePoints(P)})}},{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,document:this.document.toJSON(P)};return P.preserveData&&(oe.data=this.data.toJSON(P)),P.preserveAnnotations&&(oe.annotations=this.annotations.map(function(Ie){return Ie.toJSON(P)}).toObject()),P.preserveSelection&&(oe.selection=this.selection.toJSON(P)),oe}},{key:"change",value:function(){(0,h.A)(!1,"As of Slate 0.42.0, value object are no longer schema-aware, and the `value.change()` method is no longer available. Use the `editor.change()` method on the new `Editor` controller instead.")}},{key:"startBlock",get:function(){return this.selection.start.key&&this.document.getClosestBlock(this.selection.start.key)}},{key:"endBlock",get:function(){return this.selection.end.key&&this.document.getClosestBlock(this.selection.end.key)}},{key:"anchorBlock",get:function(){return this.selection.anchor.key&&this.document.getClosestBlock(this.selection.anchor.key)}},{key:"focusBlock",get:function(){return this.selection.focus.key&&this.document.getClosestBlock(this.selection.focus.key)}},{key:"startInline",get:function(){return this.selection.start.key&&this.document.getClosestInline(this.selection.start.key)}},{key:"endInline",get:function(){return this.selection.end.key&&this.document.getClosestInline(this.selection.end.key)}},{key:"anchorInline",get:function(){return this.selection.anchor.key&&this.document.getClosestInline(this.selection.anchor.key)}},{key:"focusInline",get:function(){return this.selection.focus.key&&this.document.getClosestInline(this.selection.focus.key)}},{key:"startText",get:function(){return this.selection.start.key&&this.document.getDescendant(this.selection.start.key)}},{key:"endText",get:function(){return this.selection.end.key&&this.document.getDescendant(this.selection.end.key)}},{key:"anchorText",get:function(){return this.selection.anchor.key&&this.document.getDescendant(this.selection.anchor.key)}},{key:"focusText",get:function(){return this.selection.focus.key&&this.document.getDescendant(this.selection.focus.key)}},{key:"nextBlock",get:function(){return this.selection.end.key&&this.document.getNextBlock(this.selection.end.key)}},{key:"previousBlock",get:function(){return this.selection.start.key&&this.document.getPreviousBlock(this.selection.start.key)}},{key:"nextInline",get:function(){return this.selection.end.key&&this.document.getNextInline(this.selection.end.key)}},{key:"previousInline",get:function(){return this.selection.start.key&&this.document.getPreviousInline(this.selection.start.key)}},{key:"nextText",get:function(){return this.selection.end.key&&this.document.getNextText(this.selection.end.key)}},{key:"previousText",get:function(){return this.selection.start.key&&this.document.getPreviousText(this.selection.start.key)}},{key:"marks",get:function(){return this.selection.isUnset?new l.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new l.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new l.List:this.document.getLeafBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?Cn.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new l.List:this.document.getLeafInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new l.List:this.document.getTextsAtRange(this.selection)}},{key:"history",get:function(){(0,h.A)(!1,"As of Slate 0.42.0, the `value.history` model no longer exists, and the history is stored in `value.data` instead using plugins.")}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Y.isValue(P))return P;if(y()(P))return Y.fromJSON(P,oe);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+P)}},{key:"createProperties",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isValue(P))return{annotations:P.annotations,data:P.data};if(y()(P)){var oe={};return"annotations"in P&&(oe.annotations=on.createMap(P.annotations)),"data"in P&&(oe.data=ge.create(P.data)),oe}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.data,Ie=oe===void 0?{}:oe,Ue=P.annotations,Xe=Ue===void 0?{}:Ue,dt=P.document,kt=dt===void 0?{}:dt,dn=P.selection,Vn=dn===void 0?{}:dn;if(Ie=ge.fromJSON(Ie),kt=Cn.fromJSON(kt),Vn=kt.createSelection(Vn),Xe=on.createMap(Xe),Vn.isUnset){var qn=kt.getFirstText();qn&&(Vn=Vn.moveToStartOfNode(qn)),Vn=kt.createSelection(Vn)}var yr=new Y({annotations:Xe,data:Ie,document:kt,selection:Vn});return yr}}]),Y}((0,l.Record)(kr)),ne=v()("slate:operation:apply");function fe(V,Y){Y=ln.create(Y);var D=Y,P=D.type;switch(ne(P,Y),P){case"add_annotation":{var oe=Y,Ie=oe.annotation,Ue=V.addAnnotation(Ie);return Ue}case"add_mark":{var Xe=Y,dt=Xe.path,kt=Xe.mark,dn=V.addMark(dt,kt);return dn}case"insert_node":{var Vn=Y,qn=Vn.path,yr=Vn.node,ci=V.insertNode(qn,yr);return ci}case"insert_text":{var hi=Y,Ti=hi.path,Vi=hi.offset,Di=hi.text,Pi=hi.marks,mt=V.insertText(Ti,Vi,Di,Pi);return mt}case"merge_node":{var tn=Y,or=tn.path,rt=V.mergeNode(or);return rt}case"move_node":{var St=Y,_n=St.path,vn=St.newPath,Ln=V.moveNode(_n,vn);return Ln}case"remove_annotation":{var _r=Y,Br=_r.annotation,Kr=V.removeAnnotation(Br);return Kr}case"remove_mark":{var Jr=Y,ii=Jr.path,le=Jr.mark,Ae=V.removeMark(ii,le);return Ae}case"remove_node":{var Oe=Y,et=Oe.path,Ot=V.removeNode(et);return Ot}case"remove_text":{var It=Y,Mn=It.path,mn=It.offset,At=It.text,Ut=V.removeText(Mn,mn,At);return Ut}case"set_annotation":{var jn=Y,Jt=jn.properties,dr=jn.newProperties,wr=V.setAnnotation(Jt,dr);return wr}case"set_mark":{var Hr=Y,Ar=Hr.path,yi=Hr.properties,Rr=Hr.newProperties,si=V.setMark(Ar,yi,Rr);return si}case"set_node":{var Si=Y,$i=Si.path,Hi=Si.newProperties,Oa=V.setNode($i,Hi);return Oa}case"set_selection":{var Ma=Y,Ua=Ma.newProperties,Xa=V.setSelection(Ua);return Xa}case"set_value":{var Na=Y,za=Na.newProperties,qa=V.setProperties(za);return qa}case"split_node":{var no=Y,wo=no.path,go=no.position,Ka=no.properties,Ia=V.splitNode(wo,go,Ka);return Ia}default:throw new Error('Unknown operation type: "'+P+'".')}}var K=v()("slate:operation:invert");function he(V){V=ln.create(V);var Y=V,D=Y.type;switch(K(D,V),D){case"move_node":{var P=V,oe=P.newPath,Ie=P.path;if(ke.isEqual(oe,Ie))return V;var Ue=ke.transform(Ie,V).first(),Xe=ke.transform(ke.increment(Ie),V).first(),dt=V.set("path",Ue).set("newPath",Xe);return dt}case"merge_node":{var kt=V,dn=kt.path,Vn=ke.decrement(dn),qn=V.set("type","split_node").set("path",Vn);return qn}case"split_node":{var yr=V,ci=yr.path,hi=ke.increment(ci),Ti=V.set("type","merge_node").set("path",hi);return Ti}case"set_annotation":case"set_node":case"set_value":case"set_selection":case"set_mark":{var Vi=V,Di=Vi.properties,Pi=Vi.newProperties,mt=V.set("properties",Pi).set("newProperties",Di);return mt}case"insert_node":case"insert_text":{var tn=V.set("type",D.replace("insert_","remove_"));return tn}case"remove_node":case"remove_text":{var or=V.set("type",D.replace("remove_","insert_"));return or}case"add_annotation":case"add_mark":{var rt=V.set("type",D.replace("add_","remove_"));return rt}case"remove_annotation":case"remove_mark":{var St=V.set("type",D.replace("remove_","add_"));return St}default:throw new Error('Unknown operation type: "'+D+'".')}}var Fe={add_mark:["path","mark","data"],add_annotation:["annotation","data"],insert_node:["path","node","data"],insert_text:["path","offset","text","data"],merge_node:["path","position","properties","target","data"],move_node:["path","newPath","data"],remove_annotation:["annotation","data"],remove_mark:["path","mark","data"],remove_node:["path","node","data"],remove_text:["path","offset","text","data"],set_annotation:["properties","newProperties","data"],set_mark:["path","properties","newProperties","data"],set_node:["path","properties","newProperties","data"],set_selection:["properties","newProperties","data"],set_value:["properties","newProperties","data"],split_node:["path","position","properties","target","data"]},Nt={annotation:void 0,data:void 0,length:void 0,mark:void 0,marks:void 0,newPath:void 0,newProperties:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,target:void 0,text:void 0,type:void 0},ln=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"apply",value:function(P){var oe=fe(P,this);return oe}},{key:"invert",value:function(){var P=he(this);return P}},{key:"toJSON",value:function(){var P=this.object,oe=this.type,Ie={object:P,type:oe},Ue=Fe[oe],Xe=!0,dt=!1,kt=void 0;try{for(var dn=Ue[Symbol.iterator](),Vn;!(Xe=(Vn=dn.next()).done);Xe=!0){var qn=Vn.value,yr=this[qn];if((qn==="annotation"||qn==="mark"||qn==="marks"||qn==="node"||qn==="path"||qn==="newPath")&&(yr=yr.toJSON()),qn==="properties"&&oe==="merge_node"){var ci={};"data"in yr&&(ci.data=yr.data.toJS()),"type"in yr&&(ci.type=yr.type),yr=ci}if((qn==="properties"||qn==="newProperties")&&oe==="set_annotation"){var hi={};"anchor"in yr&&(hi.anchor=yr.anchor.toJS()),"focus"in yr&&(hi.focus=yr.focus.toJS()),"key"in yr&&(hi.key=yr.key),"data"in yr&&(hi.data=yr.data.toJS()),"type"in yr&&(hi.type=yr.type),yr=hi}if((qn==="properties"||qn==="newProperties")&&oe==="set_mark"){var Ti={};"data"in yr&&(Ti.data=yr.data.toJS()),"type"in yr&&(Ti.type=yr.type),yr=Ti}if((qn==="properties"||qn==="newProperties")&&oe==="set_node"){var Vi={};"data"in yr&&(Vi.data=yr.data.toJS()),"type"in yr&&(Vi.type=yr.type),yr=Vi}if((qn==="properties"||qn==="newProperties")&&oe==="set_selection"){var Di={};"anchor"in yr&&(Di.anchor=yr.anchor.toJSON()),"focus"in yr&&(Di.focus=yr.focus.toJSON()),"isFocused"in yr&&(Di.isFocused=yr.isFocused),"marks"in yr&&(Di.marks=yr.marks&&yr.marks.toJSON()),yr=Di}if((qn==="properties"||qn==="newProperties")&&oe==="set_value"){var Pi={};"data"in yr&&(Pi.data=yr.data.toJS()),yr=Pi}if(qn==="properties"&&oe==="split_node"){var mt={};"data"in yr&&(mt.data=yr.data.toJS()),"type"in yr&&(mt.type=yr.type),yr=mt}qn==="data"&&(yr=yr.toJSON()),Ie[qn]=yr}}catch(tn){dt=!0,kt=tn}finally{try{!Xe&&dn.return&&dn.return()}finally{if(dt)throw kt}}return Ie}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isOperation(P))return P;if(y()(P))return Y.fromJSON(P);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+P)}},{key:"createList",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(P)||Array.isArray(P)){var oe=new l.List(P.map(Y.create));return oe}throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+P)}},{key:"fromJSON",value:function(P){if(Y.isOperation(P))return P;var oe=P.type,Ie=Fe[oe],Ue={type:oe};if(!Ie)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+oe+'"');var Xe=!0,dt=!1,kt=void 0;try{for(var dn=Ie[Symbol.iterator](),Vn;!(Xe=(Vn=dn.next()).done);Xe=!0){var qn=Vn.value,yr=P[qn];if(qn==="data"&&yr===void 0&&(yr={}),yr===void 0)throw new Error('`Operation.fromJSON` was passed a "'+oe+'" operation without the required "'+qn+'" attribute.');qn==="annotation"&&(yr=on.create(yr)),(qn==="path"||qn==="newPath")&&(yr=ke.create(yr)),qn==="mark"&&(yr=lt.create(yr)),qn==="node"&&(yr=kn.create(yr)),(qn==="properties"||qn==="newProperties")&&oe==="set_annotation"&&(yr=on.createProperties(yr)),(qn==="properties"||qn==="newProperties")&&oe==="set_mark"&&(yr=lt.createProperties(yr)),(qn==="properties"||qn==="newProperties")&&(oe==="set_node"||oe==="merge_node"||oe==="split_node")&&(yr=kn.createProperties(yr)),(qn==="properties"||qn==="newProperties")&&oe==="set_selection"&&(yr=nn.createProperties(yr)),(qn==="properties"||qn==="newProperties")&&oe==="set_value"&&(yr=bt.createProperties(yr)),qn==="data"&&(yr=(0,l.Map)(yr)),Ue[qn]=yr}}catch(hi){dt=!0,kt=hi}finally{try{!Xe&&dn.return&&dn.return()}finally{if(dt)throw kt}}var ci=new Y(Ue);return ci}},{key:"isOperationList",value:function(P){return l.List.isList(P)&&P.every(function(oe){return Y.isOperation(oe)})}}]),Y}((0,l.Record)(Nt)),pn={operations:void 0,value:void 0},Yn=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"toJSON",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe={object:this.object,value:this.value.toJSON(P),operations:this.operations.toArray().map(function(Ie){return Ie.toJSON(P)})};return oe}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y.isChange(P))return P;if(y()(P))return Y.fromJSON(P);throw new Error("`Change.create` only accepts objects or changes, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.value,Ie=P.operations,Ue=Ie===void 0?[]:Ie,Xe=new Y({value:bt.create(oe),operations:ln.createList(Ue)});return Xe}}]),Y}((0,l.Record)(pn));function ht(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function Y(P,oe,Ie){var Ue=P.type,Xe=P.args,dt=V[Ue];if(!dt)return Ie();oe.command.apply(oe,[dt].concat(B(Xe)))}function D(P,oe){for(var Ie in V)P.registerCommand(Ie);return oe()}return{onCommand:Y,onConstruct:D}}var De=55296,we=57343,Ke=/\s/,be=/['\u2018\u2019]/,pt=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function We(V){return De<=V&&V<=we}function Je(V,Y,D){if(V===55356){var P=Y.charCodeAt(D+1);return P<=57343&&P>=57339}return!1}function ye(V){return V<=65039&&V>=65024}function Qe(V){return V===10084||V===9794||V===9792||V===9760||V===9877||V===9992||V===9711}function ze(V,Y){if(Ke.test(V))return!1;if(be.test(V)){var D=Y.charAt(0),P=qe(D);D=Y.slice(0,P);var oe=Y.slice(P);if(ze(D,oe))return!0}return!pt.test(V)}function qe(V){return We(V.charCodeAt(0))?2:1}function Pt(V,Y,D){var P=0;if(V==="")return 1;for(var oe=0;oe<Y;oe++)for(var Ie=null,Ue=V.charCodeAt(P);Ue;){if(We(Ue)){var Xe=Je(Ue,V,P);if(D){if(!Xe&&Ie&&Ie!=="ZWJ"||Xe&&Ie&&Ie!=="SURR")break}else if(Ie==="SURR"||Ie==="BMP")break;P+=2,Ie=Xe?"MOD":"SURR",Ue=V.charCodeAt(P);continue}if(Ue===8205){P+=1,Ie="ZWJ",Ue=V.charCodeAt(P);continue}if(Qe(Ue)){if(D&&Ie==="VAR"||Ie&&Ie!=="ZWJ"&&Ie!=="VAR")break;P+=1,Ie="BMP",Ue=V.charCodeAt(P);continue}if(ye(Ue)){if(!D&&Ie&&Ie!=="ZWJ")break;P+=1,Ie="VAR",Ue=V.charCodeAt(P);continue}if(D){var dt=V.charCodeAt(P+1);if(Je(dt,V,P+1)){P+=3,Ie="MOD",Ue=V.charCodeAt(P);continue}}else if(Ie==="MOD"){P+=1;break}Ie===null&&(P+=1);break}return P}function zt(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return V=V.slice(0,Y),V=(0,m.reverse)(V),Pt(V,D)}function un(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return V=V.slice(Y),Pt(V,D,!0)}function hn(V){for(var Y=0,D=0,P=!1,oe=void 0;oe=V.charAt(D);){var Ie=qe(oe);oe=V.slice(D,D+Ie);var Ue=V.slice(D+Ie);if(ze(oe,Ue))P=!0,Y+=Ie;else if(!P)Y+=Ie;else break;D+=Ie}return Y}function xt(V,Y){V=V.slice(0,Y),V=(0,m.reverse)(V);var D=hn(V);return D}function _t(V,Y){V=V.slice(Y);var D=hn(V);return D}var qt={getCharLength:qe,getCharOffset:Pt,getCharOffsetBackward:zt,getCharOffsetForward:un,getWordOffset:hn,getWordOffsetBackward:xt,getWordOffsetForward:_t,isSurrogate:We,isWord:ze};function fn(V,Y){Y.isExpanded&&V.deleteAtRange(Y);var D=V.value,P=D.document,oe=Y,Ie=oe.start,Ue=oe.end;return P.hasDescendant(Ie.path)?Y=Y.moveToStart():Y=Y.moveTo(Ue.path,0).normalize(P),Y}var On={};On.addMarkAtRange=function(V,Y,D){if(!Y.isCollapsed){var P=V.value,oe=P.document,Ie=Y.start,Ue=Y.end,Xe=oe.getTextsAtRange(Y);V.withoutNormalizing(function(){Xe.forEach(function(dt){var kt=dt.key,dn=0,Vn=dt.text.length;kt===Ie.key&&(dn=Ie.offset),kt===Ue.key&&(Vn=Ue.offset),kt===Ie.key&&kt===Ue.key&&(Vn=Ue.offset-Ie.offset),V.addMarkByKey(kt,dn,Vn,D)})})}},On.addMarksAtRange=function(V,Y,D){D.forEach(function(P){return V.addMarkAtRange(Y,P)})},On.deleteAtRange=function(V,Y){V.snapshotSelection();var D=V.value,P=Y.start,oe=Y.end,Ie=P.key,Ue=P.offset,Xe=oe.key,dt=oe.offset,kt=D.document,dn=kt.hasVoidParent(Ie,V),Vn=kt.hasVoidParent(Xe,V),qn=kt.getClosestBlock(Ie),yr=kt.getClosestBlock(Xe),ci=Ue===0&&dt===0&&dn===!1&&Ie===qn.getFirstText().key&&Xe===yr.getFirstText().key&&Ie!==Xe;if(ci&&Vn){var hi=kt.getPreviousText(Xe);Xe=hi.key,dt=hi.text.length,Vn=kt.hasVoidParent(Xe,V)}V.withoutNormalizing(function(){for(;dn;){var Ti=kt.getClosestVoid(Ie,V),Vi=kt.getNextText(Ie);if(V.removeNodeByKey(Ti.key),Ie===Xe||!Vi)return;kt=V.value.document,Ie=Vi.key,Ue=0,dn=kt.hasVoidParent(Ie,V)}for(;Vn;){var Di=kt.getClosestVoid(Xe,V),Pi=kt.getPreviousText(Xe);V.removeNodeByKey(Di.key),kt=V.value.document,Xe=Pi.key,dt=Pi.text.length,Vn=kt.hasVoidParent(Xe,V)}if(Ie===Xe&&ci){V.removeNodeByKey(qn.key);return}else if(Ie===Xe){var mt=Ue,tn=dt-Ue;V.removeTextByKey(Ie,mt,tn);return}else{qn=kt.getClosestBlock(Ie),yr=kt.getClosestBlock(Xe);var or=kt.getNode(Ie),rt=kt.getNode(Xe),St=or.text.length-Ue,_n=dt,vn=kt.getCommonAncestor(Ie,Xe),Ln=vn.getFurthestChild(Ie),_r=vn.getFurthestChild(Xe),Br=kt.getParent(qn.key),Kr=Br.nodes.indexOf(qn),Jr=Br.nodes.indexOf(yr),ii=void 0;for(ii=or;ii.key!==Ln.key;){var le=kt.getParent(ii.key),Ae=le.nodes.indexOf(ii),Oe=le.nodes.slice(Ae+1);Oe.reverse().forEach(function(si){V.removeNodeByKey(si.key)}),ii=le}var et=vn.nodes.indexOf(Ln),Ot=vn.nodes.indexOf(_r),It=vn.nodes.slice(et+1,Ot);for(It.reverse().forEach(function(si){V.removeNodeByKey(si.key)}),ii=rt;ii.key!==_r.key;){var Mn=kt.getParent(ii.key),mn=Mn.nodes.indexOf(ii),At=Mn.nodes.slice(0,mn);At.reverse().forEach(function(si){V.removeNodeByKey(si.key)}),ii=Mn}if(St!==0&&V.removeTextByKey(Ie,Ue,St),_n!==0&&V.removeTextByKey(Xe,0,dt),qn.key!==yr.key){kt=V.value.document;var Ut=void 0,jn=!0,Jt=!1,dr=void 0;try{for(var wr=kt.ancestors(yr.key)[Symbol.iterator](),Hr;!(jn=(Hr=wr.next()).done);jn=!0){var Ar=Hr.value,yi=T(Ar,1),Rr=yi[0];if(Rr.nodes.size>1)break;Ut=Rr}}catch(si){Jt=!0,dr=si}finally{try{!jn&&wr.return&&wr.return()}finally{if(Jt)throw dr}}Jr!==Kr+1&&V.moveNodeByKey(yr.key,Br.key,Kr+1),ci?V.removeNodeByKey(qn.key):V.mergeNodeByKey(yr.key),Ut&&V.removeNodeByKey(Ut.key)}}})},On.deleteBackwardAtRange=function(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(D!==0){var P=V.value,oe=P.document,Ie=Y,Ue=Ie.start,Xe=Ie.focus;if(Y.isExpanded){V.deleteAtRange(Y);return}var dt=oe.getClosestVoid(Ue.path,V);if(dt){V.removeNodeByKey(dt.key);return}if(!Ue.isAtStartOfNode(oe)){var kt=oe.getClosestBlock(Ue.path);if(oe.nodes.size!==1&&kt&&kt.text===""&&kt.nodes.size===1){V.removeNodeByKey(kt.key);return}var dn=oe.getDescendant(Ue.path);if(Ue.isAtStartOfNode(dn)){var Vn=oe.getPreviousText(dn.key),qn=oe.getClosestInline(dn.key);qn&&Vn.text===""&&(Vn=oe.getPreviousText(Vn.key));var yr=oe.getClosestBlock(Vn.key),ci=oe.getClosestVoid(Vn.key,V);if(ci){V.removeNodeByKey(ci.key);return}if(D===1&&yr!==kt){Y=Y.moveAnchorTo(Vn.key,Vn.text.length),V.deleteAtRange(Y);return}}if(D<=Xe.offset){Y=Y.moveFocusBackward(D),V.deleteAtRange(Y);return}for(var hi=dn,Ti=0,Vi=Xe.offset;D>Vi;){hi=oe.getPreviousText(hi.key);var Di=Vi+hi.text.length;if(D<=Di){Ti=Di-D;break}else Vi=Di}Y=Y.moveAnchorTo(hi.key,Ti),V.deleteAtRange(Y)}}},On.deleteCharBackwardAtRange=function(V,Y){if(Y.isExpanded){V.deleteAtRange(Y);return}var D=V.value,P=D.document,oe=Y.start,Ie=P.getClosestBlock(oe.path),Ue=Ie.getOffset(oe.key),Xe=Ue+oe.offset,dt=Ie.text,kt=qt.getCharOffsetBackward(dt,Xe);V.deleteBackwardAtRange(Y,kt)},On.deleteCharForwardAtRange=function(V,Y){if(Y.isExpanded){V.deleteAtRange(Y);return}var D=V.value,P=D.document,oe=Y.start,Ie=P.getClosestBlock(oe.path),Ue=Ie.getOffset(oe.key),Xe=Ue+oe.offset,dt=Ie.text,kt=qt.getCharOffsetForward(dt,Xe);V.deleteForwardAtRange(Y,kt)},On.deleteForwardAtRange=function(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(D!==0){var P=V.value,oe=P.document,Ie=Y,Ue=Ie.start,Xe=Ie.focus;if(Y.isExpanded){V.deleteAtRange(Y);return}var dt=oe.getClosestVoid(Ue.path,V);if(dt){V.removeNodeByKey(dt.key);return}var kt=oe.getClosestBlock(Ue.path);if(kt&&!V.isVoid(kt)&&kt.text===""&&oe.nodes.size!==1){var dn=oe.getNextBlock(kt.key);V.removeNodeByKey(kt.key),dn&&dn.key&&V.moveToStartOfNode(dn);return}if(!Ue.isAtEndOfNode(oe)){var Vn=oe.getDescendant(Ue.path);if(Ue.isAtEndOfNode(Vn)){var qn=oe.getNextText(Vn.key),yr=oe.getClosestBlock(qn.key),ci=oe.getClosestVoid(qn.key,V);if(ci){V.removeNodeByKey(ci.key);return}if(D===1&&yr!==kt){Y=Y.moveFocusTo(qn.key,0),V.deleteAtRange(Y);return}}if(D<=Vn.text.length-Xe.offset){Y=Y.moveFocusForward(D),V.deleteAtRange(Y);return}for(var hi=Vn,Ti=Xe.offset,Vi=Vn.text.length-Xe.offset;D>Vi;){hi=oe.getNextText(hi.key);var Di=Vi+hi.text.length;if(D<=Di){Ti=D-Vi;break}else Vi=Di}Y=Y.moveFocusTo(hi.key,Ti),V.deleteAtRange(Y)}}},On.deleteLineBackwardAtRange=function(V,Y){if(Y.isExpanded){V.deleteAtRange(Y);return}var D=V.value,P=D.document,oe=Y.start,Ie=P.getClosestBlock(oe.path),Ue=Ie.getOffset(oe.key),Xe=Ue+oe.offset;V.deleteBackwardAtRange(Y,Xe)},On.deleteLineForwardAtRange=function(V,Y){if(Y.isExpanded){V.deleteAtRange(Y);return}var D=V.value,P=D.document,oe=Y.start,Ie=P.getClosestBlock(oe.path),Ue=Ie.getOffset(oe.key),Xe=Ue+oe.offset;V.deleteForwardAtRange(Y,Ie.text.length-Xe)},On.deleteWordBackwardAtRange=function(V,Y){if(Y.isExpanded){V.deleteAtRange(Y);return}var D=V.value,P=D.document,oe=Y.start,Ie=P.getClosestBlock(oe.path),Ue=Ie.getOffset(oe.key),Xe=Ue+oe.offset,dt=Ie.text,kt=Xe===0?1:qt.getWordOffsetBackward(dt,Xe);V.deleteBackwardAtRange(Y,kt)},On.deleteWordForwardAtRange=function(V,Y){if(Y.isExpanded){V.deleteAtRange(Y);return}var D=V.value,P=D.document,oe=Y.start,Ie=P.getClosestBlock(oe.path),Ue=Ie.getOffset(oe.key),Xe=Ue+oe.offset,dt=Ie.text,kt=qt.getWordOffsetForward(dt,Xe),dn=kt===0?1:kt;V.deleteForwardAtRange(Y,dn)},On.insertBlockAtRange=function(V,Y,D){Y=fn(V,Y),D=Nn.create(D);var P=V.value,oe=P.document,Ie=Y,Ue=Ie.start,Xe=Ue.key,dt=Ue.offset,kt=oe.getClosestBlock(Xe),dn=oe.getClosestInline(Xe),Vn=oe.getParent(kt.key),qn=Vn.nodes.indexOf(kt),yr=Gn(V,Y);if(yr==="before")V.insertNodeByKey(Vn.key,qn,D);else if(yr==="behind")V.insertNodeByKey(Vn.key,qn+1,D);else{if(dn&&V.isVoid(dn)){var ci=Ue.isAtEndOfNode(dn),hi=ci?oe.getNextText(Xe):oe.getPreviousText(Xe),Ti=ci?Y.moveToStartOfNode(hi):Y.moveToEndOfNode(hi);Xe=Ti.start.key,dt=Ti.start.offset}V.withoutNormalizing(function(){V.splitDescendantsByKey(kt.key,Xe,dt),V.insertNodeByKey(Vn.key,qn+1,D)})}};var Gn=function(Y,D){var P=Y.value,oe=P.document,Ie=D.start,Ue=Ie.key,Xe=oe.getClosestBlock(Ue),dt=oe.getClosestInline(Ue);return Y.isVoid(Xe)?Ie.isAtEndOfNode(Xe)?"behind":"before":!dt&&Xe.text===""?"behind":Ie.isAtStartOfNode(Xe)?"before":Ie.isAtEndOfNode(Xe)?"behind":"split"};On.insertFragmentAtRange=function(V,Y,D){V.withoutNormalizing(function(){if(Y=fn(V,Y),!!D.nodes.size){D=D.mapDescendants(function(Kr){return Kr.regenerateKey()});var P=Y,oe=P.start,Ie=V.value,Ue=Ie.document,Xe=Ue.getDescendant(oe.path),dt=Ue.getClosestBlock(Xe.key),kt=dt.getFurthestChild(Xe.key),dn=oe.isAtStartOfNode(dt),Vn=Ue.getParent(dt.key),qn=Vn.nodes.indexOf(dt),yr=D.getBlocks(),ci=D.nodes.first(),hi=D.nodes.last(),Ti=yr.first(),Vi=yr.last(),Di=Bn(D,Ue,dt.key);if(Ti===Vi&&V.isVoid(Ti)){V.insertBlockAtRange(Y,Ti);return}if(Di===D&&(ci.hasBlockChildren()||hi.hasBlockChildren())){var Pi=Gn(V,Y),mt=Pi==="before"?D.nodes:D.nodes.reverse();mt.forEach(function(Kr){V.insertBlockAtRange(Y,Kr)});return}if(Ti!==Vi){var tn=Di.getFurthest(Ti.key,function(Kr){return Kr.nodes.size===1}),or=tn||Ti,rt=Vn.nodes.indexOf(dt),St=Di.removeNode(or.key);St.nodes.forEach(function(Kr,Jr){var ii=rt+Jr+1;V.insertNodeByKey(Vn.key,ii,Kr)})}if(oe.offset!==0&&V.splitDescendantsByKey(kt.key,oe.key,oe.offset),Ue=V.value.document,Xe=Ue.getDescendant(oe.key),dt=Ue.getClosestBlock(oe.key),kt=dt.getFurthestChild(Xe.key),Ti!==Vi){var _n=dn?kt:dt.getNextSibling(kt.key),vn=_n?dt.nodes.skipUntil(function(Kr){return Kr.key===_n.key}):(0,l.List)(),Ln=Vi.nodes.size;vn.forEach(function(Kr,Jr){var ii=Ln+Jr;V.moveNodeByKey(Kr.key,Vi.key,ii)})}if(!V.isVoid(dt)&&dt.text===""&&!dt.findDescendant(function(Kr){return V.isVoid(Kr)}))V.removeNodeByKey(dt.key),V.insertNodeByKey(Vn.key,qn,Ti);else{var _r=dt.getFurthestChild(Xe.key),Br=dt.nodes.indexOf(_r);Ti.nodes.forEach(function(Kr,Jr){var ii=oe.offset===0?0:1,le=Br+Jr+ii;V.insertNodeByKey(dt.key,le,Kr)})}}})};var Bn=function(Y,D,P){var oe=function(qn){for(var yr=qn;yr.nodes.size===1&&yr.nodes.first().object==="block";)yr=yr.nodes.first();return yr===qn?null:yr},Ie=function(qn,yr){return yr.size>=qn.size&&qn.every(function(ci,hi){return yr.get(hi).type===ci.type})},Ue=function(qn,yr){var ci=qn.size-yr.size;if(ci<0)return Y;for(var hi=0;hi<yr.size;hi++)for(var Ti=0;Ti<=ci;Ti++)if(Ie(yr.slice(hi),qn.slice(Ti)))return yr.get(hi);return Y},Xe=function(qn,yr){return qn.getAncestors(yr).slice(1).push(qn.getNode(yr)).reverse()},dt=oe(Y);if(!dt)return Y;var kt=Xe(D,P),dn=Xe(Y,dt.key);return Ue(kt,dn)};On.insertInlineAtRange=function(V,Y,D){D=er.create(D),V.withoutNormalizing(function(){Y=fn(V,Y);var P=V.value,oe=P.document,Ie=Y,Ue=Ie.start,Xe=oe.getParent(Ue.path),dt=oe.assertDescendant(Ue.path),kt=Xe.nodes.indexOf(dt);V.isVoid(Xe)||(V.splitNodeByPath(Ue.path,Ue.offset),V.insertNodeByKey(Xe.key,kt+1,D))})},On.insertTextAtRange=function(V,Y,D,P){V.withoutNormalizing(function(){Y=fn(V,Y);var oe=V.value,Ie=oe.document,Ue=Y,Xe=Ue.start,dt=Xe.offset,kt=Ie.getParent(Xe.path);V.isVoid(kt)||V.insertTextByPath(Xe.path,dt,D,P)})},On.removeMarkAtRange=function(V,Y,D){if(!Y.isCollapsed){var P=V.value,oe=P.document,Ie=oe.getTextsAtRange(Y),Ue=Y.start,Xe=Y.end;V.withoutNormalizing(function(){Ie.forEach(function(dt){var kt=dt.key,dn=0,Vn=dt.text.length;kt===Ue.key&&(dn=Ue.offset),kt===Xe.key&&(Vn=Xe.offset),kt===Ue.key&&kt===Xe.key&&(Vn=Xe.offset-Ue.offset),V.removeMarkByKey(kt,dn,Vn,D)})})}},On.setBlocksAtRange=function(V,Y,D){var P=V.value,oe=P.document,Ie=oe.getLeafBlocksAtRange(Y),Ue=Y.start,Xe=Y.end,dt=Y.isCollapsed,kt=oe.hasVoidParent(Ue.path,V),dn=oe.getClosestBlock(Ue.path),Vn=oe.getClosestBlock(Xe.key),qn=dt===!1&&Ue.offset===0&&Xe.offset===0&&kt===!1&&Ue.key===dn.getFirstText().key&&Xe.key===Vn.getFirstText().key,yr=qn?Ie.slice(0,-1):Ie;V.withoutNormalizing(function(){yr.forEach(function(ci){V.setNodeByKey(ci.key,D)})})},On.setInlinesAtRange=function(V,Y,D){var P=V.value,oe=P.document,Ie=oe.getLeafInlinesAtRange(Y);V.withoutNormalizing(function(){Ie.forEach(function(Ue){V.setNodeByKey(Ue.key,D)})})},On.splitBlockAtRange=function(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;Y=fn(V,Y);for(var P=Y,oe=P.start,Ie=P.end,Ue=V.value,Xe=Ue,dt=Xe.document,kt=dt.assertDescendant(oe.path),dn=dt.getClosestBlock(kt.key),Vn=0;dn&&dn.object==="block"&&Vn<D;)kt=dn,dn=dt.getClosestBlock(dn.key),Vn++;V.withoutNormalizing(function(){if(V.splitDescendantsByKey(kt.key,oe.path,oe.offset),Ue=V.value,dt=Ue.document,Y.isExpanded){Y.isBackward&&(Y=Y.flip());var qn=dt.getNextBlock(kt.key);Y=Y.moveAnchorToStartOfNode(qn),Y=Y.setFocus(Y.focus.setPath(null)),oe.path.equals(Ie.path)&&(Y=Y.moveFocusTo(Y.anchor.key,Ie.offset-oe.offset)),Y=dt.resolveRange(Y),V.deleteAtRange(Y)}})},On.splitInlineAtRange=function(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1/0;Y=fn(V,Y);for(var P=Y,oe=P.start,Ie=V.value,Ue=Ie.document,Xe=Ue.assertDescendant(oe.path),dt=Ue.getClosestInline(Xe.key),kt=0;dt&&dt.object==="inline"&&kt<D;)Xe=dt,dt=Ue.getClosestInline(dt.key),kt++;V.splitDescendantsByKey(Xe.key,oe.path,oe.offset)},On.toggleMarkAtRange=function(V,Y,D){if(!Y.isCollapsed){D=lt.create(D);var P=V.value,oe=P.document,Ie=oe.getActiveMarksAtRange(Y),Ue=Ie.some(function(Xe){return Xe.equals(D)});Ue?V.removeMarkAtRange(Y,D):V.addMarkAtRange(Y,D)}},On.unwrapBlockAtRange=function(V,Y,D){D=kn.createProperties(D);var P=V.value,oe=P.document,Ie=oe.getLeafBlocksAtRange(Y),Ue=Ie.map(function(Xe){return oe.getClosest(Xe.key,function(dt){return!(dt.object!=="block"||D.type!=null&&dt.type!==D.type||D.data!=null&&!dt.data.isSuperset(D.data))})}).filter(function(Xe){return Xe}).toOrderedSet().toList();V.withoutNormalizing(function(){Ue.forEach(function(Xe){var dt=Xe.nodes.first(),kt=Xe.nodes.last(),dn=V.value.document.getParent(Xe.key),Vn=dn.nodes.indexOf(Xe),qn=Xe.nodes.filter(function(Ti){return Ie.some(function(Vi){return Ti===Vi||Ti.hasDescendant(Vi.key)})}),yr=qn.first(),ci=qn.last();if(dt===yr&&kt===ci)Xe.nodes.forEach(function(Ti,Vi){V.moveNodeByKey(Ti.key,dn.key,Vn+Vi)}),V.removeNodeByKey(Xe.key);else if(kt===ci)Xe.nodes.skipUntil(function(Ti){return Ti===yr}).forEach(function(Ti,Vi){V.moveNodeByKey(Ti.key,dn.key,Vn+1+Vi)});else if(dt===yr)Xe.nodes.takeUntil(function(Ti){return Ti===ci}).push(ci).forEach(function(Ti,Vi){V.moveNodeByKey(Ti.key,dn.key,Vn+Vi)});else{var hi=yr.getFirstText();V.splitDescendantsByKey(Xe.key,hi.key,0),oe=V.value.document,qn.forEach(function(Ti,Vi){if(Vi===0){var Di=Ti;Ti=oe.getNextBlock(Ti.key),V.removeNodeByKey(Di.key)}V.moveNodeByKey(Ti.key,dn.key,Vn+1+Vi)})}})})},On.unwrapInlineAtRange=function(V,Y,D){D=kn.createProperties(D);var P=V.value,oe=P.document,Ie=oe.getTextsAtRange(Y),Ue=Ie.map(function(Xe){return oe.getClosest(Xe.key,function(dt){return!(dt.object!=="inline"||D.type!=null&&dt.type!==D.type||D.data!=null&&!dt.data.isSuperset(D.data))})}).filter(function(Xe){return Xe}).toOrderedSet().toList();V.withoutNormalizing(function(){Ue.forEach(function(Xe){var dt=V.value.document.getParent(Xe.key),kt=dt.nodes.indexOf(Xe);Xe.nodes.forEach(function(dn,Vn){V.moveNodeByKey(dn.key,dt.key,kt+Vn)}),V.removeNodeByKey(Xe.key)})})},On.wrapBlockAtRange=function(V,Y,D){D=Nn.create(D),D=D.set("nodes",D.nodes.clear());var P=V.value,oe=P.document,Ie=oe.getLeafBlocksAtRange(Y),Ue=Ie.first(),Xe=Ie.last(),dt=void 0,kt=void 0,dn=void 0;if(Ie.length===1?(dt=oe.getParent(Ue.key),kt=Ie):dt=oe.getClosest(Ue.key,function(qn){return!!oe.getClosest(Xe.key,function(yr){return qn===yr})}),dt==null&&(dt=oe),kt==null){var Vn=dt.nodes.reduce(function(qn,yr,ci){return(yr===Ue||yr.hasDescendant(Ue.key))&&(qn[0]=ci),(yr===Xe||yr.hasDescendant(Xe.key))&&(qn[1]=ci),qn},[]);dn=Vn[0],kt=dt.nodes.slice(Vn[0],Vn[1]+1)}dn==null&&(dn=dt.nodes.indexOf(kt.first())),V.withoutNormalizing(function(){V.insertNodeByKey(dt.key,dn,D),kt.forEach(function(qn,yr){V.moveNodeByKey(qn.key,D.key,yr)})})},On.wrapInlineAtRange=function(V,Y,D){var P=V.value,oe=P.document,Ie=Y.start,Ue=Y.end;if(Y.isCollapsed){var Xe=oe.getClosestInline(Ie.path);return!Xe||!V.isVoid(Xe)?void 0:V.wrapInlineByKey(Xe.key,D)}D=er.create(D),D=D.set("nodes",D.nodes.clear());var dt=oe.getLeafBlocksAtRange(Y),kt=oe.getClosestBlock(Ie.path),dn=oe.getClosestBlock(Ue.path),Vn=oe.getClosestInline(Ie.path),qn=oe.getClosestInline(Ue.path),yr=kt.getFurthestChild(Ie.key),ci=dn.getFurthestChild(Ue.key);V.withoutNormalizing(function(){(!Vn||Vn!==qn)&&(V.splitDescendantsByKey(ci.key,Ue.key,Ue.offset),V.splitDescendantsByKey(yr.key,Ie.key,Ie.offset)),oe=V.value.document,kt=oe.getDescendant(kt.key),dn=oe.getDescendant(dn.key),yr=kt.getFurthestChild(Ie.key),ci=dn.getFurthestChild(Ue.key);var hi=kt.nodes.indexOf(yr),Ti=dn.nodes.indexOf(ci);if(Vn&&Vn===qn){var Vi=kt.getTextsAtRange(Y).map(function(Ln){return Ie.key===Ln.key&&Ue.key===Ln.key?Ln.splitText(Ie.offset)[1].splitText(Ue.offset-Ie.offset)[0].regenerateKey():Ie.key===Ln.key?Ln.splitText(Ie.offset)[1].regenerateKey():Ue.key===Ln.key?Ln.splitText(Ue.offset)[0].regenerateKey():Ln.regenerateKey()});D=D.set("nodes",Vi),V.insertInlineAtRange(Y,D)}else if(kt===dn){oe=V.value.document,kt=oe.getClosestBlock(Ie.key),yr=kt.getFurthestChild(Ie.key);var Di=oe.getNextSibling(yr.key),Pi=kt.nodes.indexOf(Di),mt=Ie.key===Ue.key?Di:kt.getFurthestChild(Ue.key),tn=kt.nodes.skipUntil(function(Ln){return Ln===Di}).takeUntil(function(Ln){return Ln===mt}).push(mt),or=D.regenerateKey();V.insertNodeByKey(kt.key,Pi,or),tn.forEach(function(Ln,_r){V.moveNodeByKey(Ln.key,or.key,_r)})}else{var rt=kt.nodes.slice(hi+1),St=dn.nodes.slice(0,Ti+1),_n=D.regenerateKey(),vn=D.regenerateKey();V.insertNodeByKey(kt.key,hi+1,_n),V.insertNodeByKey(dn.key,Ti,vn),rt.forEach(function(Ln,_r){V.moveNodeByKey(Ln.key,_n.key,_r)}),St.forEach(function(Ln,_r){V.moveNodeByKey(Ln.key,vn.key,_r)}),dt.slice(1,-1).forEach(function(Ln){var _r=D.regenerateKey();V.insertNodeByKey(Ln.key,0,_r),Ln.nodes.forEach(function(Br,Kr){V.moveNodeByKey(Br.key,_r.key,Kr)})})}})},On.wrapTextAtRange=function(V,Y,D){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:D,oe=Y.start,Ie=Y.end,Ue=Y.moveToStart(),Xe=Y.moveToEnd();oe.path.equals(Ie.path)&&(Xe=Xe.moveForward(D.length)),V.withoutNormalizing(function(){V.insertTextAtRange(Ue,D),V.insertTextAtRange(Xe,P)})};var Lr={};Lr.addMarkByPath=function(V,Y,D,P,oe){oe=lt.create(oe),V.addMarksByPath(Y,D,P,[oe])},Lr.addMarksByPath=function(V,Y,D,P,oe){if(oe=lt.createSet(oe),!!oe.size){var Ie=V.value,Ue=Ie.document,Xe=Ue.assertNode(Y);V.withoutNormalizing(function(){D+P<Xe.text.length&&V.splitNodeByPath(Y,D+P),D>0&&(V.splitNodeByPath(Y,D),Y=ke.increment(Y),D=0),oe.forEach(function(dt){V.applyOperation({type:"add_mark",path:Y,mark:lt.create(dt)})})})}},Lr.replaceMarksByPath=function(V,Y,D,P,oe){var Ie=lt.createSet(oe),Ue=V.value,Xe=Ue.document,dt=Xe.assertNode(Y);dt.marks.equals(Ie)||V.withoutNormalizing(function(){D+P<dt.text.length&&V.splitNodeByPath(Y,D+P),D>0&&(V.splitNodeByPath(Y,D),Y=ke.increment(Y),D=0);var kt=Ie.subtract(dt.marks),dn=dt.marks.subtract(Ie);dn.forEach(function(Vn){V.applyOperation({type:"remove_mark",path:Y,mark:lt.create(Vn)})}),kt.forEach(function(Vn){V.applyOperation({type:"add_mark",path:Y,mark:lt.create(Vn)})})})},Lr.insertFragmentByPath=function(V,Y,D,P){P.nodes.forEach(function(oe,Ie){V.insertNodeByPath(Y,D+Ie,oe)})},Lr.insertNodeByPath=function(V,Y,D,P){V.applyOperation({type:"insert_node",path:Y.concat(D),node:P})},Lr.insertTextByPath=function(V,Y,D,P,oe){var Ie=V.value,Ue=Ie.annotations,Xe=Ie.document;Xe.assertNode(Y),V.withoutNormalizing(function(){var dt=!0,kt=!1,dn=void 0;try{for(var Vn=Ue.values()[Symbol.iterator](),qn;!(dt=(qn=Vn.next()).done);dt=!0){var yr=qn.value,ci=yr.start,hi=yr.end,Ti=V.isAtomic(yr);Ti&&ci.path.equals(Y)&&ci.offset<D&&(!hi.path.equals(Y)||hi.offset>D)&&V.removeAnnotation(yr)}}catch(Vi){kt=!0,dn=Vi}finally{try{!dt&&Vn.return&&Vn.return()}finally{if(kt)throw dn}}V.applyOperation({type:"insert_text",path:Y,offset:D,text:P}),oe&&V.replaceMarksByPath(Y,D,P.length,oe)})},Lr.mergeNodeByPath=function(V,Y){var D=V.value,P=D.document,oe=P.getDescendant(Y),Ie=P.getPreviousSibling(Y);if(!Ie)throw new Error('Unable to merge node with path "'+Y+'", because it has no previous sibling.');var Ue=Ie.object==="text"?Ie.text.length:Ie.nodes.size;V.applyOperation({type:"merge_node",path:Y,position:Ue,properties:{type:oe.type,data:oe.data},target:null})},Lr.moveNodeByPath=function(V,Y,D,P){if(ke.isEqual(Y,D))return V;var oe=D.concat(P);if(ke.isEqual(Y,oe))return V;V.applyOperation({type:"move_node",path:Y,newPath:oe})},Lr.removeMarkByPath=function(V,Y,D,P,oe){oe=lt.create(oe),V.removeMarksByPath(Y,D,P,[oe])},Lr.removeMarksByPath=function(V,Y,D,P,oe){if(oe=lt.createSet(oe),!!oe.size){var Ie=V.value,Ue=Ie.document,Xe=Ue.assertNode(Y);oe.intersect(Xe.marks).isEmpty()||V.withoutNormalizing(function(){D+P<Xe.text.length&&V.splitNodeByPath(Y,D+P),D>0&&(V.splitNodeByPath(Y,D),Y=ke.increment(Y),D=0),oe.forEach(function(dt){V.applyOperation({type:"remove_mark",path:Y,offset:D,length:P,mark:dt})})})}},Lr.removeAllMarksByPath=function(V,Y){var D=V.state,P=D.document,oe=P.assertNode(Y);V.withoutNormalizing(function(){if(oe.object==="text"){V.removeMarksByPath(Y,0,oe.text.length,oe.marks);return}var Ie=!0,Ue=!1,Xe=void 0;try{for(var dt=oe.texts()[Symbol.iterator](),kt;!(Ie=(kt=dt.next()).done);Ie=!0){var dn=kt.value,Vn=T(dn,2),qn=Vn[0],yr=Vn[1],ci=Y.concat(yr);V.removeMarksByPath(ci,0,qn.text.length,qn.marks)}}catch(hi){Ue=!0,Xe=hi}finally{try{!Ie&&dt.return&&dt.return()}finally{if(Ue)throw Xe}}})},Lr.removeNodeByPath=function(V,Y){var D=V.value,P=D.document,oe=P.assertNode(Y);V.applyOperation({type:"remove_node",path:Y,node:oe})},Lr.removeTextByPath=function(V,Y,D,P){var oe=V.value,Ie=oe.document,Ue=oe.annotations,Xe=Ie.assertNode(Y),dt=Xe.text.slice(D,D+P);V.withoutNormalizing(function(){var kt=!0,dn=!1,Vn=void 0;try{for(var qn=Ue.values()[Symbol.iterator](),yr;!(kt=(yr=qn.next()).done);kt=!0){var ci=yr.value,hi=ci.start,Ti=ci.end,Vi=V.isAtomic(ci);Vi&&hi.path.equals(Y)&&hi.offset<D&&(!Ti.path.equals(Y)||Ti.offset>D)&&V.removeAnnotation(ci)}}catch(Di){dn=!0,Vn=Di}finally{try{!kt&&qn.return&&qn.return()}finally{if(dn)throw Vn}}V.applyOperation({type:"remove_text",path:Y,offset:D,text:dt})})},Lr.replaceNodeByPath=function(V,Y,D){D=kn.create(D);var P=Y.last(),oe=ke.lift(Y);V.withoutNormalizing(function(){V.removeNodeByPath(Y),V.insertNodeByPath(oe,P,D)})},Lr.replaceTextByPath=function(V,Y,D,P,oe,Ie){V.withoutNormalizing(function(){V.removeTextByPath(Y,D,P),V.insertTextByPath(Y,D,oe,Ie)})},Lr.setMarkByPath=function(V,Y,D,P,oe,Ie){oe=lt.create(oe),Ie=lt.createProperties(Ie);var Ue=V.value,Xe=Ue.document,dt=Xe.assertNode(Y);V.withoutNormalizing(function(){D+P<dt.text.length&&V.splitNodeByPath(Y,D+P),D>0&&(V.splitNodeByPath(Y,D),Y=ke.increment(Y),D=0),V.applyOperation({type:"set_mark",path:Y,properties:oe,newProperties:Ie})})},Lr.setNodeByPath=function(V,Y,D){var P=V.value,oe=P.document,Ie=oe.assertNode(Y);D=kn.createProperties(D);var Ue=d()(Ie,Object.keys(D));V.applyOperation({type:"set_node",path:Y,properties:Ue,newProperties:D})},Lr.setTextByPath=function(V,Y,D,P){var oe=V.value,Ie=oe.document,Ue=Ie.assertNode(Y),Xe=Ue.text.length;V.replaceTextByPath(Y,0,Xe,D,P)},Lr.splitNodeByPath=function(V,Y,D){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},oe=P.target,Ie=oe===void 0?null:oe,Ue=V.value,Xe=Ue.document,dt=Xe.getDescendant(Y);V.applyOperation({type:"split_node",path:Y,position:D,target:Ie,properties:{type:dt.type,data:dt.data}})},Lr.splitDescendantsByPath=function(V,Y,D,P){if(Y.equals(D)){V.splitNodeByPath(D,P);return}var oe=V.value,Ie=oe.document,Ue=P,Xe=D;V.withoutNormalizing(function(){V.splitNodeByKey(D,P);var dt=!0,kt=!1,dn=void 0;try{for(var Vn=Ie.ancestors(D)[Symbol.iterator](),qn;!(dt=(qn=Vn.next()).done);dt=!0){var yr=qn.value,ci=T(yr,2),hi=ci[1],Ti=Ue;if(Ue=Xe.last()+1,Xe=hi,V.splitNodeByPath(hi,Ue,{target:Ti}),hi.equals(Y))break}}catch(Vi){kt=!0,dn=Vi}finally{try{!dt&&Vn.return&&Vn.return()}finally{if(kt)throw dn}}})},Lr.unwrapInlineByPath=function(V,Y,D){var P=V.value,oe=P.document,Ie=P.selection,Ue=oe.assertNode(Y),Xe=Ue.getFirstText(),dt=Ue.getLastText(),kt=Ie.moveToRangeOfNode(Xe,dt);V.unwrapInlineAtRange(kt,D)},Lr.unwrapBlockByPath=function(V,Y,D){var P=V.value,oe=P.document,Ie=P.selection,Ue=oe.assertNode(Y),Xe=Ue.getFirstText(),dt=Ue.getLastText(),kt=Ie.moveToRangeOfNode(Xe,dt);V.unwrapBlockAtRange(kt,D)},Lr.unwrapNodeByPath=function(V,Y){var D=V.value,P=D.document;P.assertNode(Y);var oe=ke.lift(Y),Ie=P.assertNode(oe),Ue=Y.last(),Xe=oe.last(),dt=ke.lift(oe),kt=Ue===0,dn=Ue===Ie.nodes.size-1;V.withoutNormalizing(function(){if(Ie.nodes.size===1)V.moveNodeByPath(Y,dt,Xe+1),V.removeNodeByPath(oe);else if(kt)V.moveNodeByPath(Y,dt,Xe);else if(dn)V.moveNodeByPath(Y,dt,Xe+1);else{var Vn=ke.increment(Y,1,oe.size-1);Vn=Vn.set(Vn.size-1,0),V.splitNodeByPath(oe,Ue),V.moveNodeByPath(Vn,dt,Xe+1)}})},Lr.unwrapChildrenByPath=function(V,Y){Y=ke.create(Y);var D=V.value,P=D.document,oe=P.assertNode(Y),Ie=ke.lift(Y),Ue=Y.last(),Xe=oe.nodes;V.withoutNormalizing(function(){Xe.reverse().forEach(function(dt,kt){var dn=Xe.size-kt-1,Vn=Y.push(dn);V.moveNodeByPath(Vn,Ie,Ue+1)}),V.removeNodeByPath(Y)})},Lr.wrapBlockByPath=function(V,Y,D){D=Nn.create(D),D=D.set("nodes",D.nodes.clear());var P=ke.lift(Y),oe=Y.last(),Ie=ke.increment(Y);V.withoutNormalizing(function(){V.insertNodeByPath(P,oe,D),V.moveNodeByPath(Ie,Y,0)})},Lr.wrapInlineByPath=function(V,Y,D){D=er.create(D),D=D.set("nodes",D.nodes.clear());var P=ke.lift(Y),oe=Y.last(),Ie=ke.increment(Y);V.withoutNormalizing(function(){V.insertNodeByPath(P,oe,D),V.moveNodeByPath(Ie,Y,0)})},Lr.wrapNodeByPath=function(V,Y,D){D=kn.create(D),D.object==="block"?V.wrapBlockByPath(Y,D):D.object==="inline"&&V.wrapInlineByPath(Y,D)};var An=["addMark","insertFragment","insertNode","insertText","mergeNode","removeAllMarks","removeMark","removeNode","removeText","replaceMarks","replaceNode","replaceText","setMark","setNode","setText","splitNode","unwrapBlock","unwrapChildren","unwrapInline","unwrapNode","wrapBlock","wrapInline","wrapNode"],Un=function(Y){Lr[Y+"ByKey"]=function(D,P){for(var oe=arguments.length,Ie=Array(oe>2?oe-2:0),Ue=2;Ue<oe;Ue++)Ie[Ue-2]=arguments[Ue];var Xe=D.value,dt=Xe.document,kt=dt.assertPath(P);D[Y+"ByPath"].apply(D,[kt].concat(Ie))}},cr=!0,mr=!1,hr=void 0;try{for(var ar=An[Symbol.iterator](),Cr;!(cr=(Cr=ar.next()).done);cr=!0){var Yr=Cr.value;Un(Yr)}}catch(V){mr=!0,hr=V}finally{try{!cr&&ar.return&&ar.return()}finally{if(mr)throw hr}}Lr.moveNodeByKey=function(V,Y,D){for(var P=arguments.length,oe=Array(P>3?P-3:0),Ie=3;Ie<P;Ie++)oe[Ie-3]=arguments[Ie];var Ue=V.value,Xe=Ue.document,dt=Xe.assertPath(Y),kt=Xe.assertPath(D);V.moveNodeByPath.apply(V,[dt,kt].concat(oe))},Lr.splitDescendantsByKey=function(V,Y,D){for(var P=arguments.length,oe=Array(P>3?P-3:0),Ie=3;Ie<P;Ie++)oe[Ie-3]=arguments[Ie];var Ue=V.value,Xe=Ue.document,dt=Xe.assertPath(Y),kt=Xe.assertPath(D);V.splitDescendantsByPath.apply(V,[dt,kt].concat(oe))};var Xr={};Xr.save=function(V,Y){var D=V.operations,P=V.value,oe=P.data,Ie=V.tmp,Ue=Ie.save,Xe=Ie.merge;if(!(Ue===!1||!ki(Y))){var dt=oe.get("undos")||(0,l.List)(),kt=dt.last(),dn=kt&&kt.last();if(Xe==null&&(D.size!==0?Xe=!0:Xe=ni(Y,dn)),Xe&&kt){var Vn=kt.push(Y);dt=dt.pop(),dt=dt.push(Vn)}else{var qn=(0,l.List)([Y]);dt=dt.push(qn)}dt.size>100&&(dt=dt.takeLast(100)),V.withoutSaving(function(){var yr=(0,l.List)(),ci=oe.set("undos",dt).set("redos",yr);V.setData(ci)})}},Xr.redo=function(V){var Y=V.value,D=Y.data,P=D.get("redos")||(0,l.List)(),oe=D.get("undos")||(0,l.List)(),Ie=P.last();Ie&&V.withoutSaving(function(){V.withoutNormalizing(function(){Ie.forEach(function(Xe){var dt=Xe,kt=dt.type,dn=dt.newProperties;kt==="set_selection"&&(Xe=Xe.set("newProperties",R()(dn,"isFocused"))),V.applyOperation(Xe)}),P=P.pop(),oe=oe.push(Ie);var Ue=D.set("undos",oe).set("redos",P);V.setData(Ue)})})},Xr.undo=function(V){var Y=V.value,D=Y.data,P=D.get("redos")||(0,l.List)(),oe=D.get("undos")||(0,l.List)(),Ie=oe.last();Ie&&V.withoutSaving(function(){V.withoutNormalizing(function(){Ie.slice().reverse().map(function(Xe){return Xe.invert()}).forEach(function(Xe){var dt=Xe,kt=dt.type,dn=dt.newProperties;kt==="set_selection"&&(Xe=Xe.set("newProperties",R()(dn,"isFocused"))),V.applyOperation(Xe)}),P=P.push(Ie),oe=oe.pop();var Ue=D.set("undos",oe).set("redos",P);V.setData(Ue)})})},Xr.withoutMerging=function(V,Y){var D=V.tmp.merge;V.tmp.merge=!1,Y(V),V.tmp.merge=D},Xr.withoutSaving=function(V,Y){var D=V.tmp.save;V.tmp.save=!1,Y(V),V.tmp.save=D};function ni(V,Y){if(!Y)return!1;var D=V.type==="set_selection"&&Y.type==="set_selection"||V.type==="insert_text"&&Y.type==="insert_text"&&V.offset===Y.offset+Y.text.length&&V.path.equals(Y.path)||V.type==="remove_text"&&Y.type==="remove_text"&&V.offset+V.text.length===Y.offset&&V.path.equals(Y.path);return D}function ki(V){if(V.type==="set_selection"){var Y=V.newProperties,D=Y.isFocused,P=Y.anchor,oe=Y.focus;if(D!==void 0&&!P&&!oe)return!1}return!0}var zr={};zr.blur=function(V){V.select({isFocused:!1})},zr.deselect=function(V){var Y=nn.create();V.select(Y)},zr.focus=function(V){V.select({isFocused:!0})},zr.flip=function(V){V.command(Ur,"flip")},zr.moveAnchorBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Rn,"anchor"].concat(D))},zr.moveAnchorWordBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Be,"anchor"].concat(D))},zr.moveAnchorForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[H,"anchor"].concat(D))},zr.moveAnchorWordForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[wn,"anchor"].concat(D))},zr.moveAnchorTo=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveAnchorTo"].concat(D))},zr.moveAnchorToEndOfBlock=function(V){V.command(jt,"anchor","end","block")},zr.moveAnchorToEndOfInline=function(V){V.command(jt,"anchor","end","inline")},zr.moveAnchorToEndOfDocument=function(V){V.moveAnchorToEndOfNode(V.value.document).moveToAnchor()},zr.moveAnchorToEndOfNextBlock=function(V){V.command(sn,"anchor","end","next","block")},zr.moveAnchorToEndOfNextInline=function(V){V.command(sn,"anchor","end","next","inline")},zr.moveAnchorToEndOfNextText=function(V){V.command(sn,"anchor","end","next","text")},zr.moveAnchorToEndOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveAnchorToEndOfNode"].concat(D))},zr.moveAnchorToEndOfPreviousBlock=function(V){V.command(sn,"anchor","end","previous","block")},zr.moveAnchorToEndOfPreviousInline=function(V){V.command(sn,"anchor","end","previous","inline")},zr.moveAnchorToEndOfPreviousText=function(V){V.command(sn,"anchor","end","previous","text")},zr.moveAnchorToEndOfText=function(V){V.command(jt,"anchor","end","text")},zr.moveAnchorToStartOfBlock=function(V){V.command(jt,"anchor","start","block")},zr.moveAnchorToStartOfDocument=function(V){V.moveAnchorToStartOfNode(V.value.document).moveToAnchor()},zr.moveAnchorToStartOfInline=function(V){V.command(jt,"anchor","start","inline")},zr.moveAnchorToStartOfNextBlock=function(V){V.command(sn,"anchor","start","next","block")},zr.moveAnchorToStartOfNextInline=function(V){V.command(sn,"anchor","start","next","inline")},zr.moveAnchorToStartOfNextText=function(V){V.command(sn,"anchor","start","next","text")},zr.moveAnchorToStartOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveAnchorToStartOfNode"].concat(D))},zr.moveAnchorToStartOfPreviousBlock=function(V){V.command(sn,"anchor","start","previous","block")},zr.moveAnchorToStartOfPreviousInline=function(V){V.command(sn,"anchor","start","previous","inline")},zr.moveAnchorToStartOfPreviousText=function(V){V.command(sn,"anchor","start","previous","text")},zr.moveAnchorToStartOfText=function(V){V.command(jt,"anchor","start","text")},zr.moveBackward=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(Y!==0){var D=V.value,P=D.document,oe=D.selection,Ie=oe.start,Ue=P.getClosestBlock(Ie.key),Xe=Ue.getOffset(Ie.key),dt=Xe+Ie.offset,kt=Ue.text,dn=qt.getCharOffsetBackward(kt,dt,Y);V.moveAnchorBackward(dn).moveFocusBackward(dn)}},zr.moveWordBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.moveFocusWordBackward.apply(V,D).moveToFocus()},zr.moveEndBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Rn,"end"].concat(D))},zr.moveEndWordBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Be,"end"].concat(D))},zr.moveEndForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[H,"end"].concat(D))},zr.moveEndWordForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[wn,"end"].concat(D))},zr.moveEndTo=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveEndTo"].concat(D))},zr.moveEndToEndOfBlock=function(V){V.command(jt,"end","end","block")},zr.moveEndToEndOfDocument=function(V){V.moveEndToEndOfNode(V.value.document).moveToEnd()},zr.moveEndToEndOfInline=function(V){V.command(jt,"end","end","inline")},zr.moveEndToEndOfNextBlock=function(V){V.command(sn,"end","end","next","block")},zr.moveEndToEndOfNextInline=function(V){V.command(sn,"end","end","next","inline")},zr.moveEndToEndOfNextText=function(V){V.command(sn,"end","end","next","text")},zr.moveEndToEndOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveEndToEndOfNode"].concat(D))},zr.moveEndToEndOfPreviousBlock=function(V){V.command(sn,"end","end","previous","block")},zr.moveEndToEndOfPreviousInline=function(V){V.command(sn,"end","end","previous","inline")},zr.moveEndToEndOfPreviousText=function(V){V.command(sn,"end","end","previous","text")},zr.moveEndToEndOfText=function(V){V.command(jt,"end","end","text")},zr.moveEndToStartOfBlock=function(V){V.command(jt,"end","start","block")},zr.moveEndToStartOfDocument=function(V){V.moveEndToStartOfNode(V.value.document).moveToEnd()},zr.moveEndToStartOfInline=function(V){V.command(jt,"end","start","inline")},zr.moveEndToStartOfNextBlock=function(V){V.command(sn,"end","start","next","block")},zr.moveEndToStartOfNextInline=function(V){V.command(sn,"end","start","next","inline")},zr.moveEndToStartOfNextText=function(V){V.command(sn,"end","start","next","text")},zr.moveEndToStartOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveEndToStartOfNode"].concat(D))},zr.moveEndToStartOfPreviousBlock=function(V){V.command(sn,"end","start","previous","block")},zr.moveEndToStartOfPreviousInline=function(V){V.command(sn,"end","start","previous","inline")},zr.moveEndToStartOfPreviousText=function(V){V.command(sn,"end","start","previous","text")},zr.moveEndToStartOfText=function(V){V.command(jt,"end","start","text")},zr.moveFocusBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Rn,"focus"].concat(D))},zr.moveFocusWordBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Be,"focus"].concat(D))},zr.moveFocusForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[H,"focus"].concat(D))},zr.moveFocusWordForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[wn,"focus"].concat(D))},zr.moveFocusTo=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveFocusTo"].concat(D))},zr.moveFocusToEndOfBlock=function(V){V.command(jt,"focus","end","block")},zr.moveFocusToEndOfDocument=function(V){V.moveFocusToEndOfNode(V.value.document).moveToFocus()},zr.moveFocusToEndOfInline=function(V){V.command(jt,"focus","end","inline")},zr.moveFocusToEndOfNextBlock=function(V){V.command(sn,"focus","end","next","block")},zr.moveFocusToEndOfNextInline=function(V){V.command(sn,"focus","end","next","inline")},zr.moveFocusToEndOfNextText=function(V){V.command(sn,"focus","end","next","text")},zr.moveFocusToEndOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveFocusToEndOfNode"].concat(D))},zr.moveFocusToEndOfPreviousBlock=function(V){V.command(sn,"focus","end","previous","block")},zr.moveFocusToEndOfPreviousInline=function(V){V.command(sn,"focus","end","previous","inline")},zr.moveFocusToEndOfPreviousText=function(V){V.command(sn,"focus","end","previous","text")},zr.moveFocusToEndOfText=function(V){V.command(jt,"focus","end","text")},zr.moveFocusToStartOfBlock=function(V){V.command(jt,"focus","start","block")},zr.moveFocusToStartOfDocument=function(V){V.moveFocusToStartOfNode(V.value.document).moveToFocus()},zr.moveFocusToStartOfInline=function(V){V.command(jt,"focus","start","inline")},zr.moveFocusToStartOfNextBlock=function(V){V.command(sn,"focus","start","next","block")},zr.moveFocusToStartOfNextInline=function(V){V.command(sn,"focus","start","next","inline")},zr.moveFocusToStartOfNextText=function(V){V.command(sn,"focus","start","next","text")},zr.moveFocusToStartOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveFocusToStartOfNode"].concat(D))},zr.moveFocusToStartOfPreviousBlock=function(V){V.command(sn,"focus","start","previous","block")},zr.moveFocusToStartOfPreviousInline=function(V){V.command(sn,"focus","start","previous","inline")},zr.moveFocusToStartOfPreviousText=function(V){V.command(sn,"focus","start","previous","text")},zr.moveFocusToStartOfText=function(V){V.command(jt,"focus","start","text")},zr.moveForward=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(Y!==0){var D=V.value,P=D.document,oe=D.selection,Ie=oe.start,Ue=P.getClosestBlock(Ie.path),Xe=Ue.getOffset(Ie.key),dt=Xe+Ie.offset,kt=Ue.text,dn=qt.getCharOffsetForward(kt,dt,Y);V.moveAnchorForward(dn).moveFocusForward(dn)}},zr.moveWordForward=function(V){for(var Y,D=arguments.length,P=Array(D>1?D-1:0),oe=1;oe<D;oe++)P[oe-1]=arguments[oe];(Y=V.moveFocusWordForward.apply(V,P)).moveToFocus.apply(Y,P)},zr.moveStartBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Rn,"start"].concat(D))},zr.moveStartWordBackward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Be,"start"].concat(D))},zr.moveStartForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[H,"start"].concat(D))},zr.moveStartWordForward=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[wn,"start"].concat(D))},zr.moveStartTo=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveStartTo"].concat(D))},zr.moveStartToEndOfBlock=function(V){V.command(jt,"start","end","block")},zr.moveStartToEndOfDocument=function(V){V.moveStartToEndOfNode(V.value.document).moveToStart()},zr.moveStartToEndOfInline=function(V){V.command(jt,"start","end","inline")},zr.moveStartToEndOfNextBlock=function(V){V.command(sn,"start","end","next","block")},zr.moveStartToEndOfNextInline=function(V){V.command(sn,"start","end","next","inline")},zr.moveStartToEndOfNextText=function(V){V.command(sn,"start","end","next","text")},zr.moveStartToEndOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveStartToEndOfNode"].concat(D))},zr.moveStartToEndOfPreviousBlock=function(V){V.command(sn,"start","end","previous","block")},zr.moveStartToEndOfPreviousInline=function(V){V.command(sn,"start","end","previous","inline")},zr.moveStartToEndOfPreviousText=function(V){V.command(sn,"start","end","previous","text")},zr.moveStartToEndOfText=function(V){V.command(jt,"start","end","text")},zr.moveStartToStartOfBlock=function(V){V.command(jt,"start","start","block")},zr.moveStartToStartOfDocument=function(V){V.moveStartToStartOfNode(V.value.document).moveToStart()},zr.moveStartToStartOfInline=function(V){V.command(jt,"start","start","inline")},zr.moveStartToStartOfNextBlock=function(V){V.command(sn,"start","start","next","block")},zr.moveStartToStartOfNextInline=function(V){V.command(sn,"start","start","next","inline")},zr.moveStartToStartOfNextText=function(V){V.command(sn,"start","start","next","text")},zr.moveStartToStartOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveStartToStartOfNode"].concat(D))},zr.moveStartToStartOfPreviousBlock=function(V){V.command(sn,"start","start","previous","block")},zr.moveStartToStartOfPreviousInline=function(V){V.command(sn,"start","start","previous","inline")},zr.moveStartToStartOfPreviousText=function(V){V.command(sn,"start","start","previous","text")},zr.moveStartToStartOfText=function(V){V.command(jt,"start","start","text")},zr.moveTo=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveTo"].concat(D))},zr.moveToAnchor=function(V){V.command(Ur,"moveToAnchor")},zr.moveToEnd=function(V){V.command(Ur,"moveToEnd")},zr.moveToEndOfBlock=function(V){V.moveEndToEndOfBlock().moveToEnd()},zr.moveToEndOfDocument=function(V){V.moveEndToEndOfNode(V.value.document).moveToEnd()},zr.moveToEndOfInline=function(V){V.moveEndToEndOfInline().moveToEnd()},zr.moveToEndOfNextBlock=function(V){V.moveEndToEndOfNextBlock().moveToEnd()},zr.moveToEndOfNextInline=function(V){V.moveEndToEndOfNextInline().moveToEnd()},zr.moveToEndOfNextText=function(V){V.moveEndToEndOfNextText().moveToEnd()},zr.moveToEndOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveToEndOfNode"].concat(D))},zr.moveToEndOfPreviousBlock=function(V){V.moveStartToEndOfPreviousBlock().moveToStart()},zr.moveToEndOfPreviousInline=function(V){V.moveStartToEndOfPreviousInline().moveToStart()},zr.moveToEndOfPreviousText=function(V){V.moveStartToEndOfPreviousText().moveToStart()},zr.moveToEndOfText=function(V){V.moveEndToEndOfText().moveToEnd()},zr.moveToFocus=function(V){V.command(Ur,"moveToFocus")},zr.moveToRangeOfDocument=function(V){V.moveToRangeOfNode(V.value.document)},zr.moveToRangeOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveToRangeOfNode"].concat(D))},zr.moveToStart=function(V){V.command(Ur,"moveToStart")},zr.moveToStartOfBlock=function(V){V.moveStartToStartOfBlock().moveToStart()},zr.moveToStartOfDocument=function(V){V.moveStartToStartOfNode(V.value.document).moveToStart()},zr.moveToStartOfInline=function(V){V.moveStartToStartOfInline().moveToStart()},zr.moveToStartOfNextBlock=function(V){V.moveEndToStartOfNextBlock().moveToEnd()},zr.moveToStartOfNextInline=function(V){V.moveEndToStartOfNextInline().moveToEnd()},zr.moveToStartOfNextText=function(V){V.moveEndToStartOfNextText().moveToEnd()},zr.moveToStartOfNode=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"moveToStartOfNode"].concat(D))},zr.moveToStartOfPreviousBlock=function(V){V.moveStartToStartOfPreviousBlock().moveToStart()},zr.moveToStartOfPreviousInline=function(V){V.moveStartToStartOfPreviousInline().moveToStart()},zr.moveToStartOfPreviousText=function(V){V.moveStartToStartOfPreviousText().moveToStart()},zr.moveToStartOfText=function(V){V.moveStartToStartOfText().moveToStart()},zr.select=function(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y=nn.createProperties(Y);var P=D.snapshot,oe=P===void 0?!1:P,Ie=V.value,Ue=Ie.document,Xe=Ie.selection,dt={},kt=Xe.setProperties(Y);kt=Ue.resolveSelection(kt),Y=d()(kt,Object.keys(Y));for(var dn in Y)(oe===!0||!(0,l.is)(Y[dn],Xe[dn]))&&(dt[dn]=Y[dn]);if(Xe.marks&&!dt.marks&&(dt.anchor||dt.focus)&&(dt.marks=null),Object.keys(dt).length!==0){var Vn=d()(Xe.toJSON(),Object.keys(dt));V.applyOperation({type:"set_selection",value:Ie,properties:Vn,newProperties:dt},oe?{skip:!1,merge:!1}:{})}},zr.setAnchor=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"setAnchor"].concat(D))},zr.setEnd=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"setEnd"].concat(D))},zr.setFocus=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"setFocus"].concat(D))},zr.setStart=function(V){for(var Y=arguments.length,D=Array(Y>1?Y-1:0),P=1;P<Y;P++)D[P-1]=arguments[P];V.command.apply(V,[Ur,"setStart"].concat(D))},zr.snapshotSelection=function(V){V.withoutMerging(function(){V.select(V.value.selection,{snapshot:!0})})};function Ur(V,Y){for(var D,P=arguments.length,oe=Array(P>2?P-2:0),Ie=2;Ie<P;Ie++)oe[Ie-2]=arguments[Ie];var Ue=(D=V.value.selection)[Y].apply(D,oe);V.select(Ue)}function jt(V,Y,D,P){var oe=Y.slice(0,1).toUpperCase()+Y.slice(1),Ie=D.slice(0,1).toUpperCase()+D.slice(1),Ue=P.slice(0,1).toUpperCase()+P.slice(1),Xe="move"+oe+"To"+Ie+"OfNode",dt=P==="text"?"getNode":"getClosest"+Ue,kt=V.value,dn=kt.document,Vn=kt.selection,qn=Vn[Y],yr=dn[dt](qn.key);yr&&V[Xe](yr)}function sn(V,Y,D,P,oe){var Ie=Y.slice(0,1).toUpperCase()+Y.slice(1),Ue=D.slice(0,1).toUpperCase()+D.slice(1),Xe=P.slice(0,1).toUpperCase()+P.slice(1),dt=oe.slice(0,1).toUpperCase()+oe.slice(1),kt="move"+Ie+"To"+Ue+"OfNode",dn=oe==="text"?"getNode":"getClosest"+dt,Vn="get"+Xe+dt,qn=V.value,yr=qn.document,ci=qn.selection,hi=ci[Y],Ti=yr[dn](hi.key);if(Ti){var Vi=yr[Vn](Ti.key);Vi&&V[kt](Vi)}}function Rn(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(D!==0){if(D<0)return H(V,Y,-D);var P=Y.slice(0,1).toUpperCase()+Y.slice(1),oe=V.value,Ie=oe.document,Ue=oe.selection,Xe=Ue[Y],dt=Ie.hasVoidParent(Xe.path,V);if(!dt&&Xe.offset-D>=0){var kt=Ue["move"+P+"Backward"](D);V.select(kt);return}var dn=Ie.getPreviousText(Xe.path);if(dn){var Vn=Ie.getClosestBlock(Xe.path),qn=Vn.hasNode(dn.key),yr=dn&&Ie.hasVoidParent(dn.key,V);if(V["move"+P+"ToEndOfNode"](dn),!dt&&!yr&&qn){var ci=V.value.selection["move"+P+"Backward"](D);V.select(ci)}}}}function H(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(D!==0){if(D<0)return Rn(V,Y,-D);var P=Y.slice(0,1).toUpperCase()+Y.slice(1),oe=V.value,Ie=oe.document,Ue=oe.selection,Xe=Ue[Y],dt=Ie.getNode(Xe.path),kt=Ie.hasVoidParent(Xe.path,V);if(!kt&&Xe.offset+D<=dt.text.length){var dn=Ue["move"+P+"Forward"](D);V.select(dn);return}var Vn=Ie.getNextText(Xe.path);if(Vn){var qn=Ie.getClosestBlock(Xe.path),yr=qn.hasNode(Vn.key),ci=Ie.hasVoidParent(Vn.key,V);if(V["move"+P+"ToStartOfNode"](Vn),!kt&&!ci&&yr){var hi=V.value.selection["move"+P+"Forward"](D);V.select(hi)}}}}function Be(V,Y){var D=V.value,P=D.document,oe=D.selection,Ie=oe[Y],Ue=P.getClosestBlock(Ie.key),Xe=Ue.getOffset(Ie.key),dt=Xe+Ie.offset,kt=Ue.text,dn=qt.getWordOffsetBackward(kt,dt);V.command(Rn,Y,dn>0?dn:1)}function wn(V,Y){var D=V.value,P=D.document,oe=D.selection,Ie=oe[Y],Ue=P.getClosestBlock(Ie.key),Xe=Ue.getOffset(Ie.key),dt=Xe+Ie.offset,kt=Ue.text,dn=qt.getWordOffsetForward(kt,dt);V.command(H,Y,dn>0?dn:1)}var bi={};bi.setData=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=V.value,P=bt.createProperties({data:Y}),oe=d()(D,Object.keys(P));V.applyOperation({type:"set_value",properties:oe,newProperties:P})},bi.addAnnotation=function(V,Y){Y=on.create(Y),V.applyOperation({type:"add_annotation",annotation:Y})},bi.removeAnnotation=function(V,Y){Y=on.create(Y),V.applyOperation({type:"remove_annotation",annotation:Y})},bi.setAnnotation=function(V,Y,D){Y=on.create(Y),D=on.createProperties(D),V.applyOperation({type:"set_annotation",properties:Y,newProperties:D})},bi.setAnnotations=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=V.value,P=bt.createProperties({annotations:Y}),oe=d()(D,Object.keys(P));V.applyOperation({type:"set_value",properties:oe,newProperties:P})};function Oi(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function Y(P,oe){for(var Ie in V)P.registerQuery(Ie);return oe()}function D(P,oe,Ie){var Ue=P.type,Xe=P.args,dt=V[Ue];if(!dt)return Ie();var kt=dt.apply(void 0,[oe].concat(B(Xe)));return kt===void 0?Ie():kt}return{onConstruct:Y,onQuery:D}}var de=function(V){q(Y,V);function Y(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};z(this,Y);var oe=A(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,D));oe.code=D;for(var Ie in P)oe[Ie]=P[Ie];return Error.captureStackTrace?Error.captureStackTrace(oe,oe.constructor):oe.stack=new Error().stack,oe}return Y}(Error);function Ve(V){var Y=V.rules,D=V.document,P=V.blocks,oe=V.inlines,Ie=V.marks,Ue=V.annotations,Xe=V.decorations,dt=[];if(Y&&(dt=dt.concat(Y)),D&&dt.push(se({match:[{object:"document"}]},D)),P)for(var kt in P)dt.push(se({match:[{object:"block",type:kt}]},P[kt]));if(oe)for(var dn in oe)dt.push(se({match:[{object:"inline",type:dn}]},oe[dn]));if(Ie)for(var Vn in Ie)dt.push(se({match:[{object:"mark",type:Vn}]},Ie[Vn]));if(Ue)for(var qn in Ue)dt.push(se({match:[{object:"annotation",type:qn}]},Ue[qn]));if(Xe)for(var yr in Xe)dt.push(se({match:[{object:"decoration",type:yr}]},Xe[yr]));function ci(Pi,mt){var tn=dt.find(function(or){return"isAtomic"in or&&Qt(mt,or.match)});return tn&&tn.isAtomic}function hi(Pi,mt){var tn=dt.find(function(or){return"isVoid"in or&&Qt(mt,or.match)});return tn&&tn.isVoid}function Ti(Pi,mt,tn){var or=Vi(Pi,mt,function(){});return or?function(){var rt=or.rule,St=mt.operations.size;rt.normalize&&rt.normalize(mt,or),mt.operations.size===St&&vt(mt,or)}:tn()}function Vi(Pi,mt,tn){var or=dt.filter(function(_n){return Qt(Pi,_n.match)}),rt=nt(Pi,or,dt,{every:!0});if(!rt)return tn();var St=new de(rt.code,rt);return St}var Di=Oi({isAtomic:ci,isVoid:hi});return[{normalizeNode:Ti,validateNode:Vi},Di]}function vt(V,Y){var D=Y.code,P=Y.node,oe=Y.child,Ie=Y.next,Ue=Y.previous,Xe=Y.key,dt=Y.mark;switch(D){case"child_max_invalid":case"child_object_invalid":case"child_type_invalid":case"child_unknown":case"first_child_object_invalid":case"first_child_type_invalid":case"last_child_object_invalid":case"last_child_type_invalid":return oe.object==="text"&&P.object==="block"&&P.nodes.size===1?V.removeNodeByKey(P.key):V.removeNodeByKey(oe.key);case"previous_sibling_object_invalid":case"previous_sibling_type_invalid":return Ue.object==="text"&&P.object==="block"&&P.nodes.size===1?V.removeNodeByKey(P.key):V.removeNodeByKey(Ue.key);case"next_sibling_object_invalid":case"next_sibling_type_invalid":return Ie.object==="text"&&P.object==="block"&&P.nodes.size===1?V.removeNodeByKey(P.key):V.removeNodeByKey(Ie.key);case"child_min_invalid":case"node_text_invalid":case"parent_object_invalid":case"parent_type_invalid":return P.object==="document"?P.nodes.forEach(function(kt){return V.removeNodeByKey(kt.key)}):V.removeNodeByKey(P.key);case"node_data_invalid":return P.data.get(Xe)===void 0&&P.object!=="document"?V.removeNodeByKey(P.key):V.setNodeByKey(P.key,{data:P.data.delete(Xe)});case"node_mark_invalid":return P.getTexts().forEach(function(kt){return V.removeMarkByKey(kt.key,0,kt.text.length,dt)});default:return V.removeNodeByKey(P.key)}}function Qt(V,Y){var D=nt(V,Y);return!D}function nt(V,Y,D){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},oe=P.every,Ie=oe===void 0?!1:oe,Ue=P.match,Xe=Ue===void 0?null:Ue;if(typeof Y=="function"){var dt=Y(V,Xe);return dt?null:Ni("node_invalid",{rule:Y,node:V})}if(Array.isArray(Y)){var kt=Y.length?Y:[{}],dn=void 0,Vn=!0,qn=!1,yr=void 0;try{for(var ci=kt[Symbol.iterator](),hi;!(Vn=(hi=ci.next()).done);Vn=!0){var Ti=hi.value,Vi=nt(V,Ti,D);if(dn=dn||Vi,Ie&&Vi)return Vi;if(!Ie&&!Vi)return}}catch(Pi){qn=!0,yr=Pi}finally{try{!Vn&&ci.return&&ci.return()}finally{if(qn)throw yr}}return dn}var Di=Tt(V,Y)||Gt(V,Y)||En(V,Y)||Qn(V,Y)||Or(V,Y)||Pr(V,Y)||ai(V,Y)||xi(V,Y,D);return Di}function Tt(V,Y){if(Y.object!=null&&Y.object!==V.object&&!(typeof Y.object=="function"&&Y.object(V.object)))return Ni("node_object_invalid",{rule:Y,node:V})}function Gt(V,Y){if(Y.type!=null&&Y.type!==V.type&&!(typeof Y.type=="function"&&Y.type(V.type)))return Ni("node_type_invalid",{rule:Y,node:V})}function En(V,Y){if(Y.data!=null&&V.data!=null){if(typeof Y.data=="function")return Y.data(V.data)?void 0:Ni("node_data_invalid",{rule:Y,node:V});for(var D in Y.data){var P=Y.data[D],oe=V.data&&V.data.get(D),Ie=typeof P=="function"?P(oe):P===oe;if(!Ie)return Ni("node_data_invalid",{rule:Y,node:V,key:D,value:oe})}}}function Qn(V,Y){if(Y.marks!=null){var D=V.object==="text"?V.marks.toArray():V.getMarks().toArray(),P=function(qn){var yr=Y.marks.some(function(ci){return typeof ci.type=="function"?ci.type(qn.type):ci.type===qn.type});return yr?"continue":{v:Ni("node_mark_invalid",{rule:Y,node:V,mark:qn})}},oe=!0,Ie=!1,Ue=void 0;try{for(var Xe=D[Symbol.iterator](),dt;!(oe=(dt=Xe.next()).done);oe=!0){var kt=dt.value,dn=P(kt);switch(dn){case"continue":continue;default:if((typeof dn>"u"?"undefined":Se(dn))==="object")return dn.v}}}catch(Vn){Ie=!0,Ue=Vn}finally{try{!oe&&Xe.return&&Xe.return()}finally{if(Ie)throw Ue}}}}function Or(V,Y){if(Y.text!=null){var D=V.text,P=typeof Y.text=="function"?Y.text(D):Y.text.test(D);if(!P)return Ni("node_text_invalid",{rule:Y,node:V,text:D})}}function Pr(V,Y){if(Y.first!=null){var D=V.nodes.first();if(D){var P=nt(D,Y.first);if(P)return P.rule=Y,P.node=V,P.child=D,P.code=P.code.replace("node_","first_child_"),P}}}function ai(V,Y){if(Y.last!=null){var D=V.nodes.last();if(D){var P=nt(D,Y.last);if(P)return P.rule=Y,P.node=V,P.child=D,P.code=P.code.replace("node_","last_child_"),P}}}function xi(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(V.nodes==null)return;var P=V.nodes,oe=Y.nodes!=null?Y.nodes.slice():[],Ie=0,Ue=0,Xe=null,dt=-1,kt=null,dn=null,Vn=null,qn=null,yr=null;function ci(){return oe.length===0?!1:(kt=oe.shift(),Ue=Ie,Ie=0,Xe=kt.min||null,dn=kt.max||null,!0)}function hi(){return dt+=1,qn=dt?P.get(dt-1):null,Vn=P.get(dt),yr=P.get(dt+1),Vn?(Ue=Ie,Ie+=1,!0):!1}function Ti(){dt>0&&(dt-=1,Ie=Ue)}for(Y.nodes!=null&&ci();hi();){var Vi=mi(V,Vn,D)||ei(V,Vn,qn,dt,D)||Qr(V,Vn,yr,dt,D);if(Vi)return Vi;if(Y.nodes!=null){if(!kt)return Ni("child_unknown",{rule:Y,node:V,child:Vn,index:dt});if(kt.match){var Di=nt(Vn,kt.match);if(Di){if(dn!=null&&Ie-1>dn)return Ti(),Ni("child_max_invalid",{rule:Y,node:V,index:dt,child:P.get(dt),count:Ie,limit:dn});var Pi=Xe;if(ci()){if(Ue-1>=Pi){dt-=1;continue}return nt(Vn,kt.match)==null?(Ti(),Ni("child_min_invalid",{rule:Y,node:V,index:dt,count:Ue-1,limit:Pi})):(Di.rule=Y,Di.node=V,Di.child=Vn,Di.index=dt,Di.code=Di.code.replace("node_","child_"),Di)}return dn!=null&&Ie>dn?Ni("child_unknown",{rule:Y,node:V,child:Vn,index:dt}):(Di.rule=Y,Di.node=V,Di.child=Vn,Di.index=dt,Di.code=Di.code.replace("node_","child_"),Di)}}}}if(dn!=null&&Ie>dn)return Ni("child_max_invalid",{rule:Y,node:V,index:dt-1,count:Ie,child:P.get(dt-1),limit:dn});if(Y.nodes!=null)do if(Ie<Xe)return Ni("child_min_invalid",{rule:Y,node:V,index:dt,count:Ie,limit:Xe});while(ci())}function mi(V,Y,D){var P=!0,oe=!1,Ie=void 0;try{for(var Ue=D[Symbol.iterator](),Xe;!(P=(Xe=Ue.next()).done);P=!0){var dt=Xe.value;if(dt.parent!=null&&Qt(Y,dt.match)){var kt=nt(V,dt.parent);if(kt)return kt.rule=dt,kt.parent=V,kt.node=Y,kt.code=kt.code.replace("node_","parent_"),kt}}}catch(dn){oe=!0,Ie=dn}finally{try{!P&&Ue.return&&Ue.return()}finally{if(oe)throw Ie}}}function ei(V,Y,D,P,oe){if(D){var Ie=!0,Ue=!1,Xe=void 0;try{for(var dt=oe[Symbol.iterator](),kt;!(Ie=(kt=dt.next()).done);Ie=!0){var dn=kt.value;if(dn.previous!=null&&Qt(Y,dn.match)){var Vn=nt(D,dn.previous);if(Vn)return Vn.rule=dn,Vn.node=V,Vn.child=Y,Vn.index=P,Vn.previous=D,Vn.code=Vn.code.replace("node_","previous_sibling_"),Vn}}}catch(qn){Ue=!0,Xe=qn}finally{try{!Ie&&dt.return&&dt.return()}finally{if(Ue)throw Xe}}}}function Qr(V,Y,D,P,oe){if(D){var Ie=!0,Ue=!1,Xe=void 0;try{for(var dt=oe[Symbol.iterator](),kt;!(Ie=(kt=dt.next()).done);Ie=!0){var dn=kt.value;if(dn.next!=null&&Qt(Y,dn.match)){var Vn=nt(D,dn.next,[],{match:Y});if(Vn)return Vn.rule=dn,Vn.node=V,Vn.child=Y,Vn.index=P,Vn.next=D,Vn.code=Vn.code.replace("node_","next_sibling_"),Vn}}}catch(qn){Ue=!0,Xe=qn}finally{try{!Ie&&dt.return&&dt.return()}finally{if(Ue)throw Xe}}}}function Ni(V,Y){return se({code:V},Y)}function ea(V){var Y=V.value,D=Y.selection;D.isExpanded&&V.delete()}var Qi={};Qi.addMark=function(V,Y){Y=lt.create(Y);var D=V.value,P=D.document,oe=D.selection;if(oe.isExpanded)V.addMarkAtRange(oe,Y);else if(oe.marks){var Ie=oe.marks.add(Y),Ue=oe.set("marks",Ie);V.select(Ue)}else{var Xe=P.getActiveMarksAtRange(oe).add(Y),dt=oe.set("marks",Xe);V.select(dt)}},Qi.addMarks=function(V,Y){Y.forEach(function(D){return V.addMark(D)})},Qi.delete=function(V){var Y=V.value,D=Y.selection;V.deleteAtRange(D),V.moveToFocus()},Qi.deleteBackward=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=V.value,P=D.selection;P.isExpanded?V.delete():V.deleteBackwardAtRange(P,Y)},Qi.deleteCharBackward=function(V){var Y=V.value,D=Y.selection;D.isExpanded?V.delete():V.deleteCharBackwardAtRange(D)},Qi.deleteLineBackward=function(V){var Y=V.value,D=Y.selection;D.isExpanded?V.delete():V.deleteLineBackwardAtRange(D)},Qi.deleteWordBackward=function(V){var Y=V.value,D=Y.selection;D.isExpanded?V.delete():V.deleteWordBackwardAtRange(D)},Qi.deleteForward=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,D=V.value,P=D.selection;P.isExpanded?V.delete():V.deleteForwardAtRange(P,Y)},Qi.deleteCharForward=function(V){var Y=V.value,D=Y.selection;D.isExpanded?V.delete():V.deleteCharForwardAtRange(D)},Qi.deleteLineForward=function(V){var Y=V.value,D=Y.selection;D.isExpanded?V.delete():V.deleteLineForwardAtRange(D)},Qi.deleteWordForward=function(V){var Y=V.value,D=Y.selection;D.isExpanded?V.delete():V.deleteWordForwardAtRange(D)},Qi.insertBlock=function(V,Y){ea(V),Y=Nn.create(Y);var D=V.value,P=D.selection;V.insertBlockAtRange(P,Y);var oe=V.value.document.getNode(Y.key);oe&&V.moveToEndOfNode(oe)},Qi.insertFragment=function(V,Y){if(Y.nodes.size){ea(V);var D=V.value,P=D,oe=P.document,Ie=P.selection,Ue=Ie.start,Xe=Array.from(oe.texts(),function(ci){var hi=T(ci,1),Ti=hi[0];return Ti.key});V.insertFragmentAtRange(Ie,Y),D=V.value,oe=D.document;var dt=oe.getTexts().filter(function(ci){return!Xe.includes(ci.key)});if(dt.size!==0){var kt=Y.text.length,dn=oe.getNode(Ue.key)||dt.first(),Vn=dt.last()||dn;if(dn===Vn){V.moveTo(Vn.key,kt);return}var qn=oe.getCommonAncestor(dn.key,Vn.key),yr=qn.getOffset(dn.key)+(Ue.key===dn.key?Ue.offset:0);Vn=qn.getTextAtOffset(yr+kt-1)||Vn,V.moveTo(Vn.key,yr+kt-qn.getOffset(Vn.key))}}},Qi.insertInline=function(V,Y){ea(V),Y=er.create(Y);var D=V.value,P=D.selection;V.insertInlineAtRange(P,Y);var oe=V.value.document.getNode(Y.key);oe&&V.moveToEndOfNode(oe)},Qi.insertText=function(V,Y,D){ea(V);var P=V.value,oe=P.document,Ie=P.selection;D=D||Ie.marks||oe.getInsertMarksAtRange(Ie),V.withoutNormalizing(function(){V.insertTextAtRange(Ie,Y,D),Ie.marks&&oe!==V.value.document&&V.select({marks:null})})},Qi.removeMark=function(V,Y){Y=lt.create(Y);var D=V.value,P=D.document,oe=D.selection;if(oe.isExpanded)V.removeMarkAtRange(oe,Y);else if(oe.marks){var Ie=oe.marks.remove(Y),Ue=oe.set("marks",Ie);V.select(Ue)}else{var Xe=P.getActiveMarksAtRange(oe).remove(Y),dt=oe.set("marks",Xe);V.select(dt)}},Qi.replaceMark=function(V,Y,D){V.removeMark(Y),V.addMark(D)},Qi.setBlocks=function(V,Y){var D=V.value,P=D.selection;V.setBlocksAtRange(P,Y)},Qi.setInlines=function(V,Y){var D=V.value,P=D.selection;V.setInlinesAtRange(P,Y)},Qi.splitBlock=function(V){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ea(V);var D=V.value,P=D.selection,oe=D.document,Ie=P.marks||oe.getInsertMarksAtRange(P);V.splitBlockAtRange(P,Y).moveToEnd(),Ie&&Ie.size!==0&&V.select({marks:Ie})},Qi.splitInline=function(V,Y){ea(V);var D=V.value,P=D.selection;V.splitInlineAtRange(P,Y)},Qi.toggleMark=function(V,Y){Y=lt.create(Y);var D=V.value,P=D.activeMarks.has(Y);P?V.removeMark(Y):V.addMark(Y)},Qi.unwrapBlock=function(V,Y){var D=V.value,P=D.selection;V.unwrapBlockAtRange(P,Y)},Qi.unwrapInline=function(V,Y){var D=V.value,P=D.selection;V.unwrapInlineAtRange(P,Y)},Qi.wrapBlock=function(V,Y){var D=V.value,P=D.selection;V.wrapBlockAtRange(P,Y)},Qi.wrapInline=function(V,Y){var D=V.value,P=D.selection;V.wrapInlineAtRange(P,Y)},Qi.wrapText=function(V,Y){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Y,P=V.value,oe=P.selection;V.wrapTextAtRange(oe,Y,D),oe.isCollapsed&&V.moveStartBackward(Y.length),V.moveEndBackward(D.length),oe.isForward!==V.value.selection.isForward&&V.flip()};function ir(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=V.plugins,D=Y===void 0?[]:Y,P=ht(se({},On,Lr,Xr,zr,bi,Qi)),oe=Oi({isAtomic:function(){return!1},isVoid:function(){return!1}}),Ie=Ve({rules:[{match:{object:"document"},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:{object:"block"}},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:[{object:"inline"},{object:"text"}]},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:{object:"inline"},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:[{object:"block"},{object:"inline"}],nodes:[{min:1}],normalize:function(Xe,dt){var kt=dt.code,dn=dt.node;kt==="child_min_invalid"&&dn.nodes.isEmpty()&&Xe.insertNodeByKey(dn.key,0,gn.create())}},{match:{object:"block"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],normalize:function(Xe,dt){var kt=dt.code,dn=dt.node,Vn=gn.create(),qn=void 0;if(kt==="first_child_object_invalid")qn=0;else if(kt==="last_child_object_invalid")qn=dn.nodes.size;else return;Xe.insertNodeByKey(dn.key,qn,Vn)}},{match:{object:"inline"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],previous:[{object:"block"},{object:"text"}],next:[{object:"block"},{object:"text"}],normalize:function(Xe,dt){var kt=dt.code,dn=dt.node,Vn=dt.index,qn=gn.create(),yr=void 0;if(kt==="first_child_object_invalid")yr=0;else if(kt==="last_child_object_invalid")yr=dn.nodes.size;else if(kt==="previous_sibling_object_invalid")yr=Vn;else if(kt==="next_sibling_object_invalid")yr=Vn+1;else return;Xe.insertNodeByKey(dn.key,yr,qn)}},{match:{object:"text"},next:function(Xe,dt){return Xe.object!=="text"||!dt.marks.equals(Xe.marks)},normalize:function(Xe,dt){var kt=dt.code,dn=dt.next;kt==="next_sibling_invalid"&&Xe.mergeNodeByKey(dn.key)}},{match:{object:"text"},previous:function(Xe){return Xe.object!=="text"||Xe.text!==""},next:function(Xe){return Xe.object!=="text"||Xe.text!==""},normalize:function(Xe,dt){var kt=dt.code,dn=dt.next,Vn=dt.previous;kt==="next_sibling_invalid"?Xe.removeNodeByKey(dn.key):kt==="previous_sibling_invalid"&&Xe.removeNodeByKey(Vn.key)}}]});return[Ie].concat(B(D),[P,oe])}var xr=v()("slate:editor"),di=function(){function V(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};z(this,V);var P=D.controller,oe=P===void 0?this:P,Ie=D.construct,Ue=Ie===void 0?!0:Ie,Xe=Y.onChange,dt=Xe===void 0?function(){}:Xe,kt=Y.plugins,dn=kt===void 0?[]:kt,Vn=Y.readOnly,qn=Vn===void 0?!1:Vn,yr=Y.value,ci=yr===void 0?bt.create():yr;this.controller=oe,this.middleware={},this.onChange=dt,this.operations=(0,l.List)(),this.readOnly=null,this.value=null,this.tmp={dirty:[],flushing:!1,merge:null,normalize:!0,save:!0};var hi=ir({plugins:dn});wi(this,hi),Ue&&(this.run("onConstruct"),this.setReadOnly(qn),this.setValue(ci,D))}return Q(V,[{key:"applyOperation",value:function(D){var P=this,oe=this.operations,Ie=this.controller,Ue=this.value;y()(D)&&(D=se({},D,{value:Ue})),D=ln.create(D),this.withoutNormalizing(function(){Ie.save(D),Ue=P.value}),xr("apply",{operation:D}),this.value=D.apply(Ue),this.operations=oe.push(D);var Xe=ft(D),dt=this.tmp.dirty.map(function(Vn){Vn=ke.create(Vn);var qn=ke.transform(Vn,D);return qn.toArray()}),kt={},dn=Array.prototype.concat.apply(Xe,dt);return this.tmp.dirty=[],dn.forEach(function(Vn){var qn=Vn.join(",");kt[qn]||P.tmp.dirty.push(Vn),kt[qn]=!0}),this.tmp.flushing||(this.tmp.flushing=!0,Promise.resolve().then(function(){return P.flush()})),Ie}},{key:"flush",value:function(){this.run("onChange");var D=this.value,P=this.operations,oe=this.controller,Ie={value:D,operations:P};return this.operations=(0,l.List)(),this.tmp.flushing=!1,this.onChange(Ie),oe}},{key:"command",value:function(D){for(var P=arguments.length,oe=Array(P>1?P-1:0),Ie=1;Ie<P;Ie++)oe[Ie-1]=arguments[Ie];var Ue=this.controller;if(typeof D=="function")return D.apply(void 0,[Ue].concat(oe)),zn(this),Ue;xr("command",{type:D,args:oe});var Xe={type:D,args:oe};return this.run("onCommand",Xe),zn(this),Ue}},{key:"hasCommand",value:function(D){var P=this.controller,oe=D in P&&P[D].__command;return oe}},{key:"hasQuery",value:function(D){var P=this.controller,oe=D in P&&P[D].__query;return oe}},{key:"normalize",value:function(){var D=this.value,P=this.controller,oe=D.document,Ie=oe.getKeysToPathsTable(),Ue=Object.values(Ie).map(ke.create);this.tmp.dirty=this.tmp.dirty.concat(Ue),zn(this);var Xe=D.selection;return oe=D.document,Xe.isUnset&&oe.nodes.size&&P.moveToStartOfDocument(),P}},{key:"query",value:function(D){for(var P=arguments.length,oe=Array(P>1?P-1:0),Ie=1;Ie<P;Ie++)oe[Ie-1]=arguments[Ie];var Ue=this.controller;if(typeof D=="function")return D.apply(void 0,[Ue].concat(oe));xr("query",{type:D,args:oe});var Xe={type:D,args:oe};return this.run("onQuery",Xe)}},{key:"registerCommand",value:function(D){var P=this,oe=this.controller;if(D in oe&&oe[D].__command)return oe;(0,h.A)(!(D in oe),"You cannot register a `"+D+"` command because it would overwrite an existing property of the `Editor`.");var Ie=function(){for(var Xe=arguments.length,dt=Array(Xe),kt=0;kt<Xe;kt++)dt[kt]=arguments[kt];return P.command.apply(P,[D].concat(dt))};return oe[D]=Ie,Ie.__command=!0,oe}},{key:"registerQuery",value:function(D){var P=this,oe=this.controller;if(D in oe&&oe[D].__query)return oe;(0,h.A)(!(D in oe),"You cannot register a `"+D+"` query because it would overwrite an existing property of the `Editor`.");var Ie=function(){for(var Xe=arguments.length,dt=Array(Xe),kt=0;kt<Xe;kt++)dt[kt]=arguments[kt];return P.query.apply(P,[D].concat(dt))};return oe[D]=Ie,Ie.__query=!0,oe}},{key:"run",value:function(D){for(var P=arguments.length,oe=Array(P>1?P-1:0),Ie=1;Ie<P;Ie++)oe[Ie-1]=arguments[Ie];var Ue=this.controller,Xe=this.middleware,dt=Xe[D]||[],kt=0;function dn(){var Vn=dt[kt++];if(Vn){for(var qn=arguments.length,yr=Array(qn),ci=0;ci<qn;ci++)yr[ci]=arguments[ci];yr.length&&(oe=yr);var hi=Vn.apply(void 0,B(oe).concat([Ue,dn]));return hi}}return Object.defineProperty(dn,"change",{get:function(){(0,h.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(dn,"onChange",{get:function(){(0,h.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(dn,"props",{get:function(){(0,h.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(dn,"schema",{get:function(){(0,h.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),Object.defineProperty(dn,"stack",{get:function(){(0,h.A)(!1,"As of Slate 0.42, the `editor` is no longer passed as the third argument to event handlers. You can access it via `change.editor` instead.")}}),dn()}},{key:"setReadOnly",value:function(D){return this.readOnly=D,this}},{key:"setValue",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=P.normalize,Ie=oe===void 0?D!==this.value:oe;return this.value=D,Ie&&this.normalize(),this}},{key:"withoutNormalizing",value:function(D){var P=this.controller,oe=this.tmp.normalize;return this.tmp.normalize=!1,D(P),this.tmp.normalize=oe,zn(this),P}},{key:"change",value:function(D){p(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so the `editor.change()` method is deprecated.`");for(var P=arguments.length,oe=Array(P>1?P-1:0),Ie=1;Ie<P;Ie++)oe[Ie-1]=arguments[Ie];D.apply(void 0,[this.controller].concat(oe))}},{key:"call",value:function(D){p(!1,"As of Slate 0.43 the `editor.call(fn)` method has been deprecated, please use `editor.command(fn)` instead.");for(var P=arguments.length,oe=Array(P>1?P-1:0),Ie=1;Ie<P;Ie++)oe[Ie-1]=arguments[Ie];return D.apply(void 0,[this.controller].concat(oe)),this.controller}},{key:"applyOperations",value:function(D){var P=this;return p(!1,"As of Slate 0.43 the `applyOperations` method is deprecated, please apply each operation in a loop instead."),D.forEach(function(oe){return P.applyOperation(oe)}),this.controller}},{key:"setOperationFlag",value:function(D,P){return p(!1,"As of slate@0.41 the `change.setOperationFlag` method has been deprecated."),this.tmp[D]=P,this}},{key:"getFlag",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return p(!1,"As of slate@0.41 the `change.getFlag` method has been deprecated."),P[D]!==void 0?P[D]:this.tmp[D]}},{key:"unsetOperationFlag",value:function(D){return p(!1,"As of slate@0.41 the `change.unsetOperationFlag` method has been deprecated."),delete this.tmp[D],this}},{key:"withoutNormalization",value:function(D){return p(!1,"As of slate@0.41 the `change.withoutNormalization` helper has been renamed to `change.withoutNormalizing`."),this.withoutNormalizing(D)}},{key:"editor",get:function(){return p(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so you don't need to access `change.editor`."),this.controller}}]),V}();function ft(V){var Y=V.type,D=V.node,P=V.path,oe=V.newPath;switch(Y){case"add_mark":case"insert_text":case"remove_mark":case"remove_text":case"set_mark":case"set_node":{var Ie=ke.getAncestors(P).toArray();return[].concat(B(Ie),[P])}case"insert_node":{var Ue=D.getKeysToPathsTable(),Xe=Object.values(Ue).map(function(Ti){return P.concat(Ti)}),dt=ke.getAncestors(P).toArray();return[].concat(B(dt),[P],B(Xe))}case"split_node":{var kt=ke.getAncestors(P).toArray(),dn=ke.increment(P);return[].concat(B(kt),[P,dn])}case"merge_node":{var Vn=ke.getAncestors(P).toArray(),qn=ke.decrement(P);return[].concat(B(Vn),[qn])}case"move_node":{if(ke.isEqual(P,oe))return[];var yr=ke.getAncestors(P).reduce(function(Ti,Vi){return Ti.push.apply(Ti,B(ke.transform(Vi,V).toArray())),Ti},[]),ci=ke.getAncestors(oe).reduce(function(Ti,Vi){return Ti.push.apply(Ti,B(ke.transform(Vi,V).toArray())),Ti},[]);return[].concat(B(yr),B(ci))}case"remove_node":{var hi=ke.getAncestors(P).toArray();return[].concat(B(hi))}default:return[]}}function zn(V){V.tmp.normalize&&V.tmp.dirty.length&&V.withoutNormalizing(function(){for(;V.tmp.dirty.length;){var Y=V.tmp.dirty.pop();Zn(V,Y)}})}function Zn(V,Y){for(var D=V.controller,P=V.value,oe=P,Ie=oe.document,Ue=Ie.assertNode(Y),Xe=0,dt=100+(Ue.object==="text"?1:Ue.nodes.size);Ue;){var kt=Ue.normalize(D);if(!kt)break;kt(D),P=V.value,Ie=P.document;var dn=Ue,Vn=dn.key,qn=Ie.getDescendant(Y);if(qn&&qn.key===Vn)Ue=qn;else if(qn=Ie.getDescendant(Vn),qn)Ue=qn,Y=Ie.getPath(Vn);else break;if(Xe++,Xe>dt)throw new Error("A schema rule could not be normalized after sufficient iterations. This is usually due to a `rule.normalize` or `plugin.normalizeNode` function of a schema being incorrectly written, causing an infinite loop.")}}function wi(V,Y){if(Array.isArray(Y)){Y.forEach(function(qn){return wi(V,qn)});return}if(Y!=null){var D=Y.commands,P=Y.queries,oe=Y.schema,Ie=te(Y,["commands","queries","schema"]);if(D){var Ue=ht(D);wi(V,Ue)}if(P){var Xe=Oi(P);wi(V,Xe)}if(oe){var dt=Ve(oe);wi(V,dt)}for(var kt in Ie){var dn=Ie[kt],Vn=V.middleware[kt]=V.middleware[kt]||[];Vn.push(dn)}}}var Ea={marks:void 0,text:void 0},wa=function(V){q(Y,V);function Y(){return z(this,Y),A(this,(Y.__proto__||Object.getPrototypeOf(Y)).apply(this,arguments))}return Q(Y,[{key:"updateMark",value:function(P,oe){var Ie=this.marks;if(oe.equals(P))return this;if(!Ie.has(P))return this;var Ue=Ie.withMutations(function(Xe){Xe.remove(P).add(oe)});return this.set("marks",Ue)}},{key:"addMark",value:function(P){var oe=this.marks;return this.set("marks",oe.add(P))}},{key:"addMarks",value:function(P){var oe=this.marks;return this.set("marks",oe.union(P))}},{key:"insertText",value:function(P,oe){var Ie=this.text,Ue=Ie.slice(0,P)+oe+Ie.slice(P);return this.set("text",Ue)}},{key:"removeMark",value:function(P){var oe=this.marks;return this.set("marks",oe.remove(P))}},{key:"toJSON",value:function(){var P={object:this.object,text:this.text,marks:this.marks.toArray().map(function(oe){return oe.toJSON()})};return P}}],[{key:"create",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(p(!1,"As of slate@0.47 the `Leaf` model is deprecated."),Y.isLeaf(P))return P;if(typeof P=="string"&&(P={text:P}),y()(P))return Y.fromJSON(P);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+P)}},{key:"createLeaves",value:function(P){if(P.size<=1)return P;var oe=!1,Ie=(0,l.List)().withMutations(function(Ue){P.findLast(function(Xe,dt){var kt=Ue.first();if(kt){if(kt.marks.equals(Xe.marks)){oe=!0,Ue.set(0,kt.set("text",""+Xe.text+kt.text));return}if(kt.text===""){oe=!0,Ue.set(0,Xe);return}if(Xe.text===""){oe=!0;return}}Ue.unshift(Xe)})});return oe?Ie:P}},{key:"splitLeaves",value:function(P,oe){if(oe<0)return[(0,l.List)(),P];if(P.size===0)return[(0,l.List)(),(0,l.List)()];var Ie=0,Ue=-1,Xe=void 0,dt=void 0;return P.find(function(kt){Ue++;var dn=Ie,Vn=kt.text;if(Ie+=Vn.length,Ie<oe||dn>oe)return!1;var qn=oe-dn;return Xe=kt.set("text",Vn.slice(0,qn)),dt=kt.set("text",Vn.slice(qn)),!0}),Xe?Xe.text===""?Ue===0?[l.List.of(Xe),P]:[P.take(Ue),P.skip(Ue)]:dt.text===""?Ue===P.size-1?[P,l.List.of(dt)]:[P.take(Ue+1),P.skip(Ue+1)]:[P.take(Ue).push(Xe),P.skip(Ue+1).unshift(dt)]:[P,(0,l.List)()]}},{key:"createList",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(l.List.isList(P)||Array.isArray(P)){var oe=new l.List(P.map(Y.create));return oe}throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+P)}},{key:"fromJSON",value:function(P){var oe=P.text,Ie=oe===void 0?"":oe,Ue=P.marks,Xe=Ue===void 0?[]:Ue,dt=new Y({text:Ie,marks:(0,l.Set)(Xe.map(lt.fromJSON))});return dt}},{key:"isLeafList",value:function(P){return l.List.isList(P)&&P.every(function(oe){return Y.isLeaf(oe)})}}]),Y}((0,l.Record)(Ea));function ji(V,Y){var D=!0,P=!1,oe=void 0;try{for(var Ie=Y[Symbol.iterator](),Ue;!(D=(Ue=Ie.next()).done);D=!0){var Xe=Ue.value,dt=!0,kt=!1,dn=void 0;try{for(var Vn=Object.getOwnPropertyNames(V)[Symbol.iterator](),qn;!(dt=(qn=Vn.next()).done);dt=!0){var yr=qn.value;if(!Xe.hasOwnProperty(yr)){var ci=Object.getOwnPropertyDescriptor(V,yr);Object.defineProperty(Xe,yr,ci)}}}catch(tn){kt=!0,dn=tn}finally{try{!dt&&Vn.return&&Vn.return()}finally{if(kt)throw dn}}var hi=!0,Ti=!1,Vi=void 0;try{for(var Di=Object.getOwnPropertyNames(V.prototype)[Symbol.iterator](),Pi;!(hi=(Pi=Di.next()).done);hi=!0){var mt=Pi.value;if(!Xe.prototype.hasOwnProperty(mt)){var ci=Object.getOwnPropertyDescriptor(V.prototype,mt);Object.defineProperty(Xe.prototype,mt,ci)}}}catch(tn){Ti=!0,Vi=tn}finally{try{!hi&&Di.return&&Di.return()}finally{if(Ti)throw Vi}}}}catch(tn){P=!0,oe=tn}finally{try{!D&&Ie.return&&Ie.return()}finally{if(P)throw oe}}}function Dt(V){var Y=Pn[V],D=""+V.charAt(0).toUpperCase()+V.slice(1),P="is"+D,oe=function(){function Ie(){z(this,Ie)}return Q(Ie,[{key:"object",get:function(){return V}}]),Ie}();return oe[P]=rn.bind(null,V),oe.prototype[Y]=!0,oe}Object.entries({Annotation:on,Block:Nn,Change:Yn,Decoration:Et,Document:Cn,Editor:di,Inline:er,Leaf:wa,Mark:lt,Node:kn,Operation:ln,Point:_e,Range:Kn,Selection:nn,Text:gn,Value:bt}).forEach(function(V){var Y=T(V,2),D=Y[0],P=Y[1];return ji(Dt(D.toLowerCase()),[P])});var Xn=function(){function V(){z(this,V)}return Q(V,[{key:"toJS",value:function(){return this.toJSON.apply(this,arguments)}}],[{key:"fromJS",value:function(){return this.fromJSON.apply(this,arguments)}}]),V}();ji(Xn,[on,Nn,Et,Cn,er,wa,lt,kn,ln,_e,Kn,nn,gn,bt]);var Tr=!0,Nr=Symbol("LEAF"),ti=Symbol("STORE_KEY"),_i=Symbol("undefined"),Ii=Symbol("null"),ta=void 0,Ji=new WeakMap;function k(V,Y){var D=function(dn){var Vn=V[dn];if(!Vn)throw new Error('Object does not have a property named "'+dn+'".');V[dn]=function(){for(var qn=arguments.length,yr=Array(qn),ci=0;ci<qn;ci++)yr[ci]=arguments[ci];if(!Tr)return Vn.apply(this,yr);Ji.has(this)||Ji.set(this,{noArgs:{},hasArgs:{}});var hi=Ji.get(this),Ti=hi.noArgs,Vi=hi.hasArgs,Di=yr.length!==0,Pi=void 0,mt=void 0;if(Di?(mt=[dn].concat(yr),Pi=ve(Vi,mt)):Pi=Ti[dn],Pi!==ta)return Pi===_i?void 0:Pi;var tn=Vn.apply(this,yr),or=tn===void 0?_i:tn;return Di?Le(Vi,mt,or):Ti[dn]=or,tn}},P=!0,oe=!1,Ie=void 0;try{for(var Ue=Y[Symbol.iterator](),Xe;!(P=(Xe=Ue.next()).done);P=!0){var dt=Xe.value;D(dt)}}catch(kt){oe=!0,Ie=kt}finally{try{!P&&Ue.return&&Ue.return()}finally{if(oe)throw Ie}}}function ve(V,Y){var D=!0,P=!1,oe=void 0;try{for(var Ie=Y[Symbol.iterator](),Ue;!(D=(Ue=Ie.next()).done);D=!0){var Xe=Ue.value;if(Xe===void 0?Xe=_i:Xe==null&&(Xe=Ii),(typeof Xe>"u"?"undefined":Se(Xe))==="object"?V=V[ti]&&V[ti].get(Xe):V=V[Xe],V===ta)return ta}}catch(dt){P=!0,oe=dt}finally{try{!D&&Ie.return&&Ie.return()}finally{if(P)throw oe}}return V[Nr]}function Le(V,Y,D){var P=V,oe=!0,Ie=!1,Ue=void 0;try{for(var Xe=Y[Symbol.iterator](),dt;!(oe=(dt=Xe.next()).done);oe=!0){var kt=dt.value;if(kt===void 0?kt=_i:kt==null&&(kt=Ii),(typeof kt>"u"?"undefined":Se(kt))!=="object"){P[kt]||(P[kt]={}),P=P[kt];continue}if(P[ti]||(P[ti]=new WeakMap),!P[ti].has(kt)){var dn={};P[ti].set(kt,dn),P=dn;continue}P=P[ti].get(kt)}}catch(Vn){Ie=!0,Ue=Vn}finally{try{!oe&&Xe.return&&Xe.return()}finally{if(Ie)throw Ue}}return P[Nr]=D,V}function Ye(){Ji=new WeakMap}function ot(V){Tr=V}var Lt=function(){function V(){z(this,V)}return Q(V,[{key:"getFirstText",value:function(){if(this.object==="text")return this;var D=null,P=this.nodes.find(function(oe){return oe.object==="text"?!0:(D=oe.getFirstText(),!!D)});return D||P}},{key:"getKeysToPathsTable",value:function(){var D=ce({},this.key,[]);return this.nodes&&this.nodes.forEach(function(P,oe){var Ie=P.getKeysToPathsTable();for(var Ue in Ie){var Xe=Ie[Ue];p(!(Ue in D),'A node with a duplicate key of "'+Ue+'" was found! Duplicate keys are not allowed, you should use `node.regenerateKey` before inserting if you are reusing an existing node.'),D[Ue]=[oe].concat(B(Xe))}}),D}},{key:"getLastText",value:function(){if(this.object==="text")return this;var D=null,P=this.nodes.findLast(function(oe){return oe.object==="text"?!0:(D=oe.getLastText(),D)});return D||P}},{key:"getNode",value:function(D){if(D=this.resolvePath(D),!D||this.object==="text"&&D.size)return null;var P=D.size?this.getDescendant(D):this;return P}},{key:"getPath",value:function(D){if(l.List.isList(D))return D;if(kn.isNode(D)&&this.descendants){var P=!0,oe=!1,Ie=void 0;try{for(var Ue=this.descendants()[Symbol.iterator](),Xe;!(P=(Xe=Ue.next()).done);P=!0){var dt=Xe.value,kt=T(dt,2),dn=kt[0],Vn=kt[1];if(D===dn)return Vn}}catch(ci){oe=!0,Ie=ci}finally{try{!P&&Ue.return&&Ue.return()}finally{if(oe)throw Ie}}}var qn=this.getKeysToPathsTable(),yr=qn[D];return yr?(0,l.List)(yr):null}},{key:"getText",value:function(){if(this.object==="text")return this.text;var D=this.nodes.reduce(function(P,oe){return P+oe.text},"");return D}},{key:"hasNode",value:function(D){var P=this.getNode(D);return!!P}},{key:"normalize",value:function(D){var P=D.run("normalizeNode",this);return P}},{key:"regenerateKey",value:function(){var D=re.create(),P=this.set("key",D);return P}},{key:"resolvePath",value:function(D,P){return typeof D=="string"?(D=this.getPath(D),P!=null&&(D=D.concat(P))):D=ke.create(D),D}},{key:"validate",value:function(D){var P=D.run("validateNode",this);return P}}]),V}();k(Lt.prototype,["getFirstText","getKeysToPathsTable","getLastText","getText","normalize","validate"]),ji(Lt,[Nn,Cn,er,gn]);var an=typeof u.g<"u"?u.g:typeof self<"u"?self:typeof window<"u"?window:{};function nr(){return!0}var vr=function(){function V(){z(this,V)}return Q(V,[{key:"addMark",value:function(D,P){D=this.resolvePath(D);var oe=this.assertDescendant(D);oe=oe.addMark(P);var Ie=this.replaceNode(D,oe);return Ie}},{key:"ancestors",value:function(D){var P=this.createIterable({path:D,direction:null,downward:!1,includeTargetAncestors:!0,includeRoot:!0});return P}},{key:"blocks",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=D.onlyLeaves,oe=D.onlyRoots,Ie=D.onlyTypes,Ue=D.match,Xe=te(D,["onlyLeaves","onlyRoots","onlyTypes","match"]),dt=this.descendants(se({includeDocument:!1,includeInlines:!1,includeTexts:!1},Xe,{match:function(dn,Vn){return Ie&&!Ie.includes(dn.type)||oe&&Vn.size!==1||P&&!dn.isLeafBlock()?!1:!(Ue&&!Ue(dn,Vn))}}));return dt}},{key:"createAnnotation",value:function(D){D=on.createProperties(D);var P=this.resolveAnnotation(D);return P}},{key:"createDecoration",value:function(D){D=Et.createProperties(D);var P=this.resolveDecoration(D);return P}},{key:"createIterable",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=D.direction,oe=P===void 0?"forward":P,Ie=D.downward,Ue=Ie===void 0?!0:Ie,Xe=D.upward,dt=Xe===void 0?!0:Xe,kt=D.includeBlocks,dn=kt===void 0?!0:kt,Vn=D.includeDocument,qn=Vn===void 0?!0:Vn,yr=D.includeInlines,ci=yr===void 0?!0:yr,hi=D.includeRoot,Ti=hi===void 0?!1:hi,Vi=D.includeTarget,Di=Vi===void 0?!!D.range:Vi,Pi=D.includeTargetAncestors,mt=Pi===void 0?!1:Pi,tn=D.includeTexts,or=tn===void 0?!0:tn,rt=D.match,St=rt===void 0?null:rt,_n=this,vn=null,Ln=null;D.range?(Ln=_n.resolveRange(D.range),vn=_n.resolvePath(Ln.start.path)):D.path&&(vn=_n.resolvePath(D.path));var _r=vn&&_n.assertNode(vn),Br=typeof window>"u"?an.Set:window.Set;return ce({},Symbol.iterator,function(){var Kr=new Br,Jr=Ln&&Ln.start.path,ii=Ln&&Ln.end.path,le=vn,Ae=_r,Oe=!1,et=!1,Ot=!1,It=function(){return!le||!Ae?{done:!0}:!Ti&&Ae===_n||!dn&&Ae.object==="block"||!qn&&Ae.object==="document"||!ci&&Ae.object==="inline"||!or&&Ae.object==="text"||St&&!St(Ae,le)?Mn():{value:[Ae,le],done:!1}},Mn=function mn(){if(!le||!Ae)return It();if(Jr&&!et)return Ot?le.size===Jr.size-1?(et=!0,le=vn,Ae=_r,mn()):(le=Jr.slice(0,le.size+1),Ae=_n.assertNode(le),It()):(Ot=!0,le=ke.create([]),Ae=_n,It());if(Di&&!Oe)return Oe=!0,It();if(ii&&le.equals(ii))return Ae=null,le=null,mn();if(Ue&&Ae.nodes&&Ae.nodes.size&&!Kr.has(Ae)){Kr.add(Ae);var At=oe==="forward"?0:Ae.nodes.size-1;return le=le.push(At),Ae=_n.assertNode(le),It()}if(oe==="forward"){var Ut=ke.increment(le),jn=_n.getNode(Ut);if(jn)return le=Ut,Ae=jn,It()}if(oe==="backward"&&le.last()!==0){var Jt=ke.decrement(le),dr=_n.getNode(Jt);if(dr)return le=Jt,Ae=dr,It()}return dt&&le.size?(le=ke.lift(le),Ae=_n.assertNode(le),Kr.has(Ae)?mn():(Kr.add(Ae),mt?It():mn())):(le=null,Ae=null,mn())};return{next:Mn}})}},{key:"createPoint",value:function(D){D=_e.createProperties(D);var P=this.resolvePoint(D);return P}},{key:"createRange",value:function(D){D=Kn.createProperties(D);var P=this.resolveRange(D);return P}},{key:"createSelection",value:function(D){D=nn.createProperties(D);var P=this.resolveSelection(D);return P}},{key:"descendants",value:function(D){var P=this.createIterable(se({path:[]},D));return P}},{key:"filterDescendants",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nr,P=[],oe=!0,Ie=!1,Ue=void 0;try{for(var Xe=this.descendants()[Symbol.iterator](),dt;!(oe=(dt=Xe.next()).done);oe=!0){var kt=dt.value,dn=T(kt,2),Vn=dn[0],qn=dn[1];D(Vn,qn)&&P.push(Vn)}}catch(yr){Ie=!0,Ue=yr}finally{try{!oe&&Xe.return&&Xe.return()}finally{if(Ie)throw Ue}}return(0,l.List)(P)}},{key:"findDescendant",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nr,P=!0,oe=!1,Ie=void 0;try{for(var Ue=this.descendants()[Symbol.iterator](),Xe;!(P=(Xe=Ue.next()).done);P=!0){var dt=Xe.value,kt=T(dt,2),dn=kt[0],Vn=kt[1];if(D(dn,Vn))return dn}}catch(qn){oe=!0,Ie=qn}finally{try{!P&&Ue.return&&Ue.return()}finally{if(oe)throw Ie}}return null}},{key:"forEachDescendant",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nr,P=!0,oe=!1,Ie=void 0;try{for(var Ue=this.descendants()[Symbol.iterator](),Xe;!(P=(Xe=Ue.next()).done);P=!0){var dt=Xe.value,kt=D.apply(void 0,B(dt));if(kt===!1)return}}catch(dn){oe=!0,Ie=dn}finally{try{!P&&Ue.return&&Ue.return()}finally{if(oe)throw Ie}}}},{key:"getActiveMarksAtRange",value:function(D){if(D=this.resolveRange(D),D.isUnset)return(0,l.Set)();if(D.isCollapsed){var P=D,oe=P.start;return this.getInsertMarksAtPoint(oe)}var Ie=D,Ue=Ie.start,Xe=Ie.end,dt=Ue.path,kt=Ue.offset,dn=Xe.path,Vn=Xe.offset,qn=this.getDescendant(dt),yr=this.getDescendant(dn);if(!dt.equals(dn)){for(;!dt.equals(dn)&&Vn===0;){var ci=this.texts({path:dn,direction:"backward"}),hi=T(ci,1),Ti=T(hi[0],2);yr=Ti[0],dn=Ti[1],Vn=yr.text.length}for(;!dt.equals(dn)&&kt===qn.text.length;){var Vi=this.texts({path:dt}),Di=T(Vi,1),Pi=T(Di[0],2);qn=Pi[0],dt=Pi[1],kt=0}}if(dt.equals(dn))return qn.marks;var mt=qn.marks;if(mt.size===0)return(0,l.Set)();var tn=yr.marks,or=mt.intersect(tn);if(or.size===0)return or;var rt=this.texts({path:dt}),St=T(rt,1),_n=T(St[0],2);for(qn=_n[0],dt=_n[1];!dt.equals(dn);){if(qn.text.length!==0&&(or=or.intersect(qn.marks),or.size===0))return(0,l.Set)();var vn=this.texts({path:dt}),Ln=T(vn,1),_r=T(Ln[0],2);qn=_r[0],dt=_r[1]}return or}},{key:"getAncestors",value:function(D){var P=this.ancestors(D),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}).reverse(),Ie=(0,l.List)(oe);return Ie}},{key:"getBlocks",value:function(){var D=this.blocks({onlyLeaves:!0}),P=Array.from(D,function(Ie){var Ue=T(Ie,1),Xe=Ue[0];return Xe}),oe=(0,l.List)(P);return oe}},{key:"getBlocksByType",value:function(D){var P=this.blocks({onlyLeaves:!0,onlyTypes:[D]}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"getChild",value:function(D){if(D=this.resolvePath(D),!D||D.size>1)return null;var P=this.nodes.get(D.first());return P}},{key:"getClosest",value:function(D,P){var oe=!0,Ie=!1,Ue=void 0;try{for(var Xe=this.ancestors(D)[Symbol.iterator](),dt;!(oe=(dt=Xe.next()).done);oe=!0){var kt=dt.value,dn=T(kt,2),Vn=dn[0],qn=dn[1];if(P(Vn,qn))return Vn}}catch(yr){Ie=!0,Ue=yr}finally{try{!oe&&Xe.return&&Xe.return()}finally{if(Ie)throw Ue}}return null}},{key:"getClosestBlock",value:function(D){var P=this.getClosest(D,function(oe){return oe.object==="block"});return P}},{key:"getClosestInline",value:function(D){var P=this.getClosest(D,function(oe){return oe.object==="inline"});return P}},{key:"getClosestVoid",value:function(D,P){(0,h.A)(!bt.isValue(P),"As of Slate 0.42.0, the `node.getClosestVoid` method takes an `editor` instead of a `value`.");var oe=this.getClosest(D,function(Ie){return P.isVoid(Ie)});return oe}},{key:"getCommonAncestor",value:function(D,P){if(D=this.resolvePath(D),P=this.resolvePath(P),!D||!P)return null;var oe=ke.relate(D,P),Ie=this.getNode(oe);return Ie}},{key:"getDecorations",value:function(D){var P=D.run("decorateNode",this);return P=Et.createList(P),P}},{key:"getDepth",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(D=this.resolvePath(D),!D)return null;var oe=this.getNode(D),Ie=oe?D.size-1+P:null;return Ie}},{key:"getDescendant",value:function(D){if(D=this.resolvePath(D),!D||!D.size)return null;var P=this;return D.forEach(function(oe){return P=P.getIn(["nodes",oe]),!!P}),P}},{key:"getDescendantsAtRange",value:function(D){var P=this.descendants({range:D}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"getFragmentAtRange",value:function(D){if(D=this.resolveRange(D),D.isUnset)return Cn.create();for(var P=D,oe=P.start,Ie=P.end,Ue=this,Xe=Ie.path,dt=Ie.offset,kt="end";Xe.size;){var dn=Xe.last();Ue=Ue.splitNode(Xe,dt),dt=dn+1,Xe=ke.lift(Xe),!Xe.size&&kt==="end"&&(Xe=oe.path,dt=oe.offset,kt="start")}var Vn=oe.path.first()+1,qn=Ie.path.first()+2,yr=Ue.nodes.slice(Vn,qn),ci=Cn.create({nodes:yr});return ci}},{key:"getFurthest",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nr,oe=this.ancestors(D),Ie=Array.from(oe).reverse(),Ue=!0,Xe=!1,dt=void 0;try{for(var kt=Ie[Symbol.iterator](),dn;!(Ue=(dn=kt.next()).done);Ue=!0){var Vn=dn.value,qn=T(Vn,2),yr=qn[0],ci=qn[1];if(P(yr,ci))return yr}}catch(hi){Xe=!0,dt=hi}finally{try{!Ue&&kt.return&&kt.return()}finally{if(Xe)throw dt}}return null}},{key:"getFurthestBlock",value:function(D){var P=this.getFurthest(D,function(oe){return oe.object==="block"});return P}},{key:"getFurthestChild",value:function(D){if(D=this.resolvePath(D),!D||!D.size)return null;var P=this.nodes.get(D.first());return P}},{key:"getFurthestInline",value:function(D){var P=this.getFurthest(D,function(oe){return oe.object==="inline"});return P}},{key:"getInlines",value:function(){var D=this.inlines({onlyLeaves:!0}),P=Array.from(D,function(Ie){var Ue=T(Ie,1),Xe=Ue[0];return Xe}),oe=(0,l.List)(P);return oe}},{key:"getInlinesByType",value:function(D){var P=this.inlines({onlyLeaves:!0,onlyTypes:[D]}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"getInsertMarksAtPoint",value:function(D){D=this.resolvePoint(D);var P=D,oe=P.path,Ie=P.offset,Ue=this.getDescendant(oe);if(Ie!==0)return Ue.marks;var Xe=void 0,dt=void 0,kt=!0,dn=!1,Vn=void 0;try{for(var qn=this.ancestors(oe)[Symbol.iterator](),yr;!(kt=(yr=qn.next()).done);kt=!0){var ci=yr.value,hi=T(ci,2),Ti=hi[0],Vi=hi[1];Ti.object==="block"&&(Xe=Ti,dt=Vi)}}catch(St){dn=!0,Vn=St}finally{try{!kt&&qn.return&&qn.return()}finally{if(dn)throw Vn}}var Di=ke.drop(oe,dt.size),Pi=Xe.texts({path:Di,direction:"backward"}),mt=T(Pi,1),tn=mt[0];if(!tn)return Ue.marks;var or=T(tn,1),rt=or[0];return rt.marks}},{key:"getInsertMarksAtRange",value:function(D){D=this.resolveRange(D);var P=D,oe=P.start;if(D.isUnset)return(0,l.Set)();if(D.isCollapsed)return this.getInsertMarksAtPoint(oe);var Ie=this.getDescendant(oe.path);return Ie.marks}},{key:"getLeafBlocksAtRange",value:function(D){var P=this.blocks({range:D,onlyLeaves:!0}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"getLeafInlinesAtRange",value:function(D){var P=this.inlines({range:D,onlyLeaves:!0}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"getNodesToPathsMap",value:function(){var D=this,P=typeof window>"u"?new an.Map:new window.Map;return P.set(D,ke.create([])),D.forEachDescendant(function(oe,Ie){P.set(oe,Ie)}),P}},{key:"getMarks",value:function(){var D=this.marks(),P=Array.from(D,function(oe){var Ie=T(oe,1),Ue=Ie[0];return Ue});return(0,l.OrderedSet)(P)}},{key:"getMarksAtRange",value:function(D){var P=this.marks({range:D}),oe=Array.from(P,function(Ie){var Ue=T(Ie,1),Xe=Ue[0];return Xe});return(0,l.OrderedSet)(oe)}},{key:"getMarksByType",value:function(D){var P=this.marks({onlyTypes:[D]}),oe=Array.from(P,function(Ie){var Ue=T(Ie,1),Xe=Ue[0];return Xe});return(0,l.OrderedSet)(oe)}},{key:"getNextBlock",value:function(D){var P=this.blocks({path:D,onlyLeaves:!0}),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getNextNode",value:function(D){var P=this.createIterable({path:D,downward:!1}),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getNextSibling",value:function(D){var P=this.siblings(D),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getNextText",value:function(D){var P=this.texts({path:D}),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getOffset",value:function(D){D=this.resolvePath(D),this.assertDescendant(D);var P=D.first(),oe=this.nodes.slice(0,P).reduce(function(Ue,Xe){return Ue+Xe.text.length},0),Ie=D.size===1?oe:oe+this.nodes.get(P).getOffset(ke.drop(D));return Ie}},{key:"getOffsetAtRange",value:function(D){if(D=this.resolveRange(D),D.isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(D.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var P=D,oe=P.start,Ie=this.getOffset(oe.path)+oe.offset;return Ie}},{key:"getParent",value:function(D){if(D=this.resolvePath(D),!D||!D.size)return null;var P=ke.lift(D),oe=this.getNode(P);return oe}},{key:"getPreviousBlock",value:function(D){var P=this.blocks({path:D,onlyLeaves:!0,direction:"backward"}),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getPreviousNode",value:function(D){var P=this.createIterable({path:D,downward:!1,direction:"backward"}),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getPreviousSibling",value:function(D){var P=this.siblings(D,{direction:"backward"}),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getPreviousText",value:function(D){var P=this.texts({path:D,direction:"backward"}),oe=T(P,1),Ie=oe[0],Ue=Ie?Ie[0]:null;return Ue}},{key:"getRootBlocksAtRange",value:function(D){var P=this.blocks({range:D,onlyRoots:!0}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"getRootInlinesAtRange",value:function(D){var P=this.inlines({range:D,onlyRoots:!0}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"getTextAtOffset",value:function(D){if(D===0)return this.getFirstText();if(D===this.text.length)return this.getLastText();if(D<0||D>this.text.length)return null;var P=0,oe=!0,Ie=!1,Ue=void 0;try{for(var Xe=this.texts()[Symbol.iterator](),dt;!(oe=(dt=Xe.next()).done);oe=!0){var kt=dt.value,dn=T(kt,1),Vn=dn[0];if(P+=Vn.text.length,P>D)return Vn}}catch(qn){Ie=!0,Ue=qn}finally{try{!oe&&Xe.return&&Xe.return()}finally{if(Ie)throw Ue}}return null}},{key:"getTextDirection",value:function(){var D=L()(this.text);return D==="neutral"?null:D}},{key:"getTexts",value:function(){var D=this.texts(),P=Array.from(D,function(Ie){var Ue=T(Ie,1),Xe=Ue[0];return Xe}),oe=(0,l.List)(P);return oe}},{key:"getTextsAtRange",value:function(D){var P=this.texts({range:D}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"hasBlockChildren",value:function(){return!!(this.nodes&&this.nodes.find(function(D){return D.object==="block"}))}},{key:"hasChild",value:function(D){var P=this.getChild(D);return!!P}},{key:"hasInlineChildren",value:function(){return!!(this.nodes&&this.nodes.find(function(D){return D.object==="inline"||D.object==="text"}))}},{key:"hasDescendant",value:function(D){var P=this.getDescendant(D);return!!P}},{key:"hasVoidParent",value:function(D,P){(0,h.A)(!bt.isValue(P),"As of Slate 0.42.0, the `node.hasVoidParent` method takes an `editor` instead of a `value`.");var oe=this.getClosestVoid(D,P);return!!oe}},{key:"inlines",value:function(){var D=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=P.onlyLeaves,Ie=P.onlyRoots,Ue=P.onlyTypes,Xe=P.match,dt=te(P,["onlyLeaves","onlyRoots","onlyTypes","match"]),kt=this.descendants(se({includeBlocks:!1,includeTexts:!1,includeDocument:!1},dt,{match:function(Vn,qn){return Ue&&!Ue.includes(Vn.type)||oe&&!Vn.isLeafInline()||Ie&&D.getParent(qn).object!=="block"?!1:!(Xe&&!Xe(Vn,qn))}}));return kt}},{key:"insertNode",value:function(D,P){D=this.resolvePath(D);var oe=D.last(),Ie=ke.lift(D),Ue=this.assertNode(Ie),Xe=Ue.nodes.splice(oe,0,P);Ue=Ue.set("nodes",Xe);var dt=this.replaceNode(Ie,Ue);return dt}},{key:"insertText",value:function(D,P,oe){D=this.resolvePath(D);var Ie=this.assertDescendant(D);Ie=Ie.insertText(P,oe);var Ue=this.replaceNode(D,Ie);return Ue}},{key:"isLeafBlock",value:function(){return!(this.object!=="block"||this.nodes.some(function(D){return D.object==="block"}))}},{key:"isLeafInline",value:function(){return!(this.object!=="inline"||this.nodes.some(function(D){return D.object==="inline"}))}},{key:"isInRange",value:function(D,P){if(D=this.resolvePath(D),P=this.resolveRange(P),P.isUnset)return!1;var oe=ke.compare(D,P.start.path),Ie=ke.compare(D,P.end.path),Ue=oe!==-1&&Ie!==1;return Ue}},{key:"mapChildren",value:function(){var D=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nr,oe=this.nodes;oe.forEach(function(Ue,Xe){var dt=P(Ue,Xe,D.nodes);dt!==Ue&&(oe=oe.set(dt.key,dt))});var Ie=this.set("nodes",oe);return Ie}},{key:"mapDescendants",value:function(){var D=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nr,oe=this.nodes;oe.forEach(function(Ue,Xe){var dt=Ue;dt.object!=="text"&&(dt=dt.mapDescendants(P)),dt=P(dt,Xe,D.nodes),dt!==Ue&&(oe=oe.set(Xe,dt))});var Ie=this.set("nodes",oe);return Ie}},{key:"marks",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=D.onlyTypes,oe=P===void 0?null:P,Ie=D.match,Ue=te(D,["onlyTypes","match"]),Xe=this.texts(Ue);return ce({},Symbol.iterator,function(){var dt=Xe[Symbol.iterator](),kt=null,dn=null,Vn=[],qn=function yr(){if(Vn.length){var ci=Vn.shift();return oe&&!oe.includes(ci.type)||Ie&&!Ie(ci,kt,dn)?yr():{value:[ci,kt,dn],done:!1}}var hi=dt.next(),Ti=hi.value,Vi=hi.done;if(Vi)return{done:!0};var Di=T(Ti,2);return kt=Di[0],dn=Di[1],Vn=kt.marks.toArray(),yr()};return{next:qn}})}},{key:"mergeNode",value:function(D){var P=this.assertNode(D);if(D=this.resolvePath(D),D.last()===0)throw new Error("Unable to merge node because it has no previous sibling: "+P);var oe=ke.decrement(D),Ie=this.assertNode(oe);if(Ie.object!==P.object)throw new Error("Unable to merge two different kinds of nodes: "+Ie+" and "+P);var Ue=Ie.object==="text"?Ie.mergeText(P):Ie.set("nodes",Ie.nodes.concat(P.nodes)),Xe=this;return Xe=Xe.removeNode(D),Xe=Xe.removeNode(oe),Xe=Xe.insertNode(oe,Ue),Xe}},{key:"moveNode",value:function(D,P){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Ie=this.assertNode(D);D=this.resolvePath(D),P=this.resolvePath(P,oe);var Ue=ke.lift(P);this.assertNode(Ue);var Xe=ln.create({type:"move_node",path:D,newPath:P});P=ke.transform(D,Xe).first();var dt=this;return dt=dt.removeNode(D),dt=dt.insertNode(P,Ie),dt}},{key:"removeMark",value:function(D,P){D=this.resolvePath(D);var oe=this.assertDescendant(D);oe=oe.removeMark(P);var Ie=this.replaceNode(D,oe);return Ie}},{key:"removeNode",value:function(D){this.assertDescendant(D),D=this.resolvePath(D);var P=D.flatMap(function(Ie){return["nodes",Ie]}),oe=this.deleteIn(P);return oe}},{key:"removeText",value:function(D,P,oe){var Ie=this.assertDescendant(D);Ie=Ie.removeText(P,oe.length);var Ue=this.replaceNode(D,Ie);return Ue}},{key:"replaceNode",value:function(D,P){if(D=this.resolvePath(D),!D)throw new Error("Unable to replace a node because it could not be found in the first place: "+D);if(!D.size)return P;this.assertNode(D);var oe=D.flatMap(function(Ue){return["nodes",Ue]}),Ie=this.setIn(oe,P);return Ie}},{key:"resolveAnnotation",value:function(D){return D=on.create(D),D=D.normalize(this),D}},{key:"resolveDecoration",value:function(D){return D=Et.create(D),D=D.normalize(this),D}},{key:"resolvePoint",value:function(D){return D=_e.create(D),D=D.normalize(this),D}},{key:"resolveRange",value:function(D){return D=Kn.create(D),D=D.normalize(this),D}},{key:"resolveSelection",value:function(D){return D=nn.create(D),D=D.normalize(this),D}},{key:"setNode",value:function(D,P){var oe=this.assertNode(D);oe=oe.merge(P);var Ie=this.replaceNode(D,oe);return Ie}},{key:"setMark",value:function(D,P,oe){D=this.resolvePath(D);var Ie=this.assertDescendant(D);Ie=Ie.setMark(P,oe);var Ue=this.replaceNode(D,Ie);return Ue}},{key:"siblings",value:function(D,P){var oe=this.createIterable(se({path:D,upward:!1,downward:!1},P));return oe}},{key:"splitNode",value:function(D,P,oe){var Ie=this.assertNode(D);D=this.resolvePath(D);var Ue=void 0,Xe=void 0;if(Ie.object==="text"){var dt=Ie.splitText(P),kt=T(dt,2);Ue=kt[0],Xe=kt[1]}else{var dn=Ie.nodes.take(P),Vn=Ie.nodes.skip(P);Ue=Ie.set("nodes",dn),Xe=Ie.set("nodes",Vn).regenerateKey()}oe&&Ie.object!=="text"&&(Xe=Xe.merge(oe));var qn=this;return qn=qn.removeNode(D),qn=qn.insertNode(D,Xe),qn=qn.insertNode(D,Ue),qn}},{key:"texts",value:function(D){var P=this.descendants(se({includeBlocks:!1,includeInlines:!1,includeDocument:!1},D));return P}},{key:"getBlocksAtRange",value:function(D){return p(!1,"As of slate@0.44 the `node.getBlocksAtRange` method has been renamed to `getLeafBlocksAtRange`."),this.getLeafBlocksAtRange(D)}},{key:"getBlocksAtRangeAsArray",value:function(D){return p(!1,"As of slate@0.44 the `node.getBlocksAtRangeAsArray` method has been renamed to `getLeafBlocksAtRangeAsArray`."),this.getLeafBlocksAtRangeAsArray(D)}},{key:"getInlinesAtRange",value:function(D){return p(!1,"As of slate@0.44 the `node.getInlinesAtRange` method has been renamed to `getLeafInlinesAtRange`."),this.getLeafInlinesAtRange(D)}},{key:"getInlinesAtRangeAsArray",value:function(D){return p(!1,"As of slate@0.44 the `node.getInlinesAtRangeAsArray` method has been renamed to `getLeafInlinesAtRangeAsArray`."),this.getLeafInlinesAtRangeAsArray(D)}},{key:"getNextTextAndPath",value:function(D){return p(!1,"As of slate@0.47, the `getNextTextAndPath` method has been renamed to `getNextTextEntry`."),this.getNextTextEntry(D)}},{key:"getNextDeepMatchingNodeAndPath",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};p(!1,"As of slate@0.47, the `getNextDeepMatchingNodeAndPath` method is deprecated.");var oe=this.getNextMatchingNodeAndPath(D);if(!oe)return null;for(var Ie=T(oe,2),Ue=Ie[0],Xe=Ie[1],dt=void 0,kt=function(){return dt=Ue.object!=="text"&&Ue.findFirstDescendantAndPath(P,Xe),dt};kt(dt);){var dn=dt,Vn=T(dn,2);Ue=Vn[0],Xe=Vn[1]}return Ue?P(Ue)?[Ue,Xe]:this.getNextDeepMatchingNodeAndPath(oe[1],P):null}},{key:"getPreviousTextAndPath",value:function(D){return p(!1,"As of slate@0.47, the `getPreviousTextAndPath` method has been renamed to `getPreviousTextEntry`."),this.getPreviousTextEntry(D)}},{key:"findFirstDescendantAndPath",value:function(D,P){return p(!1,"As of slate@0.47, the `findFirstDescendantAndPath` method is deprecated."),this.findDescendantAndPath(D,P,!1)}},{key:"getPreviousMatchingNodeAndPath",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};if(p(!1,"As of slate@0.47, the `getPreviousMatchingNodeAndPath` method is deprecated."),!D)return null;for(var oe=D.size;oe>0;oe--){var Ie=D.slice(0,oe);if(Ie.last()!==0){for(var Ue=ke.decrement(Ie),Xe=this.getNode(Ue);Xe&&!P(Xe);)Ue=ke.decrement(Ue),Xe=this.getNode(Ue);if(Xe)return[Xe,Ue]}}return null}},{key:"getPreviousDeepMatchingNodeAndPath",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};p(!1,"As of slate@0.47, the `getPreviousDeepMatchingNodeAndPath` method is deprecated.");var oe=this.getPreviousMatchingNodeAndPath(D);if(!oe)return null;for(var Ie=T(oe,2),Ue=Ie[0],Xe=Ie[1],dt=void 0,kt=function(){return dt=Ue.object!=="text"&&Ue.findLastDescendantAndPath(P,Xe),dt};kt(dt);){var dn=dt,Vn=T(dn,2);Ue=Vn[0],Xe=Vn[1]}return Ue?P(Ue)?[Ue,Xe]:this.getPreviousDeepMatchingNodeAndPath(oe[1],P):null}},{key:"findLastDescendantAndPath",value:function(D,P){return p(!1,"As of slate@0.47, the `findLastDescendantAndPath` method is deprecated."),this.findDescendantAndPath(D,P,!0)}},{key:"findDescendantAndPath",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke.create([]),oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;p(!1,"As of slate@0.47, the `findDescendantAndPath` method is deprecated.");var Ie=void 0,Ue=void 0;return this.forEachDescendantWithPath(function(Xe,dt,kt){if(D(Xe,dt,kt))return Ie=Xe,Ue=dt,!1},P,oe),Ie?[Ie,Ue]:null}},{key:"forEachDescendantWithPath",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke.create([]),oe=arguments[2];p(!1,"As of slate@0.47, the `forEachDescendantWithPath` method is deprecated.");var Ie=this.nodes,Ue=void 0;return oe&&(Ie=Ie.reverse()),Ie.forEach(function(Xe,dt){var kt=P.concat(dt);if(D(Xe,kt,Ie)===!1)return Ue=!1,!1;if(Xe.object!=="text")return Ue=Xe.forEachDescendantWithPath(D,kt,oe),Ue}),Ue}},{key:"getNextMatchingNodeAndPath",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0};if(p(!1,"As of slate@0.47, the `getNextMatchingNodeAndPath` method is deprecated."),!D)return null;for(var oe=D.size;oe>0;oe--){for(var Ie=D.slice(0,oe),Ue=ke.increment(Ie),Xe=this.getNode(Ue);Xe&&!P(Xe);)Ue=ke.increment(Ue),Xe=this.getNode(Ue);if(Xe)return[Xe,Ue]}return null}},{key:"getSelectionIndexes",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;p(!1,"As of slate@0.47, the `getSelectionIndexes` method is deprecated.");var oe=D.start,Ie=D.end;if(!P||D.isUnset)return null;if(oe.path.equals(Ie.path)){var Ue=this.getFurthestAncestor(oe.path),Xe=Ue?this.nodes.indexOf(Ue):null;return{start:Xe,end:Xe+1}}var dt=null,kt=null;return this.nodes.forEach(function(dn,Vn){return dn.object==="text"?(dt==null&&dn.key===oe.key&&(dt=Vn),kt==null&&dn.key===Ie.key&&(kt=Vn+1)):(dt==null&&dn.hasDescendant(oe.key)&&(dt=Vn),kt==null&&dn.hasDescendant(Ie.key)&&(kt=Vn+1)),dt==null||kt==null}),P&&dt==null&&(dt=0),P&&kt==null&&(kt=this.nodes.size),dt==null?null:{start:dt,end:kt}}},{key:"getTextsBetweenPositionsAsArray",value:function(D,P){return p(!1,"As of slate@0.47, the `getTextsBetweenPositionsAsArray` method is deprecated."),D=this.resolvePath(D),P=this.resolvePath(P),this.getTextsBetweenPathPositionsAsArray(D,P)}},{key:"getOrderedMarksBetweenPositions",value:function(D,P,oe,Ie){p(!1,"As of slate@0.47, the `getOrderedMarksBetweenPositions` method is deprecated."),D=this.resolvePath(D),oe=this.resolvePath(oe);var Ue=this.getDescendant(D);if(ke.isEqual(D,oe))return Ue.marks;var Xe=this.getTextsBetweenPathPositionsAsArray(D,oe);return(0,l.OrderedSet)().withMutations(function(dt){Xe.forEach(function(kt){dt.union(kt.marks)})})}},{key:"getTextsBetweenPathPositionsAsArray",value:function(D,P){if(p(!1,"As of slate@0.47, the `getTextsBetweenPathPositionsAsArray` method is deprecated."),D&&P&&ke.isEqual(D,P))return[this.getDescendant(D)];if(!D&&!P)return this.getTextsAsArray();var oe=D?D.get(0,0):0,Ie=P?P.get(0,this.nodes.size-1):this.nodes.size-1,Ue=[];return this.nodes.slice(oe,Ie+1).forEach(function(Xe,dt){if(Xe.object==="text")Ue.push(Xe);else{var kt=D&&dt===0?ke.drop(D):null,dn=P&&dt===Ie-oe?ke.drop(P):null;Ue=Ue.concat(Xe.getTextsBetweenPathPositionsAsArray(kt,dn))}}),Ue}},{key:"getFurthestAncestor",value:function(D){return p(!1,"As of slate@0.47, the `getFurthestAncestor` method has been renamed to `getFurthestChild`."),this.getFurthestChild(D)}},{key:"getLeafBlocksAtRangeAsArray",value:function(D){if(p(!1,"As of slate@0.47, the `getLeafBlocksAtRangeAsArray` method is deprecated."),D=this.resolveRange(D),D.isUnset)return[];var P=D,oe=P.start,Ie=P.end;return this.getLeafBlocksBetweenPathPositionsAsArray(oe.path,Ie.path)}},{key:"getLeafBlocksBetweenPathPositionsAsArray",value:function(D,P){if(p(!1,"As of slate@0.47, the `getLeafBlocksBetweenPathPositionsAsArray` method is deprecated."),D&&P&&ke.isEqual(D,P))return[this.getClosestBlock(D)];if(!D&&!P)return this.getBlocksAsArray();var oe=D?D.get(0,0):0,Ie=P?P.get(0,this.nodes.size-1):this.nodes.size-1,Ue=[];return this.nodes.slice(oe,Ie+1).forEach(function(Xe,dt){if(Xe.object==="block")if(Xe.isLeafBlock())Ue.push(Xe);else{var kt=D&&dt===0?ke.drop(D):null,dn=P&&dt===Ie-oe?ke.drop(P):null;Ue=Ue.concat(Xe.getLeafBlocksBetweenPathPositionsAsArray(kt,dn))}}),Ue}},{key:"getBlocksAsArray",value:function(){p(!1,"As of slate@0.47, the `getBlocksAsArray` method is deprecated.");var D=this.blocks({onlyLeaves:!0}),P=Array.from(D,function(oe){var Ie=T(oe,1),Ue=Ie[0];return Ue});return P}},{key:"getBlocksByTypeAsArray",value:function(D){p(!1,"As of slate@0.47, the `getBlocksByTypeAsArray` method is deprecated.");var P=this.blocks({onlyLeaves:!0,onlyTypes:[D]}),oe=Array.from(P,function(Ie){var Ue=T(Ie,1),Xe=Ue[0];return Xe});return oe}},{key:"getFurthestOnlyChildAncestor",value:function(D){p(!1,"As of slate@0.47, the `getFurthestOnlyChildAncestor` method is deprecated.");var P=this.getAncestors(D);if(!P)return null;var oe=P.rest().reverse().takeUntil(function(Ie){return Ie.nodes.size>1}).last();return oe||null}},{key:"getInlinesAsArray",value:function(){p(!1,"As of slate@0.47, the `getInlinesAsArray` method is deprecated.");var D=Array.from(this.inlines({onlyLeaves:!0}),function(P){var oe=T(P,1),Ie=oe[0];return Ie});return D}},{key:"getInlinesByTypeAsArray",value:function(D){p(!1,"As of slate@0.47, the `getInlinesByTypeAsArray` method is deprecated.");var P=Array.from(this.inlines({onlyLeaves:!0,onlyTypes:[D]}),function(oe){var Ie=T(oe,1),Ue=Ie[0];return Ue});return P}},{key:"getLeafInlinesAtRangeAsArray",value:function(D){var P=this;if(p(!1,"As of slate@0.47, the `getLeafInlinesAtRangeAsArray` method is deprecated."),D=this.resolveRange(D),D.isUnset)return[];var oe=this.getTextsAtRangeAsArray(D).map(function(Ie){return P.getClosestInline(Ie.key)}).filter(function(Ie){return Ie});return oe}},{key:"getOrderedMarks",value:function(){return p(!1,"As of slate@0.47, the `getOrderedMarks` method has been folded into `getMarks`, which will now return an ordered set."),this.getMarks()}},{key:"getOrderedMarksAtRange",value:function(D){return p(!1,"As of slate@0.47, the `getOrderedMarksAtRange` method has been folded into `getMarksAtRange`, which will now return an ordered set."),this.getMarksAtRange(D)}},{key:"getOrderedMarksByType",value:function(D){return p(!1,"As of slate@0.47, the `getOrderedMarksByType` method has been folded into `getMarksByType`, which will now return an ordered set."),this.getMarksByType(D)}},{key:"getMarksByTypeAsArray",value:function(D){p(!1,"As of slate@0.47, the `getMarksByTypeAsArray` method is deprecated.");var P=this.nodes.reduce(function(oe,Ie){return Ie.object==="text"?oe.concat(Ie.marks.filter(function(Ue){return Ue.type===D})):oe.concat(Ie.getMarksByTypeAsArray(D))},[]);return P}},{key:"getMarksAsArray",value:function(){var D;p(!1,"As of slate@0.47, the `getMarksAsArray` method is deprecated.");var P=[],oe=!0,Ie=!1,Ue=void 0;try{for(var Xe=this.texts()[Symbol.iterator](),dt;!(oe=(dt=Xe.next()).done);oe=!0){var kt=dt.value,dn=T(kt,1),Vn=dn[0];P.push(Vn.marks.toArray())}}catch(yr){Ie=!0,Ue=yr}finally{try{!oe&&Xe.return&&Xe.return()}finally{if(Ie)throw Ue}}var qn=(D=[]).concat.apply(D,P);return qn}},{key:"getRootInlinesAtRangeAsArray",value:function(D){var P=this;if(p(!1,"As of slate@0.47, the `getRootInlinesAtRangeAsArray` method is deprecated."),D=this.resolveRange(D),D.isUnset)return(0,l.List)();var oe=this.getTextsAtRangeAsArray(D).map(function(Ie){return P.getFurthestInline(Ie.key)}).filter(function(Ie){return Ie});return oe}},{key:"getTextsAsArray",value:function(){p(!1,"As of slate@0.47, the `getTextsAsArray` method is deprecated.");var D=this.texts(),P=Array.from(D,function(oe){var Ie=T(oe,1),Ue=Ie[0];return Ue});return P}},{key:"getTextsAtRangeAsArray",value:function(D){p(!1,"As of slate@0.47, the `getTextsAtRangeAsArray` method is deprecated.");var P=this.texts({range:D}),oe=Array.from(P,function(Ie){var Ue=T(Ie,1),Xe=Ue[0];return Xe});return oe}},{key:"getMarksAtPosition",value:function(D,P){p(!1,"As of slate@0.47, the `getMarksAtPosition` method is deprecated."),D=this.resolvePath(D);var oe=this.getDescendant(D),Ie=oe.marks;if(P!==0)return(0,l.OrderedSet)(Ie);var Ue=this.getClosestBlock(D);if(Ue.text==="")return(0,l.OrderedSet)(Ie);var Xe=this.texts({path:D,direction:"backward"}),dt=T(Xe,1),kt=dt[0];if(!kt)return(0,l.OrderedSet)();var dn=T(kt,2),Vn=dn[0],qn=dn[1];return Ue.hasDescendant(qn)?(0,l.OrderedSet)(Vn.marks):(0,l.OrderedSet)(Ie)}},{key:"getNodesAtRange",value:function(D){p(!1,"As of slate@0.47, the `getNodesAtRange` method has been renamed to `getDescendantsAtRange`.");var P=this.descendants({range:D}),oe=Array.from(P,function(Ue){var Xe=T(Ue,1),dt=Xe[0];return dt}),Ie=(0,l.List)(oe);return Ie}},{key:"isNodeInRange",value:function(D,P){return p(!1,"As of slate@0.47, the `isNodeInRange` method has been renamed to `isInRange`."),this.isInRange(D,P)}},{key:"text",get:function(){return this.getText()}}]),V}(),$r=["Child","Depth","Descendant","Node","Parent","Path"],Fr=function(Y){vr.prototype["assert"+Y]=function(D){for(var P=arguments.length,oe=Array(P>1?P-1:0),Ie=1;Ie<P;Ie++)oe[Ie-1]=arguments[Ie];var Ue=this["get"+Y].apply(this,[D].concat(oe));if(Ue==null)throw new Error("`Node.assert"+Y+"` could not find node with path or key: "+D);return Ue}},qr=!0,jr=!1,vi=void 0;try{for(var Mi=$r[Symbol.iterator](),ra;!(qr=(ra=Mi.next()).done);qr=!0){var Yi=ra.value;Fr(Yi)}}catch(V){jr=!0,vi=V}finally{try{!qr&&Mi.return&&Mi.return()}finally{if(jr)throw vi}}k(vr.prototype,["getBlocksAsArray","getBlocksByTypeAsArray","getDecorations","getFragmentAtRange","getInlinesAsArray","getInlinesByTypeAsArray","getInsertMarksAtRange","getLeafBlocksAtRangeAsArray","getLeafBlocksAtRangeAsArray","getLeafInlinesAtRangeAsArray","getMarksAsArray","getMarksAtPosition","getMarksByTypeAsArray","getNextBlock","getNodesAtRange","getNodesToPathsMap","getOffset","getOffsetAtRange","getOrderedMarksBetweenPositions","getPreviousBlock","getRootBlocksAtRange","getRootInlinesAtRangeAsArray","getTextAtOffset","getTextDirection","getTextsAsArray","getTextsBetweenPathPositionsAsArray"]),ji(vr,[Nn,Cn,er]);var ua=function(){function V(){z(this,V)}return Q(V,[{key:"flip",value:function(){var D=this.setPoints([this.focus,this.anchor]);return D}},{key:"moveForward",value:function(D){return this.updatePoints(function(P){return P.moveForward(D)})}},{key:"moveBackward",value:function(D){return this.updatePoints(function(P){return P.moveBackward(D)})}},{key:"moveAnchorBackward",value:function(D){var P=this.setAnchor(this.anchor.moveBackward(D));return P}},{key:"moveAnchorForward",value:function(D){var P=this.setAnchor(this.anchor.moveForward(D));return P}},{key:"moveAnchorTo",value:function(D,P){var oe=this.setAnchor(this.anchor.moveTo(D,P));return oe}},{key:"moveAnchorToStartOfNode",value:function(D){var P=this.setAnchor(this.anchor.moveToStartOfNode(D));return P}},{key:"moveAnchorToEndOfNode",value:function(D){var P=this.setAnchor(this.anchor.moveToEndOfNode(D));return P}},{key:"moveEndBackward",value:function(D){var P=this.setEnd(this.end.moveBackward(D));return P}},{key:"moveEndForward",value:function(D){var P=this.setEnd(this.end.moveForward(D));return P}},{key:"moveEndTo",value:function(D,P){var oe=this.setEnd(this.end.moveTo(D,P));return oe}},{key:"moveEndToStartOfNode",value:function(D){var P=this.setEnd(this.end.moveToStartOfNode(D));return P}},{key:"moveEndToEndOfNode",value:function(D){var P=this.setEnd(this.end.moveToEndOfNode(D));return P}},{key:"moveFocusBackward",value:function(D){var P=this.setFocus(this.focus.moveBackward(D));return P}},{key:"moveFocusForward",value:function(D){var P=this.setFocus(this.focus.moveForward(D));return P}},{key:"moveFocusTo",value:function(D,P){var oe=this.setFocus(this.focus.moveTo(D,P));return oe}},{key:"moveFocusToStartOfNode",value:function(D){var P=this.setFocus(this.focus.moveToStartOfNode(D));return P}},{key:"moveFocusToEndOfNode",value:function(D){var P=this.setFocus(this.focus.moveToEndOfNode(D));return P}},{key:"moveStartBackward",value:function(D){var P=this.setStart(this.start.moveBackward(D));return P}},{key:"moveStartForward",value:function(D){var P=this.setStart(this.start.moveForward(D));return P}},{key:"moveStartTo",value:function(D,P){var oe=this.setStart(this.start.moveTo(D,P));return oe}},{key:"moveStartToStartOfNode",value:function(D){var P=this.setStart(this.start.moveToStartOfNode(D));return P}},{key:"moveStartToEndOfNode",value:function(D){var P=this.setStart(this.start.moveToEndOfNode(D));return P}},{key:"moveTo",value:function(D,P){return this.updatePoints(function(oe){return oe.moveTo(D,P)})}},{key:"moveToAnchor",value:function(){var D=this.setFocus(this.anchor);return D}},{key:"moveToEnd",value:function(){var D=this.setStart(this.end);return D}},{key:"moveToEndOfNode",value:function(D){return this.updatePoints(function(P){return P.moveToEndOfNode(D)})}},{key:"moveToFocus",value:function(){var D=this.setAnchor(this.focus);return D}},{key:"moveToRangeOfNode",value:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,oe=this.setPoints([this.anchor.moveToStartOfNode(D),this.focus.moveToEndOfNode(P)]);return oe}},{key:"moveToStart",value:function(){var D=this.setEnd(this.start);return D}},{key:"moveToStartOfNode",value:function(D){return this.updatePoints(function(P){return P.moveToStartOfNode(D)})}},{key:"normalize",value:function(D){return this.updatePoints(function(P){return P.normalize(D)})}},{key:"setAnchor",value:function(D){var P=this.set("anchor",D);return P}},{key:"setEnd",value:function(D){var P=this.isBackward?this.setAnchor(D):this.setFocus(D);return P}},{key:"setFocus",value:function(D){var P=this.set("focus",D);return P}},{key:"setPoints",value:function(D){var P=T(D,2),oe=P[0],Ie=P[1],Ue=this.set("anchor",oe).set("focus",Ie);return Ue}},{key:"updatePoints",value:function(D){var P=this.anchor,oe=this.focus;return P=D(P),oe=D(oe),this.merge({anchor:P,focus:oe})}},{key:"setStart",value:function(D){var P=this.isBackward?this.setFocus(D):this.setAnchor(D);return P}},{key:"setProperties",value:function(D){D=Kn.createProperties(D);var P=D,oe=P.anchor,Ie=P.focus,Ue=te(P,["anchor","focus"]);oe&&(Ue.anchor=_e.create(oe)),Ie&&(Ue.focus=_e.create(Ie));var Xe=this.merge(Ue);return Xe}},{key:"toJSON",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P={object:this.object,anchor:this.anchor.toJSON(D),focus:this.focus.toJSON(D)};return P}},{key:"toRange",value:function(){var D=Kn.createProperties(this),P=Kn.create(D);return P}},{key:"unset",value:function(){var D=this.updatePoints(function(P){return P.unset()});return D}},{key:"isCollapsed",get:function(){return this.anchor===this.focus||this.anchor.key===this.focus.key&&this.anchor.offset===this.focus.offset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isBackward",get:function(){var D=this.isUnset,P=this.anchor,oe=this.focus;if(D)return null;if(P.key===oe.key)return P.offset>oe.offset;var Ie=ke.isBefore(oe.path,P.path);return Ie}},{key:"isForward",get:function(){var D=this.isBackward,P=D==null?null:!D;return P}},{key:"isUnset",get:function(){var D=this.anchor,P=this.focus,oe=D.isUnset||P.isUnset;return oe}},{key:"isSet",get:function(){return!this.isUnset}},{key:"start",get:function(){return this.isBackward?this.focus:this.anchor}},{key:"end",get:function(){return this.isBackward?this.anchor:this.focus}}]),V}();ji(ua,[on,Et,Kn,nn]);var Sa={Annotation:on,Block:Nn,Change:Yn,Data:ge,Decoration:Et,Document:Cn,Editor:di,Inline:er,KeyUtils:re,Leaf:wa,Mark:lt,Node:kn,Operation:ln,PathUtils:ke,Point:_e,Range:Kn,resetMemoization:Ye,Selection:nn,Text:gn,TextUtils:qt,useMemoization:ot,Value:bt};const Xt=Sa},82679:(Ge,w,u)=>{(()=>{"use strict";var l={n:jt=>{var sn=jt&&jt.__esModule?()=>jt.default:()=>jt;return l.d(sn,{a:sn}),sn},d:(jt,sn)=>{for(var Rn in sn)l.o(sn,Rn)&&!l.o(jt,Rn)&&Object.defineProperty(jt,Rn,{enumerable:!0,get:sn[Rn]})},o:(jt,sn)=>Object.prototype.hasOwnProperty.call(jt,sn),r:jt=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(jt,"__esModule",{value:!0})}},g={};function y(jt){let sn=5381;for(let Rn=0;Rn<jt.length;Rn++)sn=(sn<<5)+sn+jt.charCodeAt(Rn);return(sn>>>0).toString(16)}l.r(g),l.d(g,{ASSISTANT_PLUGIN_ID:()=>Ze,ASSISTANT_PLUGIN_TITLE:()=>Ne,CALLBACK_EXTENSION_POINT:()=>Te,ComponentNodeData:()=>$,DashboardNodeData:()=>Se,DatasourceNodeData:()=>Q,EntityNodeData:()=>ce,FolderNodeData:()=>z,LabelNameNodeData:()=>se,LabelValueNodeData:()=>q,OpenAssistantButton:()=>ki,StructuredNodeData:()=>f,closeAssistant:()=>bn,createAssistantContextItem:()=>T,getExposeAssistantFunctionsConfig:()=>yt,isAssistantAvailable:()=>it,newFunctionNamespace:()=>je,openAssistant:()=>Tn,provideComponents:()=>re,providePageContext:()=>C,provideQuestions:()=>B,toggleAssistant:()=>$t,useAssistant:()=>Ct,usePageComponents:()=>ee,usePageContext:()=>j,useProvidePageContext:()=>L,useProvideQuestions:()=>X,useQuestions:()=>ue});class x{constructor(sn){this.params=sn,this.text="",this.id=y(sn.id),this.type=sn.type}formatForLLM(sn){var Rn,H;return{type:this.type,codeElementIds:sn,data:{name:(Rn=this.params.text)!==null&&Rn!==void 0?Rn:"",text:(H=this.params.text)!==null&&H!==void 0?H:""}}}equals(sn){return sn instanceof x&&this.id===sn.id&&this.type===sn.type}}class f extends x{constructor(sn){super({...sn,id:y(JSON.stringify(sn.data)),type:"structured"}),this.data=sn.data}formatForLLM(sn){return{type:this.type,codeElementIds:sn,data:this.data}}}const p=u(92243),h=u(96540);var E=l.n(h);const v=[],m="grafana-assistant:page-context-sync",S="grafana-assistant:page-context-update",d="grafana-assistant:page-context-remove",O="grafana-assistant:location-changed";let R=!1;function C(jt,sn){const Rn={id:I(),urlPattern:jt,context:[...sn]};v.push(Rn),window.dispatchEvent(new CustomEvent(S,{detail:Rn})),window.dispatchEvent(new CustomEvent(m,{detail:{registry:v}}));const H=Be=>{const wn=v.findIndex(bi=>bi.id===Rn.id);wn!==-1&&(v[wn].context=[...Be],window.dispatchEvent(new CustomEvent(S,{detail:v[wn]})))};return H.unregister=()=>{const Be=v.findIndex(wn=>wn.id===Rn.id);Be!==-1&&(v.splice(Be,1),window.dispatchEvent(new CustomEvent(d,{detail:{id:Rn.id}})))},H}function L(jt,sn=[]){const Rn=(0,h.useRef)(void 0),H=(0,h.useRef)(sn);return H.current=sn,(0,h.useEffect)(()=>(Rn.current=C(jt,H.current),()=>{var Be;(Be=Rn.current)===null||Be===void 0||Be.unregister()}),[jt]),(0,h.useEffect)(()=>{Rn.current&&Rn.current(sn)},[sn]),(0,h.useCallback)(Be=>{var wn;(wn=Rn.current)===null||wn===void 0||wn.call(Rn,Be)},[])}function j(jt={allowQuestions:!1,allowComponents:!1}){const[sn,Rn]=(0,h.useState)([]),H=(0,p.useLocationService)(),Be=(0,h.useRef)("");(0,h.useEffect)(()=>{const bi=()=>{const vt=function(Qt,nt){if(!Qt)return[];const Tt=[];for(const Gt of nt)U(Qt,Gt.urlPattern)&&Tt.push(...Gt.context);return Tt}(H.getLocation().pathname,v);Rn(vt)},Oi=()=>{bi()},de=vt=>{var Qt;const nt=(Qt=vt.detail)===null||Qt===void 0?void 0:Qt.pathname;nt&&nt===H.getLocation().pathname&&bi()},Ve=H.getLocationObservable().subscribe(vt=>{const Qt=vt.pathname;Qt!==Be.current&&(Be.current=Qt,function(nt){window.dispatchEvent(new CustomEvent(O,{detail:{pathname:nt}}))}(Qt),bi())});return bi(),window.addEventListener(m,Oi),window.addEventListener(S,Oi),window.addEventListener(d,Oi),window.addEventListener(O,de),()=>{Ve.unsubscribe(),window.removeEventListener(m,Oi),window.removeEventListener(S,Oi),window.removeEventListener(d,Oi),window.removeEventListener(O,de)}},[H]);let wn=sn;return jt.allowQuestions||(wn=wn.filter(bi=>{var Oi;return((Oi=bi.node.data)===null||Oi===void 0?void 0:Oi.type)!=="question"})),jt.allowComponents||(wn=wn.filter(bi=>{var Oi;return((Oi=bi.node.data)===null||Oi===void 0?void 0:Oi.type)!=="component"})),wn}function I(jt="page-context"){return`${jt}-${Date.now()}-${Math.random().toString(36).slice(2,11)}`}function U(jt,sn){if(sn instanceof RegExp)return sn.test(jt);if(typeof sn=="string"){const Rn=sn.replace(/\*\*/g,"\0DOUBLE_STAR\0").replace(/\*/g,"[^/]*").replace(/\u0000DOUBLE_STAR\u0000/g,".*").replace(/\?/g,".");return new RegExp(`^${Rn}$`).test(jt)}return!1}R||(window.addEventListener(m,jt=>{var sn;const Rn=(sn=jt.detail)===null||sn===void 0?void 0:sn.registry;if(Rn){const H=new Set(v.map(wn=>wn.id)),Be=Rn.filter(wn=>!H.has(wn.id));v.push(...Be)}}),window.addEventListener(S,jt=>{const sn=jt.detail;if(sn){const Rn=v.findIndex(H=>H.id===sn.id);Rn!==-1?v[Rn]=sn:v.push(sn)}}),window.addEventListener(d,jt=>{var sn;const Rn=(sn=jt.detail)===null||sn===void 0?void 0:sn.id;if(Rn){const H=v.findIndex(Be=>Be.id===Rn);H!==-1&&v.splice(H,1)}}),R=!0);class $ extends x{constructor(sn){const Rn=sn.namespace||"components";super({...sn,id:`${Rn}-${Object.keys(sn.components).join("-")}`,type:"component"}),this.components=sn.components,this.prompt=sn.prompt,this.namespace=Rn}formatForLLM(sn){return{type:this.type,codeElementIds:sn,data:{name:`${this.namespace} components`,prompt:this.prompt,namespace:this.namespace}}}}function ee(){const jt=j({allowComponents:!0,allowQuestions:!1});return(0,h.useMemo)(()=>{const sn={};return jt.filter(Rn=>{var H;return(H=Rn.node.data)===null||H===void 0?void 0:H.components}).forEach(Rn=>{const H=Rn.node.data;if(H?.components){const Be=H.namespace||H.name||"components";Object.entries(H.components).forEach(([wn,bi])=>{sn[`${Be}_${wn}`]=bi})}}),sn},[jt])}function re(jt,sn,Rn,H=/.*/){return C(H,[T("component",{components:Rn,prompt:jt,namespace:sn})])}class Se extends x{constructor(sn){super({...sn,id:sn.dashboardUid,type:"dashboard"}),this.dashboardUid=sn.dashboardUid,this.dashboardTitle=sn.dashboardTitle,this.folderUid=sn.folderUid,this.folderTitle=sn.folderTitle,this.text=sn.dashboardTitle}formatForLLM(sn){return{type:this.type,codeElementIds:sn,data:{name:this.dashboardTitle,dashboardUid:this.dashboardUid,dashboardTitle:this.dashboardTitle,folderUid:this.folderUid,folderTitle:this.folderTitle,text:this.text}}}}class z extends x{constructor(sn){super({...sn,id:sn.folderUid,type:"dashboard_folder"}),this.text="",this.folderUid=sn.folderUid,this.folderTitle=sn.folderTitle,this.text=sn.folderTitle}formatForLLM(sn){return{type:this.type,codeElementIds:sn,data:{name:this.folderTitle,folderUid:this.folderUid,folderTitle:this.folderTitle,text:this.text}}}}class Q extends x{constructor(sn){super({...sn,id:sn.datasourceUid,type:"datasource"}),this.datasourceUid=sn.datasourceUid,this.datasourceType=sn.datasourceType,this.datasourceName=sn.datasourceName,this.img=sn.img,this.text=sn.datasourceName}formatForLLM(sn){return{type:this.type,codeElementIds:sn,data:{name:this.datasourceName,uid:this.datasourceUid,type:this.datasourceType,text:this.text,img:this.img}}}}class ce extends x{constructor(sn){var Rn,H,Be;super({id:`${sn.type}-${sn.name}-${[(Rn=sn.scope)===null||Rn===void 0?void 0:Rn.env,(H=sn.scope)===null||H===void 0?void 0:H.site,(Be=sn.scope)===null||Be===void 0?void 0:Be.namespace].filter(Boolean).join("-")}`,type:"entity",title:sn.title,hidden:sn.hidden,img:sn.img,icon:sn.icon,text:sn.name}),this.entityType=sn.type,this.name=sn.name,this.scope=sn.scope,this.properties=sn.properties,this.text=sn.name}formatForLLM(sn){return{type:"entity",codeElementIds:sn,data:{name:this.name,text:this.text,type:this.entityType,scope:this.scope,properties:this.properties}}}}class se extends x{constructor(sn){super({...sn,id:`${sn.datasourceUid}-${sn.labelName}`,type:"label_name"}),this.datasourceUid=sn.datasourceUid,this.datasourceType=sn.datasourceType,this.datasourceName=sn.datasourceName,this.labelName=sn.labelName,this.text=sn.labelName,this.img=sn.img}formatForLLM(sn){return{type:this.type,codeElementIds:sn,data:{name:this.labelName,datasourceUid:this.datasourceUid,datasourceType:this.datasourceType,datasourceName:this.datasourceName,labelName:this.labelName,img:this.img,text:this.text}}}}class q extends x{constructor(sn){super({...sn,id:`${sn.datasourceUid}-${sn.labelName}-${sn.labelValue}`,type:"label_value"}),this.datasourceUid=sn.datasourceUid,this.datasourceType=sn.datasourceType,this.datasourceName=sn.datasourceName,this.labelName=sn.labelName,this.labelValue=sn.labelValue,this.text=sn.labelValue,this.img=sn.img}formatForLLM(sn){return{type:this.type,codeElementIds:sn,data:{name:this.labelValue,datasourceUid:this.datasourceUid,datasourceType:this.datasourceType,datasourceName:this.datasourceName,labelName:this.labelName,labelValue:this.labelValue,text:this.text,img:this.img}}}}function te(jt){var sn,Rn,H,Be,wn;const bi=(0,p.getDataSourceSrv)().getInstanceSettings(jt);return{datasourceType:(sn=bi?.type)!==null&&sn!==void 0?sn:"unknown",datasourceName:(Rn=bi?.name)!==null&&Rn!==void 0?Rn:jt,img:(wn=(Be=(H=bi?.meta)===null||H===void 0?void 0:H.info)===null||Be===void 0?void 0:Be.logos)===null||wn===void 0?void 0:wn.small}}const A={datasource:"database",label_name:"database",label_value:"database",dashboard:"dashboard",dashboard_folder:"folder",unknown:"circle-mono",structured:"gf-grid",component:"gf-grid",entity:"asserts"};function T(jt,sn){var Rn,H,Be;const wn=function(de,Ve){switch(de){case"datasource":return new Q({...Ve,...te(Ve.datasourceUid)});case"label_name":return new se({...Ve,...te(Ve.datasourceUid)});case"label_value":return new q({...Ve,...te(Ve.datasourceUid)});case"dashboard":return new Se(Ve);case"dashboard_folder":return new z(Ve);case"structured":return new f(Ve);case"component":return new $({...Ve,hidden:!0});case"entity":return new ce(Ve);case"unknown":return new x(Ve);default:return console.error(`Unknown context type: ${de}`),new x(Ve)}}(jt,sn),bi=(Rn=sn.title)!==null&&Rn!==void 0?Rn:function(de){var Ve;return de instanceof f?de.formatForLLM().data.name:(Ve=de.text)!==null&&Ve!==void 0?Ve:"Given Context"}(wn),Oi=(H=sn.img)!==null&&H!==void 0?H:function(de){if("img"in de)return de.img}(wn);return{node:{id:wn.id,name:bi,img:Oi,icon:(Be=sn.icon)!==null&&Be!==void 0?Be:A[jt],navigable:!1,selectable:!0,data:wn},occurrences:[]}}function B(jt,sn){const Rn=I("question"),H=bi=>bi.map((Oi,de)=>({node:{id:`question-${Rn}-${de}`,name:Oi.prompt,navigable:!1,selectable:!0,icon:"question-circle",data:{type:"question",prompt:Oi.prompt,context:Oi.context||[]}},occurrences:[]})),Be=C(jt,H(sn)),wn=bi=>{Be(H(bi))};return wn.unregister=Be.unregister,wn}function X(jt,sn=[]){const Rn=(0,h.useMemo)(()=>I("question"),[]),H=wn=>wn.map((bi,Oi)=>({node:{id:`question-${Rn}-${Oi}`,name:bi.prompt,navigable:!1,selectable:!0,icon:"question-circle",data:{type:"question",prompt:bi.prompt,context:bi.context||[]}},occurrences:[]})),Be=L(jt,H(sn));return wn=>{Be(H(wn))}}function ue(){const jt=j({allowQuestions:!0,allowComponents:!1});return ie(jt)}const ie=jt=>jt.filter(sn=>{var Rn;return((Rn=sn.node.data)===null||Rn===void 0?void 0:Rn.type)==="question"}).map(sn=>{var Rn,H;return{prompt:((Rn=sn.node.data)===null||Rn===void 0?void 0:Rn.prompt)||sn.node.name,context:((H=sn.node.data)===null||H===void 0?void 0:H.context)||[]}}),Te="grafana-assistant-app/callback/v0-alpha";function je(jt,sn){return{namespace:jt,functions:sn}}function yt(jt){return{title:"callback",targets:[Te],fn:()=>jt.map(sn=>({namespace:sn.namespace,functions:sn.functions}))}}const tt=u(79364),Ze="grafana-assistant-app",Ne="Grafana Assistant";function it(){return p.getObservablePluginLinks?(0,p.getObservablePluginLinks)({extensionPointId:"grafana/extension-sidebar/v0-alpha"}).pipe((0,tt.map)(jt=>jt.some(sn=>sn.pluginId===Ze&&sn.title===Ne))):(0,tt.of)(!1)}const Rt=u(98215);class Dn extends Rt.BusEventWithPayload{}Dn.type="open-extension-sidebar";class Mt extends Rt.BusEventBase{}Mt.type="close-extension-sidebar";class Wt extends Rt.BusEventWithPayload{}function Tn(jt){var sn,Rn;(0,p.reportInteraction)("grafana_assistant_app_opened_sidebar",{from:jt.origin,prompt:(sn=jt.prompt)!==null&&sn!==void 0?sn:""}),function(H,Be,wn){const bi=new Dn({pluginId:H,componentTitle:Be,props:wn});(0,p.getAppEvents)().publish(bi)}(Ze,Ne,{initialPrompt:jt.prompt,initialContext:jt.context,initialAutoSend:(Rn=jt.autoSend)===null||Rn===void 0||Rn,origin:jt.origin})}function bn(){(function(){const jt=new Mt;(0,p.getAppEvents)().publish(jt)})()}function $t(jt){var sn,Rn;(0,p.reportInteraction)("grafana_assistant_app_toggled_sidebar",{from:jt.origin,prompt:(sn=jt.prompt)!==null&&sn!==void 0?sn:""}),function(H,Be,wn){const bi=new Wt({pluginId:H,componentTitle:Be,props:wn});(0,p.getAppEvents)().publish(bi)}(Ze,Ne,{initialPrompt:jt.prompt,initialContext:jt.context,initialAutoSend:(Rn=jt.autoSend)===null||Rn===void 0||Rn,origin:jt.origin})}function Ct(){const[jt,sn]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{const Rn=it().subscribe(H=>sn(H));return()=>{Rn.unsubscribe()}},[]),{isAvailable:jt,openAssistant:jt?Tn:void 0,closeAssistant:jt?bn:void 0,toggleAssistant:jt?$t:void 0}}Wt.type="toggle-extension-sidebar";const Z=u(565);var me=function(){function jt(Rn){var H=this;this._insertTag=function(Be){var wn;wn=H.tags.length===0?H.insertionPoint?H.insertionPoint.nextSibling:H.prepend?H.container.firstChild:H.before:H.tags[H.tags.length-1].nextSibling,H.container.insertBefore(Be,wn),H.tags.push(Be)},this.isSpeedy=Rn.speedy===void 0||Rn.speedy,this.tags=[],this.ctr=0,this.nonce=Rn.nonce,this.key=Rn.key,this.container=Rn.container,this.prepend=Rn.prepend,this.insertionPoint=Rn.insertionPoint,this.before=null}var sn=jt.prototype;return sn.hydrate=function(Rn){Rn.forEach(this._insertTag)},sn.insert=function(Rn){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(wn){var bi=document.createElement("style");return bi.setAttribute("data-emotion",wn.key),wn.nonce!==void 0&&bi.setAttribute("nonce",wn.nonce),bi.appendChild(document.createTextNode("")),bi.setAttribute("data-s",""),bi}(this));var H=this.tags[this.tags.length-1];if(this.isSpeedy){var Be=function(wn){if(wn.sheet)return wn.sheet;for(var bi=0;bi<document.styleSheets.length;bi++)if(document.styleSheets[bi].ownerNode===wn)return document.styleSheets[bi]}(H);try{Be.insertRule(Rn,Be.cssRules.length)}catch{}}else H.appendChild(document.createTextNode(Rn));this.ctr++},sn.flush=function(){this.tags.forEach(function(Rn){var H;return(H=Rn.parentNode)==null?void 0:H.removeChild(Rn)}),this.tags=[],this.ctr=0},jt}(),ke=Math.abs,Ee=String.fromCharCode,_e=Object.assign;function ge(jt){return jt.trim()}function Me(jt,sn,Rn){return jt.replace(sn,Rn)}function lt(jt,sn){return jt.indexOf(sn)}function Ft(jt,sn){return 0|jt.charCodeAt(sn)}function Et(jt,sn,Rn){return jt.slice(sn,Rn)}function Zt(jt){return jt.length}function nn(jt){return jt.length}function Pn(jt,sn){return sn.push(jt),jt}var rn=1,Vt=1,Kn=0,ur=0,on=0,tr="";function Cn(jt,sn,Rn,H,Be,wn,bi){return{value:jt,root:sn,parent:Rn,type:H,props:Be,children:wn,line:rn,column:Vt,length:bi,return:""}}function Wn(jt,sn){return _e(Cn("",null,null,"",null,null,0),jt,{length:-jt.length},sn)}function er(){return on=ur>0?Ft(tr,--ur):0,Vt--,on===10&&(Vt=1,rn--),on}function Fn(){return on=ur<Kn?Ft(tr,ur++):0,Vt++,on===10&&(Vt=1,rn++),on}function en(){return Ft(tr,ur)}function gn(){return ur}function kn(jt,sn){return Et(tr,jt,sn)}function Jn(jt){switch(jt){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Nn(jt){return rn=Vt=1,Kn=Zt(tr=jt),ur=0,[]}function kr(jt){return tr="",jt}function bt(jt){return ge(kn(ur-1,K(jt===91?jt+2:jt===40?jt+1:jt)))}function ne(jt){for(;(on=en())&&on<33;)Fn();return Jn(jt)>2||Jn(on)>3?"":" "}function fe(jt,sn){for(;--sn&&Fn()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return kn(jt,gn()+(sn<6&&en()==32&&Fn()==32))}function K(jt){for(;Fn();)switch(on){case jt:return ur;case 34:case 39:jt!==34&&jt!==39&&K(on);break;case 40:jt===41&&K(jt);break;case 92:Fn()}return ur}function he(jt,sn){for(;Fn()&&jt+on!==57&&(jt+on!==84||en()!==47););return"/*"+kn(sn,ur-1)+"*"+Ee(jt===47?jt:Fn())}function Fe(jt){for(;!Jn(en());)Fn();return kn(jt,ur)}var Nt="-ms-",ln="-moz-",pn="-webkit-",Yn="comm",ht="rule",De="decl",we="@keyframes";function Ke(jt,sn){for(var Rn="",H=nn(jt),Be=0;Be<H;Be++)Rn+=sn(jt[Be],Be,jt,sn)||"";return Rn}function be(jt,sn,Rn,H){switch(jt.type){case"@layer":if(jt.children.length)break;case"@import":case De:return jt.return=jt.return||jt.value;case Yn:return"";case we:return jt.return=jt.value+"{"+Ke(jt.children,H)+"}";case ht:jt.value=jt.props.join(",")}return Zt(Rn=Ke(jt.children,H))?jt.return=jt.value+"{"+Rn+"}":""}function pt(jt){return kr(We("",null,null,null,[""],jt=Nn(jt),0,[0],jt))}function We(jt,sn,Rn,H,Be,wn,bi,Oi,de){for(var Ve=0,vt=0,Qt=bi,nt=0,Tt=0,Gt=0,En=1,Qn=1,Or=1,Pr=0,ai="",xi=Be,mi=wn,ei=H,Qr=ai;Qn;)switch(Gt=Pr,Pr=Fn()){case 40:if(Gt!=108&&Ft(Qr,Qt-1)==58){lt(Qr+=Me(bt(Pr),"&","&\f"),"&\f")!=-1&&(Or=-1);break}case 34:case 39:case 91:Qr+=bt(Pr);break;case 9:case 10:case 13:case 32:Qr+=ne(Gt);break;case 92:Qr+=fe(gn()-1,7);continue;case 47:switch(en()){case 42:case 47:Pn(ye(he(Fn(),gn()),sn,Rn),de);break;default:Qr+="/"}break;case 123*En:Oi[Ve++]=Zt(Qr)*Or;case 125*En:case 59:case 0:switch(Pr){case 0:case 125:Qn=0;case 59+vt:Or==-1&&(Qr=Me(Qr,/\f/g,"")),Tt>0&&Zt(Qr)-Qt&&Pn(Tt>32?Qe(Qr+";",H,Rn,Qt-1):Qe(Me(Qr," ","")+";",H,Rn,Qt-2),de);break;case 59:Qr+=";";default:if(Pn(ei=Je(Qr,sn,Rn,Ve,vt,Be,Oi,ai,xi=[],mi=[],Qt),wn),Pr===123)if(vt===0)We(Qr,sn,ei,ei,xi,wn,Qt,Oi,mi);else switch(nt===99&&Ft(Qr,3)===110?100:nt){case 100:case 108:case 109:case 115:We(jt,ei,ei,H&&Pn(Je(jt,ei,ei,0,0,Be,Oi,ai,Be,xi=[],Qt),mi),Be,mi,Qt,Oi,H?xi:mi);break;default:We(Qr,ei,ei,ei,[""],mi,0,Oi,mi)}}Ve=vt=Tt=0,En=Or=1,ai=Qr="",Qt=bi;break;case 58:Qt=1+Zt(Qr),Tt=Gt;default:if(En<1){if(Pr==123)--En;else if(Pr==125&&En++==0&&er()==125)continue}switch(Qr+=Ee(Pr),Pr*En){case 38:Or=vt>0?1:(Qr+="\f",-1);break;case 44:Oi[Ve++]=(Zt(Qr)-1)*Or,Or=1;break;case 64:en()===45&&(Qr+=bt(Fn())),nt=en(),vt=Qt=Zt(ai=Qr+=Fe(gn())),Pr++;break;case 45:Gt===45&&Zt(Qr)==2&&(En=0)}}return wn}function Je(jt,sn,Rn,H,Be,wn,bi,Oi,de,Ve,vt){for(var Qt=Be-1,nt=Be===0?wn:[""],Tt=nn(nt),Gt=0,En=0,Qn=0;Gt<H;++Gt)for(var Or=0,Pr=Et(jt,Qt+1,Qt=ke(En=bi[Gt])),ai=jt;Or<Tt;++Or)(ai=ge(En>0?nt[Or]+" "+Pr:Me(Pr,/&\f/g,nt[Or])))&&(de[Qn++]=ai);return Cn(jt,sn,Rn,Be===0?ht:Oi,de,Ve,vt)}function ye(jt,sn,Rn){return Cn(jt,sn,Rn,Yn,Ee(on),Et(jt,2,-2),0)}function Qe(jt,sn,Rn,H){return Cn(jt,sn,Rn,De,Et(jt,0,H),Et(jt,H+1,-1),H)}var ze=function(jt,sn,Rn){for(var H=0,Be=0;H=Be,Be=en(),H===38&&Be===12&&(sn[Rn]=1),!Jn(Be);)Fn();return kn(jt,ur)},qe=new WeakMap,Pt=function(jt){if(jt.type==="rule"&&jt.parent&&!(jt.length<1)){for(var sn=jt.value,Rn=jt.parent,H=jt.column===Rn.column&&jt.line===Rn.line;Rn.type!=="rule";)if(!(Rn=Rn.parent))return;if((jt.props.length!==1||sn.charCodeAt(0)===58||qe.get(Rn))&&!H){qe.set(jt,!0);for(var Be=[],wn=function(vt,Qt){return kr(function(nt,Tt){var Gt=-1,En=44;do switch(Jn(En)){case 0:En===38&&en()===12&&(Tt[Gt]=1),nt[Gt]+=ze(ur-1,Tt,Gt);break;case 2:nt[Gt]+=bt(En);break;case 4:if(En===44){nt[++Gt]=en()===58?"&\f":"",Tt[Gt]=nt[Gt].length;break}default:nt[Gt]+=Ee(En)}while(En=Fn());return nt}(Nn(vt),Qt))}(sn,Be),bi=Rn.props,Oi=0,de=0;Oi<wn.length;Oi++)for(var Ve=0;Ve<bi.length;Ve++,de++)jt.props[de]=Be[Oi]?wn[Oi].replace(/&\f/g,bi[Ve]):bi[Ve]+" "+wn[Oi]}}},zt=function(jt){if(jt.type==="decl"){var sn=jt.value;sn.charCodeAt(0)===108&&sn.charCodeAt(2)===98&&(jt.return="",jt.value="")}};function un(jt,sn){switch(function(Rn,H){return 45^Ft(Rn,0)?(((H<<2^Ft(Rn,0))<<2^Ft(Rn,1))<<2^Ft(Rn,2))<<2^Ft(Rn,3):0}(jt,sn)){case 5103:return pn+"print-"+jt+jt;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pn+jt+jt;case 5349:case 4246:case 4810:case 6968:case 2756:return pn+jt+ln+jt+Nt+jt+jt;case 6828:case 4268:return pn+jt+Nt+jt+jt;case 6165:return pn+jt+Nt+"flex-"+jt+jt;case 5187:return pn+jt+Me(jt,/(\w+).+(:[^]+)/,pn+"box-$1$2"+Nt+"flex-$1$2")+jt;case 5443:return pn+jt+Nt+"flex-item-"+Me(jt,/flex-|-self/,"")+jt;case 4675:return pn+jt+Nt+"flex-line-pack"+Me(jt,/align-content|flex-|-self/,"")+jt;case 5548:return pn+jt+Nt+Me(jt,"shrink","negative")+jt;case 5292:return pn+jt+Nt+Me(jt,"basis","preferred-size")+jt;case 6060:return pn+"box-"+Me(jt,"-grow","")+pn+jt+Nt+Me(jt,"grow","positive")+jt;case 4554:return pn+Me(jt,/([^-])(transform)/g,"$1"+pn+"$2")+jt;case 6187:return Me(Me(Me(jt,/(zoom-|grab)/,pn+"$1"),/(image-set)/,pn+"$1"),jt,"")+jt;case 5495:case 3959:return Me(jt,/(image-set\([^]*)/,pn+"$1$`$1");case 4968:return Me(Me(jt,/(.+:)(flex-)?(.*)/,pn+"box-pack:$3"+Nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pn+jt+jt;case 4095:case 3583:case 4068:case 2532:return Me(jt,/(.+)-inline(.+)/,pn+"$1$2")+jt;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zt(jt)-1-sn>6)switch(Ft(jt,sn+1)){case 109:if(Ft(jt,sn+4)!==45)break;case 102:return Me(jt,/(.+:)(.+)-([^]+)/,"$1"+pn+"$2-$3$1"+ln+(Ft(jt,sn+3)==108?"$3":"$2-$3"))+jt;case 115:return~lt(jt,"stretch")?un(Me(jt,"stretch","fill-available"),sn)+jt:jt}break;case 4949:if(Ft(jt,sn+1)!==115)break;case 6444:switch(Ft(jt,Zt(jt)-3-(~lt(jt,"!important")&&10))){case 107:return Me(jt,":",":"+pn)+jt;case 101:return Me(jt,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pn+(Ft(jt,14)===45?"inline-":"")+"box$3$1"+pn+"$2$3$1"+Nt+"$2box$3")+jt}break;case 5936:switch(Ft(jt,sn+11)){case 114:return pn+jt+Nt+Me(jt,/[svh]\w+-[tblr]{2}/,"tb")+jt;case 108:return pn+jt+Nt+Me(jt,/[svh]\w+-[tblr]{2}/,"tb-rl")+jt;case 45:return pn+jt+Nt+Me(jt,/[svh]\w+-[tblr]{2}/,"lr")+jt}return pn+jt+Nt+jt+jt}return jt}var hn=[function(jt,sn,Rn,H){if(jt.length>-1&&!jt.return)switch(jt.type){case De:jt.return=un(jt.value,jt.length);break;case we:return Ke([Wn(jt,{value:Me(jt.value,"@","@"+pn)})],H);case ht:if(jt.length)return function(Be,wn){return Be.map(wn).join("")}(jt.props,function(Be){switch(function(wn){return(wn=/(::plac\w+|:read-\w+)/.exec(wn))?wn[0]:wn}(Be)){case":read-only":case":read-write":return Ke([Wn(jt,{props:[Me(Be,/:(read-\w+)/,":-moz-$1")]})],H);case"::placeholder":return Ke([Wn(jt,{props:[Me(Be,/:(plac\w+)/,":"+pn+"input-$1")]}),Wn(jt,{props:[Me(Be,/:(plac\w+)/,":-moz-$1")]}),Wn(jt,{props:[Me(Be,/:(plac\w+)/,Nt+"input-$1")]})],H)}return""})}}],xt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function _t(jt){var sn=Object.create(null);return function(Rn){return sn[Rn]===void 0&&(sn[Rn]=jt(Rn)),sn[Rn]}}var qt=/[A-Z]|^ms/g,fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,On=function(jt){return jt.charCodeAt(1)===45},Gn=function(jt){return jt!=null&&typeof jt!="boolean"},Bn=_t(function(jt){return On(jt)?jt:jt.replace(qt,"-$&").toLowerCase()}),Lr=function(jt,sn){switch(jt){case"animation":case"animationName":if(typeof sn=="string")return sn.replace(fn,function(Rn,H,Be){return Un={name:H,styles:Be,next:Un},H})}return xt[jt]===1||On(jt)||typeof sn!="number"||sn===0?sn:sn+"px"};function An(jt,sn,Rn){if(Rn==null)return"";var H=Rn;if(H.__emotion_styles!==void 0)return H;switch(typeof Rn){case"boolean":return"";case"object":var Be=Rn;if(Be.anim===1)return Un={name:Be.name,styles:Be.styles,next:Un},Be.name;var wn=Rn;if(wn.styles!==void 0){var bi=wn.next;if(bi!==void 0)for(;bi!==void 0;)Un={name:bi.name,styles:bi.styles,next:Un},bi=bi.next;return wn.styles+";"}return function(Qt,nt,Tt){var Gt="";if(Array.isArray(Tt))for(var En=0;En<Tt.length;En++)Gt+=An(Qt,nt,Tt[En])+";";else for(var Qn in Tt){var Or=Tt[Qn];if(typeof Or!="object"){var Pr=Or;nt!=null&&nt[Pr]!==void 0?Gt+=Qn+"{"+nt[Pr]+"}":Gn(Pr)&&(Gt+=Bn(Qn)+":"+Lr(Qn,Pr)+";")}else if(!Array.isArray(Or)||typeof Or[0]!="string"||nt!=null&&nt[Or[0]]!==void 0){var ai=An(Qt,nt,Or);switch(Qn){case"animation":case"animationName":Gt+=Bn(Qn)+":"+ai+";";break;default:Gt+=Qn+"{"+ai+"}"}}else for(var xi=0;xi<Or.length;xi++)Gn(Or[xi])&&(Gt+=Bn(Qn)+":"+Lr(Qn,Or[xi])+";")}return Gt}(jt,sn,Rn);case"function":if(jt!==void 0){var Oi=Un,de=Rn(jt);return Un=Oi,An(jt,sn,de)}}var Ve=Rn;if(sn==null)return Ve;var vt=sn[Ve];return vt!==void 0?vt:Ve}var Un,cr=/label:\s*([^\s;{]+)\s*(;|$)/g;function mr(jt,sn,Rn){if(jt.length===1&&typeof jt[0]=="object"&&jt[0]!==null&&jt[0].styles!==void 0)return jt[0];var H=!0,Be="";Un=void 0;var wn=jt[0];wn==null||wn.raw===void 0?(H=!1,Be+=An(Rn,sn,wn)):Be+=wn[0];for(var bi=1;bi<jt.length;bi++)Be+=An(Rn,sn,jt[bi]),H&&(Be+=wn[bi]);cr.lastIndex=0;for(var Oi,de="";(Oi=cr.exec(Be))!==null;)de+="-"+Oi[1];var Ve=function(vt){for(var Qt,nt=0,Tt=0,Gt=vt.length;Gt>=4;++Tt,Gt-=4)Qt=1540483477*(65535&(Qt=255&vt.charCodeAt(Tt)|(255&vt.charCodeAt(++Tt))<<8|(255&vt.charCodeAt(++Tt))<<16|(255&vt.charCodeAt(++Tt))<<24))+(59797*(Qt>>>16)<<16),nt=1540483477*(65535&(Qt^=Qt>>>24))+(59797*(Qt>>>16)<<16)^1540483477*(65535&nt)+(59797*(nt>>>16)<<16);switch(Gt){case 3:nt^=(255&vt.charCodeAt(Tt+2))<<16;case 2:nt^=(255&vt.charCodeAt(Tt+1))<<8;case 1:nt=1540483477*(65535&(nt^=255&vt.charCodeAt(Tt)))+(59797*(nt>>>16)<<16)}return(((nt=1540483477*(65535&(nt^=nt>>>13))+(59797*(nt>>>16)<<16))^nt>>>15)>>>0).toString(36)}(Be)+de;return{name:Ve,styles:Be,next:Un}}function hr(jt,sn,Rn){var H="";return Rn.split(" ").forEach(function(Be){jt[Be]!==void 0?sn.push(jt[Be]+";"):Be&&(H+=Be+" ")}),H}function ar(jt,sn){if(jt.inserted[sn.name]===void 0)return jt.insert("",sn,jt.sheet,!0)}function Cr(jt,sn,Rn){var H=[],Be=hr(jt,H,Rn);return H.length<2?Rn:Be+sn(H)}var Yr=function jt(sn){for(var Rn="",H=0;H<sn.length;H++){var Be=sn[H];if(Be!=null){var wn=void 0;switch(typeof Be){case"boolean":break;case"object":if(Array.isArray(Be))wn=jt(Be);else for(var bi in wn="",Be)Be[bi]&&bi&&(wn&&(wn+=" "),wn+=bi);break;default:wn=Be}wn&&(Rn&&(Rn+=" "),Rn+=wn)}}return Rn},Xr=function(jt){var sn=function(H){var Be=H.key;if(Be==="css"){var wn=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(wn,function(Pr){Pr.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(Pr),Pr.setAttribute("data-s",""))})}var bi,Oi,de=H.stylisPlugins||hn,Ve={},vt=[];bi=H.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+Be+' "]'),function(Pr){for(var ai=Pr.getAttribute("data-emotion").split(" "),xi=1;xi<ai.length;xi++)Ve[ai[xi]]=!0;vt.push(Pr)});var Qt,nt,Tt,Gt,En=[be,(Gt=function(Pr){Qt.insert(Pr)},function(Pr){Pr.root||(Pr=Pr.return)&&Gt(Pr)})],Qn=(nt=[Pt,zt].concat(de,En),Tt=nn(nt),function(Pr,ai,xi,mi){for(var ei="",Qr=0;Qr<Tt;Qr++)ei+=nt[Qr](Pr,ai,xi,mi)||"";return ei});Oi=function(Pr,ai,xi,mi){Qt=xi,Ke(pt(Pr?Pr+"{"+ai.styles+"}":ai.styles),Qn),mi&&(Or.inserted[ai.name]=!0)};var Or={key:Be,sheet:new me({key:Be,container:bi,nonce:H.nonce,speedy:H.speedy,prepend:H.prepend,insertionPoint:H.insertionPoint}),nonce:H.nonce,inserted:Ve,registered:{},insert:Oi};return Or.sheet.hydrate(vt),Or}(jt);sn.sheet.speedy=function(H){this.isSpeedy=H},sn.compat=!0;var Rn=function(){for(var H=arguments.length,Be=new Array(H),wn=0;wn<H;wn++)Be[wn]=arguments[wn];var bi=mr(Be,sn.registered,void 0);return function(Oi,de){(function(Qt,nt){var Tt=Qt.key+"-"+nt.name;Qt.registered[Tt]===void 0&&(Qt.registered[Tt]=nt.styles)})(Oi,de);var Ve=Oi.key+"-"+de.name;if(Oi.inserted[de.name]===void 0){var vt=de;do Oi.insert(de===vt?"."+Ve:"",vt,Oi.sheet,!0),vt=vt.next;while(vt!==void 0)}}(sn,bi),sn.key+"-"+bi.name};return{css:Rn,cx:function(){for(var H=arguments.length,Be=new Array(H),wn=0;wn<H;wn++)Be[wn]=arguments[wn];return Cr(sn.registered,Rn,Yr(Be))},injectGlobal:function(){for(var H=arguments.length,Be=new Array(H),wn=0;wn<H;wn++)Be[wn]=arguments[wn];var bi=mr(Be,sn.registered);ar(sn,bi)},keyframes:function(){for(var H=arguments.length,Be=new Array(H),wn=0;wn<H;wn++)Be[wn]=arguments[wn];var bi=mr(Be,sn.registered),Oi="animation-"+bi.name;return ar(sn,{name:bi.name,styles:"@keyframes "+Oi+"{"+bi.styles+"}"}),Oi},hydrate:function(H){H.forEach(function(Be){sn.inserted[Be]=!0})},flush:function(){sn.registered={},sn.inserted={},sn.sheet.flush()},sheet:sn.sheet,cache:sn,getRegisteredStyles:hr.bind(null,sn.registered),merge:Cr.bind(null,sn.registered,Rn)}}({key:"css"}),ni=(Xr.flush,Xr.hydrate,Xr.cx,Xr.merge,Xr.getRegisteredStyles,Xr.injectGlobal,Xr.keyframes,Xr.css);function ki(jt){const{isAvailable:sn,openAssistant:Rn}=Ct();return sn&&Rn?E().createElement(zr,{...jt,openAssistant:Rn}):null}function zr({prompt:jt,origin:sn,context:Rn,autoSend:H=!0,title:Be="Analyze with Assistant",size:wn="sm",iconOnlyButton:bi=!1,openAssistant:Oi}){const de=(0,Z.useStyles2)(Ur);return(0,h.useEffect)(()=>{(0,p.reportInteraction)("grafana_assistant_app_open_sidebar_button_displayed",{from:sn})},[sn]),E().createElement(E().Fragment,null,bi?E().createElement(Z.IconButton,{name:"ai-sparkle",onClick:()=>Oi({prompt:jt,context:Rn,autoSend:H,origin:sn}),variant:"secondary",size:wn,"aria-label":Be,className:de.icon,tooltip:Be,"data-testid":"assistant-icon-button"}):E().createElement(Z.Button,{icon:"ai-sparkle",onClick:()=>Oi({prompt:jt,context:Rn,autoSend:H,origin:sn}),variant:"secondary",fill:"solid",size:wn,title:Be,"aria-label":Be,className:de.button,"data-testid":"assistant-button"},Be))}Xr.sheet,Xr.cache;const Ur=jt=>{const sn=jt.colors.secondary.main,Rn=jt.colors.emphasize(sn,.05),H=jt.colors.background.canvas,Be=jt.shape.radius.default,wn=`max(calc(${Be} - 1px), 1px)`,bi={content:'""',position:"absolute",inset:0,borderRadius:Be,background:"linear-gradient(90deg, rgb(168, 85, 247), rgb(249, 115, 22))",zIndex:-2,pointerEvents:"none"},Oi=de=>({content:'""',position:"absolute",inset:"1px",borderRadius:wn,background:`linear-gradient(${de}, ${de}), ${H}`,zIndex:-1,transition:"none",pointerEvents:"none"});return{button:ni({label:"assistant-button",position:"relative",isolation:"isolate",border:"none",transition:"none !important","&::before":bi,"&::after":{...Oi(sn),transition:"none"},"&:hover":{transition:"none !important"},"&:hover::after":{background:`linear-gradient(${Rn}, ${Rn}), ${H}`}}),icon:ni({label:"assistant-icon",position:"relative",isolation:"isolate",border:"none",background:"none",padding:jt.spacing(.5),"&::before":{...bi,transition:"background 0.1s ease"},"&:hover::after":{...Oi(sn),background:`linear-gradient(${Rn}, ${Rn}), ${H}`}})}};Ge.exports=g})()},82922:(Ge,w,u)=>{"use strict";u.d(w,{Ig:()=>f.I,Av:()=>kn,HU:()=>Jn,RJ:()=>Kn,tI:()=>ne,Rb:()=>kr,Ad:()=>be,SD:()=>We,Jt:()=>Wn,hO:()=>er,RG:()=>he,FO:()=>fe,Tf:()=>De,WP:()=>bt,te:()=>Ke,JR:()=>pt,vN:()=>Je,pd:()=>Fe,DI:()=>Nt});var l=u(54422),g=u(6933),y=u(70915),x=u(61597),f=u(8100),p=u(95286);const h=6378137,E=Math.PI*h,v=[-E,-E,E,E],m=[-180,-85,180,85],S=h*Math.log(Math.tan(Math.PI/2));class d extends p.A{constructor(Pt){super({code:Pt,units:"m",extent:v,global:!0,worldExtent:m,getPointResolution:function(zt,un){return zt/Math.cosh(un[1]/h)}})}}const O=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("http://www.opengis.net/def/crs/EPSG/0/3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];function R(qe,Pt,zt,un){const hn=qe.length;zt=zt>1?zt:2,un=un??zt,Pt===void 0&&(zt>2?Pt=qe.slice():Pt=new Array(hn));for(let xt=0;xt<hn;xt+=un){Pt[xt]=E*qe[xt]/180;let _t=h*Math.log(Math.tan(Math.PI*(+qe[xt+1]+90)/360));_t>S?_t=S:_t<-S&&(_t=-S),Pt[xt+1]=_t}return Pt}function C(qe,Pt,zt,un){const hn=qe.length;zt=zt>1?zt:2,un=un??zt,Pt===void 0&&(zt>2?Pt=qe.slice():Pt=new Array(hn));for(let xt=0;xt<hn;xt+=un)Pt[xt]=180*qe[xt]/E,Pt[xt+1]=360*Math.atan(Math.exp(qe[xt+1]/h))/Math.PI-90;return Pt}const L=6378137,j=[-180,-90,180,90],I=Math.PI*L/180;class U extends p.A{constructor(Pt,zt){super({code:Pt,units:"degrees",extent:j,axisOrientation:zt,global:!0,metersPerUnit:I,worldExtent:j})}}const $=[new U("CRS:84"),new U("EPSG:4326","neu"),new U("urn:ogc:def:crs:OGC:1.3:CRS84"),new U("urn:ogc:def:crs:OGC:2:84"),new U("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new U("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new U("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let ee={};function re(){ee={}}function Se(qe){return ee[qe]||ee[qe.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function z(qe,Pt){ee[qe]=Pt}let Q={};function ce(){Q={}}function se(qe,Pt,zt){const un=qe.getCode(),hn=Pt.getCode();un in Q||(Q[un]={}),Q[un][hn]=zt}function q(qe,Pt){const zt=qe.getCode(),un=Pt.getCode(),hn=Q[zt][un];return delete Q[zt][un],isEmpty(Q[zt])&&delete Q[zt],hn}function te(qe,Pt){return qe in Q&&Pt in Q[qe]?Q[qe][Pt]:null}const A=.9996,T=.00669438,B=T*T,X=B*T,ue=T/(1-T),ie=Math.sqrt(1-T),Te=(1-ie)/(1+ie),je=Te*Te,yt=je*Te,tt=yt*Te,Ze=tt*Te,Ne=1-T/4-3*B/64-5*X/256,it=3*T/8+3*B/32+45*X/1024,Rt=15*B/256+45*X/1024,Dn=35*X/3072,Mt=3/2*Te-27/32*yt+269/512*Ze,Wt=21/16*je-55/32*tt,Tn=151/96*yt-417/128*Ze,bn=1097/512*tt,$t=6378137;function Ct(qe,Pt,zt){const un=qe-5e5,_t=(zt.north?Pt:Pt-1e7)/A/($t*Ne),qt=_t+Mt*Math.sin(2*_t)+Wt*Math.sin(4*_t)+Tn*Math.sin(6*_t)+bn*Math.sin(8*_t),fn=Math.sin(qt),On=fn*fn,Gn=Math.cos(qt),Bn=fn/Gn,Lr=Bn*Bn,An=Lr*Lr,Un=1-T*On,cr=Math.sqrt(1-T*On),mr=$t/cr,hr=(1-T)/Un,ar=ue*Gn**2,Cr=ar*ar,Yr=un/(mr*A),Xr=Yr*Yr,ni=Xr*Yr,ki=ni*Yr,zr=ki*Yr,Ur=zr*Yr,jt=qt-Bn/hr*(Xr/2-ki/24*(5+3*Lr+10*ar-4*Cr-9*ue))+Ur/720*(61+90*Lr+298*ar+45*An-252*ue-3*Cr);let sn=(Yr-ni/6*(1+2*Lr+ar)+zr/120*(5-2*ar+28*Lr-3*Cr+8*ue+24*An))/Gn;return sn=(0,x.LV)(sn+(0,x.eh)(ge(zt.number)),-Math.PI,Math.PI),[(0,x.xW)(sn),(0,x.xW)(jt)]}const Z=-80,me=84,ke=-180,Ee=180;function _e(qe,Pt,zt){qe=(0,x.LV)(qe,ke,Ee),Pt<Z?Pt=Z:Pt>me&&(Pt=me);const un=(0,x.eh)(Pt),hn=Math.sin(un),xt=Math.cos(un),_t=hn/xt,qt=_t*_t,fn=qt*qt,On=(0,x.eh)(qe),Gn=ge(zt.number),Bn=(0,x.eh)(Gn),Lr=$t/Math.sqrt(1-T*hn**2),An=ue*xt**2,Un=xt*(0,x.LV)(On-Bn,-Math.PI,Math.PI),cr=Un*Un,mr=cr*Un,hr=mr*Un,ar=hr*Un,Cr=ar*Un,Yr=$t*(Ne*un-it*Math.sin(2*un)+Rt*Math.sin(4*un)-Dn*Math.sin(6*un)),Xr=A*Lr*(Un+mr/6*(1-qt+An)+ar/120*(5-18*qt+fn+72*An-58*ue))+5e5;let ni=A*(Yr+Lr*_t*(cr/2+hr/24*(5-qt+9*An+4*An**2)+Cr/720*(61-58*qt+fn+600*An-330*ue)));return zt.north||(ni+=1e7),[Xr,ni]}function ge(qe){return(qe-1)*6-180+3}const Me=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function lt(qe){let Pt=0;for(const hn of Me){const xt=qe.match(hn);if(xt){Pt=parseInt(xt[1]);break}}if(!Pt)return null;let zt=0,un=!1;return Pt>32700&&Pt<32761?zt=Pt-32700:Pt>32600&&Pt<32661&&(un=!0,zt=Pt-32600),zt?{number:zt,north:un}:null}function Ft(qe,Pt){return function(zt,un,hn,xt){const _t=zt.length;hn=hn>1?hn:2,xt=xt??hn,un||(hn>2?un=zt.slice():un=new Array(_t));for(let qt=0;qt<_t;qt+=xt){const fn=zt[qt],On=zt[qt+1],Gn=qe(fn,On,Pt);un[qt]=Gn[0],un[qt+1]=Gn[1]}return un}}function Et(qe){return lt(qe)?new p.A({code:qe,units:"m"}):null}function Zt(qe){const Pt=lt(qe.getCode());return Pt?{forward:Ft(_e,Pt),inverse:Ft(Ct,Pt)}:null}var nn=u(52490);const Pn=[Zt],rn=[Et];let Vt=!0;function Kn(qe){Vt=!(qe===void 0?!0:qe)}function ur(qe,Pt){if(Pt!==void 0){for(let zt=0,un=qe.length;zt<un;++zt)Pt[zt]=qe[zt];Pt=Pt}else Pt=qe.slice();return Pt}function on(qe,Pt){if(Pt!==void 0&&qe!==Pt){for(let zt=0,un=qe.length;zt<un;++zt)Pt[zt]=qe[zt];qe=Pt}return qe}function tr(qe){z(qe.getCode(),qe),se(qe,qe,ur)}function Cn(qe){qe.forEach(tr)}function Wn(qe){if(typeof qe!="string")return qe;const Pt=Se(qe);if(Pt)return Pt;for(const zt of rn){const un=zt(qe);if(un)return un}return null}function er(qe,Pt,zt,un){qe=Wn(qe);let hn;const xt=qe.getPointResolutionFunc();if(xt){if(hn=xt(Pt,zt),un&&un!==qe.getUnits()){const _t=qe.getMetersPerUnit();_t&&(hn=hn*_t/f.I[un])}}else{const _t=qe.getUnits();if(_t=="degrees"&&!un||un=="degrees")hn=Pt;else{const qt=fe(qe,Wn("EPSG:4326"));if(!qt&&_t!=="degrees")hn=Pt*qe.getMetersPerUnit();else{let On=[zt[0]-Pt/2,zt[1],zt[0]+Pt/2,zt[1],zt[0],zt[1]-Pt/2,zt[0],zt[1]+Pt/2];On=qt(On,On,2);const Gn=(0,nn.Yf)(On.slice(0,2),On.slice(2,4)),Bn=(0,nn.Yf)(On.slice(4,6),On.slice(6,8));hn=(Gn+Bn)/2}const fn=un?f.I[un]:qe.getMetersPerUnit();fn!==void 0&&(hn/=fn)}}return hn}function Fn(qe){Cn(qe),qe.forEach(function(Pt){qe.forEach(function(zt){Pt!==zt&&se(Pt,zt,ur)})})}function en(qe,Pt,zt,un){qe.forEach(function(hn){Pt.forEach(function(xt){se(hn,xt,zt),se(xt,hn,un)})})}function gn(){clearProj(),clearTransformFuncs()}function kn(qe,Pt){return qe?typeof qe=="string"?Wn(qe):qe:Wn(Pt)}function Jn(qe){return function(Pt,zt,un,hn){const xt=Pt.length;un=un!==void 0?un:2,hn=hn??un,zt=zt!==void 0?zt:new Array(xt);for(let _t=0;_t<xt;_t+=hn){const qt=qe(Pt.slice(_t,_t+un)),fn=qt.length;for(let On=0,Gn=hn;On<Gn;++On)zt[_t+On]=On>=fn?Pt[_t+On]:qt[On]}return zt}}function Nn(qe,Pt,zt,un){const hn=Wn(qe),xt=Wn(Pt);addTransformFunc(hn,xt,Jn(zt)),addTransformFunc(xt,hn,Jn(un))}function kr(qe,Pt){return Kn(),Fe(qe,"EPSG:4326",Pt!==void 0?Pt:"EPSG:3857")}function bt(qe,Pt){const zt=Fe(qe,Pt!==void 0?Pt:"EPSG:3857","EPSG:4326"),un=zt[0];return(un<-180||un>180)&&(zt[0]=(0,x.xP)(un+180,360)-180),zt}function ne(qe,Pt){if(qe===Pt)return!0;const zt=qe.getUnits()===Pt.getUnits();return(qe.getCode()===Pt.getCode()||fe(qe,Pt)===ur)&&zt}function fe(qe,Pt){const zt=qe.getCode(),un=Pt.getCode();let hn=te(zt,un);if(hn)return hn;let xt=null,_t=null;for(const fn of Pn)xt||(xt=fn(qe)),_t||(_t=fn(Pt));if(!xt&&!_t)return null;const qt="EPSG:4326";if(_t)if(xt)hn=K(xt.inverse,_t.forward);else{const fn=te(zt,qt);fn&&(hn=K(fn,_t.forward))}else{const fn=te(qt,un);fn&&(hn=K(xt.inverse,fn))}return hn&&(tr(qe),tr(Pt),se(qe,Pt,hn)),hn}function K(qe,Pt){return function(zt,un,hn,xt){return un=qe(zt,un,hn,xt),Pt(un,un,hn,xt)}}function he(qe,Pt){const zt=Wn(qe),un=Wn(Pt);return fe(zt,un)}function Fe(qe,Pt,zt){const un=he(Pt,zt);if(!un){const hn=Wn(Pt).getCode(),xt=Wn(zt).getCode();throw new Error(`No transform available between ${hn} and ${xt}`)}return un(qe,void 0,qe.length)}function Nt(qe,Pt,zt,un){const hn=he(Pt,zt);return(0,y.NW)(qe,hn,void 0,un)}function ln(qe,Pt,zt){return fe(Pt,zt)(qe)}let pn=null;function Yn(qe){pn=Wn(qe)}function ht(){pn=null}function De(){return pn}function we(){Yn("EPSG:4326")}function Ke(qe,Pt){return pn?Fe(qe,Pt,pn):qe}function be(qe,Pt){return pn?Fe(qe,pn,Pt):(Vt&&!(0,g.aI)(qe,[0,0])&&qe[0]>=-180&&qe[0]<=180&&qe[1]>=-90&&qe[1]<=90&&(Vt=!1,(0,l.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),qe)}function pt(qe,Pt){return pn?Nt(qe,Pt,pn):qe}function We(qe,Pt){return pn?Nt(qe,pn,Pt):qe}function Je(qe,Pt){if(!pn)return qe;const zt=Wn(Pt).getMetersPerUnit(),un=pn.getMetersPerUnit();return zt&&un?qe*zt/un:qe}function ye(qe,Pt){if(!pn)return qe;const zt=Wn(Pt).getMetersPerUnit(),un=pn.getMetersPerUnit();return zt&&un?qe*un/zt:qe}function Qe(qe,Pt,zt){return function(un){let hn,xt;if(qe.canWrapX()){const _t=qe.getExtent(),qt=getWidth(_t);un=un.slice(0),xt=getWorldsAway(un,qe,qt),xt&&(un[0]=un[0]-xt*qt),un[0]=clamp(un[0],_t[0],_t[2]),un[1]=clamp(un[1],_t[1],_t[3]),hn=zt(un)}else hn=zt(un);return xt&&Pt.canWrapX()&&(hn[0]+=xt*getWidth(Pt.getExtent())),hn}}function ze(){Fn(O),Fn($),en($,O,R,C)}ze()},82955:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.publishBehavior=void 0;var l=u(97314),g=u(14359);function y(x){return function(f){var p=new l.BehaviorSubject(x);return new g.ConnectableObservable(f,function(){return p})}}w.publishBehavior=y},83141:(Ge,w,u)=>{"use strict";var l=u(92861).Buffer,g=l.isEncoding||function(I){switch(I=""+I,I&&I.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function y(I){if(!I)return"utf8";for(var U;;)switch(I){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return I;default:if(U)return;I=(""+I).toLowerCase(),U=!0}}function x(I){var U=y(I);if(typeof U!="string"&&(l.isEncoding===g||!g(I)))throw new Error("Unknown encoding: "+I);return U||I}w.I=f;function f(I){this.encoding=x(I);var U;switch(this.encoding){case"utf16le":this.text=d,this.end=O,U=4;break;case"utf8":this.fillLast=v,U=4;break;case"base64":this.text=R,this.end=C,U=3;break;default:this.write=L,this.end=j;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(U)}f.prototype.write=function(I){if(I.length===0)return"";var U,$;if(this.lastNeed){if(U=this.fillLast(I),U===void 0)return"";$=this.lastNeed,this.lastNeed=0}else $=0;return $<I.length?U?U+this.text(I,$):this.text(I,$):U||""},f.prototype.end=S,f.prototype.text=m,f.prototype.fillLast=function(I){if(this.lastNeed<=I.length)return I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,I.length),this.lastNeed-=I.length};function p(I){return I<=127?0:I>>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function h(I,U,$){var ee=U.length-1;if(ee<$)return 0;var re=p(U[ee]);return re>=0?(re>0&&(I.lastNeed=re-1),re):--ee<$||re===-2?0:(re=p(U[ee]),re>=0?(re>0&&(I.lastNeed=re-2),re):--ee<$||re===-2?0:(re=p(U[ee]),re>=0?(re>0&&(re===2?re=0:I.lastNeed=re-3),re):0))}function E(I,U,$){if((U[0]&192)!==128)return I.lastNeed=0,"\uFFFD";if(I.lastNeed>1&&U.length>1){if((U[1]&192)!==128)return I.lastNeed=1,"\uFFFD";if(I.lastNeed>2&&U.length>2&&(U[2]&192)!==128)return I.lastNeed=2,"\uFFFD"}}function v(I){var U=this.lastTotal-this.lastNeed,$=E(this,I,U);if($!==void 0)return $;if(this.lastNeed<=I.length)return I.copy(this.lastChar,U,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,U,0,I.length),this.lastNeed-=I.length}function m(I,U){var $=h(this,I,U);if(!this.lastNeed)return I.toString("utf8",U);this.lastTotal=$;var ee=I.length-($-this.lastNeed);return I.copy(this.lastChar,0,ee),I.toString("utf8",U,ee)}function S(I){var U=I&&I.length?this.write(I):"";return this.lastNeed?U+"\uFFFD":U}function d(I,U){if((I.length-U)%2===0){var $=I.toString("utf16le",U);if($){var ee=$.charCodeAt($.length-1);if(ee>=55296&&ee<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],$.slice(0,-1)}return $}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",U,I.length-1)}function O(I){var U=I&&I.length?this.write(I):"";if(this.lastNeed){var $=this.lastTotal-this.lastNeed;return U+this.lastChar.toString("utf16le",0,$)}return U}function R(I,U){var $=(I.length-U)%3;return $===0?I.toString("base64",U):(this.lastNeed=3-$,this.lastTotal=3,$===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",U,I.length-$))}function C(I){var U=I&&I.length?this.write(I):"";return this.lastNeed?U+this.lastChar.toString("base64",0,3-this.lastNeed):U}function L(I){return I.toString(this.encoding)}function j(I){return I&&I.length?this.write(I):""}},83402:(Ge,w,u)=>{"use strict";u.d(w,{yJ:()=>h,PA:()=>y,mb:()=>x,ug:()=>f,NK:()=>p});function l(E,v,m,S){for(;v<m-S;){for(let d=0;d<S;++d){const O=E[v+d];E[v+d]=E[m-S+d],E[m-S+d]=O}v+=S,m-=S}}function g(E,v,m,S){let d=0,O=E[m-S],R=E[m-S+1];for(;v<m;v+=S){const C=E[v],L=E[v+1];d+=(C-O)*(L+R),O=C,R=L}return d===0?void 0:d>0}function y(E,v,m,S,d){d=d!==void 0?d:!1;for(let O=0,R=m.length;O<R;++O){const C=m[O],L=g(E,v,C,S);if(O===0){if(d&&L||!d&&!L)return!1}else if(d&&!L||!d&&L)return!1;v=C}return!0}function x(E,v,m,S,d){for(let O=0,R=m.length;O<R;++O){const C=m[O];if(!y(E,v,C,S,d))return!1;C.length&&(v=C[C.length-1])}return!0}function f(E,v,m,S,d){d=d!==void 0?d:!1;for(let O=0,R=m.length;O<R;++O){const C=m[O],L=g(E,v,C,S);(O===0?d&&L||!d&&!L:d&&!L||!d&&L)&&l(E,v,C,S),v=C}return v}function p(E,v,m,S,d){for(let O=0,R=m.length;O<R;++O)v=f(E,v,m[O],S,d);return v}function h(E,v){const m=[];let S=0,d=0,O;for(let R=0,C=v.length;R<C;++R){const L=v[R],j=g(E,S,L,2);if(O===void 0&&(O=j),j===O)m.push(v.slice(d,R+1));else{if(m.length===0)continue;m[m.length-1].push(v[d])}d=R+1,S=L}return m}},83671:(Ge,w,u)=>{"use strict";u.d(w,{AL:()=>x,Hg:()=>v,P4:()=>y,n$:()=>h,sx:()=>m});var l=u(61597);function g(S,d,O,R,C,L,j){return j=j!==void 0?j:[],L||(O=p(S,d,O,R,C,j,0),S=j,d=0,R=2),j.length=y(S,d,O,R,C,j,0),j}function y(S,d,O,R,C,L,j){const I=(O-d)/R;if(I<3){for(;d<O;d+=R)L[j++]=S[d],L[j++]=S[d+1];return j}const U=new Array(I);U[0]=1,U[I-1]=1;const $=[d,O-R];let ee=0;for(;$.length>0;){const re=$.pop(),Se=$.pop();let z=0;const Q=S[Se],ce=S[Se+1],se=S[re],q=S[re+1];for(let te=Se+R;te<re;te+=R){const A=S[te],T=S[te+1],B=(0,l.Q1)(A,T,Q,ce,se,q);B>z&&(ee=te,z=B)}z>C&&(U[(ee-d)/R]=1,Se+R<ee&&$.push(Se,ee),ee+R<re&&$.push(ee,re))}for(let re=0;re<I;++re)U[re]&&(L[j++]=S[d+re*R],L[j++]=S[d+re*R+1]);return j}function x(S,d,O,R,C,L,j,I){for(let U=0,$=O.length;U<$;++U){const ee=O[U];j=y(S,d,ee,R,C,L,j),I.push(j),d=ee}return j}function f(S,d,O,R,C,L,j,I){for(let U=0,$=O.length;U<$;++U){const ee=O[U],re=[];j=x(S,d,ee,R,C,L,j,re),I.push(re),d=ee[ee.length-1]}return j}function p(S,d,O,R,C,L,j){if(O<=d+R){for(;d<O;d+=R)L[j++]=S[d],L[j++]=S[d+1];return j}let I=S[d],U=S[d+1];L[j++]=I,L[j++]=U;let $=I,ee=U;for(d+=R;d<O;d+=R)$=S[d],ee=S[d+1],squaredDistance(I,U,$,ee)>C&&(L[j++]=$,L[j++]=ee,I=$,U=ee);return($!=I||ee!=U)&&(L[j++]=$,L[j++]=ee),j}function h(S,d){return d*Math.round(S/d)}function E(S,d,O,R,C,L,j){if(d==O)return j;let I=h(S[d],C),U=h(S[d+1],C);d+=R,L[j++]=I,L[j++]=U;let $,ee;do if($=h(S[d],C),ee=h(S[d+1],C),d+=R,d==O)return L[j++]=$,L[j++]=ee,j;while($==I&&ee==U);for(;d<O;){const re=h(S[d],C),Se=h(S[d+1],C);if(d+=R,re==$&&Se==ee)continue;const z=$-I,Q=ee-U,ce=re-I,se=Se-U;if(z*se==Q*ce&&(z<0&&ce<z||z==ce||z>0&&ce>z)&&(Q<0&&se<Q||Q==se||Q>0&&se>Q)){$=re,ee=Se;continue}L[j++]=$,L[j++]=ee,I=$,U=ee,$=re,ee=Se}return L[j++]=$,L[j++]=ee,j}function v(S,d,O,R,C,L,j,I){for(let U=0,$=O.length;U<$;++U){const ee=O[U];j=E(S,d,ee,R,C,L,j),I.push(j),d=ee}return j}function m(S,d,O,R,C,L,j,I){for(let U=0,$=O.length;U<$;++U){const ee=O[U],re=[];j=v(S,d,ee,R,C,L,j,re),I.push(re),d=ee[ee.length-1]}return j}},83795:(Ge,w,u)=>{"use strict";u.d(w,{UY:()=>l,fd:()=>f,nP:()=>g,rs:()=>y,u5:()=>x});const l=Symbol("ZodOutput"),g=Symbol("ZodInput");class y{constructor(){this._map=new Map,this._idmap=new Map}add(h,...E){const v=E[0];if(this._map.set(h,v),v&&typeof v=="object"&&"id"in v){if(this._idmap.has(v.id))throw new Error(`ID ${v.id} already exists in the registry`);this._idmap.set(v.id,h)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(h){const E=this._map.get(h);return E&&typeof E=="object"&&"id"in E&&this._idmap.delete(E.id),this._map.delete(h),this}get(h){const E=h._zod.parent;if(E){const v={...this.get(E)??{}};delete v.id;const m={...v,...this._map.get(h)};return Object.keys(m).length?m:void 0}return this._map.get(h)}has(h){return this._map.has(h)}}function x(){return new y}const f=x()},84051:Ge=>{var w=9007199254740991,u=Math.floor;function l(g,y){var x="";if(!g||y<1||y>w)return x;do y%2&&(x+=g),y=u(y/2),y&&(g+=g);while(y);return x}Ge.exports=l},84139:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>O});const l=(U,$)=>U>$?1:U<$?-1:0,g=1/0,y=U=>U.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),x="eexxaacctt",f=new RegExp("\\p{P}","gu"),p="A-Z",h="a-z",E=["en",{numeric:!0,sensitivity:"base"}],v=(U,$,ee)=>U.replace(p,$).replace(h,ee),m={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",interBound:"[^A-Za-z\\d]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:g,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,g],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(U,$,ee)=>!0,toUpper:U=>U.toLocaleUpperCase(),toLower:U=>U.toLocaleLowerCase(),compare:null,sort:(U,$,ee,re=l)=>{let{idx:Se,chars:z,terms:Q,interLft2:ce,interLft1:se,start:q,intraIns:te,interIns:A,cases:T}=U;return Se.map((B,X)=>X).sort((B,X)=>z[X]-z[B]||te[B]-te[X]||Q[X]+ce[X]+.5*se[X]-(Q[B]+ce[B]+.5*se[B])||A[B]-A[X]||q[B]-q[X]||T[X]-T[B]||re($[Se[B]],$[Se[X]]))}},S=(U,$)=>$==0?"":$==1?U+"??":$==g?U+"*?":U+`{0,${$}}?`,d="(?:\\b|_)";function O(U){U=Object.assign({},m,U);let{unicode:$,interLft:ee,interRgt:re,intraMode:Se,intraSlice:z,intraIns:Q,intraSub:ce,intraTrn:se,intraDel:q,intraContr:te,intraSplit:A,interSplit:T,intraBound:B,interBound:X,intraChars:ue,toUpper:ie,toLower:Te,compare:je}=U;Q??=Se,ce??=Se,se??=Se,q??=Se,je??=typeof Intl>"u"?l:new Intl.Collator(...E).compare;let yt=U.letters??U.alpha;if(yt!=null){let Et=ie(yt),Zt=Te(yt);T=v(T,Et,Zt),A=v(A,Et,Zt),X=v(X,Et,Zt),B=v(B,Et,Zt),ue=v(ue,Et,Zt),te=v(te,Et,Zt)}let tt=$?"u":"";const Ze='".+?"',Ne=new RegExp(Ze,"gi"+tt),it=new RegExp(`(?:\\s+|^)-(?:${ue}+|${Ze})`,"gi"+tt);let{intraRules:Rt}=U;Rt==null&&(Rt=Et=>{let Zt=m.intraSlice,nn=0,Pn=0,rn=0,Vt=0;if(/[^\d]/.test(Et)){let Kn=Et.length;Kn<=4?Kn>=3&&(rn=Math.min(se,1),Kn==4&&(nn=Math.min(Q,1))):(Zt=z,nn=Q,Pn=ce,rn=se,Vt=q)}return{intraSlice:Zt,intraIns:nn,intraSub:Pn,intraTrn:rn,intraDel:Vt}});let Dn=!!A,Mt=new RegExp(A,"g"+tt),Wt=new RegExp(T,"g"+tt),Tn=new RegExp("^"+T+"|"+T+"$","g"+tt),bn=new RegExp(te,"gi"+tt);const $t=(Et,Zt=!1)=>{let nn=[];Et=Et.replace(Ne,rn=>(nn.push(rn),x)),Et=Et.replace(Tn,""),Zt||(Et=Te(Et)),Dn&&(Et=Et.replace(Mt,rn=>rn[0]+" "+rn[1]));let Pn=0;return Et.split(Wt).filter(rn=>rn!="").map(rn=>rn===x?nn[Pn++]:rn)},Ct=/[^\d]+|\d+/g,Z=(Et,Zt=0,nn=!1)=>{let Pn=$t(Et);if(Pn.length==0)return[];let rn=Array(Pn.length).fill("");Pn=Pn.map((tr,Cn)=>tr.replace(bn,Wn=>(rn[Cn]=Wn,"")));let Vt;if(Se==1)Vt=Pn.map((tr,Cn)=>{if(tr[0]==='"')return y(tr.slice(1,-1));let Wn="";for(let er of tr.matchAll(Ct)){let Fn=er[0],{intraSlice:en,intraIns:gn,intraSub:kn,intraTrn:Jn,intraDel:Nn}=Rt(Fn);if(gn+kn+Jn+Nn==0)Wn+=Fn+rn[Cn];else{let[kr,bt]=en,ne=Fn.slice(0,kr),fe=Fn.slice(bt),K=Fn.slice(kr,bt);gn==1&&ne.length==1&&ne!=K[0]&&(ne+="(?!"+ne+")");let he=K.length,Fe=[Fn];if(kn)for(let Nt=0;Nt<he;Nt++)Fe.push(ne+K.slice(0,Nt)+ue+K.slice(Nt+1)+fe);if(Jn)for(let Nt=0;Nt<he-1;Nt++)K[Nt]!=K[Nt+1]&&Fe.push(ne+K.slice(0,Nt)+K[Nt+1]+K[Nt]+K.slice(Nt+2)+fe);if(Nn)for(let Nt=0;Nt<he;Nt++)Fe.push(ne+K.slice(0,Nt+1)+"?"+K.slice(Nt+1)+fe);if(gn){let Nt=S(ue,1);for(let ln=0;ln<he;ln++)Fe.push(ne+K.slice(0,ln)+Nt+K.slice(ln)+fe)}Wn+="(?:"+Fe.join("|")+")"+rn[Cn]}}return Wn});else{let tr=S(ue,Q);Zt==2&&Q>0&&(tr=")("+tr+")("),Vt=Pn.map((Cn,Wn)=>Cn[0]==='"'?y(Cn.slice(1,-1)):Cn.split("").map((er,Fn,en)=>(Q==1&&Fn==0&&en.length>1&&er!=en[Fn+1]&&(er+="(?!"+er+")"),er)).join(tr)+rn[Wn])}let Kn=ee==2?d:"",ur=re==2?d:"",on=ur+S(U.interChars,U.interIns)+Kn;return Zt>0?nn?Vt=Kn+"("+Vt.join(")"+ur+"|"+Kn+"(")+")"+ur:(Vt="("+Vt.join(")("+on+")(")+")",Vt="(.??"+Kn+")"+Vt+"("+ur+".*)"):(Vt=Vt.join(on),Vt=Kn+Vt+ur),[new RegExp(Vt,"i"+tt),Pn,rn]},me=(Et,Zt,nn)=>{let[Pn]=Z(Zt);if(Pn==null)return null;let rn=[];if(nn!=null)for(let Vt=0;Vt<nn.length;Vt++){let Kn=nn[Vt];Pn.test(Et[Kn])&&rn.push(Kn)}else for(let Vt=0;Vt<Et.length;Vt++)Pn.test(Et[Vt])&&rn.push(Vt);return rn};let ke=!!B,Ee=new RegExp(X,tt),_e=new RegExp(B,tt);const ge=(Et,Zt,nn)=>{let[Pn,rn,Vt]=Z(nn,1),Kn=$t(nn,!0),[ur]=Z(nn,2),on=rn.length,tr=Array(on),Cn=Array(on);for(let kn=0;kn<on;kn++){let Jn=rn[kn],Nn=Kn[kn],kr=Jn[0]=='"'?Jn.slice(1,-1):Jn+Vt[kn],bt=Nn[0]=='"'?Nn.slice(1,-1):Nn+Vt[kn];tr[kn]=kr,Cn[kn]=bt}let Wn=Et.length,er=Array(Wn).fill(0),Fn={idx:Array(Wn),start:er.slice(),chars:er.slice(),cases:er.slice(),terms:er.slice(),interIns:er.slice(),intraIns:er.slice(),interLft2:er.slice(),interRgt2:er.slice(),interLft1:er.slice(),interRgt1:er.slice(),ranges:Array(Wn)},en=ee==1||re==1,gn=0;for(let kn=0;kn<Et.length;kn++){let Jn=Zt[Et[kn]],Nn=Jn.match(Pn),kr=Nn.index+Nn[1].length,bt=kr,ne=!1,fe=0,K=0,he=0,Fe=0,Nt=0,ln=0,pn=0,Yn=0,ht=0,De=[];for(let we=0,Ke=2;we<on;we++,Ke+=2){let be=Te(Nn[Ke]),pt=tr[we],We=Cn[we],Je=pt.length,ye=be.length,Qe=be==pt;if(Nn[Ke]==We&&pn++,!Qe&&Nn[Ke+1].length>=Je){let ze=Te(Nn[Ke+1]).indexOf(pt);ze>-1&&(De.push(bt,ye,ze,Je),bt+=Me(Nn,Ke,ze,Je),be=pt,ye=Je,Qe=!0,we==0&&(kr=bt))}if(en||Qe){let ze=bt-1,qe=bt+ye,Pt=!1,zt=!1;if(ze==-1||Ee.test(Jn[ze]))Qe&&fe++,Pt=!0;else{if(ee==2){ne=!0;break}if(ke&&_e.test(Jn[ze]+Jn[ze+1]))Qe&&K++,Pt=!0;else if(ee==1){let un=Nn[Ke+1],hn=bt+ye;if(un.length>=Je){let xt=0,_t=!1,qt=new RegExp(pt,"ig"+tt),fn;for(;fn=qt.exec(un);){xt=fn.index;let On=hn+xt,Gn=On-1;if(Gn==-1||Ee.test(Jn[Gn])){fe++,_t=!0;break}else if(_e.test(Jn[Gn]+Jn[On])){K++,_t=!0;break}}_t&&(Pt=!0,De.push(bt,ye,xt,Je),bt+=Me(Nn,Ke,xt,Je),be=pt,ye=Je,Qe=!0,we==0&&(kr=bt))}if(!Pt){ne=!0;break}}}if(qe==Jn.length||Ee.test(Jn[qe]))Qe&&he++,zt=!0;else{if(re==2){ne=!0;break}if(ke&&_e.test(Jn[qe-1]+Jn[qe]))Qe&&Fe++,zt=!0;else if(re==1){ne=!0;break}}Qe&&(Nt+=Je,Pt&&zt&&ln++)}if(ye>Je&&(ht+=ye-Je),we>0&&(Yn+=Nn[Ke-1].length),!U.intraFilt(pt,be,bt)){ne=!0;break}we<on-1&&(bt+=ye+Nn[Ke+1].length)}if(!ne){Fn.idx[gn]=Et[kn],Fn.interLft2[gn]=fe,Fn.interLft1[gn]=K,Fn.interRgt2[gn]=he,Fn.interRgt1[gn]=Fe,Fn.chars[gn]=Nt,Fn.terms[gn]=ln,Fn.cases[gn]=pn,Fn.interIns[gn]=Yn,Fn.intraIns[gn]=ht,Fn.start[gn]=kr;let we=Jn.match(ur),Ke=we.index+we[1].length,be=De.length,pt=be>0?0:1/0,We=be-4;for(let ze=2;ze<we.length;){let qe=we[ze].length;if(pt<=We&&De[pt]==Ke){let Pt=De[pt+1],zt=De[pt+2],un=De[pt+3],hn=ze,xt="";for(let _t=0;_t<Pt;hn++)xt+=we[hn],_t+=we[hn].length;we.splice(ze,hn-ze,xt),Ke+=Me(we,ze,zt,un),pt+=4}else Ke+=qe,ze++}Ke=we.index+we[1].length;let Je=Fn.ranges[gn]=[],ye=Ke,Qe=Ke;for(let ze=2;ze<we.length;ze++){let qe=we[ze].length;Ke+=qe,ze%2==0?Qe=Ke:qe>0&&(Je.push(ye,Qe),ye=Qe=Ke)}Qe>ye&&Je.push(ye,Qe),gn++}}if(gn<Et.length)for(let kn in Fn)Fn[kn]=Fn[kn].slice(0,gn);return Fn},Me=(Et,Zt,nn,Pn)=>{let rn=Et[Zt]+Et[Zt+1].slice(0,nn);return Et[Zt-1]+=rn,Et[Zt]=Et[Zt+1].slice(nn,nn+Pn),Et[Zt+1]=Et[Zt+1].slice(nn+Pn),rn.length},lt=5,Ft=(Et,Zt,nn,Pn=1e3,rn)=>{nn=nn?nn===!0?lt:nn:0;let Vt=null,Kn=null,ur=[];Zt=Zt.replace(it,Fn=>{let en=Fn.trim().slice(1);return en=en[0]==='"'?y(en.slice(1,-1)):en.replace(f,""),en!=""&&ur.push(en),""});let on=$t(Zt),tr;if(ur.length>0){if(tr=new RegExp(ur.join("|"),"i"+tt),on.length==0){let Fn=[];for(let en=0;en<Et.length;en++)tr.test(Et[en])||Fn.push(en);return[Fn,null,null]}}else if(on.length==0)return[null,null,null];if(nn>0){let Fn=$t(Zt);if(Fn.length>1){let en=Fn.slice().sort((kn,Jn)=>Jn.length-kn.length);for(let kn=0;kn<en.length;kn++){if(rn?.length==0)return[[],null,null];rn=me(Et,en[kn],rn)}if(Fn.length>nn)return[rn,null,null];Vt=C(Fn).map(kn=>kn.join(" ")),Kn=[];let gn=new Set;for(let kn=0;kn<Vt.length;kn++)if(gn.size<rn.length){let Jn=rn.filter(kr=>!gn.has(kr)),Nn=me(Et,Vt[kn],Jn);for(let kr=0;kr<Nn.length;kr++)gn.add(Nn[kr]);Kn.push(Nn)}else Kn.push([])}}Vt==null&&(Vt=[Zt],Kn=[rn?.length>0?rn:me(Et,Zt)]);let Cn=null,Wn=null;if(ur.length>0&&(Kn=Kn.map(Fn=>Fn.filter(en=>!tr.test(Et[en])))),Kn.reduce((Fn,en)=>Fn+en.length,0)<=Pn){Cn={},Wn=[];for(let Fn=0;Fn<Kn.length;Fn++){let en=Kn[Fn];if(en==null||en.length==0)continue;let gn=Vt[Fn],kn=ge(en,Et,gn),Jn=U.sort(kn,Et,gn,je);if(Fn>0)for(let Nn=0;Nn<Jn.length;Nn++)Jn[Nn]+=Wn.length;for(let Nn in kn)Cn[Nn]=(Cn[Nn]??[]).concat(kn[Nn]);Wn=Wn.concat(Jn)}}return[[].concat(...Kn),Cn,Wn]};return{search:(...Et)=>Ft(...Et),split:$t,filter:me,info:ge,sort:U.sort}}const R=(()=>{let U={A:"\xC1\xC0\xC3\xC2\xC4\u0104\u0102\xC5",a:"\xE1\xE0\xE3\xE2\xE4\u0105\u0103\xE5",E:"\xC9\xC8\xCA\xCB\u0116\u011A",e:"\xE9\xE8\xEA\xEB\u0119\u011B",I:"\xCD\xCC\xCE\xCF\u012E\u0130",i:"\xED\xEC\xEE\xEF\u012F\u0131",O:"\xD3\xD2\xD4\xD5\xD6",o:"\xF3\xF2\xF4\xF5\xF6",U:"\xDA\xD9\xDB\xDC\u016A\u0172\u016E\u0170",u:"\xFA\xF9\xFB\xFC\u016B\u0173\u016F\u0171",C:"\xC7\u010C\u0106",c:"\xE7\u010D\u0107",D:"\u010E",d:"\u010F",G:"\u011E",g:"\u011F",L:"\u0141",l:"\u0142",N:"\xD1\u0143\u0147",n:"\xF1\u0144\u0148",S:"\u0160\u015A\u0218\u015E",s:"\u0161\u015B\u0219\u015F",T:"\u0162\u021A\u0164",t:"\u0163\u021B\u0165",Y:"\xDD",y:"\xFD",Z:"\u017B\u0179\u017D",z:"\u017C\u017A\u017E"},$={},ee="";for(let z in U)U[z].split("").forEach(Q=>{ee+=Q,$[Q]=z});let re=new RegExp(`[${ee}]`,"g"),Se=z=>$[z];return z=>{if(typeof z=="string")return z.replace(re,Se);let Q=Array(z.length);for(let ce=0;ce<z.length;ce++)Q[ce]=z[ce].replace(re,Se);return Q}})();function C(U){U=U.slice();let $=U.length,ee=[U.slice()],re=new Array($).fill(0),Se=1,z,Q;for(;Se<$;)re[Se]<Se?(z=Se%2&&re[Se],Q=U[Se],U[Se]=U[z],U[z]=Q,++re[Se],Se=1,ee.push(U.slice())):(re[Se]=0,++Se);return ee}const L=(U,$)=>$?`<mark>${U}</mark>`:U,j=(U,$)=>U+$;function I(U,$,ee=L,re="",Se=j){re=Se(re,ee(U.substring(0,$[0]),!1))??re;for(let z=0;z<$.length;z+=2){let Q=$[z],ce=$[z+1];re=Se(re,ee(U.substring(Q,ce),!0))??re,z<$.length-3&&(re=Se(re,ee(U.substring($[z+1],$[z+2]),!1))??re)}return re=Se(re,ee(U.substring($[$.length-1]),!1))??re,re}O.latinize=R,O.permute=U=>C([...Array(U.length).keys()]).sort((ee,re)=>{for(let Se=0;Se<ee.length;Se++)if(ee[Se]!=re[Se])return ee[Se]-re[Se];return 0}).map(ee=>ee.map(re=>U[re])),O.highlight=I},84262:Ge=>{function w(u){return u&&u.__esModule?u:{default:u}}Ge.exports=w,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},84596:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l=u(96540);function g(y){var x=(0,l.useRef)();return(0,l.useEffect)(function(){x.current=y}),x.current}},84709:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>p,lG:()=>x,uN:()=>f});var l=u(3116);function g(h,E){return function(v){return h+v*E}}function y(h,E,v){return h=Math.pow(h,v),E=Math.pow(E,v)-h,v=1/v,function(m){return Math.pow(h+m*E,v)}}function x(h,E){var v=E-h;return v?g(h,v>180||v<-180?v-360*Math.round(v/360):v):(0,l.A)(isNaN(h)?E:h)}function f(h){return(h=+h)==1?p:function(E,v){return v-E?y(E,v,h):(0,l.A)(isNaN(E)?v:E)}}function p(h,E){var v=E-h;return v?g(h,v):(0,l.A)(isNaN(h)?E:h)}},84783:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>Ji});var l=u(28295),g=u(30981),y=u(72065),x=u(68210),f=u(96540);function p(k){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},p(k)}function h(k,ve){if(p(k)!="object"||!k)return k;var Le=k[Symbol.toPrimitive];if(Le!==void 0){var Ye=Le.call(k,ve||"default");if(p(Ye)!="object")return Ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ve==="string"?String:Number)(k)}function E(k){var ve=h(k,"string");return p(ve)=="symbol"?ve:ve+""}function v(k,ve,Le){return(ve=E(ve))in k?Object.defineProperty(k,ve,{value:Le,enumerable:!0,configurable:!0,writable:!0}):k[ve]=Le,k}var m=u(48802),S=u(46942),d=u.n(S);function O(k,ve){return k!==void 0?k:ve?"bottomRight":"bottomLeft"}var R=f.createContext(null);const C=R;var L={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function j(k){var ve=k.popupElement,Le=k.popupStyle,Ye=k.popupClassName,ot=k.popupAlign,Lt=k.transitionName,an=k.getPopupContainer,nr=k.children,vr=k.range,$r=k.placement,Fr=k.builtinPlacements,qr=Fr===void 0?L:Fr,jr=k.direction,vi=k.visible,Mi=k.onClose,ra=f.useContext(C),Yi=ra.prefixCls,ua="".concat(Yi,"-dropdown"),Sa=O($r,jr==="rtl");return f.createElement(m.A,{showAction:[],hideAction:["click"],popupPlacement:Sa,builtinPlacements:qr,prefixCls:ua,popupTransitionName:Lt,popup:ve,popupAlign:ot,popupVisible:vi,popupClassName:d()(Ye,v(v({},"".concat(ua,"-range"),vr),"".concat(ua,"-rtl"),jr==="rtl")),popupStyle:Le,stretch:"minWidth",getPopupContainer:an,onPopupVisibleChange:function(V){V||Mi()}},nr)}const I=j;function U(k,ve){var Le=Object.keys(k);if(Object.getOwnPropertySymbols){var Ye=Object.getOwnPropertySymbols(k);ve&&(Ye=Ye.filter(function(ot){return Object.getOwnPropertyDescriptor(k,ot).enumerable})),Le.push.apply(Le,Ye)}return Le}function $(k){for(var ve=1;ve<arguments.length;ve++){var Le=arguments[ve]!=null?arguments[ve]:{};ve%2?U(Object(Le),!0).forEach(function(Ye){v(k,Ye,Le[Ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(Le)):U(Object(Le)).forEach(function(Ye){Object.defineProperty(k,Ye,Object.getOwnPropertyDescriptor(Le,Ye))})}return k}function ee(k,ve,Le,Ye){var ot=f.useMemo(function(){return k||function(an,nr){var vr=an;return ve&&nr.type==="date"?ve(vr,nr.today):Le&&nr.type==="month"?Le(vr,nr.locale):nr.originNode}},[k,Le,ve]),Lt=f.useCallback(function(an,nr){return ot(an,$($({},nr),{},{range:Ye}))},[ot,Ye]);return Lt}function re(k){if(Array.isArray(k))return k}function Se(k,ve){var Le=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(Le!=null){var Ye,ot,Lt,an,nr=[],vr=!0,$r=!1;try{if(Lt=(Le=Le.call(k)).next,ve===0){if(Object(Le)!==Le)return;vr=!1}else for(;!(vr=(Ye=Lt.call(Le)).done)&&(nr.push(Ye.value),nr.length!==ve);vr=!0);}catch(Fr){$r=!0,ot=Fr}finally{try{if(!vr&&Le.return!=null&&(an=Le.return(),Object(an)!==an))return}finally{if($r)throw ot}}return nr}}function z(k,ve){(ve==null||ve>k.length)&&(ve=k.length);for(var Le=0,Ye=Array(ve);Le<ve;Le++)Ye[Le]=k[Le];return Ye}function Q(k,ve){if(k){if(typeof k=="string")return z(k,ve);var Le={}.toString.call(k).slice(8,-1);return Le==="Object"&&k.constructor&&(Le=k.constructor.name),Le==="Map"||Le==="Set"?Array.from(k):Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le)?z(k,ve):void 0}}function ce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(k,ve){return re(k)||Se(k,ve)||Q(k,ve)||ce()}function q(k){if(Array.isArray(k))return z(k)}function te(k){if(typeof Symbol<"u"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}function A(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(k){return q(k)||te(k)||Q(k)||A()}function B(k,ve){for(var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ye=String(k);Ye.length<ve;)Ye="".concat(Le).concat(Ye);return Ye}function X(k){return k==null?[]:Array.isArray(k)?k:[k]}function ue(k,ve,Le){var Ye=T(k);return Ye[ve]=Le,Ye}function ie(k,ve){var Le={},Ye=ve||Object.keys(k);return Ye.forEach(function(ot){k[ot]!==void 0&&(Le[ot]=k[ot])}),Le}function Te(k,ve,Le){if(Le)return Le;switch(k){case"time":return ve.fieldTimeFormat;case"datetime":return ve.fieldDateTimeFormat;case"month":return ve.fieldMonthFormat;case"year":return ve.fieldYearFormat;case"quarter":return ve.fieldQuarterFormat;case"week":return ve.fieldWeekFormat;default:return ve.fieldDateFormat}}function je(k,ve,Le){var Ye=Le!==void 0?Le:ve[ve.length-1],ot=ve.find(function(Lt){return k[Lt]});return Ye!==ot?k[ot]:void 0}function yt(k,ve){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ye=f.useState([!1,!1]),ot=se(Ye,2),Lt=ot[0],an=ot[1],nr=function(Fr,qr){an(function(jr){return ue(jr,qr,Fr)})},vr=f.useMemo(function(){return Lt.map(function($r,Fr){if($r)return!0;var qr=k[Fr];return qr?!!(!Le[Fr]&&!qr||qr&&ve(qr,{activeIndex:Fr})):!1})},[k,Lt,ve,Le]);return[vr,nr]}function tt(k,ve,Le,Ye,ot){var Lt="",an=[];return k&&an.push(ot?"hh":"HH"),ve&&an.push("mm"),Le&&an.push("ss"),Lt=an.join(":"),Ye&&(Lt+=".SSS"),ot&&(Lt+=" A"),Lt}function Ze(k,ve,Le,Ye,ot,Lt){var an=k.fieldDateTimeFormat,nr=k.fieldDateFormat,vr=k.fieldTimeFormat,$r=k.fieldMonthFormat,Fr=k.fieldYearFormat,qr=k.fieldWeekFormat,jr=k.fieldQuarterFormat,vi=k.yearFormat,Mi=k.cellYearFormat,ra=k.cellQuarterFormat,Yi=k.dayFormat,ua=k.cellDateFormat,Sa=tt(ve,Le,Ye,ot,Lt);return $($({},k),{},{fieldDateTimeFormat:an||"YYYY-MM-DD ".concat(Sa),fieldDateFormat:nr||"YYYY-MM-DD",fieldTimeFormat:vr||Sa,fieldMonthFormat:$r||"YYYY-MM",fieldYearFormat:Fr||"YYYY",fieldWeekFormat:qr||"gggg-wo",fieldQuarterFormat:jr||"YYYY-[Q]Q",yearFormat:vi||"YYYY",cellYearFormat:Mi||"YYYY",cellQuarterFormat:ra||"[Q]Q",cellDateFormat:ua||Yi||"D"})}function Ne(k,ve){var Le=ve.showHour,Ye=ve.showMinute,ot=ve.showSecond,Lt=ve.showMillisecond,an=ve.use12Hours;return f.useMemo(function(){return Ze(k,Le,Ye,ot,Lt,an)},[k,Le,Ye,ot,Lt,an])}function it(k,ve,Le){return Le??ve.some(function(Ye){return k.includes(Ye)})}var Rt=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Dn(k){var ve=ie(k,Rt),Le=k.format,Ye=k.picker,ot=null;return Le&&(ot=Le,Array.isArray(ot)&&(ot=ot[0]),ot=p(ot)==="object"?ot.format:ot),Ye==="time"&&(ve.format=ot),[ve,ot]}function Mt(k){return k&&typeof k=="string"}function Wt(k,ve,Le,Ye){return[k,ve,Le,Ye].some(function(ot){return ot!==void 0})}function Tn(k,ve,Le,Ye,ot){var Lt=ve,an=Le,nr=Ye;if(!k&&!Lt&&!an&&!nr&&!ot)Lt=!0,an=!0,nr=!0;else if(k){var vr,$r,Fr,qr=[Lt,an,nr].some(function(Mi){return Mi===!1}),jr=[Lt,an,nr].some(function(Mi){return Mi===!0}),vi=qr?!0:!jr;Lt=(vr=Lt)!==null&&vr!==void 0?vr:vi,an=($r=an)!==null&&$r!==void 0?$r:vi,nr=(Fr=nr)!==null&&Fr!==void 0?Fr:vi}return[Lt,an,nr,ot]}function bn(k){var ve=k.showTime,Le=Dn(k),Ye=se(Le,2),ot=Ye[0],Lt=Ye[1],an=ve&&p(ve)==="object"?ve:{},nr=$($({defaultOpenValue:an.defaultOpenValue||an.defaultValue},ot),an),vr=nr.showMillisecond,$r=nr.showHour,Fr=nr.showMinute,qr=nr.showSecond,jr=Wt($r,Fr,qr,vr),vi=Tn(jr,$r,Fr,qr,vr),Mi=se(vi,3);return $r=Mi[0],Fr=Mi[1],qr=Mi[2],[nr,$($({},nr),{},{showHour:$r,showMinute:Fr,showSecond:qr,showMillisecond:vr}),nr.format,Lt]}function $t(k,ve,Le,Ye,ot){var Lt=k==="time";if(k==="datetime"||Lt){for(var an=Ye,nr=Te(k,ot,null),vr=nr,$r=[ve,Le],Fr=0;Fr<$r.length;Fr+=1){var qr=X($r[Fr])[0];if(Mt(qr)){vr=qr;break}}var jr=an.showHour,vi=an.showMinute,Mi=an.showSecond,ra=an.showMillisecond,Yi=an.use12Hours,ua=it(vr,["a","A","LT","LLL","LTS"],Yi),Sa=Wt(jr,vi,Mi,ra);Sa||(jr=it(vr,["H","h","k","LT","LLL"]),vi=it(vr,["m","LT","LLL"]),Mi=it(vr,["s","LTS"]),ra=it(vr,["SSS"]));var Xt=Tn(Sa,jr,vi,Mi,ra),V=se(Xt,3);jr=V[0],vi=V[1],Mi=V[2];var Y=ve||tt(jr,vi,Mi,ra,ua);return $($({},an),{},{format:Y,showHour:jr,showMinute:vi,showSecond:Mi,showMillisecond:ra,use12Hours:ua})}return null}function Ct(k,ve,Le){if(ve===!1)return null;var Ye=ve&&p(ve)==="object"?ve:{};return Ye.clearIcon||Le||f.createElement("span",{className:"".concat(k,"-clear-btn")})}var Z=7;function me(k,ve,Le){return!k&&!ve||k===ve?!0:!k||!ve?!1:Le()}function ke(k,ve,Le){return me(ve,Le,function(){var Ye=Math.floor(k.getYear(ve)/10),ot=Math.floor(k.getYear(Le)/10);return Ye===ot})}function Ee(k,ve,Le){return me(ve,Le,function(){return k.getYear(ve)===k.getYear(Le)})}function _e(k,ve){var Le=Math.floor(k.getMonth(ve)/3);return Le+1}function ge(k,ve,Le){return me(ve,Le,function(){return Ee(k,ve,Le)&&_e(k,ve)===_e(k,Le)})}function Me(k,ve,Le){return me(ve,Le,function(){return Ee(k,ve,Le)&&k.getMonth(ve)===k.getMonth(Le)})}function lt(k,ve,Le){return me(ve,Le,function(){return Ee(k,ve,Le)&&Me(k,ve,Le)&&k.getDate(ve)===k.getDate(Le)})}function Ft(k,ve,Le){return me(ve,Le,function(){return k.getHour(ve)===k.getHour(Le)&&k.getMinute(ve)===k.getMinute(Le)&&k.getSecond(ve)===k.getSecond(Le)})}function Et(k,ve,Le){return me(ve,Le,function(){return lt(k,ve,Le)&&Ft(k,ve,Le)&&k.getMillisecond(ve)===k.getMillisecond(Le)})}function Zt(k,ve,Le,Ye){return me(Le,Ye,function(){var ot=k.locale.getWeekFirstDate(ve,Le),Lt=k.locale.getWeekFirstDate(ve,Ye);return Ee(k,ot,Lt)&&k.locale.getWeek(ve,Le)===k.locale.getWeek(ve,Ye)})}function nn(k,ve,Le,Ye,ot){switch(ot){case"date":return lt(k,Le,Ye);case"week":return Zt(k,ve.locale,Le,Ye);case"month":return Me(k,Le,Ye);case"quarter":return ge(k,Le,Ye);case"year":return Ee(k,Le,Ye);case"decade":return ke(k,Le,Ye);case"time":return Ft(k,Le,Ye);default:return Et(k,Le,Ye)}}function Pn(k,ve,Le,Ye){return!ve||!Le||!Ye?!1:k.isAfter(Ye,ve)&&k.isAfter(Le,Ye)}function rn(k,ve,Le,Ye,ot){return nn(k,ve,Le,Ye,ot)?!0:k.isAfter(Le,Ye)}function Vt(k,ve,Le){var Ye=ve.locale.getWeekFirstDay(k),ot=ve.setDate(Le,1),Lt=ve.getWeekDay(ot),an=ve.addDate(ot,Ye-Lt);return ve.getMonth(an)===ve.getMonth(Le)&&ve.getDate(an)>1&&(an=ve.addDate(an,-7)),an}function Kn(k,ve){var Le=ve.generateConfig,Ye=ve.locale,ot=ve.format;return k?typeof ot=="function"?ot(k):Le.locale.format(Ye.locale,k,ot):""}function ur(k,ve,Le){var Ye=ve,ot=["getHour","getMinute","getSecond","getMillisecond"],Lt=["setHour","setMinute","setSecond","setMillisecond"];return Lt.forEach(function(an,nr){Le?Ye=k[an](Ye,k[ot[nr]](Le)):Ye=k[an](Ye,0)}),Ye}function on(k,ve,Le,Ye,ot){var Lt=(0,l._q)(function(an,nr){return!!(Le&&Le(an,nr)||Ye&&k.isAfter(Ye,an)&&!nn(k,ve,Ye,an,nr.type)||ot&&k.isAfter(an,ot)&&!nn(k,ve,ot,an,nr.type))});return Lt}function tr(k,ve,Le){return f.useMemo(function(){var Ye=Te(k,ve,Le),ot=X(Ye),Lt=ot[0],an=p(Lt)==="object"&&Lt.type==="mask"?Lt.format:null;return[ot.map(function(nr){return typeof nr=="string"||typeof nr=="function"?nr:nr.format}),an]},[k,ve,Le])}function Cn(k,ve,Le){return typeof k[0]=="function"||Le?!0:ve}function Wn(k,ve,Le,Ye){var ot=(0,l._q)(function(Lt,an){var nr=$({type:ve},an);if(delete nr.activeIndex,!k.isValidate(Lt)||Le&&Le(Lt,nr))return!0;if((ve==="date"||ve==="time")&&Ye){var vr,$r=an&&an.activeIndex===1?"end":"start",Fr=((vr=Ye.disabledTime)===null||vr===void 0?void 0:vr.call(Ye,Lt,$r,{from:nr.from}))||{},qr=Fr.disabledHours,jr=Fr.disabledMinutes,vi=Fr.disabledSeconds,Mi=Fr.disabledMilliseconds,ra=Ye.disabledHours,Yi=Ye.disabledMinutes,ua=Ye.disabledSeconds,Sa=qr||ra,Xt=jr||Yi,V=vi||ua,Y=k.getHour(Lt),D=k.getMinute(Lt),P=k.getSecond(Lt),oe=k.getMillisecond(Lt);if(Sa&&Sa().includes(Y)||Xt&&Xt(Y).includes(D)||V&&V(Y,D).includes(P)||Mi&&Mi(Y,D,P).includes(oe))return!0}return!1});return ot}function er(k){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le=f.useMemo(function(){var Ye=k&&X(k);return ve&&Ye&&(Ye[1]=Ye[1]||Ye[0]),Ye},[k,ve]);return Le}function Fn(k,ve){var Le=k.generateConfig,Ye=k.locale,ot=k.picker,Lt=ot===void 0?"date":ot,an=k.prefixCls,nr=an===void 0?"rc-picker":an,vr=k.styles,$r=vr===void 0?{}:vr,Fr=k.classNames,qr=Fr===void 0?{}:Fr,jr=k.order,vi=jr===void 0?!0:jr,Mi=k.components,ra=Mi===void 0?{}:Mi,Yi=k.inputRender,ua=k.allowClear,Sa=k.clearIcon,Xt=k.needConfirm,V=k.multiple,Y=k.format,D=k.inputReadOnly,P=k.disabledDate,oe=k.minDate,Ie=k.maxDate,Ue=k.showTime,Xe=k.value,dt=k.defaultValue,kt=k.pickerValue,dn=k.defaultPickerValue,Vn=er(Xe),qn=er(dt),yr=er(kt),ci=er(dn),hi=Lt==="date"&&Ue?"datetime":Lt,Ti=hi==="time"||hi==="datetime",Vi=Ti||V,Di=Xt??Ti,Pi=bn(k),mt=se(Pi,4),tn=mt[0],or=mt[1],rt=mt[2],St=mt[3],_n=Ne(Ye,or),vn=f.useMemo(function(){return $t(hi,rt,St,tn,_n)},[hi,rt,St,tn,_n]),Ln=f.useMemo(function(){return $($({},k),{},{prefixCls:nr,locale:_n,picker:Lt,styles:$r,classNames:qr,order:vi,components:$({input:Yi},ra),clearIcon:Ct(nr,ua,Sa),showTime:vn,value:Vn,defaultValue:qn,pickerValue:yr,defaultPickerValue:ci},ve?.())},[k]),_r=tr(hi,_n,Y),Br=se(_r,2),Kr=Br[0],Jr=Br[1],ii=Cn(Kr,D,V),le=on(Le,Ye,P,oe,Ie),Ae=Wn(Le,Lt,le,vn),Oe=f.useMemo(function(){return $($({},Ln),{},{needConfirm:Di,inputReadOnly:ii,disabledDate:le})},[Ln,Di,ii,le]);return[Oe,hi,Vi,Kr,Jr,Ae]}var en=u(25371);function gn(k,ve,Le){var Ye=(0,l.vz)(ve,{value:k}),ot=se(Ye,2),Lt=ot[0],an=ot[1],nr=f.useRef(k),vr=f.useRef(),$r=function(){en.A.cancel(vr.current)},Fr=(0,l._q)(function(){an(nr.current),Le&&Lt!==nr.current&&Le(nr.current)}),qr=(0,l._q)(function(jr,vi){$r(),nr.current=jr,jr||vi?Fr():vr.current=(0,en.A)(Fr)});return f.useEffect(function(){return $r},[]),[Lt,qr]}function kn(k,ve){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ye=arguments.length>3?arguments[3]:void 0,ot=Le.every(function(Fr){return Fr})?!1:k,Lt=gn(ot,ve||!1,Ye),an=se(Lt,2),nr=an[0],vr=an[1];function $r(Fr){var qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!qr.inherit||nr)&&vr(Fr,qr.force)}return[nr,$r]}function Jn(k){var ve=f.useRef();return f.useImperativeHandle(k,function(){var Le;return{nativeElement:(Le=ve.current)===null||Le===void 0?void 0:Le.nativeElement,focus:function(ot){var Lt;(Lt=ve.current)===null||Lt===void 0||Lt.focus(ot)},blur:function(){var ot;(ot=ve.current)===null||ot===void 0||ot.blur()}}}),ve}function Nn(k,ve){return f.useMemo(function(){return k||(ve?((0,x.Ay)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ve).map(function(Le){var Ye=se(Le,2),ot=Ye[0],Lt=Ye[1];return{label:ot,value:Lt}})):[])},[k,ve])}function kr(k,ve){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ye=f.useRef(ve);Ye.current=ve,(0,g.o)(function(){if(k)Ye.current(k);else{var ot=(0,en.A)(function(){Ye.current(k)},Le);return function(){en.A.cancel(ot)}}},[k])}function bt(k){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ye=f.useState(0),ot=se(Ye,2),Lt=ot[0],an=ot[1],nr=f.useState(!1),vr=se(nr,2),$r=vr[0],Fr=vr[1],qr=f.useRef([]),jr=f.useRef(null),vi=f.useRef(null),Mi=function(V){jr.current=V},ra=function(V){return jr.current===V},Yi=function(V){Fr(V)},ua=function(V){return V&&(vi.current=V),vi.current},Sa=function(V){var Y=qr.current,D=new Set(Y.filter(function(oe){return V[oe]||ve[oe]})),P=Y[Y.length-1]===0?1:0;return D.size>=2||k[P]?null:P};return kr($r||Le,function(){$r||(qr.current=[],Mi(null))}),f.useEffect(function(){$r&&qr.current.push(Lt)},[$r,Lt]),[$r,Yi,ua,Lt,an,Sa,qr.current,Mi,ra]}function ne(k,ve,Le,Ye){switch(ve){case"date":case"week":return k.addMonth(Le,Ye);case"month":case"quarter":return k.addYear(Le,Ye);case"year":return k.addYear(Le,Ye*10);case"decade":return k.addYear(Le,Ye*100);default:return Le}}var fe=[];function K(k,ve,Le,Ye,ot,Lt,an,nr){var vr=arguments.length>8&&arguments[8]!==void 0?arguments[8]:fe,$r=arguments.length>9&&arguments[9]!==void 0?arguments[9]:fe,Fr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:fe,qr=arguments.length>11?arguments[11]:void 0,jr=arguments.length>12?arguments[12]:void 0,vi=arguments.length>13?arguments[13]:void 0,Mi=an==="time",ra=Lt||0,Yi=function(yr){var ci=k.getNow();return Mi&&(ci=ur(k,ci)),vr[yr]||Le[yr]||ci},ua=se($r,2),Sa=ua[0],Xt=ua[1],V=(0,l.vz)(function(){return Yi(0)},{value:Sa}),Y=se(V,2),D=Y[0],P=Y[1],oe=(0,l.vz)(function(){return Yi(1)},{value:Xt}),Ie=se(oe,2),Ue=Ie[0],Xe=Ie[1],dt=f.useMemo(function(){var qn=[D,Ue][ra];return Mi?qn:ur(k,qn,Fr[ra])},[Mi,D,Ue,ra,k,Fr]),kt=function(yr){var ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",hi=[P,Xe][ra];hi(yr);var Ti=[D,Ue];Ti[ra]=yr,qr&&(!nn(k,ve,D,Ti[0],an)||!nn(k,ve,Ue,Ti[1],an))&&qr(Ti,{source:ci,range:ra===1?"end":"start",mode:Ye})},dn=function(yr,ci){if(nr){var hi={date:"month",week:"month",month:"year",quarter:"year"},Ti=hi[an];if(Ti&&!nn(k,ve,yr,ci,Ti))return ne(k,an,ci,-1);if(an==="year"&&yr){var Vi=Math.floor(k.getYear(yr)/10),Di=Math.floor(k.getYear(ci)/10);if(Vi!==Di)return ne(k,an,ci,-1)}}return ci},Vn=f.useRef(null);return(0,g.A)(function(){if(ot&&!vr[ra]){var qn=Mi?null:k.getNow();if(Vn.current!==null&&Vn.current!==ra?qn=[D,Ue][ra^1]:Le[ra]?qn=ra===0?Le[0]:dn(Le[0],Le[1]):Le[ra^1]&&(qn=Le[ra^1]),qn){jr&&k.isAfter(jr,qn)&&(qn=jr);var yr=nr?ne(k,an,qn,1):qn;vi&&k.isAfter(yr,vi)&&(qn=nr?ne(k,an,vi,-1):vi),kt(qn,"reset")}}},[ot,ra,Le[ra]]),f.useEffect(function(){ot?Vn.current=ra:Vn.current=null},[ot,ra]),(0,g.A)(function(){ot&&vr&&vr[ra]&&kt(vr[ra],"reset")},[ot,ra]),[dt,kt]}function he(k,ve){var Le=f.useRef(k),Ye=f.useState({}),ot=se(Ye,2),Lt=ot[1],an=function($r){return $r&&ve!==void 0?ve:Le.current},nr=function($r){Le.current=$r,Lt({})};return[an,nr,an(!0)]}var Fe=[];function Nt(k,ve,Le){var Ye=function(an){return an.map(function(nr){return Kn(nr,{generateConfig:k,locale:ve,format:Le[0]})})},ot=function(an,nr){for(var vr=Math.max(an.length,nr.length),$r=-1,Fr=0;Fr<vr;Fr+=1){var qr=an[Fr]||null,jr=nr[Fr]||null;if(qr!==jr&&!Et(k,qr,jr)){$r=Fr;break}}return[$r<0,$r!==0]};return[Ye,ot]}function ln(k,ve){return T(k).sort(function(Le,Ye){return ve.isAfter(Le,Ye)?1:-1})}function pn(k){var ve=he(k),Le=se(ve,2),Ye=Le[0],ot=Le[1],Lt=(0,l._q)(function(){ot(k)});return f.useEffect(function(){Lt()},[k]),[Ye,ot]}function Yn(k,ve,Le,Ye,ot,Lt,an,nr,vr){var $r=(0,l.vz)(Lt,{value:an}),Fr=se($r,2),qr=Fr[0],jr=Fr[1],vi=qr||Fe,Mi=pn(vi),ra=se(Mi,2),Yi=ra[0],ua=ra[1],Sa=Nt(k,ve,Le),Xt=se(Sa,2),V=Xt[0],Y=Xt[1],D=(0,l._q)(function(oe){var Ie=T(oe);if(Ye)for(var Ue=0;Ue<2;Ue+=1)Ie[Ue]=Ie[Ue]||null;else ot&&(Ie=ln(Ie.filter(function(qn){return qn}),k));var Xe=Y(Yi(),Ie),dt=se(Xe,2),kt=dt[0],dn=dt[1];if(!kt&&(ua(Ie),nr)){var Vn=V(Ie);nr(Ie,Vn,{range:dn?"end":"start"})}}),P=function(){vr&&vr(Yi())};return[vi,jr,Yi,D,P]}function ht(k,ve,Le,Ye,ot,Lt,an,nr,vr,$r){var Fr=k.generateConfig,qr=k.locale,jr=k.picker,vi=k.onChange,Mi=k.allowEmpty,ra=k.order,Yi=Lt.some(function(kt){return kt})?!1:ra,ua=Nt(Fr,qr,an),Sa=se(ua,2),Xt=Sa[0],V=Sa[1],Y=he(ve),D=se(Y,2),P=D[0],oe=D[1],Ie=(0,l._q)(function(){oe(ve)});f.useEffect(function(){Ie()},[ve]);var Ue=(0,l._q)(function(kt){var dn=kt===null,Vn=T(kt||P());if(dn)for(var qn=Math.max(Lt.length,Vn.length),yr=0;yr<qn;yr+=1)Lt[yr]||(Vn[yr]=null);Yi&&Vn[0]&&Vn[1]&&(Vn=ln(Vn,Fr)),ot(Vn);var ci=Vn,hi=se(ci,2),Ti=hi[0],Vi=hi[1],Di=!Ti,Pi=!Vi,mt=Mi?(!Di||Mi[0])&&(!Pi||Mi[1]):!0,tn=!ra||Di||Pi||nn(Fr,qr,Ti,Vi,jr)||Fr.isAfter(Vi,Ti),or=(Lt[0]||!Ti||!$r(Ti,{activeIndex:0}))&&(Lt[1]||!Vi||!$r(Vi,{from:Ti,activeIndex:1})),rt=dn||mt&&tn&∨if(rt){Le(Vn);var St=V(Vn,ve),_n=se(St,1),vn=_n[0];vi&&!vn&&vi(dn&&Vn.every(function(Ln){return!Ln})?null:Vn,Xt(Vn))}return rt}),Xe=(0,l._q)(function(kt,dn){var Vn=ue(P(),kt,Ye()[kt]);oe(Vn),dn&&Ue()}),dt=!nr&&!vr;return kr(!dt,function(){dt&&(Ue(),ot(ve),Ie())},2),[Xe,Ue]}function De(){return De=Object.assign?Object.assign.bind():function(k){for(var ve=1;ve<arguments.length;ve++){var Le=arguments[ve];for(var Ye in Le)({}).hasOwnProperty.call(Le,Ye)&&(k[Ye]=Le[Ye])}return k},De.apply(null,arguments)}var we=u(50072);function Ke(k,ve,Le,Ye,ot,Lt){var an=k;function nr(qr,jr,vi){var Mi=Lt[qr](an),ra=vi.find(function(Xt){return Xt.value===Mi});if(!ra||ra.disabled){var Yi=vi.filter(function(Xt){return!Xt.disabled}),ua=T(Yi).reverse(),Sa=ua.find(function(Xt){return Xt.value<=Mi})||Yi[0];Sa&&(Mi=Sa.value,an=Lt[jr](an,Mi))}return Mi}var vr=nr("getHour","setHour",ve()),$r=nr("getMinute","setMinute",Le(vr)),Fr=nr("getSecond","setSecond",Ye(vr,$r));return nr("getMillisecond","setMillisecond",ot(vr,$r,Fr)),an}function be(){return[]}function pt(k,ve){for(var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ot=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Lt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,an=[],nr=Le>=1?Le|0:1,vr=k;vr<=ve;vr+=nr){var $r=ot.includes(vr);(!$r||!Ye)&&an.push({label:B(vr,Lt),value:vr,disabled:$r})}return an}function We(k){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Le=arguments.length>2?arguments[2]:void 0,Ye=ve||{},ot=Ye.use12Hours,Lt=Ye.hourStep,an=Lt===void 0?1:Lt,nr=Ye.minuteStep,vr=nr===void 0?1:nr,$r=Ye.secondStep,Fr=$r===void 0?1:$r,qr=Ye.millisecondStep,jr=qr===void 0?100:qr,vi=Ye.hideDisabledOptions,Mi=Ye.disabledTime,ra=Ye.disabledHours,Yi=Ye.disabledMinutes,ua=Ye.disabledSeconds,Sa=f.useMemo(function(){return Le||k.getNow()},[Le,k]);if(0)var Xt,V,Y;var D=f.useCallback(function(Vi){var Di=Mi?.(Vi)||{};return[Di.disabledHours||ra||be,Di.disabledMinutes||Yi||be,Di.disabledSeconds||ua||be,Di.disabledMilliseconds||be]},[Mi,ra,Yi,ua]),P=f.useMemo(function(){return D(Sa)},[Sa,D]),oe=se(P,4),Ie=oe[0],Ue=oe[1],Xe=oe[2],dt=oe[3],kt=f.useCallback(function(Vi,Di,Pi,mt){var tn=pt(0,23,an,vi,Vi()),or=ot?tn.map(function(vn){return $($({},vn),{},{label:B(vn.value%12||12,2)})}):tn,rt=function(Ln){return pt(0,59,vr,vi,Di(Ln))},St=function(Ln,_r){return pt(0,59,Fr,vi,Pi(Ln,_r))},_n=function(Ln,_r,Br){return pt(0,999,jr,vi,mt(Ln,_r,Br),3)};return[or,rt,St,_n]},[vi,an,ot,jr,vr,Fr]),dn=f.useMemo(function(){return kt(Ie,Ue,Xe,dt)},[kt,Ie,Ue,Xe,dt]),Vn=se(dn,4),qn=Vn[0],yr=Vn[1],ci=Vn[2],hi=Vn[3],Ti=function(Di,Pi){var mt=function(){return qn},tn=yr,or=ci,rt=hi;if(Pi){var St=D(Pi),_n=se(St,4),vn=_n[0],Ln=_n[1],_r=_n[2],Br=_n[3],Kr=kt(vn,Ln,_r,Br),Jr=se(Kr,4),ii=Jr[0],le=Jr[1],Ae=Jr[2],Oe=Jr[3];mt=function(){return ii},tn=le,or=Ae,rt=Oe}var et=Ke(Di,mt,tn,or,rt,k);return et};return[Ti,qn,yr,ci,hi]}function Je(k){var ve=k.mode,Le=k.internalMode,Ye=k.renderExtraFooter,ot=k.showNow,Lt=k.showTime,an=k.onSubmit,nr=k.onNow,vr=k.invalid,$r=k.needConfirm,Fr=k.generateConfig,qr=k.disabledDate,jr=f.useContext(C),vi=jr.prefixCls,Mi=jr.locale,ra=jr.button,Yi=ra===void 0?"button":ra,ua=Fr.getNow(),Sa=We(Fr,Lt,ua),Xt=se(Sa,1),V=Xt[0],Y=Ye?.(ve),D=qr(ua,{type:ve}),P=function(){if(!D){var dn=V(ua);nr(dn)}},oe="".concat(vi,"-now"),Ie="".concat(oe,"-btn"),Ue=ot&&f.createElement("li",{className:oe},f.createElement("a",{className:d()(Ie,D&&"".concat(Ie,"-disabled")),"aria-disabled":D,onClick:P},Le==="date"?Mi.today:Mi.now)),Xe=$r&&f.createElement("li",{className:"".concat(vi,"-ok")},f.createElement(Yi,{disabled:vr,onClick:an},Mi.ok)),dt=(Ue||Xe)&&f.createElement("ul",{className:"".concat(vi,"-ranges")},Ue,Xe);return!Y&&!dt?null:f.createElement("div",{className:"".concat(vi,"-footer")},Y&&f.createElement("div",{className:"".concat(vi,"-footer-extra")},Y),dt)}function ye(k,ve,Le){function Ye(ot,Lt){var an=ot.findIndex(function(vr){return nn(k,ve,vr,Lt,Le)});if(an===-1)return[].concat(T(ot),[Lt]);var nr=T(ot);return nr.splice(an,1),nr}return Ye}var Qe=f.createContext(null);function ze(){return f.useContext(Qe)}function qe(k,ve){var Le=k.prefixCls,Ye=k.generateConfig,ot=k.locale,Lt=k.disabledDate,an=k.minDate,nr=k.maxDate,vr=k.cellRender,$r=k.hoverValue,Fr=k.hoverRangeValue,qr=k.onHover,jr=k.values,vi=k.pickerValue,Mi=k.onSelect,ra=k.prevIcon,Yi=k.nextIcon,ua=k.superPrevIcon,Sa=k.superNextIcon,Xt=Ye.getNow(),V={now:Xt,values:jr,pickerValue:vi,prefixCls:Le,disabledDate:Lt,minDate:an,maxDate:nr,cellRender:vr,hoverValue:$r,hoverRangeValue:Fr,onHover:qr,locale:ot,generateConfig:Ye,onSelect:Mi,panelType:ve,prevIcon:ra,nextIcon:Yi,superPrevIcon:ua,superNextIcon:Sa};return[V,Xt]}var Pt=f.createContext({});function zt(k){for(var ve=k.rowNum,Le=k.colNum,Ye=k.baseDate,ot=k.getCellDate,Lt=k.prefixColumn,an=k.rowClassName,nr=k.titleFormat,vr=k.getCellText,$r=k.getCellClassName,Fr=k.headerCells,qr=k.cellSelection,jr=qr===void 0?!0:qr,vi=k.disabledDate,Mi=ze(),ra=Mi.prefixCls,Yi=Mi.panelType,ua=Mi.now,Sa=Mi.disabledDate,Xt=Mi.cellRender,V=Mi.onHover,Y=Mi.hoverValue,D=Mi.hoverRangeValue,P=Mi.generateConfig,oe=Mi.values,Ie=Mi.locale,Ue=Mi.onSelect,Xe=vi||Sa,dt="".concat(ra,"-cell"),kt=f.useContext(Pt),dn=kt.onCellDblClick,Vn=function(Pi){return oe.some(function(mt){return mt&&nn(P,Ie,Pi,mt,Yi)})},qn=[],yr=0;yr<ve;yr+=1){for(var ci=[],hi=void 0,Ti=function(){var Pi=yr*Le+Vi,mt=ot(Ye,Pi),tn=Xe?.(mt,{type:Yi});Vi===0&&(hi=mt,Lt&&ci.push(Lt(hi)));var or=!1,rt=!1,St=!1;if(jr&&D){var _n=se(D,2),vn=_n[0],Ln=_n[1];or=Pn(P,vn,Ln,mt),rt=nn(P,Ie,mt,vn,Yi),St=nn(P,Ie,mt,Ln,Yi)}var _r=nr?Kn(mt,{locale:Ie,format:nr,generateConfig:P}):void 0,Br=f.createElement("div",{className:"".concat(dt,"-inner")},vr(mt));ci.push(f.createElement("td",{key:Vi,title:_r,className:d()(dt,$(v(v(v(v(v(v({},"".concat(dt,"-disabled"),tn),"".concat(dt,"-hover"),(Y||[]).some(function(Kr){return nn(P,Ie,mt,Kr,Yi)})),"".concat(dt,"-in-range"),or&&!rt&&!St),"".concat(dt,"-range-start"),rt),"".concat(dt,"-range-end"),St),"".concat(ra,"-cell-selected"),!D&&Yi!=="week"&&Vn(mt)),$r(mt))),onClick:function(){tn||Ue(mt)},onDoubleClick:function(){!tn&&dn&&dn()},onMouseEnter:function(){tn||V?.(mt)},onMouseLeave:function(){tn||V?.(null)}},Xt?Xt(mt,{prefixCls:ra,originNode:Br,today:ua,type:Yi,locale:Ie}):Br))},Vi=0;Vi<Le;Vi+=1)Ti();qn.push(f.createElement("tr",{key:yr,className:an?.(hi)},ci))}return f.createElement("div",{className:"".concat(ra,"-body")},f.createElement("table",{className:"".concat(ra,"-content")},Fr&&f.createElement("thead",null,f.createElement("tr",null,Fr)),f.createElement("tbody",null,qn)))}var un={visibility:"hidden"};function hn(k){var ve=k.offset,Le=k.superOffset,Ye=k.onChange,ot=k.getStart,Lt=k.getEnd,an=k.children,nr=ze(),vr=nr.prefixCls,$r=nr.prevIcon,Fr=$r===void 0?"\u2039":$r,qr=nr.nextIcon,jr=qr===void 0?"\u203A":qr,vi=nr.superPrevIcon,Mi=vi===void 0?"\xAB":vi,ra=nr.superNextIcon,Yi=ra===void 0?"\xBB":ra,ua=nr.minDate,Sa=nr.maxDate,Xt=nr.generateConfig,V=nr.locale,Y=nr.pickerValue,D=nr.panelType,P="".concat(vr,"-header"),oe=f.useContext(Pt),Ie=oe.hidePrev,Ue=oe.hideNext,Xe=oe.hideHeader,dt=f.useMemo(function(){if(!ua||!ve||!Lt)return!1;var Di=Lt(ve(-1,Y));return!rn(Xt,V,Di,ua,D)},[ua,ve,Y,Lt,Xt,V,D]),kt=f.useMemo(function(){if(!ua||!Le||!Lt)return!1;var Di=Lt(Le(-1,Y));return!rn(Xt,V,Di,ua,D)},[ua,Le,Y,Lt,Xt,V,D]),dn=f.useMemo(function(){if(!Sa||!ve||!ot)return!1;var Di=ot(ve(1,Y));return!rn(Xt,V,Sa,Di,D)},[Sa,ve,Y,ot,Xt,V,D]),Vn=f.useMemo(function(){if(!Sa||!Le||!ot)return!1;var Di=ot(Le(1,Y));return!rn(Xt,V,Sa,Di,D)},[Sa,Le,Y,ot,Xt,V,D]),qn=function(Pi){ve&&Ye(ve(Pi,Y))},yr=function(Pi){Le&&Ye(Le(Pi,Y))};if(Xe)return null;var ci="".concat(P,"-prev-btn"),hi="".concat(P,"-next-btn"),Ti="".concat(P,"-super-prev-btn"),Vi="".concat(P,"-super-next-btn");return f.createElement("div",{className:P},Le&&f.createElement("button",{type:"button","aria-label":V.previousYear,onClick:function(){return yr(-1)},tabIndex:-1,className:d()(Ti,kt&&"".concat(Ti,"-disabled")),disabled:kt,style:Ie?un:{}},Mi),ve&&f.createElement("button",{type:"button","aria-label":V.previousMonth,onClick:function(){return qn(-1)},tabIndex:-1,className:d()(ci,dt&&"".concat(ci,"-disabled")),disabled:dt,style:Ie?un:{}},Fr),f.createElement("div",{className:"".concat(P,"-view")},an),ve&&f.createElement("button",{type:"button","aria-label":V.nextMonth,onClick:function(){return qn(1)},tabIndex:-1,className:d()(hi,dn&&"".concat(hi,"-disabled")),disabled:dn,style:Ue?un:{}},jr),Le&&f.createElement("button",{type:"button","aria-label":V.nextYear,onClick:function(){return yr(1)},tabIndex:-1,className:d()(Vi,Vn&&"".concat(Vi,"-disabled")),disabled:Vn,style:Ue?un:{}},Yi))}const xt=hn;function _t(k){var ve=k.prefixCls,Le=k.panelName,Ye=Le===void 0?"date":Le,ot=k.locale,Lt=k.generateConfig,an=k.pickerValue,nr=k.onPickerValueChange,vr=k.onModeChange,$r=k.mode,Fr=$r===void 0?"date":$r,qr=k.disabledDate,jr=k.onSelect,vi=k.onHover,Mi=k.showWeek,ra="".concat(ve,"-").concat(Ye,"-panel"),Yi="".concat(ve,"-cell"),ua=Fr==="week",Sa=qe(k,Fr),Xt=se(Sa,2),V=Xt[0],Y=Xt[1],D=Lt.locale.getWeekFirstDay(ot.locale),P=Lt.setDate(an,1),oe=Vt(ot.locale,Lt,P),Ie=Lt.getMonth(an),Ue=Mi===void 0?ua:Mi,Xe=Ue?function(Di){var Pi=qr?.(Di,{type:"week"});return f.createElement("td",{key:"week",className:d()(Yi,"".concat(Yi,"-week"),v({},"".concat(Yi,"-disabled"),Pi)),onClick:function(){Pi||jr(Di)},onMouseEnter:function(){Pi||vi?.(Di)},onMouseLeave:function(){Pi||vi?.(null)}},f.createElement("div",{className:"".concat(Yi,"-inner")},Lt.locale.getWeek(ot.locale,Di)))}:null,dt=[],kt=ot.shortWeekDays||(Lt.locale.getShortWeekDays?Lt.locale.getShortWeekDays(ot.locale):[]);Xe&&dt.push(f.createElement("th",{key:"empty"},f.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},ot.week)));for(var dn=0;dn<Z;dn+=1)dt.push(f.createElement("th",{key:dn},kt[(dn+D)%Z]));var Vn=function(Pi,mt){return Lt.addDate(Pi,mt)},qn=function(Pi){return Kn(Pi,{locale:ot,format:ot.cellDateFormat,generateConfig:Lt})},yr=function(Pi){var mt=v(v({},"".concat(ve,"-cell-in-view"),Me(Lt,Pi,an)),"".concat(ve,"-cell-today"),lt(Lt,Pi,Y));return mt},ci=ot.shortMonths||(Lt.locale.getShortMonths?Lt.locale.getShortMonths(ot.locale):[]),hi=f.createElement("button",{type:"button","aria-label":ot.yearSelect,key:"year",onClick:function(){vr("year",an)},tabIndex:-1,className:"".concat(ve,"-year-btn")},Kn(an,{locale:ot,format:ot.yearFormat,generateConfig:Lt})),Ti=f.createElement("button",{type:"button","aria-label":ot.monthSelect,key:"month",onClick:function(){vr("month",an)},tabIndex:-1,className:"".concat(ve,"-month-btn")},ot.monthFormat?Kn(an,{locale:ot,format:ot.monthFormat,generateConfig:Lt}):ci[Ie]),Vi=ot.monthBeforeYear?[Ti,hi]:[hi,Ti];return f.createElement(Qe.Provider,{value:V},f.createElement("div",{className:d()(ra,Mi&&"".concat(ra,"-show-week"))},f.createElement(xt,{offset:function(Pi){return Lt.addMonth(an,Pi)},superOffset:function(Pi){return Lt.addYear(an,Pi)},onChange:nr,getStart:function(Pi){return Lt.setDate(Pi,1)},getEnd:function(Pi){var mt=Lt.setDate(Pi,1);return mt=Lt.addMonth(mt,1),Lt.addDate(mt,-1)}},Vi),f.createElement(zt,De({titleFormat:ot.fieldDateFormat},k,{colNum:Z,rowNum:6,baseDate:oe,headerCells:dt,getCellDate:Vn,getCellText:qn,getCellClassName:yr,prefixColumn:Xe,cellSelection:!ua}))))}var qt=u(42467),fn=1/3;function On(k,ve){var Le=f.useRef(!1),Ye=f.useRef(null),ot=f.useRef(null),Lt=function(){return Le.current},an=function(){en.A.cancel(Ye.current),Le.current=!1},nr=f.useRef(),vr=function(){var qr=k.current;if(ot.current=null,nr.current=0,qr){var jr=qr.querySelector('[data-value="'.concat(ve,'"]')),vi=qr.querySelector("li"),Mi=function ra(){an(),Le.current=!0,nr.current+=1;var Yi=qr.scrollTop,ua=vi.offsetTop,Sa=jr.offsetTop,Xt=Sa-ua;if(Sa===0&&jr!==vi||!(0,qt.A)(qr)){nr.current<=5&&(Ye.current=(0,en.A)(ra));return}var V=Yi+(Xt-Yi)*fn,Y=Math.abs(Xt-V);if(ot.current!==null&&ot.current<Y){an();return}if(ot.current=Y,Y<=1){qr.scrollTop=Xt,an();return}qr.scrollTop=V,Ye.current=(0,en.A)(ra)};jr&&vi&&Mi()}},$r=(0,l._q)(vr);return[$r,an,Lt]}var Gn=300;function Bn(k){return k.map(function(ve){var Le=ve.value,Ye=ve.label,ot=ve.disabled;return[Le,Ye,ot].join(",")}).join(";")}function Lr(k){var ve=k.units,Le=k.value,Ye=k.optionalValue,ot=k.type,Lt=k.onChange,an=k.onHover,nr=k.onDblClick,vr=k.changeOnScroll,$r=ze(),Fr=$r.prefixCls,qr=$r.cellRender,jr=$r.now,vi=$r.locale,Mi="".concat(Fr,"-time-panel"),ra="".concat(Fr,"-time-panel-cell"),Yi=f.useRef(null),ua=f.useRef(),Sa=function(){clearTimeout(ua.current)},Xt=On(Yi,Le??Ye),V=se(Xt,3),Y=V[0],D=V[1],P=V[2];(0,g.A)(function(){return Y(),Sa(),function(){D(),Sa()}},[Le,Ye,Bn(ve)]);var oe=function(Xe){Sa();var dt=Xe.target;!P()&&vr&&(ua.current=setTimeout(function(){var kt=Yi.current,dn=kt.querySelector("li").offsetTop,Vn=Array.from(kt.querySelectorAll("li")),qn=Vn.map(function(Vi){return Vi.offsetTop-dn}),yr=qn.map(function(Vi,Di){return ve[Di].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Vi-dt.scrollTop)}),ci=Math.min.apply(Math,T(yr)),hi=yr.findIndex(function(Vi){return Vi===ci}),Ti=ve[hi];Ti&&!Ti.disabled&&Lt(Ti.value)},Gn))},Ie="".concat(Mi,"-column");return f.createElement("ul",{className:Ie,ref:Yi,"data-type":ot,onScroll:oe},ve.map(function(Ue){var Xe=Ue.label,dt=Ue.value,kt=Ue.disabled,dn=f.createElement("div",{className:"".concat(ra,"-inner")},Xe);return f.createElement("li",{key:dt,className:d()(ra,v(v({},"".concat(ra,"-selected"),Le===dt),"".concat(ra,"-disabled"),kt)),onClick:function(){kt||Lt(dt)},onDoubleClick:function(){!kt&&nr&&nr()},onMouseEnter:function(){an(dt)},onMouseLeave:function(){an(null)},"data-value":dt},qr?qr(dt,{prefixCls:Fr,originNode:dn,today:jr,type:"time",subType:ot,locale:vi}):dn)}))}function An(k){return k<12}function Un(k){var ve=k.showHour,Le=k.showMinute,Ye=k.showSecond,ot=k.showMillisecond,Lt=k.use12Hours,an=k.changeOnScroll,nr=ze(),vr=nr.prefixCls,$r=nr.values,Fr=nr.generateConfig,qr=nr.locale,jr=nr.onSelect,vi=nr.onHover,Mi=vi===void 0?function(){}:vi,ra=nr.pickerValue,Yi=$r?.[0]||null,ua=f.useContext(Pt),Sa=ua.onCellDblClick,Xt=We(Fr,k,Yi),V=se(Xt,5),Y=V[0],D=V[1],P=V[2],oe=V[3],Ie=V[4],Ue=function(Hi){var Oa=Yi&&Fr[Hi](Yi),Ma=ra&&Fr[Hi](ra);return[Oa,Ma]},Xe=Ue("getHour"),dt=se(Xe,2),kt=dt[0],dn=dt[1],Vn=Ue("getMinute"),qn=se(Vn,2),yr=qn[0],ci=qn[1],hi=Ue("getSecond"),Ti=se(hi,2),Vi=Ti[0],Di=Ti[1],Pi=Ue("getMillisecond"),mt=se(Pi,2),tn=mt[0],or=mt[1],rt=kt===null?null:An(kt)?"am":"pm",St=f.useMemo(function(){return Lt?An(kt)?D.filter(function($i){return An($i.value)}):D.filter(function($i){return!An($i.value)}):D},[kt,D,Lt]),_n=function(Hi,Oa){var Ma,Ua=Hi.filter(function(Xa){return!Xa.disabled});return Oa??(Ua==null||(Ma=Ua[0])===null||Ma===void 0?void 0:Ma.value)},vn=_n(D,kt),Ln=f.useMemo(function(){return P(vn)},[P,vn]),_r=_n(Ln,yr),Br=f.useMemo(function(){return oe(vn,_r)},[oe,vn,_r]),Kr=_n(Br,Vi),Jr=f.useMemo(function(){return Ie(vn,_r,Kr)},[Ie,vn,_r,Kr]),ii=_n(Jr,tn),le=f.useMemo(function(){if(!Lt)return[];var $i=Fr.getNow(),Hi=Fr.setHour($i,6),Oa=Fr.setHour($i,18),Ma=function(Xa,Na){var za=qr.cellMeridiemFormat;return za?Kn(Xa,{generateConfig:Fr,locale:qr,format:za}):Na};return[{label:Ma(Hi,"AM"),value:"am",disabled:D.every(function(Ua){return Ua.disabled||!An(Ua.value)})},{label:Ma(Oa,"PM"),value:"pm",disabled:D.every(function(Ua){return Ua.disabled||An(Ua.value)})}]},[D,Lt,Fr,qr]),Ae=function(Hi){var Oa=Y(Hi);jr(Oa)},Oe=f.useMemo(function(){var $i=Yi||ra||Fr.getNow(),Hi=function(Ma){return Ma!=null};return Hi(kt)?($i=Fr.setHour($i,kt),$i=Fr.setMinute($i,yr),$i=Fr.setSecond($i,Vi),$i=Fr.setMillisecond($i,tn)):Hi(dn)?($i=Fr.setHour($i,dn),$i=Fr.setMinute($i,ci),$i=Fr.setSecond($i,Di),$i=Fr.setMillisecond($i,or)):Hi(vn)&&($i=Fr.setHour($i,vn),$i=Fr.setMinute($i,_r),$i=Fr.setSecond($i,Kr),$i=Fr.setMillisecond($i,ii)),$i},[Yi,ra,kt,yr,Vi,tn,vn,_r,Kr,ii,dn,ci,Di,or,Fr]),et=function(Hi,Oa){return Hi===null?null:Fr[Oa](Oe,Hi)},Ot=function(Hi){return et(Hi,"setHour")},It=function(Hi){return et(Hi,"setMinute")},Mn=function(Hi){return et(Hi,"setSecond")},mn=function(Hi){return et(Hi,"setMillisecond")},At=function(Hi){return Hi===null?null:Hi==="am"&&!An(kt)?Fr.setHour(Oe,kt-12):Hi==="pm"&&An(kt)?Fr.setHour(Oe,kt+12):Oe},Ut=function(Hi){Ae(Ot(Hi))},jn=function(Hi){Ae(It(Hi))},Jt=function(Hi){Ae(Mn(Hi))},dr=function(Hi){Ae(mn(Hi))},wr=function(Hi){Ae(At(Hi))},Hr=function(Hi){Mi(Ot(Hi))},Ar=function(Hi){Mi(It(Hi))},yi=function(Hi){Mi(Mn(Hi))},Rr=function(Hi){Mi(mn(Hi))},si=function(Hi){Mi(At(Hi))},Si={onDblClick:Sa,changeOnScroll:an};return f.createElement("div",{className:"".concat(vr,"-content")},ve&&f.createElement(Lr,De({units:St,value:kt,optionalValue:dn,type:"hour",onChange:Ut,onHover:Hr},Si)),Le&&f.createElement(Lr,De({units:Ln,value:yr,optionalValue:ci,type:"minute",onChange:jn,onHover:Ar},Si)),Ye&&f.createElement(Lr,De({units:Br,value:Vi,optionalValue:Di,type:"second",onChange:Jt,onHover:yi},Si)),ot&&f.createElement(Lr,De({units:Jr,value:tn,optionalValue:or,type:"millisecond",onChange:dr,onHover:Rr},Si)),Lt&&f.createElement(Lr,De({units:le,value:rt,type:"meridiem",onChange:wr,onHover:si},Si)))}function cr(k){var ve=k.prefixCls,Le=k.value,Ye=k.locale,ot=k.generateConfig,Lt=k.showTime,an=Lt||{},nr=an.format,vr="".concat(ve,"-time-panel"),$r=qe(k,"time"),Fr=se($r,1),qr=Fr[0];return f.createElement(Qe.Provider,{value:qr},f.createElement("div",{className:d()(vr)},f.createElement(xt,null,Le?Kn(Le,{locale:Ye,format:nr,generateConfig:ot}):"\xA0"),f.createElement(Un,Lt)))}function mr(k){var ve=k.prefixCls,Le=k.generateConfig,Ye=k.showTime,ot=k.onSelect,Lt=k.value,an=k.pickerValue,nr=k.onHover,vr="".concat(ve,"-datetime-panel"),$r=We(Le,Ye),Fr=se($r,1),qr=Fr[0],jr=function(Yi){return Lt?ur(Le,Yi,Lt):ur(Le,Yi,an)},vi=function(Yi){nr?.(Yi&&jr(Yi))},Mi=function(Yi){var ua=jr(Yi);ot(qr(ua,ua))};return f.createElement("div",{className:vr},f.createElement(_t,De({},k,{onSelect:Mi,onHover:vi})),f.createElement(cr,k))}function hr(k){var ve=k.prefixCls,Le=k.locale,Ye=k.generateConfig,ot=k.pickerValue,Lt=k.disabledDate,an=k.onPickerValueChange,nr="".concat(ve,"-decade-panel"),vr=qe(k,"decade"),$r=se(vr,1),Fr=$r[0],qr=function(D){var P=Math.floor(Ye.getYear(D)/100)*100;return Ye.setYear(D,P)},jr=function(D){var P=qr(D);return Ye.addYear(P,99)},vi=qr(ot),Mi=jr(ot),ra=Ye.addYear(vi,-10),Yi=function(D,P){return Ye.addYear(D,P*10)},ua=function(D){var P=Le.cellYearFormat,oe=Kn(D,{locale:Le,format:P,generateConfig:Ye}),Ie=Kn(Ye.addYear(D,9),{locale:Le,format:P,generateConfig:Ye});return"".concat(oe,"-").concat(Ie)},Sa=function(D){return v({},"".concat(ve,"-cell-in-view"),ke(Ye,D,vi)||ke(Ye,D,Mi)||Pn(Ye,vi,Mi,D))},Xt=Lt?function(Y,D){var P=Ye.setDate(Y,1),oe=Ye.setMonth(P,0),Ie=Ye.setYear(oe,Math.floor(Ye.getYear(oe)/10)*10),Ue=Ye.addYear(Ie,10),Xe=Ye.addDate(Ue,-1);return Lt(Ie,D)&&Lt(Xe,D)}:null,V="".concat(Kn(vi,{locale:Le,format:Le.yearFormat,generateConfig:Ye}),"-").concat(Kn(Mi,{locale:Le,format:Le.yearFormat,generateConfig:Ye}));return f.createElement(Qe.Provider,{value:Fr},f.createElement("div",{className:nr},f.createElement(xt,{superOffset:function(D){return Ye.addYear(ot,D*100)},onChange:an,getStart:qr,getEnd:jr},V),f.createElement(zt,De({},k,{disabledDate:Xt,colNum:3,rowNum:4,baseDate:ra,getCellDate:Yi,getCellText:ua,getCellClassName:Sa}))))}function ar(k){var ve=k.prefixCls,Le=k.locale,Ye=k.generateConfig,ot=k.pickerValue,Lt=k.disabledDate,an=k.onPickerValueChange,nr=k.onModeChange,vr="".concat(ve,"-month-panel"),$r=qe(k,"month"),Fr=se($r,1),qr=Fr[0],jr=Ye.setMonth(ot,0),vi=Le.shortMonths||(Ye.locale.getShortMonths?Ye.locale.getShortMonths(Le.locale):[]),Mi=function(V,Y){return Ye.addMonth(V,Y)},ra=function(V){var Y=Ye.getMonth(V);return Le.monthFormat?Kn(V,{locale:Le,format:Le.monthFormat,generateConfig:Ye}):vi[Y]},Yi=function(){return v({},"".concat(ve,"-cell-in-view"),!0)},ua=Lt?function(Xt,V){var Y=Ye.setDate(Xt,1),D=Ye.setMonth(Y,Ye.getMonth(Y)+1),P=Ye.addDate(D,-1);return Lt(Y,V)&&Lt(P,V)}:null,Sa=f.createElement("button",{type:"button",key:"year","aria-label":Le.yearSelect,onClick:function(){nr("year")},tabIndex:-1,className:"".concat(ve,"-year-btn")},Kn(ot,{locale:Le,format:Le.yearFormat,generateConfig:Ye}));return f.createElement(Qe.Provider,{value:qr},f.createElement("div",{className:vr},f.createElement(xt,{superOffset:function(V){return Ye.addYear(ot,V)},onChange:an,getStart:function(V){return Ye.setMonth(V,0)},getEnd:function(V){return Ye.setMonth(V,11)}},Sa),f.createElement(zt,De({},k,{disabledDate:ua,titleFormat:Le.fieldMonthFormat,colNum:3,rowNum:4,baseDate:jr,getCellDate:Mi,getCellText:ra,getCellClassName:Yi}))))}function Cr(k){var ve=k.prefixCls,Le=k.locale,Ye=k.generateConfig,ot=k.pickerValue,Lt=k.onPickerValueChange,an=k.onModeChange,nr="".concat(ve,"-quarter-panel"),vr=qe(k,"quarter"),$r=se(vr,1),Fr=$r[0],qr=Ye.setMonth(ot,0),jr=function(ua,Sa){return Ye.addMonth(ua,Sa*3)},vi=function(ua){return Kn(ua,{locale:Le,format:Le.cellQuarterFormat,generateConfig:Ye})},Mi=function(){return v({},"".concat(ve,"-cell-in-view"),!0)},ra=f.createElement("button",{type:"button",key:"year","aria-label":Le.yearSelect,onClick:function(){an("year")},tabIndex:-1,className:"".concat(ve,"-year-btn")},Kn(ot,{locale:Le,format:Le.yearFormat,generateConfig:Ye}));return f.createElement(Qe.Provider,{value:Fr},f.createElement("div",{className:nr},f.createElement(xt,{superOffset:function(ua){return Ye.addYear(ot,ua)},onChange:Lt,getStart:function(ua){return Ye.setMonth(ua,0)},getEnd:function(ua){return Ye.setMonth(ua,11)}},ra),f.createElement(zt,De({},k,{titleFormat:Le.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:qr,getCellDate:jr,getCellText:vi,getCellClassName:Mi}))))}function Yr(k){var ve=k.prefixCls,Le=k.generateConfig,Ye=k.locale,ot=k.value,Lt=k.hoverValue,an=k.hoverRangeValue,nr=Ye.locale,vr="".concat(ve,"-week-panel-row"),$r=function(qr){var jr={};if(an){var vi=se(an,2),Mi=vi[0],ra=vi[1],Yi=Zt(Le,nr,Mi,qr),ua=Zt(Le,nr,ra,qr);jr["".concat(vr,"-range-start")]=Yi,jr["".concat(vr,"-range-end")]=ua,jr["".concat(vr,"-range-hover")]=!Yi&&!ua&&Pn(Le,Mi,ra,qr)}return Lt&&(jr["".concat(vr,"-hover")]=Lt.some(function(Sa){return Zt(Le,nr,qr,Sa)})),d()(vr,v({},"".concat(vr,"-selected"),!an&&Zt(Le,nr,ot,qr)),jr)};return f.createElement(_t,De({},k,{mode:"week",panelName:"week",rowClassName:$r}))}function Xr(k){var ve=k.prefixCls,Le=k.locale,Ye=k.generateConfig,ot=k.pickerValue,Lt=k.disabledDate,an=k.onPickerValueChange,nr=k.onModeChange,vr="".concat(ve,"-year-panel"),$r=qe(k,"year"),Fr=se($r,1),qr=Fr[0],jr=function(P){var oe=Math.floor(Ye.getYear(P)/10)*10;return Ye.setYear(P,oe)},vi=function(P){var oe=jr(P);return Ye.addYear(oe,9)},Mi=jr(ot),ra=vi(ot),Yi=Ye.addYear(Mi,-1),ua=function(P,oe){return Ye.addYear(P,oe)},Sa=function(P){return Kn(P,{locale:Le,format:Le.cellYearFormat,generateConfig:Ye})},Xt=function(P){return v({},"".concat(ve,"-cell-in-view"),Ee(Ye,P,Mi)||Ee(Ye,P,ra)||Pn(Ye,Mi,ra,P))},V=Lt?function(D,P){var oe=Ye.setMonth(D,0),Ie=Ye.setDate(oe,1),Ue=Ye.addYear(Ie,1),Xe=Ye.addDate(Ue,-1);return Lt(Ie,P)&&Lt(Xe,P)}:null,Y=f.createElement("button",{type:"button",key:"decade","aria-label":Le.decadeSelect,onClick:function(){nr("decade")},tabIndex:-1,className:"".concat(ve,"-decade-btn")},Kn(Mi,{locale:Le,format:Le.yearFormat,generateConfig:Ye}),"-",Kn(ra,{locale:Le,format:Le.yearFormat,generateConfig:Ye}));return f.createElement(Qe.Provider,{value:qr},f.createElement("div",{className:vr},f.createElement(xt,{superOffset:function(P){return Ye.addYear(ot,P*10)},onChange:an,getStart:jr,getEnd:vi},Y),f.createElement(zt,De({},k,{disabledDate:V,titleFormat:Le.fieldYearFormat,colNum:3,rowNum:4,baseDate:Yi,getCellDate:ua,getCellText:Sa,getCellClassName:Xt}))))}var ni={date:_t,datetime:mr,week:Yr,month:ar,quarter:Cr,year:Xr,decade:hr,time:cr};function ki(k,ve){var Le,Ye=k.locale,ot=k.generateConfig,Lt=k.direction,an=k.prefixCls,nr=k.tabIndex,vr=nr===void 0?0:nr,$r=k.multiple,Fr=k.defaultValue,qr=k.value,jr=k.onChange,vi=k.onSelect,Mi=k.defaultPickerValue,ra=k.pickerValue,Yi=k.onPickerValueChange,ua=k.mode,Sa=k.onPanelChange,Xt=k.picker,V=Xt===void 0?"date":Xt,Y=k.showTime,D=k.hoverValue,P=k.hoverRangeValue,oe=k.cellRender,Ie=k.dateRender,Ue=k.monthCellRender,Xe=k.components,dt=Xe===void 0?{}:Xe,kt=k.hideHeader,dn=((Le=f.useContext(C))===null||Le===void 0?void 0:Le.prefixCls)||an||"rc-picker",Vn=f.useRef();f.useImperativeHandle(ve,function(){return{nativeElement:Vn.current}});var qn=bn(k),yr=se(qn,4),ci=yr[0],hi=yr[1],Ti=yr[2],Vi=yr[3],Di=Ne(Ye,hi),Pi=V==="date"&&Y?"datetime":V,mt=f.useMemo(function(){return $t(Pi,Ti,Vi,ci,Di)},[Pi,Ti,Vi,ci,Di]),tn=ot.getNow(),or=(0,l.vz)(V,{value:ua,postState:function(si){return si||"date"}}),rt=se(or,2),St=rt[0],_n=rt[1],vn=St==="date"&&mt?"datetime":St,Ln=ye(ot,Ye,Pi),_r=(0,l.vz)(Fr,{value:qr}),Br=se(_r,2),Kr=Br[0],Jr=Br[1],ii=f.useMemo(function(){var Rr=X(Kr).filter(function(si){return si});return $r?Rr:Rr.slice(0,1)},[Kr,$r]),le=(0,l._q)(function(Rr){Jr(Rr),jr&&(Rr===null||ii.length!==Rr.length||ii.some(function(si,Si){return!nn(ot,Ye,si,Rr[Si],Pi)}))&&jr?.($r?Rr:Rr[0])}),Ae=(0,l._q)(function(Rr){if(vi?.(Rr),St===V){var si=$r?Ln(ii,Rr):[Rr];le(si)}}),Oe=(0,l.vz)(Mi||ii[0]||tn,{value:ra}),et=se(Oe,2),Ot=et[0],It=et[1];f.useEffect(function(){ii[0]&&!ra&&It(ii[0])},[ii[0]]);var Mn=function(si,Si){Sa?.(si||ra,Si||St)},mn=function(si){var Si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;It(si),Yi?.(si),Si&&Mn(si)},At=function(si,Si){_n(si),Si&&mn(Si),Mn(Si,si)},Ut=function(si){if(Ae(si),mn(si),St!==V){var Si=["decade","year"],$i=[].concat(Si,["month"]),Hi={quarter:[].concat(Si,["quarter"]),week:[].concat(T($i),["week"]),date:[].concat(T($i),["date"])},Oa=Hi[V]||$i,Ma=Oa.indexOf(St),Ua=Oa[Ma+1];Ua&&At(Ua,si)}},jn=f.useMemo(function(){var Rr,si;if(Array.isArray(P)){var Si=se(P,2);Rr=Si[0],si=Si[1]}else Rr=P;return!Rr&&!si?null:(Rr=Rr||si,si=si||Rr,ot.isAfter(Rr,si)?[si,Rr]:[Rr,si])},[P,ot]),Jt=ee(oe,Ie,Ue),dr=dt[vn]||ni[vn]||_t,wr=f.useContext(Pt),Hr=f.useMemo(function(){return $($({},wr),{},{hideHeader:kt})},[wr,kt]),Ar="".concat(dn,"-panel"),yi=ie(k,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return f.createElement(Pt.Provider,{value:Hr},f.createElement("div",{ref:Vn,tabIndex:vr,className:d()(Ar,v({},"".concat(Ar,"-rtl"),Lt==="rtl"))},f.createElement(dr,De({},yi,{showTime:mt,prefixCls:dn,locale:Di,generateConfig:ot,onModeChange:At,pickerValue:Ot,onPickerValueChange:function(si){mn(si,!0)},value:ii[0],onSelect:Ut,values:ii,cellRender:Jt,hoverRangeValue:jn,hoverValue:D}))))}var zr=f.memo(f.forwardRef(ki));const Ur=zr;function jt(k){var ve=k.picker,Le=k.multiplePanel,Ye=k.pickerValue,ot=k.onPickerValueChange,Lt=k.needConfirm,an=k.onSubmit,nr=k.range,vr=k.hoverValue,$r=f.useContext(C),Fr=$r.prefixCls,qr=$r.generateConfig,jr=f.useCallback(function(Sa,Xt){return ne(qr,ve,Sa,Xt)},[qr,ve]),vi=f.useMemo(function(){return jr(Ye,1)},[Ye,jr]),Mi=function(Xt){ot(jr(Xt,-1))},ra={onCellDblClick:function(){Lt&&an()}},Yi=ve==="time",ua=$($({},k),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Yi});return nr?ua.hoverRangeValue=vr:ua.hoverValue=vr,Le?f.createElement("div",{className:"".concat(Fr,"-panels")},f.createElement(Pt.Provider,{value:$($({},ra),{},{hideNext:!0})},f.createElement(Ur,ua)),f.createElement(Pt.Provider,{value:$($({},ra),{},{hidePrev:!0})},f.createElement(Ur,De({},ua,{pickerValue:vi,onPickerValueChange:Mi})))):f.createElement(Pt.Provider,{value:$({},ra)},f.createElement(Ur,ua))}function sn(k){return typeof k=="function"?k():k}function Rn(k){var ve=k.prefixCls,Le=k.presets,Ye=k.onClick,ot=k.onHover;return Le.length?f.createElement("div",{className:"".concat(ve,"-presets")},f.createElement("ul",null,Le.map(function(Lt,an){var nr=Lt.label,vr=Lt.value;return f.createElement("li",{key:an,onClick:function(){Ye(sn(vr))},onMouseEnter:function(){ot(sn(vr))},onMouseLeave:function(){ot(null)}},nr)}))):null}function H(k){var ve=k.panelRender,Le=k.internalMode,Ye=k.picker,ot=k.showNow,Lt=k.range,an=k.multiple,nr=k.activeInfo,vr=nr===void 0?[0,0,0]:nr,$r=k.presets,Fr=k.onPresetHover,qr=k.onPresetSubmit,jr=k.onFocus,vi=k.onBlur,Mi=k.onPanelMouseDown,ra=k.direction,Yi=k.value,ua=k.onSelect,Sa=k.isInvalid,Xt=k.defaultOpenValue,V=k.onOk,Y=k.onSubmit,D=f.useContext(C),P=D.prefixCls,oe="".concat(P,"-panel"),Ie=ra==="rtl",Ue=f.useRef(null),Xe=f.useRef(null),dt=f.useState(0),kt=se(dt,2),dn=kt[0],Vn=kt[1],qn=f.useState(0),yr=se(qn,2),ci=yr[0],hi=yr[1],Ti=f.useState(0),Vi=se(Ti,2),Di=Vi[0],Pi=Vi[1],mt=function(Ut){Ut.width&&Vn(Ut.width)},tn=se(vr,3),or=tn[0],rt=tn[1],St=tn[2],_n=f.useState(0),vn=se(_n,2),Ln=vn[0],_r=vn[1];f.useEffect(function(){_r(10)},[or]),f.useEffect(function(){if(Lt&&Xe.current){var At,Ut=((At=Ue.current)===null||At===void 0?void 0:At.offsetWidth)||0,jn=Xe.current.getBoundingClientRect();if(!jn.height||jn.right<0){_r(function(Hr){return Math.max(0,Hr-1)});return}var Jt=(Ie?rt-Ut:or)-jn.left;if(Pi(Jt),dn&&dn<St){var dr=Ie?jn.right-(rt-Ut+dn):or+Ut-jn.left-dn,wr=Math.max(0,dr);hi(wr)}else hi(0)}},[Ln,Ie,dn,or,rt,St,Lt]);function Br(At){return At.filter(function(Ut){return Ut})}var Kr=f.useMemo(function(){return Br(X(Yi))},[Yi]),Jr=Ye==="time"&&!Kr.length,ii=f.useMemo(function(){return Jr?Br([Xt]):Kr},[Jr,Kr,Xt]),le=Jr?Xt:Kr,Ae=f.useMemo(function(){return ii.length?ii.some(function(At){return Sa(At)}):!0},[ii,Sa]),Oe=function(){Jr&&ua(Xt),V(),Y()},et=f.createElement("div",{className:"".concat(P,"-panel-layout")},f.createElement(Rn,{prefixCls:P,presets:$r,onClick:qr,onHover:Fr}),f.createElement("div",null,f.createElement(jt,De({},k,{value:le})),f.createElement(Je,De({},k,{showNow:an?!1:ot,invalid:Ae,onSubmit:Oe}))));ve&&(et=ve(et));var Ot="".concat(oe,"-container"),It="marginLeft",Mn="marginRight",mn=f.createElement("div",{onMouseDown:Mi,tabIndex:-1,className:d()(Ot,"".concat(P,"-").concat(Le,"-panel-container")),style:v(v({},Ie?Mn:It,ci),Ie?It:Mn,"auto"),onFocus:jr,onBlur:vi},et);return Lt&&(mn=f.createElement("div",{onMouseDown:Mi,ref:Xe,className:d()("".concat(P,"-range-wrapper"),"".concat(P,"-").concat(Ye,"-range-wrapper"))},f.createElement("div",{ref:Ue,className:"".concat(P,"-range-arrow"),style:{left:Di}}),f.createElement(we.A,{onResize:mt},mn))),mn}function Be(k,ve){var Le=k.format,Ye=k.maskFormat,ot=k.generateConfig,Lt=k.locale,an=k.preserveInvalidOnBlur,nr=k.inputReadOnly,vr=k.required,$r=k["aria-required"],Fr=k.onSubmit,qr=k.onFocus,jr=k.onBlur,vi=k.onInputChange,Mi=k.onInvalid,ra=k.open,Yi=k.onOpenChange,ua=k.onKeyDown,Sa=k.onChange,Xt=k.activeHelp,V=k.name,Y=k.autoComplete,D=k.id,P=k.value,oe=k.invalid,Ie=k.placeholder,Ue=k.disabled,Xe=k.activeIndex,dt=k.allHelp,kt=k.picker,dn=function(Di,Pi){var mt=ot.locale.parse(Lt.locale,Di,[Pi]);return mt&&ot.isValidate(mt)?mt:null},Vn=Le[0],qn=f.useCallback(function(Vi){return Kn(Vi,{locale:Lt,format:Vn,generateConfig:ot})},[Lt,ot,Vn]),yr=f.useMemo(function(){return P.map(qn)},[P,qn]),ci=f.useMemo(function(){var Vi=kt==="time"?8:10,Di=typeof Vn=="function"?Vn(ot.getNow()).length:Vn.length;return Math.max(Vi,Di)+2},[Vn,kt,ot]),hi=function(Di){for(var Pi=0;Pi<Le.length;Pi+=1){var mt=Le[Pi];if(typeof mt=="string"){var tn=dn(Di,mt);if(tn)return tn}}return!1},Ti=function(Di){function Pi(or){return Di!==void 0?or[Di]:or}var mt=(0,y.A)(k,{aria:!0,data:!0}),tn=$($({},mt),{},{format:Ye,validateFormat:function(rt){return!!hi(rt)},preserveInvalidOnBlur:an,readOnly:nr,required:vr,"aria-required":$r,name:V,autoComplete:Y,size:ci,id:Pi(D),value:Pi(yr)||"",invalid:Pi(oe),placeholder:Pi(Ie),active:Xe===Di,helped:dt||Xt&&Xe===Di,disabled:Pi(Ue),onFocus:function(rt){qr(rt,Di)},onBlur:function(rt){jr(rt,Di)},onSubmit:Fr,onChange:function(rt){vi();var St=hi(rt);if(St){Mi(!1,Di),Sa(St,Di);return}Mi(!!rt,Di)},onHelp:function(){Yi(!0,{index:Di})},onKeyDown:function(rt){var St=!1;if(ua?.(rt,function(){St=!0}),!rt.defaultPrevented&&!St)switch(rt.key){case"Escape":Yi(!1,{index:Di});break;case"Enter":ra||Yi(!0);break}}},ve?.({valueTexts:yr}));return Object.keys(tn).forEach(function(or){tn[or]===void 0&&delete tn[or]}),tn};return[Ti,qn]}var wn=["onMouseEnter","onMouseLeave"];function bi(k){return f.useMemo(function(){return ie(k,wn)},[k])}function Oi(k,ve){if(k==null)return{};var Le={};for(var Ye in k)if({}.hasOwnProperty.call(k,Ye)){if(ve.indexOf(Ye)!==-1)continue;Le[Ye]=k[Ye]}return Le}function de(k,ve){if(k==null)return{};var Le,Ye,ot=Oi(k,ve);if(Object.getOwnPropertySymbols){var Lt=Object.getOwnPropertySymbols(k);for(Ye=0;Ye<Lt.length;Ye++)Le=Lt[Ye],ve.indexOf(Le)===-1&&{}.propertyIsEnumerable.call(k,Le)&&(ot[Le]=k[Le])}return ot}var Ve=["icon","type"],vt=["onClear"];function Qt(k){var ve=k.icon,Le=k.type,Ye=de(k,Ve),ot=f.useContext(C),Lt=ot.prefixCls;return ve?f.createElement("span",De({className:"".concat(Lt,"-").concat(Le)},Ye),ve):null}function nt(k){var ve=k.onClear,Le=de(k,vt);return f.createElement(Qt,De({},Le,{type:"clear",role:"button",onMouseDown:function(ot){ot.preventDefault()},onClick:function(ot){ot.stopPropagation(),ve()}}))}function Tt(k,ve){if(!(k instanceof ve))throw new TypeError("Cannot call a class as a function")}function Gt(k,ve){for(var Le=0;Le<ve.length;Le++){var Ye=ve[Le];Ye.enumerable=Ye.enumerable||!1,Ye.configurable=!0,"value"in Ye&&(Ye.writable=!0),Object.defineProperty(k,E(Ye.key),Ye)}}function En(k,ve,Le){return ve&&Gt(k.prototype,ve),Le&&Gt(k,Le),Object.defineProperty(k,"prototype",{writable:!1}),k}var Qn=["YYYY","MM","DD","HH","mm","ss","SSS"],Or="\u9867",Pr=function(){function k(ve){Tt(this,k),v(this,"format",void 0),v(this,"maskFormat",void 0),v(this,"cells",void 0),v(this,"maskCells",void 0),this.format=ve;var Le=Qn.map(function(nr){return"(".concat(nr,")")}).join("|"),Ye=new RegExp(Le,"g");this.maskFormat=ve.replace(Ye,function(nr){return Or.repeat(nr.length)});var ot=new RegExp("(".concat(Qn.join("|"),")")),Lt=(ve.split(ot)||[]).filter(function(nr){return nr}),an=0;this.cells=Lt.map(function(nr){var vr=Qn.includes(nr),$r=an,Fr=an+nr.length;return an=Fr,{text:nr,mask:vr,start:$r,end:Fr}}),this.maskCells=this.cells.filter(function(nr){return nr.mask})}return En(k,[{key:"getSelection",value:function(Le){var Ye=this.maskCells[Le]||{},ot=Ye.start,Lt=Ye.end;return[ot||0,Lt||0]}},{key:"match",value:function(Le){for(var Ye=0;Ye<this.maskFormat.length;Ye+=1){var ot=this.maskFormat[Ye],Lt=Le[Ye];if(!Lt||ot!==Or&&ot!==Lt)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Le){for(var Ye=Number.MAX_SAFE_INTEGER,ot=0,Lt=0;Lt<this.maskCells.length;Lt+=1){var an=this.maskCells[Lt],nr=an.start,vr=an.end;if(Le>=nr&&Le<=vr)return Lt;var $r=Math.min(Math.abs(Le-nr),Math.abs(Le-vr));$r<Ye&&(Ye=$r,ot=Lt)}return ot}}]),k}();function ai(k){var ve={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return ve[k]}var xi=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],mi=f.forwardRef(function(k,ve){var Le=k.active,Ye=k.showActiveCls,ot=Ye===void 0?!0:Ye,Lt=k.suffixIcon,an=k.format,nr=k.validateFormat,vr=k.onChange,$r=k.onInput,Fr=k.helped,qr=k.onHelp,jr=k.onSubmit,vi=k.onKeyDown,Mi=k.preserveInvalidOnBlur,ra=Mi===void 0?!1:Mi,Yi=k.invalid,ua=k.clearIcon,Sa=de(k,xi),Xt=k.value,V=k.onFocus,Y=k.onBlur,D=k.onMouseUp,P=f.useContext(C),oe=P.prefixCls,Ie=P.input,Ue=Ie===void 0?"input":Ie,Xe="".concat(oe,"-input"),dt=f.useState(!1),kt=se(dt,2),dn=kt[0],Vn=kt[1],qn=f.useState(Xt),yr=se(qn,2),ci=yr[0],hi=yr[1],Ti=f.useState(""),Vi=se(Ti,2),Di=Vi[0],Pi=Vi[1],mt=f.useState(null),tn=se(mt,2),or=tn[0],rt=tn[1],St=f.useState(null),_n=se(St,2),vn=_n[0],Ln=_n[1],_r=ci||"";f.useEffect(function(){hi(Xt)},[Xt]);var Br=f.useRef(),Kr=f.useRef();f.useImperativeHandle(ve,function(){return{nativeElement:Br.current,inputElement:Kr.current,focus:function(si){Kr.current.focus(si)},blur:function(){Kr.current.blur()}}});var Jr=f.useMemo(function(){return new Pr(an||"")},[an]),ii=f.useMemo(function(){return Fr?[0,0]:Jr.getSelection(or)},[Jr,or,Fr]),le=se(ii,2),Ae=le[0],Oe=le[1],et=function(si){si&&si!==an&&si!==Xt&&qr()},Ot=(0,l._q)(function(Rr){nr(Rr)&&vr(Rr),hi(Rr),et(Rr)}),It=function(si){if(!an){var Si=si.target.value;et(Si),hi(Si),vr(Si)}},Mn=function(si){var Si=si.clipboardData.getData("text");nr(Si)&&Ot(Si)},mn=f.useRef(!1),At=function(){mn.current=!0},Ut=function(si){var Si=si.target,$i=Si.selectionStart,Hi=Jr.getMaskCellIndex($i);rt(Hi),Ln({}),D?.(si),mn.current=!1},jn=function(si){Vn(!0),rt(0),Pi(""),V(si)},Jt=function(si){Y(si)},dr=function(si){Vn(!1),Jt(si)};kr(Le,function(){!Le&&!ra&&hi(Xt)});var wr=function(si){si.key==="Enter"&&nr(_r)&&jr(),vi?.(si)},Hr=function(si){wr(si);var Si=si.key,$i=null,Hi=null,Oa=Oe-Ae,Ma=an.slice(Ae,Oe),Ua=function(qa){rt(function(no){var wo=no+qa;return wo=Math.max(wo,0),wo=Math.min(wo,Jr.size()-1),wo})},Xa=function(qa){var no=ai(Ma),wo=se(no,3),go=wo[0],Ka=wo[1],Ia=wo[2],Us=_r.slice(Ae,Oe),Vs=Number(Us);if(isNaN(Vs))return String(Ia||(qa>0?go:Ka));var Is=Vs+qa,uo=Ka-go+1;return String(go+(uo+Is-go)%uo)};switch(Si){case"Backspace":case"Delete":$i="",Hi=Ma;break;case"ArrowLeft":$i="",Ua(-1);break;case"ArrowRight":$i="",Ua(1);break;case"ArrowUp":$i="",Hi=Xa(1);break;case"ArrowDown":$i="",Hi=Xa(-1);break;default:isNaN(Number(Si))||($i=Di+Si,Hi=$i);break}if($i!==null&&(Pi($i),$i.length>=Oa&&(Ua(1),Pi(""))),Hi!==null){var Na=_r.slice(0,Ae)+B(Hi,Oa)+_r.slice(Oe);Ot(Na.slice(0,an.length))}Ln({})},Ar=f.useRef();(0,g.A)(function(){if(!(!dn||!an||mn.current)){if(!Jr.match(_r)){Ot(an);return}return Kr.current.setSelectionRange(Ae,Oe),Ar.current=(0,en.A)(function(){Kr.current.setSelectionRange(Ae,Oe)}),function(){en.A.cancel(Ar.current)}}},[Jr,an,dn,_r,or,Ae,Oe,vn,Ot]);var yi=an?{onFocus:jn,onBlur:dr,onKeyDown:Hr,onMouseDown:At,onMouseUp:Ut,onPaste:Mn}:{};return f.createElement("div",{ref:Br,className:d()(Xe,v(v({},"".concat(Xe,"-active"),Le&&ot),"".concat(Xe,"-placeholder"),Fr))},f.createElement(Ue,De({ref:Kr,"aria-invalid":Yi,autoComplete:"off"},Sa,{onKeyDown:wr,onBlur:Jt},yi,{value:_r,onChange:It})),f.createElement(Qt,{type:"suffix",icon:Lt}),ua)});const ei=mi;var Qr=null,Ni=null;function ea(k,ve){var Le=k.id,Ye=k.prefix,ot=k.clearIcon,Lt=k.suffixIcon,an=k.separator,nr=an===void 0?"~":an,vr=k.activeIndex,$r=k.activeHelp,Fr=k.allHelp,qr=k.focused,jr=k.onFocus,vi=k.onBlur,Mi=k.onKeyDown,ra=k.locale,Yi=k.generateConfig,ua=k.placeholder,Sa=k.className,Xt=k.style,V=k.onClick,Y=k.onClear,D=k.value,P=k.onChange,oe=k.onSubmit,Ie=k.onInputChange,Ue=k.format,Xe=k.maskFormat,dt=k.preserveInvalidOnBlur,kt=k.onInvalid,dn=k.disabled,Vn=k.invalid,qn=k.inputReadOnly,yr=k.direction,ci=k.onOpenChange,hi=k.onActiveInfo,Ti=k.placement,Vi=k.onMouseDown,Di=k.required,Pi=k["aria-required"],mt=k.autoFocus,tn=k.tabIndex,or=_objectWithoutProperties(k,Qr),rt=yr==="rtl",St=React.useContext(PickerContext),_n=St.prefixCls,vn=React.useMemo(function(){if(typeof Le=="string")return[Le];var Jt=Le||{};return[Jt.start,Jt.end]},[Le]),Ln=React.useRef(),_r=React.useRef(),Br=React.useRef(),Kr=function(dr){var wr;return(wr=[_r,Br][dr])===null||wr===void 0?void 0:wr.current};React.useImperativeHandle(ve,function(){return{nativeElement:Ln.current,focus:function(dr){if(_typeof(dr)==="object"){var wr,Hr=dr||{},Ar=Hr.index,yi=Ar===void 0?0:Ar,Rr=_objectWithoutProperties(Hr,Ni);(wr=Kr(yi))===null||wr===void 0||wr.focus(Rr)}else{var si;(si=Kr(dr??0))===null||si===void 0||si.focus()}},blur:function(){var dr,wr;(dr=Kr(0))===null||dr===void 0||dr.blur(),(wr=Kr(1))===null||wr===void 0||wr.blur()}}});var Jr=useRootProps(or),ii=React.useMemo(function(){return Array.isArray(ua)?ua:[ua,ua]},[ua]),le=useInputProps(_objectSpread(_objectSpread({},k),{},{id:vn,placeholder:ii})),Ae=_slicedToArray(le,1),Oe=Ae[0],et=React.useState({position:"absolute",width:0}),Ot=_slicedToArray(et,2),It=Ot[0],Mn=Ot[1],mn=useEvent(function(){var Jt=Kr(vr);if(Jt){var dr=Jt.nativeElement.getBoundingClientRect(),wr=Ln.current.getBoundingClientRect(),Hr=dr.left-wr.left;Mn(function(Ar){return _objectSpread(_objectSpread({},Ar),{},{width:dr.width,left:Hr})}),hi([dr.left,dr.right,wr.width])}});React.useEffect(function(){mn()},[vr]);var At=ot&&(D[0]&&!dn[0]||D[1]&&!dn[1]),Ut=mt&&!dn[0],jn=mt&&!Ut&&!dn[1];return React.createElement(ResizeObserver,{onResize:mn},React.createElement("div",_extends({},Jr,{className:classNames(_n,"".concat(_n,"-range"),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(_n,"-focused"),qr),"".concat(_n,"-disabled"),dn.every(function(Jt){return Jt})),"".concat(_n,"-invalid"),Vn.some(function(Jt){return Jt})),"".concat(_n,"-rtl"),rt),Sa),style:Xt,ref:Ln,onClick:V,onMouseDown:function(dr){var wr=dr.target;wr!==_r.current.inputElement&&wr!==Br.current.inputElement&&dr.preventDefault(),Vi?.(dr)}}),Ye&&React.createElement("div",{className:"".concat(_n,"-prefix")},Ye),React.createElement(Input,_extends({ref:_r},Oe(0),{autoFocus:Ut,tabIndex:tn,"date-range":"start"})),React.createElement("div",{className:"".concat(_n,"-range-separator")},nr),React.createElement(Input,_extends({ref:Br},Oe(1),{autoFocus:jn,tabIndex:tn,"date-range":"end"})),React.createElement("div",{className:"".concat(_n,"-active-bar"),style:It}),React.createElement(Icon,{type:"suffix",icon:Lt}),At&&React.createElement(ClearIcon,{icon:ot,onClear:Y})))}var Qi=null;const ir=null;function xr(k,ve){var Le=k??ve;return Array.isArray(Le)?Le:[Le,Le]}function di(k){return k===1?"end":"start"}function ft(k,ve){var Le=useFilledProps(k,function(){var xo=k.disabled,$a=k.allowEmpty,oo=xr(xo,!1),ro=xr($a,!1);return{disabled:oo,allowEmpty:ro}}),Ye=_slicedToArray(Le,6),ot=Ye[0],Lt=Ye[1],an=Ye[2],nr=Ye[3],vr=Ye[4],$r=Ye[5],Fr=ot.prefixCls,qr=ot.styles,jr=ot.classNames,vi=ot.defaultValue,Mi=ot.value,ra=ot.needConfirm,Yi=ot.onKeyDown,ua=ot.disabled,Sa=ot.allowEmpty,Xt=ot.disabledDate,V=ot.minDate,Y=ot.maxDate,D=ot.defaultOpen,P=ot.open,oe=ot.onOpenChange,Ie=ot.locale,Ue=ot.generateConfig,Xe=ot.picker,dt=ot.showNow,kt=ot.showToday,dn=ot.showTime,Vn=ot.mode,qn=ot.onPanelChange,yr=ot.onCalendarChange,ci=ot.onOk,hi=ot.defaultPickerValue,Ti=ot.pickerValue,Vi=ot.onPickerValueChange,Di=ot.inputReadOnly,Pi=ot.suffixIcon,mt=ot.onFocus,tn=ot.onBlur,or=ot.presets,rt=ot.ranges,St=ot.components,_n=ot.cellRender,vn=ot.dateRender,Ln=ot.monthCellRender,_r=ot.onClick,Br=usePickerRef(ve),Kr=useOpen(P,D,ua,oe),Jr=_slicedToArray(Kr,2),ii=Jr[0],le=Jr[1],Ae=function($a,oo){(ua.some(function(ro){return!ro})||!$a)&&le($a,oo)},Oe=useInnerValue(Ue,Ie,nr,!0,!1,vi,Mi,yr,ci),et=_slicedToArray(Oe,5),Ot=et[0],It=et[1],Mn=et[2],mn=et[3],At=et[4],Ut=Mn(),jn=useRangeActive(ua,Sa,ii),Jt=_slicedToArray(jn,9),dr=Jt[0],wr=Jt[1],Hr=Jt[2],Ar=Jt[3],yi=Jt[4],Rr=Jt[5],si=Jt[6],Si=Jt[7],$i=Jt[8],Hi=function($a,oo){wr(!0),mt?.($a,{range:di(oo??Ar)})},Oa=function($a,oo){wr(!1),tn?.($a,{range:di(oo??Ar)})},Ma=React.useMemo(function(){if(!dn)return null;var xo=dn.disabledTime,$a=xo?function(oo){var ro=di(Ar),Ls=getFromDate(Ut,si,Ar);return xo(oo,ro,{from:Ls})}:void 0;return _objectSpread(_objectSpread({},dn),{},{disabledTime:$a})},[dn,Ar,Ut,si]),Ua=useMergedState([Xe,Xe],{value:Vn}),Xa=_slicedToArray(Ua,2),Na=Xa[0],za=Xa[1],qa=Na[Ar]||Xe,no=qa==="date"&&Ma?"datetime":qa,wo=no===Xe&&no!=="time",go=useShowNow(Xe,qa,dt,kt,!0),Ka=useRangeValue(ot,Ot,It,Mn,mn,ua,nr,dr,ii,$r),Ia=_slicedToArray(Ka,2),Us=Ia[0],Vs=Ia[1],Is=useRangeDisabledDate(Ut,ua,si,Ue,Ie,Xt),uo=useFieldsInvalidate(Ut,$r,Sa),Ds=_slicedToArray(uo,2),Js=Ds[0],eo=Ds[1],uu=useRangePickerValue(Ue,Ie,Ut,Na,ii,Ar,Lt,wo,hi,Ti,Ma?.defaultOpenValue,Vi,V,Y),pa=_slicedToArray(uu,2),na=pa[0],Ui=pa[1],xe=useEvent(function(xo,$a,oo){var ro=fillIndex(Na,Ar,$a);if((ro[0]!==Na[0]||ro[1]!==Na[1])&&za(ro),qn&&oo!==!1){var Ls=_toConsumableArray(Ut);xo&&(Ls[Ar]=xo),qn(Ls,ro)}}),Ce=function($a,oo){return fillIndex(Ut,oo,$a)},st=function($a,oo){var ro=Ut;$a&&(ro=Ce($a,Ar)),Si(Ar);var Ls=Rr(ro);mn(ro),Us(Ar,Ls===null),Ls===null?Ae(!1,{force:!0}):oo||Br.current.focus({index:Ls})},gt=function($a){var oo,ro=$a.target.getRootNode();if(!Br.current.nativeElement.contains((oo=ro.activeElement)!==null&&oo!==void 0?oo:document.activeElement)){var Ls=ua.findIndex(function(Ns){return!Ns});Ls>=0&&Br.current.focus({index:Ls})}Ae(!0),_r?.($a)},Ht=function(){Vs(null),Ae(!1,{force:!0})},Hn=React.useState(null),fr=_slicedToArray(Hn,2),Zr=fr[0],gi=fr[1],wt=React.useState(null),cn=_slicedToArray(wt,2),rr=cn[0],$n=cn[1],Sr=React.useMemo(function(){return rr||Ut},[Ut,rr]);React.useEffect(function(){ii||$n(null)},[ii]);var fi=React.useState([0,0,0]),Ci=_slicedToArray(fi,2),la=Ci[0],ya=Ci[1],_a=usePresets(or,rt),Ga=function($a){$n($a),gi("preset")},Pa=function($a){var oo=Vs($a);oo&&Ae(!1,{force:!0})},ja=function($a){st($a)},Oo=function($a){$n($a?Ce($a,Ar):null),gi("cell")},Do=function($a){Ae(!0),Hi($a)},fo=function(){Hr("panel")},Zo=function($a){var oo=fillIndex(Ut,Ar,$a);mn(oo),!ra&&!an&&Lt===no&&st($a)},bs=function(){Ae(!1)},io=useCellRender(_n,vn,Ln,di(Ar)),fs=Ut[Ar]||null,yo=useEvent(function(xo){return $r(xo,{activeIndex:Ar})}),lo=React.useMemo(function(){var xo=pickAttrs(ot,!1),$a=omit(ot,[].concat(_toConsumableArray(Object.keys(xo)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return $a},[ot]),Ha=React.createElement(Popup,_extends({},lo,{showNow:go,showTime:Ma,range:!0,multiplePanel:wo,activeInfo:la,disabledDate:Is,onFocus:Do,onBlur:Oa,onPanelMouseDown:fo,picker:Xe,mode:qa,internalMode:no,onPanelChange:xe,format:vr,value:fs,isInvalid:yo,onChange:null,onSelect:Zo,pickerValue:na,defaultOpenValue:toArray(dn?.defaultOpenValue)[Ar],onPickerValueChange:Ui,hoverValue:Sr,onHover:Oo,needConfirm:ra,onSubmit:st,onOk:At,presets:_a,onPresetHover:Ga,onPresetSubmit:Pa,onNow:ja,cellRender:io})),zo=function($a,oo){var ro=Ce($a,oo);mn(ro)},vs=function(){Hr("input")},Fs=function($a,oo){var ro=si.length,Ls=si[ro-1];if(ro&&Ls!==oo&&ra&&!Sa[Ls]&&!$i(Ls)&&Ut[Ls]){Br.current.focus({index:Ls});return}Hr("input"),Ae(!0,{inherit:!0}),Ar!==oo&&ii&&!ra&&an&&st(null,!0),yi(oo),Hi($a,oo)},Ms=function($a,oo){if(Ae(!1),!ra&&Hr()==="input"){var ro=Rr(Ut);Us(Ar,ro===null)}Oa($a,oo)},to=function($a,oo){$a.key==="Tab"&&st(null,!0),Yi?.($a,oo)},Ho=React.useMemo(function(){return{prefixCls:Fr,locale:Ie,generateConfig:Ue,button:St.button,input:St.input}},[Fr,Ie,Ue,St.button,St.input]);if(useLayoutEffect(function(){ii&&Ar!==void 0&&xe(null,Xe,!1)},[ii,Ar,Xe]),useLayoutEffect(function(){var xo=Hr();!ii&&xo==="input"&&(Ae(!1),st(null,!0)),!ii&&an&&!ra&&xo==="panel"&&(Ae(!0),st())},[ii]),0)var ls;return React.createElement(PickerContext.Provider,{value:Ho},React.createElement(PickerTrigger,_extends({},pickTriggerProps(ot),{popupElement:Ha,popupStyle:qr.popup,popupClassName:jr.popup,visible:ii,onClose:bs,range:!0}),React.createElement(RangeSelector,_extends({},ot,{ref:Br,suffixIcon:Pi,activeIndex:dr||ii?Ar:null,activeHelp:!!rr,allHelp:!!rr&&Zr==="preset",focused:dr,onFocus:Fs,onBlur:Ms,onKeyDown:to,onSubmit:st,value:Sr,maskFormat:vr,onChange:zo,onInputChange:vs,format:nr,inputReadOnly:Di,disabled:ua,open:ii,onOpenChange:Ae,onClick:gt,onClear:Ht,invalid:Js,onInvalid:eo,onActiveInfo:ya}))))}var zn=null;const Zn=null;var wi=u(19853);function Ea(k){return ie(k,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function wa(k,ve,Le,Ye,ot){return ve!=="date"&&ve!=="time"?!1:Le!==void 0?Le:Ye!==void 0?Ye:!ot&&(k==="date"||k==="time")}var ji=u(52392);function Dt(k){var ve=k.prefixCls,Le=k.value,Ye=k.onRemove,ot=k.removeIcon,Lt=ot===void 0?"\xD7":ot,an=k.formatDate,nr=k.disabled,vr=k.maxTagCount,$r=k.placeholder,Fr="".concat(ve,"-selector"),qr="".concat(ve,"-selection"),jr="".concat(qr,"-overflow");function vi(Yi,ua){return f.createElement("span",{className:d()("".concat(qr,"-item")),title:typeof Yi=="string"?Yi:null},f.createElement("span",{className:"".concat(qr,"-item-content")},Yi),!nr&&ua&&f.createElement("span",{onMouseDown:function(Xt){Xt.preventDefault()},onClick:ua,className:"".concat(qr,"-item-remove")},Lt))}function Mi(Yi){var ua=an(Yi),Sa=function(V){V&&V.stopPropagation(),Ye(Yi)};return vi(ua,Sa)}function ra(Yi){var ua="+ ".concat(Yi.length," ...");return vi(ua)}return f.createElement("div",{className:Fr},f.createElement(ji.A,{prefixCls:jr,data:Le,renderItem:Mi,renderRest:ra,itemKey:function(ua){return an(ua)},maxCount:vr}),!Le.length&&f.createElement("span",{className:"".concat(ve,"-selection-placeholder")},$r))}var Xn=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Tr(k,ve){var Le=k.id,Ye=k.open,ot=k.prefix,Lt=k.clearIcon,an=k.suffixIcon,nr=k.activeHelp,vr=k.allHelp,$r=k.focused,Fr=k.onFocus,qr=k.onBlur,jr=k.onKeyDown,vi=k.locale,Mi=k.generateConfig,ra=k.placeholder,Yi=k.className,ua=k.style,Sa=k.onClick,Xt=k.onClear,V=k.internalPicker,Y=k.value,D=k.onChange,P=k.onSubmit,oe=k.onInputChange,Ie=k.multiple,Ue=k.maxTagCount,Xe=k.format,dt=k.maskFormat,kt=k.preserveInvalidOnBlur,dn=k.onInvalid,Vn=k.disabled,qn=k.invalid,yr=k.inputReadOnly,ci=k.direction,hi=k.onOpenChange,Ti=k.onMouseDown,Vi=k.required,Di=k["aria-required"],Pi=k.autoFocus,mt=k.tabIndex,tn=k.removeIcon,or=de(k,Xn),rt=ci==="rtl",St=f.useContext(C),_n=St.prefixCls,vn=f.useRef(),Ln=f.useRef();f.useImperativeHandle(ve,function(){return{nativeElement:vn.current,focus:function(It){var Mn;(Mn=Ln.current)===null||Mn===void 0||Mn.focus(It)},blur:function(){var It;(It=Ln.current)===null||It===void 0||It.blur()}}});var _r=bi(or),Br=function(It){D([It])},Kr=function(It){var Mn=Y.filter(function(mn){return mn&&!nn(Mi,vi,mn,It,V)});D(Mn),Ye||P()},Jr=Be($($({},k),{},{onChange:Br}),function(Ot){var It=Ot.valueTexts;return{value:It[0]||"",active:$r}}),ii=se(Jr,2),le=ii[0],Ae=ii[1],Oe=!!(Lt&&Y.length&&!Vn),et=Ie?f.createElement(f.Fragment,null,f.createElement(Dt,{prefixCls:_n,value:Y,onRemove:Kr,formatDate:Ae,maxTagCount:Ue,disabled:Vn,removeIcon:tn,placeholder:ra}),f.createElement("input",{className:"".concat(_n,"-multiple-input"),value:Y.map(Ae).join(","),ref:Ln,readOnly:!0,autoFocus:Pi,tabIndex:mt}),f.createElement(Qt,{type:"suffix",icon:an}),Oe&&f.createElement(nt,{icon:Lt,onClear:Xt})):f.createElement(ei,De({ref:Ln},le(),{autoFocus:Pi,tabIndex:mt,suffixIcon:an,clearIcon:Oe&&f.createElement(nt,{icon:Lt,onClear:Xt}),showActiveCls:!1}));return f.createElement("div",De({},_r,{className:d()(_n,v(v(v(v(v({},"".concat(_n,"-multiple"),Ie),"".concat(_n,"-focused"),$r),"".concat(_n,"-disabled"),Vn),"".concat(_n,"-invalid"),qn),"".concat(_n,"-rtl"),rt),Yi),style:ua,ref:vn,onClick:Sa,onMouseDown:function(It){var Mn,mn=It.target;mn!==((Mn=Ln.current)===null||Mn===void 0?void 0:Mn.inputElement)&&It.preventDefault(),Ti?.(It)}}),ot&&f.createElement("div",{className:"".concat(_n,"-prefix")},ot),et)}var Nr=f.forwardRef(Tr);const ti=Nr;function _i(k,ve){var Le=Fn(k),Ye=se(Le,6),ot=Ye[0],Lt=Ye[1],an=Ye[2],nr=Ye[3],vr=Ye[4],$r=Ye[5],Fr=ot,qr=Fr.prefixCls,jr=Fr.styles,vi=Fr.classNames,Mi=Fr.order,ra=Fr.defaultValue,Yi=Fr.value,ua=Fr.needConfirm,Sa=Fr.onChange,Xt=Fr.onKeyDown,V=Fr.disabled,Y=Fr.disabledDate,D=Fr.minDate,P=Fr.maxDate,oe=Fr.defaultOpen,Ie=Fr.open,Ue=Fr.onOpenChange,Xe=Fr.locale,dt=Fr.generateConfig,kt=Fr.picker,dn=Fr.showNow,Vn=Fr.showToday,qn=Fr.showTime,yr=Fr.mode,ci=Fr.onPanelChange,hi=Fr.onCalendarChange,Ti=Fr.onOk,Vi=Fr.multiple,Di=Fr.defaultPickerValue,Pi=Fr.pickerValue,mt=Fr.onPickerValueChange,tn=Fr.inputReadOnly,or=Fr.suffixIcon,rt=Fr.removeIcon,St=Fr.onFocus,_n=Fr.onBlur,vn=Fr.presets,Ln=Fr.components,_r=Fr.cellRender,Br=Fr.dateRender,Kr=Fr.monthCellRender,Jr=Fr.onClick,ii=Jn(ve);function le(lo){return lo===null?null:Vi?lo:lo[0]}var Ae=ye(dt,Xe,Lt),Oe=kn(Ie,oe,[V],Ue),et=se(Oe,2),Ot=et[0],It=et[1],Mn=function(Ha,zo,vs){if(hi){var Fs=$({},vs);delete Fs.range,hi(le(Ha),le(zo),Fs)}},mn=function(Ha){Ti?.(le(Ha))},At=Yn(dt,Xe,nr,!1,Mi,ra,Yi,Mn,mn),Ut=se(At,5),jn=Ut[0],Jt=Ut[1],dr=Ut[2],wr=Ut[3],Hr=Ut[4],Ar=dr(),yi=bt([V]),Rr=se(yi,4),si=Rr[0],Si=Rr[1],$i=Rr[2],Hi=Rr[3],Oa=function(Ha){Si(!0),St?.(Ha,{})},Ma=function(Ha){Si(!1),_n?.(Ha,{})},Ua=(0,l.vz)(kt,{value:yr}),Xa=se(Ua,2),Na=Xa[0],za=Xa[1],qa=Na==="date"&&qn?"datetime":Na,no=wa(kt,Na,dn,Vn),wo=Sa&&function(lo,Ha){Sa(le(lo),le(Ha))},go=ht($($({},ot),{},{onChange:wo}),jn,Jt,dr,wr,[],nr,si,Ot,$r),Ka=se(go,2),Ia=Ka[1],Us=yt(Ar,$r),Vs=se(Us,2),Is=Vs[0],uo=Vs[1],Ds=f.useMemo(function(){return Is.some(function(lo){return lo})},[Is]),Js=function(Ha,zo){if(mt){var vs=$($({},zo),{},{mode:zo.mode[0]});delete vs.range,mt(Ha[0],vs)}},eo=K(dt,Xe,Ar,[Na],Ot,Hi,Lt,!1,Di,Pi,X(qn?.defaultOpenValue),Js,D,P),uu=se(eo,2),pa=uu[0],na=uu[1],Ui=(0,l._q)(function(lo,Ha,zo){if(za(Ha),ci&&zo!==!1){var vs=lo||Ar[Ar.length-1];ci(vs,Ha)}}),xe=function(){Ia(dr()),It(!1,{force:!0})},Ce=function(Ha){!V&&!ii.current.nativeElement.contains(document.activeElement)&&ii.current.focus(),It(!0),Jr?.(Ha)},st=function(){Ia(null),It(!1,{force:!0})},gt=f.useState(null),Ht=se(gt,2),Hn=Ht[0],fr=Ht[1],Zr=f.useState(null),gi=se(Zr,2),wt=gi[0],cn=gi[1],rr=f.useMemo(function(){var lo=[wt].concat(T(Ar)).filter(function(Ha){return Ha});return Vi?lo:lo.slice(0,1)},[Ar,wt,Vi]),$n=f.useMemo(function(){return!Vi&&wt?[wt]:Ar.filter(function(lo){return lo})},[Ar,wt,Vi]);f.useEffect(function(){Ot||cn(null)},[Ot]);var Sr=Nn(vn),fi=function(Ha){cn(Ha),fr("preset")},Ci=function(Ha){var zo=Vi?Ae(dr(),Ha):[Ha],vs=Ia(zo);vs&&!Vi&&It(!1,{force:!0})},la=function(Ha){Ci(Ha)},ya=function(Ha){cn(Ha),fr("cell")},_a=function(Ha){It(!0),Oa(Ha)},Ga=function(Ha){if($i("panel"),!(Vi&&qa!==kt)){var zo=Vi?Ae(dr(),Ha):[Ha];wr(zo),!ua&&!an&&Lt===qa&&xe()}},Pa=function(){It(!1)},ja=ee(_r,Br,Kr),Oo=f.useMemo(function(){var lo=(0,y.A)(ot,!1),Ha=(0,wi.A)(ot,[].concat(T(Object.keys(lo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return $($({},Ha),{},{multiple:ot.multiple})},[ot]),Do=f.createElement(H,De({},Oo,{showNow:no,showTime:qn,disabledDate:Y,onFocus:_a,onBlur:Ma,picker:kt,mode:Na,internalMode:qa,onPanelChange:Ui,format:vr,value:Ar,isInvalid:$r,onChange:null,onSelect:Ga,pickerValue:pa,defaultOpenValue:qn?.defaultOpenValue,onPickerValueChange:na,hoverValue:rr,onHover:ya,needConfirm:ua,onSubmit:xe,onOk:Hr,presets:Sr,onPresetHover:fi,onPresetSubmit:Ci,onNow:la,cellRender:ja})),fo=function(Ha){wr(Ha)},Zo=function(){$i("input")},bs=function(Ha){$i("input"),It(!0,{inherit:!0}),Oa(Ha)},io=function(Ha){It(!1),Ma(Ha)},fs=function(Ha,zo){Ha.key==="Tab"&&xe(),Xt?.(Ha,zo)},yo=f.useMemo(function(){return{prefixCls:qr,locale:Xe,generateConfig:dt,button:Ln.button,input:Ln.input}},[qr,Xe,dt,Ln.button,Ln.input]);return(0,g.A)(function(){Ot&&Hi!==void 0&&Ui(null,kt,!1)},[Ot,Hi,kt]),(0,g.A)(function(){var lo=$i();!Ot&&lo==="input"&&(It(!1),xe()),!Ot&&an&&!ua&&lo==="panel"&&xe()},[Ot]),f.createElement(C.Provider,{value:yo},f.createElement(I,De({},Ea(ot),{popupElement:Do,popupStyle:jr.popup,popupClassName:vi.popup,visible:Ot,onClose:Pa}),f.createElement(ti,De({},ot,{ref:ii,suffixIcon:or,removeIcon:rt,activeHelp:!!wt,allHelp:!!wt&&Hn==="preset",focused:si,onFocus:bs,onBlur:io,onKeyDown:fs,onSubmit:xe,value:$n,maskFormat:vr,onChange:fo,onInputChange:Zo,internalPicker:Lt,format:nr,inputReadOnly:tn,disabled:V,open:Ot,onOpenChange:It,onClick:Ce,onClear:st,invalid:Ds,onInvalid:function(Ha){uo(Ha,0)}}))))}var Ii=f.forwardRef(_i);const Ji=Ii},84963:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});function l(g,y){return g[y]}},85190:(Ge,w,u)=>{"use strict";function l(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(S){return typeof S}:l=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},l(v)}w.log=x,w.formatArgs=y,w.save=f,w.load=p,w.useColors=g,w.storage=h(),w.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function g(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function y(v){if(v[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+v[0]+(this.useColors?"%c ":" ")+"+"+Ge.exports.humanize(this.diff),!!this.useColors){var m="color: "+this.color;v.splice(1,0,m,"color: inherit");var S=0,d=0;v[0].replace(/%[a-zA-Z%]/g,function(O){O!=="%%"&&(S++,O==="%c"&&(d=S))}),v.splice(d,0,m)}}function x(){var v;return(typeof console>"u"?"undefined":l(console))==="object"&&console.log&&(v=console).log.apply(v,arguments)}function f(v){try{v?w.storage.setItem("debug",v):w.storage.removeItem("debug")}catch{}}function p(){var v;try{v=w.storage.getItem("debug")}catch{}return!v&&typeof process<"u"&&"env"in process&&(v=process.env.DEBUG),v}function h(){try{return localStorage}catch{}}Ge.exports=u(93049)(w);var E=Ge.exports.formatters;E.j=function(v){try{return JSON.stringify(v)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}},85345:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isValidDate=void 0;function u(l){return l instanceof Date&&!isNaN(l)}w.isValidDate=u},85508:(Ge,w,u)=>{var l=u(86151),g=u(36800),y=u(17400);function x(f){return function(p,h,E){return E&&typeof E!="number"&&g(p,h,E)&&(h=E=void 0),p=y(p),h===void 0?(h=p,p=0):h=y(h),E=E===void 0?p<h?1:-1:y(E),l(p,h,E,f)}}Ge.exports=x},85581:(Ge,w)=>{"use strict";var u;/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l=Symbol.for("react.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),E=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function L(j){if(typeof j=="object"&&j!==null){var I=j.$$typeof;switch(I){case l:switch(j=j.type,j){case y:case f:case x:case m:case S:return j;default:switch(j=j&&j.$$typeof,j){case E:case h:case v:case O:case d:case p:return j;default:return I}}case g:return I}}}u=h,u=p,u=l,u=v,u=y,u=O,u=d,u=g,u=f,u=x,u=m,u=S,u=function(){return!1},u=function(){return!1},u=function(j){return L(j)===h},u=function(j){return L(j)===p},u=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===l},u=function(j){return L(j)===v},u=function(j){return L(j)===y},u=function(j){return L(j)===O},u=function(j){return L(j)===d},u=function(j){return L(j)===g},u=function(j){return L(j)===f},u=function(j){return L(j)===x},u=function(j){return L(j)===m},u=function(j){return L(j)===S},u=function(j){return typeof j=="string"||typeof j=="function"||j===y||j===f||j===x||j===m||j===S||j===R||typeof j=="object"&&j!==null&&(j.$$typeof===O||j.$$typeof===d||j.$$typeof===p||j.$$typeof===h||j.$$typeof===v||j.$$typeof===C||j.getModuleId!==void 0)},u=L},85589:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.convertChangesToDMP=u;function u(l){for(var g=[],y,x,f=0;f<l.length;f++)y=l[f],y.added?x=1:y.removed?x=-1:x=0,g.push([x,y.value]);return g}},85761:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.lastValueFrom=void 0;var l=u(59328);function g(y,x){var f=typeof x=="object";return new Promise(function(p,h){var E=!1,v;y.subscribe({next:function(m){v=m,E=!0},error:h,complete:function(){E?p(v):f?p(x.defaultValue):h(new l.EmptyError)}})})}w.lastValueFrom=g},85934:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.filter=void 0;var l=u(65212),g=u(17214);function y(x,f){return l.operate(function(p,h){var E=0;p.subscribe(g.createOperatorSubscriber(h,function(v){return x.call(f,v,E++)&&h.next(v)}))})}w.filter=y},85969:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=u;function u(){}u.prototype={diff:function(y,x){var f,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=p.callback;typeof p=="function"&&(h=p,p={}),this.options=p;var E=this;function v(re){return h?(setTimeout(function(){h(void 0,re)},0),!0):re}y=this.castInput(y),x=this.castInput(x),y=this.removeEmpty(this.tokenize(y)),x=this.removeEmpty(this.tokenize(x));var m=x.length,S=y.length,d=1,O=m+S;p.maxEditLength&&(O=Math.min(O,p.maxEditLength));var R=(f=p.timeout)!==null&&f!==void 0?f:1/0,C=Date.now()+R,L=[{oldPos:-1,lastComponent:void 0}],j=this.extractCommon(L[0],x,y,0);if(L[0].oldPos+1>=S&&j+1>=m)return v([{value:this.join(x),count:x.length}]);var I=-1/0,U=1/0;function $(){for(var re=Math.max(I,-d);re<=Math.min(U,d);re+=2){var Se=void 0,z=L[re-1],Q=L[re+1];z&&(L[re-1]=void 0);var ce=!1;if(Q){var se=Q.oldPos-re;ce=Q&&0<=se&&se<m}var q=z&&z.oldPos+1<S;if(!ce&&!q){L[re]=void 0;continue}if(!q||ce&&z.oldPos+1<Q.oldPos?Se=E.addToPath(Q,!0,void 0,0):Se=E.addToPath(z,void 0,!0,1),j=E.extractCommon(Se,x,y,re),Se.oldPos+1>=S&&j+1>=m)return v(l(E,Se.lastComponent,x,y,E.useLongestToken));L[re]=Se,Se.oldPos+1>=S&&(U=Math.min(U,re-1)),j+1>=m&&(I=Math.max(I,re+1))}d++}if(h)(function re(){setTimeout(function(){if(d>O||Date.now()>C)return h();$()||re()},0)})();else for(;d<=O&&Date.now()<=C;){var ee=$();if(ee)return ee}},addToPath:function(y,x,f,p){var h=y.lastComponent;return h&&h.added===x&&h.removed===f?{oldPos:y.oldPos+p,lastComponent:{count:h.count+1,added:x,removed:f,previousComponent:h.previousComponent}}:{oldPos:y.oldPos+p,lastComponent:{count:1,added:x,removed:f,previousComponent:h}}},extractCommon:function(y,x,f,p){for(var h=x.length,E=f.length,v=y.oldPos,m=v-p,S=0;m+1<h&&v+1<E&&this.equals(x[m+1],f[v+1]);)m++,v++,S++;return S&&(y.lastComponent={count:S,previousComponent:y.lastComponent}),y.oldPos=v,m},equals:function(y,x){return this.options.comparator?this.options.comparator(y,x):y===x||this.options.ignoreCase&&y.toLowerCase()===x.toLowerCase()},removeEmpty:function(y){for(var x=[],f=0;f<y.length;f++)y[f]&&x.push(y[f]);return x},castInput:function(y){return y},tokenize:function(y){return y.split("")},join:function(y){return y.join("")}};function l(g,y,x,f,p){for(var h=[],E;y;)h.push(y),E=y.previousComponent,delete y.previousComponent,y=E;h.reverse();for(var v=0,m=h.length,S=0,d=0;v<m;v++){var O=h[v];if(O.removed){if(O.value=g.join(f.slice(d,d+O.count)),d+=O.count,v&&h[v-1].added){var C=h[v-1];h[v-1]=h[v],h[v]=C}}else{if(!O.added&&p){var R=x.slice(S,S+O.count);R=R.map(function(j,I){var U=f[d+I];return U.length>j.length?U:j}),O.value=g.join(R)}else O.value=g.join(x.slice(S,S+O.count));S+=O.count,O.added||(d+=O.count)}}var L=h[m-1];return m>1&&typeof L.value=="string"&&(L.added||L.removed)&&g.equals("",L.value)&&(h[m-2].value+=L.value,h.pop()),h}},86027:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),Object.defineProperty(w,"DraggableCore",{enumerable:!0,get:function(){return E.default}}),w.default=void 0;var l=S(u(96540)),g=m(u(83175)),y=m(u(40961)),x=u(71508),f=u(71089),p=u(81726),h=u(77056),E=m(u(6888)),v=m(u(18696));function m(j){return j&&j.__esModule?j:{default:j}}function S(j,I){if(typeof WeakMap=="function")var U=new WeakMap,$=new WeakMap;return(S=function(ee,re){if(!re&&ee&&ee.__esModule)return ee;var Se,z,Q={__proto__:null,default:ee};if(ee===null||typeof ee!="object"&&typeof ee!="function")return Q;if(Se=re?$:U){if(Se.has(ee))return Se.get(ee);Se.set(ee,Q)}for(const ce in ee)ce!=="default"&&{}.hasOwnProperty.call(ee,ce)&&((z=(Se=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ee,ce))&&(z.get||z.set)?Se(Q,ce,z):Q[ce]=ee[ce]);return Q})(j,I)}function d(){return d=Object.assign?Object.assign.bind():function(j){for(var I=1;I<arguments.length;I++){var U=arguments[I];for(var $ in U)({}).hasOwnProperty.call(U,$)&&(j[$]=U[$])}return j},d.apply(null,arguments)}function O(j,I,U){return(I=R(I))in j?Object.defineProperty(j,I,{value:U,enumerable:!0,configurable:!0,writable:!0}):j[I]=U,j}function R(j){var I=C(j,"string");return typeof I=="symbol"?I:I+""}function C(j,I){if(typeof j!="object"||!j)return j;var U=j[Symbol.toPrimitive];if(U!==void 0){var $=U.call(j,I||"default");if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(I==="string"?String:Number)(j)}class L extends l.Component{static getDerivedStateFromProps(I,U){let{position:$}=I,{prevPropsPosition:ee}=U;return $&&(!ee||$.x!==ee.x||$.y!==ee.y)?((0,v.default)("Draggable: getDerivedStateFromProps %j",{position:$,prevPropsPosition:ee}),{x:$.x,y:$.y,prevPropsPosition:{...$}}):null}constructor(I){super(I),O(this,"onDragStart",(U,$)=>{if((0,v.default)("Draggable: onDragStart: %j",$),this.props.onStart(U,(0,p.createDraggableData)(this,$))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(U,$)=>{if(!this.state.dragging)return!1;(0,v.default)("Draggable: onDrag: %j",$);const ee=(0,p.createDraggableData)(this,$),re={x:ee.x,y:ee.y,slackX:0,slackY:0};if(this.props.bounds){const{x:z,y:Q}=re;re.x+=this.state.slackX,re.y+=this.state.slackY;const[ce,se]=(0,p.getBoundPosition)(this,re.x,re.y);re.x=ce,re.y=se,re.slackX=this.state.slackX+(z-re.x),re.slackY=this.state.slackY+(Q-re.y),ee.x=re.x,ee.y=re.y,ee.deltaX=re.x-this.state.x,ee.deltaY=re.y-this.state.y}if(this.props.onDrag(U,ee)===!1)return!1;this.setState(re)}),O(this,"onDragStop",(U,$)=>{if(!this.state.dragging||this.props.onStop(U,(0,p.createDraggableData)(this,$))===!1)return!1;(0,v.default)("Draggable: onDragStop: %j",$);const re={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:z,y:Q}=this.props.position;re.x=z,re.y=Q}this.setState(re)}),this.state={dragging:!1,dragged:!1,x:I.position?I.position.x:I.defaultPosition.x,y:I.position?I.position.y:I.defaultPosition.y,prevPropsPosition:{...I.position},slackX:0,slackY:0,isElementSVG:!1},I.position&&!(I.onDrag||I.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??y.default.findDOMNode(this)}render(){const{axis:I,bounds:U,children:$,defaultPosition:ee,defaultClassName:re,defaultClassNameDragging:Se,defaultClassNameDragged:z,position:Q,positionOffset:ce,scale:se,...q}=this.props;let te={},A=null;const B=!!!Q||this.state.dragging,X=Q||ee,ue={x:(0,p.canDragX)(this)&&B?this.state.x:X.x,y:(0,p.canDragY)(this)&&B?this.state.y:X.y};this.state.isElementSVG?A=(0,f.createSVGTransform)(ue,ce):te=(0,f.createCSSTransform)(ue,ce);const ie=(0,x.clsx)($.props.className||"",re,{[Se]:this.state.dragging,[z]:this.state.dragged});return l.createElement(E.default,d({},q,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),l.cloneElement(l.Children.only($),{className:ie,style:{...$.props.style,...te},transform:A}))}}w.default=L,O(L,"displayName","Draggable"),O(L,"propTypes",{...E.default.propTypes,axis:g.default.oneOf(["both","x","y","none"]),bounds:g.default.oneOfType([g.default.shape({left:g.default.number,right:g.default.number,top:g.default.number,bottom:g.default.number}),g.default.string,g.default.oneOf([!1])]),defaultClassName:g.default.string,defaultClassNameDragging:g.default.string,defaultClassNameDragged:g.default.string,defaultPosition:g.default.shape({x:g.default.number,y:g.default.number}),positionOffset:g.default.shape({x:g.default.oneOfType([g.default.number,g.default.string]),y:g.default.oneOfType([g.default.number,g.default.string])}),position:g.default.shape({x:g.default.number,y:g.default.number}),className:h.dontSetMe,style:h.dontSetMe,transform:h.dontSetMe}),O(L,"defaultProps",{...E.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},86151:Ge=>{var w=Math.ceil,u=Math.max;function l(g,y,x,f){for(var p=-1,h=u(w((y-g)/(x||1)),0),E=Array(h);h--;)E[f?h:++p]=g,g+=x;return E}Ge.exports=l},86160:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g,H:()=>l});function l(y,x,f,p,h){var E=y*y,v=E*y;return((1-3*y+3*E-v)*x+(4-6*E+3*v)*f+(1+3*y+3*E-3*v)*p+v*h)/6}function g(y){var x=y.length-1;return function(f){var p=f<=0?f=0:f>=1?(f=1,x-1):Math.floor(f*x),h=y[p],E=y[p+1],v=p>0?y[p-1]:2*h-E,m=p<x-1?y[p+2]:2*E-h;return l((f-p/x)*x,v,h,E,m)}}},86297:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createInvalidObservableTypeError=void 0;function u(l){return new TypeError("You provided "+(l!==null&&typeof l=="object"?"an invalid object":"'"+l+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}w.createInvalidObservableTypeError=u},86577:(Ge,w,u)=>{"use strict";u.d(w,{v:()=>l});function l(g){return g instanceof Date&&!isNaN(g)}},86578:(Ge,w,u)=>{"use strict";u.d(w,{l:()=>R});var l=u(88374),g=u(24836),y=u(99672);let x=new Map,f=new Set;function p(){if(typeof window>"u")return;function C(I){return"propertyName"in I}let L=I=>{if(!C(I)||!I.target)return;let U=x.get(I.target);U||(U=new Set,x.set(I.target,U),I.target.addEventListener("transitioncancel",j,{once:!0})),U.add(I.propertyName)},j=I=>{if(!C(I)||!I.target)return;let U=x.get(I.target);if(U&&(U.delete(I.propertyName),U.size===0&&(I.target.removeEventListener("transitioncancel",j),x.delete(I.target)),x.size===0)){for(let $ of f)$();f.clear()}};document.body.addEventListener("transitionrun",L),document.body.addEventListener("transitionend",j)}typeof document<"u"&&(document.readyState!=="loading"?p():document.addEventListener("DOMContentLoaded",p));function h(){for(const[C]of x)"isConnected"in C&&!C.isConnected&&x.delete(C)}function E(C){requestAnimationFrame(()=>{h(),x.size===0?C():f.add(C)})}function v(C){if(S())C.focus({preventScroll:!0});else{let L=d(C);C.focus(),O(L)}}let m=null;function S(){if(m==null){m=!1;try{document.createElement("div").focus({get preventScroll(){return m=!0,!0}})}catch{}}return m}function d(C){let L=C.parentNode,j=[],I=document.scrollingElement||document.documentElement;for(;L instanceof HTMLElement&&L!==I;)(L.offsetHeight<L.scrollHeight||L.offsetWidth<L.scrollWidth)&&j.push({element:L,scrollTop:L.scrollTop,scrollLeft:L.scrollLeft}),L=L.parentNode;return I instanceof HTMLElement&&j.push({element:I,scrollTop:I.scrollTop,scrollLeft:I.scrollLeft}),j}function O(C){for(let{element:L,scrollTop:j,scrollLeft:I}of C)L.scrollTop=j,L.scrollLeft=I}function R(C){const L=(0,g.TW)(C),j=(0,y.bq)(L);if((0,l.ME)()==="virtual"){let I=j;E(()=>{(0,y.bq)(L)===I&&C.isConnected&&v(C)})}else v(C)}},86632:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.exhaustMap=void 0;var l=u(26872),g=u(19724),y=u(65212),x=u(17214);function f(p,h){return h?function(E){return E.pipe(f(function(v,m){return g.innerFrom(p(v,m)).pipe(l.map(function(S,d){return h(v,S,m,d)}))}))}:y.operate(function(E,v){var m=0,S=null,d=!1;E.subscribe(x.createOperatorSubscriber(v,function(O){S||(S=x.createOperatorSubscriber(v,void 0,function(){S=null,d&&v.complete()}),g.innerFrom(p(O,m++)).subscribe(S))},function(){d=!0,!S&&v.complete()}))})}w.exhaustMap=f},86636:(Ge,w,u)=>{var l=u(21873)();Ge.exports=l;try{regeneratorRuntime=l}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=l:Function("r","regeneratorRuntime = r")(l)}},86717:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>h});var l=u(34120),g=u(90588),y=u(6837),x=u(9438);class f extends l.A{constructor(v){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),v)if(typeof v.getSimplifiedGeometry=="function"){const m=v;this.setGeometry(m)}else{const m=v;this.setProperties(m)}}clone(){const v=new f(this.hasProperties()?this.getProperties():null);v.setGeometryName(this.getGeometryName());const m=this.getGeometry();m&&v.setGeometry(m.clone());const S=this.getStyle();return S&&v.setStyle(S),v}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,x.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const v=this.getGeometry();v&&(this.geometryChangeKey_=(0,x.KT)(v,y.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(v){this.set(this.geometryName_,v)}setStyle(v){this.style_=v,this.styleFunction_=v?p(v):void 0,this.changed()}setId(v){this.id_=v,this.changed()}setGeometryName(v){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=v,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function p(E){if(typeof E=="function")return E;let v;return Array.isArray(E)?v=E:((0,g.v)(typeof E.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),v=[E]),function(){return v}}const h=f},86906:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});var l=u(9175);function g(y,x){if(y){if(typeof y=="string")return(0,l.A)(y,x);var f={}.toString.call(y).slice(8,-1);return f==="Object"&&y.constructor&&(f=y.constructor.name),f==="Map"||f==="Set"?Array.from(y):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?(0,l.A)(y,x):void 0}}},86991:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var l=Object.assign||function(S){for(var d=1;d<arguments.length;d++){var O=arguments[d];for(var R in O)Object.prototype.hasOwnProperty.call(O,R)&&(S[R]=O[R])}return S};w.renderViewDefault=p,w.renderTrackHorizontalDefault=h,w.renderTrackVerticalDefault=E,w.renderThumbHorizontalDefault=v,w.renderThumbVerticalDefault=m;var g=u(96540),y=x(g);function x(S){return S&&S.__esModule?S:{default:S}}function f(S,d){var O={};for(var R in S)d.indexOf(R)>=0||Object.prototype.hasOwnProperty.call(S,R)&&(O[R]=S[R]);return O}function p(S){return y.default.createElement("div",S)}function h(S){var d=S.style,O=f(S,["style"]),R=l({},d,{right:2,bottom:2,left:2,borderRadius:3});return y.default.createElement("div",l({style:R},O))}function E(S){var d=S.style,O=f(S,["style"]),R=l({},d,{right:2,bottom:2,top:2,borderRadius:3});return y.default.createElement("div",l({style:R},O))}function v(S){var d=S.style,O=f(S,["style"]),R=l({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return y.default.createElement("div",l({style:R},O))}function m(S){var d=S.style,O=f(S,["style"]),R=l({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return y.default.createElement("div",l({style:R},O))}},87056:(Ge,w,u)=>{"use strict";u.d(w,{Kx:()=>U,qA:()=>ce,vK:()=>A,qH:()=>q});var l=u(38619),g=u(33184),y=u(68143),x=u(25992),f=u(96540),p=u(81485),h=u(16126),E=u(81160),v=u(29405),m=u(59099),S=u(46662),d=u(24726),O=u(99589);const R="grafana-llm-app",C=`/api/plugins/${R}`;let L=new O.SemVer("0.2.0");function j(je){try{L=new O.SemVer(je)}catch{(0,x.FF)("Failed to parse version of grafana-llm-app; assuming old version is present.")}}const I="llm/v1/chat/completions";var U=(je=>(je.BASE="base",je.LARGE="large",je))(U||{});function $(je){return"content"in je}function ee(je){return"done"in je&&je.done!=null}function re(je){return"error"in je}function Se(je){return"name"in je&&"arguments"in je}function z(je){return"tool_calls"in je&&je.tool_calls!=null}function Q(){return(0,p.F)((0,h.p)(je=>$(je.choices[0].delta)),(0,E.T)(je=>je.choices[0].delta.content))}function ce(){return(0,p.F)(Q(),(0,v.S)((je,yt)=>je+yt,""))}async function se(je){return await getBackendSrv().post(`/api/plugins/grafana-llm-app/resources/${I}`,je,{headers:{"Content-Type":"application/json"}})}function q(je){const yt={scope:l.qD.Plugin,namespace:R,path:I+"/"+(0,d.A)(),data:je};return(0,g.oF)().getStream(yt).pipe((0,h.p)(Ze=>(0,l.Z7)(Ze))).pipe((0,h.p)(Ze=>!!Ze.message.choices),(0,m.M)(Ze=>{if(re(Ze.message))throw new Error(Ze.message.error)}),(0,S.v)(Ze=>re(Ze.message)?!0:!(Ze.message.choices&&Ze.message.choices[0].delta&&"done"in Ze.message.choices[0].delta&&Ze.message.choices[0].delta.done===!0||Ze.message.choices&&"finish_reason"in Ze.message.choices[0]&&Ze.message.choices[0].finish_reason==="stop")),(0,E.T)(Ze=>Ze.message))}let te=!1;const A=async()=>{try{if(!(await(0,y.AI)().get(`${C}/settings`,void 0,void 0,{showSuccessAlert:!1,showErrorAlert:!1})).enabled)return{configured:!1,ok:!1,error:"The Grafana LLM plugin is not enabled."}}catch(tt){return(0,x.MD)(String(tt)),(0,x.MD)("Failed to check if LLM provider is enabled. This is expected if the Grafana LLM plugin is not installed, and the above error can be ignored."),te=!0,{configured:!1,ok:!1,error:"The Grafana LLM plugin is not installed."}}let je;try{je=await(0,y.AI)().get(`${C}/health`,void 0,void 0,{showSuccessAlert:!1,showErrorAlert:!1})}catch(tt){return te||((0,x.MD)(String(tt)),(0,x.MD)("Failed to check if LLM provider is enabled. This is expected if the Grafana LLM plugin is not installed, and the above error can be ignored."),te=!0),{configured:!1,ok:!1,error:"The Grafana LLM plugin is not installed."}}const{details:yt}=je;return yt?.version!==void 0&&j(yt.version),yt?.llmProvider===void 0?{configured:!1,ok:!1,error:"The Grafana LLM plugin is outdated; please update it."}:typeof yt.llmProvider=="boolean"?{configured:yt.llmProvider,ok:yt.llmProvider}:yt.llmProvider},T=async()=>{const je=await A();return je.configured&&je.ok};var B=(je=>(je.IDLE="idle",je.GENERATING="generating",je.COMPLETED="completed",je))(B||{});const X=1e4;function ue(je="large",yt=1,tt=()=>{}){const[Ze,Ne]=useState([]),[it,Rt]=useState(""),[Dn,Mt]=useState("idle"),[Wt,Tn]=useState(),bn=useCallback(ke=>{Mt("idle"),Ne([]),Tn(ke),tt("Failed to generate content using LLM provider","Please try again or if the problem persists, contact your organization admin."),console.error(ke)},[tt]),{error:$t,value:Ct}=useAsync(async()=>await T(),[T]),{error:Z,value:me}=useAsync(async()=>{if(!Ct||!Ze.length)return{enabled:Ct};Mt("generating"),Tn(void 0);const ke=q({model:je,temperature:yt,messages:Ze}).pipe(ce());return{enabled:Ct,stream:ke.subscribe({next:Rt,error:bn,complete:()=>{Mt("completed"),setTimeout(()=>{Mt("idle")}),Ne([]),Tn(void 0)}})}},[Ze,Ct]);return useEffect(()=>()=>{me?.stream&&me.stream.unsubscribe()},[me]),useEffect(()=>{let ke;return Dn==="generating"&&it===""&&(ke=setTimeout(()=>{bn(new Error(`LLM stream timed out after ${X}ms`))},X)),()=>{ke&&clearTimeout(ke)}},[Dn,it,bn]),(Z||$t)&&Tn(Z||$t),{setMessages:Ne,reply:it,streamStatus:Dn,error:Wt,value:me}}function ie(){return pipe(filter(je=>z(je.choices[0].delta)),toArray(),map(je=>{const yt=je.map(tt=>tt.choices[0].delta);return Te(yt)}))}function Te(je){const yt={role:"assistant",tool_calls:[]};for(const tt of je)for(const Ze of tt.tool_calls)Ze.index>=yt.tool_calls.length?yt.tool_calls.push({...Ze,function:{...Ze.function,arguments:Ze.function.arguments??""}}):yt.tool_calls[Ze.index].function.arguments+=Ze.function.arguments??"";for(const tt of yt.tool_calls)tt.function.arguments||(tt.function.arguments="{}");return yt}},87133:Ge=>{function w(u,l,g){return u===u&&(g!==void 0&&(u=u<=g?u:g),l!==void 0&&(u=u>=l?u:l)),u}Ge.exports=w},87364:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.arrayEqual=u,w.arrayStartsWith=l;function u(g,y){return g.length!==y.length?!1:l(g,y)}function l(g,y){if(y.length>g.length)return!1;for(var x=0;x<y.length;x++)if(y[x]!==g[x])return!1;return!0}},87586:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>E});var l=u(96540),g=u(2739),y=function(v){var m=window.history,S=m[v];m[v]=function(d){var O=S.apply(this,arguments),R=new Event(v.toLowerCase());return R.state=d,window.dispatchEvent(R),O}};g.Bd&&(y("pushState"),y("replaceState"));var x=function(){return{trigger:"load",length:1}},f=function(v){var m=window.history,S=m.state,d=m.length,O=window.location,R=O.hash,C=O.host,L=O.hostname,j=O.href,I=O.origin,U=O.pathname,$=O.port,ee=O.protocol,re=O.search;return{trigger:v,state:S,length:d,hash:R,host:C,hostname:L,href:j,origin:I,pathname:U,port:$,protocol:ee,search:re}},p=function(){var v=(0,l.useState)(f("load")),m=v[0],S=v[1];return(0,l.useEffect)(function(){var d=function(){return S(f("popstate"))},O=function(){return S(f("pushstate"))},R=function(){return S(f("replacestate"))};return(0,g.on)(window,"popstate",d),(0,g.on)(window,"pushstate",O),(0,g.on)(window,"replacestate",R),function(){(0,g.AU)(window,"popstate",d),(0,g.AU)(window,"pushstate",O),(0,g.AU)(window,"replacestate",R)}},[]),m},h=typeof Event=="function";const E=g.Bd&&h?p:x},87622:(Ge,w,u)=>{"use strict";u.d(w,{Rc:()=>l,Tl:()=>x,e$:()=>g,hs:()=>y});function l(f,p,h,E,v,m,S){m=m||[],S=S||2;let d=0;for(let O=p;O<h;O+=E){const R=f[O],C=f[O+1];m[d++]=v[0]*R+v[2]*C+v[4],m[d++]=v[1]*R+v[3]*C+v[5];for(let L=2;L<S;L++)m[d++]=f[O+L]}return m&&m.length!=d&&(m.length=d),m}function g(f,p,h,E,v,m,S){S=S||[];const d=Math.cos(v),O=Math.sin(v),R=m[0],C=m[1];let L=0;for(let j=p;j<h;j+=E){const I=f[j]-R,U=f[j+1]-C;S[L++]=R+I*d-U*O,S[L++]=C+I*O+U*d;for(let $=j+2;$<j+E;++$)S[L++]=f[$]}return S&&S.length!=L&&(S.length=L),S}function y(f,p,h,E,v,m,S,d){d=d||[];const O=S[0],R=S[1];let C=0;for(let L=p;L<h;L+=E){const j=f[L]-O,I=f[L+1]-R;d[C++]=O+v*j,d[C++]=R+m*I;for(let U=L+2;U<L+E;++U)d[C++]=f[U]}return d&&d.length!=C&&(d.length=C),d}function x(f,p,h,E,v,m,S){S=S||[];let d=0;for(let O=p;O<h;O+=E){S[d++]=f[O]+v,S[d++]=f[O+1]+m;for(let R=O+2;R<O+E;++R)S[d++]=f[R]}return S&&S.length!=d&&(S.length=d),S}},87699:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.identity=void 0;function u(l){return l}w.identity=u},87825:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var u={WHITESPACE:"whitespace",WORD:"word",STRING:"string",RESERVED:"reserved",RESERVED_TOP_LEVEL:"reserved-top-level",RESERVED_TOP_LEVEL_NO_INDENT:"reserved-top-level-no-indent",RESERVED_NEWLINE:"reserved-newline",OPERATOR:"operator",OPEN_PAREN:"open-paren",CLOSE_PAREN:"close-paren",LINE_COMMENT:"line-comment",BLOCK_COMMENT:"block-comment",NUMBER:"number",PLACEHOLDER:"placeholder"};w.default=u,Ge.exports=w.default},87826:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>p});var l=u(38314);function g(h,E){if((0,l.A)(h)!="object"||!h)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var m=v.call(h,E||"default");if((0,l.A)(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(h)}function y(h){var E=g(h,"string");return(0,l.A)(E)=="symbol"?E:E+""}function x(h,E,v){return(E=y(E))in h?Object.defineProperty(h,E,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[E]=v,h}function f(h,E){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(h);E&&(m=m.filter(function(S){return Object.getOwnPropertyDescriptor(h,S).enumerable})),v.push.apply(v,m)}return v}function p(h){for(var E=1;E<arguments.length;E++){var v=arguments[E]!=null?arguments[E]:{};E%2?f(Object(v),!0).forEach(function(m){x(h,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):f(Object(v)).forEach(function(m){Object.defineProperty(h,m,Object.getOwnPropertyDescriptor(v,m))})}return h}},88246:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.combineLatestInit=w.combineLatest=void 0;var l=u(48051),g=u(50439),y=u(47058),x=u(87699),f=u(13916),p=u(26404),h=u(15810),E=u(17214),v=u(28619);function m(){for(var O=[],R=0;R<arguments.length;R++)O[R]=arguments[R];var C=p.popScheduler(O),L=p.popResultSelector(O),j=g.argsArgArrayOrObject(O),I=j.args,U=j.keys;if(I.length===0)return y.from([],C);var $=new l.Observable(S(I,C,U?function(ee){return h.createObject(U,ee)}:x.identity));return L?$.pipe(f.mapOneOrManyArgs(L)):$}w.combineLatest=m;function S(O,R,C){return C===void 0&&(C=x.identity),function(L){d(R,function(){for(var j=O.length,I=new Array(j),U=j,$=j,ee=function(Se){d(R,function(){var z=y.from(O[Se],R),Q=!1;z.subscribe(E.createOperatorSubscriber(L,function(ce){I[Se]=ce,Q||(Q=!0,$--),$||L.next(C(I.slice()))},function(){--U||L.complete()}))},L)},re=0;re<j;re++)ee(re)},L)}}w.combineLatestInit=S;function d(O,R,C){O?v.executeSchedule(C,O,R):R()}},88269:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.pairs=void 0;var l=u(47058);function g(y,x){return l.from(Object.entries(y),x)}w.pairs=g},88319:(Ge,w,u)=>{var l=u(48287).Buffer,g=w,y=/`/g,x=/\./g,f=/[\0\b\t\n\r\x1a\"\'\\]/g,p={"\0":"\\0","\b":"\\b"," ":"\\t","\n":"\\n","\r":"\\r","":"\\Z",'"':'\\"',"'":"\\'","\\":"\\\\"};g.escapeId=function(S,d){if(Array.isArray(S)){for(var O="",R=0;R<S.length;R++)O+=(R===0?"":", ")+g.escapeId(S[R],d);return O}else return d?"`"+String(S).replace(y,"``")+"`":"`"+String(S).replace(y,"``").replace(x,"`.`")+"`"},g.escape=function(S,d,O){if(S==null)return"NULL";switch(typeof S){case"boolean":return S?"true":"false";case"number":return S+"";case"object":return Object.prototype.toString.call(S)==="[object Date]"?g.dateToString(S,O||"local"):Array.isArray(S)?g.arrayToList(S,O):l.isBuffer(S)?g.bufferToString(S):typeof S.toSqlString=="function"?String(S.toSqlString()):d?h(S.toString()):g.objectToValues(S,O);default:return h(S)}},g.arrayToList=function(S,d){for(var O="",R=0;R<S.length;R++){var C=S[R];Array.isArray(C)?O+=(R===0?"":", ")+"("+g.arrayToList(C,d)+")":O+=(R===0?"":", ")+g.escape(C,!0,d)}return O},g.format=function(S,d,O,R){if(d==null)return S;Array.isArray(d)||(d=[d]);for(var C=0,L=/\?+/g,j="",I=0,U;I<d.length&&(U=L.exec(S));){var $=U[0].length;if(!($>2)){var ee=$===2?g.escapeId(d[I]):g.escape(d[I],O,R);j+=S.slice(C,U.index)+ee,C=L.lastIndex,I++}}return C===0?S:C<S.length?j+S.slice(C):j},g.dateToString=function(S,d){var O=new Date(S);if(isNaN(O.getTime()))return"NULL";var R,C,L,j,I,U,$;if(d==="local")R=O.getFullYear(),C=O.getMonth()+1,L=O.getDate(),j=O.getHours(),I=O.getMinutes(),U=O.getSeconds(),$=O.getMilliseconds();else{var ee=v(d);ee!==!1&&ee!==0&&O.setTime(O.getTime()+ee*6e4),R=O.getUTCFullYear(),C=O.getUTCMonth()+1,L=O.getUTCDate(),j=O.getUTCHours(),I=O.getUTCMinutes(),U=O.getUTCSeconds(),$=O.getUTCMilliseconds()}var re=E(R,4)+"-"+E(C,2)+"-"+E(L,2)+" "+E(j,2)+":"+E(I,2)+":"+E(U,2)+"."+E($,3);return h(re)},g.bufferToString=function(S){return"X"+h(S.toString("hex"))},g.objectToValues=function(S,d){var O="";for(var R in S){var C=S[R];typeof C!="function"&&(O+=(O.length===0?"":", ")+g.escapeId(R)+" = "+g.escape(C,!0,d))}return O},g.raw=function(S){if(typeof S!="string")throw new TypeError("argument sql must be a string");return{toSqlString:function(){return S}}};function h(m){for(var S=f.lastIndex=0,d="",O;O=f.exec(m);)d+=m.slice(S,O.index)+p[O[0]],S=f.lastIndex;return S===0?"'"+m+"'":S<m.length?"'"+d+m.slice(S)+"'":"'"+d+"'"}function E(m,S){for(m=m.toString();m.length<S;)m="0"+m;return m}function v(m){if(m==="Z")return 0;var S=m.match(/([\+\-\s])(\d\d):?(\d\d)?/);return S?(S[1]==="-"?-1:1)*(parseInt(S[2],10)+(S[3]?parseInt(S[3],10):0)/60)*60:!1}},88374:(Ge,w,u)=>{"use strict";u.d(w,{ME:()=>z,pP:()=>Se,K7:()=>A});var l=u(62894),g=u(69202);function y(T){return T.pointerType===""&&T.isTrusted?!0:(0,g.m0)()&&T.pointerType?T.type==="click"&&T.buttons===1:T.detail===0&&!T.pointerType}function x(T){return!$c87311424ea30a05$export$a11b0059900ceec8()&&T.width===0&&T.height===0||T.width===1&&T.height===1&&T.pressure===0&&T.detail===0&&T.pointerType==="mouse"}var f=u(24836),p=u(96540);let h=null,E=new Set,v=new Map,m=!1,S=!1;const d={Tab:!0,Escape:!0};function O(T,B){for(let X of E)X(T,B)}function R(T){return!(T.metaKey||!(0,g.cX)()&&T.altKey||T.ctrlKey||T.key==="Control"||T.key==="Shift"||T.key==="Meta")}function C(T){m=!0,R(T)&&(h="keyboard",O("keyboard",T))}function L(T){h="pointer",(T.type==="mousedown"||T.type==="pointerdown")&&(m=!0,O("pointer",T))}function j(T){y(T)&&(m=!0,h="virtual")}function I(T){T.target===window||T.target===document||l.lR||!T.isTrusted||(!m&&!S&&(h="virtual",O("virtual",T)),m=!1,S=!1)}function U(){l.lR||(m=!1,S=!0)}function $(T){if(typeof window>"u"||typeof document>"u"||v.get((0,f.mD)(T)))return;const B=(0,f.mD)(T),X=(0,f.TW)(T);let ue=B.HTMLElement.prototype.focus;B.HTMLElement.prototype.focus=function(){m=!0,ue.apply(this,arguments)},X.addEventListener("keydown",C,!0),X.addEventListener("keyup",C,!0),X.addEventListener("click",j,!0),B.addEventListener("focus",I,!0),B.addEventListener("blur",U,!1),typeof PointerEvent<"u"&&(X.addEventListener("pointerdown",L,!0),X.addEventListener("pointermove",L,!0),X.addEventListener("pointerup",L,!0)),B.addEventListener("beforeunload",()=>{ee(T)},{once:!0}),v.set(B,{focus:ue})}const ee=(T,B)=>{const X=(0,f.mD)(T),ue=(0,f.TW)(T);B&&ue.removeEventListener("DOMContentLoaded",B),v.has(X)&&(X.HTMLElement.prototype.focus=v.get(X).focus,ue.removeEventListener("keydown",C,!0),ue.removeEventListener("keyup",C,!0),ue.removeEventListener("click",j,!0),X.removeEventListener("focus",I,!0),X.removeEventListener("blur",U,!1),typeof PointerEvent<"u"&&(ue.removeEventListener("pointerdown",L,!0),ue.removeEventListener("pointermove",L,!0),ue.removeEventListener("pointerup",L,!0)),v.delete(X))};function re(T){const B=(0,f.TW)(T);let X;return B.readyState!=="loading"?$(T):(X=()=>{$(T)},B.addEventListener("DOMContentLoaded",X)),()=>ee(T,X)}typeof document<"u"&&re();function Se(){return h!=="pointer"}function z(){return h}function Q(T){h=T,O(T,null)}function ce(){$();let[T,B]=$28AnR$useState(h);return $28AnR$useEffect(()=>{let X=()=>{B(h)};return E.add(X),()=>{E.delete(X)}},[]),$28AnR$useIsSSR()?null:T}const se=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function q(T,B,X){let ue=(0,f.TW)(X?.target);const ie=typeof window<"u"?(0,f.mD)(X?.target).HTMLInputElement:HTMLInputElement,Te=typeof window<"u"?(0,f.mD)(X?.target).HTMLTextAreaElement:HTMLTextAreaElement,je=typeof window<"u"?(0,f.mD)(X?.target).HTMLElement:HTMLElement,yt=typeof window<"u"?(0,f.mD)(X?.target).KeyboardEvent:KeyboardEvent;return T=T||ue.activeElement instanceof ie&&!se.has(ue.activeElement.type)||ue.activeElement instanceof Te||ue.activeElement instanceof je&&ue.activeElement.isContentEditable,!(T&&B==="keyboard"&&X instanceof yt&&!d[X.key])}function te(T={}){let{isTextInput:B,autoFocus:X}=T,[ue,ie]=$28AnR$useState(X||Se());return A(Te=>{ie(Te)},[B],{isTextInput:B}),{isFocusVisible:ue}}function A(T,B,X){$(),(0,p.useEffect)(()=>{let ue=(ie,Te)=>{q(!!X?.isTextInput,ie,Te)&&T(Se())};return E.add(ue),()=>{E.delete(ue)}},B)}},88544:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>x});var l=u(96540),g=u(2739),y=function(f,p,h){if(!g.Bd)return[p,function(){}];var E=(0,l.useState)(function(){try{var S=sessionStorage.getItem(f);return typeof S!="string"?(sessionStorage.setItem(f,h?String(p):JSON.stringify(p)),p):h?S:JSON.parse(S||"null")}catch{return p}}),v=E[0],m=E[1];return(0,l.useEffect)(function(){try{var S=h?String(v):JSON.stringify(v);sessionStorage.setItem(f,S)}catch{}}),[v,m]};const x=y},88616:function(Ge,w,u){"use strict";var l=this&&this.__read||function(L,j){var I=typeof Symbol=="function"&&L[Symbol.iterator];if(!I)return L;var U=I.call(L),$,ee=[],re;try{for(;(j===void 0||j-- >0)&&!($=U.next()).done;)ee.push($.value)}catch(Se){re={error:Se}}finally{try{$&&!$.done&&(I=U.return)&&I.call(U)}finally{if(re)throw re.error}}return ee};Object.defineProperty(w,"__esModule",{value:!0}),w.fromEvent=void 0;var g=u(19724),y=u(48051),x=u(67478),f=u(94975),p=u(10281),h=u(13916),E=["addListener","removeListener"],v=["addEventListener","removeEventListener"],m=["on","off"];function S(L,j,I,U){if(p.isFunction(I)&&(U=I,I=void 0),U)return S(L,j,I).pipe(h.mapOneOrManyArgs(U));var $=l(C(L)?v.map(function(Se){return function(z){return L[Se](j,z,I)}}):O(L)?E.map(d(L,j)):R(L)?m.map(d(L,j)):[],2),ee=$[0],re=$[1];if(!ee&&f.isArrayLike(L))return x.mergeMap(function(Se){return S(Se,j,I)})(g.innerFrom(L));if(!ee)throw new TypeError("Invalid event target");return new y.Observable(function(Se){var z=function(){for(var Q=[],ce=0;ce<arguments.length;ce++)Q[ce]=arguments[ce];return Se.next(1<Q.length?Q:Q[0])};return ee(z),function(){return re(z)}})}w.fromEvent=S;function d(L,j){return function(I){return function(U){return L[I](j,U)}}}function O(L){return p.isFunction(L.addListener)&&p.isFunction(L.removeListener)}function R(L){return p.isFunction(L.on)&&p.isFunction(L.off)}function C(L){return p.isFunction(L.addEventListener)&&p.isFunction(L.removeEventListener)}},88702:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(97813);function g(x,f){if((0,l.A)(x)!="object"||!x)return x;var p=x[Symbol.toPrimitive];if(p!==void 0){var h=p.call(x,f||"default");if((0,l.A)(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(x)}function y(x){var f=g(x,"string");return(0,l.A)(f)=="symbol"?f:f+""}},88838:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>me});var l=u(48556);const g=l.parse,y=l.parseIterator,x=l.strip,f=l.ansicolor,p=l.black,h=l.bgBlack,E=l.red,v=l.bgRed,m=l.green,S=l.bgGreen,d=l.yellow,O=l.bgYellow,R=l.blue,C=l.bgBlue,L=l.magenta,j=l.bgMagenta,I=l.cyan,U=l.bgCyan,$=l.lightGray,ee=l.bgLightGray,re=l.bgDefault,Se=l.darkGray,z=l.bgDarkGray,Q=l.lightRed,ce=l.bgLightRed,se=l.lightGreen,q=l.bgLightGreen,te=l.lightYellow,A=l.bgLightYellow,T=l.lightBlue,B=l.bgLightBlue,X=l.lightMagenta,ue=l.bgLightMagenta,ie=l.lightCyan,Te=l.bgLightCyan,je=l.white,yt=l.bgWhite,tt=l.bgBrightRed,Ze=l.bgBrightGreen,Ne=l.bgBrightYellow,it=l.bgBrightBlue,Rt=l.bgBrightMagenta,Dn=l.bgBrightCyan,Mt=l.bright,Wt=l.dim,Tn=l.italic,bn=l.underline,$t=l.inverse,Ct=l.names,Z=l.rgb,me=l},88877:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.audit=void 0;var l=u(65212),g=u(19724),y=u(17214);function x(f){return l.operate(function(p,h){var E=!1,v=null,m=null,S=!1,d=function(){if(m?.unsubscribe(),m=null,E){E=!1;var R=v;v=null,h.next(R)}S&&h.complete()},O=function(){m=null,S&&h.complete()};p.subscribe(y.createOperatorSubscriber(h,function(R){E=!0,v=R,m||g.innerFrom(f(R)).subscribe(m=y.createOperatorSubscriber(h,d,O))},function(){S=!0,(!E||!m||m.closed)&&h.complete()}))})}w.audit=x},89244:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.combineAll=void 0;var l=u(90314);w.combineAll=l.combineLatestAll},89332:(Ge,w,u)=>{"use strict";u.d(w,{JY:()=>ff,sx:()=>Uc,gL:()=>Zd});var l=u(96540),g=u(40961),y=u(14644),x=u(71468),f=u(11561),p=function(ut){var Kt=ut.top,lr=ut.right,pr=ut.bottom,Mr=ut.left,ui=lr-Mr,Ai=pr-Kt,Xi={top:Kt,right:lr,bottom:pr,left:Mr,width:ui,height:Ai,x:Mr,y:Kt,center:{x:(lr+Mr)/2,y:(pr+Kt)/2}};return Xi},h=function(ut,Kt){return{top:ut.top-Kt.top,left:ut.left-Kt.left,bottom:ut.bottom+Kt.bottom,right:ut.right+Kt.right}},E=function(ut,Kt){return{top:ut.top+Kt.top,left:ut.left+Kt.left,bottom:ut.bottom-Kt.bottom,right:ut.right-Kt.right}},v=function(ut,Kt){return{top:ut.top+Kt.y,left:ut.left+Kt.x,bottom:ut.bottom+Kt.y,right:ut.right+Kt.x}},m={top:0,right:0,bottom:0,left:0},S=function(ut){var Kt=ut.borderBox,lr=ut.margin,pr=lr===void 0?m:lr,Mr=ut.border,ui=Mr===void 0?m:Mr,Ai=ut.padding,Xi=Ai===void 0?m:Ai,ca=p(h(Kt,pr)),ma=p(E(Kt,ui)),Wi=p(E(ma,Xi));return{marginBox:ca,borderBox:p(Kt),paddingBox:ma,contentBox:Wi,margin:pr,border:ui,padding:Xi}},d=function(ut){var Kt=ut.slice(0,-2),lr=ut.slice(-2);if(lr!=="px")return 0;var pr=Number(Kt);return isNaN(pr)&&(0,f.A)(!1),pr},O=function(){return{x:window.pageXOffset,y:window.pageYOffset}},R=function(ut,Kt){var lr=ut.borderBox,pr=ut.border,Mr=ut.margin,ui=ut.padding,Ai=v(lr,Kt);return S({borderBox:Ai,border:pr,margin:Mr,padding:ui})},C=function(ut,Kt){return Kt===void 0&&(Kt=O()),R(ut,Kt)},L=function(ut,Kt){var lr={top:d(Kt.marginTop),right:d(Kt.marginRight),bottom:d(Kt.marginBottom),left:d(Kt.marginLeft)},pr={top:d(Kt.paddingTop),right:d(Kt.paddingRight),bottom:d(Kt.paddingBottom),left:d(Kt.paddingLeft)},Mr={top:d(Kt.borderTopWidth),right:d(Kt.borderRightWidth),bottom:d(Kt.borderBottomWidth),left:d(Kt.borderLeftWidth)};return S({borderBox:ut,margin:lr,padding:pr,border:Mr})},j=function(ut){var Kt=ut.getBoundingClientRect(),lr=window.getComputedStyle(ut);return L(Kt,lr)},I=function(ut){var Kt=[],lr=null,pr=function(){for(var ui=arguments.length,Ai=new Array(ui),Xi=0;Xi<ui;Xi++)Ai[Xi]=arguments[Xi];Kt=Ai,!lr&&(lr=requestAnimationFrame(function(){lr=null,ut.apply(void 0,Kt)}))};return pr.cancel=function(){lr&&(cancelAnimationFrame(lr),lr=null)},pr};const U=I;function $(){return $=Object.assign?Object.assign.bind():function(Pe){for(var ut=1;ut<arguments.length;ut++){var Kt=arguments[ut];for(var lr in Kt)({}).hasOwnProperty.call(Kt,lr)&&(Pe[lr]=Kt[lr])}return Pe},$.apply(null,arguments)}const ee=!0,re=/[ \t]{2,}/g,Se=/^[ \t]*/gm,z=Pe=>Pe.replace(re," ").replace(Se,"").trim(),Q=Pe=>z(` %c@hello-pangea/dnd %c${z(Pe)} %c\u{1F477}\u200D This is a development only message. It will be removed in production builds. `),ce=Pe=>[Q(Pe),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"],se="__@hello-pangea/dnd-disable-dev-warnings";function q(Pe,ut){ee||typeof window<"u"&&window[se]||console[Pe](...ce(ut))}const te=q.bind(null,"warn"),A=q.bind(null,"error");function T(){}function B(Pe,ut){return{...Pe,...ut}}function X(Pe,ut,Kt){const lr=ut.map(pr=>{const Mr=B(Kt,pr.options);return Pe.addEventListener(pr.eventName,pr.fn,Mr),function(){Pe.removeEventListener(pr.eventName,pr.fn,Mr)}});return function(){lr.forEach(Mr=>{Mr()})}}const ue=!0,ie="Invariant failed";class Te extends Error{}Te.prototype.toString=function(){return this.message};function je(Pe,ut){throw ue?new Te(ie):new Te(`${ie}: ${ut||""}`)}class yt extends l.Component{constructor(...ut){super(...ut),this.callbacks=null,this.unbind=T,this.onWindowError=Kt=>{const lr=this.getCallbacks();lr.isDragging()&&lr.tryAbort(),Kt.error instanceof Te&&Kt.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=Kt=>{this.callbacks=Kt}}componentDidMount(){this.unbind=X(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(ut){if(ut instanceof Te){this.setState({});return}throw ut}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const tt=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,Ze=Pe=>Pe+1,Ne=Pe=>` You have lifted an item in position ${Ze(Pe.source.index)} `,it=(Pe,ut)=>{const Kt=Pe.droppableId===ut.droppableId,lr=Ze(Pe.index),pr=Ze(ut.index);return Kt?` You have moved the item from position ${lr} to position ${pr} `:` You have moved the item from position ${lr} in list ${Pe.droppableId} to list ${ut.droppableId} in position ${pr} `},Rt=(Pe,ut,Kt)=>ut.droppableId===Kt.droppableId?` The item ${Pe} has been combined with ${Kt.draggableId}`:` The item ${Pe} in list ${ut.droppableId} has been combined with ${Kt.draggableId} in list ${Kt.droppableId} `,Dn=Pe=>{const ut=Pe.destination;if(ut)return it(Pe.source,ut);const Kt=Pe.combine;return Kt?Rt(Pe.draggableId,Pe.source,Kt):"You are over an area that cannot be dropped on"},Mt=Pe=>` The item has returned to its starting position of ${Ze(Pe.index)} `,Tn={dragHandleUsageInstructions:tt,onDragStart:Ne,onDragUpdate:Dn,onDragEnd:Pe=>{if(Pe.reason==="CANCEL")return` Movement cancelled. ${Mt(Pe.source)} `;const ut=Pe.destination,Kt=Pe.combine;return ut?` You have dropped the item. ${it(Pe.source,ut)} `:Kt?` You have dropped the item. ${Rt(Pe.draggableId,Pe.source,Kt)} `:` The item has been dropped while not over a drop area. ${Mt(Pe.source)} `}};function bn(Pe,ut){return!!(Pe===ut||Number.isNaN(Pe)&&Number.isNaN(ut))}function $t(Pe,ut){if(Pe.length!==ut.length)return!1;for(let Kt=0;Kt<Pe.length;Kt++)if(!bn(Pe[Kt],ut[Kt]))return!1;return!0}function Ct(Pe,ut){const Kt=(0,l.useState)(()=>({inputs:ut,result:Pe()}))[0],lr=(0,l.useRef)(!0),pr=(0,l.useRef)(Kt),ui=lr.current||!!(ut&&pr.current.inputs&&$t(ut,pr.current.inputs))?pr.current:{inputs:ut,result:Pe()};return(0,l.useEffect)(()=>{lr.current=!1,pr.current=ui},[ui]),ui.result}function Z(Pe,ut){return Ct(()=>Pe,ut)}const me={x:0,y:0},ke=(Pe,ut)=>({x:Pe.x+ut.x,y:Pe.y+ut.y}),Ee=(Pe,ut)=>({x:Pe.x-ut.x,y:Pe.y-ut.y}),_e=(Pe,ut)=>Pe.x===ut.x&&Pe.y===ut.y,ge=Pe=>({x:Pe.x!==0?-Pe.x:0,y:Pe.y!==0?-Pe.y:0}),Me=(Pe,ut,Kt=0)=>Pe==="x"?{x:ut,y:Kt}:{x:Kt,y:ut},lt=(Pe,ut)=>Math.sqrt((ut.x-Pe.x)**2+(ut.y-Pe.y)**2),Ft=(Pe,ut)=>Math.min(...ut.map(Kt=>lt(Pe,Kt))),Et=Pe=>ut=>({x:Pe(ut.x),y:Pe(ut.y)});var Zt=(Pe,ut)=>{const Kt=p({top:Math.max(ut.top,Pe.top),right:Math.min(ut.right,Pe.right),bottom:Math.min(ut.bottom,Pe.bottom),left:Math.max(ut.left,Pe.left)});return Kt.width<=0||Kt.height<=0?null:Kt};const nn=(Pe,ut)=>({top:Pe.top+ut.y,left:Pe.left+ut.x,bottom:Pe.bottom+ut.y,right:Pe.right+ut.x}),Pn=Pe=>[{x:Pe.left,y:Pe.top},{x:Pe.right,y:Pe.top},{x:Pe.left,y:Pe.bottom},{x:Pe.right,y:Pe.bottom}],rn={top:0,right:0,bottom:0,left:0},Vt=(Pe,ut)=>ut?nn(Pe,ut.scroll.diff.displacement):Pe,Kn=(Pe,ut,Kt)=>Kt&&Kt.increasedBy?{...Pe,[ut.end]:Pe[ut.end]+Kt.increasedBy[ut.line]}:Pe,ur=(Pe,ut)=>ut&&ut.shouldClipSubject?Zt(ut.pageMarginBox,Pe):p(Pe);var on=({page:Pe,withPlaceholder:ut,axis:Kt,frame:lr})=>{const pr=Vt(Pe.marginBox,lr),Mr=Kn(pr,Kt,ut),ui=ur(Mr,lr);return{page:Pe,withPlaceholder:ut,active:ui}},tr=(Pe,ut)=>{Pe.frame||je();const Kt=Pe.frame,lr=Ee(ut,Kt.scroll.initial),pr=ge(lr),Mr={...Kt,scroll:{initial:Kt.scroll.initial,current:ut,diff:{value:lr,displacement:pr},max:Kt.scroll.max}},ui=on({page:Pe.subject.page,withPlaceholder:Pe.subject.withPlaceholder,axis:Pe.axis,frame:Mr});return{...Pe,frame:Mr,subject:ui}};function Cn(Pe,ut=$t){let Kt=null;function lr(...pr){if(Kt&&Kt.lastThis===this&&ut(pr,Kt.lastArgs))return Kt.lastResult;const Mr=Pe.apply(this,pr);return Kt={lastResult:Mr,lastArgs:pr,lastThis:this},Mr}return lr.clear=function(){Kt=null},lr}const Wn=Cn(Pe=>Pe.reduce((ut,Kt)=>(ut[Kt.descriptor.id]=Kt,ut),{})),er=Cn(Pe=>Pe.reduce((ut,Kt)=>(ut[Kt.descriptor.id]=Kt,ut),{})),Fn=Cn(Pe=>Object.values(Pe)),en=Cn(Pe=>Object.values(Pe));var gn=Cn((Pe,ut)=>en(ut).filter(lr=>Pe===lr.descriptor.droppableId).sort((lr,pr)=>lr.descriptor.index-pr.descriptor.index));function kn(Pe){return Pe.at&&Pe.at.type==="REORDER"?Pe.at.destination:null}function Jn(Pe){return Pe.at&&Pe.at.type==="COMBINE"?Pe.at.combine:null}var Nn=Cn((Pe,ut)=>ut.filter(Kt=>Kt.descriptor.id!==Pe.descriptor.id)),kr=({isMovingForward:Pe,draggable:ut,destination:Kt,insideDestination:lr,previousImpact:pr})=>{if(!Kt.isCombineEnabled||!kn(pr))return null;function ui(Ta){const co={type:"COMBINE",combine:{draggableId:Ta,droppableId:Kt.descriptor.id}};return{...pr,at:co}}const Ai=pr.displaced.all,Xi=Ai.length?Ai[0]:null;if(Pe)return Xi?ui(Xi):null;const ca=Nn(ut,lr);if(!Xi){if(!ca.length)return null;const Ta=ca[ca.length-1];return ui(Ta.descriptor.id)}const ma=ca.findIndex(Ta=>Ta.descriptor.id===Xi);ma===-1&&je();const Wi=ma-1;if(Wi<0)return null;const aa=ca[Wi];return ui(aa.descriptor.id)},bt=(Pe,ut)=>Pe.descriptor.droppableId===ut.descriptor.id;const ne={point:me,value:0},fe={invisible:{},visible:{},all:[]},K={displaced:fe,displacedBy:ne,at:null};var he=(Pe,ut)=>Kt=>Pe<=Kt&&Kt<=ut,Fe=Pe=>{const ut=he(Pe.top,Pe.bottom),Kt=he(Pe.left,Pe.right);return lr=>{if(ut(lr.top)&&ut(lr.bottom)&&Kt(lr.left)&&Kt(lr.right))return!0;const Mr=ut(lr.top)||ut(lr.bottom),ui=Kt(lr.left)||Kt(lr.right);if(Mr&&ui)return!0;const Xi=lr.top<Pe.top&&lr.bottom>Pe.bottom,ca=lr.left<Pe.left&&lr.right>Pe.right;return Xi&&ca?!0:Xi&&ui||ca&&Mr}},Nt=Pe=>{const ut=he(Pe.top,Pe.bottom),Kt=he(Pe.left,Pe.right);return lr=>ut(lr.top)&&ut(lr.bottom)&&Kt(lr.left)&&Kt(lr.right)};const ln={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},pn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Yn=Pe=>ut=>{const Kt=he(ut.top,ut.bottom),lr=he(ut.left,ut.right);return pr=>Pe===ln?Kt(pr.top)&&Kt(pr.bottom):lr(pr.left)&&lr(pr.right)};const ht=(Pe,ut)=>{const Kt=ut.frame?ut.frame.scroll.diff.displacement:me;return nn(Pe,Kt)},De=(Pe,ut,Kt)=>ut.subject.active?Kt(ut.subject.active)(Pe):!1,we=(Pe,ut,Kt)=>Kt(ut)(Pe),Ke=({target:Pe,destination:ut,viewport:Kt,withDroppableDisplacement:lr,isVisibleThroughFrameFn:pr})=>{const Mr=lr?ht(Pe,ut):Pe;return De(Mr,ut,pr)&&we(Mr,Kt,pr)},be=Pe=>Ke({...Pe,isVisibleThroughFrameFn:Fe}),pt=Pe=>Ke({...Pe,isVisibleThroughFrameFn:Nt}),We=Pe=>Ke({...Pe,isVisibleThroughFrameFn:Yn(Pe.destination.axis)}),Je=(Pe,ut,Kt)=>{if(typeof Kt=="boolean")return Kt;if(!ut)return!0;const{invisible:lr,visible:pr}=ut;if(lr[Pe])return!1;const Mr=pr[Pe];return Mr?Mr.shouldAnimate:!0};function ye(Pe,ut){const Kt=Pe.page.marginBox,lr={top:ut.point.y,right:0,bottom:0,left:ut.point.x};return p(h(Kt,lr))}function Qe({afterDragging:Pe,destination:ut,displacedBy:Kt,viewport:lr,forceShouldAnimate:pr,last:Mr}){return Pe.reduce(function(Ai,Xi){const ca=ye(Xi,Kt),ma=Xi.descriptor.id;if(Ai.all.push(ma),!be({target:ca,destination:ut,viewport:lr,withDroppableDisplacement:!0}))return Ai.invisible[Xi.descriptor.id]=!0,Ai;const aa=Je(ma,Mr,pr),Ta={draggableId:ma,shouldAnimate:aa};return Ai.visible[ma]=Ta,Ai},{all:[],visible:{},invisible:{}})}function ze(Pe,ut){if(!Pe.length)return 0;const Kt=Pe[Pe.length-1].descriptor.index;return ut.inHomeList?Kt:Kt+1}function qe({insideDestination:Pe,inHomeList:ut,displacedBy:Kt,destination:lr}){const pr=ze(Pe,{inHomeList:ut});return{displaced:fe,displacedBy:Kt,at:{type:"REORDER",destination:{droppableId:lr.descriptor.id,index:pr}}}}function Pt({draggable:Pe,insideDestination:ut,destination:Kt,viewport:lr,displacedBy:pr,last:Mr,index:ui,forceShouldAnimate:Ai}){const Xi=bt(Pe,Kt);if(ui==null)return qe({insideDestination:ut,inHomeList:Xi,displacedBy:pr,destination:Kt});const ca=ut.find(co=>co.descriptor.index===ui);if(!ca)return qe({insideDestination:ut,inHomeList:Xi,displacedBy:pr,destination:Kt});const ma=Nn(Pe,ut),Wi=ut.indexOf(ca),aa=ma.slice(Wi);return{displaced:Qe({afterDragging:aa,destination:Kt,displacedBy:pr,last:Mr,viewport:lr.frame,forceShouldAnimate:Ai}),displacedBy:pr,at:{type:"REORDER",destination:{droppableId:Kt.descriptor.id,index:ui}}}}function zt(Pe,ut){return!!ut.effected[Pe]}var un=({isMovingForward:Pe,destination:ut,draggables:Kt,combine:lr,afterCritical:pr})=>{if(!ut.isCombineEnabled)return null;const Mr=lr.draggableId,Ai=Kt[Mr].descriptor.index;return zt(Mr,pr)?Pe?Ai:Ai-1:Pe?Ai+1:Ai},hn=({isMovingForward:Pe,isInHomeList:ut,insideDestination:Kt,location:lr})=>{if(!Kt.length)return null;const pr=lr.index,Mr=Pe?pr+1:pr-1,ui=Kt[0].descriptor.index,Ai=Kt[Kt.length-1].descriptor.index,Xi=ut?Ai:Ai+1;return Mr<ui||Mr>Xi?null:Mr},xt=({isMovingForward:Pe,isInHomeList:ut,draggable:Kt,draggables:lr,destination:pr,insideDestination:Mr,previousImpact:ui,viewport:Ai,afterCritical:Xi})=>{const ca=ui.at;if(ca||je(),ca.type==="REORDER"){const Wi=hn({isMovingForward:Pe,isInHomeList:ut,location:ca.destination,insideDestination:Mr});return Wi==null?null:Pt({draggable:Kt,insideDestination:Mr,destination:pr,viewport:Ai,last:ui.displaced,displacedBy:ui.displacedBy,index:Wi})}const ma=un({isMovingForward:Pe,destination:pr,displaced:ui.displaced,draggables:lr,combine:ca.combine,afterCritical:Xi});return ma==null?null:Pt({draggable:Kt,insideDestination:Mr,destination:pr,viewport:Ai,last:ui.displaced,displacedBy:ui.displacedBy,index:ma})},_t=({displaced:Pe,afterCritical:ut,combineWith:Kt,displacedBy:lr})=>{const pr=!!(Pe.visible[Kt]||Pe.invisible[Kt]);return zt(Kt,ut)?pr?me:ge(lr.point):pr?lr.point:me},qt=({afterCritical:Pe,impact:ut,draggables:Kt})=>{const lr=Jn(ut);lr||je();const pr=lr.draggableId,Mr=Kt[pr].page.borderBox.center,ui=_t({displaced:ut.displaced,afterCritical:Pe,combineWith:pr,displacedBy:ut.displacedBy});return ke(Mr,ui)};const fn=(Pe,ut)=>ut.margin[Pe.start]+ut.borderBox[Pe.size]/2,On=(Pe,ut)=>ut.margin[Pe.end]+ut.borderBox[Pe.size]/2,Gn=(Pe,ut,Kt)=>ut[Pe.crossAxisStart]+Kt.margin[Pe.crossAxisStart]+Kt.borderBox[Pe.crossAxisSize]/2,Bn=({axis:Pe,moveRelativeTo:ut,isMoving:Kt})=>Me(Pe.line,ut.marginBox[Pe.end]+fn(Pe,Kt),Gn(Pe,ut.marginBox,Kt)),Lr=({axis:Pe,moveRelativeTo:ut,isMoving:Kt})=>Me(Pe.line,ut.marginBox[Pe.start]-On(Pe,Kt),Gn(Pe,ut.marginBox,Kt)),An=({axis:Pe,moveInto:ut,isMoving:Kt})=>Me(Pe.line,ut.contentBox[Pe.start]+fn(Pe,Kt),Gn(Pe,ut.contentBox,Kt));var Un=({impact:Pe,draggable:ut,draggables:Kt,droppable:lr,afterCritical:pr})=>{const Mr=gn(lr.descriptor.id,Kt),ui=ut.page,Ai=lr.axis;if(!Mr.length)return An({axis:Ai,moveInto:lr.page,isMoving:ui});const{displaced:Xi,displacedBy:ca}=Pe,ma=Xi.all[0];if(ma){const aa=Kt[ma];if(zt(ma,pr))return Lr({axis:Ai,moveRelativeTo:aa.page,isMoving:ui});const Ta=R(aa.page,ca.point);return Lr({axis:Ai,moveRelativeTo:Ta,isMoving:ui})}const Wi=Mr[Mr.length-1];if(Wi.descriptor.id===ut.descriptor.id)return ui.borderBox.center;if(zt(Wi.descriptor.id,pr)){const aa=R(Wi.page,ge(pr.displacedBy.point));return Bn({axis:Ai,moveRelativeTo:aa,isMoving:ui})}return Bn({axis:Ai,moveRelativeTo:Wi.page,isMoving:ui})},cr=(Pe,ut)=>{const Kt=Pe.frame;return Kt?ke(ut,Kt.scroll.diff.displacement):ut};const mr=({impact:Pe,draggable:ut,droppable:Kt,draggables:lr,afterCritical:pr})=>{const Mr=ut.page.borderBox.center,ui=Pe.at;return!Kt||!ui?Mr:ui.type==="REORDER"?Un({impact:Pe,draggable:ut,draggables:lr,droppable:Kt,afterCritical:pr}):qt({impact:Pe,draggables:lr,afterCritical:pr})};var hr=Pe=>{const ut=mr(Pe),Kt=Pe.droppable;return Kt?cr(Kt,ut):ut},ar=(Pe,ut)=>{const Kt=Ee(ut,Pe.scroll.initial),lr=ge(Kt);return{frame:p({top:ut.y,bottom:ut.y+Pe.frame.height,left:ut.x,right:ut.x+Pe.frame.width}),scroll:{initial:Pe.scroll.initial,max:Pe.scroll.max,current:ut,diff:{value:Kt,displacement:lr}}}};function Cr(Pe,ut){return Pe.map(Kt=>ut[Kt])}function Yr(Pe,ut){for(let Kt=0;Kt<ut.length;Kt++){const lr=ut[Kt].visible[Pe];if(lr)return lr}return null}var Xr=({impact:Pe,viewport:ut,destination:Kt,draggables:lr,maxScrollChange:pr})=>{const Mr=ar(ut,ke(ut.scroll.current,pr)),ui=Kt.frame?tr(Kt,ke(Kt.frame.scroll.current,pr)):Kt,Ai=Pe.displaced,Xi=Qe({afterDragging:Cr(Ai.all,lr),destination:Kt,displacedBy:Pe.displacedBy,viewport:Mr.frame,last:Ai,forceShouldAnimate:!1}),ca=Qe({afterDragging:Cr(Ai.all,lr),destination:ui,displacedBy:Pe.displacedBy,viewport:ut.frame,last:Ai,forceShouldAnimate:!1}),ma={},Wi={},aa=[Ai,Xi,ca];return Ai.all.forEach(co=>{const So=Yr(co,aa);if(So){Wi[co]=So;return}ma[co]=!0}),{...Pe,displaced:{all:Ai.all,invisible:ma,visible:Wi}}},ni=(Pe,ut)=>ke(Pe.scroll.diff.displacement,ut),ki=({pageBorderBoxCenter:Pe,draggable:ut,viewport:Kt})=>{const lr=ni(Kt,Pe),pr=Ee(lr,ut.page.borderBox.center);return ke(ut.client.borderBox.center,pr)},zr=({draggable:Pe,destination:ut,newPageBorderBoxCenter:Kt,viewport:lr,withDroppableDisplacement:pr,onlyOnMainAxis:Mr=!1})=>{const ui=Ee(Kt,Pe.page.borderBox.center),Xi={target:nn(Pe.page.borderBox,ui),destination:ut,withDroppableDisplacement:pr,viewport:lr};return Mr?We(Xi):pt(Xi)},Ur=({isMovingForward:Pe,draggable:ut,destination:Kt,draggables:lr,previousImpact:pr,viewport:Mr,previousPageBorderBoxCenter:ui,previousClientSelection:Ai,afterCritical:Xi})=>{if(!Kt.isEnabled)return null;const ca=gn(Kt.descriptor.id,lr),ma=bt(ut,Kt),Wi=kr({isMovingForward:Pe,draggable:ut,destination:Kt,insideDestination:ca,previousImpact:pr})||xt({isMovingForward:Pe,isInHomeList:ma,draggable:ut,draggables:lr,destination:Kt,insideDestination:ca,previousImpact:pr,viewport:Mr,afterCritical:Xi});if(!Wi)return null;const aa=hr({impact:Wi,draggable:ut,droppable:Kt,draggables:lr,afterCritical:Xi});if(zr({draggable:ut,destination:Kt,newPageBorderBoxCenter:aa,viewport:Mr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:ki({pageBorderBoxCenter:aa,draggable:ut,viewport:Mr}),impact:Wi,scrollJumpRequest:null};const co=Ee(aa,ui),So=Xr({impact:Wi,viewport:Mr,destination:Kt,draggables:lr,maxScrollChange:co});return{clientSelection:Ai,impact:So,scrollJumpRequest:co}};const jt=Pe=>{const ut=Pe.subject.active;return ut||je(),ut};var sn=({isMovingForward:Pe,pageBorderBoxCenter:ut,source:Kt,droppables:lr,viewport:pr})=>{const Mr=Kt.subject.active;if(!Mr)return null;const ui=Kt.axis,Ai=he(Mr[ui.start],Mr[ui.end]),Xi=Fn(lr).filter(ma=>ma!==Kt).filter(ma=>ma.isEnabled).filter(ma=>!!ma.subject.active).filter(ma=>Fe(pr.frame)(jt(ma))).filter(ma=>{const Wi=jt(ma);return Pe?Mr[ui.crossAxisEnd]<Wi[ui.crossAxisEnd]:Wi[ui.crossAxisStart]<Mr[ui.crossAxisStart]}).filter(ma=>{const Wi=jt(ma),aa=he(Wi[ui.start],Wi[ui.end]);return Ai(Wi[ui.start])||Ai(Wi[ui.end])||aa(Mr[ui.start])||aa(Mr[ui.end])}).sort((ma,Wi)=>{const aa=jt(ma)[ui.crossAxisStart],Ta=jt(Wi)[ui.crossAxisStart];return Pe?aa-Ta:Ta-aa}).filter((ma,Wi,aa)=>jt(ma)[ui.crossAxisStart]===jt(aa[0])[ui.crossAxisStart]);if(!Xi.length)return null;if(Xi.length===1)return Xi[0];const ca=Xi.filter(ma=>he(jt(ma)[ui.start],jt(ma)[ui.end])(ut[ui.line]));return ca.length===1?ca[0]:ca.length>1?ca.sort((ma,Wi)=>jt(ma)[ui.start]-jt(Wi)[ui.start])[0]:Xi.sort((ma,Wi)=>{const aa=Ft(ut,Pn(jt(ma))),Ta=Ft(ut,Pn(jt(Wi)));return aa!==Ta?aa-Ta:jt(ma)[ui.start]-jt(Wi)[ui.start]})[0]};const Rn=(Pe,ut)=>{const Kt=Pe.page.borderBox.center;return zt(Pe.descriptor.id,ut)?Ee(Kt,ut.displacedBy.point):Kt},H=(Pe,ut)=>{const Kt=Pe.page.borderBox;return zt(Pe.descriptor.id,ut)?nn(Kt,ge(ut.displacedBy.point)):Kt};var Be=({pageBorderBoxCenter:Pe,viewport:ut,destination:Kt,insideDestination:lr,afterCritical:pr})=>lr.filter(ui=>pt({target:H(ui,pr),destination:Kt,viewport:ut.frame,withDroppableDisplacement:!0})).sort((ui,Ai)=>{const Xi=lt(Pe,cr(Kt,Rn(ui,pr))),ca=lt(Pe,cr(Kt,Rn(Ai,pr)));return Xi<ca?-1:ca<Xi?1:ui.descriptor.index-Ai.descriptor.index})[0]||null,wn=Cn(function(ut,Kt){const lr=Kt[ut.line];return{value:lr,point:Me(ut.line,lr)}});const bi=(Pe,ut,Kt)=>{const lr=Pe.axis;if(Pe.descriptor.mode==="virtual")return Me(lr.line,ut[lr.line]);const pr=Pe.subject.page.contentBox[lr.size],Xi=gn(Pe.descriptor.id,Kt).reduce((ca,ma)=>ca+ma.client.marginBox[lr.size],0)+ut[lr.line]-pr;return Xi<=0?null:Me(lr.line,Xi)},Oi=(Pe,ut)=>({...Pe,scroll:{...Pe.scroll,max:ut}}),de=(Pe,ut,Kt)=>{const lr=Pe.frame;bt(ut,Pe)&&je(),Pe.subject.withPlaceholder&&je();const pr=wn(Pe.axis,ut.displaceBy).point,Mr=bi(Pe,pr,Kt),ui={placeholderSize:pr,increasedBy:Mr,oldFrameMaxScroll:Pe.frame?Pe.frame.scroll.max:null};if(!lr){const ma=on({page:Pe.subject.page,withPlaceholder:ui,axis:Pe.axis,frame:Pe.frame});return{...Pe,subject:ma}}const Ai=Mr?ke(lr.scroll.max,Mr):lr.scroll.max,Xi=Oi(lr,Ai),ca=on({page:Pe.subject.page,withPlaceholder:ui,axis:Pe.axis,frame:Xi});return{...Pe,subject:ca,frame:Xi}},Ve=Pe=>{const ut=Pe.subject.withPlaceholder;ut||je();const Kt=Pe.frame;if(!Kt){const ui=on({page:Pe.subject.page,axis:Pe.axis,frame:null,withPlaceholder:null});return{...Pe,subject:ui}}const lr=ut.oldFrameMaxScroll;lr||je();const pr=Oi(Kt,lr),Mr=on({page:Pe.subject.page,axis:Pe.axis,frame:pr,withPlaceholder:null});return{...Pe,subject:Mr,frame:pr}};var vt=({previousPageBorderBoxCenter:Pe,moveRelativeTo:ut,insideDestination:Kt,draggable:lr,draggables:pr,destination:Mr,viewport:ui,afterCritical:Ai})=>{if(!ut){if(Kt.length)return null;const Wi={displaced:fe,displacedBy:ne,at:{type:"REORDER",destination:{droppableId:Mr.descriptor.id,index:0}}},aa=hr({impact:Wi,draggable:lr,droppable:Mr,draggables:pr,afterCritical:Ai}),Ta=bt(lr,Mr)?Mr:de(Mr,lr,pr);return zr({draggable:lr,destination:Ta,newPageBorderBoxCenter:aa,viewport:ui.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?Wi:null}const Xi=Pe[Mr.axis.line]<=ut.page.borderBox.center[Mr.axis.line],ca=(()=>{const Wi=ut.descriptor.index;return ut.descriptor.id===lr.descriptor.id||Xi?Wi:Wi+1})(),ma=wn(Mr.axis,lr.displaceBy);return Pt({draggable:lr,insideDestination:Kt,destination:Mr,viewport:ui,displacedBy:ma,last:fe,index:ca})},Qt=({isMovingForward:Pe,previousPageBorderBoxCenter:ut,draggable:Kt,isOver:lr,draggables:pr,droppables:Mr,viewport:ui,afterCritical:Ai})=>{const Xi=sn({isMovingForward:Pe,pageBorderBoxCenter:ut,source:lr,droppables:Mr,viewport:ui});if(!Xi)return null;const ca=gn(Xi.descriptor.id,pr),ma=Be({pageBorderBoxCenter:ut,viewport:ui,destination:Xi,insideDestination:ca,afterCritical:Ai}),Wi=vt({previousPageBorderBoxCenter:ut,destination:Xi,draggable:Kt,draggables:pr,moveRelativeTo:ma,insideDestination:ca,viewport:ui,afterCritical:Ai});if(!Wi)return null;const aa=hr({impact:Wi,draggable:Kt,droppable:Xi,draggables:pr,afterCritical:Ai});return{clientSelection:ki({pageBorderBoxCenter:aa,draggable:Kt,viewport:ui}),impact:Wi,scrollJumpRequest:null}},nt=Pe=>{const ut=Pe.at;return ut?ut.type==="REORDER"?ut.destination.droppableId:ut.combine.droppableId:null};const Tt=(Pe,ut)=>{const Kt=nt(Pe);return Kt?ut[Kt]:null};var Gt=({state:Pe,type:ut})=>{const Kt=Tt(Pe.impact,Pe.dimensions.droppables),lr=!!Kt,pr=Pe.dimensions.droppables[Pe.critical.droppable.id],Mr=Kt||pr,ui=Mr.axis.direction,Ai=ui==="vertical"&&(ut==="MOVE_UP"||ut==="MOVE_DOWN")||ui==="horizontal"&&(ut==="MOVE_LEFT"||ut==="MOVE_RIGHT");if(Ai&&!lr)return null;const Xi=ut==="MOVE_DOWN"||ut==="MOVE_RIGHT",ca=Pe.dimensions.draggables[Pe.critical.draggable.id],ma=Pe.current.page.borderBoxCenter,{draggables:Wi,droppables:aa}=Pe.dimensions;return Ai?Ur({isMovingForward:Xi,previousPageBorderBoxCenter:ma,draggable:ca,destination:Mr,draggables:Wi,viewport:Pe.viewport,previousClientSelection:Pe.current.client.selection,previousImpact:Pe.impact,afterCritical:Pe.afterCritical}):Qt({isMovingForward:Xi,previousPageBorderBoxCenter:ma,draggable:ca,isOver:Mr,draggables:Wi,droppables:aa,viewport:Pe.viewport,afterCritical:Pe.afterCritical})};function En(Pe){return Pe.phase==="DRAGGING"||Pe.phase==="COLLECTING"}function Qn(Pe){const ut=he(Pe.top,Pe.bottom),Kt=he(Pe.left,Pe.right);return function(pr){return ut(pr.y)&&Kt(pr.x)}}function Or(Pe,ut){return Pe.left<ut.right&&Pe.right>ut.left&&Pe.top<ut.bottom&&Pe.bottom>ut.top}function Pr({pageBorderBox:Pe,draggable:ut,candidates:Kt}){const lr=ut.page.borderBox.center,pr=Kt.map(Mr=>{const ui=Mr.axis,Ai=Me(Mr.axis.line,Pe.center[ui.line],Mr.page.borderBox.center[ui.crossAxisLine]);return{id:Mr.descriptor.id,distance:lt(lr,Ai)}}).sort((Mr,ui)=>ui.distance-Mr.distance);return pr[0]?pr[0].id:null}function ai({pageBorderBox:Pe,draggable:ut,droppables:Kt}){const lr=Fn(Kt).filter(pr=>{if(!pr.isEnabled)return!1;const Mr=pr.subject.active;if(!Mr||!Or(Pe,Mr))return!1;if(Qn(Mr)(Pe.center))return!0;const ui=pr.axis,Ai=Mr.center[ui.crossAxisLine],Xi=Pe[ui.crossAxisStart],ca=Pe[ui.crossAxisEnd],ma=he(Mr[ui.crossAxisStart],Mr[ui.crossAxisEnd]),Wi=ma(Xi),aa=ma(ca);return!Wi&&!aa?!0:Wi?Xi<Ai:ca>Ai});return lr.length?lr.length===1?lr[0].descriptor.id:Pr({pageBorderBox:Pe,draggable:ut,candidates:lr}):null}const xi=(Pe,ut)=>p(nn(Pe,ut));var mi=(Pe,ut)=>{const Kt=Pe.frame;return Kt?xi(ut,Kt.scroll.diff.value):ut};function ei({displaced:Pe,id:ut}){return!!(Pe.visible[ut]||Pe.invisible[ut])}function Qr({draggable:Pe,closest:ut,inHomeList:Kt}){return ut?Kt&&ut.descriptor.index>Pe.descriptor.index?ut.descriptor.index-1:ut.descriptor.index:null}var Ni=({pageBorderBoxWithDroppableScroll:Pe,draggable:ut,destination:Kt,insideDestination:lr,last:pr,viewport:Mr,afterCritical:ui})=>{const Ai=Kt.axis,Xi=wn(Kt.axis,ut.displaceBy),ca=Xi.value,ma=Pe[Ai.start],Wi=Pe[Ai.end],Ta=Nn(ut,lr).find(So=>{const Po=So.descriptor.id,As=So.page.borderBox.center[Ai.line],Hs=zt(Po,ui),bu=ei({displaced:pr,id:Po});return Hs?bu?Wi<=As:ma<As-ca:bu?Wi<=As+ca:ma<As})||null,co=Qr({draggable:ut,closest:Ta,inHomeList:bt(ut,Kt)});return Pt({draggable:ut,insideDestination:lr,destination:Kt,viewport:Mr,last:pr,displacedBy:Xi,index:co})};const ea=4;var Qi=({draggable:Pe,pageBorderBoxWithDroppableScroll:ut,previousImpact:Kt,destination:lr,insideDestination:pr,afterCritical:Mr})=>{if(!lr.isCombineEnabled)return null;const ui=lr.axis,Ai=wn(lr.axis,Pe.displaceBy),Xi=Ai.value,ca=ut[ui.start],ma=ut[ui.end],aa=Nn(Pe,pr).find(co=>{const So=co.descriptor.id,Po=co.page.borderBox,Hs=Po[ui.size]/ea,bu=zt(So,Mr),Zs=ei({displaced:Kt.displaced,id:So});return bu?Zs?ma>Po[ui.start]+Hs&&ma<Po[ui.end]-Hs:ca>Po[ui.start]-Xi+Hs&&ca<Po[ui.end]-Xi-Hs:Zs?ma>Po[ui.start]+Xi+Hs&&ma<Po[ui.end]+Xi-Hs:ca>Po[ui.start]+Hs&&ca<Po[ui.end]-Hs});return aa?{displacedBy:Ai,displaced:Kt.displaced,at:{type:"COMBINE",combine:{draggableId:aa.descriptor.id,droppableId:lr.descriptor.id}}}:null},ir=({pageOffset:Pe,draggable:ut,draggables:Kt,droppables:lr,previousImpact:pr,viewport:Mr,afterCritical:ui})=>{const Ai=xi(ut.page.borderBox,Pe),Xi=ai({pageBorderBox:Ai,draggable:ut,droppables:lr});if(!Xi)return K;const ca=lr[Xi],ma=gn(ca.descriptor.id,Kt),Wi=mi(ca,Ai);return Qi({pageBorderBoxWithDroppableScroll:Wi,draggable:ut,previousImpact:pr,destination:ca,insideDestination:ma,afterCritical:ui})||Ni({pageBorderBoxWithDroppableScroll:Wi,draggable:ut,destination:ca,insideDestination:ma,last:pr.displaced,viewport:Mr,afterCritical:ui})},xr=(Pe,ut)=>({...Pe,[ut.descriptor.id]:ut});const di=({previousImpact:Pe,impact:ut,droppables:Kt})=>{const lr=nt(Pe),pr=nt(ut);if(!lr||lr===pr)return Kt;const Mr=Kt[lr];if(!Mr.subject.withPlaceholder)return Kt;const ui=Ve(Mr);return xr(Kt,ui)};var ft=({draggable:Pe,draggables:ut,droppables:Kt,previousImpact:lr,impact:pr})=>{const Mr=di({previousImpact:lr,impact:pr,droppables:Kt}),ui=nt(pr);if(!ui)return Mr;const Ai=Kt[ui];if(bt(Pe,Ai)||Ai.subject.withPlaceholder)return Mr;const Xi=de(Ai,Pe,ut);return xr(Mr,Xi)},zn=({state:Pe,clientSelection:ut,dimensions:Kt,viewport:lr,impact:pr,scrollJumpRequest:Mr})=>{const ui=lr||Pe.viewport,Ai=Kt||Pe.dimensions,Xi=ut||Pe.current.client.selection,ca=Ee(Xi,Pe.initial.client.selection),ma={offset:ca,selection:Xi,borderBoxCenter:ke(Pe.initial.client.borderBoxCenter,ca)},Wi={selection:ke(ma.selection,ui.scroll.current),borderBoxCenter:ke(ma.borderBoxCenter,ui.scroll.current),offset:ke(ma.offset,ui.scroll.diff.value)},aa={client:ma,page:Wi};if(Pe.phase==="COLLECTING")return{...Pe,dimensions:Ai,viewport:ui,current:aa};const Ta=Ai.draggables[Pe.critical.draggable.id],co=pr||ir({pageOffset:Wi.offset,draggable:Ta,draggables:Ai.draggables,droppables:Ai.droppables,previousImpact:Pe.impact,viewport:ui,afterCritical:Pe.afterCritical}),So=ft({draggable:Ta,impact:co,previousImpact:Pe.impact,draggables:Ai.draggables,droppables:Ai.droppables});return{...Pe,current:aa,dimensions:{draggables:Ai.draggables,droppables:So},impact:co,viewport:ui,scrollJumpRequest:Mr||null,forceShouldAnimate:Mr?!1:null}};function Zn(Pe,ut){return Pe.map(Kt=>ut[Kt])}var wi=({impact:Pe,viewport:ut,draggables:Kt,destination:lr,forceShouldAnimate:pr})=>{const Mr=Pe.displaced,ui=Zn(Mr.all,Kt),Ai=Qe({afterDragging:ui,destination:lr,displacedBy:Pe.displacedBy,viewport:ut.frame,forceShouldAnimate:pr,last:Mr});return{...Pe,displaced:Ai}},Ea=({impact:Pe,draggable:ut,droppable:Kt,draggables:lr,viewport:pr,afterCritical:Mr})=>{const ui=hr({impact:Pe,draggable:ut,draggables:lr,droppable:Kt,afterCritical:Mr});return ki({pageBorderBoxCenter:ui,draggable:ut,viewport:pr})},wa=({state:Pe,dimensions:ut,viewport:Kt})=>{Pe.movementMode!=="SNAP"&&je();const lr=Pe.impact,pr=Kt||Pe.viewport,Mr=ut||Pe.dimensions,{draggables:ui,droppables:Ai}=Mr,Xi=ui[Pe.critical.draggable.id],ca=nt(lr);ca||je();const ma=Ai[ca],Wi=wi({impact:lr,viewport:pr,destination:ma,draggables:ui}),aa=Ea({impact:Wi,draggable:Xi,droppable:ma,draggables:ui,viewport:pr,afterCritical:Pe.afterCritical});return zn({impact:Wi,clientSelection:aa,state:Pe,dimensions:Mr,viewport:pr})},ji=Pe=>({index:Pe.index,droppableId:Pe.droppableId}),Dt=({draggable:Pe,home:ut,draggables:Kt,viewport:lr})=>{const pr=wn(ut.axis,Pe.displaceBy),Mr=gn(ut.descriptor.id,Kt),ui=Mr.indexOf(Pe);ui===-1&&je();const Ai=Mr.slice(ui+1),Xi=Ai.reduce((aa,Ta)=>(aa[Ta.descriptor.id]=!0,aa),{}),ca={inVirtualList:ut.descriptor.mode==="virtual",displacedBy:pr,effected:Xi};return{impact:{displaced:Qe({afterDragging:Ai,destination:ut,displacedBy:pr,last:null,viewport:lr.frame,forceShouldAnimate:!1}),displacedBy:pr,at:{type:"REORDER",destination:ji(Pe.descriptor)}},afterCritical:ca}},Xn=(Pe,ut)=>({draggables:Pe.draggables,droppables:xr(Pe.droppables,ut)});const Tr=Pe=>{},Nr=Pe=>{};var ti=({draggable:Pe,offset:ut,initialWindowScroll:Kt})=>{const lr=R(Pe.client,ut),pr=C(lr,Kt);return{...Pe,placeholder:{...Pe.placeholder,client:lr},client:lr,page:pr}},_i=Pe=>{const ut=Pe.frame;return ut||je(),ut},Ii=({additions:Pe,updatedDroppables:ut,viewport:Kt})=>{const lr=Kt.scroll.diff.value;return Pe.map(pr=>{const Mr=pr.descriptor.droppableId,ui=ut[Mr],Xi=_i(ui).scroll.diff.value,ca=ke(lr,Xi);return ti({draggable:pr,offset:ca,initialWindowScroll:Kt.scroll.initial})})},ta=({state:Pe,published:ut})=>{Tr();const Kt=ut.modified.map(As=>{const Hs=Pe.dimensions.droppables[As.droppableId];return tr(Hs,As.scroll)}),lr={...Pe.dimensions.droppables,...Wn(Kt)},pr=er(Ii({additions:ut.additions,updatedDroppables:lr,viewport:Pe.viewport})),Mr={...Pe.dimensions.draggables,...pr};ut.removals.forEach(As=>{delete Mr[As]});const ui={droppables:lr,draggables:Mr},Ai=nt(Pe.impact),Xi=Ai?ui.droppables[Ai]:null,ca=ui.draggables[Pe.critical.draggable.id],ma=ui.droppables[Pe.critical.droppable.id],{impact:Wi,afterCritical:aa}=Dt({draggable:ca,home:ma,draggables:Mr,viewport:Pe.viewport}),Ta=Xi&&Xi.isCombineEnabled?Pe.impact:Wi,co=ir({pageOffset:Pe.current.page.offset,draggable:ui.draggables[Pe.critical.draggable.id],draggables:ui.draggables,droppables:ui.droppables,previousImpact:Ta,viewport:Pe.viewport,afterCritical:aa});Nr();const So={...Pe,phase:"DRAGGING",impact:co,onLiftImpact:Wi,dimensions:ui,afterCritical:aa,forceShouldAnimate:!1};return Pe.phase==="COLLECTING"?So:{...So,phase:"DROP_PENDING",reason:Pe.reason,isWaiting:!1}};const Ji=Pe=>Pe.movementMode==="SNAP",k=(Pe,ut,Kt)=>{const lr=Xn(Pe.dimensions,ut);return!Ji(Pe)||Kt?zn({state:Pe,dimensions:lr}):wa({state:Pe,dimensions:lr})};function ve(Pe){return Pe.isDragging&&Pe.movementMode==="SNAP"?{...Pe,scrollJumpRequest:null}:Pe}const Le={phase:"IDLE",completed:null,shouldFlush:!1};var Ye=(Pe=Le,ut)=>{if(ut.type==="FLUSH")return{...Le,shouldFlush:!0};if(ut.type==="INITIAL_PUBLISH"){Pe.phase!=="IDLE"&&je();const{critical:Kt,clientSelection:lr,viewport:pr,dimensions:Mr,movementMode:ui}=ut.payload,Ai=Mr.draggables[Kt.draggable.id],Xi=Mr.droppables[Kt.droppable.id],ca={selection:lr,borderBoxCenter:Ai.client.borderBox.center,offset:me},ma={client:ca,page:{selection:ke(ca.selection,pr.scroll.initial),borderBoxCenter:ke(ca.selection,pr.scroll.initial),offset:ke(ca.selection,pr.scroll.diff.value)}},Wi=Fn(Mr.droppables).every(So=>!So.isFixedOnPage),{impact:aa,afterCritical:Ta}=Dt({draggable:Ai,home:Xi,draggables:Mr.draggables,viewport:pr});return{phase:"DRAGGING",isDragging:!0,critical:Kt,movementMode:ui,dimensions:Mr,initial:ma,current:ma,isWindowScrollAllowed:Wi,impact:aa,afterCritical:Ta,onLiftImpact:aa,viewport:pr,scrollJumpRequest:null,forceShouldAnimate:null}}if(ut.type==="COLLECTION_STARTING")return Pe.phase==="COLLECTING"||Pe.phase==="DROP_PENDING"?Pe:(Pe.phase!=="DRAGGING"&&je(),{...Pe,phase:"COLLECTING"});if(ut.type==="PUBLISH_WHILE_DRAGGING")return Pe.phase==="COLLECTING"||Pe.phase==="DROP_PENDING"||je(),ta({state:Pe,published:ut.payload});if(ut.type==="MOVE"){if(Pe.phase==="DROP_PENDING")return Pe;En(Pe)||je();const{client:Kt}=ut.payload;return _e(Kt,Pe.current.client.selection)?Pe:zn({state:Pe,clientSelection:Kt,impact:Ji(Pe)?Pe.impact:null})}if(ut.type==="UPDATE_DROPPABLE_SCROLL"){if(Pe.phase==="DROP_PENDING"||Pe.phase==="COLLECTING")return ve(Pe);En(Pe)||je();const{id:Kt,newScroll:lr}=ut.payload,pr=Pe.dimensions.droppables[Kt];if(!pr)return Pe;const Mr=tr(pr,lr);return k(Pe,Mr,!1)}if(ut.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(Pe.phase==="DROP_PENDING")return Pe;En(Pe)||je();const{id:Kt,isEnabled:lr}=ut.payload,pr=Pe.dimensions.droppables[Kt];pr||je(),pr.isEnabled===lr&&je();const Mr={...pr,isEnabled:lr};return k(Pe,Mr,!0)}if(ut.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(Pe.phase==="DROP_PENDING")return Pe;En(Pe)||je();const{id:Kt,isCombineEnabled:lr}=ut.payload,pr=Pe.dimensions.droppables[Kt];pr||je(),pr.isCombineEnabled===lr&&je();const Mr={...pr,isCombineEnabled:lr};return k(Pe,Mr,!0)}if(ut.type==="MOVE_BY_WINDOW_SCROLL"){if(Pe.phase==="DROP_PENDING"||Pe.phase==="DROP_ANIMATING")return Pe;En(Pe)||je(),Pe.isWindowScrollAllowed||je();const Kt=ut.payload.newScroll;if(_e(Pe.viewport.scroll.current,Kt))return ve(Pe);const lr=ar(Pe.viewport,Kt);return Ji(Pe)?wa({state:Pe,viewport:lr}):zn({state:Pe,viewport:lr})}if(ut.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!En(Pe))return Pe;const Kt=ut.payload.maxScroll;if(_e(Kt,Pe.viewport.scroll.max))return Pe;const lr={...Pe.viewport,scroll:{...Pe.viewport.scroll,max:Kt}};return{...Pe,viewport:lr}}if(ut.type==="MOVE_UP"||ut.type==="MOVE_DOWN"||ut.type==="MOVE_LEFT"||ut.type==="MOVE_RIGHT"){if(Pe.phase==="COLLECTING"||Pe.phase==="DROP_PENDING")return Pe;Pe.phase!=="DRAGGING"&&je();const Kt=Gt({state:Pe,type:ut.type});return Kt?zn({state:Pe,impact:Kt.impact,clientSelection:Kt.clientSelection,scrollJumpRequest:Kt.scrollJumpRequest}):Pe}if(ut.type==="DROP_PENDING"){const Kt=ut.payload.reason;return Pe.phase!=="COLLECTING"&&je(),{...Pe,phase:"DROP_PENDING",isWaiting:!0,reason:Kt}}if(ut.type==="DROP_ANIMATE"){const{completed:Kt,dropDuration:lr,newHomeClientOffset:pr}=ut.payload;return Pe.phase==="DRAGGING"||Pe.phase==="DROP_PENDING"||je(),{phase:"DROP_ANIMATING",completed:Kt,dropDuration:lr,newHomeClientOffset:pr,dimensions:Pe.dimensions}}if(ut.type==="DROP_COMPLETE"){const{completed:Kt}=ut.payload;return{phase:"IDLE",completed:Kt,shouldFlush:!1}}return Pe};function ot(Pe,ut){return Pe instanceof Object&&"type"in Pe&&Pe.type===ut}const Lt=Pe=>({type:"BEFORE_INITIAL_CAPTURE",payload:Pe}),an=Pe=>({type:"LIFT",payload:Pe}),nr=Pe=>({type:"INITIAL_PUBLISH",payload:Pe}),vr=Pe=>({type:"PUBLISH_WHILE_DRAGGING",payload:Pe}),$r=()=>({type:"COLLECTION_STARTING",payload:null}),Fr=Pe=>({type:"UPDATE_DROPPABLE_SCROLL",payload:Pe}),qr=Pe=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Pe}),jr=Pe=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Pe}),vi=Pe=>({type:"MOVE",payload:Pe}),Mi=Pe=>({type:"MOVE_BY_WINDOW_SCROLL",payload:Pe}),ra=Pe=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Pe}),Yi=()=>({type:"MOVE_UP",payload:null}),ua=()=>({type:"MOVE_DOWN",payload:null}),Sa=()=>({type:"MOVE_RIGHT",payload:null}),Xt=()=>({type:"MOVE_LEFT",payload:null}),V=()=>({type:"FLUSH",payload:null}),Y=Pe=>({type:"DROP_ANIMATE",payload:Pe}),D=Pe=>({type:"DROP_COMPLETE",payload:Pe}),P=Pe=>({type:"DROP",payload:Pe}),oe=Pe=>({type:"DROP_PENDING",payload:Pe}),Ie=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});function Ue(Pe){if(Pe.length<=1)return;const ut=Pe.map(pr=>pr.descriptor.index),Kt={};for(let pr=1;pr<ut.length;pr++){const Mr=ut[pr],ui=ut[pr-1];Mr!==ui+1&&(Kt[Mr]=!0)}if(!Object.keys(Kt).length)return;const lr=ut.map(pr=>!!Kt[pr]?`[\u{1F525}${pr}]`:`${pr}`).join(", ")}function Xe(Pe,ut){}var dt=Pe=>({getState:ut,dispatch:Kt})=>lr=>pr=>{if(!ot(pr,"LIFT")){lr(pr);return}const{id:Mr,clientSelection:ui,movementMode:Ai}=pr.payload,Xi=ut();Xi.phase==="DROP_ANIMATING"&&Kt(D({completed:Xi.completed})),ut().phase!=="IDLE"&&je(),Kt(V()),Kt(Lt({draggableId:Mr,movementMode:Ai}));const ma={draggableId:Mr,scrollOptions:{shouldPublishImmediately:Ai==="SNAP"}},{critical:Wi,dimensions:aa,viewport:Ta}=Pe.startPublishing(ma);Kt(nr({critical:Wi,dimensions:aa,clientSelection:ui,movementMode:Ai,viewport:Ta}))},kt=Pe=>()=>ut=>Kt=>{ot(Kt,"INITIAL_PUBLISH")&&Pe.dragging(),ot(Kt,"DROP_ANIMATE")&&Pe.dropping(Kt.payload.completed.result.reason),(ot(Kt,"FLUSH")||ot(Kt,"DROP_COMPLETE"))&&Pe.resting(),ut(Kt)};const dn={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Vn={opacity:{drop:0,combining:.7},scale:{drop:.75}},qn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},yr=`${qn.outOfTheWay}s ${dn.outOfTheWay}`,ci={fluid:`opacity ${yr}`,snap:`transform ${yr}, opacity ${yr}`,drop:Pe=>{const ut=`${Pe}s ${dn.drop}`;return`transform ${ut}, opacity ${ut}`},outOfTheWay:`transform ${yr}`,placeholder:`height ${yr}, width ${yr}, margin ${yr}`},hi=Pe=>_e(Pe,me)?void 0:`translate(${Pe.x}px, ${Pe.y}px)`,Ti={moveTo:hi,drop:(Pe,ut)=>{const Kt=hi(Pe);if(Kt)return ut?`${Kt} scale(${Vn.scale.drop})`:Kt}},{minDropTime:Vi,maxDropTime:Di}=qn,Pi=Di-Vi,mt=1500,tn=.6;var or=({current:Pe,destination:ut,reason:Kt})=>{const lr=lt(Pe,ut);if(lr<=0)return Vi;if(lr>=mt)return Di;const pr=lr/mt,Mr=Vi+Pi*pr,ui=Kt==="CANCEL"?Mr*tn:Mr;return Number(ui.toFixed(2))},rt=({impact:Pe,draggable:ut,dimensions:Kt,viewport:lr,afterCritical:pr})=>{const{draggables:Mr,droppables:ui}=Kt,Ai=nt(Pe),Xi=Ai?ui[Ai]:null,ca=ui[ut.descriptor.droppableId],ma=Ea({impact:Pe,draggable:ut,draggables:Mr,afterCritical:pr,droppable:Xi||ca,viewport:lr});return Ee(ma,ut.client.borderBox.center)},St=({draggables:Pe,reason:ut,lastImpact:Kt,home:lr,viewport:pr,onLiftImpact:Mr})=>!Kt.at||ut!=="DROP"?{impact:wi({draggables:Pe,impact:Mr,destination:lr,viewport:pr,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:Kt.at.type==="REORDER"?{impact:Kt,didDropInsideDroppable:!0}:{impact:{...Kt,displaced:fe},didDropInsideDroppable:!0};const _n=({getState:Pe,dispatch:ut})=>Kt=>lr=>{if(!ot(lr,"DROP")){Kt(lr);return}const pr=Pe(),Mr=lr.payload.reason;if(pr.phase==="COLLECTING"){ut(oe({reason:Mr}));return}if(pr.phase==="IDLE")return;pr.phase==="DROP_PENDING"&&pr.isWaiting&&je(),pr.phase==="DRAGGING"||pr.phase==="DROP_PENDING"||je();const Ai=pr.critical,Xi=pr.dimensions,ca=Xi.draggables[pr.critical.draggable.id],{impact:ma,didDropInsideDroppable:Wi}=St({reason:Mr,lastImpact:pr.impact,afterCritical:pr.afterCritical,onLiftImpact:pr.onLiftImpact,home:pr.dimensions.droppables[pr.critical.droppable.id],viewport:pr.viewport,draggables:pr.dimensions.draggables}),aa=Wi?kn(ma):null,Ta=Wi?Jn(ma):null,co={index:Ai.draggable.index,droppableId:Ai.droppable.id},So={draggableId:ca.descriptor.id,type:ca.descriptor.type,source:co,reason:Mr,mode:pr.movementMode,destination:aa,combine:Ta},Po=rt({impact:ma,draggable:ca,dimensions:Xi,viewport:pr.viewport,afterCritical:pr.afterCritical}),As={critical:pr.critical,afterCritical:pr.afterCritical,result:So,impact:ma};if(!(!_e(pr.current.client.offset,Po)||!!So.combine)){ut(D({completed:As}));return}const bu=or({current:pr.current.client.offset,destination:Po,reason:Mr});ut(Y({newHomeClientOffset:Po,dropDuration:bu,completed:As}))};var vn=()=>({x:window.pageXOffset,y:window.pageYOffset});function Ln(Pe){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:ut=>{ut.target!==window&&ut.target!==window.document||Pe()}}}function _r({onWindowScroll:Pe}){function ut(){Pe(vn())}const Kt=U(ut),lr=Ln(Kt);let pr=T;function Mr(){return pr!==T}function ui(){Mr()&&je(),pr=X(window,[lr])}function Ai(){Mr()||je(),Kt.cancel(),pr(),pr=T}return{start:ui,stop:Ai,isActive:Mr}}const Br=Pe=>ot(Pe,"DROP_COMPLETE")||ot(Pe,"DROP_ANIMATE")||ot(Pe,"FLUSH"),Kr=Pe=>{const ut=_r({onWindowScroll:Kt=>{Pe.dispatch(Mi({newScroll:Kt}))}});return Kt=>lr=>{!ut.isActive()&&ot(lr,"INITIAL_PUBLISH")&&ut.start(),ut.isActive()&&Br(lr)&&ut.stop(),Kt(lr)}};var Jr=Pe=>{let ut=!1,Kt=!1;const lr=setTimeout(()=>{Kt=!0}),pr=Mr=>{ut||Kt||(ut=!0,Pe(Mr),clearTimeout(lr))};return pr.wasCalled=()=>ut,pr},ii=()=>{const Pe=[],ut=pr=>{const Mr=Pe.findIndex(Ai=>Ai.timerId===pr);Mr===-1&&je();const[ui]=Pe.splice(Mr,1);ui.callback()};return{add:pr=>{const Mr=setTimeout(()=>ut(Mr)),ui={timerId:Mr,callback:pr};Pe.push(ui)},flush:()=>{if(!Pe.length)return;const pr=[...Pe];Pe.length=0,pr.forEach(Mr=>{clearTimeout(Mr.timerId),Mr.callback()})}}};const le=(Pe,ut)=>Pe==null&&ut==null?!0:Pe==null||ut==null?!1:Pe.droppableId===ut.droppableId&&Pe.index===ut.index,Ae=(Pe,ut)=>Pe==null&&ut==null?!0:Pe==null||ut==null?!1:Pe.draggableId===ut.draggableId&&Pe.droppableId===ut.droppableId,Oe=(Pe,ut)=>{if(Pe===ut)return!0;const Kt=Pe.draggable.id===ut.draggable.id&&Pe.draggable.droppableId===ut.draggable.droppableId&&Pe.draggable.type===ut.draggable.type&&Pe.draggable.index===ut.draggable.index,lr=Pe.droppable.id===ut.droppable.id&&Pe.droppable.type===ut.droppable.type;return Kt&&lr},et=(Pe,ut)=>{Tr(),ut(),Nr()},Ot=(Pe,ut)=>({draggableId:Pe.draggable.id,type:Pe.droppable.type,source:{droppableId:Pe.droppable.id,index:Pe.draggable.index},mode:ut});function It(Pe,ut,Kt,lr){if(!Pe){Kt(lr(ut));return}const pr=Jr(Kt);Pe(ut,{announce:pr}),pr.wasCalled()||Kt(lr(ut))}var Mn=(Pe,ut)=>{const Kt=ii();let lr=null;const pr=(Wi,aa)=>{lr&&je(),et("onBeforeCapture",()=>{const Ta=Pe().onBeforeCapture;Ta&&Ta({draggableId:Wi,mode:aa})})},Mr=(Wi,aa)=>{lr&&je(),et("onBeforeDragStart",()=>{const Ta=Pe().onBeforeDragStart;Ta&&Ta(Ot(Wi,aa))})},ui=(Wi,aa)=>{lr&&je();const Ta=Ot(Wi,aa);lr={mode:aa,lastCritical:Wi,lastLocation:Ta.source,lastCombine:null},Kt.add(()=>{et("onDragStart",()=>It(Pe().onDragStart,Ta,ut,Tn.onDragStart))})},Ai=(Wi,aa)=>{const Ta=kn(aa),co=Jn(aa);lr||je();const So=!Oe(Wi,lr.lastCritical);So&&(lr.lastCritical=Wi);const Po=!le(lr.lastLocation,Ta);Po&&(lr.lastLocation=Ta);const As=!Ae(lr.lastCombine,co);if(As&&(lr.lastCombine=co),!So&&!Po&&!As)return;const Hs={...Ot(Wi,lr.mode),combine:co,destination:Ta};Kt.add(()=>{et("onDragUpdate",()=>It(Pe().onDragUpdate,Hs,ut,Tn.onDragUpdate))})},Xi=()=>{lr||je(),Kt.flush()},ca=Wi=>{lr||je(),lr=null,et("onDragEnd",()=>It(Pe().onDragEnd,Wi,ut,Tn.onDragEnd))};return{beforeCapture:pr,beforeStart:Mr,start:ui,update:Ai,flush:Xi,drop:ca,abort:()=>{if(!lr)return;const Wi={...Ot(lr.lastCritical,lr.mode),combine:null,destination:null,reason:"CANCEL"};ca(Wi)}}},mn=(Pe,ut)=>{const Kt=Mn(Pe,ut);return lr=>pr=>Mr=>{if(ot(Mr,"BEFORE_INITIAL_CAPTURE")){Kt.beforeCapture(Mr.payload.draggableId,Mr.payload.movementMode);return}if(ot(Mr,"INITIAL_PUBLISH")){const Ai=Mr.payload.critical;Kt.beforeStart(Ai,Mr.payload.movementMode),pr(Mr),Kt.start(Ai,Mr.payload.movementMode);return}if(ot(Mr,"DROP_COMPLETE")){const Ai=Mr.payload.completed.result;Kt.flush(),pr(Mr),Kt.drop(Ai);return}if(pr(Mr),ot(Mr,"FLUSH")){Kt.abort();return}const ui=lr.getState();ui.phase==="DRAGGING"&&Kt.update(ui.critical,ui.impact)}};const At=Pe=>ut=>Kt=>{if(!ot(Kt,"DROP_ANIMATION_FINISHED")){ut(Kt);return}const lr=Pe.getState();lr.phase!=="DROP_ANIMATING"&&je(),Pe.dispatch(D({completed:lr.completed}))},Ut=Pe=>{let ut=null,Kt=null;function lr(){Kt&&(cancelAnimationFrame(Kt),Kt=null),ut&&(ut(),ut=null)}return pr=>Mr=>{if((ot(Mr,"FLUSH")||ot(Mr,"DROP_COMPLETE")||ot(Mr,"DROP_ANIMATION_FINISHED"))&&lr(),pr(Mr),!ot(Mr,"DROP_ANIMATE"))return;const ui={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){Pe.getState().phase==="DROP_ANIMATING"&&Pe.dispatch(Ie())}};Kt=requestAnimationFrame(()=>{Kt=null,ut=X(window,[ui])})}};var jn=Pe=>()=>ut=>Kt=>{(ot(Kt,"DROP_COMPLETE")||ot(Kt,"FLUSH")||ot(Kt,"DROP_ANIMATE"))&&Pe.stopPublishing(),ut(Kt)},Jt=Pe=>{let ut=!1;return()=>Kt=>lr=>{if(ot(lr,"INITIAL_PUBLISH")){ut=!0,Pe.tryRecordFocus(lr.payload.critical.draggable.id),Kt(lr),Pe.tryRestoreFocusRecorded();return}if(Kt(lr),!!ut){if(ot(lr,"FLUSH")){ut=!1,Pe.tryRestoreFocusRecorded();return}if(ot(lr,"DROP_COMPLETE")){ut=!1;const pr=lr.payload.completed.result;pr.combine&&Pe.tryShiftRecord(pr.draggableId,pr.combine.draggableId),Pe.tryRestoreFocusRecorded()}}}};const dr=Pe=>ot(Pe,"DROP_COMPLETE")||ot(Pe,"DROP_ANIMATE")||ot(Pe,"FLUSH");var wr=Pe=>ut=>Kt=>lr=>{if(dr(lr)){Pe.stop(),Kt(lr);return}if(ot(lr,"INITIAL_PUBLISH")){Kt(lr);const pr=ut.getState();pr.phase!=="DRAGGING"&&je(),Pe.start(pr);return}Kt(lr),Pe.scroll(ut.getState())};const Hr=Pe=>ut=>Kt=>{if(ut(Kt),!ot(Kt,"PUBLISH_WHILE_DRAGGING"))return;const lr=Pe.getState();lr.phase==="DROP_PENDING"&&(lr.isWaiting||Pe.dispatch(P({reason:lr.reason})))},Ar=y.compose;var yi=({dimensionMarshal:Pe,focusMarshal:ut,styleMarshal:Kt,getResponders:lr,announce:pr,autoScroller:Mr})=>(0,y.createStore)(Ye,Ar((0,y.applyMiddleware)(kt(Kt),jn(Pe),dt(Pe),_n,At,Ut,Hr,wr(Mr),Kr,Jt(ut),mn(lr,pr))));const Rr=()=>({additions:{},removals:{},modified:{}});function si({registry:Pe,callbacks:ut}){let Kt=Rr(),lr=null;const pr=()=>{lr||(ut.collectionStarting(),lr=requestAnimationFrame(()=>{lr=null,Tr();const{additions:Xi,removals:ca,modified:ma}=Kt,Wi=Object.keys(Xi).map(co=>Pe.draggable.getById(co).getDimension(me)).sort((co,So)=>co.descriptor.index-So.descriptor.index),aa=Object.keys(ma).map(co=>{const Po=Pe.droppable.getById(co).callbacks.getScrollWhileDragging();return{droppableId:co,scroll:Po}}),Ta={additions:Wi,removals:Object.keys(ca),modified:aa};Kt=Rr(),Nr(),ut.publish(Ta)}))};return{add:Xi=>{const ca=Xi.descriptor.id;Kt.additions[ca]=Xi,Kt.modified[Xi.descriptor.droppableId]=!0,Kt.removals[ca]&&delete Kt.removals[ca],pr()},remove:Xi=>{const ca=Xi.descriptor;Kt.removals[ca.id]=!0,Kt.modified[ca.droppableId]=!0,Kt.additions[ca.id]&&delete Kt.additions[ca.id],pr()},stop:()=>{lr&&(cancelAnimationFrame(lr),lr=null,Kt=Rr())}}}var Si=({scrollHeight:Pe,scrollWidth:ut,height:Kt,width:lr})=>{const pr=Ee({x:ut,y:Pe},{x:lr,y:Kt});return{x:Math.max(0,pr.x),y:Math.max(0,pr.y)}},$i=()=>{const Pe=document.documentElement;return Pe||je(),Pe},Hi=()=>{const Pe=$i();return Si({scrollHeight:Pe.scrollHeight,scrollWidth:Pe.scrollWidth,width:Pe.clientWidth,height:Pe.clientHeight})},Oa=()=>{const Pe=vn(),ut=Hi(),Kt=Pe.y,lr=Pe.x,pr=$i(),Mr=pr.clientWidth,ui=pr.clientHeight,Ai=lr+Mr,Xi=Kt+ui;return{frame:p({top:Kt,left:lr,right:Ai,bottom:Xi}),scroll:{initial:Pe,current:Pe,max:ut,diff:{value:me,displacement:me}}}},Ma=({critical:Pe,scrollOptions:ut,registry:Kt})=>{Tr();const lr=Oa(),pr=lr.scroll.current,Mr=Pe.droppable,ui=Kt.droppable.getAllByType(Mr.type).map(ma=>ma.callbacks.getDimensionAndWatchScroll(pr,ut)),Ai=Kt.draggable.getAllByType(Pe.draggable.type).map(ma=>ma.getDimension(pr)),Xi={draggables:er(Ai),droppables:Wn(ui)};return Nr(),{dimensions:Xi,critical:Pe,viewport:lr}};function Ua(Pe,ut,Kt){return!(Kt.descriptor.id===ut.id||Kt.descriptor.type!==ut.type||Pe.droppable.getById(Kt.descriptor.droppableId).descriptor.mode!=="virtual")}var Xa=(Pe,ut)=>{let Kt=null;const lr=si({callbacks:{publish:ut.publishWhileDragging,collectionStarting:ut.collectionStarting},registry:Pe}),pr=(aa,Ta)=>{Pe.droppable.exists(aa)||je(),Kt&&ut.updateDroppableIsEnabled({id:aa,isEnabled:Ta})},Mr=(aa,Ta)=>{Kt&&(Pe.droppable.exists(aa)||je(),ut.updateDroppableIsCombineEnabled({id:aa,isCombineEnabled:Ta}))},ui=(aa,Ta)=>{Kt&&(Pe.droppable.exists(aa)||je(),ut.updateDroppableScroll({id:aa,newScroll:Ta}))},Ai=(aa,Ta)=>{Kt&&Pe.droppable.getById(aa).callbacks.scroll(Ta)},Xi=()=>{if(!Kt)return;lr.stop();const aa=Kt.critical.droppable;Pe.droppable.getAllByType(aa.type).forEach(Ta=>Ta.callbacks.dragStopped()),Kt.unsubscribe(),Kt=null},ca=aa=>{Kt||je();const Ta=Kt.critical.draggable;aa.type==="ADDITION"&&Ua(Pe,Ta,aa.value)&&lr.add(aa.value),aa.type==="REMOVAL"&&Ua(Pe,Ta,aa.value)&&lr.remove(aa.value)};return{updateDroppableIsEnabled:pr,updateDroppableIsCombineEnabled:Mr,scrollDroppable:Ai,updateDroppableScroll:ui,startPublishing:aa=>{Kt&&je();const Ta=Pe.draggable.getById(aa.draggableId),co=Pe.droppable.getById(Ta.descriptor.droppableId),So={draggable:Ta.descriptor,droppable:co.descriptor},Po=Pe.subscribe(ca);return Kt={critical:So,unsubscribe:Po},Ma({critical:So,registry:Pe,scrollOptions:aa.scrollOptions})},stopPublishing:Xi}},Na=(Pe,ut)=>Pe.phase==="IDLE"?!0:Pe.phase!=="DROP_ANIMATING"||Pe.completed.result.draggableId===ut?!1:Pe.completed.result.reason==="DROP",za=Pe=>{window.scrollBy(Pe.x,Pe.y)};const qa=Cn(Pe=>Fn(Pe).filter(ut=>!(!ut.isEnabled||!ut.frame))),no=(Pe,ut)=>qa(ut).find(lr=>(lr.frame||je(),Qn(lr.frame.pageMarginBox)(Pe)))||null;var wo=({center:Pe,destination:ut,droppables:Kt})=>{if(ut){const pr=Kt[ut];return pr.frame?pr:null}return no(Pe,Kt)};const go={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:Pe=>Pe**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Ka=(Pe,ut,Kt=()=>go)=>{const lr=Kt(),pr=Pe[ut.size]*lr.startFromPercentage,Mr=Pe[ut.size]*lr.maxScrollAtPercentage;return{startScrollingFrom:pr,maxScrollValueAt:Mr}},Ia=({startOfRange:Pe,endOfRange:ut,current:Kt})=>{const lr=ut-Pe;return lr===0?0:(Kt-Pe)/lr},Us=1,Vs=(Pe,ut,Kt=()=>go)=>{const lr=Kt();if(Pe>ut.startScrollingFrom)return 0;if(Pe<=ut.maxScrollValueAt)return lr.maxPixelScroll;if(Pe===ut.startScrollingFrom)return Us;const Mr=1-Ia({startOfRange:ut.maxScrollValueAt,endOfRange:ut.startScrollingFrom,current:Pe}),ui=lr.maxPixelScroll*lr.ease(Mr);return Math.ceil(ui)},Is=(Pe,ut,Kt)=>{const lr=Kt(),pr=lr.durationDampening.accelerateAt,Mr=lr.durationDampening.stopDampeningAt,ui=ut,Ai=Mr,ca=Date.now()-ui;if(ca>=Mr)return Pe;if(ca<pr)return Us;const ma=Ia({startOfRange:pr,endOfRange:Ai,current:ca}),Wi=Pe*lr.ease(ma);return Math.ceil(Wi)},uo=({distanceToEdge:Pe,thresholds:ut,dragStartTime:Kt,shouldUseTimeDampening:lr,getAutoScrollerOptions:pr})=>{const Mr=Vs(Pe,ut,pr);return Mr===0?0:lr?Math.max(Is(Mr,Kt,pr),Us):Mr},Ds=({container:Pe,distanceToEdges:ut,dragStartTime:Kt,axis:lr,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr})=>{const ui=Ka(Pe,lr,Mr);return ut[lr.end]<ut[lr.start]?uo({distanceToEdge:ut[lr.end],thresholds:ui,dragStartTime:Kt,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr}):-1*uo({distanceToEdge:ut[lr.start],thresholds:ui,dragStartTime:Kt,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr})},Js=({container:Pe,subject:ut,proposedScroll:Kt})=>{const lr=ut.height>Pe.height,pr=ut.width>Pe.width;return!pr&&!lr?Kt:pr&&lr?null:{x:pr?0:Kt.x,y:lr?0:Kt.y}};const eo=Et(Pe=>Pe===0?0:Pe);var uu=({dragStartTime:Pe,container:ut,subject:Kt,center:lr,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr})=>{const ui={top:lr.y-ut.top,right:ut.right-lr.x,bottom:ut.bottom-lr.y,left:lr.x-ut.left},Ai=Ds({container:ut,distanceToEdges:ui,dragStartTime:Pe,axis:ln,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr}),Xi=Ds({container:ut,distanceToEdges:ui,dragStartTime:Pe,axis:pn,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr}),ca=eo({x:Xi,y:Ai});if(_e(ca,me))return null;const ma=Js({container:ut,subject:Kt,proposedScroll:ca});return ma?_e(ma,me)?null:ma:null};const pa=Et(Pe=>Pe===0?0:Pe>0?1:-1),na=(()=>{const Pe=(ut,Kt)=>ut<0?ut:ut>Kt?ut-Kt:0;return({current:ut,max:Kt,change:lr})=>{const pr=ke(ut,lr),Mr={x:Pe(pr.x,Kt.x),y:Pe(pr.y,Kt.y)};return _e(Mr,me)?null:Mr}})(),Ui=({max:Pe,current:ut,change:Kt})=>{const lr={x:Math.max(ut.x,Pe.x),y:Math.max(ut.y,Pe.y)},pr=pa(Kt),Mr=na({max:lr,current:ut,change:pr});return!Mr||pr.x!==0&&Mr.x===0||pr.y!==0&&Mr.y===0},xe=(Pe,ut)=>Ui({current:Pe.scroll.current,max:Pe.scroll.max,change:ut}),Ce=(Pe,ut)=>{if(!xe(Pe,ut))return null;const Kt=Pe.scroll.max,lr=Pe.scroll.current;return na({current:lr,max:Kt,change:ut})},st=(Pe,ut)=>{const Kt=Pe.frame;return Kt?Ui({current:Kt.scroll.current,max:Kt.scroll.max,change:ut}):!1},gt=(Pe,ut)=>{const Kt=Pe.frame;return!Kt||!st(Pe,ut)?null:na({current:Kt.scroll.current,max:Kt.scroll.max,change:ut})};var Ht=({viewport:Pe,subject:ut,center:Kt,dragStartTime:lr,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr})=>{const ui=uu({dragStartTime:lr,container:Pe.frame,subject:ut,center:Kt,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr});return ui&&xe(Pe,ui)?ui:null},Hn=({droppable:Pe,subject:ut,center:Kt,dragStartTime:lr,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr})=>{const ui=Pe.frame;if(!ui)return null;const Ai=uu({dragStartTime:lr,container:ui.pageMarginBox,subject:ut,center:Kt,shouldUseTimeDampening:pr,getAutoScrollerOptions:Mr});return Ai&&st(Pe,Ai)?Ai:null},fr=({state:Pe,dragStartTime:ut,shouldUseTimeDampening:Kt,scrollWindow:lr,scrollDroppable:pr,getAutoScrollerOptions:Mr})=>{const ui=Pe.current.page.borderBoxCenter,Xi=Pe.dimensions.draggables[Pe.critical.draggable.id].page.marginBox;if(Pe.isWindowScrollAllowed){const Wi=Pe.viewport,aa=Ht({dragStartTime:ut,viewport:Wi,subject:Xi,center:ui,shouldUseTimeDampening:Kt,getAutoScrollerOptions:Mr});if(aa){lr(aa);return}}const ca=wo({center:ui,destination:nt(Pe.impact),droppables:Pe.dimensions.droppables});if(!ca)return;const ma=Hn({dragStartTime:ut,droppable:ca,subject:Xi,center:ui,shouldUseTimeDampening:Kt,getAutoScrollerOptions:Mr});ma&&pr(ca.descriptor.id,ma)},Zr=({scrollWindow:Pe,scrollDroppable:ut,getAutoScrollerOptions:Kt=()=>go})=>{const lr=U(Pe),pr=U(ut);let Mr=null;const ui=ca=>{Mr||je();const{shouldUseTimeDampening:ma,dragStartTime:Wi}=Mr;fr({state:ca,scrollWindow:lr,scrollDroppable:pr,dragStartTime:Wi,shouldUseTimeDampening:ma,getAutoScrollerOptions:Kt})};return{start:ca=>{Tr(),Mr&&je();const ma=Date.now();let Wi=!1;const aa=()=>{Wi=!0};fr({state:ca,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:aa,scrollDroppable:aa,getAutoScrollerOptions:Kt}),Mr={dragStartTime:ma,shouldUseTimeDampening:Wi},Nr(),Wi&&ui(ca)},stop:()=>{Mr&&(lr.cancel(),pr.cancel(),Mr=null)},scroll:ui}},gi=({move:Pe,scrollDroppable:ut,scrollWindow:Kt})=>{const lr=(Ai,Xi)=>{const ca=ke(Ai.current.client.selection,Xi);Pe({client:ca})},pr=(Ai,Xi)=>{if(!st(Ai,Xi))return Xi;const ca=gt(Ai,Xi);if(!ca)return ut(Ai.descriptor.id,Xi),null;const ma=Ee(Xi,ca);return ut(Ai.descriptor.id,ma),Ee(Xi,ma)},Mr=(Ai,Xi,ca)=>{if(!Ai||!xe(Xi,ca))return ca;const ma=Ce(Xi,ca);if(!ma)return Kt(ca),null;const Wi=Ee(ca,ma);return Kt(Wi),Ee(ca,Wi)};return Ai=>{const Xi=Ai.scrollJumpRequest;if(!Xi)return;const ca=nt(Ai.impact);ca||je();const ma=pr(Ai.dimensions.droppables[ca],Xi);if(!ma)return;const Wi=Ai.viewport,aa=Mr(Ai.isWindowScrollAllowed,Wi,ma);aa&&lr(Ai,aa)}},wt=({scrollDroppable:Pe,scrollWindow:ut,move:Kt,getAutoScrollerOptions:lr})=>{const pr=Zr({scrollWindow:ut,scrollDroppable:Pe,getAutoScrollerOptions:lr}),Mr=gi({move:Kt,scrollWindow:ut,scrollDroppable:Pe});return{scroll:Xi=>{if(!(lr().disabled||Xi.phase!=="DRAGGING")){if(Xi.movementMode==="FLUID"){pr.scroll(Xi);return}Xi.scrollJumpRequest&&Mr(Xi)}},start:pr.start,stop:pr.stop}};const cn="data-rfd",rr=(()=>{const Pe=`${cn}-drag-handle`;return{base:Pe,draggableId:`${Pe}-draggable-id`,contextId:`${Pe}-context-id`}})(),$n=(()=>{const Pe=`${cn}-draggable`;return{base:Pe,contextId:`${Pe}-context-id`,id:`${Pe}-id`}})(),Sr=(()=>{const Pe=`${cn}-droppable`;return{base:Pe,contextId:`${Pe}-context-id`,id:`${Pe}-id`}})(),fi={contextId:`${cn}-scroll-container-context-id`},Ci=Pe=>ut=>`[${ut}="${Pe}"]`,la=(Pe,ut)=>Pe.map(Kt=>{const lr=Kt.styles[ut];return lr?`${Kt.selector} { ${lr} }`:""}).join(" "),ya="pointer-events: none;";var _a=Pe=>{const ut=Ci(Pe),Kt=(()=>{const Ai=` cursor: -webkit-grab; cursor: grab; `;return{selector:ut(rr.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; `,resting:Ai,dragging:ya,dropAnimating:Ai}}})(),lr=(()=>{const Ai=` transition: ${ci.outOfTheWay}; `;return{selector:ut($n.contextId),styles:{dragging:Ai,dropAnimating:Ai,userCancel:Ai}}})(),pr={selector:ut(Sr.contextId),styles:{always:"overflow-anchor: none;"}},ui=[lr,Kt,pr,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; `}}];return{always:la(ui,"always"),resting:la(ui,"resting"),dragging:la(ui,"dragging"),dropAnimating:la(ui,"dropAnimating"),userCancel:la(ui,"userCancel")}};const Ga=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect,Pa=()=>{const Pe=document.querySelector("head");return Pe||je(),Pe},ja=Pe=>{const ut=document.createElement("style");return Pe&&ut.setAttribute("nonce",Pe),ut.type="text/css",ut};function Oo(Pe,ut){const Kt=Ct(()=>_a(Pe),[Pe]),lr=(0,l.useRef)(null),pr=(0,l.useRef)(null),Mr=Z(Cn(Wi=>{const aa=pr.current;aa||je(),aa.textContent=Wi}),[]),ui=Z(Wi=>{const aa=lr.current;aa||je(),aa.textContent=Wi},[]);Ga(()=>{!lr.current&&!pr.current||je();const Wi=ja(ut),aa=ja(ut);return lr.current=Wi,pr.current=aa,Wi.setAttribute(`${cn}-always`,Pe),aa.setAttribute(`${cn}-dynamic`,Pe),Pa().appendChild(Wi),Pa().appendChild(aa),ui(Kt.always),Mr(Kt.resting),()=>{const Ta=co=>{const So=co.current;So||je(),Pa().removeChild(So),co.current=null};Ta(lr),Ta(pr)}},[ut,ui,Mr,Kt.always,Kt.resting,Pe]);const Ai=Z(()=>Mr(Kt.dragging),[Mr,Kt.dragging]),Xi=Z(Wi=>{if(Wi==="DROP"){Mr(Kt.dropAnimating);return}Mr(Kt.userCancel)},[Mr,Kt.dropAnimating,Kt.userCancel]),ca=Z(()=>{pr.current&&Mr(Kt.resting)},[Mr,Kt.resting]);return Ct(()=>({dragging:Ai,dropping:Xi,resting:ca}),[Ai,Xi,ca])}function Do(Pe,ut){return Array.from(Pe.querySelectorAll(ut))}var fo=Pe=>Pe&&Pe.ownerDocument&&Pe.ownerDocument.defaultView?Pe.ownerDocument.defaultView:window;function Zo(Pe){return Pe instanceof fo(Pe).HTMLElement}function bs(Pe,ut){const Kt=`[${rr.contextId}="${Pe}"]`,lr=Do(document,Kt);if(!lr.length)return null;const pr=lr.find(Mr=>Mr.getAttribute(rr.draggableId)===ut);return!pr||!Zo(pr)?null:pr}function io(Pe){const ut=(0,l.useRef)({}),Kt=(0,l.useRef)(null),lr=(0,l.useRef)(null),pr=(0,l.useRef)(!1),Mr=Z(function(aa,Ta){const co={id:aa,focus:Ta};return ut.current[aa]=co,function(){const Po=ut.current;Po[aa]!==co&&delete Po[aa]}},[]),ui=Z(function(aa){const Ta=bs(Pe,aa);Ta&&Ta!==document.activeElement&&Ta.focus()},[Pe]),Ai=Z(function(aa,Ta){Kt.current===aa&&(Kt.current=Ta)},[]),Xi=Z(function(){lr.current||pr.current&&(lr.current=requestAnimationFrame(()=>{lr.current=null;const aa=Kt.current;aa&&ui(aa)}))},[ui]),ca=Z(function(aa){Kt.current=null;const Ta=document.activeElement;Ta&&Ta.getAttribute(rr.draggableId)===aa&&(Kt.current=aa)},[]);return Ga(()=>(pr.current=!0,function(){pr.current=!1;const aa=lr.current;aa&&cancelAnimationFrame(aa)}),[]),Ct(()=>({register:Mr,tryRecordFocus:ca,tryRestoreFocusRecorded:Xi,tryShiftRecord:Ai}),[Mr,ca,Xi,Ai])}function fs(){const Pe={draggables:{},droppables:{}},ut=[];function Kt(Wi){return ut.push(Wi),function(){const Ta=ut.indexOf(Wi);Ta!==-1&&ut.splice(Ta,1)}}function lr(Wi){ut.length&&ut.forEach(aa=>aa(Wi))}function pr(Wi){return Pe.draggables[Wi]||null}function Mr(Wi){const aa=pr(Wi);return aa||je(),aa}const ui={register:Wi=>{Pe.draggables[Wi.descriptor.id]=Wi,lr({type:"ADDITION",value:Wi})},update:(Wi,aa)=>{const Ta=Pe.draggables[aa.descriptor.id];Ta&&Ta.uniqueId===Wi.uniqueId&&(delete Pe.draggables[aa.descriptor.id],Pe.draggables[Wi.descriptor.id]=Wi)},unregister:Wi=>{const aa=Wi.descriptor.id,Ta=pr(aa);Ta&&Wi.uniqueId===Ta.uniqueId&&(delete Pe.draggables[aa],Pe.droppables[Wi.descriptor.droppableId]&&lr({type:"REMOVAL",value:Wi}))},getById:Mr,findById:pr,exists:Wi=>!!pr(Wi),getAllByType:Wi=>Object.values(Pe.draggables).filter(aa=>aa.descriptor.type===Wi)};function Ai(Wi){return Pe.droppables[Wi]||null}function Xi(Wi){const aa=Ai(Wi);return aa||je(),aa}const ca={register:Wi=>{Pe.droppables[Wi.descriptor.id]=Wi},unregister:Wi=>{const aa=Ai(Wi.descriptor.id);aa&&Wi.uniqueId===aa.uniqueId&&delete Pe.droppables[Wi.descriptor.id]},getById:Xi,findById:Ai,exists:Wi=>!!Ai(Wi),getAllByType:Wi=>Object.values(Pe.droppables).filter(aa=>aa.descriptor.type===Wi)};function ma(){Pe.draggables={},Pe.droppables={},ut.length=0}return{draggable:ui,droppable:ca,subscribe:Kt,clean:ma}}function yo(){const Pe=Ct(fs,[]);return(0,l.useEffect)(()=>function(){Pe.clean()},[Pe]),Pe}var lo=l.createContext(null),Ha=()=>{const Pe=document.body;return Pe||je(),Pe};const zo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},vs=Pe=>`rfd-announcement-${Pe}`;function Fs(Pe){const ut=Ct(()=>vs(Pe),[Pe]),Kt=(0,l.useRef)(null);return(0,l.useEffect)(function(){const Mr=document.createElement("div");return Kt.current=Mr,Mr.id=ut,Mr.setAttribute("aria-live","assertive"),Mr.setAttribute("aria-atomic","true"),$(Mr.style,zo),Ha().appendChild(Mr),function(){setTimeout(function(){const Xi=Ha();Xi.contains(Mr)&&Xi.removeChild(Mr),Mr===Kt.current&&(Kt.current=null)})}},[ut]),Z(pr=>{const Mr=Kt.current;if(Mr){Mr.textContent=pr;return}},[])}const Ms={separator:"::"};function to(Pe,ut=Ms){const Kt=l.useId();return Ct(()=>`${Pe}${ut.separator}${Kt}`,[ut.separator,Pe,Kt])}function Ho({contextId:Pe,uniqueId:ut}){return`rfd-hidden-text-${Pe}-${ut}`}function ls({contextId:Pe,text:ut}){const Kt=to("hidden-text",{separator:"-"}),lr=Ct(()=>Ho({contextId:Pe,uniqueId:Kt}),[Kt,Pe]);return(0,l.useEffect)(function(){const Mr=document.createElement("div");return Mr.id=lr,Mr.textContent=ut,Mr.style.display="none",Ha().appendChild(Mr),function(){const Ai=Ha();Ai.contains(Mr)&&Ai.removeChild(Mr)}},[lr,ut]),lr}var xo=l.createContext(null),$a={react:"^18.0.0 || ^19.0.0"};const oo=/(\d+)\.(\d+)\.(\d+)/,ro=Pe=>{const ut=oo.exec(Pe);ut==null&&je();const Kt=Number(ut[1]),lr=Number(ut[2]),pr=Number(ut[3]);return{major:Kt,minor:lr,patch:pr,raw:Pe}},Ls=(Pe,ut)=>ut.major>Pe.major?!0:ut.major<Pe.major?!1:ut.minor>Pe.minor?!0:ut.minor<Pe.minor?!1:ut.patch>=Pe.patch;var Ns=(Pe,ut)=>{const Kt=ro(Pe),lr=ro(ut);Ls(Kt,lr)};const qo=null;var Go=Pe=>{const ut=Pe.doctype;ut&&(ut.name.toLowerCase(),ut.publicId)};function gs(Pe){}function Bo(Pe,ut){}function tu(){Bo(()=>{Ns($a.react,l.version),Go(document)},[])}function vo(Pe){const ut=(0,l.useRef)(Pe);return(0,l.useEffect)(()=>{ut.current=Pe}),ut}function hu(){let Pe=null;function ut(){return!!Pe}function Kt(ui){return ui===Pe}function lr(ui){Pe&&je();const Ai={abandon:ui};return Pe=Ai,Ai}function pr(){Pe||je(),Pe=null}function Mr(){Pe&&(Pe.abandon(),pr())}return{isClaimed:ut,isActive:Kt,claim:lr,release:pr,tryAbandon:Mr}}function es(Pe){return Pe.phase==="IDLE"||Pe.phase==="DROP_ANIMATING"?!1:Pe.isDragging}const qu=9,lu=13,cu=27,gu=32,Jl=33,fc=34,uf=35,Bf=36,Ec=37,dc=38,Yc=39,$u=40,Fl={[lu]:!0,[qu]:!0};var wc=Pe=>{Fl[Pe.keyCode]&&Pe.preventDefault()};const ml=(()=>{const Pe="visibilitychange";return typeof document>"u"?Pe:[Pe,`ms${Pe}`,`webkit${Pe}`,`moz${Pe}`,`o${Pe}`].find(lr=>`on${lr}`in document)||Pe})(),jl=0,js=5;function Xo(Pe,ut){return Math.abs(ut.x-Pe.x)>=js||Math.abs(ut.y-Pe.y)>=js}const Ou={type:"IDLE"};function gl({cancel:Pe,completed:ut,getPhase:Kt,setPhase:lr}){return[{eventName:"mousemove",fn:pr=>{const{button:Mr,clientX:ui,clientY:Ai}=pr;if(Mr!==jl)return;const Xi={x:ui,y:Ai},ca=Kt();if(ca.type==="DRAGGING"){pr.preventDefault(),ca.actions.move(Xi);return}ca.type!=="PENDING"&&je();const ma=ca.point;if(!Xo(ma,Xi))return;pr.preventDefault();const Wi=ca.actions.fluidLift(Xi);lr({type:"DRAGGING",actions:Wi})}},{eventName:"mouseup",fn:pr=>{const Mr=Kt();if(Mr.type!=="DRAGGING"){Pe();return}pr.preventDefault(),Mr.actions.drop({shouldBlockNextClick:!0}),ut()}},{eventName:"mousedown",fn:pr=>{Kt().type==="DRAGGING"&&pr.preventDefault(),Pe()}},{eventName:"keydown",fn:pr=>{if(Kt().type==="PENDING"){Pe();return}if(pr.keyCode===cu){pr.preventDefault(),Pe();return}wc(pr)}},{eventName:"resize",fn:Pe},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{Kt().type==="PENDING"&&Pe()}},{eventName:"webkitmouseforcedown",fn:pr=>{const Mr=Kt();if(Mr.type==="IDLE"&&je(),Mr.actions.shouldRespectForcePress()){Pe();return}pr.preventDefault()}},{eventName:ml,fn:Pe}]}function Ol(Pe){const ut=(0,l.useRef)(Ou),Kt=(0,l.useRef)(T),lr=Ct(()=>({eventName:"mousedown",fn:function(Wi){if(Wi.defaultPrevented||Wi.button!==jl||Wi.ctrlKey||Wi.metaKey||Wi.shiftKey||Wi.altKey)return;const aa=Pe.findClosestDraggableId(Wi);if(!aa)return;const Ta=Pe.tryGetLock(aa,ui,{sourceEvent:Wi});if(!Ta)return;Wi.preventDefault();const co={x:Wi.clientX,y:Wi.clientY};Kt.current(),ca(Ta,co)}}),[Pe]),pr=Ct(()=>({eventName:"webkitmouseforcewillbegin",fn:ma=>{if(ma.defaultPrevented)return;const Wi=Pe.findClosestDraggableId(ma);if(!Wi)return;const aa=Pe.findOptionsForDraggable(Wi);aa&&(aa.shouldRespectForcePress||Pe.canGetLock(Wi)&&ma.preventDefault())}}),[Pe]),Mr=Z(function(){const Wi={passive:!1,capture:!0};Kt.current=X(window,[pr,lr],Wi)},[pr,lr]),ui=Z(()=>{ut.current.type!=="IDLE"&&(ut.current=Ou,Kt.current(),Mr())},[Mr]),Ai=Z(()=>{const ma=ut.current;ui(),ma.type==="DRAGGING"&&ma.actions.cancel({shouldBlockNextClick:!0}),ma.type==="PENDING"&&ma.actions.abort()},[ui]),Xi=Z(function(){const Wi={capture:!0,passive:!1},aa=gl({cancel:Ai,completed:ui,getPhase:()=>ut.current,setPhase:Ta=>{ut.current=Ta}});Kt.current=X(window,aa,Wi)},[Ai,ui]),ca=Z(function(Wi,aa){ut.current.type!=="IDLE"&&je(),ut.current={type:"PENDING",point:aa,actions:Wi},Xi()},[Xi]);Ga(function(){return Mr(),function(){Kt.current()}},[Mr])}function Mu(){}const hc={[fc]:!0,[Jl]:!0,[Bf]:!0,[uf]:!0};function xc(Pe,ut){function Kt(){ut(),Pe.cancel()}function lr(){ut(),Pe.drop()}return[{eventName:"keydown",fn:pr=>{if(pr.keyCode===cu){pr.preventDefault(),Kt();return}if(pr.keyCode===gu){pr.preventDefault(),lr();return}if(pr.keyCode===$u){pr.preventDefault(),Pe.moveDown();return}if(pr.keyCode===dc){pr.preventDefault(),Pe.moveUp();return}if(pr.keyCode===Yc){pr.preventDefault(),Pe.moveRight();return}if(pr.keyCode===Ec){pr.preventDefault(),Pe.moveLeft();return}if(hc[pr.keyCode]){pr.preventDefault();return}wc(pr)}},{eventName:"mousedown",fn:Kt},{eventName:"mouseup",fn:Kt},{eventName:"click",fn:Kt},{eventName:"touchstart",fn:Kt},{eventName:"resize",fn:Kt},{eventName:"wheel",fn:Kt,options:{passive:!0}},{eventName:ml,fn:Kt}]}function Zl(Pe){const ut=(0,l.useRef)(Mu),Kt=Ct(()=>({eventName:"keydown",fn:function(Mr){if(Mr.defaultPrevented||Mr.keyCode!==gu)return;const ui=Pe.findClosestDraggableId(Mr);if(!ui)return;const Ai=Pe.tryGetLock(ui,ma,{sourceEvent:Mr});if(!Ai)return;Mr.preventDefault();let Xi=!0;const ca=Ai.snapLift();ut.current();function ma(){Xi||je(),Xi=!1,ut.current(),lr()}ut.current=X(window,xc(ca,ma),{capture:!0,passive:!1})}}),[Pe]),lr=Z(function(){const Mr={passive:!1,capture:!0};ut.current=X(window,[Kt],Mr)},[Kt]);Ga(function(){return lr(),function(){ut.current()}},[lr])}const Bl={type:"IDLE"},Tu=120,ac=.15;function Ju({cancel:Pe,getPhase:ut}){return[{eventName:"orientationchange",fn:Pe},{eventName:"resize",fn:Pe},{eventName:"contextmenu",fn:Kt=>{Kt.preventDefault()}},{eventName:"keydown",fn:Kt=>{if(ut().type!=="DRAGGING"){Pe();return}Kt.keyCode===cu&&Kt.preventDefault(),Pe()}},{eventName:ml,fn:Pe}]}function $f({cancel:Pe,completed:ut,getPhase:Kt}){return[{eventName:"touchmove",options:{capture:!1},fn:lr=>{const pr=Kt();if(pr.type!=="DRAGGING"){Pe();return}pr.hasMoved=!0;const{clientX:Mr,clientY:ui}=lr.touches[0],Ai={x:Mr,y:ui};lr.preventDefault(),pr.actions.move(Ai)}},{eventName:"touchend",fn:lr=>{const pr=Kt();if(pr.type!=="DRAGGING"){Pe();return}lr.preventDefault(),pr.actions.drop({shouldBlockNextClick:!0}),ut()}},{eventName:"touchcancel",fn:lr=>{if(Kt().type!=="DRAGGING"){Pe();return}lr.preventDefault(),Pe()}},{eventName:"touchforcechange",fn:lr=>{const pr=Kt();pr.type==="IDLE"&&je();const Mr=lr.touches[0];if(!Mr||!(Mr.force>=ac))return;const Ai=pr.actions.shouldRespectForcePress();if(pr.type==="PENDING"){Ai&&Pe();return}if(Ai){if(pr.hasMoved){lr.preventDefault();return}Pe();return}lr.preventDefault()}},{eventName:ml,fn:Pe}]}function lf(Pe){const ut=(0,l.useRef)(Bl),Kt=(0,l.useRef)(T),lr=Z(function(){return ut.current},[]),pr=Z(function(Ta){ut.current=Ta},[]),Mr=Ct(()=>({eventName:"touchstart",fn:function(Ta){if(Ta.defaultPrevented)return;const co=Pe.findClosestDraggableId(Ta);if(!co)return;const So=Pe.tryGetLock(co,Ai,{sourceEvent:Ta});if(!So)return;const Po=Ta.touches[0],{clientX:As,clientY:Hs}=Po,bu={x:As,y:Hs};Kt.current(),Wi(So,bu)}}),[Pe]),ui=Z(function(){const Ta={capture:!0,passive:!1};Kt.current=X(window,[Mr],Ta)},[Mr]),Ai=Z(()=>{const aa=ut.current;aa.type!=="IDLE"&&(aa.type==="PENDING"&&clearTimeout(aa.longPressTimerId),pr(Bl),Kt.current(),ui())},[ui,pr]),Xi=Z(()=>{const aa=ut.current;Ai(),aa.type==="DRAGGING"&&aa.actions.cancel({shouldBlockNextClick:!0}),aa.type==="PENDING"&&aa.actions.abort()},[Ai]),ca=Z(function(){const Ta={capture:!0,passive:!1},co={cancel:Xi,completed:Ai,getPhase:lr},So=X(window,$f(co),Ta),Po=X(window,Ju(co),Ta);Kt.current=function(){So(),Po()}},[Xi,lr,Ai]),ma=Z(function(){const Ta=lr();Ta.type!=="PENDING"&&je();const co=Ta.actions.fluidLift(Ta.point);pr({type:"DRAGGING",actions:co,hasMoved:!1})},[lr,pr]),Wi=Z(function(Ta,co){lr().type!=="IDLE"&&je();const So=setTimeout(ma,Tu);pr({type:"PENDING",point:co,actions:Ta,longPressTimerId:So}),ca()},[ca,lr,pr,ma]);Ga(function(){return ui(),function(){Kt.current();const co=lr();co.type==="PENDING"&&(clearTimeout(co.longPressTimerId),pr(Bl))}},[lr,ui,pr]),Ga(function(){return X(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}function Cc(Pe){}const wf=["input","button","textarea","select","option","optgroup","video","audio"];function Il(Pe,ut){if(ut==null)return!1;if(wf.includes(ut.tagName.toLowerCase()))return!0;const lr=ut.getAttribute("contenteditable");return lr==="true"||lr===""?!0:ut===Pe?!1:Il(Pe,ut.parentElement)}function id(Pe,ut){const Kt=ut.target;return Zo(Kt)?Il(Pe,Kt):!1}var $l=Pe=>p(Pe.getBoundingClientRect()).center;function ad(Pe){return Pe instanceof fo(Pe).Element}const Od=(()=>{const Pe="matches";return typeof document>"u"?Pe:[Pe,"msMatchesSelector","webkitMatchesSelector"].find(lr=>lr in Element.prototype)||Pe})();function Td(Pe,ut){return Pe==null?null:Pe[Od](ut)?Pe:Td(Pe.parentElement,ut)}function Ad(Pe,ut){return Pe.closest?Pe.closest(ut):Td(Pe,ut)}function Uh(Pe){return`[${rr.contextId}="${Pe}"]`}function xf(Pe,ut){const Kt=ut.target;if(!ad(Kt))return null;const lr=Uh(Pe),pr=Ad(Kt,lr);return!pr||!Zo(pr)?null:pr}function Dl(Pe,ut){const Kt=xf(Pe,ut);return Kt?Kt.getAttribute(rr.draggableId):null}function $c(Pe,ut){const Kt=`[${$n.contextId}="${Pe}"]`,pr=Do(document,Kt).find(Mr=>Mr.getAttribute($n.id)===ut);return!pr||!Zo(pr)?null:pr}function Jc(Pe){Pe.preventDefault()}function cf({expected:Pe,phase:ut,isLockActive:Kt,shouldWarn:lr}){return!(!Kt()||Pe!==ut)}function rl({lockAPI:Pe,store:ut,registry:Kt,draggableId:lr}){if(Pe.isClaimed())return!1;const pr=Kt.draggable.findById(lr);return!(!pr||!pr.options.isEnabled||!Na(ut.getState(),lr))}function od({lockAPI:Pe,contextId:ut,store:Kt,registry:lr,draggableId:pr,forceSensorStop:Mr,sourceEvent:ui}){if(!rl({lockAPI:Pe,store:Kt,registry:lr,draggableId:pr}))return null;const Xi=lr.draggable.getById(pr),ca=$c(ut,Xi.descriptor.id);if(!ca||ui&&!Xi.options.canDragInteractiveElements&&id(ca,ui))return null;const ma=Pe.claim(Mr||T);let Wi="PRE_DRAG";function aa(){return Xi.options.shouldRespectForcePress}function Ta(){return Pe.isActive(ma)}function co(iu,au){cf({expected:iu,phase:Wi,isLockActive:Ta,shouldWarn:!0})&&Kt.dispatch(au())}const So=co.bind(null,"DRAGGING");function Po(iu){function au(){Pe.release(),Wi="COMPLETED"}Wi!=="PRE_DRAG"&&(au(),je()),Kt.dispatch(an(iu.liftActionArgs)),Wi="DRAGGING";function bl(Nu,Ac={shouldBlockNextClick:!1}){if(iu.cleanup(),Ac.shouldBlockNextClick){const Al=X(window,[{eventName:"click",fn:Jc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Al)}au(),Kt.dispatch(P({reason:Nu}))}return{isActive:()=>cf({expected:"DRAGGING",phase:Wi,isLockActive:Ta,shouldWarn:!1}),shouldRespectForcePress:aa,drop:Nu=>bl("DROP",Nu),cancel:Nu=>bl("CANCEL",Nu),...iu.actions}}function As(iu){const au=U(Nu=>{So(()=>vi({client:Nu}))});return{...Po({liftActionArgs:{id:pr,clientSelection:iu,movementMode:"FLUID"},cleanup:()=>au.cancel(),actions:{move:au}}),move:au}}function Hs(){const iu={moveUp:()=>So(Yi),moveRight:()=>So(Sa),moveDown:()=>So(ua),moveLeft:()=>So(Xt)};return Po({liftActionArgs:{id:pr,clientSelection:$l(ca),movementMode:"SNAP"},cleanup:T,actions:iu})}function bu(){cf({expected:"PRE_DRAG",phase:Wi,isLockActive:Ta,shouldWarn:!0})&&Pe.release()}return{isActive:()=>cf({expected:"PRE_DRAG",phase:Wi,isLockActive:Ta,shouldWarn:!1}),shouldRespectForcePress:aa,fluidLift:As,snapLift:Hs,abort:bu}}const Ul=[Ol,Zl,lf];function Kd({contextId:Pe,store:ut,registry:Kt,customSensors:lr,enableDefaultSensors:pr}){const Mr=[...pr?Ul:[],...lr||[]],ui=(0,l.useState)(()=>hu())[0],Ai=Z(function(Po,As){es(Po)&&!es(As)&&ui.tryAbandon()},[ui]);Ga(function(){let Po=ut.getState();return ut.subscribe(()=>{const Hs=ut.getState();Ai(Po,Hs),Po=Hs})},[ui,ut,Ai]),Ga(()=>ui.tryAbandon,[ui.tryAbandon]);const Xi=Z(So=>rl({lockAPI:ui,registry:Kt,store:ut,draggableId:So}),[ui,Kt,ut]),ca=Z((So,Po,As)=>od({lockAPI:ui,registry:Kt,contextId:Pe,store:ut,draggableId:So,forceSensorStop:Po||null,sourceEvent:As&&As.sourceEvent?As.sourceEvent:null}),[Pe,ui,Kt,ut]),ma=Z(So=>Dl(Pe,So),[Pe]),Wi=Z(So=>{const Po=Kt.draggable.findById(So);return Po?Po.options:null},[Kt.draggable]),aa=Z(function(){ui.isClaimed()&&(ui.tryAbandon(),ut.getState().phase!=="IDLE"&&ut.dispatch(V()))},[ui,ut]),Ta=Z(()=>ui.isClaimed(),[ui]),co=Ct(()=>({canGetLock:Xi,tryGetLock:ca,findClosestDraggableId:ma,findOptionsForDraggable:Wi,tryReleaseLock:aa,isLockClaimed:Ta}),[Xi,ca,ma,Wi,aa,Ta]);Cc(Mr);for(let So=0;So<Mr.length;So++)Mr[So](co)}const Cf=Pe=>({onBeforeCapture:ut=>{const Kt=()=>{Pe.onBeforeCapture&&Pe.onBeforeCapture(ut)};(0,g.flushSync)(Kt)},onBeforeDragStart:Pe.onBeforeDragStart,onDragStart:Pe.onDragStart,onDragEnd:Pe.onDragEnd,onDragUpdate:Pe.onDragUpdate}),Vh=Pe=>({...go,...Pe.autoScrollerOptions,durationDampening:{...go.durationDampening,...Pe.autoScrollerOptions}});function pu(Pe){return Pe.current||je(),Pe.current}function Xl(Pe){const{contextId:ut,setCallbacks:Kt,sensors:lr,nonce:pr,dragHandleUsageInstructions:Mr}=Pe,ui=(0,l.useRef)(null);tu();const Ai=vo(Pe),Xi=Z(()=>Cf(Ai.current),[Ai]),ca=Z(()=>Vh(Ai.current),[Ai]),ma=Fs(ut),Wi=ls({contextId:ut,text:Mr}),aa=Oo(ut,pr),Ta=Z(Al=>{pu(ui).dispatch(Al)},[]),co=Ct(()=>(0,y.bindActionCreators)({publishWhileDragging:vr,updateDroppableScroll:Fr,updateDroppableIsEnabled:qr,updateDroppableIsCombineEnabled:jr,collectionStarting:$r},Ta),[Ta]),So=yo(),Po=Ct(()=>Xa(So,co),[So,co]),As=Ct(()=>wt({scrollWindow:za,scrollDroppable:Po.scrollDroppable,getAutoScrollerOptions:ca,...(0,y.bindActionCreators)({move:vi},Ta)}),[Po.scrollDroppable,Ta,ca]),Hs=io(ut),bu=Ct(()=>yi({announce:ma,autoScroller:As,dimensionMarshal:Po,focusMarshal:Hs,getResponders:Xi,styleMarshal:aa}),[ma,As,Po,Hs,Xi,aa]);ui.current=bu;const Zs=Z(()=>{const Al=pu(ui);Al.getState().phase!=="IDLE"&&Al.dispatch(V())},[]),iu=Z(()=>{const Al=pu(ui).getState();return Al.phase==="DROP_ANIMATING"?!0:Al.phase==="IDLE"?!1:Al.isDragging},[]),au=Ct(()=>({isDragging:iu,tryAbort:Zs}),[iu,Zs]);Kt(au);const bl=Z(Al=>Na(pu(ui).getState(),Al),[]),Nu=Z(()=>En(pu(ui).getState()),[]),Ac=Ct(()=>({marshal:Po,focus:Hs,contextId:ut,canLift:bl,isMovementAllowed:Nu,dragHandleUsageInstructionsId:Wi,registry:So}),[ut,Po,Wi,Hs,bl,Nu,So]);return Kd({contextId:ut,store:bu,registry:So,customSensors:lr||null,enableDefaultSensors:Pe.enableDefaultSensors!==!1}),(0,l.useEffect)(()=>Zs,[Zs]),l.createElement(xo.Provider,{value:Ac},l.createElement(x.Provider,{context:lo,store:bu},Pe.children))}function Zu(){return l.useId()}function ff(Pe){const ut=Zu(),Kt=Pe.dragHandleUsageInstructions||Tn.dragHandleUsageInstructions;return l.createElement(yt,null,lr=>l.createElement(Xl,{nonce:Pe.nonce,contextId:ut,setCallbacks:lr,dragHandleUsageInstructions:Kt,enableDefaultSensors:Pe.enableDefaultSensors,sensors:Pe.sensors,onBeforeCapture:Pe.onBeforeCapture,onBeforeDragStart:Pe.onBeforeDragStart,onDragStart:Pe.onDragStart,onDragUpdate:Pe.onDragUpdate,onDragEnd:Pe.onDragEnd,autoScrollerOptions:Pe.autoScrollerOptions},Pe.children))}const Of={dragging:5e3,dropAnimating:4500},Zc=(Pe,ut)=>ut?ci.drop(ut.duration):Pe?ci.snap:ci.fluid,cl=(Pe,ut)=>{if(Pe)return ut?Vn.opacity.drop:Vn.opacity.combining},Eu=Pe=>Pe.forceShouldAnimate!=null?Pe.forceShouldAnimate:Pe.mode==="SNAP";function il(Pe){const Kt=Pe.dimension.client,{offset:lr,combineWith:pr,dropping:Mr}=Pe,ui=!!pr,Ai=Eu(Pe),Xi=!!Mr,ca=Xi?Ti.drop(lr,ui):Ti.moveTo(lr);return{position:"fixed",top:Kt.marginBox.top,left:Kt.marginBox.left,boxSizing:"border-box",width:Kt.borderBox.width,height:Kt.borderBox.height,transition:Zc(Ai,Mr),transform:ca,opacity:cl(ui,Xi),zIndex:Xi?Of.dropAnimating:Of.dragging,pointerEvents:"none"}}function sd(Pe){return{transform:Ti.moveTo(Pe.offset),transition:Pe.shouldAnimateDisplacement?void 0:"none"}}function wu(Pe){return Pe.type==="DRAGGING"?il(Pe):sd(Pe)}function Uf(Pe,ut,Kt=me){const lr=window.getComputedStyle(ut),pr=ut.getBoundingClientRect(),Mr=L(pr,lr),ui=C(Mr,Kt),Ai={client:Mr,tagName:ut.tagName.toLowerCase(),display:lr.display},Xi={x:Mr.marginBox.width,y:Mr.marginBox.height};return{descriptor:Pe,placeholder:Ai,displaceBy:Xi,client:Mr,page:ui}}function sh(Pe){const ut=to("draggable"),{descriptor:Kt,registry:lr,getDraggableRef:pr,canDragInteractiveElements:Mr,shouldRespectForcePress:ui,isEnabled:Ai}=Pe,Xi=Ct(()=>({canDragInteractiveElements:Mr,shouldRespectForcePress:ui,isEnabled:Ai}),[Mr,Ai,ui]),ca=Z(Ta=>{const co=pr();return co||je(),Uf(Kt,co,Ta)},[Kt,pr]),ma=Ct(()=>({uniqueId:ut,descriptor:Kt,options:Xi,getDimension:ca}),[Kt,ca,Xi,ut]),Wi=(0,l.useRef)(ma),aa=(0,l.useRef)(!0);Ga(()=>(lr.draggable.register(Wi.current),()=>lr.draggable.unregister(Wi.current)),[lr.draggable]),Ga(()=>{if(aa.current){aa.current=!1;return}const Ta=Wi.current;Wi.current=ma,lr.draggable.update(ma,Ta)},[ma,lr.draggable])}var oc=l.createContext(null);function ru(Pe){Pe&&Zo(Pe)||je()}function Tf(Pe,ut,Kt){Bo(()=>{function lr(Mr){return`Draggable[id: ${Mr}]: `}const pr=Pe.draggableId;pr||je(!1),typeof pr!="string"&&je(!1),Number.isInteger(Pe.index)||je(!1),Pe.mapped.type!=="DRAGGING"&&(ru(Kt()),Pe.isEnabled&&(bs(ut,pr)||je(!1)))})}function Oc(Pe){}function df(Pe){const ut=(0,l.useContext)(Pe);return ut||je(),ut}function ud(Pe){Pe.preventDefault()}const Tl=Pe=>{const ut=(0,l.useRef)(null),Kt=Z((au=null)=>{ut.current=au},[]),lr=Z(()=>ut.current,[]),{contextId:pr,dragHandleUsageInstructionsId:Mr,registry:ui}=df(xo),{type:Ai,droppableId:Xi}=df(oc),ca=Ct(()=>({id:Pe.draggableId,index:Pe.index,type:Ai,droppableId:Xi}),[Pe.draggableId,Pe.index,Ai,Xi]),{children:ma,draggableId:Wi,isEnabled:aa,shouldRespectForcePress:Ta,canDragInteractiveElements:co,isClone:So,mapped:Po,dropAnimationFinished:As}=Pe;if(Tf(Pe,pr,lr),Oc(So),!So){const au=Ct(()=>({descriptor:ca,registry:ui,getDraggableRef:lr,canDragInteractiveElements:co,shouldRespectForcePress:Ta,isEnabled:aa}),[ca,ui,lr,co,Ta,aa]);sh(au)}const Hs=Ct(()=>aa?{tabIndex:0,role:"button","aria-describedby":Mr,"data-rfd-drag-handle-draggable-id":Wi,"data-rfd-drag-handle-context-id":pr,draggable:!1,onDragStart:ud}:null,[pr,Mr,Wi,aa]),bu=Z(au=>{Po.type==="DRAGGING"&&Po.dropping&&au.propertyName==="transform"&&(0,g.flushSync)(As)},[As,Po]),Zs=Ct(()=>{const au=wu(Po),bl=Po.type==="DRAGGING"&&Po.dropping?bu:void 0;return{innerRef:Kt,draggableProps:{"data-rfd-draggable-context-id":pr,"data-rfd-draggable-id":Wi,style:au,onTransitionEnd:bl},dragHandleProps:Hs}},[pr,Hs,Wi,Po,bu,Kt]),iu=Ct(()=>({draggableId:ca.id,type:ca.type,source:{index:ca.index,droppableId:ca.droppableId}}),[ca.droppableId,ca.id,ca.index,ca.type]);return l.createElement(l.Fragment,null,ma(Zs,Po.snapshot,iu))};var as=(Pe,ut)=>Pe===ut,nu=Pe=>{const{combine:ut,destination:Kt}=Pe;return Kt?Kt.droppableId:ut?ut.droppableId:null};const Xu=Pe=>Pe.combine?Pe.combine.draggableId:null,Ql=Pe=>Pe.at&&Pe.at.type==="COMBINE"?Pe.at.combine.draggableId:null;function Af(){const Pe=Cn((pr,Mr)=>({x:pr,y:Mr})),ut=Cn((pr,Mr,ui=null,Ai=null,Xi=null)=>({isDragging:!0,isClone:Mr,isDropAnimating:!!Xi,dropAnimation:Xi,mode:pr,draggingOver:ui,combineWith:Ai,combineTargetFor:null})),Kt=Cn((pr,Mr,ui,Ai,Xi=null,ca=null,ma=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:Xi,combineWith:ca,mode:Mr,offset:pr,dimension:ui,forceShouldAnimate:ma,snapshot:ut(Mr,Ai,Xi,ca,null)}}));return(pr,Mr)=>{if(es(pr)){if(pr.critical.draggable.id!==Mr.draggableId)return null;const ui=pr.current.client.offset,Ai=pr.dimensions.draggables[Mr.draggableId],Xi=nt(pr.impact),ca=Ql(pr.impact),ma=pr.forceShouldAnimate;return Kt(Pe(ui.x,ui.y),pr.movementMode,Ai,Mr.isClone,Xi,ca,ma)}if(pr.phase==="DROP_ANIMATING"){const ui=pr.completed;if(ui.result.draggableId!==Mr.draggableId)return null;const Ai=Mr.isClone,Xi=pr.dimensions.draggables[Mr.draggableId],ca=ui.result,ma=ca.mode,Wi=nu(ca),aa=Xu(ca),co={duration:pr.dropDuration,curve:dn.drop,moveTo:pr.newHomeClientOffset,opacity:aa?Vn.opacity.drop:null,scale:aa?Vn.scale.drop:null};return{mapped:{type:"DRAGGING",offset:pr.newHomeClientOffset,dimension:Xi,dropping:co,draggingOver:Wi,combineWith:aa,mode:ma,forceShouldAnimate:null,snapshot:ut(ma,Ai,Wi,aa,co)}}}return null}}function Rf(Pe=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Pe,combineWith:null}}const ku={mapped:{type:"SECONDARY",offset:me,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Rf(null)}};function Oh(){const Pe=Cn((ui,Ai)=>({x:ui,y:Ai})),ut=Cn(Rf),Kt=Cn((ui,Ai=null,Xi)=>({mapped:{type:"SECONDARY",offset:ui,combineTargetFor:Ai,shouldAnimateDisplacement:Xi,snapshot:ut(Ai)}})),lr=ui=>ui?Kt(me,ui,!0):null,pr=(ui,Ai,Xi,ca)=>{const ma=Xi.displaced.visible[ui],Wi=!!(ca.inVirtualList&&ca.effected[ui]),aa=Jn(Xi),Ta=aa&&aa.draggableId===ui?Ai:null;if(!ma){if(!Wi)return lr(Ta);if(Xi.displaced.invisible[ui])return null;const Po=ge(ca.displacedBy.point),As=Pe(Po.x,Po.y);return Kt(As,Ta,!0)}if(Wi)return lr(Ta);const co=Xi.displacedBy.point,So=Pe(co.x,co.y);return Kt(So,Ta,ma.shouldAnimate)};return(ui,Ai)=>{if(es(ui))return ui.critical.draggable.id===Ai.draggableId?null:pr(Ai.draggableId,ui.critical.draggable.id,ui.impact,ui.afterCritical);if(ui.phase==="DROP_ANIMATING"){const Xi=ui.completed;return Xi.result.draggableId===Ai.draggableId?null:pr(Ai.draggableId,Xi.result.draggableId,Xi.impact,Xi.afterCritical)}return null}}const zh=()=>{const Pe=Af(),ut=Oh();return(lr,pr)=>Pe(lr,pr)||ut(lr,pr)||ku},el={dropAnimationFinished:Ie},Vf=(0,x.connect)(zh,el,null,{context:lo,areStatePropsEqual:as})(Tl);function Xc(Pe){return df(oc).isUsingCloneFor===Pe.draggableId&&!Pe.isClone?null:l.createElement(Vf,Pe)}function Uc(Pe){const ut=typeof Pe.isDragDisabled=="boolean"?!Pe.isDragDisabled:!0,Kt=!!Pe.disableInteractiveElementBlocking,lr=!!Pe.shouldRespectForcePress;return l.createElement(Xc,$({},Pe,{isClone:!1,isEnabled:ut,canDragInteractiveElements:Kt,shouldRespectForcePress:lr}))}const bo=Pe=>ut=>Pe===ut,zf=bo("scroll"),sc=bo("auto"),Wf=bo("visible"),Gf=(Pe,ut)=>ut(Pe.overflowX)||ut(Pe.overflowY),Uu=(Pe,ut)=>ut(Pe.overflowX)&&ut(Pe.overflowY),ld=Pe=>{const ut=window.getComputedStyle(Pe),Kt={overflowX:ut.overflowX,overflowY:ut.overflowY};return Gf(Kt,zf)||Gf(Kt,sc)},uh=()=>!1,lh=Pe=>Pe==null?null:Pe===document.body?uh()?Pe:null:Pe===document.documentElement?null:ld(Pe)?Pe:lh(Pe.parentElement);var ch=Pe=>{!Pe||lh(Pe.parentElement)},Tc=Pe=>({x:Pe.scrollLeft,y:Pe.scrollTop});const qs=Pe=>Pe?window.getComputedStyle(Pe).position==="fixed"?!0:qs(Pe.parentElement):!1;var Rd=Pe=>{const ut=lh(Pe),Kt=qs(Pe);return{closestScrollable:ut,isFixedOnPage:Kt}},Hf=({descriptor:Pe,isEnabled:ut,isCombineEnabled:Kt,isFixedOnPage:lr,direction:pr,client:Mr,page:ui,closest:Ai})=>{const Xi=(()=>{if(!Ai)return null;const{scrollSize:aa,client:Ta}=Ai,co=Si({scrollHeight:aa.scrollHeight,scrollWidth:aa.scrollWidth,height:Ta.paddingBox.height,width:Ta.paddingBox.width});return{pageMarginBox:Ai.page.marginBox,frameClient:Ta,scrollSize:aa,shouldClipSubject:Ai.shouldClipSubject,scroll:{initial:Ai.scroll,current:Ai.scroll,max:co,diff:{value:me,displacement:me}}}})(),ca=pr==="vertical"?ln:pn,ma=on({page:ui,withPlaceholder:null,axis:ca,frame:Xi});return{descriptor:Pe,isCombineEnabled:Kt,isFixedOnPage:lr,axis:ca,isEnabled:ut,client:Mr,page:ui,frame:Xi,subject:ma}};const Yd=(Pe,ut)=>{const Kt=j(Pe);if(!ut||Pe!==ut)return Kt;const lr=Kt.paddingBox.top-ut.scrollTop,pr=Kt.paddingBox.left-ut.scrollLeft,Mr=lr+ut.scrollHeight,ui=pr+ut.scrollWidth,Xi=h({top:lr,right:ui,bottom:Mr,left:pr},Kt.border);return S({borderBox:Xi,margin:Kt.margin,border:Kt.border,padding:Kt.padding})};var Qc=({ref:Pe,descriptor:ut,env:Kt,windowScroll:lr,direction:pr,isDropDisabled:Mr,isCombineEnabled:ui,shouldClipSubject:Ai})=>{const Xi=Kt.closestScrollable,ca=Yd(Pe,Xi),ma=C(ca,lr),Wi=(()=>{if(!Xi)return null;const Ta=j(Xi),co={scrollHeight:Xi.scrollHeight,scrollWidth:Xi.scrollWidth};return{client:Ta,page:C(Ta,lr),scroll:Tc(Xi),scrollSize:co,shouldClipSubject:Ai}})();return Hf({descriptor:ut,isEnabled:!Mr,isCombineEnabled:ui,isFixedOnPage:Kt.isFixedOnPage,direction:pr,client:ca,page:ma,closest:Wi})};const Kf={passive:!1},Pd={passive:!0};var qc=Pe=>Pe.shouldPublishImmediately?Kf:Pd;const pc=Pe=>Pe&&Pe.env.closestScrollable||null;function Jd(Pe){const ut=(0,l.useRef)(null),Kt=df(xo),lr=to("droppable"),{registry:pr,marshal:Mr}=Kt,ui=vo(Pe),Ai=Ct(()=>({id:Pe.droppableId,type:Pe.type,mode:Pe.mode}),[Pe.droppableId,Pe.mode,Pe.type]),Xi=(0,l.useRef)(Ai),ca=Ct(()=>Cn((Zs,iu)=>{ut.current||je();const au={x:Zs,y:iu};Mr.updateDroppableScroll(Ai.id,au)}),[Ai.id,Mr]),ma=Z(()=>{const Zs=ut.current;return!Zs||!Zs.env.closestScrollable?me:Tc(Zs.env.closestScrollable)},[]),Wi=Z(()=>{const Zs=ma();ca(Zs.x,Zs.y)},[ma,ca]),aa=Ct(()=>U(Wi),[Wi]),Ta=Z(()=>{const Zs=ut.current,iu=pc(Zs);if(Zs&&iu||je(),Zs.scrollOptions.shouldPublishImmediately){Wi();return}aa()},[aa,Wi]),co=Z((Zs,iu)=>{ut.current&&je();const au=ui.current,bl=au.getDroppableRef();bl||je();const Nu=Rd(bl),Ac={ref:bl,descriptor:Ai,env:Nu,scrollOptions:iu};ut.current=Ac;const Al=Qc({ref:bl,descriptor:Ai,env:Nu,windowScroll:Zs,direction:au.direction,isDropDisabled:au.isDropDisabled,isCombineEnabled:au.isCombineEnabled,shouldClipSubject:!au.ignoreContainerClipping}),Mf=Nu.closestScrollable;return Mf&&(Mf.setAttribute(fi.contextId,Kt.contextId),Mf.addEventListener("scroll",Ta,qc(Ac.scrollOptions))),Al},[Kt.contextId,Ai,Ta,ui]),So=Z(()=>{const Zs=ut.current,iu=pc(Zs);return Zs&&iu||je(),Tc(iu)},[]),Po=Z(()=>{const Zs=ut.current;Zs||je();const iu=pc(Zs);ut.current=null,iu&&(aa.cancel(),iu.removeAttribute(fi.contextId),iu.removeEventListener("scroll",Ta,qc(Zs.scrollOptions)))},[Ta,aa]),As=Z(Zs=>{const iu=ut.current;iu||je();const au=pc(iu);au||je(),au.scrollTop+=Zs.y,au.scrollLeft+=Zs.x},[]),Hs=Ct(()=>({getDimensionAndWatchScroll:co,getScrollWhileDragging:So,dragStopped:Po,scroll:As}),[Po,co,So,As]),bu=Ct(()=>({uniqueId:lr,descriptor:Ai,callbacks:Hs}),[Hs,Ai,lr]);Ga(()=>(Xi.current=bu.descriptor,pr.droppable.register(bu),()=>{ut.current&&Po(),pr.droppable.unregister(bu)}),[Hs,Ai,Po,bu,Mr,pr.droppable]),Ga(()=>{ut.current&&Mr.updateDroppableIsEnabled(Xi.current.id,!Pe.isDropDisabled)},[Pe.isDropDisabled,Mr]),Ga(()=>{ut.current&&Mr.updateDroppableIsCombineEnabled(Xi.current.id,Pe.isCombineEnabled)},[Pe.isCombineEnabled,Mr])}function Pf(){}const If={width:0,height:0,margin:rn},fh=({isAnimatingOpenOnMount:Pe,placeholder:ut,animate:Kt})=>Pe||Kt==="close"?If:{height:ut.client.borderBox.height,width:ut.client.borderBox.width,margin:ut.client.margin},Id=({isAnimatingOpenOnMount:Pe,placeholder:ut,animate:Kt})=>{const lr=fh({isAnimatingOpenOnMount:Pe,placeholder:ut,animate:Kt});return{display:ut.display,boxSizing:"border-box",width:lr.width,height:lr.height,marginTop:lr.margin.top,marginRight:lr.margin.right,marginBottom:lr.margin.bottom,marginLeft:lr.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Kt!=="none"?ci.placeholder:null}},Df=Pe=>{const ut=(0,l.useRef)(null),Kt=Z(()=>{ut.current&&(clearTimeout(ut.current),ut.current=null)},[]),{animate:lr,onTransitionEnd:pr,onClose:Mr,contextId:ui}=Pe,[Ai,Xi]=(0,l.useState)(Pe.animate==="open");(0,l.useEffect)(()=>Ai?lr!=="open"?(Kt(),Xi(!1),Pf):ut.current?Pf:(ut.current=setTimeout(()=>{ut.current=null,Xi(!1)}),Kt):Pf,[lr,Ai,Kt]);const ca=Z(Wi=>{Wi.propertyName==="height"&&(pr(),lr==="close"&&Mr())},[lr,Mr,pr]),ma=Id({isAnimatingOpenOnMount:Ai,animate:Pe.animate,placeholder:Pe.placeholder});return l.createElement(Pe.placeholder.tagName,{style:ma,"data-rfd-placeholder-context-id":ui,onTransitionEnd:ca,ref:Pe.innerRef})};var cd=l.memo(Df);function Dd(Pe){return typeof Pe=="boolean"}function Yf(Pe,ut){ut.forEach(Kt=>Kt(Pe))}const Vu=[function({props:ut}){ut.droppableId||je(),typeof ut.droppableId!="string"&&je()},function({props:ut}){Dd(ut.isDropDisabled)||je(),Dd(ut.isCombineEnabled)||je(),Dd(ut.ignoreContainerClipping)||je()},function({getDroppableRef:ut}){ru(ut())}],Au=[function({props:ut,getPlaceholderRef:Kt}){!ut.placeholder||Kt()}],ql=[function({props:ut}){ut.renderClone||je()},function({getPlaceholderRef:ut}){ut()&&je()}];function Vl(Pe){Bo(()=>{Yf(Pe,Vu),Pe.props.mode==="standard"&&Yf(Pe,Au),Pe.props.mode==="virtual"&&Yf(Pe,ql)})}class zu extends l.PureComponent{constructor(...ut){super(...ut),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(ut,Kt){return ut.shouldAnimate?ut.on?{isVisible:!0,data:ut.on,animate:"open"}:Kt.isVisible?{isVisible:!0,data:Kt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!ut.on,data:ut.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const ut={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(ut)}}const yl=Pe=>{const ut=(0,l.useContext)(xo);ut||je();const{contextId:Kt,isMovementAllowed:lr}=ut,pr=(0,l.useRef)(null),Mr=(0,l.useRef)(null),{children:ui,droppableId:Ai,type:Xi,mode:ca,direction:ma,ignoreContainerClipping:Wi,isDropDisabled:aa,isCombineEnabled:Ta,snapshot:co,useClone:So,updateViewportMaxScroll:Po,getContainerForClone:As}=Pe,Hs=Z(()=>pr.current,[]),bu=Z((ec=null)=>{pr.current=ec},[]),Zs=Z(()=>Mr.current,[]),iu=Z((ec=null)=>{Mr.current=ec},[]);Vl({props:Pe,getDroppableRef:Hs,getPlaceholderRef:Zs});const au=Z(()=>{lr()&&Po({maxScroll:Hi()})},[lr,Po]);Jd({droppableId:Ai,type:Xi,mode:ca,direction:ma,isDropDisabled:aa,isCombineEnabled:Ta,ignoreContainerClipping:Wi,getDroppableRef:Hs});const bl=Ct(()=>l.createElement(zu,{on:Pe.placeholder,shouldAnimate:Pe.shouldAnimatePlaceholder},({onClose:ec,data:zc,animate:dd})=>l.createElement(cd,{placeholder:zc,onClose:ec,innerRef:iu,animate:dd,contextId:Kt,onTransitionEnd:au})),[Kt,au,Pe.placeholder,Pe.shouldAnimatePlaceholder,iu]),Nu=Ct(()=>({innerRef:bu,placeholder:bl,droppableProps:{"data-rfd-droppable-id":Ai,"data-rfd-droppable-context-id":Kt}}),[Kt,Ai,bl,bu]),Ac=So?So.dragging.draggableId:null,Al=Ct(()=>({droppableId:Ai,type:Xi,isUsingCloneFor:Ac}),[Ai,Ac,Xi]);function Mf(){if(!So)return null;const{dragging:ec,render:zc}=So,dd=l.createElement(Xc,{draggableId:ec.draggableId,index:ec.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(Md,kf)=>zc(Md,kf,ec));return g.createPortal(dd,As())}return l.createElement(oc.Provider,{value:Al},ui(Nu,co),Mf())};function Lu(){return document.body||je(),document.body}const hf={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Lu},fd=Pe=>{let ut={...Pe},Kt;for(Kt in hf)Pe[Kt]===void 0&&(ut={...ut,[Kt]:hf[Kt]});return ut},ef=(Pe,ut)=>Pe===ut.droppable.type,uc=(Pe,ut)=>ut.draggables[Pe.draggable.id],Vc=()=>{const Pe={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ut={...Pe,shouldAnimatePlaceholder:!1},Kt=Cn(Mr=>({draggableId:Mr.id,type:Mr.type,source:{index:Mr.index,droppableId:Mr.droppableId}})),lr=Cn((Mr,ui,Ai,Xi,ca,ma)=>{const Wi=ca.descriptor.id;if(ca.descriptor.droppableId===Mr){const co=ma?{render:ma,dragging:Kt(ca.descriptor)}:null,So={isDraggingOver:Ai,draggingOverWith:Ai?Wi:null,draggingFromThisWith:Wi,isUsingPlaceholder:!0};return{placeholder:ca.placeholder,shouldAnimatePlaceholder:!1,snapshot:So,useClone:co}}if(!ui)return ut;if(!Xi)return Pe;const Ta={isDraggingOver:Ai,draggingOverWith:Wi,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:ca.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ta,useClone:null}});return(Mr,ui)=>{const Ai=fd(ui),Xi=Ai.droppableId,ca=Ai.type,ma=!Ai.isDropDisabled,Wi=Ai.renderClone;if(es(Mr)){const aa=Mr.critical;if(!ef(ca,aa))return ut;const Ta=uc(aa,Mr.dimensions),co=nt(Mr.impact)===Xi;return lr(Xi,ma,co,co,Ta,Wi)}if(Mr.phase==="DROP_ANIMATING"){const aa=Mr.completed;if(!ef(ca,aa.critical))return ut;const Ta=uc(aa.critical,Mr.dimensions);return lr(Xi,ma,nu(aa.result)===Xi,nt(aa.impact)===Xi,Ta,Wi)}if(Mr.phase==="IDLE"&&Mr.completed&&!Mr.shouldFlush){const aa=Mr.completed;if(!ef(ca,aa.critical))return ut;const Ta=nt(aa.impact)===Xi,co=!!(aa.impact.at&&aa.impact.at.type==="COMBINE"),So=aa.critical.droppable.id===Xi;return Ta?co?Pe:ut:So?Pe:ut}return ut}},Th={updateViewportMaxScroll:ra},Zd=(0,x.connect)(Vc,Th,(Pe,ut,Kt)=>({...fd(Kt),...Pe,...ut}),{context:lo,areStatePropsEqual:as})(yl)},89455:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var l=Object.assign||function(q){for(var te=1;te<arguments.length;te++){var A=arguments[te];for(var T in A)Object.prototype.hasOwnProperty.call(A,T)&&(q[T]=A[T])}return q},g=function(){function q(te,A){for(var T=0;T<A.length;T++){var B=A[T];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(te,B.key,B)}}return function(te,A,T){return A&&q(te.prototype,A),T&&q(te,T),te}}(),y=u(93146),x=re(y),f=u(64849),p=re(f),h=u(96540),E=u(83175),v=re(E),m=u(99964),S=re(m),d=u(76595),O=re(d),R=u(10492),C=re(R),L=u(31373),j=re(L),I=u(53966),U=re(I),$=u(90865),ee=u(86991);function re(q){return q&&q.__esModule?q:{default:q}}function Se(q,te){var A={};for(var T in q)te.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(q,T)&&(A[T]=q[T]);return A}function z(q,te){if(!(q instanceof te))throw new TypeError("Cannot call a class as a function")}function Q(q,te){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te&&(typeof te=="object"||typeof te=="function")?te:q}function ce(q,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof te);q.prototype=Object.create(te&&te.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),te&&(Object.setPrototypeOf?Object.setPrototypeOf(q,te):q.__proto__=te)}var se=function(q){ce(te,q);function te(A){var T;z(this,te);for(var B=arguments.length,X=Array(B>1?B-1:0),ue=1;ue<B;ue++)X[ue-1]=arguments[ue];var ie=Q(this,(T=te.__proto__||Object.getPrototypeOf(te)).call.apply(T,[this,A].concat(X)));return ie.getScrollLeft=ie.getScrollLeft.bind(ie),ie.getScrollTop=ie.getScrollTop.bind(ie),ie.getScrollWidth=ie.getScrollWidth.bind(ie),ie.getScrollHeight=ie.getScrollHeight.bind(ie),ie.getClientWidth=ie.getClientWidth.bind(ie),ie.getClientHeight=ie.getClientHeight.bind(ie),ie.getValues=ie.getValues.bind(ie),ie.getThumbHorizontalWidth=ie.getThumbHorizontalWidth.bind(ie),ie.getThumbVerticalHeight=ie.getThumbVerticalHeight.bind(ie),ie.getScrollLeftForOffset=ie.getScrollLeftForOffset.bind(ie),ie.getScrollTopForOffset=ie.getScrollTopForOffset.bind(ie),ie.scrollLeft=ie.scrollLeft.bind(ie),ie.scrollTop=ie.scrollTop.bind(ie),ie.scrollToLeft=ie.scrollToLeft.bind(ie),ie.scrollToTop=ie.scrollToTop.bind(ie),ie.scrollToRight=ie.scrollToRight.bind(ie),ie.scrollToBottom=ie.scrollToBottom.bind(ie),ie.handleTrackMouseEnter=ie.handleTrackMouseEnter.bind(ie),ie.handleTrackMouseLeave=ie.handleTrackMouseLeave.bind(ie),ie.handleHorizontalTrackMouseDown=ie.handleHorizontalTrackMouseDown.bind(ie),ie.handleVerticalTrackMouseDown=ie.handleVerticalTrackMouseDown.bind(ie),ie.handleHorizontalThumbMouseDown=ie.handleHorizontalThumbMouseDown.bind(ie),ie.handleVerticalThumbMouseDown=ie.handleVerticalThumbMouseDown.bind(ie),ie.handleWindowResize=ie.handleWindowResize.bind(ie),ie.handleScroll=ie.handleScroll.bind(ie),ie.handleDrag=ie.handleDrag.bind(ie),ie.handleDragEnd=ie.handleDragEnd.bind(ie),ie.state={didMountUniversal:!1},ie}return g(te,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var T=this.props.universal;T&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,y.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var T=this.view||{},B=T.scrollLeft,X=B===void 0?0:B,ue=T.scrollTop,ie=ue===void 0?0:ue,Te=T.scrollWidth,je=Te===void 0?0:Te,yt=T.scrollHeight,tt=yt===void 0?0:yt,Ze=T.clientWidth,Ne=Ze===void 0?0:Ze,it=T.clientHeight,Rt=it===void 0?0:it;return{left:X/(je-Ne)||0,top:ie/(tt-Rt)||0,scrollLeft:X,scrollTop:ie,scrollWidth:je,scrollHeight:tt,clientWidth:Ne,clientHeight:Rt}}},{key:"getThumbHorizontalWidth",value:function(){var T=this.props,B=T.thumbSize,X=T.thumbMinSize,ue=this.view,ie=ue.scrollWidth,Te=ue.clientWidth,je=(0,j.default)(this.trackHorizontal),yt=Math.ceil(Te/ie*je);return je<=yt?0:B||Math.max(yt,X)}},{key:"getThumbVerticalHeight",value:function(){var T=this.props,B=T.thumbSize,X=T.thumbMinSize,ue=this.view,ie=ue.scrollHeight,Te=ue.clientHeight,je=(0,U.default)(this.trackVertical),yt=Math.ceil(Te/ie*je);return je<=yt?0:B||Math.max(yt,X)}},{key:"getScrollLeftForOffset",value:function(T){var B=this.view,X=B.scrollWidth,ue=B.clientWidth,ie=(0,j.default)(this.trackHorizontal),Te=this.getThumbHorizontalWidth();return T/(ie-Te)*(X-ue)}},{key:"getScrollTopForOffset",value:function(T){var B=this.view,X=B.scrollHeight,ue=B.clientHeight,ie=(0,U.default)(this.trackVertical),Te=this.getThumbVerticalHeight();return T/(ie-Te)*(X-ue)}},{key:"scrollLeft",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=T)}},{key:"scrollTop",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=T)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var T=this.view,B=this.trackHorizontal,X=this.trackVertical,ue=this.thumbHorizontal,ie=this.thumbVertical;T.addEventListener("scroll",this.handleScroll),(0,O.default)()&&(B.addEventListener("mouseenter",this.handleTrackMouseEnter),B.addEventListener("mouseleave",this.handleTrackMouseLeave),B.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),X.addEventListener("mouseenter",this.handleTrackMouseEnter),X.addEventListener("mouseleave",this.handleTrackMouseLeave),X.addEventListener("mousedown",this.handleVerticalTrackMouseDown),ue.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),ie.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var T=this.view,B=this.trackHorizontal,X=this.trackVertical,ue=this.thumbHorizontal,ie=this.thumbVertical;T.removeEventListener("scroll",this.handleScroll),(0,O.default)()&&(B.removeEventListener("mouseenter",this.handleTrackMouseEnter),B.removeEventListener("mouseleave",this.handleTrackMouseLeave),B.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),X.removeEventListener("mouseenter",this.handleTrackMouseEnter),X.removeEventListener("mouseleave",this.handleTrackMouseLeave),X.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),ue.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),ie.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(T){var B=this,X=this.props,ue=X.onScroll,ie=X.onScrollFrame;ue&&ue(T),this.update(function(Te){var je=Te.scrollLeft,yt=Te.scrollTop;B.viewScrollLeft=je,B.viewScrollTop=yt,ie&&ie(Te)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var T=this.props.onScrollStart;T&&T(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var T=this.props.autoHide;T&&this.showTracks()}},{key:"handleScrollStop",value:function(){var T=this.props.onScrollStop;T&&T(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var T=this.props.autoHide;T&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,O.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(T){T.preventDefault();var B=T.target,X=T.clientX,ue=B.getBoundingClientRect(),ie=ue.left,Te=this.getThumbHorizontalWidth(),je=Math.abs(ie-X)-Te/2;this.view.scrollLeft=this.getScrollLeftForOffset(je)}},{key:"handleVerticalTrackMouseDown",value:function(T){T.preventDefault();var B=T.target,X=T.clientY,ue=B.getBoundingClientRect(),ie=ue.top,Te=this.getThumbVerticalHeight(),je=Math.abs(ie-X)-Te/2;this.view.scrollTop=this.getScrollTopForOffset(je)}},{key:"handleHorizontalThumbMouseDown",value:function(T){T.preventDefault(),this.handleDragStart(T);var B=T.target,X=T.clientX,ue=B.offsetWidth,ie=B.getBoundingClientRect(),Te=ie.left;this.prevPageX=ue-(X-Te)}},{key:"handleVerticalThumbMouseDown",value:function(T){T.preventDefault(),this.handleDragStart(T);var B=T.target,X=T.clientY,ue=B.offsetHeight,ie=B.getBoundingClientRect(),Te=ie.top;this.prevPageY=ue-(X-Te)}},{key:"setupDragging",value:function(){(0,p.default)(document.body,$.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=C.default}},{key:"teardownDragging",value:function(){(0,p.default)(document.body,$.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(T){this.dragging=!0,T.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(T){if(this.prevPageX){var B=T.clientX,X=this.trackHorizontal.getBoundingClientRect(),ue=X.left,ie=this.getThumbHorizontalWidth(),Te=ie-this.prevPageX,je=-ue+B-Te;this.view.scrollLeft=this.getScrollLeftForOffset(je)}if(this.prevPageY){var yt=T.clientY,tt=this.trackVertical.getBoundingClientRect(),Ze=tt.top,Ne=this.getThumbVerticalHeight(),it=Ne-this.prevPageY,Rt=-Ze+yt-it;this.view.scrollTop=this.getScrollTopForOffset(Rt)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var T=this.props.autoHide;T&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var T=this.props.autoHide;T&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var T=this.props.autoHide;T&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,p.default)(this.trackHorizontal,{opacity:1}),(0,p.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var T=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var B=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,p.default)(T.trackHorizontal,{opacity:0}),(0,p.default)(T.trackVertical,{opacity:0})},B)}}},{key:"detectScrolling",value:function(){var T=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){T.lastViewScrollLeft===T.viewScrollLeft&&T.lastViewScrollTop===T.viewScrollTop&&(clearInterval(T.detectScrollingInterval),T.scrolling=!1,T.handleScrollStop()),T.lastViewScrollLeft=T.viewScrollLeft,T.lastViewScrollTop=T.viewScrollTop},100))}},{key:"raf",value:function(T){var B=this;this.requestFrame&&x.default.cancel(this.requestFrame),this.requestFrame=(0,x.default)(function(){B.requestFrame=void 0,T()})}},{key:"update",value:function(T){var B=this;this.raf(function(){return B._update(T)})}},{key:"_update",value:function(T){var B=this.props,X=B.onUpdate,ue=B.hideTracksWhenNotNeeded,ie=this.getValues();if((0,O.default)()){var Te=ie.scrollLeft,je=ie.clientWidth,yt=ie.scrollWidth,tt=(0,j.default)(this.trackHorizontal),Ze=this.getThumbHorizontalWidth(),Ne=Te/(yt-je)*(tt-Ze),it={width:Ze,transform:"translateX("+Ne+"px)"},Rt=ie.scrollTop,Dn=ie.clientHeight,Mt=ie.scrollHeight,Wt=(0,U.default)(this.trackVertical),Tn=this.getThumbVerticalHeight(),bn=Rt/(Mt-Dn)*(Wt-Tn),$t={height:Tn,transform:"translateY("+bn+"px)"};if(ue){var Ct={visibility:yt>je?"visible":"hidden"},Z={visibility:Mt>Dn?"visible":"hidden"};(0,p.default)(this.trackHorizontal,Ct),(0,p.default)(this.trackVertical,Z)}(0,p.default)(this.thumbHorizontal,it),(0,p.default)(this.thumbVertical,$t)}X&&X(ie),typeof T=="function"&&T(ie)}},{key:"render",value:function(){var T=this,B=(0,O.default)(),X=this.props,ue=X.onScroll,ie=X.onScrollFrame,Te=X.onScrollStart,je=X.onScrollStop,yt=X.onUpdate,tt=X.renderView,Ze=X.renderTrackHorizontal,Ne=X.renderTrackVertical,it=X.renderThumbHorizontal,Rt=X.renderThumbVertical,Dn=X.tagName,Mt=X.hideTracksWhenNotNeeded,Wt=X.autoHide,Tn=X.autoHideTimeout,bn=X.autoHideDuration,$t=X.thumbSize,Ct=X.thumbMinSize,Z=X.universal,me=X.autoHeight,ke=X.autoHeightMin,Ee=X.autoHeightMax,_e=X.style,ge=X.children,Me=Se(X,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),lt=this.state.didMountUniversal,Ft=l({},$.containerStyleDefault,me&&l({},$.containerStyleAutoHeight,{minHeight:ke,maxHeight:Ee}),_e),Et=l({},$.viewStyleDefault,{marginRight:B?-B:0,marginBottom:B?-B:0},me&&l({},$.viewStyleAutoHeight,{minHeight:(0,S.default)(ke)?"calc("+ke+" + "+B+"px)":ke+B,maxHeight:(0,S.default)(Ee)?"calc("+Ee+" + "+B+"px)":Ee+B}),me&&Z&&!lt&&{minHeight:ke,maxHeight:Ee},Z&&!lt&&$.viewStyleUniversalInitial),Zt={transition:"opacity "+bn+"ms",opacity:0},nn=l({},$.trackHorizontalStyleDefault,Wt&&Zt,(!B||Z&&!lt)&&{display:"none"}),Pn=l({},$.trackVerticalStyleDefault,Wt&&Zt,(!B||Z&&!lt)&&{display:"none"});return(0,h.createElement)(Dn,l({},Me,{style:Ft,ref:function(Vt){T.container=Vt}}),[(0,h.cloneElement)(tt({style:Et}),{key:"view",ref:function(Vt){T.view=Vt}},ge),(0,h.cloneElement)(Ze({style:nn}),{key:"trackHorizontal",ref:function(Vt){T.trackHorizontal=Vt}},(0,h.cloneElement)(it({style:$.thumbHorizontalStyleDefault}),{ref:function(Vt){T.thumbHorizontal=Vt}})),(0,h.cloneElement)(Ne({style:Pn}),{key:"trackVertical",ref:function(Vt){T.trackVertical=Vt}},(0,h.cloneElement)(Rt({style:$.thumbVerticalStyleDefault}),{ref:function(Vt){T.thumbVertical=Vt}}))])}}]),te}(h.Component);w.default=se,se.propTypes={onScroll:v.default.func,onScrollFrame:v.default.func,onScrollStart:v.default.func,onScrollStop:v.default.func,onUpdate:v.default.func,renderView:v.default.func,renderTrackHorizontal:v.default.func,renderTrackVertical:v.default.func,renderThumbHorizontal:v.default.func,renderThumbVertical:v.default.func,tagName:v.default.string,thumbSize:v.default.number,thumbMinSize:v.default.number,hideTracksWhenNotNeeded:v.default.bool,autoHide:v.default.bool,autoHideTimeout:v.default.number,autoHideDuration:v.default.number,autoHeight:v.default.bool,autoHeightMin:v.default.oneOfType([v.default.number,v.default.string]),autoHeightMax:v.default.oneOfType([v.default.number,v.default.string]),universal:v.default.bool,style:v.default.object,children:v.default.node},se.defaultProps={renderView:ee.renderViewDefault,renderTrackHorizontal:ee.renderTrackHorizontalDefault,renderTrackVertical:ee.renderTrackVerticalDefault,renderThumbHorizontal:ee.renderThumbHorizontalDefault,renderThumbVertical:ee.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},89516:(Ge,w)=>{var u=function(y,x){if(typeof y.path=="function")var f=y.path();else var f=y.originalUrl||y.path||y.url;var p=y.header&&y.header("x-forwarded-for"),h=y.header&&y.header("x-request-id"),E=y.ip||p||y.connection.remoteAddress,v={ip:E,time:new Date().toISOString(),method:y.method,path:f,status:x.statusCode};return h&&(v.request_id=h),x.get&&(v.content_length=x.get("content-length"),v.content_type=x.get("content-type")),v},l=function(y,x,f){return function(p,h,E){var v=f(p,h);y.log(v),E()}},g=function(y,x,f){return function(p,h,E){var v=x.elapsed||"elapsed",m=y.time(v),S=h.end;h.end=function(d,O){var R=f(p,h);h.end=S,h.end(d,O),m.log(R)},E()}};w.init=function(y,x,f){return this.logger=y,!f&&!x?(f=u,x={}):f||(typeof x=="function"?(f=x,x={}):f=u),x=x||{},x.immediate?l(y,x,f):g(y,x,f)},w.commonFormatter=u},89569:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.commonLocale=void 0;var u=w.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},89634:(Ge,w)=>{w=Ge.exports=function(u){var l;return u==null&&(u={}),function(g,y,x){if(g._body)return x();var f=g.header("content-type")===u.contentType;if(!f)return x();g._body=!0,g.body=g.body||{};var p;p="",g.setEncoding("utf8"),g.on("data",function(h){return p+=h}),g.on("end",function(){try{var h=[];p.trim().split(` `).forEach(function(E){h.push(u.parser(E))}),g.body=h}catch(E){return E.body=p,E.status=400,x(E)}return x()})}}},89795:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.raceInit=w.race=void 0;var l=u(48051),g=u(19724),y=u(7652),x=u(17214);function f(){for(var h=[],E=0;E<arguments.length;E++)h[E]=arguments[E];return h=y.argsOrArgArray(h),h.length===1?g.innerFrom(h[0]):new l.Observable(p(h))}w.race=f;function p(h){return function(E){for(var v=[],m=function(d){v.push(g.innerFrom(h[d]).subscribe(x.createOperatorSubscriber(E,function(O){if(v){for(var R=0;R<v.length;R++)R!==d&&v[R].unsubscribe();v=null}E.next(O)})))},S=0;v&&!E.closed&&S<h.length;S++)m(S)}}w.raceInit=p},89981:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.diffSentences=x,w.sentenceDiff=void 0;var l=g(u(85969));function g(f){return f&&f.__esModule?f:{default:f}}var y=new l.default;w.sentenceDiff=y,y.tokenize=function(f){return f.split(/(\S.+?[.!?])(?=\s+|$)/)};function x(f,p,h){return y.diff(f,p,h)}},90025:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>g});class l{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const g=l},90037:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.windowTime=void 0;var l=u(54427),g=u(62326),y=u(69879),x=u(65212),f=u(17214),p=u(54830),h=u(26404),E=u(28619);function v(m){for(var S,d,O=[],R=1;R<arguments.length;R++)O[R-1]=arguments[R];var C=(S=h.popScheduler(O))!==null&&S!==void 0?S:g.asyncScheduler,L=(d=O[0])!==null&&d!==void 0?d:null,j=O[1]||1/0;return x.operate(function(I,U){var $=[],ee=!1,re=function(ce){var se=ce.window,q=ce.subs;se.complete(),q.unsubscribe(),p.arrRemove($,ce),ee&&Se()},Se=function(){if($){var ce=new y.Subscription;U.add(ce);var se=new l.Subject,q={window:se,subs:ce,seen:0};$.push(q),U.next(se.asObservable()),E.executeSchedule(ce,C,function(){return re(q)},m)}};L!==null&&L>=0?E.executeSchedule(U,C,Se,L,!0):ee=!0,Se();var z=function(ce){return $.slice().forEach(ce)},Q=function(ce){z(function(se){var q=se.window;return ce(q)}),ce(U),U.unsubscribe()};return I.subscribe(f.createOperatorSubscriber(U,function(ce){z(function(se){se.window.next(ce),j<=++se.seen&&re(se)})},function(){return Q(function(ce){return ce.complete()})},function(ce){return Q(function(se){return se.error(ce)})})),function(){$=null}})}w.windowTime=v},90063:(Ge,w,u)=>{"use strict";u.d(w,{u:()=>l});function l(g,y){return g<0?(g=0-g,typeof y=="number"?`- ${g.toPrecision(y)}`:`- ${g.toString()}`):typeof y=="number"?g.toPrecision(y):g.toString()}},90314:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.combineLatestAll=void 0;var l=u(88246),g=u(80719);function y(x){return g.joinAllInternals(l.combineLatest,x)}w.combineLatestAll=y},90365:(Ge,w,u)=>{"use strict";u.d(w,{PH:()=>d,Qj:()=>S,Z6:()=>h,cF:()=>l,fI:()=>E,iX:()=>ue,uY:()=>x});const l=1024;let g=0;class y{constructor(Z,me){this.from=Z,this.to=me}}class x{constructor(Z={}){this.id=g++,this.perNode=!!Z.perNode,this.deserialize=Z.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(Z){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof Z!="function"&&(Z=h.match(Z)),me=>{let ke=Z(me);return ke===void 0?null:[this,ke]}}}x.closedBy=new x({deserialize:Ct=>Ct.split(" ")}),x.openedBy=new x({deserialize:Ct=>Ct.split(" ")}),x.group=new x({deserialize:Ct=>Ct.split(" ")}),x.isolate=new x({deserialize:Ct=>{if(Ct&&Ct!="rtl"&&Ct!="ltr"&&Ct!="auto")throw new RangeError("Invalid value for isolate: "+Ct);return Ct||"auto"}}),x.contextHash=new x({perNode:!0}),x.lookAhead=new x({perNode:!0}),x.mounted=new x({perNode:!0});class f{constructor(Z,me,ke){this.tree=Z,this.overlay=me,this.parser=ke}static get(Z){return Z&&Z.props&&Z.props[x.mounted.id]}}const p=Object.create(null);class h{constructor(Z,me,ke,Ee=0){this.name=Z,this.props=me,this.id=ke,this.flags=Ee}static define(Z){let me=Z.props&&Z.props.length?Object.create(null):p,ke=(Z.top?1:0)|(Z.skipped?2:0)|(Z.error?4:0)|(Z.name==null?8:0),Ee=new h(Z.name||"",me,Z.id,ke);if(Z.props){for(let _e of Z.props)if(Array.isArray(_e)||(_e=_e(Ee)),_e){if(_e[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");me[_e[0].id]=_e[1]}}return Ee}prop(Z){return this.props[Z.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(Z){if(typeof Z=="string"){if(this.name==Z)return!0;let me=this.prop(x.group);return me?me.indexOf(Z)>-1:!1}return this.id==Z}static match(Z){let me=Object.create(null);for(let ke in Z)for(let Ee of ke.split(" "))me[Ee]=Z[ke];return ke=>{for(let Ee=ke.prop(x.group),_e=-1;_e<(Ee?Ee.length:0);_e++){let ge=me[_e<0?ke.name:Ee[_e]];if(ge)return ge}}}}h.none=new h("",Object.create(null),0,8);class E{constructor(Z){this.types=Z;for(let me=0;me<Z.length;me++)if(Z[me].id!=me)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...Z){let me=[];for(let ke of this.types){let Ee=null;for(let _e of Z){let ge=_e(ke);ge&&(Ee||(Ee=Object.assign({},ke.props)),Ee[ge[0].id]=ge[1])}me.push(Ee?new h(ke.name,Ee,ke.id,ke.flags):ke)}return new E(me)}}const v=new WeakMap,m=new WeakMap;var S;(function(Ct){Ct[Ct.ExcludeBuffers=1]="ExcludeBuffers",Ct[Ct.IncludeAnonymous=2]="IncludeAnonymous",Ct[Ct.IgnoreMounts=4]="IgnoreMounts",Ct[Ct.IgnoreOverlays=8]="IgnoreOverlays"})(S||(S={}));class d{constructor(Z,me,ke,Ee,_e){if(this.type=Z,this.children=me,this.positions=ke,this.length=Ee,this.props=null,_e&&_e.length){this.props=Object.create(null);for(let[ge,Me]of _e)this.props[typeof ge=="number"?ge:ge.id]=Me}}toString(){let Z=f.get(this);if(Z&&!Z.overlay)return Z.tree.toString();let me="";for(let ke of this.children){let Ee=ke.toString();Ee&&(me&&(me+=","),me+=Ee)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(me.length?"("+me+")":""):me}cursor(Z=0){return new ce(this.topNode,Z)}cursorAt(Z,me=0,ke=0){let Ee=v.get(this)||this.topNode,_e=new ce(Ee);return _e.moveTo(Z,me),v.set(this,_e._tree),_e}get topNode(){return new I(this,0,0,null)}resolve(Z,me=0){let ke=L(v.get(this)||this.topNode,Z,me,!1);return v.set(this,ke),ke}resolveInner(Z,me=0){let ke=L(m.get(this)||this.topNode,Z,me,!0);return m.set(this,ke),ke}resolveStack(Z,me=0){return Q(this,Z,me)}iterate(Z){let{enter:me,leave:ke,from:Ee=0,to:_e=this.length}=Z,ge=Z.mode||0,Me=(ge&S.IncludeAnonymous)>0;for(let lt=this.cursor(ge|S.IncludeAnonymous);;){let Ft=!1;if(lt.from<=_e&<.to>=Ee&&(!Me&<.type.isAnonymous||me(lt)!==!1)){if(lt.firstChild())continue;Ft=!0}for(;Ft&&ke&&(Me||!lt.type.isAnonymous)&&ke(lt),!lt.nextSibling();){if(!lt.parent())return;Ft=!0}}}prop(Z){return Z.perNode?this.props?this.props[Z.id]:void 0:this.type.prop(Z)}get propValues(){let Z=[];if(this.props)for(let me in this.props)Z.push([+me,this.props[me]]);return Z}balance(Z={}){return this.children.length<=8?this:T(h.none,this.children,this.positions,0,this.children.length,0,this.length,(me,ke,Ee)=>new d(this.type,me,ke,Ee,this.propValues),Z.makeTree||((me,ke,Ee)=>new d(h.none,me,ke,Ee)))}static build(Z){return q(Z)}}d.empty=new d(h.none,[],[],0);class O{constructor(Z,me){this.buffer=Z,this.index=me}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new O(this.buffer,this.index)}}class R{constructor(Z,me,ke){this.buffer=Z,this.length=me,this.set=ke}get type(){return h.none}toString(){let Z=[];for(let me=0;me<this.buffer.length;)Z.push(this.childString(me)),me=this.buffer[me+3];return Z.join(",")}childString(Z){let me=this.buffer[Z],ke=this.buffer[Z+3],Ee=this.set.types[me],_e=Ee.name;if(/\W/.test(_e)&&!Ee.isError&&(_e=JSON.stringify(_e)),Z+=4,ke==Z)return _e;let ge=[];for(;Z<ke;)ge.push(this.childString(Z)),Z=this.buffer[Z+3];return _e+"("+ge.join(",")+")"}findChild(Z,me,ke,Ee,_e){let{buffer:ge}=this,Me=-1;for(let lt=Z;lt!=me&&!(C(_e,Ee,ge[lt+1],ge[lt+2])&&(Me=lt,ke>0));lt=ge[lt+3]);return Me}slice(Z,me,ke){let Ee=this.buffer,_e=new Uint16Array(me-Z),ge=0;for(let Me=Z,lt=0;Me<me;){_e[lt++]=Ee[Me++],_e[lt++]=Ee[Me++]-ke;let Ft=_e[lt++]=Ee[Me++]-ke;_e[lt++]=Ee[Me++]-Z,ge=Math.max(ge,Ft)}return new R(_e,ge,this.set)}}function C(Ct,Z,me,ke){switch(Ct){case-2:return me<Z;case-1:return ke>=Z&&me<Z;case 0:return me<Z&&ke>Z;case 1:return me<=Z&&ke>Z;case 2:return ke>Z;case 4:return!0}}function L(Ct,Z,me,ke){for(var Ee;Ct.from==Ct.to||(me<1?Ct.from>=Z:Ct.from>Z)||(me>-1?Ct.to<=Z:Ct.to<Z);){let ge=!ke&&Ct instanceof I&&Ct.index<0?null:Ct.parent;if(!ge)return Ct;Ct=ge}let _e=ke?0:S.IgnoreOverlays;if(ke)for(let ge=Ct,Me=ge.parent;Me;ge=Me,Me=ge.parent)ge instanceof I&&ge.index<0&&((Ee=Me.enter(Z,me,_e))===null||Ee===void 0?void 0:Ee.from)!=ge.from&&(Ct=Me);for(;;){let ge=Ct.enter(Z,me,_e);if(!ge)return Ct;Ct=ge}}class j{cursor(Z=0){return new ce(this,Z)}getChild(Z,me=null,ke=null){let Ee=U(this,Z,me,ke);return Ee.length?Ee[0]:null}getChildren(Z,me=null,ke=null){return U(this,Z,me,ke)}resolve(Z,me=0){return L(this,Z,me,!1)}resolveInner(Z,me=0){return L(this,Z,me,!0)}matchContext(Z){return $(this.parent,Z)}enterUnfinishedNodesBefore(Z){let me=this.childBefore(Z),ke=this;for(;me;){let Ee=me.lastChild;if(!Ee||Ee.to!=me.to)break;Ee.type.isError&&Ee.from==Ee.to?(ke=me,me=Ee.prevSibling):me=Ee}return ke}get node(){return this}get next(){return this.parent}}class I extends j{constructor(Z,me,ke,Ee){super(),this._tree=Z,this.from=me,this.index=ke,this._parent=Ee}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(Z,me,ke,Ee,_e=0){for(let ge=this;;){for(let{children:Me,positions:lt}=ge._tree,Ft=me>0?Me.length:-1;Z!=Ft;Z+=me){let Et=Me[Z],Zt=lt[Z]+ge.from;if(C(Ee,ke,Zt,Zt+Et.length)){if(Et instanceof R){if(_e&S.ExcludeBuffers)continue;let nn=Et.findChild(0,Et.buffer.length,me,ke-Zt,Ee);if(nn>-1)return new re(new ee(ge,Et,Z,Zt),null,nn)}else if(_e&S.IncludeAnonymous||!Et.type.isAnonymous||se(Et)){let nn;if(!(_e&S.IgnoreMounts)&&(nn=f.get(Et))&&!nn.overlay)return new I(nn.tree,Zt,Z,ge);let Pn=new I(Et,Zt,Z,ge);return _e&S.IncludeAnonymous||!Pn.type.isAnonymous?Pn:Pn.nextChild(me<0?Et.children.length-1:0,me,ke,Ee)}}}if(_e&S.IncludeAnonymous||!ge.type.isAnonymous||(ge.index>=0?Z=ge.index+me:Z=me<0?-1:ge._parent._tree.children.length,ge=ge._parent,!ge))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(Z){return this.nextChild(0,1,Z,2)}childBefore(Z){return this.nextChild(this._tree.children.length-1,-1,Z,-2)}enter(Z,me,ke=0){let Ee;if(!(ke&S.IgnoreOverlays)&&(Ee=f.get(this._tree))&&Ee.overlay){let _e=Z-this.from;for(let{from:ge,to:Me}of Ee.overlay)if((me>0?ge<=_e:ge<_e)&&(me<0?Me>=_e:Me>_e))return new I(Ee.tree,Ee.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,Z,me,ke)}nextSignificantParent(){let Z=this;for(;Z.type.isAnonymous&&Z._parent;)Z=Z._parent;return Z}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function U(Ct,Z,me,ke){let Ee=Ct.cursor(),_e=[];if(!Ee.firstChild())return _e;if(me!=null){for(let ge=!1;!ge;)if(ge=Ee.type.is(me),!Ee.nextSibling())return _e}for(;;){if(ke!=null&&Ee.type.is(ke))return _e;if(Ee.type.is(Z)&&_e.push(Ee.node),!Ee.nextSibling())return ke==null?_e:[]}}function $(Ct,Z,me=Z.length-1){for(let ke=Ct;me>=0;ke=ke.parent){if(!ke)return!1;if(!ke.type.isAnonymous){if(Z[me]&&Z[me]!=ke.name)return!1;me--}}return!0}class ee{constructor(Z,me,ke,Ee){this.parent=Z,this.buffer=me,this.index=ke,this.start=Ee}}class re extends j{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(Z,me,ke){super(),this.context=Z,this._parent=me,this.index=ke,this.type=Z.buffer.set.types[Z.buffer.buffer[ke]]}child(Z,me,ke){let{buffer:Ee}=this.context,_e=Ee.findChild(this.index+4,Ee.buffer[this.index+3],Z,me-this.context.start,ke);return _e<0?null:new re(this.context,this,_e)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(Z){return this.child(1,Z,2)}childBefore(Z){return this.child(-1,Z,-2)}enter(Z,me,ke=0){if(ke&S.ExcludeBuffers)return null;let{buffer:Ee}=this.context,_e=Ee.findChild(this.index+4,Ee.buffer[this.index+3],me>0?1:-1,Z-this.context.start,me);return _e<0?null:new re(this.context,this,_e)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(Z){return this._parent?null:this.context.parent.nextChild(this.context.index+Z,Z,0,4)}get nextSibling(){let{buffer:Z}=this.context,me=Z.buffer[this.index+3];return me<(this._parent?Z.buffer[this._parent.index+3]:Z.buffer.length)?new re(this.context,this._parent,me):this.externalSibling(1)}get prevSibling(){let{buffer:Z}=this.context,me=this._parent?this._parent.index+4:0;return this.index==me?this.externalSibling(-1):new re(this.context,this._parent,Z.findChild(me,this.index,-1,0,4))}get tree(){return null}toTree(){let Z=[],me=[],{buffer:ke}=this.context,Ee=this.index+4,_e=ke.buffer[this.index+3];if(_e>Ee){let ge=ke.buffer[this.index+1];Z.push(ke.slice(Ee,_e,ge)),me.push(0)}return new d(this.type,Z,me,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Se(Ct){if(!Ct.length)return null;let Z=0,me=Ct[0];for(let _e=1;_e<Ct.length;_e++){let ge=Ct[_e];(ge.from>me.from||ge.to<me.to)&&(me=ge,Z=_e)}let ke=me instanceof I&&me.index<0?null:me.parent,Ee=Ct.slice();return ke?Ee[Z]=ke:Ee.splice(Z,1),new z(Ee,me)}class z{constructor(Z,me){this.heads=Z,this.node=me}get next(){return Se(this.heads)}}function Q(Ct,Z,me){let ke=Ct.resolveInner(Z,me),Ee=null;for(let _e=ke instanceof I?ke:ke.context.parent;_e;_e=_e.parent)if(_e.index<0){let ge=_e.parent;(Ee||(Ee=[ke])).push(ge.resolve(Z,me)),_e=ge}else{let ge=f.get(_e.tree);if(ge&&ge.overlay&&ge.overlay[0].from<=Z&&ge.overlay[ge.overlay.length-1].to>=Z){let Me=new I(ge.tree,ge.overlay[0].from+_e.from,-1,_e);(Ee||(Ee=[ke])).push(L(Me,Z,me,!1))}}return Ee?Se(Ee):ke}class ce{get name(){return this.type.name}constructor(Z,me=0){if(this.mode=me,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,Z instanceof I)this.yieldNode(Z);else{this._tree=Z.context.parent,this.buffer=Z.context;for(let ke=Z._parent;ke;ke=ke._parent)this.stack.unshift(ke.index);this.bufferNode=Z,this.yieldBuf(Z.index)}}yieldNode(Z){return Z?(this._tree=Z,this.type=Z.type,this.from=Z.from,this.to=Z.to,!0):!1}yieldBuf(Z,me){this.index=Z;let{start:ke,buffer:Ee}=this.buffer;return this.type=me||Ee.set.types[Ee.buffer[Z]],this.from=ke+Ee.buffer[Z+1],this.to=ke+Ee.buffer[Z+2],!0}yield(Z){return Z?Z instanceof I?(this.buffer=null,this.yieldNode(Z)):(this.buffer=Z.context,this.yieldBuf(Z.index,Z.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(Z,me,ke){if(!this.buffer)return this.yield(this._tree.nextChild(Z<0?this._tree._tree.children.length-1:0,Z,me,ke,this.mode));let{buffer:Ee}=this.buffer,_e=Ee.findChild(this.index+4,Ee.buffer[this.index+3],Z,me-this.buffer.start,ke);return _e<0?!1:(this.stack.push(this.index),this.yieldBuf(_e))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(Z){return this.enterChild(1,Z,2)}childBefore(Z){return this.enterChild(-1,Z,-2)}enter(Z,me,ke=this.mode){return this.buffer?ke&S.ExcludeBuffers?!1:this.enterChild(1,Z,me):this.yield(this._tree.enter(Z,me,ke))}parent(){if(!this.buffer)return this.yieldNode(this.mode&S.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let Z=this.mode&S.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(Z)}sibling(Z){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+Z,Z,0,4,this.mode)):!1;let{buffer:me}=this.buffer,ke=this.stack.length-1;if(Z<0){let Ee=ke<0?0:this.stack[ke]+4;if(this.index!=Ee)return this.yieldBuf(me.findChild(Ee,this.index,-1,0,4))}else{let Ee=me.buffer[this.index+3];if(Ee<(ke<0?me.buffer.length:me.buffer[this.stack[ke]+3]))return this.yieldBuf(Ee)}return ke<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+Z,Z,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(Z){let me,ke,{buffer:Ee}=this;if(Ee){if(Z>0){if(this.index<Ee.buffer.buffer.length)return!1}else for(let _e=0;_e<this.index;_e++)if(Ee.buffer.buffer[_e+3]<this.index)return!1;({index:me,parent:ke}=Ee)}else({index:me,_parent:ke}=this._tree);for(;ke;{index:me,_parent:ke}=ke)if(me>-1)for(let _e=me+Z,ge=Z<0?-1:ke._tree.children.length;_e!=ge;_e+=Z){let Me=ke._tree.children[_e];if(this.mode&S.IncludeAnonymous||Me instanceof R||!Me.type.isAnonymous||se(Me))return!1}return!0}move(Z,me){if(me&&this.enterChild(Z,0,4))return!0;for(;;){if(this.sibling(Z))return!0;if(this.atLastNode(Z)||!this.parent())return!1}}next(Z=!0){return this.move(1,Z)}prev(Z=!0){return this.move(-1,Z)}moveTo(Z,me=0){for(;(this.from==this.to||(me<1?this.from>=Z:this.from>Z)||(me>-1?this.to<=Z:this.to<Z))&&this.parent(););for(;this.enterChild(1,Z,me););return this}get node(){if(!this.buffer)return this._tree;let Z=this.bufferNode,me=null,ke=0;if(Z&&Z.context==this.buffer)e:for(let Ee=this.index,_e=this.stack.length;_e>=0;){for(let ge=Z;ge;ge=ge._parent)if(ge.index==Ee){if(Ee==this.index)return ge;me=ge,ke=_e+1;break e}Ee=this.stack[--_e]}for(let Ee=ke;Ee<this.stack.length;Ee++)me=new re(this.buffer,me,this.stack[Ee]);return this.bufferNode=new re(this.buffer,me,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(Z,me){for(let ke=0;;){let Ee=!1;if(this.type.isAnonymous||Z(this)!==!1){if(this.firstChild()){ke++;continue}this.type.isAnonymous||(Ee=!0)}for(;;){if(Ee&&me&&me(this),Ee=this.type.isAnonymous,!ke)return;if(this.nextSibling())break;this.parent(),ke--,Ee=!0}}}matchContext(Z){if(!this.buffer)return $(this.node.parent,Z);let{buffer:me}=this.buffer,{types:ke}=me.set;for(let Ee=Z.length-1,_e=this.stack.length-1;Ee>=0;_e--){if(_e<0)return $(this._tree,Z,Ee);let ge=ke[me.buffer[this.stack[_e]]];if(!ge.isAnonymous){if(Z[Ee]&&Z[Ee]!=ge.name)return!1;Ee--}}return!0}}function se(Ct){return Ct.children.some(Z=>Z instanceof R||!Z.type.isAnonymous||se(Z))}function q(Ct){var Z;let{buffer:me,nodeSet:ke,maxBufferLength:Ee=l,reused:_e=[],minRepeatType:ge=ke.types.length}=Ct,Me=Array.isArray(me)?new O(me,me.length):me,lt=ke.types,Ft=0,Et=0;function Zt(Wn,er,Fn,en,gn,kn){let{id:Jn,start:Nn,end:kr,size:bt}=Me,ne=Et,fe=Ft;for(;bt<0;)if(Me.next(),bt==-1){let ln=_e[Jn];Fn.push(ln),en.push(Nn-Wn);return}else if(bt==-3){Ft=Jn;return}else if(bt==-4){Et=Jn;return}else throw new RangeError(`Unrecognized record size: ${bt}`);let K=lt[Jn],he,Fe,Nt=Nn-Wn;if(kr-Nn<=Ee&&(Fe=Kn(Me.pos-er,gn))){let ln=new Uint16Array(Fe.size-Fe.skip),pn=Me.pos-Fe.size,Yn=ln.length;for(;Me.pos>pn;)Yn=ur(Fe.start,ln,Yn);he=new R(ln,kr-Fe.start,ke),Nt=Fe.start-Wn}else{let ln=Me.pos-bt;Me.next();let pn=[],Yn=[],ht=Jn>=ge?Jn:-1,De=0,we=kr;for(;Me.pos>ln;)ht>=0&&Me.id==ht&&Me.size>=0?(Me.end<=we-Ee&&(rn(pn,Yn,Nn,De,Me.end,we,ht,ne,fe),De=pn.length,we=Me.end),Me.next()):kn>2500?nn(Nn,ln,pn,Yn):Zt(Nn,ln,pn,Yn,ht,kn+1);if(ht>=0&&De>0&&De<pn.length&&rn(pn,Yn,Nn,De,Nn,we,ht,ne,fe),pn.reverse(),Yn.reverse(),ht>-1&&De>0){let Ke=Pn(K,fe);he=T(K,pn,Yn,0,pn.length,0,kr-Nn,Ke,Ke)}else he=Vt(K,pn,Yn,kr-Nn,ne-kr,fe)}Fn.push(he),en.push(Nt)}function nn(Wn,er,Fn,en){let gn=[],kn=0,Jn=-1;for(;Me.pos>er;){let{id:Nn,start:kr,end:bt,size:ne}=Me;if(ne>4)Me.next();else{if(Jn>-1&&kr<Jn)break;Jn<0&&(Jn=bt-Ee),gn.push(Nn,kr,bt),kn++,Me.next()}}if(kn){let Nn=new Uint16Array(kn*4),kr=gn[gn.length-2];for(let bt=gn.length-3,ne=0;bt>=0;bt-=3)Nn[ne++]=gn[bt],Nn[ne++]=gn[bt+1]-kr,Nn[ne++]=gn[bt+2]-kr,Nn[ne++]=ne;Fn.push(new R(Nn,gn[2]-kr,ke)),en.push(kr-Wn)}}function Pn(Wn,er){return(Fn,en,gn)=>{let kn=0,Jn=Fn.length-1,Nn,kr;if(Jn>=0&&(Nn=Fn[Jn])instanceof d){if(!Jn&&Nn.type==Wn&&Nn.length==gn)return Nn;(kr=Nn.prop(x.lookAhead))&&(kn=en[Jn]+Nn.length+kr)}return Vt(Wn,Fn,en,gn,kn,er)}}function rn(Wn,er,Fn,en,gn,kn,Jn,Nn,kr){let bt=[],ne=[];for(;Wn.length>en;)bt.push(Wn.pop()),ne.push(er.pop()+Fn-gn);Wn.push(Vt(ke.types[Jn],bt,ne,kn-gn,Nn-kn,kr)),er.push(gn-Fn)}function Vt(Wn,er,Fn,en,gn,kn,Jn){if(kn){let Nn=[x.contextHash,kn];Jn=Jn?[Nn].concat(Jn):[Nn]}if(gn>25){let Nn=[x.lookAhead,gn];Jn=Jn?[Nn].concat(Jn):[Nn]}return new d(Wn,er,Fn,en,Jn)}function Kn(Wn,er){let Fn=Me.fork(),en=0,gn=0,kn=0,Jn=Fn.end-Ee,Nn={size:0,start:0,skip:0};e:for(let kr=Fn.pos-Wn;Fn.pos>kr;){let bt=Fn.size;if(Fn.id==er&&bt>=0){Nn.size=en,Nn.start=gn,Nn.skip=kn,kn+=4,en+=4,Fn.next();continue}let ne=Fn.pos-bt;if(bt<0||ne<kr||Fn.start<Jn)break;let fe=Fn.id>=ge?4:0,K=Fn.start;for(Fn.next();Fn.pos>ne;){if(Fn.size<0)if(Fn.size==-3)fe+=4;else break e;else Fn.id>=ge&&(fe+=4);Fn.next()}gn=K,en+=bt,kn+=fe}return(er<0||en==Wn)&&(Nn.size=en,Nn.start=gn,Nn.skip=kn),Nn.size>4?Nn:void 0}function ur(Wn,er,Fn){let{id:en,start:gn,end:kn,size:Jn}=Me;if(Me.next(),Jn>=0&&en<ge){let Nn=Fn;if(Jn>4){let kr=Me.pos-(Jn-4);for(;Me.pos>kr;)Fn=ur(Wn,er,Fn)}er[--Fn]=Nn,er[--Fn]=kn-Wn,er[--Fn]=gn-Wn,er[--Fn]=en}else Jn==-3?Ft=en:Jn==-4&&(Et=en);return Fn}let on=[],tr=[];for(;Me.pos>0;)Zt(Ct.start||0,Ct.bufferStart||0,on,tr,-1,0);let Cn=(Z=Ct.length)!==null&&Z!==void 0?Z:on.length?tr[0]+on[0].length:0;return new d(lt[Ct.topID],on.reverse(),tr.reverse(),Cn)}const te=new WeakMap;function A(Ct,Z){if(!Ct.isAnonymous||Z instanceof R||Z.type!=Ct)return 1;let me=te.get(Z);if(me==null){me=1;for(let ke of Z.children){if(ke.type!=Ct||!(ke instanceof d)){me=1;break}me+=A(Ct,ke)}te.set(Z,me)}return me}function T(Ct,Z,me,ke,Ee,_e,ge,Me,lt){let Ft=0;for(let rn=ke;rn<Ee;rn++)Ft+=A(Ct,Z[rn]);let Et=Math.ceil(Ft*1.5/8),Zt=[],nn=[];function Pn(rn,Vt,Kn,ur,on){for(let tr=Kn;tr<ur;){let Cn=tr,Wn=Vt[tr],er=A(Ct,rn[tr]);for(tr++;tr<ur;tr++){let Fn=A(Ct,rn[tr]);if(er+Fn>=Et)break;er+=Fn}if(tr==Cn+1){if(er>Et){let Fn=rn[Cn];Pn(Fn.children,Fn.positions,0,Fn.children.length,Vt[Cn]+on);continue}Zt.push(rn[Cn])}else{let Fn=Vt[tr-1]+rn[tr-1].length-Wn;Zt.push(T(Ct,rn,Vt,Cn,tr,Wn,Fn,null,lt))}nn.push(Wn+on-_e)}}return Pn(Z,me,ke,Ee,0),(Me||lt)(Zt,nn,ge)}class B{constructor(){this.map=new WeakMap}setBuffer(Z,me,ke){let Ee=this.map.get(Z);Ee||this.map.set(Z,Ee=new Map),Ee.set(me,ke)}getBuffer(Z,me){let ke=this.map.get(Z);return ke&&ke.get(me)}set(Z,me){Z instanceof re?this.setBuffer(Z.context.buffer,Z.index,me):Z instanceof I&&this.map.set(Z.tree,me)}get(Z){return Z instanceof re?this.getBuffer(Z.context.buffer,Z.index):Z instanceof I?this.map.get(Z.tree):void 0}cursorSet(Z,me){Z.buffer?this.setBuffer(Z.buffer.buffer,Z.index,me):this.map.set(Z.tree,me)}cursorGet(Z){return Z.buffer?this.getBuffer(Z.buffer.buffer,Z.index):this.map.get(Z.tree)}}class X{constructor(Z,me,ke,Ee,_e=!1,ge=!1){this.from=Z,this.to=me,this.tree=ke,this.offset=Ee,this.open=(_e?1:0)|(ge?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(Z,me=[],ke=!1){let Ee=[new X(0,Z.length,Z,0,!1,ke)];for(let _e of me)_e.to>Z.length&&Ee.push(_e);return Ee}static applyChanges(Z,me,ke=128){if(!me.length)return Z;let Ee=[],_e=1,ge=Z.length?Z[0]:null;for(let Me=0,lt=0,Ft=0;;Me++){let Et=Me<me.length?me[Me]:null,Zt=Et?Et.fromA:1e9;if(Zt-lt>=ke)for(;ge&&ge.from<Zt;){let nn=ge;if(lt>=nn.from||Zt<=nn.to||Ft){let Pn=Math.max(nn.from,lt)-Ft,rn=Math.min(nn.to,Zt)-Ft;nn=Pn>=rn?null:new X(Pn,rn,nn.tree,nn.offset+Ft,Me>0,!!Et)}if(nn&&Ee.push(nn),ge.to>Zt)break;ge=_e<Z.length?Z[_e++]:null}if(!Et)break;lt=Et.toA,Ft=Et.toA-Et.toB}return Ee}}class ue{startParse(Z,me,ke){return typeof Z=="string"&&(Z=new ie(Z)),ke=ke?ke.length?ke.map(Ee=>new y(Ee.from,Ee.to)):[new y(0,0)]:[new y(0,Z.length)],this.createParse(Z,me||[],ke)}parse(Z,me,ke){let Ee=this.startParse(Z,me,ke);for(;;){let _e=Ee.advance();if(_e)return _e}}}class ie{constructor(Z){this.string=Z}get length(){return this.string.length}chunk(Z){return this.string.slice(Z)}get lineChunks(){return!1}read(Z,me){return this.string.slice(Z,me)}}function Te(Ct){return(Z,me,ke,Ee)=>new Ne(Z,Ct,me,ke,Ee)}class je{constructor(Z,me,ke,Ee,_e){this.parser=Z,this.parse=me,this.overlay=ke,this.target=Ee,this.from=_e}}function yt(Ct){if(!Ct.length||Ct.some(Z=>Z.from>=Z.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(Ct))}class tt{constructor(Z,me,ke,Ee,_e,ge,Me){this.parser=Z,this.predicate=me,this.mounts=ke,this.index=Ee,this.start=_e,this.target=ge,this.prev=Me,this.depth=0,this.ranges=[]}}const Ze=new x({perNode:!0});class Ne{constructor(Z,me,ke,Ee,_e){this.nest=me,this.input=ke,this.fragments=Ee,this.ranges=_e,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=Z}advance(){if(this.baseParse){let ke=this.baseParse.advance();if(!ke)return null;if(this.baseParse=null,this.baseTree=ke,this.startInner(),this.stoppedAt!=null)for(let Ee of this.inner)Ee.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let ke=this.baseTree;return this.stoppedAt!=null&&(ke=new d(ke.type,ke.children,ke.positions,ke.length,ke.propValues.concat([[Ze,this.stoppedAt]]))),ke}let Z=this.inner[this.innerDone],me=Z.parse.advance();if(me){this.innerDone++;let ke=Object.assign(Object.create(null),Z.target.props);ke[x.mounted.id]=new f(me,Z.overlay,Z.parser),Z.target.props=ke}return null}get parsedPos(){if(this.baseParse)return 0;let Z=this.input.length;for(let me=this.innerDone;me<this.inner.length;me++)this.inner[me].from<Z&&(Z=Math.min(Z,this.inner[me].parse.parsedPos));return Z}stopAt(Z){if(this.stoppedAt=Z,this.baseParse)this.baseParse.stopAt(Z);else for(let me=this.innerDone;me<this.inner.length;me++)this.inner[me].parse.stopAt(Z)}startInner(){let Z=new Wt(this.fragments),me=null,ke=null,Ee=new ce(new I(this.baseTree,this.ranges[0].from,0,null),S.IncludeAnonymous|S.IgnoreMounts);e:for(let _e,ge;;){let Me=!0,lt;if(this.stoppedAt!=null&&Ee.from>=this.stoppedAt)Me=!1;else if(Z.hasNode(Ee)){if(me){let Ft=me.mounts.find(Et=>Et.frag.from<=Ee.from&&Et.frag.to>=Ee.to&&Et.mount.overlay);if(Ft)for(let Et of Ft.mount.overlay){let Zt=Et.from+Ft.pos,nn=Et.to+Ft.pos;Zt>=Ee.from&&nn<=Ee.to&&!me.ranges.some(Pn=>Pn.from<nn&&Pn.to>Zt)&&me.ranges.push({from:Zt,to:nn})}}Me=!1}else if(ke&&(ge=it(ke.ranges,Ee.from,Ee.to)))Me=ge!=2;else if(!Ee.type.isAnonymous&&(_e=this.nest(Ee,this.input))&&(Ee.from<Ee.to||!_e.overlay)){Ee.tree||Dn(Ee);let Ft=Z.findMounts(Ee.from,_e.parser);if(typeof _e.overlay=="function")me=new tt(_e.parser,_e.overlay,Ft,this.inner.length,Ee.from,Ee.tree,me);else{let Et=Tn(this.ranges,_e.overlay||(Ee.from<Ee.to?[new y(Ee.from,Ee.to)]:[]));Et.length&&yt(Et),(Et.length||!_e.overlay)&&this.inner.push(new je(_e.parser,Et.length?_e.parser.startParse(this.input,$t(Ft,Et),Et):_e.parser.startParse(""),_e.overlay?_e.overlay.map(Zt=>new y(Zt.from-Ee.from,Zt.to-Ee.from)):null,Ee.tree,Et.length?Et[0].from:Ee.from)),_e.overlay?Et.length&&(ke={ranges:Et,depth:0,prev:ke}):Me=!1}}else if(me&&(lt=me.predicate(Ee))&&(lt===!0&&(lt=new y(Ee.from,Ee.to)),lt.from<lt.to)){let Ft=me.ranges.length-1;Ft>=0&&me.ranges[Ft].to==lt.from?me.ranges[Ft]={from:me.ranges[Ft].from,to:lt.to}:me.ranges.push(lt)}if(Me&&Ee.firstChild())me&&me.depth++,ke&&ke.depth++;else for(;!Ee.nextSibling();){if(!Ee.parent())break e;if(me&&!--me.depth){let Ft=Tn(this.ranges,me.ranges);Ft.length&&(yt(Ft),this.inner.splice(me.index,0,new je(me.parser,me.parser.startParse(this.input,$t(me.mounts,Ft),Ft),me.ranges.map(Et=>new y(Et.from-me.start,Et.to-me.start)),me.target,Ft[0].from))),me=me.prev}ke&&!--ke.depth&&(ke=ke.prev)}}}}function it(Ct,Z,me){for(let ke of Ct){if(ke.from>=me)break;if(ke.to>Z)return ke.from<=Z&&ke.to>=me?2:1}return 0}function Rt(Ct,Z,me,ke,Ee,_e){if(Z<me){let ge=Ct.buffer[Z+1];ke.push(Ct.slice(Z,me,ge)),Ee.push(ge-_e)}}function Dn(Ct){let{node:Z}=Ct,me=[],ke=Z.context.buffer;do me.push(Ct.index),Ct.parent();while(!Ct.tree);let Ee=Ct.tree,_e=Ee.children.indexOf(ke),ge=Ee.children[_e],Me=ge.buffer,lt=[_e];function Ft(Et,Zt,nn,Pn,rn,Vt){let Kn=me[Vt],ur=[],on=[];Rt(ge,Et,Kn,ur,on,Pn);let tr=Me[Kn+1],Cn=Me[Kn+2];lt.push(ur.length);let Wn=Vt?Ft(Kn+4,Me[Kn+3],ge.set.types[Me[Kn]],tr,Cn-tr,Vt-1):Z.toTree();return ur.push(Wn),on.push(tr-Pn),Rt(ge,Me[Kn+3],Zt,ur,on,Pn),new d(nn,ur,on,rn)}Ee.children[_e]=Ft(0,Me.length,h.none,0,ge.length,me.length-1);for(let Et of lt){let Zt=Ct.tree.children[Et],nn=Ct.tree.positions[Et];Ct.yield(new I(Zt,nn+Ct.from,Et,Ct._tree))}}class Mt{constructor(Z,me){this.offset=me,this.done=!1,this.cursor=Z.cursor(S.IncludeAnonymous|S.IgnoreMounts)}moveTo(Z){let{cursor:me}=this,ke=Z-this.offset;for(;!this.done&&me.from<ke;)me.to>=Z&&me.enter(ke,1,S.IgnoreOverlays|S.ExcludeBuffers)||me.next(!1)||(this.done=!0)}hasNode(Z){if(this.moveTo(Z.from),!this.done&&this.cursor.from+this.offset==Z.from&&this.cursor.tree)for(let me=this.cursor.tree;;){if(me==Z.tree)return!0;if(me.children.length&&me.positions[0]==0&&me.children[0]instanceof d)me=me.children[0];else break}return!1}}class Wt{constructor(Z){var me;if(this.fragments=Z,this.curTo=0,this.fragI=0,Z.length){let ke=this.curFrag=Z[0];this.curTo=(me=ke.tree.prop(Ze))!==null&&me!==void 0?me:ke.to,this.inner=new Mt(ke.tree,-ke.offset)}else this.curFrag=this.inner=null}hasNode(Z){for(;this.curFrag&&Z.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=Z.from&&this.curTo>=Z.to&&this.inner.hasNode(Z)}nextFrag(){var Z;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let me=this.curFrag=this.fragments[this.fragI];this.curTo=(Z=me.tree.prop(Ze))!==null&&Z!==void 0?Z:me.to,this.inner=new Mt(me.tree,-me.offset)}}findMounts(Z,me){var ke;let Ee=[];if(this.inner){this.inner.cursor.moveTo(Z,1);for(let _e=this.inner.cursor.node;_e;_e=_e.parent){let ge=(ke=_e.tree)===null||ke===void 0?void 0:ke.prop(x.mounted);if(ge&&ge.parser==me)for(let Me=this.fragI;Me<this.fragments.length;Me++){let lt=this.fragments[Me];if(lt.from>=_e.to)break;lt.tree==this.curFrag.tree&&Ee.push({frag:lt,pos:_e.from-lt.offset,mount:ge})}}}return Ee}}function Tn(Ct,Z){let me=null,ke=Z;for(let Ee=1,_e=0;Ee<Ct.length;Ee++){let ge=Ct[Ee-1].to,Me=Ct[Ee].from;for(;_e<ke.length;_e++){let lt=ke[_e];if(lt.from>=Me)break;lt.to<=ge||(me||(ke=me=Z.slice()),lt.from<ge?(me[_e]=new y(lt.from,ge),lt.to>Me&&me.splice(_e+1,0,new y(Me,lt.to))):lt.to>Me?me[_e--]=new y(Me,lt.to):me.splice(_e--,1))}}return ke}function bn(Ct,Z,me,ke){let Ee=0,_e=0,ge=!1,Me=!1,lt=-1e9,Ft=[];for(;;){let Et=Ee==Ct.length?1e9:ge?Ct[Ee].to:Ct[Ee].from,Zt=_e==Z.length?1e9:Me?Z[_e].to:Z[_e].from;if(ge!=Me){let nn=Math.max(lt,me),Pn=Math.min(Et,Zt,ke);nn<Pn&&Ft.push(new y(nn,Pn))}if(lt=Math.min(Et,Zt),lt==1e9)break;Et==lt&&(ge?(ge=!1,Ee++):ge=!0),Zt==lt&&(Me?(Me=!1,_e++):Me=!0)}return Ft}function $t(Ct,Z){let me=[];for(let{pos:ke,mount:Ee,frag:_e}of Ct){let ge=ke+(Ee.overlay?Ee.overlay[0].from:0),Me=ge+Ee.tree.length,lt=Math.max(_e.from,ge),Ft=Math.min(_e.to,Me);if(Ee.overlay){let Et=Ee.overlay.map(nn=>new y(nn.from+ke,nn.to+ke)),Zt=bn(Z,Et,lt,Ft);for(let nn=0,Pn=lt;;nn++){let rn=nn==Zt.length,Vt=rn?Ft:Zt[nn].from;if(Vt>Pn&&me.push(new X(Pn,Vt,Ee.tree,-ge,_e.from>=Pn||_e.openStart,_e.to<=Vt||_e.openEnd)),rn)break;Pn=Zt[nn].to}}else me.push(new X(lt,Ft,Ee.tree,-ge,_e.from>=ge||_e.openStart,_e.to<=Me||_e.openEnd))}return me}},90588:(Ge,w,u)=>{"use strict";u.d(w,{v:()=>l});function l(g,y){if(!g)throw new Error(y)}},90680:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.switchMap=void 0;var l=u(19724),g=u(65212),y=u(17214);function x(f,p){return g.operate(function(h,E){var v=null,m=0,S=!1,d=function(){return S&&!v&&E.complete()};h.subscribe(y.createOperatorSubscriber(E,function(O){v?.unsubscribe();var R=0,C=m++;l.innerFrom(f(O,C)).subscribe(v=y.createOperatorSubscriber(E,function(L){return E.next(p?p(O,L,C,R++):L)},function(){v=null,d()}))},function(){S=!0,d()}))})}w.switchMap=x},90865:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var u=w.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},l=w.containerStyleAutoHeight={height:"auto"},g=w.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},y=w.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},x=w.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},f=w.trackHorizontalStyleDefault={position:"absolute",height:6},p=w.trackVerticalStyleDefault={position:"absolute",width:6},h=w.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},E=w.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},v=w.disableSelectStyle={userSelect:"none"},m=w.disableSelectStyleReset={userSelect:""}},91349:(Ge,w,u)=>{"use strict";u.d(w,{O:()=>y});var l=u(14936),g=u(92488);function y(f,p,h){const E=(0,g.b)(f,p)/1e3;return(0,l.u)(h?.roundingMethod)(E)}var x=null},91374:(Ge,w,u)=>{"use strict";u.d(w,{j:()=>l});function l(y,x,f,p,h){let E;for(x+=p;x<f;x+=p)if(E=h(y.slice(x-p,x),y.slice(x,x+p)),E)return E;return!1}function g(y,x){const[f,p]=y,[h,E]=x,v=((f[0]-h[0])*(h[1]-E[1])-(f[1]-h[1])*(h[0]-E[0]))/((f[0]-p[0])*(h[1]-E[1])-(f[1]-p[1])*(h[0]-E[0])),m=((f[0]-h[0])*(f[1]-p[1])-(f[1]-h[1])*(f[0]-p[0]))/((f[0]-p[0])*(h[1]-E[1])-(f[1]-p[1])*(h[0]-E[0]));if(0<=v&&v<=1&&0<=m&&m<=1)return[f[0]+v*(p[0]-f[0]),f[1]+v*(p[1]-f[1])]}},91452:(Ge,w,u)=>{var l=u(81757),g=u(17999);function y(x,f){function p(E,v,m,S){try{var d=x[E](v),O=d.value;return O instanceof l?f.resolve(O.v).then(function(R){p("next",R,m,S)},function(R){p("throw",R,m,S)}):f.resolve(O).then(function(R){d.value=R,m(d)},function(R){return p("throw",R,m,S)})}catch(R){S(R)}}var h;this.next||(g(y.prototype),g(y.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),g(this,"_invoke",function(E,v,m){function S(){return new f(function(d,O){p(E,m,d,O)})}return h=h?h.then(S,S):S()},!0)}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},92052:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.TestTools=w.Immediate=void 0;var u=1,l,g={};function y(x){return x in g?(delete g[x],!0):!1}w.Immediate={setImmediate:function(x){var f=u++;return g[f]=!0,l||(l=Promise.resolve()),l.then(function(){return y(f)&&x()}),f},clearImmediate:function(x){y(x)}},w.TestTools={pending:function(){return Object.keys(g).length}}},92070:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.reduce=void 0;var l=u(78531),g=u(65212);function y(x,f){return g.operate(l.scanInternals(x,f,arguments.length>=2,!1,!0))}w.reduce=y},92145:(Ge,w,u)=>{"use strict";u.d(w,{Bi:()=>v,X1:()=>S});var l=u(49953),g=u(7049),y=u(96540);function x(d){let[O,R]=(0,y.useState)(d),C=(0,y.useRef)(null),L=(0,g.J)(()=>{if(!C.current)return;let I=C.current.next();if(I.done){C.current=null;return}O===I.value?L():R(I.value)});(0,l.N)(()=>{C.current&&L()});let j=(0,g.J)(I=>{C.current=I(O),L()});return[O,j]}var f=u(60415);let p=!!(typeof window<"u"&&window.document&&window.document.createElement),h=new Map,E;typeof FinalizationRegistry<"u"&&(E=new FinalizationRegistry(d=>{h.delete(d)}));function v(d){let[O,R]=(0,y.useState)(d),C=(0,y.useRef)(null),L=(0,f.Cc)(O),j=(0,y.useRef)(null);if(E&&E.register(j,L),p){const I=h.get(L);I&&!I.includes(C)?I.push(C):h.set(L,[C])}return(0,l.N)(()=>{let I=L;return()=>{E&&E.unregister(j),h.delete(I)}},[L]),(0,y.useEffect)(()=>{let I=C.current;return I&&R(I),()=>{I&&(C.current=null)}}),L}function m(d,O){if(d===O)return d;let R=h.get(d);if(R)return R.forEach(L=>L.current=O),O;let C=h.get(O);return C?(C.forEach(L=>L.current=d),d):O}function S(d=[]){let O=v(),[R,C]=x(O),L=(0,y.useCallback)(()=>{C(function*(){yield O,yield document.getElementById(O)?O:void 0})},[O,C]);return(0,l.N)(L,[O,L,...d]),R}},92359:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.skipLast=void 0;var l=u(87699),g=u(65212),y=u(17214);function x(f){return f<=0?l.identity:g.operate(function(p,h){var E=new Array(f),v=0;return p.subscribe(y.createOperatorSubscriber(h,function(m){var S=v++;if(S<f)E[S]=m;else{var d=S%f,O=E[d];E[d]=m,h.next(O)}})),function(){E=null}})}w.skipLast=x},92488:(Ge,w,u)=>{"use strict";u.d(w,{b:()=>g});var l=u(29407);function g(x,f){return+(0,l.a)(x)-+(0,l.a)(f)}var y=null},92497:(Ge,w,u)=>{"use strict";u.d(w,{KG:()=>y,_n:()=>l,d6:()=>x,z2:()=>g});function l(f,p,h,E){for(let v=0,m=h.length;v<m;++v)f[p++]=h[v];return p}function g(f,p,h,E){for(let v=0,m=h.length;v<m;++v){const S=h[v];for(let d=0;d<E;++d)f[p++]=S[d]}return p}function y(f,p,h,E,v){v=v||[];let m=0;for(let S=0,d=h.length;S<d;++S){const O=g(f,p,h[S],E);v[m++]=O,p=O}return v.length=m,v}function x(f,p,h,E,v){v=v||[];let m=0;for(let S=0,d=h.length;S<d;++S){const O=y(f,p,h[S],E,v[m]);O.length===0&&(O[0]=p),v[m++]=O,p=O[O.length-1]}return v.length=m,v}},92516:(Ge,w,u)=>{"use strict";u.d(w,{q:()=>g});let l={};function g(){return l}function y(x){l=x}},93031:(Ge,w,u)=>{"use strict";u.d(w,{U:()=>y});var l=u(69862),g=u(58307);function y(x){return x===void 0&&(x=1/0),(0,l.Z)(g.D,x)}},93049:(Ge,w,u)=>{"use strict";function l(g){x.debug=x,x.default=x,x.coerce=m,x.disable=E,x.enable=h,x.enabled=v,x.humanize=u(6585),Object.keys(g).forEach(function(S){x[S]=g[S]}),x.instances=[],x.names=[],x.skips=[],x.formatters={};function y(S){for(var d=0,O=0;O<S.length;O++)d=(d<<5)-d+S.charCodeAt(O),d|=0;return x.colors[Math.abs(d)%x.colors.length]}x.selectColor=y;function x(S){var d;function O(){if(O.enabled){for(var R=arguments.length,C=new Array(R),L=0;L<R;L++)C[L]=arguments[L];var j=O,I=Number(new Date),U=I-(d||I);j.diff=U,j.prev=d,j.curr=I,d=I,C[0]=x.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");var $=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,function(re,Se){if(re==="%%")return re;$++;var z=x.formatters[Se];if(typeof z=="function"){var Q=C[$];re=z.call(j,Q),C.splice($,1),$--}return re}),x.formatArgs.call(j,C);var ee=j.log||x.log;ee.apply(j,C)}}return O.namespace=S,O.enabled=x.enabled(S),O.useColors=x.useColors(),O.color=y(S),O.destroy=f,O.extend=p,typeof x.init=="function"&&x.init(O),x.instances.push(O),O}function f(){var S=x.instances.indexOf(this);return S!==-1?(x.instances.splice(S,1),!0):!1}function p(S,d){return x(this.namespace+(typeof d>"u"?":":d)+S)}function h(S){x.save(S),x.names=[],x.skips=[];var d,O=(typeof S=="string"?S:"").split(/[\s,]+/),R=O.length;for(d=0;d<R;d++)O[d]&&(S=O[d].replace(/\*/g,".*?"),S[0]==="-"?x.skips.push(new RegExp("^"+S.substr(1)+"$")):x.names.push(new RegExp("^"+S+"$")));for(d=0;d<x.instances.length;d++){var C=x.instances[d];C.enabled=x.enabled(C.namespace)}}function E(){x.enable("")}function v(S){if(S[S.length-1]==="*")return!0;var d,O;for(d=0,O=x.skips.length;d<O;d++)if(x.skips[d].test(S))return!1;for(d=0,O=x.names.length;d<O;d++)if(x.names[d].test(S))return!0;return!1}function m(S){return S instanceof Error?S.stack||S.message:S}return x.enable(x.load()),x}Ge.exports=l},93086:(Ge,w,u)=>{var l=u(73338),g=u(96540),y=u(40961),x=u(62053);function f(m,S,d,O){Object.defineProperty(m,S,{get:d,set:O,enumerable:!0,configurable:!0})}function p(m){return m&&m.__esModule?m.default:m}f(Ge.exports,"Portal",()=>E),f(Ge.exports,"Root",()=>v);const h="Portal",E=g.forwardRef((m,S)=>{var d;const{container:O=globalThis==null||(d=globalThis.document)===null||d===void 0?void 0:d.body,...R}=m;return O?p(y).createPortal(g.createElement(x.Primitive.div,p(l)({},R,{ref:S})),O):null}),v=E},93146:(Ge,w,u)=>{for(var l=u(13491),g=typeof window>"u"?u.g:window,y=["moz","webkit"],x="AnimationFrame",f=g["request"+x],p=g["cancel"+x]||g["cancelRequest"+x],h=0;!f&&h<y.length;h++)f=g[y[h]+"Request"+x],p=g[y[h]+"Cancel"+x]||g[y[h]+"CancelRequest"+x];if(!f||!p){var E=0,v=0,m=[],S=1e3/60;f=function(d){if(m.length===0){var O=l(),R=Math.max(0,S-(O-E));E=R+O,setTimeout(function(){var C=m.slice(0);m.length=0;for(var L=0;L<C.length;L++)if(!C[L].cancelled)try{C[L].callback(E)}catch(j){setTimeout(function(){throw j},0)}},Math.round(R))}return m.push({handle:++v,callback:d,cancelled:!1}),v},p=function(d){for(var O=0;O<m.length;O++)m[O].handle===d&&(m[O].cancelled=!0)}}Ge.exports=function(d){return f.call(g,d)},Ge.exports.cancel=function(){p.apply(g,arguments)},Ge.exports.polyfill=function(d){d||(d=g),d.requestAnimationFrame=f,d.cancelAnimationFrame=p}},93225:(Ge,w,u)=>{"use strict";u.d(w,{e:()=>v});var l=u(43107),g=u(96540),y=u(7049),x=u(24836);function f(m){let{ref:S,onInteractOutside:d,isDisabled:O,onInteractOutsideStart:R}=m,C=(0,g.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),L=(0,y.J)(I=>{d&&p(I,S)&&(R&&R(I),C.current.isPointerDown=!0)}),j=(0,y.J)(I=>{d&&d(I)});(0,g.useEffect)(()=>{let I=C.current;if(O)return;const U=S.current,$=(0,x.TW)(U);if(typeof PointerEvent<"u"){let ee=re=>{I.isPointerDown&&p(re,S)&&j(re),I.isPointerDown=!1};return $.addEventListener("pointerdown",L,!0),$.addEventListener("click",ee,!0),()=>{$.removeEventListener("pointerdown",L,!0),$.removeEventListener("click",ee,!0)}}},[S,O,L,j])}function p(m,S){if(m.button>0)return!1;if(m.target){const d=m.target.ownerDocument;if(!d||!d.documentElement.contains(m.target)||m.target.closest("[data-react-aria-top-layer]"))return!1}return S.current?!m.composedPath().includes(S.current):!1}var h=u(8490);const E=[];function v(m,S){let{onClose:d,shouldCloseOnBlur:O,isOpen:R,isDismissable:C=!1,isKeyboardDismissDisabled:L=!1,shouldCloseOnInteractOutside:j}=m;(0,g.useEffect)(()=>{if(R&&!E.includes(S))return E.push(S),()=>{let z=E.indexOf(S);z>=0&&E.splice(z,1)}},[R,S]);let I=()=>{E[E.length-1]===S&&d&&d()},U=z=>{(!j||j(z.target))&&E[E.length-1]===S&&(z.stopPropagation(),z.preventDefault())},$=z=>{(!j||j(z.target))&&(E[E.length-1]===S&&(z.stopPropagation(),z.preventDefault()),I())},ee=z=>{z.key==="Escape"&&!L&&!z.nativeEvent.isComposing&&(z.stopPropagation(),z.preventDefault(),I())};f({ref:S,onInteractOutside:C&&R?$:void 0,onInteractOutsideStart:U});let{focusWithinProps:re}=(0,h.R)({isDisabled:!O,onBlurWithin:z=>{!z.relatedTarget||(0,l.Pu)(z.relatedTarget)||(!j||j(z.relatedTarget))&&d?.()}}),Se=z=>{z.target===z.currentTarget&&z.preventDefault()};return{overlayProps:{onKeyDown:ee,...re},underlayProps:{onPointerDown:Se}}}},93237:(Ge,w,u)=>{var l=u(97352),g=u(11094),y=u(61358).Readable,x=u(61358).PassThrough,f=u(60455);w=Ge.exports=function(p){p==null&&(p={});var h=p.contentType||"application/logplex-1";return function(E,v,m){if(E._body)return m();var S=E.header("content-type")===h;return S&&(E._body=!0,E.body=new x({objectMode:!0}),E.pipe(f.streamParser()).pipe(E.body)),m()}}},93275:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.dateTimestampProvider=void 0,w.dateTimestampProvider={now:function(){return(w.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},93399:(Ge,w,u)=>{"use strict";u.d(w,{Nf:()=>p});let l=!1,g=!1;function y(){l=!0}function x(){return l}function f(){g=!0}function p(){return g}},93405:function(Ge,w,u){"use strict";var l=this&&this.__read||function(v,m){var S=typeof Symbol=="function"&&v[Symbol.iterator];if(!S)return v;var d=S.call(v),O,R=[],C;try{for(;(m===void 0||m-- >0)&&!(O=d.next()).done;)R.push(O.value)}catch(L){C={error:L}}finally{try{O&&!O.done&&(S=d.return)&&S.call(d)}finally{if(C)throw C.error}}return R},g=this&&this.__spreadArray||function(v,m){for(var S=0,d=m.length,O=v.length;S<d;S++,O++)v[O]=m[S];return v};Object.defineProperty(w,"__esModule",{value:!0}),w.share=void 0;var y=u(19724),x=u(54427),f=u(2708),p=u(65212);function h(v){v===void 0&&(v={});var m=v.connector,S=m===void 0?function(){return new x.Subject}:m,d=v.resetOnError,O=d===void 0?!0:d,R=v.resetOnComplete,C=R===void 0?!0:R,L=v.resetOnRefCountZero,j=L===void 0?!0:L;return function(I){var U,$,ee,re=0,Se=!1,z=!1,Q=function(){$?.unsubscribe(),$=void 0},ce=function(){Q(),U=ee=void 0,Se=z=!1},se=function(){var q=U;ce(),q?.unsubscribe()};return p.operate(function(q,te){re++,!z&&!Se&&Q();var A=ee=ee??S();te.add(function(){re--,re===0&&!z&&!Se&&($=E(se,j))}),A.subscribe(te),!U&&re>0&&(U=new f.SafeSubscriber({next:function(T){return A.next(T)},error:function(T){z=!0,Q(),$=E(ce,O,T),A.error(T)},complete:function(){Se=!0,Q(),$=E(ce,C),A.complete()}}),y.innerFrom(q).subscribe(U))})(I)}}w.share=h;function E(v,m){for(var S=[],d=2;d<arguments.length;d++)S[d-2]=arguments[d];if(m===!0){v();return}if(m!==!1){var O=new f.SafeSubscriber({next:function(){O.unsubscribe(),v()}});return y.innerFrom(m.apply(void 0,g([],l(S)))).subscribe(O)}}},93578:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.diffLines=f,w.diffTrimmedLines=p,w.lineDiff=void 0;var l=y(u(85969)),g=u(36571);function y(h){return h&&h.__esModule?h:{default:h}}var x=new l.default;w.lineDiff=x,x.tokenize=function(h){this.options.stripTrailingCr&&(h=h.replace(/\r\n/g,` `));var E=[],v=h.split(/(\n|\r\n)/);v[v.length-1]||v.pop();for(var m=0;m<v.length;m++){var S=v[m];m%2&&!this.options.newlineIsToken?E[E.length-1]+=S:(this.options.ignoreWhitespace&&(S=S.trim()),E.push(S))}return E};function f(h,E,v){return x.diff(h,E,v)}function p(h,E,v){var m=(0,g.generateOptions)(v,{ignoreWhitespace:!0});return x.diff(h,E,m)}},93581:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>Pi});var l=u(74848),g=u(96540),y=u(34164);const x=(mt,tn,or,rt)=>{if(or==="length"||or==="prototype"||or==="arguments"||or==="caller")return;const St=Object.getOwnPropertyDescriptor(mt,or),_n=Object.getOwnPropertyDescriptor(tn,or);!f(St,_n)&&rt||Object.defineProperty(mt,or,_n)},f=function(mt,tn){return mt===void 0||mt.configurable||mt.writable===tn.writable&&mt.enumerable===tn.enumerable&&mt.configurable===tn.configurable&&(mt.writable||mt.value===tn.value)},p=(mt,tn)=>{const or=Object.getPrototypeOf(tn);or!==Object.getPrototypeOf(mt)&&Object.setPrototypeOf(mt,or)},h=(mt,tn)=>`/* Wrapped ${mt}*/ ${tn}`,E=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),v=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),m=(mt,tn,or)=>{const rt=or===""?"":`with ${or.trim()}() `,St=h.bind(null,rt,tn.toString());Object.defineProperty(St,"name",v);const{writable:_n,enumerable:vn,configurable:Ln}=E;Object.defineProperty(mt,"toString",{value:St,writable:_n,enumerable:vn,configurable:Ln})};function S(mt,tn,{ignoreNonConfigurable:or=!1}={}){const{name:rt}=mt;for(const St of Reflect.ownKeys(tn))x(mt,tn,St,or);return p(mt,tn),m(mt,tn,rt),mt}const d=new WeakMap,O=new WeakMap;function R(mt,{cacheKey:tn,cache:or=new Map,maxAge:rt}={}){if(rt===0)return mt;if(typeof rt=="number"){if(rt>2147483647)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(rt<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const St=function(..._n){const vn=tn?tn(_n):_n[0],Ln=or.get(vn);if(Ln)return Ln.data;const _r=mt.apply(this,_n),Br=typeof rt=="function"?rt(..._n):rt;if(or.set(vn,{data:_r,maxAge:Br?Date.now()+Br:Number.POSITIVE_INFINITY}),Br&&Br>0&&Br!==Number.POSITIVE_INFINITY){const Kr=setTimeout(()=>{or.delete(vn)},Br);Kr.unref?.();const Jr=O.get(mt)??new Set;Jr.add(Kr),O.set(mt,Jr)}return _r};return S(St,mt,{ignoreNonConfigurable:!0}),d.set(St,or),St}function C(mt={}){const tn=new WeakMap;return(or,rt,St)=>{const _n=or[rt];if(typeof _n!="function")throw new TypeError("The decorated value must be a function");delete St.value,delete St.writable,St.get=function(){if(!tn.has(this)){const vn=R(_n,mt);return tn.set(this,vn),vn}return tn.get(this)}}}function L(mt){const tn=d.get(mt);if(!tn)throw new TypeError("Can't clear a function that was not memoized!");if(typeof tn.clear!="function")throw new TypeError("The cache Map can't be cleared!");tn.clear();for(const or of O.get(mt)??[])clearTimeout(or)}function j(mt){return typeof mt=="string"}function I(mt,tn,or){return or.indexOf(mt)===tn}function U(mt){return mt.toLowerCase()===mt}function $(mt){return mt.indexOf(",")===-1?mt:mt.split(",")}function ee(mt){if(!mt)return mt;if(mt==="C"||mt==="posix"||mt==="POSIX")return"en-US";if(mt.indexOf(".")!==-1){var tn=mt.split(".")[0],or=tn===void 0?"":tn;return ee(or)}if(mt.indexOf("@")!==-1){var rt=mt.split("@")[0],or=rt===void 0?"":rt;return ee(or)}if(mt.indexOf("-")===-1||!U(mt))return mt;var St=mt.split("-"),_n=St[0],vn=St[1],Ln=vn===void 0?"":vn;return"".concat(_n,"-").concat(Ln.toUpperCase())}function re(mt){var tn=mt===void 0?{}:mt,or=tn.useFallbackLocale,rt=or===void 0?!0:or,St=tn.fallbackLocale,_n=St===void 0?"en-US":St,vn=[];if(typeof navigator<"u"){for(var Ln=navigator.languages||[],_r=[],Br=0,Kr=Ln;Br<Kr.length;Br++){var Jr=Kr[Br];_r=_r.concat($(Jr))}var ii=navigator.language,le=ii&&$(ii);vn=vn.concat(_r,le)}return rt&&vn.push(_n),vn.filter(j).map(ee).filter(I)}var Se=R(re,{cacheKey:JSON.stringify});function z(mt){return Se(mt)[0]||null}var Q=R(z,{cacheKey:JSON.stringify});const ce=Q;function se(mt,tn,or){return function(St,_n=or){const vn=mt(St)+_n;return tn(vn)}}function q(mt){return function(or){return new Date(mt(or).getTime()-1)}}function te(mt,tn){return function(rt){return[mt(rt),tn(rt)]}}function A(mt){if(mt instanceof Date)return mt.getFullYear();if(typeof mt=="number")return mt;const tn=Number.parseInt(mt,10);if(typeof mt=="string"&&!Number.isNaN(tn))return tn;throw new Error(`Failed to get year from date: ${mt}.`)}function T(mt){if(mt instanceof Date)return mt.getMonth();throw new Error(`Failed to get month from date: ${mt}.`)}function B(mt){if(mt instanceof Date)return mt.getMonth()+1;throw new Error(`Failed to get human-readable month from date: ${mt}.`)}function X(mt){if(mt instanceof Date)return mt.getDate();throw new Error(`Failed to get year from date: ${mt}.`)}function ue(mt){if(mt instanceof Date)return mt.getHours();if(typeof mt=="string"){const tn=mt.split(":");if(tn.length>=2){const or=tn[0];if(or){const rt=Number.parseInt(or,10);if(!Number.isNaN(rt))return rt}}}throw new Error(`Failed to get hours from date: ${mt}.`)}function ie(mt){if(mt instanceof Date)return mt.getMinutes();if(typeof mt=="string"){const tn=mt.split(":");if(tn.length>=2){const or=tn[1]||"0",rt=Number.parseInt(or,10);if(!Number.isNaN(rt))return rt}}throw new Error(`Failed to get minutes from date: ${mt}.`)}function Te(mt){if(mt instanceof Date)return mt.getSeconds();if(typeof mt=="string"){const tn=mt.split(":");if(tn.length>=2){const or=tn[2]||"0",rt=Number.parseInt(or,10);if(!Number.isNaN(rt))return rt}}throw new Error(`Failed to get seconds from date: ${mt}.`)}function je(mt){if(mt instanceof Date)return mt.getMilliseconds();if(typeof mt=="string"){const tn=mt.split(":");if(tn.length>=2){const rt=(tn[2]||"0").split(".")[1]||"0",St=Number.parseInt(rt,10);if(!Number.isNaN(St))return St}}throw new Error(`Failed to get seconds from date: ${mt}.`)}function yt(mt){const tn=A(mt),or=tn+(-tn+1)%100,rt=new Date;return rt.setFullYear(or,0,1),rt.setHours(0,0,0,0),rt}const tt=se(A,yt,-100),Ze=se(A,yt,100),Ne=q(Ze),it=se(A,Ne,-100),Rt=se(A,Ne,100),Dn=te(yt,Ne);function Mt(mt){const tn=A(mt),or=tn+(-tn+1)%10,rt=new Date;return rt.setFullYear(or,0,1),rt.setHours(0,0,0,0),rt}const Wt=se(A,Mt,-10),Tn=se(A,Mt,10),bn=q(Tn),$t=se(A,bn,-10),Ct=se(A,bn,10),Z=te(Mt,bn);function me(mt){const tn=A(mt),or=new Date;return or.setFullYear(tn,0,1),or.setHours(0,0,0,0),or}const ke=se(A,me,-1),Ee=se(A,me,1),_e=q(Ee),ge=se(A,_e,-1),Me=se(A,_e,1),lt=te(me,_e);function Ft(mt,tn){return function(rt,St=tn){const _n=A(rt),vn=T(rt)+St,Ln=new Date;return Ln.setFullYear(_n,vn,1),Ln.setHours(0,0,0,0),mt(Ln)}}function Et(mt){const tn=A(mt),or=T(mt),rt=new Date;return rt.setFullYear(tn,or,1),rt.setHours(0,0,0,0),rt}const Zt=Ft(Et,-1),nn=Ft(Et,1),Pn=q(nn),rn=Ft(Pn,-1),Vt=Ft(Pn,1),Kn=te(Et,Pn);function ur(mt,tn){return function(rt,St=tn){const _n=A(rt),vn=T(rt),Ln=X(rt)+St,_r=new Date;return _r.setFullYear(_n,vn,Ln),_r.setHours(0,0,0,0),mt(_r)}}function on(mt){const tn=A(mt),or=T(mt),rt=X(mt),St=new Date;return St.setFullYear(tn,or,rt),St.setHours(0,0,0,0),St}const tr=ur(on,-1),Cn=ur(on,1),Wn=q(Cn),er=ur(Wn,-1),Fn=ur(Wn,1),en=te(on,Wn);function gn(mt){return X(Pn(mt))}function kn(mt,tn=2){const or=`${mt}`;return or.length>=tn?mt:`0000${or}`.slice(-tn)}function Jn(mt){const tn=kn(ue(mt)),or=kn(ie(mt));return`${tn}:${or}`}function Nn(mt){const tn=kn(ue(mt)),or=kn(ie(mt)),rt=kn(Te(mt));return`${tn}:${or}:${rt}`}function kr(mt){const tn=kn(A(mt),4),or=kn(B(mt));return`${tn}-${or}`}function bt(mt){const tn=kn(A(mt),4),or=kn(B(mt)),rt=kn(X(mt));return`${tn}-${or}-${rt}`}function ne(mt){return`${bt(mt)}T${Nn(mt)}`}var fe={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},K={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},he=[0,1,2,3,4,5,6],Fe=new Map;function Nt(mt){return function(or,rt){var St=or||ce();Fe.has(St)||Fe.set(St,new Map);var _n=Fe.get(St);return _n.has(mt)||_n.set(mt,new Intl.DateTimeFormat(St||void 0,mt).format),_n.get(mt)(rt)}}function ln(mt){var tn=new Date(mt);return new Date(tn.setHours(12))}function pn(mt){return function(tn,or){return Nt(mt)(tn,ln(or))}}var Yn={day:"numeric",month:"numeric",year:"numeric"},ht={day:"numeric"},De={day:"numeric",month:"long",year:"numeric"},we={month:"long"},Ke={month:"long",year:"numeric"},be={weekday:"short"},pt={weekday:"long"},We={year:"numeric"},Je=pn(Yn),ye=pn(ht),Qe=pn(De),ze=pn(we),qe=pn(Ke),Pt=pn(be),zt=pn(pt),un=pn(We),hn=he[0],xt=he[5],_t=he[6];function qt(mt,tn){tn===void 0&&(tn=fe.ISO_8601);var or=mt.getDay();switch(tn){case fe.ISO_8601:return(or+6)%7;case fe.ISLAMIC:return(or+1)%7;case fe.HEBREW:case fe.GREGORY:return or;default:throw new Error("Unsupported calendar type.")}}function fn(mt){var tn=yt(mt);return A(tn)}function On(mt){var tn=Mt(mt);return A(tn)}function Gn(mt,tn){tn===void 0&&(tn=fe.ISO_8601);var or=A(mt),rt=T(mt),St=mt.getDate()-qt(mt,tn);return new Date(or,rt,St)}function Bn(mt,tn){tn===void 0&&(tn=fe.ISO_8601);var or=tn===fe.GREGORY?fe.GREGORY:fe.ISO_8601,rt=Gn(mt,tn),St=A(mt)+1,_n,vn;do _n=new Date(St,0,or===fe.ISO_8601?4:1),vn=Gn(_n,tn),St-=1;while(mt<vn);return Math.round((rt.getTime()-vn.getTime())/(864e5*7))+1}function Lr(mt,tn){switch(mt){case"century":return yt(tn);case"decade":return Mt(tn);case"year":return me(tn);case"month":return Et(tn);case"day":return on(tn);default:throw new Error("Invalid rangeType: ".concat(mt))}}function An(mt,tn){switch(mt){case"century":return tt(tn);case"decade":return Wt(tn);case"year":return ke(tn);case"month":return Zt(tn);default:throw new Error("Invalid rangeType: ".concat(mt))}}function Un(mt,tn){switch(mt){case"century":return Ze(tn);case"decade":return Tn(tn);case"year":return Ee(tn);case"month":return nn(tn);default:throw new Error("Invalid rangeType: ".concat(mt))}}function cr(mt,tn){switch(mt){case"decade":return Wt(tn,-100);case"year":return ke(tn,-10);case"month":return Zt(tn,-12);default:throw new Error("Invalid rangeType: ".concat(mt))}}function mr(mt,tn){switch(mt){case"decade":return Tn(tn,100);case"year":return Ee(tn,10);case"month":return nn(tn,12);default:throw new Error("Invalid rangeType: ".concat(mt))}}function hr(mt,tn){switch(mt){case"century":return Ne(tn);case"decade":return bn(tn);case"year":return _e(tn);case"month":return Pn(tn);case"day":return Wn(tn);default:throw new Error("Invalid rangeType: ".concat(mt))}}function ar(mt,tn){switch(mt){case"century":return it(tn);case"decade":return $t(tn);case"year":return ge(tn);case"month":return rn(tn);default:throw new Error("Invalid rangeType: ".concat(mt))}}function Cr(mt,tn){switch(mt){case"decade":return $t(tn,-100);case"year":return ge(tn,-10);case"month":return rn(tn,-12);default:throw new Error("Invalid rangeType: ".concat(mt))}}function Yr(mt,tn){switch(mt){case"century":return Dn(tn);case"decade":return Z(tn);case"year":return lt(tn);case"month":return Kn(tn);case"day":return en(tn);default:throw new Error("Invalid rangeType: ".concat(mt))}}function Xr(mt,tn,or){var rt=[tn,or].sort(function(St,_n){return St.getTime()-_n.getTime()});return[Lr(mt,rt[0]),hr(mt,rt[1])]}function ni(mt,tn,or){return or.map(function(rt){return(tn||un)(mt,rt)}).join(" \u2013 ")}function ki(mt,tn,or){return ni(mt,tn,Dn(or))}function zr(mt,tn,or){return ni(mt,tn,Z(or))}function Ur(mt){return mt.getDay()===new Date().getDay()}function jt(mt,tn){tn===void 0&&(tn=fe.ISO_8601);var or=mt.getDay();switch(tn){case fe.ISLAMIC:case fe.HEBREW:return or===xt||or===_t;case fe.ISO_8601:case fe.GREGORY:return or===_t||or===hn;default:throw new Error("Unsupported calendar type.")}}var sn="react-calendar__navigation";function Rn(mt){var tn=mt.activeStartDate,or=mt.drillUp,rt=mt.formatMonthYear,St=rt===void 0?qe:rt,_n=mt.formatYear,vn=_n===void 0?un:_n,Ln=mt.locale,_r=mt.maxDate,Br=mt.minDate,Kr=mt.navigationAriaLabel,Jr=Kr===void 0?"":Kr,ii=mt.navigationAriaLive,le=mt.navigationLabel,Ae=mt.next2AriaLabel,Oe=Ae===void 0?"":Ae,et=mt.next2Label,Ot=et===void 0?"\xBB":et,It=mt.nextAriaLabel,Mn=It===void 0?"":It,mn=mt.nextLabel,At=mn===void 0?"\u203A":mn,Ut=mt.prev2AriaLabel,jn=Ut===void 0?"":Ut,Jt=mt.prev2Label,dr=Jt===void 0?"\xAB":Jt,wr=mt.prevAriaLabel,Hr=wr===void 0?"":wr,Ar=mt.prevLabel,yi=Ar===void 0?"\u2039":Ar,Rr=mt.setActiveStartDate,si=mt.showDoubleView,Si=mt.view,$i=mt.views,Hi=$i.indexOf(Si)>0,Oa=Si!=="century",Ma=An(Si,tn),Ua=Oa?cr(Si,tn):void 0,Xa=Un(Si,tn),Na=Oa?mr(Si,tn):void 0,za=function(){if(Ma.getFullYear()<0)return!0;var uo=ar(Si,tn);return Br&&Br>=uo}(),qa=Oa&&function(){if(Ua.getFullYear()<0)return!0;var uo=Cr(Si,tn);return Br&&Br>=uo}(),no=_r&&_r<Xa,wo=Oa&&_r&&_r<Na;function go(){Rr(Ma,"prev")}function Ka(){Rr(Ua,"prev2")}function Ia(){Rr(Xa,"next")}function Us(){Rr(Na,"next2")}function Vs(uo){var Ds=function(){switch(Si){case"century":return ki(Ln,vn,uo);case"decade":return zr(Ln,vn,uo);case"year":return vn(Ln,uo);case"month":return St(Ln,uo);default:throw new Error("Invalid view: ".concat(Si,"."))}}();return le?le({date:uo,label:Ds,locale:Ln||Q()||void 0,view:Si}):Ds}function Is(){var uo="".concat(sn,"__label");return(0,l.jsxs)("button",{"aria-label":Jr,"aria-live":ii,className:uo,disabled:!Hi,onClick:or,style:{flexGrow:1},type:"button",children:[(0,l.jsx)("span",{className:"".concat(uo,"__labelText ").concat(uo,"__labelText--from"),children:Vs(tn)}),si?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"".concat(uo,"__divider"),children:" \u2013 "}),(0,l.jsx)("span",{className:"".concat(uo,"__labelText ").concat(uo,"__labelText--to"),children:Vs(Xa)})]}):null]})}return(0,l.jsxs)("div",{className:sn,children:[dr!==null&&Oa?(0,l.jsx)("button",{"aria-label":jn,className:"".concat(sn,"__arrow ").concat(sn,"__prev2-button"),disabled:qa,onClick:Ka,type:"button",children:dr}):null,yi!==null&&(0,l.jsx)("button",{"aria-label":Hr,className:"".concat(sn,"__arrow ").concat(sn,"__prev-button"),disabled:za,onClick:go,type:"button",children:yi}),Is(),At!==null&&(0,l.jsx)("button",{"aria-label":Mn,className:"".concat(sn,"__arrow ").concat(sn,"__next-button"),disabled:no,onClick:Ia,type:"button",children:At}),Ot!==null&&Oa?(0,l.jsx)("button",{"aria-label":Oe,className:"".concat(sn,"__arrow ").concat(sn,"__next2-button"),disabled:wo,onClick:Us,type:"button",children:Ot}):null]})}var H=function(){return H=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},H.apply(this,arguments)},Be=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or};function wn(mt){return"".concat(mt,"%")}function bi(mt){var tn=mt.children,or=mt.className,rt=mt.count,St=mt.direction,_n=mt.offset,vn=mt.style,Ln=mt.wrap,_r=Be(mt,["children","className","count","direction","offset","style","wrap"]);return(0,l.jsx)("div",H({className:or,style:H({display:"flex",flexDirection:St,flexWrap:Ln?"wrap":"nowrap"},vn)},_r,{children:g.Children.map(tn,function(Br,Kr){var Jr=_n&&Kr===0?wn(100*_n/rt):null;return(0,g.cloneElement)(Br,H(H({},Br.props),{style:{flexBasis:wn(100/rt),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:Jr,marginInlineStart:Jr,marginInlineEnd:0}}))})}))}function Oi(mt,tn,or){return tn&&tn>mt?tn:or&&or<mt?or:mt}function de(mt,tn){return tn[0]<=mt&&tn[1]>=mt}function Ve(mt,tn){return mt[0]<=tn[0]&&mt[1]>=tn[1]}function vt(mt,tn){return de(mt[0],tn)||de(mt[1],tn)}function Qt(mt,tn,or){var rt=vt(tn,mt),St=[];if(rt){St.push(or);var _n=de(mt[0],tn),vn=de(mt[1],tn);_n&&St.push("".concat(or,"Start")),vn&&St.push("".concat(or,"End")),_n&&vn&&St.push("".concat(or,"BothEnds"))}return St}function nt(mt){return Array.isArray(mt)?mt[0]!==null&&mt[1]!==null:mt!==null}function Tt(mt){if(!mt)throw new Error("args is required");var tn=mt.value,or=mt.date,rt=mt.hover,St="react-calendar__tile",_n=[St];if(!or)return _n;var vn=new Date,Ln=function(){if(Array.isArray(or))return or;var le=mt.dateType;if(!le)throw new Error("dateType is required when date is not an array of two dates");return Yr(le,or)}();if(de(vn,Ln)&&_n.push("".concat(St,"--now")),!tn||!nt(tn))return _n;var _r=function(){if(Array.isArray(tn))return tn;var le=mt.valueType;if(!le)throw new Error("valueType is required when value is not an array of two dates");return Yr(le,tn)}();Ve(_r,Ln)?_n.push("".concat(St,"--active")):vt(_r,Ln)&&_n.push("".concat(St,"--hasActive"));var Br=Qt(_r,Ln,"".concat(St,"--range"));_n.push.apply(_n,Br);var Kr=Array.isArray(tn)?tn:[tn];if(rt&&Kr.length===1){var Jr=rt>_r[0]?[_r[0],rt]:[rt,_r[0]],ii=Qt(Jr,Ln,"".concat(St,"--hover"));_n.push.apply(_n,ii)}return _n}function Gt(mt){for(var tn=mt.className,or=mt.count,rt=or===void 0?3:or,St=mt.dateTransform,_n=mt.dateType,vn=mt.end,Ln=mt.hover,_r=mt.offset,Br=mt.renderTile,Kr=mt.start,Jr=mt.step,ii=Jr===void 0?1:Jr,le=mt.value,Ae=mt.valueType,Oe=[],et=Kr;et<=vn;et+=ii){var Ot=St(et);Oe.push(Br({classes:Tt({date:Ot,dateType:_n,hover:Ln,value:le,valueType:Ae}),date:Ot}))}return(0,l.jsx)(bi,{className:tn,count:rt,offset:_r,wrap:!0,children:Oe})}function En(mt){var tn=mt.activeStartDate,or=mt.children,rt=mt.classes,St=mt.date,_n=mt.formatAbbr,vn=mt.locale,Ln=mt.maxDate,_r=mt.maxDateTransform,Br=mt.minDate,Kr=mt.minDateTransform,Jr=mt.onClick,ii=mt.onMouseOver,le=mt.style,Ae=mt.tileClassName,Oe=mt.tileContent,et=mt.tileDisabled,Ot=mt.view,It=(0,g.useMemo)(function(){var mn={activeStartDate:tn,date:St,view:Ot};return typeof Ae=="function"?Ae(mn):Ae},[tn,St,Ae,Ot]),Mn=(0,g.useMemo)(function(){var mn={activeStartDate:tn,date:St,view:Ot};return typeof Oe=="function"?Oe(mn):Oe},[tn,St,Oe,Ot]);return(0,l.jsxs)("button",{className:(0,y.A)(rt,It),disabled:Br&&Kr(Br)>St||Ln&&_r(Ln)<St||et?.({activeStartDate:tn,date:St,view:Ot}),onClick:Jr?function(mn){return Jr(St,mn)}:void 0,onFocus:ii?function(){return ii(St)}:void 0,onMouseOver:ii?function(){return ii(St)}:void 0,style:le,type:"button",children:[_n?(0,l.jsx)("abbr",{"aria-label":_n(vn,St),children:or}):or,Mn]})}var Qn=function(){return Qn=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},Qn.apply(this,arguments)},Or=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or},Pr="react-calendar__century-view__decades__decade";function ai(mt){var tn=mt.classes,or=tn===void 0?[]:tn,rt=mt.currentCentury,St=mt.formatYear,_n=St===void 0?un:St,vn=Or(mt,["classes","currentCentury","formatYear"]),Ln=vn.date,_r=vn.locale,Br=[];return or&&Br.push.apply(Br,or),Pr&&Br.push(Pr),yt(Ln).getFullYear()!==rt&&Br.push("".concat(Pr,"--neighboringCentury")),(0,l.jsx)(En,Qn({},vn,{classes:Br,maxDateTransform:bn,minDateTransform:Mt,view:"century",children:zr(_r,_n,Ln)}))}var xi=function(){return xi=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},xi.apply(this,arguments)},mi=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or};function ei(mt){var tn=mt.activeStartDate,or=mt.hover,rt=mt.showNeighboringCentury,St=mt.value,_n=mt.valueType,vn=mi(mt,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),Ln=fn(tn),_r=Ln+(rt?119:99);return(0,l.jsx)(Gt,{className:"react-calendar__century-view__decades",dateTransform:Mt,dateType:"decade",end:_r,hover:or,renderTile:function(Br){var Kr=Br.date,Jr=mi(Br,["date"]);return(0,l.jsx)(ai,xi({},vn,Jr,{activeStartDate:tn,currentCentury:Ln,date:Kr}),Kr.getTime())},start:Ln,step:10,value:St,valueType:_n})}var Qr=function(){return Qr=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},Qr.apply(this,arguments)};function Ni(mt){function tn(){return(0,l.jsx)(ei,Qr({},mt))}return(0,l.jsx)("div",{className:"react-calendar__century-view",children:tn()})}var ea=function(){return ea=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},ea.apply(this,arguments)},Qi=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or},ir="react-calendar__decade-view__years__year";function xr(mt){var tn=mt.classes,or=tn===void 0?[]:tn,rt=mt.currentDecade,St=mt.formatYear,_n=St===void 0?un:St,vn=Qi(mt,["classes","currentDecade","formatYear"]),Ln=vn.date,_r=vn.locale,Br=[];return or&&Br.push.apply(Br,or),ir&&Br.push(ir),Mt(Ln).getFullYear()!==rt&&Br.push("".concat(ir,"--neighboringDecade")),(0,l.jsx)(En,ea({},vn,{classes:Br,maxDateTransform:_e,minDateTransform:me,view:"decade",children:_n(_r,Ln)}))}var di=function(){return di=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},di.apply(this,arguments)},ft=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or};function zn(mt){var tn=mt.activeStartDate,or=mt.hover,rt=mt.showNeighboringDecade,St=mt.value,_n=mt.valueType,vn=ft(mt,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),Ln=On(tn),_r=Ln+(rt?11:9);return(0,l.jsx)(Gt,{className:"react-calendar__decade-view__years",dateTransform:me,dateType:"year",end:_r,hover:or,renderTile:function(Br){var Kr=Br.date,Jr=ft(Br,["date"]);return(0,l.jsx)(xr,di({},vn,Jr,{activeStartDate:tn,currentDecade:Ln,date:Kr}),Kr.getTime())},start:Ln,value:St,valueType:_n})}var Zn=function(){return Zn=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},Zn.apply(this,arguments)};function wi(mt){function tn(){return(0,l.jsx)(zn,Zn({},mt))}return(0,l.jsx)("div",{className:"react-calendar__decade-view",children:tn()})}var Ea=function(){return Ea=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},Ea.apply(this,arguments)},wa=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or},ji=function(mt,tn,or){if(or||arguments.length===2)for(var rt=0,St=tn.length,_n;rt<St;rt++)(_n||!(rt in tn))&&(_n||(_n=Array.prototype.slice.call(tn,0,rt)),_n[rt]=tn[rt]);return mt.concat(_n||Array.prototype.slice.call(tn))},Dt="react-calendar__year-view__months__month";function Xn(mt){var tn=mt.classes,or=tn===void 0?[]:tn,rt=mt.formatMonth,St=rt===void 0?ze:rt,_n=mt.formatMonthYear,vn=_n===void 0?qe:_n,Ln=wa(mt,["classes","formatMonth","formatMonthYear"]),_r=Ln.date,Br=Ln.locale;return(0,l.jsx)(En,Ea({},Ln,{classes:ji(ji([],or,!0),[Dt],!1),formatAbbr:vn,maxDateTransform:Pn,minDateTransform:Et,view:"year",children:St(Br,_r)}))}var Tr=function(){return Tr=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},Tr.apply(this,arguments)},Nr=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or};function ti(mt){var tn=mt.activeStartDate,or=mt.hover,rt=mt.value,St=mt.valueType,_n=Nr(mt,["activeStartDate","hover","value","valueType"]),vn=0,Ln=11,_r=A(tn);return(0,l.jsx)(Gt,{className:"react-calendar__year-view__months",dateTransform:function(Br){var Kr=new Date;return Kr.setFullYear(_r,Br,1),Et(Kr)},dateType:"month",end:Ln,hover:or,renderTile:function(Br){var Kr=Br.date,Jr=Nr(Br,["date"]);return(0,l.jsx)(Xn,Tr({},_n,Jr,{activeStartDate:tn,date:Kr}),Kr.getTime())},start:vn,value:rt,valueType:St})}var _i=function(){return _i=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},_i.apply(this,arguments)};function Ii(mt){function tn(){return(0,l.jsx)(ti,_i({},mt))}return(0,l.jsx)("div",{className:"react-calendar__year-view",children:tn()})}var ta=function(){return ta=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},ta.apply(this,arguments)},Ji=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or},k="react-calendar__month-view__days__day";function ve(mt){var tn=mt.calendarType,or=mt.classes,rt=or===void 0?[]:or,St=mt.currentMonthIndex,_n=mt.formatDay,vn=_n===void 0?ye:_n,Ln=mt.formatLongDate,_r=Ln===void 0?Qe:Ln,Br=Ji(mt,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),Kr=Br.date,Jr=Br.locale,ii=[];return rt&&ii.push.apply(ii,rt),k&&ii.push(k),jt(Kr,tn)&&ii.push("".concat(k,"--weekend")),Kr.getMonth()!==St&&ii.push("".concat(k,"--neighboringMonth")),(0,l.jsx)(En,ta({},Br,{classes:ii,formatAbbr:_r,maxDateTransform:Wn,minDateTransform:on,view:"month",children:vn(Jr,Kr)}))}var Le=function(){return Le=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},Le.apply(this,arguments)},Ye=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or};function ot(mt){var tn=mt.activeStartDate,or=mt.calendarType,rt=mt.hover,St=mt.showFixedNumberOfWeeks,_n=mt.showNeighboringMonth,vn=mt.value,Ln=mt.valueType,_r=Ye(mt,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),Br=A(tn),Kr=T(tn),Jr=St||_n,ii=qt(tn,or),le=Jr?0:ii,Ae=(Jr?-ii:0)+1,Oe=function(){if(St)return Ae+42-1;var et=gn(tn);if(_n){var Ot=new Date;Ot.setFullYear(Br,Kr,et),Ot.setHours(0,0,0,0);var It=7-qt(Ot,or)-1;return et+It}return et}();return(0,l.jsx)(Gt,{className:"react-calendar__month-view__days",count:7,dateTransform:function(et){var Ot=new Date;return Ot.setFullYear(Br,Kr,et),on(Ot)},dateType:"day",hover:rt,end:Oe,renderTile:function(et){var Ot=et.date,It=Ye(et,["date"]);return(0,l.jsx)(ve,Le({},_r,It,{activeStartDate:tn,calendarType:or,currentMonthIndex:Kr,date:Ot}),Ot.getTime())},offset:le,start:Ae,value:vn,valueType:Ln})}var Lt="react-calendar__month-view__weekdays",an="".concat(Lt,"__weekday");function nr(mt){for(var tn=mt.calendarType,or=mt.formatShortWeekday,rt=or===void 0?Pt:or,St=mt.formatWeekday,_n=St===void 0?zt:St,vn=mt.locale,Ln=mt.onMouseLeave,_r=new Date,Br=Et(_r),Kr=A(Br),Jr=T(Br),ii=[],le=1;le<=7;le+=1){var Ae=new Date(Kr,Jr,le-qt(Br,tn)),Oe=_n(vn,Ae);ii.push((0,l.jsx)("div",{className:(0,y.A)(an,Ur(Ae)&&"".concat(an,"--current"),jt(Ae,tn)&&"".concat(an,"--weekend")),children:(0,l.jsx)("abbr",{"aria-label":Oe,title:Oe,children:rt(vn,Ae).replace(".","")})},le))}return(0,l.jsx)(bi,{className:Lt,count:7,onFocus:Ln,onMouseOver:Ln,children:ii})}var vr=function(){return vr=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},vr.apply(this,arguments)},$r=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or},Fr="react-calendar__tile";function qr(mt){var tn=mt.onClickWeekNumber,or=mt.weekNumber,rt=(0,l.jsx)("span",{children:or});if(tn){var St=mt.date,_n=mt.onClickWeekNumber,vn=mt.weekNumber,Ln=$r(mt,["date","onClickWeekNumber","weekNumber"]);return(0,l.jsx)("button",vr({},Ln,{className:Fr,onClick:function(Jr){return _n(vn,St,Jr)},type:"button",children:rt}))}else{var _r=mt.date,Br=mt.onClickWeekNumber,Kr=mt.weekNumber,Ln=$r(mt,["date","onClickWeekNumber","weekNumber"]);return(0,l.jsx)("div",vr({},Ln,{className:Fr,children:rt}))}}function jr(mt){var tn=mt.activeStartDate,or=mt.calendarType,rt=mt.onClickWeekNumber,St=mt.onMouseLeave,_n=mt.showFixedNumberOfWeeks,vn=function(){if(_n)return 6;var Br=gn(tn),Kr=qt(tn,or),Jr=Br-(7-Kr);return 1+Math.ceil(Jr/7)}(),Ln=function(){for(var Br=A(tn),Kr=T(tn),Jr=X(tn),ii=[],le=0;le<vn;le+=1)ii.push(Gn(new Date(Br,Kr,Jr+le*7),or));return ii}(),_r=Ln.map(function(Br){return Bn(Br,or)});return(0,l.jsx)(bi,{className:"react-calendar__month-view__weekNumbers",count:vn,direction:"column",onFocus:St,onMouseOver:St,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:_r.map(function(Br,Kr){var Jr=Ln[Kr];if(!Jr)throw new Error("date is not defined");return(0,l.jsx)(qr,{date:Jr,onClickWeekNumber:rt,weekNumber:Br},Br)})})}var vi=function(){return vi=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},vi.apply(this,arguments)},Mi=function(mt,tn){var or={};for(var rt in mt)Object.prototype.hasOwnProperty.call(mt,rt)&&tn.indexOf(rt)<0&&(or[rt]=mt[rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,rt=Object.getOwnPropertySymbols(mt);St<rt.length;St++)tn.indexOf(rt[St])<0&&Object.prototype.propertyIsEnumerable.call(mt,rt[St])&&(or[rt[St]]=mt[rt[St]]);return or};function ra(mt){if(mt)for(var tn=0,or=Object.entries(K);tn<or.length;tn++){var rt=or[tn],St=rt[0],_n=rt[1];if(_n.includes(mt))return St}return fe.ISO_8601}function Yi(mt){var tn=mt.activeStartDate,or=mt.locale,rt=mt.onMouseLeave,St=mt.showFixedNumberOfWeeks,_n=mt.calendarType,vn=_n===void 0?ra(or):_n,Ln=mt.formatShortWeekday,_r=mt.formatWeekday,Br=mt.onClickWeekNumber,Kr=mt.showWeekNumbers,Jr=Mi(mt,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function ii(){return(0,l.jsx)(nr,{calendarType:vn,formatShortWeekday:Ln,formatWeekday:_r,locale:or,onMouseLeave:rt})}function le(){return Kr?(0,l.jsx)(jr,{activeStartDate:tn,calendarType:vn,onClickWeekNumber:Br,onMouseLeave:rt,showFixedNumberOfWeeks:St}):null}function Ae(){return(0,l.jsx)(ot,vi({calendarType:vn},Jr))}var Oe="react-calendar__month-view";return(0,l.jsx)("div",{className:(0,y.A)(Oe,Kr?"".concat(Oe,"--weekNumbers"):""),children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"flex-end"},children:[le(),(0,l.jsxs)("div",{style:{flexGrow:1,width:"100%"},children:[ii(),Ae()]})]})})}var ua=function(){return ua=Object.assign||function(mt){for(var tn,or=1,rt=arguments.length;or<rt;or++){tn=arguments[or];for(var St in tn)Object.prototype.hasOwnProperty.call(tn,St)&&(mt[St]=tn[St])}return mt},ua.apply(this,arguments)},Sa="react-calendar",Xt=["century","decade","year","month"],V=["decade","year","month","day"],Y=new Date;Y.setFullYear(1,0,1),Y.setHours(0,0,0,0);var D=new Date(864e13);function P(mt){return mt instanceof Date?mt:new Date(mt)}function oe(mt,tn){return Xt.slice(Xt.indexOf(mt),Xt.indexOf(tn)+1)}function Ie(mt,tn,or){var rt=oe(tn,or);return rt.indexOf(mt)!==-1}function Ue(mt,tn,or){return mt&&Ie(mt,tn,or)?mt:or}function Xe(mt){var tn=Xt.indexOf(mt);return V[tn]}function dt(mt,tn){var or=Array.isArray(mt)?mt[tn]:mt;if(!or)return null;var rt=P(or);if(Number.isNaN(rt.getTime()))throw new Error("Invalid date: ".concat(mt));return rt}function kt(mt,tn){var or=mt.value,rt=mt.minDate,St=mt.maxDate,_n=mt.maxDetail,vn=dt(or,tn);if(!vn)return null;var Ln=Xe(_n),_r=function(){switch(tn){case 0:return Lr(Ln,vn);case 1:return hr(Ln,vn);default:throw new Error("Invalid index value: ".concat(tn))}}();return Oi(_r,rt,St)}var dn=function(mt){return kt(mt,0)},Vn=function(mt){return kt(mt,1)},qn=function(mt){return[dn,Vn].map(function(tn){return tn(mt)})};function yr(mt){var tn=mt.maxDate,or=mt.maxDetail,rt=mt.minDate,St=mt.minDetail,_n=mt.value,vn=mt.view,Ln=Ue(vn,St,or),_r=dn({value:_n,minDate:rt,maxDate:tn,maxDetail:or})||new Date;return Lr(Ln,_r)}function ci(mt){var tn=mt.activeStartDate,or=mt.defaultActiveStartDate,rt=mt.defaultValue,St=mt.defaultView,_n=mt.maxDate,vn=mt.maxDetail,Ln=mt.minDate,_r=mt.minDetail,Br=mt.value,Kr=mt.view,Jr=Ue(Kr,_r,vn),ii=tn||or;return ii?Lr(Jr,ii):yr({maxDate:_n,maxDetail:vn,minDate:Ln,minDetail:_r,value:Br||rt,view:Kr||St})}function hi(mt){return mt&&(!Array.isArray(mt)||mt.length===1)}function Ti(mt,tn){return mt instanceof Date&&tn instanceof Date&&mt.getTime()===tn.getTime()}var Vi=(0,g.forwardRef)(function(tn,or){var rt=tn.activeStartDate,St=tn.allowPartialRange,_n=tn.calendarType,vn=tn.className,Ln=tn.defaultActiveStartDate,_r=tn.defaultValue,Br=tn.defaultView,Kr=tn.formatDay,Jr=tn.formatLongDate,ii=tn.formatMonth,le=tn.formatMonthYear,Ae=tn.formatShortWeekday,Oe=tn.formatWeekday,et=tn.formatYear,Ot=tn.goToRangeStartOnSelect,It=Ot===void 0?!0:Ot,Mn=tn.inputRef,mn=tn.locale,At=tn.maxDate,Ut=At===void 0?D:At,jn=tn.maxDetail,Jt=jn===void 0?"month":jn,dr=tn.minDate,wr=dr===void 0?Y:dr,Hr=tn.minDetail,Ar=Hr===void 0?"century":Hr,yi=tn.navigationAriaLabel,Rr=tn.navigationAriaLive,si=tn.navigationLabel,Si=tn.next2AriaLabel,$i=tn.next2Label,Hi=tn.nextAriaLabel,Oa=tn.nextLabel,Ma=tn.onActiveStartDateChange,Ua=tn.onChange,Xa=tn.onClickDay,Na=tn.onClickDecade,za=tn.onClickMonth,qa=tn.onClickWeekNumber,no=tn.onClickYear,wo=tn.onDrillDown,go=tn.onDrillUp,Ka=tn.onViewChange,Ia=tn.prev2AriaLabel,Us=tn.prev2Label,Vs=tn.prevAriaLabel,Is=tn.prevLabel,uo=tn.returnValue,Ds=uo===void 0?"start":uo,Js=tn.selectRange,eo=tn.showDoubleView,uu=tn.showFixedNumberOfWeeks,pa=tn.showNavigation,na=pa===void 0?!0:pa,Ui=tn.showNeighboringCentury,xe=tn.showNeighboringDecade,Ce=tn.showNeighboringMonth,st=Ce===void 0?!0:Ce,gt=tn.showWeekNumbers,Ht=tn.tileClassName,Hn=tn.tileContent,fr=tn.tileDisabled,Zr=tn.value,gi=tn.view,wt=(0,g.useState)(Ln),cn=wt[0],rr=wt[1],$n=(0,g.useState)(null),Sr=$n[0],fi=$n[1],Ci=(0,g.useState)(Array.isArray(_r)?_r.map(function($a){return $a!==null?P($a):null}):_r!=null?P(_r):null),la=Ci[0],ya=Ci[1],_a=(0,g.useState)(Br),Ga=_a[0],Pa=_a[1],ja=rt||cn||ci({activeStartDate:rt,defaultActiveStartDate:Ln,defaultValue:_r,defaultView:Br,maxDate:Ut,maxDetail:Jt,minDate:wr,minDetail:Ar,value:Zr,view:gi}),Oo=function(){var $a=function(){return Js&&hi(la)?la:Zr!==void 0?Zr:la}();return $a?Array.isArray($a)?$a.map(function(oo){return oo!==null?P(oo):null}):$a!==null?P($a):null:null}(),Do=Xe(Jt),fo=Ue(gi||Ga,Ar,Jt),Zo=oe(Ar,Jt),bs=Js?Sr:null,io=Zo.indexOf(fo)<Zo.length-1,fs=Zo.indexOf(fo)>0,yo=(0,g.useCallback)(function($a){var oo=function(){switch(Ds){case"start":return dn;case"end":return Vn;case"range":return qn;default:throw new Error("Invalid returnValue.")}}();return oo({maxDate:Ut,maxDetail:Jt,minDate:wr,value:$a})},[Ut,Jt,wr,Ds]),lo=(0,g.useCallback)(function($a,oo){rr($a);var ro={action:oo,activeStartDate:$a,value:Oo,view:fo};Ma&&!Ti(ja,$a)&&Ma(ro)},[ja,Ma,Oo,fo]),Ha=(0,g.useCallback)(function($a,oo){var ro=function(){switch(fo){case"century":return Na;case"decade":return no;case"year":return za;case"month":return Xa;default:throw new Error("Invalid view: ".concat(fo,"."))}}();ro&&ro($a,oo)},[Xa,Na,za,no,fo]),zo=(0,g.useCallback)(function($a,oo){if(io){Ha($a,oo);var ro=Zo[Zo.indexOf(fo)+1];if(!ro)throw new Error("Attempted to drill down from the lowest view.");rr($a),Pa(ro);var Ls={action:"drillDown",activeStartDate:$a,value:Oo,view:ro};Ma&&!Ti(ja,$a)&&Ma(Ls),Ka&&fo!==ro&&Ka(Ls),wo&&wo(Ls)}},[ja,io,Ma,Ha,wo,Ka,Oo,fo,Zo]),vs=(0,g.useCallback)(function(){if(fs){var $a=Zo[Zo.indexOf(fo)-1];if(!$a)throw new Error("Attempted to drill up from the highest view.");var oo=Lr($a,ja);rr(oo),Pa($a);var ro={action:"drillUp",activeStartDate:oo,value:Oo,view:$a};Ma&&!Ti(ja,oo)&&Ma(ro),Ka&&fo!==$a&&Ka(ro),go&&go(ro)}},[ja,fs,Ma,go,Ka,Oo,fo,Zo]),Fs=(0,g.useCallback)(function($a,oo){var ro=Oo;Ha($a,oo);var Ls=Js&&!hi(ro),Ns;if(Js)if(Ls)Ns=Lr(Do,$a);else{if(!ro)throw new Error("previousValue is required");if(Array.isArray(ro))throw new Error("previousValue must not be an array");Ns=Xr(Do,ro,$a)}else Ns=yo($a);var qo=!Js||Ls||It?yr({maxDate:Ut,maxDetail:Jt,minDate:wr,minDetail:Ar,value:Ns,view:fo}):null;oo.persist(),rr(qo),ya(Ns);var Go={action:"onChange",activeStartDate:qo,value:Ns,view:fo};if(Ma&&!Ti(ja,qo)&&Ma(Go),Ua)if(Js){var gs=hi(Ns);if(!gs)Ua(Ns||null,oo);else if(St){if(Array.isArray(Ns))throw new Error("value must not be an array");Ua([Ns||null,null],oo)}}else Ua(Ns||null,oo)},[ja,St,yo,It,Ut,Jt,wr,Ar,Ma,Ua,Ha,Js,Oo,Do,fo]);function Ms($a){fi($a)}function to(){fi(null)}(0,g.useImperativeHandle)(or,function(){return{activeStartDate:ja,drillDown:zo,drillUp:vs,onChange:Fs,setActiveStartDate:lo,value:Oo,view:fo}},[ja,zo,vs,Fs,lo,Oo,fo]);function Ho($a){var oo=$a?Un(fo,ja):Lr(fo,ja),ro=io?zo:Fs,Ls={activeStartDate:oo,hover:bs,locale:mn,maxDate:Ut,minDate:wr,onClick:ro,onMouseOver:Js?Ms:void 0,tileClassName:Ht,tileContent:Hn,tileDisabled:fr,value:Oo,valueType:Do};switch(fo){case"century":return(0,l.jsx)(Ni,ua({formatYear:et,showNeighboringCentury:Ui},Ls));case"decade":return(0,l.jsx)(wi,ua({formatYear:et,showNeighboringDecade:xe},Ls));case"year":return(0,l.jsx)(Ii,ua({formatMonth:ii,formatMonthYear:le},Ls));case"month":return(0,l.jsx)(Yi,ua({calendarType:_n,formatDay:Kr,formatLongDate:Jr,formatShortWeekday:Ae,formatWeekday:Oe,onClickWeekNumber:qa,onMouseLeave:Js?to:void 0,showFixedNumberOfWeeks:typeof uu<"u"?uu:eo,showNeighboringMonth:st,showWeekNumbers:gt},Ls));default:throw new Error("Invalid view: ".concat(fo,"."))}}function ls(){return na?(0,l.jsx)(Rn,{activeStartDate:ja,drillUp:vs,formatMonthYear:le,formatYear:et,locale:mn,maxDate:Ut,minDate:wr,navigationAriaLabel:yi,navigationAriaLive:Rr,navigationLabel:si,next2AriaLabel:Si,next2Label:$i,nextAriaLabel:Hi,nextLabel:Oa,prev2AriaLabel:Ia,prev2Label:Us,prevAriaLabel:Vs,prevLabel:Is,setActiveStartDate:lo,showDoubleView:eo,view:fo,views:Zo}):null}var xo=Array.isArray(Oo)?Oo:[Oo];return(0,l.jsxs)("div",{className:(0,y.A)(Sa,Js&&xo.length===1&&"".concat(Sa,"--selectRange"),eo&&"".concat(Sa,"--doubleView"),vn),ref:Mn,children:[ls(),(0,l.jsxs)("div",{className:"".concat(Sa,"__viewContainer"),onBlur:Js?to:void 0,onMouseLeave:Js?to:void 0,children:[Ho(),eo?Ho(!0):null]})]})});const Pi=Vi},93718:(Ge,w,u)=>{"use strict";u.r(w),u.d(w,{default:()=>x});var l=u(70788);function g(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,l.isAnyArray)(f))throw new TypeError("input must be an array");if(f.length===0)throw new TypeError("input must not be empty");var h=p.fromIndex,E=h===void 0?0:h,v=p.toIndex,m=v===void 0?f.length:v;if(E<0||E>=f.length||!Number.isInteger(E))throw new Error("fromIndex must be a positive integer smaller than length");if(m<=E||m>f.length||!Number.isInteger(m))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var S=f[E],d=E+1;d<m;d++)f[d]>S&&(S=f[d]);return S}function y(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,l.isAnyArray)(f))throw new TypeError("input must be an array");if(f.length===0)throw new TypeError("input must not be empty");var h=p.fromIndex,E=h===void 0?0:h,v=p.toIndex,m=v===void 0?f.length:v;if(E<0||E>=f.length||!Number.isInteger(E))throw new Error("fromIndex must be a positive integer smaller than length");if(m<=E||m>f.length||!Number.isInteger(m))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var S=f[E],d=E+1;d<m;d++)f[d]<S&&(S=f[d]);return S}function x(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((0,l.isAnyArray)(f)){if(f.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var h;if(p.output!==void 0){if(!(0,l.isAnyArray)(p.output))throw new TypeError("output option must be an array if specified");h=p.output}else h=new Array(f.length);var E=y(f),v=g(f);if(E===v)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var m=p.min,S=m===void 0?p.autoMinMax?E:0:m,d=p.max,O=d===void 0?p.autoMinMax?v:1:d;if(S>=O)throw new RangeError("min option must be smaller than max option");for(var R=(O-S)/(v-E),C=0;C<f.length;C++)h[C]=(f[C]-E)*R+S;return h}},93728:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.config=void 0,w.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},94030:(Ge,w,u)=>{"use strict";w.__esModule=!0,w.cloneElement=E;var l=g(u(96540));function g(v){return v&&v.__esModule?v:{default:v}}function y(v,m){var S=Object.keys(v);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(v);m&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),S.push.apply(S,d)}return S}function x(v){for(var m=1;m<arguments.length;m++){var S=arguments[m]!=null?arguments[m]:{};m%2?y(Object(S),!0).forEach(function(d){f(v,d,S[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(S)):y(Object(S)).forEach(function(d){Object.defineProperty(v,d,Object.getOwnPropertyDescriptor(S,d))})}return v}function f(v,m,S){return m=p(m),m in v?Object.defineProperty(v,m,{value:S,enumerable:!0,configurable:!0,writable:!0}):v[m]=S,v}function p(v){var m=h(v,"string");return typeof m=="symbol"?m:String(m)}function h(v,m){if(typeof v!="object"||v===null)return v;var S=v[Symbol.toPrimitive];if(S!==void 0){var d=S.call(v,m||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(v)}function E(v,m){return m.style&&v.props.style&&(m.style=x(x({},v.props.style),m.style)),m.className&&v.props.className&&(m.className=v.props.className+" "+m.className),l.default.cloneElement(v,m)}},94121:(Ge,w,u)=>{"use strict";u.d(w,{_:()=>g});var l=u(31179),g=function(){function y(x,f){f===void 0&&(f=y.now),this.schedulerActionCtor=x,this.now=f}return y.prototype.schedule=function(x,f,p){return f===void 0&&(f=0),new this.schedulerActionCtor(this,x).schedule(p,f)},y.now=l.U.now,y}()},94345:(Ge,w,u)=>{"use strict";u.d(w,{S:()=>se});var l=u(78101);class g extends Error{constructor(te,A,T,B){super(T,B),this.error=te,this.response=A,Object.setPrototypeOf(this,g.prototype),this.name=g.name}}class y extends g{constructor(te,A,T){super(te,void 0,A,T),Object.setPrototypeOf(this,y.prototype),this.name=y.name}}class x extends g{constructor(te,A,T){super(void 0,te,A,T),Object.setPrototypeOf(this,x.prototype),this.name=x.name}}class f extends g{constructor(te,A,T){super(void 0,te,A,T),Object.setPrototypeOf(this,f.prototype),this.name=f.name,this.message=A??"OFREP request failed: unauthorized"}}class p extends g{constructor(te,A,T){super(void 0,te,A,T),Object.setPrototypeOf(this,p.prototype),this.name=p.name,this.message=A??"OFREP request failed: forbidden"}}class h extends g{constructor(te,A,T){super(void 0,te,A,T),this.response=te,Object.setPrototypeOf(this,h.prototype),this.name=h.name,this.requestTime=new Date,this.message=A??this.retryAfterDate?`rate limit exceeded, try again after ${this.retryAfterDate}`:"rate limit exceeded, try again later"}get retryAfterHeader(){return this.response.headers.get("Retry-After")}get retryAfterSeconds(){if(!this.retryAfterHeader)return null;const te=Number.parseInt(this.retryAfterHeader,10);return Number.isFinite(te)?te:null}get retryAfterDate(){if(!this.retryAfterHeader)return null;if(this.retryAfterSeconds)return this.retryAfterSeconds?new Date(this.requestTime.getTime()+this.retryAfterSeconds*1e3):null;const te=new Date(this.retryAfterHeader);return isNaN(te.valueOf())?null:te}}function E(q,te,A,T){function B(X){return X instanceof A?X:new A(function(ue){ue(X)})}return new(A||(A=Promise))(function(X,ue){function ie(yt){try{je(T.next(yt))}catch(tt){ue(tt)}}function Te(yt){try{je(T.throw(yt))}catch(tt){ue(tt)}}function je(yt){yt.done?X(yt.value):B(yt.value).then(ie,Te)}je((T=T.apply(q,te||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function v(q){return!q||typeof q!="object"?!1:"value"in q}function m(q){return!q||typeof q!="object"?!1:"key"in q&&typeof q.key=="string"&&"errorCode"in q&&typeof q.errorCode=="string"}function S(q){return!q||typeof q!="object"?!1:"errorCode"in q}function d(q){return!q||typeof q!="object"?!1:"flags"in q}const O=[400,404,500],R=[200];function C(q){return E(this,arguments,void 0,function*(te,A=null){var T;return new Headers([["Content-Type","application/json; charset=utf-8"],...te?.headers||[],...(yield(T=te?.headersFactory)===null||T===void 0?void 0:T.call(te))||[],...A?[["If-None-Match",A]]:[]])})}function L(){return globalThis?globalThis.fetch.bind(globalThis):window?window.fetch.bind(window):(self&&self.fetch.bind(self),fetch)}const j=1e4;class I{constructor(te,A=L()){this.baseOptions=te,this.fetchImplementation=A}isJsonMime(te){const A=te.headers.get("Content-Type");return!!A&&I.jsonRegex.test(A)}static isOFREFErrorHttpStatus(te){return O.includes(te)}static isOFREFSuccessHttpStatus(te){return R.includes(te)}doFetchRequest(te){return E(this,void 0,void 0,function*(){var A;let T;try{const B=(A=this.baseOptions.timeoutMs)!==null&&A!==void 0?A:j,X=new AbortController;setTimeout(()=>X.abort(new DOMException(`This signal is timeout in ${B}ms`,"TimeoutError")),B),T=yield this.fetchImplementation(te,{signal:X.signal})}catch(B){throw new y(B,"The OFREP request failed.",{cause:B})}if(T.status===401)throw new f(T);if(T.status===403)throw new p(T);if(T.status===429)throw new h(T);if(T.status===200&&!this.isJsonMime(T))throw new x(T,"OFREP did not respond with expected MIME application/json");try{return{response:T,body:yield T.json()}}catch{return{response:T}}})}postEvaluateFlag(te,A){return E(this,void 0,void 0,function*(){let T=`${this.baseOptions.baseUrl}/ofrep/v1/evaluate/flags/${te}`;this.baseOptions.query&&(T=T+`?${this.baseOptions.query.toString()}`);const B=new Request(T,{headers:yield C(this.baseOptions),method:"POST",body:JSON.stringify(A??{})}),{response:X,body:ue}=yield this.doFetchRequest(B);if(X.status===200&&v(ue))return{httpStatus:X.status,value:ue,httpResponse:X};if(I.isOFREFErrorHttpStatus(X.status)&&m(ue))return{httpStatus:X.status,value:ue,httpResponse:X};throw new x(X,"The OFREP response does not match the expected format")})}postBulkEvaluateFlags(te){return E(this,arguments,void 0,function*(A,T=null){let B=`${this.baseOptions.baseUrl}/ofrep/v1/evaluate/flags`;this.baseOptions.query&&(B=B+`?${this.baseOptions.query.toString()}`);const X=new Request(B,{headers:yield C(this.baseOptions,T),method:"POST",body:JSON.stringify(A??{})}),{response:ue,body:ie}=yield this.doFetchRequest(X);if(ue.status===200&&d(ie))return{httpStatus:ue.status,value:ie,httpResponse:ue};if(ue.status===304)return{httpStatus:ue.status,value:void 0,httpResponse:ue};if(I.isOFREFErrorHttpStatus(ue.status)&&S(ie))return{httpStatus:ue.status,value:ie,httpResponse:ue};throw new x(ue,"The OFREP response does not match the expected format")})}}I.jsonRegex=new RegExp(/application\/[^+]*[+]?(json);?.*/,"i");function U(q,te,A){if(A?.(q),"value"in q){const T=q.value.errorCode||ErrorCode.GENERAL,B=q.value.errorCode,X=q.value.metadata;return{value:te,reason:StandardResolutionReasons.ERROR,flagMetadata:X,errorCode:T,errorMessage:B}}else throw q instanceof Error?q:new Error("OFREP flag evaluation error",{cause:q})}function $(q){return{value:q.value,variant:q.variant,reason:q.reason,flagMetadata:q.metadata&&ee(q.metadata)}}function ee(q){const A=Object.entries(q).filter(([,T])=>["string","number","boolean"].includes(typeof T));return Object.fromEntries(A)}var re=u(46631);function Se(q,te,A,T){function B(X){return X instanceof A?X:new A(function(ue){ue(X)})}return new(A||(A=Promise))(function(X,ue){function ie(yt){try{je(T.next(yt))}catch(tt){ue(tt)}}function Te(yt){try{je(T.throw(yt))}catch(tt){ue(tt)}}function je(yt){yt.done?X(yt.value):B(yt.value).then(ie,Te)}je((T=T.apply(q,te||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;var z;(function(q){q.SUCCESS_NO_CHANGES="SUCCESS_NO_CHANGES",q.SUCCESS_WITH_CHANGES="SUCCESS_WITH_CHANGES"})(z||(z={}));function Q(q){return!q||typeof q!="object"?!1:"reason"in q&&"errorCode"in q&&!("value"in q)}const ce={[re.O4.FLAG_NOT_FOUND]:"Flag was not found",[re.O4.GENERAL]:"General error",[re.O4.INVALID_CONTEXT]:"Context is invalid or could be parsed",[re.O4.PARSE_ERROR]:"Flag or flag configuration could not be parsed",[re.O4.PROVIDER_FATAL]:"Provider is in a fatal error state",[re.O4.PROVIDER_NOT_READY]:"Provider is not yet ready",[re.O4.TARGETING_KEY_MISSING]:"Targeting key is missing",[re.O4.TYPE_MISMATCH]:"Flag is not of expected type"};class se{constructor(te,A){var T;this.DEFAULT_POLL_INTERVAL=3e4,this.metadata={name:"OpenFeature Remote Evaluation Protocol Web Provider"},this.runsOn="client",this.events=new re.by,this._flagCache={},this._flagSetMetadataCache={},this._options=te,this._logger=A,this._etag=null,this._ofrepAPI=new I(this._options,this._options.fetchImplementation),this._pollingInterval=(T=this._options.pollInterval)!==null&&T!==void 0?T:this.DEFAULT_POLL_INTERVAL}get flagCache(){return Object.assign({},this._flagCache)}initialize(te){return Se(this,void 0,void 0,function*(){var A;try{this._context=te,yield this._fetchFlags(te),this._pollingInterval>0&&this.startPolling(),(A=this._logger)===null||A===void 0||A.debug(`${this.metadata.name} initialized successfully`)}catch(T){throw T instanceof f||T instanceof p?new re.wh("Initialization failed",{cause:T}):T}})}resolveBooleanEvaluation(te,A,T){return this._resolve(te,"boolean",A)}resolveStringEvaluation(te,A,T){return this._resolve(te,"string",A)}resolveNumberEvaluation(te,A,T){return this._resolve(te,"number",A)}resolveObjectEvaluation(te,A,T){return this._resolve(te,"object",A)}onContextChange(te,A){return Se(this,void 0,void 0,function*(){var T,B,X;try{this._context=A;const ue=new Date;if(this._retryPollingAfter!==void 0&&this._retryPollingAfter>ue)return;yield this._fetchFlags(A)}catch(ue){if(ue instanceof h){(T=this.events)===null||T===void 0||T.emit(re.Uc.Stale,{message:`${ue.name}: ${ue.message}`});return}if(ue instanceof re.Lh||ue instanceof y||ue instanceof f||ue instanceof p){(B=this.events)===null||B===void 0||B.emit(re.Uc.Error,{message:`${ue.name}: ${ue.message}`});return}(X=this.events)===null||X===void 0||X.emit(re.Uc.Error,{message:`Unknown error: ${ue}`})}})}onClose(){return this.stopPolling(),Promise.resolve()}_fetchFlags(te){return Se(this,void 0,void 0,function*(){var A;try{const T={context:te},B=yield this._ofrepAPI.postBulkEvaluateFlags(T,this._etag);if(B.httpStatus===304)return{status:z.SUCCESS_NO_CHANGES,flags:[]};if(B.httpStatus!==200)throw new re.$g(`Failed OFREP bulk evaluation request, status: ${B.httpStatus}`);const X=B.value,ue={};if("flags"in X&&Array.isArray(X.flags)){X.flags.forEach(Te=>{m(Te)&&(ue[Te.key]={reason:re.$W.ERROR,flagMetadata:Te.metadata,errorCode:Te.errorCode,errorDetails:Te.errorDetails}),v(Te)&&Te.key&&(ue[Te.key]={value:Te.value,variant:Te.variant,reason:Te.reason,flagMetadata:Te.metadata})});const ie=this._getListUpdatedFlags(this._flagCache,ue);return this._flagCache=ue,this._etag=(A=B.httpResponse)===null||A===void 0?void 0:A.headers.get("etag"),this._flagSetMetadataCache=typeof X.metadata=="object"?X.metadata:{},{status:z.SUCCESS_WITH_CHANGES,flags:ie}}else throw new Error("No flags in OFREP bulk evaluation response")}catch(T){throw T instanceof h&&T.retryAfterDate!==null&&(this._retryPollingAfter=T.retryAfterDate),T}})}_getListUpdatedFlags(te,A){const T=[],B=Object.keys(te),X=Object.keys(A);for(const ue in A)(B.indexOf(ue)===-1||JSON.stringify(te[ue])!==JSON.stringify(A[ue]))&&T.push(ue);for(const ue in te)X.indexOf(ue)===-1&&T.push(ue);return T}_resolve(te,A,T){const B=this._flagCache[te];return B?Q(B)?Object.assign(Object.assign({},B),{value:T,errorMessage:ce[B.errorCode]}):typeof B.value!==A?{value:T,flagMetadata:B.flagMetadata,reason:re.$W.ERROR,errorCode:re.O4.TYPE_MISMATCH,errorMessage:ce[re.O4.TYPE_MISMATCH]}:{variant:B.variant,value:B.value,flagMetadata:B.flagMetadata,errorCode:B.errorCode,errorMessage:B.errorMessage,reason:B.reason}:{value:T,flagMetadata:this._flagSetMetadataCache,reason:re.$W.ERROR,errorCode:re.O4.FLAG_NOT_FOUND,errorMessage:ce[re.O4.FLAG_NOT_FOUND]}}startPolling(){this._pollingIntervalId=setInterval(()=>Se(this,void 0,void 0,function*(){var te,A;try{const T=new Date;if(this._retryPollingAfter!==void 0&&this._retryPollingAfter>T)return;const B=yield this._fetchFlags(this._context);B.status===z.SUCCESS_WITH_CHANGES&&((te=this.events)===null||te===void 0||te.emit(re.Uc.ConfigurationChanged,{message:"Flags updated",flagsChanged:B.flags}))}catch(T){(A=this.events)===null||A===void 0||A.emit(re.Uc.Stale,{message:`Error while polling: ${T}`})}}),this._pollingInterval)}stopPolling(){this._pollingIntervalId&&clearInterval(this._pollingIntervalId)}}},94701:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(96540),g=function(x){(0,l.useEffect)(x,[])};const y=g},94708:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.SequenceError=void 0;var l=u(9619);w.SequenceError=l.createErrorClass(function(g){return function(x){g(this),this.name="SequenceError",this.message=x}})},94808:function(Ge,w){"use strict";var u=this&&this.__read||function(g,y){var x=typeof Symbol=="function"&&g[Symbol.iterator];if(!x)return g;var f=x.call(g),p,h=[],E;try{for(;(y===void 0||y-- >0)&&!(p=f.next()).done;)h.push(p.value)}catch(v){E={error:v}}finally{try{p&&!p.done&&(x=f.return)&&x.call(f)}finally{if(E)throw E.error}}return h},l=this&&this.__spreadArray||function(g,y){for(var x=0,f=y.length,p=g.length;x<f;x++,p++)g[p]=y[x];return g};Object.defineProperty(w,"__esModule",{value:!0}),w.timeoutProvider=void 0,w.timeoutProvider={setTimeout:function(g,y){for(var x=[],f=2;f<arguments.length;f++)x[f-2]=arguments[f];var p=w.timeoutProvider.delegate;return p?.setTimeout?p.setTimeout.apply(p,l([g,y],u(x))):setTimeout.apply(void 0,l([g,y],u(x)))},clearTimeout:function(g){var y=w.timeoutProvider.delegate;return(y?.clearTimeout||clearTimeout)(g)},delegate:void 0}},94975:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isArrayLike=void 0,w.isArrayLike=function(u){return u&&typeof u.length=="number"&&typeof u!="function"}},95286:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>y});var l=u(8100);class g{constructor(f){this.code_=f.code,this.units_=f.units,this.extent_=f.extent!==void 0?f.extent:null,this.worldExtent_=f.worldExtent!==void 0?f.worldExtent:null,this.axisOrientation_=f.axisOrientation!==void 0?f.axisOrientation:"enu",this.global_=f.global!==void 0?f.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=f.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=f.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||l.I[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(f){this.global_=f,this.canWrapX_=!!(f&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(f){this.defaultTileGrid_=f}setExtent(f){this.extent_=f,this.canWrapX_=!!(this.global_&&f)}setWorldExtent(f){this.worldExtent_=f}setGetPointResolution(f){this.getPointResolutionFunc_=f}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const y=g},95349:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var l=y(u(3429)),g=y(u(81474));function y(O){return O&&O.__esModule?O:{default:O}}function x(O,R){if(!(O instanceof R))throw new TypeError("Cannot call a class as a function")}function f(O,R){for(var C=0;C<R.length;C++){var L=R[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}function p(O,R,C){return R&&f(O.prototype,R),C&&f(O,C),O}var h=["ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","CONNECT","CONTINUE","CORRELATE","COVER","CREATE","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FIRST","FLATTEN","FOR","FORCE","FROM","FUNCTION","GRANT","GROUP","GSI","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LAST","LEFT","LET","LETTING","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MISSING","NAMESPACE","NEST","NOT","NULL","NUMBER","OBJECT","OFFSET","ON","OPTION","OR","ORDER","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROCEDURE","PUBLIC","RAW","REALM","REDUCE","RENAME","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","SATISFIES","SCHEMA","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TO","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WITH","WITHIN","WORK","XOR"],E=["DELETE FROM","EXCEPT ALL","EXCEPT","EXPLAIN DELETE FROM","EXPLAIN UPDATE","EXPLAIN UPSERT","FROM","GROUP BY","HAVING","INFER","INSERT INTO","LET","LIMIT","MERGE","NEST","ORDER BY","PREPARE","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNNEST","UPDATE","UPSERT","USE KEYS","VALUES","WHERE"],v=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],m=["AND","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","XOR"],S,d=function(){function O(R){x(this,O),this.cfg=R}return p(O,[{key:"format",value:function(C){return S||(S=new g.default({reservedWords:h,reservedTopLevelWords:E,reservedNewlineWords:m,reservedTopLevelWordsNoIndent:v,stringTypes:['""',"''","``"],openParens:["(","[","{"],closeParens:[")","]","}"],namedPlaceholderTypes:["$"],lineCommentTypes:["#","--"]})),new l.default(this.cfg,S).format(C)}}]),O}();w.default=d,Ge.exports=w.default},95382:(Ge,w,u)=>{"use strict";u.d(w,{o:()=>E});var l=u(88374),g=u(62894),y=u(96540),x=u(24836),f=u(99672);function p(v){let{isDisabled:m,onFocus:S,onBlur:d,onFocusChange:O}=v;const R=(0,y.useCallback)(j=>{if(j.target===j.currentTarget)return d&&d(j),O&&O(!1),!0},[d,O]),C=(0,g.yB)(R),L=(0,y.useCallback)(j=>{const I=(0,x.TW)(j.target),U=I?(0,f.bq)(I):(0,f.bq)();j.target===j.currentTarget&&U===(0,f.wt)(j.nativeEvent)&&(S&&S(j),O&&O(!0),C(j))},[O,S,C]);return{focusProps:{onFocus:!m&&(S||O||d)?L:void 0,onBlur:!m&&(d||O)?R:void 0}}}var h=u(8490);function E(v={}){let{autoFocus:m=!1,isTextInput:S,within:d}=v,O=(0,y.useRef)({isFocused:!1,isFocusVisible:m||(0,l.pP)()}),[R,C]=(0,y.useState)(!1),[L,j]=(0,y.useState)(()=>O.current.isFocused&&O.current.isFocusVisible),I=(0,y.useCallback)(()=>j(O.current.isFocused&&O.current.isFocusVisible),[]),U=(0,y.useCallback)(re=>{O.current.isFocused=re,C(re),I()},[I]);(0,l.K7)(re=>{O.current.isFocusVisible=re,I()},[],{isTextInput:S});let{focusProps:$}=p({isDisabled:d,onFocusChange:U}),{focusWithinProps:ee}=(0,h.R)({isDisabled:!d,onFocusWithinChange:U});return{isFocused:R,isFocusVisible:L,focusProps:d?ee:$}}},95462:function(Ge,w,u){"use strict";var l=this&&this.__generator||function(h,E){var v={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},m,S,d,O;return O={next:R(0),throw:R(1),return:R(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function R(L){return function(j){return C([L,j])}}function C(L){if(m)throw new TypeError("Generator is already executing.");for(;v;)try{if(m=1,S&&(d=L[0]&2?S.return:L[0]?S.throw||((d=S.return)&&d.call(S),0):S.next)&&!(d=d.call(S,L[1])).done)return d;switch(S=0,d&&(L=[L[0]&2,d.value]),L[0]){case 0:case 1:d=L;break;case 4:return v.label++,{value:L[1],done:!1};case 5:v.label++,S=L[1],L=[0];continue;case 7:L=v.ops.pop(),v.trys.pop();continue;default:if(d=v.trys,!(d=d.length>0&&d[d.length-1])&&(L[0]===6||L[0]===2)){v=0;continue}if(L[0]===3&&(!d||L[1]>d[0]&&L[1]<d[3])){v.label=L[1];break}if(L[0]===6&&v.label<d[1]){v.label=d[1],d=L;break}if(d&&v.label<d[2]){v.label=d[2],v.ops.push(L);break}d[2]&&v.ops.pop(),v.trys.pop();continue}L=E.call(h,v)}catch(j){L=[6,j],S=0}finally{m=d=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}},g=this&&this.__await||function(h){return this instanceof g?(this.v=h,this):new g(h)},y=this&&this.__asyncGenerator||function(h,E,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=v.apply(h,E||[]),S,d=[];return S={},O("next"),O("throw"),O("return"),S[Symbol.asyncIterator]=function(){return this},S;function O(U){m[U]&&(S[U]=function($){return new Promise(function(ee,re){d.push([U,$,ee,re])>1||R(U,$)})})}function R(U,$){try{C(m[U]($))}catch(ee){I(d[0][3],ee)}}function C(U){U.value instanceof g?Promise.resolve(U.value.v).then(L,j):I(d[0][2],U)}function L(U){R("next",U)}function j(U){R("throw",U)}function I(U,$){U($),d.shift(),d.length&&R(d[0][0],d[0][1])}};Object.defineProperty(w,"__esModule",{value:!0}),w.isReadableStreamLike=w.readableStreamLikeToAsyncGenerator=void 0;var x=u(10281);function f(h){return y(this,arguments,function(){var v,m,S,d;return l(this,function(O){switch(O.label){case 0:v=h.getReader(),O.label=1;case 1:O.trys.push([1,,9,10]),O.label=2;case 2:return[4,g(v.read())];case 3:return m=O.sent(),S=m.value,d=m.done,d?[4,g(void 0)]:[3,5];case 4:return[2,O.sent()];case 5:return[4,g(S)];case 6:return[4,O.sent()];case 7:return O.sent(),[3,2];case 8:return[3,10];case 9:return v.releaseLock(),[7];case 10:return[2]}})})}w.readableStreamLikeToAsyncGenerator=f;function p(h){return x.isFunction(h?.getReader)}w.isReadableStreamLike=p},95513:function(Ge,w,u){"use strict";var l=this&&this.__read||function(p,h){var E=typeof Symbol=="function"&&p[Symbol.iterator];if(!E)return p;var v=E.call(p),m,S=[],d;try{for(;(h===void 0||h-- >0)&&!(m=v.next()).done;)S.push(m.value)}catch(O){d={error:O}}finally{try{m&&!m.done&&(E=v.return)&&E.call(v)}finally{if(d)throw d.error}}return S},g=this&&this.__spreadArray||function(p,h){for(var E=0,v=h.length,m=p.length;E<v;E++,m++)p[m]=h[E];return p};Object.defineProperty(w,"__esModule",{value:!0}),w.onErrorResumeNext=w.onErrorResumeNextWith=void 0;var y=u(7652),x=u(1903);function f(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];var E=y.argsOrArgArray(p);return function(v){return x.onErrorResumeNext.apply(void 0,g([v],l(E)))}}w.onErrorResumeNextWith=f,w.onErrorResumeNext=f},95843:function(Ge,w,u){"use strict";var l=this&&this.__createBinding||(Object.create?function(j,I,U,$){$===void 0&&($=U),Object.defineProperty(j,$,{enumerable:!0,get:function(){return I[U]}})}:function(j,I,U,$){$===void 0&&($=U),j[$]=I[U]}),g=this&&this.__setModuleDefault||(Object.create?function(j,I){Object.defineProperty(j,"default",{enumerable:!0,value:I})}:function(j,I){j.default=I}),y=this&&this.__importStar||function(j){if(j&&j.__esModule)return j;var I={};if(j!=null)for(var U in j)U!=="default"&&Object.prototype.hasOwnProperty.call(j,U)&&l(I,j,U);return g(I,j),I},x=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(w,"__esModule",{value:!0}),w.InternalEvents=void 0;var f=y(u(96540)),p=x(u(41153)),h=u(60950),E=u(4122),v=u(65178);function m(){return S(),d(),C(),L(),null}w.InternalEvents=m;function S(){var j,I,U=(0,E.useKBar)(function(se){return{visualState:se.visualState,showing:se.visualState!==h.VisualState.hidden,disabled:se.disabled}}),$=U.query,ee=U.options,re=U.visualState,Se=U.showing,z=U.disabled;f.useEffect(function(){var se,q=function(){$.setVisualState(function(T){return T===h.VisualState.hidden||T===h.VisualState.animatingOut?T:h.VisualState.animatingOut})};if(z){q();return}var te=ee.toggleShortcut||"$mod+k",A=(0,p.default)(window,(se={},se[te]=function(T){var B,X,ue,ie;T.defaultPrevented||(T.preventDefault(),$.toggle(),Se?(X=(B=ee.callbacks)===null||B===void 0?void 0:B.onClose)===null||X===void 0||X.call(B):(ie=(ue=ee.callbacks)===null||ue===void 0?void 0:ue.onOpen)===null||ie===void 0||ie.call(ue))},se.Escape=function(T){var B,X;Se&&(T.stopPropagation(),T.preventDefault(),(X=(B=ee.callbacks)===null||B===void 0?void 0:B.onClose)===null||X===void 0||X.call(B)),q()},se));return function(){A()}},[ee.callbacks,ee.toggleShortcut,$,Se,z]);var Q=f.useRef(),ce=f.useCallback(function(se){var q,te,A=0;se===h.VisualState.animatingIn&&(A=((q=ee.animations)===null||q===void 0?void 0:q.enterMs)||0),se===h.VisualState.animatingOut&&(A=((te=ee.animations)===null||te===void 0?void 0:te.exitMs)||0),clearTimeout(Q.current),Q.current=setTimeout(function(){var T=!1;$.setVisualState(function(){var B=se===h.VisualState.animatingIn?h.VisualState.showing:h.VisualState.hidden;return B===h.VisualState.hidden&&(T=!0),B}),T&&$.setCurrentRootAction(null)},A)},[(j=ee.animations)===null||j===void 0?void 0:j.enterMs,(I=ee.animations)===null||I===void 0?void 0:I.exitMs,$]);f.useEffect(function(){switch(re){case h.VisualState.animatingIn:case h.VisualState.animatingOut:ce(re);break}},[ce,re])}function d(){var j=(0,E.useKBar)(function($){return{visualState:$.visualState}}),I=j.visualState,U=j.options;f.useEffect(function(){if(!U.disableDocumentLock)if(I===h.VisualState.animatingIn){if(document.body.style.overflow="hidden",!U.disableScrollbarManagement){var $=(0,v.getScrollbarWidth)(),ee=getComputedStyle(document.body)["margin-right"];ee&&($+=Number(ee.replace(/\D/g,""))),document.body.style.marginRight=$+"px"}}else I===h.VisualState.hidden&&(document.body.style.removeProperty("overflow"),U.disableScrollbarManagement||document.body.style.removeProperty("margin-right"))},[U.disableDocumentLock,U.disableScrollbarManagement,I])}var O=new WeakSet;function R(j){return function(I){O.has(I)||(j(I),O.add(I))}}function C(){var j=(0,E.useKBar)(function(Se){return{actions:Se.actions,open:Se.visualState===h.VisualState.showing,disabled:Se.disabled}}),I=j.actions,U=j.query,$=j.open,ee=j.options,re=j.disabled;f.useEffect(function(){var Se;if(!($||re)){for(var z=Object.keys(I).map(function(ue){return I[ue]}),Q=[],ce=0,se=z;ce<se.length;ce++){var q=se[ce];!((Se=q.shortcut)===null||Se===void 0)&&Se.length&&Q.push(q)}Q=Q.sort(function(ue,ie){return ie.shortcut.join(" ").length-ue.shortcut.join(" ").length});for(var te={},A=function(ue){var ie=ue.shortcut.join(" ");te[ie]=R(function(Te){var je,yt,tt,Ze,Ne,it;(0,v.shouldRejectKeystrokes)()||(Te.preventDefault(),!((je=ue.children)===null||je===void 0)&&je.length?(U.setCurrentRootAction(ue.id),U.toggle(),(tt=(yt=ee.callbacks)===null||yt===void 0?void 0:yt.onOpen)===null||tt===void 0||tt.call(yt)):((Ze=ue.command)===null||Ze===void 0||Ze.perform(),(it=(Ne=ee.callbacks)===null||Ne===void 0?void 0:Ne.onSelectAction)===null||it===void 0||it.call(Ne,ue)))})},T=0,B=Q;T<B.length;T++){var q=B[T];A(q)}var X=(0,p.default)(window,te,{timeout:400});return function(){X()}}},[I,$,ee.callbacks,U,re])}function L(){var j=f.useRef(!0),I=(0,E.useKBar)(function(re){return{isShowing:re.visualState===h.VisualState.showing||re.visualState===h.VisualState.animatingIn}}),U=I.isShowing,$=I.query,ee=f.useRef(null);f.useEffect(function(){if(j.current){j.current=!1;return}if(U){ee.current=document.activeElement;return}var re=document.activeElement;re?.tagName.toLowerCase()==="input"&&re.blur();var Se=ee.current;Se&&Se!==re&&Se.focus()},[U]),f.useEffect(function(){function re(Se){var z=$.getInput();Se.target!==z&&z.focus()}if(U)return window.addEventListener("keydown",re),function(){window.removeEventListener("keydown",re)}},[U,$])}},95864:(Ge,w,u)=>{"use strict";u.d(w,{H:()=>y});var l=u(69862),g=u(61209);function y(x,f){return(0,g.T)(f)?(0,l.Z)(x,f,1):(0,l.Z)(x,1)}},95936:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.merge=void 0;var l=u(68087),g=u(19724),y=u(44885),x=u(26404),f=u(47058);function p(){for(var h=[],E=0;E<arguments.length;E++)h[E]=arguments[E];var v=x.popScheduler(h),m=x.popNumber(h,1/0),S=h;return S.length?S.length===1?g.innerFrom(S[0]):l.mergeAll(m)(f.from(S,v)):y.EMPTY}w.merge=p},96014:(Ge,w,u)=>{"use strict";u.d(w,{fS:()=>Ft,XG:()=>Zt,rd:()=>on,qh:()=>kn,Ix:()=>lt,kO:()=>K,dO:()=>he,XZ:()=>Me,tW:()=>ur,B6:()=>Fn,W6:()=>ln,zy:()=>pn,g:()=>Yn,W5:()=>ht,y:()=>Fe});function l(We,Je){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ye,Qe){return ye.__proto__=Qe,ye},l(We,Je)}function g(We,Je){We.prototype=Object.create(Je.prototype),We.prototype.constructor=We,l(We,Je)}var y=u(96540),x=u(83175),f=u.n(x);function p(){return p=Object.assign?Object.assign.bind():function(We){for(var Je=1;Je<arguments.length;Je++){var ye=arguments[Je];for(var Qe in ye)({}).hasOwnProperty.call(ye,Qe)&&(We[Qe]=ye[Qe])}return We},p.apply(null,arguments)}var h=u(34307);function E(We){return We.valueOf?We.valueOf():Object.prototype.valueOf.call(We)}function v(We,Je){if(We===Je)return!0;if(We==null||Je==null)return!1;if(Array.isArray(We))return Array.isArray(Je)&&We.length===Je.length&&We.every(function(ze,qe){return v(ze,Je[qe])});if(typeof We=="object"||typeof Je=="object"){var ye=E(We),Qe=E(Je);return ye!==We||Qe!==Je?v(ye,Qe):Object.keys(Object.assign({},We,Je)).every(function(ze){return v(We[ze],Je[ze])})}return!1}const m=v;function S(We){return We.charAt(0)==="/"?We:"/"+We}function d(We){return We.charAt(0)==="/"?We.substr(1):We}function O(We,Je){return We.toLowerCase().indexOf(Je.toLowerCase())===0&&"/?#".indexOf(We.charAt(Je.length))!==-1}function R(We,Je){return O(We,Je)?We.substr(Je.length):We}function C(We){return We.charAt(We.length-1)==="/"?We.slice(0,-1):We}function L(We){var Je=We||"/",ye="",Qe="",ze=Je.indexOf("#");ze!==-1&&(Qe=Je.substr(ze),Je=Je.substr(0,ze));var qe=Je.indexOf("?");return qe!==-1&&(ye=Je.substr(qe),Je=Je.substr(0,qe)),{pathname:Je,search:ye==="?"?"":ye,hash:Qe==="#"?"":Qe}}function j(We){var Je=We.pathname,ye=We.search,Qe=We.hash,ze=Je||"/";return ye&&ye!=="?"&&(ze+=ye.charAt(0)==="?"?ye:"?"+ye),Qe&&Qe!=="#"&&(ze+=Qe.charAt(0)==="#"?Qe:"#"+Qe),ze}function I(We,Je,ye,Qe){var ze;typeof We=="string"?(ze=L(We),ze.state=Je):(ze=p({},We),ze.pathname===void 0&&(ze.pathname=""),ze.search?ze.search.charAt(0)!=="?"&&(ze.search="?"+ze.search):ze.search="",ze.hash?ze.hash.charAt(0)!=="#"&&(ze.hash="#"+ze.hash):ze.hash="",Je!==void 0&&ze.state===void 0&&(ze.state=Je));try{ze.pathname=decodeURI(ze.pathname)}catch(qe){throw qe instanceof URIError?new URIError('Pathname "'+ze.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):qe}return ye&&(ze.key=ye),Qe?ze.pathname?ze.pathname.charAt(0)!=="/"&&(ze.pathname=(0,h.A)(ze.pathname,Qe.pathname)):ze.pathname=Qe.pathname:ze.pathname||(ze.pathname="/"),ze}function U(We,Je){return We.pathname===Je.pathname&&We.search===Je.search&&We.hash===Je.hash&&We.key===Je.key&&m(We.state,Je.state)}function $(){var We=null;function Je(Pt){return We=Pt,function(){We===Pt&&(We=null)}}function ye(Pt,zt,un,hn){if(We!=null){var xt=typeof We=="function"?We(Pt,zt):We;typeof xt=="string"?typeof un=="function"?un(xt,hn):hn(!0):hn(xt!==!1)}else hn(!0)}var Qe=[];function ze(Pt){var zt=!0;function un(){zt&&Pt.apply(void 0,arguments)}return Qe.push(un),function(){zt=!1,Qe=Qe.filter(function(hn){return hn!==un})}}function qe(){for(var Pt=arguments.length,zt=new Array(Pt),un=0;un<Pt;un++)zt[un]=arguments[un];Qe.forEach(function(hn){return hn.apply(void 0,zt)})}return{setPrompt:Je,confirmTransitionTo:ye,appendListener:ze,notifyListeners:qe}}var ee=!!(typeof window<"u"&&window.document&&window.document.createElement);function re(We,Je){Je(window.confirm(We))}function Se(){var We=window.navigator.userAgent;return(We.indexOf("Android 2.")!==-1||We.indexOf("Android 4.0")!==-1)&&We.indexOf("Mobile Safari")!==-1&&We.indexOf("Chrome")===-1&&We.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function z(){return window.navigator.userAgent.indexOf("Trident")===-1}function Q(){return window.navigator.userAgent.indexOf("Firefox")===-1}function ce(We){return We.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var se="popstate",q="hashchange";function te(){try{return window.history.state||{}}catch{return{}}}function A(We){We===void 0&&(We={}),ee||invariant(!1);var Je=window.history,ye=Se(),Qe=!z(),ze=We,qe=ze.forceRefresh,Pt=qe===void 0?!1:qe,zt=ze.getUserConfirmation,un=zt===void 0?re:zt,hn=ze.keyLength,xt=hn===void 0?6:hn,_t=We.basename?C(S(We.basename)):"";function qt(Be){var wn=Be||{},bi=wn.key,Oi=wn.state,de=window.location,Ve=de.pathname,vt=de.search,Qt=de.hash,nt=Ve+vt+Qt;return _t&&(nt=R(nt,_t)),I(nt,Oi,bi)}function fn(){return Math.random().toString(36).substr(2,xt)}var On=$();function Gn(Be){_extends(H,Be),H.length=Je.length,On.notifyListeners(H.location,H.action)}function Bn(Be){ce(Be)||Un(qt(Be.state))}function Lr(){Un(qt(te()))}var An=!1;function Un(Be){if(An)An=!1,Gn();else{var wn="POP";On.confirmTransitionTo(Be,wn,un,function(bi){bi?Gn({action:wn,location:Be}):cr(Be)})}}function cr(Be){var wn=H.location,bi=hr.indexOf(wn.key);bi===-1&&(bi=0);var Oi=hr.indexOf(Be.key);Oi===-1&&(Oi=0);var de=bi-Oi;de&&(An=!0,Xr(de))}var mr=qt(te()),hr=[mr.key];function ar(Be){return _t+j(Be)}function Cr(Be,wn){var bi="PUSH",Oi=I(Be,wn,fn(),H.location);On.confirmTransitionTo(Oi,bi,un,function(de){if(de){var Ve=ar(Oi),vt=Oi.key,Qt=Oi.state;if(ye)if(Je.pushState({key:vt,state:Qt},null,Ve),Pt)window.location.href=Ve;else{var nt=hr.indexOf(H.location.key),Tt=hr.slice(0,nt+1);Tt.push(Oi.key),hr=Tt,Gn({action:bi,location:Oi})}else window.location.href=Ve}})}function Yr(Be,wn){var bi="REPLACE",Oi=I(Be,wn,fn(),H.location);On.confirmTransitionTo(Oi,bi,un,function(de){if(de){var Ve=ar(Oi),vt=Oi.key,Qt=Oi.state;if(ye)if(Je.replaceState({key:vt,state:Qt},null,Ve),Pt)window.location.replace(Ve);else{var nt=hr.indexOf(H.location.key);nt!==-1&&(hr[nt]=Oi.key),Gn({action:bi,location:Oi})}else window.location.replace(Ve)}})}function Xr(Be){Je.go(Be)}function ni(){Xr(-1)}function ki(){Xr(1)}var zr=0;function Ur(Be){zr+=Be,zr===1&&Be===1?(window.addEventListener(se,Bn),Qe&&window.addEventListener(q,Lr)):zr===0&&(window.removeEventListener(se,Bn),Qe&&window.removeEventListener(q,Lr))}var jt=!1;function sn(Be){Be===void 0&&(Be=!1);var wn=On.setPrompt(Be);return jt||(Ur(1),jt=!0),function(){return jt&&(jt=!1,Ur(-1)),wn()}}function Rn(Be){var wn=On.appendListener(Be);return Ur(1),function(){Ur(-1),wn()}}var H={length:Je.length,action:"POP",location:mr,createHref:ar,push:Cr,replace:Yr,go:Xr,goBack:ni,goForward:ki,block:sn,listen:Rn};return H}var T="hashchange",B={hashbang:{encodePath:function(Je){return Je.charAt(0)==="!"?Je:"!/"+d(Je)},decodePath:function(Je){return Je.charAt(0)==="!"?Je.substr(1):Je}},noslash:{encodePath:d,decodePath:S},slash:{encodePath:S,decodePath:S}};function X(We){var Je=We.indexOf("#");return Je===-1?We:We.slice(0,Je)}function ue(){var We=window.location.href,Je=We.indexOf("#");return Je===-1?"":We.substring(Je+1)}function ie(We){window.location.hash=We}function Te(We){window.location.replace(X(window.location.href)+"#"+We)}function je(We){We===void 0&&(We={}),ee||invariant(!1);var Je=window.history,ye=Q(),Qe=We,ze=Qe.getUserConfirmation,qe=ze===void 0?re:ze,Pt=Qe.hashType,zt=Pt===void 0?"slash":Pt,un=We.basename?C(S(We.basename)):"",hn=B[zt],xt=hn.encodePath,_t=hn.decodePath;function qt(){var bi=_t(ue());return un&&(bi=R(bi,un)),I(bi)}var fn=$();function On(bi){_extends(wn,bi),wn.length=Je.length,fn.notifyListeners(wn.location,wn.action)}var Gn=!1,Bn=null;function Lr(bi,Oi){return bi.pathname===Oi.pathname&&bi.search===Oi.search&&bi.hash===Oi.hash}function An(){var bi=ue(),Oi=xt(bi);if(bi!==Oi)Te(Oi);else{var de=qt(),Ve=wn.location;if(!Gn&&Lr(Ve,de)||Bn===j(de))return;Bn=null,Un(de)}}function Un(bi){if(Gn)Gn=!1,On();else{var Oi="POP";fn.confirmTransitionTo(bi,Oi,qe,function(de){de?On({action:Oi,location:bi}):cr(bi)})}}function cr(bi){var Oi=wn.location,de=Cr.lastIndexOf(j(Oi));de===-1&&(de=0);var Ve=Cr.lastIndexOf(j(bi));Ve===-1&&(Ve=0);var vt=de-Ve;vt&&(Gn=!0,ki(vt))}var mr=ue(),hr=xt(mr);mr!==hr&&Te(hr);var ar=qt(),Cr=[j(ar)];function Yr(bi){var Oi=document.querySelector("base"),de="";return Oi&&Oi.getAttribute("href")&&(de=X(window.location.href)),de+"#"+xt(un+j(bi))}function Xr(bi,Oi){var de="PUSH",Ve=I(bi,void 0,void 0,wn.location);fn.confirmTransitionTo(Ve,de,qe,function(vt){if(vt){var Qt=j(Ve),nt=xt(un+Qt),Tt=ue()!==nt;if(Tt){Bn=Qt,ie(nt);var Gt=Cr.lastIndexOf(j(wn.location)),En=Cr.slice(0,Gt+1);En.push(Qt),Cr=En,On({action:de,location:Ve})}else On()}})}function ni(bi,Oi){var de="REPLACE",Ve=I(bi,void 0,void 0,wn.location);fn.confirmTransitionTo(Ve,de,qe,function(vt){if(vt){var Qt=j(Ve),nt=xt(un+Qt),Tt=ue()!==nt;Tt&&(Bn=Qt,Te(nt));var Gt=Cr.indexOf(j(wn.location));Gt!==-1&&(Cr[Gt]=Qt),On({action:de,location:Ve})}})}function ki(bi){Je.go(bi)}function zr(){ki(-1)}function Ur(){ki(1)}var jt=0;function sn(bi){jt+=bi,jt===1&&bi===1?window.addEventListener(T,An):jt===0&&window.removeEventListener(T,An)}var Rn=!1;function H(bi){bi===void 0&&(bi=!1);var Oi=fn.setPrompt(bi);return Rn||(sn(1),Rn=!0),function(){return Rn&&(Rn=!1,sn(-1)),Oi()}}function Be(bi){var Oi=fn.appendListener(bi);return sn(1),function(){sn(-1),Oi()}}var wn={length:Je.length,action:"POP",location:ar,createHref:Yr,push:Xr,replace:ni,go:ki,goBack:zr,goForward:Ur,block:H,listen:Be};return wn}function yt(We,Je,ye){return Math.min(Math.max(We,Je),ye)}function tt(We){We===void 0&&(We={});var Je=We,ye=Je.getUserConfirmation,Qe=Je.initialEntries,ze=Qe===void 0?["/"]:Qe,qe=Je.initialIndex,Pt=qe===void 0?0:qe,zt=Je.keyLength,un=zt===void 0?6:zt,hn=$();function xt(Cr){p(ar,Cr),ar.length=ar.entries.length,hn.notifyListeners(ar.location,ar.action)}function _t(){return Math.random().toString(36).substr(2,un)}var qt=yt(Pt,0,ze.length-1),fn=ze.map(function(Cr){return typeof Cr=="string"?I(Cr,void 0,_t()):I(Cr,void 0,Cr.key||_t())}),On=j;function Gn(Cr,Yr){var Xr="PUSH",ni=I(Cr,Yr,_t(),ar.location);hn.confirmTransitionTo(ni,Xr,ye,function(ki){if(ki){var zr=ar.index,Ur=zr+1,jt=ar.entries.slice(0);jt.length>Ur?jt.splice(Ur,jt.length-Ur,ni):jt.push(ni),xt({action:Xr,location:ni,index:Ur,entries:jt})}})}function Bn(Cr,Yr){var Xr="REPLACE",ni=I(Cr,Yr,_t(),ar.location);hn.confirmTransitionTo(ni,Xr,ye,function(ki){ki&&(ar.entries[ar.index]=ni,xt({action:Xr,location:ni}))})}function Lr(Cr){var Yr=yt(ar.index+Cr,0,ar.entries.length-1),Xr="POP",ni=ar.entries[Yr];hn.confirmTransitionTo(ni,Xr,ye,function(ki){ki?xt({action:Xr,location:ni,index:Yr}):xt()})}function An(){Lr(-1)}function Un(){Lr(1)}function cr(Cr){var Yr=ar.index+Cr;return Yr>=0&&Yr<ar.entries.length}function mr(Cr){return Cr===void 0&&(Cr=!1),hn.setPrompt(Cr)}function hr(Cr){return hn.appendListener(Cr)}var ar={length:fn.length,action:"POP",location:fn[qt],index:qt,entries:fn,createHref:On,push:Gn,replace:Bn,go:Lr,goBack:An,goForward:Un,canGo:cr,block:mr,listen:hr};return ar}var Ze=u(11561),Ne=u(8505),it=u.n(Ne),Rt=u(37564);function Dn(We,Je){if(We==null)return{};var ye={};for(var Qe in We)if({}.hasOwnProperty.call(We,Qe)){if(Je.indexOf(Qe)!==-1)continue;ye[Qe]=We[Qe]}return ye}var Mt=u(4146),Wt=u.n(Mt),Tn=1073741823,bn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof u.g<"u"?u.g:{};function $t(){var We="__global_unique_id__";return bn[We]=(bn[We]||0)+1}function Ct(We,Je){return We===Je?We!==0||1/We===1/Je:We!==We&&Je!==Je}function Z(We){var Je=[];return{on:function(Qe){Je.push(Qe)},off:function(Qe){Je=Je.filter(function(ze){return ze!==Qe})},get:function(){return We},set:function(Qe,ze){We=Qe,Je.forEach(function(qe){return qe(We,ze)})}}}function me(We){return Array.isArray(We)?We[0]:We}function ke(We,Je){var ye,Qe,ze="__create-react-context-"+$t()+"__",qe=function(zt){g(un,zt);function un(){for(var xt,_t=arguments.length,qt=new Array(_t),fn=0;fn<_t;fn++)qt[fn]=arguments[fn];return xt=zt.call.apply(zt,[this].concat(qt))||this,xt.emitter=Z(xt.props.value),xt}var hn=un.prototype;return hn.getChildContext=function(){var _t;return _t={},_t[ze]=this.emitter,_t},hn.componentWillReceiveProps=function(_t){if(this.props.value!==_t.value){var qt=this.props.value,fn=_t.value,On;Ct(qt,fn)?On=0:(On=typeof Je=="function"?Je(qt,fn):Tn,On|=0,On!==0&&this.emitter.set(_t.value,On))}},hn.render=function(){return this.props.children},un}(y.Component);qe.childContextTypes=(ye={},ye[ze]=f().object.isRequired,ye);var Pt=function(zt){g(un,zt);function un(){for(var xt,_t=arguments.length,qt=new Array(_t),fn=0;fn<_t;fn++)qt[fn]=arguments[fn];return xt=zt.call.apply(zt,[this].concat(qt))||this,xt.observedBits=void 0,xt.state={value:xt.getValue()},xt.onUpdate=function(On,Gn){var Bn=xt.observedBits|0;(Bn&Gn)!==0&&xt.setState({value:xt.getValue()})},xt}var hn=un.prototype;return hn.componentWillReceiveProps=function(_t){var qt=_t.observedBits;this.observedBits=qt??Tn},hn.componentDidMount=function(){this.context[ze]&&this.context[ze].on(this.onUpdate);var _t=this.props.observedBits;this.observedBits=_t??Tn},hn.componentWillUnmount=function(){this.context[ze]&&this.context[ze].off(this.onUpdate)},hn.getValue=function(){return this.context[ze]?this.context[ze].get():We},hn.render=function(){return me(this.props.children)(this.state.value)},un}(y.Component);return Pt.contextTypes=(Qe={},Qe[ze]=f().object,Qe),{Provider:qe,Consumer:Pt}}var Ee=y.createContext||ke,_e=function(Je){var ye=Ee();return ye.displayName=Je,ye},ge=_e("Router-History"),Me=_e("Router"),lt=function(We){g(Je,We),Je.computeRootMatch=function(ze){return{path:"/",url:"/",params:{},isExact:ze==="/"}};function Je(Qe){var ze;return ze=We.call(this,Qe)||this,ze.state={location:Qe.history.location},ze._isMounted=!1,ze._pendingLocation=null,Qe.staticContext||(ze.unlisten=Qe.history.listen(function(qe){ze._pendingLocation=qe})),ze}var ye=Je.prototype;return ye.componentDidMount=function(){var ze=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(qe){ze._isMounted&&ze.setState({location:qe})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},ye.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},ye.render=function(){return y.createElement(Me.Provider,{value:{history:this.props.history,location:this.state.location,match:Je.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},y.createElement(ge.Provider,{children:this.props.children||null,value:this.props.history}))},Je}(y.Component),Ft=function(We){g(Je,We);function Je(){for(var Qe,ze=arguments.length,qe=new Array(ze),Pt=0;Pt<ze;Pt++)qe[Pt]=arguments[Pt];return Qe=We.call.apply(We,[this].concat(qe))||this,Qe.history=tt(Qe.props),Qe}var ye=Je.prototype;return ye.render=function(){return y.createElement(lt,{history:this.history,children:this.props.children})},Je}(y.Component),Et=function(We){g(Je,We);function Je(){return We.apply(this,arguments)||this}var ye=Je.prototype;return ye.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},ye.componentDidUpdate=function(ze){this.props.onUpdate&&this.props.onUpdate.call(this,this,ze)},ye.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},ye.render=function(){return null},Je}(y.Component);function Zt(We){var Je=We.message,ye=We.when,Qe=ye===void 0?!0:ye;return y.createElement(Me.Consumer,null,function(ze){if(ze||(0,Ze.A)(!1),!Qe||ze.staticContext)return null;var qe=ze.history.block;return y.createElement(Et,{onMount:function(zt){zt.release=qe(Je)},onUpdate:function(zt,un){un.message!==Je&&(zt.release(),zt.release=qe(Je))},onUnmount:function(zt){zt.release()},message:Je})})}if(0)var nn;var Pn={},rn=1e4,Vt=0;function Kn(We){if(Pn[We])return Pn[We];var Je=it().compile(We);return Vt<rn&&(Pn[We]=Je,Vt++),Je}function ur(We,Je){return We===void 0&&(We="/"),Je===void 0&&(Je={}),We==="/"?We:Kn(We)(Je,{pretty:!0})}function on(We){var Je=We.computedMatch,ye=We.to,Qe=We.push,ze=Qe===void 0?!1:Qe;return y.createElement(Me.Consumer,null,function(qe){qe||(0,Ze.A)(!1);var Pt=qe.history,zt=qe.staticContext,un=ze?Pt.push:Pt.replace,hn=I(Je?typeof ye=="string"?ur(ye,Je.params):p({},ye,{pathname:ur(ye.pathname,Je.params)}):ye);return zt?(un(hn),null):y.createElement(Et,{onMount:function(){un(hn)},onUpdate:function(_t,qt){var fn=I(qt.to);U(fn,p({},hn,{key:fn.key}))||un(hn)},to:ye})})}var tr={},Cn=1e4,Wn=0;function er(We,Je){var ye=""+Je.end+Je.strict+Je.sensitive,Qe=tr[ye]||(tr[ye]={});if(Qe[We])return Qe[We];var ze=[],qe=it()(We,ze,Je),Pt={regexp:qe,keys:ze};return Wn<Cn&&(Qe[We]=Pt,Wn++),Pt}function Fn(We,Je){Je===void 0&&(Je={}),(typeof Je=="string"||Array.isArray(Je))&&(Je={path:Je});var ye=Je,Qe=ye.path,ze=ye.exact,qe=ze===void 0?!1:ze,Pt=ye.strict,zt=Pt===void 0?!1:Pt,un=ye.sensitive,hn=un===void 0?!1:un,xt=[].concat(Qe);return xt.reduce(function(_t,qt){if(!qt&&qt!=="")return null;if(_t)return _t;var fn=er(qt,{end:qe,strict:zt,sensitive:hn}),On=fn.regexp,Gn=fn.keys,Bn=On.exec(We);if(!Bn)return null;var Lr=Bn[0],An=Bn.slice(1),Un=We===Lr;return qe&&!Un?null:{path:qt,url:qt==="/"&&Lr===""?"/":Lr,isExact:Un,params:Gn.reduce(function(cr,mr,hr){return cr[mr.name]=An[hr],cr},{})}},null)}function en(We){return y.Children.count(We)===0}function gn(We,Je,ye){var Qe=We(Je);return Qe||null}var kn=function(We){g(Je,We);function Je(){return We.apply(this,arguments)||this}var ye=Je.prototype;return ye.render=function(){var ze=this;return y.createElement(Me.Consumer,null,function(qe){qe||(0,Ze.A)(!1);var Pt=ze.props.location||qe.location,zt=ze.props.computedMatch?ze.props.computedMatch:ze.props.path?Fn(Pt.pathname,ze.props):qe.match,un=p({},qe,{location:Pt,match:zt}),hn=ze.props,xt=hn.children,_t=hn.component,qt=hn.render;return Array.isArray(xt)&&en(xt)&&(xt=null),y.createElement(Me.Provider,{value:un},un.match?xt?typeof xt=="function"?xt(un):xt:_t?y.createElement(_t,un):qt?qt(un):null:typeof xt=="function"?xt(un):null)})},Je}(y.Component);function Jn(We){return We.charAt(0)==="/"?We:"/"+We}function Nn(We,Je){return We?p({},Je,{pathname:Jn(We)+Je.pathname}):Je}function kr(We,Je){if(!We)return Je;var ye=Jn(We);return Je.pathname.indexOf(ye)!==0?Je:p({},Je,{pathname:Je.pathname.substr(ye.length)})}function bt(We){return typeof We=="string"?We:j(We)}function ne(We){return function(){(0,Ze.A)(!1)}}function fe(){}var K=function(We){g(Je,We);function Je(){for(var Qe,ze=arguments.length,qe=new Array(ze),Pt=0;Pt<ze;Pt++)qe[Pt]=arguments[Pt];return Qe=We.call.apply(We,[this].concat(qe))||this,Qe.handlePush=function(zt){return Qe.navigateTo(zt,"PUSH")},Qe.handleReplace=function(zt){return Qe.navigateTo(zt,"REPLACE")},Qe.handleListen=function(){return fe},Qe.handleBlock=function(){return fe},Qe}var ye=Je.prototype;return ye.navigateTo=function(ze,qe){var Pt=this.props,zt=Pt.basename,un=zt===void 0?"":zt,hn=Pt.context,xt=hn===void 0?{}:hn;xt.action=qe,xt.location=Nn(un,I(ze)),xt.url=bt(xt.location)},ye.render=function(){var ze=this.props,qe=ze.basename,Pt=qe===void 0?"":qe,zt=ze.context,un=zt===void 0?{}:zt,hn=ze.location,xt=hn===void 0?"/":hn,_t=Dn(ze,["basename","context","location"]),qt={createHref:function(On){return Jn(Pt+bt(On))},action:"POP",location:kr(Pt,I(xt)),push:this.handlePush,replace:this.handleReplace,go:ne("go"),goBack:ne("goBack"),goForward:ne("goForward"),listen:this.handleListen,block:this.handleBlock};return y.createElement(lt,p({},_t,{history:qt,staticContext:un}))},Je}(y.Component),he=function(We){g(Je,We);function Je(){return We.apply(this,arguments)||this}var ye=Je.prototype;return ye.render=function(){var ze=this;return y.createElement(Me.Consumer,null,function(qe){qe||(0,Ze.A)(!1);var Pt=ze.props.location||qe.location,zt,un;return y.Children.forEach(ze.props.children,function(hn){if(un==null&&y.isValidElement(hn)){zt=hn;var xt=hn.props.path||hn.props.from;un=xt?Fn(Pt.pathname,p({},hn.props,{path:xt})):qe.match}}),un?y.cloneElement(zt,{location:Pt,computedMatch:un}):null})},Je}(y.Component);function Fe(We){var Je="withRouter("+(We.displayName||We.name)+")",ye=function(ze){var qe=ze.wrappedComponentRef,Pt=Dn(ze,["wrappedComponentRef"]);return y.createElement(Me.Consumer,null,function(zt){return zt||(0,Ze.A)(!1),y.createElement(We,p({},Pt,zt,{ref:qe}))})};return ye.displayName=Je,ye.WrappedComponent=We,Wt()(ye,We)}var Nt=y.useContext;function ln(){return Nt(ge)}function pn(){return Nt(Me).location}function Yn(){var We=Nt(Me).match;return We?We.params:{}}function ht(We){var Je=pn(),ye=Nt(Me).match;return We?Fn(Je.pathname,We):ye}if(0)var De,we,Ke,be,pt},96054:(Ge,w,u)=>{"use strict";u.d(w,{z:()=>g});var l=u(29407);function g(x,f){const p=+(0,l.a)(x)-+(0,l.a)(f);return p<0?-1:p>0?1:p}var y=null},96083:(Ge,w,u)=>{"use strict";u.d(w,{Y:()=>y});var l=u(44838),g=u(39697);function y(x,f){return x===void 0&&(x=0),f===void 0&&(f=l.E),x<0&&(x=0),(0,g.O)(x,x,f)}},96153:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0})},96222:(Ge,w,u)=>{"use strict";u.d(w,{Z:()=>x});var l=u(47370),g=u(82100),y=u(92908);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var h=(0,g.lI)(f);return(0,y.N)(function(E,v){(h?(0,l.x)(f,E,h):(0,l.x)(f,E)).subscribe(v)})}},96328:function(Ge,w,u){"use strict";var l=this&&this.__read||function(E,v){var m=typeof Symbol=="function"&&E[Symbol.iterator];if(!m)return E;var S=m.call(E),d,O=[],R;try{for(;(v===void 0||v-- >0)&&!(d=S.next()).done;)O.push(d.value)}catch(C){R={error:C}}finally{try{d&&!d.done&&(m=S.return)&&m.call(S)}finally{if(R)throw R.error}}return O},g=this&&this.__spreadArray||function(E,v){for(var m=0,S=v.length,d=E.length;m<S;m++,d++)E[d]=v[m];return E};Object.defineProperty(w,"__esModule",{value:!0}),w.concat=void 0;var y=u(65212),x=u(70201),f=u(26404),p=u(47058);function h(){for(var E=[],v=0;v<arguments.length;v++)E[v]=arguments[v];var m=f.popScheduler(E);return y.operate(function(S,d){x.concatAll()(p.from(g([S],l(E)),m)).subscribe(d)})}w.concat=h},96702:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>O});var l=u(66514),g=u(70915),y=u(11217),x=u(62096),f=u(63953),p=u(92497),h=u(56361),E=u(79969),v=u(4350),m=u(50904),S=u(83671);class d extends x.Ay{constructor(C,L,j){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(C[0]))this.setCoordinates(C,L);else if(L!==void 0&&j)this.setFlatCoordinates(L,C),this.ends_=j;else{const I=C,U=[],$=[];for(let re=0,Se=I.length;re<Se;++re){const z=I[re];(0,l.X$)(U,z.getFlatCoordinates()),$.push(U.length)}const ee=I.length===0?this.getLayout():I[0].getLayout();this.setFlatCoordinates(ee,U),this.ends_=$}}appendLineString(C){(0,l.X$)(this.flatCoordinates,C.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const C=new d(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return C.applyProperties(this),C}closestPointXY(C,L,j,I){return I<(0,g.Ld)(this.getExtent(),C,L)?I:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,f.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,f.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,C,L,j,I))}getCoordinateAtM(C,L,j){return this.layout!="XYM"&&this.layout!="XYZM"||this.flatCoordinates.length===0?null:(L=L!==void 0?L:!1,j=j!==void 0?j:!1,(0,E.L8)(this.flatCoordinates,0,this.ends_,this.stride,C,L,j))}getCoordinates(){return(0,h.cD)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(C){return C<0||this.ends_.length<=C?null:new y.A(this.flatCoordinates.slice(C===0?0:this.ends_[C-1],this.ends_[C]),this.layout)}getLineStrings(){const C=this.flatCoordinates,L=this.ends_,j=this.layout,I=[];let U=0;for(let $=0,ee=L.length;$<ee;++$){const re=L[$],Se=new y.A(C.slice(U,re),j);I.push(Se),U=re}return I}getLength(){const C=this.ends_;let L=0,j=0;for(let I=0,U=C.length;I<U;++I)j+=(0,m.k)(this.flatCoordinates,L,C[I],this.stride),L=C[I];return j}getFlatMidpoints(){const C=[],L=this.flatCoordinates;let j=0;const I=this.ends_,U=this.stride;for(let $=0,ee=I.length;$<ee;++$){const re=I[$],Se=(0,E.SH)(L,j,re,U,.5);(0,l.X$)(C,Se),j=re}return C}getSimplifiedGeometryInternal(C){const L=[],j=[];return L.length=(0,S.AL)(this.flatCoordinates,0,this.ends_,this.stride,C,L,0,j),new d(L,"XY",j)}getType(){return"MultiLineString"}intersectsExtent(C){return(0,v.fB)(this.flatCoordinates,0,this.ends_,this.stride,C)}setCoordinates(C,L){this.setLayout(L,C,2),this.flatCoordinates||(this.flatCoordinates=[]);const j=(0,p.KG)(this.flatCoordinates,0,C,this.stride,this.ends_);this.flatCoordinates.length=j.length===0?0:j[j.length-1],this.changed()}}const O=d},97256:(Ge,w,u)=>{"use strict";u.d(w,{J:()=>y});var l=u(92908),g=u(64878);function y(){return(0,l.N)(function(x,f){var p,h=!1;x.subscribe((0,g._)(f,function(E){var v=p;p=E,h&&f.next([v,E]),h=!0}))})}},97314:function(Ge,w,u){"use strict";var l=this&&this.__extends||function(){var x=function(f,p){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var v in E)Object.prototype.hasOwnProperty.call(E,v)&&(h[v]=E[v])},x(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");x(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(w,"__esModule",{value:!0}),w.BehaviorSubject=void 0;var g=u(54427),y=function(x){l(f,x);function f(p){var h=x.call(this)||this;return h._value=p,h}return Object.defineProperty(f.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),f.prototype._subscribe=function(p){var h=x.prototype._subscribe.call(this,p);return!h.closed&&p.next(this._value),h},f.prototype.getValue=function(){var p=this,h=p.hasError,E=p.thrownError,v=p._value;if(h)throw E;return this._throwIfClosed(),v},f.prototype.next=function(p){x.prototype.next.call(this,this._value=p)},f}(g.Subject);w.BehaviorSubject=y},97352:(Ge,w,u)=>{var l=u(11094),g=u(83141).I;Ge.exports=y;function y(x,f){var p=new g,h="";typeof x=="function"&&(f=x,x=null),x||(x=/\r?\n/);function E(m,S){if(f){try{S=f(S)}catch(d){return m.emit("error",d)}typeof S<"u"&&m.queue(S)}else m.queue(S)}function v(m,S){var d=(h+S).split(x);h=d.pop();for(var O=0;O<d.length;O++){var R=d[O];E(m,R)}}return l(function(m){v(this,p.write(m))},function(){p.end&&v(this,p.end()),h!=null&&E(this,h),this.queue(null)})}},97388:(Ge,w,u)=>{"use strict";function l(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(S){return typeof S}:l=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},l(v)}w.log=x,w.formatArgs=y,w.save=f,w.load=p,w.useColors=g,w.storage=h(),w.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function g(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function y(v){if(v[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+v[0]+(this.useColors?"%c ":" ")+"+"+Ge.exports.humanize(this.diff),!!this.useColors){var m="color: "+this.color;v.splice(1,0,m,"color: inherit");var S=0,d=0;v[0].replace(/%[a-zA-Z%]/g,function(O){O!=="%%"&&(S++,O==="%c"&&(d=S))}),v.splice(d,0,m)}}function x(){var v;return(typeof console>"u"?"undefined":l(console))==="object"&&console.log&&(v=console).log.apply(v,arguments)}function f(v){try{v?w.storage.setItem("debug",v):w.storage.removeItem("debug")}catch{}}function p(){var v;try{v=w.storage.getItem("debug")}catch{}return!v&&typeof process<"u"&&"env"in process&&(v=process.env.DEBUG),v}function h(){try{return localStorage}catch{}}Ge.exports=u(11939)(w);var E=Ge.exports.formatters;E.j=function(v){try{return JSON.stringify(v)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}},97420:(Ge,w,u)=>{var l=u(47422),g=u(73170),y=u(31769);function x(f,p,h){for(var E=-1,v=p.length,m={};++E<v;){var S=p[E],d=l(f,S);h(d,S)&&g(m,y(S,f),d)}return m}Ge.exports=x},97677:(Ge,w,u)=>{var l=u(48287).Buffer,g,y;(function(){var x=9007199254740992,f=-x,p="0123456789",h="abcdefghijklmnopqrstuvwxyz",E=h.toUpperCase(),v=p+"abcdef";function m(A){this.name="UnsupportedError",this.message=A||"This feature is not supported on this platform"}m.prototype=new Error,m.prototype.constructor=m;var S=Array.prototype.slice;function d(A){if(!(this instanceof d))return A||(A=null),A===null?new d:new d(A);if(typeof A=="function")return this.random=A,this;arguments.length&&(this.seed=0);for(var T=0;T<arguments.length;T++){var B=0;if(Object.prototype.toString.call(arguments[T])==="[object String]")for(var X=0;X<arguments[T].length;X++){for(var ue=0,ie=0;ie<arguments[T].length;ie++)ue=arguments[T].charCodeAt(ie)+(ue<<6)+(ue<<16)-ue;B+=ue}else B=arguments[T];this.seed+=(arguments.length-T)*B}return this.mt=this.mersenne_twister(this.seed),this.bimd5=this.blueimp_md5(),this.random=function(){return this.mt.random(this.seed)},this}d.prototype.VERSION="1.1.13";function O(A,T){if(A=A||{},T)for(var B in T)typeof A[B]>"u"&&(A[B]=T[B]);return A}function R(A){return Array.apply(null,Array(A)).map(function(T,B){return B})}function C(A,T){if(A)throw new RangeError(T)}var L=function(){throw new Error("No Base64 encoder available.")};(function(){typeof btoa=="function"?L=btoa:typeof l=="function"&&(L=function(T){return new l(T).toString("base64")})})(),d.prototype.bool=function(A){return A=O(A,{likelihood:50}),C(A.likelihood<0||A.likelihood>100,"Chance: Likelihood accepts values from 0 to 100."),this.random()*100<A.likelihood},d.prototype.falsy=function(A){A=O(A,{pool:[!1,null,0,NaN,"",void 0]});var T=A.pool,B=this.integer({min:0,max:T.length-1}),X=T[B];return X},d.prototype.animal=function(A){if(A=O(A),typeof A.type<"u")return C(!this.get("animals")[A.type.toLowerCase()],"Please pick from desert, ocean, grassland, forest, zoo, pets, farm."),this.pick(this.get("animals")[A.type.toLowerCase()]);var T=["desert","forest","ocean","zoo","farm","pet","grassland"];return this.pick(this.get("animals")[this.pick(T)])},d.prototype.character=function(A){A=O(A);var T="!@#$%^&*()[]",B,X;return A.casing==="lower"?B=h:A.casing==="upper"?B=E:B=h+E,A.pool?X=A.pool:(X="",A.alpha&&(X+=B),A.numeric&&(X+=p),A.symbols&&(X+=T),X||(X=B+p+T)),X.charAt(this.natural({max:X.length-1}))},d.prototype.floating=function(A){A=O(A,{fixed:4}),C(A.fixed&&A.precision,"Chance: Cannot specify both fixed and precision.");var T,B=Math.pow(10,A.fixed),X=x/B,ue=-X;C(A.min&&A.fixed&&A.min<ue,"Chance: Min specified is out of range with fixed. Min should be, at least, "+ue),C(A.max&&A.fixed&&A.max>X,"Chance: Max specified is out of range with fixed. Max should be, at most, "+X),A=O(A,{min:ue,max:X}),T=this.integer({min:A.min*B,max:A.max*B});var ie=(T/B).toFixed(A.fixed);return parseFloat(ie)},d.prototype.integer=function(A){return A=O(A,{min:f,max:x}),C(A.min>A.max,"Chance: Min cannot be greater than Max."),Math.floor(this.random()*(A.max-A.min+1)+A.min)},d.prototype.natural=function(A){if(A=O(A,{min:0,max:x}),typeof A.numerals=="number"&&(C(A.numerals<1,"Chance: Numerals cannot be less than one."),A.min=Math.pow(10,A.numerals-1),A.max=Math.pow(10,A.numerals)-1),C(A.min<0,"Chance: Min cannot be less than zero."),A.exclude){C(!Array.isArray(A.exclude),"Chance: exclude must be an array.");for(var T in A.exclude)C(!Number.isInteger(A.exclude[T]),"Chance: exclude must be numbers.");var B=A.min+this.natural({max:A.max-A.min-A.exclude.length}),X=A.exclude.sort((ie,Te)=>ie-Te);for(var ue in X){if(B<X[ue])break;B++}return B}return this.integer(A)},d.prototype.prime=function(A){A=O(A,{min:0,max:1e4}),C(A.min<0,"Chance: Min cannot be less than zero."),C(A.min>A.max,"Chance: Min cannot be greater than Max.");var T=re.primes[re.primes.length-1];if(A.max>T)for(var B=T+2;B<=A.max;++B)this.is_prime(B)&&re.primes.push(B);var X=re.primes.filter(function(ue){return ue>=A.min&&ue<=A.max});return this.pick(X)},d.prototype.is_prime=function(A){if(A%1||A<2)return!1;if(A%2===0)return A===2;if(A%3===0)return A===3;for(var T=Math.sqrt(A),B=5;B<=T;B+=6)if(A%B===0||A%(B+2)===0)return!1;return!0},d.prototype.hex=function(A){A=O(A,{min:0,max:x,casing:"lower"}),C(A.min<0,"Chance: Min cannot be less than zero.");var T=this.natural({min:A.min,max:A.max});return A.casing==="upper"?T.toString(16).toUpperCase():T.toString(16)},d.prototype.letter=function(A){A=O(A,{casing:"lower"});var T="abcdefghijklmnopqrstuvwxyz",B=this.character({pool:T});return A.casing==="upper"&&(B=B.toUpperCase()),B},d.prototype.string=function(A){A=O(A,{min:5,max:20}),A.length!==0&&!A.length&&(A.length=this.natural({min:A.min,max:A.max})),C(A.length<0,"Chance: Length cannot be less than zero.");var T=A.length,B=this.n(this.character,T,A);return B.join("")};function j(A){this.c=A}j.prototype={substitute:function(){return this.c}};function I(A){this.c=A}I.prototype={substitute:function(){if(!/[{}\\]/.test(this.c))throw new Error('Invalid escape sequence: "\\'+this.c+'".');return this.c}};function U(A){this.c=A}U.prototype={replacers:{"#":function(A){return A.character({pool:p})},A:function(A){return A.character({pool:E})},a:function(A){return A.character({pool:h})}},substitute:function(A){var T=this.replacers[this.c];if(!T)throw new Error('Invalid replacement character: "'+this.c+'".');return T(A)}};function $(A){for(var T=[],B="identity",X=0;X<A.length;X++){var ue=A[X];switch(B){case"escape":T.push(new I(ue)),B="identity";break;case"identity":ue==="{"?B="replace":ue==="\\"?B="escape":T.push(new j(ue));break;case"replace":ue==="}"?B="identity":T.push(new U(ue));break}}return T}d.prototype.template=function(A){if(!A)throw new Error("Template string is required");var T=this;return $(A).map(function(B){return B.substitute(T)}).join("")},d.prototype.buffer=function(A){if(typeof l>"u")throw new m("Sorry, the buffer() function is not supported on your platform");A=O(A,{length:this.natural({min:5,max:20})}),C(A.length<0,"Chance: Length cannot be less than zero.");var T=A.length,B=this.n(this.character,T,A);return l.from(B)},d.prototype.capitalize=function(A){return A.charAt(0).toUpperCase()+A.substr(1)},d.prototype.mixin=function(A){for(var T in A)this[T]=A[T];return this},d.prototype.unique=function(A,T,B){C(typeof A!="function","Chance: The first argument must be a function.");var X=function(Ze,Ne){return Ze.indexOf(Ne)!==-1};B&&(X=B.comparator||X);for(var ue=[],ie=0,Te,je=T*50,yt=S.call(arguments,2);ue.length<T;){var tt=JSON.parse(JSON.stringify(yt));if(Te=A.apply(this,tt),X(ue,Te)||(ue.push(Te),ie=0),++ie>je)throw new RangeError("Chance: num is likely too large for sample set")}return ue},d.prototype.n=function(A,T){C(typeof A!="function","Chance: The first argument must be a function."),typeof T>"u"&&(T=1);var B=T,X=[],ue=S.call(arguments,2);for(B=Math.max(0,B),null;B--;null)X.push(A.apply(this,ue));return X},d.prototype.pad=function(A,T,B){return B=B||"0",A=A+"",A.length>=T?A:new Array(T-A.length+1).join(B)+A},d.prototype.pick=function(A,T){if(A.length===0)throw new RangeError("Chance: Cannot pick() from an empty array");return!T||T===1?A[this.natural({max:A.length-1})]:this.shuffle(A).slice(0,T)},d.prototype.pickone=function(A){if(A.length===0)throw new RangeError("Chance: Cannot pickone() from an empty array");return A[this.natural({max:A.length-1})]},d.prototype.pickset=function(A,T){if(T===0)return[];if(A.length===0)throw new RangeError("Chance: Cannot pickset() from an empty array");if(T<0)throw new RangeError("Chance: Count must be a positive number");if(!T||T===1)return[this.pickone(A)];var B=A.slice(0),X=B.length;return this.n(function(){var ue=this.natural({max:--X}),ie=B[ue];return B[ue]=B[X],ie},Math.min(X,T))},d.prototype.shuffle=function(A){for(var T=[],B=0,X=Number(A.length),ue=R(X),ie=X-1,Te,je=0;je<X;je++)Te=this.natural({max:ie}),B=ue[Te],T[je]=A[B],ue[Te]=ue[ie],ie-=1;return T},d.prototype.weighted=function(A,T,B){if(A.length!==T.length)throw new RangeError("Chance: Length of array and weights must match");for(var X=0,ue,ie=0;ie<T.length;++ie){if(ue=T[ie],isNaN(ue))throw new RangeError("Chance: All weights must be numbers");ue>0&&(X+=ue)}if(X===0)throw new RangeError("Chance: No valid entries in array weights");var Te=this.random()*X,je=0,yt=-1,tt;for(ie=0;ie<T.length;++ie){if(ue=T[ie],je+=ue,ue>0){if(Te<=je){tt=ie;break}yt=ie}ie===T.length-1&&(tt=yt)}var Ze=A[tt];return B=typeof B>"u"?!1:B,B&&(A.splice(tt,1),T.splice(tt,1)),Ze},d.prototype.paragraph=function(A){A=O(A);var T=A.sentences||this.natural({min:3,max:7}),B=this.n(this.sentence,T),X=A.linebreak===!0?` `:" ";return B.join(X)},d.prototype.sentence=function(A){A=O(A);var T=A.words||this.natural({min:12,max:18}),B=A.punctuation,X,ue=this.n(this.word,T);return X=ue.join(" "),X=this.capitalize(X),B!==!1&&!/^[.?;!:]$/.test(B)&&(B="."),B&&(X+=B),X},d.prototype.syllable=function(A){A=O(A);for(var T=A.length||this.natural({min:2,max:3}),B="bcdfghjklmnprstvwz",X="aeiou",ue=B+X,ie="",Te,je=0;je<T;je++)je===0?Te=this.character({pool:ue}):B.indexOf(Te)===-1?Te=this.character({pool:B}):Te=this.character({pool:X}),ie+=Te;return A.capitalize&&(ie=this.capitalize(ie)),ie},d.prototype.word=function(A){A=O(A),C(A.syllables&&A.length,"Chance: Cannot specify both syllables AND length.");var T=A.syllables||this.natural({min:1,max:3}),B="";if(A.length){do B+=this.syllable();while(B.length<A.length);B=B.substring(0,A.length)}else for(var X=0;X<T;X++)B+=this.syllable();return A.capitalize&&(B=this.capitalize(B)),B},d.prototype.emoji=function(A){A=O(A,{category:"all",length:1}),C(A.length<1||BigInt(A.length)>BigInt(x),"Chance: length must be between 1 and "+String(x));var T=this.get("emojis");A.category==="all"&&(A.category=this.pickone(Object.keys(T)));var B=T[A.category];return C(B===void 0,"Chance: Unrecognised emoji category: ["+A.category+"]."),this.pickset(B,A.length).map(function(X){return String.fromCodePoint(X)}).join("")},d.prototype.age=function(A){A=O(A);var T;switch(A.type){case"child":T={min:0,max:12};break;case"teen":T={min:13,max:19};break;case"adult":T={min:18,max:65};break;case"senior":T={min:65,max:100};break;case"all":T={min:0,max:100};break;default:T={min:18,max:65};break}return this.natural(T)},d.prototype.birthday=function(A){var T=this.age(A),B=new Date,X=B.getFullYear();if(A&&A.type){var ue=new Date,ie=new Date;ue.setFullYear(X-T-1),ie.setFullYear(X-T),A=O(A,{min:ue,max:ie})}else if(A&&(A.minAge!==void 0||A.maxAge!==void 0)){C(A.minAge<0,"Chance: MinAge cannot be less than zero."),C(A.minAge>A.maxAge,"Chance: MinAge cannot be greater than MaxAge.");var Te=A.minAge!==void 0?A.minAge:0,je=A.maxAge!==void 0?A.maxAge:100,yt=new Date(X-je-1,B.getMonth(),B.getDate()),tt=new Date(X-Te,B.getMonth(),B.getDate());yt.setDate(yt.getDate()+1),tt.setDate(tt.getDate()+1),tt.setMilliseconds(tt.getMilliseconds()-1),A=O(A,{min:yt,max:tt})}else A=O(A,{year:X-T});return this.date(A)},d.prototype.cpf=function(A){A=O(A,{formatted:!0});var T=this.n(this.natural,9,{max:9}),B=T[8]*2+T[7]*3+T[6]*4+T[5]*5+T[4]*6+T[3]*7+T[2]*8+T[1]*9+T[0]*10;B=11-B%11,B>=10&&(B=0);var X=B*2+T[8]*3+T[7]*4+T[6]*5+T[5]*6+T[4]*7+T[3]*8+T[2]*9+T[1]*10+T[0]*11;X=11-X%11,X>=10&&(X=0);var ue=""+T[0]+T[1]+T[2]+"."+T[3]+T[4]+T[5]+"."+T[6]+T[7]+T[8]+"-"+B+X;return A.formatted?ue:ue.replace(/\D/g,"")},d.prototype.cnpj=function(A){A=O(A,{formatted:!0});var T=this.n(this.natural,12,{max:12}),B=T[11]*2+T[10]*3+T[9]*4+T[8]*5+T[7]*6+T[6]*7+T[5]*8+T[4]*9+T[3]*2+T[2]*3+T[1]*4+T[0]*5;B=11-B%11,B<2&&(B=0);var X=B*2+T[11]*3+T[10]*4+T[9]*5+T[8]*6+T[7]*7+T[6]*8+T[5]*9+T[4]*2+T[3]*3+T[2]*4+T[1]*5+T[0]*6;X=11-X%11,X<2&&(X=0);var ue=""+T[0]+T[1]+"."+T[2]+T[3]+T[4]+"."+T[5]+T[6]+T[7]+"/"+T[8]+T[9]+T[10]+T[11]+"-"+B+X;return A.formatted?ue:ue.replace(/\D/g,"")},d.prototype.first=function(A){return A=O(A,{gender:this.gender(),nationality:"en"}),this.pick(this.get("firstNames")[A.gender.toLowerCase()][A.nationality.toLowerCase()])},d.prototype.profession=function(A){return A=O(A),A.rank?this.pick(["Apprentice ","Junior ","Senior ","Lead "])+this.pick(this.get("profession")):this.pick(this.get("profession"))},d.prototype.company=function(){return this.pick(this.get("company"))},d.prototype.gender=function(A){return A=O(A,{extraGenders:[]}),this.pick(["Male","Female"].concat(A.extraGenders))},d.prototype.last=function(A){if(A=O(A,{nationality:"*"}),A.nationality==="*"){var T=[],B=this.get("lastNames");return Object.keys(B).forEach(function(X){T=T.concat(B[X])}),this.pick(T)}else return this.pick(this.get("lastNames")[A.nationality.toLowerCase()])},d.prototype.israelId=function(){for(var A=this.string({pool:"0123456789",length:8}),T=0,B=0;B<A.length;B++){var X=A[B]*(B/2===parseInt(B/2)?1:2);X=this.pad(X,2).toString(),X=parseInt(X[0])+parseInt(X[1]),T=T+X}return A=A+(10-parseInt(T.toString().slice(-1))).toString().slice(-1),A},d.prototype.mrz=function(A){var T=function(ue){var ie="<ABCDEFGHIJKLMNOPQRSTUVWXYXZ".split(""),Te=[7,3,1],je=0;return typeof ue!="string"&&(ue=ue.toString()),ue.split("").forEach(function(yt,tt){var Ze=ie.indexOf(yt);Ze!==-1?yt=Ze===0?0:Ze+9:yt=parseInt(yt,10),yt*=Te[tt%Te.length],je+=yt}),je%10},B=function(ue){var ie=function(je){return new Array(je+1).join("<")},Te=["P<",ue.issuer,ue.last.toUpperCase(),"<<",ue.first.toUpperCase(),ie(39-(ue.last.length+ue.first.length+2)),ue.passportNumber,T(ue.passportNumber),ue.nationality,ue.dob,T(ue.dob),ue.gender,ue.expiry,T(ue.expiry),ie(14),T(ie(14))].join("");return Te+T(Te.substr(44,10)+Te.substr(57,7)+Te.substr(65,7))},X=this;return A=O(A,{first:this.first(),last:this.last(),passportNumber:this.integer({min:1e8,max:999999999}),dob:function(){var ue=X.birthday({type:"adult"});return[ue.getFullYear().toString().substr(2),X.pad(ue.getMonth()+1,2),X.pad(ue.getDate(),2)].join("")}(),expiry:function(){var ue=new Date;return[(ue.getFullYear()+5).toString().substr(2),X.pad(ue.getMonth()+1,2),X.pad(ue.getDate(),2)].join("")}(),gender:this.gender()==="Female"?"F":"M",issuer:"GBR",nationality:"GBR"}),B(A)},d.prototype.name=function(A){A=O(A);var T=this.first(A),B=this.last(A),X;return A.middle?X=T+" "+this.first(A)+" "+B:A.middle_initial?X=T+" "+this.character({alpha:!0,casing:"upper"})+". "+B:X=T+" "+B,A.prefix&&(X=this.prefix(A)+" "+X),A.suffix&&(X=X+" "+this.suffix(A)),X},d.prototype.name_prefixes=function(A){A=A||"all",A=A.toLowerCase();var T=[{name:"Doctor",abbreviation:"Dr."}];return(A==="male"||A==="all")&&T.push({name:"Mister",abbreviation:"Mr."}),(A==="female"||A==="all")&&(T.push({name:"Miss",abbreviation:"Miss"}),T.push({name:"Misses",abbreviation:"Mrs."})),T},d.prototype.prefix=function(A){return this.name_prefix(A)},d.prototype.name_prefix=function(A){return A=O(A,{gender:"all"}),A.full?this.pick(this.name_prefixes(A.gender)).name:this.pick(this.name_prefixes(A.gender)).abbreviation},d.prototype.HIDN=function(){var A="0123456789",T="ABCDEFGHIJKLMNOPQRSTUVWXYXZ",B="";return B+=this.string({pool:A,length:6}),B+=this.string({pool:T,length:2}),B},d.prototype.ssn=function(A){A=O(A,{ssnFour:!1,dashes:!0});var T="1234567890",B,X=A.dashes?"-":"";return A.ssnFour?B=this.string({pool:T,length:4}):B=this.string({pool:T,length:3})+X+this.string({pool:T,length:2})+X+this.string({pool:T,length:4}),B},d.prototype.aadhar=function(A){A=O(A,{onlyLastFour:!1,separatedByWhiteSpace:!0});var T="1234567890",B,X=A.separatedByWhiteSpace?" ":"";return A.onlyLastFour?B=this.string({pool:T,length:4}):B=this.string({pool:T,length:4})+X+this.string({pool:T,length:4})+X+this.string({pool:T,length:4}),B},d.prototype.name_suffixes=function(){var A=[{name:"Doctor of Osteopathic Medicine",abbreviation:"D.O."},{name:"Doctor of Philosophy",abbreviation:"Ph.D."},{name:"Esquire",abbreviation:"Esq."},{name:"Junior",abbreviation:"Jr."},{name:"Juris Doctor",abbreviation:"J.D."},{name:"Master of Arts",abbreviation:"M.A."},{name:"Master of Business Administration",abbreviation:"M.B.A."},{name:"Master of Science",abbreviation:"M.S."},{name:"Medical Doctor",abbreviation:"M.D."},{name:"Senior",abbreviation:"Sr."},{name:"The Third",abbreviation:"III"},{name:"The Fourth",abbreviation:"IV"},{name:"Bachelor of Engineering",abbreviation:"B.E"},{name:"Bachelor of Technology",abbreviation:"B.TECH"}];return A},d.prototype.suffix=function(A){return this.name_suffix(A)},d.prototype.name_suffix=function(A){return A=O(A),A.full?this.pick(this.name_suffixes()).name:this.pick(this.name_suffixes()).abbreviation},d.prototype.nationalities=function(){return this.get("nationalities")},d.prototype.nationality=function(){var A=this.pick(this.nationalities());return A.name},d.prototype.zodiac=function(){const A=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];return this.pickone(A)},d.prototype.android_id=function(){return"APA91"+this.string({pool:"0123456789abcefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_",length:178})},d.prototype.apple_token=function(){return this.string({pool:"abcdef1234567890",length:64})},d.prototype.wp8_anid2=function(){return L(this.hash({length:32}))},d.prototype.wp7_anid=function(){return"A="+this.guid().replace(/-/g,"").toUpperCase()+"&E="+this.hash({length:3})+"&W="+this.integer({min:0,max:9})},d.prototype.bb_pin=function(){return this.hash({length:8})},d.prototype.avatar=function(A){var T=null,B="//www.gravatar.com/avatar/",X={http:"http",https:"https"},ue={bmp:"bmp",gif:"gif",jpg:"jpg",png:"png"},ie={404:"404",mm:"mm",identicon:"identicon",monsterid:"monsterid",wavatar:"wavatar",retro:"retro",blank:"blank"},Te={g:"g",pg:"pg",r:"r",x:"x"},je={protocol:null,email:null,fileExtension:null,size:null,fallback:null,rating:null};if(!A)je.email=this.email(),A={};else if(typeof A=="string")je.email=A,A={};else{if(typeof A!="object")return null;if(A.constructor==="Array")return null}return je=O(A,je),je.email||(je.email=this.email()),je.protocol=X[je.protocol]?je.protocol+":":"",je.size=parseInt(je.size,0)?je.size:"",je.rating=Te[je.rating]?je.rating:"",je.fallback=ie[je.fallback]?je.fallback:"",je.fileExtension=ue[je.fileExtension]?je.fileExtension:"",T=je.protocol+B+this.bimd5.md5(je.email)+(je.fileExtension?"."+je.fileExtension:"")+(je.size||je.rating||je.fallback?"?":"")+(je.size?"&s="+je.size.toString():"")+(je.rating?"&r="+je.rating:"")+(je.fallback?"&d="+je.fallback:""),T},d.prototype.color=function(A){function T(Wt,Tn){return[Wt,Wt,Wt].join(Tn||"")}function B(Wt){var Tn=Wt?"rgba":"rgb",bn=Wt?","+this.floating({min:Rt,max:Dn}):"",$t=ue?T(this.natural({min:ie,max:Te}),","):this.natural({min:tt,max:Ze})+","+this.natural({min:Ne,max:it})+","+this.natural({max:255});return Tn+"("+$t+bn+")"}function X(Wt,Tn,bn){var $t=bn?"#":"",Ct="";return ue?(Ct=T(this.pad(this.hex({min:ie,max:Te}),2)),A.format==="shorthex"&&(Ct=T(this.hex({min:0,max:15})))):A.format==="shorthex"?Ct=this.pad(this.hex({min:Math.floor(je/16),max:Math.floor(yt/16)}),1)+this.pad(this.hex({min:Math.floor(tt/16),max:Math.floor(Ze/16)}),1)+this.pad(this.hex({min:Math.floor(Ne/16),max:Math.floor(it/16)}),1):je!==void 0||yt!==void 0||tt!==void 0||Ze!==void 0||Ne!==void 0||it!==void 0?Ct=this.pad(this.hex({min:je,max:yt}),2)+this.pad(this.hex({min:tt,max:Ze}),2)+this.pad(this.hex({min:Ne,max:it}),2):Ct=this.pad(this.hex({min:ie,max:Te}),2)+this.pad(this.hex({min:ie,max:Te}),2)+this.pad(this.hex({min:ie,max:Te}),2),$t+Ct}A=O(A,{format:this.pick(["hex","shorthex","rgb","rgba","0x","name"]),grayscale:!1,casing:"lower",min:0,max:255,min_red:void 0,max_red:void 0,min_green:void 0,max_green:void 0,min_blue:void 0,max_blue:void 0,min_alpha:0,max_alpha:1});var ue=A.grayscale,ie=A.min,Te=A.max,je=A.min_red,yt=A.max_red,tt=A.min_green,Ze=A.max_green,Ne=A.min_blue,it=A.max_blue,Rt=A.min_alpha,Dn=A.max_alpha;A.min_red===void 0&&(je=ie),A.max_red===void 0&&(yt=Te),A.min_green===void 0&&(tt=ie),A.max_green===void 0&&(Ze=Te),A.min_blue===void 0&&(Ne=ie),A.max_blue===void 0&&(it=Te),A.min_alpha===void 0&&(Rt=0),A.max_alpha===void 0&&(Dn=1),ue&&ie===0&&Te===255&&je!==void 0&&yt!==void 0&&(ie=(je+tt+Ne)/3,Te=(yt+Ze+it)/3);var Mt;if(A.format==="hex")Mt=X.call(this,2,6,!0);else if(A.format==="shorthex")Mt=X.call(this,1,3,!0);else if(A.format==="rgb")Mt=B.call(this,!1);else if(A.format==="rgba")Mt=B.call(this,!0);else if(A.format==="0x")Mt="0x"+X.call(this,2,6);else{if(A.format==="name")return this.pick(this.get("colorNames"));throw new RangeError('Invalid format provided. Please provide one of "hex", "shorthex", "rgb", "rgba", "0x" or "name".')}return A.casing==="upper"&&(Mt=Mt.toUpperCase()),Mt},d.prototype.domain=function(A){return A=O(A),this.word()+"."+(A.tld||this.tld())},d.prototype.email=function(A){return A=O(A),this.word({length:A.length})+"@"+(A.domain||this.domain())},d.prototype.fbid=function(){return"10000"+this.string({pool:"1234567890",length:11})},d.prototype.google_analytics=function(){var A=this.pad(this.natural({max:999999}),6),T=this.pad(this.natural({max:99}),2);return"UA-"+A+"-"+T},d.prototype.hashtag=function(){return"#"+this.word()},d.prototype.ip=function(){return this.natural({min:1,max:254})+"."+this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({min:1,max:254})},d.prototype.ipv6=function(){var A=this.n(this.hash,8,{length:4});return A.join(":")},d.prototype.klout=function(){return this.natural({min:1,max:99})},d.prototype.mac=function(A){return A=O(A,{delimiter:":"}),this.pad(this.natural({max:255}).toString(16),2)+A.delimiter+this.pad(this.natural({max:255}).toString(16),2)+A.delimiter+this.pad(this.natural({max:255}).toString(16),2)+A.delimiter+this.pad(this.natural({max:255}).toString(16),2)+A.delimiter+this.pad(this.natural({max:255}).toString(16),2)+A.delimiter+this.pad(this.natural({max:255}).toString(16),2)},d.prototype.semver=function(A){A=O(A,{include_prerelease:!0});var T=this.pickone(["^","~","<",">","<=",">=","="]);A.range&&(T=A.range);var B="";return A.include_prerelease&&(B=this.weighted(["","-dev","-beta","-alpha"],[50,10,5,1])),T+this.rpg("3d10").join(".")+B},d.prototype.tlds=function(){return["com","org","edu","gov","co.uk","net","io","ac","ad","ae","af","ag","ai","al","am","ao","aq","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bm","bn","bo","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","su","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","uk","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"]},d.prototype.tld=function(){return this.pick(this.tlds())},d.prototype.twitter=function(){return"@"+this.word()},d.prototype.url=function(A){A=O(A,{protocol:"http",domain:this.domain(A),domain_prefix:"",path:this.word(),extensions:[]});var T=A.extensions.length>0?"."+this.pick(A.extensions):"",B=A.domain_prefix?A.domain_prefix+"."+A.domain:A.domain;return A.protocol+"://"+B+"/"+A.path+T},d.prototype.port=function(){return this.integer({min:0,max:65535})},d.prototype.locale=function(A){return A=O(A),A.region?this.pick(this.get("locale_regions")):this.pick(this.get("locale_languages"))},d.prototype.locales=function(A){return A=O(A),A.region?this.get("locale_regions"):this.get("locale_languages")},d.prototype.loremPicsum=function(A){A=O(A,{width:500,height:500,greyscale:!1,blurred:!1});var T=A.greyscale?"g/":"",B=A.blurred?"/?blur":"/?random";return"https://picsum.photos/"+T+A.width+"/"+A.height+B},d.prototype.address=function(A){return A=O(A),this.natural({min:5,max:2e3})+" "+this.street(A)},d.prototype.altitude=function(A){return A=O(A,{fixed:5,min:0,max:8848}),this.floating({min:A.min,max:A.max,fixed:A.fixed})},d.prototype.areacode=function(A){A=O(A,{parens:!0});var T=A.exampleNumber?"555":this.natural({min:2,max:9}).toString()+this.natural({min:0,max:8}).toString()+this.natural({min:0,max:9}).toString();return A.parens?"("+T+")":T},d.prototype.city=function(){return this.capitalize(this.word({syllables:3}))},d.prototype.coordinates=function(A){return this.latitude(A)+", "+this.longitude(A)},d.prototype.countries=function(){return this.get("countries")},d.prototype.country=function(A){A=O(A);var T=this.pick(this.countries());return A.raw?T:A.full?T.name:T.abbreviation},d.prototype.depth=function(A){return A=O(A,{fixed:5,min:-10994,max:0}),this.floating({min:A.min,max:A.max,fixed:A.fixed})},d.prototype.geohash=function(A){return A=O(A,{length:7}),this.string({length:A.length,pool:"0123456789bcdefghjkmnpqrstuvwxyz"})},d.prototype.geojson=function(A){return this.latitude(A)+", "+this.longitude(A)+", "+this.altitude(A)},d.prototype.latitude=function(A){var[T,B,X]=["ddm","dms","dd"];A=O(A,A&&A.format&&[T,B].includes(A.format.toLowerCase())?{min:0,max:89,fixed:4}:{fixed:5,min:-90,max:90,format:X});var ue=A.format.toLowerCase();switch((ue===T||ue===B)&&(C(A.min<0||A.min>89,"Chance: Min specified is out of range. Should be between 0 - 89"),C(A.max<0||A.max>89,"Chance: Max specified is out of range. Should be between 0 - 89"),C(A.fixed>4,"Chance: Fixed specified should be below or equal to 4")),ue){case T:return this.integer({min:A.min,max:A.max})+"\xB0"+this.floating({min:0,max:59,fixed:A.fixed});case B:return this.integer({min:A.min,max:A.max})+"\xB0"+this.integer({min:0,max:59})+"\u2019"+this.floating({min:0,max:59,fixed:A.fixed})+"\u201D";case X:default:return this.floating({min:A.min,max:A.max,fixed:A.fixed})}},d.prototype.longitude=function(A){var[T,B,X]=["ddm","dms","dd"];A=O(A,A&&A.format&&[T,B].includes(A.format.toLowerCase())?{min:0,max:179,fixed:4}:{fixed:5,min:-180,max:180,format:X});var ue=A.format.toLowerCase();switch((ue===T||ue===B)&&(C(A.min<0||A.min>179,"Chance: Min specified is out of range. Should be between 0 - 179"),C(A.max<0||A.max>179,"Chance: Max specified is out of range. Should be between 0 - 179"),C(A.fixed>4,"Chance: Fixed specified should be below or equal to 4")),ue){case T:return this.integer({min:A.min,max:A.max})+"\xB0"+this.floating({min:0,max:59.9999,fixed:A.fixed});case B:return this.integer({min:A.min,max:A.max})+"\xB0"+this.integer({min:0,max:59})+"\u2019"+this.floating({min:0,max:59.9999,fixed:A.fixed})+"\u201D";case X:default:return this.floating({min:A.min,max:A.max,fixed:A.fixed})}},d.prototype.phone=function(A){var T=this,B,X=function(Ne){var it=[];return Ne.sections.forEach(function(Rt){it.push(T.string({pool:"0123456789",length:Rt}))}),Ne.area+it.join(" ")};A=O(A,{formatted:!0,country:"us",mobile:!1,exampleNumber:!1}),A.formatted||(A.parens=!1);var ue;switch(A.country){case"fr":A.mobile?(B=this.pick(["06","07"])+T.string({pool:"0123456789",length:8}),ue=A.formatted?B.match(/../g).join(" "):B):(B=this.pick(["01"+this.pick(["30","34","39","40","41","42","43","44","45","46","47","48","49","53","55","56","58","60","64","69","70","72","73","74","75","76","77","78","79","80","81","82","83"])+T.string({pool:"0123456789",length:6}),"02"+this.pick(["14","18","22","23","28","29","30","31","32","33","34","35","36","37","38","40","41","43","44","45","46","47","48","49","50","51","52","53","54","56","57","61","62","69","72","76","77","78","85","90","96","97","98","99"])+T.string({pool:"0123456789",length:6}),"03"+this.pick(["10","20","21","22","23","24","25","26","27","28","29","39","44","45","51","52","54","55","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","80","81","82","83","84","85","86","87","88","89","90"])+T.string({pool:"0123456789",length:6}),"04"+this.pick(["11","13","15","20","22","26","27","30","32","34","37","42","43","44","50","56","57","63","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","88","89","90","91","92","93","94","95","97","98"])+T.string({pool:"0123456789",length:6}),"05"+this.pick(["08","16","17","19","24","31","32","33","34","35","40","45","46","47","49","53","55","56","57","58","59","61","62","63","64","65","67","79","81","82","86","87","90","94"])+T.string({pool:"0123456789",length:6}),"09"+T.string({pool:"0123456789",length:8})]),ue=A.formatted?B.match(/../g).join(" "):B);break;case"uk":A.mobile?(B=this.pick([{area:"07"+this.pick(["4","5","7","8","9"]),sections:[2,6]},{area:"07624 ",sections:[6]}]),ue=A.formatted?X(B):X(B).replace(" ","")):(B=this.pick([{area:"01"+this.character({pool:"234569"})+"1 ",sections:[3,4]},{area:"020 "+this.character({pool:"378"}),sections:[3,4]},{area:"023 "+this.character({pool:"89"}),sections:[3,4]},{area:"024 7",sections:[3,4]},{area:"028 "+this.pick(["25","28","37","71","82","90","92","95"]),sections:[2,4]},{area:"012"+this.pick(["04","08","54","76","97","98"])+" ",sections:[6]},{area:"013"+this.pick(["63","64","84","86"])+" ",sections:[6]},{area:"014"+this.pick(["04","20","60","61","80","88"])+" ",sections:[6]},{area:"015"+this.pick(["24","27","62","66"])+" ",sections:[6]},{area:"016"+this.pick(["06","29","35","47","59","95"])+" ",sections:[6]},{area:"017"+this.pick(["26","44","50","68"])+" ",sections:[6]},{area:"018"+this.pick(["27","37","84","97"])+" ",sections:[6]},{area:"019"+this.pick(["00","05","35","46","49","63","95"])+" ",sections:[6]}]),ue=A.formatted?X(B):X(B).replace(" ","","g"));break;case"za":A.mobile?(B=this.pick(["060"+this.pick(["3","4","5","6","7","8","9"])+T.string({pool:"0123456789",length:6}),"061"+this.pick(["0","1","2","3","4","5","8"])+T.string({pool:"0123456789",length:6}),"06"+T.string({pool:"0123456789",length:7}),"071"+this.pick(["0","1","2","3","4","5","6","7","8","9"])+T.string({pool:"0123456789",length:6}),"07"+this.pick(["2","3","4","6","7","8","9"])+T.string({pool:"0123456789",length:7}),"08"+this.pick(["0","1","2","3","4","5"])+T.string({pool:"0123456789",length:7})]),ue=A.formatted||B):(B=this.pick(["01"+this.pick(["0","1","2","3","4","5","6","7","8"])+T.string({pool:"0123456789",length:7}),"02"+this.pick(["1","2","3","4","7","8"])+T.string({pool:"0123456789",length:7}),"03"+this.pick(["1","2","3","5","6","9"])+T.string({pool:"0123456789",length:7}),"04"+this.pick(["1","2","3","4","5","6","7","8","9"])+T.string({pool:"0123456789",length:7}),"05"+this.pick(["1","3","4","6","7","8"])+T.string({pool:"0123456789",length:7})]),ue=A.formatted||B);break;case"us":var ie=this.areacode(A).toString(),Te=this.natural({min:2,max:9}).toString()+this.natural({min:0,max:9}).toString()+this.natural({min:0,max:9}).toString(),je=this.natural({min:1e3,max:9999}).toString();ue=A.formatted?ie+" "+Te+"-"+je:ie+Te+je;break;case"br":var yt=this.pick(["11","12","13","14","15","16","17","18","19","21","22","24","27","28","31","32","33","34","35","37","38","41","42","43","44","45","46","47","48","49","51","53","54","55","61","62","63","64","65","66","67","68","69","71","73","74","75","77","79","81","82","83","84","85","86","87","88","89","91","92","93","94","95","96","97","98","99"]),tt;A.mobile?tt="9"+T.string({pool:"0123456789",length:4}):tt=this.natural({min:2e3,max:5999}).toString();var Ze=T.string({pool:"0123456789",length:4});ue=A.formatted?"("+yt+") "+tt+"-"+Ze:yt+tt+Ze;break}return ue},d.prototype.postal=function(){var A=this.character({pool:"XVTSRPNKLMHJGECBA"}),T=A+this.natural({max:9})+this.character({alpha:!0,casing:"upper"}),B=this.natural({max:9})+this.character({alpha:!0,casing:"upper"})+this.natural({max:9});return T+" "+B},d.prototype.postcode=function(){var A=this.pick(this.get("postcodeAreas")).code,T=this.natural({max:9}),B=this.bool()?this.character({alpha:!0,casing:"upper"}):"",X=A+T+B,ue=this.natural({max:9}),ie=this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"}),Te=ue+ie;return X+" "+Te},d.prototype.counties=function(A){return A=O(A,{country:"uk"}),this.get("counties")[A.country.toLowerCase()]},d.prototype.county=function(A){return this.pick(this.counties(A)).name},d.prototype.provinces=function(A){return A=O(A,{country:"ca"}),this.get("provinces")[A.country.toLowerCase()]},d.prototype.province=function(A){return A&&A.full?this.pick(this.provinces(A)).name:this.pick(this.provinces(A)).abbreviation},d.prototype.state=function(A){return A&&A.full?this.pick(this.states(A)).name:this.pick(this.states(A)).abbreviation},d.prototype.states=function(A){A=O(A,{country:"us",us_states_and_dc:!0});var T;switch(A.country.toLowerCase()){case"us":var B=this.get("us_states_and_dc"),X=this.get("territories"),ue=this.get("armed_forces");T=[],A.us_states_and_dc&&(T=T.concat(B)),A.territories&&(T=T.concat(X)),A.armed_forces&&(T=T.concat(ue));break;case"it":case"mx":T=this.get("country_regions")[A.country.toLowerCase()];break;case"uk":T=this.get("counties")[A.country.toLowerCase()];break}return T},d.prototype.street=function(A){A=O(A,{country:"us",syllables:2});var T;switch(A.country.toLowerCase()){case"us":T=this.word({syllables:A.syllables}),T=this.capitalize(T),T+=" ",T+=A.short_suffix?this.street_suffix(A).abbreviation:this.street_suffix(A).name;break;case"it":T=this.word({syllables:A.syllables}),T=this.capitalize(T),T=(A.short_suffix?this.street_suffix(A).abbreviation:this.street_suffix(A).name)+" "+T;break}return T},d.prototype.street_suffix=function(A){return A=O(A,{country:"us"}),this.pick(this.street_suffixes(A))},d.prototype.street_suffixes=function(A){return A=O(A,{country:"us"}),this.get("street_suffixes")[A.country.toLowerCase()]},d.prototype.zip=function(A){var T=this.n(this.natural,5,{max:9});return A&&A.plusfour===!0&&(T.push("-"),T=T.concat(this.n(this.natural,4,{max:9}))),T.join("")},d.prototype.ampm=function(){return this.bool()?"am":"pm"},d.prototype.date=function(A){var T,B;if(A&&(A.min||A.max)){A=O(A,{american:!0,string:!1});var X=typeof A.min<"u"?A.min.getTime():1,ue=typeof A.max<"u"?A.max.getTime():864e13;B=new Date(this.integer({min:X,max:ue}))}else{var ie=this.month({raw:!0}),Te=ie.days;A&&A.month&&(Te=this.get("months")[(A.month%12+12)%12].days),A=O(A,{year:parseInt(this.year(),10),month:ie.numeric-1,day:this.natural({min:1,max:Te}),hour:this.hour({twentyfour:!0}),minute:this.minute(),second:this.second(),millisecond:this.millisecond(),american:!0,string:!1}),B=new Date(A.year,A.month,A.day,A.hour,A.minute,A.second,A.millisecond)}return A.american?T=B.getMonth()+1+"/"+B.getDate()+"/"+B.getFullYear():T=B.getDate()+"/"+(B.getMonth()+1)+"/"+B.getFullYear(),A.string?T:B},d.prototype.hammertime=function(A){return this.date(A).getTime()},d.prototype.hour=function(A){return A=O(A,{min:A&&A.twentyfour?0:1,max:A&&A.twentyfour?23:12}),C(A.min<0,"Chance: Min cannot be less than 0."),C(A.twentyfour&&A.max>23,"Chance: Max cannot be greater than 23 for twentyfour option."),C(!A.twentyfour&&A.max>12,"Chance: Max cannot be greater than 12."),C(A.min>A.max,"Chance: Min cannot be greater than Max."),this.natural({min:A.min,max:A.max})},d.prototype.millisecond=function(){return this.natural({max:999})},d.prototype.minute=d.prototype.second=function(A){return A=O(A,{min:0,max:59}),C(A.min<0,"Chance: Min cannot be less than 0."),C(A.max>59,"Chance: Max cannot be greater than 59."),C(A.min>A.max,"Chance: Min cannot be greater than Max."),this.natural({min:A.min,max:A.max})},d.prototype.month=function(A){A=O(A,{min:1,max:12}),C(A.min<1,"Chance: Min cannot be less than 1."),C(A.max>12,"Chance: Max cannot be greater than 12."),C(A.min>A.max,"Chance: Min cannot be greater than Max.");var T=this.pick(this.months().slice(A.min-1,A.max));return A.raw?T:T.name},d.prototype.months=function(){return this.get("months")},d.prototype.second=function(){return this.natural({max:59})},d.prototype.timestamp=function(){return this.natural({min:1,max:parseInt(new Date().getTime()/1e3,10)})},d.prototype.weekday=function(A){A=O(A,{weekday_only:!1});var T=["Monday","Tuesday","Wednesday","Thursday","Friday"];return A.weekday_only||(T.push("Saturday"),T.push("Sunday")),this.pickone(T)},d.prototype.year=function(A){return A=O(A,{min:new Date().getFullYear()}),A.max=typeof A.max<"u"?A.max:A.min+100,this.natural(A).toString()},d.prototype.cc=function(A){A=O(A);var T,B,X;return T=A.type?this.cc_type({name:A.type,raw:!0}):this.cc_type({raw:!0}),B=T.prefix.split(""),X=T.length-T.prefix.length-1,B=B.concat(this.n(this.integer,X,{min:0,max:9})),B.push(this.luhn_calculate(B.join(""))),B.join("")},d.prototype.cc_types=function(){return this.get("cc_types")},d.prototype.cc_type=function(A){A=O(A);var T=this.cc_types(),B=null;if(A.name){for(var X=0;X<T.length;X++)if(T[X].name===A.name||T[X].short_name===A.name){B=T[X];break}if(B===null)throw new RangeError("Chance: Credit card type '"+A.name+"' is not supported")}else B=this.pick(T);return A.raw?B:B.name},d.prototype.currency_types=function(){return this.get("currency_types")},d.prototype.currency=function(){return this.pick(this.currency_types())},d.prototype.timezones=function(){return this.get("timezones")},d.prototype.timezone=function(){return this.pick(this.timezones())},d.prototype.currency_pair=function(A){var T=this.unique(this.currency,2,{comparator:function(B,X){return B.reduce(function(ue,ie){return ue||ie.code===X.code},!1)}});return A?T[0].code+"/"+T[1].code:T},d.prototype.dollar=function(A){A=O(A,{max:1e4,min:0});var T=this.floating({min:A.min,max:A.max,fixed:2}).toString(),B=T.split(".")[1];return B===void 0?T+=".00":B.length<2&&(T=T+"0"),T<0?"-$"+T.replace("-",""):"$"+T},d.prototype.euro=function(A){return Number(this.dollar(A).replace("$","")).toLocaleString()+"\u20AC"},d.prototype.exp=function(A){A=O(A);var T={};return T.year=this.exp_year(),T.year===new Date().getFullYear().toString()?T.month=this.exp_month({future:!0}):T.month=this.exp_month(),A.raw?T:T.month+"/"+T.year},d.prototype.exp_month=function(A){A=O(A);var T,B,X=new Date().getMonth()+1;if(A.future&&X!==12)do T=this.month({raw:!0}).numeric,B=parseInt(T,10);while(B<=X);else T=this.month({raw:!0}).numeric;return T},d.prototype.exp_year=function(){var A=new Date().getMonth()+1,T=new Date().getFullYear();return this.year({min:A===12?T+1:T,max:T+10})},d.prototype.vat=function(A){switch(A=O(A,{country:"it"}),A.country.toLowerCase()){case"it":return this.it_vat()}},d.prototype.iban=function(){var A="ABCDEFGHIJKLMNOPQRSTUVWXYZ",T=A+"0123456789",B=this.string({length:2,pool:A})+this.pad(this.integer({min:0,max:99}),2)+this.string({length:4,pool:T})+this.pad(this.natural(),this.natural({min:6,max:26}));return B},d.prototype.it_vat=function(){var A=this.natural({min:1,max:18e5});return A=this.pad(A,7)+this.pad(this.pick(this.provinces({country:"it"})).code,3),A+this.luhn_calculate(A)},d.prototype.cf=function(A){A=A||{};var T=A.gender?A.gender:this.gender(),B=A.first?A.first:this.first({gender:T,nationality:"it"}),X=A.last?A.last:this.last({nationality:"it"}),ue=A.birthday?A.birthday:this.birthday(),ie=A.city?A.city:this.pickone(["A","B","C","D","E","F","G","H","I","L","M","Z"])+this.pad(this.natural({max:999}),3),Te=[],je=function(Ze,Ne){var it,Rt=[];return Ze.length<3?Rt=Ze.split("").concat("XXX".split("")).splice(0,3):(it=Ze.toUpperCase().split("").map(function(Dn){return"BCDFGHJKLMNPRSTVWZ".indexOf(Dn)!==-1?Dn:void 0}).join(""),it.length>3&&(Ne?it=it.substr(0,3):it=it[0]+it.substr(2,2)),it.length<3&&(Rt=it,it=Ze.toUpperCase().split("").map(function(Dn){return"AEIOU".indexOf(Dn)!==-1?Dn:void 0}).join("").substr(0,3-Rt.length)),Rt=Rt+it),Rt},yt=function(Ze,Ne,it){var Rt=["A","B","C","D","E","H","L","M","P","R","S","T"];return Ze.getFullYear().toString().substr(2)+Rt[Ze.getMonth()]+it.pad(Ze.getDate()+(Ne.toLowerCase()==="female"?40:0),2)},tt=function(Ze){for(var Ne="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",it="ABCDEFGHIJABCDEFGHIJKLMNOPQRSTUVWXYZ",Rt="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Dn="BAKPLCQDREVOSFTGUHMINJWZYX",Mt=0,Wt=0;Wt<15;Wt++)Wt%2!==0?Mt+=Rt.indexOf(it[Ne.indexOf(Ze[Wt])]):Mt+=Dn.indexOf(it[Ne.indexOf(Ze[Wt])]);return Rt[Mt%26]};return Te=Te.concat(je(X,!0),je(B),yt(ue,T,this),ie.toUpperCase().split("")).join(""),Te+=tt(Te.toUpperCase(),this),Te.toUpperCase()},d.prototype.pl_pesel=function(){for(var A=this.natural({min:1,max:9999999999}),T=this.pad(A,10).split(""),B=0;B<T.length;B++)T[B]=parseInt(T[B]);var X=(1*T[0]+3*T[1]+7*T[2]+9*T[3]+1*T[4]+3*T[5]+7*T[6]+9*T[7]+1*T[8]+3*T[9])%10;return X!==0&&(X=10-X),T.join("")+X},d.prototype.pl_nip=function(){for(var A=this.natural({min:1,max:999999999}),T=this.pad(A,9).split(""),B=0;B<T.length;B++)T[B]=parseInt(T[B]);var X=(6*T[0]+5*T[1]+7*T[2]+2*T[3]+3*T[4]+4*T[5]+5*T[6]+6*T[7]+7*T[8])%11;return X===10?this.pl_nip():T.join("")+X},d.prototype.pl_regon=function(){for(var A=this.natural({min:1,max:99999999}),T=this.pad(A,8).split(""),B=0;B<T.length;B++)T[B]=parseInt(T[B]);var X=(8*T[0]+9*T[1]+2*T[2]+3*T[3]+4*T[4]+5*T[5]+6*T[6]+7*T[7])%11;return X===10&&(X=0),T.join("")+X},d.prototype.music_genre=function(A="general"){if(!(A.toLowerCase()in re.music_genres))throw new Error(`Unsupported genre: ${A}`);const T=re.music_genres[A.toLowerCase()],B=this.integer({min:0,max:T.length-1});return T[B]},d.prototype.note=function(A){A=O(A,{notes:"flatKey"});var T={naturals:["C","D","E","F","G","A","B"],flats:["D\u266D","E\u266D","G\u266D","A\u266D","B\u266D"],sharps:["C\u266F","D\u266F","F\u266F","G\u266F","A\u266F"]};return T.all=T.naturals.concat(T.flats.concat(T.sharps)),T.flatKey=T.naturals.concat(T.flats),T.sharpKey=T.naturals.concat(T.sharps),this.pickone(T[A.notes])},d.prototype.midi_note=function(A){var T=0,B=127;return A=O(A,{min:T,max:B}),this.integer({min:A.min,max:A.max})},d.prototype.chord_quality=function(A){A=O(A,{jazz:!0});var T=["maj","min","aug","dim"];return A.jazz&&(T=["maj7","min7","7","sus","dim","\xF8"]),this.pickone(T)},d.prototype.chord=function(A){return A=O(A),this.note(A)+this.chord_quality(A)},d.prototype.tempo=function(A){var T=40,B=320;return A=O(A,{min:T,max:B}),this.integer({min:A.min,max:A.max})},d.prototype.coin=function(){return this.bool()?"heads":"tails"};function ee(A){return function(){return this.natural(A)}}d.prototype.d4=ee({min:1,max:4}),d.prototype.d6=ee({min:1,max:6}),d.prototype.d8=ee({min:1,max:8}),d.prototype.d10=ee({min:1,max:10}),d.prototype.d12=ee({min:1,max:12}),d.prototype.d20=ee({min:1,max:20}),d.prototype.d30=ee({min:1,max:30}),d.prototype.d100=ee({min:1,max:100}),d.prototype.rpg=function(A,T){if(T=O(T),A){var B=A.toLowerCase().split("d"),X=[];if(B.length!==2||!parseInt(B[0],10)||!parseInt(B[1],10))throw new Error("Chance: Invalid format provided. Please provide #d# where the first # is the number of dice to roll, the second # is the max of each die");for(var ue=B[0];ue>0;ue--)X[ue-1]=this.natural({min:1,max:B[1]});return typeof T.sum<"u"&&T.sum?X.reduce(function(ie,Te){return ie+Te}):X}else throw new RangeError("Chance: A type of die roll must be included")},d.prototype.guid=function(A){A=O(A,{version:5});var T="abcdef1234567890",B="ab89",X=this.string({pool:T,length:8})+"-"+this.string({pool:T,length:4})+"-"+A.version+this.string({pool:T,length:3})+"-"+this.string({pool:B,length:1})+this.string({pool:T,length:3})+"-"+this.string({pool:T,length:12});return X},d.prototype.hash=function(A){A=O(A,{length:40,casing:"lower"});var T=A.casing==="upper"?v.toUpperCase():v;return this.string({pool:T,length:A.length})},d.prototype.luhn_check=function(A){var T=A.toString(),B=+T.substring(T.length-1);return B===this.luhn_calculate(+T.substring(0,T.length-1))},d.prototype.luhn_calculate=function(A){for(var T=A.toString().split("").reverse(),B=0,X,ue=0,ie=T.length;ie>ue;++ue)X=+T[ue],ue%2===0&&(X*=2,X>9&&(X-=9)),B+=X;return B*9%10},d.prototype.md5=function(A){var T={str:"",key:null,raw:!1};if(!A)T.str=this.string(),A={};else if(typeof A=="string")T.str=A,A={};else{if(typeof A!="object")return null;if(A.constructor==="Array")return null}if(T=O(A,T),!T.str)throw new Error("A parameter is required to return an md5 hash.");return this.bimd5.md5(T.str,T.key,T.raw)},d.prototype.file=function(A){var T=A||{},B="fileExtension",X=Object.keys(this.get("fileExtension")),ue,ie;if(ue=this.word({length:T.length}),T.extension)return ie=T.extension,ue+"."+ie;if(T.extensions){if(Array.isArray(T.extensions))return ie=this.pickone(T.extensions),ue+"."+ie;if(T.extensions.constructor===Object){var Te=T.extensions,je=Object.keys(Te);return ie=this.pickone(Te[this.pickone(je)]),ue+"."+ie}throw new Error("Chance: Extensions must be an Array or Object")}if(T.fileType){var yt=T.fileType;if(X.indexOf(yt)!==-1)return ie=this.pickone(this.get(B)[yt]),ue+"."+ie;throw new RangeError("Chance: Expect file type value to be 'raster', 'vector', '3d' or 'document'")}return ie=this.pickone(this.get(B)[this.pickone(X)]),ue+"."+ie},d.prototype.fileWithContent=function(A){var T=A||{},B="fileName"in T?T.fileName:this.file().split(".")[0];if(B+="."+("fileExtension"in T?T.fileExtension:this.file().split(".")[1]),typeof T.fileSize!="number")throw new Error("File size must be an integer");var X={fileData:this.buffer({length:T.fileSize}),fileName:B};return X};var re={firstNames:{male:{en:["James","John","Robert","Michael","William","David","Richard","Joseph","Charles","Thomas","Christopher","Daniel","Matthew","George","Donald","Anthony","Paul","Mark","Edward","Steven","Kenneth","Andrew","Brian","Joshua","Kevin","Ronald","Timothy","Jason","Jeffrey","Frank","Gary","Ryan","Nicholas","Eric","Stephen","Jacob","Larry","Jonathan","Scott","Raymond","Justin","Brandon","Gregory","Samuel","Benjamin","Patrick","Jack","Henry","Walter","Dennis","Jerry","Alexander","Peter","Tyler","Douglas","Harold","Aaron","Jose","Adam","Arthur","Zachary","Carl","Nathan","Albert","Kyle","Lawrence","Joe","Willie","Gerald","Roger","Keith","Jeremy","Terry","Harry","Ralph","Sean","Jesse","Roy","Louis","Billy","Austin","Bruce","Eugene","Christian","Bryan","Wayne","Russell","Howard","Fred","Ethan","Jordan","Philip","Alan","Juan","Randy","Vincent","Bobby","Dylan","Johnny","Phillip","Victor","Clarence","Ernest","Martin","Craig","Stanley","Shawn","Travis","Bradley","Leonard","Earl","Gabriel","Jimmy","Francis","Todd","Noah","Danny","Dale","Cody","Carlos","Allen","Frederick","Logan","Curtis","Alex","Joel","Luis","Norman","Marvin","Glenn","Tony","Nathaniel","Rodney","Melvin","Alfred","Steve","Cameron","Chad","Edwin","Caleb","Evan","Antonio","Lee","Herbert","Jeffery","Isaac","Derek","Ricky","Marcus","Theodore","Elijah","Luke","Jesus","Eddie","Troy","Mike","Dustin","Ray","Adrian","Bernard","Leroy","Angel","Randall","Wesley","Ian","Jared","Mason","Hunter","Calvin","Oscar","Clifford","Jay","Shane","Ronnie","Barry","Lucas","Corey","Manuel","Leo","Tommy","Warren","Jackson","Isaiah","Connor","Don","Dean","Jon","Julian","Miguel","Bill","Lloyd","Charlie","Mitchell","Leon","Jerome","Darrell","Jeremiah","Alvin","Brett","Seth","Floyd","Jim","Blake","Micheal","Gordon","Trevor","Lewis","Erik","Edgar","Vernon","Devin","Gavin","Jayden","Chris","Clyde","Tom","Derrick","Mario","Brent","Marc","Herman","Chase","Dominic","Ricardo","Franklin","Maurice","Max","Aiden","Owen","Lester","Gilbert","Elmer","Gene","Francisco","Glen","Cory","Garrett","Clayton","Sam","Jorge","Chester","Alejandro","Jeff","Harvey","Milton","Cole","Ivan","Andre","Duane","Landon"],it:["Adolfo","Alberto","Aldo","Alessandro","Alessio","Alfredo","Alvaro","Andrea","Angelo","Angiolo","Antonino","Antonio","Attilio","Benito","Bernardo","Bruno","Carlo","Cesare","Christian","Claudio","Corrado","Cosimo","Cristian","Cristiano","Daniele","Dario","David","Davide","Diego","Dino","Domenico","Duccio","Edoardo","Elia","Elio","Emanuele","Emiliano","Emilio","Enrico","Enzo","Ettore","Fabio","Fabrizio","Federico","Ferdinando","Fernando","Filippo","Francesco","Franco","Gabriele","Giacomo","Giampaolo","Giampiero","Giancarlo","Gianfranco","Gianluca","Gianmarco","Gianni","Gino","Giorgio","Giovanni","Giuliano","Giulio","Giuseppe","Graziano","Gregorio","Guido","Iacopo","Jacopo","Lapo","Leonardo","Lorenzo","Luca","Luciano","Luigi","Manuel","Marcello","Marco","Marino","Mario","Massimiliano","Massimo","Matteo","Mattia","Maurizio","Mauro","Michele","Mirko","Mohamed","Nello","Neri","Niccol\xF2","Nicola","Osvaldo","Otello","Paolo","Pier Luigi","Piero","Pietro","Raffaele","Remo","Renato","Renzo","Riccardo","Roberto","Rolando","Romano","Salvatore","Samuele","Sandro","Sergio","Silvano","Simone","Stefano","Thomas","Tommaso","Ubaldo","Ugo","Umberto","Valerio","Valter","Vasco","Vincenzo","Vittorio"],nl:["Aaron","Abel","Adam","Adriaan","Albert","Alexander","Ali","Arjen","Arno","Bart","Bas","Bastiaan","Benjamin","Bob","Boris","Bram","Brent","Cas","Casper","Chris","Christiaan","Cornelis","Daan","Daley","Damian","Dani","Daniel","Dani\xEBl","David","Dean","Dirk","Dylan","Egbert","Elijah","Erik","Erwin","Evert","Ezra","Fabian","Fedde","Finn","Florian","Floris","Frank","Frans","Frederik","Freek","Geert","Gerard","Gerben","Gerrit","Gijs","Guus","Hans","Hendrik","Henk","Herman","Hidde","Hugo","Jaap","Jan Jaap","Jan-Willem","Jack","Jacob","Jan","Jason","Jasper","Jayden","Jelle","Jelte","Jens","Jeroen","Jesse","Jim","Job","Joep","Johannes","John","Jonathan","Joris","Joshua","Jo\xEBl","Julian","Kees","Kevin","Koen","Lars","Laurens","Leendert","Lennard","Lodewijk","Luc","Luca","Lucas","Lukas","Luuk","Maarten","Marcus","Martijn","Martin","Matthijs","Maurits","Max","Mees","Melle","Mick","Mika","Milan","Mohamed","Mohammed","Morris","Muhammed","Nathan","Nick","Nico","Niek","Niels","Noah","Noud","Olivier","Oscar","Owen","Paul","Pepijn","Peter","Pieter","Pim","Quinten","Reinier","Rens","Robin","Ruben","Sam","Samuel","Sander","Sebastiaan","Sem","Sep","Sepp","Siem","Simon","Stan","Stef","Steven","Stijn","Sven","Teun","Thijmen","Thijs","Thomas","Tijn","Tim","Timo","Tobias","Tom","Victor","Vince","Willem","Wim","Wouter","Yusuf"],fr:["Aaron","Abdon","Abel","Ab\xE9lard","Abelin","Abondance","Abraham","Absalon","Acace","Achaire","Achille","Adalard","Adalbald","Adalb\xE9ron","Adalbert","Adalric","Adam","Adegrin","Adel","Adelin","Andelin","Adelphe","Adam","Ad\xE9odat","Adh\xE9mar","Adjutor","Adolphe","Adonis","Adon","Adrien","Agapet","Agathange","Agathon","Agilbert","Ag\xE9nor","Agnan","Aignan","Agrippin","Aimable","Aim\xE9","Alain","Alban","Albin","Aubin","Alb\xE9ric","Albert","Albertet","Alcibiade","Alcide","Alc\xE9e","Alcime","Aldonce","Aldric","Ald\xE9ric","Aleaume","Alexandre","Alexis","Alix","Alliaume","Aleaume","Almine","Almire","Alo\xEFs","Alph\xE9e","Alphonse","Alpinien","Alver\xE8de","Amalric","Amaury","Amandin","Amant","Ambroise","Am\xE9d\xE9e","Am\xE9lien","Amiel","Amour","Ana\xEBl","Anastase","Anatole","Ancelin","And\xE9ol","Andoche","Andr\xE9","Andoche","Ange","Angelin","Angilbe","Anglebert","Angoustan","Anicet","Anne","Annibal","Ansbert","Anselme","Anthelme","Antheaume","Anthime","Antide","Antoine","Antonius","Antonin","Apollinaire","Apollon","Aquilin","Arcade","Archambaud","Archambeau","Archange","Archibald","Arian","Ariel","Ariste","Aristide","Armand","Armel","Armin","Arnould","Arnaud","Arolde","Ars\xE8ne","Arsino\xE9","Arthaud","Arth\xE8me","Arthur","Ascelin","Athanase","Aubry","Audebert","Audouin","Audran","Audric","Auguste","Augustin","Aur\xE8le","Aur\xE9lien","Aurian","Auxence","Axel","Aymard","Aymeric","Aymon","Aymond","Balthazar","Baptiste","Barnab\xE9","Barth\xE9lemy","Bartim\xE9e","Basile","Bastien","Baudouin","B\xE9nigne","Benjamin","Beno\xEEt","B\xE9renger","B\xE9rard","Bernard","Bertrand","Blaise","Bon","Boniface","Bouchard","Brice","Brieuc","Bruno","Brunon","Calixte","Calliste","Cam\xE9lien","Camille","Camillien","Candide","Caribert","Carloman","Cassandre","Cassien","C\xE9dric","C\xE9leste","C\xE9lestin","C\xE9lien","C\xE9saire","C\xE9sar","Charles","Charlemagne","Childebert","Chilp\xE9ric","Chr\xE9tien","Christian","Christodule","Christophe","Chrysostome","Clarence","Claude","Claudien","Cl\xE9andre","Cl\xE9ment","Clotaire","C\xF4me","Constance","Constant","Constantin","Corentin","Cyprien","Cyriaque","Cyrille","Cyril","Damien","Daniel","David","Delphin","Denis","D\xE9sir\xE9","Didier","Dieudonn\xE9","Dimitri","Dominique","Dorian","Doroth\xE9e","Edgard","Edmond","\xC9douard","\xC9leuth\xE8re","\xC9lie","\xC9lis\xE9e","\xC9meric","\xC9mile","\xC9milien","Emmanuel","Enguerrand","\xC9piphane","\xC9ric","Esprit","Ernest","\xC9tienne","Eubert","Eudes","Eudoxe","Eug\xE8ne","Eus\xE8be","Eustache","\xC9variste","\xC9vrard","Fabien","Fabrice","Falba","F\xE9licit\xE9","F\xE9lix","Ferdinand","Fiacre","Fid\xE8le","Firmin","Flavien","Flodoard","Florent","Florentin","Florestan","Florian","Fortun\xE9","Foulques","Francisque","Fran\xE7ois","Fran\xE7ais","Franciscus","Francs","Fr\xE9d\xE9ric","Fulbert","Fulcran","Fulgence","Gabin","Gabriel","Ga\xEBl","Garnier","Gaston","Gaspard","Gatien","Gaud","Gautier","G\xE9d\xE9on","Geoffroy","Georges","G\xE9raud","G\xE9rard","Gerbert","Germain","Gervais","Ghislain","Gilbert","Gilles","Girart","Gislebert","Gondebaud","Gonthier","Gontran","Gonzague","Gr\xE9goire","Gu\xE9rin","Gui","Guillaume","Gustave","Guy","Guyot","Hardouin","Hector","H\xE9delin","H\xE9lier","Henri","Herbert","Herluin","Herv\xE9","Hilaire","Hildebert","Hincmar","Hippolyte","Honor\xE9","Hubert","Hugues","Innocent","Isabeau","Isidore","Jacques","Japhet","Jason","Jean","Jeannel","Jeannot","J\xE9r\xE9mie","J\xE9r\xF4me","Joachim","Joanny","Job","Jocelyn","Jo\xEBl","Johan","Jonas","Jonathan","Joseph","Josse","Josselin","Jourdain","Jude","Judica\xEBl","Jules","Julien","Juste","Justin","Lambert","Landry","Laurent","Lazare","L\xE9andre","L\xE9on","L\xE9onard","L\xE9opold","Leu","Loup","Leufroy","Lib\xE8re","Li\xE9tald","Lionel","Lo\xEFc","Longin","Lorrain","Lorraine","Lothaire","Louis","Loup","Luc","Lucas","Lucien","Ludolphe","Ludovic","Macaire","Malo","Mamert","Manass\xE9","Marc","Marceau","Marcel","Marcelin","Marius","Marseille","Martial","Martin","Mathurin","Matthias","Mathias","Matthieu","Maugis","Maurice","Mauricet","Maxence","Maxime","Maximilien","Mayeul","M\xE9d\xE9ric","Melchior","Mence","Merlin","M\xE9rov\xE9e","Micha\xEBl","Michel","Mo\xEFse","Morgan","Nathan","Nathana\xEBl","Narcisse","N\xE9h\xE9mie","Nestor","Nestor","Nic\xE9phore","Nicolas","No\xE9","No\xEBl","Norbert","Normand","Normands","Octave","Odilon","Odon","Oger","Olivier","Oury","Pac\xF4me","Pal\xE9mon","Parfait","Pascal","Paterne","Patrice","Paul","P\xE9pin","Perceval","Phil\xE9mon","Philibert","Philippe","Philoth\xE9e","Pie","Pierre","Pierrick","Prosper","Quentin","Raoul","Rapha\xEBl","Raymond","R\xE9gis","R\xE9jean","R\xE9mi","Renaud","Ren\xE9","Reybaud","Richard","Robert","Roch","Rodolphe","Rodrigue","Roger","Roland","Romain","Romuald","Rom\xE9o","Rome","Ronan","Roselin","Salomon","Samuel","Savin","Savinien","Scholastique","S\xE9bastien","S\xE9raphin","Serge","S\xE9verin","Sidoine","Sigebert","Sigismond","Silv\xE8re","Simon","Sim\xE9on","Sixte","Stanislas","St\xE9phane","Stephan","Sylvain","Sylvestre","Tancr\xE8de","Tanguy","Taurin","Th\xE9odore","Th\xE9odose","Th\xE9ophile","Th\xE9ophraste","Thibault","Thibert","Thierry","Thomas","Timol\xE9on","Timoth\xE9e","Titien","Tonnin","Toussaint","Trajan","Tristan","Turold","Tim","Ulysse","Urbain","Valentin","Val\xE8re","Val\xE9ry","Venance","Venant","Venceslas","Vianney","Victor","Victorien","Victorin","Vigile","Vincent","Vital","Vitalien","Vivien","Waleran","Wandrille","Xavier","X\xE9nophon","Yves","Zacharie","Zach\xE9","Z\xE9phirin"]},female:{en:["Mary","Emma","Elizabeth","Minnie","Margaret","Ida","Alice","Bertha","Sarah","Annie","Clara","Ella","Florence","Cora","Martha","Laura","Nellie","Grace","Carrie","Maude","Mabel","Bessie","Jennie","Gertrude","Julia","Hattie","Edith","Mattie","Rose","Catherine","Lillian","Ada","Lillie","Helen","Jessie","Louise","Ethel","Lula","Myrtle","Eva","Frances","Lena","Lucy","Edna","Maggie","Pearl","Daisy","Fannie","Josephine","Dora","Rosa","Katherine","Agnes","Marie","Nora","May","Mamie","Blanche","Stella","Ellen","Nancy","Effie","Sallie","Nettie","Della","Lizzie","Flora","Susie","Maud","Mae","Etta","Harriet","Sadie","Caroline","Katie","Lydia","Elsie","Kate","Susan","Mollie","Alma","Addie","Georgia","Eliza","Lulu","Nannie","Lottie","Amanda","Belle","Charlotte","Rebecca","Ruth","Viola","Olive","Amelia","Hannah","Jane","Virginia","Emily","Matilda","Irene","Kathryn","Esther","Willie","Henrietta","Ollie","Amy","Rachel","Sara","Estella","Theresa","Augusta","Ora","Pauline","Josie","Lola","Sophia","Leona","Anne","Mildred","Ann","Beulah","Callie","Lou","Delia","Eleanor","Barbara","Iva","Louisa","Maria","Mayme","Evelyn","Estelle","Nina","Betty","Marion","Bettie","Dorothy","Luella","Inez","Lela","Rosie","Allie","Millie","Janie","Cornelia","Victoria","Ruby","Winifred","Alta","Celia","Christine","Beatrice","Birdie","Harriett","Mable","Myra","Sophie","Tillie","Isabel","Sylvia","Carolyn","Isabelle","Leila","Sally","Ina","Essie","Bertie","Nell","Alberta","Katharine","Lora","Rena","Mina","Rhoda","Mathilda","Abbie","Eula","Dollie","Hettie","Eunice","Fanny","Ola","Lenora","Adelaide","Christina","Lelia","Nelle","Sue","Johanna","Lilly","Lucinda","Minerva","Lettie","Roxie","Cynthia","Helena","Hilda","Hulda","Bernice","Genevieve","Jean","Cordelia","Marian","Francis","Jeanette","Adeline","Gussie","Leah","Lois","Lura","Mittie","Hallie","Isabella","Olga","Phoebe","Teresa","Hester","Lida","Lina","Winnie","Claudia","Marguerite","Vera","Cecelia","Bess","Emilie","Rosetta","Verna","Myrtie","Cecilia","Elva","Olivia","Ophelia","Georgie","Elnora","Violet","Adele","Lily","Linnie","Loretta","Madge","Polly","Virgie","Eugenia","Lucile","Lucille","Mabelle","Rosalie"],it:["Ada","Adriana","Alessandra","Alessia","Alice","Angela","Anna","Anna Maria","Annalisa","Annita","Annunziata","Antonella","Arianna","Asia","Assunta","Aurora","Barbara","Beatrice","Benedetta","Bianca","Bruna","Camilla","Carla","Carlotta","Carmela","Carolina","Caterina","Catia","Cecilia","Chiara","Cinzia","Clara","Claudia","Costanza","Cristina","Daniela","Debora","Diletta","Dina","Donatella","Elena","Eleonora","Elisa","Elisabetta","Emanuela","Emma","Eva","Federica","Fernanda","Fiorella","Fiorenza","Flora","Franca","Francesca","Gabriella","Gaia","Gemma","Giada","Gianna","Gina","Ginevra","Giorgia","Giovanna","Giulia","Giuliana","Giuseppa","Giuseppina","Grazia","Graziella","Greta","Ida","Ilaria","Ines","Iolanda","Irene","Irma","Isabella","Jessica","Laura","Lea","Letizia","Licia","Lidia","Liliana","Lina","Linda","Lisa","Livia","Loretta","Luana","Lucia","Luciana","Lucrezia","Luisa","Manuela","Mara","Marcella","Margherita","Maria","Maria Cristina","Maria Grazia","Maria Luisa","Maria Pia","Maria Teresa","Marina","Marisa","Marta","Martina","Marzia","Matilde","Melissa","Michela","Milena","Mirella","Monica","Natalina","Nella","Nicoletta","Noemi","Olga","Paola","Patrizia","Piera","Pierina","Raffaella","Rebecca","Renata","Rina","Rita","Roberta","Rosa","Rosanna","Rossana","Rossella","Sabrina","Sandra","Sara","Serena","Silvana","Silvia","Simona","Simonetta","Sofia","Sonia","Stefania","Susanna","Teresa","Tina","Tiziana","Tosca","Valentina","Valeria","Vanda","Vanessa","Vanna","Vera","Veronica","Vilma","Viola","Virginia","Vittoria"],nl:["Ada","Arianne","Afke","Amanda","Amber","Amy","Aniek","Anita","Anja","Anna","Anne","Annelies","Annemarie","Annette","Anouk","Astrid","Aukje","Barbara","Bianca","Carla","Carlijn","Carolien","Chantal","Charlotte","Claudia","Dani\xEBlle","Debora","Diane","Dora","Eline","Elise","Ella","Ellen","Emma","Esmee","Evelien","Esther","Erica","Eva","Femke","Fleur","Floor","Froukje","Gea","Gerda","Hanna","Hanneke","Heleen","Hilde","Ilona","Ina","Inge","Ingrid","Iris","Isabel","Isabelle","Janneke","Jasmijn","Jeanine","Jennifer","Jessica","Johanna","Joke","Julia","Julie","Karen","Karin","Katja","Kim","Lara","Laura","Lena","Lianne","Lieke","Lilian","Linda","Lisa","Lisanne","Lotte","Louise","Maaike","Manon","Marga","Maria","Marissa","Marit","Marjolein","Martine","Marleen","Melissa","Merel","Miranda","Michelle","Mirjam","Mirthe","Naomi","Natalie","Nienke","Nina","Noortje","Olivia","Patricia","Paula","Paulien","Ramona","Ria","Rianne","Roos","Rosanne","Ruth","Sabrina","Sandra","Sanne","Sara","Saskia","Silvia","Sofia","Sophie","Sonja","Suzanne","Tamara","Tess","Tessa","Tineke","Valerie","Vanessa","Veerle","Vera","Victoria","Wendy","Willeke","Yvonne","Zo\xEB"],fr:["Abdon","Abel","Abiga\xEBlle","Abiga\xEFl","Acacius","Acanthe","Adalbert","Adalsinde","Adegrine","Ad\xE9la\xEFde","Ad\xE8le","Ad\xE9lie","Adeline","Adeltrude","Adolphe","Adonis","Adrast\xE9e","Adrehilde","Adrienne","Agathe","Agilbert","Agla\xE9","Aignan","Agnefl\xE8te","Agn\xE8s","Agrippine","Aim\xE9","Alaine","Ala\xEFs","Albane","Alb\xE9rade","Alberte","Alcide","Alcine","Alcyone","Aldegonde","Aleth","Alexandrine","Alexine","Alice","Ali\xE9nor","Aliette","Aline","Alix","Aliz\xE9","Alo\xEFse","Aloyse","Alphonsine","Alth\xE9e","Amaliane","Amalth\xE9e","Amande","Amandine","Amant","Amarande","Amaranthe","Amaryllis","Ambre","Ambroisie","Am\xE9lie","Am\xE9thyste","Aminte","Ana\xEBl","Ana\xEFs","Anastasie","Anatole","Ancelin","Andr\xE9e","An\xE9mone","Angadr\xEAme","Ang\xE8le","Angeline","Ang\xE9lique","Angilbert","Anicet","Annabelle","Anne","Annette","Annick","Annie","Annonciade","Ansbert","Anstrudie","Anthelme","Antigone","Antoinette","Antonine","Aph\xE9lie","Apolline","Apollonie","Aquiline","Arabelle","Arcadie","Archange","Argine","Ariane","Aricie","Ariel","Arielle","Arlette","Armance","Armande","Armandine","Armelle","Armide","Armelle","Armin","Arnaud","Ars\xE8ne","Arsino\xE9","Art\xE9mis","Arthur","Ascelin","Ascension","Assomption","Astart\xE9","Ast\xE9rie","Astr\xE9e","Astrid","Athalie","Athanasie","Athina","Aube","Albert","Aude","Audrey","Augustine","Aure","Aur\xE9lie","Aur\xE9lien","Aur\xE8le","Aurore","Auxence","Aveline","Abiga\xEBlle","Avoye","Axelle","Aymard","Azal\xE9e","Ad\xE8le","Adeline","Barbe","Basilisse","Bathilde","B\xE9atrice","B\xE9atrix","B\xE9n\xE9dicte","B\xE9reng\xE8re","Bernadette","Berthe","Bertille","Beuve","Blanche","Blanc","Blandine","Brigitte","Brune","Brunehilde","Callista","Camille","Capucine","Carine","Caroline","Cassandre","Catherine","C\xE9cile","C\xE9leste","C\xE9lestine","C\xE9line","Chantal","Charl\xE8ne","Charline","Charlotte","Chlo\xE9","Christelle","Christiane","Christine","Claire","Clara","Claude","Claudine","Clarisse","Cl\xE9mence","Cl\xE9mentine","Cl\xE9o","Clio","Clotilde","Coline","Conception","Constance","Coralie","Coraline","Corentine","Corinne","Cyrielle","Daniel","Daniel","Daphn\xE9","D\xE9bora","Delphine","Denise","Diane","Dieudonn\xE9","Dominique","Doriane","Doroth\xE9e","Douce","\xC9dith","Edm\xE9e","\xC9l\xE9onore","\xC9liane","\xC9lia","\xC9liette","\xC9lisabeth","\xC9lise","Ella","\xC9lodie","\xC9lo\xEFse","Elsa","\xC9meline","\xC9m\xE9rance","\xC9m\xE9rentienne","\xC9m\xE9rencie","\xC9milie","Emma","Emmanuelle","Emmelie","Ernestine","Esther","Estelle","Eudoxie","Eug\xE9nie","Eulalie","Euphrasie","Eus\xE9bie","\xC9vang\xE9line","Eva","\xC8ve","\xC9velyne","Fanny","Fantine","Faustine","F\xE9licie","Fernande","Flavie","Fleur","Flore","Florence","Florie","Fortun\xE9","France","Francia","Fran\xE7oise","Francine","Gabrielle","Ga\xEBlle","Garance","Genevi\xE8ve","Georgette","Gerberge","Germaine","Gertrude","Gis\xE8le","Gueni\xE8vre","Guilhemine","Guillemette","Gustave","Gwenael","H\xE9l\xE8ne","H\xE9lo\xEFse","Henriette","Hermine","Hermione","Hippolyte","Honorine","Hortense","Huguette","Ines","Ir\xE8ne","Irina","Iris","Isabeau","Isabelle","Iseult","Isolde","Ism\xE9rie","Jacinthe","Jacqueline","Jade","Janine","Jeanne","Jocelyne","Jo\xEBlle","Jos\xE9phine","Judith","Julia","Julie","Jules","Juliette","Justine","Katy","Kathy","Katie","Laura","Laure","Laureline","Laurence","Laurene","Lauriane","Laurianne","Laurine","L\xE9a","L\xE9na","L\xE9onie","L\xE9on","L\xE9ontine","Lorraine","Lucie","Lucienne","Lucille","Ludivine","Lydie","Lydie","Megane","Madeleine","Magali","Maguelone","Mallaury","Manon","Marceline","Margot","Marguerite","Marianne","Marie","Myriam","Marie","Marine","Marion","Marl\xE8ne","Marthe","Martine","Mathilde","Maud","Maureen","Mauricette","Maxime","M\xE9lanie","Melissa","M\xE9lissandre","M\xE9lisande","M\xE9lodie","Michel","Micheline","Mireille","Miriam","Mo\xEFse","Monique","Morgane","Muriel","Myl\xE8ne","Nad\xE8ge","Nadine","Nathalie","Nicole","Nicolette","Nine","No\xEBl","No\xE9mie","Oc\xE9ane","Odette","Odile","Olive","Olivia","Olympe","Ombline","Ombeline","Oph\xE9lie","Oriande","Oriane","Ozanne","Pascale","Pascaline","Paule","Paulette","Pauline","Priscille","Prisca","Prisque","P\xE9cine","P\xE9lagie","P\xE9n\xE9lope","Perrine","P\xE9tronille","Philippine","Philom\xE8ne","Philoth\xE9e","Primerose","Prudence","Pulch\xE9rie","Quentine","Qui\xE9ta","Quintia","Quintilla","Rachel","Rapha\xEBlle","Raymonde","Rebecca","R\xE9gine","R\xE9jeanne","Ren\xE9","Rita","Rita","Rolande","Romane","Rosalie","Rose","Roseline","Sabine","Salom\xE9","Sandra","Sandrine","Sarah","S\xE9gol\xE8ne","S\xE9verine","Sibylle","Simone","Sixt","Solange","Soline","Sol\xE8ne","Sophie","St\xE9phanie","Suzanne","Sylvain","Sylvie","Tatiana","Tha\xEFs","Th\xE9odora","Th\xE9r\xE8se","Tiphaine","Ursule","Valentine","Val\xE9rie","V\xE9ronique","Victoire","Victorine","Vinciane","Violette","Virginie","Viviane","Xavi\xE8re","Yolande","Ysaline","Yvette","Yvonne","Z\xE9lie","Zita","Zo\xE9"]}},lastNames:{en:["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White","Harris","Martin","Thompson","Garcia","Martinez","Robinson","Clark","Rodriguez","Lewis","Lee","Walker","Hall","Allen","Young","Hernandez","King","Wright","Lopez","Hill","Scott","Green","Adams","Baker","Gonzalez","Nelson","Carter","Mitchell","Perez","Roberts","Turner","Phillips","Campbell","Parker","Evans","Edwards","Collins","Stewart","Sanchez","Morris","Rogers","Reed","Cook","Morgan","Bell","Murphy","Bailey","Rivera","Cooper","Richardson","Cox","Howard","Ward","Torres","Peterson","Gray","Ramirez","James","Watson","Brooks","Kelly","Sanders","Price","Bennett","Wood","Barnes","Ross","Henderson","Coleman","Jenkins","Perry","Powell","Long","Patterson","Hughes","Flores","Washington","Butler","Simmons","Foster","Gonzales","Bryant","Alexander","Russell","Griffin","Diaz","Hayes","Myers","Ford","Hamilton","Graham","Sullivan","Wallace","Woods","Cole","West","Jordan","Owens","Reynolds","Fisher","Ellis","Harrison","Gibson","McDonald","Cruz","Marshall","Ortiz","Gomez","Murray","Freeman","Wells","Webb","Simpson","Stevens","Tucker","Porter","Hunter","Hicks","Crawford","Henry","Boyd","Mason","Morales","Kennedy","Warren","Dixon","Ramos","Reyes","Burns","Gordon","Shaw","Holmes","Rice","Robertson","Hunt","Black","Daniels","Palmer","Mills","Nichols","Grant","Knight","Ferguson","Rose","Stone","Hawkins","Dunn","Perkins","Hudson","Spencer","Gardner","Stephens","Payne","Pierce","Berry","Matthews","Arnold","Wagner","Willis","Ray","Watkins","Olson","Carroll","Duncan","Snyder","Hart","Cunningham","Bradley","Lane","Andrews","Ruiz","Harper","Fox","Riley","Armstrong","Carpenter","Weaver","Greene","Lawrence","Elliott","Chavez","Sims","Austin","Peters","Kelley","Franklin","Lawson","Fields","Gutierrez","Ryan","Schmidt","Carr","Vasquez","Castillo","Wheeler","Chapman","Oliver","Montgomery","Richards","Williamson","Johnston","Banks","Meyer","Bishop","McCoy","Howell","Alvarez","Morrison","Hansen","Fernandez","Garza","Harvey","Little","Burton","Stanley","Nguyen","George","Jacobs","Reid","Kim","Fuller","Lynch","Dean","Gilbert","Garrett","Romero","Welch","Larson","Frazier","Burke","Hanson","Day","Mendoza","Moreno","Bowman","Medina","Fowler","Brewer","Hoffman","Carlson","Silva","Pearson","Holland","Douglas","Fleming","Jensen","Vargas","Byrd","Davidson","Hopkins","May","Terry","Herrera","Wade","Soto","Walters","Curtis","Neal","Caldwell","Lowe","Jennings","Barnett","Graves","Jimenez","Horton","Shelton","Barrett","Obrien","Castro","Sutton","Gregory","McKinney","Lucas","Miles","Craig","Rodriquez","Chambers","Holt","Lambert","Fletcher","Watts","Bates","Hale","Rhodes","Pena","Beck","Newman","Haynes","McDaniel","Mendez","Bush","Vaughn","Parks","Dawson","Santiago","Norris","Hardy","Love","Steele","Curry","Powers","Schultz","Barker","Guzman","Page","Munoz","Ball","Keller","Chandler","Weber","Leonard","Walsh","Lyons","Ramsey","Wolfe","Schneider","Mullins","Benson","Sharp","Bowen","Daniel","Barber","Cummings","Hines","Baldwin","Griffith","Valdez","Hubbard","Salazar","Reeves","Warner","Stevenson","Burgess","Santos","Tate","Cross","Garner","Mann","Mack","Moss","Thornton","Dennis","McGee","Farmer","Delgado","Aguilar","Vega","Glover","Manning","Cohen","Harmon","Rodgers","Robbins","Newton","Todd","Blair","Higgins","Ingram","Reese","Cannon","Strickland","Townsend","Potter","Goodwin","Walton","Rowe","Hampton","Ortega","Patton","Swanson","Joseph","Francis","Goodman","Maldonado","Yates","Becker","Erickson","Hodges","Rios","Conner","Adkins","Webster","Norman","Malone","Hammond","Flowers","Cobb","Moody","Quinn","Blake","Maxwell","Pope","Floyd","Osborne","Paul","McCarthy","Guerrero","Lindsey","Estrada","Sandoval","Gibbs","Tyler","Gross","Fitzgerald","Stokes","Doyle","Sherman","Saunders","Wise","Colon","Gill","Alvarado","Greer","Padilla","Simon","Waters","Nunez","Ballard","Schwartz","McBride","Houston","Christensen","Klein","Pratt","Briggs","Parsons","McLaughlin","Zimmerman","French","Buchanan","Moran","Copeland","Roy","Pittman","Brady","McCormick","Holloway","Brock","Poole","Frank","Logan","Owen","Bass","Marsh","Drake","Wong","Jefferson","Park","Morton","Abbott","Sparks","Patrick","Norton","Huff","Clayton","Massey","Lloyd","Figueroa","Carson","Bowers","Roberson","Barton","Tran","Lamb","Harrington","Casey","Boone","Cortez","Clarke","Mathis","Singleton","Wilkins","Cain","Bryan","Underwood","Hogan","McKenzie","Collier","Luna","Phelps","McGuire","Allison","Bridges","Wilkerson","Nash","Summers","Atkins"],it:["Acciai","Aglietti","Agostini","Agresti","Ahmed","Aiazzi","Albanese","Alberti","Alessi","Alfani","Alinari","Alterini","Amato","Ammannati","Ancillotti","Andrei","Andreini","Andreoni","Angeli","Anichini","Antonelli","Antonini","Arena","Ariani","Arnetoli","Arrighi","Baccani","Baccetti","Bacci","Bacherini","Badii","Baggiani","Baglioni","Bagni","Bagnoli","Baldassini","Baldi","Baldini","Ballerini","Balli","Ballini","Balloni","Bambi","Banchi","Bandinelli","Bandini","Bani","Barbetti","Barbieri","Barchielli","Bardazzi","Bardelli","Bardi","Barducci","Bargellini","Bargiacchi","Barni","Baroncelli","Baroncini","Barone","Baroni","Baronti","Bartalesi","Bartoletti","Bartoli","Bartolini","Bartoloni","Bartolozzi","Basagni","Basile","Bassi","Batacchi","Battaglia","Battaglini","Bausi","Becagli","Becattini","Becchi","Becucci","Bellandi","Bellesi","Belli","Bellini","Bellucci","Bencini","Benedetti","Benelli","Beni","Benini","Bensi","Benucci","Benvenuti","Berlincioni","Bernacchioni","Bernardi","Bernardini","Berni","Bernini","Bertelli","Berti","Bertini","Bessi","Betti","Bettini","Biagi","Biagini","Biagioni","Biagiotti","Biancalani","Bianchi","Bianchini","Bianco","Biffoli","Bigazzi","Bigi","Biliotti","Billi","Binazzi","Bindi","Bini","Biondi","Bizzarri","Bocci","Bogani","Bolognesi","Bonaiuti","Bonanni","Bonciani","Boncinelli","Bondi","Bonechi","Bongini","Boni","Bonini","Borchi","Boretti","Borghi","Borghini","Borgioli","Borri","Borselli","Boschi","Bottai","Bracci","Braccini","Brandi","Braschi","Bravi","Brazzini","Breschi","Brilli","Brizzi","Brogelli","Brogi","Brogioni","Brunelli","Brunetti","Bruni","Bruno","Brunori","Bruschi","Bucci","Bucciarelli","Buccioni","Bucelli","Bulli","Burberi","Burchi","Burgassi","Burroni","Bussotti","Buti","Caciolli","Caiani","Calabrese","Calamai","Calamandrei","Caldini","Calo'","Calonaci","Calosi","Calvelli","Cambi","Camiciottoli","Cammelli","Cammilli","Campolmi","Cantini","Capanni","Capecchi","Caponi","Cappelletti","Cappelli","Cappellini","Cappugi","Capretti","Caputo","Carbone","Carboni","Cardini","Carlesi","Carletti","Carli","Caroti","Carotti","Carrai","Carraresi","Carta","Caruso","Casalini","Casati","Caselli","Casini","Castagnoli","Castellani","Castelli","Castellucci","Catalano","Catarzi","Catelani","Cavaciocchi","Cavallaro","Cavallini","Cavicchi","Cavini","Ceccarelli","Ceccatelli","Ceccherelli","Ceccherini","Cecchi","Cecchini","Cecconi","Cei","Cellai","Celli","Cellini","Cencetti","Ceni","Cenni","Cerbai","Cesari","Ceseri","Checcacci","Checchi","Checcucci","Cheli","Chellini","Chen","Cheng","Cherici","Cherubini","Chiaramonti","Chiarantini","Chiarelli","Chiari","Chiarini","Chiarugi","Chiavacci","Chiesi","Chimenti","Chini","Chirici","Chiti","Ciabatti","Ciampi","Cianchi","Cianfanelli","Cianferoni","Ciani","Ciapetti","Ciappi","Ciardi","Ciatti","Cicali","Ciccone","Cinelli","Cini","Ciobanu","Ciolli","Cioni","Cipriani","Cirillo","Cirri","Ciucchi","Ciuffi","Ciulli","Ciullini","Clemente","Cocchi","Cognome","Coli","Collini","Colombo","Colzi","Comparini","Conforti","Consigli","Conte","Conti","Contini","Coppini","Coppola","Corsi","Corsini","Corti","Cortini","Cosi","Costa","Costantini","Costantino","Cozzi","Cresci","Crescioli","Cresti","Crini","Curradi","D'Agostino","D'Alessandro","D'Amico","D'Angelo","Daddi","Dainelli","Dallai","Danti","Davitti","De Angelis","De Luca","De Marco","De Rosa","De Santis","De Simone","De Vita","Degl'Innocenti","Degli Innocenti","Dei","Del Lungo","Del Re","Di Marco","Di Stefano","Dini","Diop","Dobre","Dolfi","Donati","Dondoli","Dong","Donnini","Ducci","Dumitru","Ermini","Esposito","Evangelisti","Fabbri","Fabbrini","Fabbrizzi","Fabbroni","Fabbrucci","Fabiani","Facchini","Faggi","Fagioli","Failli","Faini","Falciani","Falcini","Falcone","Fallani","Falorni","Falsini","Falugiani","Fancelli","Fanelli","Fanetti","Fanfani","Fani","Fantappie'","Fantechi","Fanti","Fantini","Fantoni","Farina","Fattori","Favilli","Fedi","Fei","Ferrante","Ferrara","Ferrari","Ferraro","Ferretti","Ferri","Ferrini","Ferroni","Fiaschi","Fibbi","Fiesoli","Filippi","Filippini","Fini","Fioravanti","Fiore","Fiorentini","Fiorini","Fissi","Focardi","Foggi","Fontana","Fontanelli","Fontani","Forconi","Formigli","Forte","Forti","Fortini","Fossati","Fossi","Francalanci","Franceschi","Franceschini","Franchi","Franchini","Franci","Francini","Francioni","Franco","Frassineti","Frati","Fratini","Frilli","Frizzi","Frosali","Frosini","Frullini","Fusco","Fusi","Gabbrielli","Gabellini","Gagliardi","Galanti","Galardi","Galeotti","Galletti","Galli","Gallo","Gallori","Gambacciani","Gargani","Garofalo","Garuglieri","Gashi","Gasperini","Gatti","Gelli","Gensini","Gentile","Gentili","Geri","Gerini","Gheri","Ghini","Giachetti","Giachi","Giacomelli","Gianassi","Giani","Giannelli","Giannetti","Gianni","Giannini","Giannoni","Giannotti","Giannozzi","Gigli","Giordano","Giorgetti","Giorgi","Giovacchini","Giovannelli","Giovannetti","Giovannini","Giovannoni","Giuliani","Giunti","Giuntini","Giusti","Gonnelli","Goretti","Gori","Gradi","Gramigni","Grassi","Grasso","Graziani","Grazzini","Greco","Grifoni","Grillo","Grimaldi","Grossi","Gualtieri","Guarducci","Guarino","Guarnieri","Guasti","Guerra","Guerri","Guerrini","Guidi","Guidotti","He","Hoxha","Hu","Huang","Iandelli","Ignesti","Innocenti","Jin","La Rosa","Lai","Landi","Landini","Lanini","Lapi","Lapini","Lari","Lascialfari","Lastrucci","Latini","Lazzeri","Lazzerini","Lelli","Lenzi","Leonardi","Leoncini","Leone","Leoni","Lepri","Li","Liao","Lin","Linari","Lippi","Lisi","Livi","Lombardi","Lombardini","Lombardo","Longo","Lopez","Lorenzi","Lorenzini","Lorini","Lotti","Lu","Lucchesi","Lucherini","Lunghi","Lupi","Madiai","Maestrini","Maffei","Maggi","Maggini","Magherini","Magini","Magnani","Magnelli","Magni","Magnolfi","Magrini","Malavolti","Malevolti","Manca","Mancini","Manetti","Manfredi","Mangani","Mannelli","Manni","Mannini","Mannucci","Manuelli","Manzini","Marcelli","Marchese","Marchetti","Marchi","Marchiani","Marchionni","Marconi","Marcucci","Margheri","Mari","Mariani","Marilli","Marinai","Marinari","Marinelli","Marini","Marino","Mariotti","Marsili","Martelli","Martinelli","Martini","Martino","Marzi","Masi","Masini","Masoni","Massai","Materassi","Mattei","Matteini","Matteucci","Matteuzzi","Mattioli","Mattolini","Matucci","Mauro","Mazzanti","Mazzei","Mazzetti","Mazzi","Mazzini","Mazzocchi","Mazzoli","Mazzoni","Mazzuoli","Meacci","Mecocci","Meini","Melani","Mele","Meli","Mengoni","Menichetti","Meoni","Merlini","Messeri","Messina","Meucci","Miccinesi","Miceli","Micheli","Michelini","Michelozzi","Migliori","Migliorini","Milani","Miniati","Misuri","Monaco","Montagnani","Montagni","Montanari","Montelatici","Monti","Montigiani","Montini","Morandi","Morandini","Morelli","Moretti","Morganti","Mori","Morini","Moroni","Morozzi","Mugnai","Mugnaini","Mustafa","Naldi","Naldini","Nannelli","Nanni","Nannini","Nannucci","Nardi","Nardini","Nardoni","Natali","Ndiaye","Nencetti","Nencini","Nencioni","Neri","Nesi","Nesti","Niccolai","Niccoli","Niccolini","Nigi","Nistri","Nocentini","Noferini","Novelli","Nucci","Nuti","Nutini","Oliva","Olivieri","Olmi","Orlandi","Orlandini","Orlando","Orsini","Ortolani","Ottanelli","Pacciani","Pace","Paci","Pacini","Pagani","Pagano","Paggetti","Pagliai","Pagni","Pagnini","Paladini","Palagi","Palchetti","Palloni","Palmieri","Palumbo","Pampaloni","Pancani","Pandolfi","Pandolfini","Panerai","Panichi","Paoletti","Paoli","Paolini","Papi","Papini","Papucci","Parenti","Parigi","Parisi","Parri","Parrini","Pasquini","Passeri","Pecchioli","Pecorini","Pellegrini","Pepi","Perini","Perrone","Peruzzi","Pesci","Pestelli","Petri","Petrini","Petrucci","Pettini","Pezzati","Pezzatini","Piani","Piazza","Piazzesi","Piazzini","Piccardi","Picchi","Piccini","Piccioli","Pieraccini","Pieraccioni","Pieralli","Pierattini","Pieri","Pierini","Pieroni","Pietrini","Pini","Pinna","Pinto","Pinzani","Pinzauti","Piras","Pisani","Pistolesi","Poggesi","Poggi","Poggiali","Poggiolini","Poli","Pollastri","Porciani","Pozzi","Pratellesi","Pratesi","Prosperi","Pruneti","Pucci","Puccini","Puccioni","Pugi","Pugliese","Puliti","Querci","Quercioli","Raddi","Radu","Raffaelli","Ragazzini","Ranfagni","Ranieri","Rastrelli","Raugei","Raveggi","Renai","Renzi","Rettori","Ricci","Ricciardi","Ridi","Ridolfi","Rigacci","Righi","Righini","Rinaldi","Risaliti","Ristori","Rizzo","Rocchi","Rocchini","Rogai","Romagnoli","Romanelli","Romani","Romano","Romei","Romeo","Romiti","Romoli","Romolini","Rontini","Rosati","Roselli","Rosi","Rossetti","Rossi","Rossini","Rovai","Ruggeri","Ruggiero","Russo","Sabatini","Saccardi","Sacchetti","Sacchi","Sacco","Salerno","Salimbeni","Salucci","Salvadori","Salvestrini","Salvi","Salvini","Sanesi","Sani","Sanna","Santi","Santini","Santoni","Santoro","Santucci","Sardi","Sarri","Sarti","Sassi","Sbolci","Scali","Scarpelli","Scarselli","Scopetani","Secci","Selvi","Senatori","Senesi","Serafini","Sereni","Serra","Sestini","Sguanci","Sieni","Signorini","Silvestri","Simoncini","Simonetti","Simoni","Singh","Sodi","Soldi","Somigli","Sorbi","Sorelli","Sorrentino","Sottili","Spina","Spinelli","Staccioli","Staderini","Stefanelli","Stefani","Stefanini","Stella","Susini","Tacchi","Tacconi","Taddei","Tagliaferri","Tamburini","Tanganelli","Tani","Tanini","Tapinassi","Tarchi","Tarchiani","Targioni","Tassi","Tassini","Tempesti","Terzani","Tesi","Testa","Testi","Tilli","Tinti","Tirinnanzi","Toccafondi","Tofanari","Tofani","Tognaccini","Tonelli","Tonini","Torelli","Torrini","Tosi","Toti","Tozzi","Trambusti","Trapani","Tucci","Turchi","Ugolini","Ulivi","Valente","Valenti","Valentini","Vangelisti","Vanni","Vannini","Vannoni","Vannozzi","Vannucchi","Vannucci","Ventura","Venturi","Venturini","Vestri","Vettori","Vichi","Viciani","Vieri","Vigiani","Vignoli","Vignolini","Vignozzi","Villani","Vinci","Visani","Vitale","Vitali","Viti","Viviani","Vivoli","Volpe","Volpi","Wang","Wu","Xu","Yang","Ye","Zagli","Zani","Zanieri","Zanobini","Zecchi","Zetti","Zhang","Zheng","Zhou","Zhu","Zingoni","Zini","Zoppi"],nl:["Albers","Alblas","Appelman","Baars","Baas","Bakker","Blank","Bleeker","Blok","Blom","Boer","Boers","Boldewijn","Boon","Boot","Bos","Bosch","Bosma","Bosman","Bouma","Bouman","Bouwman","Brands","Brouwer","Burger","Buijs","Buitenhuis","Ceder","Cohen","Dekker","Dekkers","Dijkman","Dijkstra","Driessen","Drost","Engel","Evers","Faber","Franke","Gerritsen","Goedhart","Goossens","Groen","Groenenberg","Groot","Haan","Hart","Heemskerk","Hendriks","Hermans","Hoekstra","Hofman","Hopman","Huisman","Jacobs","Jansen","Janssen","Jonker","Jaspers","Keijzer","Klaassen","Klein","Koek","Koenders","Kok","Kool","Koopman","Koopmans","Koning","Koster","Kramer","Kroon","Kuijpers","Kuiper","Kuipers","Kurt","Koster","Kwakman","Los","Lubbers","Maas","Markus","Martens","Meijer","Mol","Molenaar","Mulder","Nieuwenhuis","Peeters","Peters","Pengel","Pieters","Pool","Post","Postma","Prins","Pronk","Reijnders","Rietveld","Roest","Roos","Sanders","Schaap","Scheffer","Schenk","Schilder","Schipper","Schmidt","Scholten","Schouten","Schut","Schutte","Schuurman","Simons","Smeets","Smit","Smits","Snel","Swinkels","Tas","Terpstra","Timmermans","Tol","Tromp","Troost","Valk","Veenstra","Veldkamp","Verbeek","Verheul","Verhoeven","Vermeer","Vermeulen","Verweij","Vink","Visser","Voorn","Vos","Wagenaar","Wiersema","Willems","Willemsen","Witteveen","Wolff","Wolters","Zijlstra","Zwart","de Beer","de Boer","de Bruijn","de Bruin","de Graaf","de Groot","de Haan","de Haas","de Jager","de Jong","de Jonge","de Koning","de Lange","de Leeuw","de Ridder","de Rooij","de Ruiter","de Vos","de Vries","de Waal","de Wit","de Zwart","van Beek","van Boven","van Dam","van Dijk","van Dongen","van Doorn","van Egmond","van Eijk","van Es","van Gelder","van Gelderen","van Houten","van Hulst","van Kempen","van Kesteren","van Leeuwen","van Loon","van Mill","van Noord","van Ommen","van Ommeren","van Oosten","van Oostveen","van Rijn","van Schaik","van Veen","van Vliet","van Wijk","van Wijngaarden","van den Poel","van de Pol","van den Ploeg","van de Ven","van den Berg","van den Bosch","van den Brink","van den Broek","van den Heuvel","van der Heijden","van der Horst","van der Hulst","van der Kroon","van der Laan","van der Linden","van der Meer","van der Meij","van der Meulen","van der Molen","van der Sluis","van der Spek","van der Veen","van der Velde","van der Velden","van der Vliet","van der Wal"],uk:["Smith","Jones","Williams","Taylor","Brown","Davies","Evans","Wilson","Thomas","Johnson","Roberts","Robinson","Thompson","Wright","Walker","White","Edwards","Hughes","Green","Hall","Lewis","Harris","Clarke","Patel","Jackson","Wood","Turner","Martin","Cooper","Hill","Ward","Morris","Moore","Clark","Lee","King","Baker","Harrison","Morgan","Allen","James","Scott","Phillips","Watson","Davis","Parker","Price","Bennett","Young","Griffiths","Mitchell","Kelly","Cook","Carter","Richardson","Bailey","Collins","Bell","Shaw","Murphy","Miller","Cox","Richards","Khan","Marshall","Anderson","Simpson","Ellis","Adams","Singh","Begum","Wilkinson","Foster","Chapman","Powell","Webb","Rogers","Gray","Mason","Ali","Hunt","Hussain","Campbell","Matthews","Owen","Palmer","Holmes","Mills","Barnes","Knight","Lloyd","Butler","Russell","Barker","Fisher","Stevens","Jenkins","Murray","Dixon","Harvey","Graham","Pearson","Ahmed","Fletcher","Walsh","Kaur","Gibson","Howard","Andrews","Stewart","Elliott","Reynolds","Saunders","Payne","Fox","Ford","Pearce","Day","Brooks","West","Lawrence","Cole","Atkinson","Bradley","Spencer","Gill","Dawson","Ball","Burton","O'brien","Watts","Rose","Booth","Perry","Ryan","Grant","Wells","Armstrong","Francis","Rees","Hayes","Hart","Hudson","Newman","Barrett","Webster","Hunter","Gregory","Carr","Lowe","Page","Marsh","Riley","Dunn","Woods","Parsons","Berry","Stone","Reid","Holland","Hawkins","Harding","Porter","Robertson","Newton","Oliver","Reed","Kennedy","Williamson","Bird","Gardner","Shah","Dean","Lane","Cooke","Bates","Henderson","Parry","Burgess","Bishop","Walton","Burns","Nicholson","Shepherd","Ross","Cross","Long","Freeman","Warren","Nicholls","Hamilton","Byrne","Sutton","Mcdonald","Yates","Hodgson","Robson","Curtis","Hopkins","O'connor","Harper","Coleman","Watkins","Moss","Mccarthy","Chambers","O'neill","Griffin","Sharp","Hardy","Wheeler","Potter","Osborne","Johnston","Gordon","Doyle","Wallace","George","Jordan","Hutchinson","Rowe","Burke","May","Pritchard","Gilbert","Willis","Higgins","Read","Miles","Stevenson","Stephenson","Hammond","Arnold","Buckley","Walters","Hewitt","Barber","Nelson","Slater","Austin","Sullivan","Whitehead","Mann","Frost","Lambert","Stephens","Blake","Akhtar","Lynch","Goodwin","Barton","Woodward","Thomson","Cunningham","Quinn","Barnett","Baxter","Bibi","Clayton","Nash","Greenwood","Jennings","Holt","Kemp","Poole","Gallagher","Bond","Stokes","Tucker","Davidson","Fowler","Heath","Norman","Middleton","Lawson","Banks","French","Stanley","Jarvis","Gibbs","Ferguson","Hayward","Carroll","Douglas","Dickinson","Todd","Barlow","Peters","Lucas","Knowles","Hartley","Miah","Simmons","Morton","Alexander","Field","Morrison","Norris","Townsend","Preston","Hancock","Thornton","Baldwin","Burrows","Briggs","Parkinson","Reeves","Macdonald","Lamb","Black","Abbott","Sanders","Thorpe","Holden","Tomlinson","Perkins","Ashton","Rhodes","Fuller","Howe","Bryant","Vaughan","Dale","Davey","Weston","Bartlett","Whittaker","Davison","Kent","Skinner","Birch","Morley","Daniels","Glover","Howell","Cartwright","Pugh","Humphreys","Goddard","Brennan","Wall","Kirby","Bowen","Savage","Bull","Wong","Dobson","Smart","Wilkins","Kirk","Fraser","Duffy","Hicks","Patterson","Bradshaw","Little","Archer","Warner","Waters","O'sullivan","Farrell","Brookes","Atkins","Kay","Dodd","Bentley","Flynn","John","Schofield","Short","Haynes","Wade","Butcher","Henry","Sanderson","Crawford","Sheppard","Bolton","Coates","Giles","Gould","Houghton","Gibbons","Pratt","Manning","Law","Hooper","Noble","Dyer","Rahman","Clements","Moran","Sykes","Chan","Doherty","Connolly","Joyce","Franklin","Hobbs","Coles","Herbert","Steele","Kerr","Leach","Winter","Owens","Duncan","Naylor","Fleming","Horton","Finch","Fitzgerald","Randall","Carpenter","Marsden","Browne","Garner","Pickering","Hale","Dennis","Vincent","Chadwick","Chandler","Sharpe","Nolan","Lyons","Hurst","Collier","Peacock","Howarth","Faulkner","Rice","Pollard","Welch","Norton","Gough","Sinclair","Blackburn","Bryan","Conway","Power","Cameron","Daly","Allan","Hanson","Gardiner","Boyle","Myers","Turnbull","Wallis","Mahmood","Sims","Swift","Iqbal","Pope","Brady","Chamberlain","Rowley","Tyler","Farmer","Metcalfe","Hilton","Godfrey","Holloway","Parkin","Bray","Talbot","Donnelly","Nixon","Charlton","Benson","Whitehouse","Barry","Hope","Lord","North","Storey","Connor","Potts","Bevan","Hargreaves","Mclean","Mistry","Bruce","Howells","Hyde","Parkes","Wyatt","Fry","Lees","O'donnell","Craig","Forster","Mckenzie","Humphries","Mellor","Carey","Ingram","Summers","Leonard"],de:["M\xFCller","Schmidt","Schneider","Fischer","Weber","Meyer","Wagner","Becker","Schulz","Hoffmann","Sch\xE4fer","Koch","Bauer","Richter","Klein","Wolf","Schr\xF6der","Neumann","Schwarz","Zimmermann","Braun","Kr\xFCger","Hofmann","Hartmann","Lange","Schmitt","Werner","Schmitz","Krause","Meier","Lehmann","Schmid","Schulze","Maier","K\xF6hler","Herrmann","K\xF6nig","Walter","Mayer","Huber","Kaiser","Fuchs","Peters","Lang","Scholz","M\xF6ller","Wei\xDF","Jung","Hahn","Schubert","Vogel","Friedrich","Keller","G\xFCnther","Frank","Berger","Winkler","Roth","Beck","Lorenz","Baumann","Franke","Albrecht","Schuster","Simon","Ludwig","B\xF6hm","Winter","Kraus","Martin","Schumacher","Kr\xE4mer","Vogt","Stein","J\xE4ger","Otto","Sommer","Gro\xDF","Seidel","Heinrich","Brandt","Haas","Schreiber","Graf","Schulte","Dietrich","Ziegler","Kuhn","K\xFChn","Pohl","Engel","Horn","Busch","Bergmann","Thomas","Voigt","Sauer","Arnold","Wolff","Pfeiffer"],jp:["Sato","Suzuki","Takahashi","Tanaka","Watanabe","Ito","Yamamoto","Nakamura","Kobayashi","Kato","Yoshida","Yamada","Sasaki","Yamaguchi","Saito","Matsumoto","Inoue","Kimura","Hayashi","Shimizu","Yamazaki","Mori","Abe","Ikeda","Hashimoto","Yamashita","Ishikawa","Nakajima","Maeda","Fujita","Ogawa","Goto","Okada","Hasegawa","Murakami","Kondo","Ishii","Saito","Sakamoto","Endo","Aoki","Fujii","Nishimura","Fukuda","Ota","Miura","Fujiwara","Okamoto","Matsuda","Nakagawa","Nakano","Harada","Ono","Tamura","Takeuchi","Kaneko","Wada","Nakayama","Ishida","Ueda","Morita","Hara","Shibata","Sakai","Kudo","Yokoyama","Miyazaki","Miyamoto","Uchida","Takagi","Ando","Taniguchi","Ohno","Maruyama","Imai","Takada","Fujimoto","Takeda","Murata","Ueno","Sugiyama","Masuda","Sugawara","Hirano","Kojima","Otsuka","Chiba","Kubo","Matsui","Iwasaki","Sakurai","Kinoshita","Noguchi","Matsuo","Nomura","Kikuchi","Sano","Onishi","Sugimoto","Arai"],es:["Garcia","Fernandez","Lopez","Martinez","Gonzalez","Rodriguez","Sanchez","Perez","Martin","Gomez","Ruiz","Diaz","Hernandez","Alvarez","Jimenez","Moreno","Munoz","Alonso","Romero","Navarro","Gutierrez","Torres","Dominguez","Gil","Vazquez","Blanco","Serrano","Ramos","Castro","Suarez","Sanz","Rubio","Ortega","Molina","Delgado","Ortiz","Morales","Ramirez","Marin","Iglesias","Santos","Castillo","Garrido","Calvo","Pena","Cruz","Cano","Nunez","Prieto","Diez","Lozano","Vidal","Pascual","Ferrer","Medina","Vega","Leon","Herrero","Vicente","Mendez","Guerrero","Fuentes","Campos","Nieto","Cortes","Caballero","Ibanez","Lorenzo","Pastor","Gimenez","Saez","Soler","Marquez","Carrasco","Herrera","Montero","Arias","Crespo","Flores","Andres","Aguilar","Hidalgo","Cabrera","Mora","Duran","Velasco","Rey","Pardo","Roman","Vila","Bravo","Merino","Moya","Soto","Izquierdo","Reyes","Redondo","Marcos","Carmona","Menendez"],fr:["Martin","Bernard","Thomas","Petit","Robert","Richard","Durand","Dubois","Moreau","Laurent","Simon","Michel","Lef\xE8vre","Leroy","Roux","David","Bertrand","Morel","Fournier","Girard","Bonnet","Dupont","Lambert","Fontaine","Rousseau","Vincent","M\xFCller","Lef\xE8vre","Faure","Andr\xE9","Mercier","Blanc","Gu\xE9rin","Boyer","Garnier","Chevalier","Fran\xE7ois","Legrand","Gauthier","Garcia","Perrin","Robin","Cl\xE9ment","Morin","Nicolas","Henry","Roussel","Matthieu","Gautier","Masson","Marchand","Duval","Denis","Dumont","Marie","Lemaire","No\xEBl","Meyer","Dufour","Meunier","Brun","Blanchard","Giraud","Joly","Rivi\xE8re","Lucas","Brunet","Gaillard","Barbier","Arnaud","Mart\xEDnez","G\xE9rard","Roche","Renard","Schmitt","Roy","Leroux","Colin","Vidal","Caron","Picard","Roger","Fabre","Aubert","Lemoine","Renaud","Dumas","Lacroix","Olivier","Philippe","Bourgeois","Pierre","Beno\xEEt","Rey","Leclerc","Payet","Rolland","Leclercq","Guillaume","Lecomte","L\xF3pez","Jean","Dupuy","Guillot","Hubert","Berger","Carpentier","S\xE1nchez","Dupuis","Moulin","Louis","Deschamps","Huet","Vasseur","Perez","Boucher","Fleury","Royer","Klein","Jacquet","Adam","Paris","Poirier","Marty","Aubry","Guyot","Carr\xE9","Charles","Renault","Charpentier","M\xE9nard","Maillard","Baron","Bertin","Bailly","Herv\xE9","Schneider","Fern\xE1ndez","Le GallGall","Collet","L\xE9ger","Bouvier","Julien","Pr\xE9vost","Millet","Perrot","Daniel","Le RouxRoux","Cousin","Germain","Breton","Besson","Langlois","R\xE9mi","Le GoffGoff","Pelletier","L\xE9v\xEAque","Perrier","Leblanc","Barr\xE9","Lebrun","Marchal","Weber","Mallet","Hamon","Boulanger","Jacob","Monnier","Michaud","Rodr\xEDguez","Guichard","Gillet","\xC9tienne","Grondin","Poulain","Tessier","Chevallier","Collin","Chauvin","Da SilvaSilva","Bouchet","Gay","Lema\xEEtre","B\xE9nard","Mar\xE9chal","Humbert","Reynaud","Antoine","Hoarau","Perret","Barth\xE9lemy","Cordier","Pichon","Lejeune","Gilbert","Lamy","Delaunay","Pasquier","Carlier","LaporteLaporte"]},postcodeAreas:[{code:"AB"},{code:"AL"},{code:"B"},{code:"BA"},{code:"BB"},{code:"BD"},{code:"BH"},{code:"BL"},{code:"BN"},{code:"BR"},{code:"BS"},{code:"BT"},{code:"CA"},{code:"CB"},{code:"CF"},{code:"CH"},{code:"CM"},{code:"CO"},{code:"CR"},{code:"CT"},{code:"CV"},{code:"CW"},{code:"DA"},{code:"DD"},{code:"DE"},{code:"DG"},{code:"DH"},{code:"DL"},{code:"DN"},{code:"DT"},{code:"DY"},{code:"E"},{code:"EC"},{code:"EH"},{code:"EN"},{code:"EX"},{code:"FK"},{code:"FY"},{code:"G"},{code:"GL"},{code:"GU"},{code:"GY"},{code:"HA"},{code:"HD"},{code:"HG"},{code:"HP"},{code:"HR"},{code:"HS"},{code:"HU"},{code:"HX"},{code:"IG"},{code:"IM"},{code:"IP"},{code:"IV"},{code:"JE"},{code:"KA"},{code:"KT"},{code:"KW"},{code:"KY"},{code:"L"},{code:"LA"},{code:"LD"},{code:"LE"},{code:"LL"},{code:"LN"},{code:"LS"},{code:"LU"},{code:"M"},{code:"ME"},{code:"MK"},{code:"ML"},{code:"N"},{code:"NE"},{code:"NG"},{code:"NN"},{code:"NP"},{code:"NR"},{code:"NW"},{code:"OL"},{code:"OX"},{code:"PA"},{code:"PE"},{code:"PH"},{code:"PL"},{code:"PO"},{code:"PR"},{code:"RG"},{code:"RH"},{code:"RM"},{code:"S"},{code:"SA"},{code:"SE"},{code:"SG"},{code:"SK"},{code:"SL"},{code:"SM"},{code:"SN"},{code:"SO"},{code:"SP"},{code:"SR"},{code:"SS"},{code:"ST"},{code:"SW"},{code:"SY"},{code:"TA"},{code:"TD"},{code:"TF"},{code:"TN"},{code:"TQ"},{code:"TR"},{code:"TS"},{code:"TW"},{code:"UB"},{code:"W"},{code:"WA"},{code:"WC"},{code:"WD"},{code:"WF"},{code:"WN"},{code:"WR"},{code:"WS"},{code:"WV"},{code:"YO"},{code:"ZE"}],countries:[{name:"Afghanistan",abbreviation:"AF"},{name:"\xC5land Islands",abbreviation:"AX"},{name:"Albania",abbreviation:"AL"},{name:"Algeria",abbreviation:"DZ"},{name:"American Samoa",abbreviation:"AS"},{name:"Andorra",abbreviation:"AD"},{name:"Angola",abbreviation:"AO"},{name:"Anguilla",abbreviation:"AI"},{name:"Antarctica",abbreviation:"AQ"},{name:"Antigua and Barbuda",abbreviation:"AG"},{name:"Argentina",abbreviation:"AR"},{name:"Armenia",abbreviation:"AM"},{name:"Aruba",abbreviation:"AW"},{name:"Australia",abbreviation:"AU"},{name:"Austria",abbreviation:"AT"},{name:"Azerbaijan",abbreviation:"AZ"},{name:"Bahamas",abbreviation:"BS"},{name:"Bahrain",abbreviation:"BH"},{name:"Bangladesh",abbreviation:"BD"},{name:"Barbados",abbreviation:"BB"},{name:"Belarus",abbreviation:"BY"},{name:"Belgium",abbreviation:"BE"},{name:"Belize",abbreviation:"BZ"},{name:"Benin",abbreviation:"BJ"},{name:"Bermuda",abbreviation:"BM"},{name:"Bhutan",abbreviation:"BT"},{name:"Plurinational State of Bolivia",abbreviation:"BO"},{name:"Bonaire, Sint Eustatius and Saba",abbreviation:"BQ"},{name:"Bosnia and Herzegovina",abbreviation:"BA"},{name:"Botswana",abbreviation:"BW"},{name:"Bouvet Island",abbreviation:"BV"},{name:"Brazil",abbreviation:"BR"},{name:"British Indian Ocean Territory",abbreviation:"IO"},{name:"Brunei Darussalam",abbreviation:"BN"},{name:"Bulgaria",abbreviation:"BG"},{name:"Burkina Faso",abbreviation:"BF"},{name:"Burundi",abbreviation:"BI"},{name:"Cabo Verde",abbreviation:"CV"},{name:"Cambodia",abbreviation:"KH"},{name:"Cameroon",abbreviation:"CM"},{name:"Canada",abbreviation:"CA"},{name:"Cayman Islands",abbreviation:"KY"},{name:"Central African Republic",abbreviation:"CF"},{name:"Chad",abbreviation:"TD"},{name:"Chile",abbreviation:"CL"},{name:"China",abbreviation:"CN"},{name:"Christmas Island",abbreviation:"CX"},{name:"Cocos (Keeling) Islands",abbreviation:"CC"},{name:"Colombia",abbreviation:"CO"},{name:"Comoros",abbreviation:"KM"},{name:"Congo",abbreviation:"CG"},{name:"Democratic Republic of the Congo",abbreviation:"CD"},{name:"Cook Islands",abbreviation:"CK"},{name:"Costa Rica",abbreviation:"CR"},{name:"C\xF4te d'Ivoire",abbreviation:"CI"},{name:"Croatia",abbreviation:"HR"},{name:"Cuba",abbreviation:"CU"},{name:"Cura\xE7ao",abbreviation:"CW"},{name:"Cyprus",abbreviation:"CY"},{name:"Czechia",abbreviation:"CZ"},{name:"Denmark",abbreviation:"DK"},{name:"Djibouti",abbreviation:"DJ"},{name:"Dominica",abbreviation:"DM"},{name:"Dominican Republic",abbreviation:"DO"},{name:"Ecuador",abbreviation:"EC"},{name:"Egypt",abbreviation:"EG"},{name:"El Salvador",abbreviation:"SV"},{name:"Equatorial Guinea",abbreviation:"GQ"},{name:"Eritrea",abbreviation:"ER"},{name:"Estonia",abbreviation:"EE"},{name:"Eswatini",abbreviation:"SZ"},{name:"Ethiopia",abbreviation:"ET"},{name:"Falkland Islands (Malvinas)",abbreviation:"FK"},{name:"Faroe Islands",abbreviation:"FO"},{name:"Fiji",abbreviation:"FJ"},{name:"Finland",abbreviation:"FI"},{name:"France",abbreviation:"FR"},{name:"French Guiana",abbreviation:"GF"},{name:"French Polynesia",abbreviation:"PF"},{name:"French Southern Territories",abbreviation:"TF"},{name:"Gabon",abbreviation:"GA"},{name:"Gambia",abbreviation:"GM"},{name:"Georgia",abbreviation:"GE"},{name:"Germany",abbreviation:"DE"},{name:"Ghana",abbreviation:"GH"},{name:"Gibraltar",abbreviation:"GI"},{name:"Greece",abbreviation:"GR"},{name:"Greenland",abbreviation:"GL"},{name:"Grenada",abbreviation:"GD"},{name:"Guadeloupe",abbreviation:"GP"},{name:"Guam",abbreviation:"GU"},{name:"Guatemala",abbreviation:"GT"},{name:"Guernsey",abbreviation:"GG"},{name:"Guinea",abbreviation:"GN"},{name:"Guinea-Bissau",abbreviation:"GW"},{name:"Guyana",abbreviation:"GY"},{name:"Haiti",abbreviation:"HT"},{name:"Heard Island and McDonald Islands",abbreviation:"HM"},{name:"Holy See",abbreviation:"VA"},{name:"Honduras",abbreviation:"HN"},{name:"Hong Kong",abbreviation:"HK"},{name:"Hungary",abbreviation:"HU"},{name:"Iceland",abbreviation:"IS"},{name:"India",abbreviation:"IN"},{name:"Indonesia",abbreviation:"ID"},{name:"Islamic Republic of Iran",abbreviation:"IR"},{name:"Iraq",abbreviation:"IQ"},{name:"Ireland",abbreviation:"IE"},{name:"Isle of Man",abbreviation:"IM"},{name:"Israel",abbreviation:"IL"},{name:"Italy",abbreviation:"IT"},{name:"Jamaica",abbreviation:"JM"},{name:"Japan",abbreviation:"JP"},{name:"Jersey",abbreviation:"JE"},{name:"Jordan",abbreviation:"JO"},{name:"Kazakhstan",abbreviation:"KZ"},{name:"Kenya",abbreviation:"KE"},{name:"Kiribati",abbreviation:"KI"},{name:"Democratic People's Republic of Korea",abbreviation:"KP"},{name:"Republic of Korea",abbreviation:"KR"},{name:"Kuwait",abbreviation:"KW"},{name:"Kyrgyzstan",abbreviation:"KG"},{name:"Lao People's Democratic Republic",abbreviation:"LA"},{name:"Latvia",abbreviation:"LV"},{name:"Lebanon",abbreviation:"LB"},{name:"Lesotho",abbreviation:"LS"},{name:"Liberia",abbreviation:"LR"},{name:"Libya",abbreviation:"LY"},{name:"Liechtenstein",abbreviation:"LI"},{name:"Lithuania",abbreviation:"LT"},{name:"Luxembourg",abbreviation:"LU"},{name:"Macao",abbreviation:"MO"},{name:"Madagascar",abbreviation:"MG"},{name:"Malawi",abbreviation:"MW"},{name:"Malaysia",abbreviation:"MY"},{name:"Maldives",abbreviation:"MV"},{name:"Mali",abbreviation:"ML"},{name:"Malta",abbreviation:"MT"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Martinique",abbreviation:"MQ"},{name:"Mauritania",abbreviation:"MR"},{name:"Mauritius",abbreviation:"MU"},{name:"Mayotte",abbreviation:"YT"},{name:"Mexico",abbreviation:"MX"},{name:"Federated States of Micronesia",abbreviation:"FM"},{name:"Republic of Moldova",abbreviation:"MD"},{name:"Monaco",abbreviation:"MC"},{name:"Mongolia",abbreviation:"MN"},{name:"Montenegro",abbreviation:"ME"},{name:"Montserrat",abbreviation:"MS"},{name:"Morocco",abbreviation:"MA"},{name:"Mozambique",abbreviation:"MZ"},{name:"Myanmar",abbreviation:"MM"},{name:"Namibia",abbreviation:"NA"},{name:"Nauru",abbreviation:"NR"},{name:"Nepal",abbreviation:"NP"},{name:"Kingdom of the Netherlands",abbreviation:"NL"},{name:"New Caledonia",abbreviation:"NC"},{name:"New Zealand",abbreviation:"NZ"},{name:"Nicaragua",abbreviation:"NI"},{name:"Niger",abbreviation:"NE"},{name:"Nigeria",abbreviation:"NG"},{name:"Niue",abbreviation:"NU"},{name:"Norfolk Island",abbreviation:"NF"},{name:"North Macedonia",abbreviation:"MK"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Norway",abbreviation:"NO"},{name:"Oman",abbreviation:"OM"},{name:"Pakistan",abbreviation:"PK"},{name:"Palau",abbreviation:"PW"},{name:"State of Palestine",abbreviation:"PS"},{name:"Panama",abbreviation:"PA"},{name:"Papua New Guinea",abbreviation:"PG"},{name:"Paraguay",abbreviation:"PY"},{name:"Peru",abbreviation:"PE"},{name:"Philippines",abbreviation:"PH"},{name:"Pitcairn",abbreviation:"PN"},{name:"Poland",abbreviation:"PL"},{name:"Portugal",abbreviation:"PT"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Qatar",abbreviation:"QA"},{name:"R\xE9union",abbreviation:"RE"},{name:"Romania",abbreviation:"RO"},{name:"Russian Federation",abbreviation:"RU"},{name:"Rwanda",abbreviation:"RW"},{name:"Saint Barth\xE9lemy",abbreviation:"BL"},{name:"Saint Helena, Ascension and Tristan da Cunha",abbreviation:"SH"},{name:"Saint Kitts and Nevis",abbreviation:"KN"},{name:"Saint Lucia",abbreviation:"LC"},{name:"Saint Martin (French part)",abbreviation:"MF"},{name:"Saint Pierre and Miquelon",abbreviation:"PM"},{name:"Saint Vincent and the Grenadines",abbreviation:"VC"},{name:"Samoa",abbreviation:"WS"},{name:"San Marino",abbreviation:"SM"},{name:"Sao Tome and Principe",abbreviation:"ST"},{name:"Saudi Arabia",abbreviation:"SA"},{name:"Senegal",abbreviation:"SN"},{name:"Serbia",abbreviation:"RS"},{name:"Seychelles",abbreviation:"SC"},{name:"Sierra Leone",abbreviation:"SL"},{name:"Singapore",abbreviation:"SG"},{name:"Sint Maarten (Dutch part)",abbreviation:"SX"},{name:"Slovakia",abbreviation:"SK"},{name:"Slovenia",abbreviation:"SI"},{name:"Solomon Islands",abbreviation:"SB"},{name:"Somalia",abbreviation:"SO"},{name:"South Africa",abbreviation:"ZA"},{name:"South Georgia and the South Sandwich Islands",abbreviation:"GS"},{name:"South Sudan",abbreviation:"SS"},{name:"Spain",abbreviation:"ES"},{name:"Sri Lanka",abbreviation:"LK"},{name:"Sudan",abbreviation:"SD"},{name:"Suriname",abbreviation:"SR"},{name:"Svalbard and Jan Mayen",abbreviation:"SJ"},{name:"Sweden",abbreviation:"SE"},{name:"Switzerland",abbreviation:"CH"},{name:"Syrian Arab Republic",abbreviation:"SY"},{name:"Taiwan, Province of China",abbreviation:"TW"},{name:"Tajikistan",abbreviation:"TJ"},{name:"United Republic of Tanzania",abbreviation:"TZ"},{name:"Thailand",abbreviation:"TH"},{name:"Timor-Leste",abbreviation:"TL"},{name:"Togo",abbreviation:"TG"},{name:"Tokelau",abbreviation:"TK"},{name:"Tonga",abbreviation:"TO"},{name:"Trinidad and Tobago",abbreviation:"TT"},{name:"Tunisia",abbreviation:"TN"},{name:"T\xFCrkiye",abbreviation:"TR"},{name:"Turkmenistan",abbreviation:"TM"},{name:"Turks and Caicos Islands",abbreviation:"TC"},{name:"Tuvalu",abbreviation:"TV"},{name:"Uganda",abbreviation:"UG"},{name:"Ukraine",abbreviation:"UA"},{name:"United Arab Emirates",abbreviation:"AE"},{name:"United Kingdom of Great Britain and Northern Ireland",abbreviation:"GB"},{name:"United States Minor Outlying Islands",abbreviation:"UM"},{name:"United States of America",abbreviation:"US"},{name:"Uruguay",abbreviation:"UY"},{name:"Uzbekistan",abbreviation:"UZ"},{name:"Vanuatu",abbreviation:"VU"},{name:"Bolivarian Republic of Venezuela",abbreviation:"VE"},{name:"Viet Nam",abbreviation:"VN"},{name:"Virgin Islands (British)",abbreviation:"VG"},{name:"Virgin Islands (U.S.)",abbreviation:"VI"},{name:"Wallis and Futuna",abbreviation:"WF"},{name:"Western Sahara",abbreviation:"EH"},{name:"Yemen",abbreviation:"YE"},{name:"Zambia",abbreviation:"ZM"},{name:"Zimbabwe",abbreviation:"ZW"}],counties:{uk:[{name:"Bath and North East Somerset"},{name:"Aberdeenshire"},{name:"Anglesey"},{name:"Angus"},{name:"Bedford"},{name:"Blackburn with Darwen"},{name:"Blackpool"},{name:"Bournemouth"},{name:"Bracknell Forest"},{name:"Brighton & Hove"},{name:"Bristol"},{name:"Buckinghamshire"},{name:"Cambridgeshire"},{name:"Carmarthenshire"},{name:"Central Bedfordshire"},{name:"Ceredigion"},{name:"Cheshire East"},{name:"Cheshire West and Chester"},{name:"Clackmannanshire"},{name:"Conwy"},{name:"Cornwall"},{name:"County Antrim"},{name:"County Armagh"},{name:"County Down"},{name:"County Durham"},{name:"County Fermanagh"},{name:"County Londonderry"},{name:"County Tyrone"},{name:"Cumbria"},{name:"Darlington"},{name:"Denbighshire"},{name:"Derby"},{name:"Derbyshire"},{name:"Devon"},{name:"Dorset"},{name:"Dumfries and Galloway"},{name:"Dundee"},{name:"East Lothian"},{name:"East Riding of Yorkshire"},{name:"East Sussex"},{name:"Edinburgh?"},{name:"Essex"},{name:"Falkirk"},{name:"Fife"},{name:"Flintshire"},{name:"Gloucestershire"},{name:"Greater London"},{name:"Greater Manchester"},{name:"Gwent"},{name:"Gwynedd"},{name:"Halton"},{name:"Hampshire"},{name:"Hartlepool"},{name:"Herefordshire"},{name:"Hertfordshire"},{name:"Highlands"},{name:"Hull"},{name:"Isle of Wight"},{name:"Isles of Scilly"},{name:"Kent"},{name:"Lancashire"},{name:"Leicester"},{name:"Leicestershire"},{name:"Lincolnshire"},{name:"Lothian"},{name:"Luton"},{name:"Medway"},{name:"Merseyside"},{name:"Mid Glamorgan"},{name:"Middlesbrough"},{name:"Milton Keynes"},{name:"Monmouthshire"},{name:"Moray"},{name:"Norfolk"},{name:"North East Lincolnshire"},{name:"North Lincolnshire"},{name:"North Somerset"},{name:"North Yorkshire"},{name:"Northamptonshire"},{name:"Northumberland"},{name:"Nottingham"},{name:"Nottinghamshire"},{name:"Oxfordshire"},{name:"Pembrokeshire"},{name:"Perth and Kinross"},{name:"Peterborough"},{name:"Plymouth"},{name:"Poole"},{name:"Portsmouth"},{name:"Powys"},{name:"Reading"},{name:"Redcar and Cleveland"},{name:"Rutland"},{name:"Scottish Borders"},{name:"Shropshire"},{name:"Slough"},{name:"Somerset"},{name:"South Glamorgan"},{name:"South Gloucestershire"},{name:"South Yorkshire"},{name:"Southampton"},{name:"Southend-on-Sea"},{name:"Staffordshire"},{name:"Stirlingshire"},{name:"Stockton-on-Tees"},{name:"Stoke-on-Trent"},{name:"Strathclyde"},{name:"Suffolk"},{name:"Surrey"},{name:"Swindon"},{name:"Telford and Wrekin"},{name:"Thurrock"},{name:"Torbay"},{name:"Tyne and Wear"},{name:"Warrington"},{name:"Warwickshire"},{name:"West Berkshire"},{name:"West Glamorgan"},{name:"West Lothian"},{name:"West Midlands"},{name:"West Sussex"},{name:"West Yorkshire"},{name:"Western Isles"},{name:"Wiltshire"},{name:"Windsor and Maidenhead"},{name:"Wokingham"},{name:"Worcestershire"},{name:"Wrexham"},{name:"York"}]},provinces:{ca:[{name:"Alberta",abbreviation:"AB"},{name:"British Columbia",abbreviation:"BC"},{name:"Manitoba",abbreviation:"MB"},{name:"New Brunswick",abbreviation:"NB"},{name:"Newfoundland and Labrador",abbreviation:"NL"},{name:"Nova Scotia",abbreviation:"NS"},{name:"Ontario",abbreviation:"ON"},{name:"Prince Edward Island",abbreviation:"PE"},{name:"Quebec",abbreviation:"QC"},{name:"Saskatchewan",abbreviation:"SK"},{name:"Northwest Territories",abbreviation:"NT"},{name:"Nunavut",abbreviation:"NU"},{name:"Yukon",abbreviation:"YT"}],it:[{name:"Agrigento",abbreviation:"AG",code:84},{name:"Alessandria",abbreviation:"AL",code:6},{name:"Ancona",abbreviation:"AN",code:42},{name:"Aosta",abbreviation:"AO",code:7},{name:"L'Aquila",abbreviation:"AQ",code:66},{name:"Arezzo",abbreviation:"AR",code:51},{name:"Ascoli-Piceno",abbreviation:"AP",code:44},{name:"Asti",abbreviation:"AT",code:5},{name:"Avellino",abbreviation:"AV",code:64},{name:"Bari",abbreviation:"BA",code:72},{name:"Barletta-Andria-Trani",abbreviation:"BT",code:72},{name:"Belluno",abbreviation:"BL",code:25},{name:"Benevento",abbreviation:"BN",code:62},{name:"Bergamo",abbreviation:"BG",code:16},{name:"Biella",abbreviation:"BI",code:96},{name:"Bologna",abbreviation:"BO",code:37},{name:"Bolzano",abbreviation:"BZ",code:21},{name:"Brescia",abbreviation:"BS",code:17},{name:"Brindisi",abbreviation:"BR",code:74},{name:"Cagliari",abbreviation:"CA",code:92},{name:"Caltanissetta",abbreviation:"CL",code:85},{name:"Campobasso",abbreviation:"CB",code:70},{name:"Carbonia Iglesias",abbreviation:"CI",code:70},{name:"Caserta",abbreviation:"CE",code:61},{name:"Catania",abbreviation:"CT",code:87},{name:"Catanzaro",abbreviation:"CZ",code:79},{name:"Chieti",abbreviation:"CH",code:69},{name:"Como",abbreviation:"CO",code:13},{name:"Cosenza",abbreviation:"CS",code:78},{name:"Cremona",abbreviation:"CR",code:19},{name:"Crotone",abbreviation:"KR",code:101},{name:"Cuneo",abbreviation:"CN",code:4},{name:"Enna",abbreviation:"EN",code:86},{name:"Fermo",abbreviation:"FM",code:86},{name:"Ferrara",abbreviation:"FE",code:38},{name:"Firenze",abbreviation:"FI",code:48},{name:"Foggia",abbreviation:"FG",code:71},{name:"Forli-Cesena",abbreviation:"FC",code:71},{name:"Frosinone",abbreviation:"FR",code:60},{name:"Genova",abbreviation:"GE",code:10},{name:"Gorizia",abbreviation:"GO",code:31},{name:"Grosseto",abbreviation:"GR",code:53},{name:"Imperia",abbreviation:"IM",code:8},{name:"Isernia",abbreviation:"IS",code:94},{name:"La-Spezia",abbreviation:"SP",code:66},{name:"Latina",abbreviation:"LT",code:59},{name:"Lecce",abbreviation:"LE",code:75},{name:"Lecco",abbreviation:"LC",code:97},{name:"Livorno",abbreviation:"LI",code:49},{name:"Lodi",abbreviation:"LO",code:98},{name:"Lucca",abbreviation:"LU",code:46},{name:"Macerata",abbreviation:"MC",code:43},{name:"Mantova",abbreviation:"MN",code:20},{name:"Massa-Carrara",abbreviation:"MS",code:45},{name:"Matera",abbreviation:"MT",code:77},{name:"Medio Campidano",abbreviation:"VS",code:77},{name:"Messina",abbreviation:"ME",code:83},{name:"Milano",abbreviation:"MI",code:15},{name:"Modena",abbreviation:"MO",code:36},{name:"Monza-Brianza",abbreviation:"MB",code:36},{name:"Napoli",abbreviation:"NA",code:63},{name:"Novara",abbreviation:"NO",code:3},{name:"Nuoro",abbreviation:"NU",code:91},{name:"Ogliastra",abbreviation:"OG",code:91},{name:"Olbia Tempio",abbreviation:"OT",code:91},{name:"Oristano",abbreviation:"OR",code:95},{name:"Padova",abbreviation:"PD",code:28},{name:"Palermo",abbreviation:"PA",code:82},{name:"Parma",abbreviation:"PR",code:34},{name:"Pavia",abbreviation:"PV",code:18},{name:"Perugia",abbreviation:"PG",code:54},{name:"Pesaro-Urbino",abbreviation:"PU",code:41},{name:"Pescara",abbreviation:"PE",code:68},{name:"Piacenza",abbreviation:"PC",code:33},{name:"Pisa",abbreviation:"PI",code:50},{name:"Pistoia",abbreviation:"PT",code:47},{name:"Pordenone",abbreviation:"PN",code:93},{name:"Potenza",abbreviation:"PZ",code:76},{name:"Prato",abbreviation:"PO",code:100},{name:"Ragusa",abbreviation:"RG",code:88},{name:"Ravenna",abbreviation:"RA",code:39},{name:"Reggio-Calabria",abbreviation:"RC",code:35},{name:"Reggio-Emilia",abbreviation:"RE",code:35},{name:"Rieti",abbreviation:"RI",code:57},{name:"Rimini",abbreviation:"RN",code:99},{name:"Roma",abbreviation:"Roma",code:58},{name:"Rovigo",abbreviation:"RO",code:29},{name:"Salerno",abbreviation:"SA",code:65},{name:"Sassari",abbreviation:"SS",code:90},{name:"Savona",abbreviation:"SV",code:9},{name:"Siena",abbreviation:"SI",code:52},{name:"Siracusa",abbreviation:"SR",code:89},{name:"Sondrio",abbreviation:"SO",code:14},{name:"Taranto",abbreviation:"TA",code:73},{name:"Teramo",abbreviation:"TE",code:67},{name:"Terni",abbreviation:"TR",code:55},{name:"Torino",abbreviation:"TO",code:1},{name:"Trapani",abbreviation:"TP",code:81},{name:"Trento",abbreviation:"TN",code:22},{name:"Treviso",abbreviation:"TV",code:26},{name:"Trieste",abbreviation:"TS",code:32},{name:"Udine",abbreviation:"UD",code:30},{name:"Varese",abbreviation:"VA",code:12},{name:"Venezia",abbreviation:"VE",code:27},{name:"Verbania",abbreviation:"VB",code:27},{name:"Vercelli",abbreviation:"VC",code:2},{name:"Verona",abbreviation:"VR",code:23},{name:"Vibo-Valentia",abbreviation:"VV",code:102},{name:"Vicenza",abbreviation:"VI",code:24},{name:"Viterbo",abbreviation:"VT",code:56}]},nationalities:[{name:"Afghan"},{name:"Albanian"},{name:"Algerian"},{name:"American"},{name:"Andorran"},{name:"Angolan"},{name:"Antiguans"},{name:"Argentinean"},{name:"Armenian"},{name:"Australian"},{name:"Austrian"},{name:"Azerbaijani"},{name:"Bahami"},{name:"Bahraini"},{name:"Bangladeshi"},{name:"Barbadian"},{name:"Barbudans"},{name:"Batswana"},{name:"Belarusian"},{name:"Belgian"},{name:"Belizean"},{name:"Beninese"},{name:"Bhutanese"},{name:"Bolivian"},{name:"Bosnian"},{name:"Brazilian"},{name:"British"},{name:"Bruneian"},{name:"Bulgarian"},{name:"Burkinabe"},{name:"Burmese"},{name:"Burundian"},{name:"Cambodian"},{name:"Cameroonian"},{name:"Canadian"},{name:"Cape Verdean"},{name:"Central African"},{name:"Chadian"},{name:"Chilean"},{name:"Chinese"},{name:"Colombian"},{name:"Comoran"},{name:"Congolese"},{name:"Costa Rican"},{name:"Croatian"},{name:"Cuban"},{name:"Cypriot"},{name:"Czech"},{name:"Danish"},{name:"Djibouti"},{name:"Dominican"},{name:"Dutch"},{name:"East Timorese"},{name:"Ecuadorean"},{name:"Egyptian"},{name:"Emirian"},{name:"Equatorial Guinean"},{name:"Eritrean"},{name:"Estonian"},{name:"Ethiopian"},{name:"Fijian"},{name:"Filipino"},{name:"Finnish"},{name:"French"},{name:"Gabonese"},{name:"Gambian"},{name:"Georgian"},{name:"German"},{name:"Ghanaian"},{name:"Greek"},{name:"Grenadian"},{name:"Guatemalan"},{name:"Guinea-Bissauan"},{name:"Guinean"},{name:"Guyanese"},{name:"Haitian"},{name:"Herzegovinian"},{name:"Honduran"},{name:"Hungarian"},{name:"I-Kiribati"},{name:"Icelander"},{name:"Indian"},{name:"Indonesian"},{name:"Iranian"},{name:"Iraqi"},{name:"Irish"},{name:"Israeli"},{name:"Italian"},{name:"Ivorian"},{name:"Jamaican"},{name:"Japanese"},{name:"Jordanian"},{name:"Kazakhstani"},{name:"Kenyan"},{name:"Kittian and Nevisian"},{name:"Kuwaiti"},{name:"Kyrgyz"},{name:"Laotian"},{name:"Latvian"},{name:"Lebanese"},{name:"Liberian"},{name:"Libyan"},{name:"Liechtensteiner"},{name:"Lithuanian"},{name:"Luxembourger"},{name:"Macedonian"},{name:"Malagasy"},{name:"Malawian"},{name:"Malaysian"},{name:"Maldivan"},{name:"Malian"},{name:"Maltese"},{name:"Marshallese"},{name:"Mauritanian"},{name:"Mauritian"},{name:"Mexican"},{name:"Micronesian"},{name:"Moldovan"},{name:"Monacan"},{name:"Mongolian"},{name:"Moroccan"},{name:"Mosotho"},{name:"Motswana"},{name:"Mozambican"},{name:"Namibian"},{name:"Nauruan"},{name:"Nepalese"},{name:"New Zealander"},{name:"Nicaraguan"},{name:"Nigerian"},{name:"Nigerien"},{name:"North Korean"},{name:"Northern Irish"},{name:"Norwegian"},{name:"Omani"},{name:"Pakistani"},{name:"Palauan"},{name:"Panamanian"},{name:"Papua New Guinean"},{name:"Paraguayan"},{name:"Peruvian"},{name:"Polish"},{name:"Portuguese"},{name:"Qatari"},{name:"Romani"},{name:"Russian"},{name:"Rwandan"},{name:"Saint Lucian"},{name:"Salvadoran"},{name:"Samoan"},{name:"San Marinese"},{name:"Sao Tomean"},{name:"Saudi"},{name:"Scottish"},{name:"Senegalese"},{name:"Serbian"},{name:"Seychellois"},{name:"Sierra Leonean"},{name:"Singaporean"},{name:"Slovakian"},{name:"Slovenian"},{name:"Solomon Islander"},{name:"Somali"},{name:"South African"},{name:"South Korean"},{name:"Spanish"},{name:"Sri Lankan"},{name:"Sudanese"},{name:"Surinamer"},{name:"Swazi"},{name:"Swedish"},{name:"Swiss"},{name:"Syrian"},{name:"Taiwanese"},{name:"Tajik"},{name:"Tanzanian"},{name:"Thai"},{name:"Togolese"},{name:"Tongan"},{name:"Trinidadian or Tobagonian"},{name:"Tunisian"},{name:"Turkish"},{name:"Tuvaluan"},{name:"Ugandan"},{name:"Ukrainian"},{name:"Uruguaya"},{name:"Uzbekistani"},{name:"Venezuela"},{name:"Vietnamese"},{name:"Wels"},{name:"Yemenit"},{name:"Zambia"},{name:"Zimbabwe"}],locale_languages:["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"],locale_regions:["agq-CM","asa-TZ","ast-ES","bas-CM","bem-ZM","bez-TZ","brx-IN","cgg-UG","chr-US","dav-KE","dje-NE","dsb-DE","dua-CM","dyo-SN","ebu-KE","ewo-CM","fil-PH","fur-IT","gsw-CH","gsw-FR","gsw-LI","guz-KE","haw-US","hsb-DE","jgo-CM","jmc-TZ","kab-DZ","kam-KE","kde-TZ","kea-CV","khq-ML","kkj-CM","kln-KE","kok-IN","ksb-TZ","ksf-CM","ksh-DE","lag-TZ","lkt-US","luo-KE","luy-KE","mas-KE","mas-TZ","mer-KE","mfe-MU","mgh-MZ","mgo-CM","mua-CM","naq-NA","nmg-CM","nnh-CM","nus-SD","nyn-UG","rof-TZ","rwk-TZ","sah-RU","saq-KE","sbp-TZ","seh-MZ","ses-ML","shi-Latn","shi-Latn-MA","shi-Tfng","shi-Tfng-MA","smn-FI","teo-KE","teo-UG","twq-NE","tzm-Latn","tzm-Latn-MA","vai-Latn","vai-Latn-LR","vai-Vaii","vai-Vaii-LR","vun-TZ","wae-CH","xog-UG","yav-CM","zgh-MA","af-NA","af-ZA","ak-GH","am-ET","ar-001","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-EH","ar-ER","ar-IL","ar-IQ","ar-JO","ar-KM","ar-KW","ar-LB","ar-LY","ar-MA","ar-MR","ar-OM","ar-PS","ar-QA","ar-SA","ar-SD","ar-SO","ar-SS","ar-SY","ar-TD","ar-TN","ar-YE","as-IN","az-Cyrl","az-Cyrl-AZ","az-Latn","az-Latn-AZ","be-BY","bg-BG","bm-Latn","bm-Latn-ML","bn-BD","bn-IN","bo-CN","bo-IN","br-FR","bs-Cyrl","bs-Cyrl-BA","bs-Latn","bs-Latn-BA","ca-AD","ca-ES","ca-ES-VALENCIA","ca-FR","ca-IT","cs-CZ","cy-GB","da-DK","da-GL","de-AT","de-BE","de-CH","de-DE","de-LI","de-LU","dz-BT","ee-GH","ee-TG","el-CY","el-GR","en-001","en-150","en-AG","en-AI","en-AS","en-AU","en-BB","en-BE","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CK","en-CM","en-CX","en-DG","en-DM","en-ER","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SG","en-SH","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-US","en-US-POSIX","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","eo-001","es-419","es-AR","es-BO","es-CL","es-CO","es-CR","es-CU","es-DO","es-EA","es-EC","es-ES","es-GQ","es-GT","es-HN","es-IC","es-MX","es-NI","es-PA","es-PE","es-PH","es-PR","es-PY","es-SV","es-US","es-UY","es-VE","et-EE","eu-ES","fa-AF","fa-IR","ff-CM","ff-GN","ff-MR","ff-SN","fi-FI","fo-FO","fr-BE","fr-BF","fr-BI","fr-BJ","fr-BL","fr-CA","fr-CD","fr-CF","fr-CG","fr-CH","fr-CI","fr-CM","fr-DJ","fr-DZ","fr-FR","fr-GA","fr-GF","fr-GN","fr-GP","fr-GQ","fr-HT","fr-KM","fr-LU","fr-MA","fr-MC","fr-MF","fr-MG","fr-ML","fr-MQ","fr-MR","fr-MU","fr-NC","fr-NE","fr-PF","fr-PM","fr-RE","fr-RW","fr-SC","fr-SN","fr-SY","fr-TD","fr-TG","fr-TN","fr-VU","fr-WF","fr-YT","fy-NL","ga-IE","gd-GB","gl-ES","gu-IN","gv-IM","ha-Latn","ha-Latn-GH","ha-Latn-NE","ha-Latn-NG","he-IL","hi-IN","hr-BA","hr-HR","hu-HU","hy-AM","id-ID","ig-NG","ii-CN","is-IS","it-CH","it-IT","it-SM","ja-JP","ka-GE","ki-KE","kk-Cyrl","kk-Cyrl-KZ","kl-GL","km-KH","kn-IN","ko-KP","ko-KR","ks-Arab","ks-Arab-IN","kw-GB","ky-Cyrl","ky-Cyrl-KG","lb-LU","lg-UG","ln-AO","ln-CD","ln-CF","ln-CG","lo-LA","lt-LT","lu-CD","lv-LV","mg-MG","mk-MK","ml-IN","mn-Cyrl","mn-Cyrl-MN","mr-IN","ms-Latn","ms-Latn-BN","ms-Latn-MY","ms-Latn-SG","mt-MT","my-MM","nb-NO","nb-SJ","nd-ZW","ne-IN","ne-NP","nl-AW","nl-BE","nl-BQ","nl-CW","nl-NL","nl-SR","nl-SX","nn-NO","om-ET","om-KE","or-IN","os-GE","os-RU","pa-Arab","pa-Arab-PK","pa-Guru","pa-Guru-IN","pl-PL","ps-AF","pt-AO","pt-BR","pt-CV","pt-GW","pt-MO","pt-MZ","pt-PT","pt-ST","pt-TL","qu-BO","qu-EC","qu-PE","rm-CH","rn-BI","ro-MD","ro-RO","ru-BY","ru-KG","ru-KZ","ru-MD","ru-RU","ru-UA","rw-RW","se-FI","se-NO","se-SE","sg-CF","si-LK","sk-SK","sl-SI","sn-ZW","so-DJ","so-ET","so-KE","so-SO","sq-AL","sq-MK","sq-XK","sr-Cyrl","sr-Cyrl-BA","sr-Cyrl-ME","sr-Cyrl-RS","sr-Cyrl-XK","sr-Latn","sr-Latn-BA","sr-Latn-ME","sr-Latn-RS","sr-Latn-XK","sv-AX","sv-FI","sv-SE","sw-CD","sw-KE","sw-TZ","sw-UG","ta-IN","ta-LK","ta-MY","ta-SG","te-IN","th-TH","ti-ER","ti-ET","to-TO","tr-CY","tr-TR","ug-Arab","ug-Arab-CN","uk-UA","ur-IN","ur-PK","uz-Arab","uz-Arab-AF","uz-Cyrl","uz-Cyrl-UZ","uz-Latn","uz-Latn-UZ","vi-VN","yi-001","yo-BJ","yo-NG","zh-Hans","zh-Hans-CN","zh-Hans-HK","zh-Hans-MO","zh-Hans-SG","zh-Hant","zh-Hant-HK","zh-Hant-MO","zh-Hant-TW","zu-ZA"],us_states_and_dc:[{name:"Alabama",abbreviation:"AL"},{name:"Alaska",abbreviation:"AK"},{name:"Arizona",abbreviation:"AZ"},{name:"Arkansas",abbreviation:"AR"},{name:"California",abbreviation:"CA"},{name:"Colorado",abbreviation:"CO"},{name:"Connecticut",abbreviation:"CT"},{name:"Delaware",abbreviation:"DE"},{name:"District of Columbia",abbreviation:"DC"},{name:"Florida",abbreviation:"FL"},{name:"Georgia",abbreviation:"GA"},{name:"Hawaii",abbreviation:"HI"},{name:"Idaho",abbreviation:"ID"},{name:"Illinois",abbreviation:"IL"},{name:"Indiana",abbreviation:"IN"},{name:"Iowa",abbreviation:"IA"},{name:"Kansas",abbreviation:"KS"},{name:"Kentucky",abbreviation:"KY"},{name:"Louisiana",abbreviation:"LA"},{name:"Maine",abbreviation:"ME"},{name:"Maryland",abbreviation:"MD"},{name:"Massachusetts",abbreviation:"MA"},{name:"Michigan",abbreviation:"MI"},{name:"Minnesota",abbreviation:"MN"},{name:"Mississippi",abbreviation:"MS"},{name:"Missouri",abbreviation:"MO"},{name:"Montana",abbreviation:"MT"},{name:"Nebraska",abbreviation:"NE"},{name:"Nevada",abbreviation:"NV"},{name:"New Hampshire",abbreviation:"NH"},{name:"New Jersey",abbreviation:"NJ"},{name:"New Mexico",abbreviation:"NM"},{name:"New York",abbreviation:"NY"},{name:"North Carolina",abbreviation:"NC"},{name:"North Dakota",abbreviation:"ND"},{name:"Ohio",abbreviation:"OH"},{name:"Oklahoma",abbreviation:"OK"},{name:"Oregon",abbreviation:"OR"},{name:"Pennsylvania",abbreviation:"PA"},{name:"Rhode Island",abbreviation:"RI"},{name:"South Carolina",abbreviation:"SC"},{name:"South Dakota",abbreviation:"SD"},{name:"Tennessee",abbreviation:"TN"},{name:"Texas",abbreviation:"TX"},{name:"Utah",abbreviation:"UT"},{name:"Vermont",abbreviation:"VT"},{name:"Virginia",abbreviation:"VA"},{name:"Washington",abbreviation:"WA"},{name:"West Virginia",abbreviation:"WV"},{name:"Wisconsin",abbreviation:"WI"},{name:"Wyoming",abbreviation:"WY"}],territories:[{name:"American Samoa",abbreviation:"AS"},{name:"Federated States of Micronesia",abbreviation:"FM"},{name:"Guam",abbreviation:"GU"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Virgin Islands, U.S.",abbreviation:"VI"}],armed_forces:[{name:"Armed Forces Europe",abbreviation:"AE"},{name:"Armed Forces Pacific",abbreviation:"AP"},{name:"Armed Forces the Americas",abbreviation:"AA"}],country_regions:{it:[{name:"Valle d'Aosta",abbreviation:"VDA"},{name:"Piemonte",abbreviation:"PIE"},{name:"Lombardia",abbreviation:"LOM"},{name:"Veneto",abbreviation:"VEN"},{name:"Trentino Alto Adige",abbreviation:"TAA"},{name:"Friuli Venezia Giulia",abbreviation:"FVG"},{name:"Liguria",abbreviation:"LIG"},{name:"Emilia Romagna",abbreviation:"EMR"},{name:"Toscana",abbreviation:"TOS"},{name:"Umbria",abbreviation:"UMB"},{name:"Marche",abbreviation:"MAR"},{name:"Abruzzo",abbreviation:"ABR"},{name:"Lazio",abbreviation:"LAZ"},{name:"Campania",abbreviation:"CAM"},{name:"Puglia",abbreviation:"PUG"},{name:"Basilicata",abbreviation:"BAS"},{name:"Molise",abbreviation:"MOL"},{name:"Calabria",abbreviation:"CAL"},{name:"Sicilia",abbreviation:"SIC"},{name:"Sardegna",abbreviation:"SAR"}],mx:[{name:"Aguascalientes",abbreviation:"AGU"},{name:"Baja California",abbreviation:"BCN"},{name:"Baja California Sur",abbreviation:"BCS"},{name:"Campeche",abbreviation:"CAM"},{name:"Chiapas",abbreviation:"CHP"},{name:"Chihuahua",abbreviation:"CHH"},{name:"Ciudad de M\xE9xico",abbreviation:"DIF"},{name:"Coahuila",abbreviation:"COA"},{name:"Colima",abbreviation:"COL"},{name:"Durango",abbreviation:"DUR"},{name:"Guanajuato",abbreviation:"GUA"},{name:"Guerrero",abbreviation:"GRO"},{name:"Hidalgo",abbreviation:"HID"},{name:"Jalisco",abbreviation:"JAL"},{name:"M\xE9xico",abbreviation:"MEX"},{name:"Michoac\xE1n",abbreviation:"MIC"},{name:"Morelos",abbreviation:"MOR"},{name:"Nayarit",abbreviation:"NAY"},{name:"Nuevo Le\xF3n",abbreviation:"NLE"},{name:"Oaxaca",abbreviation:"OAX"},{name:"Puebla",abbreviation:"PUE"},{name:"Quer\xE9taro",abbreviation:"QUE"},{name:"Quintana Roo",abbreviation:"ROO"},{name:"San Luis Potos\xED",abbreviation:"SLP"},{name:"Sinaloa",abbreviation:"SIN"},{name:"Sonora",abbreviation:"SON"},{name:"Tabasco",abbreviation:"TAB"},{name:"Tamaulipas",abbreviation:"TAM"},{name:"Tlaxcala",abbreviation:"TLA"},{name:"Veracruz",abbreviation:"VER"},{name:"Yucat\xE1n",abbreviation:"YUC"},{name:"Zacatecas",abbreviation:"ZAC"}]},street_suffixes:{us:[{name:"Avenue",abbreviation:"Ave"},{name:"Boulevard",abbreviation:"Blvd"},{name:"Center",abbreviation:"Ctr"},{name:"Circle",abbreviation:"Cir"},{name:"Court",abbreviation:"Ct"},{name:"Drive",abbreviation:"Dr"},{name:"Extension",abbreviation:"Ext"},{name:"Glen",abbreviation:"Gln"},{name:"Grove",abbreviation:"Grv"},{name:"Heights",abbreviation:"Hts"},{name:"Highway",abbreviation:"Hwy"},{name:"Junction",abbreviation:"Jct"},{name:"Key",abbreviation:"Key"},{name:"Lane",abbreviation:"Ln"},{name:"Loop",abbreviation:"Loop"},{name:"Manor",abbreviation:"Mnr"},{name:"Mill",abbreviation:"Mill"},{name:"Park",abbreviation:"Park"},{name:"Parkway",abbreviation:"Pkwy"},{name:"Pass",abbreviation:"Pass"},{name:"Path",abbreviation:"Path"},{name:"Pike",abbreviation:"Pike"},{name:"Place",abbreviation:"Pl"},{name:"Plaza",abbreviation:"Plz"},{name:"Point",abbreviation:"Pt"},{name:"Ridge",abbreviation:"Rdg"},{name:"River",abbreviation:"Riv"},{name:"Road",abbreviation:"Rd"},{name:"Square",abbreviation:"Sq"},{name:"Street",abbreviation:"St"},{name:"Terrace",abbreviation:"Ter"},{name:"Trail",abbreviation:"Trl"},{name:"Turnpike",abbreviation:"Tpke"},{name:"View",abbreviation:"Vw"},{name:"Way",abbreviation:"Way"}],it:[{name:"Accesso",abbreviation:"Acc."},{name:"Alzaia",abbreviation:"Alz."},{name:"Arco",abbreviation:"Arco"},{name:"Archivolto",abbreviation:"Acv."},{name:"Arena",abbreviation:"Arena"},{name:"Argine",abbreviation:"Argine"},{name:"Bacino",abbreviation:"Bacino"},{name:"Banchi",abbreviation:"Banchi"},{name:"Banchina",abbreviation:"Ban."},{name:"Bastioni",abbreviation:"Bas."},{name:"Belvedere",abbreviation:"Belv."},{name:"Borgata",abbreviation:"B.ta"},{name:"Borgo",abbreviation:"B.go"},{name:"Calata",abbreviation:"Cal."},{name:"Calle",abbreviation:"Calle"},{name:"Campiello",abbreviation:"Cam."},{name:"Campo",abbreviation:"Cam."},{name:"Canale",abbreviation:"Can."},{name:"Carraia",abbreviation:"Carr."},{name:"Cascina",abbreviation:"Cascina"},{name:"Case sparse",abbreviation:"c.s."},{name:"Cavalcavia",abbreviation:"Cv."},{name:"Circonvallazione",abbreviation:"Cv."},{name:"Complanare",abbreviation:"C.re"},{name:"Contrada",abbreviation:"C.da"},{name:"Corso",abbreviation:"C.so"},{name:"Corte",abbreviation:"C.te"},{name:"Cortile",abbreviation:"C.le"},{name:"Diramazione",abbreviation:"Dir."},{name:"Fondaco",abbreviation:"F.co"},{name:"Fondamenta",abbreviation:"F.ta"},{name:"Fondo",abbreviation:"F.do"},{name:"Frazione",abbreviation:"Fr."},{name:"Isola",abbreviation:"Is."},{name:"Largo",abbreviation:"L.go"},{name:"Litoranea",abbreviation:"Lit."},{name:"Lungolago",abbreviation:"L.go lago"},{name:"Lungo Po",abbreviation:"l.go Po"},{name:"Molo",abbreviation:"Molo"},{name:"Mura",abbreviation:"Mura"},{name:"Passaggio privato",abbreviation:"pass. priv."},{name:"Passeggiata",abbreviation:"Pass."},{name:"Piazza",abbreviation:"P.zza"},{name:"Piazzale",abbreviation:"P.le"},{name:"Ponte",abbreviation:"P.te"},{name:"Portico",abbreviation:"P.co"},{name:"Rampa",abbreviation:"Rampa"},{name:"Regione",abbreviation:"Reg."},{name:"Rione",abbreviation:"R.ne"},{name:"Rio",abbreviation:"Rio"},{name:"Ripa",abbreviation:"Ripa"},{name:"Riva",abbreviation:"Riva"},{name:"Rond\xF2",abbreviation:"Rond\xF2"},{name:"Rotonda",abbreviation:"Rot."},{name:"Sagrato",abbreviation:"Sagr."},{name:"Salita",abbreviation:"Sal."},{name:"Scalinata",abbreviation:"Scal."},{name:"Scalone",abbreviation:"Scal."},{name:"Slargo",abbreviation:"Sl."},{name:"Sottoportico",abbreviation:"Sott."},{name:"Strada",abbreviation:"Str."},{name:"Stradale",abbreviation:"Str.le"},{name:"Strettoia",abbreviation:"Strett."},{name:"Traversa",abbreviation:"Trav."},{name:"Via",abbreviation:"V."},{name:"Viale",abbreviation:"V.le"},{name:"Vicinale",abbreviation:"Vic.le"},{name:"Vicolo",abbreviation:"Vic."}],uk:[{name:"Avenue",abbreviation:"Ave"},{name:"Close",abbreviation:"Cl"},{name:"Court",abbreviation:"Ct"},{name:"Crescent",abbreviation:"Cr"},{name:"Drive",abbreviation:"Dr"},{name:"Garden",abbreviation:"Gdn"},{name:"Gardens",abbreviation:"Gdns"},{name:"Green",abbreviation:"Gn"},{name:"Grove",abbreviation:"Gr"},{name:"Lane",abbreviation:"Ln"},{name:"Mount",abbreviation:"Mt"},{name:"Place",abbreviation:"Pl"},{name:"Park",abbreviation:"Pk"},{name:"Ridge",abbreviation:"Rdg"},{name:"Road",abbreviation:"Rd"},{name:"Square",abbreviation:"Sq"},{name:"Street",abbreviation:"St"},{name:"Terrace",abbreviation:"Ter"},{name:"Valley",abbreviation:"Val"}]},months:[{name:"January",short_name:"Jan",numeric:"01",days:31},{name:"February",short_name:"Feb",numeric:"02",days:28},{name:"March",short_name:"Mar",numeric:"03",days:31},{name:"April",short_name:"Apr",numeric:"04",days:30},{name:"May",short_name:"May",numeric:"05",days:31},{name:"June",short_name:"Jun",numeric:"06",days:30},{name:"July",short_name:"Jul",numeric:"07",days:31},{name:"August",short_name:"Aug",numeric:"08",days:31},{name:"September",short_name:"Sep",numeric:"09",days:30},{name:"October",short_name:"Oct",numeric:"10",days:31},{name:"November",short_name:"Nov",numeric:"11",days:30},{name:"December",short_name:"Dec",numeric:"12",days:31}],cc_types:[{name:"American Express",short_name:"amex",prefix:"34",length:15},{name:"Bankcard",short_name:"bankcard",prefix:"5610",length:16},{name:"China UnionPay",short_name:"chinaunion",prefix:"62",length:16},{name:"Diners Club Carte Blanche",short_name:"dccarte",prefix:"300",length:14},{name:"Diners Club enRoute",short_name:"dcenroute",prefix:"2014",length:15},{name:"Diners Club International",short_name:"dcintl",prefix:"36",length:14},{name:"Diners Club United States & Canada",short_name:"dcusc",prefix:"54",length:16},{name:"Discover Card",short_name:"discover",prefix:"6011",length:16},{name:"InstaPayment",short_name:"instapay",prefix:"637",length:16},{name:"JCB",short_name:"jcb",prefix:"3528",length:16},{name:"Laser",short_name:"laser",prefix:"6304",length:16},{name:"Maestro",short_name:"maestro",prefix:"5018",length:16},{name:"Mastercard",short_name:"mc",prefix:"51",length:16},{name:"Solo",short_name:"solo",prefix:"6334",length:16},{name:"Switch",short_name:"switch",prefix:"4903",length:16},{name:"Visa",short_name:"visa",prefix:"4",length:16},{name:"Visa Electron",short_name:"electron",prefix:"4026",length:16}],currency_types:[{code:"AED",name:"United Arab Emirates Dirham"},{code:"AFN",name:"Afghanistan Afghani"},{code:"ALL",name:"Albania Lek"},{code:"AMD",name:"Armenia Dram"},{code:"ANG",name:"Netherlands Antilles Guilder"},{code:"AOA",name:"Angola Kwanza"},{code:"ARS",name:"Argentina Peso"},{code:"AUD",name:"Australia Dollar"},{code:"AWG",name:"Aruba Guilder"},{code:"AZN",name:"Azerbaijan New Manat"},{code:"BAM",name:"Bosnia and Herzegovina Convertible Marka"},{code:"BBD",name:"Barbados Dollar"},{code:"BDT",name:"Bangladesh Taka"},{code:"BGN",name:"Bulgaria Lev"},{code:"BHD",name:"Bahrain Dinar"},{code:"BIF",name:"Burundi Franc"},{code:"BMD",name:"Bermuda Dollar"},{code:"BND",name:"Brunei Darussalam Dollar"},{code:"BOB",name:"Bolivia Boliviano"},{code:"BRL",name:"Brazil Real"},{code:"BSD",name:"Bahamas Dollar"},{code:"BTN",name:"Bhutan Ngultrum"},{code:"BWP",name:"Botswana Pula"},{code:"BYR",name:"Belarus Ruble"},{code:"BZD",name:"Belize Dollar"},{code:"CAD",name:"Canada Dollar"},{code:"CDF",name:"Congo/Kinshasa Franc"},{code:"CHF",name:"Switzerland Franc"},{code:"CLP",name:"Chile Peso"},{code:"CNY",name:"China Yuan Renminbi"},{code:"COP",name:"Colombia Peso"},{code:"CRC",name:"Costa Rica Colon"},{code:"CUC",name:"Cuba Convertible Peso"},{code:"CUP",name:"Cuba Peso"},{code:"CVE",name:"Cape Verde Escudo"},{code:"CZK",name:"Czech Republic Koruna"},{code:"DJF",name:"Djibouti Franc"},{code:"DKK",name:"Denmark Krone"},{code:"DOP",name:"Dominican Republic Peso"},{code:"DZD",name:"Algeria Dinar"},{code:"EGP",name:"Egypt Pound"},{code:"ERN",name:"Eritrea Nakfa"},{code:"ETB",name:"Ethiopia Birr"},{code:"EUR",name:"Euro Member Countries"},{code:"FJD",name:"Fiji Dollar"},{code:"FKP",name:"Falkland Islands (Malvinas) Pound"},{code:"GBP",name:"United Kingdom Pound"},{code:"GEL",name:"Georgia Lari"},{code:"GGP",name:"Guernsey Pound"},{code:"GHS",name:"Ghana Cedi"},{code:"GIP",name:"Gibraltar Pound"},{code:"GMD",name:"Gambia Dalasi"},{code:"GNF",name:"Guinea Franc"},{code:"GTQ",name:"Guatemala Quetzal"},{code:"GYD",name:"Guyana Dollar"},{code:"HKD",name:"Hong Kong Dollar"},{code:"HNL",name:"Honduras Lempira"},{code:"HRK",name:"Croatia Kuna"},{code:"HTG",name:"Haiti Gourde"},{code:"HUF",name:"Hungary Forint"},{code:"IDR",name:"Indonesia Rupiah"},{code:"ILS",name:"Israel Shekel"},{code:"IMP",name:"Isle of Man Pound"},{code:"INR",name:"India Rupee"},{code:"IQD",name:"Iraq Dinar"},{code:"IRR",name:"Iran Rial"},{code:"ISK",name:"Iceland Krona"},{code:"JEP",name:"Jersey Pound"},{code:"JMD",name:"Jamaica Dollar"},{code:"JOD",name:"Jordan Dinar"},{code:"JPY",name:"Japan Yen"},{code:"KES",name:"Kenya Shilling"},{code:"KGS",name:"Kyrgyzstan Som"},{code:"KHR",name:"Cambodia Riel"},{code:"KMF",name:"Comoros Franc"},{code:"KPW",name:"Korea (North) Won"},{code:"KRW",name:"Korea (South) Won"},{code:"KWD",name:"Kuwait Dinar"},{code:"KYD",name:"Cayman Islands Dollar"},{code:"KZT",name:"Kazakhstan Tenge"},{code:"LAK",name:"Laos Kip"},{code:"LBP",name:"Lebanon Pound"},{code:"LKR",name:"Sri Lanka Rupee"},{code:"LRD",name:"Liberia Dollar"},{code:"LSL",name:"Lesotho Loti"},{code:"LTL",name:"Lithuania Litas"},{code:"LYD",name:"Libya Dinar"},{code:"MAD",name:"Morocco Dirham"},{code:"MDL",name:"Moldova Leu"},{code:"MGA",name:"Madagascar Ariary"},{code:"MKD",name:"Macedonia Denar"},{code:"MMK",name:"Myanmar (Burma) Kyat"},{code:"MNT",name:"Mongolia Tughrik"},{code:"MOP",name:"Macau Pataca"},{code:"MRO",name:"Mauritania Ouguiya"},{code:"MUR",name:"Mauritius Rupee"},{code:"MVR",name:"Maldives (Maldive Islands) Rufiyaa"},{code:"MWK",name:"Malawi Kwacha"},{code:"MXN",name:"Mexico Peso"},{code:"MYR",name:"Malaysia Ringgit"},{code:"MZN",name:"Mozambique Metical"},{code:"NAD",name:"Namibia Dollar"},{code:"NGN",name:"Nigeria Naira"},{code:"NIO",name:"Nicaragua Cordoba"},{code:"NOK",name:"Norway Krone"},{code:"NPR",name:"Nepal Rupee"},{code:"NZD",name:"New Zealand Dollar"},{code:"OMR",name:"Oman Rial"},{code:"PAB",name:"Panama Balboa"},{code:"PEN",name:"Peru Nuevo Sol"},{code:"PGK",name:"Papua New Guinea Kina"},{code:"PHP",name:"Philippines Peso"},{code:"PKR",name:"Pakistan Rupee"},{code:"PLN",name:"Poland Zloty"},{code:"PYG",name:"Paraguay Guarani"},{code:"QAR",name:"Qatar Riyal"},{code:"RON",name:"Romania New Leu"},{code:"RSD",name:"Serbia Dinar"},{code:"RUB",name:"Russia Ruble"},{code:"RWF",name:"Rwanda Franc"},{code:"SAR",name:"Saudi Arabia Riyal"},{code:"SBD",name:"Solomon Islands Dollar"},{code:"SCR",name:"Seychelles Rupee"},{code:"SDG",name:"Sudan Pound"},{code:"SEK",name:"Sweden Krona"},{code:"SGD",name:"Singapore Dollar"},{code:"SHP",name:"Saint Helena Pound"},{code:"SLL",name:"Sierra Leone Leone"},{code:"SOS",name:"Somalia Shilling"},{code:"SPL",name:"Seborga Luigino"},{code:"SRD",name:"Suriname Dollar"},{code:"STD",name:"S\xE3o Tom\xE9 and Pr\xEDncipe Dobra"},{code:"SVC",name:"El Salvador Colon"},{code:"SYP",name:"Syria Pound"},{code:"SZL",name:"Swaziland Lilangeni"},{code:"THB",name:"Thailand Baht"},{code:"TJS",name:"Tajikistan Somoni"},{code:"TMT",name:"Turkmenistan Manat"},{code:"TND",name:"Tunisia Dinar"},{code:"TOP",name:"Tonga Pa'anga"},{code:"TRY",name:"Turkey Lira"},{code:"TTD",name:"Trinidad and Tobago Dollar"},{code:"TVD",name:"Tuvalu Dollar"},{code:"TWD",name:"Taiwan New Dollar"},{code:"TZS",name:"Tanzania Shilling"},{code:"UAH",name:"Ukraine Hryvnia"},{code:"UGX",name:"Uganda Shilling"},{code:"USD",name:"United States Dollar"},{code:"UYU",name:"Uruguay Peso"},{code:"UZS",name:"Uzbekistan Som"},{code:"VEF",name:"Venezuela Bolivar"},{code:"VND",name:"Viet Nam Dong"},{code:"VUV",name:"Vanuatu Vatu"},{code:"WST",name:"Samoa Tala"},{code:"XAF",name:"Communaut\xE9 Financi\xE8re Africaine (BEAC) CFA Franc BEAC"},{code:"XCD",name:"East Caribbean Dollar"},{code:"XDR",name:"International Monetary Fund (IMF) Special Drawing Rights"},{code:"XOF",name:"Communaut\xE9 Financi\xE8re Africaine (BCEAO) Franc"},{code:"XPF",name:"Comptoirs Fran\xE7ais du Pacifique (CFP) Franc"},{code:"YER",name:"Yemen Rial"},{code:"ZAR",name:"South Africa Rand"},{code:"ZMW",name:"Zambia Kwacha"},{code:"ZWD",name:"Zimbabwe Dollar"}],colorNames:["AliceBlue","Black","Navy","DarkBlue","MediumBlue","Blue","DarkGreen","Green","Teal","DarkCyan","DeepSkyBlue","DarkTurquoise","MediumSpringGreen","Lime","SpringGreen","Aqua","Cyan","MidnightBlue","DodgerBlue","LightSeaGreen","ForestGreen","SeaGreen","DarkSlateGray","LimeGreen","MediumSeaGreen","Turquoise","RoyalBlue","SteelBlue","DarkSlateBlue","MediumTurquoise","Indigo","DarkOliveGreen","CadetBlue","CornflowerBlue","RebeccaPurple","MediumAquaMarine","DimGray","SlateBlue","OliveDrab","SlateGray","LightSlateGray","MediumSlateBlue","LawnGreen","Chartreuse","Aquamarine","Maroon","Purple","Olive","Gray","SkyBlue","LightSkyBlue","BlueViolet","DarkRed","DarkMagenta","SaddleBrown","Ivory","White","DarkSeaGreen","LightGreen","MediumPurple","DarkViolet","PaleGreen","DarkOrchid","YellowGreen","Sienna","Brown","DarkGray","LightBlue","GreenYellow","PaleTurquoise","LightSteelBlue","PowderBlue","FireBrick","DarkGoldenRod","MediumOrchid","RosyBrown","DarkKhaki","Silver","MediumVioletRed","IndianRed","Peru","Chocolate","Tan","LightGray","Thistle","Orchid","GoldenRod","PaleVioletRed","Crimson","Gainsboro","Plum","BurlyWood","LightCyan","Lavender","DarkSalmon","Violet","PaleGoldenRod","LightCoral","Khaki","AliceBlue","HoneyDew","Azure","SandyBrown","Wheat","Beige","WhiteSmoke","MintCream","GhostWhite","Salmon","AntiqueWhite","Linen","LightGoldenRodYellow","OldLace","Red","Fuchsia","Magenta","DeepPink","OrangeRed","Tomato","HotPink","Coral","DarkOrange","LightSalmon","Orange","LightPink","Pink","Gold","PeachPuff","NavajoWhite","Moccasin","Bisque","MistyRose","BlanchedAlmond","PapayaWhip","LavenderBlush","SeaShell","Cornsilk","LemonChiffon","FloralWhite","Snow","Yellow","LightYellow"],company:["3Com Corp","3M Company","A.G. Edwards Inc.","Abbott Laboratories","Abercrombie & Fitch Co.","ABM Industries Incorporated","Ace Hardware Corporation","ACT Manufacturing Inc.","Acterna Corp.","Adams Resources & Energy, Inc.","ADC Telecommunications, Inc.","Adelphia Communications Corporation","Administaff, Inc.","Adobe Systems Incorporated","Adolph Coors Company","Advance Auto Parts, Inc.","Advanced Micro Devices, Inc.","AdvancePCS, Inc.","Advantica Restaurant Group, Inc.","The AES Corporation","Aetna Inc.","Affiliated Computer Services, Inc.","AFLAC Incorporated","AGCO Corporation","Agilent Technologies, Inc.","Agway Inc.","Apartment Investment and Management Company","Air Products and Chemicals, Inc.","Airborne, Inc.","Airgas, Inc.","AK Steel Holding Corporation","Alaska Air Group, Inc.","Alberto-Culver Company","Albertson's, Inc.","Alcoa Inc.","Alleghany Corporation","Allegheny Energy, Inc.","Allegheny Technologies Incorporated","Allergan, Inc.","ALLETE, Inc.","Alliant Energy Corporation","Allied Waste Industries, Inc.","Allmerica Financial Corporation","The Allstate Corporation","ALLTEL Corporation","The Alpine Group, Inc.","Amazon.com, Inc.","AMC Entertainment Inc.","American Power Conversion Corporation","Amerada Hess Corporation","AMERCO","Ameren Corporation","America West Holdings Corporation","American Axle & Manufacturing Holdings, Inc.","American Eagle Outfitters, Inc.","American Electric Power Company, Inc.","American Express Company","American Financial Group, Inc.","American Greetings Corporation","American International Group, Inc.","American Standard Companies Inc.","American Water Works Company, Inc.","AmerisourceBergen Corporation","Ames Department Stores, Inc.","Amgen Inc.","Amkor Technology, Inc.","AMR Corporation","AmSouth Bancorp.","Amtran, Inc.","Anadarko Petroleum Corporation","Analog Devices, Inc.","Anheuser-Busch Companies, Inc.","Anixter International Inc.","AnnTaylor Inc.","Anthem, Inc.","AOL Time Warner Inc.","Aon Corporation","Apache Corporation","Apple Computer, Inc.","Applera Corporation","Applied Industrial Technologies, Inc.","Applied Materials, Inc.","Aquila, Inc.","ARAMARK Corporation","Arch Coal, Inc.","Archer Daniels Midland Company","Arkansas Best Corporation","Armstrong Holdings, Inc.","Arrow Electronics, Inc.","ArvinMeritor, Inc.","Ashland Inc.","Astoria Financial Corporation","AT&T Corp.","Atmel Corporation","Atmos Energy Corporation","Audiovox Corporation","Autoliv, Inc.","Automatic Data Processing, Inc.","AutoNation, Inc.","AutoZone, Inc.","Avaya Inc.","Avery Dennison Corporation","Avista Corporation","Avnet, Inc.","Avon Products, Inc.","Baker Hughes Incorporated","Ball Corporation","Bank of America Corporation","The Bank of New York Company, Inc.","Bank One Corporation","Banknorth Group, Inc.","Banta Corporation","Barnes & Noble, Inc.","Bausch & Lomb Incorporated","Baxter International Inc.","BB&T Corporation","The Bear Stearns Companies Inc.","Beazer Homes USA, Inc.","Beckman Coulter, Inc.","Becton, Dickinson and Company","Bed Bath & Beyond Inc.","Belk, Inc.","Bell Microproducts Inc.","BellSouth Corporation","Belo Corp.","Bemis Company, Inc.","Benchmark Electronics, Inc.","Berkshire Hathaway Inc.","Best Buy Co., Inc.","Bethlehem Steel Corporation","Beverly Enterprises, Inc.","Big Lots, Inc.","BJ Services Company","BJ's Wholesale Club, Inc.","The Black & Decker Corporation","Black Hills Corporation","BMC Software, Inc.","The Boeing Company","Boise Cascade Corporation","Borders Group, Inc.","BorgWarner Inc.","Boston Scientific Corporation","Bowater Incorporated","Briggs & Stratton Corporation","Brightpoint, Inc.","Brinker International, Inc.","Bristol-Myers Squibb Company","Broadwing, Inc.","Brown Shoe Company, Inc.","Brown-Forman Corporation","Brunswick Corporation","Budget Group, Inc.","Burlington Coat Factory Warehouse Corporation","Burlington Industries, Inc.","Burlington Northern Santa Fe Corporation","Burlington Resources Inc.","C. H. Robinson Worldwide Inc.","Cablevision Systems Corp","Cabot Corp","Cadence Design Systems, Inc.","Calpine Corp.","Campbell Soup Co.","Capital One Financial Corp.","Cardinal Health Inc.","Caremark Rx Inc.","Carlisle Cos. Inc.","Carpenter Technology Corp.","Casey's General Stores Inc.","Caterpillar Inc.","CBRL Group Inc.","CDI Corp.","CDW Computer Centers Inc.","CellStar Corp.","Cendant Corp","Cenex Harvest States Cooperatives","Centex Corp.","CenturyTel Inc.","Ceridian Corp.","CH2M Hill Cos. Ltd.","Champion Enterprises Inc.","Charles Schwab Corp.","Charming Shoppes Inc.","Charter Communications Inc.","Charter One Financial Inc.","ChevronTexaco Corp.","Chiquita Brands International Inc.","Chubb Corp","Ciena Corp.","Cigna Corp","Cincinnati Financial Corp.","Cinergy Corp.","Cintas Corp.","Circuit City Stores Inc.","Cisco Systems Inc.","Citigroup, Inc","Citizens Communications Co.","CKE Restaurants Inc.","Clear Channel Communications Inc.","The Clorox Co.","CMGI Inc.","CMS Energy Corp.","CNF Inc.","Coca-Cola Co.","Coca-Cola Enterprises Inc.","Colgate-Palmolive Co.","Collins & Aikman Corp.","Comcast Corp.","Comdisco Inc.","Comerica Inc.","Comfort Systems USA Inc.","Commercial Metals Co.","Community Health Systems Inc.","Compass Bancshares Inc","Computer Associates International Inc.","Computer Sciences Corp.","Compuware Corp.","Comverse Technology Inc.","ConAgra Foods Inc.","Concord EFS Inc.","Conectiv, Inc","Conoco Inc","Conseco Inc.","Consolidated Freightways Corp.","Consolidated Edison Inc.","Constellation Brands Inc.","Constellation Emergy Group Inc.","Continental Airlines Inc.","Convergys Corp.","Cooper Cameron Corp.","Cooper Industries Ltd.","Cooper Tire & Rubber Co.","Corn Products International Inc.","Corning Inc.","Costco Wholesale Corp.","Countrywide Credit Industries Inc.","Coventry Health Care Inc.","Cox Communications Inc.","Crane Co.","Crompton Corp.","Crown Cork & Seal Co. Inc.","CSK Auto Corp.","CSX Corp.","Cummins Inc.","CVS Corp.","Cytec Industries Inc.","D&K Healthcare Resources, Inc.","D.R. Horton Inc.","Dana Corporation","Danaher Corporation","Darden Restaurants Inc.","DaVita Inc.","Dean Foods Company","Deere & Company","Del Monte Foods Co","Dell Computer Corporation","Delphi Corp.","Delta Air Lines Inc.","Deluxe Corporation","Devon Energy Corporation","Di Giorgio Corporation","Dial Corporation","Diebold Incorporated","Dillard's Inc.","DIMON Incorporated","Dole Food Company, Inc.","Dollar General Corporation","Dollar Tree Stores, Inc.","Dominion Resources, Inc.","Domino's Pizza LLC","Dover Corporation, Inc.","Dow Chemical Company","Dow Jones & Company, Inc.","DPL Inc.","DQE Inc.","Dreyer's Grand Ice Cream, Inc.","DST Systems, Inc.","DTE Energy Co.","E.I. Du Pont de Nemours and Company","Duke Energy Corp","Dun & Bradstreet Inc.","DURA Automotive Systems Inc.","DynCorp","Dynegy Inc.","E*Trade Group, Inc.","E.W. Scripps Company","Earthlink, Inc.","Eastman Chemical Company","Eastman Kodak Company","Eaton Corporation","Echostar Communications Corporation","Ecolab Inc.","Edison International","EGL Inc.","El Paso Corporation","Electronic Arts Inc.","Electronic Data Systems Corp.","Eli Lilly and Company","EMC Corporation","Emcor Group Inc.","Emerson Electric Co.","Encompass Services Corporation","Energizer Holdings Inc.","Energy East Corporation","Engelhard Corporation","Enron Corp.","Entergy Corporation","Enterprise Products Partners L.P.","EOG Resources, Inc.","Equifax Inc.","Equitable Resources Inc.","Equity Office Properties Trust","Equity Residential Properties Trust","Estee Lauder Companies Inc.","Exelon Corporation","Exide Technologies","Expeditors International of Washington Inc.","Express Scripts Inc.","ExxonMobil Corporation","Fairchild Semiconductor International Inc.","Family Dollar Stores Inc.","Farmland Industries Inc.","Federal Mogul Corp.","Federated Department Stores Inc.","Federal Express Corp.","Felcor Lodging Trust Inc.","Ferro Corp.","Fidelity National Financial Inc.","Fifth Third Bancorp","First American Financial Corp.","First Data Corp.","First National of Nebraska Inc.","First Tennessee National Corp.","FirstEnergy Corp.","Fiserv Inc.","Fisher Scientific International Inc.","FleetBoston Financial Co.","Fleetwood Enterprises Inc.","Fleming Companies Inc.","Flowers Foods Inc.","Flowserv Corp","Fluor Corp","FMC Corp","Foamex International Inc","Foot Locker Inc","Footstar Inc.","Ford Motor Co","Forest Laboratories Inc.","Fortune Brands Inc.","Foster Wheeler Ltd.","FPL Group Inc.","Franklin Resources Inc.","Freeport McMoran Copper & Gold Inc.","Frontier Oil Corp","Furniture Brands International Inc.","Gannett Co., Inc.","Gap Inc.","Gateway Inc.","GATX Corporation","Gemstar-TV Guide International Inc.","GenCorp Inc.","General Cable Corporation","General Dynamics Corporation","General Electric Company","General Mills Inc","General Motors Corporation","Genesis Health Ventures Inc.","Gentek Inc.","Gentiva Health Services Inc.","Genuine Parts Company","Genuity Inc.","Genzyme Corporation","Georgia Gulf Corporation","Georgia-Pacific Corporation","Gillette Company","Gold Kist Inc.","Golden State Bancorp Inc.","Golden West Financial Corporation","Goldman Sachs Group Inc.","Goodrich Corporation","The Goodyear Tire & Rubber Company","Granite Construction Incorporated","Graybar Electric Company Inc.","Great Lakes Chemical Corporation","Great Plains Energy Inc.","GreenPoint Financial Corp.","Greif Bros. Corporation","Grey Global Group Inc.","Group 1 Automotive Inc.","Guidant Corporation","H&R Block Inc.","H.B. Fuller Company","H.J. Heinz Company","Halliburton Co.","Harley-Davidson Inc.","Harman International Industries Inc.","Harrah's Entertainment Inc.","Harris Corp.","Harsco Corp.","Hartford Financial Services Group Inc.","Hasbro Inc.","Hawaiian Electric Industries Inc.","HCA Inc.","Health Management Associates Inc.","Health Net Inc.","Healthsouth Corp","Henry Schein Inc.","Hercules Inc.","Herman Miller Inc.","Hershey Foods Corp.","Hewlett-Packard Company","Hibernia Corp.","Hillenbrand Industries Inc.","Hilton Hotels Corp.","Hollywood Entertainment Corp.","Home Depot Inc.","Hon Industries Inc.","Honeywell International Inc.","Hormel Foods Corp.","Host Marriott Corp.","Household International Corp.","Hovnanian Enterprises Inc.","Hub Group Inc.","Hubbell Inc.","Hughes Supply Inc.","Humana Inc.","Huntington Bancshares Inc.","Idacorp Inc.","IDT Corporation","IKON Office Solutions Inc.","Illinois Tool Works Inc.","IMC Global Inc.","Imperial Sugar Company","IMS Health Inc.","Ingles Market Inc","Ingram Micro Inc.","Insight Enterprises Inc.","Integrated Electrical Services Inc.","Intel Corporation","International Paper Co.","Interpublic Group of Companies Inc.","Interstate Bakeries Corporation","International Business Machines Corp.","International Flavors & Fragrances Inc.","International Multifoods Corporation","Intuit Inc.","IT Group Inc.","ITT Industries Inc.","Ivax Corp.","J.B. Hunt Transport Services Inc.","J.C. Penny Co.","J.P. Morgan Chase & Co.","Jabil Circuit Inc.","Jack In The Box Inc.","Jacobs Engineering Group Inc.","JDS Uniphase Corp.","Jefferson-Pilot Co.","John Hancock Financial Services Inc.","Johnson & Johnson","Johnson Controls Inc.","Jones Apparel Group Inc.","KB Home","Kellogg Company","Kellwood Company","Kelly Services Inc.","Kemet Corp.","Kennametal Inc.","Kerr-McGee Corporation","KeyCorp","KeySpan Corp.","Kimball International Inc.","Kimberly-Clark Corporation","Kindred Healthcare Inc.","KLA-Tencor Corporation","K-Mart Corp.","Knight-Ridder Inc.","Kohl's Corp.","KPMG Consulting Inc.","Kroger Co.","L-3 Communications Holdings Inc.","Laboratory Corporation of America Holdings","Lam Research Corporation","LandAmerica Financial Group Inc.","Lands' End Inc.","Landstar System Inc.","La-Z-Boy Inc.","Lear Corporation","Legg Mason Inc.","Leggett & Platt Inc.","Lehman Brothers Holdings Inc.","Lennar Corporation","Lennox International Inc.","Level 3 Communications Inc.","Levi Strauss & Co.","Lexmark International Inc.","Limited Inc.","Lincoln National Corporation","Linens 'n Things Inc.","Lithia Motors Inc.","Liz Claiborne Inc.","Lockheed Martin Corporation","Loews Corporation","Longs Drug Stores Corporation","Louisiana-Pacific Corporation","Lowe's Companies Inc.","LSI Logic Corporation","The LTV Corporation","The Lubrizol Corporation","Lucent Technologies Inc.","Lyondell Chemical Company","M & T Bank Corporation","Magellan Health Services Inc.","Mail-Well Inc.","Mandalay Resort Group","Manor Care Inc.","Manpower Inc.","Marathon Oil Corporation","Mariner Health Care Inc.","Markel Corporation","Marriott International Inc.","Marsh & McLennan Companies Inc.","Marsh Supermarkets Inc.","Marshall & Ilsley Corporation","Martin Marietta Materials Inc.","Masco Corporation","Massey Energy Company","MasTec Inc.","Mattel Inc.","Maxim Integrated Products Inc.","Maxtor Corporation","Maxxam Inc.","The May Department Stores Company","Maytag Corporation","MBNA Corporation","McCormick & Company Incorporated","McDonald's Corporation","The McGraw-Hill Companies Inc.","McKesson Corporation","McLeodUSA Incorporated","M.D.C. Holdings Inc.","MDU Resources Group Inc.","MeadWestvaco Corporation","Medtronic Inc.","Mellon Financial Corporation","The Men's Wearhouse Inc.","Merck & Co., Inc.","Mercury General Corporation","Merrill Lynch & Co. Inc.","Metaldyne Corporation","Metals USA Inc.","MetLife Inc.","Metris Companies Inc","MGIC Investment Corporation","MGM Mirage","Michaels Stores Inc.","Micron Technology Inc.","Microsoft Corporation","Milacron Inc.","Millennium Chemicals Inc.","Mirant Corporation","Mohawk Industries Inc.","Molex Incorporated","The MONY Group Inc.","Morgan Stanley Dean Witter & Co.","Motorola Inc.","MPS Group Inc.","Murphy Oil Corporation","Nabors Industries Inc","Nacco Industries Inc","Nash Finch Company","National City Corp.","National Commerce Financial Corporation","National Fuel Gas Company","National Oilwell Inc","National Rural Utilities Cooperative Finance Corporation","National Semiconductor Corporation","National Service Industries Inc","Navistar International Corporation","NCR Corporation","The Neiman Marcus Group Inc.","New Jersey Resources Corporation","New York Times Company","Newell Rubbermaid Inc","Newmont Mining Corporation","Nextel Communications Inc","Nicor Inc","Nike Inc","NiSource Inc","Noble Energy Inc","Nordstrom Inc","Norfolk Southern Corporation","Nortek Inc","North Fork Bancorporation Inc","Northeast Utilities System","Northern Trust Corporation","Northrop Grumman Corporation","NorthWestern Corporation","Novellus Systems Inc","NSTAR","NTL Incorporated","Nucor Corp","Nvidia Corp","NVR Inc","Northwest Airlines Corp","Occidental Petroleum Corp","Ocean Energy Inc","Office Depot Inc.","OfficeMax Inc","OGE Energy Corp","Oglethorpe Power Corp.","Ohio Casualty Corp.","Old Republic International Corp.","Olin Corp.","OM Group Inc","Omnicare Inc","Omnicom Group","On Semiconductor Corp","ONEOK Inc","Oracle Corp","Oshkosh Truck Corp","Outback Steakhouse Inc.","Owens & Minor Inc.","Owens Corning","Owens-Illinois Inc","Oxford Health Plans Inc","Paccar Inc","PacifiCare Health Systems Inc","Packaging Corp. of America","Pactiv Corp","Pall Corp","Pantry Inc","Park Place Entertainment Corp","Parker Hannifin Corp.","Pathmark Stores Inc.","Paychex Inc","Payless Shoesource Inc","Penn Traffic Co.","Pennzoil-Quaker State Company","Pentair Inc","Peoples Energy Corp.","PeopleSoft Inc","Pep Boys Manny, Moe & Jack","Potomac Electric Power Co.","Pepsi Bottling Group Inc.","PepsiAmericas Inc.","PepsiCo Inc.","Performance Food Group Co.","Perini Corp","PerkinElmer Inc","Perot Systems Corp","Petco Animal Supplies Inc.","Peter Kiewit Sons', Inc.","PETsMART Inc","Pfizer Inc","Pacific Gas & Electric Corp.","Pharmacia Corp","Phar Mor Inc.","Phelps Dodge Corp.","Philip Morris Companies Inc.","Phillips Petroleum Co","Phillips Van Heusen Corp.","Phoenix Companies Inc","Pier 1 Imports Inc.","Pilgrim's Pride Corporation","Pinnacle West Capital Corp","Pioneer-Standard Electronics Inc.","Pitney Bowes Inc.","Pittston Brinks Group","Plains All American Pipeline LP","PNC Financial Services Group Inc.","PNM Resources Inc","Polaris Industries Inc.","Polo Ralph Lauren Corp","PolyOne Corp","Popular Inc","Potlatch Corp","PPG Industries Inc","PPL Corp","Praxair Inc","Precision Castparts Corp","Premcor Inc.","Pride International Inc","Primedia Inc","Principal Financial Group Inc.","Procter & Gamble Co.","Pro-Fac Cooperative Inc.","Progress Energy Inc","Progressive Corporation","Protective Life Corp","Provident Financial Group","Providian Financial Corp.","Prudential Financial Inc.","PSS World Medical Inc","Public Service Enterprise Group Inc.","Publix Super Markets Inc.","Puget Energy Inc.","Pulte Homes Inc","Qualcomm Inc","Quanta Services Inc.","Quantum Corp","Quest Diagnostics Inc.","Questar Corp","Quintiles Transnational","Qwest Communications Intl Inc","R.J. Reynolds Tobacco Company","R.R. Donnelley & Sons Company","Radio Shack Corporation","Raymond James Financial Inc.","Raytheon Company","Reader's Digest Association Inc.","Reebok International Ltd.","Regions Financial Corp.","Regis Corporation","Reliance Steel & Aluminum Co.","Reliant Energy Inc.","Rent A Center Inc","Republic Services Inc","Revlon Inc","RGS Energy Group Inc","Rite Aid Corp","Riverwood Holding Inc.","RoadwayCorp","Robert Half International Inc.","Rock-Tenn Co","Rockwell Automation Inc","Rockwell Collins Inc","Rohm & Haas Co.","Ross Stores Inc","RPM Inc.","Ruddick Corp","Ryder System Inc","Ryerson Tull Inc","Ryland Group Inc.","Sabre Holdings Corp","Safeco Corp","Safeguard Scientifics Inc.","Safeway Inc","Saks Inc","Sanmina-SCI Inc","Sara Lee Corp","SBC Communications Inc","Scana Corp.","Schering-Plough Corp","Scholastic Corp","SCI Systems Onc.","Science Applications Intl. Inc.","Scientific-Atlanta Inc","Scotts Company","Seaboard Corp","Sealed Air Corp","Sears Roebuck & Co","Sempra Energy","Sequa Corp","Service Corp. International","ServiceMaster Co","Shaw Group Inc","Sherwin-Williams Company","Shopko Stores Inc","Siebel Systems Inc","Sierra Health Services Inc","Sierra Pacific Resources","Silgan Holdings Inc.","Silicon Graphics Inc","Simon Property Group Inc","SLM Corporation","Smith International Inc","Smithfield Foods Inc","Smurfit-Stone Container Corp","Snap-On Inc","Solectron Corp","Solutia Inc","Sonic Automotive Inc.","Sonoco Products Co.","Southern Company","Southern Union Company","SouthTrust Corp.","Southwest Airlines Co","Southwest Gas Corp","Sovereign Bancorp Inc.","Spartan Stores Inc","Spherion Corp","Sports Authority Inc","Sprint Corp.","SPX Corp","St. Jude Medical Inc","St. Paul Cos.","Staff Leasing Inc.","StanCorp Financial Group Inc","Standard Pacific Corp.","Stanley Works","Staples Inc","Starbucks Corp","Starwood Hotels & Resorts Worldwide Inc","State Street Corp.","Stater Bros. Holdings Inc.","Steelcase Inc","Stein Mart Inc","Stewart & Stevenson Services Inc","Stewart Information Services Corp","Stilwell Financial Inc","Storage Technology Corporation","Stryker Corp","Sun Healthcare Group Inc.","Sun Microsystems Inc.","SunGard Data Systems Inc.","Sunoco Inc.","SunTrust Banks Inc","Supervalu Inc","Swift Transportation, Co., Inc","Symbol Technologies Inc","Synovus Financial Corp.","Sysco Corp","Systemax Inc.","Target Corp.","Tech Data Corporation","TECO Energy Inc","Tecumseh Products Company","Tektronix Inc","Teleflex Incorporated","Telephone & Data Systems Inc","Tellabs Inc.","Temple-Inland Inc","Tenet Healthcare Corporation","Tenneco Automotive Inc.","Teradyne Inc","Terex Corp","Tesoro Petroleum Corp.","Texas Industries Inc.","Texas Instruments Incorporated","Textron Inc","Thermo Electron Corporation","Thomas & Betts Corporation","Tiffany & Co","Timken Company","TJX Companies Inc","TMP Worldwide Inc","Toll Brothers Inc","Torchmark Corporation","Toro Company","Tower Automotive Inc.","Toys 'R' Us Inc","Trans World Entertainment Corp.","TransMontaigne Inc","Transocean Inc","TravelCenters of America Inc.","Triad Hospitals Inc","Tribune Company","Trigon Healthcare Inc.","Trinity Industries Inc","Trump Hotels & Casino Resorts Inc.","TruServ Corporation","TRW Inc","TXU Corp","Tyson Foods Inc","U.S. Bancorp","U.S. Industries Inc.","UAL Corporation","UGI Corporation","Unified Western Grocers Inc","Union Pacific Corporation","Union Planters Corp","Unisource Energy Corp","Unisys Corporation","United Auto Group Inc","United Defense Industries Inc.","United Parcel Service Inc","United Rentals Inc","United Stationers Inc","United Technologies Corporation","UnitedHealth Group Incorporated","Unitrin Inc","Universal Corporation","Universal Forest Products Inc","Universal Health Services Inc","Unocal Corporation","Unova Inc","UnumProvident Corporation","URS Corporation","US Airways Group Inc","US Oncology Inc","USA Interactive","USFreighways Corporation","USG Corporation","UST Inc","Valero Energy Corporation","Valspar Corporation","Value City Department Stores Inc","Varco International Inc","Vectren Corporation","Veritas Software Corporation","Verizon Communications Inc","VF Corporation","Viacom Inc","Viad Corp","Viasystems Group Inc","Vishay Intertechnology Inc","Visteon Corporation","Volt Information Sciences Inc","Vulcan Materials Company","W.R. Berkley Corporation","W.R. Grace & Co","W.W. Grainger Inc","Wachovia Corporation","Wakenhut Corporation","Walgreen Co","Wallace Computer Services Inc","Wal-Mart Stores Inc","Walt Disney Co","Walter Industries Inc","Washington Mutual Inc","Washington Post Co.","Waste Management Inc","Watsco Inc","Weatherford International Inc","Weis Markets Inc.","Wellpoint Health Networks Inc","Wells Fargo & Company","Wendy's International Inc","Werner Enterprises Inc","WESCO International Inc","Western Digital Inc","Western Gas Resources Inc","WestPoint Stevens Inc","Weyerhauser Company","WGL Holdings Inc","Whirlpool Corporation","Whole Foods Market Inc","Willamette Industries Inc.","Williams Companies Inc","Williams Sonoma Inc","Winn Dixie Stores Inc","Wisconsin Energy Corporation","Wm Wrigley Jr Company","World Fuel Services Corporation","WorldCom Inc","Worthington Industries Inc","WPS Resources Corporation","Wyeth","Wyndham International Inc","Xcel Energy Inc","Xerox Corp","Xilinx Inc","XO Communications Inc","Yellow Corporation","York International Corp","Yum Brands Inc.","Zale Corporation","Zions Bancorporation"],fileExtension:{raster:["bmp","gif","gpl","ico","jpeg","psd","png","psp","raw","tiff"],vector:["3dv","amf","awg","ai","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","odg","svg","xar"],"3d":["3dmf","3dm","3mf","3ds","an8","aoi","blend","cal3d","cob","ctm","iob","jas","max","mb","mdx","obj","x","x3d"],document:["doc","docx","dot","html","xml","odt","odm","ott","csv","rtf","tex","xhtml","xps"]},timezones:[{name:"Dateline Standard Time",abbr:"DST",offset:-12,isdst:!1,text:"(UTC-12:00) International Date Line West",utc:["Etc/GMT+12"]},{name:"UTC-11",abbr:"U",offset:-11,isdst:!1,text:"(UTC-11:00) Coordinated Universal Time-11",utc:["Etc/GMT+11","Pacific/Midway","Pacific/Niue","Pacific/Pago_Pago"]},{name:"Hawaiian Standard Time",abbr:"HST",offset:-10,isdst:!1,text:"(UTC-10:00) Hawaii",utc:["Etc/GMT+10","Pacific/Honolulu","Pacific/Johnston","Pacific/Rarotonga","Pacific/Tahiti"]},{name:"Alaskan Standard Time",abbr:"AKDT",offset:-8,isdst:!0,text:"(UTC-09:00) Alaska",utc:["America/Anchorage","America/Juneau","America/Nome","America/Sitka","America/Yakutat"]},{name:"Pacific Standard Time (Mexico)",abbr:"PDT",offset:-7,isdst:!0,text:"(UTC-08:00) Baja California",utc:["America/Santa_Isabel"]},{name:"Pacific Daylight Time",abbr:"PDT",offset:-7,isdst:!0,text:"(UTC-07:00) Pacific Time (US & Canada)",utc:["America/Dawson","America/Los_Angeles","America/Tijuana","America/Vancouver","America/Whitehorse"]},{name:"Pacific Standard Time",abbr:"PST",offset:-8,isdst:!1,text:"(UTC-08:00) Pacific Time (US & Canada)",utc:["America/Dawson","America/Los_Angeles","America/Tijuana","America/Vancouver","America/Whitehorse","PST8PDT"]},{name:"US Mountain Standard Time",abbr:"UMST",offset:-7,isdst:!1,text:"(UTC-07:00) Arizona",utc:["America/Creston","America/Dawson_Creek","America/Hermosillo","America/Phoenix","Etc/GMT+7"]},{name:"Mountain Standard Time (Mexico)",abbr:"MDT",offset:-6,isdst:!0,text:"(UTC-07:00) Chihuahua, La Paz, Mazatlan",utc:["America/Chihuahua","America/Mazatlan"]},{name:"Mountain Standard Time",abbr:"MDT",offset:-6,isdst:!0,text:"(UTC-07:00) Mountain Time (US & Canada)",utc:["America/Boise","America/Cambridge_Bay","America/Denver","America/Edmonton","America/Inuvik","America/Ojinaga","America/Yellowknife","MST7MDT"]},{name:"Central America Standard Time",abbr:"CAST",offset:-6,isdst:!1,text:"(UTC-06:00) Central America",utc:["America/Belize","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Tegucigalpa","Etc/GMT+6","Pacific/Galapagos"]},{name:"Central Standard Time",abbr:"CDT",offset:-5,isdst:!0,text:"(UTC-06:00) Central Time (US & Canada)",utc:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg","CST6CDT"]},{name:"Central Standard Time (Mexico)",abbr:"CDT",offset:-5,isdst:!0,text:"(UTC-06:00) Guadalajara, Mexico City, Monterrey",utc:["America/Bahia_Banderas","America/Cancun","America/Merida","America/Mexico_City","America/Monterrey"]},{name:"Canada Central Standard Time",abbr:"CCST",offset:-6,isdst:!1,text:"(UTC-06:00) Saskatchewan",utc:["America/Regina","America/Swift_Current"]},{name:"SA Pacific Standard Time",abbr:"SPST",offset:-5,isdst:!1,text:"(UTC-05:00) Bogota, Lima, Quito",utc:["America/Bogota","America/Cayman","America/Coral_Harbour","America/Eirunepe","America/Guayaquil","America/Jamaica","America/Lima","America/Panama","America/Rio_Branco","Etc/GMT+5"]},{name:"Eastern Standard Time",abbr:"EDT",offset:-4,isdst:!0,text:"(UTC-05:00) Eastern Time (US & Canada)",utc:["America/Detroit","America/Havana","America/Indiana/Petersburg","America/Indiana/Vincennes","America/Indiana/Winamac","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Montreal","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto","EST5EDT"]},{name:"US Eastern Standard Time",abbr:"UEDT",offset:-4,isdst:!0,text:"(UTC-05:00) Indiana (East)",utc:["America/Indiana/Marengo","America/Indiana/Vevay","America/Indianapolis"]},{name:"Venezuela Standard Time",abbr:"VST",offset:-4.5,isdst:!1,text:"(UTC-04:30) Caracas",utc:["America/Caracas"]},{name:"Paraguay Standard Time",abbr:"PYT",offset:-4,isdst:!1,text:"(UTC-04:00) Asuncion",utc:["America/Asuncion"]},{name:"Atlantic Standard Time",abbr:"ADT",offset:-3,isdst:!0,text:"(UTC-04:00) Atlantic Time (Canada)",utc:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},{name:"Central Brazilian Standard Time",abbr:"CBST",offset:-4,isdst:!1,text:"(UTC-04:00) Cuiaba",utc:["America/Campo_Grande","America/Cuiaba"]},{name:"SA Western Standard Time",abbr:"SWST",offset:-4,isdst:!1,text:"(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",utc:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Boa_Vista","America/Curacao","America/Dominica","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guyana","America/Kralendijk","America/La_Paz","America/Lower_Princes","America/Manaus","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola","Etc/GMT+4"]},{name:"Pacific SA Standard Time",abbr:"PSST",offset:-4,isdst:!1,text:"(UTC-04:00) Santiago",utc:["America/Santiago","Antarctica/Palmer"]},{name:"Newfoundland Standard Time",abbr:"NDT",offset:-2.5,isdst:!0,text:"(UTC-03:30) Newfoundland",utc:["America/St_Johns"]},{name:"E. South America Standard Time",abbr:"ESAST",offset:-3,isdst:!1,text:"(UTC-03:00) Brasilia",utc:["America/Sao_Paulo"]},{name:"Argentina Standard Time",abbr:"AST",offset:-3,isdst:!1,text:"(UTC-03:00) Buenos Aires",utc:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},{name:"SA Eastern Standard Time",abbr:"SEST",offset:-3,isdst:!1,text:"(UTC-03:00) Cayenne, Fortaleza",utc:["America/Araguaina","America/Belem","America/Cayenne","America/Fortaleza","America/Maceio","America/Paramaribo","America/Recife","America/Santarem","Antarctica/Rothera","Atlantic/Stanley","Etc/GMT+3"]},{name:"Greenland Standard Time",abbr:"GDT",offset:-3,isdst:!0,text:"(UTC-03:00) Greenland",utc:["America/Godthab"]},{name:"Montevideo Standard Time",abbr:"MST",offset:-3,isdst:!1,text:"(UTC-03:00) Montevideo",utc:["America/Montevideo"]},{name:"Bahia Standard Time",abbr:"BST",offset:-3,isdst:!1,text:"(UTC-03:00) Salvador",utc:["America/Bahia"]},{name:"UTC-02",abbr:"U",offset:-2,isdst:!1,text:"(UTC-02:00) Coordinated Universal Time-02",utc:["America/Noronha","Atlantic/South_Georgia","Etc/GMT+2"]},{name:"Mid-Atlantic Standard Time",abbr:"MDT",offset:-1,isdst:!0,text:"(UTC-02:00) Mid-Atlantic - Old",utc:[]},{name:"Azores Standard Time",abbr:"ADT",offset:0,isdst:!0,text:"(UTC-01:00) Azores",utc:["America/Scoresbysund","Atlantic/Azores"]},{name:"Cape Verde Standard Time",abbr:"CVST",offset:-1,isdst:!1,text:"(UTC-01:00) Cape Verde Is.",utc:["Atlantic/Cape_Verde","Etc/GMT+1"]},{name:"Morocco Standard Time",abbr:"MDT",offset:1,isdst:!0,text:"(UTC) Casablanca",utc:["Africa/Casablanca","Africa/El_Aaiun"]},{name:"UTC",abbr:"UTC",offset:0,isdst:!1,text:"(UTC) Coordinated Universal Time",utc:["America/Danmarkshavn","Etc/GMT"]},{name:"GMT Standard Time",abbr:"GMT",offset:0,isdst:!1,text:"(UTC) Edinburgh, London",utc:["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"]},{name:"British Summer Time",abbr:"BST",offset:1,isdst:!0,text:"(UTC+01:00) Edinburgh, London",utc:["Europe/Isle_of_Man","Europe/Guernsey","Europe/Jersey","Europe/London"]},{name:"GMT Standard Time",abbr:"GDT",offset:1,isdst:!0,text:"(UTC) Dublin, Lisbon",utc:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Dublin","Europe/Lisbon"]},{name:"Greenwich Standard Time",abbr:"GST",offset:0,isdst:!1,text:"(UTC) Monrovia, Reykjavik",utc:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","Atlantic/Reykjavik","Atlantic/St_Helena"]},{name:"W. Europe Standard Time",abbr:"WEDT",offset:2,isdst:!0,text:"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",utc:["Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Berlin","Europe/Busingen","Europe/Gibraltar","Europe/Luxembourg","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Rome","Europe/San_Marino","Europe/Stockholm","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Zurich"]},{name:"Central Europe Standard Time",abbr:"CEDT",offset:2,isdst:!0,text:"(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",utc:["Europe/Belgrade","Europe/Bratislava","Europe/Budapest","Europe/Ljubljana","Europe/Podgorica","Europe/Prague","Europe/Tirane"]},{name:"Romance Standard Time",abbr:"RDT",offset:2,isdst:!0,text:"(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",utc:["Africa/Ceuta","Europe/Brussels","Europe/Copenhagen","Europe/Madrid","Europe/Paris"]},{name:"Central European Standard Time",abbr:"CEDT",offset:2,isdst:!0,text:"(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",utc:["Europe/Sarajevo","Europe/Skopje","Europe/Warsaw","Europe/Zagreb"]},{name:"W. Central Africa Standard Time",abbr:"WCAST",offset:1,isdst:!1,text:"(UTC+01:00) West Central Africa",utc:["Africa/Algiers","Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo","Africa/Tunis","Etc/GMT-1"]},{name:"Namibia Standard Time",abbr:"NST",offset:1,isdst:!1,text:"(UTC+01:00) Windhoek",utc:["Africa/Windhoek"]},{name:"GTB Standard Time",abbr:"GDT",offset:3,isdst:!0,text:"(UTC+02:00) Athens, Bucharest",utc:["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau"]},{name:"Middle East Standard Time",abbr:"MEDT",offset:3,isdst:!0,text:"(UTC+02:00) Beirut",utc:["Asia/Beirut"]},{name:"Egypt Standard Time",abbr:"EST",offset:2,isdst:!1,text:"(UTC+02:00) Cairo",utc:["Africa/Cairo"]},{name:"Syria Standard Time",abbr:"SDT",offset:3,isdst:!0,text:"(UTC+02:00) Damascus",utc:["Asia/Damascus"]},{name:"E. Europe Standard Time",abbr:"EEDT",offset:3,isdst:!0,text:"(UTC+02:00) E. Europe",utc:["Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Nicosia","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},{name:"South Africa Standard Time",abbr:"SAST",offset:2,isdst:!1,text:"(UTC+02:00) Harare, Pretoria",utc:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Etc/GMT-2"]},{name:"FLE Standard Time",abbr:"FDT",offset:3,isdst:!0,text:"(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",utc:["Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},{name:"Turkey Standard Time",abbr:"TDT",offset:3,isdst:!1,text:"(UTC+03:00) Istanbul",utc:["Europe/Istanbul"]},{name:"Israel Standard Time",abbr:"JDT",offset:3,isdst:!0,text:"(UTC+02:00) Jerusalem",utc:["Asia/Jerusalem"]},{name:"Libya Standard Time",abbr:"LST",offset:2,isdst:!1,text:"(UTC+02:00) Tripoli",utc:["Africa/Tripoli"]},{name:"Jordan Standard Time",abbr:"JST",offset:3,isdst:!1,text:"(UTC+03:00) Amman",utc:["Asia/Amman"]},{name:"Arabic Standard Time",abbr:"AST",offset:3,isdst:!1,text:"(UTC+03:00) Baghdad",utc:["Asia/Baghdad"]},{name:"Kaliningrad Standard Time",abbr:"KST",offset:3,isdst:!1,text:"(UTC+02:00) Kaliningrad",utc:["Europe/Kaliningrad"]},{name:"Arab Standard Time",abbr:"AST",offset:3,isdst:!1,text:"(UTC+03:00) Kuwait, Riyadh",utc:["Asia/Aden","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},{name:"E. Africa Standard Time",abbr:"EAST",offset:3,isdst:!1,text:"(UTC+03:00) Nairobi",utc:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Mogadishu","Africa/Nairobi","Antarctica/Syowa","Etc/GMT-3","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},{name:"Moscow Standard Time",abbr:"MSK",offset:3,isdst:!1,text:"(UTC+03:00) Moscow, St. Petersburg, Volgograd, Minsk",utc:["Europe/Kirov","Europe/Moscow","Europe/Simferopol","Europe/Volgograd","Europe/Minsk"]},{name:"Samara Time",abbr:"SAMT",offset:4,isdst:!1,text:"(UTC+04:00) Samara, Ulyanovsk, Saratov",utc:["Europe/Astrakhan","Europe/Samara","Europe/Ulyanovsk"]},{name:"Iran Standard Time",abbr:"IDT",offset:4.5,isdst:!0,text:"(UTC+03:30) Tehran",utc:["Asia/Tehran"]},{name:"Arabian Standard Time",abbr:"AST",offset:4,isdst:!1,text:"(UTC+04:00) Abu Dhabi, Muscat",utc:["Asia/Dubai","Asia/Muscat","Etc/GMT-4"]},{name:"Azerbaijan Standard Time",abbr:"ADT",offset:5,isdst:!0,text:"(UTC+04:00) Baku",utc:["Asia/Baku"]},{name:"Mauritius Standard Time",abbr:"MST",offset:4,isdst:!1,text:"(UTC+04:00) Port Louis",utc:["Indian/Mahe","Indian/Mauritius","Indian/Reunion"]},{name:"Georgian Standard Time",abbr:"GET",offset:4,isdst:!1,text:"(UTC+04:00) Tbilisi",utc:["Asia/Tbilisi"]},{name:"Caucasus Standard Time",abbr:"CST",offset:4,isdst:!1,text:"(UTC+04:00) Yerevan",utc:["Asia/Yerevan"]},{name:"Afghanistan Standard Time",abbr:"AST",offset:4.5,isdst:!1,text:"(UTC+04:30) Kabul",utc:["Asia/Kabul"]},{name:"West Asia Standard Time",abbr:"WAST",offset:5,isdst:!1,text:"(UTC+05:00) Ashgabat, Tashkent",utc:["Antarctica/Mawson","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Dushanbe","Asia/Oral","Asia/Samarkand","Asia/Tashkent","Etc/GMT-5","Indian/Kerguelen","Indian/Maldives"]},{name:"Yekaterinburg Time",abbr:"YEKT",offset:5,isdst:!1,text:"(UTC+05:00) Yekaterinburg",utc:["Asia/Yekaterinburg"]},{name:"Pakistan Standard Time",abbr:"PKT",offset:5,isdst:!1,text:"(UTC+05:00) Islamabad, Karachi",utc:["Asia/Karachi"]},{name:"India Standard Time",abbr:"IST",offset:5.5,isdst:!1,text:"(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",utc:["Asia/Kolkata"]},{name:"Sri Lanka Standard Time",abbr:"SLST",offset:5.5,isdst:!1,text:"(UTC+05:30) Sri Jayawardenepura",utc:["Asia/Colombo"]},{name:"Nepal Standard Time",abbr:"NST",offset:5.75,isdst:!1,text:"(UTC+05:45) Kathmandu",utc:["Asia/Kathmandu"]},{name:"Central Asia Standard Time",abbr:"CAST",offset:6,isdst:!1,text:"(UTC+06:00) Nur-Sultan (Astana)",utc:["Antarctica/Vostok","Asia/Almaty","Asia/Bishkek","Asia/Qyzylorda","Asia/Urumqi","Etc/GMT-6","Indian/Chagos"]},{name:"Bangladesh Standard Time",abbr:"BST",offset:6,isdst:!1,text:"(UTC+06:00) Dhaka",utc:["Asia/Dhaka","Asia/Thimphu"]},{name:"Myanmar Standard Time",abbr:"MST",offset:6.5,isdst:!1,text:"(UTC+06:30) Yangon (Rangoon)",utc:["Asia/Rangoon","Indian/Cocos"]},{name:"SE Asia Standard Time",abbr:"SAST",offset:7,isdst:!1,text:"(UTC+07:00) Bangkok, Hanoi, Jakarta",utc:["Antarctica/Davis","Asia/Bangkok","Asia/Hovd","Asia/Jakarta","Asia/Phnom_Penh","Asia/Pontianak","Asia/Saigon","Asia/Vientiane","Etc/GMT-7","Indian/Christmas"]},{name:"N. Central Asia Standard Time",abbr:"NCAST",offset:7,isdst:!1,text:"(UTC+07:00) Novosibirsk",utc:["Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk"]},{name:"China Standard Time",abbr:"CST",offset:8,isdst:!1,text:"(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",utc:["Asia/Hong_Kong","Asia/Macau","Asia/Shanghai"]},{name:"North Asia Standard Time",abbr:"NAST",offset:8,isdst:!1,text:"(UTC+08:00) Krasnoyarsk",utc:["Asia/Krasnoyarsk"]},{name:"Singapore Standard Time",abbr:"MPST",offset:8,isdst:!1,text:"(UTC+08:00) Kuala Lumpur, Singapore",utc:["Asia/Brunei","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Makassar","Asia/Manila","Asia/Singapore","Etc/GMT-8"]},{name:"W. Australia Standard Time",abbr:"WAST",offset:8,isdst:!1,text:"(UTC+08:00) Perth",utc:["Antarctica/Casey","Australia/Perth"]},{name:"Taipei Standard Time",abbr:"TST",offset:8,isdst:!1,text:"(UTC+08:00) Taipei",utc:["Asia/Taipei"]},{name:"Ulaanbaatar Standard Time",abbr:"UST",offset:8,isdst:!1,text:"(UTC+08:00) Ulaanbaatar",utc:["Asia/Choibalsan","Asia/Ulaanbaatar"]},{name:"North Asia East Standard Time",abbr:"NAEST",offset:8,isdst:!1,text:"(UTC+08:00) Irkutsk",utc:["Asia/Irkutsk"]},{name:"Japan Standard Time",abbr:"JST",offset:9,isdst:!1,text:"(UTC+09:00) Osaka, Sapporo, Tokyo",utc:["Asia/Dili","Asia/Jayapura","Asia/Tokyo","Etc/GMT-9","Pacific/Palau"]},{name:"Korea Standard Time",abbr:"KST",offset:9,isdst:!1,text:"(UTC+09:00) Seoul",utc:["Asia/Pyongyang","Asia/Seoul"]},{name:"Cen. Australia Standard Time",abbr:"CAST",offset:9.5,isdst:!1,text:"(UTC+09:30) Adelaide",utc:["Australia/Adelaide","Australia/Broken_Hill"]},{name:"AUS Central Standard Time",abbr:"ACST",offset:9.5,isdst:!1,text:"(UTC+09:30) Darwin",utc:["Australia/Darwin"]},{name:"E. Australia Standard Time",abbr:"EAST",offset:10,isdst:!1,text:"(UTC+10:00) Brisbane",utc:["Australia/Brisbane","Australia/Lindeman"]},{name:"AUS Eastern Standard Time",abbr:"AEST",offset:10,isdst:!1,text:"(UTC+10:00) Canberra, Melbourne, Sydney",utc:["Australia/Melbourne","Australia/Sydney"]},{name:"West Pacific Standard Time",abbr:"WPST",offset:10,isdst:!1,text:"(UTC+10:00) Guam, Port Moresby",utc:["Antarctica/DumontDUrville","Etc/GMT-10","Pacific/Guam","Pacific/Port_Moresby","Pacific/Saipan","Pacific/Truk"]},{name:"Tasmania Standard Time",abbr:"TST",offset:10,isdst:!1,text:"(UTC+10:00) Hobart",utc:["Australia/Currie","Australia/Hobart"]},{name:"Yakutsk Standard Time",abbr:"YST",offset:9,isdst:!1,text:"(UTC+09:00) Yakutsk",utc:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},{name:"Central Pacific Standard Time",abbr:"CPST",offset:11,isdst:!1,text:"(UTC+11:00) Solomon Is., New Caledonia",utc:["Antarctica/Macquarie","Etc/GMT-11","Pacific/Efate","Pacific/Guadalcanal","Pacific/Kosrae","Pacific/Noumea","Pacific/Ponape"]},{name:"Vladivostok Standard Time",abbr:"VST",offset:11,isdst:!1,text:"(UTC+11:00) Vladivostok",utc:["Asia/Sakhalin","Asia/Ust-Nera","Asia/Vladivostok"]},{name:"New Zealand Standard Time",abbr:"NZST",offset:12,isdst:!1,text:"(UTC+12:00) Auckland, Wellington",utc:["Antarctica/McMurdo","Pacific/Auckland"]},{name:"UTC+12",abbr:"U",offset:12,isdst:!1,text:"(UTC+12:00) Coordinated Universal Time+12",utc:["Etc/GMT-12","Pacific/Funafuti","Pacific/Kwajalein","Pacific/Majuro","Pacific/Nauru","Pacific/Tarawa","Pacific/Wake","Pacific/Wallis"]},{name:"Fiji Standard Time",abbr:"FST",offset:12,isdst:!1,text:"(UTC+12:00) Fiji",utc:["Pacific/Fiji"]},{name:"Magadan Standard Time",abbr:"MST",offset:12,isdst:!1,text:"(UTC+12:00) Magadan",utc:["Asia/Anadyr","Asia/Kamchatka","Asia/Magadan","Asia/Srednekolymsk"]},{name:"Kamchatka Standard Time",abbr:"KDT",offset:13,isdst:!0,text:"(UTC+12:00) Petropavlovsk-Kamchatsky - Old",utc:["Asia/Kamchatka"]},{name:"Tonga Standard Time",abbr:"TST",offset:13,isdst:!1,text:"(UTC+13:00) Nuku'alofa",utc:["Etc/GMT-13","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Tongatapu"]},{name:"Samoa Standard Time",abbr:"SST",offset:13,isdst:!1,text:"(UTC+13:00) Samoa",utc:["Pacific/Apia"]}],profession:["Airline Pilot","Academic Team","Accountant","Account Executive","Actor","Actuary","Acquisition Analyst","Administrative Asst.","Administrative Analyst","Administrator","Advertising Director","Aerospace Engineer","Agent","Agricultural Inspector","Agricultural Scientist","Air Traffic Controller","Animal Trainer","Anthropologist","Appraiser","Architect","Art Director","Artist","Astronomer","Athletic Coach","Auditor","Author","Baker","Banker","Bankruptcy Attorney","Benefits Manager","Biologist","Bio-feedback Specialist","Biomedical Engineer","Biotechnical Researcher","Broadcaster","Broker","Building Manager","Building Contractor","Building Inspector","Business Analyst","Business Planner","Business Manager","Buyer","Call Center Manager","Career Counselor","Cash Manager","Ceramic Engineer","Chief Executive Officer","Chief Operation Officer","Chef","Chemical Engineer","Chemist","Child Care Manager","Chief Medical Officer","Chiropractor","Cinematographer","City Housing Manager","City Manager","Civil Engineer","Claims Manager","Clinical Research Assistant","Collections Manager","Compliance Manager","Comptroller","Computer Manager","Commercial Artist","Communications Affairs Director","Communications Director","Communications Engineer","Compensation Analyst","Computer Programmer","Computer Ops. Manager","Computer Engineer","Computer Operator","Computer Graphics Specialist","Construction Engineer","Construction Manager","Consultant","Consumer Relations Manager","Contract Administrator","Copyright Attorney","Copywriter","Corporate Planner","Corrections Officer","Cosmetologist","Credit Analyst","Cruise Director","Chief Information Officer","Chief Technology Officer","Customer Service Manager","Cryptologist","Dancer","Data Security Manager","Database Manager","Day Care Instructor","Dentist","Designer","Design Engineer","Desktop Publisher","Developer","Development Officer","Diamond Merchant","Dietitian","Direct Marketer","Director","Distribution Manager","Diversity Manager","Economist","EEO Compliance Manager","Editor","Education Adminator","Electrical Engineer","Electro Optical Engineer","Electronics Engineer","Embassy Management","Employment Agent","Engineer Technician","Entrepreneur","Environmental Analyst","Environmental Attorney","Environmental Engineer","Environmental Specialist","Escrow Officer","Estimator","Executive Assistant","Executive Director","Executive Recruiter","Facilities Manager","Family Counselor","Fashion Events Manager","Fashion Merchandiser","Fast Food Manager","Film Producer","Film Production Assistant","Financial Analyst","Financial Planner","Financier","Fine Artist","Wildlife Specialist","Fitness Consultant","Flight Attendant","Flight Engineer","Floral Designer","Food & Beverage Director","Food Service Manager","Forestry Technician","Franchise Management","Franchise Sales","Fraud Investigator","Freelance Writer","Fund Raiser","General Manager","Geologist","General Counsel","Geriatric Specialist","Gerontologist","Glamour Photographer","Golf Club Manager","Gourmet Chef","Graphic Designer","Grounds Keeper","Hazardous Waste Manager","Health Care Manager","Health Therapist","Health Service Administrator","Hearing Officer","Home Economist","Horticulturist","Hospital Administrator","Hotel Manager","Human Resources Manager","Importer","Industrial Designer","Industrial Engineer","Information Director","Inside Sales","Insurance Adjuster","Interior Decorator","Internal Controls Director","International Acct.","International Courier","International Lawyer","Interpreter","Investigator","Investment Banker","Investment Manager","IT Architect","IT Project Manager","IT Systems Analyst","Jeweler","Joint Venture Manager","Journalist","Labor Negotiator","Labor Organizer","Labor Relations Manager","Lab Services Director","Lab Technician","Land Developer","Landscape Architect","Law Enforcement Officer","Lawyer","Lead Software Engineer","Lead Software Test Engineer","Leasing Manager","Legal Secretary","Library Manager","Litigation Attorney","Loan Officer","Lobbyist","Logistics Manager","Maintenance Manager","Management Consultant","Managed Care Director","Managing Partner","Manufacturing Director","Manpower Planner","Marine Biologist","Market Res. Analyst","Marketing Director","Materials Manager","Mathematician","Membership Chairman","Mechanic","Mechanical Engineer","Media Buyer","Medical Investor","Medical Secretary","Medical Technician","Mental Health Counselor","Merchandiser","Metallurgical Engineering","Meteorologist","Microbiologist","MIS Manager","Motion Picture Director","Multimedia Director","Musician","Network Administrator","Network Specialist","Network Operator","New Product Manager","Novelist","Nuclear Engineer","Nuclear Specialist","Nutritionist","Nursing Administrator","Occupational Therapist","Oceanographer","Office Manager","Operations Manager","Operations Research Director","Optical Technician","Optometrist","Organizational Development Manager","Outplacement Specialist","Paralegal","Park Ranger","Patent Attorney","Payroll Specialist","Personnel Specialist","Petroleum Engineer","Pharmacist","Photographer","Physical Therapist","Physician","Physician Assistant","Physicist","Planning Director","Podiatrist","Political Analyst","Political Scientist","Politician","Portfolio Manager","Preschool Management","Preschool Teacher","Principal","Private Banker","Private Investigator","Probation Officer","Process Engineer","Producer","Product Manager","Product Engineer","Production Engineer","Production Planner","Professional Athlete","Professional Coach","Professor","Project Engineer","Project Manager","Program Manager","Property Manager","Public Administrator","Public Safety Director","PR Specialist","Publisher","Purchasing Agent","Publishing Director","Quality Assurance Specialist","Quality Control Engineer","Quality Control Inspector","Radiology Manager","Railroad Engineer","Real Estate Broker","Recreational Director","Recruiter","Redevelopment Specialist","Regulatory Affairs Manager","Registered Nurse","Rehabilitation Counselor","Relocation Manager","Reporter","Research Specialist","Restaurant Manager","Retail Store Manager","Risk Analyst","Safety Engineer","Sales Engineer","Sales Trainer","Sales Promotion Manager","Sales Representative","Sales Manager","Service Manager","Sanitation Engineer","Scientific Programmer","Scientific Writer","Securities Analyst","Security Consultant","Security Director","Seminar Presenter","Ship's Officer","Singer","Social Director","Social Program Planner","Social Research","Social Scientist","Social Worker","Sociologist","Software Developer","Software Engineer","Software Test Engineer","Soil Scientist","Special Events Manager","Special Education Teacher","Special Projects Director","Speech Pathologist","Speech Writer","Sports Event Manager","Statistician","Store Manager","Strategic Alliance Director","Strategic Planning Director","Stress Reduction Specialist","Stockbroker","Surveyor","Structural Engineer","Superintendent","Supply Chain Director","System Engineer","Systems Analyst","Systems Programmer","System Administrator","Tax Specialist","Teacher","Technical Support Specialist","Technical Illustrator","Technical Writer","Technology Director","Telecom Analyst","Telemarketer","Theatrical Director","Title Examiner","Tour Escort","Tour Guide Director","Traffic Manager","Trainer Translator","Transportation Manager","Travel Agent","Treasurer","TV Programmer","Underwriter","Union Representative","University Administrator","University Dean","Urban Planner","Veterinarian","Vendor Relations Director","Viticulturist","Warehouse Manager"],animals:{ocean:["Acantharea","Anemone","Angelfish King","Ahi Tuna","Albacore","American Oyster","Anchovy","Armored Snail","Arctic Char","Atlantic Bluefin Tuna","Atlantic Cod","Atlantic Goliath Grouper","Atlantic Trumpetfish","Atlantic Wolffish","Baleen Whale","Banded Butterflyfish","Banded Coral Shrimp","Banded Sea Krait","Barnacle","Barndoor Skate","Barracuda","Basking Shark","Bass","Beluga Whale","Bluebanded Goby","Bluehead Wrasse","Bluefish","Bluestreak Cleaner-Wrasse","Blue Marlin","Blue Shark","Blue Spiny Lobster","Blue Tang","Blue Whale","Broadclub Cuttlefish","Bull Shark","Chambered Nautilus","Chilean Basket Star","Chilean Jack Mackerel","Chinook Salmon","Christmas Tree Worm","Clam","Clown Anemonefish","Clown Triggerfish","Cod","Coelacanth","Cockscomb Cup Coral","Common Fangtooth","Conch","Cookiecutter Shark","Copepod","Coral","Corydoras","Cownose Ray","Crab","Crown-of-Thorns Starfish","Cushion Star","Cuttlefish","California Sea Otters","Dolphin","Dolphinfish","Dory","Devil Fish","Dugong","Dumbo Octopus","Dungeness Crab","Eccentric Sand Dollar","Edible Sea Cucumber","Eel","Elephant Seal","Elkhorn Coral","Emperor Shrimp","Estuarine Crocodile","Fathead Sculpin","Fiddler Crab","Fin Whale","Flameback","Flamingo Tongue Snail","Flashlight Fish","Flatback Turtle","Flatfish","Flying Fish","Flounder","Fluke","French Angelfish","Frilled Shark","Fugu (also called Pufferfish)","Gar","Geoduck","Giant Barrel Sponge","Giant Caribbean Sea Anemone","Giant Clam","Giant Isopod","Giant Kingfish","Giant Oarfish","Giant Pacific Octopus","Giant Pyrosome","Giant Sea Star","Giant Squid","Glowing Sucker Octopus","Giant Tube Worm","Goblin Shark","Goosefish","Great White Shark","Greenland Shark","Grey Atlantic Seal","Grouper","Grunion","Guineafowl Puffer","Haddock","Hake","Halibut","Hammerhead Shark","Hapuka","Harbor Porpoise","Harbor Seal","Hatchetfish","Hawaiian Monk Seal","Hawksbill Turtle","Hector's Dolphin","Hermit Crab","Herring","Hoki","Horn Shark","Horseshoe Crab","Humpback Anglerfish","Humpback Whale","Icefish","Imperator Angelfish","Irukandji Jellyfish","Isopod","Ivory Bush Coral","Japanese Spider Crab","Jellyfish","John Dory","Juan Fernandez Fur Seal","Killer Whale","Kiwa Hirsuta","Krill","Lagoon Triggerfish","Lamprey","Leafy Seadragon","Leopard Seal","Limpet","Ling","Lionfish","Lions Mane Jellyfish","Lobe Coral","Lobster","Loggerhead Turtle","Longnose Sawshark","Longsnout Seahorse","Lophelia Coral","Marrus Orthocanna","Manatee","Manta Ray","Marlin","Megamouth Shark","Mexican Lookdown","Mimic Octopus","Moon Jelly","Mollusk","Monkfish","Moray Eel","Mullet","Mussel","Megaladon","Napoleon Wrasse","Nassau Grouper","Narwhal","Nautilus","Needlefish","Northern Seahorse","North Atlantic Right Whale","Northern Red Snapper","Norway Lobster","Nudibranch","Nurse Shark","Oarfish","Ocean Sunfish","Oceanic Whitetip Shark","Octopus","Olive Sea Snake","Orange Roughy","Ostracod","Otter","Oyster","Pacific Angelshark","Pacific Blackdragon","Pacific Halibut","Pacific Sardine","Pacific Sea Nettle Jellyfish","Pacific White Sided Dolphin","Pantropical Spotted Dolphin","Patagonian Toothfish","Peacock Mantis Shrimp","Pelagic Thresher Shark","Penguin","Peruvian Anchoveta","Pilchard","Pink Salmon","Pinniped","Plankton","Porpoise","Polar Bear","Portuguese Man o' War","Pycnogonid Sea Spider","Quahog","Queen Angelfish","Queen Conch","Queen Parrotfish","Queensland Grouper","Ragfish","Ratfish","Rattail Fish","Ray","Red Drum","Red King Crab","Ringed Seal","Risso's Dolphin","Ross Seals","Sablefish","Salmon","Sand Dollar","Sandbar Shark","Sawfish","Sarcastic Fringehead","Scalloped Hammerhead Shark","Seahorse","Sea Cucumber","Sea Lion","Sea Urchin","Seal","Shark","Shortfin Mako Shark","Shovelnose Guitarfish","Shrimp","Silverside Fish","Skipjack Tuna","Slender Snipe Eel","Smalltooth Sawfish","Smelts","Sockeye Salmon","Southern Stingray","Sponge","Spotted Porcupinefish","Spotted Dolphin","Spotted Eagle Ray","Spotted Moray","Squid","Squidworm","Starfish","Stickleback","Stonefish","Stoplight Loosejaw","Sturgeon","Swordfish","Tan Bristlemouth","Tasseled Wobbegong","Terrible Claw Lobster","Threespot Damselfish","Tiger Prawn","Tiger Shark","Tilefish","Toadfish","Tropical Two-Wing Flyfish","Tuna","Umbrella Squid","Velvet Crab","Venus Flytrap Sea Anemone","Vigtorniella Worm","Viperfish","Vampire Squid","Vaquita","Wahoo","Walrus","West Indian Manatee","Whale","Whale Shark","Whiptail Gulper","White-Beaked Dolphin","White-Ring Garden Eel","White Shrimp","Wobbegong","Wrasse","Wreckfish","Xiphosura","Yellowtail Damselfish","Yelloweye Rockfish","Yellow Cup Black Coral","Yellow Tube Sponge","Yellowfin Tuna","Zebrashark","Zooplankton"],desert:["Aardwolf","Addax","African Wild Ass","Ant","Antelope","Armadillo","Baboon","Badger","Bat","Bearded Dragon","Beetle","Bird","Black-footed Cat","Boa","Brown Bear","Bustard","Butterfly","Camel","Caracal","Caracara","Caterpillar","Centipede","Cheetah","Chipmunk","Chuckwalla","Climbing Mouse","Coati","Cobra","Cotton Rat","Cougar","Courser","Crane Fly","Crow","Dassie Rat","Dove","Dunnart","Eagle","Echidna","Elephant","Emu","Falcon","Fly","Fox","Frogmouth","Gecko","Geoffroy's Cat","Gerbil","Grasshopper","Guanaco","Gundi","Hamster","Hawk","Hedgehog","Hyena","Hyrax","Jackal","Kangaroo","Kangaroo Rat","Kestrel","Kowari","Kultarr","Leopard","Lion","Macaw","Meerkat","Mouse","Oryx","Ostrich","Owl","Pronghorn","Python","Rabbit","Raccoon","Rattlesnake","Rhinoceros","Sand Cat","Spectacled Bear","Spiny Mouse","Starling","Stick Bug","Tarantula","Tit","Toad","Tortoise","Tyrant Flycatcher","Viper","Vulture","Waxwing","Xerus","Zebra"],grassland:["Aardvark","Aardwolf","Accentor","African Buffalo","African Wild Dog","Alpaca","Anaconda","Ant","Anteater","Antelope","Armadillo","Baboon","Badger","Bandicoot","Barbet","Bat","Bee","Bee-eater","Beetle","Bird","Bison","Black-footed Cat","Black-footed Ferret","Bluebird","Boa","Bowerbird","Brown Bear","Bush Dog","Bushshrike","Bustard","Butterfly","Buzzard","Caracal","Caracara","Cardinal","Caterpillar","Cheetah","Chipmunk","Civet","Climbing Mouse","Clouded Leopard","Coati","Cobra","Cockatoo","Cockroach","Common Genet","Cotton Rat","Cougar","Courser","Coyote","Crane","Crane Fly","Cricket","Crow","Culpeo","Death Adder","Deer","Deer Mouse","Dingo","Dinosaur","Dove","Drongo","Duck","Duiker","Dunnart","Eagle","Echidna","Elephant","Elk","Emu","Falcon","Finch","Flea","Fly","Flying Frog","Fox","Frog","Frogmouth","Garter Snake","Gazelle","Gecko","Geoffroy's Cat","Gerbil","Giant Tortoise","Giraffe","Grasshopper","Grison","Groundhog","Grouse","Guanaco","Guinea Pig","Hamster","Harrier","Hartebeest","Hawk","Hedgehog","Helmetshrike","Hippopotamus","Hornbill","Hyena","Hyrax","Impala","Jackal","Jaguar","Jaguarundi","Kangaroo","Kangaroo Rat","Kestrel","Kultarr","Ladybug","Leopard","Lion","Macaw","Meerkat","Mouse","Newt","Oryx","Ostrich","Owl","Pangolin","Pheasant","Prairie Dog","Pronghorn","Przewalski's Horse","Python","Quoll","Rabbit","Raven","Rhinoceros","Shelduck","Sloth Bear","Spectacled Bear","Squirrel","Starling","Stick Bug","Tamandua","Tasmanian Devil","Thornbill","Thrush","Toad","Tortoise"],forest:["Agouti","Anaconda","Anoa","Ant","Anteater","Antelope","Armadillo","Asian Black Bear","Aye-aye","Babirusa","Baboon","Badger","Bandicoot","Banteng","Barbet","Basilisk","Bat","Bearded Dragon","Bee","Bee-eater","Beetle","Bettong","Binturong","Bird-of-paradise","Bongo","Bowerbird","Bulbul","Bush Dog","Bushbaby","Bushshrike","Butterfly","Buzzard","Caecilian","Cardinal","Cassowary","Caterpillar","Centipede","Chameleon","Chimpanzee","Cicada","Civet","Clouded Leopard","Coati","Cobra","Cockatoo","Cockroach","Colugo","Cotinga","Cotton Rat","Cougar","Crane Fly","Cricket","Crocodile","Crow","Cuckoo","Cuscus","Death Adder","Deer","Dhole","Dingo","Dinosaur","Drongo","Duck","Duiker","Eagle","Echidna","Elephant","Finch","Flat-headed Cat","Flea","Flowerpecker","Fly","Flying Frog","Fossa","Frog","Frogmouth","Gaur","Gecko","Gorilla","Grison","Hawaiian Honeycreeper","Hawk","Hedgehog","Helmetshrike","Hornbill","Hyrax","Iguana","Jackal","Jaguar","Jaguarundi","Kestrel","Ladybug","Lemur","Leopard","Lion","Macaw","Mandrill","Margay","Monkey","Mouse","Mouse Deer","Newt","Okapi","Old World Flycatcher","Orangutan","Owl","Pangolin","Peafowl","Pheasant","Possum","Python","Quokka","Rabbit","Raccoon","Red Panda","Red River Hog","Rhinoceros","Sloth Bear","Spectacled Bear","Squirrel","Starling","Stick Bug","Sun Bear","Tamandua","Tamarin","Tapir","Tarantula","Thrush","Tiger","Tit","Toad","Tortoise","Toucan","Trogon","Trumpeter","Turaco","Turtle","Tyrant Flycatcher","Viper","Vulture","Wallaby","Warbler","Wasp","Waxwing","Weaver","Weaver-finch","Whistler","White-eye","Whydah","Woodswallow","Worm","Wren","Xenops","Yellowjacket","Accentor","African Buffalo","American Black Bear","Anole","Bird","Bison","Boa","Brown Bear","Chipmunk","Common Genet","Copperhead","Coyote","Deer Mouse","Dormouse","Elk","Emu","Fisher","Fox","Garter Snake","Giant Panda","Giant Tortoise","Groundhog","Grouse","Guanaco","Himalayan Tahr","Kangaroo","Koala","Numbat","Quoll","Raccoon dog","Tasmanian Devil","Thornbill","Turkey","Vole","Weasel","Wildcat","Wolf","Wombat","Woodchuck","Woodpecker"],farm:["Alpaca","Buffalo","Banteng","Cow","Cat","Chicken","Carp","Camel","Donkey","Dog","Duck","Emu","Goat","Gayal","Guinea","Goose","Horse","Honey","Llama","Pig","Pigeon","Rhea","Rabbit","Sheep","Silkworm","Turkey","Yak","Zebu"],pet:["Bearded Dragon","Birds","Burro","Cats","Chameleons","Chickens","Chinchillas","Chinese Water Dragon","Cows","Dogs","Donkey","Ducks","Ferrets","Fish","Geckos","Geese","Gerbils","Goats","Guinea Fowl","Guinea Pigs","Hamsters","Hedgehogs","Horses","Iguanas","Llamas","Lizards","Mice","Mule","Peafowl","Pigs and Hogs","Pigeons","Ponies","Pot Bellied Pig","Rabbits","Rats","Sheep","Skinks","Snakes","Stick Insects","Sugar Gliders","Tarantula","Turkeys","Turtles"],zoo:["Aardvark","African Wild Dog","Aldabra Tortoise","American Alligator","American Bison","Amur Tiger","Anaconda","Andean Condor","Asian Elephant","Baby Doll Sheep","Bald Eagle","Barred Owl","Blue Iguana","Boer Goat","California Sea Lion","Caribbean Flamingo","Chinchilla","Collared Lemur","Coquerel's Sifaka","Cuban Amazon Parrot","Ebony Langur","Fennec Fox","Fossa","Gelada","Giant Anteater","Giraffe","Gorilla","Grizzly Bear","Henkel's Leaf-tailed Gecko","Indian Gharial","Indian Rhinoceros","King Cobra","King Vulture","Komodo Dragon","Linne's Two-toed Sloth","Lion","Little Penguin","Madagascar Tree Boa","Magellanic Penguin","Malayan Tapir","Malayan Tiger","Matschies Tree Kangaroo","Mini Donkey","Monarch Butterfly","Nile crocodile","North American Porcupine","Nubian Ibex","Okapi","Poison Dart Frog","Polar Bear","Pygmy Marmoset","Radiated Tortoise","Red Panda","Red Ruffed Lemur","Ring-tailed Lemur","Ring-tailed Mongoose","Rock Hyrax","Small Clawed Asian Otter","Snow Leopard","Snowy Owl","Southern White-faced Owl","Southern White Rhinocerous","Squirrel Monkey","Tufted Puffin","White Cheeked Gibbon","White-throated Bee Eater","Zebra"]},primes:[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999,3001,3011,3019,3023,3037,3041,3049,3061,3067,3079,3083,3089,3109,3119,3121,3137,3163,3167,3169,3181,3187,3191,3203,3209,3217,3221,3229,3251,3253,3257,3259,3271,3299,3301,3307,3313,3319,3323,3329,3331,3343,3347,3359,3361,3371,3373,3389,3391,3407,3413,3433,3449,3457,3461,3463,3467,3469,3491,3499,3511,3517,3527,3529,3533,3539,3541,3547,3557,3559,3571,3581,3583,3593,3607,3613,3617,3623,3631,3637,3643,3659,3671,3673,3677,3691,3697,3701,3709,3719,3727,3733,3739,3761,3767,3769,3779,3793,3797,3803,3821,3823,3833,3847,3851,3853,3863,3877,3881,3889,3907,3911,3917,3919,3923,3929,3931,3943,3947,3967,3989,4001,4003,4007,4013,4019,4021,4027,4049,4051,4057,4073,4079,4091,4093,4099,4111,4127,4129,4133,4139,4153,4157,4159,4177,4201,4211,4217,4219,4229,4231,4241,4243,4253,4259,4261,4271,4273,4283,4289,4297,4327,4337,4339,4349,4357,4363,4373,4391,4397,4409,4421,4423,4441,4447,4451,4457,4463,4481,4483,4493,4507,4513,4517,4519,4523,4547,4549,4561,4567,4583,4591,4597,4603,4621,4637,4639,4643,4649,4651,4657,4663,4673,4679,4691,4703,4721,4723,4729,4733,4751,4759,4783,4787,4789,4793,4799,4801,4813,4817,4831,4861,4871,4877,4889,4903,4909,4919,4931,4933,4937,4943,4951,4957,4967,4969,4973,4987,4993,4999,5003,5009,5011,5021,5023,5039,5051,5059,5077,5081,5087,5099,5101,5107,5113,5119,5147,5153,5167,5171,5179,5189,5197,5209,5227,5231,5233,5237,5261,5273,5279,5281,5297,5303,5309,5323,5333,5347,5351,5381,5387,5393,5399,5407,5413,5417,5419,5431,5437,5441,5443,5449,5471,5477,5479,5483,5501,5503,5507,5519,5521,5527,5531,5557,5563,5569,5573,5581,5591,5623,5639,5641,5647,5651,5653,5657,5659,5669,5683,5689,5693,5701,5711,5717,5737,5741,5743,5749,5779,5783,5791,5801,5807,5813,5821,5827,5839,5843,5849,5851,5857,5861,5867,5869,5879,5881,5897,5903,5923,5927,5939,5953,5981,5987,6007,6011,6029,6037,6043,6047,6053,6067,6073,6079,6089,6091,6101,6113,6121,6131,6133,6143,6151,6163,6173,6197,6199,6203,6211,6217,6221,6229,6247,6257,6263,6269,6271,6277,6287,6299,6301,6311,6317,6323,6329,6337,6343,6353,6359,6361,6367,6373,6379,6389,6397,6421,6427,6449,6451,6469,6473,6481,6491,6521,6529,6547,6551,6553,6563,6569,6571,6577,6581,6599,6607,6619,6637,6653,6659,6661,6673,6679,6689,6691,6701,6703,6709,6719,6733,6737,6761,6763,6779,6781,6791,6793,6803,6823,6827,6829,6833,6841,6857,6863,6869,6871,6883,6899,6907,6911,6917,6947,6949,6959,6961,6967,6971,6977,6983,6991,6997,7001,7013,7019,7027,7039,7043,7057,7069,7079,7103,7109,7121,7127,7129,7151,7159,7177,7187,7193,7207,7211,7213,7219,7229,7237,7243,7247,7253,7283,7297,7307,7309,7321,7331,7333,7349,7351,7369,7393,7411,7417,7433,7451,7457,7459,7477,7481,7487,7489,7499,7507,7517,7523,7529,7537,7541,7547,7549,7559,7561,7573,7577,7583,7589,7591,7603,7607,7621,7639,7643,7649,7669,7673,7681,7687,7691,7699,7703,7717,7723,7727,7741,7753,7757,7759,7789,7793,7817,7823,7829,7841,7853,7867,7873,7877,7879,7883,7901,7907,7919,7927,7933,7937,7949,7951,7963,7993,8009,8011,8017,8039,8053,8059,8069,8081,8087,8089,8093,8101,8111,8117,8123,8147,8161,8167,8171,8179,8191,8209,8219,8221,8231,8233,8237,8243,8263,8269,8273,8287,8291,8293,8297,8311,8317,8329,8353,8363,8369,8377,8387,8389,8419,8423,8429,8431,8443,8447,8461,8467,8501,8513,8521,8527,8537,8539,8543,8563,8573,8581,8597,8599,8609,8623,8627,8629,8641,8647,8663,8669,8677,8681,8689,8693,8699,8707,8713,8719,8731,8737,8741,8747,8753,8761,8779,8783,8803,8807,8819,8821,8831,8837,8839,8849,8861,8863,8867,8887,8893,8923,8929,8933,8941,8951,8963,8969,8971,8999,9001,9007,9011,9013,9029,9041,9043,9049,9059,9067,9091,9103,9109,9127,9133,9137,9151,9157,9161,9173,9181,9187,9199,9203,9209,9221,9227,9239,9241,9257,9277,9281,9283,9293,9311,9319,9323,9337,9341,9343,9349,9371,9377,9391,9397,9403,9413,9419,9421,9431,9433,9437,9439,9461,9463,9467,9473,9479,9491,9497,9511,9521,9533,9539,9547,9551,9587,9601,9613,9619,9623,9629,9631,9643,9649,9661,9677,9679,9689,9697,9719,9721,9733,9739,9743,9749,9767,9769,9781,9787,9791,9803,9811,9817,9829,9833,9839,9851,9857,9859,9871,9883,9887,9901,9907,9923,9929,9931,9941,9949,9967,9973,10007],emotions:["love","joy","surprise","anger","sadness","fear"],music_genres:{general:["Rock","Pop","Hip-Hop","Jazz","Classical","Electronic","Country","R&B","Reggae","Blues","Metal","Folk","Alternative","Punk","Disco","Funk","Techno","Indie","Gospel","Dance","Children's","World"],alternative:["Art Punk","Alternative Rock","Britpunk","College Rock","Crossover Thrash","Crust Punk","Emo / Emocore","Experimental Rock","Folk Punk","Goth / Gothic Rock","Grunge","Hardcore Punk","Hard Rock","Indie Rock","Lo-fi","Musique Concr\xE8te","New Wave","Progressive Rock","Punk","Shoegaze","Steampunk"],blues:["Acoustic Blues","African Blues","Blues Rock","Blues Shouter","British Blues","Canadian Blues","Chicago Blues","Classic Blues","Classic Female Blues","Contemporary Blues","Country Blues","Dark Blues","Delta Blues","Detroit Blues","Doom Blues","Electric Blues","Folk Blues","Gospel Blues","Harmonica Blues","Hill Country Blues","Hokum Blues","Jazz Blues","Jump Blues","Kansas City Blues","Louisiana Blues","Memphis Blues","Modern Blues","New Orlean Blues","NY Blues","Piano Blues","Piedmont Blues","Punk Blues","Ragtime Blues","Rhythm Blues","Soul Blues","St.Louis Blues","Soul Blues","Swamp Blues","Texas Blues","Urban Blues","Vandeville","West Coast Blues"],"children's":["Lullabies","Sing - Along","Stories"],classical:["Avant-Garde","Ballet","Baroque","Cantata","Chamber Music","String Quartet","Chant","Choral","Classical Crossover","Concerto","Concerto Grosso","Contemporary Classical","Early Music","Expressionist","High Classical","Impressionist","Mass Requiem","Medieval","Minimalism","Modern Composition","Modern Classical","Opera","Oratorio","Orchestral","Organum","Renaissance","Romantic (early period)","Romantic (later period)","Sonata","Symphonic","Symphony","Twelve-tone","Wedding Music"],country:["Alternative Country","Americana","Australian Country","Bakersfield Sound","Bluegrass","Blues Country","Cajun Fiddle Tunes","Christian Country","Classic Country","Close Harmony","Contemporary Bluegrass","Contemporary Country","Country Gospel","Country Pop","Country Rap","Country Rock","Country Soul","Cowboy / Western","Cowpunk","Dansband","Honky Tonk","Franco-Country","Gulf and Western","Hellbilly Music","Honky Tonk","Instrumental Country","Lubbock Sound","Nashville Sound","Neotraditional Country","Outlaw Country","Progressive","Psychobilly / Punkabilly","Red Dirt","Sertanejo","Texas County","Traditional Bluegrass","Traditional Country","Truck-Driving Country","Urban Cowboy","Western Swing"],dance:["Club / Club Dance","Breakcore","Breakbeat / Breakstep","Chillstep","Deep House","Dubstep","Dancehall","Electro House","Electroswing","Exercise","Future Garage","Garage","Glitch Hop","Glitch Pop","Grime","Hardcore","Hard Dance","Hi-NRG / Eurodance","Horrorcore","House","Jackin House","Jungle / Drum n bass","Liquid Dub","Regstep","Speedcore","Techno","Trance","Trap"],electronic:["2-Step","8bit","Ambient","Asian Underground","Bassline","Chillwave","Chiptune","Crunk","Downtempo","Drum & Bass","Hard Step","Electro","Electro-swing","Electroacoustic","Electronica","Electronic Rock","Eurodance","Hardstyle","Hi-Nrg","IDM/Experimental","Industrial","Trip Hop","Vaporwave","UK Garage","House","Dubstep","Deep House","EDM","Future Bass","Psychedelic trance"],jazz:["Acid Jazz","Afro-Cuban Jazz","Avant-Garde Jazz","Bebop","Big Band","Blue Note","British Dance Band (Jazz)","Cape Jazz","Chamber Jazz","Contemporary Jazz","Continental Jazz","Cool Jazz","Crossover Jazz","Dark Jazz","Dixieland","Early Jazz","Electro Swing (Jazz)","Ethio-jazz","Ethno-Jazz","European Free Jazz","Free Funk (Avant-Garde / Funk Jazz)","Free Jazz","Fusion","Gypsy Jazz","Hard Bop","Indo Jazz","Jazz Blues","Jazz-Funk (see Free Funk)","Jazz-Fusion","Jazz Rap","Jazz Rock","Kansas City Jazz","Latin Jazz","M-Base Jazz","Mainstream Jazz","Modal Jazz","Neo-Bop","Neo-Swing","Nu Jazz","Orchestral Jazz","Post-Bop","Punk Jazz","Ragtime","Ska Jazz","Skiffle (also Folk)","Smooth Jazz","Soul Jazz","Swing Jazz","Straight-Ahead Jazz","Trad Jazz","Third Stream","Jazz-Funk","Free Jazz","West Coast Jazz"],metal:["Heavy Metal","Speed Metal","Thrash Metal","Power Metal","Death Metal","Black Metal","Pagan Metal","Viking Metal","Folk Metal","Symphonic Metal","Gothic Metal","Glam Metal","Hair Metal","Doom Metal","Groove Metal","Industrial Metal","Modern Metal","Neoclassical Metal","New Wave Of British Heavy Metal","Post Metal","Progressive Metal","Avantgarde Metal","Sludge","Djent","Drone","Kawaii Metal","Pirate Metal","Nu Metal","Neue Deutsche H\xE4rte","Math Metal","Crossover","Grindcore","Hardcore","Metalcore","Deathcore","Post Hardcore","Mathcore"],folk:["American Folk Revival","Anti - Folk","British Folk Revival","Contemporary Folk","Filk Music","Freak Folk","Indie Folk","Industrial Folk","Neofolk","Progressive Folk","Psychedelic Folk","Sung Poetry","Techno - Folk","Folk Rock","Old-time Music","Bluegrass","Appalachian","Roots Revival","Celtic","Indie Folk"],pop:["Adult Contemporary","Arab Pop","Baroque","Britpop","Bubblegum Pop","Chamber Pop","Chanson","Christian Pop","Classical Crossover","Europop","Austropop","Balkan Pop","French Pop","Korean Pop","Japanese Pop","Chinese Pop","Latin Pop","La\xEFk\xF3","Nederpop","Russian Pop","Dance Pop","Dream Pop","Electro Pop","Iranian Pop","Jangle Pop","Latin Ballad","Levenslied","Louisiana Swamp Pop","Mexican Pop","Motorpop","New Romanticism","Orchestral Pop","Pop Rap","Popera","Pop / Rock","Pop Punk","Power Pop","Psychedelic Pop","Russian Pop","Schlager","Soft Rock","Sophisti - Pop","Space Age Pop","Sunshine Pop","Surf Pop","Synthpop","Teen Pop","Traditional Pop Music","Turkish Pop","Vispop","Wonky Pop"],"r&b":["(Carolina) Beach Music","Contemporary R & B","Disco","Doo Wop","Funk","Modern Soul","Motown","Neo - Soul","Northern Soul","Psychedelic Soul","Quiet Storm","Soul","Soul Blues","Southern Soul"],reggae:["2 - Tone","Dub","Roots Reggae","Reggae Fusion","Reggae en Espa\xF1ol","Spanish Reggae","Reggae 110","Reggae Bultr\xF3n","Romantic Flow","Lovers Rock","Raggamuffin","Ragga","Dancehall","Ska"],rock:["Acid Rock","Adult - Oriented Rock","Afro Punk","Adult Alternative","Alternative Rock","American Traditional Rock","Anatolian Rock","Arena Rock","Art Rock","Blues - Rock","British Invasion","Cock Rock","Death Metal / Black Metal","Doom Metal","Glam Rock","Gothic Metal","Grind Core","Hair Metal","Hard Rock","Math Metal","Math Rock","Metal","Metal Core","Noise Rock","Jam Bands","Post Punk","Post Rock","Prog - Rock / Art Rock","Progressive Metal","Psychedelic","Rock & Roll","Rockabilly","Roots Rock","Singer / Songwriter","Southern Rock","Spazzcore","Stoner Metal","Surf","Technical Death Metal","Tex - Mex","Thrash Metal","Time Lord Rock(Trock)","Trip - hop","Yacht Rock","School House Rock"],"hip-hop":["Alternative Rap","Avant - Garde","Bounce","Chap Hop","Christian Hip Hop","Conscious Hip Hop","Country - Rap","Grunk","Crunkcore","Cumbia Rap","Dirty South","East Coast","Brick City Club","Hardcore Hip Hop","Mafioso Rap","New Jersey Hip Hop","Freestyle Rap","G - Funk","Gangsta Rap","Golden Age","Grime","Hardcore Rap","Hip - Hop","Hip Pop","Horrorcore","Hyphy","Industrial Hip Hop","Instrumental Hip Hop","Jazz Rap","Latin Rap","Low Bap","Lyrical Hip Hop","Merenrap","Midwest Hip Hop","Chicago Hip Hop","Detroit Hip Hop","Horrorcore","St.Louis Hip Hop","Twin Cities Hip Hop","Motswako","Nerdcore","New Jack Swing","New School Hip Hop","Old School Rap","Rap","Trap","Turntablism","Underground Rap","West Coast Rap","East Coast Rap","Trap","UK Grime","Hyphy","Emo-rap","Cloud rap","G-funk","Boom Bap","Mumble","Drill","UK Drill","Soundcloud Rap","Lo-fi"],punk:["Afro-punk","Anarcho punk","Art punk","Christian punk","Crust punk","Deathrock","Egg punk","Garage punk","Glam punk","Hardcore punk","Horror punk","Incelcore/e-punk","Oi!","Peace punk","Punk pathetique","Queercore","Riot Grrrl","Skate punk","Street punk","Taqwacore","Trallpunk"],disco:["Nu-disco","Disco-funk","Hi-NRG","Italo Disco","Eurodisco","Boogie","Space Disco","Post-disco","Electro Disco","Disco House","Disco Pop","Soulful House"],funk:["Funk Rock","P-Funk (Parliament-Funkadelic)","Psychedelic Funk","Funk Metal","Electro-Funk","Go-go","Boogie-Funk","Jazz-Funk","Soul-Funk","Funky Disco","Nu-Funk","Afrobeat","Latin Funk","G-Funk","Acid Jazz","Funktronica","Folk-Funk","Space Funk","Ambient Funk","Hard Funk","Fusion Funk"],techno:["Acid Techno","Ambient Techno","Detroit Techno","Dub Techno","Minimal Techno","Industrial Techno","Hard Techno","Trance","Progressive Techno","Tech House","Electronica","Breakbeat Techno","Electro Techno","Melodic Techno","Experimental Techno","Dark Techno","Ebm","Hypnotic Techno","Psychedelic Techno","Rave Techno","Techno-Pop"],indie:["Indie Rock","Indie Pop","Indie Folk","Indie Electronic","Indie Punk","Indie Hip-Hop","Dream Pop","Shoegaze","Lo-fi","Chillwave","Freak Folk","Noise Pop","Math Rock","Post-Punk","Garage Rock","Experimental Indie","Surf Rock","Alternative Country","Indie Soul","Art Rock","Indie R&B","Indietronica","Emo","Post-Rock","Indie Pop-Rock","Indie Synthpop","Noise Rock","Psych Folk","Indie Blues"],gospel:["Traditional Gospel","Contemporary Gospel","Southern Gospel","Black Gospel","Urban Contemporary Gospel","Gospel Blues","Bluegrass Gospel","Country Gospel","Praise and Worship","Christian Hip-Hop","Gospel Jazz","Reggae Gospel","African Gospel","Latin Gospel","R&B Gospel","Gospel Choir","Acappella Gospel","Instrumental Gospel","Gospel Rap"],world:["African","Arabic","Asian","Caribbean","Celtic","European","Latin American","Middle Eastern","Native American","Polynesian","Reggae","Ska","Salsa","Flamenco","Bossa Nova","Tango","Fado","Klezmer","Balkan","Afrobeat","Mongolian Throat Singing","Indian Classical","Gamelan","Sufi Music","Zydeco","Kora Music","Andean Music","Irish Traditional","Gypsy Jazz","Bollywood","Bhangra","Jawaiian","Hawaiian Slack Key Guitar","Calypso","Cuban Son","Taiko Drumming","African Highlife","Merengue","Tuvan Throat Singing"]},emojis:{smileys_and_emotion:["0x1f600","0x1f603","0x1f604","0x1f601","0x1f606","0x1f605","0x1f923","0x1f602","0x1f642","0x1f643","0x1fae0","0x1f609","0x1f60a","0x1f607","0x1f970","0x1f60d","0x1f929","0x1f618","0x1f617","0x263a","0x1f61a","0x1f619","0x1f972","0x1f60b","0x1f61b","0x1f61c","0x1f92a","0x1f61d","0x1f911","0x1f917","0x1f92d","0x1fae2","0x1fae3","0x1f92b","0x1f914","0x1fae1","0x1f910","0x1f928","0x1f610","0x1f611","0x1f636","0x1fae5","0x1f636","0x200d","0x1f32b","0xfe0f","0x1f60f","0x1f612","0x1f644","0x1f62c","0x1f62e","0x200d","0x1f4a8","0x1f925","0x1fae8","0x1f642","0x200d","0x2194","0xfe0f","0x1f642","0x200d","0x2195","0xfe0f","0x1f60c","0x1f614","0x1f62a","0x1f924","0x1f634","0x1f637","0x1f912","0x1f915","0x1f922","0x1f92e","0x1f927","0x1f975","0x1f976","0x1f974","0x1f635","0x1f635","0x200d","0x1f4ab","0x1f92f","0x1f920","0x1f973","0x1f978","0x1f60e","0x1f913","0x1f9d0","0x1f615","0x1fae4","0x1f61f","0x1f641","0x2639","0x1f62e","0x1f62f","0x1f632","0x1f633","0x1f97a","0x1f979","0x1f626","0x1f627","0x1f628","0x1f630","0x1f625","0x1f622","0x1f62d","0x1f631","0x1f616","0x1f623","0x1f61e","0x1f613","0x1f629","0x1f62b","0x1f971","0x1f624","0x1f621","0x1f620","0x1f92c","0x1f608","0x1f47f","0x1f480","0x2620","0x1f4a9","0x1f921","0x1f479","0x1f47a","0x1f47b","0x1f47d","0x1f47e","0x1f916","0x1f63a","0x1f638","0x1f639","0x1f63b","0x1f63c","0x1f63d","0x1f640","0x1f63f","0x1f63e","0x1f648","0x1f649","0x1f64a","0x1f48c","0x1f498","0x1f49d","0x1f496","0x1f497","0x1f493","0x1f49e","0x1f495","0x1f49f","0x2763","0x1f494","0x2764","0xfe0f","0x200d","0x1f525","0x2764","0xfe0f","0x200d","0x1fa79","0x2764","0x1fa77","0x1f9e1","0x1f49b","0x1f49a","0x1f499","0x1fa75","0x1f49c","0x1f90e","0x1f5a4","0x1fa76","0x1f90d","0x1f48b","0x1f4af","0x1f4a2","0x1f4a5","0x1f4ab","0x1f4a6","0x1f4a8","0x1f573","0x1f4ac","0x1f441","0xfe0f","0x200d","0x1f5e8","0xfe0f","0x1f5e8","0x1f5ef","0x1f4ad","0x1f4a4"],people_and_body:["0x1f44b","0x1f91a","0x1f590","0x270b","0x1f596","0x1faf1","0x1faf2","0x1faf3","0x1faf4","0x1faf7","0x1faf8","0x1f44c","0x1f90c","0x1f90f","0x270c","0x1f91e","0x1faf0","0x1f91f","0x1f918","0x1f919","0x1f448","0x1f449","0x1f446","0x1f595","0x1f447","0x261d","0x1faf5","0x1f44d","0x1f44e","0x270a","0x1f44a","0x1f91b","0x1f91c","0x1f44f","0x1f64c","0x1faf6","0x1f450","0x1f932","0x1f91d","0x1f64f","0x270d","0x1f485","0x1f933","0x1f4aa","0x1f9be","0x1f9bf","0x1f9b5","0x1f9b6","0x1f442","0x1f9bb","0x1f443","0x1f9e0","0x1fac0","0x1fac1","0x1f9b7","0x1f9b4","0x1f440","0x1f441","0x1f445","0x1f444","0x1fae6","0x1f476","0x1f9d2","0x1f466","0x1f467","0x1f9d1","0x1f471","0x1f468","0x1f9d4","0x1f9d4","0x200d","0x2642","0xfe0f","0x1f9d4","0x200d","0x2640","0xfe0f","0x1f468","0x200d","0x1f9b0","0x1f468","0x200d","0x1f9b1","0x1f468","0x200d","0x1f9b3","0x1f468","0x200d","0x1f9b2","0x1f469","0x1f469","0x200d","0x1f9b0","0x1f9d1","0x200d","0x1f9b0","0x1f469","0x200d","0x1f9b1","0x1f9d1","0x200d","0x1f9b1","0x1f469","0x200d","0x1f9b3","0x1f9d1","0x200d","0x1f9b3","0x1f469","0x200d","0x1f9b2","0x1f9d1","0x200d","0x1f9b2","0x1f471","0x200d","0x2640","0xfe0f","0x1f471","0x200d","0x2642","0xfe0f","0x1f9d3","0x1f474","0x1f475","0x1f64d","0x1f64d","0x200d","0x2642","0xfe0f","0x1f64d","0x200d","0x2640","0xfe0f","0x1f64e","0x1f64e","0x200d","0x2642","0xfe0f","0x1f64e","0x200d","0x2640","0xfe0f","0x1f645","0x1f645","0x200d","0x2642","0xfe0f","0x1f645","0x200d","0x2640","0xfe0f","0x1f646","0x1f646","0x200d","0x2642","0xfe0f","0x1f646","0x200d","0x2640","0xfe0f","0x1f481","0x1f481","0x200d","0x2642","0xfe0f","0x1f481","0x200d","0x2640","0xfe0f","0x1f64b","0x1f64b","0x200d","0x2642","0xfe0f","0x1f64b","0x200d","0x2640","0xfe0f","0x1f9cf","0x1f9cf","0x200d","0x2642","0xfe0f","0x1f9cf","0x200d","0x2640","0xfe0f","0x1f647","0x1f647","0x200d","0x2642","0xfe0f","0x1f647","0x200d","0x2640","0xfe0f","0x1f926","0x1f926","0x200d","0x2642","0xfe0f","0x1f926","0x200d","0x2640","0xfe0f","0x1f937","0x1f937","0x200d","0x2642","0xfe0f","0x1f937","0x200d","0x2640","0xfe0f","0x1f9d1","0x200d","0x2695","0xfe0f","0x1f468","0x200d","0x2695","0xfe0f","0x1f469","0x200d","0x2695","0xfe0f","0x1f9d1","0x200d","0x1f393","0x1f468","0x200d","0x1f393","0x1f469","0x200d","0x1f393","0x1f9d1","0x200d","0x1f3eb","0x1f468","0x200d","0x1f3eb","0x1f469","0x200d","0x1f3eb","0x1f9d1","0x200d","0x2696","0xfe0f","0x1f468","0x200d","0x2696","0xfe0f","0x1f469","0x200d","0x2696","0xfe0f","0x1f9d1","0x200d","0x1f33e","0x1f468","0x200d","0x1f33e","0x1f469","0x200d","0x1f33e","0x1f9d1","0x200d","0x1f373","0x1f468","0x200d","0x1f373","0x1f469","0x200d","0x1f373","0x1f9d1","0x200d","0x1f527","0x1f468","0x200d","0x1f527","0x1f469","0x200d","0x1f527","0x1f9d1","0x200d","0x1f3ed","0x1f468","0x200d","0x1f3ed","0x1f469","0x200d","0x1f3ed","0x1f9d1","0x200d","0x1f4bc","0x1f468","0x200d","0x1f4bc","0x1f469","0x200d","0x1f4bc","0x1f9d1","0x200d","0x1f52c","0x1f468","0x200d","0x1f52c","0x1f469","0x200d","0x1f52c","0x1f9d1","0x200d","0x1f4bb","0x1f468","0x200d","0x1f4bb","0x1f469","0x200d","0x1f4bb","0x1f9d1","0x200d","0x1f3a4","0x1f468","0x200d","0x1f3a4","0x1f469","0x200d","0x1f3a4","0x1f9d1","0x200d","0x1f3a8","0x1f468","0x200d","0x1f3a8","0x1f469","0x200d","0x1f3a8","0x1f9d1","0x200d","0x2708","0xfe0f","0x1f468","0x200d","0x2708","0xfe0f","0x1f469","0x200d","0x2708","0xfe0f","0x1f9d1","0x200d","0x1f680","0x1f468","0x200d","0x1f680","0x1f469","0x200d","0x1f680","0x1f9d1","0x200d","0x1f692","0x1f468","0x200d","0x1f692","0x1f469","0x200d","0x1f692","0x1f46e","0x1f46e","0x200d","0x2642","0xfe0f","0x1f46e","0x200d","0x2640","0xfe0f","0x1f575","0x1f575","0xfe0f","0x200d","0x2642","0xfe0f","0x1f575","0xfe0f","0x200d","0x2640","0xfe0f","0x1f482","0x1f482","0x200d","0x2642","0xfe0f","0x1f482","0x200d","0x2640","0xfe0f","0x1f977","0x1f477","0x1f477","0x200d","0x2642","0xfe0f","0x1f477","0x200d","0x2640","0xfe0f","0x1fac5","0x1f934","0x1f478","0x1f473","0x1f473","0x200d","0x2642","0xfe0f","0x1f473","0x200d","0x2640","0xfe0f","0x1f472","0x1f9d5","0x1f935","0x1f935","0x200d","0x2642","0xfe0f","0x1f935","0x200d","0x2640","0xfe0f","0x1f470","0x1f470","0x200d","0x2642","0xfe0f","0x1f470","0x200d","0x2640","0xfe0f","0x1f930","0x1fac3","0x1fac4","0x1f931","0x1f469","0x200d","0x1f37c","0x1f468","0x200d","0x1f37c","0x1f9d1","0x200d","0x1f37c","0x1f47c","0x1f385","0x1f936","0x1f9d1","0x200d","0x1f384","0x1f9b8","0x1f9b8","0x200d","0x2642","0xfe0f","0x1f9b8","0x200d","0x2640","0xfe0f","0x1f9b9","0x1f9b9","0x200d","0x2642","0xfe0f","0x1f9b9","0x200d","0x2640","0xfe0f","0x1f9d9","0x1f9d9","0x200d","0x2642","0xfe0f","0x1f9d9","0x200d","0x2640","0xfe0f","0x1f9da","0x1f9da","0x200d","0x2642","0xfe0f","0x1f9da","0x200d","0x2640","0xfe0f","0x1f9db","0x1f9db","0x200d","0x2642","0xfe0f","0x1f9db","0x200d","0x2640","0xfe0f","0x1f9dc","0x1f9dc","0x200d","0x2642","0xfe0f","0x1f9dc","0x200d","0x2640","0xfe0f","0x1f9dd","0x1f9dd","0x200d","0x2642","0xfe0f","0x1f9dd","0x200d","0x2640","0xfe0f","0x1f9de","0x1f9de","0x200d","0x2642","0xfe0f","0x1f9de","0x200d","0x2640","0xfe0f","0x1f9df","0x1f9df","0x200d","0x2642","0xfe0f","0x1f9df","0x200d","0x2640","0xfe0f","0x1f9cc","0x1f486","0x1f486","0x200d","0x2642","0xfe0f","0x1f486","0x200d","0x2640","0xfe0f","0x1f487","0x1f487","0x200d","0x2642","0xfe0f","0x1f487","0x200d","0x2640","0xfe0f","0x1f6b6","0x1f6b6","0x200d","0x2642","0xfe0f","0x1f6b6","0x200d","0x2640","0xfe0f","0x1f6b6","0x200d","0x27a1","0xfe0f","0x1f6b6","0x200d","0x2640","0xfe0f","0x200d","0x27a1","0xfe0f","0x1f6b6","0x200d","0x2642","0xfe0f","0x200d","0x27a1","0xfe0f","0x1f9cd","0x1f9cd","0x200d","0x2642","0xfe0f","0x1f9cd","0x200d","0x2640","0xfe0f","0x1f9ce","0x1f9ce","0x200d","0x2642","0xfe0f","0x1f9ce","0x200d","0x2640","0xfe0f","0x1f9ce","0x200d","0x27a1","0xfe0f","0x1f9ce","0x200d","0x2640","0xfe0f","0x200d","0x27a1","0xfe0f","0x1f9ce","0x200d","0x2642","0xfe0f","0x200d","0x27a1","0xfe0f","0x1f9d1","0x200d","0x1f9af","0x1f9d1","0x200d","0x1f9af","0x200d","0x27a1","0xfe0f","0x1f468","0x200d","0x1f9af","0x1f468","0x200d","0x1f9af","0x200d","0x27a1","0xfe0f","0x1f469","0x200d","0x1f9af","0x1f469","0x200d","0x1f9af","0x200d","0x27a1","0xfe0f","0x1f9d1","0x200d","0x1f9bc","0x1f9d1","0x200d","0x1f9bc","0x200d","0x27a1","0xfe0f","0x1f468","0x200d","0x1f9bc","0x1f468","0x200d","0x1f9bc","0x200d","0x27a1","0xfe0f","0x1f469","0x200d","0x1f9bc","0x1f469","0x200d","0x1f9bc","0x200d","0x27a1","0xfe0f","0x1f9d1","0x200d","0x1f9bd","0x1f9d1","0x200d","0x1f9bd","0x200d","0x27a1","0xfe0f","0x1f468","0x200d","0x1f9bd","0x1f468","0x200d","0x1f9bd","0x200d","0x27a1","0xfe0f","0x1f469","0x200d","0x1f9bd","0x1f469","0x200d","0x1f9bd","0x200d","0x27a1","0xfe0f","0x1f3c3","0x1f3c3","0x200d","0x2642","0xfe0f","0x1f3c3","0x200d","0x2640","0xfe0f","0x1f3c3","0x200d","0x27a1","0xfe0f","0x1f3c3","0x200d","0x2640","0xfe0f","0x200d","0x27a1","0xfe0f","0x1f3c3","0x200d","0x2642","0xfe0f","0x200d","0x27a1","0xfe0f","0x1f483","0x1f57a","0x1f574","0x1f46f","0x1f46f","0x200d","0x2642","0xfe0f","0x1f46f","0x200d","0x2640","0xfe0f","0x1f9d6","0x1f9d6","0x200d","0x2642","0xfe0f","0x1f9d6","0x200d","0x2640","0xfe0f","0x1f9d7","0x1f9d7","0x200d","0x2642","0xfe0f","0x1f9d7","0x200d","0x2640","0xfe0f","0x1f93a","0x1f3c7","0x26f7","0x1f3c2","0x1f3cc","0x1f3cc","0xfe0f","0x200d","0x2642","0xfe0f","0x1f3cc","0xfe0f","0x200d","0x2640","0xfe0f","0x1f3c4","0x1f3c4","0x200d","0x2642","0xfe0f","0x1f3c4","0x200d","0x2640","0xfe0f","0x1f6a3","0x1f6a3","0x200d","0x2642","0xfe0f","0x1f6a3","0x200d","0x2640","0xfe0f","0x1f3ca","0x1f3ca","0x200d","0x2642","0xfe0f","0x1f3ca","0x200d","0x2640","0xfe0f","0x26f9","0x26f9","0xfe0f","0x200d","0x2642","0xfe0f","0x26f9","0xfe0f","0x200d","0x2640","0xfe0f","0x1f3cb","0x1f3cb","0xfe0f","0x200d","0x2642","0xfe0f","0x1f3cb","0xfe0f","0x200d","0x2640","0xfe0f","0x1f6b4","0x1f6b4","0x200d","0x2642","0xfe0f","0x1f6b4","0x200d","0x2640","0xfe0f","0x1f6b5","0x1f6b5","0x200d","0x2642","0xfe0f","0x1f6b5","0x200d","0x2640","0xfe0f","0x1f938","0x1f938","0x200d","0x2642","0xfe0f","0x1f938","0x200d","0x2640","0xfe0f","0x1f93c","0x1f93c","0x200d","0x2642","0xfe0f","0x1f93c","0x200d","0x2640","0xfe0f","0x1f93d","0x1f93d","0x200d","0x2642","0xfe0f","0x1f93d","0x200d","0x2640","0xfe0f","0x1f93e","0x1f93e","0x200d","0x2642","0xfe0f","0x1f93e","0x200d","0x2640","0xfe0f","0x1f939","0x1f939","0x200d","0x2642","0xfe0f","0x1f939","0x200d","0x2640","0xfe0f","0x1f9d8","0x1f9d8","0x200d","0x2642","0xfe0f","0x1f9d8","0x200d","0x2640","0xfe0f","0x1f6c0","0x1f6cc","0x1f9d1","0x200d","0x1f91d","0x200d","0x1f9d1","0x1f46d","0x1f46b","0x1f46c","0x1f48f","0x1f469","0x200d","0x2764","0xfe0f","0x200d","0x1f48b","0x200d","0x1f468","0x1f468","0x200d","0x2764","0xfe0f","0x200d","0x1f48b","0x200d","0x1f468","0x1f469","0x200d","0x2764","0xfe0f","0x200d","0x1f48b","0x200d","0x1f469","0x1f491","0x1f469","0x200d","0x2764","0xfe0f","0x200d","0x1f468","0x1f468","0x200d","0x2764","0xfe0f","0x200d","0x1f468","0x1f469","0x200d","0x2764","0xfe0f","0x200d","0x1f469","0x1f468","0x200d","0x1f469","0x200d","0x1f466","0x1f468","0x200d","0x1f469","0x200d","0x1f467","0x1f468","0x200d","0x1f469","0x200d","0x1f467","0x200d","0x1f466","0x1f468","0x200d","0x1f469","0x200d","0x1f466","0x200d","0x1f466","0x1f468","0x200d","0x1f469","0x200d","0x1f467","0x200d","0x1f467","0x1f468","0x200d","0x1f468","0x200d","0x1f466","0x1f468","0x200d","0x1f468","0x200d","0x1f467","0x1f468","0x200d","0x1f468","0x200d","0x1f467","0x200d","0x1f466","0x1f468","0x200d","0x1f468","0x200d","0x1f466","0x200d","0x1f466","0x1f468","0x200d","0x1f468","0x200d","0x1f467","0x200d","0x1f467","0x1f469","0x200d","0x1f469","0x200d","0x1f466","0x1f469","0x200d","0x1f469","0x200d","0x1f467","0x1f469","0x200d","0x1f469","0x200d","0x1f467","0x200d","0x1f466","0x1f469","0x200d","0x1f469","0x200d","0x1f466","0x200d","0x1f466","0x1f469","0x200d","0x1f469","0x200d","0x1f467","0x200d","0x1f467","0x1f468","0x200d","0x1f466","0x1f468","0x200d","0x1f466","0x200d","0x1f466","0x1f468","0x200d","0x1f467","0x1f468","0x200d","0x1f467","0x200d","0x1f466","0x1f468","0x200d","0x1f467","0x200d","0x1f467","0x1f469","0x200d","0x1f466","0x1f469","0x200d","0x1f466","0x200d","0x1f466","0x1f469","0x200d","0x1f467","0x1f469","0x200d","0x1f467","0x200d","0x1f466","0x1f469","0x200d","0x1f467","0x200d","0x1f467","0x1f5e3","0x1f464","0x1f465","0x1fac2","0x1f46a","0x1f9d1","0x200d","0x1f9d1","0x200d","0x1f9d2","0x1f9d1","0x200d","0x1f9d1","0x200d","0x1f9d2","0x200d","0x1f9d2","0x1f9d1","0x200d","0x1f9d2","0x1f9d1","0x200d","0x1f9d2","0x200d","0x1f9d2","0x1f463"],animals_and_nature:["0x1f435","0x1f412","0x1f98d","0x1f9a7","0x1f436","0x1f415","0x1f9ae","0x1f415","0x200d","0x1f9ba","0x1f429","0x1f43a","0x1f98a","0x1f99d","0x1f431","0x1f408","0x1f408","0x200d","0x2b1b","0x1f981","0x1f42f","0x1f405","0x1f406","0x1f434","0x1face","0x1facf","0x1f40e","0x1f984","0x1f993","0x1f98c","0x1f9ac","0x1f42e","0x1f402","0x1f403","0x1f404","0x1f437","0x1f416","0x1f417","0x1f43d","0x1f40f","0x1f411","0x1f410","0x1f42a","0x1f42b","0x1f999","0x1f992","0x1f418","0x1f9a3","0x1f98f","0x1f99b","0x1f42d","0x1f401","0x1f400","0x1f439","0x1f430","0x1f407","0x1f43f","0x1f9ab","0x1f994","0x1f987","0x1f43b","0x1f43b","0x200d","0x2744","0xfe0f","0x1f428","0x1f43c","0x1f9a5","0x1f9a6","0x1f9a8","0x1f998","0x1f9a1","0x1f43e","0x1f983","0x1f414","0x1f413","0x1f423","0x1f424","0x1f425","0x1f426","0x1f427","0x1f54a","0x1f985","0x1f986","0x1f9a2","0x1f989","0x1f9a4","0x1fab6","0x1f9a9","0x1f99a","0x1f99c","0x1fabd","0x1f426","0x200d","0x2b1b","0x1fabf","0x1f426","0x200d","0x1f525","0x1f438","0x1f40a","0x1f422","0x1f98e","0x1f40d","0x1f432","0x1f409","0x1f995","0x1f996","0x1f433","0x1f40b","0x1f42c","0x1f9ad","0x1f41f","0x1f420","0x1f421","0x1f988","0x1f419","0x1f41a","0x1fab8","0x1fabc","0x1f40c","0x1f98b","0x1f41b","0x1f41c","0x1f41d","0x1fab2","0x1f41e","0x1f997","0x1fab3","0x1f577","0x1f578","0x1f982","0x1f99f","0x1fab0","0x1fab1","0x1f9a0","0x1f490","0x1f338","0x1f4ae","0x1fab7","0x1f3f5","0x1f339","0x1f940","0x1f33a","0x1f33b","0x1f33c","0x1f337","0x1fabb","0x1f331","0x1fab4","0x1f332","0x1f333","0x1f334","0x1f335","0x1f33e","0x1f33f","0x2618","0x1f340","0x1f341","0x1f342","0x1f343","0x1fab9","0x1faba","0x1f344"],food_and_drink:["0x1f347","0x1f348","0x1f349","0x1f34a","0x1f34b","0x1f34b","0x200d","0x1f7e9","0x1f34c","0x1f34d","0x1f96d","0x1f34e","0x1f34f","0x1f350","0x1f351","0x1f352","0x1f353","0x1fad0","0x1f95d","0x1f345","0x1fad2","0x1f965","0x1f951","0x1f346","0x1f954","0x1f955","0x1f33d","0x1f336","0x1fad1","0x1f952","0x1f96c","0x1f966","0x1f9c4","0x1f9c5","0x1f95c","0x1fad8","0x1f330","0x1fada","0x1fadb","0x1f344","0x200d","0x1f7eb","0x1f35e","0x1f950","0x1f956","0x1fad3","0x1f968","0x1f96f","0x1f95e","0x1f9c7","0x1f9c0","0x1f356","0x1f357","0x1f969","0x1f953","0x1f354","0x1f35f","0x1f355","0x1f32d","0x1f96a","0x1f32e","0x1f32f","0x1fad4","0x1f959","0x1f9c6","0x1f95a","0x1f373","0x1f958","0x1f372","0x1fad5","0x1f963","0x1f957","0x1f37f","0x1f9c8","0x1f9c2","0x1f96b","0x1f371","0x1f358","0x1f359","0x1f35a","0x1f35b","0x1f35c","0x1f35d","0x1f360","0x1f362","0x1f363","0x1f364","0x1f365","0x1f96e","0x1f361","0x1f95f","0x1f960","0x1f961","0x1f980","0x1f99e","0x1f990","0x1f991","0x1f9aa","0x1f366","0x1f367","0x1f368","0x1f369","0x1f36a","0x1f382","0x1f370","0x1f9c1","0x1f967","0x1f36b","0x1f36c","0x1f36d","0x1f36e","0x1f36f","0x1f37c","0x1f95b","0x2615","0x1fad6","0x1f375","0x1f376","0x1f37e","0x1f377","0x1f378","0x1f379","0x1f37a","0x1f37b","0x1f942","0x1f943","0x1fad7","0x1f964","0x1f9cb","0x1f9c3","0x1f9c9","0x1f9ca","0x1f962","0x1f37d","0x1f374","0x1f944","0x1f52a","0x1fad9","0x1f3fa"],travel_and_places:["0x1f30d","0x1f30e","0x1f30f","0x1f310","0x1f5fa","0x1f5fe","0x1f9ed","0x1f3d4","0x26f0","0x1f30b","0x1f5fb","0x1f3d5","0x1f3d6","0x1f3dc","0x1f3dd","0x1f3de","0x1f3df","0x1f3db","0x1f3d7","0x1f9f1","0x1faa8","0x1fab5","0x1f6d6","0x1f3d8","0x1f3da","0x1f3e0","0x1f3e1","0x1f3e2","0x1f3e3","0x1f3e4","0x1f3e5","0x1f3e6","0x1f3e8","0x1f3e9","0x1f3ea","0x1f3eb","0x1f3ec","0x1f3ed","0x1f3ef","0x1f3f0","0x1f492","0x1f5fc","0x1f5fd","0x26ea","0x1f54c","0x1f6d5","0x1f54d","0x26e9","0x1f54b","0x26f2","0x26fa","0x1f301","0x1f303","0x1f3d9","0x1f304","0x1f305","0x1f306","0x1f307","0x1f309","0x2668","0x1f3a0","0x1f6dd","0x1f3a1","0x1f3a2","0x1f488","0x1f3aa","0x1f682","0x1f683","0x1f684","0x1f685","0x1f686","0x1f687","0x1f688","0x1f689","0x1f68a","0x1f69d","0x1f69e","0x1f68b","0x1f68c","0x1f68d","0x1f68e","0x1f690","0x1f691","0x1f692","0x1f693","0x1f694","0x1f695","0x1f696","0x1f697","0x1f698","0x1f699","0x1f6fb","0x1f69a","0x1f69b","0x1f69c","0x1f3ce","0x1f3cd","0x1f6f5","0x1f9bd","0x1f9bc","0x1f6fa","0x1f6b2","0x1f6f4","0x1f6f9","0x1f6fc","0x1f68f","0x1f6e3","0x1f6e4","0x1f6e2","0x26fd","0x1f6de","0x1f6a8","0x1f6a5","0x1f6a6","0x1f6d1","0x1f6a7","0x2693","0x1f6df","0x26f5","0x1f6f6","0x1f6a4","0x1f6f3","0x26f4","0x1f6e5","0x1f6a2","0x2708","0x1f6e9","0x1f6eb","0x1f6ec","0x1fa82","0x1f4ba","0x1f681","0x1f69f","0x1f6a0","0x1f6a1","0x1f6f0","0x1f680","0x1f6f8","0x1f6ce","0x1f9f3","0x231b","0x23f3","0x231a","0x23f0","0x23f1","0x23f2","0x1f570","0x1f55b","0x1f567","0x1f550","0x1f55c","0x1f551","0x1f55d","0x1f552","0x1f55e","0x1f553","0x1f55f","0x1f554","0x1f560","0x1f555","0x1f561","0x1f556","0x1f562","0x1f557","0x1f563","0x1f558","0x1f564","0x1f559","0x1f565","0x1f55a","0x1f566","0x1f311","0x1f312","0x1f313","0x1f314","0x1f315","0x1f316","0x1f317","0x1f318","0x1f319","0x1f31a","0x1f31b","0x1f31c","0x1f321","0x2600","0x1f31d","0x1f31e","0x1fa90","0x2b50","0x1f31f","0x1f320","0x1f30c","0x2601","0x26c5","0x26c8","0x1f324","0x1f325","0x1f326","0x1f327","0x1f328","0x1f329","0x1f32a","0x1f32b","0x1f32c","0x1f300","0x1f308","0x1f302","0x2602","0x2614","0x26f1","0x26a1","0x2744","0x2603","0x26c4","0x2604","0x1f525","0x1f4a7","0x1f30a"],activities:["0x1f383","0x1f384","0x1f386","0x1f387","0x1f9e8","0x2728","0x1f388","0x1f389","0x1f38a","0x1f38b","0x1f38d","0x1f38e","0x1f38f","0x1f390","0x1f391","0x1f9e7","0x1f380","0x1f381","0x1f397","0x1f39f","0x1f3ab","0x1f396","0x1f3c6","0x1f3c5","0x1f947","0x1f948","0x1f949","0x26bd","0x26be","0x1f94e","0x1f3c0","0x1f3d0","0x1f3c8","0x1f3c9","0x1f3be","0x1f94f","0x1f3b3","0x1f3cf","0x1f3d1","0x1f3d2","0x1f94d","0x1f3d3","0x1f3f8","0x1f94a","0x1f94b","0x1f945","0x26f3","0x26f8","0x1f3a3","0x1f93f","0x1f3bd","0x1f3bf","0x1f6f7","0x1f94c","0x1f3af","0x1fa80","0x1fa81","0x1f52b","0x1f3b1","0x1f52e","0x1fa84","0x1f3ae","0x1f579","0x1f3b0","0x1f3b2","0x1f9e9","0x1f9f8","0x1fa85","0x1faa9","0x1fa86","0x2660","0x2665","0x2666","0x2663","0x265f","0x1f0cf","0x1f004","0x1f3b4","0x1f3ad","0x1f5bc","0x1f3a8","0x1f9f5","0x1faa1","0x1f9f6","0x1faa2"],objects:["0x1f453","0x1f576","0x1f97d","0x1f97c","0x1f9ba","0x1f454","0x1f455","0x1f456","0x1f9e3","0x1f9e4","0x1f9e5","0x1f9e6","0x1f457","0x1f458","0x1f97b","0x1fa71","0x1fa72","0x1fa73","0x1f459","0x1f45a","0x1faad","0x1f45b","0x1f45c","0x1f45d","0x1f6cd","0x1f392","0x1fa74","0x1f45e","0x1f45f","0x1f97e","0x1f97f","0x1f460","0x1f461","0x1fa70","0x1f462","0x1faae","0x1f451","0x1f452","0x1f3a9","0x1f393","0x1f9e2","0x1fa96","0x26d1","0x1f4ff","0x1f484","0x1f48d","0x1f48e","0x1f507","0x1f508","0x1f509","0x1f50a","0x1f4e2","0x1f4e3","0x1f4ef","0x1f514","0x1f515","0x1f3bc","0x1f3b5","0x1f3b6","0x1f399","0x1f39a","0x1f39b","0x1f3a4","0x1f3a7","0x1f4fb","0x1f3b7","0x1fa97","0x1f3b8","0x1f3b9","0x1f3ba","0x1f3bb","0x1fa95","0x1f941","0x1fa98","0x1fa87","0x1fa88","0x1f4f1","0x1f4f2","0x260e","0x1f4de","0x1f4df","0x1f4e0","0x1f50b","0x1faab","0x1f50c","0x1f4bb","0x1f5a5","0x1f5a8","0x2328","0x1f5b1","0x1f5b2","0x1f4bd","0x1f4be","0x1f4bf","0x1f4c0","0x1f9ee","0x1f3a5","0x1f39e","0x1f4fd","0x1f3ac","0x1f4fa","0x1f4f7","0x1f4f8","0x1f4f9","0x1f4fc","0x1f50d","0x1f50e","0x1f56f","0x1f4a1","0x1f526","0x1f3ee","0x1fa94","0x1f4d4","0x1f4d5","0x1f4d6","0x1f4d7","0x1f4d8","0x1f4d9","0x1f4da","0x1f4d3","0x1f4d2","0x1f4c3","0x1f4dc","0x1f4c4","0x1f4f0","0x1f5de","0x1f4d1","0x1f516","0x1f3f7","0x1f4b0","0x1fa99","0x1f4b4","0x1f4b5","0x1f4b6","0x1f4b7","0x1f4b8","0x1f4b3","0x1f9fe","0x1f4b9","0x2709","0x1f4e7","0x1f4e8","0x1f4e9","0x1f4e4","0x1f4e5","0x1f4e6","0x1f4eb","0x1f4ea","0x1f4ec","0x1f4ed","0x1f4ee","0x1f5f3","0x270f","0x2712","0x1f58b","0x1f58a","0x1f58c","0x1f58d","0x1f4dd","0x1f4bc","0x1f4c1","0x1f4c2","0x1f5c2","0x1f4c5","0x1f4c6","0x1f5d2","0x1f5d3","0x1f4c7","0x1f4c8","0x1f4c9","0x1f4ca","0x1f4cb","0x1f4cc","0x1f4cd","0x1f4ce","0x1f587","0x1f4cf","0x1f4d0","0x2702","0x1f5c3","0x1f5c4","0x1f5d1","0x1f512","0x1f513","0x1f50f","0x1f510","0x1f511","0x1f5dd","0x1f528","0x1fa93","0x26cf","0x2692","0x1f6e0","0x1f5e1","0x2694","0x1f4a3","0x1fa83","0x1f3f9","0x1f6e1","0x1fa9a","0x1f527","0x1fa9b","0x1f529","0x2699","0x1f5dc","0x2696","0x1f9af","0x1f517","0x26d3","0xfe0f","0x200d","0x1f4a5","0x26d3","0x1fa9d","0x1f9f0","0x1f9f2","0x1fa9c","0x2697","0x1f9ea","0x1f9eb","0x1f9ec","0x1f52c","0x1f52d","0x1f4e1","0x1f489","0x1fa78","0x1f48a","0x1fa79","0x1fa7c","0x1fa7a","0x1fa7b","0x1f6aa","0x1f6d7","0x1fa9e","0x1fa9f","0x1f6cf","0x1f6cb","0x1fa91","0x1f6bd","0x1faa0","0x1f6bf","0x1f6c1","0x1faa4","0x1fa92","0x1f9f4","0x1f9f7","0x1f9f9","0x1f9fa","0x1f9fb","0x1faa3","0x1f9fc","0x1fae7","0x1faa5","0x1f9fd","0x1f9ef","0x1f6d2","0x1f6ac","0x26b0","0x1faa6","0x26b1","0x1f9ff","0x1faac","0x1f5ff","0x1faa7","0x1faaa"],symbols:["0x1f3e7","0x1f6ae","0x1f6b0","0x267f","0x1f6b9","0x1f6ba","0x1f6bb","0x1f6bc","0x1f6be","0x1f6c2","0x1f6c3","0x1f6c4","0x1f6c5","0x26a0","0x1f6b8","0x26d4","0x1f6ab","0x1f6b3","0x1f6ad","0x1f6af","0x1f6b1","0x1f6b7","0x1f4f5","0x1f51e","0x2622","0x2623","0x2b06","0x2197","0x27a1","0x2198","0x2b07","0x2199","0x2b05","0x2196","0x2195","0x2194","0x21a9","0x21aa","0x2934","0x2935","0x1f503","0x1f504","0x1f519","0x1f51a","0x1f51b","0x1f51c","0x1f51d","0x1f6d0","0x269b","0x1f549","0x2721","0x2638","0x262f","0x271d","0x2626","0x262a","0x262e","0x1f54e","0x1f52f","0x1faaf","0x2648","0x2649","0x264a","0x264b","0x264c","0x264d","0x264e","0x264f","0x2650","0x2651","0x2652","0x2653","0x26ce","0x1f500","0x1f501","0x1f502","0x25b6","0x23e9","0x23ed","0x23ef","0x25c0","0x23ea","0x23ee","0x1f53c","0x23eb","0x1f53d","0x23ec","0x23f8","0x23f9","0x23fa","0x23cf","0x1f3a6","0x1f505","0x1f506","0x1f4f6","0x1f6dc","0x1f4f3","0x1f4f4","0x2640","0x2642","0x26a7","0x2716","0x2795","0x2796","0x2797","0x1f7f0","0x267e","0x203c","0x2049","0x2753","0x2754","0x2755","0x2757","0x3030","0x1f4b1","0x1f4b2","0x2695","0x267b","0x269c","0x1f531","0x1f4db","0x1f530","0x2b55","0x2705","0x2611","0x2714","0x274c","0x274e","0x27b0","0x27bf","0x303d","0x2733","0x2734","0x2747","0x00a9","0x00ae","0x2122","0x0023","0xfe0f","0x20e3","0x002a","0xfe0f","0x20e3","0x0030","0xfe0f","0x20e3","0x0031","0xfe0f","0x20e3","0x0032","0xfe0f","0x20e3","0x0033","0xfe0f","0x20e3","0x0034","0xfe0f","0x20e3","0x0035","0xfe0f","0x20e3","0x0036","0xfe0f","0x20e3","0x0037","0xfe0f","0x20e3","0x0038","0xfe0f","0x20e3","0x0039","0xfe0f","0x20e3","0x1f51f","0x1f520","0x1f521","0x1f522","0x1f523","0x1f524","0x1f170","0x1f18e","0x1f171","0x1f191","0x1f192","0x1f193","0x2139","0x1f194","0x24c2","0x1f195","0x1f196","0x1f17e","0x1f197","0x1f17f","0x1f198","0x1f199","0x1f19a","0x1f201","0x1f202","0x1f237","0x1f236","0x1f22f","0x1f250","0x1f239","0x1f21a","0x1f232","0x1f251","0x1f238","0x1f234","0x1f233","0x3297","0x3299","0x1f23a","0x1f235","0x1f534","0x1f7e0","0x1f7e1","0x1f7e2","0x1f535","0x1f7e3","0x1f7e4","0x26ab","0x26aa","0x1f7e5","0x1f7e7","0x1f7e8","0x1f7e9","0x1f7e6","0x1f7ea","0x1f7eb","0x2b1b","0x2b1c","0x25fc","0x25fb","0x25fe","0x25fd","0x25aa","0x25ab","0x1f536","0x1f537","0x1f538","0x1f539","0x1f53a","0x1f53b","0x1f4a0","0x1f518","0x1f533","0x1f532"],flags:["0x1f3c1","0x1f6a9","0x1f38c","0x1f3f4","0x1f3f3","0x1f3f3","0xfe0f","0x200d","0x1f308","0x1f3f3","0xfe0f","0x200d","0x26a7","0xfe0f","0x1f3f4","0x200d","0x2620","0xfe0f","0x1f1e6","0x1f1e8","0x1f1e6","0x1f1e9","0x1f1e6","0x1f1ea","0x1f1e6","0x1f1eb","0x1f1e6","0x1f1ec","0x1f1e6","0x1f1ee","0x1f1e6","0x1f1f1","0x1f1e6","0x1f1f2","0x1f1e6","0x1f1f4","0x1f1e6","0x1f1f6","0x1f1e6","0x1f1f7","0x1f1e6","0x1f1f8","0x1f1e6","0x1f1f9","0x1f1e6","0x1f1fa","0x1f1e6","0x1f1fc","0x1f1e6","0x1f1fd","0x1f1e6","0x1f1ff","0x1f1e7","0x1f1e6","0x1f1e7","0x1f1e7","0x1f1e7","0x1f1e9","0x1f1e7","0x1f1ea","0x1f1e7","0x1f1eb","0x1f1e7","0x1f1ec","0x1f1e7","0x1f1ed","0x1f1e7","0x1f1ee","0x1f1e7","0x1f1ef","0x1f1e7","0x1f1f1","0x1f1e7","0x1f1f2","0x1f1e7","0x1f1f3","0x1f1e7","0x1f1f4","0x1f1e7","0x1f1f6","0x1f1e7","0x1f1f7","0x1f1e7","0x1f1f8","0x1f1e7","0x1f1f9","0x1f1e7","0x1f1fb","0x1f1e7","0x1f1fc","0x1f1e7","0x1f1fe","0x1f1e7","0x1f1ff","0x1f1e8","0x1f1e6","0x1f1e8","0x1f1e8","0x1f1e8","0x1f1e9","0x1f1e8","0x1f1eb","0x1f1e8","0x1f1ec","0x1f1e8","0x1f1ed","0x1f1e8","0x1f1ee","0x1f1e8","0x1f1f0","0x1f1e8","0x1f1f1","0x1f1e8","0x1f1f2","0x1f1e8","0x1f1f3","0x1f1e8","0x1f1f4","0x1f1e8","0x1f1f5","0x1f1e8","0x1f1f7","0x1f1e8","0x1f1fa","0x1f1e8","0x1f1fb","0x1f1e8","0x1f1fc","0x1f1e8","0x1f1fd","0x1f1e8","0x1f1fe","0x1f1e8","0x1f1ff","0x1f1e9","0x1f1ea","0x1f1e9","0x1f1ec","0x1f1e9","0x1f1ef","0x1f1e9","0x1f1f0","0x1f1e9","0x1f1f2","0x1f1e9","0x1f1f4","0x1f1e9","0x1f1ff","0x1f1ea","0x1f1e6","0x1f1ea","0x1f1e8","0x1f1ea","0x1f1ea","0x1f1ea","0x1f1ec","0x1f1ea","0x1f1ed","0x1f1ea","0x1f1f7","0x1f1ea","0x1f1f8","0x1f1ea","0x1f1f9","0x1f1ea","0x1f1fa","0x1f1eb","0x1f1ee","0x1f1eb","0x1f1ef","0x1f1eb","0x1f1f0","0x1f1eb","0x1f1f2","0x1f1eb","0x1f1f4","0x1f1eb","0x1f1f7","0x1f1ec","0x1f1e6","0x1f1ec","0x1f1e7","0x1f1ec","0x1f1e9","0x1f1ec","0x1f1ea","0x1f1ec","0x1f1eb","0x1f1ec","0x1f1ec","0x1f1ec","0x1f1ed","0x1f1ec","0x1f1ee","0x1f1ec","0x1f1f1","0x1f1ec","0x1f1f2","0x1f1ec","0x1f1f3","0x1f1ec","0x1f1f5","0x1f1ec","0x1f1f6","0x1f1ec","0x1f1f7","0x1f1ec","0x1f1f8","0x1f1ec","0x1f1f9","0x1f1ec","0x1f1fa","0x1f1ec","0x1f1fc","0x1f1ec","0x1f1fe","0x1f1ed","0x1f1f0","0x1f1ed","0x1f1f2","0x1f1ed","0x1f1f3","0x1f1ed","0x1f1f7","0x1f1ed","0x1f1f9","0x1f1ed","0x1f1fa","0x1f1ee","0x1f1e8","0x1f1ee","0x1f1e9","0x1f1ee","0x1f1ea","0x1f1ee","0x1f1f1","0x1f1ee","0x1f1f2","0x1f1ee","0x1f1f3","0x1f1ee","0x1f1f4","0x1f1ee","0x1f1f6","0x1f1ee","0x1f1f7","0x1f1ee","0x1f1f8","0x1f1ee","0x1f1f9","0x1f1ef","0x1f1ea","0x1f1ef","0x1f1f2","0x1f1ef","0x1f1f4","0x1f1ef","0x1f1f5","0x1f1f0","0x1f1ea","0x1f1f0","0x1f1ec","0x1f1f0","0x1f1ed","0x1f1f0","0x1f1ee","0x1f1f0","0x1f1f2","0x1f1f0","0x1f1f3","0x1f1f0","0x1f1f5","0x1f1f0","0x1f1f7","0x1f1f0","0x1f1fc","0x1f1f0","0x1f1fe","0x1f1f0","0x1f1ff","0x1f1f1","0x1f1e6","0x1f1f1","0x1f1e7","0x1f1f1","0x1f1e8","0x1f1f1","0x1f1ee","0x1f1f1","0x1f1f0","0x1f1f1","0x1f1f7","0x1f1f1","0x1f1f8","0x1f1f1","0x1f1f9","0x1f1f1","0x1f1fa","0x1f1f1","0x1f1fb","0x1f1f1","0x1f1fe","0x1f1f2","0x1f1e6","0x1f1f2","0x1f1e8","0x1f1f2","0x1f1e9","0x1f1f2","0x1f1ea","0x1f1f2","0x1f1eb","0x1f1f2","0x1f1ec","0x1f1f2","0x1f1ed","0x1f1f2","0x1f1f0","0x1f1f2","0x1f1f1","0x1f1f2","0x1f1f2","0x1f1f2","0x1f1f3","0x1f1f2","0x1f1f4","0x1f1f2","0x1f1f5","0x1f1f2","0x1f1f6","0x1f1f2","0x1f1f7","0x1f1f2","0x1f1f8","0x1f1f2","0x1f1f9","0x1f1f2","0x1f1fa","0x1f1f2","0x1f1fb","0x1f1f2","0x1f1fc","0x1f1f2","0x1f1fd","0x1f1f2","0x1f1fe","0x1f1f2","0x1f1ff","0x1f1f3","0x1f1e6","0x1f1f3","0x1f1e8","0x1f1f3","0x1f1ea","0x1f1f3","0x1f1eb","0x1f1f3","0x1f1ec","0x1f1f3","0x1f1ee","0x1f1f3","0x1f1f1","0x1f1f3","0x1f1f4","0x1f1f3","0x1f1f5","0x1f1f3","0x1f1f7","0x1f1f3","0x1f1fa","0x1f1f3","0x1f1ff","0x1f1f4","0x1f1f2","0x1f1f5","0x1f1e6","0x1f1f5","0x1f1ea","0x1f1f5","0x1f1eb","0x1f1f5","0x1f1ec","0x1f1f5","0x1f1ed","0x1f1f5","0x1f1f0","0x1f1f5","0x1f1f1","0x1f1f5","0x1f1f2","0x1f1f5","0x1f1f3","0x1f1f5","0x1f1f7","0x1f1f5","0x1f1f8","0x1f1f5","0x1f1f9","0x1f1f5","0x1f1fc","0x1f1f5","0x1f1fe","0x1f1f6","0x1f1e6","0x1f1f7","0x1f1ea","0x1f1f7","0x1f1f4","0x1f1f7","0x1f1f8","0x1f1f7","0x1f1fa","0x1f1f7","0x1f1fc","0x1f1f8","0x1f1e6","0x1f1f8","0x1f1e7","0x1f1f8","0x1f1e8","0x1f1f8","0x1f1e9","0x1f1f8","0x1f1ea","0x1f1f8","0x1f1ec","0x1f1f8","0x1f1ed","0x1f1f8","0x1f1ee","0x1f1f8","0x1f1ef","0x1f1f8","0x1f1f0","0x1f1f8","0x1f1f1","0x1f1f8","0x1f1f2","0x1f1f8","0x1f1f3","0x1f1f8","0x1f1f4","0x1f1f8","0x1f1f7","0x1f1f8","0x1f1f8","0x1f1f8","0x1f1f9","0x1f1f8","0x1f1fb","0x1f1f8","0x1f1fd","0x1f1f8","0x1f1fe","0x1f1f8","0x1f1ff","0x1f1f9","0x1f1e6","0x1f1f9","0x1f1e8","0x1f1f9","0x1f1e9","0x1f1f9","0x1f1eb","0x1f1f9","0x1f1ec","0x1f1f9","0x1f1ed","0x1f1f9","0x1f1ef","0x1f1f9","0x1f1f0","0x1f1f9","0x1f1f1","0x1f1f9","0x1f1f2","0x1f1f9","0x1f1f3","0x1f1f9","0x1f1f4","0x1f1f9","0x1f1f7","0x1f1f9","0x1f1f9","0x1f1f9","0x1f1fb","0x1f1f9","0x1f1fc","0x1f1f9","0x1f1ff","0x1f1fa","0x1f1e6","0x1f1fa","0x1f1ec","0x1f1fa","0x1f1f2","0x1f1fa","0x1f1f3","0x1f1fa","0x1f1f8","0x1f1fa","0x1f1fe","0x1f1fa","0x1f1ff","0x1f1fb","0x1f1e6","0x1f1fb","0x1f1e8","0x1f1fb","0x1f1ea","0x1f1fb","0x1f1ec","0x1f1fb","0x1f1ee","0x1f1fb","0x1f1f3","0x1f1fb","0x1f1fa","0x1f1fc","0x1f1eb","0x1f1fc","0x1f1f8","0x1f1fd","0x1f1f0","0x1f1fe","0x1f1ea","0x1f1fe","0x1f1f9","0x1f1ff","0x1f1e6","0x1f1ff","0x1f1f2","0x1f1ff","0x1f1fc","0x1f3f4","0xe0067","0xe0062","0xe0065","0xe006e","0xe0067","0xe007f","0x1f3f4","0xe0067","0xe0062","0xe0073","0xe0063","0xe0074","0xe007f","0x1f3f4","0xe0067","0xe0062","0xe0077","0xe006c","0xe0073","0xe007f"]}},Se=Object.prototype.hasOwnProperty,z=Object.keys||function(A){var T=[];for(var B in A)Se.call(A,B)&&T.push(B);return T};function Q(A,T){for(var B=z(A),X,ue=0,ie=B.length;ue<ie;ue++)X=B[ue],T[X]=A[X]||T[X]}function ce(A,T){for(var B=0,X=A.length;B<X;B++)T[B]=A[B]}function se(A,T){var B=Array.isArray(A),X=T||(B?new Array(A.length):{});return B?ce(A,X):Q(A,X),X}d.prototype.get=function(A){return se(re[A])},d.prototype.mac_address=function(A){A=O(A),A.separator||(A.separator=A.networkVersion?".":":");var T="ABCDEF1234567890",B="";return A.networkVersion?B=this.n(this.string,3,{pool:T,length:4}).join(A.separator):B=this.n(this.string,6,{pool:T,length:2}).join(A.separator),B},d.prototype.normal=function(A){if(A=O(A,{mean:0,dev:1,pool:[]}),C(A.pool.constructor!==Array,"Chance: The pool option must be a valid array."),C(typeof A.mean!="number","Chance: Mean (mean) must be a number"),C(typeof A.dev!="number","Chance: Standard deviation (dev) must be a number"),A.pool.length>0)return this.normal_pool(A);var T,B,X,ue,ie=A.mean,Te=A.dev;do B=this.random()*2-1,X=this.random()*2-1,T=B*B+X*X;while(T>=1);return ue=B*Math.sqrt(-2*Math.log(T)/T),Te*ue+ie},d.prototype.normal_pool=function(A){var T=0;do{var B=Math.round(this.normal({mean:A.mean,dev:A.dev}));if(B<A.pool.length&&B>=0)return A.pool[B];T++}while(T<100);throw new RangeError("Chance: Your pool is too small for the given mean and standard deviation. Please adjust.")},d.prototype.radio=function(A){A=O(A,{side:"?"});var T="";switch(A.side.toLowerCase()){case"east":case"e":T="W";break;case"west":case"w":T="K";break;default:T=this.character({pool:"KW"});break}return T+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})},d.prototype.set=function(A,T){typeof A=="string"?re[A]=T:re=se(A,re)},d.prototype.tv=function(A){return this.radio(A)},d.prototype.cnpj=function(){var A=this.n(this.natural,8,{max:9}),T=2+A[7]*6+A[6]*7+A[5]*8+A[4]*9+A[3]*2+A[2]*3+A[1]*4+A[0]*5;T=11-T%11,T>=10&&(T=0);var B=T*2+3+A[7]*7+A[6]*8+A[5]*9+A[4]*2+A[3]*3+A[2]*4+A[1]*5+A[0]*6;return B=11-B%11,B>=10&&(B=0),""+A[0]+A[1]+"."+A[2]+A[3]+A[4]+"."+A[5]+A[6]+A[7]+"/0001-"+T+B},d.prototype.emotion=function(){return this.pick(this.get("emotions"))},d.prototype.mersenne_twister=function(A){return new q(A)},d.prototype.blueimp_md5=function(){return new te};var q=function(A){A===void 0&&(A=Math.floor(Math.random()*Math.pow(10,13))),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(A)};q.prototype.init_genrand=function(A){for(this.mt[0]=A>>>0,this.mti=1;this.mti<this.N;this.mti++)A=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(((A&4294901760)>>>16)*1812433253<<16)+(A&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0},q.prototype.init_by_array=function(A,T){var B=1,X=0,ue,ie;for(this.init_genrand(19650218),ue=this.N>T?this.N:T;ue;ue--)ie=this.mt[B-1]^this.mt[B-1]>>>30,this.mt[B]=(this.mt[B]^(((ie&4294901760)>>>16)*1664525<<16)+(ie&65535)*1664525)+A[X]+X,this.mt[B]>>>=0,B++,X++,B>=this.N&&(this.mt[0]=this.mt[this.N-1],B=1),X>=T&&(X=0);for(ue=this.N-1;ue;ue--)ie=this.mt[B-1]^this.mt[B-1]>>>30,this.mt[B]=(this.mt[B]^(((ie&4294901760)>>>16)*1566083941<<16)+(ie&65535)*1566083941)-B,this.mt[B]>>>=0,B++,B>=this.N&&(this.mt[0]=this.mt[this.N-1],B=1);this.mt[0]=2147483648},q.prototype.genrand_int32=function(){var A,T=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var B;for(this.mti===this.N+1&&this.init_genrand(5489),B=0;B<this.N-this.M;B++)A=this.mt[B]&this.UPPER_MASK|this.mt[B+1]&this.LOWER_MASK,this.mt[B]=this.mt[B+this.M]^A>>>1^T[A&1];for(;B<this.N-1;B++)A=this.mt[B]&this.UPPER_MASK|this.mt[B+1]&this.LOWER_MASK,this.mt[B]=this.mt[B+(this.M-this.N)]^A>>>1^T[A&1];A=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^A>>>1^T[A&1],this.mti=0}return A=this.mt[this.mti++],A^=A>>>11,A^=A<<7&2636928640,A^=A<<15&4022730752,A^=A>>>18,A>>>0},q.prototype.genrand_int31=function(){return this.genrand_int32()>>>1},q.prototype.genrand_real1=function(){return this.genrand_int32()*(1/4294967295)},q.prototype.random=function(){return this.genrand_int32()*(1/4294967296)},q.prototype.genrand_real3=function(){return(this.genrand_int32()+.5)*(1/4294967296)},q.prototype.genrand_res53=function(){var A=this.genrand_int32()>>>5,T=this.genrand_int32()>>>6;return(A*67108864+T)*(1/9007199254740992)};var te=function(){};te.prototype.VERSION="1.0.1",te.prototype.safe_add=function(T,B){var X=(T&65535)+(B&65535),ue=(T>>16)+(B>>16)+(X>>16);return ue<<16|X&65535},te.prototype.bit_roll=function(A,T){return A<<T|A>>>32-T},te.prototype.md5_cmn=function(A,T,B,X,ue,ie){return this.safe_add(this.bit_roll(this.safe_add(this.safe_add(T,A),this.safe_add(X,ie)),ue),B)},te.prototype.md5_ff=function(A,T,B,X,ue,ie,Te){return this.md5_cmn(T&B|~T&X,A,T,ue,ie,Te)},te.prototype.md5_gg=function(A,T,B,X,ue,ie,Te){return this.md5_cmn(T&X|B&~X,A,T,ue,ie,Te)},te.prototype.md5_hh=function(A,T,B,X,ue,ie,Te){return this.md5_cmn(T^B^X,A,T,ue,ie,Te)},te.prototype.md5_ii=function(A,T,B,X,ue,ie,Te){return this.md5_cmn(B^(T|~X),A,T,ue,ie,Te)},te.prototype.binl_md5=function(A,T){A[T>>5]|=128<<T%32,A[(T+64>>>9<<4)+14]=T;var B,X,ue,ie,Te,je=1732584193,yt=-271733879,tt=-1732584194,Ze=271733878;for(B=0;B<A.length;B+=16)X=je,ue=yt,ie=tt,Te=Ze,je=this.md5_ff(je,yt,tt,Ze,A[B],7,-680876936),Ze=this.md5_ff(Ze,je,yt,tt,A[B+1],12,-389564586),tt=this.md5_ff(tt,Ze,je,yt,A[B+2],17,606105819),yt=this.md5_ff(yt,tt,Ze,je,A[B+3],22,-1044525330),je=this.md5_ff(je,yt,tt,Ze,A[B+4],7,-176418897),Ze=this.md5_ff(Ze,je,yt,tt,A[B+5],12,1200080426),tt=this.md5_ff(tt,Ze,je,yt,A[B+6],17,-1473231341),yt=this.md5_ff(yt,tt,Ze,je,A[B+7],22,-45705983),je=this.md5_ff(je,yt,tt,Ze,A[B+8],7,1770035416),Ze=this.md5_ff(Ze,je,yt,tt,A[B+9],12,-1958414417),tt=this.md5_ff(tt,Ze,je,yt,A[B+10],17,-42063),yt=this.md5_ff(yt,tt,Ze,je,A[B+11],22,-1990404162),je=this.md5_ff(je,yt,tt,Ze,A[B+12],7,1804603682),Ze=this.md5_ff(Ze,je,yt,tt,A[B+13],12,-40341101),tt=this.md5_ff(tt,Ze,je,yt,A[B+14],17,-1502002290),yt=this.md5_ff(yt,tt,Ze,je,A[B+15],22,1236535329),je=this.md5_gg(je,yt,tt,Ze,A[B+1],5,-165796510),Ze=this.md5_gg(Ze,je,yt,tt,A[B+6],9,-1069501632),tt=this.md5_gg(tt,Ze,je,yt,A[B+11],14,643717713),yt=this.md5_gg(yt,tt,Ze,je,A[B],20,-373897302),je=this.md5_gg(je,yt,tt,Ze,A[B+5],5,-701558691),Ze=this.md5_gg(Ze,je,yt,tt,A[B+10],9,38016083),tt=this.md5_gg(tt,Ze,je,yt,A[B+15],14,-660478335),yt=this.md5_gg(yt,tt,Ze,je,A[B+4],20,-405537848),je=this.md5_gg(je,yt,tt,Ze,A[B+9],5,568446438),Ze=this.md5_gg(Ze,je,yt,tt,A[B+14],9,-1019803690),tt=this.md5_gg(tt,Ze,je,yt,A[B+3],14,-187363961),yt=this.md5_gg(yt,tt,Ze,je,A[B+8],20,1163531501),je=this.md5_gg(je,yt,tt,Ze,A[B+13],5,-1444681467),Ze=this.md5_gg(Ze,je,yt,tt,A[B+2],9,-51403784),tt=this.md5_gg(tt,Ze,je,yt,A[B+7],14,1735328473),yt=this.md5_gg(yt,tt,Ze,je,A[B+12],20,-1926607734),je=this.md5_hh(je,yt,tt,Ze,A[B+5],4,-378558),Ze=this.md5_hh(Ze,je,yt,tt,A[B+8],11,-2022574463),tt=this.md5_hh(tt,Ze,je,yt,A[B+11],16,1839030562),yt=this.md5_hh(yt,tt,Ze,je,A[B+14],23,-35309556),je=this.md5_hh(je,yt,tt,Ze,A[B+1],4,-1530992060),Ze=this.md5_hh(Ze,je,yt,tt,A[B+4],11,1272893353),tt=this.md5_hh(tt,Ze,je,yt,A[B+7],16,-155497632),yt=this.md5_hh(yt,tt,Ze,je,A[B+10],23,-1094730640),je=this.md5_hh(je,yt,tt,Ze,A[B+13],4,681279174),Ze=this.md5_hh(Ze,je,yt,tt,A[B],11,-358537222),tt=this.md5_hh(tt,Ze,je,yt,A[B+3],16,-722521979),yt=this.md5_hh(yt,tt,Ze,je,A[B+6],23,76029189),je=this.md5_hh(je,yt,tt,Ze,A[B+9],4,-640364487),Ze=this.md5_hh(Ze,je,yt,tt,A[B+12],11,-421815835),tt=this.md5_hh(tt,Ze,je,yt,A[B+15],16,530742520),yt=this.md5_hh(yt,tt,Ze,je,A[B+2],23,-995338651),je=this.md5_ii(je,yt,tt,Ze,A[B],6,-198630844),Ze=this.md5_ii(Ze,je,yt,tt,A[B+7],10,1126891415),tt=this.md5_ii(tt,Ze,je,yt,A[B+14],15,-1416354905),yt=this.md5_ii(yt,tt,Ze,je,A[B+5],21,-57434055),je=this.md5_ii(je,yt,tt,Ze,A[B+12],6,1700485571),Ze=this.md5_ii(Ze,je,yt,tt,A[B+3],10,-1894986606),tt=this.md5_ii(tt,Ze,je,yt,A[B+10],15,-1051523),yt=this.md5_ii(yt,tt,Ze,je,A[B+1],21,-2054922799),je=this.md5_ii(je,yt,tt,Ze,A[B+8],6,1873313359),Ze=this.md5_ii(Ze,je,yt,tt,A[B+15],10,-30611744),tt=this.md5_ii(tt,Ze,je,yt,A[B+6],15,-1560198380),yt=this.md5_ii(yt,tt,Ze,je,A[B+13],21,1309151649),je=this.md5_ii(je,yt,tt,Ze,A[B+4],6,-145523070),Ze=this.md5_ii(Ze,je,yt,tt,A[B+11],10,-1120210379),tt=this.md5_ii(tt,Ze,je,yt,A[B+2],15,718787259),yt=this.md5_ii(yt,tt,Ze,je,A[B+9],21,-343485551),je=this.safe_add(je,X),yt=this.safe_add(yt,ue),tt=this.safe_add(tt,ie),Ze=this.safe_add(Ze,Te);return[je,yt,tt,Ze]},te.prototype.binl2rstr=function(A){var T,B="";for(T=0;T<A.length*32;T+=8)B+=String.fromCharCode(A[T>>5]>>>T%32&255);return B},te.prototype.rstr2binl=function(A){var T,B=[];for(B[(A.length>>2)-1]=void 0,T=0;T<B.length;T+=1)B[T]=0;for(T=0;T<A.length*8;T+=8)B[T>>5]|=(A.charCodeAt(T/8)&255)<<T%32;return B},te.prototype.rstr_md5=function(A){return this.binl2rstr(this.binl_md5(this.rstr2binl(A),A.length*8))},te.prototype.rstr_hmac_md5=function(A,T){var B,X=this.rstr2binl(A),ue=[],ie=[],Te;for(ue[15]=ie[15]=void 0,X.length>16&&(X=this.binl_md5(X,A.length*8)),B=0;B<16;B+=1)ue[B]=X[B]^909522486,ie[B]=X[B]^1549556828;return Te=this.binl_md5(ue.concat(this.rstr2binl(T)),512+T.length*8),this.binl2rstr(this.binl_md5(ie.concat(Te),640))},te.prototype.rstr2hex=function(A){var T="0123456789abcdef",B="",X,ue;for(ue=0;ue<A.length;ue+=1)X=A.charCodeAt(ue),B+=T.charAt(X>>>4&15)+T.charAt(X&15);return B},te.prototype.str2rstr_utf8=function(A){return unescape(encodeURIComponent(A))},te.prototype.raw_md5=function(A){return this.rstr_md5(this.str2rstr_utf8(A))},te.prototype.hex_md5=function(A){return this.rstr2hex(this.raw_md5(A))},te.prototype.raw_hmac_md5=function(A,T){return this.rstr_hmac_md5(this.str2rstr_utf8(A),this.str2rstr_utf8(T))},te.prototype.hex_hmac_md5=function(A,T){return this.rstr2hex(this.raw_hmac_md5(A,T))},te.prototype.md5=function(A,T,B){return T?B?this.raw_hmac_md5(T,A):this.hex_hmac_md5(T,A):B?this.raw_md5(A):this.hex_md5(A)},Ge.exports&&(w=Ge.exports=d),w.Chance=d,g=[],y=function(){return d}.apply(w,g),y!==void 0&&(Ge.exports=y),typeof importScripts<"u"&&(chance=new d,self.Chance=d),typeof window=="object"&&typeof window.document=="object"&&(window.Chance=d,window.chance=new d)})()},97783:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.skipUntil=void 0;var l=u(65212),g=u(17214),y=u(19724),x=u(5717);function f(p){return l.operate(function(h,E){var v=!1,m=g.createOperatorSubscriber(E,function(){m?.unsubscribe(),v=!0},x.noop);y.innerFrom(p).subscribe(m),h.subscribe(g.createOperatorSubscriber(E,function(S){return v&&E.next(S)}))})}w.skipUntil=f},97813:(Ge,w,u)=>{"use strict";u.d(w,{A:()=>l});function l(g){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},l(g)}},97816:(Ge,w,u)=>{"use strict";u.d(w,{xP:()=>q});var l=u(9594),g=u(71468),y=u(25508),x=u(74070),f=u(96540);function p(te){return te.replace(te[0],te[0].toUpperCase())}function h(te){let A=0;for(const T in te)A++;return A}function E(te){return te.type==="query"}function v(te){return te.type==="mutation"}function m(te){return te.type==="infinitequery"}function S(te,...A){return Object.assign(te,...A)}var d=Symbol();function O(te){const A=(0,f.useRef)(te),T=(0,f.useMemo)(()=>(0,l.$J)(A.current,te),[te]);return(0,f.useEffect)(()=>{A.current!==T&&(A.current=T)},[T]),T}function R(te){const A=(0,f.useRef)(te);return(0,f.useEffect)(()=>{(0,g.shallowEqual)(A.current,te)||(A.current=te)},[te]),(0,g.shallowEqual)(A.current,te)?A.current:te}var C=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",L=C(),j=()=>typeof navigator<"u"&&navigator.product==="ReactNative",I=j(),U=()=>L||I?f.useLayoutEffect:f.useEffect,$=U(),ee=te=>te.isUninitialized?{...te,isUninitialized:!1,isFetching:!0,isLoading:te.data===void 0,status:l.RE.pending}:te;function re(te,...A){const T={};return A.forEach(B=>{T[B]=te[B]}),T}var Se=["data","status","isLoading","isSuccess","isError","error"];function z({api:te,moduleOptions:{batch:A,hooks:{useDispatch:T,useSelector:B,useStore:X},unstable__sideEffectsInRender:ue,createSelector:ie},serializeQueryArgs:Te,context:je}){const yt=ue?$t=>$t():f.useEffect;return{buildQueryHooks:Wt,buildInfiniteQueryHooks:Tn,buildMutationHook:bn,usePrefetch:Ne};function tt($t,Ct,Z){if(Ct?.endpointName&&$t.isUninitialized){const{endpointName:Me}=Ct,lt=je.endpointDefinitions[Me];Z!==l.hT&&Te({queryArgs:Ct.originalArgs,endpointDefinition:lt,endpointName:Me})===Te({queryArgs:Z,endpointDefinition:lt,endpointName:Me})&&(Ct=void 0)}let me=$t.isSuccess?$t.data:Ct?.data;me===void 0&&(me=$t.data);const ke=me!==void 0,Ee=$t.isLoading,_e=(!Ct||Ct.isLoading||Ct.isUninitialized)&&!ke&&Ee,ge=$t.isSuccess||ke&&(Ee&&!Ct?.isError||$t.isUninitialized);return{...$t,data:me,currentData:$t.data,isFetching:Ee,isLoading:_e,isSuccess:ge}}function Ze($t,Ct,Z){if(Ct?.endpointName&&$t.isUninitialized){const{endpointName:Me}=Ct,lt=je.endpointDefinitions[Me];Z!==l.hT&&Te({queryArgs:Ct.originalArgs,endpointDefinition:lt,endpointName:Me})===Te({queryArgs:Z,endpointDefinition:lt,endpointName:Me})&&(Ct=void 0)}let me=$t.isSuccess?$t.data:Ct?.data;me===void 0&&(me=$t.data);const ke=me!==void 0,Ee=$t.isLoading,_e=(!Ct||Ct.isLoading||Ct.isUninitialized)&&!ke&&Ee,ge=$t.isSuccess||Ee&&ke;return{...$t,data:me,currentData:$t.data,isFetching:Ee,isLoading:_e,isSuccess:ge}}function Ne($t,Ct){const Z=T(),me=R(Ct);return(0,f.useCallback)((ke,Ee)=>Z(te.util.prefetch($t,ke,{...me,...Ee})),[$t,Z,me])}function it($t,Ct,{refetchOnReconnect:Z,refetchOnFocus:me,refetchOnMountOrArgChange:ke,skip:Ee=!1,pollingInterval:_e=0,skipPollingIfUnfocused:ge=!1,...Me}={}){const{initiate:lt}=te.endpoints[$t],Ft=T(),Et=(0,f.useRef)(void 0);if(!Et.current){const Cn=Ft(te.internalActions.internal_getRTKQSubscriptions());Et.current=Cn}const Zt=O(Ee?l.hT:Ct),nn=R({refetchOnReconnect:Z,refetchOnFocus:me,pollingInterval:_e,skipPollingIfUnfocused:ge}),Pn=Me.initialPageParam,rn=R(Pn),Vt=(0,f.useRef)(void 0);let{queryCacheKey:Kn,requestId:ur}=Vt.current||{},on=!1;Kn&&ur&&(on=Et.current.isRequestSubscribed(Kn,ur));const tr=!on&&Vt.current!==void 0;return yt(()=>{tr&&(Vt.current=void 0)},[tr]),yt(()=>{const Cn=Vt.current;if(typeof process<"u",Zt===l.hT){Cn?.unsubscribe(),Vt.current=void 0;return}const Wn=Vt.current?.subscriptionOptions;if(!Cn||Cn.arg!==Zt){Cn?.unsubscribe();const er=Ft(lt(Zt,{subscriptionOptions:nn,forceRefetch:ke,...m(je.endpointDefinitions[$t])?{initialPageParam:rn}:{}}));Vt.current=er}else nn!==Wn&&Cn.updateSubscriptionOptions(nn)},[Ft,lt,ke,Zt,nn,tr,rn,$t]),[Vt,Ft,lt,nn]}function Rt($t,Ct){return(me,{skip:ke=!1,selectFromResult:Ee}={})=>{const{select:_e}=te.endpoints[$t],ge=O(ke?l.hT:me),Me=(0,f.useRef)(void 0),lt=(0,f.useMemo)(()=>ie([_e(ge),(Pn,rn)=>rn,Pn=>ge],Ct,{memoizeOptions:{resultEqualityCheck:g.shallowEqual}}),[_e,ge]),Ft=(0,f.useMemo)(()=>Ee?ie([lt],Ee,{devModeChecks:{identityFunctionCheck:"never"}}):lt,[lt,Ee]),Et=B(Pn=>Ft(Pn,Me.current),g.shallowEqual),Zt=X(),nn=lt(Zt.getState(),Me.current);return $(()=>{Me.current=nn},[nn]),Et}}function Dn($t){(0,f.useEffect)(()=>()=>{$t.current?.unsubscribe?.(),$t.current=void 0},[$t])}function Mt($t){if(!$t.current)throw new Error((0,x.gk)(38));return $t.current.refetch()}function Wt($t){const Ct=(ke,Ee={})=>{const[_e]=it($t,ke,Ee);return Dn(_e),(0,f.useMemo)(()=>({refetch:()=>Mt(_e)}),[_e])},Z=({refetchOnReconnect:ke,refetchOnFocus:Ee,pollingInterval:_e=0,skipPollingIfUnfocused:ge=!1}={})=>{const{initiate:Me}=te.endpoints[$t],lt=T(),[Ft,Et]=(0,f.useState)(d),Zt=(0,f.useRef)(void 0),nn=R({refetchOnReconnect:ke,refetchOnFocus:Ee,pollingInterval:_e,skipPollingIfUnfocused:ge});yt(()=>{const Kn=Zt.current?.subscriptionOptions;nn!==Kn&&Zt.current?.updateSubscriptionOptions(nn)},[nn]);const Pn=(0,f.useRef)(nn);yt(()=>{Pn.current=nn},[nn]);const rn=(0,f.useCallback)(function(Kn,ur=!1){let on;return A(()=>{Zt.current?.unsubscribe(),Zt.current=on=lt(Me(Kn,{subscriptionOptions:Pn.current,forceRefetch:!ur})),Et(Kn)}),on},[lt,Me]),Vt=(0,f.useCallback)(()=>{Zt.current?.queryCacheKey&<(te.internalActions.removeQueryResult({queryCacheKey:Zt.current?.queryCacheKey}))},[lt]);return(0,f.useEffect)(()=>()=>{Zt?.current?.unsubscribe()},[]),(0,f.useEffect)(()=>{Ft!==d&&!Zt.current&&rn(Ft,!0)},[Ft,rn]),(0,f.useMemo)(()=>[rn,Ft,{reset:Vt}],[rn,Ft,Vt])},me=Rt($t,tt);return{useQueryState:me,useQuerySubscription:Ct,useLazyQuerySubscription:Z,useLazyQuery(ke){const[Ee,_e,{reset:ge}]=Z(ke),Me=me(_e,{...ke,skip:_e===d}),lt=(0,f.useMemo)(()=>({lastArg:_e}),[_e]);return(0,f.useMemo)(()=>[Ee,{...Me,reset:ge},lt],[Ee,Me,ge,lt])},useQuery(ke,Ee){const _e=Ct(ke,Ee),ge=me(ke,{selectFromResult:ke===l.hT||Ee?.skip?void 0:ee,...Ee}),Me=re(ge,...Se);return(0,f.useDebugValue)(Me),(0,f.useMemo)(()=>({...ge,..._e}),[ge,_e])}}}function Tn($t){const Ct=(me,ke={})=>{const[Ee,_e,ge,Me]=it($t,me,ke),lt=(0,f.useRef)(Me);yt(()=>{lt.current=Me},[Me]);const Ft=(0,f.useCallback)(function(nn,Pn){let rn;return A(()=>{Ee.current?.unsubscribe(),Ee.current=rn=_e(ge(nn,{subscriptionOptions:lt.current,direction:Pn}))}),rn},[Ee,_e,ge]);Dn(Ee);const Et=O(ke.skip?l.hT:me),Zt=(0,f.useCallback)(()=>Mt(Ee),[Ee]);return(0,f.useMemo)(()=>({trigger:Ft,refetch:Zt,fetchNextPage:()=>Ft(Et,"forward"),fetchPreviousPage:()=>Ft(Et,"backward")}),[Zt,Ft,Et])},Z=Rt($t,Ze);return{useInfiniteQueryState:Z,useInfiniteQuerySubscription:Ct,useInfiniteQuery(me,ke){const{refetch:Ee,fetchNextPage:_e,fetchPreviousPage:ge}=Ct(me,ke),Me=Z(me,{selectFromResult:me===l.hT||ke?.skip?void 0:ee,...ke}),lt=re(Me,...Se,"hasNextPage","hasPreviousPage");return(0,f.useDebugValue)(lt),(0,f.useMemo)(()=>({...Me,fetchNextPage:_e,fetchPreviousPage:ge,refetch:Ee}),[Me,_e,ge,Ee])}}}function bn($t){return({selectFromResult:Ct,fixedCacheKey:Z}={})=>{const{select:me,initiate:ke}=te.endpoints[$t],Ee=T(),[_e,ge]=(0,f.useState)();(0,f.useEffect)(()=>()=>{_e?.arg.fixedCacheKey||_e?.reset()},[_e]);const Me=(0,f.useCallback)(function(Kn){const ur=Ee(ke(Kn,{fixedCacheKey:Z}));return ge(ur),ur},[Ee,ke,Z]),{requestId:lt}=_e||{},Ft=(0,f.useMemo)(()=>me({fixedCacheKey:Z,requestId:_e?.requestId}),[Z,_e,me]),Et=(0,f.useMemo)(()=>Ct?ie([Ft],Ct):Ft,[Ct,Ft]),Zt=B(Et,g.shallowEqual),nn=Z==null?_e?.arg.originalArgs:void 0,Pn=(0,f.useCallback)(()=>{A(()=>{_e&&ge(void 0),Z&&Ee(te.internalActions.removeMutationResult({requestId:lt,fixedCacheKey:Z}))})},[Ee,Z,_e,lt]),rn=re(Zt,...Se,"endpointName");(0,f.useDebugValue)(rn);const Vt=(0,f.useMemo)(()=>({...Zt,originalArgs:nn,reset:Pn}),[Zt,nn,Pn]);return(0,f.useMemo)(()=>[Me,Vt],[Me,Vt])}}}var Q=Symbol(),ce=({batch:te=g.batch,hooks:A={useDispatch:g.useDispatch,useSelector:g.useSelector,useStore:g.useStore},createSelector:T=y.Mz,unstable__sideEffectsInRender:B=!1,...X}={})=>({name:Q,init(ue,{serializeQueryArgs:ie},Te){const je=ue,{buildQueryHooks:yt,buildInfiniteQueryHooks:tt,buildMutationHook:Ze,usePrefetch:Ne}=z({api:ue,moduleOptions:{batch:te,hooks:A,unstable__sideEffectsInRender:B,createSelector:T},serializeQueryArgs:ie,context:Te});return S(je,{usePrefetch:Ne}),S(Te,{batch:te}),{injectEndpoint(it,Rt){if(E(Rt)){const{useQuery:Dn,useLazyQuery:Mt,useLazyQuerySubscription:Wt,useQueryState:Tn,useQuerySubscription:bn}=yt(it);S(je.endpoints[it],{useQuery:Dn,useLazyQuery:Mt,useLazyQuerySubscription:Wt,useQueryState:Tn,useQuerySubscription:bn}),ue[`use${p(it)}Query`]=Dn,ue[`useLazy${p(it)}Query`]=Mt}if(v(Rt)){const Dn=Ze(it);S(je.endpoints[it],{useMutation:Dn}),ue[`use${p(it)}Mutation`]=Dn}else if(m(Rt)){const{useInfiniteQuery:Dn,useInfiniteQuerySubscription:Mt,useInfiniteQueryState:Wt}=tt(it);S(je.endpoints[it],{useInfiniteQuery:Dn,useInfiniteQuerySubscription:Mt,useInfiniteQueryState:Wt}),ue[`use${p(it)}InfiniteQuery`]=Dn}}}}});function se(te){const A=te.context||ReactReduxContext;if(useContext(A))throw new Error(_formatProdErrorMessage4(35));const[B]=React.useState(()=>configureStore({reducer:{[te.api.reducerPath]:te.api.reducer},middleware:X=>X().concat(te.api.middleware)}));return useEffect4(()=>te.setupListeners===!1?void 0:setupListeners(B.dispatch,te.setupListeners),[te.setupListeners,B.dispatch]),React.createElement(Provider,{store:B,context:A},te.children)}var q=(0,l.l0)((0,l.m7)(),ce())},97843:(Ge,w,u)=>{"use strict";u.d(w,{S:()=>g});var l=u(64878);function g(y,x,f,p,h){return function(E,v){var m=f,S=x,d=0;E.subscribe((0,l._)(v,function(O){var R=d++;S=m?y(S,O,R):(m=!0,O),p&&v.next(S)},h&&function(){m&&v.next(S),v.complete()}))}}},98032:function(Ge,w,u){"use strict";var l=this&&this.__read||function(f,p){var h=typeof Symbol=="function"&&f[Symbol.iterator];if(!h)return f;var E=h.call(f),v,m=[],S;try{for(;(p===void 0||p-- >0)&&!(v=E.next()).done;)m.push(v.value)}catch(d){S={error:d}}finally{try{v&&!v.done&&(h=E.return)&&h.call(E)}finally{if(S)throw S.error}}return m},g=this&&this.__spreadArray||function(f,p){for(var h=0,E=p.length,v=f.length;h<E;h++,v++)f[v]=p[h];return f};Object.defineProperty(w,"__esModule",{value:!0}),w.concatWith=void 0;var y=u(96328);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return y.concat.apply(void 0,g([],l(f)))}w.concatWith=x},98183:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.createFind=w.find=void 0;var l=u(65212),g=u(17214);function y(f,p){return l.operate(x(f,p,"value"))}w.find=y;function x(f,p,h){var E=h==="index";return function(v,m){var S=0;v.subscribe(g.createOperatorSubscriber(m,function(d){var O=S++;f.call(p,d,O,v)&&(m.next(E?O:d),m.complete())},function(){m.next(E?-1:void 0),m.complete()}))}}w.createFind=x},98217:(Ge,w,u)=>{"use strict";u.d(w,{Ay:()=>R,Bs:()=>U,hX:()=>C,te:()=>$});var l=u(86717),g=u(83402),y=u(34338),x=u(11217),f=u(96702),p=u(30503),h=u(2871),E=u(44294),v=u(71064),m=u(82922),S=u(24778),d=u(4087);class O{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=l.A,this.supportedMediaTypes=null}getReadOptions(re,Se){if(Se){let z=Se.dataProjection?(0,m.Jt)(Se.dataProjection):this.readProjection(re);Se.extent&&z&&z.getUnits()==="tile-pixels"&&(z=(0,m.Jt)(z),z.setWorldExtent(Se.extent)),Se={dataProjection:z,featureProjection:Se.featureProjection}}return this.adaptOptions(Se)}adaptOptions(re){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},re)}getType(){return(0,d.b0)()}readFeature(re,Se){return(0,d.b0)()}readFeatures(re,Se){return(0,d.b0)()}readGeometry(re,Se){return(0,d.b0)()}readProjection(re){return(0,d.b0)()}writeFeature(re,Se){return(0,d.b0)()}writeFeatures(re,Se){return(0,d.b0)()}writeGeometry(re,Se){return(0,d.b0)()}}const R=O;function C(ee,re,Se){const z=Se?(0,m.Jt)(Se.featureProjection):null,Q=Se?(0,m.Jt)(Se.dataProjection):null;let ce=ee;if(z&&Q&&!(0,m.tI)(z,Q)){re&&(ce=ee.clone());const se=re?z:Q,q=re?Q:z;se.getUnits()==="tile-pixels"?ce.transform(se,q):ce.applyTransform((0,m.RG)(se,q))}if(re&&Se&&Se.decimals!==void 0){const se=Math.pow(10,Se.decimals),q=function(te){for(let A=0,T=te.length;A<T;++A)te[A]=Math.round(te[A]*se)/se;return te};ce===ee&&(ce=ee.clone()),ce.applyTransform(q)}return ce}function L(ee,re){const Se=re?getProjection(re.featureProjection):null,z=re?getProjection(re.dataProjection):null;return Se&&z&&!equivalentProjection(Se,z)?transformExtent(ee,z,Se):ee}const j={Point:E.A,LineString:x.A,Polygon:v.Ay,MultiPoint:p.A,MultiLineString:f.A,MultiPolygon:h.A};function I(ee,re,Se){return Array.isArray(re[0])?((0,g.mb)(ee,0,re,Se)||(ee=ee.slice(),(0,g.NK)(ee,0,re,Se)),ee):((0,g.PA)(ee,0,re,Se)||(ee=ee.slice(),(0,g.ug)(ee,0,re,Se)),ee)}function U(ee,re){const Se=ee.geometry;if(!Se)return[];if(Array.isArray(Se))return Se.map(ce=>U({...ee,geometry:ce})).flat();const z=Se.type==="MultiPolygon"?"Polygon":Se.type;if(z==="GeometryCollection"||z==="Circle")throw new Error("Unsupported geometry type: "+z);const Q=Se.layout.length;return C(new S.Ay(z,z==="Polygon"?I(Se.flatCoordinates,Se.ends,Q):Se.flatCoordinates,Se.ends?.flat(),Q,ee.properties||{},ee.id).enableSimplifyTransformed(),!1,re)}function $(ee,re){if(!ee)return null;if(Array.isArray(ee)){const z=ee.map(Q=>$(Q,re));return new y.A(z)}const Se=j[ee.type];return C(new Se(ee.flatCoordinates,ee.layout||"XY",ee.ends),!1,re)}},98581:(Ge,w,u)=>{"use strict";u.d(w,{S:()=>f});var l=u(88483),g=u(12059),y=u(61209),x=u(56315);function f(p,h){return new l.c(function(E){var v;return(0,x.N)(E,h,function(){v=p[g.l](),(0,x.N)(E,h,function(){var m,S,d;try{m=v.next(),S=m.value,d=m.done}catch(O){E.error(O);return}d?E.complete():E.next(S)},0,!0)}),function(){return(0,y.T)(v?.return)&&v.return()}})}},98590:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.connectable=void 0;var l=u(54427),g=u(48051),y=u(35884),x={connector:function(){return new l.Subject},resetOnDisconnect:!0};function f(p,h){h===void 0&&(h=x);var E=null,v=h.connector,m=h.resetOnDisconnect,S=m===void 0?!0:m,d=v(),O=new g.Observable(function(R){return d.subscribe(R)});return O.connect=function(){return(!E||E.closed)&&(E=y.defer(function(){return p}).subscribe(d),S&&E.add(function(){return d=v()})),E},O}w.connectable=f},98705:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.diffCss=x,w.cssDiff=void 0;var l=g(u(85969));function g(f){return f&&f.__esModule?f:{default:f}}var y=new l.default;w.cssDiff=y,y.tokenize=function(f){return f.split(/([{}:;,]|\s+)/)};function x(f,p,h){return y.diff(f,p,h)}},98820:(Ge,w,u)=>{"use strict";u.d(w,{m:()=>g});var l=u(61209);function g(y){return y&&(0,l.T)(y.schedule)}},98831:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.reversePatch=y;function u(x,f){var p=Object.keys(x);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(x);f&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(x,E).enumerable})),p.push.apply(p,h)}return p}function l(x){for(var f=1;f<arguments.length;f++){var p=arguments[f]!=null?arguments[f]:{};f%2?u(Object(p),!0).forEach(function(h){g(x,h,p[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(p)):u(Object(p)).forEach(function(h){Object.defineProperty(x,h,Object.getOwnPropertyDescriptor(p,h))})}return x}function g(x,f,p){return f in x?Object.defineProperty(x,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):x[f]=p,x}function y(x){return Array.isArray(x)?x.map(y).reverse():l(l({},x),{},{oldFileName:x.newFileName,oldHeader:x.newHeader,newFileName:x.oldFileName,newHeader:x.oldHeader,hunks:x.hunks.map(function(f){return{oldLines:f.newLines,oldStart:f.newStart,newLines:f.oldLines,newStart:f.oldStart,linedelimiters:f.linedelimiters,lines:f.lines.map(function(p){return p.startsWith("-")?"+".concat(p.slice(1)):p.startsWith("+")?"-".concat(p.slice(1)):p})}})})}},99054:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.startWith=void 0;var l=u(39546),g=u(26404),y=u(65212);function x(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var h=g.popScheduler(f);return y.operate(function(E,v){(h?l.concat(f,E,h):l.concat(f,E)).subscribe(v)})}w.startWith=x},99165:(Ge,w,u)=>{"use strict";u.d(w,{c:()=>x});var l=u(44838),g=u(49184),y=u(39697);function x(f,p,h){p===void 0&&(p=l.E);var E=(0,y.O)(f,p);return(0,g.n)(function(){return E},h)}},99245:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.queue=w.queueScheduler=void 0;var l=u(31983),g=u(32036);w.queueScheduler=new g.QueueScheduler(l.QueueAction),w.queue=w.queueScheduler},99380:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.iif=void 0;var l=u(35884);function g(y,x,f){return l.defer(function(){return y()?x:f})}w.iif=g},99517:(Ge,w,u)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.pipeFromArray=w.pipe=void 0;var l=u(87699);function g(){for(var x=[],f=0;f<arguments.length;f++)x[f]=arguments[f];return y(x)}w.pipe=g;function y(x){return x.length===0?l.identity:x.length===1?x[0]:function(p){return x.reduce(function(h,E){return E(h)},p)}}w.pipeFromArray=y},99672:(Ge,w,u)=>{"use strict";u.d(w,{bq:()=>x,sD:()=>y,wt:()=>f});var l=u(24836),g=u(93399);function y(p,h){if(!(0,g.Nf)())return h&&p?p.contains(h):!1;if(!p||!h)return!1;let E=h;for(;E!==null;){if(E===p)return!0;E.tagName==="SLOT"&&E.assignedSlot?E=E.assignedSlot.parentNode:(0,l.Ng)(E)?E=E.host:E=E.parentNode}return!1}const x=(p=document)=>{var h;if(!(0,g.Nf)())return p.activeElement;let E=p.activeElement;for(;E&&"shadowRoot"in E&&(!((h=E.shadowRoot)===null||h===void 0)&&h.activeElement);)E=E.shadowRoot.activeElement;return E};function f(p){return(0,g.Nf)()&&p.target.shadowRoot&&p.composedPath?p.composedPath()[0]:p.target}},99964:(Ge,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=u;function u(l){return typeof l=="string"}}}]); //# sourceMappingURL=7031.047b15171c23b248efa0.js.map
.
Edit
..
Edit
1117.145ac642f59357bc40d8.js
Edit
1117.145ac642f59357bc40d8.js.map
Edit
1118.c684d1aadf16a6c70620.js
Edit
1118.c684d1aadf16a6c70620.js.map
Edit
1122.5fbf0d7cd148c610616d.js
Edit
1122.5fbf0d7cd148c610616d.js.map
Edit
1142.a4b35a0e8699cafd901e.js
Edit
1142.a4b35a0e8699cafd901e.js.map
Edit
1162.81868b3ac499fa5ea04b.js
Edit
1162.81868b3ac499fa5ea04b.js.map
Edit
1183.7444f51e5996a7f23c7d.js
Edit
1183.7444f51e5996a7f23c7d.js.map
Edit
1282.ae38cac1b732d8ac1d96.js
Edit
1282.ae38cac1b732d8ac1d96.js.map
Edit
130.a58aaeea748f37ee6482.js
Edit
130.a58aaeea748f37ee6482.js.map
Edit
1419.59f53ae25085b28e1e11.js
Edit
1419.59f53ae25085b28e1e11.js.map
Edit
1420.e63ce495727f83b8887d.js
Edit
1420.e63ce495727f83b8887d.js.map
Edit
1438.ccdd05d7188edf4191ff.js
Edit
1438.ccdd05d7188edf4191ff.js.map
Edit
1446.fe7b1f4563629b80793f.js
Edit
1446.fe7b1f4563629b80793f.js.map
Edit
1484.3da94e44ecdadcd342d4.js
Edit
1484.3da94e44ecdadcd342d4.js.map
Edit
1492.4026c6e7130c3afdae87.js
Edit
1494.ef220afb67ff6c52c7af.js
Edit
1494.ef220afb67ff6c52c7af.js.map
Edit
1560.538cd2395be11ba4e2c9.js
Edit
1560.538cd2395be11ba4e2c9.js.map
Edit
1579.c391ef869d4f7bfc0d1c.js
Edit
1579.c391ef869d4f7bfc0d1c.js.map
Edit
1646.d7d87a40853795910533.js
Edit
1646.d7d87a40853795910533.js.map
Edit
1710.7db3f56c6714c0c340e0.js
Edit
1710.7db3f56c6714c0c340e0.js.map
Edit
1716.f71f518289da5d2229bc.js
Edit
1716.f71f518289da5d2229bc.js.map
Edit
1740.baf38e7ee007e1a6935e.js
Edit
1740.baf38e7ee007e1a6935e.js.map
Edit
1821.c9a2456dc8d78cf6b02f.js
Edit
1821.c9a2456dc8d78cf6b02f.js.map
Edit
1888.d33142738af4fbf8a230.js
Edit
1888.d33142738af4fbf8a230.js.map
Edit
1914.5f33b3c2133b5bb7ea6e.js
Edit
1914.5f33b3c2133b5bb7ea6e.js.map
Edit
198.65a768ff6c601d19ea3f.js
Edit
198.65a768ff6c601d19ea3f.js.map
Edit
1990.9171129a8deabb59bf30.js
Edit
1990.9171129a8deabb59bf30.js.map
Edit
2018.5ff00ee0456301c1cf43.js
Edit
2018.5ff00ee0456301c1cf43.js.map
Edit
205.2eb73847215c8d021cc9.js
Edit
205.2eb73847215c8d021cc9.js.map
Edit
2077.a5848ca4b4b9fdebca17.js
Edit
2077.a5848ca4b4b9fdebca17.js.map
Edit
2094.97e7f0876201e76a77fd.js
Edit
2094.97e7f0876201e76a77fd.js.map
Edit
2150.7576285186c713978b39.js
Edit
2150.7576285186c713978b39.js.map
Edit
2152.b55841e6f422682a3891.js
Edit
2152.b55841e6f422682a3891.js.map
Edit
221.0fc4d14d0a67f3a25d64.js
Edit
221.0fc4d14d0a67f3a25d64.js.map
Edit
2218.623d73bd0985ddf5f8c4.js
Edit
2218.623d73bd0985ddf5f8c4.js.map
Edit
2223.e65417164a45701ed9dc.js
Edit
2223.e65417164a45701ed9dc.js.map
Edit
2244.70c156ada2487a05595c.js
Edit
2244.70c156ada2487a05595c.js.map
Edit
2278.f887de0a65e1b784ea9f.js
Edit
2278.f887de0a65e1b784ea9f.js.map
Edit
2288.6a65ba08c6c0f4f83435.js
Edit
2288.6a65ba08c6c0f4f83435.js.map
Edit
2311.73e1a2b949d289f5d6c9.js
Edit
2311.73e1a2b949d289f5d6c9.js.map
Edit
2398.d142e32be48079fc63c0.js
Edit
2398.d142e32be48079fc63c0.js.map
Edit
2405.c1b37a7cc8182472f6a6.js
Edit
2405.c1b37a7cc8182472f6a6.js.map
Edit
2446.0418c7ea000998178d8b.js
Edit
2446.0418c7ea000998178d8b.js.map
Edit
2450.d73c024ff7273aebf911.js
Edit
2450.d73c024ff7273aebf911.js.map
Edit
2586.668c65b61e9ea31b5bca.js
Edit
2586.668c65b61e9ea31b5bca.js.map
Edit
265.ed6933785cc750cbd9ed.js
Edit
265.ed6933785cc750cbd9ed.js.map
Edit
2658.7f70ebc378803654a814.js
Edit
2658.7f70ebc378803654a814.js.map
Edit
2686.ae267304ddd1380c30c7.js
Edit
2686.ae267304ddd1380c30c7.js.map
Edit
2692.fa24ada7d987a7ee05f1.js
Edit
2692.fa24ada7d987a7ee05f1.js.map
Edit
2699.b79e57051a1a63376320.js
Edit
2699.b79e57051a1a63376320.js.map
Edit
2710.e1ac8e57578a838f5bd8.js
Edit
2710.e1ac8e57578a838f5bd8.js.map
Edit
2744.d6b14bf01022bdb8eab5.js
Edit
2744.d6b14bf01022bdb8eab5.js.map
Edit
2745.8049d948cb362dfc6cb3.js
Edit
2745.8049d948cb362dfc6cb3.js.map
Edit
2835.01beb5b1a252d779aad7.js
Edit
2835.01beb5b1a252d779aad7.js.map
Edit
2961.4b27b21453fdbb115dd4.js
Edit
2961.4b27b21453fdbb115dd4.js.map
Edit
2962.85c9dc0cca68efab5e0c.js
Edit
2962.85c9dc0cca68efab5e0c.js.map
Edit
2975.e64aaea6ff35a7d3b3fd.js
Edit
2975.e64aaea6ff35a7d3b3fd.js.map
Edit
3003.f51365051eb27cf765d8.js
Edit
3003.f51365051eb27cf765d8.js.map
Edit
3042.44bad7d2d0536000b808.js
Edit
3042.44bad7d2d0536000b808.js.map
Edit
3062.ad5844391370fcc7525a.js
Edit
3062.ad5844391370fcc7525a.js.map
Edit
3082.704af6779ad700a5fa42.js
Edit
3082.704af6779ad700a5fa42.js.map
Edit
3096.aed61083f1ba4803ae84.js
Edit
3096.aed61083f1ba4803ae84.js.map
Edit
3126.10c85e1f02105e470a69.js
Edit
3126.10c85e1f02105e470a69.js.map
Edit
3169.0b88a5a2340f70961599.js
Edit
3169.0b88a5a2340f70961599.js.map
Edit
3171.c79c28e2611563e2dbcb.js
Edit
3171.c79c28e2611563e2dbcb.js.map
Edit
3182.831f754ed3b6f10441a0.js
Edit
3182.831f754ed3b6f10441a0.js.map
Edit
3192.2cb90eadf3399270363e.js
Edit
3192.2cb90eadf3399270363e.js.map
Edit
3217.c6faaa4f5637068f90f3.js
Edit
3217.c6faaa4f5637068f90f3.js.map
Edit
3259.c8e4d6ad93201a56e49f.js
Edit
3259.c8e4d6ad93201a56e49f.js.map
Edit
3284.79c2897655286b0c1f6d.js
Edit
3284.79c2897655286b0c1f6d.js.map
Edit
3303.225dae64cff0c2280c3b.js
Edit
3303.225dae64cff0c2280c3b.js.map
Edit
3326.cabc370d66d7ecfbd2c3.js
Edit
3326.cabc370d66d7ecfbd2c3.js.map
Edit
344.85cff3029cbbb5463c7e.js
Edit
344.85cff3029cbbb5463c7e.js.map
Edit
3466.fda7da0cb4150e59da98.js
Edit
3466.fda7da0cb4150e59da98.js.map
Edit
3474.74dfd856a9528c758a57.js
Edit
3474.74dfd856a9528c758a57.js.map
Edit
348.fd20e2547f12dbed76c7.js
Edit
348.fd20e2547f12dbed76c7.js.map
Edit
3495.9c1ae6f61edf7aef207b.js
Edit
3495.9c1ae6f61edf7aef207b.js.map
Edit
3501.a0ee7c2b24136aa91eb5.js
Edit
3501.a0ee7c2b24136aa91eb5.js.map
Edit
3520.a3c2b474e2dcaf9879fc.js
Edit
3520.a3c2b474e2dcaf9879fc.js.map
Edit
3605.41e3c44dfe2ca2966198.js
Edit
3605.41e3c44dfe2ca2966198.js.map
Edit
362.e5ce68af98ee6713a4e7.js
Edit
362.e5ce68af98ee6713a4e7.js.map
Edit
3622.0b196041f825b42c5233.js
Edit
3622.0b196041f825b42c5233.js.map
Edit
3630.1ffe9229d5c27fd0823a.js
Edit
3630.1ffe9229d5c27fd0823a.js.map
Edit
3659.f5dc1bb19d36546aadb8.js
Edit
3659.f5dc1bb19d36546aadb8.js.map
Edit
3688.ec5e74c60569e9498687.js
Edit
3688.ec5e74c60569e9498687.js.map
Edit
3718.b570aa4fa35f8dfc686e.js
Edit
3718.b570aa4fa35f8dfc686e.js.map
Edit
3726.84ef8bb1304f7adbc7f3.js
Edit
3726.84ef8bb1304f7adbc7f3.js.map
Edit
398.ceeafcf522343c717c4b.js
Edit
398.ceeafcf522343c717c4b.js.map
Edit
4064.e52eb763993ad947e4a1.js
Edit
4064.e52eb763993ad947e4a1.js.map
Edit
407.594046bd73cc88c29e80.js
Edit
407.594046bd73cc88c29e80.js.map
Edit
4113.3fa5432815c4662eb03e.js
Edit
4113.3fa5432815c4662eb03e.js.map
Edit
4114.c4741f0a73781d3f87dc.js
Edit
4114.c4741f0a73781d3f87dc.js.map
Edit
4120.968e1408d894f8515330.js
Edit
4120.968e1408d894f8515330.js.map
Edit
4162.8b8a683fa98d677f9137.js
Edit
4162.8b8a683fa98d677f9137.js.map
Edit
4209.de7f2b850ee1292a67e5.js
Edit
4209.de7f2b850ee1292a67e5.js.map
Edit
4224.cc13db0c6e3f7fdb05c9.js
Edit
4224.cc13db0c6e3f7fdb05c9.js.map
Edit
4251.28e90ad13c8fe749062c.js
Edit
4251.28e90ad13c8fe749062c.js.map
Edit
4334.396d65b7ba31733108e9.js
Edit
4334.396d65b7ba31733108e9.js.map
Edit
4350.6db49924324f8061d361.js
Edit
4350.6db49924324f8061d361.js.map
Edit
4463.24a3e34bed64cbbb8b99.js
Edit
4463.24a3e34bed64cbbb8b99.js.map
Edit
4514.03e966fee9064d7305dd.js
Edit
4514.03e966fee9064d7305dd.js.map
Edit
4564.ea4a09ba96ddbf74a0ee.js
Edit
4564.ea4a09ba96ddbf74a0ee.js.map
Edit
46.7809585ddbb4791e248a.js
Edit
46.7809585ddbb4791e248a.js.map
Edit
4630.54d7f3b9d384c6b95bbc.js
Edit
4630.54d7f3b9d384c6b95bbc.js.map
Edit
4656.a07d832134b096826a58.js
Edit
4656.a07d832134b096826a58.js.map
Edit
468.d3a2ba8b0d226ca1475b.js
Edit
468.d3a2ba8b0d226ca1475b.js.map
Edit
4680.abd86af55b75e75326ab.js
Edit
4680.abd86af55b75e75326ab.js.map
Edit
4691.2f69f76af87a66a1513c.js
Edit
4691.2f69f76af87a66a1513c.js.map
Edit
4698.c9a2c562b12da12dc66e.js
Edit
4698.c9a2c562b12da12dc66e.js.map
Edit
4791.fc3ef0337811ab73b164.js
Edit
4791.fc3ef0337811ab73b164.js.map
Edit
4814.2d8cb562606e508512d8.js
Edit
4814.2d8cb562606e508512d8.js.map
Edit
4824.2da8107f19d58bf153e0.js
Edit
4824.2da8107f19d58bf153e0.js.map
Edit
4839.f4d2edd5c2678ef2b624.js
Edit
4839.f4d2edd5c2678ef2b624.js.map
Edit
4857.4971a98037d2ec3b663d.js
Edit
4857.4971a98037d2ec3b663d.js.map
Edit
4865.be02c1283a83523c4414.js
Edit
4865.be02c1283a83523c4414.js.map
Edit
494.5463fc5a297eaedd150f.js
Edit
494.5463fc5a297eaedd150f.js.map
Edit
4958.226af5f19bf47305a407.js
Edit
4958.226af5f19bf47305a407.js.map
Edit
4962.bbff24c5a85e9314600a.js
Edit
4962.bbff24c5a85e9314600a.js.map
Edit
4964.1f2cc5acc0078feb7b08.js
Edit
4964.1f2cc5acc0078feb7b08.js.map
Edit
4965.ccdc00d808390be53820.js
Edit
4965.ccdc00d808390be53820.js.map
Edit
5065.a2c71dab50ccb4174ee2.js
Edit
5065.a2c71dab50ccb4174ee2.js.map
Edit
5074.92e2d1ae98dcd913506e.js
Edit
5074.92e2d1ae98dcd913506e.js.map
Edit
5091.987ffc33b70121541e5d.js
Edit
5091.987ffc33b70121541e5d.js.map
Edit
5106.581eaf66a6592320d97a.js
Edit
5106.581eaf66a6592320d97a.js.map
Edit
5110.96d49ea826be96c65045.js
Edit
5110.96d49ea826be96c65045.js.map
Edit
5130.cbdddcd716a093bdbaac.js
Edit
5130.cbdddcd716a093bdbaac.js.map
Edit
5196.9b7364caf64a8583ad01.js
Edit
5196.9b7364caf64a8583ad01.js.map
Edit
5198.2cd64d4e16a385dd9b91.js
Edit
5198.2cd64d4e16a385dd9b91.js.map
Edit
5280.2c29942977baa2dfbe0e.js
Edit
5280.2c29942977baa2dfbe0e.js.map
Edit
5364.0288d9c98f74f26b73e7.js
Edit
5364.0288d9c98f74f26b73e7.js.map
Edit
5446.ad01d0b233122dd49849.js
Edit
5446.ad01d0b233122dd49849.js.map
Edit
5550.5bf3e7d23d6b104740fd.js
Edit
5550.5bf3e7d23d6b104740fd.js.map
Edit
5618.909592bbe054b70f2377.js
Edit
5618.909592bbe054b70f2377.js.map
Edit
5648.a1fc2b0cbbca9bfa1d94.js
Edit
5648.a1fc2b0cbbca9bfa1d94.js.map
Edit
5664.c55be32f6d459ac3f3d8.js
Edit
5664.c55be32f6d459ac3f3d8.js.map
Edit
5671.e1e396b75d7b95ef461f.js
Edit
5671.e1e396b75d7b95ef461f.js.map
Edit
5742.117597ec799ab75cb2f4.js
Edit
5742.117597ec799ab75cb2f4.js.map
Edit
5747.b9389680058c12ffba68.js
Edit
5747.b9389680058c12ffba68.js.map
Edit
5757.5a4b7f2368dd09da42be.js
Edit
5786.c45dfaf9e1d969472e5e.js
Edit
5786.c45dfaf9e1d969472e5e.js.map
Edit
5790.29b0a5797fd46e9664f5.js
Edit
5790.29b0a5797fd46e9664f5.js.map
Edit
5923.b9c876b4bf528d8511cb.js
Edit
5923.b9c876b4bf528d8511cb.js.map
Edit
5984.1efdc4bb85100bd19ca9.js
Edit
5984.1efdc4bb85100bd19ca9.js.map
Edit
5995.5c7a375f33ea1cd16daa.js
Edit
5995.5c7a375f33ea1cd16daa.js.map
Edit
6018.befdd11bf701ea71f7bf.js
Edit
6018.befdd11bf701ea71f7bf.js.map
Edit
6029.bdcbf27bcdd36812f646.js
Edit
6029.bdcbf27bcdd36812f646.js.map
Edit
6088.7f526abfdb4003574c68.js
Edit
6088.7f526abfdb4003574c68.js.map
Edit
613.084d33252856771cf6e1.js
Edit
613.084d33252856771cf6e1.js.map
Edit
6185.2a7c893c6b3f2f0dadb8.js
Edit
6185.2a7c893c6b3f2f0dadb8.js.map
Edit
6208.571f272269524cfd14e7.js
Edit
6208.571f272269524cfd14e7.js.map
Edit
6236.30d1fa6aee173c946c50.js
Edit
6236.30d1fa6aee173c946c50.js.map
Edit
6244.64f83fc5d05560979c51.js
Edit
6244.64f83fc5d05560979c51.js.map
Edit
6260.b8be95165766a81dade2.js
Edit
6260.b8be95165766a81dade2.js.map
Edit
630.56b78dcdaeeb9d9c2967.js
Edit
630.56b78dcdaeeb9d9c2967.js.map
Edit
6302.a2ffa52069511df9772f.js
Edit
6302.a2ffa52069511df9772f.js.map
Edit
6315.f4d87fc6f8ae3cb40e38.js
Edit
6315.f4d87fc6f8ae3cb40e38.js.map
Edit
6414.7520859a2d9cc0a63d7f.js
Edit
6414.7520859a2d9cc0a63d7f.js.map
Edit
6446.1d75a8140260005fffbd.js
Edit
6446.1d75a8140260005fffbd.js.map
Edit
6743.67a52a99e2fdd1ae1e10.js
Edit
6743.67a52a99e2fdd1ae1e10.js.map
Edit
6759.0454d3c1e41385379bdc.js
Edit
6759.0454d3c1e41385379bdc.js.map
Edit
6772.0d4a074848bc323be8f8.js
Edit
6772.0d4a074848bc323be8f8.js.map
Edit
680.726adca366b4ecb272db.js
Edit
680.726adca366b4ecb272db.js.map
Edit
6830.a4b0ecf3a6d784ca7609.js
Edit
6830.a4b0ecf3a6d784ca7609.js.map
Edit
6834.0c9ef40e2f2b5428983d.js
Edit
6834.0c9ef40e2f2b5428983d.js.map
Edit
6857.252a60422ee275193aa7.js
Edit
6857.252a60422ee275193aa7.js.map
Edit
6940.b6c74df14413f0188f0d.js
Edit
6940.b6c74df14413f0188f0d.js.map
Edit
6990.d663924714fc213b17c6.js
Edit
6990.d663924714fc213b17c6.js.map
Edit
7018.5a037d2577fedc8d10f1.js
Edit
7018.5a037d2577fedc8d10f1.js.map
Edit
7031.047b15171c23b248efa0.js
Edit
7031.047b15171c23b248efa0.js.map
Edit
7033.141597840e42815ef6a4.js
Edit
7033.141597840e42815ef6a4.js.map
Edit
7048.3746fc9a274bf8ff72f1.js
Edit
7048.3746fc9a274bf8ff72f1.js.map
Edit
7051.604a402d305e093c00c2.js
Edit
7051.604a402d305e093c00c2.js.map
Edit
7061.f18464bcd6c6d7455662.js
Edit
7061.f18464bcd6c6d7455662.js.map
Edit
7080.9cdd1b7a0bf62b48e1fe.js
Edit
7080.9cdd1b7a0bf62b48e1fe.js.map
Edit
7200.d4425528f6cee80f9931.js
Edit
7200.d4425528f6cee80f9931.js.map
Edit
7235.46f071d3e4d0bb976223.js
Edit
7235.46f071d3e4d0bb976223.js.map
Edit
7246.03f5a8496e53f64602e2.js
Edit
7246.03f5a8496e53f64602e2.js.map
Edit
7249.3bea4aaf890f89fdad45.js
Edit
7249.3bea4aaf890f89fdad45.js.map
Edit
7299.cdff402b076dfea09ead.js
Edit
7299.cdff402b076dfea09ead.js.map
Edit
7348.6fd722455e8c7e077815.js
Edit
7348.6fd722455e8c7e077815.js.map
Edit
7396.ded473b7a47dc42fbb59.js
Edit
7396.ded473b7a47dc42fbb59.js.map
Edit
7466.b7c17c526c7b734dd5f7.js
Edit
7466.b7c17c526c7b734dd5f7.js.map
Edit
7539.5f405cae3b15e1e2f6fa.js
Edit
7539.5f405cae3b15e1e2f6fa.js.map
Edit
7585.084552e02c66201a55be.js
Edit
7585.084552e02c66201a55be.js.map
Edit
7626.38819cc0696f2d25cf99.js
Edit
7626.38819cc0696f2d25cf99.js.map
Edit
7651.5024ed8dd1beb08d01ab.js
Edit
7651.5024ed8dd1beb08d01ab.js.map
Edit
7681.7ef7b4f86e99abd7b7e1.js
Edit
7681.7ef7b4f86e99abd7b7e1.js.map
Edit
7691.0ad86f0c686b19ce829e.js
Edit
7691.0ad86f0c686b19ce829e.js.map
Edit
7790.4c141092868e7208a087.js
Edit
7790.4c141092868e7208a087.js.map
Edit
7806.dff3509790e494ca5a45.js
Edit
7806.dff3509790e494ca5a45.js.map
Edit
7836.afe37ef4be354f0a3b91.js
Edit
7836.afe37ef4be354f0a3b91.js.map
Edit
7882.e1721e9d6ac2d421bcda.js
Edit
7882.e1721e9d6ac2d421bcda.js.map
Edit
7886.8499ded396232466be7d.js
Edit
7886.8499ded396232466be7d.js.map
Edit
7887.a6dcfd824d57598ba1c3.js
Edit
7887.a6dcfd824d57598ba1c3.js.map
Edit
7969.a048d8060cabf1aede33.js
Edit
7969.a048d8060cabf1aede33.js.map
Edit
7996.bd232896e4559d37a26f.js
Edit
7996.bd232896e4559d37a26f.js.map
Edit
8016.8145cd87abcdd0646db2.js
Edit
8016.8145cd87abcdd0646db2.js.map
Edit
8018.c31846109f2dff21d8c4.js
Edit
8018.c31846109f2dff21d8c4.js.map
Edit
8056.4e8f71ed4d507f89b487.js
Edit
8056.4e8f71ed4d507f89b487.js.map
Edit
8177.52abd0953ac914f69e26.js
Edit
8177.52abd0953ac914f69e26.js.map
Edit
8220.aeea4a8f0893b3447b56.js
Edit
8220.aeea4a8f0893b3447b56.js.map
Edit
8224.75bd73bf51ff7a2fc4a0.js
Edit
8224.75bd73bf51ff7a2fc4a0.js.map
Edit
8230.d65bce2998eec95c6082.js
Edit
8230.d65bce2998eec95c6082.js.map
Edit
8260.c1da67af19b9259d5651.js
Edit
8260.c1da67af19b9259d5651.js.map
Edit
8271.0ee36e030014244adb47.js
Edit
8271.0ee36e030014244adb47.js.map
Edit
8332.a62e8632a336661f2969.js
Edit
8332.a62e8632a336661f2969.js.map
Edit
8334.1196f5ddcef25711fc25.js
Edit
8334.1196f5ddcef25711fc25.js.map
Edit
8347.de402f9280cd7a316c57.js
Edit
8347.de402f9280cd7a316c57.js.map
Edit
8390.9de755da2e214cc845a3.js
Edit
8390.9de755da2e214cc845a3.js.map
Edit
8393.30e95ae45cbe5455dcda.js
Edit
8393.30e95ae45cbe5455dcda.js.map
Edit
8477.4dad0537d13cf9315e86.js
Edit
8477.4dad0537d13cf9315e86.js.map
Edit
8494.659892f00c9d15ae441a.js
Edit
8494.659892f00c9d15ae441a.js.map
Edit
8530.0460c988ee4a40ce7769.js
Edit
8530.0460c988ee4a40ce7769.js.map
Edit
8542.317c15ed57f68fcf0c97.js
Edit
8542.317c15ed57f68fcf0c97.js.map
Edit
8547.390120a5caf7646e0e3e.js
Edit
8547.390120a5caf7646e0e3e.js.map
Edit
8566.5c8f392bb383ab92eed0.js
Edit
8566.5c8f392bb383ab92eed0.js.map
Edit
8622.5acf73c1485a11dfb0ab.js
Edit
8622.5acf73c1485a11dfb0ab.js.map
Edit
8706.f17afa6bcdfd511d5b03.js
Edit
8706.f17afa6bcdfd511d5b03.js.map
Edit
874.d24410518317d605c708.js
Edit
874.d24410518317d605c708.js.map
Edit
8813.e5137844631f6ddedbce.js
Edit
8813.e5137844631f6ddedbce.js.map
Edit
8856.2720526447b3adb5c75f.js
Edit
8856.2720526447b3adb5c75f.js.map
Edit
886.5f3383e84b10a6530b97.js
Edit
886.5f3383e84b10a6530b97.js.map
Edit
8864.2f4ee982114c25634e55.js
Edit
8864.2f4ee982114c25634e55.js.map
Edit
8902.71f14964ec6cea84dc8e.js
Edit
8902.71f14964ec6cea84dc8e.js.map
Edit
8932.e59e50ddb63414e0f2b9.js
Edit
8932.e59e50ddb63414e0f2b9.js.map
Edit
8990.665213a5c89afd6b2f83.js
Edit
8990.665213a5c89afd6b2f83.js.map
Edit
9034.a32e36472481cbe5d72d.js
Edit
9034.a32e36472481cbe5d72d.js.map
Edit
9038.f03b25f160057d4a0bf6.js
Edit
9038.f03b25f160057d4a0bf6.js.map
Edit
904.b68cd2a0cd6d68c5f1ae.js
Edit
904.b68cd2a0cd6d68c5f1ae.js.map
Edit
9044.441f64d6d946cc93be46.js
Edit
9044.441f64d6d946cc93be46.js.map
Edit
9147.8309cadbc384209d62e5.js
Edit
9147.8309cadbc384209d62e5.js.map
Edit
9150.38487365ffd149b730af.js
Edit
9150.38487365ffd149b730af.js.map
Edit
9292.e6befb57f8f116ad95a8.js
Edit
9292.e6befb57f8f116ad95a8.js.map
Edit
9355.95d7e1782f93f339549e.js
Edit
9355.95d7e1782f93f339549e.js.map
Edit
9388.88d95a230e9432e7037b.js
Edit
9388.88d95a230e9432e7037b.js.map
Edit
9390.c72fcd228017f7647b38.js
Edit
9390.c72fcd228017f7647b38.js.map
Edit
9414.642bfe0d5eb16efd0c16.js
Edit
9414.642bfe0d5eb16efd0c16.js.map
Edit
9449.502f2a824d0203e88d4d.js
Edit
9449.502f2a824d0203e88d4d.js.map
Edit
946.48c5e8c688cf29424295.js
Edit
946.48c5e8c688cf29424295.js.map
Edit
9473.e6fc327da88d88712828.js
Edit
9473.e6fc327da88d88712828.js.map
Edit
9510.1e255e96fe40aad2ed6f.js
Edit
9510.1e255e96fe40aad2ed6f.js.map
Edit
9521.e65411d726c29d77c526.js
Edit
9521.e65411d726c29d77c526.js.map
Edit
9538.a2289ff9ad06e24e391f.js
Edit
9538.a2289ff9ad06e24e391f.js.map
Edit
957.3c35d66aa698d8bdfe05.js
Edit
957.3c35d66aa698d8bdfe05.js.map
Edit
9571.41558d40bff9ea8c0726.js
Edit
9571.41558d40bff9ea8c0726.js.map
Edit
9578.9cfae16465bb9bc1f336.js
Edit
9578.9cfae16465bb9bc1f336.js.map
Edit
968.d4b150f9211c478b7b05.js
Edit
968.d4b150f9211c478b7b05.js.map
Edit
970.46f17b76711e4961a575.js
Edit
970.46f17b76711e4961a575.js.map
Edit
9700.02180b7a06c8a1f7606b.js
Edit
9700.02180b7a06c8a1f7606b.js.map
Edit
9744.aa6baaf988a68fa6a9ba.js
Edit
9744.aa6baaf988a68fa6a9ba.js.map
Edit
9820.6b462d83575efd05c883.js
Edit
9820.6b462d83575efd05c883.js.map
Edit
9838.06bd7dfd4290786f80e3.js
Edit
9838.06bd7dfd4290786f80e3.js.map
Edit
9992.fb08517d3ff77e887443.js
Edit
9992.fb08517d3ff77e887443.js.map
Edit
9996.21c451f22ff76b4bb683.js
Edit
9996.21c451f22ff76b4bb683.js.map
Edit
AdminAuthentication.076c98c6380fd1e42f7e.js
Edit
AdminAuthentication.076c98c6380fd1e42f7e.js.map
Edit
AdminEditOrgPage.8df8167ea6ff8f4803bd.js
Edit
AdminEditOrgPage.8df8167ea6ff8f4803bd.js.map
Edit
AdminListOrgsPage.176dac9ed391bda8952b.js
Edit
AdminListOrgsPage.176dac9ed391bda8952b.js.map
Edit
AdminSettings.7373ed8fa9b943bb2098.js
Edit
AdminSettings.7373ed8fa9b943bb2098.js.map
Edit
AlertGroups.81264e6e5009c36eed6e.js
Edit
AlertGroups.81264e6e5009c36eed6e.js.map
Edit
AlertRuleListIndex.98e7328feeaa2ffe67eb.js
Edit
AlertRuleListIndex.98e7328feeaa2ffe67eb.js.map
Edit
AlertingDisabled.b2c834be0ca4666dd793.js
Edit
AlertingDisabled.b2c834be0ca4666dd793.js.map
Edit
AlertingGroupDetails.3a2c6ef8085b505852e4.js
Edit
AlertingGroupDetails.3a2c6ef8085b505852e4.js.map
Edit
AlertingGroupEdit.69cfe9d5f37a1fc65326.js
Edit
AlertingGroupEdit.69cfe9d5f37a1fc65326.js.map
Edit
AlertingHome.06f307ab9a2a5d8b7f93.js
Edit
AlertingHome.06f307ab9a2a5d8b7f93.js.map
Edit
AlertingImportFromDSRules.f1224bcb622d25e2c94f.js
Edit
AlertingImportFromDSRules.f1224bcb622d25e2c94f.js.map
Edit
AlertingRedirectToRule.9ed1d16829d6833d2827.js
Edit
AlertingRedirectToRule.9ed1d16829d6833d2827.js.map
Edit
AlertingRuleForm.2e69d3f00eb6221e7355.js
Edit
AlertingRuleForm.2e69d3f00eb6221e7355.js.map
Edit
AlertingSettings.7a5f782f877cec4790cb.js
Edit
AlertingSettings.7a5f782f877cec4790cb.js.map
Edit
AlertingTriage.1174f36b4937ad0047c1.js
Edit
AlertingTriage.1174f36b4937ad0047c1.js.map
Edit
BenchmarksPage.ef387f4598ba2b2236ad.js
Edit
BenchmarksPage.ef387f4598ba2b2236ad.js.map
Edit
BookmarksPage.8fe93eb7377073f0c985.js
Edit
BookmarksPage.8fe93eb7377073f0c985.js.map
Edit
ChangePasswordPage.f21b0b1dd107ccd33c1a.js
Edit
ChangePasswordPage.f21b0b1dd107ccd33c1a.js.map
Edit
Connections.949b6389e73bcadb2109.js
Edit
Connections.949b6389e73bcadb2109.js.map
Edit
ContactPoints.9ae2d1927d60c6169b87.js
Edit
ContactPoints.9ae2d1927d60c6169b87.js.map
Edit
CorrelationsFeatureToggle.ec2f1aefce6b456e15eb.js
Edit
CorrelationsFeatureToggle.ec2f1aefce6b456e15eb.js.map
Edit
CorrelationsPage.bd7fcd24ed0b5fe8ac3e.js
Edit
CorrelationsPage.bd7fcd24ed0b5fe8ac3e.js.map
Edit
CreateTeam.429acf93986740280312.js
Edit
CreateTeam.429acf93986740280312.js.map
Edit
DashboardImport.3e9b6f980b81d6f1c755.js
Edit
DashboardImport.3e9b6f980b81d6f1c755.js.map
Edit
DashboardListPage.abeb0c29f072f888f9fb.js
Edit
DashboardListPage.abeb0c29f072f888f9fb.js.map
Edit
DashboardPage.72557fe6dd1a022b7d48.js
Edit
DashboardPage.72557fe6dd1a022b7d48.js.map
Edit
DashboardPageProxy.80adfefad8a885d8e2ef.js
Edit
DashboardPageProxy.80adfefad8a885d8e2ef.js.map
Edit
DashboardScenePage.83fe1fa9509b50120d65.js
Edit
DashboardScenePage.83fe1fa9509b50120d65.js.map
Edit
EditContactPoint.0c33428ddc8ba974d946.js
Edit
EditContactPoint.0c33428ddc8ba974d946.js.map
Edit
EditMuteTiming.8760cc9c77560acf0cd6.js
Edit
EditMuteTiming.8760cc9c77560acf0cd6.js.map
Edit
EditRepositoryPage.d71faaab1af2c8d70a22.js
Edit
EditRepositoryPage.d71faaab1af2c8d70a22.js.map
Edit
EmbeddedDashboard.57de550bce819e3d52e6.js
Edit
EmbeddedDashboard.57de550bce819e3d52e6.js.map
Edit
FileHistoryPage.154ab77c19bbe0ebed20.js
Edit
FileHistoryPage.154ab77c19bbe0ebed20.js.map
Edit
FileStatusPage.36f58cd61202ec603d22.js
Edit
FileStatusPage.36f58cd61202ec603d22.js.map
Edit
FolderAlerting.0b9acb6c42276aaee57d.js
Edit
FolderAlerting.0b9acb6c42276aaee57d.js.map
Edit
FolderLibraryPanelsPage.44f8cabf542ec314d176.js
Edit
FolderLibraryPanelsPage.44f8cabf542ec314d176.js.map
Edit
GettingStartedPage.4bea37f1c9bdcfd0f41b.js
Edit
GettingStartedPage.4bea37f1c9bdcfd0f41b.js.map
Edit
GlobalConfig.1377596507974d18caf6.js
Edit
GlobalConfig.1377596507974d18caf6.js.map
Edit
HistoryPage.4da98f4fa313ee3676ca.js
Edit
HistoryPage.4da98f4fa313ee3676ca.js.map
Edit
LdapSettingsPage.0e9f08d5e59150ecf466.js
Edit
LdapSettingsPage.0e9f08d5e59150ecf466.js.map
Edit
LibraryPanelsPage.824580d7751526c658e2.js
Edit
LibraryPanelsPage.824580d7751526c658e2.js.map
Edit
ListPublicDashboardPage.64c26ffd3ebe6c9076f3.js
Edit
ListPublicDashboardPage.64c26ffd3ebe6c9076f3.js.map
Edit
LoginPage.db48423ed1b455431daa.js
Edit
LoginPage.db48423ed1b455431daa.js.map
Edit
MetricsDrilldownRedirect.fcad4bdff346974952f4.js
Edit
MetricsDrilldownRedirect.fcad4bdff346974952f4.js.map
Edit
MigrateToCloud.5b474ad00e8a3d979750.js
Edit
MigrateToCloud.5b474ad00e8a3d979750.js.map
Edit
NewMuteTiming.2f6302420674f1c73aba.js
Edit
NewMuteTiming.2f6302420674f1c73aba.js.map
Edit
NewOrgPage.be31eaee06e2043d609b.js
Edit
NewOrgPage.be31eaee06e2043d609b.js.map
Edit
NewReceiverView.f1d83eb66a39882b8661.js
Edit
NewReceiverView.f1d83eb66a39882b8661.js.map
Edit
NewSilencePage.2643a48031f7e5d8f376.js
Edit
NewSilencePage.2643a48031f7e5d8f376.js.map
Edit
NotificationPoliciesPage.9333d10ecad1452ebf27.js
Edit
NotificationPoliciesPage.9333d10ecad1452ebf27.js.map
Edit
NotificationsPage.57df4ff5ba1433a4345d.js
Edit
NotificationsPage.57df4ff5ba1433a4345d.js.map
Edit
OrgDetailsPage.7b5835c30585aae81343.js
Edit
OrgDetailsPage.7b5835c30585aae81343.js.map
Edit
PlaylistEditPage.8310e384af659e40c313.js
Edit
PlaylistEditPage.8310e384af659e40c313.js.map
Edit
PlaylistNewPage.f45b642a98a747e28c0d.js
Edit
PlaylistNewPage.f45b642a98a747e28c0d.js.map
Edit
PlaylistPage.9af74957a1cdfb125338.js
Edit
PlaylistPage.9af74957a1cdfb125338.js.map
Edit
PlaylistStartPage.8011a98267ac64c7fa05.js
Edit
PlaylistStartPage.8011a98267ac64c7fa05.js.map
Edit
PluginExtensionsLog.54c02047d569b0c05823.js
Edit
PluginExtensionsLog.54c02047d569b0c05823.js.map
Edit
PluginListPage.e50c18fed21c23ca4ee8.js
Edit
PluginListPage.e50c18fed21c23ca4ee8.js.map
Edit
PluginPage.ae424531bce63dd4721e.js
Edit
PluginPage.ae424531bce63dd4721e.js.map
Edit
ProfileFeatureTogglePage.27378dcbb7520611348e.js
Edit
ProfileFeatureTogglePage.27378dcbb7520611348e.js.map
Edit
ProvisioningWizardPage.c4e4a8f431b4719b0e95.js
Edit
ProvisioningWizardPage.c4e4a8f431b4719b0e95.js.map
Edit
PublicDashboardPage.33d6ec8f685f1b70b9a6.js
Edit
PublicDashboardPage.33d6ec8f685f1b70b9a6.js.map
Edit
RecentlyDeleted.5e0ec16474d939fd9683.js
Edit
RecentlyDeleted.5e0ec16474d939fd9683.js.map
Edit
RecentlyDeletedPage.1dbc2b80b28204de8237.js
Edit
RecentlyDeletedPage.1dbc2b80b28204de8237.js.map
Edit
RepositoryListPage.ec3a0af1cbe2740800bf.js
Edit
RepositoryListPage.ec3a0af1cbe2740800bf.js.map
Edit
RepositoryStatusPage.9aee60589e35a4a19ec2.js
Edit
RepositoryStatusPage.9aee60589e35a4a19ec2.js.map
Edit
SelectOrgPage.910a8d842019a6d7fe93.js
Edit
SelectOrgPage.910a8d842019a6d7fe93.js.map
Edit
SendResetMailPage.513361d6980f98ff8139.js
Edit
SendResetMailPage.513361d6980f98ff8139.js.map
Edit
ServerStats.2830ca154f465dbdecea.js
Edit
ServerStats.2830ca154f465dbdecea.js.map
Edit
ServiceAccountCreatePage.80fcbdd2b7f5aa4e2da1.js
Edit
ServiceAccountCreatePage.80fcbdd2b7f5aa4e2da1.js.map
Edit
ServiceAccountPage.48944056459bb412ff33.js
Edit
ServiceAccountPage.48944056459bb412ff33.js.map
Edit
ServiceAccountsPage.d20b1eb9f87661f10b45.js
Edit
ServiceAccountsPage.d20b1eb9f87661f10b45.js.map
Edit
SignupInvited.fe2c29f380e9888c28cf.js
Edit
SignupInvited.fe2c29f380e9888c28cf.js.map
Edit
SilencesTablePage.b998fdbdcc3d60a81739.js
Edit
SilencesTablePage.b998fdbdcc3d60a81739.js.map
Edit
SnapshotListPage.6feaf24adb92e6a302ec.js
Edit
SnapshotListPage.6feaf24adb92e6a302ec.js.map
Edit
SoloPanelPage.7fc6a934aaadf4c1f84d.js
Edit
SoloPanelPage.7fc6a934aaadf4c1f84d.js.map
Edit
SoloPanelPageOld.bde57e000dd0a0108685.js
Edit
SoloPanelPageOld.bde57e000dd0a0108685.js.map
Edit
SupportBundles.1f46603ad3494624d67a.js
Edit
SupportBundles.1f46603ad3494624d67a.js.map
Edit
SupportBundlesCreate.5eaea61a9713f057277b.js
Edit
SupportBundlesCreate.5eaea61a9713f057277b.js.map
Edit
TeamList.6b088f83e6e8cb66b21d.js
Edit
TeamList.6b088f83e6e8cb66b21d.js.map
Edit
TeamPages.9d8b5dceef8be43c6923.js
Edit
TeamPages.9d8b5dceef8be43c6923.js.map
Edit
Templates.7a02a8497ebca052dcfb.js
Edit
Templates.7a02a8497ebca052dcfb.js.map
Edit
TestStuffPage.982c641592b2f7c9db40.js
Edit
TestStuffPage.982c641592b2f7c9db40.js.map
Edit
ThemePlayground.aeeec77fd8e9c1482f55.js
Edit
ThemePlayground.aeeec77fd8e9c1482f55.js.map
Edit
UserAdminPage.fc4d562eef05d9f59aca.js
Edit
UserAdminPage.fc4d562eef05d9f59aca.js.map
Edit
UserCreatePage.b7036214c66612fb31e9.js
Edit
UserCreatePage.b7036214c66612fb31e9.js.map
Edit
UserInvitePage.4a9bcd4084d7ae454c73.js
Edit
UserInvitePage.4a9bcd4084d7ae454c73.js.map
Edit
UserListPage.a452e1153ae820f58ac9.js
Edit
UserListPage.a452e1153ae820f58ac9.js.map
Edit
UserProfileEditPage.82c11690282e669eabb1.js
Edit
UserProfileEditPage.82c11690282e669eabb1.js.map
Edit
alert-rules-drawer-content.c95bb5ddd3fc813cae92.js
Edit
alert-rules-drawer-content.c95bb5ddd3fc813cae92.js.map
Edit
alert-rules-toolbar-button.0d86c1adae7edb55ff76.js
Edit
alert-rules-toolbar-button.0d86c1adae7edb55ff76.js.map
Edit
alertListPanel.0110106a8d1ab70d65d5.js
Edit
alertListPanel.0110106a8d1ab70d65d5.js.map
Edit
alertmanagerPlugin.2b59de5e7b7a556f87f1.js
Edit
alertmanagerPlugin.2b59de5e7b7a556f87f1.js.map
Edit
annoListPanel.0005a0eab0b05e24d970.js
Edit
annoListPanel.0005a0eab0b05e24d970.js.map
Edit
app.8385deda1df49aa75ec2.js
Edit
app.8385deda1df49aa75ec2.js.map
Edit
assets-manifest.json
Edit
barChartPanel.eecdaeab7d146d477721.js
Edit
barChartPanel.eecdaeab7d146d477721.js.map
Edit
barGaugePanel.6d9e94bbb72ba92a0e9b.js
Edit
barGaugePanel.6d9e94bbb72ba92a0e9b.js.map
Edit
candlestickPanel.af0e0decd06e7b7ab286.js
Edit
candlestickPanel.af0e0decd06e7b7ab286.js.map
Edit
canvasPanel.ddab72fab6e58c3419b2.js
Edit
canvasPanel.ddab72fab6e58c3419b2.js.map
Edit
cloudwatchPlugin.06ef34f60000c4f7ea37.js
Edit
cloudwatchPlugin.06ef34f60000c4f7ea37.js.map
Edit
dark.b66fa87185b9a313ec14.js
Edit
dashListPanel.23b954da0c4888602048.js
Edit
dashListPanel.23b954da0c4888602048.js.map
Edit
dataGridPanel.bb5d4b678cba38dd380b.js
Edit
debugPanel.fff63da32084d7a2e236.js
Edit
debugPanel.fff63da32084d7a2e236.js.map
Edit
elasticsearchPlugin.3f2edb012f5162b48903.js
Edit
elasticsearchPlugin.3f2edb012f5162b48903.js.map
Edit
explore-feature-toggle-page.3de03fa91c88d05cea1c.js
Edit
explore-feature-toggle-page.3de03fa91c88d05cea1c.js.map
Edit
explore.dd32637df83326225e0d.js
Edit
explore.dd32637df83326225e0d.js.map
Edit
flamegraphPanel.cc6c5b4bcd69e406fbb7.js
Edit
flamegraphPanel.cc6c5b4bcd69e406fbb7.js.map
Edit
gaugePanel.5da3c4e39a652e281cc4.js
Edit
gaugePanel.5da3c4e39a652e281cc4.js.map
Edit
gazetteer
Edit
geomapPanel.67ebb4567e9b5fa5074b.js
Edit
gettingStartedPanel.833059170dbbf8d5c4bf.js
Edit
gettingStartedPanel.833059170dbbf8d5c4bf.js.map
Edit
grafana.1492.25120d27db88f863e058.css
Edit
grafana.4350.a45e45977094df4a0bc9.css
Edit
grafana.5790.ffb3a9cd952d3cd7471b.css
Edit
grafana.DashboardPage.a66335f88cd003e4a44f.css
Edit
grafana.DashboardPageProxy.a66335f88cd003e4a44f.css
Edit
grafana.app.1f6473bb54b1e1647be8.css
Edit
grafana.dark.1e8d85816912aadbbba5.css
Edit
grafana.dataGridPanel.c1fc5db1829b1b31eb4d.css
Edit
grafana.geomapPanel.0057d964fa972bb207ec.css
Edit
grafana.light.111a5a99fcebc0962ddc.css
Edit
grafana.livePanel.25120d27db88f863e058.css
Edit
grafana.react-monaco-editor.ffb3a9cd952d3cd7471b.css
Edit
grafana.swagger.d0a2da197b9827204ac1.css
Edit
grafana.tablePanel.25120d27db88f863e058.css
Edit
grafanaPlugin.f21cdb4b84a732cc9dd8.js
Edit
grafanaPlugin.f21cdb4b84a732cc9dd8.js.map
Edit
heatmapPanel.7834b997bc573eddba88.js
Edit
heatmapPanel.7834b997bc573eddba88.js.map
Edit
histogramPanel.9953bfeccf8774500c0c.js
Edit
histogramPanel.9953bfeccf8774500c0c.js.map
Edit
img
Edit
influxdbPlugin.7a899e63be0a65d41e13.js
Edit
influxdbPlugin.7a899e63be0a65d41e13.js.map
Edit
light.827d442410485e491818.js
Edit
livePanel.2a43f499bc746d928d45.js
Edit
livePanel.2a43f499bc746d928d45.js.map
Edit
logsPanel.a328022d248508a083c1.js
Edit
logsPanel.a328022d248508a083c1.js.map
Edit
loki-query-field.f9a0b82b636d4821760c.js
Edit
loki-query-field.f9a0b82b636d4821760c.js.map
Edit
maps
Edit
mixedPlugin.3a69de93f366afbb2f85.js
Edit
newsPanel.c17f40f7c88ea14620e7.js
Edit
newsPanel.c17f40f7c88ea14620e7.js.map
Edit
nodeGraphPanel.f717a9075d994a9a8af4.js
Edit
nodeGraphPanel.f717a9075d994a9a8af4.js.map
Edit
opentsdbPlugin.1795eab1c223ea030c2e.js
Edit
opentsdbPlugin.1795eab1c223ea030c2e.js.map
Edit
pieChartPanel.45166aa6d57d163817ea.js
Edit
pieChartPanel.45166aa6d57d163817ea.js.map
Edit
prometheusPlugin.c3a55eb5353085fc3d2b.js
Edit
prometheusPlugin.c3a55eb5353085fc3d2b.js.map
Edit
radialBarPanel.294c52d497d8f5c2bebb.js
Edit
radialBarPanel.294c52d497d8f5c2bebb.js.map
Edit
runtime.a37cc2f12a959f33871a.js
Edit
runtime.a37cc2f12a959f33871a.js.map
Edit
sql-query-editor.e767d4a2aef360034bd9.js
Edit
sql-query-editor.e767d4a2aef360034bd9.js.map
Edit
statPanel.3a7f191bfb27fd320014.js
Edit
statPanel.3a7f191bfb27fd320014.js.map
Edit
stateTimelinePanel.08d857b143ef89dc195f.js
Edit
stateTimelinePanel.08d857b143ef89dc195f.js.map
Edit
static
Edit
statusHistoryPanel.29f7b8dc01039ba795af.js
Edit
statusHistoryPanel.29f7b8dc01039ba795af.js.map
Edit
swagger.06875a6266679f54141d.js
Edit
swagger.06875a6266679f54141d.js.map
Edit
tablePanel.43861ce2a60617dcd19d.js
Edit
tablePanel.43861ce2a60617dcd19d.js.map
Edit
textPanel.867ee60d01b2039aa159.js
Edit
textPanel.867ee60d01b2039aa159.js.map
Edit
timeseriesPanel.b4a947da450030262a31.js
Edit
timeseriesPanel.b4a947da450030262a31.js.map
Edit
tracesPanel.35bfc3e5ff6bea4212a3.js
Edit
tracesPanel.35bfc3e5ff6bea4212a3.js.map
Edit
trendPanel.001aff2bd153e737c464.js
Edit
trendPanel.001aff2bd153e737c464.js.map
Edit
vis-data.b34535ebabc0fcb91557.js
Edit
vis-data.b34535ebabc0fcb91557.js.map
Edit
vis-network.1b41caf21892c9525709.js
Edit
vis-network.1b41caf21892c9525709.js.map
Edit
welcomeBanner.1a693c9dc02006be4f0b.js
Edit
welcomeBanner.1a693c9dc02006be4f0b.js.map
Edit
xychart.cb20af67a6c495ba6ccd.js
Edit
xychart.cb20af67a6c495ba6ccd.js.map
Edit