@espresso-lab/mantine-data-table 1.6.1 → 1.7.0
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/DataTable/DataTableInner.d.ts +3 -1
- package/dist/index.es.js +4800 -4790
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +34 -34
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(ot,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):(ot=typeof globalThis<"u"?globalThis:ot||self,ye(ot.MantineDataTable={},ot.React,ot.MantineCore,ot.MantineForm,ot.TablerIconsReact,ot.MantineHooks))})(this,function(ot,ye,F,Xa,ei,Mt){"use strict";function dh(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 Ct=dh(ye);var Ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function el(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ii={exports:{}},ns={};/**
|
|
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 tl;function ph(){if(tl)return
|
|
9
|
+
*/var tl;function ph(){if(tl)return ns;tl=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return ns.c=function(n){return i.H.useMemoCache(n)},ns}var rs={};/**
|
|
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 nl;function gh(){return nl||(nl=1,process.env.NODE_ENV!=="production"&&function(){var i=
|
|
17
|
+
*/var nl;function gh(){return nl||(nl=1,process.env.NODE_ENV!=="production"&&function(){var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;rs.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)}}()),es}var rl;function vh(){return rl||(rl=1,process.env.NODE_ENV==="production"?ki.exports=ph():ki.exports=gh()),ki.exports}var gn=vh(),Li=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(){}},Jr=typeof window>"u"||"Deno"in globalThis;function Ni(){}function il(i){return typeof i=="number"&&i>=0&&i!==1/0}function mh(i,n){return Math.max(i+(n||0)-Date.now(),0)}function Xr(i,n){return typeof i=="function"?i(n):i}function vn(i,n){return typeof i=="function"?i(n):i}function ol(i){return JSON.stringify(i,(n,r)=>ns(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function ts(i,n){if(i===n)return i;const r=sl(i)&&sl(n);if(r||ns(i)&&ns(n)){const s=r?i:Object.keys(i),u=s.length,g=r?n:Object.keys(n),m=g.length,f=r?[]:{},C=new Set(s);let A=0;for(let E=0;E<m;E++){const L=r?E:g[E];(!r&&C.has(L)||r)&&i[L]===void 0&&n[L]===void 0?(f[L]=void 0,A++):(f[L]=ts(i[L],n[L]),f[L]===i[L]&&i[L]!==void 0&&A++)}return u===m&&A===u?i:f}return n}function Ii(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 sl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function ns(i){if(!al(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!al(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function al(i){return Object.prototype.toString.call(i)==="[object Object]"}function ll(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 ts(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 ts(i,n)}return n}function ul(i,n){return typeof i=="function"?i(...n):!!i}var yh=class extends Li{#t;#e;#n;constructor(){super(),this.#n=i=>{if(!Jr&&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"}},_h=new yh,wh=class extends Li{#t=!0;#e;#n;constructor(){super(),this.#n=i=>{if(!Jr&&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}},bh=new wh;function cl(){let i,n;const r=new Promise((u,g)=>{i=u,n=g});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),i(u)},r.reject=u=>{s({status:"rejected",reason:u}),n(u)},r}function xh(i){return(i??"online")==="online"?bh.isOnline():!0}var Ch=i=>setTimeout(i,0);function Sh(){let i=[],n=0,r=f=>{f()},s=f=>{f()},u=Ch;const g=f=>{n?i.push(f):u(()=>{r(f)})},m=()=>{const f=i;i=[],f.length&&u(()=>{s(()=>{f.forEach(C=>{r(C)})})})};return{batch:f=>{let C;n++;try{C=f()}finally{n--,n||m()}return C},batchCalls:f=>(...C)=>{g(()=>{f(...C)})},schedule:g,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{u=f}}}var $i=Sh();function Dh(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xh(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Ah(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Oh=class extends Li{constructor(i,n){super(),this.options=n,this.#t=i,this.#a=null,this.#s=cl(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#g;#h;#d;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),fl(this.#e,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rs(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rs(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 vn(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&&!Ii(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&hl(this.#e,r,this.options,n)&&this.#f(),this.updateResult(),s&&(this.#e!==r||vn(this.options.enabled,this.#e)!==vn(n.enabled,this.#e)||Xr(this.options.staleTime,this.#e)!==Xr(n.staleTime,this.#e))&&this.#v();const u=this.#m();s&&(this.#e!==r||vn(this.options.enabled,this.#e)!==vn(n.enabled,this.#e)||u!==this.#l)&&this.#y(u)}getOptimisticResult(i){const n=this.#t.getQueryCache().build(this.#t,i),r=this.createResult(n,i);return Th(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),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(Ni)),n}#v(){this.#w();const i=Xr(this.options.staleTime,this.#e);if(Jr||this.#r.isStale||!il(i))return;const r=mh(this.#r.dataUpdatedAt,i)+1;this.#u=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.#l=i,!(Jr||vn(this.options.enabled,this.#e)===!1||!il(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||_h.isFocused())&&this.#f()},this.#l))}#_(){this.#v(),this.#y(this.#m())}#w(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#b(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(i,n){const r=this.#e,s=this.options,u=this.#r,g=this.#i,m=this.#o,C=i!==r?i.state:this.#n,{state:A}=i;let E={...A},L=!1,M;if(n._optimisticResults){const V=this.hasListeners(),pe=!V&&fl(i,n),fe=V&&hl(i,r,n,s);(pe||fe)&&(E={...E,...Dh(A.data,i.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:k,errorUpdatedAt:I,status:B}=E;M=E.data;let G=!1;if(n.placeholderData!==void 0&&M===void 0&&B==="pending"){let V;u?.isPlaceholderData&&n.placeholderData===m?.placeholderData?(V=u.data,G=!0):V=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,V!==void 0&&(B="success",M=ll(u?.data,V,n),L=!0)}if(n.select&&M!==void 0&&!G)if(u&&M===g?.data&&n.select===this.#g)M=this.#h;else try{this.#g=n.select,M=n.select(M),M=ll(u?.data,M,n),this.#h=M,this.#a=null}catch(V){this.#a=V}this.#a&&(k=this.#a,M=this.#h,I=Date.now(),B="error");const ie=E.fetchStatus==="fetching",se=B==="pending",ae=B==="error",le=se&&ie,Q=M!==void 0,Z={status:B,fetchStatus:E.fetchStatus,isPending:se,isSuccess:B==="success",isError:ae,isInitialLoading:le,isLoading:le,data:M,dataUpdatedAt:E.dataUpdatedAt,error:k,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:ie,isRefetching:ie&&!se,isLoadingError:ae&&!Q,isPaused:E.fetchStatus==="paused",isPlaceholderData:L,isRefetchError:ae&&Q,isStale:is(i,n),refetch:this.refetch,promise:this.#s,isEnabled:vn(n.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const V=re=>{Z.status==="error"?re.reject(Z.error):Z.data!==void 0&&re.resolve(Z.data)},pe=()=>{const re=this.#s=Z.promise=cl();V(re)},fe=this.#s;switch(fe.status){case"pending":i.queryHash===r.queryHash&&V(fe);break;case"fulfilled":(Z.status==="error"||Z.data!==fe.value)&&pe();break;case"rejected":(Z.status!=="error"||Z.error!==fe.reason)&&pe();break}}return Z}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),Ii(n,i))return;this.#r=n;const r=()=>{if(!i)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.#p.size)return!0;const g=new Set(u??this.#p);return this.options.throwOnError&&g.add("error"),Object.keys(this.#r).some(m=>{const f=m;return this.#r[f]!==i[f]&&g.has(f)})};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){$i.batch(()=>{i.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Eh(i,n){return vn(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function fl(i,n){return Eh(i,n)||i.state.data!==void 0&&rs(i,n,n.refetchOnMount)}function rs(i,n,r){if(vn(n.enabled,i)!==!1&&Xr(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&is(i,n)}return!1}function hl(i,n,r,s){return(i!==n||vn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&is(i,r)}function is(i,n){return vn(n.enabled,i)!==!1&&i.isStaleByTime(Xr(n.staleTime,i))}function Th(i,n){return!Ii(i.getCurrentResult(),n)}var Ph=class extends Li{#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),Ii(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ol(n.mutationKey)!==ol(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??Ah();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){$i.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)})})}},Bi={exports:{}},ei={};/**
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),rs}var rl;function vh(){return rl||(rl=1,process.env.NODE_ENV==="production"?Ii.exports=ph():Ii.exports=gh()),Ii.exports}var bn=vh(),$i=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(){}},ti=typeof window>"u"||"Deno"in globalThis;function Bi(){}function il(i){return typeof i=="number"&&i>=0&&i!==1/0}function mh(i,n){return Math.max(i+(n||0)-Date.now(),0)}function ni(i,n){return typeof i=="function"?i(n):i}function xn(i,n){return typeof i=="function"?i(n):i}function ol(i){return JSON.stringify(i,(n,r)=>os(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function is(i,n){if(i===n)return i;const r=sl(i)&&sl(n);if(r||os(i)&&os(n)){const s=r?i:Object.keys(i),u=s.length,g=r?n:Object.keys(n),v=g.length,h=r?[]:{},C=new Set(s);let D=0;for(let E=0;E<v;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]=is(i[N],n[N]),h[N]===i[N]&&i[N]!==void 0&&D++)}return u===v&&D===u?i:h}return n}function ji(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 sl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function os(i){if(!al(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!al(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function al(i){return Object.prototype.toString.call(i)==="[object Object]"}function ll(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 is(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 is(i,n)}return n}function ul(i,n){return typeof i=="function"?i(...n):!!i}var yh=class extends $i{#t;#e;#n;constructor(){super(),this.#n=i=>{if(!ti&&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"}},_h=new yh,wh=class extends $i{#t=!0;#e;#n;constructor(){super(),this.#n=i=>{if(!ti&&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}},bh=new wh;function cl(){let i,n;const r=new Promise((u,g)=>{i=u,n=g});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),i(u)},r.reject=u=>{s({status:"rejected",reason:u}),n(u)},r}function xh(i){return(i??"online")==="online"?bh.isOnline():!0}var Ch=i=>setTimeout(i,0);function Sh(){let i=[],n=0,r=h=>{h()},s=h=>{h()},u=Ch;const g=h=>{n?i.push(h):u(()=>{r(h)})},v=()=>{const h=i;i=[],h.length&&u(()=>{s(()=>{h.forEach(C=>{r(C)})})})};return{batch:h=>{let C;n++;try{C=h()}finally{n--,n||v()}return C},batchCalls:h=>(...C)=>{g(()=>{h(...C)})},schedule:g,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{u=h}}}var Yi=Sh();function Ah(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xh(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Dh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Oh=class extends $i{constructor(i,n){super(),this.options=n,this.#t=i,this.#a=null,this.#s=cl(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#o;#s;#a;#g;#h;#d;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),fl(this.#e,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ss(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ss(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 xn(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&&!ji(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&hl(this.#e,r,this.options,n)&&this.#f(),this.updateResult(),s&&(this.#e!==r||xn(this.options.enabled,this.#e)!==xn(n.enabled,this.#e)||ni(this.options.staleTime,this.#e)!==ni(n.staleTime,this.#e))&&this.#v();const u=this.#m();s&&(this.#e!==r||xn(this.options.enabled,this.#e)!==xn(n.enabled,this.#e)||u!==this.#l)&&this.#y(u)}getOptimisticResult(i){const n=this.#t.getQueryCache().build(this.#t,i),r=this.createResult(n,i);return Th(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),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(Bi)),n}#v(){this.#w();const i=ni(this.options.staleTime,this.#e);if(ti||this.#r.isStale||!il(i))return;const r=mh(this.#r.dataUpdatedAt,i)+1;this.#u=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.#l=i,!(ti||xn(this.options.enabled,this.#e)===!1||!il(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||_h.isFocused())&&this.#f()},this.#l))}#_(){this.#v(),this.#y(this.#m())}#w(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#b(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(i,n){const r=this.#e,s=this.options,u=this.#r,g=this.#i,v=this.#o,C=i!==r?i.state:this.#n,{state:D}=i;let E={...D},N=!1,M;if(n._optimisticResults){const K=this.hasListeners(),de=!K&&fl(i,n),he=K&&hl(i,r,n,s);(de||he)&&(E={...E,...Ah(D.data,i.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:L,errorUpdatedAt:I,status:$}=E;M=E.data;let H=!1;if(n.placeholderData!==void 0&&M===void 0&&$==="pending"){let K;u?.isPlaceholderData&&n.placeholderData===v?.placeholderData?(K=u.data,H=!0):K=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,K!==void 0&&($="success",M=ll(u?.data,K,n),N=!0)}if(n.select&&M!==void 0&&!H)if(u&&M===g?.data&&n.select===this.#g)M=this.#h;else try{this.#g=n.select,M=n.select(M),M=ll(u?.data,M,n),this.#h=M,this.#a=null}catch(K){this.#a=K}this.#a&&(L=this.#a,M=this.#h,I=Date.now(),$="error");const oe=E.fetchStatus==="fetching",le=$==="pending",se=$==="error",ce=le&&oe,Q=M!==void 0,J={status:$,fetchStatus:E.fetchStatus,isPending:le,isSuccess:$==="success",isError:se,isInitialLoading:ce,isLoading:ce,data:M,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:oe,isRefetching:oe&&!le,isLoadingError:se&&!Q,isPaused:E.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:se&&Q,isStale:as(i,n),refetch:this.refetch,promise:this.#s,isEnabled:xn(n.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const K=ae=>{J.status==="error"?ae.reject(J.error):J.data!==void 0&&ae.resolve(J.data)},de=()=>{const ae=this.#s=J.promise=cl();K(ae)},he=this.#s;switch(he.status){case"pending":i.queryHash===r.queryHash&&K(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),ji(n,i))return;this.#r=n;const r=()=>{if(!i)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.#p.size)return!0;const g=new Set(u??this.#p);return this.options.throwOnError&&g.add("error"),Object.keys(this.#r).some(v=>{const h=v;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){Yi.batch(()=>{i.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Eh(i,n){return xn(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function fl(i,n){return Eh(i,n)||i.state.data!==void 0&&ss(i,n,n.refetchOnMount)}function ss(i,n,r){if(xn(n.enabled,i)!==!1&&ni(n.staleTime,i)!=="static"){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&as(i,n)}return!1}function hl(i,n,r,s){return(i!==n||xn(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&as(i,r)}function as(i,n){return xn(n.enabled,i)!==!1&&i.isStaleByTime(ni(n.staleTime,i))}function Th(i,n){return!ji(i.getCurrentResult(),n)}var Ph=class extends $i{#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),ji(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ol(n.mutationKey)!==ol(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??Dh();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){Yi.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)})})}},Fi={exports:{}},ri={};/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-jsx-runtime.production.js
|
|
24
24
|
*
|
|
@@ -26,7 +26,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var dl;function Mh(){if(dl)return
|
|
29
|
+
*/var dl;function Mh(){if(dl)return ri;dl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,u,g){var v=null;if(g!==void 0&&(v=""+g),u.key!==void 0&&(v=""+u.key),"key"in u){g={};for(var h in u)h!=="key"&&(g[h]=u[h])}else g=u;return u=g.ref,{$$typeof:i,type:s,key:v,ref:u!==void 0?u:null,props:g}}return ri.Fragment=n,ri.jsx=r,ri.jsxs=r,ri}var ii={};/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
32
32
|
*
|
|
@@ -34,12 +34,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var pl;function Rh(){return pl||(pl=1,process.env.NODE_ENV!=="production"&&function(){function i(
|
|
37
|
+
*/var pl;function Rh(){return pl||(pl=1,process.env.NODE_ENV!=="production"&&function(){function i(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===he?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case $:return"Fragment";case oe:return"Profiler";case H:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case de:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case I:return"Portal";case se:return(f.displayName||"Context")+".Provider";case le:return(f._context.displayName||"Context")+".Consumer";case ce:var m=f.render;return f=f.displayName,f||(f=m.displayName||m.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case J:return m=f.displayName||null,m!==null?m:i(f.type)||"Memo";case K:m=f._payload,f=f._init;try{return i(f(m))}catch{}}return null}function n(f){return""+f}function r(f){try{n(f);var m=!1}catch{m=!0}if(m){m=console;var S=m.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return S.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),n(f)}}function s(f){if(f===$)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===K)return"<...>";try{var m=i(f);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var f=ae.A;return f===null?null:f.getOwner()}function g(){return Error("react-stack-top-frame")}function v(f){if(De.call(f,"key")){var m=Object.getOwnPropertyDescriptor(f,"key").get;if(m&&m.isReactWarning)return!1}return f.key!==void 0}function h(f,m){function S(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}S.isReactWarning=!0,Object.defineProperty(f,"key",{get:S,configurable:!0})}function C(){var f=i(this.type);return A[f]||(A[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function D(f,m,S,Y,G,ie,ue,we){return S=ie.ref,f={$$typeof:L,type:f,key:m,props:ie,_owner:G},(S!==void 0?S:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:C}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function E(f,m,S,Y,G,ie,ue,we){var X=m.children;if(X!==void 0)if(Y)if(Oe(X)){for(Y=0;Y<X.length;Y++)N(X[Y]);Object.freeze&&Object.freeze(X)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(X);if(De.call(m,"key")){X=i(f);var be=Object.keys(m).filter(function(ve){return ve!=="key"});Y=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",w[X+Y]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
38
38
|
let props = %s;
|
|
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,
|
|
42
|
+
<%s key={someKey} {...props} />`,Y,X,be,X),w[X+Y]=!0)}if(X=null,S!==void 0&&(r(S),X=""+S),v(m)&&(r(m.key),X=""+m.key),"key"in m){S={};for(var _e in m)_e!=="key"&&(S[_e]=m[_e])}else S=m;return X&&h(S,typeof f=="function"?f.displayName||f.name||"Unknown":f),D(f,X,ie,G,u(),S,ue,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var M=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),se=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"),K=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),ae=M.__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};M={react_stack_bottom_frame:function(f){return f()}};var T,A={},p=M.react_stack_bottom_frame.bind(M,g)(),d=k(s(g)),w={};ii.Fragment=$,ii.jsx=function(f,m,S,Y,G){var ie=1e4>ae.recentlyCreatedOwnerStacks++;return E(f,m,S,!1,Y,G,ie?Error("react-stack-top-frame"):p,ie?k(s(f)):d)},ii.jsxs=function(f,m,S,Y,G){var ie=1e4>ae.recentlyCreatedOwnerStacks++;return E(f,m,S,!0,Y,G,ie?Error("react-stack-top-frame"):p,ie?k(s(f)):d)}}()),ii}var gl;function kh(){return gl||(gl=1,process.env.NODE_ENV==="production"?Fi.exports=Mh():Fi.exports=Rh()),Fi.exports}var O=kh(),vl=Ct.createContext(void 0),ml=i=>{const n=Ct.useContext(vl);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},yl=({client:i,children:n})=>(Ct.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),O.jsx(vl.Provider,{value:i,children:n})),_l=Ct.createContext(!1),Lh=()=>Ct.useContext(_l);_l.Provider;function Nh(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var Ih=Ct.createContext(Nh()),$h=()=>Ct.useContext(Ih),Bh=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},jh=i=>{Ct.useEffect(()=>{i.clearReset()},[i])},Yh=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:u})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(u&&i.data===void 0||ul(r,[i.error,s])),Fh=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))}},Wh=(i,n)=>i.isLoading&&i.isFetching&&!n,Uh=(i,n)=>i?.suspense&&n.isPending,wl=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function zh(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=Lh(),u=$h(),g=ml(),v=g.defaultQueryOptions(i);g.getDefaultOptions().queries?._experimental_beforeQuery?.(v),process.env.NODE_ENV!=="production"&&(v.queryFn||console.error(`[${v.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`)),v._optimisticResults=s?"isRestoring":"optimistic",Fh(v),Bh(v,u),jh(u);const h=!g.getQueryCache().get(v.queryHash),[C]=Ct.useState(()=>new n(g,v)),D=C.getOptimisticResult(v),E=!s&&i.subscribed!==!1;if(Ct.useSyncExternalStore(Ct.useCallback(N=>{const M=E?C.subscribe(Yi.batchCalls(N)):Bi;return C.updateResult(),M},[C,E]),()=>C.getCurrentResult(),()=>C.getCurrentResult()),Ct.useEffect(()=>{C.setOptions(v)},[v,C]),Uh(v,D))throw wl(v,C,u);if(Yh({result:D,errorResetBoundary:u,throwOnError:v.throwOnError,query:g.getQueryCache().get(v.queryHash),suspense:v.suspense}))throw D.error;return g.getDefaultOptions().queries?._experimental_afterQuery?.(v,D),v.experimental_prefetchInRender&&!ti&&Wh(D,s)&&(h?wl(v,C,u):g.getQueryCache().get(v.queryHash)?.promise)?.catch(Bi).finally(()=>{C.updateResult()}),v.notifyOnChangeProps?D:C.trackResult(D)}function bl(i,n){return zh(i,Oh)}function ls(i,n){const r=ml(),[s]=Ct.useState(()=>new Ph(r,i));Ct.useEffect(()=>{s.setOptions(i)},[s,i]);const u=Ct.useSyncExternalStore(Ct.useCallback(v=>s.subscribe(Yi.batchCalls(v)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),g=Ct.useCallback((v,h)=>{s.mutate(v,h).catch(Bi)},[s]);if(u.error&&ul(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:g,mutateAsync:u.mutate}}var xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function us(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 u=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,u.get?u:{enumerable:!0,get:function(){return i[s]}})}),r}var cs={exports:{}},oi={};/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-jsx-runtime.production.js
|
|
45
45
|
*
|
|
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var Cl;function qh(){if(Cl)return
|
|
50
|
+
*/var Cl;function qh(){if(Cl)return oi;Cl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,u,g){var v=null;if(g!==void 0&&(v=""+g),u.key!==void 0&&(v=""+u.key),"key"in u){g={};for(var h in u)h!=="key"&&(g[h]=u[h])}else g=u;return u=g.ref,{$$typeof:i,type:s,key:v,ref:u!==void 0?u:null,props:g}}return oi.Fragment=n,oi.jsx=r,oi.jsxs=r,oi}var Wi={};/**
|
|
51
51
|
* @license React
|
|
52
52
|
* react-jsx-runtime.development.js
|
|
53
53
|
*
|
|
@@ -55,12 +55,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var Sl;function Hh(){return Sl||(Sl=1,process.env.NODE_ENV!=="production"&&function(){function i(
|
|
58
|
+
*/var Sl;function Hh(){return Sl||(Sl=1,process.env.NODE_ENV!=="production"&&function(){function i(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===he?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case $:return"Fragment";case oe:return"Profiler";case H:return"StrictMode";case Q:return"Suspense";case ne:return"SuspenseList";case de:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case I:return"Portal";case se:return(f.displayName||"Context")+".Provider";case le:return(f._context.displayName||"Context")+".Consumer";case ce:var m=f.render;return f=f.displayName,f||(f=m.displayName||m.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case J:return m=f.displayName||null,m!==null?m:i(f.type)||"Memo";case K:m=f._payload,f=f._init;try{return i(f(m))}catch{}}return null}function n(f){return""+f}function r(f){try{n(f);var m=!1}catch{m=!0}if(m){m=console;var S=m.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return S.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),n(f)}}function s(f){if(f===$)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===K)return"<...>";try{var m=i(f);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function u(){var f=ae.A;return f===null?null:f.getOwner()}function g(){return Error("react-stack-top-frame")}function v(f){if(De.call(f,"key")){var m=Object.getOwnPropertyDescriptor(f,"key").get;if(m&&m.isReactWarning)return!1}return f.key!==void 0}function h(f,m){function S(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}S.isReactWarning=!0,Object.defineProperty(f,"key",{get:S,configurable:!0})}function C(){var f=i(this.type);return A[f]||(A[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function D(f,m,S,Y,G,ie,ue,we){return S=ie.ref,f={$$typeof:L,type:f,key:m,props:ie,_owner:G},(S!==void 0?S:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:C}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function E(f,m,S,Y,G,ie,ue,we){var X=m.children;if(X!==void 0)if(Y)if(Oe(X)){for(Y=0;Y<X.length;Y++)N(X[Y]);Object.freeze&&Object.freeze(X)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(X);if(De.call(m,"key")){X=i(f);var be=Object.keys(m).filter(function(ve){return ve!=="key"});Y=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",w[X+Y]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
59
59
|
let props = %s;
|
|
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,
|
|
63
|
+
<%s key={someKey} {...props} />`,Y,X,be,X),w[X+Y]=!0)}if(X=null,S!==void 0&&(r(S),X=""+S),v(m)&&(r(m.key),X=""+m.key),"key"in m){S={};for(var _e in m)_e!=="key"&&(S[_e]=m[_e])}else S=m;return X&&h(S,typeof f=="function"?f.displayName||f.name||"Unknown":f),D(f,X,ie,G,u(),S,ue,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var M=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),se=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"),K=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.client.reference"),ae=M.__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};M={react_stack_bottom_frame:function(f){return f()}};var T,A={},p=M.react_stack_bottom_frame.bind(M,g)(),d=k(s(g)),w={};Wi.Fragment=$,Wi.jsx=function(f,m,S,Y,G){var ie=1e4>ae.recentlyCreatedOwnerStacks++;return E(f,m,S,!1,Y,G,ie?Error("react-stack-top-frame"):p,ie?k(s(f)):d)},Wi.jsxs=function(f,m,S,Y,G){var ie=1e4>ae.recentlyCreatedOwnerStacks++;return E(f,m,S,!0,Y,G,ie?Error("react-stack-top-frame"):p,ie?k(s(f)):d)}}()),Wi}var Al;function Gh(){return Al||(Al=1,process.env.NODE_ENV==="production"?cs.exports=qh():cs.exports=Hh()),cs.exports}Gh();var fs={exports:{}},hs={};/**
|
|
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
|
|
71
|
+
*/var Dl;function Vh(){if(Dl)return hs;Dl=1;var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return hs.c=function(n){return i.H.useMemoCache(n)},hs}var Ol={};/**
|
|
72
72
|
* @license React
|
|
73
73
|
* react-compiler-runtime.development.js
|
|
74
74
|
*
|
|
@@ -76,19 +76,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var El;function Kh(){return El||(El=1,process.env.NODE_ENV!=="production"&&function(){var i=
|
|
79
|
+
*/var El;function Kh(){return El||(El=1,process.env.NODE_ENV!=="production"&&function(){var i=ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Ol.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:
|
|
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)}}()),Ol}var Tl;function Zh(){return Tl||(Tl=1,process.env.NODE_ENV==="production"?
|
|
83
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Ol}var Tl;function Zh(){return Tl||(Tl=1,process.env.NODE_ENV==="production"?fs.exports=Vh():fs.exports=Kh()),fs.exports}Zh();/*!
|
|
84
84
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
85
85
|
* SPDX-License-Identifier: Apache-2.0
|
|
86
|
-
*/var Pl={},
|
|
86
|
+
*/var Pl={},si={},Ml;function Qh(){if(Ml)return si;Ml=1,si.byteLength=h,si.toByteArray=D,si.fromByteArray=M;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,g=s.length;u<g;++u)i[u]=s[u],n[s.charCodeAt(u)]=u;n[45]=62,n[95]=63;function v(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=v(L),$=I[0],H=I[1];return($+H)*3/4-H}function C(L,I,$){return(I+$)*3/4-$}function D(L){var I,$=v(L),H=$[0],oe=$[1],le=new r(C(L,H,oe)),se=0,ce=oe>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)],le[se++]=I>>16&255,le[se++]=I>>8&255,le[se++]=I&255;return oe===2&&(I=n[L.charCodeAt(Q)]<<2|n[L.charCodeAt(Q+1)]>>4,le[se++]=I&255),oe===1&&(I=n[L.charCodeAt(Q)]<<10|n[L.charCodeAt(Q+1)]<<4|n[L.charCodeAt(Q+2)]>>2,le[se++]=I>>8&255,le[se++]=I&255),le}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,oe=[],le=I;le<$;le+=3)H=(L[le]<<16&16711680)+(L[le+1]<<8&65280)+(L[le+2]&255),oe.push(E(H));return oe.join("")}function M(L){for(var I,$=L.length,H=$%3,oe=[],le=16383,se=0,ce=$-H;se<ce;se+=le)oe.push(N(L,se,se+le>ce?ce:se+le));return H===1?(I=L[$-1],oe.push(i[I>>2]+i[I<<4&63]+"==")):H===2&&(I=(L[$-2]<<8)+L[$-1],oe.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),oe.join("")}return si}var ds={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Rl;function Jh(){return Rl||(Rl=1,ds.read=function(i,n,r,s,u){var g,v,h=u*8-s-1,C=(1<<h)-1,D=C>>1,E=-7,N=r?u-1:0,M=r?-1:1,L=i[n+N];for(N+=M,g=L&(1<<-E)-1,L>>=-E,E+=h;E>0;g=g*256+i[n+N],N+=M,E-=8);for(v=g&(1<<-E)-1,g>>=-E,E+=s;E>0;v=v*256+i[n+N],N+=M,E-=8);if(g===0)g=1-D;else{if(g===C)return v?NaN:(L?-1:1)*(1/0);v=v+Math.pow(2,s),g=g-D}return(L?-1:1)*v*Math.pow(2,g-s)},ds.write=function(i,n,r,s,u,g){var v,h,C,D=g*8-u-1,E=(1<<D)-1,N=E>>1,M=u===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,v=E):(v=Math.floor(Math.log(n)/Math.LN2),n*(C=Math.pow(2,-v))<1&&(v--,C*=2),v+N>=1?n+=M/C:n+=M*Math.pow(2,1-N),n*C>=2&&(v++,C/=2),v+N>=E?(h=0,v=E):v+N>=1?(h=(n*C-1)*Math.pow(2,u),v=v+N):(h=n*Math.pow(2,N-1)*Math.pow(2,u),v=0));u>=8;i[r+L]=h&255,L+=I,h/=256,u-=8);for(v=v<<u|h,D+=u;D>0;i[r+L]=v&255,L+=I,v/=256,D-=8);i[r+L-I]|=$*128}),ds}var ps,kl;function Xh(){if(kl)return ps;kl=1;var i={}.toString;return ps=Array.isArray||function(n){return i.call(n)=="[object Array]"},ps}/*!
|
|
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 Ll;function ed(){return Ll||(Ll=1,function(i){var n=Qh(),r=Jh(),s=Xh();i.Buffer=f,i.SlowBuffer=ie,i.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=xl.TYPED_ARRAY_SUPPORT!==void 0?xl.TYPED_ARRAY_SUPPORT:u(),i.kMaxLength=g();function u(){try{var l=new Uint8Array(1);return l.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},l.foo()===42&&typeof l.subarray=="function"&&l.subarray(1,1).byteLength===0}catch{return!1}}function g(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(l,c){if(g()<c)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(c),l.__proto__=f.prototype):(l===null&&(l=new f(c)),l.length=c),l}function f(l,c,_){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(l,c,_);if(typeof l=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return L(this,l)}return C(this,l,c,_)}f.poolSize=8192,f._augment=function(l){return l.__proto__=f.prototype,l};function C(l,c,_,T){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&c instanceof ArrayBuffer?I(l,c,_,T):typeof c=="string"?M(l,c,_):B(l,c)}f.from=function(l,c,_){return C(null,l,c,_)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0}));function A(l){if(typeof l!="number")throw new TypeError('"size" argument must be a number');if(l<0)throw new RangeError('"size" argument must not be negative')}function E(l,c,_,T){return A(c),c<=0?m(l,c):_!==void 0?typeof T=="string"?m(l,c).fill(_,T):m(l,c).fill(_):m(l,c)}f.alloc=function(l,c,_){return E(null,l,c,_)};function L(l,c){if(A(c),l=m(l,c<0?0:G(c)|0),!f.TYPED_ARRAY_SUPPORT)for(var _=0;_<c;++_)l[_]=0;return l}f.allocUnsafe=function(l){return L(null,l)},f.allocUnsafeSlow=function(l){return L(null,l)};function M(l,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!f.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var T=se(c,_)|0;l=m(l,T);var z=l.write(c,_);return z!==T&&(l=l.slice(0,z)),l}function k(l,c){var _=c.length<0?0:G(c.length)|0;l=m(l,_);for(var T=0;T<_;T+=1)l[T]=c[T]&255;return l}function I(l,c,_,T){if(c.byteLength,_<0||c.byteLength<_)throw new RangeError("'offset' is out of bounds");if(c.byteLength<_+(T||0))throw new RangeError("'length' is out of bounds");return _===void 0&&T===void 0?c=new Uint8Array(c):T===void 0?c=new Uint8Array(c,_):c=new Uint8Array(c,_,T),f.TYPED_ARRAY_SUPPORT?(l=c,l.__proto__=f.prototype):l=k(l,c),l}function B(l,c){if(f.isBuffer(c)){var _=G(c.length)|0;return l=m(l,_),l.length===0||c.copy(l,0,0,_),l}if(c){if(typeof ArrayBuffer<"u"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||Se(c.length)?m(l,0):k(l,c);if(c.type==="Buffer"&&s(c.data))return k(l,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function G(l){if(l>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return l|0}function ie(l){return+l!=l&&(l=0),f.alloc(+l)}f.isBuffer=function(l){return!!(l!=null&&l._isBuffer)},f.compare=function(l,c){if(!f.isBuffer(l)||!f.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(l===c)return 0;for(var _=l.length,T=c.length,z=0,te=Math.min(_,T);z<te;++z)if(l[z]!==c[z]){_=l[z],T=c[z];break}return _<T?-1:T<_?1:0},f.isEncoding=function(l){switch(String(l).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}},f.concat=function(l,c){if(!s(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return f.alloc(0);var _;if(c===void 0)for(c=0,_=0;_<l.length;++_)c+=l[_].length;var T=f.allocUnsafe(c),z=0;for(_=0;_<l.length;++_){var te=l[_];if(!f.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(T,z),z+=te.length}return T};function se(l,c){if(f.isBuffer(l))return l.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(l)||l instanceof ArrayBuffer))return l.byteLength;typeof l!="string"&&(l=""+l);var _=l.length;if(_===0)return 0;for(var T=!1;;)switch(c){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return $(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return J(l).length;default:if(T)return $(l).length;c=(""+c).toLowerCase(),T=!0}}f.byteLength=se;function ae(l,c,_){var T=!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(l||(l="utf8");;)switch(l){case"hex":return w(this,c,_);case"utf8":case"utf-8":return N(this,c,_);case"ascii":return p(this,c,_);case"latin1":case"binary":return d(this,c,_);case"base64":return De(this,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h(this,c,_);default:if(T)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),T=!0}}f.prototype._isBuffer=!0;function le(l,c,_){var T=l[c];l[c]=l[_],l[_]=T}f.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<l;c+=2)le(this,c,c+1);return this},f.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<l;c+=4)le(this,c,c+3),le(this,c+1,c+2);return this},f.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<l;c+=8)le(this,c,c+7),le(this,c+1,c+6),le(this,c+2,c+5),le(this,c+3,c+4);return this},f.prototype.toString=function(){var l=this.length|0;return l===0?"":arguments.length===0?N(this,0,l):ae.apply(this,arguments)},f.prototype.equals=function(l){if(!f.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:f.compare(this,l)===0},f.prototype.inspect=function(){var l="",c=i.INSPECT_MAX_BYTES;return this.length>0&&(l=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(l+=" ... ")),"<Buffer "+l+">"},f.prototype.compare=function(l,c,_,T,z){if(!f.isBuffer(l))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),_===void 0&&(_=l?l.length:0),T===void 0&&(T=0),z===void 0&&(z=this.length),c<0||_>l.length||T<0||z>this.length)throw new RangeError("out of range index");if(T>=z&&c>=_)return 0;if(T>=z)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,T>>>=0,z>>>=0,this===l)return 0;for(var te=z-T,Ae=_-c,be=Math.min(te,Ae),Pe=this.slice(T,z),Ce=l.slice(c,_),Le=0;Le<be;++Le)if(Pe[Le]!==Ce[Le]){te=Pe[Le],Ae=Ce[Le];break}return te<Ae?-1:Ae<te?1:0};function Q(l,c,_,T,z){if(l.length===0)return-1;if(typeof _=="string"?(T=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=z?0:l.length-1),_<0&&(_=l.length+_),_>=l.length){if(z)return-1;_=l.length-1}else if(_<0)if(z)_=0;else return-1;if(typeof c=="string"&&(c=f.from(c,T)),f.isBuffer(c))return c.length===0?-1:ue(l,c,_,T,z);if(typeof c=="number")return c=c&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(l,c,_):Uint8Array.prototype.lastIndexOf.call(l,c,_):ue(l,[c],_,T,z);throw new TypeError("val must be string, number or Buffer")}function ue(l,c,_,T,z){var te=1,Ae=l.length,be=c.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(l.length<2||c.length<2)return-1;te=2,Ae/=2,be/=2,_/=2}function Pe(nt,et){return te===1?nt[et]:nt.readUInt16BE(et*te)}var Ce;if(z){var Le=-1;for(Ce=_;Ce<Ae;Ce++)if(Pe(l,Ce)===Pe(c,Le===-1?0:Ce-Le)){if(Le===-1&&(Le=Ce),Ce-Le+1===be)return Le*te}else Le!==-1&&(Ce-=Ce-Le),Le=-1}else for(_+be>Ae&&(_=Ae-be),Ce=_;Ce>=0;Ce--){for(var Be=!0,Re=0;Re<be;Re++)if(Pe(l,Ce+Re)!==Pe(c,Re)){Be=!1;break}if(Be)return Ce}return-1}f.prototype.includes=function(l,c,_){return this.indexOf(l,c,_)!==-1},f.prototype.indexOf=function(l,c,_){return Q(this,l,c,_,!0)},f.prototype.lastIndexOf=function(l,c,_){return Q(this,l,c,_,!1)};function Z(l,c,_,T){_=Number(_)||0;var z=l.length-_;T?(T=Number(T),T>z&&(T=z)):T=z;var te=c.length;if(te%2!==0)throw new TypeError("Invalid hex string");T>te/2&&(T=te/2);for(var Ae=0;Ae<T;++Ae){var be=parseInt(c.substr(Ae*2,2),16);if(isNaN(be))return Ae;l[_+Ae]=be}return Ae}function V(l,c,_,T){return ee($(c,l.length-_),l,_,T)}function pe(l,c,_,T){return ee(K(c),l,_,T)}function fe(l,c,_,T){return pe(l,c,_,T)}function re(l,c,_,T){return ee(J(c),l,_,T)}function Oe(l,c,_,T){return ee(W(c,l.length-_),l,_,T)}f.prototype.write=function(l,c,_,T){if(c===void 0)T="utf8",_=this.length,c=0;else if(_===void 0&&typeof c=="string")T=c,_=this.length,c=0;else if(isFinite(c))c=c|0,isFinite(_)?(_=_|0,T===void 0&&(T="utf8")):(T=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var z=this.length-c;if((_===void 0||_>z)&&(_=z),l.length>0&&(_<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");for(var te=!1;;)switch(T){case"hex":return Z(this,l,c,_);case"utf8":case"utf-8":return V(this,l,c,_);case"ascii":return pe(this,l,c,_);case"latin1":case"binary":return fe(this,l,c,_);case"base64":return re(this,l,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oe(this,l,c,_);default:if(te)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),te=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function De(l,c,_){return c===0&&_===l.length?n.fromByteArray(l):n.fromByteArray(l.slice(c,_))}function N(l,c,_){_=Math.min(l.length,_);for(var T=[],z=c;z<_;){var te=l[z],Ae=null,be=te>239?4:te>223?3:te>191?2:1;if(z+be<=_){var Pe,Ce,Le,Be;switch(be){case 1:te<128&&(Ae=te);break;case 2:Pe=l[z+1],(Pe&192)===128&&(Be=(te&31)<<6|Pe&63,Be>127&&(Ae=Be));break;case 3:Pe=l[z+1],Ce=l[z+2],(Pe&192)===128&&(Ce&192)===128&&(Be=(te&15)<<12|(Pe&63)<<6|Ce&63,Be>2047&&(Be<55296||Be>57343)&&(Ae=Be));break;case 4:Pe=l[z+1],Ce=l[z+2],Le=l[z+3],(Pe&192)===128&&(Ce&192)===128&&(Le&192)===128&&(Be=(te&15)<<18|(Pe&63)<<12|(Ce&63)<<6|Le&63,Be>65535&&Be<1114112&&(Ae=Be))}}Ae===null?(Ae=65533,be=1):Ae>65535&&(Ae-=65536,T.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),T.push(Ae),z+=be}return D(T)}var R=4096;function D(l){var c=l.length;if(c<=R)return String.fromCharCode.apply(String,l);for(var _="",T=0;T<c;)_+=String.fromCharCode.apply(String,l.slice(T,T+=R));return _}function p(l,c,_){var T="";_=Math.min(l.length,_);for(var z=c;z<_;++z)T+=String.fromCharCode(l[z]&127);return T}function d(l,c,_){var T="";_=Math.min(l.length,_);for(var z=c;z<_;++z)T+=String.fromCharCode(l[z]);return T}function w(l,c,_){var T=l.length;(!c||c<0)&&(c=0),(!_||_<0||_>T)&&(_=T);for(var z="",te=c;te<_;++te)z+=xe(l[te]);return z}function h(l,c,_){for(var T=l.slice(c,_),z="",te=0;te<T.length;te+=2)z+=String.fromCharCode(T[te]+T[te+1]*256);return z}f.prototype.slice=function(l,c){var _=this.length;l=~~l,c=c===void 0?_:~~c,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),c<l&&(c=l);var T;if(f.TYPED_ARRAY_SUPPORT)T=this.subarray(l,c),T.__proto__=f.prototype;else{var z=c-l;T=new f(z,void 0);for(var te=0;te<z;++te)T[te]=this[te+l]}return T};function v(l,c,_){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+c>_)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var T=this[l],z=1,te=0;++te<c&&(z*=256);)T+=this[l+te]*z;return T},f.prototype.readUIntBE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var T=this[l+--c],z=1;c>0&&(z*=256);)T+=this[l+--c]*z;return T},f.prototype.readUInt8=function(l,c){return c||v(l,1,this.length),this[l]},f.prototype.readUInt16LE=function(l,c){return c||v(l,2,this.length),this[l]|this[l+1]<<8},f.prototype.readUInt16BE=function(l,c){return c||v(l,2,this.length),this[l]<<8|this[l+1]},f.prototype.readUInt32LE=function(l,c){return c||v(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},f.prototype.readUInt32BE=function(l,c){return c||v(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},f.prototype.readIntLE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var T=this[l],z=1,te=0;++te<c&&(z*=256);)T+=this[l+te]*z;return z*=128,T>=z&&(T-=Math.pow(2,8*c)),T},f.prototype.readIntBE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var T=c,z=1,te=this[l+--T];T>0&&(z*=256);)te+=this[l+--T]*z;return z*=128,te>=z&&(te-=Math.pow(2,8*c)),te},f.prototype.readInt8=function(l,c){return c||v(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},f.prototype.readInt16LE=function(l,c){c||v(l,2,this.length);var _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},f.prototype.readInt16BE=function(l,c){c||v(l,2,this.length);var _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},f.prototype.readInt32LE=function(l,c){return c||v(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},f.prototype.readInt32BE=function(l,c){return c||v(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},f.prototype.readFloatLE=function(l,c){return c||v(l,4,this.length),r.read(this,l,!0,23,4)},f.prototype.readFloatBE=function(l,c){return c||v(l,4,this.length),r.read(this,l,!1,23,4)},f.prototype.readDoubleLE=function(l,c){return c||v(l,8,this.length),r.read(this,l,!0,52,8)},f.prototype.readDoubleBE=function(l,c){return c||v(l,8,this.length),r.read(this,l,!1,52,8)};function S(l,c,_,T,z,te){if(!f.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>z||c<te)throw new RangeError('"value" argument is out of bounds');if(_+T>l.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(l,c,_,T){if(l=+l,c=c|0,_=_|0,!T){var z=Math.pow(2,8*_)-1;S(this,l,c,_,z,0)}var te=1,Ae=0;for(this[c]=l&255;++Ae<_&&(te*=256);)this[c+Ae]=l/te&255;return c+_},f.prototype.writeUIntBE=function(l,c,_,T){if(l=+l,c=c|0,_=_|0,!T){var z=Math.pow(2,8*_)-1;S(this,l,c,_,z,0)}var te=_-1,Ae=1;for(this[c+te]=l&255;--te>=0&&(Ae*=256);)this[c+te]=l/Ae&255;return c+_},f.prototype.writeUInt8=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,1,255,0),f.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[c]=l&255,c+1};function Y(l,c,_,T){c<0&&(c=65535+c+1);for(var z=0,te=Math.min(l.length-_,2);z<te;++z)l[_+z]=(c&255<<8*(T?z:1-z))>>>(T?z:1-z)*8}f.prototype.writeUInt16LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):Y(this,l,c,!0),c+2},f.prototype.writeUInt16BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):Y(this,l,c,!1),c+2};function U(l,c,_,T){c<0&&(c=4294967295+c+1);for(var z=0,te=Math.min(l.length-_,4);z<te;++z)l[_+z]=c>>>(T?z:3-z)*8&255}f.prototype.writeUInt32LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255):U(this,l,c,!0),c+4},f.prototype.writeUInt32BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):U(this,l,c,!1),c+4},f.prototype.writeIntLE=function(l,c,_,T){if(l=+l,c=c|0,!T){var z=Math.pow(2,8*_-1);S(this,l,c,_,z-1,-z)}var te=0,Ae=1,be=0;for(this[c]=l&255;++te<_&&(Ae*=256);)l<0&&be===0&&this[c+te-1]!==0&&(be=1),this[c+te]=(l/Ae>>0)-be&255;return c+_},f.prototype.writeIntBE=function(l,c,_,T){if(l=+l,c=c|0,!T){var z=Math.pow(2,8*_-1);S(this,l,c,_,z-1,-z)}var te=_-1,Ae=1,be=0;for(this[c+te]=l&255;--te>=0&&(Ae*=256);)l<0&&be===0&&this[c+te+1]!==0&&(be=1),this[c+te]=(l/Ae>>0)-be&255;return c+_},f.prototype.writeInt8=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,1,127,-128),f.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[c]=l&255,c+1},f.prototype.writeInt16LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):Y(this,l,c,!0),c+2},f.prototype.writeInt16BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):Y(this,l,c,!1),c+2},f.prototype.writeInt32LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24):U(this,l,c,!0),c+4},f.prototype.writeInt32BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),f.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):U(this,l,c,!1),c+4};function oe(l,c,_,T,z,te){if(_+T>l.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ce(l,c,_,T,z){return z||oe(l,c,_,4),r.write(l,c,_,T,23,4),_+4}f.prototype.writeFloatLE=function(l,c,_){return ce(this,l,c,!0,_)},f.prototype.writeFloatBE=function(l,c,_){return ce(this,l,c,!1,_)};function _e(l,c,_,T,z){return z||oe(l,c,_,8),r.write(l,c,_,T,52,8),_+8}f.prototype.writeDoubleLE=function(l,c,_){return _e(this,l,c,!0,_)},f.prototype.writeDoubleBE=function(l,c,_){return _e(this,l,c,!1,_)},f.prototype.copy=function(l,c,_,T){if(_||(_=0),!T&&T!==0&&(T=this.length),c>=l.length&&(c=l.length),c||(c=0),T>0&&T<_&&(T=_),T===_||l.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(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),l.length-c<T-_&&(T=l.length-c+_);var z=T-_,te;if(this===l&&_<c&&c<T)for(te=z-1;te>=0;--te)l[te+c]=this[te+_];else if(z<1e3||!f.TYPED_ARRAY_SUPPORT)for(te=0;te<z;++te)l[te+c]=this[te+_];else Uint8Array.prototype.set.call(l,this.subarray(_,_+z),c);return z},f.prototype.fill=function(l,c,_,T){if(typeof l=="string"){if(typeof c=="string"?(T=c,c=0,_=this.length):typeof _=="string"&&(T=_,_=this.length),l.length===1){var z=l.charCodeAt(0);z<256&&(l=z)}if(T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!f.isEncoding(T))throw new TypeError("Unknown encoding: "+T)}else typeof l=="number"&&(l=l&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,l||(l=0);var te;if(typeof l=="number")for(te=c;te<_;++te)this[te]=l;else{var Ae=f.isBuffer(l)?l:$(new f(l,T).toString()),be=Ae.length;for(te=0;te<_-c;++te)this[te+c]=Ae[te%be]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function ye(l){if(l=me(l).replace(X,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function me(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function xe(l){return l<16?"0"+l.toString(16):l.toString(16)}function $(l,c){c=c||1/0;for(var _,T=l.length,z=null,te=[],Ae=0;Ae<T;++Ae){if(_=l.charCodeAt(Ae),_>55295&&_<57344){if(!z){if(_>56319){(c-=3)>-1&&te.push(239,191,189);continue}else if(Ae+1===T){(c-=3)>-1&&te.push(239,191,189);continue}z=_;continue}if(_<56320){(c-=3)>-1&&te.push(239,191,189),z=_;continue}_=(z-55296<<10|_-56320)+65536}else z&&(c-=3)>-1&&te.push(239,191,189);if(z=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 K(l){for(var c=[],_=0;_<l.length;++_)c.push(l.charCodeAt(_)&255);return c}function W(l,c){for(var _,T,z,te=[],Ae=0;Ae<l.length&&!((c-=2)<0);++Ae)_=l.charCodeAt(Ae),T=_>>8,z=_%256,te.push(z),te.push(T);return te}function J(l){return n.toByteArray(ye(l))}function ee(l,c,_,T){for(var z=0;z<T&&!(z+_>=c.length||z>=l.length);++z)c[z+_]=l[z];return z}function Se(l){return l!==l}}(Pl)),Pl}ed();var dr;if(typeof window<"u"&&window.crypto&&(dr=window.crypto),!dr&&typeof window<"u"&&window.msCrypto&&(dr=window.msCrypto),!dr&&typeof global<"u"&&global.crypto&&(dr=global.crypto),!dr&&typeof require=="function")try{dr=require("crypto")}catch{}var Nl={};/*! *****************************************************************************
|
|
91
|
+
*/var Ll;function ed(){return Ll||(Ll=1,function(i){var n=Qh(),r=Jh(),s=Xh();i.Buffer=h,i.SlowBuffer=oe,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=xl.TYPED_ARRAY_SUPPORT!==void 0?xl.TYPED_ARRAY_SUPPORT:u(),i.kMaxLength=g();function u(){try{var l=new Uint8Array(1);return l.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},l.foo()===42&&typeof l.subarray=="function"&&l.subarray(1,1).byteLength===0}catch{return!1}}function g(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(l,c){if(g()<c)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(c),l.__proto__=h.prototype):(l===null&&(l=new h(c)),l.length=c),l}function h(l,c,_){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(l,c,_);if(typeof l=="number"){if(typeof c=="string")throw new Error("If encoding is specified then the first argument must be a string");return N(this,l)}return C(this,l,c,_)}h.poolSize=8192,h._augment=function(l){return l.__proto__=h.prototype,l};function C(l,c,_,R){if(typeof c=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&c instanceof ArrayBuffer?I(l,c,_,R):typeof c=="string"?M(l,c,_):$(l,c)}h.from=function(l,c,_){return C(null,l,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(l){if(typeof l!="number")throw new TypeError('"size" argument must be a number');if(l<0)throw new RangeError('"size" argument must not be negative')}function E(l,c,_,R){return D(c),c<=0?v(l,c):_!==void 0?typeof R=="string"?v(l,c).fill(_,R):v(l,c).fill(_):v(l,c)}h.alloc=function(l,c,_){return E(null,l,c,_)};function N(l,c){if(D(c),l=v(l,c<0?0:H(c)|0),!h.TYPED_ARRAY_SUPPORT)for(var _=0;_<c;++_)l[_]=0;return l}h.allocUnsafe=function(l){return N(null,l)},h.allocUnsafeSlow=function(l){return N(null,l)};function M(l,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!h.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var R=le(c,_)|0;l=v(l,R);var U=l.write(c,_);return U!==R&&(l=l.slice(0,U)),l}function L(l,c){var _=c.length<0?0:H(c.length)|0;l=v(l,_);for(var R=0;R<_;R+=1)l[R]=c[R]&255;return l}function I(l,c,_,R){if(c.byteLength,_<0||c.byteLength<_)throw new RangeError("'offset' is out of bounds");if(c.byteLength<_+(R||0))throw new RangeError("'length' is out of bounds");return _===void 0&&R===void 0?c=new Uint8Array(c):R===void 0?c=new Uint8Array(c,_):c=new Uint8Array(c,_,R),h.TYPED_ARRAY_SUPPORT?(l=c,l.__proto__=h.prototype):l=L(l,c),l}function $(l,c){if(h.isBuffer(c)){var _=H(c.length)|0;return l=v(l,_),l.length===0||c.copy(l,0,0,_),l}if(c){if(typeof ArrayBuffer<"u"&&c.buffer instanceof ArrayBuffer||"length"in c)return typeof c.length!="number"||Se(c.length)?v(l,0):L(l,c);if(c.type==="Buffer"&&s(c.data))return L(l,c.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function H(l){if(l>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return l|0}function oe(l){return+l!=l&&(l=0),h.alloc(+l)}h.isBuffer=function(l){return!!(l!=null&&l._isBuffer)},h.compare=function(l,c){if(!h.isBuffer(l)||!h.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(l===c)return 0;for(var _=l.length,R=c.length,U=0,te=Math.min(_,R);U<te;++U)if(l[U]!==c[U]){_=l[U],R=c[U];break}return _<R?-1:R<_?1:0},h.isEncoding=function(l){switch(String(l).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(l,c){if(!s(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return h.alloc(0);var _;if(c===void 0)for(c=0,_=0;_<l.length;++_)c+=l[_].length;var R=h.allocUnsafe(c),U=0;for(_=0;_<l.length;++_){var te=l[_];if(!h.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(R,U),U+=te.length}return R};function le(l,c){if(h.isBuffer(l))return l.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(l)||l instanceof ArrayBuffer))return l.byteLength;typeof l!="string"&&(l=""+l);var _=l.length;if(_===0)return 0;for(var R=!1;;)switch(c){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return B(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return V(l).length;default:if(R)return B(l).length;c=(""+c).toLowerCase(),R=!0}}h.byteLength=le;function se(l,c,_){var R=!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(l||(l="utf8");;)switch(l){case"hex":return w(this,c,_);case"utf8":case"utf-8":return k(this,c,_);case"ascii":return p(this,c,_);case"latin1":case"binary":return d(this,c,_);case"base64":return Oe(this,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f(this,c,_);default:if(R)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),R=!0}}h.prototype._isBuffer=!0;function ce(l,c,_){var R=l[c];l[c]=l[_],l[_]=R}h.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var c=0;c<l;c+=2)ce(this,c,c+1);return this},h.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var c=0;c<l;c+=4)ce(this,c,c+3),ce(this,c+1,c+2);return this},h.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var c=0;c<l;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 l=this.length|0;return l===0?"":arguments.length===0?k(this,0,l):se.apply(this,arguments)},h.prototype.equals=function(l){if(!h.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:h.compare(this,l)===0},h.prototype.inspect=function(){var l="",c=i.INSPECT_MAX_BYTES;return this.length>0&&(l=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(l+=" ... ")),"<Buffer "+l+">"},h.prototype.compare=function(l,c,_,R,U){if(!h.isBuffer(l))throw new TypeError("Argument must be a Buffer");if(c===void 0&&(c=0),_===void 0&&(_=l?l.length:0),R===void 0&&(R=0),U===void 0&&(U=this.length),c<0||_>l.length||R<0||U>this.length)throw new RangeError("out of range index");if(R>=U&&c>=_)return 0;if(R>=U)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,R>>>=0,U>>>=0,this===l)return 0;for(var te=U-R,Ae=_-c,Ce=Math.min(te,Ae),Pe=this.slice(R,U),me=l.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(l,c,_,R,U){if(l.length===0)return-1;if(typeof _=="string"?(R=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,isNaN(_)&&(_=U?0:l.length-1),_<0&&(_=l.length+_),_>=l.length){if(U)return-1;_=l.length-1}else if(_<0)if(U)_=0;else return-1;if(typeof c=="string"&&(c=h.from(c,R)),h.isBuffer(c))return c.length===0?-1:ne(l,c,_,R,U);if(typeof c=="number")return c=c&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(l,c,_):Uint8Array.prototype.lastIndexOf.call(l,c,_):ne(l,[c],_,R,U);throw new TypeError("val must be string, number or Buffer")}function ne(l,c,_,R,U){var te=1,Ae=l.length,Ce=c.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(l.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(l,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(l,me+ke)!==Pe(c,ke)){Ie=!1;break}if(Ie)return me}return-1}h.prototype.includes=function(l,c,_){return this.indexOf(l,c,_)!==-1},h.prototype.indexOf=function(l,c,_){return Q(this,l,c,_,!0)},h.prototype.lastIndexOf=function(l,c,_){return Q(this,l,c,_,!1)};function J(l,c,_,R){_=Number(_)||0;var U=l.length-_;R?(R=Number(R),R>U&&(R=U)):R=U;var te=c.length;if(te%2!==0)throw new TypeError("Invalid hex string");R>te/2&&(R=te/2);for(var Ae=0;Ae<R;++Ae){var Ce=parseInt(c.substr(Ae*2,2),16);if(isNaN(Ce))return Ae;l[_+Ae]=Ce}return Ae}function K(l,c,_,R){return ee(B(c,l.length-_),l,_,R)}function de(l,c,_,R){return ee(Z(c),l,_,R)}function he(l,c,_,R){return de(l,c,_,R)}function ae(l,c,_,R){return ee(V(c),l,_,R)}function De(l,c,_,R){return ee(W(c,l.length-_),l,_,R)}h.prototype.write=function(l,c,_,R){if(c===void 0)R="utf8",_=this.length,c=0;else if(_===void 0&&typeof c=="string")R=c,_=this.length,c=0;else if(isFinite(c))c=c|0,isFinite(_)?(_=_|0,R===void 0&&(R="utf8")):(R=_,_=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),l.length>0&&(_<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");for(var te=!1;;)switch(R){case"hex":return J(this,l,c,_);case"utf8":case"utf-8":return K(this,l,c,_);case"ascii":return de(this,l,c,_);case"latin1":case"binary":return he(this,l,c,_);case"base64":return ae(this,l,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,l,c,_);default:if(te)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),te=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(l,c,_){return c===0&&_===l.length?n.fromByteArray(l):n.fromByteArray(l.slice(c,_))}function k(l,c,_){_=Math.min(l.length,_);for(var R=[],U=c;U<_;){var te=l[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=l[U+1],(Pe&192)===128&&(Ie=(te&31)<<6|Pe&63,Ie>127&&(Ae=Ie));break;case 3:Pe=l[U+1],me=l[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=l[U+1],me=l[U+2],Re=l[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,R.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),R.push(Ae),U+=Ce}return A(R)}var T=4096;function A(l){var c=l.length;if(c<=T)return String.fromCharCode.apply(String,l);for(var _="",R=0;R<c;)_+=String.fromCharCode.apply(String,l.slice(R,R+=T));return _}function p(l,c,_){var R="";_=Math.min(l.length,_);for(var U=c;U<_;++U)R+=String.fromCharCode(l[U]&127);return R}function d(l,c,_){var R="";_=Math.min(l.length,_);for(var U=c;U<_;++U)R+=String.fromCharCode(l[U]);return R}function w(l,c,_){var R=l.length;(!c||c<0)&&(c=0),(!_||_<0||_>R)&&(_=R);for(var U="",te=c;te<_;++te)U+=ve(l[te]);return U}function f(l,c,_){for(var R=l.slice(c,_),U="",te=0;te<R.length;te+=2)U+=String.fromCharCode(R[te]+R[te+1]*256);return U}h.prototype.slice=function(l,c){var _=this.length;l=~~l,c=c===void 0?_:~~c,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),c<0?(c+=_,c<0&&(c=0)):c>_&&(c=_),c<l&&(c=l);var R;if(h.TYPED_ARRAY_SUPPORT)R=this.subarray(l,c),R.__proto__=h.prototype;else{var U=c-l;R=new h(U,void 0);for(var te=0;te<U;++te)R[te]=this[te+l]}return R};function m(l,c,_){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+c>_)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=this[l],U=1,te=0;++te<c&&(U*=256);)R+=this[l+te]*U;return R},h.prototype.readUIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=this[l+--c],U=1;c>0&&(U*=256);)R+=this[l+--c]*U;return R},h.prototype.readUInt8=function(l,c){return c||m(l,1,this.length),this[l]},h.prototype.readUInt16LE=function(l,c){return c||m(l,2,this.length),this[l]|this[l+1]<<8},h.prototype.readUInt16BE=function(l,c){return c||m(l,2,this.length),this[l]<<8|this[l+1]},h.prototype.readUInt32LE=function(l,c){return c||m(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},h.prototype.readUInt32BE=function(l,c){return c||m(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},h.prototype.readIntLE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=this[l],U=1,te=0;++te<c&&(U*=256);)R+=this[l+te]*U;return U*=128,R>=U&&(R-=Math.pow(2,8*c)),R},h.prototype.readIntBE=function(l,c,_){l=l|0,c=c|0,_||m(l,c,this.length);for(var R=c,U=1,te=this[l+--R];R>0&&(U*=256);)te+=this[l+--R]*U;return U*=128,te>=U&&(te-=Math.pow(2,8*c)),te},h.prototype.readInt8=function(l,c){return c||m(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},h.prototype.readInt16LE=function(l,c){c||m(l,2,this.length);var _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},h.prototype.readInt16BE=function(l,c){c||m(l,2,this.length);var _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},h.prototype.readInt32LE=function(l,c){return c||m(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},h.prototype.readInt32BE=function(l,c){return c||m(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},h.prototype.readFloatLE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!0,23,4)},h.prototype.readFloatBE=function(l,c){return c||m(l,4,this.length),r.read(this,l,!1,23,4)},h.prototype.readDoubleLE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!0,52,8)},h.prototype.readDoubleBE=function(l,c){return c||m(l,8,this.length),r.read(this,l,!1,52,8)};function S(l,c,_,R,U,te){if(!h.isBuffer(l))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(_+R>l.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function(l,c,_,R){if(l=+l,c=c|0,_=_|0,!R){var U=Math.pow(2,8*_)-1;S(this,l,c,_,U,0)}var te=1,Ae=0;for(this[c]=l&255;++Ae<_&&(te*=256);)this[c+Ae]=l/te&255;return c+_},h.prototype.writeUIntBE=function(l,c,_,R){if(l=+l,c=c|0,_=_|0,!R){var U=Math.pow(2,8*_)-1;S(this,l,c,_,U,0)}var te=_-1,Ae=1;for(this[c+te]=l&255;--te>=0&&(Ae*=256);)this[c+te]=l/Ae&255;return c+_},h.prototype.writeUInt8=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,1,255,0),h.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[c]=l&255,c+1};function Y(l,c,_,R){c<0&&(c=65535+c+1);for(var U=0,te=Math.min(l.length-_,2);U<te;++U)l[_+U]=(c&255<<8*(R?U:1-U))>>>(R?U:1-U)*8}h.prototype.writeUInt16LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):Y(this,l,c,!0),c+2},h.prototype.writeUInt16BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):Y(this,l,c,!1),c+2};function G(l,c,_,R){c<0&&(c=4294967295+c+1);for(var U=0,te=Math.min(l.length-_,4);U<te;++U)l[_+U]=c>>>(R?U:3-U)*8&255}h.prototype.writeUInt32LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255):G(this,l,c,!0),c+4},h.prototype.writeUInt32BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4},h.prototype.writeIntLE=function(l,c,_,R){if(l=+l,c=c|0,!R){var U=Math.pow(2,8*_-1);S(this,l,c,_,U-1,-U)}var te=0,Ae=1,Ce=0;for(this[c]=l&255;++te<_&&(Ae*=256);)l<0&&Ce===0&&this[c+te-1]!==0&&(Ce=1),this[c+te]=(l/Ae>>0)-Ce&255;return c+_},h.prototype.writeIntBE=function(l,c,_,R){if(l=+l,c=c|0,!R){var U=Math.pow(2,8*_-1);S(this,l,c,_,U-1,-U)}var te=_-1,Ae=1,Ce=0;for(this[c+te]=l&255;--te>=0&&(Ae*=256);)l<0&&Ce===0&&this[c+te+1]!==0&&(Ce=1),this[c+te]=(l/Ae>>0)-Ce&255;return c+_},h.prototype.writeInt8=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,1,127,-128),h.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[c]=l&255,c+1},h.prototype.writeInt16LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):Y(this,l,c,!0),c+2},h.prototype.writeInt16BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):Y(this,l,c,!1),c+2},h.prototype.writeInt32LE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24):G(this,l,c,!0),c+4},h.prototype.writeInt32BE=function(l,c,_){return l=+l,c=c|0,_||S(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),h.TYPED_ARRAY_SUPPORT?(this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255):G(this,l,c,!1),c+4};function ie(l,c,_,R,U,te){if(_+R>l.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ue(l,c,_,R,U){return U||ie(l,c,_,4),r.write(l,c,_,R,23,4),_+4}h.prototype.writeFloatLE=function(l,c,_){return ue(this,l,c,!0,_)},h.prototype.writeFloatBE=function(l,c,_){return ue(this,l,c,!1,_)};function we(l,c,_,R,U){return U||ie(l,c,_,8),r.write(l,c,_,R,52,8),_+8}h.prototype.writeDoubleLE=function(l,c,_){return we(this,l,c,!0,_)},h.prototype.writeDoubleBE=function(l,c,_){return we(this,l,c,!1,_)},h.prototype.copy=function(l,c,_,R){if(_||(_=0),!R&&R!==0&&(R=this.length),c>=l.length&&(c=l.length),c||(c=0),R>0&&R<_&&(R=_),R===_||l.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(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),l.length-c<R-_&&(R=l.length-c+_);var U=R-_,te;if(this===l&&_<c&&c<R)for(te=U-1;te>=0;--te)l[te+c]=this[te+_];else if(U<1e3||!h.TYPED_ARRAY_SUPPORT)for(te=0;te<U;++te)l[te+c]=this[te+_];else Uint8Array.prototype.set.call(l,this.subarray(_,_+U),c);return U},h.prototype.fill=function(l,c,_,R){if(typeof l=="string"){if(typeof c=="string"?(R=c,c=0,_=this.length):typeof _=="string"&&(R=_,_=this.length),l.length===1){var U=l.charCodeAt(0);U<256&&(l=U)}if(R!==void 0&&typeof R!="string")throw new TypeError("encoding must be a string");if(typeof R=="string"&&!h.isEncoding(R))throw new TypeError("Unknown encoding: "+R)}else typeof l=="number"&&(l=l&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,l||(l=0);var te;if(typeof l=="number")for(te=c;te<_;++te)this[te]=l;else{var Ae=h.isBuffer(l)?l:B(new h(l,R).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(l){if(l=_e(l).replace(X,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function _e(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function ve(l){return l<16?"0"+l.toString(16):l.toString(16)}function B(l,c){c=c||1/0;for(var _,R=l.length,U=null,te=[],Ae=0;Ae<R;++Ae){if(_=l.charCodeAt(Ae),_>55295&&_<57344){if(!U){if(_>56319){(c-=3)>-1&&te.push(239,191,189);continue}else if(Ae+1===R){(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(l){for(var c=[],_=0;_<l.length;++_)c.push(l.charCodeAt(_)&255);return c}function W(l,c){for(var _,R,U,te=[],Ae=0;Ae<l.length&&!((c-=2)<0);++Ae)_=l.charCodeAt(Ae),R=_>>8,U=_%256,te.push(U),te.push(R);return te}function V(l){return n.toByteArray(be(l))}function ee(l,c,_,R){for(var U=0;U<R&&!(U+_>=c.length||U>=l.length);++U)c[U+_]=l[U];return U}function Se(l){return l!==l}}(Pl)),Pl}ed();var vr;if(typeof window<"u"&&window.crypto&&(vr=window.crypto),!vr&&typeof window<"u"&&window.msCrypto&&(vr=window.msCrypto),!vr&&typeof global<"u"&&global.crypto&&(vr=global.crypto),!vr&&typeof require=="function")try{vr=require("crypto")}catch{}var Nl={};/*! *****************************************************************************
|
|
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 hs=function(i,n){return hs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var u in s)s.hasOwnProperty(u)&&(r[u]=s[u])},hs(i,n)};function td(i,n){hs(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ds=function(){return ds=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(i[u]=n[u])}return i},ds.apply(this,arguments)};function nd(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 u=0,s=Object.getOwnPropertySymbols(i);u<s.length;u++)n.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(i,s[u])&&(r[s[u]]=i[s[u]]);return r}function rd(i,n,r,s){var u=arguments.length,g=u<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 f=i.length-1;f>=0;f--)(m=i[f])&&(g=(u<3?m(g):u>3?m(n,r,g):m(n,r))||g);return u>3&&g&&Object.defineProperty(n,r,g),g}function id(i,n){return function(r,s){n(r,s,i)}}function od(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function sd(i,n,r,s){function u(g){return g instanceof r?g:new r(function(m){m(g)})}return new(r||(r=Promise))(function(g,m){function f(E){try{A(s.next(E))}catch(L){m(L)}}function C(E){try{A(s.throw(E))}catch(L){m(L)}}function A(E){E.done?g(E.value):u(E.value).then(f,C)}A((s=s.apply(i,n||[])).next())})}function ad(i,n){var r={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},s,u,g,m;return m={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function f(A){return function(E){return C([A,E])}}function C(A){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,u&&(g=A[0]&2?u.return:A[0]?u.throw||((g=u.return)&&g.call(u),0):u.next)&&!(g=g.call(u,A[1])).done)return g;switch(u=0,g&&(A=[A[0]&2,g.value]),A[0]){case 0:case 1:g=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,u=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(g=r.trys,!(g=g.length>0&&g[g.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!g||A[1]>g[0]&&A[1]<g[3])){r.label=A[1];break}if(A[0]===6&&r.label<g[1]){r.label=g[1],g=A;break}if(g&&r.label<g[2]){r.label=g[2],r.ops.push(A);break}g[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(i,r)}catch(E){A=[6,E],u=0}finally{s=g=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}}function ld(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function ud(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function ps(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 Il(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),u,g=[],m;try{for(;(n===void 0||n-- >0)&&!(u=s.next()).done;)g.push(u.value)}catch(f){m={error:f}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(m)throw m.error}}return g}function cd(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Il(arguments[n]));return i}function fd(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),u=0,n=0;n<r;n++)for(var g=arguments[n],m=0,f=g.length;m<f;m++,u++)s[u]=g[m];return s}function ii(i){return this instanceof ii?(this.v=i,this):new ii(i)}function hd(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),u,g=[];return u={},m("next"),m("throw"),m("return"),u[Symbol.asyncIterator]=function(){return this},u;function m(M){s[M]&&(u[M]=function(k){return new Promise(function(I,B){g.push([M,k,I,B])>1||f(M,k)})})}function f(M,k){try{C(s[M](k))}catch(I){L(g[0][3],I)}}function C(M){M.value instanceof ii?Promise.resolve(M.value.v).then(A,E):L(g[0][2],M)}function A(M){f("next",M)}function E(M){f("throw",M)}function L(M,k){M(k),g.shift(),g.length&&f(g[0][0],g[0][1])}}function dd(i){var n,r;return n={},s("next"),s("throw",function(u){throw u}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(u,g){n[u]=i[u]?function(m){return(r=!r)?{value:ii(i[u](m)),done:u==="return"}:g?g(m):m}:g}}function pd(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 ps=="function"?ps(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(f,C){m=i[g](m),u(f,C,m.done,m.value)})}}function u(g,m,f,C){Promise.resolve(C).then(function(A){g({value:A,done:f})},m)}}function gd(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function vd(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 md(i){return i&&i.__esModule?i:{default:i}}function yd(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function _d(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 wd=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ds},__asyncDelegator:dd,__asyncGenerator:hd,__asyncValues:pd,__await:ii,__awaiter:sd,__classPrivateFieldGet:yd,__classPrivateFieldSet:_d,__createBinding:ld,__decorate:rd,__exportStar:ud,__extends:td,__generator:ad,__importDefault:md,__importStar:vd,__makeTemplateObject:gd,__metadata:od,__param:id,__read:Il,__rest:nd,__spread:cd,__spreadArrays:fd,__values:ps},Symbol.toStringTag,{value:"Module"})),$l=ss(wd);var oi={},nn={},Bl;function jl(){return Bl||(Bl=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.MAX_HASHABLE_LENGTH=nn.INIT=nn.KEY=nn.DIGEST_LENGTH=nn.BLOCK_SIZE=void 0,nn.BLOCK_SIZE=64,nn.DIGEST_LENGTH=32,nn.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]),nn.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],nn.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),nn}var si={},Yl;function bd(){if(Yl)return si;Yl=1,Object.defineProperty(si,"__esModule",{value:!0}),si.RawSha256=void 0;var i=jl(),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 u=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[u++],g--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,u=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(u.setUint8(this.bufferLength++,128),g%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var m=this.bufferLength;m<i.BLOCK_SIZE;m++)u.setUint8(m,0);this.hashBuffer(),this.bufferLength=0}for(var m=this.bufferLength;m<i.BLOCK_SIZE-8;m++)u.setUint8(m,0);u.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),u.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var f=new Uint8Array(i.DIGEST_LENGTH),m=0;m<8;m++)f[m*4]=this.state[m]>>>24&255,f[m*4+1]=this.state[m]>>>16&255,f[m*4+2]=this.state[m]>>>8&255,f[m*4+3]=this.state[m]>>>0&255;return f},r.prototype.hashBuffer=function(){for(var s=this,u=s.buffer,g=s.state,m=g[0],f=g[1],C=g[2],A=g[3],E=g[4],L=g[5],M=g[6],k=g[7],I=0;I<i.BLOCK_SIZE;I++){if(I<16)this.temp[I]=(u[I*4]&255)<<24|(u[I*4+1]&255)<<16|(u[I*4+2]&255)<<8|u[I*4+3]&255;else{var B=this.temp[I-2],G=(B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10;B=this.temp[I-15];var ie=(B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3;this.temp[I]=(G+this.temp[I-7]|0)+(ie+this.temp[I-16]|0)}var se=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&L^~E&M)|0)+(k+(i.KEY[I]+this.temp[I]|0)|0)|0,ae=((m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+(m&f^m&C^f&C)|0;k=M,M=L,L=E,E=A+se|0,A=C,C=f,f=m,m=se+ae|0}g[0]+=m,g[1]+=f,g[2]+=C,g[3]+=A,g[4]+=E,g[5]+=L,g[6]+=M,g[7]+=k},r}();return si.RawSha256=n,si}var Fl={},ai={};const xd=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const u=i.charCodeAt(r);if(u<128)n.push(u);else if(u<2048)n.push(u>>6|192,u&63|128);else if(r+1<i.length&&(u&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const g=65536+((u&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(u>>12|224,u>>6&63|128,u&63|128)}return Uint8Array.from(n)},Cd=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const u=i[r];if(u<128)n+=String.fromCharCode(u);else if(192<=u&&u<224){const g=i[++r];n+=String.fromCharCode((u&31)<<6|g&63)}else if(240<=u&&u<365){const g="%"+[u,i[++r],i[++r],i[++r]].map(m=>m.toString(16)).join("%");n+=decodeURIComponent(g)}else n+=String.fromCharCode((u&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function Sd(i){return new TextEncoder().encode(i)}function Dd(i){return new TextDecoder("utf-8").decode(i)}const Ad=i=>typeof TextEncoder=="function"?Sd(i):xd(i),Od=i=>typeof TextDecoder=="function"?Dd(i):Cd(i),Ed=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Ad,toUtf8:Od},Symbol.toStringTag,{value:"Module"})),Td=ss(Ed);var Wl;function Pd(){if(Wl)return ai;Wl=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.convertToBuffer=void 0;var i=Td,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 ai.convertToBuffer=r,ai}var li={},Ul;function Md(){if(Ul)return li;Ul=1,Object.defineProperty(li,"__esModule",{value:!0}),li.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return li.isEmptyData=i,li}var ui={},zl;function Rd(){if(zl)return ui;zl=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return ui.numToUint8=i,ui}var ci={},ql;function kd(){if(ql)return ci;ql=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.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 ci.uint32ArrayFrom=i,ci}var Hl;function Ld(){return Hl||(Hl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Pd();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Md();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Rd();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var u=kd();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return u.uint32ArrayFrom}})}(Fl)),Fl}var Gl;function Nd(){if(Gl)return oi;Gl=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.Sha256=void 0;var i=$l,n=jl(),r=bd(),s=Ld(),u=function(){function m(f){if(this.hash=new r.RawSha256,f){this.outer=new r.RawSha256;var C=g(f),A=new Uint8Array(n.BLOCK_SIZE);A.set(C);for(var E=0;E<n.BLOCK_SIZE;E++)C[E]^=54,A[E]^=92;this.hash.update(C),this.outer.update(A);for(var E=0;E<C.byteLength;E++)C[E]=0}}return m.prototype.update=function(f){if(!((0,s.isEmptyData)(f)||this.error))try{this.hash.update((0,s.convertToBuffer)(f))}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(f){return[2,this.digestSync()]})})},m}();oi.Sha256=u;function g(m){var f=(0,s.convertToBuffer)(m);if(f.byteLength>n.BLOCK_SIZE){var C=new r.RawSha256;C.update(f),f=C.digest()}var A=new Uint8Array(n.BLOCK_SIZE);return A.set(f),A}return oi}var Vl;function Id(){return Vl||(Vl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=$l;(0,n.__exportStar)(Nd(),i)}(Nl)),Nl}Id();function je(i,n){i!=null&&this.fromString(i,n)}function Rt(){return new je(null)}var Gn,$d=0xdeadbeefcafe,Kl=($d&16777215)==15715070;function Bd(i,n,r,s,u,g){for(;--g>=0;){var m=n*this[i++]+r[s]+u;u=Math.floor(m/67108864),r[s++]=m&67108863}return u}function jd(i,n,r,s,u,g){for(var m=n&32767,f=n>>15;--g>=0;){var C=this[i]&32767,A=this[i++]>>15,E=f*C+A*m;C=m*C+((E&32767)<<15)+r[s]+(u&1073741823),u=(C>>>30)+(E>>>15)+f*A+(u>>>30),r[s++]=C&1073741823}return u}function Yd(i,n,r,s,u,g){for(var m=n&16383,f=n>>14;--g>=0;){var C=this[i]&16383,A=this[i++]>>14,E=f*C+A*m;C=m*C+((E&16383)<<14)+r[s]+u,u=(C>>28)+(E>>14)+f*A,r[s++]=C&268435455}return u}var Zl=typeof navigator<"u";Zl&&Kl&&navigator.appName=="Microsoft Internet Explorer"?(je.prototype.am=jd,Gn=30):Zl&&Kl&&navigator.appName!="Netscape"?(je.prototype.am=Bd,Gn=26):(je.prototype.am=Yd,Gn=28),je.prototype.DB=Gn,je.prototype.DM=(1<<Gn)-1,je.prototype.DV=1<<Gn;var gs=52;je.prototype.FV=Math.pow(2,gs),je.prototype.F1=gs-Gn,je.prototype.F2=2*Gn-gs;var Fd="0123456789abcdefghijklmnopqrstuvwxyz",Yi=new Array,Dr,rn;for(Dr=48,rn=0;rn<=9;++rn)Yi[Dr++]=rn;for(Dr=97,rn=10;rn<36;++rn)Yi[Dr++]=rn;for(Dr=65,rn=10;rn<36;++rn)Yi[Dr++]=rn;function Ql(i){return Fd.charAt(i)}function Wd(i,n){var r=Yi[i.charCodeAt(n)];return r??-1}function Ud(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function zd(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 vs(i){var n=Rt();return n.fromInt(i),n}function qd(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,u=!1,g=0;--s>=0;){var m=Wd(i,s);if(m<0){i.charAt(s)=="-"&&(u=!0);continue}u=!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(),u&&je.ZERO.subTo(this,this)}function Hd(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Gd(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,u=!1,g="",m=this.t,f=this.DB-m*this.DB%n;if(m-- >0)for(f<this.DB&&(s=this[m]>>f)>0&&(u=!0,g=Ql(s));m>=0;)f<n?(s=(this[m]&(1<<f)-1)<<n-f,s|=this[--m]>>(f+=this.DB-n)):(s=this[m]>>(f-=n)&r,f<=0&&(f+=this.DB,--m)),s>0&&(u=!0),u&&(g+=Ql(s));return u?g:"0"}function Vd(){var i=Rt();return je.ZERO.subTo(this,i),i}function Kd(){return this.s<0?this.negate():this}function Zd(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 ms(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 Qd(){return this.t<=0?0:this.DB*(this.t-1)+ms(this[this.t-1]^this.s&this.DM)}function Jd(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 Xd(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 ep(i,n){var r=i%this.DB,s=this.DB-r,u=(1<<s)-1,g=Math.floor(i/this.DB),m=this.s<<r&this.DM,f;for(f=this.t-1;f>=0;--f)n[f+g+1]=this[f]>>s|m,m=(this[f]&u)<<r;for(f=g-1;f>=0;--f)n[f]=0;n[g]=m,n.t=this.t+g+1,n.s=this.s,n.clamp()}function tp(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,u=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)<<u,n[m-r]=this[m]>>s;s>0&&(n[this.t-r-1]|=(this.s&g)<<u),n.t=this.t-r,n.clamp()}function np(i,n){for(var r=0,s=0,u=Math.min(i.t,this.t);r<u;)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 rp(i,n){var r=this.abs(),s=i.abs(),u=r.t;for(n.t=u+s.t;--u>=0;)n[u]=0;for(u=0;u<s.t;++u)n[u+r.t]=r.am(0,s[u],n,u,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&je.ZERO.subTo(n,n)}function ip(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 op(i,n,r){var s=i.abs();if(!(s.t<=0)){var u=this.abs();if(u.t<s.t){n?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Rt());var g=Rt(),m=this.s,f=i.s,C=this.DB-ms(s[s.t-1]);C>0?(s.lShiftTo(C,g),u.lShiftTo(C,r)):(s.copyTo(g),u.copyTo(r));var A=g.t,E=g[A-1];if(E!=0){var L=E*(1<<this.F1)+(A>1?g[A-2]>>this.F2:0),M=this.FV/L,k=(1<<this.F1)/L,I=1<<this.F2,B=r.t,G=B-A,ie=n??Rt();for(g.dlShiftTo(G,ie),r.compareTo(ie)>=0&&(r[r.t++]=1,r.subTo(ie,r)),je.ONE.dlShiftTo(A,ie),ie.subTo(g,g);g.t<A;)g[g.t++]=0;for(;--G>=0;){var se=r[--B]==E?this.DM:Math.floor(r[B]*M+(r[B-1]+I)*k);if((r[B]+=g.am(0,se,r,G,0,A))<se)for(g.dlShiftTo(G,ie),r.subTo(ie,r);r[B]<--se;)r.subTo(ie,r)}n!=null&&(r.drShiftTo(A,n),m!=f&&je.ZERO.subTo(n,n)),r.t=A,r.clamp(),C>0&&r.rShiftTo(C,r),m<0&&je.ZERO.subTo(r,r)}}}function sp(i){var n=Rt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(je.ZERO)>0&&i.subTo(n,n),n}function ap(){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 lp(i){return this.compareTo(i)==0}function up(i,n){for(var r=0,s=0,u=Math.min(i.t,this.t);r<u;)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 cp(i){var n=Rt();return this.addTo(i,n),n}function fp(i){var n=Rt();return this.subTo(i,n),n}function hp(i){var n=Rt();return this.multiplyTo(i,n),n}function dp(i){var n=Rt();return this.divRemTo(i,n,null),n}function Ar(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 pp(i){var n=Rt();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 gp(i){var n=Rt();return i.copyTo(n),this.reduce(n),n}function vp(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 mp(i,n){i.squareTo(n),this.reduce(n)}function yp(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Ar.prototype.convert=pp,Ar.prototype.revert=gp,Ar.prototype.reduce=vp,Ar.prototype.mulTo=yp,Ar.prototype.sqrTo=mp;function _p(i,n,r){var s=i.bitLength(),u,g=vs(1),m=new Ar(n);if(s<=0)return g;s<18?u=1:s<48?u=3:s<144?u=4:s<768?u=5:u=6;var f=new Array,C=3,A=u-1,E=(1<<u)-1;if(f[1]=m.convert(this),u>1){var L=Rt();for(m.sqrTo(f[1],L);C<=E;)f[C]=Rt(),m.mulTo(L,f[C-2],f[C]),C+=2}var M=i.t-1,k,I=!0,B=Rt(),G;for(s=ms(i[M])-1;M>=0;){for(s>=A?k=i[M]>>s-A&E:(k=(i[M]&(1<<s+1)-1)<<A-s,M>0&&(k|=i[M-1]>>this.DB+s-A)),C=u;(k&1)==0;)k>>=1,--C;if((s-=C)<0&&(s+=this.DB,--M),I)f[k].copyTo(g),I=!1;else{for(;C>1;)m.sqrTo(g,B),m.sqrTo(B,g),C-=2;C>0?m.sqrTo(g,B):(G=g,g=B,B=G),m.mulTo(B,f[k],g)}for(;M>=0&&(i[M]&1<<s)==0;)m.sqrTo(g,B),G=g,g=B,B=G,--s<0&&(s=this.DB-1,--M)}var ie=m.revert(g);return r(null,ie),ie}je.prototype.copyTo=Ud,je.prototype.fromInt=zd,je.prototype.fromString=qd,je.prototype.clamp=Hd,je.prototype.dlShiftTo=Jd,je.prototype.drShiftTo=Xd,je.prototype.lShiftTo=ep,je.prototype.rShiftTo=tp,je.prototype.subTo=np,je.prototype.multiplyTo=rp,je.prototype.squareTo=ip,je.prototype.divRemTo=op,je.prototype.invDigit=ap,je.prototype.addTo=up,je.prototype.toString=Gd,je.prototype.negate=Vd,je.prototype.abs=Kd,je.prototype.compareTo=Zd,je.prototype.bitLength=Qd,je.prototype.mod=sp,je.prototype.equals=lp,je.prototype.add=cp,je.prototype.subtract=fp,je.prototype.multiply=hp,je.prototype.divide=dp,je.prototype.modPow=_p,je.ZERO=vs(0),je.ONE=vs(1);function wp(i,n){return n=n||{},new Promise(function(r,s){var u=new XMLHttpRequest,g=[],m=[],f={},C=function(){return{ok:(u.status/100|0)==2,statusText:u.statusText,status:u.status,url:u.responseURL,text:function(){return Promise.resolve(u.responseText)},json:function(){return Promise.resolve(u.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([u.response]))},clone:C,headers:{keys:function(){return g},entries:function(){return m},get:function(E){return f[E.toLowerCase()]},has:function(E){return E.toLowerCase()in f}}}};for(var A in u.open(n.method||"get",i,!0),u.onload=function(){u.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(E,L,M){g.push(L=L.toLowerCase()),m.push([L,M]),f[L]=f[L]?f[L]+","+M:M}),r(C())},u.onerror=s,u.withCredentials=n.credentials=="include",n.headers)u.setRequestHeader(A,n.headers[A]);u.send(n.body||null)})}const bp=Object.freeze(Object.defineProperty({__proto__:null,default:wp},Symbol.toStringTag,{value:"Module"})),Jl=ss(bp);var Xl,eu;function xp(){return eu||(eu=1,Xl=self.fetch||(self.fetch=Jl.default||Jl)),Xl}xp();/*!
|
|
104
|
+
***************************************************************************** */var gs=function(i,n){return gs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var u in s)s.hasOwnProperty(u)&&(r[u]=s[u])},gs(i,n)};function td(i,n){gs(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var vs=function(){return vs=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(i[u]=n[u])}return i},vs.apply(this,arguments)};function nd(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 u=0,s=Object.getOwnPropertySymbols(i);u<s.length;u++)n.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(i,s[u])&&(r[s[u]]=i[s[u]]);return r}function rd(i,n,r,s){var u=arguments.length,g=u<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,v;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--)(v=i[h])&&(g=(u<3?v(g):u>3?v(n,r,g):v(n,r))||g);return u>3&&g&&Object.defineProperty(n,r,g),g}function id(i,n){return function(r,s){n(r,s,i)}}function od(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function sd(i,n,r,s){function u(g){return g instanceof r?g:new r(function(v){v(g)})}return new(r||(r=Promise))(function(g,v){function h(E){try{D(s.next(E))}catch(N){v(N)}}function C(E){try{D(s.throw(E))}catch(N){v(N)}}function D(E){E.done?g(E.value):u(E.value).then(h,C)}D((s=s.apply(i,n||[])).next())})}function ad(i,n){var r={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},s,u,g,v;return v={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;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,u&&(g=D[0]&2?u.return:D[0]?u.throw||((g=u.return)&&g.call(u),0):u.next)&&!(g=g.call(u,D[1])).done)return g;switch(u=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++,u=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],u=0}finally{s=g=0}if(D[0]&5)throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}}function ld(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function ud(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function ms(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 Il(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),u,g=[],v;try{for(;(n===void 0||n-- >0)&&!(u=s.next()).done;)g.push(u.value)}catch(h){v={error:h}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(v)throw v.error}}return g}function cd(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Il(arguments[n]));return i}function fd(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),u=0,n=0;n<r;n++)for(var g=arguments[n],v=0,h=g.length;v<h;v++,u++)s[u]=g[v];return s}function ai(i){return this instanceof ai?(this.v=i,this):new ai(i)}function hd(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),u,g=[];return u={},v("next"),v("throw"),v("return"),u[Symbol.asyncIterator]=function(){return this},u;function v(M){s[M]&&(u[M]=function(L){return new Promise(function(I,$){g.push([M,L,I,$])>1||h(M,L)})})}function h(M,L){try{C(s[M](L))}catch(I){N(g[0][3],I)}}function C(M){M.value instanceof ai?Promise.resolve(M.value.v).then(D,E):N(g[0][2],M)}function D(M){h("next",M)}function E(M){h("throw",M)}function N(M,L){M(L),g.shift(),g.length&&h(g[0][0],g[0][1])}}function dd(i){var n,r;return n={},s("next"),s("throw",function(u){throw u}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(u,g){n[u]=i[u]?function(v){return(r=!r)?{value:ai(i[u](v)),done:u==="return"}:g?g(v):v}:g}}function pd(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 ms=="function"?ms(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(v){return new Promise(function(h,C){v=i[g](v),u(h,C,v.done,v.value)})}}function u(g,v,h,C){Promise.resolve(C).then(function(D){g({value:D,done:h})},v)}}function gd(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function vd(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 md(i){return i&&i.__esModule?i:{default:i}}function yd(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function _d(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 wd=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return vs},__asyncDelegator:dd,__asyncGenerator:hd,__asyncValues:pd,__await:ai,__awaiter:sd,__classPrivateFieldGet:yd,__classPrivateFieldSet:_d,__createBinding:ld,__decorate:rd,__exportStar:ud,__extends:td,__generator:ad,__importDefault:md,__importStar:vd,__makeTemplateObject:gd,__metadata:od,__param:id,__read:Il,__rest:nd,__spread:cd,__spreadArrays:fd,__values:ms},Symbol.toStringTag,{value:"Module"})),$l=us(wd);var li={},rn={},Bl;function jl(){return Bl||(Bl=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.MAX_HASHABLE_LENGTH=rn.INIT=rn.KEY=rn.DIGEST_LENGTH=rn.BLOCK_SIZE=void 0,rn.BLOCK_SIZE=64,rn.DIGEST_LENGTH=32,rn.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]),rn.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],rn.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),rn}var ui={},Yl;function bd(){if(Yl)return ui;Yl=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.RawSha256=void 0;var i=jl(),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 u=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[u++],g--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,u=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(u.setUint8(this.bufferLength++,128),g%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var v=this.bufferLength;v<i.BLOCK_SIZE;v++)u.setUint8(v,0);this.hashBuffer(),this.bufferLength=0}for(var v=this.bufferLength;v<i.BLOCK_SIZE-8;v++)u.setUint8(v,0);u.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),u.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var h=new Uint8Array(i.DIGEST_LENGTH),v=0;v<8;v++)h[v*4]=this.state[v]>>>24&255,h[v*4+1]=this.state[v]>>>16&255,h[v*4+2]=this.state[v]>>>8&255,h[v*4+3]=this.state[v]>>>0&255;return h},r.prototype.hashBuffer=function(){for(var s=this,u=s.buffer,g=s.state,v=g[0],h=g[1],C=g[2],D=g[3],E=g[4],N=g[5],M=g[6],L=g[7],I=0;I<i.BLOCK_SIZE;I++){if(I<16)this.temp[I]=(u[I*4]&255)<<24|(u[I*4+1]&255)<<16|(u[I*4+2]&255)<<8|u[I*4+3]&255;else{var $=this.temp[I-2],H=($>>>17|$<<15)^($>>>19|$<<13)^$>>>10;$=this.temp[I-15];var oe=($>>>7|$<<25)^($>>>18|$<<14)^$>>>3;this.temp[I]=(H+this.temp[I-7]|0)+(oe+this.temp[I-16]|0)}var le=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&N^~E&M)|0)+(L+(i.KEY[I]+this.temp[I]|0)|0)|0,se=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&h^v&C^h&C)|0;L=M,M=N,N=E,E=D+le|0,D=C,C=h,h=v,v=le+se|0}g[0]+=v,g[1]+=h,g[2]+=C,g[3]+=D,g[4]+=E,g[5]+=N,g[6]+=M,g[7]+=L},r}();return ui.RawSha256=n,ui}var Fl={},ci={};const xd=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const u=i.charCodeAt(r);if(u<128)n.push(u);else if(u<2048)n.push(u>>6|192,u&63|128);else if(r+1<i.length&&(u&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const g=65536+((u&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(u>>12|224,u>>6&63|128,u&63|128)}return Uint8Array.from(n)},Cd=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const u=i[r];if(u<128)n+=String.fromCharCode(u);else if(192<=u&&u<224){const g=i[++r];n+=String.fromCharCode((u&31)<<6|g&63)}else if(240<=u&&u<365){const g="%"+[u,i[++r],i[++r],i[++r]].map(v=>v.toString(16)).join("%");n+=decodeURIComponent(g)}else n+=String.fromCharCode((u&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function Sd(i){return new TextEncoder().encode(i)}function Ad(i){return new TextDecoder("utf-8").decode(i)}const Dd=i=>typeof TextEncoder=="function"?Sd(i):xd(i),Od=i=>typeof TextDecoder=="function"?Ad(i):Cd(i),Ed=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Dd,toUtf8:Od},Symbol.toStringTag,{value:"Module"})),Td=us(Ed);var Wl;function Pd(){if(Wl)return ci;Wl=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.convertToBuffer=void 0;var i=Td,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 ci.convertToBuffer=r,ci}var fi={},Ul;function Md(){if(Ul)return fi;Ul=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return fi.isEmptyData=i,fi}var hi={},zl;function Rd(){if(zl)return hi;zl=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return hi.numToUint8=i,hi}var di={},ql;function kd(){if(ql)return di;ql=1,Object.defineProperty(di,"__esModule",{value:!0}),di.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 di.uint32ArrayFrom=i,di}var Hl;function Ld(){return Hl||(Hl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Pd();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Md();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Rd();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var u=kd();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return u.uint32ArrayFrom}})}(Fl)),Fl}var Gl;function Nd(){if(Gl)return li;Gl=1,Object.defineProperty(li,"__esModule",{value:!0}),li.Sha256=void 0;var i=$l,n=jl(),r=bd(),s=Ld(),u=function(){function v(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 v.prototype.update=function(h){if(!((0,s.isEmptyData)(h)||this.error))try{this.hash.update((0,s.convertToBuffer)(h))}catch(C){this.error=C}},v.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()},v.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},v}();li.Sha256=u;function g(v){var h=(0,s.convertToBuffer)(v);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 Vl;function Id(){return Vl||(Vl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=$l;(0,n.__exportStar)(Nd(),i)}(Nl)),Nl}Id();function je(i,n){i!=null&&this.fromString(i,n)}function Rt(){return new je(null)}var Xn,$d=0xdeadbeefcafe,Kl=($d&16777215)==15715070;function Bd(i,n,r,s,u,g){for(;--g>=0;){var v=n*this[i++]+r[s]+u;u=Math.floor(v/67108864),r[s++]=v&67108863}return u}function jd(i,n,r,s,u,g){for(var v=n&32767,h=n>>15;--g>=0;){var C=this[i]&32767,D=this[i++]>>15,E=h*C+D*v;C=v*C+((E&32767)<<15)+r[s]+(u&1073741823),u=(C>>>30)+(E>>>15)+h*D+(u>>>30),r[s++]=C&1073741823}return u}function Yd(i,n,r,s,u,g){for(var v=n&16383,h=n>>14;--g>=0;){var C=this[i]&16383,D=this[i++]>>14,E=h*C+D*v;C=v*C+((E&16383)<<14)+r[s]+u,u=(C>>28)+(E>>14)+h*D,r[s++]=C&268435455}return u}var Zl=typeof navigator<"u";Zl&&Kl&&navigator.appName=="Microsoft Internet Explorer"?(je.prototype.am=jd,Xn=30):Zl&&Kl&&navigator.appName!="Netscape"?(je.prototype.am=Bd,Xn=26):(je.prototype.am=Yd,Xn=28),je.prototype.DB=Xn,je.prototype.DM=(1<<Xn)-1,je.prototype.DV=1<<Xn;var ys=52;je.prototype.FV=Math.pow(2,ys),je.prototype.F1=ys-Xn,je.prototype.F2=2*Xn-ys;var Fd="0123456789abcdefghijklmnopqrstuvwxyz",Ui=new Array,Tr,on;for(Tr=48,on=0;on<=9;++on)Ui[Tr++]=on;for(Tr=97,on=10;on<36;++on)Ui[Tr++]=on;for(Tr=65,on=10;on<36;++on)Ui[Tr++]=on;function Ql(i){return Fd.charAt(i)}function Wd(i,n){var r=Ui[i.charCodeAt(n)];return r??-1}function Ud(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function zd(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 _s(i){var n=Rt();return n.fromInt(i),n}function qd(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,u=!1,g=0;--s>=0;){var v=Wd(i,s);if(v<0){i.charAt(s)=="-"&&(u=!0);continue}u=!1,g==0?this[this.t++]=v:g+r>this.DB?(this[this.t-1]|=(v&(1<<this.DB-g)-1)<<g,this[this.t++]=v>>this.DB-g):this[this.t-1]|=v<<g,g+=r,g>=this.DB&&(g-=this.DB)}this.clamp(),u&&je.ZERO.subTo(this,this)}function Hd(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Gd(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,u=!1,g="",v=this.t,h=this.DB-v*this.DB%n;if(v-- >0)for(h<this.DB&&(s=this[v]>>h)>0&&(u=!0,g=Ql(s));v>=0;)h<n?(s=(this[v]&(1<<h)-1)<<n-h,s|=this[--v]>>(h+=this.DB-n)):(s=this[v]>>(h-=n)&r,h<=0&&(h+=this.DB,--v)),s>0&&(u=!0),u&&(g+=Ql(s));return u?g:"0"}function Vd(){var i=Rt();return je.ZERO.subTo(this,i),i}function Kd(){return this.s<0?this.negate():this}function Zd(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 ws(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 Qd(){return this.t<=0?0:this.DB*(this.t-1)+ws(this[this.t-1]^this.s&this.DM)}function Jd(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 Xd(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 ep(i,n){var r=i%this.DB,s=this.DB-r,u=(1<<s)-1,g=Math.floor(i/this.DB),v=this.s<<r&this.DM,h;for(h=this.t-1;h>=0;--h)n[h+g+1]=this[h]>>s|v,v=(this[h]&u)<<r;for(h=g-1;h>=0;--h)n[h]=0;n[g]=v,n.t=this.t+g+1,n.s=this.s,n.clamp()}function tp(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,u=this.DB-s,g=(1<<s)-1;n[0]=this[r]>>s;for(var v=r+1;v<this.t;++v)n[v-r-1]|=(this[v]&g)<<u,n[v-r]=this[v]>>s;s>0&&(n[this.t-r-1]|=(this.s&g)<<u),n.t=this.t-r,n.clamp()}function np(i,n){for(var r=0,s=0,u=Math.min(i.t,this.t);r<u;)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 rp(i,n){var r=this.abs(),s=i.abs(),u=r.t;for(n.t=u+s.t;--u>=0;)n[u]=0;for(u=0;u<s.t;++u)n[u+r.t]=r.am(0,s[u],n,u,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&je.ZERO.subTo(n,n)}function ip(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 op(i,n,r){var s=i.abs();if(!(s.t<=0)){var u=this.abs();if(u.t<s.t){n?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Rt());var g=Rt(),v=this.s,h=i.s,C=this.DB-ws(s[s.t-1]);C>0?(s.lShiftTo(C,g),u.lShiftTo(C,r)):(s.copyTo(g),u.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),M=this.FV/N,L=(1<<this.F1)/N,I=1<<this.F2,$=r.t,H=$-D,oe=n??Rt();for(g.dlShiftTo(H,oe),r.compareTo(oe)>=0&&(r[r.t++]=1,r.subTo(oe,r)),je.ONE.dlShiftTo(D,oe),oe.subTo(g,g);g.t<D;)g[g.t++]=0;for(;--H>=0;){var le=r[--$]==E?this.DM:Math.floor(r[$]*M+(r[$-1]+I)*L);if((r[$]+=g.am(0,le,r,H,0,D))<le)for(g.dlShiftTo(H,oe),r.subTo(oe,r);r[$]<--le;)r.subTo(oe,r)}n!=null&&(r.drShiftTo(D,n),v!=h&&je.ZERO.subTo(n,n)),r.t=D,r.clamp(),C>0&&r.rShiftTo(C,r),v<0&&je.ZERO.subTo(r,r)}}}function sp(i){var n=Rt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(je.ZERO)>0&&i.subTo(n,n),n}function ap(){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 lp(i){return this.compareTo(i)==0}function up(i,n){for(var r=0,s=0,u=Math.min(i.t,this.t);r<u;)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 cp(i){var n=Rt();return this.addTo(i,n),n}function fp(i){var n=Rt();return this.subTo(i,n),n}function hp(i){var n=Rt();return this.multiplyTo(i,n),n}function dp(i){var n=Rt();return this.divRemTo(i,n,null),n}function Pr(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 pp(i){var n=Rt();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 gp(i){var n=Rt();return i.copyTo(n),this.reduce(n),n}function vp(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 mp(i,n){i.squareTo(n),this.reduce(n)}function yp(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Pr.prototype.convert=pp,Pr.prototype.revert=gp,Pr.prototype.reduce=vp,Pr.prototype.mulTo=yp,Pr.prototype.sqrTo=mp;function _p(i,n,r){var s=i.bitLength(),u,g=_s(1),v=new Pr(n);if(s<=0)return g;s<18?u=1:s<48?u=3:s<144?u=4:s<768?u=5:u=6;var h=new Array,C=3,D=u-1,E=(1<<u)-1;if(h[1]=v.convert(this),u>1){var N=Rt();for(v.sqrTo(h[1],N);C<=E;)h[C]=Rt(),v.mulTo(N,h[C-2],h[C]),C+=2}var M=i.t-1,L,I=!0,$=Rt(),H;for(s=ws(i[M])-1;M>=0;){for(s>=D?L=i[M]>>s-D&E:(L=(i[M]&(1<<s+1)-1)<<D-s,M>0&&(L|=i[M-1]>>this.DB+s-D)),C=u;(L&1)==0;)L>>=1,--C;if((s-=C)<0&&(s+=this.DB,--M),I)h[L].copyTo(g),I=!1;else{for(;C>1;)v.sqrTo(g,$),v.sqrTo($,g),C-=2;C>0?v.sqrTo(g,$):(H=g,g=$,$=H),v.mulTo($,h[L],g)}for(;M>=0&&(i[M]&1<<s)==0;)v.sqrTo(g,$),H=g,g=$,$=H,--s<0&&(s=this.DB-1,--M)}var oe=v.revert(g);return r(null,oe),oe}je.prototype.copyTo=Ud,je.prototype.fromInt=zd,je.prototype.fromString=qd,je.prototype.clamp=Hd,je.prototype.dlShiftTo=Jd,je.prototype.drShiftTo=Xd,je.prototype.lShiftTo=ep,je.prototype.rShiftTo=tp,je.prototype.subTo=np,je.prototype.multiplyTo=rp,je.prototype.squareTo=ip,je.prototype.divRemTo=op,je.prototype.invDigit=ap,je.prototype.addTo=up,je.prototype.toString=Gd,je.prototype.negate=Vd,je.prototype.abs=Kd,je.prototype.compareTo=Zd,je.prototype.bitLength=Qd,je.prototype.mod=sp,je.prototype.equals=lp,je.prototype.add=cp,je.prototype.subtract=fp,je.prototype.multiply=hp,je.prototype.divide=dp,je.prototype.modPow=_p,je.ZERO=_s(0),je.ONE=_s(1);function wp(i,n){return n=n||{},new Promise(function(r,s){var u=new XMLHttpRequest,g=[],v=[],h={},C=function(){return{ok:(u.status/100|0)==2,statusText:u.statusText,status:u.status,url:u.responseURL,text:function(){return Promise.resolve(u.responseText)},json:function(){return Promise.resolve(u.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([u.response]))},clone:C,headers:{keys:function(){return g},entries:function(){return v},get:function(E){return h[E.toLowerCase()]},has:function(E){return E.toLowerCase()in h}}}};for(var D in u.open(n.method||"get",i,!0),u.onload=function(){u.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(E,N,M){g.push(N=N.toLowerCase()),v.push([N,M]),h[N]=h[N]?h[N]+","+M:M}),r(C())},u.onerror=s,u.withCredentials=n.credentials=="include",n.headers)u.setRequestHeader(D,n.headers[D]);u.send(n.body||null)})}const bp=Object.freeze(Object.defineProperty({__proto__:null,default:wp},Symbol.toStringTag,{value:"Module"})),Jl=us(bp);var Xl,eu;function xp(){return eu||(eu=1,Xl=self.fetch||(self.fetch=Jl.default||Jl)),Xl}xp();/*!
|
|
105
105
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
106
106
|
* SPDX-License-Identifier: Apache-2.0
|
|
107
107
|
*/var tu={exports:{}};/*!
|
|
@@ -110,35 +110,35 @@ 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 nu;function Cp(){return nu||(nu=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var u=window.Cookies,g=window.Cookies=r();g.noConflict=function(){return window.Cookies=u,g}}})(function(){function r(){for(var g=0,
|
|
114
|
-
`}return
|
|
115
|
-
`}return te.substring(0,te.length-1)},S.renderTo2dContext=function($,K){K=K||2;for(var W=S.getModuleCount(),J=0;J<W;J++)for(var ee=0;ee<W;ee++)$.fillStyle=S.isDark(J,ee)?"black":"white",$.fillRect(J*K,ee*K,K,K)},S};L.stringToBytes=(L.stringToBytesFuncs={default:function(N){for(var R=[],D=0;D<N.length;D+=1){var p=N.charCodeAt(D);R.push(255&p)}return R}}).default,L.createStringToBytes=function(N,R){var D=function(){for(var d=Oe(N),w=function(){var oe=d.read();if(oe==-1)throw"eof";return oe},h=0,v={};;){var S=d.read();if(S==-1)break;var Y=w(),U=w()<<8|w();v[String.fromCharCode(S<<8|Y)]=U,h+=1}if(h!=R)throw h+" != "+R;return v}(),p=63;return function(d){for(var w=[],h=0;h<d.length;h+=1){var v=d.charCodeAt(h);if(v<128)w.push(v);else{var S=D[d.charAt(h)];typeof S=="number"?(255&S)==S?w.push(S):(w.push(S>>>8),w.push(255&S)):w.push(p)}}return w}};var M,k,I,B,G,ie={L:1,M:0,Q:3,H:2},se=(M=[[],[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]],k=1335,I=7973,G=function(N){for(var R=0;N!=0;)R+=1,N>>>=1;return R},(B={}).getBCHTypeInfo=function(N){for(var R=N<<10;G(R)-G(k)>=0;)R^=k<<G(R)-G(k);return 21522^(N<<10|R)},B.getBCHTypeNumber=function(N){for(var R=N<<12;G(R)-G(I)>=0;)R^=I<<G(R)-G(I);return N<<12|R},B.getPatternPosition=function(N){return M[N-1]},B.getMaskFunction=function(N){switch(N){case 0:return function(R,D){return(R+D)%2==0};case 1:return function(R,D){return R%2==0};case 2:return function(R,D){return D%3==0};case 3:return function(R,D){return(R+D)%3==0};case 4:return function(R,D){return(Math.floor(R/2)+Math.floor(D/3))%2==0};case 5:return function(R,D){return R*D%2+R*D%3==0};case 6:return function(R,D){return(R*D%2+R*D%3)%2==0};case 7:return function(R,D){return(R*D%3+(R+D)%2)%2==0};default:throw"bad maskPattern:"+N}},B.getErrorCorrectPolynomial=function(N){for(var R=le([1],0),D=0;D<N;D+=1)R=R.multiply(le([1,ae.gexp(D)],0));return R},B.getLengthInBits=function(N,R){if(1<=R&&R<10)switch(N){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+N}else if(R<27)switch(N){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+N}else{if(!(R<41))throw"type:"+R;switch(N){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+N}}},B.getLostPoint=function(N){for(var R=N.getModuleCount(),D=0,p=0;p<R;p+=1)for(var d=0;d<R;d+=1){for(var w=0,h=N.isDark(p,d),v=-1;v<=1;v+=1)if(!(p+v<0||R<=p+v))for(var S=-1;S<=1;S+=1)d+S<0||R<=d+S||v==0&&S==0||h==N.isDark(p+v,d+S)&&(w+=1);w>5&&(D+=3+w-5)}for(p=0;p<R-1;p+=1)for(d=0;d<R-1;d+=1){var Y=0;N.isDark(p,d)&&(Y+=1),N.isDark(p+1,d)&&(Y+=1),N.isDark(p,d+1)&&(Y+=1),N.isDark(p+1,d+1)&&(Y+=1),Y!=0&&Y!=4||(D+=3)}for(p=0;p<R;p+=1)for(d=0;d<R-6;d+=1)N.isDark(p,d)&&!N.isDark(p,d+1)&&N.isDark(p,d+2)&&N.isDark(p,d+3)&&N.isDark(p,d+4)&&!N.isDark(p,d+5)&&N.isDark(p,d+6)&&(D+=40);for(d=0;d<R;d+=1)for(p=0;p<R-6;p+=1)N.isDark(p,d)&&!N.isDark(p+1,d)&&N.isDark(p+2,d)&&N.isDark(p+3,d)&&N.isDark(p+4,d)&&!N.isDark(p+5,d)&&N.isDark(p+6,d)&&(D+=40);var U=0;for(d=0;d<R;d+=1)for(p=0;p<R;p+=1)N.isDark(p,d)&&(U+=1);return D+Math.abs(100*U/R/R-50)/5*10},B),ae=function(){for(var N=new Array(256),R=new Array(256),D=0;D<8;D+=1)N[D]=1<<D;for(D=8;D<256;D+=1)N[D]=N[D-4]^N[D-5]^N[D-6]^N[D-8];for(D=0;D<255;D+=1)R[N[D]]=D;return{glog:function(p){if(p<1)throw"glog("+p+")";return R[p]},gexp:function(p){for(;p<0;)p+=255;for(;p>=256;)p-=255;return N[p]}}}();function le(N,R){if(N.length===void 0)throw N.length+"/"+R;var D=function(){for(var d=0;d<N.length&&N[d]==0;)d+=1;for(var w=new Array(N.length-d+R),h=0;h<N.length-d;h+=1)w[h]=N[h+d];return w}(),p={getAt:function(d){return D[d]},getLength:function(){return D.length},multiply:function(d){for(var w=new Array(p.getLength()+d.getLength()-1),h=0;h<p.getLength();h+=1)for(var v=0;v<d.getLength();v+=1)w[h+v]^=ae.gexp(ae.glog(p.getAt(h))+ae.glog(d.getAt(v)));return le(w,0)},mod:function(d){if(p.getLength()-d.getLength()<0)return p;for(var w=ae.glog(p.getAt(0))-ae.glog(d.getAt(0)),h=new Array(p.getLength()),v=0;v<p.getLength();v+=1)h[v]=p.getAt(v);for(v=0;v<d.getLength();v+=1)h[v]^=ae.gexp(ae.glog(d.getAt(v))+w);return le(h,0).mod(d)}};return p}var Q=function(){var N=[[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]],R=function(p,d){var w={};return w.totalCount=p,w.dataCount=d,w},D={getRSBlocks:function(p,d){var w=function(_e,X){switch(X){case ie.L:return N[4*(_e-1)+0];case ie.M:return N[4*(_e-1)+1];case ie.Q:return N[4*(_e-1)+2];case ie.H:return N[4*(_e-1)+3];default:return}}(p,d);if(w===void 0)throw"bad rs block @ typeNumber:"+p+"/errorCorrectionLevel:"+d;for(var h=w.length/3,v=[],S=0;S<h;S+=1)for(var Y=w[3*S+0],U=w[3*S+1],oe=w[3*S+2],ce=0;ce<Y;ce+=1)v.push(R(U,oe));return v}};return D}(),ue=function(){var N=[],R=0,D={getBuffer:function(){return N},getAt:function(p){var d=Math.floor(p/8);return(N[d]>>>7-p%8&1)==1},put:function(p,d){for(var w=0;w<d;w+=1)D.putBit((p>>>d-w-1&1)==1)},getLengthInBits:function(){return R},putBit:function(p){var d=Math.floor(R/8);N.length<=d&&N.push(0),p&&(N[d]|=128>>>R%8),R+=1}};return D},Z=function(N){var R=N,D={getMode:function(){return 1},getLength:function(w){return R.length},write:function(w){for(var h=R,v=0;v+2<h.length;)w.put(p(h.substring(v,v+3)),10),v+=3;v<h.length&&(h.length-v==1?w.put(p(h.substring(v,v+1)),4):h.length-v==2&&w.put(p(h.substring(v,v+2)),7))}},p=function(w){for(var h=0,v=0;v<w.length;v+=1)h=10*h+d(w.charAt(v));return h},d=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return D},V=function(N){var R=N,D={getMode:function(){return 2},getLength:function(d){return R.length},write:function(d){for(var w=R,h=0;h+1<w.length;)d.put(45*p(w.charAt(h))+p(w.charAt(h+1)),11),h+=2;h<w.length&&d.put(p(w.charAt(h)),6)}},p=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-48;if("A"<=d&&d<="Z")return d.charCodeAt(0)-65+10;switch(d){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 :"+d}};return D},pe=function(N){var R=L.stringToBytes(N);return{getMode:function(){return 4},getLength:function(D){return R.length},write:function(D){for(var p=0;p<R.length;p+=1)D.put(R[p],8)}}},fe=function(N){var R=L.stringToBytesFuncs.SJIS;if(!R)throw"sjis not supported.";(function(){var d=R("友");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var D=R(N),p={getMode:function(){return 8},getLength:function(d){return~~(D.length/2)},write:function(d){for(var w=D,h=0;h+1<w.length;){var v=(255&w[h])<<8|255&w[h+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(h+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),d.put(v,13),h+=2}if(h<w.length)throw"illegal char at "+(h+1)}};return p},re=function(){var N=[],R={writeByte:function(D){N.push(255&D)},writeShort:function(D){R.writeByte(D),R.writeByte(D>>>8)},writeBytes:function(D,p,d){p=p||0,d=d||D.length;for(var w=0;w<d;w+=1)R.writeByte(D[w+p])},writeString:function(D){for(var p=0;p<D.length;p+=1)R.writeByte(D.charCodeAt(p))},toByteArray:function(){return N},toString:function(){var D="";D+="[";for(var p=0;p<N.length;p+=1)p>0&&(D+=","),D+=N[p];return D+"]"}};return R},Oe=function(N){var R=N,D=0,p=0,d=0,w={read:function(){for(;d<8;){if(D>=R.length){if(d==0)return-1;throw"unexpected end of file./"+d}var v=R.charAt(D);if(D+=1,v=="=")return d=0,-1;v.match(/^\s$/)||(p=p<<6|h(v.charCodeAt(0)),d+=6)}var S=p>>>d-8&255;return d-=8,S}},h=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 w},De=function(N,R,D){for(var p=function(U,oe){var ce=U,_e=oe,X=new Array(U*oe),ye={setPixel:function($,K,W){X[K*ce+$]=W},write:function($){$.writeString("GIF87a"),$.writeShort(ce),$.writeShort(_e),$.writeByte(128),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(0),$.writeByte(255),$.writeByte(255),$.writeByte(255),$.writeString(","),$.writeShort(0),$.writeShort(0),$.writeShort(ce),$.writeShort(_e),$.writeByte(0);var K=me(2);$.writeByte(2);for(var W=0;K.length-W>255;)$.writeByte(255),$.writeBytes(K,W,255),W+=255;$.writeByte(K.length-W),$.writeBytes(K,W,K.length-W),$.writeByte(0),$.writeString(";")}},me=function($){for(var K=1<<$,W=1+(1<<$),J=$+1,ee=xe(),Se=0;Se<K;Se+=1)ee.add(String.fromCharCode(Se));ee.add(String.fromCharCode(K)),ee.add(String.fromCharCode(W));var l,c,_,T=re(),z=(l=T,c=0,_=0,{write:function(Pe,Ce){if(Pe>>>Ce)throw"length over";for(;c+Ce>=8;)l.writeByte(255&(Pe<<c|_)),Ce-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=Ce},flush:function(){c>0&&l.writeByte(_)}});z.write(K,J);var te=0,Ae=String.fromCharCode(X[te]);for(te+=1;te<X.length;){var be=String.fromCharCode(X[te]);te+=1,ee.contains(Ae+be)?Ae+=be:(z.write(ee.indexOf(Ae),J),ee.size()<4095&&(ee.size()==1<<J&&(J+=1),ee.add(Ae+be)),Ae=be)}return z.write(ee.indexOf(Ae),J),z.write(W,J),z.flush(),T.toByteArray()},xe=function(){var $={},K=0,W={add:function(J){if(W.contains(J))throw"dup key:"+J;$[J]=K,K+=1},size:function(){return K},indexOf:function(J){return $[J]},contains:function(J){return $[J]!==void 0}};return W};return ye}(N,R),d=0;d<R;d+=1)for(var w=0;w<N;w+=1)p.setPixel(w,d,D(w,d));var h=re();p.write(h);for(var v=function(){var U=0,oe=0,ce=0,_e="",X={},ye=function(xe){_e+=String.fromCharCode(me(63&xe))},me=function(xe){if(!(xe<0)){if(xe<26)return 65+xe;if(xe<52)return xe-26+97;if(xe<62)return xe-52+48;if(xe==62)return 43;if(xe==63)return 47}throw"n:"+xe};return X.writeByte=function(xe){for(U=U<<8|255&xe,oe+=8,ce+=1;oe>=6;)ye(U>>>oe-6),oe-=6},X.flush=function(){if(oe>0&&(ye(U<<6-oe),U=0,oe=0),ce%3!=0)for(var xe=3-ce%3,$=0;$<xe;$+=1)_e+="="},X.toString=function(){return _e},X}(),S=h.toByteArray(),Y=0;Y<S.length;Y+=1)v.writeByte(S[Y]);return v.flush(),"data:image/gif;base64,"+v};return L}();E.stringToBytesFuncs["UTF-8"]=function(L){return function(M){for(var k=[],I=0;I<M.length;I++){var B=M.charCodeAt(I);B<128?k.push(B):B<2048?k.push(192|B>>6,128|63&B):B<55296||B>=57344?k.push(224|B>>12,128|B>>6&63,128|63&B):(I++,B=65536+((1023&B)<<10|1023&M.charCodeAt(I)),k.push(240|B>>18,128|B>>12&63,128|B>>6&63,128|63&B))}return k}(L)},(A=typeof(C=function(){return E})=="function"?C.apply(f,[]):C)===void 0||(m.exports=A)}},s={};function u(m){var f=s[m];if(f!==void 0)return f.exports;var C=s[m]={exports:{}};return r[m](C,C.exports,u),C.exports}u.n=m=>{var f=m&&m.__esModule?()=>m.default:()=>m;return u.d(f,{a:f}),f},u.d=(m,f)=>{for(var C in f)u.o(f,C)&&!u.o(m,C)&&Object.defineProperty(m,C,{enumerable:!0,get:f[C]})},u.o=(m,f)=>Object.prototype.hasOwnProperty.call(m,f);var g={};return(()=>{u.d(g,{default:()=>R});const m=D=>!!D&&typeof D=="object"&&!Array.isArray(D);function f(D,...p){if(!p.length)return D;const d=p.shift();return d!==void 0&&m(D)&&m(d)?(D=Object.assign({},D),Object.keys(d).forEach(w=>{const h=D[w],v=d[w];Array.isArray(h)&&Array.isArray(v)?D[w]=v:m(h)&&m(v)?D[w]=f(Object.assign({},h),v):D[w]=v}),f(D,...p)):D}function C(D,p){const d=document.createElement("a");d.download=p,d.href=D,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const A={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,h){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:p,y:d,size:w,getNeighbor:h})}_rotateFigure({x:p,y:d,size:w,rotation:h=0,draw:v}){var S;const Y=p+w/2,U=d+w/2;v(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*h/Math.PI},${Y},${U})`)}_basicDot(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+d/2)),this._element.setAttribute("cy",String(h+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${d}h ${d}v `+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_basicCornerExtraRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${h}v `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${d/2} ${d/2}h `+d/2+"v "+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_drawDot({x:p,y:d,size:w}){this._basicDot({x:p,y:d,size:w,rotation:0})}_drawSquare({x:p,y:d,size:w}){this._basicSquare({x:p,y:d,size:w,rotation:0})}_drawRounded({x:p,y:d,size:w,getNeighbor:h}){const v=h?+h(-1,0):0,S=h?+h(1,0):0,Y=h?+h(0,-1):0,U=h?+h(0,1):0,oe=v+S+Y+U;if(oe!==0)if(oe>2||v&&S||Y&&U)this._basicSquare({x:p,y:d,size:w,rotation:0});else{if(oe===2){let ce=0;return v&&Y?ce=Math.PI/2:Y&&S?ce=Math.PI:S&&U&&(ce=-Math.PI/2),void this._basicCornerRounded({x:p,y:d,size:w,rotation:ce})}if(oe===1){let ce=0;return Y?ce=Math.PI/2:S?ce=Math.PI:U&&(ce=-Math.PI/2),void this._basicSideRounded({x:p,y:d,size:w,rotation:ce})}}else this._basicDot({x:p,y:d,size:w,rotation:0})}_drawExtraRounded({x:p,y:d,size:w,getNeighbor:h}){const v=h?+h(-1,0):0,S=h?+h(1,0):0,Y=h?+h(0,-1):0,U=h?+h(0,1):0,oe=v+S+Y+U;if(oe!==0)if(oe>2||v&&S||Y&&U)this._basicSquare({x:p,y:d,size:w,rotation:0});else{if(oe===2){let ce=0;return v&&Y?ce=Math.PI/2:Y&&S?ce=Math.PI:S&&U&&(ce=-Math.PI/2),void this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:ce})}if(oe===1){let ce=0;return Y?ce=Math.PI/2:S?ce=Math.PI:U&&(ce=-Math.PI/2),void this._basicSideRounded({x:p,y:d,size:w,rotation:ce})}}else this._basicDot({x:p,y:d,size:w,rotation:0})}_drawClassy({x:p,y:d,size:w,getNeighbor:h}){const v=h?+h(-1,0):0,S=h?+h(1,0):0,Y=h?+h(0,-1):0,U=h?+h(0,1):0;v+S+Y+U!==0?v||Y?S||U?this._basicSquare({x:p,y:d,size:w,rotation:0}):this._basicCornerRounded({x:p,y:d,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:p,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:d,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:p,y:d,size:w,getNeighbor:h}){const v=h?+h(-1,0):0,S=h?+h(1,0):0,Y=h?+h(0,-1):0,U=h?+h(0,1):0;v+S+Y+U!==0?v||Y?S||U?this._basicSquare({x:p,y:d,size:w,rotation:0}):this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:d,size:w,rotation:Math.PI/2})}}const L={dot:"dot",square:"square",extraRounded:"extra-rounded"},M=Object.values(L);class k{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,h){let v;switch(this._type){case L.square:v=this._drawSquare;break;case L.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:p,y:d,size:w,rotation:h})}_rotateFigure({x:p,y:d,size:w,rotation:h=0,draw:v}){var S;const Y=p+w/2,U=d+w/2;v(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*h/Math.PI},${Y},${U})`)}_basicDot(p){const{size:d,x:w,y:h}=p,v=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{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 ${w+d/2} ${h}a ${d/2} ${d/2} 0 1 0 0.1 0zm 0 ${v}a ${d/2-v} ${d/2-v} 0 1 1 -0.1 0Z`)}}))}_basicSquare(p){const{size:d,x:w,y:h}=p,v=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{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 ${w} ${h}v ${d}h ${d}v `+-d+`zM ${w+v} ${h+v}h `+(d-2*v)+"v "+(d-2*v)+"h "+(2*v-d)+"z")}}))}_basicExtraRounded(p){const{size:d,x:w,y:h}=p,v=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{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 ${w} ${h+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 ${w+2.5*v} ${h+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:p,y:d,size:w,rotation:h}){this._basicDot({x:p,y:d,size:w,rotation:h})}_drawSquare({x:p,y:d,size:w,rotation:h}){this._basicSquare({x:p,y:d,size:w,rotation:h})}_drawExtraRounded({x:p,y:d,size:w,rotation:h}){this._basicExtraRounded({x:p,y:d,size:w,rotation:h})}}const I={dot:"dot",square:"square"},B=Object.values(I);class G{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,h){let v;v=this._type===I.square?this._drawSquare:this._drawDot,v.call(this,{x:p,y:d,size:w,rotation:h})}_rotateFigure({x:p,y:d,size:w,rotation:h=0,draw:v}){var S;const Y=p+w/2,U=d+w/2;v(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*h/Math.PI},${Y},${U})`)}_basicDot(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+d/2)),this._element.setAttribute("cy",String(h+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(p){const{size:d,x:w,y:h}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(h)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:p,y:d,size:w,rotation:h}){this._basicDot({x:p,y:d,size:w,rotation:h})}_drawSquare({x:p,y:d,size:w,rotation:h}){this._basicSquare({x:p,y:d,size:w,rotation:h})}}const ie="circle",se=[[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 le{constructor(p,d){this._roundSize=w=>this._options.dotsOptions.roundSize?Math.floor(w):w,this._window=d,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(p.width)),this._element.setAttribute("height",String(p.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),p.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${p.width} ${p.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=p.image,this._instanceId=le.instanceCount++,this._options=p}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(p){const d=p.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,h=this._options.shape===ie?w/Math.sqrt(2):w,v=this._roundSize(h/d);let S={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=p,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:U}=this._options,oe=Y.imageSize*A[U.errorCorrectionLevel],ce=Math.floor(oe*d*d);S=function({originalHeight:_e,originalWidth:X,maxHiddenDots:ye,maxHiddenAxisDots:me,dotSize:xe}){const $={x:0,y:0},K={x:0,y:0};if(_e<=0||X<=0||ye<=0||xe<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=_e/X;return $.x=Math.floor(Math.sqrt(ye/W)),$.x<=0&&($.x=1),me&&me<$.x&&($.x=me),$.x%2==0&&$.x--,K.x=$.x*xe,$.y=1+2*Math.ceil(($.x*W-1)/2),K.y=Math.round(K.x*W),($.y*$.x>ye||me&&me<$.y)&&(me&&me<$.y?($.y=me,$.y%2==0&&$.x--):$.y-=2,K.y=$.y*xe,$.x=1+2*Math.ceil(($.y/W-1)/2),K.x=Math.round(K.y/W)),{height:K.y,width:K.x,hideYDots:$.y,hideXDots:$.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ce,maxHiddenAxisDots:d-14,dotSize:v})}this.drawBackground(),this.drawDots((Y,U)=>{var oe,ce,_e,X,ye,me;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(d-S.hideYDots)/2&&Y<(d+S.hideYDots)/2&&U>=(d-S.hideXDots)/2&&U<(d+S.hideXDots)/2||!((oe=se[Y])===null||oe===void 0)&&oe[U]||!((ce=se[Y-d+7])===null||ce===void 0)&&ce[U]||!((_e=se[Y])===null||_e===void 0)&&_e[U-d+7]||!((X=ae[Y])===null||X===void 0)&&X[U]||!((ye=ae[Y-d+7])===null||ye===void 0)&&ye[U]||!((me=ae[Y])===null||me===void 0)&&me[U-d+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:S.width,height:S.height,count:d,dotSize:v})}drawBackground(){var p,d,w;const h=this._element,v=this._options;if(h){const S=(p=v.backgroundOptions)===null||p===void 0?void 0:p.gradient,Y=(d=v.backgroundOptions)===null||d===void 0?void 0:d.color;let U=v.height,oe=v.width;if(S||Y){const ce=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),!((w=v.backgroundOptions)===null||w===void 0)&&w.round&&(U=oe=Math.min(v.width,v.height),ce.setAttribute("rx",String(U/2*v.backgroundOptions.round))),ce.setAttribute("x",String(this._roundSize((v.width-oe)/2))),ce.setAttribute("y",String(this._roundSize((v.height-U)/2))),ce.setAttribute("width",String(oe)),ce.setAttribute("height",String(U)),this._backgroundClipPath.appendChild(ce),this._createColor({options:S,color:Y,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(p){var d,w;if(!this._qr)throw"QR code is not defined";const h=this._options,v=this._qr.getModuleCount();if(v>h.width||v>h.height)throw"The canvas is too small.";const S=Math.min(h.width,h.height)-2*h.margin,Y=h.shape===ie?S/Math.sqrt(2):S,U=this._roundSize(Y/v),oe=this._roundSize((h.width-v*U)/2),ce=this._roundSize((h.height-v*U)/2),_e=new E({svg:this._element,type:h.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:(d=h.dotsOptions)===null||d===void 0?void 0:d.gradient,color:h.dotsOptions.color,additionalRotation:0,x:0,y:0,height:h.height,width:h.width,name:`dot-color-${this._instanceId}`});for(let X=0;X<v;X++)for(let ye=0;ye<v;ye++)p&&!p(X,ye)||!((w=this._qr)===null||w===void 0)&&w.isDark(X,ye)&&(_e.draw(oe+ye*U,ce+X*U,U,(me,xe)=>!(ye+me<0||X+xe<0||ye+me>=v||X+xe>=v)&&!(p&&!p(X+xe,ye+me))&&!!this._qr&&this._qr.isDark(X+xe,ye+me)),_e._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(_e._element));if(h.shape===ie){const X=this._roundSize((S/U-v)/2),ye=v+2*X,me=oe-X*U,xe=ce-X*U,$=[],K=this._roundSize(ye/2);for(let W=0;W<ye;W++){$[W]=[];for(let J=0;J<ye;J++)W>=X-1&&W<=ye-X&&J>=X-1&&J<=ye-X||Math.sqrt((W-K)*(W-K)+(J-K)*(J-K))>K?$[W][J]=0:$[W][J]=this._qr.isDark(J-2*X<0?J:J>=v?J-2*X:J-X,W-2*X<0?W:W>=v?W-2*X:W-X)?1:0}for(let W=0;W<ye;W++)for(let J=0;J<ye;J++)$[W][J]&&(_e.draw(me+J*U,xe+W*U,U,(ee,Se)=>{var l;return!!(!((l=$[W+Se])===null||l===void 0)&&l[J+ee])}),_e._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(_e._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const p=this._element,d=this._options;if(!p)throw"Element code is not defined";const w=this._qr.getModuleCount(),h=Math.min(d.width,d.height)-2*d.margin,v=d.shape===ie?h/Math.sqrt(2):h,S=this._roundSize(v/w),Y=7*S,U=3*S,oe=this._roundSize((d.width-w*S)/2),ce=this._roundSize((d.height-w*S)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([_e,X,ye])=>{var me,xe,$,K,W,J,ee,Se,l,c,_,T,z,te;const Ae=oe+_e*S*(w-7),be=ce+X*S*(w-7);let Pe=this._dotsClipPath,Ce=this._dotsClipPath;if((!((me=d.cornersSquareOptions)===null||me===void 0)&&me.gradient||!((xe=d.cornersSquareOptions)===null||xe===void 0)&&xe.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-square-color-${_e}-${X}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersSquareClipPath=this._cornersDotClipPath=Ce=Pe,this._createColor({options:($=d.cornersSquareOptions)===null||$===void 0?void 0:$.gradient,color:(K=d.cornersSquareOptions)===null||K===void 0?void 0:K.color,additionalRotation:ye,x:Ae,y:be,height:Y,width:Y,name:`corners-square-color-${_e}-${X}-${this._instanceId}`})),((W=d.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&M.includes(d.cornersSquareOptions.type)){const Le=new k({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Le.draw(Ae,be,Y,ye),Le._element&&Pe&&Pe.appendChild(Le._element)}else{const Le=new E({svg:this._element,type:((J=d.cornersSquareOptions)===null||J===void 0?void 0:J.type)||d.dotsOptions.type,window:this._window});for(let Be=0;Be<se.length;Be++)for(let Re=0;Re<se[Be].length;Re++)!((ee=se[Be])===null||ee===void 0)&&ee[Re]&&(Le.draw(Ae+Re*S,be+Be*S,S,(nt,et)=>{var Ze;return!!(!((Ze=se[Be+et])===null||Ze===void 0)&&Ze[Re+nt])}),Le._element&&Pe&&Pe.appendChild(Le._element))}if((!((Se=d.cornersDotOptions)===null||Se===void 0)&&Se.gradient||!((l=d.cornersDotOptions)===null||l===void 0)&&l.color)&&(Ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ce.setAttribute("id",`clip-path-corners-dot-color-${_e}-${X}-${this._instanceId}`),this._defs.appendChild(Ce),this._cornersDotClipPath=Ce,this._createColor({options:(c=d.cornersDotOptions)===null||c===void 0?void 0:c.gradient,color:(_=d.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:ye,x:Ae+2*S,y:be+2*S,height:U,width:U,name:`corners-dot-color-${_e}-${X}-${this._instanceId}`})),((T=d.cornersDotOptions)===null||T===void 0?void 0:T.type)&&B.includes(d.cornersDotOptions.type)){const Le=new G({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Le.draw(Ae+2*S,be+2*S,U,ye),Le._element&&Ce&&Ce.appendChild(Le._element)}else{const Le=new E({svg:this._element,type:((z=d.cornersDotOptions)===null||z===void 0?void 0:z.type)||d.dotsOptions.type,window:this._window});for(let Be=0;Be<ae.length;Be++)for(let Re=0;Re<ae[Be].length;Re++)!((te=ae[Be])===null||te===void 0)&&te[Re]&&(Le.draw(Ae+Re*S,be+Be*S,S,(nt,et)=>{var Ze;return!!(!((Ze=ae[Be+et])===null||Ze===void 0)&&Ze[Re+nt])}),Le._element&&Ce&&Ce.appendChild(Le._element))}})}loadImage(){return new Promise((p,d)=>{var w;const h=this._options;if(!h.image)return d("Image is not defined");if(!((w=h.nodeCanvas)===null||w===void 0)&&w.loadImage)h.nodeCanvas.loadImage(h.image).then(v=>{var S,Y;if(this._image=v,this._options.imageOptions.saveAsBlob){const U=(S=h.nodeCanvas)===null||S===void 0?void 0:S.createCanvas(this._image.width,this._image.height);(Y=U?.getContext("2d"))===null||Y===void 0||Y.drawImage(v,0,0),this._imageUri=U?.toDataURL()}p()}).catch(d);else{const v=new this._window.Image;typeof h.imageOptions.crossOrigin=="string"&&(v.crossOrigin=h.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(S,Y){return new Promise(U=>{const oe=new Y.XMLHttpRequest;oe.onload=function(){const ce=new Y.FileReader;ce.onloadend=function(){U(ce.result)},ce.readAsDataURL(oe.response)},oe.open("GET",S),oe.responseType="blob",oe.send()})}(h.image||"",this._window)),p()},v.src=h.image}})}async drawImage({width:p,height:d,count:w,dotSize:h}){const v=this._options,S=this._roundSize((v.width-w*h)/2),Y=this._roundSize((v.height-w*h)/2),U=S+this._roundSize(v.imageOptions.margin+(w*h-p)/2),oe=Y+this._roundSize(v.imageOptions.margin+(w*h-d)/2),ce=p-2*v.imageOptions.margin,_e=d-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(U)),X.setAttribute("y",String(oe)),X.setAttribute("width",`${ce}px`),X.setAttribute("height",`${_e}px`),this._element.appendChild(X)}_createColor({options:p,color:d,additionalRotation:w,x:h,y:v,height:S,width:Y,name:U}){const oe=Y>S?Y:S,ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ce.setAttribute("x",String(h)),ce.setAttribute("y",String(v)),ce.setAttribute("height",String(S)),ce.setAttribute("width",String(Y)),ce.setAttribute("clip-path",`url('#clip-path-${U}')`),p){let _e;if(p.type==="radial")_e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),_e.setAttribute("id",U),_e.setAttribute("gradientUnits","userSpaceOnUse"),_e.setAttribute("fx",String(h+Y/2)),_e.setAttribute("fy",String(v+S/2)),_e.setAttribute("cx",String(h+Y/2)),_e.setAttribute("cy",String(v+S/2)),_e.setAttribute("r",String(oe/2));else{const X=((p.rotation||0)+w)%(2*Math.PI),ye=(X+2*Math.PI)%(2*Math.PI);let me=h+Y/2,xe=v+S/2,$=h+Y/2,K=v+S/2;ye>=0&&ye<=.25*Math.PI||ye>1.75*Math.PI&&ye<=2*Math.PI?(me-=Y/2,xe-=S/2*Math.tan(X),$+=Y/2,K+=S/2*Math.tan(X)):ye>.25*Math.PI&&ye<=.75*Math.PI?(xe-=S/2,me-=Y/2/Math.tan(X),K+=S/2,$+=Y/2/Math.tan(X)):ye>.75*Math.PI&&ye<=1.25*Math.PI?(me+=Y/2,xe+=S/2*Math.tan(X),$-=Y/2,K-=S/2*Math.tan(X)):ye>1.25*Math.PI&&ye<=1.75*Math.PI&&(xe+=S/2,me+=Y/2/Math.tan(X),K-=S/2,$-=Y/2/Math.tan(X)),_e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),_e.setAttribute("id",U),_e.setAttribute("gradientUnits","userSpaceOnUse"),_e.setAttribute("x1",String(Math.round(me))),_e.setAttribute("y1",String(Math.round(xe))),_e.setAttribute("x2",String(Math.round($))),_e.setAttribute("y2",String(Math.round(K)))}p.colorStops.forEach(({offset:X,color:ye})=>{const me=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");me.setAttribute("offset",100*X+"%"),me.setAttribute("stop-color",ye),_e.appendChild(me)}),ce.setAttribute("fill",`url('#${U}')`),this._defs.appendChild(_e)}else d&&ce.setAttribute("fill",d);this._element.appendChild(ce)}}le.instanceCount=0;const Q=le,ue="canvas",Z={};for(let D=0;D<=40;D++)Z[D]=D;const V={type:ue,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Z[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 pe(D){const p=Object.assign({},D);if(!p.colorStops||!p.colorStops.length)throw"Field 'colorStops' is required in gradient";return p.rotation?p.rotation=Number(p.rotation):p.rotation=0,p.colorStops=p.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),p}function fe(D){const p=Object.assign({},D);return p.width=Number(p.width),p.height=Number(p.height),p.margin=Number(p.margin),p.imageOptions=Object.assign(Object.assign({},p.imageOptions),{hideBackgroundDots:!!p.imageOptions.hideBackgroundDots,imageSize:Number(p.imageOptions.imageSize),margin:Number(p.imageOptions.margin)}),p.margin>Math.min(p.width,p.height)&&(p.margin=Math.min(p.width,p.height)),p.dotsOptions=Object.assign({},p.dotsOptions),p.dotsOptions.gradient&&(p.dotsOptions.gradient=pe(p.dotsOptions.gradient)),p.cornersSquareOptions&&(p.cornersSquareOptions=Object.assign({},p.cornersSquareOptions),p.cornersSquareOptions.gradient&&(p.cornersSquareOptions.gradient=pe(p.cornersSquareOptions.gradient))),p.cornersDotOptions&&(p.cornersDotOptions=Object.assign({},p.cornersDotOptions),p.cornersDotOptions.gradient&&(p.cornersDotOptions.gradient=pe(p.cornersDotOptions.gradient))),p.backgroundOptions&&(p.backgroundOptions=Object.assign({},p.backgroundOptions),p.backgroundOptions.gradient&&(p.backgroundOptions.gradient=pe(p.backgroundOptions.gradient))),p}var re=u(873),Oe=u.n(re);function De(D){if(!D)throw new Error("Extension must be defined");D[0]==="."&&(D=D.substring(1));const p={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"}[D.toLowerCase()];if(!p)throw new Error(`Extension "${D}" is not supported`);return p}class N{constructor(p){p!=null&&p.jsdom?this._window=new p.jsdom("",{resources:"usable"}).window:this._window=window,this._options=p?fe(f(V,p)):V,this.update()}static _clearContainer(p){p&&(p.innerHTML="")}_setupSvg(){if(!this._qr)return;const p=new Q(this._options,this._window);this._svg=p.getElement(),this._svgDrawingPromise=p.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,p.getElement(),this._options))})}_setupCanvas(){var p,d;this._qr&&(!((p=this._options.nodeCanvas)===null||p===void 0)&&p.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=(d=this._svgDrawingPromise)===null||d===void 0?void 0:d.then(()=>{var w;if(!this._svg)return;const h=this._svg,v=new this._window.XMLSerializer().serializeToString(h),S=btoa(v),Y=`data:${De("svg")};base64,${S}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(Y).then(U=>{var oe,ce;U.width=this._options.width,U.height=this._options.height,(ce=(oe=this._nodeCanvas)===null||oe===void 0?void 0:oe.getContext("2d"))===null||ce===void 0||ce.drawImage(U,0,0)});{const U=new this._window.Image;return new Promise(oe=>{U.onload=()=>{var ce,_e;(_e=(ce=this._domCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||_e===void 0||_e.drawImage(U,0,0),oe()},U.src=Y})}}))}async _getElement(p="png"){if(!this._qr)throw"QR code is empty";return p.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(p){N._clearContainer(this._container),this._options=p?fe(f(this._options,p)):this._options,this._options.data&&(this._qr=Oe()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(d){switch(!0){case/^[0-9]*$/.test(d):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(d):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ue?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(p){if(p){if(typeof p.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ue?this._domCanvas&&p.appendChild(this._domCanvas):this._svg&&p.appendChild(this._svg),this._container=p}}applyExtension(p){if(!p)throw"Extension function should be defined.";this._extension=p,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(p="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(p),w=De(p);if(!d)return null;if(p.toLowerCase()==="svg"){const h=`<?xml version="1.0" standalone="no"?>\r
|
|
116
|
-
${new this._window.XMLSerializer().serializeToString(d)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(
|
|
117
|
-
`+v,C(`data:${De(d)};charset=utf-8,${encodeURIComponent(v)}`,`${w}.svg`)}else C(h.toDataURL(De(d)),`${w}.${d}`)}}const R=N})(),g.default})())}(Ss)),Ss.exports}Bp();const su=ve.createContext(void 0);function jp(i){const n=gn.c(9),{children:r,baseUrl:s,queryClient:u}=i;let g;n[0]!==s||n[1]!==u?(g={baseUrl:s,queryClient:u},n[0]=s,n[1]=u,n[2]=g):g=n[2];let m;n[3]!==r||n[4]!==u?(m=O.jsx(yl,{client:u,children:r}),n[3]=r,n[4]=u,n[5]=m):m=n[5];let f;return n[6]!==g||n[7]!==m?(f=O.jsx(su.Provider,{value:g,children:m}),n[6]=g,n[7]=m,n[8]=f):f=n[8],f}function Kn(){const i=ve.useContext(su);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Yp(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function pr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Op()??""}`,...Yp()}}async function au(i){return fetch(i,{method:"GET",headers:await pr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function lu(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await pr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function uu(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await pr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function cu(i,n){return fetch(i,{method:"POST",headers:await pr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Fp(i,n,r){return fetch(n,{method:i,headers:await pr(),body:r?JSON.stringify(r):void 0}).then(async s=>{if(s.status>=400)throw await s.text();return s}).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function fu(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await pr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}function hu(i,n,r){const s=gn.c(13),{baseUrl:u}=Kn();let g;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r?.toString(),s[3]=r,s[4]=A):A=s[4],g=[...n.map(Wp),String(A)],s[0]=r,s[1]=n,s[2]=g}else g=s[2];let m;s[5]!==i||s[6]!==u||s[7]!==r?(m=()=>lu(`${u}${i}`,r),s[5]=i,s[6]=u,s[7]=r,s[8]=m):m=s[8];const f=!!r;let C;return s[9]!==g||s[10]!==m||s[11]!==f?(C={queryKey:g,queryFn:m,enabled:f},s[9]=g,s[10]=m,s[11]=f,s[12]=C):C=s[12],bl(C)}function Wp(i){return i.toString()}function du(i,n){const r=gn.c(8),{baseUrl:s}=Kn();let u;r[0]!==n?(u=[...n.map(Up)],r[0]=n,r[1]=u):u=r[1];let g;r[2]!==i||r[3]!==s?(g=()=>au(`${s}${i}`),r[2]=i,r[3]=s,r[4]=g):g=r[4];let m;return r[5]!==u||r[6]!==g?(m={queryKey:u,queryFn:g},r[5]=u,r[6]=g,r[7]=m):m=r[7],bl(m)}function Up(i){return i.toString()}function pu(i,n){const r=gn.c(10),{baseUrl:s,queryClient:u}=Kn();let g;r[0]!==n?(g=[...n.map(qp)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>cu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let f;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==m?(f={mutationKey:g,mutationFn:m,onSettled(){return u.invalidateQueries({queryKey:[...n.map(zp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=m,r[9]=f):f=r[9],os(f)}function zp(i){return i.toString()}function qp(i){return i.toString()}function Ds(i,n){const r=gn.c(10),{baseUrl:s,queryClient:u}=Kn();let g;r[0]!==n?(g=[...n.map(Gp)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>fu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let f;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==m?(f={mutationKey:g,mutationFn:m,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Hp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=m,r[9]=f):f=r[9],os(f)}function Hp(i){return i.toString()}function Gp(i){return i.toString()}function gu(i,n){const r=gn.c(10),{baseUrl:s,queryClient:u}=Kn();let g;r[0]!==n?(g=[...n.map(Kp)],r[0]=n,r[1]=g):g=r[1];let m;r[2]!==i||r[3]!==s?(m=C=>uu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=m):m=r[4];let f;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==m?(f={mutationKey:g,mutationFn:m,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Vp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=m,r[9]=f):f=r[9],os(f)}function Vp(i){return i.toString()}function Kp(i){return i.toString()}var Hi={exports:{}},Zp=Hi.exports,vu;function Qp(){return vu||(vu=1,function(i,n){(function(r,s){i.exports=s()})(Zp,function(){var r=1e3,s=6e4,u=36e5,g="millisecond",m="second",f="minute",C="hour",A="day",E="week",L="month",M="quarter",k="year",I="date",B="Invalid Date",G=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ie=/\[([^\]]+)]|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,se={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(N){var R=["th","st","nd","rd"],D=N%100;return"["+N+(R[(D-20)%10]||R[D]||R[0])+"]"}},ae=function(N,R,D){var p=String(N);return!p||p.length>=R?N:""+Array(R+1-p.length).join(D)+N},le={s:ae,z:function(N){var R=-N.utcOffset(),D=Math.abs(R),p=Math.floor(D/60),d=D%60;return(R<=0?"+":"-")+ae(p,2,"0")+":"+ae(d,2,"0")},m:function N(R,D){if(R.date()<D.date())return-N(D,R);var p=12*(D.year()-R.year())+(D.month()-R.month()),d=R.clone().add(p,L),w=D-d<0,h=R.clone().add(p+(w?-1:1),L);return+(-(p+(D-d)/(w?d-h:h-d))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:L,y:k,w:E,d:A,D:I,h:C,m:f,s:m,ms:g,Q:M}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},Q="en",ue={};ue[Q]=se;var Z="$isDayjsObject",V=function(N){return N instanceof Oe||!(!N||!N[Z])},pe=function N(R,D,p){var d;if(!R)return Q;if(typeof R=="string"){var w=R.toLowerCase();ue[w]&&(d=w),D&&(ue[w]=D,d=w);var h=R.split("-");if(!d&&h.length>1)return N(h[0])}else{var v=R.name;ue[v]=R,d=v}return!p&&d&&(Q=d),d||!p&&Q},fe=function(N,R){if(V(N))return N.clone();var D=typeof R=="object"?R:{};return D.date=N,D.args=arguments,new Oe(D)},re=le;re.l=pe,re.i=V,re.w=function(N,R){return fe(N,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var Oe=function(){function N(D){this.$L=pe(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[Z]=!0}var R=N.prototype;return R.parse=function(D){this.$d=function(p){var d=p.date,w=p.utc;if(d===null)return new Date(NaN);if(re.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var h=d.match(G);if(h){var v=h[2]-1||0,S=(h[7]||"0").substring(0,3);return w?new Date(Date.UTC(h[1],v,h[3]||1,h[4]||0,h[5]||0,h[6]||0,S)):new Date(h[1],v,h[3]||1,h[4]||0,h[5]||0,h[6]||0,S)}}return new Date(d)}(D),this.init()},R.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},R.$utils=function(){return re},R.isValid=function(){return this.$d.toString()!==B},R.isSame=function(D,p){var d=fe(D);return this.startOf(p)<=d&&d<=this.endOf(p)},R.isAfter=function(D,p){return fe(D)<this.startOf(p)},R.isBefore=function(D,p){return this.endOf(p)<fe(D)},R.$g=function(D,p,d){return re.u(D)?this[p]:this.set(d,D)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(D,p){var d=this,w=!!re.u(p)||p,h=re.p(D),v=function(ye,me){var xe=re.w(d.$u?Date.UTC(d.$y,me,ye):new Date(d.$y,me,ye),d);return w?xe:xe.endOf(A)},S=function(ye,me){return re.w(d.toDate()[ye].apply(d.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(me)),d)},Y=this.$W,U=this.$M,oe=this.$D,ce="set"+(this.$u?"UTC":"");switch(h){case k:return w?v(1,0):v(31,11);case L:return w?v(1,U):v(0,U+1);case E:var _e=this.$locale().weekStart||0,X=(Y<_e?Y+7:Y)-_e;return v(w?oe-X:oe+(6-X),U);case A:case I:return S(ce+"Hours",0);case C:return S(ce+"Minutes",1);case f:return S(ce+"Seconds",2);case m:return S(ce+"Milliseconds",3);default:return this.clone()}},R.endOf=function(D){return this.startOf(D,!1)},R.$set=function(D,p){var d,w=re.p(D),h="set"+(this.$u?"UTC":""),v=(d={},d[A]=h+"Date",d[I]=h+"Date",d[L]=h+"Month",d[k]=h+"FullYear",d[C]=h+"Hours",d[f]=h+"Minutes",d[m]=h+"Seconds",d[g]=h+"Milliseconds",d)[w],S=w===A?this.$D+(p-this.$W):p;if(w===L||w===k){var Y=this.clone().set(I,1);Y.$d[v](S),Y.init(),this.$d=Y.set(I,Math.min(this.$D,Y.daysInMonth())).$d}else v&&this.$d[v](S);return this.init(),this},R.set=function(D,p){return this.clone().$set(D,p)},R.get=function(D){return this[re.p(D)]()},R.add=function(D,p){var d,w=this;D=Number(D);var h=re.p(p),v=function(U){var oe=fe(w);return re.w(oe.date(oe.date()+Math.round(U*D)),w)};if(h===L)return this.set(L,this.$M+D);if(h===k)return this.set(k,this.$y+D);if(h===A)return v(1);if(h===E)return v(7);var S=(d={},d[f]=s,d[C]=u,d[m]=r,d)[h]||1,Y=this.$d.getTime()+D*S;return re.w(Y,this)},R.subtract=function(D,p){return this.add(-1*D,p)},R.format=function(D){var p=this,d=this.$locale();if(!this.isValid())return d.invalidDate||B;var w=D||"YYYY-MM-DDTHH:mm:ssZ",h=re.z(this),v=this.$H,S=this.$m,Y=this.$M,U=d.weekdays,oe=d.months,ce=d.meridiem,_e=function(me,xe,$,K){return me&&(me[xe]||me(p,w))||$[xe].slice(0,K)},X=function(me){return re.s(v%12||12,me,"0")},ye=ce||function(me,xe,$){var K=me<12?"AM":"PM";return $?K.toLowerCase():K};return w.replace(ie,function(me,xe){return xe||function($){switch($){case"YY":return String(p.$y).slice(-2);case"YYYY":return re.s(p.$y,4,"0");case"M":return Y+1;case"MM":return re.s(Y+1,2,"0");case"MMM":return _e(d.monthsShort,Y,oe,3);case"MMMM":return _e(oe,Y);case"D":return p.$D;case"DD":return re.s(p.$D,2,"0");case"d":return String(p.$W);case"dd":return _e(d.weekdaysMin,p.$W,U,2);case"ddd":return _e(d.weekdaysShort,p.$W,U,3);case"dddd":return U[p.$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 ye(v,S,!0);case"A":return ye(v,S,!1);case"m":return String(S);case"mm":return re.s(S,2,"0");case"s":return String(p.$s);case"ss":return re.s(p.$s,2,"0");case"SSS":return re.s(p.$ms,3,"0");case"Z":return h}return null}(me)||h.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(D,p,d){var w,h=this,v=re.p(p),S=fe(D),Y=(S.utcOffset()-this.utcOffset())*s,U=this-S,oe=function(){return re.m(h,S)};switch(v){case k:w=oe()/12;break;case L:w=oe();break;case M:w=oe()/3;break;case E:w=(U-Y)/6048e5;break;case A:w=(U-Y)/864e5;break;case C:w=U/u;break;case f:w=U/s;break;case m:w=U/r;break;default:w=U}return d?w:re.a(w)},R.daysInMonth=function(){return this.endOf(L).$D},R.$locale=function(){return ue[this.$L]},R.locale=function(D,p){if(!D)return this.$L;var d=this.clone(),w=pe(D,p,!0);return w&&(d.$L=w),d},R.clone=function(){return re.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},N}(),De=Oe.prototype;return fe.prototype=De,[["$ms",g],["$s",m],["$m",f],["$H",C],["$W",A],["$M",L],["$y",k],["$D",I]].forEach(function(N){De[N[1]]=function(R){return this.$g(R,N[0],N[1])}}),fe.extend=function(N,R){return N.$i||(N(R,Oe,fe),N.$i=!0),fe},fe.locale=pe,fe.isDayjs=V,fe.unix=function(N){return fe(1e3*N)},fe.en=ue[Q],fe.Ls=ue,fe.p={},fe})}(Hi)),Hi.exports}var Jp=Qp();const Te=el(Jp);function Xp({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:u}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=u[n-1][u[n-1].length-1]-1?u[n-1].length-1:u[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===u[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===u[n].length-2&&s>=u[n][u[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:u[n-1].length-1,cellIndex:u[n-1][u[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:u[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===u[n].length-1&&s===u[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===u[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 mu({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:u,size:g}){const m=Xp({direction:n,size:g,rowIndex:s,cellIndex:u,levelIndex:r});if(!m)return;const f=i.current?.[m.levelIndex]?.[m.rowIndex]?.[m.cellIndex];f&&(f.disabled||f.getAttribute("data-hidden")||f.getAttribute("data-outside")?mu({controlsRef:i,direction:n,levelIndex:m.levelIndex,cellIndex:m.cellIndex,rowIndex:m.rowIndex,size:g}):f.focus())}function eg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function tg(i){return i.current?.map(n=>n.map(r=>r.length))}function As({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:u}){const g=eg(u.key);if(g){u.preventDefault();const m=tg(i);mu({controlsRef:i,direction:g,levelIndex:n,rowIndex:r,cellIndex:s,size:m})}}function on(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD")}function yu(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD HH:mm:ss")}const ng={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},rg=ve.createContext(ng);function Zn(){const i=ve.useContext(rg),n=ve.useCallback(g=>g||i.locale,[i.locale]),r=ve.useCallback(g=>typeof g=="number"?g:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ve.useCallback(g=>Array.isArray(g)?g:i.weekendDays,[i.weekendDays]),u=ve.useCallback(g=>typeof g=="string"?g:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:u}}function ig({value:i,type:n,withTime:r}){const s=r?yu:on;if(n==="range"&&Array.isArray(i)){const u=s(i[0]),g=s(i[1]);return u?g?`${u} – ${g}`:`${u} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function _u({value:i,type:n,name:r,form:s,withTime:u=!1}){return O.jsx("input",{type:"hidden",value:ig({value:i,type:n,withTime:u}),name:r,form:s})}_u.displayName="@mantine/dates/HiddenDatesInput";function wu(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var u=i.length;for(n=0;n<u;n++)i[n]&&(r=wu(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ft(){for(var i,n,r=0,s="",u=arguments.length;r<u;r++)(i=arguments[r])&&(n=wu(i))&&(s&&(s+=" "),s+=n);return s}var bu={day:"m_396ce5cb"};const og=F.createVarsResolver((i,{size:n})=>({day:{"--day-size":F.getSize(n,"day-size")}})),Os=F.factory((i,n)=>{const r=F.useProps("Day",null,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,date:A,disabled:E,__staticSelector:L,weekend:M,outside:k,selected:I,renderDay:B,inRange:G,firstInRange:ie,lastInRange:se,hidden:ae,static:le,highlightToday:Q,attributes:ue,...Z}=r,V=F.useStyles({name:L||"Day",classes:bu,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:ue,vars:C,varsResolver:og,rootSelector:"day"});return O.jsx(F.UnstyledButton,{...V("day",{style:ae?{display:"none"}:void 0}),component:le?"div":"button",ref:n,disabled:E,"data-today":Te(A).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&&!k&&M||void 0,"data-outside":!E&&k||void 0,"data-selected":!E&&I||void 0,"data-in-range":G&&!E||void 0,"data-first-in-range":ie&&!E||void 0,"data-last-in-range":se&&!E||void 0,"data-static":le||void 0,unstyled:f,...Z,children:B?.(A)||Te(A).date()})});Os.classes=bu,Os.displayName="@mantine/dates/Day";function sg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),u=[];for(let g=0;g<7;g+=1)typeof n=="string"?u.push(Te(s).add(g,"days").locale(i).format(n)):u.push(n(Te(s).add(g,"days").format("YYYY-MM-DD")));return u}var xu={weekday:"m_18a3eca"};const ag=F.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":F.getFontSize(n),"--wr-spacing":F.getSpacing(n)}})),Es=F.factory((i,n)=>{const r=F.useProps("WeekdaysRow",null,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,locale:A,firstDayOfWeek:E,weekdayFormat:L,cellComponent:M="th",__staticSelector:k,withWeekNumbers:I,attributes:B,...G}=r,ie=F.useStyles({name:k||"WeekdaysRow",classes:xu,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:B,vars:C,varsResolver:ag,rootSelector:"weekdaysRow"}),se=Zn(),ae=sg({locale:se.getLocale(A),format:L,firstDayOfWeek:se.getFirstDayOfWeek(E)}).map((le,Q)=>O.jsx(M,{...ie("weekday"),children:le},Q));return O.jsxs(F.Box,{component:"tr",ref:n,...ie("weekdaysRow"),...G,children:[I&&O.jsx(M,{...ie("weekday"),children:"#"}),ae]})});Es.classes=xu,Es.displayName="@mantine/dates/WeekdaysRow";function lg(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 ug(i,n=1){let r=Te(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function cg({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Te(i).subtract(Te(i).date()-1,"day"),u=Te(s.format("YYYY-M-D")),g=u.format("YYYY-MM-DD"),m=u.add(+u.daysInMonth()-1,"day").format("YYYY-MM-DD"),f=lg(m,n),C=[];let A=Te(ug(g,n));for(;Te(A).isBefore(f,"day");){const E=[];for(let L=0;L<7;L+=1)E.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");C.push(E)}if(r&&C.length<6){const E=C[C.length-1],L=E[E.length-1];let M=Te(L).add(1,"day");for(;C.length<6;){const k=[];for(let I=0;I<7;I+=1)k.push(M.format("YYYY-MM-DD")),M=M.add(1,"day");C.push(k)}}return C}function Ts(i,n){return Te(i).format("YYYY-MM")===Te(n).format("YYYY-MM")}function Cu(i,n){return n?Te(i).isAfter(Te(n).subtract(1,"day"),"day"):!0}function Su(i,n){return n?Te(i).isBefore(Te(n).add(1,"day"),"day"):!0}function fg({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:u,hideOutsideDates:g,month:m}){const f=i.flat().filter(E=>Su(E,r)&&Cu(E,n)&&!u?.(E)&&!s?.(E)?.disabled&&(!g||Ts(E,m))),C=f.find(E=>s?.(E)?.selected);if(C)return C;const A=f.find(E=>Te().isSame(E,"date"));return A||f[0]}var Gi={exports:{}},hg=Gi.exports,Du;function dg(){return Du||(Du=1,function(i,n){(function(r,s){i.exports=s()})(hg,function(){var r="day";return function(s,u,g){var m=function(A){return A.add(4-A.isoWeekday(),r)},f=u.prototype;f.isoWeekYear=function(){return m(this).year()},f.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var E,L,M,k,I=m(this),B=(E=this.isoWeekYear(),L=this.$u,M=(L?g.utc:g)().year(E).startOf("year"),k=4-M.isoWeekday(),M.isoWeekday()>4&&(k+=7),M.add(k,r));return I.diff(B,"week")+1},f.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var C=f.startOf;f.startOf=function(A,E){var L=this.$utils(),M=!!L.u(E)||E;return L.p(A)==="isoweek"?M?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):C.bind(this)(A,E)}}})}(Gi)),Gi.exports}var pg=dg();const gg=el(pg);Te.extend(gg);function vg(i){const n=i.find(r=>Te(r).day()===1);return Te(n).isoWeek()}var Au={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const mg={withCellSpacing:!0},yg=F.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":F.getFontSize(n),"--wn-size":F.getSize(n,"wn-size")}})),Vi=F.factory((i,n)=>{const r=F.useProps("Month",mg,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,__staticSelector:A,locale:E,firstDayOfWeek:L,weekdayFormat:M,month:k,weekendDays:I,getDayProps:B,excludeDate:G,minDate:ie,maxDate:se,renderDay:ae,hideOutsideDates:le,hideWeekdays:Q,getDayAriaLabel:ue,static:Z,__getDayRef:V,__onDayKeyDown:pe,__onDayClick:fe,__onDayMouseEnter:re,__preventFocus:Oe,__stopPropagation:De,withCellSpacing:N,size:R,highlightToday:D,withWeekNumbers:p,attributes:d,...w}=r,h=F.useStyles({name:A||"Month",classes:Au,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:d,vars:C,varsResolver:yg,rootSelector:"month"}),v=Zn(),S=cg({month:k,firstDayOfWeek:v.getFirstDayOfWeek(L),consistentWeeks:v.consistentWeeks}),Y=fg({dates:S,minDate:on(ie),maxDate:on(se),getDayProps:B,excludeDate:G,hideOutsideDates:le,month:k}),{resolvedClassNames:U,resolvedStyles:oe}=F.useResolvedStylesApi({classNames:s,styles:m,props:r}),ce=S.map((_e,X)=>{const ye=_e.map((me,xe)=>{const $=!Ts(me,k),K=ue?.(me)||Te(me).locale(E||v.locale).format("D MMMM YYYY"),W=B?.(me),J=Te(me).isSame(Y,"date");return O.jsx("td",{...h("monthCell"),"data-with-spacing":N||void 0,children:O.jsx(Os,{__staticSelector:A||"Month",classNames:U,styles:oe,unstyled:f,"data-mantine-stop-propagation":De||void 0,highlightToday:D,renderDay:ae,date:me,size:R,weekend:v.getWeekendDays(I).includes(Te(me).get("day")),outside:$,hidden:le?$:!1,"aria-label":K,static:Z,disabled:G?.(me)||!Su(me,on(se))||!Cu(me,on(ie)),ref:ee=>{ee&&V?.(X,xe,ee)},...W,onKeyDown:ee=>{W?.onKeyDown?.(ee),pe?.(ee,{rowIndex:X,cellIndex:xe,date:me})},onMouseEnter:ee=>{W?.onMouseEnter?.(ee),re?.(ee,me)},onClick:ee=>{W?.onClick?.(ee),fe?.(ee,me)},onMouseDown:ee=>{W?.onMouseDown?.(ee),Oe&&ee.preventDefault()},tabIndex:Oe||!J?-1:0})},me.toString())});return O.jsxs("tr",{...h("monthRow"),children:[p&&O.jsx("td",{...h("weekNumber"),children:vg(_e)}),ye]},X)});return O.jsxs(F.Box,{component:"table",...h("month"),size:R,ref:n,...w,children:[!Q&&O.jsx("thead",{...h("monthThead"),children:O.jsx(Es,{__staticSelector:A||"Month",locale:E,firstDayOfWeek:L,weekdayFormat:M,size:R,classNames:U,styles:oe,unstyled:f,withWeekNumbers:p})}),O.jsx("tbody",{...h("monthTbody"),children:ce})]})});Vi.classes=Au,Vi.displayName="@mantine/dates/Month";var Ou={pickerControl:"m_dc6a3c71"};const _g=F.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":F.getFontSize(n),"--dpc-size":F.getSize(n,"dpc-size")}})),Ki=F.factory((i,n)=>{const r=F.useProps("PickerControl",null,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,firstInRange:A,lastInRange:E,inRange:L,__staticSelector:M,selected:k,disabled:I,attributes:B,...G}=r,ie=F.useStyles({name:M||"PickerControl",classes:Ou,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:B,vars:C,varsResolver:_g,rootSelector:"pickerControl"});return O.jsx(F.UnstyledButton,{...ie("pickerControl"),ref:n,unstyled:f,"data-picker-control":!0,"data-selected":k&&!I||void 0,"data-disabled":I||void 0,"data-in-range":L&&!I&&!k||void 0,"data-first-in-range":A&&!I||void 0,"data-last-in-range":E&&!I||void 0,disabled:I,...G})});Ki.classes=Ou,Ki.displayName="@mantine/dates/PickerControl";function Eu({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"year")||r&&Te(i).isAfter(r,"year"))}function wg({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const u=i.flat().filter(f=>!Eu({year:f,minDate:n,maxDate:r})&&!s?.(f)?.disabled),g=u.find(f=>s?.(f)?.selected);if(g)return g;const m=u.find(f=>Te().isSame(f,"year"));return m||u[0]}function Tu(i){const n=Te(i).year(),r=n-n%10;let s=0;const u=[[],[],[],[]];for(let g=0;g<4;g+=1){const m=g===3?1:3;for(let f=0;f<m;f+=1)u[g].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return u}var Pu={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const bg={yearsListFormat:"YYYY",withCellSpacing:!0},Zi=F.factory((i,n)=>{const r=F.useProps("YearsList",bg,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,decade:A,yearsListFormat:E,locale:L,minDate:M,maxDate:k,getYearControlProps:I,__staticSelector:B,__getControlRef:G,__onControlKeyDown:ie,__onControlClick:se,__onControlMouseEnter:ae,__preventFocus:le,__stopPropagation:Q,withCellSpacing:ue,size:Z,attributes:V,...pe}=r,fe=F.useStyles({name:B||"YearsList",classes:Pu,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:V,vars:C,rootSelector:"yearsList"}),re=Zn(),Oe=Tu(A),De=wg({years:Oe,minDate:M,maxDate:k,getYearControlProps:I}),N=Oe.map((R,D)=>{const p=R.map((d,w)=>{const h=I?.(d),v=Te(d).isSame(De,"year");return O.jsx("td",{...fe("yearsListCell"),"data-with-spacing":ue||void 0,children:O.jsx(Ki,{...fe("yearsListControl"),size:Z,unstyled:f,"data-mantine-stop-propagation":Q||void 0,disabled:Eu({year:d,minDate:M,maxDate:k}),ref:S=>{S&&G?.(D,w,S)},...h,onKeyDown:S=>{h?.onKeyDown?.(S),ie?.(S,{rowIndex:D,cellIndex:w,date:d})},onClick:S=>{h?.onClick?.(S),se?.(S,d)},onMouseEnter:S=>{h?.onMouseEnter?.(S),ae?.(S,d)},onMouseDown:S=>{h?.onMouseDown?.(S),le&&S.preventDefault()},tabIndex:le||!v?-1:0,children:Te(d).locale(re.getLocale(L)).format(E)})},w)});return O.jsx("tr",{...fe("yearsListRow"),children:p},D)});return O.jsx(F.Box,{component:"table",ref:n,size:Z,...fe("yearsList"),...pe,children:O.jsx("tbody",{children:N})})});Zi.classes=Pu,Zi.displayName="@mantine/dates/YearsList";function Mu({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"month")||r&&Te(i).isAfter(r,"month"))}function xg({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const u=i.flat().filter(f=>!Mu({month:f,minDate:n,maxDate:r})&&!s?.(f)?.disabled),g=u.find(f=>s?.(f)?.selected);if(g)return g;const m=u.find(f=>Te().isSame(f,"month"));return m||u[0]}function Cg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let u=0;u<4;u+=1)for(let g=0;g<3;g+=1)r[u].push(Te(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Ru={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Sg={monthsListFormat:"MMM",withCellSpacing:!0},Qi=F.factory((i,n)=>{const r=F.useProps("MonthsList",Sg,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,__staticSelector:A,year:E,monthsListFormat:L,locale:M,minDate:k,maxDate:I,getMonthControlProps:B,__getControlRef:G,__onControlKeyDown:ie,__onControlClick:se,__onControlMouseEnter:ae,__preventFocus:le,__stopPropagation:Q,withCellSpacing:ue,size:Z,attributes:V,...pe}=r,fe=F.useStyles({name:A||"MonthsList",classes:Ru,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:V,vars:C,rootSelector:"monthsList"}),re=Zn(),Oe=Cg(E),De=xg({months:Oe,minDate:on(k),maxDate:on(I),getMonthControlProps:B}),N=Oe.map((R,D)=>{const p=R.map((d,w)=>{const h=B?.(d),v=Te(d).isSame(De,"month");return O.jsx("td",{...fe("monthsListCell"),"data-with-spacing":ue||void 0,children:O.jsx(Ki,{...fe("monthsListControl"),size:Z,unstyled:f,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":Q||void 0,disabled:Mu({month:d,minDate:on(k),maxDate:on(I)}),ref:S=>{S&&G?.(D,w,S)},...h,onKeyDown:S=>{h?.onKeyDown?.(S),ie?.(S,{rowIndex:D,cellIndex:w,date:d})},onClick:S=>{h?.onClick?.(S),se?.(S,d)},onMouseEnter:S=>{h?.onMouseEnter?.(S),ae?.(S,d)},onMouseDown:S=>{h?.onMouseDown?.(S),le&&S.preventDefault()},tabIndex:le||!v?-1:0,children:Te(d).locale(re.getLocale(M)).format(L)})},w)});return O.jsx("tr",{...fe("monthsListRow"),children:p},D)});return O.jsx(F.Box,{component:"table",ref:n,size:Z,...fe("monthsList"),...pe,children:O.jsx("tbody",{children:N})})});Qi.classes=Ru,Qi.displayName="@mantine/dates/MonthsList";var ku={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Dg={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Ag=F.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":F.getSize(n,"dch-control-size"),"--dch-fz":F.getFontSize(n)}})),Qn=F.factory((i,n)=>{const r=F.useProps("CalendarHeader",Dg,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,nextIcon:A,previousIcon:E,nextLabel:L,previousLabel:M,onNext:k,onPrevious:I,onLevelClick:B,label:G,nextDisabled:ie,previousDisabled:se,hasNextLevel:ae,levelControlAriaLabel:le,withNext:Q,withPrevious:ue,headerControlsOrder:Z,__staticSelector:V,__preventFocus:pe,__stopPropagation:fe,attributes:re,...Oe}=r,De=F.useStyles({name:V||"CalendarHeader",classes:ku,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:re,vars:C,varsResolver:Ag,rootSelector:"calendarHeader"}),N=pe?w=>w.preventDefault():void 0,R=ue&&ve.createElement(F.UnstyledButton,{...De("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":M,onClick:I,unstyled:f,onMouseDown:N,disabled:se,"data-disabled":se||void 0,tabIndex:pe||se?-1:0,"data-mantine-stop-propagation":fe||void 0},E||O.jsx(F.AccordionChevron,{...De("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),D=ve.createElement(F.UnstyledButton,{component:ae?"button":"div",...De("calendarHeaderLevel"),key:"level",onClick:ae?B:void 0,unstyled:f,onMouseDown:ae?N:void 0,disabled:!ae,"data-static":!ae||void 0,"aria-label":le,tabIndex:pe||!ae?-1:0,"data-mantine-stop-propagation":fe||void 0},G),p=Q&&ve.createElement(F.UnstyledButton,{...De("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":L,onClick:k,unstyled:f,onMouseDown:N,disabled:ie,"data-disabled":ie||void 0,tabIndex:pe||ie?-1:0,"data-mantine-stop-propagation":fe||void 0},A||O.jsx(F.AccordionChevron,{...De("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),d=Z.map(w=>w==="previous"?R:w==="level"?D:w==="next"?p:null);return O.jsx(F.Box,{...De("calendarHeader"),ref:n,...Oe,children:d})});Qn.classes=ku,Qn.displayName="@mantine/dates/CalendarHeader";function Og(i){const n=Tu(i);return[n[0][0],n[3][0]]}const Eg={decadeLabelFormat:"YYYY"},Ji=F.factory((i,n)=>{const r=F.useProps("DecadeLevel",Eg,i),{decade:s,locale:u,minDate:g,maxDate:m,yearsListFormat:f,getYearControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,withCellSpacing:k,__preventFocus:I,nextIcon:B,previousIcon:G,nextLabel:ie,previousLabel:se,onNext:ae,onPrevious:le,nextDisabled:Q,previousDisabled:ue,levelControlAriaLabel:Z,withNext:V,withPrevious:pe,headerControlsOrder:fe,decadeLabelFormat:re,classNames:Oe,styles:De,unstyled:N,__staticSelector:R,__stopPropagation:D,size:p,attributes:d,...w}=r,h=Zn(),[v,S]=Og(s),Y={__staticSelector:R||"DecadeLevel",classNames:Oe,styles:De,unstyled:N,size:p,attributes:d},U=typeof Q=="boolean"?Q:m?!Te(S).endOf("year").isBefore(m):!1,oe=typeof ue=="boolean"?ue:g?!Te(v).startOf("year").isAfter(g):!1,ce=(_e,X)=>Te(_e).locale(u||h.locale).format(X);return O.jsxs(F.Box,{"data-decade-level":!0,size:p,ref:n,...w,children:[O.jsx(Qn,{label:typeof re=="function"?re(v,S):`${ce(v,re)} – ${ce(S,re)}`,__preventFocus:I,__stopPropagation:D,nextIcon:B,previousIcon:G,nextLabel:ie,previousLabel:se,onNext:ae,onPrevious:le,nextDisabled:U,previousDisabled:oe,hasNextLevel:!1,levelControlAriaLabel:Z,withNext:V,withPrevious:pe,headerControlsOrder:fe,...Y}),O.jsx(Zi,{decade:s,locale:u,minDate:g,maxDate:m,yearsListFormat:f,getYearControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,__preventFocus:I,__stopPropagation:D,withCellSpacing:k,...Y})]})});Ji.classes={...Zi.classes,...Qn.classes},Ji.displayName="@mantine/dates/DecadeLevel";const Tg={yearLabelFormat:"YYYY"},Xi=F.factory((i,n)=>{const r=F.useProps("YearLevel",Tg,i),{year:s,locale:u,minDate:g,maxDate:m,monthsListFormat:f,getMonthControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,withCellSpacing:k,__preventFocus:I,nextIcon:B,previousIcon:G,nextLabel:ie,previousLabel:se,onNext:ae,onPrevious:le,onLevelClick:Q,nextDisabled:ue,previousDisabled:Z,hasNextLevel:V,levelControlAriaLabel:pe,withNext:fe,withPrevious:re,headerControlsOrder:Oe,yearLabelFormat:De,__staticSelector:N,__stopPropagation:R,size:D,classNames:p,styles:d,unstyled:w,attributes:h,...v}=r,S=Zn(),Y={__staticSelector:N||"YearLevel",classNames:p,styles:d,unstyled:w,size:D,attributes:h},U=typeof ue=="boolean"?ue:m?!Te(s).endOf("year").isBefore(m):!1,oe=typeof Z=="boolean"?Z:g?!Te(s).startOf("year").isAfter(g):!1;return O.jsxs(F.Box,{"data-year-level":!0,size:D,ref:n,...v,children:[O.jsx(Qn,{label:typeof De=="function"?De(s):Te(s).locale(u||S.locale).format(De),__preventFocus:I,__stopPropagation:R,nextIcon:B,previousIcon:G,nextLabel:ie,previousLabel:se,onNext:ae,onPrevious:le,onLevelClick:Q,nextDisabled:U,previousDisabled:oe,hasNextLevel:V,levelControlAriaLabel:pe,withNext:fe,withPrevious:re,headerControlsOrder:Oe,...Y}),O.jsx(Qi,{year:s,locale:u,minDate:g,maxDate:m,monthsListFormat:f,getMonthControlProps:C,__getControlRef:A,__onControlKeyDown:E,__onControlClick:L,__onControlMouseEnter:M,__preventFocus:I,__stopPropagation:R,withCellSpacing:k,...Y})]})});Xi.classes={...Qn.classes,...Qi.classes},Xi.displayName="@mantine/dates/YearLevel";const Pg={monthLabelFormat:"MMMM YYYY"},eo=F.factory((i,n)=>{const r=F.useProps("MonthLevel",Pg,i),{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:m,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:B,__getDayRef:G,__onDayKeyDown:ie,__onDayClick:se,__onDayMouseEnter:ae,withCellSpacing:le,highlightToday:Q,withWeekNumbers:ue,__preventFocus:Z,__stopPropagation:V,nextIcon:pe,previousIcon:fe,nextLabel:re,previousLabel:Oe,onNext:De,onPrevious:N,onLevelClick:R,nextDisabled:D,previousDisabled:p,hasNextLevel:d,levelControlAriaLabel:w,withNext:h,withPrevious:v,headerControlsOrder:S,monthLabelFormat:Y,classNames:U,styles:oe,unstyled:ce,__staticSelector:_e,size:X,static:ye,attributes:me,...xe}=r,$=Zn(),K={__staticSelector:_e||"MonthLevel",classNames:U,styles:oe,unstyled:ce,size:X,attributes:me},W=typeof D=="boolean"?D:L?!Te(s).endOf("month").isBefore(L):!1,J=typeof p=="boolean"?p:E?!Te(s).startOf("month").isAfter(E):!1;return O.jsxs(F.Box,{"data-month-level":!0,size:X,ref:n,...xe,children:[O.jsx(Qn,{label:typeof Y=="function"?Y(s):Te(s).locale(u||$.locale).format(Y),__preventFocus:Z,__stopPropagation:V,nextIcon:pe,previousIcon:fe,nextLabel:re,previousLabel:Oe,onNext:De,onPrevious:N,onLevelClick:R,nextDisabled:W,previousDisabled:J,hasNextLevel:d,levelControlAriaLabel:w,withNext:h,withPrevious:v,headerControlsOrder:S,...K}),O.jsx(Vi,{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:m,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:B,__getDayRef:G,__onDayKeyDown:ie,__onDayClick:se,__onDayMouseEnter:ae,__preventFocus:Z,__stopPropagation:V,static:ye,withCellSpacing:le,highlightToday:Q,withWeekNumbers:ue,...K})]})});eo.classes={...Vi.classes,...Qn.classes},eo.displayName="@mantine/dates/MonthLevel";var Lu={levelsGroup:"m_30b26e33"};const Jn=F.factory((i,n)=>{const r=F.useProps("LevelsGroup",null,i),{classNames:s,className:u,style:g,styles:m,unstyled:f,vars:C,__staticSelector:A,attributes:E,...L}=r,M=F.useStyles({name:A||"LevelsGroup",classes:Lu,props:r,className:u,style:g,classNames:s,styles:m,unstyled:f,attributes:E,vars:C,rootSelector:"levelsGroup"});return O.jsx(F.Box,{ref:n,...M("levelsGroup"),...L})});Jn.classes=Lu,Jn.displayName="@mantine/dates/LevelsGroup";const Mg={numberOfColumns:1},to=F.factory((i,n)=>{const r=F.useProps("DecadeLevelGroup",Mg,i),{decade:s,locale:u,minDate:g,maxDate:m,yearsListFormat:f,getYearControlProps:C,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:L,__preventFocus:M,nextIcon:k,previousIcon:I,nextLabel:B,previousLabel:G,onNext:ie,onPrevious:se,nextDisabled:ae,previousDisabled:le,headerControlsOrder:Q,classNames:ue,styles:Z,unstyled:V,__staticSelector:pe,__stopPropagation:fe,numberOfColumns:re,levelControlAriaLabel:Oe,decadeLabelFormat:De,size:N,vars:R,attributes:D,...p}=r,d=ve.useRef([]),w=Array(re).fill(0).map((h,v)=>{const S=Te(s).add(v*10,"years").format("YYYY-MM-DD");return O.jsx(Ji,{size:N,yearsListFormat:f,decade:S,withNext:v===re-1,withPrevious:v===0,decadeLabelFormat:De,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(Y,U)=>As({levelIndex:v,rowIndex:U.rowIndex,cellIndex:U.cellIndex,event:Y,controlsRef:d}),__getControlRef:(Y,U,oe)=>{Array.isArray(d.current[v])||(d.current[v]=[]),Array.isArray(d.current[v][Y])||(d.current[v][Y]=[]),d.current[v][Y][U]=oe},levelControlAriaLabel:typeof Oe=="function"?Oe(S):Oe,locale:u,minDate:g,maxDate:m,__preventFocus:M,__stopPropagation:fe,nextIcon:k,previousIcon:I,nextLabel:B,previousLabel:G,onNext:ie,onPrevious:se,nextDisabled:ae,previousDisabled:le,getYearControlProps:C,__staticSelector:pe||"DecadeLevelGroup",classNames:ue,styles:Z,unstyled:V,withCellSpacing:L,headerControlsOrder:Q,attributes:D},v)});return O.jsx(Jn,{classNames:ue,styles:Z,__staticSelector:pe||"DecadeLevelGroup",ref:n,size:N,unstyled:V,attributes:D,...p,children:w})});to.classes={...Jn.classes,...Ji.classes},to.displayName="@mantine/dates/DecadeLevelGroup";const Rg={numberOfColumns:1},no=F.factory((i,n)=>{const r=F.useProps("YearLevelGroup",Rg,i),{year:s,locale:u,minDate:g,maxDate:m,monthsListFormat:f,getMonthControlProps:C,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:L,__preventFocus:M,nextIcon:k,previousIcon:I,nextLabel:B,previousLabel:G,onNext:ie,onPrevious:se,onLevelClick:ae,nextDisabled:le,previousDisabled:Q,hasNextLevel:ue,headerControlsOrder:Z,classNames:V,styles:pe,unstyled:fe,__staticSelector:re,__stopPropagation:Oe,numberOfColumns:De,levelControlAriaLabel:N,yearLabelFormat:R,size:D,vars:p,attributes:d,...w}=r,h=ve.useRef([]),v=Array(De).fill(0).map((S,Y)=>{const U=Te(s).add(Y,"years").format("YYYY-MM-DD");return O.jsx(Xi,{size:D,monthsListFormat:f,year:U,withNext:Y===De-1,withPrevious:Y===0,yearLabelFormat:R,__stopPropagation:Oe,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(oe,ce)=>As({levelIndex:Y,rowIndex:ce.rowIndex,cellIndex:ce.cellIndex,event:oe,controlsRef:h}),__getControlRef:(oe,ce,_e)=>{Array.isArray(h.current[Y])||(h.current[Y]=[]),Array.isArray(h.current[Y][oe])||(h.current[Y][oe]=[]),h.current[Y][oe][ce]=_e},levelControlAriaLabel:typeof N=="function"?N(U):N,locale:u,minDate:g,maxDate:m,__preventFocus:M,nextIcon:k,previousIcon:I,nextLabel:B,previousLabel:G,onNext:ie,onPrevious:se,onLevelClick:ae,nextDisabled:le,previousDisabled:Q,hasNextLevel:ue,getMonthControlProps:C,classNames:V,styles:pe,unstyled:fe,__staticSelector:re||"YearLevelGroup",withCellSpacing:L,headerControlsOrder:Z,attributes:d},Y)});return O.jsx(Jn,{classNames:V,styles:pe,__staticSelector:re||"YearLevelGroup",ref:n,size:D,unstyled:fe,attributes:d,...w,children:v})});no.classes={...Xi.classes,...Jn.classes},no.displayName="@mantine/dates/YearLevelGroup";const kg={numberOfColumns:1},ro=F.factory((i,n)=>{const r=F.useProps("MonthLevelGroup",kg,i),{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:m,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:B,__onDayClick:G,__onDayMouseEnter:ie,withCellSpacing:se,highlightToday:ae,withWeekNumbers:le,__preventFocus:Q,nextIcon:ue,previousIcon:Z,nextLabel:V,previousLabel:pe,onNext:fe,onPrevious:re,onLevelClick:Oe,nextDisabled:De,previousDisabled:N,hasNextLevel:R,headerControlsOrder:D,classNames:p,styles:d,unstyled:w,numberOfColumns:h,levelControlAriaLabel:v,monthLabelFormat:S,__staticSelector:Y,__stopPropagation:U,size:oe,static:ce,vars:_e,attributes:X,...ye}=r,me=ve.useRef([]),xe=Array(h).fill(0).map(($,K)=>{const W=Te(s).add(K,"months").format("YYYY-MM-DD");return O.jsx(eo,{month:W,withNext:K===h-1,withPrevious:K===0,monthLabelFormat:S,__stopPropagation:U,__onDayClick:G,__onDayMouseEnter:ie,__onDayKeyDown:(J,ee)=>As({levelIndex:K,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:J,controlsRef:me}),__getDayRef:(J,ee,Se)=>{Array.isArray(me.current[K])||(me.current[K]=[]),Array.isArray(me.current[K][J])||(me.current[K][J]=[]),me.current[K][J][ee]=Se},levelControlAriaLabel:typeof v=="function"?v(W):v,locale:u,firstDayOfWeek:g,weekdayFormat:m,weekendDays:f,getDayProps:C,excludeDate:A,minDate:E,maxDate:L,renderDay:M,hideOutsideDates:k,hideWeekdays:I,getDayAriaLabel:B,__preventFocus:Q,nextIcon:ue,previousIcon:Z,nextLabel:V,previousLabel:pe,onNext:fe,onPrevious:re,onLevelClick:Oe,nextDisabled:De,previousDisabled:N,hasNextLevel:R,classNames:p,styles:d,unstyled:w,__staticSelector:Y||"MonthLevelGroup",size:oe,static:ce,withCellSpacing:se,highlightToday:ae,withWeekNumbers:le,headerControlsOrder:D,attributes:X},K)});return O.jsx(Jn,{classNames:p,styles:d,__staticSelector:Y||"MonthLevelGroup",ref:n,size:oe,attributes:X,...ye,children:xe})});ro.classes={...Jn.classes,...eo.classes},ro.displayName="@mantine/dates/MonthLevelGroup";const Nu=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Iu=(i,n)=>{const r=n?yu:on;return Array.isArray(i)?i.map(r):r(i)};function Ps({type:i,value:n,defaultValue:r,onChange:s,withTime:u=!1}){const g=ve.useRef(i),[m,f,C]=Mt.useUncontrolled({value:Iu(n,u),defaultValue:Iu(r,u),finalValue:Nu(i),onChange:s});let A=m;return g.current!==i&&(g.current=i,n===void 0&&(A=r!==void 0?r:Nu(i),f(A))),[A,f,C]}function Ms(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function Lg(i){return i===0?"month":i===1?"year":"decade"}function fi(i,n,r){return Lg(Mt.clamp(Ms(i,0),Ms(n,0),Ms(r,2)))}const Ng={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},io=F.factory((i,n)=>{const r=F.useProps("Calendar",Ng,i),{vars:s,maxLevel:u,minLevel:g,defaultLevel:m,level:f,onLevelChange:C,date:A,defaultDate:E,onDateChange:L,numberOfColumns:M,columnsToScroll:k,ariaLabels:I,nextLabel:B,previousLabel:G,onYearSelect:ie,onMonthSelect:se,onYearMouseEnter:ae,onMonthMouseEnter:le,headerControlsOrder:Q,__updateDateOnYearSelect:ue,__updateDateOnMonthSelect:Z,__setDateRef:V,__setLevelRef:pe,firstDayOfWeek:fe,weekdayFormat:re,weekendDays:Oe,getDayProps:De,excludeDate:N,renderDay:R,hideOutsideDates:D,hideWeekdays:p,getDayAriaLabel:d,monthLabelFormat:w,nextIcon:h,previousIcon:v,__onDayClick:S,__onDayMouseEnter:Y,withCellSpacing:U,highlightToday:oe,withWeekNumbers:ce,monthsListFormat:_e,getMonthControlProps:X,yearLabelFormat:ye,yearsListFormat:me,getYearControlProps:xe,decadeLabelFormat:$,classNames:K,styles:W,unstyled:J,minDate:ee,maxDate:Se,locale:l,__staticSelector:c,size:_,__preventFocus:T,__stopPropagation:z,onNextDecade:te,onPreviousDecade:Ae,onNextYear:be,onPreviousYear:Pe,onNextMonth:Ce,onPreviousMonth:Le,static:Be,enableKeyboardNavigation:Re,attributes:nt,...et}=r,{resolvedClassNames:Ze,resolvedStyles:wt}=F.useResolvedStylesApi({classNames:K,styles:W,props:r}),[ht,Qe]=Mt.useUncontrolled({value:f?fi(f,g,u):void 0,defaultValue:m?fi(m,g,u):void 0,finalValue:fi(void 0,g,u),onChange:C}),[jt,mt]=Ps({type:"default",value:on(A),defaultValue:on(E),onChange:L});ve.useImperativeHandle(V,()=>ze=>{mt(ze)}),ve.useImperativeHandle(pe,()=>ze=>{Qe(ze)});const Yt={__staticSelector:c||"Calendar",styles:wt,classNames:Ze,unstyled:J,size:_,attributes:nt},At=k||M||1,Ft=new Date,Vt=ee&&Te(Ft).isAfter(ee)?ee:Te(Ft).format("YYYY-MM-DD"),yt=jt||Vt,sn=()=>{const ze=Te(yt).add(At,"month").format("YYYY-MM-DD");Ce?.(ze),mt(ze)},On=()=>{const ze=Te(yt).subtract(At,"month").format("YYYY-MM-DD");Le?.(ze),mt(ze)},_n=()=>{const ze=Te(yt).add(At,"year").format("YYYY-MM-DD");be?.(ze),mt(ze)},Lt=()=>{const ze=Te(yt).subtract(At,"year").format("YYYY-MM-DD");Pe?.(ze),mt(ze)},Wt=()=>{const ze=Te(yt).add(10*At,"year").format("YYYY-MM-DD");te?.(ze),mt(ze)},Ut=()=>{const ze=Te(yt).subtract(10*At,"year").format("YYYY-MM-DD");Ae?.(ze),mt(ze)},wn=ve.useRef(null);ve.useEffect(()=>{if(!Re||Be)return;const ze=it=>{if(!wn.current?.contains(document.activeElement))return;const Nt=it.ctrlKey||it.metaKey,Kt=it.shiftKey;switch(it.key){case"ArrowUp":Nt&&Kt?(it.preventDefault(),Ut()):Nt&&(it.preventDefault(),Lt());break;case"ArrowDown":Nt&&Kt?(it.preventDefault(),Wt()):Nt&&(it.preventDefault(),_n());break;case"y":case"Y":ht==="month"&&(it.preventDefault(),Qe("year"));break}};return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[Re,Be,ht,_n,Lt,Wt,Ut]);const bn=ze=>{wn.current=ze,typeof n=="function"?n(ze):n&&(n.current=ze)};return O.jsxs(F.Box,{ref:bn,size:_,"data-calendar":!0,...et,children:[ht==="month"&&O.jsx(ro,{month:yt,minDate:ee,maxDate:Se,firstDayOfWeek:fe,weekdayFormat:re,weekendDays:Oe,getDayProps:De,excludeDate:N,renderDay:R,hideOutsideDates:D,hideWeekdays:p,getDayAriaLabel:d,onNext:sn,onPrevious:On,hasNextLevel:u!=="month",onLevelClick:()=>Qe("year"),numberOfColumns:M,locale:l,levelControlAriaLabel:I?.monthLevelControl,nextLabel:I?.nextMonth??B,nextIcon:h,previousLabel:I?.previousMonth??G,previousIcon:v,monthLabelFormat:w,__onDayClick:S,__onDayMouseEnter:Y,__preventFocus:T,__stopPropagation:z,static:Be,withCellSpacing:U,highlightToday:oe,withWeekNumbers:ce,headerControlsOrder:Q,...Yt}),ht==="year"&&O.jsx(no,{year:yt,numberOfColumns:M,minDate:ee,maxDate:Se,monthsListFormat:_e,getMonthControlProps:X,locale:l,onNext:_n,onPrevious:Lt,hasNextLevel:u!=="month"&&u!=="year",onLevelClick:()=>Qe("decade"),levelControlAriaLabel:I?.yearLevelControl,nextLabel:I?.nextYear??B,nextIcon:h,previousLabel:I?.previousYear??G,previousIcon:v,yearLabelFormat:ye,__onControlMouseEnter:le,__onControlClick:(ze,it)=>{Z&&mt(it),Qe(fi("month",g,u)),se?.(it)},__preventFocus:T,__stopPropagation:z,withCellSpacing:U,headerControlsOrder:Q,...Yt}),ht==="decade"&&O.jsx(to,{decade:yt,minDate:ee,maxDate:Se,yearsListFormat:me,getYearControlProps:xe,locale:l,onNext:Wt,onPrevious:Ut,numberOfColumns:M,nextLabel:I?.nextDecade??B,nextIcon:h,previousLabel:I?.previousDecade??G,previousIcon:v,decadeLabelFormat:$,__onControlMouseEnter:ae,__onControlClick:(ze,it)=>{ue&&mt(it),Qe(fi("year",g,u)),ie?.(it)},__preventFocus:T,__stopPropagation:z,withCellSpacing:U,headerControlsOrder:Q,...Yt})]})});io.classes={...to.classes,...no.classes,...ro.classes},io.displayName="@mantine/dates/Calendar";function Ig(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:g,nextIcon:m,previousIcon:f,date:C,defaultDate:A,onDateChange:E,numberOfColumns:L,columnsToScroll:M,ariaLabels:k,nextLabel:I,previousLabel:B,onYearSelect:G,onMonthSelect:ie,onYearMouseEnter:se,onMonthMouseEnter:ae,onNextMonth:le,onPreviousMonth:Q,onNextYear:ue,onPreviousYear:Z,onNextDecade:V,onPreviousDecade:pe,withCellSpacing:fe,highlightToday:re,__updateDateOnYearSelect:Oe,__updateDateOnMonthSelect:De,__setDateRef:N,__setLevelRef:R,withWeekNumbers:D,headerControlsOrder:p,firstDayOfWeek:d,weekdayFormat:w,weekendDays:h,getDayProps:v,excludeDate:S,renderDay:Y,hideOutsideDates:U,hideWeekdays:oe,getDayAriaLabel:ce,monthLabelFormat:_e,monthsListFormat:X,getMonthControlProps:ye,yearLabelFormat:me,yearsListFormat:xe,getYearControlProps:$,decadeLabelFormat:K,allowSingleDateInRange:W,allowDeselect:J,minDate:ee,maxDate:Se,locale:l,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:g,nextIcon:m,previousIcon:f,date:C,defaultDate:A,onDateChange:E,numberOfColumns:L,columnsToScroll:M,ariaLabels:k,nextLabel:I,previousLabel:B,onYearSelect:G,onMonthSelect:ie,onYearMouseEnter:se,onMonthMouseEnter:ae,onNextMonth:le,onPreviousMonth:Q,onNextYear:ue,onPreviousYear:Z,onNextDecade:V,onPreviousDecade:pe,withCellSpacing:fe,highlightToday:re,__updateDateOnYearSelect:Oe,__updateDateOnMonthSelect:De,__setDateRef:N,withWeekNumbers:D,headerControlsOrder:p,firstDayOfWeek:d,weekdayFormat:w,weekendDays:h,getDayProps:v,excludeDate:S,renderDay:Y,hideOutsideDates:U,hideWeekdays:oe,getDayAriaLabel:ce,monthLabelFormat:_e,monthsListFormat:X,getMonthControlProps:ye,yearLabelFormat:me,yearsListFormat:xe,getYearControlProps:$,decadeLabelFormat:K,allowSingleDateInRange:W,allowDeselect:J,minDate:ee,maxDate:Se,locale:l},others:c}}function $g(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 Bg({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 jg={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},oo=F.factory((i,n)=>{const r=F.useInputProps("DateInput",jg,i),{inputProps:s,wrapperProps:u,value:g,defaultValue:m,onChange:f,clearable:C,clearButtonProps:A,popoverProps:E,getDayProps:L,locale:M,valueFormat:k,dateParser:I,minDate:B,maxDate:G,fixOnBlur:ie,onFocus:se,onBlur:ae,onClick:le,onKeyDown:Q,readOnly:ue,name:Z,form:V,rightSection:pe,unstyled:fe,classNames:re,styles:Oe,allowDeselect:De,date:N,defaultDate:R,onDateChange:D,getMonthControlProps:p,getYearControlProps:d,...w}=r,h=ve.useRef(null),v=ve.useRef(null),[S,Y]=ve.useState(!1),{calendarProps:U,others:oe}=Ig(w),ce=Zn(),X=I||(be=>{const Pe=Te(be,k,ce.getLocale(M)).toDate();return Number.isNaN(Pe.getTime())?$g(be):Te(Pe).format("YYYY-MM-DD")}),ye=De!==void 0?De:C,me=be=>be?Te(be).locale(ce.getLocale(M)).format(k):"",[xe,$,K]=Ps({type:"default",value:g,defaultValue:m,onChange:f}),[W,J]=Ps({type:"default",value:N,defaultValue:m||R,onChange:D});ve.useEffect(()=>{K&&g!==null&&J(g)},[K,g]);const[ee,Se]=ve.useState(me(xe));ve.useEffect(()=>{Se(me(xe))},[ce.getLocale(M)]);const l=be=>{const Pe=be.currentTarget.value;if(Se(Pe),Y(!0),Pe.trim()===""&&C)$(null);else{const Ce=X(Pe);Ce&&Bg({date:Ce,minDate:B,maxDate:G})&&($(Ce),J(Ce))}},c=be=>{ae?.(be),Y(!1),ie&&Se(me(xe))},_=be=>{se?.(be),Y(!0)},T=be=>{le?.(be),Y(!0)},z=be=>{be.key==="Escape"&&Y(!1),Q?.(be)},te=be=>({...L?.(be),selected:Te(xe).isSame(be,"day"),onClick:Pe=>{L?.(be).onClick?.(Pe);const Ce=C&&ye&&Te(xe).isSame(be,"day")?null:be;$(Ce),!K&&Ce&&Se(me(Ce)),Y(!1)}}),Ae=pe||(C&&xe&&!ue?O.jsx(F.CloseButton,{variant:"transparent",onMouseDown:be=>be.preventDefault(),tabIndex:-1,onClick:()=>{$(null),!K&&Se(""),Y(!1)},unstyled:fe,size:s.size||"sm",...A}):null);return Mt.useDidUpdate(()=>{xe!==void 0&&!S&&Se(me(xe))},[xe]),Mt.useClickOutside(()=>Y(!1),void 0,[h.current,v.current]),O.jsxs(O.Fragment,{children:[O.jsx(F.Input.Wrapper,{...u,__staticSelector:"DateInput",ref:h,children:O.jsxs(F.Popover,{opened:S,trapFocus:!1,position:"bottom-start",disabled:ue,withRoles:!1,unstyled:fe,...E,children:[O.jsx(F.Popover.Target,{children:O.jsx(F.Input,{"data-dates-input":!0,"data-read-only":ue||void 0,autoComplete:"off",ref:n,value:ee,onChange:l,onBlur:c,onFocus:_,onClick:T,onKeyDown:z,readOnly:ue,rightSection:Ae,...s,...oe,__staticSelector:"DateInput"})}),O.jsx(F.Popover.Dropdown,{onMouseDown:be=>be.preventDefault(),"data-dates-dropdown":!0,ref:v,children:O.jsx(io,{__staticSelector:"DateInput",...U,classNames:re,styles:Oe,unstyled:fe,__preventFocus:!0,minDate:B,maxDate:G,locale:M,getDayProps:te,size:s.size,date:W,onDateChange:J,getMonthControlProps:be=>({selected:typeof xe=="string"?Ts(be,xe):!1,...p?.(be)}),getYearControlProps:be=>({selected:typeof xe=="string"?Te(be).isSame(xe,"year"):!1,...d?.(be)}),attributes:u.attributes})})]})}),O.jsx(_u,{name:Z,form:V,value:xe,type:"default"})]})});oo.classes={...F.Input.classes,...io.classes},oo.displayName="@mantine/dates/DateInput";function Yg(i){const n=gn.c(47),{fields:r,onClose:s,queryKey:u,apiPath:g,steps:m,onCreated:f}=i,[C,A]=ve.useState(0),[E,L]=ve.useState(!1),[M,k]=ve.useState(),{mutateAsync:I,isError:B,error:G,isPending:ie}=pu(g,u),{mutateAsync:se,isPending:ae}=Ds(g,u),le=ie||ae;let Q;n[0]!==r?(Q=new Set(r.filter(Hg).map(qg)),n[0]=r,n[1]=Q):Q=n[1];let ue;n[2]!==Q?(ue=[...Q],n[2]=Q,n[3]=ue):ue=n[3];const Z=ue;let V;n[4]!==r?(V=r.reduce(zg,{}),n[4]=r,n[5]=V):V=n[5];let pe;n[6]!==r?(pe=r.filter(Ug).reduce(Fg,{}),n[6]=r,n[7]=pe):pe=n[7];let fe;n[8]!==V||n[9]!==pe?(fe={mode:"uncontrolled",initialValues:V,validate:pe},n[8]=V,n[9]=pe,n[10]=fe):fe=n[10];const re=Xa.useForm(fe);let Oe;n[11]!==re||n[12]!==M?(Oe=function(v){return O.jsxs(ve.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},re.key(v.id)),v.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id)},re.key(v.id)),v.type==="date"&&O.jsx(oo,{label:v.column.title,placeholder:v.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(v.id)},re.key(v.id)),v.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:v.column.title,...re.getInputProps(v.id,{type:"checkbox"})},re.key(v.id)),v.type==="custom"&&v.render&&v.render({...re.getValues(),...M&&{id:M}},re.setValues,L)]},v.id)},n[11]=re,n[12]=M,n[13]=Oe):Oe=n[13];const De=Oe;let N;n[14]!==G?.message||n[15]!==G?.name||n[16]!==B?(N=B&&O.jsx(F.Alert,{variant:"outline",color:"red",title:G?.name??"Fehler aufgetreten",mb:"lg",children:G?.message??"Fehler aufgetreten"}),n[14]=G?.message,n[15]=G?.name,n[16]=B,n[17]=N):N=n[17];let R;n[18]!==C||n[19]!==I||n[20]!==re||n[21]!==B||n[22]!==s||n[23]!==f||n[24]!==M||n[25]!==Z.length||n[26]!==se?(R=re.onSubmit(async h=>{if(M)await se({...h,id:M});else{const v=await I(h);k(v.id),f?.(v.id)}Z.length&&C<Z.length-1?B||A(C+1):B||(re.setInitialValues(h),re.reset(),s())}),n[18]=C,n[19]=I,n[20]=re,n[21]=B,n[22]=s,n[23]=f,n[24]=M,n[25]=Z.length,n[26]=se,n[27]=R):R=n[27];let D;n[28]!==C||n[29]!==r||n[30]!==De||n[31]!==m||n[32]!==Z?(D=Z.length?O.jsx(F.Stepper,{active:C,size:"sm",children:Z.map(h=>O.jsx(F.Stepper.Step,{...m&&m[h-1]?{label:m[h-1].label}:{},children:r.filter(v=>v.step===h).map(v=>De(v))},h))}):r.map(h=>De(h)),n[28]=C,n[29]=r,n[30]=De,n[31]=m,n[32]=Z,n[33]=D):D=n[33];let p;n[34]!==C||n[35]!==E||n[36]!==le||n[37]!==s||n[38]!==Z.length?(p=!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>Z.length?C===0?s():A(C-1):s(),variant:"outline",children:Z.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:le,children:Z.length?C===Z.length-1?"Speichern":"Weiter":"Speichern"})]}),n[34]=C,n[35]=E,n[36]=le,n[37]=s,n[38]=Z.length,n[39]=p):p=n[39];let d;n[40]!==p||n[41]!==R||n[42]!==D?(d=O.jsxs("form",{onSubmit:R,children:[D,p]}),n[40]=p,n[41]=R,n[42]=D,n[43]=d):d=n[43];let w;return n[44]!==d||n[45]!==N?(w=O.jsxs(O.Fragment,{children:[N,d]}),n[44]=d,n[45]=N,n[46]=w):w=n[46],w}function Fg(i,n){return i[n.id]=Wg,i}function Wg(i){return i?null:"Pflichtfeld"}function Ug(i){return i.required}function zg(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function qg(i){return i.step}function Hg(i){return typeof i.step=="number"}var[Gg,Rs]=F.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),$u=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:u,setColumnsToggle:g,resetColumnsOrder:m,resetColumnsToggle:f,setColumnWidth:C,setMultipleColumnWidths:A,resetColumnsWidth:E}=i,[L,M]=ve.useState(""),[k,I]=ve.useState("");return O.jsx(Gg,{value:{sourceColumn:L,setSourceColumn:M,targetColumn:k,setTargetColumn:I,columnsToggle:u,setColumnsToggle:g,swapColumns:()=>{if(!r||!s||!L||!k)return;let B=r.indexOf(L),G=r.indexOf(k);if(B!==-1&&G!==-1){let ie=r.splice(B,1)[0];r.splice(G,0,ie),s([...r])}},resetColumnsOrder:m,resetColumnsToggle:f,setColumnWidth:C,setMultipleColumnWidths:A,resetColumnsWidth:E},children:n})};function Vg(){return O.jsx("tr",{className:"mantine-datatable-empty-row",children:O.jsx("td",{})})}function Kg(){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 Zg({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(Kg,{})}),O.jsx(F.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var Qg=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Q,ue){let Z=[];return Q.forEach(V=>{ue.find(pe=>pe.accessor===V)&&Z.push(V)}),ue.forEach(V=>{Z.includes(V.accessor)||Z.push(V.accessor)}),Z}function u(Q,ue){let Z=[];return Q.forEach(V=>{ue.find(pe=>pe.accessor===V.accessor)&&Z.push(V)}),ue.forEach(V=>{Z.find(pe=>pe.accessor===V.accessor)||Z.push({accessor:V.accessor,defaultToggle:V.defaultToggle||!0,toggleable:V.toggleable,toggled:V.defaultToggle===void 0?!0:V.defaultToggle})}),Z}function g(Q,ue){let Z=[];return Q.forEach(V=>{let pe=Object.keys(V)[0];ue.find(fe=>fe.accessor===pe)&&Z.push(V)}),ue.forEach(V=>{let pe=V.accessor;if(!Z.find(fe=>Object.keys(fe)[0]===pe)){let fe={};fe[pe]="",Z.push(fe)}}),Z}function m(){let[Q,ue]=Mt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function Z(fe){i&&ue(fe)}if(!i)return[Q,Z];let V=s(Q,n),pe=JSON.stringify(Q);return JSON.stringify(V)!==pe&&Z(V),[V,Z]}function f(){let[Q,ue]=Mt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?L:void 0,getInitialValueInEffect:r});function Z(fe){i&&ue(fe)}if(!i)return[Q,Z];let V=u(Q,n),pe=JSON.stringify(Q);return JSON.stringify(V)!==pe&&Z(V),[u(Q,n),Z]}function C(){let[Q,ue]=Mt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function Z(fe){i&&ue(fe)}if(!i)return[Q,Z];let V=g(Q,n),pe=JSON.stringify(Q);return JSON.stringify(V)!==pe&&Z(V),[g(Q,n),Z]}let A=n&&n.map(Q=>Q.accessor)||[],E=n&&n.map(Q=>({[Q.accessor]:Q.width??"initial"}))||[],L=n&&n.map(Q=>({accessor:Q.accessor,defaultToggle:Q.defaultToggle||!0,toggleable:Q.toggleable,toggled:Q.defaultToggle===void 0?!0:Q.defaultToggle})),[M,k]=m(),[I,B]=f(),[G,ie]=C(),se=()=>k(A),ae=()=>{B(L)},le=()=>ie(E);return{effectiveColumns:ve.useMemo(()=>M?M.map(Q=>n.find(ue=>ue.accessor===Q)).map(Q=>({...Q,hidden:Q?.hidden||!I.find(ue=>ue.accessor===Q?.accessor)?.toggled})).map(Q=>({...Q,width:G.find(ue=>ue[Q?.accessor])?.[Q?.accessor]})):n,[n,M,I,G]),setColumnsOrder:k,columnsOrder:M,resetColumnsOrder:se,columnsToggle:I,setColumnsToggle:B,resetColumnsToggle:ae,columnsWidth:G,setColumnsWidth:ie,setColumnWidth:(Q,ue)=>{let Z=G.map(V=>V[Q]?{[Q]:ue}:V);ie(Z)},setMultipleColumnWidths:Q=>{let ue=G.map(Z=>{let V=Object.keys(Z)[0],pe=Q.find(fe=>fe.accessor===V);return pe?{[V]:pe.width}:Z});ie(ue)},resetColumnsWidth:le}},Bu=typeof window<"u"?ve.useLayoutEffect:ve.useEffect;function ju(i){let n=ve.useRef(i);return n.current=i,n}var Yu="--mantine-datatable-header-height",Fu="--mantine-datatable-footer-height",Wu="--mantine-datatable-selection-column-width",Uu="--mantine-datatable-last-row-border-bottom";function yn(i,n,r){i?.style.setProperty(n,r)}function ks(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 Ls(i,n,r){if(i){let s=new ResizeObserver(u=>{let g=u[0];g&&n(ks(g))});return s.observe(i),()=>{s.disconnect(),r()}}}function Jg({scrollCallbacks:i,withRowBorders:n}){let r={root:ve.useRef(null),table:ve.useRef(null),scrollViewport:ve.useRef(null),header:ve.useRef(null),footer:ve.useRef(null),selectionColumnHeader:ve.useRef(null)},{root:s,table:u,scrollViewport:g,header:m,footer:f,selectionColumnHeader:C}=r,A=ju({withRowBorders:n}),E=ju(i),L=ve.useRef(()=>{}),M=ve.useRef(()=>{}),k=ve.useCallback(I=>{E.current.onScroll?.(I),L.current()},[]);return ve.useEffect(()=>Ls(m.current,I=>{yn(s.current,Yu,`${I.height}px`)},()=>yn(s.current,Yu,"0")),[m.current]),ve.useEffect(()=>Ls(f.current,I=>{yn(s.current,Fu,`${I.height}px`)},()=>yn(s.current,Fu,"0")),[f.current]),ve.useEffect(()=>Ls(C.current,I=>{yn(s.current,Wu,`${I.width}px`)},()=>yn(s.current,Wu,"0")),[C.current]),Bu(()=>{if(typeof window===void 0)return;let I={top:!0,bottom:!0,left:!0,right:!0},B={width:0,height:0},G={width:0,height:0};function ie(ue,Z){let V=I[ue];return I[ue]=Z,yn(s.current,`--mantine-datatable-${ue}-shadow-opacity`,Z?"0":"1"),V}function se(){let ue=B.height-G.height,Z=ue<0;yn(s.current,"--mantine-datatable-footer-position",Z?"relative":"sticky"),yn(s.current,"--mantine-datatable-footer-bottom",Z?`${ue}px`:"0")}function ae(){A.current.withRowBorders&&B.height<G.height?yn(s.current,Uu,`${F.rem("1px")} solid var(--mantine-datatable-border-color)`):yn(s.current,Uu,"unset")}M.current=ae;function le(){let ue=E.current,Z=g.current?.scrollTop??0,V=g.current?.scrollLeft??0,pe=Z===0,fe=B.height-Z-G.height<1,re=ie("top",pe),Oe=ie("bottom",fe);pe&&pe!==re&&ue.onScrollToTop?.(),fe&&fe!==Oe&&ue.onScrollToBottom?.();let De=V===0,N=B.width-V-G.width<1,R=ie("left",De),D=ie("right",N);De&&De!==R&&ue.onScrollToLeft?.(),N&&N!==D&&ue.onScrollToRight?.()}L.current=le;let Q=new ResizeObserver(ue=>{for(let Z of ue)switch(Z.target.tagName){case"TABLE":{B=ks(Z);break}case"DIV":{G=ks(Z);break}}le(),se(),ae()});return Q.observe(u.current),Q.observe(g.current),()=>{Q.disconnect()}},[]),Bu(()=>{M.current()},[n]),{refs:r,onScroll:k}}function Xg(i){let[n,r]=ve.useState(null),s=i?.join(":")||"";return ve.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function e1(i,n){let r=()=>{n(i.map(u=>u.matches))},s=i.map(u=>{try{return u.addEventListener("change",r),()=>u.removeEventListener("change",r)}catch{return u.addListener(r),()=>u.removeListener(r)}});return()=>{s.forEach(u=>u())}}function t1(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function n1(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,u]=ve.useState(r?n:t1(i,n)),g=ve.useRef(null);return ve.useEffect(()=>{if("matchMedia"in window)return g.current=i.map(m=>window.matchMedia(m)),u(g.current.map(m=>m.matches)),e1(g.current,m=>{u(m)})},[i]),s}function r1(i){let n=F.useMantineTheme(),r=ve.useMemo(()=>i.map(u=>(typeof u=="function"?u(n):u)??""),[i,n]),s=ve.useMemo(()=>i.map(()=>!0),[i]);return n1(r,s)}function so(i){let n=F.useMantineTheme(),r=typeof i=="function"?i(n):i;return Mt.useMediaQuery(r||"",!0)}function Ns(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 i1(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Is(i,n){return i.filter((r,s,u)=>s===u.findIndex(g=>n(r)===n(g)))}function zu(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function kt(i,n){return typeof n=="string"?zu(i,n):n(i)}function o1({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:f,allowMultiple:C,initiallyExpanded:A}=i;n&&f==="always"?s=n.map(E=>kt(E,r)):A&&(s=n.filter((E,L)=>A({record:E,index:L})).map(E=>kt(E,r)),C||(s=[s[0]]))}let u,g,m=ve.useState(s);if(i){let{expandable:f,trigger:C,allowMultiple:A,collapseProps:E,content:L}=i;i.expanded?{recordIds:u,onRecordIdsChange:g}=i.expanded:[u,g]=m;let M=k=>g?.(u.filter(I=>I!==kt(k,r)));return{expandOnClick:C!=="always"&&C!=="never",isRowExpanded:k=>C==="always"?!0:u.includes(kt(k,r)),isExpandable:({record:k,index:I})=>f?f({record:k,index:I}):!0,expandRow:k=>{let I=kt(k,r);g?.(A?[...u,I]:[I])},collapseRow:M,collapseProps:E,content:({record:k,index:I})=>()=>L({record:k,index:I,collapse:()=>M(k)})}}}function s1(i,n){let[r,s]=ve.useState(i),[u,g]=ve.useState(i),m=Mt.useTimeout(()=>s(!0),0),f=Mt.useTimeout(()=>g(!1),n||200);return ve.useEffect(()=>{i?(f.clear(),g(!0),m.start()):(m.clear(),s(!1),f.start())},[m,f,i]),{expanded:r,visible:u}}var $s="mantine-datatable-nowrap",Bs="mantine-datatable-ellipsis",Or="mantine-datatable-pointer-cursor",qu="mantine-datatable-context-menu-cursor",a1="mantine-datatable-text-selection-disabled",ao="mantine-datatable-text-align-left",lo="mantine-datatable-text-align-center",uo="mantine-datatable-text-align-right";function l1({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:u,ellipsis:g,textAlign:m,width:f}){return so(r)?O.jsx(F.TableTh,{className:ft({[$s]:u||g,[Bs]:g,[ao]:m==="left",[lo]:m==="center",[uo]:m==="right"},i),style:[{width:f,minWidth:f,maxWidth:f},n],children:s}):null}function u1({shadowVisible:i}){return O.jsx(F.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}function c1({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:u,selectorCellShadowVisible:g,ref:m}){return O.jsx(F.TableTfoot,{ref:m,className:ft("mantine-datatable-footer",i),style:n,children:O.jsxs(F.TableTr,{children:[u&&O.jsx(u1,{shadowVisible:g}),r.map(({hidden:f,...C})=>{if(f)return null;let{accessor:A,visibleMediaQuery:E,textAlign:L,width:M,footer:k,footerClassName:I,footerStyle:B,noWrap:G,ellipsis:ie}={...s,...C};return O.jsx(l1,{className:I,style:B,visibleMediaQuery:E,textAlign:L,width:M,title:k,noWrap:G,ellipsis:ie},A)})]})})}function f1({group:{id:i,columns:n,title:r,textAlign:s,className:u,style:g}}){let m=ve.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),f=r1(m),C=ve.useMemo(()=>n.filter(({hidden:A},E)=>!A&&f?.[E]).length,[n,f]);return C>0?O.jsx(F.TableTh,{colSpan:C,className:ft("mantine-datatable-column-group-header-cell",{[ao]:s==="left",[lo]:s==="center",[uo]:s==="right"},u),style:g,children:r??Ns(i)}):null}function h1(){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 d1(){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 p1({children:i,isActive:n,filterPopoverProps:r,filterPopoverDisableClickOutside:s}){let[u,{close:g,toggle:m}]=Mt.useDisclosure(!1),f=n?d1:h1,C=Mt.useClickOutside(g);return s&&(C=void 0),O.jsxs(F.Popover,{withArrow:!0,shadow:"md",opened:u,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:A=>{A.preventDefault(),m()},onKeyDown:A=>A.stopPropagation(),children:O.jsx(f,{})})}),O.jsx(F.PopoverDropdown,{ref:C,onClick:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),children:typeof i=="function"?i({close:g}):i})]})}var g1=i=>{let{accessor:n,columnRef:r}=i,[s,u]=ve.useState(!1),g=ve.useRef(0),m=ve.useRef({current:0,next:0}),{setMultipleColumnWidths:f}=Rs(),C=ve.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let L=r.current,M=L.nextElementSibling;for(;M;){let ae=M.getAttribute("data-accessor");if(ae&&ae!=="__selection__")break;M=M.nextElementSibling}if(!M)return;let k=M.getAttribute("data-accessor");if(!k)return;let I=k==="__selection__";u(!0),g.current=E.clientX;let B=L.offsetWidth,G=M.offsetWidth;m.current={current:B,next:G};let ie=ae=>{if(!r.current)return;let le=r.current,Q=le.nextElementSibling;if(!Q)return;let ue=ae.clientX-g.current,Z=50,V=m.current.current-Z,pe=m.current.next-Z,fe=Math.max(-V,Math.min(ue,pe)),re=m.current.current+fe,Oe=m.current.next-fe;le.style.width=`${re}px`,Q.style.width=`${Oe}px`,le.style.minWidth=`${re}px`,le.style.maxWidth=`${re}px`,Q.style.minWidth=`${Oe}px`,Q.style.maxWidth=`${Oe}px`},se=()=>{if(!r.current)return;let ae=r.current,le=ae.nextElementSibling;u(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Q=parseInt(ae.style.width)||ae.offsetWidth,ue=le?parseInt(le.style.width)||le.offsetWidth:0,Z=[{accessor:n,width:`${Q}px`}];if(le&&!I){let V=le.getAttribute("data-accessor");V&&Z.push({accessor:V,width:`${ue}px`})}setTimeout(()=>{f(Z)},0),document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",se)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",ie),document.addEventListener("mouseup",se)},[n,f]),A=ve.useCallback(()=>{if(!r.current)return;let E=r.current,L=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let M=[{accessor:n,width:"initial"}];if(L){L.style.width="",L.style.minWidth="",L.style.maxWidth="";let k=L.getAttribute("data-accessor");k&&k!=="__selection__"&&M.push({accessor:k,width:"initial"})}setTimeout(()=>{f(M)},0)},[n,f]);return O.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:C,onDoubleClick:A,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};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:"M12 5l0 14"}),O.jsx("path",{d:"M16 9l-4 -4"}),O.jsx("path",{d:"M8 9l4 -4"})]})}function m1(){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 y1(){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 _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:"M18 6l-12 12"}),O.jsx("path",{d:"M6 6l12 12"})]})}function w1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:u,sortable:g,draggable:m,toggleable:f,resizable:C,sortIcons:A,textAlign:E,width:L,sortStatus:M,onSortStatusChange:k,filter:I,filterPopoverProps:B,filterPopoverDisableClickOutside:G,filtering:ie,sortKey:se}){let{setSourceColumn:ae,setTargetColumn:le,swapColumns:Q,setColumnsToggle:ue}=Rs(),[Z,V]=ve.useState(!1),pe=ve.useRef(null);if(!so(s))return null;let fe=u??Ns(r),re=typeof fe=="string"?fe:void 0,Oe=g&&k?w=>{w?.defaultPrevented||k({sortKey:se,columnAccessor:r,direction:M?.columnAccessor===r?M.direction==="asc"?"desc":"asc":M?.direction??"asc"})}:void 0,De=w=>{w.stopPropagation(),ae(r),V(!1)},N=w=>{w.preventDefault(),le(r),V(!0)},R=()=>{le(r),V(!1),Q()},D=()=>{V(!0)},p=()=>{V(!1)},d=w=>{w.stopPropagation(),ue(h=>h.map(v=>v.accessor===r?{...v,toggled:!1}:v))};return O.jsxs(F.TableTh,{"data-accessor":r,className:ft({"mantine-datatable-header-cell-sortable":g,"mantine-datatable-header-cell-toggleable":f,"mantine-datatable-header-cell-resizable":C},i),style:[{width:L,...C?{minWidth:"1px"}:{minWidth:L,maxWidth:L}},n],role:g?"button":void 0,tabIndex:g?0:void 0,onClick:Oe,onKeyDown:w=>w.key==="Enter"&&Oe?.(),ref:pe,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:ft({"mantine-datatable-header-cell-draggable":m,"mantine-datatable-header-cell-drag-over":Z}),draggable:m,onDragStart:m?De:void 0,onDragEnter:m?D:void 0,onDragOver:m?N:void 0,onDrop:m?R:void 0,onDragLeave:m?p: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:w=>{w.stopPropagation()},children:O.jsx(y1,{})})}):null,O.jsx(F.Box,{className:ft("mantine-datatable-header-cell-sortable-text",{[ao]:E==="left",[lo]:E==="center",[uo]:E==="right"},$s,Bs),title:re,children:fe})]}),f?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:d,children:O.jsx(_1,{})})}):null,g||M?.columnAccessor===r?O.jsx(O.Fragment,{children:M?.columnAccessor===r?O.jsx(F.Center,{className:ft("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":M.direction==="desc"}),role:"img","aria-label":`Sorted ${M.direction==="desc"?"descending":"ascending"}`,children:A?.sorted||O.jsx(v1,{})}):O.jsx(F.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:A?.unsorted||O.jsx(m1,{})})}):null,I?O.jsx(p1,{filterPopoverProps:B,isActive:!!ie,filterPopoverDisableClickOutside:G,children:I}):null]}),C&&r!=="__selection__"?O.jsx(g1,{accessor:r,columnRef:pe}):null]})}function b1({className:i,style:n,trigger:r,shadowVisible:s,checked:u,indeterminate:g,checkboxProps:m,onChange:f,rowSpan:C,ref:A}){let E=!m.disabled;return O.jsx(F.TableTh,{ref:A,className:ft("mantine-datatable-header-selector-cell",{[Or]:r==="cell"&&E},i),style:n,rowSpan:C,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?f:void 0,children:O.jsx(F.Checkbox,{classNames:E?{input:Or}:void 0,checked:u,indeterminate:g,onChange:f,...m,disabled:!(f||m.onChange)||m.disabled})})}function x1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:u,onSortStatusChange:g,columns:m,defaultColumnProps:f,groups:C,selectionTrigger:A,selectionVisible:E,selectionChecked:L,selectionIndeterminate:M,onSelectionChange:k,selectionCheckboxProps:I,selectorCellShadowVisible:B,selectionColumnClassName:G,selectionColumnStyle:ie,ref:se}){let ae=E?O.jsx(b1,{ref:i,className:G,style:ie,trigger:A,shadowVisible:B,checked:L,indeterminate:M,checkboxProps:I,onChange:k,rowSpan:C?2:void 0}):null,{columnsToggle:le,setColumnsToggle:Q}=Rs(),[ue,Z]=ve.useState(!1),V=m.some(re=>re.toggleable),pe=V?Object.fromEntries(m.map(({accessor:re,title:Oe})=>[re,Oe??Ns(String(re))])):void 0,fe=O.jsxs(F.TableThead,{className:ft("mantine-datatable-header",n),style:r,ref:se,onContextMenu:V?re=>{re.preventDefault(),Z(Oe=>!Oe)}:void 0,children:[C&&O.jsxs(F.TableTr,{children:[ae,C.map(re=>O.jsx(f1,{group:re},re.id))]}),O.jsxs(F.TableTr,{children:[!C&&ae,m.map(({hidden:re,...Oe},De)=>{if(re)return null;let{accessor:N,visibleMediaQuery:R,textAlign:D,width:p,title:d,sortable:w,draggable:h,toggleable:v,resizable:S,titleClassName:Y,titleStyle:U,filter:oe,filterPopoverProps:ce,filterPopoverDisableClickOutside:_e,filtering:X,sortKey:ye}={...f,...Oe};return O.jsx(w1,{accessor:N,className:Y,style:U,visibleMediaQuery:R,textAlign:D,width:p,title:d,sortable:w,draggable:h,toggleable:v,resizable:S&&De<m.length-1,sortStatus:s,sortIcons:u,sortKey:ye,onSortStatusChange:g,filter:oe,filterPopoverProps:ce,filterPopoverDisableClickOutside:_e,filtering:X},N)})]})]});return V?O.jsxs(F.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ue,onChange:Z,children:[O.jsx(F.PopoverTarget,{children:fe}),O.jsx(F.PopoverDropdown,{children:O.jsx(F.Stack,{children:le.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:pe[re.accessor],checked:re.toggled,onChange:Oe=>{Q(le.map(De=>De.accessor===re.accessor?{...De,toggled:Oe.currentTarget.checked}:De))}})},re.accessor))})})]}):fe}function C1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:u,color:g}){return O.jsx(F.Center,{className:ft("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:u,color:g}))})}function vt(i,n,r){return i?F.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function S1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:u,stripedColor:g,highlightOnHoverColor:m}){return{"--mantine-datatable-color-light":vt(n,i,"light"),"--mantine-datatable-color-dark":vt(n,i,"dark"),"--mantine-datatable-background-color-light":vt(r,i,"light"),"--mantine-datatable-background-color-dark":vt(r,i,"dark"),"--mantine-datatable-border-color-light":vt(s,i,"light"),"--mantine-datatable-border-color-dark":vt(s,i,"dark"),"--mantine-datatable-row-border-color-light":vt(u,i,"light"),"--mantine-datatable-row-border-color-dark":vt(u,i,"dark"),"--mantine-datatable-striped-color-light":vt(g,i,"light"),"--mantine-datatable-striped-color-dark":vt(g,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":vt(m,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":vt(m,i,"dark")}}function Hu({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":vt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":vt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":vt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":vt(r,i,"dark")}}function D1({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":vt(n,i,"light"),"--mantine-datatable-row-color-dark":vt(n,i,"dark"),"--mantine-datatable-row-background-color-light":vt(r,i,"light"),"--mantine-datatable-row-background-color-dark":vt(r,i,"dark")}}function A1(){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 Gu={xs:F.rem(22),sm:F.rem(26),md:F.rem(32),lg:F.rem(38),xl:F.rem(44)};function O1({size:i,label:n,values:r,value:s,activeTextColor:u,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(A1,{}),style:[{fontWeight:"normal"},f=>({height:Gu[i],paddingLeft:f.spacing[i],paddingRight:f.spacing[i]})],children:s})}),O.jsx(F.MenuDropdown,{children:r.map(f=>{let C=f===s;return O.jsx(F.MenuItem,{className:ft({"mantine-datatable-page-size-selector-active":C}),style:[{height:Gu[i]},C&&(u||g)?A=>Hu({theme:A,paginationActiveTextColor:u,paginationActiveBackgroundColor:g}):void 0],disabled:C,onClick:()=>m(f),children:O.jsx(F.Text,{component:"div",size:i,children:f})},f)})})]})]})}function E1({className:i,style:n,fetching:r,page:s,onPageChange:u,paginationWithEdges:g,paginationWithControls:m,paginationActiveTextColor:f,paginationActiveBackgroundColor:C,paginationSize:A,loadingText:E,noRecordsText:L,paginationText:M,totalRecords:k,recordsPerPage:I,onRecordsPerPageChange:B,recordsPerPageLabel:G,recordsPerPageOptions:ie,recordsLength:se,horizontalSpacing:ae,paginationWrapBreakpoint:le,getPaginationControlProps:Q}){let ue;if(k){let V=(s-1)*I+1,pe=V+(se||0)-1;ue=M({from:V,to:pe,totalRecords:k})}else ue=r?E:L;let Z=so(({breakpoints:V})=>`(min-width: ${typeof le=="number"?`${F.rem(le)}rem`:V[le]||le})`);return O.jsxs(F.Box,{px:ae??"xs",py:"xs",className:ft("mantine-datatable-pagination",i),style:[{flexDirection:Z?"row":"column"},n],children:[O.jsx(F.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:ue}),ie&&O.jsx(O1,{activeTextColor:f,activeBackgroundColor:C,size:A,label:G,values:ie,value:I,onChange:B}),O.jsx(F.Pagination,{classNames:{root:ft("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!se}),control:"mantine-datatable-pagination-pages-control"},style:f||C?V=>Hu({theme:V,paginationActiveTextColor:f,paginationActiveBackgroundColor:C}):void 0,withEdges:g,withControls:m,value:s,onChange:u,size:A,total:Math.ceil(k/I),getControlProps:Q})]})}function T1({className:i,style:n,visibleMediaQuery:r,record:s,index:u,onClick:g,onDoubleClick:m,onContextMenu:f,noWrap:C,ellipsis:A,textAlign:E,width:L,accessor:M,render:k,defaultRender:I,customCellAttributes:B}){return so(r)?O.jsx(F.TableTd,{className:ft({[$s]:C||A,[Bs]:A,[Or]:g||m,[qu]:f,[ao]:E==="left",[lo]:E==="center",[uo]:E==="right"},i),style:[{width:L,minWidth:L,maxWidth:L},n],onClick:g,onDoubleClick:m,onContextMenu:f,...B?.(s,u),children:k?k(s,u):I?I(s,u,M):zu(s,M)}):null}function P1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:u,visible:g}=s1(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:u,...s,children:O.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function M1({className:i,style:n,record:r,index:s,trigger:u,onChange:g,withRightShadow:m,checkboxProps:f,getCheckboxProps:C,...A}){let E={...f,...C(r,s)},L=!A.disabled&&!E.disabled,M=k=>{k.stopPropagation(),u==="cell"&&L&&g?.(k)};return O.jsx(F.TableTd,{className:ft("mantine-datatable-row-selector-cell",{[Or]:u==="cell"&&L},i),style:n,"data-shadow-visible":m||void 0,onClick:M,children:O.jsx(F.Checkbox,{classNames:L?{input:Or}:void 0,onChange:g,...A,...E})})}function R1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:u,selectionTrigger:g,selectionVisible:m,selectionChecked:f,onSelectionChange:C,isRecordSelectable:A,selectionCheckboxProps:E,getSelectionCheckboxProps:L,onClick:M,onDoubleClick:k,onContextMenu:I,onCellClick:B,onCellDoubleClick:G,onCellContextMenu:ie,expansion:se,customAttributes:ae,color:le,backgroundColor:Q,className:ue,style:Z,selectorCellShadowVisible:V,selectionColumnClassName:pe,selectionColumnStyle:fe,rowFactory:re}){let Oe=O.jsxs(O.Fragment,{children:[m&&O.jsx(M1,{className:pe,style:fe,record:i,index:n,trigger:g,withRightShadow:V,checked:f,disabled:!C||(A?!A(i,n):!1),onChange:C,checkboxProps:E,getCheckboxProps:L}),r.map(({hidden:R,hiddenContent:D,...p},d)=>{if(R||D)return null;let{accessor:w,visibleMediaQuery:h,textAlign:v,noWrap:S,ellipsis:Y,width:U,render:oe,cellsClassName:ce,cellsStyle:_e,customCellAttributes:X}={...s,...p};return O.jsx(T1,{className:typeof ce=="function"?ce(i,n):ce,style:_e?.(i,n),visibleMediaQuery:h,record:i,index:n,onClick:B?ye=>B({event:ye,record:i,index:n,column:p,columnIndex:d}):void 0,onDoubleClick:G?ye=>G({event:ye,record:i,index:n,column:p,columnIndex:d}):void 0,onContextMenu:ie?ye=>ie({event:ye,record:i,index:n,column:p,columnIndex:d}):void 0,accessor:w,textAlign:v,noWrap:S,ellipsis:Y,width:U,render:oe,defaultRender:u,customCellAttributes:X},w)})]}),De=se&&O.jsx(P1,{colSpan:r.filter(({hidden:R})=>!R).length+(m?1:0),open:se.isRowExpanded(i),content:se.content({record:i,index:n}),collapseProps:se.collapseProps}),N=k1({record:i,index:n,selectionChecked:f,onClick:M,onDoubleClick:k,onContextMenu:I,expansion:se,customAttributes:ae,color:le,backgroundColor:Q,className:ue,style:Z});return re?re({record:i,index:n,rowProps:N,children:Oe,expandedElement:De}):O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{...N,children:Oe}),De]})}function k1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:u,onContextMenu:g,expansion:m,customAttributes:f,color:C,backgroundColor:A,className:E,style:L}){return{className:ft("mantine-datatable-row",{[Or]:s||u||m?.isExpandable({record:i,index:n})&&m?.expandOnClick},{[qu]:g},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:M=>{if(m){let{isExpandable:k,isRowExpanded:I,expandOnClick:B,expandRow:G,collapseRow:ie}=m;k({record:i,index:n})&&B&&(I(i)?ie(i):G(i))}s?.({event:M,record:i,index:n})},onDoubleClick:u?M=>u({event:M,record:i,index:n}):void 0,onContextMenu:g?M=>g({event:M,record:i,index:n}):void 0,style:[C||A?M=>{let k=C?.(i,n),I=A?.(i,n);return D1({theme:M,color:k,backgroundColor:I})}:void 0,L?.(i,n)],...f?.(i,n)??{}}}function L1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:u,scrollAreaProps:g}){return O.jsxs(F.ScrollArea,{...g,viewportRef:u,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:ft("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),O.jsx("div",{className:ft("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),O.jsx("div",{className:ft("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),O.jsx(F.Box,{className:ft("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow")})]})}function N1({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:u,maxHeight:g,shadow:m,verticalAlign:f="center",fetching:C,columns:A,storeColumnsKey:E,groups:L,pinFirstColumn:M,pinLastColumn:k,defaultColumnProps:I,defaultColumnRender:B,idAccessor:G="id",records:ie,selectionTrigger:se="checkbox",selectedRecords:ae,onSelectedRecordsChange:le,selectionColumnClassName:Q,selectionColumnStyle:ue,isRecordSelectable:Z,selectionCheckboxProps:V,allRecordsSelectionCheckboxProps:pe={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:fe=(Ct,En)=>({"aria-label":`Select record ${En+1}`}),sortStatus:re,sortIcons:Oe,onSortStatusChange:De,horizontalSpacing:N,page:R,onPageChange:D,totalRecords:p,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:v="Records per page",paginationWithEdges:S,paginationWithControls:Y,paginationActiveTextColor:U,paginationActiveBackgroundColor:oe,paginationSize:ce="sm",paginationText:_e=({from:Ct,to:En,totalRecords:Er})=>`${Ct} - ${En} / ${Er}`,paginationWrapBreakpoint:X="sm",getPaginationControlProps:ye=Ct=>Ct==="previous"?{"aria-label":"Previous page"}:Ct==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:me,customLoader:xe,loaderSize:$,loaderType:K,loaderColor:W,loadingText:J="...",emptyState:ee,noRecordsText:Se="No records",noRecordsIcon:l,highlightOnHover:c,striped:_,noHeader:T,onRowClick:z,onRowDoubleClick:te,onRowContextMenu:Ae,onCellClick:be,onCellDoubleClick:Pe,onCellContextMenu:Ce,onScroll:Le,onScrollToTop:Be,onScrollToBottom:Re,onScrollToLeft:nt,onScrollToRight:et,c:Ze,backgroundColor:wt,borderColor:ht,rowBorderColor:Qe,stripedColor:jt,highlightOnHoverColor:mt,rowColor:Yt,rowBackgroundColor:At,rowExpansion:Ft,rowClassName:Vt,rowStyle:yt,customRowAttributes:sn,scrollViewportRef:On,scrollAreaProps:_n,tableRef:Lt,bodyRef:Wt,m:Ut,my:wn,mx:bn,mt:ze,mb:it,ml:Nt,mr:Kt,className:Xn,classNames:Je,style:_t,styles:xn,rowFactory:In,tableWrapper:er,...tr}){let Ct=ve.useMemo(()=>L?.flatMap(Ve=>Ve.columns)??A,[A,L]),En=ve.useMemo(()=>Ct.some(Ve=>Ve.resizable),[Ct]),Er=Qg({key:E,columns:Ct}),{refs:Tn,onScroll:js}=Jg({scrollCallbacks:{onScroll:Le,onScrollToTop:Be,onScrollToBottom:Re,onScrollToLeft:nt,onScrollToRight:et},withRowBorders:tr.withRowBorders}),Ys=Mt.useMergedRef(Tn.table,Lt),Tr=Mt.useMergedRef(Tn.scrollViewport,On),Fs=o1({rowExpansion:Ft,records:ie,idAccessor:G}),Pr=ve.useCallback(Ve=>{Tn.scrollViewport.current?.scrollTo({top:0,left:0}),D(Ve)},[D,Tn.scrollViewport]),Mr=ie?.length,co=ie?.map(Ve=>kt(Ve,G)),nr=!!ae,rr=ae?.map(Ve=>kt(Ve,G)),di=co!==void 0&&rr!==void 0&&rr.length>0,Rr=Z?ie?.filter(Z):ie,kr=Rr?.map(Ve=>kt(Ve,G)),Lr=di&&kr.every(Ve=>rr.includes(Ve)),Ws=di&&kr.some(Ve=>rr.includes(Ve)),Us=ve.useCallback(()=>{ae&&le&&le(Lr?ae.filter(Ve=>!kr.includes(kt(Ve,G))):Is([...ae,...Rr],Ve=>kt(Ve,G)))},[Lr,G,le,kr,Rr,ae]),{lastSelectionChangeIndex:gr,setLastSelectionChangeIndex:fo}=Xg(co),Nr=nr&&!M,pi={m:Ut,my:wn,mx:bn,mt:ze,mb:it,ml:Nt,mr:Kt},zs=ve.useCallback(({children:Ve})=>er?er({children:Ve}):Ve,[er]);return O.jsx($u,{...Er,children:O.jsxs(F.Box,{ref:Tn.root,...pi,className:ft("mantine-datatable",{"mantine-datatable-with-border":i},Xn,Je?.root),style:[Ve=>({...S1({theme:Ve,c:Ze,backgroundColor:wt,borderColor:ht,rowBorderColor:Qe,stripedColor:jt,highlightOnHoverColor:mt}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[m]||m,height:s,minHeight:u,maxHeight:g}),_t,xn?.root,{position:"relative"}],children:[O.jsx(L1,{viewportRef:Tr,leftShadowBehind:nr||!!M,rightShadowBehind:k,onScrollPositionChange:js,scrollAreaProps:_n,children:O.jsx(zs,{children:O.jsxs(F.Table,{ref:Ys,horizontalSpacing:N,className:ft("mantine-datatable-table",{[a1]:r,"mantine-datatable-vertical-align-top":f==="top","mantine-datatable-vertical-align-bottom":f==="bottom","mantine-datatable-pin-last-column":k,"mantine-datatable-selection-column-visible":nr,"mantine-datatable-pin-first-column":M,"mantine-datatable-resizable-columns":En},Je?.table),style:{...xn?.table},"data-striped":Mr&&_||void 0,"data-highlight-on-hover":c||void 0,...tr,children:[T?null:O.jsx($u,{...Er,children:O.jsx(x1,{ref:Tn.header,selectionColumnHeaderRef:Tn.selectionColumnHeader,className:Je?.header,style:xn?.header,columns:Ct,defaultColumnProps:I,groups:L,sortStatus:re,sortIcons:Oe,onSortStatusChange:De,selectionTrigger:se,selectionVisible:nr,selectionChecked:Lr,selectionIndeterminate:Ws&&!Lr,onSelectionChange:Us,selectionCheckboxProps:{...V,...pe},selectorCellShadowVisible:Nr,selectionColumnClassName:Q,selectionColumnStyle:ue})}),O.jsx("tbody",{ref:Wt,children:Mr?ie.map((Ve,Pn)=>{let Ir=kt(Ve,G),gi=rr?.includes(Ir)||!1,vi;return le&&ae&&(vi=ho=>{if(ho.nativeEvent.shiftKey&&gr!==null){let Mn=ie.filter(Pn>gr?($n,Rn)=>Rn>=gr&&Rn<=Pn&&(Z?Z($n,Rn):!0):($n,Rn)=>Rn>=Pn&&Rn<=gr&&(Z?Z($n,Rn):!0));le(gi?i1(ae,Mn,$n=>kt($n,G)):Is([...ae,...Mn],$n=>kt($n,G)))}else le(gi?ae.filter(Mn=>kt(Mn,G)!==Ir):Is([...ae,Ve],Mn=>kt(Mn,G)));fo(Pn)}),O.jsx(R1,{record:Ve,index:Pn,columns:Ct,defaultColumnProps:I,defaultColumnRender:B,selectionTrigger:se,selectionVisible:nr,selectionChecked:gi,onSelectionChange:vi,isRecordSelectable:Z,selectionCheckboxProps:V,getSelectionCheckboxProps:fe,onClick:z,onDoubleClick:te,onCellClick:be,onCellDoubleClick:Pe,onContextMenu:Ae,onCellContextMenu:Ce,expansion:Fs,color:Yt,backgroundColor:At,className:Vt,style:yt,customAttributes:sn,selectorCellShadowVisible:Nr,selectionColumnClassName:Q,selectionColumnStyle:ue,idAccessor:G,rowFactory:In},Ir)}):O.jsx(Vg,{})}),Ct.some(({footer:Ve})=>Ve)&&O.jsx(c1,{ref:Tn.footer,className:Je?.footer,style:xn?.footer,columns:Ct,defaultColumnProps:I,selectionVisible:nr,selectorCellShadowVisible:Nr})]})})}),R&&O.jsx(E1,{className:Je?.pagination,style:xn?.pagination,horizontalSpacing:N,fetching:C,page:R,onPageChange:Pr,totalRecords:p,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:h,recordsPerPageLabel:v,paginationWithEdges:S,paginationWithControls:Y,paginationActiveTextColor:U,paginationActiveBackgroundColor:oe,paginationSize:ce,paginationText:_e,paginationWrapBreakpoint:X,getPaginationControlProps:ye,noRecordsText:Se,loadingText:J,recordsLength:Mr}),O.jsx(C1,{fetching:C,backgroundBlur:me,customContent:xe,size:$,type:K,color:W}),O.jsx(Zg,{icon:l,text:Se,active:!C&&!Mr,children:ee})]})})}var hi={exports:{}};/**
|
|
113
|
+
*/var nu;function Cp(){return nu||(nu=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var u=window.Cookies,g=window.Cookies=r();g.noConflict=function(){return window.Cookies=u,g}}})(function(){function r(){for(var g=0,v={};g<arguments.length;g++){var h=arguments[g];for(var C in h)v[C]=h[C]}return v}function s(g){return g.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function u(g){function v(){}function h(D,E,N){if(!(typeof document>"u")){N=r({path:"/"},v.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 M=JSON.stringify(E);/^[\{\[]/.test(M)&&(E=M)}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={},M=document.cookie?document.cookie.split("; "):[],L=0;L<M.length;L++){var I=M[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 v.set=h,v.get=function(D){return C(D,!1)},v.getJSON=function(D){return C(D,!0)},v.remove=function(D,E){h(D,"",r(E,{expires:-1}))},v.defaults={},v.withConverter=u,v}return u(function(){})})}(tu)),tu.exports}Cp();function Sp(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Ap(){return Sp().getCurrentUser()}function Dp(){return new Promise((i,n)=>{const r=Ap();r===null&&n(null),r?.getSession((s,u)=>{if(s!==null||u===null)return n(null);i({session:u,authenticatedUser:r})})})}async function Op(){const{session:i}=await Dp();return i?.getIdToken().getJwtToken()}ye.createContext(void 0);var Ep="undefined",Tp="object",zi="browser",ru="cpu",iu="device",bs="engine",qi="os",er="name",Hi="type",xs="vendor",Cn="version",Cs="architecture",Ss="major",As="model",Pp="console",Mp="mobile",Rp="tablet",kp="smarttv",Lp="wearable",Np="embedded",Ip=typeof window!==Ep,Ds=Ip&&window.navigator?window.navigator:void 0;Ds&&Ds.userAgentData&&Ds.userAgentData;var Gi=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Vi=function(i){for(var n in i){var r=i[n];typeof r==Tp&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Vi.call(i.init,[[zi,[er,Cn,Ss,Hi]],[ru,[Cs]],[iu,[Hi,As,xs]],[bs,[er,Cn]],[qi,[er,Cn]]]),Vi.call(i.isIgnore,[[zi,[Cn,Ss]],[bs,[Cn]],[qi,[Cn]]]),Vi.call(i.isIgnoreRgx,[[zi,/ ?browser$/i],[qi,/ ?os$/i]]),Vi.call(i.toString,[[zi,[er,Cn]],[ru,[Cs]],[iu,[xs,As]],[bs,[er,Cn]],[qi,[er,Cn]]]),i})(),Gi([er,Cn,Ss,Hi]),Gi([Cs]),Gi([As,xs,Hi,Pp,Mp,kp,Rp,Lp,Np]),Gi([er,Cn]);var Os={exports:{}},$p=Os.exports,ou;function Bp(){return ou||(ou=1,function(i,n){(function(r,s){i.exports=s()})($p,()=>(()=>{var r={873:(v,h)=>{var C,D,E=function(){var N=function(k,T){var A=k,p=oe[T],d=null,w=0,f=null,m=[],S={},Y=function(B,Z){d=function(W){for(var V=new Array(W),ee=0;ee<W;ee+=1){V[ee]=new Array(W);for(var Se=0;Se<W;Se+=1)V[ee][Se]=null}return V}(w=4*A+17),G(0,0),G(w-7,0),G(0,w-7),ue(),ie(),X(B,Z),A>=7&&we(B),f==null&&(f=_e(A,p,m)),be(f,Z)},G=function(B,Z){for(var W=-1;W<=7;W+=1)if(!(B+W<=-1||w<=B+W))for(var V=-1;V<=7;V+=1)Z+V<=-1||w<=Z+V||(d[B+W][Z+V]=0<=W&&W<=6&&(V==0||V==6)||0<=V&&V<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=V&&V<=4)},ie=function(){for(var B=8;B<w-8;B+=1)d[B][6]==null&&(d[B][6]=B%2==0);for(var Z=8;Z<w-8;Z+=1)d[6][Z]==null&&(d[6][Z]=Z%2==0)},ue=function(){for(var B=le.getPatternPosition(A),Z=0;Z<B.length;Z+=1)for(var W=0;W<B.length;W+=1){var V=B[Z],ee=B[W];if(d[V][ee]==null)for(var Se=-2;Se<=2;Se+=1)for(var l=-2;l<=2;l+=1)d[V+Se][ee+l]=Se==-2||Se==2||l==-2||l==2||Se==0&&l==0}},we=function(B){for(var Z=le.getBCHTypeNumber(A),W=0;W<18;W+=1){var V=!B&&(Z>>W&1)==1;d[Math.floor(W/3)][W%3+w-8-3]=V}for(W=0;W<18;W+=1)V=!B&&(Z>>W&1)==1,d[W%3+w-8-3][Math.floor(W/3)]=V},X=function(B,Z){for(var W=p<<3|Z,V=le.getBCHTypeInfo(W),ee=0;ee<15;ee+=1){var Se=!B&&(V>>ee&1)==1;ee<6?d[ee][8]=Se:ee<8?d[ee+1][8]=Se:d[w-15+ee][8]=Se}for(ee=0;ee<15;ee+=1)Se=!B&&(V>>ee&1)==1,ee<8?d[8][w-ee-1]=Se:ee<9?d[8][15-ee-1+1]=Se:d[8][15-ee-1]=Se;d[w-8][8]=!B},be=function(B,Z){for(var W=-1,V=w-1,ee=7,Se=0,l=le.getMaskFunction(Z),c=w-1;c>0;c-=2)for(c==6&&(c-=1);;){for(var _=0;_<2;_+=1)if(d[V][c-_]==null){var R=!1;Se<B.length&&(R=(B[Se]>>>ee&1)==1),l(V,c-_)&&(R=!R),d[V][c-_]=R,(ee-=1)==-1&&(Se+=1,ee=7)}if((V+=W)<0||w<=V){V-=W,W=-W;break}}},_e=function(B,Z,W){for(var V=Q.getRSBlocks(B,Z),ee=ne(),Se=0;Se<W.length;Se+=1){var l=W[Se];ee.put(l.getMode(),4),ee.put(l.getLength(),le.getLengthInBits(l.getMode(),B)),l.write(ee)}var c=0;for(Se=0;Se<V.length;Se+=1)c+=V[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(_,R){for(var U=0,te=0,Ae=0,Ce=new Array(R.length),Pe=new Array(R.length),me=0;me<R.length;me+=1){var Re=R[me].dataCount,Ie=R[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=le.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 nt=ke+Qe.getLength()-Pe[me].length;Pe[me][ke]=nt>=0?Qe.getAt(nt):0}}var Et=0;for(ke=0;ke<R.length;ke+=1)Et+=R[ke].totalCount;var pt=new Array(Et),rt=0;for(ke=0;ke<te;ke+=1)for(me=0;me<R.length;me+=1)ke<Ce[me].length&&(pt[rt]=Ce[me][ke],rt+=1);for(ke=0;ke<Ae;ke+=1)for(me=0;me<R.length;me+=1)ke<Pe[me].length&&(pt[rt]=Pe[me][ke],rt+=1);return pt}(ee,V)};S.addData=function(B,Z){var W=null;switch(Z=Z||"Byte"){case"Numeric":W=J(B);break;case"Alphanumeric":W=K(B);break;case"Byte":W=de(B);break;case"Kanji":W=he(B);break;default:throw"mode:"+Z}m.push(W),f=null},S.isDark=function(B,Z){if(B<0||w<=B||Z<0||w<=Z)throw B+","+Z;return d[B][Z]},S.getModuleCount=function(){return w},S.make=function(){if(A<1){for(var B=1;B<40;B++){for(var Z=Q.getRSBlocks(B,p),W=ne(),V=0;V<m.length;V++){var ee=m[V];W.put(ee.getMode(),4),W.put(ee.getLength(),le.getLengthInBits(ee.getMode(),B)),ee.write(W)}var Se=0;for(V=0;V<Z.length;V++)Se+=Z[V].dataCount;if(W.getLengthInBits()<=8*Se)break}A=B}Y(!1,function(){for(var l=0,c=0,_=0;_<8;_+=1){Y(!0,_);var R=le.getLostPoint(S);(_==0||l>R)&&(l=R,c=_)}return c}())},S.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 V=0;V<S.getModuleCount();V+=1){W+="<tr>";for(var ee=0;ee<S.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+=S.isDark(V,ee)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},S.createSvgTag=function(B,Z,W,V){var ee={};typeof arguments[0]=="object"&&(B=(ee=arguments[0]).cellSize,Z=ee.margin,W=ee.alt,V=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,(V=typeof V=="string"?{text:V}:V||{}).text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var Se,l,c,_,R=S.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="'+R+'px" height="'+R+'px"',U+=' viewBox="0 0 '+R+" "+R+'" ',U+=' preserveAspectRatio="xMinYMin meet"',U+=V.text||W.text?' role="img" aria-labelledby="'+ve([V.id,W.id].join(" ").trim())+'"':"",U+=">",U+=V.text?'<title id="'+ve(V.id)+'">'+ve(V.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="',l=0;l<S.getModuleCount();l+=1)for(c=l*B+Z,Se=0;Se<S.getModuleCount();Se+=1)S.isDark(l,Se)&&(U+="M"+(Se*B+Z)+","+c+_);return(U+='" stroke="transparent" fill="black"/>')+"</svg>"},S.createDataURL=function(B,Z){B=B||2,Z=Z===void 0?4*B:Z;var W=S.getModuleCount()*B+2*Z,V=Z,ee=W-Z;return Oe(W,W,function(Se,l){if(V<=Se&&Se<ee&&V<=l&&l<ee){var c=Math.floor((Se-V)/B),_=Math.floor((l-V)/B);return S.isDark(_,c)?0:1}return 1})},S.createImgTag=function(B,Z,W){B=B||2,Z=Z===void 0?4*B:Z;var V=S.getModuleCount()*B+2*Z,ee="";return ee+="<img",ee+=' src="',ee+=S.createDataURL(B,Z),ee+='"',ee+=' width="',ee+=V,ee+='"',ee+=' height="',ee+=V,ee+='"',W&&(ee+=' alt="',ee+=ve(W),ee+='"'),ee+"/>"};var ve=function(B){for(var Z="",W=0;W<B.length;W+=1){var V=B.charAt(W);switch(V){case"<":Z+="<";break;case">":Z+=">";break;case"&":Z+="&";break;case'"':Z+=""";break;default:Z+=V}}return Z};return S.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*S.getModuleCount()+2*Ce,Qe=Ce,nt=Xe-Ce,Et={"██":"█","█ ":"▀"," █":"▄"," ":" "},pt={"██":"▀","█ ":"▀"," █":" "," ":" "},rt="";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<nt&&Qe<=Pe&&Pe<nt&&S.isDark(Re,Math.floor((me-Qe)/1))&&(ke=" "),Qe<=me&&me<nt&&Qe<=Pe+1&&Pe+1<nt&&S.isDark(Ie,Math.floor((me-Qe)/1))?ke+=" ":ke+="█",rt+=Ce<1&&Pe+1>=nt?pt[ke]:Et[ke];rt+=`
|
|
114
|
+
`}return Xe%2&&Ce>0?rt.substring(0,rt.length-Xe-1)+Array(Xe+1).join("▀"):rt.substring(0,rt.length-1)}(Z);B-=1,Z=Z===void 0?2*B:Z;var W,V,ee,Se,l=S.getModuleCount()*B+2*Z,c=Z,_=l-Z,R=Array(B+1).join("██"),U=Array(B+1).join(" "),te="",Ae="";for(W=0;W<l;W+=1){for(ee=Math.floor((W-c)/B),Ae="",V=0;V<l;V+=1)Se=1,c<=V&&V<_&&c<=W&&W<_&&S.isDark(ee,Math.floor((V-c)/B))&&(Se=0),Ae+=Se?R:U;for(ee=0;ee<B;ee+=1)te+=Ae+`
|
|
115
|
+
`}return te.substring(0,te.length-1)},S.renderTo2dContext=function(B,Z){Z=Z||2;for(var W=S.getModuleCount(),V=0;V<W;V++)for(var ee=0;ee<W;ee++)B.fillStyle=S.isDark(V,ee)?"black":"white",B.fillRect(V*Z,ee*Z,Z,Z)},S};N.stringToBytes=(N.stringToBytesFuncs={default:function(k){for(var T=[],A=0;A<k.length;A+=1){var p=k.charCodeAt(A);T.push(255&p)}return T}}).default,N.createStringToBytes=function(k,T){var A=function(){for(var d=De(k),w=function(){var ie=d.read();if(ie==-1)throw"eof";return ie},f=0,m={};;){var S=d.read();if(S==-1)break;var Y=w(),G=w()<<8|w();m[String.fromCharCode(S<<8|Y)]=G,f+=1}if(f!=T)throw f+" != "+T;return m}(),p=63;return function(d){for(var w=[],f=0;f<d.length;f+=1){var m=d.charCodeAt(f);if(m<128)w.push(m);else{var S=A[d.charAt(f)];typeof S=="number"?(255&S)==S?w.push(S):(w.push(S>>>8),w.push(255&S)):w.push(p)}}return w}};var M,L,I,$,H,oe={L:1,M:0,Q:3,H:2},le=(M=[[],[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 M[k-1]},$.getMaskFunction=function(k){switch(k){case 0:return function(T,A){return(T+A)%2==0};case 1:return function(T,A){return T%2==0};case 2:return function(T,A){return A%3==0};case 3:return function(T,A){return(T+A)%3==0};case 4:return function(T,A){return(Math.floor(T/2)+Math.floor(A/3))%2==0};case 5:return function(T,A){return T*A%2+T*A%3==0};case 6:return function(T,A){return(T*A%2+T*A%3)%2==0};case 7:return function(T,A){return(T*A%3+(T+A)%2)%2==0};default:throw"bad maskPattern:"+k}},$.getErrorCorrectPolynomial=function(k){for(var T=ce([1],0),A=0;A<k;A+=1)T=T.multiply(ce([1,se.gexp(A)],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(),A=0,p=0;p<T;p+=1)for(var d=0;d<T;d+=1){for(var w=0,f=k.isDark(p,d),m=-1;m<=1;m+=1)if(!(p+m<0||T<=p+m))for(var S=-1;S<=1;S+=1)d+S<0||T<=d+S||m==0&&S==0||f==k.isDark(p+m,d+S)&&(w+=1);w>5&&(A+=3+w-5)}for(p=0;p<T-1;p+=1)for(d=0;d<T-1;d+=1){var Y=0;k.isDark(p,d)&&(Y+=1),k.isDark(p+1,d)&&(Y+=1),k.isDark(p,d+1)&&(Y+=1),k.isDark(p+1,d+1)&&(Y+=1),Y!=0&&Y!=4||(A+=3)}for(p=0;p<T;p+=1)for(d=0;d<T-6;d+=1)k.isDark(p,d)&&!k.isDark(p,d+1)&&k.isDark(p,d+2)&&k.isDark(p,d+3)&&k.isDark(p,d+4)&&!k.isDark(p,d+5)&&k.isDark(p,d+6)&&(A+=40);for(d=0;d<T;d+=1)for(p=0;p<T-6;p+=1)k.isDark(p,d)&&!k.isDark(p+1,d)&&k.isDark(p+2,d)&&k.isDark(p+3,d)&&k.isDark(p+4,d)&&!k.isDark(p+5,d)&&k.isDark(p+6,d)&&(A+=40);var G=0;for(d=0;d<T;d+=1)for(p=0;p<T;p+=1)k.isDark(p,d)&&(G+=1);return A+Math.abs(100*G/T/T-50)/5*10},$),se=function(){for(var k=new Array(256),T=new Array(256),A=0;A<8;A+=1)k[A]=1<<A;for(A=8;A<256;A+=1)k[A]=k[A-4]^k[A-5]^k[A-6]^k[A-8];for(A=0;A<255;A+=1)T[k[A]]=A;return{glog:function(p){if(p<1)throw"glog("+p+")";return T[p]},gexp:function(p){for(;p<0;)p+=255;for(;p>=256;)p-=255;return k[p]}}}();function ce(k,T){if(k.length===void 0)throw k.length+"/"+T;var A=function(){for(var d=0;d<k.length&&k[d]==0;)d+=1;for(var w=new Array(k.length-d+T),f=0;f<k.length-d;f+=1)w[f]=k[f+d];return w}(),p={getAt:function(d){return A[d]},getLength:function(){return A.length},multiply:function(d){for(var w=new Array(p.getLength()+d.getLength()-1),f=0;f<p.getLength();f+=1)for(var m=0;m<d.getLength();m+=1)w[f+m]^=se.gexp(se.glog(p.getAt(f))+se.glog(d.getAt(m)));return ce(w,0)},mod:function(d){if(p.getLength()-d.getLength()<0)return p;for(var w=se.glog(p.getAt(0))-se.glog(d.getAt(0)),f=new Array(p.getLength()),m=0;m<p.getLength();m+=1)f[m]=p.getAt(m);for(m=0;m<d.getLength();m+=1)f[m]^=se.gexp(se.glog(d.getAt(m))+w);return ce(f,0).mod(d)}};return p}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(p,d){var w={};return w.totalCount=p,w.dataCount=d,w},A={getRSBlocks:function(p,d){var w=function(we,X){switch(X){case oe.L:return k[4*(we-1)+0];case oe.M:return k[4*(we-1)+1];case oe.Q:return k[4*(we-1)+2];case oe.H:return k[4*(we-1)+3];default:return}}(p,d);if(w===void 0)throw"bad rs block @ typeNumber:"+p+"/errorCorrectionLevel:"+d;for(var f=w.length/3,m=[],S=0;S<f;S+=1)for(var Y=w[3*S+0],G=w[3*S+1],ie=w[3*S+2],ue=0;ue<Y;ue+=1)m.push(T(G,ie));return m}};return A}(),ne=function(){var k=[],T=0,A={getBuffer:function(){return k},getAt:function(p){var d=Math.floor(p/8);return(k[d]>>>7-p%8&1)==1},put:function(p,d){for(var w=0;w<d;w+=1)A.putBit((p>>>d-w-1&1)==1)},getLengthInBits:function(){return T},putBit:function(p){var d=Math.floor(T/8);k.length<=d&&k.push(0),p&&(k[d]|=128>>>T%8),T+=1}};return A},J=function(k){var T=k,A={getMode:function(){return 1},getLength:function(w){return T.length},write:function(w){for(var f=T,m=0;m+2<f.length;)w.put(p(f.substring(m,m+3)),10),m+=3;m<f.length&&(f.length-m==1?w.put(p(f.substring(m,m+1)),4):f.length-m==2&&w.put(p(f.substring(m,m+2)),7))}},p=function(w){for(var f=0,m=0;m<w.length;m+=1)f=10*f+d(w.charAt(m));return f},d=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return A},K=function(k){var T=k,A={getMode:function(){return 2},getLength:function(d){return T.length},write:function(d){for(var w=T,f=0;f+1<w.length;)d.put(45*p(w.charAt(f))+p(w.charAt(f+1)),11),f+=2;f<w.length&&d.put(p(w.charAt(f)),6)}},p=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-48;if("A"<=d&&d<="Z")return d.charCodeAt(0)-65+10;switch(d){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 :"+d}};return A},de=function(k){var T=N.stringToBytes(k);return{getMode:function(){return 4},getLength:function(A){return T.length},write:function(A){for(var p=0;p<T.length;p+=1)A.put(T[p],8)}}},he=function(k){var T=N.stringToBytesFuncs.SJIS;if(!T)throw"sjis not supported.";(function(){var d=T("友");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var A=T(k),p={getMode:function(){return 8},getLength:function(d){return~~(A.length/2)},write:function(d){for(var w=A,f=0;f+1<w.length;){var m=(255&w[f])<<8|255&w[f+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(f+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),d.put(m,13),f+=2}if(f<w.length)throw"illegal char at "+(f+1)}};return p},ae=function(){var k=[],T={writeByte:function(A){k.push(255&A)},writeShort:function(A){T.writeByte(A),T.writeByte(A>>>8)},writeBytes:function(A,p,d){p=p||0,d=d||A.length;for(var w=0;w<d;w+=1)T.writeByte(A[w+p])},writeString:function(A){for(var p=0;p<A.length;p+=1)T.writeByte(A.charCodeAt(p))},toByteArray:function(){return k},toString:function(){var A="";A+="[";for(var p=0;p<k.length;p+=1)p>0&&(A+=","),A+=k[p];return A+"]"}};return T},De=function(k){var T=k,A=0,p=0,d=0,w={read:function(){for(;d<8;){if(A>=T.length){if(d==0)return-1;throw"unexpected end of file./"+d}var m=T.charAt(A);if(A+=1,m=="=")return d=0,-1;m.match(/^\s$/)||(p=p<<6|f(m.charCodeAt(0)),d+=6)}var S=p>>>d-8&255;return d-=8,S}},f=function(m){if(65<=m&&m<=90)return m-65;if(97<=m&&m<=122)return m-97+26;if(48<=m&&m<=57)return m-48+52;if(m==43)return 62;if(m==47)return 63;throw"c:"+m};return w},Oe=function(k,T,A){for(var p=function(G,ie){var ue=G,we=ie,X=new Array(G*ie),be={setPixel:function(B,Z,W){X[Z*ue+B]=W},write:function(B){B.writeString("GIF87a"),B.writeShort(ue),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(ue),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),V=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 l,c,_,R=ae(),U=(l=R,c=0,_=0,{write:function(Pe,me){if(Pe>>>me)throw"length over";for(;c+me>=8;)l.writeByte(255&(Pe<<c|_)),me-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=me},flush:function(){c>0&&l.writeByte(_)}});U.write(Z,V);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),V),ee.size()<4095&&(ee.size()==1<<V&&(V+=1),ee.add(Ae+Ce)),Ae=Ce)}return U.write(ee.indexOf(Ae),V),U.write(W,V),U.flush(),R.toByteArray()},ve=function(){var B={},Z=0,W={add:function(V){if(W.contains(V))throw"dup key:"+V;B[V]=Z,Z+=1},size:function(){return Z},indexOf:function(V){return B[V]},contains:function(V){return B[V]!==void 0}};return W};return be}(k,T),d=0;d<T;d+=1)for(var w=0;w<k;w+=1)p.setPixel(w,d,A(w,d));var f=ae();p.write(f);for(var m=function(){var G=0,ie=0,ue=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,ie+=8,ue+=1;ie>=6;)be(G>>>ie-6),ie-=6},X.flush=function(){if(ie>0&&(be(G<<6-ie),G=0,ie=0),ue%3!=0)for(var ve=3-ue%3,B=0;B<ve;B+=1)we+="="},X.toString=function(){return we},X}(),S=f.toByteArray(),Y=0;Y<S.length;Y+=1)m.writeByte(S[Y]);return m.flush(),"data:image/gif;base64,"+m};return N}();E.stringToBytesFuncs["UTF-8"]=function(N){return function(M){for(var L=[],I=0;I<M.length;I++){var $=M.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&M.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||(v.exports=D)}},s={};function u(v){var h=s[v];if(h!==void 0)return h.exports;var C=s[v]={exports:{}};return r[v](C,C.exports,u),C.exports}u.n=v=>{var h=v&&v.__esModule?()=>v.default:()=>v;return u.d(h,{a:h}),h},u.d=(v,h)=>{for(var C in h)u.o(h,C)&&!u.o(v,C)&&Object.defineProperty(v,C,{enumerable:!0,get:h[C]})},u.o=(v,h)=>Object.prototype.hasOwnProperty.call(v,h);var g={};return(()=>{u.d(g,{default:()=>T});const v=A=>!!A&&typeof A=="object"&&!Array.isArray(A);function h(A,...p){if(!p.length)return A;const d=p.shift();return d!==void 0&&v(A)&&v(d)?(A=Object.assign({},A),Object.keys(d).forEach(w=>{const f=A[w],m=d[w];Array.isArray(f)&&Array.isArray(m)?A[w]=m:v(f)&&v(m)?A[w]=h(Object.assign({},f),m):A[w]=m}),h(A,...p)):A}function C(A,p){const d=document.createElement("a");d.download=p,d.href=A,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const D={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,f){let m;switch(this._type){case"dots":m=this._drawDot;break;case"classy":m=this._drawClassy;break;case"classy-rounded":m=this._drawClassyRounded;break;case"rounded":m=this._drawRounded;break;case"extra-rounded":m=this._drawExtraRounded;break;default:m=this._drawSquare}m.call(this,{x:p,y:d,size:w,getNeighbor:f})}_rotateFigure({x:p,y:d,size:w,rotation:f=0,draw:m}){var S;const Y=p+w/2,G=d+w/2;m(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+d/2)),this._element.setAttribute("cy",String(f+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(f)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${f}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${f}v ${d}h ${d}v `+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_basicCornerExtraRounded(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${f}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${f}v `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${d/2} ${d/2}h `+d/2+"v "+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_drawDot({x:p,y:d,size:w}){this._basicDot({x:p,y:d,size:w,rotation:0})}_drawSquare({x:p,y:d,size:w}){this._basicSquare({x:p,y:d,size:w,rotation:0})}_drawRounded({x:p,y:d,size:w,getNeighbor:f}){const m=f?+f(-1,0):0,S=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0,ie=m+S+Y+G;if(ie!==0)if(ie>2||m&&S||Y&&G)this._basicSquare({x:p,y:d,size:w,rotation:0});else{if(ie===2){let ue=0;return m&&Y?ue=Math.PI/2:Y&&S?ue=Math.PI:S&&G&&(ue=-Math.PI/2),void this._basicCornerRounded({x:p,y:d,size:w,rotation:ue})}if(ie===1){let ue=0;return Y?ue=Math.PI/2:S?ue=Math.PI:G&&(ue=-Math.PI/2),void this._basicSideRounded({x:p,y:d,size:w,rotation:ue})}}else this._basicDot({x:p,y:d,size:w,rotation:0})}_drawExtraRounded({x:p,y:d,size:w,getNeighbor:f}){const m=f?+f(-1,0):0,S=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0,ie=m+S+Y+G;if(ie!==0)if(ie>2||m&&S||Y&&G)this._basicSquare({x:p,y:d,size:w,rotation:0});else{if(ie===2){let ue=0;return m&&Y?ue=Math.PI/2:Y&&S?ue=Math.PI:S&&G&&(ue=-Math.PI/2),void this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:ue})}if(ie===1){let ue=0;return Y?ue=Math.PI/2:S?ue=Math.PI:G&&(ue=-Math.PI/2),void this._basicSideRounded({x:p,y:d,size:w,rotation:ue})}}else this._basicDot({x:p,y:d,size:w,rotation:0})}_drawClassy({x:p,y:d,size:w,getNeighbor:f}){const m=f?+f(-1,0):0,S=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0;m+S+Y+G!==0?m||Y?S||G?this._basicSquare({x:p,y:d,size:w,rotation:0}):this._basicCornerRounded({x:p,y:d,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:p,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:d,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:p,y:d,size:w,getNeighbor:f}){const m=f?+f(-1,0):0,S=f?+f(1,0):0,Y=f?+f(0,-1):0,G=f?+f(0,1):0;m+S+Y+G!==0?m||Y?S||G?this._basicSquare({x:p,y:d,size:w,rotation:0}):this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:p,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:d,size:w,rotation:Math.PI/2})}}const N={dot:"dot",square:"square",extraRounded:"extra-rounded"},M=Object.values(N);class L{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,f){let m;switch(this._type){case N.square:m=this._drawSquare;break;case N.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:p,y:d,size:w,rotation:f})}_rotateFigure({x:p,y:d,size:w,rotation:f=0,draw:m}){var S;const Y=p+w/2,G=d+w/2;m(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(p){const{size:d,x:w,y:f}=p,m=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{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 ${w+d/2} ${f}a ${d/2} ${d/2} 0 1 0 0.1 0zm 0 ${m}a ${d/2-m} ${d/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(p){const{size:d,x:w,y:f}=p,m=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{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 ${w} ${f}v ${d}h ${d}v `+-d+`zM ${w+m} ${f+m}h `+(d-2*m)+"v "+(d-2*m)+"h "+(2*m-d)+"z")}}))}_basicExtraRounded(p){const{size:d,x:w,y:f}=p,m=d/7;this._rotateFigure(Object.assign(Object.assign({},p),{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 ${w} ${f+2.5*m}v `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*m}h `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*-m}v `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*-m}h `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*m}M ${w+2.5*m} ${f+m}h `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*m}v `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*m}h `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*-m}v `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*-m}`)}}))}_drawDot({x:p,y:d,size:w,rotation:f}){this._basicDot({x:p,y:d,size:w,rotation:f})}_drawSquare({x:p,y:d,size:w,rotation:f}){this._basicSquare({x:p,y:d,size:w,rotation:f})}_drawExtraRounded({x:p,y:d,size:w,rotation:f}){this._basicExtraRounded({x:p,y:d,size:w,rotation:f})}}const I={dot:"dot",square:"square"},$=Object.values(I);class H{constructor({svg:p,type:d,window:w}){this._svg=p,this._type=d,this._window=w}draw(p,d,w,f){let m;m=this._type===I.square?this._drawSquare:this._drawDot,m.call(this,{x:p,y:d,size:w,rotation:f})}_rotateFigure({x:p,y:d,size:w,rotation:f=0,draw:m}){var S;const Y=p+w/2,G=d+w/2;m(),(S=this._element)===null||S===void 0||S.setAttribute("transform",`rotate(${180*f/Math.PI},${Y},${G})`)}_basicDot(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(w+d/2)),this._element.setAttribute("cy",String(f+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(p){const{size:d,x:w,y:f}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(w)),this._element.setAttribute("y",String(f)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:p,y:d,size:w,rotation:f}){this._basicDot({x:p,y:d,size:w,rotation:f})}_drawSquare({x:p,y:d,size:w,rotation:f}){this._basicSquare({x:p,y:d,size:w,rotation:f})}}const oe="circle",le=[[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]],se=[[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(p,d){this._roundSize=w=>this._options.dotsOptions.roundSize?Math.floor(w):w,this._window=d,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(p.width)),this._element.setAttribute("height",String(p.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),p.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${p.width} ${p.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=p.image,this._instanceId=ce.instanceCount++,this._options=p}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(p){const d=p.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,f=this._options.shape===oe?w/Math.sqrt(2):w,m=this._roundSize(f/d);let S={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=p,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:G}=this._options,ie=Y.imageSize*D[G.errorCorrectionLevel],ue=Math.floor(ie*d*d);S=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:ue,maxHiddenAxisDots:d-14,dotSize:m})}this.drawBackground(),this.drawDots((Y,G)=>{var ie,ue,we,X,be,_e;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(d-S.hideYDots)/2&&Y<(d+S.hideYDots)/2&&G>=(d-S.hideXDots)/2&&G<(d+S.hideXDots)/2||!((ie=le[Y])===null||ie===void 0)&&ie[G]||!((ue=le[Y-d+7])===null||ue===void 0)&&ue[G]||!((we=le[Y])===null||we===void 0)&&we[G-d+7]||!((X=se[Y])===null||X===void 0)&&X[G]||!((be=se[Y-d+7])===null||be===void 0)&&be[G]||!((_e=se[Y])===null||_e===void 0)&&_e[G-d+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:S.width,height:S.height,count:d,dotSize:m})}drawBackground(){var p,d,w;const f=this._element,m=this._options;if(f){const S=(p=m.backgroundOptions)===null||p===void 0?void 0:p.gradient,Y=(d=m.backgroundOptions)===null||d===void 0?void 0:d.color;let G=m.height,ie=m.width;if(S||Y){const ue=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),!((w=m.backgroundOptions)===null||w===void 0)&&w.round&&(G=ie=Math.min(m.width,m.height),ue.setAttribute("rx",String(G/2*m.backgroundOptions.round))),ue.setAttribute("x",String(this._roundSize((m.width-ie)/2))),ue.setAttribute("y",String(this._roundSize((m.height-G)/2))),ue.setAttribute("width",String(ie)),ue.setAttribute("height",String(G)),this._backgroundClipPath.appendChild(ue),this._createColor({options:S,color:Y,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(p){var d,w;if(!this._qr)throw"QR code is not defined";const f=this._options,m=this._qr.getModuleCount();if(m>f.width||m>f.height)throw"The canvas is too small.";const S=Math.min(f.width,f.height)-2*f.margin,Y=f.shape===oe?S/Math.sqrt(2):S,G=this._roundSize(Y/m),ie=this._roundSize((f.width-m*G)/2),ue=this._roundSize((f.height-m*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:(d=f.dotsOptions)===null||d===void 0?void 0:d.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<m;X++)for(let be=0;be<m;be++)p&&!p(X,be)||!((w=this._qr)===null||w===void 0)&&w.isDark(X,be)&&(we.draw(ie+be*G,ue+X*G,G,(_e,ve)=>!(be+_e<0||X+ve<0||be+_e>=m||X+ve>=m)&&!(p&&!p(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===oe){const X=this._roundSize((S/G-m)/2),be=m+2*X,_e=ie-X*G,ve=ue-X*G,B=[],Z=this._roundSize(be/2);for(let W=0;W<be;W++){B[W]=[];for(let V=0;V<be;V++)W>=X-1&&W<=be-X&&V>=X-1&&V<=be-X||Math.sqrt((W-Z)*(W-Z)+(V-Z)*(V-Z))>Z?B[W][V]=0:B[W][V]=this._qr.isDark(V-2*X<0?V:V>=m?V-2*X:V-X,W-2*X<0?W:W>=m?W-2*X:W-X)?1:0}for(let W=0;W<be;W++)for(let V=0;V<be;V++)B[W][V]&&(we.draw(_e+V*G,ve+W*G,G,(ee,Se)=>{var l;return!!(!((l=B[W+Se])===null||l===void 0)&&l[V+ee])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const p=this._element,d=this._options;if(!p)throw"Element code is not defined";const w=this._qr.getModuleCount(),f=Math.min(d.width,d.height)-2*d.margin,m=d.shape===oe?f/Math.sqrt(2):f,S=this._roundSize(m/w),Y=7*S,G=3*S,ie=this._roundSize((d.width-w*S)/2),ue=this._roundSize((d.height-w*S)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,X,be])=>{var _e,ve,B,Z,W,V,ee,Se,l,c,_,R,U,te;const Ae=ie+we*S*(w-7),Ce=ue+X*S*(w-7);let Pe=this._dotsClipPath,me=this._dotsClipPath;if((!((_e=d.cornersSquareOptions)===null||_e===void 0)&&_e.gradient||!((ve=d.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=d.cornersSquareOptions)===null||B===void 0?void 0:B.gradient,color:(Z=d.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=d.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&M.includes(d.cornersSquareOptions.type)){const Re=new L({svg:this._element,type:d.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:((V=d.cornersSquareOptions)===null||V===void 0?void 0:V.type)||d.dotsOptions.type,window:this._window});for(let Ie=0;Ie<le.length;Ie++)for(let ke=0;ke<le[Ie].length;ke++)!((ee=le[Ie])===null||ee===void 0)&&ee[ke]&&(Re.draw(Ae+ke*S,Ce+Ie*S,S,(Xe,Qe)=>{var nt;return!!(!((nt=le[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&Pe&&Pe.appendChild(Re._element))}if((!((Se=d.cornersDotOptions)===null||Se===void 0)&&Se.gradient||!((l=d.cornersDotOptions)===null||l===void 0)&&l.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=d.cornersDotOptions)===null||c===void 0?void 0:c.gradient,color:(_=d.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:be,x:Ae+2*S,y:Ce+2*S,height:G,width:G,name:`corners-dot-color-${we}-${X}-${this._instanceId}`})),((R=d.cornersDotOptions)===null||R===void 0?void 0:R.type)&&$.includes(d.cornersDotOptions.type)){const Re=new H({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Re.draw(Ae+2*S,Ce+2*S,G,be),Re._element&&me&&me.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((U=d.cornersDotOptions)===null||U===void 0?void 0:U.type)||d.dotsOptions.type,window:this._window});for(let Ie=0;Ie<se.length;Ie++)for(let ke=0;ke<se[Ie].length;ke++)!((te=se[Ie])===null||te===void 0)&&te[ke]&&(Re.draw(Ae+ke*S,Ce+Ie*S,S,(Xe,Qe)=>{var nt;return!!(!((nt=se[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&me&&me.appendChild(Re._element))}})}loadImage(){return new Promise((p,d)=>{var w;const f=this._options;if(!f.image)return d("Image is not defined");if(!((w=f.nodeCanvas)===null||w===void 0)&&w.loadImage)f.nodeCanvas.loadImage(f.image).then(m=>{var S,Y;if(this._image=m,this._options.imageOptions.saveAsBlob){const G=(S=f.nodeCanvas)===null||S===void 0?void 0:S.createCanvas(this._image.width,this._image.height);(Y=G?.getContext("2d"))===null||Y===void 0||Y.drawImage(m,0,0),this._imageUri=G?.toDataURL()}p()}).catch(d);else{const m=new this._window.Image;typeof f.imageOptions.crossOrigin=="string"&&(m.crossOrigin=f.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(S,Y){return new Promise(G=>{const ie=new Y.XMLHttpRequest;ie.onload=function(){const ue=new Y.FileReader;ue.onloadend=function(){G(ue.result)},ue.readAsDataURL(ie.response)},ie.open("GET",S),ie.responseType="blob",ie.send()})}(f.image||"",this._window)),p()},m.src=f.image}})}async drawImage({width:p,height:d,count:w,dotSize:f}){const m=this._options,S=this._roundSize((m.width-w*f)/2),Y=this._roundSize((m.height-w*f)/2),G=S+this._roundSize(m.imageOptions.margin+(w*f-p)/2),ie=Y+this._roundSize(m.imageOptions.margin+(w*f-d)/2),ue=p-2*m.imageOptions.margin,we=d-2*m.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(ie)),X.setAttribute("width",`${ue}px`),X.setAttribute("height",`${we}px`),this._element.appendChild(X)}_createColor({options:p,color:d,additionalRotation:w,x:f,y:m,height:S,width:Y,name:G}){const ie=Y>S?Y:S,ue=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ue.setAttribute("x",String(f)),ue.setAttribute("y",String(m)),ue.setAttribute("height",String(S)),ue.setAttribute("width",String(Y)),ue.setAttribute("clip-path",`url('#clip-path-${G}')`),p){let we;if(p.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(m+S/2)),we.setAttribute("cx",String(f+Y/2)),we.setAttribute("cy",String(m+S/2)),we.setAttribute("r",String(ie/2));else{const X=((p.rotation||0)+w)%(2*Math.PI),be=(X+2*Math.PI)%(2*Math.PI);let _e=f+Y/2,ve=m+S/2,B=f+Y/2,Z=m+S/2;be>=0&&be<=.25*Math.PI||be>1.75*Math.PI&&be<=2*Math.PI?(_e-=Y/2,ve-=S/2*Math.tan(X),B+=Y/2,Z+=S/2*Math.tan(X)):be>.25*Math.PI&&be<=.75*Math.PI?(ve-=S/2,_e-=Y/2/Math.tan(X),Z+=S/2,B+=Y/2/Math.tan(X)):be>.75*Math.PI&&be<=1.25*Math.PI?(_e+=Y/2,ve+=S/2*Math.tan(X),B-=Y/2,Z-=S/2*Math.tan(X)):be>1.25*Math.PI&&be<=1.75*Math.PI&&(ve+=S/2,_e+=Y/2/Math.tan(X),Z-=S/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)))}p.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)}),ue.setAttribute("fill",`url('#${G}')`),this._defs.appendChild(we)}else d&&ue.setAttribute("fill",d);this._element.appendChild(ue)}}ce.instanceCount=0;const Q=ce,ne="canvas",J={};for(let A=0;A<=40;A++)J[A]=A;const K={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(A){const p=Object.assign({},A);if(!p.colorStops||!p.colorStops.length)throw"Field 'colorStops' is required in gradient";return p.rotation?p.rotation=Number(p.rotation):p.rotation=0,p.colorStops=p.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),p}function he(A){const p=Object.assign({},A);return p.width=Number(p.width),p.height=Number(p.height),p.margin=Number(p.margin),p.imageOptions=Object.assign(Object.assign({},p.imageOptions),{hideBackgroundDots:!!p.imageOptions.hideBackgroundDots,imageSize:Number(p.imageOptions.imageSize),margin:Number(p.imageOptions.margin)}),p.margin>Math.min(p.width,p.height)&&(p.margin=Math.min(p.width,p.height)),p.dotsOptions=Object.assign({},p.dotsOptions),p.dotsOptions.gradient&&(p.dotsOptions.gradient=de(p.dotsOptions.gradient)),p.cornersSquareOptions&&(p.cornersSquareOptions=Object.assign({},p.cornersSquareOptions),p.cornersSquareOptions.gradient&&(p.cornersSquareOptions.gradient=de(p.cornersSquareOptions.gradient))),p.cornersDotOptions&&(p.cornersDotOptions=Object.assign({},p.cornersDotOptions),p.cornersDotOptions.gradient&&(p.cornersDotOptions.gradient=de(p.cornersDotOptions.gradient))),p.backgroundOptions&&(p.backgroundOptions=Object.assign({},p.backgroundOptions),p.backgroundOptions.gradient&&(p.backgroundOptions.gradient=de(p.backgroundOptions.gradient))),p}var ae=u(873),De=u.n(ae);function Oe(A){if(!A)throw new Error("Extension must be defined");A[0]==="."&&(A=A.substring(1));const p={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"}[A.toLowerCase()];if(!p)throw new Error(`Extension "${A}" is not supported`);return p}class k{constructor(p){p!=null&&p.jsdom?this._window=new p.jsdom("",{resources:"usable"}).window:this._window=window,this._options=p?he(h(K,p)):K,this.update()}static _clearContainer(p){p&&(p.innerHTML="")}_setupSvg(){if(!this._qr)return;const p=new Q(this._options,this._window);this._svg=p.getElement(),this._svgDrawingPromise=p.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,p.getElement(),this._options))})}_setupCanvas(){var p,d;this._qr&&(!((p=this._options.nodeCanvas)===null||p===void 0)&&p.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=(d=this._svgDrawingPromise)===null||d===void 0?void 0:d.then(()=>{var w;if(!this._svg)return;const f=this._svg,m=new this._window.XMLSerializer().serializeToString(f),S=btoa(m),Y=`data:${Oe("svg")};base64,${S}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(Y).then(G=>{var ie,ue;G.width=this._options.width,G.height=this._options.height,(ue=(ie=this._nodeCanvas)===null||ie===void 0?void 0:ie.getContext("2d"))===null||ue===void 0||ue.drawImage(G,0,0)});{const G=new this._window.Image;return new Promise(ie=>{G.onload=()=>{var ue,we;(we=(ue=this._domCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||we===void 0||we.drawImage(G,0,0),ie()},G.src=Y})}}))}async _getElement(p="png"){if(!this._qr)throw"QR code is empty";return p.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(p){k._clearContainer(this._container),this._options=p?he(h(this._options,p)):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(d){switch(!0){case/^[0-9]*$/.test(d):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(d):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ne?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(p){if(p){if(typeof p.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ne?this._domCanvas&&p.appendChild(this._domCanvas):this._svg&&p.appendChild(this._svg),this._container=p}}applyExtension(p){if(!p)throw"Extension function should be defined.";this._extension=p,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(p="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(p),w=Oe(p);if(!d)return null;if(p.toLowerCase()==="svg"){const f=`<?xml version="1.0" standalone="no"?>\r
|
|
116
|
+
${new this._window.XMLSerializer().serializeToString(d)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(f):new Blob([f],{type:w})}return new Promise(f=>{const m=d;if("toBuffer"in m)if(w==="image/png")f(m.toBuffer(w));else if(w==="image/jpeg")f(m.toBuffer(w));else{if(w!=="application/pdf")throw Error("Unsupported extension");f(m.toBuffer(w))}else"toBlob"in m&&m.toBlob(f,w,1)})}async download(p){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let d="png",w="qr";typeof p=="string"?(d=p,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof p=="object"&&p!==null&&(p.name&&(w=p.name),p.extension&&(d=p.extension));const f=await this._getElement(d);if(f)if(d.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(f);m=`<?xml version="1.0" standalone="no"?>\r
|
|
117
|
+
`+m,C(`data:${Oe(d)};charset=utf-8,${encodeURIComponent(m)}`,`${w}.svg`)}else C(f.toDataURL(Oe(d)),`${w}.${d}`)}}const T=k})(),g.default})())}(Os)),Os.exports}Bp();const su=ye.createContext(void 0);function jp(i){const n=bn.c(9),{children:r,baseUrl:s,queryClient:u}=i;let g;n[0]!==s||n[1]!==u?(g={baseUrl:s,queryClient:u},n[0]=s,n[1]=u,n[2]=g):g=n[2];let v;n[3]!==r||n[4]!==u?(v=O.jsx(yl,{client:u,children:r}),n[3]=r,n[4]=u,n[5]=v):v=n[5];let h;return n[6]!==g||n[7]!==v?(h=O.jsx(su.Provider,{value:g,children:v}),n[6]=g,n[7]=v,n[8]=h):h=n[8],h}function tr(){const i=ye.useContext(su);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function Yp(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function mr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Op()??""}`,...Yp()}}async function au(i){return fetch(i,{method:"GET",headers:await mr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function lu(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await mr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function uu(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await mr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function cu(i,n){return fetch(i,{method:"POST",headers:await mr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Fp(i,n,r){return fetch(n,{method:i,headers:await mr(),body:r?JSON.stringify(r):void 0}).then(async s=>{if(s.status>=400)throw await s.text();return s}).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function fu(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await mr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}function hu(i,n,r){const s=bn.c(13),{baseUrl:u}=tr();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(Wp),String(D)],s[0]=r,s[1]=n,s[2]=g}else g=s[2];let v;s[5]!==i||s[6]!==u||s[7]!==r?(v=()=>lu(`${u}${i}`,r),s[5]=i,s[6]=u,s[7]=r,s[8]=v):v=s[8];const h=!!r;let C;return s[9]!==g||s[10]!==v||s[11]!==h?(C={queryKey:g,queryFn:v,enabled:h},s[9]=g,s[10]=v,s[11]=h,s[12]=C):C=s[12],bl(C)}function Wp(i){return i.toString()}function du(i,n){const r=bn.c(8),{baseUrl:s}=tr();let u;r[0]!==n?(u=[...n.map(Up)],r[0]=n,r[1]=u):u=r[1];let g;r[2]!==i||r[3]!==s?(g=()=>au(`${s}${i}`),r[2]=i,r[3]=s,r[4]=g):g=r[4];let v;return r[5]!==u||r[6]!==g?(v={queryKey:u,queryFn:g},r[5]=u,r[6]=g,r[7]=v):v=r[7],bl(v)}function Up(i){return i.toString()}function pu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let g;r[0]!==n?(g=[...n.map(qp)],r[0]=n,r[1]=g):g=r[1];let v;r[2]!==i||r[3]!==s?(v=C=>cu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=v):v=r[4];let h;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==v?(h={mutationKey:g,mutationFn:v,onSettled(){return u.invalidateQueries({queryKey:[...n.map(zp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=v,r[9]=h):h=r[9],ls(h)}function zp(i){return i.toString()}function qp(i){return i.toString()}function Es(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let g;r[0]!==n?(g=[...n.map(Gp)],r[0]=n,r[1]=g):g=r[1];let v;r[2]!==i||r[3]!==s?(v=C=>fu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=v):v=r[4];let h;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==v?(h={mutationKey:g,mutationFn:v,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Hp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=v,r[9]=h):h=r[9],ls(h)}function Hp(i){return i.toString()}function Gp(i){return i.toString()}function gu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let g;r[0]!==n?(g=[...n.map(Kp)],r[0]=n,r[1]=g):g=r[1];let v;r[2]!==i||r[3]!==s?(v=C=>uu(`${s}${i}`,C),r[2]=i,r[3]=s,r[4]=v):v=r[4];let h;return r[5]!==u||r[6]!==n||r[7]!==g||r[8]!==v?(h={mutationKey:g,mutationFn:v,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Vp)]})}},r[5]=u,r[6]=n,r[7]=g,r[8]=v,r[9]=h):h=r[9],ls(h)}function Vp(i){return i.toString()}function Kp(i){return i.toString()}var Ki={exports:{}},Zp=Ki.exports,vu;function Qp(){return vu||(vu=1,function(i,n){(function(r,s){i.exports=s()})(Zp,function(){var r=1e3,s=6e4,u=36e5,g="millisecond",v="second",h="minute",C="hour",D="day",E="week",N="month",M="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+)?$/,oe=/\[([^\]]+)]|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,le={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"],A=k%100;return"["+k+(T[(A-20)%10]||T[A]||T[0])+"]"}},se=function(k,T,A){var p=String(k);return!p||p.length>=T?k:""+Array(T+1-p.length).join(A)+k},ce={s:se,z:function(k){var T=-k.utcOffset(),A=Math.abs(T),p=Math.floor(A/60),d=A%60;return(T<=0?"+":"-")+se(p,2,"0")+":"+se(d,2,"0")},m:function k(T,A){if(T.date()<A.date())return-k(A,T);var p=12*(A.year()-T.year())+(A.month()-T.month()),d=T.clone().add(p,N),w=A-d<0,f=T.clone().add(p+(w?-1:1),N);return+(-(p+(A-d)/(w?d-f:f-d))||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:v,ms:g,Q:M}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},Q="en",ne={};ne[Q]=le;var J="$isDayjsObject",K=function(k){return k instanceof De||!(!k||!k[J])},de=function k(T,A,p){var d;if(!T)return Q;if(typeof T=="string"){var w=T.toLowerCase();ne[w]&&(d=w),A&&(ne[w]=A,d=w);var f=T.split("-");if(!d&&f.length>1)return k(f[0])}else{var m=T.name;ne[m]=T,d=m}return!p&&d&&(Q=d),d||!p&&Q},he=function(k,T){if(K(k))return k.clone();var A=typeof T=="object"?T:{};return A.date=k,A.args=arguments,new De(A)},ae=ce;ae.l=de,ae.i=K,ae.w=function(k,T){return he(k,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var De=function(){function k(A){this.$L=de(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[J]=!0}var T=k.prototype;return T.parse=function(A){this.$d=function(p){var d=p.date,w=p.utc;if(d===null)return new Date(NaN);if(ae.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var f=d.match(H);if(f){var m=f[2]-1||0,S=(f[7]||"0").substring(0,3);return w?new Date(Date.UTC(f[1],m,f[3]||1,f[4]||0,f[5]||0,f[6]||0,S)):new Date(f[1],m,f[3]||1,f[4]||0,f[5]||0,f[6]||0,S)}}return new Date(d)}(A),this.init()},T.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},T.$utils=function(){return ae},T.isValid=function(){return this.$d.toString()!==$},T.isSame=function(A,p){var d=he(A);return this.startOf(p)<=d&&d<=this.endOf(p)},T.isAfter=function(A,p){return he(A)<this.startOf(p)},T.isBefore=function(A,p){return this.endOf(p)<he(A)},T.$g=function(A,p,d){return ae.u(A)?this[p]:this.set(d,A)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(A,p){var d=this,w=!!ae.u(p)||p,f=ae.p(A),m=function(be,_e){var ve=ae.w(d.$u?Date.UTC(d.$y,_e,be):new Date(d.$y,_e,be),d);return w?ve:ve.endOf(D)},S=function(be,_e){return ae.w(d.toDate()[be].apply(d.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(_e)),d)},Y=this.$W,G=this.$M,ie=this.$D,ue="set"+(this.$u?"UTC":"");switch(f){case L:return w?m(1,0):m(31,11);case N:return w?m(1,G):m(0,G+1);case E:var we=this.$locale().weekStart||0,X=(Y<we?Y+7:Y)-we;return m(w?ie-X:ie+(6-X),G);case D:case I:return S(ue+"Hours",0);case C:return S(ue+"Minutes",1);case h:return S(ue+"Seconds",2);case v:return S(ue+"Milliseconds",3);default:return this.clone()}},T.endOf=function(A){return this.startOf(A,!1)},T.$set=function(A,p){var d,w=ae.p(A),f="set"+(this.$u?"UTC":""),m=(d={},d[D]=f+"Date",d[I]=f+"Date",d[N]=f+"Month",d[L]=f+"FullYear",d[C]=f+"Hours",d[h]=f+"Minutes",d[v]=f+"Seconds",d[g]=f+"Milliseconds",d)[w],S=w===D?this.$D+(p-this.$W):p;if(w===N||w===L){var Y=this.clone().set(I,1);Y.$d[m](S),Y.init(),this.$d=Y.set(I,Math.min(this.$D,Y.daysInMonth())).$d}else m&&this.$d[m](S);return this.init(),this},T.set=function(A,p){return this.clone().$set(A,p)},T.get=function(A){return this[ae.p(A)]()},T.add=function(A,p){var d,w=this;A=Number(A);var f=ae.p(p),m=function(G){var ie=he(w);return ae.w(ie.date(ie.date()+Math.round(G*A)),w)};if(f===N)return this.set(N,this.$M+A);if(f===L)return this.set(L,this.$y+A);if(f===D)return m(1);if(f===E)return m(7);var S=(d={},d[h]=s,d[C]=u,d[v]=r,d)[f]||1,Y=this.$d.getTime()+A*S;return ae.w(Y,this)},T.subtract=function(A,p){return this.add(-1*A,p)},T.format=function(A){var p=this,d=this.$locale();if(!this.isValid())return d.invalidDate||$;var w=A||"YYYY-MM-DDTHH:mm:ssZ",f=ae.z(this),m=this.$H,S=this.$m,Y=this.$M,G=d.weekdays,ie=d.months,ue=d.meridiem,we=function(_e,ve,B,Z){return _e&&(_e[ve]||_e(p,w))||B[ve].slice(0,Z)},X=function(_e){return ae.s(m%12||12,_e,"0")},be=ue||function(_e,ve,B){var Z=_e<12?"AM":"PM";return B?Z.toLowerCase():Z};return w.replace(oe,function(_e,ve){return ve||function(B){switch(B){case"YY":return String(p.$y).slice(-2);case"YYYY":return ae.s(p.$y,4,"0");case"M":return Y+1;case"MM":return ae.s(Y+1,2,"0");case"MMM":return we(d.monthsShort,Y,ie,3);case"MMMM":return we(ie,Y);case"D":return p.$D;case"DD":return ae.s(p.$D,2,"0");case"d":return String(p.$W);case"dd":return we(d.weekdaysMin,p.$W,G,2);case"ddd":return we(d.weekdaysShort,p.$W,G,3);case"dddd":return G[p.$W];case"H":return String(m);case"HH":return ae.s(m,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return be(m,S,!0);case"A":return be(m,S,!1);case"m":return String(S);case"mm":return ae.s(S,2,"0");case"s":return String(p.$s);case"ss":return ae.s(p.$s,2,"0");case"SSS":return ae.s(p.$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(A,p,d){var w,f=this,m=ae.p(p),S=he(A),Y=(S.utcOffset()-this.utcOffset())*s,G=this-S,ie=function(){return ae.m(f,S)};switch(m){case L:w=ie()/12;break;case N:w=ie();break;case M:w=ie()/3;break;case E:w=(G-Y)/6048e5;break;case D:w=(G-Y)/864e5;break;case C:w=G/u;break;case h:w=G/s;break;case v:w=G/r;break;default:w=G}return d?w:ae.a(w)},T.daysInMonth=function(){return this.endOf(N).$D},T.$locale=function(){return ne[this.$L]},T.locale=function(A,p){if(!A)return this.$L;var d=this.clone(),w=de(A,p,!0);return w&&(d.$L=w),d},T.clone=function(){return ae.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",v],["$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=K,he.unix=function(k){return he(1e3*k)},he.en=ne[Q],he.Ls=ne,he.p={},he})}(Ki)),Ki.exports}var Jp=Qp();const Te=el(Jp);function Xp({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:u}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=u[n-1][u[n-1].length-1]-1?u[n-1].length-1:u[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===u[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===u[n].length-2&&s>=u[n][u[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:u[n-1].length-1,cellIndex:u[n-1][u[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:u[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===u[n].length-1&&s===u[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===u[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 mu({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:u,size:g}){const v=Xp({direction:n,size:g,rowIndex:s,cellIndex:u,levelIndex:r});if(!v)return;const h=i.current?.[v.levelIndex]?.[v.rowIndex]?.[v.cellIndex];h&&(h.disabled||h.getAttribute("data-hidden")||h.getAttribute("data-outside")?mu({controlsRef:i,direction:n,levelIndex:v.levelIndex,cellIndex:v.cellIndex,rowIndex:v.rowIndex,size:g}):h.focus())}function eg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function tg(i){return i.current?.map(n=>n.map(r=>r.length))}function Ts({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:u}){const g=eg(u.key);if(g){u.preventDefault();const v=tg(i);mu({controlsRef:i,direction:g,levelIndex:n,rowIndex:r,cellIndex:s,size:v})}}function sn(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD")}function yu(i){return i==null||i===""?i:Te(i).format("YYYY-MM-DD HH:mm:ss")}const ng={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},rg=ye.createContext(ng);function nr(){const i=ye.useContext(rg),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]),u=ye.useCallback(g=>typeof g=="string"?g:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:u}}function ig({value:i,type:n,withTime:r}){const s=r?yu:sn;if(n==="range"&&Array.isArray(i)){const u=s(i[0]),g=s(i[1]);return u?g?`${u} – ${g}`:`${u} –`:""}return n==="multiple"&&Array.isArray(i)?i.filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function _u({value:i,type:n,name:r,form:s,withTime:u=!1}){return O.jsx("input",{type:"hidden",value:ig({value:i,type:n,withTime:u}),name:r,form:s})}_u.displayName="@mantine/dates/HiddenDatesInput";function wu(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var u=i.length;for(n=0;n<u;n++)i[n]&&(r=wu(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="",u=arguments.length;r<u;r++)(i=arguments[r])&&(n=wu(i))&&(s&&(s+=" "),s+=n);return s}var bu={day:"m_396ce5cb"};const og=F.createVarsResolver((i,{size:n})=>({day:{"--day-size":F.getSize(n,"day-size")}})),Ps=F.factory((i,n)=>{const r=F.useProps("Day",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,date:D,disabled:E,__staticSelector:N,weekend:M,outside:L,selected:I,renderDay:$,inRange:H,firstInRange:oe,lastInRange:le,hidden:se,static:ce,highlightToday:Q,attributes:ne,...J}=r,K=F.useStyles({name:N||"Day",classes:bu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:ne,vars:C,varsResolver:og,rootSelector:"day"});return O.jsx(F.UnstyledButton,{...K("day",{style:se?{display:"none"}:void 0}),component:ce?"div":"button",ref:n,disabled:E,"data-today":Te(D).isSame(new Date,"day")||void 0,"data-hidden":se||void 0,"data-highlight-today":Q||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!L&&M||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":oe&&!E||void 0,"data-last-in-range":le&&!E||void 0,"data-static":ce||void 0,unstyled:h,...J,children:$?.(D)||Te(D).date()})});Ps.classes=bu,Ps.displayName="@mantine/dates/Day";function sg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),u=[];for(let g=0;g<7;g+=1)typeof n=="string"?u.push(Te(s).add(g,"days").locale(i).format(n)):u.push(n(Te(s).add(g,"days").format("YYYY-MM-DD")));return u}var xu={weekday:"m_18a3eca"};const ag=F.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":F.getFontSize(n),"--wr-spacing":F.getSpacing(n)}})),Ms=F.factory((i,n)=>{const r=F.useProps("WeekdaysRow",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,locale:D,firstDayOfWeek:E,weekdayFormat:N,cellComponent:M="th",__staticSelector:L,withWeekNumbers:I,attributes:$,...H}=r,oe=F.useStyles({name:L||"WeekdaysRow",classes:xu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:$,vars:C,varsResolver:ag,rootSelector:"weekdaysRow"}),le=nr(),se=sg({locale:le.getLocale(D),format:N,firstDayOfWeek:le.getFirstDayOfWeek(E)}).map((ce,Q)=>O.jsx(M,{...oe("weekday"),children:ce},Q));return O.jsxs(F.Box,{component:"tr",ref:n,...oe("weekdaysRow"),...H,children:[I&&O.jsx(M,{...oe("weekday"),children:"#"}),se]})});Ms.classes=xu,Ms.displayName="@mantine/dates/WeekdaysRow";function lg(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 ug(i,n=1){let r=Te(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.format("YYYY-MM-DD")}function cg({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=Te(i).subtract(Te(i).date()-1,"day"),u=Te(s.format("YYYY-M-D")),g=u.format("YYYY-MM-DD"),v=u.add(+u.daysInMonth()-1,"day").format("YYYY-MM-DD"),h=lg(v,n),C=[];let D=Te(ug(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 M=Te(N).add(1,"day");for(;C.length<6;){const L=[];for(let I=0;I<7;I+=1)L.push(M.format("YYYY-MM-DD")),M=M.add(1,"day");C.push(L)}}return C}function Rs(i,n){return Te(i).format("YYYY-MM")===Te(n).format("YYYY-MM")}function Cu(i,n){return n?Te(i).isAfter(Te(n).subtract(1,"day"),"day"):!0}function Su(i,n){return n?Te(i).isBefore(Te(n).add(1,"day"),"day"):!0}function fg({dates:i,minDate:n,maxDate:r,getDayProps:s,excludeDate:u,hideOutsideDates:g,month:v}){const h=i.flat().filter(E=>Su(E,r)&&Cu(E,n)&&!u?.(E)&&!s?.(E)?.disabled&&(!g||Rs(E,v))),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 Zi={exports:{}},hg=Zi.exports,Au;function dg(){return Au||(Au=1,function(i,n){(function(r,s){i.exports=s()})(hg,function(){var r="day";return function(s,u,g){var v=function(D){return D.add(4-D.isoWeekday(),r)},h=u.prototype;h.isoWeekYear=function(){return v(this).year()},h.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),r);var E,N,M,L,I=v(this),$=(E=this.isoWeekYear(),N=this.$u,M=(N?g.utc:g)().year(E).startOf("year"),L=4-M.isoWeekday(),M.isoWeekday()>4&&(L+=7),M.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(),M=!!N.u(E)||E;return N.p(D)==="isoweek"?M?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)}}})}(Zi)),Zi.exports}var pg=dg();const gg=el(pg);Te.extend(gg);function vg(i){const n=i.find(r=>Te(r).day()===1);return Te(n).isoWeek()}var Du={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const mg={withCellSpacing:!0},yg=F.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":F.getFontSize(n),"--wn-size":F.getSize(n,"wn-size")}})),Qi=F.factory((i,n)=>{const r=F.useProps("Month",mg,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,__staticSelector:D,locale:E,firstDayOfWeek:N,weekdayFormat:M,month:L,weekendDays:I,getDayProps:$,excludeDate:H,minDate:oe,maxDate:le,renderDay:se,hideOutsideDates:ce,hideWeekdays:Q,getDayAriaLabel:ne,static:J,__getDayRef:K,__onDayKeyDown:de,__onDayClick:he,__onDayMouseEnter:ae,__preventFocus:De,__stopPropagation:Oe,withCellSpacing:k,size:T,highlightToday:A,withWeekNumbers:p,attributes:d,...w}=r,f=F.useStyles({name:D||"Month",classes:Du,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:d,vars:C,varsResolver:yg,rootSelector:"month"}),m=nr(),S=cg({month:L,firstDayOfWeek:m.getFirstDayOfWeek(N),consistentWeeks:m.consistentWeeks}),Y=fg({dates:S,minDate:sn(oe),maxDate:sn(le),getDayProps:$,excludeDate:H,hideOutsideDates:ce,month:L}),{resolvedClassNames:G,resolvedStyles:ie}=F.useResolvedStylesApi({classNames:s,styles:v,props:r}),ue=S.map((we,X)=>{const be=we.map((_e,ve)=>{const B=!Rs(_e,L),Z=ne?.(_e)||Te(_e).locale(E||m.locale).format("D MMMM YYYY"),W=$?.(_e),V=Te(_e).isSame(Y,"date");return O.jsx("td",{...f("monthCell"),"data-with-spacing":k||void 0,children:O.jsx(Ps,{__staticSelector:D||"Month",classNames:G,styles:ie,unstyled:h,"data-mantine-stop-propagation":Oe||void 0,highlightToday:A,renderDay:se,date:_e,size:T,weekend:m.getWeekendDays(I).includes(Te(_e).get("day")),outside:B,hidden:ce?B:!1,"aria-label":Z,static:J,disabled:H?.(_e)||!Su(_e,sn(le))||!Cu(_e,sn(oe)),ref:ee=>{ee&&K?.(X,ve,ee)},...W,onKeyDown:ee=>{W?.onKeyDown?.(ee),de?.(ee,{rowIndex:X,cellIndex:ve,date:_e})},onMouseEnter:ee=>{W?.onMouseEnter?.(ee),ae?.(ee,_e)},onClick:ee=>{W?.onClick?.(ee),he?.(ee,_e)},onMouseDown:ee=>{W?.onMouseDown?.(ee),De&&ee.preventDefault()},tabIndex:De||!V?-1:0})},_e.toString())});return O.jsxs("tr",{...f("monthRow"),children:[p&&O.jsx("td",{...f("weekNumber"),children:vg(we)}),be]},X)});return O.jsxs(F.Box,{component:"table",...f("month"),size:T,ref:n,...w,children:[!Q&&O.jsx("thead",{...f("monthThead"),children:O.jsx(Ms,{__staticSelector:D||"Month",locale:E,firstDayOfWeek:N,weekdayFormat:M,size:T,classNames:G,styles:ie,unstyled:h,withWeekNumbers:p})}),O.jsx("tbody",{...f("monthTbody"),children:ue})]})});Qi.classes=Du,Qi.displayName="@mantine/dates/Month";var Ou={pickerControl:"m_dc6a3c71"};const _g=F.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":F.getFontSize(n),"--dpc-size":F.getSize(n,"dpc-size")}})),Ji=F.factory((i,n)=>{const r=F.useProps("PickerControl",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,firstInRange:D,lastInRange:E,inRange:N,__staticSelector:M,selected:L,disabled:I,attributes:$,...H}=r,oe=F.useStyles({name:M||"PickerControl",classes:Ou,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:$,vars:C,varsResolver:_g,rootSelector:"pickerControl"});return O.jsx(F.UnstyledButton,{...oe("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})});Ji.classes=Ou,Ji.displayName="@mantine/dates/PickerControl";function Eu({year:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"year")||r&&Te(i).isAfter(r,"year"))}function wg({years:i,minDate:n,maxDate:r,getYearControlProps:s}){const u=i.flat().filter(h=>!Eu({year:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),g=u.find(h=>s?.(h)?.selected);if(g)return g;const v=u.find(h=>Te().isSame(h,"year"));return v||u[0]}function Tu(i){const n=Te(i).year(),r=n-n%10;let s=0;const u=[[],[],[],[]];for(let g=0;g<4;g+=1){const v=g===3?1:3;for(let h=0;h<v;h+=1)u[g].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return u}var Pu={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const bg={yearsListFormat:"YYYY",withCellSpacing:!0},Xi=F.factory((i,n)=>{const r=F.useProps("YearsList",bg,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,decade:D,yearsListFormat:E,locale:N,minDate:M,maxDate:L,getYearControlProps:I,__staticSelector:$,__getControlRef:H,__onControlKeyDown:oe,__onControlClick:le,__onControlMouseEnter:se,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:K,...de}=r,he=F.useStyles({name:$||"YearsList",classes:Pu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:K,vars:C,rootSelector:"yearsList"}),ae=nr(),De=Tu(D),Oe=wg({years:De,minDate:M,maxDate:L,getYearControlProps:I}),k=De.map((T,A)=>{const p=T.map((d,w)=>{const f=I?.(d),m=Te(d).isSame(Oe,"year");return O.jsx("td",{...he("yearsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Ji,{...he("yearsListControl"),size:J,unstyled:h,"data-mantine-stop-propagation":Q||void 0,disabled:Eu({year:d,minDate:M,maxDate:L}),ref:S=>{S&&H?.(A,w,S)},...f,onKeyDown:S=>{f?.onKeyDown?.(S),oe?.(S,{rowIndex:A,cellIndex:w,date:d})},onClick:S=>{f?.onClick?.(S),le?.(S,d)},onMouseEnter:S=>{f?.onMouseEnter?.(S),se?.(S,d)},onMouseDown:S=>{f?.onMouseDown?.(S),ce&&S.preventDefault()},tabIndex:ce||!m?-1:0,children:Te(d).locale(ae.getLocale(N)).format(E)})},w)});return O.jsx("tr",{...he("yearsListRow"),children:p},A)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("yearsList"),...de,children:O.jsx("tbody",{children:k})})});Xi.classes=Pu,Xi.displayName="@mantine/dates/YearsList";function Mu({month:i,minDate:n,maxDate:r}){return!n&&!r?!1:!!(n&&Te(i).isBefore(n,"month")||r&&Te(i).isAfter(r,"month"))}function xg({months:i,minDate:n,maxDate:r,getMonthControlProps:s}){const u=i.flat().filter(h=>!Mu({month:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),g=u.find(h=>s?.(h)?.selected);if(g)return g;const v=u.find(h=>Te().isSame(h,"month"));return v||u[0]}function Cg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let u=0;u<4;u+=1)for(let g=0;g<3;g+=1)r[u].push(Te(n).add(s,"months").format("YYYY-MM-DD")),s+=1;return r}var Ru={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const Sg={monthsListFormat:"MMM",withCellSpacing:!0},eo=F.factory((i,n)=>{const r=F.useProps("MonthsList",Sg,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,__staticSelector:D,year:E,monthsListFormat:N,locale:M,minDate:L,maxDate:I,getMonthControlProps:$,__getControlRef:H,__onControlKeyDown:oe,__onControlClick:le,__onControlMouseEnter:se,__preventFocus:ce,__stopPropagation:Q,withCellSpacing:ne,size:J,attributes:K,...de}=r,he=F.useStyles({name:D||"MonthsList",classes:Ru,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:K,vars:C,rootSelector:"monthsList"}),ae=nr(),De=Cg(E),Oe=xg({months:De,minDate:sn(L),maxDate:sn(I),getMonthControlProps:$}),k=De.map((T,A)=>{const p=T.map((d,w)=>{const f=$?.(d),m=Te(d).isSame(Oe,"month");return O.jsx("td",{...he("monthsListCell"),"data-with-spacing":ne||void 0,children:O.jsx(Ji,{...he("monthsListControl"),size:J,unstyled:h,__staticSelector:D||"MonthsList","data-mantine-stop-propagation":Q||void 0,disabled:Mu({month:d,minDate:sn(L),maxDate:sn(I)}),ref:S=>{S&&H?.(A,w,S)},...f,onKeyDown:S=>{f?.onKeyDown?.(S),oe?.(S,{rowIndex:A,cellIndex:w,date:d})},onClick:S=>{f?.onClick?.(S),le?.(S,d)},onMouseEnter:S=>{f?.onMouseEnter?.(S),se?.(S,d)},onMouseDown:S=>{f?.onMouseDown?.(S),ce&&S.preventDefault()},tabIndex:ce||!m?-1:0,children:Te(d).locale(ae.getLocale(M)).format(N)})},w)});return O.jsx("tr",{...he("monthsListRow"),children:p},A)});return O.jsx(F.Box,{component:"table",ref:n,size:J,...he("monthsList"),...de,children:O.jsx("tbody",{children:k})})});eo.classes=Ru,eo.displayName="@mantine/dates/MonthsList";var ku={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Ag={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Dg=F.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":F.getSize(n,"dch-control-size"),"--dch-fz":F.getFontSize(n)}})),rr=F.factory((i,n)=>{const r=F.useProps("CalendarHeader",Ag,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,nextIcon:D,previousIcon:E,nextLabel:N,previousLabel:M,onNext:L,onPrevious:I,onLevelClick:$,label:H,nextDisabled:oe,previousDisabled:le,hasNextLevel:se,levelControlAriaLabel:ce,withNext:Q,withPrevious:ne,headerControlsOrder:J,__staticSelector:K,__preventFocus:de,__stopPropagation:he,attributes:ae,...De}=r,Oe=F.useStyles({name:K||"CalendarHeader",classes:ku,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:ae,vars:C,varsResolver:Dg,rootSelector:"calendarHeader"}),k=de?w=>w.preventDefault():void 0,T=ne&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":M,onClick:I,unstyled:h,onMouseDown:k,disabled:le,"data-disabled":le||void 0,tabIndex:de||le?-1:0,"data-mantine-stop-propagation":he||void 0},E||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),A=ye.createElement(F.UnstyledButton,{component:se?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:se?$:void 0,unstyled:h,onMouseDown:se?k:void 0,disabled:!se,"data-static":!se||void 0,"aria-label":ce,tabIndex:de||!se?-1:0,"data-mantine-stop-propagation":he||void 0},H),p=Q&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":N,onClick:L,unstyled:h,onMouseDown:k,disabled:oe,"data-disabled":oe||void 0,tabIndex:de||oe?-1:0,"data-mantine-stop-propagation":he||void 0},D||O.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),d=J.map(w=>w==="previous"?T:w==="level"?A:w==="next"?p:null);return O.jsx(F.Box,{...Oe("calendarHeader"),ref:n,...De,children:d})});rr.classes=ku,rr.displayName="@mantine/dates/CalendarHeader";function Og(i){const n=Tu(i);return[n[0][0],n[3][0]]}const Eg={decadeLabelFormat:"YYYY"},to=F.factory((i,n)=>{const r=F.useProps("DecadeLevel",Eg,i),{decade:s,locale:u,minDate:g,maxDate:v,yearsListFormat:h,getYearControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:M,withCellSpacing:L,__preventFocus:I,nextIcon:$,previousIcon:H,nextLabel:oe,previousLabel:le,onNext:se,onPrevious:ce,nextDisabled:Q,previousDisabled:ne,levelControlAriaLabel:J,withNext:K,withPrevious:de,headerControlsOrder:he,decadeLabelFormat:ae,classNames:De,styles:Oe,unstyled:k,__staticSelector:T,__stopPropagation:A,size:p,attributes:d,...w}=r,f=nr(),[m,S]=Og(s),Y={__staticSelector:T||"DecadeLevel",classNames:De,styles:Oe,unstyled:k,size:p,attributes:d},G=typeof Q=="boolean"?Q:v?!Te(S).endOf("year").isBefore(v):!1,ie=typeof ne=="boolean"?ne:g?!Te(m).startOf("year").isAfter(g):!1,ue=(we,X)=>Te(we).locale(u||f.locale).format(X);return O.jsxs(F.Box,{"data-decade-level":!0,size:p,ref:n,...w,children:[O.jsx(rr,{label:typeof ae=="function"?ae(m,S):`${ue(m,ae)} – ${ue(S,ae)}`,__preventFocus:I,__stopPropagation:A,nextIcon:$,previousIcon:H,nextLabel:oe,previousLabel:le,onNext:se,onPrevious:ce,nextDisabled:G,previousDisabled:ie,hasNextLevel:!1,levelControlAriaLabel:J,withNext:K,withPrevious:de,headerControlsOrder:he,...Y}),O.jsx(Xi,{decade:s,locale:u,minDate:g,maxDate:v,yearsListFormat:h,getYearControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:M,__preventFocus:I,__stopPropagation:A,withCellSpacing:L,...Y})]})});to.classes={...Xi.classes,...rr.classes},to.displayName="@mantine/dates/DecadeLevel";const Tg={yearLabelFormat:"YYYY"},no=F.factory((i,n)=>{const r=F.useProps("YearLevel",Tg,i),{year:s,locale:u,minDate:g,maxDate:v,monthsListFormat:h,getMonthControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:M,withCellSpacing:L,__preventFocus:I,nextIcon:$,previousIcon:H,nextLabel:oe,previousLabel:le,onNext:se,onPrevious:ce,onLevelClick:Q,nextDisabled:ne,previousDisabled:J,hasNextLevel:K,levelControlAriaLabel:de,withNext:he,withPrevious:ae,headerControlsOrder:De,yearLabelFormat:Oe,__staticSelector:k,__stopPropagation:T,size:A,classNames:p,styles:d,unstyled:w,attributes:f,...m}=r,S=nr(),Y={__staticSelector:k||"YearLevel",classNames:p,styles:d,unstyled:w,size:A,attributes:f},G=typeof ne=="boolean"?ne:v?!Te(s).endOf("year").isBefore(v):!1,ie=typeof J=="boolean"?J:g?!Te(s).startOf("year").isAfter(g):!1;return O.jsxs(F.Box,{"data-year-level":!0,size:A,ref:n,...m,children:[O.jsx(rr,{label:typeof Oe=="function"?Oe(s):Te(s).locale(u||S.locale).format(Oe),__preventFocus:I,__stopPropagation:T,nextIcon:$,previousIcon:H,nextLabel:oe,previousLabel:le,onNext:se,onPrevious:ce,onLevelClick:Q,nextDisabled:G,previousDisabled:ie,hasNextLevel:K,levelControlAriaLabel:de,withNext:he,withPrevious:ae,headerControlsOrder:De,...Y}),O.jsx(eo,{year:s,locale:u,minDate:g,maxDate:v,monthsListFormat:h,getMonthControlProps:C,__getControlRef:D,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:M,__preventFocus:I,__stopPropagation:T,withCellSpacing:L,...Y})]})});no.classes={...rr.classes,...eo.classes},no.displayName="@mantine/dates/YearLevel";const Pg={monthLabelFormat:"MMMM YYYY"},ro=F.factory((i,n)=>{const r=F.useProps("MonthLevel",Pg,i),{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:M,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:H,__onDayKeyDown:oe,__onDayClick:le,__onDayMouseEnter:se,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,__preventFocus:J,__stopPropagation:K,nextIcon:de,previousIcon:he,nextLabel:ae,previousLabel:De,onNext:Oe,onPrevious:k,onLevelClick:T,nextDisabled:A,previousDisabled:p,hasNextLevel:d,levelControlAriaLabel:w,withNext:f,withPrevious:m,headerControlsOrder:S,monthLabelFormat:Y,classNames:G,styles:ie,unstyled:ue,__staticSelector:we,size:X,static:be,attributes:_e,...ve}=r,B=nr(),Z={__staticSelector:we||"MonthLevel",classNames:G,styles:ie,unstyled:ue,size:X,attributes:_e},W=typeof A=="boolean"?A:N?!Te(s).endOf("month").isBefore(N):!1,V=typeof p=="boolean"?p: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(rr,{label:typeof Y=="function"?Y(s):Te(s).locale(u||B.locale).format(Y),__preventFocus:J,__stopPropagation:K,nextIcon:de,previousIcon:he,nextLabel:ae,previousLabel:De,onNext:Oe,onPrevious:k,onLevelClick:T,nextDisabled:W,previousDisabled:V,hasNextLevel:d,levelControlAriaLabel:w,withNext:f,withPrevious:m,headerControlsOrder:S,...Z}),O.jsx(Qi,{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:M,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__getDayRef:H,__onDayKeyDown:oe,__onDayClick:le,__onDayMouseEnter:se,__preventFocus:J,__stopPropagation:K,static:be,withCellSpacing:ce,highlightToday:Q,withWeekNumbers:ne,...Z})]})});ro.classes={...Qi.classes,...rr.classes},ro.displayName="@mantine/dates/MonthLevel";var Lu={levelsGroup:"m_30b26e33"};const ir=F.factory((i,n)=>{const r=F.useProps("LevelsGroup",null,i),{classNames:s,className:u,style:g,styles:v,unstyled:h,vars:C,__staticSelector:D,attributes:E,...N}=r,M=F.useStyles({name:D||"LevelsGroup",classes:Lu,props:r,className:u,style:g,classNames:s,styles:v,unstyled:h,attributes:E,vars:C,rootSelector:"levelsGroup"});return O.jsx(F.Box,{ref:n,...M("levelsGroup"),...N})});ir.classes=Lu,ir.displayName="@mantine/dates/LevelsGroup";const Mg={numberOfColumns:1},io=F.factory((i,n)=>{const r=F.useProps("DecadeLevelGroup",Mg,i),{decade:s,locale:u,minDate:g,maxDate:v,yearsListFormat:h,getYearControlProps:C,__onControlClick:D,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:M,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:oe,onPrevious:le,nextDisabled:se,previousDisabled:ce,headerControlsOrder:Q,classNames:ne,styles:J,unstyled:K,__staticSelector:de,__stopPropagation:he,numberOfColumns:ae,levelControlAriaLabel:De,decadeLabelFormat:Oe,size:k,vars:T,attributes:A,...p}=r,d=ye.useRef([]),w=Array(ae).fill(0).map((f,m)=>{const S=Te(s).add(m*10,"years").format("YYYY-MM-DD");return O.jsx(to,{size:k,yearsListFormat:h,decade:S,withNext:m===ae-1,withPrevious:m===0,decadeLabelFormat:Oe,__onControlClick:D,__onControlMouseEnter:E,__onControlKeyDown:(Y,G)=>Ts({levelIndex:m,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:Y,controlsRef:d}),__getControlRef:(Y,G,ie)=>{Array.isArray(d.current[m])||(d.current[m]=[]),Array.isArray(d.current[m][Y])||(d.current[m][Y]=[]),d.current[m][Y][G]=ie},levelControlAriaLabel:typeof De=="function"?De(S):De,locale:u,minDate:g,maxDate:v,__preventFocus:M,__stopPropagation:he,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:oe,onPrevious:le,nextDisabled:se,previousDisabled:ce,getYearControlProps:C,__staticSelector:de||"DecadeLevelGroup",classNames:ne,styles:J,unstyled:K,withCellSpacing:N,headerControlsOrder:Q,attributes:A},m)});return O.jsx(ir,{classNames:ne,styles:J,__staticSelector:de||"DecadeLevelGroup",ref:n,size:k,unstyled:K,attributes:A,...p,children:w})});io.classes={...ir.classes,...to.classes},io.displayName="@mantine/dates/DecadeLevelGroup";const Rg={numberOfColumns:1},oo=F.factory((i,n)=>{const r=F.useProps("YearLevelGroup",Rg,i),{year:s,locale:u,minDate:g,maxDate:v,monthsListFormat:h,getMonthControlProps:C,__onControlClick:D,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:M,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:oe,onPrevious:le,onLevelClick:se,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,headerControlsOrder:J,classNames:K,styles:de,unstyled:he,__staticSelector:ae,__stopPropagation:De,numberOfColumns:Oe,levelControlAriaLabel:k,yearLabelFormat:T,size:A,vars:p,attributes:d,...w}=r,f=ye.useRef([]),m=Array(Oe).fill(0).map((S,Y)=>{const G=Te(s).add(Y,"years").format("YYYY-MM-DD");return O.jsx(no,{size:A,monthsListFormat:h,year:G,withNext:Y===Oe-1,withPrevious:Y===0,yearLabelFormat:T,__stopPropagation:De,__onControlClick:D,__onControlMouseEnter:E,__onControlKeyDown:(ie,ue)=>Ts({levelIndex:Y,rowIndex:ue.rowIndex,cellIndex:ue.cellIndex,event:ie,controlsRef:f}),__getControlRef:(ie,ue,we)=>{Array.isArray(f.current[Y])||(f.current[Y]=[]),Array.isArray(f.current[Y][ie])||(f.current[Y][ie]=[]),f.current[Y][ie][ue]=we},levelControlAriaLabel:typeof k=="function"?k(G):k,locale:u,minDate:g,maxDate:v,__preventFocus:M,nextIcon:L,previousIcon:I,nextLabel:$,previousLabel:H,onNext:oe,onPrevious:le,onLevelClick:se,nextDisabled:ce,previousDisabled:Q,hasNextLevel:ne,getMonthControlProps:C,classNames:K,styles:de,unstyled:he,__staticSelector:ae||"YearLevelGroup",withCellSpacing:N,headerControlsOrder:J,attributes:d},Y)});return O.jsx(ir,{classNames:K,styles:de,__staticSelector:ae||"YearLevelGroup",ref:n,size:A,unstyled:he,attributes:d,...w,children:m})});oo.classes={...no.classes,...ir.classes},oo.displayName="@mantine/dates/YearLevelGroup";const kg={numberOfColumns:1},so=F.factory((i,n)=>{const r=F.useProps("MonthLevelGroup",kg,i),{month:s,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:M,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__onDayClick:H,__onDayMouseEnter:oe,withCellSpacing:le,highlightToday:se,withWeekNumbers:ce,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:K,previousLabel:de,onNext:he,onPrevious:ae,onLevelClick:De,nextDisabled:Oe,previousDisabled:k,hasNextLevel:T,headerControlsOrder:A,classNames:p,styles:d,unstyled:w,numberOfColumns:f,levelControlAriaLabel:m,monthLabelFormat:S,__staticSelector:Y,__stopPropagation:G,size:ie,static:ue,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(ro,{month:W,withNext:Z===f-1,withPrevious:Z===0,monthLabelFormat:S,__stopPropagation:G,__onDayClick:H,__onDayMouseEnter:oe,__onDayKeyDown:(V,ee)=>Ts({levelIndex:Z,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:V,controlsRef:_e}),__getDayRef:(V,ee,Se)=>{Array.isArray(_e.current[Z])||(_e.current[Z]=[]),Array.isArray(_e.current[Z][V])||(_e.current[Z][V]=[]),_e.current[Z][V][ee]=Se},levelControlAriaLabel:typeof m=="function"?m(W):m,locale:u,firstDayOfWeek:g,weekdayFormat:v,weekendDays:h,getDayProps:C,excludeDate:D,minDate:E,maxDate:N,renderDay:M,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:$,__preventFocus:Q,nextIcon:ne,previousIcon:J,nextLabel:K,previousLabel:de,onNext:he,onPrevious:ae,onLevelClick:De,nextDisabled:Oe,previousDisabled:k,hasNextLevel:T,classNames:p,styles:d,unstyled:w,__staticSelector:Y||"MonthLevelGroup",size:ie,static:ue,withCellSpacing:le,highlightToday:se,withWeekNumbers:ce,headerControlsOrder:A,attributes:X},Z)});return O.jsx(ir,{classNames:p,styles:d,__staticSelector:Y||"MonthLevelGroup",ref:n,size:ie,attributes:X,...be,children:ve})});so.classes={...ir.classes,...ro.classes},so.displayName="@mantine/dates/MonthLevelGroup";const Nu=i=>i==="range"?[null,null]:i==="multiple"?[]:null,Iu=(i,n)=>{const r=n?yu:sn;return Array.isArray(i)?i.map(r):r(i)};function ks({type:i,value:n,defaultValue:r,onChange:s,withTime:u=!1}){const g=ye.useRef(i),[v,h,C]=Mt.useUncontrolled({value:Iu(n,u),defaultValue:Iu(r,u),finalValue:Nu(i),onChange:s});let D=v;return g.current!==i&&(g.current=i,n===void 0&&(D=r!==void 0?r:Nu(i),h(D))),[D,h,C]}function Ls(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function Lg(i){return i===0?"month":i===1?"year":"decade"}function pi(i,n,r){return Lg(Mt.clamp(Ls(i,0),Ls(n,0),Ls(r,2)))}const Ng={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},ao=F.factory((i,n)=>{const r=F.useProps("Calendar",Ng,i),{vars:s,maxLevel:u,minLevel:g,defaultLevel:v,level:h,onLevelChange:C,date:D,defaultDate:E,onDateChange:N,numberOfColumns:M,columnsToScroll:L,ariaLabels:I,nextLabel:$,previousLabel:H,onYearSelect:oe,onMonthSelect:le,onYearMouseEnter:se,onMonthMouseEnter:ce,headerControlsOrder:Q,__updateDateOnYearSelect:ne,__updateDateOnMonthSelect:J,__setDateRef:K,__setLevelRef:de,firstDayOfWeek:he,weekdayFormat:ae,weekendDays:De,getDayProps:Oe,excludeDate:k,renderDay:T,hideOutsideDates:A,hideWeekdays:p,getDayAriaLabel:d,monthLabelFormat:w,nextIcon:f,previousIcon:m,__onDayClick:S,__onDayMouseEnter:Y,withCellSpacing:G,highlightToday:ie,withWeekNumbers:ue,monthsListFormat:we,getMonthControlProps:X,yearLabelFormat:be,yearsListFormat:_e,getYearControlProps:ve,decadeLabelFormat:B,classNames:Z,styles:W,unstyled:V,minDate:ee,maxDate:Se,locale:l,__staticSelector:c,size:_,__preventFocus:R,__stopPropagation:U,onNextDecade:te,onPreviousDecade:Ae,onNextYear:Ce,onPreviousYear:Pe,onNextMonth:me,onPreviousMonth:Re,static:Ie,enableKeyboardNavigation:ke,attributes:Xe,...Qe}=r,{resolvedClassNames:nt,resolvedStyles:Et}=F.useResolvedStylesApi({classNames:Z,styles:W,props:r}),[pt,rt]=Mt.useUncontrolled({value:h?pi(h,g,u):void 0,defaultValue:v?pi(v,g,u):void 0,finalValue:pi(void 0,g,u),onChange:C}),[An,St]=ks({type:"default",value:sn(D),defaultValue:sn(E),onChange:N});ye.useImperativeHandle(K,()=>ze=>{St(ze)}),ye.useImperativeHandle(de,()=>ze=>{rt(ze)});const Dn={__staticSelector:c||"Calendar",styles:Et,classNames:nt,unstyled:V,size:_,attributes:Xe},At=L||M||1,jt=new Date,On=ee&&Te(jt).isAfter(ee)?ee:Te(jt).format("YYYY-MM-DD"),yt=An||On,an=()=>{const ze=Te(yt).add(At,"month").format("YYYY-MM-DD");me?.(ze),St(ze)},ln=()=>{const ze=Te(yt).subtract(At,"month").format("YYYY-MM-DD");Re?.(ze),St(ze)},Yt=()=>{const ze=Te(yt).add(At,"year").format("YYYY-MM-DD");Ce?.(ze),St(ze)},Lt=()=>{const ze=Te(yt).subtract(At,"year").format("YYYY-MM-DD");Pe?.(ze),St(ze)},Ft=()=>{const ze=Te(yt).add(10*At,"year").format("YYYY-MM-DD");te?.(ze),St(ze)},Wt=()=>{const ze=Te(yt).subtract(10*At,"year").format("YYYY-MM-DD");Ae?.(ze),St(ze)},Kt=ye.useRef(null);ye.useEffect(()=>{if(!ke||Ie)return;const ze=at=>{if(!Kt.current?.contains(document.activeElement))return;const Nt=at.ctrlKey||at.metaKey,Zt=at.shiftKey;switch(at.key){case"ArrowUp":Nt&&Zt?(at.preventDefault(),Wt()):Nt&&(at.preventDefault(),Lt());break;case"ArrowDown":Nt&&Zt?(at.preventDefault(),Ft()):Nt&&(at.preventDefault(),Yt());break;case"y":case"Y":pt==="month"&&(at.preventDefault(),rt("year"));break}};return document.addEventListener("keydown",ze),()=>{document.removeEventListener("keydown",ze)}},[ke,Ie,pt,Yt,Lt,Ft,Wt]);const Ut=ze=>{Kt.current=ze,typeof n=="function"?n(ze):n&&(n.current=ze)};return O.jsxs(F.Box,{ref:Ut,size:_,"data-calendar":!0,...Qe,children:[pt==="month"&&O.jsx(so,{month:yt,minDate:ee,maxDate:Se,firstDayOfWeek:he,weekdayFormat:ae,weekendDays:De,getDayProps:Oe,excludeDate:k,renderDay:T,hideOutsideDates:A,hideWeekdays:p,getDayAriaLabel:d,onNext:an,onPrevious:ln,hasNextLevel:u!=="month",onLevelClick:()=>rt("year"),numberOfColumns:M,locale:l,levelControlAriaLabel:I?.monthLevelControl,nextLabel:I?.nextMonth??$,nextIcon:f,previousLabel:I?.previousMonth??H,previousIcon:m,monthLabelFormat:w,__onDayClick:S,__onDayMouseEnter:Y,__preventFocus:R,__stopPropagation:U,static:Ie,withCellSpacing:G,highlightToday:ie,withWeekNumbers:ue,headerControlsOrder:Q,...Dn}),pt==="year"&&O.jsx(oo,{year:yt,numberOfColumns:M,minDate:ee,maxDate:Se,monthsListFormat:we,getMonthControlProps:X,locale:l,onNext:Yt,onPrevious:Lt,hasNextLevel:u!=="month"&&u!=="year",onLevelClick:()=>rt("decade"),levelControlAriaLabel:I?.yearLevelControl,nextLabel:I?.nextYear??$,nextIcon:f,previousLabel:I?.previousYear??H,previousIcon:m,yearLabelFormat:be,__onControlMouseEnter:ce,__onControlClick:(ze,at)=>{J&&St(at),rt(pi("month",g,u)),le?.(at)},__preventFocus:R,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Dn}),pt==="decade"&&O.jsx(io,{decade:yt,minDate:ee,maxDate:Se,yearsListFormat:_e,getYearControlProps:ve,locale:l,onNext:Ft,onPrevious:Wt,numberOfColumns:M,nextLabel:I?.nextDecade??$,nextIcon:f,previousLabel:I?.previousDecade??H,previousIcon:m,decadeLabelFormat:B,__onControlMouseEnter:se,__onControlClick:(ze,at)=>{ne&&St(at),rt(pi("year",g,u)),oe?.(at)},__preventFocus:R,__stopPropagation:U,withCellSpacing:G,headerControlsOrder:Q,...Dn})]})});ao.classes={...io.classes,...oo.classes,...so.classes},ao.displayName="@mantine/dates/Calendar";function Ig(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:g,nextIcon:v,previousIcon:h,date:C,defaultDate:D,onDateChange:E,numberOfColumns:N,columnsToScroll:M,ariaLabels:L,nextLabel:I,previousLabel:$,onYearSelect:H,onMonthSelect:oe,onYearMouseEnter:le,onMonthMouseEnter:se,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:K,onPreviousDecade:de,withCellSpacing:he,highlightToday:ae,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:k,__setLevelRef:T,withWeekNumbers:A,headerControlsOrder:p,firstDayOfWeek:d,weekdayFormat:w,weekendDays:f,getDayProps:m,excludeDate:S,renderDay:Y,hideOutsideDates:G,hideWeekdays:ie,getDayAriaLabel:ue,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:B,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:V,minDate:ee,maxDate:Se,locale:l,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:g,nextIcon:v,previousIcon:h,date:C,defaultDate:D,onDateChange:E,numberOfColumns:N,columnsToScroll:M,ariaLabels:L,nextLabel:I,previousLabel:$,onYearSelect:H,onMonthSelect:oe,onYearMouseEnter:le,onMonthMouseEnter:se,onNextMonth:ce,onPreviousMonth:Q,onNextYear:ne,onPreviousYear:J,onNextDecade:K,onPreviousDecade:de,withCellSpacing:he,highlightToday:ae,__updateDateOnYearSelect:De,__updateDateOnMonthSelect:Oe,__setDateRef:k,withWeekNumbers:A,headerControlsOrder:p,firstDayOfWeek:d,weekdayFormat:w,weekendDays:f,getDayProps:m,excludeDate:S,renderDay:Y,hideOutsideDates:G,hideWeekdays:ie,getDayAriaLabel:ue,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:ve,getYearControlProps:B,decadeLabelFormat:Z,allowSingleDateInRange:W,allowDeselect:V,minDate:ee,maxDate:Se,locale:l},others:c}}function $g(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 Bg({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 jg={valueFormat:"MMMM D, YYYY",fixOnBlur:!0},lo=F.factory((i,n)=>{const r=F.useInputProps("DateInput",jg,i),{inputProps:s,wrapperProps:u,value:g,defaultValue:v,onChange:h,clearable:C,clearButtonProps:D,popoverProps:E,getDayProps:N,locale:M,valueFormat:L,dateParser:I,minDate:$,maxDate:H,fixOnBlur:oe,onFocus:le,onBlur:se,onClick:ce,onKeyDown:Q,readOnly:ne,name:J,form:K,rightSection:de,unstyled:he,classNames:ae,styles:De,allowDeselect:Oe,date:k,defaultDate:T,onDateChange:A,getMonthControlProps:p,getYearControlProps:d,...w}=r,f=ye.useRef(null),m=ye.useRef(null),[S,Y]=ye.useState(!1),{calendarProps:G,others:ie}=Ig(w),ue=nr(),X=I||(Ce=>{const Pe=Te(Ce,L,ue.getLocale(M)).toDate();return Number.isNaN(Pe.getTime())?$g(Ce):Te(Pe).format("YYYY-MM-DD")}),be=Oe!==void 0?Oe:C,_e=Ce=>Ce?Te(Ce).locale(ue.getLocale(M)).format(L):"",[ve,B,Z]=ks({type:"default",value:g,defaultValue:v,onChange:h}),[W,V]=ks({type:"default",value:k,defaultValue:v||T,onChange:A});ye.useEffect(()=>{Z&&g!==null&&V(g)},[Z,g]);const[ee,Se]=ye.useState(_e(ve));ye.useEffect(()=>{Se(_e(ve))},[ue.getLocale(M)]);const l=Ce=>{const Pe=Ce.currentTarget.value;if(Se(Pe),Y(!0),Pe.trim()===""&&C)B(null);else{const me=X(Pe);me&&Bg({date:me,minDate:$,maxDate:H})&&(B(me),V(me))}},c=Ce=>{se?.(Ce),Y(!1),oe&&Se(_e(ve))},_=Ce=>{le?.(Ce),Y(!0)},R=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 Mt.useDidUpdate(()=>{ve!==void 0&&!S&&Se(_e(ve))},[ve]),Mt.useClickOutside(()=>Y(!1),void 0,[f.current,m.current]),O.jsxs(O.Fragment,{children:[O.jsx(F.Input.Wrapper,{...u,__staticSelector:"DateInput",ref:f,children:O.jsxs(F.Popover,{opened:S,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:l,onBlur:c,onFocus:_,onClick:R,onKeyDown:U,readOnly:ne,rightSection:Ae,...s,...ie,__staticSelector:"DateInput"})}),O.jsx(F.Popover.Dropdown,{onMouseDown:Ce=>Ce.preventDefault(),"data-dates-dropdown":!0,ref:m,children:O.jsx(ao,{__staticSelector:"DateInput",...G,classNames:ae,styles:De,unstyled:he,__preventFocus:!0,minDate:$,maxDate:H,locale:M,getDayProps:te,size:s.size,date:W,onDateChange:V,getMonthControlProps:Ce=>({selected:typeof ve=="string"?Rs(Ce,ve):!1,...p?.(Ce)}),getYearControlProps:Ce=>({selected:typeof ve=="string"?Te(Ce).isSame(ve,"year"):!1,...d?.(Ce)}),attributes:u.attributes})})]})}),O.jsx(_u,{name:J,form:K,value:ve,type:"default"})]})});lo.classes={...F.Input.classes,...ao.classes},lo.displayName="@mantine/dates/DateInput";function Yg(i){const n=bn.c(47),{fields:r,onClose:s,queryKey:u,apiPath:g,steps:v,onCreated:h}=i,[C,D]=ye.useState(0),[E,N]=ye.useState(!1),[M,L]=ye.useState(),{mutateAsync:I,isError:$,error:H,isPending:oe}=pu(g,u),{mutateAsync:le,isPending:se}=Es(g,u),ce=oe||se;let Q;n[0]!==r?(Q=new Set(r.filter(Hg).map(qg)),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 K;n[4]!==r?(K=r.reduce(zg,{}),n[4]=r,n[5]=K):K=n[5];let de;n[6]!==r?(de=r.filter(Ug).reduce(Fg,{}),n[6]=r,n[7]=de):de=n[7];let he;n[8]!==K||n[9]!==de?(he={mode:"uncontrolled",initialValues:K,validate:de},n[8]=K,n[9]=de,n[10]=he):he=n[10];const ae=Xa.useForm(he);let De;n[11]!==ae||n[12]!==M?(De=function(m){return O.jsxs(ye.Fragment,{children:[(m.type===void 0||m.type=="text")&&O.jsx(F.TextInput,{label:m.column.title,placeholder:m.placeholder??"",...ae.getInputProps(m.id),type:m.id.includes("email")?"email":void 0},ae.key(m.id)),m.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:m.column.title,placeholder:m.placeholder??"",...ae.getInputProps(m.id)},ae.key(m.id)),m.type==="date"&&O.jsx(lo,{label:m.column.title,placeholder:m.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ae.getInputProps(m.id)},ae.key(m.id)),m.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:m.column.title,...ae.getInputProps(m.id,{type:"checkbox"})},ae.key(m.id)),m.type==="custom"&&m.render&&m.render({...ae.getValues(),...M&&{id:M}},ae.setValues,N)]},m.id)},n[11]=ae,n[12]=M,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]!==ae||n[21]!==$||n[22]!==s||n[23]!==h||n[24]!==M||n[25]!==J.length||n[26]!==le?(T=ae.onSubmit(async f=>{if(M)await le({...f,id:M});else{const m=await I(f);L(m.id),h?.(m.id)}J.length&&C<J.length-1?$||D(C+1):$||(ae.setInitialValues(f),ae.reset(),s())}),n[18]=C,n[19]=I,n[20]=ae,n[21]=$,n[22]=s,n[23]=h,n[24]=M,n[25]=J.length,n[26]=le,n[27]=T):T=n[27];let A;n[28]!==C||n[29]!==r||n[30]!==Oe||n[31]!==v||n[32]!==J?(A=J.length?O.jsx(F.Stepper,{active:C,size:"sm",children:J.map(f=>O.jsx(F.Stepper.Step,{...v&&v[f-1]?{label:v[f-1].label}:{},children:r.filter(m=>m.step===f).map(m=>Oe(m))},f))}):r.map(f=>Oe(f)),n[28]=C,n[29]=r,n[30]=Oe,n[31]=v,n[32]=J,n[33]=A):A=n[33];let p;n[34]!==C||n[35]!==E||n[36]!==ce||n[37]!==s||n[38]!==J.length?(p=!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]=p):p=n[39];let d;n[40]!==p||n[41]!==T||n[42]!==A?(d=O.jsxs("form",{onSubmit:T,children:[A,p]}),n[40]=p,n[41]=T,n[42]=A,n[43]=d):d=n[43];let w;return n[44]!==d||n[45]!==k?(w=O.jsxs(O.Fragment,{children:[k,d]}),n[44]=d,n[45]=k,n[46]=w):w=n[46],w}function Fg(i,n){return i[n.id]=Wg,i}function Wg(i){return i?null:"Pflichtfeld"}function Ug(i){return i.required}function zg(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function qg(i){return i.step}function Hg(i){return typeof i.step=="number"}var[Gg,Ns]=F.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),$u=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:u,setColumnsToggle:g,resetColumnsOrder:v,resetColumnsToggle:h,setColumnWidth:C,setMultipleColumnWidths:D,resetColumnsWidth:E}=i,[N,M]=ye.useState(""),[L,I]=ye.useState("");return O.jsx(Gg,{value:{sourceColumn:N,setSourceColumn:M,targetColumn:L,setTargetColumn:I,columnsToggle:u,setColumnsToggle:g,swapColumns:()=>{if(!r||!s||!N||!L)return;let $=r.indexOf(N),H=r.indexOf(L);if($!==-1&&H!==-1){let oe=r.splice($,1)[0];r.splice(H,0,oe),s([...r])}},resetColumnsOrder:v,resetColumnsToggle:h,setColumnWidth:C,setMultipleColumnWidths:D,resetColumnsWidth:E},children:n})};function Vg(){return O.jsx("tr",{className:"mantine-datatable-empty-row",children:O.jsx("td",{})})}function Kg(){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 Zg({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(Kg,{})}),O.jsx(F.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var Qg=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Q,ne){let J=[];return Q.forEach(K=>{ne.find(de=>de.accessor===K)&&J.push(K)}),ne.forEach(K=>{J.includes(K.accessor)||J.push(K.accessor)}),J}function u(Q,ne){let J=[];return Q.forEach(K=>{ne.find(de=>de.accessor===K.accessor)&&J.push(K)}),ne.forEach(K=>{J.find(de=>de.accessor===K.accessor)||J.push({accessor:K.accessor,defaultToggle:K.defaultToggle||!0,toggleable:K.toggleable,toggled:K.defaultToggle===void 0?!0:K.defaultToggle})}),J}function g(Q,ne){let J=[];return Q.forEach(K=>{let de=Object.keys(K)[0];ne.find(he=>he.accessor===de)&&J.push(K)}),ne.forEach(K=>{let de=K.accessor;if(!J.find(he=>Object.keys(he)[0]===de)){let he={};he[de]="",J.push(he)}}),J}function v(){let[Q,ne]=Mt.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 K=s(Q,n),de=JSON.stringify(Q);return JSON.stringify(K)!==de&&J(K),[K,J]}function h(){let[Q,ne]=Mt.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 K=u(Q,n),de=JSON.stringify(Q);return JSON.stringify(K)!==de&&J(K),[u(Q,n),J]}function C(){let[Q,ne]=Mt.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 K=g(Q,n),de=JSON.stringify(Q);return JSON.stringify(K)!==de&&J(K),[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})),[M,L]=v(),[I,$]=h(),[H,oe]=C(),le=()=>L(D),se=()=>{$(N)},ce=()=>oe(E);return{effectiveColumns:ye.useMemo(()=>M?M.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,M,I,H]),setColumnsOrder:L,columnsOrder:M,resetColumnsOrder:le,columnsToggle:I,setColumnsToggle:$,resetColumnsToggle:se,columnsWidth:H,setColumnsWidth:oe,setColumnWidth:(Q,ne)=>{let J=H.map(K=>K[Q]?{[Q]:ne}:K);oe(J)},setMultipleColumnWidths:Q=>{let ne=H.map(J=>{let K=Object.keys(J)[0],de=Q.find(he=>he.accessor===K);return de?{[K]:de.width}:J});oe(ne)},resetColumnsWidth:ce}},Bu=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function ju(i){let n=ye.useRef(i);return n.current=i,n}var Yu="--mantine-datatable-header-height",Fu="--mantine-datatable-footer-height",Wu="--mantine-datatable-selection-column-width",Uu="--mantine-datatable-last-row-border-bottom";function Sn(i,n,r){i?.style.setProperty(n,r)}function Is(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 $s(i,n,r){if(i){let s=new ResizeObserver(u=>{let g=u[0];g&&n(Is(g))});return s.observe(i),()=>{s.disconnect(),r()}}}function Jg({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:u,scrollViewport:g,header:v,footer:h,selectionColumnHeader:C}=r,D=ju({withRowBorders:n}),E=ju(i),N=ye.useRef(()=>{}),M=ye.useRef(()=>{}),L=ye.useCallback(I=>{E.current.onScroll?.(I),N.current()},[]);return ye.useEffect(()=>$s(v.current,I=>{Sn(s.current,Yu,`${I.height}px`)},()=>Sn(s.current,Yu,"0")),[v.current]),ye.useEffect(()=>$s(h.current,I=>{Sn(s.current,Fu,`${I.height}px`)},()=>Sn(s.current,Fu,"0")),[h.current]),ye.useEffect(()=>$s(C.current,I=>{Sn(s.current,Wu,`${I.width}px`)},()=>Sn(s.current,Wu,"0")),[C.current]),Bu(()=>{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 oe(ne,J){let K=I[ne];return I[ne]=J,Sn(s.current,`--mantine-datatable-${ne}-shadow-opacity`,J?"0":"1"),K}function le(){let ne=$.height-H.height,J=ne<0;Sn(s.current,"--mantine-datatable-footer-position",J?"relative":"sticky"),Sn(s.current,"--mantine-datatable-footer-bottom",J?`${ne}px`:"0")}function se(){D.current.withRowBorders&&$.height<H.height?Sn(s.current,Uu,`${F.rem("1px")} solid var(--mantine-datatable-border-color)`):Sn(s.current,Uu,"unset")}M.current=se;function ce(){let ne=E.current,J=g.current?.scrollTop??0,K=g.current?.scrollLeft??0,de=J===0,he=$.height-J-H.height<1,ae=oe("top",de),De=oe("bottom",he);de&&de!==ae&&ne.onScrollToTop?.(),he&&he!==De&&ne.onScrollToBottom?.();let Oe=K===0,k=$.width-K-H.width<1,T=oe("left",Oe),A=oe("right",k);Oe&&Oe!==T&&ne.onScrollToLeft?.(),k&&k!==A&&ne.onScrollToRight?.()}N.current=ce;let Q=new ResizeObserver(ne=>{for(let J of ne)switch(J.target.tagName){case"TABLE":{$=Is(J);break}case"DIV":{H=Is(J);break}}ce(),le(),se()});return Q.observe(u.current),Q.observe(g.current),()=>{Q.disconnect()}},[]),Bu(()=>{M.current()},[n]),{refs:r,onScroll:L}}function Xg(i){let[n,r]=ye.useState(null),s=i?.join(":")||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function e1(i,n){let r=()=>{n(i.map(u=>u.matches))},s=i.map(u=>{try{return u.addEventListener("change",r),()=>u.removeEventListener("change",r)}catch{return u.addListener(r),()=>u.removeListener(r)}});return()=>{s.forEach(u=>u())}}function t1(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function n1(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,u]=ye.useState(r?n:t1(i,n)),g=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return g.current=i.map(v=>window.matchMedia(v)),u(g.current.map(v=>v.matches)),e1(g.current,v=>{u(v)})},[i]),s}function r1(i){let n=F.useMantineTheme(),r=ye.useMemo(()=>i.map(u=>(typeof u=="function"?u(n):u)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return n1(r,s)}function uo(i){let n=F.useMantineTheme(),r=typeof i=="function"?i(n):i;return Mt.useMediaQuery(r||"",!0)}function Bs(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 i1(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function js(i,n){return i.filter((r,s,u)=>s===u.findIndex(g=>n(r)===n(g)))}function zu(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function kt(i,n){return typeof n=="string"?zu(i,n):n(i)}function o1({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=>kt(E,r)):D&&(s=n.filter((E,N)=>D({record:E,index:N})).map(E=>kt(E,r)),C||(s=[s[0]]))}let u,g,v=ye.useState(s);if(i){let{expandable:h,trigger:C,allowMultiple:D,collapseProps:E,content:N}=i;i.expanded?{recordIds:u,onRecordIdsChange:g}=i.expanded:[u,g]=v;let M=L=>g?.(u.filter(I=>I!==kt(L,r)));return{expandOnClick:C!=="always"&&C!=="never",isRowExpanded:L=>C==="always"?!0:u.includes(kt(L,r)),isExpandable:({record:L,index:I})=>h?h({record:L,index:I}):!0,expandRow:L=>{let I=kt(L,r);g?.(D?[...u,I]:[I])},collapseRow:M,collapseProps:E,content:({record:L,index:I})=>()=>N({record:L,index:I,collapse:()=>M(L)})}}}function s1(i,n){let[r,s]=ye.useState(i),[u,g]=ye.useState(i),v=Mt.useTimeout(()=>s(!0),0),h=Mt.useTimeout(()=>g(!1),n||200);return ye.useEffect(()=>{i?(h.clear(),g(!0),v.start()):(v.clear(),s(!1),h.start())},[v,h,i]),{expanded:r,visible:u}}var Ys="mantine-datatable-nowrap",Fs="mantine-datatable-ellipsis",Mr="mantine-datatable-pointer-cursor",qu="mantine-datatable-context-menu-cursor",a1="mantine-datatable-text-selection-disabled",co="mantine-datatable-text-align-left",fo="mantine-datatable-text-align-center",ho="mantine-datatable-text-align-right";function l1({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:u,ellipsis:g,textAlign:v,width:h}){return uo(r)?O.jsx(F.TableTh,{className:ht({[Ys]:u||g,[Fs]:g,[co]:v==="left",[fo]:v==="center",[ho]:v==="right"},i),style:[{width:h,minWidth:h,maxWidth:h},n],children:s}):null}function u1({shadowVisible:i}){return O.jsx(F.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}function c1({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:u,selectorCellShadowVisible:g,ref:v}){return O.jsx(F.TableTfoot,{ref:v,className:ht("mantine-datatable-footer",i),style:n,children:O.jsxs(F.TableTr,{children:[u&&O.jsx(u1,{shadowVisible:g}),r.map(({hidden:h,...C})=>{if(h)return null;let{accessor:D,visibleMediaQuery:E,textAlign:N,width:M,footer:L,footerClassName:I,footerStyle:$,noWrap:H,ellipsis:oe}={...s,...C};return O.jsx(l1,{className:I,style:$,visibleMediaQuery:E,textAlign:N,width:M,title:L,noWrap:H,ellipsis:oe},D)})]})})}function f1({group:{id:i,columns:n,title:r,textAlign:s,className:u,style:g}}){let v=ye.useMemo(()=>n.map(({visibleMediaQuery:D})=>D),[n]),h=r1(v),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",{[co]:s==="left",[fo]:s==="center",[ho]:s==="right"},u),style:g,children:r??Bs(i)}):null}function h1(){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 d1(){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 p1({children:i,isActive:n,filterPopoverProps:r,filterPopoverDisableClickOutside:s}){let[u,{close:g,toggle:v}]=Mt.useDisclosure(!1),h=n?d1:h1,C=Mt.useClickOutside(g);return s&&(C=void 0),O.jsxs(F.Popover,{withArrow:!0,shadow:"md",opened:u,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(),v()},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 g1=i=>{let{accessor:n,columnRef:r}=i,[s,u]=ye.useState(!1),g=ye.useRef(0),v=ye.useRef({current:0,next:0}),{setMultipleColumnWidths:h}=Ns(),C=ye.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let N=r.current,M=N.nextElementSibling;for(;M;){let se=M.getAttribute("data-accessor");if(se&&se!=="__selection__")break;M=M.nextElementSibling}if(!M)return;let L=M.getAttribute("data-accessor");if(!L)return;let I=L==="__selection__";u(!0),g.current=E.clientX;let $=N.offsetWidth,H=M.offsetWidth;v.current={current:$,next:H};let oe=se=>{if(!r.current)return;let ce=r.current,Q=ce.nextElementSibling;if(!Q)return;let ne=se.clientX-g.current,J=50,K=v.current.current-J,de=v.current.next-J,he=Math.max(-K,Math.min(ne,de)),ae=v.current.current+he,De=v.current.next-he;ce.style.width=`${ae}px`,Q.style.width=`${De}px`,ce.style.minWidth=`${ae}px`,ce.style.maxWidth=`${ae}px`,Q.style.minWidth=`${De}px`,Q.style.maxWidth=`${De}px`},le=()=>{if(!r.current)return;let se=r.current,ce=se.nextElementSibling;u(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Q=parseInt(se.style.width)||se.offsetWidth,ne=ce?parseInt(ce.style.width)||ce.offsetWidth:0,J=[{accessor:n,width:`${Q}px`}];if(ce&&!I){let K=ce.getAttribute("data-accessor");K&&J.push({accessor:K,width:`${ne}px`})}setTimeout(()=>{h(J)},0),document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",le)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",oe),document.addEventListener("mouseup",le)},[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 M=[{accessor:n,width:"initial"}];if(N){N.style.width="",N.style.minWidth="",N.style.maxWidth="";let L=N.getAttribute("data-accessor");L&&L!=="__selection__"&&M.push({accessor:L,width:"initial"})}setTimeout(()=>{h(M)},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 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:"M12 5l0 14"}),O.jsx("path",{d:"M16 9l-4 -4"}),O.jsx("path",{d:"M8 9l4 -4"})]})}function m1(){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 y1(){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 _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:"M18 6l-12 12"}),O.jsx("path",{d:"M6 6l12 12"})]})}function w1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:u,sortable:g,draggable:v,toggleable:h,resizable:C,sortIcons:D,textAlign:E,width:N,sortStatus:M,onSortStatusChange:L,filter:I,filterPopoverProps:$,filterPopoverDisableClickOutside:H,filtering:oe,sortKey:le}){let{setSourceColumn:se,setTargetColumn:ce,swapColumns:Q,setColumnsToggle:ne}=Ns(),[J,K]=ye.useState(!1),de=ye.useRef(null);if(!uo(s))return null;let he=u??Bs(r),ae=typeof he=="string"?he:void 0,De=g&&L?w=>{w?.defaultPrevented||L({sortKey:le,columnAccessor:r,direction:M?.columnAccessor===r?M.direction==="asc"?"desc":"asc":M?.direction??"asc"})}:void 0,Oe=w=>{w.stopPropagation(),se(r),K(!1)},k=w=>{w.preventDefault(),ce(r),K(!0)},T=()=>{ce(r),K(!1),Q()},A=()=>{K(!0)},p=()=>{K(!1)},d=w=>{w.stopPropagation(),ne(f=>f.map(m=>m.accessor===r?{...m,toggled:!1}:m))};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:w=>w.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":v,"mantine-datatable-header-cell-drag-over":J}),draggable:v,onDragStart:v?Oe:void 0,onDragEnter:v?A:void 0,onDragOver:v?k:void 0,onDrop:v?T:void 0,onDragLeave:v?p:void 0,children:[v?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:w=>{w.stopPropagation()},children:O.jsx(y1,{})})}):null,O.jsx(F.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},Ys,Fs),title:ae,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:d,children:O.jsx(_1,{})})}):null,g||M?.columnAccessor===r?O.jsx(O.Fragment,{children:M?.columnAccessor===r?O.jsx(F.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":M.direction==="desc"}),role:"img","aria-label":`Sorted ${M.direction==="desc"?"descending":"ascending"}`,children:D?.sorted||O.jsx(v1,{})}):O.jsx(F.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:D?.unsorted||O.jsx(m1,{})})}):null,I?O.jsx(p1,{filterPopoverProps:$,isActive:!!oe,filterPopoverDisableClickOutside:H,children:I}):null]}),C&&r!=="__selection__"?O.jsx(g1,{accessor:r,columnRef:de}):null]})}function b1({className:i,style:n,trigger:r,shadowVisible:s,checked:u,indeterminate:g,checkboxProps:v,onChange:h,rowSpan:C,ref:D}){let E=!v.disabled;return O.jsx(F.TableTh,{ref:D,className:ht("mantine-datatable-header-selector-cell",{[Mr]: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:Mr}:void 0,checked:u,indeterminate:g,onChange:h,...v,disabled:!(h||v.onChange)||v.disabled})})}function x1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:u,onSortStatusChange:g,columns:v,defaultColumnProps:h,groups:C,selectionTrigger:D,selectionVisible:E,selectionChecked:N,selectionIndeterminate:M,onSelectionChange:L,selectionCheckboxProps:I,selectorCellShadowVisible:$,selectionColumnClassName:H,selectionColumnStyle:oe,ref:le}){let se=E?O.jsx(b1,{ref:i,className:H,style:oe,trigger:D,shadowVisible:$,checked:N,indeterminate:M,checkboxProps:I,onChange:L,rowSpan:C?2:void 0}):null,{columnsToggle:ce,setColumnsToggle:Q}=Ns(),[ne,J]=ye.useState(!1),K=v.some(ae=>ae.toggleable),de=K?Object.fromEntries(v.map(({accessor:ae,title:De})=>[ae,De??Bs(String(ae))])):void 0,he=O.jsxs(F.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:le,onContextMenu:K?ae=>{ae.preventDefault(),J(De=>!De)}:void 0,children:[C&&O.jsxs(F.TableTr,{children:[se,C.map(ae=>O.jsx(f1,{group:ae},ae.id))]}),O.jsxs(F.TableTr,{children:[!C&&se,v.map(({hidden:ae,...De},Oe)=>{if(ae)return null;let{accessor:k,visibleMediaQuery:T,textAlign:A,width:p,title:d,sortable:w,draggable:f,toggleable:m,resizable:S,titleClassName:Y,titleStyle:G,filter:ie,filterPopoverProps:ue,filterPopoverDisableClickOutside:we,filtering:X,sortKey:be}={...h,...De};return O.jsx(w1,{accessor:k,className:Y,style:G,visibleMediaQuery:T,textAlign:A,width:p,title:d,sortable:w,draggable:f,toggleable:m,resizable:S&&Oe<v.length-1,sortStatus:s,sortIcons:u,sortKey:be,onSortStatusChange:g,filter:ie,filterPopoverProps:ue,filterPopoverDisableClickOutside:we,filtering:X},k)})]})]});return K?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(ae=>ae.toggleable).map(ae=>O.jsx(F.Group,{children:O.jsx(F.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[ae.accessor],checked:ae.toggled,onChange:De=>{Q(ce.map(Oe=>Oe.accessor===ae.accessor?{...Oe,toggled:De.currentTarget.checked}:Oe))}})},ae.accessor))})})]}):he}function C1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:u,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:u,color:g}))})}function mt(i,n,r){return i?F.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function S1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:u,stripedColor:g,highlightOnHoverColor:v}){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(u,i,"light"),"--mantine-datatable-row-border-color-dark":mt(u,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(v,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":mt(v,i,"dark")}}function Hu({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 A1({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 D1(){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 Gu={xs:F.rem(22),sm:F.rem(26),md:F.rem(32),lg:F.rem(38),xl:F.rem(44)};function O1({size:i,label:n,values:r,value:s,activeTextColor:u,activeBackgroundColor:g,onChange:v}){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(D1,{}),style:[{fontWeight:"normal"},h=>({height:Gu[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:Gu[i]},C&&(u||g)?D=>Hu({theme:D,paginationActiveTextColor:u,paginationActiveBackgroundColor:g}):void 0],disabled:C,onClick:()=>v(h),children:O.jsx(F.Text,{component:"div",size:i,children:h})},h)})})]})]})}function E1({className:i,style:n,fetching:r,page:s,onPageChange:u,paginationWithEdges:g,paginationWithControls:v,paginationActiveTextColor:h,paginationActiveBackgroundColor:C,paginationSize:D,loadingText:E,noRecordsText:N,paginationText:M,totalRecords:L,recordsPerPage:I,onRecordsPerPageChange:$,recordsPerPageLabel:H,recordsPerPageOptions:oe,recordsLength:le,horizontalSpacing:se,paginationWrapBreakpoint:ce,getPaginationControlProps:Q}){let ne;if(L){let K=(s-1)*I+1,de=K+(le||0)-1;ne=M({from:K,to:de,totalRecords:L})}else ne=r?E:N;let J=uo(({breakpoints:K})=>`(min-width: ${typeof ce=="number"?`${F.rem(ce)}rem`:K[ce]||ce})`);return O.jsxs(F.Box,{px:se??"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}),oe&&O.jsx(O1,{activeTextColor:h,activeBackgroundColor:C,size:D,label:H,values:oe,value:I,onChange:$}),O.jsx(F.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!le}),control:"mantine-datatable-pagination-pages-control"},style:h||C?K=>Hu({theme:K,paginationActiveTextColor:h,paginationActiveBackgroundColor:C}):void 0,withEdges:g,withControls:v,value:s,onChange:u,size:D,total:Math.ceil(L/I),getControlProps:Q})]})}function T1({className:i,style:n,visibleMediaQuery:r,record:s,index:u,onClick:g,onDoubleClick:v,onContextMenu:h,noWrap:C,ellipsis:D,textAlign:E,width:N,accessor:M,render:L,defaultRender:I,customCellAttributes:$}){return uo(r)?O.jsx(F.TableTd,{className:ht({[Ys]:C||D,[Fs]:D,[Mr]:g||v,[qu]:h,[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},i),style:[{width:N,minWidth:N,maxWidth:N},n],onClick:g,onDoubleClick:v,onContextMenu:h,...$?.(s,u),children:L?L(s,u):I?I(s,u,M):zu(s,M)}):null}function P1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:u,visible:g}=s1(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:u,...s,children:O.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function M1({className:i,style:n,record:r,index:s,trigger:u,onChange:g,withRightShadow:v,checkboxProps:h,getCheckboxProps:C,...D}){let E={...h,...C(r,s)},N=!D.disabled&&!E.disabled,M=L=>{L.stopPropagation(),u==="cell"&&N&&g?.(L)};return O.jsx(F.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Mr]:u==="cell"&&N},i),style:n,"data-shadow-visible":v||void 0,onClick:M,children:O.jsx(F.Checkbox,{classNames:N?{input:Mr}:void 0,onChange:g,...D,...E})})}function R1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:u,selectionTrigger:g,selectionVisible:v,selectionChecked:h,onSelectionChange:C,isRecordSelectable:D,selectionCheckboxProps:E,getSelectionCheckboxProps:N,onClick:M,onDoubleClick:L,onContextMenu:I,onCellClick:$,onCellDoubleClick:H,onCellContextMenu:oe,expansion:le,customAttributes:se,color:ce,backgroundColor:Q,className:ne,style:J,selectorCellShadowVisible:K,selectionColumnClassName:de,selectionColumnStyle:he,rowFactory:ae}){let De=O.jsxs(O.Fragment,{children:[v&&O.jsx(M1,{className:de,style:he,record:i,index:n,trigger:g,withRightShadow:K,checked:h,disabled:!C||(D?!D(i,n):!1),onChange:C,checkboxProps:E,getCheckboxProps:N}),r.map(({hidden:T,hiddenContent:A,...p},d)=>{if(T||A)return null;let{accessor:w,visibleMediaQuery:f,textAlign:m,noWrap:S,ellipsis:Y,width:G,render:ie,cellsClassName:ue,cellsStyle:we,customCellAttributes:X}={...s,...p};return O.jsx(T1,{className:typeof ue=="function"?ue(i,n):ue,style:we?.(i,n),visibleMediaQuery:f,record:i,index:n,onClick:$?be=>$({event:be,record:i,index:n,column:p,columnIndex:d}):void 0,onDoubleClick:H?be=>H({event:be,record:i,index:n,column:p,columnIndex:d}):void 0,onContextMenu:oe?be=>oe({event:be,record:i,index:n,column:p,columnIndex:d}):void 0,accessor:w,textAlign:m,noWrap:S,ellipsis:Y,width:G,render:ie,defaultRender:u,customCellAttributes:X},w)})]}),Oe=le&&O.jsx(P1,{colSpan:r.filter(({hidden:T})=>!T).length+(v?1:0),open:le.isRowExpanded(i),content:le.content({record:i,index:n}),collapseProps:le.collapseProps}),k=k1({record:i,index:n,selectionChecked:h,onClick:M,onDoubleClick:L,onContextMenu:I,expansion:le,customAttributes:se,color:ce,backgroundColor:Q,className:ne,style:J});return ae?ae({record:i,index:n,rowProps:k,children:De,expandedElement:Oe}):O.jsxs(O.Fragment,{children:[O.jsx(F.TableTr,{...k,children:De}),Oe]})}function k1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:u,onContextMenu:g,expansion:v,customAttributes:h,color:C,backgroundColor:D,className:E,style:N}){return{className:ht("mantine-datatable-row",{[Mr]:s||u||v?.isExpandable({record:i,index:n})&&v?.expandOnClick},{[qu]:g},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:M=>{if(v){let{isExpandable:L,isRowExpanded:I,expandOnClick:$,expandRow:H,collapseRow:oe}=v;L({record:i,index:n})&&$&&(I(i)?oe(i):H(i))}s?.({event:M,record:i,index:n})},onDoubleClick:u?M=>u({event:M,record:i,index:n}):void 0,onContextMenu:g?M=>g({event:M,record:i,index:n}):void 0,style:[C||D?M=>{let L=C?.(i,n),I=D?.(i,n);return A1({theme:M,color:L,backgroundColor:I})}:void 0,N?.(i,n)],...h?.(i,n)??{}}}function L1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:u,scrollAreaProps:g}){return O.jsxs(F.ScrollArea,{...g,viewportRef:u,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 N1({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:u,maxHeight:g,shadow:v,verticalAlign:h="center",fetching:C,columns:D,storeColumnsKey:E,groups:N,pinFirstColumn:M,pinLastColumn:L,defaultColumnProps:I,defaultColumnRender:$,idAccessor:H="id",records:oe,selectionTrigger:le="checkbox",selectedRecords:se,onSelectedRecordsChange:ce,selectionColumnClassName:Q,selectionColumnStyle:ne,isRecordSelectable:J,selectionCheckboxProps:K,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:he=(_t,Ze)=>({"aria-label":`Select record ${Ze+1}`}),sortStatus:ae,sortIcons:De,onSortStatusChange:Oe,horizontalSpacing:k,page:T,onPageChange:A,totalRecords:p,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:f,recordsPerPageLabel:m="Records per page",paginationWithEdges:S,paginationWithControls:Y,paginationActiveTextColor:G,paginationActiveBackgroundColor:ie,paginationSize:ue="sm",paginationText:we=({from:_t,to:Ze,totalRecords:ct})=>`${_t} - ${Ze} / ${ct}`,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:V="...",emptyState:ee,noRecordsText:Se="No records",noRecordsIcon:l,highlightOnHover:c,striped:_,noHeader:R,onRowClick:U,onRowDoubleClick:te,onRowContextMenu:Ae,onCellClick:Ce,onCellDoubleClick:Pe,onCellContextMenu:me,onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe,c:nt,backgroundColor:Et,borderColor:pt,rowBorderColor:rt,stripedColor:An,highlightOnHoverColor:St,rowColor:Dn,rowBackgroundColor:At,rowExpansion:jt,rowClassName:On,rowStyle:yt,customRowAttributes:an,scrollViewportRef:ln,scrollAreaProps:Yt,tableRef:Lt,bodyRef:Ft,m:Wt,my:Kt,mx:Ut,mt:ze,mb:at,ml:Nt,mr:Zt,className:Rn,classNames:un,style:yr,styles:cn,rowFactory:kn,tableWrapper:fn,...hn}){let _t=ye.useMemo(()=>N?.flatMap(Ve=>Ve.columns)??D,[D,N]),Ze=ye.useMemo(()=>_t.some(Ve=>Ve.resizable),[_t]),ct=Qg({key:E,columns:_t}),{refs:zt,onScroll:Yn}=Jg({scrollCallbacks:{onScroll:Re,onScrollToTop:Ie,onScrollToBottom:ke,onScrollToLeft:Xe,onScrollToRight:Qe},withRowBorders:hn.withRowBorders}),Rr=Mt.useMergedRef(zt.table,Lt),Fn=Mt.useMergedRef(zt.scrollViewport,ln),kr=o1({rowExpansion:jt,records:oe,idAccessor:H}),Wn=ye.useCallback(Ve=>{zt.scrollViewport.current?.scrollTo({top:0,left:0}),A(Ve)},[A,zt.scrollViewport]),Lr=oe?.length,po=oe?.map(Ve=>kt(Ve,H)),or=!!se,sr=se?.map(Ve=>kt(Ve,H)),vi=po!==void 0&&sr!==void 0&&sr.length>0,Nr=J?oe?.filter(J):oe,Ir=Nr?.map(Ve=>kt(Ve,H)),$r=vi&&Ir.every(Ve=>sr.includes(Ve)),Ws=vi&&Ir.some(Ve=>sr.includes(Ve)),Us=ye.useCallback(()=>{se&&ce&&ce($r?se.filter(Ve=>!Ir.includes(kt(Ve,H))):js([...se,...Nr],Ve=>kt(Ve,H)))},[$r,H,ce,Ir,Nr,se]),{lastSelectionChangeIndex:_r,setLastSelectionChangeIndex:go}=Xg(po),Br=or&&!M,mi={m:Wt,my:Kt,mx:Ut,mt:ze,mb:at,ml:Nt,mr:Zt},zs=ye.useCallback(({children:Ve})=>fn?fn({children:Ve}):Ve,[fn]);return O.jsx($u,{...ct,children:O.jsxs(F.Box,{ref:zt.root,...mi,className:ht("mantine-datatable",{"mantine-datatable-with-border":i},Rn,un?.root),style:[Ve=>({...S1({theme:Ve,c:nt,backgroundColor:Et,borderColor:pt,rowBorderColor:rt,stripedColor:An,highlightOnHoverColor:St}),borderRadius:Ve.radius[n]||n,boxShadow:Ve.shadows[v]||v,height:s,minHeight:u,maxHeight:g}),yr,cn?.root,{position:"relative"}],children:[O.jsx(L1,{viewportRef:Fn,leftShadowBehind:or||!!M,rightShadowBehind:L,onScrollPositionChange:Yn,scrollAreaProps:Yt,children:O.jsx(zs,{children:O.jsxs(F.Table,{ref:Rr,horizontalSpacing:k,className:ht("mantine-datatable-table",{[a1]: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":or,"mantine-datatable-pin-first-column":M,"mantine-datatable-resizable-columns":Ze},un?.table),style:{...cn?.table},"data-striped":Lr&&_||void 0,"data-highlight-on-hover":c||void 0,...hn,children:[R?null:O.jsx($u,{...ct,children:O.jsx(x1,{ref:zt.header,selectionColumnHeaderRef:zt.selectionColumnHeader,className:un?.header,style:cn?.header,columns:_t,defaultColumnProps:I,groups:N,sortStatus:ae,sortIcons:De,onSortStatusChange:Oe,selectionTrigger:le,selectionVisible:or,selectionChecked:$r,selectionIndeterminate:Ws&&!$r,onSelectionChange:Us,selectionCheckboxProps:{...K,...de},selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:ne})}),O.jsx("tbody",{ref:Ft,children:Lr?oe.map((Ve,Ln)=>{let jr=kt(Ve,H),yi=sr?.includes(jr)||!1,_i;return ce&&se&&(_i=vo=>{if(vo.nativeEvent.shiftKey&&_r!==null){let Nn=oe.filter(Ln>_r?(Un,In)=>In>=_r&&In<=Ln&&(J?J(Un,In):!0):(Un,In)=>In>=Ln&&In<=_r&&(J?J(Un,In):!0));ce(yi?i1(se,Nn,Un=>kt(Un,H)):js([...se,...Nn],Un=>kt(Un,H)))}else ce(yi?se.filter(Nn=>kt(Nn,H)!==jr):js([...se,Ve],Nn=>kt(Nn,H)));go(Ln)}),O.jsx(R1,{record:Ve,index:Ln,columns:_t,defaultColumnProps:I,defaultColumnRender:$,selectionTrigger:le,selectionVisible:or,selectionChecked:yi,onSelectionChange:_i,isRecordSelectable:J,selectionCheckboxProps:K,getSelectionCheckboxProps:he,onClick:U,onDoubleClick:te,onCellClick:Ce,onCellDoubleClick:Pe,onContextMenu:Ae,onCellContextMenu:me,expansion:kr,color:Dn,backgroundColor:At,className:On,style:yt,customAttributes:an,selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:ne,idAccessor:H,rowFactory:kn},jr)}):O.jsx(Vg,{})}),_t.some(({footer:Ve})=>Ve)&&O.jsx(c1,{ref:zt.footer,className:un?.footer,style:cn?.footer,columns:_t,defaultColumnProps:I,selectionVisible:or,selectorCellShadowVisible:Br})]})})}),T&&O.jsx(E1,{className:un?.pagination,style:cn?.pagination,horizontalSpacing:k,fetching:C,page:T,onPageChange:Wn,totalRecords:p,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:f,recordsPerPageLabel:m,paginationWithEdges:S,paginationWithControls:Y,paginationActiveTextColor:G,paginationActiveBackgroundColor:ie,paginationSize:ue,paginationText:we,paginationWrapBreakpoint:X,getPaginationControlProps:be,noRecordsText:Se,loadingText:V,recordsLength:Lr}),O.jsx(C1,{fetching:C,backgroundBlur:_e,customContent:ve,size:B,type:Z,color:W}),O.jsx(Zg,{icon:l,text:Se,active:!C&&!Lr,children:ee})]})})}var gi={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 I1=hi.exports,Vu;function $1(){return Vu||(Vu=1,function(i,n){(function(){var r,s="4.17.21",u=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",f="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",A=500,E="__lodash_placeholder__",L=1,M=2,k=4,I=1,B=2,G=1,ie=2,se=4,ae=8,le=16,Q=32,ue=64,Z=128,V=256,pe=512,fe=30,re="...",Oe=800,De=16,N=1,R=2,D=3,p=1/0,d=9007199254740991,w=17976931348623157e292,h=NaN,v=4294967295,S=v-1,Y=v>>>1,U=[["ary",Z],["bind",G],["bindKey",ie],["curry",ae],["curryRight",le],["flip",pe],["partial",Q],["partialRight",ue],["rearg",V]],oe="[object Arguments]",ce="[object Array]",_e="[object AsyncFunction]",X="[object Boolean]",ye="[object Date]",me="[object DOMException]",xe="[object Error]",$="[object Function]",K="[object GeneratorFunction]",W="[object Map]",J="[object Number]",ee="[object Null]",Se="[object Object]",l="[object Promise]",c="[object Proxy]",_="[object RegExp]",T="[object Set]",z="[object String]",te="[object Symbol]",Ae="[object Undefined]",be="[object WeakMap]",Pe="[object WeakSet]",Ce="[object ArrayBuffer]",Le="[object DataView]",Be="[object Float32Array]",Re="[object Float64Array]",nt="[object Int8Array]",et="[object Int16Array]",Ze="[object Int32Array]",wt="[object Uint8Array]",ht="[object Uint8ClampedArray]",Qe="[object Uint16Array]",jt="[object Uint32Array]",mt=/\b__p \+= '';/g,Yt=/\b(__p \+=) '' \+/g,At=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ft=/&(?:amp|lt|gt|quot|#39);/g,Vt=/[&<>"']/g,yt=RegExp(Ft.source),sn=RegExp(Vt.source),On=/<%-([\s\S]+?)%>/g,_n=/<%([\s\S]+?)%>/g,Lt=/<%=([\s\S]+?)%>/g,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ut=/^\w*$/,wn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bn=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(bn.source),it=/^\s+/,Nt=/\s/,Kt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xn=/\{\n\/\* \[wrapped with (.+)\] \*/,Je=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xn=/[()=,{}\[\]\/\s]/,In=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tr=/\w*$/,Ct=/^[-+]0x[0-9a-f]+$/i,En=/^0b[01]+$/i,Er=/^\[object .+?Constructor\]$/,Tn=/^0o[0-7]+$/i,js=/^(?:0|[1-9]\d*)$/,Ys=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tr=/($^)/,Fs=/['\n\r\u2028\u2029\\]/g,Pr="\\ud800-\\udfff",Mr="\\u0300-\\u036f",co="\\ufe20-\\ufe2f",nr="\\u20d0-\\u20ff",rr=Mr+co+nr,di="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",kr="\\xac\\xb1\\xd7\\xf7",Lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ws="\\u2000-\\u206f",Us=" \\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",gr="A-Z\\xc0-\\xd6\\xd8-\\xde",fo="\\ufe0e\\ufe0f",Nr=kr+Lr+Ws+Us,pi="['’]",zs="["+Pr+"]",Ve="["+Nr+"]",Pn="["+rr+"]",Ir="\\d+",gi="["+di+"]",vi="["+Rr+"]",ho="[^"+Pr+Nr+Ir+di+Rr+gr+"]",Mn="\\ud83c[\\udffb-\\udfff]",$n="(?:"+Pn+"|"+Mn+")",Rn="[^"+Pr+"]",qs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",$r="["+gr+"]",Ju="\\u200d",Xu="(?:"+vi+"|"+ho+")",s0="(?:"+$r+"|"+ho+")",ec="(?:"+pi+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+pi+"(?:D|LL|M|RE|S|T|VE))?",nc=$n+"?",rc="["+fo+"]?",a0="(?:"+Ju+"(?:"+[Rn,qs,Hs].join("|")+")"+rc+nc+")*",l0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ic=rc+nc+a0,c0="(?:"+[gi,qs,Hs].join("|")+")"+ic,f0="(?:"+[Rn+Pn+"?",Pn,qs,Hs,zs].join("|")+")",h0=RegExp(pi,"g"),d0=RegExp(Pn,"g"),Gs=RegExp(Mn+"(?="+Mn+")|"+f0+ic,"g"),p0=RegExp([$r+"?"+vi+"+"+ec+"(?="+[Ve,$r,"$"].join("|")+")",s0+"+"+tc+"(?="+[Ve,$r+Xu,"$"].join("|")+")",$r+"?"+Xu+"+"+ec,$r+"+"+tc,u0,l0,Ir,c0].join("|"),"g"),g0=RegExp("["+Ju+Pr+rr+fo+"]"),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[Be]=lt[Re]=lt[nt]=lt[et]=lt[Ze]=lt[wt]=lt[ht]=lt[Qe]=lt[jt]=!0,lt[oe]=lt[ce]=lt[Ce]=lt[X]=lt[Le]=lt[ye]=lt[xe]=lt[$]=lt[W]=lt[J]=lt[Se]=lt[_]=lt[T]=lt[z]=lt[be]=!1;var at={};at[oe]=at[ce]=at[Ce]=at[Le]=at[X]=at[ye]=at[Be]=at[Re]=at[nt]=at[et]=at[Ze]=at[W]=at[J]=at[Se]=at[_]=at[T]=at[z]=at[te]=at[wt]=at[ht]=at[Qe]=at[jt]=!0,at[xe]=at[$]=at[be]=!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={"&":"&","<":"<",">":">",'"':""","'":"'"},b0={"&":"&","<":"<",">":">",""":'"',"'":"'"},x0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},C0=parseFloat,S0=parseInt,oc=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri,D0=typeof self=="object"&&self&&self.Object===Object&&self,Ot=oc||D0||Function("return this")(),Vs=n&&!n.nodeType&&n,vr=Vs&&!0&&i&&!i.nodeType&&i,sc=vr&&vr.exports===Vs,Ks=sc&&oc.process,an=function(){try{var q=vr&&vr.require&&vr.require("util").types;return q||Ks&&Ks.binding&&Ks.binding("util")}catch{}}(),ac=an&&an.isArrayBuffer,lc=an&&an.isDate,uc=an&&an.isMap,cc=an&&an.isRegExp,fc=an&&an.isSet,hc=an&&an.isTypedArray;function Zt(q,he,ne){switch(ne.length){case 0:return q.call(he);case 1:return q.call(he,ne[0]);case 2:return q.call(he,ne[0],ne[1]);case 3:return q.call(he,ne[0],ne[1],ne[2])}return q.apply(he,ne)}function A0(q,he,ne,Me){for(var Ye=-1,Xe=q==null?0:q.length;++Ye<Xe;){var bt=q[Ye];he(Me,bt,ne(bt),q)}return Me}function ln(q,he){for(var ne=-1,Me=q==null?0:q.length;++ne<Me&&he(q[ne],ne,q)!==!1;);return q}function O0(q,he){for(var ne=q==null?0:q.length;ne--&&he(q[ne],ne,q)!==!1;);return q}function dc(q,he){for(var ne=-1,Me=q==null?0:q.length;++ne<Me;)if(!he(q[ne],ne,q))return!1;return!0}function ir(q,he){for(var ne=-1,Me=q==null?0:q.length,Ye=0,Xe=[];++ne<Me;){var bt=q[ne];he(bt,ne,q)&&(Xe[Ye++]=bt)}return Xe}function po(q,he){var ne=q==null?0:q.length;return!!ne&&Br(q,he,0)>-1}function Zs(q,he,ne){for(var Me=-1,Ye=q==null?0:q.length;++Me<Ye;)if(ne(he,q[Me]))return!0;return!1}function ut(q,he){for(var ne=-1,Me=q==null?0:q.length,Ye=Array(Me);++ne<Me;)Ye[ne]=he(q[ne],ne,q);return Ye}function or(q,he){for(var ne=-1,Me=he.length,Ye=q.length;++ne<Me;)q[Ye+ne]=he[ne];return q}function Qs(q,he,ne,Me){var Ye=-1,Xe=q==null?0:q.length;for(Me&&Xe&&(ne=q[++Ye]);++Ye<Xe;)ne=he(ne,q[Ye],Ye,q);return ne}function E0(q,he,ne,Me){var Ye=q==null?0:q.length;for(Me&&Ye&&(ne=q[--Ye]);Ye--;)ne=he(ne,q[Ye],Ye,q);return ne}function Js(q,he){for(var ne=-1,Me=q==null?0:q.length;++ne<Me;)if(he(q[ne],ne,q))return!0;return!1}var T0=Xs("length");function P0(q){return q.split("")}function M0(q){return q.match(_t)||[]}function pc(q,he,ne){var Me;return ne(q,function(Ye,Xe,bt){if(he(Ye,Xe,bt))return Me=Xe,!1}),Me}function go(q,he,ne,Me){for(var Ye=q.length,Xe=ne+(Me?1:-1);Me?Xe--:++Xe<Ye;)if(he(q[Xe],Xe,q))return Xe;return-1}function Br(q,he,ne){return he===he?U0(q,he,ne):go(q,gc,ne)}function R0(q,he,ne,Me){for(var Ye=ne-1,Xe=q.length;++Ye<Xe;)if(Me(q[Ye],he))return Ye;return-1}function gc(q){return q!==q}function vc(q,he){var ne=q==null?0:q.length;return ne?ta(q,he)/ne:h}function Xs(q){return function(he){return he==null?r:he[q]}}function ea(q){return function(he){return q==null?r:q[he]}}function mc(q,he,ne,Me,Ye){return Ye(q,function(Xe,bt,ot){ne=Me?(Me=!1,Xe):he(ne,Xe,bt,ot)}),ne}function k0(q,he){var ne=q.length;for(q.sort(he);ne--;)q[ne]=q[ne].value;return q}function ta(q,he){for(var ne,Me=-1,Ye=q.length;++Me<Ye;){var Xe=he(q[Me]);Xe!==r&&(ne=ne===r?Xe:ne+Xe)}return ne}function na(q,he){for(var ne=-1,Me=Array(q);++ne<q;)Me[ne]=he(ne);return Me}function L0(q,he){return ut(he,function(ne){return[ne,q[ne]]})}function yc(q){return q&&q.slice(0,xc(q)+1).replace(it,"")}function Qt(q){return function(he){return q(he)}}function ra(q,he){return ut(he,function(ne){return q[ne]})}function mi(q,he){return q.has(he)}function _c(q,he){for(var ne=-1,Me=q.length;++ne<Me&&Br(he,q[ne],0)>-1;);return ne}function wc(q,he){for(var ne=q.length;ne--&&Br(he,q[ne],0)>-1;);return ne}function N0(q,he){for(var ne=q.length,Me=0;ne--;)q[ne]===he&&++Me;return Me}var I0=ea(_0),$0=ea(w0);function B0(q){return"\\"+x0[q]}function j0(q,he){return q==null?r:q[he]}function jr(q){return g0.test(q)}function Y0(q){return v0.test(q)}function F0(q){for(var he,ne=[];!(he=q.next()).done;)ne.push(he.value);return ne}function ia(q){var he=-1,ne=Array(q.size);return q.forEach(function(Me,Ye){ne[++he]=[Ye,Me]}),ne}function bc(q,he){return function(ne){return q(he(ne))}}function sr(q,he){for(var ne=-1,Me=q.length,Ye=0,Xe=[];++ne<Me;){var bt=q[ne];(bt===he||bt===E)&&(q[ne]=E,Xe[Ye++]=ne)}return Xe}function vo(q){var he=-1,ne=Array(q.size);return q.forEach(function(Me){ne[++he]=Me}),ne}function W0(q){var he=-1,ne=Array(q.size);return q.forEach(function(Me){ne[++he]=[Me,Me]}),ne}function U0(q,he,ne){for(var Me=ne-1,Ye=q.length;++Me<Ye;)if(q[Me]===he)return Me;return-1}function z0(q,he,ne){for(var Me=ne+1;Me--;)if(q[Me]===he)return Me;return Me}function Yr(q){return jr(q)?H0(q):T0(q)}function Cn(q){return jr(q)?G0(q):P0(q)}function xc(q){for(var he=q.length;he--&&Nt.test(q.charAt(he)););return he}var q0=ea(b0);function H0(q){for(var he=Gs.lastIndex=0;Gs.test(q);)++he;return he}function G0(q){return q.match(Gs)||[]}function V0(q){return q.match(p0)||[]}var K0=function q(he){he=he==null?Ot:Fr.defaults(Ot.Object(),he,Fr.pick(Ot,m0));var ne=he.Array,Me=he.Date,Ye=he.Error,Xe=he.Function,bt=he.Math,ot=he.Object,oa=he.RegExp,Z0=he.String,un=he.TypeError,mo=ne.prototype,Q0=Xe.prototype,Wr=ot.prototype,yo=he["__core-js_shared__"],_o=Q0.toString,rt=Wr.hasOwnProperty,J0=0,Cc=function(){var e=/[^.]+$/.exec(yo&&yo.keys&&yo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wo=Wr.toString,X0=_o.call(ot),ev=Ot._,tv=oa("^"+_o.call(rt).replace(bn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bo=sc?he.Buffer:r,ar=he.Symbol,xo=he.Uint8Array,Sc=bo?bo.allocUnsafe:r,Co=bc(ot.getPrototypeOf,ot),Dc=ot.create,Ac=Wr.propertyIsEnumerable,So=mo.splice,Oc=ar?ar.isConcatSpreadable:r,yi=ar?ar.iterator:r,mr=ar?ar.toStringTag:r,Do=function(){try{var e=xr(ot,"defineProperty");return e({},"",{}),e}catch{}}(),nv=he.clearTimeout!==Ot.clearTimeout&&he.clearTimeout,rv=Me&&Me.now!==Ot.Date.now&&Me.now,iv=he.setTimeout!==Ot.setTimeout&&he.setTimeout,Ao=bt.ceil,Oo=bt.floor,sa=ot.getOwnPropertySymbols,ov=bo?bo.isBuffer:r,Ec=he.isFinite,sv=mo.join,av=bc(ot.keys,ot),xt=bt.max,Tt=bt.min,lv=Me.now,uv=he.parseInt,Tc=bt.random,cv=mo.reverse,aa=xr(he,"DataView"),_i=xr(he,"Map"),la=xr(he,"Promise"),Ur=xr(he,"Set"),wi=xr(he,"WeakMap"),bi=xr(ot,"create"),Eo=wi&&new wi,zr={},fv=Cr(aa),hv=Cr(_i),dv=Cr(la),pv=Cr(Ur),gv=Cr(wi),To=ar?ar.prototype:r,xi=To?To.valueOf:r,Pc=To?To.toString:r;function b(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof cn)return e;if(rt.call(e,"__wrapped__"))return Rf(e)}return new cn(e)}var qr=function(){function e(){}return function(t){if(!ct(t))return{};if(Dc)return Dc(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Po(){}function cn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:On,evaluate:_n,interpolate:Lt,variable:"",imports:{_:b}},b.prototype=Po.prototype,b.prototype.constructor=b,cn.prototype=qr(Po.prototype),cn.prototype.constructor=cn;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__=zt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=zt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=zt(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,H=j-P,de=a?j:P-1,ge=this.__iteratees__,we=ge.length,Ee=0,ke=Tt(H,this.__takeCount__);if(!o||!a&&y==H&&ke==H)return ef(e,this.__actions__);var Ie=[];e:for(;H--&&Ee<ke;){de+=t;for(var Ue=-1,$e=e[de];++Ue<we;){var He=ge[Ue],Ke=He.iteratee,en=He.type,Bt=Ke($e);if(en==R)$e=Bt;else if(!Bt){if(en==N)continue e;break e}}Ie[Ee++]=$e}return Ie}Ge.prototype=qr(Po.prototype),Ge.prototype.constructor=Ge;function yr(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__=bi?bi(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(bi){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 bi?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]=bi&&t===r?C:t,this}yr.prototype.clear=_v,yr.prototype.delete=wv,yr.prototype.get=bv,yr.prototype.has=xv,yr.prototype.set=Cv;function Bn(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 Dv(e){var t=this.__data__,o=Mo(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():So.call(t,o,1),--this.size,!0}function Av(e){var t=this.__data__,o=Mo(t,e);return o<0?r:t[o][1]}function Ov(e){return Mo(this.__data__,e)>-1}function Ev(e,t){var o=this.__data__,a=Mo(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}Bn.prototype.clear=Sv,Bn.prototype.delete=Dv,Bn.prototype.get=Av,Bn.prototype.has=Ov,Bn.prototype.set=Ev;function jn(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 yr,map:new(_i||Bn),string:new yr}}function Pv(e){var t=Uo(this,e).delete(e);return this.size-=t?1:0,t}function Mv(e){return Uo(this,e).get(e)}function Rv(e){return Uo(this,e).has(e)}function kv(e,t){var o=Uo(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}jn.prototype.clear=Tv,jn.prototype.delete=Pv,jn.prototype.get=Mv,jn.prototype.has=Rv,jn.prototype.set=kv;function _r(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new jn;++t<o;)this.add(e[t])}function Lv(e){return this.__data__.set(e,C),this}function Nv(e){return this.__data__.has(e)}_r.prototype.add=_r.prototype.push=Lv,_r.prototype.has=Nv;function Sn(e){var t=this.__data__=new Bn(e);this.size=t.size}function Iv(){this.__data__=new Bn,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 Bn){var a=o.__data__;if(!_i||a.length<u-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new jn(a)}return o.set(e,t),this.size=o.size,this}Sn.prototype.clear=Iv,Sn.prototype.delete=$v,Sn.prototype.get=Bv,Sn.prototype.has=jv,Sn.prototype.set=Yv;function Mc(e,t){var o=Fe(e),a=!o&&Sr(e),y=!o&&!a&&hr(e),x=!o&&!a&&!y&&Kr(e),P=o||a||y||x,j=P?na(e.length,Z0):[],H=j.length;for(var de in e)(t||rt.call(e,de))&&!(P&&(de=="length"||y&&(de=="offset"||de=="parent")||x&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||Un(de,H)))&&j.push(de);return j}function Rc(e){var t=e.length;return t?e[_a(0,t-1)]:r}function Fv(e,t){return zo(zt(e),wr(t,0,e.length))}function Wv(e){return zo(zt(e))}function ua(e,t,o){(o!==r&&!Dn(e[t],o)||o===r&&!(t in e))&&Yn(e,t,o)}function Ci(e,t,o){var a=e[t];(!(rt.call(e,t)&&Dn(a,o))||o===r&&!(t in e))&&Yn(e,t,o)}function Mo(e,t){for(var o=e.length;o--;)if(Dn(e[o][0],t))return o;return-1}function Uv(e,t,o,a){return lr(e,function(y,x,P){t(a,y,o(y),P)}),a}function kc(e,t){return e&&Ln(t,St(t),e)}function zv(e,t){return e&&Ln(t,Ht(t),e)}function Yn(e,t,o){t=="__proto__"&&Do?Do(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ca(e,t){for(var o=-1,a=t.length,y=ne(a),x=e==null;++o<a;)y[o]=x?r:za(e,t[o]);return y}function wr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function fn(e,t,o,a,y,x){var P,j=t&L,H=t&M,de=t&k;if(o&&(P=y?o(e,a,y,x):o(e)),P!==r)return P;if(!ct(e))return e;var ge=Fe(e);if(ge){if(P=Rm(e),!j)return zt(e,P)}else{var we=Pt(e),Ee=we==$||we==K;if(hr(e))return rf(e,j);if(we==Se||we==oe||Ee&&!y){if(P=H||Ee?{}:Cf(e),!j)return H?bm(e,zv(P,e)):wm(e,kc(P,e))}else{if(!at[we])return y?e:{};P=km(e,we,j)}}x||(x=new Sn);var ke=x.get(e);if(ke)return ke;x.set(e,P),Jf(e)?e.forEach(function($e){P.add(fn($e,t,o,$e,e,x))}):Zf(e)&&e.forEach(function($e,He){P.set(He,fn($e,t,o,He,e,x))});var Ie=de?H?Pa:Ta:H?Ht:St,Ue=ge?r:Ie(e);return ln(Ue||e,function($e,He){Ue&&(He=$e,$e=e[He]),Ci(P,He,fn($e,t,o,He,e,x))}),P}function qv(e){var t=St(e);return function(o){return Lc(o,e,t)}}function Lc(e,t,o){var a=o.length;if(e==null)return!a;for(e=ot(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 Nc(e,t,o){if(typeof e!="function")throw new un(m);return Pi(function(){e.apply(r,o)},t)}function Si(e,t,o,a){var y=-1,x=po,P=!0,j=e.length,H=[],de=t.length;if(!j)return H;o&&(t=ut(t,Qt(o))),a?(x=Zs,P=!1):t.length>=u&&(x=mi,P=!1,t=new _r(t));e:for(;++y<j;){var ge=e[y],we=o==null?ge:o(ge);if(ge=a||ge!==0?ge:0,P&&we===we){for(var Ee=de;Ee--;)if(t[Ee]===we)continue e;H.push(ge)}else x(t,we,a)||H.push(ge)}return H}var lr=uf(kn),Ic=uf(ha,!0);function Hv(e,t){var o=!0;return lr(e,function(a,y,x){return o=!!t(a,y,x),o}),o}function Ro(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&&!Xt(P):o(P,j)))var j=P,H=x}return H}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:eh(a);o<a;)e[o++]=t;return e}function $c(e,t){var o=[];return lr(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):or(y,j):a||(y[y.length]=j)}return y}var fa=cf(),Bc=cf(!0);function kn(e,t){return e&&fa(e,t,St)}function ha(e,t){return e&&Bc(e,t,St)}function ko(e,t){return ir(t,function(o){return zn(e[o])})}function br(e,t){t=cr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[Nn(t[o++])];return o&&o==a?e:r}function jc(e,t,o){var a=t(e);return Fe(e)?a:or(a,o(e))}function It(e){return e==null?e===r?Ae:ee:mr&&mr in ot(e)?Tm(e):Wm(e)}function da(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 ot(e)}function Zv(e,t,o){return e>=Tt(t,o)&&e<xt(t,o)}function pa(e,t,o){for(var a=o?Zs:po,y=e[0].length,x=e.length,P=x,j=ne(x),H=1/0,de=[];P--;){var ge=e[P];P&&t&&(ge=ut(ge,Qt(t))),H=Tt(ge.length,H),j[P]=!o&&(t||y>=120&&ge.length>=120)?new _r(P&&ge):r}ge=e[0];var we=-1,Ee=j[0];e:for(;++we<y&&de.length<H;){var ke=ge[we],Ie=t?t(ke):ke;if(ke=o||ke!==0?ke:0,!(Ee?mi(Ee,Ie):a(de,Ie,o))){for(P=x;--P;){var Ue=j[P];if(!(Ue?mi(Ue,Ie):a(e[P],Ie,o)))continue e}Ee&&Ee.push(Ie),de.push(ke)}}return de}function Qv(e,t,o,a){return kn(e,function(y,x,P){t(a,o(y),x,P)}),a}function Di(e,t,o){t=cr(t,e),e=Of(e,t);var a=e==null?e:e[Nn(dn(t))];return a==null?r:Zt(a,e,o)}function Yc(e){return dt(e)&&It(e)==oe}function Jv(e){return dt(e)&&It(e)==Ce}function Xv(e){return dt(e)&&It(e)==ye}function Ai(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,Ai,y)}function em(e,t,o,a,y,x){var P=Fe(e),j=Fe(t),H=P?ce:Pt(e),de=j?ce:Pt(t);H=H==oe?Se:H,de=de==oe?Se:de;var ge=H==Se,we=de==Se,Ee=H==de;if(Ee&&hr(e)){if(!hr(t))return!1;P=!0,ge=!1}if(Ee&&!ge)return x||(x=new Sn),P||Kr(e)?wf(e,t,o,a,y,x):Om(e,t,H,o,a,y,x);if(!(o&I)){var ke=ge&&rt.call(e,"__wrapped__"),Ie=we&&rt.call(t,"__wrapped__");if(ke||Ie){var Ue=ke?e.value():e,$e=Ie?t.value():t;return x||(x=new Sn),y(Ue,$e,o,a,x)}}return Ee?(x||(x=new Sn),Em(e,t,o,a,y,x)):!1}function tm(e){return dt(e)&&Pt(e)==W}function ga(e,t,o,a){var y=o.length,x=y,P=!a;if(e==null)return!x;for(e=ot(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 H=j[0],de=e[H],ge=j[1];if(P&&j[2]){if(de===r&&!(H in e))return!1}else{var we=new Sn;if(a)var Ee=a(de,ge,H,e,t,we);if(!(Ee===r?Ai(ge,de,I|B,a,we):Ee))return!1}}return!0}function Fc(e){if(!ct(e)||$m(e))return!1;var t=zn(e)?tv:Er;return t.test(Cr(e))}function nm(e){return dt(e)&&It(e)==_}function rm(e){return dt(e)&&Pt(e)==T}function im(e){return dt(e)&&Zo(e.length)&&!!lt[It(e)]}function Wc(e){return typeof e=="function"?e:e==null?Gt:typeof e=="object"?Fe(e)?qc(e[0],e[1]):zc(e):fh(e)}function va(e){if(!Ti(e))return av(e);var t=[];for(var o in ot(e))rt.call(e,o)&&o!="constructor"&&t.push(o);return t}function om(e){if(!ct(e))return Fm(e);var t=Ti(e),o=[];for(var a in e)a=="constructor"&&(t||!rt.call(e,a))||o.push(a);return o}function ma(e,t){return e<t}function Uc(e,t){var o=-1,a=qt(e)?ne(e.length):[];return lr(e,function(y,x,P){a[++o]=t(y,x,P)}),a}function zc(e){var t=Ra(e);return t.length==1&&t[0][2]?Df(t[0][0],t[0][1]):function(o){return o===e||ga(o,e,t)}}function qc(e,t){return La(e)&&Sf(t)?Df(Nn(e),t):function(o){var a=za(o,e);return a===r&&a===t?qa(o,e):Ai(t,a,I|B)}}function Lo(e,t,o,a,y){e!==t&&fa(t,function(x,P){if(y||(y=new Sn),ct(x))sm(e,t,P,o,Lo,a,y);else{var j=a?a(Ia(e,P),x,P+"",e,t,y):r;j===r&&(j=x),ua(e,P,j)}},Ht)}function sm(e,t,o,a,y,x,P){var j=Ia(e,o),H=Ia(t,o),de=P.get(H);if(de){ua(e,o,de);return}var ge=x?x(j,H,o+"",e,t,P):r,we=ge===r;if(we){var Ee=Fe(H),ke=!Ee&&hr(H),Ie=!Ee&&!ke&&Kr(H);ge=H,Ee||ke||Ie?Fe(j)?ge=j:pt(j)?ge=zt(j):ke?(we=!1,ge=rf(H,!0)):Ie?(we=!1,ge=of(H,!0)):ge=[]:Mi(H)||Sr(H)?(ge=j,Sr(j)?ge=th(j):(!ct(j)||zn(j))&&(ge=Cf(H))):we=!1}we&&(P.set(H,ge),y(ge,H,a,x,P),P.delete(H)),ua(e,o,ge)}function Hc(e,t){var o=e.length;if(o)return t+=t<0?o:0,Un(t,o)?e[t]:r}function Gc(e,t,o){t.length?t=ut(t,function(x){return Fe(x)?function(P){return br(P,x.length===1?x[0]:x)}:x}):t=[Gt];var a=-1;t=ut(t,Qt(Ne()));var y=Uc(e,function(x,P,j){var H=ut(t,function(de){return de(x)});return{criteria:H,index:++a,value:x}});return k0(y,function(x,P){return _m(x,P,o)})}function am(e,t){return Vc(e,t,function(o,a){return qa(e,a)})}function Vc(e,t,o){for(var a=-1,y=t.length,x={};++a<y;){var P=t[a],j=br(e,P);o(j,P)&&Oi(x,cr(P,e),j)}return x}function lm(e){return function(t){return br(t,e)}}function ya(e,t,o,a){var y=a?R0:Br,x=-1,P=t.length,j=e;for(e===t&&(t=zt(t)),o&&(j=ut(e,Qt(o)));++x<P;)for(var H=0,de=t[x],ge=o?o(de):de;(H=y(j,ge,H,a))>-1;)j!==e&&So.call(j,H,1),So.call(e,H,1);return e}function Kc(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;Un(y)?So.call(e,y,1):xa(e,y)}}return e}function _a(e,t){return e+Oo(Tc()*(t-e+1))}function um(e,t,o,a){for(var y=-1,x=xt(Ao((t-e)/(o||1)),0),P=ne(x);x--;)P[a?x:++y]=e,e+=o;return P}function wa(e,t){var o="";if(!e||t<1||t>d)return o;do t%2&&(o+=e),t=Oo(t/2),t&&(e+=e);while(t);return o}function qe(e,t){return $a(Af(e,t,Gt),e+"")}function cm(e){return Rc(Zr(e))}function fm(e,t){var o=Zr(e);return zo(o,wr(t,0,o.length))}function Oi(e,t,o,a){if(!ct(e))return e;t=cr(t,e);for(var y=-1,x=t.length,P=x-1,j=e;j!=null&&++y<x;){var H=Nn(t[y]),de=o;if(H==="__proto__"||H==="constructor"||H==="prototype")return e;if(y!=P){var ge=j[H];de=a?a(ge,H,j):r,de===r&&(de=ct(ge)?ge:Un(t[y+1])?[]:{})}Ci(j,H,de),j=j[H]}return e}var Zc=Eo?function(e,t){return Eo.set(e,t),e}:Gt,hm=Do?function(e,t){return Do(e,"toString",{configurable:!0,enumerable:!1,value:Ga(t),writable:!0})}:Gt;function dm(e){return zo(Zr(e))}function hn(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=ne(y);++a<y;)x[a]=e[a+t];return x}function pm(e,t){var o;return lr(e,function(a,y,x){return o=t(a,y,x),!o}),!!o}function No(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&&!Xt(P)&&(o?P<=t:P<t)?a=x+1:y=x}return y}return ba(e,t,Gt,o)}function ba(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,H=Xt(t),de=t===r;y<x;){var ge=Oo((y+x)/2),we=o(e[ge]),Ee=we!==r,ke=we===null,Ie=we===we,Ue=Xt(we);if(P)var $e=a||Ie;else de?$e=Ie&&(a||Ee):j?$e=Ie&&Ee&&(a||!ke):H?$e=Ie&&Ee&&!ke&&(a||!Ue):ke||Ue?$e=!1:$e=a?we<=t:we<t;$e?y=ge+1:x=ge}return Tt(x,S)}function Qc(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||!Dn(j,H)){var H=j;x[y++]=P===0?0:P}}return x}function Jc(e){return typeof e=="number"?e:Xt(e)?h:+e}function Jt(e){if(typeof e=="string")return e;if(Fe(e))return ut(e,Jt)+"";if(Xt(e))return Pc?Pc.call(e):"";var t=e+"";return t=="0"&&1/e==-p?"-0":t}function ur(e,t,o){var a=-1,y=po,x=e.length,P=!0,j=[],H=j;if(o)P=!1,y=Zs;else if(x>=u){var de=t?null:Dm(e);if(de)return vo(de);P=!1,y=mi,H=new _r}else H=t?[]:j;e:for(;++a<x;){var ge=e[a],we=t?t(ge):ge;if(ge=o||ge!==0?ge:0,P&&we===we){for(var Ee=H.length;Ee--;)if(H[Ee]===we)continue e;t&&H.push(we),j.push(ge)}else y(H,we,o)||(H!==j&&H.push(we),j.push(ge))}return j}function xa(e,t){return t=cr(t,e),e=Of(e,t),e==null||delete e[Nn(dn(t))]}function Xc(e,t,o,a){return Oi(e,t,o(br(e,t)),a)}function Io(e,t,o,a){for(var y=e.length,x=a?y:-1;(a?x--:++x<y)&&t(e[x],x,e););return o?hn(e,a?0:x,a?x+1:y):hn(e,a?x+1:0,a?y:x)}function ef(e,t){var o=e;return o instanceof Ge&&(o=o.value()),Qs(t,function(a,y){return y.func.apply(y.thisArg,or([a],y.args))},o)}function Ca(e,t,o){var a=e.length;if(a<2)return a?ur(e[0]):[];for(var y=-1,x=ne(a);++y<a;)for(var P=e[y],j=-1;++j<a;)j!=y&&(x[y]=Si(x[y]||P,e[j],t,o));return ur(Et(x,1),t,o)}function tf(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 Sa(e){return pt(e)?e:[]}function Da(e){return typeof e=="function"?e:Gt}function cr(e,t){return Fe(e)?e:La(e,t)?[e]:Mf(tt(e))}var gm=qe;function fr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:hn(e,t,o)}var nf=nv||function(e){return Ot.clearTimeout(e)};function rf(e,t){if(t)return e.slice();var o=e.length,a=Sc?Sc(o):new e.constructor(o);return e.copy(a),a}function Aa(e){var t=new e.constructor(e.byteLength);return new xo(t).set(new xo(e)),t}function vm(e,t){var o=t?Aa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function mm(e){var t=new e.constructor(e.source,tr.exec(e));return t.lastIndex=e.lastIndex,t}function ym(e){return xi?ot(xi.call(e)):{}}function of(e,t){var o=t?Aa(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function sf(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,x=Xt(e),P=t!==r,j=t===null,H=t===t,de=Xt(t);if(!j&&!de&&!x&&e>t||x&&P&&H&&!j&&!de||a&&P&&H||!o&&H||!y)return 1;if(!a&&!x&&!de&&e<t||de&&o&&y&&!a&&!x||j&&o&&y||!P&&y||!H)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 H=sf(y[a],x[a]);if(H){if(a>=j)return H;var de=o[a];return H*(de=="desc"?-1:1)}}return e.index-t.index}function af(e,t,o,a){for(var y=-1,x=e.length,P=o.length,j=-1,H=t.length,de=xt(x-P,0),ge=ne(H+de),we=!a;++j<H;)ge[j]=t[j];for(;++y<P;)(we||y<x)&&(ge[o[y]]=e[y]);for(;de--;)ge[j++]=e[y++];return ge}function lf(e,t,o,a){for(var y=-1,x=e.length,P=-1,j=o.length,H=-1,de=t.length,ge=xt(x-j,0),we=ne(ge+de),Ee=!a;++y<ge;)we[y]=e[y];for(var ke=y;++H<de;)we[ke+H]=t[H];for(;++P<j;)(Ee||y<x)&&(we[ke+o[P]]=e[y++]);return we}function zt(e,t){var o=-1,a=e.length;for(t||(t=ne(a));++o<a;)t[o]=e[o];return t}function Ln(e,t,o,a){var y=!o;o||(o={});for(var x=-1,P=t.length;++x<P;){var j=t[x],H=a?a(o[j],e[j],j,o,e):r;H===r&&(H=e[j]),y?Yn(o,j,H):Ci(o,j,H)}return o}function wm(e,t){return Ln(e,ka(e),t)}function bm(e,t){return Ln(e,bf(e),t)}function $o(e,t){return function(o,a){var y=Fe(o)?A0:Uv,x=t?t():{};return y(o,e,Ne(a,2),x)}}function Hr(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&&$t(o[0],o[1],P)&&(x=y<3?r:x,y=1),t=ot(t);++a<y;){var j=o[a];j&&e(t,j,a,x)}return t})}function uf(e,t){return function(o,a){if(o==null)return o;if(!qt(o))return e(o,a);for(var y=o.length,x=t?y:-1,P=ot(o);(t?x--:++x<y)&&a(P[x],x,P)!==!1;);return o}}function cf(e){return function(t,o,a){for(var y=-1,x=ot(t),P=a(t),j=P.length;j--;){var H=P[e?j:++y];if(o(x[H],H,x)===!1)break}return t}}function xm(e,t,o){var a=t&G,y=Ei(e);function x(){var P=this&&this!==Ot&&this instanceof x?y:e;return P.apply(a?o:this,arguments)}return x}function ff(e){return function(t){t=tt(t);var o=jr(t)?Cn(t):r,a=o?o[0]:t.charAt(0),y=o?fr(o,1).join(""):t.slice(1);return a[e]()+y}}function Gr(e){return function(t){return Qs(uh(lh(t).replace(h0,"")),e,"")}}function Ei(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=qr(e.prototype),a=e.apply(o,t);return ct(a)?a:o}}function Cm(e,t,o){var a=Ei(e);function y(){for(var x=arguments.length,P=ne(x),j=x,H=Vr(y);j--;)P[j]=arguments[j];var de=x<3&&P[0]!==H&&P[x-1]!==H?[]:sr(P,H);if(x-=de.length,x<o)return vf(e,t,Bo,y.placeholder,r,P,de,r,r,o-x);var ge=this&&this!==Ot&&this instanceof y?a:e;return Zt(ge,this,P)}return y}function hf(e){return function(t,o,a){var y=ot(t);if(!qt(t)){var x=Ne(o,3);t=St(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 df(e){return Wn(function(t){var o=t.length,a=o,y=cn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new un(m);if(y&&!P&&Wo(x)=="wrapper")var P=new cn([],!0)}for(a=P?a:o;++a<o;){x=t[a];var j=Wo(x),H=j=="wrapper"?Ma(x):r;H&&Na(H[0])&&H[1]==(Z|ae|Q|V)&&!H[4].length&&H[9]==1?P=P[Wo(H[0])].apply(P,H[3]):P=x.length==1&&Na(x)?P[j]():P.thru(x)}return function(){var de=arguments,ge=de[0];if(P&&de.length==1&&Fe(ge))return P.plant(ge).value();for(var we=0,Ee=o?t[we].apply(this,de):ge;++we<o;)Ee=t[we].call(this,Ee);return Ee}})}function Bo(e,t,o,a,y,x,P,j,H,de){var ge=t&Z,we=t&G,Ee=t&ie,ke=t&(ae|le),Ie=t&pe,Ue=Ee?r:Ei(e);function $e(){for(var He=arguments.length,Ke=ne(He),en=He;en--;)Ke[en]=arguments[en];if(ke)var Bt=Vr($e),tn=N0(Ke,Bt);if(a&&(Ke=af(Ke,a,y,ke)),x&&(Ke=lf(Ke,x,P,ke)),He-=tn,ke&&He<de){var gt=sr(Ke,Bt);return vf(e,t,Bo,$e.placeholder,o,Ke,gt,j,H,de-He)}var An=we?o:this,Hn=Ee?An[e]:e;return He=Ke.length,j?Ke=Um(Ke,j):Ie&&He>1&&Ke.reverse(),ge&&H<He&&(Ke.length=H),this&&this!==Ot&&this instanceof $e&&(Hn=Ue||Ei(Hn)),Hn.apply(An,Ke)}return $e}function pf(e,t){return function(o,a){return Qv(o,e,t(a),{})}}function jo(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=Jt(o),a=Jt(a)):(o=Jc(o),a=Jc(a)),y=e(o,a)}return y}}function Oa(e){return Wn(function(t){return t=ut(t,Qt(Ne())),qe(function(o){var a=this;return e(t,function(y){return Zt(y,a,o)})})})}function Yo(e,t){t=t===r?" ":Jt(t);var o=t.length;if(o<2)return o?wa(t,e):t;var a=wa(t,Ao(e/Yr(t)));return jr(t)?fr(Cn(a),0,e).join(""):a.slice(0,e)}function Sm(e,t,o,a){var y=t&G,x=Ei(e);function P(){for(var j=-1,H=arguments.length,de=-1,ge=a.length,we=ne(ge+H),Ee=this&&this!==Ot&&this instanceof P?x:e;++de<ge;)we[de]=a[de];for(;H--;)we[de++]=arguments[++j];return Zt(Ee,y?o:this,we)}return P}function gf(e){return function(t,o,a){return a&&typeof a!="number"&&$t(t,o,a)&&(o=a=r),t=qn(t),o===r?(o=t,t=0):o=qn(o),a=a===r?t<o?1:-1:qn(a),um(t,o,a,e)}}function Fo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=pn(t),o=pn(o)),e(t,o)}}function vf(e,t,o,a,y,x,P,j,H,de){var ge=t&ae,we=ge?P:r,Ee=ge?r:P,ke=ge?x:r,Ie=ge?r:x;t|=ge?Q:ue,t&=~(ge?ue:Q),t&se||(t&=-4);var Ue=[e,t,y,ke,we,Ie,Ee,j,H,de],$e=o.apply(r,Ue);return Na(e)&&Ef($e,Ue),$e.placeholder=a,Tf($e,e,t)}function Ea(e){var t=bt[e];return function(o,a){if(o=pn(o),a=a==null?0:Tt(We(a),292),a&&Ec(o)){var y=(tt(o)+"e").split("e"),x=t(y[0]+"e"+(+y[1]+a));return y=(tt(x)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Dm=Ur&&1/vo(new Ur([,-0]))[1]==p?function(e){return new Ur(e)}:Za;function mf(e){return function(t){var o=Pt(t);return o==W?ia(t):o==T?W0(t):L0(t,e(t))}}function Fn(e,t,o,a,y,x,P,j){var H=t&ie;if(!H&&typeof e!="function")throw new un(m);var de=a?a.length:0;if(de||(t&=-97,a=y=r),P=P===r?P:xt(We(P),0),j=j===r?j:We(j),de-=y?y.length:0,t&ue){var ge=a,we=y;a=y=r}var Ee=H?r:Ma(e),ke=[e,t,o,a,y,ge,we,x,P,j];if(Ee&&Ym(ke,Ee),e=ke[0],t=ke[1],o=ke[2],a=ke[3],y=ke[4],j=ke[9]=ke[9]===r?H?0:e.length:xt(ke[9]-de,0),!j&&t&(ae|le)&&(t&=-25),!t||t==G)var Ie=xm(e,t,o);else t==ae||t==le?Ie=Cm(e,t,j):(t==Q||t==(G|Q))&&!y.length?Ie=Sm(e,t,o,a):Ie=Bo.apply(r,ke);var Ue=Ee?Zc:Ef;return Tf(Ue(Ie,ke),e,t)}function yf(e,t,o,a){return e===r||Dn(e,Wr[o])&&!rt.call(a,o)?t:e}function _f(e,t,o,a,y,x){return ct(e)&&ct(t)&&(x.set(t,e),Lo(e,t,r,_f,x),x.delete(t)),e}function Am(e){return Mi(e)?r:e}function wf(e,t,o,a,y,x){var P=o&I,j=e.length,H=t.length;if(j!=H&&!(P&&H>j))return!1;var de=x.get(e),ge=x.get(t);if(de&&ge)return de==t&&ge==e;var we=-1,Ee=!0,ke=o&B?new _r:r;for(x.set(e,t),x.set(t,e);++we<j;){var Ie=e[we],Ue=t[we];if(a)var $e=P?a(Ue,Ie,we,t,e,x):a(Ie,Ue,we,e,t,x);if($e!==r){if($e)continue;Ee=!1;break}if(ke){if(!Js(t,function(He,Ke){if(!mi(ke,Ke)&&(Ie===He||y(Ie,He,o,a,x)))return ke.push(Ke)})){Ee=!1;break}}else if(!(Ie===Ue||y(Ie,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 Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ce:return!(e.byteLength!=t.byteLength||!x(new xo(e),new xo(t)));case X:case ye:case J:return Dn(+e,+t);case xe:return e.name==t.name&&e.message==t.message;case _:case z:return e==t+"";case W:var j=ia;case T:var H=a&I;if(j||(j=vo),e.size!=t.size&&!H)return!1;var de=P.get(e);if(de)return de==t;a|=B,P.set(e,t);var ge=wf(j(e),j(t),a,y,x,P);return P.delete(e),ge;case te:if(xi)return xi.call(e)==xi.call(t)}return!1}function Em(e,t,o,a,y,x){var P=o&I,j=Ta(e),H=j.length,de=Ta(t),ge=de.length;if(H!=ge&&!P)return!1;for(var we=H;we--;){var Ee=j[we];if(!(P?Ee in t:rt.call(t,Ee)))return!1}var ke=x.get(e),Ie=x.get(t);if(ke&&Ie)return ke==t&&Ie==e;var Ue=!0;x.set(e,t),x.set(t,e);for(var $e=P;++we<H;){Ee=j[we];var He=e[Ee],Ke=t[Ee];if(a)var en=P?a(Ke,He,Ee,t,e,x):a(He,Ke,Ee,e,t,x);if(!(en===r?He===Ke||y(He,Ke,o,a,x):en)){Ue=!1;break}$e||($e=Ee=="constructor")}if(Ue&&!$e){var Bt=e.constructor,tn=t.constructor;Bt!=tn&&"constructor"in e&&"constructor"in t&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof tn=="function"&&tn instanceof tn)&&(Ue=!1)}return x.delete(e),x.delete(t),Ue}function Wn(e){return $a(Af(e,r,Nf),e+"")}function Ta(e){return jc(e,St,ka)}function Pa(e){return jc(e,Ht,bf)}var Ma=Eo?function(e){return Eo.get(e)}:Za;function Wo(e){for(var t=e.name+"",o=zr[t],a=rt.call(zr,t)?o.length:0;a--;){var y=o[a],x=y.func;if(x==null||x==e)return y.name}return t}function Vr(e){var t=rt.call(b,"placeholder")?b:e;return t.placeholder}function Ne(){var e=b.iteratee||Va;return e=e===Va?Wc:e,arguments.length?e(arguments[0],arguments[1]):e}function Uo(e,t){var o=e.__data__;return Im(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ra(e){for(var t=St(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,Sf(y)]}return t}function xr(e,t){var o=j0(e,t);return Fc(o)?o:r}function Tm(e){var t=rt.call(e,mr),o=e[mr];try{e[mr]=r;var a=!0}catch{}var y=wo.call(e);return a&&(t?e[mr]=o:delete e[mr]),y}var ka=sa?function(e){return e==null?[]:(e=ot(e),ir(sa(e),function(t){return Ac.call(e,t)}))}:Qa,bf=sa?function(e){for(var t=[];e;)or(t,ka(e)),e=Co(e);return t}:Qa,Pt=It;(aa&&Pt(new aa(new ArrayBuffer(1)))!=Le||_i&&Pt(new _i)!=W||la&&Pt(la.resolve())!=l||Ur&&Pt(new Ur)!=T||wi&&Pt(new wi)!=be)&&(Pt=function(e){var t=It(e),o=t==Se?e.constructor:r,a=o?Cr(o):"";if(a)switch(a){case fv:return Le;case hv:return W;case dv:return l;case pv:return T;case gv:return be}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=Tt(t,e+P);break;case"takeRight":e=xt(e,t-P);break}}return{start:e,end:t}}function Mm(e){var t=e.match(Xn);return t?t[1].split(Je):[]}function xf(e,t,o){t=cr(t,e);for(var a=-1,y=t.length,x=!1;++a<y;){var P=Nn(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&&Zo(y)&&Un(P,y)&&(Fe(e)||Sr(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 Cf(e){return typeof e.constructor=="function"&&!Ti(e)?qr(Co(e)):{}}function km(e,t,o){var a=e.constructor;switch(t){case Ce:return Aa(e);case X:case ye:return new a(+e);case Le:return vm(e,o);case Be:case Re:case nt:case et:case Ze:case wt:case ht:case Qe:case jt:return of(e,o);case W:return new a;case J:case z:return new a(e);case _:return mm(e);case T: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(Kt,`{
|
|
124
|
+
*/var I1=gi.exports,Vu;function $1(){return Vu||(Vu=1,function(i,n){(function(){var r,s="4.17.21",u=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",h="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",D=500,E="__lodash_placeholder__",N=1,M=2,L=4,I=1,$=2,H=1,oe=2,le=4,se=8,ce=16,Q=32,ne=64,J=128,K=256,de=512,he=30,ae="...",De=800,Oe=16,k=1,T=2,A=3,p=1/0,d=9007199254740991,w=17976931348623157e292,f=NaN,m=4294967295,S=m-1,Y=m>>>1,G=[["ary",J],["bind",H],["bindKey",oe],["curry",se],["curryRight",ce],["flip",de],["partial",Q],["partialRight",ne],["rearg",K]],ie="[object Arguments]",ue="[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]",V="[object Number]",ee="[object Null]",Se="[object Object]",l="[object Promise]",c="[object Proxy]",_="[object RegExp]",R="[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]",nt="[object Int32Array]",Et="[object Uint8Array]",pt="[object Uint8ClampedArray]",rt="[object Uint16Array]",An="[object Uint32Array]",St=/\b__p \+= '';/g,Dn=/\b(__p \+=) '' \+/g,At=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jt=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,yt=RegExp(jt.source),an=RegExp(On.source),ln=/<%-([\s\S]+?)%>/g,Yt=/<%([\s\S]+?)%>/g,Lt=/<%=([\s\S]+?)%>/g,Ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ut=/[\\^$.*+?()[\]{}|]/g,ze=RegExp(Ut.source),at=/^\s+/,Nt=/\s/,Zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rn=/\{\n\/\* \[wrapped with (.+)\] \*/,un=/,? & /,yr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cn=/[()=,{}\[\]\/\s]/,kn=/\\(\\)?/g,fn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hn=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,ct=/^\[object .+?Constructor\]$/,zt=/^0o[0-7]+$/i,Yn=/^(?:0|[1-9]\d*)$/,Rr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fn=/($^)/,kr=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",Lr="\\u0300-\\u036f",po="\\ufe20-\\ufe2f",or="\\u20d0-\\u20ff",sr=Lr+po+or,vi="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",Ir="\\xac\\xb1\\xd7\\xf7",$r="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ws="\\u2000-\\u206f",Us=" \\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",_r="A-Z\\xc0-\\xd6\\xd8-\\xde",go="\\ufe0e\\ufe0f",Br=Ir+$r+Ws+Us,mi="['’]",zs="["+Wn+"]",Ve="["+Br+"]",Ln="["+sr+"]",jr="\\d+",yi="["+vi+"]",_i="["+Nr+"]",vo="[^"+Wn+Br+jr+vi+Nr+_r+"]",Nn="\\ud83c[\\udffb-\\udfff]",Un="(?:"+Ln+"|"+Nn+")",In="[^"+Wn+"]",qs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",Yr="["+_r+"]",Ju="\\u200d",Xu="(?:"+_i+"|"+vo+")",s0="(?:"+Yr+"|"+vo+")",ec="(?:"+mi+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+mi+"(?:D|LL|M|RE|S|T|VE))?",nc=Un+"?",rc="["+go+"]?",a0="(?:"+Ju+"(?:"+[In,qs,Hs].join("|")+")"+rc+nc+")*",l0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ic=rc+nc+a0,c0="(?:"+[yi,qs,Hs].join("|")+")"+ic,f0="(?:"+[In+Ln+"?",Ln,qs,Hs,zs].join("|")+")",h0=RegExp(mi,"g"),d0=RegExp(Ln,"g"),Gs=RegExp(Nn+"(?="+Nn+")|"+f0+ic,"g"),p0=RegExp([Yr+"?"+_i+"+"+ec+"(?="+[Ve,Yr,"$"].join("|")+")",s0+"+"+tc+"(?="+[Ve,Yr+Xu,"$"].join("|")+")",Yr+"?"+Xu+"+"+ec,Yr+"+"+tc,u0,l0,jr,c0].join("|"),"g"),g0=RegExp("["+Ju+Wn+sr+go+"]"),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[nt]=lt[Et]=lt[pt]=lt[rt]=lt[An]=!0,lt[ie]=lt[ue]=lt[me]=lt[X]=lt[Re]=lt[be]=lt[ve]=lt[B]=lt[W]=lt[V]=lt[Se]=lt[_]=lt[R]=lt[U]=lt[Ce]=!1;var st={};st[ie]=st[ue]=st[me]=st[Re]=st[X]=st[be]=st[Ie]=st[ke]=st[Xe]=st[Qe]=st[nt]=st[W]=st[V]=st[Se]=st[_]=st[R]=st[U]=st[te]=st[Et]=st[pt]=st[rt]=st[An]=!0,st[ve]=st[B]=st[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={"&":"&","<":"<",">":">",'"':""","'":"'"},b0={"&":"&","<":"<",">":">",""":'"',"'":"'"},x0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},C0=parseFloat,S0=parseInt,oc=typeof Ni=="object"&&Ni&&Ni.Object===Object&&Ni,A0=typeof self=="object"&&self&&self.Object===Object&&self,Dt=oc||A0||Function("return this")(),Vs=n&&!n.nodeType&&n,wr=Vs&&!0&&i&&!i.nodeType&&i,sc=wr&&wr.exports===Vs,Ks=sc&&oc.process,dn=function(){try{var z=wr&&wr.require&&wr.require("util").types;return z||Ks&&Ks.binding&&Ks.binding("util")}catch{}}(),ac=dn&&dn.isArrayBuffer,lc=dn&&dn.isDate,uc=dn&&dn.isMap,cc=dn&&dn.isRegExp,fc=dn&&dn.isSet,hc=dn&&dn.isTypedArray;function Qt(z,fe,re){switch(re.length){case 0:return z.call(fe);case 1:return z.call(fe,re[0]);case 2:return z.call(fe,re[0],re[1]);case 3:return z.call(fe,re[0],re[1],re[2])}return z.apply(fe,re)}function D0(z,fe,re,Me){for(var Ye=-1,Je=z==null?0:z.length;++Ye<Je;){var wt=z[Ye];fe(Me,wt,re(wt),z)}return Me}function pn(z,fe){for(var re=-1,Me=z==null?0:z.length;++re<Me&&fe(z[re],re,z)!==!1;);return z}function O0(z,fe){for(var re=z==null?0:z.length;re--&&fe(z[re],re,z)!==!1;);return z}function dc(z,fe){for(var re=-1,Me=z==null?0:z.length;++re<Me;)if(!fe(z[re],re,z))return!1;return!0}function ar(z,fe){for(var re=-1,Me=z==null?0:z.length,Ye=0,Je=[];++re<Me;){var wt=z[re];fe(wt,re,z)&&(Je[Ye++]=wt)}return Je}function mo(z,fe){var re=z==null?0:z.length;return!!re&&Fr(z,fe,0)>-1}function Zs(z,fe,re){for(var Me=-1,Ye=z==null?0:z.length;++Me<Ye;)if(re(fe,z[Me]))return!0;return!1}function ut(z,fe){for(var re=-1,Me=z==null?0:z.length,Ye=Array(Me);++re<Me;)Ye[re]=fe(z[re],re,z);return Ye}function lr(z,fe){for(var re=-1,Me=fe.length,Ye=z.length;++re<Me;)z[Ye+re]=fe[re];return z}function Qs(z,fe,re,Me){var Ye=-1,Je=z==null?0:z.length;for(Me&&Je&&(re=z[++Ye]);++Ye<Je;)re=fe(re,z[Ye],Ye,z);return re}function E0(z,fe,re,Me){var Ye=z==null?0:z.length;for(Me&&Ye&&(re=z[--Ye]);Ye--;)re=fe(re,z[Ye],Ye,z);return re}function Js(z,fe){for(var re=-1,Me=z==null?0:z.length;++re<Me;)if(fe(z[re],re,z))return!0;return!1}var T0=Xs("length");function P0(z){return z.split("")}function M0(z){return z.match(yr)||[]}function pc(z,fe,re){var Me;return re(z,function(Ye,Je,wt){if(fe(Ye,Je,wt))return Me=Je,!1}),Me}function yo(z,fe,re,Me){for(var Ye=z.length,Je=re+(Me?1:-1);Me?Je--:++Je<Ye;)if(fe(z[Je],Je,z))return Je;return-1}function Fr(z,fe,re){return fe===fe?U0(z,fe,re):yo(z,gc,re)}function R0(z,fe,re,Me){for(var Ye=re-1,Je=z.length;++Ye<Je;)if(Me(z[Ye],fe))return Ye;return-1}function gc(z){return z!==z}function vc(z,fe){var re=z==null?0:z.length;return re?ta(z,fe)/re:f}function Xs(z){return function(fe){return fe==null?r:fe[z]}}function ea(z){return function(fe){return z==null?r:z[fe]}}function mc(z,fe,re,Me,Ye){return Ye(z,function(Je,wt,it){re=Me?(Me=!1,Je):fe(re,Je,wt,it)}),re}function k0(z,fe){var re=z.length;for(z.sort(fe);re--;)z[re]=z[re].value;return z}function ta(z,fe){for(var re,Me=-1,Ye=z.length;++Me<Ye;){var Je=fe(z[Me]);Je!==r&&(re=re===r?Je:re+Je)}return re}function na(z,fe){for(var re=-1,Me=Array(z);++re<z;)Me[re]=fe(re);return Me}function L0(z,fe){return ut(fe,function(re){return[re,z[re]]})}function yc(z){return z&&z.slice(0,xc(z)+1).replace(at,"")}function Jt(z){return function(fe){return z(fe)}}function ra(z,fe){return ut(fe,function(re){return z[re]})}function wi(z,fe){return z.has(fe)}function _c(z,fe){for(var re=-1,Me=z.length;++re<Me&&Fr(fe,z[re],0)>-1;);return re}function wc(z,fe){for(var re=z.length;re--&&Fr(fe,z[re],0)>-1;);return re}function N0(z,fe){for(var re=z.length,Me=0;re--;)z[re]===fe&&++Me;return Me}var I0=ea(_0),$0=ea(w0);function B0(z){return"\\"+x0[z]}function j0(z,fe){return z==null?r:z[fe]}function Wr(z){return g0.test(z)}function Y0(z){return v0.test(z)}function F0(z){for(var fe,re=[];!(fe=z.next()).done;)re.push(fe.value);return re}function ia(z){var fe=-1,re=Array(z.size);return z.forEach(function(Me,Ye){re[++fe]=[Ye,Me]}),re}function bc(z,fe){return function(re){return z(fe(re))}}function ur(z,fe){for(var re=-1,Me=z.length,Ye=0,Je=[];++re<Me;){var wt=z[re];(wt===fe||wt===E)&&(z[re]=E,Je[Ye++]=re)}return Je}function _o(z){var fe=-1,re=Array(z.size);return z.forEach(function(Me){re[++fe]=Me}),re}function W0(z){var fe=-1,re=Array(z.size);return z.forEach(function(Me){re[++fe]=[Me,Me]}),re}function U0(z,fe,re){for(var Me=re-1,Ye=z.length;++Me<Ye;)if(z[Me]===fe)return Me;return-1}function z0(z,fe,re){for(var Me=re+1;Me--;)if(z[Me]===fe)return Me;return Me}function Ur(z){return Wr(z)?H0(z):T0(z)}function En(z){return Wr(z)?G0(z):P0(z)}function xc(z){for(var fe=z.length;fe--&&Nt.test(z.charAt(fe)););return fe}var q0=ea(b0);function H0(z){for(var fe=Gs.lastIndex=0;Gs.test(z);)++fe;return fe}function G0(z){return z.match(Gs)||[]}function V0(z){return z.match(p0)||[]}var K0=function z(fe){fe=fe==null?Dt:zr.defaults(Dt.Object(),fe,zr.pick(Dt,m0));var re=fe.Array,Me=fe.Date,Ye=fe.Error,Je=fe.Function,wt=fe.Math,it=fe.Object,oa=fe.RegExp,Z0=fe.String,gn=fe.TypeError,wo=re.prototype,Q0=Je.prototype,qr=it.prototype,bo=fe["__core-js_shared__"],xo=Q0.toString,tt=qr.hasOwnProperty,J0=0,Cc=function(){var e=/[^.]+$/.exec(bo&&bo.keys&&bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Co=qr.toString,X0=xo.call(it),ev=Dt._,tv=oa("^"+xo.call(tt).replace(Ut,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),So=sc?fe.Buffer:r,cr=fe.Symbol,Ao=fe.Uint8Array,Sc=So?So.allocUnsafe:r,Do=bc(it.getPrototypeOf,it),Ac=it.create,Dc=qr.propertyIsEnumerable,Oo=wo.splice,Oc=cr?cr.isConcatSpreadable:r,bi=cr?cr.iterator:r,br=cr?cr.toStringTag:r,Eo=function(){try{var e=Dr(it,"defineProperty");return e({},"",{}),e}catch{}}(),nv=fe.clearTimeout!==Dt.clearTimeout&&fe.clearTimeout,rv=Me&&Me.now!==Dt.Date.now&&Me.now,iv=fe.setTimeout!==Dt.setTimeout&&fe.setTimeout,To=wt.ceil,Po=wt.floor,sa=it.getOwnPropertySymbols,ov=So?So.isBuffer:r,Ec=fe.isFinite,sv=wo.join,av=bc(it.keys,it),bt=wt.max,Tt=wt.min,lv=Me.now,uv=fe.parseInt,Tc=wt.random,cv=wo.reverse,aa=Dr(fe,"DataView"),xi=Dr(fe,"Map"),la=Dr(fe,"Promise"),Hr=Dr(fe,"Set"),Ci=Dr(fe,"WeakMap"),Si=Dr(it,"create"),Mo=Ci&&new Ci,Gr={},fv=Or(aa),hv=Or(xi),dv=Or(la),pv=Or(Hr),gv=Or(Ci),Ro=cr?cr.prototype:r,Ai=Ro?Ro.valueOf:r,Pc=Ro?Ro.toString:r;function b(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof vn)return e;if(tt.call(e,"__wrapped__"))return Rf(e)}return new vn(e)}var Vr=function(){function e(){}return function(t){if(!ft(t))return{};if(Ac)return Ac(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function ko(){}function vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}b.templateSettings={escape:ln,evaluate:Yt,interpolate:Lt,variable:"",imports:{_:b}},b.prototype=ko.prototype,b.prototype.constructor=b,vn.prototype=Vr(ko.prototype),vn.prototype.constructor=vn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function vv(){var e=new Ge(this.__wrapped__);return e.__actions__=qt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=qt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=qt(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=Tt(q,this.__takeCount__);if(!o||!a&&y==q&&Le==q)return ef(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,tn=He.type,Bt=Ke(Be);if(tn==T)Be=Bt;else if(!Bt){if(tn==k)continue e;break e}}$e[Ee++]=Be}return $e}Ge.prototype=Vr(ko.prototype),Ge.prototype.constructor=Ge;function xr(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__=Si?Si(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(Si){var o=t[e];return o===C?r:o}return tt.call(t,e)?t[e]:r}function xv(e){var t=this.__data__;return Si?t[e]!==r:tt.call(t,e)}function Cv(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Si&&t===r?C:t,this}xr.prototype.clear=_v,xr.prototype.delete=wv,xr.prototype.get=bv,xr.prototype.has=xv,xr.prototype.set=Cv;function zn(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=Lo(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():Oo.call(t,o,1),--this.size,!0}function Dv(e){var t=this.__data__,o=Lo(t,e);return o<0?r:t[o][1]}function Ov(e){return Lo(this.__data__,e)>-1}function Ev(e,t){var o=this.__data__,a=Lo(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}zn.prototype.clear=Sv,zn.prototype.delete=Av,zn.prototype.get=Dv,zn.prototype.has=Ov,zn.prototype.set=Ev;function qn(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 xr,map:new(xi||zn),string:new xr}}function Pv(e){var t=Ho(this,e).delete(e);return this.size-=t?1:0,t}function Mv(e){return Ho(this,e).get(e)}function Rv(e){return Ho(this,e).has(e)}function kv(e,t){var o=Ho(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}qn.prototype.clear=Tv,qn.prototype.delete=Pv,qn.prototype.get=Mv,qn.prototype.has=Rv,qn.prototype.set=kv;function Cr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new qn;++t<o;)this.add(e[t])}function Lv(e){return this.__data__.set(e,C),this}function Nv(e){return this.__data__.has(e)}Cr.prototype.add=Cr.prototype.push=Lv,Cr.prototype.has=Nv;function Tn(e){var t=this.__data__=new zn(e);this.size=t.size}function Iv(){this.__data__=new zn,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 zn){var a=o.__data__;if(!xi||a.length<u-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new qn(a)}return o.set(e,t),this.size=o.size,this}Tn.prototype.clear=Iv,Tn.prototype.delete=$v,Tn.prototype.get=Bv,Tn.prototype.has=jv,Tn.prototype.set=Yv;function Mc(e,t){var o=Fe(e),a=!o&&Er(e),y=!o&&!a&&gr(e),x=!o&&!a&&!y&&Jr(e),P=o||a||y||x,j=P?na(e.length,Z0):[],q=j.length;for(var pe in e)(t||tt.call(e,pe))&&!(P&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||x&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Kn(pe,q)))&&j.push(pe);return j}function Rc(e){var t=e.length;return t?e[_a(0,t-1)]:r}function Fv(e,t){return Go(qt(e),Sr(t,0,e.length))}function Wv(e){return Go(qt(e))}function ua(e,t,o){(o!==r&&!Pn(e[t],o)||o===r&&!(t in e))&&Hn(e,t,o)}function Di(e,t,o){var a=e[t];(!(tt.call(e,t)&&Pn(a,o))||o===r&&!(t in e))&&Hn(e,t,o)}function Lo(e,t){for(var o=e.length;o--;)if(Pn(e[o][0],t))return o;return-1}function Uv(e,t,o,a){return fr(e,function(y,x,P){t(a,y,o(y),P)}),a}function kc(e,t){return e&&Bn(t,xt(t),e)}function zv(e,t){return e&&Bn(t,Gt(t),e)}function Hn(e,t,o){t=="__proto__"&&Eo?Eo(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ca(e,t){for(var o=-1,a=t.length,y=re(a),x=e==null;++o<a;)y[o]=x?r:za(e,t[o]);return y}function Sr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function mn(e,t,o,a,y,x){var P,j=t&N,q=t&M,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 qt(e,P)}else{var xe=Pt(e),Ee=xe==B||xe==Z;if(gr(e))return rf(e,j);if(xe==Se||xe==ie||Ee&&!y){if(P=q||Ee?{}:Cf(e),!j)return q?bm(e,zv(P,e)):wm(e,kc(P,e))}else{if(!st[xe])return y?e:{};P=km(e,xe,j)}}x||(x=new Tn);var Le=x.get(e);if(Le)return Le;x.set(e,P),Jf(e)?e.forEach(function(Be){P.add(mn(Be,t,o,Be,e,x))}):Zf(e)&&e.forEach(function(Be,He){P.set(He,mn(Be,t,o,He,e,x))});var $e=pe?q?Pa:Ta:q?Gt:xt,Ue=ge?r:$e(e);return pn(Ue||e,function(Be,He){Ue&&(He=Be,Be=e[He]),Di(P,He,mn(Be,t,o,He,e,x))}),P}function qv(e){var t=xt(e);return function(o){return Lc(o,e,t)}}function Lc(e,t,o){var a=o.length;if(e==null)return!a;for(e=it(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 Nc(e,t,o){if(typeof e!="function")throw new gn(v);return ki(function(){e.apply(r,o)},t)}function Oi(e,t,o,a){var y=-1,x=mo,P=!0,j=e.length,q=[],pe=t.length;if(!j)return q;o&&(t=ut(t,Jt(o))),a?(x=Zs,P=!1):t.length>=u&&(x=wi,P=!1,t=new Cr(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 fr=uf($n),Ic=uf(ha,!0);function Hv(e,t){var o=!0;return fr(e,function(a,y,x){return o=!!t(a,y,x),o}),o}function No(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&&!en(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:eh(a);o<a;)e[o++]=t;return e}function $c(e,t){var o=[];return fr(e,function(a,y,x){t(a,y,x)&&o.push(a)}),o}function Ot(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?Ot(j,t-1,o,a,y):lr(y,j):a||(y[y.length]=j)}return y}var fa=cf(),Bc=cf(!0);function $n(e,t){return e&&fa(e,t,xt)}function ha(e,t){return e&&Bc(e,t,xt)}function Io(e,t){return ar(t,function(o){return Zn(e[o])})}function Ar(e,t){t=dr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[jn(t[o++])];return o&&o==a?e:r}function jc(e,t,o){var a=t(e);return Fe(e)?a:lr(a,o(e))}function It(e){return e==null?e===r?Ae:ee:br&&br in it(e)?Tm(e):Wm(e)}function da(e,t){return e>t}function Vv(e,t){return e!=null&&tt.call(e,t)}function Kv(e,t){return e!=null&&t in it(e)}function Zv(e,t,o){return e>=Tt(t,o)&&e<bt(t,o)}function pa(e,t,o){for(var a=o?Zs:mo,y=e[0].length,x=e.length,P=x,j=re(x),q=1/0,pe=[];P--;){var ge=e[P];P&&t&&(ge=ut(ge,Jt(t))),q=Tt(ge.length,q),j[P]=!o&&(t||y>=120&&ge.length>=120)?new Cr(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?wi(Ee,$e):a(pe,$e,o))){for(P=x;--P;){var Ue=j[P];if(!(Ue?wi(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 $n(e,function(y,x,P){t(a,o(y),x,P)}),a}function Ei(e,t,o){t=dr(t,e),e=Of(e,t);var a=e==null?e:e[jn(_n(t))];return a==null?r:Qt(a,e,o)}function Yc(e){return dt(e)&&It(e)==ie}function Jv(e){return dt(e)&&It(e)==me}function Xv(e){return dt(e)&&It(e)==be}function Ti(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,Ti,y)}function em(e,t,o,a,y,x){var P=Fe(e),j=Fe(t),q=P?ue:Pt(e),pe=j?ue:Pt(t);q=q==ie?Se:q,pe=pe==ie?Se:pe;var ge=q==Se,xe=pe==Se,Ee=q==pe;if(Ee&&gr(e)){if(!gr(t))return!1;P=!0,ge=!1}if(Ee&&!ge)return x||(x=new Tn),P||Jr(e)?wf(e,t,o,a,y,x):Om(e,t,q,o,a,y,x);if(!(o&I)){var Le=ge&&tt.call(e,"__wrapped__"),$e=xe&&tt.call(t,"__wrapped__");if(Le||$e){var Ue=Le?e.value():e,Be=$e?t.value():t;return x||(x=new Tn),y(Ue,Be,o,a,x)}}return Ee?(x||(x=new Tn),Em(e,t,o,a,y,x)):!1}function tm(e){return dt(e)&&Pt(e)==W}function ga(e,t,o,a){var y=o.length,x=y,P=!a;if(e==null)return!x;for(e=it(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 Tn;if(a)var Ee=a(pe,ge,q,e,t,xe);if(!(Ee===r?Ti(ge,pe,I|$,a,xe):Ee))return!1}}return!0}function Fc(e){if(!ft(e)||$m(e))return!1;var t=Zn(e)?tv:ct;return t.test(Or(e))}function nm(e){return dt(e)&&It(e)==_}function rm(e){return dt(e)&&Pt(e)==R}function im(e){return dt(e)&&Xo(e.length)&&!!lt[It(e)]}function Wc(e){return typeof e=="function"?e:e==null?Vt:typeof e=="object"?Fe(e)?qc(e[0],e[1]):zc(e):fh(e)}function va(e){if(!Ri(e))return av(e);var t=[];for(var o in it(e))tt.call(e,o)&&o!="constructor"&&t.push(o);return t}function om(e){if(!ft(e))return Fm(e);var t=Ri(e),o=[];for(var a in e)a=="constructor"&&(t||!tt.call(e,a))||o.push(a);return o}function ma(e,t){return e<t}function Uc(e,t){var o=-1,a=Ht(e)?re(e.length):[];return fr(e,function(y,x,P){a[++o]=t(y,x,P)}),a}function zc(e){var t=Ra(e);return t.length==1&&t[0][2]?Af(t[0][0],t[0][1]):function(o){return o===e||ga(o,e,t)}}function qc(e,t){return La(e)&&Sf(t)?Af(jn(e),t):function(o){var a=za(o,e);return a===r&&a===t?qa(o,e):Ti(t,a,I|$)}}function $o(e,t,o,a,y){e!==t&&fa(t,function(x,P){if(y||(y=new Tn),ft(x))sm(e,t,P,o,$o,a,y);else{var j=a?a(Ia(e,P),x,P+"",e,t,y):r;j===r&&(j=x),ua(e,P,j)}},Gt)}function sm(e,t,o,a,y,x,P){var j=Ia(e,o),q=Ia(t,o),pe=P.get(q);if(pe){ua(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&&gr(q),$e=!Ee&&!Le&&Jr(q);ge=q,Ee||Le||$e?Fe(j)?ge=j:gt(j)?ge=qt(j):Le?(xe=!1,ge=rf(q,!0)):$e?(xe=!1,ge=of(q,!0)):ge=[]:Li(q)||Er(q)?(ge=j,Er(j)?ge=th(j):(!ft(j)||Zn(j))&&(ge=Cf(q))):xe=!1}xe&&(P.set(q,ge),y(ge,q,a,x,P),P.delete(q)),ua(e,o,ge)}function Hc(e,t){var o=e.length;if(o)return t+=t<0?o:0,Kn(t,o)?e[t]:r}function Gc(e,t,o){t.length?t=ut(t,function(x){return Fe(x)?function(P){return Ar(P,x.length===1?x[0]:x)}:x}):t=[Vt];var a=-1;t=ut(t,Jt(Ne()));var y=Uc(e,function(x,P,j){var q=ut(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 Vc(e,t,function(o,a){return qa(e,a)})}function Vc(e,t,o){for(var a=-1,y=t.length,x={};++a<y;){var P=t[a],j=Ar(e,P);o(j,P)&&Pi(x,dr(P,e),j)}return x}function lm(e){return function(t){return Ar(t,e)}}function ya(e,t,o,a){var y=a?R0:Fr,x=-1,P=t.length,j=e;for(e===t&&(t=qt(t)),o&&(j=ut(e,Jt(o)));++x<P;)for(var q=0,pe=t[x],ge=o?o(pe):pe;(q=y(j,ge,q,a))>-1;)j!==e&&Oo.call(j,q,1),Oo.call(e,q,1);return e}function Kc(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;Kn(y)?Oo.call(e,y,1):xa(e,y)}}return e}function _a(e,t){return e+Po(Tc()*(t-e+1))}function um(e,t,o,a){for(var y=-1,x=bt(To((t-e)/(o||1)),0),P=re(x);x--;)P[a?x:++y]=e,e+=o;return P}function wa(e,t){var o="";if(!e||t<1||t>d)return o;do t%2&&(o+=e),t=Po(t/2),t&&(e+=e);while(t);return o}function qe(e,t){return $a(Df(e,t,Vt),e+"")}function cm(e){return Rc(Xr(e))}function fm(e,t){var o=Xr(e);return Go(o,Sr(t,0,o.length))}function Pi(e,t,o,a){if(!ft(e))return e;t=dr(t,e);for(var y=-1,x=t.length,P=x-1,j=e;j!=null&&++y<x;){var q=jn(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:Kn(t[y+1])?[]:{})}Di(j,q,pe),j=j[q]}return e}var Zc=Mo?function(e,t){return Mo.set(e,t),e}:Vt,hm=Eo?function(e,t){return Eo(e,"toString",{configurable:!0,enumerable:!1,value:Ga(t),writable:!0})}:Vt;function dm(e){return Go(Xr(e))}function yn(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=re(y);++a<y;)x[a]=e[a+t];return x}function pm(e,t){var o;return fr(e,function(a,y,x){return o=t(a,y,x),!o}),!!o}function Bo(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&&!en(P)&&(o?P<=t:P<t)?a=x+1:y=x}return y}return ba(e,t,Vt,o)}function ba(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=en(t),pe=t===r;y<x;){var ge=Po((y+x)/2),xe=o(e[ge]),Ee=xe!==r,Le=xe===null,$e=xe===xe,Ue=en(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 Tt(x,S)}function Qc(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||!Pn(j,q)){var q=j;x[y++]=P===0?0:P}}return x}function Jc(e){return typeof e=="number"?e:en(e)?f:+e}function Xt(e){if(typeof e=="string")return e;if(Fe(e))return ut(e,Xt)+"";if(en(e))return Pc?Pc.call(e):"";var t=e+"";return t=="0"&&1/e==-p?"-0":t}function hr(e,t,o){var a=-1,y=mo,x=e.length,P=!0,j=[],q=j;if(o)P=!1,y=Zs;else if(x>=u){var pe=t?null:Am(e);if(pe)return _o(pe);P=!1,y=wi,q=new Cr}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 xa(e,t){return t=dr(t,e),e=Of(e,t),e==null||delete e[jn(_n(t))]}function Xc(e,t,o,a){return Pi(e,t,o(Ar(e,t)),a)}function jo(e,t,o,a){for(var y=e.length,x=a?y:-1;(a?x--:++x<y)&&t(e[x],x,e););return o?yn(e,a?0:x,a?x+1:y):yn(e,a?x+1:0,a?y:x)}function ef(e,t){var o=e;return o instanceof Ge&&(o=o.value()),Qs(t,function(a,y){return y.func.apply(y.thisArg,lr([a],y.args))},o)}function Ca(e,t,o){var a=e.length;if(a<2)return a?hr(e[0]):[];for(var y=-1,x=re(a);++y<a;)for(var P=e[y],j=-1;++j<a;)j!=y&&(x[y]=Oi(x[y]||P,e[j],t,o));return hr(Ot(x,1),t,o)}function tf(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 Sa(e){return gt(e)?e:[]}function Aa(e){return typeof e=="function"?e:Vt}function dr(e,t){return Fe(e)?e:La(e,t)?[e]:Mf(et(e))}var gm=qe;function pr(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:yn(e,t,o)}var nf=nv||function(e){return Dt.clearTimeout(e)};function rf(e,t){if(t)return e.slice();var o=e.length,a=Sc?Sc(o):new e.constructor(o);return e.copy(a),a}function Da(e){var t=new e.constructor(e.byteLength);return new Ao(t).set(new Ao(e)),t}function vm(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function mm(e){var t=new e.constructor(e.source,hn.exec(e));return t.lastIndex=e.lastIndex,t}function ym(e){return Ai?it(Ai.call(e)):{}}function of(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function sf(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,x=en(e),P=t!==r,j=t===null,q=t===t,pe=en(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=sf(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 af(e,t,o,a){for(var y=-1,x=e.length,P=o.length,j=-1,q=t.length,pe=bt(x-P,0),ge=re(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 lf(e,t,o,a){for(var y=-1,x=e.length,P=-1,j=o.length,q=-1,pe=t.length,ge=bt(x-j,0),xe=re(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 qt(e,t){var o=-1,a=e.length;for(t||(t=re(a));++o<a;)t[o]=e[o];return t}function Bn(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?Hn(o,j,q):Di(o,j,q)}return o}function wm(e,t){return Bn(e,ka(e),t)}function bm(e,t){return Bn(e,bf(e),t)}function Yo(e,t){return function(o,a){var y=Fe(o)?D0:Uv,x=t?t():{};return y(o,e,Ne(a,2),x)}}function Kr(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&&$t(o[0],o[1],P)&&(x=y<3?r:x,y=1),t=it(t);++a<y;){var j=o[a];j&&e(t,j,a,x)}return t})}function uf(e,t){return function(o,a){if(o==null)return o;if(!Ht(o))return e(o,a);for(var y=o.length,x=t?y:-1,P=it(o);(t?x--:++x<y)&&a(P[x],x,P)!==!1;);return o}}function cf(e){return function(t,o,a){for(var y=-1,x=it(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=Mi(e);function x(){var P=this&&this!==Dt&&this instanceof x?y:e;return P.apply(a?o:this,arguments)}return x}function ff(e){return function(t){t=et(t);var o=Wr(t)?En(t):r,a=o?o[0]:t.charAt(0),y=o?pr(o,1).join(""):t.slice(1);return a[e]()+y}}function Zr(e){return function(t){return Qs(uh(lh(t).replace(h0,"")),e,"")}}function Mi(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=Vr(e.prototype),a=e.apply(o,t);return ft(a)?a:o}}function Cm(e,t,o){var a=Mi(e);function y(){for(var x=arguments.length,P=re(x),j=x,q=Qr(y);j--;)P[j]=arguments[j];var pe=x<3&&P[0]!==q&&P[x-1]!==q?[]:ur(P,q);if(x-=pe.length,x<o)return vf(e,t,Fo,y.placeholder,r,P,pe,r,r,o-x);var ge=this&&this!==Dt&&this instanceof y?a:e;return Qt(ge,this,P)}return y}function hf(e){return function(t,o,a){var y=it(t);if(!Ht(t)){var x=Ne(o,3);t=xt(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 df(e){return Vn(function(t){var o=t.length,a=o,y=vn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new gn(v);if(y&&!P&&qo(x)=="wrapper")var P=new vn([],!0)}for(a=P?a:o;++a<o;){x=t[a];var j=qo(x),q=j=="wrapper"?Ma(x):r;q&&Na(q[0])&&q[1]==(J|se|Q|K)&&!q[4].length&&q[9]==1?P=P[qo(q[0])].apply(P,q[3]):P=x.length==1&&Na(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 Fo(e,t,o,a,y,x,P,j,q,pe){var ge=t&J,xe=t&H,Ee=t&oe,Le=t&(se|ce),$e=t&de,Ue=Ee?r:Mi(e);function Be(){for(var He=arguments.length,Ke=re(He),tn=He;tn--;)Ke[tn]=arguments[tn];if(Le)var Bt=Qr(Be),nn=N0(Ke,Bt);if(a&&(Ke=af(Ke,a,y,Le)),x&&(Ke=lf(Ke,x,P,Le)),He-=nn,Le&&He<pe){var vt=ur(Ke,Bt);return vf(e,t,Fo,Be.placeholder,o,Ke,vt,j,q,pe-He)}var Mn=xe?o:this,Jn=Ee?Mn[e]:e;return He=Ke.length,j?Ke=Um(Ke,j):$e&&He>1&&Ke.reverse(),ge&&q<He&&(Ke.length=q),this&&this!==Dt&&this instanceof Be&&(Jn=Ue||Mi(Jn)),Jn.apply(Mn,Ke)}return Be}function pf(e,t){return function(o,a){return Qv(o,e,t(a),{})}}function Wo(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=Xt(o),a=Xt(a)):(o=Jc(o),a=Jc(a)),y=e(o,a)}return y}}function Oa(e){return Vn(function(t){return t=ut(t,Jt(Ne())),qe(function(o){var a=this;return e(t,function(y){return Qt(y,a,o)})})})}function Uo(e,t){t=t===r?" ":Xt(t);var o=t.length;if(o<2)return o?wa(t,e):t;var a=wa(t,To(e/Ur(t)));return Wr(t)?pr(En(a),0,e).join(""):a.slice(0,e)}function Sm(e,t,o,a){var y=t&H,x=Mi(e);function P(){for(var j=-1,q=arguments.length,pe=-1,ge=a.length,xe=re(ge+q),Ee=this&&this!==Dt&&this instanceof P?x:e;++pe<ge;)xe[pe]=a[pe];for(;q--;)xe[pe++]=arguments[++j];return Qt(Ee,y?o:this,xe)}return P}function gf(e){return function(t,o,a){return a&&typeof a!="number"&&$t(t,o,a)&&(o=a=r),t=Qn(t),o===r?(o=t,t=0):o=Qn(o),a=a===r?t<o?1:-1:Qn(a),um(t,o,a,e)}}function zo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=wn(t),o=wn(o)),e(t,o)}}function vf(e,t,o,a,y,x,P,j,q,pe){var ge=t&se,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&le||(t&=-4);var Ue=[e,t,y,Le,xe,$e,Ee,j,q,pe],Be=o.apply(r,Ue);return Na(e)&&Ef(Be,Ue),Be.placeholder=a,Tf(Be,e,t)}function Ea(e){var t=wt[e];return function(o,a){if(o=wn(o),a=a==null?0:Tt(We(a),292),a&&Ec(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=Hr&&1/_o(new Hr([,-0]))[1]==p?function(e){return new Hr(e)}:Za;function mf(e){return function(t){var o=Pt(t);return o==W?ia(t):o==R?W0(t):L0(t,e(t))}}function Gn(e,t,o,a,y,x,P,j){var q=t&oe;if(!q&&typeof e!="function")throw new gn(v);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),P=P===r?P:bt(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:Ma(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:bt(Le[9]-pe,0),!j&&t&(se|ce)&&(t&=-25),!t||t==H)var $e=xm(e,t,o);else t==se||t==ce?$e=Cm(e,t,j):(t==Q||t==(H|Q))&&!y.length?$e=Sm(e,t,o,a):$e=Fo.apply(r,Le);var Ue=Ee?Zc:Ef;return Tf(Ue($e,Le),e,t)}function yf(e,t,o,a){return e===r||Pn(e,qr[o])&&!tt.call(a,o)?t:e}function _f(e,t,o,a,y,x){return ft(e)&&ft(t)&&(x.set(t,e),$o(e,t,r,_f,x),x.delete(t)),e}function Dm(e){return Li(e)?r:e}function wf(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 Cr: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(!Js(t,function(He,Ke){if(!wi(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 Ao(e),new Ao(t)));case X:case be:case V:return Pn(+e,+t);case ve:return e.name==t.name&&e.message==t.message;case _:case U:return e==t+"";case W:var j=ia;case R:var q=a&I;if(j||(j=_o),e.size!=t.size&&!q)return!1;var pe=P.get(e);if(pe)return pe==t;a|=$,P.set(e,t);var ge=wf(j(e),j(t),a,y,x,P);return P.delete(e),ge;case te:if(Ai)return Ai.call(e)==Ai.call(t)}return!1}function Em(e,t,o,a,y,x){var P=o&I,j=Ta(e),q=j.length,pe=Ta(t),ge=pe.length;if(q!=ge&&!P)return!1;for(var xe=q;xe--;){var Ee=j[xe];if(!(P?Ee in t:tt.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 tn=P?a(Ke,He,Ee,t,e,x):a(He,Ke,Ee,e,t,x);if(!(tn===r?He===Ke||y(He,Ke,o,a,x):tn)){Ue=!1;break}Be||(Be=Ee=="constructor")}if(Ue&&!Be){var Bt=e.constructor,nn=t.constructor;Bt!=nn&&"constructor"in e&&"constructor"in t&&!(typeof Bt=="function"&&Bt instanceof Bt&&typeof nn=="function"&&nn instanceof nn)&&(Ue=!1)}return x.delete(e),x.delete(t),Ue}function Vn(e){return $a(Df(e,r,Nf),e+"")}function Ta(e){return jc(e,xt,ka)}function Pa(e){return jc(e,Gt,bf)}var Ma=Mo?function(e){return Mo.get(e)}:Za;function qo(e){for(var t=e.name+"",o=Gr[t],a=tt.call(Gr,t)?o.length:0;a--;){var y=o[a],x=y.func;if(x==null||x==e)return y.name}return t}function Qr(e){var t=tt.call(b,"placeholder")?b:e;return t.placeholder}function Ne(){var e=b.iteratee||Va;return e=e===Va?Wc:e,arguments.length?e(arguments[0],arguments[1]):e}function Ho(e,t){var o=e.__data__;return Im(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ra(e){for(var t=xt(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,Sf(y)]}return t}function Dr(e,t){var o=j0(e,t);return Fc(o)?o:r}function Tm(e){var t=tt.call(e,br),o=e[br];try{e[br]=r;var a=!0}catch{}var y=Co.call(e);return a&&(t?e[br]=o:delete e[br]),y}var ka=sa?function(e){return e==null?[]:(e=it(e),ar(sa(e),function(t){return Dc.call(e,t)}))}:Qa,bf=sa?function(e){for(var t=[];e;)lr(t,ka(e)),e=Do(e);return t}:Qa,Pt=It;(aa&&Pt(new aa(new ArrayBuffer(1)))!=Re||xi&&Pt(new xi)!=W||la&&Pt(la.resolve())!=l||Hr&&Pt(new Hr)!=R||Ci&&Pt(new Ci)!=Ce)&&(Pt=function(e){var t=It(e),o=t==Se?e.constructor:r,a=o?Or(o):"";if(a)switch(a){case fv:return Re;case hv:return W;case dv:return l;case pv:return R;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=Tt(t,e+P);break;case"takeRight":e=bt(e,t-P);break}}return{start:e,end:t}}function Mm(e){var t=e.match(Rn);return t?t[1].split(un):[]}function xf(e,t,o){t=dr(t,e);for(var a=-1,y=t.length,x=!1;++a<y;){var P=jn(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&&Xo(y)&&Kn(P,y)&&(Fe(e)||Er(e)))}function Rm(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&tt.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Cf(e){return typeof e.constructor=="function"&&!Ri(e)?Vr(Do(e)):{}}function km(e,t,o){var a=e.constructor;switch(t){case me:return Da(e);case X:case be:return new a(+e);case Re:return vm(e,o);case Ie:case ke:case Xe:case Qe:case nt:case Et:case pt:case rt:case An:return of(e,o);case W:return new a;case V:case U:return new a(e);case _:return mm(e);case R: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(Zt,`{
|
|
125
125
|
/* [wrapped with `+t+`] */
|
|
126
|
-
`)}function Nm(e){return Fe(e)||Sr(e)||!!(Oc&&e&&e[Oc])}function Un(e,t){var o=typeof e;return t=t??d,!!t&&(o=="number"||o!="symbol"&&js.test(e))&&e>-1&&e%1==0&&e<t}function $t(e,t,o){if(!ct(o))return!1;var a=typeof t;return(a=="number"?qt(o)&&Un(t,o.length):a=="string"&&t in o)?Dn(o[t],e):!1}function La(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Xt(e)?!0:Ut.test(e)||!Wt.test(e)||t!=null&&e in ot(t)}function Im(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Na(e){var t=Wo(e),o=b[t];if(typeof o!="function"||!(t in Ge.prototype))return!1;if(e===o)return!0;var a=Ma(o);return!!a&&e===a[0]}function $m(e){return!!Cc&&Cc in e}var Bm=yo?zn:Ja;function Ti(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Wr;return e===o}function Sf(e){return e===e&&!ct(e)}function Df(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in ot(o))}}function jm(e){var t=Vo(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Ym(e,t){var o=e[1],a=t[1],y=o|a,x=y<(G|ie|Z),P=a==Z&&o==ae||a==Z&&o==V&&e[7].length<=t[8]||a==(Z|V)&&t[7].length<=t[8]&&o==ae;if(!(x||P))return e;a&G&&(e[2]=t[2],y|=o&G?0:se);var j=t[3];if(j){var H=e[3];e[3]=H?af(H,j,t[4]):j,e[4]=H?sr(e[3],E):t[4]}return j=t[5],j&&(H=e[5],e[5]=H?lf(H,j,t[6]):j,e[6]=H?sr(e[5],E):t[6]),j=t[7],j&&(e[7]=j),a&Z&&(e[8]=e[8]==null?t[8]:Tt(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 ot(e))t.push(o);return t}function Wm(e){return wo.call(e)}function Af(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=ne(x);++y<x;)P[y]=a[t+y];y=-1;for(var j=ne(t+1);++y<t;)j[y]=a[y];return j[t]=o(P),Zt(e,this,j)}}function Of(e,t){return t.length<2?e:br(e,hn(t,0,-1))}function Um(e,t){for(var o=e.length,a=Tt(t.length,o),y=zt(e);a--;){var x=t[a];e[a]=Un(x,o)?y[x]:r}return e}function Ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ef=Pf(Zc),Pi=iv||function(e,t){return Ot.setTimeout(e,t)},$a=Pf(hm);function Tf(e,t,o){var a=t+"";return $a(e,Lm(a,zm(Mm(a),o)))}function Pf(e){var t=0,o=0;return function(){var a=lv(),y=De-(a-o);if(o=a,y>0){if(++t>=Oe)return arguments[0]}else t=0;return e.apply(r,arguments)}}function zo(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var x=_a(o,y),P=e[x];e[x]=e[o],e[o]=P}return e.length=t,e}var Mf=jm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wn,function(o,a,y,x){t.push(y?x.replace(In,"$1"):a||o)}),t});function Nn(e){if(typeof e=="string"||Xt(e))return e;var t=e+"";return t=="0"&&1/e==-p?"-0":t}function Cr(e){if(e!=null){try{return _o.call(e)}catch{}try{return e+""}catch{}}return""}function zm(e,t){return ln(U,function(o){var a="_."+o[0];t&o[1]&&!po(e,a)&&e.push(a)}),e.sort()}function Rf(e){if(e instanceof Ge)return e.clone();var t=new cn(e.__wrapped__,e.__chain__);return t.__actions__=zt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qm(e,t,o){(o?$t(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=ne(Ao(a/t));y<a;)P[x++]=hn(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=ne(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return or(Fe(o)?zt(o):[o],Et(t,1))}var Vm=qe(function(e,t){return pt(e)?Si(e,Et(t,1,pt,!0)):[]}),Km=qe(function(e,t){var o=dn(t);return pt(o)&&(o=r),pt(e)?Si(e,Et(t,1,pt,!0),Ne(o,2)):[]}),Zm=qe(function(e,t){var o=dn(t);return pt(o)&&(o=r),pt(e)?Si(e,Et(t,1,pt,!0),r,o):[]});function Qm(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:We(t),hn(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,hn(e,0,t<0?0:t)):[]}function Xm(e,t){return e&&e.length?Io(e,Ne(t,3),!0,!0):[]}function ey(e,t){return e&&e.length?Io(e,Ne(t,3),!0):[]}function ty(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&$t(e,t,o)&&(o=0,a=y),Gv(e,t,o,a)):[]}function kf(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)),go(e,Ne(t,3),y)}function Lf(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):Tt(y,a-1)),go(e,Ne(t,3),y,!0)}function Nf(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,p):[]}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 If(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)),Br(e,t,y)}function sy(e){var t=e==null?0:e.length;return t?hn(e,0,-1):[]}var ay=qe(function(e){var t=ut(e,Sa);return t.length&&t[0]===e[0]?pa(t):[]}),ly=qe(function(e){var t=dn(e),o=ut(e,Sa);return t===dn(o)?t=r:o.pop(),o.length&&o[0]===e[0]?pa(o,Ne(t,2)):[]}),uy=qe(function(e){var t=dn(e),o=ut(e,Sa);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?pa(o,r,t):[]});function cy(e,t){return e==null?"":sv.call(e,t)}function dn(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):Tt(y,a-1)),t===t?z0(e,t,y):go(e,gc,y,!0)}function hy(e,t){return e&&e.length?Hc(e,We(t)):r}var dy=qe($f);function $f(e,t){return e&&e.length&&t&&t.length?ya(e,t):e}function py(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,Ne(o,2)):e}function gy(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,r,o):e}var vy=Wn(function(e,t){var o=e==null?0:e.length,a=ca(e,t);return Kc(e,ut(t,function(y){return Un(y,o)?+y:y}).sort(sf)),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 Kc(e,y),o}function Ba(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"&&$t(e,t,o)?(t=0,o=a):(t=t==null?0:We(t),o=o===r?a:We(o)),hn(e,t,o)):[]}function _y(e,t){return No(e,t)}function wy(e,t,o){return ba(e,t,Ne(o,2))}function by(e,t){var o=e==null?0:e.length;if(o){var a=No(e,t);if(a<o&&Dn(e[a],t))return a}return-1}function xy(e,t){return No(e,t,!0)}function Cy(e,t,o){return ba(e,t,Ne(o,2),!0)}function Sy(e,t){var o=e==null?0:e.length;if(o){var a=No(e,t,!0)-1;if(Dn(e[a],t))return a}return-1}function Dy(e){return e&&e.length?Qc(e):[]}function Ay(e,t){return e&&e.length?Qc(e,Ne(t,2)):[]}function Oy(e){var t=e==null?0:e.length;return t?hn(e,1,t):[]}function Ey(e,t,o){return e&&e.length?(t=o||t===r?1:We(t),hn(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,hn(e,t<0?0:t,a)):[]}function Py(e,t){return e&&e.length?Io(e,Ne(t,3),!1,!0):[]}function My(e,t){return e&&e.length?Io(e,Ne(t,3)):[]}var Ry=qe(function(e){return ur(Et(e,1,pt,!0))}),ky=qe(function(e){var t=dn(e);return pt(t)&&(t=r),ur(Et(e,1,pt,!0),Ne(t,2))}),Ly=qe(function(e){var t=dn(e);return t=typeof t=="function"?t:r,ur(Et(e,1,pt,!0),r,t)});function Ny(e){return e&&e.length?ur(e):[]}function Iy(e,t){return e&&e.length?ur(e,Ne(t,2)):[]}function $y(e,t){return t=typeof t=="function"?t:r,e&&e.length?ur(e,r,t):[]}function ja(e){if(!(e&&e.length))return[];var t=0;return e=ir(e,function(o){if(pt(o))return t=xt(o.length,t),!0}),na(t,function(o){return ut(e,Xs(o))})}function Bf(e,t){if(!(e&&e.length))return[];var o=ja(e);return t==null?o:ut(o,function(a){return Zt(t,r,a)})}var By=qe(function(e,t){return pt(e)?Si(e,t):[]}),jy=qe(function(e){return Ca(ir(e,pt))}),Yy=qe(function(e){var t=dn(e);return pt(t)&&(t=r),Ca(ir(e,pt),Ne(t,2))}),Fy=qe(function(e){var t=dn(e);return t=typeof t=="function"?t:r,Ca(ir(e,pt),r,t)}),Wy=qe(ja);function Uy(e,t){return tf(e||[],t||[],Ci)}function zy(e,t){return tf(e||[],t||[],Oi)}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,Bf(e,o)});function jf(e){var t=b(e);return t.__chain__=!0,t}function Hy(e,t){return t(e),e}function qo(e,t){return t(e)}var Gy=Wn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(x){return ca(x,e)};return t>1||this.__actions__.length||!(a instanceof Ge)||!Un(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:qo,args:[y],thisArg:r}),new cn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Vy(){return jf(this)}function Ky(){return new cn(this.value(),this.__chain__)}function Zy(){this.__values__===r&&(this.__values__=Xf(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 Po;){var a=Rf(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:qo,args:[Ba],thisArg:r}),new cn(t,this.__chain__)}return this.thru(Ba)}function e_(){return ef(this.__wrapped__,this.__actions__)}var t_=$o(function(e,t,o){rt.call(e,o)?++e[o]:Yn(e,o,1)});function n_(e,t,o){var a=Fe(e)?dc:Hv;return o&&$t(e,t,o)&&(t=r),a(e,Ne(t,3))}function r_(e,t){var o=Fe(e)?ir:$c;return o(e,Ne(t,3))}var i_=hf(kf),o_=hf(Lf);function s_(e,t){return Et(Ho(e,t),1)}function a_(e,t){return Et(Ho(e,t),p)}function l_(e,t,o){return o=o===r?1:We(o),Et(Ho(e,t),o)}function Yf(e,t){var o=Fe(e)?ln:lr;return o(e,Ne(t,3))}function Ff(e,t){var o=Fe(e)?O0:Ic;return o(e,Ne(t,3))}var u_=$o(function(e,t,o){rt.call(e,o)?e[o].push(t):Yn(e,o,[t])});function c_(e,t,o,a){e=qt(e)?e:Zr(e),o=o&&!a?We(o):0;var y=e.length;return o<0&&(o=xt(y+o,0)),Qo(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&Br(e,t,o)>-1}var f_=qe(function(e,t,o){var a=-1,y=typeof t=="function",x=qt(e)?ne(e.length):[];return lr(e,function(P){x[++a]=y?Zt(t,P,o):Di(P,t,o)}),x}),h_=$o(function(e,t,o){Yn(e,o,t)});function Ho(e,t){var o=Fe(e)?ut:Uc;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]),Gc(e,t,o))}var p_=$o(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function g_(e,t,o){var a=Fe(e)?Qs:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,lr)}function v_(e,t,o){var a=Fe(e)?E0:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Ic)}function m_(e,t){var o=Fe(e)?ir:$c;return o(e,Ko(Ne(t,3)))}function y_(e){var t=Fe(e)?Rc:cm;return t(e)}function __(e,t,o){(o?$t(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(qt(e))return Qo(e)?Yr(e):e.length;var t=Pt(e);return t==W||t==T?e.size:va(e).length}function x_(e,t,o){var a=Fe(e)?Js:pm;return o&&$t(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&&$t(e,t[0],t[1])?t=[]:o>2&&$t(t[0],t[1],t[2])&&(t=[t[0]]),Gc(e,Et(t,1),[])}),Go=rv||function(){return Ot.Date.now()};function S_(e,t){if(typeof t!="function")throw new un(m);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function Wf(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Fn(e,Z,r,r,r,r,t)}function Uf(e,t){var o;if(typeof t!="function")throw new un(m);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Ya=qe(function(e,t,o){var a=G;if(o.length){var y=sr(o,Vr(Ya));a|=Q}return Fn(e,a,t,o,y)}),zf=qe(function(e,t,o){var a=G|ie;if(o.length){var y=sr(o,Vr(zf));a|=Q}return Fn(t,a,e,o,y)});function qf(e,t,o){t=o?r:t;var a=Fn(e,ae,r,r,r,r,r,t);return a.placeholder=qf.placeholder,a}function Hf(e,t,o){t=o?r:t;var a=Fn(e,le,r,r,r,r,r,t);return a.placeholder=Hf.placeholder,a}function Gf(e,t,o){var a,y,x,P,j,H,de=0,ge=!1,we=!1,Ee=!0;if(typeof e!="function")throw new un(m);t=pn(t)||0,ct(o)&&(ge=!!o.leading,we="maxWait"in o,x=we?xt(pn(o.maxWait)||0,t):x,Ee="trailing"in o?!!o.trailing:Ee);function ke(gt){var An=a,Hn=y;return a=y=r,de=gt,P=e.apply(Hn,An),P}function Ie(gt){return de=gt,j=Pi(He,t),ge?ke(gt):P}function Ue(gt){var An=gt-H,Hn=gt-de,hh=t-An;return we?Tt(hh,x-Hn):hh}function $e(gt){var An=gt-H,Hn=gt-de;return H===r||An>=t||An<0||we&&Hn>=x}function He(){var gt=Go();if($e(gt))return Ke(gt);j=Pi(He,Ue(gt))}function Ke(gt){return j=r,Ee&&a?ke(gt):(a=y=r,P)}function en(){j!==r&&nf(j),de=0,a=H=y=j=r}function Bt(){return j===r?P:Ke(Go())}function tn(){var gt=Go(),An=$e(gt);if(a=arguments,y=this,H=gt,An){if(j===r)return Ie(H);if(we)return nf(j),j=Pi(He,t),ke(H)}return j===r&&(j=Pi(He,t)),P}return tn.cancel=en,tn.flush=Bt,tn}var D_=qe(function(e,t){return Nc(e,1,t)}),A_=qe(function(e,t,o){return Nc(e,pn(t)||0,o)});function O_(e){return Fn(e,pe)}function Vo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new un(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(Vo.Cache||jn),o}Vo.Cache=jn;function Ko(e){if(typeof e!="function")throw new un(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 Uf(2,e)}var T_=gm(function(e,t){t=t.length==1&&Fe(t[0])?ut(t[0],Qt(Ne())):ut(Et(t,1),Qt(Ne()));var o=t.length;return qe(function(a){for(var y=-1,x=Tt(a.length,o);++y<x;)a[y]=t[y].call(this,a[y]);return Zt(e,this,a)})}),Fa=qe(function(e,t){var o=sr(t,Vr(Fa));return Fn(e,Q,r,t,o)}),Vf=qe(function(e,t){var o=sr(t,Vr(Vf));return Fn(e,ue,r,t,o)}),P_=Wn(function(e,t){return Fn(e,V,r,r,r,t)});function M_(e,t){if(typeof e!="function")throw new un(m);return t=t===r?t:We(t),qe(e,t)}function R_(e,t){if(typeof e!="function")throw new un(m);return t=t==null?0:xt(We(t),0),qe(function(o){var a=o[t],y=fr(o,0,t);return a&&or(y,a),Zt(e,this,y)})}function k_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new un(m);return ct(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Gf(e,t,{leading:a,maxWait:t,trailing:y})}function L_(e){return Wf(e,1)}function N_(e,t){return Fa(Da(t),e)}function I_(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}function $_(e){return fn(e,k)}function B_(e,t){return t=typeof t=="function"?t:r,fn(e,k,t)}function j_(e){return fn(e,L|k)}function Y_(e,t){return t=typeof t=="function"?t:r,fn(e,L|k,t)}function F_(e,t){return t==null||Lc(e,t,St(t))}function Dn(e,t){return e===t||e!==e&&t!==t}var W_=Fo(da),U_=Fo(function(e,t){return e>=t}),Sr=Yc(function(){return arguments}())?Yc:function(e){return dt(e)&&rt.call(e,"callee")&&!Ac.call(e,"callee")},Fe=ne.isArray,z_=ac?Qt(ac):Jv;function qt(e){return e!=null&&Zo(e.length)&&!zn(e)}function pt(e){return dt(e)&&qt(e)}function q_(e){return e===!0||e===!1||dt(e)&&It(e)==X}var hr=ov||Ja,H_=lc?Qt(lc):Xv;function G_(e){return dt(e)&&e.nodeType===1&&!Mi(e)}function V_(e){if(e==null)return!0;if(qt(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||hr(e)||Kr(e)||Sr(e)))return!e.length;var t=Pt(e);if(t==W||t==T)return!e.size;if(Ti(e))return!va(e).length;for(var o in e)if(rt.call(e,o))return!1;return!0}function K_(e,t){return Ai(e,t)}function Z_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?Ai(e,t,r,o):!!a}function Wa(e){if(!dt(e))return!1;var t=It(e);return t==xe||t==me||typeof e.message=="string"&&typeof e.name=="string"&&!Mi(e)}function Q_(e){return typeof e=="number"&&Ec(e)}function zn(e){if(!ct(e))return!1;var t=It(e);return t==$||t==K||t==_e||t==c}function Kf(e){return typeof e=="number"&&e==We(e)}function Zo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d}function ct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dt(e){return e!=null&&typeof e=="object"}var Zf=uc?Qt(uc):tm;function J_(e,t){return e===t||ga(e,t,Ra(t))}function X_(e,t,o){return o=typeof o=="function"?o:r,ga(e,t,Ra(t),o)}function e2(e){return Qf(e)&&e!=+e}function t2(e){if(Bm(e))throw new Ye(g);return Fc(e)}function n2(e){return e===null}function r2(e){return e==null}function Qf(e){return typeof e=="number"||dt(e)&&It(e)==J}function Mi(e){if(!dt(e)||It(e)!=Se)return!1;var t=Co(e);if(t===null)return!0;var o=rt.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&_o.call(o)==X0}var Ua=cc?Qt(cc):nm;function i2(e){return Kf(e)&&e>=-d&&e<=d}var Jf=fc?Qt(fc):rm;function Qo(e){return typeof e=="string"||!Fe(e)&&dt(e)&&It(e)==z}function Xt(e){return typeof e=="symbol"||dt(e)&&It(e)==te}var Kr=hc?Qt(hc):im;function o2(e){return e===r}function s2(e){return dt(e)&&Pt(e)==be}function a2(e){return dt(e)&&It(e)==Pe}var l2=Fo(ma),u2=Fo(function(e,t){return e<=t});function Xf(e){if(!e)return[];if(qt(e))return Qo(e)?Cn(e):zt(e);if(yi&&e[yi])return F0(e[yi]());var t=Pt(e),o=t==W?ia:t==T?vo:Zr;return o(e)}function qn(e){if(!e)return e===0?e:0;if(e=pn(e),e===p||e===-p){var t=e<0?-1:1;return t*w}return e===e?e:0}function We(e){var t=qn(e),o=t%1;return t===t?o?t-o:t:0}function eh(e){return e?wr(We(e),0,v):0}function pn(e){if(typeof e=="number")return e;if(Xt(e))return h;if(ct(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ct(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yc(e);var o=En.test(e);return o||Tn.test(e)?S0(e.slice(2),o?2:8):Ct.test(e)?h:+e}function th(e){return Ln(e,Ht(e))}function c2(e){return e?wr(We(e),-d,d):e===0?e:0}function tt(e){return e==null?"":Jt(e)}var f2=Hr(function(e,t){if(Ti(t)||qt(t)){Ln(t,St(t),e);return}for(var o in t)rt.call(t,o)&&Ci(e,o,t[o])}),nh=Hr(function(e,t){Ln(t,Ht(t),e)}),Jo=Hr(function(e,t,o,a){Ln(t,Ht(t),e,a)}),h2=Hr(function(e,t,o,a){Ln(t,St(t),e,a)}),d2=Wn(ca);function p2(e,t){var o=qr(e);return t==null?o:kc(o,t)}var g2=qe(function(e,t){e=ot(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&$t(t[0],t[1],y)&&(a=1);++o<a;)for(var x=t[o],P=Ht(x),j=-1,H=P.length;++j<H;){var de=P[j],ge=e[de];(ge===r||Dn(ge,Wr[de])&&!rt.call(e,de))&&(e[de]=x[de])}return e}),v2=qe(function(e){return e.push(r,_f),Zt(rh,r,e)});function m2(e,t){return pc(e,Ne(t,3),kn)}function y2(e,t){return pc(e,Ne(t,3),ha)}function _2(e,t){return e==null?e:fa(e,Ne(t,3),Ht)}function w2(e,t){return e==null?e:Bc(e,Ne(t,3),Ht)}function b2(e,t){return e&&kn(e,Ne(t,3))}function x2(e,t){return e&&ha(e,Ne(t,3))}function C2(e){return e==null?[]:ko(e,St(e))}function S2(e){return e==null?[]:ko(e,Ht(e))}function za(e,t,o){var a=e==null?r:br(e,t);return a===r?o:a}function D2(e,t){return e!=null&&xf(e,t,Vv)}function qa(e,t){return e!=null&&xf(e,t,Kv)}var A2=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=wo.call(t)),e[t]=o},Ga(Gt)),O2=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=wo.call(t)),rt.call(e,t)?e[t].push(o):e[t]=[o]},Ne),E2=qe(Di);function St(e){return qt(e)?Mc(e):va(e)}function Ht(e){return qt(e)?Mc(e,!0):om(e)}function T2(e,t){var o={};return t=Ne(t,3),kn(e,function(a,y,x){Yn(o,t(a,y,x),a)}),o}function P2(e,t){var o={};return t=Ne(t,3),kn(e,function(a,y,x){Yn(o,y,t(a,y,x))}),o}var M2=Hr(function(e,t,o){Lo(e,t,o)}),rh=Hr(function(e,t,o,a){Lo(e,t,o,a)}),R2=Wn(function(e,t){var o={};if(e==null)return o;var a=!1;t=ut(t,function(x){return x=cr(x,e),a||(a=x.length>1),x}),Ln(e,Pa(e),o),a&&(o=fn(o,L|M|k,Am));for(var y=t.length;y--;)xa(o,t[y]);return o});function k2(e,t){return ih(e,Ko(Ne(t)))}var L2=Wn(function(e,t){return e==null?{}:am(e,t)});function ih(e,t){if(e==null)return{};var o=ut(Pa(e),function(a){return[a]});return t=Ne(t),Vc(e,o,function(a,y){return t(a,y[0])})}function N2(e,t,o){t=cr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var x=e==null?r:e[Nn(t[a])];x===r&&(a=y,x=o),e=zn(x)?x.call(e):x}return e}function I2(e,t,o){return e==null?e:Oi(e,t,o)}function $2(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Oi(e,t,o,a)}var oh=mf(St),sh=mf(Ht);function B2(e,t,o){var a=Fe(e),y=a||hr(e)||Kr(e);if(t=Ne(t,4),o==null){var x=e&&e.constructor;y?o=a?new x:[]:ct(e)?o=zn(x)?qr(Co(e)):{}:o={}}return(y?ln:kn)(e,function(P,j,H){return t(o,P,j,H)}),o}function j2(e,t){return e==null?!0:xa(e,t)}function Y2(e,t,o){return e==null?e:Xc(e,t,Da(o))}function F2(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Xc(e,t,Da(o),a)}function Zr(e){return e==null?[]:ra(e,St(e))}function W2(e){return e==null?[]:ra(e,Ht(e))}function U2(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=pn(o),o=o===o?o:0),t!==r&&(t=pn(t),t=t===t?t:0),wr(pn(e),t,o)}function z2(e,t,o){return t=qn(t),o===r?(o=t,t=0):o=qn(o),e=pn(e),Zv(e,t,o)}function q2(e,t,o){if(o&&typeof o!="boolean"&&$t(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=qn(e),t===r?(t=e,e=0):t=qn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Tc();return Tt(e+y*(t-e+C0("1e-"+((y+"").length-1))),t)}return _a(e,t)}var H2=Gr(function(e,t,o){return t=t.toLowerCase(),e+(o?ah(t):t)});function ah(e){return Ha(tt(e).toLowerCase())}function lh(e){return e=tt(e),e&&e.replace(Ys,I0).replace(d0,"")}function G2(e,t,o){e=tt(e),t=Jt(t);var a=e.length;o=o===r?a:wr(We(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function V2(e){return e=tt(e),e&&sn.test(e)?e.replace(Vt,$0):e}function K2(e){return e=tt(e),e&&ze.test(e)?e.replace(bn,"\\$&"):e}var Z2=Gr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Q2=Gr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),J2=ff("toLowerCase");function X2(e,t,o){e=tt(e),t=We(t);var a=t?Yr(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Yo(Oo(y),o)+e+Yo(Ao(y),o)}function ew(e,t,o){e=tt(e),t=We(t);var a=t?Yr(e):0;return t&&a<t?e+Yo(t-a,o):e}function tw(e,t,o){e=tt(e),t=We(t);var a=t?Yr(e):0;return t&&a<t?Yo(t-a,o)+e:e}function nw(e,t,o){return o||t==null?t=0:t&&(t=+t),uv(tt(e).replace(it,""),t||0)}function rw(e,t,o){return(o?$t(e,t,o):t===r)?t=1:t=We(t),wa(tt(e),t)}function iw(){var e=arguments,t=tt(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ow=Gr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function sw(e,t,o){return o&&typeof o!="number"&&$t(e,t,o)&&(t=o=r),o=o===r?v:o>>>0,o?(e=tt(e),e&&(typeof t=="string"||t!=null&&!Ua(t))&&(t=Jt(t),!t&&jr(e))?fr(Cn(e),0,o):e.split(t,o)):[]}var aw=Gr(function(e,t,o){return e+(o?" ":"")+Ha(t)});function lw(e,t,o){return e=tt(e),o=o==null?0:wr(We(o),0,e.length),t=Jt(t),e.slice(o,o+t.length)==t}function uw(e,t,o){var a=b.templateSettings;o&&$t(e,t,o)&&(t=r),e=tt(e),t=Jo({},t,a,yf);var y=Jo({},t.imports,a.imports,yf),x=St(y),P=ra(y,x),j,H,de=0,ge=t.interpolate||Tr,we="__p += '",Ee=oa((t.escape||Tr).source+"|"+ge.source+"|"+(ge===Lt?er:Tr).source+"|"+(t.evaluate||Tr).source+"|$","g"),ke="//# sourceURL="+(rt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y0+"]")+`
|
|
127
|
-
`;e.replace(Ee,function(
|
|
126
|
+
`)}function Nm(e){return Fe(e)||Er(e)||!!(Oc&&e&&e[Oc])}function Kn(e,t){var o=typeof e;return t=t??d,!!t&&(o=="number"||o!="symbol"&&Yn.test(e))&&e>-1&&e%1==0&&e<t}function $t(e,t,o){if(!ft(o))return!1;var a=typeof t;return(a=="number"?Ht(o)&&Kn(t,o.length):a=="string"&&t in o)?Pn(o[t],e):!1}function La(e,t){if(Fe(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||en(e)?!0:Wt.test(e)||!Ft.test(e)||t!=null&&e in it(t)}function Im(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Na(e){var t=qo(e),o=b[t];if(typeof o!="function"||!(t in Ge.prototype))return!1;if(e===o)return!0;var a=Ma(o);return!!a&&e===a[0]}function $m(e){return!!Cc&&Cc in e}var Bm=bo?Zn:Ja;function Ri(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||qr;return e===o}function Sf(e){return e===e&&!ft(e)}function Af(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in it(o))}}function jm(e){var t=Qo(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|oe|J),P=a==J&&o==se||a==J&&o==K&&e[7].length<=t[8]||a==(J|K)&&t[7].length<=t[8]&&o==se;if(!(x||P))return e;a&H&&(e[2]=t[2],y|=o&H?0:le);var j=t[3];if(j){var q=e[3];e[3]=q?af(q,j,t[4]):j,e[4]=q?ur(e[3],E):t[4]}return j=t[5],j&&(q=e[5],e[5]=q?lf(q,j,t[6]):j,e[6]=q?ur(e[5],E):t[6]),j=t[7],j&&(e[7]=j),a&J&&(e[8]=e[8]==null?t[8]:Tt(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 it(e))t.push(o);return t}function Wm(e){return Co.call(e)}function Df(e,t,o){return t=bt(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,x=bt(a.length-t,0),P=re(x);++y<x;)P[y]=a[t+y];y=-1;for(var j=re(t+1);++y<t;)j[y]=a[y];return j[t]=o(P),Qt(e,this,j)}}function Of(e,t){return t.length<2?e:Ar(e,yn(t,0,-1))}function Um(e,t){for(var o=e.length,a=Tt(t.length,o),y=qt(e);a--;){var x=t[a];e[a]=Kn(x,o)?y[x]:r}return e}function Ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ef=Pf(Zc),ki=iv||function(e,t){return Dt.setTimeout(e,t)},$a=Pf(hm);function Tf(e,t,o){var a=t+"";return $a(e,Lm(a,zm(Mm(a),o)))}function Pf(e){var t=0,o=0;return function(){var a=lv(),y=Oe-(a-o);if(o=a,y>0){if(++t>=De)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Go(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var x=_a(o,y),P=e[x];e[x]=e[o],e[o]=P}return e.length=t,e}var Mf=jm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kt,function(o,a,y,x){t.push(y?x.replace(kn,"$1"):a||o)}),t});function jn(e){if(typeof e=="string"||en(e))return e;var t=e+"";return t=="0"&&1/e==-p?"-0":t}function Or(e){if(e!=null){try{return xo.call(e)}catch{}try{return e+""}catch{}}return""}function zm(e,t){return pn(G,function(o){var a="_."+o[0];t&o[1]&&!mo(e,a)&&e.push(a)}),e.sort()}function Rf(e){if(e instanceof Ge)return e.clone();var t=new vn(e.__wrapped__,e.__chain__);return t.__actions__=qt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qm(e,t,o){(o?$t(e,t,o):t===r)?t=1:t=bt(We(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,x=0,P=re(To(a/t));y<a;)P[x++]=yn(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=re(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return lr(Fe(o)?qt(o):[o],Ot(t,1))}var Vm=qe(function(e,t){return gt(e)?Oi(e,Ot(t,1,gt,!0)):[]}),Km=qe(function(e,t){var o=_n(t);return gt(o)&&(o=r),gt(e)?Oi(e,Ot(t,1,gt,!0),Ne(o,2)):[]}),Zm=qe(function(e,t){var o=_n(t);return gt(o)&&(o=r),gt(e)?Oi(e,Ot(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),yn(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,yn(e,0,t<0?0:t)):[]}function Xm(e,t){return e&&e.length?jo(e,Ne(t,3),!0,!0):[]}function ey(e,t){return e&&e.length?jo(e,Ne(t,3),!0):[]}function ty(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&$t(e,t,o)&&(o=0,a=y),Gv(e,t,o,a)):[]}function kf(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=bt(a+y,0)),yo(e,Ne(t,3),y)}function Lf(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?bt(a+y,0):Tt(y,a-1)),yo(e,Ne(t,3),y,!0)}function Nf(e){var t=e==null?0:e.length;return t?Ot(e,1):[]}function ny(e){var t=e==null?0:e.length;return t?Ot(e,p):[]}function ry(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:We(t),Ot(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 If(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=bt(a+y,0)),Fr(e,t,y)}function sy(e){var t=e==null?0:e.length;return t?yn(e,0,-1):[]}var ay=qe(function(e){var t=ut(e,Sa);return t.length&&t[0]===e[0]?pa(t):[]}),ly=qe(function(e){var t=_n(e),o=ut(e,Sa);return t===_n(o)?t=r:o.pop(),o.length&&o[0]===e[0]?pa(o,Ne(t,2)):[]}),uy=qe(function(e){var t=_n(e),o=ut(e,Sa);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?pa(o,r,t):[]});function cy(e,t){return e==null?"":sv.call(e,t)}function _n(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?bt(a+y,0):Tt(y,a-1)),t===t?z0(e,t,y):yo(e,gc,y,!0)}function hy(e,t){return e&&e.length?Hc(e,We(t)):r}var dy=qe($f);function $f(e,t){return e&&e.length&&t&&t.length?ya(e,t):e}function py(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,Ne(o,2)):e}function gy(e,t,o){return e&&e.length&&t&&t.length?ya(e,t,r,o):e}var vy=Vn(function(e,t){var o=e==null?0:e.length,a=ca(e,t);return Kc(e,ut(t,function(y){return Kn(y,o)?+y:y}).sort(sf)),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 Kc(e,y),o}function Ba(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"&&$t(e,t,o)?(t=0,o=a):(t=t==null?0:We(t),o=o===r?a:We(o)),yn(e,t,o)):[]}function _y(e,t){return Bo(e,t)}function wy(e,t,o){return ba(e,t,Ne(o,2))}function by(e,t){var o=e==null?0:e.length;if(o){var a=Bo(e,t);if(a<o&&Pn(e[a],t))return a}return-1}function xy(e,t){return Bo(e,t,!0)}function Cy(e,t,o){return ba(e,t,Ne(o,2),!0)}function Sy(e,t){var o=e==null?0:e.length;if(o){var a=Bo(e,t,!0)-1;if(Pn(e[a],t))return a}return-1}function Ay(e){return e&&e.length?Qc(e):[]}function Dy(e,t){return e&&e.length?Qc(e,Ne(t,2)):[]}function Oy(e){var t=e==null?0:e.length;return t?yn(e,1,t):[]}function Ey(e,t,o){return e&&e.length?(t=o||t===r?1:We(t),yn(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,yn(e,t<0?0:t,a)):[]}function Py(e,t){return e&&e.length?jo(e,Ne(t,3),!1,!0):[]}function My(e,t){return e&&e.length?jo(e,Ne(t,3)):[]}var Ry=qe(function(e){return hr(Ot(e,1,gt,!0))}),ky=qe(function(e){var t=_n(e);return gt(t)&&(t=r),hr(Ot(e,1,gt,!0),Ne(t,2))}),Ly=qe(function(e){var t=_n(e);return t=typeof t=="function"?t:r,hr(Ot(e,1,gt,!0),r,t)});function Ny(e){return e&&e.length?hr(e):[]}function Iy(e,t){return e&&e.length?hr(e,Ne(t,2)):[]}function $y(e,t){return t=typeof t=="function"?t:r,e&&e.length?hr(e,r,t):[]}function ja(e){if(!(e&&e.length))return[];var t=0;return e=ar(e,function(o){if(gt(o))return t=bt(o.length,t),!0}),na(t,function(o){return ut(e,Xs(o))})}function Bf(e,t){if(!(e&&e.length))return[];var o=ja(e);return t==null?o:ut(o,function(a){return Qt(t,r,a)})}var By=qe(function(e,t){return gt(e)?Oi(e,t):[]}),jy=qe(function(e){return Ca(ar(e,gt))}),Yy=qe(function(e){var t=_n(e);return gt(t)&&(t=r),Ca(ar(e,gt),Ne(t,2))}),Fy=qe(function(e){var t=_n(e);return t=typeof t=="function"?t:r,Ca(ar(e,gt),r,t)}),Wy=qe(ja);function Uy(e,t){return tf(e||[],t||[],Di)}function zy(e,t){return tf(e||[],t||[],Pi)}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,Bf(e,o)});function jf(e){var t=b(e);return t.__chain__=!0,t}function Hy(e,t){return t(e),e}function Vo(e,t){return t(e)}var Gy=Vn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(x){return ca(x,e)};return t>1||this.__actions__.length||!(a instanceof Ge)||!Kn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Vo,args:[y],thisArg:r}),new vn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Vy(){return jf(this)}function Ky(){return new vn(this.value(),this.__chain__)}function Zy(){this.__values__===r&&(this.__values__=Xf(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 ko;){var a=Rf(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:Vo,args:[Ba],thisArg:r}),new vn(t,this.__chain__)}return this.thru(Ba)}function e_(){return ef(this.__wrapped__,this.__actions__)}var t_=Yo(function(e,t,o){tt.call(e,o)?++e[o]:Hn(e,o,1)});function n_(e,t,o){var a=Fe(e)?dc:Hv;return o&&$t(e,t,o)&&(t=r),a(e,Ne(t,3))}function r_(e,t){var o=Fe(e)?ar:$c;return o(e,Ne(t,3))}var i_=hf(kf),o_=hf(Lf);function s_(e,t){return Ot(Ko(e,t),1)}function a_(e,t){return Ot(Ko(e,t),p)}function l_(e,t,o){return o=o===r?1:We(o),Ot(Ko(e,t),o)}function Yf(e,t){var o=Fe(e)?pn:fr;return o(e,Ne(t,3))}function Ff(e,t){var o=Fe(e)?O0:Ic;return o(e,Ne(t,3))}var u_=Yo(function(e,t,o){tt.call(e,o)?e[o].push(t):Hn(e,o,[t])});function c_(e,t,o,a){e=Ht(e)?e:Xr(e),o=o&&!a?We(o):0;var y=e.length;return o<0&&(o=bt(y+o,0)),es(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&Fr(e,t,o)>-1}var f_=qe(function(e,t,o){var a=-1,y=typeof t=="function",x=Ht(e)?re(e.length):[];return fr(e,function(P){x[++a]=y?Qt(t,P,o):Ei(P,t,o)}),x}),h_=Yo(function(e,t,o){Hn(e,o,t)});function Ko(e,t){var o=Fe(e)?ut:Uc;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]),Gc(e,t,o))}var p_=Yo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function g_(e,t,o){var a=Fe(e)?Qs:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,fr)}function v_(e,t,o){var a=Fe(e)?E0:mc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Ic)}function m_(e,t){var o=Fe(e)?ar:$c;return o(e,Jo(Ne(t,3)))}function y_(e){var t=Fe(e)?Rc:cm;return t(e)}function __(e,t,o){(o?$t(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(Ht(e))return es(e)?Ur(e):e.length;var t=Pt(e);return t==W||t==R?e.size:va(e).length}function x_(e,t,o){var a=Fe(e)?Js:pm;return o&&$t(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&&$t(e,t[0],t[1])?t=[]:o>2&&$t(t[0],t[1],t[2])&&(t=[t[0]]),Gc(e,Ot(t,1),[])}),Zo=rv||function(){return Dt.Date.now()};function S_(e,t){if(typeof t!="function")throw new gn(v);return e=We(e),function(){if(--e<1)return t.apply(this,arguments)}}function Wf(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Gn(e,J,r,r,r,r,t)}function Uf(e,t){var o;if(typeof t!="function")throw new gn(v);return e=We(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Ya=qe(function(e,t,o){var a=H;if(o.length){var y=ur(o,Qr(Ya));a|=Q}return Gn(e,a,t,o,y)}),zf=qe(function(e,t,o){var a=H|oe;if(o.length){var y=ur(o,Qr(zf));a|=Q}return Gn(t,a,e,o,y)});function qf(e,t,o){t=o?r:t;var a=Gn(e,se,r,r,r,r,r,t);return a.placeholder=qf.placeholder,a}function Hf(e,t,o){t=o?r:t;var a=Gn(e,ce,r,r,r,r,r,t);return a.placeholder=Hf.placeholder,a}function Gf(e,t,o){var a,y,x,P,j,q,pe=0,ge=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new gn(v);t=wn(t)||0,ft(o)&&(ge=!!o.leading,xe="maxWait"in o,x=xe?bt(wn(o.maxWait)||0,t):x,Ee="trailing"in o?!!o.trailing:Ee);function Le(vt){var Mn=a,Jn=y;return a=y=r,pe=vt,P=e.apply(Jn,Mn),P}function $e(vt){return pe=vt,j=ki(He,t),ge?Le(vt):P}function Ue(vt){var Mn=vt-q,Jn=vt-pe,hh=t-Mn;return xe?Tt(hh,x-Jn):hh}function Be(vt){var Mn=vt-q,Jn=vt-pe;return q===r||Mn>=t||Mn<0||xe&&Jn>=x}function He(){var vt=Zo();if(Be(vt))return Ke(vt);j=ki(He,Ue(vt))}function Ke(vt){return j=r,Ee&&a?Le(vt):(a=y=r,P)}function tn(){j!==r&&nf(j),pe=0,a=q=y=j=r}function Bt(){return j===r?P:Ke(Zo())}function nn(){var vt=Zo(),Mn=Be(vt);if(a=arguments,y=this,q=vt,Mn){if(j===r)return $e(q);if(xe)return nf(j),j=ki(He,t),Le(q)}return j===r&&(j=ki(He,t)),P}return nn.cancel=tn,nn.flush=Bt,nn}var A_=qe(function(e,t){return Nc(e,1,t)}),D_=qe(function(e,t,o){return Nc(e,wn(t)||0,o)});function O_(e){return Gn(e,de)}function Qo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new gn(v);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(Qo.Cache||qn),o}Qo.Cache=qn;function Jo(e){if(typeof e!="function")throw new gn(v);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 Uf(2,e)}var T_=gm(function(e,t){t=t.length==1&&Fe(t[0])?ut(t[0],Jt(Ne())):ut(Ot(t,1),Jt(Ne()));var o=t.length;return qe(function(a){for(var y=-1,x=Tt(a.length,o);++y<x;)a[y]=t[y].call(this,a[y]);return Qt(e,this,a)})}),Fa=qe(function(e,t){var o=ur(t,Qr(Fa));return Gn(e,Q,r,t,o)}),Vf=qe(function(e,t){var o=ur(t,Qr(Vf));return Gn(e,ne,r,t,o)}),P_=Vn(function(e,t){return Gn(e,K,r,r,r,t)});function M_(e,t){if(typeof e!="function")throw new gn(v);return t=t===r?t:We(t),qe(e,t)}function R_(e,t){if(typeof e!="function")throw new gn(v);return t=t==null?0:bt(We(t),0),qe(function(o){var a=o[t],y=pr(o,0,t);return a&&lr(y,a),Qt(e,this,y)})}function k_(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new gn(v);return ft(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Gf(e,t,{leading:a,maxWait:t,trailing:y})}function L_(e){return Wf(e,1)}function N_(e,t){return Fa(Aa(t),e)}function I_(){if(!arguments.length)return[];var e=arguments[0];return Fe(e)?e:[e]}function $_(e){return mn(e,L)}function B_(e,t){return t=typeof t=="function"?t:r,mn(e,L,t)}function j_(e){return mn(e,N|L)}function Y_(e,t){return t=typeof t=="function"?t:r,mn(e,N|L,t)}function F_(e,t){return t==null||Lc(e,t,xt(t))}function Pn(e,t){return e===t||e!==e&&t!==t}var W_=zo(da),U_=zo(function(e,t){return e>=t}),Er=Yc(function(){return arguments}())?Yc:function(e){return dt(e)&&tt.call(e,"callee")&&!Dc.call(e,"callee")},Fe=re.isArray,z_=ac?Jt(ac):Jv;function Ht(e){return e!=null&&Xo(e.length)&&!Zn(e)}function gt(e){return dt(e)&&Ht(e)}function q_(e){return e===!0||e===!1||dt(e)&&It(e)==X}var gr=ov||Ja,H_=lc?Jt(lc):Xv;function G_(e){return dt(e)&&e.nodeType===1&&!Li(e)}function V_(e){if(e==null)return!0;if(Ht(e)&&(Fe(e)||typeof e=="string"||typeof e.splice=="function"||gr(e)||Jr(e)||Er(e)))return!e.length;var t=Pt(e);if(t==W||t==R)return!e.size;if(Ri(e))return!va(e).length;for(var o in e)if(tt.call(e,o))return!1;return!0}function K_(e,t){return Ti(e,t)}function Z_(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?Ti(e,t,r,o):!!a}function Wa(e){if(!dt(e))return!1;var t=It(e);return t==ve||t==_e||typeof e.message=="string"&&typeof e.name=="string"&&!Li(e)}function Q_(e){return typeof e=="number"&&Ec(e)}function Zn(e){if(!ft(e))return!1;var t=It(e);return t==B||t==Z||t==we||t==c}function Kf(e){return typeof e=="number"&&e==We(e)}function Xo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function dt(e){return e!=null&&typeof e=="object"}var Zf=uc?Jt(uc):tm;function J_(e,t){return e===t||ga(e,t,Ra(t))}function X_(e,t,o){return o=typeof o=="function"?o:r,ga(e,t,Ra(t),o)}function e2(e){return Qf(e)&&e!=+e}function t2(e){if(Bm(e))throw new Ye(g);return Fc(e)}function n2(e){return e===null}function r2(e){return e==null}function Qf(e){return typeof e=="number"||dt(e)&&It(e)==V}function Li(e){if(!dt(e)||It(e)!=Se)return!1;var t=Do(e);if(t===null)return!0;var o=tt.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&xo.call(o)==X0}var Ua=cc?Jt(cc):nm;function i2(e){return Kf(e)&&e>=-d&&e<=d}var Jf=fc?Jt(fc):rm;function es(e){return typeof e=="string"||!Fe(e)&&dt(e)&&It(e)==U}function en(e){return typeof e=="symbol"||dt(e)&&It(e)==te}var Jr=hc?Jt(hc):im;function o2(e){return e===r}function s2(e){return dt(e)&&Pt(e)==Ce}function a2(e){return dt(e)&&It(e)==Pe}var l2=zo(ma),u2=zo(function(e,t){return e<=t});function Xf(e){if(!e)return[];if(Ht(e))return es(e)?En(e):qt(e);if(bi&&e[bi])return F0(e[bi]());var t=Pt(e),o=t==W?ia:t==R?_o:Xr;return o(e)}function Qn(e){if(!e)return e===0?e:0;if(e=wn(e),e===p||e===-p){var t=e<0?-1:1;return t*w}return e===e?e:0}function We(e){var t=Qn(e),o=t%1;return t===t?o?t-o:t:0}function eh(e){return e?Sr(We(e),0,m):0}function wn(e){if(typeof e=="number")return e;if(en(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=yc(e);var o=Ze.test(e);return o||zt.test(e)?S0(e.slice(2),o?2:8):_t.test(e)?f:+e}function th(e){return Bn(e,Gt(e))}function c2(e){return e?Sr(We(e),-d,d):e===0?e:0}function et(e){return e==null?"":Xt(e)}var f2=Kr(function(e,t){if(Ri(t)||Ht(t)){Bn(t,xt(t),e);return}for(var o in t)tt.call(t,o)&&Di(e,o,t[o])}),nh=Kr(function(e,t){Bn(t,Gt(t),e)}),ts=Kr(function(e,t,o,a){Bn(t,Gt(t),e,a)}),h2=Kr(function(e,t,o,a){Bn(t,xt(t),e,a)}),d2=Vn(ca);function p2(e,t){var o=Vr(e);return t==null?o:kc(o,t)}var g2=qe(function(e,t){e=it(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&$t(t[0],t[1],y)&&(a=1);++o<a;)for(var x=t[o],P=Gt(x),j=-1,q=P.length;++j<q;){var pe=P[j],ge=e[pe];(ge===r||Pn(ge,qr[pe])&&!tt.call(e,pe))&&(e[pe]=x[pe])}return e}),v2=qe(function(e){return e.push(r,_f),Qt(rh,r,e)});function m2(e,t){return pc(e,Ne(t,3),$n)}function y2(e,t){return pc(e,Ne(t,3),ha)}function _2(e,t){return e==null?e:fa(e,Ne(t,3),Gt)}function w2(e,t){return e==null?e:Bc(e,Ne(t,3),Gt)}function b2(e,t){return e&&$n(e,Ne(t,3))}function x2(e,t){return e&&ha(e,Ne(t,3))}function C2(e){return e==null?[]:Io(e,xt(e))}function S2(e){return e==null?[]:Io(e,Gt(e))}function za(e,t,o){var a=e==null?r:Ar(e,t);return a===r?o:a}function A2(e,t){return e!=null&&xf(e,t,Vv)}function qa(e,t){return e!=null&&xf(e,t,Kv)}var D2=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Co.call(t)),e[t]=o},Ga(Vt)),O2=pf(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Co.call(t)),tt.call(e,t)?e[t].push(o):e[t]=[o]},Ne),E2=qe(Ei);function xt(e){return Ht(e)?Mc(e):va(e)}function Gt(e){return Ht(e)?Mc(e,!0):om(e)}function T2(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,x){Hn(o,t(a,y,x),a)}),o}function P2(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,x){Hn(o,y,t(a,y,x))}),o}var M2=Kr(function(e,t,o){$o(e,t,o)}),rh=Kr(function(e,t,o,a){$o(e,t,o,a)}),R2=Vn(function(e,t){var o={};if(e==null)return o;var a=!1;t=ut(t,function(x){return x=dr(x,e),a||(a=x.length>1),x}),Bn(e,Pa(e),o),a&&(o=mn(o,N|M|L,Dm));for(var y=t.length;y--;)xa(o,t[y]);return o});function k2(e,t){return ih(e,Jo(Ne(t)))}var L2=Vn(function(e,t){return e==null?{}:am(e,t)});function ih(e,t){if(e==null)return{};var o=ut(Pa(e),function(a){return[a]});return t=Ne(t),Vc(e,o,function(a,y){return t(a,y[0])})}function N2(e,t,o){t=dr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var x=e==null?r:e[jn(t[a])];x===r&&(a=y,x=o),e=Zn(x)?x.call(e):x}return e}function I2(e,t,o){return e==null?e:Pi(e,t,o)}function $2(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Pi(e,t,o,a)}var oh=mf(xt),sh=mf(Gt);function B2(e,t,o){var a=Fe(e),y=a||gr(e)||Jr(e);if(t=Ne(t,4),o==null){var x=e&&e.constructor;y?o=a?new x:[]:ft(e)?o=Zn(x)?Vr(Do(e)):{}:o={}}return(y?pn:$n)(e,function(P,j,q){return t(o,P,j,q)}),o}function j2(e,t){return e==null?!0:xa(e,t)}function Y2(e,t,o){return e==null?e:Xc(e,t,Aa(o))}function F2(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Xc(e,t,Aa(o),a)}function Xr(e){return e==null?[]:ra(e,xt(e))}function W2(e){return e==null?[]:ra(e,Gt(e))}function U2(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=wn(o),o=o===o?o:0),t!==r&&(t=wn(t),t=t===t?t:0),Sr(wn(e),t,o)}function z2(e,t,o){return t=Qn(t),o===r?(o=t,t=0):o=Qn(o),e=wn(e),Zv(e,t,o)}function q2(e,t,o){if(o&&typeof o!="boolean"&&$t(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=Qn(e),t===r?(t=e,e=0):t=Qn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Tc();return Tt(e+y*(t-e+C0("1e-"+((y+"").length-1))),t)}return _a(e,t)}var H2=Zr(function(e,t,o){return t=t.toLowerCase(),e+(o?ah(t):t)});function ah(e){return Ha(et(e).toLowerCase())}function lh(e){return e=et(e),e&&e.replace(Rr,I0).replace(d0,"")}function G2(e,t,o){e=et(e),t=Xt(t);var a=e.length;o=o===r?a:Sr(We(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function V2(e){return e=et(e),e&&an.test(e)?e.replace(On,$0):e}function K2(e){return e=et(e),e&&ze.test(e)?e.replace(Ut,"\\$&"):e}var Z2=Zr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Q2=Zr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),J2=ff("toLowerCase");function X2(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return Uo(Po(y),o)+e+Uo(To(y),o)}function ew(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;return t&&a<t?e+Uo(t-a,o):e}function tw(e,t,o){e=et(e),t=We(t);var a=t?Ur(e):0;return t&&a<t?Uo(t-a,o)+e:e}function nw(e,t,o){return o||t==null?t=0:t&&(t=+t),uv(et(e).replace(at,""),t||0)}function rw(e,t,o){return(o?$t(e,t,o):t===r)?t=1:t=We(t),wa(et(e),t)}function iw(){var e=arguments,t=et(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ow=Zr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function sw(e,t,o){return o&&typeof o!="number"&&$t(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=et(e),e&&(typeof t=="string"||t!=null&&!Ua(t))&&(t=Xt(t),!t&&Wr(e))?pr(En(e),0,o):e.split(t,o)):[]}var aw=Zr(function(e,t,o){return e+(o?" ":"")+Ha(t)});function lw(e,t,o){return e=et(e),o=o==null?0:Sr(We(o),0,e.length),t=Xt(t),e.slice(o,o+t.length)==t}function uw(e,t,o){var a=b.templateSettings;o&&$t(e,t,o)&&(t=r),e=et(e),t=ts({},t,a,yf);var y=ts({},t.imports,a.imports,yf),x=xt(y),P=ra(y,x),j,q,pe=0,ge=t.interpolate||Fn,xe="__p += '",Ee=oa((t.escape||Fn).source+"|"+ge.source+"|"+(ge===Lt?fn:Fn).source+"|"+(t.evaluate||Fn).source+"|$","g"),Le="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y0+"]")+`
|
|
127
|
+
`;e.replace(Ee,function(Be,He,Ke,tn,Bt,nn){return Ke||(Ke=tn),xe+=e.slice(pe,nn).replace(kr,B0),He&&(j=!0,xe+=`' +
|
|
128
128
|
__e(`+He+`) +
|
|
129
|
-
'`),Bt&&(
|
|
129
|
+
'`),Bt&&(q=!0,xe+=`';
|
|
130
130
|
`+Bt+`;
|
|
131
|
-
__p += '`),Ke&&(
|
|
131
|
+
__p += '`),Ke&&(xe+=`' +
|
|
132
132
|
((__t = (`+Ke+`)) == null ? '' : __t) +
|
|
133
|
-
'`),
|
|
134
|
-
`;var
|
|
135
|
-
`+
|
|
133
|
+
'`),pe=nn+Be.length,Be}),xe+=`';
|
|
134
|
+
`;var $e=tt.call(t,"variable")&&t.variable;if(!$e)xe=`with (obj) {
|
|
135
|
+
`+xe+`
|
|
136
136
|
}
|
|
137
|
-
`;else if(
|
|
138
|
-
`+(
|
|
139
|
-
`)+"var __t, __p = ''"+(j?", __e = _.escape":"")+(
|
|
137
|
+
`;else if(cn.test($e))throw new Ye(h);xe=(q?xe.replace(St,""):xe).replace(Dn,"$1").replace(At,"$1;"),xe="function("+($e||"obj")+`) {
|
|
138
|
+
`+($e?"":`obj || (obj = {});
|
|
139
|
+
`)+"var __t, __p = ''"+(j?", __e = _.escape":"")+(q?`, __j = Array.prototype.join;
|
|
140
140
|
function print() { __p += __j.call(arguments, '') }
|
|
141
141
|
`:`;
|
|
142
|
-
`)+
|
|
143
|
-
}`;var Ue=ch(function(){return Xe(x,ke+"return "+we).apply(r,P)});if(Ue.source=we,Wa(Ue))throw Ue;return Ue}function cw(e){return tt(e).toLowerCase()}function fw(e){return tt(e).toUpperCase()}function hw(e,t,o){if(e=tt(e),e&&(o||t===r))return yc(e);if(!e||!(t=Jt(t)))return e;var a=Cn(e),y=Cn(t),x=_c(a,y),P=wc(a,y)+1;return fr(a,x,P).join("")}function dw(e,t,o){if(e=tt(e),e&&(o||t===r))return e.slice(0,xc(e)+1);if(!e||!(t=Jt(t)))return e;var a=Cn(e),y=wc(a,Cn(t))+1;return fr(a,0,y).join("")}function pw(e,t,o){if(e=tt(e),e&&(o||t===r))return e.replace(it,"");if(!e||!(t=Jt(t)))return e;var a=Cn(e),y=_c(a,Cn(t));return fr(a,y).join("")}function gw(e,t){var o=fe,a=re;if(ct(t)){var y="separator"in t?t.separator:y;o="length"in t?We(t.length):o,a="omission"in t?Jt(t.omission):a}e=tt(e);var x=e.length;if(jr(e)){var P=Cn(e);x=P.length}if(o>=x)return e;var j=o-Yr(a);if(j<1)return a;var H=P?fr(P,0,j).join(""):e.slice(0,j);if(y===r)return H+a;if(P&&(j+=H.length-j),Ua(y)){if(e.slice(j).search(y)){var de,ge=H;for(y.global||(y=oa(y.source,tt(tr.exec(y))+"g")),y.lastIndex=0;de=y.exec(ge);)var we=de.index;H=H.slice(0,we===r?j:we)}}else if(e.indexOf(Jt(y),j)!=j){var Ee=H.lastIndexOf(y);Ee>-1&&(H=H.slice(0,Ee))}return H+a}function vw(e){return e=tt(e),e&&yt.test(e)?e.replace(Ft,q0):e}var mw=Gr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ha=ff("toUpperCase");function uh(e,t,o){return e=tt(e),t=o?r:t,t===r?Y0(e)?V0(e):M0(e):e.match(t)||[]}var ch=qe(function(e,t){try{return Zt(e,r,t)}catch(o){return Wa(o)?o:new Ye(o)}}),yw=Wn(function(e,t){return ln(t,function(o){o=Nn(o),Yn(e,o,Ya(e[o],e))}),e});function _w(e){var t=e==null?0:e.length,o=Ne();return e=t?ut(e,function(a){if(typeof a[1]!="function")throw new un(m);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var x=e[y];if(Zt(x[0],this,a))return Zt(x[1],this,a)}})}function ww(e){return qv(fn(e,L))}function Ga(e){return function(){return e}}function bw(e,t){return e==null||e!==e?t:e}var xw=df(),Cw=df(!0);function Gt(e){return e}function Va(e){return Wc(typeof e=="function"?e:fn(e,L))}function Sw(e){return zc(fn(e,L))}function Dw(e,t){return qc(e,fn(t,L))}var Aw=qe(function(e,t){return function(o){return Di(o,e,t)}}),Ow=qe(function(e,t){return function(o){return Di(e,o,t)}});function Ka(e,t,o){var a=St(t),y=ko(t,a);o==null&&!(ct(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=ko(t,St(t)));var x=!(ct(o)&&"chain"in o)||!!o.chain,P=zn(e);return ln(y,function(j){var H=t[j];e[j]=H,P&&(e.prototype[j]=function(){var de=this.__chain__;if(x||de){var ge=e(this.__wrapped__),we=ge.__actions__=zt(this.__actions__);return we.push({func:H,args:arguments,thisArg:e}),ge.__chain__=de,ge}return H.apply(e,or([this.value()],arguments))})}),e}function Ew(){return Ot._===this&&(Ot._=ev),this}function Za(){}function Tw(e){return e=We(e),qe(function(t){return Hc(t,e)})}var Pw=Oa(ut),Mw=Oa(dc),Rw=Oa(Js);function fh(e){return La(e)?Xs(Nn(e)):lm(e)}function kw(e){return function(t){return e==null?r:br(e,t)}}var Lw=gf(),Nw=gf(!0);function Qa(){return[]}function Ja(){return!1}function Iw(){return{}}function $w(){return""}function Bw(){return!0}function jw(e,t){if(e=We(e),e<1||e>d)return[];var o=v,a=Tt(e,v);t=Ne(t),e-=v;for(var y=na(a,t);++o<e;)t(o);return y}function Yw(e){return Fe(e)?ut(e,Nn):Xt(e)?[e]:zt(Mf(tt(e)))}function Fw(e){var t=++J0;return tt(e)+t}var Ww=jo(function(e,t){return e+t},0),Uw=Ea("ceil"),zw=jo(function(e,t){return e/t},1),qw=Ea("floor");function Hw(e){return e&&e.length?Ro(e,Gt,da):r}function Gw(e,t){return e&&e.length?Ro(e,Ne(t,2),da):r}function Vw(e){return vc(e,Gt)}function Kw(e,t){return vc(e,Ne(t,2))}function Zw(e){return e&&e.length?Ro(e,Gt,ma):r}function Qw(e,t){return e&&e.length?Ro(e,Ne(t,2),ma):r}var Jw=jo(function(e,t){return e*t},1),Xw=Ea("round"),eb=jo(function(e,t){return e-t},0);function tb(e){return e&&e.length?ta(e,Gt):0}function nb(e,t){return e&&e.length?ta(e,Ne(t,2)):0}return b.after=S_,b.ary=Wf,b.assign=f2,b.assignIn=nh,b.assignInWith=Jo,b.assignWith=h2,b.at=d2,b.before=Uf,b.bind=Ya,b.bindAll=yw,b.bindKey=zf,b.castArray=I_,b.chain=jf,b.chunk=qm,b.compact=Hm,b.concat=Gm,b.cond=_w,b.conforms=ww,b.constant=Ga,b.countBy=t_,b.create=p2,b.curry=qf,b.curryRight=Hf,b.debounce=Gf,b.defaults=g2,b.defaultsDeep=v2,b.defer=D_,b.delay=A_,b.difference=Vm,b.differenceBy=Km,b.differenceWith=Zm,b.drop=Qm,b.dropRight=Jm,b.dropRightWhile=Xm,b.dropWhile=ey,b.fill=ty,b.filter=r_,b.flatMap=s_,b.flatMapDeep=a_,b.flatMapDepth=l_,b.flatten=Nf,b.flattenDeep=ny,b.flattenDepth=ry,b.flip=O_,b.flow=xw,b.flowRight=Cw,b.fromPairs=iy,b.functions=C2,b.functionsIn=S2,b.groupBy=u_,b.initial=sy,b.intersection=ay,b.intersectionBy=ly,b.intersectionWith=uy,b.invert=A2,b.invertBy=O2,b.invokeMap=f_,b.iteratee=Va,b.keyBy=h_,b.keys=St,b.keysIn=Ht,b.map=Ho,b.mapKeys=T2,b.mapValues=P2,b.matches=Sw,b.matchesProperty=Dw,b.memoize=Vo,b.merge=M2,b.mergeWith=rh,b.method=Aw,b.methodOf=Ow,b.mixin=Ka,b.negate=Ko,b.nthArg=Tw,b.omit=R2,b.omitBy=k2,b.once=E_,b.orderBy=d_,b.over=Pw,b.overArgs=T_,b.overEvery=Mw,b.overSome=Rw,b.partial=Fa,b.partialRight=Vf,b.partition=p_,b.pick=L2,b.pickBy=ih,b.property=fh,b.propertyOf=kw,b.pull=dy,b.pullAll=$f,b.pullAllBy=py,b.pullAllWith=gy,b.pullAt=vy,b.range=Lw,b.rangeRight=Nw,b.rearg=P_,b.reject=m_,b.remove=my,b.rest=M_,b.reverse=Ba,b.sampleSize=__,b.set=I2,b.setWith=$2,b.shuffle=w_,b.slice=yy,b.sortBy=C_,b.sortedUniq=Dy,b.sortedUniqBy=Ay,b.split=sw,b.spread=R_,b.tail=Oy,b.take=Ey,b.takeRight=Ty,b.takeRightWhile=Py,b.takeWhile=My,b.tap=Hy,b.throttle=k_,b.thru=qo,b.toArray=Xf,b.toPairs=oh,b.toPairsIn=sh,b.toPath=Yw,b.toPlainObject=th,b.transform=B2,b.unary=L_,b.union=Ry,b.unionBy=ky,b.unionWith=Ly,b.uniq=Ny,b.uniqBy=Iy,b.uniqWith=$y,b.unset=j2,b.unzip=ja,b.unzipWith=Bf,b.update=Y2,b.updateWith=F2,b.values=Zr,b.valuesIn=W2,b.without=By,b.words=uh,b.wrap=N_,b.xor=jy,b.xorBy=Yy,b.xorWith=Fy,b.zip=Wy,b.zipObject=Uy,b.zipObjectDeep=zy,b.zipWith=qy,b.entries=oh,b.entriesIn=sh,b.extend=nh,b.extendWith=Jo,Ka(b,b),b.add=Ww,b.attempt=ch,b.camelCase=H2,b.capitalize=ah,b.ceil=Uw,b.clamp=U2,b.clone=$_,b.cloneDeep=j_,b.cloneDeepWith=Y_,b.cloneWith=B_,b.conformsTo=F_,b.deburr=lh,b.defaultTo=bw,b.divide=zw,b.endsWith=G2,b.eq=Dn,b.escape=V2,b.escapeRegExp=K2,b.every=n_,b.find=i_,b.findIndex=kf,b.findKey=m2,b.findLast=o_,b.findLastIndex=Lf,b.findLastKey=y2,b.floor=qw,b.forEach=Yf,b.forEachRight=Ff,b.forIn=_2,b.forInRight=w2,b.forOwn=b2,b.forOwnRight=x2,b.get=za,b.gt=W_,b.gte=U_,b.has=D2,b.hasIn=qa,b.head=If,b.identity=Gt,b.includes=c_,b.indexOf=oy,b.inRange=z2,b.invoke=E2,b.isArguments=Sr,b.isArray=Fe,b.isArrayBuffer=z_,b.isArrayLike=qt,b.isArrayLikeObject=pt,b.isBoolean=q_,b.isBuffer=hr,b.isDate=H_,b.isElement=G_,b.isEmpty=V_,b.isEqual=K_,b.isEqualWith=Z_,b.isError=Wa,b.isFinite=Q_,b.isFunction=zn,b.isInteger=Kf,b.isLength=Zo,b.isMap=Zf,b.isMatch=J_,b.isMatchWith=X_,b.isNaN=e2,b.isNative=t2,b.isNil=r2,b.isNull=n2,b.isNumber=Qf,b.isObject=ct,b.isObjectLike=dt,b.isPlainObject=Mi,b.isRegExp=Ua,b.isSafeInteger=i2,b.isSet=Jf,b.isString=Qo,b.isSymbol=Xt,b.isTypedArray=Kr,b.isUndefined=o2,b.isWeakMap=s2,b.isWeakSet=a2,b.join=cy,b.kebabCase=Z2,b.last=dn,b.lastIndexOf=fy,b.lowerCase=Q2,b.lowerFirst=J2,b.lt=l2,b.lte=u2,b.max=Hw,b.maxBy=Gw,b.mean=Vw,b.meanBy=Kw,b.min=Zw,b.minBy=Qw,b.stubArray=Qa,b.stubFalse=Ja,b.stubObject=Iw,b.stubString=$w,b.stubTrue=Bw,b.multiply=Jw,b.nth=hy,b.noConflict=Ew,b.noop=Za,b.now=Go,b.pad=X2,b.padEnd=ew,b.padStart=tw,b.parseInt=nw,b.random=q2,b.reduce=g_,b.reduceRight=v_,b.repeat=rw,b.replace=iw,b.result=N2,b.round=Xw,b.runInContext=q,b.sample=y_,b.size=b_,b.snakeCase=ow,b.some=x_,b.sortedIndex=_y,b.sortedIndexBy=wy,b.sortedIndexOf=by,b.sortedLastIndex=xy,b.sortedLastIndexBy=Cy,b.sortedLastIndexOf=Sy,b.startCase=aw,b.startsWith=lw,b.subtract=eb,b.sum=tb,b.sumBy=nb,b.template=uw,b.times=jw,b.toFinite=qn,b.toInteger=We,b.toLength=eh,b.toLower=cw,b.toNumber=pn,b.toSafeInteger=c2,b.toString=tt,b.toUpper=fw,b.trim=hw,b.trimEnd=dw,b.trimStart=pw,b.truncate=gw,b.unescape=vw,b.uniqueId=Fw,b.upperCase=mw,b.upperFirst=Ha,b.each=Yf,b.eachRight=Ff,b.first=If,Ka(b,function(){var e={};return kn(b,function(t,o){rt.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),ln(["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__=Tt(o,a.__takeCount__):a.__views__.push({size:Tt(o,v),type:e+(a.__dir__<0?"Right":"")}),a},Ge.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),ln(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==N||o==D;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}}),ln(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[o](1).value()[0]}}),ln(["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(Gt)},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 Di(o,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Ko(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)},kn(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=b[a?"take"+(t=="last"?"Right":""):t],x=a||/^find/.test(t);y&&(b.prototype[t]=function(){var P=this.__wrapped__,j=a?[1]:arguments,H=P instanceof Ge,de=j[0],ge=H||Fe(P),we=function(He){var Ke=y.apply(b,or([He],j));return a&&Ee?Ke[0]:Ke};ge&&o&&typeof de=="function"&&de.length!=1&&(H=ge=!1);var Ee=this.__chain__,ke=!!this.__actions__.length,Ie=x&&!Ee,Ue=H&&!ke;if(!x&&ge){P=Ue?P:new Ge(this);var $e=e.apply(P,j);return $e.__actions__.push({func:qo,args:[we],thisArg:r}),new cn($e,Ee)}return Ie&&Ue?e.apply(this,j):($e=this.thru(we),Ie?a?$e.value()[0]:$e.value():$e)})}),ln(["pop","push","shift","sort","splice","unshift"],function(e){var t=mo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);b.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)})}}),kn(Ge.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";rt.call(zr,a)||(zr[a]=[]),zr[a].push({name:t,func:o})}}),zr[Bo(r,ie).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=vv,Ge.prototype.reverse=mv,Ge.prototype.value=yv,b.prototype.at=Gy,b.prototype.chain=Vy,b.prototype.commit=Ky,b.prototype.next=Zy,b.prototype.plant=Jy,b.prototype.reverse=Xy,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=e_,b.prototype.first=b.prototype.head,yi&&(b.prototype[yi]=Qy),b},Fr=K0();vr?((vr.exports=Fr)._=Fr,Vs._=Fr):Ot._=Fr}).call(I1)}(hi,hi.exports)),hi.exports}var Ku=$1();function B1(i){const n=gn.c(41),{fields:r,onClose:s,queryKey:u,apiPath:g,id:m,steps:f}=i,[C,A]=ve.useState(0),[E,L]=ve.useState(!1),{data:M,isLoading:k}=hu(g,u,m),{mutateAsync:I,isError:B,error:G,isPending:ie}=Ds(g,u);let se;n[0]!==r?(se=new Set(r.filter(q1).map(z1)),n[0]=r,n[1]=se):se=n[1];let ae;n[2]!==se?(ae=[...se],n[2]=se,n[3]=ae):ae=n[3];const le=ae;let Q;n[4]!==r?(Q=r.reduce(U1,{}),n[4]=r,n[5]=Q):Q=n[5];let ue;n[6]!==r?(ue=r.filter(W1).reduce(Y1,{}),n[6]=r,n[7]=ue):ue=n[7];let Z;n[8]!==Q||n[9]!==ue?(Z={mode:"uncontrolled",initialValues:Q,validate:ue},n[8]=Q,n[9]=ue,n[10]=Z):Z=n[10];const V=Xa.useForm(Z);let pe;n[11]!==M||n[12]!==r||n[13]!==V?(pe=()=>{if(M){const D=r.reduce((p,d)=>{const w=d.id;return p[w]=Array.isArray(M[w])?M[w]:d.type==="boolean"?M[w]??!1:d.type==="date"?M[w]?new Date(M[w]):"":M[w]??"",p},{});V.initialize(D),V.setValues(D)}},n[11]=M,n[12]=r,n[13]=V,n[14]=pe):pe=n[14];let fe;n[15]!==M?(fe=[M],n[15]=M,n[16]=fe):fe=n[16],ve.useEffect(pe,fe);let re;n[17]!==V||n[18]!==m?(re=function(p){return O.jsxs(ve.Fragment,{children:[(p.type===void 0||p.type=="text")&&O.jsx(F.TextInput,{label:p.column.title,placeholder:p.placeholder??"",...V.getInputProps(p.id),type:p.id.includes("email")?"email":void 0},V.key(p.id)),p.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:p.column.title,placeholder:p.placeholder??"",...V.getInputProps(p.id)},V.key(p.id)),p.type==="date"&&O.jsx(oo,{label:p.column.title,placeholder:p.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...V.getInputProps(p.id)},V.key(p.id)),p.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:p.column.title,...V.getInputProps(p.id,{type:"checkbox"})},V.key(p.id)),p.type==="custom"&&p.render&&p.render({...V.getValues(),id:m},V.setValues,L)]},p.id)},n[17]=V,n[18]=m,n[19]=re):re=n[19];const Oe=re;let De;n[20]!==B||n[21]!==G?.message||n[22]!==G?.name?(De=B&&O.jsx(F.Alert,{variant:"outline",color:"red",title:G?.name??"Fehler aufgetreten",mb:"lg",children:G?.message??"Fehler aufgetreten"}),n[20]=B,n[21]=G?.message,n[22]=G?.name,n[23]=De):De=n[23];let N;n[24]!==C||n[25]!==r||n[26]!==V||n[27]!==E||n[28]!==m||n[29]!==k||n[30]!==ie||n[31]!==B||n[32]!==s||n[33]!==Oe||n[34]!==f||n[35]!==le||n[36]!==I?(N=k?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 D=>{await I({...D,id:m}),le.length&&C<le.length-1?B||A(C+1):B||(V.setInitialValues(D),V.reset(),s())}),children:[le.length?O.jsx(F.Stepper,{active:C,size:"sm",children:le.map(D=>O.jsx(F.Stepper.Step,{...f&&f[D-1]?{label:f[D-1].label}:{},children:r.filter(p=>p.step===D).map(p=>Oe(p))},D))}):r.map(D=>Oe(D)),!E&&O.jsxs(F.Group,{mt:"md",justify:"end",children:[O.jsx(F.Button,{onClick:()=>le.length?C===0?s():A(C-1):s(),variant:"outline",children:le.length?C===0?"Abbrechen":"Zurück":"Abbrechen"}),O.jsx(F.Button,{type:"submit",loading:ie,children:le.length?C===le.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[24]=C,n[25]=r,n[26]=V,n[27]=E,n[28]=m,n[29]=k,n[30]=ie,n[31]=B,n[32]=s,n[33]=Oe,n[34]=f,n[35]=le,n[36]=I,n[37]=N):N=n[37];let R;return n[38]!==N||n[39]!==De?(R=O.jsxs(O.Fragment,{children:[De,N]}),n[38]=N,n[39]=De,n[40]=R):R=n[40],R}function j1(i,n){return O.jsx(F.Skeleton,{height:35},`skeleton-field-${n}`)}function Y1(i,n){return i[n.id]=F1,i}function F1(i){return i?null:"Pflichtfeld"}function W1(i){return i.required}function U1(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function z1(i){return i.step}function q1(i){return typeof i.step=="number"}function H1({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:u,isError:g,error:m,isPending:f}=gu(n,i),[C,A]=ve.useState(s),[E,L]=ve.useState(!1),M=E||f;return ve.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:M,children:"Abbrechen"}),O.jsx(F.Button,{color:"red",loading:M,onClick:async()=>{L(!0);try{await Promise.all(C.map(k=>u(k.id))),A([])}finally{L(!1)}},children:"Löschen"})]})]}):O.jsx(O.Fragment,{})}function Zu(i,n){const r=gn.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const A=localStorage.getItem(`use_persistent_storage_${n}`);return A?JSON.parse(A):i},r[0]=i,r[1]=n,r[2]=s):s=r[2];const[u,g]=ve.useState(s);let m;r[3]!==n?(m=A=>{g(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=m):m=r[4];const f=m;let C;return r[5]!==f||r[6]!==u?(C=[u,f],r[5]=f,r[6]=u,r[7]=C):C=r[7],C}const Qu=[10,15,20,50,100,500];function G1(i){const n=gn.c(140),{title:r,queryKey:s,connectedQueryKeys:u,apiPath:g,buttons:m,fields:f,selection:C,pagination:A,filters:E,actions:L,steps:M,defaultSort:k,createButtonText:I,queryParams:B,tabs:G,defaultTab:ie}=i,[se,ae]=ve.useState(ie||(G&&G.length>0?G[0].value:null));let le,Q;if(n[0]!==se||n[1]!==B||n[2]!==G){const Je=G?.find(_t=>_t.value===se)?.queryParams||{};le={...B,...Je},Q=le?"?"+Object.entries(le).filter(i0).map(r0).join("&"):"",n[0]=se,n[1]=B,n[2]=G,n[3]=le,n[4]=Q}else le=n[3],Q=n[4];const ue=Q,{data:Z,isLoading:V,isError:pe,isRefetching:fe,refetch:re}=du(g+ue,s);let Oe;n[5]===Symbol.for("react.memo_cache_sentinel")?(Oe=[],n[5]=Oe):Oe=n[5];const[De,N]=ve.useState(Oe),{queryClient:R}=Kn();let D;n[6]!==Z||n[7]!==u||n[8]!==E||n[9]!==R?(D=()=>{if(!(!Z||!Array.isArray(Z))){if(u?.forEach(Je=>R.invalidateQueries({queryKey:Je})),!E||E.length===0){N(Z);return}N(Z.filter(Je=>E.every(_t=>{if(_t.value===void 0)return!0;const xn=_t.id;if(_t.type==="query"){const In=Je[xn];return typeof In=="string"&&In.includes(_t.value)}else if(_t.type==="date"){const In=_t.value,[er,tr]=In;if(er&&tr){const Ct=Je[xn];if(typeof Ct=="string"){const En=new Date(Ct);return En>=er&&En<=tr}}return!0}else if(_t.type==="boolean")return Je[xn]===_t.value;return!0})))}},n[6]=Z,n[7]=u,n[8]=E,n[9]=R,n[10]=D):D=n[10];let p;n[11]!==Z||n[12]!==le||n[13]!==E?(p=[Z,E,le],n[11]=Z,n[12]=le,n[13]=E,n[14]=p):p=n[14],ve.useEffect(D,p);const d=k?.field??f[0].id,w=k?.direction??"desc";let h;n[15]!==d||n[16]!==w?(h={columnAccessor:d,direction:w},n[15]=d,n[16]=w,n[17]=h):h=n[17];const[v,S]=ve.useState(h);let Y;n[18]!==De||n[19]!==k?.direction||n[20]!==k?.field||n[21]!==f[0]?(Y=()=>{const Je=Ku.sortBy(De,k?.field??f[0].id);return k?.direction==="asc"?Je:Je.reverse()},n[18]=De,n[19]=k?.direction,n[20]=k?.field,n[21]=f[0],n[22]=Y):Y=n[22];const[U,oe]=ve.useState(Y);let ce;n[23]!==De||n[24]!==v.columnAccessor||n[25]!==v.direction?(ce=()=>{const Je=Ku.sortBy(De,v.columnAccessor);oe(v.direction==="desc"?Je.reverse():Je)},n[23]=De,n[24]=v.columnAccessor,n[25]=v.direction,n[26]=ce):ce=n[26];let _e;n[27]!==De||n[28]!==v?(_e=[v,De],n[27]=De,n[28]=v,n[29]=_e):_e=n[29],ve.useEffect(ce,_e);const[X,ye]=Zu(Qu[1],"mantine-table-page-size"),[me,xe]=ve.useState(1);let $;n[30]!==X||n[31]!==A||n[32]!==U?($=A?U.slice(0,X):U,n[30]=X,n[31]=A,n[32]=U,n[33]=$):$=n[33];const[K,W]=ve.useState($);let J;n[34]===Symbol.for("react.memo_cache_sentinel")?(J=()=>{xe(1)},n[34]=J):J=n[34];let ee;n[35]!==X?(ee=[X],n[35]=X,n[36]=ee):ee=n[36],ve.useEffect(J,ee);let Se,l;n[37]!==me||n[38]!==X||n[39]!==A||n[40]!==U?(Se=()=>{if(A){const Je=(me-1)*X,_t=Je+X;W(U.slice(Je,_t))}else W(U)},l=[me,U,A,X],n[37]=me,n[38]=X,n[39]=A,n[40]=U,n[41]=Se,n[42]=l):(Se=n[41],l=n[42]),ve.useEffect(Se,l);let c;n[43]===Symbol.for("react.memo_cache_sentinel")?(c=[],n[43]=c):c=n[43];const[_,T]=ve.useState(c);let z;n[44]!==_||n[45]!==C||n[46]!==U?(z=()=>{C&&T(U.filter(Je=>_.some(_t=>_t.id===Je.id)))},n[44]=_,n[45]=C,n[46]=U,n[47]=z):z=n[47];let te;n[48]!==U?(te=[U],n[48]=U,n[49]=te):te=n[49],ve.useEffect(z,te);let Ae;n[50]===Symbol.for("react.memo_cache_sentinel")?(Ae=()=>{T([])},n[50]=Ae):Ae=n[50];let be;n[51]!==se?(be=[se],n[51]=se,n[52]=be):be=n[52],ve.useEffect(Ae,be);const[Pe,Ce]=ve.useState(!1),[Le,Be]=ve.useState(!1),[Re,nt]=ve.useState(!1),et=r?"space-between":"end";let Ze;n[53]!==r?(Ze=r&&(typeof r=="string"?O.jsx(F.Title,{order:4,children:r}):r),n[53]=r,n[54]=Ze):Ze=n[54];let wt;n[55]!==re?(wt=()=>re(),n[55]=re,n[56]=wt):wt=n[56];let ht;n[57]===Symbol.for("react.memo_cache_sentinel")?(ht=O.jsx(Qr.IconRefresh,{}),n[57]=ht):ht=n[57];let Qe;n[58]!==wt?(Qe=O.jsx(F.ActionIcon,{variant:"subtle",onClick:wt,"aria-label":"Neuladen",children:ht}),n[58]=wt,n[59]=Qe):Qe=n[59];let jt;n[60]!==L||n[61]!==f||n[62]!==_||n[63]!==C?(jt=(f.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(Qr.IconCaretDownFilled,{size:14}),disabled:!_.length,children:"Aktionen"})}),O.jsxs(F.Menu.Dropdown,{children:[f.find(t0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(Qr.IconPencil,{size:14}),onClick:()=>Be(!0),disabled:_.length!==1,children:"Bearbeiten"}),(L??[]).map((Je,_t)=>ve.createElement(F.Menu.Item,{...Je.icon&&{leftSection:Je.icon},key:`custom_action_${_t}`,onClick:()=>Je.onClick(_)},Je.label)),f.find(e0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(Qr.IconTrash,{size:14}),onClick:()=>nt(!0),color:"red",children:"Löschen"})]})]}),n[60]=L,n[61]=f,n[62]=_,n[63]=C,n[64]=jt):jt=n[64];let mt;n[65]!==I||n[66]!==f||n[67]!==V?(mt=f.find(X1)&&O.jsx(F.Button,{onClick:()=>Ce(!0),disabled:V,children:I??"Erstellen"}),n[65]=I,n[66]=f,n[67]=V,n[68]=mt):mt=n[68];let Yt;n[69]!==m||n[70]!==Qe||n[71]!==jt||n[72]!==mt?(Yt=O.jsxs(F.Group,{align:"center",gap:"xs",children:[Qe,jt,mt,m]}),n[69]=m,n[70]=Qe,n[71]=jt,n[72]=mt,n[73]=Yt):Yt=n[73];let At;n[74]!==et||n[75]!==Ze||n[76]!==Yt?(At=O.jsxs(F.Group,{gap:"xs",justify:et,align:"center",children:[Ze,Yt]}),n[74]=et,n[75]=Ze,n[76]=Yt,n[77]=At):At=n[77];let Ft;n[78]!==se||n[79]!==G?(Ft=G&&G.length>0&&O.jsx(F.Tabs,{value:se,onChange:ae,mt:"md",children:O.jsx(F.Tabs.List,{children:G.map(J1)})}),n[78]=se,n[79]=G,n[80]=Ft):Ft=n[80];let Vt;n[81]!==pe?(Vt=pe&&O.jsx(F.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:O.jsx(Qr.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[81]=pe,n[82]=Vt):Vt=n[82];let yt;n[83]!==V||n[84]!==fe?(yt=(V||fe)&&O.jsxs(F.Stack,{my:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[83]=V,n[84]=fe,n[85]=yt):yt=n[85];let sn;n[86]!==f||n[87]!==pe||n[88]!==V||n[89]!==fe||n[90]!==me||n[91]!==X||n[92]!==A||n[93]!==K||n[94]!==_||n[95]!==C||n[96]!==ye||n[97]!==v||n[98]!==U?(sn=!V&&!fe&&O.jsx(N1,{my:"md",striped:!0,minHeight:150,fetching:pe,records:K,sortStatus:v,onSortStatusChange:S,...C&&{selectedRecords:_,onSelectedRecordsChange:T},...A&&K.length&&{totalRecords:U.length,recordsPerPage:X,onPageChange:xe,page:me,recordsPerPageOptions:Qu,onRecordsPerPageChange:ye,recordsPerPageLabel:"Einträge pro Seite"},columns:f.map(Z1),noRecordsText:"Keine Einträge gefunden"}),n[86]=f,n[87]=pe,n[88]=V,n[89]=fe,n[90]=me,n[91]=X,n[92]=A,n[93]=K,n[94]=_,n[95]=C,n[96]=ye,n[97]=v,n[98]=U,n[99]=sn):sn=n[99];let On;n[100]===Symbol.for("react.memo_cache_sentinel")?(On=()=>{Be(!1),T([])},n[100]=On):On=n[100];const _n=r??"Bearbeiten";let Lt;n[101]!==g||n[102]!==f||n[103]!==s||n[104]!==_[0]||n[105]!==_.length||n[106]!==M?(Lt=_.length>0&&O.jsx(B1,{fields:f.filter(K1),queryKey:s,apiPath:g,id:_[0].id,onClose:()=>{Be(!1),T([])},steps:M}),n[101]=g,n[102]=f,n[103]=s,n[104]=_[0],n[105]=_.length,n[106]=M,n[107]=Lt):Lt=n[107];let Wt;n[108]!==_n||n[109]!==Lt||n[110]!==Le?(Wt=O.jsx(F.Modal,{opened:Le,onClose:On,title:_n,children:Lt}),n[108]=_n,n[109]=Lt,n[110]=Le,n[111]=Wt):Wt=n[111];let Ut;n[112]!==g||n[113]!==Re||n[114]!==s||n[115]!==_||n[116]!==r?(Ut=_.length>0&&O.jsx(F.Modal,{opened:Re,onClose:()=>{nt(!1),T([])},title:r??"Löschen",children:O.jsx(H1,{onClose:()=>{nt(!1),T([])},queryKey:s,apiPath:g,selectedRecords:_})}),n[112]=g,n[113]=Re,n[114]=s,n[115]=_,n[116]=r,n[117]=Ut):Ut=n[117];let wn;n[118]===Symbol.for("react.memo_cache_sentinel")?(wn=()=>{Ce(!1)},n[118]=wn):wn=n[118];const bn=r??"Anlegen";let ze;n[119]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{Ce(!1)},n[119]=ze):ze=n[119];let it;n[120]!==f?(it=f.filter(V1),n[120]=f,n[121]=it):it=n[121];let Nt;n[122]!==g||n[123]!==s||n[124]!==M||n[125]!==it?(Nt=O.jsx(Yg,{queryKey:s,apiPath:g,onClose:ze,fields:it,steps:M}),n[122]=g,n[123]=s,n[124]=M,n[125]=it,n[126]=Nt):Nt=n[126];let Kt;n[127]!==Pe||n[128]!==bn||n[129]!==Nt?(Kt=O.jsx(F.Modal,{opened:Pe,onClose:wn,title:bn,children:Nt}),n[127]=Pe,n[128]=bn,n[129]=Nt,n[130]=Kt):Kt=n[130];let Xn;return n[131]!==At||n[132]!==Ft||n[133]!==Vt||n[134]!==yt||n[135]!==sn||n[136]!==Wt||n[137]!==Ut||n[138]!==Kt?(Xn=O.jsxs(O.Fragment,{children:[At,Ft,Vt,yt,sn,Wt,Ut,Kt]}),n[131]=At,n[132]=Ft,n[133]=Vt,n[134]=yt,n[135]=sn,n[136]=Wt,n[137]=Ut,n[138]=Kt,n[139]=Xn):Xn=n[139],Xn}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=gn.c(5),{queryClient:r}=Kn();let s;n[0]!==i?(s=O.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let u;return n[2]!==r||n[3]!==s?(u=O.jsx(yl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=u):u=n[4],u}st.DataTable=o0,st.DataTableProvider=jp,st.api=Fp,st.createOne=cu,st.deleteOne=uu,st.getAll=au,st.getApiHeaders=pr,st.getOne=lu,st.updateOne=fu,st.useAddOne=pu,st.useDataTable=Kn,st.useDeleteOne=gu,st.useGetAll=du,st.useGetOne=hu,st.usePersistentState=Zu,st.useUpdateOne=Ds,Object.defineProperty(st,Symbol.toStringTag,{value:"Module"})});
|
|
142
|
+
`)+xe+`return __p
|
|
143
|
+
}`;var Ue=ch(function(){return Je(x,Le+"return "+xe).apply(r,P)});if(Ue.source=xe,Wa(Ue))throw Ue;return Ue}function cw(e){return et(e).toLowerCase()}function fw(e){return et(e).toUpperCase()}function hw(e,t,o){if(e=et(e),e&&(o||t===r))return yc(e);if(!e||!(t=Xt(t)))return e;var a=En(e),y=En(t),x=_c(a,y),P=wc(a,y)+1;return pr(a,x,P).join("")}function dw(e,t,o){if(e=et(e),e&&(o||t===r))return e.slice(0,xc(e)+1);if(!e||!(t=Xt(t)))return e;var a=En(e),y=wc(a,En(t))+1;return pr(a,0,y).join("")}function pw(e,t,o){if(e=et(e),e&&(o||t===r))return e.replace(at,"");if(!e||!(t=Xt(t)))return e;var a=En(e),y=_c(a,En(t));return pr(a,y).join("")}function gw(e,t){var o=he,a=ae;if(ft(t)){var y="separator"in t?t.separator:y;o="length"in t?We(t.length):o,a="omission"in t?Xt(t.omission):a}e=et(e);var x=e.length;if(Wr(e)){var P=En(e);x=P.length}if(o>=x)return e;var j=o-Ur(a);if(j<1)return a;var q=P?pr(P,0,j).join(""):e.slice(0,j);if(y===r)return q+a;if(P&&(j+=q.length-j),Ua(y)){if(e.slice(j).search(y)){var pe,ge=q;for(y.global||(y=oa(y.source,et(hn.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(Xt(y),j)!=j){var Ee=q.lastIndexOf(y);Ee>-1&&(q=q.slice(0,Ee))}return q+a}function vw(e){return e=et(e),e&&yt.test(e)?e.replace(jt,q0):e}var mw=Zr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ha=ff("toUpperCase");function uh(e,t,o){return e=et(e),t=o?r:t,t===r?Y0(e)?V0(e):M0(e):e.match(t)||[]}var ch=qe(function(e,t){try{return Qt(e,r,t)}catch(o){return Wa(o)?o:new Ye(o)}}),yw=Vn(function(e,t){return pn(t,function(o){o=jn(o),Hn(e,o,Ya(e[o],e))}),e});function _w(e){var t=e==null?0:e.length,o=Ne();return e=t?ut(e,function(a){if(typeof a[1]!="function")throw new gn(v);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var x=e[y];if(Qt(x[0],this,a))return Qt(x[1],this,a)}})}function ww(e){return qv(mn(e,N))}function Ga(e){return function(){return e}}function bw(e,t){return e==null||e!==e?t:e}var xw=df(),Cw=df(!0);function Vt(e){return e}function Va(e){return Wc(typeof e=="function"?e:mn(e,N))}function Sw(e){return zc(mn(e,N))}function Aw(e,t){return qc(e,mn(t,N))}var Dw=qe(function(e,t){return function(o){return Ei(o,e,t)}}),Ow=qe(function(e,t){return function(o){return Ei(e,o,t)}});function Ka(e,t,o){var a=xt(t),y=Io(t,a);o==null&&!(ft(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Io(t,xt(t)));var x=!(ft(o)&&"chain"in o)||!!o.chain,P=Zn(e);return pn(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__=qt(this.__actions__);return xe.push({func:q,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return q.apply(e,lr([this.value()],arguments))})}),e}function Ew(){return Dt._===this&&(Dt._=ev),this}function Za(){}function Tw(e){return e=We(e),qe(function(t){return Hc(t,e)})}var Pw=Oa(ut),Mw=Oa(dc),Rw=Oa(Js);function fh(e){return La(e)?Xs(jn(e)):lm(e)}function kw(e){return function(t){return e==null?r:Ar(e,t)}}var Lw=gf(),Nw=gf(!0);function Qa(){return[]}function Ja(){return!1}function Iw(){return{}}function $w(){return""}function Bw(){return!0}function jw(e,t){if(e=We(e),e<1||e>d)return[];var o=m,a=Tt(e,m);t=Ne(t),e-=m;for(var y=na(a,t);++o<e;)t(o);return y}function Yw(e){return Fe(e)?ut(e,jn):en(e)?[e]:qt(Mf(et(e)))}function Fw(e){var t=++J0;return et(e)+t}var Ww=Wo(function(e,t){return e+t},0),Uw=Ea("ceil"),zw=Wo(function(e,t){return e/t},1),qw=Ea("floor");function Hw(e){return e&&e.length?No(e,Vt,da):r}function Gw(e,t){return e&&e.length?No(e,Ne(t,2),da):r}function Vw(e){return vc(e,Vt)}function Kw(e,t){return vc(e,Ne(t,2))}function Zw(e){return e&&e.length?No(e,Vt,ma):r}function Qw(e,t){return e&&e.length?No(e,Ne(t,2),ma):r}var Jw=Wo(function(e,t){return e*t},1),Xw=Ea("round"),eb=Wo(function(e,t){return e-t},0);function tb(e){return e&&e.length?ta(e,Vt):0}function nb(e,t){return e&&e.length?ta(e,Ne(t,2)):0}return b.after=S_,b.ary=Wf,b.assign=f2,b.assignIn=nh,b.assignInWith=ts,b.assignWith=h2,b.at=d2,b.before=Uf,b.bind=Ya,b.bindAll=yw,b.bindKey=zf,b.castArray=I_,b.chain=jf,b.chunk=qm,b.compact=Hm,b.concat=Gm,b.cond=_w,b.conforms=ww,b.constant=Ga,b.countBy=t_,b.create=p2,b.curry=qf,b.curryRight=Hf,b.debounce=Gf,b.defaults=g2,b.defaultsDeep=v2,b.defer=A_,b.delay=D_,b.difference=Vm,b.differenceBy=Km,b.differenceWith=Zm,b.drop=Qm,b.dropRight=Jm,b.dropRightWhile=Xm,b.dropWhile=ey,b.fill=ty,b.filter=r_,b.flatMap=s_,b.flatMapDeep=a_,b.flatMapDepth=l_,b.flatten=Nf,b.flattenDeep=ny,b.flattenDepth=ry,b.flip=O_,b.flow=xw,b.flowRight=Cw,b.fromPairs=iy,b.functions=C2,b.functionsIn=S2,b.groupBy=u_,b.initial=sy,b.intersection=ay,b.intersectionBy=ly,b.intersectionWith=uy,b.invert=D2,b.invertBy=O2,b.invokeMap=f_,b.iteratee=Va,b.keyBy=h_,b.keys=xt,b.keysIn=Gt,b.map=Ko,b.mapKeys=T2,b.mapValues=P2,b.matches=Sw,b.matchesProperty=Aw,b.memoize=Qo,b.merge=M2,b.mergeWith=rh,b.method=Dw,b.methodOf=Ow,b.mixin=Ka,b.negate=Jo,b.nthArg=Tw,b.omit=R2,b.omitBy=k2,b.once=E_,b.orderBy=d_,b.over=Pw,b.overArgs=T_,b.overEvery=Mw,b.overSome=Rw,b.partial=Fa,b.partialRight=Vf,b.partition=p_,b.pick=L2,b.pickBy=ih,b.property=fh,b.propertyOf=kw,b.pull=dy,b.pullAll=$f,b.pullAllBy=py,b.pullAllWith=gy,b.pullAt=vy,b.range=Lw,b.rangeRight=Nw,b.rearg=P_,b.reject=m_,b.remove=my,b.rest=M_,b.reverse=Ba,b.sampleSize=__,b.set=I2,b.setWith=$2,b.shuffle=w_,b.slice=yy,b.sortBy=C_,b.sortedUniq=Ay,b.sortedUniqBy=Dy,b.split=sw,b.spread=R_,b.tail=Oy,b.take=Ey,b.takeRight=Ty,b.takeRightWhile=Py,b.takeWhile=My,b.tap=Hy,b.throttle=k_,b.thru=Vo,b.toArray=Xf,b.toPairs=oh,b.toPairsIn=sh,b.toPath=Yw,b.toPlainObject=th,b.transform=B2,b.unary=L_,b.union=Ry,b.unionBy=ky,b.unionWith=Ly,b.uniq=Ny,b.uniqBy=Iy,b.uniqWith=$y,b.unset=j2,b.unzip=ja,b.unzipWith=Bf,b.update=Y2,b.updateWith=F2,b.values=Xr,b.valuesIn=W2,b.without=By,b.words=uh,b.wrap=N_,b.xor=jy,b.xorBy=Yy,b.xorWith=Fy,b.zip=Wy,b.zipObject=Uy,b.zipObjectDeep=zy,b.zipWith=qy,b.entries=oh,b.entriesIn=sh,b.extend=nh,b.extendWith=ts,Ka(b,b),b.add=Ww,b.attempt=ch,b.camelCase=H2,b.capitalize=ah,b.ceil=Uw,b.clamp=U2,b.clone=$_,b.cloneDeep=j_,b.cloneDeepWith=Y_,b.cloneWith=B_,b.conformsTo=F_,b.deburr=lh,b.defaultTo=bw,b.divide=zw,b.endsWith=G2,b.eq=Pn,b.escape=V2,b.escapeRegExp=K2,b.every=n_,b.find=i_,b.findIndex=kf,b.findKey=m2,b.findLast=o_,b.findLastIndex=Lf,b.findLastKey=y2,b.floor=qw,b.forEach=Yf,b.forEachRight=Ff,b.forIn=_2,b.forInRight=w2,b.forOwn=b2,b.forOwnRight=x2,b.get=za,b.gt=W_,b.gte=U_,b.has=A2,b.hasIn=qa,b.head=If,b.identity=Vt,b.includes=c_,b.indexOf=oy,b.inRange=z2,b.invoke=E2,b.isArguments=Er,b.isArray=Fe,b.isArrayBuffer=z_,b.isArrayLike=Ht,b.isArrayLikeObject=gt,b.isBoolean=q_,b.isBuffer=gr,b.isDate=H_,b.isElement=G_,b.isEmpty=V_,b.isEqual=K_,b.isEqualWith=Z_,b.isError=Wa,b.isFinite=Q_,b.isFunction=Zn,b.isInteger=Kf,b.isLength=Xo,b.isMap=Zf,b.isMatch=J_,b.isMatchWith=X_,b.isNaN=e2,b.isNative=t2,b.isNil=r2,b.isNull=n2,b.isNumber=Qf,b.isObject=ft,b.isObjectLike=dt,b.isPlainObject=Li,b.isRegExp=Ua,b.isSafeInteger=i2,b.isSet=Jf,b.isString=es,b.isSymbol=en,b.isTypedArray=Jr,b.isUndefined=o2,b.isWeakMap=s2,b.isWeakSet=a2,b.join=cy,b.kebabCase=Z2,b.last=_n,b.lastIndexOf=fy,b.lowerCase=Q2,b.lowerFirst=J2,b.lt=l2,b.lte=u2,b.max=Hw,b.maxBy=Gw,b.mean=Vw,b.meanBy=Kw,b.min=Zw,b.minBy=Qw,b.stubArray=Qa,b.stubFalse=Ja,b.stubObject=Iw,b.stubString=$w,b.stubTrue=Bw,b.multiply=Jw,b.nth=hy,b.noConflict=Ew,b.noop=Za,b.now=Zo,b.pad=X2,b.padEnd=ew,b.padStart=tw,b.parseInt=nw,b.random=q2,b.reduce=g_,b.reduceRight=v_,b.repeat=rw,b.replace=iw,b.result=N2,b.round=Xw,b.runInContext=z,b.sample=y_,b.size=b_,b.snakeCase=ow,b.some=x_,b.sortedIndex=_y,b.sortedIndexBy=wy,b.sortedIndexOf=by,b.sortedLastIndex=xy,b.sortedLastIndexBy=Cy,b.sortedLastIndexOf=Sy,b.startCase=aw,b.startsWith=lw,b.subtract=eb,b.sum=tb,b.sumBy=nb,b.template=uw,b.times=jw,b.toFinite=Qn,b.toInteger=We,b.toLength=eh,b.toLower=cw,b.toNumber=wn,b.toSafeInteger=c2,b.toString=et,b.toUpper=fw,b.trim=hw,b.trimEnd=dw,b.trimStart=pw,b.truncate=gw,b.unescape=vw,b.uniqueId=Fw,b.upperCase=mw,b.upperFirst=Ha,b.each=Yf,b.eachRight=Ff,b.first=If,Ka(b,function(){var e={};return $n(b,function(t,o){tt.call(b.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),b.VERSION=s,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),pn(["drop","take"],function(e,t){Ge.prototype[e]=function(o){o=o===r?1:bt(We(o),0);var a=this.__filtered__&&!t?new Ge(this):this.clone();return a.__filtered__?a.__takeCount__=Tt(o,a.__takeCount__):a.__views__.push({size:Tt(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Ge.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),pn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==k||o==A;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}}),pn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ge.prototype[e]=function(){return this[o](1).value()[0]}}),pn(["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(Vt)},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 Ei(o,e,t)})}),Ge.prototype.reject=function(e){return this.filter(Jo(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(m)},$n(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=b[a?"take"+(t=="last"?"Right":""):t],x=a||/^find/.test(t);y&&(b.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(b,lr([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:Vo,args:[xe],thisArg:r}),new vn(Be,Ee)}return $e&&Ue?e.apply(this,j):(Be=this.thru(xe),$e?a?Be.value()[0]:Be.value():Be)})}),pn(["pop","push","shift","sort","splice","unshift"],function(e){var t=wo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);b.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)})}}),$n(Ge.prototype,function(e,t){var o=b[t];if(o){var a=o.name+"";tt.call(Gr,a)||(Gr[a]=[]),Gr[a].push({name:t,func:o})}}),Gr[Fo(r,oe).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=vv,Ge.prototype.reverse=mv,Ge.prototype.value=yv,b.prototype.at=Gy,b.prototype.chain=Vy,b.prototype.commit=Ky,b.prototype.next=Zy,b.prototype.plant=Jy,b.prototype.reverse=Xy,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=e_,b.prototype.first=b.prototype.head,bi&&(b.prototype[bi]=Qy),b},zr=K0();wr?((wr.exports=zr)._=zr,Vs._=zr):Dt._=zr}).call(I1)}(gi,gi.exports)),gi.exports}var Ku=$1();function B1(i){const n=bn.c(41),{fields:r,onClose:s,queryKey:u,apiPath:g,id:v,steps:h}=i,[C,D]=ye.useState(0),[E,N]=ye.useState(!1),{data:M,isLoading:L}=hu(g,u,v),{mutateAsync:I,isError:$,error:H,isPending:oe}=Es(g,u);let le;n[0]!==r?(le=new Set(r.filter(q1).map(z1)),n[0]=r,n[1]=le):le=n[1];let se;n[2]!==le?(se=[...le],n[2]=le,n[3]=se):se=n[3];const ce=se;let Q;n[4]!==r?(Q=r.reduce(U1,{}),n[4]=r,n[5]=Q):Q=n[5];let ne;n[6]!==r?(ne=r.filter(W1).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 K=Xa.useForm(J);let de;n[11]!==M||n[12]!==r||n[13]!==K?(de=()=>{if(M){const A=r.reduce((p,d)=>{const w=d.id;return p[w]=Array.isArray(M[w])?M[w]:d.type==="boolean"?M[w]??!1:d.type==="date"?M[w]?new Date(M[w]):"":M[w]??"",p},{});K.initialize(A),K.setValues(A)}},n[11]=M,n[12]=r,n[13]=K,n[14]=de):de=n[14];let he;n[15]!==M?(he=[M],n[15]=M,n[16]=he):he=n[16],ye.useEffect(de,he);let ae;n[17]!==K||n[18]!==v?(ae=function(p){return O.jsxs(ye.Fragment,{children:[(p.type===void 0||p.type=="text")&&O.jsx(F.TextInput,{label:p.column.title,placeholder:p.placeholder??"",...K.getInputProps(p.id),type:p.id.includes("email")?"email":void 0},K.key(p.id)),p.type==="number"&&O.jsx(F.NumberInput,{decimalSeparator:",",label:p.column.title,placeholder:p.placeholder??"",...K.getInputProps(p.id)},K.key(p.id)),p.type==="date"&&O.jsx(lo,{label:p.column.title,placeholder:p.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...K.getInputProps(p.id)},K.key(p.id)),p.type==="boolean"&&O.jsx(F.Checkbox,{mt:"md",label:p.column.title,...K.getInputProps(p.id,{type:"checkbox"})},K.key(p.id)),p.type==="custom"&&p.render&&p.render({...K.getValues(),id:v},K.setValues,N)]},p.id)},n[17]=K,n[18]=v,n[19]=ae):ae=n[19];const De=ae;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]!==K||n[27]!==E||n[28]!==v||n[29]!==L||n[30]!==oe||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:K.onSubmit(async A=>{await I({...A,id:v}),ce.length&&C<ce.length-1?$||D(C+1):$||(K.setInitialValues(A),K.reset(),s())}),children:[ce.length?O.jsx(F.Stepper,{active:C,size:"sm",children:ce.map(A=>O.jsx(F.Stepper.Step,{...h&&h[A-1]?{label:h[A-1].label}:{},children:r.filter(p=>p.step===A).map(p=>De(p))},A))}):r.map(A=>De(A)),!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:oe,children:ce.length?C===ce.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[24]=C,n[25]=r,n[26]=K,n[27]=E,n[28]=v,n[29]=L,n[30]=oe,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]=F1,i}function F1(i){return i?null:"Pflichtfeld"}function W1(i){return i.required}function U1(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function z1(i){return i.step}function q1(i){return typeof i.step=="number"}function H1({queryKey:i,apiPath:n,onClose:r,selectedRecords:s}){const{mutateAsync:u,isError:g,error:v,isPending:h}=gu(n,i),[C,D]=ye.useState(s),[E,N]=ye.useState(!1),M=E||h;return ye.useEffect(()=>{C.length||r()},[r,C]),C.length?O.jsxs(O.Fragment,{children:[g&&v.message&&O.jsx(F.Alert,{variant:"outline",color:"red",title:v.name,children:v.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:M,children:"Abbrechen"}),O.jsx(F.Button,{color:"red",loading:M,onClick:async()=>{N(!0);try{await Promise.all(C.map(L=>u(L.id))),D([])}finally{N(!1)}},children:"Löschen"})]})]}):O.jsx(O.Fragment,{})}function Zu(i,n){const r=bn.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[u,g]=ye.useState(s);let v;r[3]!==n?(v=D=>{g(D),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(D))},r[3]=n,r[4]=v):v=r[4];const h=v;let C;return r[5]!==h||r[6]!==u?(C=[u,h],r[5]=h,r[6]=u,r[7]=C):C=r[7],C}const Qu=[10,15,20,50,100,500];function G1(i){const n=bn.c(147),{title:r,queryKey:s,connectedQueryKeys:u,apiPath:g,buttons:v,fields:h,selection:C,pagination:D,filters:E,actions:N,steps:M,defaultSort:L,createButtonText:I,queryParams:$,tabs:H,defaultTab:oe,activeTab:le,onActiveTabChange:se}=i,[ce,Q]=ye.useState(oe||(H&&H.length>0?H[0].value:null)),ne=le!==void 0?le:ce;let J;n[0]!==le||n[1]!==se?(J=Ze=>{le===void 0&&Q(Ze),se&&se(Ze)},n[0]=le,n[1]=se,n[2]=J):J=n[2];const K=J;let de,he;if(n[3]!==ne||n[4]!==$||n[5]!==H){const Ze=H?.find(ct=>ct.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 ae=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:A,isRefetching:p,refetch:d}=du(g+ae,Oe);let w;n[11]===Symbol.for("react.memo_cache_sentinel")?(w=[],n[11]=w):w=n[11];const[f,m]=ye.useState(w),{queryClient:S}=tr();let Y;n[12]!==k||n[13]!==u||n[14]!==E||n[15]!==S?(Y=()=>{if(!(!k||!Array.isArray(k))){if(u?.forEach(Ze=>S.invalidateQueries({queryKey:Ze})),!E||E.length===0){m(k);return}m(k.filter(Ze=>E.every(ct=>{if(ct.value===void 0)return!0;const zt=ct.id;if(ct.type==="query"){const Yn=Ze[zt];return typeof Yn=="string"&&Yn.includes(ct.value)}else if(ct.type==="date"){const Yn=ct.value,[Rr,Fn]=Yn;if(Rr&&Fn){const kr=Ze[zt];if(typeof kr=="string"){const Wn=new Date(kr);return Wn>=Rr&&Wn<=Fn}}return!0}else if(ct.type==="boolean")return Ze[zt]===ct.value;return!0})))}},n[12]=k,n[13]=u,n[14]=E,n[15]=S,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 ie=L?.field??h[0].id,ue=L?.direction??"desc";let we;n[21]!==ie||n[22]!==ue?(we={columnAccessor:ie,direction:ue},n[21]=ie,n[22]=ue,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=Ku.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=Ku.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[V,ee]=Zu(Qu[1],"mantine-table-page-size"),[Se,l]=ye.useState(1);let c;n[36]!==V||n[37]!==D||n[38]!==ve?(c=D?ve.slice(0,V):ve,n[36]=V,n[37]=D,n[38]=ve,n[39]=c):c=n[39];const[_,R]=ye.useState(c);let U;n[40]===Symbol.for("react.memo_cache_sentinel")?(U=()=>{l(1)},n[40]=U):U=n[40];let te;n[41]!==V?(te=[V],n[41]=V,n[42]=te):te=n[42],ye.useEffect(U,te);let Ae,Ce;n[43]!==Se||n[44]!==V||n[45]!==D||n[46]!==ve?(Ae=()=>{if(D){const Ze=(Se-1)*V,ct=Ze+V;R(ve.slice(Ze,ct))}else R(ve)},Ce=[Se,ve,D,V],n[43]=Se,n[44]=V,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(ct=>ct.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[nt,Et]=ye.useState(!1),[pt,rt]=ye.useState(!1),[An,St]=ye.useState(!1),Dn=r?"space-between":"end";let At;n[59]!==r?(At=r&&(typeof r=="string"?O.jsx(F.Title,{order:4,children:r}):r),n[59]=r,n[60]=At):At=n[60];let jt;n[61]!==d?(jt=()=>d(),n[61]=d,n[62]=jt):jt=n[62];let On;n[63]===Symbol.for("react.memo_cache_sentinel")?(On=O.jsx(ei.IconRefresh,{}),n[63]=On):On=n[63];let yt;n[64]!==jt?(yt=O.jsx(F.ActionIcon,{variant:"subtle",onClick:jt,"aria-label":"Neuladen",children:On}),n[64]=jt,n[65]=yt):yt=n[65];let an;n[66]!==N||n[67]!==h||n[68]!==me||n[69]!==C?(an=(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(ei.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(ei.IconPencil,{size:14}),onClick:()=>rt(!0),disabled:me.length!==1,children:"Bearbeiten"}),(N??[]).map((Ze,ct)=>ye.createElement(F.Menu.Item,{...Ze.icon&&{leftSection:Ze.icon},key:`custom_action_${ct}`,onClick:()=>Ze.onClick(me)},Ze.label)),h.find(e0)&&O.jsx(F.Menu.Item,{leftSection:O.jsx(ei.IconTrash,{size:14}),onClick:()=>St(!0),color:"red",children:"Löschen"})]})]}),n[66]=N,n[67]=h,n[68]=me,n[69]=C,n[70]=an):an=n[70];let ln;n[71]!==I||n[72]!==h||n[73]!==T?(ln=h.find(X1)&&O.jsx(F.Button,{onClick:()=>Et(!0),disabled:T,children:I??"Erstellen"}),n[71]=I,n[72]=h,n[73]=T,n[74]=ln):ln=n[74];let Yt;n[75]!==v||n[76]!==yt||n[77]!==an||n[78]!==ln?(Yt=O.jsxs(F.Group,{align:"center",gap:"xs",children:[yt,an,ln,v]}),n[75]=v,n[76]=yt,n[77]=an,n[78]=ln,n[79]=Yt):Yt=n[79];let Lt;n[80]!==Dn||n[81]!==At||n[82]!==Yt?(Lt=O.jsxs(F.Group,{gap:"xs",justify:Dn,align:"center",children:[At,Yt]}),n[80]=Dn,n[81]=At,n[82]=Yt,n[83]=Lt):Lt=n[83];let Ft;n[84]!==ne||n[85]!==K||n[86]!==H?(Ft=H&&H.length>0&&O.jsx(F.Tabs,{value:ne,onChange:K,mt:"md",children:O.jsx(F.Tabs.List,{children:H.map(J1)})}),n[84]=ne,n[85]=K,n[86]=H,n[87]=Ft):Ft=n[87];let Wt;n[88]!==A?(Wt=A&&O.jsx(F.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:O.jsx(ei.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[88]=A,n[89]=Wt):Wt=n[89];let Kt;n[90]!==T||n[91]!==p?(Kt=(T||p)&&O.jsxs(F.Stack,{my:"md",children:[O.jsx(F.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[90]=T,n[91]=p,n[92]=Kt):Kt=n[92];let Ut;n[93]!==h||n[94]!==A||n[95]!==T||n[96]!==p||n[97]!==Se||n[98]!==V||n[99]!==D||n[100]!==_||n[101]!==me||n[102]!==C||n[103]!==ee||n[104]!==X||n[105]!==ve?(Ut=!T&&!p&&O.jsx(N1,{my:"md",striped:!0,minHeight:150,fetching:A,records:_,sortStatus:X,onSortStatusChange:be,...C&&{selectedRecords:me,onSelectedRecordsChange:Re},...D&&_.length&&{totalRecords:ve.length,recordsPerPage:V,onPageChange:l,page:Se,recordsPerPageOptions:Qu,onRecordsPerPageChange:ee,recordsPerPageLabel:"Einträge pro Seite"},columns:h.map(Z1),noRecordsText:"Keine Einträge gefunden"}),n[93]=h,n[94]=A,n[95]=T,n[96]=p,n[97]=Se,n[98]=V,n[99]=D,n[100]=_,n[101]=me,n[102]=C,n[103]=ee,n[104]=X,n[105]=ve,n[106]=Ut):Ut=n[106];let ze;n[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>{rt(!1),Re([])},n[107]=ze):ze=n[107];const at=r??"Bearbeiten";let Nt;n[108]!==g||n[109]!==h||n[110]!==s||n[111]!==me[0]||n[112]!==me.length||n[113]!==M?(Nt=me.length>0&&O.jsx(B1,{fields:h.filter(K1),queryKey:s,apiPath:g,id:me[0].id,onClose:()=>{rt(!1),Re([])},steps:M}),n[108]=g,n[109]=h,n[110]=s,n[111]=me[0],n[112]=me.length,n[113]=M,n[114]=Nt):Nt=n[114];let Zt;n[115]!==at||n[116]!==Nt||n[117]!==pt?(Zt=O.jsx(F.Modal,{opened:pt,onClose:ze,title:at,children:Nt}),n[115]=at,n[116]=Nt,n[117]=pt,n[118]=Zt):Zt=n[118];let Rn;n[119]!==g||n[120]!==An||n[121]!==s||n[122]!==me||n[123]!==r?(Rn=me.length>0&&O.jsx(F.Modal,{opened:An,onClose:()=>{St(!1),Re([])},title:r??"Löschen",children:O.jsx(H1,{onClose:()=>{St(!1),Re([])},queryKey:s,apiPath:g,selectedRecords:me})}),n[119]=g,n[120]=An,n[121]=s,n[122]=me,n[123]=r,n[124]=Rn):Rn=n[124];let un;n[125]===Symbol.for("react.memo_cache_sentinel")?(un=()=>{Et(!1)},n[125]=un):un=n[125];const yr=r??"Anlegen";let cn;n[126]===Symbol.for("react.memo_cache_sentinel")?(cn=()=>{Et(!1)},n[126]=cn):cn=n[126];let kn;n[127]!==h?(kn=h.filter(V1),n[127]=h,n[128]=kn):kn=n[128];let fn;n[129]!==g||n[130]!==s||n[131]!==M||n[132]!==kn?(fn=O.jsx(Yg,{queryKey:s,apiPath:g,onClose:cn,fields:kn,steps:M}),n[129]=g,n[130]=s,n[131]=M,n[132]=kn,n[133]=fn):fn=n[133];let hn;n[134]!==nt||n[135]!==yr||n[136]!==fn?(hn=O.jsx(F.Modal,{opened:nt,onClose:un,title:yr,children:fn}),n[134]=nt,n[135]=yr,n[136]=fn,n[137]=hn):hn=n[137];let _t;return n[138]!==Lt||n[139]!==Ft||n[140]!==Wt||n[141]!==Kt||n[142]!==Ut||n[143]!==Zt||n[144]!==Rn||n[145]!==hn?(_t=O.jsxs(O.Fragment,{children:[Lt,Ft,Wt,Kt,Ut,Zt,Rn,hn]}),n[138]=Lt,n[139]=Ft,n[140]=Wt,n[141]=Kt,n[142]=Ut,n[143]=Zt,n[144]=Rn,n[145]=hn,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=bn.c(5),{queryClient:r}=tr();let s;n[0]!==i?(s=O.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let u;return n[2]!==r||n[3]!==s?(u=O.jsx(yl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=u):u=n[4],u}ot.DataTable=o0,ot.DataTableProvider=jp,ot.api=Fp,ot.createOne=cu,ot.deleteOne=uu,ot.getAll=au,ot.getApiHeaders=mr,ot.getOne=lu,ot.updateOne=fu,ot.useAddOne=pu,ot.useDataTable=tr,ot.useDeleteOne=gu,ot.useGetAll=du,ot.useGetOne=hu,ot.usePersistentState=Zu,ot.useUpdateOne=Es,Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"})});
|
|
144
144
|
//# sourceMappingURL=index.umd.js.map
|