@espresso-lab/mantine-data-table 1.9.25 → 1.9.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(tt,ye){typeof exports=="object"&&typeof module<"u"?ye(exports,require("react"),require("@mantine/core"),require("@mantine/form"),require("@tabler/icons-react"),require("@mantine/hooks")):typeof define=="function"&&define.amd?define(["exports","react","@mantine/core","@mantine/form","@tabler/icons-react","@mantine/hooks"],ye):(tt=typeof globalThis<"u"?globalThis:tt||self,ye(tt.MantineDataTable={},tt.React,tt.MantineCore,tt.MantineForm,tt.TablerIconsReact,tt.MantineHooks))})(this,function(tt,ye,F,tu,ti,kt){"use strict";function yh(i){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const r in i)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return n.default=i,Object.freeze(n)}const St=yh(ye);var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nu(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var $i={exports:{}},rs={};/**
1
+ (function(et,ye){typeof exports=="object"&&typeof module<"u"?ye(exports,require("react"),require("@mantine/core"),require("@mantine/form"),require("@tabler/icons-react"),require("@mantine/hooks")):typeof define=="function"&&define.amd?define(["exports","react","@mantine/core","@mantine/form","@tabler/icons-react","@mantine/hooks"],ye):(et=typeof globalThis<"u"?globalThis:et||self,ye(et.MantineDataTable={},et.React,et.MantineCore,et.MantineForm,et.TablerIconsReact,et.MantineHooks))})(this,function(et,ye,F,nu,ti,kt){"use strict";function yh(i){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const r in i)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}return n.default=i,Object.freeze(n)}const St=yh(ye);var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var $i={exports:{}},is={};/**
2
2
  * @license React
3
3
  * react-compiler-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ru;function _h(){if(ru)return rs;ru=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return rs.c=function(n){return i.H.useMemoCache(n)},rs}var is={};/**
9
+ */var ru;function _h(){if(ru)return is;ru=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return is.c=function(n){return i.H.useMemoCache(n)},is}var os={};/**
10
10
  * @license React
11
11
  * react-compiler-runtime.development.js
12
12
  *
@@ -14,11 +14,11 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var iu;function wh(){return iu||(iu=1,process.env.NODE_ENV!=="production"&&function(){var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;is.c=function(n){var r=i.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
17
+ */var iu;function wh(){return iu||(iu=1,process.env.NODE_ENV!=="production"&&function(){var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;os.c=function(n){var r=i.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
18
  1. You might have mismatching versions of React and the renderer (such as React DOM)
19
19
  2. You might be breaking the Rules of Hooks
20
20
  3. You might have more than one copy of React in the same app
21
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),is}var ou;function bh(){return ou||(ou=1,process.env.NODE_ENV==="production"?$i.exports=_h():$i.exports=wh()),$i.exports}var An=bh(),Bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ni=typeof window>"u"||"Deno"in globalThis;function ji(){}function su(i){return typeof i=="number"&&i>=0&&i!==1/0}function xh(i,n){return Math.max(i+(n||0)-Date.now(),0)}function ri(i,n){return typeof i=="function"?i(n):i}function Dn(i,n){return typeof i=="function"?i(n):i}function au(i){return JSON.stringify(i,(n,r)=>ss(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function os(i,n){if(i===n)return i;const r=uu(i)&&uu(n);if(r||ss(i)&&ss(n)){const s=r?i:Object.keys(i),l=s.length,g=r?n:Object.keys(n),m=g.length,h=r?[]:{},C=new Set(s);let D=0;for(let E=0;E<m;E++){const N=r?E:g[E];(!r&&C.has(N)||r)&&i[N]===void 0&&n[N]===void 0?(h[N]=void 0,D++):(h[N]=os(i[N],n[N]),h[N]===i[N]&&i[N]!==void 0&&D++)}return l===m&&D===l?i:h}return n}function Yi(i,n){if(!n||Object.keys(i).length!==Object.keys(n).length)return!1;for(const r in i)if(i[r]!==n[r])return!1;return!0}function uu(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function ss(i){if(!lu(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!lu(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function lu(i){return Object.prototype.toString.call(i)==="[object Object]"}function cu(i,n,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,n);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return os(i,n)}catch(s){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`),s}return os(i,n)}return n}function fu(i,n){return typeof i=="function"?i(...n):!!i}var Ch=class extends Bi{#t;#e;#n;constructor(){super(),this.#n=i=>{if(!ni&&window.addEventListener){const n=()=>i();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(i){this.#n=i,this.#e?.(),this.#e=i(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(i){this.#t!==i&&(this.#t=i,this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(n=>{n(i)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Sh=new Ch,Ah=class extends Bi{#t=!0;#e;#n;constructor(){super(),this.#n=i=>{if(!ni&&window.addEventListener){const n=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(i){this.#n=i,this.#e?.(),this.#e=i(this.setOnline.bind(this))}setOnline(i){this.#t!==i&&(this.#t=i,this.listeners.forEach(r=>{r(i)}))}isOnline(){return this.#t}},Dh=new Ah;function hu(){let i,n;const r=new Promise((l,g)=>{i=l,n=g});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),i(l)},r.reject=l=>{s({status:"rejected",reason:l}),n(l)},r}function Oh(i){return(i??"online")==="online"?Dh.isOnline():!0}var Eh=i=>setTimeout(i,0);function Th(){let i=[],n=0,r=h=>{h()},s=h=>{h()},l=Eh;const g=h=>{n?i.push(h):l(()=>{r(h)})},m=()=>{const h=i;i=[],h.length&&l(()=>{s(()=>{h.forEach(C=>{r(C)})})})};return{batch:h=>{let C;n++;try{C=h()}finally{n--,n||m()}return C},batchCalls:h=>(...C)=>{g(()=>{h(...C)})},schedule:g,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{l=h}}}var Fi=Th();function Ph(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Oh(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Mh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Rh=class extends Bi{constructor(i,n){super(),this.options=n,this.#t=i,this.#a=null,this.#s=hu(),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#g;#h;#d;#l;#c;#u;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),du(this.#e,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return as(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return as(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#e.removeObserver(this)}setOptions(i){const n=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),n._defaulted&&!Yi(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&pu(this.#e,r,this.options,n)&&this.#f(),this.updateResult(),s&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(n.enabled,this.#e)||ri(this.options.staleTime,this.#e)!==ri(n.staleTime,this.#e))&&this.#v();const l=this.#m();s&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(n.enabled,this.#e)||l!==this.#u)&&this.#y(l)}getOptimisticResult(i){const n=this.#t.getQueryCache().build(this.#t,i),r=this.createResult(n,i);return Lh(this,r)&&(this.#r=r,this.#o=this.options,this.#i=this.#e.state),r}getCurrentResult(){return this.#r}trackResult(i,n){return new Proxy(i,{get:(r,s)=>(this.trackProp(s),n?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(i){this.#p.add(i)}getCurrentQuery(){return this.#e}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const n=this.#t.defaultQueryOptions(i),r=this.#t.getQueryCache().build(this.#t,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(i){return this.#f({...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(i){this.#x();let n=this.#e.fetch(this.options,i);return i?.throwOnError||(n=n.catch(ji)),n}#v(){this.#w();const i=ri(this.options.staleTime,this.#e);if(ni||this.#r.isStale||!su(i))return;const r=xh(this.#r.dataUpdatedAt,i)+1;this.#l=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(i){this.#b(),this.#u=i,!(ni||Dn(this.options.enabled,this.#e)===!1||!su(this.#u)||this.#u===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Sh.isFocused())&&this.#f()},this.#u))}#_(){this.#v(),this.#y(this.#m())}#w(){this.#l&&(clearTimeout(this.#l),this.#l=void 0)}#b(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(i,n){const r=this.#e,s=this.options,l=this.#r,g=this.#i,m=this.#o,C=i!==r?i.state:this.#n,{state:D}=i;let E={...D},N=!1,R;if(n._optimisticResults){const V=this.hasListeners(),de=!V&&du(i,n),he=V&&pu(i,r,n,s);(de||he)&&(E={...E,...Ph(D.data,i.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:L,errorUpdatedAt:I,status:$}=E;R=E.data;let H=!1;if(n.placeholderData!==void 0&&R===void 0&&$==="pending"){let V;l?.isPlaceholderData&&n.placeholderData===m?.placeholderData?(V=l.data,H=!0):V=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,V!==void 0&&($="success",R=cu(l?.data,V,n),N=!0)}if(n.select&&R!==void 0&&!H)if(l&&R===g?.data&&n.select===this.#g)R=this.#h;else try{this.#g=n.select,R=n.select(R),R=cu(l?.data,R,n),this.#h=R,this.#a=null}catch(V){this.#a=V}this.#a&&(L=this.#a,R=this.#h,I=Date.now(),$="error");const se=E.fetchStatus==="fetching",ue=$==="pending",ae=$==="error",ce=ue&&se,Q=R!==void 0,J={status:$,fetchStatus:E.fetchStatus,isPending:ue,isSuccess:$==="success",isError:ae,isInitialLoading:ce,isLoading:ce,data:R,dataUpdatedAt:E.dataUpdatedAt,error:L,errorUpdatedAt:I,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>C.dataUpdateCount||E.errorUpdateCount>C.errorUpdateCount,isFetching:se,isRefetching:se&&!ue,isLoadingError:ae&&!Q,isPaused:E.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:ae&&Q,isStale:us(i,n),refetch:this.refetch,promise:this.#s,isEnabled:Dn(n.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const V=re=>{J.status==="error"?re.reject(J.error):J.data!==void 0&&re.resolve(J.data)},de=()=>{const re=this.#s=J.promise=hu();V(re)},he=this.#s;switch(he.status){case"pending":i.queryHash===r.queryHash&&V(he);break;case"fulfilled":(J.status==="error"||J.data!==he.value)&&de();break;case"rejected":(J.status!=="error"||J.error!==he.reason)&&de();break}}return J}updateResult(){const i=this.#r,n=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#o=this.options,this.#i.data!==void 0&&(this.#d=this.#e),Yi(n,i))return;this.#r=n;const r=()=>{if(!i)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!this.#p.size)return!0;const g=new Set(l??this.#p);return this.options.throwOnError&&g.add("error"),Object.keys(this.#r).some(m=>{const h=m;return this.#r[h]!==i[h]&&g.has(h)})};this.#C({listeners:r()})}#x(){const i=this.#t.getQueryCache().build(this.#t,this.options);if(i===this.#e)return;const n=this.#e;this.#e=i,this.#n=i.state,this.hasListeners()&&(n?.removeObserver(this),i.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#C(i){Fi.batch(()=>{i.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function kh(i,n){return Dn(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function du(i,n){return kh(i,n)||i.state.data!==void 0&&as(i,n,n.refetchOnMount)}function as(i,n,r){if(Dn(n.enabled,i)!==!1&&ri(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&us(i,n)}return!1}function pu(i,n,r,s){return(i!==n||Dn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&us(i,r)}function us(i,n){return Dn(n.enabled,i)!==!1&&i.isStaleByTime(ri(n.staleTime,i))}function Lh(i,n){return!Yi(i.getCurrentResult(),n)}var Nh=class extends Bi{#t;#e=void 0;#n;#r;constructor(i,n){super(),this.#t=i,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const n=this.options;this.options=this.#t.defaultMutationOptions(i),Yi(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&au(n.mutationKey)!==au(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#i(),this.#o(i)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(i,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(i)}#i(){const i=this.#n?.state??Mh();this.#e={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#o(i){Fi.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;i?.type==="success"?(this.#r.onSuccess?.(i.data,n,r),this.#r.onSettled?.(i.data,null,n,r)):i?.type==="error"&&(this.#r.onError?.(i.error,n,r),this.#r.onSettled?.(void 0,i.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},Wi={exports:{}},ii={};/**
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),os}var ou;function bh(){return ou||(ou=1,process.env.NODE_ENV==="production"?$i.exports=_h():$i.exports=wh()),$i.exports}var An=bh(),Bi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ni=typeof window>"u"||"Deno"in globalThis;function ji(){}function su(i){return typeof i=="number"&&i>=0&&i!==1/0}function xh(i,n){return Math.max(i+(n||0)-Date.now(),0)}function ri(i,n){return typeof i=="function"?i(n):i}function Dn(i,n){return typeof i=="function"?i(n):i}function au(i){return JSON.stringify(i,(n,r)=>as(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function ss(i,n){if(i===n)return i;const r=uu(i)&&uu(n);if(r||as(i)&&as(n)){const s=r?i:Object.keys(i),l=s.length,g=r?n:Object.keys(n),m=g.length,h=r?[]:{},C=new Set(s);let D=0;for(let E=0;E<m;E++){const N=r?E:g[E];(!r&&C.has(N)||r)&&i[N]===void 0&&n[N]===void 0?(h[N]=void 0,D++):(h[N]=ss(i[N],n[N]),h[N]===i[N]&&i[N]!==void 0&&D++)}return l===m&&D===l?i:h}return n}function Yi(i,n){if(!n||Object.keys(i).length!==Object.keys(n).length)return!1;for(const r in i)if(i[r]!==n[r])return!1;return!0}function uu(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function as(i){if(!lu(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!lu(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function lu(i){return Object.prototype.toString.call(i)==="[object Object]"}function cu(i,n,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,n);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return ss(i,n)}catch(s){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`),s}return ss(i,n)}return n}function fu(i,n){return typeof i=="function"?i(...n):!!i}var Ch=class extends Bi{#t;#e;#n;constructor(){super(),this.#n=i=>{if(!ni&&window.addEventListener){const n=()=>i();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(i){this.#n=i,this.#e?.(),this.#e=i(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(i){this.#t!==i&&(this.#t=i,this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(n=>{n(i)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Sh=new Ch,Ah=class extends Bi{#t=!0;#e;#n;constructor(){super(),this.#n=i=>{if(!ni&&window.addEventListener){const n=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(i){this.#n=i,this.#e?.(),this.#e=i(this.setOnline.bind(this))}setOnline(i){this.#t!==i&&(this.#t=i,this.listeners.forEach(r=>{r(i)}))}isOnline(){return this.#t}},Dh=new Ah;function hu(){let i,n;const r=new Promise((l,g)=>{i=l,n=g});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),i(l)},r.reject=l=>{s({status:"rejected",reason:l}),n(l)},r}function Oh(i){return(i??"online")==="online"?Dh.isOnline():!0}var Eh=i=>setTimeout(i,0);function Th(){let i=[],n=0,r=h=>{h()},s=h=>{h()},l=Eh;const g=h=>{n?i.push(h):l(()=>{r(h)})},m=()=>{const h=i;i=[],h.length&&l(()=>{s(()=>{h.forEach(C=>{r(C)})})})};return{batch:h=>{let C;n++;try{C=h()}finally{n--,n||m()}return C},batchCalls:h=>(...C)=>{g(()=>{h(...C)})},schedule:g,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{l=h}}}var Fi=Th();function Ph(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Oh(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Mh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Rh=class extends Bi{constructor(i,n){super(),this.options=n,this.#t=i,this.#a=null,this.#s=hu(),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#g;#h;#d;#l;#c;#u;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),du(this.#e,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return us(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return us(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#e.removeObserver(this)}setOptions(i){const n=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),n._defaulted&&!Yi(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&pu(this.#e,r,this.options,n)&&this.#f(),this.updateResult(),s&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(n.enabled,this.#e)||ri(this.options.staleTime,this.#e)!==ri(n.staleTime,this.#e))&&this.#v();const l=this.#m();s&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(n.enabled,this.#e)||l!==this.#u)&&this.#y(l)}getOptimisticResult(i){const n=this.#t.getQueryCache().build(this.#t,i),r=this.createResult(n,i);return Lh(this,r)&&(this.#r=r,this.#o=this.options,this.#i=this.#e.state),r}getCurrentResult(){return this.#r}trackResult(i,n){return new Proxy(i,{get:(r,s)=>(this.trackProp(s),n?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(i){this.#p.add(i)}getCurrentQuery(){return this.#e}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const n=this.#t.defaultQueryOptions(i),r=this.#t.getQueryCache().build(this.#t,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(i){return this.#f({...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(i){this.#x();let n=this.#e.fetch(this.options,i);return i?.throwOnError||(n=n.catch(ji)),n}#v(){this.#w();const i=ri(this.options.staleTime,this.#e);if(ni||this.#r.isStale||!su(i))return;const r=xh(this.#r.dataUpdatedAt,i)+1;this.#l=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(i){this.#b(),this.#u=i,!(ni||Dn(this.options.enabled,this.#e)===!1||!su(this.#u)||this.#u===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Sh.isFocused())&&this.#f()},this.#u))}#_(){this.#v(),this.#y(this.#m())}#w(){this.#l&&(clearTimeout(this.#l),this.#l=void 0)}#b(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(i,n){const r=this.#e,s=this.options,l=this.#r,g=this.#i,m=this.#o,C=i!==r?i.state:this.#n,{state:D}=i;let E={...D},N=!1,R;if(n._optimisticResults){const V=this.hasListeners(),de=!V&&du(i,n),he=V&&pu(i,r,n,s);(de||he)&&(E={...E,...Ph(D.data,i.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:L,errorUpdatedAt:I,status:$}=E;R=E.data;let H=!1;if(n.placeholderData!==void 0&&R===void 0&&$==="pending"){let V;l?.isPlaceholderData&&n.placeholderData===m?.placeholderData?(V=l.data,H=!0):V=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,V!==void 0&&($="success",R=cu(l?.data,V,n),N=!0)}if(n.select&&R!==void 0&&!H)if(l&&R===g?.data&&n.select===this.#g)R=this.#h;else try{this.#g=n.select,R=n.select(R),R=cu(l?.data,R,n),this.#h=R,this.#a=null}catch(V){this.#a=V}this.#a&&(L=this.#a,R=this.#h,I=Date.now(),$="error");const se=E.fetchStatus==="fetching",ue=$==="pending",ae=$==="error",ce=ue&&se,Q=R!==void 0,J={status:$,fetchStatus:E.fetchStatus,isPending:ue,isSuccess:$==="success",isError:ae,isInitialLoading:ce,isLoading:ce,data:R,dataUpdatedAt:E.dataUpdatedAt,error:L,errorUpdatedAt:I,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>C.dataUpdateCount||E.errorUpdateCount>C.errorUpdateCount,isFetching:se,isRefetching:se&&!ue,isLoadingError:ae&&!Q,isPaused:E.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:ae&&Q,isStale:ls(i,n),refetch:this.refetch,promise:this.#s,isEnabled:Dn(n.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const V=re=>{J.status==="error"?re.reject(J.error):J.data!==void 0&&re.resolve(J.data)},de=()=>{const re=this.#s=J.promise=hu();V(re)},he=this.#s;switch(he.status){case"pending":i.queryHash===r.queryHash&&V(he);break;case"fulfilled":(J.status==="error"||J.data!==he.value)&&de();break;case"rejected":(J.status!=="error"||J.error!==he.reason)&&de();break}}return J}updateResult(){const i=this.#r,n=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#o=this.options,this.#i.data!==void 0&&(this.#d=this.#e),Yi(n,i))return;this.#r=n;const r=()=>{if(!i)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!this.#p.size)return!0;const g=new Set(l??this.#p);return this.options.throwOnError&&g.add("error"),Object.keys(this.#r).some(m=>{const h=m;return this.#r[h]!==i[h]&&g.has(h)})};this.#C({listeners:r()})}#x(){const i=this.#t.getQueryCache().build(this.#t,this.options);if(i===this.#e)return;const n=this.#e;this.#e=i,this.#n=i.state,this.hasListeners()&&(n?.removeObserver(this),i.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#C(i){Fi.batch(()=>{i.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function kh(i,n){return Dn(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function du(i,n){return kh(i,n)||i.state.data!==void 0&&us(i,n,n.refetchOnMount)}function us(i,n,r){if(Dn(n.enabled,i)!==!1&&ri(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&ls(i,n)}return!1}function pu(i,n,r,s){return(i!==n||Dn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&ls(i,r)}function ls(i,n){return Dn(n.enabled,i)!==!1&&i.isStaleByTime(ri(n.staleTime,i))}function Lh(i,n){return!Yi(i.getCurrentResult(),n)}var Nh=class extends Bi{#t;#e=void 0;#n;#r;constructor(i,n){super(),this.#t=i,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const n=this.options;this.options=this.#t.defaultMutationOptions(i),Yi(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&au(n.mutationKey)!==au(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#i(),this.#o(i)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(i,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(i)}#i(){const i=this.#n?.state??Mh();this.#e={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#o(i){Fi.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;i?.type==="success"?(this.#r.onSuccess?.(i.data,n,r),this.#r.onSettled?.(i.data,null,n,r)):i?.type==="error"&&(this.#r.onError?.(i.error,n,r),this.#r.onSettled?.(void 0,i.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},Wi={exports:{}},ii={};/**
22
22
  * @license React
23
23
  * react-jsx-runtime.production.js
24
24
  *
@@ -39,7 +39,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
39
39
  <%s {...props} />
40
40
  React keys must be passed directly to JSX without using spread:
41
41
  let props = %s;
42
- <%s key={someKey} {...props} />`,Y,X,be,X),b[X+Y]=!0)}if(X=null,A!==void 0&&(r(A),X=""+A),m(v)&&(r(v.key),X=""+v.key),"key"in v){A={};for(var _e in v)_e!=="key"&&(A[_e]=v[_e])}else A=v;return X&&h(A,typeof f=="function"?f.displayName||f.name||"Unknown":f),D(f,X,oe,G,l(),A,le,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,k=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(f){return f()}};var T,S={},d=R.react_stack_bottom_frame.bind(R,g)(),p=k(s(g)),b={};oi.Fragment=$,oi.jsx=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!1,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)},oi.jsxs=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!0,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)}}()),oi}var mu;function Bh(){return mu||(mu=1,process.env.NODE_ENV==="production"?Wi.exports=Ih():Wi.exports=$h()),Wi.exports}var O=Bh(),yu=St.createContext(void 0),_u=i=>{const n=St.useContext(yu);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},wu=({client:i,children:n})=>(St.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),O.jsx(yu.Provider,{value:i,children:n})),bu=St.createContext(!1),jh=()=>St.useContext(bu);bu.Provider;function Yh(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var Fh=St.createContext(Yh()),Wh=()=>St.useContext(Fh),Uh=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},zh=i=>{St.useEffect(()=>{i.clearReset()},[i])},qh=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:l})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(l&&i.data===void 0||fu(r,[i.error,s])),Hh=i=>{if(i.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=i.staleTime;i.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},Gh=(i,n)=>i.isLoading&&i.isFetching&&!n,Vh=(i,n)=>i?.suspense&&n.isPending,xu=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function Kh(i,n,r){if(process.env.NODE_ENV!=="production"&&(typeof i!="object"||Array.isArray(i)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const s=jh(),l=Wh(),g=_u(),m=g.defaultQueryOptions(i);g.getDefaultOptions().queries?._experimental_beforeQuery?.(m),process.env.NODE_ENV!=="production"&&(m.queryFn||console.error(`[${m.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),m._optimisticResults=s?"isRestoring":"optimistic",Hh(m),Uh(m,l),zh(l);const h=!g.getQueryCache().get(m.queryHash),[C]=St.useState(()=>new n(g,m)),D=C.getOptimisticResult(m),E=!s&&i.subscribed!==!1;if(St.useSyncExternalStore(St.useCallback(N=>{const R=E?C.subscribe(Fi.batchCalls(N)):ji;return C.updateResult(),R},[C,E]),()=>C.getCurrentResult(),()=>C.getCurrentResult()),St.useEffect(()=>{C.setOptions(m)},[m,C]),Vh(m,D))throw xu(m,C,l);if(qh({result:D,errorResetBoundary:l,throwOnError:m.throwOnError,query:g.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw D.error;return g.getDefaultOptions().queries?._experimental_afterQuery?.(m,D),m.experimental_prefetchInRender&&!ni&&Gh(D,s)&&(h?xu(m,C,l):g.getQueryCache().get(m.queryHash)?.promise)?.catch(ji).finally(()=>{C.updateResult()}),m.notifyOnChangeProps?D:C.trackResult(D)}function Cu(i,n){return Kh(i,Rh)}function ls(i,n){const r=_u(),[s]=St.useState(()=>new Nh(r,i));St.useEffect(()=>{s.setOptions(i)},[s,i]);const l=St.useSyncExternalStore(St.useCallback(m=>s.subscribe(Fi.batchCalls(m)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),g=St.useCallback((m,h)=>{s.mutate(m,h).catch(ji)},[s]);if(l.error&&fu(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:g,mutateAsync:l.mutate}}var Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cs(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var n=i.default;if(typeof n=="function"){var r=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var l=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,l.get?l:{enumerable:!0,get:function(){return i[s]}})}),r}var fs={exports:{}},si={};/**
42
+ <%s key={someKey} {...props} />`,Y,X,be,X),b[X+Y]=!0)}if(X=null,A!==void 0&&(r(A),X=""+A),m(v)&&(r(v.key),X=""+v.key),"key"in v){A={};for(var _e in v)_e!=="key"&&(A[_e]=v[_e])}else A=v;return X&&h(A,typeof f=="function"?f.displayName||f.name||"Unknown":f),D(f,X,oe,G,l(),A,le,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,k=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(f){return f()}};var T,S={},d=R.react_stack_bottom_frame.bind(R,g)(),p=k(s(g)),b={};oi.Fragment=$,oi.jsx=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!1,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)},oi.jsxs=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!0,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)}}()),oi}var mu;function Bh(){return mu||(mu=1,process.env.NODE_ENV==="production"?Wi.exports=Ih():Wi.exports=$h()),Wi.exports}var O=Bh(),yu=St.createContext(void 0),_u=i=>{const n=St.useContext(yu);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},wu=({client:i,children:n})=>(St.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),O.jsx(yu.Provider,{value:i,children:n})),bu=St.createContext(!1),jh=()=>St.useContext(bu);bu.Provider;function Yh(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var Fh=St.createContext(Yh()),Wh=()=>St.useContext(Fh),Uh=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},zh=i=>{St.useEffect(()=>{i.clearReset()},[i])},qh=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:l})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(l&&i.data===void 0||fu(r,[i.error,s])),Hh=i=>{if(i.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),r=i.staleTime;i.staleTime=typeof r=="function"?(...s)=>n(r(...s)):n(r),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3))}},Gh=(i,n)=>i.isLoading&&i.isFetching&&!n,Vh=(i,n)=>i?.suspense&&n.isPending,xu=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function Kh(i,n,r){if(process.env.NODE_ENV!=="production"&&(typeof i!="object"||Array.isArray(i)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const s=jh(),l=Wh(),g=_u(),m=g.defaultQueryOptions(i);g.getDefaultOptions().queries?._experimental_beforeQuery?.(m),process.env.NODE_ENV!=="production"&&(m.queryFn||console.error(`[${m.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),m._optimisticResults=s?"isRestoring":"optimistic",Hh(m),Uh(m,l),zh(l);const h=!g.getQueryCache().get(m.queryHash),[C]=St.useState(()=>new n(g,m)),D=C.getOptimisticResult(m),E=!s&&i.subscribed!==!1;if(St.useSyncExternalStore(St.useCallback(N=>{const R=E?C.subscribe(Fi.batchCalls(N)):ji;return C.updateResult(),R},[C,E]),()=>C.getCurrentResult(),()=>C.getCurrentResult()),St.useEffect(()=>{C.setOptions(m)},[m,C]),Vh(m,D))throw xu(m,C,l);if(qh({result:D,errorResetBoundary:l,throwOnError:m.throwOnError,query:g.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw D.error;return g.getDefaultOptions().queries?._experimental_afterQuery?.(m,D),m.experimental_prefetchInRender&&!ni&&Gh(D,s)&&(h?xu(m,C,l):g.getQueryCache().get(m.queryHash)?.promise)?.catch(ji).finally(()=>{C.updateResult()}),m.notifyOnChangeProps?D:C.trackResult(D)}function Cu(i,n){return Kh(i,Rh)}function cs(i,n){const r=_u(),[s]=St.useState(()=>new Nh(r,i));St.useEffect(()=>{s.setOptions(i)},[s,i]);const l=St.useSyncExternalStore(St.useCallback(m=>s.subscribe(Fi.batchCalls(m)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),g=St.useCallback((m,h)=>{s.mutate(m,h).catch(ji)},[s]);if(l.error&&fu(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:g,mutateAsync:l.mutate}}var Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var n=i.default;if(typeof n=="function"){var r=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var l=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,l.get?l:{enumerable:!0,get:function(){return i[s]}})}),r}var hs={exports:{}},si={};/**
43
43
  * @license React
44
44
  * react-jsx-runtime.production.js
45
45
  *
@@ -60,7 +60,7 @@ React keys must be passed directly to JSX without using spread:
60
60
  <%s {...props} />
61
61
  React keys must be passed directly to JSX without using spread:
62
62
  let props = %s;
63
- <%s key={someKey} {...props} />`,Y,X,be,X),b[X+Y]=!0)}if(X=null,A!==void 0&&(r(A),X=""+A),m(v)&&(r(v.key),X=""+v.key),"key"in v){A={};for(var _e in v)_e!=="key"&&(A[_e]=v[_e])}else A=v;return X&&h(A,typeof f=="function"?f.displayName||f.name||"Unknown":f),D(f,X,oe,G,l(),A,le,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,k=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(f){return f()}};var T,S={},d=R.react_stack_bottom_frame.bind(R,g)(),p=k(s(g)),b={};Ui.Fragment=$,Ui.jsx=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!1,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)},Ui.jsxs=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!0,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)}}()),Ui}var Ou;function Jh(){return Ou||(Ou=1,process.env.NODE_ENV==="production"?fs.exports=Zh():fs.exports=Qh()),fs.exports}Jh();var hs={exports:{}},ds={};/**
63
+ <%s key={someKey} {...props} />`,Y,X,be,X),b[X+Y]=!0)}if(X=null,A!==void 0&&(r(A),X=""+A),m(v)&&(r(v.key),X=""+v.key),"key"in v){A={};for(var _e in v)_e!=="key"&&(A[_e]=v[_e])}else A=v;return X&&h(A,typeof f=="function"?f.displayName||f.name||"Unknown":f),D(f,X,oe,G,l(),A,le,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var R=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),re=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Object.prototype.hasOwnProperty,Oe=Array.isArray,k=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(f){return f()}};var T,S={},d=R.react_stack_bottom_frame.bind(R,g)(),p=k(s(g)),b={};Ui.Fragment=$,Ui.jsx=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!1,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)},Ui.jsxs=function(f,v,A,Y,G){var oe=1e4>re.recentlyCreatedOwnerStacks++;return E(f,v,A,!0,Y,G,oe?Error("react-stack-top-frame"):d,oe?k(s(f)):p)}}()),Ui}var Ou;function Jh(){return Ou||(Ou=1,process.env.NODE_ENV==="production"?hs.exports=Zh():hs.exports=Qh()),hs.exports}Jh();var ds={exports:{}},ps={};/**
64
64
  * @license React
65
65
  * react-compiler-runtime.production.js
66
66
  *
@@ -68,7 +68,7 @@ React keys must be passed directly to JSX without using spread:
68
68
  *
69
69
  * This source code is licensed under the MIT license found in the
70
70
  * LICENSE file in the root directory of this source tree.
71
- */var Eu;function Xh(){if(Eu)return ds;Eu=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return ds.c=function(n){return i.H.useMemoCache(n)},ds}var Tu={};/**
71
+ */var Eu;function Xh(){if(Eu)return ps;Eu=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return ps.c=function(n){return i.H.useMemoCache(n)},ps}var Tu={};/**
72
72
  * @license React
73
73
  * react-compiler-runtime.development.js
74
74
  *
@@ -80,15 +80,15 @@ React keys must be passed directly to JSX without using spread:
80
80
  1. You might have mismatching versions of React and the renderer (such as React DOM)
81
81
  2. You might be breaking the Rules of Hooks
82
82
  3. You might have more than one copy of React in the same app
83
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Tu}var Mu;function td(){return Mu||(Mu=1,process.env.NODE_ENV==="production"?hs.exports=Xh():hs.exports=ed()),hs.exports}td();/*!
83
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Tu}var Mu;function td(){return Mu||(Mu=1,process.env.NODE_ENV==="production"?ds.exports=Xh():ds.exports=ed()),ds.exports}td();/*!
84
84
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
85
85
  * SPDX-License-Identifier: Apache-2.0
86
- */var Ru={},ai={},ku;function nd(){if(ku)return ai;ku=1,ai.byteLength=h,ai.toByteArray=D,ai.fromByteArray=R;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,g=s.length;l<g;++l)i[l]=s[l],n[s.charCodeAt(l)]=l;n[45]=62,n[95]=63;function m(L){var I=L.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var $=L.indexOf("=");$===-1&&($=I);var H=$===I?0:4-$%4;return[$,H]}function h(L){var I=m(L),$=I[0],H=I[1];return($+H)*3/4-H}function C(L,I,$){return(I+$)*3/4-$}function D(L){var I,$=m(L),H=$[0],se=$[1],ue=new r(C(L,H,se)),ae=0,ce=se>0?H-4:H,Q;for(Q=0;Q<ce;Q+=4)I=n[L.charCodeAt(Q)]<<18|n[L.charCodeAt(Q+1)]<<12|n[L.charCodeAt(Q+2)]<<6|n[L.charCodeAt(Q+3)],ue[ae++]=I>>16&255,ue[ae++]=I>>8&255,ue[ae++]=I&255;return se===2&&(I=n[L.charCodeAt(Q)]<<2|n[L.charCodeAt(Q+1)]>>4,ue[ae++]=I&255),se===1&&(I=n[L.charCodeAt(Q)]<<10|n[L.charCodeAt(Q+1)]<<4|n[L.charCodeAt(Q+2)]>>2,ue[ae++]=I>>8&255,ue[ae++]=I&255),ue}function E(L){return i[L>>18&63]+i[L>>12&63]+i[L>>6&63]+i[L&63]}function N(L,I,$){for(var H,se=[],ue=I;ue<$;ue+=3)H=(L[ue]<<16&16711680)+(L[ue+1]<<8&65280)+(L[ue+2]&255),se.push(E(H));return se.join("")}function R(L){for(var I,$=L.length,H=$%3,se=[],ue=16383,ae=0,ce=$-H;ae<ce;ae+=ue)se.push(N(L,ae,ae+ue>ce?ce:ae+ue));return H===1?(I=L[$-1],se.push(i[I>>2]+i[I<<4&63]+"==")):H===2&&(I=(L[$-2]<<8)+L[$-1],se.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),se.join("")}return ai}var ps={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Lu;function rd(){return Lu||(Lu=1,ps.read=function(i,n,r,s,l){var g,m,h=l*8-s-1,C=(1<<h)-1,D=C>>1,E=-7,N=r?l-1:0,R=r?-1:1,L=i[n+N];for(N+=R,g=L&(1<<-E)-1,L>>=-E,E+=h;E>0;g=g*256+i[n+N],N+=R,E-=8);for(m=g&(1<<-E)-1,g>>=-E,E+=s;E>0;m=m*256+i[n+N],N+=R,E-=8);if(g===0)g=1-D;else{if(g===C)return m?NaN:(L?-1:1)*(1/0);m=m+Math.pow(2,s),g=g-D}return(L?-1:1)*m*Math.pow(2,g-s)},ps.write=function(i,n,r,s,l,g){var m,h,C,D=g*8-l-1,E=(1<<D)-1,N=E>>1,R=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=s?0:g-1,I=s?1:-1,$=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(h=isNaN(n)?1:0,m=E):(m=Math.floor(Math.log(n)/Math.LN2),n*(C=Math.pow(2,-m))<1&&(m--,C*=2),m+N>=1?n+=R/C:n+=R*Math.pow(2,1-N),n*C>=2&&(m++,C/=2),m+N>=E?(h=0,m=E):m+N>=1?(h=(n*C-1)*Math.pow(2,l),m=m+N):(h=n*Math.pow(2,N-1)*Math.pow(2,l),m=0));l>=8;i[r+L]=h&255,L+=I,h/=256,l-=8);for(m=m<<l|h,D+=l;D>0;i[r+L]=m&255,L+=I,m/=256,D-=8);i[r+L-I]|=$*128}),ps}var gs,Nu;function id(){if(Nu)return gs;Nu=1;var i={}.toString;return gs=Array.isArray||function(n){return i.call(n)=="[object Array]"},gs}/*!
86
+ */var Ru={},ai={},ku;function nd(){if(ku)return ai;ku=1,ai.byteLength=h,ai.toByteArray=D,ai.fromByteArray=R;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,g=s.length;l<g;++l)i[l]=s[l],n[s.charCodeAt(l)]=l;n[45]=62,n[95]=63;function m(L){var I=L.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var $=L.indexOf("=");$===-1&&($=I);var H=$===I?0:4-$%4;return[$,H]}function h(L){var I=m(L),$=I[0],H=I[1];return($+H)*3/4-H}function C(L,I,$){return(I+$)*3/4-$}function D(L){var I,$=m(L),H=$[0],se=$[1],ue=new r(C(L,H,se)),ae=0,ce=se>0?H-4:H,Q;for(Q=0;Q<ce;Q+=4)I=n[L.charCodeAt(Q)]<<18|n[L.charCodeAt(Q+1)]<<12|n[L.charCodeAt(Q+2)]<<6|n[L.charCodeAt(Q+3)],ue[ae++]=I>>16&255,ue[ae++]=I>>8&255,ue[ae++]=I&255;return se===2&&(I=n[L.charCodeAt(Q)]<<2|n[L.charCodeAt(Q+1)]>>4,ue[ae++]=I&255),se===1&&(I=n[L.charCodeAt(Q)]<<10|n[L.charCodeAt(Q+1)]<<4|n[L.charCodeAt(Q+2)]>>2,ue[ae++]=I>>8&255,ue[ae++]=I&255),ue}function E(L){return i[L>>18&63]+i[L>>12&63]+i[L>>6&63]+i[L&63]}function N(L,I,$){for(var H,se=[],ue=I;ue<$;ue+=3)H=(L[ue]<<16&16711680)+(L[ue+1]<<8&65280)+(L[ue+2]&255),se.push(E(H));return se.join("")}function R(L){for(var I,$=L.length,H=$%3,se=[],ue=16383,ae=0,ce=$-H;ae<ce;ae+=ue)se.push(N(L,ae,ae+ue>ce?ce:ae+ue));return H===1?(I=L[$-1],se.push(i[I>>2]+i[I<<4&63]+"==")):H===2&&(I=(L[$-2]<<8)+L[$-1],se.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),se.join("")}return ai}var gs={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Lu;function rd(){return Lu||(Lu=1,gs.read=function(i,n,r,s,l){var g,m,h=l*8-s-1,C=(1<<h)-1,D=C>>1,E=-7,N=r?l-1:0,R=r?-1:1,L=i[n+N];for(N+=R,g=L&(1<<-E)-1,L>>=-E,E+=h;E>0;g=g*256+i[n+N],N+=R,E-=8);for(m=g&(1<<-E)-1,g>>=-E,E+=s;E>0;m=m*256+i[n+N],N+=R,E-=8);if(g===0)g=1-D;else{if(g===C)return m?NaN:(L?-1:1)*(1/0);m=m+Math.pow(2,s),g=g-D}return(L?-1:1)*m*Math.pow(2,g-s)},gs.write=function(i,n,r,s,l,g){var m,h,C,D=g*8-l-1,E=(1<<D)-1,N=E>>1,R=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=s?0:g-1,I=s?1:-1,$=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(h=isNaN(n)?1:0,m=E):(m=Math.floor(Math.log(n)/Math.LN2),n*(C=Math.pow(2,-m))<1&&(m--,C*=2),m+N>=1?n+=R/C:n+=R*Math.pow(2,1-N),n*C>=2&&(m++,C/=2),m+N>=E?(h=0,m=E):m+N>=1?(h=(n*C-1)*Math.pow(2,l),m=m+N):(h=n*Math.pow(2,N-1)*Math.pow(2,l),m=0));l>=8;i[r+L]=h&255,L+=I,h/=256,l-=8);for(m=m<<l|h,D+=l;D>0;i[r+L]=m&255,L+=I,m/=256,D-=8);i[r+L-I]|=$*128}),gs}var vs,Nu;function id(){if(Nu)return vs;Nu=1;var i={}.toString;return vs=Array.isArray||function(n){return i.call(n)=="[object Array]"},vs}/*!
87
87
  * The buffer module from node.js, for the browser.
88
88
  *
89
89
  * @author Feross Aboukhadijeh <http://feross.org>
90
90
  * @license MIT
91
- */var Iu;function od(){return Iu||(Iu=1,function(i){var n=nd(),r=rd(),s=id();i.Buffer=h,i.SlowBuffer=se,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=Su.TYPED_ARRAY_SUPPORT!==void 0?Su.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=g();function l(){try{var u=new Uint8Array(1);return u.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},u.foo()===42&&typeof u.subarray=="function"&&u.subarray(1,1).byteLength===0}catch{return!1}}function g(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(u,c){if(g()<c)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(c),u.__proto__=h.prototype):(u===null&&(u=new h(c)),u.length=c),u}function h(u,c,_){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(u,c,_);if(typeof u=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return N(this,u)}return C(this,u,c,_)}h.poolSize=8192,h._augment=function(u){return u.__proto__=h.prototype,u};function C(u,c,_,M){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&c instanceof ArrayBuffer?I(u,c,_,M):typeof c=="string"?R(u,c,_):$(u,c)}h.from=function(u,c,_){return C(null,u,c,_)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}));function D(u){if(typeof u!="number")throw new TypeError('"size" argument must be a number');if(u<0)throw new RangeError('"size" argument must not be negative')}function E(u,c,_,M){return D(c),c<=0?m(u,c):_!==void 0?typeof M=="string"?m(u,c).fill(_,M):m(u,c).fill(_):m(u,c)}h.alloc=function(u,c,_){return E(null,u,c,_)};function N(u,c){if(D(c),u=m(u,c<0?0:H(c)|0),!h.TYPED_ARRAY_SUPPORT)for(var _=0;_<c;++_)u[_]=0;return u}h.allocUnsafe=function(u){return N(null,u)},h.allocUnsafeSlow=function(u){return N(null,u)};function R(u,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!h.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var M=ue(c,_)|0;u=m(u,M);var U=u.write(c,_);return U!==M&&(u=u.slice(0,U)),u}function L(u,c){var _=c.length<0?0:H(c.length)|0;u=m(u,_);for(var M=0;M<_;M+=1)u[M]=c[M]&255;return u}function I(u,c,_,M){if(c.byteLength,_<0||c.byteLength<_)throw new RangeError("'offset' is out of bounds");if(c.byteLength<_+(M||0))throw new RangeError("'length' is out of bounds");return _===void 0&&M===void 0?c=new Uint8Array(c):M===void 0?c=new Uint8Array(c,_):c=new Uint8Array(c,_,M),h.TYPED_ARRAY_SUPPORT?(u=c,u.__proto__=h.prototype):u=L(u,c),u}function $(u,c){if(h.isBuffer(c)){var _=H(c.length)|0;return u=m(u,_),u.length===0||c.copy(u,0,0,_),u}if(c){if(typeof ArrayBuffer<"u"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||Se(c.length)?m(u,0):L(u,c);if(c.type==="Buffer"&&s(c.data))return L(u,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function H(u){if(u>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return u|0}function se(u){return+u!=u&&(u=0),h.alloc(+u)}h.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},h.compare=function(u,c){if(!h.isBuffer(u)||!h.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(u===c)return 0;for(var _=u.length,M=c.length,U=0,te=Math.min(_,M);U<te;++U)if(u[U]!==c[U]){_=u[U],M=c[U];break}return _<M?-1:M<_?1:0},h.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(u,c){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return h.alloc(0);var _;if(c===void 0)for(c=0,_=0;_<u.length;++_)c+=u[_].length;var M=h.allocUnsafe(c),U=0;for(_=0;_<u.length;++_){var te=u[_];if(!h.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(M,U),U+=te.length}return M};function ue(u,c){if(h.isBuffer(u))return u.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var _=u.length;if(_===0)return 0;for(var M=!1;;)switch(c){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return B(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return K(u).length;default:if(M)return B(u).length;c=(""+c).toLowerCase(),M=!0}}h.byteLength=ue;function ae(u,c,_){var M=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,c>>>=0,_<=c))return"";for(u||(u="utf8");;)switch(u){case"hex":return b(this,c,_);case"utf8":case"utf-8":return k(this,c,_);case"ascii":return d(this,c,_);case"latin1":case"binary":return p(this,c,_);case"base64":return Oe(this,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f(this,c,_);default:if(M)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),M=!0}}h.prototype._isBuffer=!0;function ce(u,c,_){var M=u[c];u[c]=u[_],u[_]=M}h.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<u;c+=2)ce(this,c,c+1);return this},h.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<u;c+=4)ce(this,c,c+3),ce(this,c+1,c+2);return this},h.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<u;c+=8)ce(this,c,c+7),ce(this,c+1,c+6),ce(this,c+2,c+5),ce(this,c+3,c+4);return this},h.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?k(this,0,u):ae.apply(this,arguments)},h.prototype.equals=function(u){if(!h.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:h.compare(this,u)===0},h.prototype.inspect=function(){var u="",c=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(u+=" ... ")),"<Buffer "+u+">"},h.prototype.compare=function(u,c,_,M,U){if(!h.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),_===void 0&&(_=u?u.length:0),M===void 0&&(M=0),U===void 0&&(U=this.length),c<0||_>u.length||M<0||U>this.length)throw new RangeError("out of range index");if(M>=U&&c>=_)return 0;if(M>=U)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,M>>>=0,U>>>=0,this===u)return 0;for(var te=U-M,Ae=_-c,Ce=Math.min(te,Ae),Pe=this.slice(M,U),me=u.slice(c,_),Re=0;Re<Ce;++Re)if(Pe[Re]!==me[Re]){te=Pe[Re],Ae=me[Re];break}return te<Ae?-1:Ae<te?1:0};function Q(u,c,_,M,U){if(u.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=U?0:u.length-1),_<0&&(_=u.length+_),_>=u.length){if(U)return-1;_=u.length-1}else if(_<0)if(U)_=0;else return-1;if(typeof c=="string"&&(c=h.from(c,M)),h.isBuffer(c))return c.length===0?-1:ne(u,c,_,M,U);if(typeof c=="number")return c=c&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(u,c,_):Uint8Array.prototype.lastIndexOf.call(u,c,_):ne(u,[c],_,M,U);throw new TypeError("val must be string, number or Buffer")}function ne(u,c,_,M,U){var te=1,Ae=u.length,Ce=c.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(u.length<2||c.length<2)return-1;te=2,Ae/=2,Ce/=2,_/=2}function Pe(Xe,Qe){return te===1?Xe[Qe]:Xe.readUInt16BE(Qe*te)}var me;if(U){var Re=-1;for(me=_;me<Ae;me++)if(Pe(u,me)===Pe(c,Re===-1?0:me-Re)){if(Re===-1&&(Re=me),me-Re+1===Ce)return Re*te}else Re!==-1&&(me-=me-Re),Re=-1}else for(_+Ce>Ae&&(_=Ae-Ce),me=_;me>=0;me--){for(var Ie=!0,ke=0;ke<Ce;ke++)if(Pe(u,me+ke)!==Pe(c,ke)){Ie=!1;break}if(Ie)return me}return-1}h.prototype.includes=function(u,c,_){return this.indexOf(u,c,_)!==-1},h.prototype.indexOf=function(u,c,_){return Q(this,u,c,_,!0)},h.prototype.lastIndexOf=function(u,c,_){return Q(this,u,c,_,!1)};function J(u,c,_,M){_=Number(_)||0;var U=u.length-_;M?(M=Number(M),M>U&&(M=U)):M=U;var te=c.length;if(te%2!==0)throw new TypeError("Invalid hex string");M>te/2&&(M=te/2);for(var Ae=0;Ae<M;++Ae){var Ce=parseInt(c.substr(Ae*2,2),16);if(isNaN(Ce))return Ae;u[_+Ae]=Ce}return Ae}function V(u,c,_,M){return ee(B(c,u.length-_),u,_,M)}function de(u,c,_,M){return ee(Z(c),u,_,M)}function he(u,c,_,M){return de(u,c,_,M)}function re(u,c,_,M){return ee(K(c),u,_,M)}function De(u,c,_,M){return ee(W(c,u.length-_),u,_,M)}h.prototype.write=function(u,c,_,M){if(c===void 0)M="utf8",_=this.length,c=0;else if(_===void 0&&typeof c=="string")M=c,_=this.length,c=0;else if(isFinite(c))c=c|0,isFinite(_)?(_=_|0,M===void 0&&(M="utf8")):(M=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-c;if((_===void 0||_>U)&&(_=U),u.length>0&&(_<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");for(var te=!1;;)switch(M){case"hex":return J(this,u,c,_);case"utf8":case"utf-8":return V(this,u,c,_);case"ascii":return de(this,u,c,_);case"latin1":case"binary":return he(this,u,c,_);case"base64":return re(this,u,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,u,c,_);default:if(te)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),te=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(u,c,_){return c===0&&_===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(c,_))}function k(u,c,_){_=Math.min(u.length,_);for(var M=[],U=c;U<_;){var te=u[U],Ae=null,Ce=te>239?4:te>223?3:te>191?2:1;if(U+Ce<=_){var Pe,me,Re,Ie;switch(Ce){case 1:te<128&&(Ae=te);break;case 2:Pe=u[U+1],(Pe&192)===128&&(Ie=(te&31)<<6|Pe&63,Ie>127&&(Ae=Ie));break;case 3:Pe=u[U+1],me=u[U+2],(Pe&192)===128&&(me&192)===128&&(Ie=(te&15)<<12|(Pe&63)<<6|me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(Ae=Ie));break;case 4:Pe=u[U+1],me=u[U+2],Re=u[U+3],(Pe&192)===128&&(me&192)===128&&(Re&192)===128&&(Ie=(te&15)<<18|(Pe&63)<<12|(me&63)<<6|Re&63,Ie>65535&&Ie<1114112&&(Ae=Ie))}}Ae===null?(Ae=65533,Ce=1):Ae>65535&&(Ae-=65536,M.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),M.push(Ae),U+=Ce}return S(M)}var T=4096;function S(u){var c=u.length;if(c<=T)return String.fromCharCode.apply(String,u);for(var _="",M=0;M<c;)_+=String.fromCharCode.apply(String,u.slice(M,M+=T));return _}function d(u,c,_){var M="";_=Math.min(u.length,_);for(var U=c;U<_;++U)M+=String.fromCharCode(u[U]&127);return M}function p(u,c,_){var M="";_=Math.min(u.length,_);for(var U=c;U<_;++U)M+=String.fromCharCode(u[U]);return M}function b(u,c,_){var M=u.length;(!c||c<0)&&(c=0),(!_||_<0||_>M)&&(_=M);for(var U="",te=c;te<_;++te)U+=ve(u[te]);return U}function f(u,c,_){for(var M=u.slice(c,_),U="",te=0;te<M.length;te+=2)U+=String.fromCharCode(M[te]+M[te+1]*256);return U}h.prototype.slice=function(u,c){var _=this.length;u=~~u,c=c===void 0?_:~~c,u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),c<u&&(c=u);var M;if(h.TYPED_ARRAY_SUPPORT)M=this.subarray(u,c),M.__proto__=h.prototype;else{var U=c-u;M=new h(U,void 0);for(var te=0;te<U;++te)M[te]=this[te+u]}return M};function v(u,c,_){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+c>_)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=this[u],U=1,te=0;++te<c&&(U*=256);)M+=this[u+te]*U;return M},h.prototype.readUIntBE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=this[u+--c],U=1;c>0&&(U*=256);)M+=this[u+--c]*U;return M},h.prototype.readUInt8=function(u,c){return c||v(u,1,this.length),this[u]},h.prototype.readUInt16LE=function(u,c){return c||v(u,2,this.length),this[u]|this[u+1]<<8},h.prototype.readUInt16BE=function(u,c){return c||v(u,2,this.length),this[u]<<8|this[u+1]},h.prototype.readUInt32LE=function(u,c){return c||v(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},h.prototype.readUInt32BE=function(u,c){return c||v(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},h.prototype.readIntLE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=this[u],U=1,te=0;++te<c&&(U*=256);)M+=this[u+te]*U;return U*=128,M>=U&&(M-=Math.pow(2,8*c)),M},h.prototype.readIntBE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=c,U=1,te=this[u+--M];M>0&&(U*=256);)te+=this[u+--M]*U;return U*=128,te>=U&&(te-=Math.pow(2,8*c)),te},h.prototype.readInt8=function(u,c){return c||v(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},h.prototype.readInt16LE=function(u,c){c||v(u,2,this.length);var _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},h.prototype.readInt16BE=function(u,c){c||v(u,2,this.length);var _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},h.prototype.readInt32LE=function(u,c){return c||v(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},h.prototype.readInt32BE=function(u,c){return c||v(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},h.prototype.readFloatLE=function(u,c){return c||v(u,4,this.length),r.read(this,u,!0,23,4)},h.prototype.readFloatBE=function(u,c){return c||v(u,4,this.length),r.read(this,u,!1,23,4)},h.prototype.readDoubleLE=function(u,c){return c||v(u,8,this.length),r.read(this,u,!0,52,8)},h.prototype.readDoubleBE=function(u,c){return c||v(u,8,this.length),r.read(this,u,!1,52,8)};function A(u,c,_,M,U,te){if(!h.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>U||c<te)throw new RangeError('"value" argument is out of bounds');if(_+M>u.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function(u,c,_,M){if(u=+u,c=c|0,_=_|0,!M){var U=Math.pow(2,8*_)-1;A(this,u,c,_,U,0)}var te=1,Ae=0;for(this[c]=u&255;++Ae<_&&(te*=256);)this[c+Ae]=u/te&255;return c+_},h.prototype.writeUIntBE=function(u,c,_,M){if(u=+u,c=c|0,_=_|0,!M){var U=Math.pow(2,8*_)-1;A(this,u,c,_,U,0)}var te=_-1,Ae=1;for(this[c+te]=u&255;--te>=0&&(Ae*=256);)this[c+te]=u/Ae&255;return c+_},h.prototype.writeUInt8=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,1,255,0),h.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[c]=u&255,c+1};function Y(u,c,_,M){c<0&&(c=65535+c+1);for(var U=0,te=Math.min(u.length-_,2);U<te;++U)u[_+U]=(c&255<<8*(M?U:1-U))>>>(M?U:1-U)*8}h.prototype.writeUInt16LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=u&255,this[c+1]=u>>>8):Y(this,u,c,!0),c+2},h.prototype.writeUInt16BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>8,this[c+1]=u&255):Y(this,u,c,!1),c+2};function G(u,c,_,M){c<0&&(c=4294967295+c+1);for(var U=0,te=Math.min(u.length-_,4);U<te;++U)u[_+U]=c>>>(M?U:3-U)*8&255}h.prototype.writeUInt32LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[c+3]=u>>>24,this[c+2]=u>>>16,this[c+1]=u>>>8,this[c]=u&255):G(this,u,c,!0),c+4},h.prototype.writeUInt32BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255):G(this,u,c,!1),c+4},h.prototype.writeIntLE=function(u,c,_,M){if(u=+u,c=c|0,!M){var U=Math.pow(2,8*_-1);A(this,u,c,_,U-1,-U)}var te=0,Ae=1,Ce=0;for(this[c]=u&255;++te<_&&(Ae*=256);)u<0&&Ce===0&&this[c+te-1]!==0&&(Ce=1),this[c+te]=(u/Ae>>0)-Ce&255;return c+_},h.prototype.writeIntBE=function(u,c,_,M){if(u=+u,c=c|0,!M){var U=Math.pow(2,8*_-1);A(this,u,c,_,U-1,-U)}var te=_-1,Ae=1,Ce=0;for(this[c+te]=u&255;--te>=0&&(Ae*=256);)u<0&&Ce===0&&this[c+te+1]!==0&&(Ce=1),this[c+te]=(u/Ae>>0)-Ce&255;return c+_},h.prototype.writeInt8=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,1,127,-128),h.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[c]=u&255,c+1},h.prototype.writeInt16LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=u&255,this[c+1]=u>>>8):Y(this,u,c,!0),c+2},h.prototype.writeInt16BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>8,this[c+1]=u&255):Y(this,u,c,!1),c+2},h.prototype.writeInt32LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[c]=u&255,this[c+1]=u>>>8,this[c+2]=u>>>16,this[c+3]=u>>>24):G(this,u,c,!0),c+4},h.prototype.writeInt32BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255):G(this,u,c,!1),c+4};function oe(u,c,_,M,U,te){if(_+M>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function le(u,c,_,M,U){return U||oe(u,c,_,4),r.write(u,c,_,M,23,4),_+4}h.prototype.writeFloatLE=function(u,c,_){return le(this,u,c,!0,_)},h.prototype.writeFloatBE=function(u,c,_){return le(this,u,c,!1,_)};function we(u,c,_,M,U){return U||oe(u,c,_,8),r.write(u,c,_,M,52,8),_+8}h.prototype.writeDoubleLE=function(u,c,_){return we(this,u,c,!0,_)},h.prototype.writeDoubleBE=function(u,c,_){return we(this,u,c,!1,_)},h.prototype.copy=function(u,c,_,M){if(_||(_=0),!M&&M!==0&&(M=this.length),c>=u.length&&(c=u.length),c||(c=0),M>0&&M<_&&(M=_),M===_||u.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("sourceStart out of bounds");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),u.length-c<M-_&&(M=u.length-c+_);var U=M-_,te;if(this===u&&_<c&&c<M)for(te=U-1;te>=0;--te)u[te+c]=this[te+_];else if(U<1e3||!h.TYPED_ARRAY_SUPPORT)for(te=0;te<U;++te)u[te+c]=this[te+_];else Uint8Array.prototype.set.call(u,this.subarray(_,_+U),c);return U},h.prototype.fill=function(u,c,_,M){if(typeof u=="string"){if(typeof c=="string"?(M=c,c=0,_=this.length):typeof _=="string"&&(M=_,_=this.length),u.length===1){var U=u.charCodeAt(0);U<256&&(u=U)}if(M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!h.isEncoding(M))throw new TypeError("Unknown encoding: "+M)}else typeof u=="number"&&(u=u&255);if(c<0||this.length<c||this.length<_)throw new RangeError("Out of range index");if(_<=c)return this;c=c>>>0,_=_===void 0?this.length:_>>>0,u||(u=0);var te;if(typeof u=="number")for(te=c;te<_;++te)this[te]=u;else{var Ae=h.isBuffer(u)?u:B(new h(u,M).toString()),Ce=Ae.length;for(te=0;te<_-c;++te)this[te+c]=Ae[te%Ce]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function be(u){if(u=_e(u).replace(X,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function _e(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function ve(u){return u<16?"0"+u.toString(16):u.toString(16)}function B(u,c){c=c||1/0;for(var _,M=u.length,U=null,te=[],Ae=0;Ae<M;++Ae){if(_=u.charCodeAt(Ae),_>55295&&_<57344){if(!U){if(_>56319){(c-=3)>-1&&te.push(239,191,189);continue}else if(Ae+1===M){(c-=3)>-1&&te.push(239,191,189);continue}U=_;continue}if(_<56320){(c-=3)>-1&&te.push(239,191,189),U=_;continue}_=(U-55296<<10|_-56320)+65536}else U&&(c-=3)>-1&&te.push(239,191,189);if(U=null,_<128){if((c-=1)<0)break;te.push(_)}else if(_<2048){if((c-=2)<0)break;te.push(_>>6|192,_&63|128)}else if(_<65536){if((c-=3)<0)break;te.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((c-=4)<0)break;te.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return te}function Z(u){for(var c=[],_=0;_<u.length;++_)c.push(u.charCodeAt(_)&255);return c}function W(u,c){for(var _,M,U,te=[],Ae=0;Ae<u.length&&!((c-=2)<0);++Ae)_=u.charCodeAt(Ae),M=_>>8,U=_%256,te.push(U),te.push(M);return te}function K(u){return n.toByteArray(be(u))}function ee(u,c,_,M){for(var U=0;U<M&&!(U+_>=c.length||U>=u.length);++U)c[U+_]=u[U];return U}function Se(u){return u!==u}}(Ru)),Ru}od();var yr;if(typeof window<"u"&&window.crypto&&(yr=window.crypto),!yr&&typeof window<"u"&&window.msCrypto&&(yr=window.msCrypto),!yr&&typeof global<"u"&&global.crypto&&(yr=global.crypto),!yr&&typeof require=="function")try{yr=require("crypto")}catch{}var $u={};/*! *****************************************************************************
91
+ */var Iu;function od(){return Iu||(Iu=1,function(i){var n=nd(),r=rd(),s=id();i.Buffer=h,i.SlowBuffer=se,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=Su.TYPED_ARRAY_SUPPORT!==void 0?Su.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=g();function l(){try{var u=new Uint8Array(1);return u.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},u.foo()===42&&typeof u.subarray=="function"&&u.subarray(1,1).byteLength===0}catch{return!1}}function g(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(u,c){if(g()<c)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(c),u.__proto__=h.prototype):(u===null&&(u=new h(c)),u.length=c),u}function h(u,c,_){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(u,c,_);if(typeof u=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return N(this,u)}return C(this,u,c,_)}h.poolSize=8192,h._augment=function(u){return u.__proto__=h.prototype,u};function C(u,c,_,M){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&c instanceof ArrayBuffer?I(u,c,_,M):typeof c=="string"?R(u,c,_):$(u,c)}h.from=function(u,c,_){return C(null,u,c,_)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}));function D(u){if(typeof u!="number")throw new TypeError('"size" argument must be a number');if(u<0)throw new RangeError('"size" argument must not be negative')}function E(u,c,_,M){return D(c),c<=0?m(u,c):_!==void 0?typeof M=="string"?m(u,c).fill(_,M):m(u,c).fill(_):m(u,c)}h.alloc=function(u,c,_){return E(null,u,c,_)};function N(u,c){if(D(c),u=m(u,c<0?0:H(c)|0),!h.TYPED_ARRAY_SUPPORT)for(var _=0;_<c;++_)u[_]=0;return u}h.allocUnsafe=function(u){return N(null,u)},h.allocUnsafeSlow=function(u){return N(null,u)};function R(u,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!h.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var M=ue(c,_)|0;u=m(u,M);var U=u.write(c,_);return U!==M&&(u=u.slice(0,U)),u}function L(u,c){var _=c.length<0?0:H(c.length)|0;u=m(u,_);for(var M=0;M<_;M+=1)u[M]=c[M]&255;return u}function I(u,c,_,M){if(c.byteLength,_<0||c.byteLength<_)throw new RangeError("'offset' is out of bounds");if(c.byteLength<_+(M||0))throw new RangeError("'length' is out of bounds");return _===void 0&&M===void 0?c=new Uint8Array(c):M===void 0?c=new Uint8Array(c,_):c=new Uint8Array(c,_,M),h.TYPED_ARRAY_SUPPORT?(u=c,u.__proto__=h.prototype):u=L(u,c),u}function $(u,c){if(h.isBuffer(c)){var _=H(c.length)|0;return u=m(u,_),u.length===0||c.copy(u,0,0,_),u}if(c){if(typeof ArrayBuffer<"u"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||Se(c.length)?m(u,0):L(u,c);if(c.type==="Buffer"&&s(c.data))return L(u,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function H(u){if(u>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return u|0}function se(u){return+u!=u&&(u=0),h.alloc(+u)}h.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},h.compare=function(u,c){if(!h.isBuffer(u)||!h.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(u===c)return 0;for(var _=u.length,M=c.length,U=0,te=Math.min(_,M);U<te;++U)if(u[U]!==c[U]){_=u[U],M=c[U];break}return _<M?-1:M<_?1:0},h.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(u,c){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return h.alloc(0);var _;if(c===void 0)for(c=0,_=0;_<u.length;++_)c+=u[_].length;var M=h.allocUnsafe(c),U=0;for(_=0;_<u.length;++_){var te=u[_];if(!h.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(M,U),U+=te.length}return M};function ue(u,c){if(h.isBuffer(u))return u.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var _=u.length;if(_===0)return 0;for(var M=!1;;)switch(c){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return B(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return K(u).length;default:if(M)return B(u).length;c=(""+c).toLowerCase(),M=!0}}h.byteLength=ue;function ae(u,c,_){var M=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,c>>>=0,_<=c))return"";for(u||(u="utf8");;)switch(u){case"hex":return b(this,c,_);case"utf8":case"utf-8":return k(this,c,_);case"ascii":return d(this,c,_);case"latin1":case"binary":return p(this,c,_);case"base64":return Oe(this,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f(this,c,_);default:if(M)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),M=!0}}h.prototype._isBuffer=!0;function ce(u,c,_){var M=u[c];u[c]=u[_],u[_]=M}h.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<u;c+=2)ce(this,c,c+1);return this},h.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<u;c+=4)ce(this,c,c+3),ce(this,c+1,c+2);return this},h.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<u;c+=8)ce(this,c,c+7),ce(this,c+1,c+6),ce(this,c+2,c+5),ce(this,c+3,c+4);return this},h.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?k(this,0,u):ae.apply(this,arguments)},h.prototype.equals=function(u){if(!h.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:h.compare(this,u)===0},h.prototype.inspect=function(){var u="",c=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(u+=" ... ")),"<Buffer "+u+">"},h.prototype.compare=function(u,c,_,M,U){if(!h.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),_===void 0&&(_=u?u.length:0),M===void 0&&(M=0),U===void 0&&(U=this.length),c<0||_>u.length||M<0||U>this.length)throw new RangeError("out of range index");if(M>=U&&c>=_)return 0;if(M>=U)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,M>>>=0,U>>>=0,this===u)return 0;for(var te=U-M,Ae=_-c,Ce=Math.min(te,Ae),Pe=this.slice(M,U),me=u.slice(c,_),Re=0;Re<Ce;++Re)if(Pe[Re]!==me[Re]){te=Pe[Re],Ae=me[Re];break}return te<Ae?-1:Ae<te?1:0};function Q(u,c,_,M,U){if(u.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=U?0:u.length-1),_<0&&(_=u.length+_),_>=u.length){if(U)return-1;_=u.length-1}else if(_<0)if(U)_=0;else return-1;if(typeof c=="string"&&(c=h.from(c,M)),h.isBuffer(c))return c.length===0?-1:ne(u,c,_,M,U);if(typeof c=="number")return c=c&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(u,c,_):Uint8Array.prototype.lastIndexOf.call(u,c,_):ne(u,[c],_,M,U);throw new TypeError("val must be string, number or Buffer")}function ne(u,c,_,M,U){var te=1,Ae=u.length,Ce=c.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(u.length<2||c.length<2)return-1;te=2,Ae/=2,Ce/=2,_/=2}function Pe(Je,Ze){return te===1?Je[Ze]:Je.readUInt16BE(Ze*te)}var me;if(U){var Re=-1;for(me=_;me<Ae;me++)if(Pe(u,me)===Pe(c,Re===-1?0:me-Re)){if(Re===-1&&(Re=me),me-Re+1===Ce)return Re*te}else Re!==-1&&(me-=me-Re),Re=-1}else for(_+Ce>Ae&&(_=Ae-Ce),me=_;me>=0;me--){for(var Ie=!0,ke=0;ke<Ce;ke++)if(Pe(u,me+ke)!==Pe(c,ke)){Ie=!1;break}if(Ie)return me}return-1}h.prototype.includes=function(u,c,_){return this.indexOf(u,c,_)!==-1},h.prototype.indexOf=function(u,c,_){return Q(this,u,c,_,!0)},h.prototype.lastIndexOf=function(u,c,_){return Q(this,u,c,_,!1)};function J(u,c,_,M){_=Number(_)||0;var U=u.length-_;M?(M=Number(M),M>U&&(M=U)):M=U;var te=c.length;if(te%2!==0)throw new TypeError("Invalid hex string");M>te/2&&(M=te/2);for(var Ae=0;Ae<M;++Ae){var Ce=parseInt(c.substr(Ae*2,2),16);if(isNaN(Ce))return Ae;u[_+Ae]=Ce}return Ae}function V(u,c,_,M){return ee(B(c,u.length-_),u,_,M)}function de(u,c,_,M){return ee(Z(c),u,_,M)}function he(u,c,_,M){return de(u,c,_,M)}function re(u,c,_,M){return ee(K(c),u,_,M)}function De(u,c,_,M){return ee(W(c,u.length-_),u,_,M)}h.prototype.write=function(u,c,_,M){if(c===void 0)M="utf8",_=this.length,c=0;else if(_===void 0&&typeof c=="string")M=c,_=this.length,c=0;else if(isFinite(c))c=c|0,isFinite(_)?(_=_|0,M===void 0&&(M="utf8")):(M=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-c;if((_===void 0||_>U)&&(_=U),u.length>0&&(_<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");for(var te=!1;;)switch(M){case"hex":return J(this,u,c,_);case"utf8":case"utf-8":return V(this,u,c,_);case"ascii":return de(this,u,c,_);case"latin1":case"binary":return he(this,u,c,_);case"base64":return re(this,u,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,u,c,_);default:if(te)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),te=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(u,c,_){return c===0&&_===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(c,_))}function k(u,c,_){_=Math.min(u.length,_);for(var M=[],U=c;U<_;){var te=u[U],Ae=null,Ce=te>239?4:te>223?3:te>191?2:1;if(U+Ce<=_){var Pe,me,Re,Ie;switch(Ce){case 1:te<128&&(Ae=te);break;case 2:Pe=u[U+1],(Pe&192)===128&&(Ie=(te&31)<<6|Pe&63,Ie>127&&(Ae=Ie));break;case 3:Pe=u[U+1],me=u[U+2],(Pe&192)===128&&(me&192)===128&&(Ie=(te&15)<<12|(Pe&63)<<6|me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(Ae=Ie));break;case 4:Pe=u[U+1],me=u[U+2],Re=u[U+3],(Pe&192)===128&&(me&192)===128&&(Re&192)===128&&(Ie=(te&15)<<18|(Pe&63)<<12|(me&63)<<6|Re&63,Ie>65535&&Ie<1114112&&(Ae=Ie))}}Ae===null?(Ae=65533,Ce=1):Ae>65535&&(Ae-=65536,M.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),M.push(Ae),U+=Ce}return S(M)}var T=4096;function S(u){var c=u.length;if(c<=T)return String.fromCharCode.apply(String,u);for(var _="",M=0;M<c;)_+=String.fromCharCode.apply(String,u.slice(M,M+=T));return _}function d(u,c,_){var M="";_=Math.min(u.length,_);for(var U=c;U<_;++U)M+=String.fromCharCode(u[U]&127);return M}function p(u,c,_){var M="";_=Math.min(u.length,_);for(var U=c;U<_;++U)M+=String.fromCharCode(u[U]);return M}function b(u,c,_){var M=u.length;(!c||c<0)&&(c=0),(!_||_<0||_>M)&&(_=M);for(var U="",te=c;te<_;++te)U+=ve(u[te]);return U}function f(u,c,_){for(var M=u.slice(c,_),U="",te=0;te<M.length;te+=2)U+=String.fromCharCode(M[te]+M[te+1]*256);return U}h.prototype.slice=function(u,c){var _=this.length;u=~~u,c=c===void 0?_:~~c,u<0?(u+=_,u<0&&(u=0)):u>_&&(u=_),c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),c<u&&(c=u);var M;if(h.TYPED_ARRAY_SUPPORT)M=this.subarray(u,c),M.__proto__=h.prototype;else{var U=c-u;M=new h(U,void 0);for(var te=0;te<U;++te)M[te]=this[te+u]}return M};function v(u,c,_){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+c>_)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=this[u],U=1,te=0;++te<c&&(U*=256);)M+=this[u+te]*U;return M},h.prototype.readUIntBE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=this[u+--c],U=1;c>0&&(U*=256);)M+=this[u+--c]*U;return M},h.prototype.readUInt8=function(u,c){return c||v(u,1,this.length),this[u]},h.prototype.readUInt16LE=function(u,c){return c||v(u,2,this.length),this[u]|this[u+1]<<8},h.prototype.readUInt16BE=function(u,c){return c||v(u,2,this.length),this[u]<<8|this[u+1]},h.prototype.readUInt32LE=function(u,c){return c||v(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},h.prototype.readUInt32BE=function(u,c){return c||v(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},h.prototype.readIntLE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=this[u],U=1,te=0;++te<c&&(U*=256);)M+=this[u+te]*U;return U*=128,M>=U&&(M-=Math.pow(2,8*c)),M},h.prototype.readIntBE=function(u,c,_){u=u|0,c=c|0,_||v(u,c,this.length);for(var M=c,U=1,te=this[u+--M];M>0&&(U*=256);)te+=this[u+--M]*U;return U*=128,te>=U&&(te-=Math.pow(2,8*c)),te},h.prototype.readInt8=function(u,c){return c||v(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},h.prototype.readInt16LE=function(u,c){c||v(u,2,this.length);var _=this[u]|this[u+1]<<8;return _&32768?_|4294901760:_},h.prototype.readInt16BE=function(u,c){c||v(u,2,this.length);var _=this[u+1]|this[u]<<8;return _&32768?_|4294901760:_},h.prototype.readInt32LE=function(u,c){return c||v(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},h.prototype.readInt32BE=function(u,c){return c||v(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},h.prototype.readFloatLE=function(u,c){return c||v(u,4,this.length),r.read(this,u,!0,23,4)},h.prototype.readFloatBE=function(u,c){return c||v(u,4,this.length),r.read(this,u,!1,23,4)},h.prototype.readDoubleLE=function(u,c){return c||v(u,8,this.length),r.read(this,u,!0,52,8)},h.prototype.readDoubleBE=function(u,c){return c||v(u,8,this.length),r.read(this,u,!1,52,8)};function A(u,c,_,M,U,te){if(!h.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>U||c<te)throw new RangeError('"value" argument is out of bounds');if(_+M>u.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function(u,c,_,M){if(u=+u,c=c|0,_=_|0,!M){var U=Math.pow(2,8*_)-1;A(this,u,c,_,U,0)}var te=1,Ae=0;for(this[c]=u&255;++Ae<_&&(te*=256);)this[c+Ae]=u/te&255;return c+_},h.prototype.writeUIntBE=function(u,c,_,M){if(u=+u,c=c|0,_=_|0,!M){var U=Math.pow(2,8*_)-1;A(this,u,c,_,U,0)}var te=_-1,Ae=1;for(this[c+te]=u&255;--te>=0&&(Ae*=256);)this[c+te]=u/Ae&255;return c+_},h.prototype.writeUInt8=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,1,255,0),h.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[c]=u&255,c+1};function Y(u,c,_,M){c<0&&(c=65535+c+1);for(var U=0,te=Math.min(u.length-_,2);U<te;++U)u[_+U]=(c&255<<8*(M?U:1-U))>>>(M?U:1-U)*8}h.prototype.writeUInt16LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=u&255,this[c+1]=u>>>8):Y(this,u,c,!0),c+2},h.prototype.writeUInt16BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>8,this[c+1]=u&255):Y(this,u,c,!1),c+2};function G(u,c,_,M){c<0&&(c=4294967295+c+1);for(var U=0,te=Math.min(u.length-_,4);U<te;++U)u[_+U]=c>>>(M?U:3-U)*8&255}h.prototype.writeUInt32LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[c+3]=u>>>24,this[c+2]=u>>>16,this[c+1]=u>>>8,this[c]=u&255):G(this,u,c,!0),c+4},h.prototype.writeUInt32BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255):G(this,u,c,!1),c+4},h.prototype.writeIntLE=function(u,c,_,M){if(u=+u,c=c|0,!M){var U=Math.pow(2,8*_-1);A(this,u,c,_,U-1,-U)}var te=0,Ae=1,Ce=0;for(this[c]=u&255;++te<_&&(Ae*=256);)u<0&&Ce===0&&this[c+te-1]!==0&&(Ce=1),this[c+te]=(u/Ae>>0)-Ce&255;return c+_},h.prototype.writeIntBE=function(u,c,_,M){if(u=+u,c=c|0,!M){var U=Math.pow(2,8*_-1);A(this,u,c,_,U-1,-U)}var te=_-1,Ae=1,Ce=0;for(this[c+te]=u&255;--te>=0&&(Ae*=256);)u<0&&Ce===0&&this[c+te+1]!==0&&(Ce=1),this[c+te]=(u/Ae>>0)-Ce&255;return c+_},h.prototype.writeInt8=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,1,127,-128),h.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[c]=u&255,c+1},h.prototype.writeInt16LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=u&255,this[c+1]=u>>>8):Y(this,u,c,!0),c+2},h.prototype.writeInt16BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>8,this[c+1]=u&255):Y(this,u,c,!1),c+2},h.prototype.writeInt32LE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[c]=u&255,this[c+1]=u>>>8,this[c+2]=u>>>16,this[c+3]=u>>>24):G(this,u,c,!0),c+4},h.prototype.writeInt32BE=function(u,c,_){return u=+u,c=c|0,_||A(this,u,c,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),h.TYPED_ARRAY_SUPPORT?(this[c]=u>>>24,this[c+1]=u>>>16,this[c+2]=u>>>8,this[c+3]=u&255):G(this,u,c,!1),c+4};function oe(u,c,_,M,U,te){if(_+M>u.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function le(u,c,_,M,U){return U||oe(u,c,_,4),r.write(u,c,_,M,23,4),_+4}h.prototype.writeFloatLE=function(u,c,_){return le(this,u,c,!0,_)},h.prototype.writeFloatBE=function(u,c,_){return le(this,u,c,!1,_)};function we(u,c,_,M,U){return U||oe(u,c,_,8),r.write(u,c,_,M,52,8),_+8}h.prototype.writeDoubleLE=function(u,c,_){return we(this,u,c,!0,_)},h.prototype.writeDoubleBE=function(u,c,_){return we(this,u,c,!1,_)},h.prototype.copy=function(u,c,_,M){if(_||(_=0),!M&&M!==0&&(M=this.length),c>=u.length&&(c=u.length),c||(c=0),M>0&&M<_&&(M=_),M===_||u.length===0||this.length===0)return 0;if(c<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("sourceStart out of bounds");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),u.length-c<M-_&&(M=u.length-c+_);var U=M-_,te;if(this===u&&_<c&&c<M)for(te=U-1;te>=0;--te)u[te+c]=this[te+_];else if(U<1e3||!h.TYPED_ARRAY_SUPPORT)for(te=0;te<U;++te)u[te+c]=this[te+_];else Uint8Array.prototype.set.call(u,this.subarray(_,_+U),c);return U},h.prototype.fill=function(u,c,_,M){if(typeof u=="string"){if(typeof c=="string"?(M=c,c=0,_=this.length):typeof _=="string"&&(M=_,_=this.length),u.length===1){var U=u.charCodeAt(0);U<256&&(u=U)}if(M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!h.isEncoding(M))throw new TypeError("Unknown encoding: "+M)}else typeof u=="number"&&(u=u&255);if(c<0||this.length<c||this.length<_)throw new RangeError("Out of range index");if(_<=c)return this;c=c>>>0,_=_===void 0?this.length:_>>>0,u||(u=0);var te;if(typeof u=="number")for(te=c;te<_;++te)this[te]=u;else{var Ae=h.isBuffer(u)?u:B(new h(u,M).toString()),Ce=Ae.length;for(te=0;te<_-c;++te)this[te+c]=Ae[te%Ce]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function be(u){if(u=_e(u).replace(X,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function _e(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function ve(u){return u<16?"0"+u.toString(16):u.toString(16)}function B(u,c){c=c||1/0;for(var _,M=u.length,U=null,te=[],Ae=0;Ae<M;++Ae){if(_=u.charCodeAt(Ae),_>55295&&_<57344){if(!U){if(_>56319){(c-=3)>-1&&te.push(239,191,189);continue}else if(Ae+1===M){(c-=3)>-1&&te.push(239,191,189);continue}U=_;continue}if(_<56320){(c-=3)>-1&&te.push(239,191,189),U=_;continue}_=(U-55296<<10|_-56320)+65536}else U&&(c-=3)>-1&&te.push(239,191,189);if(U=null,_<128){if((c-=1)<0)break;te.push(_)}else if(_<2048){if((c-=2)<0)break;te.push(_>>6|192,_&63|128)}else if(_<65536){if((c-=3)<0)break;te.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((c-=4)<0)break;te.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return te}function Z(u){for(var c=[],_=0;_<u.length;++_)c.push(u.charCodeAt(_)&255);return c}function W(u,c){for(var _,M,U,te=[],Ae=0;Ae<u.length&&!((c-=2)<0);++Ae)_=u.charCodeAt(Ae),M=_>>8,U=_%256,te.push(U),te.push(M);return te}function K(u){return n.toByteArray(be(u))}function ee(u,c,_,M){for(var U=0;U<M&&!(U+_>=c.length||U>=u.length);++U)c[U+_]=u[U];return U}function Se(u){return u!==u}}(Ru)),Ru}od();var yr;if(typeof window<"u"&&window.crypto&&(yr=window.crypto),!yr&&typeof window<"u"&&window.msCrypto&&(yr=window.msCrypto),!yr&&typeof global<"u"&&global.crypto&&(yr=global.crypto),!yr&&typeof require=="function")try{yr=require("crypto")}catch{}var $u={};/*! *****************************************************************************
92
92
  Copyright (c) Microsoft Corporation.
93
93
 
94
94
  Permission to use, copy, modify, and/or distribute this software for any
@@ -101,7 +101,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
101
101
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
102
102
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103
103
  PERFORMANCE OF THIS SOFTWARE.
104
- ***************************************************************************** */var vs=function(i,n){return vs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])},vs(i,n)};function sd(i,n){vs(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ms=function(){return ms=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])}return i},ms.apply(this,arguments)};function ad(i,n){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&n.indexOf(s)<0&&(r[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(i);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(i,s[l])&&(r[s[l]]=i[s[l]]);return r}function ud(i,n,r,s){var l=arguments.length,g=l<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,r,s);else for(var h=i.length-1;h>=0;h--)(m=i[h])&&(g=(l<3?m(g):l>3?m(n,r,g):m(n,r))||g);return l>3&&g&&Object.defineProperty(n,r,g),g}function ld(i,n){return function(r,s){n(r,s,i)}}function cd(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function fd(i,n,r,s){function l(g){return g instanceof r?g:new r(function(m){m(g)})}return new(r||(r=Promise))(function(g,m){function h(E){try{D(s.next(E))}catch(N){m(N)}}function C(E){try{D(s.throw(E))}catch(N){m(N)}}function D(E){E.done?g(E.value):l(E.value).then(h,C)}D((s=s.apply(i,n||[])).next())})}function hd(i,n){var r={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},s,l,g,m;return m={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function h(D){return function(E){return C([D,E])}}function C(D){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(g=D[0]&2?l.return:D[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,D[1])).done)return g;switch(l=0,g&&(D=[D[0]&2,g.value]),D[0]){case 0:case 1:g=D;break;case 4:return r.label++,{value:D[1],done:!1};case 5:r.label++,l=D[1],D=[0];continue;case 7:D=r.ops.pop(),r.trys.pop();continue;default:if(g=r.trys,!(g=g.length>0&&g[g.length-1])&&(D[0]===6||D[0]===2)){r=0;continue}if(D[0]===3&&(!g||D[1]>g[0]&&D[1]<g[3])){r.label=D[1];break}if(D[0]===6&&r.label<g[1]){r.label=g[1],g=D;break}if(g&&r.label<g[2]){r.label=g[2],r.ops.push(D);break}g[2]&&r.ops.pop(),r.trys.pop();continue}D=n.call(i,r)}catch(E){D=[6,E],l=0}finally{s=g=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}}function dd(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function pd(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function ys(i){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&i[n],s=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bu(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,g=[],m;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)g.push(l.value)}catch(h){m={error:h}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(m)throw m.error}}return g}function gd(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Bu(arguments[n]));return i}function vd(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),l=0,n=0;n<r;n++)for(var g=arguments[n],m=0,h=g.length;m<h;m++,l++)s[l]=g[m];return s}function ui(i){return this instanceof ui?(this.v=i,this):new ui(i)}function md(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),l,g=[];return l={},m("next"),m("throw"),m("return"),l[Symbol.asyncIterator]=function(){return this},l;function m(R){s[R]&&(l[R]=function(L){return new Promise(function(I,$){g.push([R,L,I,$])>1||h(R,L)})})}function h(R,L){try{C(s[R](L))}catch(I){N(g[0][3],I)}}function C(R){R.value instanceof ui?Promise.resolve(R.value.v).then(D,E):N(g[0][2],R)}function D(R){h("next",R)}function E(R){h("throw",R)}function N(R,L){R(L),g.shift(),g.length&&h(g[0][0],g[0][1])}}function yd(i){var n,r;return n={},s("next"),s("throw",function(l){throw l}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(l,g){n[l]=i[l]?function(m){return(r=!r)?{value:ui(i[l](m)),done:l==="return"}:g?g(m):m}:g}}function _d(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],r;return n?n.call(i):(i=typeof ys=="function"?ys(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(g){r[g]=i[g]&&function(m){return new Promise(function(h,C){m=i[g](m),l(h,C,m.done,m.value)})}}function l(g,m,h,C){Promise.resolve(C).then(function(D){g({value:D,done:h})},m)}}function wd(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function bd(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function xd(i){return i&&i.__esModule?i:{default:i}}function Cd(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function Sd(i,n,r){if(!n.has(i))throw new TypeError("attempted to set private field on non-instance");return n.set(i,r),r}const Ad=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ms},__asyncDelegator:yd,__asyncGenerator:md,__asyncValues:_d,__await:ui,__awaiter:fd,__classPrivateFieldGet:Cd,__classPrivateFieldSet:Sd,__createBinding:dd,__decorate:ud,__exportStar:pd,__extends:sd,__generator:hd,__importDefault:xd,__importStar:bd,__makeTemplateObject:wd,__metadata:cd,__param:ld,__read:Bu,__rest:ad,__spread:gd,__spreadArrays:vd,__values:ys},Symbol.toStringTag,{value:"Module"})),ju=cs(Ad);var li={},un={},Yu;function Fu(){return Yu||(Yu=1,Object.defineProperty(un,"__esModule",{value:!0}),un.MAX_HASHABLE_LENGTH=un.INIT=un.KEY=un.DIGEST_LENGTH=un.BLOCK_SIZE=void 0,un.BLOCK_SIZE=64,un.DIGEST_LENGTH=32,un.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),un.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],un.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),un}var ci={},Wu;function Dd(){if(Wu)return ci;Wu=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.RawSha256=void 0;var i=Fu(),n=function(){function r(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(s){if(this.finished)throw new Error("Attempted to update an already finished hash.");var l=0,g=s.byteLength;if(this.bytesHashed+=g,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;g>0;)this.buffer[this.bufferLength++]=s[l++],g--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,l=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(l.setUint8(this.bufferLength++,128),g%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var m=this.bufferLength;m<i.BLOCK_SIZE;m++)l.setUint8(m,0);this.hashBuffer(),this.bufferLength=0}for(var m=this.bufferLength;m<i.BLOCK_SIZE-8;m++)l.setUint8(m,0);l.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),l.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var h=new Uint8Array(i.DIGEST_LENGTH),m=0;m<8;m++)h[m*4]=this.state[m]>>>24&255,h[m*4+1]=this.state[m]>>>16&255,h[m*4+2]=this.state[m]>>>8&255,h[m*4+3]=this.state[m]>>>0&255;return h},r.prototype.hashBuffer=function(){for(var s=this,l=s.buffer,g=s.state,m=g[0],h=g[1],C=g[2],D=g[3],E=g[4],N=g[5],R=g[6],L=g[7],I=0;I<i.BLOCK_SIZE;I++){if(I<16)this.temp[I]=(l[I*4]&255)<<24|(l[I*4+1]&255)<<16|(l[I*4+2]&255)<<8|l[I*4+3]&255;else{var $=this.temp[I-2],H=($>>>17|$<<15)^($>>>19|$<<13)^$>>>10;$=this.temp[I-15];var se=($>>>7|$<<25)^($>>>18|$<<14)^$>>>3;this.temp[I]=(H+this.temp[I-7]|0)+(se+this.temp[I-16]|0)}var ue=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&N^~E&R)|0)+(L+(i.KEY[I]+this.temp[I]|0)|0)|0,ae=((m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+(m&h^m&C^h&C)|0;L=R,R=N,N=E,E=D+ue|0,D=C,C=h,h=m,m=ue+ae|0}g[0]+=m,g[1]+=h,g[2]+=C,g[3]+=D,g[4]+=E,g[5]+=N,g[6]+=R,g[7]+=L},r}();return ci.RawSha256=n,ci}var Uu={},fi={};const Od=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const l=i.charCodeAt(r);if(l<128)n.push(l);else if(l<2048)n.push(l>>6|192,l&63|128);else if(r+1<i.length&&(l&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const g=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else n.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(n)},Ed=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const l=i[r];if(l<128)n+=String.fromCharCode(l);else if(192<=l&&l<224){const g=i[++r];n+=String.fromCharCode((l&31)<<6|g&63)}else if(240<=l&&l<365){const g="%"+[l,i[++r],i[++r],i[++r]].map(m=>m.toString(16)).join("%");n+=decodeURIComponent(g)}else n+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function Td(i){return new TextEncoder().encode(i)}function Pd(i){return new TextDecoder("utf-8").decode(i)}const Md=i=>typeof TextEncoder=="function"?Td(i):Od(i),Rd=i=>typeof TextDecoder=="function"?Pd(i):Ed(i),kd=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Md,toUtf8:Rd},Symbol.toStringTag,{value:"Module"})),Ld=cs(kd);var zu;function Nd(){if(zu)return fi;zu=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.convertToBuffer=void 0;var i=Ld,n=typeof Buffer<"u"&&Buffer.from?function(s){return Buffer.from(s,"utf8")}:i.fromUtf8;function r(s){return s instanceof Uint8Array?s:typeof s=="string"?n(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return fi.convertToBuffer=r,fi}var hi={},qu;function Id(){if(qu)return hi;qu=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return hi.isEmptyData=i,hi}var di={},Hu;function $d(){if(Hu)return di;Hu=1,Object.defineProperty(di,"__esModule",{value:!0}),di.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return di.numToUint8=i,di}var pi={},Gu;function Bd(){if(Gu)return pi;Gu=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.uint32ArrayFrom=void 0;function i(n){if(!Array.from){for(var r=new Uint32Array(n.length),s=0;s<n.length;)r[s]=n[s];return r}return Uint32Array.from(n)}return pi.uint32ArrayFrom=i,pi}var Vu;function jd(){return Vu||(Vu=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Nd();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Id();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=$d();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=Bd();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(Uu)),Uu}var Ku;function Yd(){if(Ku)return li;Ku=1,Object.defineProperty(li,"__esModule",{value:!0}),li.Sha256=void 0;var i=ju,n=Fu(),r=Dd(),s=jd(),l=function(){function m(h){if(this.hash=new r.RawSha256,h){this.outer=new r.RawSha256;var C=g(h),D=new Uint8Array(n.BLOCK_SIZE);D.set(C);for(var E=0;E<n.BLOCK_SIZE;E++)C[E]^=54,D[E]^=92;this.hash.update(C),this.outer.update(D);for(var E=0;E<C.byteLength;E++)C[E]=0}}return m.prototype.update=function(h){if(!((0,s.isEmptyData)(h)||this.error))try{this.hash.update((0,s.convertToBuffer)(h))}catch(C){this.error=C}},m.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},m.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},m}();li.Sha256=l;function g(m){var h=(0,s.convertToBuffer)(m);if(h.byteLength>n.BLOCK_SIZE){var C=new r.RawSha256;C.update(h),h=C.digest()}var D=new Uint8Array(n.BLOCK_SIZE);return D.set(h),D}return li}var Zu;function Fd(){return Zu||(Zu=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=ju;(0,n.__exportStar)(Yd(),i)}($u)),$u}Fd();function je(i,n){i!=null&&this.fromString(i,n)}function Lt(){return new je(null)}var tr,Wd=0xdeadbeefcafe,Qu=(Wd&16777215)==15715070;function Ud(i,n,r,s,l,g){for(;--g>=0;){var m=n*this[i++]+r[s]+l;l=Math.floor(m/67108864),r[s++]=m&67108863}return l}function zd(i,n,r,s,l,g){for(var m=n&32767,h=n>>15;--g>=0;){var C=this[i]&32767,D=this[i++]>>15,E=h*C+D*m;C=m*C+((E&32767)<<15)+r[s]+(l&1073741823),l=(C>>>30)+(E>>>15)+h*D+(l>>>30),r[s++]=C&1073741823}return l}function qd(i,n,r,s,l,g){for(var m=n&16383,h=n>>14;--g>=0;){var C=this[i]&16383,D=this[i++]>>14,E=h*C+D*m;C=m*C+((E&16383)<<14)+r[s]+l,l=(C>>28)+(E>>14)+h*D,r[s++]=C&268435455}return l}var Ju=typeof navigator<"u";Ju&&Qu&&navigator.appName=="Microsoft Internet Explorer"?(je.prototype.am=zd,tr=30):Ju&&Qu&&navigator.appName!="Netscape"?(je.prototype.am=Ud,tr=26):(je.prototype.am=qd,tr=28),je.prototype.DB=tr,je.prototype.DM=(1<<tr)-1,je.prototype.DV=1<<tr;var _s=52;je.prototype.FV=Math.pow(2,_s),je.prototype.F1=_s-tr,je.prototype.F2=2*tr-_s;var Hd="0123456789abcdefghijklmnopqrstuvwxyz",zi=new Array,Mr,ln;for(Mr=48,ln=0;ln<=9;++ln)zi[Mr++]=ln;for(Mr=97,ln=10;ln<36;++ln)zi[Mr++]=ln;for(Mr=65,ln=10;ln<36;++ln)zi[Mr++]=ln;function Xu(i){return Hd.charAt(i)}function Gd(i,n){var r=zi[i.charCodeAt(n)];return r??-1}function Vd(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function Kd(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function ws(i){var n=Lt();return n.fromInt(i),n}function Zd(i,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var s=i.length,l=!1,g=0;--s>=0;){var m=Gd(i,s);if(m<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,g==0?this[this.t++]=m:g+r>this.DB?(this[this.t-1]|=(m&(1<<this.DB-g)-1)<<g,this[this.t++]=m>>this.DB-g):this[this.t-1]|=m<<g,g+=r,g>=this.DB&&(g-=this.DB)}this.clamp(),l&&je.ZERO.subTo(this,this)}function Qd(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Jd(i){if(this.s<0)return"-"+this.negate().toString(i);var n;if(i==16)n=4;else if(i==8)n=3;else if(i==2)n=1;else if(i==32)n=5;else if(i==4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<n)-1,s,l=!1,g="",m=this.t,h=this.DB-m*this.DB%n;if(m-- >0)for(h<this.DB&&(s=this[m]>>h)>0&&(l=!0,g=Xu(s));m>=0;)h<n?(s=(this[m]&(1<<h)-1)<<n-h,s|=this[--m]>>(h+=this.DB-n)):(s=this[m]>>(h-=n)&r,h<=0&&(h+=this.DB,--m)),s>0&&(l=!0),l&&(g+=Xu(s));return l?g:"0"}function Xd(){var i=Lt();return je.ZERO.subTo(this,i),i}function ep(){return this.s<0?this.negate():this}function tp(i){var n=this.s-i.s;if(n!=0)return n;var r=this.t;if(n=r-i.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-i[r])!=0)return n;return 0}function bs(i){var n=1,r;return(r=i>>>16)!=0&&(i=r,n+=16),(r=i>>8)!=0&&(i=r,n+=8),(r=i>>4)!=0&&(i=r,n+=4),(r=i>>2)!=0&&(i=r,n+=2),(r=i>>1)!=0&&(i=r,n+=1),n}function np(){return this.t<=0?0:this.DB*(this.t-1)+bs(this[this.t-1]^this.s&this.DM)}function rp(i,n){var r;for(r=this.t-1;r>=0;--r)n[r+i]=this[r];for(r=i-1;r>=0;--r)n[r]=0;n.t=this.t+i,n.s=this.s}function ip(i,n){for(var r=i;r<this.t;++r)n[r-i]=this[r];n.t=Math.max(this.t-i,0),n.s=this.s}function op(i,n){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,g=Math.floor(i/this.DB),m=this.s<<r&this.DM,h;for(h=this.t-1;h>=0;--h)n[h+g+1]=this[h]>>s|m,m=(this[h]&l)<<r;for(h=g-1;h>=0;--h)n[h]=0;n[g]=m,n.t=this.t+g+1,n.s=this.s,n.clamp()}function sp(i,n){n.s=this.s;var r=Math.floor(i/this.DB);if(r>=this.t){n.t=0;return}var s=i%this.DB,l=this.DB-s,g=(1<<s)-1;n[0]=this[r]>>s;for(var m=r+1;m<this.t;++m)n[m-r-1]|=(this[m]&g)<<l,n[m-r]=this[m]>>s;s>0&&(n[this.t-r-1]|=(this.s&g)<<l),n.t=this.t-r,n.clamp()}function ap(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]-i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s-=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s-=i[r],n[r++]=s&this.DM,s>>=this.DB;s-=i.s}n.s=s<0?-1:0,s<-1?n[r++]=this.DV+s:s>0&&(n[r++]=s),n.t=r,n.clamp()}function up(i,n){var r=this.abs(),s=i.abs(),l=r.t;for(n.t=l+s.t;--l>=0;)n[l]=0;for(l=0;l<s.t;++l)n[l+r.t]=r.am(0,s[l],n,l,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&je.ZERO.subTo(n,n)}function lp(i){for(var n=this.abs(),r=i.t=2*n.t;--r>=0;)i[r]=0;for(r=0;r<n.t-1;++r){var s=n.am(r,n[r],i,2*r,0,1);(i[r+n.t]+=n.am(r+1,2*n[r],i,2*r+1,s,n.t-r-1))>=n.DV&&(i[r+n.t]-=n.DV,i[r+n.t+1]=1)}i.t>0&&(i[i.t-1]+=n.am(r,n[r],i,2*r,0,1)),i.s=0,i.clamp()}function cp(i,n,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){n?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Lt());var g=Lt(),m=this.s,h=i.s,C=this.DB-bs(s[s.t-1]);C>0?(s.lShiftTo(C,g),l.lShiftTo(C,r)):(s.copyTo(g),l.copyTo(r));var D=g.t,E=g[D-1];if(E!=0){var N=E*(1<<this.F1)+(D>1?g[D-2]>>this.F2:0),R=this.FV/N,L=(1<<this.F1)/N,I=1<<this.F2,$=r.t,H=$-D,se=n??Lt();for(g.dlShiftTo(H,se),r.compareTo(se)>=0&&(r[r.t++]=1,r.subTo(se,r)),je.ONE.dlShiftTo(D,se),se.subTo(g,g);g.t<D;)g[g.t++]=0;for(;--H>=0;){var ue=r[--$]==E?this.DM:Math.floor(r[$]*R+(r[$-1]+I)*L);if((r[$]+=g.am(0,ue,r,H,0,D))<ue)for(g.dlShiftTo(H,se),r.subTo(se,r);r[$]<--ue;)r.subTo(se,r)}n!=null&&(r.drShiftTo(D,n),m!=h&&je.ZERO.subTo(n,n)),r.t=D,r.clamp(),C>0&&r.rShiftTo(C,r),m<0&&je.ZERO.subTo(r,r)}}}function fp(i){var n=Lt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(je.ZERO)>0&&i.subTo(n,n),n}function hp(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var n=i&3;return n=n*(2-(i&15)*n)&15,n=n*(2-(i&255)*n)&255,n=n*(2-((i&65535)*n&65535))&65535,n=n*(2-i*n%this.DV)%this.DV,n>0?this.DV-n:-n}function dp(i){return this.compareTo(i)==0}function pp(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]+i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s+=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s+=i[r],n[r++]=s&this.DM,s>>=this.DB;s+=i.s}n.s=s<0?-1:0,s>0?n[r++]=s:s<-1&&(n[r++]=this.DV+s),n.t=r,n.clamp()}function gp(i){var n=Lt();return this.addTo(i,n),n}function vp(i){var n=Lt();return this.subTo(i,n),n}function mp(i){var n=Lt();return this.multiplyTo(i,n),n}function yp(i){var n=Lt();return this.divRemTo(i,n,null),n}function Rr(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function _p(i){var n=Lt();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(je.ZERO)>0&&this.m.subTo(n,n),n}function wp(i){var n=Lt();return i.copyTo(n),this.reduce(n),n}function bp(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var n=0;n<this.m.t;++n){var r=i[n]&32767,s=r*this.mpl+((r*this.mph+(i[n]>>15)*this.mpl&this.um)<<15)&i.DM;for(r=n+this.m.t,i[r]+=this.m.am(0,s,i,n,0,this.m.t);i[r]>=i.DV;)i[r]-=i.DV,i[++r]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function xp(i,n){i.squareTo(n),this.reduce(n)}function Cp(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Rr.prototype.convert=_p,Rr.prototype.revert=wp,Rr.prototype.reduce=bp,Rr.prototype.mulTo=Cp,Rr.prototype.sqrTo=xp;function Sp(i,n,r){var s=i.bitLength(),l,g=ws(1),m=new Rr(n);if(s<=0)return g;s<18?l=1:s<48?l=3:s<144?l=4:s<768?l=5:l=6;var h=new Array,C=3,D=l-1,E=(1<<l)-1;if(h[1]=m.convert(this),l>1){var N=Lt();for(m.sqrTo(h[1],N);C<=E;)h[C]=Lt(),m.mulTo(N,h[C-2],h[C]),C+=2}var R=i.t-1,L,I=!0,$=Lt(),H;for(s=bs(i[R])-1;R>=0;){for(s>=D?L=i[R]>>s-D&E:(L=(i[R]&(1<<s+1)-1)<<D-s,R>0&&(L|=i[R-1]>>this.DB+s-D)),C=l;(L&1)==0;)L>>=1,--C;if((s-=C)<0&&(s+=this.DB,--R),I)h[L].copyTo(g),I=!1;else{for(;C>1;)m.sqrTo(g,$),m.sqrTo($,g),C-=2;C>0?m.sqrTo(g,$):(H=g,g=$,$=H),m.mulTo($,h[L],g)}for(;R>=0&&(i[R]&1<<s)==0;)m.sqrTo(g,$),H=g,g=$,$=H,--s<0&&(s=this.DB-1,--R)}var se=m.revert(g);return r(null,se),se}je.prototype.copyTo=Vd,je.prototype.fromInt=Kd,je.prototype.fromString=Zd,je.prototype.clamp=Qd,je.prototype.dlShiftTo=rp,je.prototype.drShiftTo=ip,je.prototype.lShiftTo=op,je.prototype.rShiftTo=sp,je.prototype.subTo=ap,je.prototype.multiplyTo=up,je.prototype.squareTo=lp,je.prototype.divRemTo=cp,je.prototype.invDigit=hp,je.prototype.addTo=pp,je.prototype.toString=Jd,je.prototype.negate=Xd,je.prototype.abs=ep,je.prototype.compareTo=tp,je.prototype.bitLength=np,je.prototype.mod=fp,je.prototype.equals=dp,je.prototype.add=gp,je.prototype.subtract=vp,je.prototype.multiply=mp,je.prototype.divide=yp,je.prototype.modPow=Sp,je.ZERO=ws(0),je.ONE=ws(1);function Ap(i,n){return n=n||{},new Promise(function(r,s){var l=new XMLHttpRequest,g=[],m=[],h={},C=function(){return{ok:(l.status/100|0)==2,statusText:l.statusText,status:l.status,url:l.responseURL,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},clone:C,headers:{keys:function(){return g},entries:function(){return m},get:function(E){return h[E.toLowerCase()]},has:function(E){return E.toLowerCase()in h}}}};for(var D in l.open(n.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(E,N,R){g.push(N=N.toLowerCase()),m.push([N,R]),h[N]=h[N]?h[N]+","+R:R}),r(C())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(D,n.headers[D]);l.send(n.body||null)})}const Dp=Object.freeze(Object.defineProperty({__proto__:null,default:Ap},Symbol.toStringTag,{value:"Module"})),el=cs(Dp);var tl,nl;function Op(){return nl||(nl=1,tl=self.fetch||(self.fetch=el.default||el)),tl}Op();/*!
104
+ ***************************************************************************** */var ms=function(i,n){return ms=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])},ms(i,n)};function sd(i,n){ms(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ys=function(){return ys=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])}return i},ys.apply(this,arguments)};function ad(i,n){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&n.indexOf(s)<0&&(r[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(i);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(i,s[l])&&(r[s[l]]=i[s[l]]);return r}function ud(i,n,r,s){var l=arguments.length,g=l<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,r,s);else for(var h=i.length-1;h>=0;h--)(m=i[h])&&(g=(l<3?m(g):l>3?m(n,r,g):m(n,r))||g);return l>3&&g&&Object.defineProperty(n,r,g),g}function ld(i,n){return function(r,s){n(r,s,i)}}function cd(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function fd(i,n,r,s){function l(g){return g instanceof r?g:new r(function(m){m(g)})}return new(r||(r=Promise))(function(g,m){function h(E){try{D(s.next(E))}catch(N){m(N)}}function C(E){try{D(s.throw(E))}catch(N){m(N)}}function D(E){E.done?g(E.value):l(E.value).then(h,C)}D((s=s.apply(i,n||[])).next())})}function hd(i,n){var r={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},s,l,g,m;return m={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function h(D){return function(E){return C([D,E])}}function C(D){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(g=D[0]&2?l.return:D[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,D[1])).done)return g;switch(l=0,g&&(D=[D[0]&2,g.value]),D[0]){case 0:case 1:g=D;break;case 4:return r.label++,{value:D[1],done:!1};case 5:r.label++,l=D[1],D=[0];continue;case 7:D=r.ops.pop(),r.trys.pop();continue;default:if(g=r.trys,!(g=g.length>0&&g[g.length-1])&&(D[0]===6||D[0]===2)){r=0;continue}if(D[0]===3&&(!g||D[1]>g[0]&&D[1]<g[3])){r.label=D[1];break}if(D[0]===6&&r.label<g[1]){r.label=g[1],g=D;break}if(g&&r.label<g[2]){r.label=g[2],r.ops.push(D);break}g[2]&&r.ops.pop(),r.trys.pop();continue}D=n.call(i,r)}catch(E){D=[6,E],l=0}finally{s=g=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}}function dd(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function pd(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function _s(i){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&i[n],s=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bu(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,g=[],m;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)g.push(l.value)}catch(h){m={error:h}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(m)throw m.error}}return g}function gd(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Bu(arguments[n]));return i}function vd(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),l=0,n=0;n<r;n++)for(var g=arguments[n],m=0,h=g.length;m<h;m++,l++)s[l]=g[m];return s}function ui(i){return this instanceof ui?(this.v=i,this):new ui(i)}function md(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),l,g=[];return l={},m("next"),m("throw"),m("return"),l[Symbol.asyncIterator]=function(){return this},l;function m(R){s[R]&&(l[R]=function(L){return new Promise(function(I,$){g.push([R,L,I,$])>1||h(R,L)})})}function h(R,L){try{C(s[R](L))}catch(I){N(g[0][3],I)}}function C(R){R.value instanceof ui?Promise.resolve(R.value.v).then(D,E):N(g[0][2],R)}function D(R){h("next",R)}function E(R){h("throw",R)}function N(R,L){R(L),g.shift(),g.length&&h(g[0][0],g[0][1])}}function yd(i){var n,r;return n={},s("next"),s("throw",function(l){throw l}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(l,g){n[l]=i[l]?function(m){return(r=!r)?{value:ui(i[l](m)),done:l==="return"}:g?g(m):m}:g}}function _d(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],r;return n?n.call(i):(i=typeof _s=="function"?_s(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(g){r[g]=i[g]&&function(m){return new Promise(function(h,C){m=i[g](m),l(h,C,m.done,m.value)})}}function l(g,m,h,C){Promise.resolve(C).then(function(D){g({value:D,done:h})},m)}}function wd(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function bd(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function xd(i){return i&&i.__esModule?i:{default:i}}function Cd(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function Sd(i,n,r){if(!n.has(i))throw new TypeError("attempted to set private field on non-instance");return n.set(i,r),r}const Ad=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ys},__asyncDelegator:yd,__asyncGenerator:md,__asyncValues:_d,__await:ui,__awaiter:fd,__classPrivateFieldGet:Cd,__classPrivateFieldSet:Sd,__createBinding:dd,__decorate:ud,__exportStar:pd,__extends:sd,__generator:hd,__importDefault:xd,__importStar:bd,__makeTemplateObject:wd,__metadata:cd,__param:ld,__read:Bu,__rest:ad,__spread:gd,__spreadArrays:vd,__values:_s},Symbol.toStringTag,{value:"Module"})),ju=fs(Ad);var li={},un={},Yu;function Fu(){return Yu||(Yu=1,Object.defineProperty(un,"__esModule",{value:!0}),un.MAX_HASHABLE_LENGTH=un.INIT=un.KEY=un.DIGEST_LENGTH=un.BLOCK_SIZE=void 0,un.BLOCK_SIZE=64,un.DIGEST_LENGTH=32,un.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),un.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],un.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),un}var ci={},Wu;function Dd(){if(Wu)return ci;Wu=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.RawSha256=void 0;var i=Fu(),n=function(){function r(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(s){if(this.finished)throw new Error("Attempted to update an already finished hash.");var l=0,g=s.byteLength;if(this.bytesHashed+=g,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;g>0;)this.buffer[this.bufferLength++]=s[l++],g--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,l=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(l.setUint8(this.bufferLength++,128),g%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var m=this.bufferLength;m<i.BLOCK_SIZE;m++)l.setUint8(m,0);this.hashBuffer(),this.bufferLength=0}for(var m=this.bufferLength;m<i.BLOCK_SIZE-8;m++)l.setUint8(m,0);l.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),l.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var h=new Uint8Array(i.DIGEST_LENGTH),m=0;m<8;m++)h[m*4]=this.state[m]>>>24&255,h[m*4+1]=this.state[m]>>>16&255,h[m*4+2]=this.state[m]>>>8&255,h[m*4+3]=this.state[m]>>>0&255;return h},r.prototype.hashBuffer=function(){for(var s=this,l=s.buffer,g=s.state,m=g[0],h=g[1],C=g[2],D=g[3],E=g[4],N=g[5],R=g[6],L=g[7],I=0;I<i.BLOCK_SIZE;I++){if(I<16)this.temp[I]=(l[I*4]&255)<<24|(l[I*4+1]&255)<<16|(l[I*4+2]&255)<<8|l[I*4+3]&255;else{var $=this.temp[I-2],H=($>>>17|$<<15)^($>>>19|$<<13)^$>>>10;$=this.temp[I-15];var se=($>>>7|$<<25)^($>>>18|$<<14)^$>>>3;this.temp[I]=(H+this.temp[I-7]|0)+(se+this.temp[I-16]|0)}var ue=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&N^~E&R)|0)+(L+(i.KEY[I]+this.temp[I]|0)|0)|0,ae=((m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+(m&h^m&C^h&C)|0;L=R,R=N,N=E,E=D+ue|0,D=C,C=h,h=m,m=ue+ae|0}g[0]+=m,g[1]+=h,g[2]+=C,g[3]+=D,g[4]+=E,g[5]+=N,g[6]+=R,g[7]+=L},r}();return ci.RawSha256=n,ci}var Uu={},fi={};const Od=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const l=i.charCodeAt(r);if(l<128)n.push(l);else if(l<2048)n.push(l>>6|192,l&63|128);else if(r+1<i.length&&(l&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const g=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else n.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(n)},Ed=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const l=i[r];if(l<128)n+=String.fromCharCode(l);else if(192<=l&&l<224){const g=i[++r];n+=String.fromCharCode((l&31)<<6|g&63)}else if(240<=l&&l<365){const g="%"+[l,i[++r],i[++r],i[++r]].map(m=>m.toString(16)).join("%");n+=decodeURIComponent(g)}else n+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function Td(i){return new TextEncoder().encode(i)}function Pd(i){return new TextDecoder("utf-8").decode(i)}const Md=i=>typeof TextEncoder=="function"?Td(i):Od(i),Rd=i=>typeof TextDecoder=="function"?Pd(i):Ed(i),kd=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Md,toUtf8:Rd},Symbol.toStringTag,{value:"Module"})),Ld=fs(kd);var zu;function Nd(){if(zu)return fi;zu=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.convertToBuffer=void 0;var i=Ld,n=typeof Buffer<"u"&&Buffer.from?function(s){return Buffer.from(s,"utf8")}:i.fromUtf8;function r(s){return s instanceof Uint8Array?s:typeof s=="string"?n(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return fi.convertToBuffer=r,fi}var hi={},qu;function Id(){if(qu)return hi;qu=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return hi.isEmptyData=i,hi}var di={},Hu;function $d(){if(Hu)return di;Hu=1,Object.defineProperty(di,"__esModule",{value:!0}),di.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return di.numToUint8=i,di}var pi={},Gu;function Bd(){if(Gu)return pi;Gu=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.uint32ArrayFrom=void 0;function i(n){if(!Array.from){for(var r=new Uint32Array(n.length),s=0;s<n.length;)r[s]=n[s];return r}return Uint32Array.from(n)}return pi.uint32ArrayFrom=i,pi}var Vu;function jd(){return Vu||(Vu=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Nd();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Id();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=$d();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=Bd();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(Uu)),Uu}var Ku;function Yd(){if(Ku)return li;Ku=1,Object.defineProperty(li,"__esModule",{value:!0}),li.Sha256=void 0;var i=ju,n=Fu(),r=Dd(),s=jd(),l=function(){function m(h){if(this.hash=new r.RawSha256,h){this.outer=new r.RawSha256;var C=g(h),D=new Uint8Array(n.BLOCK_SIZE);D.set(C);for(var E=0;E<n.BLOCK_SIZE;E++)C[E]^=54,D[E]^=92;this.hash.update(C),this.outer.update(D);for(var E=0;E<C.byteLength;E++)C[E]=0}}return m.prototype.update=function(h){if(!((0,s.isEmptyData)(h)||this.error))try{this.hash.update((0,s.convertToBuffer)(h))}catch(C){this.error=C}},m.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},m.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},m}();li.Sha256=l;function g(m){var h=(0,s.convertToBuffer)(m);if(h.byteLength>n.BLOCK_SIZE){var C=new r.RawSha256;C.update(h),h=C.digest()}var D=new Uint8Array(n.BLOCK_SIZE);return D.set(h),D}return li}var Zu;function Fd(){return Zu||(Zu=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=ju;(0,n.__exportStar)(Yd(),i)}($u)),$u}Fd();function je(i,n){i!=null&&this.fromString(i,n)}function Lt(){return new je(null)}var tr,Wd=0xdeadbeefcafe,Qu=(Wd&16777215)==15715070;function Ud(i,n,r,s,l,g){for(;--g>=0;){var m=n*this[i++]+r[s]+l;l=Math.floor(m/67108864),r[s++]=m&67108863}return l}function zd(i,n,r,s,l,g){for(var m=n&32767,h=n>>15;--g>=0;){var C=this[i]&32767,D=this[i++]>>15,E=h*C+D*m;C=m*C+((E&32767)<<15)+r[s]+(l&1073741823),l=(C>>>30)+(E>>>15)+h*D+(l>>>30),r[s++]=C&1073741823}return l}function qd(i,n,r,s,l,g){for(var m=n&16383,h=n>>14;--g>=0;){var C=this[i]&16383,D=this[i++]>>14,E=h*C+D*m;C=m*C+((E&16383)<<14)+r[s]+l,l=(C>>28)+(E>>14)+h*D,r[s++]=C&268435455}return l}var Ju=typeof navigator<"u";Ju&&Qu&&navigator.appName=="Microsoft Internet Explorer"?(je.prototype.am=zd,tr=30):Ju&&Qu&&navigator.appName!="Netscape"?(je.prototype.am=Ud,tr=26):(je.prototype.am=qd,tr=28),je.prototype.DB=tr,je.prototype.DM=(1<<tr)-1,je.prototype.DV=1<<tr;var ws=52;je.prototype.FV=Math.pow(2,ws),je.prototype.F1=ws-tr,je.prototype.F2=2*tr-ws;var Hd="0123456789abcdefghijklmnopqrstuvwxyz",zi=new Array,Mr,ln;for(Mr=48,ln=0;ln<=9;++ln)zi[Mr++]=ln;for(Mr=97,ln=10;ln<36;++ln)zi[Mr++]=ln;for(Mr=65,ln=10;ln<36;++ln)zi[Mr++]=ln;function Xu(i){return Hd.charAt(i)}function Gd(i,n){var r=zi[i.charCodeAt(n)];return r??-1}function Vd(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function Kd(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function bs(i){var n=Lt();return n.fromInt(i),n}function Zd(i,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var s=i.length,l=!1,g=0;--s>=0;){var m=Gd(i,s);if(m<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,g==0?this[this.t++]=m:g+r>this.DB?(this[this.t-1]|=(m&(1<<this.DB-g)-1)<<g,this[this.t++]=m>>this.DB-g):this[this.t-1]|=m<<g,g+=r,g>=this.DB&&(g-=this.DB)}this.clamp(),l&&je.ZERO.subTo(this,this)}function Qd(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Jd(i){if(this.s<0)return"-"+this.negate().toString(i);var n;if(i==16)n=4;else if(i==8)n=3;else if(i==2)n=1;else if(i==32)n=5;else if(i==4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<n)-1,s,l=!1,g="",m=this.t,h=this.DB-m*this.DB%n;if(m-- >0)for(h<this.DB&&(s=this[m]>>h)>0&&(l=!0,g=Xu(s));m>=0;)h<n?(s=(this[m]&(1<<h)-1)<<n-h,s|=this[--m]>>(h+=this.DB-n)):(s=this[m]>>(h-=n)&r,h<=0&&(h+=this.DB,--m)),s>0&&(l=!0),l&&(g+=Xu(s));return l?g:"0"}function Xd(){var i=Lt();return je.ZERO.subTo(this,i),i}function ep(){return this.s<0?this.negate():this}function tp(i){var n=this.s-i.s;if(n!=0)return n;var r=this.t;if(n=r-i.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-i[r])!=0)return n;return 0}function xs(i){var n=1,r;return(r=i>>>16)!=0&&(i=r,n+=16),(r=i>>8)!=0&&(i=r,n+=8),(r=i>>4)!=0&&(i=r,n+=4),(r=i>>2)!=0&&(i=r,n+=2),(r=i>>1)!=0&&(i=r,n+=1),n}function np(){return this.t<=0?0:this.DB*(this.t-1)+xs(this[this.t-1]^this.s&this.DM)}function rp(i,n){var r;for(r=this.t-1;r>=0;--r)n[r+i]=this[r];for(r=i-1;r>=0;--r)n[r]=0;n.t=this.t+i,n.s=this.s}function ip(i,n){for(var r=i;r<this.t;++r)n[r-i]=this[r];n.t=Math.max(this.t-i,0),n.s=this.s}function op(i,n){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,g=Math.floor(i/this.DB),m=this.s<<r&this.DM,h;for(h=this.t-1;h>=0;--h)n[h+g+1]=this[h]>>s|m,m=(this[h]&l)<<r;for(h=g-1;h>=0;--h)n[h]=0;n[g]=m,n.t=this.t+g+1,n.s=this.s,n.clamp()}function sp(i,n){n.s=this.s;var r=Math.floor(i/this.DB);if(r>=this.t){n.t=0;return}var s=i%this.DB,l=this.DB-s,g=(1<<s)-1;n[0]=this[r]>>s;for(var m=r+1;m<this.t;++m)n[m-r-1]|=(this[m]&g)<<l,n[m-r]=this[m]>>s;s>0&&(n[this.t-r-1]|=(this.s&g)<<l),n.t=this.t-r,n.clamp()}function ap(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]-i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s-=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s-=i[r],n[r++]=s&this.DM,s>>=this.DB;s-=i.s}n.s=s<0?-1:0,s<-1?n[r++]=this.DV+s:s>0&&(n[r++]=s),n.t=r,n.clamp()}function up(i,n){var r=this.abs(),s=i.abs(),l=r.t;for(n.t=l+s.t;--l>=0;)n[l]=0;for(l=0;l<s.t;++l)n[l+r.t]=r.am(0,s[l],n,l,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&je.ZERO.subTo(n,n)}function lp(i){for(var n=this.abs(),r=i.t=2*n.t;--r>=0;)i[r]=0;for(r=0;r<n.t-1;++r){var s=n.am(r,n[r],i,2*r,0,1);(i[r+n.t]+=n.am(r+1,2*n[r],i,2*r+1,s,n.t-r-1))>=n.DV&&(i[r+n.t]-=n.DV,i[r+n.t+1]=1)}i.t>0&&(i[i.t-1]+=n.am(r,n[r],i,2*r,0,1)),i.s=0,i.clamp()}function cp(i,n,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){n?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Lt());var g=Lt(),m=this.s,h=i.s,C=this.DB-xs(s[s.t-1]);C>0?(s.lShiftTo(C,g),l.lShiftTo(C,r)):(s.copyTo(g),l.copyTo(r));var D=g.t,E=g[D-1];if(E!=0){var N=E*(1<<this.F1)+(D>1?g[D-2]>>this.F2:0),R=this.FV/N,L=(1<<this.F1)/N,I=1<<this.F2,$=r.t,H=$-D,se=n??Lt();for(g.dlShiftTo(H,se),r.compareTo(se)>=0&&(r[r.t++]=1,r.subTo(se,r)),je.ONE.dlShiftTo(D,se),se.subTo(g,g);g.t<D;)g[g.t++]=0;for(;--H>=0;){var ue=r[--$]==E?this.DM:Math.floor(r[$]*R+(r[$-1]+I)*L);if((r[$]+=g.am(0,ue,r,H,0,D))<ue)for(g.dlShiftTo(H,se),r.subTo(se,r);r[$]<--ue;)r.subTo(se,r)}n!=null&&(r.drShiftTo(D,n),m!=h&&je.ZERO.subTo(n,n)),r.t=D,r.clamp(),C>0&&r.rShiftTo(C,r),m<0&&je.ZERO.subTo(r,r)}}}function fp(i){var n=Lt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(je.ZERO)>0&&i.subTo(n,n),n}function hp(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var n=i&3;return n=n*(2-(i&15)*n)&15,n=n*(2-(i&255)*n)&255,n=n*(2-((i&65535)*n&65535))&65535,n=n*(2-i*n%this.DV)%this.DV,n>0?this.DV-n:-n}function dp(i){return this.compareTo(i)==0}function pp(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]+i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s+=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s+=i[r],n[r++]=s&this.DM,s>>=this.DB;s+=i.s}n.s=s<0?-1:0,s>0?n[r++]=s:s<-1&&(n[r++]=this.DV+s),n.t=r,n.clamp()}function gp(i){var n=Lt();return this.addTo(i,n),n}function vp(i){var n=Lt();return this.subTo(i,n),n}function mp(i){var n=Lt();return this.multiplyTo(i,n),n}function yp(i){var n=Lt();return this.divRemTo(i,n,null),n}function Rr(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function _p(i){var n=Lt();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(je.ZERO)>0&&this.m.subTo(n,n),n}function wp(i){var n=Lt();return i.copyTo(n),this.reduce(n),n}function bp(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var n=0;n<this.m.t;++n){var r=i[n]&32767,s=r*this.mpl+((r*this.mph+(i[n]>>15)*this.mpl&this.um)<<15)&i.DM;for(r=n+this.m.t,i[r]+=this.m.am(0,s,i,n,0,this.m.t);i[r]>=i.DV;)i[r]-=i.DV,i[++r]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function xp(i,n){i.squareTo(n),this.reduce(n)}function Cp(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Rr.prototype.convert=_p,Rr.prototype.revert=wp,Rr.prototype.reduce=bp,Rr.prototype.mulTo=Cp,Rr.prototype.sqrTo=xp;function Sp(i,n,r){var s=i.bitLength(),l,g=bs(1),m=new Rr(n);if(s<=0)return g;s<18?l=1:s<48?l=3:s<144?l=4:s<768?l=5:l=6;var h=new Array,C=3,D=l-1,E=(1<<l)-1;if(h[1]=m.convert(this),l>1){var N=Lt();for(m.sqrTo(h[1],N);C<=E;)h[C]=Lt(),m.mulTo(N,h[C-2],h[C]),C+=2}var R=i.t-1,L,I=!0,$=Lt(),H;for(s=xs(i[R])-1;R>=0;){for(s>=D?L=i[R]>>s-D&E:(L=(i[R]&(1<<s+1)-1)<<D-s,R>0&&(L|=i[R-1]>>this.DB+s-D)),C=l;(L&1)==0;)L>>=1,--C;if((s-=C)<0&&(s+=this.DB,--R),I)h[L].copyTo(g),I=!1;else{for(;C>1;)m.sqrTo(g,$),m.sqrTo($,g),C-=2;C>0?m.sqrTo(g,$):(H=g,g=$,$=H),m.mulTo($,h[L],g)}for(;R>=0&&(i[R]&1<<s)==0;)m.sqrTo(g,$),H=g,g=$,$=H,--s<0&&(s=this.DB-1,--R)}var se=m.revert(g);return r(null,se),se}je.prototype.copyTo=Vd,je.prototype.fromInt=Kd,je.prototype.fromString=Zd,je.prototype.clamp=Qd,je.prototype.dlShiftTo=rp,je.prototype.drShiftTo=ip,je.prototype.lShiftTo=op,je.prototype.rShiftTo=sp,je.prototype.subTo=ap,je.prototype.multiplyTo=up,je.prototype.squareTo=lp,je.prototype.divRemTo=cp,je.prototype.invDigit=hp,je.prototype.addTo=pp,je.prototype.toString=Jd,je.prototype.negate=Xd,je.prototype.abs=ep,je.prototype.compareTo=tp,je.prototype.bitLength=np,je.prototype.mod=fp,je.prototype.equals=dp,je.prototype.add=gp,je.prototype.subtract=vp,je.prototype.multiply=mp,je.prototype.divide=yp,je.prototype.modPow=Sp,je.ZERO=bs(0),je.ONE=bs(1);function Ap(i,n){return n=n||{},new Promise(function(r,s){var l=new XMLHttpRequest,g=[],m=[],h={},C=function(){return{ok:(l.status/100|0)==2,statusText:l.statusText,status:l.status,url:l.responseURL,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},clone:C,headers:{keys:function(){return g},entries:function(){return m},get:function(E){return h[E.toLowerCase()]},has:function(E){return E.toLowerCase()in h}}}};for(var D in l.open(n.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(E,N,R){g.push(N=N.toLowerCase()),m.push([N,R]),h[N]=h[N]?h[N]+","+R:R}),r(C())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(D,n.headers[D]);l.send(n.body||null)})}const Dp=Object.freeze(Object.defineProperty({__proto__:null,default:Ap},Symbol.toStringTag,{value:"Module"})),el=fs(Dp);var tl,nl;function Op(){return nl||(nl=1,tl=self.fetch||(self.fetch=el.default||el)),tl}Op();/*!
105
105
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
106
106
  * SPDX-License-Identifier: Apache-2.0
107
107
  */var rl={exports:{}};/*!
@@ -110,28 +110,28 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
110
110
  *
111
111
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
112
112
  * Released under the MIT license
113
- */var il;function Ep(){return il||(il=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,g=window.Cookies=r();g.noConflict=function(){return window.Cookies=l,g}}})(function(){function r(){for(var g=0,m={};g<arguments.length;g++){var h=arguments[g];for(var C in h)m[C]=h[C]}return m}function s(g){return g.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(g){function m(){}function h(D,E,N){if(!(typeof document>"u")){N=r({path:"/"},m.defaults,N),typeof N.expires=="number"&&(N.expires=new Date(new Date*1+N.expires*864e5)),N.expires=N.expires?N.expires.toUTCString():"";try{var R=JSON.stringify(E);/^[\{\[]/.test(R)&&(E=R)}catch{}E=g.write?g.write(E,D):encodeURIComponent(String(E)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),D=encodeURIComponent(String(D)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var L="";for(var I in N)N[I]&&(L+="; "+I,N[I]!==!0&&(L+="="+N[I].split(";")[0]));return document.cookie=D+"="+E+L}}function C(D,E){if(!(typeof document>"u")){for(var N={},R=document.cookie?document.cookie.split("; "):[],L=0;L<R.length;L++){var I=R[L].split("="),$=I.slice(1).join("=");!E&&$.charAt(0)==='"'&&($=$.slice(1,-1));try{var H=s(I[0]);if($=(g.read||g)($,H)||s($),E)try{$=JSON.parse($)}catch{}if(N[H]=$,D===H)break}catch{}}return D?N[D]:N}}return m.set=h,m.get=function(D){return C(D,!1)},m.getJSON=function(D){return C(D,!0)},m.remove=function(D,E){h(D,"",r(E,{expires:-1}))},m.defaults={},m.withConverter=l,m}return l(function(){})})}(rl)),rl.exports}Ep();function Tp(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Pp(){return Tp().getCurrentUser()}function Mp(){return new Promise((i,n)=>{const r=Pp();r===null&&n(null),r?.getSession((s,l)=>{if(s!==null||l===null)return n(null);i({session:l,authenticatedUser:r})})})}async function Rp(){const{session:i}=await Mp();return i?.getIdToken().getJwtToken()}ye.createContext(void 0);var kp="undefined",Lp="object",qi="browser",ol="cpu",sl="device",xs="engine",Hi="os",nr="name",Gi="type",Cs="vendor",On="version",Ss="architecture",As="major",Ds="model",Np="console",Ip="mobile",$p="tablet",Bp="smarttv",jp="wearable",Yp="embedded",Fp=typeof window!==kp,Os=Fp&&window.navigator?window.navigator:void 0;Os&&Os.userAgentData&&Os.userAgentData;var Vi=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Ki=function(i){for(var n in i){var r=i[n];typeof r==Lp&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Ki.call(i.init,[[qi,[nr,On,As,Gi]],[ol,[Ss]],[sl,[Gi,Ds,Cs]],[xs,[nr,On]],[Hi,[nr,On]]]),Ki.call(i.isIgnore,[[qi,[On,As]],[xs,[On]],[Hi,[On]]]),Ki.call(i.isIgnoreRgx,[[qi,/ ?browser$/i],[Hi,/ ?os$/i]]),Ki.call(i.toString,[[qi,[nr,On]],[ol,[Ss]],[sl,[Cs,Ds]],[xs,[nr,On]],[Hi,[nr,On]]]),i})(),Vi([nr,On,As,Gi]),Vi([Ss]),Vi([Ds,Cs,Gi,Np,Ip,Bp,$p,jp,Yp]),Vi([nr,On]);var Es={exports:{}},Wp=Es.exports,al;function Up(){return al||(al=1,function(i,n){(function(r,s){i.exports=s()})(Wp,()=>(()=>{var r={873:(m,h)=>{var C,D,E=function(){var N=function(k,T){var S=k,d=se[T],p=null,b=0,f=null,v=[],A={},Y=function(B,Z){p=function(W){for(var K=new Array(W),ee=0;ee<W;ee+=1){K[ee]=new Array(W);for(var Se=0;Se<W;Se+=1)K[ee][Se]=null}return K}(b=4*S+17),G(0,0),G(b-7,0),G(0,b-7),le(),oe(),X(B,Z),S>=7&&we(B),f==null&&(f=_e(S,d,v)),be(f,Z)},G=function(B,Z){for(var W=-1;W<=7;W+=1)if(!(B+W<=-1||b<=B+W))for(var K=-1;K<=7;K+=1)Z+K<=-1||b<=Z+K||(p[B+W][Z+K]=0<=W&&W<=6&&(K==0||K==6)||0<=K&&K<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=K&&K<=4)},oe=function(){for(var B=8;B<b-8;B+=1)p[B][6]==null&&(p[B][6]=B%2==0);for(var Z=8;Z<b-8;Z+=1)p[6][Z]==null&&(p[6][Z]=Z%2==0)},le=function(){for(var B=ue.getPatternPosition(S),Z=0;Z<B.length;Z+=1)for(var W=0;W<B.length;W+=1){var K=B[Z],ee=B[W];if(p[K][ee]==null)for(var Se=-2;Se<=2;Se+=1)for(var u=-2;u<=2;u+=1)p[K+Se][ee+u]=Se==-2||Se==2||u==-2||u==2||Se==0&&u==0}},we=function(B){for(var Z=ue.getBCHTypeNumber(S),W=0;W<18;W+=1){var K=!B&&(Z>>W&1)==1;p[Math.floor(W/3)][W%3+b-8-3]=K}for(W=0;W<18;W+=1)K=!B&&(Z>>W&1)==1,p[W%3+b-8-3][Math.floor(W/3)]=K},X=function(B,Z){for(var W=d<<3|Z,K=ue.getBCHTypeInfo(W),ee=0;ee<15;ee+=1){var Se=!B&&(K>>ee&1)==1;ee<6?p[ee][8]=Se:ee<8?p[ee+1][8]=Se:p[b-15+ee][8]=Se}for(ee=0;ee<15;ee+=1)Se=!B&&(K>>ee&1)==1,ee<8?p[8][b-ee-1]=Se:ee<9?p[8][15-ee-1+1]=Se:p[8][15-ee-1]=Se;p[b-8][8]=!B},be=function(B,Z){for(var W=-1,K=b-1,ee=7,Se=0,u=ue.getMaskFunction(Z),c=b-1;c>0;c-=2)for(c==6&&(c-=1);;){for(var _=0;_<2;_+=1)if(p[K][c-_]==null){var M=!1;Se<B.length&&(M=(B[Se]>>>ee&1)==1),u(K,c-_)&&(M=!M),p[K][c-_]=M,(ee-=1)==-1&&(Se+=1,ee=7)}if((K+=W)<0||b<=K){K-=W,W=-W;break}}},_e=function(B,Z,W){for(var K=Q.getRSBlocks(B,Z),ee=ne(),Se=0;Se<W.length;Se+=1){var u=W[Se];ee.put(u.getMode(),4),ee.put(u.getLength(),ue.getLengthInBits(u.getMode(),B)),u.write(ee)}var c=0;for(Se=0;Se<K.length;Se+=1)c+=K[Se].dataCount;if(ee.getLengthInBits()>8*c)throw"code length overflow. ("+ee.getLengthInBits()+">"+8*c+")";for(ee.getLengthInBits()+4<=8*c&&ee.put(0,4);ee.getLengthInBits()%8!=0;)ee.putBit(!1);for(;!(ee.getLengthInBits()>=8*c||(ee.put(236,8),ee.getLengthInBits()>=8*c));)ee.put(17,8);return function(_,M){for(var U=0,te=0,Ae=0,Ce=new Array(M.length),Pe=new Array(M.length),me=0;me<M.length;me+=1){var Re=M[me].dataCount,Ie=M[me].totalCount-Re;te=Math.max(te,Re),Ae=Math.max(Ae,Ie),Ce[me]=new Array(Re);for(var ke=0;ke<Ce[me].length;ke+=1)Ce[me][ke]=255&_.getBuffer()[ke+U];U+=Re;var Xe=ue.getErrorCorrectPolynomial(Ie),Qe=ce(Ce[me],Xe.getLength()-1).mod(Xe);for(Pe[me]=new Array(Xe.getLength()-1),ke=0;ke<Pe[me].length;ke+=1){var it=ke+Qe.getLength()-Pe[me].length;Pe[me][ke]=it>=0?Qe.getAt(it):0}}var Tt=0;for(ke=0;ke<M.length;ke+=1)Tt+=M[ke].totalCount;var pt=new Array(Tt),ot=0;for(ke=0;ke<te;ke+=1)for(me=0;me<M.length;me+=1)ke<Ce[me].length&&(pt[ot]=Ce[me][ke],ot+=1);for(ke=0;ke<Ae;ke+=1)for(me=0;me<M.length;me+=1)ke<Pe[me].length&&(pt[ot]=Pe[me][ke],ot+=1);return pt}(ee,K)};A.addData=function(B,Z){var W=null;switch(Z=Z||"Byte"){case"Numeric":W=J(B);break;case"Alphanumeric":W=V(B);break;case"Byte":W=de(B);break;case"Kanji":W=he(B);break;default:throw"mode:"+Z}v.push(W),f=null},A.isDark=function(B,Z){if(B<0||b<=B||Z<0||b<=Z)throw B+","+Z;return p[B][Z]},A.getModuleCount=function(){return b},A.make=function(){if(S<1){for(var B=1;B<40;B++){for(var Z=Q.getRSBlocks(B,d),W=ne(),K=0;K<v.length;K++){var ee=v[K];W.put(ee.getMode(),4),W.put(ee.getLength(),ue.getLengthInBits(ee.getMode(),B)),ee.write(W)}var Se=0;for(K=0;K<Z.length;K++)Se+=Z[K].dataCount;if(W.getLengthInBits()<=8*Se)break}S=B}Y(!1,function(){for(var u=0,c=0,_=0;_<8;_+=1){Y(!0,_);var M=ue.getLostPoint(A);(_==0||u>M)&&(u=M,c=_)}return c}())},A.createTableTag=function(B,Z){B=B||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(Z=Z===void 0?4*B:Z)+"px;",W+='">',W+="<tbody>";for(var K=0;K<A.getModuleCount();K+=1){W+="<tr>";for(var ee=0;ee<A.getModuleCount();ee+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+B+"px;",W+=" height: "+B+"px;",W+=" background-color: ",W+=A.isDark(K,ee)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},A.createSvgTag=function(B,Z,W,K){var ee={};typeof arguments[0]=="object"&&(B=(ee=arguments[0]).cellSize,Z=ee.margin,W=ee.alt,K=ee.title),B=B||2,Z=Z===void 0?4*B:Z,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.id||"qrcode-description":null,(K=typeof K=="string"?{text:K}:K||{}).text=K.text||null,K.id=K.text?K.id||"qrcode-title":null;var Se,u,c,_,M=A.getModuleCount()*B+2*Z,U="";for(_="l"+B+",0 0,"+B+" -"+B+",0 0,-"+B+"z ",U+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',U+=ee.scalable?"":' width="'+M+'px" height="'+M+'px"',U+=' viewBox="0 0 '+M+" "+M+'" ',U+=' preserveAspectRatio="xMinYMin meet"',U+=K.text||W.text?' role="img" aria-labelledby="'+ve([K.id,W.id].join(" ").trim())+'"':"",U+=">",U+=K.text?'<title id="'+ve(K.id)+'">'+ve(K.text)+"</title>":"",U+=W.text?'<description id="'+ve(W.id)+'">'+ve(W.text)+"</description>":"",U+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',U+='<path d="',u=0;u<A.getModuleCount();u+=1)for(c=u*B+Z,Se=0;Se<A.getModuleCount();Se+=1)A.isDark(u,Se)&&(U+="M"+(Se*B+Z)+","+c+_);return(U+='" stroke="transparent" fill="black"/>')+"</svg>"},A.createDataURL=function(B,Z){B=B||2,Z=Z===void 0?4*B:Z;var W=A.getModuleCount()*B+2*Z,K=Z,ee=W-Z;return Oe(W,W,function(Se,u){if(K<=Se&&Se<ee&&K<=u&&u<ee){var c=Math.floor((Se-K)/B),_=Math.floor((u-K)/B);return A.isDark(_,c)?0:1}return 1})},A.createImgTag=function(B,Z,W){B=B||2,Z=Z===void 0?4*B:Z;var K=A.getModuleCount()*B+2*Z,ee="";return ee+="<img",ee+=' src="',ee+=A.createDataURL(B,Z),ee+='"',ee+=' width="',ee+=K,ee+='"',ee+=' height="',ee+=K,ee+='"',W&&(ee+=' alt="',ee+=ve(W),ee+='"'),ee+"/>"};var ve=function(B){for(var Z="",W=0;W<B.length;W+=1){var K=B.charAt(W);switch(K){case"<":Z+="&lt;";break;case">":Z+="&gt;";break;case"&":Z+="&amp;";break;case'"':Z+="&quot;";break;default:Z+=K}}return Z};return A.createASCII=function(B,Z){if((B=B||1)<2)return function(Ce){Ce=Ce===void 0?2:Ce;var Pe,me,Re,Ie,ke,Xe=1*A.getModuleCount()+2*Ce,Qe=Ce,it=Xe-Ce,Tt={"██":"█","█ ":"▀"," █":"▄"," ":" "},pt={"██":"▀","█ ":"▀"," █":" "," ":" "},ot="";for(Pe=0;Pe<Xe;Pe+=2){for(Re=Math.floor((Pe-Qe)/1),Ie=Math.floor((Pe+1-Qe)/1),me=0;me<Xe;me+=1)ke="█",Qe<=me&&me<it&&Qe<=Pe&&Pe<it&&A.isDark(Re,Math.floor((me-Qe)/1))&&(ke=" "),Qe<=me&&me<it&&Qe<=Pe+1&&Pe+1<it&&A.isDark(Ie,Math.floor((me-Qe)/1))?ke+=" ":ke+="█",ot+=Ce<1&&Pe+1>=it?pt[ke]:Tt[ke];ot+=`
114
- `}return Xe%2&&Ce>0?ot.substring(0,ot.length-Xe-1)+Array(Xe+1).join("▀"):ot.substring(0,ot.length-1)}(Z);B-=1,Z=Z===void 0?2*B:Z;var W,K,ee,Se,u=A.getModuleCount()*B+2*Z,c=Z,_=u-Z,M=Array(B+1).join("██"),U=Array(B+1).join(" "),te="",Ae="";for(W=0;W<u;W+=1){for(ee=Math.floor((W-c)/B),Ae="",K=0;K<u;K+=1)Se=1,c<=K&&K<_&&c<=W&&W<_&&A.isDark(ee,Math.floor((K-c)/B))&&(Se=0),Ae+=Se?M:U;for(ee=0;ee<B;ee+=1)te+=Ae+`
115
- `}return te.substring(0,te.length-1)},A.renderTo2dContext=function(B,Z){Z=Z||2;for(var W=A.getModuleCount(),K=0;K<W;K++)for(var ee=0;ee<W;ee++)B.fillStyle=A.isDark(K,ee)?"black":"white",B.fillRect(K*Z,ee*Z,Z,Z)},A};N.stringToBytes=(N.stringToBytesFuncs={default:function(k){for(var T=[],S=0;S<k.length;S+=1){var d=k.charCodeAt(S);T.push(255&d)}return T}}).default,N.createStringToBytes=function(k,T){var S=function(){for(var p=De(k),b=function(){var oe=p.read();if(oe==-1)throw"eof";return oe},f=0,v={};;){var A=p.read();if(A==-1)break;var Y=b(),G=b()<<8|b();v[String.fromCharCode(A<<8|Y)]=G,f+=1}if(f!=T)throw f+" != "+T;return v}(),d=63;return function(p){for(var b=[],f=0;f<p.length;f+=1){var v=p.charCodeAt(f);if(v<128)b.push(v);else{var A=S[p.charAt(f)];typeof A=="number"?(255&A)==A?b.push(A):(b.push(A>>>8),b.push(255&A)):b.push(d)}}return b}};var R,L,I,$,H,se={L:1,M:0,Q:3,H:2},ue=(R=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],L=1335,I=7973,H=function(k){for(var T=0;k!=0;)T+=1,k>>>=1;return T},($={}).getBCHTypeInfo=function(k){for(var T=k<<10;H(T)-H(L)>=0;)T^=L<<H(T)-H(L);return 21522^(k<<10|T)},$.getBCHTypeNumber=function(k){for(var T=k<<12;H(T)-H(I)>=0;)T^=I<<H(T)-H(I);return k<<12|T},$.getPatternPosition=function(k){return R[k-1]},$.getMaskFunction=function(k){switch(k){case 0:return function(T,S){return(T+S)%2==0};case 1:return function(T,S){return T%2==0};case 2:return function(T,S){return S%3==0};case 3:return function(T,S){return(T+S)%3==0};case 4:return function(T,S){return(Math.floor(T/2)+Math.floor(S/3))%2==0};case 5:return function(T,S){return T*S%2+T*S%3==0};case 6:return function(T,S){return(T*S%2+T*S%3)%2==0};case 7:return function(T,S){return(T*S%3+(T+S)%2)%2==0};default:throw"bad maskPattern:"+k}},$.getErrorCorrectPolynomial=function(k){for(var T=ce([1],0),S=0;S<k;S+=1)T=T.multiply(ce([1,ae.gexp(S)],0));return T},$.getLengthInBits=function(k,T){if(1<=T&&T<10)switch(k){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+k}else if(T<27)switch(k){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+k}else{if(!(T<41))throw"type:"+T;switch(k){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+k}}},$.getLostPoint=function(k){for(var T=k.getModuleCount(),S=0,d=0;d<T;d+=1)for(var p=0;p<T;p+=1){for(var b=0,f=k.isDark(d,p),v=-1;v<=1;v+=1)if(!(d+v<0||T<=d+v))for(var A=-1;A<=1;A+=1)p+A<0||T<=p+A||v==0&&A==0||f==k.isDark(d+v,p+A)&&(b+=1);b>5&&(S+=3+b-5)}for(d=0;d<T-1;d+=1)for(p=0;p<T-1;p+=1){var Y=0;k.isDark(d,p)&&(Y+=1),k.isDark(d+1,p)&&(Y+=1),k.isDark(d,p+1)&&(Y+=1),k.isDark(d+1,p+1)&&(Y+=1),Y!=0&&Y!=4||(S+=3)}for(d=0;d<T;d+=1)for(p=0;p<T-6;p+=1)k.isDark(d,p)&&!k.isDark(d,p+1)&&k.isDark(d,p+2)&&k.isDark(d,p+3)&&k.isDark(d,p+4)&&!k.isDark(d,p+5)&&k.isDark(d,p+6)&&(S+=40);for(p=0;p<T;p+=1)for(d=0;d<T-6;d+=1)k.isDark(d,p)&&!k.isDark(d+1,p)&&k.isDark(d+2,p)&&k.isDark(d+3,p)&&k.isDark(d+4,p)&&!k.isDark(d+5,p)&&k.isDark(d+6,p)&&(S+=40);var G=0;for(p=0;p<T;p+=1)for(d=0;d<T;d+=1)k.isDark(d,p)&&(G+=1);return S+Math.abs(100*G/T/T-50)/5*10},$),ae=function(){for(var k=new Array(256),T=new Array(256),S=0;S<8;S+=1)k[S]=1<<S;for(S=8;S<256;S+=1)k[S]=k[S-4]^k[S-5]^k[S-6]^k[S-8];for(S=0;S<255;S+=1)T[k[S]]=S;return{glog:function(d){if(d<1)throw"glog("+d+")";return T[d]},gexp:function(d){for(;d<0;)d+=255;for(;d>=256;)d-=255;return k[d]}}}();function ce(k,T){if(k.length===void 0)throw k.length+"/"+T;var S=function(){for(var p=0;p<k.length&&k[p]==0;)p+=1;for(var b=new Array(k.length-p+T),f=0;f<k.length-p;f+=1)b[f]=k[f+p];return b}(),d={getAt:function(p){return S[p]},getLength:function(){return S.length},multiply:function(p){for(var b=new Array(d.getLength()+p.getLength()-1),f=0;f<d.getLength();f+=1)for(var v=0;v<p.getLength();v+=1)b[f+v]^=ae.gexp(ae.glog(d.getAt(f))+ae.glog(p.getAt(v)));return ce(b,0)},mod:function(p){if(d.getLength()-p.getLength()<0)return d;for(var b=ae.glog(d.getAt(0))-ae.glog(p.getAt(0)),f=new Array(d.getLength()),v=0;v<d.getLength();v+=1)f[v]=d.getAt(v);for(v=0;v<p.getLength();v+=1)f[v]^=ae.gexp(ae.glog(p.getAt(v))+b);return ce(f,0).mod(p)}};return d}var Q=function(){var k=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T=function(d,p){var b={};return b.totalCount=d,b.dataCount=p,b},S={getRSBlocks:function(d,p){var b=function(we,X){switch(X){case se.L:return k[4*(we-1)+0];case se.M:return k[4*(we-1)+1];case se.Q:return k[4*(we-1)+2];case se.H:return k[4*(we-1)+3];default:return}}(d,p);if(b===void 0)throw"bad rs block @ typeNumber:"+d+"/errorCorrectionLevel:"+p;for(var f=b.length/3,v=[],A=0;A<f;A+=1)for(var Y=b[3*A+0],G=b[3*A+1],oe=b[3*A+2],le=0;le<Y;le+=1)v.push(T(G,oe));return v}};return S}(),ne=function(){var k=[],T=0,S={getBuffer:function(){return k},getAt:function(d){var p=Math.floor(d/8);return(k[p]>>>7-d%8&1)==1},put:function(d,p){for(var b=0;b<p;b+=1)S.putBit((d>>>p-b-1&1)==1)},getLengthInBits:function(){return T},putBit:function(d){var p=Math.floor(T/8);k.length<=p&&k.push(0),d&&(k[p]|=128>>>T%8),T+=1}};return S},J=function(k){var T=k,S={getMode:function(){return 1},getLength:function(b){return T.length},write:function(b){for(var f=T,v=0;v+2<f.length;)b.put(d(f.substring(v,v+3)),10),v+=3;v<f.length&&(f.length-v==1?b.put(d(f.substring(v,v+1)),4):f.length-v==2&&b.put(d(f.substring(v,v+2)),7))}},d=function(b){for(var f=0,v=0;v<b.length;v+=1)f=10*f+p(b.charAt(v));return f},p=function(b){if("0"<=b&&b<="9")return b.charCodeAt(0)-48;throw"illegal char :"+b};return S},V=function(k){var T=k,S={getMode:function(){return 2},getLength:function(p){return T.length},write:function(p){for(var b=T,f=0;f+1<b.length;)p.put(45*d(b.charAt(f))+d(b.charAt(f+1)),11),f+=2;f<b.length&&p.put(d(b.charAt(f)),6)}},d=function(p){if("0"<=p&&p<="9")return p.charCodeAt(0)-48;if("A"<=p&&p<="Z")return p.charCodeAt(0)-65+10;switch(p){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+p}};return S},de=function(k){var T=N.stringToBytes(k);return{getMode:function(){return 4},getLength:function(S){return T.length},write:function(S){for(var d=0;d<T.length;d+=1)S.put(T[d],8)}}},he=function(k){var T=N.stringToBytesFuncs.SJIS;if(!T)throw"sjis not supported.";(function(){var p=T("友");if(p.length!=2||(p[0]<<8|p[1])!=38726)throw"sjis not supported."})();var S=T(k),d={getMode:function(){return 8},getLength:function(p){return~~(S.length/2)},write:function(p){for(var b=S,f=0;f+1<b.length;){var v=(255&b[f])<<8|255&b[f+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(f+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),p.put(v,13),f+=2}if(f<b.length)throw"illegal char at "+(f+1)}};return d},re=function(){var k=[],T={writeByte:function(S){k.push(255&S)},writeShort:function(S){T.writeByte(S),T.writeByte(S>>>8)},writeBytes:function(S,d,p){d=d||0,p=p||S.length;for(var b=0;b<p;b+=1)T.writeByte(S[b+d])},writeString:function(S){for(var d=0;d<S.length;d+=1)T.writeByte(S.charCodeAt(d))},toByteArray:function(){return k},toString:function(){var S="";S+="[";for(var d=0;d<k.length;d+=1)d>0&&(S+=","),S+=k[d];return S+"]"}};return T},De=function(k){var T=k,S=0,d=0,p=0,b={read:function(){for(;p<8;){if(S>=T.length){if(p==0)return-1;throw"unexpected end of file./"+p}var v=T.charAt(S);if(S+=1,v=="=")return p=0,-1;v.match(/^\s$/)||(d=d<<6|f(v.charCodeAt(0)),p+=6)}var A=d>>>p-8&255;return p-=8,A}},f=function(v){if(65<=v&&v<=90)return v-65;if(97<=v&&v<=122)return v-97+26;if(48<=v&&v<=57)return v-48+52;if(v==43)return 62;if(v==47)return 63;throw"c:"+v};return b},Oe=function(k,T,S){for(var d=function(G,oe){var le=G,we=oe,X=new Array(G*oe),be={setPixel:function(B,Z,W){X[Z*le+B]=W},write:function(B){B.writeString("GIF87a"),B.writeShort(le),B.writeShort(we),B.writeByte(128),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(255),B.writeByte(255),B.writeByte(255),B.writeString(","),B.writeShort(0),B.writeShort(0),B.writeShort(le),B.writeShort(we),B.writeByte(0);var Z=_e(2);B.writeByte(2);for(var W=0;Z.length-W>255;)B.writeByte(255),B.writeBytes(Z,W,255),W+=255;B.writeByte(Z.length-W),B.writeBytes(Z,W,Z.length-W),B.writeByte(0),B.writeString(";")}},_e=function(B){for(var Z=1<<B,W=1+(1<<B),K=B+1,ee=ve(),Se=0;Se<Z;Se+=1)ee.add(String.fromCharCode(Se));ee.add(String.fromCharCode(Z)),ee.add(String.fromCharCode(W));var u,c,_,M=re(),U=(u=M,c=0,_=0,{write:function(Pe,me){if(Pe>>>me)throw"length over";for(;c+me>=8;)u.writeByte(255&(Pe<<c|_)),me-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=me},flush:function(){c>0&&u.writeByte(_)}});U.write(Z,K);var te=0,Ae=String.fromCharCode(X[te]);for(te+=1;te<X.length;){var Ce=String.fromCharCode(X[te]);te+=1,ee.contains(Ae+Ce)?Ae+=Ce:(U.write(ee.indexOf(Ae),K),ee.size()<4095&&(ee.size()==1<<K&&(K+=1),ee.add(Ae+Ce)),Ae=Ce)}return U.write(ee.indexOf(Ae),K),U.write(W,K),U.flush(),M.toByteArray()},ve=function(){var B={},Z=0,W={add:function(K){if(W.contains(K))throw"dup key:"+K;B[K]=Z,Z+=1},size:function(){return Z},indexOf:function(K){return B[K]},contains:function(K){return B[K]!==void 0}};return W};return be}(k,T),p=0;p<T;p+=1)for(var b=0;b<k;b+=1)d.setPixel(b,p,S(b,p));var f=re();d.write(f);for(var v=function(){var G=0,oe=0,le=0,we="",X={},be=function(ve){we+=String.fromCharCode(_e(63&ve))},_e=function(ve){if(!(ve<0)){if(ve<26)return 65+ve;if(ve<52)return ve-26+97;if(ve<62)return ve-52+48;if(ve==62)return 43;if(ve==63)return 47}throw"n:"+ve};return X.writeByte=function(ve){for(G=G<<8|255&ve,oe+=8,le+=1;oe>=6;)be(G>>>oe-6),oe-=6},X.flush=function(){if(oe>0&&(be(G<<6-oe),G=0,oe=0),le%3!=0)for(var ve=3-le%3,B=0;B<ve;B+=1)we+="="},X.toString=function(){return we},X}(),A=f.toByteArray(),Y=0;Y<A.length;Y+=1)v.writeByte(A[Y]);return v.flush(),"data:image/gif;base64,"+v};return N}();E.stringToBytesFuncs["UTF-8"]=function(N){return function(R){for(var L=[],I=0;I<R.length;I++){var $=R.charCodeAt(I);$<128?L.push($):$<2048?L.push(192|$>>6,128|63&$):$<55296||$>=57344?L.push(224|$>>12,128|$>>6&63,128|63&$):(I++,$=65536+((1023&$)<<10|1023&R.charCodeAt(I)),L.push(240|$>>18,128|$>>12&63,128|$>>6&63,128|63&$))}return L}(N)},(D=typeof(C=function(){return E})=="function"?C.apply(h,[]):C)===void 0||(m.exports=D)}},s={};function l(m){var h=s[m];if(h!==void 0)return h.exports;var C=s[m]={exports:{}};return r[m](C,C.exports,l),C.exports}l.n=m=>{var h=m&&m.__esModule?()=>m.default:()=>m;return l.d(h,{a:h}),h},l.d=(m,h)=>{for(var C in h)l.o(h,C)&&!l.o(m,C)&&Object.defineProperty(m,C,{enumerable:!0,get:h[C]})},l.o=(m,h)=>Object.prototype.hasOwnProperty.call(m,h);var g={};return(()=>{l.d(g,{default:()=>T});const m=S=>!!S&&typeof S=="object"&&!Array.isArray(S);function h(S,...d){if(!d.length)return S;const p=d.shift();return p!==void 0&&m(S)&&m(p)?(S=Object.assign({},S),Object.keys(p).forEach(b=>{const f=S[b],v=p[b];Array.isArray(f)&&Array.isArray(v)?S[b]=v:m(f)&&m(v)?S[b]=h(Object.assign({},f),v):S[b]=v}),h(S,...d)):S}function C(S,d){const p=document.createElement("a");p.download=d,p.href=S,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const D={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:d,type:p,window:b}){this._svg=d,this._type=p,this._window=b}draw(d,p,b,f){let v;switch(this._type){case"dots":v=this._drawDot;break;case"classy":v=this._drawClassy;break;case"classy-rounded":v=this._drawClassyRounded;break;case"rounded":v=this._drawRounded;break;case"extra-rounded":v=this._drawExtraRounded;break;default:v=this._drawSquare}v.call(this,{x:d,y:p,size:b,getNeighbor:f})}_rotateFigure({x:d,y:p,size:b,rotation:f=0,draw:v}){var A;const Y=d+b/2,G=p+b/2;v(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(b+p/2)),this._element.setAttribute("cy",String(f+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(b)),this._element.setAttribute("y",String(f)),this._element.setAttribute("width",String(p)),this._element.setAttribute("height",String(p))}}))}_basicSideRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, 0 ${-p}`)}}))}_basicCornerRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h ${p}v `+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_basicCornerExtraRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h ${p}a ${p} ${p}, 0, 0, 0, ${-p} ${-p}`)}}))}_basicCornersRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${p/2} ${p/2}h `+p/2+"v "+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_drawDot({x:d,y:p,size:b}){this._basicDot({x:d,y:p,size:b,rotation:0})}_drawSquare({x:d,y:p,size:b}){this._basicSquare({x:d,y:p,size:b,rotation:0})}_drawRounded({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0,oe=v+A+Y+G;if(oe!==0)if(oe>2||v&&A||Y&&G)this._basicSquare({x:d,y:p,size:b,rotation:0});else{if(oe===2){let le=0;return v&&Y?le=Math.PI/2:Y&&A?le=Math.PI:A&&G&&(le=-Math.PI/2),void this._basicCornerRounded({x:d,y:p,size:b,rotation:le})}if(oe===1){let le=0;return Y?le=Math.PI/2:A?le=Math.PI:G&&(le=-Math.PI/2),void this._basicSideRounded({x:d,y:p,size:b,rotation:le})}}else this._basicDot({x:d,y:p,size:b,rotation:0})}_drawExtraRounded({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0,oe=v+A+Y+G;if(oe!==0)if(oe>2||v&&A||Y&&G)this._basicSquare({x:d,y:p,size:b,rotation:0});else{if(oe===2){let le=0;return v&&Y?le=Math.PI/2:Y&&A?le=Math.PI:A&&G&&(le=-Math.PI/2),void this._basicCornerExtraRounded({x:d,y:p,size:b,rotation:le})}if(oe===1){let le=0;return Y?le=Math.PI/2:A?le=Math.PI:G&&(le=-Math.PI/2),void this._basicSideRounded({x:d,y:p,size:b,rotation:le})}}else this._basicDot({x:d,y:p,size:b,rotation:0})}_drawClassy({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0;v+A+Y+G!==0?v||Y?A||G?this._basicSquare({x:d,y:p,size:b,rotation:0}):this._basicCornerRounded({x:d,y:p,size:b,rotation:Math.PI/2}):this._basicCornerRounded({x:d,y:p,size:b,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:p,size:b,rotation:Math.PI/2})}_drawClassyRounded({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0;v+A+Y+G!==0?v||Y?A||G?this._basicSquare({x:d,y:p,size:b,rotation:0}):this._basicCornerExtraRounded({x:d,y:p,size:b,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:d,y:p,size:b,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:p,size:b,rotation:Math.PI/2})}}const N={dot:"dot",square:"square",extraRounded:"extra-rounded"},R=Object.values(N);class L{constructor({svg:d,type:p,window:b}){this._svg=d,this._type=p,this._window=b}draw(d,p,b,f){let v;switch(this._type){case N.square:v=this._drawSquare;break;case N.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:d,y:p,size:b,rotation:f})}_rotateFigure({x:d,y:p,size:b,rotation:f=0,draw:v}){var A;const Y=d+b/2,G=p+b/2;v(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(d){const{size:p,x:b,y:f}=d,v=p/7;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${b+p/2} ${f}a ${p/2} ${p/2} 0 1 0 0.1 0zm 0 ${v}a ${p/2-v} ${p/2-v} 0 1 1 -0.1 0Z`)}}))}_basicSquare(d){const{size:p,x:b,y:f}=d,v=p/7;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h ${p}v `+-p+`zM ${b+v} ${f+v}h `+(p-2*v)+"v "+(p-2*v)+"h "+(2*v-p)+"z")}}))}_basicExtraRounded(d){const{size:p,x:b,y:f}=d,v=p/7;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${b} ${f+2.5*v}v `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*v}h `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*-v}v `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*-v}h `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*v}M ${b+2.5*v} ${f+v}h `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*v}v `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*v}h `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*-v}v `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*-v}`)}}))}_drawDot({x:d,y:p,size:b,rotation:f}){this._basicDot({x:d,y:p,size:b,rotation:f})}_drawSquare({x:d,y:p,size:b,rotation:f}){this._basicSquare({x:d,y:p,size:b,rotation:f})}_drawExtraRounded({x:d,y:p,size:b,rotation:f}){this._basicExtraRounded({x:d,y:p,size:b,rotation:f})}}const I={dot:"dot",square:"square"},$=Object.values(I);class H{constructor({svg:d,type:p,window:b}){this._svg=d,this._type=p,this._window=b}draw(d,p,b,f){let v;v=this._type===I.square?this._drawSquare:this._drawDot,v.call(this,{x:d,y:p,size:b,rotation:f})}_rotateFigure({x:d,y:p,size:b,rotation:f=0,draw:v}){var A;const Y=d+b/2,G=p+b/2;v(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(b+p/2)),this._element.setAttribute("cy",String(f+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(b)),this._element.setAttribute("y",String(f)),this._element.setAttribute("width",String(p)),this._element.setAttribute("height",String(p))}}))}_drawDot({x:d,y:p,size:b,rotation:f}){this._basicDot({x:d,y:p,size:b,rotation:f})}_drawSquare({x:d,y:p,size:b,rotation:f}){this._basicSquare({x:d,y:p,size:b,rotation:f})}}const se="circle",ue=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],ae=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class ce{constructor(d,p){this._roundSize=b=>this._options.dotsOptions.roundSize?Math.floor(b):b,this._window=p,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(d.width)),this._element.setAttribute("height",String(d.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),d.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${d.width} ${d.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=d.image,this._instanceId=ce.instanceCount++,this._options=d}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(d){const p=d.getModuleCount(),b=Math.min(this._options.width,this._options.height)-2*this._options.margin,f=this._options.shape===se?b/Math.sqrt(2):b,v=this._roundSize(f/p);let A={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=d,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:G}=this._options,oe=Y.imageSize*D[G.errorCorrectionLevel],le=Math.floor(oe*p*p);A=function({originalHeight:we,originalWidth:X,maxHiddenDots:be,maxHiddenAxisDots:_e,dotSize:ve}){const B={x:0,y:0},Z={x:0,y:0};if(we<=0||X<=0||be<=0||ve<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/X;return B.x=Math.floor(Math.sqrt(be/W)),B.x<=0&&(B.x=1),_e&&_e<B.x&&(B.x=_e),B.x%2==0&&B.x--,Z.x=B.x*ve,B.y=1+2*Math.ceil((B.x*W-1)/2),Z.y=Math.round(Z.x*W),(B.y*B.x>be||_e&&_e<B.y)&&(_e&&_e<B.y?(B.y=_e,B.y%2==0&&B.x--):B.y-=2,Z.y=B.y*ve,B.x=1+2*Math.ceil((B.y/W-1)/2),Z.x=Math.round(Z.y/W)),{height:Z.y,width:Z.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:le,maxHiddenAxisDots:p-14,dotSize:v})}this.drawBackground(),this.drawDots((Y,G)=>{var oe,le,we,X,be,_e;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(p-A.hideYDots)/2&&Y<(p+A.hideYDots)/2&&G>=(p-A.hideXDots)/2&&G<(p+A.hideXDots)/2||!((oe=ue[Y])===null||oe===void 0)&&oe[G]||!((le=ue[Y-p+7])===null||le===void 0)&&le[G]||!((we=ue[Y])===null||we===void 0)&&we[G-p+7]||!((X=ae[Y])===null||X===void 0)&&X[G]||!((be=ae[Y-p+7])===null||be===void 0)&&be[G]||!((_e=ae[Y])===null||_e===void 0)&&_e[G-p+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:A.width,height:A.height,count:p,dotSize:v})}drawBackground(){var d,p,b;const f=this._element,v=this._options;if(f){const A=(d=v.backgroundOptions)===null||d===void 0?void 0:d.gradient,Y=(p=v.backgroundOptions)===null||p===void 0?void 0:p.color;let G=v.height,oe=v.width;if(A||Y){const le=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((b=v.backgroundOptions)===null||b===void 0)&&b.round&&(G=oe=Math.min(v.width,v.height),le.setAttribute("rx",String(G/2*v.backgroundOptions.round))),le.setAttribute("x",String(this._roundSize((v.width-oe)/2))),le.setAttribute("y",String(this._roundSize((v.height-G)/2))),le.setAttribute("width",String(oe)),le.setAttribute("height",String(G)),this._backgroundClipPath.appendChild(le),this._createColor({options:A,color:Y,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(d){var p,b;if(!this._qr)throw"QR code is not defined";const f=this._options,v=this._qr.getModuleCount();if(v>f.width||v>f.height)throw"The canvas is too small.";const A=Math.min(f.width,f.height)-2*f.margin,Y=f.shape===se?A/Math.sqrt(2):A,G=this._roundSize(Y/v),oe=this._roundSize((f.width-v*G)/2),le=this._roundSize((f.height-v*G)/2),we=new E({svg:this._element,type:f.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(p=f.dotsOptions)===null||p===void 0?void 0:p.gradient,color:f.dotsOptions.color,additionalRotation:0,x:0,y:0,height:f.height,width:f.width,name:`dot-color-${this._instanceId}`});for(let X=0;X<v;X++)for(let be=0;be<v;be++)d&&!d(X,be)||!((b=this._qr)===null||b===void 0)&&b.isDark(X,be)&&(we.draw(oe+be*G,le+X*G,G,(_e,ve)=>!(be+_e<0||X+ve<0||be+_e>=v||X+ve>=v)&&!(d&&!d(X+ve,be+_e))&&!!this._qr&&this._qr.isDark(X+ve,be+_e)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(f.shape===se){const X=this._roundSize((A/G-v)/2),be=v+2*X,_e=oe-X*G,ve=le-X*G,B=[],Z=this._roundSize(be/2);for(let W=0;W<be;W++){B[W]=[];for(let K=0;K<be;K++)W>=X-1&&W<=be-X&&K>=X-1&&K<=be-X||Math.sqrt((W-Z)*(W-Z)+(K-Z)*(K-Z))>Z?B[W][K]=0:B[W][K]=this._qr.isDark(K-2*X<0?K:K>=v?K-2*X:K-X,W-2*X<0?W:W>=v?W-2*X:W-X)?1:0}for(let W=0;W<be;W++)for(let K=0;K<be;K++)B[W][K]&&(we.draw(_e+K*G,ve+W*G,G,(ee,Se)=>{var u;return!!(!((u=B[W+Se])===null||u===void 0)&&u[K+ee])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const d=this._element,p=this._options;if(!d)throw"Element code is not defined";const b=this._qr.getModuleCount(),f=Math.min(p.width,p.height)-2*p.margin,v=p.shape===se?f/Math.sqrt(2):f,A=this._roundSize(v/b),Y=7*A,G=3*A,oe=this._roundSize((p.width-b*A)/2),le=this._roundSize((p.height-b*A)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,X,be])=>{var _e,ve,B,Z,W,K,ee,Se,u,c,_,M,U,te;const Ae=oe+we*A*(b-7),Ce=le+X*A*(b-7);let Pe=this._dotsClipPath,me=this._dotsClipPath;if((!((_e=p.cornersSquareOptions)===null||_e===void 0)&&_e.gradient||!((ve=p.cornersSquareOptions)===null||ve===void 0)&&ve.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-square-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersSquareClipPath=this._cornersDotClipPath=me=Pe,this._createColor({options:(B=p.cornersSquareOptions)===null||B===void 0?void 0:B.gradient,color:(Z=p.cornersSquareOptions)===null||Z===void 0?void 0:Z.color,additionalRotation:be,x:Ae,y:Ce,height:Y,width:Y,name:`corners-square-color-${we}-${X}-${this._instanceId}`})),((W=p.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&R.includes(p.cornersSquareOptions.type)){const Re=new L({svg:this._element,type:p.cornersSquareOptions.type,window:this._window});Re.draw(Ae,Ce,Y,be),Re._element&&Pe&&Pe.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((K=p.cornersSquareOptions)===null||K===void 0?void 0:K.type)||p.dotsOptions.type,window:this._window});for(let Ie=0;Ie<ue.length;Ie++)for(let ke=0;ke<ue[Ie].length;ke++)!((ee=ue[Ie])===null||ee===void 0)&&ee[ke]&&(Re.draw(Ae+ke*A,Ce+Ie*A,A,(Xe,Qe)=>{var it;return!!(!((it=ue[Ie+Qe])===null||it===void 0)&&it[ke+Xe])}),Re._element&&Pe&&Pe.appendChild(Re._element))}if((!((Se=p.cornersDotOptions)===null||Se===void 0)&&Se.gradient||!((u=p.cornersDotOptions)===null||u===void 0)&&u.color)&&(me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),me.setAttribute("id",`clip-path-corners-dot-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(me),this._cornersDotClipPath=me,this._createColor({options:(c=p.cornersDotOptions)===null||c===void 0?void 0:c.gradient,color:(_=p.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:be,x:Ae+2*A,y:Ce+2*A,height:G,width:G,name:`corners-dot-color-${we}-${X}-${this._instanceId}`})),((M=p.cornersDotOptions)===null||M===void 0?void 0:M.type)&&$.includes(p.cornersDotOptions.type)){const Re=new H({svg:this._element,type:p.cornersDotOptions.type,window:this._window});Re.draw(Ae+2*A,Ce+2*A,G,be),Re._element&&me&&me.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((U=p.cornersDotOptions)===null||U===void 0?void 0:U.type)||p.dotsOptions.type,window:this._window});for(let Ie=0;Ie<ae.length;Ie++)for(let ke=0;ke<ae[Ie].length;ke++)!((te=ae[Ie])===null||te===void 0)&&te[ke]&&(Re.draw(Ae+ke*A,Ce+Ie*A,A,(Xe,Qe)=>{var it;return!!(!((it=ae[Ie+Qe])===null||it===void 0)&&it[ke+Xe])}),Re._element&&me&&me.appendChild(Re._element))}})}loadImage(){return new Promise((d,p)=>{var b;const f=this._options;if(!f.image)return p("Image is not defined");if(!((b=f.nodeCanvas)===null||b===void 0)&&b.loadImage)f.nodeCanvas.loadImage(f.image).then(v=>{var A,Y;if(this._image=v,this._options.imageOptions.saveAsBlob){const G=(A=f.nodeCanvas)===null||A===void 0?void 0:A.createCanvas(this._image.width,this._image.height);(Y=G?.getContext("2d"))===null||Y===void 0||Y.drawImage(v,0,0),this._imageUri=G?.toDataURL()}d()}).catch(p);else{const v=new this._window.Image;typeof f.imageOptions.crossOrigin=="string"&&(v.crossOrigin=f.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(A,Y){return new Promise(G=>{const oe=new Y.XMLHttpRequest;oe.onload=function(){const le=new Y.FileReader;le.onloadend=function(){G(le.result)},le.readAsDataURL(oe.response)},oe.open("GET",A),oe.responseType="blob",oe.send()})}(f.image||"",this._window)),d()},v.src=f.image}})}async drawImage({width:d,height:p,count:b,dotSize:f}){const v=this._options,A=this._roundSize((v.width-b*f)/2),Y=this._roundSize((v.height-b*f)/2),G=A+this._roundSize(v.imageOptions.margin+(b*f-d)/2),oe=Y+this._roundSize(v.imageOptions.margin+(b*f-p)/2),le=d-2*v.imageOptions.margin,we=p-2*v.imageOptions.margin,X=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");X.setAttribute("href",this._imageUri||""),X.setAttribute("xlink:href",this._imageUri||""),X.setAttribute("x",String(G)),X.setAttribute("y",String(oe)),X.setAttribute("width",`${le}px`),X.setAttribute("height",`${we}px`),this._element.appendChild(X)}_createColor({options:d,color:p,additionalRotation:b,x:f,y:v,height:A,width:Y,name:G}){const oe=Y>A?Y:A,le=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(le.setAttribute("x",String(f)),le.setAttribute("y",String(v)),le.setAttribute("height",String(A)),le.setAttribute("width",String(Y)),le.setAttribute("clip-path",`url('#clip-path-${G}')`),d){let we;if(d.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(f+Y/2)),we.setAttribute("fy",String(v+A/2)),we.setAttribute("cx",String(f+Y/2)),we.setAttribute("cy",String(v+A/2)),we.setAttribute("r",String(oe/2));else{const X=((d.rotation||0)+b)%(2*Math.PI),be=(X+2*Math.PI)%(2*Math.PI);let _e=f+Y/2,ve=v+A/2,B=f+Y/2,Z=v+A/2;be>=0&&be<=.25*Math.PI||be>1.75*Math.PI&&be<=2*Math.PI?(_e-=Y/2,ve-=A/2*Math.tan(X),B+=Y/2,Z+=A/2*Math.tan(X)):be>.25*Math.PI&&be<=.75*Math.PI?(ve-=A/2,_e-=Y/2/Math.tan(X),Z+=A/2,B+=Y/2/Math.tan(X)):be>.75*Math.PI&&be<=1.25*Math.PI?(_e+=Y/2,ve+=A/2*Math.tan(X),B-=Y/2,Z-=A/2*Math.tan(X)):be>1.25*Math.PI&&be<=1.75*Math.PI&&(ve+=A/2,_e+=Y/2/Math.tan(X),Z-=A/2,B-=Y/2/Math.tan(X)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(_e))),we.setAttribute("y1",String(Math.round(ve))),we.setAttribute("x2",String(Math.round(B))),we.setAttribute("y2",String(Math.round(Z)))}d.colorStops.forEach(({offset:X,color:be})=>{const _e=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");_e.setAttribute("offset",100*X+"%"),_e.setAttribute("stop-color",be),we.appendChild(_e)}),le.setAttribute("fill",`url('#${G}')`),this._defs.appendChild(we)}else p&&le.setAttribute("fill",p);this._element.appendChild(le)}}ce.instanceCount=0;const Q=ce,ne="canvas",J={};for(let S=0;S<=40;S++)J[S]=S;const V={type:ne,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:J[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function de(S){const d=Object.assign({},S);if(!d.colorStops||!d.colorStops.length)throw"Field 'colorStops' is required in gradient";return d.rotation?d.rotation=Number(d.rotation):d.rotation=0,d.colorStops=d.colorStops.map(p=>Object.assign(Object.assign({},p),{offset:Number(p.offset)})),d}function he(S){const d=Object.assign({},S);return d.width=Number(d.width),d.height=Number(d.height),d.margin=Number(d.margin),d.imageOptions=Object.assign(Object.assign({},d.imageOptions),{hideBackgroundDots:!!d.imageOptions.hideBackgroundDots,imageSize:Number(d.imageOptions.imageSize),margin:Number(d.imageOptions.margin)}),d.margin>Math.min(d.width,d.height)&&(d.margin=Math.min(d.width,d.height)),d.dotsOptions=Object.assign({},d.dotsOptions),d.dotsOptions.gradient&&(d.dotsOptions.gradient=de(d.dotsOptions.gradient)),d.cornersSquareOptions&&(d.cornersSquareOptions=Object.assign({},d.cornersSquareOptions),d.cornersSquareOptions.gradient&&(d.cornersSquareOptions.gradient=de(d.cornersSquareOptions.gradient))),d.cornersDotOptions&&(d.cornersDotOptions=Object.assign({},d.cornersDotOptions),d.cornersDotOptions.gradient&&(d.cornersDotOptions.gradient=de(d.cornersDotOptions.gradient))),d.backgroundOptions&&(d.backgroundOptions=Object.assign({},d.backgroundOptions),d.backgroundOptions.gradient&&(d.backgroundOptions.gradient=de(d.backgroundOptions.gradient))),d}var re=l(873),De=l.n(re);function Oe(S){if(!S)throw new Error("Extension must be defined");S[0]==="."&&(S=S.substring(1));const d={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[S.toLowerCase()];if(!d)throw new Error(`Extension "${S}" is not supported`);return d}class k{constructor(d){d!=null&&d.jsdom?this._window=new d.jsdom("",{resources:"usable"}).window:this._window=window,this._options=d?he(h(V,d)):V,this.update()}static _clearContainer(d){d&&(d.innerHTML="")}_setupSvg(){if(!this._qr)return;const d=new Q(this._options,this._window);this._svg=d.getElement(),this._svgDrawingPromise=d.drawQR(this._qr).then(()=>{var p;this._svg&&((p=this._extension)===null||p===void 0||p.call(this,d.getElement(),this._options))})}_setupCanvas(){var d,p;this._qr&&(!((d=this._options.nodeCanvas)===null||d===void 0)&&d.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(p=this._svgDrawingPromise)===null||p===void 0?void 0:p.then(()=>{var b;if(!this._svg)return;const f=this._svg,v=new this._window.XMLSerializer().serializeToString(f),A=btoa(v),Y=`data:${Oe("svg")};base64,${A}`;if(!((b=this._options.nodeCanvas)===null||b===void 0)&&b.loadImage)return this._options.nodeCanvas.loadImage(Y).then(G=>{var oe,le;G.width=this._options.width,G.height=this._options.height,(le=(oe=this._nodeCanvas)===null||oe===void 0?void 0:oe.getContext("2d"))===null||le===void 0||le.drawImage(G,0,0)});{const G=new this._window.Image;return new Promise(oe=>{G.onload=()=>{var le,we;(we=(le=this._domCanvas)===null||le===void 0?void 0:le.getContext("2d"))===null||we===void 0||we.drawImage(G,0,0),oe()},G.src=Y})}}))}async _getElement(d="png"){if(!this._qr)throw"QR code is empty";return d.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(d){k._clearContainer(this._container),this._options=d?he(h(this._options,d)):this._options,this._options.data&&(this._qr=De()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(p){switch(!0){case/^[0-9]*$/.test(p):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(p):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ne?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(d){if(d){if(typeof d.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ne?this._domCanvas&&d.appendChild(this._domCanvas):this._svg&&d.appendChild(this._svg),this._container=d}}applyExtension(d){if(!d)throw"Extension function should be defined.";this._extension=d,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(d="png"){if(!this._qr)throw"QR code is empty";const p=await this._getElement(d),b=Oe(d);if(!p)return null;if(d.toLowerCase()==="svg"){const f=`<?xml version="1.0" standalone="no"?>\r
113
+ */var il;function Ep(){return il||(il=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,g=window.Cookies=r();g.noConflict=function(){return window.Cookies=l,g}}})(function(){function r(){for(var g=0,m={};g<arguments.length;g++){var h=arguments[g];for(var C in h)m[C]=h[C]}return m}function s(g){return g.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(g){function m(){}function h(D,E,N){if(!(typeof document>"u")){N=r({path:"/"},m.defaults,N),typeof N.expires=="number"&&(N.expires=new Date(new Date*1+N.expires*864e5)),N.expires=N.expires?N.expires.toUTCString():"";try{var R=JSON.stringify(E);/^[\{\[]/.test(R)&&(E=R)}catch{}E=g.write?g.write(E,D):encodeURIComponent(String(E)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),D=encodeURIComponent(String(D)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var L="";for(var I in N)N[I]&&(L+="; "+I,N[I]!==!0&&(L+="="+N[I].split(";")[0]));return document.cookie=D+"="+E+L}}function C(D,E){if(!(typeof document>"u")){for(var N={},R=document.cookie?document.cookie.split("; "):[],L=0;L<R.length;L++){var I=R[L].split("="),$=I.slice(1).join("=");!E&&$.charAt(0)==='"'&&($=$.slice(1,-1));try{var H=s(I[0]);if($=(g.read||g)($,H)||s($),E)try{$=JSON.parse($)}catch{}if(N[H]=$,D===H)break}catch{}}return D?N[D]:N}}return m.set=h,m.get=function(D){return C(D,!1)},m.getJSON=function(D){return C(D,!0)},m.remove=function(D,E){h(D,"",r(E,{expires:-1}))},m.defaults={},m.withConverter=l,m}return l(function(){})})}(rl)),rl.exports}Ep();function Tp(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Pp(){return Tp().getCurrentUser()}function Mp(){return new Promise((i,n)=>{const r=Pp();r===null&&n(null),r?.getSession((s,l)=>{if(s!==null||l===null)return n(null);i({session:l,authenticatedUser:r})})})}async function Rp(){const{session:i}=await Mp();return i?.getIdToken().getJwtToken()}ye.createContext(void 0);var kp="undefined",Lp="object",qi="browser",ol="cpu",sl="device",Cs="engine",Hi="os",nr="name",Gi="type",Ss="vendor",On="version",As="architecture",Ds="major",Os="model",Np="console",Ip="mobile",$p="tablet",Bp="smarttv",jp="wearable",Yp="embedded",Fp=typeof window!==kp,Es=Fp&&window.navigator?window.navigator:void 0;Es&&Es.userAgentData&&Es.userAgentData;var Vi=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Ki=function(i){for(var n in i){var r=i[n];typeof r==Lp&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Ki.call(i.init,[[qi,[nr,On,Ds,Gi]],[ol,[As]],[sl,[Gi,Os,Ss]],[Cs,[nr,On]],[Hi,[nr,On]]]),Ki.call(i.isIgnore,[[qi,[On,Ds]],[Cs,[On]],[Hi,[On]]]),Ki.call(i.isIgnoreRgx,[[qi,/ ?browser$/i],[Hi,/ ?os$/i]]),Ki.call(i.toString,[[qi,[nr,On]],[ol,[As]],[sl,[Ss,Os]],[Cs,[nr,On]],[Hi,[nr,On]]]),i})(),Vi([nr,On,Ds,Gi]),Vi([As]),Vi([Os,Ss,Gi,Np,Ip,Bp,$p,jp,Yp]),Vi([nr,On]);var Ts={exports:{}},Wp=Ts.exports,al;function Up(){return al||(al=1,function(i,n){(function(r,s){i.exports=s()})(Wp,()=>(()=>{var r={873:(m,h)=>{var C,D,E=function(){var N=function(k,T){var S=k,d=se[T],p=null,b=0,f=null,v=[],A={},Y=function(B,Z){p=function(W){for(var K=new Array(W),ee=0;ee<W;ee+=1){K[ee]=new Array(W);for(var Se=0;Se<W;Se+=1)K[ee][Se]=null}return K}(b=4*S+17),G(0,0),G(b-7,0),G(0,b-7),le(),oe(),X(B,Z),S>=7&&we(B),f==null&&(f=_e(S,d,v)),be(f,Z)},G=function(B,Z){for(var W=-1;W<=7;W+=1)if(!(B+W<=-1||b<=B+W))for(var K=-1;K<=7;K+=1)Z+K<=-1||b<=Z+K||(p[B+W][Z+K]=0<=W&&W<=6&&(K==0||K==6)||0<=K&&K<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=K&&K<=4)},oe=function(){for(var B=8;B<b-8;B+=1)p[B][6]==null&&(p[B][6]=B%2==0);for(var Z=8;Z<b-8;Z+=1)p[6][Z]==null&&(p[6][Z]=Z%2==0)},le=function(){for(var B=ue.getPatternPosition(S),Z=0;Z<B.length;Z+=1)for(var W=0;W<B.length;W+=1){var K=B[Z],ee=B[W];if(p[K][ee]==null)for(var Se=-2;Se<=2;Se+=1)for(var u=-2;u<=2;u+=1)p[K+Se][ee+u]=Se==-2||Se==2||u==-2||u==2||Se==0&&u==0}},we=function(B){for(var Z=ue.getBCHTypeNumber(S),W=0;W<18;W+=1){var K=!B&&(Z>>W&1)==1;p[Math.floor(W/3)][W%3+b-8-3]=K}for(W=0;W<18;W+=1)K=!B&&(Z>>W&1)==1,p[W%3+b-8-3][Math.floor(W/3)]=K},X=function(B,Z){for(var W=d<<3|Z,K=ue.getBCHTypeInfo(W),ee=0;ee<15;ee+=1){var Se=!B&&(K>>ee&1)==1;ee<6?p[ee][8]=Se:ee<8?p[ee+1][8]=Se:p[b-15+ee][8]=Se}for(ee=0;ee<15;ee+=1)Se=!B&&(K>>ee&1)==1,ee<8?p[8][b-ee-1]=Se:ee<9?p[8][15-ee-1+1]=Se:p[8][15-ee-1]=Se;p[b-8][8]=!B},be=function(B,Z){for(var W=-1,K=b-1,ee=7,Se=0,u=ue.getMaskFunction(Z),c=b-1;c>0;c-=2)for(c==6&&(c-=1);;){for(var _=0;_<2;_+=1)if(p[K][c-_]==null){var M=!1;Se<B.length&&(M=(B[Se]>>>ee&1)==1),u(K,c-_)&&(M=!M),p[K][c-_]=M,(ee-=1)==-1&&(Se+=1,ee=7)}if((K+=W)<0||b<=K){K-=W,W=-W;break}}},_e=function(B,Z,W){for(var K=Q.getRSBlocks(B,Z),ee=ne(),Se=0;Se<W.length;Se+=1){var u=W[Se];ee.put(u.getMode(),4),ee.put(u.getLength(),ue.getLengthInBits(u.getMode(),B)),u.write(ee)}var c=0;for(Se=0;Se<K.length;Se+=1)c+=K[Se].dataCount;if(ee.getLengthInBits()>8*c)throw"code length overflow. ("+ee.getLengthInBits()+">"+8*c+")";for(ee.getLengthInBits()+4<=8*c&&ee.put(0,4);ee.getLengthInBits()%8!=0;)ee.putBit(!1);for(;!(ee.getLengthInBits()>=8*c||(ee.put(236,8),ee.getLengthInBits()>=8*c));)ee.put(17,8);return function(_,M){for(var U=0,te=0,Ae=0,Ce=new Array(M.length),Pe=new Array(M.length),me=0;me<M.length;me+=1){var Re=M[me].dataCount,Ie=M[me].totalCount-Re;te=Math.max(te,Re),Ae=Math.max(Ae,Ie),Ce[me]=new Array(Re);for(var ke=0;ke<Ce[me].length;ke+=1)Ce[me][ke]=255&_.getBuffer()[ke+U];U+=Re;var Je=ue.getErrorCorrectPolynomial(Ie),Ze=ce(Ce[me],Je.getLength()-1).mod(Je);for(Pe[me]=new Array(Je.getLength()-1),ke=0;ke<Pe[me].length;ke+=1){var rt=ke+Ze.getLength()-Pe[me].length;Pe[me][ke]=rt>=0?Ze.getAt(rt):0}}var Tt=0;for(ke=0;ke<M.length;ke+=1)Tt+=M[ke].totalCount;var pt=new Array(Tt),it=0;for(ke=0;ke<te;ke+=1)for(me=0;me<M.length;me+=1)ke<Ce[me].length&&(pt[it]=Ce[me][ke],it+=1);for(ke=0;ke<Ae;ke+=1)for(me=0;me<M.length;me+=1)ke<Pe[me].length&&(pt[it]=Pe[me][ke],it+=1);return pt}(ee,K)};A.addData=function(B,Z){var W=null;switch(Z=Z||"Byte"){case"Numeric":W=J(B);break;case"Alphanumeric":W=V(B);break;case"Byte":W=de(B);break;case"Kanji":W=he(B);break;default:throw"mode:"+Z}v.push(W),f=null},A.isDark=function(B,Z){if(B<0||b<=B||Z<0||b<=Z)throw B+","+Z;return p[B][Z]},A.getModuleCount=function(){return b},A.make=function(){if(S<1){for(var B=1;B<40;B++){for(var Z=Q.getRSBlocks(B,d),W=ne(),K=0;K<v.length;K++){var ee=v[K];W.put(ee.getMode(),4),W.put(ee.getLength(),ue.getLengthInBits(ee.getMode(),B)),ee.write(W)}var Se=0;for(K=0;K<Z.length;K++)Se+=Z[K].dataCount;if(W.getLengthInBits()<=8*Se)break}S=B}Y(!1,function(){for(var u=0,c=0,_=0;_<8;_+=1){Y(!0,_);var M=ue.getLostPoint(A);(_==0||u>M)&&(u=M,c=_)}return c}())},A.createTableTag=function(B,Z){B=B||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(Z=Z===void 0?4*B:Z)+"px;",W+='">',W+="<tbody>";for(var K=0;K<A.getModuleCount();K+=1){W+="<tr>";for(var ee=0;ee<A.getModuleCount();ee+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+B+"px;",W+=" height: "+B+"px;",W+=" background-color: ",W+=A.isDark(K,ee)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},A.createSvgTag=function(B,Z,W,K){var ee={};typeof arguments[0]=="object"&&(B=(ee=arguments[0]).cellSize,Z=ee.margin,W=ee.alt,K=ee.title),B=B||2,Z=Z===void 0?4*B:Z,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.id||"qrcode-description":null,(K=typeof K=="string"?{text:K}:K||{}).text=K.text||null,K.id=K.text?K.id||"qrcode-title":null;var Se,u,c,_,M=A.getModuleCount()*B+2*Z,U="";for(_="l"+B+",0 0,"+B+" -"+B+",0 0,-"+B+"z ",U+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',U+=ee.scalable?"":' width="'+M+'px" height="'+M+'px"',U+=' viewBox="0 0 '+M+" "+M+'" ',U+=' preserveAspectRatio="xMinYMin meet"',U+=K.text||W.text?' role="img" aria-labelledby="'+ve([K.id,W.id].join(" ").trim())+'"':"",U+=">",U+=K.text?'<title id="'+ve(K.id)+'">'+ve(K.text)+"</title>":"",U+=W.text?'<description id="'+ve(W.id)+'">'+ve(W.text)+"</description>":"",U+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',U+='<path d="',u=0;u<A.getModuleCount();u+=1)for(c=u*B+Z,Se=0;Se<A.getModuleCount();Se+=1)A.isDark(u,Se)&&(U+="M"+(Se*B+Z)+","+c+_);return(U+='" stroke="transparent" fill="black"/>')+"</svg>"},A.createDataURL=function(B,Z){B=B||2,Z=Z===void 0?4*B:Z;var W=A.getModuleCount()*B+2*Z,K=Z,ee=W-Z;return Oe(W,W,function(Se,u){if(K<=Se&&Se<ee&&K<=u&&u<ee){var c=Math.floor((Se-K)/B),_=Math.floor((u-K)/B);return A.isDark(_,c)?0:1}return 1})},A.createImgTag=function(B,Z,W){B=B||2,Z=Z===void 0?4*B:Z;var K=A.getModuleCount()*B+2*Z,ee="";return ee+="<img",ee+=' src="',ee+=A.createDataURL(B,Z),ee+='"',ee+=' width="',ee+=K,ee+='"',ee+=' height="',ee+=K,ee+='"',W&&(ee+=' alt="',ee+=ve(W),ee+='"'),ee+"/>"};var ve=function(B){for(var Z="",W=0;W<B.length;W+=1){var K=B.charAt(W);switch(K){case"<":Z+="&lt;";break;case">":Z+="&gt;";break;case"&":Z+="&amp;";break;case'"':Z+="&quot;";break;default:Z+=K}}return Z};return A.createASCII=function(B,Z){if((B=B||1)<2)return function(Ce){Ce=Ce===void 0?2:Ce;var Pe,me,Re,Ie,ke,Je=1*A.getModuleCount()+2*Ce,Ze=Ce,rt=Je-Ce,Tt={"██":"█","█ ":"▀"," █":"▄"," ":" "},pt={"██":"▀","█ ":"▀"," █":" "," ":" "},it="";for(Pe=0;Pe<Je;Pe+=2){for(Re=Math.floor((Pe-Ze)/1),Ie=Math.floor((Pe+1-Ze)/1),me=0;me<Je;me+=1)ke="█",Ze<=me&&me<rt&&Ze<=Pe&&Pe<rt&&A.isDark(Re,Math.floor((me-Ze)/1))&&(ke=" "),Ze<=me&&me<rt&&Ze<=Pe+1&&Pe+1<rt&&A.isDark(Ie,Math.floor((me-Ze)/1))?ke+=" ":ke+="█",it+=Ce<1&&Pe+1>=rt?pt[ke]:Tt[ke];it+=`
114
+ `}return Je%2&&Ce>0?it.substring(0,it.length-Je-1)+Array(Je+1).join("▀"):it.substring(0,it.length-1)}(Z);B-=1,Z=Z===void 0?2*B:Z;var W,K,ee,Se,u=A.getModuleCount()*B+2*Z,c=Z,_=u-Z,M=Array(B+1).join("██"),U=Array(B+1).join(" "),te="",Ae="";for(W=0;W<u;W+=1){for(ee=Math.floor((W-c)/B),Ae="",K=0;K<u;K+=1)Se=1,c<=K&&K<_&&c<=W&&W<_&&A.isDark(ee,Math.floor((K-c)/B))&&(Se=0),Ae+=Se?M:U;for(ee=0;ee<B;ee+=1)te+=Ae+`
115
+ `}return te.substring(0,te.length-1)},A.renderTo2dContext=function(B,Z){Z=Z||2;for(var W=A.getModuleCount(),K=0;K<W;K++)for(var ee=0;ee<W;ee++)B.fillStyle=A.isDark(K,ee)?"black":"white",B.fillRect(K*Z,ee*Z,Z,Z)},A};N.stringToBytes=(N.stringToBytesFuncs={default:function(k){for(var T=[],S=0;S<k.length;S+=1){var d=k.charCodeAt(S);T.push(255&d)}return T}}).default,N.createStringToBytes=function(k,T){var S=function(){for(var p=De(k),b=function(){var oe=p.read();if(oe==-1)throw"eof";return oe},f=0,v={};;){var A=p.read();if(A==-1)break;var Y=b(),G=b()<<8|b();v[String.fromCharCode(A<<8|Y)]=G,f+=1}if(f!=T)throw f+" != "+T;return v}(),d=63;return function(p){for(var b=[],f=0;f<p.length;f+=1){var v=p.charCodeAt(f);if(v<128)b.push(v);else{var A=S[p.charAt(f)];typeof A=="number"?(255&A)==A?b.push(A):(b.push(A>>>8),b.push(255&A)):b.push(d)}}return b}};var R,L,I,$,H,se={L:1,M:0,Q:3,H:2},ue=(R=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],L=1335,I=7973,H=function(k){for(var T=0;k!=0;)T+=1,k>>>=1;return T},($={}).getBCHTypeInfo=function(k){for(var T=k<<10;H(T)-H(L)>=0;)T^=L<<H(T)-H(L);return 21522^(k<<10|T)},$.getBCHTypeNumber=function(k){for(var T=k<<12;H(T)-H(I)>=0;)T^=I<<H(T)-H(I);return k<<12|T},$.getPatternPosition=function(k){return R[k-1]},$.getMaskFunction=function(k){switch(k){case 0:return function(T,S){return(T+S)%2==0};case 1:return function(T,S){return T%2==0};case 2:return function(T,S){return S%3==0};case 3:return function(T,S){return(T+S)%3==0};case 4:return function(T,S){return(Math.floor(T/2)+Math.floor(S/3))%2==0};case 5:return function(T,S){return T*S%2+T*S%3==0};case 6:return function(T,S){return(T*S%2+T*S%3)%2==0};case 7:return function(T,S){return(T*S%3+(T+S)%2)%2==0};default:throw"bad maskPattern:"+k}},$.getErrorCorrectPolynomial=function(k){for(var T=ce([1],0),S=0;S<k;S+=1)T=T.multiply(ce([1,ae.gexp(S)],0));return T},$.getLengthInBits=function(k,T){if(1<=T&&T<10)switch(k){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+k}else if(T<27)switch(k){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+k}else{if(!(T<41))throw"type:"+T;switch(k){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+k}}},$.getLostPoint=function(k){for(var T=k.getModuleCount(),S=0,d=0;d<T;d+=1)for(var p=0;p<T;p+=1){for(var b=0,f=k.isDark(d,p),v=-1;v<=1;v+=1)if(!(d+v<0||T<=d+v))for(var A=-1;A<=1;A+=1)p+A<0||T<=p+A||v==0&&A==0||f==k.isDark(d+v,p+A)&&(b+=1);b>5&&(S+=3+b-5)}for(d=0;d<T-1;d+=1)for(p=0;p<T-1;p+=1){var Y=0;k.isDark(d,p)&&(Y+=1),k.isDark(d+1,p)&&(Y+=1),k.isDark(d,p+1)&&(Y+=1),k.isDark(d+1,p+1)&&(Y+=1),Y!=0&&Y!=4||(S+=3)}for(d=0;d<T;d+=1)for(p=0;p<T-6;p+=1)k.isDark(d,p)&&!k.isDark(d,p+1)&&k.isDark(d,p+2)&&k.isDark(d,p+3)&&k.isDark(d,p+4)&&!k.isDark(d,p+5)&&k.isDark(d,p+6)&&(S+=40);for(p=0;p<T;p+=1)for(d=0;d<T-6;d+=1)k.isDark(d,p)&&!k.isDark(d+1,p)&&k.isDark(d+2,p)&&k.isDark(d+3,p)&&k.isDark(d+4,p)&&!k.isDark(d+5,p)&&k.isDark(d+6,p)&&(S+=40);var G=0;for(p=0;p<T;p+=1)for(d=0;d<T;d+=1)k.isDark(d,p)&&(G+=1);return S+Math.abs(100*G/T/T-50)/5*10},$),ae=function(){for(var k=new Array(256),T=new Array(256),S=0;S<8;S+=1)k[S]=1<<S;for(S=8;S<256;S+=1)k[S]=k[S-4]^k[S-5]^k[S-6]^k[S-8];for(S=0;S<255;S+=1)T[k[S]]=S;return{glog:function(d){if(d<1)throw"glog("+d+")";return T[d]},gexp:function(d){for(;d<0;)d+=255;for(;d>=256;)d-=255;return k[d]}}}();function ce(k,T){if(k.length===void 0)throw k.length+"/"+T;var S=function(){for(var p=0;p<k.length&&k[p]==0;)p+=1;for(var b=new Array(k.length-p+T),f=0;f<k.length-p;f+=1)b[f]=k[f+p];return b}(),d={getAt:function(p){return S[p]},getLength:function(){return S.length},multiply:function(p){for(var b=new Array(d.getLength()+p.getLength()-1),f=0;f<d.getLength();f+=1)for(var v=0;v<p.getLength();v+=1)b[f+v]^=ae.gexp(ae.glog(d.getAt(f))+ae.glog(p.getAt(v)));return ce(b,0)},mod:function(p){if(d.getLength()-p.getLength()<0)return d;for(var b=ae.glog(d.getAt(0))-ae.glog(p.getAt(0)),f=new Array(d.getLength()),v=0;v<d.getLength();v+=1)f[v]=d.getAt(v);for(v=0;v<p.getLength();v+=1)f[v]^=ae.gexp(ae.glog(p.getAt(v))+b);return ce(f,0).mod(p)}};return d}var Q=function(){var k=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T=function(d,p){var b={};return b.totalCount=d,b.dataCount=p,b},S={getRSBlocks:function(d,p){var b=function(we,X){switch(X){case se.L:return k[4*(we-1)+0];case se.M:return k[4*(we-1)+1];case se.Q:return k[4*(we-1)+2];case se.H:return k[4*(we-1)+3];default:return}}(d,p);if(b===void 0)throw"bad rs block @ typeNumber:"+d+"/errorCorrectionLevel:"+p;for(var f=b.length/3,v=[],A=0;A<f;A+=1)for(var Y=b[3*A+0],G=b[3*A+1],oe=b[3*A+2],le=0;le<Y;le+=1)v.push(T(G,oe));return v}};return S}(),ne=function(){var k=[],T=0,S={getBuffer:function(){return k},getAt:function(d){var p=Math.floor(d/8);return(k[p]>>>7-d%8&1)==1},put:function(d,p){for(var b=0;b<p;b+=1)S.putBit((d>>>p-b-1&1)==1)},getLengthInBits:function(){return T},putBit:function(d){var p=Math.floor(T/8);k.length<=p&&k.push(0),d&&(k[p]|=128>>>T%8),T+=1}};return S},J=function(k){var T=k,S={getMode:function(){return 1},getLength:function(b){return T.length},write:function(b){for(var f=T,v=0;v+2<f.length;)b.put(d(f.substring(v,v+3)),10),v+=3;v<f.length&&(f.length-v==1?b.put(d(f.substring(v,v+1)),4):f.length-v==2&&b.put(d(f.substring(v,v+2)),7))}},d=function(b){for(var f=0,v=0;v<b.length;v+=1)f=10*f+p(b.charAt(v));return f},p=function(b){if("0"<=b&&b<="9")return b.charCodeAt(0)-48;throw"illegal char :"+b};return S},V=function(k){var T=k,S={getMode:function(){return 2},getLength:function(p){return T.length},write:function(p){for(var b=T,f=0;f+1<b.length;)p.put(45*d(b.charAt(f))+d(b.charAt(f+1)),11),f+=2;f<b.length&&p.put(d(b.charAt(f)),6)}},d=function(p){if("0"<=p&&p<="9")return p.charCodeAt(0)-48;if("A"<=p&&p<="Z")return p.charCodeAt(0)-65+10;switch(p){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+p}};return S},de=function(k){var T=N.stringToBytes(k);return{getMode:function(){return 4},getLength:function(S){return T.length},write:function(S){for(var d=0;d<T.length;d+=1)S.put(T[d],8)}}},he=function(k){var T=N.stringToBytesFuncs.SJIS;if(!T)throw"sjis not supported.";(function(){var p=T("友");if(p.length!=2||(p[0]<<8|p[1])!=38726)throw"sjis not supported."})();var S=T(k),d={getMode:function(){return 8},getLength:function(p){return~~(S.length/2)},write:function(p){for(var b=S,f=0;f+1<b.length;){var v=(255&b[f])<<8|255&b[f+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(f+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),p.put(v,13),f+=2}if(f<b.length)throw"illegal char at "+(f+1)}};return d},re=function(){var k=[],T={writeByte:function(S){k.push(255&S)},writeShort:function(S){T.writeByte(S),T.writeByte(S>>>8)},writeBytes:function(S,d,p){d=d||0,p=p||S.length;for(var b=0;b<p;b+=1)T.writeByte(S[b+d])},writeString:function(S){for(var d=0;d<S.length;d+=1)T.writeByte(S.charCodeAt(d))},toByteArray:function(){return k},toString:function(){var S="";S+="[";for(var d=0;d<k.length;d+=1)d>0&&(S+=","),S+=k[d];return S+"]"}};return T},De=function(k){var T=k,S=0,d=0,p=0,b={read:function(){for(;p<8;){if(S>=T.length){if(p==0)return-1;throw"unexpected end of file./"+p}var v=T.charAt(S);if(S+=1,v=="=")return p=0,-1;v.match(/^\s$/)||(d=d<<6|f(v.charCodeAt(0)),p+=6)}var A=d>>>p-8&255;return p-=8,A}},f=function(v){if(65<=v&&v<=90)return v-65;if(97<=v&&v<=122)return v-97+26;if(48<=v&&v<=57)return v-48+52;if(v==43)return 62;if(v==47)return 63;throw"c:"+v};return b},Oe=function(k,T,S){for(var d=function(G,oe){var le=G,we=oe,X=new Array(G*oe),be={setPixel:function(B,Z,W){X[Z*le+B]=W},write:function(B){B.writeString("GIF87a"),B.writeShort(le),B.writeShort(we),B.writeByte(128),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(255),B.writeByte(255),B.writeByte(255),B.writeString(","),B.writeShort(0),B.writeShort(0),B.writeShort(le),B.writeShort(we),B.writeByte(0);var Z=_e(2);B.writeByte(2);for(var W=0;Z.length-W>255;)B.writeByte(255),B.writeBytes(Z,W,255),W+=255;B.writeByte(Z.length-W),B.writeBytes(Z,W,Z.length-W),B.writeByte(0),B.writeString(";")}},_e=function(B){for(var Z=1<<B,W=1+(1<<B),K=B+1,ee=ve(),Se=0;Se<Z;Se+=1)ee.add(String.fromCharCode(Se));ee.add(String.fromCharCode(Z)),ee.add(String.fromCharCode(W));var u,c,_,M=re(),U=(u=M,c=0,_=0,{write:function(Pe,me){if(Pe>>>me)throw"length over";for(;c+me>=8;)u.writeByte(255&(Pe<<c|_)),me-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=me},flush:function(){c>0&&u.writeByte(_)}});U.write(Z,K);var te=0,Ae=String.fromCharCode(X[te]);for(te+=1;te<X.length;){var Ce=String.fromCharCode(X[te]);te+=1,ee.contains(Ae+Ce)?Ae+=Ce:(U.write(ee.indexOf(Ae),K),ee.size()<4095&&(ee.size()==1<<K&&(K+=1),ee.add(Ae+Ce)),Ae=Ce)}return U.write(ee.indexOf(Ae),K),U.write(W,K),U.flush(),M.toByteArray()},ve=function(){var B={},Z=0,W={add:function(K){if(W.contains(K))throw"dup key:"+K;B[K]=Z,Z+=1},size:function(){return Z},indexOf:function(K){return B[K]},contains:function(K){return B[K]!==void 0}};return W};return be}(k,T),p=0;p<T;p+=1)for(var b=0;b<k;b+=1)d.setPixel(b,p,S(b,p));var f=re();d.write(f);for(var v=function(){var G=0,oe=0,le=0,we="",X={},be=function(ve){we+=String.fromCharCode(_e(63&ve))},_e=function(ve){if(!(ve<0)){if(ve<26)return 65+ve;if(ve<52)return ve-26+97;if(ve<62)return ve-52+48;if(ve==62)return 43;if(ve==63)return 47}throw"n:"+ve};return X.writeByte=function(ve){for(G=G<<8|255&ve,oe+=8,le+=1;oe>=6;)be(G>>>oe-6),oe-=6},X.flush=function(){if(oe>0&&(be(G<<6-oe),G=0,oe=0),le%3!=0)for(var ve=3-le%3,B=0;B<ve;B+=1)we+="="},X.toString=function(){return we},X}(),A=f.toByteArray(),Y=0;Y<A.length;Y+=1)v.writeByte(A[Y]);return v.flush(),"data:image/gif;base64,"+v};return N}();E.stringToBytesFuncs["UTF-8"]=function(N){return function(R){for(var L=[],I=0;I<R.length;I++){var $=R.charCodeAt(I);$<128?L.push($):$<2048?L.push(192|$>>6,128|63&$):$<55296||$>=57344?L.push(224|$>>12,128|$>>6&63,128|63&$):(I++,$=65536+((1023&$)<<10|1023&R.charCodeAt(I)),L.push(240|$>>18,128|$>>12&63,128|$>>6&63,128|63&$))}return L}(N)},(D=typeof(C=function(){return E})=="function"?C.apply(h,[]):C)===void 0||(m.exports=D)}},s={};function l(m){var h=s[m];if(h!==void 0)return h.exports;var C=s[m]={exports:{}};return r[m](C,C.exports,l),C.exports}l.n=m=>{var h=m&&m.__esModule?()=>m.default:()=>m;return l.d(h,{a:h}),h},l.d=(m,h)=>{for(var C in h)l.o(h,C)&&!l.o(m,C)&&Object.defineProperty(m,C,{enumerable:!0,get:h[C]})},l.o=(m,h)=>Object.prototype.hasOwnProperty.call(m,h);var g={};return(()=>{l.d(g,{default:()=>T});const m=S=>!!S&&typeof S=="object"&&!Array.isArray(S);function h(S,...d){if(!d.length)return S;const p=d.shift();return p!==void 0&&m(S)&&m(p)?(S=Object.assign({},S),Object.keys(p).forEach(b=>{const f=S[b],v=p[b];Array.isArray(f)&&Array.isArray(v)?S[b]=v:m(f)&&m(v)?S[b]=h(Object.assign({},f),v):S[b]=v}),h(S,...d)):S}function C(S,d){const p=document.createElement("a");p.download=d,p.href=S,document.body.appendChild(p),p.click(),document.body.removeChild(p)}const D={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:d,type:p,window:b}){this._svg=d,this._type=p,this._window=b}draw(d,p,b,f){let v;switch(this._type){case"dots":v=this._drawDot;break;case"classy":v=this._drawClassy;break;case"classy-rounded":v=this._drawClassyRounded;break;case"rounded":v=this._drawRounded;break;case"extra-rounded":v=this._drawExtraRounded;break;default:v=this._drawSquare}v.call(this,{x:d,y:p,size:b,getNeighbor:f})}_rotateFigure({x:d,y:p,size:b,rotation:f=0,draw:v}){var A;const Y=d+b/2,G=p+b/2;v(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(b+p/2)),this._element.setAttribute("cy",String(f+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(b)),this._element.setAttribute("y",String(f)),this._element.setAttribute("width",String(p)),this._element.setAttribute("height",String(p))}}))}_basicSideRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, 0 ${-p}`)}}))}_basicCornerRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h ${p}v `+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_basicCornerExtraRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h ${p}a ${p} ${p}, 0, 0, 0, ${-p} ${-p}`)}}))}_basicCornersRounded(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${b} ${f}v `+p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${p/2} ${p/2}h `+p/2+"v "+-p/2+`a ${p/2} ${p/2}, 0, 0, 0, ${-p/2} ${-p/2}`)}}))}_drawDot({x:d,y:p,size:b}){this._basicDot({x:d,y:p,size:b,rotation:0})}_drawSquare({x:d,y:p,size:b}){this._basicSquare({x:d,y:p,size:b,rotation:0})}_drawRounded({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0,oe=v+A+Y+G;if(oe!==0)if(oe>2||v&&A||Y&&G)this._basicSquare({x:d,y:p,size:b,rotation:0});else{if(oe===2){let le=0;return v&&Y?le=Math.PI/2:Y&&A?le=Math.PI:A&&G&&(le=-Math.PI/2),void this._basicCornerRounded({x:d,y:p,size:b,rotation:le})}if(oe===1){let le=0;return Y?le=Math.PI/2:A?le=Math.PI:G&&(le=-Math.PI/2),void this._basicSideRounded({x:d,y:p,size:b,rotation:le})}}else this._basicDot({x:d,y:p,size:b,rotation:0})}_drawExtraRounded({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0,oe=v+A+Y+G;if(oe!==0)if(oe>2||v&&A||Y&&G)this._basicSquare({x:d,y:p,size:b,rotation:0});else{if(oe===2){let le=0;return v&&Y?le=Math.PI/2:Y&&A?le=Math.PI:A&&G&&(le=-Math.PI/2),void this._basicCornerExtraRounded({x:d,y:p,size:b,rotation:le})}if(oe===1){let le=0;return Y?le=Math.PI/2:A?le=Math.PI:G&&(le=-Math.PI/2),void this._basicSideRounded({x:d,y:p,size:b,rotation:le})}}else this._basicDot({x:d,y:p,size:b,rotation:0})}_drawClassy({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0;v+A+Y+G!==0?v||Y?A||G?this._basicSquare({x:d,y:p,size:b,rotation:0}):this._basicCornerRounded({x:d,y:p,size:b,rotation:Math.PI/2}):this._basicCornerRounded({x:d,y:p,size:b,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:p,size:b,rotation:Math.PI/2})}_drawClassyRounded({x:d,y:p,size:b,getNeighbor:f}){const v=f?+f(-1,0):0,A=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0;v+A+Y+G!==0?v||Y?A||G?this._basicSquare({x:d,y:p,size:b,rotation:0}):this._basicCornerExtraRounded({x:d,y:p,size:b,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:d,y:p,size:b,rotation:-Math.PI/2}):this._basicCornersRounded({x:d,y:p,size:b,rotation:Math.PI/2})}}const N={dot:"dot",square:"square",extraRounded:"extra-rounded"},R=Object.values(N);class L{constructor({svg:d,type:p,window:b}){this._svg=d,this._type=p,this._window=b}draw(d,p,b,f){let v;switch(this._type){case N.square:v=this._drawSquare;break;case N.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:d,y:p,size:b,rotation:f})}_rotateFigure({x:d,y:p,size:b,rotation:f=0,draw:v}){var A;const Y=d+b/2,G=p+b/2;v(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(d){const{size:p,x:b,y:f}=d,v=p/7;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${b+p/2} ${f}a ${p/2} ${p/2} 0 1 0 0.1 0zm 0 ${v}a ${p/2-v} ${p/2-v} 0 1 1 -0.1 0Z`)}}))}_basicSquare(d){const{size:p,x:b,y:f}=d,v=p/7;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${b} ${f}v ${p}h ${p}v `+-p+`zM ${b+v} ${f+v}h `+(p-2*v)+"v "+(p-2*v)+"h "+(2*v-p)+"z")}}))}_basicExtraRounded(d){const{size:p,x:b,y:f}=d,v=p/7;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${b} ${f+2.5*v}v `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*v}h `+2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*v} ${2.5*-v}v `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*-v}h `+-2*v+`a ${2.5*v} ${2.5*v}, 0, 0, 0, ${2.5*-v} ${2.5*v}M ${b+2.5*v} ${f+v}h `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*v}v `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*v}h `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*-v}v `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*-v}`)}}))}_drawDot({x:d,y:p,size:b,rotation:f}){this._basicDot({x:d,y:p,size:b,rotation:f})}_drawSquare({x:d,y:p,size:b,rotation:f}){this._basicSquare({x:d,y:p,size:b,rotation:f})}_drawExtraRounded({x:d,y:p,size:b,rotation:f}){this._basicExtraRounded({x:d,y:p,size:b,rotation:f})}}const I={dot:"dot",square:"square"},$=Object.values(I);class H{constructor({svg:d,type:p,window:b}){this._svg=d,this._type=p,this._window=b}draw(d,p,b,f){let v;v=this._type===I.square?this._drawSquare:this._drawDot,v.call(this,{x:d,y:p,size:b,rotation:f})}_rotateFigure({x:d,y:p,size:b,rotation:f=0,draw:v}){var A;const Y=d+b/2,G=p+b/2;v(),(A=this._element)===null||A===void 0||A.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(b+p/2)),this._element.setAttribute("cy",String(f+p/2)),this._element.setAttribute("r",String(p/2))}}))}_basicSquare(d){const{size:p,x:b,y:f}=d;this._rotateFigure(Object.assign(Object.assign({},d),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(b)),this._element.setAttribute("y",String(f)),this._element.setAttribute("width",String(p)),this._element.setAttribute("height",String(p))}}))}_drawDot({x:d,y:p,size:b,rotation:f}){this._basicDot({x:d,y:p,size:b,rotation:f})}_drawSquare({x:d,y:p,size:b,rotation:f}){this._basicSquare({x:d,y:p,size:b,rotation:f})}}const se="circle",ue=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],ae=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class ce{constructor(d,p){this._roundSize=b=>this._options.dotsOptions.roundSize?Math.floor(b):b,this._window=p,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(d.width)),this._element.setAttribute("height",String(d.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),d.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${d.width} ${d.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=d.image,this._instanceId=ce.instanceCount++,this._options=d}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(d){const p=d.getModuleCount(),b=Math.min(this._options.width,this._options.height)-2*this._options.margin,f=this._options.shape===se?b/Math.sqrt(2):b,v=this._roundSize(f/p);let A={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=d,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:G}=this._options,oe=Y.imageSize*D[G.errorCorrectionLevel],le=Math.floor(oe*p*p);A=function({originalHeight:we,originalWidth:X,maxHiddenDots:be,maxHiddenAxisDots:_e,dotSize:ve}){const B={x:0,y:0},Z={x:0,y:0};if(we<=0||X<=0||be<=0||ve<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/X;return B.x=Math.floor(Math.sqrt(be/W)),B.x<=0&&(B.x=1),_e&&_e<B.x&&(B.x=_e),B.x%2==0&&B.x--,Z.x=B.x*ve,B.y=1+2*Math.ceil((B.x*W-1)/2),Z.y=Math.round(Z.x*W),(B.y*B.x>be||_e&&_e<B.y)&&(_e&&_e<B.y?(B.y=_e,B.y%2==0&&B.x--):B.y-=2,Z.y=B.y*ve,B.x=1+2*Math.ceil((B.y/W-1)/2),Z.x=Math.round(Z.y/W)),{height:Z.y,width:Z.x,hideYDots:B.y,hideXDots:B.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:le,maxHiddenAxisDots:p-14,dotSize:v})}this.drawBackground(),this.drawDots((Y,G)=>{var oe,le,we,X,be,_e;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(p-A.hideYDots)/2&&Y<(p+A.hideYDots)/2&&G>=(p-A.hideXDots)/2&&G<(p+A.hideXDots)/2||!((oe=ue[Y])===null||oe===void 0)&&oe[G]||!((le=ue[Y-p+7])===null||le===void 0)&&le[G]||!((we=ue[Y])===null||we===void 0)&&we[G-p+7]||!((X=ae[Y])===null||X===void 0)&&X[G]||!((be=ae[Y-p+7])===null||be===void 0)&&be[G]||!((_e=ae[Y])===null||_e===void 0)&&_e[G-p+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:A.width,height:A.height,count:p,dotSize:v})}drawBackground(){var d,p,b;const f=this._element,v=this._options;if(f){const A=(d=v.backgroundOptions)===null||d===void 0?void 0:d.gradient,Y=(p=v.backgroundOptions)===null||p===void 0?void 0:p.color;let G=v.height,oe=v.width;if(A||Y){const le=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((b=v.backgroundOptions)===null||b===void 0)&&b.round&&(G=oe=Math.min(v.width,v.height),le.setAttribute("rx",String(G/2*v.backgroundOptions.round))),le.setAttribute("x",String(this._roundSize((v.width-oe)/2))),le.setAttribute("y",String(this._roundSize((v.height-G)/2))),le.setAttribute("width",String(oe)),le.setAttribute("height",String(G)),this._backgroundClipPath.appendChild(le),this._createColor({options:A,color:Y,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(d){var p,b;if(!this._qr)throw"QR code is not defined";const f=this._options,v=this._qr.getModuleCount();if(v>f.width||v>f.height)throw"The canvas is too small.";const A=Math.min(f.width,f.height)-2*f.margin,Y=f.shape===se?A/Math.sqrt(2):A,G=this._roundSize(Y/v),oe=this._roundSize((f.width-v*G)/2),le=this._roundSize((f.height-v*G)/2),we=new E({svg:this._element,type:f.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(p=f.dotsOptions)===null||p===void 0?void 0:p.gradient,color:f.dotsOptions.color,additionalRotation:0,x:0,y:0,height:f.height,width:f.width,name:`dot-color-${this._instanceId}`});for(let X=0;X<v;X++)for(let be=0;be<v;be++)d&&!d(X,be)||!((b=this._qr)===null||b===void 0)&&b.isDark(X,be)&&(we.draw(oe+be*G,le+X*G,G,(_e,ve)=>!(be+_e<0||X+ve<0||be+_e>=v||X+ve>=v)&&!(d&&!d(X+ve,be+_e))&&!!this._qr&&this._qr.isDark(X+ve,be+_e)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(f.shape===se){const X=this._roundSize((A/G-v)/2),be=v+2*X,_e=oe-X*G,ve=le-X*G,B=[],Z=this._roundSize(be/2);for(let W=0;W<be;W++){B[W]=[];for(let K=0;K<be;K++)W>=X-1&&W<=be-X&&K>=X-1&&K<=be-X||Math.sqrt((W-Z)*(W-Z)+(K-Z)*(K-Z))>Z?B[W][K]=0:B[W][K]=this._qr.isDark(K-2*X<0?K:K>=v?K-2*X:K-X,W-2*X<0?W:W>=v?W-2*X:W-X)?1:0}for(let W=0;W<be;W++)for(let K=0;K<be;K++)B[W][K]&&(we.draw(_e+K*G,ve+W*G,G,(ee,Se)=>{var u;return!!(!((u=B[W+Se])===null||u===void 0)&&u[K+ee])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const d=this._element,p=this._options;if(!d)throw"Element code is not defined";const b=this._qr.getModuleCount(),f=Math.min(p.width,p.height)-2*p.margin,v=p.shape===se?f/Math.sqrt(2):f,A=this._roundSize(v/b),Y=7*A,G=3*A,oe=this._roundSize((p.width-b*A)/2),le=this._roundSize((p.height-b*A)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,X,be])=>{var _e,ve,B,Z,W,K,ee,Se,u,c,_,M,U,te;const Ae=oe+we*A*(b-7),Ce=le+X*A*(b-7);let Pe=this._dotsClipPath,me=this._dotsClipPath;if((!((_e=p.cornersSquareOptions)===null||_e===void 0)&&_e.gradient||!((ve=p.cornersSquareOptions)===null||ve===void 0)&&ve.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-square-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersSquareClipPath=this._cornersDotClipPath=me=Pe,this._createColor({options:(B=p.cornersSquareOptions)===null||B===void 0?void 0:B.gradient,color:(Z=p.cornersSquareOptions)===null||Z===void 0?void 0:Z.color,additionalRotation:be,x:Ae,y:Ce,height:Y,width:Y,name:`corners-square-color-${we}-${X}-${this._instanceId}`})),((W=p.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&R.includes(p.cornersSquareOptions.type)){const Re=new L({svg:this._element,type:p.cornersSquareOptions.type,window:this._window});Re.draw(Ae,Ce,Y,be),Re._element&&Pe&&Pe.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((K=p.cornersSquareOptions)===null||K===void 0?void 0:K.type)||p.dotsOptions.type,window:this._window});for(let Ie=0;Ie<ue.length;Ie++)for(let ke=0;ke<ue[Ie].length;ke++)!((ee=ue[Ie])===null||ee===void 0)&&ee[ke]&&(Re.draw(Ae+ke*A,Ce+Ie*A,A,(Je,Ze)=>{var rt;return!!(!((rt=ue[Ie+Ze])===null||rt===void 0)&&rt[ke+Je])}),Re._element&&Pe&&Pe.appendChild(Re._element))}if((!((Se=p.cornersDotOptions)===null||Se===void 0)&&Se.gradient||!((u=p.cornersDotOptions)===null||u===void 0)&&u.color)&&(me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),me.setAttribute("id",`clip-path-corners-dot-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(me),this._cornersDotClipPath=me,this._createColor({options:(c=p.cornersDotOptions)===null||c===void 0?void 0:c.gradient,color:(_=p.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:be,x:Ae+2*A,y:Ce+2*A,height:G,width:G,name:`corners-dot-color-${we}-${X}-${this._instanceId}`})),((M=p.cornersDotOptions)===null||M===void 0?void 0:M.type)&&$.includes(p.cornersDotOptions.type)){const Re=new H({svg:this._element,type:p.cornersDotOptions.type,window:this._window});Re.draw(Ae+2*A,Ce+2*A,G,be),Re._element&&me&&me.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((U=p.cornersDotOptions)===null||U===void 0?void 0:U.type)||p.dotsOptions.type,window:this._window});for(let Ie=0;Ie<ae.length;Ie++)for(let ke=0;ke<ae[Ie].length;ke++)!((te=ae[Ie])===null||te===void 0)&&te[ke]&&(Re.draw(Ae+ke*A,Ce+Ie*A,A,(Je,Ze)=>{var rt;return!!(!((rt=ae[Ie+Ze])===null||rt===void 0)&&rt[ke+Je])}),Re._element&&me&&me.appendChild(Re._element))}})}loadImage(){return new Promise((d,p)=>{var b;const f=this._options;if(!f.image)return p("Image is not defined");if(!((b=f.nodeCanvas)===null||b===void 0)&&b.loadImage)f.nodeCanvas.loadImage(f.image).then(v=>{var A,Y;if(this._image=v,this._options.imageOptions.saveAsBlob){const G=(A=f.nodeCanvas)===null||A===void 0?void 0:A.createCanvas(this._image.width,this._image.height);(Y=G?.getContext("2d"))===null||Y===void 0||Y.drawImage(v,0,0),this._imageUri=G?.toDataURL()}d()}).catch(p);else{const v=new this._window.Image;typeof f.imageOptions.crossOrigin=="string"&&(v.crossOrigin=f.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(A,Y){return new Promise(G=>{const oe=new Y.XMLHttpRequest;oe.onload=function(){const le=new Y.FileReader;le.onloadend=function(){G(le.result)},le.readAsDataURL(oe.response)},oe.open("GET",A),oe.responseType="blob",oe.send()})}(f.image||"",this._window)),d()},v.src=f.image}})}async drawImage({width:d,height:p,count:b,dotSize:f}){const v=this._options,A=this._roundSize((v.width-b*f)/2),Y=this._roundSize((v.height-b*f)/2),G=A+this._roundSize(v.imageOptions.margin+(b*f-d)/2),oe=Y+this._roundSize(v.imageOptions.margin+(b*f-p)/2),le=d-2*v.imageOptions.margin,we=p-2*v.imageOptions.margin,X=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");X.setAttribute("href",this._imageUri||""),X.setAttribute("xlink:href",this._imageUri||""),X.setAttribute("x",String(G)),X.setAttribute("y",String(oe)),X.setAttribute("width",`${le}px`),X.setAttribute("height",`${we}px`),this._element.appendChild(X)}_createColor({options:d,color:p,additionalRotation:b,x:f,y:v,height:A,width:Y,name:G}){const oe=Y>A?Y:A,le=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(le.setAttribute("x",String(f)),le.setAttribute("y",String(v)),le.setAttribute("height",String(A)),le.setAttribute("width",String(Y)),le.setAttribute("clip-path",`url('#clip-path-${G}')`),d){let we;if(d.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(f+Y/2)),we.setAttribute("fy",String(v+A/2)),we.setAttribute("cx",String(f+Y/2)),we.setAttribute("cy",String(v+A/2)),we.setAttribute("r",String(oe/2));else{const X=((d.rotation||0)+b)%(2*Math.PI),be=(X+2*Math.PI)%(2*Math.PI);let _e=f+Y/2,ve=v+A/2,B=f+Y/2,Z=v+A/2;be>=0&&be<=.25*Math.PI||be>1.75*Math.PI&&be<=2*Math.PI?(_e-=Y/2,ve-=A/2*Math.tan(X),B+=Y/2,Z+=A/2*Math.tan(X)):be>.25*Math.PI&&be<=.75*Math.PI?(ve-=A/2,_e-=Y/2/Math.tan(X),Z+=A/2,B+=Y/2/Math.tan(X)):be>.75*Math.PI&&be<=1.25*Math.PI?(_e+=Y/2,ve+=A/2*Math.tan(X),B-=Y/2,Z-=A/2*Math.tan(X)):be>1.25*Math.PI&&be<=1.75*Math.PI&&(ve+=A/2,_e+=Y/2/Math.tan(X),Z-=A/2,B-=Y/2/Math.tan(X)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",G),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(_e))),we.setAttribute("y1",String(Math.round(ve))),we.setAttribute("x2",String(Math.round(B))),we.setAttribute("y2",String(Math.round(Z)))}d.colorStops.forEach(({offset:X,color:be})=>{const _e=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");_e.setAttribute("offset",100*X+"%"),_e.setAttribute("stop-color",be),we.appendChild(_e)}),le.setAttribute("fill",`url('#${G}')`),this._defs.appendChild(we)}else p&&le.setAttribute("fill",p);this._element.appendChild(le)}}ce.instanceCount=0;const Q=ce,ne="canvas",J={};for(let S=0;S<=40;S++)J[S]=S;const V={type:ne,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:J[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function de(S){const d=Object.assign({},S);if(!d.colorStops||!d.colorStops.length)throw"Field 'colorStops' is required in gradient";return d.rotation?d.rotation=Number(d.rotation):d.rotation=0,d.colorStops=d.colorStops.map(p=>Object.assign(Object.assign({},p),{offset:Number(p.offset)})),d}function he(S){const d=Object.assign({},S);return d.width=Number(d.width),d.height=Number(d.height),d.margin=Number(d.margin),d.imageOptions=Object.assign(Object.assign({},d.imageOptions),{hideBackgroundDots:!!d.imageOptions.hideBackgroundDots,imageSize:Number(d.imageOptions.imageSize),margin:Number(d.imageOptions.margin)}),d.margin>Math.min(d.width,d.height)&&(d.margin=Math.min(d.width,d.height)),d.dotsOptions=Object.assign({},d.dotsOptions),d.dotsOptions.gradient&&(d.dotsOptions.gradient=de(d.dotsOptions.gradient)),d.cornersSquareOptions&&(d.cornersSquareOptions=Object.assign({},d.cornersSquareOptions),d.cornersSquareOptions.gradient&&(d.cornersSquareOptions.gradient=de(d.cornersSquareOptions.gradient))),d.cornersDotOptions&&(d.cornersDotOptions=Object.assign({},d.cornersDotOptions),d.cornersDotOptions.gradient&&(d.cornersDotOptions.gradient=de(d.cornersDotOptions.gradient))),d.backgroundOptions&&(d.backgroundOptions=Object.assign({},d.backgroundOptions),d.backgroundOptions.gradient&&(d.backgroundOptions.gradient=de(d.backgroundOptions.gradient))),d}var re=l(873),De=l.n(re);function Oe(S){if(!S)throw new Error("Extension must be defined");S[0]==="."&&(S=S.substring(1));const d={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[S.toLowerCase()];if(!d)throw new Error(`Extension "${S}" is not supported`);return d}class k{constructor(d){d!=null&&d.jsdom?this._window=new d.jsdom("",{resources:"usable"}).window:this._window=window,this._options=d?he(h(V,d)):V,this.update()}static _clearContainer(d){d&&(d.innerHTML="")}_setupSvg(){if(!this._qr)return;const d=new Q(this._options,this._window);this._svg=d.getElement(),this._svgDrawingPromise=d.drawQR(this._qr).then(()=>{var p;this._svg&&((p=this._extension)===null||p===void 0||p.call(this,d.getElement(),this._options))})}_setupCanvas(){var d,p;this._qr&&(!((d=this._options.nodeCanvas)===null||d===void 0)&&d.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(p=this._svgDrawingPromise)===null||p===void 0?void 0:p.then(()=>{var b;if(!this._svg)return;const f=this._svg,v=new this._window.XMLSerializer().serializeToString(f),A=btoa(v),Y=`data:${Oe("svg")};base64,${A}`;if(!((b=this._options.nodeCanvas)===null||b===void 0)&&b.loadImage)return this._options.nodeCanvas.loadImage(Y).then(G=>{var oe,le;G.width=this._options.width,G.height=this._options.height,(le=(oe=this._nodeCanvas)===null||oe===void 0?void 0:oe.getContext("2d"))===null||le===void 0||le.drawImage(G,0,0)});{const G=new this._window.Image;return new Promise(oe=>{G.onload=()=>{var le,we;(we=(le=this._domCanvas)===null||le===void 0?void 0:le.getContext("2d"))===null||we===void 0||we.drawImage(G,0,0),oe()},G.src=Y})}}))}async _getElement(d="png"){if(!this._qr)throw"QR code is empty";return d.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(d){k._clearContainer(this._container),this._options=d?he(h(this._options,d)):this._options,this._options.data&&(this._qr=De()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(p){switch(!0){case/^[0-9]*$/.test(p):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(p):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ne?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(d){if(d){if(typeof d.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ne?this._domCanvas&&d.appendChild(this._domCanvas):this._svg&&d.appendChild(this._svg),this._container=d}}applyExtension(d){if(!d)throw"Extension function should be defined.";this._extension=d,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(d="png"){if(!this._qr)throw"QR code is empty";const p=await this._getElement(d),b=Oe(d);if(!p)return null;if(d.toLowerCase()==="svg"){const f=`<?xml version="1.0" standalone="no"?>\r
116
116
  ${new this._window.XMLSerializer().serializeToString(p)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(f):new Blob([f],{type:b})}return new Promise(f=>{const v=p;if("toBuffer"in v)if(b==="image/png")f(v.toBuffer(b));else if(b==="image/jpeg")f(v.toBuffer(b));else{if(b!=="application/pdf")throw Error("Unsupported extension");f(v.toBuffer(b))}else"toBlob"in v&&v.toBlob(f,b,1)})}async download(d){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let p="png",b="qr";typeof d=="string"?(p=d,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof d=="object"&&d!==null&&(d.name&&(b=d.name),d.extension&&(p=d.extension));const f=await this._getElement(p);if(f)if(p.toLowerCase()==="svg"){let v=new XMLSerializer().serializeToString(f);v=`<?xml version="1.0" standalone="no"?>\r
117
- `+v,C(`data:${Oe(p)};charset=utf-8,${encodeURIComponent(v)}`,`${b}.svg`)}else C(f.toDataURL(Oe(p)),`${b}.${p}`)}}const T=k})(),g.default})())}(Es)),Es.exports}Up();const ul=ye.createContext(void 0);function zp(i){const n=An.c(9),{children:r,baseUrl:s,queryClient:l}=i;let g;n[0]!==s||n[1]!==l?(g={baseUrl:s,queryClient:l},n[0]=s,n[1]=l,n[2]=g):g=n[2];let m;n[3]!==r||n[4]!==l?(m=O.jsx(wu,{client:l,children:r}),n[3]=r,n[4]=l,n[5]=m):m=n[5];let h;return n[6]!==g||n[7]!==m?(h=O.jsx(ul.Provider,{value:g,children:m}),n[6]=g,n[7]=m,n[8]=h):h=n[8],h}function rr(){const i=ye.useContext(ul);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Ts(i){if(typeof i=="string")try{const n=JSON.parse(i);return{message:n.message||i,code:n.code,details:n.details}}catch{return{message:i}}return i instanceof Error?{message:i.message}:{message:"Unbekannter Fehler"}}async function kr(i){const n=await i.text();if(!n)throw new Error(`HTTP ${i.status}: ${i.statusText}`);try{const r=JSON.parse(n);throw r.message?new Error(r.message):r.error?new Error(r.error):new Error(n)}catch{throw new Error(n)}}function qp(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function _r(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Rp()??""}`,...qp()}}async function ll(i){return fetch(i,{method:"GET",headers:await _r()}).then(async n=>(n.status>=400&&await kr(n),n)).then(n=>n.json()).then(n=>n)}async function cl(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await _r()}).then(async r=>(r.status>=400&&await kr(r),r)).then(r=>r.json()).then(r=>r)}async function fl(i,n){const r=await fetch(`${i}/${n}`,{method:"DELETE",headers:await _r()});r.status>=400&&await kr(r)}async function hl(i,n){return fetch(i,{method:"POST",headers:await _r(),body:JSON.stringify(n)}).then(async r=>(r.status>=400&&await kr(r),r)).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Hp(i,n,r){return fetch(n,{method:i,headers:await _r(),body:r?JSON.stringify(r):void 0}).then(async s=>(s.status>=400&&await kr(s),s)).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function dl(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await _r(),body:JSON.stringify(n)}).then(async r=>(r.status>=400&&await kr(r),r)).then(r=>r.status==204?n:r.json()).then(r=>r)}function pl(i,n,r){const s=An.c(13),{baseUrl:l}=rr();let g;if(s[0]!==r||s[1]!==n){let D;s[3]!==r?(D=r?.toString(),s[3]=r,s[4]=D):D=s[4],g=[...n.map(Gp),String(D)],s[0]=r,s[1]=n,s[2]=g}else g=s[2];let m;s[5]!==i||s[6]!==l||s[7]!==r?(m=()=>cl(`${l}${i}`,r),s[5]=i,s[6]=l,s[7]=r,s[8]=m):m=s[8];const h=!!r;let C;return s[9]!==g||s[10]!==m||s[11]!==h?(C={queryKey:g,queryFn:m,enabled:h},s[9]=g,s[10]=m,s[11]=h,s[12]=C):C=s[12],Cu(C)}function Gp(i){return i.toString()}function gl(i,n){const r=An.c(8),{baseUrl:s}=rr();let l;r[0]!==n?(l=[...n.map(Vp)],r[0]=n,r[1]=l):l=r[1];let g;r[2]!==i||r[3]!==s?(g=()=>ll(`${s}${i}`),r[2]=i,r[3]=s,r[4]=g):g=r[4];let m;return r[5]!==l||r[6]!==g?(m={queryKey:l,queryFn:g},r[5]=l,r[6]=g,r[7]=m):m=r[7],Cu(m)}function Vp(i){return i.toString()}function vl(i,n){const r=An.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==n?(g=[...n.map(Zp)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>hl(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let h;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==m?(h={mutationKey:g,mutationFn:m,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Kp)]})},onError(C){Ts(C)}},r[5]=l,r[6]=n,r[7]=g,r[8]=m,r[9]=h):h=r[9],ls(h)}function Kp(i){return i.toString()}function Zp(i){return i.toString()}function Ps(i,n){const r=An.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==n?(g=[...n.map(Jp)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>dl(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let h;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==m?(h={mutationKey:g,mutationFn:m,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Qp)]})},onError(C){Ts(C)}},r[5]=l,r[6]=n,r[7]=g,r[8]=m,r[9]=h):h=r[9],ls(h)}function Qp(i){return i.toString()}function Jp(i){return i.toString()}function ml(i,n){const r=An.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==n?(g=[...n.map(eg)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>fl(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let h;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==m?(h={mutationKey:g,mutationFn:m,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Xp)]})},onError(C){Ts(C)}},r[5]=l,r[6]=n,r[7]=g,r[8]=m,r[9]=h):h=r[9],ls(h)}function Xp(i){return i.toString()}function eg(i){return i.toString()}var Zi={exports:{}},tg=Zi.exports,yl;function ng(){return yl||(yl=1,function(i,n){(function(r,s){i.exports=s()})(tg,function(){var r=1e3,s=6e4,l=36e5,g="millisecond",m="second",h="minute",C="hour",D="day",E="week",N="month",R="quarter",L="year",I="date",$="Invalid Date",H=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ue={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var T=["th","st","nd","rd"],S=k%100;return"["+k+(T[(S-20)%10]||T[S]||T[0])+"]"}},ae=function(k,T,S){var d=String(k);return!d||d.length>=T?k:""+Array(T+1-d.length).join(S)+k},ce={s:ae,z:function(k){var T=-k.utcOffset(),S=Math.abs(T),d=Math.floor(S/60),p=S%60;return(T<=0?"+":"-")+ae(d,2,"0")+":"+ae(p,2,"0")},m:function k(T,S){if(T.date()<S.date())return-k(S,T);var d=12*(S.year()-T.year())+(S.month()-T.month()),p=T.clone().add(d,N),b=S-p<0,f=T.clone().add(d+(b?-1:1),N);return+(-(d+(S-p)/(b?p-f:f-p))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:N,y:L,w:E,d:D,D:I,h:C,m:h,s:m,ms:g,Q:R}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},Q="en",ne={};ne[Q]=ue;var J="$isDayjsObject",V=function(k){return k instanceof De||!(!k||!k[J])},de=function k(T,S,d){var p;if(!T)return Q;if(typeof T=="string"){var b=T.toLowerCase();ne[b]&&(p=b),S&&(ne[b]=S,p=b);var f=T.split("-");if(!p&&f.length>1)return k(f[0])}else{var v=T.name;ne[v]=T,p=v}return!d&&p&&(Q=p),p||!d&&Q},he=function(k,T){if(V(k))return k.clone();var S=typeof T=="object"?T:{};return S.date=k,S.args=arguments,new De(S)},re=ce;re.l=de,re.i=V,re.w=function(k,T){return he(k,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var De=function(){function k(S){this.$L=de(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[J]=!0}var T=k.prototype;return T.parse=function(S){this.$d=function(d){var p=d.date,b=d.utc;if(p===null)return new Date(NaN);if(re.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var f=p.match(H);if(f){var v=f[2]-1||0,A=(f[7]||"0").substring(0,3);return b?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,A)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,A)}}return new Date(p)}(S),this.init()},T.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},T.$utils=function(){return re},T.isValid=function(){return this.$d.toString()!==$},T.isSame=function(S,d){var p=he(S);return this.startOf(d)<=p&&p<=this.endOf(d)},T.isAfter=function(S,d){return he(S)<this.startOf(d)},T.isBefore=function(S,d){return this.endOf(d)<he(S)},T.$g=function(S,d,p){return re.u(S)?this[d]:this.set(p,S)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(S,d){var p=this,b=!!re.u(d)||d,f=re.p(S),v=function(be,_e){var ve=re.w(p.$u?Date.UTC(p.$y,_e,be):new Date(p.$y,_e,be),p);return b?ve:ve.endOf(D)},A=function(be,_e){return re.w(p.toDate()[be].apply(p.toDate("s"),(b?[0,0,0,0]:[23,59,59,999]).slice(_e)),p)},Y=this.$W,G=this.$M,oe=this.$D,le="set"+(this.$u?"UTC":"");switch(f){case L:return b?v(1,0):v(31,11);case N:return b?v(1,G):v(0,G+1);case E:var we=this.$locale().weekStart||0,X=(Y<we?Y+7:Y)-we;return v(b?oe-X:oe+(6-X),G);case D:case I:return A(le+"Hours",0);case C:return A(le+"Minutes",1);case h:return A(le+"Seconds",2);case m:return A(le+"Milliseconds",3);default:return this.clone()}},T.endOf=function(S){return this.startOf(S,!1)},T.$set=function(S,d){var p,b=re.p(S),f="set"+(this.$u?"UTC":""),v=(p={},p[D]=f+"Date",p[I]=f+"Date",p[N]=f+"Month",p[L]=f+"FullYear",p[C]=f+"Hours",p[h]=f+"Minutes",p[m]=f+"Seconds",p[g]=f+"Milliseconds",p)[b],A=b===D?this.$D+(d-this.$W):d;if(b===N||b===L){var Y=this.clone().set(I,1);Y.$d[v](A),Y.init(),this.$d=Y.set(I,Math.min(this.$D,Y.daysInMonth())).$d}else v&&this.$d[v](A);return this.init(),this},T.set=function(S,d){return this.clone().$set(S,d)},T.get=function(S){return this[re.p(S)]()},T.add=function(S,d){var p,b=this;S=Number(S);var f=re.p(d),v=function(G){var oe=he(b);return re.w(oe.date(oe.date()+Math.round(G*S)),b)};if(f===N)return this.set(N,this.$M+S);if(f===L)return this.set(L,this.$y+S);if(f===D)return v(1);if(f===E)return v(7);var A=(p={},p[h]=s,p[C]=l,p[m]=r,p)[f]||1,Y=this.$d.getTime()+S*A;return re.w(Y,this)},T.subtract=function(S,d){return this.add(-1*S,d)},T.format=function(S){var d=this,p=this.$locale();if(!this.isValid())return p.invalidDate||$;var b=S||"YYYY-MM-DDTHH:mm:ssZ",f=re.z(this),v=this.$H,A=this.$m,Y=this.$M,G=p.weekdays,oe=p.months,le=p.meridiem,we=function(_e,ve,B,Z){return _e&&(_e[ve]||_e(d,b))||B[ve].slice(0,Z)},X=function(_e){return re.s(v%12||12,_e,"0")},be=le||function(_e,ve,B){var Z=_e<12?"AM":"PM";return B?Z.toLowerCase():Z};return b.replace(se,function(_e,ve){return ve||function(B){switch(B){case"YY":return String(d.$y).slice(-2);case"YYYY":return re.s(d.$y,4,"0");case"M":return Y+1;case"MM":return re.s(Y+1,2,"0");case"MMM":return we(p.monthsShort,Y,oe,3);case"MMMM":return we(oe,Y);case"D":return d.$D;case"DD":return re.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return we(p.weekdaysMin,d.$W,G,2);case"ddd":return we(p.weekdaysShort,d.$W,G,3);case"dddd":return G[d.$W];case"H":return String(v);case"HH":return re.s(v,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return be(v,A,!0);case"A":return be(v,A,!1);case"m":return String(A);case"mm":return re.s(A,2,"0");case"s":return String(d.$s);case"ss":return re.s(d.$s,2,"0");case"SSS":return re.s(d.$ms,3,"0");case"Z":return f}return null}(_e)||f.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(S,d,p){var b,f=this,v=re.p(d),A=he(S),Y=(A.utcOffset()-this.utcOffset())*s,G=this-A,oe=function(){return re.m(f,A)};switch(v){case L:b=oe()/12;break;case N:b=oe();break;case R:b=oe()/3;break;case E:b=(G-Y)/6048e5;break;case D:b=(G-Y)/864e5;break;case C:b=G/l;break;case h:b=G/s;break;case m:b=G/r;break;default:b=G}return p?b:re.a(b)},T.daysInMonth=function(){return this.endOf(N).$D},T.$locale=function(){return ne[this.$L]},T.locale=function(S,d){if(!S)return this.$L;var p=this.clone(),b=de(S,d,!0);return b&&(p.$L=b),p},T.clone=function(){return re.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},k}(),Oe=De.prototype;return he.prototype=Oe,[["$ms",g],["$s",m],["$m",h],["$H",C],["$W",D],["$M",N],["$y",L],["$D",I]].forEach(function(k){Oe[k[1]]=function(T){return this.$g(T,k[0],k[1])}}),he.extend=function(k,T){return k.$i||(k(T,De,he),k.$i=!0),he},he.locale=de,he.isDayjs=V,he.unix=function(k){return he(1e3*k)},he.en=ne[Q],he.Ls=ne,he.p={},he})}(Zi)),Zi.exports}var rg=ng();const Te=nu(rg);function ig({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:l}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=l[n-1][l[n-1].length-1]-1?l[n-1].length-1:l[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===l[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===l[n].length-2&&s>=l[n][l[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:s}:{levelIndex:n,rowIndex:r+1,cellIndex:s};case"left":return n===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:n-1,rowIndex:l[n-1].length-1,cellIndex:l[n-1][l[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:l[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===l[n].length-1&&s===l[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===l[n][r]-1?{levelIndex:n,rowIndex:r+1,cellIndex:0}:{levelIndex:n,rowIndex:r,cellIndex:s+1};default:return{levelIndex:n,rowIndex:r,cellIndex:s}}}function _l({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:l,size:g}){const m=ig({direction:n,size:g,rowIndex:s,cellIndex:l,levelIndex:r});if(!m)return;const h=i.current?.[m.levelIndex]?.[m.rowIndex]?.[m.cellIndex];h&&(h.disabled||h.getAttribute("data-hidden")||h.getAttribute("data-outside")?_l({controlsRef:i,direction:n,levelIndex:m.levelIndex,cellIndex:m.cellIndex,rowIndex:m.rowIndex,size:g}):h.focus())}function og(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function sg(i){return i.current?.map(n=>n.map(r=>r.length))}function Ms({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:l}){const g=og(l.key);if(g){l.preventDefault();const m=sg(i);_l({controlsRef:i,direction:g,levelIndex:n,rowIndex:r,cellIndex:s,size:m})}}function cn(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD")}function wl(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD HH:mm:ss")}const ag={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},ug=ye.createContext(ag);function ir(){const i=ye.useContext(ug),n=ye.useCallback(g=>g||i.locale,[i.locale]),r=ye.useCallback(g=>typeof g=="number"?g:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ye.useCallback(g=>Array.isArray(g)?g:i.weekendDays,[i.weekendDays]),l=ye.useCallback(g=>typeof g=="string"?g:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:l}}function lg({value:i,type:n,withTime:r}){const s=r?wl:cn;if(n==="range"&&Array.isArray(i)){const l=s(i[0]),g=s(i[1]);return l?g?`${l} – ${g}`:`${l} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function bl({value:i,type:n,name:r,form:s,withTime:l=!1}){return O.jsx("input",{type:"hidden",value:lg({value:i,type:n,withTime:l}),name:r,form:s})}bl.displayName="@mantine/dates/HiddenDatesInput";function xl(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var l=i.length;for(n=0;n<l;n++)i[n]&&(r=xl(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ht(){for(var i,n,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(n=xl(i))&&(s&&(s+=" "),s+=n);return s}var Cl={day:"m_396ce5cb"};const cg=F.createVarsResolver((i,{size:n})=>({day:{"--day-size":F.getSize(n,"day-size")}})),Rs=F.factory((i,n)=>{const r=F.useProps("Day",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,date:D,disabled:E,__staticSelector:N,weekend:R,outside:L,selected:I,renderDay:$,inRange:H,firstInRange:se,lastInRange:ue,hidden:ae,static:ce,highlightToday:Q,attributes:ne,...J}=r,V=F.useStyles({name:N||"Day",classes:Cl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:ne,vars:C,varsResolver:cg,rootSelector:"day"});return O.jsx(F.UnstyledButton,{...V("day",{style:ae?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:E,"data-today":Te(D).isSame(new Date,"day")||void 0,"data-hidden":ae||void 0,"data-highlight-today":Q||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!L&&R||void 0,"data-outside":!E&&L||void 0,"data-selected":!E&&I||void 0,"data-in-range":H&&!E||void 0,"data-first-in-range":se&&!E||void 0,"data-last-in-range":ue&&!E||void 0,"data-static":ce||void 0,unstyled:h,...J,children:$?.(D)||Te(D).date()})});Rs.classes=Cl,Rs.displayName="@mantine/dates/Day";function fg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),l=[];for(let g=0;g<7;g+=1)typeof n=="string"?l.push(Te(s).add(g,"days").locale(i).format(n)):l.push(n(Te(s).add(g,"days").format("YYYY-MM-DD")));return l}var Sl={weekday:"m_18a3eca"};const hg=F.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":F.getFontSize(n),"--wr-spacing":F.getSpacing(n)}})),ks=F.factory((i,n)=>{const r=F.useProps("WeekdaysRow",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,locale:D,firstDayOfWeek:E,weekdayFormat:N,cellComponent:R="th",__staticSelector:L,withWeekNumbers:I,attributes:$,...H}=r,se=F.useStyles({name:L||"WeekdaysRow",classes:Sl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:$,vars:C,varsResolver:hg,rootSelector:"weekdaysRow"}),ue=ir(),ae=fg({locale:ue.getLocale(D),format:N,firstDayOfWeek:ue.getFirstDayOfWeek(E)}).map((ce,Q)=>O.jsx(R,{...se("weekday"),children:ce},Q));return O.jsxs(F.Box,{component:"tr",ref:n,...se("weekdaysRow"),...H,children:[I&&O.jsx(R,{...se("weekday"),children:"#"}),ae]})});ks.classes=Sl,ks.displayName="@mantine/dates/WeekdaysRow";function dg(i,n=1){let r=Te(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function pg(i,n=1){let r=Te(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function gg({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Te(i).subtract(Te(i).date()-1,"day"),l=Te(s.format("YYYY-M-D")),g=l.format("YYYY-MM-DD"),m=l.add(+l.daysInMonth()-1,"day").format("YYYY-MM-DD"),h=dg(m,n),C=[];let D=Te(pg(g,n));for(;Te(D).isBefore(h,"day");){const E=[];for(let N=0;N<7;N+=1)E.push(D.format("YYYY-MM-DD")),D=D.add(1,"day");C.push(E)}if(r&&C.length<6){const E=C[C.length-1],N=E[E.length-1];let R=Te(N).add(1,"day");for(;C.length<6;){const L=[];for(let I=0;I<7;I+=1)L.push(R.format("YYYY-MM-DD")),R=R.add(1,"day");C.push(L)}}return C}function Ls(i,n){return Te(i).format("YYYY-MM")===Te(n).format("YYYY-MM")}function Al(i,n){return n?Te(i).isAfter(Te(n).subtract(1,"day"),"day"):!0}function Dl(i,n){return n?Te(i).isBefore(Te(n).add(1,"day"),"day"):!0}function vg({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:l,hideOutsideDates:g,month:m}){const h=i.flat().filter(E=>Dl(E,r)&&Al(E,n)&&!l?.(E)&&!s?.(E)?.disabled&&(!g||Ls(E,m))),C=h.find(E=>s?.(E)?.selected);if(C)return C;const D=h.find(E=>Te().isSame(E,"date"));return D||h[0]}var Qi={exports:{}},mg=Qi.exports,Ol;function yg(){return Ol||(Ol=1,function(i,n){(function(r,s){i.exports=s()})(mg,function(){var r="day";return function(s,l,g){var m=function(D){return D.add(4-D.isoWeekday(),r)},h=l.prototype;h.isoWeekYear=function(){return m(this).year()},h.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),r);var E,N,R,L,I=m(this),$=(E=this.isoWeekYear(),N=this.$u,R=(N?g.utc:g)().year(E).startOf("year"),L=4-R.isoWeekday(),R.isoWeekday()>4&&(L+=7),R.add(L,r));return I.diff($,"week")+1},h.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var C=h.startOf;h.startOf=function(D,E){var N=this.$utils(),R=!!N.u(E)||E;return N.p(D)==="isoweek"?R?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(D,E)}}})}(Qi)),Qi.exports}var _g=yg();const wg=nu(_g);Te.extend(wg);function bg(i){const n=i.find(r=>Te(r).day()===1);return Te(n).isoWeek()}var El={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const xg={withCellSpacing:!0},Cg=F.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":F.getFontSize(n),"--wn-size":F.getSize(n,"wn-size")}})),Ji=F.factory((i,n)=>{const r=F.useProps("Month",xg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,__staticSelector:D,locale:E,firstDayOfWeek:N,weekdayFormat:R,month:L,weekendDays:I,getDayProps:$,excludeDate:H,minDate:se,maxDate:ue,renderDay:ae,hideOutsideDates:ce,hideWeekdays:Q,getDayAriaLabel:ne,static:J,__getDayRef:V,__onDayKeyDown:de,__onDayClick:he,__onDayMouseEnter:re,__preventFocus:De,__stopPropagation:Oe,withCellSpacing:k,size:T,highlightToday:S,withWeekNumbers:d,attributes:p,...b}=r,f=F.useStyles({name:D||"Month",classes:El,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:p,vars:C,varsResolver:Cg,rootSelector:"month"}),v=ir(),A=gg({month:L,firstDayOfWeek:v.getFirstDayOfWeek(N),consistentWeeks:v.consistentWeeks}),Y=vg({dates:A,minDate:cn(se),maxDate:cn(ue),getDayProps:$,excludeDate:H,hideOutsideDates:ce,month:L}),{resolvedClassNames:G,resolvedStyles:oe}=F.useResolvedStylesApi({classNames:s,styles:m,props:r}),le=A.map((we,X)=>{const be=we.map((_e,ve)=>{const B=!Ls(_e,L),Z=ne?.(_e)||Te(_e).locale(E||v.locale).format("D MMMM YYYY"),W=$?.(_e),K=Te(_e).isSame(Y,"date");return O.jsx("td",{...f("monthCell"),"data-with-spacing":k||void 0,children:O.jsx(Rs,{__staticSelector:D||"Month",classNames:G,styles:oe,unstyled:h,"data-mantine-stop-propagation":Oe||void 0,highlightToday:S,renderDay:ae,date:_e,size:T,weekend:v.getWeekendDays(I).includes(Te(_e).get("day")),outside:B,hidden:ce?B:!1,"aria-label":Z,static:J,disabled:H?.(_e)||!Dl(_e,cn(ue))||!Al(_e,cn(se)),ref:ee=>{ee&&V?.(X,ve,ee)},...W,onKeyDown:ee=>{W?.onKeyDown?.(ee),de?.(ee,{rowIndex:X,cellIndex:ve,date:_e})},onMouseEnter:ee=>{W?.onMouseEnter?.(ee),re?.(ee,_e)},onClick:ee=>{W?.onClick?.(ee),he?.(ee,_e)},onMouseDown:ee=>{W?.onMouseDown?.(ee),De&&ee.preventDefault()},tabIndex:De||!K?-1:0})},_e.toString())});return O.jsxs("tr",{...f("monthRow"),children:[d&&O.jsx("td",{...f("weekNumber"),children:bg(we)}),be]},X)});return O.jsxs(F.Box,{component:"table",...f("month"),size:T,ref:n,...b,children:[!Q&&O.jsx("thead",{...f("monthThead"),children:O.jsx(ks,{__staticSelector:D||"Month",locale:E,firstDayOfWeek:N,weekdayFormat:R,size:T,classNames:G,styles:oe,unstyled:h,withWeekNumbers:d})}),O.jsx("tbody",{...f("monthTbody"),children:le})]})});Ji.classes=El,Ji.displayName="@mantine/dates/Month";var Tl={pickerControl:"m_dc6a3c71"};const Sg=F.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":F.getFontSize(n),"--dpc-size":F.getSize(n,"dpc-size")}})),Xi=F.factory((i,n)=>{const r=F.useProps("PickerControl",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,firstInRange:D,lastInRange:E,inRange:N,__staticSelector:R,selected:L,disabled:I,attributes:$,...H}=r,se=F.useStyles({name:R||"PickerControl",classes:Tl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:$,vars:C,varsResolver:Sg,rootSelector:"pickerControl"});return O.jsx(F.UnstyledButton,{...se("pickerControl"),ref:n,unstyled:h,"data-picker-control":!0,"data-selected":L&&!I||void 0,"data-disabled":I||void 0,"data-in-range":N&&!I&&!L||void 0,"data-first-in-range":D&&!I||void 0,"data-last-in-range":E&&!I||void 0,disabled:I,...H})});Xi.classes=Tl,Xi.displayName="@mantine/dates/PickerControl";function Pl({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"year")||r&&Te(i).isAfter(r,"year"))}function Ag({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const l=i.flat().filter(h=>!Pl({year:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),g=l.find(h=>s?.(h)?.selected);if(g)return g;const m=l.find(h=>Te().isSame(h,"year"));return m||l[0]}function Ml(i){const n=Te(i).year(),r=n-n%10;let s=0;const l=[[],[],[],[]];for(let g=0;g<4;g+=1){const m=g===3?1:3;for(let h=0;h<m;h+=1)l[g].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return l}var Rl={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const Dg={yearsListFormat:"YYYY",withCellSpacing:!0},eo=F.factory((i,n)=>{const r=F.useProps("YearsList",Dg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,decade:D,yearsListFormat:E,locale:N,minDate:R,maxDate:L,getYearControlProps:I,__staticSelector:$,__getControlRef:H,__onControlKeyDown:se,__onControlClick:ue,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:$||"YearsList",classes:Rl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:V,vars:C,rootSelector:"yearsList"}),re=ir(),De=Ml(D),Oe=Ag({years:De,minDate:R,maxDate:L,getYearControlProps:I}),k=De.map((T,S)=>{const d=T.map((p,b)=>{const f=I?.(p),v=Te(p).isSame(Oe,"year");return O.jsx("td",{...he("yearsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Xi,{...he("yearsListControl"),size:J,unstyled:h,"data-mantine-stop-propagation":Q||void 0,disabled:Pl({year:p,minDate:R,maxDate:L}),ref:A=>{A&&H?.(S,b,A)},...f,onKeyDown:A=>{f?.onKeyDown?.(A),se?.(A,{rowIndex:S,cellIndex:b,date:p})},onClick:A=>{f?.onClick?.(A),ue?.(A,p)},onMouseEnter:A=>{f?.onMouseEnter?.(A),ae?.(A,p)},onMouseDown:A=>{f?.onMouseDown?.(A),ce&&A.preventDefault()},tabIndex:ce||!v?-1:0,children:Te(p).locale(re.getLocale(N)).format(E)})},b)});return O.jsx("tr",{...he("yearsListRow"),children:d},S)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("yearsList"),...de,children:O.jsx("tbody",{children:k})})});eo.classes=Rl,eo.displayName="@mantine/dates/YearsList";function kl({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"month")||r&&Te(i).isAfter(r,"month"))}function Og({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const l=i.flat().filter(h=>!kl({month:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),g=l.find(h=>s?.(h)?.selected);if(g)return g;const m=l.find(h=>Te().isSame(h,"month"));return m||l[0]}function Eg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let g=0;g<3;g+=1)r[l].push(Te(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Ll={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Tg={monthsListFormat:"MMM",withCellSpacing:!0},to=F.factory((i,n)=>{const r=F.useProps("MonthsList",Tg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,__staticSelector:D,year:E,monthsListFormat:N,locale:R,minDate:L,maxDate:I,getMonthControlProps:$,__getControlRef:H,__onControlKeyDown:se,__onControlClick:ue,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:D||"MonthsList",classes:Ll,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:V,vars:C,rootSelector:"monthsList"}),re=ir(),De=Eg(E),Oe=Og({months:De,minDate:cn(L),maxDate:cn(I),getMonthControlProps:$}),k=De.map((T,S)=>{const d=T.map((p,b)=>{const f=$?.(p),v=Te(p).isSame(Oe,"month");return O.jsx("td",{...he("monthsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Xi,{...he("monthsListControl"),size:J,unstyled:h,__staticSelector:D||"MonthsList","data-mantine-stop-propagation":Q||void 0,disabled:kl({month:p,minDate:cn(L),maxDate:cn(I)}),ref:A=>{A&&H?.(S,b,A)},...f,onKeyDown:A=>{f?.onKeyDown?.(A),se?.(A,{rowIndex:S,cellIndex:b,date:p})},onClick:A=>{f?.onClick?.(A),ue?.(A,p)},onMouseEnter:A=>{f?.onMouseEnter?.(A),ae?.(A,p)},onMouseDown:A=>{f?.onMouseDown?.(A),ce&&A.preventDefault()},tabIndex:ce||!v?-1:0,children:Te(p).locale(re.getLocale(R)).format(N)})},b)});return O.jsx("tr",{...he("monthsListRow"),children:d},S)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("monthsList"),...de,children:O.jsx("tbody",{children:k})})});to.classes=Ll,to.displayName="@mantine/dates/MonthsList";var Nl={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Pg={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Mg=F.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":F.getSize(n,"dch-control-size"),"--dch-fz":F.getFontSize(n)}})),or=F.factory((i,n)=>{const r=F.useProps("CalendarHeader",Pg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,nextIcon:D,previousIcon:E,nextLabel:N,previousLabel:R,onNext:L,onPrevious:I,onLevelClick:$,label:H,nextDisabled:se,previousDisabled:ue,hasNextLevel:ae,levelControlAriaLabel:ce,withNext:Q,withPrevious:ne,headerControlsOrder:J,__staticSelector:V,__preventFocus:de,__stopPropagation:he,attributes:re,...De}=r,Oe=F.useStyles({name:V||"CalendarHeader",classes:Nl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:re,vars:C,varsResolver:Mg,rootSelector:"calendarHeader"}),k=de?b=>b.preventDefault():void 0,T=ne&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":R,onClick:I,unstyled:h,onMouseDown:k,disabled:ue,"data-disabled":ue||void 0,tabIndex:de||ue?-1:0,"data-mantine-stop-propagation":he||void 0},E||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),S=ye.createElement(F.UnstyledButton,{component:ae?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:ae?$:void 0,unstyled:h,onMouseDown:ae?k:void 0,disabled:!ae,"data-static":!ae||void 0,"aria-label":ce,tabIndex:de||!ae?-1:0,"data-mantine-stop-propagation":he||void 0},H),d=Q&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":N,onClick:L,unstyled:h,onMouseDown:k,disabled:se,"data-disabled":se||void 0,tabIndex:de||se?-1:0,"data-mantine-stop-propagation":he||void 0},D||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),p=J.map(b=>b==="previous"?T:b==="level"?S:b==="next"?d:null);return O.jsx(F.Box,{...Oe("calendarHeader"),ref:n,...De,children:p})});or.classes=Nl,or.displayName="@mantine/dates/CalendarHeader";function Rg(i){const n=Ml(i);return[n[0][0],n[3][0]]}const kg={decadeLabelFormat:"YYYY"},no=F.factory((i,n)=>{const r=F.useProps("DecadeLevel",kg,i),{decade:s,locale:l,minDate:g,maxDate:m,yearsListFormat:h,getYearControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:I,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,nextDisabled:Q,previousDisabled:ne,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,decadeLabelFormat:re,classNames:De,styles:Oe,unstyled:k,__staticSelector:T,__stopPropagation:S,size:d,attributes:p,...b}=r,f=ir(),[v,A]=Rg(s),Y={__staticSelector:T||"DecadeLevel",classNames:De,styles:Oe,unstyled:k,size:d,attributes:p},G=typeof Q=="boolean"?Q:m?!Te(A).endOf("year").isBefore(m):!1,oe=typeof ne=="boolean"?ne:g?!Te(v).startOf("year").isAfter(g):!1,le=(we,X)=>Te(we).locale(l||f.locale).format(X);return O.jsxs(F.Box,{"data-decade-level":!0,size:d,ref:n,...b,children:[O.jsx(or,{label:typeof re=="function"?re(v,A):`${le(v,re)} – ${le(A,re)}`,__preventFocus:I,__stopPropagation:S,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,nextDisabled:G,previousDisabled:oe,hasNextLevel:!1,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,...Y}),O.jsx(eo,{decade:s,locale:l,minDate:g,maxDate:m,yearsListFormat:h,getYearControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:I,__stopPropagation:S,withCellSpacing:L,...Y})]})});no.classes={...eo.classes,...or.classes},no.displayName="@mantine/dates/DecadeLevel";const Lg={yearLabelFormat:"YYYY"},ro=F.factory((i,n)=>{const r=F.useProps("YearLevel",Lg,i),{year:s,locale:l,minDate:g,maxDate:m,monthsListFormat:h,getMonthControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:I,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:ne,previousDisabled:J,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:De,yearLabelFormat:Oe,__staticSelector:k,__stopPropagation:T,size:S,classNames:d,styles:p,unstyled:b,attributes:f,...v}=r,A=ir(),Y={__staticSelector:k||"YearLevel",classNames:d,styles:p,unstyled:b,size:S,attributes:f},G=typeof ne=="boolean"?ne:m?!Te(s).endOf("year").isBefore(m):!1,oe=typeof J=="boolean"?J:g?!Te(s).startOf("year").isAfter(g):!1;return O.jsxs(F.Box,{"data-year-level":!0,size:S,ref:n,...v,children:[O.jsx(or,{label:typeof Oe=="function"?Oe(s):Te(s).locale(l||A.locale).format(Oe),__preventFocus:I,__stopPropagation:T,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:G,previousDisabled:oe,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:De,...Y}),O.jsx(to,{year:s,locale:l,minDate:g,maxDate:m,monthsListFormat:h,getMonthControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:I,__stopPropagation:T,withCellSpacing:L,...Y})]})});ro.classes={...or.classes,...to.classes},ro.displayName="@mantine/dates/YearLevel";const Ng={monthLabelFormat:"MMMM YYYY"},io=F.factory((i,n)=>{const r=F.useProps("MonthLevel",Ng,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:H,__onDayKeyDown:se,__onDayClick:ue,__onDayMouseEnter:ae,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:k,onLevelClick:T,nextDisabled:S,previousDisabled:d,hasNextLevel:p,levelControlAriaLabel:b,withNext:f,withPrevious:v,headerControlsOrder:A,monthLabelFormat:Y,classNames:G,styles:oe,unstyled:le,__staticSelector:we,size:X,static:be,attributes:_e,...ve}=r,B=ir(),Z={__staticSelector:we||"MonthLevel",classNames:G,styles:oe,unstyled:le,size:X,attributes:_e},W=typeof S=="boolean"?S:N?!Te(s).endOf("month").isBefore(N):!1,K=typeof d=="boolean"?d:E?!Te(s).startOf("month").isAfter(E):!1;return O.jsxs(F.Box,{"data-month-level":!0,size:X,ref:n,...ve,children:[O.jsx(or,{label:typeof Y=="function"?Y(s):Te(s).locale(l||B.locale).format(Y),__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:k,onLevelClick:T,nextDisabled:W,previousDisabled:K,hasNextLevel:p,levelControlAriaLabel:b,withNext:f,withPrevious:v,headerControlsOrder:A,...Z}),O.jsx(Ji,{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:H,__onDayKeyDown:se,__onDayClick:ue,__onDayMouseEnter:ae,__preventFocus:J,__stopPropagation:V,static:be,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,...Z})]})});io.classes={...Ji.classes,...or.classes},io.displayName="@mantine/dates/MonthLevel";var Il={levelsGroup:"m_30b26e33"};const sr=F.factory((i,n)=>{const r=F.useProps("LevelsGroup",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,__staticSelector:D,attributes:E,...N}=r,R=F.useStyles({name:D||"LevelsGroup",classes:Il,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:E,vars:C,rootSelector:"levelsGroup"});return O.jsx(F.Box,{ref:n,...R("levelsGroup"),...N})});sr.classes=Il,sr.displayName="@mantine/dates/LevelsGroup";const Ig={numberOfColumns:1},oo=F.factory((i,n)=>{const r=F.useProps("DecadeLevelGroup",Ig,i),{decade:s,locale:l,minDate:g,maxDate:m,yearsListFormat:h,getYearControlProps:C,__onControlClick:D,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,nextDisabled:ae,previousDisabled:ce,headerControlsOrder:Q,classNames:ne,styles:J,unstyled:V,__staticSelector:de,__stopPropagation:he,numberOfColumns:re,levelControlAriaLabel:De,decadeLabelFormat:Oe,size:k,vars:T,attributes:S,...d}=r,p=ye.useRef([]),b=Array(re).fill(0).map((f,v)=>{const A=Te(s).add(v*10,"years").format("YYYY-MM-DD");return O.jsx(no,{size:k,yearsListFormat:h,decade:A,withNext:v===re-1,withPrevious:v===0,decadeLabelFormat:Oe,__onControlClick:D,__onControlMouseEnter:E,__onControlKeyDown:(Y,G)=>Ms({levelIndex:v,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:Y,controlsRef:p}),__getControlRef:(Y,G,oe)=>{Array.isArray(p.current[v])||(p.current[v]=[]),Array.isArray(p.current[v][Y])||(p.current[v][Y]=[]),p.current[v][Y][G]=oe},levelControlAriaLabel:typeof De=="function"?De(A):De,locale:l,minDate:g,maxDate:m,__preventFocus:R,__stopPropagation:he,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,nextDisabled:ae,previousDisabled:ce,getYearControlProps:C,__staticSelector:de||"DecadeLevelGroup",classNames:ne,styles:J,unstyled:V,withCellSpacing:N,headerControlsOrder:Q,attributes:S},v)});return O.jsx(sr,{classNames:ne,styles:J,__staticSelector:de||"DecadeLevelGroup",ref:n,size:k,unstyled:V,attributes:S,...d,children:b})});oo.classes={...sr.classes,...no.classes},oo.displayName="@mantine/dates/DecadeLevelGroup";const $g={numberOfColumns:1},so=F.factory((i,n)=>{const r=F.useProps("YearLevelGroup",$g,i),{year:s,locale:l,minDate:g,maxDate:m,monthsListFormat:h,getMonthControlProps:C,__onControlClick:D,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,headerControlsOrder:J,classNames:V,styles:de,unstyled:he,__staticSelector:re,__stopPropagation:De,numberOfColumns:Oe,levelControlAriaLabel:k,yearLabelFormat:T,size:S,vars:d,attributes:p,...b}=r,f=ye.useRef([]),v=Array(Oe).fill(0).map((A,Y)=>{const G=Te(s).add(Y,"years").format("YYYY-MM-DD");return O.jsx(ro,{size:S,monthsListFormat:h,year:G,withNext:Y===Oe-1,withPrevious:Y===0,yearLabelFormat:T,__stopPropagation:De,__onControlClick:D,__onControlMouseEnter:E,__onControlKeyDown:(oe,le)=>Ms({levelIndex:Y,rowIndex:le.rowIndex,cellIndex:le.cellIndex,event:oe,controlsRef:f}),__getControlRef:(oe,le,we)=>{Array.isArray(f.current[Y])||(f.current[Y]=[]),Array.isArray(f.current[Y][oe])||(f.current[Y][oe]=[]),f.current[Y][oe][le]=we},levelControlAriaLabel:typeof k=="function"?k(G):k,locale:l,minDate:g,maxDate:m,__preventFocus:R,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,getMonthControlProps:C,classNames:V,styles:de,unstyled:he,__staticSelector:re||"YearLevelGroup",withCellSpacing:N,headerControlsOrder:J,attributes:p},Y)});return O.jsx(sr,{classNames:V,styles:de,__staticSelector:re||"YearLevelGroup",ref:n,size:S,unstyled:he,attributes:p,...b,children:v})});so.classes={...ro.classes,...sr.classes},so.displayName="@mantine/dates/YearLevelGroup";const Bg={numberOfColumns:1},ao=F.factory((i,n)=>{const r=F.useProps("MonthLevelGroup",Bg,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__onDayClick:H,__onDayMouseEnter:se,withCellSpacing:ue,highlightToday:ae,withWeekNumbers:ce,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:k,hasNextLevel:T,headerControlsOrder:S,classNames:d,styles:p,unstyled:b,numberOfColumns:f,levelControlAriaLabel:v,monthLabelFormat:A,__staticSelector:Y,__stopPropagation:G,size:oe,static:le,vars:we,attributes:X,...be}=r,_e=ye.useRef([]),ve=Array(f).fill(0).map((B,Z)=>{const W=Te(s).add(Z,"months").format("YYYY-MM-DD");return O.jsx(io,{month:W,withNext:Z===f-1,withPrevious:Z===0,monthLabelFormat:A,__stopPropagation:G,__onDayClick:H,__onDayMouseEnter:se,__onDayKeyDown:(K,ee)=>Ms({levelIndex:Z,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:K,controlsRef:_e}),__getDayRef:(K,ee,Se)=>{Array.isArray(_e.current[Z])||(_e.current[Z]=[]),Array.isArray(_e.current[Z][K])||(_e.current[Z][K]=[]),_e.current[Z][K][ee]=Se},levelControlAriaLabel:typeof v=="function"?v(W):v,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:k,hasNextLevel:T,classNames:d,styles:p,unstyled:b,__staticSelector:Y||"MonthLevelGroup",size:oe,static:le,withCellSpacing:ue,highlightToday:ae,withWeekNumbers:ce,headerControlsOrder:S,attributes:X},Z)});return O.jsx(sr,{classNames:d,styles:p,__staticSelector:Y||"MonthLevelGroup",ref:n,size:oe,attributes:X,...be,children:ve})});ao.classes={...sr.classes,...io.classes},ao.displayName="@mantine/dates/MonthLevelGroup";const $l=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Bl=(i,n)=>{const r=n?wl:cn;return Array.isArray(i)?i.map(r):r(i)};function Ns({type:i,value:n,defaultValue:r,onChange:s,withTime:l=!1}){const g=ye.useRef(i),[m,h,C]=kt.useUncontrolled({value:Bl(n,l),defaultValue:Bl(r,l),finalValue:$l(i),onChange:s});let D=m;return g.current!==i&&(g.current=i,n===void 0&&(D=r!==void 0?r:$l(i),h(D))),[D,h,C]}function Is(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function jg(i){return i===0?"month":i===1?"year":"decade"}function gi(i,n,r){return jg(kt.clamp(Is(i,0),Is(n,0),Is(r,2)))}const Yg={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},uo=F.factory((i,n)=>{const r=F.useProps("Calendar",Yg,i),{vars:s,maxLevel:l,minLevel:g,defaultLevel:m,level:h,onLevelChange:C,date:D,defaultDate:E,onDateChange:N,numberOfColumns:R,columnsToScroll:L,ariaLabels:I,nextLabel:$,previousLabel:H,onYearSelect:se,onMonthSelect:ue,onYearMouseEnter:ae,onMonthMouseEnter:ce,headerControlsOrder:Q,__updateDateOnYearSelect:ne,__updateDateOnMonthSelect:J,__setDateRef:V,__setLevelRef:de,firstDayOfWeek:he,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:k,renderDay:T,hideOutsideDates:S,hideWeekdays:d,getDayAriaLabel:p,monthLabelFormat:b,nextIcon:f,previousIcon:v,__onDayClick:A,__onDayMouseEnter:Y,withCellSpacing:G,highlightToday:oe,withWeekNumbers:le,monthsListFormat:we,getMonthControlProps:X,yearLabelFormat:be,yearsListFormat:_e,getYearControlProps:ve,decadeLabelFormat:B,classNames:Z,styles:W,unstyled:K,minDate:ee,maxDate:Se,locale:u,__staticSelector:c,size:_,__preventFocus:M,__stopPropagation:U,onNextDecade:te,onPreviousDecade:Ae,onNextYear:Ce,onPreviousYear:Pe,onNextMonth:me,onPreviousMonth:Re,static:Ie,enableKeyboardNavigation:ke,attributes:Xe,...Qe}=r,{resolvedClassNames:it,resolvedStyles:Tt}=F.useResolvedStylesApi({classNames:Z,styles:W,props:r}),[pt,ot]=kt.useUncontrolled({value:h?gi(h,g,l):void 0,defaultValue:m?gi(m,g,l):void 0,finalValue:gi(void 0,g,l),onChange:C}),[Tn,At]=Ns({type:"default",value:cn(D),defaultValue:cn(E),onChange:N});ye.useImperativeHandle(V,()=>ze=>{At(ze)}),ye.useImperativeHandle(de,()=>ze=>{ot(ze)});const Pn={__staticSelector:c||"Calendar",styles:Tt,classNames:it,unstyled:K,size:_,attributes:Xe},Dt=L||R||1,Wt=new Date,Mn=ee&&Te(Wt).isAfter(ee)?ee:Te(Wt).format("YYYY-MM-DD"),yt=Tn||Mn,fn=()=>{const ze=Te(yt).add(Dt,"month").format("YYYY-MM-DD");me?.(ze),At(ze)},hn=()=>{const ze=Te(yt).subtract(Dt,"month").format("YYYY-MM-DD");Re?.(ze),At(ze)},Ut=()=>{const ze=Te(yt).add(Dt,"year").format("YYYY-MM-DD");Ce?.(ze),At(ze)},It=()=>{const ze=Te(yt).subtract(Dt,"year").format("YYYY-MM-DD");Pe?.(ze),At(ze)},zt=()=>{const ze=Te(yt).add(10*Dt,"year").format("YYYY-MM-DD");te?.(ze),At(ze)},qt=()=>{const ze=Te(yt).subtract(10*Dt,"year").format("YYYY-MM-DD");Ae?.(ze),At(ze)},Jt=ye.useRef(null);ye.useEffect(()=>{if(!ke||Ie)return;const ze=ut=>{if(!Jt.current?.contains(document.activeElement))return;const $t=ut.ctrlKey||ut.metaKey,Xt=ut.shiftKey;switch(ut.key){case"ArrowUp":$t&&Xt?(ut.preventDefault(),qt()):$t&&(ut.preventDefault(),It());break;case"ArrowDown":$t&&Xt?(ut.preventDefault(),zt()):$t&&(ut.preventDefault(),Ut());break;case"y":case"Y":pt==="month"&&(ut.preventDefault(),ot("year"));break}};return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[ke,Ie,pt,Ut,It,zt,qt]);const Ht=ze=>{Jt.current=ze,typeof n=="function"?n(ze):n&&(n.current=ze)};return O.jsxs(F.Box,{ref:Ht,size:_,"data-calendar":!0,...Qe,children:[pt==="month"&&O.jsx(ao,{month:yt,minDate:ee,maxDate:Se,firstDayOfWeek:he,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:k,renderDay:T,hideOutsideDates:S,hideWeekdays:d,getDayAriaLabel:p,onNext:fn,onPrevious:hn,hasNextLevel:l!=="month",onLevelClick:()=>ot("year"),numberOfColumns:R,locale:u,levelControlAriaLabel:I?.monthLevelControl,nextLabel:I?.nextMonth??$,nextIcon:f,previousLabel:I?.previousMonth??H,previousIcon:v,monthLabelFormat:b,__onDayClick:A,__onDayMouseEnter:Y,__preventFocus:M,__stopPropagation:U,static:Ie,withCellSpacing:G,highlightToday:oe,withWeekNumbers:le,headerControlsOrder:Q,...Pn}),pt==="year"&&O.jsx(so,{year:yt,numberOfColumns:R,minDate:ee,maxDate:Se,monthsListFormat:we,getMonthControlProps:X,locale:u,onNext:Ut,onPrevious:It,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>ot("decade"),levelControlAriaLabel:I?.yearLevelControl,nextLabel:I?.nextYear??$,nextIcon:f,previousLabel:I?.previousYear??H,previousIcon:v,yearLabelFormat:be,__onControlMouseEnter:ce,__onControlClick:(ze,ut)=>{J&&At(ut),ot(gi("month",g,l)),ue?.(ut)},__preventFocus:M,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Pn}),pt==="decade"&&O.jsx(oo,{decade:yt,minDate:ee,maxDate:Se,yearsListFormat:_e,getYearControlProps:ve,locale:u,onNext:zt,onPrevious:qt,numberOfColumns:R,nextLabel:I?.nextDecade??$,nextIcon:f,previousLabel:I?.previousDecade??H,previousIcon:v,decadeLabelFormat:B,__onControlMouseEnter:ae,__onControlClick:(ze,ut)=>{ne&&At(ut),ot(gi("year",g,l)),se?.(ut)},__preventFocus:M,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Pn})]})});uo.classes={...oo.classes,...so.classes,...ao.classes},uo.displayName="@mantine/dates/Calendar";function Fg(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:m,previousIcon:h,date:C,defaultDate:D,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:I,previousLabel:$,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:ue,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:k,__setLevelRef:T,withWeekNumbers:S,headerControlsOrder:d,firstDayOfWeek:p,weekdayFormat:b,weekendDays:f,getDayProps:v,excludeDate:A,renderDay:Y,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:le,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:B,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:u,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:m,previousIcon:h,date:C,defaultDate:D,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:I,previousLabel:$,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:ue,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:k,withWeekNumbers:S,headerControlsOrder:d,firstDayOfWeek:p,weekdayFormat:b,weekendDays:f,getDayProps:v,excludeDate:A,renderDay:Y,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:le,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:B,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:u},others:c}}function Wg(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Te(n).format("YYYY-MM-DD")}function Ug({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Te(i).isAfter(n,"date")||r&&Te(i).isBefore(r,"date"))}const zg={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},lo=F.factory((i,n)=>{const r=F.useInputProps("DateInput",zg,i),{inputProps:s,wrapperProps:l,value:g,defaultValue:m,onChange:h,clearable:C,clearButtonProps:D,popoverProps:E,getDayProps:N,locale:R,valueFormat:L,dateParser:I,minDate:$,maxDate:H,fixOnBlur:se,onFocus:ue,onBlur:ae,onClick:ce,onKeyDown:Q,readOnly:ne,name:J,form:V,rightSection:de,unstyled:he,classNames:re,styles:De,allowDeselect:Oe,date:k,defaultDate:T,onDateChange:S,getMonthControlProps:d,getYearControlProps:p,...b}=r,f=ye.useRef(null),v=ye.useRef(null),[A,Y]=ye.useState(!1),{calendarProps:G,others:oe}=Fg(b),le=ir(),X=I||(Ce=>{const Pe=Te(Ce,L,le.getLocale(R)).toDate();return Number.isNaN(Pe.getTime())?Wg(Ce):Te(Pe).format("YYYY-MM-DD")}),be=Oe!==void 0?Oe:C,_e=Ce=>Ce?Te(Ce).locale(le.getLocale(R)).format(L):"",[ve,B,Z]=Ns({type:"default",value:g,defaultValue:m,onChange:h}),[W,K]=Ns({type:"default",value:k,defaultValue:m||T,onChange:S});ye.useEffect(()=>{Z&&g!==null&&K(g)},[Z,g]);const[ee,Se]=ye.useState(_e(ve));ye.useEffect(()=>{Se(_e(ve))},[le.getLocale(R)]);const u=Ce=>{const Pe=Ce.currentTarget.value;if(Se(Pe),Y(!0),Pe.trim()===""&&C)B(null);else{const me=X(Pe);me&&Ug({date:me,minDate:$,maxDate:H})&&(B(me),K(me))}},c=Ce=>{ae?.(Ce),Y(!1),se&&Se(_e(ve))},_=Ce=>{ue?.(Ce),Y(!0)},M=Ce=>{ce?.(Ce),Y(!0)},U=Ce=>{Ce.key==="Escape"&&Y(!1),Q?.(Ce)},te=Ce=>({...N?.(Ce),selected:Te(ve).isSame(Ce,"day"),onClick:Pe=>{N?.(Ce).onClick?.(Pe);const me=C&&be&&Te(ve).isSame(Ce,"day")?null:Ce;B(me),!Z&&me&&Se(_e(me)),Y(!1)}}),Ae=de||(C&&ve&&!ne?O.jsx(F.CloseButton,{variant:"transparent",onMouseDown:Ce=>Ce.preventDefault(),tabIndex:-1,onClick:()=>{B(null),!Z&&Se(""),Y(!1)},unstyled:he,size:s.size||"sm",...D}):null);return kt.useDidUpdate(()=>{ve!==void 0&&!A&&Se(_e(ve))},[ve]),kt.useClickOutside(()=>Y(!1),void 0,[f.current,v.current]),O.jsxs(O.Fragment,{children:[O.jsx(F.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:f,children:O.jsxs(F.Popover,{opened:A,trapFocus:!1,position:"bottom-start",disabled:ne,withRoles:!1,unstyled:he,...E,children:[O.jsx(F.Popover.Target,{children:O.jsx(F.Input,{"data-dates-input":!0,"data-read-only":ne||void 0,autoComplete:"off",ref:n,value:ee,onChange:u,onBlur:c,onFocus:_,onClick:M,onKeyDown:U,readOnly:ne,rightSection:Ae,...s,...oe,__staticSelector:"DateInput"})}),O.jsx(F.Popover.Dropdown,{onMouseDown:Ce=>Ce.preventDefault(),"data-dates-dropdown":!0,ref:v,children:O.jsx(uo,{__staticSelector:"DateInput",...G,classNames:re,styles:De,unstyled:he,__preventFocus:!0,minDate:$,maxDate:H,locale:R,getDayProps:te,size:s.size,date:W,onDateChange:K,getMonthControlProps:Ce=>({selected:typeof ve=="string"?Ls(Ce,ve):!1,...d?.(Ce)}),getYearControlProps:Ce=>({selected:typeof ve=="string"?Te(Ce).isSame(ve,"year"):!1,...p?.(Ce)}),attributes:l.attributes})})]})}),O.jsx(bl,{name:J,form:V,value:ve,type:"default"})]})});lo.classes={...F.Input.classes,...uo.classes},lo.displayName="@mantine/dates/DateInput";function jl(i){const n=An.c(47),{fields:r,onClose:s,queryKey:l,apiPath:g,steps:m,onCreated:h}=i,[C,D]=ye.useState(0),[E,N]=ye.useState(!1),[R,L]=ye.useState(),{mutateAsync:I,isError:$,error:H,isPending:se}=vl(g,l),{mutateAsync:ue,isPending:ae}=Ps(g,l),ce=se||ae;let Q;n[0]!==r?(Q=new Set(r.filter(Kg).map(Vg)),n[0]=r,n[1]=Q):Q=n[1];let ne;n[2]!==Q?(ne=[...Q],n[2]=Q,n[3]=ne):ne=n[3];const J=ne;let V;n[4]!==r?(V=r.reduce(Gg,{}),n[4]=r,n[5]=V):V=n[5];let de;n[6]!==r?(de=r.filter(Hg).reduce(qg,{}),n[6]=r,n[7]=de):de=n[7];let he;n[8]!==V||n[9]!==de?(he={mode:"uncontrolled",initialValues:V,validate:de},n[8]=V,n[9]=de,n[10]=he):he=n[10];const re=tu.useForm(he);let De;n[11]!==re||n[12]!==R?(De=function(v){const A=re.getValues();return v.conditional&&!v.conditional(A)?null:O.jsxs(ye.Fragment,{children:[(v.type===void 0||v.type=="text")&&O.jsx(F.TextInput,{label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id),type:v.id.includes("email")?"email":void 0,required:v.required},re.key(v.id)),v.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id),required:v.required},re.key(v.id)),v.type==="date"&&O.jsx(lo,{label:v.column.title,placeholder:v.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(v.id),required:v.required},re.key(v.id)),v.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:v.column.title,...re.getInputProps(v.id,{type:"checkbox"}),required:v.required},re.key(v.id)),v.type==="textarea"&&O.jsx(F.Textarea,{label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id),minRows:3,autosize:!0,required:v.required},re.key(v.id)),v.type==="custom"&&v.render&&v.render({...re.getValues(),...R&&{id:R}},re.setValues,N,{error:re.getInputProps(v.id).error,required:v.required})]},v.id)},n[11]=re,n[12]=R,n[13]=De):De=n[13];const Oe=De;let k;n[14]!==H?.message||n[15]!==H?.name||n[16]!==$?(k=$&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[14]=H?.message,n[15]=H?.name,n[16]=$,n[17]=k):k=n[17];let T;n[18]!==C||n[19]!==I||n[20]!==re||n[21]!==$||n[22]!==s||n[23]!==h||n[24]!==R||n[25]!==J.length||n[26]!==ue?(T=re.onSubmit(async f=>{if(R)await ue({...f,id:R});else{const v=await I(f);L(v.id),h?.(v.id)}J.length&&C<J.length-1?$||D(C+1):$||(re.setInitialValues(f),re.reset(),s())}),n[18]=C,n[19]=I,n[20]=re,n[21]=$,n[22]=s,n[23]=h,n[24]=R,n[25]=J.length,n[26]=ue,n[27]=T):T=n[27];let S;n[28]!==C||n[29]!==r||n[30]!==Oe||n[31]!==m||n[32]!==J?(S=J.length?O.jsx(F.Stepper,{active:C,size:"sm",children:J.map(f=>O.jsx(F.Stepper.Step,{...m&&m[f-1]?{label:m[f-1].label}:{},children:r.filter(v=>v.step===f).map(v=>Oe(v))},f))}):r.map(f=>Oe(f)),n[28]=C,n[29]=r,n[30]=Oe,n[31]=m,n[32]=J,n[33]=S):S=n[33];let d;n[34]!==C||n[35]!==E||n[36]!==ce||n[37]!==s||n[38]!==J.length?(d=!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>J.length?C===0?s():D(C-1):s(),variant:"outline",children:J.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:ce,children:J.length?C===J.length-1?"Speichern":"Weiter":"Speichern"})]}),n[34]=C,n[35]=E,n[36]=ce,n[37]=s,n[38]=J.length,n[39]=d):d=n[39];let p;n[40]!==d||n[41]!==T||n[42]!==S?(p=O.jsxs("form",{onSubmit:T,children:[S,d]}),n[40]=d,n[41]=T,n[42]=S,n[43]=p):p=n[43];let b;return n[44]!==p||n[45]!==k?(b=O.jsxs(O.Fragment,{children:[k,p]}),n[44]=p,n[45]=k,n[46]=b):b=n[46],b}function qg(i,n){return i[n.id]=(r,s)=>n.conditional&&!n.conditional(s)||r?null:"Pflichtfeld",i}function Hg(i){return i.required}function Gg(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function Vg(i){return i.step}function Kg(i){return typeof i.step=="number"}var[Zg,$s]=F.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Yl=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:g,resetColumnsOrder:m,resetColumnsToggle:h,setColumnWidth:C,setMultipleColumnWidths:D,resetColumnsWidth:E}=i,[N,R]=ye.useState(""),[L,I]=ye.useState("");return O.jsx(Zg,{value:{sourceColumn:N,setSourceColumn:R,targetColumn:L,setTargetColumn:I,columnsToggle:l,setColumnsToggle:g,swapColumns:()=>{if(!r||!s||!N||!L)return;let $=r.indexOf(N),H=r.indexOf(L);if($!==-1&&H!==-1){let se=r.splice($,1)[0];r.splice(H,0,se),s([...r])}},resetColumnsOrder:m,resetColumnsToggle:h,setColumnWidth:C,setMultipleColumnWidths:D,resetColumnsWidth:E},children:n})};function Qg(){return O.jsx("tr",{className:"mantine-datatable-empty-row",children:O.jsx("td",{})})}function Jg(){return O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),O.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),O.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),O.jsx("path",{d:"M3 3l18 18"})]})}function Xg({icon:i,text:n,active:r,children:s}){return O.jsx(F.Center,{className:"mantine-datatable-empty-state","data-active":r||void 0,children:s||O.jsxs(O.Fragment,{children:[i||O.jsx("div",{className:"mantine-datatable-empty-state-icon",children:O.jsx(Jg,{})}),O.jsx(F.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var e1=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V)&&J.push(V)}),ne.forEach(V=>{J.includes(V.accessor)||J.push(V.accessor)}),J}function l(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V.accessor)&&J.push(V)}),ne.forEach(V=>{J.find(de=>de.accessor===V.accessor)||J.push({accessor:V.accessor,defaultToggle:V.defaultToggle||!0,toggleable:V.toggleable,toggled:V.defaultToggle===void 0?!0:V.defaultToggle})}),J}function g(Q,ne){let J=[];return Q.forEach(V=>{let de=Object.keys(V)[0];ne.find(he=>he.accessor===de)&&J.push(V)}),ne.forEach(V=>{let de=V.accessor;if(!J.find(he=>Object.keys(he)[0]===de)){let he={};he[de]="",J.push(he)}}),J}function m(){let[Q,ne]=kt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?D:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=s(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[V,J]}function h(){let[Q,ne]=kt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?N:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=l(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[l(Q,n),J]}function C(){let[Q,ne]=kt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=g(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[g(Q,n),J]}let D=n&&n.map(Q=>Q.accessor)||[],E=n&&n.map(Q=>({[Q.accessor]:Q.width??"initial"}))||[],N=n&&n.map(Q=>({accessor:Q.accessor,defaultToggle:Q.defaultToggle||!0,toggleable:Q.toggleable,toggled:Q.defaultToggle===void 0?!0:Q.defaultToggle})),[R,L]=m(),[I,$]=h(),[H,se]=C(),ue=()=>L(D),ae=()=>{$(N)},ce=()=>se(E);return{effectiveColumns:ye.useMemo(()=>R?R.map(Q=>n.find(ne=>ne.accessor===Q)).map(Q=>({...Q,hidden:Q?.hidden||!I.find(ne=>ne.accessor===Q?.accessor)?.toggled})).map(Q=>({...Q,width:H.find(ne=>ne[Q?.accessor])?.[Q?.accessor]})):n,[n,R,I,H]),setColumnsOrder:L,columnsOrder:R,resetColumnsOrder:ue,columnsToggle:I,setColumnsToggle:$,resetColumnsToggle:ae,columnsWidth:H,setColumnsWidth:se,setColumnWidth:(Q,ne)=>{let J=H.map(V=>V[Q]?{[Q]:ne}:V);se(J)},setMultipleColumnWidths:Q=>{let ne=H.map(J=>{let V=Object.keys(J)[0],de=Q.find(he=>he.accessor===V);return de?{[V]:de.width}:J});se(ne)},resetColumnsWidth:ce}},Fl=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function Wl(i){let n=ye.useRef(i);return n.current=i,n}var Ul="--mantine-datatable-header-height",zl="--mantine-datatable-footer-height",ql="--mantine-datatable-selection-column-width",Hl="--mantine-datatable-last-row-border-bottom";function En(i,n,r){i?.style.setProperty(n,r)}function Bs(i){let n=i.borderBoxSize?.[0]||i.contentBoxSize?.[0];return n?{width:n.inlineSize,height:n.blockSize}:{width:i.contentRect.width,height:i.contentRect.height}}function js(i,n,r){if(i){let s=new ResizeObserver(l=>{let g=l[0];g&&n(Bs(g))});return s.observe(i),()=>{s.disconnect(),r()}}}function t1({scrollCallbacks:i,withRowBorders:n}){let r={root:ye.useRef(null),table:ye.useRef(null),scrollViewport:ye.useRef(null),header:ye.useRef(null),footer:ye.useRef(null),selectionColumnHeader:ye.useRef(null)},{root:s,table:l,scrollViewport:g,header:m,footer:h,selectionColumnHeader:C}=r,D=Wl({withRowBorders:n}),E=Wl(i),N=ye.useRef(()=>{}),R=ye.useRef(()=>{}),L=ye.useCallback(I=>{E.current.onScroll?.(I),N.current()},[]);return ye.useEffect(()=>js(m.current,I=>{En(s.current,Ul,`${I.height}px`)},()=>En(s.current,Ul,"0")),[m.current]),ye.useEffect(()=>js(h.current,I=>{En(s.current,zl,`${I.height}px`)},()=>En(s.current,zl,"0")),[h.current]),ye.useEffect(()=>js(C.current,I=>{En(s.current,ql,`${I.width}px`)},()=>En(s.current,ql,"0")),[C.current]),Fl(()=>{if(typeof window===void 0)return;let I={top:!0,bottom:!0,left:!0,right:!0},$={width:0,height:0},H={width:0,height:0};function se(ne,J){let V=I[ne];return I[ne]=J,En(s.current,`--mantine-datatable-${ne}-shadow-opacity`,J?"0":"1"),V}function ue(){let ne=$.height-H.height,J=ne<0;En(s.current,"--mantine-datatable-footer-position",J?"relative":"sticky"),En(s.current,"--mantine-datatable-footer-bottom",J?`${ne}px`:"0")}function ae(){D.current.withRowBorders&&$.height<H.height?En(s.current,Hl,`${F.rem("1px")} solid var(--mantine-datatable-border-color)`):En(s.current,Hl,"unset")}R.current=ae;function ce(){let ne=E.current,J=g.current?.scrollTop??0,V=g.current?.scrollLeft??0,de=J===0,he=$.height-J-H.height<1,re=se("top",de),De=se("bottom",he);de&&de!==re&&ne.onScrollToTop?.(),he&&he!==De&&ne.onScrollToBottom?.();let Oe=V===0,k=$.width-V-H.width<1,T=se("left",Oe),S=se("right",k);Oe&&Oe!==T&&ne.onScrollToLeft?.(),k&&k!==S&&ne.onScrollToRight?.()}N.current=ce;let Q=new ResizeObserver(ne=>{for(let J of ne)switch(J.target.tagName){case"TABLE":{$=Bs(J);break}case"DIV":{H=Bs(J);break}}ce(),ue(),ae()});return Q.observe(l.current),Q.observe(g.current),()=>{Q.disconnect()}},[]),Fl(()=>{R.current()},[n]),{refs:r,onScroll:L}}function n1(i){let[n,r]=ye.useState(null),s=i?.join(":")||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function r1(i,n){let r=()=>{n(i.map(l=>l.matches))},s=i.map(l=>{try{return l.addEventListener("change",r),()=>l.removeEventListener("change",r)}catch{return l.addListener(r),()=>l.removeListener(r)}});return()=>{s.forEach(l=>l())}}function i1(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function o1(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=ye.useState(r?n:i1(i,n)),g=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return g.current=i.map(m=>window.matchMedia(m)),l(g.current.map(m=>m.matches)),r1(g.current,m=>{l(m)})},[i]),s}function s1(i){let n=F.useMantineTheme(),r=ye.useMemo(()=>i.map(l=>(typeof l=="function"?l(n):l)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return o1(r,s)}function co(i){let n=F.useMantineTheme(),r=typeof i=="function"?i(n):i;return kt.useMediaQuery(r||"",!0)}function Ys(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function a1(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Fs(i,n){return i.filter((r,s,l)=>s===l.findIndex(g=>n(r)===n(g)))}function Gl(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function Nt(i,n){return typeof n=="string"?Gl(i,n):n(i)}function u1({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:h,allowMultiple:C,initiallyExpanded:D}=i;n&&h==="always"?s=n.map(E=>Nt(E,r)):D&&(s=n.filter((E,N)=>D({record:E,index:N})).map(E=>Nt(E,r)),C||(s=[s[0]]))}let l,g,m=ye.useState(s);if(i){let{expandable:h,trigger:C,allowMultiple:D,collapseProps:E,content:N}=i;i.expanded?{recordIds:l,onRecordIdsChange:g}=i.expanded:[l,g]=m;let R=L=>g?.(l.filter(I=>I!==Nt(L,r)));return{expandOnClick:C!=="always"&&C!=="never",isRowExpanded:L=>C==="always"?!0:l.includes(Nt(L,r)),isExpandable:({record:L,index:I})=>h?h({record:L,index:I}):!0,expandRow:L=>{let I=Nt(L,r);g?.(D?[...l,I]:[I])},collapseRow:R,collapseProps:E,content:({record:L,index:I})=>()=>N({record:L,index:I,collapse:()=>R(L)})}}}function l1(i,n){let[r,s]=ye.useState(i),[l,g]=ye.useState(i),m=kt.useTimeout(()=>s(!0),0),h=kt.useTimeout(()=>g(!1),n||200);return ye.useEffect(()=>{i?(h.clear(),g(!0),m.start()):(m.clear(),s(!1),h.start())},[m,h,i]),{expanded:r,visible:l}}var Ws="mantine-datatable-nowrap",Us="mantine-datatable-ellipsis",Lr="mantine-datatable-pointer-cursor",Vl="mantine-datatable-context-menu-cursor",c1="mantine-datatable-text-selection-disabled",fo="mantine-datatable-text-align-left",ho="mantine-datatable-text-align-center",po="mantine-datatable-text-align-right";function f1({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:g,textAlign:m,width:h}){return co(r)?O.jsx(F.TableTh,{className:ht({[Ws]:l||g,[Us]:g,[fo]:m==="left",[ho]:m==="center",[po]:m==="right"},i),style:[{width:h,minWidth:h,maxWidth:h},n],children:s}):null}function h1({shadowVisible:i}){return O.jsx(F.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}function d1({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:g,ref:m}){return O.jsx(F.TableTfoot,{ref:m,className:ht("mantine-datatable-footer",i),style:n,children:O.jsxs(F.TableTr,{children:[l&&O.jsx(h1,{shadowVisible:g}),r.map(({hidden:h,...C})=>{if(h)return null;let{accessor:D,visibleMediaQuery:E,textAlign:N,width:R,footer:L,footerClassName:I,footerStyle:$,noWrap:H,ellipsis:se}={...s,...C};return O.jsx(f1,{className:I,style:$,visibleMediaQuery:E,textAlign:N,width:R,title:L,noWrap:H,ellipsis:se},D)})]})})}function p1({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:g}}){let m=ye.useMemo(()=>n.map(({visibleMediaQuery:D})=>D),[n]),h=s1(m),C=ye.useMemo(()=>n.filter(({hidden:D},E)=>!D&&h?.[E]).length,[n,h]);return C>0?O.jsx(F.TableTh,{colSpan:C,className:ht("mantine-datatable-column-group-header-cell",{[fo]:s==="left",[ho]:s==="center",[po]:s==="right"},l),style:g,children:r??Ys(i)}):null}function g1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function v1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function m1({children:i,isActive:n,filterPopoverProps:r,filterPopoverDisableClickOutside:s}){let[l,{close:g,toggle:m}]=kt.useDisclosure(!1),h=n?v1:g1,C=kt.useClickOutside(g);return s&&(C=void 0),O.jsxs(F.Popover,{withArrow:!0,shadow:"md",opened:l,onClose:g,trapFocus:!0,...r,children:[O.jsx(F.PopoverTarget,{children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:D=>{D.preventDefault(),m()},onKeyDown:D=>D.stopPropagation(),children:O.jsx(h,{})})}),O.jsx(F.PopoverDropdown,{ref:C,onClick:D=>D.stopPropagation(),onKeyDown:D=>D.stopPropagation(),children:typeof i=="function"?i({close:g}):i})]})}var y1=i=>{let{accessor:n,columnRef:r}=i,[s,l]=ye.useState(!1),g=ye.useRef(0),m=ye.useRef({current:0,next:0}),{setMultipleColumnWidths:h}=$s(),C=ye.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let N=r.current,R=N.nextElementSibling;for(;R;){let ae=R.getAttribute("data-accessor");if(ae&&ae!=="__selection__")break;R=R.nextElementSibling}if(!R)return;let L=R.getAttribute("data-accessor");if(!L)return;let I=L==="__selection__";l(!0),g.current=E.clientX;let $=N.offsetWidth,H=R.offsetWidth;m.current={current:$,next:H};let se=ae=>{if(!r.current)return;let ce=r.current,Q=ce.nextElementSibling;if(!Q)return;let ne=ae.clientX-g.current,J=50,V=m.current.current-J,de=m.current.next-J,he=Math.max(-V,Math.min(ne,de)),re=m.current.current+he,De=m.current.next-he;ce.style.width=`${re}px`,Q.style.width=`${De}px`,ce.style.minWidth=`${re}px`,ce.style.maxWidth=`${re}px`,Q.style.minWidth=`${De}px`,Q.style.maxWidth=`${De}px`},ue=()=>{if(!r.current)return;let ae=r.current,ce=ae.nextElementSibling;l(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Q=parseInt(ae.style.width)||ae.offsetWidth,ne=ce?parseInt(ce.style.width)||ce.offsetWidth:0,J=[{accessor:n,width:`${Q}px`}];if(ce&&!I){let V=ce.getAttribute("data-accessor");V&&J.push({accessor:V,width:`${ne}px`})}setTimeout(()=>{h(J)},0),document.removeEventListener("mousemove",se),document.removeEventListener("mouseup",ue)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",se),document.addEventListener("mouseup",ue)},[n,h]),D=ye.useCallback(()=>{if(!r.current)return;let E=r.current,N=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let R=[{accessor:n,width:"initial"}];if(N){N.style.width="",N.style.minWidth="",N.style.maxWidth="";let L=N.getAttribute("data-accessor");L&&L!=="__selection__"&&R.push({accessor:L,width:"initial"})}setTimeout(()=>{h(R)},0)},[n,h]);return O.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:C,onDoubleClick:D,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};function _1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12 5l0 14"}),O.jsx("path",{d:"M16 9l-4 -4"}),O.jsx("path",{d:"M8 9l4 -4"})]})}function w1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 7l4 -4l4 4"}),O.jsx("path",{d:"M8 17l4 4l4 -4"}),O.jsx("path",{d:"M12 3l0 18"})]})}function b1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function x1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M18 6l-12 12"}),O.jsx("path",{d:"M6 6l12 12"})]})}function C1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:l,sortable:g,draggable:m,toggleable:h,resizable:C,sortIcons:D,textAlign:E,width:N,sortStatus:R,onSortStatusChange:L,filter:I,filterPopoverProps:$,filterPopoverDisableClickOutside:H,filtering:se,sortKey:ue}){let{setSourceColumn:ae,setTargetColumn:ce,swapColumns:Q,setColumnsToggle:ne}=$s(),[J,V]=ye.useState(!1),de=ye.useRef(null);if(!co(s))return null;let he=l??Ys(r),re=typeof he=="string"?he:void 0,De=g&&L?b=>{b?.defaultPrevented||L({sortKey:ue,columnAccessor:r,direction:R?.columnAccessor===r?R.direction==="asc"?"desc":"asc":R?.direction??"asc"})}:void 0,Oe=b=>{b.stopPropagation(),ae(r),V(!1)},k=b=>{b.preventDefault(),ce(r),V(!0)},T=()=>{ce(r),V(!1),Q()},S=()=>{V(!0)},d=()=>{V(!1)},p=b=>{b.stopPropagation(),ne(f=>f.map(v=>v.accessor===r?{...v,toggled:!1}:v))};return O.jsxs(F.TableTh,{"data-accessor":r,className:ht({"mantine-datatable-header-cell-sortable":g,"mantine-datatable-header-cell-toggleable":h,"mantine-datatable-header-cell-resizable":C},i),style:[{width:N,...C?{minWidth:"1px"}:{minWidth:N,maxWidth:N}},n],role:g?"button":void 0,tabIndex:g?0:void 0,onClick:De,onKeyDown:b=>b.key==="Enter"&&De?.(),ref:de,children:[O.jsxs(F.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[O.jsxs(F.Flex,{align:"center",w:"100%",className:ht({"mantine-datatable-header-cell-draggable":m,"mantine-datatable-header-cell-drag-over":J}),draggable:m,onDragStart:m?Oe:void 0,onDragEnter:m?S:void 0,onDragOver:m?k:void 0,onDrop:m?T:void 0,onDragLeave:m?d:void 0,children:[m?O.jsx(F.Center,{role:"img","aria-label":"Drag column",children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:b=>{b.stopPropagation()},children:O.jsx(b1,{})})}):null,O.jsx(F.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[fo]:E==="left",[ho]:E==="center",[po]:E==="right"},Ws,Us),title:re,children:he})]}),h?O.jsx(F.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:O.jsx(F.ActionIcon,{size:"xs",variant:"light",onClick:p,children:O.jsx(x1,{})})}):null,g||R?.columnAccessor===r?O.jsx(O.Fragment,{children:R?.columnAccessor===r?O.jsx(F.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":R.direction==="desc"}),role:"img","aria-label":`Sorted ${R.direction==="desc"?"descending":"ascending"}`,children:D?.sorted||O.jsx(_1,{})}):O.jsx(F.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:D?.unsorted||O.jsx(w1,{})})}):null,I?O.jsx(m1,{filterPopoverProps:$,isActive:!!se,filterPopoverDisableClickOutside:H,children:I}):null]}),C&&r!=="__selection__"?O.jsx(y1,{accessor:r,columnRef:de}):null]})}function S1({className:i,style:n,trigger:r,shadowVisible:s,checked:l,indeterminate:g,checkboxProps:m,onChange:h,rowSpan:C,ref:D}){let E=!m.disabled;return O.jsx(F.TableTh,{ref:D,className:ht("mantine-datatable-header-selector-cell",{[Lr]:r==="cell"&&E},i),style:n,rowSpan:C,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?h:void 0,children:O.jsx(F.Checkbox,{classNames:E?{input:Lr}:void 0,checked:l,indeterminate:g,onChange:h,...m,disabled:!(h||m.onChange)||m.disabled})})}function A1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:g,columns:m,defaultColumnProps:h,groups:C,selectionTrigger:D,selectionVisible:E,selectionChecked:N,selectionIndeterminate:R,onSelectionChange:L,selectionCheckboxProps:I,selectorCellShadowVisible:$,selectionColumnClassName:H,selectionColumnStyle:se,ref:ue}){let ae=E?O.jsx(S1,{ref:i,className:H,style:se,trigger:D,shadowVisible:$,checked:N,indeterminate:R,checkboxProps:I,onChange:L,rowSpan:C?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:Q}=$s(),[ne,J]=ye.useState(!1),V=m.some(re=>re.toggleable),de=V?Object.fromEntries(m.map(({accessor:re,title:De})=>[re,De??Ys(String(re))])):void 0,he=O.jsxs(F.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:ue,onContextMenu:V?re=>{re.preventDefault(),J(De=>!De)}:void 0,children:[C&&O.jsxs(F.TableTr,{children:[ae,C.map(re=>O.jsx(p1,{group:re},re.id))]}),O.jsxs(F.TableTr,{children:[!C&&ae,m.map(({hidden:re,...De},Oe)=>{if(re)return null;let{accessor:k,visibleMediaQuery:T,textAlign:S,width:d,title:p,sortable:b,draggable:f,toggleable:v,resizable:A,titleClassName:Y,titleStyle:G,filter:oe,filterPopoverProps:le,filterPopoverDisableClickOutside:we,filtering:X,sortKey:be}={...h,...De};return O.jsx(C1,{accessor:k,className:Y,style:G,visibleMediaQuery:T,textAlign:S,width:d,title:p,sortable:b,draggable:f,toggleable:v,resizable:A&&Oe<m.length-1,sortStatus:s,sortIcons:l,sortKey:be,onSortStatusChange:g,filter:oe,filterPopoverProps:le,filterPopoverDisableClickOutside:we,filtering:X},k)})]})]});return V?O.jsxs(F.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ne,onChange:J,children:[O.jsx(F.PopoverTarget,{children:he}),O.jsx(F.PopoverDropdown,{children:O.jsx(F.Stack,{children:ce.filter(re=>re.toggleable).map(re=>O.jsx(F.Group,{children:O.jsx(F.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[re.accessor],checked:re.toggled,onChange:De=>{Q(ce.map(Oe=>Oe.accessor===re.accessor?{...Oe,toggled:De.currentTarget.checked}:Oe))}})},re.accessor))})})]}):he}function D1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:l,color:g}){return O.jsx(F.Center,{className:ht("mantine-datatable-loader",{"mantine-datatable-loader-fetching":i}),style:[{backdropFilter:r?`blur(${r}px)`:void 0}],children:i&&(n||O.jsx(F.Loader,{size:s,type:l,color:g}))})}function mt(i,n,r){return i?F.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function O1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:g,highlightOnHoverColor:m}){return{"--mantine-datatable-color-light":mt(n,i,"light"),"--mantine-datatable-color-dark":mt(n,i,"dark"),"--mantine-datatable-background-color-light":mt(r,i,"light"),"--mantine-datatable-background-color-dark":mt(r,i,"dark"),"--mantine-datatable-border-color-light":mt(s,i,"light"),"--mantine-datatable-border-color-dark":mt(s,i,"dark"),"--mantine-datatable-row-border-color-light":mt(l,i,"light"),"--mantine-datatable-row-border-color-dark":mt(l,i,"dark"),"--mantine-datatable-striped-color-light":mt(g,i,"light"),"--mantine-datatable-striped-color-dark":mt(g,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":mt(m,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":mt(m,i,"dark")}}function Kl({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":mt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":mt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":mt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":mt(r,i,"dark")}}function E1({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":mt(n,i,"light"),"--mantine-datatable-row-color-dark":mt(n,i,"dark"),"--mantine-datatable-row-background-color-light":mt(r,i,"light"),"--mantine-datatable-row-background-color-dark":mt(r,i,"dark")}}function T1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 9l4 -4l4 4"}),O.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Zl={xs:F.rem(22),sm:F.rem(26),md:F.rem(32),lg:F.rem(38),xl:F.rem(44)};function P1({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:g,onChange:m}){return O.jsxs(F.Group,{gap:"xs",children:[O.jsx(F.Text,{component:"div",size:i,children:n}),O.jsxs(F.Menu,{withinPortal:!0,withArrow:!0,offset:2,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[O.jsx(F.MenuTarget,{children:O.jsx(F.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:O.jsx(T1,{}),style:[{fontWeight:"normal"},h=>({height:Zl[i],paddingLeft:h.spacing[i],paddingRight:h.spacing[i]})],children:s})}),O.jsx(F.MenuDropdown,{children:r.map(h=>{let C=h===s;return O.jsx(F.MenuItem,{className:ht({"mantine-datatable-page-size-selector-active":C}),style:[{height:Zl[i]},C&&(l||g)?D=>Kl({theme:D,paginationActiveTextColor:l,paginationActiveBackgroundColor:g}):void 0],disabled:C,onClick:()=>m(h),children:O.jsx(F.Text,{component:"div",size:i,children:h})},h)})})]})]})}function M1({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:g,paginationWithControls:m,paginationActiveTextColor:h,paginationActiveBackgroundColor:C,paginationSize:D,loadingText:E,noRecordsText:N,paginationText:R,totalRecords:L,recordsPerPage:I,onRecordsPerPageChange:$,recordsPerPageLabel:H,recordsPerPageOptions:se,recordsLength:ue,horizontalSpacing:ae,paginationWrapBreakpoint:ce,getPaginationControlProps:Q}){let ne;if(L){let V=(s-1)*I+1,de=V+(ue||0)-1;ne=R({from:V,to:de,totalRecords:L})}else ne=r?E:N;let J=co(({breakpoints:V})=>`(min-width: ${typeof ce=="number"?`${F.rem(ce)}rem`:V[ce]||ce})`);return O.jsxs(F.Box,{px:ae??"xs",py:"xs",className:ht("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[O.jsx(F.Text,{component:"div",className:"mantine-datatable-pagination-text",size:D,children:ne}),se&&O.jsx(P1,{activeTextColor:h,activeBackgroundColor:C,size:D,label:H,values:se,value:I,onChange:$}),O.jsx(F.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!ue}),control:"mantine-datatable-pagination-pages-control"},style:h||C?V=>Kl({theme:V,paginationActiveTextColor:h,paginationActiveBackgroundColor:C}):void 0,withEdges:g,withControls:m,value:s,onChange:l,size:D,total:Math.ceil(L/I),getControlProps:Q})]})}function R1({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:g,onDoubleClick:m,onContextMenu:h,noWrap:C,ellipsis:D,textAlign:E,width:N,accessor:R,render:L,defaultRender:I,customCellAttributes:$}){return co(r)?O.jsx(F.TableTd,{className:ht({[Ws]:C||D,[Us]:D,[Lr]:g||m,[Vl]:h,[fo]:E==="left",[ho]:E==="center",[po]:E==="right"},i),style:[{width:N,minWidth:N,maxWidth:N},n],onClick:g,onDoubleClick:m,onContextMenu:h,...$?.(s,l),children:L?L(s,l):I?I(s,l,R):Gl(s,R)}):null}function k1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:l,visible:g}=l1(i,s?.transitionDuration);return g?O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{}),O.jsx(F.TableTr,{children:O.jsx(F.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:O.jsx(F.Collapse,{in:l,...s,children:O.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function L1({className:i,style:n,record:r,index:s,trigger:l,onChange:g,withRightShadow:m,checkboxProps:h,getCheckboxProps:C,...D}){let E={...h,...C(r,s)},N=!D.disabled&&!E.disabled,R=L=>{L.stopPropagation(),l==="cell"&&N&&g?.(L)};return O.jsx(F.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Lr]:l==="cell"&&N},i),style:n,"data-shadow-visible":m||void 0,onClick:R,children:O.jsx(F.Checkbox,{classNames:N?{input:Lr}:void 0,onChange:g,...D,...E})})}function N1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:g,selectionVisible:m,selectionChecked:h,onSelectionChange:C,isRecordSelectable:D,selectionCheckboxProps:E,getSelectionCheckboxProps:N,onClick:R,onDoubleClick:L,onContextMenu:I,onCellClick:$,onCellDoubleClick:H,onCellContextMenu:se,expansion:ue,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J,selectorCellShadowVisible:V,selectionColumnClassName:de,selectionColumnStyle:he,rowFactory:re}){let De=O.jsxs(O.Fragment,{children:[m&&O.jsx(L1,{className:de,style:he,record:i,index:n,trigger:g,withRightShadow:V,checked:h,disabled:!C||(D?!D(i,n):!1),onChange:C,checkboxProps:E,getCheckboxProps:N}),r.map(({hidden:T,hiddenContent:S,...d},p)=>{if(T||S)return null;let{accessor:b,visibleMediaQuery:f,textAlign:v,noWrap:A,ellipsis:Y,width:G,render:oe,cellsClassName:le,cellsStyle:we,customCellAttributes:X}={...s,...d};return O.jsx(R1,{className:typeof le=="function"?le(i,n):le,style:we?.(i,n),visibleMediaQuery:f,record:i,index:n,onClick:$?be=>$({event:be,record:i,index:n,column:d,columnIndex:p}):void 0,onDoubleClick:H?be=>H({event:be,record:i,index:n,column:d,columnIndex:p}):void 0,onContextMenu:se?be=>se({event:be,record:i,index:n,column:d,columnIndex:p}):void 0,accessor:b,textAlign:v,noWrap:A,ellipsis:Y,width:G,render:oe,defaultRender:l,customCellAttributes:X},b)})]}),Oe=ue&&O.jsx(k1,{colSpan:r.filter(({hidden:T})=>!T).length+(m?1:0),open:ue.isRowExpanded(i),content:ue.content({record:i,index:n}),collapseProps:ue.collapseProps}),k=I1({record:i,index:n,selectionChecked:h,onClick:R,onDoubleClick:L,onContextMenu:I,expansion:ue,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J});return re?re({record:i,index:n,rowProps:k,children:De,expandedElement:Oe}):O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{...k,children:De}),Oe]})}function I1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:g,expansion:m,customAttributes:h,color:C,backgroundColor:D,className:E,style:N}){return{className:ht("mantine-datatable-row",{[Lr]:s||l||m?.isExpandable({record:i,index:n})&&m?.expandOnClick},{[Vl]:g},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:R=>{if(m){let{isExpandable:L,isRowExpanded:I,expandOnClick:$,expandRow:H,collapseRow:se}=m;L({record:i,index:n})&&$&&(I(i)?se(i):H(i))}s?.({event:R,record:i,index:n})},onDoubleClick:l?R=>l({event:R,record:i,index:n}):void 0,onContextMenu:g?R=>g({event:R,record:i,index:n}):void 0,style:[C||D?R=>{let L=C?.(i,n),I=D?.(i,n);return E1({theme:R,color:L,backgroundColor:I})}:void 0,N?.(i,n)],...h?.(i,n)??{}}}function $1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:l,scrollAreaProps:g}){return O.jsxs(F.ScrollArea,{...g,viewportRef:l,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:r,children:[s,O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow")})]})}function B1({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:g,shadow:m,verticalAlign:h="center",fetching:C,columns:D,storeColumnsKey:E,groups:N,pinFirstColumn:R,pinLastColumn:L,defaultColumnProps:I,defaultColumnRender:$,idAccessor:H="id",records:se,selectionTrigger:ue="checkbox",selectedRecords:ae,onSelectedRecordsChange:ce,selectionColumnClassName:Q,selectionColumnStyle:ne,isRecordSelectable:J,selectionCheckboxProps:V,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:he=(_t,Ze)=>({"aria-label":`Select record ${Ze+1}`}),sortStatus:re,sortIcons:De,onSortStatusChange:Oe,horizontalSpacing:k,page:T,onPageChange:S,totalRecords:d,recordsPerPage:p,onRecordsPerPageChange:b,recordsPerPageOptions:f,recordsPerPageLabel:v="Records per page",paginationWithEdges:A,paginationWithControls:Y,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:le="sm",paginationText:we=({from:_t,to:Ze,totalRecords:nt})=>`${_t} - ${Ze} / ${nt}`,paginationWrapBreakpoint:X="sm",getPaginationControlProps:be=_t=>_t==="previous"?{"aria-label":"Previous page"}:_t==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:_e,customLoader:ve,loaderSize:B,loaderType:Z,loaderColor:W,loadingText:K="...",emptyState:ee,noRecordsText:Se="No records",noRecordsIcon:u,highlightOnHover:c,striped:_,noHeader:M,onRowClick:U,onRowDoubleClick:te,onRowContextMenu:Ae,onCellClick:Ce,onCellDoubleClick:Pe,onCellContextMenu:me,onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe,c:it,backgroundColor:Tt,borderColor:pt,rowBorderColor:ot,stripedColor:Tn,highlightOnHoverColor:At,rowColor:Pn,rowBackgroundColor:Dt,rowExpansion:Wt,rowClassName:Mn,rowStyle:yt,customRowAttributes:fn,scrollViewportRef:hn,scrollAreaProps:Ut,tableRef:It,bodyRef:zt,m:qt,my:Jt,mx:Ht,mt:ze,mb:ut,ml:$t,mr:Xt,className:$n,classNames:dn,style:wr,styles:pn,rowFactory:Bn,tableWrapper:gn,...vn}){let _t=ye.useMemo(()=>N?.flatMap(Ve=>Ve.columns)??D,[D,N]),Ze=ye.useMemo(()=>_t.some(Ve=>Ve.resizable),[_t]),nt=e1({key:E,columns:_t}),{refs:Gt,onScroll:Pt}=t1({scrollCallbacks:{onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe},withRowBorders:vn.withRowBorders}),wt=kt.useMergedRef(Gt.table,It),Bt=kt.useMergedRef(Gt.scrollViewport,hn),en=u1({rowExpansion:Wt,records:se,idAccessor:H}),Rn=ye.useCallback(Ve=>{Gt.scrollViewport.current?.scrollTo({top:0,left:0}),S(Ve)},[S,Gt.scrollViewport]),Nr=se?.length,go=se?.map(Ve=>Nt(Ve,H)),ar=!!ae,ur=ae?.map(Ve=>Nt(Ve,H)),mi=go!==void 0&&ur!==void 0&&ur.length>0,Ir=J?se?.filter(J):se,$r=Ir?.map(Ve=>Nt(Ve,H)),Br=mi&&$r.every(Ve=>ur.includes(Ve)),zs=mi&&$r.some(Ve=>ur.includes(Ve)),qs=ye.useCallback(()=>{ae&&ce&&ce(Br?ae.filter(Ve=>!$r.includes(Nt(Ve,H))):Fs([...ae,...Ir],Ve=>Nt(Ve,H)))},[Br,H,ce,$r,Ir,ae]),{lastSelectionChangeIndex:br,setLastSelectionChangeIndex:vo}=n1(go),jr=ar&&!R,yi={m:qt,my:Jt,mx:Ht,mt:ze,mb:ut,ml:$t,mr:Xt},Hs=ye.useCallback(({children:Ve})=>gn?gn({children:Ve}):Ve,[gn]);return O.jsx(Yl,{...nt,children:O.jsxs(F.Box,{ref:Gt.root,...yi,className:ht("mantine-datatable",{"mantine-datatable-with-border":i},$n,dn?.root),style:[Ve=>({...O1({theme:Ve,c:it,backgroundColor:Tt,borderColor:pt,rowBorderColor:ot,stripedColor:Tn,highlightOnHoverColor:At}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[m]||m,height:s,minHeight:l,maxHeight:g}),wr,pn?.root,{position:"relative"}],children:[O.jsx($1,{viewportRef:Bt,leftShadowBehind:ar||!!R,rightShadowBehind:L,onScrollPositionChange:Pt,scrollAreaProps:Ut,children:O.jsx(Hs,{children:O.jsxs(F.Table,{ref:wt,horizontalSpacing:k,className:ht("mantine-datatable-table",{[c1]:r,"mantine-datatable-vertical-align-top":h==="top","mantine-datatable-vertical-align-bottom":h==="bottom","mantine-datatable-pin-last-column":L,"mantine-datatable-selection-column-visible":ar,"mantine-datatable-pin-first-column":R,"mantine-datatable-resizable-columns":Ze},dn?.table),style:{...pn?.table},"data-striped":Nr&&_||void 0,"data-highlight-on-hover":c||void 0,...vn,children:[M?null:O.jsx(Yl,{...nt,children:O.jsx(A1,{ref:Gt.header,selectionColumnHeaderRef:Gt.selectionColumnHeader,className:dn?.header,style:pn?.header,columns:_t,defaultColumnProps:I,groups:N,sortStatus:re,sortIcons:De,onSortStatusChange:Oe,selectionTrigger:ue,selectionVisible:ar,selectionChecked:Br,selectionIndeterminate:zs&&!Br,onSelectionChange:qs,selectionCheckboxProps:{...V,...de},selectorCellShadowVisible:jr,selectionColumnClassName:Q,selectionColumnStyle:ne})}),O.jsx("tbody",{ref:zt,children:Nr?se.map((Ve,jn)=>{let Yr=Nt(Ve,H),_i=ur?.includes(Yr)||!1,wi;return ce&&ae&&(wi=mo=>{if(mo.nativeEvent.shiftKey&&br!==null){let Yn=se.filter(jn>br?(qn,Fn)=>Fn>=br&&Fn<=jn&&(J?J(qn,Fn):!0):(qn,Fn)=>Fn>=jn&&Fn<=br&&(J?J(qn,Fn):!0));ce(_i?a1(ae,Yn,qn=>Nt(qn,H)):Fs([...ae,...Yn],qn=>Nt(qn,H)))}else ce(_i?ae.filter(Yn=>Nt(Yn,H)!==Yr):Fs([...ae,Ve],Yn=>Nt(Yn,H)));vo(jn)}),O.jsx(N1,{record:Ve,index:jn,columns:_t,defaultColumnProps:I,defaultColumnRender:$,selectionTrigger:ue,selectionVisible:ar,selectionChecked:_i,onSelectionChange:wi,isRecordSelectable:J,selectionCheckboxProps:V,getSelectionCheckboxProps:he,onClick:U,onDoubleClick:te,onCellClick:Ce,onCellDoubleClick:Pe,onContextMenu:Ae,onCellContextMenu:me,expansion:en,color:Pn,backgroundColor:Dt,className:Mn,style:yt,customAttributes:fn,selectorCellShadowVisible:jr,selectionColumnClassName:Q,selectionColumnStyle:ne,idAccessor:H,rowFactory:Bn},Yr)}):O.jsx(Qg,{})}),_t.some(({footer:Ve})=>Ve)&&O.jsx(d1,{ref:Gt.footer,className:dn?.footer,style:pn?.footer,columns:_t,defaultColumnProps:I,selectionVisible:ar,selectorCellShadowVisible:jr})]})})}),T&&O.jsx(M1,{className:dn?.pagination,style:pn?.pagination,horizontalSpacing:k,fetching:C,page:T,onPageChange:Rn,totalRecords:d,recordsPerPage:p,onRecordsPerPageChange:b,recordsPerPageOptions:f,recordsPerPageLabel:v,paginationWithEdges:A,paginationWithControls:Y,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:le,paginationText:we,paginationWrapBreakpoint:X,getPaginationControlProps:be,noRecordsText:Se,loadingText:K,recordsLength:Nr}),O.jsx(D1,{fetching:C,backgroundBlur:_e,customContent:ve,size:B,type:Z,color:W}),O.jsx(Xg,{icon:u,text:Se,active:!C&&!Nr,children:ee})]})})}var vi={exports:{}};/**
117
+ `+v,C(`data:${Oe(p)};charset=utf-8,${encodeURIComponent(v)}`,`${b}.svg`)}else C(f.toDataURL(Oe(p)),`${b}.${p}`)}}const T=k})(),g.default})())}(Ts)),Ts.exports}Up();const ul=ye.createContext(void 0);function zp(i){const n=An.c(9),{children:r,baseUrl:s,queryClient:l}=i;let g;n[0]!==s||n[1]!==l?(g={baseUrl:s,queryClient:l},n[0]=s,n[1]=l,n[2]=g):g=n[2];let m;n[3]!==r||n[4]!==l?(m=O.jsx(wu,{client:l,children:r}),n[3]=r,n[4]=l,n[5]=m):m=n[5];let h;return n[6]!==g||n[7]!==m?(h=O.jsx(ul.Provider,{value:g,children:m}),n[6]=g,n[7]=m,n[8]=h):h=n[8],h}function rr(){const i=ye.useContext(ul);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Ps(i){if(typeof i=="string")try{const n=JSON.parse(i);return{message:n.message||i,code:n.code,details:n.details}}catch{return{message:i}}return i instanceof Error?{message:i.message}:{message:"Unbekannter Fehler"}}async function kr(i){const n=await i.text();if(!n)throw new Error(`HTTP ${i.status}: ${i.statusText}`);try{const r=JSON.parse(n);throw r.message?new Error(r.message):r.error?new Error(r.error):new Error(n)}catch{throw new Error(n)}}function qp(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function _r(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Rp()??""}`,...qp()}}async function ll(i){return fetch(i,{method:"GET",headers:await _r()}).then(async n=>(n.status>=400&&await kr(n),n)).then(n=>n.json()).then(n=>n)}async function cl(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await _r()}).then(async r=>(r.status>=400&&await kr(r),r)).then(r=>r.json()).then(r=>r)}async function fl(i,n){const r=await fetch(`${i}/${n}`,{method:"DELETE",headers:await _r()});r.status>=400&&await kr(r)}async function hl(i,n){return fetch(i,{method:"POST",headers:await _r(),body:JSON.stringify(n)}).then(async r=>(r.status>=400&&await kr(r),r)).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Hp(i,n,r){return fetch(n,{method:i,headers:await _r(),body:r?JSON.stringify(r):void 0}).then(async s=>(s.status>=400&&await kr(s),s)).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function dl(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await _r(),body:JSON.stringify(n)}).then(async r=>(r.status>=400&&await kr(r),r)).then(r=>r.status==204?n:r.json()).then(r=>r)}function pl(i,n,r){const s=An.c(13),{baseUrl:l}=rr();let g;if(s[0]!==r||s[1]!==n){let D;s[3]!==r?(D=r?.toString(),s[3]=r,s[4]=D):D=s[4],g=[...n.map(Gp),String(D)],s[0]=r,s[1]=n,s[2]=g}else g=s[2];let m;s[5]!==i||s[6]!==l||s[7]!==r?(m=()=>cl(`${l}${i}`,r),s[5]=i,s[6]=l,s[7]=r,s[8]=m):m=s[8];const h=!!r;let C;return s[9]!==g||s[10]!==m||s[11]!==h?(C={queryKey:g,queryFn:m,enabled:h},s[9]=g,s[10]=m,s[11]=h,s[12]=C):C=s[12],Cu(C)}function Gp(i){return i.toString()}function gl(i,n){const r=An.c(8),{baseUrl:s}=rr();let l;r[0]!==n?(l=[...n.map(Vp)],r[0]=n,r[1]=l):l=r[1];let g;r[2]!==i||r[3]!==s?(g=()=>ll(`${s}${i}`),r[2]=i,r[3]=s,r[4]=g):g=r[4];let m;return r[5]!==l||r[6]!==g?(m={queryKey:l,queryFn:g},r[5]=l,r[6]=g,r[7]=m):m=r[7],Cu(m)}function Vp(i){return i.toString()}function vl(i,n){const r=An.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==n?(g=[...n.map(Zp)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>hl(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let h;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==m?(h={mutationKey:g,mutationFn:m,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Kp)]})},onError(C){Ps(C)}},r[5]=l,r[6]=n,r[7]=g,r[8]=m,r[9]=h):h=r[9],cs(h)}function Kp(i){return i.toString()}function Zp(i){return i.toString()}function Ms(i,n){const r=An.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==n?(g=[...n.map(Jp)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>dl(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let h;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==m?(h={mutationKey:g,mutationFn:m,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Qp)]})},onError(C){Ps(C)}},r[5]=l,r[6]=n,r[7]=g,r[8]=m,r[9]=h):h=r[9],cs(h)}function Qp(i){return i.toString()}function Jp(i){return i.toString()}function ml(i,n){const r=An.c(10),{baseUrl:s,queryClient:l}=rr();let g;r[0]!==n?(g=[...n.map(eg)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>fl(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let h;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==m?(h={mutationKey:g,mutationFn:m,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Xp)]})},onError(C){Ps(C)}},r[5]=l,r[6]=n,r[7]=g,r[8]=m,r[9]=h):h=r[9],cs(h)}function Xp(i){return i.toString()}function eg(i){return i.toString()}var Zi={exports:{}},tg=Zi.exports,yl;function ng(){return yl||(yl=1,function(i,n){(function(r,s){i.exports=s()})(tg,function(){var r=1e3,s=6e4,l=36e5,g="millisecond",m="second",h="minute",C="hour",D="day",E="week",N="month",R="quarter",L="year",I="date",$="Invalid Date",H=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ue={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var T=["th","st","nd","rd"],S=k%100;return"["+k+(T[(S-20)%10]||T[S]||T[0])+"]"}},ae=function(k,T,S){var d=String(k);return!d||d.length>=T?k:""+Array(T+1-d.length).join(S)+k},ce={s:ae,z:function(k){var T=-k.utcOffset(),S=Math.abs(T),d=Math.floor(S/60),p=S%60;return(T<=0?"+":"-")+ae(d,2,"0")+":"+ae(p,2,"0")},m:function k(T,S){if(T.date()<S.date())return-k(S,T);var d=12*(S.year()-T.year())+(S.month()-T.month()),p=T.clone().add(d,N),b=S-p<0,f=T.clone().add(d+(b?-1:1),N);return+(-(d+(S-p)/(b?p-f:f-p))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:N,y:L,w:E,d:D,D:I,h:C,m:h,s:m,ms:g,Q:R}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},Q="en",ne={};ne[Q]=ue;var J="$isDayjsObject",V=function(k){return k instanceof De||!(!k||!k[J])},de=function k(T,S,d){var p;if(!T)return Q;if(typeof T=="string"){var b=T.toLowerCase();ne[b]&&(p=b),S&&(ne[b]=S,p=b);var f=T.split("-");if(!p&&f.length>1)return k(f[0])}else{var v=T.name;ne[v]=T,p=v}return!d&&p&&(Q=p),p||!d&&Q},he=function(k,T){if(V(k))return k.clone();var S=typeof T=="object"?T:{};return S.date=k,S.args=arguments,new De(S)},re=ce;re.l=de,re.i=V,re.w=function(k,T){return he(k,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var De=function(){function k(S){this.$L=de(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[J]=!0}var T=k.prototype;return T.parse=function(S){this.$d=function(d){var p=d.date,b=d.utc;if(p===null)return new Date(NaN);if(re.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var f=p.match(H);if(f){var v=f[2]-1||0,A=(f[7]||"0").substring(0,3);return b?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,A)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,A)}}return new Date(p)}(S),this.init()},T.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},T.$utils=function(){return re},T.isValid=function(){return this.$d.toString()!==$},T.isSame=function(S,d){var p=he(S);return this.startOf(d)<=p&&p<=this.endOf(d)},T.isAfter=function(S,d){return he(S)<this.startOf(d)},T.isBefore=function(S,d){return this.endOf(d)<he(S)},T.$g=function(S,d,p){return re.u(S)?this[d]:this.set(p,S)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(S,d){var p=this,b=!!re.u(d)||d,f=re.p(S),v=function(be,_e){var ve=re.w(p.$u?Date.UTC(p.$y,_e,be):new Date(p.$y,_e,be),p);return b?ve:ve.endOf(D)},A=function(be,_e){return re.w(p.toDate()[be].apply(p.toDate("s"),(b?[0,0,0,0]:[23,59,59,999]).slice(_e)),p)},Y=this.$W,G=this.$M,oe=this.$D,le="set"+(this.$u?"UTC":"");switch(f){case L:return b?v(1,0):v(31,11);case N:return b?v(1,G):v(0,G+1);case E:var we=this.$locale().weekStart||0,X=(Y<we?Y+7:Y)-we;return v(b?oe-X:oe+(6-X),G);case D:case I:return A(le+"Hours",0);case C:return A(le+"Minutes",1);case h:return A(le+"Seconds",2);case m:return A(le+"Milliseconds",3);default:return this.clone()}},T.endOf=function(S){return this.startOf(S,!1)},T.$set=function(S,d){var p,b=re.p(S),f="set"+(this.$u?"UTC":""),v=(p={},p[D]=f+"Date",p[I]=f+"Date",p[N]=f+"Month",p[L]=f+"FullYear",p[C]=f+"Hours",p[h]=f+"Minutes",p[m]=f+"Seconds",p[g]=f+"Milliseconds",p)[b],A=b===D?this.$D+(d-this.$W):d;if(b===N||b===L){var Y=this.clone().set(I,1);Y.$d[v](A),Y.init(),this.$d=Y.set(I,Math.min(this.$D,Y.daysInMonth())).$d}else v&&this.$d[v](A);return this.init(),this},T.set=function(S,d){return this.clone().$set(S,d)},T.get=function(S){return this[re.p(S)]()},T.add=function(S,d){var p,b=this;S=Number(S);var f=re.p(d),v=function(G){var oe=he(b);return re.w(oe.date(oe.date()+Math.round(G*S)),b)};if(f===N)return this.set(N,this.$M+S);if(f===L)return this.set(L,this.$y+S);if(f===D)return v(1);if(f===E)return v(7);var A=(p={},p[h]=s,p[C]=l,p[m]=r,p)[f]||1,Y=this.$d.getTime()+S*A;return re.w(Y,this)},T.subtract=function(S,d){return this.add(-1*S,d)},T.format=function(S){var d=this,p=this.$locale();if(!this.isValid())return p.invalidDate||$;var b=S||"YYYY-MM-DDTHH:mm:ssZ",f=re.z(this),v=this.$H,A=this.$m,Y=this.$M,G=p.weekdays,oe=p.months,le=p.meridiem,we=function(_e,ve,B,Z){return _e&&(_e[ve]||_e(d,b))||B[ve].slice(0,Z)},X=function(_e){return re.s(v%12||12,_e,"0")},be=le||function(_e,ve,B){var Z=_e<12?"AM":"PM";return B?Z.toLowerCase():Z};return b.replace(se,function(_e,ve){return ve||function(B){switch(B){case"YY":return String(d.$y).slice(-2);case"YYYY":return re.s(d.$y,4,"0");case"M":return Y+1;case"MM":return re.s(Y+1,2,"0");case"MMM":return we(p.monthsShort,Y,oe,3);case"MMMM":return we(oe,Y);case"D":return d.$D;case"DD":return re.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return we(p.weekdaysMin,d.$W,G,2);case"ddd":return we(p.weekdaysShort,d.$W,G,3);case"dddd":return G[d.$W];case"H":return String(v);case"HH":return re.s(v,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return be(v,A,!0);case"A":return be(v,A,!1);case"m":return String(A);case"mm":return re.s(A,2,"0");case"s":return String(d.$s);case"ss":return re.s(d.$s,2,"0");case"SSS":return re.s(d.$ms,3,"0");case"Z":return f}return null}(_e)||f.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(S,d,p){var b,f=this,v=re.p(d),A=he(S),Y=(A.utcOffset()-this.utcOffset())*s,G=this-A,oe=function(){return re.m(f,A)};switch(v){case L:b=oe()/12;break;case N:b=oe();break;case R:b=oe()/3;break;case E:b=(G-Y)/6048e5;break;case D:b=(G-Y)/864e5;break;case C:b=G/l;break;case h:b=G/s;break;case m:b=G/r;break;default:b=G}return p?b:re.a(b)},T.daysInMonth=function(){return this.endOf(N).$D},T.$locale=function(){return ne[this.$L]},T.locale=function(S,d){if(!S)return this.$L;var p=this.clone(),b=de(S,d,!0);return b&&(p.$L=b),p},T.clone=function(){return re.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},k}(),Oe=De.prototype;return he.prototype=Oe,[["$ms",g],["$s",m],["$m",h],["$H",C],["$W",D],["$M",N],["$y",L],["$D",I]].forEach(function(k){Oe[k[1]]=function(T){return this.$g(T,k[0],k[1])}}),he.extend=function(k,T){return k.$i||(k(T,De,he),k.$i=!0),he},he.locale=de,he.isDayjs=V,he.unix=function(k){return he(1e3*k)},he.en=ne[Q],he.Ls=ne,he.p={},he})}(Zi)),Zi.exports}var rg=ng();const Te=rs(rg);function ig({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:l}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=l[n-1][l[n-1].length-1]-1?l[n-1].length-1:l[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===l[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===l[n].length-2&&s>=l[n][l[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:s}:{levelIndex:n,rowIndex:r+1,cellIndex:s};case"left":return n===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:n-1,rowIndex:l[n-1].length-1,cellIndex:l[n-1][l[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:l[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===l[n].length-1&&s===l[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===l[n][r]-1?{levelIndex:n,rowIndex:r+1,cellIndex:0}:{levelIndex:n,rowIndex:r,cellIndex:s+1};default:return{levelIndex:n,rowIndex:r,cellIndex:s}}}function _l({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:l,size:g}){const m=ig({direction:n,size:g,rowIndex:s,cellIndex:l,levelIndex:r});if(!m)return;const h=i.current?.[m.levelIndex]?.[m.rowIndex]?.[m.cellIndex];h&&(h.disabled||h.getAttribute("data-hidden")||h.getAttribute("data-outside")?_l({controlsRef:i,direction:n,levelIndex:m.levelIndex,cellIndex:m.cellIndex,rowIndex:m.rowIndex,size:g}):h.focus())}function og(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function sg(i){return i.current?.map(n=>n.map(r=>r.length))}function Rs({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:l}){const g=og(l.key);if(g){l.preventDefault();const m=sg(i);_l({controlsRef:i,direction:g,levelIndex:n,rowIndex:r,cellIndex:s,size:m})}}function cn(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD")}function wl(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD HH:mm:ss")}const ag={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},ug=ye.createContext(ag);function ir(){const i=ye.useContext(ug),n=ye.useCallback(g=>g||i.locale,[i.locale]),r=ye.useCallback(g=>typeof g=="number"?g:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ye.useCallback(g=>Array.isArray(g)?g:i.weekendDays,[i.weekendDays]),l=ye.useCallback(g=>typeof g=="string"?g:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:l}}function lg({value:i,type:n,withTime:r}){const s=r?wl:cn;if(n==="range"&&Array.isArray(i)){const l=s(i[0]),g=s(i[1]);return l?g?`${l} – ${g}`:`${l} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function bl({value:i,type:n,name:r,form:s,withTime:l=!1}){return O.jsx("input",{type:"hidden",value:lg({value:i,type:n,withTime:l}),name:r,form:s})}bl.displayName="@mantine/dates/HiddenDatesInput";function xl(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var l=i.length;for(n=0;n<l;n++)i[n]&&(r=xl(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ht(){for(var i,n,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(n=xl(i))&&(s&&(s+=" "),s+=n);return s}var Cl={day:"m_396ce5cb"};const cg=F.createVarsResolver((i,{size:n})=>({day:{"--day-size":F.getSize(n,"day-size")}})),ks=F.factory((i,n)=>{const r=F.useProps("Day",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,date:D,disabled:E,__staticSelector:N,weekend:R,outside:L,selected:I,renderDay:$,inRange:H,firstInRange:se,lastInRange:ue,hidden:ae,static:ce,highlightToday:Q,attributes:ne,...J}=r,V=F.useStyles({name:N||"Day",classes:Cl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:ne,vars:C,varsResolver:cg,rootSelector:"day"});return O.jsx(F.UnstyledButton,{...V("day",{style:ae?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:E,"data-today":Te(D).isSame(new Date,"day")||void 0,"data-hidden":ae||void 0,"data-highlight-today":Q||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!L&&R||void 0,"data-outside":!E&&L||void 0,"data-selected":!E&&I||void 0,"data-in-range":H&&!E||void 0,"data-first-in-range":se&&!E||void 0,"data-last-in-range":ue&&!E||void 0,"data-static":ce||void 0,unstyled:h,...J,children:$?.(D)||Te(D).date()})});ks.classes=Cl,ks.displayName="@mantine/dates/Day";function fg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),l=[];for(let g=0;g<7;g+=1)typeof n=="string"?l.push(Te(s).add(g,"days").locale(i).format(n)):l.push(n(Te(s).add(g,"days").format("YYYY-MM-DD")));return l}var Sl={weekday:"m_18a3eca"};const hg=F.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":F.getFontSize(n),"--wr-spacing":F.getSpacing(n)}})),Ls=F.factory((i,n)=>{const r=F.useProps("WeekdaysRow",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,locale:D,firstDayOfWeek:E,weekdayFormat:N,cellComponent:R="th",__staticSelector:L,withWeekNumbers:I,attributes:$,...H}=r,se=F.useStyles({name:L||"WeekdaysRow",classes:Sl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:$,vars:C,varsResolver:hg,rootSelector:"weekdaysRow"}),ue=ir(),ae=fg({locale:ue.getLocale(D),format:N,firstDayOfWeek:ue.getFirstDayOfWeek(E)}).map((ce,Q)=>O.jsx(R,{...se("weekday"),children:ce},Q));return O.jsxs(F.Box,{component:"tr",ref:n,...se("weekdaysRow"),...H,children:[I&&O.jsx(R,{...se("weekday"),children:"#"}),ae]})});Ls.classes=Sl,Ls.displayName="@mantine/dates/WeekdaysRow";function dg(i,n=1){let r=Te(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.format("YYYY-MM-DD")}function pg(i,n=1){let r=Te(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function gg({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Te(i).subtract(Te(i).date()-1,"day"),l=Te(s.format("YYYY-M-D")),g=l.format("YYYY-MM-DD"),m=l.add(+l.daysInMonth()-1,"day").format("YYYY-MM-DD"),h=dg(m,n),C=[];let D=Te(pg(g,n));for(;Te(D).isBefore(h,"day");){const E=[];for(let N=0;N<7;N+=1)E.push(D.format("YYYY-MM-DD")),D=D.add(1,"day");C.push(E)}if(r&&C.length<6){const E=C[C.length-1],N=E[E.length-1];let R=Te(N).add(1,"day");for(;C.length<6;){const L=[];for(let I=0;I<7;I+=1)L.push(R.format("YYYY-MM-DD")),R=R.add(1,"day");C.push(L)}}return C}function Ns(i,n){return Te(i).format("YYYY-MM")===Te(n).format("YYYY-MM")}function Al(i,n){return n?Te(i).isAfter(Te(n).subtract(1,"day"),"day"):!0}function Dl(i,n){return n?Te(i).isBefore(Te(n).add(1,"day"),"day"):!0}function vg({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:l,hideOutsideDates:g,month:m}){const h=i.flat().filter(E=>Dl(E,r)&&Al(E,n)&&!l?.(E)&&!s?.(E)?.disabled&&(!g||Ns(E,m))),C=h.find(E=>s?.(E)?.selected);if(C)return C;const D=h.find(E=>Te().isSame(E,"date"));return D||h[0]}var Qi={exports:{}},mg=Qi.exports,Ol;function yg(){return Ol||(Ol=1,function(i,n){(function(r,s){i.exports=s()})(mg,function(){var r="day";return function(s,l,g){var m=function(D){return D.add(4-D.isoWeekday(),r)},h=l.prototype;h.isoWeekYear=function(){return m(this).year()},h.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),r);var E,N,R,L,I=m(this),$=(E=this.isoWeekYear(),N=this.$u,R=(N?g.utc:g)().year(E).startOf("year"),L=4-R.isoWeekday(),R.isoWeekday()>4&&(L+=7),R.add(L,r));return I.diff($,"week")+1},h.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var C=h.startOf;h.startOf=function(D,E){var N=this.$utils(),R=!!N.u(E)||E;return N.p(D)==="isoweek"?R?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(D,E)}}})}(Qi)),Qi.exports}var _g=yg();const wg=rs(_g);Te.extend(wg);function bg(i){const n=i.find(r=>Te(r).day()===1);return Te(n).isoWeek()}var El={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const xg={withCellSpacing:!0},Cg=F.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":F.getFontSize(n),"--wn-size":F.getSize(n,"wn-size")}})),Ji=F.factory((i,n)=>{const r=F.useProps("Month",xg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,__staticSelector:D,locale:E,firstDayOfWeek:N,weekdayFormat:R,month:L,weekendDays:I,getDayProps:$,excludeDate:H,minDate:se,maxDate:ue,renderDay:ae,hideOutsideDates:ce,hideWeekdays:Q,getDayAriaLabel:ne,static:J,__getDayRef:V,__onDayKeyDown:de,__onDayClick:he,__onDayMouseEnter:re,__preventFocus:De,__stopPropagation:Oe,withCellSpacing:k,size:T,highlightToday:S,withWeekNumbers:d,attributes:p,...b}=r,f=F.useStyles({name:D||"Month",classes:El,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:p,vars:C,varsResolver:Cg,rootSelector:"month"}),v=ir(),A=gg({month:L,firstDayOfWeek:v.getFirstDayOfWeek(N),consistentWeeks:v.consistentWeeks}),Y=vg({dates:A,minDate:cn(se),maxDate:cn(ue),getDayProps:$,excludeDate:H,hideOutsideDates:ce,month:L}),{resolvedClassNames:G,resolvedStyles:oe}=F.useResolvedStylesApi({classNames:s,styles:m,props:r}),le=A.map((we,X)=>{const be=we.map((_e,ve)=>{const B=!Ns(_e,L),Z=ne?.(_e)||Te(_e).locale(E||v.locale).format("D MMMM YYYY"),W=$?.(_e),K=Te(_e).isSame(Y,"date");return O.jsx("td",{...f("monthCell"),"data-with-spacing":k||void 0,children:O.jsx(ks,{__staticSelector:D||"Month",classNames:G,styles:oe,unstyled:h,"data-mantine-stop-propagation":Oe||void 0,highlightToday:S,renderDay:ae,date:_e,size:T,weekend:v.getWeekendDays(I).includes(Te(_e).get("day")),outside:B,hidden:ce?B:!1,"aria-label":Z,static:J,disabled:H?.(_e)||!Dl(_e,cn(ue))||!Al(_e,cn(se)),ref:ee=>{ee&&V?.(X,ve,ee)},...W,onKeyDown:ee=>{W?.onKeyDown?.(ee),de?.(ee,{rowIndex:X,cellIndex:ve,date:_e})},onMouseEnter:ee=>{W?.onMouseEnter?.(ee),re?.(ee,_e)},onClick:ee=>{W?.onClick?.(ee),he?.(ee,_e)},onMouseDown:ee=>{W?.onMouseDown?.(ee),De&&ee.preventDefault()},tabIndex:De||!K?-1:0})},_e.toString())});return O.jsxs("tr",{...f("monthRow"),children:[d&&O.jsx("td",{...f("weekNumber"),children:bg(we)}),be]},X)});return O.jsxs(F.Box,{component:"table",...f("month"),size:T,ref:n,...b,children:[!Q&&O.jsx("thead",{...f("monthThead"),children:O.jsx(Ls,{__staticSelector:D||"Month",locale:E,firstDayOfWeek:N,weekdayFormat:R,size:T,classNames:G,styles:oe,unstyled:h,withWeekNumbers:d})}),O.jsx("tbody",{...f("monthTbody"),children:le})]})});Ji.classes=El,Ji.displayName="@mantine/dates/Month";var Tl={pickerControl:"m_dc6a3c71"};const Sg=F.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":F.getFontSize(n),"--dpc-size":F.getSize(n,"dpc-size")}})),Xi=F.factory((i,n)=>{const r=F.useProps("PickerControl",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,firstInRange:D,lastInRange:E,inRange:N,__staticSelector:R,selected:L,disabled:I,attributes:$,...H}=r,se=F.useStyles({name:R||"PickerControl",classes:Tl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:$,vars:C,varsResolver:Sg,rootSelector:"pickerControl"});return O.jsx(F.UnstyledButton,{...se("pickerControl"),ref:n,unstyled:h,"data-picker-control":!0,"data-selected":L&&!I||void 0,"data-disabled":I||void 0,"data-in-range":N&&!I&&!L||void 0,"data-first-in-range":D&&!I||void 0,"data-last-in-range":E&&!I||void 0,disabled:I,...H})});Xi.classes=Tl,Xi.displayName="@mantine/dates/PickerControl";function Pl({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"year")||r&&Te(i).isAfter(r,"year"))}function Ag({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const l=i.flat().filter(h=>!Pl({year:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),g=l.find(h=>s?.(h)?.selected);if(g)return g;const m=l.find(h=>Te().isSame(h,"year"));return m||l[0]}function Ml(i){const n=Te(i).year(),r=n-n%10;let s=0;const l=[[],[],[],[]];for(let g=0;g<4;g+=1){const m=g===3?1:3;for(let h=0;h<m;h+=1)l[g].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return l}var Rl={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const Dg={yearsListFormat:"YYYY",withCellSpacing:!0},eo=F.factory((i,n)=>{const r=F.useProps("YearsList",Dg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,decade:D,yearsListFormat:E,locale:N,minDate:R,maxDate:L,getYearControlProps:I,__staticSelector:$,__getControlRef:H,__onControlKeyDown:se,__onControlClick:ue,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:$||"YearsList",classes:Rl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:V,vars:C,rootSelector:"yearsList"}),re=ir(),De=Ml(D),Oe=Ag({years:De,minDate:R,maxDate:L,getYearControlProps:I}),k=De.map((T,S)=>{const d=T.map((p,b)=>{const f=I?.(p),v=Te(p).isSame(Oe,"year");return O.jsx("td",{...he("yearsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Xi,{...he("yearsListControl"),size:J,unstyled:h,"data-mantine-stop-propagation":Q||void 0,disabled:Pl({year:p,minDate:R,maxDate:L}),ref:A=>{A&&H?.(S,b,A)},...f,onKeyDown:A=>{f?.onKeyDown?.(A),se?.(A,{rowIndex:S,cellIndex:b,date:p})},onClick:A=>{f?.onClick?.(A),ue?.(A,p)},onMouseEnter:A=>{f?.onMouseEnter?.(A),ae?.(A,p)},onMouseDown:A=>{f?.onMouseDown?.(A),ce&&A.preventDefault()},tabIndex:ce||!v?-1:0,children:Te(p).locale(re.getLocale(N)).format(E)})},b)});return O.jsx("tr",{...he("yearsListRow"),children:d},S)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("yearsList"),...de,children:O.jsx("tbody",{children:k})})});eo.classes=Rl,eo.displayName="@mantine/dates/YearsList";function kl({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"month")||r&&Te(i).isAfter(r,"month"))}function Og({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const l=i.flat().filter(h=>!kl({month:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),g=l.find(h=>s?.(h)?.selected);if(g)return g;const m=l.find(h=>Te().isSame(h,"month"));return m||l[0]}function Eg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let g=0;g<3;g+=1)r[l].push(Te(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Ll={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Tg={monthsListFormat:"MMM",withCellSpacing:!0},to=F.factory((i,n)=>{const r=F.useProps("MonthsList",Tg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,__staticSelector:D,year:E,monthsListFormat:N,locale:R,minDate:L,maxDate:I,getMonthControlProps:$,__getControlRef:H,__onControlKeyDown:se,__onControlClick:ue,__onControlMouseEnter:ae,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:V,...de}=r,he=F.useStyles({name:D||"MonthsList",classes:Ll,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:V,vars:C,rootSelector:"monthsList"}),re=ir(),De=Eg(E),Oe=Og({months:De,minDate:cn(L),maxDate:cn(I),getMonthControlProps:$}),k=De.map((T,S)=>{const d=T.map((p,b)=>{const f=$?.(p),v=Te(p).isSame(Oe,"month");return O.jsx("td",{...he("monthsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Xi,{...he("monthsListControl"),size:J,unstyled:h,__staticSelector:D||"MonthsList","data-mantine-stop-propagation":Q||void 0,disabled:kl({month:p,minDate:cn(L),maxDate:cn(I)}),ref:A=>{A&&H?.(S,b,A)},...f,onKeyDown:A=>{f?.onKeyDown?.(A),se?.(A,{rowIndex:S,cellIndex:b,date:p})},onClick:A=>{f?.onClick?.(A),ue?.(A,p)},onMouseEnter:A=>{f?.onMouseEnter?.(A),ae?.(A,p)},onMouseDown:A=>{f?.onMouseDown?.(A),ce&&A.preventDefault()},tabIndex:ce||!v?-1:0,children:Te(p).locale(re.getLocale(R)).format(N)})},b)});return O.jsx("tr",{...he("monthsListRow"),children:d},S)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("monthsList"),...de,children:O.jsx("tbody",{children:k})})});to.classes=Ll,to.displayName="@mantine/dates/MonthsList";var Nl={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Pg={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Mg=F.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":F.getSize(n,"dch-control-size"),"--dch-fz":F.getFontSize(n)}})),or=F.factory((i,n)=>{const r=F.useProps("CalendarHeader",Pg,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,nextIcon:D,previousIcon:E,nextLabel:N,previousLabel:R,onNext:L,onPrevious:I,onLevelClick:$,label:H,nextDisabled:se,previousDisabled:ue,hasNextLevel:ae,levelControlAriaLabel:ce,withNext:Q,withPrevious:ne,headerControlsOrder:J,__staticSelector:V,__preventFocus:de,__stopPropagation:he,attributes:re,...De}=r,Oe=F.useStyles({name:V||"CalendarHeader",classes:Nl,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:re,vars:C,varsResolver:Mg,rootSelector:"calendarHeader"}),k=de?b=>b.preventDefault():void 0,T=ne&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":R,onClick:I,unstyled:h,onMouseDown:k,disabled:ue,"data-disabled":ue||void 0,tabIndex:de||ue?-1:0,"data-mantine-stop-propagation":he||void 0},E||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),S=ye.createElement(F.UnstyledButton,{component:ae?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:ae?$:void 0,unstyled:h,onMouseDown:ae?k:void 0,disabled:!ae,"data-static":!ae||void 0,"aria-label":ce,tabIndex:de||!ae?-1:0,"data-mantine-stop-propagation":he||void 0},H),d=Q&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":N,onClick:L,unstyled:h,onMouseDown:k,disabled:se,"data-disabled":se||void 0,tabIndex:de||se?-1:0,"data-mantine-stop-propagation":he||void 0},D||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),p=J.map(b=>b==="previous"?T:b==="level"?S:b==="next"?d:null);return O.jsx(F.Box,{...Oe("calendarHeader"),ref:n,...De,children:p})});or.classes=Nl,or.displayName="@mantine/dates/CalendarHeader";function Rg(i){const n=Ml(i);return[n[0][0],n[3][0]]}const kg={decadeLabelFormat:"YYYY"},no=F.factory((i,n)=>{const r=F.useProps("DecadeLevel",kg,i),{decade:s,locale:l,minDate:g,maxDate:m,yearsListFormat:h,getYearControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:I,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,nextDisabled:Q,previousDisabled:ne,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,decadeLabelFormat:re,classNames:De,styles:Oe,unstyled:k,__staticSelector:T,__stopPropagation:S,size:d,attributes:p,...b}=r,f=ir(),[v,A]=Rg(s),Y={__staticSelector:T||"DecadeLevel",classNames:De,styles:Oe,unstyled:k,size:d,attributes:p},G=typeof Q=="boolean"?Q:m?!Te(A).endOf("year").isBefore(m):!1,oe=typeof ne=="boolean"?ne:g?!Te(v).startOf("year").isAfter(g):!1,le=(we,X)=>Te(we).locale(l||f.locale).format(X);return O.jsxs(F.Box,{"data-decade-level":!0,size:d,ref:n,...b,children:[O.jsx(or,{label:typeof re=="function"?re(v,A):`${le(v,re)} – ${le(A,re)}`,__preventFocus:I,__stopPropagation:S,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,nextDisabled:G,previousDisabled:oe,hasNextLevel:!1,levelControlAriaLabel:J,withNext:V,withPrevious:de,headerControlsOrder:he,...Y}),O.jsx(eo,{decade:s,locale:l,minDate:g,maxDate:m,yearsListFormat:h,getYearControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:I,__stopPropagation:S,withCellSpacing:L,...Y})]})});no.classes={...eo.classes,...or.classes},no.displayName="@mantine/dates/DecadeLevel";const Lg={yearLabelFormat:"YYYY"},ro=F.factory((i,n)=>{const r=F.useProps("YearLevel",Lg,i),{year:s,locale:l,minDate:g,maxDate:m,monthsListFormat:h,getMonthControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,withCellSpacing:L,__preventFocus:I,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:ne,previousDisabled:J,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:De,yearLabelFormat:Oe,__staticSelector:k,__stopPropagation:T,size:S,classNames:d,styles:p,unstyled:b,attributes:f,...v}=r,A=ir(),Y={__staticSelector:k||"YearLevel",classNames:d,styles:p,unstyled:b,size:S,attributes:f},G=typeof ne=="boolean"?ne:m?!Te(s).endOf("year").isBefore(m):!1,oe=typeof J=="boolean"?J:g?!Te(s).startOf("year").isAfter(g):!1;return O.jsxs(F.Box,{"data-year-level":!0,size:S,ref:n,...v,children:[O.jsx(or,{label:typeof Oe=="function"?Oe(s):Te(s).locale(l||A.locale).format(Oe),__preventFocus:I,__stopPropagation:T,nextIcon:$,previousIcon:H,nextLabel:se,previousLabel:ue,onNext:ae,onPrevious:ce,onLevelClick:Q,nextDisabled:G,previousDisabled:oe,hasNextLevel:V,levelControlAriaLabel:de,withNext:he,withPrevious:re,headerControlsOrder:De,...Y}),O.jsx(to,{year:s,locale:l,minDate:g,maxDate:m,monthsListFormat:h,getMonthControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:R,__preventFocus:I,__stopPropagation:T,withCellSpacing:L,...Y})]})});ro.classes={...or.classes,...to.classes},ro.displayName="@mantine/dates/YearLevel";const Ng={monthLabelFormat:"MMMM YYYY"},io=F.factory((i,n)=>{const r=F.useProps("MonthLevel",Ng,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:H,__onDayKeyDown:se,__onDayClick:ue,__onDayMouseEnter:ae,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:k,onLevelClick:T,nextDisabled:S,previousDisabled:d,hasNextLevel:p,levelControlAriaLabel:b,withNext:f,withPrevious:v,headerControlsOrder:A,monthLabelFormat:Y,classNames:G,styles:oe,unstyled:le,__staticSelector:we,size:X,static:be,attributes:_e,...ve}=r,B=ir(),Z={__staticSelector:we||"MonthLevel",classNames:G,styles:oe,unstyled:le,size:X,attributes:_e},W=typeof S=="boolean"?S:N?!Te(s).endOf("month").isBefore(N):!1,K=typeof d=="boolean"?d:E?!Te(s).startOf("month").isAfter(E):!1;return O.jsxs(F.Box,{"data-month-level":!0,size:X,ref:n,...ve,children:[O.jsx(or,{label:typeof Y=="function"?Y(s):Te(s).locale(l||B.locale).format(Y),__preventFocus:J,__stopPropagation:V,nextIcon:de,previousIcon:he,nextLabel:re,previousLabel:De,onNext:Oe,onPrevious:k,onLevelClick:T,nextDisabled:W,previousDisabled:K,hasNextLevel:p,levelControlAriaLabel:b,withNext:f,withPrevious:v,headerControlsOrder:A,...Z}),O.jsx(Ji,{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:H,__onDayKeyDown:se,__onDayClick:ue,__onDayMouseEnter:ae,__preventFocus:J,__stopPropagation:V,static:be,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,...Z})]})});io.classes={...Ji.classes,...or.classes},io.displayName="@mantine/dates/MonthLevel";var Il={levelsGroup:"m_30b26e33"};const sr=F.factory((i,n)=>{const r=F.useProps("LevelsGroup",null,i),{classNames:s,className:l,style:g,styles:m,unstyled:h,vars:C,__staticSelector:D,attributes:E,...N}=r,R=F.useStyles({name:D||"LevelsGroup",classes:Il,props:r,className:l,style:g,classNames:s,styles:m,unstyled:h,attributes:E,vars:C,rootSelector:"levelsGroup"});return O.jsx(F.Box,{ref:n,...R("levelsGroup"),...N})});sr.classes=Il,sr.displayName="@mantine/dates/LevelsGroup";const Ig={numberOfColumns:1},oo=F.factory((i,n)=>{const r=F.useProps("DecadeLevelGroup",Ig,i),{decade:s,locale:l,minDate:g,maxDate:m,yearsListFormat:h,getYearControlProps:C,__onControlClick:D,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,nextDisabled:ae,previousDisabled:ce,headerControlsOrder:Q,classNames:ne,styles:J,unstyled:V,__staticSelector:de,__stopPropagation:he,numberOfColumns:re,levelControlAriaLabel:De,decadeLabelFormat:Oe,size:k,vars:T,attributes:S,...d}=r,p=ye.useRef([]),b=Array(re).fill(0).map((f,v)=>{const A=Te(s).add(v*10,"years").format("YYYY-MM-DD");return O.jsx(no,{size:k,yearsListFormat:h,decade:A,withNext:v===re-1,withPrevious:v===0,decadeLabelFormat:Oe,__onControlClick:D,__onControlMouseEnter:E,__onControlKeyDown:(Y,G)=>Rs({levelIndex:v,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:Y,controlsRef:p}),__getControlRef:(Y,G,oe)=>{Array.isArray(p.current[v])||(p.current[v]=[]),Array.isArray(p.current[v][Y])||(p.current[v][Y]=[]),p.current[v][Y][G]=oe},levelControlAriaLabel:typeof De=="function"?De(A):De,locale:l,minDate:g,maxDate:m,__preventFocus:R,__stopPropagation:he,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,nextDisabled:ae,previousDisabled:ce,getYearControlProps:C,__staticSelector:de||"DecadeLevelGroup",classNames:ne,styles:J,unstyled:V,withCellSpacing:N,headerControlsOrder:Q,attributes:S},v)});return O.jsx(sr,{classNames:ne,styles:J,__staticSelector:de||"DecadeLevelGroup",ref:n,size:k,unstyled:V,attributes:S,...d,children:b})});oo.classes={...sr.classes,...no.classes},oo.displayName="@mantine/dates/DecadeLevelGroup";const $g={numberOfColumns:1},so=F.factory((i,n)=>{const r=F.useProps("YearLevelGroup",$g,i),{year:s,locale:l,minDate:g,maxDate:m,monthsListFormat:h,getMonthControlProps:C,__onControlClick:D,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:R,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,headerControlsOrder:J,classNames:V,styles:de,unstyled:he,__staticSelector:re,__stopPropagation:De,numberOfColumns:Oe,levelControlAriaLabel:k,yearLabelFormat:T,size:S,vars:d,attributes:p,...b}=r,f=ye.useRef([]),v=Array(Oe).fill(0).map((A,Y)=>{const G=Te(s).add(Y,"years").format("YYYY-MM-DD");return O.jsx(ro,{size:S,monthsListFormat:h,year:G,withNext:Y===Oe-1,withPrevious:Y===0,yearLabelFormat:T,__stopPropagation:De,__onControlClick:D,__onControlMouseEnter:E,__onControlKeyDown:(oe,le)=>Rs({levelIndex:Y,rowIndex:le.rowIndex,cellIndex:le.cellIndex,event:oe,controlsRef:f}),__getControlRef:(oe,le,we)=>{Array.isArray(f.current[Y])||(f.current[Y]=[]),Array.isArray(f.current[Y][oe])||(f.current[Y][oe]=[]),f.current[Y][oe][le]=we},levelControlAriaLabel:typeof k=="function"?k(G):k,locale:l,minDate:g,maxDate:m,__preventFocus:R,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:se,onPrevious:ue,onLevelClick:ae,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,getMonthControlProps:C,classNames:V,styles:de,unstyled:he,__staticSelector:re||"YearLevelGroup",withCellSpacing:N,headerControlsOrder:J,attributes:p},Y)});return O.jsx(sr,{classNames:V,styles:de,__staticSelector:re||"YearLevelGroup",ref:n,size:S,unstyled:he,attributes:p,...b,children:v})});so.classes={...ro.classes,...sr.classes},so.displayName="@mantine/dates/YearLevelGroup";const Bg={numberOfColumns:1},ao=F.factory((i,n)=>{const r=F.useProps("MonthLevelGroup",Bg,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__onDayClick:H,__onDayMouseEnter:se,withCellSpacing:ue,highlightToday:ae,withWeekNumbers:ce,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:k,hasNextLevel:T,headerControlsOrder:S,classNames:d,styles:p,unstyled:b,numberOfColumns:f,levelControlAriaLabel:v,monthLabelFormat:A,__staticSelector:Y,__stopPropagation:G,size:oe,static:le,vars:we,attributes:X,...be}=r,_e=ye.useRef([]),ve=Array(f).fill(0).map((B,Z)=>{const W=Te(s).add(Z,"months").format("YYYY-MM-DD");return O.jsx(io,{month:W,withNext:Z===f-1,withPrevious:Z===0,monthLabelFormat:A,__stopPropagation:G,__onDayClick:H,__onDayMouseEnter:se,__onDayKeyDown:(K,ee)=>Rs({levelIndex:Z,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:K,controlsRef:_e}),__getDayRef:(K,ee,Se)=>{Array.isArray(_e.current[Z])||(_e.current[Z]=[]),Array.isArray(_e.current[Z][K])||(_e.current[Z][K]=[]),_e.current[Z][K][ee]=Se},levelControlAriaLabel:typeof v=="function"?v(W):v,locale:l,firstDayOfWeek:g,weekdayFormat:m,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:R,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:V,previousLabel:de,onNext:he,onPrevious:re,onLevelClick:De,nextDisabled:Oe,previousDisabled:k,hasNextLevel:T,classNames:d,styles:p,unstyled:b,__staticSelector:Y||"MonthLevelGroup",size:oe,static:le,withCellSpacing:ue,highlightToday:ae,withWeekNumbers:ce,headerControlsOrder:S,attributes:X},Z)});return O.jsx(sr,{classNames:d,styles:p,__staticSelector:Y||"MonthLevelGroup",ref:n,size:oe,attributes:X,...be,children:ve})});ao.classes={...sr.classes,...io.classes},ao.displayName="@mantine/dates/MonthLevelGroup";const $l=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Bl=(i,n)=>{const r=n?wl:cn;return Array.isArray(i)?i.map(r):r(i)};function Is({type:i,value:n,defaultValue:r,onChange:s,withTime:l=!1}){const g=ye.useRef(i),[m,h,C]=kt.useUncontrolled({value:Bl(n,l),defaultValue:Bl(r,l),finalValue:$l(i),onChange:s});let D=m;return g.current!==i&&(g.current=i,n===void 0&&(D=r!==void 0?r:$l(i),h(D))),[D,h,C]}function $s(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function jg(i){return i===0?"month":i===1?"year":"decade"}function gi(i,n,r){return jg(kt.clamp($s(i,0),$s(n,0),$s(r,2)))}const Yg={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},uo=F.factory((i,n)=>{const r=F.useProps("Calendar",Yg,i),{vars:s,maxLevel:l,minLevel:g,defaultLevel:m,level:h,onLevelChange:C,date:D,defaultDate:E,onDateChange:N,numberOfColumns:R,columnsToScroll:L,ariaLabels:I,nextLabel:$,previousLabel:H,onYearSelect:se,onMonthSelect:ue,onYearMouseEnter:ae,onMonthMouseEnter:ce,headerControlsOrder:Q,__updateDateOnYearSelect:ne,__updateDateOnMonthSelect:J,__setDateRef:V,__setLevelRef:de,firstDayOfWeek:he,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:k,renderDay:T,hideOutsideDates:S,hideWeekdays:d,getDayAriaLabel:p,monthLabelFormat:b,nextIcon:f,previousIcon:v,__onDayClick:A,__onDayMouseEnter:Y,withCellSpacing:G,highlightToday:oe,withWeekNumbers:le,monthsListFormat:we,getMonthControlProps:X,yearLabelFormat:be,yearsListFormat:_e,getYearControlProps:ve,decadeLabelFormat:B,classNames:Z,styles:W,unstyled:K,minDate:ee,maxDate:Se,locale:u,__staticSelector:c,size:_,__preventFocus:M,__stopPropagation:U,onNextDecade:te,onPreviousDecade:Ae,onNextYear:Ce,onPreviousYear:Pe,onNextMonth:me,onPreviousMonth:Re,static:Ie,enableKeyboardNavigation:ke,attributes:Je,...Ze}=r,{resolvedClassNames:rt,resolvedStyles:Tt}=F.useResolvedStylesApi({classNames:Z,styles:W,props:r}),[pt,it]=kt.useUncontrolled({value:h?gi(h,g,l):void 0,defaultValue:m?gi(m,g,l):void 0,finalValue:gi(void 0,g,l),onChange:C}),[Tn,At]=Is({type:"default",value:cn(D),defaultValue:cn(E),onChange:N});ye.useImperativeHandle(V,()=>ze=>{At(ze)}),ye.useImperativeHandle(de,()=>ze=>{it(ze)});const Pn={__staticSelector:c||"Calendar",styles:Tt,classNames:rt,unstyled:K,size:_,attributes:Je},Dt=L||R||1,Wt=new Date,Mn=ee&&Te(Wt).isAfter(ee)?ee:Te(Wt).format("YYYY-MM-DD"),yt=Tn||Mn,fn=()=>{const ze=Te(yt).add(Dt,"month").format("YYYY-MM-DD");me?.(ze),At(ze)},hn=()=>{const ze=Te(yt).subtract(Dt,"month").format("YYYY-MM-DD");Re?.(ze),At(ze)},Ut=()=>{const ze=Te(yt).add(Dt,"year").format("YYYY-MM-DD");Ce?.(ze),At(ze)},It=()=>{const ze=Te(yt).subtract(Dt,"year").format("YYYY-MM-DD");Pe?.(ze),At(ze)},zt=()=>{const ze=Te(yt).add(10*Dt,"year").format("YYYY-MM-DD");te?.(ze),At(ze)},qt=()=>{const ze=Te(yt).subtract(10*Dt,"year").format("YYYY-MM-DD");Ae?.(ze),At(ze)},Jt=ye.useRef(null);ye.useEffect(()=>{if(!ke||Ie)return;const ze=ut=>{if(!Jt.current?.contains(document.activeElement))return;const $t=ut.ctrlKey||ut.metaKey,Xt=ut.shiftKey;switch(ut.key){case"ArrowUp":$t&&Xt?(ut.preventDefault(),qt()):$t&&(ut.preventDefault(),It());break;case"ArrowDown":$t&&Xt?(ut.preventDefault(),zt()):$t&&(ut.preventDefault(),Ut());break;case"y":case"Y":pt==="month"&&(ut.preventDefault(),it("year"));break}};return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[ke,Ie,pt,Ut,It,zt,qt]);const Ht=ze=>{Jt.current=ze,typeof n=="function"?n(ze):n&&(n.current=ze)};return O.jsxs(F.Box,{ref:Ht,size:_,"data-calendar":!0,...Ze,children:[pt==="month"&&O.jsx(ao,{month:yt,minDate:ee,maxDate:Se,firstDayOfWeek:he,weekdayFormat:re,weekendDays:De,getDayProps:Oe,excludeDate:k,renderDay:T,hideOutsideDates:S,hideWeekdays:d,getDayAriaLabel:p,onNext:fn,onPrevious:hn,hasNextLevel:l!=="month",onLevelClick:()=>it("year"),numberOfColumns:R,locale:u,levelControlAriaLabel:I?.monthLevelControl,nextLabel:I?.nextMonth??$,nextIcon:f,previousLabel:I?.previousMonth??H,previousIcon:v,monthLabelFormat:b,__onDayClick:A,__onDayMouseEnter:Y,__preventFocus:M,__stopPropagation:U,static:Ie,withCellSpacing:G,highlightToday:oe,withWeekNumbers:le,headerControlsOrder:Q,...Pn}),pt==="year"&&O.jsx(so,{year:yt,numberOfColumns:R,minDate:ee,maxDate:Se,monthsListFormat:we,getMonthControlProps:X,locale:u,onNext:Ut,onPrevious:It,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>it("decade"),levelControlAriaLabel:I?.yearLevelControl,nextLabel:I?.nextYear??$,nextIcon:f,previousLabel:I?.previousYear??H,previousIcon:v,yearLabelFormat:be,__onControlMouseEnter:ce,__onControlClick:(ze,ut)=>{J&&At(ut),it(gi("month",g,l)),ue?.(ut)},__preventFocus:M,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Pn}),pt==="decade"&&O.jsx(oo,{decade:yt,minDate:ee,maxDate:Se,yearsListFormat:_e,getYearControlProps:ve,locale:u,onNext:zt,onPrevious:qt,numberOfColumns:R,nextLabel:I?.nextDecade??$,nextIcon:f,previousLabel:I?.previousDecade??H,previousIcon:v,decadeLabelFormat:B,__onControlMouseEnter:ae,__onControlClick:(ze,ut)=>{ne&&At(ut),it(gi("year",g,l)),se?.(ut)},__preventFocus:M,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Pn})]})});uo.classes={...oo.classes,...so.classes,...ao.classes},uo.displayName="@mantine/dates/Calendar";function Fg(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:m,previousIcon:h,date:C,defaultDate:D,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:I,previousLabel:$,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:ue,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:k,__setLevelRef:T,withWeekNumbers:S,headerControlsOrder:d,firstDayOfWeek:p,weekdayFormat:b,weekendDays:f,getDayProps:v,excludeDate:A,renderDay:Y,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:le,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:B,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:u,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:m,previousIcon:h,date:C,defaultDate:D,onDateChange:E,numberOfColumns:N,columnsToScroll:R,ariaLabels:L,nextLabel:I,previousLabel:$,onYearSelect:H,onMonthSelect:se,onYearMouseEnter:ue,onMonthMouseEnter:ae,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:V,onPreviousDecade:de,withCellSpacing:he,highlightToday:re,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:k,withWeekNumbers:S,headerControlsOrder:d,firstDayOfWeek:p,weekdayFormat:b,weekendDays:f,getDayProps:v,excludeDate:A,renderDay:Y,hideOutsideDates:G,hideWeekdays:oe,getDayAriaLabel:le,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:B,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:K,minDate:ee,maxDate:Se,locale:u},others:c}}function Wg(i){if(i===null)return null;const n=new Date(i);return Number.isNaN(n.getTime())||!i?null:Te(n).format("YYYY-MM-DD")}function Ug({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(new Date(i).getTime())||n&&Te(i).isAfter(n,"date")||r&&Te(i).isBefore(r,"date"))}const zg={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},lo=F.factory((i,n)=>{const r=F.useInputProps("DateInput",zg,i),{inputProps:s,wrapperProps:l,value:g,defaultValue:m,onChange:h,clearable:C,clearButtonProps:D,popoverProps:E,getDayProps:N,locale:R,valueFormat:L,dateParser:I,minDate:$,maxDate:H,fixOnBlur:se,onFocus:ue,onBlur:ae,onClick:ce,onKeyDown:Q,readOnly:ne,name:J,form:V,rightSection:de,unstyled:he,classNames:re,styles:De,allowDeselect:Oe,date:k,defaultDate:T,onDateChange:S,getMonthControlProps:d,getYearControlProps:p,...b}=r,f=ye.useRef(null),v=ye.useRef(null),[A,Y]=ye.useState(!1),{calendarProps:G,others:oe}=Fg(b),le=ir(),X=I||(Ce=>{const Pe=Te(Ce,L,le.getLocale(R)).toDate();return Number.isNaN(Pe.getTime())?Wg(Ce):Te(Pe).format("YYYY-MM-DD")}),be=Oe!==void 0?Oe:C,_e=Ce=>Ce?Te(Ce).locale(le.getLocale(R)).format(L):"",[ve,B,Z]=Is({type:"default",value:g,defaultValue:m,onChange:h}),[W,K]=Is({type:"default",value:k,defaultValue:m||T,onChange:S});ye.useEffect(()=>{Z&&g!==null&&K(g)},[Z,g]);const[ee,Se]=ye.useState(_e(ve));ye.useEffect(()=>{Se(_e(ve))},[le.getLocale(R)]);const u=Ce=>{const Pe=Ce.currentTarget.value;if(Se(Pe),Y(!0),Pe.trim()===""&&C)B(null);else{const me=X(Pe);me&&Ug({date:me,minDate:$,maxDate:H})&&(B(me),K(me))}},c=Ce=>{ae?.(Ce),Y(!1),se&&Se(_e(ve))},_=Ce=>{ue?.(Ce),Y(!0)},M=Ce=>{ce?.(Ce),Y(!0)},U=Ce=>{Ce.key==="Escape"&&Y(!1),Q?.(Ce)},te=Ce=>({...N?.(Ce),selected:Te(ve).isSame(Ce,"day"),onClick:Pe=>{N?.(Ce).onClick?.(Pe);const me=C&&be&&Te(ve).isSame(Ce,"day")?null:Ce;B(me),!Z&&me&&Se(_e(me)),Y(!1)}}),Ae=de||(C&&ve&&!ne?O.jsx(F.CloseButton,{variant:"transparent",onMouseDown:Ce=>Ce.preventDefault(),tabIndex:-1,onClick:()=>{B(null),!Z&&Se(""),Y(!1)},unstyled:he,size:s.size||"sm",...D}):null);return kt.useDidUpdate(()=>{ve!==void 0&&!A&&Se(_e(ve))},[ve]),kt.useClickOutside(()=>Y(!1),void 0,[f.current,v.current]),O.jsxs(O.Fragment,{children:[O.jsx(F.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:f,children:O.jsxs(F.Popover,{opened:A,trapFocus:!1,position:"bottom-start",disabled:ne,withRoles:!1,unstyled:he,...E,children:[O.jsx(F.Popover.Target,{children:O.jsx(F.Input,{"data-dates-input":!0,"data-read-only":ne||void 0,autoComplete:"off",ref:n,value:ee,onChange:u,onBlur:c,onFocus:_,onClick:M,onKeyDown:U,readOnly:ne,rightSection:Ae,...s,...oe,__staticSelector:"DateInput"})}),O.jsx(F.Popover.Dropdown,{onMouseDown:Ce=>Ce.preventDefault(),"data-dates-dropdown":!0,ref:v,children:O.jsx(uo,{__staticSelector:"DateInput",...G,classNames:re,styles:De,unstyled:he,__preventFocus:!0,minDate:$,maxDate:H,locale:R,getDayProps:te,size:s.size,date:W,onDateChange:K,getMonthControlProps:Ce=>({selected:typeof ve=="string"?Ns(Ce,ve):!1,...d?.(Ce)}),getYearControlProps:Ce=>({selected:typeof ve=="string"?Te(Ce).isSame(ve,"year"):!1,...p?.(Ce)}),attributes:l.attributes})})]})}),O.jsx(bl,{name:J,form:V,value:ve,type:"default"})]})});lo.classes={...F.Input.classes,...uo.classes},lo.displayName="@mantine/dates/DateInput";function jl(i){const n=An.c(47),{fields:r,onClose:s,queryKey:l,apiPath:g,steps:m,onCreated:h}=i,[C,D]=ye.useState(0),[E,N]=ye.useState(!1),[R,L]=ye.useState(),{mutateAsync:I,isError:$,error:H,isPending:se}=vl(g,l),{mutateAsync:ue,isPending:ae}=Ms(g,l),ce=se||ae;let Q;n[0]!==r?(Q=new Set(r.filter(Kg).map(Vg)),n[0]=r,n[1]=Q):Q=n[1];let ne;n[2]!==Q?(ne=[...Q],n[2]=Q,n[3]=ne):ne=n[3];const J=ne;let V;n[4]!==r?(V=r.reduce(Gg,{}),n[4]=r,n[5]=V):V=n[5];let de;n[6]!==r?(de=r.filter(Hg).reduce(qg,{}),n[6]=r,n[7]=de):de=n[7];let he;n[8]!==V||n[9]!==de?(he={mode:"uncontrolled",initialValues:V,validate:de},n[8]=V,n[9]=de,n[10]=he):he=n[10];const re=nu.useForm(he);let De;n[11]!==re||n[12]!==R?(De=function(v){const A=re.getValues();return v.conditional&&!v.conditional(A)?null:O.jsxs(ye.Fragment,{children:[(v.type===void 0||v.type=="text")&&O.jsx(F.TextInput,{label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id),type:v.id.includes("email")?"email":void 0,required:v.required},re.key(v.id)),v.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id),required:v.required},re.key(v.id)),v.type==="date"&&O.jsx(lo,{label:v.column.title,placeholder:v.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(v.id),required:v.required},re.key(v.id)),v.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:v.column.title,...re.getInputProps(v.id,{type:"checkbox"}),required:v.required},re.key(v.id)),v.type==="textarea"&&O.jsx(F.Textarea,{label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id),minRows:3,autosize:!0,required:v.required},re.key(v.id)),v.type==="custom"&&v.render&&v.render({...re.getValues(),...R&&{id:R}},re.setValues,N,{error:re.getInputProps(v.id).error,required:v.required})]},v.id)},n[11]=re,n[12]=R,n[13]=De):De=n[13];const Oe=De;let k;n[14]!==H?.message||n[15]!==H?.name||n[16]!==$?(k=$&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[14]=H?.message,n[15]=H?.name,n[16]=$,n[17]=k):k=n[17];let T;n[18]!==C||n[19]!==I||n[20]!==re||n[21]!==$||n[22]!==s||n[23]!==h||n[24]!==R||n[25]!==J.length||n[26]!==ue?(T=re.onSubmit(async f=>{if(R)await ue({...f,id:R});else{const v=await I(f);L(v.id),h?.(v.id)}J.length&&C<J.length-1?$||D(C+1):$||(re.setInitialValues(f),re.reset(),s())}),n[18]=C,n[19]=I,n[20]=re,n[21]=$,n[22]=s,n[23]=h,n[24]=R,n[25]=J.length,n[26]=ue,n[27]=T):T=n[27];let S;n[28]!==C||n[29]!==r||n[30]!==Oe||n[31]!==m||n[32]!==J?(S=J.length?O.jsx(F.Stepper,{active:C,size:"sm",children:J.map(f=>O.jsx(F.Stepper.Step,{...m&&m[f-1]?{label:m[f-1].label}:{},children:r.filter(v=>v.step===f).map(v=>Oe(v))},f))}):r.map(f=>Oe(f)),n[28]=C,n[29]=r,n[30]=Oe,n[31]=m,n[32]=J,n[33]=S):S=n[33];let d;n[34]!==C||n[35]!==E||n[36]!==ce||n[37]!==s||n[38]!==J.length?(d=!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>J.length?C===0?s():D(C-1):s(),variant:"outline",children:J.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:ce,children:J.length?C===J.length-1?"Speichern":"Weiter":"Speichern"})]}),n[34]=C,n[35]=E,n[36]=ce,n[37]=s,n[38]=J.length,n[39]=d):d=n[39];let p;n[40]!==d||n[41]!==T||n[42]!==S?(p=O.jsxs("form",{onSubmit:T,children:[S,d]}),n[40]=d,n[41]=T,n[42]=S,n[43]=p):p=n[43];let b;return n[44]!==p||n[45]!==k?(b=O.jsxs(O.Fragment,{children:[k,p]}),n[44]=p,n[45]=k,n[46]=b):b=n[46],b}function qg(i,n){return i[n.id]=(r,s)=>n.conditional&&!n.conditional(s)||r?null:"Pflichtfeld",i}function Hg(i){return i.required}function Gg(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function Vg(i){return i.step}function Kg(i){return typeof i.step=="number"}var[Zg,Bs]=F.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Yl=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:g,resetColumnsOrder:m,resetColumnsToggle:h,setColumnWidth:C,setMultipleColumnWidths:D,resetColumnsWidth:E}=i,[N,R]=ye.useState(""),[L,I]=ye.useState("");return O.jsx(Zg,{value:{sourceColumn:N,setSourceColumn:R,targetColumn:L,setTargetColumn:I,columnsToggle:l,setColumnsToggle:g,swapColumns:()=>{if(!r||!s||!N||!L)return;let $=r.indexOf(N),H=r.indexOf(L);if($!==-1&&H!==-1){let se=r.splice($,1)[0];r.splice(H,0,se),s([...r])}},resetColumnsOrder:m,resetColumnsToggle:h,setColumnWidth:C,setMultipleColumnWidths:D,resetColumnsWidth:E},children:n})};function Qg(){return O.jsx("tr",{className:"mantine-datatable-empty-row",children:O.jsx("td",{})})}function Jg(){return O.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),O.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),O.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),O.jsx("path",{d:"M3 3l18 18"})]})}function Xg({icon:i,text:n,active:r,children:s}){return O.jsx(F.Center,{className:"mantine-datatable-empty-state","data-active":r||void 0,children:s||O.jsxs(O.Fragment,{children:[i||O.jsx("div",{className:"mantine-datatable-empty-state-icon",children:O.jsx(Jg,{})}),O.jsx(F.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var e1=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V)&&J.push(V)}),ne.forEach(V=>{J.includes(V.accessor)||J.push(V.accessor)}),J}function l(Q,ne){let J=[];return Q.forEach(V=>{ne.find(de=>de.accessor===V.accessor)&&J.push(V)}),ne.forEach(V=>{J.find(de=>de.accessor===V.accessor)||J.push({accessor:V.accessor,defaultToggle:V.defaultToggle||!0,toggleable:V.toggleable,toggled:V.defaultToggle===void 0?!0:V.defaultToggle})}),J}function g(Q,ne){let J=[];return Q.forEach(V=>{let de=Object.keys(V)[0];ne.find(he=>he.accessor===de)&&J.push(V)}),ne.forEach(V=>{let de=V.accessor;if(!J.find(he=>Object.keys(he)[0]===de)){let he={};he[de]="",J.push(he)}}),J}function m(){let[Q,ne]=kt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?D:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=s(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[V,J]}function h(){let[Q,ne]=kt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?N:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=l(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[l(Q,n),J]}function C(){let[Q,ne]=kt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function J(he){i&&ne(he)}if(!i)return[Q,J];let V=g(Q,n),de=JSON.stringify(Q);return JSON.stringify(V)!==de&&J(V),[g(Q,n),J]}let D=n&&n.map(Q=>Q.accessor)||[],E=n&&n.map(Q=>({[Q.accessor]:Q.width??"initial"}))||[],N=n&&n.map(Q=>({accessor:Q.accessor,defaultToggle:Q.defaultToggle||!0,toggleable:Q.toggleable,toggled:Q.defaultToggle===void 0?!0:Q.defaultToggle})),[R,L]=m(),[I,$]=h(),[H,se]=C(),ue=()=>L(D),ae=()=>{$(N)},ce=()=>se(E);return{effectiveColumns:ye.useMemo(()=>R?R.map(Q=>n.find(ne=>ne.accessor===Q)).map(Q=>({...Q,hidden:Q?.hidden||!I.find(ne=>ne.accessor===Q?.accessor)?.toggled})).map(Q=>({...Q,width:H.find(ne=>ne[Q?.accessor])?.[Q?.accessor]})):n,[n,R,I,H]),setColumnsOrder:L,columnsOrder:R,resetColumnsOrder:ue,columnsToggle:I,setColumnsToggle:$,resetColumnsToggle:ae,columnsWidth:H,setColumnsWidth:se,setColumnWidth:(Q,ne)=>{let J=H.map(V=>V[Q]?{[Q]:ne}:V);se(J)},setMultipleColumnWidths:Q=>{let ne=H.map(J=>{let V=Object.keys(J)[0],de=Q.find(he=>he.accessor===V);return de?{[V]:de.width}:J});se(ne)},resetColumnsWidth:ce}},Fl=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function Wl(i){let n=ye.useRef(i);return n.current=i,n}var Ul="--mantine-datatable-header-height",zl="--mantine-datatable-footer-height",ql="--mantine-datatable-selection-column-width",Hl="--mantine-datatable-last-row-border-bottom";function En(i,n,r){i?.style.setProperty(n,r)}function js(i){let n=i.borderBoxSize?.[0]||i.contentBoxSize?.[0];return n?{width:n.inlineSize,height:n.blockSize}:{width:i.contentRect.width,height:i.contentRect.height}}function Ys(i,n,r){if(i){let s=new ResizeObserver(l=>{let g=l[0];g&&n(js(g))});return s.observe(i),()=>{s.disconnect(),r()}}}function t1({scrollCallbacks:i,withRowBorders:n}){let r={root:ye.useRef(null),table:ye.useRef(null),scrollViewport:ye.useRef(null),header:ye.useRef(null),footer:ye.useRef(null),selectionColumnHeader:ye.useRef(null)},{root:s,table:l,scrollViewport:g,header:m,footer:h,selectionColumnHeader:C}=r,D=Wl({withRowBorders:n}),E=Wl(i),N=ye.useRef(()=>{}),R=ye.useRef(()=>{}),L=ye.useCallback(I=>{E.current.onScroll?.(I),N.current()},[]);return ye.useEffect(()=>Ys(m.current,I=>{En(s.current,Ul,`${I.height}px`)},()=>En(s.current,Ul,"0")),[m.current]),ye.useEffect(()=>Ys(h.current,I=>{En(s.current,zl,`${I.height}px`)},()=>En(s.current,zl,"0")),[h.current]),ye.useEffect(()=>Ys(C.current,I=>{En(s.current,ql,`${I.width}px`)},()=>En(s.current,ql,"0")),[C.current]),Fl(()=>{if(typeof window===void 0)return;let I={top:!0,bottom:!0,left:!0,right:!0},$={width:0,height:0},H={width:0,height:0};function se(ne,J){let V=I[ne];return I[ne]=J,En(s.current,`--mantine-datatable-${ne}-shadow-opacity`,J?"0":"1"),V}function ue(){let ne=$.height-H.height,J=ne<0;En(s.current,"--mantine-datatable-footer-position",J?"relative":"sticky"),En(s.current,"--mantine-datatable-footer-bottom",J?`${ne}px`:"0")}function ae(){D.current.withRowBorders&&$.height<H.height?En(s.current,Hl,`${F.rem("1px")} solid var(--mantine-datatable-border-color)`):En(s.current,Hl,"unset")}R.current=ae;function ce(){let ne=E.current,J=g.current?.scrollTop??0,V=g.current?.scrollLeft??0,de=J===0,he=$.height-J-H.height<1,re=se("top",de),De=se("bottom",he);de&&de!==re&&ne.onScrollToTop?.(),he&&he!==De&&ne.onScrollToBottom?.();let Oe=V===0,k=$.width-V-H.width<1,T=se("left",Oe),S=se("right",k);Oe&&Oe!==T&&ne.onScrollToLeft?.(),k&&k!==S&&ne.onScrollToRight?.()}N.current=ce;let Q=new ResizeObserver(ne=>{for(let J of ne)switch(J.target.tagName){case"TABLE":{$=js(J);break}case"DIV":{H=js(J);break}}ce(),ue(),ae()});return Q.observe(l.current),Q.observe(g.current),()=>{Q.disconnect()}},[]),Fl(()=>{R.current()},[n]),{refs:r,onScroll:L}}function n1(i){let[n,r]=ye.useState(null),s=i?.join(":")||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function r1(i,n){let r=()=>{n(i.map(l=>l.matches))},s=i.map(l=>{try{return l.addEventListener("change",r),()=>l.removeEventListener("change",r)}catch{return l.addListener(r),()=>l.removeListener(r)}});return()=>{s.forEach(l=>l())}}function i1(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function o1(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=ye.useState(r?n:i1(i,n)),g=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return g.current=i.map(m=>window.matchMedia(m)),l(g.current.map(m=>m.matches)),r1(g.current,m=>{l(m)})},[i]),s}function s1(i){let n=F.useMantineTheme(),r=ye.useMemo(()=>i.map(l=>(typeof l=="function"?l(n):l)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return o1(r,s)}function co(i){let n=F.useMantineTheme(),r=typeof i=="function"?i(n):i;return kt.useMediaQuery(r||"",!0)}function Fs(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function a1(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Ws(i,n){return i.filter((r,s,l)=>s===l.findIndex(g=>n(r)===n(g)))}function Gl(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function Nt(i,n){return typeof n=="string"?Gl(i,n):n(i)}function u1({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:h,allowMultiple:C,initiallyExpanded:D}=i;n&&h==="always"?s=n.map(E=>Nt(E,r)):D&&(s=n.filter((E,N)=>D({record:E,index:N})).map(E=>Nt(E,r)),C||(s=[s[0]]))}let l,g,m=ye.useState(s);if(i){let{expandable:h,trigger:C,allowMultiple:D,collapseProps:E,content:N}=i;i.expanded?{recordIds:l,onRecordIdsChange:g}=i.expanded:[l,g]=m;let R=L=>g?.(l.filter(I=>I!==Nt(L,r)));return{expandOnClick:C!=="always"&&C!=="never",isRowExpanded:L=>C==="always"?!0:l.includes(Nt(L,r)),isExpandable:({record:L,index:I})=>h?h({record:L,index:I}):!0,expandRow:L=>{let I=Nt(L,r);g?.(D?[...l,I]:[I])},collapseRow:R,collapseProps:E,content:({record:L,index:I})=>()=>N({record:L,index:I,collapse:()=>R(L)})}}}function l1(i,n){let[r,s]=ye.useState(i),[l,g]=ye.useState(i),m=kt.useTimeout(()=>s(!0),0),h=kt.useTimeout(()=>g(!1),n||200);return ye.useEffect(()=>{i?(h.clear(),g(!0),m.start()):(m.clear(),s(!1),h.start())},[m,h,i]),{expanded:r,visible:l}}var Us="mantine-datatable-nowrap",zs="mantine-datatable-ellipsis",Lr="mantine-datatable-pointer-cursor",Vl="mantine-datatable-context-menu-cursor",c1="mantine-datatable-text-selection-disabled",fo="mantine-datatable-text-align-left",ho="mantine-datatable-text-align-center",po="mantine-datatable-text-align-right";function f1({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:g,textAlign:m,width:h}){return co(r)?O.jsx(F.TableTh,{className:ht({[Us]:l||g,[zs]:g,[fo]:m==="left",[ho]:m==="center",[po]:m==="right"},i),style:[{width:h,minWidth:h,maxWidth:h},n],children:s}):null}function h1({shadowVisible:i}){return O.jsx(F.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}function d1({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:g,ref:m}){return O.jsx(F.TableTfoot,{ref:m,className:ht("mantine-datatable-footer",i),style:n,children:O.jsxs(F.TableTr,{children:[l&&O.jsx(h1,{shadowVisible:g}),r.map(({hidden:h,...C})=>{if(h)return null;let{accessor:D,visibleMediaQuery:E,textAlign:N,width:R,footer:L,footerClassName:I,footerStyle:$,noWrap:H,ellipsis:se}={...s,...C};return O.jsx(f1,{className:I,style:$,visibleMediaQuery:E,textAlign:N,width:R,title:L,noWrap:H,ellipsis:se},D)})]})})}function p1({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:g}}){let m=ye.useMemo(()=>n.map(({visibleMediaQuery:D})=>D),[n]),h=s1(m),C=ye.useMemo(()=>n.filter(({hidden:D},E)=>!D&&h?.[E]).length,[n,h]);return C>0?O.jsx(F.TableTh,{colSpan:C,className:ht("mantine-datatable-column-group-header-cell",{[fo]:s==="left",[ho]:s==="center",[po]:s==="right"},l),style:g,children:r??Fs(i)}):null}function g1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function v1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function m1({children:i,isActive:n,filterPopoverProps:r,filterPopoverDisableClickOutside:s}){let[l,{close:g,toggle:m}]=kt.useDisclosure(!1),h=n?v1:g1,C=kt.useClickOutside(g);return s&&(C=void 0),O.jsxs(F.Popover,{withArrow:!0,shadow:"md",opened:l,onClose:g,trapFocus:!0,...r,children:[O.jsx(F.PopoverTarget,{children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:D=>{D.preventDefault(),m()},onKeyDown:D=>D.stopPropagation(),children:O.jsx(h,{})})}),O.jsx(F.PopoverDropdown,{ref:C,onClick:D=>D.stopPropagation(),onKeyDown:D=>D.stopPropagation(),children:typeof i=="function"?i({close:g}):i})]})}var y1=i=>{let{accessor:n,columnRef:r}=i,[s,l]=ye.useState(!1),g=ye.useRef(0),m=ye.useRef({current:0,next:0}),{setMultipleColumnWidths:h}=Bs(),C=ye.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let N=r.current,R=N.nextElementSibling;for(;R;){let ae=R.getAttribute("data-accessor");if(ae&&ae!=="__selection__")break;R=R.nextElementSibling}if(!R)return;let L=R.getAttribute("data-accessor");if(!L)return;let I=L==="__selection__";l(!0),g.current=E.clientX;let $=N.offsetWidth,H=R.offsetWidth;m.current={current:$,next:H};let se=ae=>{if(!r.current)return;let ce=r.current,Q=ce.nextElementSibling;if(!Q)return;let ne=ae.clientX-g.current,J=50,V=m.current.current-J,de=m.current.next-J,he=Math.max(-V,Math.min(ne,de)),re=m.current.current+he,De=m.current.next-he;ce.style.width=`${re}px`,Q.style.width=`${De}px`,ce.style.minWidth=`${re}px`,ce.style.maxWidth=`${re}px`,Q.style.minWidth=`${De}px`,Q.style.maxWidth=`${De}px`},ue=()=>{if(!r.current)return;let ae=r.current,ce=ae.nextElementSibling;l(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Q=parseInt(ae.style.width)||ae.offsetWidth,ne=ce?parseInt(ce.style.width)||ce.offsetWidth:0,J=[{accessor:n,width:`${Q}px`}];if(ce&&!I){let V=ce.getAttribute("data-accessor");V&&J.push({accessor:V,width:`${ne}px`})}setTimeout(()=>{h(J)},0),document.removeEventListener("mousemove",se),document.removeEventListener("mouseup",ue)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",se),document.addEventListener("mouseup",ue)},[n,h]),D=ye.useCallback(()=>{if(!r.current)return;let E=r.current,N=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let R=[{accessor:n,width:"initial"}];if(N){N.style.width="",N.style.minWidth="",N.style.maxWidth="";let L=N.getAttribute("data-accessor");L&&L!=="__selection__"&&R.push({accessor:L,width:"initial"})}setTimeout(()=>{h(R)},0)},[n,h]);return O.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:C,onDoubleClick:D,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};function _1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M12 5l0 14"}),O.jsx("path",{d:"M16 9l-4 -4"}),O.jsx("path",{d:"M8 9l4 -4"})]})}function w1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 7l4 -4l4 4"}),O.jsx("path",{d:"M8 17l4 4l4 -4"}),O.jsx("path",{d:"M12 3l0 18"})]})}function b1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),O.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function x1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M18 6l-12 12"}),O.jsx("path",{d:"M6 6l12 12"})]})}function C1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:l,sortable:g,draggable:m,toggleable:h,resizable:C,sortIcons:D,textAlign:E,width:N,sortStatus:R,onSortStatusChange:L,filter:I,filterPopoverProps:$,filterPopoverDisableClickOutside:H,filtering:se,sortKey:ue}){let{setSourceColumn:ae,setTargetColumn:ce,swapColumns:Q,setColumnsToggle:ne}=Bs(),[J,V]=ye.useState(!1),de=ye.useRef(null);if(!co(s))return null;let he=l??Fs(r),re=typeof he=="string"?he:void 0,De=g&&L?b=>{b?.defaultPrevented||L({sortKey:ue,columnAccessor:r,direction:R?.columnAccessor===r?R.direction==="asc"?"desc":"asc":R?.direction??"asc"})}:void 0,Oe=b=>{b.stopPropagation(),ae(r),V(!1)},k=b=>{b.preventDefault(),ce(r),V(!0)},T=()=>{ce(r),V(!1),Q()},S=()=>{V(!0)},d=()=>{V(!1)},p=b=>{b.stopPropagation(),ne(f=>f.map(v=>v.accessor===r?{...v,toggled:!1}:v))};return O.jsxs(F.TableTh,{"data-accessor":r,className:ht({"mantine-datatable-header-cell-sortable":g,"mantine-datatable-header-cell-toggleable":h,"mantine-datatable-header-cell-resizable":C},i),style:[{width:N,...C?{minWidth:"1px"}:{minWidth:N,maxWidth:N}},n],role:g?"button":void 0,tabIndex:g?0:void 0,onClick:De,onKeyDown:b=>b.key==="Enter"&&De?.(),ref:de,children:[O.jsxs(F.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[O.jsxs(F.Flex,{align:"center",w:"100%",className:ht({"mantine-datatable-header-cell-draggable":m,"mantine-datatable-header-cell-drag-over":J}),draggable:m,onDragStart:m?Oe:void 0,onDragEnter:m?S:void 0,onDragOver:m?k:void 0,onDrop:m?T:void 0,onDragLeave:m?d:void 0,children:[m?O.jsx(F.Center,{role:"img","aria-label":"Drag column",children:O.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:b=>{b.stopPropagation()},children:O.jsx(b1,{})})}):null,O.jsx(F.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[fo]:E==="left",[ho]:E==="center",[po]:E==="right"},Us,zs),title:re,children:he})]}),h?O.jsx(F.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:O.jsx(F.ActionIcon,{size:"xs",variant:"light",onClick:p,children:O.jsx(x1,{})})}):null,g||R?.columnAccessor===r?O.jsx(O.Fragment,{children:R?.columnAccessor===r?O.jsx(F.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":R.direction==="desc"}),role:"img","aria-label":`Sorted ${R.direction==="desc"?"descending":"ascending"}`,children:D?.sorted||O.jsx(_1,{})}):O.jsx(F.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:D?.unsorted||O.jsx(w1,{})})}):null,I?O.jsx(m1,{filterPopoverProps:$,isActive:!!se,filterPopoverDisableClickOutside:H,children:I}):null]}),C&&r!=="__selection__"?O.jsx(y1,{accessor:r,columnRef:de}):null]})}function S1({className:i,style:n,trigger:r,shadowVisible:s,checked:l,indeterminate:g,checkboxProps:m,onChange:h,rowSpan:C,ref:D}){let E=!m.disabled;return O.jsx(F.TableTh,{ref:D,className:ht("mantine-datatable-header-selector-cell",{[Lr]:r==="cell"&&E},i),style:n,rowSpan:C,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?h:void 0,children:O.jsx(F.Checkbox,{classNames:E?{input:Lr}:void 0,checked:l,indeterminate:g,onChange:h,...m,disabled:!(h||m.onChange)||m.disabled})})}function A1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:g,columns:m,defaultColumnProps:h,groups:C,selectionTrigger:D,selectionVisible:E,selectionChecked:N,selectionIndeterminate:R,onSelectionChange:L,selectionCheckboxProps:I,selectorCellShadowVisible:$,selectionColumnClassName:H,selectionColumnStyle:se,ref:ue}){let ae=E?O.jsx(S1,{ref:i,className:H,style:se,trigger:D,shadowVisible:$,checked:N,indeterminate:R,checkboxProps:I,onChange:L,rowSpan:C?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:Q}=Bs(),[ne,J]=ye.useState(!1),V=m.some(re=>re.toggleable),de=V?Object.fromEntries(m.map(({accessor:re,title:De})=>[re,De??Fs(String(re))])):void 0,he=O.jsxs(F.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:ue,onContextMenu:V?re=>{re.preventDefault(),J(De=>!De)}:void 0,children:[C&&O.jsxs(F.TableTr,{children:[ae,C.map(re=>O.jsx(p1,{group:re},re.id))]}),O.jsxs(F.TableTr,{children:[!C&&ae,m.map(({hidden:re,...De},Oe)=>{if(re)return null;let{accessor:k,visibleMediaQuery:T,textAlign:S,width:d,title:p,sortable:b,draggable:f,toggleable:v,resizable:A,titleClassName:Y,titleStyle:G,filter:oe,filterPopoverProps:le,filterPopoverDisableClickOutside:we,filtering:X,sortKey:be}={...h,...De};return O.jsx(C1,{accessor:k,className:Y,style:G,visibleMediaQuery:T,textAlign:S,width:d,title:p,sortable:b,draggable:f,toggleable:v,resizable:A&&Oe<m.length-1,sortStatus:s,sortIcons:l,sortKey:be,onSortStatusChange:g,filter:oe,filterPopoverProps:le,filterPopoverDisableClickOutside:we,filtering:X},k)})]})]});return V?O.jsxs(F.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ne,onChange:J,children:[O.jsx(F.PopoverTarget,{children:he}),O.jsx(F.PopoverDropdown,{children:O.jsx(F.Stack,{children:ce.filter(re=>re.toggleable).map(re=>O.jsx(F.Group,{children:O.jsx(F.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[re.accessor],checked:re.toggled,onChange:De=>{Q(ce.map(Oe=>Oe.accessor===re.accessor?{...Oe,toggled:De.currentTarget.checked}:Oe))}})},re.accessor))})})]}):he}function D1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:l,color:g}){return O.jsx(F.Center,{className:ht("mantine-datatable-loader",{"mantine-datatable-loader-fetching":i}),style:[{backdropFilter:r?`blur(${r}px)`:void 0}],children:i&&(n||O.jsx(F.Loader,{size:s,type:l,color:g}))})}function mt(i,n,r){return i?F.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function O1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:g,highlightOnHoverColor:m}){return{"--mantine-datatable-color-light":mt(n,i,"light"),"--mantine-datatable-color-dark":mt(n,i,"dark"),"--mantine-datatable-background-color-light":mt(r,i,"light"),"--mantine-datatable-background-color-dark":mt(r,i,"dark"),"--mantine-datatable-border-color-light":mt(s,i,"light"),"--mantine-datatable-border-color-dark":mt(s,i,"dark"),"--mantine-datatable-row-border-color-light":mt(l,i,"light"),"--mantine-datatable-row-border-color-dark":mt(l,i,"dark"),"--mantine-datatable-striped-color-light":mt(g,i,"light"),"--mantine-datatable-striped-color-dark":mt(g,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":mt(m,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":mt(m,i,"dark")}}function Kl({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":mt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":mt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":mt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":mt(r,i,"dark")}}function E1({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":mt(n,i,"light"),"--mantine-datatable-row-color-dark":mt(n,i,"dark"),"--mantine-datatable-row-background-color-light":mt(r,i,"light"),"--mantine-datatable-row-background-color-dark":mt(r,i,"dark")}}function T1(){return O.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[O.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),O.jsx("path",{d:"M8 9l4 -4l4 4"}),O.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Zl={xs:F.rem(22),sm:F.rem(26),md:F.rem(32),lg:F.rem(38),xl:F.rem(44)};function P1({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:g,onChange:m}){return O.jsxs(F.Group,{gap:"xs",children:[O.jsx(F.Text,{component:"div",size:i,children:n}),O.jsxs(F.Menu,{withinPortal:!0,withArrow:!0,offset:2,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[O.jsx(F.MenuTarget,{children:O.jsx(F.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:O.jsx(T1,{}),style:[{fontWeight:"normal"},h=>({height:Zl[i],paddingLeft:h.spacing[i],paddingRight:h.spacing[i]})],children:s})}),O.jsx(F.MenuDropdown,{children:r.map(h=>{let C=h===s;return O.jsx(F.MenuItem,{className:ht({"mantine-datatable-page-size-selector-active":C}),style:[{height:Zl[i]},C&&(l||g)?D=>Kl({theme:D,paginationActiveTextColor:l,paginationActiveBackgroundColor:g}):void 0],disabled:C,onClick:()=>m(h),children:O.jsx(F.Text,{component:"div",size:i,children:h})},h)})})]})]})}function M1({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:g,paginationWithControls:m,paginationActiveTextColor:h,paginationActiveBackgroundColor:C,paginationSize:D,loadingText:E,noRecordsText:N,paginationText:R,totalRecords:L,recordsPerPage:I,onRecordsPerPageChange:$,recordsPerPageLabel:H,recordsPerPageOptions:se,recordsLength:ue,horizontalSpacing:ae,paginationWrapBreakpoint:ce,getPaginationControlProps:Q}){let ne;if(L){let V=(s-1)*I+1,de=V+(ue||0)-1;ne=R({from:V,to:de,totalRecords:L})}else ne=r?E:N;let J=co(({breakpoints:V})=>`(min-width: ${typeof ce=="number"?`${F.rem(ce)}rem`:V[ce]||ce})`);return O.jsxs(F.Box,{px:ae??"xs",py:"xs",className:ht("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[O.jsx(F.Text,{component:"div",className:"mantine-datatable-pagination-text",size:D,children:ne}),se&&O.jsx(P1,{activeTextColor:h,activeBackgroundColor:C,size:D,label:H,values:se,value:I,onChange:$}),O.jsx(F.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!ue}),control:"mantine-datatable-pagination-pages-control"},style:h||C?V=>Kl({theme:V,paginationActiveTextColor:h,paginationActiveBackgroundColor:C}):void 0,withEdges:g,withControls:m,value:s,onChange:l,size:D,total:Math.ceil(L/I),getControlProps:Q})]})}function R1({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:g,onDoubleClick:m,onContextMenu:h,noWrap:C,ellipsis:D,textAlign:E,width:N,accessor:R,render:L,defaultRender:I,customCellAttributes:$}){return co(r)?O.jsx(F.TableTd,{className:ht({[Us]:C||D,[zs]:D,[Lr]:g||m,[Vl]:h,[fo]:E==="left",[ho]:E==="center",[po]:E==="right"},i),style:[{width:N,minWidth:N,maxWidth:N},n],onClick:g,onDoubleClick:m,onContextMenu:h,...$?.(s,l),children:L?L(s,l):I?I(s,l,R):Gl(s,R)}):null}function k1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:l,visible:g}=l1(i,s?.transitionDuration);return g?O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{}),O.jsx(F.TableTr,{children:O.jsx(F.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:O.jsx(F.Collapse,{in:l,...s,children:O.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function L1({className:i,style:n,record:r,index:s,trigger:l,onChange:g,withRightShadow:m,checkboxProps:h,getCheckboxProps:C,...D}){let E={...h,...C(r,s)},N=!D.disabled&&!E.disabled,R=L=>{L.stopPropagation(),l==="cell"&&N&&g?.(L)};return O.jsx(F.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Lr]:l==="cell"&&N},i),style:n,"data-shadow-visible":m||void 0,onClick:R,children:O.jsx(F.Checkbox,{classNames:N?{input:Lr}:void 0,onChange:g,...D,...E})})}function N1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:g,selectionVisible:m,selectionChecked:h,onSelectionChange:C,isRecordSelectable:D,selectionCheckboxProps:E,getSelectionCheckboxProps:N,onClick:R,onDoubleClick:L,onContextMenu:I,onCellClick:$,onCellDoubleClick:H,onCellContextMenu:se,expansion:ue,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J,selectorCellShadowVisible:V,selectionColumnClassName:de,selectionColumnStyle:he,rowFactory:re}){let De=O.jsxs(O.Fragment,{children:[m&&O.jsx(L1,{className:de,style:he,record:i,index:n,trigger:g,withRightShadow:V,checked:h,disabled:!C||(D?!D(i,n):!1),onChange:C,checkboxProps:E,getCheckboxProps:N}),r.map(({hidden:T,hiddenContent:S,...d},p)=>{if(T||S)return null;let{accessor:b,visibleMediaQuery:f,textAlign:v,noWrap:A,ellipsis:Y,width:G,render:oe,cellsClassName:le,cellsStyle:we,customCellAttributes:X}={...s,...d};return O.jsx(R1,{className:typeof le=="function"?le(i,n):le,style:we?.(i,n),visibleMediaQuery:f,record:i,index:n,onClick:$?be=>$({event:be,record:i,index:n,column:d,columnIndex:p}):void 0,onDoubleClick:H?be=>H({event:be,record:i,index:n,column:d,columnIndex:p}):void 0,onContextMenu:se?be=>se({event:be,record:i,index:n,column:d,columnIndex:p}):void 0,accessor:b,textAlign:v,noWrap:A,ellipsis:Y,width:G,render:oe,defaultRender:l,customCellAttributes:X},b)})]}),Oe=ue&&O.jsx(k1,{colSpan:r.filter(({hidden:T})=>!T).length+(m?1:0),open:ue.isRowExpanded(i),content:ue.content({record:i,index:n}),collapseProps:ue.collapseProps}),k=I1({record:i,index:n,selectionChecked:h,onClick:R,onDoubleClick:L,onContextMenu:I,expansion:ue,customAttributes:ae,color:ce,backgroundColor:Q,className:ne,style:J});return re?re({record:i,index:n,rowProps:k,children:De,expandedElement:Oe}):O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{...k,children:De}),Oe]})}function I1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:g,expansion:m,customAttributes:h,color:C,backgroundColor:D,className:E,style:N}){return{className:ht("mantine-datatable-row",{[Lr]:s||l||m?.isExpandable({record:i,index:n})&&m?.expandOnClick},{[Vl]:g},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:R=>{if(m){let{isExpandable:L,isRowExpanded:I,expandOnClick:$,expandRow:H,collapseRow:se}=m;L({record:i,index:n})&&$&&(I(i)?se(i):H(i))}s?.({event:R,record:i,index:n})},onDoubleClick:l?R=>l({event:R,record:i,index:n}):void 0,onContextMenu:g?R=>g({event:R,record:i,index:n}):void 0,style:[C||D?R=>{let L=C?.(i,n),I=D?.(i,n);return E1({theme:R,color:L,backgroundColor:I})}:void 0,N?.(i,n)],...h?.(i,n)??{}}}function $1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:l,scrollAreaProps:g}){return O.jsxs(F.ScrollArea,{...g,viewportRef:l,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:r,children:[s,O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),O.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),O.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow")})]})}function B1({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:g,shadow:m,verticalAlign:h="center",fetching:C,columns:D,storeColumnsKey:E,groups:N,pinFirstColumn:R,pinLastColumn:L,defaultColumnProps:I,defaultColumnRender:$,idAccessor:H="id",records:se,selectionTrigger:ue="checkbox",selectedRecords:ae,onSelectedRecordsChange:ce,selectionColumnClassName:Q,selectionColumnStyle:ne,isRecordSelectable:J,selectionCheckboxProps:V,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:he=(_t,ot)=>({"aria-label":`Select record ${ot+1}`}),sortStatus:re,sortIcons:De,onSortStatusChange:Oe,horizontalSpacing:k,page:T,onPageChange:S,totalRecords:d,recordsPerPage:p,onRecordsPerPageChange:b,recordsPerPageOptions:f,recordsPerPageLabel:v="Records per page",paginationWithEdges:A,paginationWithControls:Y,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:le="sm",paginationText:we=({from:_t,to:ot,totalRecords:tt})=>`${_t} - ${ot} / ${tt}`,paginationWrapBreakpoint:X="sm",getPaginationControlProps:be=_t=>_t==="previous"?{"aria-label":"Previous page"}:_t==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:_e,customLoader:ve,loaderSize:B,loaderType:Z,loaderColor:W,loadingText:K="...",emptyState:ee,noRecordsText:Se="No records",noRecordsIcon:u,highlightOnHover:c,striped:_,noHeader:M,onRowClick:U,onRowDoubleClick:te,onRowContextMenu:Ae,onCellClick:Ce,onCellDoubleClick:Pe,onCellContextMenu:me,onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Je,onScrollToRight:Ze,c:rt,backgroundColor:Tt,borderColor:pt,rowBorderColor:it,stripedColor:Tn,highlightOnHoverColor:At,rowColor:Pn,rowBackgroundColor:Dt,rowExpansion:Wt,rowClassName:Mn,rowStyle:yt,customRowAttributes:fn,scrollViewportRef:hn,scrollAreaProps:Ut,tableRef:It,bodyRef:zt,m:qt,my:Jt,mx:Ht,mt:ze,mb:ut,ml:$t,mr:Xt,className:$n,classNames:dn,style:wr,styles:pn,rowFactory:Bn,tableWrapper:gn,...vn}){let _t=ye.useMemo(()=>N?.flatMap(Ve=>Ve.columns)??D,[D,N]),ot=ye.useMemo(()=>_t.some(Ve=>Ve.resizable),[_t]),tt=e1({key:E,columns:_t}),{refs:Gt,onScroll:Pt}=t1({scrollCallbacks:{onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Je,onScrollToRight:Ze},withRowBorders:vn.withRowBorders}),wt=kt.useMergedRef(Gt.table,It),Bt=kt.useMergedRef(Gt.scrollViewport,hn),en=u1({rowExpansion:Wt,records:se,idAccessor:H}),Rn=ye.useCallback(Ve=>{Gt.scrollViewport.current?.scrollTo({top:0,left:0}),S(Ve)},[S,Gt.scrollViewport]),Nr=se?.length,go=se?.map(Ve=>Nt(Ve,H)),ar=!!ae,ur=ae?.map(Ve=>Nt(Ve,H)),mi=go!==void 0&&ur!==void 0&&ur.length>0,Ir=J?se?.filter(J):se,$r=Ir?.map(Ve=>Nt(Ve,H)),Br=mi&&$r.every(Ve=>ur.includes(Ve)),qs=mi&&$r.some(Ve=>ur.includes(Ve)),Hs=ye.useCallback(()=>{ae&&ce&&ce(Br?ae.filter(Ve=>!$r.includes(Nt(Ve,H))):Ws([...ae,...Ir],Ve=>Nt(Ve,H)))},[Br,H,ce,$r,Ir,ae]),{lastSelectionChangeIndex:br,setLastSelectionChangeIndex:vo}=n1(go),jr=ar&&!R,yi={m:qt,my:Jt,mx:Ht,mt:ze,mb:ut,ml:$t,mr:Xt},Gs=ye.useCallback(({children:Ve})=>gn?gn({children:Ve}):Ve,[gn]);return O.jsx(Yl,{...tt,children:O.jsxs(F.Box,{ref:Gt.root,...yi,className:ht("mantine-datatable",{"mantine-datatable-with-border":i},$n,dn?.root),style:[Ve=>({...O1({theme:Ve,c:rt,backgroundColor:Tt,borderColor:pt,rowBorderColor:it,stripedColor:Tn,highlightOnHoverColor:At}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[m]||m,height:s,minHeight:l,maxHeight:g}),wr,pn?.root,{position:"relative"}],children:[O.jsx($1,{viewportRef:Bt,leftShadowBehind:ar||!!R,rightShadowBehind:L,onScrollPositionChange:Pt,scrollAreaProps:Ut,children:O.jsx(Gs,{children:O.jsxs(F.Table,{ref:wt,horizontalSpacing:k,className:ht("mantine-datatable-table",{[c1]:r,"mantine-datatable-vertical-align-top":h==="top","mantine-datatable-vertical-align-bottom":h==="bottom","mantine-datatable-pin-last-column":L,"mantine-datatable-selection-column-visible":ar,"mantine-datatable-pin-first-column":R,"mantine-datatable-resizable-columns":ot},dn?.table),style:{...pn?.table},"data-striped":Nr&&_||void 0,"data-highlight-on-hover":c||void 0,...vn,children:[M?null:O.jsx(Yl,{...tt,children:O.jsx(A1,{ref:Gt.header,selectionColumnHeaderRef:Gt.selectionColumnHeader,className:dn?.header,style:pn?.header,columns:_t,defaultColumnProps:I,groups:N,sortStatus:re,sortIcons:De,onSortStatusChange:Oe,selectionTrigger:ue,selectionVisible:ar,selectionChecked:Br,selectionIndeterminate:qs&&!Br,onSelectionChange:Hs,selectionCheckboxProps:{...V,...de},selectorCellShadowVisible:jr,selectionColumnClassName:Q,selectionColumnStyle:ne})}),O.jsx("tbody",{ref:zt,children:Nr?se.map((Ve,jn)=>{let Yr=Nt(Ve,H),_i=ur?.includes(Yr)||!1,wi;return ce&&ae&&(wi=mo=>{if(mo.nativeEvent.shiftKey&&br!==null){let Yn=se.filter(jn>br?(qn,Fn)=>Fn>=br&&Fn<=jn&&(J?J(qn,Fn):!0):(qn,Fn)=>Fn>=jn&&Fn<=br&&(J?J(qn,Fn):!0));ce(_i?a1(ae,Yn,qn=>Nt(qn,H)):Ws([...ae,...Yn],qn=>Nt(qn,H)))}else ce(_i?ae.filter(Yn=>Nt(Yn,H)!==Yr):Ws([...ae,Ve],Yn=>Nt(Yn,H)));vo(jn)}),O.jsx(N1,{record:Ve,index:jn,columns:_t,defaultColumnProps:I,defaultColumnRender:$,selectionTrigger:ue,selectionVisible:ar,selectionChecked:_i,onSelectionChange:wi,isRecordSelectable:J,selectionCheckboxProps:V,getSelectionCheckboxProps:he,onClick:U,onDoubleClick:te,onCellClick:Ce,onCellDoubleClick:Pe,onContextMenu:Ae,onCellContextMenu:me,expansion:en,color:Pn,backgroundColor:Dt,className:Mn,style:yt,customAttributes:fn,selectorCellShadowVisible:jr,selectionColumnClassName:Q,selectionColumnStyle:ne,idAccessor:H,rowFactory:Bn},Yr)}):O.jsx(Qg,{})}),_t.some(({footer:Ve})=>Ve)&&O.jsx(d1,{ref:Gt.footer,className:dn?.footer,style:pn?.footer,columns:_t,defaultColumnProps:I,selectionVisible:ar,selectorCellShadowVisible:jr})]})})}),T&&O.jsx(M1,{className:dn?.pagination,style:pn?.pagination,horizontalSpacing:k,fetching:C,page:T,onPageChange:Rn,totalRecords:d,recordsPerPage:p,onRecordsPerPageChange:b,recordsPerPageOptions:f,recordsPerPageLabel:v,paginationWithEdges:A,paginationWithControls:Y,paginationActiveTextColor:G,paginationActiveBackgroundColor:oe,paginationSize:le,paginationText:we,paginationWrapBreakpoint:X,getPaginationControlProps:be,noRecordsText:Se,loadingText:K,recordsLength:Nr}),O.jsx(D1,{fetching:C,backgroundBlur:_e,customContent:ve,size:B,type:Z,color:W}),O.jsx(Xg,{icon:u,text:Se,active:!C&&!Nr,children:ee})]})})}function Ql(i){const n=An.c(41),{fields:r,onClose:s,queryKey:l,apiPath:g,id:m,steps:h}=i,[C,D]=ye.useState(0),[E,N]=ye.useState(!1),{data:R,isLoading:L}=pl(g,l,m),{mutateAsync:I,isError:$,error:H,isPending:se}=Ms(g,l);let ue;n[0]!==r?(ue=new Set(r.filter(z1).map(U1)),n[0]=r,n[1]=ue):ue=n[1];let ae;n[2]!==ue?(ae=[...ue],n[2]=ue,n[3]=ae):ae=n[3];const ce=ae;let Q;n[4]!==r?(Q=r.reduce(W1,{}),n[4]=r,n[5]=Q):Q=n[5];let ne;n[6]!==r?(ne=r.filter(F1).reduce(Y1,{}),n[6]=r,n[7]=ne):ne=n[7];let J;n[8]!==Q||n[9]!==ne?(J={mode:"uncontrolled",initialValues:Q,validate:ne},n[8]=Q,n[9]=ne,n[10]=J):J=n[10];const V=nu.useForm(J);let de;n[11]!==R||n[12]!==r||n[13]!==V?(de=()=>{if(R){const S={...R};r.forEach(d=>{const p=d.id;d.type==="boolean"&&S[p]===null?S[p]=!1:d.type==="date"&&S[p]?S[p]=new Date(S[p]):S[p]===null&&(S[p]="")}),V.initialize(S),V.setValues(S)}},n[11]=R,n[12]=r,n[13]=V,n[14]=de):de=n[14];let he;n[15]!==R?(he=[R],n[15]=R,n[16]=he):he=n[16],ye.useEffect(de,he);let re;n[17]!==V||n[18]!==m?(re=function(d){const p=V.getValues();return d.conditional&&!d.conditional(p)?null:O.jsxs(ye.Fragment,{children:[(d.type===void 0||d.type=="text")&&O.jsx(F.TextInput,{label:d.column.title,placeholder:d.placeholder??"",...V.getInputProps(d.id),type:d.id.includes("email")?"email":void 0,required:d.required},V.key(d.id)),d.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:d.column.title,placeholder:d.placeholder??"",...V.getInputProps(d.id),required:d.required},V.key(d.id)),d.type==="date"&&O.jsx(lo,{label:d.column.title,placeholder:d.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...V.getInputProps(d.id),required:d.required},V.key(d.id)),d.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:d.column.title,...V.getInputProps(d.id,{type:"checkbox"}),required:d.required},V.key(d.id)),d.type==="textarea"&&O.jsx(F.Textarea,{label:d.column.title,placeholder:d.placeholder??"",...V.getInputProps(d.id),minRows:3,autosize:!0,required:d.required},V.key(d.id)),d.type==="custom"&&d.render&&d.render({...V.getValues(),id:m},V.setValues,N,{error:V.getInputProps(d.id).error,required:d.required})]},d.id)},n[17]=V,n[18]=m,n[19]=re):re=n[19];const De=re;let Oe;n[20]!==$||n[21]!==H?.message||n[22]!==H?.name?(Oe=$&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[20]=$,n[21]=H?.message,n[22]=H?.name,n[23]=Oe):Oe=n[23];let k;n[24]!==C||n[25]!==r||n[26]!==V||n[27]!==E||n[28]!==m||n[29]!==L||n[30]!==se||n[31]!==$||n[32]!==s||n[33]!==De||n[34]!==h||n[35]!==ce||n[36]!==I?(k=L?O.jsxs(F.Stack,{gap:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(r.length).fill(0).map(j1),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Skeleton,{width:100,height:36}),O.jsx(F.Skeleton,{width:100,height:36})]})]}):O.jsxs("form",{onSubmit:V.onSubmit(async S=>{await I({...S,id:m}),ce.length&&C<ce.length-1?$||D(C+1):$||(V.setInitialValues(S),V.reset(),s())}),children:[ce.length?O.jsx(F.Stepper,{active:C,size:"sm",children:ce.map(S=>O.jsx(F.Stepper.Step,{...h&&h[S-1]?{label:h[S-1].label}:{},children:r.filter(d=>d.step===S).map(d=>De(d))},S))}):r.map(S=>De(S)),!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>ce.length?C===0?s():D(C-1):s(),variant:"outline",children:ce.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:se,children:ce.length?C===ce.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[24]=C,n[25]=r,n[26]=V,n[27]=E,n[28]=m,n[29]=L,n[30]=se,n[31]=$,n[32]=s,n[33]=De,n[34]=h,n[35]=ce,n[36]=I,n[37]=k):k=n[37];let T;return n[38]!==k||n[39]!==Oe?(T=O.jsxs(O.Fragment,{children:[Oe,k]}),n[38]=k,n[39]=Oe,n[40]=T):T=n[40],T}function j1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-field-${n}`)}function Y1(i,n){return i[n.id]=(r,s)=>n.conditional&&!n.conditional(s)||r?null:"Pflichtfeld",i}function F1(i){return i.required}function W1(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function U1(i){return i.step}function z1(i){return typeof i.step=="number"}function Jl({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:l,isError:g,error:m,isPending:h}=ml(n,i),[C,D]=ye.useState(s),[E,N]=ye.useState(!1),R=E||h;return ye.useEffect(()=>{C.length||r()},[r,C]),C.length?O.jsxs(O.Fragment,{children:[g&&m.message&&O.jsx(F.Alert,{variant:"outline",color:"red",title:m.name,children:m.message}),O.jsx(F.Text,{children:C.length===1?`Soll ${C.length} Eintrag wirklich gelöscht werden?`:`Sollen ${C.length} Einträge wirklich gelöscht werden?`}),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:r,variant:"outline",disabled:R,children:"Abbrechen"}),O.jsx(F.Button,{color:"red",loading:R,onClick:async()=>{N(!0);try{await Promise.all(C.map(L=>l(L.id))),D([])}finally{N(!1)}},children:"Löschen"})]})]}):O.jsx(O.Fragment,{})}function Xl(i,n){const r=An.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const D=localStorage.getItem(`use_persistent_storage_${n}`);return D?JSON.parse(D):i},r[0]=i,r[1]=n,r[2]=s):s=r[2];const[l,g]=ye.useState(s);let m;r[3]!==n?(m=D=>{g(D),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(D))},r[3]=n,r[4]=m):m=r[4];const h=m;let C;return r[5]!==h||r[6]!==l?(C=[l,h],r[5]=h,r[6]=l,r[7]=C):C=r[7],C}var vi={exports:{}};/**
118
118
  * @license
119
119
  * Lodash <https://lodash.com/>
120
120
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
121
121
  * Released under MIT license <https://lodash.com/license>
122
122
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
123
123
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
124
- */var j1=vi.exports,Ql;function Y1(){return Ql||(Ql=1,function(i,n){(function(){var r,s="4.17.21",l=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",D=500,E="__lodash_placeholder__",N=1,R=2,L=4,I=1,$=2,H=1,se=2,ue=4,ae=8,ce=16,Q=32,ne=64,J=128,V=256,de=512,he=30,re="...",De=800,Oe=16,k=1,T=2,S=3,d=1/0,p=9007199254740991,b=17976931348623157e292,f=NaN,v=4294967295,A=v-1,Y=v>>>1,G=[["ary",J],["bind",H],["bindKey",se],["curry",ae],["curryRight",ce],["flip",de],["partial",Q],["partialRight",ne],["rearg",V]],oe="[object Arguments]",le="[object Array]",we="[object AsyncFunction]",X="[object Boolean]",be="[object Date]",_e="[object DOMException]",ve="[object Error]",B="[object Function]",Z="[object GeneratorFunction]",W="[object Map]",K="[object Number]",ee="[object Null]",Se="[object Object]",u="[object Promise]",c="[object Proxy]",_="[object RegExp]",M="[object Set]",U="[object String]",te="[object Symbol]",Ae="[object Undefined]",Ce="[object WeakMap]",Pe="[object WeakSet]",me="[object ArrayBuffer]",Re="[object DataView]",Ie="[object Float32Array]",ke="[object Float64Array]",Xe="[object Int8Array]",Qe="[object Int16Array]",it="[object Int32Array]",Tt="[object Uint8Array]",pt="[object Uint8ClampedArray]",ot="[object Uint16Array]",Tn="[object Uint32Array]",At=/\b__p \+= '';/g,Pn=/\b(__p \+=) '' \+/g,Dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wt=/&(?:amp|lt|gt|quot|#39);/g,Mn=/[&<>"']/g,yt=RegExp(Wt.source),fn=RegExp(Mn.source),hn=/<%-([\s\S]+?)%>/g,Ut=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/,Jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ht=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(Ht.source),ut=/^\s+/,$t=/\s/,Xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$n=/\{\n\/\* \[wrapped with (.+)\] \*/,dn=/,? & /,wr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,Bn=/\\(\\)?/g,gn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vn=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,nt=/^\[object .+?Constructor\]$/,Gt=/^0o[0-7]+$/i,Pt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,en=/['\n\r\u2028\u2029\\]/g,Rn="\\ud800-\\udfff",Nr="\\u0300-\\u036f",go="\\ufe20-\\ufe2f",ar="\\u20d0-\\u20ff",ur=Nr+go+ar,mi="\\u2700-\\u27bf",Ir="a-z\\xdf-\\xf6\\xf8-\\xff",$r="\\xac\\xb1\\xd7\\xf7",Br="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zs="\\u2000-\\u206f",qs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",br="A-Z\\xc0-\\xd6\\xd8-\\xde",vo="\\ufe0e\\ufe0f",jr=$r+Br+zs+qs,yi="['’]",Hs="["+Rn+"]",Ve="["+jr+"]",jn="["+ur+"]",Yr="\\d+",_i="["+mi+"]",wi="["+Ir+"]",mo="[^"+Rn+jr+Yr+mi+Ir+br+"]",Yn="\\ud83c[\\udffb-\\udfff]",qn="(?:"+jn+"|"+Yn+")",Fn="[^"+Rn+"]",Gs="(?:\\ud83c[\\udde6-\\uddff]){2}",Vs="[\\ud800-\\udbff][\\udc00-\\udfff]",Fr="["+br+"]",rc="\\u200d",ic="(?:"+wi+"|"+mo+")",s0="(?:"+Fr+"|"+mo+")",oc="(?:"+yi+"(?:d|ll|m|re|s|t|ve))?",sc="(?:"+yi+"(?:D|LL|M|RE|S|T|VE))?",ac=qn+"?",uc="["+vo+"]?",a0="(?:"+rc+"(?:"+[Fn,Gs,Vs].join("|")+")"+uc+ac+")*",u0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lc=uc+ac+a0,c0="(?:"+[_i,Gs,Vs].join("|")+")"+lc,f0="(?:"+[Fn+jn+"?",jn,Gs,Vs,Hs].join("|")+")",h0=RegExp(yi,"g"),d0=RegExp(jn,"g"),Ks=RegExp(Yn+"(?="+Yn+")|"+f0+lc,"g"),p0=RegExp([Fr+"?"+wi+"+"+oc+"(?="+[Ve,Fr,"$"].join("|")+")",s0+"+"+sc+"(?="+[Ve,Fr+ic,"$"].join("|")+")",Fr+"?"+ic+"+"+oc,Fr+"+"+sc,l0,u0,Yr,c0].join("|"),"g"),g0=RegExp("["+rc+Rn+ur+vo+"]"),v0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,m0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y0=-1,lt={};lt[Ie]=lt[ke]=lt[Xe]=lt[Qe]=lt[it]=lt[Tt]=lt[pt]=lt[ot]=lt[Tn]=!0,lt[oe]=lt[le]=lt[me]=lt[X]=lt[Re]=lt[be]=lt[ve]=lt[B]=lt[W]=lt[K]=lt[Se]=lt[_]=lt[M]=lt[U]=lt[Ce]=!1;var at={};at[oe]=at[le]=at[me]=at[Re]=at[X]=at[be]=at[Ie]=at[ke]=at[Xe]=at[Qe]=at[it]=at[W]=at[K]=at[Se]=at[_]=at[M]=at[U]=at[te]=at[Tt]=at[pt]=at[ot]=at[Tn]=!0,at[ve]=at[B]=at[Ce]=!1;var _0={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},w0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},b0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},x0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},C0=parseFloat,S0=parseInt,cc=typeof Ii=="object"&&Ii&&Ii.Object===Object&&Ii,A0=typeof self=="object"&&self&&self.Object===Object&&self,Ot=cc||A0||Function("return this")(),Zs=n&&!n.nodeType&&n,xr=Zs&&!0&&i&&!i.nodeType&&i,fc=xr&&xr.exports===Zs,Qs=fc&&cc.process,mn=function(){try{var z=xr&&xr.require&&xr.require("util").types;return z||Qs&&Qs.binding&&Qs.binding("util")}catch{}}(),hc=mn&&mn.isArrayBuffer,dc=mn&&mn.isDate,pc=mn&&mn.isMap,gc=mn&&mn.isRegExp,vc=mn&&mn.isSet,mc=mn&&mn.isTypedArray;function tn(z,fe,ie){switch(ie.length){case 0:return z.call(fe);case 1:return z.call(fe,ie[0]);case 2:return z.call(fe,ie[0],ie[1]);case 3:return z.call(fe,ie[0],ie[1],ie[2])}return z.apply(fe,ie)}function D0(z,fe,ie,Me){for(var Ye=-1,Je=z==null?0:z.length;++Ye<Je;){var bt=z[Ye];fe(Me,bt,ie(bt),z)}return Me}function yn(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me&&fe(z[ie],ie,z)!==!1;);return z}function O0(z,fe){for(var ie=z==null?0:z.length;ie--&&fe(z[ie],ie,z)!==!1;);return z}function yc(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(!fe(z[ie],ie,z))return!1;return!0}function lr(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=0,Je=[];++ie<Me;){var bt=z[ie];fe(bt,ie,z)&&(Je[Ye++]=bt)}return Je}function yo(z,fe){var ie=z==null?0:z.length;return!!ie&&Wr(z,fe,0)>-1}function Js(z,fe,ie){for(var Me=-1,Ye=z==null?0:z.length;++Me<Ye;)if(ie(fe,z[Me]))return!0;return!1}function ct(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=Array(Me);++ie<Me;)Ye[ie]=fe(z[ie],ie,z);return Ye}function cr(z,fe){for(var ie=-1,Me=fe.length,Ye=z.length;++ie<Me;)z[Ye+ie]=fe[ie];return z}function Xs(z,fe,ie,Me){var Ye=-1,Je=z==null?0:z.length;for(Me&&Je&&(ie=z[++Ye]);++Ye<Je;)ie=fe(ie,z[Ye],Ye,z);return ie}function E0(z,fe,ie,Me){var Ye=z==null?0:z.length;for(Me&&Ye&&(ie=z[--Ye]);Ye--;)ie=fe(ie,z[Ye],Ye,z);return ie}function ea(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(fe(z[ie],ie,z))return!0;return!1}var T0=ta("length");function P0(z){return z.split("")}function M0(z){return z.match(wr)||[]}function _c(z,fe,ie){var Me;return ie(z,function(Ye,Je,bt){if(fe(Ye,Je,bt))return Me=Je,!1}),Me}function _o(z,fe,ie,Me){for(var Ye=z.length,Je=ie+(Me?1:-1);Me?Je--:++Je<Ye;)if(fe(z[Je],Je,z))return Je;return-1}function Wr(z,fe,ie){return fe===fe?U0(z,fe,ie):_o(z,wc,ie)}function R0(z,fe,ie,Me){for(var Ye=ie-1,Je=z.length;++Ye<Je;)if(Me(z[Ye],fe))return Ye;return-1}function wc(z){return z!==z}function bc(z,fe){var ie=z==null?0:z.length;return ie?ra(z,fe)/ie:f}function ta(z){return function(fe){return fe==null?r:fe[z]}}function na(z){return function(fe){return z==null?r:z[fe]}}function xc(z,fe,ie,Me,Ye){return Ye(z,function(Je,bt,st){ie=Me?(Me=!1,Je):fe(ie,Je,bt,st)}),ie}function k0(z,fe){var ie=z.length;for(z.sort(fe);ie--;)z[ie]=z[ie].value;return z}function ra(z,fe){for(var ie,Me=-1,Ye=z.length;++Me<Ye;){var Je=fe(z[Me]);Je!==r&&(ie=ie===r?Je:ie+Je)}return ie}function ia(z,fe){for(var ie=-1,Me=Array(z);++ie<z;)Me[ie]=fe(ie);return Me}function L0(z,fe){return ct(fe,function(ie){return[ie,z[ie]]})}function Cc(z){return z&&z.slice(0,Oc(z)+1).replace(ut,"")}function nn(z){return function(fe){return z(fe)}}function oa(z,fe){return ct(fe,function(ie){return z[ie]})}function bi(z,fe){return z.has(fe)}function Sc(z,fe){for(var ie=-1,Me=z.length;++ie<Me&&Wr(fe,z[ie],0)>-1;);return ie}function Ac(z,fe){for(var ie=z.length;ie--&&Wr(fe,z[ie],0)>-1;);return ie}function N0(z,fe){for(var ie=z.length,Me=0;ie--;)z[ie]===fe&&++Me;return Me}var I0=na(_0),$0=na(w0);function B0(z){return"\\"+x0[z]}function j0(z,fe){return z==null?r:z[fe]}function Ur(z){return g0.test(z)}function Y0(z){return v0.test(z)}function F0(z){for(var fe,ie=[];!(fe=z.next()).done;)ie.push(fe.value);return ie}function sa(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me,Ye){ie[++fe]=[Ye,Me]}),ie}function Dc(z,fe){return function(ie){return z(fe(ie))}}function fr(z,fe){for(var ie=-1,Me=z.length,Ye=0,Je=[];++ie<Me;){var bt=z[ie];(bt===fe||bt===E)&&(z[ie]=E,Je[Ye++]=ie)}return Je}function wo(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=Me}),ie}function W0(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=[Me,Me]}),ie}function U0(z,fe,ie){for(var Me=ie-1,Ye=z.length;++Me<Ye;)if(z[Me]===fe)return Me;return-1}function z0(z,fe,ie){for(var Me=ie+1;Me--;)if(z[Me]===fe)return Me;return Me}function zr(z){return Ur(z)?H0(z):T0(z)}function kn(z){return Ur(z)?G0(z):P0(z)}function Oc(z){for(var fe=z.length;fe--&&$t.test(z.charAt(fe)););return fe}var q0=na(b0);function H0(z){for(var fe=Ks.lastIndex=0;Ks.test(z);)++fe;return fe}function G0(z){return z.match(Ks)||[]}function V0(z){return z.match(p0)||[]}var K0=function z(fe){fe=fe==null?Ot:qr.defaults(Ot.Object(),fe,qr.pick(Ot,m0));var ie=fe.Array,Me=fe.Date,Ye=fe.Error,Je=fe.Function,bt=fe.Math,st=fe.Object,aa=fe.RegExp,Z0=fe.String,_n=fe.TypeError,bo=ie.prototype,Q0=Je.prototype,Hr=st.prototype,xo=fe["__core-js_shared__"],Co=Q0.toString,rt=Hr.hasOwnProperty,J0=0,Ec=function(){var e=/[^.]+$/.exec(xo&&xo.keys&&xo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),So=Hr.toString,X0=Co.call(st),ev=Ot._,tv=aa("^"+Co.call(rt).replace(Ht,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ao=fc?fe.Buffer:r,hr=fe.Symbol,Do=fe.Uint8Array,Tc=Ao?Ao.allocUnsafe:r,Oo=Dc(st.getPrototypeOf,st),Pc=st.create,Mc=Hr.propertyIsEnumerable,Eo=bo.splice,Rc=hr?hr.isConcatSpreadable:r,xi=hr?hr.iterator:r,Cr=hr?hr.toStringTag:r,To=function(){try{var e=Er(st,"defineProperty");return e({},"",{}),e}catch{}}(),nv=fe.clearTimeout!==Ot.clearTimeout&&fe.clearTimeout,rv=Me&&Me.now!==Ot.Date.now&&Me.now,iv=fe.setTimeout!==Ot.setTimeout&&fe.setTimeout,Po=bt.ceil,Mo=bt.floor,ua=st.getOwnPropertySymbols,ov=Ao?Ao.isBuffer:r,kc=fe.isFinite,sv=bo.join,av=Dc(st.keys,st),xt=bt.max,Mt=bt.min,uv=Me.now,lv=fe.parseInt,Lc=bt.random,cv=bo.reverse,la=Er(fe,"DataView"),Ci=Er(fe,"Map"),ca=Er(fe,"Promise"),Gr=Er(fe,"Set"),Si=Er(fe,"WeakMap"),Ai=Er(st,"create"),Ro=Si&&new Si,Vr={},fv=Tr(la),hv=Tr(Ci),dv=Tr(ca),pv=Tr(Gr),gv=Tr(Si),ko=hr?hr.prototype:r,Di=ko?ko.valueOf:r,Nc=ko?ko.toString:r;function w(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof wn)return e;if(rt.call(e,"__wrapped__"))return $f(e)}return new wn(e)}var Kr=function(){function e(){}return function(t){if(!ft(t))return{};if(Pc)return Pc(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Lo(){}function wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}w.templateSettings={escape:hn,evaluate:Ut,interpolate:It,variable:"",imports:{_:w}},w.prototype=Lo.prototype,w.prototype.constructor=w,wn.prototype=Kr(Lo.prototype),wn.prototype.constructor=wn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function vv(){var e=new Ge(this.__wrapped__);return e.__actions__=Vt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Vt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Vt(this.__views__),e}function mv(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yv(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),a=t<0,y=o?e.length:0,x=Pm(0,y,this.__views__),P=x.start,j=x.end,q=j-P,pe=a?j:P-1,ge=this.__iteratees__,xe=ge.length,Ee=0,Le=Mt(q,this.__takeCount__);if(!o||!a&&y==q&&Le==q)return sf(e,this.__actions__);var $e=[];e:for(;q--&&Ee<Le;){pe+=t;for(var Ue=-1,Be=e[pe];++Ue<xe;){var He=ge[Ue],Ke=He.iteratee,sn=He.type,Ft=Ke(Be);if(sn==T)Be=Ft;else if(!Ft){if(sn==k)continue e;break e}}$e[Ee++]=Be}return $e}Ge.prototype=Kr(Lo.prototype),Ge.prototype.constructor=Ge;function Sr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function _v(){this.__data__=Ai?Ai(null):{},this.size=0}function wv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bv(e){var t=this.__data__;if(Ai){var o=t[e];return o===C?r:o}return rt.call(t,e)?t[e]:r}function xv(e){var t=this.__data__;return Ai?t[e]!==r:rt.call(t,e)}function Cv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ai&&t===r?C:t,this}Sr.prototype.clear=_v,Sr.prototype.delete=wv,Sr.prototype.get=bv,Sr.prototype.has=xv,Sr.prototype.set=Cv;function Hn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Sv(){this.__data__=[],this.size=0}function Av(e){var t=this.__data__,o=No(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():Eo.call(t,o,1),--this.size,!0}function Dv(e){var t=this.__data__,o=No(t,e);return o<0?r:t[o][1]}function Ov(e){return No(this.__data__,e)>-1}function Ev(e,t){var o=this.__data__,a=No(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}Hn.prototype.clear=Sv,Hn.prototype.delete=Av,Hn.prototype.get=Dv,Hn.prototype.has=Ov,Hn.prototype.set=Ev;function Gn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Tv(){this.size=0,this.__data__={hash:new Sr,map:new(Ci||Hn),string:new Sr}}function Pv(e){var t=Go(this,e).delete(e);return this.size-=t?1:0,t}function Mv(e){return Go(this,e).get(e)}function Rv(e){return Go(this,e).has(e)}function kv(e,t){var o=Go(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Gn.prototype.clear=Tv,Gn.prototype.delete=Pv,Gn.prototype.get=Mv,Gn.prototype.has=Rv,Gn.prototype.set=kv;function Ar(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Gn;++t<o;)this.add(e[t])}function Lv(e){return this.__data__.set(e,C),this}function Nv(e){return this.__data__.has(e)}Ar.prototype.add=Ar.prototype.push=Lv,Ar.prototype.has=Nv;function Ln(e){var t=this.__data__=new Hn(e);this.size=t.size}function Iv(){this.__data__=new Hn,this.size=0}function $v(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Bv(e){return this.__data__.get(e)}function jv(e){return this.__data__.has(e)}function Yv(e,t){var o=this.__data__;if(o instanceof Hn){var a=o.__data__;if(!Ci||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Gn(a)}return o.set(e,t),this.size=o.size,this}Ln.prototype.clear=Iv,Ln.prototype.delete=$v,Ln.prototype.get=Bv,Ln.prototype.has=jv,Ln.prototype.set=Yv;function Ic(e,t){var o=Fe(e),a=!o&&Pr(e),y=!o&&!a&&mr(e),x=!o&&!a&&!y&&Xr(e),P=o||a||y||x,j=P?ia(e.length,Z0):[],q=j.length;for(var pe in e)(t||rt.call(e,pe))&&!(P&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||x&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Qn(pe,q)))&&j.push(pe);return j}function $c(e){var t=e.length;return t?e[ba(0,t-1)]:r}function Fv(e,t){return Vo(Vt(e),Dr(t,0,e.length))}function Wv(e){return Vo(Vt(e))}function fa(e,t,o){(o!==r&&!Nn(e[t],o)||o===r&&!(t in e))&&Vn(e,t,o)}function Oi(e,t,o){var a=e[t];(!(rt.call(e,t)&&Nn(a,o))||o===r&&!(t in e))&&Vn(e,t,o)}function No(e,t){for(var o=e.length;o--;)if(Nn(e[o][0],t))return o;return-1}function Uv(e,t,o,a){return dr(e,function(y,x,P){t(a,y,o(y),P)}),a}function Bc(e,t){return e&&Un(t,Ct(t),e)}function zv(e,t){return e&&Un(t,Zt(t),e)}function Vn(e,t,o){t=="__proto__"&&To?To(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ha(e,t){for(var o=-1,a=t.length,y=ie(a),x=e==null;++o<a;)y[o]=x?r:Ha(e,t[o]);return y}function Dr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function bn(e,t,o,a,y,x){var P,j=t&N,q=t&R,pe=t&L;if(o&&(P=y?o(e,a,y,x):o(e)),P!==r)return P;if(!ft(e))return e;var ge=Fe(e);if(ge){if(P=Rm(e),!j)return Vt(e,P)}else{var xe=Rt(e),Ee=xe==B||xe==Z;if(mr(e))return lf(e,j);if(xe==Se||xe==oe||Ee&&!y){if(P=q||Ee?{}:Ef(e),!j)return q?bm(e,zv(P,e)):wm(e,Bc(P,e))}else{if(!at[xe])return y?e:{};P=km(e,xe,j)}}x||(x=new Ln);var Le=x.get(e);if(Le)return Le;x.set(e,P),rh(e)?e.forEach(function(Be){P.add(bn(Be,t,o,Be,e,x))}):th(e)&&e.forEach(function(Be,He){P.set(He,bn(Be,t,o,He,e,x))});var $e=pe?q?Ra:Ma:q?Zt:Ct,Ue=ge?r:$e(e);return yn(Ue||e,function(Be,He){Ue&&(He=Be,Be=e[He]),Oi(P,He,bn(Be,t,o,He,e,x))}),P}function qv(e){var t=Ct(e);return function(o){return jc(o,e,t)}}function jc(e,t,o){var a=o.length;if(e==null)return!a;for(e=st(e);a--;){var y=o[a],x=t[y],P=e[y];if(P===r&&!(y in e)||!x(P))return!1}return!0}function Yc(e,t,o){if(typeof e!="function")throw new _n(m);return Li(function(){e.apply(r,o)},t)}function Ei(e,t,o,a){var y=-1,x=yo,P=!0,j=e.length,q=[],pe=t.length;if(!j)return q;o&&(t=ct(t,nn(o))),a?(x=Js,P=!1):t.length>=l&&(x=bi,P=!1,t=new Ar(t));e:for(;++y<j;){var ge=e[y],xe=o==null?ge:o(ge);if(ge=a||ge!==0?ge:0,P&&xe===xe){for(var Ee=pe;Ee--;)if(t[Ee]===xe)continue e;q.push(ge)}else x(t,xe,a)||q.push(ge)}return q}var dr=pf(Wn),Fc=pf(pa,!0);function Hv(e,t){var o=!0;return dr(e,function(a,y,x){return o=!!t(a,y,x),o}),o}function Io(e,t,o){for(var a=-1,y=e.length;++a<y;){var x=e[a],P=t(x);if(P!=null&&(j===r?P===P&&!on(P):o(P,j)))var j=P,q=x}return q}function Gv(e,t,o,a){var y=e.length;for(o=We(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:We(a),a<0&&(a+=y),a=o>a?0:oh(a);o<a;)e[o++]=t;return e}function Wc(e,t){var o=[];return dr(e,function(a,y,x){t(a,y,x)&&o.push(a)}),o}function Et(e,t,o,a,y){var x=-1,P=e.length;for(o||(o=Nm),y||(y=[]);++x<P;){var j=e[x];t>0&&o(j)?t>1?Et(j,t-1,o,a,y):cr(y,j):a||(y[y.length]=j)}return y}var da=gf(),Uc=gf(!0);function Wn(e,t){return e&&da(e,t,Ct)}function pa(e,t){return e&&Uc(e,t,Ct)}function $o(e,t){return lr(t,function(o){return Jn(e[o])})}function Or(e,t){t=gr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[zn(t[o++])];return o&&o==a?e:r}function zc(e,t,o){var a=t(e);return Fe(e)?a:cr(a,o(e))}function jt(e){return e==null?e===r?Ae:ee:Cr&&Cr in st(e)?Tm(e):Wm(e)}function ga(e,t){return e>t}function Vv(e,t){return e!=null&&rt.call(e,t)}function Kv(e,t){return e!=null&&t in st(e)}function Zv(e,t,o){return e>=Mt(t,o)&&e<xt(t,o)}function va(e,t,o){for(var a=o?Js:yo,y=e[0].length,x=e.length,P=x,j=ie(x),q=1/0,pe=[];P--;){var ge=e[P];P&&t&&(ge=ct(ge,nn(t))),q=Mt(ge.length,q),j[P]=!o&&(t||y>=120&&ge.length>=120)?new Ar(P&&ge):r}ge=e[0];var xe=-1,Ee=j[0];e:for(;++xe<y&&pe.length<q;){var Le=ge[xe],$e=t?t(Le):Le;if(Le=o||Le!==0?Le:0,!(Ee?bi(Ee,$e):a(pe,$e,o))){for(P=x;--P;){var Ue=j[P];if(!(Ue?bi(Ue,$e):a(e[P],$e,o)))continue e}Ee&&Ee.push($e),pe.push(Le)}}return pe}function Qv(e,t,o,a){return Wn(e,function(y,x,P){t(a,o(y),x,P)}),a}function Ti(e,t,o){t=gr(t,e),e=Rf(e,t);var a=e==null?e:e[zn(Cn(t))];return a==null?r:tn(a,e,o)}function qc(e){return dt(e)&&jt(e)==oe}function Jv(e){return dt(e)&&jt(e)==me}function Xv(e){return dt(e)&&jt(e)==be}function Pi(e,t,o,a,y){return e===t?!0:e==null||t==null||!dt(e)&&!dt(t)?e!==e&&t!==t:em(e,t,o,a,Pi,y)}function em(e,t,o,a,y,x){var P=Fe(e),j=Fe(t),q=P?le:Rt(e),pe=j?le:Rt(t);q=q==oe?Se:q,pe=pe==oe?Se:pe;var ge=q==Se,xe=pe==Se,Ee=q==pe;if(Ee&&mr(e)){if(!mr(t))return!1;P=!0,ge=!1}if(Ee&&!ge)return x||(x=new Ln),P||Xr(e)?Af(e,t,o,a,y,x):Om(e,t,q,o,a,y,x);if(!(o&I)){var Le=ge&&rt.call(e,"__wrapped__"),$e=xe&&rt.call(t,"__wrapped__");if(Le||$e){var Ue=Le?e.value():e,Be=$e?t.value():t;return x||(x=new Ln),y(Ue,Be,o,a,x)}}return Ee?(x||(x=new Ln),Em(e,t,o,a,y,x)):!1}function tm(e){return dt(e)&&Rt(e)==W}function ma(e,t,o,a){var y=o.length,x=y,P=!a;if(e==null)return!x;for(e=st(e);y--;){var j=o[y];if(P&&j[2]?j[1]!==e[j[0]]:!(j[0]in e))return!1}for(;++y<x;){j=o[y];var q=j[0],pe=e[q],ge=j[1];if(P&&j[2]){if(pe===r&&!(q in e))return!1}else{var xe=new Ln;if(a)var Ee=a(pe,ge,q,e,t,xe);if(!(Ee===r?Pi(ge,pe,I|$,a,xe):Ee))return!1}}return!0}function Hc(e){if(!ft(e)||$m(e))return!1;var t=Jn(e)?tv:nt;return t.test(Tr(e))}function nm(e){return dt(e)&&jt(e)==_}function rm(e){return dt(e)&&Rt(e)==M}function im(e){return dt(e)&&es(e.length)&&!!lt[jt(e)]}function Gc(e){return typeof e=="function"?e:e==null?Qt:typeof e=="object"?Fe(e)?Zc(e[0],e[1]):Kc(e):vh(e)}function ya(e){if(!ki(e))return av(e);var t=[];for(var o in st(e))rt.call(e,o)&&o!="constructor"&&t.push(o);return t}function om(e){if(!ft(e))return Fm(e);var t=ki(e),o=[];for(var a in e)a=="constructor"&&(t||!rt.call(e,a))||o.push(a);return o}function _a(e,t){return e<t}function Vc(e,t){var o=-1,a=Kt(e)?ie(e.length):[];return dr(e,function(y,x,P){a[++o]=t(y,x,P)}),a}function Kc(e){var t=La(e);return t.length==1&&t[0][2]?Pf(t[0][0],t[0][1]):function(o){return o===e||ma(o,e,t)}}function Zc(e,t){return Ia(e)&&Tf(t)?Pf(zn(e),t):function(o){var a=Ha(o,e);return a===r&&a===t?Ga(o,e):Pi(t,a,I|$)}}function Bo(e,t,o,a,y){e!==t&&da(t,function(x,P){if(y||(y=new Ln),ft(x))sm(e,t,P,o,Bo,a,y);else{var j=a?a(Ba(e,P),x,P+"",e,t,y):r;j===r&&(j=x),fa(e,P,j)}},Zt)}function sm(e,t,o,a,y,x,P){var j=Ba(e,o),q=Ba(t,o),pe=P.get(q);if(pe){fa(e,o,pe);return}var ge=x?x(j,q,o+"",e,t,P):r,xe=ge===r;if(xe){var Ee=Fe(q),Le=!Ee&&mr(q),$e=!Ee&&!Le&&Xr(q);ge=q,Ee||Le||$e?Fe(j)?ge=j:gt(j)?ge=Vt(j):Le?(xe=!1,ge=lf(q,!0)):$e?(xe=!1,ge=cf(q,!0)):ge=[]:Ni(q)||Pr(q)?(ge=j,Pr(j)?ge=sh(j):(!ft(j)||Jn(j))&&(ge=Ef(q))):xe=!1}xe&&(P.set(q,ge),y(ge,q,a,x,P),P.delete(q)),fa(e,o,ge)}function Qc(e,t){var o=e.length;if(o)return t+=t<0?o:0,Qn(t,o)?e[t]:r}function Jc(e,t,o){t.length?t=ct(t,function(x){return Fe(x)?function(P){return Or(P,x.length===1?x[0]:x)}:x}):t=[Qt];var a=-1;t=ct(t,nn(Ne()));var y=Vc(e,function(x,P,j){var q=ct(t,function(pe){return pe(x)});return{criteria:q,index:++a,value:x}});return k0(y,function(x,P){return _m(x,P,o)})}function am(e,t){return Xc(e,t,function(o,a){return Ga(e,a)})}function Xc(e,t,o){for(var a=-1,y=t.length,x={};++a<y;){var P=t[a],j=Or(e,P);o(j,P)&&Mi(x,gr(P,e),j)}return x}function um(e){return function(t){return Or(t,e)}}function wa(e,t,o,a){var y=a?R0:Wr,x=-1,P=t.length,j=e;for(e===t&&(t=Vt(t)),o&&(j=ct(e,nn(o)));++x<P;)for(var q=0,pe=t[x],ge=o?o(pe):pe;(q=y(j,ge,q,a))>-1;)j!==e&&Eo.call(j,q,1),Eo.call(e,q,1);return e}function ef(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==x){var x=y;Qn(y)?Eo.call(e,y,1):Sa(e,y)}}return e}function ba(e,t){return e+Mo(Lc()*(t-e+1))}function lm(e,t,o,a){for(var y=-1,x=xt(Po((t-e)/(o||1)),0),P=ie(x);x--;)P[a?x:++y]=e,e+=o;return P}function xa(e,t){var o="";if(!e||t<1||t>p)return o;do t%2&&(o+=e),t=Mo(t/2),t&&(e+=e);while(t);return o}function qe(e,t){return ja(Mf(e,t,Qt),e+"")}function cm(e){return $c(ei(e))}function fm(e,t){var o=ei(e);return Vo(o,Dr(t,0,o.length))}function Mi(e,t,o,a){if(!ft(e))return e;t=gr(t,e);for(var y=-1,x=t.length,P=x-1,j=e;j!=null&&++y<x;){var q=zn(t[y]),pe=o;if(q==="__proto__"||q==="constructor"||q==="prototype")return e;if(y!=P){var ge=j[q];pe=a?a(ge,q,j):r,pe===r&&(pe=ft(ge)?ge:Qn(t[y+1])?[]:{})}Oi(j,q,pe),j=j[q]}return e}var tf=Ro?function(e,t){return Ro.set(e,t),e}:Qt,hm=To?function(e,t){return To(e,"toString",{configurable:!0,enumerable:!1,value:Ka(t),writable:!0})}:Qt;function dm(e){return Vo(ei(e))}function xn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var x=ie(y);++a<y;)x[a]=e[a+t];return x}function pm(e,t){var o;return dr(e,function(a,y,x){return o=t(a,y,x),!o}),!!o}function jo(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=Y){for(;a<y;){var x=a+y>>>1,P=e[x];P!==null&&!on(P)&&(o?P<=t:P<t)?a=x+1:y=x}return y}return Ca(e,t,Qt,o)}function Ca(e,t,o,a){var y=0,x=e==null?0:e.length;if(x===0)return 0;t=o(t);for(var P=t!==t,j=t===null,q=on(t),pe=t===r;y<x;){var ge=Mo((y+x)/2),xe=o(e[ge]),Ee=xe!==r,Le=xe===null,$e=xe===xe,Ue=on(xe);if(P)var Be=a||$e;else pe?Be=$e&&(a||Ee):j?Be=$e&&Ee&&(a||!Le):q?Be=$e&&Ee&&!Le&&(a||!Ue):Le||Ue?Be=!1:Be=a?xe<=t:xe<t;Be?y=ge+1:x=ge}return Mt(x,A)}function nf(e,t){for(var o=-1,a=e.length,y=0,x=[];++o<a;){var P=e[o],j=t?t(P):P;if(!o||!Nn(j,q)){var q=j;x[y++]=P===0?0:P}}return x}function rf(e){return typeof e=="number"?e:on(e)?f:+e}function rn(e){if(typeof e=="string")return e;if(Fe(e))return ct(e,rn)+"";if(on(e))return Nc?Nc.call(e):"";var t=e+"";return t=="0"&&1/e==-d?"-0":t}function pr(e,t,o){var a=-1,y=yo,x=e.length,P=!0,j=[],q=j;if(o)P=!1,y=Js;else if(x>=l){var pe=t?null:Am(e);if(pe)return wo(pe);P=!1,y=bi,q=new Ar}else q=t?[]:j;e:for(;++a<x;){var ge=e[a],xe=t?t(ge):ge;if(ge=o||ge!==0?ge:0,P&&xe===xe){for(var Ee=q.length;Ee--;)if(q[Ee]===xe)continue e;t&&q.push(xe),j.push(ge)}else y(q,xe,o)||(q!==j&&q.push(xe),j.push(ge))}return j}function Sa(e,t){return t=gr(t,e),e=Rf(e,t),e==null||delete e[zn(Cn(t))]}function of(e,t,o,a){return Mi(e,t,o(Or(e,t)),a)}function Yo(e,t,o,a){for(var y=e.length,x=a?y:-1;(a?x--:++x<y)&&t(e[x],x,e););return o?xn(e,a?0:x,a?x+1:y):xn(e,a?x+1:0,a?y:x)}function sf(e,t){var o=e;return o instanceof Ge&&(o=o.value()),Xs(t,function(a,y){return y.func.apply(y.thisArg,cr([a],y.args))},o)}function Aa(e,t,o){var a=e.length;if(a<2)return a?pr(e[0]):[];for(var y=-1,x=ie(a);++y<a;)for(var P=e[y],j=-1;++j<a;)j!=y&&(x[y]=Ei(x[y]||P,e[j],t,o));return pr(Et(x,1),t,o)}function af(e,t,o){for(var a=-1,y=e.length,x=t.length,P={};++a<y;){var j=a<x?t[a]:r;o(P,e[a],j)}return P}function Da(e){return gt(e)?e:[]}function Oa(e){return typeof e=="function"?e:Qt}function gr(e,t){return Fe(e)?e:Ia(e,t)?[e]:If(et(e))}var gm=qe;function vr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:xn(e,t,o)}var uf=nv||function(e){return Ot.clearTimeout(e)};function lf(e,t){if(t)return e.slice();var o=e.length,a=Tc?Tc(o):new e.constructor(o);return e.copy(a),a}function Ea(e){var t=new e.constructor(e.byteLength);return new Do(t).set(new Do(e)),t}function vm(e,t){var o=t?Ea(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function mm(e){var t=new e.constructor(e.source,vn.exec(e));return t.lastIndex=e.lastIndex,t}function ym(e){return Di?st(Di.call(e)):{}}function cf(e,t){var o=t?Ea(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function ff(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,x=on(e),P=t!==r,j=t===null,q=t===t,pe=on(t);if(!j&&!pe&&!x&&e>t||x&&P&&q&&!j&&!pe||a&&P&&q||!o&&q||!y)return 1;if(!a&&!x&&!pe&&e<t||pe&&o&&y&&!a&&!x||j&&o&&y||!P&&y||!q)return-1}return 0}function _m(e,t,o){for(var a=-1,y=e.criteria,x=t.criteria,P=y.length,j=o.length;++a<P;){var q=ff(y[a],x[a]);if(q){if(a>=j)return q;var pe=o[a];return q*(pe=="desc"?-1:1)}}return e.index-t.index}function hf(e,t,o,a){for(var y=-1,x=e.length,P=o.length,j=-1,q=t.length,pe=xt(x-P,0),ge=ie(q+pe),xe=!a;++j<q;)ge[j]=t[j];for(;++y<P;)(xe||y<x)&&(ge[o[y]]=e[y]);for(;pe--;)ge[j++]=e[y++];return ge}function df(e,t,o,a){for(var y=-1,x=e.length,P=-1,j=o.length,q=-1,pe=t.length,ge=xt(x-j,0),xe=ie(ge+pe),Ee=!a;++y<ge;)xe[y]=e[y];for(var Le=y;++q<pe;)xe[Le+q]=t[q];for(;++P<j;)(Ee||y<x)&&(xe[Le+o[P]]=e[y++]);return xe}function Vt(e,t){var o=-1,a=e.length;for(t||(t=ie(a));++o<a;)t[o]=e[o];return t}function Un(e,t,o,a){var y=!o;o||(o={});for(var x=-1,P=t.length;++x<P;){var j=t[x],q=a?a(o[j],e[j],j,o,e):r;q===r&&(q=e[j]),y?Vn(o,j,q):Oi(o,j,q)}return o}function wm(e,t){return Un(e,Na(e),t)}function bm(e,t){return Un(e,Df(e),t)}function Fo(e,t){return function(o,a){var y=Fe(o)?D0:Uv,x=t?t():{};return y(o,e,Ne(a,2),x)}}function Zr(e){return qe(function(t,o){var a=-1,y=o.length,x=y>1?o[y-1]:r,P=y>2?o[2]:r;for(x=e.length>3&&typeof x=="function"?(y--,x):r,P&&Yt(o[0],o[1],P)&&(x=y<3?r:x,y=1),t=st(t);++a<y;){var j=o[a];j&&e(t,j,a,x)}return t})}function pf(e,t){return function(o,a){if(o==null)return o;if(!Kt(o))return e(o,a);for(var y=o.length,x=t?y:-1,P=st(o);(t?x--:++x<y)&&a(P[x],x,P)!==!1;);return o}}function gf(e){return function(t,o,a){for(var y=-1,x=st(t),P=a(t),j=P.length;j--;){var q=P[e?j:++y];if(o(x[q],q,x)===!1)break}return t}}function xm(e,t,o){var a=t&H,y=Ri(e);function x(){var P=this&&this!==Ot&&this instanceof x?y:e;return P.apply(a?o:this,arguments)}return x}function vf(e){return function(t){t=et(t);var o=Ur(t)?kn(t):r,a=o?o[0]:t.charAt(0),y=o?vr(o,1).join(""):t.slice(1);return a[e]()+y}}function Qr(e){return function(t){return Xs(ph(dh(t).replace(h0,"")),e,"")}}function Ri(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Kr(e.prototype),a=e.apply(o,t);return ft(a)?a:o}}function Cm(e,t,o){var a=Ri(e);function y(){for(var x=arguments.length,P=ie(x),j=x,q=Jr(y);j--;)P[j]=arguments[j];var pe=x<3&&P[0]!==q&&P[x-1]!==q?[]:fr(P,q);if(x-=pe.length,x<o)return bf(e,t,Wo,y.placeholder,r,P,pe,r,r,o-x);var ge=this&&this!==Ot&&this instanceof y?a:e;return tn(ge,this,P)}return y}function mf(e){return function(t,o,a){var y=st(t);if(!Kt(t)){var x=Ne(o,3);t=Ct(t),o=function(j){return x(y[j],j,y)}}var P=e(t,o,a);return P>-1?y[x?t[P]:P]:r}}function yf(e){return Zn(function(t){var o=t.length,a=o,y=wn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new _n(m);if(y&&!P&&Ho(x)=="wrapper")var P=new wn([],!0)}for(a=P?a:o;++a<o;){x=t[a];var j=Ho(x),q=j=="wrapper"?ka(x):r;q&&$a(q[0])&&q[1]==(J|ae|Q|V)&&!q[4].length&&q[9]==1?P=P[Ho(q[0])].apply(P,q[3]):P=x.length==1&&$a(x)?P[j]():P.thru(x)}return function(){var pe=arguments,ge=pe[0];if(P&&pe.length==1&&Fe(ge))return P.plant(ge).value();for(var xe=0,Ee=o?t[xe].apply(this,pe):ge;++xe<o;)Ee=t[xe].call(this,Ee);return Ee}})}function Wo(e,t,o,a,y,x,P,j,q,pe){var ge=t&J,xe=t&H,Ee=t&se,Le=t&(ae|ce),$e=t&de,Ue=Ee?r:Ri(e);function Be(){for(var He=arguments.length,Ke=ie(He),sn=He;sn--;)Ke[sn]=arguments[sn];if(Le)var Ft=Jr(Be),an=N0(Ke,Ft);if(a&&(Ke=hf(Ke,a,y,Le)),x&&(Ke=df(Ke,x,P,Le)),He-=an,Le&&He<pe){var vt=fr(Ke,Ft);return bf(e,t,Wo,Be.placeholder,o,Ke,vt,j,q,pe-He)}var In=xe?o:this,er=Ee?In[e]:e;return He=Ke.length,j?Ke=Um(Ke,j):$e&&He>1&&Ke.reverse(),ge&&q<He&&(Ke.length=q),this&&this!==Ot&&this instanceof Be&&(er=Ue||Ri(er)),er.apply(In,Ke)}return Be}function _f(e,t){return function(o,a){return Qv(o,e,t(a),{})}}function Uo(e,t){return function(o,a){var y;if(o===r&&a===r)return t;if(o!==r&&(y=o),a!==r){if(y===r)return a;typeof o=="string"||typeof a=="string"?(o=rn(o),a=rn(a)):(o=rf(o),a=rf(a)),y=e(o,a)}return y}}function Ta(e){return Zn(function(t){return t=ct(t,nn(Ne())),qe(function(o){var a=this;return e(t,function(y){return tn(y,a,o)})})})}function zo(e,t){t=t===r?" ":rn(t);var o=t.length;if(o<2)return o?xa(t,e):t;var a=xa(t,Po(e/zr(t)));return Ur(t)?vr(kn(a),0,e).join(""):a.slice(0,e)}function Sm(e,t,o,a){var y=t&H,x=Ri(e);function P(){for(var j=-1,q=arguments.length,pe=-1,ge=a.length,xe=ie(ge+q),Ee=this&&this!==Ot&&this instanceof P?x:e;++pe<ge;)xe[pe]=a[pe];for(;q--;)xe[pe++]=arguments[++j];return tn(Ee,y?o:this,xe)}return P}function wf(e){return function(t,o,a){return a&&typeof a!="number"&&Yt(t,o,a)&&(o=a=r),t=Xn(t),o===r?(o=t,t=0):o=Xn(o),a=a===r?t<o?1:-1:Xn(a),lm(t,o,a,e)}}function qo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Sn(t),o=Sn(o)),e(t,o)}}function bf(e,t,o,a,y,x,P,j,q,pe){var ge=t&ae,xe=ge?P:r,Ee=ge?r:P,Le=ge?x:r,$e=ge?r:x;t|=ge?Q:ne,t&=~(ge?ne:Q),t&ue||(t&=-4);var Ue=[e,t,y,Le,xe,$e,Ee,j,q,pe],Be=o.apply(r,Ue);return $a(e)&&kf(Be,Ue),Be.placeholder=a,Lf(Be,e,t)}function Pa(e){var t=bt[e];return function(o,a){if(o=Sn(o),a=a==null?0:Mt(We(a),292),a&&kc(o)){var y=(et(o)+"e").split("e"),x=t(y[0]+"e"+(+y[1]+a));return y=(et(x)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Am=Gr&&1/wo(new Gr([,-0]))[1]==d?function(e){return new Gr(e)}:Ja;function xf(e){return function(t){var o=Rt(t);return o==W?sa(t):o==M?W0(t):L0(t,e(t))}}function Kn(e,t,o,a,y,x,P,j){var q=t&se;if(!q&&typeof e!="function")throw new _n(m);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),P=P===r?P:xt(We(P),0),j=j===r?j:We(j),pe-=y?y.length:0,t&ne){var ge=a,xe=y;a=y=r}var Ee=q?r:ka(e),Le=[e,t,o,a,y,ge,xe,x,P,j];if(Ee&&Ym(Le,Ee),e=Le[0],t=Le[1],o=Le[2],a=Le[3],y=Le[4],j=Le[9]=Le[9]===r?q?0:e.length:xt(Le[9]-pe,0),!j&&t&(ae|ce)&&(t&=-25),!t||t==H)var $e=xm(e,t,o);else t==ae||t==ce?$e=Cm(e,t,j):(t==Q||t==(H|Q))&&!y.length?$e=Sm(e,t,o,a):$e=Wo.apply(r,Le);var Ue=Ee?tf:kf;return Lf(Ue($e,Le),e,t)}function Cf(e,t,o,a){return e===r||Nn(e,Hr[o])&&!rt.call(a,o)?t:e}function Sf(e,t,o,a,y,x){return ft(e)&&ft(t)&&(x.set(t,e),Bo(e,t,r,Sf,x),x.delete(t)),e}function Dm(e){return Ni(e)?r:e}function Af(e,t,o,a,y,x){var P=o&I,j=e.length,q=t.length;if(j!=q&&!(P&&q>j))return!1;var pe=x.get(e),ge=x.get(t);if(pe&&ge)return pe==t&&ge==e;var xe=-1,Ee=!0,Le=o&$?new Ar:r;for(x.set(e,t),x.set(t,e);++xe<j;){var $e=e[xe],Ue=t[xe];if(a)var Be=P?a(Ue,$e,xe,t,e,x):a($e,Ue,xe,e,t,x);if(Be!==r){if(Be)continue;Ee=!1;break}if(Le){if(!ea(t,function(He,Ke){if(!bi(Le,Ke)&&($e===He||y($e,He,o,a,x)))return Le.push(Ke)})){Ee=!1;break}}else if(!($e===Ue||y($e,Ue,o,a,x))){Ee=!1;break}}return x.delete(e),x.delete(t),Ee}function Om(e,t,o,a,y,x,P){switch(o){case Re:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case me:return!(e.byteLength!=t.byteLength||!x(new Do(e),new Do(t)));case X:case be:case K:return Nn(+e,+t);case ve:return e.name==t.name&&e.message==t.message;case _:case U:return e==t+"";case W:var j=sa;case M:var q=a&I;if(j||(j=wo),e.size!=t.size&&!q)return!1;var pe=P.get(e);if(pe)return pe==t;a|=$,P.set(e,t);var ge=Af(j(e),j(t),a,y,x,P);return P.delete(e),ge;case te:if(Di)return Di.call(e)==Di.call(t)}return!1}function Em(e,t,o,a,y,x){var P=o&I,j=Ma(e),q=j.length,pe=Ma(t),ge=pe.length;if(q!=ge&&!P)return!1;for(var xe=q;xe--;){var Ee=j[xe];if(!(P?Ee in t:rt.call(t,Ee)))return!1}var Le=x.get(e),$e=x.get(t);if(Le&&$e)return Le==t&&$e==e;var Ue=!0;x.set(e,t),x.set(t,e);for(var Be=P;++xe<q;){Ee=j[xe];var He=e[Ee],Ke=t[Ee];if(a)var sn=P?a(Ke,He,Ee,t,e,x):a(He,Ke,Ee,e,t,x);if(!(sn===r?He===Ke||y(He,Ke,o,a,x):sn)){Ue=!1;break}Be||(Be=Ee=="constructor")}if(Ue&&!Be){var Ft=e.constructor,an=t.constructor;Ft!=an&&"constructor"in e&&"constructor"in t&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof an=="function"&&an instanceof an)&&(Ue=!1)}return x.delete(e),x.delete(t),Ue}function Zn(e){return ja(Mf(e,r,Yf),e+"")}function Ma(e){return zc(e,Ct,Na)}function Ra(e){return zc(e,Zt,Df)}var ka=Ro?function(e){return Ro.get(e)}:Ja;function Ho(e){for(var t=e.name+"",o=Vr[t],a=rt.call(Vr,t)?o.length:0;a--;){var y=o[a],x=y.func;if(x==null||x==e)return y.name}return t}function Jr(e){var t=rt.call(w,"placeholder")?w:e;return t.placeholder}function Ne(){var e=w.iteratee||Za;return e=e===Za?Gc:e,arguments.length?e(arguments[0],arguments[1]):e}function Go(e,t){var o=e.__data__;return Im(t)?o[typeof t=="string"?"string":"hash"]:o.map}function La(e){for(var t=Ct(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,Tf(y)]}return t}function Er(e,t){var o=j0(e,t);return Hc(o)?o:r}function Tm(e){var t=rt.call(e,Cr),o=e[Cr];try{e[Cr]=r;var a=!0}catch{}var y=So.call(e);return a&&(t?e[Cr]=o:delete e[Cr]),y}var Na=ua?function(e){return e==null?[]:(e=st(e),lr(ua(e),function(t){return Mc.call(e,t)}))}:Xa,Df=ua?function(e){for(var t=[];e;)cr(t,Na(e)),e=Oo(e);return t}:Xa,Rt=jt;(la&&Rt(new la(new ArrayBuffer(1)))!=Re||Ci&&Rt(new Ci)!=W||ca&&Rt(ca.resolve())!=u||Gr&&Rt(new Gr)!=M||Si&&Rt(new Si)!=Ce)&&(Rt=function(e){var t=jt(e),o=t==Se?e.constructor:r,a=o?Tr(o):"";if(a)switch(a){case fv:return Re;case hv:return W;case dv:return u;case pv:return M;case gv:return Ce}return t});function Pm(e,t,o){for(var a=-1,y=o.length;++a<y;){var x=o[a],P=x.size;switch(x.type){case"drop":e+=P;break;case"dropRight":t-=P;break;case"take":t=Mt(t,e+P);break;case"takeRight":e=xt(e,t-P);break}}return{start:e,end:t}}function Mm(e){var t=e.match($n);return t?t[1].split(dn):[]}function Of(e,t,o){t=gr(t,e);for(var a=-1,y=t.length,x=!1;++a<y;){var P=zn(t[a]);if(!(x=e!=null&&o(e,P)))break;e=e[P]}return x||++a!=y?x:(y=e==null?0:e.length,!!y&&es(y)&&Qn(P,y)&&(Fe(e)||Pr(e)))}function Rm(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&rt.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Ef(e){return typeof e.constructor=="function"&&!ki(e)?Kr(Oo(e)):{}}function km(e,t,o){var a=e.constructor;switch(t){case me:return Ea(e);case X:case be:return new a(+e);case Re:return vm(e,o);case Ie:case ke:case Xe:case Qe:case it:case Tt:case pt:case ot:case Tn:return cf(e,o);case W:return new a;case K:case U:return new a(e);case _:return mm(e);case M:return new a;case te:return ym(e)}}function Lm(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(Xt,`{
124
+ */var q1=vi.exports,ec;function H1(){return ec||(ec=1,function(i,n){(function(){var r,s="4.17.21",l=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",D=500,E="__lodash_placeholder__",N=1,R=2,L=4,I=1,$=2,H=1,se=2,ue=4,ae=8,ce=16,Q=32,ne=64,J=128,V=256,de=512,he=30,re="...",De=800,Oe=16,k=1,T=2,S=3,d=1/0,p=9007199254740991,b=17976931348623157e292,f=NaN,v=4294967295,A=v-1,Y=v>>>1,G=[["ary",J],["bind",H],["bindKey",se],["curry",ae],["curryRight",ce],["flip",de],["partial",Q],["partialRight",ne],["rearg",V]],oe="[object Arguments]",le="[object Array]",we="[object AsyncFunction]",X="[object Boolean]",be="[object Date]",_e="[object DOMException]",ve="[object Error]",B="[object Function]",Z="[object GeneratorFunction]",W="[object Map]",K="[object Number]",ee="[object Null]",Se="[object Object]",u="[object Promise]",c="[object Proxy]",_="[object RegExp]",M="[object Set]",U="[object String]",te="[object Symbol]",Ae="[object Undefined]",Ce="[object WeakMap]",Pe="[object WeakSet]",me="[object ArrayBuffer]",Re="[object DataView]",Ie="[object Float32Array]",ke="[object Float64Array]",Je="[object Int8Array]",Ze="[object Int16Array]",rt="[object Int32Array]",Tt="[object Uint8Array]",pt="[object Uint8ClampedArray]",it="[object Uint16Array]",Tn="[object Uint32Array]",At=/\b__p \+= '';/g,Pn=/\b(__p \+=) '' \+/g,Dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wt=/&(?:amp|lt|gt|quot|#39);/g,Mn=/[&<>"']/g,yt=RegExp(Wt.source),fn=RegExp(Mn.source),hn=/<%-([\s\S]+?)%>/g,Ut=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/,Jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ht=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(Ht.source),ut=/^\s+/,$t=/\s/,Xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$n=/\{\n\/\* \[wrapped with (.+)\] \*/,dn=/,? & /,wr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,Bn=/\\(\\)?/g,gn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vn=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,tt=/^\[object .+?Constructor\]$/,Gt=/^0o[0-7]+$/i,Pt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,en=/['\n\r\u2028\u2029\\]/g,Rn="\\ud800-\\udfff",Nr="\\u0300-\\u036f",go="\\ufe20-\\ufe2f",ar="\\u20d0-\\u20ff",ur=Nr+go+ar,mi="\\u2700-\\u27bf",Ir="a-z\\xdf-\\xf6\\xf8-\\xff",$r="\\xac\\xb1\\xd7\\xf7",Br="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qs="\\u2000-\\u206f",Hs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",br="A-Z\\xc0-\\xd6\\xd8-\\xde",vo="\\ufe0e\\ufe0f",jr=$r+Br+qs+Hs,yi="['’]",Gs="["+Rn+"]",Ve="["+jr+"]",jn="["+ur+"]",Yr="\\d+",_i="["+mi+"]",wi="["+Ir+"]",mo="[^"+Rn+jr+Yr+mi+Ir+br+"]",Yn="\\ud83c[\\udffb-\\udfff]",qn="(?:"+jn+"|"+Yn+")",Fn="[^"+Rn+"]",Vs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ks="[\\ud800-\\udbff][\\udc00-\\udfff]",Fr="["+br+"]",rc="\\u200d",ic="(?:"+wi+"|"+mo+")",u0="(?:"+Fr+"|"+mo+")",oc="(?:"+yi+"(?:d|ll|m|re|s|t|ve))?",sc="(?:"+yi+"(?:D|LL|M|RE|S|T|VE))?",ac=qn+"?",uc="["+vo+"]?",l0="(?:"+rc+"(?:"+[Fn,Vs,Ks].join("|")+")"+uc+ac+")*",c0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",f0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lc=uc+ac+l0,h0="(?:"+[_i,Vs,Ks].join("|")+")"+lc,d0="(?:"+[Fn+jn+"?",jn,Vs,Ks,Gs].join("|")+")",p0=RegExp(yi,"g"),g0=RegExp(jn,"g"),Zs=RegExp(Yn+"(?="+Yn+")|"+d0+lc,"g"),v0=RegExp([Fr+"?"+wi+"+"+oc+"(?="+[Ve,Fr,"$"].join("|")+")",u0+"+"+sc+"(?="+[Ve,Fr+ic,"$"].join("|")+")",Fr+"?"+ic+"+"+oc,Fr+"+"+sc,f0,c0,Yr,h0].join("|"),"g"),m0=RegExp("["+rc+Rn+ur+vo+"]"),y0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],w0=-1,lt={};lt[Ie]=lt[ke]=lt[Je]=lt[Ze]=lt[rt]=lt[Tt]=lt[pt]=lt[it]=lt[Tn]=!0,lt[oe]=lt[le]=lt[me]=lt[X]=lt[Re]=lt[be]=lt[ve]=lt[B]=lt[W]=lt[K]=lt[Se]=lt[_]=lt[M]=lt[U]=lt[Ce]=!1;var at={};at[oe]=at[le]=at[me]=at[Re]=at[X]=at[be]=at[Ie]=at[ke]=at[Je]=at[Ze]=at[rt]=at[W]=at[K]=at[Se]=at[_]=at[M]=at[U]=at[te]=at[Tt]=at[pt]=at[it]=at[Tn]=!0,at[ve]=at[B]=at[Ce]=!1;var b0={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},x0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},C0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},S0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},A0=parseFloat,D0=parseInt,cc=typeof Ii=="object"&&Ii&&Ii.Object===Object&&Ii,O0=typeof self=="object"&&self&&self.Object===Object&&self,Ot=cc||O0||Function("return this")(),Qs=n&&!n.nodeType&&n,xr=Qs&&!0&&i&&!i.nodeType&&i,fc=xr&&xr.exports===Qs,Js=fc&&cc.process,mn=function(){try{var z=xr&&xr.require&&xr.require("util").types;return z||Js&&Js.binding&&Js.binding("util")}catch{}}(),hc=mn&&mn.isArrayBuffer,dc=mn&&mn.isDate,pc=mn&&mn.isMap,gc=mn&&mn.isRegExp,vc=mn&&mn.isSet,mc=mn&&mn.isTypedArray;function tn(z,fe,ie){switch(ie.length){case 0:return z.call(fe);case 1:return z.call(fe,ie[0]);case 2:return z.call(fe,ie[0],ie[1]);case 3:return z.call(fe,ie[0],ie[1],ie[2])}return z.apply(fe,ie)}function E0(z,fe,ie,Me){for(var Ye=-1,Qe=z==null?0:z.length;++Ye<Qe;){var bt=z[Ye];fe(Me,bt,ie(bt),z)}return Me}function yn(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me&&fe(z[ie],ie,z)!==!1;);return z}function T0(z,fe){for(var ie=z==null?0:z.length;ie--&&fe(z[ie],ie,z)!==!1;);return z}function yc(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(!fe(z[ie],ie,z))return!1;return!0}function lr(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=0,Qe=[];++ie<Me;){var bt=z[ie];fe(bt,ie,z)&&(Qe[Ye++]=bt)}return Qe}function yo(z,fe){var ie=z==null?0:z.length;return!!ie&&Wr(z,fe,0)>-1}function Xs(z,fe,ie){for(var Me=-1,Ye=z==null?0:z.length;++Me<Ye;)if(ie(fe,z[Me]))return!0;return!1}function ct(z,fe){for(var ie=-1,Me=z==null?0:z.length,Ye=Array(Me);++ie<Me;)Ye[ie]=fe(z[ie],ie,z);return Ye}function cr(z,fe){for(var ie=-1,Me=fe.length,Ye=z.length;++ie<Me;)z[Ye+ie]=fe[ie];return z}function ea(z,fe,ie,Me){var Ye=-1,Qe=z==null?0:z.length;for(Me&&Qe&&(ie=z[++Ye]);++Ye<Qe;)ie=fe(ie,z[Ye],Ye,z);return ie}function P0(z,fe,ie,Me){var Ye=z==null?0:z.length;for(Me&&Ye&&(ie=z[--Ye]);Ye--;)ie=fe(ie,z[Ye],Ye,z);return ie}function ta(z,fe){for(var ie=-1,Me=z==null?0:z.length;++ie<Me;)if(fe(z[ie],ie,z))return!0;return!1}var M0=na("length");function R0(z){return z.split("")}function k0(z){return z.match(wr)||[]}function _c(z,fe,ie){var Me;return ie(z,function(Ye,Qe,bt){if(fe(Ye,Qe,bt))return Me=Qe,!1}),Me}function _o(z,fe,ie,Me){for(var Ye=z.length,Qe=ie+(Me?1:-1);Me?Qe--:++Qe<Ye;)if(fe(z[Qe],Qe,z))return Qe;return-1}function Wr(z,fe,ie){return fe===fe?q0(z,fe,ie):_o(z,wc,ie)}function L0(z,fe,ie,Me){for(var Ye=ie-1,Qe=z.length;++Ye<Qe;)if(Me(z[Ye],fe))return Ye;return-1}function wc(z){return z!==z}function bc(z,fe){var ie=z==null?0:z.length;return ie?ia(z,fe)/ie:f}function na(z){return function(fe){return fe==null?r:fe[z]}}function ra(z){return function(fe){return z==null?r:z[fe]}}function xc(z,fe,ie,Me,Ye){return Ye(z,function(Qe,bt,st){ie=Me?(Me=!1,Qe):fe(ie,Qe,bt,st)}),ie}function N0(z,fe){var ie=z.length;for(z.sort(fe);ie--;)z[ie]=z[ie].value;return z}function ia(z,fe){for(var ie,Me=-1,Ye=z.length;++Me<Ye;){var Qe=fe(z[Me]);Qe!==r&&(ie=ie===r?Qe:ie+Qe)}return ie}function oa(z,fe){for(var ie=-1,Me=Array(z);++ie<z;)Me[ie]=fe(ie);return Me}function I0(z,fe){return ct(fe,function(ie){return[ie,z[ie]]})}function Cc(z){return z&&z.slice(0,Oc(z)+1).replace(ut,"")}function nn(z){return function(fe){return z(fe)}}function sa(z,fe){return ct(fe,function(ie){return z[ie]})}function bi(z,fe){return z.has(fe)}function Sc(z,fe){for(var ie=-1,Me=z.length;++ie<Me&&Wr(fe,z[ie],0)>-1;);return ie}function Ac(z,fe){for(var ie=z.length;ie--&&Wr(fe,z[ie],0)>-1;);return ie}function $0(z,fe){for(var ie=z.length,Me=0;ie--;)z[ie]===fe&&++Me;return Me}var B0=ra(b0),j0=ra(x0);function Y0(z){return"\\"+S0[z]}function F0(z,fe){return z==null?r:z[fe]}function Ur(z){return m0.test(z)}function W0(z){return y0.test(z)}function U0(z){for(var fe,ie=[];!(fe=z.next()).done;)ie.push(fe.value);return ie}function aa(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me,Ye){ie[++fe]=[Ye,Me]}),ie}function Dc(z,fe){return function(ie){return z(fe(ie))}}function fr(z,fe){for(var ie=-1,Me=z.length,Ye=0,Qe=[];++ie<Me;){var bt=z[ie];(bt===fe||bt===E)&&(z[ie]=E,Qe[Ye++]=ie)}return Qe}function wo(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=Me}),ie}function z0(z){var fe=-1,ie=Array(z.size);return z.forEach(function(Me){ie[++fe]=[Me,Me]}),ie}function q0(z,fe,ie){for(var Me=ie-1,Ye=z.length;++Me<Ye;)if(z[Me]===fe)return Me;return-1}function H0(z,fe,ie){for(var Me=ie+1;Me--;)if(z[Me]===fe)return Me;return Me}function zr(z){return Ur(z)?V0(z):M0(z)}function kn(z){return Ur(z)?K0(z):R0(z)}function Oc(z){for(var fe=z.length;fe--&&$t.test(z.charAt(fe)););return fe}var G0=ra(C0);function V0(z){for(var fe=Zs.lastIndex=0;Zs.test(z);)++fe;return fe}function K0(z){return z.match(Zs)||[]}function Z0(z){return z.match(v0)||[]}var Q0=function z(fe){fe=fe==null?Ot:qr.defaults(Ot.Object(),fe,qr.pick(Ot,_0));var ie=fe.Array,Me=fe.Date,Ye=fe.Error,Qe=fe.Function,bt=fe.Math,st=fe.Object,ua=fe.RegExp,J0=fe.String,_n=fe.TypeError,bo=ie.prototype,X0=Qe.prototype,Hr=st.prototype,xo=fe["__core-js_shared__"],Co=X0.toString,nt=Hr.hasOwnProperty,ev=0,Ec=function(){var e=/[^.]+$/.exec(xo&&xo.keys&&xo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),So=Hr.toString,tv=Co.call(st),nv=Ot._,rv=ua("^"+Co.call(nt).replace(Ht,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ao=fc?fe.Buffer:r,hr=fe.Symbol,Do=fe.Uint8Array,Tc=Ao?Ao.allocUnsafe:r,Oo=Dc(st.getPrototypeOf,st),Pc=st.create,Mc=Hr.propertyIsEnumerable,Eo=bo.splice,Rc=hr?hr.isConcatSpreadable:r,xi=hr?hr.iterator:r,Cr=hr?hr.toStringTag:r,To=function(){try{var e=Er(st,"defineProperty");return e({},"",{}),e}catch{}}(),iv=fe.clearTimeout!==Ot.clearTimeout&&fe.clearTimeout,ov=Me&&Me.now!==Ot.Date.now&&Me.now,sv=fe.setTimeout!==Ot.setTimeout&&fe.setTimeout,Po=bt.ceil,Mo=bt.floor,la=st.getOwnPropertySymbols,av=Ao?Ao.isBuffer:r,kc=fe.isFinite,uv=bo.join,lv=Dc(st.keys,st),xt=bt.max,Mt=bt.min,cv=Me.now,fv=fe.parseInt,Lc=bt.random,hv=bo.reverse,ca=Er(fe,"DataView"),Ci=Er(fe,"Map"),fa=Er(fe,"Promise"),Gr=Er(fe,"Set"),Si=Er(fe,"WeakMap"),Ai=Er(st,"create"),Ro=Si&&new Si,Vr={},dv=Tr(ca),pv=Tr(Ci),gv=Tr(fa),vv=Tr(Gr),mv=Tr(Si),ko=hr?hr.prototype:r,Di=ko?ko.valueOf:r,Nc=ko?ko.toString:r;function w(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof wn)return e;if(nt.call(e,"__wrapped__"))return $f(e)}return new wn(e)}var Kr=function(){function e(){}return function(t){if(!ft(t))return{};if(Pc)return Pc(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Lo(){}function wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}w.templateSettings={escape:hn,evaluate:Ut,interpolate:It,variable:"",imports:{_:w}},w.prototype=Lo.prototype,w.prototype.constructor=w,wn.prototype=Kr(Lo.prototype),wn.prototype.constructor=wn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function yv(){var e=new Ge(this.__wrapped__);return e.__actions__=Vt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Vt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Vt(this.__views__),e}function _v(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function wv(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),a=t<0,y=o?e.length:0,x=Rm(0,y,this.__views__),P=x.start,j=x.end,q=j-P,pe=a?j:P-1,ge=this.__iteratees__,xe=ge.length,Ee=0,Le=Mt(q,this.__takeCount__);if(!o||!a&&y==q&&Le==q)return sf(e,this.__actions__);var $e=[];e:for(;q--&&Ee<Le;){pe+=t;for(var Ue=-1,Be=e[pe];++Ue<xe;){var He=ge[Ue],Ke=He.iteratee,sn=He.type,Ft=Ke(Be);if(sn==T)Be=Ft;else if(!Ft){if(sn==k)continue e;break e}}$e[Ee++]=Be}return $e}Ge.prototype=Kr(Lo.prototype),Ge.prototype.constructor=Ge;function Sr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function bv(){this.__data__=Ai?Ai(null):{},this.size=0}function xv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Cv(e){var t=this.__data__;if(Ai){var o=t[e];return o===C?r:o}return nt.call(t,e)?t[e]:r}function Sv(e){var t=this.__data__;return Ai?t[e]!==r:nt.call(t,e)}function Av(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ai&&t===r?C:t,this}Sr.prototype.clear=bv,Sr.prototype.delete=xv,Sr.prototype.get=Cv,Sr.prototype.has=Sv,Sr.prototype.set=Av;function Hn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Dv(){this.__data__=[],this.size=0}function Ov(e){var t=this.__data__,o=No(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():Eo.call(t,o,1),--this.size,!0}function Ev(e){var t=this.__data__,o=No(t,e);return o<0?r:t[o][1]}function Tv(e){return No(this.__data__,e)>-1}function Pv(e,t){var o=this.__data__,a=No(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}Hn.prototype.clear=Dv,Hn.prototype.delete=Ov,Hn.prototype.get=Ev,Hn.prototype.has=Tv,Hn.prototype.set=Pv;function Gn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Mv(){this.size=0,this.__data__={hash:new Sr,map:new(Ci||Hn),string:new Sr}}function Rv(e){var t=Go(this,e).delete(e);return this.size-=t?1:0,t}function kv(e){return Go(this,e).get(e)}function Lv(e){return Go(this,e).has(e)}function Nv(e,t){var o=Go(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Gn.prototype.clear=Mv,Gn.prototype.delete=Rv,Gn.prototype.get=kv,Gn.prototype.has=Lv,Gn.prototype.set=Nv;function Ar(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Gn;++t<o;)this.add(e[t])}function Iv(e){return this.__data__.set(e,C),this}function $v(e){return this.__data__.has(e)}Ar.prototype.add=Ar.prototype.push=Iv,Ar.prototype.has=$v;function Ln(e){var t=this.__data__=new Hn(e);this.size=t.size}function Bv(){this.__data__=new Hn,this.size=0}function jv(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Yv(e){return this.__data__.get(e)}function Fv(e){return this.__data__.has(e)}function Wv(e,t){var o=this.__data__;if(o instanceof Hn){var a=o.__data__;if(!Ci||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Gn(a)}return o.set(e,t),this.size=o.size,this}Ln.prototype.clear=Bv,Ln.prototype.delete=jv,Ln.prototype.get=Yv,Ln.prototype.has=Fv,Ln.prototype.set=Wv;function Ic(e,t){var o=Fe(e),a=!o&&Pr(e),y=!o&&!a&&mr(e),x=!o&&!a&&!y&&Xr(e),P=o||a||y||x,j=P?oa(e.length,J0):[],q=j.length;for(var pe in e)(t||nt.call(e,pe))&&!(P&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||x&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Qn(pe,q)))&&j.push(pe);return j}function $c(e){var t=e.length;return t?e[xa(0,t-1)]:r}function Uv(e,t){return Vo(Vt(e),Dr(t,0,e.length))}function zv(e){return Vo(Vt(e))}function ha(e,t,o){(o!==r&&!Nn(e[t],o)||o===r&&!(t in e))&&Vn(e,t,o)}function Oi(e,t,o){var a=e[t];(!(nt.call(e,t)&&Nn(a,o))||o===r&&!(t in e))&&Vn(e,t,o)}function No(e,t){for(var o=e.length;o--;)if(Nn(e[o][0],t))return o;return-1}function qv(e,t,o,a){return dr(e,function(y,x,P){t(a,y,o(y),P)}),a}function Bc(e,t){return e&&Un(t,Ct(t),e)}function Hv(e,t){return e&&Un(t,Zt(t),e)}function Vn(e,t,o){t=="__proto__"&&To?To(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function da(e,t){for(var o=-1,a=t.length,y=ie(a),x=e==null;++o<a;)y[o]=x?r:Ga(e,t[o]);return y}function Dr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function bn(e,t,o,a,y,x){var P,j=t&N,q=t&R,pe=t&L;if(o&&(P=y?o(e,a,y,x):o(e)),P!==r)return P;if(!ft(e))return e;var ge=Fe(e);if(ge){if(P=Lm(e),!j)return Vt(e,P)}else{var xe=Rt(e),Ee=xe==B||xe==Z;if(mr(e))return lf(e,j);if(xe==Se||xe==oe||Ee&&!y){if(P=q||Ee?{}:Ef(e),!j)return q?Cm(e,Hv(P,e)):xm(e,Bc(P,e))}else{if(!at[xe])return y?e:{};P=Nm(e,xe,j)}}x||(x=new Ln);var Le=x.get(e);if(Le)return Le;x.set(e,P),rh(e)?e.forEach(function(Be){P.add(bn(Be,t,o,Be,e,x))}):th(e)&&e.forEach(function(Be,He){P.set(He,bn(Be,t,o,He,e,x))});var $e=pe?q?ka:Ra:q?Zt:Ct,Ue=ge?r:$e(e);return yn(Ue||e,function(Be,He){Ue&&(He=Be,Be=e[He]),Oi(P,He,bn(Be,t,o,He,e,x))}),P}function Gv(e){var t=Ct(e);return function(o){return jc(o,e,t)}}function jc(e,t,o){var a=o.length;if(e==null)return!a;for(e=st(e);a--;){var y=o[a],x=t[y],P=e[y];if(P===r&&!(y in e)||!x(P))return!1}return!0}function Yc(e,t,o){if(typeof e!="function")throw new _n(m);return Li(function(){e.apply(r,o)},t)}function Ei(e,t,o,a){var y=-1,x=yo,P=!0,j=e.length,q=[],pe=t.length;if(!j)return q;o&&(t=ct(t,nn(o))),a?(x=Xs,P=!1):t.length>=l&&(x=bi,P=!1,t=new Ar(t));e:for(;++y<j;){var ge=e[y],xe=o==null?ge:o(ge);if(ge=a||ge!==0?ge:0,P&&xe===xe){for(var Ee=pe;Ee--;)if(t[Ee]===xe)continue e;q.push(ge)}else x(t,xe,a)||q.push(ge)}return q}var dr=pf(Wn),Fc=pf(ga,!0);function Vv(e,t){var o=!0;return dr(e,function(a,y,x){return o=!!t(a,y,x),o}),o}function Io(e,t,o){for(var a=-1,y=e.length;++a<y;){var x=e[a],P=t(x);if(P!=null&&(j===r?P===P&&!on(P):o(P,j)))var j=P,q=x}return q}function Kv(e,t,o,a){var y=e.length;for(o=We(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:We(a),a<0&&(a+=y),a=o>a?0:oh(a);o<a;)e[o++]=t;return e}function Wc(e,t){var o=[];return dr(e,function(a,y,x){t(a,y,x)&&o.push(a)}),o}function Et(e,t,o,a,y){var x=-1,P=e.length;for(o||(o=$m),y||(y=[]);++x<P;){var j=e[x];t>0&&o(j)?t>1?Et(j,t-1,o,a,y):cr(y,j):a||(y[y.length]=j)}return y}var pa=gf(),Uc=gf(!0);function Wn(e,t){return e&&pa(e,t,Ct)}function ga(e,t){return e&&Uc(e,t,Ct)}function $o(e,t){return lr(t,function(o){return Jn(e[o])})}function Or(e,t){t=gr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[zn(t[o++])];return o&&o==a?e:r}function zc(e,t,o){var a=t(e);return Fe(e)?a:cr(a,o(e))}function jt(e){return e==null?e===r?Ae:ee:Cr&&Cr in st(e)?Mm(e):zm(e)}function va(e,t){return e>t}function Zv(e,t){return e!=null&&nt.call(e,t)}function Qv(e,t){return e!=null&&t in st(e)}function Jv(e,t,o){return e>=Mt(t,o)&&e<xt(t,o)}function ma(e,t,o){for(var a=o?Xs:yo,y=e[0].length,x=e.length,P=x,j=ie(x),q=1/0,pe=[];P--;){var ge=e[P];P&&t&&(ge=ct(ge,nn(t))),q=Mt(ge.length,q),j[P]=!o&&(t||y>=120&&ge.length>=120)?new Ar(P&&ge):r}ge=e[0];var xe=-1,Ee=j[0];e:for(;++xe<y&&pe.length<q;){var Le=ge[xe],$e=t?t(Le):Le;if(Le=o||Le!==0?Le:0,!(Ee?bi(Ee,$e):a(pe,$e,o))){for(P=x;--P;){var Ue=j[P];if(!(Ue?bi(Ue,$e):a(e[P],$e,o)))continue e}Ee&&Ee.push($e),pe.push(Le)}}return pe}function Xv(e,t,o,a){return Wn(e,function(y,x,P){t(a,o(y),x,P)}),a}function Ti(e,t,o){t=gr(t,e),e=Rf(e,t);var a=e==null?e:e[zn(Cn(t))];return a==null?r:tn(a,e,o)}function qc(e){return dt(e)&&jt(e)==oe}function em(e){return dt(e)&&jt(e)==me}function tm(e){return dt(e)&&jt(e)==be}function Pi(e,t,o,a,y){return e===t?!0:e==null||t==null||!dt(e)&&!dt(t)?e!==e&&t!==t:nm(e,t,o,a,Pi,y)}function nm(e,t,o,a,y,x){var P=Fe(e),j=Fe(t),q=P?le:Rt(e),pe=j?le:Rt(t);q=q==oe?Se:q,pe=pe==oe?Se:pe;var ge=q==Se,xe=pe==Se,Ee=q==pe;if(Ee&&mr(e)){if(!mr(t))return!1;P=!0,ge=!1}if(Ee&&!ge)return x||(x=new Ln),P||Xr(e)?Af(e,t,o,a,y,x):Tm(e,t,q,o,a,y,x);if(!(o&I)){var Le=ge&&nt.call(e,"__wrapped__"),$e=xe&&nt.call(t,"__wrapped__");if(Le||$e){var Ue=Le?e.value():e,Be=$e?t.value():t;return x||(x=new Ln),y(Ue,Be,o,a,x)}}return Ee?(x||(x=new Ln),Pm(e,t,o,a,y,x)):!1}function rm(e){return dt(e)&&Rt(e)==W}function ya(e,t,o,a){var y=o.length,x=y,P=!a;if(e==null)return!x;for(e=st(e);y--;){var j=o[y];if(P&&j[2]?j[1]!==e[j[0]]:!(j[0]in e))return!1}for(;++y<x;){j=o[y];var q=j[0],pe=e[q],ge=j[1];if(P&&j[2]){if(pe===r&&!(q in e))return!1}else{var xe=new Ln;if(a)var Ee=a(pe,ge,q,e,t,xe);if(!(Ee===r?Pi(ge,pe,I|$,a,xe):Ee))return!1}}return!0}function Hc(e){if(!ft(e)||jm(e))return!1;var t=Jn(e)?rv:tt;return t.test(Tr(e))}function im(e){return dt(e)&&jt(e)==_}function om(e){return dt(e)&&Rt(e)==M}function sm(e){return dt(e)&&es(e.length)&&!!lt[jt(e)]}function Gc(e){return typeof e=="function"?e:e==null?Qt:typeof e=="object"?Fe(e)?Zc(e[0],e[1]):Kc(e):vh(e)}function _a(e){if(!ki(e))return lv(e);var t=[];for(var o in st(e))nt.call(e,o)&&o!="constructor"&&t.push(o);return t}function am(e){if(!ft(e))return Um(e);var t=ki(e),o=[];for(var a in e)a=="constructor"&&(t||!nt.call(e,a))||o.push(a);return o}function wa(e,t){return e<t}function Vc(e,t){var o=-1,a=Kt(e)?ie(e.length):[];return dr(e,function(y,x,P){a[++o]=t(y,x,P)}),a}function Kc(e){var t=Na(e);return t.length==1&&t[0][2]?Pf(t[0][0],t[0][1]):function(o){return o===e||ya(o,e,t)}}function Zc(e,t){return $a(e)&&Tf(t)?Pf(zn(e),t):function(o){var a=Ga(o,e);return a===r&&a===t?Va(o,e):Pi(t,a,I|$)}}function Bo(e,t,o,a,y){e!==t&&pa(t,function(x,P){if(y||(y=new Ln),ft(x))um(e,t,P,o,Bo,a,y);else{var j=a?a(ja(e,P),x,P+"",e,t,y):r;j===r&&(j=x),ha(e,P,j)}},Zt)}function um(e,t,o,a,y,x,P){var j=ja(e,o),q=ja(t,o),pe=P.get(q);if(pe){ha(e,o,pe);return}var ge=x?x(j,q,o+"",e,t,P):r,xe=ge===r;if(xe){var Ee=Fe(q),Le=!Ee&&mr(q),$e=!Ee&&!Le&&Xr(q);ge=q,Ee||Le||$e?Fe(j)?ge=j:gt(j)?ge=Vt(j):Le?(xe=!1,ge=lf(q,!0)):$e?(xe=!1,ge=cf(q,!0)):ge=[]:Ni(q)||Pr(q)?(ge=j,Pr(j)?ge=sh(j):(!ft(j)||Jn(j))&&(ge=Ef(q))):xe=!1}xe&&(P.set(q,ge),y(ge,q,a,x,P),P.delete(q)),ha(e,o,ge)}function Qc(e,t){var o=e.length;if(o)return t+=t<0?o:0,Qn(t,o)?e[t]:r}function Jc(e,t,o){t.length?t=ct(t,function(x){return Fe(x)?function(P){return Or(P,x.length===1?x[0]:x)}:x}):t=[Qt];var a=-1;t=ct(t,nn(Ne()));var y=Vc(e,function(x,P,j){var q=ct(t,function(pe){return pe(x)});return{criteria:q,index:++a,value:x}});return N0(y,function(x,P){return bm(x,P,o)})}function lm(e,t){return Xc(e,t,function(o,a){return Va(e,a)})}function Xc(e,t,o){for(var a=-1,y=t.length,x={};++a<y;){var P=t[a],j=Or(e,P);o(j,P)&&Mi(x,gr(P,e),j)}return x}function cm(e){return function(t){return Or(t,e)}}function ba(e,t,o,a){var y=a?L0:Wr,x=-1,P=t.length,j=e;for(e===t&&(t=Vt(t)),o&&(j=ct(e,nn(o)));++x<P;)for(var q=0,pe=t[x],ge=o?o(pe):pe;(q=y(j,ge,q,a))>-1;)j!==e&&Eo.call(j,q,1),Eo.call(e,q,1);return e}function ef(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==x){var x=y;Qn(y)?Eo.call(e,y,1):Aa(e,y)}}return e}function xa(e,t){return e+Mo(Lc()*(t-e+1))}function fm(e,t,o,a){for(var y=-1,x=xt(Po((t-e)/(o||1)),0),P=ie(x);x--;)P[a?x:++y]=e,e+=o;return P}function Ca(e,t){var o="";if(!e||t<1||t>p)return o;do t%2&&(o+=e),t=Mo(t/2),t&&(e+=e);while(t);return o}function qe(e,t){return Ya(Mf(e,t,Qt),e+"")}function hm(e){return $c(ei(e))}function dm(e,t){var o=ei(e);return Vo(o,Dr(t,0,o.length))}function Mi(e,t,o,a){if(!ft(e))return e;t=gr(t,e);for(var y=-1,x=t.length,P=x-1,j=e;j!=null&&++y<x;){var q=zn(t[y]),pe=o;if(q==="__proto__"||q==="constructor"||q==="prototype")return e;if(y!=P){var ge=j[q];pe=a?a(ge,q,j):r,pe===r&&(pe=ft(ge)?ge:Qn(t[y+1])?[]:{})}Oi(j,q,pe),j=j[q]}return e}var tf=Ro?function(e,t){return Ro.set(e,t),e}:Qt,pm=To?function(e,t){return To(e,"toString",{configurable:!0,enumerable:!1,value:Za(t),writable:!0})}:Qt;function gm(e){return Vo(ei(e))}function xn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var x=ie(y);++a<y;)x[a]=e[a+t];return x}function vm(e,t){var o;return dr(e,function(a,y,x){return o=t(a,y,x),!o}),!!o}function jo(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=Y){for(;a<y;){var x=a+y>>>1,P=e[x];P!==null&&!on(P)&&(o?P<=t:P<t)?a=x+1:y=x}return y}return Sa(e,t,Qt,o)}function Sa(e,t,o,a){var y=0,x=e==null?0:e.length;if(x===0)return 0;t=o(t);for(var P=t!==t,j=t===null,q=on(t),pe=t===r;y<x;){var ge=Mo((y+x)/2),xe=o(e[ge]),Ee=xe!==r,Le=xe===null,$e=xe===xe,Ue=on(xe);if(P)var Be=a||$e;else pe?Be=$e&&(a||Ee):j?Be=$e&&Ee&&(a||!Le):q?Be=$e&&Ee&&!Le&&(a||!Ue):Le||Ue?Be=!1:Be=a?xe<=t:xe<t;Be?y=ge+1:x=ge}return Mt(x,A)}function nf(e,t){for(var o=-1,a=e.length,y=0,x=[];++o<a;){var P=e[o],j=t?t(P):P;if(!o||!Nn(j,q)){var q=j;x[y++]=P===0?0:P}}return x}function rf(e){return typeof e=="number"?e:on(e)?f:+e}function rn(e){if(typeof e=="string")return e;if(Fe(e))return ct(e,rn)+"";if(on(e))return Nc?Nc.call(e):"";var t=e+"";return t=="0"&&1/e==-d?"-0":t}function pr(e,t,o){var a=-1,y=yo,x=e.length,P=!0,j=[],q=j;if(o)P=!1,y=Xs;else if(x>=l){var pe=t?null:Om(e);if(pe)return wo(pe);P=!1,y=bi,q=new Ar}else q=t?[]:j;e:for(;++a<x;){var ge=e[a],xe=t?t(ge):ge;if(ge=o||ge!==0?ge:0,P&&xe===xe){for(var Ee=q.length;Ee--;)if(q[Ee]===xe)continue e;t&&q.push(xe),j.push(ge)}else y(q,xe,o)||(q!==j&&q.push(xe),j.push(ge))}return j}function Aa(e,t){return t=gr(t,e),e=Rf(e,t),e==null||delete e[zn(Cn(t))]}function of(e,t,o,a){return Mi(e,t,o(Or(e,t)),a)}function Yo(e,t,o,a){for(var y=e.length,x=a?y:-1;(a?x--:++x<y)&&t(e[x],x,e););return o?xn(e,a?0:x,a?x+1:y):xn(e,a?x+1:0,a?y:x)}function sf(e,t){var o=e;return o instanceof Ge&&(o=o.value()),ea(t,function(a,y){return y.func.apply(y.thisArg,cr([a],y.args))},o)}function Da(e,t,o){var a=e.length;if(a<2)return a?pr(e[0]):[];for(var y=-1,x=ie(a);++y<a;)for(var P=e[y],j=-1;++j<a;)j!=y&&(x[y]=Ei(x[y]||P,e[j],t,o));return pr(Et(x,1),t,o)}function af(e,t,o){for(var a=-1,y=e.length,x=t.length,P={};++a<y;){var j=a<x?t[a]:r;o(P,e[a],j)}return P}function Oa(e){return gt(e)?e:[]}function Ea(e){return typeof e=="function"?e:Qt}function gr(e,t){return Fe(e)?e:$a(e,t)?[e]:If(Xe(e))}var mm=qe;function vr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:xn(e,t,o)}var uf=iv||function(e){return Ot.clearTimeout(e)};function lf(e,t){if(t)return e.slice();var o=e.length,a=Tc?Tc(o):new e.constructor(o);return e.copy(a),a}function Ta(e){var t=new e.constructor(e.byteLength);return new Do(t).set(new Do(e)),t}function ym(e,t){var o=t?Ta(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function _m(e){var t=new e.constructor(e.source,vn.exec(e));return t.lastIndex=e.lastIndex,t}function wm(e){return Di?st(Di.call(e)):{}}function cf(e,t){var o=t?Ta(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function ff(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,x=on(e),P=t!==r,j=t===null,q=t===t,pe=on(t);if(!j&&!pe&&!x&&e>t||x&&P&&q&&!j&&!pe||a&&P&&q||!o&&q||!y)return 1;if(!a&&!x&&!pe&&e<t||pe&&o&&y&&!a&&!x||j&&o&&y||!P&&y||!q)return-1}return 0}function bm(e,t,o){for(var a=-1,y=e.criteria,x=t.criteria,P=y.length,j=o.length;++a<P;){var q=ff(y[a],x[a]);if(q){if(a>=j)return q;var pe=o[a];return q*(pe=="desc"?-1:1)}}return e.index-t.index}function hf(e,t,o,a){for(var y=-1,x=e.length,P=o.length,j=-1,q=t.length,pe=xt(x-P,0),ge=ie(q+pe),xe=!a;++j<q;)ge[j]=t[j];for(;++y<P;)(xe||y<x)&&(ge[o[y]]=e[y]);for(;pe--;)ge[j++]=e[y++];return ge}function df(e,t,o,a){for(var y=-1,x=e.length,P=-1,j=o.length,q=-1,pe=t.length,ge=xt(x-j,0),xe=ie(ge+pe),Ee=!a;++y<ge;)xe[y]=e[y];for(var Le=y;++q<pe;)xe[Le+q]=t[q];for(;++P<j;)(Ee||y<x)&&(xe[Le+o[P]]=e[y++]);return xe}function Vt(e,t){var o=-1,a=e.length;for(t||(t=ie(a));++o<a;)t[o]=e[o];return t}function Un(e,t,o,a){var y=!o;o||(o={});for(var x=-1,P=t.length;++x<P;){var j=t[x],q=a?a(o[j],e[j],j,o,e):r;q===r&&(q=e[j]),y?Vn(o,j,q):Oi(o,j,q)}return o}function xm(e,t){return Un(e,Ia(e),t)}function Cm(e,t){return Un(e,Df(e),t)}function Fo(e,t){return function(o,a){var y=Fe(o)?E0:qv,x=t?t():{};return y(o,e,Ne(a,2),x)}}function Zr(e){return qe(function(t,o){var a=-1,y=o.length,x=y>1?o[y-1]:r,P=y>2?o[2]:r;for(x=e.length>3&&typeof x=="function"?(y--,x):r,P&&Yt(o[0],o[1],P)&&(x=y<3?r:x,y=1),t=st(t);++a<y;){var j=o[a];j&&e(t,j,a,x)}return t})}function pf(e,t){return function(o,a){if(o==null)return o;if(!Kt(o))return e(o,a);for(var y=o.length,x=t?y:-1,P=st(o);(t?x--:++x<y)&&a(P[x],x,P)!==!1;);return o}}function gf(e){return function(t,o,a){for(var y=-1,x=st(t),P=a(t),j=P.length;j--;){var q=P[e?j:++y];if(o(x[q],q,x)===!1)break}return t}}function Sm(e,t,o){var a=t&H,y=Ri(e);function x(){var P=this&&this!==Ot&&this instanceof x?y:e;return P.apply(a?o:this,arguments)}return x}function vf(e){return function(t){t=Xe(t);var o=Ur(t)?kn(t):r,a=o?o[0]:t.charAt(0),y=o?vr(o,1).join(""):t.slice(1);return a[e]()+y}}function Qr(e){return function(t){return ea(ph(dh(t).replace(p0,"")),e,"")}}function Ri(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Kr(e.prototype),a=e.apply(o,t);return ft(a)?a:o}}function Am(e,t,o){var a=Ri(e);function y(){for(var x=arguments.length,P=ie(x),j=x,q=Jr(y);j--;)P[j]=arguments[j];var pe=x<3&&P[0]!==q&&P[x-1]!==q?[]:fr(P,q);if(x-=pe.length,x<o)return bf(e,t,Wo,y.placeholder,r,P,pe,r,r,o-x);var ge=this&&this!==Ot&&this instanceof y?a:e;return tn(ge,this,P)}return y}function mf(e){return function(t,o,a){var y=st(t);if(!Kt(t)){var x=Ne(o,3);t=Ct(t),o=function(j){return x(y[j],j,y)}}var P=e(t,o,a);return P>-1?y[x?t[P]:P]:r}}function yf(e){return Zn(function(t){var o=t.length,a=o,y=wn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new _n(m);if(y&&!P&&Ho(x)=="wrapper")var P=new wn([],!0)}for(a=P?a:o;++a<o;){x=t[a];var j=Ho(x),q=j=="wrapper"?La(x):r;q&&Ba(q[0])&&q[1]==(J|ae|Q|V)&&!q[4].length&&q[9]==1?P=P[Ho(q[0])].apply(P,q[3]):P=x.length==1&&Ba(x)?P[j]():P.thru(x)}return function(){var pe=arguments,ge=pe[0];if(P&&pe.length==1&&Fe(ge))return P.plant(ge).value();for(var xe=0,Ee=o?t[xe].apply(this,pe):ge;++xe<o;)Ee=t[xe].call(this,Ee);return Ee}})}function Wo(e,t,o,a,y,x,P,j,q,pe){var ge=t&J,xe=t&H,Ee=t&se,Le=t&(ae|ce),$e=t&de,Ue=Ee?r:Ri(e);function Be(){for(var He=arguments.length,Ke=ie(He),sn=He;sn--;)Ke[sn]=arguments[sn];if(Le)var Ft=Jr(Be),an=$0(Ke,Ft);if(a&&(Ke=hf(Ke,a,y,Le)),x&&(Ke=df(Ke,x,P,Le)),He-=an,Le&&He<pe){var vt=fr(Ke,Ft);return bf(e,t,Wo,Be.placeholder,o,Ke,vt,j,q,pe-He)}var In=xe?o:this,er=Ee?In[e]:e;return He=Ke.length,j?Ke=qm(Ke,j):$e&&He>1&&Ke.reverse(),ge&&q<He&&(Ke.length=q),this&&this!==Ot&&this instanceof Be&&(er=Ue||Ri(er)),er.apply(In,Ke)}return Be}function _f(e,t){return function(o,a){return Xv(o,e,t(a),{})}}function Uo(e,t){return function(o,a){var y;if(o===r&&a===r)return t;if(o!==r&&(y=o),a!==r){if(y===r)return a;typeof o=="string"||typeof a=="string"?(o=rn(o),a=rn(a)):(o=rf(o),a=rf(a)),y=e(o,a)}return y}}function Pa(e){return Zn(function(t){return t=ct(t,nn(Ne())),qe(function(o){var a=this;return e(t,function(y){return tn(y,a,o)})})})}function zo(e,t){t=t===r?" ":rn(t);var o=t.length;if(o<2)return o?Ca(t,e):t;var a=Ca(t,Po(e/zr(t)));return Ur(t)?vr(kn(a),0,e).join(""):a.slice(0,e)}function Dm(e,t,o,a){var y=t&H,x=Ri(e);function P(){for(var j=-1,q=arguments.length,pe=-1,ge=a.length,xe=ie(ge+q),Ee=this&&this!==Ot&&this instanceof P?x:e;++pe<ge;)xe[pe]=a[pe];for(;q--;)xe[pe++]=arguments[++j];return tn(Ee,y?o:this,xe)}return P}function wf(e){return function(t,o,a){return a&&typeof a!="number"&&Yt(t,o,a)&&(o=a=r),t=Xn(t),o===r?(o=t,t=0):o=Xn(o),a=a===r?t<o?1:-1:Xn(a),fm(t,o,a,e)}}function qo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Sn(t),o=Sn(o)),e(t,o)}}function bf(e,t,o,a,y,x,P,j,q,pe){var ge=t&ae,xe=ge?P:r,Ee=ge?r:P,Le=ge?x:r,$e=ge?r:x;t|=ge?Q:ne,t&=~(ge?ne:Q),t&ue||(t&=-4);var Ue=[e,t,y,Le,xe,$e,Ee,j,q,pe],Be=o.apply(r,Ue);return Ba(e)&&kf(Be,Ue),Be.placeholder=a,Lf(Be,e,t)}function Ma(e){var t=bt[e];return function(o,a){if(o=Sn(o),a=a==null?0:Mt(We(a),292),a&&kc(o)){var y=(Xe(o)+"e").split("e"),x=t(y[0]+"e"+(+y[1]+a));return y=(Xe(x)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Om=Gr&&1/wo(new Gr([,-0]))[1]==d?function(e){return new Gr(e)}:Xa;function xf(e){return function(t){var o=Rt(t);return o==W?aa(t):o==M?z0(t):I0(t,e(t))}}function Kn(e,t,o,a,y,x,P,j){var q=t&se;if(!q&&typeof e!="function")throw new _n(m);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),P=P===r?P:xt(We(P),0),j=j===r?j:We(j),pe-=y?y.length:0,t&ne){var ge=a,xe=y;a=y=r}var Ee=q?r:La(e),Le=[e,t,o,a,y,ge,xe,x,P,j];if(Ee&&Wm(Le,Ee),e=Le[0],t=Le[1],o=Le[2],a=Le[3],y=Le[4],j=Le[9]=Le[9]===r?q?0:e.length:xt(Le[9]-pe,0),!j&&t&(ae|ce)&&(t&=-25),!t||t==H)var $e=Sm(e,t,o);else t==ae||t==ce?$e=Am(e,t,j):(t==Q||t==(H|Q))&&!y.length?$e=Dm(e,t,o,a):$e=Wo.apply(r,Le);var Ue=Ee?tf:kf;return Lf(Ue($e,Le),e,t)}function Cf(e,t,o,a){return e===r||Nn(e,Hr[o])&&!nt.call(a,o)?t:e}function Sf(e,t,o,a,y,x){return ft(e)&&ft(t)&&(x.set(t,e),Bo(e,t,r,Sf,x),x.delete(t)),e}function Em(e){return Ni(e)?r:e}function Af(e,t,o,a,y,x){var P=o&I,j=e.length,q=t.length;if(j!=q&&!(P&&q>j))return!1;var pe=x.get(e),ge=x.get(t);if(pe&&ge)return pe==t&&ge==e;var xe=-1,Ee=!0,Le=o&$?new Ar:r;for(x.set(e,t),x.set(t,e);++xe<j;){var $e=e[xe],Ue=t[xe];if(a)var Be=P?a(Ue,$e,xe,t,e,x):a($e,Ue,xe,e,t,x);if(Be!==r){if(Be)continue;Ee=!1;break}if(Le){if(!ta(t,function(He,Ke){if(!bi(Le,Ke)&&($e===He||y($e,He,o,a,x)))return Le.push(Ke)})){Ee=!1;break}}else if(!($e===Ue||y($e,Ue,o,a,x))){Ee=!1;break}}return x.delete(e),x.delete(t),Ee}function Tm(e,t,o,a,y,x,P){switch(o){case Re:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case me:return!(e.byteLength!=t.byteLength||!x(new Do(e),new Do(t)));case X:case be:case K:return Nn(+e,+t);case ve:return e.name==t.name&&e.message==t.message;case _:case U:return e==t+"";case W:var j=aa;case M:var q=a&I;if(j||(j=wo),e.size!=t.size&&!q)return!1;var pe=P.get(e);if(pe)return pe==t;a|=$,P.set(e,t);var ge=Af(j(e),j(t),a,y,x,P);return P.delete(e),ge;case te:if(Di)return Di.call(e)==Di.call(t)}return!1}function Pm(e,t,o,a,y,x){var P=o&I,j=Ra(e),q=j.length,pe=Ra(t),ge=pe.length;if(q!=ge&&!P)return!1;for(var xe=q;xe--;){var Ee=j[xe];if(!(P?Ee in t:nt.call(t,Ee)))return!1}var Le=x.get(e),$e=x.get(t);if(Le&&$e)return Le==t&&$e==e;var Ue=!0;x.set(e,t),x.set(t,e);for(var Be=P;++xe<q;){Ee=j[xe];var He=e[Ee],Ke=t[Ee];if(a)var sn=P?a(Ke,He,Ee,t,e,x):a(He,Ke,Ee,e,t,x);if(!(sn===r?He===Ke||y(He,Ke,o,a,x):sn)){Ue=!1;break}Be||(Be=Ee=="constructor")}if(Ue&&!Be){var Ft=e.constructor,an=t.constructor;Ft!=an&&"constructor"in e&&"constructor"in t&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof an=="function"&&an instanceof an)&&(Ue=!1)}return x.delete(e),x.delete(t),Ue}function Zn(e){return Ya(Mf(e,r,Yf),e+"")}function Ra(e){return zc(e,Ct,Ia)}function ka(e){return zc(e,Zt,Df)}var La=Ro?function(e){return Ro.get(e)}:Xa;function Ho(e){for(var t=e.name+"",o=Vr[t],a=nt.call(Vr,t)?o.length:0;a--;){var y=o[a],x=y.func;if(x==null||x==e)return y.name}return t}function Jr(e){var t=nt.call(w,"placeholder")?w:e;return t.placeholder}function Ne(){var e=w.iteratee||Qa;return e=e===Qa?Gc:e,arguments.length?e(arguments[0],arguments[1]):e}function Go(e,t){var o=e.__data__;return Bm(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Na(e){for(var t=Ct(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,Tf(y)]}return t}function Er(e,t){var o=F0(e,t);return Hc(o)?o:r}function Mm(e){var t=nt.call(e,Cr),o=e[Cr];try{e[Cr]=r;var a=!0}catch{}var y=So.call(e);return a&&(t?e[Cr]=o:delete e[Cr]),y}var Ia=la?function(e){return e==null?[]:(e=st(e),lr(la(e),function(t){return Mc.call(e,t)}))}:eu,Df=la?function(e){for(var t=[];e;)cr(t,Ia(e)),e=Oo(e);return t}:eu,Rt=jt;(ca&&Rt(new ca(new ArrayBuffer(1)))!=Re||Ci&&Rt(new Ci)!=W||fa&&Rt(fa.resolve())!=u||Gr&&Rt(new Gr)!=M||Si&&Rt(new Si)!=Ce)&&(Rt=function(e){var t=jt(e),o=t==Se?e.constructor:r,a=o?Tr(o):"";if(a)switch(a){case dv:return Re;case pv:return W;case gv:return u;case vv:return M;case mv:return Ce}return t});function Rm(e,t,o){for(var a=-1,y=o.length;++a<y;){var x=o[a],P=x.size;switch(x.type){case"drop":e+=P;break;case"dropRight":t-=P;break;case"take":t=Mt(t,e+P);break;case"takeRight":e=xt(e,t-P);break}}return{start:e,end:t}}function km(e){var t=e.match($n);return t?t[1].split(dn):[]}function Of(e,t,o){t=gr(t,e);for(var a=-1,y=t.length,x=!1;++a<y;){var P=zn(t[a]);if(!(x=e!=null&&o(e,P)))break;e=e[P]}return x||++a!=y?x:(y=e==null?0:e.length,!!y&&es(y)&&Qn(P,y)&&(Fe(e)||Pr(e)))}function Lm(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&nt.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Ef(e){return typeof e.constructor=="function"&&!ki(e)?Kr(Oo(e)):{}}function Nm(e,t,o){var a=e.constructor;switch(t){case me:return Ta(e);case X:case be:return new a(+e);case Re:return ym(e,o);case Ie:case ke:case Je:case Ze:case rt:case Tt:case pt:case it:case Tn:return cf(e,o);case W:return new a;case K:case U:return new a(e);case _:return _m(e);case M:return new a;case te:return wm(e)}}function Im(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(Xt,`{
125
125
  /* [wrapped with `+t+`] */
126
- `)}function Nm(e){return Fe(e)||Pr(e)||!!(Rc&&e&&e[Rc])}function Qn(e,t){var o=typeof e;return t=t??p,!!t&&(o=="number"||o!="symbol"&&Pt.test(e))&&e>-1&&e%1==0&&e<t}function Yt(e,t,o){if(!ft(o))return!1;var a=typeof t;return(a=="number"?Kt(o)&&Qn(t,o.length):a=="string"&&t in o)?Nn(o[t],e):!1}function Ia(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||on(e)?!0:qt.test(e)||!zt.test(e)||t!=null&&e in st(t)}function Im(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function $a(e){var t=Ho(e),o=w[t];if(typeof o!="function"||!(t in Ge.prototype))return!1;if(e===o)return!0;var a=ka(o);return!!a&&e===a[0]}function $m(e){return!!Ec&&Ec in e}var Bm=xo?Jn:eu;function ki(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Hr;return e===o}function Tf(e){return e===e&&!ft(e)}function Pf(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in st(o))}}function jm(e){var t=Jo(e,function(a){return o.size===D&&o.clear(),a}),o=t.cache;return t}function Ym(e,t){var o=e[1],a=t[1],y=o|a,x=y<(H|se|J),P=a==J&&o==ae||a==J&&o==V&&e[7].length<=t[8]||a==(J|V)&&t[7].length<=t[8]&&o==ae;if(!(x||P))return e;a&H&&(e[2]=t[2],y|=o&H?0:ue);var j=t[3];if(j){var q=e[3];e[3]=q?hf(q,j,t[4]):j,e[4]=q?fr(e[3],E):t[4]}return j=t[5],j&&(q=e[5],e[5]=q?df(q,j,t[6]):j,e[6]=q?fr(e[5],E):t[6]),j=t[7],j&&(e[7]=j),a&J&&(e[8]=e[8]==null?t[8]:Mt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Fm(e){var t=[];if(e!=null)for(var o in st(e))t.push(o);return t}function Wm(e){return So.call(e)}function Mf(e,t,o){return t=xt(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,x=xt(a.length-t,0),P=ie(x);++y<x;)P[y]=a[t+y];y=-1;for(var j=ie(t+1);++y<t;)j[y]=a[y];return j[t]=o(P),tn(e,this,j)}}function Rf(e,t){return t.length<2?e:Or(e,xn(t,0,-1))}function Um(e,t){for(var o=e.length,a=Mt(t.length,o),y=Vt(e);a--;){var x=t[a];e[a]=Qn(x,o)?y[x]:r}return e}function Ba(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var kf=Nf(tf),Li=iv||function(e,t){return Ot.setTimeout(e,t)},ja=Nf(hm);function Lf(e,t,o){var a=t+"";return ja(e,Lm(a,zm(Mm(a),o)))}function Nf(e){var t=0,o=0;return function(){var a=uv(),y=Oe-(a-o);if(o=a,y>0){if(++t>=De)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Vo(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var x=ba(o,y),P=e[x];e[x]=e[o],e[o]=P}return e.length=t,e}var If=jm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jt,function(o,a,y,x){t.push(y?x.replace(Bn,"$1"):a||o)}),t});function zn(e){if(typeof e=="string"||on(e))return e;var t=e+"";return t=="0"&&1/e==-d?"-0":t}function Tr(e){if(e!=null){try{return Co.call(e)}catch{}try{return e+""}catch{}}return""}function zm(e,t){return yn(G,function(o){var a="_."+o[0];t&o[1]&&!yo(e,a)&&e.push(a)}),e.sort()}function $f(e){if(e instanceof Ge)return e.clone();var t=new wn(e.__wrapped__,e.__chain__);return t.__actions__=Vt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qm(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=xt(We(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,x=0,P=ie(Po(a/t));y<a;)P[x++]=xn(e,y,y+=t);return P}function Hm(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var x=e[t];x&&(y[a++]=x)}return y}function Gm(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return cr(Fe(o)?Vt(o):[o],Et(t,1))}var Vm=qe(function(e,t){return gt(e)?Ei(e,Et(t,1,gt,!0)):[]}),Km=qe(function(e,t){var o=Cn(t);return gt(o)&&(o=r),gt(e)?Ei(e,Et(t,1,gt,!0),Ne(o,2)):[]}),Zm=qe(function(e,t){var o=Cn(t);return gt(o)&&(o=r),gt(e)?Ei(e,Et(t,1,gt,!0),r,o):[]});function Qm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),xn(e,t<0?0:t,a)):[]}function Jm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,xn(e,0,t<0?0:t)):[]}function Xm(e,t){return e&&e.length?Yo(e,Ne(t,3),!0,!0):[]}function ey(e,t){return e&&e.length?Yo(e,Ne(t,3),!0):[]}function ty(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&Yt(e,t,o)&&(o=0,a=y),Gv(e,t,o,a)):[]}function Bf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=xt(a+y,0)),_o(e,Ne(t,3),y)}function jf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=We(o),y=o<0?xt(a+y,0):Mt(y,a-1)),_o(e,Ne(t,3),y,!0)}function Yf(e){var t=e==null?0:e.length;return t?Et(e,1):[]}function ny(e){var t=e==null?0:e.length;return t?Et(e,d):[]}function ry(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:We(t),Et(e,t)):[]}function iy(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var y=e[t];a[y[0]]=y[1]}return a}function Ff(e){return e&&e.length?e[0]:r}function oy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=xt(a+y,0)),Wr(e,t,y)}function sy(e){var t=e==null?0:e.length;return t?xn(e,0,-1):[]}var ay=qe(function(e){var t=ct(e,Da);return t.length&&t[0]===e[0]?va(t):[]}),uy=qe(function(e){var t=Cn(e),o=ct(e,Da);return t===Cn(o)?t=r:o.pop(),o.length&&o[0]===e[0]?va(o,Ne(t,2)):[]}),ly=qe(function(e){var t=Cn(e),o=ct(e,Da);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?va(o,r,t):[]});function cy(e,t){return e==null?"":sv.call(e,t)}function Cn(e){var t=e==null?0:e.length;return t?e[t-1]:r}function fy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=We(o),y=y<0?xt(a+y,0):Mt(y,a-1)),t===t?z0(e,t,y):_o(e,wc,y,!0)}function hy(e,t){return e&&e.length?Qc(e,We(t)):r}var dy=qe(Wf);function Wf(e,t){return e&&e.length&&t&&t.length?wa(e,t):e}function py(e,t,o){return e&&e.length&&t&&t.length?wa(e,t,Ne(o,2)):e}function gy(e,t,o){return e&&e.length&&t&&t.length?wa(e,t,r,o):e}var vy=Zn(function(e,t){var o=e==null?0:e.length,a=ha(e,t);return ef(e,ct(t,function(y){return Qn(y,o)?+y:y}).sort(ff)),a});function my(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],x=e.length;for(t=Ne(t,3);++a<x;){var P=e[a];t(P,a,e)&&(o.push(P),y.push(a))}return ef(e,y),o}function Ya(e){return e==null?e:cv.call(e)}function yy(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&Yt(e,t,o)?(t=0,o=a):(t=t==null?0:We(t),o=o===r?a:We(o)),xn(e,t,o)):[]}function _y(e,t){return jo(e,t)}function wy(e,t,o){return Ca(e,t,Ne(o,2))}function by(e,t){var o=e==null?0:e.length;if(o){var a=jo(e,t);if(a<o&&Nn(e[a],t))return a}return-1}function xy(e,t){return jo(e,t,!0)}function Cy(e,t,o){return Ca(e,t,Ne(o,2),!0)}function Sy(e,t){var o=e==null?0:e.length;if(o){var a=jo(e,t,!0)-1;if(Nn(e[a],t))return a}return-1}function Ay(e){return e&&e.length?nf(e):[]}function Dy(e,t){return e&&e.length?nf(e,Ne(t,2)):[]}function Oy(e){var t=e==null?0:e.length;return t?xn(e,1,t):[]}function Ey(e,t,o){return e&&e.length?(t=o||t===r?1:We(t),xn(e,0,t<0?0:t)):[]}function Ty(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,xn(e,t<0?0:t,a)):[]}function Py(e,t){return e&&e.length?Yo(e,Ne(t,3),!1,!0):[]}function My(e,t){return e&&e.length?Yo(e,Ne(t,3)):[]}var Ry=qe(function(e){return pr(Et(e,1,gt,!0))}),ky=qe(function(e){var t=Cn(e);return gt(t)&&(t=r),pr(Et(e,1,gt,!0),Ne(t,2))}),Ly=qe(function(e){var t=Cn(e);return t=typeof t=="function"?t:r,pr(Et(e,1,gt,!0),r,t)});function Ny(e){return e&&e.length?pr(e):[]}function Iy(e,t){return e&&e.length?pr(e,Ne(t,2)):[]}function $y(e,t){return t=typeof t=="function"?t:r,e&&e.length?pr(e,r,t):[]}function Fa(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(o){if(gt(o))return t=xt(o.length,t),!0}),ia(t,function(o){return ct(e,ta(o))})}function Uf(e,t){if(!(e&&e.length))return[];var o=Fa(e);return t==null?o:ct(o,function(a){return tn(t,r,a)})}var By=qe(function(e,t){return gt(e)?Ei(e,t):[]}),jy=qe(function(e){return Aa(lr(e,gt))}),Yy=qe(function(e){var t=Cn(e);return gt(t)&&(t=r),Aa(lr(e,gt),Ne(t,2))}),Fy=qe(function(e){var t=Cn(e);return t=typeof t=="function"?t:r,Aa(lr(e,gt),r,t)}),Wy=qe(Fa);function Uy(e,t){return af(e||[],t||[],Oi)}function zy(e,t){return af(e||[],t||[],Mi)}var qy=qe(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Uf(e,o)});function zf(e){var t=w(e);return t.__chain__=!0,t}function Hy(e,t){return t(e),e}function Ko(e,t){return t(e)}var Gy=Zn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(x){return ha(x,e)};return t>1||this.__actions__.length||!(a instanceof Ge)||!Qn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Ko,args:[y],thisArg:r}),new wn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Vy(){return zf(this)}function Ky(){return new wn(this.value(),this.__chain__)}function Zy(){this.__values__===r&&(this.__values__=ih(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Qy(){return this}function Jy(e){for(var t,o=this;o instanceof Lo;){var a=$f(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function Xy(){var e=this.__wrapped__;if(e instanceof Ge){var t=e;return this.__actions__.length&&(t=new Ge(this)),t=t.reverse(),t.__actions__.push({func:Ko,args:[Ya],thisArg:r}),new wn(t,this.__chain__)}return this.thru(Ya)}function e_(){return sf(this.__wrapped__,this.__actions__)}var t_=Fo(function(e,t,o){rt.call(e,o)?++e[o]:Vn(e,o,1)});function n_(e,t,o){var a=Fe(e)?yc:Hv;return o&&Yt(e,t,o)&&(t=r),a(e,Ne(t,3))}function r_(e,t){var o=Fe(e)?lr:Wc;return o(e,Ne(t,3))}var i_=mf(Bf),o_=mf(jf);function s_(e,t){return Et(Zo(e,t),1)}function a_(e,t){return Et(Zo(e,t),d)}function u_(e,t,o){return o=o===r?1:We(o),Et(Zo(e,t),o)}function qf(e,t){var o=Fe(e)?yn:dr;return o(e,Ne(t,3))}function Hf(e,t){var o=Fe(e)?O0:Fc;return o(e,Ne(t,3))}var l_=Fo(function(e,t,o){rt.call(e,o)?e[o].push(t):Vn(e,o,[t])});function c_(e,t,o,a){e=Kt(e)?e:ei(e),o=o&&!a?We(o):0;var y=e.length;return o<0&&(o=xt(y+o,0)),ts(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&Wr(e,t,o)>-1}var f_=qe(function(e,t,o){var a=-1,y=typeof t=="function",x=Kt(e)?ie(e.length):[];return dr(e,function(P){x[++a]=y?tn(t,P,o):Ti(P,t,o)}),x}),h_=Fo(function(e,t,o){Vn(e,o,t)});function Zo(e,t){var o=Fe(e)?ct:Vc;return o(e,Ne(t,3))}function d_(e,t,o,a){return e==null?[]:(Fe(t)||(t=t==null?[]:[t]),o=a?r:o,Fe(o)||(o=o==null?[]:[o]),Jc(e,t,o))}var p_=Fo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function g_(e,t,o){var a=Fe(e)?Xs:xc,y=arguments.length<3;return a(e,Ne(t,4),o,y,dr)}function v_(e,t,o){var a=Fe(e)?E0:xc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Fc)}function m_(e,t){var o=Fe(e)?lr:Wc;return o(e,Xo(Ne(t,3)))}function y_(e){var t=Fe(e)?$c:cm;return t(e)}function __(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=We(t);var a=Fe(e)?Fv:fm;return a(e,t)}function w_(e){var t=Fe(e)?Wv:dm;return t(e)}function b_(e){if(e==null)return 0;if(Kt(e))return ts(e)?zr(e):e.length;var t=Rt(e);return t==W||t==M?e.size:ya(e).length}function x_(e,t,o){var a=Fe(e)?ea:pm;return o&&Yt(e,t,o)&&(t=r),a(e,Ne(t,3))}var C_=qe(function(e,t){if(e==null)return[];var o=t.length;return o>1&&Yt(e,t[0],t[1])?t=[]:o>2&&Yt(t[0],t[1],t[2])&&(t=[t[0]]),Jc(e,Et(t,1),[])}),Qo=rv||function(){return Ot.Date.now()};function S_(e,t){if(typeof t!="function")throw new _n(m);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function Gf(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Kn(e,J,r,r,r,r,t)}function Vf(e,t){var o;if(typeof t!="function")throw new _n(m);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Wa=qe(function(e,t,o){var a=H;if(o.length){var y=fr(o,Jr(Wa));a|=Q}return Kn(e,a,t,o,y)}),Kf=qe(function(e,t,o){var a=H|se;if(o.length){var y=fr(o,Jr(Kf));a|=Q}return Kn(t,a,e,o,y)});function Zf(e,t,o){t=o?r:t;var a=Kn(e,ae,r,r,r,r,r,t);return a.placeholder=Zf.placeholder,a}function Qf(e,t,o){t=o?r:t;var a=Kn(e,ce,r,r,r,r,r,t);return a.placeholder=Qf.placeholder,a}function Jf(e,t,o){var a,y,x,P,j,q,pe=0,ge=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new _n(m);t=Sn(t)||0,ft(o)&&(ge=!!o.leading,xe="maxWait"in o,x=xe?xt(Sn(o.maxWait)||0,t):x,Ee="trailing"in o?!!o.trailing:Ee);function Le(vt){var In=a,er=y;return a=y=r,pe=vt,P=e.apply(er,In),P}function $e(vt){return pe=vt,j=Li(He,t),ge?Le(vt):P}function Ue(vt){var In=vt-q,er=vt-pe,mh=t-In;return xe?Mt(mh,x-er):mh}function Be(vt){var In=vt-q,er=vt-pe;return q===r||In>=t||In<0||xe&&er>=x}function He(){var vt=Qo();if(Be(vt))return Ke(vt);j=Li(He,Ue(vt))}function Ke(vt){return j=r,Ee&&a?Le(vt):(a=y=r,P)}function sn(){j!==r&&uf(j),pe=0,a=q=y=j=r}function Ft(){return j===r?P:Ke(Qo())}function an(){var vt=Qo(),In=Be(vt);if(a=arguments,y=this,q=vt,In){if(j===r)return $e(q);if(xe)return uf(j),j=Li(He,t),Le(q)}return j===r&&(j=Li(He,t)),P}return an.cancel=sn,an.flush=Ft,an}var A_=qe(function(e,t){return Yc(e,1,t)}),D_=qe(function(e,t,o){return Yc(e,Sn(t)||0,o)});function O_(e){return Kn(e,de)}function Jo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new _n(m);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],x=o.cache;if(x.has(y))return x.get(y);var P=e.apply(this,a);return o.cache=x.set(y,P)||x,P};return o.cache=new(Jo.Cache||Gn),o}Jo.Cache=Gn;function Xo(e){if(typeof e!="function")throw new _n(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function E_(e){return Vf(2,e)}var T_=gm(function(e,t){t=t.length==1&&Fe(t[0])?ct(t[0],nn(Ne())):ct(Et(t,1),nn(Ne()));var o=t.length;return qe(function(a){for(var y=-1,x=Mt(a.length,o);++y<x;)a[y]=t[y].call(this,a[y]);return tn(e,this,a)})}),Ua=qe(function(e,t){var o=fr(t,Jr(Ua));return Kn(e,Q,r,t,o)}),Xf=qe(function(e,t){var o=fr(t,Jr(Xf));return Kn(e,ne,r,t,o)}),P_=Zn(function(e,t){return Kn(e,V,r,r,r,t)});function M_(e,t){if(typeof e!="function")throw new _n(m);return t=t===r?t:We(t),qe(e,t)}function R_(e,t){if(typeof e!="function")throw new _n(m);return t=t==null?0:xt(We(t),0),qe(function(o){var a=o[t],y=vr(o,0,t);return a&&cr(y,a),tn(e,this,y)})}function k_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new _n(m);return ft(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Jf(e,t,{leading:a,maxWait:t,trailing:y})}function L_(e){return Gf(e,1)}function N_(e,t){return Ua(Oa(t),e)}function I_(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}function $_(e){return bn(e,L)}function B_(e,t){return t=typeof t=="function"?t:r,bn(e,L,t)}function j_(e){return bn(e,N|L)}function Y_(e,t){return t=typeof t=="function"?t:r,bn(e,N|L,t)}function F_(e,t){return t==null||jc(e,t,Ct(t))}function Nn(e,t){return e===t||e!==e&&t!==t}var W_=qo(ga),U_=qo(function(e,t){return e>=t}),Pr=qc(function(){return arguments}())?qc:function(e){return dt(e)&&rt.call(e,"callee")&&!Mc.call(e,"callee")},Fe=ie.isArray,z_=hc?nn(hc):Jv;function Kt(e){return e!=null&&es(e.length)&&!Jn(e)}function gt(e){return dt(e)&&Kt(e)}function q_(e){return e===!0||e===!1||dt(e)&&jt(e)==X}var mr=ov||eu,H_=dc?nn(dc):Xv;function G_(e){return dt(e)&&e.nodeType===1&&!Ni(e)}function V_(e){if(e==null)return!0;if(Kt(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||mr(e)||Xr(e)||Pr(e)))return!e.length;var t=Rt(e);if(t==W||t==M)return!e.size;if(ki(e))return!ya(e).length;for(var o in e)if(rt.call(e,o))return!1;return!0}function K_(e,t){return Pi(e,t)}function Z_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?Pi(e,t,r,o):!!a}function za(e){if(!dt(e))return!1;var t=jt(e);return t==ve||t==_e||typeof e.message=="string"&&typeof e.name=="string"&&!Ni(e)}function Q_(e){return typeof e=="number"&&kc(e)}function Jn(e){if(!ft(e))return!1;var t=jt(e);return t==B||t==Z||t==we||t==c}function eh(e){return typeof e=="number"&&e==We(e)}function es(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=p}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dt(e){return e!=null&&typeof e=="object"}var th=pc?nn(pc):tm;function J_(e,t){return e===t||ma(e,t,La(t))}function X_(e,t,o){return o=typeof o=="function"?o:r,ma(e,t,La(t),o)}function ew(e){return nh(e)&&e!=+e}function tw(e){if(Bm(e))throw new Ye(g);return Hc(e)}function nw(e){return e===null}function rw(e){return e==null}function nh(e){return typeof e=="number"||dt(e)&&jt(e)==K}function Ni(e){if(!dt(e)||jt(e)!=Se)return!1;var t=Oo(e);if(t===null)return!0;var o=rt.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Co.call(o)==X0}var qa=gc?nn(gc):nm;function iw(e){return eh(e)&&e>=-p&&e<=p}var rh=vc?nn(vc):rm;function ts(e){return typeof e=="string"||!Fe(e)&&dt(e)&&jt(e)==U}function on(e){return typeof e=="symbol"||dt(e)&&jt(e)==te}var Xr=mc?nn(mc):im;function ow(e){return e===r}function sw(e){return dt(e)&&Rt(e)==Ce}function aw(e){return dt(e)&&jt(e)==Pe}var uw=qo(_a),lw=qo(function(e,t){return e<=t});function ih(e){if(!e)return[];if(Kt(e))return ts(e)?kn(e):Vt(e);if(xi&&e[xi])return F0(e[xi]());var t=Rt(e),o=t==W?sa:t==M?wo:ei;return o(e)}function Xn(e){if(!e)return e===0?e:0;if(e=Sn(e),e===d||e===-d){var t=e<0?-1:1;return t*b}return e===e?e:0}function We(e){var t=Xn(e),o=t%1;return t===t?o?t-o:t:0}function oh(e){return e?Dr(We(e),0,v):0}function Sn(e){if(typeof e=="number")return e;if(on(e))return f;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Cc(e);var o=Ze.test(e);return o||Gt.test(e)?S0(e.slice(2),o?2:8):_t.test(e)?f:+e}function sh(e){return Un(e,Zt(e))}function cw(e){return e?Dr(We(e),-p,p):e===0?e:0}function et(e){return e==null?"":rn(e)}var fw=Zr(function(e,t){if(ki(t)||Kt(t)){Un(t,Ct(t),e);return}for(var o in t)rt.call(t,o)&&Oi(e,o,t[o])}),ah=Zr(function(e,t){Un(t,Zt(t),e)}),ns=Zr(function(e,t,o,a){Un(t,Zt(t),e,a)}),hw=Zr(function(e,t,o,a){Un(t,Ct(t),e,a)}),dw=Zn(ha);function pw(e,t){var o=Kr(e);return t==null?o:Bc(o,t)}var gw=qe(function(e,t){e=st(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&Yt(t[0],t[1],y)&&(a=1);++o<a;)for(var x=t[o],P=Zt(x),j=-1,q=P.length;++j<q;){var pe=P[j],ge=e[pe];(ge===r||Nn(ge,Hr[pe])&&!rt.call(e,pe))&&(e[pe]=x[pe])}return e}),vw=qe(function(e){return e.push(r,Sf),tn(uh,r,e)});function mw(e,t){return _c(e,Ne(t,3),Wn)}function yw(e,t){return _c(e,Ne(t,3),pa)}function _w(e,t){return e==null?e:da(e,Ne(t,3),Zt)}function ww(e,t){return e==null?e:Uc(e,Ne(t,3),Zt)}function bw(e,t){return e&&Wn(e,Ne(t,3))}function xw(e,t){return e&&pa(e,Ne(t,3))}function Cw(e){return e==null?[]:$o(e,Ct(e))}function Sw(e){return e==null?[]:$o(e,Zt(e))}function Ha(e,t,o){var a=e==null?r:Or(e,t);return a===r?o:a}function Aw(e,t){return e!=null&&Of(e,t,Vv)}function Ga(e,t){return e!=null&&Of(e,t,Kv)}var Dw=_f(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=So.call(t)),e[t]=o},Ka(Qt)),Ow=_f(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=So.call(t)),rt.call(e,t)?e[t].push(o):e[t]=[o]},Ne),Ew=qe(Ti);function Ct(e){return Kt(e)?Ic(e):ya(e)}function Zt(e){return Kt(e)?Ic(e,!0):om(e)}function Tw(e,t){var o={};return t=Ne(t,3),Wn(e,function(a,y,x){Vn(o,t(a,y,x),a)}),o}function Pw(e,t){var o={};return t=Ne(t,3),Wn(e,function(a,y,x){Vn(o,y,t(a,y,x))}),o}var Mw=Zr(function(e,t,o){Bo(e,t,o)}),uh=Zr(function(e,t,o,a){Bo(e,t,o,a)}),Rw=Zn(function(e,t){var o={};if(e==null)return o;var a=!1;t=ct(t,function(x){return x=gr(x,e),a||(a=x.length>1),x}),Un(e,Ra(e),o),a&&(o=bn(o,N|R|L,Dm));for(var y=t.length;y--;)Sa(o,t[y]);return o});function kw(e,t){return lh(e,Xo(Ne(t)))}var Lw=Zn(function(e,t){return e==null?{}:am(e,t)});function lh(e,t){if(e==null)return{};var o=ct(Ra(e),function(a){return[a]});return t=Ne(t),Xc(e,o,function(a,y){return t(a,y[0])})}function Nw(e,t,o){t=gr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var x=e==null?r:e[zn(t[a])];x===r&&(a=y,x=o),e=Jn(x)?x.call(e):x}return e}function Iw(e,t,o){return e==null?e:Mi(e,t,o)}function $w(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Mi(e,t,o,a)}var ch=xf(Ct),fh=xf(Zt);function Bw(e,t,o){var a=Fe(e),y=a||mr(e)||Xr(e);if(t=Ne(t,4),o==null){var x=e&&e.constructor;y?o=a?new x:[]:ft(e)?o=Jn(x)?Kr(Oo(e)):{}:o={}}return(y?yn:Wn)(e,function(P,j,q){return t(o,P,j,q)}),o}function jw(e,t){return e==null?!0:Sa(e,t)}function Yw(e,t,o){return e==null?e:of(e,t,Oa(o))}function Fw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:of(e,t,Oa(o),a)}function ei(e){return e==null?[]:oa(e,Ct(e))}function Ww(e){return e==null?[]:oa(e,Zt(e))}function Uw(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=Sn(o),o=o===o?o:0),t!==r&&(t=Sn(t),t=t===t?t:0),Dr(Sn(e),t,o)}function zw(e,t,o){return t=Xn(t),o===r?(o=t,t=0):o=Xn(o),e=Sn(e),Zv(e,t,o)}function qw(e,t,o){if(o&&typeof o!="boolean"&&Yt(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Xn(e),t===r?(t=e,e=0):t=Xn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Lc();return Mt(e+y*(t-e+C0("1e-"+((y+"").length-1))),t)}return ba(e,t)}var Hw=Qr(function(e,t,o){return t=t.toLowerCase(),e+(o?hh(t):t)});function hh(e){return Va(et(e).toLowerCase())}function dh(e){return e=et(e),e&&e.replace(wt,I0).replace(d0,"")}function Gw(e,t,o){e=et(e),t=rn(t);var a=e.length;o=o===r?a:Dr(We(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function Vw(e){return e=et(e),e&&fn.test(e)?e.replace(Mn,$0):e}function Kw(e){return e=et(e),e&&ze.test(e)?e.replace(Ht,"\\$&"):e}var Zw=Qr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Qw=Qr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Jw=vf("toLowerCase");function Xw(e,t,o){e=et(e),t=We(t);var a=t?zr(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return zo(Mo(y),o)+e+zo(Po(y),o)}function e2(e,t,o){e=et(e),t=We(t);var a=t?zr(e):0;return t&&a<t?e+zo(t-a,o):e}function t2(e,t,o){e=et(e),t=We(t);var a=t?zr(e):0;return t&&a<t?zo(t-a,o)+e:e}function n2(e,t,o){return o||t==null?t=0:t&&(t=+t),lv(et(e).replace(ut,""),t||0)}function r2(e,t,o){return(o?Yt(e,t,o):t===r)?t=1:t=We(t),xa(et(e),t)}function i2(){var e=arguments,t=et(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var o2=Qr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function s2(e,t,o){return o&&typeof o!="number"&&Yt(e,t,o)&&(t=o=r),o=o===r?v:o>>>0,o?(e=et(e),e&&(typeof t=="string"||t!=null&&!qa(t))&&(t=rn(t),!t&&Ur(e))?vr(kn(e),0,o):e.split(t,o)):[]}var a2=Qr(function(e,t,o){return e+(o?" ":"")+Va(t)});function u2(e,t,o){return e=et(e),o=o==null?0:Dr(We(o),0,e.length),t=rn(t),e.slice(o,o+t.length)==t}function l2(e,t,o){var a=w.templateSettings;o&&Yt(e,t,o)&&(t=r),e=et(e),t=ns({},t,a,Cf);var y=ns({},t.imports,a.imports,Cf),x=Ct(y),P=oa(y,x),j,q,pe=0,ge=t.interpolate||Bt,xe="__p += '",Ee=aa((t.escape||Bt).source+"|"+ge.source+"|"+(ge===It?gn:Bt).source+"|"+(t.evaluate||Bt).source+"|$","g"),Le="//# sourceURL="+(rt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y0+"]")+`
127
- `;e.replace(Ee,function(Be,He,Ke,sn,Ft,an){return Ke||(Ke=sn),xe+=e.slice(pe,an).replace(en,B0),He&&(j=!0,xe+=`' +
126
+ `)}function $m(e){return Fe(e)||Pr(e)||!!(Rc&&e&&e[Rc])}function Qn(e,t){var o=typeof e;return t=t??p,!!t&&(o=="number"||o!="symbol"&&Pt.test(e))&&e>-1&&e%1==0&&e<t}function Yt(e,t,o){if(!ft(o))return!1;var a=typeof t;return(a=="number"?Kt(o)&&Qn(t,o.length):a=="string"&&t in o)?Nn(o[t],e):!1}function $a(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||on(e)?!0:qt.test(e)||!zt.test(e)||t!=null&&e in st(t)}function Bm(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ba(e){var t=Ho(e),o=w[t];if(typeof o!="function"||!(t in Ge.prototype))return!1;if(e===o)return!0;var a=La(o);return!!a&&e===a[0]}function jm(e){return!!Ec&&Ec in e}var Ym=xo?Jn:tu;function ki(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Hr;return e===o}function Tf(e){return e===e&&!ft(e)}function Pf(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in st(o))}}function Fm(e){var t=Jo(e,function(a){return o.size===D&&o.clear(),a}),o=t.cache;return t}function Wm(e,t){var o=e[1],a=t[1],y=o|a,x=y<(H|se|J),P=a==J&&o==ae||a==J&&o==V&&e[7].length<=t[8]||a==(J|V)&&t[7].length<=t[8]&&o==ae;if(!(x||P))return e;a&H&&(e[2]=t[2],y|=o&H?0:ue);var j=t[3];if(j){var q=e[3];e[3]=q?hf(q,j,t[4]):j,e[4]=q?fr(e[3],E):t[4]}return j=t[5],j&&(q=e[5],e[5]=q?df(q,j,t[6]):j,e[6]=q?fr(e[5],E):t[6]),j=t[7],j&&(e[7]=j),a&J&&(e[8]=e[8]==null?t[8]:Mt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Um(e){var t=[];if(e!=null)for(var o in st(e))t.push(o);return t}function zm(e){return So.call(e)}function Mf(e,t,o){return t=xt(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,x=xt(a.length-t,0),P=ie(x);++y<x;)P[y]=a[t+y];y=-1;for(var j=ie(t+1);++y<t;)j[y]=a[y];return j[t]=o(P),tn(e,this,j)}}function Rf(e,t){return t.length<2?e:Or(e,xn(t,0,-1))}function qm(e,t){for(var o=e.length,a=Mt(t.length,o),y=Vt(e);a--;){var x=t[a];e[a]=Qn(x,o)?y[x]:r}return e}function ja(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var kf=Nf(tf),Li=sv||function(e,t){return Ot.setTimeout(e,t)},Ya=Nf(pm);function Lf(e,t,o){var a=t+"";return Ya(e,Im(a,Hm(km(a),o)))}function Nf(e){var t=0,o=0;return function(){var a=cv(),y=Oe-(a-o);if(o=a,y>0){if(++t>=De)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Vo(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var x=xa(o,y),P=e[x];e[x]=e[o],e[o]=P}return e.length=t,e}var If=Fm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jt,function(o,a,y,x){t.push(y?x.replace(Bn,"$1"):a||o)}),t});function zn(e){if(typeof e=="string"||on(e))return e;var t=e+"";return t=="0"&&1/e==-d?"-0":t}function Tr(e){if(e!=null){try{return Co.call(e)}catch{}try{return e+""}catch{}}return""}function Hm(e,t){return yn(G,function(o){var a="_."+o[0];t&o[1]&&!yo(e,a)&&e.push(a)}),e.sort()}function $f(e){if(e instanceof Ge)return e.clone();var t=new wn(e.__wrapped__,e.__chain__);return t.__actions__=Vt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gm(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=xt(We(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,x=0,P=ie(Po(a/t));y<a;)P[x++]=xn(e,y,y+=t);return P}function Vm(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var x=e[t];x&&(y[a++]=x)}return y}function Km(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return cr(Fe(o)?Vt(o):[o],Et(t,1))}var Zm=qe(function(e,t){return gt(e)?Ei(e,Et(t,1,gt,!0)):[]}),Qm=qe(function(e,t){var o=Cn(t);return gt(o)&&(o=r),gt(e)?Ei(e,Et(t,1,gt,!0),Ne(o,2)):[]}),Jm=qe(function(e,t){var o=Cn(t);return gt(o)&&(o=r),gt(e)?Ei(e,Et(t,1,gt,!0),r,o):[]});function Xm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),xn(e,t<0?0:t,a)):[]}function ey(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,xn(e,0,t<0?0:t)):[]}function ty(e,t){return e&&e.length?Yo(e,Ne(t,3),!0,!0):[]}function ny(e,t){return e&&e.length?Yo(e,Ne(t,3),!0):[]}function ry(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&Yt(e,t,o)&&(o=0,a=y),Kv(e,t,o,a)):[]}function Bf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=xt(a+y,0)),_o(e,Ne(t,3),y)}function jf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=We(o),y=o<0?xt(a+y,0):Mt(y,a-1)),_o(e,Ne(t,3),y,!0)}function Yf(e){var t=e==null?0:e.length;return t?Et(e,1):[]}function iy(e){var t=e==null?0:e.length;return t?Et(e,d):[]}function oy(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:We(t),Et(e,t)):[]}function sy(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var y=e[t];a[y[0]]=y[1]}return a}function Ff(e){return e&&e.length?e[0]:r}function ay(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:We(o);return y<0&&(y=xt(a+y,0)),Wr(e,t,y)}function uy(e){var t=e==null?0:e.length;return t?xn(e,0,-1):[]}var ly=qe(function(e){var t=ct(e,Oa);return t.length&&t[0]===e[0]?ma(t):[]}),cy=qe(function(e){var t=Cn(e),o=ct(e,Oa);return t===Cn(o)?t=r:o.pop(),o.length&&o[0]===e[0]?ma(o,Ne(t,2)):[]}),fy=qe(function(e){var t=Cn(e),o=ct(e,Oa);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?ma(o,r,t):[]});function hy(e,t){return e==null?"":uv.call(e,t)}function Cn(e){var t=e==null?0:e.length;return t?e[t-1]:r}function dy(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=We(o),y=y<0?xt(a+y,0):Mt(y,a-1)),t===t?H0(e,t,y):_o(e,wc,y,!0)}function py(e,t){return e&&e.length?Qc(e,We(t)):r}var gy=qe(Wf);function Wf(e,t){return e&&e.length&&t&&t.length?ba(e,t):e}function vy(e,t,o){return e&&e.length&&t&&t.length?ba(e,t,Ne(o,2)):e}function my(e,t,o){return e&&e.length&&t&&t.length?ba(e,t,r,o):e}var yy=Zn(function(e,t){var o=e==null?0:e.length,a=da(e,t);return ef(e,ct(t,function(y){return Qn(y,o)?+y:y}).sort(ff)),a});function _y(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],x=e.length;for(t=Ne(t,3);++a<x;){var P=e[a];t(P,a,e)&&(o.push(P),y.push(a))}return ef(e,y),o}function Fa(e){return e==null?e:hv.call(e)}function wy(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&Yt(e,t,o)?(t=0,o=a):(t=t==null?0:We(t),o=o===r?a:We(o)),xn(e,t,o)):[]}function by(e,t){return jo(e,t)}function xy(e,t,o){return Sa(e,t,Ne(o,2))}function Cy(e,t){var o=e==null?0:e.length;if(o){var a=jo(e,t);if(a<o&&Nn(e[a],t))return a}return-1}function Sy(e,t){return jo(e,t,!0)}function Ay(e,t,o){return Sa(e,t,Ne(o,2),!0)}function Dy(e,t){var o=e==null?0:e.length;if(o){var a=jo(e,t,!0)-1;if(Nn(e[a],t))return a}return-1}function Oy(e){return e&&e.length?nf(e):[]}function Ey(e,t){return e&&e.length?nf(e,Ne(t,2)):[]}function Ty(e){var t=e==null?0:e.length;return t?xn(e,1,t):[]}function Py(e,t,o){return e&&e.length?(t=o||t===r?1:We(t),xn(e,0,t<0?0:t)):[]}function My(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),t=a-t,xn(e,t<0?0:t,a)):[]}function Ry(e,t){return e&&e.length?Yo(e,Ne(t,3),!1,!0):[]}function ky(e,t){return e&&e.length?Yo(e,Ne(t,3)):[]}var Ly=qe(function(e){return pr(Et(e,1,gt,!0))}),Ny=qe(function(e){var t=Cn(e);return gt(t)&&(t=r),pr(Et(e,1,gt,!0),Ne(t,2))}),Iy=qe(function(e){var t=Cn(e);return t=typeof t=="function"?t:r,pr(Et(e,1,gt,!0),r,t)});function $y(e){return e&&e.length?pr(e):[]}function By(e,t){return e&&e.length?pr(e,Ne(t,2)):[]}function jy(e,t){return t=typeof t=="function"?t:r,e&&e.length?pr(e,r,t):[]}function Wa(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(o){if(gt(o))return t=xt(o.length,t),!0}),oa(t,function(o){return ct(e,na(o))})}function Uf(e,t){if(!(e&&e.length))return[];var o=Wa(e);return t==null?o:ct(o,function(a){return tn(t,r,a)})}var Yy=qe(function(e,t){return gt(e)?Ei(e,t):[]}),Fy=qe(function(e){return Da(lr(e,gt))}),Wy=qe(function(e){var t=Cn(e);return gt(t)&&(t=r),Da(lr(e,gt),Ne(t,2))}),Uy=qe(function(e){var t=Cn(e);return t=typeof t=="function"?t:r,Da(lr(e,gt),r,t)}),zy=qe(Wa);function qy(e,t){return af(e||[],t||[],Oi)}function Hy(e,t){return af(e||[],t||[],Mi)}var Gy=qe(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Uf(e,o)});function zf(e){var t=w(e);return t.__chain__=!0,t}function Vy(e,t){return t(e),e}function Ko(e,t){return t(e)}var Ky=Zn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(x){return da(x,e)};return t>1||this.__actions__.length||!(a instanceof Ge)||!Qn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Ko,args:[y],thisArg:r}),new wn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Zy(){return zf(this)}function Qy(){return new wn(this.value(),this.__chain__)}function Jy(){this.__values__===r&&(this.__values__=ih(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Xy(){return this}function e_(e){for(var t,o=this;o instanceof Lo;){var a=$f(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function t_(){var e=this.__wrapped__;if(e instanceof Ge){var t=e;return this.__actions__.length&&(t=new Ge(this)),t=t.reverse(),t.__actions__.push({func:Ko,args:[Fa],thisArg:r}),new wn(t,this.__chain__)}return this.thru(Fa)}function n_(){return sf(this.__wrapped__,this.__actions__)}var r_=Fo(function(e,t,o){nt.call(e,o)?++e[o]:Vn(e,o,1)});function i_(e,t,o){var a=Fe(e)?yc:Vv;return o&&Yt(e,t,o)&&(t=r),a(e,Ne(t,3))}function o_(e,t){var o=Fe(e)?lr:Wc;return o(e,Ne(t,3))}var s_=mf(Bf),a_=mf(jf);function u_(e,t){return Et(Zo(e,t),1)}function l_(e,t){return Et(Zo(e,t),d)}function c_(e,t,o){return o=o===r?1:We(o),Et(Zo(e,t),o)}function qf(e,t){var o=Fe(e)?yn:dr;return o(e,Ne(t,3))}function Hf(e,t){var o=Fe(e)?T0:Fc;return o(e,Ne(t,3))}var f_=Fo(function(e,t,o){nt.call(e,o)?e[o].push(t):Vn(e,o,[t])});function h_(e,t,o,a){e=Kt(e)?e:ei(e),o=o&&!a?We(o):0;var y=e.length;return o<0&&(o=xt(y+o,0)),ts(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&Wr(e,t,o)>-1}var d_=qe(function(e,t,o){var a=-1,y=typeof t=="function",x=Kt(e)?ie(e.length):[];return dr(e,function(P){x[++a]=y?tn(t,P,o):Ti(P,t,o)}),x}),p_=Fo(function(e,t,o){Vn(e,o,t)});function Zo(e,t){var o=Fe(e)?ct:Vc;return o(e,Ne(t,3))}function g_(e,t,o,a){return e==null?[]:(Fe(t)||(t=t==null?[]:[t]),o=a?r:o,Fe(o)||(o=o==null?[]:[o]),Jc(e,t,o))}var v_=Fo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function m_(e,t,o){var a=Fe(e)?ea:xc,y=arguments.length<3;return a(e,Ne(t,4),o,y,dr)}function y_(e,t,o){var a=Fe(e)?P0:xc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Fc)}function __(e,t){var o=Fe(e)?lr:Wc;return o(e,Xo(Ne(t,3)))}function w_(e){var t=Fe(e)?$c:hm;return t(e)}function b_(e,t,o){(o?Yt(e,t,o):t===r)?t=1:t=We(t);var a=Fe(e)?Uv:dm;return a(e,t)}function x_(e){var t=Fe(e)?zv:gm;return t(e)}function C_(e){if(e==null)return 0;if(Kt(e))return ts(e)?zr(e):e.length;var t=Rt(e);return t==W||t==M?e.size:_a(e).length}function S_(e,t,o){var a=Fe(e)?ta:vm;return o&&Yt(e,t,o)&&(t=r),a(e,Ne(t,3))}var A_=qe(function(e,t){if(e==null)return[];var o=t.length;return o>1&&Yt(e,t[0],t[1])?t=[]:o>2&&Yt(t[0],t[1],t[2])&&(t=[t[0]]),Jc(e,Et(t,1),[])}),Qo=ov||function(){return Ot.Date.now()};function D_(e,t){if(typeof t!="function")throw new _n(m);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function Gf(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Kn(e,J,r,r,r,r,t)}function Vf(e,t){var o;if(typeof t!="function")throw new _n(m);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Ua=qe(function(e,t,o){var a=H;if(o.length){var y=fr(o,Jr(Ua));a|=Q}return Kn(e,a,t,o,y)}),Kf=qe(function(e,t,o){var a=H|se;if(o.length){var y=fr(o,Jr(Kf));a|=Q}return Kn(t,a,e,o,y)});function Zf(e,t,o){t=o?r:t;var a=Kn(e,ae,r,r,r,r,r,t);return a.placeholder=Zf.placeholder,a}function Qf(e,t,o){t=o?r:t;var a=Kn(e,ce,r,r,r,r,r,t);return a.placeholder=Qf.placeholder,a}function Jf(e,t,o){var a,y,x,P,j,q,pe=0,ge=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new _n(m);t=Sn(t)||0,ft(o)&&(ge=!!o.leading,xe="maxWait"in o,x=xe?xt(Sn(o.maxWait)||0,t):x,Ee="trailing"in o?!!o.trailing:Ee);function Le(vt){var In=a,er=y;return a=y=r,pe=vt,P=e.apply(er,In),P}function $e(vt){return pe=vt,j=Li(He,t),ge?Le(vt):P}function Ue(vt){var In=vt-q,er=vt-pe,mh=t-In;return xe?Mt(mh,x-er):mh}function Be(vt){var In=vt-q,er=vt-pe;return q===r||In>=t||In<0||xe&&er>=x}function He(){var vt=Qo();if(Be(vt))return Ke(vt);j=Li(He,Ue(vt))}function Ke(vt){return j=r,Ee&&a?Le(vt):(a=y=r,P)}function sn(){j!==r&&uf(j),pe=0,a=q=y=j=r}function Ft(){return j===r?P:Ke(Qo())}function an(){var vt=Qo(),In=Be(vt);if(a=arguments,y=this,q=vt,In){if(j===r)return $e(q);if(xe)return uf(j),j=Li(He,t),Le(q)}return j===r&&(j=Li(He,t)),P}return an.cancel=sn,an.flush=Ft,an}var O_=qe(function(e,t){return Yc(e,1,t)}),E_=qe(function(e,t,o){return Yc(e,Sn(t)||0,o)});function T_(e){return Kn(e,de)}function Jo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new _n(m);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],x=o.cache;if(x.has(y))return x.get(y);var P=e.apply(this,a);return o.cache=x.set(y,P)||x,P};return o.cache=new(Jo.Cache||Gn),o}Jo.Cache=Gn;function Xo(e){if(typeof e!="function")throw new _n(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function P_(e){return Vf(2,e)}var M_=mm(function(e,t){t=t.length==1&&Fe(t[0])?ct(t[0],nn(Ne())):ct(Et(t,1),nn(Ne()));var o=t.length;return qe(function(a){for(var y=-1,x=Mt(a.length,o);++y<x;)a[y]=t[y].call(this,a[y]);return tn(e,this,a)})}),za=qe(function(e,t){var o=fr(t,Jr(za));return Kn(e,Q,r,t,o)}),Xf=qe(function(e,t){var o=fr(t,Jr(Xf));return Kn(e,ne,r,t,o)}),R_=Zn(function(e,t){return Kn(e,V,r,r,r,t)});function k_(e,t){if(typeof e!="function")throw new _n(m);return t=t===r?t:We(t),qe(e,t)}function L_(e,t){if(typeof e!="function")throw new _n(m);return t=t==null?0:xt(We(t),0),qe(function(o){var a=o[t],y=vr(o,0,t);return a&&cr(y,a),tn(e,this,y)})}function N_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new _n(m);return ft(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Jf(e,t,{leading:a,maxWait:t,trailing:y})}function I_(e){return Gf(e,1)}function $_(e,t){return za(Ea(t),e)}function B_(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}function j_(e){return bn(e,L)}function Y_(e,t){return t=typeof t=="function"?t:r,bn(e,L,t)}function F_(e){return bn(e,N|L)}function W_(e,t){return t=typeof t=="function"?t:r,bn(e,N|L,t)}function U_(e,t){return t==null||jc(e,t,Ct(t))}function Nn(e,t){return e===t||e!==e&&t!==t}var z_=qo(va),q_=qo(function(e,t){return e>=t}),Pr=qc(function(){return arguments}())?qc:function(e){return dt(e)&&nt.call(e,"callee")&&!Mc.call(e,"callee")},Fe=ie.isArray,H_=hc?nn(hc):em;function Kt(e){return e!=null&&es(e.length)&&!Jn(e)}function gt(e){return dt(e)&&Kt(e)}function G_(e){return e===!0||e===!1||dt(e)&&jt(e)==X}var mr=av||tu,V_=dc?nn(dc):tm;function K_(e){return dt(e)&&e.nodeType===1&&!Ni(e)}function Z_(e){if(e==null)return!0;if(Kt(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||mr(e)||Xr(e)||Pr(e)))return!e.length;var t=Rt(e);if(t==W||t==M)return!e.size;if(ki(e))return!_a(e).length;for(var o in e)if(nt.call(e,o))return!1;return!0}function Q_(e,t){return Pi(e,t)}function J_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?Pi(e,t,r,o):!!a}function qa(e){if(!dt(e))return!1;var t=jt(e);return t==ve||t==_e||typeof e.message=="string"&&typeof e.name=="string"&&!Ni(e)}function X_(e){return typeof e=="number"&&kc(e)}function Jn(e){if(!ft(e))return!1;var t=jt(e);return t==B||t==Z||t==we||t==c}function eh(e){return typeof e=="number"&&e==We(e)}function es(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=p}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dt(e){return e!=null&&typeof e=="object"}var th=pc?nn(pc):rm;function ew(e,t){return e===t||ya(e,t,Na(t))}function tw(e,t,o){return o=typeof o=="function"?o:r,ya(e,t,Na(t),o)}function nw(e){return nh(e)&&e!=+e}function rw(e){if(Ym(e))throw new Ye(g);return Hc(e)}function iw(e){return e===null}function ow(e){return e==null}function nh(e){return typeof e=="number"||dt(e)&&jt(e)==K}function Ni(e){if(!dt(e)||jt(e)!=Se)return!1;var t=Oo(e);if(t===null)return!0;var o=nt.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Co.call(o)==tv}var Ha=gc?nn(gc):im;function sw(e){return eh(e)&&e>=-p&&e<=p}var rh=vc?nn(vc):om;function ts(e){return typeof e=="string"||!Fe(e)&&dt(e)&&jt(e)==U}function on(e){return typeof e=="symbol"||dt(e)&&jt(e)==te}var Xr=mc?nn(mc):sm;function aw(e){return e===r}function uw(e){return dt(e)&&Rt(e)==Ce}function lw(e){return dt(e)&&jt(e)==Pe}var cw=qo(wa),fw=qo(function(e,t){return e<=t});function ih(e){if(!e)return[];if(Kt(e))return ts(e)?kn(e):Vt(e);if(xi&&e[xi])return U0(e[xi]());var t=Rt(e),o=t==W?aa:t==M?wo:ei;return o(e)}function Xn(e){if(!e)return e===0?e:0;if(e=Sn(e),e===d||e===-d){var t=e<0?-1:1;return t*b}return e===e?e:0}function We(e){var t=Xn(e),o=t%1;return t===t?o?t-o:t:0}function oh(e){return e?Dr(We(e),0,v):0}function Sn(e){if(typeof e=="number")return e;if(on(e))return f;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Cc(e);var o=ot.test(e);return o||Gt.test(e)?D0(e.slice(2),o?2:8):_t.test(e)?f:+e}function sh(e){return Un(e,Zt(e))}function hw(e){return e?Dr(We(e),-p,p):e===0?e:0}function Xe(e){return e==null?"":rn(e)}var dw=Zr(function(e,t){if(ki(t)||Kt(t)){Un(t,Ct(t),e);return}for(var o in t)nt.call(t,o)&&Oi(e,o,t[o])}),ah=Zr(function(e,t){Un(t,Zt(t),e)}),ns=Zr(function(e,t,o,a){Un(t,Zt(t),e,a)}),pw=Zr(function(e,t,o,a){Un(t,Ct(t),e,a)}),gw=Zn(da);function vw(e,t){var o=Kr(e);return t==null?o:Bc(o,t)}var mw=qe(function(e,t){e=st(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&Yt(t[0],t[1],y)&&(a=1);++o<a;)for(var x=t[o],P=Zt(x),j=-1,q=P.length;++j<q;){var pe=P[j],ge=e[pe];(ge===r||Nn(ge,Hr[pe])&&!nt.call(e,pe))&&(e[pe]=x[pe])}return e}),yw=qe(function(e){return e.push(r,Sf),tn(uh,r,e)});function _w(e,t){return _c(e,Ne(t,3),Wn)}function ww(e,t){return _c(e,Ne(t,3),ga)}function bw(e,t){return e==null?e:pa(e,Ne(t,3),Zt)}function xw(e,t){return e==null?e:Uc(e,Ne(t,3),Zt)}function Cw(e,t){return e&&Wn(e,Ne(t,3))}function Sw(e,t){return e&&ga(e,Ne(t,3))}function Aw(e){return e==null?[]:$o(e,Ct(e))}function Dw(e){return e==null?[]:$o(e,Zt(e))}function Ga(e,t,o){var a=e==null?r:Or(e,t);return a===r?o:a}function Ow(e,t){return e!=null&&Of(e,t,Zv)}function Va(e,t){return e!=null&&Of(e,t,Qv)}var Ew=_f(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=So.call(t)),e[t]=o},Za(Qt)),Tw=_f(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=So.call(t)),nt.call(e,t)?e[t].push(o):e[t]=[o]},Ne),Pw=qe(Ti);function Ct(e){return Kt(e)?Ic(e):_a(e)}function Zt(e){return Kt(e)?Ic(e,!0):am(e)}function Mw(e,t){var o={};return t=Ne(t,3),Wn(e,function(a,y,x){Vn(o,t(a,y,x),a)}),o}function Rw(e,t){var o={};return t=Ne(t,3),Wn(e,function(a,y,x){Vn(o,y,t(a,y,x))}),o}var kw=Zr(function(e,t,o){Bo(e,t,o)}),uh=Zr(function(e,t,o,a){Bo(e,t,o,a)}),Lw=Zn(function(e,t){var o={};if(e==null)return o;var a=!1;t=ct(t,function(x){return x=gr(x,e),a||(a=x.length>1),x}),Un(e,ka(e),o),a&&(o=bn(o,N|R|L,Em));for(var y=t.length;y--;)Aa(o,t[y]);return o});function Nw(e,t){return lh(e,Xo(Ne(t)))}var Iw=Zn(function(e,t){return e==null?{}:lm(e,t)});function lh(e,t){if(e==null)return{};var o=ct(ka(e),function(a){return[a]});return t=Ne(t),Xc(e,o,function(a,y){return t(a,y[0])})}function $w(e,t,o){t=gr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var x=e==null?r:e[zn(t[a])];x===r&&(a=y,x=o),e=Jn(x)?x.call(e):x}return e}function Bw(e,t,o){return e==null?e:Mi(e,t,o)}function jw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Mi(e,t,o,a)}var ch=xf(Ct),fh=xf(Zt);function Yw(e,t,o){var a=Fe(e),y=a||mr(e)||Xr(e);if(t=Ne(t,4),o==null){var x=e&&e.constructor;y?o=a?new x:[]:ft(e)?o=Jn(x)?Kr(Oo(e)):{}:o={}}return(y?yn:Wn)(e,function(P,j,q){return t(o,P,j,q)}),o}function Fw(e,t){return e==null?!0:Aa(e,t)}function Ww(e,t,o){return e==null?e:of(e,t,Ea(o))}function Uw(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:of(e,t,Ea(o),a)}function ei(e){return e==null?[]:sa(e,Ct(e))}function zw(e){return e==null?[]:sa(e,Zt(e))}function qw(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=Sn(o),o=o===o?o:0),t!==r&&(t=Sn(t),t=t===t?t:0),Dr(Sn(e),t,o)}function Hw(e,t,o){return t=Xn(t),o===r?(o=t,t=0):o=Xn(o),e=Sn(e),Jv(e,t,o)}function Gw(e,t,o){if(o&&typeof o!="boolean"&&Yt(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Xn(e),t===r?(t=e,e=0):t=Xn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Lc();return Mt(e+y*(t-e+A0("1e-"+((y+"").length-1))),t)}return xa(e,t)}var Vw=Qr(function(e,t,o){return t=t.toLowerCase(),e+(o?hh(t):t)});function hh(e){return Ka(Xe(e).toLowerCase())}function dh(e){return e=Xe(e),e&&e.replace(wt,B0).replace(g0,"")}function Kw(e,t,o){e=Xe(e),t=rn(t);var a=e.length;o=o===r?a:Dr(We(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function Zw(e){return e=Xe(e),e&&fn.test(e)?e.replace(Mn,j0):e}function Qw(e){return e=Xe(e),e&&ze.test(e)?e.replace(Ht,"\\$&"):e}var Jw=Qr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Xw=Qr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),e2=vf("toLowerCase");function t2(e,t,o){e=Xe(e),t=We(t);var a=t?zr(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return zo(Mo(y),o)+e+zo(Po(y),o)}function n2(e,t,o){e=Xe(e),t=We(t);var a=t?zr(e):0;return t&&a<t?e+zo(t-a,o):e}function r2(e,t,o){e=Xe(e),t=We(t);var a=t?zr(e):0;return t&&a<t?zo(t-a,o)+e:e}function i2(e,t,o){return o||t==null?t=0:t&&(t=+t),fv(Xe(e).replace(ut,""),t||0)}function o2(e,t,o){return(o?Yt(e,t,o):t===r)?t=1:t=We(t),Ca(Xe(e),t)}function s2(){var e=arguments,t=Xe(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var a2=Qr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function u2(e,t,o){return o&&typeof o!="number"&&Yt(e,t,o)&&(t=o=r),o=o===r?v:o>>>0,o?(e=Xe(e),e&&(typeof t=="string"||t!=null&&!Ha(t))&&(t=rn(t),!t&&Ur(e))?vr(kn(e),0,o):e.split(t,o)):[]}var l2=Qr(function(e,t,o){return e+(o?" ":"")+Ka(t)});function c2(e,t,o){return e=Xe(e),o=o==null?0:Dr(We(o),0,e.length),t=rn(t),e.slice(o,o+t.length)==t}function f2(e,t,o){var a=w.templateSettings;o&&Yt(e,t,o)&&(t=r),e=Xe(e),t=ns({},t,a,Cf);var y=ns({},t.imports,a.imports,Cf),x=Ct(y),P=sa(y,x),j,q,pe=0,ge=t.interpolate||Bt,xe="__p += '",Ee=ua((t.escape||Bt).source+"|"+ge.source+"|"+(ge===It?gn:Bt).source+"|"+(t.evaluate||Bt).source+"|$","g"),Le="//# sourceURL="+(nt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++w0+"]")+`
127
+ `;e.replace(Ee,function(Be,He,Ke,sn,Ft,an){return Ke||(Ke=sn),xe+=e.slice(pe,an).replace(en,Y0),He&&(j=!0,xe+=`' +
128
128
  __e(`+He+`) +
129
129
  '`),Ft&&(q=!0,xe+=`';
130
130
  `+Ft+`;
131
131
  __p += '`),Ke&&(xe+=`' +
132
132
  ((__t = (`+Ke+`)) == null ? '' : __t) +
133
133
  '`),pe=an+Be.length,Be}),xe+=`';
134
- `;var $e=rt.call(t,"variable")&&t.variable;if(!$e)xe=`with (obj) {
134
+ `;var $e=nt.call(t,"variable")&&t.variable;if(!$e)xe=`with (obj) {
135
135
  `+xe+`
136
136
  }
137
137
  `;else if(pn.test($e))throw new Ye(h);xe=(q?xe.replace(At,""):xe).replace(Pn,"$1").replace(Dt,"$1;"),xe="function("+($e||"obj")+`) {
@@ -140,5 +140,5 @@ __p += '`),Ke&&(xe+=`' +
140
140
  function print() { __p += __j.call(arguments, '') }
141
141
  `:`;
142
142
  `)+xe+`return __p
143
- }`;var Ue=gh(function(){return Je(x,Le+"return "+xe).apply(r,P)});if(Ue.source=xe,za(Ue))throw Ue;return Ue}function c2(e){return et(e).toLowerCase()}function f2(e){return et(e).toUpperCase()}function h2(e,t,o){if(e=et(e),e&&(o||t===r))return Cc(e);if(!e||!(t=rn(t)))return e;var a=kn(e),y=kn(t),x=Sc(a,y),P=Ac(a,y)+1;return vr(a,x,P).join("")}function d2(e,t,o){if(e=et(e),e&&(o||t===r))return e.slice(0,Oc(e)+1);if(!e||!(t=rn(t)))return e;var a=kn(e),y=Ac(a,kn(t))+1;return vr(a,0,y).join("")}function p2(e,t,o){if(e=et(e),e&&(o||t===r))return e.replace(ut,"");if(!e||!(t=rn(t)))return e;var a=kn(e),y=Sc(a,kn(t));return vr(a,y).join("")}function g2(e,t){var o=he,a=re;if(ft(t)){var y="separator"in t?t.separator:y;o="length"in t?We(t.length):o,a="omission"in t?rn(t.omission):a}e=et(e);var x=e.length;if(Ur(e)){var P=kn(e);x=P.length}if(o>=x)return e;var j=o-zr(a);if(j<1)return a;var q=P?vr(P,0,j).join(""):e.slice(0,j);if(y===r)return q+a;if(P&&(j+=q.length-j),qa(y)){if(e.slice(j).search(y)){var pe,ge=q;for(y.global||(y=aa(y.source,et(vn.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;q=q.slice(0,xe===r?j:xe)}}else if(e.indexOf(rn(y),j)!=j){var Ee=q.lastIndexOf(y);Ee>-1&&(q=q.slice(0,Ee))}return q+a}function v2(e){return e=et(e),e&&yt.test(e)?e.replace(Wt,q0):e}var m2=Qr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Va=vf("toUpperCase");function ph(e,t,o){return e=et(e),t=o?r:t,t===r?Y0(e)?V0(e):M0(e):e.match(t)||[]}var gh=qe(function(e,t){try{return tn(e,r,t)}catch(o){return za(o)?o:new Ye(o)}}),y2=Zn(function(e,t){return yn(t,function(o){o=zn(o),Vn(e,o,Wa(e[o],e))}),e});function _2(e){var t=e==null?0:e.length,o=Ne();return e=t?ct(e,function(a){if(typeof a[1]!="function")throw new _n(m);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var x=e[y];if(tn(x[0],this,a))return tn(x[1],this,a)}})}function w2(e){return qv(bn(e,N))}function Ka(e){return function(){return e}}function b2(e,t){return e==null||e!==e?t:e}var x2=yf(),C2=yf(!0);function Qt(e){return e}function Za(e){return Gc(typeof e=="function"?e:bn(e,N))}function S2(e){return Kc(bn(e,N))}function A2(e,t){return Zc(e,bn(t,N))}var D2=qe(function(e,t){return function(o){return Ti(o,e,t)}}),O2=qe(function(e,t){return function(o){return Ti(e,o,t)}});function Qa(e,t,o){var a=Ct(t),y=$o(t,a);o==null&&!(ft(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=$o(t,Ct(t)));var x=!(ft(o)&&"chain"in o)||!!o.chain,P=Jn(e);return yn(y,function(j){var q=t[j];e[j]=q,P&&(e.prototype[j]=function(){var pe=this.__chain__;if(x||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=Vt(this.__actions__);return xe.push({func:q,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return q.apply(e,cr([this.value()],arguments))})}),e}function E2(){return Ot._===this&&(Ot._=ev),this}function Ja(){}function T2(e){return e=We(e),qe(function(t){return Qc(t,e)})}var P2=Ta(ct),M2=Ta(yc),R2=Ta(ea);function vh(e){return Ia(e)?ta(zn(e)):um(e)}function k2(e){return function(t){return e==null?r:Or(e,t)}}var L2=wf(),N2=wf(!0);function Xa(){return[]}function eu(){return!1}function I2(){return{}}function $2(){return""}function B2(){return!0}function j2(e,t){if(e=We(e),e<1||e>p)return[];var o=v,a=Mt(e,v);t=Ne(t),e-=v;for(var y=ia(a,t);++o<e;)t(o);return y}function Y2(e){return Fe(e)?ct(e,zn):on(e)?[e]:Vt(If(et(e)))}function F2(e){var t=++J0;return et(e)+t}var W2=Uo(function(e,t){return e+t},0),U2=Pa("ceil"),z2=Uo(function(e,t){return e/t},1),q2=Pa("floor");function H2(e){return e&&e.length?Io(e,Qt,ga):r}function G2(e,t){return e&&e.length?Io(e,Ne(t,2),ga):r}function V2(e){return bc(e,Qt)}function K2(e,t){return bc(e,Ne(t,2))}function Z2(e){return e&&e.length?Io(e,Qt,_a):r}function Q2(e,t){return e&&e.length?Io(e,Ne(t,2),_a):r}var J2=Uo(function(e,t){return e*t},1),X2=Pa("round"),eb=Uo(function(e,t){return e-t},0);function tb(e){return e&&e.length?ra(e,Qt):0}function nb(e,t){return e&&e.length?ra(e,Ne(t,2)):0}return w.after=S_,w.ary=Gf,w.assign=fw,w.assignIn=ah,w.assignInWith=ns,w.assignWith=hw,w.at=dw,w.before=Vf,w.bind=Wa,w.bindAll=y2,w.bindKey=Kf,w.castArray=I_,w.chain=zf,w.chunk=qm,w.compact=Hm,w.concat=Gm,w.cond=_2,w.conforms=w2,w.constant=Ka,w.countBy=t_,w.create=pw,w.curry=Zf,w.curryRight=Qf,w.debounce=Jf,w.defaults=gw,w.defaultsDeep=vw,w.defer=A_,w.delay=D_,w.difference=Vm,w.differenceBy=Km,w.differenceWith=Zm,w.drop=Qm,w.dropRight=Jm,w.dropRightWhile=Xm,w.dropWhile=ey,w.fill=ty,w.filter=r_,w.flatMap=s_,w.flatMapDeep=a_,w.flatMapDepth=u_,w.flatten=Yf,w.flattenDeep=ny,w.flattenDepth=ry,w.flip=O_,w.flow=x2,w.flowRight=C2,w.fromPairs=iy,w.functions=Cw,w.functionsIn=Sw,w.groupBy=l_,w.initial=sy,w.intersection=ay,w.intersectionBy=uy,w.intersectionWith=ly,w.invert=Dw,w.invertBy=Ow,w.invokeMap=f_,w.iteratee=Za,w.keyBy=h_,w.keys=Ct,w.keysIn=Zt,w.map=Zo,w.mapKeys=Tw,w.mapValues=Pw,w.matches=S2,w.matchesProperty=A2,w.memoize=Jo,w.merge=Mw,w.mergeWith=uh,w.method=D2,w.methodOf=O2,w.mixin=Qa,w.negate=Xo,w.nthArg=T2,w.omit=Rw,w.omitBy=kw,w.once=E_,w.orderBy=d_,w.over=P2,w.overArgs=T_,w.overEvery=M2,w.overSome=R2,w.partial=Ua,w.partialRight=Xf,w.partition=p_,w.pick=Lw,w.pickBy=lh,w.property=vh,w.propertyOf=k2,w.pull=dy,w.pullAll=Wf,w.pullAllBy=py,w.pullAllWith=gy,w.pullAt=vy,w.range=L2,w.rangeRight=N2,w.rearg=P_,w.reject=m_,w.remove=my,w.rest=M_,w.reverse=Ya,w.sampleSize=__,w.set=Iw,w.setWith=$w,w.shuffle=w_,w.slice=yy,w.sortBy=C_,w.sortedUniq=Ay,w.sortedUniqBy=Dy,w.split=s2,w.spread=R_,w.tail=Oy,w.take=Ey,w.takeRight=Ty,w.takeRightWhile=Py,w.takeWhile=My,w.tap=Hy,w.throttle=k_,w.thru=Ko,w.toArray=ih,w.toPairs=ch,w.toPairsIn=fh,w.toPath=Y2,w.toPlainObject=sh,w.transform=Bw,w.unary=L_,w.union=Ry,w.unionBy=ky,w.unionWith=Ly,w.uniq=Ny,w.uniqBy=Iy,w.uniqWith=$y,w.unset=jw,w.unzip=Fa,w.unzipWith=Uf,w.update=Yw,w.updateWith=Fw,w.values=ei,w.valuesIn=Ww,w.without=By,w.words=ph,w.wrap=N_,w.xor=jy,w.xorBy=Yy,w.xorWith=Fy,w.zip=Wy,w.zipObject=Uy,w.zipObjectDeep=zy,w.zipWith=qy,w.entries=ch,w.entriesIn=fh,w.extend=ah,w.extendWith=ns,Qa(w,w),w.add=W2,w.attempt=gh,w.camelCase=Hw,w.capitalize=hh,w.ceil=U2,w.clamp=Uw,w.clone=$_,w.cloneDeep=j_,w.cloneDeepWith=Y_,w.cloneWith=B_,w.conformsTo=F_,w.deburr=dh,w.defaultTo=b2,w.divide=z2,w.endsWith=Gw,w.eq=Nn,w.escape=Vw,w.escapeRegExp=Kw,w.every=n_,w.find=i_,w.findIndex=Bf,w.findKey=mw,w.findLast=o_,w.findLastIndex=jf,w.findLastKey=yw,w.floor=q2,w.forEach=qf,w.forEachRight=Hf,w.forIn=_w,w.forInRight=ww,w.forOwn=bw,w.forOwnRight=xw,w.get=Ha,w.gt=W_,w.gte=U_,w.has=Aw,w.hasIn=Ga,w.head=Ff,w.identity=Qt,w.includes=c_,w.indexOf=oy,w.inRange=zw,w.invoke=Ew,w.isArguments=Pr,w.isArray=Fe,w.isArrayBuffer=z_,w.isArrayLike=Kt,w.isArrayLikeObject=gt,w.isBoolean=q_,w.isBuffer=mr,w.isDate=H_,w.isElement=G_,w.isEmpty=V_,w.isEqual=K_,w.isEqualWith=Z_,w.isError=za,w.isFinite=Q_,w.isFunction=Jn,w.isInteger=eh,w.isLength=es,w.isMap=th,w.isMatch=J_,w.isMatchWith=X_,w.isNaN=ew,w.isNative=tw,w.isNil=rw,w.isNull=nw,w.isNumber=nh,w.isObject=ft,w.isObjectLike=dt,w.isPlainObject=Ni,w.isRegExp=qa,w.isSafeInteger=iw,w.isSet=rh,w.isString=ts,w.isSymbol=on,w.isTypedArray=Xr,w.isUndefined=ow,w.isWeakMap=sw,w.isWeakSet=aw,w.join=cy,w.kebabCase=Zw,w.last=Cn,w.lastIndexOf=fy,w.lowerCase=Qw,w.lowerFirst=Jw,w.lt=uw,w.lte=lw,w.max=H2,w.maxBy=G2,w.mean=V2,w.meanBy=K2,w.min=Z2,w.minBy=Q2,w.stubArray=Xa,w.stubFalse=eu,w.stubObject=I2,w.stubString=$2,w.stubTrue=B2,w.multiply=J2,w.nth=hy,w.noConflict=E2,w.noop=Ja,w.now=Qo,w.pad=Xw,w.padEnd=e2,w.padStart=t2,w.parseInt=n2,w.random=qw,w.reduce=g_,w.reduceRight=v_,w.repeat=r2,w.replace=i2,w.result=Nw,w.round=X2,w.runInContext=z,w.sample=y_,w.size=b_,w.snakeCase=o2,w.some=x_,w.sortedIndex=_y,w.sortedIndexBy=wy,w.sortedIndexOf=by,w.sortedLastIndex=xy,w.sortedLastIndexBy=Cy,w.sortedLastIndexOf=Sy,w.startCase=a2,w.startsWith=u2,w.subtract=eb,w.sum=tb,w.sumBy=nb,w.template=l2,w.times=j2,w.toFinite=Xn,w.toInteger=We,w.toLength=oh,w.toLower=c2,w.toNumber=Sn,w.toSafeInteger=cw,w.toString=et,w.toUpper=f2,w.trim=h2,w.trimEnd=d2,w.trimStart=p2,w.truncate=g2,w.unescape=v2,w.uniqueId=F2,w.upperCase=m2,w.upperFirst=Va,w.each=qf,w.eachRight=Hf,w.first=Ff,Qa(w,function(){var e={};return Wn(w,function(t,o){rt.call(w.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),w.VERSION=s,yn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){w[e].placeholder=w}),yn(["drop","take"],function(e,t){Ge.prototype[e]=function(o){o=o===r?1:xt(We(o),0);var a=this.__filtered__&&!t?new Ge(this):this.clone();return a.__filtered__?a.__takeCount__=Mt(o,a.__takeCount__):a.__views__.push({size:Mt(o,v),type:e+(a.__dir__<0?"Right":"")}),a},Ge.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),yn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==k||o==S;Ge.prototype[e]=function(y){var x=this.clone();return x.__iteratees__.push({iteratee:Ne(y,3),type:o}),x.__filtered__=x.__filtered__||a,x}}),yn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[o](1).value()[0]}}),yn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ge.prototype[e]=function(){return this.__filtered__?new Ge(this):this[o](1)}}),Ge.prototype.compact=function(){return this.filter(Qt)},Ge.prototype.find=function(e){return this.filter(e).head()},Ge.prototype.findLast=function(e){return this.reverse().find(e)},Ge.prototype.invokeMap=qe(function(e,t){return typeof e=="function"?new Ge(this):this.map(function(o){return Ti(o,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Xo(Ne(e)))},Ge.prototype.slice=function(e,t){e=We(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ge(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=We(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ge.prototype.toArray=function(){return this.take(v)},Wn(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=w[a?"take"+(t=="last"?"Right":""):t],x=a||/^find/.test(t);y&&(w.prototype[t]=function(){var P=this.__wrapped__,j=a?[1]:arguments,q=P instanceof Ge,pe=j[0],ge=q||Fe(P),xe=function(He){var Ke=y.apply(w,cr([He],j));return a&&Ee?Ke[0]:Ke};ge&&o&&typeof pe=="function"&&pe.length!=1&&(q=ge=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,$e=x&&!Ee,Ue=q&&!Le;if(!x&&ge){P=Ue?P:new Ge(this);var Be=e.apply(P,j);return Be.__actions__.push({func:Ko,args:[xe],thisArg:r}),new wn(Be,Ee)}return $e&&Ue?e.apply(this,j):(Be=this.thru(xe),$e?a?Be.value()[0]:Be.value():Be)})}),yn(["pop","push","shift","sort","splice","unshift"],function(e){var t=bo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);w.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var x=this.value();return t.apply(Fe(x)?x:[],y)}return this[o](function(P){return t.apply(Fe(P)?P:[],y)})}}),Wn(Ge.prototype,function(e,t){var o=w[t];if(o){var a=o.name+"";rt.call(Vr,a)||(Vr[a]=[]),Vr[a].push({name:t,func:o})}}),Vr[Wo(r,se).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=vv,Ge.prototype.reverse=mv,Ge.prototype.value=yv,w.prototype.at=Gy,w.prototype.chain=Vy,w.prototype.commit=Ky,w.prototype.next=Zy,w.prototype.plant=Jy,w.prototype.reverse=Xy,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=e_,w.prototype.first=w.prototype.head,xi&&(w.prototype[xi]=Qy),w},qr=K0();xr?((xr.exports=qr)._=qr,Zs._=qr):Ot._=qr}).call(j1)}(vi,vi.exports)),vi.exports}var Jl=Y1();function Xl(i){const n=An.c(41),{fields:r,onClose:s,queryKey:l,apiPath:g,id:m,steps:h}=i,[C,D]=ye.useState(0),[E,N]=ye.useState(!1),{data:R,isLoading:L}=pl(g,l,m),{mutateAsync:I,isError:$,error:H,isPending:se}=Ps(g,l);let ue;n[0]!==r?(ue=new Set(r.filter(H1).map(q1)),n[0]=r,n[1]=ue):ue=n[1];let ae;n[2]!==ue?(ae=[...ue],n[2]=ue,n[3]=ae):ae=n[3];const ce=ae;let Q;n[4]!==r?(Q=r.reduce(z1,{}),n[4]=r,n[5]=Q):Q=n[5];let ne;n[6]!==r?(ne=r.filter(U1).reduce(W1,{}),n[6]=r,n[7]=ne):ne=n[7];let J;n[8]!==Q||n[9]!==ne?(J={mode:"uncontrolled",initialValues:Q,validate:ne},n[8]=Q,n[9]=ne,n[10]=J):J=n[10];const V=tu.useForm(J);let de;n[11]!==R||n[12]!==r||n[13]!==V?(de=()=>{if(R){const S={...R};r.forEach(d=>{const p=d.id;d.type==="boolean"&&S[p]===null?S[p]=!1:d.type==="date"&&S[p]?S[p]=new Date(S[p]):S[p]===null&&(S[p]="")}),V.initialize(S),V.setValues(S)}},n[11]=R,n[12]=r,n[13]=V,n[14]=de):de=n[14];let he;n[15]!==R?(he=[R],n[15]=R,n[16]=he):he=n[16],ye.useEffect(de,he);let re;n[17]!==V||n[18]!==m?(re=function(d){const p=V.getValues();return d.conditional&&!d.conditional(p)?null:O.jsxs(ye.Fragment,{children:[(d.type===void 0||d.type=="text")&&O.jsx(F.TextInput,{label:d.column.title,placeholder:d.placeholder??"",...V.getInputProps(d.id),type:d.id.includes("email")?"email":void 0,required:d.required},V.key(d.id)),d.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:d.column.title,placeholder:d.placeholder??"",...V.getInputProps(d.id),required:d.required},V.key(d.id)),d.type==="date"&&O.jsx(lo,{label:d.column.title,placeholder:d.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...V.getInputProps(d.id),required:d.required},V.key(d.id)),d.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:d.column.title,...V.getInputProps(d.id,{type:"checkbox"}),required:d.required},V.key(d.id)),d.type==="textarea"&&O.jsx(F.Textarea,{label:d.column.title,placeholder:d.placeholder??"",...V.getInputProps(d.id),minRows:3,autosize:!0,required:d.required},V.key(d.id)),d.type==="custom"&&d.render&&d.render({...V.getValues(),id:m},V.setValues,N,{error:V.getInputProps(d.id).error,required:d.required})]},d.id)},n[17]=V,n[18]=m,n[19]=re):re=n[19];const De=re;let Oe;n[20]!==$||n[21]!==H?.message||n[22]!==H?.name?(Oe=$&&O.jsx(F.Alert,{variant:"outline",color:"red",title:H?.name??"Fehler aufgetreten",mb:"lg",children:H?.message??"Fehler aufgetreten"}),n[20]=$,n[21]=H?.message,n[22]=H?.name,n[23]=Oe):Oe=n[23];let k;n[24]!==C||n[25]!==r||n[26]!==V||n[27]!==E||n[28]!==m||n[29]!==L||n[30]!==se||n[31]!==$||n[32]!==s||n[33]!==De||n[34]!==h||n[35]!==ce||n[36]!==I?(k=L?O.jsxs(F.Stack,{gap:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(r.length).fill(0).map(F1),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Skeleton,{width:100,height:36}),O.jsx(F.Skeleton,{width:100,height:36})]})]}):O.jsxs("form",{onSubmit:V.onSubmit(async S=>{await I({...S,id:m}),ce.length&&C<ce.length-1?$||D(C+1):$||(V.setInitialValues(S),V.reset(),s())}),children:[ce.length?O.jsx(F.Stepper,{active:C,size:"sm",children:ce.map(S=>O.jsx(F.Stepper.Step,{...h&&h[S-1]?{label:h[S-1].label}:{},children:r.filter(d=>d.step===S).map(d=>De(d))},S))}):r.map(S=>De(S)),!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>ce.length?C===0?s():D(C-1):s(),variant:"outline",children:ce.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:se,children:ce.length?C===ce.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[24]=C,n[25]=r,n[26]=V,n[27]=E,n[28]=m,n[29]=L,n[30]=se,n[31]=$,n[32]=s,n[33]=De,n[34]=h,n[35]=ce,n[36]=I,n[37]=k):k=n[37];let T;return n[38]!==k||n[39]!==Oe?(T=O.jsxs(O.Fragment,{children:[Oe,k]}),n[38]=k,n[39]=Oe,n[40]=T):T=n[40],T}function F1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-field-${n}`)}function W1(i,n){return i[n.id]=(r,s)=>n.conditional&&!n.conditional(s)||r?null:"Pflichtfeld",i}function U1(i){return i.required}function z1(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function q1(i){return i.step}function H1(i){return typeof i.step=="number"}function ec({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:l,isError:g,error:m,isPending:h}=ml(n,i),[C,D]=ye.useState(s),[E,N]=ye.useState(!1),R=E||h;return ye.useEffect(()=>{C.length||r()},[r,C]),C.length?O.jsxs(O.Fragment,{children:[g&&m.message&&O.jsx(F.Alert,{variant:"outline",color:"red",title:m.name,children:m.message}),O.jsx(F.Text,{children:C.length===1?`Soll ${C.length} Eintrag wirklich gelöscht werden?`:`Sollen ${C.length} Einträge wirklich gelöscht werden?`}),O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:r,variant:"outline",disabled:R,children:"Abbrechen"}),O.jsx(F.Button,{color:"red",loading:R,onClick:async()=>{N(!0);try{await Promise.all(C.map(L=>l(L.id))),D([])}finally{N(!1)}},children:"Löschen"})]})]}):O.jsx(O.Fragment,{})}function tc(i,n){const r=An.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const D=localStorage.getItem(`use_persistent_storage_${n}`);return D?JSON.parse(D):i},r[0]=i,r[1]=n,r[2]=s):s=r[2];const[l,g]=ye.useState(s);let m;r[3]!==n?(m=D=>{g(D),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(D))},r[3]=n,r[4]=m):m=r[4];const h=m;let C;return r[5]!==h||r[6]!==l?(C=[l,h],r[5]=h,r[6]=l,r[7]=C):C=r[7],C}const nc=[10,15,20,50,100,500];function G1(i){const n=An.c(147),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:g,buttons:m,fields:h,selection:C,pagination:D,filters:E,actions:N,steps:R,defaultSort:L,createButtonText:I,queryParams:$,tabs:H,defaultTab:se,activeTab:ue,onActiveTabChange:ae}=i,[ce,Q]=ye.useState(se||(H&&H.length>0?H[0].value:null)),ne=ue!==void 0?ue:ce;let J;n[0]!==ue||n[1]!==ae?(J=Ze=>{ue===void 0&&Q(Ze),ae&&ae(Ze)},n[0]=ue,n[1]=ae,n[2]=J):J=n[2];const V=J;let de,he;if(n[3]!==ne||n[4]!==$||n[5]!==H){const Ze=H?.find(nt=>nt.value===ne)?.queryParams||{};de={...$,...Ze},he=de?"?"+Object.entries(de).filter(i0).map(r0).join("&"):"",n[3]=ne,n[4]=$,n[5]=H,n[6]=de,n[7]=he}else de=n[6],he=n[7];const re=he;let De;n[8]!==ne||n[9]!==s?(De=ne?[...s,ne]:s,n[8]=ne,n[9]=s,n[10]=De):De=n[10];const Oe=De,{data:k,isLoading:T,isError:S,isRefetching:d,refetch:p}=gl(g+re,Oe);let b;n[11]===Symbol.for("react.memo_cache_sentinel")?(b=[],n[11]=b):b=n[11];const[f,v]=ye.useState(b),{queryClient:A}=rr();let Y;n[12]!==k||n[13]!==l||n[14]!==E||n[15]!==A?(Y=()=>{if(!(!k||!Array.isArray(k))){if(l?.forEach(Ze=>A.invalidateQueries({queryKey:Ze})),!E||E.length===0){v(k);return}v(k.filter(Ze=>E.every(nt=>{if(nt.value===void 0)return!0;const Gt=nt.id;if(nt.type==="query"){const Pt=Ze[Gt];return Array.isArray(nt.value)?Array.isArray(Pt)?Pt.some(wt=>{if(typeof wt=="string"||typeof wt=="number")return nt.value.includes(String(wt));if(wt&&typeof wt=="object"){if("id"in wt&&nt.value.includes(wt.id))return!0;for(const Bt in wt){const en=wt[Bt];if(typeof en=="string"&&nt.value.includes(en)||en&&typeof en=="object"&&"id"in en&&nt.value.includes(en.id))return!0}}return!1}):Pt&&typeof Pt=="object"&&"id"in Pt?nt.value.includes(Pt.id):!1:typeof Pt=="string"&&Pt.includes(nt.value)}else if(nt.type==="date"){const Pt=nt.value;if(!Pt)return!0;const[wt,Bt]=Pt;if(!wt&&!Bt)return!0;const en=Ze[Gt];if(typeof en=="string"){const Rn=en.split(" ")[0];if(wt&&Bt)return Rn>=wt&&Rn<=Bt;if(wt&&!Bt)return Rn>=wt;if(!wt&&Bt)return Rn<=Bt}return!0}else if(nt.type==="boolean")return Ze[Gt]===nt.value;return!0})))}},n[12]=k,n[13]=l,n[14]=E,n[15]=A,n[16]=Y):Y=n[16];let G;n[17]!==k||n[18]!==de||n[19]!==E?(G=[k,E,de],n[17]=k,n[18]=de,n[19]=E,n[20]=G):G=n[20],ye.useEffect(Y,G);const oe=L?.field??h[0].id,le=L?.direction??"desc";let we;n[21]!==oe||n[22]!==le?(we={columnAccessor:oe,direction:le},n[21]=oe,n[22]=le,n[23]=we):we=n[23];const[X,be]=ye.useState(we);let _e;n[24]!==f||n[25]!==L?.direction||n[26]!==L?.field||n[27]!==h[0]?(_e=()=>{const Ze=Jl.sortBy(f,L?.field??h[0].id);return L?.direction==="asc"?Ze:Ze.reverse()},n[24]=f,n[25]=L?.direction,n[26]=L?.field,n[27]=h[0],n[28]=_e):_e=n[28];const[ve,B]=ye.useState(_e);let Z;n[29]!==f||n[30]!==X.columnAccessor||n[31]!==X.direction?(Z=()=>{const Ze=Jl.sortBy(f,X.columnAccessor);B(X.direction==="desc"?Ze.reverse():Ze)},n[29]=f,n[30]=X.columnAccessor,n[31]=X.direction,n[32]=Z):Z=n[32];let W;n[33]!==f||n[34]!==X?(W=[X,f],n[33]=f,n[34]=X,n[35]=W):W=n[35],ye.useEffect(Z,W);const[K,ee]=tc(nc[1],"mantine-table-page-size"),[Se,u]=ye.useState(1);let c;n[36]!==K||n[37]!==D||n[38]!==ve?(c=D?ve.slice(0,K):ve,n[36]=K,n[37]=D,n[38]=ve,n[39]=c):c=n[39];const[_,M]=ye.useState(c);let U;n[40]===Symbol.for("react.memo_cache_sentinel")?(U=()=>{u(1)},n[40]=U):U=n[40];let te;n[41]!==K?(te=[K],n[41]=K,n[42]=te):te=n[42],ye.useEffect(U,te);let Ae,Ce;n[43]!==Se||n[44]!==K||n[45]!==D||n[46]!==ve?(Ae=()=>{if(D){const Ze=(Se-1)*K,nt=Ze+K;M(ve.slice(Ze,nt))}else M(ve)},Ce=[Se,ve,D,K],n[43]=Se,n[44]=K,n[45]=D,n[46]=ve,n[47]=Ae,n[48]=Ce):(Ae=n[47],Ce=n[48]),ye.useEffect(Ae,Ce);let Pe;n[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=[],n[49]=Pe):Pe=n[49];const[me,Re]=ye.useState(Pe);let Ie;n[50]!==me||n[51]!==C||n[52]!==ve?(Ie=()=>{C&&Re(ve.filter(Ze=>me.some(nt=>nt.id===Ze.id)))},n[50]=me,n[51]=C,n[52]=ve,n[53]=Ie):Ie=n[53];let ke;n[54]!==ve?(ke=[ve],n[54]=ve,n[55]=ke):ke=n[55],ye.useEffect(Ie,ke);let Xe;n[56]===Symbol.for("react.memo_cache_sentinel")?(Xe=()=>{Re([])},n[56]=Xe):Xe=n[56];let Qe;n[57]!==ne?(Qe=[ne],n[57]=ne,n[58]=Qe):Qe=n[58],ye.useEffect(Xe,Qe);const[it,Tt]=ye.useState(!1),[pt,ot]=ye.useState(!1),[Tn,At]=ye.useState(!1),Pn=r?"space-between":"end";let Dt;n[59]!==r?(Dt=r&&(typeof r=="string"?O.jsx(F.Title,{order:4,children:r}):r),n[59]=r,n[60]=Dt):Dt=n[60];let Wt;n[61]!==p?(Wt=()=>p(),n[61]=p,n[62]=Wt):Wt=n[62];let Mn;n[63]===Symbol.for("react.memo_cache_sentinel")?(Mn=O.jsx(ti.IconRefresh,{}),n[63]=Mn):Mn=n[63];let yt;n[64]!==Wt?(yt=O.jsx(F.ActionIcon,{variant:"subtle",onClick:Wt,"aria-label":"Neuladen",children:Mn}),n[64]=Wt,n[65]=yt):yt=n[65];let fn;n[66]!==N||n[67]!==h||n[68]!==me||n[69]!==C?(fn=(h.some(n0)||C)&&O.jsxs(F.Menu,{shadow:"md",children:[O.jsx(F.Menu.Target,{children:O.jsx(F.Button,{variant:"outline",rightSection:O.jsx(ti.IconCaretDownFilled,{size:14}),disabled:!me.length,children:"Aktionen"})}),O.jsxs(F.Menu.Dropdown,{children:[h.find(t0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ti.IconPencil,{size:14}),onClick:()=>ot(!0),disabled:me.length!==1,children:"Bearbeiten"}),(N??[]).map((Ze,nt)=>ye.createElement(F.Menu.Item,{...Ze.icon&&{leftSection:Ze.icon},key:`custom_action_${nt}`,onClick:()=>Ze.onClick(me)},Ze.label)),h.find(e0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ti.IconTrash,{size:14}),onClick:()=>At(!0),color:"red",children:"Löschen"})]})]}),n[66]=N,n[67]=h,n[68]=me,n[69]=C,n[70]=fn):fn=n[70];let hn;n[71]!==I||n[72]!==h||n[73]!==T?(hn=h.find(X1)&&O.jsx(F.Button,{onClick:()=>Tt(!0),disabled:T,children:I??"Erstellen"}),n[71]=I,n[72]=h,n[73]=T,n[74]=hn):hn=n[74];let Ut;n[75]!==m||n[76]!==yt||n[77]!==fn||n[78]!==hn?(Ut=O.jsxs(F.Group,{align:"center",gap:"xs",children:[yt,fn,hn,m]}),n[75]=m,n[76]=yt,n[77]=fn,n[78]=hn,n[79]=Ut):Ut=n[79];let It;n[80]!==Pn||n[81]!==Dt||n[82]!==Ut?(It=O.jsxs(F.Group,{gap:"xs",justify:Pn,align:"center",children:[Dt,Ut]}),n[80]=Pn,n[81]=Dt,n[82]=Ut,n[83]=It):It=n[83];let zt;n[84]!==ne||n[85]!==V||n[86]!==H?(zt=H&&H.length>0&&O.jsx(F.Tabs,{value:ne,onChange:V,mt:"md",children:O.jsx(F.Tabs.List,{children:H.map(J1)})}),n[84]=ne,n[85]=V,n[86]=H,n[87]=zt):zt=n[87];let qt;n[88]!==S?(qt=S&&O.jsx(F.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:O.jsx(ti.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[88]=S,n[89]=qt):qt=n[89];let Jt;n[90]!==T||n[91]!==d?(Jt=(T||d)&&O.jsxs(F.Stack,{my:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[90]=T,n[91]=d,n[92]=Jt):Jt=n[92];let Ht;n[93]!==h||n[94]!==S||n[95]!==T||n[96]!==d||n[97]!==Se||n[98]!==K||n[99]!==D||n[100]!==_||n[101]!==me||n[102]!==C||n[103]!==ee||n[104]!==X||n[105]!==ve?(Ht=!T&&!d&&O.jsx(B1,{my:"md",striped:!0,minHeight:150,fetching:S,records:_,sortStatus:X,onSortStatusChange:be,...C&&{selectedRecords:me,onSelectedRecordsChange:Re},...D&&_.length&&{totalRecords:ve.length,recordsPerPage:K,onPageChange:u,page:Se,recordsPerPageOptions:nc,onRecordsPerPageChange:ee,recordsPerPageLabel:"Einträge pro Seite"},columns:h.map(Z1),noRecordsText:"Keine Einträge gefunden"}),n[93]=h,n[94]=S,n[95]=T,n[96]=d,n[97]=Se,n[98]=K,n[99]=D,n[100]=_,n[101]=me,n[102]=C,n[103]=ee,n[104]=X,n[105]=ve,n[106]=Ht):Ht=n[106];let ze;n[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{ot(!1),Re([])},n[107]=ze):ze=n[107];const ut=r??"Bearbeiten";let $t;n[108]!==g||n[109]!==h||n[110]!==s||n[111]!==me[0]||n[112]!==me.length||n[113]!==R?($t=me.length>0&&O.jsx(Xl,{fields:h.filter(K1),queryKey:s,apiPath:g,id:me[0].id,onClose:()=>{ot(!1),Re([])},steps:R}),n[108]=g,n[109]=h,n[110]=s,n[111]=me[0],n[112]=me.length,n[113]=R,n[114]=$t):$t=n[114];let Xt;n[115]!==ut||n[116]!==$t||n[117]!==pt?(Xt=O.jsx(F.Modal,{opened:pt,onClose:ze,title:ut,children:$t}),n[115]=ut,n[116]=$t,n[117]=pt,n[118]=Xt):Xt=n[118];let $n;n[119]!==g||n[120]!==Tn||n[121]!==s||n[122]!==me||n[123]!==r?($n=me.length>0&&O.jsx(F.Modal,{opened:Tn,onClose:()=>{At(!1),Re([])},title:r??"Löschen",children:O.jsx(ec,{onClose:()=>{At(!1),Re([])},queryKey:s,apiPath:g,selectedRecords:me})}),n[119]=g,n[120]=Tn,n[121]=s,n[122]=me,n[123]=r,n[124]=$n):$n=n[124];let dn;n[125]===Symbol.for("react.memo_cache_sentinel")?(dn=()=>{Tt(!1)},n[125]=dn):dn=n[125];const wr=r??"Anlegen";let pn;n[126]===Symbol.for("react.memo_cache_sentinel")?(pn=()=>{Tt(!1)},n[126]=pn):pn=n[126];let Bn;n[127]!==h?(Bn=h.filter(V1),n[127]=h,n[128]=Bn):Bn=n[128];let gn;n[129]!==g||n[130]!==s||n[131]!==R||n[132]!==Bn?(gn=O.jsx(jl,{queryKey:s,apiPath:g,onClose:pn,fields:Bn,steps:R}),n[129]=g,n[130]=s,n[131]=R,n[132]=Bn,n[133]=gn):gn=n[133];let vn;n[134]!==it||n[135]!==wr||n[136]!==gn?(vn=O.jsx(F.Modal,{opened:it,onClose:dn,title:wr,children:gn}),n[134]=it,n[135]=wr,n[136]=gn,n[137]=vn):vn=n[137];let _t;return n[138]!==It||n[139]!==zt||n[140]!==qt||n[141]!==Jt||n[142]!==Ht||n[143]!==Xt||n[144]!==$n||n[145]!==vn?(_t=O.jsxs(O.Fragment,{children:[It,zt,qt,Jt,Ht,Xt,$n,vn]}),n[138]=It,n[139]=zt,n[140]=qt,n[141]=Jt,n[142]=Ht,n[143]=Xt,n[144]=$n,n[145]=vn,n[146]=_t):_t=n[146],_t}function V1(i){return i.create}function K1(i){return i.update}function Z1(i){return i.column}function Q1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-${n}`)}function J1(i){return O.jsx(F.Tabs.Tab,{value:i.value,leftSection:i.icon,children:i.label},i.value)}function X1(i){return i.create}function e0(i){return i.delete}function t0(i){return i.update}function n0(i){return i.update}function r0(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function i0(i){const[,n]=i;return n!=null}function o0(i){const n=An.c(5),{queryClient:r}=rr();let s;n[0]!==i?(s=O.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let l;return n[2]!==r||n[3]!==s?(l=O.jsx(wu,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=l):l=n[4],l}tt.CreateModal=jl,tt.DataTable=o0,tt.DataTableProvider=zp,tt.DeleteModal=ec,tt.UpdateModal=Xl,tt.api=Hp,tt.createOne=hl,tt.deleteOne=fl,tt.getAll=ll,tt.getApiHeaders=_r,tt.getOne=cl,tt.updateOne=dl,tt.useAddOne=vl,tt.useDataTable=rr,tt.useDeleteOne=ml,tt.useGetAll=gl,tt.useGetOne=pl,tt.usePersistentState=tc,tt.useUpdateOne=Ps,Object.defineProperty(tt,Symbol.toStringTag,{value:"Module"})});
143
+ }`;var Ue=gh(function(){return Qe(x,Le+"return "+xe).apply(r,P)});if(Ue.source=xe,qa(Ue))throw Ue;return Ue}function h2(e){return Xe(e).toLowerCase()}function d2(e){return Xe(e).toUpperCase()}function p2(e,t,o){if(e=Xe(e),e&&(o||t===r))return Cc(e);if(!e||!(t=rn(t)))return e;var a=kn(e),y=kn(t),x=Sc(a,y),P=Ac(a,y)+1;return vr(a,x,P).join("")}function g2(e,t,o){if(e=Xe(e),e&&(o||t===r))return e.slice(0,Oc(e)+1);if(!e||!(t=rn(t)))return e;var a=kn(e),y=Ac(a,kn(t))+1;return vr(a,0,y).join("")}function v2(e,t,o){if(e=Xe(e),e&&(o||t===r))return e.replace(ut,"");if(!e||!(t=rn(t)))return e;var a=kn(e),y=Sc(a,kn(t));return vr(a,y).join("")}function m2(e,t){var o=he,a=re;if(ft(t)){var y="separator"in t?t.separator:y;o="length"in t?We(t.length):o,a="omission"in t?rn(t.omission):a}e=Xe(e);var x=e.length;if(Ur(e)){var P=kn(e);x=P.length}if(o>=x)return e;var j=o-zr(a);if(j<1)return a;var q=P?vr(P,0,j).join(""):e.slice(0,j);if(y===r)return q+a;if(P&&(j+=q.length-j),Ha(y)){if(e.slice(j).search(y)){var pe,ge=q;for(y.global||(y=ua(y.source,Xe(vn.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;q=q.slice(0,xe===r?j:xe)}}else if(e.indexOf(rn(y),j)!=j){var Ee=q.lastIndexOf(y);Ee>-1&&(q=q.slice(0,Ee))}return q+a}function y2(e){return e=Xe(e),e&&yt.test(e)?e.replace(Wt,G0):e}var _2=Qr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ka=vf("toUpperCase");function ph(e,t,o){return e=Xe(e),t=o?r:t,t===r?W0(e)?Z0(e):k0(e):e.match(t)||[]}var gh=qe(function(e,t){try{return tn(e,r,t)}catch(o){return qa(o)?o:new Ye(o)}}),w2=Zn(function(e,t){return yn(t,function(o){o=zn(o),Vn(e,o,Ua(e[o],e))}),e});function b2(e){var t=e==null?0:e.length,o=Ne();return e=t?ct(e,function(a){if(typeof a[1]!="function")throw new _n(m);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var x=e[y];if(tn(x[0],this,a))return tn(x[1],this,a)}})}function x2(e){return Gv(bn(e,N))}function Za(e){return function(){return e}}function C2(e,t){return e==null||e!==e?t:e}var S2=yf(),A2=yf(!0);function Qt(e){return e}function Qa(e){return Gc(typeof e=="function"?e:bn(e,N))}function D2(e){return Kc(bn(e,N))}function O2(e,t){return Zc(e,bn(t,N))}var E2=qe(function(e,t){return function(o){return Ti(o,e,t)}}),T2=qe(function(e,t){return function(o){return Ti(e,o,t)}});function Ja(e,t,o){var a=Ct(t),y=$o(t,a);o==null&&!(ft(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=$o(t,Ct(t)));var x=!(ft(o)&&"chain"in o)||!!o.chain,P=Jn(e);return yn(y,function(j){var q=t[j];e[j]=q,P&&(e.prototype[j]=function(){var pe=this.__chain__;if(x||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=Vt(this.__actions__);return xe.push({func:q,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return q.apply(e,cr([this.value()],arguments))})}),e}function P2(){return Ot._===this&&(Ot._=nv),this}function Xa(){}function M2(e){return e=We(e),qe(function(t){return Qc(t,e)})}var R2=Pa(ct),k2=Pa(yc),L2=Pa(ta);function vh(e){return $a(e)?na(zn(e)):cm(e)}function N2(e){return function(t){return e==null?r:Or(e,t)}}var I2=wf(),$2=wf(!0);function eu(){return[]}function tu(){return!1}function B2(){return{}}function j2(){return""}function Y2(){return!0}function F2(e,t){if(e=We(e),e<1||e>p)return[];var o=v,a=Mt(e,v);t=Ne(t),e-=v;for(var y=oa(a,t);++o<e;)t(o);return y}function W2(e){return Fe(e)?ct(e,zn):on(e)?[e]:Vt(If(Xe(e)))}function U2(e){var t=++ev;return Xe(e)+t}var z2=Uo(function(e,t){return e+t},0),q2=Ma("ceil"),H2=Uo(function(e,t){return e/t},1),G2=Ma("floor");function V2(e){return e&&e.length?Io(e,Qt,va):r}function K2(e,t){return e&&e.length?Io(e,Ne(t,2),va):r}function Z2(e){return bc(e,Qt)}function Q2(e,t){return bc(e,Ne(t,2))}function J2(e){return e&&e.length?Io(e,Qt,wa):r}function X2(e,t){return e&&e.length?Io(e,Ne(t,2),wa):r}var eb=Uo(function(e,t){return e*t},1),tb=Ma("round"),nb=Uo(function(e,t){return e-t},0);function rb(e){return e&&e.length?ia(e,Qt):0}function ib(e,t){return e&&e.length?ia(e,Ne(t,2)):0}return w.after=D_,w.ary=Gf,w.assign=dw,w.assignIn=ah,w.assignInWith=ns,w.assignWith=pw,w.at=gw,w.before=Vf,w.bind=Ua,w.bindAll=w2,w.bindKey=Kf,w.castArray=B_,w.chain=zf,w.chunk=Gm,w.compact=Vm,w.concat=Km,w.cond=b2,w.conforms=x2,w.constant=Za,w.countBy=r_,w.create=vw,w.curry=Zf,w.curryRight=Qf,w.debounce=Jf,w.defaults=mw,w.defaultsDeep=yw,w.defer=O_,w.delay=E_,w.difference=Zm,w.differenceBy=Qm,w.differenceWith=Jm,w.drop=Xm,w.dropRight=ey,w.dropRightWhile=ty,w.dropWhile=ny,w.fill=ry,w.filter=o_,w.flatMap=u_,w.flatMapDeep=l_,w.flatMapDepth=c_,w.flatten=Yf,w.flattenDeep=iy,w.flattenDepth=oy,w.flip=T_,w.flow=S2,w.flowRight=A2,w.fromPairs=sy,w.functions=Aw,w.functionsIn=Dw,w.groupBy=f_,w.initial=uy,w.intersection=ly,w.intersectionBy=cy,w.intersectionWith=fy,w.invert=Ew,w.invertBy=Tw,w.invokeMap=d_,w.iteratee=Qa,w.keyBy=p_,w.keys=Ct,w.keysIn=Zt,w.map=Zo,w.mapKeys=Mw,w.mapValues=Rw,w.matches=D2,w.matchesProperty=O2,w.memoize=Jo,w.merge=kw,w.mergeWith=uh,w.method=E2,w.methodOf=T2,w.mixin=Ja,w.negate=Xo,w.nthArg=M2,w.omit=Lw,w.omitBy=Nw,w.once=P_,w.orderBy=g_,w.over=R2,w.overArgs=M_,w.overEvery=k2,w.overSome=L2,w.partial=za,w.partialRight=Xf,w.partition=v_,w.pick=Iw,w.pickBy=lh,w.property=vh,w.propertyOf=N2,w.pull=gy,w.pullAll=Wf,w.pullAllBy=vy,w.pullAllWith=my,w.pullAt=yy,w.range=I2,w.rangeRight=$2,w.rearg=R_,w.reject=__,w.remove=_y,w.rest=k_,w.reverse=Fa,w.sampleSize=b_,w.set=Bw,w.setWith=jw,w.shuffle=x_,w.slice=wy,w.sortBy=A_,w.sortedUniq=Oy,w.sortedUniqBy=Ey,w.split=u2,w.spread=L_,w.tail=Ty,w.take=Py,w.takeRight=My,w.takeRightWhile=Ry,w.takeWhile=ky,w.tap=Vy,w.throttle=N_,w.thru=Ko,w.toArray=ih,w.toPairs=ch,w.toPairsIn=fh,w.toPath=W2,w.toPlainObject=sh,w.transform=Yw,w.unary=I_,w.union=Ly,w.unionBy=Ny,w.unionWith=Iy,w.uniq=$y,w.uniqBy=By,w.uniqWith=jy,w.unset=Fw,w.unzip=Wa,w.unzipWith=Uf,w.update=Ww,w.updateWith=Uw,w.values=ei,w.valuesIn=zw,w.without=Yy,w.words=ph,w.wrap=$_,w.xor=Fy,w.xorBy=Wy,w.xorWith=Uy,w.zip=zy,w.zipObject=qy,w.zipObjectDeep=Hy,w.zipWith=Gy,w.entries=ch,w.entriesIn=fh,w.extend=ah,w.extendWith=ns,Ja(w,w),w.add=z2,w.attempt=gh,w.camelCase=Vw,w.capitalize=hh,w.ceil=q2,w.clamp=qw,w.clone=j_,w.cloneDeep=F_,w.cloneDeepWith=W_,w.cloneWith=Y_,w.conformsTo=U_,w.deburr=dh,w.defaultTo=C2,w.divide=H2,w.endsWith=Kw,w.eq=Nn,w.escape=Zw,w.escapeRegExp=Qw,w.every=i_,w.find=s_,w.findIndex=Bf,w.findKey=_w,w.findLast=a_,w.findLastIndex=jf,w.findLastKey=ww,w.floor=G2,w.forEach=qf,w.forEachRight=Hf,w.forIn=bw,w.forInRight=xw,w.forOwn=Cw,w.forOwnRight=Sw,w.get=Ga,w.gt=z_,w.gte=q_,w.has=Ow,w.hasIn=Va,w.head=Ff,w.identity=Qt,w.includes=h_,w.indexOf=ay,w.inRange=Hw,w.invoke=Pw,w.isArguments=Pr,w.isArray=Fe,w.isArrayBuffer=H_,w.isArrayLike=Kt,w.isArrayLikeObject=gt,w.isBoolean=G_,w.isBuffer=mr,w.isDate=V_,w.isElement=K_,w.isEmpty=Z_,w.isEqual=Q_,w.isEqualWith=J_,w.isError=qa,w.isFinite=X_,w.isFunction=Jn,w.isInteger=eh,w.isLength=es,w.isMap=th,w.isMatch=ew,w.isMatchWith=tw,w.isNaN=nw,w.isNative=rw,w.isNil=ow,w.isNull=iw,w.isNumber=nh,w.isObject=ft,w.isObjectLike=dt,w.isPlainObject=Ni,w.isRegExp=Ha,w.isSafeInteger=sw,w.isSet=rh,w.isString=ts,w.isSymbol=on,w.isTypedArray=Xr,w.isUndefined=aw,w.isWeakMap=uw,w.isWeakSet=lw,w.join=hy,w.kebabCase=Jw,w.last=Cn,w.lastIndexOf=dy,w.lowerCase=Xw,w.lowerFirst=e2,w.lt=cw,w.lte=fw,w.max=V2,w.maxBy=K2,w.mean=Z2,w.meanBy=Q2,w.min=J2,w.minBy=X2,w.stubArray=eu,w.stubFalse=tu,w.stubObject=B2,w.stubString=j2,w.stubTrue=Y2,w.multiply=eb,w.nth=py,w.noConflict=P2,w.noop=Xa,w.now=Qo,w.pad=t2,w.padEnd=n2,w.padStart=r2,w.parseInt=i2,w.random=Gw,w.reduce=m_,w.reduceRight=y_,w.repeat=o2,w.replace=s2,w.result=$w,w.round=tb,w.runInContext=z,w.sample=w_,w.size=C_,w.snakeCase=a2,w.some=S_,w.sortedIndex=by,w.sortedIndexBy=xy,w.sortedIndexOf=Cy,w.sortedLastIndex=Sy,w.sortedLastIndexBy=Ay,w.sortedLastIndexOf=Dy,w.startCase=l2,w.startsWith=c2,w.subtract=nb,w.sum=rb,w.sumBy=ib,w.template=f2,w.times=F2,w.toFinite=Xn,w.toInteger=We,w.toLength=oh,w.toLower=h2,w.toNumber=Sn,w.toSafeInteger=hw,w.toString=Xe,w.toUpper=d2,w.trim=p2,w.trimEnd=g2,w.trimStart=v2,w.truncate=m2,w.unescape=y2,w.uniqueId=U2,w.upperCase=_2,w.upperFirst=Ka,w.each=qf,w.eachRight=Hf,w.first=Ff,Ja(w,function(){var e={};return Wn(w,function(t,o){nt.call(w.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),w.VERSION=s,yn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){w[e].placeholder=w}),yn(["drop","take"],function(e,t){Ge.prototype[e]=function(o){o=o===r?1:xt(We(o),0);var a=this.__filtered__&&!t?new Ge(this):this.clone();return a.__filtered__?a.__takeCount__=Mt(o,a.__takeCount__):a.__views__.push({size:Mt(o,v),type:e+(a.__dir__<0?"Right":"")}),a},Ge.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),yn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==k||o==S;Ge.prototype[e]=function(y){var x=this.clone();return x.__iteratees__.push({iteratee:Ne(y,3),type:o}),x.__filtered__=x.__filtered__||a,x}}),yn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[o](1).value()[0]}}),yn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ge.prototype[e]=function(){return this.__filtered__?new Ge(this):this[o](1)}}),Ge.prototype.compact=function(){return this.filter(Qt)},Ge.prototype.find=function(e){return this.filter(e).head()},Ge.prototype.findLast=function(e){return this.reverse().find(e)},Ge.prototype.invokeMap=qe(function(e,t){return typeof e=="function"?new Ge(this):this.map(function(o){return Ti(o,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Xo(Ne(e)))},Ge.prototype.slice=function(e,t){e=We(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ge(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=We(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ge.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ge.prototype.toArray=function(){return this.take(v)},Wn(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=w[a?"take"+(t=="last"?"Right":""):t],x=a||/^find/.test(t);y&&(w.prototype[t]=function(){var P=this.__wrapped__,j=a?[1]:arguments,q=P instanceof Ge,pe=j[0],ge=q||Fe(P),xe=function(He){var Ke=y.apply(w,cr([He],j));return a&&Ee?Ke[0]:Ke};ge&&o&&typeof pe=="function"&&pe.length!=1&&(q=ge=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,$e=x&&!Ee,Ue=q&&!Le;if(!x&&ge){P=Ue?P:new Ge(this);var Be=e.apply(P,j);return Be.__actions__.push({func:Ko,args:[xe],thisArg:r}),new wn(Be,Ee)}return $e&&Ue?e.apply(this,j):(Be=this.thru(xe),$e?a?Be.value()[0]:Be.value():Be)})}),yn(["pop","push","shift","sort","splice","unshift"],function(e){var t=bo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);w.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var x=this.value();return t.apply(Fe(x)?x:[],y)}return this[o](function(P){return t.apply(Fe(P)?P:[],y)})}}),Wn(Ge.prototype,function(e,t){var o=w[t];if(o){var a=o.name+"";nt.call(Vr,a)||(Vr[a]=[]),Vr[a].push({name:t,func:o})}}),Vr[Wo(r,se).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=yv,Ge.prototype.reverse=_v,Ge.prototype.value=wv,w.prototype.at=Ky,w.prototype.chain=Zy,w.prototype.commit=Qy,w.prototype.next=Jy,w.prototype.plant=e_,w.prototype.reverse=t_,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=n_,w.prototype.first=w.prototype.head,xi&&(w.prototype[xi]=Xy),w},qr=Q0();xr?((xr.exports=qr)._=qr,Qs._=qr):Ot._=qr}).call(q1)}(vi,vi.exports)),vi.exports}var G1=H1();const V1=rs(G1),tc=(i,n,r="asc")=>V1.orderBy(i,[s=>{if(s[n]===null||s[n]===void 0||s[n]==="")return r==="asc"?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER;const l=s[n];return typeof l=="string"&&/^\d{4}-\d{2}-\d{2}T/.test(l)?new Date(l).getTime():typeof l=="string"?l.toLowerCase():l}],[r]),nc=[10,15,20,50,100,500];function K1(i){const n=An.c(147),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:g,buttons:m,fields:h,selection:C,pagination:D,filters:E,actions:N,steps:R,defaultSort:L,createButtonText:I,queryParams:$,tabs:H,defaultTab:se,activeTab:ue,onActiveTabChange:ae}=i,[ce,Q]=ye.useState(se||(H&&H.length>0?H[0].value:null)),ne=ue!==void 0?ue:ce;let J;n[0]!==ue||n[1]!==ae?(J=ot=>{ue===void 0&&Q(ot),ae&&ae(ot)},n[0]=ue,n[1]=ae,n[2]=J):J=n[2];const V=J;let de,he;if(n[3]!==ne||n[4]!==$||n[5]!==H){const ot=H?.find(tt=>tt.value===ne)?.queryParams||{};de={...$,...ot},he=de?"?"+Object.entries(de).filter(s0).map(o0).join("&"):"",n[3]=ne,n[4]=$,n[5]=H,n[6]=de,n[7]=he}else de=n[6],he=n[7];const re=he;let De;n[8]!==ne||n[9]!==s?(De=ne?[...s,ne]:s,n[8]=ne,n[9]=s,n[10]=De):De=n[10];const Oe=De,{data:k,isLoading:T,isError:S,isRefetching:d,refetch:p}=gl(g+re,Oe);let b;n[11]===Symbol.for("react.memo_cache_sentinel")?(b=[],n[11]=b):b=n[11];const[f,v]=ye.useState(b),{queryClient:A}=rr();let Y;n[12]!==k||n[13]!==l||n[14]!==E||n[15]!==A?(Y=()=>{if(!(!k||!Array.isArray(k))){if(l?.forEach(ot=>A.invalidateQueries({queryKey:ot})),!E||E.length===0){v(k);return}v(k.filter(ot=>E.every(tt=>{if(tt.value===void 0)return!0;const Gt=tt.id;if(tt.type==="query"){const Pt=ot[Gt];return Array.isArray(tt.value)?Array.isArray(Pt)?Pt.some(wt=>{if(typeof wt=="string"||typeof wt=="number")return tt.value.includes(String(wt));if(wt&&typeof wt=="object"){if("id"in wt&&tt.value.includes(wt.id))return!0;for(const Bt in wt){const en=wt[Bt];if(typeof en=="string"&&tt.value.includes(en)||en&&typeof en=="object"&&"id"in en&&tt.value.includes(en.id))return!0}}return!1}):Pt&&typeof Pt=="object"&&"id"in Pt?tt.value.includes(Pt.id):!1:typeof Pt=="string"&&Pt.includes(tt.value)}else if(tt.type==="date"){const Pt=tt.value;if(!Pt)return!0;const[wt,Bt]=Pt;if(!wt&&!Bt)return!0;const en=ot[Gt];if(typeof en=="string"){const Rn=en.split(" ")[0];if(wt&&Bt)return Rn>=wt&&Rn<=Bt;if(wt&&!Bt)return Rn>=wt;if(!wt&&Bt)return Rn<=Bt}return!0}else if(tt.type==="boolean")return ot[Gt]===tt.value;return!0})))}},n[12]=k,n[13]=l,n[14]=E,n[15]=A,n[16]=Y):Y=n[16];let G;n[17]!==k||n[18]!==de||n[19]!==E?(G=[k,E,de],n[17]=k,n[18]=de,n[19]=E,n[20]=G):G=n[20],ye.useEffect(Y,G);const oe=L?.field??h[0].id,le=L?.direction??"desc";let we;n[21]!==oe||n[22]!==le?(we={columnAccessor:oe,direction:le},n[21]=oe,n[22]=le,n[23]=we):we=n[23];const[X,be]=ye.useState(we);let _e;n[24]!==f||n[25]!==L?.direction||n[26]!==L?.field||n[27]!==h[0]?(_e=()=>tc(f,L?.field??h[0].id,L?.direction??"desc"),n[24]=f,n[25]=L?.direction,n[26]=L?.field,n[27]=h[0],n[28]=_e):_e=n[28];const[ve,B]=ye.useState(_e);let Z;n[29]!==f||n[30]!==X.columnAccessor||n[31]!==X.direction?(Z=()=>{B(tc(f,X.columnAccessor,X.direction))},n[29]=f,n[30]=X.columnAccessor,n[31]=X.direction,n[32]=Z):Z=n[32];let W;n[33]!==f||n[34]!==X?(W=[X,f],n[33]=f,n[34]=X,n[35]=W):W=n[35],ye.useEffect(Z,W);const[K,ee]=Xl(nc[1],"mantine-table-page-size"),[Se,u]=ye.useState(1);let c;n[36]!==K||n[37]!==D||n[38]!==ve?(c=D?ve.slice(0,K):ve,n[36]=K,n[37]=D,n[38]=ve,n[39]=c):c=n[39];const[_,M]=ye.useState(c);let U;n[40]===Symbol.for("react.memo_cache_sentinel")?(U=()=>{u(1)},n[40]=U):U=n[40];let te;n[41]!==K?(te=[K],n[41]=K,n[42]=te):te=n[42],ye.useEffect(U,te);let Ae,Ce;n[43]!==Se||n[44]!==K||n[45]!==D||n[46]!==ve?(Ae=()=>{if(D){const ot=(Se-1)*K,tt=ot+K;M(ve.slice(ot,tt))}else M(ve)},Ce=[Se,ve,D,K],n[43]=Se,n[44]=K,n[45]=D,n[46]=ve,n[47]=Ae,n[48]=Ce):(Ae=n[47],Ce=n[48]),ye.useEffect(Ae,Ce);let Pe;n[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=[],n[49]=Pe):Pe=n[49];const[me,Re]=ye.useState(Pe);let Ie;n[50]!==me||n[51]!==C||n[52]!==ve?(Ie=()=>{C&&Re(ve.filter(ot=>me.some(tt=>tt.id===ot.id)))},n[50]=me,n[51]=C,n[52]=ve,n[53]=Ie):Ie=n[53];let ke;n[54]!==ve?(ke=[ve],n[54]=ve,n[55]=ke):ke=n[55],ye.useEffect(Ie,ke);let Je;n[56]===Symbol.for("react.memo_cache_sentinel")?(Je=()=>{Re([])},n[56]=Je):Je=n[56];let Ze;n[57]!==ne?(Ze=[ne],n[57]=ne,n[58]=Ze):Ze=n[58],ye.useEffect(Je,Ze);const[rt,Tt]=ye.useState(!1),[pt,it]=ye.useState(!1),[Tn,At]=ye.useState(!1),Pn=r?"space-between":"end";let Dt;n[59]!==r?(Dt=r&&(typeof r=="string"?O.jsx(F.Title,{order:4,children:r}):r),n[59]=r,n[60]=Dt):Dt=n[60];let Wt;n[61]!==p?(Wt=()=>p(),n[61]=p,n[62]=Wt):Wt=n[62];let Mn;n[63]===Symbol.for("react.memo_cache_sentinel")?(Mn=O.jsx(ti.IconRefresh,{}),n[63]=Mn):Mn=n[63];let yt;n[64]!==Wt?(yt=O.jsx(F.ActionIcon,{variant:"subtle",onClick:Wt,"aria-label":"Neuladen",children:Mn}),n[64]=Wt,n[65]=yt):yt=n[65];let fn;n[66]!==N||n[67]!==h||n[68]!==me||n[69]!==C?(fn=(h.some(i0)||C)&&O.jsxs(F.Menu,{shadow:"md",children:[O.jsx(F.Menu.Target,{children:O.jsx(F.Button,{variant:"outline",rightSection:O.jsx(ti.IconCaretDownFilled,{size:14}),disabled:!me.length,children:"Aktionen"})}),O.jsxs(F.Menu.Dropdown,{children:[h.find(r0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ti.IconPencil,{size:14}),onClick:()=>it(!0),disabled:me.length!==1,children:"Bearbeiten"}),(N??[]).map((ot,tt)=>ye.createElement(F.Menu.Item,{...ot.icon&&{leftSection:ot.icon},key:`custom_action_${tt}`,onClick:()=>ot.onClick(me)},ot.label)),h.find(n0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ti.IconTrash,{size:14}),onClick:()=>At(!0),color:"red",children:"Löschen"})]})]}),n[66]=N,n[67]=h,n[68]=me,n[69]=C,n[70]=fn):fn=n[70];let hn;n[71]!==I||n[72]!==h||n[73]!==T?(hn=h.find(t0)&&O.jsx(F.Button,{onClick:()=>Tt(!0),disabled:T,children:I??"Erstellen"}),n[71]=I,n[72]=h,n[73]=T,n[74]=hn):hn=n[74];let Ut;n[75]!==m||n[76]!==yt||n[77]!==fn||n[78]!==hn?(Ut=O.jsxs(F.Group,{align:"center",gap:"xs",children:[yt,fn,hn,m]}),n[75]=m,n[76]=yt,n[77]=fn,n[78]=hn,n[79]=Ut):Ut=n[79];let It;n[80]!==Pn||n[81]!==Dt||n[82]!==Ut?(It=O.jsxs(F.Group,{gap:"xs",justify:Pn,align:"center",children:[Dt,Ut]}),n[80]=Pn,n[81]=Dt,n[82]=Ut,n[83]=It):It=n[83];let zt;n[84]!==ne||n[85]!==V||n[86]!==H?(zt=H&&H.length>0&&O.jsx(F.Tabs,{value:ne,onChange:V,mt:"md",children:O.jsx(F.Tabs.List,{children:H.map(e0)})}),n[84]=ne,n[85]=V,n[86]=H,n[87]=zt):zt=n[87];let qt;n[88]!==S?(qt=S&&O.jsx(F.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:O.jsx(ti.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[88]=S,n[89]=qt):qt=n[89];let Jt;n[90]!==T||n[91]!==d?(Jt=(T||d)&&O.jsxs(F.Stack,{my:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(5).fill(0).map(X1)]}),n[90]=T,n[91]=d,n[92]=Jt):Jt=n[92];let Ht;n[93]!==h||n[94]!==S||n[95]!==T||n[96]!==d||n[97]!==Se||n[98]!==K||n[99]!==D||n[100]!==_||n[101]!==me||n[102]!==C||n[103]!==ee||n[104]!==X||n[105]!==ve?(Ht=!T&&!d&&O.jsx(B1,{my:"md",striped:!0,minHeight:150,fetching:S,records:_,sortStatus:X,onSortStatusChange:be,...C&&{selectedRecords:me,onSelectedRecordsChange:Re},...D&&_.length&&{totalRecords:ve.length,recordsPerPage:K,onPageChange:u,page:Se,recordsPerPageOptions:nc,onRecordsPerPageChange:ee,recordsPerPageLabel:"Einträge pro Seite"},columns:h.map(J1),noRecordsText:"Keine Einträge gefunden"}),n[93]=h,n[94]=S,n[95]=T,n[96]=d,n[97]=Se,n[98]=K,n[99]=D,n[100]=_,n[101]=me,n[102]=C,n[103]=ee,n[104]=X,n[105]=ve,n[106]=Ht):Ht=n[106];let ze;n[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{it(!1),Re([])},n[107]=ze):ze=n[107];const ut=r??"Bearbeiten";let $t;n[108]!==g||n[109]!==h||n[110]!==s||n[111]!==me[0]||n[112]!==me.length||n[113]!==R?($t=me.length>0&&O.jsx(Ql,{fields:h.filter(Q1),queryKey:s,apiPath:g,id:me[0].id,onClose:()=>{it(!1),Re([])},steps:R}),n[108]=g,n[109]=h,n[110]=s,n[111]=me[0],n[112]=me.length,n[113]=R,n[114]=$t):$t=n[114];let Xt;n[115]!==ut||n[116]!==$t||n[117]!==pt?(Xt=O.jsx(F.Modal,{opened:pt,onClose:ze,title:ut,children:$t}),n[115]=ut,n[116]=$t,n[117]=pt,n[118]=Xt):Xt=n[118];let $n;n[119]!==g||n[120]!==Tn||n[121]!==s||n[122]!==me||n[123]!==r?($n=me.length>0&&O.jsx(F.Modal,{opened:Tn,onClose:()=>{At(!1),Re([])},title:r??"Löschen",children:O.jsx(Jl,{onClose:()=>{At(!1),Re([])},queryKey:s,apiPath:g,selectedRecords:me})}),n[119]=g,n[120]=Tn,n[121]=s,n[122]=me,n[123]=r,n[124]=$n):$n=n[124];let dn;n[125]===Symbol.for("react.memo_cache_sentinel")?(dn=()=>{Tt(!1)},n[125]=dn):dn=n[125];const wr=r??"Anlegen";let pn;n[126]===Symbol.for("react.memo_cache_sentinel")?(pn=()=>{Tt(!1)},n[126]=pn):pn=n[126];let Bn;n[127]!==h?(Bn=h.filter(Z1),n[127]=h,n[128]=Bn):Bn=n[128];let gn;n[129]!==g||n[130]!==s||n[131]!==R||n[132]!==Bn?(gn=O.jsx(jl,{queryKey:s,apiPath:g,onClose:pn,fields:Bn,steps:R}),n[129]=g,n[130]=s,n[131]=R,n[132]=Bn,n[133]=gn):gn=n[133];let vn;n[134]!==rt||n[135]!==wr||n[136]!==gn?(vn=O.jsx(F.Modal,{opened:rt,onClose:dn,title:wr,children:gn}),n[134]=rt,n[135]=wr,n[136]=gn,n[137]=vn):vn=n[137];let _t;return n[138]!==It||n[139]!==zt||n[140]!==qt||n[141]!==Jt||n[142]!==Ht||n[143]!==Xt||n[144]!==$n||n[145]!==vn?(_t=O.jsxs(O.Fragment,{children:[It,zt,qt,Jt,Ht,Xt,$n,vn]}),n[138]=It,n[139]=zt,n[140]=qt,n[141]=Jt,n[142]=Ht,n[143]=Xt,n[144]=$n,n[145]=vn,n[146]=_t):_t=n[146],_t}function Z1(i){return i.create}function Q1(i){return i.update}function J1(i){return i.column}function X1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-${n}`)}function e0(i){return O.jsx(F.Tabs.Tab,{value:i.value,leftSection:i.icon,children:i.label},i.value)}function t0(i){return i.create}function n0(i){return i.delete}function r0(i){return i.update}function i0(i){return i.update}function o0(i){const[n,r]=i;return`${n}=${encodeURIComponent(r??"")}`}function s0(i){const[,n]=i;return n!=null}function a0(i){const n=An.c(5),{queryClient:r}=rr();let s;n[0]!==i?(s=O.jsx(K1,{...i}),n[0]=i,n[1]=s):s=n[1];let l;return n[2]!==r||n[3]!==s?(l=O.jsx(wu,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=l):l=n[4],l}et.CreateModal=jl,et.DataTable=a0,et.DataTableProvider=zp,et.DeleteModal=Jl,et.UpdateModal=Ql,et.api=Hp,et.createOne=hl,et.deleteOne=fl,et.getAll=ll,et.getApiHeaders=_r,et.getOne=cl,et.updateOne=dl,et.useAddOne=vl,et.useDataTable=rr,et.useDeleteOne=ml,et.useGetAll=gl,et.useGetOne=pl,et.usePersistentState=Xl,et.useUpdateOne=Ms,Object.defineProperty(et,Symbol.toStringTag,{value:"Module"})});
144
144
  //# sourceMappingURL=index.umd.js.map