@espresso-lab/mantine-data-table 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2976 -2970
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -21
- 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(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,
|
|
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
|
*
|
|
@@ -18,7 +18,7 @@
|
|
|
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)}}()),rs}var rl;function mh(){return rl||(rl=1,process.env.NODE_ENV==="production"?Ii.exports=ph():Ii.exports=gh()),Ii.exports}var bn=mh(),$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 vh(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,c)=>(s[c]=r[c],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),c=s.length,p=r?n:Object.keys(n),g=p.length,h=r?[]:{},S=new Set(s);let A=0;for(let E=0;E<g;E++){const N=r?E:p[E];(!r&&S.has(N)||r)&&i[N]===void 0&&n[N]===void 0?(h[N]=void 0,A++):(h[N]=is(i[N],n[N]),h[N]===i[N]&&i[N]!==void 0&&A++)}return c===g&&A===c?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((c,p)=>{i=c,n=p});r.status="pending",r.catch(()=>{});function s(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{s({status:"fulfilled",value:c}),i(c)},r.reject=c=>{s({status:"rejected",reason:c}),n(c)},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()},c=Ch;const p=h=>{n?i.push(h):c(()=>{r(h)})},g=()=>{const h=i;i=[],h.length&&c(()=>{s(()=>{h.forEach(S=>{r(S)})})})};return{batch:h=>{let S;n++;try{S=h()}finally{n--,n||g()}return S},batchCalls:h=>(...S)=>{p(()=>{h(...S)})},schedule:p,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{c=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.#m();const c=this.#v();s&&(this.#e!==r||xn(this.options.enabled,this.#e)!==xn(n.enabled,this.#e)||c!==this.#l)&&this.#y(c)}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}#m(){this.#w();const i=ni(this.options.staleTime,this.#e);if(ti||this.#r.isStale||!il(i))return;const r=vh(this.#r.dataUpdatedAt,i)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#v(){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.#m(),this.#y(this.#v())}#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,c=this.#r,p=this.#i,g=this.#o,S=i!==r?i.state:this.#n,{state:A}=i;let E={...A},N=!1,k;if(n._optimisticResults){const X=this.hasListeners(),de=!X&&fl(i,n),ue=X&&hl(i,r,n,s);(de||ue)&&(E={...E,...Ah(A.data,i.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:L,errorUpdatedAt:$,status:j}=E;k=E.data;let K=!1;if(n.placeholderData!==void 0&&k===void 0&&j==="pending"){let X;c?.isPlaceholderData&&n.placeholderData===g?.placeholderData?(X=c.data,K=!0):X=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,X!==void 0&&(j="success",k=ll(c?.data,X,n),N=!0)}if(n.select&&k!==void 0&&!K)if(c&&k===p?.data&&n.select===this.#g)k=this.#h;else try{this.#g=n.select,k=n.select(k),k=ll(c?.data,k,n),this.#h=k,this.#a=null}catch(X){this.#a=X}this.#a&&(L=this.#a,k=this.#h,$=Date.now(),j="error");const se=E.fetchStatus==="fetching",le=j==="pending",re=j==="error",he=le&&se,Z=k!==void 0,Q={status:j,fetchStatus:E.fetchStatus,isPending:le,isSuccess:j==="success",isError:re,isInitialLoading:he,isLoading:he,data:k,dataUpdatedAt:E.dataUpdatedAt,error:L,errorUpdatedAt:$,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>S.dataUpdateCount||E.errorUpdateCount>S.errorUpdateCount,isFetching:se,isRefetching:se&&!le,isLoadingError:re&&!Z,isPaused:E.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:re&&Z,isStale:as(i,n),refetch:this.refetch,promise:this.#s,isEnabled:xn(n.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const X=ne=>{Q.status==="error"?ne.reject(Q.error):Q.data!==void 0&&ne.resolve(Q.data)},de=()=>{const ne=this.#s=Q.promise=cl();X(ne)},ue=this.#s;switch(ue.status){case"pending":i.queryHash===r.queryHash&&X(ue);break;case"fulfilled":(Q.status==="error"||Q.data!==ue.value)&&de();break;case"rejected":(Q.status!=="error"||Q.error!==ue.reason)&&de();break}}return Q}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,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#p.size)return!0;const p=new Set(c??this.#p);return this.options.throwOnError&&p.add("error"),Object.keys(this.#r).some(g=>{const h=g;return this.#r[h]!==i[h]&&p.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={};/**
|
|
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 mh(){return rl||(rl=1,process.env.NODE_ENV==="production"?Ii.exports=ph():Ii.exports=gh()),Ii.exports}var bn=mh(),$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 vh(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,p=r?n:Object.keys(n),g=p.length,h=r?[]:{},S=new Set(s);let A=0;for(let E=0;E<g;E++){const N=r?E:p[E];(!r&&S.has(N)||r)&&i[N]===void 0&&n[N]===void 0?(h[N]=void 0,A++):(h[N]=is(i[N],n[N]),h[N]===i[N]&&i[N]!==void 0&&A++)}return u===g&&A===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,p)=>{i=u,n=p});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 p=h=>{n?i.push(h):u(()=>{r(h)})},g=()=>{const h=i;i=[],h.length&&u(()=>{s(()=>{h.forEach(S=>{r(S)})})})};return{batch:h=>{let S;n++;try{S=h()}finally{n--,n||g()}return S},batchCalls:h=>(...S)=>{p(()=>{h(...S)})},schedule:p,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.#m();const u=this.#v();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}#m(){this.#w();const i=ni(this.options.staleTime,this.#e);if(ti||this.#r.isStale||!il(i))return;const r=vh(this.#r.dataUpdatedAt,i)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#v(){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.#m(),this.#y(this.#v())}#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,p=this.#i,g=this.#o,S=i!==r?i.state:this.#n,{state:A}=i;let E={...A},N=!1,k;if(n._optimisticResults){const te=this.hasListeners(),de=!te&&fl(i,n),ce=te&&hl(i,r,n,s);(de||ce)&&(E={...E,...Ah(A.data,i.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:L,errorUpdatedAt:I,status:B}=E;k=E.data;let Z=!1;if(n.placeholderData!==void 0&&k===void 0&&B==="pending"){let te;u?.isPlaceholderData&&n.placeholderData===g?.placeholderData?(te=u.data,Z=!0):te=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,te!==void 0&&(B="success",k=ll(u?.data,te,n),N=!0)}if(n.select&&k!==void 0&&!Z)if(u&&k===p?.data&&n.select===this.#g)k=this.#h;else try{this.#g=n.select,k=n.select(k),k=ll(u?.data,k,n),this.#h=k,this.#a=null}catch(te){this.#a=te}this.#a&&(L=this.#a,k=this.#h,I=Date.now(),B="error");const ae=E.fetchStatus==="fetching",ue=B==="pending",oe=B==="error",he=ue&&ae,Q=k!==void 0,J={status:B,fetchStatus:E.fetchStatus,isPending:ue,isSuccess:B==="success",isError:oe,isInitialLoading:he,isLoading:he,data:k,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>S.dataUpdateCount||E.errorUpdateCount>S.errorUpdateCount,isFetching:ae,isRefetching:ae&&!ue,isLoadingError:oe&&!Q,isPaused:E.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:oe&&Q,isStale:as(i,n),refetch:this.refetch,promise:this.#s,isEnabled:xn(n.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const te=ne=>{J.status==="error"?ne.reject(J.error):J.data!==void 0&&ne.resolve(J.data)},de=()=>{const ne=this.#s=J.promise=cl();te(ne)},ce=this.#s;switch(ce.status){case"pending":i.queryHash===r.queryHash&&te(ce);break;case"fulfilled":(J.status==="error"||J.data!==ce.value)&&de();break;case"rejected":(J.status!=="error"||J.error!==ce.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 p=new Set(u??this.#p);return this.options.throwOnError&&p.add("error"),Object.keys(this.#r).some(g=>{const h=g;return this.#r[h]!==i[h]&&p.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 ri;dl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,
|
|
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,p){var g=null;if(p!==void 0&&(g=""+p),u.key!==void 0&&(g=""+u.key),"key"in u){p={};for(var h in u)h!=="key"&&(p[h]=u[h])}else p=u;return u=p.ref,{$$typeof:i,type:s,key:g,ref:u!==void 0?u:null,props:p}}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===ce?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case B:return"Fragment";case ae:return"Profiler";case Z:return"StrictMode";case Q:return"Suspense";case le: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 oe:return(f.displayName||"Context")+".Provider";case ue:return(f._context.displayName||"Context")+".Consumer";case he:var v=f.render;return f=f.displayName,f||(f=v.displayName||v.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case J:return v=f.displayName||null,v!==null?v:i(f.type)||"Memo";case te:v=f._payload,f=f._init;try{return i(f(v))}catch{}}return null}function n(f){return""+f}function r(f){try{n(f);var v=!1}catch{v=!0}if(v){v=console;var b=v.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return b.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),n(f)}}function s(f){if(f===B)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===te)return"<...>";try{var v=i(f);return v?"<"+v+">":"<...>"}catch{return"<...>"}}function u(){var f=ne.A;return f===null?null:f.getOwner()}function p(){return Error("react-stack-top-frame")}function g(f){if(Ae.call(f,"key")){var v=Object.getOwnPropertyDescriptor(f,"key").get;if(v&&v.isReactWarning)return!1}return f.key!==void 0}function h(f,v){function b(){M||(M=!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)",v))}b.isReactWarning=!0,Object.defineProperty(f,"key",{get:b,configurable:!0})}function S(){var f=i(this.type);return O[f]||(O[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 A(f,v,b,$,U,ee,G,we){return b=ee.ref,f={$$typeof:L,type:f,key:v,props:ee,_owner:U},(b!==void 0?b:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:S}):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:G}),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,v,b,$,U,ee,G,we){var X=v.children;if(X!==void 0)if($)if(Oe(X)){for($=0;$<X.length;$++)N(X[$]);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(Ae.call(v,"key")){X=i(f);var be=Object.keys(v).filter(function(me){return me!=="key"});$=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",w[X+$]||(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}
|
|
42
|
+
<%s key={someKey} {...props} />`,$,X,be,X),w[X+$]=!0)}if(X=null,b!==void 0&&(r(b),X=""+b),g(v)&&(r(v.key),X=""+v.key),"key"in v){b={};for(var _e in v)_e!=="key"&&(b[_e]=v[_e])}else b=v;return X&&h(b,typeof f=="function"?f.displayName||f.name||"Unknown":f),A(f,X,ee,U,u(),b,G,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var k=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),ne=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Oe=Array.isArray,T=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(f){return f()}};var M,O={},m=k.react_stack_bottom_frame.bind(k,p)(),d=T(s(p)),w={};ii.Fragment=B,ii.jsx=function(f,v,b,$,U){var ee=1e4>ne.recentlyCreatedOwnerStacks++;return E(f,v,b,!1,$,U,ee?Error("react-stack-top-frame"):m,ee?T(s(f)):d)},ii.jsxs=function(f,v,b,$,U){var ee=1e4>ne.recentlyCreatedOwnerStacks++;return E(f,v,b,!0,$,U,ee?Error("react-stack-top-frame"):m,ee?T(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 D=kh(),ml=Ct.createContext(void 0),vl=i=>{const n=Ct.useContext(ml);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]),D.jsx(ml.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(),p=vl(),g=p.defaultQueryOptions(i);p.getDefaultOptions().queries?._experimental_beforeQuery?.(g),process.env.NODE_ENV!=="production"&&(g.queryFn||console.error(`[${g.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`)),g._optimisticResults=s?"isRestoring":"optimistic",Fh(g),Bh(g,u),jh(u);const h=!p.getQueryCache().get(g.queryHash),[S]=Ct.useState(()=>new n(p,g)),A=S.getOptimisticResult(g),E=!s&&i.subscribed!==!1;if(Ct.useSyncExternalStore(Ct.useCallback(N=>{const k=E?S.subscribe(Yi.batchCalls(N)):Bi;return S.updateResult(),k},[S,E]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),Ct.useEffect(()=>{S.setOptions(g)},[g,S]),Uh(g,A))throw wl(g,S,u);if(Yh({result:A,errorResetBoundary:u,throwOnError:g.throwOnError,query:p.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw A.error;return p.getDefaultOptions().queries?._experimental_afterQuery?.(g,A),g.experimental_prefetchInRender&&!ti&&Wh(A,s)&&(h?wl(g,S,u):p.getQueryCache().get(g.queryHash)?.promise)?.catch(Bi).finally(()=>{S.updateResult()}),g.notifyOnChangeProps?A:S.trackResult(A)}function bl(i,n){return zh(i,Oh)}function ls(i,n){const r=vl(),[s]=Ct.useState(()=>new Ph(r,i));Ct.useEffect(()=>{s.setOptions(i)},[s,i]);const u=Ct.useSyncExternalStore(Ct.useCallback(g=>s.subscribe(Yi.batchCalls(g)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),p=Ct.useCallback((g,h)=>{s.mutate(g,h).catch(Bi)},[s]);if(u.error&&ul(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:p,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 oi;Cl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,
|
|
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,p){var g=null;if(p!==void 0&&(g=""+p),u.key!==void 0&&(g=""+u.key),"key"in u){p={};for(var h in u)h!=="key"&&(p[h]=u[h])}else p=u;return u=p.ref,{$$typeof:i,type:s,key:g,ref:u!==void 0?u:null,props:p}}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===ce?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case B:return"Fragment";case ae:return"Profiler";case Z:return"StrictMode";case Q:return"Suspense";case le: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 oe:return(f.displayName||"Context")+".Provider";case ue:return(f._context.displayName||"Context")+".Consumer";case he:var v=f.render;return f=f.displayName,f||(f=v.displayName||v.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case J:return v=f.displayName||null,v!==null?v:i(f.type)||"Memo";case te:v=f._payload,f=f._init;try{return i(f(v))}catch{}}return null}function n(f){return""+f}function r(f){try{n(f);var v=!1}catch{v=!0}if(v){v=console;var b=v.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return b.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),n(f)}}function s(f){if(f===B)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===te)return"<...>";try{var v=i(f);return v?"<"+v+">":"<...>"}catch{return"<...>"}}function u(){var f=ne.A;return f===null?null:f.getOwner()}function p(){return Error("react-stack-top-frame")}function g(f){if(Ae.call(f,"key")){var v=Object.getOwnPropertyDescriptor(f,"key").get;if(v&&v.isReactWarning)return!1}return f.key!==void 0}function h(f,v){function b(){M||(M=!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)",v))}b.isReactWarning=!0,Object.defineProperty(f,"key",{get:b,configurable:!0})}function S(){var f=i(this.type);return O[f]||(O[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 A(f,v,b,$,U,ee,G,we){return b=ee.ref,f={$$typeof:L,type:f,key:v,props:ee,_owner:U},(b!==void 0?b:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:S}):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:G}),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,v,b,$,U,ee,G,we){var X=v.children;if(X!==void 0)if($)if(Oe(X)){for($=0;$<X.length;$++)N(X[$]);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(Ae.call(v,"key")){X=i(f);var be=Object.keys(v).filter(function(me){return me!=="key"});$=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",w[X+$]||(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}
|
|
63
|
+
<%s key={someKey} {...props} />`,$,X,be,X),w[X+$]=!0)}if(X=null,b!==void 0&&(r(b),X=""+b),g(v)&&(r(v.key),X=""+v.key),"key"in v){b={};for(var _e in v)_e!=="key"&&(b[_e]=v[_e])}else b=v;return X&&h(b,typeof f=="function"?f.displayName||f.name||"Unknown":f),A(f,X,ee,U,u(),b,G,we)}function N(f){typeof f=="object"&&f!==null&&f.$$typeof===L&&f._store&&(f._store.validated=1)}var k=ye,L=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),ne=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Oe=Array.isArray,T=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(f){return f()}};var M,O={},m=k.react_stack_bottom_frame.bind(k,p)(),d=T(s(p)),w={};Wi.Fragment=B,Wi.jsx=function(f,v,b,$,U){var ee=1e4>ne.recentlyCreatedOwnerStacks++;return E(f,v,b,!1,$,U,ee?Error("react-stack-top-frame"):m,ee?T(s(f)):d)},Wi.jsxs=function(f,v,b,$,U){var ee=1e4>ne.recentlyCreatedOwnerStacks++;return E(f,v,b,!0,$,U,ee?Error("react-stack-top-frame"):m,ee?T(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
|
*
|
|
@@ -83,12 +83,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
83
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={},si={},Ml;function Qh(){if(Ml)return si;Ml=1,si.byteLength=h,si.toByteArray=A,si.fromByteArray=k;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
86
|
+
*/var Pl={},si={},Ml;function Qh(){if(Ml)return si;Ml=1,si.byteLength=h,si.toByteArray=A,si.fromByteArray=k;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,p=s.length;u<p;++u)i[u]=s[u],n[s.charCodeAt(u)]=u;n[45]=62,n[95]=63;function g(L){var I=L.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var B=L.indexOf("=");B===-1&&(B=I);var Z=B===I?0:4-B%4;return[B,Z]}function h(L){var I=g(L),B=I[0],Z=I[1];return(B+Z)*3/4-Z}function S(L,I,B){return(I+B)*3/4-B}function A(L){var I,B=g(L),Z=B[0],ae=B[1],ue=new r(S(L,Z,ae)),oe=0,he=ae>0?Z-4:Z,Q;for(Q=0;Q<he;Q+=4)I=n[L.charCodeAt(Q)]<<18|n[L.charCodeAt(Q+1)]<<12|n[L.charCodeAt(Q+2)]<<6|n[L.charCodeAt(Q+3)],ue[oe++]=I>>16&255,ue[oe++]=I>>8&255,ue[oe++]=I&255;return ae===2&&(I=n[L.charCodeAt(Q)]<<2|n[L.charCodeAt(Q+1)]>>4,ue[oe++]=I&255),ae===1&&(I=n[L.charCodeAt(Q)]<<10|n[L.charCodeAt(Q+1)]<<4|n[L.charCodeAt(Q+2)]>>2,ue[oe++]=I>>8&255,ue[oe++]=I&255),ue}function E(L){return i[L>>18&63]+i[L>>12&63]+i[L>>6&63]+i[L&63]}function N(L,I,B){for(var Z,ae=[],ue=I;ue<B;ue+=3)Z=(L[ue]<<16&16711680)+(L[ue+1]<<8&65280)+(L[ue+2]&255),ae.push(E(Z));return ae.join("")}function k(L){for(var I,B=L.length,Z=B%3,ae=[],ue=16383,oe=0,he=B-Z;oe<he;oe+=ue)ae.push(N(L,oe,oe+ue>he?he:oe+ue));return Z===1?(I=L[B-1],ae.push(i[I>>2]+i[I<<4&63]+"==")):Z===2&&(I=(L[B-2]<<8)+L[B-1],ae.push(i[I>>10]+i[I>>4&63]+i[I<<2&63]+"=")),ae.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 p,g,h=u*8-s-1,S=(1<<h)-1,A=S>>1,E=-7,N=r?u-1:0,k=r?-1:1,L=i[n+N];for(N+=k,p=L&(1<<-E)-1,L>>=-E,E+=h;E>0;p=p*256+i[n+N],N+=k,E-=8);for(g=p&(1<<-E)-1,p>>=-E,E+=s;E>0;g=g*256+i[n+N],N+=k,E-=8);if(p===0)p=1-A;else{if(p===S)return g?NaN:(L?-1:1)*(1/0);g=g+Math.pow(2,s),p=p-A}return(L?-1:1)*g*Math.pow(2,p-s)},ds.write=function(i,n,r,s,u,p){var g,h,S,A=p*8-u-1,E=(1<<A)-1,N=E>>1,k=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=s?0:p-1,I=s?1:-1,B=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(h=isNaN(n)?1:0,g=E):(g=Math.floor(Math.log(n)/Math.LN2),n*(S=Math.pow(2,-g))<1&&(g--,S*=2),g+N>=1?n+=k/S:n+=k*Math.pow(2,1-N),n*S>=2&&(g++,S/=2),g+N>=E?(h=0,g=E):g+N>=1?(h=(n*S-1)*Math.pow(2,u),g=g+N):(h=n*Math.pow(2,N-1)*Math.pow(2,u),g=0));u>=8;i[r+L]=h&255,L+=I,h/=256,u-=8);for(g=g<<u|h,A+=u;A>0;i[r+L]=g&255,L+=I,g/=256,A-=8);i[r+L-I]|=B*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=h,i.SlowBuffer=se,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=xl.TYPED_ARRAY_SUPPORT!==void 0?xl.TYPED_ARRAY_SUPPORT:c(),i.kMaxLength=p();function c(){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 p(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(l,f){if(p()<f)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(f),l.__proto__=h.prototype):(l===null&&(l=new h(f)),l.length=f),l}function h(l,f,_){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(l,f,_);if(typeof l=="number"){if(typeof f=="string")throw new Error("If encoding is specified then the first argument must be a string");return N(this,l)}return S(this,l,f,_)}h.poolSize=8192,h._augment=function(l){return l.__proto__=h.prototype,l};function S(l,f,_,R){if(typeof f=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&f instanceof ArrayBuffer?$(l,f,_,R):typeof f=="string"?k(l,f,_):j(l,f)}h.from=function(l,f,_){return S(null,l,f,_)},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 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,f,_,R){return A(f),f<=0?g(l,f):_!==void 0?typeof R=="string"?g(l,f).fill(_,R):g(l,f).fill(_):g(l,f)}h.alloc=function(l,f,_){return E(null,l,f,_)};function N(l,f){if(A(f),l=g(l,f<0?0:K(f)|0),!h.TYPED_ARRAY_SUPPORT)for(var _=0;_<f;++_)l[_]=0;return l}h.allocUnsafe=function(l){return N(null,l)},h.allocUnsafeSlow=function(l){return N(null,l)};function k(l,f,_){if((typeof _!="string"||_==="")&&(_="utf8"),!h.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var R=le(f,_)|0;l=g(l,R);var z=l.write(f,_);return z!==R&&(l=l.slice(0,z)),l}function L(l,f){var _=f.length<0?0:K(f.length)|0;l=g(l,_);for(var R=0;R<_;R+=1)l[R]=f[R]&255;return l}function $(l,f,_,R){if(f.byteLength,_<0||f.byteLength<_)throw new RangeError("'offset' is out of bounds");if(f.byteLength<_+(R||0))throw new RangeError("'length' is out of bounds");return _===void 0&&R===void 0?f=new Uint8Array(f):R===void 0?f=new Uint8Array(f,_):f=new Uint8Array(f,_,R),h.TYPED_ARRAY_SUPPORT?(l=f,l.__proto__=h.prototype):l=L(l,f),l}function j(l,f){if(h.isBuffer(f)){var _=K(f.length)|0;return l=g(l,_),l.length===0||f.copy(l,0,0,_),l}if(f){if(typeof ArrayBuffer<"u"&&f.buffer instanceof ArrayBuffer||"length"in f)return typeof f.length!="number"||Se(f.length)?g(l,0):L(l,f);if(f.type==="Buffer"&&s(f.data))return L(l,f.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function K(l){if(l>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return l|0}function se(l){return+l!=l&&(l=0),h.alloc(+l)}h.isBuffer=function(l){return!!(l!=null&&l._isBuffer)},h.compare=function(l,f){if(!h.isBuffer(l)||!h.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(l===f)return 0;for(var _=l.length,R=f.length,z=0,te=Math.min(_,R);z<te;++z)if(l[z]!==f[z]){_=l[z],R=f[z];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,f){if(!s(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return h.alloc(0);var _;if(f===void 0)for(f=0,_=0;_<l.length;++_)f+=l[_].length;var R=h.allocUnsafe(f),z=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,z),z+=te.length}return R};function le(l,f){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(f){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":case void 0:return Y(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return G(l).length;default:if(R)return Y(l).length;f=(""+f).toLowerCase(),R=!0}}h.byteLength=le;function re(l,f,_){var R=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,f>>>=0,_<=f))return"";for(l||(l="utf8");;)switch(l){case"hex":return w(this,f,_);case"utf8":case"utf-8":return T(this,f,_);case"ascii":return m(this,f,_);case"latin1":case"binary":return d(this,f,_);case"base64":return Oe(this,f,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,f,_);default:if(R)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),R=!0}}h.prototype._isBuffer=!0;function he(l,f,_){var R=l[f];l[f]=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 f=0;f<l;f+=2)he(this,f,f+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 f=0;f<l;f+=4)he(this,f,f+3),he(this,f+1,f+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 f=0;f<l;f+=8)he(this,f,f+7),he(this,f+1,f+6),he(this,f+2,f+5),he(this,f+3,f+4);return this},h.prototype.toString=function(){var l=this.length|0;return l===0?"":arguments.length===0?T(this,0,l):re.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="",f=i.INSPECT_MAX_BYTES;return this.length>0&&(l=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(l+=" ... ")),"<Buffer "+l+">"},h.prototype.compare=function(l,f,_,R,z){if(!h.isBuffer(l))throw new TypeError("Argument must be a Buffer");if(f===void 0&&(f=0),_===void 0&&(_=l?l.length:0),R===void 0&&(R=0),z===void 0&&(z=this.length),f<0||_>l.length||R<0||z>this.length)throw new RangeError("out of range index");if(R>=z&&f>=_)return 0;if(R>=z)return-1;if(f>=_)return 1;if(f>>>=0,_>>>=0,R>>>=0,z>>>=0,this===l)return 0;for(var te=z-R,De=_-f,Ce=Math.min(te,De),Pe=this.slice(R,z),ve=l.slice(f,_),Re=0;Re<Ce;++Re)if(Pe[Re]!==ve[Re]){te=Pe[Re],De=ve[Re];break}return te<De?-1:De<te?1:0};function Z(l,f,_,R,z){if(l.length===0)return-1;if(typeof _=="string"?(R=_,_=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 f=="string"&&(f=h.from(f,R)),h.isBuffer(f))return f.length===0?-1:ae(l,f,_,R,z);if(typeof f=="number")return f=f&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(l,f,_):Uint8Array.prototype.lastIndexOf.call(l,f,_):ae(l,[f],_,R,z);throw new TypeError("val must be string, number or Buffer")}function ae(l,f,_,R,z){var te=1,De=l.length,Ce=f.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(l.length<2||f.length<2)return-1;te=2,De/=2,Ce/=2,_/=2}function Pe(Xe,Qe){return te===1?Xe[Qe]:Xe.readUInt16BE(Qe*te)}var ve;if(z){var Re=-1;for(ve=_;ve<De;ve++)if(Pe(l,ve)===Pe(f,Re===-1?0:ve-Re)){if(Re===-1&&(Re=ve),ve-Re+1===Ce)return Re*te}else Re!==-1&&(ve-=ve-Re),Re=-1}else for(_+Ce>De&&(_=De-Ce),ve=_;ve>=0;ve--){for(var Ie=!0,ke=0;ke<Ce;ke++)if(Pe(l,ve+ke)!==Pe(f,ke)){Ie=!1;break}if(Ie)return ve}return-1}h.prototype.includes=function(l,f,_){return this.indexOf(l,f,_)!==-1},h.prototype.indexOf=function(l,f,_){return Z(this,l,f,_,!0)},h.prototype.lastIndexOf=function(l,f,_){return Z(this,l,f,_,!1)};function Q(l,f,_,R){_=Number(_)||0;var z=l.length-_;R?(R=Number(R),R>z&&(R=z)):R=z;var te=f.length;if(te%2!==0)throw new TypeError("Invalid hex string");R>te/2&&(R=te/2);for(var De=0;De<R;++De){var Ce=parseInt(f.substr(De*2,2),16);if(isNaN(Ce))return De;l[_+De]=Ce}return De}function X(l,f,_,R){return ee(Y(f,l.length-_),l,_,R)}function de(l,f,_,R){return ee(V(f),l,_,R)}function ue(l,f,_,R){return de(l,f,_,R)}function ne(l,f,_,R){return ee(G(f),l,_,R)}function Ae(l,f,_,R){return ee(U(f,l.length-_),l,_,R)}h.prototype.write=function(l,f,_,R){if(f===void 0)R="utf8",_=this.length,f=0;else if(_===void 0&&typeof f=="string")R=f,_=this.length,f=0;else if(isFinite(f))f=f|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 z=this.length-f;if((_===void 0||_>z)&&(_=z),l.length>0&&(_<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");for(var te=!1;;)switch(R){case"hex":return Q(this,l,f,_);case"utf8":case"utf-8":return X(this,l,f,_);case"ascii":return de(this,l,f,_);case"latin1":case"binary":return ue(this,l,f,_);case"base64":return ne(this,l,f,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,l,f,_);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,f,_){return f===0&&_===l.length?n.fromByteArray(l):n.fromByteArray(l.slice(f,_))}function T(l,f,_){_=Math.min(l.length,_);for(var R=[],z=f;z<_;){var te=l[z],De=null,Ce=te>239?4:te>223?3:te>191?2:1;if(z+Ce<=_){var Pe,ve,Re,Ie;switch(Ce){case 1:te<128&&(De=te);break;case 2:Pe=l[z+1],(Pe&192)===128&&(Ie=(te&31)<<6|Pe&63,Ie>127&&(De=Ie));break;case 3:Pe=l[z+1],ve=l[z+2],(Pe&192)===128&&(ve&192)===128&&(Ie=(te&15)<<12|(Pe&63)<<6|ve&63,Ie>2047&&(Ie<55296||Ie>57343)&&(De=Ie));break;case 4:Pe=l[z+1],ve=l[z+2],Re=l[z+3],(Pe&192)===128&&(ve&192)===128&&(Re&192)===128&&(Ie=(te&15)<<18|(Pe&63)<<12|(ve&63)<<6|Re&63,Ie>65535&&Ie<1114112&&(De=Ie))}}De===null?(De=65533,Ce=1):De>65535&&(De-=65536,R.push(De>>>10&1023|55296),De=56320|De&1023),R.push(De),z+=Ce}return O(R)}var M=4096;function O(l){var f=l.length;if(f<=M)return String.fromCharCode.apply(String,l);for(var _="",R=0;R<f;)_+=String.fromCharCode.apply(String,l.slice(R,R+=M));return _}function m(l,f,_){var R="";_=Math.min(l.length,_);for(var z=f;z<_;++z)R+=String.fromCharCode(l[z]&127);return R}function d(l,f,_){var R="";_=Math.min(l.length,_);for(var z=f;z<_;++z)R+=String.fromCharCode(l[z]);return R}function w(l,f,_){var R=l.length;(!f||f<0)&&(f=0),(!_||_<0||_>R)&&(_=R);for(var z="",te=f;te<_;++te)z+=me(l[te]);return z}function u(l,f,_){for(var R=l.slice(f,_),z="",te=0;te<R.length;te+=2)z+=String.fromCharCode(R[te]+R[te+1]*256);return z}h.prototype.slice=function(l,f){var _=this.length;l=~~l,f=f===void 0?_:~~f,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),f<0?(f+=_,f<0&&(f=0)):f>_&&(f=_),f<l&&(f=l);var R;if(h.TYPED_ARRAY_SUPPORT)R=this.subarray(l,f),R.__proto__=h.prototype;else{var z=f-l;R=new h(z,void 0);for(var te=0;te<z;++te)R[te]=this[te+l]}return R};function v(l,f,_){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+f>_)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(l,f,_){l=l|0,f=f|0,_||v(l,f,this.length);for(var R=this[l],z=1,te=0;++te<f&&(z*=256);)R+=this[l+te]*z;return R},h.prototype.readUIntBE=function(l,f,_){l=l|0,f=f|0,_||v(l,f,this.length);for(var R=this[l+--f],z=1;f>0&&(z*=256);)R+=this[l+--f]*z;return R},h.prototype.readUInt8=function(l,f){return f||v(l,1,this.length),this[l]},h.prototype.readUInt16LE=function(l,f){return f||v(l,2,this.length),this[l]|this[l+1]<<8},h.prototype.readUInt16BE=function(l,f){return f||v(l,2,this.length),this[l]<<8|this[l+1]},h.prototype.readUInt32LE=function(l,f){return f||v(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},h.prototype.readUInt32BE=function(l,f){return f||v(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},h.prototype.readIntLE=function(l,f,_){l=l|0,f=f|0,_||v(l,f,this.length);for(var R=this[l],z=1,te=0;++te<f&&(z*=256);)R+=this[l+te]*z;return z*=128,R>=z&&(R-=Math.pow(2,8*f)),R},h.prototype.readIntBE=function(l,f,_){l=l|0,f=f|0,_||v(l,f,this.length);for(var R=f,z=1,te=this[l+--R];R>0&&(z*=256);)te+=this[l+--R]*z;return z*=128,te>=z&&(te-=Math.pow(2,8*f)),te},h.prototype.readInt8=function(l,f){return f||v(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},h.prototype.readInt16LE=function(l,f){f||v(l,2,this.length);var _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},h.prototype.readInt16BE=function(l,f){f||v(l,2,this.length);var _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},h.prototype.readInt32LE=function(l,f){return f||v(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},h.prototype.readInt32BE=function(l,f){return f||v(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},h.prototype.readFloatLE=function(l,f){return f||v(l,4,this.length),r.read(this,l,!0,23,4)},h.prototype.readFloatBE=function(l,f){return f||v(l,4,this.length),r.read(this,l,!1,23,4)},h.prototype.readDoubleLE=function(l,f){return f||v(l,8,this.length),r.read(this,l,!0,52,8)},h.prototype.readDoubleBE=function(l,f){return f||v(l,8,this.length),r.read(this,l,!1,52,8)};function C(l,f,_,R,z,te){if(!h.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>z||f<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,f,_,R){if(l=+l,f=f|0,_=_|0,!R){var z=Math.pow(2,8*_)-1;C(this,l,f,_,z,0)}var te=1,De=0;for(this[f]=l&255;++De<_&&(te*=256);)this[f+De]=l/te&255;return f+_},h.prototype.writeUIntBE=function(l,f,_,R){if(l=+l,f=f|0,_=_|0,!R){var z=Math.pow(2,8*_)-1;C(this,l,f,_,z,0)}var te=_-1,De=1;for(this[f+te]=l&255;--te>=0&&(De*=256);)this[f+te]=l/De&255;return f+_},h.prototype.writeUInt8=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,1,255,0),h.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[f]=l&255,f+1};function I(l,f,_,R){f<0&&(f=65535+f+1);for(var z=0,te=Math.min(l.length-_,2);z<te;++z)l[_+z]=(f&255<<8*(R?z:1-z))>>>(R?z:1-z)*8}h.prototype.writeUInt16LE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[f]=l&255,this[f+1]=l>>>8):I(this,l,f,!0),f+2},h.prototype.writeUInt16BE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[f]=l>>>8,this[f+1]=l&255):I(this,l,f,!1),f+2};function B(l,f,_,R){f<0&&(f=4294967295+f+1);for(var z=0,te=Math.min(l.length-_,4);z<te;++z)l[_+z]=f>>>(R?z:3-z)*8&255}h.prototype.writeUInt32LE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[f+3]=l>>>24,this[f+2]=l>>>16,this[f+1]=l>>>8,this[f]=l&255):B(this,l,f,!0),f+4},h.prototype.writeUInt32BE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[f]=l>>>24,this[f+1]=l>>>16,this[f+2]=l>>>8,this[f+3]=l&255):B(this,l,f,!1),f+4},h.prototype.writeIntLE=function(l,f,_,R){if(l=+l,f=f|0,!R){var z=Math.pow(2,8*_-1);C(this,l,f,_,z-1,-z)}var te=0,De=1,Ce=0;for(this[f]=l&255;++te<_&&(De*=256);)l<0&&Ce===0&&this[f+te-1]!==0&&(Ce=1),this[f+te]=(l/De>>0)-Ce&255;return f+_},h.prototype.writeIntBE=function(l,f,_,R){if(l=+l,f=f|0,!R){var z=Math.pow(2,8*_-1);C(this,l,f,_,z-1,-z)}var te=_-1,De=1,Ce=0;for(this[f+te]=l&255;--te>=0&&(De*=256);)l<0&&Ce===0&&this[f+te+1]!==0&&(Ce=1),this[f+te]=(l/De>>0)-Ce&255;return f+_},h.prototype.writeInt8=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,1,127,-128),h.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),l<0&&(l=255+l+1),this[f]=l&255,f+1},h.prototype.writeInt16LE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[f]=l&255,this[f+1]=l>>>8):I(this,l,f,!0),f+2},h.prototype.writeInt16BE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[f]=l>>>8,this[f+1]=l&255):I(this,l,f,!1),f+2},h.prototype.writeInt32LE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[f]=l&255,this[f+1]=l>>>8,this[f+2]=l>>>16,this[f+3]=l>>>24):B(this,l,f,!0),f+4},h.prototype.writeInt32BE=function(l,f,_){return l=+l,f=f|0,_||C(this,l,f,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),h.TYPED_ARRAY_SUPPORT?(this[f]=l>>>24,this[f+1]=l>>>16,this[f+2]=l>>>8,this[f+3]=l&255):B(this,l,f,!1),f+4};function ie(l,f,_,R,z,te){if(_+R>l.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ce(l,f,_,R,z){return z||ie(l,f,_,4),r.write(l,f,_,R,23,4),_+4}h.prototype.writeFloatLE=function(l,f,_){return ce(this,l,f,!0,_)},h.prototype.writeFloatBE=function(l,f,_){return ce(this,l,f,!1,_)};function we(l,f,_,R,z){return z||ie(l,f,_,8),r.write(l,f,_,R,52,8),_+8}h.prototype.writeDoubleLE=function(l,f,_){return we(this,l,f,!0,_)},h.prototype.writeDoubleBE=function(l,f,_){return we(this,l,f,!1,_)},h.prototype.copy=function(l,f,_,R){if(_||(_=0),!R&&R!==0&&(R=this.length),f>=l.length&&(f=l.length),f||(f=0),R>0&&R<_&&(R=_),R===_||l.length===0||this.length===0)return 0;if(f<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-f<R-_&&(R=l.length-f+_);var z=R-_,te;if(this===l&&_<f&&f<R)for(te=z-1;te>=0;--te)l[te+f]=this[te+_];else if(z<1e3||!h.TYPED_ARRAY_SUPPORT)for(te=0;te<z;++te)l[te+f]=this[te+_];else Uint8Array.prototype.set.call(l,this.subarray(_,_+z),f);return z},h.prototype.fill=function(l,f,_,R){if(typeof l=="string"){if(typeof f=="string"?(R=f,f=0,_=this.length):typeof _=="string"&&(R=_,_=this.length),l.length===1){var z=l.charCodeAt(0);z<256&&(l=z)}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(f<0||this.length<f||this.length<_)throw new RangeError("Out of range index");if(_<=f)return this;f=f>>>0,_=_===void 0?this.length:_>>>0,l||(l=0);var te;if(typeof l=="number")for(te=f;te<_;++te)this[te]=l;else{var De=h.isBuffer(l)?l:Y(new h(l,R).toString()),Ce=De.length;for(te=0;te<_-f;++te)this[te+f]=De[te%Ce]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function be(l){if(l=_e(l).replace(J,""),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 me(l){return l<16?"0"+l.toString(16):l.toString(16)}function Y(l,f){f=f||1/0;for(var _,R=l.length,z=null,te=[],De=0;De<R;++De){if(_=l.charCodeAt(De),_>55295&&_<57344){if(!z){if(_>56319){(f-=3)>-1&&te.push(239,191,189);continue}else if(De+1===R){(f-=3)>-1&&te.push(239,191,189);continue}z=_;continue}if(_<56320){(f-=3)>-1&&te.push(239,191,189),z=_;continue}_=(z-55296<<10|_-56320)+65536}else z&&(f-=3)>-1&&te.push(239,191,189);if(z=null,_<128){if((f-=1)<0)break;te.push(_)}else if(_<2048){if((f-=2)<0)break;te.push(_>>6|192,_&63|128)}else if(_<65536){if((f-=3)<0)break;te.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((f-=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 V(l){for(var f=[],_=0;_<l.length;++_)f.push(l.charCodeAt(_)&255);return f}function U(l,f){for(var _,R,z,te=[],De=0;De<l.length&&!((f-=2)<0);++De)_=l.charCodeAt(De),R=_>>8,z=_%256,te.push(z),te.push(R);return te}function G(l){return n.toByteArray(be(l))}function ee(l,f,_,R){for(var z=0;z<R&&!(z+_>=f.length||z>=l.length);++z)f[z+_]=l[z];return z}function Se(l){return l!==l}}(Pl)),Pl}ed();var mr;if(typeof window<"u"&&window.crypto&&(mr=window.crypto),!mr&&typeof window<"u"&&window.msCrypto&&(mr=window.msCrypto),!mr&&typeof global<"u"&&global.crypto&&(mr=global.crypto),!mr&&typeof require=="function")try{mr=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=ae,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=xl.TYPED_ARRAY_SUPPORT!==void 0?xl.TYPED_ARRAY_SUPPORT:u(),i.kMaxLength=p();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 p(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(l,c){if(p()<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 S(this,l,c,_)}h.poolSize=8192,h._augment=function(l){return l.__proto__=h.prototype,l};function S(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"?k(l,c,_):B(l,c)}h.from=function(l,c,_){return S(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 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,_,R){return A(c),c<=0?g(l,c):_!==void 0?typeof R=="string"?g(l,c).fill(_,R):g(l,c).fill(_):g(l,c)}h.alloc=function(l,c,_){return E(null,l,c,_)};function N(l,c){if(A(c),l=g(l,c<0?0:Z(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 k(l,c,_){if((typeof _!="string"||_==="")&&(_="utf8"),!h.isEncoding(_))throw new TypeError('"encoding" must be a valid string encoding');var R=ue(c,_)|0;l=g(l,R);var z=l.write(c,_);return z!==R&&(l=l.slice(0,z)),l}function L(l,c){var _=c.length<0?0:Z(c.length)|0;l=g(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 B(l,c){if(h.isBuffer(c)){var _=Z(c.length)|0;return l=g(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)?g(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 Z(l){if(l>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return l|0}function ae(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,z=0,ie=Math.min(_,R);z<ie;++z)if(l[z]!==c[z]){_=l[z],R=c[z];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),z=0;for(_=0;_<l.length;++_){var ie=l[_];if(!h.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(R,z),z+=ie.length}return R};function ue(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 j(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 j(l).length;c=(""+c).toLowerCase(),R=!0}}h.byteLength=ue;function oe(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 T(this,c,_);case"ascii":return m(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 he(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)he(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)he(this,c,c+3),he(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)he(this,c,c+7),he(this,c+1,c+6),he(this,c+2,c+5),he(this,c+3,c+4);return this},h.prototype.toString=function(){var l=this.length|0;return l===0?"":arguments.length===0?T(this,0,l):oe.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,z){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),z===void 0&&(z=this.length),c<0||_>l.length||R<0||z>this.length)throw new RangeError("out of range index");if(R>=z&&c>=_)return 0;if(R>=z)return-1;if(c>=_)return 1;if(c>>>=0,_>>>=0,R>>>=0,z>>>=0,this===l)return 0;for(var ie=z-R,De=_-c,Ce=Math.min(ie,De),Pe=this.slice(R,z),ve=l.slice(c,_),Re=0;Re<Ce;++Re)if(Pe[Re]!==ve[Re]){ie=Pe[Re],De=ve[Re];break}return ie<De?-1:De<ie?1:0};function Q(l,c,_,R,z){if(l.length===0)return-1;if(typeof _=="string"?(R=_,_=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=h.from(c,R)),h.isBuffer(c))return c.length===0?-1:le(l,c,_,R,z);if(typeof c=="number")return c=c&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(l,c,_):Uint8Array.prototype.lastIndexOf.call(l,c,_):le(l,[c],_,R,z);throw new TypeError("val must be string, number or Buffer")}function le(l,c,_,R,z){var ie=1,De=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;ie=2,De/=2,Ce/=2,_/=2}function Pe(Xe,Qe){return ie===1?Xe[Qe]:Xe.readUInt16BE(Qe*ie)}var ve;if(z){var Re=-1;for(ve=_;ve<De;ve++)if(Pe(l,ve)===Pe(c,Re===-1?0:ve-Re)){if(Re===-1&&(Re=ve),ve-Re+1===Ce)return Re*ie}else Re!==-1&&(ve-=ve-Re),Re=-1}else for(_+Ce>De&&(_=De-Ce),ve=_;ve>=0;ve--){for(var Ie=!0,ke=0;ke<Ce;ke++)if(Pe(l,ve+ke)!==Pe(c,ke)){Ie=!1;break}if(Ie)return ve}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 z=l.length-_;R?(R=Number(R),R>z&&(R=z)):R=z;var ie=c.length;if(ie%2!==0)throw new TypeError("Invalid hex string");R>ie/2&&(R=ie/2);for(var De=0;De<R;++De){var Ce=parseInt(c.substr(De*2,2),16);if(isNaN(Ce))return De;l[_+De]=Ce}return De}function te(l,c,_,R){return re(j(c,l.length-_),l,_,R)}function de(l,c,_,R){return re(K(c),l,_,R)}function ce(l,c,_,R){return de(l,c,_,R)}function ne(l,c,_,R){return re(V(c),l,_,R)}function Ae(l,c,_,R){return re(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 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");R||(R="utf8");for(var ie=!1;;)switch(R){case"hex":return J(this,l,c,_);case"utf8":case"utf-8":return te(this,l,c,_);case"ascii":return de(this,l,c,_);case"latin1":case"binary":return ce(this,l,c,_);case"base64":return ne(this,l,c,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,l,c,_);default:if(ie)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),ie=!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 T(l,c,_){_=Math.min(l.length,_);for(var R=[],z=c;z<_;){var ie=l[z],De=null,Ce=ie>239?4:ie>223?3:ie>191?2:1;if(z+Ce<=_){var Pe,ve,Re,Ie;switch(Ce){case 1:ie<128&&(De=ie);break;case 2:Pe=l[z+1],(Pe&192)===128&&(Ie=(ie&31)<<6|Pe&63,Ie>127&&(De=Ie));break;case 3:Pe=l[z+1],ve=l[z+2],(Pe&192)===128&&(ve&192)===128&&(Ie=(ie&15)<<12|(Pe&63)<<6|ve&63,Ie>2047&&(Ie<55296||Ie>57343)&&(De=Ie));break;case 4:Pe=l[z+1],ve=l[z+2],Re=l[z+3],(Pe&192)===128&&(ve&192)===128&&(Re&192)===128&&(Ie=(ie&15)<<18|(Pe&63)<<12|(ve&63)<<6|Re&63,Ie>65535&&Ie<1114112&&(De=Ie))}}De===null?(De=65533,Ce=1):De>65535&&(De-=65536,R.push(De>>>10&1023|55296),De=56320|De&1023),R.push(De),z+=Ce}return O(R)}var M=4096;function O(l){var c=l.length;if(c<=M)return String.fromCharCode.apply(String,l);for(var _="",R=0;R<c;)_+=String.fromCharCode.apply(String,l.slice(R,R+=M));return _}function m(l,c,_){var R="";_=Math.min(l.length,_);for(var z=c;z<_;++z)R+=String.fromCharCode(l[z]&127);return R}function d(l,c,_){var R="";_=Math.min(l.length,_);for(var z=c;z<_;++z)R+=String.fromCharCode(l[z]);return R}function w(l,c,_){var R=l.length;(!c||c<0)&&(c=0),(!_||_<0||_>R)&&(_=R);for(var z="",ie=c;ie<_;++ie)z+=me(l[ie]);return z}function f(l,c,_){for(var R=l.slice(c,_),z="",ie=0;ie<R.length;ie+=2)z+=String.fromCharCode(R[ie]+R[ie+1]*256);return z}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 z=c-l;R=new h(z,void 0);for(var ie=0;ie<z;++ie)R[ie]=this[ie+l]}return R};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")}h.prototype.readUIntLE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var R=this[l],z=1,ie=0;++ie<c&&(z*=256);)R+=this[l+ie]*z;return R},h.prototype.readUIntBE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var R=this[l+--c],z=1;c>0&&(z*=256);)R+=this[l+--c]*z;return R},h.prototype.readUInt8=function(l,c){return c||v(l,1,this.length),this[l]},h.prototype.readUInt16LE=function(l,c){return c||v(l,2,this.length),this[l]|this[l+1]<<8},h.prototype.readUInt16BE=function(l,c){return c||v(l,2,this.length),this[l]<<8|this[l+1]},h.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},h.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])},h.prototype.readIntLE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var R=this[l],z=1,ie=0;++ie<c&&(z*=256);)R+=this[l+ie]*z;return z*=128,R>=z&&(R-=Math.pow(2,8*c)),R},h.prototype.readIntBE=function(l,c,_){l=l|0,c=c|0,_||v(l,c,this.length);for(var R=c,z=1,ie=this[l+--R];R>0&&(z*=256);)ie+=this[l+--R]*z;return z*=128,ie>=z&&(ie-=Math.pow(2,8*c)),ie},h.prototype.readInt8=function(l,c){return c||v(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},h.prototype.readInt16LE=function(l,c){c||v(l,2,this.length);var _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},h.prototype.readInt16BE=function(l,c){c||v(l,2,this.length);var _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},h.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},h.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]},h.prototype.readFloatLE=function(l,c){return c||v(l,4,this.length),r.read(this,l,!0,23,4)},h.prototype.readFloatBE=function(l,c){return c||v(l,4,this.length),r.read(this,l,!1,23,4)},h.prototype.readDoubleLE=function(l,c){return c||v(l,8,this.length),r.read(this,l,!0,52,8)},h.prototype.readDoubleBE=function(l,c){return c||v(l,8,this.length),r.read(this,l,!1,52,8)};function b(l,c,_,R,z,ie){if(!h.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>z||c<ie)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 z=Math.pow(2,8*_)-1;b(this,l,c,_,z,0)}var ie=1,De=0;for(this[c]=l&255;++De<_&&(ie*=256);)this[c+De]=l/ie&255;return c+_},h.prototype.writeUIntBE=function(l,c,_,R){if(l=+l,c=c|0,_=_|0,!R){var z=Math.pow(2,8*_)-1;b(this,l,c,_,z,0)}var ie=_-1,De=1;for(this[c+ie]=l&255;--ie>=0&&(De*=256);)this[c+ie]=l/De&255;return c+_},h.prototype.writeUInt8=function(l,c,_){return l=+l,c=c|0,_||b(this,l,c,1,255,0),h.TYPED_ARRAY_SUPPORT||(l=Math.floor(l)),this[c]=l&255,c+1};function $(l,c,_,R){c<0&&(c=65535+c+1);for(var z=0,ie=Math.min(l.length-_,2);z<ie;++z)l[_+z]=(c&255<<8*(R?z:1-z))>>>(R?z:1-z)*8}h.prototype.writeUInt16LE=function(l,c,_){return l=+l,c=c|0,_||b(this,l,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):$(this,l,c,!0),c+2},h.prototype.writeUInt16BE=function(l,c,_){return l=+l,c=c|0,_||b(this,l,c,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):$(this,l,c,!1),c+2};function U(l,c,_,R){c<0&&(c=4294967295+c+1);for(var z=0,ie=Math.min(l.length-_,4);z<ie;++z)l[_+z]=c>>>(R?z:3-z)*8&255}h.prototype.writeUInt32LE=function(l,c,_){return l=+l,c=c|0,_||b(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):U(this,l,c,!0),c+4},h.prototype.writeUInt32BE=function(l,c,_){return l=+l,c=c|0,_||b(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):U(this,l,c,!1),c+4},h.prototype.writeIntLE=function(l,c,_,R){if(l=+l,c=c|0,!R){var z=Math.pow(2,8*_-1);b(this,l,c,_,z-1,-z)}var ie=0,De=1,Ce=0;for(this[c]=l&255;++ie<_&&(De*=256);)l<0&&Ce===0&&this[c+ie-1]!==0&&(Ce=1),this[c+ie]=(l/De>>0)-Ce&255;return c+_},h.prototype.writeIntBE=function(l,c,_,R){if(l=+l,c=c|0,!R){var z=Math.pow(2,8*_-1);b(this,l,c,_,z-1,-z)}var ie=_-1,De=1,Ce=0;for(this[c+ie]=l&255;--ie>=0&&(De*=256);)l<0&&Ce===0&&this[c+ie+1]!==0&&(Ce=1),this[c+ie]=(l/De>>0)-Ce&255;return c+_},h.prototype.writeInt8=function(l,c,_){return l=+l,c=c|0,_||b(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,_||b(this,l,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=l&255,this[c+1]=l>>>8):$(this,l,c,!0),c+2},h.prototype.writeInt16BE=function(l,c,_){return l=+l,c=c|0,_||b(this,l,c,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[c]=l>>>8,this[c+1]=l&255):$(this,l,c,!1),c+2},h.prototype.writeInt32LE=function(l,c,_){return l=+l,c=c|0,_||b(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):U(this,l,c,!0),c+4},h.prototype.writeInt32BE=function(l,c,_){return l=+l,c=c|0,_||b(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):U(this,l,c,!1),c+4};function ee(l,c,_,R,z,ie){if(_+R>l.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function G(l,c,_,R,z){return z||ee(l,c,_,4),r.write(l,c,_,R,23,4),_+4}h.prototype.writeFloatLE=function(l,c,_){return G(this,l,c,!0,_)},h.prototype.writeFloatBE=function(l,c,_){return G(this,l,c,!1,_)};function we(l,c,_,R,z){return z||ee(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 z=R-_,ie;if(this===l&&_<c&&c<R)for(ie=z-1;ie>=0;--ie)l[ie+c]=this[ie+_];else if(z<1e3||!h.TYPED_ARRAY_SUPPORT)for(ie=0;ie<z;++ie)l[ie+c]=this[ie+_];else Uint8Array.prototype.set.call(l,this.subarray(_,_+z),c);return z},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 z=l.charCodeAt(0);z<256&&(l=z)}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 ie;if(typeof l=="number")for(ie=c;ie<_;++ie)this[ie]=l;else{var De=h.isBuffer(l)?l:j(new h(l,R).toString()),Ce=De.length;for(ie=0;ie<_-c;++ie)this[ie+c]=De[ie%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 me(l){return l<16?"0"+l.toString(16):l.toString(16)}function j(l,c){c=c||1/0;for(var _,R=l.length,z=null,ie=[],De=0;De<R;++De){if(_=l.charCodeAt(De),_>55295&&_<57344){if(!z){if(_>56319){(c-=3)>-1&&ie.push(239,191,189);continue}else if(De+1===R){(c-=3)>-1&&ie.push(239,191,189);continue}z=_;continue}if(_<56320){(c-=3)>-1&&ie.push(239,191,189),z=_;continue}_=(z-55296<<10|_-56320)+65536}else z&&(c-=3)>-1&&ie.push(239,191,189);if(z=null,_<128){if((c-=1)<0)break;ie.push(_)}else if(_<2048){if((c-=2)<0)break;ie.push(_>>6|192,_&63|128)}else if(_<65536){if((c-=3)<0)break;ie.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((c-=4)<0)break;ie.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return ie}function K(l){for(var c=[],_=0;_<l.length;++_)c.push(l.charCodeAt(_)&255);return c}function W(l,c){for(var _,R,z,ie=[],De=0;De<l.length&&!((c-=2)<0);++De)_=l.charCodeAt(De),R=_>>8,z=_%256,ie.push(z),ie.push(R);return ie}function V(l){return n.toByteArray(be(l))}function re(l,c,_,R){for(var z=0;z<R&&!(z+_>=c.length||z>=l.length);++z)c[z+_]=l[z];return z}function Se(l){return l!==l}}(Pl)),Pl}ed();var mr;if(typeof window<"u"&&window.crypto&&(mr=window.crypto),!mr&&typeof window<"u"&&window.msCrypto&&(mr=window.msCrypto),!mr&&typeof global<"u"&&global.crypto&&(mr=global.crypto),!mr&&typeof require=="function")try{mr=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 gs=function(i,n){return gs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var c in s)s.hasOwnProperty(c)&&(r[c]=s[c])},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 ms=function(){return ms=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(i[c]=n[c])}return i},ms.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 c=0,s=Object.getOwnPropertySymbols(i);c<s.length;c++)n.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(i,s[c])&&(r[s[c]]=i[s[c]]);return r}function rd(i,n,r,s){var c=arguments.length,p=c<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,n,r,s);else for(var h=i.length-1;h>=0;h--)(g=i[h])&&(p=(c<3?g(p):c>3?g(n,r,p):g(n,r))||p);return c>3&&p&&Object.defineProperty(n,r,p),p}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 c(p){return p instanceof r?p:new r(function(g){g(p)})}return new(r||(r=Promise))(function(p,g){function h(E){try{A(s.next(E))}catch(N){g(N)}}function S(E){try{A(s.throw(E))}catch(N){g(N)}}function A(E){E.done?p(E.value):c(E.value).then(h,S)}A((s=s.apply(i,n||[])).next())})}function ad(i,n){var r={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},s,c,p,g;return g={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function h(A){return function(E){return S([A,E])}}function S(A){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,c&&(p=A[0]&2?c.return:A[0]?c.throw||((p=c.return)&&p.call(c),0):c.next)&&!(p=p.call(c,A[1])).done)return p;switch(c=0,p&&(A=[A[0]&2,p.value]),A[0]){case 0:case 1:p=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,c=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(p=r.trys,!(p=p.length>0&&p[p.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!p||A[1]>p[0]&&A[1]<p[3])){r.label=A[1];break}if(A[0]===6&&r.label<p[1]){r.label=p[1],p=A;break}if(p&&r.label<p[2]){r.label=p[2],r.ops.push(A);break}p[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(i,r)}catch(E){A=[6,E],c=0}finally{s=p=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 vs(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),c,p=[],g;try{for(;(n===void 0||n-- >0)&&!(c=s.next()).done;)p.push(c.value)}catch(h){g={error:h}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(g)throw g.error}}return p}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),c=0,n=0;n<r;n++)for(var p=arguments[n],g=0,h=p.length;g<h;g++,c++)s[c]=p[g];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||[]),c,p=[];return c={},g("next"),g("throw"),g("return"),c[Symbol.asyncIterator]=function(){return this},c;function g(k){s[k]&&(c[k]=function(L){return new Promise(function($,j){p.push([k,L,$,j])>1||h(k,L)})})}function h(k,L){try{S(s[k](L))}catch($){N(p[0][3],$)}}function S(k){k.value instanceof ai?Promise.resolve(k.value.v).then(A,E):N(p[0][2],k)}function A(k){h("next",k)}function E(k){h("throw",k)}function N(k,L){k(L),p.shift(),p.length&&h(p[0][0],p[0][1])}}function dd(i){var n,r;return n={},s("next"),s("throw",function(c){throw c}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(c,p){n[c]=i[c]?function(g){return(r=!r)?{value:ai(i[c](g)),done:c==="return"}:p?p(g):g}:p}}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 vs=="function"?vs(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(p){r[p]=i[p]&&function(g){return new Promise(function(h,S){g=i[p](g),c(h,S,g.done,g.value)})}}function c(p,g,h,S){Promise.resolve(S).then(function(A){p({value:A,done:h})},g)}}function gd(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function md(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 vd(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 ms},__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:vd,__importStar:md,__makeTemplateObject:gd,__metadata:od,__param:id,__read:Il,__rest:nd,__spread:cd,__spreadArrays:fd,__values:vs},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 c=0,p=s.byteLength;if(this.bytesHashed+=p,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;p>0;)this.buffer[this.bufferLength++]=s[c++],p--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,c=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),p=this.bufferLength;if(c.setUint8(this.bufferLength++,128),p%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var g=this.bufferLength;g<i.BLOCK_SIZE;g++)c.setUint8(g,0);this.hashBuffer(),this.bufferLength=0}for(var g=this.bufferLength;g<i.BLOCK_SIZE-8;g++)c.setUint8(g,0);c.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),c.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var h=new Uint8Array(i.DIGEST_LENGTH),g=0;g<8;g++)h[g*4]=this.state[g]>>>24&255,h[g*4+1]=this.state[g]>>>16&255,h[g*4+2]=this.state[g]>>>8&255,h[g*4+3]=this.state[g]>>>0&255;return h},r.prototype.hashBuffer=function(){for(var s=this,c=s.buffer,p=s.state,g=p[0],h=p[1],S=p[2],A=p[3],E=p[4],N=p[5],k=p[6],L=p[7],$=0;$<i.BLOCK_SIZE;$++){if($<16)this.temp[$]=(c[$*4]&255)<<24|(c[$*4+1]&255)<<16|(c[$*4+2]&255)<<8|c[$*4+3]&255;else{var j=this.temp[$-2],K=(j>>>17|j<<15)^(j>>>19|j<<13)^j>>>10;j=this.temp[$-15];var se=(j>>>7|j<<25)^(j>>>18|j<<14)^j>>>3;this.temp[$]=(K+this.temp[$-7]|0)+(se+this.temp[$-16]|0)}var le=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&N^~E&k)|0)+(L+(i.KEY[$]+this.temp[$]|0)|0)|0,re=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&h^g&S^h&S)|0;L=k,k=N,N=E,E=A+le|0,A=S,S=h,h=g,g=le+re|0}p[0]+=g,p[1]+=h,p[2]+=S,p[3]+=A,p[4]+=E,p[5]+=N,p[6]+=k,p[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 c=i.charCodeAt(r);if(c<128)n.push(c);else if(c<2048)n.push(c>>6|192,c&63|128);else if(r+1<i.length&&(c&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const p=65536+((c&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else n.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(n)},Cd=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const c=i[r];if(c<128)n+=String.fromCharCode(c);else if(192<=c&&c<224){const p=i[++r];n+=String.fromCharCode((c&31)<<6|p&63)}else if(240<=c&&c<365){const p="%"+[c,i[++r],i[++r],i[++r]].map(g=>g.toString(16)).join("%");n+=decodeURIComponent(p)}else n+=String.fromCharCode((c&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 c=kd();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return c.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(),c=function(){function g(h){if(this.hash=new r.RawSha256,h){this.outer=new r.RawSha256;var S=p(h),A=new Uint8Array(n.BLOCK_SIZE);A.set(S);for(var E=0;E<n.BLOCK_SIZE;E++)S[E]^=54,A[E]^=92;this.hash.update(S),this.outer.update(A);for(var E=0;E<S.byteLength;E++)S[E]=0}}return g.prototype.update=function(h){if(!((0,s.isEmptyData)(h)||this.error))try{this.hash.update((0,s.convertToBuffer)(h))}catch(S){this.error=S}},g.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()},g.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},g}();li.Sha256=c;function p(g){var h=(0,s.convertToBuffer)(g);if(h.byteLength>n.BLOCK_SIZE){var S=new r.RawSha256;S.update(h),h=S.digest()}var A=new Uint8Array(n.BLOCK_SIZE);return A.set(h),A}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,c,p){for(;--p>=0;){var g=n*this[i++]+r[s]+c;c=Math.floor(g/67108864),r[s++]=g&67108863}return c}function jd(i,n,r,s,c,p){for(var g=n&32767,h=n>>15;--p>=0;){var S=this[i]&32767,A=this[i++]>>15,E=h*S+A*g;S=g*S+((E&32767)<<15)+r[s]+(c&1073741823),c=(S>>>30)+(E>>>15)+h*A+(c>>>30),r[s++]=S&1073741823}return c}function Yd(i,n,r,s,c,p){for(var g=n&16383,h=n>>14;--p>=0;){var S=this[i]&16383,A=this[i++]>>14,E=h*S+A*g;S=g*S+((E&16383)<<14)+r[s]+c,c=(S>>28)+(E>>14)+h*A,r[s++]=S&268435455}return c}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,c=!1,p=0;--s>=0;){var g=Wd(i,s);if(g<0){i.charAt(s)=="-"&&(c=!0);continue}c=!1,p==0?this[this.t++]=g:p+r>this.DB?(this[this.t-1]|=(g&(1<<this.DB-p)-1)<<p,this[this.t++]=g>>this.DB-p):this[this.t-1]|=g<<p,p+=r,p>=this.DB&&(p-=this.DB)}this.clamp(),c&&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,c=!1,p="",g=this.t,h=this.DB-g*this.DB%n;if(g-- >0)for(h<this.DB&&(s=this[g]>>h)>0&&(c=!0,p=Ql(s));g>=0;)h<n?(s=(this[g]&(1<<h)-1)<<n-h,s|=this[--g]>>(h+=this.DB-n)):(s=this[g]>>(h-=n)&r,h<=0&&(h+=this.DB,--g)),s>0&&(c=!0),c&&(p+=Ql(s));return c?p:"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,c=(1<<s)-1,p=Math.floor(i/this.DB),g=this.s<<r&this.DM,h;for(h=this.t-1;h>=0;--h)n[h+p+1]=this[h]>>s|g,g=(this[h]&c)<<r;for(h=p-1;h>=0;--h)n[h]=0;n[p]=g,n.t=this.t+p+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,c=this.DB-s,p=(1<<s)-1;n[0]=this[r]>>s;for(var g=r+1;g<this.t;++g)n[g-r-1]|=(this[g]&p)<<c,n[g-r]=this[g]>>s;s>0&&(n[this.t-r-1]|=(this.s&p)<<c),n.t=this.t-r,n.clamp()}function np(i,n){for(var r=0,s=0,c=Math.min(i.t,this.t);r<c;)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(),c=r.t;for(n.t=c+s.t;--c>=0;)n[c]=0;for(c=0;c<s.t;++c)n[c+r.t]=r.am(0,s[c],n,c,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 c=this.abs();if(c.t<s.t){n?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Rt());var p=Rt(),g=this.s,h=i.s,S=this.DB-ws(s[s.t-1]);S>0?(s.lShiftTo(S,p),c.lShiftTo(S,r)):(s.copyTo(p),c.copyTo(r));var A=p.t,E=p[A-1];if(E!=0){var N=E*(1<<this.F1)+(A>1?p[A-2]>>this.F2:0),k=this.FV/N,L=(1<<this.F1)/N,$=1<<this.F2,j=r.t,K=j-A,se=n??Rt();for(p.dlShiftTo(K,se),r.compareTo(se)>=0&&(r[r.t++]=1,r.subTo(se,r)),je.ONE.dlShiftTo(A,se),se.subTo(p,p);p.t<A;)p[p.t++]=0;for(;--K>=0;){var le=r[--j]==E?this.DM:Math.floor(r[j]*k+(r[j-1]+$)*L);if((r[j]+=p.am(0,le,r,K,0,A))<le)for(p.dlShiftTo(K,se),r.subTo(se,r);r[j]<--le;)r.subTo(se,r)}n!=null&&(r.drShiftTo(A,n),g!=h&&je.ZERO.subTo(n,n)),r.t=A,r.clamp(),S>0&&r.rShiftTo(S,r),g<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,c=Math.min(i.t,this.t);r<c;)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 mp(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 vp(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=mp,Pr.prototype.mulTo=yp,Pr.prototype.sqrTo=vp;function _p(i,n,r){var s=i.bitLength(),c,p=_s(1),g=new Pr(n);if(s<=0)return p;s<18?c=1:s<48?c=3:s<144?c=4:s<768?c=5:c=6;var h=new Array,S=3,A=c-1,E=(1<<c)-1;if(h[1]=g.convert(this),c>1){var N=Rt();for(g.sqrTo(h[1],N);S<=E;)h[S]=Rt(),g.mulTo(N,h[S-2],h[S]),S+=2}var k=i.t-1,L,$=!0,j=Rt(),K;for(s=ws(i[k])-1;k>=0;){for(s>=A?L=i[k]>>s-A&E:(L=(i[k]&(1<<s+1)-1)<<A-s,k>0&&(L|=i[k-1]>>this.DB+s-A)),S=c;(L&1)==0;)L>>=1,--S;if((s-=S)<0&&(s+=this.DB,--k),$)h[L].copyTo(p),$=!1;else{for(;S>1;)g.sqrTo(p,j),g.sqrTo(j,p),S-=2;S>0?g.sqrTo(p,j):(K=p,p=j,j=K),g.mulTo(j,h[L],p)}for(;k>=0&&(i[k]&1<<s)==0;)g.sqrTo(p,j),K=p,p=j,j=K,--s<0&&(s=this.DB-1,--k)}var se=g.revert(p);return r(null,se),se}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 c=new XMLHttpRequest,p=[],g=[],h={},S=function(){return{ok:(c.status/100|0)==2,statusText:c.statusText,status:c.status,url:c.responseURL,text:function(){return Promise.resolve(c.responseText)},json:function(){return Promise.resolve(c.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([c.response]))},clone:S,headers:{keys:function(){return p},entries:function(){return g},get:function(E){return h[E.toLowerCase()]},has:function(E){return E.toLowerCase()in h}}}};for(var A in c.open(n.method||"get",i,!0),c.onload=function(){c.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(E,N,k){p.push(N=N.toLowerCase()),g.push([N,k]),h[N]=h[N]?h[N]+","+k:k}),r(S())},c.onerror=s,c.withCredentials=n.credentials=="include",n.headers)c.setRequestHeader(A,n.headers[A]);c.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();/*!
|
|
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 ms=function(){return ms=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},ms.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,p=u<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,n,r,s);else for(var h=i.length-1;h>=0;h--)(g=i[h])&&(p=(u<3?g(p):u>3?g(n,r,p):g(n,r))||p);return u>3&&p&&Object.defineProperty(n,r,p),p}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(p){return p instanceof r?p:new r(function(g){g(p)})}return new(r||(r=Promise))(function(p,g){function h(E){try{A(s.next(E))}catch(N){g(N)}}function S(E){try{A(s.throw(E))}catch(N){g(N)}}function A(E){E.done?p(E.value):u(E.value).then(h,S)}A((s=s.apply(i,n||[])).next())})}function ad(i,n){var r={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},s,u,p,g;return g={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function h(A){return function(E){return S([A,E])}}function S(A){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,u&&(p=A[0]&2?u.return:A[0]?u.throw||((p=u.return)&&p.call(u),0):u.next)&&!(p=p.call(u,A[1])).done)return p;switch(u=0,p&&(A=[A[0]&2,p.value]),A[0]){case 0:case 1:p=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(p=r.trys,!(p=p.length>0&&p[p.length-1])&&(A[0]===6||A[0]===2)){r=0;continue}if(A[0]===3&&(!p||A[1]>p[0]&&A[1]<p[3])){r.label=A[1];break}if(A[0]===6&&r.label<p[1]){r.label=p[1],p=A;break}if(p&&r.label<p[2]){r.label=p[2],r.ops.push(A);break}p[2]&&r.ops.pop(),r.trys.pop();continue}A=n.call(i,r)}catch(E){A=[6,E],u=0}finally{s=p=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 vs(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,p=[],g;try{for(;(n===void 0||n-- >0)&&!(u=s.next()).done;)p.push(u.value)}catch(h){g={error:h}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(g)throw g.error}}return p}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 p=arguments[n],g=0,h=p.length;g<h;g++,u++)s[u]=p[g];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,p=[];return u={},g("next"),g("throw"),g("return"),u[Symbol.asyncIterator]=function(){return this},u;function g(k){s[k]&&(u[k]=function(L){return new Promise(function(I,B){p.push([k,L,I,B])>1||h(k,L)})})}function h(k,L){try{S(s[k](L))}catch(I){N(p[0][3],I)}}function S(k){k.value instanceof ai?Promise.resolve(k.value.v).then(A,E):N(p[0][2],k)}function A(k){h("next",k)}function E(k){h("throw",k)}function N(k,L){k(L),p.shift(),p.length&&h(p[0][0],p[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,p){n[u]=i[u]?function(g){return(r=!r)?{value:ai(i[u](g)),done:u==="return"}:p?p(g):g}:p}}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 vs=="function"?vs(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(p){r[p]=i[p]&&function(g){return new Promise(function(h,S){g=i[p](g),u(h,S,g.done,g.value)})}}function u(p,g,h,S){Promise.resolve(S).then(function(A){p({value:A,done:h})},g)}}function gd(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function md(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 vd(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 ms},__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:vd,__importStar:md,__makeTemplateObject:gd,__metadata:od,__param:id,__read:Il,__rest:nd,__spread:cd,__spreadArrays:fd,__values:vs},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,p=s.byteLength;if(this.bytesHashed+=p,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;p>0;)this.buffer[this.bufferLength++]=s[u++],p--,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),p=this.bufferLength;if(u.setUint8(this.bufferLength++,128),p%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var g=this.bufferLength;g<i.BLOCK_SIZE;g++)u.setUint8(g,0);this.hashBuffer(),this.bufferLength=0}for(var g=this.bufferLength;g<i.BLOCK_SIZE-8;g++)u.setUint8(g,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),g=0;g<8;g++)h[g*4]=this.state[g]>>>24&255,h[g*4+1]=this.state[g]>>>16&255,h[g*4+2]=this.state[g]>>>8&255,h[g*4+3]=this.state[g]>>>0&255;return h},r.prototype.hashBuffer=function(){for(var s=this,u=s.buffer,p=s.state,g=p[0],h=p[1],S=p[2],A=p[3],E=p[4],N=p[5],k=p[6],L=p[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],Z=(B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10;B=this.temp[I-15];var ae=(B>>>7|B<<25)^(B>>>18|B<<14)^B>>>3;this.temp[I]=(Z+this.temp[I-7]|0)+(ae+this.temp[I-16]|0)}var ue=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&N^~E&k)|0)+(L+(i.KEY[I]+this.temp[I]|0)|0)|0,oe=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&h^g&S^h&S)|0;L=k,k=N,N=E,E=A+ue|0,A=S,S=h,h=g,g=ue+oe|0}p[0]+=g,p[1]+=h,p[2]+=S,p[3]+=A,p[4]+=E,p[5]+=N,p[6]+=k,p[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 p=65536+((u&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&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 p=i[++r];n+=String.fromCharCode((u&31)<<6|p&63)}else if(240<=u&&u<365){const p="%"+[u,i[++r],i[++r],i[++r]].map(g=>g.toString(16)).join("%");n+=decodeURIComponent(p)}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 g(h){if(this.hash=new r.RawSha256,h){this.outer=new r.RawSha256;var S=p(h),A=new Uint8Array(n.BLOCK_SIZE);A.set(S);for(var E=0;E<n.BLOCK_SIZE;E++)S[E]^=54,A[E]^=92;this.hash.update(S),this.outer.update(A);for(var E=0;E<S.byteLength;E++)S[E]=0}}return g.prototype.update=function(h){if(!((0,s.isEmptyData)(h)||this.error))try{this.hash.update((0,s.convertToBuffer)(h))}catch(S){this.error=S}},g.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()},g.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},g}();li.Sha256=u;function p(g){var h=(0,s.convertToBuffer)(g);if(h.byteLength>n.BLOCK_SIZE){var S=new r.RawSha256;S.update(h),h=S.digest()}var A=new Uint8Array(n.BLOCK_SIZE);return A.set(h),A}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,p){for(;--p>=0;){var g=n*this[i++]+r[s]+u;u=Math.floor(g/67108864),r[s++]=g&67108863}return u}function jd(i,n,r,s,u,p){for(var g=n&32767,h=n>>15;--p>=0;){var S=this[i]&32767,A=this[i++]>>15,E=h*S+A*g;S=g*S+((E&32767)<<15)+r[s]+(u&1073741823),u=(S>>>30)+(E>>>15)+h*A+(u>>>30),r[s++]=S&1073741823}return u}function Yd(i,n,r,s,u,p){for(var g=n&16383,h=n>>14;--p>=0;){var S=this[i]&16383,A=this[i++]>>14,E=h*S+A*g;S=g*S+((E&16383)<<14)+r[s]+u,u=(S>>28)+(E>>14)+h*A,r[s++]=S&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,p=0;--s>=0;){var g=Wd(i,s);if(g<0){i.charAt(s)=="-"&&(u=!0);continue}u=!1,p==0?this[this.t++]=g:p+r>this.DB?(this[this.t-1]|=(g&(1<<this.DB-p)-1)<<p,this[this.t++]=g>>this.DB-p):this[this.t-1]|=g<<p,p+=r,p>=this.DB&&(p-=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,p="",g=this.t,h=this.DB-g*this.DB%n;if(g-- >0)for(h<this.DB&&(s=this[g]>>h)>0&&(u=!0,p=Ql(s));g>=0;)h<n?(s=(this[g]&(1<<h)-1)<<n-h,s|=this[--g]>>(h+=this.DB-n)):(s=this[g]>>(h-=n)&r,h<=0&&(h+=this.DB,--g)),s>0&&(u=!0),u&&(p+=Ql(s));return u?p:"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,p=Math.floor(i/this.DB),g=this.s<<r&this.DM,h;for(h=this.t-1;h>=0;--h)n[h+p+1]=this[h]>>s|g,g=(this[h]&u)<<r;for(h=p-1;h>=0;--h)n[h]=0;n[p]=g,n.t=this.t+p+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,p=(1<<s)-1;n[0]=this[r]>>s;for(var g=r+1;g<this.t;++g)n[g-r-1]|=(this[g]&p)<<u,n[g-r]=this[g]>>s;s>0&&(n[this.t-r-1]|=(this.s&p)<<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 p=Rt(),g=this.s,h=i.s,S=this.DB-ws(s[s.t-1]);S>0?(s.lShiftTo(S,p),u.lShiftTo(S,r)):(s.copyTo(p),u.copyTo(r));var A=p.t,E=p[A-1];if(E!=0){var N=E*(1<<this.F1)+(A>1?p[A-2]>>this.F2:0),k=this.FV/N,L=(1<<this.F1)/N,I=1<<this.F2,B=r.t,Z=B-A,ae=n??Rt();for(p.dlShiftTo(Z,ae),r.compareTo(ae)>=0&&(r[r.t++]=1,r.subTo(ae,r)),je.ONE.dlShiftTo(A,ae),ae.subTo(p,p);p.t<A;)p[p.t++]=0;for(;--Z>=0;){var ue=r[--B]==E?this.DM:Math.floor(r[B]*k+(r[B-1]+I)*L);if((r[B]+=p.am(0,ue,r,Z,0,A))<ue)for(p.dlShiftTo(Z,ae),r.subTo(ae,r);r[B]<--ue;)r.subTo(ae,r)}n!=null&&(r.drShiftTo(A,n),g!=h&&je.ZERO.subTo(n,n)),r.t=A,r.clamp(),S>0&&r.rShiftTo(S,r),g<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 mp(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 vp(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=mp,Pr.prototype.mulTo=yp,Pr.prototype.sqrTo=vp;function _p(i,n,r){var s=i.bitLength(),u,p=_s(1),g=new Pr(n);if(s<=0)return p;s<18?u=1:s<48?u=3:s<144?u=4:s<768?u=5:u=6;var h=new Array,S=3,A=u-1,E=(1<<u)-1;if(h[1]=g.convert(this),u>1){var N=Rt();for(g.sqrTo(h[1],N);S<=E;)h[S]=Rt(),g.mulTo(N,h[S-2],h[S]),S+=2}var k=i.t-1,L,I=!0,B=Rt(),Z;for(s=ws(i[k])-1;k>=0;){for(s>=A?L=i[k]>>s-A&E:(L=(i[k]&(1<<s+1)-1)<<A-s,k>0&&(L|=i[k-1]>>this.DB+s-A)),S=u;(L&1)==0;)L>>=1,--S;if((s-=S)<0&&(s+=this.DB,--k),I)h[L].copyTo(p),I=!1;else{for(;S>1;)g.sqrTo(p,B),g.sqrTo(B,p),S-=2;S>0?g.sqrTo(p,B):(Z=p,p=B,B=Z),g.mulTo(B,h[L],p)}for(;k>=0&&(i[k]&1<<s)==0;)g.sqrTo(p,B),Z=p,p=B,B=Z,--s<0&&(s=this.DB-1,--k)}var ae=g.revert(p);return r(null,ae),ae}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,p=[],g=[],h={},S=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:S,headers:{keys:function(){return p},entries:function(){return g},get:function(E){return h[E.toLowerCase()]},has:function(E){return E.toLowerCase()in h}}}};for(var A in u.open(n.method||"get",i,!0),u.onload=function(){u.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(E,N,k){p.push(N=N.toLowerCase()),g.push([N,k]),h[N]=h[N]?h[N]+","+k:k}),r(S())},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=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,21 +110,21 @@ 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
|
|
114
|
-
`}return Xe%2&&Ce>0?rt.substring(0,rt.length-Xe-1)+Array(Xe+1).join("▀"):rt.substring(0,rt.length-1)}(
|
|
115
|
-
`}return te.substring(0,te.length-1)},C.renderTo2dContext=function(Y,V){V=V||2;for(var U=C.getModuleCount(),G=0;G<U;G++)for(var ee=0;ee<U;ee++)Y.fillStyle=C.isDark(G,ee)?"black":"white",Y.fillRect(G*V,ee*V,V,V)},C};N.stringToBytes=(N.stringToBytesFuncs={default:function(T){for(var M=[],O=0;O<T.length;O+=1){var m=T.charCodeAt(O);M.push(255&m)}return M}}).default,N.createStringToBytes=function(T,M){var O=function(){for(var d=Ae(T),w=function(){var ie=d.read();if(ie==-1)throw"eof";return ie},u=0,v={};;){var C=d.read();if(C==-1)break;var I=w(),B=w()<<8|w();v[String.fromCharCode(C<<8|I)]=B,u+=1}if(u!=M)throw u+" != "+M;return v}(),m=63;return function(d){for(var w=[],u=0;u<d.length;u+=1){var v=d.charCodeAt(u);if(v<128)w.push(v);else{var C=O[d.charAt(u)];typeof C=="number"?(255&C)==C?w.push(C):(w.push(C>>>8),w.push(255&C)):w.push(m)}}return w}};var k,L,$,j,K,se={L:1,M:0,Q:3,H:2},le=(k=[[],[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,$=7973,K=function(T){for(var M=0;T!=0;)M+=1,T>>>=1;return M},(j={}).getBCHTypeInfo=function(T){for(var M=T<<10;K(M)-K(L)>=0;)M^=L<<K(M)-K(L);return 21522^(T<<10|M)},j.getBCHTypeNumber=function(T){for(var M=T<<12;K(M)-K($)>=0;)M^=$<<K(M)-K($);return T<<12|M},j.getPatternPosition=function(T){return k[T-1]},j.getMaskFunction=function(T){switch(T){case 0:return function(M,O){return(M+O)%2==0};case 1:return function(M,O){return M%2==0};case 2:return function(M,O){return O%3==0};case 3:return function(M,O){return(M+O)%3==0};case 4:return function(M,O){return(Math.floor(M/2)+Math.floor(O/3))%2==0};case 5:return function(M,O){return M*O%2+M*O%3==0};case 6:return function(M,O){return(M*O%2+M*O%3)%2==0};case 7:return function(M,O){return(M*O%3+(M+O)%2)%2==0};default:throw"bad maskPattern:"+T}},j.getErrorCorrectPolynomial=function(T){for(var M=he([1],0),O=0;O<T;O+=1)M=M.multiply(he([1,re.gexp(O)],0));return M},j.getLengthInBits=function(T,M){if(1<=M&&M<10)switch(T){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+T}else if(M<27)switch(T){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+T}else{if(!(M<41))throw"type:"+M;switch(T){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+T}}},j.getLostPoint=function(T){for(var M=T.getModuleCount(),O=0,m=0;m<M;m+=1)for(var d=0;d<M;d+=1){for(var w=0,u=T.isDark(m,d),v=-1;v<=1;v+=1)if(!(m+v<0||M<=m+v))for(var C=-1;C<=1;C+=1)d+C<0||M<=d+C||v==0&&C==0||u==T.isDark(m+v,d+C)&&(w+=1);w>5&&(O+=3+w-5)}for(m=0;m<M-1;m+=1)for(d=0;d<M-1;d+=1){var I=0;T.isDark(m,d)&&(I+=1),T.isDark(m+1,d)&&(I+=1),T.isDark(m,d+1)&&(I+=1),T.isDark(m+1,d+1)&&(I+=1),I!=0&&I!=4||(O+=3)}for(m=0;m<M;m+=1)for(d=0;d<M-6;d+=1)T.isDark(m,d)&&!T.isDark(m,d+1)&&T.isDark(m,d+2)&&T.isDark(m,d+3)&&T.isDark(m,d+4)&&!T.isDark(m,d+5)&&T.isDark(m,d+6)&&(O+=40);for(d=0;d<M;d+=1)for(m=0;m<M-6;m+=1)T.isDark(m,d)&&!T.isDark(m+1,d)&&T.isDark(m+2,d)&&T.isDark(m+3,d)&&T.isDark(m+4,d)&&!T.isDark(m+5,d)&&T.isDark(m+6,d)&&(O+=40);var B=0;for(d=0;d<M;d+=1)for(m=0;m<M;m+=1)T.isDark(m,d)&&(B+=1);return O+Math.abs(100*B/M/M-50)/5*10},j),re=function(){for(var T=new Array(256),M=new Array(256),O=0;O<8;O+=1)T[O]=1<<O;for(O=8;O<256;O+=1)T[O]=T[O-4]^T[O-5]^T[O-6]^T[O-8];for(O=0;O<255;O+=1)M[T[O]]=O;return{glog:function(m){if(m<1)throw"glog("+m+")";return M[m]},gexp:function(m){for(;m<0;)m+=255;for(;m>=256;)m-=255;return T[m]}}}();function he(T,M){if(T.length===void 0)throw T.length+"/"+M;var O=function(){for(var d=0;d<T.length&&T[d]==0;)d+=1;for(var w=new Array(T.length-d+M),u=0;u<T.length-d;u+=1)w[u]=T[u+d];return w}(),m={getAt:function(d){return O[d]},getLength:function(){return O.length},multiply:function(d){for(var w=new Array(m.getLength()+d.getLength()-1),u=0;u<m.getLength();u+=1)for(var v=0;v<d.getLength();v+=1)w[u+v]^=re.gexp(re.glog(m.getAt(u))+re.glog(d.getAt(v)));return he(w,0)},mod:function(d){if(m.getLength()-d.getLength()<0)return m;for(var w=re.glog(m.getAt(0))-re.glog(d.getAt(0)),u=new Array(m.getLength()),v=0;v<m.getLength();v+=1)u[v]=m.getAt(v);for(v=0;v<d.getLength();v+=1)u[v]^=re.gexp(re.glog(d.getAt(v))+w);return he(u,0).mod(d)}};return m}var Z=function(){var T=[[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]],M=function(m,d){var w={};return w.totalCount=m,w.dataCount=d,w},O={getRSBlocks:function(m,d){var w=function(we,J){switch(J){case se.L:return T[4*(we-1)+0];case se.M:return T[4*(we-1)+1];case se.Q:return T[4*(we-1)+2];case se.H:return T[4*(we-1)+3];default:return}}(m,d);if(w===void 0)throw"bad rs block @ typeNumber:"+m+"/errorCorrectionLevel:"+d;for(var u=w.length/3,v=[],C=0;C<u;C+=1)for(var I=w[3*C+0],B=w[3*C+1],ie=w[3*C+2],ce=0;ce<I;ce+=1)v.push(M(B,ie));return v}};return O}(),ae=function(){var T=[],M=0,O={getBuffer:function(){return T},getAt:function(m){var d=Math.floor(m/8);return(T[d]>>>7-m%8&1)==1},put:function(m,d){for(var w=0;w<d;w+=1)O.putBit((m>>>d-w-1&1)==1)},getLengthInBits:function(){return M},putBit:function(m){var d=Math.floor(M/8);T.length<=d&&T.push(0),m&&(T[d]|=128>>>M%8),M+=1}};return O},Q=function(T){var M=T,O={getMode:function(){return 1},getLength:function(w){return M.length},write:function(w){for(var u=M,v=0;v+2<u.length;)w.put(m(u.substring(v,v+3)),10),v+=3;v<u.length&&(u.length-v==1?w.put(m(u.substring(v,v+1)),4):u.length-v==2&&w.put(m(u.substring(v,v+2)),7))}},m=function(w){for(var u=0,v=0;v<w.length;v+=1)u=10*u+d(w.charAt(v));return u},d=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return O},X=function(T){var M=T,O={getMode:function(){return 2},getLength:function(d){return M.length},write:function(d){for(var w=M,u=0;u+1<w.length;)d.put(45*m(w.charAt(u))+m(w.charAt(u+1)),11),u+=2;u<w.length&&d.put(m(w.charAt(u)),6)}},m=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 O},de=function(T){var M=N.stringToBytes(T);return{getMode:function(){return 4},getLength:function(O){return M.length},write:function(O){for(var m=0;m<M.length;m+=1)O.put(M[m],8)}}},ue=function(T){var M=N.stringToBytesFuncs.SJIS;if(!M)throw"sjis not supported.";(function(){var d=M("友");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var O=M(T),m={getMode:function(){return 8},getLength:function(d){return~~(O.length/2)},write:function(d){for(var w=O,u=0;u+1<w.length;){var v=(255&w[u])<<8|255&w[u+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(u+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),d.put(v,13),u+=2}if(u<w.length)throw"illegal char at "+(u+1)}};return m},ne=function(){var T=[],M={writeByte:function(O){T.push(255&O)},writeShort:function(O){M.writeByte(O),M.writeByte(O>>>8)},writeBytes:function(O,m,d){m=m||0,d=d||O.length;for(var w=0;w<d;w+=1)M.writeByte(O[w+m])},writeString:function(O){for(var m=0;m<O.length;m+=1)M.writeByte(O.charCodeAt(m))},toByteArray:function(){return T},toString:function(){var O="";O+="[";for(var m=0;m<T.length;m+=1)m>0&&(O+=","),O+=T[m];return O+"]"}};return M},Ae=function(T){var M=T,O=0,m=0,d=0,w={read:function(){for(;d<8;){if(O>=M.length){if(d==0)return-1;throw"unexpected end of file./"+d}var v=M.charAt(O);if(O+=1,v=="=")return d=0,-1;v.match(/^\s$/)||(m=m<<6|u(v.charCodeAt(0)),d+=6)}var C=m>>>d-8&255;return d-=8,C}},u=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},Oe=function(T,M,O){for(var m=function(B,ie){var ce=B,we=ie,J=new Array(B*ie),be={setPixel:function(Y,V,U){J[V*ce+Y]=U},write:function(Y){Y.writeString("GIF87a"),Y.writeShort(ce),Y.writeShort(we),Y.writeByte(128),Y.writeByte(0),Y.writeByte(0),Y.writeByte(0),Y.writeByte(0),Y.writeByte(0),Y.writeByte(255),Y.writeByte(255),Y.writeByte(255),Y.writeString(","),Y.writeShort(0),Y.writeShort(0),Y.writeShort(ce),Y.writeShort(we),Y.writeByte(0);var V=_e(2);Y.writeByte(2);for(var U=0;V.length-U>255;)Y.writeByte(255),Y.writeBytes(V,U,255),U+=255;Y.writeByte(V.length-U),Y.writeBytes(V,U,V.length-U),Y.writeByte(0),Y.writeString(";")}},_e=function(Y){for(var V=1<<Y,U=1+(1<<Y),G=Y+1,ee=me(),Se=0;Se<V;Se+=1)ee.add(String.fromCharCode(Se));ee.add(String.fromCharCode(V)),ee.add(String.fromCharCode(U));var l,f,_,R=ne(),z=(l=R,f=0,_=0,{write:function(Pe,ve){if(Pe>>>ve)throw"length over";for(;f+ve>=8;)l.writeByte(255&(Pe<<f|_)),ve-=8-f,Pe>>>=8-f,_=0,f=0;_|=Pe<<f,f+=ve},flush:function(){f>0&&l.writeByte(_)}});z.write(V,G);var te=0,De=String.fromCharCode(J[te]);for(te+=1;te<J.length;){var Ce=String.fromCharCode(J[te]);te+=1,ee.contains(De+Ce)?De+=Ce:(z.write(ee.indexOf(De),G),ee.size()<4095&&(ee.size()==1<<G&&(G+=1),ee.add(De+Ce)),De=Ce)}return z.write(ee.indexOf(De),G),z.write(U,G),z.flush(),R.toByteArray()},me=function(){var Y={},V=0,U={add:function(G){if(U.contains(G))throw"dup key:"+G;Y[G]=V,V+=1},size:function(){return V},indexOf:function(G){return Y[G]},contains:function(G){return Y[G]!==void 0}};return U};return be}(T,M),d=0;d<M;d+=1)for(var w=0;w<T;w+=1)m.setPixel(w,d,O(w,d));var u=ne();m.write(u);for(var v=function(){var B=0,ie=0,ce=0,we="",J={},be=function(me){we+=String.fromCharCode(_e(63&me))},_e=function(me){if(!(me<0)){if(me<26)return 65+me;if(me<52)return me-26+97;if(me<62)return me-52+48;if(me==62)return 43;if(me==63)return 47}throw"n:"+me};return J.writeByte=function(me){for(B=B<<8|255&me,ie+=8,ce+=1;ie>=6;)be(B>>>ie-6),ie-=6},J.flush=function(){if(ie>0&&(be(B<<6-ie),B=0,ie=0),ce%3!=0)for(var me=3-ce%3,Y=0;Y<me;Y+=1)we+="="},J.toString=function(){return we},J}(),C=u.toByteArray(),I=0;I<C.length;I+=1)v.writeByte(C[I]);return v.flush(),"data:image/gif;base64,"+v};return N}();E.stringToBytesFuncs["UTF-8"]=function(N){return function(k){for(var L=[],$=0;$<k.length;$++){var j=k.charCodeAt($);j<128?L.push(j):j<2048?L.push(192|j>>6,128|63&j):j<55296||j>=57344?L.push(224|j>>12,128|j>>6&63,128|63&j):($++,j=65536+((1023&j)<<10|1023&k.charCodeAt($)),L.push(240|j>>18,128|j>>12&63,128|j>>6&63,128|63&j))}return L}(N)},(A=typeof(S=function(){return E})=="function"?S.apply(h,[]):S)===void 0||(g.exports=A)}},s={};function c(g){var h=s[g];if(h!==void 0)return h.exports;var S=s[g]={exports:{}};return r[g](S,S.exports,c),S.exports}c.n=g=>{var h=g&&g.__esModule?()=>g.default:()=>g;return c.d(h,{a:h}),h},c.d=(g,h)=>{for(var S in h)c.o(h,S)&&!c.o(g,S)&&Object.defineProperty(g,S,{enumerable:!0,get:h[S]})},c.o=(g,h)=>Object.prototype.hasOwnProperty.call(g,h);var p={};return(()=>{c.d(p,{default:()=>M});const g=O=>!!O&&typeof O=="object"&&!Array.isArray(O);function h(O,...m){if(!m.length)return O;const d=m.shift();return d!==void 0&&g(O)&&g(d)?(O=Object.assign({},O),Object.keys(d).forEach(w=>{const u=O[w],v=d[w];Array.isArray(u)&&Array.isArray(v)?O[w]=v:g(u)&&g(v)?O[w]=h(Object.assign({},u),v):O[w]=v}),h(O,...m)):O}function S(O,m){const d=document.createElement("a");d.download=m,d.href=O,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const A={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:m,type:d,window:w}){this._svg=m,this._type=d,this._window=w}draw(m,d,w,u){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:m,y:d,size:w,getNeighbor:u})}_rotateFigure({x:m,y:d,size:w,rotation:u=0,draw:v}){var C;const I=m+w/2,B=d+w/2;v(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*u/Math.PI},${I},${B})`)}_basicDot(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(u+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(u)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${u}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${u}v ${d}h ${d}v `+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_basicCornerExtraRounded(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${u}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${w} ${u}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:m,y:d,size:w}){this._basicDot({x:m,y:d,size:w,rotation:0})}_drawSquare({x:m,y:d,size:w}){this._basicSquare({x:m,y:d,size:w,rotation:0})}_drawRounded({x:m,y:d,size:w,getNeighbor:u}){const v=u?+u(-1,0):0,C=u?+u(1,0):0,I=u?+u(0,-1):0,B=u?+u(0,1):0,ie=v+C+I+B;if(ie!==0)if(ie>2||v&&C||I&&B)this._basicSquare({x:m,y:d,size:w,rotation:0});else{if(ie===2){let ce=0;return v&&I?ce=Math.PI/2:I&&C?ce=Math.PI:C&&B&&(ce=-Math.PI/2),void this._basicCornerRounded({x:m,y:d,size:w,rotation:ce})}if(ie===1){let ce=0;return I?ce=Math.PI/2:C?ce=Math.PI:B&&(ce=-Math.PI/2),void this._basicSideRounded({x:m,y:d,size:w,rotation:ce})}}else this._basicDot({x:m,y:d,size:w,rotation:0})}_drawExtraRounded({x:m,y:d,size:w,getNeighbor:u}){const v=u?+u(-1,0):0,C=u?+u(1,0):0,I=u?+u(0,-1):0,B=u?+u(0,1):0,ie=v+C+I+B;if(ie!==0)if(ie>2||v&&C||I&&B)this._basicSquare({x:m,y:d,size:w,rotation:0});else{if(ie===2){let ce=0;return v&&I?ce=Math.PI/2:I&&C?ce=Math.PI:C&&B&&(ce=-Math.PI/2),void this._basicCornerExtraRounded({x:m,y:d,size:w,rotation:ce})}if(ie===1){let ce=0;return I?ce=Math.PI/2:C?ce=Math.PI:B&&(ce=-Math.PI/2),void this._basicSideRounded({x:m,y:d,size:w,rotation:ce})}}else this._basicDot({x:m,y:d,size:w,rotation:0})}_drawClassy({x:m,y:d,size:w,getNeighbor:u}){const v=u?+u(-1,0):0,C=u?+u(1,0):0,I=u?+u(0,-1):0,B=u?+u(0,1):0;v+C+I+B!==0?v||I?C||B?this._basicSquare({x:m,y:d,size:w,rotation:0}):this._basicCornerRounded({x:m,y:d,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:m,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:m,y:d,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:m,y:d,size:w,getNeighbor:u}){const v=u?+u(-1,0):0,C=u?+u(1,0):0,I=u?+u(0,-1):0,B=u?+u(0,1):0;v+C+I+B!==0?v||I?C||B?this._basicSquare({x:m,y:d,size:w,rotation:0}):this._basicCornerExtraRounded({x:m,y:d,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:m,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:m,y:d,size:w,rotation:Math.PI/2})}}const N={dot:"dot",square:"square",extraRounded:"extra-rounded"},k=Object.values(N);class L{constructor({svg:m,type:d,window:w}){this._svg=m,this._type=d,this._window=w}draw(m,d,w,u){let v;switch(this._type){case N.square:v=this._drawSquare;break;case N.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:m,y:d,size:w,rotation:u})}_rotateFigure({x:m,y:d,size:w,rotation:u=0,draw:v}){var C;const I=m+w/2,B=d+w/2;v(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*u/Math.PI},${I},${B})`)}_basicDot(m){const{size:d,x:w,y:u}=m,v=d/7;this._rotateFigure(Object.assign(Object.assign({},m),{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} ${u}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(m){const{size:d,x:w,y:u}=m,v=d/7;this._rotateFigure(Object.assign(Object.assign({},m),{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} ${u}v ${d}h ${d}v `+-d+`zM ${w+v} ${u+v}h `+(d-2*v)+"v "+(d-2*v)+"h "+(2*v-d)+"z")}}))}_basicExtraRounded(m){const{size:d,x:w,y:u}=m,v=d/7;this._rotateFigure(Object.assign(Object.assign({},m),{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} ${u+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} ${u+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:m,y:d,size:w,rotation:u}){this._basicDot({x:m,y:d,size:w,rotation:u})}_drawSquare({x:m,y:d,size:w,rotation:u}){this._basicSquare({x:m,y:d,size:w,rotation:u})}_drawExtraRounded({x:m,y:d,size:w,rotation:u}){this._basicExtraRounded({x:m,y:d,size:w,rotation:u})}}const $={dot:"dot",square:"square"},j=Object.values($);class K{constructor({svg:m,type:d,window:w}){this._svg=m,this._type=d,this._window=w}draw(m,d,w,u){let v;v=this._type===$.square?this._drawSquare:this._drawDot,v.call(this,{x:m,y:d,size:w,rotation:u})}_rotateFigure({x:m,y:d,size:w,rotation:u=0,draw:v}){var C;const I=m+w/2,B=d+w/2;v(),(C=this._element)===null||C===void 0||C.setAttribute("transform",`rotate(${180*u/Math.PI},${I},${B})`)}_basicDot(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(u+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(m){const{size:d,x:w,y:u}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(u)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:m,y:d,size:w,rotation:u}){this._basicDot({x:m,y:d,size:w,rotation:u})}_drawSquare({x:m,y:d,size:w,rotation:u}){this._basicSquare({x:m,y:d,size:w,rotation:u})}}const se="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]],re=[[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 he{constructor(m,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(m.width)),this._element.setAttribute("height",String(m.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),m.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${m.width} ${m.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=m.image,this._instanceId=he.instanceCount++,this._options=m}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(m){const d=m.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,u=this._options.shape===se?w/Math.sqrt(2):w,v=this._roundSize(u/d);let C={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=m,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:I,qrOptions:B}=this._options,ie=I.imageSize*A[B.errorCorrectionLevel],ce=Math.floor(ie*d*d);C=function({originalHeight:we,originalWidth:J,maxHiddenDots:be,maxHiddenAxisDots:_e,dotSize:me}){const Y={x:0,y:0},V={x:0,y:0};if(we<=0||J<=0||be<=0||me<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const U=we/J;return Y.x=Math.floor(Math.sqrt(be/U)),Y.x<=0&&(Y.x=1),_e&&_e<Y.x&&(Y.x=_e),Y.x%2==0&&Y.x--,V.x=Y.x*me,Y.y=1+2*Math.ceil((Y.x*U-1)/2),V.y=Math.round(V.x*U),(Y.y*Y.x>be||_e&&_e<Y.y)&&(_e&&_e<Y.y?(Y.y=_e,Y.y%2==0&&Y.x--):Y.y-=2,V.y=Y.y*me,Y.x=1+2*Math.ceil((Y.y/U-1)/2),V.x=Math.round(V.y/U)),{height:V.y,width:V.x,hideYDots:Y.y,hideXDots:Y.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ce,maxHiddenAxisDots:d-14,dotSize:v})}this.drawBackground(),this.drawDots((I,B)=>{var ie,ce,we,J,be,_e;return!(this._options.imageOptions.hideBackgroundDots&&I>=(d-C.hideYDots)/2&&I<(d+C.hideYDots)/2&&B>=(d-C.hideXDots)/2&&B<(d+C.hideXDots)/2||!((ie=le[I])===null||ie===void 0)&&ie[B]||!((ce=le[I-d+7])===null||ce===void 0)&&ce[B]||!((we=le[I])===null||we===void 0)&&we[B-d+7]||!((J=re[I])===null||J===void 0)&&J[B]||!((be=re[I-d+7])===null||be===void 0)&&be[B]||!((_e=re[I])===null||_e===void 0)&&_e[B-d+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:C.width,height:C.height,count:d,dotSize:v})}drawBackground(){var m,d,w;const u=this._element,v=this._options;if(u){const C=(m=v.backgroundOptions)===null||m===void 0?void 0:m.gradient,I=(d=v.backgroundOptions)===null||d===void 0?void 0:d.color;let B=v.height,ie=v.width;if(C||I){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&&(B=ie=Math.min(v.width,v.height),ce.setAttribute("rx",String(B/2*v.backgroundOptions.round))),ce.setAttribute("x",String(this._roundSize((v.width-ie)/2))),ce.setAttribute("y",String(this._roundSize((v.height-B)/2))),ce.setAttribute("width",String(ie)),ce.setAttribute("height",String(B)),this._backgroundClipPath.appendChild(ce),this._createColor({options:C,color:I,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(m){var d,w;if(!this._qr)throw"QR code is not defined";const u=this._options,v=this._qr.getModuleCount();if(v>u.width||v>u.height)throw"The canvas is too small.";const C=Math.min(u.width,u.height)-2*u.margin,I=u.shape===se?C/Math.sqrt(2):C,B=this._roundSize(I/v),ie=this._roundSize((u.width-v*B)/2),ce=this._roundSize((u.height-v*B)/2),we=new E({svg:this._element,type:u.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=u.dotsOptions)===null||d===void 0?void 0:d.gradient,color:u.dotsOptions.color,additionalRotation:0,x:0,y:0,height:u.height,width:u.width,name:`dot-color-${this._instanceId}`});for(let J=0;J<v;J++)for(let be=0;be<v;be++)m&&!m(J,be)||!((w=this._qr)===null||w===void 0)&&w.isDark(J,be)&&(we.draw(ie+be*B,ce+J*B,B,(_e,me)=>!(be+_e<0||J+me<0||be+_e>=v||J+me>=v)&&!(m&&!m(J+me,be+_e))&&!!this._qr&&this._qr.isDark(J+me,be+_e)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(u.shape===se){const J=this._roundSize((C/B-v)/2),be=v+2*J,_e=ie-J*B,me=ce-J*B,Y=[],V=this._roundSize(be/2);for(let U=0;U<be;U++){Y[U]=[];for(let G=0;G<be;G++)U>=J-1&&U<=be-J&&G>=J-1&&G<=be-J||Math.sqrt((U-V)*(U-V)+(G-V)*(G-V))>V?Y[U][G]=0:Y[U][G]=this._qr.isDark(G-2*J<0?G:G>=v?G-2*J:G-J,U-2*J<0?U:U>=v?U-2*J:U-J)?1:0}for(let U=0;U<be;U++)for(let G=0;G<be;G++)Y[U][G]&&(we.draw(_e+G*B,me+U*B,B,(ee,Se)=>{var l;return!!(!((l=Y[U+Se])===null||l===void 0)&&l[G+ee])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const m=this._element,d=this._options;if(!m)throw"Element code is not defined";const w=this._qr.getModuleCount(),u=Math.min(d.width,d.height)-2*d.margin,v=d.shape===se?u/Math.sqrt(2):u,C=this._roundSize(v/w),I=7*C,B=3*C,ie=this._roundSize((d.width-w*C)/2),ce=this._roundSize((d.height-w*C)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,J,be])=>{var _e,me,Y,V,U,G,ee,Se,l,f,_,R,z,te;const De=ie+we*C*(w-7),Ce=ce+J*C*(w-7);let Pe=this._dotsClipPath,ve=this._dotsClipPath;if((!((_e=d.cornersSquareOptions)===null||_e===void 0)&&_e.gradient||!((me=d.cornersSquareOptions)===null||me===void 0)&&me.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-square-color-${we}-${J}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersSquareClipPath=this._cornersDotClipPath=ve=Pe,this._createColor({options:(Y=d.cornersSquareOptions)===null||Y===void 0?void 0:Y.gradient,color:(V=d.cornersSquareOptions)===null||V===void 0?void 0:V.color,additionalRotation:be,x:De,y:Ce,height:I,width:I,name:`corners-square-color-${we}-${J}-${this._instanceId}`})),((U=d.cornersSquareOptions)===null||U===void 0?void 0:U.type)&&k.includes(d.cornersSquareOptions.type)){const Re=new L({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Re.draw(De,Ce,I,be),Re._element&&Pe&&Pe.appendChild(Re._element)}else{const Re=new E({svg:this._element,type:((G=d.cornersSquareOptions)===null||G===void 0?void 0:G.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(De+ke*C,Ce+Ie*C,C,(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)&&(ve=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),ve.setAttribute("id",`clip-path-corners-dot-color-${we}-${J}-${this._instanceId}`),this._defs.appendChild(ve),this._cornersDotClipPath=ve,this._createColor({options:(f=d.cornersDotOptions)===null||f===void 0?void 0:f.gradient,color:(_=d.cornersDotOptions)===null||_===void 0?void 0:_.color,additionalRotation:be,x:De+2*C,y:Ce+2*C,height:B,width:B,name:`corners-dot-color-${we}-${J}-${this._instanceId}`})),((R=d.cornersDotOptions)===null||R===void 0?void 0:R.type)&&j.includes(d.cornersDotOptions.type)){const Re=new K({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Re.draw(De+2*C,Ce+2*C,B,be),Re._element&&ve&&ve.appendChild(Re._element)}else{const Re=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 Ie=0;Ie<re.length;Ie++)for(let ke=0;ke<re[Ie].length;ke++)!((te=re[Ie])===null||te===void 0)&&te[ke]&&(Re.draw(De+ke*C,Ce+Ie*C,C,(Xe,Qe)=>{var nt;return!!(!((nt=re[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&ve&&ve.appendChild(Re._element))}})}loadImage(){return new Promise((m,d)=>{var w;const u=this._options;if(!u.image)return d("Image is not defined");if(!((w=u.nodeCanvas)===null||w===void 0)&&w.loadImage)u.nodeCanvas.loadImage(u.image).then(v=>{var C,I;if(this._image=v,this._options.imageOptions.saveAsBlob){const B=(C=u.nodeCanvas)===null||C===void 0?void 0:C.createCanvas(this._image.width,this._image.height);(I=B?.getContext("2d"))===null||I===void 0||I.drawImage(v,0,0),this._imageUri=B?.toDataURL()}m()}).catch(d);else{const v=new this._window.Image;typeof u.imageOptions.crossOrigin=="string"&&(v.crossOrigin=u.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(C,I){return new Promise(B=>{const ie=new I.XMLHttpRequest;ie.onload=function(){const ce=new I.FileReader;ce.onloadend=function(){B(ce.result)},ce.readAsDataURL(ie.response)},ie.open("GET",C),ie.responseType="blob",ie.send()})}(u.image||"",this._window)),m()},v.src=u.image}})}async drawImage({width:m,height:d,count:w,dotSize:u}){const v=this._options,C=this._roundSize((v.width-w*u)/2),I=this._roundSize((v.height-w*u)/2),B=C+this._roundSize(v.imageOptions.margin+(w*u-m)/2),ie=I+this._roundSize(v.imageOptions.margin+(w*u-d)/2),ce=m-2*v.imageOptions.margin,we=d-2*v.imageOptions.margin,J=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");J.setAttribute("href",this._imageUri||""),J.setAttribute("xlink:href",this._imageUri||""),J.setAttribute("x",String(B)),J.setAttribute("y",String(ie)),J.setAttribute("width",`${ce}px`),J.setAttribute("height",`${we}px`),this._element.appendChild(J)}_createColor({options:m,color:d,additionalRotation:w,x:u,y:v,height:C,width:I,name:B}){const ie=I>C?I:C,ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ce.setAttribute("x",String(u)),ce.setAttribute("y",String(v)),ce.setAttribute("height",String(C)),ce.setAttribute("width",String(I)),ce.setAttribute("clip-path",`url('#clip-path-${B}')`),m){let we;if(m.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",B),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(u+I/2)),we.setAttribute("fy",String(v+C/2)),we.setAttribute("cx",String(u+I/2)),we.setAttribute("cy",String(v+C/2)),we.setAttribute("r",String(ie/2));else{const J=((m.rotation||0)+w)%(2*Math.PI),be=(J+2*Math.PI)%(2*Math.PI);let _e=u+I/2,me=v+C/2,Y=u+I/2,V=v+C/2;be>=0&&be<=.25*Math.PI||be>1.75*Math.PI&&be<=2*Math.PI?(_e-=I/2,me-=C/2*Math.tan(J),Y+=I/2,V+=C/2*Math.tan(J)):be>.25*Math.PI&&be<=.75*Math.PI?(me-=C/2,_e-=I/2/Math.tan(J),V+=C/2,Y+=I/2/Math.tan(J)):be>.75*Math.PI&&be<=1.25*Math.PI?(_e+=I/2,me+=C/2*Math.tan(J),Y-=I/2,V-=C/2*Math.tan(J)):be>1.25*Math.PI&&be<=1.75*Math.PI&&(me+=C/2,_e+=I/2/Math.tan(J),V-=C/2,Y-=I/2/Math.tan(J)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",B),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(_e))),we.setAttribute("y1",String(Math.round(me))),we.setAttribute("x2",String(Math.round(Y))),we.setAttribute("y2",String(Math.round(V)))}m.colorStops.forEach(({offset:J,color:be})=>{const _e=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");_e.setAttribute("offset",100*J+"%"),_e.setAttribute("stop-color",be),we.appendChild(_e)}),ce.setAttribute("fill",`url('#${B}')`),this._defs.appendChild(we)}else d&&ce.setAttribute("fill",d);this._element.appendChild(ce)}}he.instanceCount=0;const Z=he,ae="canvas",Q={};for(let O=0;O<=40;O++)Q[O]=O;const X={type:ae,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Q[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(O){const m=Object.assign({},O);if(!m.colorStops||!m.colorStops.length)throw"Field 'colorStops' is required in gradient";return m.rotation?m.rotation=Number(m.rotation):m.rotation=0,m.colorStops=m.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),m}function ue(O){const m=Object.assign({},O);return m.width=Number(m.width),m.height=Number(m.height),m.margin=Number(m.margin),m.imageOptions=Object.assign(Object.assign({},m.imageOptions),{hideBackgroundDots:!!m.imageOptions.hideBackgroundDots,imageSize:Number(m.imageOptions.imageSize),margin:Number(m.imageOptions.margin)}),m.margin>Math.min(m.width,m.height)&&(m.margin=Math.min(m.width,m.height)),m.dotsOptions=Object.assign({},m.dotsOptions),m.dotsOptions.gradient&&(m.dotsOptions.gradient=de(m.dotsOptions.gradient)),m.cornersSquareOptions&&(m.cornersSquareOptions=Object.assign({},m.cornersSquareOptions),m.cornersSquareOptions.gradient&&(m.cornersSquareOptions.gradient=de(m.cornersSquareOptions.gradient))),m.cornersDotOptions&&(m.cornersDotOptions=Object.assign({},m.cornersDotOptions),m.cornersDotOptions.gradient&&(m.cornersDotOptions.gradient=de(m.cornersDotOptions.gradient))),m.backgroundOptions&&(m.backgroundOptions=Object.assign({},m.backgroundOptions),m.backgroundOptions.gradient&&(m.backgroundOptions.gradient=de(m.backgroundOptions.gradient))),m}var ne=c(873),Ae=c.n(ne);function Oe(O){if(!O)throw new Error("Extension must be defined");O[0]==="."&&(O=O.substring(1));const m={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"}[O.toLowerCase()];if(!m)throw new Error(`Extension "${O}" is not supported`);return m}class T{constructor(m){m!=null&&m.jsdom?this._window=new m.jsdom("",{resources:"usable"}).window:this._window=window,this._options=m?ue(h(X,m)):X,this.update()}static _clearContainer(m){m&&(m.innerHTML="")}_setupSvg(){if(!this._qr)return;const m=new Z(this._options,this._window);this._svg=m.getElement(),this._svgDrawingPromise=m.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,m.getElement(),this._options))})}_setupCanvas(){var m,d;this._qr&&(!((m=this._options.nodeCanvas)===null||m===void 0)&&m.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 u=this._svg,v=new this._window.XMLSerializer().serializeToString(u),C=btoa(v),I=`data:${Oe("svg")};base64,${C}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage(I).then(B=>{var ie,ce;B.width=this._options.width,B.height=this._options.height,(ce=(ie=this._nodeCanvas)===null||ie===void 0?void 0:ie.getContext("2d"))===null||ce===void 0||ce.drawImage(B,0,0)});{const B=new this._window.Image;return new Promise(ie=>{B.onload=()=>{var ce,we;(we=(ce=this._domCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||we===void 0||we.drawImage(B,0,0),ie()},B.src=I})}}))}async _getElement(m="png"){if(!this._qr)throw"QR code is empty";return m.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(m){T._clearContainer(this._container),this._options=m?ue(h(this._options,m)):this._options,this._options.data&&(this._qr=Ae()(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===ae?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(m){if(m){if(typeof m.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ae?this._domCanvas&&m.appendChild(this._domCanvas):this._svg&&m.appendChild(this._svg),this._container=m}}applyExtension(m){if(!m)throw"Extension function should be defined.";this._extension=m,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(m="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(m),w=Oe(m);if(!d)return null;if(m.toLowerCase()==="svg"){const u=`<?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,S(`data:${Oe(d)};charset=utf-8,${encodeURIComponent(v)}`,`${w}.svg`)}else S(u.toDataURL(Oe(d)),`${w}.${d}`)}}const M=T})(),p.default})())}(Os)),Os.exports}Bp();const su=ye.createContext(void 0);function jp(i){const n=bn.c(9),{children:r,baseUrl:s,queryClient:c}=i;let p;n[0]!==s||n[1]!==c?(p={baseUrl:s,queryClient:c},n[0]=s,n[1]=c,n[2]=p):p=n[2];let g;n[3]!==r||n[4]!==c?(g=D.jsx(yl,{client:c,children:r}),n[3]=r,n[4]=c,n[5]=g):g=n[5];let h;return n[6]!==p||n[7]!==g?(h=D.jsx(su.Provider,{value:p,children:g}),n[6]=p,n[7]=g,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 vr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Op()??""}`,...Yp()}}async function au(i){return fetch(i,{method:"GET",headers:await vr()}).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 vr()}).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 vr()}).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 vr(),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 vr(),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 vr(),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:c}=tr();let p;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r?.toString(),s[3]=r,s[4]=A):A=s[4],p=[...n.map(Wp),String(A)],s[0]=r,s[1]=n,s[2]=p}else p=s[2];let g;s[5]!==i||s[6]!==c||s[7]!==r?(g=()=>lu(`${c}${i}`,r),s[5]=i,s[6]=c,s[7]=r,s[8]=g):g=s[8];const h=!!r;let S;return s[9]!==p||s[10]!==g||s[11]!==h?(S={queryKey:p,queryFn:g,enabled:h},s[9]=p,s[10]=g,s[11]=h,s[12]=S):S=s[12],bl(S)}function Wp(i){return i.toString()}function du(i,n){const r=bn.c(8),{baseUrl:s}=tr();let c;r[0]!==n?(c=[...n.map(Up)],r[0]=n,r[1]=c):c=r[1];let p;r[2]!==i||r[3]!==s?(p=()=>au(`${s}${i}`),r[2]=i,r[3]=s,r[4]=p):p=r[4];let g;return r[5]!==c||r[6]!==p?(g={queryKey:c,queryFn:p},r[5]=c,r[6]=p,r[7]=g):g=r[7],bl(g)}function Up(i){return i.toString()}function pu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:c}=tr();let p;r[0]!==n?(p=[...n.map(qp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>cu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let h;return r[5]!==c||r[6]!==n||r[7]!==p||r[8]!==g?(h={mutationKey:p,mutationFn:g,onSettled(){return c.invalidateQueries({queryKey:[...n.map(zp)]})}},r[5]=c,r[6]=n,r[7]=p,r[8]=g,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:c}=tr();let p;r[0]!==n?(p=[...n.map(Gp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>fu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let h;return r[5]!==c||r[6]!==n||r[7]!==p||r[8]!==g?(h={mutationKey:p,mutationFn:g,onSettled(){return c.invalidateQueries({queryKey:[...n.map(Hp)]})}},r[5]=c,r[6]=n,r[7]=p,r[8]=g,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:c}=tr();let p;r[0]!==n?(p=[...n.map(Kp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>uu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let h;return r[5]!==c||r[6]!==n||r[7]!==p||r[8]!==g?(h={mutationKey:p,mutationFn:g,onSettled(){return c.invalidateQueries({queryKey:[...n.map(Vp)]})}},r[5]=c,r[6]=n,r[7]=p,r[8]=g,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,mu;function Qp(){return mu||(mu=1,function(i,n){(function(r,s){i.exports=s()})(Zp,function(){var r=1e3,s=6e4,c=36e5,p="millisecond",g="second",h="minute",S="hour",A="day",E="week",N="month",k="quarter",L="year",$="date",j="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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(T){var M=["th","st","nd","rd"],O=T%100;return"["+T+(M[(O-20)%10]||M[O]||M[0])+"]"}},re=function(T,M,O){var m=String(T);return!m||m.length>=M?T:""+Array(M+1-m.length).join(O)+T},he={s:re,z:function(T){var M=-T.utcOffset(),O=Math.abs(M),m=Math.floor(O/60),d=O%60;return(M<=0?"+":"-")+re(m,2,"0")+":"+re(d,2,"0")},m:function T(M,O){if(M.date()<O.date())return-T(O,M);var m=12*(O.year()-M.year())+(O.month()-M.month()),d=M.clone().add(m,N),w=O-d<0,u=M.clone().add(m+(w?-1:1),N);return+(-(m+(O-d)/(w?d-u:u-d))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:N,y:L,w:E,d:A,D:$,h:S,m:h,s:g,ms:p,Q:k}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},Z="en",ae={};ae[Z]=le;var Q="$isDayjsObject",X=function(T){return T instanceof Ae||!(!T||!T[Q])},de=function T(M,O,m){var d;if(!M)return Z;if(typeof M=="string"){var w=M.toLowerCase();ae[w]&&(d=w),O&&(ae[w]=O,d=w);var u=M.split("-");if(!d&&u.length>1)return T(u[0])}else{var v=M.name;ae[v]=M,d=v}return!m&&d&&(Z=d),d||!m&&Z},ue=function(T,M){if(X(T))return T.clone();var O=typeof M=="object"?M:{};return O.date=T,O.args=arguments,new Ae(O)},ne=he;ne.l=de,ne.i=X,ne.w=function(T,M){return ue(T,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var Ae=function(){function T(O){this.$L=de(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[Q]=!0}var M=T.prototype;return M.parse=function(O){this.$d=function(m){var d=m.date,w=m.utc;if(d===null)return new Date(NaN);if(ne.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var u=d.match(K);if(u){var v=u[2]-1||0,C=(u[7]||"0").substring(0,3);return w?new Date(Date.UTC(u[1],v,u[3]||1,u[4]||0,u[5]||0,u[6]||0,C)):new Date(u[1],v,u[3]||1,u[4]||0,u[5]||0,u[6]||0,C)}}return new Date(d)}(O),this.init()},M.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},M.$utils=function(){return ne},M.isValid=function(){return this.$d.toString()!==j},M.isSame=function(O,m){var d=ue(O);return this.startOf(m)<=d&&d<=this.endOf(m)},M.isAfter=function(O,m){return ue(O)<this.startOf(m)},M.isBefore=function(O,m){return this.endOf(m)<ue(O)},M.$g=function(O,m,d){return ne.u(O)?this[m]:this.set(d,O)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(O,m){var d=this,w=!!ne.u(m)||m,u=ne.p(O),v=function(be,_e){var me=ne.w(d.$u?Date.UTC(d.$y,_e,be):new Date(d.$y,_e,be),d);return w?me:me.endOf(A)},C=function(be,_e){return ne.w(d.toDate()[be].apply(d.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(_e)),d)},I=this.$W,B=this.$M,ie=this.$D,ce="set"+(this.$u?"UTC":"");switch(u){case L:return w?v(1,0):v(31,11);case N:return w?v(1,B):v(0,B+1);case E:var we=this.$locale().weekStart||0,J=(I<we?I+7:I)-we;return v(w?ie-J:ie+(6-J),B);case A:case $:return C(ce+"Hours",0);case S:return C(ce+"Minutes",1);case h:return C(ce+"Seconds",2);case g:return C(ce+"Milliseconds",3);default:return this.clone()}},M.endOf=function(O){return this.startOf(O,!1)},M.$set=function(O,m){var d,w=ne.p(O),u="set"+(this.$u?"UTC":""),v=(d={},d[A]=u+"Date",d[$]=u+"Date",d[N]=u+"Month",d[L]=u+"FullYear",d[S]=u+"Hours",d[h]=u+"Minutes",d[g]=u+"Seconds",d[p]=u+"Milliseconds",d)[w],C=w===A?this.$D+(m-this.$W):m;if(w===N||w===L){var I=this.clone().set($,1);I.$d[v](C),I.init(),this.$d=I.set($,Math.min(this.$D,I.daysInMonth())).$d}else v&&this.$d[v](C);return this.init(),this},M.set=function(O,m){return this.clone().$set(O,m)},M.get=function(O){return this[ne.p(O)]()},M.add=function(O,m){var d,w=this;O=Number(O);var u=ne.p(m),v=function(B){var ie=ue(w);return ne.w(ie.date(ie.date()+Math.round(B*O)),w)};if(u===N)return this.set(N,this.$M+O);if(u===L)return this.set(L,this.$y+O);if(u===A)return v(1);if(u===E)return v(7);var C=(d={},d[h]=s,d[S]=c,d[g]=r,d)[u]||1,I=this.$d.getTime()+O*C;return ne.w(I,this)},M.subtract=function(O,m){return this.add(-1*O,m)},M.format=function(O){var m=this,d=this.$locale();if(!this.isValid())return d.invalidDate||j;var w=O||"YYYY-MM-DDTHH:mm:ssZ",u=ne.z(this),v=this.$H,C=this.$m,I=this.$M,B=d.weekdays,ie=d.months,ce=d.meridiem,we=function(_e,me,Y,V){return _e&&(_e[me]||_e(m,w))||Y[me].slice(0,V)},J=function(_e){return ne.s(v%12||12,_e,"0")},be=ce||function(_e,me,Y){var V=_e<12?"AM":"PM";return Y?V.toLowerCase():V};return w.replace(se,function(_e,me){return me||function(Y){switch(Y){case"YY":return String(m.$y).slice(-2);case"YYYY":return ne.s(m.$y,4,"0");case"M":return I+1;case"MM":return ne.s(I+1,2,"0");case"MMM":return we(d.monthsShort,I,ie,3);case"MMMM":return we(ie,I);case"D":return m.$D;case"DD":return ne.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return we(d.weekdaysMin,m.$W,B,2);case"ddd":return we(d.weekdaysShort,m.$W,B,3);case"dddd":return B[m.$W];case"H":return String(v);case"HH":return ne.s(v,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return be(v,C,!0);case"A":return be(v,C,!1);case"m":return String(C);case"mm":return ne.s(C,2,"0");case"s":return String(m.$s);case"ss":return ne.s(m.$s,2,"0");case"SSS":return ne.s(m.$ms,3,"0");case"Z":return u}return null}(_e)||u.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(O,m,d){var w,u=this,v=ne.p(m),C=ue(O),I=(C.utcOffset()-this.utcOffset())*s,B=this-C,ie=function(){return ne.m(u,C)};switch(v){case L:w=ie()/12;break;case N:w=ie();break;case k:w=ie()/3;break;case E:w=(B-I)/6048e5;break;case A:w=(B-I)/864e5;break;case S:w=B/c;break;case h:w=B/s;break;case g:w=B/r;break;default:w=B}return d?w:ne.a(w)},M.daysInMonth=function(){return this.endOf(N).$D},M.$locale=function(){return ae[this.$L]},M.locale=function(O,m){if(!O)return this.$L;var d=this.clone(),w=de(O,m,!0);return w&&(d.$L=w),d},M.clone=function(){return ne.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},T}(),Oe=Ae.prototype;return ue.prototype=Oe,[["$ms",p],["$s",g],["$m",h],["$H",S],["$W",A],["$M",N],["$y",L],["$D",$]].forEach(function(T){Oe[T[1]]=function(M){return this.$g(M,T[0],T[1])}}),ue.extend=function(T,M){return T.$i||(T(M,Ae,ue),T.$i=!0),ue},ue.locale=de,ue.isDayjs=X,ue.unix=function(T){return ue(1e3*T)},ue.en=ae[Z],ue.Ls=ae,ue.p={},ue})}(Ki)),Ki.exports}var Jp=Qp();const Te=el(Jp);function Xp({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:c}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=c[n-1][c[n-1].length-1]-1?c[n-1].length-1:c[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===c[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===c[n].length-2&&s>=c[n][c[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:c[n-1].length-1,cellIndex:c[n-1][c[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:c[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===c[n].length-1&&s===c[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===c[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 vu({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:c,size:p}){const g=Xp({direction:n,size:p,rowIndex:s,cellIndex:c,levelIndex:r});if(!g)return;const h=i.current?.[g.levelIndex]?.[g.rowIndex]?.[g.cellIndex];h&&(h.disabled||h.getAttribute("data-hidden")||h.getAttribute("data-outside")?vu({controlsRef:i,direction:n,levelIndex:g.levelIndex,cellIndex:g.cellIndex,rowIndex:g.rowIndex,size:p}):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:c}){const p=eg(c.key);if(p){c.preventDefault();const g=tg(i);vu({controlsRef:i,direction:p,levelIndex:n,rowIndex:r,cellIndex:s,size:g})}}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(p=>p||i.locale,[i.locale]),r=ye.useCallback(p=>typeof p=="number"?p:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ye.useCallback(p=>Array.isArray(p)?p:i.weekendDays,[i.weekendDays]),c=ye.useCallback(p=>typeof p=="string"?p:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getFirstDayOfWeek:r,getWeekendDays:s,getLabelSeparator:c}}function ig({value:i,type:n,withTime:r}){const s=r?yu:sn;if(n==="range"&&Array.isArray(i)){const c=s(i[0]),p=s(i[1]);return c?p?`${c} – ${p}`:`${c} –`:""}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:c=!1}){return D.jsx("input",{type:"hidden",value:ig({value:i,type:n,withTime:c}),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 c=i.length;for(n=0;n<c;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="",c=arguments.length;r<c;r++)(i=arguments[r])&&(n=wu(i))&&(s&&(s+=" "),s+=n);return s}var bu={day:"m_396ce5cb"};const og=W.createVarsResolver((i,{size:n})=>({day:{"--day-size":W.getSize(n,"day-size")}})),Ps=W.factory((i,n)=>{const r=W.useProps("Day",null,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,date:A,disabled:E,__staticSelector:N,weekend:k,outside:L,selected:$,renderDay:j,inRange:K,firstInRange:se,lastInRange:le,hidden:re,static:he,highlightToday:Z,attributes:ae,...Q}=r,X=W.useStyles({name:N||"Day",classes:bu,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:ae,vars:S,varsResolver:og,rootSelector:"day"});return D.jsx(W.UnstyledButton,{...X("day",{style:re?{display:"none"}:void 0}),component:he?"div":"button",ref:n,disabled:E,"data-today":Te(A).isSame(new Date,"day")||void 0,"data-hidden":re||void 0,"data-highlight-today":Z||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!L&&k||void 0,"data-outside":!E&&L||void 0,"data-selected":!E&&$||void 0,"data-in-range":K&&!E||void 0,"data-first-in-range":se&&!E||void 0,"data-last-in-range":le&&!E||void 0,"data-static":he||void 0,unstyled:h,...Q,children:j?.(A)||Te(A).date()})});Ps.classes=bu,Ps.displayName="@mantine/dates/Day";function sg({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=Te().day(r),c=[];for(let p=0;p<7;p+=1)typeof n=="string"?c.push(Te(s).add(p,"days").locale(i).format(n)):c.push(n(Te(s).add(p,"days").format("YYYY-MM-DD")));return c}var xu={weekday:"m_18a3eca"};const ag=W.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":W.getFontSize(n),"--wr-spacing":W.getSpacing(n)}})),Ms=W.factory((i,n)=>{const r=W.useProps("WeekdaysRow",null,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,locale:A,firstDayOfWeek:E,weekdayFormat:N,cellComponent:k="th",__staticSelector:L,withWeekNumbers:$,attributes:j,...K}=r,se=W.useStyles({name:L||"WeekdaysRow",classes:xu,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:j,vars:S,varsResolver:ag,rootSelector:"weekdaysRow"}),le=nr(),re=sg({locale:le.getLocale(A),format:N,firstDayOfWeek:le.getFirstDayOfWeek(E)}).map((he,Z)=>D.jsx(k,{...se("weekday"),children:he},Z));return D.jsxs(W.Box,{component:"tr",ref:n,...se("weekdaysRow"),...K,children:[$&&D.jsx(k,{...se("weekday"),children:"#"}),re]})});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"),c=Te(s.format("YYYY-M-D")),p=c.format("YYYY-MM-DD"),g=c.add(+c.daysInMonth()-1,"day").format("YYYY-MM-DD"),h=lg(g,n),S=[];let A=Te(ug(p,n));for(;Te(A).isBefore(h,"day");){const E=[];for(let N=0;N<7;N+=1)E.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");S.push(E)}if(r&&S.length<6){const E=S[S.length-1],N=E[E.length-1];let k=Te(N).add(1,"day");for(;S.length<6;){const L=[];for(let $=0;$<7;$+=1)L.push(k.format("YYYY-MM-DD")),k=k.add(1,"day");S.push(L)}}return S}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:c,hideOutsideDates:p,month:g}){const h=i.flat().filter(E=>Su(E,r)&&Cu(E,n)&&!c?.(E)&&!s?.(E)?.disabled&&(!p||Rs(E,g))),S=h.find(E=>s?.(E)?.selected);if(S)return S;const A=h.find(E=>Te().isSame(E,"date"));return A||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,c,p){var g=function(A){return A.add(4-A.isoWeekday(),r)},h=c.prototype;h.isoWeekYear=function(){return g(this).year()},h.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var E,N,k,L,$=g(this),j=(E=this.isoWeekYear(),N=this.$u,k=(N?p.utc:p)().year(E).startOf("year"),L=4-k.isoWeekday(),k.isoWeekday()>4&&(L+=7),k.add(L,r));return $.diff(j,"week")+1},h.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var S=h.startOf;h.startOf=function(A,E){var N=this.$utils(),k=!!N.u(E)||E;return N.p(A)==="isoweek"?k?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(A,E)}}})}(Zi)),Zi.exports}var pg=dg();const gg=el(pg);Te.extend(gg);function mg(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 vg={withCellSpacing:!0},yg=W.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":W.getFontSize(n),"--wn-size":W.getSize(n,"wn-size")}})),Qi=W.factory((i,n)=>{const r=W.useProps("Month",vg,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,__staticSelector:A,locale:E,firstDayOfWeek:N,weekdayFormat:k,month:L,weekendDays:$,getDayProps:j,excludeDate:K,minDate:se,maxDate:le,renderDay:re,hideOutsideDates:he,hideWeekdays:Z,getDayAriaLabel:ae,static:Q,__getDayRef:X,__onDayKeyDown:de,__onDayClick:ue,__onDayMouseEnter:ne,__preventFocus:Ae,__stopPropagation:Oe,withCellSpacing:T,size:M,highlightToday:O,withWeekNumbers:m,attributes:d,...w}=r,u=W.useStyles({name:A||"Month",classes:Du,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:d,vars:S,varsResolver:yg,rootSelector:"month"}),v=nr(),C=cg({month:L,firstDayOfWeek:v.getFirstDayOfWeek(N),consistentWeeks:v.consistentWeeks}),I=fg({dates:C,minDate:sn(se),maxDate:sn(le),getDayProps:j,excludeDate:K,hideOutsideDates:he,month:L}),{resolvedClassNames:B,resolvedStyles:ie}=W.useResolvedStylesApi({classNames:s,styles:g,props:r}),ce=C.map((we,J)=>{const be=we.map((_e,me)=>{const Y=!Rs(_e,L),V=ae?.(_e)||Te(_e).locale(E||v.locale).format("D MMMM YYYY"),U=j?.(_e),G=Te(_e).isSame(I,"date");return D.jsx("td",{...u("monthCell"),"data-with-spacing":T||void 0,children:D.jsx(Ps,{__staticSelector:A||"Month",classNames:B,styles:ie,unstyled:h,"data-mantine-stop-propagation":Oe||void 0,highlightToday:O,renderDay:re,date:_e,size:M,weekend:v.getWeekendDays($).includes(Te(_e).get("day")),outside:Y,hidden:he?Y:!1,"aria-label":V,static:Q,disabled:K?.(_e)||!Su(_e,sn(le))||!Cu(_e,sn(se)),ref:ee=>{ee&&X?.(J,me,ee)},...U,onKeyDown:ee=>{U?.onKeyDown?.(ee),de?.(ee,{rowIndex:J,cellIndex:me,date:_e})},onMouseEnter:ee=>{U?.onMouseEnter?.(ee),ne?.(ee,_e)},onClick:ee=>{U?.onClick?.(ee),ue?.(ee,_e)},onMouseDown:ee=>{U?.onMouseDown?.(ee),Ae&&ee.preventDefault()},tabIndex:Ae||!G?-1:0})},_e.toString())});return D.jsxs("tr",{...u("monthRow"),children:[m&&D.jsx("td",{...u("weekNumber"),children:mg(we)}),be]},J)});return D.jsxs(W.Box,{component:"table",...u("month"),size:M,ref:n,...w,children:[!Z&&D.jsx("thead",{...u("monthThead"),children:D.jsx(Ms,{__staticSelector:A||"Month",locale:E,firstDayOfWeek:N,weekdayFormat:k,size:M,classNames:B,styles:ie,unstyled:h,withWeekNumbers:m})}),D.jsx("tbody",{...u("monthTbody"),children:ce})]})});Qi.classes=Du,Qi.displayName="@mantine/dates/Month";var Ou={pickerControl:"m_dc6a3c71"};const _g=W.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":W.getFontSize(n),"--dpc-size":W.getSize(n,"dpc-size")}})),Ji=W.factory((i,n)=>{const r=W.useProps("PickerControl",null,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,firstInRange:A,lastInRange:E,inRange:N,__staticSelector:k,selected:L,disabled:$,attributes:j,...K}=r,se=W.useStyles({name:k||"PickerControl",classes:Ou,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:j,vars:S,varsResolver:_g,rootSelector:"pickerControl"});return D.jsx(W.UnstyledButton,{...se("pickerControl"),ref:n,unstyled:h,"data-picker-control":!0,"data-selected":L&&!$||void 0,"data-disabled":$||void 0,"data-in-range":N&&!$&&!L||void 0,"data-first-in-range":A&&!$||void 0,"data-last-in-range":E&&!$||void 0,disabled:$,...K})});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 c=i.flat().filter(h=>!Eu({year:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),p=c.find(h=>s?.(h)?.selected);if(p)return p;const g=c.find(h=>Te().isSame(h,"year"));return g||c[0]}function Tu(i){const n=Te(i).year(),r=n-n%10;let s=0;const c=[[],[],[],[]];for(let p=0;p<4;p+=1){const g=p===3?1:3;for(let h=0;h<g;h+=1)c[p].push(Te(new Date(r+s,0)).format("YYYY-MM-DD")),s+=1}return c}var Pu={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const bg={yearsListFormat:"YYYY",withCellSpacing:!0},Xi=W.factory((i,n)=>{const r=W.useProps("YearsList",bg,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,decade:A,yearsListFormat:E,locale:N,minDate:k,maxDate:L,getYearControlProps:$,__staticSelector:j,__getControlRef:K,__onControlKeyDown:se,__onControlClick:le,__onControlMouseEnter:re,__preventFocus:he,__stopPropagation:Z,withCellSpacing:ae,size:Q,attributes:X,...de}=r,ue=W.useStyles({name:j||"YearsList",classes:Pu,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:X,vars:S,rootSelector:"yearsList"}),ne=nr(),Ae=Tu(A),Oe=wg({years:Ae,minDate:k,maxDate:L,getYearControlProps:$}),T=Ae.map((M,O)=>{const m=M.map((d,w)=>{const u=$?.(d),v=Te(d).isSame(Oe,"year");return D.jsx("td",{...ue("yearsListCell"),"data-with-spacing":ae||void 0,children:D.jsx(Ji,{...ue("yearsListControl"),size:Q,unstyled:h,"data-mantine-stop-propagation":Z||void 0,disabled:Eu({year:d,minDate:k,maxDate:L}),ref:C=>{C&&K?.(O,w,C)},...u,onKeyDown:C=>{u?.onKeyDown?.(C),se?.(C,{rowIndex:O,cellIndex:w,date:d})},onClick:C=>{u?.onClick?.(C),le?.(C,d)},onMouseEnter:C=>{u?.onMouseEnter?.(C),re?.(C,d)},onMouseDown:C=>{u?.onMouseDown?.(C),he&&C.preventDefault()},tabIndex:he||!v?-1:0,children:Te(d).locale(ne.getLocale(N)).format(E)})},w)});return D.jsx("tr",{...ue("yearsListRow"),children:m},O)});return D.jsx(W.Box,{component:"table",ref:n,size:Q,...ue("yearsList"),...de,children:D.jsx("tbody",{children:T})})});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 c=i.flat().filter(h=>!Mu({month:h,minDate:n,maxDate:r})&&!s?.(h)?.disabled),p=c.find(h=>s?.(h)?.selected);if(p)return p;const g=c.find(h=>Te().isSame(h,"month"));return g||c[0]}function Cg(i){const n=Te(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let c=0;c<4;c+=1)for(let p=0;p<3;p+=1)r[c].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=W.factory((i,n)=>{const r=W.useProps("MonthsList",Sg,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,__staticSelector:A,year:E,monthsListFormat:N,locale:k,minDate:L,maxDate:$,getMonthControlProps:j,__getControlRef:K,__onControlKeyDown:se,__onControlClick:le,__onControlMouseEnter:re,__preventFocus:he,__stopPropagation:Z,withCellSpacing:ae,size:Q,attributes:X,...de}=r,ue=W.useStyles({name:A||"MonthsList",classes:Ru,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:X,vars:S,rootSelector:"monthsList"}),ne=nr(),Ae=Cg(E),Oe=xg({months:Ae,minDate:sn(L),maxDate:sn($),getMonthControlProps:j}),T=Ae.map((M,O)=>{const m=M.map((d,w)=>{const u=j?.(d),v=Te(d).isSame(Oe,"month");return D.jsx("td",{...ue("monthsListCell"),"data-with-spacing":ae||void 0,children:D.jsx(Ji,{...ue("monthsListControl"),size:Q,unstyled:h,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":Z||void 0,disabled:Mu({month:d,minDate:sn(L),maxDate:sn($)}),ref:C=>{C&&K?.(O,w,C)},...u,onKeyDown:C=>{u?.onKeyDown?.(C),se?.(C,{rowIndex:O,cellIndex:w,date:d})},onClick:C=>{u?.onClick?.(C),le?.(C,d)},onMouseEnter:C=>{u?.onMouseEnter?.(C),re?.(C,d)},onMouseDown:C=>{u?.onMouseDown?.(C),he&&C.preventDefault()},tabIndex:he||!v?-1:0,children:Te(d).locale(ne.getLocale(k)).format(N)})},w)});return D.jsx("tr",{...ue("monthsListRow"),children:m},O)});return D.jsx(W.Box,{component:"table",ref:n,size:Q,...ue("monthsList"),...de,children:D.jsx("tbody",{children:T})})});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=W.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":W.getSize(n,"dch-control-size"),"--dch-fz":W.getFontSize(n)}})),rr=W.factory((i,n)=>{const r=W.useProps("CalendarHeader",Ag,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,nextIcon:A,previousIcon:E,nextLabel:N,previousLabel:k,onNext:L,onPrevious:$,onLevelClick:j,label:K,nextDisabled:se,previousDisabled:le,hasNextLevel:re,levelControlAriaLabel:he,withNext:Z,withPrevious:ae,headerControlsOrder:Q,__staticSelector:X,__preventFocus:de,__stopPropagation:ue,attributes:ne,...Ae}=r,Oe=W.useStyles({name:X||"CalendarHeader",classes:ku,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:ne,vars:S,varsResolver:Dg,rootSelector:"calendarHeader"}),T=de?w=>w.preventDefault():void 0,M=ae&&ye.createElement(W.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":k,onClick:$,unstyled:h,onMouseDown:T,disabled:le,"data-disabled":le||void 0,tabIndex:de||le?-1:0,"data-mantine-stop-propagation":ue||void 0},E||D.jsx(W.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),O=ye.createElement(W.UnstyledButton,{component:re?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:re?j:void 0,unstyled:h,onMouseDown:re?T:void 0,disabled:!re,"data-static":!re||void 0,"aria-label":he,tabIndex:de||!re?-1:0,"data-mantine-stop-propagation":ue||void 0},K),m=Z&&ye.createElement(W.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":N,onClick:L,unstyled:h,onMouseDown:T,disabled:se,"data-disabled":se||void 0,tabIndex:de||se?-1:0,"data-mantine-stop-propagation":ue||void 0},A||D.jsx(W.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),d=Q.map(w=>w==="previous"?M:w==="level"?O:w==="next"?m:null);return D.jsx(W.Box,{...Oe("calendarHeader"),ref:n,...Ae,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=W.factory((i,n)=>{const r=W.useProps("DecadeLevel",Eg,i),{decade:s,locale:c,minDate:p,maxDate:g,yearsListFormat:h,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,withCellSpacing:L,__preventFocus:$,nextIcon:j,previousIcon:K,nextLabel:se,previousLabel:le,onNext:re,onPrevious:he,nextDisabled:Z,previousDisabled:ae,levelControlAriaLabel:Q,withNext:X,withPrevious:de,headerControlsOrder:ue,decadeLabelFormat:ne,classNames:Ae,styles:Oe,unstyled:T,__staticSelector:M,__stopPropagation:O,size:m,attributes:d,...w}=r,u=nr(),[v,C]=Og(s),I={__staticSelector:M||"DecadeLevel",classNames:Ae,styles:Oe,unstyled:T,size:m,attributes:d},B=typeof Z=="boolean"?Z:g?!Te(C).endOf("year").isBefore(g):!1,ie=typeof ae=="boolean"?ae:p?!Te(v).startOf("year").isAfter(p):!1,ce=(we,J)=>Te(we).locale(c||u.locale).format(J);return D.jsxs(W.Box,{"data-decade-level":!0,size:m,ref:n,...w,children:[D.jsx(rr,{label:typeof ne=="function"?ne(v,C):`${ce(v,ne)} – ${ce(C,ne)}`,__preventFocus:$,__stopPropagation:O,nextIcon:j,previousIcon:K,nextLabel:se,previousLabel:le,onNext:re,onPrevious:he,nextDisabled:B,previousDisabled:ie,hasNextLevel:!1,levelControlAriaLabel:Q,withNext:X,withPrevious:de,headerControlsOrder:ue,...I}),D.jsx(Xi,{decade:s,locale:c,minDate:p,maxDate:g,yearsListFormat:h,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,__preventFocus:$,__stopPropagation:O,withCellSpacing:L,...I})]})});to.classes={...Xi.classes,...rr.classes},to.displayName="@mantine/dates/DecadeLevel";const Tg={yearLabelFormat:"YYYY"},no=W.factory((i,n)=>{const r=W.useProps("YearLevel",Tg,i),{year:s,locale:c,minDate:p,maxDate:g,monthsListFormat:h,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,withCellSpacing:L,__preventFocus:$,nextIcon:j,previousIcon:K,nextLabel:se,previousLabel:le,onNext:re,onPrevious:he,onLevelClick:Z,nextDisabled:ae,previousDisabled:Q,hasNextLevel:X,levelControlAriaLabel:de,withNext:ue,withPrevious:ne,headerControlsOrder:Ae,yearLabelFormat:Oe,__staticSelector:T,__stopPropagation:M,size:O,classNames:m,styles:d,unstyled:w,attributes:u,...v}=r,C=nr(),I={__staticSelector:T||"YearLevel",classNames:m,styles:d,unstyled:w,size:O,attributes:u},B=typeof ae=="boolean"?ae:g?!Te(s).endOf("year").isBefore(g):!1,ie=typeof Q=="boolean"?Q:p?!Te(s).startOf("year").isAfter(p):!1;return D.jsxs(W.Box,{"data-year-level":!0,size:O,ref:n,...v,children:[D.jsx(rr,{label:typeof Oe=="function"?Oe(s):Te(s).locale(c||C.locale).format(Oe),__preventFocus:$,__stopPropagation:M,nextIcon:j,previousIcon:K,nextLabel:se,previousLabel:le,onNext:re,onPrevious:he,onLevelClick:Z,nextDisabled:B,previousDisabled:ie,hasNextLevel:X,levelControlAriaLabel:de,withNext:ue,withPrevious:ne,headerControlsOrder:Ae,...I}),D.jsx(eo,{year:s,locale:c,minDate:p,maxDate:g,monthsListFormat:h,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,__preventFocus:$,__stopPropagation:M,withCellSpacing:L,...I})]})});no.classes={...rr.classes,...eo.classes},no.displayName="@mantine/dates/YearLevel";const Pg={monthLabelFormat:"MMMM YYYY"},ro=W.factory((i,n)=>{const r=W.useProps("MonthLevel",Pg,i),{month:s,locale:c,firstDayOfWeek:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:j,__getDayRef:K,__onDayKeyDown:se,__onDayClick:le,__onDayMouseEnter:re,withCellSpacing:he,highlightToday:Z,withWeekNumbers:ae,__preventFocus:Q,__stopPropagation:X,nextIcon:de,previousIcon:ue,nextLabel:ne,previousLabel:Ae,onNext:Oe,onPrevious:T,onLevelClick:M,nextDisabled:O,previousDisabled:m,hasNextLevel:d,levelControlAriaLabel:w,withNext:u,withPrevious:v,headerControlsOrder:C,monthLabelFormat:I,classNames:B,styles:ie,unstyled:ce,__staticSelector:we,size:J,static:be,attributes:_e,...me}=r,Y=nr(),V={__staticSelector:we||"MonthLevel",classNames:B,styles:ie,unstyled:ce,size:J,attributes:_e},U=typeof O=="boolean"?O:N?!Te(s).endOf("month").isBefore(N):!1,G=typeof m=="boolean"?m:E?!Te(s).startOf("month").isAfter(E):!1;return D.jsxs(W.Box,{"data-month-level":!0,size:J,ref:n,...me,children:[D.jsx(rr,{label:typeof I=="function"?I(s):Te(s).locale(c||Y.locale).format(I),__preventFocus:Q,__stopPropagation:X,nextIcon:de,previousIcon:ue,nextLabel:ne,previousLabel:Ae,onNext:Oe,onPrevious:T,onLevelClick:M,nextDisabled:U,previousDisabled:G,hasNextLevel:d,levelControlAriaLabel:w,withNext:u,withPrevious:v,headerControlsOrder:C,...V}),D.jsx(Qi,{month:s,locale:c,firstDayOfWeek:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:j,__getDayRef:K,__onDayKeyDown:se,__onDayClick:le,__onDayMouseEnter:re,__preventFocus:Q,__stopPropagation:X,static:be,withCellSpacing:he,highlightToday:Z,withWeekNumbers:ae,...V})]})});ro.classes={...Qi.classes,...rr.classes},ro.displayName="@mantine/dates/MonthLevel";var Lu={levelsGroup:"m_30b26e33"};const ir=W.factory((i,n)=>{const r=W.useProps("LevelsGroup",null,i),{classNames:s,className:c,style:p,styles:g,unstyled:h,vars:S,__staticSelector:A,attributes:E,...N}=r,k=W.useStyles({name:A||"LevelsGroup",classes:Lu,props:r,className:c,style:p,classNames:s,styles:g,unstyled:h,attributes:E,vars:S,rootSelector:"levelsGroup"});return D.jsx(W.Box,{ref:n,...k("levelsGroup"),...N})});ir.classes=Lu,ir.displayName="@mantine/dates/LevelsGroup";const Mg={numberOfColumns:1},io=W.factory((i,n)=>{const r=W.useProps("DecadeLevelGroup",Mg,i),{decade:s,locale:c,minDate:p,maxDate:g,yearsListFormat:h,getYearControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:k,nextIcon:L,previousIcon:$,nextLabel:j,previousLabel:K,onNext:se,onPrevious:le,nextDisabled:re,previousDisabled:he,headerControlsOrder:Z,classNames:ae,styles:Q,unstyled:X,__staticSelector:de,__stopPropagation:ue,numberOfColumns:ne,levelControlAriaLabel:Ae,decadeLabelFormat:Oe,size:T,vars:M,attributes:O,...m}=r,d=ye.useRef([]),w=Array(ne).fill(0).map((u,v)=>{const C=Te(s).add(v*10,"years").format("YYYY-MM-DD");return D.jsx(to,{size:T,yearsListFormat:h,decade:C,withNext:v===ne-1,withPrevious:v===0,decadeLabelFormat:Oe,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(I,B)=>Ts({levelIndex:v,rowIndex:B.rowIndex,cellIndex:B.cellIndex,event:I,controlsRef:d}),__getControlRef:(I,B,ie)=>{Array.isArray(d.current[v])||(d.current[v]=[]),Array.isArray(d.current[v][I])||(d.current[v][I]=[]),d.current[v][I][B]=ie},levelControlAriaLabel:typeof Ae=="function"?Ae(C):Ae,locale:c,minDate:p,maxDate:g,__preventFocus:k,__stopPropagation:ue,nextIcon:L,previousIcon:$,nextLabel:j,previousLabel:K,onNext:se,onPrevious:le,nextDisabled:re,previousDisabled:he,getYearControlProps:S,__staticSelector:de||"DecadeLevelGroup",classNames:ae,styles:Q,unstyled:X,withCellSpacing:N,headerControlsOrder:Z,attributes:O},v)});return D.jsx(ir,{classNames:ae,styles:Q,__staticSelector:de||"DecadeLevelGroup",ref:n,size:T,unstyled:X,attributes:O,...m,children:w})});io.classes={...ir.classes,...to.classes},io.displayName="@mantine/dates/DecadeLevelGroup";const Rg={numberOfColumns:1},oo=W.factory((i,n)=>{const r=W.useProps("YearLevelGroup",Rg,i),{year:s,locale:c,minDate:p,maxDate:g,monthsListFormat:h,getMonthControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:k,nextIcon:L,previousIcon:$,nextLabel:j,previousLabel:K,onNext:se,onPrevious:le,onLevelClick:re,nextDisabled:he,previousDisabled:Z,hasNextLevel:ae,headerControlsOrder:Q,classNames:X,styles:de,unstyled:ue,__staticSelector:ne,__stopPropagation:Ae,numberOfColumns:Oe,levelControlAriaLabel:T,yearLabelFormat:M,size:O,vars:m,attributes:d,...w}=r,u=ye.useRef([]),v=Array(Oe).fill(0).map((C,I)=>{const B=Te(s).add(I,"years").format("YYYY-MM-DD");return D.jsx(no,{size:O,monthsListFormat:h,year:B,withNext:I===Oe-1,withPrevious:I===0,yearLabelFormat:M,__stopPropagation:Ae,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(ie,ce)=>Ts({levelIndex:I,rowIndex:ce.rowIndex,cellIndex:ce.cellIndex,event:ie,controlsRef:u}),__getControlRef:(ie,ce,we)=>{Array.isArray(u.current[I])||(u.current[I]=[]),Array.isArray(u.current[I][ie])||(u.current[I][ie]=[]),u.current[I][ie][ce]=we},levelControlAriaLabel:typeof T=="function"?T(B):T,locale:c,minDate:p,maxDate:g,__preventFocus:k,nextIcon:L,previousIcon:$,nextLabel:j,previousLabel:K,onNext:se,onPrevious:le,onLevelClick:re,nextDisabled:he,previousDisabled:Z,hasNextLevel:ae,getMonthControlProps:S,classNames:X,styles:de,unstyled:ue,__staticSelector:ne||"YearLevelGroup",withCellSpacing:N,headerControlsOrder:Q,attributes:d},I)});return D.jsx(ir,{classNames:X,styles:de,__staticSelector:ne||"YearLevelGroup",ref:n,size:O,unstyled:ue,attributes:d,...w,children:v})});oo.classes={...no.classes,...ir.classes},oo.displayName="@mantine/dates/YearLevelGroup";const kg={numberOfColumns:1},so=W.factory((i,n)=>{const r=W.useProps("MonthLevelGroup",kg,i),{month:s,locale:c,firstDayOfWeek:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:j,__onDayClick:K,__onDayMouseEnter:se,withCellSpacing:le,highlightToday:re,withWeekNumbers:he,__preventFocus:Z,nextIcon:ae,previousIcon:Q,nextLabel:X,previousLabel:de,onNext:ue,onPrevious:ne,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:T,hasNextLevel:M,headerControlsOrder:O,classNames:m,styles:d,unstyled:w,numberOfColumns:u,levelControlAriaLabel:v,monthLabelFormat:C,__staticSelector:I,__stopPropagation:B,size:ie,static:ce,vars:we,attributes:J,...be}=r,_e=ye.useRef([]),me=Array(u).fill(0).map((Y,V)=>{const U=Te(s).add(V,"months").format("YYYY-MM-DD");return D.jsx(ro,{month:U,withNext:V===u-1,withPrevious:V===0,monthLabelFormat:C,__stopPropagation:B,__onDayClick:K,__onDayMouseEnter:se,__onDayKeyDown:(G,ee)=>Ts({levelIndex:V,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:G,controlsRef:_e}),__getDayRef:(G,ee,Se)=>{Array.isArray(_e.current[V])||(_e.current[V]=[]),Array.isArray(_e.current[V][G])||(_e.current[V][G]=[]),_e.current[V][G][ee]=Se},levelControlAriaLabel:typeof v=="function"?v(U):v,locale:c,firstDayOfWeek:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:$,getDayAriaLabel:j,__preventFocus:Z,nextIcon:ae,previousIcon:Q,nextLabel:X,previousLabel:de,onNext:ue,onPrevious:ne,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:T,hasNextLevel:M,classNames:m,styles:d,unstyled:w,__staticSelector:I||"MonthLevelGroup",size:ie,static:ce,withCellSpacing:le,highlightToday:re,withWeekNumbers:he,headerControlsOrder:O,attributes:J},V)});return D.jsx(ir,{classNames:m,styles:d,__staticSelector:I||"MonthLevelGroup",ref:n,size:ie,attributes:J,...be,children:me})});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:c=!1}){const p=ye.useRef(i),[g,h,S]=Mt.useUncontrolled({value:Iu(n,c),defaultValue:Iu(r,c),finalValue:Nu(i),onChange:s});let A=g;return p.current!==i&&(p.current=i,n===void 0&&(A=r!==void 0?r:Nu(i),h(A))),[A,h,S]}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=W.factory((i,n)=>{const r=W.useProps("Calendar",Ng,i),{vars:s,maxLevel:c,minLevel:p,defaultLevel:g,level:h,onLevelChange:S,date:A,defaultDate:E,onDateChange:N,numberOfColumns:k,columnsToScroll:L,ariaLabels:$,nextLabel:j,previousLabel:K,onYearSelect:se,onMonthSelect:le,onYearMouseEnter:re,onMonthMouseEnter:he,headerControlsOrder:Z,__updateDateOnYearSelect:ae,__updateDateOnMonthSelect:Q,__setDateRef:X,__setLevelRef:de,firstDayOfWeek:ue,weekdayFormat:ne,weekendDays:Ae,getDayProps:Oe,excludeDate:T,renderDay:M,hideOutsideDates:O,hideWeekdays:m,getDayAriaLabel:d,monthLabelFormat:w,nextIcon:u,previousIcon:v,__onDayClick:C,__onDayMouseEnter:I,withCellSpacing:B,highlightToday:ie,withWeekNumbers:ce,monthsListFormat:we,getMonthControlProps:J,yearLabelFormat:be,yearsListFormat:_e,getYearControlProps:me,decadeLabelFormat:Y,classNames:V,styles:U,unstyled:G,minDate:ee,maxDate:Se,locale:l,__staticSelector:f,size:_,__preventFocus:R,__stopPropagation:z,onNextDecade:te,onPreviousDecade:De,onNextYear:Ce,onPreviousYear:Pe,onNextMonth:ve,onPreviousMonth:Re,static:Ie,enableKeyboardNavigation:ke,attributes:Xe,...Qe}=r,{resolvedClassNames:nt,resolvedStyles:Et}=W.useResolvedStylesApi({classNames:V,styles:U,props:r}),[pt,rt]=Mt.useUncontrolled({value:h?pi(h,p,c):void 0,defaultValue:g?pi(g,p,c):void 0,finalValue:pi(void 0,p,c),onChange:S}),[An,St]=ks({type:"default",value:sn(A),defaultValue:sn(E),onChange:N});ye.useImperativeHandle(X,()=>ze=>{St(ze)}),ye.useImperativeHandle(de,()=>ze=>{rt(ze)});const Dn={__staticSelector:f||"Calendar",styles:Et,classNames:nt,unstyled:G,size:_,attributes:Xe},At=L||k||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");ve?.(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");De?.(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 D.jsxs(W.Box,{ref:Ut,size:_,"data-calendar":!0,...Qe,children:[pt==="month"&&D.jsx(so,{month:yt,minDate:ee,maxDate:Se,firstDayOfWeek:ue,weekdayFormat:ne,weekendDays:Ae,getDayProps:Oe,excludeDate:T,renderDay:M,hideOutsideDates:O,hideWeekdays:m,getDayAriaLabel:d,onNext:an,onPrevious:ln,hasNextLevel:c!=="month",onLevelClick:()=>rt("year"),numberOfColumns:k,locale:l,levelControlAriaLabel:$?.monthLevelControl,nextLabel:$?.nextMonth??j,nextIcon:u,previousLabel:$?.previousMonth??K,previousIcon:v,monthLabelFormat:w,__onDayClick:C,__onDayMouseEnter:I,__preventFocus:R,__stopPropagation:z,static:Ie,withCellSpacing:B,highlightToday:ie,withWeekNumbers:ce,headerControlsOrder:Z,...Dn}),pt==="year"&&D.jsx(oo,{year:yt,numberOfColumns:k,minDate:ee,maxDate:Se,monthsListFormat:we,getMonthControlProps:J,locale:l,onNext:Yt,onPrevious:Lt,hasNextLevel:c!=="month"&&c!=="year",onLevelClick:()=>rt("decade"),levelControlAriaLabel:$?.yearLevelControl,nextLabel:$?.nextYear??j,nextIcon:u,previousLabel:$?.previousYear??K,previousIcon:v,yearLabelFormat:be,__onControlMouseEnter:he,__onControlClick:(ze,at)=>{Q&&St(at),rt(pi("month",p,c)),le?.(at)},__preventFocus:R,__stopPropagation:z,withCellSpacing:B,headerControlsOrder:Z,...Dn}),pt==="decade"&&D.jsx(io,{decade:yt,minDate:ee,maxDate:Se,yearsListFormat:_e,getYearControlProps:me,locale:l,onNext:Ft,onPrevious:Wt,numberOfColumns:k,nextLabel:$?.nextDecade??j,nextIcon:u,previousLabel:$?.previousDecade??K,previousIcon:v,decadeLabelFormat:Y,__onControlMouseEnter:re,__onControlClick:(ze,at)=>{ae&&St(at),rt(pi("year",p,c)),se?.(at)},__preventFocus:R,__stopPropagation:z,withCellSpacing:B,headerControlsOrder:Z,...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:c,onLevelChange:p,nextIcon:g,previousIcon:h,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:k,ariaLabels:L,nextLabel:$,previousLabel:j,onYearSelect:K,onMonthSelect:se,onYearMouseEnter:le,onMonthMouseEnter:re,onNextMonth:he,onPreviousMonth:Z,onNextYear:ae,onPreviousYear:Q,onNextDecade:X,onPreviousDecade:de,withCellSpacing:ue,highlightToday:ne,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,__setDateRef:T,__setLevelRef:M,withWeekNumbers:O,headerControlsOrder:m,firstDayOfWeek:d,weekdayFormat:w,weekendDays:u,getDayProps:v,excludeDate:C,renderDay:I,hideOutsideDates:B,hideWeekdays:ie,getDayAriaLabel:ce,monthLabelFormat:we,monthsListFormat:J,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:me,getYearControlProps:Y,decadeLabelFormat:V,allowSingleDateInRange:U,allowDeselect:G,minDate:ee,maxDate:Se,locale:l,...f}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:c,onLevelChange:p,nextIcon:g,previousIcon:h,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:k,ariaLabels:L,nextLabel:$,previousLabel:j,onYearSelect:K,onMonthSelect:se,onYearMouseEnter:le,onMonthMouseEnter:re,onNextMonth:he,onPreviousMonth:Z,onNextYear:ae,onPreviousYear:Q,onNextDecade:X,onPreviousDecade:de,withCellSpacing:ue,highlightToday:ne,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,__setDateRef:T,withWeekNumbers:O,headerControlsOrder:m,firstDayOfWeek:d,weekdayFormat:w,weekendDays:u,getDayProps:v,excludeDate:C,renderDay:I,hideOutsideDates:B,hideWeekdays:ie,getDayAriaLabel:ce,monthLabelFormat:we,monthsListFormat:J,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:me,getYearControlProps:Y,decadeLabelFormat:V,allowSingleDateInRange:U,allowDeselect:G,minDate:ee,maxDate:Se,locale:l},others:f}}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=W.factory((i,n)=>{const r=W.useInputProps("DateInput",jg,i),{inputProps:s,wrapperProps:c,value:p,defaultValue:g,onChange:h,clearable:S,clearButtonProps:A,popoverProps:E,getDayProps:N,locale:k,valueFormat:L,dateParser:$,minDate:j,maxDate:K,fixOnBlur:se,onFocus:le,onBlur:re,onClick:he,onKeyDown:Z,readOnly:ae,name:Q,form:X,rightSection:de,unstyled:ue,classNames:ne,styles:Ae,allowDeselect:Oe,date:T,defaultDate:M,onDateChange:O,getMonthControlProps:m,getYearControlProps:d,...w}=r,u=ye.useRef(null),v=ye.useRef(null),[C,I]=ye.useState(!1),{calendarProps:B,others:ie}=Ig(w),ce=nr(),J=$||(Ce=>{const Pe=Te(Ce,L,ce.getLocale(k)).toDate();return Number.isNaN(Pe.getTime())?$g(Ce):Te(Pe).format("YYYY-MM-DD")}),be=Oe!==void 0?Oe:S,_e=Ce=>Ce?Te(Ce).locale(ce.getLocale(k)).format(L):"",[me,Y,V]=ks({type:"default",value:p,defaultValue:g,onChange:h}),[U,G]=ks({type:"default",value:T,defaultValue:g||M,onChange:O});ye.useEffect(()=>{V&&p!==null&&G(p)},[V,p]);const[ee,Se]=ye.useState(_e(me));ye.useEffect(()=>{Se(_e(me))},[ce.getLocale(k)]);const l=Ce=>{const Pe=Ce.currentTarget.value;if(Se(Pe),I(!0),Pe.trim()===""&&S)Y(null);else{const ve=J(Pe);ve&&Bg({date:ve,minDate:j,maxDate:K})&&(Y(ve),G(ve))}},f=Ce=>{re?.(Ce),I(!1),se&&Se(_e(me))},_=Ce=>{le?.(Ce),I(!0)},R=Ce=>{he?.(Ce),I(!0)},z=Ce=>{Ce.key==="Escape"&&I(!1),Z?.(Ce)},te=Ce=>({...N?.(Ce),selected:Te(me).isSame(Ce,"day"),onClick:Pe=>{N?.(Ce).onClick?.(Pe);const ve=S&&be&&Te(me).isSame(Ce,"day")?null:Ce;Y(ve),!V&&ve&&Se(_e(ve)),I(!1)}}),De=de||(S&&me&&!ae?D.jsx(W.CloseButton,{variant:"transparent",onMouseDown:Ce=>Ce.preventDefault(),tabIndex:-1,onClick:()=>{Y(null),!V&&Se(""),I(!1)},unstyled:ue,size:s.size||"sm",...A}):null);return Mt.useDidUpdate(()=>{me!==void 0&&!C&&Se(_e(me))},[me]),Mt.useClickOutside(()=>I(!1),void 0,[u.current,v.current]),D.jsxs(D.Fragment,{children:[D.jsx(W.Input.Wrapper,{...c,__staticSelector:"DateInput",ref:u,children:D.jsxs(W.Popover,{opened:C,trapFocus:!1,position:"bottom-start",disabled:ae,withRoles:!1,unstyled:ue,...E,children:[D.jsx(W.Popover.Target,{children:D.jsx(W.Input,{"data-dates-input":!0,"data-read-only":ae||void 0,autoComplete:"off",ref:n,value:ee,onChange:l,onBlur:f,onFocus:_,onClick:R,onKeyDown:z,readOnly:ae,rightSection:De,...s,...ie,__staticSelector:"DateInput"})}),D.jsx(W.Popover.Dropdown,{onMouseDown:Ce=>Ce.preventDefault(),"data-dates-dropdown":!0,ref:v,children:D.jsx(ao,{__staticSelector:"DateInput",...B,classNames:ne,styles:Ae,unstyled:ue,__preventFocus:!0,minDate:j,maxDate:K,locale:k,getDayProps:te,size:s.size,date:U,onDateChange:G,getMonthControlProps:Ce=>({selected:typeof me=="string"?Rs(Ce,me):!1,...m?.(Ce)}),getYearControlProps:Ce=>({selected:typeof me=="string"?Te(Ce).isSame(me,"year"):!1,...d?.(Ce)}),attributes:c.attributes})})]})}),D.jsx(_u,{name:Q,form:X,value:me,type:"default"})]})});lo.classes={...W.Input.classes,...ao.classes},lo.displayName="@mantine/dates/DateInput";function Yg(i){const n=bn.c(49),{fields:r,onClose:s,queryKey:c,apiPath:p,steps:g,onCreated:h}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1),[k,L]=ye.useState();let $;n[0]===Symbol.for("react.memo_cache_sentinel")?($={},n[0]=$):$=n[0];const[j,K]=ye.useState($),{mutateAsync:se,isError:le,error:re,isPending:he}=pu(p,c),{mutateAsync:Z,isPending:ae}=Es(p,c),Q=he||ae;let X;n[1]!==r?(X=new Set(r.filter(Hg).map(qg)),n[1]=r,n[2]=X):X=n[2];let de;n[3]!==X?(de=[...X],n[3]=X,n[4]=de):de=n[4];const ue=de;let ne;n[5]!==r?(ne=r.reduce(zg,{}),n[5]=r,n[6]=ne):ne=n[6];let Ae;n[7]!==r?(Ae=r.filter(Ug).reduce(Fg,{}),n[7]=r,n[8]=Ae):Ae=n[8];let Oe;n[9]!==ne||n[10]!==Ae?(Oe={mode:"uncontrolled",initialValues:ne,validate:Ae},n[9]=ne,n[10]=Ae,n[11]=Oe):Oe=n[11];const T=Xa.useForm(Oe);let M;n[12]!==j||n[13]!==T||n[14]!==k?(M=function(B){const ie={...T.getValues(),...j};return B.conditional&&!B.conditional(ie)?null:D.jsxs(ye.Fragment,{children:[(B.type===void 0||B.type=="text")&&D.jsx(W.TextInput,{label:B.column.title,placeholder:B.placeholder??"",...T.getInputProps(B.id),type:B.id.includes("email")?"email":void 0},T.key(B.id)),B.type==="number"&&D.jsx(W.NumberInput,{decimalSeparator:",",label:B.column.title,placeholder:B.placeholder??"",...T.getInputProps(B.id)},T.key(B.id)),B.type==="date"&&D.jsx(lo,{label:B.column.title,placeholder:B.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...T.getInputProps(B.id)},T.key(B.id)),B.type==="boolean"&&D.jsx(W.Checkbox,{mt:"md",label:B.column.title,...T.getInputProps(B.id,{type:"checkbox"})},T.key(B.id)),B.type==="textarea"&&D.jsx(W.Textarea,{label:B.column.title,placeholder:B.placeholder??"",...T.getInputProps(B.id),minRows:3,autosize:!0},T.key(B.id)),B.type==="custom"&&B.render&&B.render({...T.getValues(),...k&&{id:k}},ce=>{T.setValues(ce),K(we=>({...we,...ce}))},N)]},B.id)},n[12]=j,n[13]=T,n[14]=k,n[15]=M):M=n[15];const O=M;let m;n[16]!==re?.message||n[17]!==re?.name||n[18]!==le?(m=le&&D.jsx(W.Alert,{variant:"outline",color:"red",title:re?.name??"Fehler aufgetreten",mb:"lg",children:re?.message??"Fehler aufgetreten"}),n[16]=re?.message,n[17]=re?.name,n[18]=le,n[19]=m):m=n[19];let d;n[20]!==S||n[21]!==se||n[22]!==T||n[23]!==le||n[24]!==s||n[25]!==h||n[26]!==k||n[27]!==ue.length||n[28]!==Z?(d=T.onSubmit(async I=>{if(k)await Z({...I,id:k});else{const B=await se(I);L(B.id),h?.(B.id)}ue.length&&S<ue.length-1?le||A(S+1):le||(T.setInitialValues(I),T.reset(),s())}),n[20]=S,n[21]=se,n[22]=T,n[23]=le,n[24]=s,n[25]=h,n[26]=k,n[27]=ue.length,n[28]=Z,n[29]=d):d=n[29];let w;n[30]!==S||n[31]!==r||n[32]!==O||n[33]!==g||n[34]!==ue?(w=ue.length?D.jsx(W.Stepper,{active:S,size:"sm",children:ue.map(I=>D.jsx(W.Stepper.Step,{...g&&g[I-1]?{label:g[I-1].label}:{},children:r.filter(B=>B.step===I).map(B=>O(B))},I))}):r.map(I=>O(I)),n[30]=S,n[31]=r,n[32]=O,n[33]=g,n[34]=ue,n[35]=w):w=n[35];let u;n[36]!==S||n[37]!==E||n[38]!==Q||n[39]!==s||n[40]!==ue.length?(u=!E&&D.jsxs(W.Group,{mt:"md",justify:"end",children:[D.jsx(W.Button,{onClick:()=>ue.length?S===0?s():A(S-1):s(),variant:"outline",children:ue.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(W.Button,{type:"submit",loading:Q,children:ue.length?S===ue.length-1?"Speichern":"Weiter":"Speichern"})]}),n[36]=S,n[37]=E,n[38]=Q,n[39]=s,n[40]=ue.length,n[41]=u):u=n[41];let v;n[42]!==w||n[43]!==u||n[44]!==d?(v=D.jsxs("form",{onSubmit:d,children:[w,u]}),n[42]=w,n[43]=u,n[44]=d,n[45]=v):v=n[45];let C;return n[46]!==v||n[47]!==m?(C=D.jsxs(D.Fragment,{children:[m,v]}),n[46]=v,n[47]=m,n[48]=C):C=n[48],C}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]=W.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),$u=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:c,setColumnsToggle:p,resetColumnsOrder:g,resetColumnsToggle:h,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E}=i,[N,k]=ye.useState(""),[L,$]=ye.useState("");return D.jsx(Gg,{value:{sourceColumn:N,setSourceColumn:k,targetColumn:L,setTargetColumn:$,columnsToggle:c,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!N||!L)return;let j=r.indexOf(N),K=r.indexOf(L);if(j!==-1&&K!==-1){let se=r.splice(j,1)[0];r.splice(K,0,se),s([...r])}},resetColumnsOrder:g,resetColumnsToggle:h,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E},children:n})};function Vg(){return D.jsx("tr",{className:"mantine-datatable-empty-row",children:D.jsx("td",{})})}function Kg(){return D.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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"}),D.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"}),D.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"}),D.jsx("path",{d:"M3 3l18 18"})]})}function Zg({icon:i,text:n,active:r,children:s}){return D.jsx(W.Center,{className:"mantine-datatable-empty-state","data-active":r||void 0,children:s||D.jsxs(D.Fragment,{children:[i||D.jsx("div",{className:"mantine-datatable-empty-state-icon",children:D.jsx(Kg,{})}),D.jsx(W.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var Qg=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Z,ae){let Q=[];return Z.forEach(X=>{ae.find(de=>de.accessor===X)&&Q.push(X)}),ae.forEach(X=>{Q.includes(X.accessor)||Q.push(X.accessor)}),Q}function c(Z,ae){let Q=[];return Z.forEach(X=>{ae.find(de=>de.accessor===X.accessor)&&Q.push(X)}),ae.forEach(X=>{Q.find(de=>de.accessor===X.accessor)||Q.push({accessor:X.accessor,defaultToggle:X.defaultToggle||!0,toggleable:X.toggleable,toggled:X.defaultToggle===void 0?!0:X.defaultToggle})}),Q}function p(Z,ae){let Q=[];return Z.forEach(X=>{let de=Object.keys(X)[0];ae.find(ue=>ue.accessor===de)&&Q.push(X)}),ae.forEach(X=>{let de=X.accessor;if(!Q.find(ue=>Object.keys(ue)[0]===de)){let ue={};ue[de]="",Q.push(ue)}}),Q}function g(){let[Z,ae]=Mt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function Q(ue){i&&ae(ue)}if(!i)return[Z,Q];let X=s(Z,n),de=JSON.stringify(Z);return JSON.stringify(X)!==de&&Q(X),[X,Q]}function h(){let[Z,ae]=Mt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?N:void 0,getInitialValueInEffect:r});function Q(ue){i&&ae(ue)}if(!i)return[Z,Q];let X=c(Z,n),de=JSON.stringify(Z);return JSON.stringify(X)!==de&&Q(X),[c(Z,n),Q]}function S(){let[Z,ae]=Mt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function Q(ue){i&&ae(ue)}if(!i)return[Z,Q];let X=p(Z,n),de=JSON.stringify(Z);return JSON.stringify(X)!==de&&Q(X),[p(Z,n),Q]}let A=n&&n.map(Z=>Z.accessor)||[],E=n&&n.map(Z=>({[Z.accessor]:Z.width??"initial"}))||[],N=n&&n.map(Z=>({accessor:Z.accessor,defaultToggle:Z.defaultToggle||!0,toggleable:Z.toggleable,toggled:Z.defaultToggle===void 0?!0:Z.defaultToggle})),[k,L]=g(),[$,j]=h(),[K,se]=S(),le=()=>L(A),re=()=>{j(N)},he=()=>se(E);return{effectiveColumns:ye.useMemo(()=>k?k.map(Z=>n.find(ae=>ae.accessor===Z)).map(Z=>({...Z,hidden:Z?.hidden||!$.find(ae=>ae.accessor===Z?.accessor)?.toggled})).map(Z=>({...Z,width:K.find(ae=>ae[Z?.accessor])?.[Z?.accessor]})):n,[n,k,$,K]),setColumnsOrder:L,columnsOrder:k,resetColumnsOrder:le,columnsToggle:$,setColumnsToggle:j,resetColumnsToggle:re,columnsWidth:K,setColumnsWidth:se,setColumnWidth:(Z,ae)=>{let Q=K.map(X=>X[Z]?{[Z]:ae}:X);se(Q)},setMultipleColumnWidths:Z=>{let ae=K.map(Q=>{let X=Object.keys(Q)[0],de=Z.find(ue=>ue.accessor===X);return de?{[X]:de.width}:Q});se(ae)},resetColumnsWidth:he}},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(c=>{let p=c[0];p&&n(Is(p))});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:c,scrollViewport:p,header:g,footer:h,selectionColumnHeader:S}=r,A=ju({withRowBorders:n}),E=ju(i),N=ye.useRef(()=>{}),k=ye.useRef(()=>{}),L=ye.useCallback($=>{E.current.onScroll?.($),N.current()},[]);return ye.useEffect(()=>$s(g.current,$=>{Sn(s.current,Yu,`${$.height}px`)},()=>Sn(s.current,Yu,"0")),[g.current]),ye.useEffect(()=>$s(h.current,$=>{Sn(s.current,Fu,`${$.height}px`)},()=>Sn(s.current,Fu,"0")),[h.current]),ye.useEffect(()=>$s(S.current,$=>{Sn(s.current,Wu,`${$.width}px`)},()=>Sn(s.current,Wu,"0")),[S.current]),Bu(()=>{if(typeof window===void 0)return;let $={top:!0,bottom:!0,left:!0,right:!0},j={width:0,height:0},K={width:0,height:0};function se(ae,Q){let X=$[ae];return $[ae]=Q,Sn(s.current,`--mantine-datatable-${ae}-shadow-opacity`,Q?"0":"1"),X}function le(){let ae=j.height-K.height,Q=ae<0;Sn(s.current,"--mantine-datatable-footer-position",Q?"relative":"sticky"),Sn(s.current,"--mantine-datatable-footer-bottom",Q?`${ae}px`:"0")}function re(){A.current.withRowBorders&&j.height<K.height?Sn(s.current,Uu,`${W.rem("1px")} solid var(--mantine-datatable-border-color)`):Sn(s.current,Uu,"unset")}k.current=re;function he(){let ae=E.current,Q=p.current?.scrollTop??0,X=p.current?.scrollLeft??0,de=Q===0,ue=j.height-Q-K.height<1,ne=se("top",de),Ae=se("bottom",ue);de&&de!==ne&&ae.onScrollToTop?.(),ue&&ue!==Ae&&ae.onScrollToBottom?.();let Oe=X===0,T=j.width-X-K.width<1,M=se("left",Oe),O=se("right",T);Oe&&Oe!==M&&ae.onScrollToLeft?.(),T&&T!==O&&ae.onScrollToRight?.()}N.current=he;let Z=new ResizeObserver(ae=>{for(let Q of ae)switch(Q.target.tagName){case"TABLE":{j=Is(Q);break}case"DIV":{K=Is(Q);break}}he(),le(),re()});return Z.observe(c.current),Z.observe(p.current),()=>{Z.disconnect()}},[]),Bu(()=>{k.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(c=>c.matches))},s=i.map(c=>{try{return c.addEventListener("change",r),()=>c.removeEventListener("change",r)}catch{return c.addListener(r),()=>c.removeListener(r)}});return()=>{s.forEach(c=>c())}}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,c]=ye.useState(r?n:t1(i,n)),p=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return p.current=i.map(g=>window.matchMedia(g)),c(p.current.map(g=>g.matches)),e1(p.current,g=>{c(g)})},[i]),s}function r1(i){let n=W.useMantineTheme(),r=ye.useMemo(()=>i.map(c=>(typeof c=="function"?c(n):c)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return n1(r,s)}function uo(i){let n=W.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,c)=>s===c.findIndex(p=>n(r)===n(p)))}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:S,initiallyExpanded:A}=i;n&&h==="always"?s=n.map(E=>kt(E,r)):A&&(s=n.filter((E,N)=>A({record:E,index:N})).map(E=>kt(E,r)),S||(s=[s[0]]))}let c,p,g=ye.useState(s);if(i){let{expandable:h,trigger:S,allowMultiple:A,collapseProps:E,content:N}=i;i.expanded?{recordIds:c,onRecordIdsChange:p}=i.expanded:[c,p]=g;let k=L=>p?.(c.filter($=>$!==kt(L,r)));return{expandOnClick:S!=="always"&&S!=="never",isRowExpanded:L=>S==="always"?!0:c.includes(kt(L,r)),isExpandable:({record:L,index:$})=>h?h({record:L,index:$}):!0,expandRow:L=>{let $=kt(L,r);p?.(A?[...c,$]:[$])},collapseRow:k,collapseProps:E,content:({record:L,index:$})=>()=>N({record:L,index:$,collapse:()=>k(L)})}}}function s1(i,n){let[r,s]=ye.useState(i),[c,p]=ye.useState(i),g=Mt.useTimeout(()=>s(!0),0),h=Mt.useTimeout(()=>p(!1),n||200);return ye.useEffect(()=>{i?(h.clear(),p(!0),g.start()):(g.clear(),s(!1),h.start())},[g,h,i]),{expanded:r,visible:c}}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:c,ellipsis:p,textAlign:g,width:h}){return uo(r)?D.jsx(W.TableTh,{className:ht({[Ys]:c||p,[Fs]:p,[co]:g==="left",[fo]:g==="center",[ho]:g==="right"},i),style:[{width:h,minWidth:h,maxWidth:h},n],children:s}):null}function u1({shadowVisible:i}){return D.jsx(W.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:c,selectorCellShadowVisible:p,ref:g}){return D.jsx(W.TableTfoot,{ref:g,className:ht("mantine-datatable-footer",i),style:n,children:D.jsxs(W.TableTr,{children:[c&&D.jsx(u1,{shadowVisible:p}),r.map(({hidden:h,...S})=>{if(h)return null;let{accessor:A,visibleMediaQuery:E,textAlign:N,width:k,footer:L,footerClassName:$,footerStyle:j,noWrap:K,ellipsis:se}={...s,...S};return D.jsx(l1,{className:$,style:j,visibleMediaQuery:E,textAlign:N,width:k,title:L,noWrap:K,ellipsis:se},A)})]})})}function f1({group:{id:i,columns:n,title:r,textAlign:s,className:c,style:p}}){let g=ye.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),h=r1(g),S=ye.useMemo(()=>n.filter(({hidden:A},E)=>!A&&h?.[E]).length,[n,h]);return S>0?D.jsx(W.TableTh,{colSpan:S,className:ht("mantine-datatable-column-group-header-cell",{[co]:s==="left",[fo]:s==="center",[ho]:s==="right"},c),style:p,children:r??Bs(i)}):null}function h1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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 D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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[c,{close:p,toggle:g}]=Mt.useDisclosure(!1),h=n?d1:h1,S=Mt.useClickOutside(p);return s&&(S=void 0),D.jsxs(W.Popover,{withArrow:!0,shadow:"md",opened:c,onClose:p,trapFocus:!0,...r,children:[D.jsx(W.PopoverTarget,{children:D.jsx(W.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:A=>{A.preventDefault(),g()},onKeyDown:A=>A.stopPropagation(),children:D.jsx(h,{})})}),D.jsx(W.PopoverDropdown,{ref:S,onClick:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),children:typeof i=="function"?i({close:p}):i})]})}var g1=i=>{let{accessor:n,columnRef:r}=i,[s,c]=ye.useState(!1),p=ye.useRef(0),g=ye.useRef({current:0,next:0}),{setMultipleColumnWidths:h}=Ns(),S=ye.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let N=r.current,k=N.nextElementSibling;for(;k;){let re=k.getAttribute("data-accessor");if(re&&re!=="__selection__")break;k=k.nextElementSibling}if(!k)return;let L=k.getAttribute("data-accessor");if(!L)return;let $=L==="__selection__";c(!0),p.current=E.clientX;let j=N.offsetWidth,K=k.offsetWidth;g.current={current:j,next:K};let se=re=>{if(!r.current)return;let he=r.current,Z=he.nextElementSibling;if(!Z)return;let ae=re.clientX-p.current,Q=50,X=g.current.current-Q,de=g.current.next-Q,ue=Math.max(-X,Math.min(ae,de)),ne=g.current.current+ue,Ae=g.current.next-ue;he.style.width=`${ne}px`,Z.style.width=`${Ae}px`,he.style.minWidth=`${ne}px`,he.style.maxWidth=`${ne}px`,Z.style.minWidth=`${Ae}px`,Z.style.maxWidth=`${Ae}px`},le=()=>{if(!r.current)return;let re=r.current,he=re.nextElementSibling;c(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Z=parseInt(re.style.width)||re.offsetWidth,ae=he?parseInt(he.style.width)||he.offsetWidth:0,Q=[{accessor:n,width:`${Z}px`}];if(he&&!$){let X=he.getAttribute("data-accessor");X&&Q.push({accessor:X,width:`${ae}px`})}setTimeout(()=>{h(Q)},0),document.removeEventListener("mousemove",se),document.removeEventListener("mouseup",le)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",se),document.addEventListener("mouseup",le)},[n,h]),A=ye.useCallback(()=>{if(!r.current)return;let E=r.current,N=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let k=[{accessor:n,width:"initial"}];if(N){N.style.width="",N.style.minWidth="",N.style.maxWidth="";let L=N.getAttribute("data-accessor");L&&L!=="__selection__"&&k.push({accessor:L,width:"initial"})}setTimeout(()=>{h(k)},0)},[n,h]);return D.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:S,onDoubleClick:A,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};function m1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M12 5l0 14"}),D.jsx("path",{d:"M16 9l-4 -4"}),D.jsx("path",{d:"M8 9l4 -4"})]})}function v1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 7l4 -4l4 4"}),D.jsx("path",{d:"M8 17l4 4l4 -4"}),D.jsx("path",{d:"M12 3l0 18"})]})}function y1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function _1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M18 6l-12 12"}),D.jsx("path",{d:"M6 6l12 12"})]})}function w1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:c,sortable:p,draggable:g,toggleable:h,resizable:S,sortIcons:A,textAlign:E,width:N,sortStatus:k,onSortStatusChange:L,filter:$,filterPopoverProps:j,filterPopoverDisableClickOutside:K,filtering:se,sortKey:le}){let{setSourceColumn:re,setTargetColumn:he,swapColumns:Z,setColumnsToggle:ae}=Ns(),[Q,X]=ye.useState(!1),de=ye.useRef(null);if(!uo(s))return null;let ue=c??Bs(r),ne=typeof ue=="string"?ue:void 0,Ae=p&&L?w=>{w?.defaultPrevented||L({sortKey:le,columnAccessor:r,direction:k?.columnAccessor===r?k.direction==="asc"?"desc":"asc":k?.direction??"asc"})}:void 0,Oe=w=>{w.stopPropagation(),re(r),X(!1)},T=w=>{w.preventDefault(),he(r),X(!0)},M=()=>{he(r),X(!1),Z()},O=()=>{X(!0)},m=()=>{X(!1)},d=w=>{w.stopPropagation(),ae(u=>u.map(v=>v.accessor===r?{...v,toggled:!1}:v))};return D.jsxs(W.TableTh,{"data-accessor":r,className:ht({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":h,"mantine-datatable-header-cell-resizable":S},i),style:[{width:N,...S?{minWidth:"1px"}:{minWidth:N,maxWidth:N}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:Ae,onKeyDown:w=>w.key==="Enter"&&Ae?.(),ref:de,children:[D.jsxs(W.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[D.jsxs(W.Flex,{align:"center",w:"100%",className:ht({"mantine-datatable-header-cell-draggable":g,"mantine-datatable-header-cell-drag-over":Q}),draggable:g,onDragStart:g?Oe:void 0,onDragEnter:g?O:void 0,onDragOver:g?T:void 0,onDrop:g?M:void 0,onDragLeave:g?m:void 0,children:[g?D.jsx(W.Center,{role:"img","aria-label":"Drag column",children:D.jsx(W.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:w=>{w.stopPropagation()},children:D.jsx(y1,{})})}):null,D.jsx(W.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},Ys,Fs),title:ne,children:ue})]}),h?D.jsx(W.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:D.jsx(W.ActionIcon,{size:"xs",variant:"light",onClick:d,children:D.jsx(_1,{})})}):null,p||k?.columnAccessor===r?D.jsx(D.Fragment,{children:k?.columnAccessor===r?D.jsx(W.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":k.direction==="desc"}),role:"img","aria-label":`Sorted ${k.direction==="desc"?"descending":"ascending"}`,children:A?.sorted||D.jsx(m1,{})}):D.jsx(W.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:A?.unsorted||D.jsx(v1,{})})}):null,$?D.jsx(p1,{filterPopoverProps:j,isActive:!!se,filterPopoverDisableClickOutside:K,children:$}):null]}),S&&r!=="__selection__"?D.jsx(g1,{accessor:r,columnRef:de}):null]})}function b1({className:i,style:n,trigger:r,shadowVisible:s,checked:c,indeterminate:p,checkboxProps:g,onChange:h,rowSpan:S,ref:A}){let E=!g.disabled;return D.jsx(W.TableTh,{ref:A,className:ht("mantine-datatable-header-selector-cell",{[Mr]:r==="cell"&&E},i),style:n,rowSpan:S,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?h:void 0,children:D.jsx(W.Checkbox,{classNames:E?{input:Mr}:void 0,checked:c,indeterminate:p,onChange:h,...g,disabled:!(h||g.onChange)||g.disabled})})}function x1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:c,onSortStatusChange:p,columns:g,defaultColumnProps:h,groups:S,selectionTrigger:A,selectionVisible:E,selectionChecked:N,selectionIndeterminate:k,onSelectionChange:L,selectionCheckboxProps:$,selectorCellShadowVisible:j,selectionColumnClassName:K,selectionColumnStyle:se,ref:le}){let re=E?D.jsx(b1,{ref:i,className:K,style:se,trigger:A,shadowVisible:j,checked:N,indeterminate:k,checkboxProps:$,onChange:L,rowSpan:S?2:void 0}):null,{columnsToggle:he,setColumnsToggle:Z}=Ns(),[ae,Q]=ye.useState(!1),X=g.some(ne=>ne.toggleable),de=X?Object.fromEntries(g.map(({accessor:ne,title:Ae})=>[ne,Ae??Bs(String(ne))])):void 0,ue=D.jsxs(W.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:le,onContextMenu:X?ne=>{ne.preventDefault(),Q(Ae=>!Ae)}:void 0,children:[S&&D.jsxs(W.TableTr,{children:[re,S.map(ne=>D.jsx(f1,{group:ne},ne.id))]}),D.jsxs(W.TableTr,{children:[!S&&re,g.map(({hidden:ne,...Ae},Oe)=>{if(ne)return null;let{accessor:T,visibleMediaQuery:M,textAlign:O,width:m,title:d,sortable:w,draggable:u,toggleable:v,resizable:C,titleClassName:I,titleStyle:B,filter:ie,filterPopoverProps:ce,filterPopoverDisableClickOutside:we,filtering:J,sortKey:be}={...h,...Ae};return D.jsx(w1,{accessor:T,className:I,style:B,visibleMediaQuery:M,textAlign:O,width:m,title:d,sortable:w,draggable:u,toggleable:v,resizable:C&&Oe<g.length-1,sortStatus:s,sortIcons:c,sortKey:be,onSortStatusChange:p,filter:ie,filterPopoverProps:ce,filterPopoverDisableClickOutside:we,filtering:J},T)})]})]});return X?D.jsxs(W.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:ae,onChange:Q,children:[D.jsx(W.PopoverTarget,{children:ue}),D.jsx(W.PopoverDropdown,{children:D.jsx(W.Stack,{children:he.filter(ne=>ne.toggleable).map(ne=>D.jsx(W.Group,{children:D.jsx(W.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[ne.accessor],checked:ne.toggled,onChange:Ae=>{Z(he.map(Oe=>Oe.accessor===ne.accessor?{...Oe,toggled:Ae.currentTarget.checked}:Oe))}})},ne.accessor))})})]}):ue}function C1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:c,color:p}){return D.jsx(W.Center,{className:ht("mantine-datatable-loader",{"mantine-datatable-loader-fetching":i}),style:[{backdropFilter:r?`blur(${r}px)`:void 0}],children:i&&(n||D.jsx(W.Loader,{size:s,type:c,color:p}))})}function vt(i,n,r){return i?W.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function S1({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:c,stripedColor:p,highlightOnHoverColor:g}){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(c,i,"light"),"--mantine-datatable-row-border-color-dark":vt(c,i,"dark"),"--mantine-datatable-striped-color-light":vt(p,i,"light"),"--mantine-datatable-striped-color-dark":vt(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":vt(g,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":vt(g,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 A1({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 D1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 9l4 -4l4 4"}),D.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Gu={xs:W.rem(22),sm:W.rem(26),md:W.rem(32),lg:W.rem(38),xl:W.rem(44)};function O1({size:i,label:n,values:r,value:s,activeTextColor:c,activeBackgroundColor:p,onChange:g}){return D.jsxs(W.Group,{gap:"xs",children:[D.jsx(W.Text,{component:"div",size:i,children:n}),D.jsxs(W.Menu,{withinPortal:!0,withArrow:!0,offset:2,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[D.jsx(W.MenuTarget,{children:D.jsx(W.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:D.jsx(D1,{}),style:[{fontWeight:"normal"},h=>({height:Gu[i],paddingLeft:h.spacing[i],paddingRight:h.spacing[i]})],children:s})}),D.jsx(W.MenuDropdown,{children:r.map(h=>{let S=h===s;return D.jsx(W.MenuItem,{className:ht({"mantine-datatable-page-size-selector-active":S}),style:[{height:Gu[i]},S&&(c||p)?A=>Hu({theme:A,paginationActiveTextColor:c,paginationActiveBackgroundColor:p}):void 0],disabled:S,onClick:()=>g(h),children:D.jsx(W.Text,{component:"div",size:i,children:h})},h)})})]})]})}function E1({className:i,style:n,fetching:r,page:s,onPageChange:c,paginationWithEdges:p,paginationWithControls:g,paginationActiveTextColor:h,paginationActiveBackgroundColor:S,paginationSize:A,loadingText:E,noRecordsText:N,paginationText:k,totalRecords:L,recordsPerPage:$,onRecordsPerPageChange:j,recordsPerPageLabel:K,recordsPerPageOptions:se,recordsLength:le,horizontalSpacing:re,paginationWrapBreakpoint:he,getPaginationControlProps:Z}){let ae;if(L){let X=(s-1)*$+1,de=X+(le||0)-1;ae=k({from:X,to:de,totalRecords:L})}else ae=r?E:N;let Q=uo(({breakpoints:X})=>`(min-width: ${typeof he=="number"?`${W.rem(he)}rem`:X[he]||he})`);return D.jsxs(W.Box,{px:re??"xs",py:"xs",className:ht("mantine-datatable-pagination",i),style:[{flexDirection:Q?"row":"column"},n],children:[D.jsx(W.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:ae}),se&&D.jsx(O1,{activeTextColor:h,activeBackgroundColor:S,size:A,label:K,values:se,value:$,onChange:j}),D.jsx(W.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!le}),control:"mantine-datatable-pagination-pages-control"},style:h||S?X=>Hu({theme:X,paginationActiveTextColor:h,paginationActiveBackgroundColor:S}):void 0,withEdges:p,withControls:g,value:s,onChange:c,size:A,total:Math.ceil(L/$),getControlProps:Z})]})}function T1({className:i,style:n,visibleMediaQuery:r,record:s,index:c,onClick:p,onDoubleClick:g,onContextMenu:h,noWrap:S,ellipsis:A,textAlign:E,width:N,accessor:k,render:L,defaultRender:$,customCellAttributes:j}){return uo(r)?D.jsx(W.TableTd,{className:ht({[Ys]:S||A,[Fs]:A,[Mr]:p||g,[qu]:h,[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},i),style:[{width:N,minWidth:N,maxWidth:N},n],onClick:p,onDoubleClick:g,onContextMenu:h,...j?.(s,c),children:L?L(s,c):$?$(s,c,k):zu(s,k)}):null}function P1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:c,visible:p}=s1(i,s?.transitionDuration);return p?D.jsxs(D.Fragment,{children:[D.jsx(W.TableTr,{}),D.jsx(W.TableTr,{children:D.jsx(W.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:D.jsx(W.Collapse,{in:c,...s,children:D.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function M1({className:i,style:n,record:r,index:s,trigger:c,onChange:p,withRightShadow:g,checkboxProps:h,getCheckboxProps:S,...A}){let E={...h,...S(r,s)},N=!A.disabled&&!E.disabled,k=L=>{L.stopPropagation(),c==="cell"&&N&&p?.(L)};return D.jsx(W.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Mr]:c==="cell"&&N},i),style:n,"data-shadow-visible":g||void 0,onClick:k,children:D.jsx(W.Checkbox,{classNames:N?{input:Mr}:void 0,onChange:p,...A,...E})})}function R1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:c,selectionTrigger:p,selectionVisible:g,selectionChecked:h,onSelectionChange:S,isRecordSelectable:A,selectionCheckboxProps:E,getSelectionCheckboxProps:N,onClick:k,onDoubleClick:L,onContextMenu:$,onCellClick:j,onCellDoubleClick:K,onCellContextMenu:se,expansion:le,customAttributes:re,color:he,backgroundColor:Z,className:ae,style:Q,selectorCellShadowVisible:X,selectionColumnClassName:de,selectionColumnStyle:ue,rowFactory:ne}){let Ae=D.jsxs(D.Fragment,{children:[g&&D.jsx(M1,{className:de,style:ue,record:i,index:n,trigger:p,withRightShadow:X,checked:h,disabled:!S||(A?!A(i,n):!1),onChange:S,checkboxProps:E,getCheckboxProps:N}),r.map(({hidden:M,hiddenContent:O,...m},d)=>{if(M||O)return null;let{accessor:w,visibleMediaQuery:u,textAlign:v,noWrap:C,ellipsis:I,width:B,render:ie,cellsClassName:ce,cellsStyle:we,customCellAttributes:J}={...s,...m};return D.jsx(T1,{className:typeof ce=="function"?ce(i,n):ce,style:we?.(i,n),visibleMediaQuery:u,record:i,index:n,onClick:j?be=>j({event:be,record:i,index:n,column:m,columnIndex:d}):void 0,onDoubleClick:K?be=>K({event:be,record:i,index:n,column:m,columnIndex:d}):void 0,onContextMenu:se?be=>se({event:be,record:i,index:n,column:m,columnIndex:d}):void 0,accessor:w,textAlign:v,noWrap:C,ellipsis:I,width:B,render:ie,defaultRender:c,customCellAttributes:J},w)})]}),Oe=le&&D.jsx(P1,{colSpan:r.filter(({hidden:M})=>!M).length+(g?1:0),open:le.isRowExpanded(i),content:le.content({record:i,index:n}),collapseProps:le.collapseProps}),T=k1({record:i,index:n,selectionChecked:h,onClick:k,onDoubleClick:L,onContextMenu:$,expansion:le,customAttributes:re,color:he,backgroundColor:Z,className:ae,style:Q});return ne?ne({record:i,index:n,rowProps:T,children:Ae,expandedElement:Oe}):D.jsxs(D.Fragment,{children:[D.jsx(W.TableTr,{...T,children:Ae}),Oe]})}function k1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:c,onContextMenu:p,expansion:g,customAttributes:h,color:S,backgroundColor:A,className:E,style:N}){return{className:ht("mantine-datatable-row",{[Mr]:s||c||g?.isExpandable({record:i,index:n})&&g?.expandOnClick},{[qu]:p},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:k=>{if(g){let{isExpandable:L,isRowExpanded:$,expandOnClick:j,expandRow:K,collapseRow:se}=g;L({record:i,index:n})&&j&&($(i)?se(i):K(i))}s?.({event:k,record:i,index:n})},onDoubleClick:c?k=>c({event:k,record:i,index:n}):void 0,onContextMenu:p?k=>p({event:k,record:i,index:n}):void 0,style:[S||A?k=>{let L=S?.(i,n),$=A?.(i,n);return A1({theme:k,color:L,backgroundColor:$})}:void 0,N?.(i,n)],...h?.(i,n)??{}}}function L1({leftShadowBehind:i,rightShadowBehind:n,onScrollPositionChange:r,children:s,viewportRef:c,scrollAreaProps:p}){return D.jsxs(W.ScrollArea,{...p,viewportRef:c,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,D.jsx(W.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),D.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),D.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),D.jsx(W.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:c,maxHeight:p,shadow:g,verticalAlign:h="center",fetching:S,columns:A,storeColumnsKey:E,groups:N,pinFirstColumn:k,pinLastColumn:L,defaultColumnProps:$,defaultColumnRender:j,idAccessor:K="id",records:se,selectionTrigger:le="checkbox",selectedRecords:re,onSelectedRecordsChange:he,selectionColumnClassName:Z,selectionColumnStyle:ae,isRecordSelectable:Q,selectionCheckboxProps:X,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:ue=(_t,Ze)=>({"aria-label":`Select record ${Ze+1}`}),sortStatus:ne,sortIcons:Ae,onSortStatusChange:Oe,horizontalSpacing:T,page:M,onPageChange:O,totalRecords:m,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:u,recordsPerPageLabel:v="Records per page",paginationWithEdges:C,paginationWithControls:I,paginationActiveTextColor:B,paginationActiveBackgroundColor:ie,paginationSize:ce="sm",paginationText:we=({from:_t,to:Ze,totalRecords:ct})=>`${_t} - ${Ze} / ${ct}`,paginationWrapBreakpoint:J="sm",getPaginationControlProps:be=_t=>_t==="previous"?{"aria-label":"Previous page"}:_t==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:_e,customLoader:me,loaderSize:Y,loaderType:V,loaderColor:U,loadingText:G="...",emptyState:ee,noRecordsText:Se="No records",noRecordsIcon:l,highlightOnHover:f,striped:_,noHeader:R,onRowClick:z,onRowDoubleClick:te,onRowContextMenu:De,onCellClick:Ce,onCellDoubleClick:Pe,onCellContextMenu:ve,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)??A,[A,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:se,idAccessor:K}),Wn=ye.useCallback(Ve=>{zt.scrollViewport.current?.scrollTo({top:0,left:0}),O(Ve)},[O,zt.scrollViewport]),Lr=se?.length,po=se?.map(Ve=>kt(Ve,K)),or=!!re,sr=re?.map(Ve=>kt(Ve,K)),mi=po!==void 0&&sr!==void 0&&sr.length>0,Nr=Q?se?.filter(Q):se,Ir=Nr?.map(Ve=>kt(Ve,K)),$r=mi&&Ir.every(Ve=>sr.includes(Ve)),Ws=mi&&Ir.some(Ve=>sr.includes(Ve)),Us=ye.useCallback(()=>{re&&he&&he($r?re.filter(Ve=>!Ir.includes(kt(Ve,K))):js([...re,...Nr],Ve=>kt(Ve,K)))},[$r,K,he,Ir,Nr,re]),{lastSelectionChangeIndex:_r,setLastSelectionChangeIndex:go}=Xg(po),Br=or&&!k,vi={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 D.jsx($u,{...ct,children:D.jsxs(W.Box,{ref:zt.root,...vi,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[g]||g,height:s,minHeight:c,maxHeight:p}),yr,cn?.root,{position:"relative"}],children:[D.jsx(L1,{viewportRef:Fn,leftShadowBehind:or||!!k,rightShadowBehind:L,onScrollPositionChange:Yn,scrollAreaProps:Yt,children:D.jsx(zs,{children:D.jsxs(W.Table,{ref:Rr,horizontalSpacing:T,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":k,"mantine-datatable-resizable-columns":Ze},un?.table),style:{...cn?.table},"data-striped":Lr&&_||void 0,"data-highlight-on-hover":f||void 0,...hn,children:[R?null:D.jsx($u,{...ct,children:D.jsx(x1,{ref:zt.header,selectionColumnHeaderRef:zt.selectionColumnHeader,className:un?.header,style:cn?.header,columns:_t,defaultColumnProps:$,groups:N,sortStatus:ne,sortIcons:Ae,onSortStatusChange:Oe,selectionTrigger:le,selectionVisible:or,selectionChecked:$r,selectionIndeterminate:Ws&&!$r,onSelectionChange:Us,selectionCheckboxProps:{...X,...de},selectorCellShadowVisible:Br,selectionColumnClassName:Z,selectionColumnStyle:ae})}),D.jsx("tbody",{ref:Ft,children:Lr?se.map((Ve,Ln)=>{let jr=kt(Ve,K),yi=sr?.includes(jr)||!1,_i;return he&&re&&(_i=mo=>{if(mo.nativeEvent.shiftKey&&_r!==null){let Nn=se.filter(Ln>_r?(Un,In)=>In>=_r&&In<=Ln&&(Q?Q(Un,In):!0):(Un,In)=>In>=Ln&&In<=_r&&(Q?Q(Un,In):!0));he(yi?i1(re,Nn,Un=>kt(Un,K)):js([...re,...Nn],Un=>kt(Un,K)))}else he(yi?re.filter(Nn=>kt(Nn,K)!==jr):js([...re,Ve],Nn=>kt(Nn,K)));go(Ln)}),D.jsx(R1,{record:Ve,index:Ln,columns:_t,defaultColumnProps:$,defaultColumnRender:j,selectionTrigger:le,selectionVisible:or,selectionChecked:yi,onSelectionChange:_i,isRecordSelectable:Q,selectionCheckboxProps:X,getSelectionCheckboxProps:ue,onClick:z,onDoubleClick:te,onCellClick:Ce,onCellDoubleClick:Pe,onContextMenu:De,onCellContextMenu:ve,expansion:kr,color:Dn,backgroundColor:At,className:On,style:yt,customAttributes:an,selectorCellShadowVisible:Br,selectionColumnClassName:Z,selectionColumnStyle:ae,idAccessor:K,rowFactory:kn},jr)}):D.jsx(Vg,{})}),_t.some(({footer:Ve})=>Ve)&&D.jsx(c1,{ref:zt.footer,className:un?.footer,style:cn?.footer,columns:_t,defaultColumnProps:$,selectionVisible:or,selectorCellShadowVisible:Br})]})})}),M&&D.jsx(E1,{className:un?.pagination,style:cn?.pagination,horizontalSpacing:T,fetching:S,page:M,onPageChange:Wn,totalRecords:m,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:u,recordsPerPageLabel:v,paginationWithEdges:C,paginationWithControls:I,paginationActiveTextColor:B,paginationActiveBackgroundColor:ie,paginationSize:ce,paginationText:we,paginationWrapBreakpoint:J,getPaginationControlProps:be,noRecordsText:Se,loadingText:G,recordsLength:Lr}),D.jsx(C1,{fetching:S,backgroundBlur:_e,customContent:me,size:Y,type:V,color:U}),D.jsx(Zg,{icon:l,text:Se,active:!S&&!Lr,children:ee})]})})}var gi={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,p=window.Cookies=r();p.noConflict=function(){return window.Cookies=u,p}}})(function(){function r(){for(var p=0,g={};p<arguments.length;p++){var h=arguments[p];for(var S in h)g[S]=h[S]}return g}function s(p){return p.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function u(p){function g(){}function h(A,E,N){if(!(typeof document>"u")){N=r({path:"/"},g.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 k=JSON.stringify(E);/^[\{\[]/.test(k)&&(E=k)}catch{}E=p.write?p.write(E,A):encodeURIComponent(String(E)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),A=encodeURIComponent(String(A)).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=A+"="+E+L}}function S(A,E){if(!(typeof document>"u")){for(var N={},k=document.cookie?document.cookie.split("; "):[],L=0;L<k.length;L++){var I=k[L].split("="),B=I.slice(1).join("=");!E&&B.charAt(0)==='"'&&(B=B.slice(1,-1));try{var Z=s(I[0]);if(B=(p.read||p)(B,Z)||s(B),E)try{B=JSON.parse(B)}catch{}if(N[Z]=B,A===Z)break}catch{}}return A?N[A]:N}}return g.set=h,g.get=function(A){return S(A,!1)},g.getJSON=function(A){return S(A,!0)},g.remove=function(A,E){h(A,"",r(E,{expires:-1}))},g.defaults={},g.withConverter=u,g}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:(g,h)=>{var S,A,E=function(){var N=function(T,M){var O=T,m=ae[M],d=null,w=0,f=null,v=[],b={},$=function(j,K){d=function(W){for(var V=new Array(W),re=0;re<W;re+=1){V[re]=new Array(W);for(var Se=0;Se<W;Se+=1)V[re][Se]=null}return V}(w=4*O+17),U(0,0),U(w-7,0),U(0,w-7),G(),ee(),X(j,K),O>=7&&we(j),f==null&&(f=_e(O,m,v)),be(f,K)},U=function(j,K){for(var W=-1;W<=7;W+=1)if(!(j+W<=-1||w<=j+W))for(var V=-1;V<=7;V+=1)K+V<=-1||w<=K+V||(d[j+W][K+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)},ee=function(){for(var j=8;j<w-8;j+=1)d[j][6]==null&&(d[j][6]=j%2==0);for(var K=8;K<w-8;K+=1)d[6][K]==null&&(d[6][K]=K%2==0)},G=function(){for(var j=ue.getPatternPosition(O),K=0;K<j.length;K+=1)for(var W=0;W<j.length;W+=1){var V=j[K],re=j[W];if(d[V][re]==null)for(var Se=-2;Se<=2;Se+=1)for(var l=-2;l<=2;l+=1)d[V+Se][re+l]=Se==-2||Se==2||l==-2||l==2||Se==0&&l==0}},we=function(j){for(var K=ue.getBCHTypeNumber(O),W=0;W<18;W+=1){var V=!j&&(K>>W&1)==1;d[Math.floor(W/3)][W%3+w-8-3]=V}for(W=0;W<18;W+=1)V=!j&&(K>>W&1)==1,d[W%3+w-8-3][Math.floor(W/3)]=V},X=function(j,K){for(var W=m<<3|K,V=ue.getBCHTypeInfo(W),re=0;re<15;re+=1){var Se=!j&&(V>>re&1)==1;re<6?d[re][8]=Se:re<8?d[re+1][8]=Se:d[w-15+re][8]=Se}for(re=0;re<15;re+=1)Se=!j&&(V>>re&1)==1,re<8?d[8][w-re-1]=Se:re<9?d[8][15-re-1+1]=Se:d[8][15-re-1]=Se;d[w-8][8]=!j},be=function(j,K){for(var W=-1,V=w-1,re=7,Se=0,l=ue.getMaskFunction(K),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<j.length&&(R=(j[Se]>>>re&1)==1),l(V,c-_)&&(R=!R),d[V][c-_]=R,(re-=1)==-1&&(Se+=1,re=7)}if((V+=W)<0||w<=V){V-=W,W=-W;break}}},_e=function(j,K,W){for(var V=Q.getRSBlocks(j,K),re=le(),Se=0;Se<W.length;Se+=1){var l=W[Se];re.put(l.getMode(),4),re.put(l.getLength(),ue.getLengthInBits(l.getMode(),j)),l.write(re)}var c=0;for(Se=0;Se<V.length;Se+=1)c+=V[Se].dataCount;if(re.getLengthInBits()>8*c)throw"code length overflow. ("+re.getLengthInBits()+">"+8*c+")";for(re.getLengthInBits()+4<=8*c&&re.put(0,4);re.getLengthInBits()%8!=0;)re.putBit(!1);for(;!(re.getLengthInBits()>=8*c||(re.put(236,8),re.getLengthInBits()>=8*c));)re.put(17,8);return function(_,R){for(var z=0,ie=0,De=0,Ce=new Array(R.length),Pe=new Array(R.length),ve=0;ve<R.length;ve+=1){var Re=R[ve].dataCount,Ie=R[ve].totalCount-Re;ie=Math.max(ie,Re),De=Math.max(De,Ie),Ce[ve]=new Array(Re);for(var ke=0;ke<Ce[ve].length;ke+=1)Ce[ve][ke]=255&_.getBuffer()[ke+z];z+=Re;var Xe=ue.getErrorCorrectPolynomial(Ie),Qe=he(Ce[ve],Xe.getLength()-1).mod(Xe);for(Pe[ve]=new Array(Xe.getLength()-1),ke=0;ke<Pe[ve].length;ke+=1){var nt=ke+Qe.getLength()-Pe[ve].length;Pe[ve][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<ie;ke+=1)for(ve=0;ve<R.length;ve+=1)ke<Ce[ve].length&&(pt[rt]=Ce[ve][ke],rt+=1);for(ke=0;ke<De;ke+=1)for(ve=0;ve<R.length;ve+=1)ke<Pe[ve].length&&(pt[rt]=Pe[ve][ke],rt+=1);return pt}(re,V)};b.addData=function(j,K){var W=null;switch(K=K||"Byte"){case"Numeric":W=J(j);break;case"Alphanumeric":W=te(j);break;case"Byte":W=de(j);break;case"Kanji":W=ce(j);break;default:throw"mode:"+K}v.push(W),f=null},b.isDark=function(j,K){if(j<0||w<=j||K<0||w<=K)throw j+","+K;return d[j][K]},b.getModuleCount=function(){return w},b.make=function(){if(O<1){for(var j=1;j<40;j++){for(var K=Q.getRSBlocks(j,m),W=le(),V=0;V<v.length;V++){var re=v[V];W.put(re.getMode(),4),W.put(re.getLength(),ue.getLengthInBits(re.getMode(),j)),re.write(W)}var Se=0;for(V=0;V<K.length;V++)Se+=K[V].dataCount;if(W.getLengthInBits()<=8*Se)break}O=j}$(!1,function(){for(var l=0,c=0,_=0;_<8;_+=1){$(!0,_);var R=ue.getLostPoint(b);(_==0||l>R)&&(l=R,c=_)}return c}())},b.createTableTag=function(j,K){j=j||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(K=K===void 0?4*j:K)+"px;",W+='">',W+="<tbody>";for(var V=0;V<b.getModuleCount();V+=1){W+="<tr>";for(var re=0;re<b.getModuleCount();re+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+j+"px;",W+=" height: "+j+"px;",W+=" background-color: ",W+=b.isDark(V,re)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},b.createSvgTag=function(j,K,W,V){var re={};typeof arguments[0]=="object"&&(j=(re=arguments[0]).cellSize,K=re.margin,W=re.alt,V=re.title),j=j||2,K=K===void 0?4*j:K,(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=b.getModuleCount()*j+2*K,z="";for(_="l"+j+",0 0,"+j+" -"+j+",0 0,-"+j+"z ",z+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',z+=re.scalable?"":' width="'+R+'px" height="'+R+'px"',z+=' viewBox="0 0 '+R+" "+R+'" ',z+=' preserveAspectRatio="xMinYMin meet"',z+=V.text||W.text?' role="img" aria-labelledby="'+me([V.id,W.id].join(" ").trim())+'"':"",z+=">",z+=V.text?'<title id="'+me(V.id)+'">'+me(V.text)+"</title>":"",z+=W.text?'<description id="'+me(W.id)+'">'+me(W.text)+"</description>":"",z+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',z+='<path d="',l=0;l<b.getModuleCount();l+=1)for(c=l*j+K,Se=0;Se<b.getModuleCount();Se+=1)b.isDark(l,Se)&&(z+="M"+(Se*j+K)+","+c+_);return(z+='" stroke="transparent" fill="black"/>')+"</svg>"},b.createDataURL=function(j,K){j=j||2,K=K===void 0?4*j:K;var W=b.getModuleCount()*j+2*K,V=K,re=W-K;return Oe(W,W,function(Se,l){if(V<=Se&&Se<re&&V<=l&&l<re){var c=Math.floor((Se-V)/j),_=Math.floor((l-V)/j);return b.isDark(_,c)?0:1}return 1})},b.createImgTag=function(j,K,W){j=j||2,K=K===void 0?4*j:K;var V=b.getModuleCount()*j+2*K,re="";return re+="<img",re+=' src="',re+=b.createDataURL(j,K),re+='"',re+=' width="',re+=V,re+='"',re+=' height="',re+=V,re+='"',W&&(re+=' alt="',re+=me(W),re+='"'),re+"/>"};var me=function(j){for(var K="",W=0;W<j.length;W+=1){var V=j.charAt(W);switch(V){case"<":K+="<";break;case">":K+=">";break;case"&":K+="&";break;case'"':K+=""";break;default:K+=V}}return K};return b.createASCII=function(j,K){if((j=j||1)<2)return function(Ce){Ce=Ce===void 0?2:Ce;var Pe,ve,Re,Ie,ke,Xe=1*b.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),ve=0;ve<Xe;ve+=1)ke="█",Qe<=ve&&ve<nt&&Qe<=Pe&&Pe<nt&&b.isDark(Re,Math.floor((ve-Qe)/1))&&(ke=" "),Qe<=ve&&ve<nt&&Qe<=Pe+1&&Pe+1<nt&&b.isDark(Ie,Math.floor((ve-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)}(K);j-=1,K=K===void 0?2*j:K;var W,V,re,Se,l=b.getModuleCount()*j+2*K,c=K,_=l-K,R=Array(j+1).join("██"),z=Array(j+1).join(" "),ie="",De="";for(W=0;W<l;W+=1){for(re=Math.floor((W-c)/j),De="",V=0;V<l;V+=1)Se=1,c<=V&&V<_&&c<=W&&W<_&&b.isDark(re,Math.floor((V-c)/j))&&(Se=0),De+=Se?R:z;for(re=0;re<j;re+=1)ie+=De+`
|
|
115
|
+
`}return ie.substring(0,ie.length-1)},b.renderTo2dContext=function(j,K){K=K||2;for(var W=b.getModuleCount(),V=0;V<W;V++)for(var re=0;re<W;re++)j.fillStyle=b.isDark(V,re)?"black":"white",j.fillRect(V*K,re*K,K,K)},b};N.stringToBytes=(N.stringToBytesFuncs={default:function(T){for(var M=[],O=0;O<T.length;O+=1){var m=T.charCodeAt(O);M.push(255&m)}return M}}).default,N.createStringToBytes=function(T,M){var O=function(){for(var d=Ae(T),w=function(){var ee=d.read();if(ee==-1)throw"eof";return ee},f=0,v={};;){var b=d.read();if(b==-1)break;var $=w(),U=w()<<8|w();v[String.fromCharCode(b<<8|$)]=U,f+=1}if(f!=M)throw f+" != "+M;return v}(),m=63;return function(d){for(var w=[],f=0;f<d.length;f+=1){var v=d.charCodeAt(f);if(v<128)w.push(v);else{var b=O[d.charAt(f)];typeof b=="number"?(255&b)==b?w.push(b):(w.push(b>>>8),w.push(255&b)):w.push(m)}}return w}};var k,L,I,B,Z,ae={L:1,M:0,Q:3,H:2},ue=(k=[[],[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,Z=function(T){for(var M=0;T!=0;)M+=1,T>>>=1;return M},(B={}).getBCHTypeInfo=function(T){for(var M=T<<10;Z(M)-Z(L)>=0;)M^=L<<Z(M)-Z(L);return 21522^(T<<10|M)},B.getBCHTypeNumber=function(T){for(var M=T<<12;Z(M)-Z(I)>=0;)M^=I<<Z(M)-Z(I);return T<<12|M},B.getPatternPosition=function(T){return k[T-1]},B.getMaskFunction=function(T){switch(T){case 0:return function(M,O){return(M+O)%2==0};case 1:return function(M,O){return M%2==0};case 2:return function(M,O){return O%3==0};case 3:return function(M,O){return(M+O)%3==0};case 4:return function(M,O){return(Math.floor(M/2)+Math.floor(O/3))%2==0};case 5:return function(M,O){return M*O%2+M*O%3==0};case 6:return function(M,O){return(M*O%2+M*O%3)%2==0};case 7:return function(M,O){return(M*O%3+(M+O)%2)%2==0};default:throw"bad maskPattern:"+T}},B.getErrorCorrectPolynomial=function(T){for(var M=he([1],0),O=0;O<T;O+=1)M=M.multiply(he([1,oe.gexp(O)],0));return M},B.getLengthInBits=function(T,M){if(1<=M&&M<10)switch(T){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+T}else if(M<27)switch(T){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+T}else{if(!(M<41))throw"type:"+M;switch(T){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+T}}},B.getLostPoint=function(T){for(var M=T.getModuleCount(),O=0,m=0;m<M;m+=1)for(var d=0;d<M;d+=1){for(var w=0,f=T.isDark(m,d),v=-1;v<=1;v+=1)if(!(m+v<0||M<=m+v))for(var b=-1;b<=1;b+=1)d+b<0||M<=d+b||v==0&&b==0||f==T.isDark(m+v,d+b)&&(w+=1);w>5&&(O+=3+w-5)}for(m=0;m<M-1;m+=1)for(d=0;d<M-1;d+=1){var $=0;T.isDark(m,d)&&($+=1),T.isDark(m+1,d)&&($+=1),T.isDark(m,d+1)&&($+=1),T.isDark(m+1,d+1)&&($+=1),$!=0&&$!=4||(O+=3)}for(m=0;m<M;m+=1)for(d=0;d<M-6;d+=1)T.isDark(m,d)&&!T.isDark(m,d+1)&&T.isDark(m,d+2)&&T.isDark(m,d+3)&&T.isDark(m,d+4)&&!T.isDark(m,d+5)&&T.isDark(m,d+6)&&(O+=40);for(d=0;d<M;d+=1)for(m=0;m<M-6;m+=1)T.isDark(m,d)&&!T.isDark(m+1,d)&&T.isDark(m+2,d)&&T.isDark(m+3,d)&&T.isDark(m+4,d)&&!T.isDark(m+5,d)&&T.isDark(m+6,d)&&(O+=40);var U=0;for(d=0;d<M;d+=1)for(m=0;m<M;m+=1)T.isDark(m,d)&&(U+=1);return O+Math.abs(100*U/M/M-50)/5*10},B),oe=function(){for(var T=new Array(256),M=new Array(256),O=0;O<8;O+=1)T[O]=1<<O;for(O=8;O<256;O+=1)T[O]=T[O-4]^T[O-5]^T[O-6]^T[O-8];for(O=0;O<255;O+=1)M[T[O]]=O;return{glog:function(m){if(m<1)throw"glog("+m+")";return M[m]},gexp:function(m){for(;m<0;)m+=255;for(;m>=256;)m-=255;return T[m]}}}();function he(T,M){if(T.length===void 0)throw T.length+"/"+M;var O=function(){for(var d=0;d<T.length&&T[d]==0;)d+=1;for(var w=new Array(T.length-d+M),f=0;f<T.length-d;f+=1)w[f]=T[f+d];return w}(),m={getAt:function(d){return O[d]},getLength:function(){return O.length},multiply:function(d){for(var w=new Array(m.getLength()+d.getLength()-1),f=0;f<m.getLength();f+=1)for(var v=0;v<d.getLength();v+=1)w[f+v]^=oe.gexp(oe.glog(m.getAt(f))+oe.glog(d.getAt(v)));return he(w,0)},mod:function(d){if(m.getLength()-d.getLength()<0)return m;for(var w=oe.glog(m.getAt(0))-oe.glog(d.getAt(0)),f=new Array(m.getLength()),v=0;v<m.getLength();v+=1)f[v]=m.getAt(v);for(v=0;v<d.getLength();v+=1)f[v]^=oe.gexp(oe.glog(d.getAt(v))+w);return he(f,0).mod(d)}};return m}var Q=function(){var T=[[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]],M=function(m,d){var w={};return w.totalCount=m,w.dataCount=d,w},O={getRSBlocks:function(m,d){var w=function(we,X){switch(X){case ae.L:return T[4*(we-1)+0];case ae.M:return T[4*(we-1)+1];case ae.Q:return T[4*(we-1)+2];case ae.H:return T[4*(we-1)+3];default:return}}(m,d);if(w===void 0)throw"bad rs block @ typeNumber:"+m+"/errorCorrectionLevel:"+d;for(var f=w.length/3,v=[],b=0;b<f;b+=1)for(var $=w[3*b+0],U=w[3*b+1],ee=w[3*b+2],G=0;G<$;G+=1)v.push(M(U,ee));return v}};return O}(),le=function(){var T=[],M=0,O={getBuffer:function(){return T},getAt:function(m){var d=Math.floor(m/8);return(T[d]>>>7-m%8&1)==1},put:function(m,d){for(var w=0;w<d;w+=1)O.putBit((m>>>d-w-1&1)==1)},getLengthInBits:function(){return M},putBit:function(m){var d=Math.floor(M/8);T.length<=d&&T.push(0),m&&(T[d]|=128>>>M%8),M+=1}};return O},J=function(T){var M=T,O={getMode:function(){return 1},getLength:function(w){return M.length},write:function(w){for(var f=M,v=0;v+2<f.length;)w.put(m(f.substring(v,v+3)),10),v+=3;v<f.length&&(f.length-v==1?w.put(m(f.substring(v,v+1)),4):f.length-v==2&&w.put(m(f.substring(v,v+2)),7))}},m=function(w){for(var f=0,v=0;v<w.length;v+=1)f=10*f+d(w.charAt(v));return f},d=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;throw"illegal char :"+w};return O},te=function(T){var M=T,O={getMode:function(){return 2},getLength:function(d){return M.length},write:function(d){for(var w=M,f=0;f+1<w.length;)d.put(45*m(w.charAt(f))+m(w.charAt(f+1)),11),f+=2;f<w.length&&d.put(m(w.charAt(f)),6)}},m=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 O},de=function(T){var M=N.stringToBytes(T);return{getMode:function(){return 4},getLength:function(O){return M.length},write:function(O){for(var m=0;m<M.length;m+=1)O.put(M[m],8)}}},ce=function(T){var M=N.stringToBytesFuncs.SJIS;if(!M)throw"sjis not supported.";(function(){var d=M("友");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var O=M(T),m={getMode:function(){return 8},getLength:function(d){return~~(O.length/2)},write:function(d){for(var w=O,f=0;f+1<w.length;){var v=(255&w[f])<<8|255&w[f+1];if(33088<=v&&v<=40956)v-=33088;else{if(!(57408<=v&&v<=60351))throw"illegal char at "+(f+1)+"/"+v;v-=49472}v=192*(v>>>8&255)+(255&v),d.put(v,13),f+=2}if(f<w.length)throw"illegal char at "+(f+1)}};return m},ne=function(){var T=[],M={writeByte:function(O){T.push(255&O)},writeShort:function(O){M.writeByte(O),M.writeByte(O>>>8)},writeBytes:function(O,m,d){m=m||0,d=d||O.length;for(var w=0;w<d;w+=1)M.writeByte(O[w+m])},writeString:function(O){for(var m=0;m<O.length;m+=1)M.writeByte(O.charCodeAt(m))},toByteArray:function(){return T},toString:function(){var O="";O+="[";for(var m=0;m<T.length;m+=1)m>0&&(O+=","),O+=T[m];return O+"]"}};return M},Ae=function(T){var M=T,O=0,m=0,d=0,w={read:function(){for(;d<8;){if(O>=M.length){if(d==0)return-1;throw"unexpected end of file./"+d}var v=M.charAt(O);if(O+=1,v=="=")return d=0,-1;v.match(/^\s$/)||(m=m<<6|f(v.charCodeAt(0)),d+=6)}var b=m>>>d-8&255;return d-=8,b}},f=function(v){if(65<=v&&v<=90)return v-65;if(97<=v&&v<=122)return v-97+26;if(48<=v&&v<=57)return v-48+52;if(v==43)return 62;if(v==47)return 63;throw"c:"+v};return w},Oe=function(T,M,O){for(var m=function(U,ee){var G=U,we=ee,X=new Array(U*ee),be={setPixel:function(j,K,W){X[K*G+j]=W},write:function(j){j.writeString("GIF87a"),j.writeShort(G),j.writeShort(we),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(G),j.writeShort(we),j.writeByte(0);var K=_e(2);j.writeByte(2);for(var W=0;K.length-W>255;)j.writeByte(255),j.writeBytes(K,W,255),W+=255;j.writeByte(K.length-W),j.writeBytes(K,W,K.length-W),j.writeByte(0),j.writeString(";")}},_e=function(j){for(var K=1<<j,W=1+(1<<j),V=j+1,re=me(),Se=0;Se<K;Se+=1)re.add(String.fromCharCode(Se));re.add(String.fromCharCode(K)),re.add(String.fromCharCode(W));var l,c,_,R=ne(),z=(l=R,c=0,_=0,{write:function(Pe,ve){if(Pe>>>ve)throw"length over";for(;c+ve>=8;)l.writeByte(255&(Pe<<c|_)),ve-=8-c,Pe>>>=8-c,_=0,c=0;_|=Pe<<c,c+=ve},flush:function(){c>0&&l.writeByte(_)}});z.write(K,V);var ie=0,De=String.fromCharCode(X[ie]);for(ie+=1;ie<X.length;){var Ce=String.fromCharCode(X[ie]);ie+=1,re.contains(De+Ce)?De+=Ce:(z.write(re.indexOf(De),V),re.size()<4095&&(re.size()==1<<V&&(V+=1),re.add(De+Ce)),De=Ce)}return z.write(re.indexOf(De),V),z.write(W,V),z.flush(),R.toByteArray()},me=function(){var j={},K=0,W={add:function(V){if(W.contains(V))throw"dup key:"+V;j[V]=K,K+=1},size:function(){return K},indexOf:function(V){return j[V]},contains:function(V){return j[V]!==void 0}};return W};return be}(T,M),d=0;d<M;d+=1)for(var w=0;w<T;w+=1)m.setPixel(w,d,O(w,d));var f=ne();m.write(f);for(var v=function(){var U=0,ee=0,G=0,we="",X={},be=function(me){we+=String.fromCharCode(_e(63&me))},_e=function(me){if(!(me<0)){if(me<26)return 65+me;if(me<52)return me-26+97;if(me<62)return me-52+48;if(me==62)return 43;if(me==63)return 47}throw"n:"+me};return X.writeByte=function(me){for(U=U<<8|255&me,ee+=8,G+=1;ee>=6;)be(U>>>ee-6),ee-=6},X.flush=function(){if(ee>0&&(be(U<<6-ee),U=0,ee=0),G%3!=0)for(var me=3-G%3,j=0;j<me;j+=1)we+="="},X.toString=function(){return we},X}(),b=f.toByteArray(),$=0;$<b.length;$+=1)v.writeByte(b[$]);return v.flush(),"data:image/gif;base64,"+v};return N}();E.stringToBytesFuncs["UTF-8"]=function(N){return function(k){for(var L=[],I=0;I<k.length;I++){var B=k.charCodeAt(I);B<128?L.push(B):B<2048?L.push(192|B>>6,128|63&B):B<55296||B>=57344?L.push(224|B>>12,128|B>>6&63,128|63&B):(I++,B=65536+((1023&B)<<10|1023&k.charCodeAt(I)),L.push(240|B>>18,128|B>>12&63,128|B>>6&63,128|63&B))}return L}(N)},(A=typeof(S=function(){return E})=="function"?S.apply(h,[]):S)===void 0||(g.exports=A)}},s={};function u(g){var h=s[g];if(h!==void 0)return h.exports;var S=s[g]={exports:{}};return r[g](S,S.exports,u),S.exports}u.n=g=>{var h=g&&g.__esModule?()=>g.default:()=>g;return u.d(h,{a:h}),h},u.d=(g,h)=>{for(var S in h)u.o(h,S)&&!u.o(g,S)&&Object.defineProperty(g,S,{enumerable:!0,get:h[S]})},u.o=(g,h)=>Object.prototype.hasOwnProperty.call(g,h);var p={};return(()=>{u.d(p,{default:()=>M});const g=O=>!!O&&typeof O=="object"&&!Array.isArray(O);function h(O,...m){if(!m.length)return O;const d=m.shift();return d!==void 0&&g(O)&&g(d)?(O=Object.assign({},O),Object.keys(d).forEach(w=>{const f=O[w],v=d[w];Array.isArray(f)&&Array.isArray(v)?O[w]=v:g(f)&&g(v)?O[w]=h(Object.assign({},f),v):O[w]=v}),h(O,...m)):O}function S(O,m){const d=document.createElement("a");d.download=m,d.href=O,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const A={L:.07,M:.15,Q:.25,H:.3};class E{constructor({svg:m,type:d,window:w}){this._svg=m,this._type=d,this._window=w}draw(m,d,w,f){let v;switch(this._type){case"dots":v=this._drawDot;break;case"classy":v=this._drawClassy;break;case"classy-rounded":v=this._drawClassyRounded;break;case"rounded":v=this._drawRounded;break;case"extra-rounded":v=this._drawExtraRounded;break;default:v=this._drawSquare}v.call(this,{x:m,y:d,size:w,getNeighbor:f})}_rotateFigure({x:m,y:d,size:w,rotation:f=0,draw:v}){var b;const $=m+w/2,U=d+w/2;v(),(b=this._element)===null||b===void 0||b.setAttribute("transform",`rotate(${180*f/Math.PI},${$},${U})`)}_basicDot(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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:m,y:d,size:w}){this._basicDot({x:m,y:d,size:w,rotation:0})}_drawSquare({x:m,y:d,size:w}){this._basicSquare({x:m,y:d,size:w,rotation:0})}_drawRounded({x:m,y:d,size:w,getNeighbor:f}){const v=f?+f(-1,0):0,b=f?+f(1,0):0,$=f?+f(0,-1):0,U=f?+f(0,1):0,ee=v+b+$+U;if(ee!==0)if(ee>2||v&&b||$&&U)this._basicSquare({x:m,y:d,size:w,rotation:0});else{if(ee===2){let G=0;return v&&$?G=Math.PI/2:$&&b?G=Math.PI:b&&U&&(G=-Math.PI/2),void this._basicCornerRounded({x:m,y:d,size:w,rotation:G})}if(ee===1){let G=0;return $?G=Math.PI/2:b?G=Math.PI:U&&(G=-Math.PI/2),void this._basicSideRounded({x:m,y:d,size:w,rotation:G})}}else this._basicDot({x:m,y:d,size:w,rotation:0})}_drawExtraRounded({x:m,y:d,size:w,getNeighbor:f}){const v=f?+f(-1,0):0,b=f?+f(1,0):0,$=f?+f(0,-1):0,U=f?+f(0,1):0,ee=v+b+$+U;if(ee!==0)if(ee>2||v&&b||$&&U)this._basicSquare({x:m,y:d,size:w,rotation:0});else{if(ee===2){let G=0;return v&&$?G=Math.PI/2:$&&b?G=Math.PI:b&&U&&(G=-Math.PI/2),void this._basicCornerExtraRounded({x:m,y:d,size:w,rotation:G})}if(ee===1){let G=0;return $?G=Math.PI/2:b?G=Math.PI:U&&(G=-Math.PI/2),void this._basicSideRounded({x:m,y:d,size:w,rotation:G})}}else this._basicDot({x:m,y:d,size:w,rotation:0})}_drawClassy({x:m,y:d,size:w,getNeighbor:f}){const v=f?+f(-1,0):0,b=f?+f(1,0):0,$=f?+f(0,-1):0,U=f?+f(0,1):0;v+b+$+U!==0?v||$?b||U?this._basicSquare({x:m,y:d,size:w,rotation:0}):this._basicCornerRounded({x:m,y:d,size:w,rotation:Math.PI/2}):this._basicCornerRounded({x:m,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:m,y:d,size:w,rotation:Math.PI/2})}_drawClassyRounded({x:m,y:d,size:w,getNeighbor:f}){const v=f?+f(-1,0):0,b=f?+f(1,0):0,$=f?+f(0,-1):0,U=f?+f(0,1):0;v+b+$+U!==0?v||$?b||U?this._basicSquare({x:m,y:d,size:w,rotation:0}):this._basicCornerExtraRounded({x:m,y:d,size:w,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:m,y:d,size:w,rotation:-Math.PI/2}):this._basicCornersRounded({x:m,y:d,size:w,rotation:Math.PI/2})}}const N={dot:"dot",square:"square",extraRounded:"extra-rounded"},k=Object.values(N);class L{constructor({svg:m,type:d,window:w}){this._svg=m,this._type=d,this._window=w}draw(m,d,w,f){let v;switch(this._type){case N.square:v=this._drawSquare;break;case N.extraRounded:v=this._drawExtraRounded;break;default:v=this._drawDot}v.call(this,{x:m,y:d,size:w,rotation:f})}_rotateFigure({x:m,y:d,size:w,rotation:f=0,draw:v}){var b;const $=m+w/2,U=d+w/2;v(),(b=this._element)===null||b===void 0||b.setAttribute("transform",`rotate(${180*f/Math.PI},${$},${U})`)}_basicDot(m){const{size:d,x:w,y:f}=m,v=d/7;this._rotateFigure(Object.assign(Object.assign({},m),{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 ${v}a ${d/2-v} ${d/2-v} 0 1 1 -0.1 0Z`)}}))}_basicSquare(m){const{size:d,x:w,y:f}=m,v=d/7;this._rotateFigure(Object.assign(Object.assign({},m),{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+v} ${f+v}h `+(d-2*v)+"v "+(d-2*v)+"h "+(2*v-d)+"z")}}))}_basicExtraRounded(m){const{size:d,x:w,y:f}=m,v=d/7;this._rotateFigure(Object.assign(Object.assign({},m),{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*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} ${f+v}h `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*v}v `+2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*v}h `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*-v} ${1.5*-v}v `+-2*v+`a ${1.5*v} ${1.5*v}, 0, 0, 1, ${1.5*v} ${1.5*-v}`)}}))}_drawDot({x:m,y:d,size:w,rotation:f}){this._basicDot({x:m,y:d,size:w,rotation:f})}_drawSquare({x:m,y:d,size:w,rotation:f}){this._basicSquare({x:m,y:d,size:w,rotation:f})}_drawExtraRounded({x:m,y:d,size:w,rotation:f}){this._basicExtraRounded({x:m,y:d,size:w,rotation:f})}}const I={dot:"dot",square:"square"},B=Object.values(I);class Z{constructor({svg:m,type:d,window:w}){this._svg=m,this._type=d,this._window=w}draw(m,d,w,f){let v;v=this._type===I.square?this._drawSquare:this._drawDot,v.call(this,{x:m,y:d,size:w,rotation:f})}_rotateFigure({x:m,y:d,size:w,rotation:f=0,draw:v}){var b;const $=m+w/2,U=d+w/2;v(),(b=this._element)===null||b===void 0||b.setAttribute("transform",`rotate(${180*f/Math.PI},${$},${U})`)}_basicDot(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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(m){const{size:d,x:w,y:f}=m;this._rotateFigure(Object.assign(Object.assign({},m),{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:m,y:d,size:w,rotation:f}){this._basicDot({x:m,y:d,size:w,rotation:f})}_drawSquare({x:m,y:d,size:w,rotation:f}){this._basicSquare({x:m,y:d,size:w,rotation:f})}}const ae="circle",ue=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],oe=[[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 he{constructor(m,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(m.width)),this._element.setAttribute("height",String(m.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),m.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${m.width} ${m.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=m.image,this._instanceId=he.instanceCount++,this._options=m}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(m){const d=m.getModuleCount(),w=Math.min(this._options.width,this._options.height)-2*this._options.margin,f=this._options.shape===ae?w/Math.sqrt(2):w,v=this._roundSize(f/d);let b={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=m,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:$,qrOptions:U}=this._options,ee=$.imageSize*A[U.errorCorrectionLevel],G=Math.floor(ee*d*d);b=function({originalHeight:we,originalWidth:X,maxHiddenDots:be,maxHiddenAxisDots:_e,dotSize:me}){const j={x:0,y:0},K={x:0,y:0};if(we<=0||X<=0||be<=0||me<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/X;return j.x=Math.floor(Math.sqrt(be/W)),j.x<=0&&(j.x=1),_e&&_e<j.x&&(j.x=_e),j.x%2==0&&j.x--,K.x=j.x*me,j.y=1+2*Math.ceil((j.x*W-1)/2),K.y=Math.round(K.x*W),(j.y*j.x>be||_e&&_e<j.y)&&(_e&&_e<j.y?(j.y=_e,j.y%2==0&&j.x--):j.y-=2,K.y=j.y*me,j.x=1+2*Math.ceil((j.y/W-1)/2),K.x=Math.round(K.y/W)),{height:K.y,width:K.x,hideYDots:j.y,hideXDots:j.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:G,maxHiddenAxisDots:d-14,dotSize:v})}this.drawBackground(),this.drawDots(($,U)=>{var ee,G,we,X,be,_e;return!(this._options.imageOptions.hideBackgroundDots&&$>=(d-b.hideYDots)/2&&$<(d+b.hideYDots)/2&&U>=(d-b.hideXDots)/2&&U<(d+b.hideXDots)/2||!((ee=ue[$])===null||ee===void 0)&&ee[U]||!((G=ue[$-d+7])===null||G===void 0)&&G[U]||!((we=ue[$])===null||we===void 0)&&we[U-d+7]||!((X=oe[$])===null||X===void 0)&&X[U]||!((be=oe[$-d+7])===null||be===void 0)&&be[U]||!((_e=oe[$])===null||_e===void 0)&&_e[U-d+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:b.width,height:b.height,count:d,dotSize:v})}drawBackground(){var m,d,w;const f=this._element,v=this._options;if(f){const b=(m=v.backgroundOptions)===null||m===void 0?void 0:m.gradient,$=(d=v.backgroundOptions)===null||d===void 0?void 0:d.color;let U=v.height,ee=v.width;if(b||$){const G=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=ee=Math.min(v.width,v.height),G.setAttribute("rx",String(U/2*v.backgroundOptions.round))),G.setAttribute("x",String(this._roundSize((v.width-ee)/2))),G.setAttribute("y",String(this._roundSize((v.height-U)/2))),G.setAttribute("width",String(ee)),G.setAttribute("height",String(U)),this._backgroundClipPath.appendChild(G),this._createColor({options:b,color:$,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`background-color-${this._instanceId}`})}}}drawDots(m){var d,w;if(!this._qr)throw"QR code is not defined";const f=this._options,v=this._qr.getModuleCount();if(v>f.width||v>f.height)throw"The canvas is too small.";const b=Math.min(f.width,f.height)-2*f.margin,$=f.shape===ae?b/Math.sqrt(2):b,U=this._roundSize($/v),ee=this._roundSize((f.width-v*U)/2),G=this._roundSize((f.height-v*U)/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<v;X++)for(let be=0;be<v;be++)m&&!m(X,be)||!((w=this._qr)===null||w===void 0)&&w.isDark(X,be)&&(we.draw(ee+be*U,G+X*U,U,(_e,me)=>!(be+_e<0||X+me<0||be+_e>=v||X+me>=v)&&!(m&&!m(X+me,be+_e))&&!!this._qr&&this._qr.isDark(X+me,be+_e)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(f.shape===ae){const X=this._roundSize((b/U-v)/2),be=v+2*X,_e=ee-X*U,me=G-X*U,j=[],K=this._roundSize(be/2);for(let W=0;W<be;W++){j[W]=[];for(let V=0;V<be;V++)W>=X-1&&W<=be-X&&V>=X-1&&V<=be-X||Math.sqrt((W-K)*(W-K)+(V-K)*(V-K))>K?j[W][V]=0:j[W][V]=this._qr.isDark(V-2*X<0?V:V>=v?V-2*X:V-X,W-2*X<0?W:W>=v?W-2*X:W-X)?1:0}for(let W=0;W<be;W++)for(let V=0;V<be;V++)j[W][V]&&(we.draw(_e+V*U,me+W*U,U,(re,Se)=>{var l;return!!(!((l=j[W+Se])===null||l===void 0)&&l[V+re])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const m=this._element,d=this._options;if(!m)throw"Element code is not defined";const w=this._qr.getModuleCount(),f=Math.min(d.width,d.height)-2*d.margin,v=d.shape===ae?f/Math.sqrt(2):f,b=this._roundSize(v/w),$=7*b,U=3*b,ee=this._roundSize((d.width-w*b)/2),G=this._roundSize((d.height-w*b)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,X,be])=>{var _e,me,j,K,W,V,re,Se,l,c,_,R,z,ie;const De=ee+we*b*(w-7),Ce=G+X*b*(w-7);let Pe=this._dotsClipPath,ve=this._dotsClipPath;if((!((_e=d.cornersSquareOptions)===null||_e===void 0)&&_e.gradient||!((me=d.cornersSquareOptions)===null||me===void 0)&&me.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=ve=Pe,this._createColor({options:(j=d.cornersSquareOptions)===null||j===void 0?void 0:j.gradient,color:(K=d.cornersSquareOptions)===null||K===void 0?void 0:K.color,additionalRotation:be,x:De,y:Ce,height:$,width:$,name:`corners-square-color-${we}-${X}-${this._instanceId}`})),((W=d.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&k.includes(d.cornersSquareOptions.type)){const Re=new L({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Re.draw(De,Ce,$,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<ue.length;Ie++)for(let ke=0;ke<ue[Ie].length;ke++)!((re=ue[Ie])===null||re===void 0)&&re[ke]&&(Re.draw(De+ke*b,Ce+Ie*b,b,(Xe,Qe)=>{var nt;return!!(!((nt=ue[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)&&(ve=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),ve.setAttribute("id",`clip-path-corners-dot-color-${we}-${X}-${this._instanceId}`),this._defs.appendChild(ve),this._cornersDotClipPath=ve,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:De+2*b,y:Ce+2*b,height:U,width:U,name:`corners-dot-color-${we}-${X}-${this._instanceId}`})),((R=d.cornersDotOptions)===null||R===void 0?void 0:R.type)&&B.includes(d.cornersDotOptions.type)){const Re=new Z({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Re.draw(De+2*b,Ce+2*b,U,be),Re._element&&ve&&ve.appendChild(Re._element)}else{const Re=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 Ie=0;Ie<oe.length;Ie++)for(let ke=0;ke<oe[Ie].length;ke++)!((ie=oe[Ie])===null||ie===void 0)&&ie[ke]&&(Re.draw(De+ke*b,Ce+Ie*b,b,(Xe,Qe)=>{var nt;return!!(!((nt=oe[Ie+Qe])===null||nt===void 0)&&nt[ke+Xe])}),Re._element&&ve&&ve.appendChild(Re._element))}})}loadImage(){return new Promise((m,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(v=>{var b,$;if(this._image=v,this._options.imageOptions.saveAsBlob){const U=(b=f.nodeCanvas)===null||b===void 0?void 0:b.createCanvas(this._image.width,this._image.height);($=U?.getContext("2d"))===null||$===void 0||$.drawImage(v,0,0),this._imageUri=U?.toDataURL()}m()}).catch(d);else{const v=new this._window.Image;typeof f.imageOptions.crossOrigin=="string"&&(v.crossOrigin=f.imageOptions.crossOrigin),this._image=v,v.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(b,$){return new Promise(U=>{const ee=new $.XMLHttpRequest;ee.onload=function(){const G=new $.FileReader;G.onloadend=function(){U(G.result)},G.readAsDataURL(ee.response)},ee.open("GET",b),ee.responseType="blob",ee.send()})}(f.image||"",this._window)),m()},v.src=f.image}})}async drawImage({width:m,height:d,count:w,dotSize:f}){const v=this._options,b=this._roundSize((v.width-w*f)/2),$=this._roundSize((v.height-w*f)/2),U=b+this._roundSize(v.imageOptions.margin+(w*f-m)/2),ee=$+this._roundSize(v.imageOptions.margin+(w*f-d)/2),G=m-2*v.imageOptions.margin,we=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(ee)),X.setAttribute("width",`${G}px`),X.setAttribute("height",`${we}px`),this._element.appendChild(X)}_createColor({options:m,color:d,additionalRotation:w,x:f,y:v,height:b,width:$,name:U}){const ee=$>b?$:b,G=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(G.setAttribute("x",String(f)),G.setAttribute("y",String(v)),G.setAttribute("height",String(b)),G.setAttribute("width",String($)),G.setAttribute("clip-path",`url('#clip-path-${U}')`),m){let we;if(m.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",U),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(f+$/2)),we.setAttribute("fy",String(v+b/2)),we.setAttribute("cx",String(f+$/2)),we.setAttribute("cy",String(v+b/2)),we.setAttribute("r",String(ee/2));else{const X=((m.rotation||0)+w)%(2*Math.PI),be=(X+2*Math.PI)%(2*Math.PI);let _e=f+$/2,me=v+b/2,j=f+$/2,K=v+b/2;be>=0&&be<=.25*Math.PI||be>1.75*Math.PI&&be<=2*Math.PI?(_e-=$/2,me-=b/2*Math.tan(X),j+=$/2,K+=b/2*Math.tan(X)):be>.25*Math.PI&&be<=.75*Math.PI?(me-=b/2,_e-=$/2/Math.tan(X),K+=b/2,j+=$/2/Math.tan(X)):be>.75*Math.PI&&be<=1.25*Math.PI?(_e+=$/2,me+=b/2*Math.tan(X),j-=$/2,K-=b/2*Math.tan(X)):be>1.25*Math.PI&&be<=1.75*Math.PI&&(me+=b/2,_e+=$/2/Math.tan(X),K-=b/2,j-=$/2/Math.tan(X)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",U),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(_e))),we.setAttribute("y1",String(Math.round(me))),we.setAttribute("x2",String(Math.round(j))),we.setAttribute("y2",String(Math.round(K)))}m.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)}),G.setAttribute("fill",`url('#${U}')`),this._defs.appendChild(we)}else d&&G.setAttribute("fill",d);this._element.appendChild(G)}}he.instanceCount=0;const Q=he,le="canvas",J={};for(let O=0;O<=40;O++)J[O]=O;const te={type:le,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(O){const m=Object.assign({},O);if(!m.colorStops||!m.colorStops.length)throw"Field 'colorStops' is required in gradient";return m.rotation?m.rotation=Number(m.rotation):m.rotation=0,m.colorStops=m.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),m}function ce(O){const m=Object.assign({},O);return m.width=Number(m.width),m.height=Number(m.height),m.margin=Number(m.margin),m.imageOptions=Object.assign(Object.assign({},m.imageOptions),{hideBackgroundDots:!!m.imageOptions.hideBackgroundDots,imageSize:Number(m.imageOptions.imageSize),margin:Number(m.imageOptions.margin)}),m.margin>Math.min(m.width,m.height)&&(m.margin=Math.min(m.width,m.height)),m.dotsOptions=Object.assign({},m.dotsOptions),m.dotsOptions.gradient&&(m.dotsOptions.gradient=de(m.dotsOptions.gradient)),m.cornersSquareOptions&&(m.cornersSquareOptions=Object.assign({},m.cornersSquareOptions),m.cornersSquareOptions.gradient&&(m.cornersSquareOptions.gradient=de(m.cornersSquareOptions.gradient))),m.cornersDotOptions&&(m.cornersDotOptions=Object.assign({},m.cornersDotOptions),m.cornersDotOptions.gradient&&(m.cornersDotOptions.gradient=de(m.cornersDotOptions.gradient))),m.backgroundOptions&&(m.backgroundOptions=Object.assign({},m.backgroundOptions),m.backgroundOptions.gradient&&(m.backgroundOptions.gradient=de(m.backgroundOptions.gradient))),m}var ne=u(873),Ae=u.n(ne);function Oe(O){if(!O)throw new Error("Extension must be defined");O[0]==="."&&(O=O.substring(1));const m={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"}[O.toLowerCase()];if(!m)throw new Error(`Extension "${O}" is not supported`);return m}class T{constructor(m){m!=null&&m.jsdom?this._window=new m.jsdom("",{resources:"usable"}).window:this._window=window,this._options=m?ce(h(te,m)):te,this.update()}static _clearContainer(m){m&&(m.innerHTML="")}_setupSvg(){if(!this._qr)return;const m=new Q(this._options,this._window);this._svg=m.getElement(),this._svgDrawingPromise=m.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,m.getElement(),this._options))})}_setupCanvas(){var m,d;this._qr&&(!((m=this._options.nodeCanvas)===null||m===void 0)&&m.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,v=new this._window.XMLSerializer().serializeToString(f),b=btoa(v),$=`data:${Oe("svg")};base64,${b}`;if(!((w=this._options.nodeCanvas)===null||w===void 0)&&w.loadImage)return this._options.nodeCanvas.loadImage($).then(U=>{var ee,G;U.width=this._options.width,U.height=this._options.height,(G=(ee=this._nodeCanvas)===null||ee===void 0?void 0:ee.getContext("2d"))===null||G===void 0||G.drawImage(U,0,0)});{const U=new this._window.Image;return new Promise(ee=>{U.onload=()=>{var G,we;(we=(G=this._domCanvas)===null||G===void 0?void 0:G.getContext("2d"))===null||we===void 0||we.drawImage(U,0,0),ee()},U.src=$})}}))}async _getElement(m="png"){if(!this._qr)throw"QR code is empty";return m.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(m){T._clearContainer(this._container),this._options=m?ce(h(this._options,m)):this._options,this._options.data&&(this._qr=Ae()(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===le?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(m){if(m){if(typeof m.appendChild!="function")throw"Container should be a single DOM node";this._options.type===le?this._domCanvas&&m.appendChild(this._domCanvas):this._svg&&m.appendChild(this._svg),this._container=m}}applyExtension(m){if(!m)throw"Extension function should be defined.";this._extension=m,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(m="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(m),w=Oe(m);if(!d)return null;if(m.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 v=d;if("toBuffer"in v)if(w==="image/png")f(v.toBuffer(w));else if(w==="image/jpeg")f(v.toBuffer(w));else{if(w!=="application/pdf")throw Error("Unsupported extension");f(v.toBuffer(w))}else"toBlob"in v&&v.toBlob(f,w,1)})}async download(m){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 m=="string"?(d=m,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof m=="object"&&m!==null&&(m.name&&(w=m.name),m.extension&&(d=m.extension));const f=await this._getElement(d);if(f)if(d.toLowerCase()==="svg"){let v=new XMLSerializer().serializeToString(f);v=`<?xml version="1.0" standalone="no"?>\r
|
|
117
|
+
`+v,S(`data:${Oe(d)};charset=utf-8,${encodeURIComponent(v)}`,`${w}.svg`)}else S(f.toDataURL(Oe(d)),`${w}.${d}`)}}const M=T})(),p.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 p;n[0]!==s||n[1]!==u?(p={baseUrl:s,queryClient:u},n[0]=s,n[1]=u,n[2]=p):p=n[2];let g;n[3]!==r||n[4]!==u?(g=D.jsx(yl,{client:u,children:r}),n[3]=r,n[4]=u,n[5]=g):g=n[5];let h;return n[6]!==p||n[7]!==g?(h=D.jsx(su.Provider,{value:p,children:g}),n[6]=p,n[7]=g,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 vr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Op()??""}`,...Yp()}}async function au(i){return fetch(i,{method:"GET",headers:await vr()}).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 vr()}).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 vr()}).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 vr(),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 vr(),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 vr(),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 p;if(s[0]!==r||s[1]!==n){let A;s[3]!==r?(A=r?.toString(),s[3]=r,s[4]=A):A=s[4],p=[...n.map(Wp),String(A)],s[0]=r,s[1]=n,s[2]=p}else p=s[2];let g;s[5]!==i||s[6]!==u||s[7]!==r?(g=()=>lu(`${u}${i}`,r),s[5]=i,s[6]=u,s[7]=r,s[8]=g):g=s[8];const h=!!r;let S;return s[9]!==p||s[10]!==g||s[11]!==h?(S={queryKey:p,queryFn:g,enabled:h},s[9]=p,s[10]=g,s[11]=h,s[12]=S):S=s[12],bl(S)}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 p;r[2]!==i||r[3]!==s?(p=()=>au(`${s}${i}`),r[2]=i,r[3]=s,r[4]=p):p=r[4];let g;return r[5]!==u||r[6]!==p?(g={queryKey:u,queryFn:p},r[5]=u,r[6]=p,r[7]=g):g=r[7],bl(g)}function Up(i){return i.toString()}function pu(i,n){const r=bn.c(10),{baseUrl:s,queryClient:u}=tr();let p;r[0]!==n?(p=[...n.map(qp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>cu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let h;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(h={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(zp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,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 p;r[0]!==n?(p=[...n.map(Gp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>fu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let h;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(h={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Hp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,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 p;r[0]!==n?(p=[...n.map(Kp)],r[0]=n,r[1]=p):p=r[1];let g;r[2]!==i||r[3]!==s?(g=S=>uu(`${s}${i}`,S),r[2]=i,r[3]=s,r[4]=g):g=r[4];let h;return r[5]!==u||r[6]!==n||r[7]!==p||r[8]!==g?(h={mutationKey:p,mutationFn:g,onSettled(){return u.invalidateQueries({queryKey:[...n.map(Vp)]})}},r[5]=u,r[6]=n,r[7]=p,r[8]=g,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,mu;function Qp(){return mu||(mu=1,function(i,n){(function(r,s){i.exports=s()})(Zp,function(){var r=1e3,s=6e4,u=36e5,p="millisecond",g="second",h="minute",S="hour",A="day",E="week",N="month",k="quarter",L="year",I="date",B="Invalid Date",Z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ae=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ue={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var M=["th","st","nd","rd"],O=T%100;return"["+T+(M[(O-20)%10]||M[O]||M[0])+"]"}},oe=function(T,M,O){var m=String(T);return!m||m.length>=M?T:""+Array(M+1-m.length).join(O)+T},he={s:oe,z:function(T){var M=-T.utcOffset(),O=Math.abs(M),m=Math.floor(O/60),d=O%60;return(M<=0?"+":"-")+oe(m,2,"0")+":"+oe(d,2,"0")},m:function T(M,O){if(M.date()<O.date())return-T(O,M);var m=12*(O.year()-M.year())+(O.month()-M.month()),d=M.clone().add(m,N),w=O-d<0,f=M.clone().add(m+(w?-1:1),N);return+(-(m+(O-d)/(w?d-f:f-d))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:N,y:L,w:E,d:A,D:I,h:S,m:h,s:g,ms:p,Q:k}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},Q="en",le={};le[Q]=ue;var J="$isDayjsObject",te=function(T){return T instanceof Ae||!(!T||!T[J])},de=function T(M,O,m){var d;if(!M)return Q;if(typeof M=="string"){var w=M.toLowerCase();le[w]&&(d=w),O&&(le[w]=O,d=w);var f=M.split("-");if(!d&&f.length>1)return T(f[0])}else{var v=M.name;le[v]=M,d=v}return!m&&d&&(Q=d),d||!m&&Q},ce=function(T,M){if(te(T))return T.clone();var O=typeof M=="object"?M:{};return O.date=T,O.args=arguments,new Ae(O)},ne=he;ne.l=de,ne.i=te,ne.w=function(T,M){return ce(T,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var Ae=function(){function T(O){this.$L=de(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[J]=!0}var M=T.prototype;return M.parse=function(O){this.$d=function(m){var d=m.date,w=m.utc;if(d===null)return new Date(NaN);if(ne.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(Z);if(f){var v=f[2]-1||0,b=(f[7]||"0").substring(0,3);return w?new Date(Date.UTC(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)):new Date(f[1],v,f[3]||1,f[4]||0,f[5]||0,f[6]||0,b)}}return new Date(d)}(O),this.init()},M.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},M.$utils=function(){return ne},M.isValid=function(){return this.$d.toString()!==B},M.isSame=function(O,m){var d=ce(O);return this.startOf(m)<=d&&d<=this.endOf(m)},M.isAfter=function(O,m){return ce(O)<this.startOf(m)},M.isBefore=function(O,m){return this.endOf(m)<ce(O)},M.$g=function(O,m,d){return ne.u(O)?this[m]:this.set(d,O)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(O,m){var d=this,w=!!ne.u(m)||m,f=ne.p(O),v=function(be,_e){var me=ne.w(d.$u?Date.UTC(d.$y,_e,be):new Date(d.$y,_e,be),d);return w?me:me.endOf(A)},b=function(be,_e){return ne.w(d.toDate()[be].apply(d.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(_e)),d)},$=this.$W,U=this.$M,ee=this.$D,G="set"+(this.$u?"UTC":"");switch(f){case L:return w?v(1,0):v(31,11);case N:return w?v(1,U):v(0,U+1);case E:var we=this.$locale().weekStart||0,X=($<we?$+7:$)-we;return v(w?ee-X:ee+(6-X),U);case A:case I:return b(G+"Hours",0);case S:return b(G+"Minutes",1);case h:return b(G+"Seconds",2);case g:return b(G+"Milliseconds",3);default:return this.clone()}},M.endOf=function(O){return this.startOf(O,!1)},M.$set=function(O,m){var d,w=ne.p(O),f="set"+(this.$u?"UTC":""),v=(d={},d[A]=f+"Date",d[I]=f+"Date",d[N]=f+"Month",d[L]=f+"FullYear",d[S]=f+"Hours",d[h]=f+"Minutes",d[g]=f+"Seconds",d[p]=f+"Milliseconds",d)[w],b=w===A?this.$D+(m-this.$W):m;if(w===N||w===L){var $=this.clone().set(I,1);$.$d[v](b),$.init(),this.$d=$.set(I,Math.min(this.$D,$.daysInMonth())).$d}else v&&this.$d[v](b);return this.init(),this},M.set=function(O,m){return this.clone().$set(O,m)},M.get=function(O){return this[ne.p(O)]()},M.add=function(O,m){var d,w=this;O=Number(O);var f=ne.p(m),v=function(U){var ee=ce(w);return ne.w(ee.date(ee.date()+Math.round(U*O)),w)};if(f===N)return this.set(N,this.$M+O);if(f===L)return this.set(L,this.$y+O);if(f===A)return v(1);if(f===E)return v(7);var b=(d={},d[h]=s,d[S]=u,d[g]=r,d)[f]||1,$=this.$d.getTime()+O*b;return ne.w($,this)},M.subtract=function(O,m){return this.add(-1*O,m)},M.format=function(O){var m=this,d=this.$locale();if(!this.isValid())return d.invalidDate||B;var w=O||"YYYY-MM-DDTHH:mm:ssZ",f=ne.z(this),v=this.$H,b=this.$m,$=this.$M,U=d.weekdays,ee=d.months,G=d.meridiem,we=function(_e,me,j,K){return _e&&(_e[me]||_e(m,w))||j[me].slice(0,K)},X=function(_e){return ne.s(v%12||12,_e,"0")},be=G||function(_e,me,j){var K=_e<12?"AM":"PM";return j?K.toLowerCase():K};return w.replace(ae,function(_e,me){return me||function(j){switch(j){case"YY":return String(m.$y).slice(-2);case"YYYY":return ne.s(m.$y,4,"0");case"M":return $+1;case"MM":return ne.s($+1,2,"0");case"MMM":return we(d.monthsShort,$,ee,3);case"MMMM":return we(ee,$);case"D":return m.$D;case"DD":return ne.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return we(d.weekdaysMin,m.$W,U,2);case"ddd":return we(d.weekdaysShort,m.$W,U,3);case"dddd":return U[m.$W];case"H":return String(v);case"HH":return ne.s(v,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return be(v,b,!0);case"A":return be(v,b,!1);case"m":return String(b);case"mm":return ne.s(b,2,"0");case"s":return String(m.$s);case"ss":return ne.s(m.$s,2,"0");case"SSS":return ne.s(m.$ms,3,"0");case"Z":return f}return null}(_e)||f.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(O,m,d){var w,f=this,v=ne.p(m),b=ce(O),$=(b.utcOffset()-this.utcOffset())*s,U=this-b,ee=function(){return ne.m(f,b)};switch(v){case L:w=ee()/12;break;case N:w=ee();break;case k:w=ee()/3;break;case E:w=(U-$)/6048e5;break;case A:w=(U-$)/864e5;break;case S:w=U/u;break;case h:w=U/s;break;case g:w=U/r;break;default:w=U}return d?w:ne.a(w)},M.daysInMonth=function(){return this.endOf(N).$D},M.$locale=function(){return le[this.$L]},M.locale=function(O,m){if(!O)return this.$L;var d=this.clone(),w=de(O,m,!0);return w&&(d.$L=w),d},M.clone=function(){return ne.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},T}(),Oe=Ae.prototype;return ce.prototype=Oe,[["$ms",p],["$s",g],["$m",h],["$H",S],["$W",A],["$M",N],["$y",L],["$D",I]].forEach(function(T){Oe[T[1]]=function(M){return this.$g(M,T[0],T[1])}}),ce.extend=function(T,M){return T.$i||(T(M,Ae,ce),T.$i=!0),ce},ce.locale=de,ce.isDayjs=te,ce.unix=function(T){return ce(1e3*T)},ce.en=le[Q],ce.Ls=le,ce.p={},ce})}(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 vu({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:u,size:p}){const g=Xp({direction:n,size:p,rowIndex:s,cellIndex:u,levelIndex:r});if(!g)return;const h=i.current?.[g.levelIndex]?.[g.rowIndex]?.[g.cellIndex];h&&(h.disabled||h.getAttribute("data-hidden")||h.getAttribute("data-outside")?vu({controlsRef:i,direction:n,levelIndex:g.levelIndex,cellIndex:g.cellIndex,rowIndex:g.rowIndex,size:p}):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 p=eg(u.key);if(p){u.preventDefault();const g=tg(i);vu({controlsRef:i,direction:p,levelIndex:n,rowIndex:r,cellIndex:s,size:g})}}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(p=>p||i.locale,[i.locale]),r=ye.useCallback(p=>typeof p=="number"?p:i.firstDayOfWeek,[i.firstDayOfWeek]),s=ye.useCallback(p=>Array.isArray(p)?p:i.weekendDays,[i.weekendDays]),u=ye.useCallback(p=>typeof p=="string"?p: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]),p=s(i[1]);return u?p?`${u} – ${p}`:`${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 D.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:p,styles:g,unstyled:h,vars:S,date:A,disabled:E,__staticSelector:N,weekend:k,outside:L,selected:I,renderDay:B,inRange:Z,firstInRange:ae,lastInRange:ue,hidden:oe,static:he,highlightToday:Q,attributes:le,...J}=r,te=F.useStyles({name:N||"Day",classes:bu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:le,vars:S,varsResolver:og,rootSelector:"day"});return D.jsx(F.UnstyledButton,{...te("day",{style:oe?{display:"none"}:void 0}),component:he?"div":"button",ref:n,disabled:E,"data-today":Te(A).isSame(new Date,"day")||void 0,"data-hidden":oe||void 0,"data-highlight-today":Q||void 0,"data-disabled":E||void 0,"data-weekend":!E&&!L&&k||void 0,"data-outside":!E&&L||void 0,"data-selected":!E&&I||void 0,"data-in-range":Z&&!E||void 0,"data-first-in-range":ae&&!E||void 0,"data-last-in-range":ue&&!E||void 0,"data-static":he||void 0,unstyled:h,...J,children:B?.(A)||Te(A).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 p=0;p<7;p+=1)typeof n=="string"?u.push(Te(s).add(p,"days").locale(i).format(n)):u.push(n(Te(s).add(p,"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:p,styles:g,unstyled:h,vars:S,locale:A,firstDayOfWeek:E,weekdayFormat:N,cellComponent:k="th",__staticSelector:L,withWeekNumbers:I,attributes:B,...Z}=r,ae=F.useStyles({name:L||"WeekdaysRow",classes:xu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:B,vars:S,varsResolver:ag,rootSelector:"weekdaysRow"}),ue=nr(),oe=sg({locale:ue.getLocale(A),format:N,firstDayOfWeek:ue.getFirstDayOfWeek(E)}).map((he,Q)=>D.jsx(k,{...ae("weekday"),children:he},Q));return D.jsxs(F.Box,{component:"tr",ref:n,...ae("weekdaysRow"),...Z,children:[I&&D.jsx(k,{...ae("weekday"),children:"#"}),oe]})});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")),p=u.format("YYYY-MM-DD"),g=u.add(+u.daysInMonth()-1,"day").format("YYYY-MM-DD"),h=lg(g,n),S=[];let A=Te(ug(p,n));for(;Te(A).isBefore(h,"day");){const E=[];for(let N=0;N<7;N+=1)E.push(A.format("YYYY-MM-DD")),A=A.add(1,"day");S.push(E)}if(r&&S.length<6){const E=S[S.length-1],N=E[E.length-1];let k=Te(N).add(1,"day");for(;S.length<6;){const L=[];for(let I=0;I<7;I+=1)L.push(k.format("YYYY-MM-DD")),k=k.add(1,"day");S.push(L)}}return S}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:p,month:g}){const h=i.flat().filter(E=>Su(E,r)&&Cu(E,n)&&!u?.(E)&&!s?.(E)?.disabled&&(!p||Rs(E,g))),S=h.find(E=>s?.(E)?.selected);if(S)return S;const A=h.find(E=>Te().isSame(E,"date"));return A||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,p){var g=function(A){return A.add(4-A.isoWeekday(),r)},h=u.prototype;h.isoWeekYear=function(){return g(this).year()},h.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),r);var E,N,k,L,I=g(this),B=(E=this.isoWeekYear(),N=this.$u,k=(N?p.utc:p)().year(E).startOf("year"),L=4-k.isoWeekday(),k.isoWeekday()>4&&(L+=7),k.add(L,r));return I.diff(B,"week")+1},h.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var S=h.startOf;h.startOf=function(A,E){var N=this.$utils(),k=!!N.u(E)||E;return N.p(A)==="isoweek"?k?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(A,E)}}})}(Zi)),Zi.exports}var pg=dg();const gg=el(pg);Te.extend(gg);function mg(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 vg={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",vg,i),{classNames:s,className:u,style:p,styles:g,unstyled:h,vars:S,__staticSelector:A,locale:E,firstDayOfWeek:N,weekdayFormat:k,month:L,weekendDays:I,getDayProps:B,excludeDate:Z,minDate:ae,maxDate:ue,renderDay:oe,hideOutsideDates:he,hideWeekdays:Q,getDayAriaLabel:le,static:J,__getDayRef:te,__onDayKeyDown:de,__onDayClick:ce,__onDayMouseEnter:ne,__preventFocus:Ae,__stopPropagation:Oe,withCellSpacing:T,size:M,highlightToday:O,withWeekNumbers:m,attributes:d,...w}=r,f=F.useStyles({name:A||"Month",classes:Du,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:d,vars:S,varsResolver:yg,rootSelector:"month"}),v=nr(),b=cg({month:L,firstDayOfWeek:v.getFirstDayOfWeek(N),consistentWeeks:v.consistentWeeks}),$=fg({dates:b,minDate:sn(ae),maxDate:sn(ue),getDayProps:B,excludeDate:Z,hideOutsideDates:he,month:L}),{resolvedClassNames:U,resolvedStyles:ee}=F.useResolvedStylesApi({classNames:s,styles:g,props:r}),G=b.map((we,X)=>{const be=we.map((_e,me)=>{const j=!Rs(_e,L),K=le?.(_e)||Te(_e).locale(E||v.locale).format("D MMMM YYYY"),W=B?.(_e),V=Te(_e).isSame($,"date");return D.jsx("td",{...f("monthCell"),"data-with-spacing":T||void 0,children:D.jsx(Ps,{__staticSelector:A||"Month",classNames:U,styles:ee,unstyled:h,"data-mantine-stop-propagation":Oe||void 0,highlightToday:O,renderDay:oe,date:_e,size:M,weekend:v.getWeekendDays(I).includes(Te(_e).get("day")),outside:j,hidden:he?j:!1,"aria-label":K,static:J,disabled:Z?.(_e)||!Su(_e,sn(ue))||!Cu(_e,sn(ae)),ref:re=>{re&&te?.(X,me,re)},...W,onKeyDown:re=>{W?.onKeyDown?.(re),de?.(re,{rowIndex:X,cellIndex:me,date:_e})},onMouseEnter:re=>{W?.onMouseEnter?.(re),ne?.(re,_e)},onClick:re=>{W?.onClick?.(re),ce?.(re,_e)},onMouseDown:re=>{W?.onMouseDown?.(re),Ae&&re.preventDefault()},tabIndex:Ae||!V?-1:0})},_e.toString())});return D.jsxs("tr",{...f("monthRow"),children:[m&&D.jsx("td",{...f("weekNumber"),children:mg(we)}),be]},X)});return D.jsxs(F.Box,{component:"table",...f("month"),size:M,ref:n,...w,children:[!Q&&D.jsx("thead",{...f("monthThead"),children:D.jsx(Ms,{__staticSelector:A||"Month",locale:E,firstDayOfWeek:N,weekdayFormat:k,size:M,classNames:U,styles:ee,unstyled:h,withWeekNumbers:m})}),D.jsx("tbody",{...f("monthTbody"),children:G})]})});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:p,styles:g,unstyled:h,vars:S,firstInRange:A,lastInRange:E,inRange:N,__staticSelector:k,selected:L,disabled:I,attributes:B,...Z}=r,ae=F.useStyles({name:k||"PickerControl",classes:Ou,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:B,vars:S,varsResolver:_g,rootSelector:"pickerControl"});return D.jsx(F.UnstyledButton,{...ae("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":A&&!I||void 0,"data-last-in-range":E&&!I||void 0,disabled:I,...Z})});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),p=u.find(h=>s?.(h)?.selected);if(p)return p;const g=u.find(h=>Te().isSame(h,"year"));return g||u[0]}function Tu(i){const n=Te(i).year(),r=n-n%10;let s=0;const u=[[],[],[],[]];for(let p=0;p<4;p+=1){const g=p===3?1:3;for(let h=0;h<g;h+=1)u[p].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:p,styles:g,unstyled:h,vars:S,decade:A,yearsListFormat:E,locale:N,minDate:k,maxDate:L,getYearControlProps:I,__staticSelector:B,__getControlRef:Z,__onControlKeyDown:ae,__onControlClick:ue,__onControlMouseEnter:oe,__preventFocus:he,__stopPropagation:Q,withCellSpacing:le,size:J,attributes:te,...de}=r,ce=F.useStyles({name:B||"YearsList",classes:Pu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:te,vars:S,rootSelector:"yearsList"}),ne=nr(),Ae=Tu(A),Oe=wg({years:Ae,minDate:k,maxDate:L,getYearControlProps:I}),T=Ae.map((M,O)=>{const m=M.map((d,w)=>{const f=I?.(d),v=Te(d).isSame(Oe,"year");return D.jsx("td",{...ce("yearsListCell"),"data-with-spacing":le||void 0,children:D.jsx(Ji,{...ce("yearsListControl"),size:J,unstyled:h,"data-mantine-stop-propagation":Q||void 0,disabled:Eu({year:d,minDate:k,maxDate:L}),ref:b=>{b&&Z?.(O,w,b)},...f,onKeyDown:b=>{f?.onKeyDown?.(b),ae?.(b,{rowIndex:O,cellIndex:w,date:d})},onClick:b=>{f?.onClick?.(b),ue?.(b,d)},onMouseEnter:b=>{f?.onMouseEnter?.(b),oe?.(b,d)},onMouseDown:b=>{f?.onMouseDown?.(b),he&&b.preventDefault()},tabIndex:he||!v?-1:0,children:Te(d).locale(ne.getLocale(N)).format(E)})},w)});return D.jsx("tr",{...ce("yearsListRow"),children:m},O)});return D.jsx(F.Box,{component:"table",ref:n,size:J,...ce("yearsList"),...de,children:D.jsx("tbody",{children:T})})});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),p=u.find(h=>s?.(h)?.selected);if(p)return p;const g=u.find(h=>Te().isSame(h,"month"));return g||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 p=0;p<3;p+=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:p,styles:g,unstyled:h,vars:S,__staticSelector:A,year:E,monthsListFormat:N,locale:k,minDate:L,maxDate:I,getMonthControlProps:B,__getControlRef:Z,__onControlKeyDown:ae,__onControlClick:ue,__onControlMouseEnter:oe,__preventFocus:he,__stopPropagation:Q,withCellSpacing:le,size:J,attributes:te,...de}=r,ce=F.useStyles({name:A||"MonthsList",classes:Ru,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:te,vars:S,rootSelector:"monthsList"}),ne=nr(),Ae=Cg(E),Oe=xg({months:Ae,minDate:sn(L),maxDate:sn(I),getMonthControlProps:B}),T=Ae.map((M,O)=>{const m=M.map((d,w)=>{const f=B?.(d),v=Te(d).isSame(Oe,"month");return D.jsx("td",{...ce("monthsListCell"),"data-with-spacing":le||void 0,children:D.jsx(Ji,{...ce("monthsListControl"),size:J,unstyled:h,__staticSelector:A||"MonthsList","data-mantine-stop-propagation":Q||void 0,disabled:Mu({month:d,minDate:sn(L),maxDate:sn(I)}),ref:b=>{b&&Z?.(O,w,b)},...f,onKeyDown:b=>{f?.onKeyDown?.(b),ae?.(b,{rowIndex:O,cellIndex:w,date:d})},onClick:b=>{f?.onClick?.(b),ue?.(b,d)},onMouseEnter:b=>{f?.onMouseEnter?.(b),oe?.(b,d)},onMouseDown:b=>{f?.onMouseDown?.(b),he&&b.preventDefault()},tabIndex:he||!v?-1:0,children:Te(d).locale(ne.getLocale(k)).format(N)})},w)});return D.jsx("tr",{...ce("monthsListRow"),children:m},O)});return D.jsx(F.Box,{component:"table",ref:n,size:J,...ce("monthsList"),...de,children:D.jsx("tbody",{children:T})})});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:p,styles:g,unstyled:h,vars:S,nextIcon:A,previousIcon:E,nextLabel:N,previousLabel:k,onNext:L,onPrevious:I,onLevelClick:B,label:Z,nextDisabled:ae,previousDisabled:ue,hasNextLevel:oe,levelControlAriaLabel:he,withNext:Q,withPrevious:le,headerControlsOrder:J,__staticSelector:te,__preventFocus:de,__stopPropagation:ce,attributes:ne,...Ae}=r,Oe=F.useStyles({name:te||"CalendarHeader",classes:ku,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:ne,vars:S,varsResolver:Dg,rootSelector:"calendarHeader"}),T=de?w=>w.preventDefault():void 0,M=le&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":k,onClick:I,unstyled:h,onMouseDown:T,disabled:ue,"data-disabled":ue||void 0,tabIndex:de||ue?-1:0,"data-mantine-stop-propagation":ce||void 0},E||D.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),O=ye.createElement(F.UnstyledButton,{component:oe?"button":"div",...Oe("calendarHeaderLevel"),key:"level",onClick:oe?B:void 0,unstyled:h,onMouseDown:oe?T:void 0,disabled:!oe,"data-static":!oe||void 0,"aria-label":he,tabIndex:de||!oe?-1:0,"data-mantine-stop-propagation":ce||void 0},Z),m=Q&&ye.createElement(F.UnstyledButton,{...Oe("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":N,onClick:L,unstyled:h,onMouseDown:T,disabled:ae,"data-disabled":ae||void 0,tabIndex:de||ae?-1:0,"data-mantine-stop-propagation":ce||void 0},A||D.jsx(F.AccordionChevron,{...Oe("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),d=J.map(w=>w==="previous"?M:w==="level"?O:w==="next"?m:null);return D.jsx(F.Box,{...Oe("calendarHeader"),ref:n,...Ae,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:p,maxDate:g,yearsListFormat:h,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,withCellSpacing:L,__preventFocus:I,nextIcon:B,previousIcon:Z,nextLabel:ae,previousLabel:ue,onNext:oe,onPrevious:he,nextDisabled:Q,previousDisabled:le,levelControlAriaLabel:J,withNext:te,withPrevious:de,headerControlsOrder:ce,decadeLabelFormat:ne,classNames:Ae,styles:Oe,unstyled:T,__staticSelector:M,__stopPropagation:O,size:m,attributes:d,...w}=r,f=nr(),[v,b]=Og(s),$={__staticSelector:M||"DecadeLevel",classNames:Ae,styles:Oe,unstyled:T,size:m,attributes:d},U=typeof Q=="boolean"?Q:g?!Te(b).endOf("year").isBefore(g):!1,ee=typeof le=="boolean"?le:p?!Te(v).startOf("year").isAfter(p):!1,G=(we,X)=>Te(we).locale(u||f.locale).format(X);return D.jsxs(F.Box,{"data-decade-level":!0,size:m,ref:n,...w,children:[D.jsx(rr,{label:typeof ne=="function"?ne(v,b):`${G(v,ne)} – ${G(b,ne)}`,__preventFocus:I,__stopPropagation:O,nextIcon:B,previousIcon:Z,nextLabel:ae,previousLabel:ue,onNext:oe,onPrevious:he,nextDisabled:U,previousDisabled:ee,hasNextLevel:!1,levelControlAriaLabel:J,withNext:te,withPrevious:de,headerControlsOrder:ce,...$}),D.jsx(Xi,{decade:s,locale:u,minDate:p,maxDate:g,yearsListFormat:h,getYearControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,__preventFocus:I,__stopPropagation:O,withCellSpacing:L,...$})]})});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:p,maxDate:g,monthsListFormat:h,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,withCellSpacing:L,__preventFocus:I,nextIcon:B,previousIcon:Z,nextLabel:ae,previousLabel:ue,onNext:oe,onPrevious:he,onLevelClick:Q,nextDisabled:le,previousDisabled:J,hasNextLevel:te,levelControlAriaLabel:de,withNext:ce,withPrevious:ne,headerControlsOrder:Ae,yearLabelFormat:Oe,__staticSelector:T,__stopPropagation:M,size:O,classNames:m,styles:d,unstyled:w,attributes:f,...v}=r,b=nr(),$={__staticSelector:T||"YearLevel",classNames:m,styles:d,unstyled:w,size:O,attributes:f},U=typeof le=="boolean"?le:g?!Te(s).endOf("year").isBefore(g):!1,ee=typeof J=="boolean"?J:p?!Te(s).startOf("year").isAfter(p):!1;return D.jsxs(F.Box,{"data-year-level":!0,size:O,ref:n,...v,children:[D.jsx(rr,{label:typeof Oe=="function"?Oe(s):Te(s).locale(u||b.locale).format(Oe),__preventFocus:I,__stopPropagation:M,nextIcon:B,previousIcon:Z,nextLabel:ae,previousLabel:ue,onNext:oe,onPrevious:he,onLevelClick:Q,nextDisabled:U,previousDisabled:ee,hasNextLevel:te,levelControlAriaLabel:de,withNext:ce,withPrevious:ne,headerControlsOrder:Ae,...$}),D.jsx(eo,{year:s,locale:u,minDate:p,maxDate:g,monthsListFormat:h,getMonthControlProps:S,__getControlRef:A,__onControlKeyDown:E,__onControlClick:N,__onControlMouseEnter:k,__preventFocus:I,__stopPropagation:M,withCellSpacing:L,...$})]})});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:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:B,__getDayRef:Z,__onDayKeyDown:ae,__onDayClick:ue,__onDayMouseEnter:oe,withCellSpacing:he,highlightToday:Q,withWeekNumbers:le,__preventFocus:J,__stopPropagation:te,nextIcon:de,previousIcon:ce,nextLabel:ne,previousLabel:Ae,onNext:Oe,onPrevious:T,onLevelClick:M,nextDisabled:O,previousDisabled:m,hasNextLevel:d,levelControlAriaLabel:w,withNext:f,withPrevious:v,headerControlsOrder:b,monthLabelFormat:$,classNames:U,styles:ee,unstyled:G,__staticSelector:we,size:X,static:be,attributes:_e,...me}=r,j=nr(),K={__staticSelector:we||"MonthLevel",classNames:U,styles:ee,unstyled:G,size:X,attributes:_e},W=typeof O=="boolean"?O:N?!Te(s).endOf("month").isBefore(N):!1,V=typeof m=="boolean"?m:E?!Te(s).startOf("month").isAfter(E):!1;return D.jsxs(F.Box,{"data-month-level":!0,size:X,ref:n,...me,children:[D.jsx(rr,{label:typeof $=="function"?$(s):Te(s).locale(u||j.locale).format($),__preventFocus:J,__stopPropagation:te,nextIcon:de,previousIcon:ce,nextLabel:ne,previousLabel:Ae,onNext:Oe,onPrevious:T,onLevelClick:M,nextDisabled:W,previousDisabled:V,hasNextLevel:d,levelControlAriaLabel:w,withNext:f,withPrevious:v,headerControlsOrder:b,...K}),D.jsx(Qi,{month:s,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:B,__getDayRef:Z,__onDayKeyDown:ae,__onDayClick:ue,__onDayMouseEnter:oe,__preventFocus:J,__stopPropagation:te,static:be,withCellSpacing:he,highlightToday:Q,withWeekNumbers:le,...K})]})});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:p,styles:g,unstyled:h,vars:S,__staticSelector:A,attributes:E,...N}=r,k=F.useStyles({name:A||"LevelsGroup",classes:Lu,props:r,className:u,style:p,classNames:s,styles:g,unstyled:h,attributes:E,vars:S,rootSelector:"levelsGroup"});return D.jsx(F.Box,{ref:n,...k("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:p,maxDate:g,yearsListFormat:h,getYearControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:k,nextIcon:L,previousIcon:I,nextLabel:B,previousLabel:Z,onNext:ae,onPrevious:ue,nextDisabled:oe,previousDisabled:he,headerControlsOrder:Q,classNames:le,styles:J,unstyled:te,__staticSelector:de,__stopPropagation:ce,numberOfColumns:ne,levelControlAriaLabel:Ae,decadeLabelFormat:Oe,size:T,vars:M,attributes:O,...m}=r,d=ye.useRef([]),w=Array(ne).fill(0).map((f,v)=>{const b=Te(s).add(v*10,"years").format("YYYY-MM-DD");return D.jsx(to,{size:T,yearsListFormat:h,decade:b,withNext:v===ne-1,withPrevious:v===0,decadeLabelFormat:Oe,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:($,U)=>Ts({levelIndex:v,rowIndex:U.rowIndex,cellIndex:U.cellIndex,event:$,controlsRef:d}),__getControlRef:($,U,ee)=>{Array.isArray(d.current[v])||(d.current[v]=[]),Array.isArray(d.current[v][$])||(d.current[v][$]=[]),d.current[v][$][U]=ee},levelControlAriaLabel:typeof Ae=="function"?Ae(b):Ae,locale:u,minDate:p,maxDate:g,__preventFocus:k,__stopPropagation:ce,nextIcon:L,previousIcon:I,nextLabel:B,previousLabel:Z,onNext:ae,onPrevious:ue,nextDisabled:oe,previousDisabled:he,getYearControlProps:S,__staticSelector:de||"DecadeLevelGroup",classNames:le,styles:J,unstyled:te,withCellSpacing:N,headerControlsOrder:Q,attributes:O},v)});return D.jsx(ir,{classNames:le,styles:J,__staticSelector:de||"DecadeLevelGroup",ref:n,size:T,unstyled:te,attributes:O,...m,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:p,maxDate:g,monthsListFormat:h,getMonthControlProps:S,__onControlClick:A,__onControlMouseEnter:E,withCellSpacing:N,__preventFocus:k,nextIcon:L,previousIcon:I,nextLabel:B,previousLabel:Z,onNext:ae,onPrevious:ue,onLevelClick:oe,nextDisabled:he,previousDisabled:Q,hasNextLevel:le,headerControlsOrder:J,classNames:te,styles:de,unstyled:ce,__staticSelector:ne,__stopPropagation:Ae,numberOfColumns:Oe,levelControlAriaLabel:T,yearLabelFormat:M,size:O,vars:m,attributes:d,...w}=r,f=ye.useRef([]),v=Array(Oe).fill(0).map((b,$)=>{const U=Te(s).add($,"years").format("YYYY-MM-DD");return D.jsx(no,{size:O,monthsListFormat:h,year:U,withNext:$===Oe-1,withPrevious:$===0,yearLabelFormat:M,__stopPropagation:Ae,__onControlClick:A,__onControlMouseEnter:E,__onControlKeyDown:(ee,G)=>Ts({levelIndex:$,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:ee,controlsRef:f}),__getControlRef:(ee,G,we)=>{Array.isArray(f.current[$])||(f.current[$]=[]),Array.isArray(f.current[$][ee])||(f.current[$][ee]=[]),f.current[$][ee][G]=we},levelControlAriaLabel:typeof T=="function"?T(U):T,locale:u,minDate:p,maxDate:g,__preventFocus:k,nextIcon:L,previousIcon:I,nextLabel:B,previousLabel:Z,onNext:ae,onPrevious:ue,onLevelClick:oe,nextDisabled:he,previousDisabled:Q,hasNextLevel:le,getMonthControlProps:S,classNames:te,styles:de,unstyled:ce,__staticSelector:ne||"YearLevelGroup",withCellSpacing:N,headerControlsOrder:J,attributes:d},$)});return D.jsx(ir,{classNames:te,styles:de,__staticSelector:ne||"YearLevelGroup",ref:n,size:O,unstyled:ce,attributes:d,...w,children:v})});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:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:B,__onDayClick:Z,__onDayMouseEnter:ae,withCellSpacing:ue,highlightToday:oe,withWeekNumbers:he,__preventFocus:Q,nextIcon:le,previousIcon:J,nextLabel:te,previousLabel:de,onNext:ce,onPrevious:ne,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:T,hasNextLevel:M,headerControlsOrder:O,classNames:m,styles:d,unstyled:w,numberOfColumns:f,levelControlAriaLabel:v,monthLabelFormat:b,__staticSelector:$,__stopPropagation:U,size:ee,static:G,vars:we,attributes:X,...be}=r,_e=ye.useRef([]),me=Array(f).fill(0).map((j,K)=>{const W=Te(s).add(K,"months").format("YYYY-MM-DD");return D.jsx(ro,{month:W,withNext:K===f-1,withPrevious:K===0,monthLabelFormat:b,__stopPropagation:U,__onDayClick:Z,__onDayMouseEnter:ae,__onDayKeyDown:(V,re)=>Ts({levelIndex:K,rowIndex:re.rowIndex,cellIndex:re.cellIndex,event:V,controlsRef:_e}),__getDayRef:(V,re,Se)=>{Array.isArray(_e.current[K])||(_e.current[K]=[]),Array.isArray(_e.current[K][V])||(_e.current[K][V]=[]),_e.current[K][V][re]=Se},levelControlAriaLabel:typeof v=="function"?v(W):v,locale:u,firstDayOfWeek:p,weekdayFormat:g,weekendDays:h,getDayProps:S,excludeDate:A,minDate:E,maxDate:N,renderDay:k,hideOutsideDates:L,hideWeekdays:I,getDayAriaLabel:B,__preventFocus:Q,nextIcon:le,previousIcon:J,nextLabel:te,previousLabel:de,onNext:ce,onPrevious:ne,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:T,hasNextLevel:M,classNames:m,styles:d,unstyled:w,__staticSelector:$||"MonthLevelGroup",size:ee,static:G,withCellSpacing:ue,highlightToday:oe,withWeekNumbers:he,headerControlsOrder:O,attributes:X},K)});return D.jsx(ir,{classNames:m,styles:d,__staticSelector:$||"MonthLevelGroup",ref:n,size:ee,attributes:X,...be,children:me})});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 p=ye.useRef(i),[g,h,S]=Mt.useUncontrolled({value:Iu(n,u),defaultValue:Iu(r,u),finalValue:Nu(i),onChange:s});let A=g;return p.current!==i&&(p.current=i,n===void 0&&(A=r!==void 0?r:Nu(i),h(A))),[A,h,S]}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:p,defaultLevel:g,level:h,onLevelChange:S,date:A,defaultDate:E,onDateChange:N,numberOfColumns:k,columnsToScroll:L,ariaLabels:I,nextLabel:B,previousLabel:Z,onYearSelect:ae,onMonthSelect:ue,onYearMouseEnter:oe,onMonthMouseEnter:he,headerControlsOrder:Q,__updateDateOnYearSelect:le,__updateDateOnMonthSelect:J,__setDateRef:te,__setLevelRef:de,firstDayOfWeek:ce,weekdayFormat:ne,weekendDays:Ae,getDayProps:Oe,excludeDate:T,renderDay:M,hideOutsideDates:O,hideWeekdays:m,getDayAriaLabel:d,monthLabelFormat:w,nextIcon:f,previousIcon:v,__onDayClick:b,__onDayMouseEnter:$,withCellSpacing:U,highlightToday:ee,withWeekNumbers:G,monthsListFormat:we,getMonthControlProps:X,yearLabelFormat:be,yearsListFormat:_e,getYearControlProps:me,decadeLabelFormat:j,classNames:K,styles:W,unstyled:V,minDate:re,maxDate:Se,locale:l,__staticSelector:c,size:_,__preventFocus:R,__stopPropagation:z,onNextDecade:ie,onPreviousDecade:De,onNextYear:Ce,onPreviousYear:Pe,onNextMonth:ve,onPreviousMonth:Re,static:Ie,enableKeyboardNavigation:ke,attributes:Xe,...Qe}=r,{resolvedClassNames:nt,resolvedStyles:Et}=F.useResolvedStylesApi({classNames:K,styles:W,props:r}),[pt,rt]=Mt.useUncontrolled({value:h?pi(h,p,u):void 0,defaultValue:g?pi(g,p,u):void 0,finalValue:pi(void 0,p,u),onChange:S}),[An,St]=ks({type:"default",value:sn(A),defaultValue:sn(E),onChange:N});ye.useImperativeHandle(te,()=>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||k||1,jt=new Date,On=re&&Te(jt).isAfter(re)?re:Te(jt).format("YYYY-MM-DD"),yt=An||On,an=()=>{const ze=Te(yt).add(At,"month").format("YYYY-MM-DD");ve?.(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");ie?.(ze),St(ze)},Wt=()=>{const ze=Te(yt).subtract(10*At,"year").format("YYYY-MM-DD");De?.(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 D.jsxs(F.Box,{ref:Ut,size:_,"data-calendar":!0,...Qe,children:[pt==="month"&&D.jsx(so,{month:yt,minDate:re,maxDate:Se,firstDayOfWeek:ce,weekdayFormat:ne,weekendDays:Ae,getDayProps:Oe,excludeDate:T,renderDay:M,hideOutsideDates:O,hideWeekdays:m,getDayAriaLabel:d,onNext:an,onPrevious:ln,hasNextLevel:u!=="month",onLevelClick:()=>rt("year"),numberOfColumns:k,locale:l,levelControlAriaLabel:I?.monthLevelControl,nextLabel:I?.nextMonth??B,nextIcon:f,previousLabel:I?.previousMonth??Z,previousIcon:v,monthLabelFormat:w,__onDayClick:b,__onDayMouseEnter:$,__preventFocus:R,__stopPropagation:z,static:Ie,withCellSpacing:U,highlightToday:ee,withWeekNumbers:G,headerControlsOrder:Q,...Dn}),pt==="year"&&D.jsx(oo,{year:yt,numberOfColumns:k,minDate:re,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??B,nextIcon:f,previousLabel:I?.previousYear??Z,previousIcon:v,yearLabelFormat:be,__onControlMouseEnter:he,__onControlClick:(ze,at)=>{J&&St(at),rt(pi("month",p,u)),ue?.(at)},__preventFocus:R,__stopPropagation:z,withCellSpacing:U,headerControlsOrder:Q,...Dn}),pt==="decade"&&D.jsx(io,{decade:yt,minDate:re,maxDate:Se,yearsListFormat:_e,getYearControlProps:me,locale:l,onNext:Ft,onPrevious:Wt,numberOfColumns:k,nextLabel:I?.nextDecade??B,nextIcon:f,previousLabel:I?.previousDecade??Z,previousIcon:v,decadeLabelFormat:j,__onControlMouseEnter:oe,__onControlClick:(ze,at)=>{le&&St(at),rt(pi("year",p,u)),ae?.(at)},__preventFocus:R,__stopPropagation:z,withCellSpacing:U,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:p,nextIcon:g,previousIcon:h,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:k,ariaLabels:L,nextLabel:I,previousLabel:B,onYearSelect:Z,onMonthSelect:ae,onYearMouseEnter:ue,onMonthMouseEnter:oe,onNextMonth:he,onPreviousMonth:Q,onNextYear:le,onPreviousYear:J,onNextDecade:te,onPreviousDecade:de,withCellSpacing:ce,highlightToday:ne,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,__setDateRef:T,__setLevelRef:M,withWeekNumbers:O,headerControlsOrder:m,firstDayOfWeek:d,weekdayFormat:w,weekendDays:f,getDayProps:v,excludeDate:b,renderDay:$,hideOutsideDates:U,hideWeekdays:ee,getDayAriaLabel:G,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:me,getYearControlProps:j,decadeLabelFormat:K,allowSingleDateInRange:W,allowDeselect:V,minDate:re,maxDate:Se,locale:l,...c}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:u,onLevelChange:p,nextIcon:g,previousIcon:h,date:S,defaultDate:A,onDateChange:E,numberOfColumns:N,columnsToScroll:k,ariaLabels:L,nextLabel:I,previousLabel:B,onYearSelect:Z,onMonthSelect:ae,onYearMouseEnter:ue,onMonthMouseEnter:oe,onNextMonth:he,onPreviousMonth:Q,onNextYear:le,onPreviousYear:J,onNextDecade:te,onPreviousDecade:de,withCellSpacing:ce,highlightToday:ne,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,__setDateRef:T,withWeekNumbers:O,headerControlsOrder:m,firstDayOfWeek:d,weekdayFormat:w,weekendDays:f,getDayProps:v,excludeDate:b,renderDay:$,hideOutsideDates:U,hideWeekdays:ee,getDayAriaLabel:G,monthLabelFormat:we,monthsListFormat:X,getMonthControlProps:be,yearLabelFormat:_e,yearsListFormat:me,getYearControlProps:j,decadeLabelFormat:K,allowSingleDateInRange:W,allowDeselect:V,minDate:re,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:p,defaultValue:g,onChange:h,clearable:S,clearButtonProps:A,popoverProps:E,getDayProps:N,locale:k,valueFormat:L,dateParser:I,minDate:B,maxDate:Z,fixOnBlur:ae,onFocus:ue,onBlur:oe,onClick:he,onKeyDown:Q,readOnly:le,name:J,form:te,rightSection:de,unstyled:ce,classNames:ne,styles:Ae,allowDeselect:Oe,date:T,defaultDate:M,onDateChange:O,getMonthControlProps:m,getYearControlProps:d,...w}=r,f=ye.useRef(null),v=ye.useRef(null),[b,$]=ye.useState(!1),{calendarProps:U,others:ee}=Ig(w),G=nr(),X=I||(Ce=>{const Pe=Te(Ce,L,G.getLocale(k)).toDate();return Number.isNaN(Pe.getTime())?$g(Ce):Te(Pe).format("YYYY-MM-DD")}),be=Oe!==void 0?Oe:S,_e=Ce=>Ce?Te(Ce).locale(G.getLocale(k)).format(L):"",[me,j,K]=ks({type:"default",value:p,defaultValue:g,onChange:h}),[W,V]=ks({type:"default",value:T,defaultValue:g||M,onChange:O});ye.useEffect(()=>{K&&p!==null&&V(p)},[K,p]);const[re,Se]=ye.useState(_e(me));ye.useEffect(()=>{Se(_e(me))},[G.getLocale(k)]);const l=Ce=>{const Pe=Ce.currentTarget.value;if(Se(Pe),$(!0),Pe.trim()===""&&S)j(null);else{const ve=X(Pe);ve&&Bg({date:ve,minDate:B,maxDate:Z})&&(j(ve),V(ve))}},c=Ce=>{oe?.(Ce),$(!1),ae&&Se(_e(me))},_=Ce=>{ue?.(Ce),$(!0)},R=Ce=>{he?.(Ce),$(!0)},z=Ce=>{Ce.key==="Escape"&&$(!1),Q?.(Ce)},ie=Ce=>({...N?.(Ce),selected:Te(me).isSame(Ce,"day"),onClick:Pe=>{N?.(Ce).onClick?.(Pe);const ve=S&&be&&Te(me).isSame(Ce,"day")?null:Ce;j(ve),!K&&ve&&Se(_e(ve)),$(!1)}}),De=de||(S&&me&&!le?D.jsx(F.CloseButton,{variant:"transparent",onMouseDown:Ce=>Ce.preventDefault(),tabIndex:-1,onClick:()=>{j(null),!K&&Se(""),$(!1)},unstyled:ce,size:s.size||"sm",...A}):null);return Mt.useDidUpdate(()=>{me!==void 0&&!b&&Se(_e(me))},[me]),Mt.useClickOutside(()=>$(!1),void 0,[f.current,v.current]),D.jsxs(D.Fragment,{children:[D.jsx(F.Input.Wrapper,{...u,__staticSelector:"DateInput",ref:f,children:D.jsxs(F.Popover,{opened:b,trapFocus:!1,position:"bottom-start",disabled:le,withRoles:!1,unstyled:ce,...E,children:[D.jsx(F.Popover.Target,{children:D.jsx(F.Input,{"data-dates-input":!0,"data-read-only":le||void 0,autoComplete:"off",ref:n,value:re,onChange:l,onBlur:c,onFocus:_,onClick:R,onKeyDown:z,readOnly:le,rightSection:De,...s,...ee,__staticSelector:"DateInput"})}),D.jsx(F.Popover.Dropdown,{onMouseDown:Ce=>Ce.preventDefault(),"data-dates-dropdown":!0,ref:v,children:D.jsx(ao,{__staticSelector:"DateInput",...U,classNames:ne,styles:Ae,unstyled:ce,__preventFocus:!0,minDate:B,maxDate:Z,locale:k,getDayProps:ie,size:s.size,date:W,onDateChange:V,getMonthControlProps:Ce=>({selected:typeof me=="string"?Rs(Ce,me):!1,...m?.(Ce)}),getYearControlProps:Ce=>({selected:typeof me=="string"?Te(Ce).isSame(me,"year"):!1,...d?.(Ce)}),attributes:u.attributes})})]})}),D.jsx(_u,{name:J,form:te,value:me,type:"default"})]})});lo.classes={...F.Input.classes,...ao.classes},lo.displayName="@mantine/dates/DateInput";function Yg(i){const n=bn.c(52),{fields:r,onClose:s,queryKey:u,apiPath:p,steps:g,onCreated:h}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1),[k,L]=ye.useState();let I;n[0]===Symbol.for("react.memo_cache_sentinel")?(I={},n[0]=I):I=n[0];const[B,Z]=ye.useState(I),{mutateAsync:ae,isError:ue,error:oe,isPending:he}=pu(p,u),{mutateAsync:Q,isPending:le}=Es(p,u),J=he||le;let te;n[1]!==r?(te=new Set(r.filter(Hg).map(qg)),n[1]=r,n[2]=te):te=n[2];let de;n[3]!==te?(de=[...te],n[3]=te,n[4]=de):de=n[4];const ce=de;let ne;n[5]!==r?(ne=r.reduce(zg,{}),n[5]=r,n[6]=ne):ne=n[6];let Ae;n[7]!==r?(Ae=r.filter(Ug).reduce(Fg,{}),n[7]=r,n[8]=Ae):Ae=n[8];let Oe;n[9]!==ne||n[10]!==Ae?(Oe={mode:"uncontrolled",initialValues:ne,validate:Ae},n[9]=ne,n[10]=Ae,n[11]=Oe):Oe=n[11];const T=Xa.useForm(Oe);let M;n[12]!==T?(M=ee=>{T.setValues(ee),Z(G=>({...G,...ee}))},n[12]=T,n[13]=M):M=n[13];const O=M;let m;n[14]!==T||n[15]!==k||n[16]!==O||n[17]!==B?(m=function(G){const we={...T.getValues(),...B};return G.conditional&&!G.conditional(we)?null:D.jsxs(ye.Fragment,{children:[(G.type===void 0||G.type=="text")&&D.jsx(F.TextInput,{label:G.column.title,placeholder:G.placeholder??"",...T.getInputProps(G.id),type:G.id.includes("email")?"email":void 0},T.key(G.id)),G.type==="number"&&D.jsx(F.NumberInput,{decimalSeparator:",",label:G.column.title,placeholder:G.placeholder??"",...T.getInputProps(G.id)},T.key(G.id)),G.type==="date"&&D.jsx(lo,{label:G.column.title,placeholder:G.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...T.getInputProps(G.id)},T.key(G.id)),G.type==="boolean"&&D.jsx(F.Checkbox,{mt:"md",label:G.column.title,...T.getInputProps(G.id,{type:"checkbox"})},T.key(G.id)),G.type==="textarea"&&D.jsx(F.Textarea,{label:G.column.title,placeholder:G.placeholder??"",...T.getInputProps(G.id),minRows:3,autosize:!0},T.key(G.id)),G.type==="custom"&&G.render&&G.render({...T.getValues(),...k&&{id:k}},O,N)]},G.id)},n[14]=T,n[15]=k,n[16]=O,n[17]=B,n[18]=m):m=n[18];const d=m;let w;n[19]!==oe?.message||n[20]!==oe?.name||n[21]!==ue?(w=ue&&D.jsx(F.Alert,{variant:"outline",color:"red",title:oe?.name??"Fehler aufgetreten",mb:"lg",children:oe?.message??"Fehler aufgetreten"}),n[19]=oe?.message,n[20]=oe?.name,n[21]=ue,n[22]=w):w=n[22];let f;n[23]!==S||n[24]!==ae||n[25]!==T||n[26]!==ue||n[27]!==s||n[28]!==h||n[29]!==k||n[30]!==ce.length||n[31]!==Q?(f=T.onSubmit(async ee=>{if(k)await Q({...ee,id:k});else{const G=await ae(ee);L(G.id),h?.(G.id)}ce.length&&S<ce.length-1?ue||A(S+1):ue||(T.setInitialValues(ee),T.reset(),s())}),n[23]=S,n[24]=ae,n[25]=T,n[26]=ue,n[27]=s,n[28]=h,n[29]=k,n[30]=ce.length,n[31]=Q,n[32]=f):f=n[32];let v;n[33]!==S||n[34]!==r||n[35]!==d||n[36]!==g||n[37]!==ce?(v=ce.length?D.jsx(F.Stepper,{active:S,size:"sm",children:ce.map(ee=>D.jsx(F.Stepper.Step,{...g&&g[ee-1]?{label:g[ee-1].label}:{},children:r.filter(G=>G.step===ee).map(G=>d(G))},ee))}):r.map(ee=>d(ee)),n[33]=S,n[34]=r,n[35]=d,n[36]=g,n[37]=ce,n[38]=v):v=n[38];let b;n[39]!==S||n[40]!==E||n[41]!==J||n[42]!==s||n[43]!==ce.length?(b=!E&&D.jsxs(F.Group,{mt:"md",justify:"end",children:[D.jsx(F.Button,{onClick:()=>ce.length?S===0?s():A(S-1):s(),variant:"outline",children:ce.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(F.Button,{type:"submit",loading:J,children:ce.length?S===ce.length-1?"Speichern":"Weiter":"Speichern"})]}),n[39]=S,n[40]=E,n[41]=J,n[42]=s,n[43]=ce.length,n[44]=b):b=n[44];let $;n[45]!==f||n[46]!==v||n[47]!==b?($=D.jsxs("form",{onSubmit:f,children:[v,b]}),n[45]=f,n[46]=v,n[47]=b,n[48]=$):$=n[48];let U;return n[49]!==$||n[50]!==w?(U=D.jsxs(D.Fragment,{children:[w,$]}),n[49]=$,n[50]=w,n[51]=U):U=n[51],U}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:p,resetColumnsOrder:g,resetColumnsToggle:h,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E}=i,[N,k]=ye.useState(""),[L,I]=ye.useState("");return D.jsx(Gg,{value:{sourceColumn:N,setSourceColumn:k,targetColumn:L,setTargetColumn:I,columnsToggle:u,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!N||!L)return;let B=r.indexOf(N),Z=r.indexOf(L);if(B!==-1&&Z!==-1){let ae=r.splice(B,1)[0];r.splice(Z,0,ae),s([...r])}},resetColumnsOrder:g,resetColumnsToggle:h,setColumnWidth:S,setMultipleColumnWidths:A,resetColumnsWidth:E},children:n})};function Vg(){return D.jsx("tr",{className:"mantine-datatable-empty-row",children:D.jsx("td",{})})}function Kg(){return D.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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"}),D.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"}),D.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"}),D.jsx("path",{d:"M3 3l18 18"})]})}function Zg({icon:i,text:n,active:r,children:s}){return D.jsx(F.Center,{className:"mantine-datatable-empty-state","data-active":r||void 0,children:s||D.jsxs(D.Fragment,{children:[i||D.jsx("div",{className:"mantine-datatable-empty-state-icon",children:D.jsx(Kg,{})}),D.jsx(F.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var Qg=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(Q,le){let J=[];return Q.forEach(te=>{le.find(de=>de.accessor===te)&&J.push(te)}),le.forEach(te=>{J.includes(te.accessor)||J.push(te.accessor)}),J}function u(Q,le){let J=[];return Q.forEach(te=>{le.find(de=>de.accessor===te.accessor)&&J.push(te)}),le.forEach(te=>{J.find(de=>de.accessor===te.accessor)||J.push({accessor:te.accessor,defaultToggle:te.defaultToggle||!0,toggleable:te.toggleable,toggled:te.defaultToggle===void 0?!0:te.defaultToggle})}),J}function p(Q,le){let J=[];return Q.forEach(te=>{let de=Object.keys(te)[0];le.find(ce=>ce.accessor===de)&&J.push(te)}),le.forEach(te=>{let de=te.accessor;if(!J.find(ce=>Object.keys(ce)[0]===de)){let ce={};ce[de]="",J.push(ce)}}),J}function g(){let[Q,le]=Mt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?A:void 0,getInitialValueInEffect:r});function J(ce){i&&le(ce)}if(!i)return[Q,J];let te=s(Q,n),de=JSON.stringify(Q);return JSON.stringify(te)!==de&&J(te),[te,J]}function h(){let[Q,le]=Mt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?N:void 0,getInitialValueInEffect:r});function J(ce){i&&le(ce)}if(!i)return[Q,J];let te=u(Q,n),de=JSON.stringify(Q);return JSON.stringify(te)!==de&&J(te),[u(Q,n),J]}function S(){let[Q,le]=Mt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?E:void 0,getInitialValueInEffect:r});function J(ce){i&&le(ce)}if(!i)return[Q,J];let te=p(Q,n),de=JSON.stringify(Q);return JSON.stringify(te)!==de&&J(te),[p(Q,n),J]}let A=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})),[k,L]=g(),[I,B]=h(),[Z,ae]=S(),ue=()=>L(A),oe=()=>{B(N)},he=()=>ae(E);return{effectiveColumns:ye.useMemo(()=>k?k.map(Q=>n.find(le=>le.accessor===Q)).map(Q=>({...Q,hidden:Q?.hidden||!I.find(le=>le.accessor===Q?.accessor)?.toggled})).map(Q=>({...Q,width:Z.find(le=>le[Q?.accessor])?.[Q?.accessor]})):n,[n,k,I,Z]),setColumnsOrder:L,columnsOrder:k,resetColumnsOrder:ue,columnsToggle:I,setColumnsToggle:B,resetColumnsToggle:oe,columnsWidth:Z,setColumnsWidth:ae,setColumnWidth:(Q,le)=>{let J=Z.map(te=>te[Q]?{[Q]:le}:te);ae(J)},setMultipleColumnWidths:Q=>{let le=Z.map(J=>{let te=Object.keys(J)[0],de=Q.find(ce=>ce.accessor===te);return de?{[te]:de.width}:J});ae(le)},resetColumnsWidth:he}},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 p=u[0];p&&n(Is(p))});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:p,header:g,footer:h,selectionColumnHeader:S}=r,A=ju({withRowBorders:n}),E=ju(i),N=ye.useRef(()=>{}),k=ye.useRef(()=>{}),L=ye.useCallback(I=>{E.current.onScroll?.(I),N.current()},[]);return ye.useEffect(()=>$s(g.current,I=>{Sn(s.current,Yu,`${I.height}px`)},()=>Sn(s.current,Yu,"0")),[g.current]),ye.useEffect(()=>$s(h.current,I=>{Sn(s.current,Fu,`${I.height}px`)},()=>Sn(s.current,Fu,"0")),[h.current]),ye.useEffect(()=>$s(S.current,I=>{Sn(s.current,Wu,`${I.width}px`)},()=>Sn(s.current,Wu,"0")),[S.current]),Bu(()=>{if(typeof window===void 0)return;let I={top:!0,bottom:!0,left:!0,right:!0},B={width:0,height:0},Z={width:0,height:0};function ae(le,J){let te=I[le];return I[le]=J,Sn(s.current,`--mantine-datatable-${le}-shadow-opacity`,J?"0":"1"),te}function ue(){let le=B.height-Z.height,J=le<0;Sn(s.current,"--mantine-datatable-footer-position",J?"relative":"sticky"),Sn(s.current,"--mantine-datatable-footer-bottom",J?`${le}px`:"0")}function oe(){A.current.withRowBorders&&B.height<Z.height?Sn(s.current,Uu,`${F.rem("1px")} solid var(--mantine-datatable-border-color)`):Sn(s.current,Uu,"unset")}k.current=oe;function he(){let le=E.current,J=p.current?.scrollTop??0,te=p.current?.scrollLeft??0,de=J===0,ce=B.height-J-Z.height<1,ne=ae("top",de),Ae=ae("bottom",ce);de&&de!==ne&&le.onScrollToTop?.(),ce&&ce!==Ae&&le.onScrollToBottom?.();let Oe=te===0,T=B.width-te-Z.width<1,M=ae("left",Oe),O=ae("right",T);Oe&&Oe!==M&&le.onScrollToLeft?.(),T&&T!==O&&le.onScrollToRight?.()}N.current=he;let Q=new ResizeObserver(le=>{for(let J of le)switch(J.target.tagName){case"TABLE":{B=Is(J);break}case"DIV":{Z=Is(J);break}}he(),ue(),oe()});return Q.observe(u.current),Q.observe(p.current),()=>{Q.disconnect()}},[]),Bu(()=>{k.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)),p=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return p.current=i.map(g=>window.matchMedia(g)),u(p.current.map(g=>g.matches)),e1(p.current,g=>{u(g)})},[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(p=>n(r)===n(p)))}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:S,initiallyExpanded:A}=i;n&&h==="always"?s=n.map(E=>kt(E,r)):A&&(s=n.filter((E,N)=>A({record:E,index:N})).map(E=>kt(E,r)),S||(s=[s[0]]))}let u,p,g=ye.useState(s);if(i){let{expandable:h,trigger:S,allowMultiple:A,collapseProps:E,content:N}=i;i.expanded?{recordIds:u,onRecordIdsChange:p}=i.expanded:[u,p]=g;let k=L=>p?.(u.filter(I=>I!==kt(L,r)));return{expandOnClick:S!=="always"&&S!=="never",isRowExpanded:L=>S==="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);p?.(A?[...u,I]:[I])},collapseRow:k,collapseProps:E,content:({record:L,index:I})=>()=>N({record:L,index:I,collapse:()=>k(L)})}}}function s1(i,n){let[r,s]=ye.useState(i),[u,p]=ye.useState(i),g=Mt.useTimeout(()=>s(!0),0),h=Mt.useTimeout(()=>p(!1),n||200);return ye.useEffect(()=>{i?(h.clear(),p(!0),g.start()):(g.clear(),s(!1),h.start())},[g,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:p,textAlign:g,width:h}){return uo(r)?D.jsx(F.TableTh,{className:ht({[Ys]:u||p,[Fs]:p,[co]:g==="left",[fo]:g==="center",[ho]:g==="right"},i),style:[{width:h,minWidth:h,maxWidth:h},n],children:s}):null}function u1({shadowVisible:i}){return D.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:p,ref:g}){return D.jsx(F.TableTfoot,{ref:g,className:ht("mantine-datatable-footer",i),style:n,children:D.jsxs(F.TableTr,{children:[u&&D.jsx(u1,{shadowVisible:p}),r.map(({hidden:h,...S})=>{if(h)return null;let{accessor:A,visibleMediaQuery:E,textAlign:N,width:k,footer:L,footerClassName:I,footerStyle:B,noWrap:Z,ellipsis:ae}={...s,...S};return D.jsx(l1,{className:I,style:B,visibleMediaQuery:E,textAlign:N,width:k,title:L,noWrap:Z,ellipsis:ae},A)})]})})}function f1({group:{id:i,columns:n,title:r,textAlign:s,className:u,style:p}}){let g=ye.useMemo(()=>n.map(({visibleMediaQuery:A})=>A),[n]),h=r1(g),S=ye.useMemo(()=>n.filter(({hidden:A},E)=>!A&&h?.[E]).length,[n,h]);return S>0?D.jsx(F.TableTh,{colSpan:S,className:ht("mantine-datatable-column-group-header-cell",{[co]:s==="left",[fo]:s==="center",[ho]:s==="right"},u),style:p,children:r??Bs(i)}):null}function h1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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 D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.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:p,toggle:g}]=Mt.useDisclosure(!1),h=n?d1:h1,S=Mt.useClickOutside(p);return s&&(S=void 0),D.jsxs(F.Popover,{withArrow:!0,shadow:"md",opened:u,onClose:p,trapFocus:!0,...r,children:[D.jsx(F.PopoverTarget,{children:D.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:A=>{A.preventDefault(),g()},onKeyDown:A=>A.stopPropagation(),children:D.jsx(h,{})})}),D.jsx(F.PopoverDropdown,{ref:S,onClick:A=>A.stopPropagation(),onKeyDown:A=>A.stopPropagation(),children:typeof i=="function"?i({close:p}):i})]})}var g1=i=>{let{accessor:n,columnRef:r}=i,[s,u]=ye.useState(!1),p=ye.useRef(0),g=ye.useRef({current:0,next:0}),{setMultipleColumnWidths:h}=Ns(),S=ye.useCallback(E=>{if(E.preventDefault(),E.stopPropagation(),!r.current)return;let N=r.current,k=N.nextElementSibling;for(;k;){let oe=k.getAttribute("data-accessor");if(oe&&oe!=="__selection__")break;k=k.nextElementSibling}if(!k)return;let L=k.getAttribute("data-accessor");if(!L)return;let I=L==="__selection__";u(!0),p.current=E.clientX;let B=N.offsetWidth,Z=k.offsetWidth;g.current={current:B,next:Z};let ae=oe=>{if(!r.current)return;let he=r.current,Q=he.nextElementSibling;if(!Q)return;let le=oe.clientX-p.current,J=50,te=g.current.current-J,de=g.current.next-J,ce=Math.max(-te,Math.min(le,de)),ne=g.current.current+ce,Ae=g.current.next-ce;he.style.width=`${ne}px`,Q.style.width=`${Ae}px`,he.style.minWidth=`${ne}px`,he.style.maxWidth=`${ne}px`,Q.style.minWidth=`${Ae}px`,Q.style.maxWidth=`${Ae}px`},ue=()=>{if(!r.current)return;let oe=r.current,he=oe.nextElementSibling;u(!1),document.body.style.cursor="initial",document.body.style.userSelect="initial";let Q=parseInt(oe.style.width)||oe.offsetWidth,le=he?parseInt(he.style.width)||he.offsetWidth:0,J=[{accessor:n,width:`${Q}px`}];if(he&&!I){let te=he.getAttribute("data-accessor");te&&J.push({accessor:te,width:`${le}px`})}setTimeout(()=>{h(J)},0),document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",ue)};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",ae),document.addEventListener("mouseup",ue)},[n,h]),A=ye.useCallback(()=>{if(!r.current)return;let E=r.current,N=E.nextElementSibling;E.style.width="",E.style.minWidth="",E.style.maxWidth="";let k=[{accessor:n,width:"initial"}];if(N){N.style.width="",N.style.minWidth="",N.style.maxWidth="";let L=N.getAttribute("data-accessor");L&&L!=="__selection__"&&k.push({accessor:L,width:"initial"})}setTimeout(()=>{h(k)},0)},[n,h]);return D.jsx("div",{className:"mantine-datatable-header-resizable-handle",style:{cursor:s?"col-resize":void 0},onMouseDown:S,onDoubleClick:A,onClick:E=>E.stopPropagation(),title:"Drag to resize column, double-click to reset"})};function m1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M12 5l0 14"}),D.jsx("path",{d:"M16 9l-4 -4"}),D.jsx("path",{d:"M8 9l4 -4"})]})}function v1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 7l4 -4l4 4"}),D.jsx("path",{d:"M8 17l4 4l4 -4"}),D.jsx("path",{d:"M12 3l0 18"})]})}function y1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function _1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M18 6l-12 12"}),D.jsx("path",{d:"M6 6l12 12"})]})}function w1({className:i,style:n,accessor:r,visibleMediaQuery:s,title:u,sortable:p,draggable:g,toggleable:h,resizable:S,sortIcons:A,textAlign:E,width:N,sortStatus:k,onSortStatusChange:L,filter:I,filterPopoverProps:B,filterPopoverDisableClickOutside:Z,filtering:ae,sortKey:ue}){let{setSourceColumn:oe,setTargetColumn:he,swapColumns:Q,setColumnsToggle:le}=Ns(),[J,te]=ye.useState(!1),de=ye.useRef(null);if(!uo(s))return null;let ce=u??Bs(r),ne=typeof ce=="string"?ce:void 0,Ae=p&&L?w=>{w?.defaultPrevented||L({sortKey:ue,columnAccessor:r,direction:k?.columnAccessor===r?k.direction==="asc"?"desc":"asc":k?.direction??"asc"})}:void 0,Oe=w=>{w.stopPropagation(),oe(r),te(!1)},T=w=>{w.preventDefault(),he(r),te(!0)},M=()=>{he(r),te(!1),Q()},O=()=>{te(!0)},m=()=>{te(!1)},d=w=>{w.stopPropagation(),le(f=>f.map(v=>v.accessor===r?{...v,toggled:!1}:v))};return D.jsxs(F.TableTh,{"data-accessor":r,className:ht({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":h,"mantine-datatable-header-cell-resizable":S},i),style:[{width:N,...S?{minWidth:"1px"}:{minWidth:N,maxWidth:N}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:Ae,onKeyDown:w=>w.key==="Enter"&&Ae?.(),ref:de,children:[D.jsxs(F.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[D.jsxs(F.Flex,{align:"center",w:"100%",className:ht({"mantine-datatable-header-cell-draggable":g,"mantine-datatable-header-cell-drag-over":J}),draggable:g,onDragStart:g?Oe:void 0,onDragEnter:g?O:void 0,onDragOver:g?T:void 0,onDrop:g?M:void 0,onDragLeave:g?m:void 0,children:[g?D.jsx(F.Center,{role:"img","aria-label":"Drag column",children:D.jsx(F.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:w=>{w.stopPropagation()},children:D.jsx(y1,{})})}):null,D.jsx(F.Box,{className:ht("mantine-datatable-header-cell-sortable-text",{[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},Ys,Fs),title:ne,children:ce})]}),h?D.jsx(F.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:D.jsx(F.ActionIcon,{size:"xs",variant:"light",onClick:d,children:D.jsx(_1,{})})}):null,p||k?.columnAccessor===r?D.jsx(D.Fragment,{children:k?.columnAccessor===r?D.jsx(F.Center,{className:ht("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":k.direction==="desc"}),role:"img","aria-label":`Sorted ${k.direction==="desc"?"descending":"ascending"}`,children:A?.sorted||D.jsx(m1,{})}):D.jsx(F.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:A?.unsorted||D.jsx(v1,{})})}):null,I?D.jsx(p1,{filterPopoverProps:B,isActive:!!ae,filterPopoverDisableClickOutside:Z,children:I}):null]}),S&&r!=="__selection__"?D.jsx(g1,{accessor:r,columnRef:de}):null]})}function b1({className:i,style:n,trigger:r,shadowVisible:s,checked:u,indeterminate:p,checkboxProps:g,onChange:h,rowSpan:S,ref:A}){let E=!g.disabled;return D.jsx(F.TableTh,{ref:A,className:ht("mantine-datatable-header-selector-cell",{[Mr]:r==="cell"&&E},i),style:n,rowSpan:S,"data-shadow-visible":s||void 0,"data-accessor":"__selection__",onClick:r==="cell"&&E?h:void 0,children:D.jsx(F.Checkbox,{classNames:E?{input:Mr}:void 0,checked:u,indeterminate:p,onChange:h,...g,disabled:!(h||g.onChange)||g.disabled})})}function x1({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:u,onSortStatusChange:p,columns:g,defaultColumnProps:h,groups:S,selectionTrigger:A,selectionVisible:E,selectionChecked:N,selectionIndeterminate:k,onSelectionChange:L,selectionCheckboxProps:I,selectorCellShadowVisible:B,selectionColumnClassName:Z,selectionColumnStyle:ae,ref:ue}){let oe=E?D.jsx(b1,{ref:i,className:Z,style:ae,trigger:A,shadowVisible:B,checked:N,indeterminate:k,checkboxProps:I,onChange:L,rowSpan:S?2:void 0}):null,{columnsToggle:he,setColumnsToggle:Q}=Ns(),[le,J]=ye.useState(!1),te=g.some(ne=>ne.toggleable),de=te?Object.fromEntries(g.map(({accessor:ne,title:Ae})=>[ne,Ae??Bs(String(ne))])):void 0,ce=D.jsxs(F.TableThead,{className:ht("mantine-datatable-header",n),style:r,ref:ue,onContextMenu:te?ne=>{ne.preventDefault(),J(Ae=>!Ae)}:void 0,children:[S&&D.jsxs(F.TableTr,{children:[oe,S.map(ne=>D.jsx(f1,{group:ne},ne.id))]}),D.jsxs(F.TableTr,{children:[!S&&oe,g.map(({hidden:ne,...Ae},Oe)=>{if(ne)return null;let{accessor:T,visibleMediaQuery:M,textAlign:O,width:m,title:d,sortable:w,draggable:f,toggleable:v,resizable:b,titleClassName:$,titleStyle:U,filter:ee,filterPopoverProps:G,filterPopoverDisableClickOutside:we,filtering:X,sortKey:be}={...h,...Ae};return D.jsx(w1,{accessor:T,className:$,style:U,visibleMediaQuery:M,textAlign:O,width:m,title:d,sortable:w,draggable:f,toggleable:v,resizable:b&&Oe<g.length-1,sortStatus:s,sortIcons:u,sortKey:be,onSortStatusChange:p,filter:ee,filterPopoverProps:G,filterPopoverDisableClickOutside:we,filtering:X},T)})]})]});return te?D.jsxs(F.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:le,onChange:J,children:[D.jsx(F.PopoverTarget,{children:ce}),D.jsx(F.PopoverDropdown,{children:D.jsx(F.Stack,{children:he.filter(ne=>ne.toggleable).map(ne=>D.jsx(F.Group,{children:D.jsx(F.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:de[ne.accessor],checked:ne.toggled,onChange:Ae=>{Q(he.map(Oe=>Oe.accessor===ne.accessor?{...Oe,toggled:Ae.currentTarget.checked}:Oe))}})},ne.accessor))})})]}):ce}function C1({fetching:i,customContent:n,backgroundBlur:r,size:s,type:u,color:p}){return D.jsx(F.Center,{className:ht("mantine-datatable-loader",{"mantine-datatable-loader-fetching":i}),style:[{backdropFilter:r?`blur(${r}px)`:void 0}],children:i&&(n||D.jsx(F.Loader,{size:s,type:u,color:p}))})}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:p,highlightOnHoverColor:g}){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(p,i,"light"),"--mantine-datatable-striped-color-dark":vt(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":vt(g,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":vt(g,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 A1({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 D1(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 9l4 -4l4 4"}),D.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:p,onChange:g}){return D.jsxs(F.Group,{gap:"xs",children:[D.jsx(F.Text,{component:"div",size:i,children:n}),D.jsxs(F.Menu,{withinPortal:!0,withArrow:!0,offset:2,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[D.jsx(F.MenuTarget,{children:D.jsx(F.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:D.jsx(D1,{}),style:[{fontWeight:"normal"},h=>({height:Gu[i],paddingLeft:h.spacing[i],paddingRight:h.spacing[i]})],children:s})}),D.jsx(F.MenuDropdown,{children:r.map(h=>{let S=h===s;return D.jsx(F.MenuItem,{className:ht({"mantine-datatable-page-size-selector-active":S}),style:[{height:Gu[i]},S&&(u||p)?A=>Hu({theme:A,paginationActiveTextColor:u,paginationActiveBackgroundColor:p}):void 0],disabled:S,onClick:()=>g(h),children:D.jsx(F.Text,{component:"div",size:i,children:h})},h)})})]})]})}function E1({className:i,style:n,fetching:r,page:s,onPageChange:u,paginationWithEdges:p,paginationWithControls:g,paginationActiveTextColor:h,paginationActiveBackgroundColor:S,paginationSize:A,loadingText:E,noRecordsText:N,paginationText:k,totalRecords:L,recordsPerPage:I,onRecordsPerPageChange:B,recordsPerPageLabel:Z,recordsPerPageOptions:ae,recordsLength:ue,horizontalSpacing:oe,paginationWrapBreakpoint:he,getPaginationControlProps:Q}){let le;if(L){let te=(s-1)*I+1,de=te+(ue||0)-1;le=k({from:te,to:de,totalRecords:L})}else le=r?E:N;let J=uo(({breakpoints:te})=>`(min-width: ${typeof he=="number"?`${F.rem(he)}rem`:te[he]||he})`);return D.jsxs(F.Box,{px:oe??"xs",py:"xs",className:ht("mantine-datatable-pagination",i),style:[{flexDirection:J?"row":"column"},n],children:[D.jsx(F.Text,{component:"div",className:"mantine-datatable-pagination-text",size:A,children:le}),ae&&D.jsx(O1,{activeTextColor:h,activeBackgroundColor:S,size:A,label:Z,values:ae,value:I,onChange:B}),D.jsx(F.Pagination,{classNames:{root:ht("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!ue}),control:"mantine-datatable-pagination-pages-control"},style:h||S?te=>Hu({theme:te,paginationActiveTextColor:h,paginationActiveBackgroundColor:S}):void 0,withEdges:p,withControls:g,value:s,onChange:u,size:A,total:Math.ceil(L/I),getControlProps:Q})]})}function T1({className:i,style:n,visibleMediaQuery:r,record:s,index:u,onClick:p,onDoubleClick:g,onContextMenu:h,noWrap:S,ellipsis:A,textAlign:E,width:N,accessor:k,render:L,defaultRender:I,customCellAttributes:B}){return uo(r)?D.jsx(F.TableTd,{className:ht({[Ys]:S||A,[Fs]:A,[Mr]:p||g,[qu]:h,[co]:E==="left",[fo]:E==="center",[ho]:E==="right"},i),style:[{width:N,minWidth:N,maxWidth:N},n],onClick:p,onDoubleClick:g,onContextMenu:h,...B?.(s,u),children:L?L(s,u):I?I(s,u,k):zu(s,k)}):null}function P1({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:u,visible:p}=s1(i,s?.transitionDuration);return p?D.jsxs(D.Fragment,{children:[D.jsx(F.TableTr,{}),D.jsx(F.TableTr,{children:D.jsx(F.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:D.jsx(F.Collapse,{in:u,...s,children:D.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:p,withRightShadow:g,checkboxProps:h,getCheckboxProps:S,...A}){let E={...h,...S(r,s)},N=!A.disabled&&!E.disabled,k=L=>{L.stopPropagation(),u==="cell"&&N&&p?.(L)};return D.jsx(F.TableTd,{className:ht("mantine-datatable-row-selector-cell",{[Mr]:u==="cell"&&N},i),style:n,"data-shadow-visible":g||void 0,onClick:k,children:D.jsx(F.Checkbox,{classNames:N?{input:Mr}:void 0,onChange:p,...A,...E})})}function R1({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:u,selectionTrigger:p,selectionVisible:g,selectionChecked:h,onSelectionChange:S,isRecordSelectable:A,selectionCheckboxProps:E,getSelectionCheckboxProps:N,onClick:k,onDoubleClick:L,onContextMenu:I,onCellClick:B,onCellDoubleClick:Z,onCellContextMenu:ae,expansion:ue,customAttributes:oe,color:he,backgroundColor:Q,className:le,style:J,selectorCellShadowVisible:te,selectionColumnClassName:de,selectionColumnStyle:ce,rowFactory:ne}){let Ae=D.jsxs(D.Fragment,{children:[g&&D.jsx(M1,{className:de,style:ce,record:i,index:n,trigger:p,withRightShadow:te,checked:h,disabled:!S||(A?!A(i,n):!1),onChange:S,checkboxProps:E,getCheckboxProps:N}),r.map(({hidden:M,hiddenContent:O,...m},d)=>{if(M||O)return null;let{accessor:w,visibleMediaQuery:f,textAlign:v,noWrap:b,ellipsis:$,width:U,render:ee,cellsClassName:G,cellsStyle:we,customCellAttributes:X}={...s,...m};return D.jsx(T1,{className:typeof G=="function"?G(i,n):G,style:we?.(i,n),visibleMediaQuery:f,record:i,index:n,onClick:B?be=>B({event:be,record:i,index:n,column:m,columnIndex:d}):void 0,onDoubleClick:Z?be=>Z({event:be,record:i,index:n,column:m,columnIndex:d}):void 0,onContextMenu:ae?be=>ae({event:be,record:i,index:n,column:m,columnIndex:d}):void 0,accessor:w,textAlign:v,noWrap:b,ellipsis:$,width:U,render:ee,defaultRender:u,customCellAttributes:X},w)})]}),Oe=ue&&D.jsx(P1,{colSpan:r.filter(({hidden:M})=>!M).length+(g?1:0),open:ue.isRowExpanded(i),content:ue.content({record:i,index:n}),collapseProps:ue.collapseProps}),T=k1({record:i,index:n,selectionChecked:h,onClick:k,onDoubleClick:L,onContextMenu:I,expansion:ue,customAttributes:oe,color:he,backgroundColor:Q,className:le,style:J});return ne?ne({record:i,index:n,rowProps:T,children:Ae,expandedElement:Oe}):D.jsxs(D.Fragment,{children:[D.jsx(F.TableTr,{...T,children:Ae}),Oe]})}function k1({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:u,onContextMenu:p,expansion:g,customAttributes:h,color:S,backgroundColor:A,className:E,style:N}){return{className:ht("mantine-datatable-row",{[Mr]:s||u||g?.isExpandable({record:i,index:n})&&g?.expandOnClick},{[qu]:p},typeof E=="function"?E(i,n):E),"data-selected":r||void 0,onClick:k=>{if(g){let{isExpandable:L,isRowExpanded:I,expandOnClick:B,expandRow:Z,collapseRow:ae}=g;L({record:i,index:n})&&B&&(I(i)?ae(i):Z(i))}s?.({event:k,record:i,index:n})},onDoubleClick:u?k=>u({event:k,record:i,index:n}):void 0,onContextMenu:p?k=>p({event:k,record:i,index:n}):void 0,style:[S||A?k=>{let L=S?.(i,n),I=A?.(i,n);return A1({theme:k,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:p}){return D.jsxs(F.ScrollArea,{...p,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,D.jsx(F.Box,{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow")}),D.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-behind":i})}),D.jsx("div",{className:ht("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-behind":n})}),D.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:p,shadow:g,verticalAlign:h="center",fetching:S,columns:A,storeColumnsKey:E,groups:N,pinFirstColumn:k,pinLastColumn:L,defaultColumnProps:I,defaultColumnRender:B,idAccessor:Z="id",records:ae,selectionTrigger:ue="checkbox",selectedRecords:oe,onSelectedRecordsChange:he,selectionColumnClassName:Q,selectionColumnStyle:le,isRecordSelectable:J,selectionCheckboxProps:te,allRecordsSelectionCheckboxProps:de={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:ce=(_t,Ze)=>({"aria-label":`Select record ${Ze+1}`}),sortStatus:ne,sortIcons:Ae,onSortStatusChange:Oe,horizontalSpacing:T,page:M,onPageChange:O,totalRecords:m,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:f,recordsPerPageLabel:v="Records per page",paginationWithEdges:b,paginationWithControls:$,paginationActiveTextColor:U,paginationActiveBackgroundColor:ee,paginationSize:G="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:me,loaderSize:j,loaderType:K,loaderColor:W,loadingText:V="...",emptyState:re,noRecordsText:Se="No records",noRecordsIcon:l,highlightOnHover:c,striped:_,noHeader:R,onRowClick:z,onRowDoubleClick:ie,onRowContextMenu:De,onCellClick:Ce,onCellDoubleClick:Pe,onCellContextMenu:ve,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)??A,[A,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:ae,idAccessor:Z}),Wn=ye.useCallback(Ve=>{zt.scrollViewport.current?.scrollTo({top:0,left:0}),O(Ve)},[O,zt.scrollViewport]),Lr=ae?.length,po=ae?.map(Ve=>kt(Ve,Z)),or=!!oe,sr=oe?.map(Ve=>kt(Ve,Z)),mi=po!==void 0&&sr!==void 0&&sr.length>0,Nr=J?ae?.filter(J):ae,Ir=Nr?.map(Ve=>kt(Ve,Z)),$r=mi&&Ir.every(Ve=>sr.includes(Ve)),Ws=mi&&Ir.some(Ve=>sr.includes(Ve)),Us=ye.useCallback(()=>{oe&&he&&he($r?oe.filter(Ve=>!Ir.includes(kt(Ve,Z))):js([...oe,...Nr],Ve=>kt(Ve,Z)))},[$r,Z,he,Ir,Nr,oe]),{lastSelectionChangeIndex:_r,setLastSelectionChangeIndex:go}=Xg(po),Br=or&&!k,vi={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 D.jsx($u,{...ct,children:D.jsxs(F.Box,{ref:zt.root,...vi,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[g]||g,height:s,minHeight:u,maxHeight:p}),yr,cn?.root,{position:"relative"}],children:[D.jsx(L1,{viewportRef:Fn,leftShadowBehind:or||!!k,rightShadowBehind:L,onScrollPositionChange:Yn,scrollAreaProps:Yt,children:D.jsx(zs,{children:D.jsxs(F.Table,{ref:Rr,horizontalSpacing:T,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":k,"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:D.jsx($u,{...ct,children:D.jsx(x1,{ref:zt.header,selectionColumnHeaderRef:zt.selectionColumnHeader,className:un?.header,style:cn?.header,columns:_t,defaultColumnProps:I,groups:N,sortStatus:ne,sortIcons:Ae,onSortStatusChange:Oe,selectionTrigger:ue,selectionVisible:or,selectionChecked:$r,selectionIndeterminate:Ws&&!$r,onSelectionChange:Us,selectionCheckboxProps:{...te,...de},selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:le})}),D.jsx("tbody",{ref:Ft,children:Lr?ae.map((Ve,Ln)=>{let jr=kt(Ve,Z),yi=sr?.includes(jr)||!1,_i;return he&&oe&&(_i=mo=>{if(mo.nativeEvent.shiftKey&&_r!==null){let Nn=ae.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));he(yi?i1(oe,Nn,Un=>kt(Un,Z)):js([...oe,...Nn],Un=>kt(Un,Z)))}else he(yi?oe.filter(Nn=>kt(Nn,Z)!==jr):js([...oe,Ve],Nn=>kt(Nn,Z)));go(Ln)}),D.jsx(R1,{record:Ve,index:Ln,columns:_t,defaultColumnProps:I,defaultColumnRender:B,selectionTrigger:ue,selectionVisible:or,selectionChecked:yi,onSelectionChange:_i,isRecordSelectable:J,selectionCheckboxProps:te,getSelectionCheckboxProps:ce,onClick:z,onDoubleClick:ie,onCellClick:Ce,onCellDoubleClick:Pe,onContextMenu:De,onCellContextMenu:ve,expansion:kr,color:Dn,backgroundColor:At,className:On,style:yt,customAttributes:an,selectorCellShadowVisible:Br,selectionColumnClassName:Q,selectionColumnStyle:le,idAccessor:Z,rowFactory:kn},jr)}):D.jsx(Vg,{})}),_t.some(({footer:Ve})=>Ve)&&D.jsx(c1,{ref:zt.footer,className:un?.footer,style:cn?.footer,columns:_t,defaultColumnProps:I,selectionVisible:or,selectorCellShadowVisible:Br})]})})}),M&&D.jsx(E1,{className:un?.pagination,style:cn?.pagination,horizontalSpacing:T,fetching:S,page:M,onPageChange:Wn,totalRecords:m,recordsPerPage:d,onRecordsPerPageChange:w,recordsPerPageOptions:f,recordsPerPageLabel:v,paginationWithEdges:b,paginationWithControls:$,paginationActiveTextColor:U,paginationActiveBackgroundColor:ee,paginationSize:G,paginationText:we,paginationWrapBreakpoint:X,getPaginationControlProps:be,noRecordsText:Se,loadingText:V,recordsLength:Lr}),D.jsx(C1,{fetching:S,backgroundBlur:_e,customContent:me,size:j,type:K,color:W}),D.jsx(Zg,{icon:l,text:Se,active:!S&&!Lr,children:re})]})})}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=gi.exports,Vu;function $1(){return Vu||(Vu=1,function(i,n){(function(){var r,s="4.17.21",c=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",h="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",A=500,E="__lodash_placeholder__",N=1,k=2,L=4,$=1,j=2,K=1,se=2,le=4,re=8,he=16,Z=32,ae=64,Q=128,X=256,de=512,ue=30,ne="...",Ae=800,Oe=16,T=1,M=2,O=3,m=1/0,d=9007199254740991,w=17976931348623157e292,u=NaN,v=4294967295,C=v-1,I=v>>>1,B=[["ary",Q],["bind",K],["bindKey",se],["curry",re],["curryRight",he],["flip",de],["partial",Z],["partialRight",ae],["rearg",X]],ie="[object Arguments]",ce="[object Array]",we="[object AsyncFunction]",J="[object Boolean]",be="[object Date]",_e="[object DOMException]",me="[object Error]",Y="[object Function]",V="[object GeneratorFunction]",U="[object Map]",G="[object Number]",ee="[object Null]",Se="[object Object]",l="[object Promise]",f="[object Proxy]",_="[object RegExp]",R="[object Set]",z="[object String]",te="[object Symbol]",De="[object Undefined]",Ce="[object WeakMap]",Pe="[object WeakSet]",ve="[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,mi="\\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,vi="['’]",zs="["+Wn+"]",Ve="["+Br+"]",Ln="["+sr+"]",jr="\\d+",yi="["+mi+"]",_i="["+Nr+"]",mo="[^"+Wn+Br+jr+mi+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+"|"+mo+")",s0="(?:"+Yr+"|"+mo+")",ec="(?:"+vi+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+vi+"(?: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(vi,"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+"]"),m0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,v0=["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[ce]=lt[ve]=lt[J]=lt[Re]=lt[be]=lt[me]=lt[Y]=lt[U]=lt[G]=lt[Se]=lt[_]=lt[R]=lt[z]=lt[Ce]=!1;var st={};st[ie]=st[ce]=st[ve]=st[Re]=st[J]=st[be]=st[Ie]=st[ke]=st[Xe]=st[Qe]=st[nt]=st[U]=st[G]=st[Se]=st[_]=st[R]=st[z]=st[te]=st[Et]=st[pt]=st[rt]=st[An]=!0,st[me]=st[Y]=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 q=wr&&wr.require&&wr.require("util").types;return q||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(q,fe,oe){switch(oe.length){case 0:return q.call(fe);case 1:return q.call(fe,oe[0]);case 2:return q.call(fe,oe[0],oe[1]);case 3:return q.call(fe,oe[0],oe[1],oe[2])}return q.apply(fe,oe)}function D0(q,fe,oe,Me){for(var Ye=-1,Je=q==null?0:q.length;++Ye<Je;){var wt=q[Ye];fe(Me,wt,oe(wt),q)}return Me}function pn(q,fe){for(var oe=-1,Me=q==null?0:q.length;++oe<Me&&fe(q[oe],oe,q)!==!1;);return q}function O0(q,fe){for(var oe=q==null?0:q.length;oe--&&fe(q[oe],oe,q)!==!1;);return q}function dc(q,fe){for(var oe=-1,Me=q==null?0:q.length;++oe<Me;)if(!fe(q[oe],oe,q))return!1;return!0}function ar(q,fe){for(var oe=-1,Me=q==null?0:q.length,Ye=0,Je=[];++oe<Me;){var wt=q[oe];fe(wt,oe,q)&&(Je[Ye++]=wt)}return Je}function vo(q,fe){var oe=q==null?0:q.length;return!!oe&&Fr(q,fe,0)>-1}function Zs(q,fe,oe){for(var Me=-1,Ye=q==null?0:q.length;++Me<Ye;)if(oe(fe,q[Me]))return!0;return!1}function ut(q,fe){for(var oe=-1,Me=q==null?0:q.length,Ye=Array(Me);++oe<Me;)Ye[oe]=fe(q[oe],oe,q);return Ye}function lr(q,fe){for(var oe=-1,Me=fe.length,Ye=q.length;++oe<Me;)q[Ye+oe]=fe[oe];return q}function Qs(q,fe,oe,Me){var Ye=-1,Je=q==null?0:q.length;for(Me&&Je&&(oe=q[++Ye]);++Ye<Je;)oe=fe(oe,q[Ye],Ye,q);return oe}function E0(q,fe,oe,Me){var Ye=q==null?0:q.length;for(Me&&Ye&&(oe=q[--Ye]);Ye--;)oe=fe(oe,q[Ye],Ye,q);return oe}function Js(q,fe){for(var oe=-1,Me=q==null?0:q.length;++oe<Me;)if(fe(q[oe],oe,q))return!0;return!1}var T0=Xs("length");function P0(q){return q.split("")}function M0(q){return q.match(yr)||[]}function pc(q,fe,oe){var Me;return oe(q,function(Ye,Je,wt){if(fe(Ye,Je,wt))return Me=Je,!1}),Me}function yo(q,fe,oe,Me){for(var Ye=q.length,Je=oe+(Me?1:-1);Me?Je--:++Je<Ye;)if(fe(q[Je],Je,q))return Je;return-1}function Fr(q,fe,oe){return fe===fe?U0(q,fe,oe):yo(q,gc,oe)}function R0(q,fe,oe,Me){for(var Ye=oe-1,Je=q.length;++Ye<Je;)if(Me(q[Ye],fe))return Ye;return-1}function gc(q){return q!==q}function mc(q,fe){var oe=q==null?0:q.length;return oe?ta(q,fe)/oe:u}function Xs(q){return function(fe){return fe==null?r:fe[q]}}function ea(q){return function(fe){return q==null?r:q[fe]}}function vc(q,fe,oe,Me,Ye){return Ye(q,function(Je,wt,it){oe=Me?(Me=!1,Je):fe(oe,Je,wt,it)}),oe}function k0(q,fe){var oe=q.length;for(q.sort(fe);oe--;)q[oe]=q[oe].value;return q}function ta(q,fe){for(var oe,Me=-1,Ye=q.length;++Me<Ye;){var Je=fe(q[Me]);Je!==r&&(oe=oe===r?Je:oe+Je)}return oe}function na(q,fe){for(var oe=-1,Me=Array(q);++oe<q;)Me[oe]=fe(oe);return Me}function L0(q,fe){return ut(fe,function(oe){return[oe,q[oe]]})}function yc(q){return q&&q.slice(0,xc(q)+1).replace(at,"")}function Jt(q){return function(fe){return q(fe)}}function ra(q,fe){return ut(fe,function(oe){return q[oe]})}function wi(q,fe){return q.has(fe)}function _c(q,fe){for(var oe=-1,Me=q.length;++oe<Me&&Fr(fe,q[oe],0)>-1;);return oe}function wc(q,fe){for(var oe=q.length;oe--&&Fr(fe,q[oe],0)>-1;);return oe}function N0(q,fe){for(var oe=q.length,Me=0;oe--;)q[oe]===fe&&++Me;return Me}var I0=ea(_0),$0=ea(w0);function B0(q){return"\\"+x0[q]}function j0(q,fe){return q==null?r:q[fe]}function Wr(q){return g0.test(q)}function Y0(q){return m0.test(q)}function F0(q){for(var fe,oe=[];!(fe=q.next()).done;)oe.push(fe.value);return oe}function ia(q){var fe=-1,oe=Array(q.size);return q.forEach(function(Me,Ye){oe[++fe]=[Ye,Me]}),oe}function bc(q,fe){return function(oe){return q(fe(oe))}}function ur(q,fe){for(var oe=-1,Me=q.length,Ye=0,Je=[];++oe<Me;){var wt=q[oe];(wt===fe||wt===E)&&(q[oe]=E,Je[Ye++]=oe)}return Je}function _o(q){var fe=-1,oe=Array(q.size);return q.forEach(function(Me){oe[++fe]=Me}),oe}function W0(q){var fe=-1,oe=Array(q.size);return q.forEach(function(Me){oe[++fe]=[Me,Me]}),oe}function U0(q,fe,oe){for(var Me=oe-1,Ye=q.length;++Me<Ye;)if(q[Me]===fe)return Me;return-1}function z0(q,fe,oe){for(var Me=oe+1;Me--;)if(q[Me]===fe)return Me;return Me}function Ur(q){return Wr(q)?H0(q):T0(q)}function En(q){return Wr(q)?G0(q):P0(q)}function xc(q){for(var fe=q.length;fe--&&Nt.test(q.charAt(fe)););return fe}var q0=ea(b0);function H0(q){for(var fe=Gs.lastIndex=0;Gs.test(q);)++fe;return fe}function G0(q){return q.match(Gs)||[]}function V0(q){return q.match(p0)||[]}var K0=function q(fe){fe=fe==null?Dt:zr.defaults(Dt.Object(),fe,zr.pick(Dt,v0));var oe=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=oe.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),em=Dt._,tm=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{}}(),nm=fe.clearTimeout!==Dt.clearTimeout&&fe.clearTimeout,rm=Me&&Me.now!==Dt.Date.now&&Me.now,im=fe.setTimeout!==Dt.setTimeout&&fe.setTimeout,To=wt.ceil,Po=wt.floor,sa=it.getOwnPropertySymbols,om=So?So.isBuffer:r,Ec=fe.isFinite,sm=wo.join,am=bc(it.keys,it),bt=wt.max,Tt=wt.min,lm=Me.now,um=fe.parseInt,Tc=wt.random,cm=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={},fm=Or(aa),hm=Or(xi),dm=Or(la),pm=Or(Hr),gm=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 mn)return e;if(tt.call(e,"__wrapped__"))return Rf(e)}return new mn(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 mn(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,mn.prototype=Vr(ko.prototype),mn.prototype.constructor=mn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function mm(){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 vm(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ym(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),a=t<0,y=o?e.length:0,x=Pv(0,y,this.__views__),P=x.start,F=x.end,H=F-P,pe=a?F:P-1,ge=this.__iteratees__,xe=ge.length,Ee=0,Le=Tt(H,this.__takeCount__);if(!o||!a&&y==H&&Le==H)return ef(e,this.__actions__);var $e=[];e:for(;H--&&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==M)Be=Bt;else if(!Bt){if(tn==T)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 _m(){this.__data__=Si?Si(null):{},this.size=0}function wm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bm(e){var t=this.__data__;if(Si){var o=t[e];return o===S?r:o}return tt.call(t,e)?t[e]:r}function xm(e){var t=this.__data__;return Si?t[e]!==r:tt.call(t,e)}function Cm(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Si&&t===r?S:t,this}xr.prototype.clear=_m,xr.prototype.delete=wm,xr.prototype.get=bm,xr.prototype.has=xm,xr.prototype.set=Cm;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 Sm(){this.__data__=[],this.size=0}function Am(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 Dm(e){var t=this.__data__,o=Lo(t,e);return o<0?r:t[o][1]}function Om(e){return Lo(this.__data__,e)>-1}function Em(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=Sm,zn.prototype.delete=Am,zn.prototype.get=Dm,zn.prototype.has=Om,zn.prototype.set=Em;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 Tm(){this.size=0,this.__data__={hash:new xr,map:new(xi||zn),string:new xr}}function Pm(e){var t=Ho(this,e).delete(e);return this.size-=t?1:0,t}function Mm(e){return Ho(this,e).get(e)}function Rm(e){return Ho(this,e).has(e)}function km(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=Tm,qn.prototype.delete=Pm,qn.prototype.get=Mm,qn.prototype.has=Rm,qn.prototype.set=km;function Cr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new qn;++t<o;)this.add(e[t])}function Lm(e){return this.__data__.set(e,S),this}function Nm(e){return this.__data__.has(e)}Cr.prototype.add=Cr.prototype.push=Lm,Cr.prototype.has=Nm;function Tn(e){var t=this.__data__=new zn(e);this.size=t.size}function Im(){this.__data__=new zn,this.size=0}function $m(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Bm(e){return this.__data__.get(e)}function jm(e){return this.__data__.has(e)}function Ym(e,t){var o=this.__data__;if(o instanceof zn){var a=o.__data__;if(!xi||a.length<c-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=Im,Tn.prototype.delete=$m,Tn.prototype.get=Bm,Tn.prototype.has=jm,Tn.prototype.set=Ym;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,F=P?na(e.length,Z0):[],H=F.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,H)))&&F.push(pe);return F}function Rc(e){var t=e.length;return t?e[_a(0,t-1)]:r}function Fm(e,t){return Go(qt(e),Sr(t,0,e.length))}function Wm(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 Um(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 zm(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=oe(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 vn(e,t,o,a,y,x){var P,F=t&N,H=t&k,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=Rv(e),!F)return qt(e,P)}else{var xe=Pt(e),Ee=xe==Y||xe==V;if(gr(e))return rf(e,F);if(xe==Se||xe==ie||Ee&&!y){if(P=H||Ee?{}:Cf(e),!F)return H?bv(e,zm(P,e)):wv(e,kc(P,e))}else{if(!st[xe])return y?e:{};P=kv(e,xe,F)}}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(vn(Be,t,o,Be,e,x))}):Zf(e)&&e.forEach(function(Be,He){P.set(He,vn(Be,t,o,He,e,x))});var $e=pe?H?Pa:Ta:H?Gt:xt,Ue=ge?r:$e(e);return pn(Ue||e,function(Be,He){Ue&&(He=Be,Be=e[He]),Di(P,He,vn(Be,t,o,He,e,x))}),P}function qm(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(g);return ki(function(){e.apply(r,o)},t)}function Oi(e,t,o,a){var y=-1,x=vo,P=!0,F=e.length,H=[],pe=t.length;if(!F)return H;o&&(t=ut(t,Jt(o))),a?(x=Zs,P=!1):t.length>=c&&(x=wi,P=!1,t=new Cr(t));e:for(;++y<F;){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;H.push(ge)}else x(t,xe,a)||H.push(ge)}return H}var fr=uf($n),Ic=uf(ha,!0);function Hm(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&&(F===r?P===P&&!en(P):o(P,F)))var F=P,H=x}return H}function Gm(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=Nv),y||(y=[]);++x<P;){var F=e[x];t>0&&o(F)?t>1?Ot(F,t-1,o,a,y):lr(y,F):a||(y[y.length]=F)}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?De:ee:br&&br in it(e)?Tv(e):Wv(e)}function da(e,t){return e>t}function Vm(e,t){return e!=null&&tt.call(e,t)}function Km(e,t){return e!=null&&t in it(e)}function Zm(e,t,o){return e>=Tt(t,o)&&e<bt(t,o)}function pa(e,t,o){for(var a=o?Zs:vo,y=e[0].length,x=e.length,P=x,F=oe(x),H=1/0,pe=[];P--;){var ge=e[P];P&&t&&(ge=ut(ge,Jt(t))),H=Tt(ge.length,H),F[P]=!o&&(t||y>=120&&ge.length>=120)?new Cr(P&&ge):r}ge=e[0];var xe=-1,Ee=F[0];e:for(;++xe<y&&pe.length<H;){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=F[P];if(!(Ue?wi(Ue,$e):a(e[P],$e,o)))continue e}Ee&&Ee.push($e),pe.push(Le)}}return pe}function Qm(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 Jm(e){return dt(e)&&It(e)==ve}function Xm(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:ev(e,t,o,a,Ti,y)}function ev(e,t,o,a,y,x){var P=Fe(e),F=Fe(t),H=P?ce:Pt(e),pe=F?ce:Pt(t);H=H==ie?Se:H,pe=pe==ie?Se:pe;var ge=H==Se,xe=pe==Se,Ee=H==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):Ov(e,t,H,o,a,y,x);if(!(o&$)){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),Ev(e,t,o,a,y,x)):!1}function tv(e){return dt(e)&&Pt(e)==U}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 F=o[y];if(P&&F[2]?F[1]!==e[F[0]]:!(F[0]in e))return!1}for(;++y<x;){F=o[y];var H=F[0],pe=e[H],ge=F[1];if(P&&F[2]){if(pe===r&&!(H in e))return!1}else{var xe=new Tn;if(a)var Ee=a(pe,ge,H,e,t,xe);if(!(Ee===r?Ti(ge,pe,$|j,a,xe):Ee))return!1}}return!0}function Fc(e){if(!ft(e)||$v(e))return!1;var t=Zn(e)?tm:ct;return t.test(Or(e))}function nv(e){return dt(e)&&It(e)==_}function rv(e){return dt(e)&&Pt(e)==R}function iv(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 ma(e){if(!Ri(e))return am(e);var t=[];for(var o in it(e))tt.call(e,o)&&o!="constructor"&&t.push(o);return t}function ov(e){if(!ft(e))return Fv(e);var t=Ri(e),o=[];for(var a in e)a=="constructor"&&(t||!tt.call(e,a))||o.push(a);return o}function va(e,t){return e<t}function Uc(e,t){var o=-1,a=Ht(e)?oe(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,$|j)}}function $o(e,t,o,a,y){e!==t&&fa(t,function(x,P){if(y||(y=new Tn),ft(x))sv(e,t,P,o,$o,a,y);else{var F=a?a(Ia(e,P),x,P+"",e,t,y):r;F===r&&(F=x),ua(e,P,F)}},Gt)}function sv(e,t,o,a,y,x,P){var F=Ia(e,o),H=Ia(t,o),pe=P.get(H);if(pe){ua(e,o,pe);return}var ge=x?x(F,H,o+"",e,t,P):r,xe=ge===r;if(xe){var Ee=Fe(H),Le=!Ee&&gr(H),$e=!Ee&&!Le&&Jr(H);ge=H,Ee||Le||$e?Fe(F)?ge=F:gt(F)?ge=qt(F):Le?(xe=!1,ge=rf(H,!0)):$e?(xe=!1,ge=of(H,!0)):ge=[]:Li(H)||Er(H)?(ge=F,Er(F)?ge=th(F):(!ft(F)||Zn(F))&&(ge=Cf(H))):xe=!1}xe&&(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,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,F){var H=ut(t,function(pe){return pe(x)});return{criteria:H,index:++a,value:x}});return k0(y,function(x,P){return _v(x,P,o)})}function av(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],F=Ar(e,P);o(F,P)&&Pi(x,dr(P,e),F)}return x}function lv(e){return function(t){return Ar(t,e)}}function ya(e,t,o,a){var y=a?R0:Fr,x=-1,P=t.length,F=e;for(e===t&&(t=qt(t)),o&&(F=ut(e,Jt(o)));++x<P;)for(var H=0,pe=t[x],ge=o?o(pe):pe;(H=y(F,ge,H,a))>-1;)F!==e&&Oo.call(F,H,1),Oo.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;Kn(y)?Oo.call(e,y,1):xa(e,y)}}return e}function _a(e,t){return e+Po(Tc()*(t-e+1))}function uv(e,t,o,a){for(var y=-1,x=bt(To((t-e)/(o||1)),0),P=oe(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 cv(e){return Rc(Xr(e))}function fv(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,F=e;F!=null&&++y<x;){var H=jn(t[y]),pe=o;if(H==="__proto__"||H==="constructor"||H==="prototype")return e;if(y!=P){var ge=F[H];pe=a?a(ge,H,F):r,pe===r&&(pe=ft(ge)?ge:Kn(t[y+1])?[]:{})}Di(F,H,pe),F=F[H]}return e}var Zc=Mo?function(e,t){return Mo.set(e,t),e}:Vt,hv=Eo?function(e,t){return Eo(e,"toString",{configurable:!0,enumerable:!1,value:Ga(t),writable:!0})}:Vt;function dv(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=oe(y);++a<y;)x[a]=e[a+t];return x}function pv(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<=I){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,F=t===null,H=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):F?Be=$e&&Ee&&(a||!Le):H?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,C)}function Qc(e,t){for(var o=-1,a=e.length,y=0,x=[];++o<a;){var P=e[o],F=t?t(P):P;if(!o||!Pn(F,H)){var H=F;x[y++]=P===0?0:P}}return x}function Jc(e){return typeof e=="number"?e:en(e)?u:+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==-m?"-0":t}function hr(e,t,o){var a=-1,y=vo,x=e.length,P=!0,F=[],H=F;if(o)P=!1,y=Zs;else if(x>=c){var pe=t?null:Av(e);if(pe)return _o(pe);P=!1,y=wi,H=new Cr}else H=t?[]:F;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=H.length;Ee--;)if(H[Ee]===xe)continue e;t&&H.push(xe),F.push(ge)}else y(H,xe,o)||(H!==F&&H.push(xe),F.push(ge))}return F}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=oe(a);++y<a;)for(var P=e[y],F=-1;++F<a;)F!=y&&(x[y]=Oi(x[y]||P,e[F],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 F=a<x?t[a]:r;o(P,e[a],F)}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 gv=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=nm||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 mv(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function vv(e){var t=new e.constructor(e.source,hn.exec(e));return t.lastIndex=e.lastIndex,t}function yv(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,F=t===null,H=t===t,pe=en(t);if(!F&&!pe&&!x&&e>t||x&&P&&H&&!F&&!pe||a&&P&&H||!o&&H||!y)return 1;if(!a&&!x&&!pe&&e<t||pe&&o&&y&&!a&&!x||F&&o&&y||!P&&y||!H)return-1}return 0}function _v(e,t,o){for(var a=-1,y=e.criteria,x=t.criteria,P=y.length,F=o.length;++a<P;){var H=sf(y[a],x[a]);if(H){if(a>=F)return H;var pe=o[a];return H*(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,F=-1,H=t.length,pe=bt(x-P,0),ge=oe(H+pe),xe=!a;++F<H;)ge[F]=t[F];for(;++y<P;)(xe||y<x)&&(ge[o[y]]=e[y]);for(;pe--;)ge[F++]=e[y++];return ge}function lf(e,t,o,a){for(var y=-1,x=e.length,P=-1,F=o.length,H=-1,pe=t.length,ge=bt(x-F,0),xe=oe(ge+pe),Ee=!a;++y<ge;)xe[y]=e[y];for(var Le=y;++H<pe;)xe[Le+H]=t[H];for(;++P<F;)(Ee||y<x)&&(xe[Le+o[P]]=e[y++]);return xe}function qt(e,t){var o=-1,a=e.length;for(t||(t=oe(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 F=t[x],H=a?a(o[F],e[F],F,o,e):r;H===r&&(H=e[F]),y?Hn(o,F,H):Di(o,F,H)}return o}function wv(e,t){return Bn(e,ka(e),t)}function bv(e,t){return Bn(e,bf(e),t)}function Yo(e,t){return function(o,a){var y=Fe(o)?D0:Um,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 F=o[a];F&&e(t,F,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),F=P.length;F--;){var H=P[e?F:++y];if(o(x[H],H,x)===!1)break}return t}}function xv(e,t,o){var a=t&K,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 Cv(e,t,o){var a=Mi(e);function y(){for(var x=arguments.length,P=oe(x),F=x,H=Qr(y);F--;)P[F]=arguments[F];var pe=x<3&&P[0]!==H&&P[x-1]!==H?[]:ur(P,H);if(x-=pe.length,x<o)return mf(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(F){return x(y[F],F,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=mn.prototype.thru;for(e&&t.reverse();a--;){var x=t[a];if(typeof x!="function")throw new gn(g);if(y&&!P&&qo(x)=="wrapper")var P=new mn([],!0)}for(a=P?a:o;++a<o;){x=t[a];var F=qo(x),H=F=="wrapper"?Ma(x):r;H&&Na(H[0])&&H[1]==(Q|re|Z|X)&&!H[4].length&&H[9]==1?P=P[qo(H[0])].apply(P,H[3]):P=x.length==1&&Na(x)?P[F]():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,F,H,pe){var ge=t&Q,xe=t&K,Ee=t&se,Le=t&(re|he),$e=t&de,Ue=Ee?r:Mi(e);function Be(){for(var He=arguments.length,Ke=oe(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 mt=ur(Ke,Bt);return mf(e,t,Fo,Be.placeholder,o,Ke,mt,F,H,pe-He)}var Mn=xe?o:this,Jn=Ee?Mn[e]:e;return He=Ke.length,F?Ke=Uv(Ke,F):$e&&He>1&&Ke.reverse(),ge&&H<He&&(Ke.length=H),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 Qm(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 Sv(e,t,o,a){var y=t&K,x=Mi(e);function P(){for(var F=-1,H=arguments.length,pe=-1,ge=a.length,xe=oe(ge+H),Ee=this&&this!==Dt&&this instanceof P?x:e;++pe<ge;)xe[pe]=a[pe];for(;H--;)xe[pe++]=arguments[++F];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),uv(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 mf(e,t,o,a,y,x,P,F,H,pe){var ge=t&re,xe=ge?P:r,Ee=ge?r:P,Le=ge?x:r,$e=ge?r:x;t|=ge?Z:ae,t&=~(ge?ae:Z),t&le||(t&=-4);var Ue=[e,t,y,Le,xe,$e,Ee,F,H,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 Av=Hr&&1/_o(new Hr([,-0]))[1]==m?function(e){return new Hr(e)}:Za;function vf(e){return function(t){var o=Pt(t);return o==U?ia(t):o==R?W0(t):L0(t,e(t))}}function Gn(e,t,o,a,y,x,P,F){var H=t&se;if(!H&&typeof e!="function")throw new gn(g);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),P=P===r?P:bt(We(P),0),F=F===r?F:We(F),pe-=y?y.length:0,t&ae){var ge=a,xe=y;a=y=r}var Ee=H?r:Ma(e),Le=[e,t,o,a,y,ge,xe,x,P,F];if(Ee&&Yv(Le,Ee),e=Le[0],t=Le[1],o=Le[2],a=Le[3],y=Le[4],F=Le[9]=Le[9]===r?H?0:e.length:bt(Le[9]-pe,0),!F&&t&(re|he)&&(t&=-25),!t||t==K)var $e=xv(e,t,o);else t==re||t==he?$e=Cv(e,t,F):(t==Z||t==(K|Z))&&!y.length?$e=Sv(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 Dv(e){return Li(e)?r:e}function wf(e,t,o,a,y,x){var P=o&$,F=e.length,H=t.length;if(F!=H&&!(P&&H>F))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&j?new Cr:r;for(x.set(e,t),x.set(t,e);++xe<F;){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 Ov(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 ve:return!(e.byteLength!=t.byteLength||!x(new Ao(e),new Ao(t)));case J:case be:case G:return Pn(+e,+t);case me:return e.name==t.name&&e.message==t.message;case _:case z:return e==t+"";case U:var F=ia;case R:var H=a&$;if(F||(F=_o),e.size!=t.size&&!H)return!1;var pe=P.get(e);if(pe)return pe==t;a|=j,P.set(e,t);var ge=wf(F(e),F(t),a,y,x,P);return P.delete(e),ge;case te:if(Ai)return Ai.call(e)==Ai.call(t)}return!1}function Ev(e,t,o,a,y,x){var P=o&$,F=Ta(e),H=F.length,pe=Ta(t),ge=pe.length;if(H!=ge&&!P)return!1;for(var xe=H;xe--;){var Ee=F[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<H;){Ee=F[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 Iv(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 Tv(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)!=U||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 fm:return Re;case hm:return U;case dm:return l;case pm:return R;case gm:return Ce}return t});function Pv(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 Mv(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 Rv(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 kv(e,t,o){var a=e.constructor;switch(t){case ve:return Da(e);case J:case be:return new a(+e);case Re:return mv(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 U:return new a;case G:case z:return new a(e);case _:return vv(e);case R:return new a;case te:return yv(e)}}function Lv(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,`{
|
|
124
|
+
*/var I1=gi.exports,Vu;function $1(){return Vu||(Vu=1,function(i,n){(function(){var r,s="4.17.21",u=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",h="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",A=500,E="__lodash_placeholder__",N=1,k=2,L=4,I=1,B=2,Z=1,ae=2,ue=4,oe=8,he=16,Q=32,le=64,J=128,te=256,de=512,ce=30,ne="...",Ae=800,Oe=16,T=1,M=2,O=3,m=1/0,d=9007199254740991,w=17976931348623157e292,f=NaN,v=4294967295,b=v-1,$=v>>>1,U=[["ary",J],["bind",Z],["bindKey",ae],["curry",oe],["curryRight",he],["flip",de],["partial",Q],["partialRight",le],["rearg",te]],ee="[object Arguments]",G="[object Array]",we="[object AsyncFunction]",X="[object Boolean]",be="[object Date]",_e="[object DOMException]",me="[object Error]",j="[object Function]",K="[object GeneratorFunction]",W="[object Map]",V="[object Number]",re="[object Null]",Se="[object Object]",l="[object Promise]",c="[object Proxy]",_="[object RegExp]",R="[object Set]",z="[object String]",ie="[object Symbol]",De="[object Undefined]",Ce="[object WeakMap]",Pe="[object WeakSet]",ve="[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,mi="\\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,vi="['’]",zs="["+Wn+"]",Ve="["+Br+"]",Ln="["+sr+"]",jr="\\d+",yi="["+mi+"]",_i="["+Nr+"]",mo="[^"+Wn+Br+jr+mi+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+"|"+mo+")",s0="(?:"+Yr+"|"+mo+")",ec="(?:"+vi+"(?:d|ll|m|re|s|t|ve))?",tc="(?:"+vi+"(?: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(vi,"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+"]"),m0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,v0=["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[ee]=lt[G]=lt[ve]=lt[X]=lt[Re]=lt[be]=lt[me]=lt[j]=lt[W]=lt[V]=lt[Se]=lt[_]=lt[R]=lt[z]=lt[Ce]=!1;var st={};st[ee]=st[G]=st[ve]=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[z]=st[ie]=st[Et]=st[pt]=st[rt]=st[An]=!0,st[me]=st[j]=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 q=wr&&wr.require&&wr.require("util").types;return q||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(q,fe,se){switch(se.length){case 0:return q.call(fe);case 1:return q.call(fe,se[0]);case 2:return q.call(fe,se[0],se[1]);case 3:return q.call(fe,se[0],se[1],se[2])}return q.apply(fe,se)}function D0(q,fe,se,Me){for(var Ye=-1,Je=q==null?0:q.length;++Ye<Je;){var wt=q[Ye];fe(Me,wt,se(wt),q)}return Me}function pn(q,fe){for(var se=-1,Me=q==null?0:q.length;++se<Me&&fe(q[se],se,q)!==!1;);return q}function O0(q,fe){for(var se=q==null?0:q.length;se--&&fe(q[se],se,q)!==!1;);return q}function dc(q,fe){for(var se=-1,Me=q==null?0:q.length;++se<Me;)if(!fe(q[se],se,q))return!1;return!0}function ar(q,fe){for(var se=-1,Me=q==null?0:q.length,Ye=0,Je=[];++se<Me;){var wt=q[se];fe(wt,se,q)&&(Je[Ye++]=wt)}return Je}function vo(q,fe){var se=q==null?0:q.length;return!!se&&Fr(q,fe,0)>-1}function Zs(q,fe,se){for(var Me=-1,Ye=q==null?0:q.length;++Me<Ye;)if(se(fe,q[Me]))return!0;return!1}function ut(q,fe){for(var se=-1,Me=q==null?0:q.length,Ye=Array(Me);++se<Me;)Ye[se]=fe(q[se],se,q);return Ye}function lr(q,fe){for(var se=-1,Me=fe.length,Ye=q.length;++se<Me;)q[Ye+se]=fe[se];return q}function Qs(q,fe,se,Me){var Ye=-1,Je=q==null?0:q.length;for(Me&&Je&&(se=q[++Ye]);++Ye<Je;)se=fe(se,q[Ye],Ye,q);return se}function E0(q,fe,se,Me){var Ye=q==null?0:q.length;for(Me&&Ye&&(se=q[--Ye]);Ye--;)se=fe(se,q[Ye],Ye,q);return se}function Js(q,fe){for(var se=-1,Me=q==null?0:q.length;++se<Me;)if(fe(q[se],se,q))return!0;return!1}var T0=Xs("length");function P0(q){return q.split("")}function M0(q){return q.match(yr)||[]}function pc(q,fe,se){var Me;return se(q,function(Ye,Je,wt){if(fe(Ye,Je,wt))return Me=Je,!1}),Me}function yo(q,fe,se,Me){for(var Ye=q.length,Je=se+(Me?1:-1);Me?Je--:++Je<Ye;)if(fe(q[Je],Je,q))return Je;return-1}function Fr(q,fe,se){return fe===fe?U0(q,fe,se):yo(q,gc,se)}function R0(q,fe,se,Me){for(var Ye=se-1,Je=q.length;++Ye<Je;)if(Me(q[Ye],fe))return Ye;return-1}function gc(q){return q!==q}function mc(q,fe){var se=q==null?0:q.length;return se?ta(q,fe)/se:f}function Xs(q){return function(fe){return fe==null?r:fe[q]}}function ea(q){return function(fe){return q==null?r:q[fe]}}function vc(q,fe,se,Me,Ye){return Ye(q,function(Je,wt,it){se=Me?(Me=!1,Je):fe(se,Je,wt,it)}),se}function k0(q,fe){var se=q.length;for(q.sort(fe);se--;)q[se]=q[se].value;return q}function ta(q,fe){for(var se,Me=-1,Ye=q.length;++Me<Ye;){var Je=fe(q[Me]);Je!==r&&(se=se===r?Je:se+Je)}return se}function na(q,fe){for(var se=-1,Me=Array(q);++se<q;)Me[se]=fe(se);return Me}function L0(q,fe){return ut(fe,function(se){return[se,q[se]]})}function yc(q){return q&&q.slice(0,xc(q)+1).replace(at,"")}function Jt(q){return function(fe){return q(fe)}}function ra(q,fe){return ut(fe,function(se){return q[se]})}function wi(q,fe){return q.has(fe)}function _c(q,fe){for(var se=-1,Me=q.length;++se<Me&&Fr(fe,q[se],0)>-1;);return se}function wc(q,fe){for(var se=q.length;se--&&Fr(fe,q[se],0)>-1;);return se}function N0(q,fe){for(var se=q.length,Me=0;se--;)q[se]===fe&&++Me;return Me}var I0=ea(_0),$0=ea(w0);function B0(q){return"\\"+x0[q]}function j0(q,fe){return q==null?r:q[fe]}function Wr(q){return g0.test(q)}function Y0(q){return m0.test(q)}function F0(q){for(var fe,se=[];!(fe=q.next()).done;)se.push(fe.value);return se}function ia(q){var fe=-1,se=Array(q.size);return q.forEach(function(Me,Ye){se[++fe]=[Ye,Me]}),se}function bc(q,fe){return function(se){return q(fe(se))}}function ur(q,fe){for(var se=-1,Me=q.length,Ye=0,Je=[];++se<Me;){var wt=q[se];(wt===fe||wt===E)&&(q[se]=E,Je[Ye++]=se)}return Je}function _o(q){var fe=-1,se=Array(q.size);return q.forEach(function(Me){se[++fe]=Me}),se}function W0(q){var fe=-1,se=Array(q.size);return q.forEach(function(Me){se[++fe]=[Me,Me]}),se}function U0(q,fe,se){for(var Me=se-1,Ye=q.length;++Me<Ye;)if(q[Me]===fe)return Me;return-1}function z0(q,fe,se){for(var Me=se+1;Me--;)if(q[Me]===fe)return Me;return Me}function Ur(q){return Wr(q)?H0(q):T0(q)}function En(q){return Wr(q)?G0(q):P0(q)}function xc(q){for(var fe=q.length;fe--&&Nt.test(q.charAt(fe)););return fe}var q0=ea(b0);function H0(q){for(var fe=Gs.lastIndex=0;Gs.test(q);)++fe;return fe}function G0(q){return q.match(Gs)||[]}function V0(q){return q.match(p0)||[]}var K0=function q(fe){fe=fe==null?Dt:zr.defaults(Dt.Object(),fe,zr.pick(Dt,v0));var se=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=se.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),em=Dt._,tm=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{}}(),nm=fe.clearTimeout!==Dt.clearTimeout&&fe.clearTimeout,rm=Me&&Me.now!==Dt.Date.now&&Me.now,im=fe.setTimeout!==Dt.setTimeout&&fe.setTimeout,To=wt.ceil,Po=wt.floor,sa=it.getOwnPropertySymbols,om=So?So.isBuffer:r,Ec=fe.isFinite,sm=wo.join,am=bc(it.keys,it),bt=wt.max,Tt=wt.min,lm=Me.now,um=fe.parseInt,Tc=wt.random,cm=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={},fm=Or(aa),hm=Or(xi),dm=Or(la),pm=Or(Hr),gm=Or(Ci),Ro=cr?cr.prototype:r,Ai=Ro?Ro.valueOf:r,Pc=Ro?Ro.toString:r;function x(e){if(dt(e)&&!Fe(e)&&!(e instanceof Ge)){if(e instanceof mn)return e;if(tt.call(e,"__wrapped__"))return Rf(e)}return new mn(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 mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}x.templateSettings={escape:ln,evaluate:Yt,interpolate:Lt,variable:"",imports:{_:x}},x.prototype=ko.prototype,x.prototype.constructor=x,mn.prototype=Vr(ko.prototype),mn.prototype.constructor=mn;function Ge(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function mm(){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 vm(){if(this.__filtered__){var e=new Ge(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ym(){var e=this.__wrapped__.value(),t=this.__dir__,o=Fe(e),a=t<0,y=o?e.length:0,C=Pv(0,y,this.__views__),P=C.start,Y=C.end,H=Y-P,pe=a?Y:P-1,ge=this.__iteratees__,xe=ge.length,Ee=0,Le=Tt(H,this.__takeCount__);if(!o||!a&&y==H&&Le==H)return ef(e,this.__actions__);var $e=[];e:for(;H--&&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==M)Be=Bt;else if(!Bt){if(tn==T)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 _m(){this.__data__=Si?Si(null):{},this.size=0}function wm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bm(e){var t=this.__data__;if(Si){var o=t[e];return o===S?r:o}return tt.call(t,e)?t[e]:r}function xm(e){var t=this.__data__;return Si?t[e]!==r:tt.call(t,e)}function Cm(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Si&&t===r?S:t,this}xr.prototype.clear=_m,xr.prototype.delete=wm,xr.prototype.get=bm,xr.prototype.has=xm,xr.prototype.set=Cm;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 Sm(){this.__data__=[],this.size=0}function Am(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 Dm(e){var t=this.__data__,o=Lo(t,e);return o<0?r:t[o][1]}function Om(e){return Lo(this.__data__,e)>-1}function Em(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=Sm,zn.prototype.delete=Am,zn.prototype.get=Dm,zn.prototype.has=Om,zn.prototype.set=Em;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 Tm(){this.size=0,this.__data__={hash:new xr,map:new(xi||zn),string:new xr}}function Pm(e){var t=Ho(this,e).delete(e);return this.size-=t?1:0,t}function Mm(e){return Ho(this,e).get(e)}function Rm(e){return Ho(this,e).has(e)}function km(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=Tm,qn.prototype.delete=Pm,qn.prototype.get=Mm,qn.prototype.has=Rm,qn.prototype.set=km;function Cr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new qn;++t<o;)this.add(e[t])}function Lm(e){return this.__data__.set(e,S),this}function Nm(e){return this.__data__.has(e)}Cr.prototype.add=Cr.prototype.push=Lm,Cr.prototype.has=Nm;function Tn(e){var t=this.__data__=new zn(e);this.size=t.size}function Im(){this.__data__=new zn,this.size=0}function $m(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Bm(e){return this.__data__.get(e)}function jm(e){return this.__data__.has(e)}function Ym(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=Im,Tn.prototype.delete=$m,Tn.prototype.get=Bm,Tn.prototype.has=jm,Tn.prototype.set=Ym;function Mc(e,t){var o=Fe(e),a=!o&&Er(e),y=!o&&!a&&gr(e),C=!o&&!a&&!y&&Jr(e),P=o||a||y||C,Y=P?na(e.length,Z0):[],H=Y.length;for(var pe in e)(t||tt.call(e,pe))&&!(P&&(pe=="length"||y&&(pe=="offset"||pe=="parent")||C&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Kn(pe,H)))&&Y.push(pe);return Y}function Rc(e){var t=e.length;return t?e[_a(0,t-1)]:r}function Fm(e,t){return Go(qt(e),Sr(t,0,e.length))}function Wm(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 Um(e,t,o,a){return fr(e,function(y,C,P){t(a,y,o(y),P)}),a}function kc(e,t){return e&&Bn(t,xt(t),e)}function zm(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=se(a),C=e==null;++o<a;)y[o]=C?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 vn(e,t,o,a,y,C){var P,Y=t&N,H=t&k,pe=t&L;if(o&&(P=y?o(e,a,y,C):o(e)),P!==r)return P;if(!ft(e))return e;var ge=Fe(e);if(ge){if(P=Rv(e),!Y)return qt(e,P)}else{var xe=Pt(e),Ee=xe==j||xe==K;if(gr(e))return rf(e,Y);if(xe==Se||xe==ee||Ee&&!y){if(P=H||Ee?{}:Cf(e),!Y)return H?bv(e,zm(P,e)):wv(e,kc(P,e))}else{if(!st[xe])return y?e:{};P=kv(e,xe,Y)}}C||(C=new Tn);var Le=C.get(e);if(Le)return Le;C.set(e,P),Jf(e)?e.forEach(function(Be){P.add(vn(Be,t,o,Be,e,C))}):Zf(e)&&e.forEach(function(Be,He){P.set(He,vn(Be,t,o,He,e,C))});var $e=pe?H?Pa:Ta:H?Gt:xt,Ue=ge?r:$e(e);return pn(Ue||e,function(Be,He){Ue&&(He=Be,Be=e[He]),Di(P,He,vn(Be,t,o,He,e,C))}),P}function qm(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],C=t[y],P=e[y];if(P===r&&!(y in e)||!C(P))return!1}return!0}function Nc(e,t,o){if(typeof e!="function")throw new gn(g);return ki(function(){e.apply(r,o)},t)}function Oi(e,t,o,a){var y=-1,C=vo,P=!0,Y=e.length,H=[],pe=t.length;if(!Y)return H;o&&(t=ut(t,Jt(o))),a?(C=Zs,P=!1):t.length>=u&&(C=wi,P=!1,t=new Cr(t));e:for(;++y<Y;){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;H.push(ge)}else C(t,xe,a)||H.push(ge)}return H}var fr=uf($n),Ic=uf(ha,!0);function Hm(e,t){var o=!0;return fr(e,function(a,y,C){return o=!!t(a,y,C),o}),o}function No(e,t,o){for(var a=-1,y=e.length;++a<y;){var C=e[a],P=t(C);if(P!=null&&(Y===r?P===P&&!en(P):o(P,Y)))var Y=P,H=C}return H}function Gm(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,C){t(a,y,C)&&o.push(a)}),o}function Ot(e,t,o,a,y){var C=-1,P=e.length;for(o||(o=Nv),y||(y=[]);++C<P;){var Y=e[C];t>0&&o(Y)?t>1?Ot(Y,t-1,o,a,y):lr(y,Y):a||(y[y.length]=Y)}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?De:re:br&&br in it(e)?Tv(e):Wv(e)}function da(e,t){return e>t}function Vm(e,t){return e!=null&&tt.call(e,t)}function Km(e,t){return e!=null&&t in it(e)}function Zm(e,t,o){return e>=Tt(t,o)&&e<bt(t,o)}function pa(e,t,o){for(var a=o?Zs:vo,y=e[0].length,C=e.length,P=C,Y=se(C),H=1/0,pe=[];P--;){var ge=e[P];P&&t&&(ge=ut(ge,Jt(t))),H=Tt(ge.length,H),Y[P]=!o&&(t||y>=120&&ge.length>=120)?new Cr(P&&ge):r}ge=e[0];var xe=-1,Ee=Y[0];e:for(;++xe<y&&pe.length<H;){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=C;--P;){var Ue=Y[P];if(!(Ue?wi(Ue,$e):a(e[P],$e,o)))continue e}Ee&&Ee.push($e),pe.push(Le)}}return pe}function Qm(e,t,o,a){return $n(e,function(y,C,P){t(a,o(y),C,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)==ee}function Jm(e){return dt(e)&&It(e)==ve}function Xm(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:ev(e,t,o,a,Ti,y)}function ev(e,t,o,a,y,C){var P=Fe(e),Y=Fe(t),H=P?G:Pt(e),pe=Y?G:Pt(t);H=H==ee?Se:H,pe=pe==ee?Se:pe;var ge=H==Se,xe=pe==Se,Ee=H==pe;if(Ee&&gr(e)){if(!gr(t))return!1;P=!0,ge=!1}if(Ee&&!ge)return C||(C=new Tn),P||Jr(e)?wf(e,t,o,a,y,C):Ov(e,t,H,o,a,y,C);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 C||(C=new Tn),y(Ue,Be,o,a,C)}}return Ee?(C||(C=new Tn),Ev(e,t,o,a,y,C)):!1}function tv(e){return dt(e)&&Pt(e)==W}function ga(e,t,o,a){var y=o.length,C=y,P=!a;if(e==null)return!C;for(e=it(e);y--;){var Y=o[y];if(P&&Y[2]?Y[1]!==e[Y[0]]:!(Y[0]in e))return!1}for(;++y<C;){Y=o[y];var H=Y[0],pe=e[H],ge=Y[1];if(P&&Y[2]){if(pe===r&&!(H in e))return!1}else{var xe=new Tn;if(a)var Ee=a(pe,ge,H,e,t,xe);if(!(Ee===r?Ti(ge,pe,I|B,a,xe):Ee))return!1}}return!0}function Fc(e){if(!ft(e)||$v(e))return!1;var t=Zn(e)?tm:ct;return t.test(Or(e))}function nv(e){return dt(e)&&It(e)==_}function rv(e){return dt(e)&&Pt(e)==R}function iv(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 ma(e){if(!Ri(e))return am(e);var t=[];for(var o in it(e))tt.call(e,o)&&o!="constructor"&&t.push(o);return t}function ov(e){if(!ft(e))return Fv(e);var t=Ri(e),o=[];for(var a in e)a=="constructor"&&(t||!tt.call(e,a))||o.push(a);return o}function va(e,t){return e<t}function Uc(e,t){var o=-1,a=Ht(e)?se(e.length):[];return fr(e,function(y,C,P){a[++o]=t(y,C,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|B)}}function $o(e,t,o,a,y){e!==t&&fa(t,function(C,P){if(y||(y=new Tn),ft(C))sv(e,t,P,o,$o,a,y);else{var Y=a?a(Ia(e,P),C,P+"",e,t,y):r;Y===r&&(Y=C),ua(e,P,Y)}},Gt)}function sv(e,t,o,a,y,C,P){var Y=Ia(e,o),H=Ia(t,o),pe=P.get(H);if(pe){ua(e,o,pe);return}var ge=C?C(Y,H,o+"",e,t,P):r,xe=ge===r;if(xe){var Ee=Fe(H),Le=!Ee&&gr(H),$e=!Ee&&!Le&&Jr(H);ge=H,Ee||Le||$e?Fe(Y)?ge=Y:gt(Y)?ge=qt(Y):Le?(xe=!1,ge=rf(H,!0)):$e?(xe=!1,ge=of(H,!0)):ge=[]:Li(H)||Er(H)?(ge=Y,Er(Y)?ge=th(Y):(!ft(Y)||Zn(Y))&&(ge=Cf(H))):xe=!1}xe&&(P.set(H,ge),y(ge,H,a,C,P),P.delete(H)),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(C){return Fe(C)?function(P){return Ar(P,C.length===1?C[0]:C)}:C}):t=[Vt];var a=-1;t=ut(t,Jt(Ne()));var y=Uc(e,function(C,P,Y){var H=ut(t,function(pe){return pe(C)});return{criteria:H,index:++a,value:C}});return k0(y,function(C,P){return _v(C,P,o)})}function av(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,C={};++a<y;){var P=t[a],Y=Ar(e,P);o(Y,P)&&Pi(C,dr(P,e),Y)}return C}function lv(e){return function(t){return Ar(t,e)}}function ya(e,t,o,a){var y=a?R0:Fr,C=-1,P=t.length,Y=e;for(e===t&&(t=qt(t)),o&&(Y=ut(e,Jt(o)));++C<P;)for(var H=0,pe=t[C],ge=o?o(pe):pe;(H=y(Y,ge,H,a))>-1;)Y!==e&&Oo.call(Y,H,1),Oo.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!==C){var C=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 uv(e,t,o,a){for(var y=-1,C=bt(To((t-e)/(o||1)),0),P=se(C);C--;)P[a?C:++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 cv(e){return Rc(Xr(e))}function fv(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,C=t.length,P=C-1,Y=e;Y!=null&&++y<C;){var H=jn(t[y]),pe=o;if(H==="__proto__"||H==="constructor"||H==="prototype")return e;if(y!=P){var ge=Y[H];pe=a?a(ge,H,Y):r,pe===r&&(pe=ft(ge)?ge:Kn(t[y+1])?[]:{})}Di(Y,H,pe),Y=Y[H]}return e}var Zc=Mo?function(e,t){return Mo.set(e,t),e}:Vt,hv=Eo?function(e,t){return Eo(e,"toString",{configurable:!0,enumerable:!1,value:Ga(t),writable:!0})}:Vt;function dv(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 C=se(y);++a<y;)C[a]=e[a+t];return C}function pv(e,t){var o;return fr(e,function(a,y,C){return o=t(a,y,C),!o}),!!o}function Bo(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=$){for(;a<y;){var C=a+y>>>1,P=e[C];P!==null&&!en(P)&&(o?P<=t:P<t)?a=C+1:y=C}return y}return ba(e,t,Vt,o)}function ba(e,t,o,a){var y=0,C=e==null?0:e.length;if(C===0)return 0;t=o(t);for(var P=t!==t,Y=t===null,H=en(t),pe=t===r;y<C;){var ge=Po((y+C)/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):Y?Be=$e&&Ee&&(a||!Le):H?Be=$e&&Ee&&!Le&&(a||!Ue):Le||Ue?Be=!1:Be=a?xe<=t:xe<t;Be?y=ge+1:C=ge}return Tt(C,b)}function Qc(e,t){for(var o=-1,a=e.length,y=0,C=[];++o<a;){var P=e[o],Y=t?t(P):P;if(!o||!Pn(Y,H)){var H=Y;C[y++]=P===0?0:P}}return C}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==-m?"-0":t}function hr(e,t,o){var a=-1,y=vo,C=e.length,P=!0,Y=[],H=Y;if(o)P=!1,y=Zs;else if(C>=u){var pe=t?null:Av(e);if(pe)return _o(pe);P=!1,y=wi,H=new Cr}else H=t?[]:Y;e:for(;++a<C;){var ge=e[a],xe=t?t(ge):ge;if(ge=o||ge!==0?ge:0,P&&xe===xe){for(var Ee=H.length;Ee--;)if(H[Ee]===xe)continue e;t&&H.push(xe),Y.push(ge)}else y(H,xe,o)||(H!==Y&&H.push(xe),Y.push(ge))}return Y}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,C=a?y:-1;(a?C--:++C<y)&&t(e[C],C,e););return o?yn(e,a?0:C,a?C+1:y):yn(e,a?C+1:0,a?y:C)}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,C=se(a);++y<a;)for(var P=e[y],Y=-1;++Y<a;)Y!=y&&(C[y]=Oi(C[y]||P,e[Y],t,o));return hr(Ot(C,1),t,o)}function tf(e,t,o){for(var a=-1,y=e.length,C=t.length,P={};++a<y;){var Y=a<C?t[a]:r;o(P,e[a],Y)}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 gv=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=nm||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 mv(e,t){var o=t?Da(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function vv(e){var t=new e.constructor(e.source,hn.exec(e));return t.lastIndex=e.lastIndex,t}function yv(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,C=en(e),P=t!==r,Y=t===null,H=t===t,pe=en(t);if(!Y&&!pe&&!C&&e>t||C&&P&&H&&!Y&&!pe||a&&P&&H||!o&&H||!y)return 1;if(!a&&!C&&!pe&&e<t||pe&&o&&y&&!a&&!C||Y&&o&&y||!P&&y||!H)return-1}return 0}function _v(e,t,o){for(var a=-1,y=e.criteria,C=t.criteria,P=y.length,Y=o.length;++a<P;){var H=sf(y[a],C[a]);if(H){if(a>=Y)return H;var pe=o[a];return H*(pe=="desc"?-1:1)}}return e.index-t.index}function af(e,t,o,a){for(var y=-1,C=e.length,P=o.length,Y=-1,H=t.length,pe=bt(C-P,0),ge=se(H+pe),xe=!a;++Y<H;)ge[Y]=t[Y];for(;++y<P;)(xe||y<C)&&(ge[o[y]]=e[y]);for(;pe--;)ge[Y++]=e[y++];return ge}function lf(e,t,o,a){for(var y=-1,C=e.length,P=-1,Y=o.length,H=-1,pe=t.length,ge=bt(C-Y,0),xe=se(ge+pe),Ee=!a;++y<ge;)xe[y]=e[y];for(var Le=y;++H<pe;)xe[Le+H]=t[H];for(;++P<Y;)(Ee||y<C)&&(xe[Le+o[P]]=e[y++]);return xe}function qt(e,t){var o=-1,a=e.length;for(t||(t=se(a));++o<a;)t[o]=e[o];return t}function Bn(e,t,o,a){var y=!o;o||(o={});for(var C=-1,P=t.length;++C<P;){var Y=t[C],H=a?a(o[Y],e[Y],Y,o,e):r;H===r&&(H=e[Y]),y?Hn(o,Y,H):Di(o,Y,H)}return o}function wv(e,t){return Bn(e,ka(e),t)}function bv(e,t){return Bn(e,bf(e),t)}function Yo(e,t){return function(o,a){var y=Fe(o)?D0:Um,C=t?t():{};return y(o,e,Ne(a,2),C)}}function Kr(e){return qe(function(t,o){var a=-1,y=o.length,C=y>1?o[y-1]:r,P=y>2?o[2]:r;for(C=e.length>3&&typeof C=="function"?(y--,C):r,P&&$t(o[0],o[1],P)&&(C=y<3?r:C,y=1),t=it(t);++a<y;){var Y=o[a];Y&&e(t,Y,a,C)}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,C=t?y:-1,P=it(o);(t?C--:++C<y)&&a(P[C],C,P)!==!1;);return o}}function cf(e){return function(t,o,a){for(var y=-1,C=it(t),P=a(t),Y=P.length;Y--;){var H=P[e?Y:++y];if(o(C[H],H,C)===!1)break}return t}}function xv(e,t,o){var a=t&Z,y=Mi(e);function C(){var P=this&&this!==Dt&&this instanceof C?y:e;return P.apply(a?o:this,arguments)}return C}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 Cv(e,t,o){var a=Mi(e);function y(){for(var C=arguments.length,P=se(C),Y=C,H=Qr(y);Y--;)P[Y]=arguments[Y];var pe=C<3&&P[0]!==H&&P[C-1]!==H?[]:ur(P,H);if(C-=pe.length,C<o)return mf(e,t,Fo,y.placeholder,r,P,pe,r,r,o-C);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 C=Ne(o,3);t=xt(t),o=function(Y){return C(y[Y],Y,y)}}var P=e(t,o,a);return P>-1?y[C?t[P]:P]:r}}function df(e){return Vn(function(t){var o=t.length,a=o,y=mn.prototype.thru;for(e&&t.reverse();a--;){var C=t[a];if(typeof C!="function")throw new gn(g);if(y&&!P&&qo(C)=="wrapper")var P=new mn([],!0)}for(a=P?a:o;++a<o;){C=t[a];var Y=qo(C),H=Y=="wrapper"?Ma(C):r;H&&Na(H[0])&&H[1]==(J|oe|Q|te)&&!H[4].length&&H[9]==1?P=P[qo(H[0])].apply(P,H[3]):P=C.length==1&&Na(C)?P[Y]():P.thru(C)}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,C,P,Y,H,pe){var ge=t&J,xe=t&Z,Ee=t&ae,Le=t&(oe|he),$e=t&de,Ue=Ee?r:Mi(e);function Be(){for(var He=arguments.length,Ke=se(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)),C&&(Ke=lf(Ke,C,P,Le)),He-=nn,Le&&He<pe){var mt=ur(Ke,Bt);return mf(e,t,Fo,Be.placeholder,o,Ke,mt,Y,H,pe-He)}var Mn=xe?o:this,Jn=Ee?Mn[e]:e;return He=Ke.length,Y?Ke=Uv(Ke,Y):$e&&He>1&&Ke.reverse(),ge&&H<He&&(Ke.length=H),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 Qm(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 Sv(e,t,o,a){var y=t&Z,C=Mi(e);function P(){for(var Y=-1,H=arguments.length,pe=-1,ge=a.length,xe=se(ge+H),Ee=this&&this!==Dt&&this instanceof P?C:e;++pe<ge;)xe[pe]=a[pe];for(;H--;)xe[pe++]=arguments[++Y];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),uv(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 mf(e,t,o,a,y,C,P,Y,H,pe){var ge=t&oe,xe=ge?P:r,Ee=ge?r:P,Le=ge?C:r,$e=ge?r:C;t|=ge?Q:le,t&=~(ge?le:Q),t&ue||(t&=-4);var Ue=[e,t,y,Le,xe,$e,Ee,Y,H,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"),C=t(y[0]+"e"+(+y[1]+a));return y=(et(C)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Av=Hr&&1/_o(new Hr([,-0]))[1]==m?function(e){return new Hr(e)}:Za;function vf(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,C,P,Y){var H=t&ae;if(!H&&typeof e!="function")throw new gn(g);var pe=a?a.length:0;if(pe||(t&=-97,a=y=r),P=P===r?P:bt(We(P),0),Y=Y===r?Y:We(Y),pe-=y?y.length:0,t&le){var ge=a,xe=y;a=y=r}var Ee=H?r:Ma(e),Le=[e,t,o,a,y,ge,xe,C,P,Y];if(Ee&&Yv(Le,Ee),e=Le[0],t=Le[1],o=Le[2],a=Le[3],y=Le[4],Y=Le[9]=Le[9]===r?H?0:e.length:bt(Le[9]-pe,0),!Y&&t&(oe|he)&&(t&=-25),!t||t==Z)var $e=xv(e,t,o);else t==oe||t==he?$e=Cv(e,t,Y):(t==Q||t==(Z|Q))&&!y.length?$e=Sv(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,C){return ft(e)&&ft(t)&&(C.set(t,e),$o(e,t,r,_f,C),C.delete(t)),e}function Dv(e){return Li(e)?r:e}function wf(e,t,o,a,y,C){var P=o&I,Y=e.length,H=t.length;if(Y!=H&&!(P&&H>Y))return!1;var pe=C.get(e),ge=C.get(t);if(pe&&ge)return pe==t&&ge==e;var xe=-1,Ee=!0,Le=o&B?new Cr:r;for(C.set(e,t),C.set(t,e);++xe<Y;){var $e=e[xe],Ue=t[xe];if(a)var Be=P?a(Ue,$e,xe,t,e,C):a($e,Ue,xe,e,t,C);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,C)))return Le.push(Ke)})){Ee=!1;break}}else if(!($e===Ue||y($e,Ue,o,a,C))){Ee=!1;break}}return C.delete(e),C.delete(t),Ee}function Ov(e,t,o,a,y,C,P){switch(o){case Re:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ve:return!(e.byteLength!=t.byteLength||!C(new Ao(e),new Ao(t)));case X:case be:case V:return Pn(+e,+t);case me:return e.name==t.name&&e.message==t.message;case _:case z:return e==t+"";case W:var Y=ia;case R:var H=a&I;if(Y||(Y=_o),e.size!=t.size&&!H)return!1;var pe=P.get(e);if(pe)return pe==t;a|=B,P.set(e,t);var ge=wf(Y(e),Y(t),a,y,C,P);return P.delete(e),ge;case ie:if(Ai)return Ai.call(e)==Ai.call(t)}return!1}function Ev(e,t,o,a,y,C){var P=o&I,Y=Ta(e),H=Y.length,pe=Ta(t),ge=pe.length;if(H!=ge&&!P)return!1;for(var xe=H;xe--;){var Ee=Y[xe];if(!(P?Ee in t:tt.call(t,Ee)))return!1}var Le=C.get(e),$e=C.get(t);if(Le&&$e)return Le==t&&$e==e;var Ue=!0;C.set(e,t),C.set(t,e);for(var Be=P;++xe<H;){Ee=Y[xe];var He=e[Ee],Ke=t[Ee];if(a)var tn=P?a(Ke,He,Ee,t,e,C):a(He,Ke,Ee,e,t,C);if(!(tn===r?He===Ke||y(He,Ke,o,a,C):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 C.delete(e),C.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],C=y.func;if(C==null||C==e)return y.name}return t}function Qr(e){var t=tt.call(x,"placeholder")?x:e;return t.placeholder}function Ne(){var e=x.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 Iv(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 Tv(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 fm:return Re;case hm:return W;case dm:return l;case pm:return R;case gm:return Ce}return t});function Pv(e,t,o){for(var a=-1,y=o.length;++a<y;){var C=o[a],P=C.size;switch(C.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 Mv(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,C=!1;++a<y;){var P=jn(t[a]);if(!(C=e!=null&&o(e,P)))break;e=e[P]}return C||++a!=y?C:(y=e==null?0:e.length,!!y&&Xo(y)&&Kn(P,y)&&(Fe(e)||Er(e)))}function Rv(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 kv(e,t,o){var a=e.constructor;switch(t){case ve:return Da(e);case X:case be:return new a(+e);case Re:return mv(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 z:return new a(e);case _:return vv(e);case R:return new a;case ie:return yv(e)}}function Lv(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 Nv(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 Iv(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 $v(e){return!!Cc&&Cc in e}var Bv=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 jv(e){var t=Qo(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Yv(e,t){var o=e[1],a=t[1],y=o|a,x=y<(K|se|Q),P=a==Q&&o==re||a==Q&&o==X&&e[7].length<=t[8]||a==(Q|X)&&t[7].length<=t[8]&&o==re;if(!(x||P))return e;a&K&&(e[2]=t[2],y|=o&K?0:le);var F=t[3];if(F){var H=e[3];e[3]=H?af(H,F,t[4]):F,e[4]=H?ur(e[3],E):t[4]}return F=t[5],F&&(H=e[5],e[5]=H?lf(H,F,t[6]):F,e[6]=H?ur(e[5],E):t[6]),F=t[7],F&&(e[7]=F),a&Q&&(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 Fv(e){var t=[];if(e!=null)for(var o in it(e))t.push(o);return t}function Wv(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=oe(x);++y<x;)P[y]=a[t+y];y=-1;for(var F=oe(t+1);++y<t;)F[y]=a[y];return F[t]=o(P),Qt(e,this,F)}}function Of(e,t){return t.length<2?e:Ar(e,yn(t,0,-1))}function Uv(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=im||function(e,t){return Dt.setTimeout(e,t)},$a=Pf(hv);function Tf(e,t,o){var a=t+"";return $a(e,Lv(a,zv(Mv(a),o)))}function Pf(e){var t=0,o=0;return function(){var a=lm(),y=Oe-(a-o);if(o=a,y>0){if(++t>=Ae)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=jv(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==-m?"-0":t}function Or(e){if(e!=null){try{return xo.call(e)}catch{}try{return e+""}catch{}}return""}function zv(e,t){return pn(B,function(o){var a="_."+o[0];t&o[1]&&!vo(e,a)&&e.push(a)}),e.sort()}function Rf(e){if(e instanceof Ge)return e.clone();var t=new mn(e.__wrapped__,e.__chain__);return t.__actions__=qt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qv(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=oe(To(a/t));y<a;)P[x++]=yn(e,y,y+=t);return P}function Hv(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 Gv(){var e=arguments.length;if(!e)return[];for(var t=oe(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return lr(Fe(o)?qt(o):[o],Ot(t,1))}var Vv=qe(function(e,t){return gt(e)?Oi(e,Ot(t,1,gt,!0)):[]}),Kv=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)):[]}),Zv=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 Qv(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 Jv(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 Xv(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),Gm(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,m):[]}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?"":sm.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 my=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 vy(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:cm.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 mn(a,this.__chain__).thru(function(x){return t&&!x.length&&x.push(r),x}))});function Vy(){return jf(this)}function Ky(){return new mn(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 mn(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:Hm;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),m)}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)?oe(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:vc,y=arguments.length<3;return a(e,Ne(t,4),o,y,fr)}function m_(e,t,o){var a=Fe(e)?E0:vc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Ic)}function v_(e,t){var o=Fe(e)?ar:$c;return o(e,Jo(Ne(t,3)))}function y_(e){var t=Fe(e)?Rc:cv;return t(e)}function __(e,t,o){(o?$t(e,t,o):t===r)?t=1:t=We(t);var a=Fe(e)?Fm:fv;return a(e,t)}function w_(e){var t=Fe(e)?Wm:dv;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==U||t==R?e.size:ma(e).length}function x_(e,t,o){var a=Fe(e)?Js:pv;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=rm||function(){return Dt.Date.now()};function S_(e,t){if(typeof t!="function")throw new gn(g);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,Q,r,r,r,r,t)}function Uf(e,t){var o;if(typeof t!="function")throw new gn(g);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=K;if(o.length){var y=ur(o,Qr(Ya));a|=Z}return Gn(e,a,t,o,y)}),zf=qe(function(e,t,o){var a=K|se;if(o.length){var y=ur(o,Qr(zf));a|=Z}return Gn(t,a,e,o,y)});function qf(e,t,o){t=o?r:t;var a=Gn(e,re,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,he,r,r,r,r,r,t);return a.placeholder=Hf.placeholder,a}function Gf(e,t,o){var a,y,x,P,F,H,pe=0,ge=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new gn(g);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(mt){var Mn=a,Jn=y;return a=y=r,pe=mt,P=e.apply(Jn,Mn),P}function $e(mt){return pe=mt,F=ki(He,t),ge?Le(mt):P}function Ue(mt){var Mn=mt-H,Jn=mt-pe,hh=t-Mn;return xe?Tt(hh,x-Jn):hh}function Be(mt){var Mn=mt-H,Jn=mt-pe;return H===r||Mn>=t||Mn<0||xe&&Jn>=x}function He(){var mt=Zo();if(Be(mt))return Ke(mt);F=ki(He,Ue(mt))}function Ke(mt){return F=r,Ee&&a?Le(mt):(a=y=r,P)}function tn(){F!==r&&nf(F),pe=0,a=H=y=F=r}function Bt(){return F===r?P:Ke(Zo())}function nn(){var mt=Zo(),Mn=Be(mt);if(a=arguments,y=this,H=mt,Mn){if(F===r)return $e(H);if(xe)return nf(F),F=ki(He,t),Le(H)}return F===r&&(F=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(g);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(g);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_=gv(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,Z,r,t,o)}),Vf=qe(function(e,t){var o=ur(t,Qr(Vf));return Gn(e,ae,r,t,o)}),P_=Vn(function(e,t){return Gn(e,X,r,r,r,t)});function M_(e,t){if(typeof e!="function")throw new gn(g);return t=t===r?t:We(t),qe(e,t)}function R_(e,t){if(typeof e!="function")throw new gn(g);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(g);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 vn(e,L)}function B_(e,t){return t=typeof t=="function"?t:r,vn(e,L,t)}function j_(e){return vn(e,N|L)}function Y_(e,t){return t=typeof t=="function"?t:r,vn(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=oe.isArray,z_=ac?Jt(ac):Jm;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)==J}var gr=om||Ja,H_=lc?Jt(lc):Xm;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==U||t==R)return!e.size;if(Ri(e))return!ma(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==me||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==Y||t==V||t==we||t==f}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):tv;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(Bv(e))throw new Ye(p);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)==G}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):nv;function i2(e){return Kf(e)&&e>=-d&&e<=d}var Jf=fc?Jt(fc):rv;function es(e){return typeof e=="string"||!Fe(e)&&dt(e)&&It(e)==z}function en(e){return typeof e=="symbol"||dt(e)&&It(e)==te}var Jr=hc?Jt(hc):iv;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(va),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==U?ia:t==R?_o:Xr;return o(e)}function Qn(e){if(!e)return e===0?e:0;if(e=wn(e),e===m||e===-m){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,v):0}function wn(e){if(typeof e=="number")return e;if(en(e))return u;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)?u:+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),F=-1,H=P.length;++F<H;){var pe=P[F],ge=e[pe];(ge===r||Pn(ge,qr[pe])&&!tt.call(e,pe))&&(e[pe]=x[pe])}return e}),m2=qe(function(e){return e.push(r,_f),Qt(rh,r,e)});function v2(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,Vm)}function qa(e,t){return e!=null&&xf(e,t,Km)}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):ma(e)}function Gt(e){return Ht(e)?Mc(e,!0):ov(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=vn(o,N|k|L,Dv));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?{}:av(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=vf(xt),sh=vf(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,F,H){return t(o,P,F,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,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),Zm(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),um(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?v: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),F,H,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&&(
|
|
126
|
+
`)}function Nv(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 Iv(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=x[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 $v(e){return!!Cc&&Cc in e}var Bv=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 jv(e){var t=Qo(e,function(a){return o.size===A&&o.clear(),a}),o=t.cache;return t}function Yv(e,t){var o=e[1],a=t[1],y=o|a,C=y<(Z|ae|J),P=a==J&&o==oe||a==J&&o==te&&e[7].length<=t[8]||a==(J|te)&&t[7].length<=t[8]&&o==oe;if(!(C||P))return e;a&Z&&(e[2]=t[2],y|=o&Z?0:ue);var Y=t[3];if(Y){var H=e[3];e[3]=H?af(H,Y,t[4]):Y,e[4]=H?ur(e[3],E):t[4]}return Y=t[5],Y&&(H=e[5],e[5]=H?lf(H,Y,t[6]):Y,e[6]=H?ur(e[5],E):t[6]),Y=t[7],Y&&(e[7]=Y),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 Fv(e){var t=[];if(e!=null)for(var o in it(e))t.push(o);return t}function Wv(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,C=bt(a.length-t,0),P=se(C);++y<C;)P[y]=a[t+y];y=-1;for(var Y=se(t+1);++y<t;)Y[y]=a[y];return Y[t]=o(P),Qt(e,this,Y)}}function Of(e,t){return t.length<2?e:Ar(e,yn(t,0,-1))}function Uv(e,t){for(var o=e.length,a=Tt(t.length,o),y=qt(e);a--;){var C=t[a];e[a]=Kn(C,o)?y[C]:r}return e}function Ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ef=Pf(Zc),ki=im||function(e,t){return Dt.setTimeout(e,t)},$a=Pf(hv);function Tf(e,t,o){var a=t+"";return $a(e,Lv(a,zv(Mv(a),o)))}function Pf(e){var t=0,o=0;return function(){var a=lm(),y=Oe-(a-o);if(o=a,y>0){if(++t>=Ae)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 C=_a(o,y),P=e[C];e[C]=e[o],e[o]=P}return e.length=t,e}var Mf=jv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kt,function(o,a,y,C){t.push(y?C.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==-m?"-0":t}function Or(e){if(e!=null){try{return xo.call(e)}catch{}try{return e+""}catch{}}return""}function zv(e,t){return pn(U,function(o){var a="_."+o[0];t&o[1]&&!vo(e,a)&&e.push(a)}),e.sort()}function Rf(e){if(e instanceof Ge)return e.clone();var t=new mn(e.__wrapped__,e.__chain__);return t.__actions__=qt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function qv(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,C=0,P=se(To(a/t));y<a;)P[C++]=yn(e,y,y+=t);return P}function Hv(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var C=e[t];C&&(y[a++]=C)}return y}function Gv(){var e=arguments.length;if(!e)return[];for(var t=se(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return lr(Fe(o)?qt(o):[o],Ot(t,1))}var Vv=qe(function(e,t){return gt(e)?Oi(e,Ot(t,1,gt,!0)):[]}),Kv=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)):[]}),Zv=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 Qv(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 Jv(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 Xv(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),Gm(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,m):[]}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?"":sm.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 my=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 vy(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],C=e.length;for(t=Ne(t,3);++a<C;){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:cm.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=x(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(C){return ca(C,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 mn(a,this.__chain__).thru(function(C){return t&&!C.length&&C.push(r),C}))});function Vy(){return jf(this)}function Ky(){return new mn(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 mn(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:Hm;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),m)}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",C=Ht(e)?se(e.length):[];return fr(e,function(P){C[++a]=y?Qt(t,P,o):Ei(P,t,o)}),C}),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:vc,y=arguments.length<3;return a(e,Ne(t,4),o,y,fr)}function m_(e,t,o){var a=Fe(e)?E0:vc,y=arguments.length<3;return a(e,Ne(t,4),o,y,Ic)}function v_(e,t){var o=Fe(e)?ar:$c;return o(e,Jo(Ne(t,3)))}function y_(e){var t=Fe(e)?Rc:cv;return t(e)}function __(e,t,o){(o?$t(e,t,o):t===r)?t=1:t=We(t);var a=Fe(e)?Fm:fv;return a(e,t)}function w_(e){var t=Fe(e)?Wm:dv;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:ma(e).length}function x_(e,t,o){var a=Fe(e)?Js:pv;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=rm||function(){return Dt.Date.now()};function S_(e,t){if(typeof t!="function")throw new gn(g);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(g);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=Z;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=Z|ae;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,oe,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,he,r,r,r,r,r,t);return a.placeholder=Hf.placeholder,a}function Gf(e,t,o){var a,y,C,P,Y,H,pe=0,ge=!1,xe=!1,Ee=!0;if(typeof e!="function")throw new gn(g);t=wn(t)||0,ft(o)&&(ge=!!o.leading,xe="maxWait"in o,C=xe?bt(wn(o.maxWait)||0,t):C,Ee="trailing"in o?!!o.trailing:Ee);function Le(mt){var Mn=a,Jn=y;return a=y=r,pe=mt,P=e.apply(Jn,Mn),P}function $e(mt){return pe=mt,Y=ki(He,t),ge?Le(mt):P}function Ue(mt){var Mn=mt-H,Jn=mt-pe,hh=t-Mn;return xe?Tt(hh,C-Jn):hh}function Be(mt){var Mn=mt-H,Jn=mt-pe;return H===r||Mn>=t||Mn<0||xe&&Jn>=C}function He(){var mt=Zo();if(Be(mt))return Ke(mt);Y=ki(He,Ue(mt))}function Ke(mt){return Y=r,Ee&&a?Le(mt):(a=y=r,P)}function tn(){Y!==r&&nf(Y),pe=0,a=H=y=Y=r}function Bt(){return Y===r?P:Ke(Zo())}function nn(){var mt=Zo(),Mn=Be(mt);if(a=arguments,y=this,H=mt,Mn){if(Y===r)return $e(H);if(xe)return nf(Y),Y=ki(He,t),Le(H)}return Y===r&&(Y=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(g);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],C=o.cache;if(C.has(y))return C.get(y);var P=e.apply(this,a);return o.cache=C.set(y,P)||C,P};return o.cache=new(Qo.Cache||qn),o}Qo.Cache=qn;function Jo(e){if(typeof e!="function")throw new gn(g);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_=gv(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,C=Tt(a.length,o);++y<C;)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,le,r,t,o)}),P_=Vn(function(e,t){return Gn(e,te,r,r,r,t)});function M_(e,t){if(typeof e!="function")throw new gn(g);return t=t===r?t:We(t),qe(e,t)}function R_(e,t){if(typeof e!="function")throw new gn(g);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(g);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 vn(e,L)}function B_(e,t){return t=typeof t=="function"?t:r,vn(e,L,t)}function j_(e){return vn(e,N|L)}function Y_(e,t){return t=typeof t=="function"?t:r,vn(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=se.isArray,z_=ac?Jt(ac):Jm;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=om||Ja,H_=lc?Jt(lc):Xm;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!ma(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==me||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==j||t==K||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):tv;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(Bv(e))throw new Ye(p);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):nv;function i2(e){return Kf(e)&&e>=-d&&e<=d}var Jf=fc?Jt(fc):rv;function es(e){return typeof e=="string"||!Fe(e)&&dt(e)&&It(e)==z}function en(e){return typeof e=="symbol"||dt(e)&&It(e)==ie}var Jr=hc?Jt(hc):iv;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(va),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===m||e===-m){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,v):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 C=t[o],P=Gt(C),Y=-1,H=P.length;++Y<H;){var pe=P[Y],ge=e[pe];(ge===r||Pn(ge,qr[pe])&&!tt.call(e,pe))&&(e[pe]=C[pe])}return e}),m2=qe(function(e){return e.push(r,_f),Qt(rh,r,e)});function v2(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,Vm)}function qa(e,t){return e!=null&&xf(e,t,Km)}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):ma(e)}function Gt(e){return Ht(e)?Mc(e,!0):ov(e)}function T2(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,C){Hn(o,t(a,y,C),a)}),o}function P2(e,t){var o={};return t=Ne(t,3),$n(e,function(a,y,C){Hn(o,y,t(a,y,C))}),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(C){return C=dr(C,e),a||(a=C.length>1),C}),Bn(e,Pa(e),o),a&&(o=vn(o,N|k|L,Dv));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?{}:av(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 C=e==null?r:e[jn(t[a])];C===r&&(a=y,C=o),e=Zn(C)?C.call(e):C}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=vf(xt),sh=vf(Gt);function B2(e,t,o){var a=Fe(e),y=a||gr(e)||Jr(e);if(t=Ne(t,4),o==null){var C=e&&e.constructor;y?o=a?new C:[]:ft(e)?o=Zn(C)?Vr(Do(e)):{}:o={}}return(y?pn:$n)(e,function(P,Y,H){return t(o,P,Y,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,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),Zm(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),um(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?v: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=x.templateSettings;o&&$t(e,t,o)&&(t=r),e=et(e),t=ts({},t,a,yf);var y=ts({},t.imports,a.imports,yf),C=xt(y),P=ra(y,C),Y,H,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&&(Y=!0,xe+=`' +
|
|
128
128
|
__e(`+He+`) +
|
|
129
129
|
'`),Bt&&(H=!0,xe+=`';
|
|
130
130
|
`+Bt+`;
|
|
@@ -136,9 +136,9 @@ __p += '`),Ke&&(xe+=`' +
|
|
|
136
136
|
}
|
|
137
137
|
`;else if(cn.test($e))throw new Ye(h);xe=(H?xe.replace(St,""):xe).replace(Dn,"$1").replace(At,"$1;"),xe="function("+($e||"obj")+`) {
|
|
138
138
|
`+($e?"":`obj || (obj = {});
|
|
139
|
-
`)+"var __t, __p = ''"+(
|
|
139
|
+
`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
|
|
140
140
|
function print() { __p += __j.call(arguments, '') }
|
|
141
141
|
`:`;
|
|
142
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=ue,a=ne;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 F=o-Ur(a);if(F<1)return a;var H=P?pr(P,0,F).join(""):e.slice(0,F);if(y===r)return H+a;if(P&&(F+=H.length-F),Ua(y)){if(e.slice(F).search(y)){var pe,ge=H;for(y.global||(y=oa(y.source,et(hn.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;H=H.slice(0,xe===r?F:xe)}}else if(e.indexOf(Xt(y),F)!=F){var Ee=H.lastIndexOf(y);Ee>-1&&(H=H.slice(0,Ee))}return H+a}function mw(e){return e=et(e),e&&yt.test(e)?e.replace(jt,q0):e}var vw=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(g);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 qm(vn(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:vn(e,N))}function Sw(e){return zc(vn(e,N))}function Aw(e,t){return qc(e,vn(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(F){var H=t[F];e[F]=H,P&&(e.prototype[F]=function(){var pe=this.__chain__;if(x||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=qt(this.__actions__);return xe.push({func:H,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return H.apply(e,lr([this.value()],arguments))})}),e}function Ew(){return Dt._===this&&(Dt._=em),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)):lv(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=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,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 mc(e,Vt)}function Kw(e,t){return mc(e,Ne(t,2))}function Zw(e){return e&&e.length?No(e,Vt,va):r}function Qw(e,t){return e&&e.length?No(e,Ne(t,2),va):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=qv,b.compact=Hv,b.concat=Gv,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=m2,b.defer=A_,b.delay=D_,b.difference=Vv,b.differenceBy=Kv,b.differenceWith=Zv,b.drop=Qv,b.dropRight=Jv,b.dropRightWhile=Xv,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=my,b.range=Lw,b.rangeRight=Nw,b.rearg=P_,b.reject=v_,b.remove=vy,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=v2,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=m_,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=wn,b.toSafeInteger=c2,b.toString=et,b.toUpper=fw,b.trim=hw,b.trimEnd=dw,b.trimStart=pw,b.truncate=gw,b.unescape=mw,b.uniqueId=Fw,b.upperCase=vw,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,v),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==T||o==O;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(v)},$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__,F=a?[1]:arguments,H=P instanceof Ge,pe=F[0],ge=H||Fe(P),xe=function(He){var Ke=y.apply(b,lr([He],F));return a&&Ee?Ke[0]:Ke};ge&&o&&typeof pe=="function"&&pe.length!=1&&(H=ge=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,$e=x&&!Ee,Ue=H&&!Le;if(!x&&ge){P=Ue?P:new Ge(this);var Be=e.apply(P,F);return Be.__actions__.push({func:Vo,args:[xe],thisArg:r}),new mn(Be,Ee)}return $e&&Ue?e.apply(this,F):(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,se).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=mm,Ge.prototype.reverse=vm,Ge.prototype.value=ym,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(43),{fields:r,onClose:s,queryKey:c,apiPath:p,id:g,steps:h}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1);let k;n[0]===Symbol.for("react.memo_cache_sentinel")?(k={},n[0]=k):k=n[0];const[L,$]=ye.useState(k),{data:j,isLoading:K}=hu(p,c,g),{mutateAsync:se,isError:le,error:re,isPending:he}=Es(p,c);let Z;n[1]!==r?(Z=new Set(r.filter(q1).map(z1)),n[1]=r,n[2]=Z):Z=n[2];let ae;n[3]!==Z?(ae=[...Z],n[3]=Z,n[4]=ae):ae=n[4];const Q=ae;let X;n[5]!==r?(X=r.reduce(U1,{}),n[5]=r,n[6]=X):X=n[6];let de;n[7]!==r?(de=r.filter(W1).reduce(Y1,{}),n[7]=r,n[8]=de):de=n[8];let ue;n[9]!==X||n[10]!==de?(ue={mode:"uncontrolled",initialValues:X,validate:de},n[9]=X,n[10]=de,n[11]=ue):ue=n[11];const ne=Xa.useForm(ue);let Ae;n[12]!==j||n[13]!==r||n[14]!==ne?(Ae=()=>{if(j){const w=r.reduce((u,v)=>{const C=v.id;return u[C]=Array.isArray(j[C])?j[C]:v.type==="boolean"?j[C]??!1:v.type==="date"?j[C]?new Date(j[C]):"":j[C]??"",u},{});ne.initialize(w),ne.setValues(w)}},n[12]=j,n[13]=r,n[14]=ne,n[15]=Ae):Ae=n[15];let Oe;n[16]!==j?(Oe=[j],n[16]=j,n[17]=Oe):Oe=n[17],ye.useEffect(Ae,Oe);let T;n[18]!==L||n[19]!==ne||n[20]!==g?(T=function(u){const v={...ne.getValues(),...L};return u.conditional&&!u.conditional(v)?null:D.jsxs(ye.Fragment,{children:[(u.type===void 0||u.type=="text")&&D.jsx(W.TextInput,{label:u.column.title,placeholder:u.placeholder??"",...ne.getInputProps(u.id),type:u.id.includes("email")?"email":void 0},ne.key(u.id)),u.type==="number"&&D.jsx(W.NumberInput,{decimalSeparator:",",label:u.column.title,placeholder:u.placeholder??"",...ne.getInputProps(u.id)},ne.key(u.id)),u.type==="date"&&D.jsx(lo,{label:u.column.title,placeholder:u.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ne.getInputProps(u.id)},ne.key(u.id)),u.type==="boolean"&&D.jsx(W.Checkbox,{mt:"md",label:u.column.title,...ne.getInputProps(u.id,{type:"checkbox"})},ne.key(u.id)),u.type==="textarea"&&D.jsx(W.Textarea,{label:u.column.title,placeholder:u.placeholder??"",...ne.getInputProps(u.id),minRows:3,autosize:!0},ne.key(u.id)),u.type==="custom"&&u.render&&u.render({...ne.getValues(),id:g},C=>{ne.setValues(C),$(I=>({...I,...C}))},N)]},u.id)},n[18]=L,n[19]=ne,n[20]=g,n[21]=T):T=n[21];const M=T;let O;n[22]!==le||n[23]!==re?.message||n[24]!==re?.name?(O=le&&D.jsx(W.Alert,{variant:"outline",color:"red",title:re?.name??"Fehler aufgetreten",mb:"lg",children:re?.message??"Fehler aufgetreten"}),n[22]=le,n[23]=re?.message,n[24]=re?.name,n[25]=O):O=n[25];let m;n[26]!==S||n[27]!==r||n[28]!==ne||n[29]!==E||n[30]!==g||n[31]!==K||n[32]!==he||n[33]!==le||n[34]!==s||n[35]!==M||n[36]!==h||n[37]!==Q||n[38]!==se?(m=K?D.jsxs(W.Stack,{gap:"md",children:[D.jsx(W.Skeleton,{height:40}),Array(r.length).fill(0).map(j1),D.jsxs(W.Group,{mt:"md",justify:"end",children:[D.jsx(W.Skeleton,{width:100,height:36}),D.jsx(W.Skeleton,{width:100,height:36})]})]}):D.jsxs("form",{onSubmit:ne.onSubmit(async w=>{await se({...w,id:g}),Q.length&&S<Q.length-1?le||A(S+1):le||(ne.setInitialValues(w),ne.reset(),s())}),children:[Q.length?D.jsx(W.Stepper,{active:S,size:"sm",children:Q.map(w=>D.jsx(W.Stepper.Step,{...h&&h[w-1]?{label:h[w-1].label}:{},children:r.filter(u=>u.step===w).map(u=>M(u))},w))}):r.map(w=>M(w)),!E&&D.jsxs(W.Group,{mt:"md",justify:"end",children:[D.jsx(W.Button,{onClick:()=>Q.length?S===0?s():A(S-1):s(),variant:"outline",children:Q.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(W.Button,{type:"submit",loading:he,children:Q.length?S===Q.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[26]=S,n[27]=r,n[28]=ne,n[29]=E,n[30]=g,n[31]=K,n[32]=he,n[33]=le,n[34]=s,n[35]=M,n[36]=h,n[37]=Q,n[38]=se,n[39]=m):m=n[39];let d;return n[40]!==O||n[41]!==m?(d=D.jsxs(D.Fragment,{children:[O,m]}),n[40]=O,n[41]=m,n[42]=d):d=n[42],d}function j1(i,n){return D.jsx(W.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:c,isError:p,error:g,isPending:h}=gu(n,i),[S,A]=ye.useState(s),[E,N]=ye.useState(!1),k=E||h;return ye.useEffect(()=>{S.length||r()},[r,S]),S.length?D.jsxs(D.Fragment,{children:[p&&g.message&&D.jsx(W.Alert,{variant:"outline",color:"red",title:g.name,children:g.message}),D.jsx(W.Text,{children:S.length===1?`Soll ${S.length} Eintrag wirklich gelöscht werden?`:`Sollen ${S.length} Einträge wirklich gelöscht werden?`}),D.jsxs(W.Group,{mt:"md",justify:"end",children:[D.jsx(W.Button,{onClick:r,variant:"outline",disabled:k,children:"Abbrechen"}),D.jsx(W.Button,{color:"red",loading:k,onClick:async()=>{N(!0);try{await Promise.all(S.map(L=>c(L.id))),A([])}finally{N(!1)}},children:"Löschen"})]})]}):D.jsx(D.Fragment,{})}function Zu(i,n){const r=bn.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[c,p]=ye.useState(s);let g;r[3]!==n?(g=A=>{p(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=g):g=r[4];const h=g;let S;return r[5]!==h||r[6]!==c?(S=[c,h],r[5]=h,r[6]=c,r[7]=S):S=r[7],S}const Qu=[10,15,20,50,100,500];function G1(i){const n=bn.c(147),{title:r,queryKey:s,connectedQueryKeys:c,apiPath:p,buttons:g,fields:h,selection:S,pagination:A,filters:E,actions:N,steps:k,defaultSort:L,createButtonText:$,queryParams:j,tabs:K,defaultTab:se,activeTab:le,onActiveTabChange:re}=i,[he,Z]=ye.useState(se||(K&&K.length>0?K[0].value:null)),ae=le!==void 0?le:he;let Q;n[0]!==le||n[1]!==re?(Q=Ze=>{le===void 0&&Z(Ze),re&&re(Ze)},n[0]=le,n[1]=re,n[2]=Q):Q=n[2];const X=Q;let de,ue;if(n[3]!==ae||n[4]!==j||n[5]!==K){const Ze=K?.find(ct=>ct.value===ae)?.queryParams||{};de={...j,...Ze},ue=de?"?"+Object.entries(de).filter(i0).map(r0).join("&"):"",n[3]=ae,n[4]=j,n[5]=K,n[6]=de,n[7]=ue}else de=n[6],ue=n[7];const ne=ue;let Ae;n[8]!==ae||n[9]!==s?(Ae=ae?[...s,ae]:s,n[8]=ae,n[9]=s,n[10]=Ae):Ae=n[10];const Oe=Ae,{data:T,isLoading:M,isError:O,isRefetching:m,refetch:d}=du(p+ne,Oe);let w;n[11]===Symbol.for("react.memo_cache_sentinel")?(w=[],n[11]=w):w=n[11];const[u,v]=ye.useState(w),{queryClient:C}=tr();let I;n[12]!==T||n[13]!==c||n[14]!==E||n[15]!==C?(I=()=>{if(!(!T||!Array.isArray(T))){if(c?.forEach(Ze=>C.invalidateQueries({queryKey:Ze})),!E||E.length===0){v(T);return}v(T.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]=T,n[13]=c,n[14]=E,n[15]=C,n[16]=I):I=n[16];let B;n[17]!==T||n[18]!==de||n[19]!==E?(B=[T,E,de],n[17]=T,n[18]=de,n[19]=E,n[20]=B):B=n[20],ye.useEffect(I,B);const ie=L?.field??h[0].id,ce=L?.direction??"desc";let we;n[21]!==ie||n[22]!==ce?(we={columnAccessor:ie,direction:ce},n[21]=ie,n[22]=ce,n[23]=we):we=n[23];const[J,be]=ye.useState(we);let _e;n[24]!==u||n[25]!==L?.direction||n[26]!==L?.field||n[27]!==h[0]?(_e=()=>{const Ze=Ku.sortBy(u,L?.field??h[0].id);return L?.direction==="asc"?Ze:Ze.reverse()},n[24]=u,n[25]=L?.direction,n[26]=L?.field,n[27]=h[0],n[28]=_e):_e=n[28];const[me,Y]=ye.useState(_e);let V;n[29]!==u||n[30]!==J.columnAccessor||n[31]!==J.direction?(V=()=>{const Ze=Ku.sortBy(u,J.columnAccessor);Y(J.direction==="desc"?Ze.reverse():Ze)},n[29]=u,n[30]=J.columnAccessor,n[31]=J.direction,n[32]=V):V=n[32];let U;n[33]!==u||n[34]!==J?(U=[J,u],n[33]=u,n[34]=J,n[35]=U):U=n[35],ye.useEffect(V,U);const[G,ee]=Zu(Qu[1],"mantine-table-page-size"),[Se,l]=ye.useState(1);let f;n[36]!==G||n[37]!==A||n[38]!==me?(f=A?me.slice(0,G):me,n[36]=G,n[37]=A,n[38]=me,n[39]=f):f=n[39];const[_,R]=ye.useState(f);let z;n[40]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{l(1)},n[40]=z):z=n[40];let te;n[41]!==G?(te=[G],n[41]=G,n[42]=te):te=n[42],ye.useEffect(z,te);let De,Ce;n[43]!==Se||n[44]!==G||n[45]!==A||n[46]!==me?(De=()=>{if(A){const Ze=(Se-1)*G,ct=Ze+G;R(me.slice(Ze,ct))}else R(me)},Ce=[Se,me,A,G],n[43]=Se,n[44]=G,n[45]=A,n[46]=me,n[47]=De,n[48]=Ce):(De=n[47],Ce=n[48]),ye.useEffect(De,Ce);let Pe;n[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=[],n[49]=Pe):Pe=n[49];const[ve,Re]=ye.useState(Pe);let Ie;n[50]!==ve||n[51]!==S||n[52]!==me?(Ie=()=>{S&&Re(me.filter(Ze=>ve.some(ct=>ct.id===Ze.id)))},n[50]=ve,n[51]=S,n[52]=me,n[53]=Ie):Ie=n[53];let ke;n[54]!==me?(ke=[me],n[54]=me,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]!==ae?(Qe=[ae],n[57]=ae,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"?D.jsx(W.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=D.jsx(ei.IconRefresh,{}),n[63]=On):On=n[63];let yt;n[64]!==jt?(yt=D.jsx(W.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]!==ve||n[69]!==S?(an=(h.some(n0)||S)&&D.jsxs(W.Menu,{shadow:"md",children:[D.jsx(W.Menu.Target,{children:D.jsx(W.Button,{variant:"outline",rightSection:D.jsx(ei.IconCaretDownFilled,{size:14}),disabled:!ve.length,children:"Aktionen"})}),D.jsxs(W.Menu.Dropdown,{children:[h.find(t0)&&D.jsx(W.Menu.Item,{leftSection:D.jsx(ei.IconPencil,{size:14}),onClick:()=>rt(!0),disabled:ve.length!==1,children:"Bearbeiten"}),(N??[]).map((Ze,ct)=>ye.createElement(W.Menu.Item,{...Ze.icon&&{leftSection:Ze.icon},key:`custom_action_${ct}`,onClick:()=>Ze.onClick(ve)},Ze.label)),h.find(e0)&&D.jsx(W.Menu.Item,{leftSection:D.jsx(ei.IconTrash,{size:14}),onClick:()=>St(!0),color:"red",children:"Löschen"})]})]}),n[66]=N,n[67]=h,n[68]=ve,n[69]=S,n[70]=an):an=n[70];let ln;n[71]!==$||n[72]!==h||n[73]!==M?(ln=h.find(X1)&&D.jsx(W.Button,{onClick:()=>Et(!0),disabled:M,children:$??"Erstellen"}),n[71]=$,n[72]=h,n[73]=M,n[74]=ln):ln=n[74];let Yt;n[75]!==g||n[76]!==yt||n[77]!==an||n[78]!==ln?(Yt=D.jsxs(W.Group,{align:"center",gap:"xs",children:[yt,an,ln,g]}),n[75]=g,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=D.jsxs(W.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]!==ae||n[85]!==X||n[86]!==K?(Ft=K&&K.length>0&&D.jsx(W.Tabs,{value:ae,onChange:X,mt:"md",children:D.jsx(W.Tabs.List,{children:K.map(J1)})}),n[84]=ae,n[85]=X,n[86]=K,n[87]=Ft):Ft=n[87];let Wt;n[88]!==O?(Wt=O&&D.jsx(W.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:D.jsx(ei.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[88]=O,n[89]=Wt):Wt=n[89];let Kt;n[90]!==M||n[91]!==m?(Kt=(M||m)&&D.jsxs(W.Stack,{my:"md",children:[D.jsx(W.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[90]=M,n[91]=m,n[92]=Kt):Kt=n[92];let Ut;n[93]!==h||n[94]!==O||n[95]!==M||n[96]!==m||n[97]!==Se||n[98]!==G||n[99]!==A||n[100]!==_||n[101]!==ve||n[102]!==S||n[103]!==ee||n[104]!==J||n[105]!==me?(Ut=!M&&!m&&D.jsx(N1,{my:"md",striped:!0,minHeight:150,fetching:O,records:_,sortStatus:J,onSortStatusChange:be,...S&&{selectedRecords:ve,onSelectedRecordsChange:Re},...A&&_.length&&{totalRecords:me.length,recordsPerPage:G,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]=O,n[95]=M,n[96]=m,n[97]=Se,n[98]=G,n[99]=A,n[100]=_,n[101]=ve,n[102]=S,n[103]=ee,n[104]=J,n[105]=me,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]!==p||n[109]!==h||n[110]!==s||n[111]!==ve[0]||n[112]!==ve.length||n[113]!==k?(Nt=ve.length>0&&D.jsx(B1,{fields:h.filter(K1),queryKey:s,apiPath:p,id:ve[0].id,onClose:()=>{rt(!1),Re([])},steps:k}),n[108]=p,n[109]=h,n[110]=s,n[111]=ve[0],n[112]=ve.length,n[113]=k,n[114]=Nt):Nt=n[114];let Zt;n[115]!==at||n[116]!==Nt||n[117]!==pt?(Zt=D.jsx(W.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]!==p||n[120]!==An||n[121]!==s||n[122]!==ve||n[123]!==r?(Rn=ve.length>0&&D.jsx(W.Modal,{opened:An,onClose:()=>{St(!1),Re([])},title:r??"Löschen",children:D.jsx(H1,{onClose:()=>{St(!1),Re([])},queryKey:s,apiPath:p,selectedRecords:ve})}),n[119]=p,n[120]=An,n[121]=s,n[122]=ve,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]!==p||n[130]!==s||n[131]!==k||n[132]!==kn?(fn=D.jsx(Yg,{queryKey:s,apiPath:p,onClose:cn,fields:kn,steps:k}),n[129]=p,n[130]=s,n[131]=k,n[132]=kn,n[133]=fn):fn=n[133];let hn;n[134]!==nt||n[135]!==yr||n[136]!==fn?(hn=D.jsx(W.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=D.jsxs(D.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 D.jsx(W.Skeleton,{height:35},`skeleton-${n}`)}function J1(i){return D.jsx(W.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=D.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let c;return n[2]!==r||n[3]!==s?(c=D.jsx(yl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=c):c=n[4],c}ot.DataTable=o0,ot.DataTableProvider=jp,ot.api=Fp,ot.createOne=cu,ot.deleteOne=uu,ot.getAll=au,ot.getApiHeaders=vr,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"})});
|
|
143
|
+
}`;var Ue=ch(function(){return Je(C,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),C=_c(a,y),P=wc(a,y)+1;return pr(a,C,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=ce,a=ne;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 C=e.length;if(Wr(e)){var P=En(e);C=P.length}if(o>=C)return e;var Y=o-Ur(a);if(Y<1)return a;var H=P?pr(P,0,Y).join(""):e.slice(0,Y);if(y===r)return H+a;if(P&&(Y+=H.length-Y),Ua(y)){if(e.slice(Y).search(y)){var pe,ge=H;for(y.global||(y=oa(y.source,et(hn.exec(y))+"g")),y.lastIndex=0;pe=y.exec(ge);)var xe=pe.index;H=H.slice(0,xe===r?Y:xe)}}else if(e.indexOf(Xt(y),Y)!=Y){var Ee=H.lastIndexOf(y);Ee>-1&&(H=H.slice(0,Ee))}return H+a}function mw(e){return e=et(e),e&&yt.test(e)?e.replace(jt,q0):e}var vw=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(g);return[o(a[0]),a[1]]}):[],qe(function(a){for(var y=-1;++y<t;){var C=e[y];if(Qt(C[0],this,a))return Qt(C[1],this,a)}})}function ww(e){return qm(vn(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:vn(e,N))}function Sw(e){return zc(vn(e,N))}function Aw(e,t){return qc(e,vn(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 C=!(ft(o)&&"chain"in o)||!!o.chain,P=Zn(e);return pn(y,function(Y){var H=t[Y];e[Y]=H,P&&(e.prototype[Y]=function(){var pe=this.__chain__;if(C||pe){var ge=e(this.__wrapped__),xe=ge.__actions__=qt(this.__actions__);return xe.push({func:H,args:arguments,thisArg:e}),ge.__chain__=pe,ge}return H.apply(e,lr([this.value()],arguments))})}),e}function Ew(){return Dt._===this&&(Dt._=em),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)):lv(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=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,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 mc(e,Vt)}function Kw(e,t){return mc(e,Ne(t,2))}function Zw(e){return e&&e.length?No(e,Vt,va):r}function Qw(e,t){return e&&e.length?No(e,Ne(t,2),va):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 x.after=S_,x.ary=Wf,x.assign=f2,x.assignIn=nh,x.assignInWith=ts,x.assignWith=h2,x.at=d2,x.before=Uf,x.bind=Ya,x.bindAll=yw,x.bindKey=zf,x.castArray=I_,x.chain=jf,x.chunk=qv,x.compact=Hv,x.concat=Gv,x.cond=_w,x.conforms=ww,x.constant=Ga,x.countBy=t_,x.create=p2,x.curry=qf,x.curryRight=Hf,x.debounce=Gf,x.defaults=g2,x.defaultsDeep=m2,x.defer=A_,x.delay=D_,x.difference=Vv,x.differenceBy=Kv,x.differenceWith=Zv,x.drop=Qv,x.dropRight=Jv,x.dropRightWhile=Xv,x.dropWhile=ey,x.fill=ty,x.filter=r_,x.flatMap=s_,x.flatMapDeep=a_,x.flatMapDepth=l_,x.flatten=Nf,x.flattenDeep=ny,x.flattenDepth=ry,x.flip=O_,x.flow=xw,x.flowRight=Cw,x.fromPairs=iy,x.functions=C2,x.functionsIn=S2,x.groupBy=u_,x.initial=sy,x.intersection=ay,x.intersectionBy=ly,x.intersectionWith=uy,x.invert=D2,x.invertBy=O2,x.invokeMap=f_,x.iteratee=Va,x.keyBy=h_,x.keys=xt,x.keysIn=Gt,x.map=Ko,x.mapKeys=T2,x.mapValues=P2,x.matches=Sw,x.matchesProperty=Aw,x.memoize=Qo,x.merge=M2,x.mergeWith=rh,x.method=Dw,x.methodOf=Ow,x.mixin=Ka,x.negate=Jo,x.nthArg=Tw,x.omit=R2,x.omitBy=k2,x.once=E_,x.orderBy=d_,x.over=Pw,x.overArgs=T_,x.overEvery=Mw,x.overSome=Rw,x.partial=Fa,x.partialRight=Vf,x.partition=p_,x.pick=L2,x.pickBy=ih,x.property=fh,x.propertyOf=kw,x.pull=dy,x.pullAll=$f,x.pullAllBy=py,x.pullAllWith=gy,x.pullAt=my,x.range=Lw,x.rangeRight=Nw,x.rearg=P_,x.reject=v_,x.remove=vy,x.rest=M_,x.reverse=Ba,x.sampleSize=__,x.set=I2,x.setWith=$2,x.shuffle=w_,x.slice=yy,x.sortBy=C_,x.sortedUniq=Ay,x.sortedUniqBy=Dy,x.split=sw,x.spread=R_,x.tail=Oy,x.take=Ey,x.takeRight=Ty,x.takeRightWhile=Py,x.takeWhile=My,x.tap=Hy,x.throttle=k_,x.thru=Vo,x.toArray=Xf,x.toPairs=oh,x.toPairsIn=sh,x.toPath=Yw,x.toPlainObject=th,x.transform=B2,x.unary=L_,x.union=Ry,x.unionBy=ky,x.unionWith=Ly,x.uniq=Ny,x.uniqBy=Iy,x.uniqWith=$y,x.unset=j2,x.unzip=ja,x.unzipWith=Bf,x.update=Y2,x.updateWith=F2,x.values=Xr,x.valuesIn=W2,x.without=By,x.words=uh,x.wrap=N_,x.xor=jy,x.xorBy=Yy,x.xorWith=Fy,x.zip=Wy,x.zipObject=Uy,x.zipObjectDeep=zy,x.zipWith=qy,x.entries=oh,x.entriesIn=sh,x.extend=nh,x.extendWith=ts,Ka(x,x),x.add=Ww,x.attempt=ch,x.camelCase=H2,x.capitalize=ah,x.ceil=Uw,x.clamp=U2,x.clone=$_,x.cloneDeep=j_,x.cloneDeepWith=Y_,x.cloneWith=B_,x.conformsTo=F_,x.deburr=lh,x.defaultTo=bw,x.divide=zw,x.endsWith=G2,x.eq=Pn,x.escape=V2,x.escapeRegExp=K2,x.every=n_,x.find=i_,x.findIndex=kf,x.findKey=v2,x.findLast=o_,x.findLastIndex=Lf,x.findLastKey=y2,x.floor=qw,x.forEach=Yf,x.forEachRight=Ff,x.forIn=_2,x.forInRight=w2,x.forOwn=b2,x.forOwnRight=x2,x.get=za,x.gt=W_,x.gte=U_,x.has=A2,x.hasIn=qa,x.head=If,x.identity=Vt,x.includes=c_,x.indexOf=oy,x.inRange=z2,x.invoke=E2,x.isArguments=Er,x.isArray=Fe,x.isArrayBuffer=z_,x.isArrayLike=Ht,x.isArrayLikeObject=gt,x.isBoolean=q_,x.isBuffer=gr,x.isDate=H_,x.isElement=G_,x.isEmpty=V_,x.isEqual=K_,x.isEqualWith=Z_,x.isError=Wa,x.isFinite=Q_,x.isFunction=Zn,x.isInteger=Kf,x.isLength=Xo,x.isMap=Zf,x.isMatch=J_,x.isMatchWith=X_,x.isNaN=e2,x.isNative=t2,x.isNil=r2,x.isNull=n2,x.isNumber=Qf,x.isObject=ft,x.isObjectLike=dt,x.isPlainObject=Li,x.isRegExp=Ua,x.isSafeInteger=i2,x.isSet=Jf,x.isString=es,x.isSymbol=en,x.isTypedArray=Jr,x.isUndefined=o2,x.isWeakMap=s2,x.isWeakSet=a2,x.join=cy,x.kebabCase=Z2,x.last=_n,x.lastIndexOf=fy,x.lowerCase=Q2,x.lowerFirst=J2,x.lt=l2,x.lte=u2,x.max=Hw,x.maxBy=Gw,x.mean=Vw,x.meanBy=Kw,x.min=Zw,x.minBy=Qw,x.stubArray=Qa,x.stubFalse=Ja,x.stubObject=Iw,x.stubString=$w,x.stubTrue=Bw,x.multiply=Jw,x.nth=hy,x.noConflict=Ew,x.noop=Za,x.now=Zo,x.pad=X2,x.padEnd=ew,x.padStart=tw,x.parseInt=nw,x.random=q2,x.reduce=g_,x.reduceRight=m_,x.repeat=rw,x.replace=iw,x.result=N2,x.round=Xw,x.runInContext=q,x.sample=y_,x.size=b_,x.snakeCase=ow,x.some=x_,x.sortedIndex=_y,x.sortedIndexBy=wy,x.sortedIndexOf=by,x.sortedLastIndex=xy,x.sortedLastIndexBy=Cy,x.sortedLastIndexOf=Sy,x.startCase=aw,x.startsWith=lw,x.subtract=eb,x.sum=tb,x.sumBy=nb,x.template=uw,x.times=jw,x.toFinite=Qn,x.toInteger=We,x.toLength=eh,x.toLower=cw,x.toNumber=wn,x.toSafeInteger=c2,x.toString=et,x.toUpper=fw,x.trim=hw,x.trimEnd=dw,x.trimStart=pw,x.truncate=gw,x.unescape=mw,x.uniqueId=Fw,x.upperCase=vw,x.upperFirst=Ha,x.each=Yf,x.eachRight=Ff,x.first=If,Ka(x,function(){var e={};return $n(x,function(t,o){tt.call(x.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),x.VERSION=s,pn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){x[e].placeholder=x}),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,v),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==T||o==O;Ge.prototype[e]=function(y){var C=this.clone();return C.__iteratees__.push({iteratee:Ne(y,3),type:o}),C.__filtered__=C.__filtered__||a,C}}),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(v)},$n(Ge.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=x[a?"take"+(t=="last"?"Right":""):t],C=a||/^find/.test(t);y&&(x.prototype[t]=function(){var P=this.__wrapped__,Y=a?[1]:arguments,H=P instanceof Ge,pe=Y[0],ge=H||Fe(P),xe=function(He){var Ke=y.apply(x,lr([He],Y));return a&&Ee?Ke[0]:Ke};ge&&o&&typeof pe=="function"&&pe.length!=1&&(H=ge=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,$e=C&&!Ee,Ue=H&&!Le;if(!C&&ge){P=Ue?P:new Ge(this);var Be=e.apply(P,Y);return Be.__actions__.push({func:Vo,args:[xe],thisArg:r}),new mn(Be,Ee)}return $e&&Ue?e.apply(this,Y):(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);x.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var C=this.value();return t.apply(Fe(C)?C:[],y)}return this[o](function(P){return t.apply(Fe(P)?P:[],y)})}}),$n(Ge.prototype,function(e,t){var o=x[t];if(o){var a=o.name+"";tt.call(Gr,a)||(Gr[a]=[]),Gr[a].push({name:t,func:o})}}),Gr[Fo(r,ae).name]=[{name:"wrapper",func:r}],Ge.prototype.clone=mm,Ge.prototype.reverse=vm,Ge.prototype.value=ym,x.prototype.at=Gy,x.prototype.chain=Vy,x.prototype.commit=Ky,x.prototype.next=Zy,x.prototype.plant=Jy,x.prototype.reverse=Xy,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=e_,x.prototype.first=x.prototype.head,bi&&(x.prototype[bi]=Qy),x},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(46),{fields:r,onClose:s,queryKey:u,apiPath:p,id:g,steps:h}=i,[S,A]=ye.useState(0),[E,N]=ye.useState(!1);let k;n[0]===Symbol.for("react.memo_cache_sentinel")?(k={},n[0]=k):k=n[0];const[L,I]=ye.useState(k),{data:B,isLoading:Z}=hu(p,u,g),{mutateAsync:ae,isError:ue,error:oe,isPending:he}=Es(p,u);let Q;n[1]!==r?(Q=new Set(r.filter(q1).map(z1)),n[1]=r,n[2]=Q):Q=n[2];let le;n[3]!==Q?(le=[...Q],n[3]=Q,n[4]=le):le=n[4];const J=le;let te;n[5]!==r?(te=r.reduce(U1,{}),n[5]=r,n[6]=te):te=n[6];let de;n[7]!==r?(de=r.filter(W1).reduce(Y1,{}),n[7]=r,n[8]=de):de=n[8];let ce;n[9]!==te||n[10]!==de?(ce={mode:"uncontrolled",initialValues:te,validate:de},n[9]=te,n[10]=de,n[11]=ce):ce=n[11];const ne=Xa.useForm(ce);let Ae;n[12]!==B||n[13]!==r||n[14]!==ne?(Ae=()=>{if(B){const v=r.reduce((b,$)=>{const U=$.id;return b[U]=Array.isArray(B[U])?B[U]:$.type==="boolean"?B[U]??!1:$.type==="date"?B[U]?new Date(B[U]):"":B[U]??"",b},{});ne.initialize(v),ne.setValues(v),I(v)}},n[12]=B,n[13]=r,n[14]=ne,n[15]=Ae):Ae=n[15];let Oe;n[16]!==B?(Oe=[B],n[16]=B,n[17]=Oe):Oe=n[17],ye.useEffect(Ae,Oe);let T;n[18]!==ne?(T=v=>{ne.setValues(v),I(b=>({...b,...v}))},n[18]=ne,n[19]=T):T=n[19];const M=T;let O;n[20]!==ne||n[21]!==g||n[22]!==M||n[23]!==L?(O=function(b){const $={...ne.getValues(),...L};return b.conditional&&!b.conditional($)?null:D.jsxs(ye.Fragment,{children:[(b.type===void 0||b.type=="text")&&D.jsx(F.TextInput,{label:b.column.title,placeholder:b.placeholder??"",...ne.getInputProps(b.id),type:b.id.includes("email")?"email":void 0},ne.key(b.id)),b.type==="number"&&D.jsx(F.NumberInput,{decimalSeparator:",",label:b.column.title,placeholder:b.placeholder??"",...ne.getInputProps(b.id)},ne.key(b.id)),b.type==="date"&&D.jsx(lo,{label:b.column.title,placeholder:b.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ne.getInputProps(b.id)},ne.key(b.id)),b.type==="boolean"&&D.jsx(F.Checkbox,{mt:"md",label:b.column.title,...ne.getInputProps(b.id,{type:"checkbox"})},ne.key(b.id)),b.type==="textarea"&&D.jsx(F.Textarea,{label:b.column.title,placeholder:b.placeholder??"",...ne.getInputProps(b.id),minRows:3,autosize:!0},ne.key(b.id)),b.type==="custom"&&b.render&&b.render({...ne.getValues(),id:g},M,N)]},b.id)},n[20]=ne,n[21]=g,n[22]=M,n[23]=L,n[24]=O):O=n[24];const m=O;let d;n[25]!==ue||n[26]!==oe?.message||n[27]!==oe?.name?(d=ue&&D.jsx(F.Alert,{variant:"outline",color:"red",title:oe?.name??"Fehler aufgetreten",mb:"lg",children:oe?.message??"Fehler aufgetreten"}),n[25]=ue,n[26]=oe?.message,n[27]=oe?.name,n[28]=d):d=n[28];let w;n[29]!==S||n[30]!==r||n[31]!==ne||n[32]!==E||n[33]!==g||n[34]!==Z||n[35]!==he||n[36]!==ue||n[37]!==s||n[38]!==m||n[39]!==h||n[40]!==J||n[41]!==ae?(w=Z?D.jsxs(F.Stack,{gap:"md",children:[D.jsx(F.Skeleton,{height:40}),Array(r.length).fill(0).map(j1),D.jsxs(F.Group,{mt:"md",justify:"end",children:[D.jsx(F.Skeleton,{width:100,height:36}),D.jsx(F.Skeleton,{width:100,height:36})]})]}):D.jsxs("form",{onSubmit:ne.onSubmit(async v=>{await ae({...v,id:g}),J.length&&S<J.length-1?ue||A(S+1):ue||(ne.setInitialValues(v),ne.reset(),s())}),children:[J.length?D.jsx(F.Stepper,{active:S,size:"sm",children:J.map(v=>D.jsx(F.Stepper.Step,{...h&&h[v-1]?{label:h[v-1].label}:{},children:r.filter(b=>b.step===v).map(b=>m(b))},v))}):r.map(v=>m(v)),!E&&D.jsxs(F.Group,{mt:"md",justify:"end",children:[D.jsx(F.Button,{onClick:()=>J.length?S===0?s():A(S-1):s(),variant:"outline",children:J.length?S===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(F.Button,{type:"submit",loading:he,children:J.length?S===J.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[29]=S,n[30]=r,n[31]=ne,n[32]=E,n[33]=g,n[34]=Z,n[35]=he,n[36]=ue,n[37]=s,n[38]=m,n[39]=h,n[40]=J,n[41]=ae,n[42]=w):w=n[42];let f;return n[43]!==d||n[44]!==w?(f=D.jsxs(D.Fragment,{children:[d,w]}),n[43]=d,n[44]=w,n[45]=f):f=n[45],f}function j1(i,n){return D.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:p,error:g,isPending:h}=gu(n,i),[S,A]=ye.useState(s),[E,N]=ye.useState(!1),k=E||h;return ye.useEffect(()=>{S.length||r()},[r,S]),S.length?D.jsxs(D.Fragment,{children:[p&&g.message&&D.jsx(F.Alert,{variant:"outline",color:"red",title:g.name,children:g.message}),D.jsx(F.Text,{children:S.length===1?`Soll ${S.length} Eintrag wirklich gelöscht werden?`:`Sollen ${S.length} Einträge wirklich gelöscht werden?`}),D.jsxs(F.Group,{mt:"md",justify:"end",children:[D.jsx(F.Button,{onClick:r,variant:"outline",disabled:k,children:"Abbrechen"}),D.jsx(F.Button,{color:"red",loading:k,onClick:async()=>{N(!0);try{await Promise.all(S.map(L=>u(L.id))),A([])}finally{N(!1)}},children:"Löschen"})]})]}):D.jsx(D.Fragment,{})}function Zu(i,n){const r=bn.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,p]=ye.useState(s);let g;r[3]!==n?(g=A=>{p(A),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(A))},r[3]=n,r[4]=g):g=r[4];const h=g;let S;return r[5]!==h||r[6]!==u?(S=[u,h],r[5]=h,r[6]=u,r[7]=S):S=r[7],S}const Qu=[10,15,20,50,100,500];function G1(i){const n=bn.c(147),{title:r,queryKey:s,connectedQueryKeys:u,apiPath:p,buttons:g,fields:h,selection:S,pagination:A,filters:E,actions:N,steps:k,defaultSort:L,createButtonText:I,queryParams:B,tabs:Z,defaultTab:ae,activeTab:ue,onActiveTabChange:oe}=i,[he,Q]=ye.useState(ae||(Z&&Z.length>0?Z[0].value:null)),le=ue!==void 0?ue:he;let J;n[0]!==ue||n[1]!==oe?(J=Ze=>{ue===void 0&&Q(Ze),oe&&oe(Ze)},n[0]=ue,n[1]=oe,n[2]=J):J=n[2];const te=J;let de,ce;if(n[3]!==le||n[4]!==B||n[5]!==Z){const Ze=Z?.find(ct=>ct.value===le)?.queryParams||{};de={...B,...Ze},ce=de?"?"+Object.entries(de).filter(i0).map(r0).join("&"):"",n[3]=le,n[4]=B,n[5]=Z,n[6]=de,n[7]=ce}else de=n[6],ce=n[7];const ne=ce;let Ae;n[8]!==le||n[9]!==s?(Ae=le?[...s,le]:s,n[8]=le,n[9]=s,n[10]=Ae):Ae=n[10];const Oe=Ae,{data:T,isLoading:M,isError:O,isRefetching:m,refetch:d}=du(p+ne,Oe);let w;n[11]===Symbol.for("react.memo_cache_sentinel")?(w=[],n[11]=w):w=n[11];const[f,v]=ye.useState(w),{queryClient:b}=tr();let $;n[12]!==T||n[13]!==u||n[14]!==E||n[15]!==b?($=()=>{if(!(!T||!Array.isArray(T))){if(u?.forEach(Ze=>b.invalidateQueries({queryKey:Ze})),!E||E.length===0){v(T);return}v(T.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]=T,n[13]=u,n[14]=E,n[15]=b,n[16]=$):$=n[16];let U;n[17]!==T||n[18]!==de||n[19]!==E?(U=[T,E,de],n[17]=T,n[18]=de,n[19]=E,n[20]=U):U=n[20],ye.useEffect($,U);const ee=L?.field??h[0].id,G=L?.direction??"desc";let we;n[21]!==ee||n[22]!==G?(we={columnAccessor:ee,direction:G},n[21]=ee,n[22]=G,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[me,j]=ye.useState(_e);let K;n[29]!==f||n[30]!==X.columnAccessor||n[31]!==X.direction?(K=()=>{const Ze=Ku.sortBy(f,X.columnAccessor);j(X.direction==="desc"?Ze.reverse():Ze)},n[29]=f,n[30]=X.columnAccessor,n[31]=X.direction,n[32]=K):K=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(K,W);const[V,re]=Zu(Qu[1],"mantine-table-page-size"),[Se,l]=ye.useState(1);let c;n[36]!==V||n[37]!==A||n[38]!==me?(c=A?me.slice(0,V):me,n[36]=V,n[37]=A,n[38]=me,n[39]=c):c=n[39];const[_,R]=ye.useState(c);let z;n[40]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{l(1)},n[40]=z):z=n[40];let ie;n[41]!==V?(ie=[V],n[41]=V,n[42]=ie):ie=n[42],ye.useEffect(z,ie);let De,Ce;n[43]!==Se||n[44]!==V||n[45]!==A||n[46]!==me?(De=()=>{if(A){const Ze=(Se-1)*V,ct=Ze+V;R(me.slice(Ze,ct))}else R(me)},Ce=[Se,me,A,V],n[43]=Se,n[44]=V,n[45]=A,n[46]=me,n[47]=De,n[48]=Ce):(De=n[47],Ce=n[48]),ye.useEffect(De,Ce);let Pe;n[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=[],n[49]=Pe):Pe=n[49];const[ve,Re]=ye.useState(Pe);let Ie;n[50]!==ve||n[51]!==S||n[52]!==me?(Ie=()=>{S&&Re(me.filter(Ze=>ve.some(ct=>ct.id===Ze.id)))},n[50]=ve,n[51]=S,n[52]=me,n[53]=Ie):Ie=n[53];let ke;n[54]!==me?(ke=[me],n[54]=me,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]!==le?(Qe=[le],n[57]=le,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"?D.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=D.jsx(ei.IconRefresh,{}),n[63]=On):On=n[63];let yt;n[64]!==jt?(yt=D.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]!==ve||n[69]!==S?(an=(h.some(n0)||S)&&D.jsxs(F.Menu,{shadow:"md",children:[D.jsx(F.Menu.Target,{children:D.jsx(F.Button,{variant:"outline",rightSection:D.jsx(ei.IconCaretDownFilled,{size:14}),disabled:!ve.length,children:"Aktionen"})}),D.jsxs(F.Menu.Dropdown,{children:[h.find(t0)&&D.jsx(F.Menu.Item,{leftSection:D.jsx(ei.IconPencil,{size:14}),onClick:()=>rt(!0),disabled:ve.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(ve)},Ze.label)),h.find(e0)&&D.jsx(F.Menu.Item,{leftSection:D.jsx(ei.IconTrash,{size:14}),onClick:()=>St(!0),color:"red",children:"Löschen"})]})]}),n[66]=N,n[67]=h,n[68]=ve,n[69]=S,n[70]=an):an=n[70];let ln;n[71]!==I||n[72]!==h||n[73]!==M?(ln=h.find(X1)&&D.jsx(F.Button,{onClick:()=>Et(!0),disabled:M,children:I??"Erstellen"}),n[71]=I,n[72]=h,n[73]=M,n[74]=ln):ln=n[74];let Yt;n[75]!==g||n[76]!==yt||n[77]!==an||n[78]!==ln?(Yt=D.jsxs(F.Group,{align:"center",gap:"xs",children:[yt,an,ln,g]}),n[75]=g,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=D.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]!==le||n[85]!==te||n[86]!==Z?(Ft=Z&&Z.length>0&&D.jsx(F.Tabs,{value:le,onChange:te,mt:"md",children:D.jsx(F.Tabs.List,{children:Z.map(J1)})}),n[84]=le,n[85]=te,n[86]=Z,n[87]=Ft):Ft=n[87];let Wt;n[88]!==O?(Wt=O&&D.jsx(F.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:D.jsx(ei.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[88]=O,n[89]=Wt):Wt=n[89];let Kt;n[90]!==M||n[91]!==m?(Kt=(M||m)&&D.jsxs(F.Stack,{my:"md",children:[D.jsx(F.Skeleton,{height:40}),Array(5).fill(0).map(Q1)]}),n[90]=M,n[91]=m,n[92]=Kt):Kt=n[92];let Ut;n[93]!==h||n[94]!==O||n[95]!==M||n[96]!==m||n[97]!==Se||n[98]!==V||n[99]!==A||n[100]!==_||n[101]!==ve||n[102]!==S||n[103]!==re||n[104]!==X||n[105]!==me?(Ut=!M&&!m&&D.jsx(N1,{my:"md",striped:!0,minHeight:150,fetching:O,records:_,sortStatus:X,onSortStatusChange:be,...S&&{selectedRecords:ve,onSelectedRecordsChange:Re},...A&&_.length&&{totalRecords:me.length,recordsPerPage:V,onPageChange:l,page:Se,recordsPerPageOptions:Qu,onRecordsPerPageChange:re,recordsPerPageLabel:"Einträge pro Seite"},columns:h.map(Z1),noRecordsText:"Keine Einträge gefunden"}),n[93]=h,n[94]=O,n[95]=M,n[96]=m,n[97]=Se,n[98]=V,n[99]=A,n[100]=_,n[101]=ve,n[102]=S,n[103]=re,n[104]=X,n[105]=me,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]!==p||n[109]!==h||n[110]!==s||n[111]!==ve[0]||n[112]!==ve.length||n[113]!==k?(Nt=ve.length>0&&D.jsx(B1,{fields:h.filter(K1),queryKey:s,apiPath:p,id:ve[0].id,onClose:()=>{rt(!1),Re([])},steps:k}),n[108]=p,n[109]=h,n[110]=s,n[111]=ve[0],n[112]=ve.length,n[113]=k,n[114]=Nt):Nt=n[114];let Zt;n[115]!==at||n[116]!==Nt||n[117]!==pt?(Zt=D.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]!==p||n[120]!==An||n[121]!==s||n[122]!==ve||n[123]!==r?(Rn=ve.length>0&&D.jsx(F.Modal,{opened:An,onClose:()=>{St(!1),Re([])},title:r??"Löschen",children:D.jsx(H1,{onClose:()=>{St(!1),Re([])},queryKey:s,apiPath:p,selectedRecords:ve})}),n[119]=p,n[120]=An,n[121]=s,n[122]=ve,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]!==p||n[130]!==s||n[131]!==k||n[132]!==kn?(fn=D.jsx(Yg,{queryKey:s,apiPath:p,onClose:cn,fields:kn,steps:k}),n[129]=p,n[130]=s,n[131]=k,n[132]=kn,n[133]=fn):fn=n[133];let hn;n[134]!==nt||n[135]!==yr||n[136]!==fn?(hn=D.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=D.jsxs(D.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 D.jsx(F.Skeleton,{height:35},`skeleton-${n}`)}function J1(i){return D.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=D.jsx(G1,{...i}),n[0]=i,n[1]=s):s=n[1];let u;return n[2]!==r||n[3]!==s?(u=D.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=vr,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
|